@axa-fr/canopee-react 2.0.0-alpha.8 → 2.0.0-alpha.80
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 +17 -17
- package/dist/client.js +17 -17
- 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 +1 -3
- package/dist/distributeur/Action/Action.js +2 -3
- package/dist/distributeur/Button/Button.d.ts +3 -4
- package/dist/distributeur/Button/Button.js +7 -1
- 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 +1 -1
- package/dist/distributeur/Form/Checkbox/Checkbox.js +9 -4
- package/dist/distributeur/Form/Checkbox/CheckboxInput.js +2 -2
- package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +1 -3
- package/dist/distributeur/Form/Checkbox/CheckboxItem.js +2 -2
- package/dist/distributeur/Form/Choice/Choice.d.ts +0 -2
- package/dist/distributeur/Form/Choice/ChoiceInput.js +1 -1
- package/dist/distributeur/Form/Date/Date.d.ts +2 -3
- package/dist/distributeur/Form/Date/Date.js +3 -3
- package/dist/distributeur/Form/Date/DateInput.js +1 -1
- package/dist/distributeur/Form/Experimental/DateInput.d.ts +31 -0
- package/dist/distributeur/Form/Experimental/DateInput.js +27 -0
- 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/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 +4 -7
- package/dist/distributeur/Form/Number/Number.js +4 -5
- package/dist/distributeur/Form/Number/NumberInput.js +1 -1
- package/dist/distributeur/Form/Radio/Radio.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioInput.js +1 -1
- package/dist/distributeur/Form/Radio/RadioItem.d.ts +1 -3
- package/dist/distributeur/Form/Radio/RadioItem.js +2 -2
- package/dist/distributeur/Form/Select/Select.d.ts +3 -19
- package/dist/distributeur/Form/Select/Select.js +3 -4
- package/dist/distributeur/Form/Select/SelectBase.d.ts +3 -24
- package/dist/distributeur/Form/Select/SelectBase.js +2 -7
- package/dist/distributeur/Form/Select/SelectDefault.d.ts +3 -3
- package/dist/distributeur/Form/Select/SelectInput.js +1 -1
- 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 +2 -3
- package/dist/distributeur/Form/Text/Text.js +3 -3
- package/dist/distributeur/Form/Text/TextInput.js +1 -1
- package/dist/distributeur/Form/Textarea/Textarea.d.ts +2 -3
- package/dist/distributeur/Form/Textarea/Textarea.js +3 -3
- package/dist/distributeur/Form/Textarea/TextareaInput.js +1 -1
- 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/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 +1 -2
- 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 +6 -3
- 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/LinkAnchor.d.ts +4 -6
- package/dist/distributeur/Link/LinkAnchor.js +2 -2
- package/dist/distributeur/Messages/Message.d.ts +2 -6
- package/dist/distributeur/Messages/Message.js +3 -14
- package/dist/distributeur/ModalAgent/BooleanModal.d.ts +1 -6
- package/dist/distributeur/ModalAgent/BooleanModal.js +7 -4
- package/dist/distributeur/ModalAgent/Modal.d.ts +2 -7
- package/dist/distributeur/ModalAgent/Modal.js +7 -16
- 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/Summary/index.d.ts +1 -1
- package/dist/distributeur/Summary/index.js +1 -2
- 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 +1 -6
- package/dist/distributeur/Tag/Tag.js +2 -2
- package/dist/distributeur/Title/Title.d.ts +1 -3
- package/dist/distributeur/Title/Title.js +3 -3
- 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 +10 -24
- package/dist/distributeur.js +9 -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.js +6 -2
- 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/Checkbox/CheckboxCommon.d.ts +2 -6
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.js +6 -2
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +1 -1
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +2 -6
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +3 -3
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.js +1 -1
- package/dist/prospect-client/Form/Dropdown/DropdownApollo.js +1 -1
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +4 -12
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +4 -4
- package/dist/prospect-client/Form/Dropdown/DropdownLF.js +1 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.js +1 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +1 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.js +1 -1
- 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.js +1 -1
- package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +4 -12
- package/dist/prospect-client/Form/InputDate/InputDateCommon.js +5 -6
- package/dist/prospect-client/Form/InputDate/InputDateLF.js +1 -1
- package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.js +1 -1
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +4 -12
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +10 -6
- package/dist/prospect-client/Form/InputPhone/InputPhoneLF.js +1 -1
- package/dist/prospect-client/Form/InputText/InputTextApollo.js +1 -1
- package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +4 -12
- package/dist/prospect-client/Form/InputText/InputTextCommon.js +7 -6
- package/dist/prospect-client/Form/InputText/InputTextLF.js +1 -1
- 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/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/CardRadioCommon.d.ts +1 -5
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +4 -4
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +1 -1
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +6 -30
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +5 -7
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +1 -1
- package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +2 -5
- package/dist/prospect-client/Form/Radio/Radio/RadioCommon.js +6 -4
- package/dist/prospect-client/Form/TextArea/TextAreaApollo.js +1 -1
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +4 -8
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +4 -4
- package/dist/prospect-client/Form/TextArea/TextAreaLF.js +1 -1
- 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/ItemTabBar/ItemTabBarCommon.js +5 -2
- 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/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 +1 -1
- package/dist/prospect-client/Modal/ModalApollo.js +1 -3
- package/dist/prospect-client/Modal/ModalCommon.d.ts +1 -1
- package/dist/prospect-client/Modal/ModalCommon.js +1 -1
- package/dist/prospect-client/Modal/ModalLF.d.ts +1 -1
- package/dist/prospect-client/Modal/ModalLF.js +1 -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/TabMenu/TabMenu.js +1 -1
- package/dist/prospect-client/Tag/TagCommon.js +6 -2
- package/dist/prospect-client/Toggle/ToggleCommon.js +2 -2
- package/dist/prospect.d.ts +11 -7
- package/dist/prospect.js +11 -7
- package/package.json +2 -2
- package/dist/distributeur/Form/Pass/Pass.d.ts +0 -15
- 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 -26
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.js +0 -32
- 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/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,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import logoAxa from "@axa-fr/canopee-css/logo-axa.svg";
|
|
3
|
+
import { getClassName } from "../utilities/getClassName";
|
|
4
|
+
import "@axa-fr/canopee-css/prospect/AppName/AppNameAll.css";
|
|
5
|
+
/**
|
|
6
|
+
* Displays the application name alongside the AXA logo.
|
|
7
|
+
* The logo can optionally be wrapped in a native anchor or a custom link component.
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
* @param {AppNameProps} props - AppName props.
|
|
11
|
+
* @param {string} props.label - Application name displayed next to the logo.
|
|
12
|
+
* @param {string} [props.logoAlt="Logo AXA"] - Alt text for the AXA logo image.
|
|
13
|
+
* @param {Record<string, unknown>} [props.logoLinkProps] - Props forwarded to the wrapping anchor or `LogoLinkComponent`.
|
|
14
|
+
* @param {ElementType} [props.LogoLinkComponent="a"] - Element or component used to wrap the logo. Accepts `"a"` or any custom link component (e.g. React Router `Link`).
|
|
15
|
+
* @returns {JSX.Element} The rendered AppName component.
|
|
16
|
+
*/
|
|
17
|
+
export const AppName = ({ label, className, logoAlt = "Logo AXA", logoLinkProps, LogoLinkComponent = "a", ...props }) => {
|
|
18
|
+
const logo = (_jsx("img", { src: logoAxa, alt: logoAlt, className: "af-app-name__logo" }));
|
|
19
|
+
return (_jsxs("div", { className: getClassName({
|
|
20
|
+
baseClassName: "af-app-name",
|
|
21
|
+
className,
|
|
22
|
+
}), ...props, children: [LogoLinkComponent ? (_jsx(LogoLinkComponent, { className: "af-app-name__logo-link", ...logoLinkProps, children: logo })) : (logo), _jsx("span", { className: "af-app-name__label", children: label })] }));
|
|
23
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/prospect/Card/CardApollo.css";
|
|
2
|
-
export { type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
|
|
2
|
+
export { cardVariants, type CardVariants, type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/prospect/Card/CardApollo.css";
|
|
2
|
-
export { CardCommon as Card, } from "./CardCommon";
|
|
2
|
+
export { cardVariants, CardCommon as Card, } from "./CardCommon";
|
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
import type { ComponentProps, ElementType } from "react";
|
|
2
2
|
import { type PolymorphicComponent } from "../utilities/types/PolymorphicComponent";
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export declare const cardVariants: {
|
|
4
|
+
readonly unstyled: "unstyled";
|
|
5
|
+
};
|
|
6
|
+
export type CardVariants = keyof typeof cardVariants;
|
|
7
|
+
/**
|
|
8
|
+
* Props for the Card component.
|
|
9
|
+
*
|
|
10
|
+
* @template T - The element type rendered by the card (defaults to `"div"`).
|
|
11
|
+
*/
|
|
12
|
+
export type CardCommonProps<T extends ElementType> = PolymorphicComponent<T, ComponentProps<"div"> & {
|
|
13
|
+
/**
|
|
14
|
+
* Visual variant of the card.
|
|
15
|
+
* - `"unstyled"` — removes border and padding.
|
|
16
|
+
*/
|
|
17
|
+
variant?: CardVariants;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* Polymorphic card wrapper that adds padding and a border.
|
|
21
|
+
* The underlying HTML element can be changed via the `as` prop.
|
|
22
|
+
*
|
|
23
|
+
* @component
|
|
24
|
+
* @template T - The element type rendered by the card.
|
|
25
|
+
* @param {CardCommonProps<T>} props - Card props.
|
|
26
|
+
* @param {ElementType} [props.as="div"] - HTML element or component to render as.
|
|
27
|
+
* @param {CardVariants} [props.variant] - Visual variant of the card.
|
|
28
|
+
* @param {string} [props.className] - Additional CSS class applied to the root element.
|
|
29
|
+
* @param {ReactNode} [props.children] - Content rendered inside the card.
|
|
30
|
+
* @returns {JSX.Element} The rendered Card component.
|
|
31
|
+
*/
|
|
32
|
+
export declare const CardCommon: <T extends ElementType = "div">({ as, children, className, variant, ...props }: CardCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import {} from "../utilities/types/PolymorphicComponent";
|
|
3
3
|
import { getClassName } from "../utilities/getClassName";
|
|
4
|
-
export const
|
|
4
|
+
export const cardVariants = {
|
|
5
|
+
unstyled: "unstyled",
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Polymorphic card wrapper that adds padding and a border.
|
|
9
|
+
* The underlying HTML element can be changed via the `as` prop.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @template T - The element type rendered by the card.
|
|
13
|
+
* @param {CardCommonProps<T>} props - Card props.
|
|
14
|
+
* @param {ElementType} [props.as="div"] - HTML element or component to render as.
|
|
15
|
+
* @param {CardVariants} [props.variant] - Visual variant of the card.
|
|
16
|
+
* @param {string} [props.className] - Additional CSS class applied to the root element.
|
|
17
|
+
* @param {ReactNode} [props.children] - Content rendered inside the card.
|
|
18
|
+
* @returns {JSX.Element} The rendered Card component.
|
|
19
|
+
*/
|
|
20
|
+
export const CardCommon = ({ as, children, className, variant, ...props }) => {
|
|
5
21
|
const Component = as || "div";
|
|
6
22
|
return (_jsx(Component, { className: getClassName({
|
|
7
23
|
baseClassName: "af-card",
|
|
24
|
+
modifiers: [variant],
|
|
8
25
|
className,
|
|
9
26
|
}), ...props, children: children }));
|
|
10
27
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/Card/CardLF.css";
|
|
2
|
-
export { type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
|
|
2
|
+
export { cardVariants, type CardVariants, type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/Card/CardLF.css";
|
|
2
|
-
export { CardCommon as Card, } from "./CardCommon";
|
|
2
|
+
export { cardVariants, CardCommon as Card, } from "./CardCommon";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { getClassName } from "../utilities/getClassName";
|
|
4
4
|
export const cardMessageVariants = {
|
|
5
5
|
info: "info",
|
|
6
6
|
warning: "warning",
|
|
@@ -8,8 +8,10 @@ export const cardMessageVariants = {
|
|
|
8
8
|
neutral: "neutral",
|
|
9
9
|
};
|
|
10
10
|
export const CardMessage = ({ variant = "info", title, text, className, ...props }) => {
|
|
11
|
-
const componentClassName = useMemo(() => {
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const componentClassName = useMemo(() => getClassName({
|
|
12
|
+
baseClassName: "af-card-message",
|
|
13
|
+
modifiers: [variant],
|
|
14
|
+
className,
|
|
15
|
+
}), [className, variant]);
|
|
14
16
|
return (_jsxs("div", { ...props, className: componentClassName, children: [title ? _jsx("span", { className: "af-card-message--title", children: title }) : null, _jsx("span", { className: "af-card-message--text", children: text })] }));
|
|
15
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentType, type ReactElement } from "react";
|
|
2
|
-
import type { ToggleProps } from "../Toggle/ToggleCommon";
|
|
3
|
-
import type { ContentItemProps } from "../ContentItemMono/ContentItemMonoCommon";
|
|
4
2
|
import type { ButtonProps } from "../Button/ButtonCommon";
|
|
3
|
+
import type { ContentItemProps } from "../ContentItemMono/ContentItemMonoCommon";
|
|
4
|
+
import type { ToggleProps } from "../Toggle/ToggleCommon";
|
|
5
5
|
export declare const ContentItemDuoActionState: {
|
|
6
6
|
readonly edit: "edit";
|
|
7
7
|
readonly toggle: "toggle";
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import {} from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { getClassName } from "../utilities/getClassName";
|
|
4
4
|
export const ContentItemDuoActionState = {
|
|
5
5
|
edit: "edit",
|
|
6
6
|
toggle: "toggle",
|
|
7
7
|
};
|
|
8
8
|
export const ContentItemDuoActionCommon = ({ className, state, ContentItemMonoComponent, contentItemProps, ToggleComponent, ...props }) => {
|
|
9
|
-
const componentClassName =
|
|
9
|
+
const componentClassName = getClassName({
|
|
10
|
+
baseClassName: "af-content-item-duo-action",
|
|
11
|
+
className,
|
|
12
|
+
});
|
|
10
13
|
return (_jsxs("div", { className: componentClassName, children: [_jsx(ContentItemMonoComponent, { ...contentItemProps }), _jsx("div", { className: "af-action-container", children: state === "edit" ? (props.buttons) : (_jsx(ToggleComponent, { ...props.toggleProps })) })] }));
|
|
11
14
|
};
|
|
@@ -14,10 +14,6 @@ export type ContentMonoItemIconProps = {
|
|
|
14
14
|
title?: string;
|
|
15
15
|
subtitle1?: string;
|
|
16
16
|
subtitle2?: string;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `iconProps` instead.
|
|
19
|
-
*/
|
|
20
|
-
icon?: string;
|
|
21
17
|
iconProps?: IconProps;
|
|
22
18
|
};
|
|
23
19
|
export type ContentMonoItemStickProps = {
|
|
@@ -4,13 +4,12 @@ import { Icon } from "../Icon/IconCommon";
|
|
|
4
4
|
import { ContentItemMonoCore, } from "./ContentItemMonoCore";
|
|
5
5
|
export const getContentItemCoreProps = ({ IconComponent, type, ...props }) => {
|
|
6
6
|
if (type === "icon") {
|
|
7
|
-
const {
|
|
7
|
+
const { iconProps, title, subtitle1, subtitle2 } = props;
|
|
8
8
|
return {
|
|
9
9
|
title,
|
|
10
10
|
primarySubtitle: subtitle1,
|
|
11
11
|
subtitle: subtitle2,
|
|
12
|
-
leftComponent:
|
|
13
|
-
(icon && _jsx(IconComponent, { "data-testid": "icon", src: icon })),
|
|
12
|
+
leftComponent: iconProps && (_jsx(IconComponent, { "data-testid": "icon", ...iconProps })),
|
|
14
13
|
};
|
|
15
14
|
}
|
|
16
15
|
if (type === "picture") {
|
|
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Fragment, useMemo, } from "react";
|
|
3
3
|
import { Divider } from "../Divider/DividerCommon";
|
|
4
4
|
import { BREAKPOINT } from "../utilities/constants";
|
|
5
|
-
import {
|
|
5
|
+
import { getClassName } from "../utilities/getClassName";
|
|
6
6
|
import { useIsSmallScreen } from "../utilities/hook/useIsSmallScreen";
|
|
7
7
|
export const DataAgentCommon = ({ className, agentProps, agentContractProps, contents, clickContents, texteOrias, DividerComponent, ContentItemMonoComponent, ClickItemComponent, isCompact = true, variant = "default", }) => {
|
|
8
|
-
const componentClassName = useMemo(() =>
|
|
8
|
+
const componentClassName = useMemo(() => getClassName({ baseClassName: "af-data-agent", className }), [className]);
|
|
9
9
|
const isMobile = useIsSmallScreen(BREAKPOINT.SM);
|
|
10
10
|
const renderForDefaultLayout = () => (_jsxs(_Fragment, { children: [_jsxs("section", { className: "af-data-agent__intro", children: [_jsx(ContentItemMonoComponent, { ...agentProps, type: "picture" }), agentContractProps ? (_jsx(ContentItemMonoComponent, { ...agentContractProps, type: "stick" })) : null] }), _jsx(DividerComponent, {}), contents && contents?.length > 0 ? (_jsx("section", { className: "af-data-agent__info-content", children: contents.map((content) => (_jsxs(Fragment, { children: [_jsx(ContentItemMonoComponent, { ...content, type: "icon" }), _jsx(DividerComponent, { className: "af-data-agent__line" })] }, `content--${crypto.randomUUID()}`))) })) : null, clickContents && clickContents?.length > 0 ? (_jsx("section", { className: "af-data-agent__info-click-content", children: clickContents.map((clickContent) => (_jsxs(Fragment, { children: [_jsx(ClickItemComponent, { ...clickContent, variant: "small" }), _jsx(DividerComponent, { className: "af-data-agent__line" })] }, `clickContent--${crypto.randomUUID()}`))) })) : null, Boolean(texteOrias) && (_jsx("p", { className: "af-data-agent__text-orias", children: texteOrias }))] }));
|
|
11
11
|
const renderForMobileLayout = () => (_jsx("section", { className: "af-data-agent__intro", children: _jsx(ClickItemComponent, { ...agentProps, basePictureProps: {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { getClassName } from "../utilities/getClassName";
|
|
4
4
|
export const Divider = ({ className, classModifier }) => {
|
|
5
|
-
const componentClassName = useMemo(() =>
|
|
5
|
+
const componentClassName = useMemo(() => getClassName({
|
|
6
|
+
baseClassName: "af-divider",
|
|
7
|
+
className,
|
|
8
|
+
modifiers: classModifier?.split(" ").filter(Boolean) ?? [],
|
|
9
|
+
}), [className, classModifier]);
|
|
6
10
|
return _jsx("hr", { className: componentClassName });
|
|
7
11
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CardCheckboxProps } from "./CardCheckboxCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CardCheckbox/CardCheckboxApollo.css";
|
|
3
|
+
export type { CardCheckboxProps };
|
|
3
4
|
export declare const CardCheckbox: {
|
|
4
5
|
(props: CardCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ItemMessage } from "../../ItemMessage/
|
|
2
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessage";
|
|
3
3
|
import { CardCheckboxOption } from "../CardCheckboxOption/CardCheckboxOptionApollo";
|
|
4
4
|
import { CheckboxText } from "../CheckboxText/CheckboxTextApollo";
|
|
5
5
|
import { CardCheckboxCommon, } from "./CardCheckboxCommon";
|
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
import { type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import type { GridContainerProps } from "../../../utilities/types/GridContainerProps";
|
|
3
|
-
import type { ItemMessageProps } from "../../ItemMessage/
|
|
3
|
+
import type { ItemMessageProps } from "../../ItemMessage/ItemMessage";
|
|
4
4
|
import type { CardCheckboxOptionProps } from "../CardCheckboxOption/CardCheckboxOptionCommon";
|
|
5
5
|
import type { CheckboxTextProps } from "../CheckboxText/CheckboxTextCommon";
|
|
6
6
|
type CheckboxOption = Omit<CardCheckboxOptionProps, "name" | "type">;
|
|
7
7
|
export type CardCheckboxProps = Omit<CardCheckboxOptionProps, "value" | "label" | "type" | "icon" | "description" | "subtitle" | "children"> & {
|
|
8
8
|
type?: "vertical" | "horizontal";
|
|
9
9
|
mode?: "text";
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `label` instead.
|
|
12
|
-
*/
|
|
13
|
-
labelGroup?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use `description` instead.
|
|
16
|
-
*/
|
|
17
|
-
descriptionGroup?: string;
|
|
18
10
|
label: ReactNode;
|
|
19
11
|
description?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use `required` instead.
|
|
22
|
-
*/
|
|
23
|
-
isRequired?: boolean;
|
|
24
12
|
options: CheckboxOption[];
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Use `message` and messageType instead.
|
|
27
|
-
*/
|
|
28
|
-
error?: string;
|
|
29
13
|
containerProps?: GridContainerProps<"fieldset">;
|
|
30
14
|
} & Partial<ItemMessageProps>;
|
|
31
15
|
type CardCheckboxCommonProps = CardCheckboxProps & {
|
|
@@ -34,7 +18,7 @@ type CardCheckboxCommonProps = CardCheckboxProps & {
|
|
|
34
18
|
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
35
19
|
};
|
|
36
20
|
export declare const CardCheckboxCommon: {
|
|
37
|
-
({ className,
|
|
21
|
+
({ className, label, description, required, options, type, name, id, onChange, CardCheckboxItemComponent, CheckboxTextComponent, ItemMessageComponent, message, messageType, containerProps, mode, ...inputProps }: CardCheckboxCommonProps): import("react/jsx-runtime").JSX.Element;
|
|
38
22
|
displayName: string;
|
|
39
23
|
};
|
|
40
24
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId, useRef, } from "react";
|
|
3
|
-
export const CardCheckboxCommon = ({ className,
|
|
3
|
+
export const CardCheckboxCommon = ({ className, label, description, required, options, type = "vertical", name, id, onChange = () => { }, CardCheckboxItemComponent, CheckboxTextComponent, ItemMessageComponent, message, messageType = "error", containerProps, mode, ...inputProps }) => {
|
|
4
4
|
const generatedId = useId();
|
|
5
5
|
const cardCheckboxId = id || generatedId;
|
|
6
6
|
const messageId = `${cardCheckboxId}-error`;
|
|
@@ -23,10 +23,10 @@ export const CardCheckboxCommon = ({ className, labelGroup, descriptionGroup, la
|
|
|
23
23
|
}
|
|
24
24
|
onChange(event);
|
|
25
25
|
};
|
|
26
|
-
const hasError =
|
|
27
|
-
return (_jsxs("fieldset", { className: ["af-card-checkbox", className].filter(Boolean).join(" "), id: cardCheckboxId, ...containerProps, children: [_jsxs("legend", { className: "af-card-checkbox__legend", children: [_jsxs("p", { className: "af-card-checkbox__label", children: [label,
|
|
26
|
+
const hasError = Boolean(message) && messageType === "error";
|
|
27
|
+
return (_jsxs("fieldset", { className: ["af-card-checkbox", className].filter(Boolean).join(" "), id: cardCheckboxId, ...containerProps, children: [_jsxs("legend", { className: "af-card-checkbox__legend", children: [_jsxs("p", { className: "af-card-checkbox__label", children: [label, required ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), description ? (_jsx("p", { className: "af-card-checkbox__description", children: description })) : null] }), _jsx("div", { className: [
|
|
28
28
|
"af-card-checkbox__options",
|
|
29
29
|
`af-card-checkbox__options--${type}`,
|
|
30
|
-
].join(" "), ref: cardCheckboxOptionsRef, children: options.map((cardCheckboxItemProps) => (_jsx(CheckboxItemComponent, { id: `${cardCheckboxId}-${cardCheckboxItemProps.value}`, required: required, onChange: handleChange, ...inputProps, ...cardCheckboxItemProps, type: type, "aria-invalid": hasError || undefined, "aria-errormessage": hasError ? messageId : undefined, name: name }, `${name ?? cardCheckboxId}-${cardCheckboxItemProps.label}`))) }), _jsx(ItemMessageComponent, { id: messageId, message: message
|
|
30
|
+
].join(" "), ref: cardCheckboxOptionsRef, children: options.map((cardCheckboxItemProps) => (_jsx(CheckboxItemComponent, { id: `${cardCheckboxId}-${cardCheckboxItemProps.value}`, required: required, onChange: handleChange, ...inputProps, ...cardCheckboxItemProps, type: type, "aria-invalid": hasError || undefined, "aria-errormessage": hasError ? messageId : undefined, name: name }, `${name ?? cardCheckboxId}-${cardCheckboxItemProps.label}`))) }), _jsx(ItemMessageComponent, { id: messageId, message: message, messageType: messageType })] }));
|
|
31
31
|
};
|
|
32
32
|
CardCheckboxCommon.displayName = "CardCheckboxCommon";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CardCheckboxProps } from "./CardCheckboxCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/client/Form/Checkbox/CardCheckbox/CardCheckboxLF.css";
|
|
3
|
+
export type { CardCheckboxProps };
|
|
3
4
|
export declare const CardCheckbox: {
|
|
4
5
|
(props: CardCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ItemMessage } from "../../ItemMessage/
|
|
2
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessage";
|
|
3
3
|
import { CardCheckboxOption } from "../CardCheckboxOption/CardCheckboxOptionLF";
|
|
4
4
|
import { CheckboxText } from "../CheckboxText/CheckboxTextLF";
|
|
5
5
|
import { CardCheckboxCommon, } from "./CardCheckboxCommon";
|
|
@@ -2,10 +2,6 @@ import { type ComponentProps } from "react";
|
|
|
2
2
|
export type CheckboxProps = {
|
|
3
3
|
/** @deprecated Use `aria-errormessage` instead */
|
|
4
4
|
errorId?: string;
|
|
5
|
-
|
|
6
|
-
hasError?: boolean;
|
|
5
|
+
variant?: "error" | "warning";
|
|
7
6
|
} & Omit<ComponentProps<"input">, "disabled" | "type">;
|
|
8
|
-
export declare const Checkbox: {
|
|
9
|
-
({ errorId, hasError, className, ...inputProps }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
7
|
+
export declare const Checkbox: ({ errorId, variant, className, ref, ...inputProps }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import {} from "react";
|
|
3
|
-
|
|
4
|
-
Checkbox
|
|
3
|
+
import { getClassName } from "../../../utilities/getClassName";
|
|
4
|
+
export const Checkbox = ({ errorId, variant, className, ref, ...inputProps }) => (_jsx("input", { "aria-errormessage": errorId, "aria-invalid": variant === "error" || undefined, ...inputProps, className: getClassName({
|
|
5
|
+
baseClassName: "af-checkbox",
|
|
6
|
+
modifiers: [variant],
|
|
7
|
+
className,
|
|
8
|
+
}), ref: ref, type: "checkbox" }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CheckboxText/CheckboxTextApollo.css";
|
|
3
|
-
import { ItemMessage } from "../../ItemMessage/
|
|
3
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessage";
|
|
4
4
|
import { Checkbox } from "../Checkbox/CheckboxApollo";
|
|
5
5
|
import { CheckboxTextCommon, } from "./CheckboxTextCommon";
|
|
6
6
|
export const CheckboxText = ({ ...props }) => (_jsx(CheckboxTextCommon, { ...props, CheckboxComponent: Checkbox, ItemMessageComponent: ItemMessage }));
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import type { GridContainerProps } from "../../../utilities/types/GridContainerProps";
|
|
3
|
-
import type { ItemMessageProps } from "../../ItemMessage/
|
|
3
|
+
import type { ItemMessageProps } from "../../ItemMessage/ItemMessage";
|
|
4
4
|
import type { CheckboxProps } from "../Checkbox/CheckboxCommon";
|
|
5
5
|
export type CheckboxTextProps = {
|
|
6
6
|
label: string | ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use `message` and messageType instead.
|
|
9
|
-
*/
|
|
10
|
-
errorMessage?: string;
|
|
11
7
|
containerProps?: GridContainerProps;
|
|
12
8
|
} & Omit<CheckboxProps, "aria-errormessage" | "aria-invalid"> & Partial<ItemMessageProps>;
|
|
13
9
|
export type CheckboxTextCommonProps = CheckboxTextProps & {
|
|
@@ -15,7 +11,7 @@ export type CheckboxTextCommonProps = CheckboxTextProps & {
|
|
|
15
11
|
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
16
12
|
};
|
|
17
13
|
declare const CheckboxTextCommon: {
|
|
18
|
-
({ label,
|
|
14
|
+
({ label, id, message, messageType, CheckboxComponent, ItemMessageComponent, containerProps, ...inputProps }: CheckboxTextCommonProps): import("react/jsx-runtime").JSX.Element;
|
|
19
15
|
displayName: string;
|
|
20
16
|
};
|
|
21
17
|
export { CheckboxTextCommon };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
const CheckboxTextCommon = ({ label,
|
|
3
|
+
const CheckboxTextCommon = ({ label, id, message, messageType = "error", CheckboxComponent, ItemMessageComponent, containerProps, ...inputProps }) => {
|
|
4
4
|
const generatedId = useId();
|
|
5
5
|
const inputId = id ?? generatedId;
|
|
6
6
|
const messageId = `${inputId}-error`;
|
|
7
|
-
const hasError =
|
|
8
|
-
return (_jsxs("div", { className: "af-checkbox-text", ...containerProps, children: [_jsxs("label", { htmlFor: inputId, children: [_jsx(CheckboxComponent, { id: inputId, ...inputProps, "aria-errormessage": hasError ? messageId : undefined, "aria-invalid": hasError || undefined }), _jsx("span", { className: "af-checkbox-text__label-content", children: label })] }), _jsx(ItemMessageComponent, { message: message
|
|
7
|
+
const hasError = Boolean(message) && messageType === "error";
|
|
8
|
+
return (_jsxs("div", { className: "af-checkbox-text", ...containerProps, children: [_jsxs("label", { htmlFor: inputId, children: [_jsx(CheckboxComponent, { id: inputId, ...inputProps, "aria-errormessage": hasError ? messageId : undefined, "aria-invalid": hasError || undefined }), _jsx("span", { className: "af-checkbox-text__label-content", children: label })] }), _jsx(ItemMessageComponent, { message: message, id: messageId, messageType: messageType })] }));
|
|
9
9
|
};
|
|
10
10
|
CheckboxTextCommon.displayName = "CheckboxTextCommon";
|
|
11
11
|
export { CheckboxTextCommon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/client/Form/Checkbox/CheckboxText/CheckboxTextLF.css";
|
|
3
|
-
import { ItemMessage } from "../../ItemMessage/
|
|
3
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessage";
|
|
4
4
|
import { Checkbox } from "../Checkbox/CheckboxLF";
|
|
5
5
|
import { CheckboxTextCommon, } from "./CheckboxTextCommon";
|
|
6
6
|
export const CheckboxText = ({ ...props }) => (_jsx(CheckboxTextCommon, { ...props, CheckboxComponent: Checkbox, ItemMessageComponent: ItemMessage }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/Form/Dropdown/DropdownApollo.css";
|
|
3
3
|
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
4
|
-
import { ItemMessage } from "../ItemMessage/
|
|
4
|
+
import { ItemMessage } from "../ItemMessage/ItemMessage";
|
|
5
5
|
import { DropdownCommon } from "./DropdownCommon";
|
|
6
6
|
export const Dropdown = (props) => (_jsx(DropdownCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
|
|
2
2
|
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
3
3
|
import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
4
|
-
import {
|
|
4
|
+
import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
5
5
|
export type DropdownProps = ComponentPropsWithRef<"select"> & {
|
|
6
6
|
id?: string;
|
|
7
7
|
classModifier?: string;
|
|
8
8
|
label?: ItemLabelProps["children"];
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `message` and messageType instead.
|
|
11
|
-
*/
|
|
12
|
-
error?: string;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use `message` and messageType instead.
|
|
15
|
-
*/
|
|
16
|
-
success?: string;
|
|
17
9
|
placeholder?: string;
|
|
18
10
|
description?: string;
|
|
19
11
|
helper?: string;
|
|
20
12
|
containerProps?: GridContainerProps;
|
|
21
|
-
} & Pick<ItemLabelProps, "
|
|
13
|
+
} & Pick<ItemLabelProps, "moreButtonLabel" | "onMoreButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
|
|
22
14
|
type DropdownCommonProps = DropdownProps & {
|
|
23
15
|
ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
|
|
24
|
-
ItemMessageComponent: ComponentType<
|
|
16
|
+
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
25
17
|
};
|
|
26
18
|
declare const DropdownCommon: {
|
|
27
|
-
({ id, required, label,
|
|
19
|
+
({ id, required, label, placeholder, children, helper, message, messageType, description, moreButtonLabel, onMoreButtonClick, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, containerProps, ...otherProps }: DropdownCommonProps): import("react/jsx-runtime").JSX.Element;
|
|
28
20
|
displayName: string;
|
|
29
21
|
};
|
|
30
22
|
export { DropdownCommon };
|
|
@@ -2,15 +2,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { useId, } from "react";
|
|
4
4
|
import { ItemLabelCommon, } from "../ItemLabel/ItemLabelCommon";
|
|
5
|
-
import {
|
|
6
|
-
const DropdownCommon = ({ id, required, label,
|
|
5
|
+
import {} from "../ItemMessage/ItemMessage";
|
|
6
|
+
const DropdownCommon = ({ id, required, label, placeholder, children, helper, message, messageType = "error", description, moreButtonLabel, onMoreButtonClick, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, containerProps, ...otherProps }) => {
|
|
7
7
|
const idMessage = useId();
|
|
8
8
|
let inputId = useId();
|
|
9
9
|
inputId = id || inputId;
|
|
10
|
-
const hasError =
|
|
10
|
+
const hasError = Boolean(message) && messageType === "error";
|
|
11
11
|
const hasWarning = !hasError && Boolean(message) && messageType === "warning";
|
|
12
12
|
const classname = classNames("af-form__dropdown-input", hasError && "af-form__dropdown-input--error", hasWarning && "af-form__dropdown-input--warning");
|
|
13
|
-
return (_jsxs("div", { className: "af-form__dropdown-container", ...containerProps, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel
|
|
13
|
+
return (_jsxs("div", { className: "af-form__dropdown-container", ...containerProps, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel, onMoreButtonClick: onMoreButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsxs("select", { className: classname, ...otherProps, id: inputId, children: [Boolean(placeholder) && _jsx("option", { value: "", children: placeholder }), children] }), helper ? _jsx("span", { className: "af-form__input-helper", children: helper }) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message, messageType: messageType })] }));
|
|
14
14
|
};
|
|
15
15
|
DropdownCommon.displayName = "Dropdown";
|
|
16
16
|
export { DropdownCommon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/client/Form/Dropdown/DropdownLF.css";
|
|
3
3
|
import { ItemLabel } from "../ItemLabel/ItemLabelLF";
|
|
4
|
-
import { ItemMessage } from "../ItemMessage/
|
|
4
|
+
import { ItemMessage } from "../ItemMessage/ItemMessage";
|
|
5
5
|
import { DropdownCommon } from "./DropdownCommon";
|
|
6
6
|
export const Dropdown = (props) => (_jsx(DropdownCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ItemLabel } from "../../ItemLabel/ItemLabelApollo";
|
|
3
|
-
import { ItemMessage } from "../../ItemMessage/
|
|
3
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessage";
|
|
4
4
|
import { InputFileCommon } from "./InputFileCommon";
|
|
5
5
|
import "@axa-fr/canopee-css/prospect/Form/FileUpload/InputFile/InputFileApollo.css";
|
|
6
6
|
const InputFile = ({ ...props }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentPropsWithRef, type ComponentType, type MouseEventHandler, type ReactNode } from "react";
|
|
2
2
|
import type { GridContainerProps } from "../../../utilities/types/GridContainerProps";
|
|
3
3
|
import { type ItemLabelProps } from "../../ItemLabel/ItemLabelCommon";
|
|
4
|
-
import { type ItemMessageProps } from "../../ItemMessage/
|
|
4
|
+
import { type ItemMessageProps } from "../../ItemMessage/ItemMessage";
|
|
5
5
|
type LabelProps = Partial<Omit<ItemLabelProps, "children" | "label" | "description" | "sideButtonLabel" | "onSideButtonClick" | "moreButtonLabel" | "onMoreButtonClick">>;
|
|
6
6
|
export type InputFileProps = Omit<ComponentPropsWithRef<"input">, "type"> & {
|
|
7
7
|
/**
|
|
@@ -4,7 +4,7 @@ import { useId, } from "react";
|
|
|
4
4
|
import { Svg } from "../../../Svg/Svg";
|
|
5
5
|
import { getClassName } from "../../../utilities/getClassName";
|
|
6
6
|
import {} from "../../ItemLabel/ItemLabelCommon";
|
|
7
|
-
import {} from "../../ItemMessage/
|
|
7
|
+
import {} from "../../ItemMessage/ItemMessage";
|
|
8
8
|
const DEFAULT_DROPZONE_LABELS = {
|
|
9
9
|
dropzone: "Glisser et déposer un fichier",
|
|
10
10
|
or: "ou",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ItemLabel } from "../../ItemLabel/ItemLabelLF";
|
|
3
|
-
import { ItemMessage } from "../../ItemMessage/
|
|
3
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessage";
|
|
4
4
|
import { InputFileCommon } from "./InputFileCommon";
|
|
5
5
|
import "@axa-fr/canopee-css/client/Form/FileUpload/InputFile/InputFileLF.css";
|
|
6
6
|
const InputFile = ({ ...props }) => (_jsx(InputFileCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
@@ -4,7 +4,7 @@ import visibilityIcon from "@material-symbols/svg-400/outlined/visibility-fill.s
|
|
|
4
4
|
import { ClickIcon } from "../../../ClickIcon/ClickIconApollo";
|
|
5
5
|
import { Icon } from "../../../Icon/IconApollo";
|
|
6
6
|
import { Spinner } from "../../../Spinner/SpinnerApollo";
|
|
7
|
-
import { ItemMessage } from "../../ItemMessage/
|
|
7
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessage";
|
|
8
8
|
import { ItemFileCommon } from "./ItemFileCommon";
|
|
9
9
|
import "@axa-fr/canopee-css/prospect/ContentItemMono/ContentItemMonoApollo.css";
|
|
10
10
|
import "@axa-fr/canopee-css/prospect/Form/FileUpload/ItemFile/ItemFileApollo.css";
|
|
@@ -2,7 +2,7 @@ import { type ComponentPropsWithoutRef, type ComponentType, type MouseEvent } fr
|
|
|
2
2
|
import type { ClickIconProps } from "../../../ClickIcon/ClickIconCommon";
|
|
3
3
|
import type { IconProps } from "../../../Icon/IconCommon";
|
|
4
4
|
import type { SpinnerProps } from "../../../Spinner/SpinnerCommon";
|
|
5
|
-
import type { ItemMessageProps } from "../../ItemMessage/
|
|
5
|
+
import type { ItemMessageProps } from "../../ItemMessage/ItemMessage";
|
|
6
6
|
export type ItemFileProps = {
|
|
7
7
|
/**
|
|
8
8
|
* The JavaScript File object representing the uploaded file.
|
|
@@ -4,7 +4,7 @@ import visibilityIcon from "@material-symbols/svg-400/outlined/visibility-fill.s
|
|
|
4
4
|
import { ClickIcon } from "../../../ClickIcon/ClickIconLF";
|
|
5
5
|
import { Icon } from "../../../Icon/IconLF";
|
|
6
6
|
import { Spinner } from "../../../Spinner/SpinnerLF";
|
|
7
|
-
import { ItemMessage } from "../../ItemMessage/
|
|
7
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessage";
|
|
8
8
|
import { ItemFileCommon } from "./ItemFileCommon";
|
|
9
9
|
import "@axa-fr/canopee-css/client/ContentItemMono/ContentItemMonoLF.css";
|
|
10
10
|
import "@axa-fr/canopee-css/client/Form/FileUpload/ItemFile/ItemFileLF.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/Form/InputDate/InputDateApollo.css";
|
|
3
3
|
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
4
|
-
import { ItemMessage } from "../ItemMessage/
|
|
4
|
+
import { ItemMessage } from "../ItemMessage/ItemMessage";
|
|
5
5
|
import { InputDateCommon } from "./InputDateCommon";
|
|
6
6
|
export const InputDate = ({ ...props }) => (_jsx(InputDateCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
7
|
InputDate.displayName = "InputDate";
|