-
diff --git a/src/front/Components/Layouts/DeedTypes/DeedTypesCreate/index.tsx b/src/front/Components/Layouts/DeedTypes/DeedTypesCreate/index.tsx
index b5c3c7bf..d5c491e3 100644
--- a/src/front/Components/Layouts/DeedTypes/DeedTypesCreate/index.tsx
+++ b/src/front/Components/Layouts/DeedTypes/DeedTypesCreate/index.tsx
@@ -3,7 +3,7 @@ import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/Desi
import Form from "@Front/Components/DesignSystem/Form";
import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField";
import TextField from "@Front/Components/DesignSystem/Form/TextField";
-import Confirm from "@Front/Components/DesignSystem/Modal/Confirm";
+import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm";
import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography";
import DefaultDeedTypesDashboard from "@Front/Components/LayoutTemplates/DefaultDeedTypeDashboard";
import Module from "@Front/Config/Module";
diff --git a/src/front/Components/Layouts/DeedTypes/DeedTypesEdit/index.tsx b/src/front/Components/Layouts/DeedTypes/DeedTypesEdit/index.tsx
index 9a442889..7c7f936b 100644
--- a/src/front/Components/Layouts/DeedTypes/DeedTypesEdit/index.tsx
+++ b/src/front/Components/Layouts/DeedTypes/DeedTypesEdit/index.tsx
@@ -3,7 +3,7 @@ import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/Desi
import Form from "@Front/Components/DesignSystem/Form";
import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField";
import TextField from "@Front/Components/DesignSystem/Form/TextField";
-import Confirm from "@Front/Components/DesignSystem/Modal/Confirm";
+import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm";
import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography";
import DefaultDeedTypesDashboard from "@Front/Components/LayoutTemplates/DefaultDeedTypeDashboard";
import Module from "@Front/Config/Module";
diff --git a/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx b/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx
index b032cd01..31ec5a3a 100644
--- a/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx
+++ b/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx
@@ -5,7 +5,7 @@ import DocumentTypes from "@Front/Api/LeCoffreApi/Admin/DocumentTypes/DocumentTy
import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button";
import Form from "@Front/Components/DesignSystem/Form";
import { IOption } from "@Front/Components/DesignSystem/Form/SelectField";
-import Confirm from "@Front/Components/DesignSystem/Modal/Confirm";
+import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm";
import MultiSelect from "@Front/Components/DesignSystem/MultiSelect";
import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography";
import DefaultDeedTypesDashboard from "@Front/Components/LayoutTemplates/DefaultDeedTypeDashboard";
diff --git a/src/front/Components/Layouts/DesignSystem/index.tsx b/src/front/Components/Layouts/DesignSystem/index.tsx
index 9dcea52f..7a60cacd 100644
--- a/src/front/Components/Layouts/DesignSystem/index.tsx
+++ b/src/front/Components/Layouts/DesignSystem/index.tsx
@@ -4,13 +4,18 @@ import Newsletter from "@Front/Components/DesignSystem/Newsletter";
import Table from "@Front/Components/DesignSystem/Table";
import Tag, { ETagColor, ETagVariant } from "@Front/Components/DesignSystem/Tag";
import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography";
-import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate";
-
-import classes from "./classes.module.scss";
import Tabs from "@Front/Components/Elements/Tabs";
+import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate";
+import { ArrowLongLeftIcon, ArrowLongRightIcon, XMarkIcon } from "@heroicons/react/24/outline";
import { useCallback, useMemo, useState } from "react";
+import classes from "./classes.module.scss";
+import useOpenable from "@Front/Hooks/useOpenable";
+import Modal from "@Front/Components/DesignSystem/Modal";
+import IconButton, { EIconButtonVariant } from "@Front/Components/DesignSystem/IconButton";
+
export default function DesignSystem() {
+ const { isOpen, open, close } = useOpenable();
const userDb = useMemo(
() => [
{
@@ -57,15 +62,25 @@ export default function DesignSystem() {
DesignSystem
- Tabs
- tabs={userDbArray} onSelect={onSelect} />
-
-
- {selectedTab.id} - {selectedTab.username}
-
-
+
Modal
+
Open Modal
+
, rightIcon:
}}
+ secondButton={{ text: "Confirmer", leftIcon:
, rightIcon:
}}>
+
Modal Content
+
+
+
Tabs
+
tabs={userDbArray} onSelect={onSelect} />
+
+ {selectedTab.id} - {selectedTab.username}
+
+
Circle Progress
@@ -134,67 +149,147 @@ export default function DesignSystem() {
Buttons
-
Primary
-
+ } rightIcon={} variant={EButtonVariant.PRIMARY}>
Primary
-
+ }
+ rightIcon={}
+ variant={EButtonVariant.PRIMARY}
+ styleType={EButtonStyleType.OUTLINED}>
+ Primary
+
+
}
+ rightIcon={
}
+ variant={EButtonVariant.PRIMARY}
+ styleType={EButtonStyleType.TEXT}>
Primary
-
Secondary
-
+ } rightIcon={} variant={EButtonVariant.SECONDARY}>
Secondary
-
+ }
+ rightIcon={}
+ variant={EButtonVariant.SECONDARY}
+ styleType={EButtonStyleType.OUTLINED}>
+ Secondary
+
+
}
+ rightIcon={
}
+ variant={EButtonVariant.SECONDARY}
+ styleType={EButtonStyleType.TEXT}>
Secondary
-
Neutral
-
+ } rightIcon={} variant={EButtonVariant.NEUTRAL}>
Neutral
-
+ }
+ rightIcon={}
+ variant={EButtonVariant.NEUTRAL}
+ styleType={EButtonStyleType.OUTLINED}>
+ Neutral
+
+
}
+ rightIcon={
}
+ variant={EButtonVariant.NEUTRAL}
+ styleType={EButtonStyleType.TEXT}>
Neutral
-
Error
-
+ } rightIcon={} variant={EButtonVariant.ERROR}>
Error
-
+ }
+ rightIcon={}
+ variant={EButtonVariant.ERROR}
+ styleType={EButtonStyleType.OUTLINED}>
+ Error
+
+
}
+ rightIcon={
}
+ variant={EButtonVariant.ERROR}
+ styleType={EButtonStyleType.TEXT}>
Error
-
Warning
-
+ } rightIcon={} variant={EButtonVariant.WARNING}>
Warning
-
+ }
+ rightIcon={}
+ variant={EButtonVariant.WARNING}
+ styleType={EButtonStyleType.OUTLINED}>
+ Warning
+
+
}
+ rightIcon={
}
+ variant={EButtonVariant.WARNING}
+ styleType={EButtonStyleType.TEXT}>
Warning
-
SUCCESS
-
- SUCCESS
+ } rightIcon={} variant={EButtonVariant.SUCCESS}>
+ Success
-
- SUCCESS
+ }
+ rightIcon={}
+ variant={EButtonVariant.SUCCESS}
+ styleType={EButtonStyleType.OUTLINED}>
+ Success
+
+
}
+ rightIcon={
}
+ variant={EButtonVariant.SUCCESS}
+ styleType={EButtonStyleType.TEXT}>
+ Success
-
INFO
-
- INFO
+ } rightIcon={} variant={EButtonVariant.INFO}>
+ Info
-
- INFO
+ }
+ rightIcon={}
+ variant={EButtonVariant.INFO}
+ styleType={EButtonStyleType.OUTLINED}>
+ Info
+
}
+ rightIcon={
}
+ variant={EButtonVariant.INFO}
+ styleType={EButtonStyleType.TEXT}>
+ Info
+
+
+
+ } variant={EIconButtonVariant.DEFAULT} />
+ } variant={EIconButtonVariant.NEUTRAL} />
+ } variant={EIconButtonVariant.PRIMARY} />
+ } variant={EIconButtonVariant.ERROR} />
+ } variant={EIconButtonVariant.SUCCESS} />
+ } variant={EIconButtonVariant.WARNING} />
+ } variant={EIconButtonVariant.INFO} />
+ } variant={EIconButtonVariant.INFO} disabled />
diff --git a/src/front/Components/Layouts/Folder/AskDocuments/ParameterDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/ParameterDocuments/index.tsx
index 17e822e2..6b0a7759 100644
--- a/src/front/Components/Layouts/Folder/AskDocuments/ParameterDocuments/index.tsx
+++ b/src/front/Components/Layouts/Folder/AskDocuments/ParameterDocuments/index.tsx
@@ -1,4 +1,4 @@
-import Confirm from "@Front/Components/DesignSystem/Modal/Confirm";
+import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm";
import classes from "./classes.module.scss";
import TextField from "@Front/Components/DesignSystem/Form/TextField";
import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField";
diff --git a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx
index 1261b148..b477af69 100644
--- a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx
+++ b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx
@@ -1,4 +1,4 @@
-import PlusIcon from "@Assets/Icons/plus.svg";
+import { PlusIcon } from "@heroicons/react/24/outline";
import Documents from "@Front/Api/LeCoffreApi/Notary/Documents/Documents";
import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders";
import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button";
@@ -75,9 +75,7 @@ class AskDocumentsClass extends BasePage
{
}
variant={EButtonVariant.PRIMARY}
styleType={EButtonStyleType.TEXT}
onClick={this.openModal}>
diff --git a/src/front/Components/Layouts/Folder/FolderInformation/ClientSection/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/ClientSection/index.tsx
index a70ab2d2..f9727d63 100644
--- a/src/front/Components/Layouts/Folder/FolderInformation/ClientSection/index.tsx
+++ b/src/front/Components/Layouts/Folder/FolderInformation/ClientSection/index.tsx
@@ -41,7 +41,7 @@ export default class ClientSection extends React.Component
{
{this.renderCustomerFolders()}
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
-
+ }>
Ajouter un client
@@ -56,7 +56,7 @@ export default class ClientSection extends React.Component {
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
-
+ }>
Ajouter un client
diff --git a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx
index d93b8bcb..26ff7502 100644
--- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx
+++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx
@@ -4,7 +4,7 @@ import OfficeFolderAnchors from "@Front/Api/LeCoffreApi/Notary/OfficeFolderAncho
import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button";
import FolderBoxInformation, { EFolderBoxInformationType } from "@Front/Components/DesignSystem/FolderBoxInformation";
import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField";
-import Confirm from "@Front/Components/DesignSystem/Modal/Confirm";
+import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm";
import QuantityProgressBar from "@Front/Components/DesignSystem/QuantityProgressBar";
import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography";
import DefaultNotaryDashboard from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard";
@@ -96,7 +96,7 @@ class FolderInformationClass extends BasePage {
Informations du dossier