@axa-fr/canopee-react 1.8.1-alpha.1 → 2.0.0-RC.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +21 -19
- package/dist/client.js +21 -19
- package/dist/distributeur/Accordion/Accordion.d.ts +1 -3
- package/dist/distributeur/Accordion/Accordion.js +2 -5
- package/dist/distributeur/Accordion/CollapseCard.d.ts +1 -3
- package/dist/distributeur/Accordion/CollapseCard.js +2 -4
- package/dist/distributeur/Accordion/Header.d.ts +1 -3
- package/dist/distributeur/Accordion/Header.js +1 -2
- package/dist/distributeur/Action/Action.d.ts +8 -4
- package/dist/distributeur/Action/Action.js +4 -5
- package/dist/distributeur/Button/Button.d.ts +9 -7
- package/dist/distributeur/Button/Button.js +8 -2
- package/dist/distributeur/ButtonMultiActions/ButtonMultiActions.d.ts +10 -0
- package/dist/distributeur/ButtonMultiActions/ButtonMultiActions.js +51 -0
- package/dist/distributeur/ButtonMultiActions/index.d.ts +2 -0
- package/dist/distributeur/ButtonMultiActions/index.js +1 -0
- package/dist/distributeur/Card/BaseCard.d.ts +14 -0
- package/dist/distributeur/Card/BaseCard.js +23 -0
- package/dist/distributeur/CardButton/CardButton.d.ts +18 -0
- package/dist/distributeur/CardButton/CardButton.js +12 -0
- package/dist/distributeur/ClickableGhost.d.ts +36 -0
- package/dist/distributeur/ClickableGhost.js +26 -0
- package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +6 -3
- package/dist/distributeur/Form/Checkbox/Checkbox.js +11 -6
- package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +6 -3
- package/dist/distributeur/Form/Checkbox/CheckboxInput.js +5 -5
- package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +7 -5
- package/dist/distributeur/Form/Checkbox/CheckboxItem.js +5 -5
- package/dist/distributeur/Form/Choice/Choice.d.ts +6 -5
- package/dist/distributeur/Form/Choice/Choice.js +4 -4
- package/dist/distributeur/Form/Choice/ChoiceInput.d.ts +6 -3
- package/dist/distributeur/Form/Choice/ChoiceInput.js +2 -4
- package/dist/distributeur/Form/Date/Date.d.ts +5 -3
- package/dist/distributeur/Form/Date/Date.js +5 -5
- package/dist/distributeur/Form/Date/DateInput.d.ts +4 -1
- package/dist/distributeur/Form/Date/DateInput.js +2 -4
- package/dist/distributeur/Form/Experimental/DateInput.d.ts +31 -0
- package/dist/distributeur/Form/Experimental/DateInput.js +27 -0
- package/dist/distributeur/Form/Experimental/Input.d.ts +5 -1
- package/dist/distributeur/Form/Experimental/Input.js +4 -4
- package/dist/distributeur/Form/Experimental/InputContainer.d.ts +4 -1
- package/dist/distributeur/Form/Experimental/InputContainer.js +2 -2
- package/dist/distributeur/Form/Experimental/InputUnit.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/InputUnit.js +1 -1
- package/dist/distributeur/Form/Experimental/ItemMessage.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/ItemMessage.js +1 -1
- package/dist/distributeur/Form/Experimental/Label.d.ts +1 -2
- package/dist/distributeur/Form/Experimental/Legend.d.ts +12 -0
- package/dist/distributeur/Form/Experimental/Legend.js +3 -0
- package/dist/distributeur/Form/Experimental/Radio/AddRadioCard.d.ts +7 -0
- package/dist/distributeur/Form/Experimental/Radio/AddRadioCard.js +14 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioButton.d.ts +13 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioButton.js +3 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioCard.d.ts +10 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioCard.js +13 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioGroup.d.ts +8 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioGroup.js +10 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioInput.d.ts +18 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioInput.js +34 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioItem.d.ts +4 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioItem.js +10 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioText.d.ts +6 -0
- package/dist/distributeur/Form/Experimental/Radio/RadioText.js +3 -0
- package/dist/distributeur/Form/Experimental/Radio/_radioInputOptions.d.ts +8 -0
- package/dist/distributeur/Form/Experimental/Radio/_radioInputOptions.js +7 -0
- package/dist/distributeur/Form/Experimental/Select.d.ts +8 -0
- package/dist/distributeur/Form/Experimental/Select.js +16 -0
- package/dist/distributeur/Form/Experimental/SelectInput.d.ts +36 -0
- package/dist/distributeur/Form/Experimental/SelectInput.js +26 -0
- package/dist/distributeur/Form/Experimental/TextInput.d.ts +4 -1
- package/dist/distributeur/Form/Experimental/TextInput.js +4 -4
- package/dist/distributeur/Form/Experimental/index.d.ts +11 -0
- package/dist/distributeur/Form/Experimental/index.js +9 -0
- package/dist/distributeur/Form/Experimental/types.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/useInput.hook.js +1 -1
- package/dist/distributeur/Form/File/File.d.ts +1 -3
- package/dist/distributeur/Form/File/File.js +1 -2
- package/dist/distributeur/Form/File/FileInput.d.ts +3 -1
- package/dist/distributeur/Form/File/FileInput.js +2 -2
- package/dist/distributeur/Form/File/FileLine.d.ts +1 -2
- package/dist/distributeur/Form/File/FileLine.js +6 -3
- package/dist/distributeur/Form/File/FileTable.d.ts +1 -2
- package/dist/distributeur/Form/File/FileTable.js +6 -3
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.js +1 -1
- package/dist/distributeur/Form/NestedQuestion/NestedQuestion.js +7 -3
- package/dist/distributeur/Form/Number/Number.d.ts +5 -5
- package/dist/distributeur/Form/Number/Number.js +6 -7
- package/dist/distributeur/Form/Number/NumberInput.js +1 -1
- package/dist/distributeur/Form/Radio/Radio.d.ts +12 -23
- package/dist/distributeur/Form/Radio/Radio.js +4 -4
- package/dist/distributeur/Form/Radio/RadioInput.d.ts +6 -3
- package/dist/distributeur/Form/Radio/RadioInput.js +4 -4
- package/dist/distributeur/Form/Radio/RadioItem.d.ts +4 -3
- package/dist/distributeur/Form/Radio/RadioItem.js +5 -5
- package/dist/distributeur/Form/Select/Select.d.ts +8 -340
- package/dist/distributeur/Form/Select/Select.js +5 -6
- package/dist/distributeur/Form/Select/SelectBase.d.ts +6 -23
- package/dist/distributeur/Form/Select/SelectBase.js +4 -9
- package/dist/distributeur/Form/Select/SelectDefault.d.ts +7 -4
- package/dist/distributeur/Form/Select/SelectDefault.js +4 -4
- package/dist/distributeur/Form/Select/SelectInput.d.ts +9 -376
- package/dist/distributeur/Form/Select/SelectInput.js +2 -4
- package/dist/distributeur/Form/Select/index.d.ts +0 -1
- package/dist/distributeur/Form/Select/index.js +0 -1
- package/dist/distributeur/Form/Text/Text.d.ts +5 -3
- package/dist/distributeur/Form/Text/Text.js +5 -5
- package/dist/distributeur/Form/Text/TextInput.d.ts +4 -1
- package/dist/distributeur/Form/Text/TextInput.js +2 -4
- package/dist/distributeur/Form/Textarea/Textarea.d.ts +8 -4
- package/dist/distributeur/Form/Textarea/Textarea.js +5 -5
- package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +4 -1
- package/dist/distributeur/Form/Textarea/TextareaInput.js +2 -4
- package/dist/distributeur/Form/core/Field.d.ts +4 -23
- package/dist/distributeur/Form/core/Field.js +23 -16
- package/dist/distributeur/Form/core/FieldError.js +5 -2
- package/dist/distributeur/Form/core/getOptionClassName.d.ts +1 -1
- package/dist/distributeur/Form/core/getOptionClassName.js +2 -6
- package/dist/distributeur/Form/core/index.d.ts +0 -8
- package/dist/distributeur/Form/core/index.js +0 -4
- package/dist/distributeur/HelpButton/index.d.ts +1 -1
- package/dist/distributeur/HelpButton/index.js +4 -6
- package/dist/distributeur/ItemFormHelper/ItemFormHelper.d.ts +8 -0
- package/dist/distributeur/ItemFormHelper/ItemFormHelper.js +31 -0
- package/dist/distributeur/Layout/Footer/Footer.d.ts +5 -3
- package/dist/distributeur/Layout/Footer/Footer.js +2 -2
- package/dist/distributeur/Layout/Header/Header.d.ts +1 -3
- package/dist/distributeur/Layout/Header/Header.js +1 -2
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +1 -2
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.js +7 -4
- package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -3
- package/dist/distributeur/Layout/Header/Infos/Infos.js +1 -2
- package/dist/distributeur/Layout/Header/Name/Name.d.ts +1 -3
- package/dist/distributeur/Layout/Header/Name/Name.js +2 -3
- package/dist/distributeur/Layout/Header/NavBar/NavBar.js +1 -6
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -3
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.js +7 -3
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +2 -2
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.js +10 -3
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +1 -2
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.js +7 -4
- package/dist/distributeur/Layout/Header/User/User.d.ts +1 -11
- package/dist/distributeur/Layout/Header/User/User.js +1 -2
- package/dist/distributeur/Link/Link.d.ts +4 -1
- package/dist/distributeur/Link/Link.js +3 -4
- package/dist/distributeur/Link/LinkAnchor.d.ts +8 -7
- package/dist/distributeur/Link/LinkAnchor.js +5 -5
- package/dist/distributeur/Loader/ItemLoader.d.ts +4 -0
- package/dist/distributeur/Loader/ItemLoader.js +8 -0
- package/dist/distributeur/Loader/Loader.d.ts +7 -10
- package/dist/distributeur/Loader/Loader.js +12 -27
- package/dist/distributeur/Loader/SquareLoader.d.ts +15 -0
- package/dist/distributeur/Loader/SquareLoader.js +33 -0
- package/dist/distributeur/Messages/Message.d.ts +2 -6
- package/dist/distributeur/Messages/Message.js +3 -14
- package/dist/distributeur/ModalAgent/BooleanModal.d.ts +4 -6
- package/dist/distributeur/ModalAgent/BooleanModal.js +9 -6
- package/dist/distributeur/ModalAgent/Modal.d.ts +5 -7
- package/dist/distributeur/ModalAgent/Modal.js +10 -19
- package/dist/distributeur/ModalAgent/components/Body.d.ts +2 -5
- package/dist/distributeur/ModalAgent/components/Body.js +1 -2
- package/dist/distributeur/ModalAgent/components/Footer.d.ts +2 -5
- package/dist/distributeur/ModalAgent/components/Footer.js +1 -2
- package/dist/distributeur/ModalAgent/components/Header.d.ts +1 -11
- package/dist/distributeur/ModalAgent/components/Header.js +2 -3
- package/dist/distributeur/ModalAgent/components/HeaderBase.d.ts +2 -5
- package/dist/distributeur/ModalAgent/components/HeaderBase.js +1 -2
- package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -3
- package/dist/distributeur/Popover/AnimatedPopover.js +1 -2
- package/dist/distributeur/Popover/Popover.d.ts +1 -3
- package/dist/distributeur/Popover/Popover.js +2 -2
- package/dist/distributeur/Popover/Popover.types.d.ts +0 -2
- package/dist/distributeur/Popover/PopoverBase.d.ts +1 -3
- package/dist/distributeur/Popover/PopoverBase.js +2 -2
- package/dist/distributeur/Popover/PopoverClick.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverClick.js +2 -2
- package/dist/distributeur/Popover/PopoverOver.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverOver.js +2 -2
- package/dist/distributeur/Restitution/ArticleRestitution.d.ts +2 -5
- package/dist/distributeur/Restitution/ArticleRestitution.js +1 -2
- package/dist/distributeur/Restitution/HeaderRestitution.d.ts +1 -3
- package/dist/distributeur/Restitution/HeaderRestitution.js +1 -2
- package/dist/distributeur/Restitution/Restitution.d.ts +1 -3
- package/dist/distributeur/Restitution/Restitution.js +2 -2
- package/dist/distributeur/Restitution/SectionRestitution.d.ts +1 -3
- package/dist/distributeur/Restitution/SectionRestitution.js +1 -2
- package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +1 -3
- package/dist/distributeur/Restitution/SectionRestitutionColumn.js +1 -2
- package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +1 -3
- package/dist/distributeur/Restitution/SectionRestitutionRow.js +5 -9
- package/dist/distributeur/Restitution/SectionRestitutionTitle.d.ts +1 -3
- package/dist/distributeur/Restitution/SectionRestitutionTitle.js +1 -2
- package/dist/distributeur/Steps/Step.d.ts +1 -1
- package/dist/distributeur/Steps/Step.js +4 -4
- package/dist/distributeur/Steps/StepBase.d.ts +1 -3
- package/dist/distributeur/Steps/StepBase.js +1 -2
- package/dist/distributeur/Steps/Steps.d.ts +1 -3
- package/dist/distributeur/Steps/Steps.js +1 -2
- package/dist/distributeur/Steps/VerticalStep.d.ts +2 -8
- package/dist/distributeur/Summary/index.d.ts +1 -1
- package/dist/distributeur/Summary/index.js +1 -2
- package/dist/distributeur/Svg/svgInjector.js +1 -0
- package/dist/distributeur/Table/Pagination/Items.d.ts +1 -2
- package/dist/distributeur/Table/Pagination/Items.js +8 -8
- package/dist/distributeur/Table/Pagination/Pager.d.ts +1 -2
- package/dist/distributeur/Table/Pagination/Pager.js +6 -3
- package/dist/distributeur/Table/Pagination/Paging.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/Paging.js +6 -3
- package/dist/distributeur/Table/TBody.d.ts +1 -5
- package/dist/distributeur/Table/TBody.js +1 -2
- package/dist/distributeur/Table/THead.d.ts +2 -5
- package/dist/distributeur/Table/THead.js +1 -2
- package/dist/distributeur/Table/Table.d.ts +6 -33
- package/dist/distributeur/Table/Table.js +1 -10
- package/dist/distributeur/Table/Td.d.ts +1 -5
- package/dist/distributeur/Table/Td.js +1 -2
- package/dist/distributeur/Table/Th.d.ts +2 -4
- package/dist/distributeur/Table/Th.js +2 -2
- package/dist/distributeur/Table/Tr.d.ts +2 -5
- package/dist/distributeur/Table/Tr.js +1 -2
- package/dist/distributeur/Table/index.d.ts +1 -1
- package/dist/distributeur/Tabs/components/Tab.d.ts +0 -4
- package/dist/distributeur/Tabs/components/TabsStateless.d.ts +3 -7
- package/dist/distributeur/Tabs/components/TabsStateless.js +2 -2
- package/dist/distributeur/Tag/Tag.d.ts +4 -6
- package/dist/distributeur/Tag/Tag.js +5 -5
- package/dist/distributeur/Title/Title.d.ts +4 -3
- package/dist/distributeur/Title/Title.js +5 -5
- package/dist/distributeur/utilities.d.ts +1 -1
- package/dist/distributeur/utilities.js +1 -1
- package/dist/distributeur-experimental.d.ts +2 -0
- package/dist/distributeur-experimental.js +2 -0
- package/dist/distributeur.d.ts +13 -21
- package/dist/distributeur.js +12 -17
- package/dist/prospect-client/AccordionCore/AccordionCoreCommon.d.ts +3 -5
- package/dist/prospect-client/AccordionCore/AccordionCoreCommon.js +10 -4
- package/dist/prospect-client/AppName/AppName.d.ts +44 -0
- package/dist/prospect-client/AppName/AppName.js +23 -0
- package/dist/prospect-client/Card/CardApollo.d.ts +1 -1
- package/dist/prospect-client/Card/CardApollo.js +1 -1
- package/dist/prospect-client/Card/CardCommon.d.ts +30 -2
- package/dist/prospect-client/Card/CardCommon.js +18 -1
- package/dist/prospect-client/Card/CardLF.d.ts +1 -1
- package/dist/prospect-client/Card/CardLF.js +1 -1
- package/dist/prospect-client/CardMessage/CardMessageCommon.js +6 -4
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +2 -2
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.js +5 -2
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +0 -4
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.js +2 -3
- package/dist/prospect-client/DataAgent/DataAgentCommon.js +2 -2
- package/dist/prospect-client/Divider/DividerCommon.d.ts +1 -2
- package/dist/prospect-client/Divider/DividerCommon.js +3 -3
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +1 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.js +1 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +2 -18
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +4 -4
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +1 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.js +1 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.d.ts +4 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.js +3 -3
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +2 -3
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.js +7 -3
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.d.ts +4 -1
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +2 -3
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +5 -6
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +5 -5
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.d.ts +4 -1
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.js +2 -3
- package/dist/prospect-client/Form/Dropdown/DropdownApollo.js +1 -1
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +7 -13
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +6 -6
- package/dist/prospect-client/Form/Dropdown/DropdownLF.js +1 -1
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.d.ts +4 -1
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.js +1 -2
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.d.ts +4 -1
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.js +4 -4
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.d.ts +4 -1
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.js +1 -2
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.d.ts +4 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.js +4 -5
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +5 -2
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +5 -7
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.d.ts +4 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.js +2 -3
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileApollo.js +1 -1
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileLF.js +1 -1
- package/dist/prospect-client/Form/InputDate/InputDateApollo.d.ts +4 -1
- package/dist/prospect-client/Form/InputDate/InputDateApollo.js +2 -3
- package/dist/prospect-client/Form/InputDate/InputDateAtom.d.ts +4 -1
- package/dist/prospect-client/Form/InputDate/InputDateAtom.js +2 -2
- package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +7 -13
- package/dist/prospect-client/Form/InputDate/InputDateCommon.js +8 -9
- package/dist/prospect-client/Form/InputDate/InputDateLF.d.ts +4 -1
- package/dist/prospect-client/Form/InputDate/InputDateLF.js +2 -3
- package/dist/prospect-client/Form/InputDate/InputDateTextAtom.d.ts +4 -1
- package/dist/prospect-client/Form/InputDate/InputDateTextAtom.js +4 -4
- package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.js +1 -1
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +7 -13
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +12 -8
- package/dist/prospect-client/Form/InputPhone/InputPhoneLF.js +1 -1
- package/dist/prospect-client/Form/InputText/InputTextApollo.d.ts +4 -1
- package/dist/prospect-client/Form/InputText/InputTextApollo.js +2 -3
- package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +7 -13
- package/dist/prospect-client/Form/InputText/InputTextCommon.js +9 -8
- package/dist/prospect-client/Form/InputText/InputTextLF.d.ts +4 -1
- package/dist/prospect-client/Form/InputText/InputTextLF.js +2 -3
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.d.ts +4 -2
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.js +4 -5
- package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.d.ts +2 -22
- package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.js +4 -5
- package/dist/prospect-client/Form/ItemMessage/{ItemMessageCommon.d.ts → ItemMessage.d.ts} +1 -0
- package/dist/prospect-client/Form/ItemMessage/{ItemMessageCommon.js → ItemMessage.js} +10 -9
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.d.ts +7 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.js +6 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.d.ts +8 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.js +9 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.d.ts +7 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.js +6 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.d.ts +4 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.js +5 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.d.ts +11 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.js +2 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.d.ts +4 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.js +5 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +3 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.js +6 -0
- package/dist/prospect-client/Form/Radio/{CardRadioOption/CardRadioOptionCommon.d.ts → CardRadio/CardRadioCommon.d.ts} +7 -8
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +16 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +3 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.js +6 -0
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +3 -3
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +9 -33
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +6 -8
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +3 -3
- package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +2 -2
- package/dist/prospect-client/Form/Radio/Radio/RadioCommon.js +7 -5
- package/dist/prospect-client/Form/TextArea/TextAreaApollo.d.ts +4 -1
- package/dist/prospect-client/Form/TextArea/TextAreaApollo.js +2 -3
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +7 -8
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +6 -6
- package/dist/prospect-client/Form/TextArea/TextAreaLF.d.ts +4 -1
- package/dist/prospect-client/Form/TextArea/TextAreaLF.js +2 -3
- package/dist/prospect-client/Header/HeaderApollo.d.ts +4 -0
- package/dist/prospect-client/Header/HeaderApollo.js +8 -0
- package/dist/prospect-client/Header/HeaderCommon.d.ts +22 -0
- package/dist/prospect-client/Header/HeaderCommon.js +37 -0
- package/dist/prospect-client/Header/HeaderLF.d.ts +4 -0
- package/dist/prospect-client/Header/HeaderLF.js +8 -0
- package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
- package/dist/prospect-client/Icon/IconCommon.js +8 -9
- package/dist/prospect-client/ItemMenu/ItemMenuApollo.d.ts +2 -0
- package/dist/prospect-client/ItemMenu/ItemMenuApollo.js +2 -0
- package/dist/prospect-client/ItemMenu/ItemMenuCommon.d.ts +22 -0
- package/dist/prospect-client/ItemMenu/ItemMenuCommon.js +18 -0
- package/dist/prospect-client/ItemMenu/ItemMenuLF.d.ts +2 -0
- package/dist/prospect-client/ItemMenu/ItemMenuLF.js +2 -0
- package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +4 -1
- package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.js +9 -6
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +12 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.js +12 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +12 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.js +12 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.d.ts +23 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.js +17 -0
- package/dist/prospect-client/Link/LinkCommon.d.ts +1 -5
- package/dist/prospect-client/Link/LinkCommon.js +2 -2
- package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +1 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoApollo.js +1 -1
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.d.ts +3 -7
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.js +3 -7
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoLF.js +1 -1
- package/dist/prospect-client/List/List/ListCommon.d.ts +27 -2
- package/dist/prospect-client/List/List/ListCommon.js +12 -0
- package/dist/prospect-client/Loader/LoaderCommon.d.ts +4 -1
- package/dist/prospect-client/Loader/LoaderCommon.js +4 -4
- package/dist/prospect-client/MenuBurger/MenuBurgerApollo.d.ts +4 -0
- package/dist/prospect-client/MenuBurger/MenuBurgerApollo.js +8 -0
- package/dist/prospect-client/MenuBurger/MenuBurgerCommon.d.ts +60 -0
- package/dist/prospect-client/MenuBurger/MenuBurgerCommon.js +34 -0
- package/dist/prospect-client/MenuBurger/MenuBurgerLF.d.ts +4 -0
- package/dist/prospect-client/MenuBurger/MenuBurgerLF.js +8 -0
- package/dist/prospect-client/MessageBar/MessageBarAction.d.ts +8 -0
- package/dist/prospect-client/MessageBar/MessageBarAction.js +11 -0
- package/dist/prospect-client/MessageBar/MessageBarApollo.d.ts +5 -0
- package/dist/prospect-client/MessageBar/MessageBarApollo.js +7 -0
- package/dist/prospect-client/MessageBar/MessageBarCommon.d.ts +26 -0
- package/dist/prospect-client/MessageBar/MessageBarCommon.js +33 -0
- package/dist/prospect-client/MessageBar/MessageBarDescription.d.ts +6 -0
- package/dist/prospect-client/MessageBar/MessageBarDescription.js +8 -0
- package/dist/prospect-client/MessageBar/MessageBarLF.d.ts +5 -0
- package/dist/prospect-client/MessageBar/MessageBarLF.js +7 -0
- package/dist/prospect-client/MessageBar/MessageBarSummary.d.ts +11 -0
- package/dist/prospect-client/MessageBar/MessageBarSummary.js +2 -0
- package/dist/prospect-client/MessageBar/types.d.ts +1 -0
- package/dist/prospect-client/MessageBar/types.js +1 -0
- package/dist/prospect-client/Modal/ModalApollo.d.ts +4 -1
- package/dist/prospect-client/Modal/ModalApollo.js +2 -5
- package/dist/prospect-client/Modal/ModalCommon.d.ts +4 -1
- package/dist/prospect-client/Modal/ModalCommon.js +1 -2
- package/dist/prospect-client/Modal/ModalLF.d.ts +4 -1
- package/dist/prospect-client/Modal/ModalLF.js +2 -5
- package/dist/prospect-client/Modal/components/ModalCore.d.ts +4 -1
- package/dist/prospect-client/Modal/components/ModalCore.js +3 -3
- package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.d.ts +0 -7
- package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.js +2 -12
- package/dist/prospect-client/Modal/types.d.ts +0 -15
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.d.ts +1 -5
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.js +1 -1
- package/dist/prospect-client/Skeleton/Skeleton.d.ts +61 -0
- package/dist/prospect-client/Skeleton/Skeleton.js +41 -0
- package/dist/prospect-client/SkeletonGrid/SkeletonGrid.d.ts +51 -0
- package/dist/prospect-client/SkeletonGrid/SkeletonGrid.js +37 -0
- package/dist/prospect-client/SkeletonList/SkeletonListApollo.d.ts +7 -0
- package/dist/prospect-client/SkeletonList/SkeletonListApollo.js +8 -2
- package/dist/prospect-client/SkeletonList/SkeletonListCommon.d.ts +21 -4
- package/dist/prospect-client/SkeletonList/SkeletonListCommon.js +18 -2
- package/dist/prospect-client/SkeletonList/SkeletonListLF.d.ts +7 -0
- package/dist/prospect-client/SkeletonList/SkeletonListLF.js +8 -2
- package/dist/prospect-client/Stepper/StepperApollo.js +3 -1
- package/dist/prospect-client/Stepper/StepperCommon.d.ts +13 -7
- package/dist/prospect-client/Stepper/StepperCommon.js +3 -4
- package/dist/prospect-client/Stepper/StepperLF.js +3 -1
- package/dist/prospect-client/TabBar/TabBarCommon.js +6 -3
- package/dist/prospect-client/TabMenu/TabMenu.d.ts +36 -0
- package/dist/prospect-client/TabMenu/TabMenu.helpers.d.ts +1 -0
- package/dist/prospect-client/TabMenu/TabMenu.helpers.js +12 -0
- package/dist/prospect-client/TabMenu/TabMenu.js +39 -0
- package/dist/prospect-client/Tag/TagCommon.js +6 -2
- package/dist/prospect-client/TagList/TagListApollo.d.ts +4 -0
- package/dist/prospect-client/TagList/TagListApollo.js +5 -0
- package/dist/prospect-client/TagList/TagListCommon.d.ts +10 -0
- package/dist/prospect-client/TagList/TagListCommon.js +16 -0
- package/dist/prospect-client/TagList/TagListLF.d.ts +4 -0
- package/dist/prospect-client/TagList/TagListLF.js +5 -0
- package/dist/prospect-client/Toggle/ToggleApollo.d.ts +4 -1
- package/dist/prospect-client/Toggle/ToggleApollo.js +1 -2
- package/dist/prospect-client/Toggle/ToggleCommon.d.ts +4 -3
- package/dist/prospect-client/Toggle/ToggleCommon.js +5 -5
- package/dist/prospect-client/Toggle/ToggleLF.d.ts +4 -1
- package/dist/prospect-client/Toggle/ToggleLF.js +1 -2
- package/dist/prospect.d.ts +17 -11
- package/dist/prospect.js +17 -11
- package/package.json +3 -3
- package/dist/distributeur/Form/Pass/Pass.d.ts +0 -12
- package/dist/distributeur/Form/Pass/Pass.js +0 -13
- package/dist/distributeur/Form/Pass/PassInput.d.ts +0 -13
- package/dist/distributeur/Form/Pass/PassInput.js +0 -34
- package/dist/distributeur/Form/Pass/index.d.ts +0 -2
- package/dist/distributeur/Form/Pass/index.js +0 -2
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +0 -23
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.js +0 -39
- package/dist/distributeur/Form/Slider/Slider.d.ts +0 -28
- package/dist/distributeur/Form/Slider/Slider.js +0 -40
- package/dist/distributeur/Form/Slider/SliderInput.d.ts +0 -9
- package/dist/distributeur/Form/Slider/SliderInput.js +0 -11
- package/dist/distributeur/Form/Slider/index.d.ts +0 -3
- package/dist/distributeur/Form/Slider/index.js +0 -3
- package/dist/distributeur/Form/core/Deprecated/Field.d.ts +0 -21
- package/dist/distributeur/Form/core/Deprecated/Field.js +0 -20
- package/dist/distributeur/Form/core/Deprecated/FieldForm.d.ts +0 -103
- package/dist/distributeur/Form/core/Deprecated/FieldForm.js +0 -162
- package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +0 -16
- package/dist/distributeur/Form/core/Deprecated/FieldInput.js +0 -14
- package/dist/distributeur/Form/core/useInputClassModifier.d.ts +0 -4
- package/dist/distributeur/Form/core/useInputClassModifier.js +0 -13
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.d.ts +0 -1
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.js +0 -6
- package/dist/distributeur/utilities/helpers/getComponentClassName.d.ts +0 -20
- package/dist/distributeur/utilities/helpers/getComponentClassName.js +0 -54
- package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.d.ts +0 -2
- package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.js +0 -2
- package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.d.ts +0 -2
- package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.js +0 -2
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo.d.ts +0 -3
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo.js +0 -6
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +0 -16
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF.d.ts +0 -3
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF.js +0 -6
- package/dist/prospect-client/Skeleton/SkeletonApollo.d.ts +0 -2
- package/dist/prospect-client/Skeleton/SkeletonApollo.js +0 -2
- package/dist/prospect-client/Skeleton/SkeletonCommon.d.ts +0 -19
- package/dist/prospect-client/Skeleton/SkeletonCommon.js +0 -11
- package/dist/prospect-client/Skeleton/SkeletonLF.d.ts +0 -2
- package/dist/prospect-client/Skeleton/SkeletonLF.js +0 -2
- package/dist/prospect-client/utilities/getComponentClassName.d.ts +0 -4
- package/dist/prospect-client/utilities/getComponentClassName.js +0 -30
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Loader from "@axa-fr/canopee-css/Item_Loader.svg";
|
|
3
|
+
import LoaderInverse from "@axa-fr/canopee-css/Item_Loader_Inverse.svg";
|
|
4
|
+
const DEFAULT_CLASS_NAME = "af-loader";
|
|
5
|
+
export const ItemLoader = ({ variant }) => {
|
|
6
|
+
const isInverse = variant === "fullscreen";
|
|
7
|
+
return (_jsx("img", { className: `${DEFAULT_CLASS_NAME}__icon`, src: isInverse ? LoaderInverse : Loader, "aria-hidden": "true", alt: "" }));
|
|
8
|
+
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Loader/Loader.css";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type LoaderProps = {
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import { type ItemLoaderVariant } from "./ItemLoader";
|
|
4
|
+
export type LoaderProps = {
|
|
5
5
|
className?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
children
|
|
9
|
-
/** @deprecated Use `className` instead. */
|
|
10
|
-
classModifier?: string;
|
|
6
|
+
text: string;
|
|
7
|
+
variant?: ItemLoaderVariant;
|
|
8
|
+
children?: ReactNode;
|
|
11
9
|
};
|
|
12
|
-
export declare const Loader: ({ className, text,
|
|
13
|
-
export {};
|
|
10
|
+
export declare const Loader: ({ className, text, variant, children, }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Loader/Loader.css";
|
|
3
|
-
import {} from "react";
|
|
4
3
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case "error":
|
|
16
|
-
return "Une erreur est survenue lors du chargement du composant";
|
|
17
|
-
default:
|
|
18
|
-
return "";
|
|
4
|
+
import { ItemLoader } from "./ItemLoader";
|
|
5
|
+
const LOADER_CLASS_NAME = "af-loader";
|
|
6
|
+
export const Loader = ({ className, text, variant = "fullscreen", children, }) => {
|
|
7
|
+
const loader = (_jsxs("section", { role: "alert", "aria-live": "assertive", "aria-busy": "true", className: getClassName({
|
|
8
|
+
baseClassName: LOADER_CLASS_NAME,
|
|
9
|
+
modifiers: [variant !== "inline" && variant],
|
|
10
|
+
className,
|
|
11
|
+
}), children: [_jsx(ItemLoader, { variant: variant }), _jsx("p", { className: `${LOADER_CLASS_NAME}__text`, children: text })] }));
|
|
12
|
+
if (variant === "fullscreen" && children) {
|
|
13
|
+
return (_jsxs(_Fragment, { children: [children, loader] }));
|
|
19
14
|
}
|
|
20
|
-
|
|
21
|
-
export const Loader = ({ className, text, children, classModifier, mode = "none", }) => {
|
|
22
|
-
const componentClassName = getClassName({
|
|
23
|
-
baseClassName: "af-loader",
|
|
24
|
-
modifiers: classModifier?.split(" "),
|
|
25
|
-
className,
|
|
26
|
-
});
|
|
27
|
-
const message = text || getText(mode);
|
|
28
|
-
const isLoaderVisible = mode !== "none";
|
|
29
|
-
const isLoaderInError = mode === "error";
|
|
30
|
-
return (_jsxs("div", { className: componentClassName, children: [children, isLoaderVisible ? (_jsx("div", { className: `${componentClassName} af-loader-on`, children: _jsxs("div", { className: "af-spinner", role: "alert", "aria-live": "assertive", "aria-busy": !isLoaderInError, "aria-label": message, children: [!isLoaderInError && _jsx("div", { className: "af-spinner__animation" }), _jsx("div", { className: "af-spinner__caption", children: message })] }) })) : null] }));
|
|
15
|
+
return loader;
|
|
31
16
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "@axa-fr/canopee-css/distributeur/Loader/SquareLoader.css";
|
|
3
|
+
export type SquareLoaderProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
mode?: LoaderMode;
|
|
6
|
+
text?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** @deprecated Use `className` instead. */
|
|
9
|
+
classModifier?: string;
|
|
10
|
+
};
|
|
11
|
+
export type LoaderMode = "none" | "get" | "post" | "delete" | "update" | "error";
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use `Loader` with `variant="fullscreen"` instead.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SquareLoader: ({ className, text, children, classModifier, mode, }: SquareLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
|
+
import "@axa-fr/canopee-css/distributeur/Loader/SquareLoader.css";
|
|
4
|
+
const getText = (index) => {
|
|
5
|
+
switch (index) {
|
|
6
|
+
case "get":
|
|
7
|
+
return "Chargement en cours";
|
|
8
|
+
case "post":
|
|
9
|
+
return "Sauvegarde en cours";
|
|
10
|
+
case "delete":
|
|
11
|
+
return "Suppression en cours";
|
|
12
|
+
case "update":
|
|
13
|
+
return "Mise à jour en cours";
|
|
14
|
+
case "error":
|
|
15
|
+
return "Une erreur est survenue lors du chargement du composant";
|
|
16
|
+
default:
|
|
17
|
+
return "";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `Loader` with `variant="fullscreen"` instead.
|
|
22
|
+
*/
|
|
23
|
+
export const SquareLoader = ({ className, text, children, classModifier, mode = "none", }) => {
|
|
24
|
+
const componentClassName = getClassName({
|
|
25
|
+
baseClassName: "af-square-loader",
|
|
26
|
+
modifiers: classModifier?.split(" "),
|
|
27
|
+
className,
|
|
28
|
+
});
|
|
29
|
+
const message = text || getText(mode);
|
|
30
|
+
const isLoaderVisible = mode !== "none";
|
|
31
|
+
const isLoaderInError = mode === "error";
|
|
32
|
+
return (_jsxs("div", { className: componentClassName, children: [children, isLoaderVisible ? (_jsx("div", { className: `${componentClassName} af-square-loader-on`, children: isLoaderInError ? (_jsx("div", { className: "af-spinner", role: "alert", "aria-live": "assertive", "aria-busy": "false", "aria-label": message, children: _jsx("div", { className: "af-spinner__caption", children: message }) })) : (_jsxs("div", { className: "af-spinner", role: "alert", "aria-live": "assertive", "aria-busy": "true", "aria-label": message, children: [_jsx("div", { className: "af-spinner__animation" }), _jsx("div", { className: "af-spinner__caption", children: message })] })) })) : null] }));
|
|
33
|
+
};
|
|
@@ -8,7 +8,7 @@ export type MessageProps = {
|
|
|
8
8
|
title: ReactNode;
|
|
9
9
|
/**
|
|
10
10
|
* URL of an svg icon to display in the sidebar of the message.
|
|
11
|
-
* If not provided, a default icon based on the
|
|
11
|
+
* If not provided, a default icon based on the variant will be used.
|
|
12
12
|
* <strong>This not recommended to use</strong>. Only use as an escape hatch.
|
|
13
13
|
*/
|
|
14
14
|
icon?: string;
|
|
@@ -28,10 +28,6 @@ export type MessageProps = {
|
|
|
28
28
|
* <div class="my-custom-class af-alert">My message</div>
|
|
29
29
|
*/
|
|
30
30
|
className?: string;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated Use `variant` instead.
|
|
33
|
-
*/
|
|
34
|
-
classModifier?: MessageVariants | "danger";
|
|
35
31
|
/**
|
|
36
32
|
* Variant of the message.
|
|
37
33
|
* This will determine the icon and the style of the message.
|
|
@@ -44,4 +40,4 @@ export type MessageProps = {
|
|
|
44
40
|
*/
|
|
45
41
|
closeButtonAriaLabel?: string;
|
|
46
42
|
};
|
|
47
|
-
export declare const Message: ({ className, onClose, icon, title, children,
|
|
43
|
+
export declare const Message: ({ className, onClose, icon, title, children, variant, closeButtonAriaLabel, }: PropsWithChildren<MessageProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,23 +21,12 @@ const getIconUrl = (type) => {
|
|
|
21
21
|
return errorSvg;
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
const
|
|
25
|
-
if (variant) {
|
|
26
|
-
return variant;
|
|
27
|
-
}
|
|
28
|
-
if (classModifier) {
|
|
29
|
-
return classModifier === "danger" ? "warning" : classModifier;
|
|
30
|
-
}
|
|
31
|
-
return "error"; // Default variant
|
|
32
|
-
};
|
|
33
|
-
export const Message = ({ className, onClose, icon, title, children, classModifier = "error", variant, // Backward compatibility
|
|
34
|
-
closeButtonAriaLabel = "close", }) => {
|
|
35
|
-
const safeVariant = getVariant(classModifier, variant);
|
|
24
|
+
export const Message = ({ className, onClose, icon, title, children, variant = "error", closeButtonAriaLabel = "close", }) => {
|
|
36
25
|
const componentClassName = getClassName({
|
|
37
26
|
baseClassName: "af-alert",
|
|
38
|
-
modifiers: [
|
|
27
|
+
modifiers: [variant],
|
|
39
28
|
className,
|
|
40
29
|
});
|
|
41
|
-
const iconSrc = icon ?? getIconUrl(
|
|
30
|
+
const iconSrc = icon ?? getIconUrl(variant);
|
|
42
31
|
return (_jsxs("div", { className: componentClassName, role: "alert", children: [_jsx("div", { className: "af-alert__sidebar", children: _jsx("div", { className: "af-alert__indicator", children: _jsx(Svg, { src: iconSrc, className: "af-alert__icon", role: "presentation" }) }) }), _jsxs("div", { className: "af-alert__content", children: [_jsx("div", { className: "af-alert__title", children: title }), children] }), onClose ? (_jsx("button", { onClick: onClose, "aria-label": closeButtonAriaLabel, type: "button", className: "af-alert__close-button", children: _jsx(Svg, { src: closeSvg, className: "af-alert__close-icon", role: "presentation" }) })) : null] }));
|
|
43
32
|
};
|
|
@@ -30,11 +30,9 @@ export type BooleanModalProps = React.DetailedHTMLProps<React.DialogHTMLAttribut
|
|
|
30
30
|
*/
|
|
31
31
|
cancelTitle?: string;
|
|
32
32
|
className?: string;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `size` prop instead.
|
|
35
|
-
* Class modifier for the modal. Can be used to apply custom styles.
|
|
36
|
-
*/
|
|
37
|
-
classModifier?: string;
|
|
38
33
|
};
|
|
39
|
-
declare const BooleanModal:
|
|
34
|
+
declare const BooleanModal: {
|
|
35
|
+
({ children, title, submitTitle, cancelTitle, className, onCancel, onSubmit, closeButtonAriaLabel, ...props }: BooleanModalProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
40
38
|
export { BooleanModal };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, {
|
|
3
|
-
import { Button,
|
|
2
|
+
import React, {} from "react";
|
|
3
|
+
import { Button, getClassName, Modal } from "../../distributeur";
|
|
4
4
|
import { Body } from "./components/Body";
|
|
5
5
|
import { Footer } from "./components/Footer";
|
|
6
6
|
import { Header } from "./components/Header";
|
|
7
7
|
const defaultClassName = "af-modal";
|
|
8
|
-
const BooleanModal =
|
|
9
|
-
const componentClassName =
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const BooleanModal = ({ children, title, submitTitle = "Valider", cancelTitle = "Annuler", className, onCancel, onSubmit, closeButtonAriaLabel, ...props }) => {
|
|
9
|
+
const componentClassName = getClassName({
|
|
10
|
+
baseClassName: defaultClassName,
|
|
11
|
+
className,
|
|
12
|
+
});
|
|
13
|
+
return (_jsxs(Modal, { className: componentClassName, onOutsideTap: onCancel, title: title, ...props, children: [_jsx(Header, { onCancel: onCancel, closeButtonAriaLabel: closeButtonAriaLabel, children: title }), _jsx(Body, { children: children }), _jsxs(Footer, { children: [_jsx(Button, { variant: "secondary", onClick: onCancel, children: cancelTitle }), _jsx(Button, { onClick: onSubmit, variant: "validated", children: submitTitle })] })] }));
|
|
14
|
+
};
|
|
12
15
|
BooleanModal.displayName = "BooleanModal";
|
|
13
16
|
export { BooleanModal };
|
|
@@ -12,14 +12,12 @@ export type ModalProps = React.DetailedHTMLProps<React.DialogHTMLAttributes<HTML
|
|
|
12
12
|
title?: string;
|
|
13
13
|
className?: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* Class modifier for the modal. Can be used to apply custom styles.
|
|
17
|
-
*/
|
|
18
|
-
classModifier?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Size of the modal. Overrides classModifier if set
|
|
15
|
+
* Size of the modal.
|
|
21
16
|
*/
|
|
22
17
|
ref?: React.Ref<HTMLDialogElement>;
|
|
23
18
|
};
|
|
24
|
-
declare const Modal:
|
|
19
|
+
declare const Modal: {
|
|
20
|
+
({ className, title, onOutsideTap, children, size, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
25
23
|
export { Modal };
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const Modal =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
effectiveClassModifier = size;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
effectiveClassModifier = classModifier;
|
|
17
|
-
}
|
|
18
|
-
const componentClassName = getComponentClassName(className, effectiveClassModifier, "af-modal");
|
|
2
|
+
import {} from "react";
|
|
3
|
+
import { getClassName } from "../utilities";
|
|
4
|
+
const Modal = ({ className, title = "", onOutsideTap, children, size, ...props }) => {
|
|
5
|
+
const componentClassName = getClassName({
|
|
6
|
+
baseClassName: "af-modal",
|
|
7
|
+
modifiers: [size],
|
|
8
|
+
className,
|
|
9
|
+
});
|
|
19
10
|
return (
|
|
20
11
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events
|
|
21
|
-
_jsx("dialog", { "aria-label": title, className: componentClassName, onClick: onOutsideTap,
|
|
22
|
-
}
|
|
12
|
+
_jsx("dialog", { "aria-label": title, className: componentClassName, onClick: onOutsideTap, ...props, children: _jsx("div", { className: "af-modal__dialog", onClick: (event) => event.stopPropagation(), children: _jsx("div", { className: "af-modal__content", children: children }) }) }));
|
|
13
|
+
};
|
|
23
14
|
Modal.displayName = "Modal";
|
|
24
15
|
export { Modal };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export type BodyProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2
|
-
|
|
3
|
-
classModifier?: string;
|
|
4
|
-
};
|
|
5
|
-
declare const Body: ({ children, className, classModifier, ...otherProps }: BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export type BodyProps = React.HTMLAttributes<HTMLDivElement> & {};
|
|
2
|
+
declare const Body: ({ children, className, ...otherProps }: BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
export { Body };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../../utilities/helpers/getClassName";
|
|
3
|
-
const Body = ({ children, className,
|
|
3
|
+
const Body = ({ children, className, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-modal__body",
|
|
6
|
-
modifiers: classModifier?.split(" "),
|
|
7
6
|
className,
|
|
8
7
|
});
|
|
9
8
|
return (_jsx("section", { className: componentClassName, ...otherProps, children: children }));
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export type FooterProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2
|
-
|
|
3
|
-
classModifier?: string;
|
|
4
|
-
};
|
|
5
|
-
declare const Footer: ({ classModifier, className, ...rest }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export type FooterProps = React.HTMLAttributes<HTMLDivElement> & {};
|
|
2
|
+
declare const Footer: ({ className, ...rest }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
export { Footer };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../../utilities/helpers/getClassName";
|
|
3
|
-
const Footer = ({
|
|
3
|
+
const Footer = ({ className, ...rest }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-modal__footer",
|
|
6
|
-
modifiers: classModifier?.split(" "),
|
|
7
6
|
className,
|
|
8
7
|
});
|
|
9
8
|
return _jsx("footer", { ...rest, className: componentClassName });
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { MouseEventHandler, ReactNode } from "react";
|
|
2
2
|
export type HeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
/**
|
|
4
|
-
* Text displayed in the header.
|
|
5
|
-
* @deprecated Use `children` instead to allow for more flexible content.
|
|
6
|
-
*/
|
|
7
|
-
title?: string;
|
|
8
3
|
/**
|
|
9
4
|
* Text displayed in the header, overrides `title` if both are set.
|
|
10
5
|
*/
|
|
@@ -17,15 +12,10 @@ export type HeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
17
12
|
* Aria label for the close button, used for accessibility.
|
|
18
13
|
*/
|
|
19
14
|
closeButtonAriaLabel?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Class modifier for the header. Can be used to apply custom styles.
|
|
22
|
-
* @deprecated Use `className` instead.
|
|
23
|
-
*/
|
|
24
|
-
classModifier?: string;
|
|
25
15
|
/**
|
|
26
16
|
* Prop to override the style of the header. Will totally remove the default styles.
|
|
27
17
|
*/
|
|
28
18
|
className?: string;
|
|
29
19
|
};
|
|
30
|
-
declare const Header: ({ className,
|
|
20
|
+
declare const Header: ({ className, closeButtonAriaLabel, onCancel, children, ...props }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
21
|
export { Header };
|
|
@@ -2,12 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import closeIcon from "@material-symbols/svg-400/outlined/close.svg";
|
|
3
3
|
import { Svg } from "../../../distributeur";
|
|
4
4
|
import { getClassName } from "../../utilities/helpers/getClassName";
|
|
5
|
-
const Header = ({ className,
|
|
5
|
+
const Header = ({ className, closeButtonAriaLabel = "Fermer la boite de dialogue", onCancel, children, ...props }) => {
|
|
6
6
|
const componentClassName = getClassName({
|
|
7
7
|
baseClassName: "af-modal__header",
|
|
8
|
-
modifiers: classModifier?.split(" "),
|
|
9
8
|
className,
|
|
10
9
|
});
|
|
11
|
-
return (_jsxs("header", { className: componentClassName, ...props, children: [_jsx("h4", { className: "af-modal__header-title", children: children
|
|
10
|
+
return (_jsxs("header", { className: componentClassName, ...props, children: [_jsx("h4", { className: "af-modal__header-title", children: children }), _jsx("button", { className: "af-modal__header-close-btn", type: "button", "aria-label": closeButtonAriaLabel, onClick: onCancel, children: _jsx(Svg, { src: closeIcon }) })] }));
|
|
12
11
|
};
|
|
13
12
|
export { Header };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export type HeaderBaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2
|
-
|
|
3
|
-
classModifier?: string;
|
|
4
|
-
};
|
|
5
|
-
declare const HeaderBase: ({ classModifier, className, ...rest }: HeaderBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export type HeaderBaseProps = React.HTMLAttributes<HTMLDivElement> & {};
|
|
2
|
+
declare const HeaderBase: ({ className, ...rest }: HeaderBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
export { HeaderBase };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../../utilities/helpers/getClassName";
|
|
3
|
-
const HeaderBase = ({
|
|
3
|
+
const HeaderBase = ({ className, ...rest }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-modal__header",
|
|
6
|
-
modifiers: classModifier?.split(" "),
|
|
7
6
|
className,
|
|
8
7
|
});
|
|
9
8
|
return _jsx("header", { ...rest, className: componentClassName });
|
|
@@ -6,10 +6,8 @@ type PropsAnimatedPopover = {
|
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
target: React.ReactNode;
|
|
8
8
|
className?: string;
|
|
9
|
-
/** @deprecated Use `className` instead. */
|
|
10
|
-
classModifier?: string;
|
|
11
9
|
onMouseEnter?: (event: React.MouseEvent) => void;
|
|
12
10
|
onMouseLeave?: (event: React.MouseEvent) => void;
|
|
13
11
|
};
|
|
14
|
-
export declare const AnimatedPopover: ({ placement, children, isOpen, target, className,
|
|
12
|
+
export declare const AnimatedPopover: ({ placement, children, isOpen, target, className, onMouseEnter, onMouseLeave, }: PropsAnimatedPopover) => import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
export {};
|
|
@@ -4,10 +4,9 @@ import { arrow, FloatingArrow, offset, useFloating, } from "@floating-ui/react";
|
|
|
4
4
|
import React, { useRef } from "react";
|
|
5
5
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
6
6
|
const defaultClassName = "af-popover__container";
|
|
7
|
-
export const AnimatedPopover = ({ placement, children, isOpen, target, className,
|
|
7
|
+
export const AnimatedPopover = ({ placement, children, isOpen, target, className, onMouseEnter, onMouseLeave, }) => {
|
|
8
8
|
const componentClassName = getClassName({
|
|
9
9
|
baseClassName: defaultClassName,
|
|
10
|
-
modifiers: classModifier?.split(" ") ?? [],
|
|
11
10
|
className,
|
|
12
11
|
});
|
|
13
12
|
const [referenceElement, setReferenceElement] = React.useState(null);
|
|
@@ -3,12 +3,10 @@ import React from "react";
|
|
|
3
3
|
import type { PopoverModes } from "./Popover.types";
|
|
4
4
|
type Props = {
|
|
5
5
|
className?: string;
|
|
6
|
-
/** @deprecated Use `className` instead. */
|
|
7
|
-
classModifier?: string;
|
|
8
6
|
placement?: Placement;
|
|
9
7
|
mode: PopoverModes;
|
|
10
8
|
popoverElement: React.ReactNode;
|
|
11
9
|
children: React.ReactNode;
|
|
12
10
|
};
|
|
13
|
-
declare const Popover: ({ children, placement, className,
|
|
11
|
+
declare const Popover: ({ children, placement, className, mode, popoverElement: content, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
export { Popover };
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { PopoverClick } from "./PopoverClick";
|
|
4
4
|
import { PopoverOver } from "./PopoverOver";
|
|
5
|
-
const Popover = ({ children, placement = "top", className,
|
|
5
|
+
const Popover = ({ children, placement = "top", className, mode = "click", popoverElement: content, }) => {
|
|
6
6
|
const Component = mode === "click" ? PopoverClick : PopoverOver;
|
|
7
|
-
return (_jsx(Component, { className: className,
|
|
7
|
+
return (_jsx(Component, { className: className, placement: placement, element: content, children: children }));
|
|
8
8
|
};
|
|
9
9
|
export { Popover };
|
|
@@ -2,8 +2,6 @@ import type { Placement } from "@floating-ui/react";
|
|
|
2
2
|
export type PopoverModes = "hover" | "click";
|
|
3
3
|
export type PopoverProps = {
|
|
4
4
|
className?: string;
|
|
5
|
-
/** @deprecated Use `className` instead. */
|
|
6
|
-
classModifier?: string;
|
|
7
5
|
size?: "small";
|
|
8
6
|
placement?: Placement;
|
|
9
7
|
children?: React.ReactNode;
|
|
@@ -4,13 +4,11 @@ import "@axa-fr/canopee-css/distributeur/Popover/Popover.css";
|
|
|
4
4
|
type Props = {
|
|
5
5
|
placement?: Placement;
|
|
6
6
|
className?: string;
|
|
7
|
-
/** @deprecated Use `className` instead. */
|
|
8
|
-
classModifier?: string;
|
|
9
7
|
element: React.ReactNode;
|
|
10
8
|
children: React.ReactNode | React.ReactNode[];
|
|
11
9
|
isOpen: boolean;
|
|
12
10
|
onMouseEnter?: (event: React.MouseEvent) => void;
|
|
13
11
|
onMouseLeave?: (event: React.MouseEvent) => void;
|
|
14
12
|
};
|
|
15
|
-
declare const PopoverBase: ({ children, isOpen, placement, className,
|
|
13
|
+
declare const PopoverBase: ({ children, isOpen, placement, className, element, onMouseEnter, onMouseLeave, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
14
|
export { PopoverBase };
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { AnimatedPopover } from "./AnimatedPopover";
|
|
4
4
|
import "@axa-fr/canopee-css/distributeur/Popover/Popover.css";
|
|
5
|
-
const PopoverBase = ({ children, isOpen, placement = "right", className,
|
|
6
|
-
return (_jsx(AnimatedPopover, { target: children, placement: placement, isOpen: isOpen, className: className,
|
|
5
|
+
const PopoverBase = ({ children, isOpen, placement = "right", className, element, onMouseEnter, onMouseLeave, }) => {
|
|
6
|
+
return (_jsx(AnimatedPopover, { target: children, placement: placement, isOpen: isOpen, className: className, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: element }));
|
|
7
7
|
};
|
|
8
8
|
export { PopoverBase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopoverProps } from "./Popover.types";
|
|
2
|
-
export declare const PopoverClick: ({ children, placement, className,
|
|
2
|
+
export declare const PopoverClick: ({ children, placement, className, element, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { PopoverBase } from "./PopoverBase";
|
|
4
|
-
export const PopoverClick = ({ children, placement, className,
|
|
4
|
+
export const PopoverClick = ({ children, placement, className, element, }) => {
|
|
5
5
|
const wrapperRef = React.useRef(null);
|
|
6
6
|
const [isOpen, setOpen] = React.useState(false);
|
|
7
7
|
const [isPopoverHover, setPopoverHover] = React.useState(false);
|
|
@@ -23,5 +23,5 @@ export const PopoverClick = ({ children, placement, className, classModifier, el
|
|
|
23
23
|
const handleMouseLeavePopover = () => {
|
|
24
24
|
setPopoverHover(false);
|
|
25
25
|
};
|
|
26
|
-
return (_jsx("div", { role: "button", tabIndex: 0, ref: wrapperRef, className: "af-popover__wrapper af-popover__wrapper--click", onKeyDown: handleKeyDown, onClick: handleClick, onBlur: (event) => handleClick(event, false), children: _jsx(PopoverBase, { onMouseEnter: handleMouseEnterPopover, onMouseLeave: handleMouseLeavePopover, isOpen: isOpen, placement: placement, className: className,
|
|
26
|
+
return (_jsx("div", { role: "button", tabIndex: 0, ref: wrapperRef, className: "af-popover__wrapper af-popover__wrapper--click", onKeyDown: handleKeyDown, onClick: handleClick, onBlur: (event) => handleClick(event, false), children: _jsx(PopoverBase, { onMouseEnter: handleMouseEnterPopover, onMouseLeave: handleMouseLeavePopover, isOpen: isOpen, placement: placement, className: className, element: element, children: children }) }));
|
|
27
27
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopoverProps } from "./Popover.types";
|
|
2
|
-
export declare const PopoverOver: ({ children, placement, className,
|
|
2
|
+
export declare const PopoverOver: ({ children, placement, className, element: content, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { PopoverBase } from "./PopoverBase";
|
|
4
|
-
export const PopoverOver = ({ children, placement, className,
|
|
4
|
+
export const PopoverOver = ({ children, placement, className, element: content, }) => {
|
|
5
5
|
const [isOpen, setOpen] = React.useState(false);
|
|
6
6
|
const handleMouseEnter = () => {
|
|
7
7
|
setOpen(true);
|
|
@@ -9,5 +9,5 @@ export const PopoverOver = ({ children, placement, className, classModifier, ele
|
|
|
9
9
|
const handleMouseLeave = () => {
|
|
10
10
|
setOpen(false);
|
|
11
11
|
};
|
|
12
|
-
return (_jsx("div", { role: "button", tabIndex: 0, className: "af-popover__wrapper af-popover__wrapper--over", onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onFocus: handleMouseEnter, onBlur: handleMouseLeave, children: _jsx(PopoverBase, { isOpen: isOpen, placement: placement, className: className,
|
|
12
|
+
return (_jsx("div", { role: "button", tabIndex: 0, className: "af-popover__wrapper af-popover__wrapper--over", onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onFocus: handleMouseEnter, onBlur: handleMouseLeave, children: _jsx(PopoverBase, { isOpen: isOpen, placement: placement, className: className, element: content, children: children }) }));
|
|
13
13
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, PropsWithChildren } from "react";
|
|
2
|
-
type ArticleRestitutionProps = ComponentPropsWithoutRef<"article"> & {
|
|
3
|
-
|
|
4
|
-
classModifier?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const ArticleRestitution: ({ children, className, classModifier, ...otherProps }: PropsWithChildren<ArticleRestitutionProps>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
type ArticleRestitutionProps = ComponentPropsWithoutRef<"article"> & {};
|
|
3
|
+
export declare const ArticleRestitution: ({ children, className, ...otherProps }: PropsWithChildren<ArticleRestitutionProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
4
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
|
-
export const ArticleRestitution = ({ children, className,
|
|
3
|
+
export const ArticleRestitution = ({ children, className, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-restitution",
|
|
6
|
-
modifiers: classModifier?.split(" "),
|
|
7
6
|
className,
|
|
8
7
|
});
|
|
9
8
|
return (_jsx("article", { className: componentClassName, ...otherProps, children: children }));
|
|
@@ -4,7 +4,5 @@ export type HeaderRestitutionProps = {
|
|
|
4
4
|
title: React.ReactNode;
|
|
5
5
|
subtitle?: React.ReactNode;
|
|
6
6
|
rightTitle?: React.ReactNode;
|
|
7
|
-
/** @deprecated Use `className` instead. */
|
|
8
|
-
classModifier?: string;
|
|
9
7
|
};
|
|
10
|
-
export declare const HeaderRestitution: ({ title, subtitle, rightTitle, className,
|
|
8
|
+
export declare const HeaderRestitution: ({ title, subtitle, rightTitle, className, }: HeaderRestitutionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
4
|
-
export const HeaderRestitution = ({ title, subtitle, rightTitle, className,
|
|
4
|
+
export const HeaderRestitution = ({ title, subtitle, rightTitle, className, }) => {
|
|
5
5
|
const componentClassName = getClassName({
|
|
6
6
|
baseClassName: "af-restitution__header",
|
|
7
|
-
modifiers: classModifier?.split(" "),
|
|
8
7
|
className,
|
|
9
8
|
});
|
|
10
9
|
return (_jsxs("header", { className: componentClassName, children: [_jsx("div", { className: "af-restitution__header-left", children: _jsxs("h3", { className: "af-restitution__title", children: [_jsx("span", { className: "af-restitution__title-main", children: title }), subtitle ? (_jsx("span", { className: "af-restitution__title-subtitle", children: subtitle })) : null] }) }), rightTitle ? (_jsx("div", { className: "af-restitution__header-right", children: _jsx("span", { className: "af-restitution__title", children: rightTitle }) })) : null] }));
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, PropsWithChildren } from "react";
|
|
2
2
|
export type RestitutionProps = ComponentPropsWithoutRef<"dl"> & {
|
|
3
3
|
label: string;
|
|
4
|
-
/** @deprecated Use `className` instead. */
|
|
5
|
-
classModifier?: string;
|
|
6
4
|
variant?: "marge";
|
|
7
5
|
};
|
|
8
|
-
export declare const Restitution: ({ label, children, className,
|
|
6
|
+
export declare const Restitution: ({ label, children, className, variant, }: PropsWithChildren<RestitutionProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
|
-
export const Restitution = ({ label, children = "-", className,
|
|
3
|
+
export const Restitution = ({ label, children = "-", className, variant, }) => {
|
|
4
4
|
const componentClassName = getClassName({
|
|
5
5
|
baseClassName: "af-restitution__listdef",
|
|
6
|
-
modifiers: [variant
|
|
6
|
+
modifiers: [variant],
|
|
7
7
|
className,
|
|
8
8
|
});
|
|
9
9
|
return (_jsxs("dl", { className: componentClassName, children: [_jsx("dt", { className: "af-restitution__listdef-item", children: _jsx("span", { className: "af-restitution__text", children: label }) }), _jsx("dd", { className: "af-restitution__listdef-value", children: children })] }));
|