diff --git a/src/front/Components/DesignSystem/Button/classes.module.scss b/src/front/Components/DesignSystem/Button/classes.module.scss index d0774f39..cc21022a 100644 --- a/src/front/Components/DesignSystem/Button/classes.module.scss +++ b/src/front/Components/DesignSystem/Button/classes.module.scss @@ -90,7 +90,7 @@ } } - &[fullwidth="true"] { + &[fullwidthattr="true"] { width: 100%; flex: 1; } diff --git a/src/front/Components/DesignSystem/Button/index.tsx b/src/front/Components/DesignSystem/Button/index.tsx index aeb17345..5c6e1cd8 100644 --- a/src/front/Components/DesignSystem/Button/index.tsx +++ b/src/front/Components/DesignSystem/Button/index.tsx @@ -13,7 +13,7 @@ type IProps = { onClick?: React.MouseEventHandler | undefined; children?: React.ReactNode; variant?: EButtonVariant; - fullwidth?: "true" | "false"; + fullwidth?: boolean; icon?: string; iconstyle?: CSSProperties; disabled?: boolean; @@ -23,12 +23,12 @@ type IProps = { }; export default function Button(props: IProps) { - const { + let { variant = EButtonVariant.PRIMARY, disabled = false, type = "button", isloading = "false", - fullwidth = "false", + fullwidth = false, iconposition = "right", onClick, children, @@ -36,7 +36,10 @@ export default function Button(props: IProps) { iconstyle, } = props; - const attributes = { ...props, variant, disabled, type, isloading, fullwidth }; + const fullwidthattr = fullwidth.toString(); + const isloadingattr = isloading.toString(); + + const attributes = { ...props, variant, disabled, type, isloadingattr, fullwidthattr }; delete attributes.icon; delete attributes.iconstyle; delete attributes.iconposition; diff --git a/src/front/Components/DesignSystem/Form/Elements/InputField/classes.module.scss b/src/front/Components/DesignSystem/Form/Elements/InputField/classes.module.scss index dc8f366a..7b70c608 100644 --- a/src/front/Components/DesignSystem/Form/Elements/InputField/classes.module.scss +++ b/src/front/Components/DesignSystem/Form/Elements/InputField/classes.module.scss @@ -21,7 +21,7 @@ align-items: center; padding: 24px; gap: 10px; - width: 530px; + width: 100%; height: 70px; border: 1px solid $grey-medium; @@ -98,7 +98,7 @@ padding: 24px; gap: 10px; - width: 530px; + width: 100%; height: 70px; border: 1px solid $grey-medium; @@ -111,7 +111,6 @@ position: absolute; background: $white; transform: translateY(35px); - transition: transform 0.3s ease-in-out; } &:focus { diff --git a/src/front/Components/DesignSystem/RadioBox/index.tsx b/src/front/Components/DesignSystem/RadioBox/index.tsx index 2e13a657..5db4f30e 100644 --- a/src/front/Components/DesignSystem/RadioBox/index.tsx +++ b/src/front/Components/DesignSystem/RadioBox/index.tsx @@ -9,6 +9,7 @@ type IProps = { toolTip?: string; defaultChecked?: boolean; onChange?: (event: React.ChangeEvent) => void; + value: string; }; export default class RadioBox extends React.Component { @@ -16,7 +17,13 @@ export default class RadioBox extends React.Component { return ( diff --git a/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss index 7388ab8c..76ecc3ff 100644 --- a/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss +++ b/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss @@ -15,7 +15,9 @@ } .sides { width: 50%; - + @media (max-width: $screen-m) { + width: 100%; + } &.image-container { display: flex; align-items: center; diff --git a/src/front/Components/Layouts/DesignSystem/index.tsx b/src/front/Components/Layouts/DesignSystem/index.tsx index 66327d96..ae937e9b 100644 --- a/src/front/Components/Layouts/DesignSystem/index.tsx +++ b/src/front/Components/Layouts/DesignSystem/index.tsx @@ -118,10 +118,12 @@ export default class DesignSystem extends BasePage {
RadioBox component
- + Radio Box 1 - Radio Box 2 + + Radio Box 2 +
diff --git a/src/front/Components/Layouts/Folder/CreateFolder/classes.module.scss b/src/front/Components/Layouts/Folder/CreateFolder/classes.module.scss index dc540580..ddfaeb8f 100644 --- a/src/front/Components/Layouts/Folder/CreateFolder/classes.module.scss +++ b/src/front/Components/Layouts/Folder/CreateFolder/classes.module.scss @@ -1,6 +1,12 @@ +@import "@Themes/constants.scss"; + .root { - margin: 64px 0 0 64px; + padding: 64px 0 0 64px; width: 530px; + @media (max-width: $screen-m) { + width: 100%; + padding: 64px 16px 0 16px; + } .title { margin-top: 24px; } @@ -26,4 +32,11 @@ gap: 16px; } } + + .collaborators-container { + margin-top: 32px; + } + .buttons-container { + margin-top: 32px; + } } diff --git a/src/front/Components/Layouts/Folder/CreateFolder/index.tsx b/src/front/Components/Layouts/Folder/CreateFolder/index.tsx index 541516dc..7ad48d93 100644 --- a/src/front/Components/Layouts/Folder/CreateFolder/index.tsx +++ b/src/front/Components/Layouts/Folder/CreateFolder/index.tsx @@ -6,14 +6,38 @@ import RightImage from "@Front/Assets/images/create-folder/right-image.png"; import BackArrow from "@Front/Components/Elements/BackArrow"; import Form from "@Front/Components/DesignSystem/Form"; import InputField from "@Front/Components/DesignSystem/Form/Elements/InputField"; -import Select from "@Front/Components/DesignSystem/Select"; +import Select, { IOption } from "@Front/Components/DesignSystem/Select"; import RadioBox from "@Front/Components/DesignSystem/RadioBox"; +import Button from "@Front/Components/DesignSystem/Button"; +import MultiSelect from "@Front/Components/DesignSystem/MultiSelect"; type IProps = {}; -type IState = {}; +type IState = { + folder_access: string; +}; export default class CreateFolder extends BasePage { + private collaboratorsOptions: IOption[] = [ + { label: "John Doe", value: "john_doe" }, + { label: "Éric Dupont", value: "eric_dupont" }, + { label: "Julien Doe", value: "julien_doe" }, + { label: "Nathalie Costa", value: "nathalie_costa" }, + { label: "Max Durant", value: "max_durant" }, + { label: "Jane Doe", value: "jane_doe" }, + ]; + + private actsOptions: IOption[] = [ + { label: "Divorce", value: "divorce" }, + { label: "Succession", value: "succession" }, + { label: "Vente immobilière", value: "vente_immobiliere" }, + ]; public constructor(props: IProps) { super(props); + + this.state = { + folder_access: "", + }; + + this.radioOnChange = this.radioOnChange.bind(this); } // TODO: Message if the user has not created any folder yet @@ -32,15 +56,7 @@ export default class CreateFolder extends BasePage {
- {}} placeholder={"Type d’acte"} />
@@ -48,10 +64,25 @@ export default class CreateFolder extends BasePage { Accès au dossier
- + Sélectionner tout l'office - Sélectionner certains collaborateurs + + Sélectionner certains collaborateurs + +
+ {this.state.folder_access === "select_collaborators" && ( +
+ +
+ )} +
+
@@ -59,5 +90,12 @@ export default class CreateFolder extends BasePage { ); } + public override async componentDidMount() {} + + private radioOnChange(e: React.ChangeEvent) { + this.setState({ + folder_access: e.target.value, + }); + } }