From 5918fa38ff5e07bc13c095e2da524f6cc8b57dbd Mon Sep 17 00:00:00 2001 From: Vins Date: Tue, 2 Jul 2024 14:52:36 +0200 Subject: [PATCH] Reacto typo theme --- .../DesignSystem/BlockList/index.tsx | 2 +- .../DesignSystem/CheckBox/index.tsx | 2 +- .../DesignSystem/DepositDocument/index.tsx | 27 +-- .../DepositOtherDocument/index.tsx | 16 +- .../DesignSystem/DepositRib/index.tsx | 11 +- .../Document/DocumentNotary/index.tsx | 4 +- .../DesignSystem/FilePreview/index.tsx | 2 +- .../FolderBoxInformation/index.tsx | 28 +-- .../DesignSystem/FolderContainer/index.tsx | 2 +- .../DesignSystem/Form/BaseField.tsx | 2 +- .../DesignSystem/Form/DateField/index.tsx | 2 +- .../DesignSystem/Form/SelectField/index.tsx | 8 +- .../DesignSystem/Form/TextField/index.tsx | 2 +- .../DesignSystem/Form/TextareaField/index.tsx | 2 +- .../BurgerModal/BurgerModalSubmenu/index.tsx | 4 +- .../DesignSystem/Header/HeaderLink/index.tsx | 4 +- .../HeaderSubmenu/HeaderSubmenuLink/index.tsx | 2 +- .../Header/HeaderSubmenu/index.tsx | 2 +- .../Header/NavigationLink/index.tsx | 2 +- .../Notifications/NotificationModal/index.tsx | 6 +- .../Components/DesignSystem/Header/index.tsx | 2 +- .../DesignSystem/LogOutButton/index.tsx | 4 +- .../Modal/Elements/Header/index.tsx | 2 +- .../Modal/Elements/Loader/index.tsx | 2 +- .../Components/DesignSystem/Modal/index.tsx | 8 +- .../DesignSystem/MultiSelect/index.tsx | 4 +- .../DesignSystem/Newsletter/index.tsx | 8 +- .../QuantityProgressBar/ProgressBar/index.tsx | 2 +- .../QuantityProgressBar/index.tsx | 2 +- .../DesignSystem/RadioBox/index.tsx | 2 +- .../DesignSystem/SearchBar/index.tsx | 2 +- .../Components/DesignSystem/Switch/index.tsx | 2 +- .../ToastsContainer/ToastElement/index.tsx | 4 +- .../Typography/classes.module.scss | 136 ++++++++------ .../DesignSystem/Typography/index-old.tsx | 62 +++++++ .../DesignSystem/Typography/index.tsx | 34 ++-- .../Typography/old-classes.module.scss | 166 ++++++++++++++++++ .../UserFolder/DocumentList/index.tsx | 4 +- .../UserFolder/UserFolderHeader/index.tsx | 16 +- .../Components/DesignSystem/Version/index.tsx | 2 +- .../Components/Elements/MessageBox/index.tsx | 2 +- .../Components/Elements/NavTab/index.tsx | 2 +- .../Layouts/ClientDashboard/index.tsx | 18 +- .../Layouts/ClientDashboard/index2.tsx | 14 +- .../CollaboratorInformations/index.tsx | 28 +-- .../Layouts/Collaborators/index.tsx | 4 +- .../DeedTypes/DeedTypesCreate/index.tsx | 4 +- .../Layouts/DeedTypes/DeedTypesEdit/index.tsx | 4 +- .../DeedTypes/DeedTypesInformations/index.tsx | 14 +- .../Components/Layouts/DeedTypes/index.tsx | 4 +- .../DocumentTypesCreate/index.tsx | 2 +- .../DocumentTypes/DocumentTypesEdit/index.tsx | 2 +- .../DocumentTypesInformations/index.tsx | 14 +- .../Layouts/DocumentTypes/index.tsx | 4 +- .../Folder/AddClientToFolder/index.tsx | 6 +- .../AskDocuments/ParameterDocuments/index.tsx | 6 +- .../Layouts/Folder/AskDocuments/index.tsx | 2 +- .../Folder/CreateCustomerNote/index.tsx | 2 +- .../Layouts/Folder/CreateFolder/index.tsx | 6 +- .../FolderInformation/ClientSection/index.tsx | 2 +- .../Folder/FolderInformation/index.tsx | 22 ++- .../Layouts/Folder/UpdateClient/index.tsx | 2 +- .../Folder/UpdateCustomerNote/index.tsx | 2 +- .../UpdateFolderCollaborators/index.tsx | 4 +- .../Folder/UpdateFolderDescription/index.tsx | 2 +- .../Folder/UpdateFolderMetadata/index.tsx | 2 +- .../Folder/ViewDocuments/OcrResult/index.tsx | 6 +- .../Layouts/Folder/ViewDocuments/index.tsx | 16 +- src/front/Components/Layouts/Folder/index.tsx | 4 +- .../FolderInformation/ClientSection/index.tsx | 2 +- .../FolderInformation/index.tsx | 6 +- .../UpdateFolderMetadata/index.tsx | 2 +- .../Layouts/FolderArchived/index.tsx | 4 +- src/front/Components/Layouts/Home/index.tsx | 2 +- src/front/Components/Layouts/Login/index.tsx | 16 +- .../Layouts/LoginCallback/index.tsx | 4 +- .../Layouts/LoginCallbackCustomer/index.tsx | 4 +- .../LoginCustomer/PasswordForgotten/index.tsx | 4 +- .../Layouts/LoginCustomer/StepEmail/index.tsx | 12 +- .../LoginCustomer/StepNewPassword/index.tsx | 4 +- .../LoginCustomer/StepPassword/index.tsx | 6 +- .../Layouts/LoginCustomer/StepTotp/index.tsx | 8 +- .../Layouts/LoginCustomer/index.tsx | 2 +- .../Components/Layouts/LoginHome/index.tsx | 8 +- .../Components/Layouts/MyAccount/index.tsx | 6 +- .../Offices/OfficeInformations/index.tsx | 72 ++++---- .../Components/Layouts/Offices/index.tsx | 4 +- .../Components/Layouts/PageNotFound/index.tsx | 4 +- src/front/Components/Layouts/Rib/index.tsx | 8 +- .../Layouts/Roles/RolesCreate/index.tsx | 4 +- .../Layouts/Roles/RolesInformations/index.tsx | 8 +- src/front/Components/Layouts/Roles/index.tsx | 4 +- .../Components/Layouts/SelectFolder/index.tsx | 2 +- .../SubscribeCheckoutTicket/index.tsx | 39 ++-- .../SubscribeIllimityComponent/index.tsx | 18 +- .../SubscribeStandardComponent/index.tsx | 16 +- .../SubscriptionClientInfos/index.tsx | 8 +- .../SubscriptionManageCollaborators/index.tsx | 6 +- .../Subscription/SubscriptionError/index.tsx | 2 +- .../SubscriptionFacturation/index.tsx | 40 ++--- .../Subscription/SubscriptionInvite/index.tsx | 6 +- .../Subscription/SubscriptionNew/index.tsx | 30 ++-- .../SubscriptionSuccess/index.tsx | 2 +- .../Layouts/Users/UserInformations/index.tsx | 32 ++-- src/front/Components/Layouts/Users/index.tsx | 4 +- 105 files changed, 736 insertions(+), 457 deletions(-) create mode 100644 src/front/Components/DesignSystem/Typography/index-old.tsx create mode 100644 src/front/Components/DesignSystem/Typography/old-classes.module.scss diff --git a/src/front/Components/DesignSystem/BlockList/index.tsx b/src/front/Components/DesignSystem/BlockList/index.tsx index ddf1cbb9..1d140528 100644 --- a/src/front/Components/DesignSystem/BlockList/index.tsx +++ b/src/front/Components/DesignSystem/BlockList/index.tsx @@ -32,7 +32,7 @@ export default function BlockList({ blocks, onSelectedBlock }: IProps) {
- {folder.name} + {folder.name}
{folder.hasFlag && } diff --git a/src/front/Components/DesignSystem/CheckBox/index.tsx b/src/front/Components/DesignSystem/CheckBox/index.tsx index 82a84bca..dc8b16f2 100644 --- a/src/front/Components/DesignSystem/CheckBox/index.tsx +++ b/src/front/Components/DesignSystem/CheckBox/index.tsx @@ -37,7 +37,7 @@ export default class CheckBox extends React.Component { public override render(): JSX.Element { return ( - +
- +
{ )} {this.props.document.document_status !== EDocumentStatus.VALIDATED && ( - + Sélectionnez des documents .jpg, .pdf ou .png )} @@ -158,7 +158,7 @@ export default class DepositDocument extends React.Component {
Document check {this.shortName(file.fileName || fileObj.name)} @@ -180,7 +180,7 @@ export default class DepositDocument extends React.Component {
- + Chargement...
@@ -191,7 +191,10 @@ export default class DepositDocument extends React.Component { {this.props.document.document_status !== EDocumentStatus.VALIDATED && (
@@ -206,7 +209,7 @@ export default class DepositDocument extends React.Component { header={"Motif du refus"} confirmText={"J'ai compris"}>
- + Votre document a été refusé pour la raison suivante : @@ -214,14 +217,14 @@ export default class DepositDocument extends React.Component {
{this.props.document.document_status === EDocumentStatus.REFUSED && ( - + Ce document n'est pas conforme. Veuillez le déposer à nouveau. )} {this.state.showFailedUploaded && (
- + {this.state.showFailedUploaded}
@@ -265,26 +268,26 @@ export default class DepositDocument extends React.Component { switch (history.document_status) { case EDocumentStatus.ASKED: return ( - + Demandé par votre notaire le {this.formatDate(history.created_at!)} ); case EDocumentStatus.VALIDATED: return ( - + Validé par votre notaire le {this.formatDate(history.created_at!)} ); case EDocumentStatus.DEPOSITED: return ( - + Déposé le {this.formatDate(history.created_at!)} ); case EDocumentStatus.REFUSED: return ( - + Document non conforme {history.refused_reason && history.refused_reason.length > 0 && ( diff --git a/src/front/Components/DesignSystem/Document/DocumentNotary/index.tsx b/src/front/Components/DesignSystem/Document/DocumentNotary/index.tsx index 4e6e7c70..5db4bc46 100644 --- a/src/front/Components/DesignSystem/Document/DocumentNotary/index.tsx +++ b/src/front/Components/DesignSystem/Document/DocumentNotary/index.tsx @@ -41,8 +41,8 @@ class DocumentNotaryClass extends React.Component { return (
- {this.props.document?.document_type?.name} - {this.getDocumentsTitle()} + {this.props.document?.document_type?.name} + {this.getDocumentsTitle()}
{this.renderIcon()}
diff --git a/src/front/Components/DesignSystem/FilePreview/index.tsx b/src/front/Components/DesignSystem/FilePreview/index.tsx index 70607659..9dfc749a 100644 --- a/src/front/Components/DesignSystem/FilePreview/index.tsx +++ b/src/front/Components/DesignSystem/FilePreview/index.tsx @@ -26,7 +26,7 @@ export default class FilePreview extends React.Component { {this.props.href && ( <> {!type && ( - + Erreur lors du chargement du fichier )} diff --git a/src/front/Components/DesignSystem/FolderBoxInformation/index.tsx b/src/front/Components/DesignSystem/FolderBoxInformation/index.tsx index 7048b425..2c9be9dd 100644 --- a/src/front/Components/DesignSystem/FolderBoxInformation/index.tsx +++ b/src/front/Components/DesignSystem/FolderBoxInformation/index.tsx @@ -70,42 +70,42 @@ export default function FolderBoxInformation(props: IProps) { case EFolderBoxInformationType.DESCRIPTION: return (
- Note dossier - {folder.description ?? ""} + Note dossier + {folder.description ?? ""}
); case EFolderBoxInformationType.NOTE: return (
- Note client - {note?.content ?? ""} + Note client + {note?.content ?? ""}
); case EFolderBoxInformationType.ARCHIVED_DESCRIPTION: return (
- Note archive - {folder.archived_description ?? ""} + Note archive + {folder.archived_description ?? ""}
); case EFolderBoxInformationType.INFORMATIONS: return ( <>
- Intitulé du dossier - {folder.name ?? ""} + Intitulé du dossier + {folder.name ?? ""}
- Numéro de dossier - {folder.folder_number ?? ""} + Numéro de dossier + {folder.folder_number ?? ""}
- Type d'acte - {folder.deed?.deed_type?.name ?? ""} + Type d'acte + {folder.deed?.deed_type?.name ?? ""}
- Ouverture du dossier - {formatDate(folder.created_at)} + Ouverture du dossier + {formatDate(folder.created_at)}
); diff --git a/src/front/Components/DesignSystem/FolderContainer/index.tsx b/src/front/Components/DesignSystem/FolderContainer/index.tsx index b35a87d9..a3ac8f9e 100644 --- a/src/front/Components/DesignSystem/FolderContainer/index.tsx +++ b/src/front/Components/DesignSystem/FolderContainer/index.tsx @@ -24,7 +24,7 @@ export default class FolderContainer extends React.Component { return (
- + {this.props.folder.folder_number.concat(" - ").concat(this.props.folder.name)} {this.countPendingDocuments() > 0 && ( diff --git a/src/front/Components/DesignSystem/Form/BaseField.tsx b/src/front/Components/DesignSystem/Form/BaseField.tsx index 76138dfe..488ecc69 100644 --- a/src/front/Components/DesignSystem/Form/BaseField.tsx +++ b/src/front/Components/DesignSystem/Form/BaseField.tsx @@ -107,7 +107,7 @@ export default abstract class BaseField

{ errors.push( - + {value} , ); diff --git a/src/front/Components/DesignSystem/Form/DateField/index.tsx b/src/front/Components/DesignSystem/Form/DateField/index.tsx index 884b8454..12f06148 100644 --- a/src/front/Components/DesignSystem/Form/DateField/index.tsx +++ b/src/front/Components/DesignSystem/Form/DateField/index.tsx @@ -20,7 +20,7 @@ export default class DateField extends BaseField { public override render(): ReactNode { const value = this.state.value ?? ""; return ( - +

{ {selectedOption && ( <> {selectedOption?.icon} - + {selectedOption?.label} )} {!selectedOption && (
- + {this.props.placeholder ?? ""}
@@ -110,7 +110,7 @@ class SelectFieldClass extends React.Component { className={classes["container-li"]} onClick={(e) => this.onSelect(option, e)}>
{option.icon}
- {option.label} + {option.label} ))} @@ -199,7 +199,7 @@ class SelectFieldClass extends React.Component { private renderErrors(): JSX.Element | null { if (!this.state.errors) return null; return ( - + {this.props.placeholder} ne peut pas être vide ); diff --git a/src/front/Components/DesignSystem/Form/TextField/index.tsx b/src/front/Components/DesignSystem/Form/TextField/index.tsx index ad360cbb..e33d8518 100644 --- a/src/front/Components/DesignSystem/Form/TextField/index.tsx +++ b/src/front/Components/DesignSystem/Form/TextField/index.tsx @@ -21,7 +21,7 @@ export default class TextField extends BaseField { public override render(): ReactNode { const value = this.state.value ?? ""; return ( - +
{ public override render(): ReactNode { const value = this.state.value ?? ""; return ( - +