@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
package/dist/client.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import "@axa-fr/canopee-css/client/common/
|
|
1
|
+
import "@axa-fr/canopee-css/client/common/reboot.css";
|
|
2
2
|
import "@axa-fr/canopee-css/client/common/tokens.css";
|
|
3
3
|
import "@axa-fr/canopee-css/client/Grid/Grid.css";
|
|
4
4
|
import "@fontsource/source-sans-pro";
|
|
5
5
|
export { Accordion, accordionVariants, type AccordionVariants, } from "./prospect-client/Accordion/AccordionLF";
|
|
6
6
|
export { AccordionContextual, accordionContextualVariants, type AccordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
|
|
7
7
|
export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreLF";
|
|
8
|
+
export { AppName, type AppNameProps } from "./prospect-client/AppName/AppName";
|
|
8
9
|
export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
|
|
9
10
|
export { Button, buttonVariants, type ButtonVariants, } from "./prospect-client/Button/ButtonLF";
|
|
10
|
-
export { Card, type CardProps } from "./prospect-client/Card/CardLF";
|
|
11
|
+
export { Card, cardVariants, type CardProps, type CardVariants, } from "./prospect-client/Card/CardLF";
|
|
11
12
|
export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./prospect-client/CardMessage/CardMessageLF";
|
|
12
13
|
export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconLF";
|
|
13
14
|
export { ContentItemDuoAction, type ContentItemDuoActionState, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionLF";
|
|
@@ -15,9 +16,7 @@ export { ContentItemMono } from "./prospect-client/ContentItemMono/ContentItemMo
|
|
|
15
16
|
export { DataAgent, type DataAgentProps, } from "./prospect-client/DataAgent/DataAgentLF";
|
|
16
17
|
export { Divider } from "./prospect-client/Divider/DividerLF";
|
|
17
18
|
export { Fieldset, type FieldsetProps, } from "./prospect-client/Fieldset/FieldsetLF";
|
|
18
|
-
export { CardCheckbox,
|
|
19
|
-
/** @deprecated Use `CardCheckbox` instead. */
|
|
20
|
-
CardCheckbox as CheckboxCard, } from "./prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF";
|
|
19
|
+
export { CardCheckbox, type CardCheckboxProps, } from "./prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF";
|
|
21
20
|
export { CardCheckboxOption } from "./prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF";
|
|
22
21
|
export { Checkbox } from "./prospect-client/Form/Checkbox/Checkbox/CheckboxLF";
|
|
23
22
|
export { CheckboxText } from "./prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF";
|
|
@@ -25,30 +24,27 @@ export { Dropdown } from "./prospect-client/Form/Dropdown/DropdownLF";
|
|
|
25
24
|
export { FileUpload } from "./prospect-client/Form/FileUpload/FileUpload/FileUploadLF";
|
|
26
25
|
export { InputFile } from "./prospect-client/Form/FileUpload/InputFile/InputFileLF";
|
|
27
26
|
export { ItemFile } from "./prospect-client/Form/FileUpload/ItemFile/ItemFileLF";
|
|
28
|
-
export {
|
|
29
|
-
/** @deprecated Use `InputDate` instead. */
|
|
30
|
-
InputDate as DateInput, InputDate, } from "./prospect-client/Form/InputDate/InputDateLF";
|
|
27
|
+
export { InputDate } from "./prospect-client/Form/InputDate/InputDateLF";
|
|
31
28
|
export { type OptionType } from "./prospect-client/Form/InputPhone/InputPhone.types";
|
|
32
29
|
export { InputPhone } from "./prospect-client/Form/InputPhone/InputPhoneLF";
|
|
33
|
-
export { InputText
|
|
34
|
-
/** @deprecated Use `InputText` instead. */
|
|
35
|
-
InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
|
|
30
|
+
export { InputText } from "./prospect-client/Form/InputText/InputTextLF";
|
|
36
31
|
export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
|
|
37
32
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
|
|
38
|
-
export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/
|
|
33
|
+
export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessage";
|
|
39
34
|
export { ItemMultiSelect, type ItemMultiSelectProps, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF";
|
|
35
|
+
export { MultiSelectList, type MultiSelectListProps, } from "./prospect-client/Form/MultiSelectList/MultiSelectListLF";
|
|
40
36
|
export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
|
|
41
37
|
export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
|
|
42
38
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
|
|
43
39
|
export { RadioText, type RadioTextProps, } from "./prospect-client/Form/Radio/RadioText/RadioTextLF";
|
|
44
40
|
export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
|
|
45
41
|
export { DebugGrid } from "./prospect-client/Grid/DebugGridLF";
|
|
42
|
+
export { Header, type HeaderProps } from "./prospect-client/Header/HeaderLF";
|
|
46
43
|
export { Heading, type HeadingLevel, type HeadingProps, } from "./prospect-client/Heading/HeadingLF";
|
|
47
44
|
export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./prospect-client/Icon/IconLF";
|
|
48
|
-
export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
|
|
49
45
|
export { ItemMenu, type ItemMenuProps, } from "./prospect-client/ItemMenu/ItemMenuLF";
|
|
50
|
-
export {
|
|
51
|
-
export { ExitLayout, type ExitLayoutProps, type ExitLayoutWithSubComponents, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
|
|
46
|
+
export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
|
|
47
|
+
export { ExitLayout, type ExitLayoutProps, type ExitLayoutWithSubComponents, ExitLayoutSkeleton, type ExitLayoutSkeletonProps, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
|
|
52
48
|
export { Footer, type FooterProps, } from "./prospect-client/Layout/Footer/FooterLF";
|
|
53
49
|
export { FormLayout, type FormLayoutProps, } from "./prospect-client/Layout/FormLayout/FormLayout";
|
|
54
50
|
export { LevelSelector, type LevelSelectorProps, } from "./prospect-client/LevelSelector/LevelSelectorLF";
|
|
@@ -57,16 +53,18 @@ export { ClickItem, clickItemStates, clickItemVariants, type ClickItemStates, ty
|
|
|
57
53
|
export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoLF";
|
|
58
54
|
export { List, type ListProps } from "./prospect-client/List/List/ListLF";
|
|
59
55
|
export { Loader, type LoaderProps } from "./prospect-client/Loader/LoaderLF";
|
|
56
|
+
export { MenuBurger, type MenuBurgerProps, } from "./prospect-client/MenuBurger/MenuBurgerLF";
|
|
60
57
|
export { Message, messageVariants, type MessageVariants, } from "./prospect-client/Message/MessageLF";
|
|
61
|
-
export { MultiMessage, type MultiMessageItem, type MultiMessageProps, } from "./prospect-client/MultiMessage/MultiMessageLF";
|
|
62
58
|
export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalLF";
|
|
59
|
+
export { MultiMessage, type MultiMessageItem, type MultiMessageProps, } from "./prospect-client/MultiMessage/MultiMessageLF";
|
|
63
60
|
export { ErrorPage, type ErrorPageProps, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
|
|
64
61
|
export { ValidPage, type ValidPageProps, } from "./prospect-client/pages/ValidPage/ValidPageLF";
|
|
65
62
|
export { ItemPagination, type ItemPaginationProps, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
|
|
66
63
|
export { Pagination } from "./prospect-client/Pagination/PaginationLF";
|
|
67
64
|
export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarLF";
|
|
68
65
|
export { ProgressBarGroup } from "./prospect-client/ProgressBarGroup/ProgressBarGroupLF";
|
|
69
|
-
export { Skeleton, type SkeletonProps, } from "./prospect-client/Skeleton/
|
|
66
|
+
export { Skeleton, skeletonSizeVariants, skeletonVariants, type SkeletonActionSizeVariant, type SkeletonCircleSizeVariant, type SkeletonProps, type SkeletonSizeVariant, type SkeletonVariant, } from "./prospect-client/Skeleton/Skeleton";
|
|
67
|
+
export { SkeletonGrid, type SkeletonGridProps, } from "./prospect-client/SkeletonGrid/SkeletonGrid";
|
|
70
68
|
export { SkeletonList, type SkeletonListProps, } from "./prospect-client/SkeletonList/SkeletonListLF";
|
|
71
69
|
export { Spinner, spinnerVariants, type SpinnerVariants, } from "./prospect-client/Spinner/SpinnerLF";
|
|
72
70
|
export { Stepper } from "./prospect-client/Stepper/StepperLF";
|
|
@@ -74,8 +72,10 @@ export { Svg } from "./prospect-client/Svg/Svg";
|
|
|
74
72
|
export { TabBar, tabBarDirection, type TabBarDirection, type TabBarProps, } from "./prospect-client/TabBar/TabBarLF";
|
|
75
73
|
export { Table, type BodyColorVariants, type HeadColorVariants, type RowSizeVariants, type TableProps, } from "./prospect-client/Table/TableLF";
|
|
76
74
|
export { TableMobileCard, type TableMobileCardProps, } from "./prospect-client/TableMobileCard/TableMobileCard";
|
|
75
|
+
export { TabMenu, type TabMenuProps } from "./prospect-client/TabMenu/TabMenu";
|
|
77
76
|
export { Tag, tagVariants, type TagVariants, } from "./prospect-client/Tag/TagLF";
|
|
78
77
|
export { TagList, type TagListProps, } from "./prospect-client/TagList/TagListLF";
|
|
79
78
|
export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
|
|
80
79
|
export { Toggle } from "./prospect-client/Toggle/ToggleLF";
|
|
81
80
|
export type { GridContainerProps } from "./prospect-client/utilities/types/GridContainerProps";
|
|
81
|
+
export { MessageBar, type MessageBarProps, type MessageBarVariant, } from "./prospect-client/MessageBar/MessageBarLF";
|
package/dist/client.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import "@axa-fr/canopee-css/client/common/
|
|
1
|
+
import "@axa-fr/canopee-css/client/common/reboot.css";
|
|
2
2
|
import "@axa-fr/canopee-css/client/common/tokens.css";
|
|
3
3
|
import "@axa-fr/canopee-css/client/Grid/Grid.css";
|
|
4
4
|
import "@fontsource/source-sans-pro";
|
|
5
5
|
export { Accordion, accordionVariants, } from "./prospect-client/Accordion/AccordionLF";
|
|
6
6
|
export { AccordionContextual, accordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
|
|
7
7
|
export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreLF";
|
|
8
|
+
export { AppName } from "./prospect-client/AppName/AppName";
|
|
8
9
|
export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
|
|
9
10
|
export { Button, buttonVariants, } from "./prospect-client/Button/ButtonLF";
|
|
10
|
-
export { Card } from "./prospect-client/Card/CardLF";
|
|
11
|
+
export { Card, cardVariants, } from "./prospect-client/Card/CardLF";
|
|
11
12
|
export { CardMessage, cardMessageVariants, } from "./prospect-client/CardMessage/CardMessageLF";
|
|
12
13
|
export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconLF";
|
|
13
14
|
export { ContentItemDuoAction, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionLF";
|
|
@@ -15,9 +16,7 @@ export { ContentItemMono } from "./prospect-client/ContentItemMono/ContentItemMo
|
|
|
15
16
|
export { DataAgent, } from "./prospect-client/DataAgent/DataAgentLF";
|
|
16
17
|
export { Divider } from "./prospect-client/Divider/DividerLF";
|
|
17
18
|
export { Fieldset, } from "./prospect-client/Fieldset/FieldsetLF";
|
|
18
|
-
export { CardCheckbox,
|
|
19
|
-
/** @deprecated Use `CardCheckbox` instead. */
|
|
20
|
-
CardCheckbox as CheckboxCard, } from "./prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF";
|
|
19
|
+
export { CardCheckbox, } from "./prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF";
|
|
21
20
|
export { CardCheckboxOption } from "./prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF";
|
|
22
21
|
export { Checkbox } from "./prospect-client/Form/Checkbox/Checkbox/CheckboxLF";
|
|
23
22
|
export { CheckboxText } from "./prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF";
|
|
@@ -25,30 +24,27 @@ export { Dropdown } from "./prospect-client/Form/Dropdown/DropdownLF";
|
|
|
25
24
|
export { FileUpload } from "./prospect-client/Form/FileUpload/FileUpload/FileUploadLF";
|
|
26
25
|
export { InputFile } from "./prospect-client/Form/FileUpload/InputFile/InputFileLF";
|
|
27
26
|
export { ItemFile } from "./prospect-client/Form/FileUpload/ItemFile/ItemFileLF";
|
|
28
|
-
export {
|
|
29
|
-
/** @deprecated Use `InputDate` instead. */
|
|
30
|
-
InputDate as DateInput, InputDate, } from "./prospect-client/Form/InputDate/InputDateLF";
|
|
27
|
+
export { InputDate } from "./prospect-client/Form/InputDate/InputDateLF";
|
|
31
28
|
export {} from "./prospect-client/Form/InputPhone/InputPhone.types";
|
|
32
29
|
export { InputPhone } from "./prospect-client/Form/InputPhone/InputPhoneLF";
|
|
33
|
-
export { InputText
|
|
34
|
-
/** @deprecated Use `InputText` instead. */
|
|
35
|
-
InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
|
|
30
|
+
export { InputText } from "./prospect-client/Form/InputText/InputTextLF";
|
|
36
31
|
export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
|
|
37
32
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
|
|
38
|
-
export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/
|
|
33
|
+
export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessage";
|
|
39
34
|
export { ItemMultiSelect, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF";
|
|
35
|
+
export { MultiSelectList, } from "./prospect-client/Form/MultiSelectList/MultiSelectListLF";
|
|
40
36
|
export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
|
|
41
37
|
export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
|
|
42
38
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
|
|
43
39
|
export { RadioText, } from "./prospect-client/Form/Radio/RadioText/RadioTextLF";
|
|
44
40
|
export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
|
|
45
41
|
export { DebugGrid } from "./prospect-client/Grid/DebugGridLF";
|
|
42
|
+
export { Header } from "./prospect-client/Header/HeaderLF";
|
|
46
43
|
export { Heading, } from "./prospect-client/Heading/HeadingLF";
|
|
47
44
|
export { Icon, iconSizeVariants, iconVariants, } from "./prospect-client/Icon/IconLF";
|
|
48
|
-
export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
|
|
49
45
|
export { ItemMenu, } from "./prospect-client/ItemMenu/ItemMenuLF";
|
|
50
|
-
export {
|
|
51
|
-
export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
|
|
46
|
+
export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
|
|
47
|
+
export { ExitLayout, ExitLayoutSkeleton, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
|
|
52
48
|
export { Footer, } from "./prospect-client/Layout/Footer/FooterLF";
|
|
53
49
|
export { FormLayout, } from "./prospect-client/Layout/FormLayout/FormLayout";
|
|
54
50
|
export { LevelSelector, } from "./prospect-client/LevelSelector/LevelSelectorLF";
|
|
@@ -57,16 +53,18 @@ export { ClickItem, clickItemStates, clickItemVariants, } from "./prospect-clien
|
|
|
57
53
|
export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoLF";
|
|
58
54
|
export { List } from "./prospect-client/List/List/ListLF";
|
|
59
55
|
export { Loader } from "./prospect-client/Loader/LoaderLF";
|
|
56
|
+
export { MenuBurger, } from "./prospect-client/MenuBurger/MenuBurgerLF";
|
|
60
57
|
export { Message, messageVariants, } from "./prospect-client/Message/MessageLF";
|
|
61
|
-
export { MultiMessage, } from "./prospect-client/MultiMessage/MultiMessageLF";
|
|
62
58
|
export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalLF";
|
|
59
|
+
export { MultiMessage, } from "./prospect-client/MultiMessage/MultiMessageLF";
|
|
63
60
|
export { ErrorPage, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
|
|
64
61
|
export { ValidPage, } from "./prospect-client/pages/ValidPage/ValidPageLF";
|
|
65
62
|
export { ItemPagination, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
|
|
66
63
|
export { Pagination } from "./prospect-client/Pagination/PaginationLF";
|
|
67
64
|
export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarLF";
|
|
68
65
|
export { ProgressBarGroup } from "./prospect-client/ProgressBarGroup/ProgressBarGroupLF";
|
|
69
|
-
export { Skeleton, } from "./prospect-client/Skeleton/
|
|
66
|
+
export { Skeleton, skeletonSizeVariants, skeletonVariants, } from "./prospect-client/Skeleton/Skeleton";
|
|
67
|
+
export { SkeletonGrid, } from "./prospect-client/SkeletonGrid/SkeletonGrid";
|
|
70
68
|
export { SkeletonList, } from "./prospect-client/SkeletonList/SkeletonListLF";
|
|
71
69
|
export { Spinner, spinnerVariants, } from "./prospect-client/Spinner/SpinnerLF";
|
|
72
70
|
export { Stepper } from "./prospect-client/Stepper/StepperLF";
|
|
@@ -74,7 +72,9 @@ export { Svg } from "./prospect-client/Svg/Svg";
|
|
|
74
72
|
export { TabBar, tabBarDirection, } from "./prospect-client/TabBar/TabBarLF";
|
|
75
73
|
export { Table, } from "./prospect-client/Table/TableLF";
|
|
76
74
|
export { TableMobileCard, } from "./prospect-client/TableMobileCard/TableMobileCard";
|
|
75
|
+
export { TabMenu } from "./prospect-client/TabMenu/TabMenu";
|
|
77
76
|
export { Tag, tagVariants, } from "./prospect-client/Tag/TagLF";
|
|
78
77
|
export { TagList, } from "./prospect-client/TagList/TagListLF";
|
|
79
78
|
export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
|
|
80
79
|
export { Toggle } from "./prospect-client/Toggle/ToggleLF";
|
|
80
|
+
export { MessageBar, } from "./prospect-client/MessageBar/MessageBarLF";
|
|
@@ -5,10 +5,8 @@ import type { AccordionVariant, TDefaultProps } from "./types";
|
|
|
5
5
|
export type EnhancedProps = Partial<TDefaultProps> & {
|
|
6
6
|
onlyOne?: boolean;
|
|
7
7
|
className?: string;
|
|
8
|
-
/** @deprecated Use `variant` instead. */
|
|
9
|
-
classModifier?: string;
|
|
10
8
|
variant?: AccordionVariant;
|
|
11
9
|
children: React.ReactElement<CollapseProps>[] | React.ReactElement<CollapseProps>;
|
|
12
10
|
};
|
|
13
|
-
declare const Accordion: ({ className,
|
|
11
|
+
declare const Accordion: ({ className, variant, children, onlyOne, }: EnhancedProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
export { Accordion };
|
|
@@ -5,13 +5,10 @@ import React, { useId } from "react";
|
|
|
5
5
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
6
6
|
import { CollapseCard } from "./CollapseCard";
|
|
7
7
|
const defaultClassName = "af-accordion";
|
|
8
|
-
const Accordion = ({ className,
|
|
8
|
+
const Accordion = ({ className, variant = "default", children, onlyOne = false, }) => {
|
|
9
9
|
const componentClassName = getClassName({
|
|
10
10
|
baseClassName: defaultClassName,
|
|
11
|
-
modifiers: [
|
|
12
|
-
variant !== "default" && variant,
|
|
13
|
-
...(classModifier?.split(" ") ?? []),
|
|
14
|
-
],
|
|
11
|
+
modifiers: [variant !== "default" && variant],
|
|
15
12
|
className,
|
|
16
13
|
});
|
|
17
14
|
const id = useId();
|
|
@@ -8,9 +8,7 @@ export type CollapseProps = {
|
|
|
8
8
|
name?: string;
|
|
9
9
|
onToggle?: DetailsHTMLAttributes<HTMLDetailsElement>["onToggle"];
|
|
10
10
|
className?: string;
|
|
11
|
-
/** @deprecated Use `className` instead. */
|
|
12
|
-
classModifier?: string;
|
|
13
11
|
actions?: AccordionActions;
|
|
14
12
|
variant?: AccordionVariant;
|
|
15
13
|
};
|
|
16
|
-
export declare const CollapseCard: ({ children, name, title, id, open, onToggle, className,
|
|
14
|
+
export declare const CollapseCard: ({ children, name, title, id, open, onToggle, className, actions, variant, }: CollapseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,13 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
3
|
import { Body } from "./Body";
|
|
4
4
|
import { Header } from "./Header";
|
|
5
|
-
export const CollapseCard = ({ children, name, title, id, open, onToggle, className,
|
|
5
|
+
export const CollapseCard = ({ children, name, title, id, open, onToggle, className, actions, variant, }) => {
|
|
6
6
|
const headerId = id;
|
|
7
|
-
let newClassModifier = open ? "open" : "";
|
|
8
|
-
newClassModifier += ` ${classModifier}`;
|
|
9
7
|
const componentClassName = getClassName({
|
|
10
8
|
baseClassName: "af-accordion__details",
|
|
11
|
-
modifiers:
|
|
9
|
+
modifiers: open ? ["open"] : [],
|
|
12
10
|
className,
|
|
13
11
|
});
|
|
14
12
|
return (_jsxs("details", { open: open, name: name, className: componentClassName, onToggle: onToggle, children: [_jsx(Header, { id: headerId, actions: actions, variant: variant, children: title }), _jsx(Body, { children: children })] }));
|
|
@@ -8,11 +8,9 @@ export type HeaderToggleElement = {
|
|
|
8
8
|
export type HeaderProps = {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
className?: string;
|
|
11
|
-
/** @deprecated Use `className` instead. */
|
|
12
|
-
classModifier?: string;
|
|
13
11
|
id?: string;
|
|
14
12
|
actions?: AccordionActions;
|
|
15
13
|
variant?: AccordionVariant;
|
|
16
14
|
};
|
|
17
|
-
declare const Header: ({ children, className,
|
|
15
|
+
declare const Header: ({ children, className, id, actions, variant }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
16
|
export { Header };
|
|
@@ -6,10 +6,9 @@ import { Svg } from "../Svg/Svg";
|
|
|
6
6
|
import { Title } from "../Title/Title";
|
|
7
7
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
8
8
|
const defaultClassName = "af-accordion__item-header";
|
|
9
|
-
const Header = ({ children, className,
|
|
9
|
+
const Header = ({ children, className, id, actions, variant }) => {
|
|
10
10
|
const componentClassName = getClassName({
|
|
11
11
|
baseClassName: defaultClassName,
|
|
12
|
-
modifiers: classModifier?.split(" "),
|
|
13
12
|
className,
|
|
14
13
|
});
|
|
15
14
|
return (_jsx("summary", { className: componentClassName, id: id, children: variant === "light" ? (_jsxs(Title, { heading: "h3", children: [_jsx(Svg, { src: arrow, className: "af-accordion__item-header-icon" }), children, actions
|
|
@@ -2,11 +2,9 @@ import "@axa-fr/canopee-css/distributeur/Action/Action.css";
|
|
|
2
2
|
import { type ComponentPropsWithRef } from "react";
|
|
3
3
|
type ActionCoreProps = ComponentPropsWithRef<"a"> & {
|
|
4
4
|
icon: string;
|
|
5
|
-
/** @deprecated Use `className` instead. */
|
|
6
|
-
classModifier?: string;
|
|
7
5
|
};
|
|
8
6
|
export declare const Action: {
|
|
9
|
-
({ icon, className,
|
|
7
|
+
({ icon, className, ...otherProps }: ActionCoreProps): import("react/jsx-runtime").JSX.Element;
|
|
10
8
|
displayName: string;
|
|
11
9
|
};
|
|
12
10
|
export {};
|
|
@@ -3,12 +3,11 @@ import "@axa-fr/canopee-css/distributeur/Action/Action.css";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import {} from "react";
|
|
5
5
|
import { getClassName } from "../utilities/helpers/getClassName";
|
|
6
|
-
export const Action = ({ icon, className,
|
|
6
|
+
export const Action = ({ icon, className, ...otherProps }) => {
|
|
7
7
|
const componentClassName = classNames("btn", getClassName({
|
|
8
8
|
baseClassName: "af-btn--circle",
|
|
9
|
-
modifiers: classModifier?.split(" "),
|
|
10
9
|
className,
|
|
11
10
|
}));
|
|
12
|
-
return (_jsx("a", { ...otherProps, className: componentClassName, children: _jsx("i", { role: "
|
|
11
|
+
return (_jsx("a", { ...otherProps, className: componentClassName, children: _jsx("i", { role: "presentation", className: `glyphicon glyphicon-${icon}` }) }));
|
|
13
12
|
};
|
|
14
13
|
Action.displayName = "Action";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type PropsWithChildren
|
|
1
|
+
import { type ComponentPropsWithRef, type PropsWithChildren } from "react";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Button/Button.css";
|
|
3
|
+
import { type ClickableComponentProps } from "../ClickableGhost";
|
|
3
4
|
export type ButtonVariant = "primary" | "secondary" | "validated" | "danger" | "ghost" | "ghost-reverse";
|
|
4
|
-
type ButtonProps = PropsWithChildren<{
|
|
5
|
+
type ButtonProps = ClickableComponentProps & PropsWithChildren<{
|
|
5
6
|
variant?: ButtonVariant;
|
|
6
7
|
small?: boolean;
|
|
7
|
-
leftIcon?: ReactNode;
|
|
8
|
-
rightIcon?: ReactNode;
|
|
9
8
|
} & ComponentPropsWithRef<"button">>;
|
|
10
9
|
export declare const Button: {
|
|
11
10
|
({ variant, small, leftIcon, rightIcon, className, children, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,12 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import {} from "react";
|
|
4
4
|
import "@axa-fr/canopee-css/distributeur/Button/Button.css";
|
|
5
|
+
import { ClickableGhost, } from "../ClickableGhost";
|
|
5
6
|
const DEFAULT_CLASS_NAME = "af-btn";
|
|
6
|
-
export const Button = ({ variant = "primary", small, leftIcon, rightIcon, className, children, ...props }) =>
|
|
7
|
+
export const Button = ({ variant = "primary", small, leftIcon, rightIcon, className, children, ...props }) => {
|
|
8
|
+
if (variant === "ghost" || variant === "ghost-reverse") {
|
|
9
|
+
return (_jsxs(ClickableGhost, { component: "button", type: "button", variant: variant === "ghost-reverse" ? "reverse" : "ghost", ...props, children: [leftIcon, children, rightIcon] }));
|
|
10
|
+
}
|
|
11
|
+
return (_jsxs("button", { type: "button", className: classNames(DEFAULT_CLASS_NAME, variant !== "primary" && `${DEFAULT_CLASS_NAME}--${variant}`, small && `${DEFAULT_CLASS_NAME}--small`, className), ...props, children: [leftIcon, children, rightIcon] }));
|
|
12
|
+
};
|
|
7
13
|
Button.displayName = "Button";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/distributeur/MultiActionsButton/MultiActionsButton.css";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
3
|
+
export type ButtonMultiActionsProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
menuLabel?: string;
|
|
6
|
+
align?: "auto" | "left" | "right";
|
|
7
|
+
} & Omit<ComponentPropsWithoutRef<"button">, "children"> & {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const ButtonMultiActions: ({ label, menuLabel, align, className, id, onClick, onKeyDown, onMouseDown, children, ...buttonProps }: ButtonMultiActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/distributeur/MultiActionsButton/MultiActionsButton.css";
|
|
3
|
+
import chevronDown from "@material-symbols/svg-400/outlined/keyboard_arrow_down.svg";
|
|
4
|
+
import { useId, useRef, } from "react";
|
|
5
|
+
import { Button } from "../Button/Button";
|
|
6
|
+
import { Svg } from "../Svg";
|
|
7
|
+
import { getClassName } from "../utilities/helpers/getClassName";
|
|
8
|
+
export const ButtonMultiActions = ({ label = "Actions", menuLabel = "Actions supplémentaires", align = "auto", className, id, onClick, onKeyDown, onMouseDown, children, ...buttonProps }) => {
|
|
9
|
+
const generatedId = useId();
|
|
10
|
+
const menuId = `${id ?? `af-button-multi-actions-${generatedId}`}-menu`;
|
|
11
|
+
const containerRef = useRef(null);
|
|
12
|
+
const menuRef = useRef(null);
|
|
13
|
+
const triggerRef = useRef(null);
|
|
14
|
+
const handleMenuToggle = (event) => {
|
|
15
|
+
const isOpen = event.newState === "open";
|
|
16
|
+
triggerRef.current?.setAttribute("aria-expanded", String(isOpen));
|
|
17
|
+
if (!isOpen) {
|
|
18
|
+
triggerRef.current?.focus();
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
// Open the menu and focus its first item when navigating with ArrowDown
|
|
22
|
+
const handleTriggerKeyDown = (event) => {
|
|
23
|
+
onKeyDown?.(event);
|
|
24
|
+
if (event.defaultPrevented || menuRef.current?.matches(":popover-open"))
|
|
25
|
+
return;
|
|
26
|
+
if (event.key === "ArrowDown") {
|
|
27
|
+
event.preventDefault();
|
|
28
|
+
menuRef.current?.showPopover();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
// Close the menu once an action inside it has been activated
|
|
32
|
+
const handleMenuClick = (event) => {
|
|
33
|
+
if (event.target !== event.currentTarget) {
|
|
34
|
+
menuRef.current?.hidePopover();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
// Close the menu when the user presses Escape, returning focus to the trigger
|
|
38
|
+
const handleMenuKeyDown = (event) => {
|
|
39
|
+
if (event.key === "Escape" || event.key === "Esc") {
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
menuRef.current?.hidePopover();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return (_jsxs("div", { className: "af-button-multi-actions", ref: containerRef, children: [_jsx(Button, { ref: triggerRef, variant: "ghost", className: getClassName({
|
|
45
|
+
baseClassName: "af-button-multi-actions__trigger",
|
|
46
|
+
modifiers: [align],
|
|
47
|
+
className,
|
|
48
|
+
}), "aria-haspopup": "menu", "aria-controls": menuId, "aria-expanded": "false", onClick: onClick, onKeyDown: handleTriggerKeyDown, onMouseDown: onMouseDown, ...buttonProps, popoverTarget: menuId, rightIcon: _jsx(Svg, { src: chevronDown, alt: "", "aria-hidden": "true", className: getClassName({
|
|
49
|
+
baseClassName: "af-button-multi-actions__icon",
|
|
50
|
+
}) }), children: label }), _jsx("div", { popover: "auto", id: menuId, role: "menu", "aria-label": menuLabel, tabIndex: -1, className: "af-button-multi-actions__menu", ref: menuRef, onToggle: handleMenuToggle, onKeyDown: handleMenuKeyDown, onClick: handleMenuClick, children: children })] }));
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ButtonMultiActions } from "./ButtonMultiActions";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, LabelHTMLAttributes } from "react";
|
|
2
|
+
import "@axa-fr/canopee-css/distributeur/Card/BaseCard.css";
|
|
3
|
+
type BaseCardOwnProps = {
|
|
4
|
+
orientation?: "horizontal" | "vertical";
|
|
5
|
+
};
|
|
6
|
+
type BaseCardButtonProps = BaseCardOwnProps & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
7
|
+
component?: "button";
|
|
8
|
+
};
|
|
9
|
+
type BaseCardLabelProps = BaseCardOwnProps & LabelHTMLAttributes<HTMLLabelElement> & {
|
|
10
|
+
component: "label";
|
|
11
|
+
};
|
|
12
|
+
export type BaseCardProps = BaseCardButtonProps | BaseCardLabelProps;
|
|
13
|
+
export declare const BaseCard: (props: BaseCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getClassName } from "../utilities/helpers/getClassName";
|
|
3
|
+
import "@axa-fr/canopee-css/distributeur/Card/BaseCard.css";
|
|
4
|
+
const isLabelCard = (props) => props.component === "label";
|
|
5
|
+
function stripCardInternalProps(props) {
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
|
+
const { component, className, children, orientation, ...rest } = props;
|
|
8
|
+
return rest;
|
|
9
|
+
}
|
|
10
|
+
export const BaseCard = (props) => {
|
|
11
|
+
const { className, children, orientation } = props;
|
|
12
|
+
const finalClassName = getClassName({
|
|
13
|
+
baseClassName: "af-basecard",
|
|
14
|
+
modifiers: [orientation],
|
|
15
|
+
className,
|
|
16
|
+
});
|
|
17
|
+
if (isLabelCard(props)) {
|
|
18
|
+
const labelProps = stripCardInternalProps(props);
|
|
19
|
+
return (_jsx("label", { className: finalClassName, ...labelProps, children: children }));
|
|
20
|
+
}
|
|
21
|
+
const { type, ...buttonProps } = stripCardInternalProps(props);
|
|
22
|
+
return (_jsx("button", { type: type === "submit" ? "submit" : "button", className: finalClassName, ...buttonProps, children: children }));
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type BaseCardProps } from "../Card/BaseCard";
|
|
3
|
+
import "@axa-fr/canopee-css/distributeur/CardButton/CardButton.css";
|
|
4
|
+
type CardButtonOwnProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
orientation?: "horizontal" | "vertical";
|
|
9
|
+
};
|
|
10
|
+
type CardButtonAsButtonProps = CardButtonOwnProps & Omit<Extract<BaseCardProps, {
|
|
11
|
+
component?: "button";
|
|
12
|
+
}>, "className" | "children">;
|
|
13
|
+
type CardButtonAsLabelProps = CardButtonOwnProps & Omit<Extract<BaseCardProps, {
|
|
14
|
+
component: "label";
|
|
15
|
+
}>, "className" | "children">;
|
|
16
|
+
export type CardButtonProps = CardButtonAsButtonProps | CardButtonAsLabelProps;
|
|
17
|
+
export declare const CardButton: ({ className, children, icon, orientation, ...props }: CardButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BaseCard } from "../Card/BaseCard";
|
|
3
|
+
import "@axa-fr/canopee-css/distributeur/CardButton/CardButton.css";
|
|
4
|
+
import { getClassName } from "../utilities/helpers/getClassName";
|
|
5
|
+
export const CardButton = ({ className, children = "Card Button", icon = null, orientation = "horizontal", ...props }) => {
|
|
6
|
+
const finalClassName = getClassName({
|
|
7
|
+
baseClassName: "af-card-button",
|
|
8
|
+
className,
|
|
9
|
+
modifiers: [orientation],
|
|
10
|
+
});
|
|
11
|
+
return (_jsxs(BaseCard, { className: finalClassName, ...props, children: [icon, children] }));
|
|
12
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type AnchorHTMLAttributes, type ButtonHTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { Svg } from "./Svg";
|
|
3
|
+
import "@axa-fr/canopee-css/distributeur/Link/Link.css";
|
|
4
|
+
export type ClickableComponentProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The content to be displayed inside the clickable component.
|
|
7
|
+
*/
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The icon to be displayed on the left side of the clickable component.
|
|
11
|
+
*/
|
|
12
|
+
leftIcon?: ReactElement<typeof Svg>;
|
|
13
|
+
/**
|
|
14
|
+
* The icon to be displayed on the right side of the clickable component.
|
|
15
|
+
*/
|
|
16
|
+
rightIcon?: ReactElement<typeof Svg>;
|
|
17
|
+
};
|
|
18
|
+
type Props = ClickableComponentProps & {
|
|
19
|
+
className?: string;
|
|
20
|
+
variant?: "ghost" | "reverse";
|
|
21
|
+
} & (({
|
|
22
|
+
component: "a";
|
|
23
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement>) | ({
|
|
24
|
+
component: "button";
|
|
25
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>));
|
|
26
|
+
/**
|
|
27
|
+
* Internal component to render the "ghost" style of interactive elements.
|
|
28
|
+
* This component supports both anchor and button elements, and allows for optional left and right icons.
|
|
29
|
+
*
|
|
30
|
+
* This is used to share the look of the link and the ghost button.
|
|
31
|
+
*
|
|
32
|
+
* @param props The props for the ClickableGhost component.
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare const ClickableGhost: ({ children, className, leftIcon, rightIcon, variant, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import {} from "react";
|
|
3
|
+
import { getClassName } from "../prospect-client/utilities/getClassName";
|
|
4
|
+
import { Svg } from "./Svg";
|
|
5
|
+
import "@axa-fr/canopee-css/distributeur/Link/Link.css";
|
|
6
|
+
import { linkClassName } from "./Link/linkClassName";
|
|
7
|
+
/**
|
|
8
|
+
* Internal component to render the "ghost" style of interactive elements.
|
|
9
|
+
* This component supports both anchor and button elements, and allows for optional left and right icons.
|
|
10
|
+
*
|
|
11
|
+
* This is used to share the look of the link and the ghost button.
|
|
12
|
+
*
|
|
13
|
+
* @param props The props for the ClickableGhost component.
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export const ClickableGhost = ({ children, className, leftIcon, rightIcon, variant = "ghost", ...props }) => {
|
|
17
|
+
const componentClassName = getClassName({
|
|
18
|
+
baseClassName: linkClassName,
|
|
19
|
+
modifiers: [variant === "reverse" ? "reverse" : ""],
|
|
20
|
+
className,
|
|
21
|
+
});
|
|
22
|
+
if (props.component === "a") {
|
|
23
|
+
return (_jsxs("a", { className: componentClassName, ...props, children: [leftIcon, children, rightIcon] }));
|
|
24
|
+
}
|
|
25
|
+
return (_jsxs("button", { className: componentClassName, type: "button", ...props, children: [leftIcon, children, rightIcon] }));
|
|
26
|
+
};
|
|
@@ -23,7 +23,7 @@ type Props = Omit<ComponentPropsWithRef<typeof CheckboxItem>, "value" | "label"
|
|
|
23
23
|
mode?: keyof typeof CheckboxModes;
|
|
24
24
|
} & OnChange;
|
|
25
25
|
export declare const Checkbox: {
|
|
26
|
-
({ id, name, options, disabled, children, values, mode, onChange, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
({ id, name, options, disabled, children, values, mode, onChange, className, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
};
|
|
29
29
|
export {};
|
|
@@ -3,6 +3,7 @@ import { createElement as _createElement } from "react";
|
|
|
3
3
|
import React, {} from "react";
|
|
4
4
|
import { CheckboxItem } from "./CheckboxItem";
|
|
5
5
|
import { CheckboxModes } from "./CheckboxModes";
|
|
6
|
+
import { getClassName } from "../../utilities";
|
|
6
7
|
const defaultClassName = (mode) => {
|
|
7
8
|
switch (mode) {
|
|
8
9
|
case CheckboxModes.default:
|
|
@@ -13,17 +14,21 @@ const defaultClassName = (mode) => {
|
|
|
13
14
|
return `af-form__checkbox-${mode}`;
|
|
14
15
|
}
|
|
15
16
|
};
|
|
16
|
-
const CheckboxInner = ({ id, name, options, disabled, children, values = [], mode = CheckboxModes.default, onChange = () => { }, ...otherProps }) => {
|
|
17
|
-
const
|
|
17
|
+
const CheckboxInner = ({ id, name, options, disabled, children, values = [], mode = CheckboxModes.default, onChange = () => { }, className, ...otherProps }) => {
|
|
18
|
+
const itemClassName = defaultClassName(mode);
|
|
19
|
+
const componentClassName = getClassName({
|
|
20
|
+
baseClassName: "af-form__checkbox-container",
|
|
21
|
+
className,
|
|
22
|
+
});
|
|
18
23
|
const handleOnChange = ({ target: { value, checked }, }) => {
|
|
19
24
|
const newValues = checked
|
|
20
25
|
? [...values, value]
|
|
21
26
|
: values.filter((v) => v !== value);
|
|
22
27
|
onChange({ values: newValues, target: { value, checked }, id, name });
|
|
23
28
|
};
|
|
24
|
-
return (_jsx("div", { className:
|
|
29
|
+
return (_jsx("div", { className: componentClassName, children: options.map((option) => {
|
|
25
30
|
const isChecked = values ? values.indexOf(option.value) >= 0 : false;
|
|
26
|
-
return (_createElement(CheckboxItem, { ...otherProps, onChange: handleOnChange, key: option.value, className:
|
|
31
|
+
return (_createElement(CheckboxItem, { ...otherProps, onChange: handleOnChange, key: option.value, className: itemClassName, isChecked: isChecked, name: name, disabled: option.disabled || disabled, ...option }, children));
|
|
27
32
|
}) }));
|
|
28
33
|
};
|
|
29
34
|
CheckboxInner.displayName = "Checkbox";
|
|
@@ -5,8 +5,8 @@ import { Checkbox } from "./Checkbox";
|
|
|
5
5
|
import { CheckboxModes } from "./CheckboxModes";
|
|
6
6
|
const CheckboxInput = ({ label, mode = "default", options, children, ...otherProps }) => {
|
|
7
7
|
const newOptions = useOptionsWithId(options);
|
|
8
|
-
return (_jsx(Field, { label: label, labelPosition: mode === CheckboxModes.classic ? "top" : "center", roleContainer: "group", ...otherProps, renderInput: ({
|
|
9
|
-
return (_jsxs(_Fragment, { children: [_jsx(Checkbox, { id: id, mode: mode, options: newOptions,
|
|
8
|
+
return (_jsx(Field, { label: label, labelPosition: mode === CheckboxModes.classic ? "top" : "center", roleContainer: "group", ...otherProps, renderInput: ({ inputClassName, id, ariaInvalid, errorId, ...props }) => {
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsx(Checkbox, { id: id, mode: mode, options: newOptions, className: inputClassName, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...props }), children] }));
|
|
10
10
|
} }));
|
|
11
11
|
};
|
|
12
12
|
CheckboxInput.displayName = "CheckboxInput";
|