@axa-fr/canopee-react 1.0.0-alpha.1089
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 +60 -0
- package/dist/client.js +59 -0
- package/dist/distributeur/Accordion/Accordion.d.ts +14 -0
- package/dist/distributeur/Accordion/Accordion.js +18 -0
- package/dist/distributeur/Accordion/AccordionContext.d.ts +1 -0
- package/dist/distributeur/Accordion/AccordionContext.js +2 -0
- package/dist/distributeur/Accordion/Body.d.ts +6 -0
- package/dist/distributeur/Accordion/Body.js +5 -0
- package/dist/distributeur/Accordion/CollapseCard.d.ts +15 -0
- package/dist/distributeur/Accordion/CollapseCard.js +11 -0
- package/dist/distributeur/Accordion/Header.d.ts +17 -0
- package/dist/distributeur/Accordion/Header.js +20 -0
- package/dist/distributeur/Accordion/index.d.ts +3 -0
- package/dist/distributeur/Accordion/index.js +2 -0
- package/dist/distributeur/Action/Action.d.ts +5 -0
- package/dist/distributeur/Action/Action.js +9 -0
- package/dist/distributeur/Button/Button.d.ts +11 -0
- package/dist/distributeur/Button/Button.js +7 -0
- package/dist/distributeur/Card/Card.d.ts +14 -0
- package/dist/distributeur/Card/Card.js +6 -0
- package/dist/distributeur/CardData/CardData.d.ts +15 -0
- package/dist/distributeur/CardData/CardData.js +6 -0
- package/dist/distributeur/CardData/CardDataHeader.d.ts +14 -0
- package/dist/distributeur/CardData/CardDataHeader.js +9 -0
- package/dist/distributeur/Divider/Divider.d.ts +7 -0
- package/dist/distributeur/Divider/Divider.js +10 -0
- package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +23 -0
- package/dist/distributeur/Form/Checkbox/Checkbox.js +30 -0
- package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +6 -0
- package/dist/distributeur/Form/Checkbox/CheckboxInput.js +13 -0
- package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +10 -0
- package/dist/distributeur/Form/Checkbox/CheckboxItem.js +15 -0
- package/dist/distributeur/Form/Checkbox/CheckboxModes.d.ts +7 -0
- package/dist/distributeur/Form/Checkbox/CheckboxModes.js +8 -0
- package/dist/distributeur/Form/Checkbox/index.d.ts +4 -0
- package/dist/distributeur/Form/Checkbox/index.js +4 -0
- package/dist/distributeur/Form/Choice/Choice.d.ts +14 -0
- package/dist/distributeur/Form/Choice/Choice.js +18 -0
- package/dist/distributeur/Form/Choice/ChoiceInput.d.ts +6 -0
- package/dist/distributeur/Form/Choice/ChoiceInput.js +13 -0
- package/dist/distributeur/Form/Choice/index.d.ts +2 -0
- package/dist/distributeur/Form/Choice/index.js +2 -0
- package/dist/distributeur/Form/Date/Date.d.ts +9 -0
- package/dist/distributeur/Form/Date/Date.js +11 -0
- package/dist/distributeur/Form/Date/DateInput.d.ts +8 -0
- package/dist/distributeur/Form/Date/DateInput.js +9 -0
- package/dist/distributeur/Form/Date/index.d.ts +2 -0
- package/dist/distributeur/Form/Date/index.js +2 -0
- package/dist/distributeur/Form/Experimental/index.d.ts +0 -0
- package/dist/distributeur/Form/Experimental/index.js +1 -0
- package/dist/distributeur/Form/File/File.d.ts +25 -0
- package/dist/distributeur/Form/File/File.js +60 -0
- package/dist/distributeur/Form/File/FileErrors.d.ts +6 -0
- package/dist/distributeur/Form/File/FileErrors.js +5 -0
- package/dist/distributeur/Form/File/FileInput.d.ts +13 -0
- package/dist/distributeur/Form/File/FileInput.js +21 -0
- package/dist/distributeur/Form/File/FileLine.d.ts +9 -0
- package/dist/distributeur/Form/File/FileLine.js +7 -0
- package/dist/distributeur/Form/File/FileTable.d.ts +14 -0
- package/dist/distributeur/Form/File/FileTable.js +9 -0
- package/dist/distributeur/Form/File/constants.d.ts +1 -0
- package/dist/distributeur/Form/File/constants.js +1 -0
- package/dist/distributeur/Form/File/index.d.ts +6 -0
- package/dist/distributeur/Form/File/index.js +5 -0
- package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.d.ts +4 -0
- package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.js +12 -0
- package/dist/distributeur/Form/MultiSelect/MultiSelect.d.ts +23 -0
- package/dist/distributeur/Form/MultiSelect/MultiSelect.js +74 -0
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.d.ts +7 -0
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.js +10 -0
- package/dist/distributeur/Form/MultiSelect/NoOptionsMessage.d.ts +3 -0
- package/dist/distributeur/Form/MultiSelect/NoOptionsMessage.js +1 -0
- package/dist/distributeur/Form/MultiSelect/ValueContainer.d.ts +4 -0
- package/dist/distributeur/Form/MultiSelect/ValueContainer.js +20 -0
- package/dist/distributeur/Form/MultiSelect/index.d.ts +2 -0
- package/dist/distributeur/Form/MultiSelect/index.js +2 -0
- package/dist/distributeur/Form/MultiSelect/useMultiSelectStyle.d.ts +5 -0
- package/dist/distributeur/Form/MultiSelect/useMultiSelectStyle.js +81 -0
- package/dist/distributeur/Form/NestedQuestion/NestedQuestion.d.ts +5 -0
- package/dist/distributeur/Form/NestedQuestion/NestedQuestion.js +7 -0
- package/dist/distributeur/Form/Number/Number.d.ts +7 -0
- package/dist/distributeur/Form/Number/Number.js +12 -0
- package/dist/distributeur/Form/Number/NumberInput.d.ts +6 -0
- package/dist/distributeur/Form/Number/NumberInput.js +6 -0
- package/dist/distributeur/Form/Number/index.d.ts +2 -0
- package/dist/distributeur/Form/Number/index.js +2 -0
- package/dist/distributeur/Form/Pass/Pass.d.ts +9 -0
- package/dist/distributeur/Form/Pass/Pass.js +10 -0
- package/dist/distributeur/Form/Pass/PassInput.d.ts +10 -0
- package/dist/distributeur/Form/Pass/PassInput.js +31 -0
- package/dist/distributeur/Form/Pass/index.d.ts +2 -0
- package/dist/distributeur/Form/Pass/index.js +2 -0
- package/dist/distributeur/Form/Radio/Radio.d.ts +25 -0
- package/dist/distributeur/Form/Radio/Radio.js +37 -0
- package/dist/distributeur/Form/Radio/RadioCardGroup.d.ts +9 -0
- package/dist/distributeur/Form/Radio/RadioCardGroup.js +25 -0
- package/dist/distributeur/Form/Radio/RadioInput.d.ts +6 -0
- package/dist/distributeur/Form/Radio/RadioInput.js +11 -0
- package/dist/distributeur/Form/Radio/RadioItem.d.ts +10 -0
- package/dist/distributeur/Form/Radio/RadioItem.js +12 -0
- package/dist/distributeur/Form/Radio/index.d.ts +3 -0
- package/dist/distributeur/Form/Radio/index.js +3 -0
- package/dist/distributeur/Form/Select/Select.d.ts +342 -0
- package/dist/distributeur/Form/Select/Select.js +13 -0
- package/dist/distributeur/Form/Select/SelectBase.d.ts +24 -0
- package/dist/distributeur/Form/Select/SelectBase.js +14 -0
- package/dist/distributeur/Form/Select/SelectDefault.d.ts +9 -0
- package/dist/distributeur/Form/Select/SelectDefault.js +17 -0
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +23 -0
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.js +39 -0
- package/dist/distributeur/Form/Select/SelectInput.d.ts +378 -0
- package/dist/distributeur/Form/Select/SelectInput.js +9 -0
- package/dist/distributeur/Form/Select/index.d.ts +3 -0
- package/dist/distributeur/Form/Select/index.js +3 -0
- package/dist/distributeur/Form/Slider/Slider.d.ts +27 -0
- package/dist/distributeur/Form/Slider/Slider.js +36 -0
- package/dist/distributeur/Form/Slider/SliderInput.d.ts +9 -0
- package/dist/distributeur/Form/Slider/SliderInput.js +10 -0
- package/dist/distributeur/Form/Slider/index.d.ts +3 -0
- package/dist/distributeur/Form/Slider/index.js +3 -0
- package/dist/distributeur/Form/Text/Text.d.ts +7 -0
- package/dist/distributeur/Form/Text/Text.js +10 -0
- package/dist/distributeur/Form/Text/TextInput.d.ts +6 -0
- package/dist/distributeur/Form/Text/TextInput.js +9 -0
- package/dist/distributeur/Form/Text/index.d.ts +2 -0
- package/dist/distributeur/Form/Text/index.js +2 -0
- package/dist/distributeur/Form/Textarea/Textarea.d.ts +5 -0
- package/dist/distributeur/Form/Textarea/Textarea.js +12 -0
- package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +7 -0
- package/dist/distributeur/Form/Textarea/TextareaInput.js +10 -0
- package/dist/distributeur/Form/Textarea/index.d.ts +2 -0
- package/dist/distributeur/Form/Textarea/index.js +2 -0
- package/dist/distributeur/Form/core/Deprecated/Field.d.ts +21 -0
- package/dist/distributeur/Form/core/Deprecated/Field.js +19 -0
- package/dist/distributeur/Form/core/Deprecated/FieldForm.d.ts +103 -0
- package/dist/distributeur/Form/core/Deprecated/FieldForm.js +162 -0
- package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +16 -0
- package/dist/distributeur/Form/core/Deprecated/FieldInput.js +14 -0
- package/dist/distributeur/Form/core/Field.d.ts +80 -0
- package/dist/distributeur/Form/core/Field.js +42 -0
- package/dist/distributeur/Form/core/FieldError.d.ts +8 -0
- package/dist/distributeur/Form/core/FieldError.js +8 -0
- package/dist/distributeur/Form/core/FormClassManager.d.ts +7 -0
- package/dist/distributeur/Form/core/FormClassManager.js +36 -0
- package/dist/distributeur/Form/core/HelpMessage.d.ts +8 -0
- package/dist/distributeur/Form/core/HelpMessage.js +2 -0
- package/dist/distributeur/Form/core/InputList.d.ts +8 -0
- package/dist/distributeur/Form/core/InputList.js +4 -0
- package/dist/distributeur/Form/core/MessageTypes.d.ts +5 -0
- package/dist/distributeur/Form/core/MessageTypes.js +6 -0
- package/dist/distributeur/Form/core/getFirstId.d.ts +2 -0
- package/dist/distributeur/Form/core/getFirstId.js +1 -0
- package/dist/distributeur/Form/core/getOptionClassName.d.ts +1 -0
- package/dist/distributeur/Form/core/getOptionClassName.js +10 -0
- package/dist/distributeur/Form/core/index.d.ts +34 -0
- package/dist/distributeur/Form/core/index.js +13 -0
- package/dist/distributeur/Form/core/useAriaInvalid.d.ts +2 -0
- package/dist/distributeur/Form/core/useAriaInvalid.js +2 -0
- package/dist/distributeur/Form/core/useInputClassModifier.d.ts +4 -0
- package/dist/distributeur/Form/core/useInputClassModifier.js +13 -0
- package/dist/distributeur/Form/core/useOptionsWithId.d.ts +2 -0
- package/dist/distributeur/Form/core/useOptionsWithId.js +13 -0
- package/dist/distributeur/HelpButton/index.d.ts +8 -0
- package/dist/distributeur/HelpButton/index.js +8 -0
- package/dist/distributeur/Layout/Footer/Footer.d.ts +14 -0
- package/dist/distributeur/Layout/Footer/Footer.js +8 -0
- package/dist/distributeur/Layout/Footer/index.d.ts +1 -0
- package/dist/distributeur/Layout/Footer/index.js +1 -0
- package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.d.ts +39 -0
- package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.js +21 -0
- package/dist/distributeur/Layout/Header/Header.d.ts +9 -0
- package/dist/distributeur/Layout/Header/Header.js +10 -0
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +17 -0
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.d.ts +1 -0
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.js +6 -0
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.js +17 -0
- package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +14 -0
- package/dist/distributeur/Layout/Header/Infos/Infos.js +16 -0
- package/dist/distributeur/Layout/Header/MenuTitleWrapper/MenuTitleWrapper.d.ts +11 -0
- package/dist/distributeur/Layout/Header/MenuTitleWrapper/MenuTitleWrapper.js +14 -0
- package/dist/distributeur/Layout/Header/Name/Name.d.ts +16 -0
- package/dist/distributeur/Layout/Header/Name/Name.js +10 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBar.d.ts +12 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBar.helpers.d.ts +1 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBar.helpers.js +12 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBar.js +35 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +20 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.js +16 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +14 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.js +54 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +10 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.helpers.d.ts +1 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.helpers.js +11 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.js +19 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemLink.d.ts +8 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemLink.js +4 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/index.d.ts +3 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/index.js +3 -0
- package/dist/distributeur/Layout/Header/NavBar/index.d.ts +5 -0
- package/dist/distributeur/Layout/Header/NavBar/index.js +5 -0
- package/dist/distributeur/Layout/Header/ToggleButton/ToggleButton.d.ts +7 -0
- package/dist/distributeur/Layout/Header/ToggleButton/ToggleButton.js +8 -0
- package/dist/distributeur/Layout/Header/User/InnerUser.d.ts +5 -0
- package/dist/distributeur/Layout/Header/User/InnerUser.js +3 -0
- package/dist/distributeur/Layout/Header/User/User.d.ts +60 -0
- package/dist/distributeur/Layout/Header/User/User.js +10 -0
- package/dist/distributeur/Layout/Header/index.d.ts +9 -0
- package/dist/distributeur/Layout/Header/index.js +8 -0
- package/dist/distributeur/Layout/MainContainer/MainContainer.d.ts +5 -0
- package/dist/distributeur/Layout/MainContainer/MainContainer.js +3 -0
- package/dist/distributeur/Link/CustomLink.d.ts +8 -0
- package/dist/distributeur/Link/CustomLink.js +6 -0
- package/dist/distributeur/Link/Link.d.ts +5 -0
- package/dist/distributeur/Link/Link.js +12 -0
- package/dist/distributeur/Link/LinkAnchor.d.ts +12 -0
- package/dist/distributeur/Link/LinkAnchor.js +12 -0
- package/dist/distributeur/Link/linkClassName.d.ts +1 -0
- package/dist/distributeur/Link/linkClassName.js +1 -0
- package/dist/distributeur/Loader/Loader.d.ts +12 -0
- package/dist/distributeur/Loader/Loader.js +26 -0
- package/dist/distributeur/Messages/Message.d.ts +47 -0
- package/dist/distributeur/Messages/Message.js +43 -0
- package/dist/distributeur/ModalAgent/BooleanModal.d.ts +40 -0
- package/dist/distributeur/ModalAgent/BooleanModal.js +13 -0
- package/dist/distributeur/ModalAgent/Modal.d.ts +25 -0
- package/dist/distributeur/ModalAgent/Modal.js +24 -0
- package/dist/distributeur/ModalAgent/components/Body.d.ts +5 -0
- package/dist/distributeur/ModalAgent/components/Body.js +7 -0
- package/dist/distributeur/ModalAgent/components/Footer.d.ts +5 -0
- package/dist/distributeur/ModalAgent/components/Footer.js +7 -0
- package/dist/distributeur/ModalAgent/components/Header.d.ts +30 -0
- package/dist/distributeur/ModalAgent/components/Header.js +8 -0
- package/dist/distributeur/ModalAgent/components/HeaderBase.d.ts +5 -0
- package/dist/distributeur/ModalAgent/components/HeaderBase.js +7 -0
- package/dist/distributeur/ModalAgent/index.d.ts +7 -0
- package/dist/distributeur/ModalAgent/index.js +7 -0
- package/dist/distributeur/Popover/AnimatedPopover.d.ts +14 -0
- package/dist/distributeur/Popover/AnimatedPopover.js +18 -0
- package/dist/distributeur/Popover/Popover.d.ts +13 -0
- package/dist/distributeur/Popover/Popover.js +8 -0
- package/dist/distributeur/Popover/Popover.types.d.ts +9 -0
- package/dist/distributeur/Popover/Popover.types.js +1 -0
- package/dist/distributeur/Popover/PopoverBase.d.ts +15 -0
- package/dist/distributeur/Popover/PopoverBase.js +8 -0
- package/dist/distributeur/Popover/PopoverClick.d.ts +2 -0
- package/dist/distributeur/Popover/PopoverClick.js +27 -0
- package/dist/distributeur/Popover/PopoverOver.d.ts +2 -0
- package/dist/distributeur/Popover/PopoverOver.js +13 -0
- package/dist/distributeur/Popover/index.d.ts +3 -0
- package/dist/distributeur/Popover/index.js +1 -0
- package/dist/distributeur/Restitution/ArticleRestitution.d.ts +6 -0
- package/dist/distributeur/Restitution/ArticleRestitution.js +6 -0
- package/dist/distributeur/Restitution/HeaderRestitution.d.ts +9 -0
- package/dist/distributeur/Restitution/HeaderRestitution.js +6 -0
- package/dist/distributeur/Restitution/Restitution.d.ts +6 -0
- package/dist/distributeur/Restitution/Restitution.js +6 -0
- package/dist/distributeur/Restitution/RestitutionList.d.ts +6 -0
- package/dist/distributeur/Restitution/RestitutionList.js +4 -0
- package/dist/distributeur/Restitution/SectionRestitution.d.ts +6 -0
- package/dist/distributeur/Restitution/SectionRestitution.js +6 -0
- package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +7 -0
- package/dist/distributeur/Restitution/SectionRestitutionColumn.js +7 -0
- package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +8 -0
- package/dist/distributeur/Restitution/SectionRestitutionRow.js +8 -0
- package/dist/distributeur/Restitution/SectionRestitutionTitle.d.ts +6 -0
- package/dist/distributeur/Restitution/SectionRestitutionTitle.js +6 -0
- package/dist/distributeur/Restitution/index.d.ts +9 -0
- package/dist/distributeur/Restitution/index.js +9 -0
- package/dist/distributeur/Steps/Step.d.ts +8 -0
- package/dist/distributeur/Steps/Step.js +15 -0
- package/dist/distributeur/Steps/StepBase.d.ts +10 -0
- package/dist/distributeur/Steps/StepBase.js +9 -0
- package/dist/distributeur/Steps/StepCurrent.d.ts +5 -0
- package/dist/distributeur/Steps/StepCurrent.js +4 -0
- package/dist/distributeur/Steps/StepDisabled.d.ts +5 -0
- package/dist/distributeur/Steps/StepDisabled.js +4 -0
- package/dist/distributeur/Steps/StepLink.d.ts +10 -0
- package/dist/distributeur/Steps/StepLink.js +7 -0
- package/dist/distributeur/Steps/StepNoLink.d.ts +7 -0
- package/dist/distributeur/Steps/StepNoLink.js +4 -0
- package/dist/distributeur/Steps/Steps.d.ts +8 -0
- package/dist/distributeur/Steps/Steps.js +8 -0
- package/dist/distributeur/Steps/VerticalStep.d.ts +29 -0
- package/dist/distributeur/Steps/VerticalStep.js +22 -0
- package/dist/distributeur/Steps/index.d.ts +5 -0
- package/dist/distributeur/Steps/index.js +5 -0
- package/dist/distributeur/Steps/types.d.ts +8 -0
- package/dist/distributeur/Steps/types.js +1 -0
- package/dist/distributeur/Summary/index.d.ts +9 -0
- package/dist/distributeur/Summary/index.js +11 -0
- package/dist/distributeur/Svg/Svg.d.ts +7 -0
- package/dist/distributeur/Svg/Svg.js +50 -0
- package/dist/distributeur/Svg/index.d.ts +1 -0
- package/dist/distributeur/Svg/index.js +1 -0
- package/dist/distributeur/Svg/svgInjector.d.ts +12 -0
- package/dist/distributeur/Svg/svgInjector.js +28 -0
- package/dist/distributeur/Table/Pagination/Items.d.ts +30 -0
- package/dist/distributeur/Table/Pagination/Items.js +17 -0
- package/dist/distributeur/Table/Pagination/Li.d.ts +11 -0
- package/dist/distributeur/Table/Pagination/Li.js +14 -0
- package/dist/distributeur/Table/Pagination/LiPoint.d.ts +7 -0
- package/dist/distributeur/Table/Pagination/LiPoint.js +8 -0
- package/dist/distributeur/Table/Pagination/Pager.d.ts +41 -0
- package/dist/distributeur/Table/Pagination/Pager.js +16 -0
- package/dist/distributeur/Table/Pagination/PaginationButton.d.ts +13 -0
- package/dist/distributeur/Table/Pagination/PaginationButton.js +14 -0
- package/dist/distributeur/Table/Pagination/Paging.d.ts +15 -0
- package/dist/distributeur/Table/Pagination/Paging.js +21 -0
- package/dist/distributeur/Table/TBody.d.ts +6 -0
- package/dist/distributeur/Table/TBody.js +7 -0
- package/dist/distributeur/Table/THead.d.ts +6 -0
- package/dist/distributeur/Table/THead.js +7 -0
- package/dist/distributeur/Table/Table.d.ts +36 -0
- package/dist/distributeur/Table/Table.js +26 -0
- package/dist/distributeur/Table/Td.d.ts +6 -0
- package/dist/distributeur/Table/Td.js +7 -0
- package/dist/distributeur/Table/Th.d.ts +6 -0
- package/dist/distributeur/Table/Th.js +7 -0
- package/dist/distributeur/Table/Tr.d.ts +6 -0
- package/dist/distributeur/Table/Tr.js +7 -0
- package/dist/distributeur/Table/index.d.ts +9 -0
- package/dist/distributeur/Table/index.js +9 -0
- package/dist/distributeur/Tabs/Tabs.d.ts +8 -0
- package/dist/distributeur/Tabs/Tabs.js +6 -0
- package/dist/distributeur/Tabs/components/Pane.d.ts +8 -0
- package/dist/distributeur/Tabs/components/Pane.js +8 -0
- package/dist/distributeur/Tabs/components/Tab.d.ts +10 -0
- package/dist/distributeur/Tabs/components/Tab.js +4 -0
- package/dist/distributeur/Tabs/components/TabsCore.d.ts +10 -0
- package/dist/distributeur/Tabs/components/TabsCore.js +17 -0
- package/dist/distributeur/Tabs/components/TabsStateless.d.ts +13 -0
- package/dist/distributeur/Tabs/components/TabsStateless.js +11 -0
- package/dist/distributeur/Tabs/components/Title.d.ts +15 -0
- package/dist/distributeur/Tabs/components/Title.js +13 -0
- package/dist/distributeur/Tag/Tag.d.ts +32 -0
- package/dist/distributeur/Tag/Tag.js +32 -0
- package/dist/distributeur/Title/Title.d.ts +11 -0
- package/dist/distributeur/Title/Title.js +10 -0
- package/dist/distributeur/utilities/constants.d.ts +6 -0
- package/dist/distributeur/utilities/constants.js +7 -0
- package/dist/distributeur/utilities/helpers/date.d.ts +1 -0
- package/dist/distributeur/utilities/helpers/date.js +4 -0
- package/dist/distributeur/utilities/helpers/generateId.d.ts +1 -0
- package/dist/distributeur/utilities/helpers/generateId.js +10 -0
- package/dist/distributeur/utilities/helpers/getClassName.d.ts +20 -0
- package/dist/distributeur/utilities/helpers/getClassName.js +24 -0
- package/dist/distributeur/utilities/helpers/getComponentClassName.d.ts +20 -0
- package/dist/distributeur/utilities/helpers/getComponentClassName.js +54 -0
- package/dist/distributeur/utilities/hooks/useIsSmallScreen.d.ts +1 -0
- package/dist/distributeur/utilities/hooks/useIsSmallScreen.js +14 -0
- package/dist/distributeur/utilities.d.ts +3 -0
- package/dist/distributeur/utilities.js +3 -0
- package/dist/distributeur.d.ts +63 -0
- package/dist/distributeur.js +54 -0
- package/dist/prospect-client/Accordion/AccordionApollo.d.ts +4 -0
- package/dist/prospect-client/Accordion/AccordionApollo.js +8 -0
- package/dist/prospect-client/Accordion/AccordionCommon.d.ts +29 -0
- package/dist/prospect-client/Accordion/AccordionCommon.js +17 -0
- package/dist/prospect-client/Accordion/AccordionLF.d.ts +4 -0
- package/dist/prospect-client/Accordion/AccordionLF.js +8 -0
- package/dist/prospect-client/AccordionCore/AccordionCoreApollo.d.ts +3 -0
- package/dist/prospect-client/AccordionCore/AccordionCoreApollo.js +5 -0
- package/dist/prospect-client/AccordionCore/AccordionCoreCommon.d.ts +17 -0
- package/dist/prospect-client/AccordionCore/AccordionCoreCommon.js +22 -0
- package/dist/prospect-client/AccordionCore/AccordionCoreLF.d.ts +3 -0
- package/dist/prospect-client/AccordionCore/AccordionCoreLF.js +5 -0
- package/dist/prospect-client/BasePicture/BasePicture.d.ts +5 -0
- package/dist/prospect-client/BasePicture/BasePicture.js +4 -0
- package/dist/prospect-client/Button/ButtonApollo.d.ts +4 -0
- package/dist/prospect-client/Button/ButtonApollo.js +6 -0
- package/dist/prospect-client/Button/ButtonCommon.d.ts +23 -0
- package/dist/prospect-client/Button/ButtonCommon.js +13 -0
- package/dist/prospect-client/Button/ButtonLF.d.ts +4 -0
- package/dist/prospect-client/Button/ButtonLF.js +6 -0
- package/dist/prospect-client/CardMessage/CardMessageApollo.d.ts +2 -0
- package/dist/prospect-client/CardMessage/CardMessageApollo.js +2 -0
- package/dist/prospect-client/CardMessage/CardMessageCommon.d.ts +14 -0
- package/dist/prospect-client/CardMessage/CardMessageCommon.js +15 -0
- package/dist/prospect-client/CardMessage/CardMessageLF.d.ts +2 -0
- package/dist/prospect-client/CardMessage/CardMessageLF.js +2 -0
- package/dist/prospect-client/ClickIcon/ClickIconApollo.d.ts +2 -0
- package/dist/prospect-client/ClickIcon/ClickIconApollo.js +2 -0
- package/dist/prospect-client/ClickIcon/ClickIconCommon.d.ts +9 -0
- package/dist/prospect-client/ClickIcon/ClickIconCommon.js +3 -0
- package/dist/prospect-client/ClickIcon/ClickIconLF.d.ts +2 -0
- package/dist/prospect-client/ClickIcon/ClickIconLF.js +2 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionApollo.d.ts +4 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionApollo.js +6 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +28 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.js +10 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionLF.d.ts +5 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionLF.js +7 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoApollo.d.ts +3 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoApollo.js +5 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +33 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.js +28 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCore.d.ts +9 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCore.js +4 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoLF.d.ts +3 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoLF.js +5 -0
- package/dist/prospect-client/DataAgent/DataAgentApollo.d.ts +3 -0
- package/dist/prospect-client/DataAgent/DataAgentApollo.js +7 -0
- package/dist/prospect-client/DataAgent/DataAgentCommon.d.ts +21 -0
- package/dist/prospect-client/DataAgent/DataAgentCommon.js +17 -0
- package/dist/prospect-client/DataAgent/DataAgentLF.d.ts +3 -0
- package/dist/prospect-client/DataAgent/DataAgentLF.js +7 -0
- package/dist/prospect-client/Divider/DividerApollo.d.ts +2 -0
- package/dist/prospect-client/Divider/DividerApollo.js +2 -0
- package/dist/prospect-client/Divider/DividerCommon.d.ts +6 -0
- package/dist/prospect-client/Divider/DividerCommon.js +7 -0
- package/dist/prospect-client/Divider/DividerLF.d.ts +2 -0
- package/dist/prospect-client/Divider/DividerLF.js +2 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +6 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.js +7 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +35 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +31 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +6 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.js +7 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.d.ts +3 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.js +6 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.d.ts +16 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.js +11 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.d.ts +3 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.js +6 -0
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxApollo.d.ts +2 -0
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxApollo.js +2 -0
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +8 -0
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.js +4 -0
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxLF.d.ts +2 -0
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxLF.js +2 -0
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.d.ts +3 -0
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +8 -0
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +16 -0
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +11 -0
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.d.ts +3 -0
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.js +8 -0
- package/dist/prospect-client/Form/Dropdown/DropdownApollo.d.ts +3 -0
- package/dist/prospect-client/Form/Dropdown/DropdownApollo.js +6 -0
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +26 -0
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +13 -0
- package/dist/prospect-client/Form/Dropdown/DropdownLF.d.ts +3 -0
- package/dist/prospect-client/Form/Dropdown/DropdownLF.js +6 -0
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.d.ts +3 -0
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.js +7 -0
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.d.ts +18 -0
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.js +11 -0
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.d.ts +3 -0
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.js +7 -0
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.d.ts +4 -0
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.js +11 -0
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +60 -0
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +39 -0
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.d.ts +4 -0
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.js +9 -0
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileApollo.d.ts +3 -0
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileApollo.js +10 -0
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +54 -0
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.js +26 -0
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileLF.d.ts +3 -0
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileLF.js +10 -0
- package/dist/prospect-client/Form/InputDate/InputDate.helper.d.ts +8 -0
- package/dist/prospect-client/Form/InputDate/InputDate.helper.js +23 -0
- package/dist/prospect-client/Form/InputDate/InputDateApollo.d.ts +3 -0
- package/dist/prospect-client/Form/InputDate/InputDateApollo.js +8 -0
- package/dist/prospect-client/Form/InputDate/InputDateAtom.d.ts +9 -0
- package/dist/prospect-client/Form/InputDate/InputDateAtom.js +6 -0
- package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +27 -0
- package/dist/prospect-client/Form/InputDate/InputDateCommon.js +30 -0
- package/dist/prospect-client/Form/InputDate/InputDateLF.d.ts +3 -0
- package/dist/prospect-client/Form/InputDate/InputDateLF.js +8 -0
- package/dist/prospect-client/Form/InputDate/InputDateTextAtom.d.ts +9 -0
- package/dist/prospect-client/Form/InputDate/InputDateTextAtom.js +16 -0
- package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.d.ts +12 -0
- package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.js +33 -0
- package/dist/prospect-client/Form/InputPhone/InputPhone.types.d.ts +4 -0
- package/dist/prospect-client/Form/InputPhone/InputPhone.types.js +1 -0
- package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.d.ts +3 -0
- package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.js +8 -0
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +35 -0
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +32 -0
- package/dist/prospect-client/Form/InputPhone/InputPhoneLF.d.ts +3 -0
- package/dist/prospect-client/Form/InputPhone/InputPhoneLF.js +8 -0
- package/dist/prospect-client/Form/InputPhone/maskFrenchPhoneNumber.d.ts +1 -0
- package/dist/prospect-client/Form/InputPhone/maskFrenchPhoneNumber.js +12 -0
- package/dist/prospect-client/Form/InputText/InputTextApollo.d.ts +3 -0
- package/dist/prospect-client/Form/InputText/InputTextApollo.js +9 -0
- package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +24 -0
- package/dist/prospect-client/Form/InputText/InputTextCommon.js +14 -0
- package/dist/prospect-client/Form/InputText/InputTextLF.d.ts +3 -0
- package/dist/prospect-client/Form/InputText/InputTextLF.js +9 -0
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomApollo.d.ts +2 -0
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomApollo.js +2 -0
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.d.ts +10 -0
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.js +11 -0
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomLF.d.ts +2 -0
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomLF.js +2 -0
- package/dist/prospect-client/Form/ItemLabel/ItemLabelApollo.d.ts +3 -0
- package/dist/prospect-client/Form/ItemLabel/ItemLabelApollo.js +5 -0
- package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.d.ts +103 -0
- package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.js +55 -0
- package/dist/prospect-client/Form/ItemLabel/ItemLabelLF.d.ts +3 -0
- package/dist/prospect-client/Form/ItemLabel/ItemLabelLF.js +5 -0
- package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.d.ts +2 -0
- package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.js +2 -0
- package/dist/prospect-client/Form/ItemMessage/ItemMessageCommon.d.ts +13 -0
- package/dist/prospect-client/Form/ItemMessage/ItemMessageCommon.js +23 -0
- package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.d.ts +2 -0
- package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.js +2 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +3 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.js +6 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.d.ts +39 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +16 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +3 -0
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.js +6 -0
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo.d.ts +3 -0
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo.js +6 -0
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.d.ts +50 -0
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +12 -0
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF.d.ts +3 -0
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF.js +6 -0
- package/dist/prospect-client/Form/Radio/Radio/RadioApollo.d.ts +2 -0
- package/dist/prospect-client/Form/Radio/Radio/RadioApollo.js +2 -0
- package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +5 -0
- package/dist/prospect-client/Form/Radio/Radio/RadioCommon.js +6 -0
- package/dist/prospect-client/Form/Radio/Radio/RadioLF.d.ts +2 -0
- package/dist/prospect-client/Form/Radio/Radio/RadioLF.js +2 -0
- package/dist/prospect-client/Form/TextArea/TextAreaApollo.d.ts +3 -0
- package/dist/prospect-client/Form/TextArea/TextAreaApollo.js +8 -0
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +17 -0
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +14 -0
- package/dist/prospect-client/Form/TextArea/TextAreaLF.d.ts +3 -0
- package/dist/prospect-client/Form/TextArea/TextAreaLF.js +8 -0
- package/dist/prospect-client/Grid/DebugGridApollo.d.ts +2 -0
- package/dist/prospect-client/Grid/DebugGridApollo.js +4 -0
- package/dist/prospect-client/Grid/DebugGridCommon.d.ts +11 -0
- package/dist/prospect-client/Grid/DebugGridCommon.js +10 -0
- package/dist/prospect-client/Grid/DebugGridLF.d.ts +2 -0
- package/dist/prospect-client/Grid/DebugGridLF.js +4 -0
- package/dist/prospect-client/Heading/HeadingApollo.d.ts +4 -0
- package/dist/prospect-client/Heading/HeadingApollo.js +5 -0
- package/dist/prospect-client/Heading/HeadingCommon.d.ts +15 -0
- package/dist/prospect-client/Heading/HeadingCommon.js +8 -0
- package/dist/prospect-client/Heading/HeadingLF.d.ts +4 -0
- package/dist/prospect-client/Heading/HeadingLF.js +5 -0
- package/dist/prospect-client/Heading/HeadingWithSubheadings.d.ts +10 -0
- package/dist/prospect-client/Heading/HeadingWithSubheadings.js +2 -0
- package/dist/prospect-client/Heading/types.d.ts +6 -0
- package/dist/prospect-client/Heading/types.js +1 -0
- package/dist/prospect-client/Icon/IconApollo.d.ts +2 -0
- package/dist/prospect-client/Icon/IconApollo.js +2 -0
- package/dist/prospect-client/Icon/IconCommon.d.ts +21 -0
- package/dist/prospect-client/Icon/IconCommon.js +28 -0
- package/dist/prospect-client/Icon/IconLF.d.ts +2 -0
- package/dist/prospect-client/Icon/IconLF.js +2 -0
- package/dist/prospect-client/ItemTabBar/ItemTabBarApollo.d.ts +2 -0
- package/dist/prospect-client/ItemTabBar/ItemTabBarApollo.js +2 -0
- package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +6 -0
- package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.js +8 -0
- package/dist/prospect-client/ItemTabBar/ItemTabBarLF.d.ts +2 -0
- package/dist/prospect-client/ItemTabBar/ItemTabBarLF.js +2 -0
- package/dist/prospect-client/Layout/Footer/DynamicIcons.d.ts +4 -0
- package/dist/prospect-client/Layout/Footer/DynamicIcons.js +20 -0
- package/dist/prospect-client/Layout/Footer/FooterApollo.d.ts +2 -0
- package/dist/prospect-client/Layout/Footer/FooterApollo.js +2 -0
- package/dist/prospect-client/Layout/Footer/FooterCommon.d.ts +10 -0
- package/dist/prospect-client/Layout/Footer/FooterCommon.js +14 -0
- package/dist/prospect-client/Layout/Footer/FooterLF.d.ts +2 -0
- package/dist/prospect-client/Layout/Footer/FooterLF.js +2 -0
- package/dist/prospect-client/Layout/Footer/MenuIcons.d.ts +9 -0
- package/dist/prospect-client/Layout/Footer/MenuIcons.js +8 -0
- package/dist/prospect-client/Layout/Footer/MenuLink.d.ts +11 -0
- package/dist/prospect-client/Layout/Footer/MenuLink.js +11 -0
- package/dist/prospect-client/Link/LinkApollo.d.ts +2 -0
- package/dist/prospect-client/Link/LinkApollo.js +2 -0
- package/dist/prospect-client/Link/LinkCommon.d.ts +17 -0
- package/dist/prospect-client/Link/LinkCommon.js +20 -0
- package/dist/prospect-client/Link/LinkLF.d.ts +2 -0
- package/dist/prospect-client/Link/LinkLF.js +2 -0
- package/dist/prospect-client/List/ClickItem/ClickItemApollo.d.ts +4 -0
- package/dist/prospect-client/List/ClickItem/ClickItemApollo.js +8 -0
- package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +15 -0
- package/dist/prospect-client/List/ClickItem/ClickItemCommon.js +31 -0
- package/dist/prospect-client/List/ClickItem/ClickItemLF.d.ts +4 -0
- package/dist/prospect-client/List/ClickItem/ClickItemLF.js +8 -0
- package/dist/prospect-client/List/ClickItem/ClickItemWrapper.d.ts +6 -0
- package/dist/prospect-client/List/ClickItem/ClickItemWrapper.js +7 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentApollo.d.ts +2 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentApollo.js +4 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentCommon.d.ts +14 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentCommon.js +4 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentLF.d.ts +2 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentLF.js +4 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixApollo.d.ts +2 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixApollo.js +4 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixCommon.d.ts +14 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixCommon.js +11 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixLF.d.ts +2 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixLF.js +4 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixApollo.d.ts +2 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixApollo.js +6 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.d.ts +14 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.js +14 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixLF.d.ts +2 -0
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixLF.js +6 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoApollo.d.ts +3 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoApollo.js +5 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.d.ts +16 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.js +13 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoLF.d.ts +3 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoLF.js +5 -0
- package/dist/prospect-client/Message/Message.helpers.d.ts +5 -0
- package/dist/prospect-client/Message/Message.helpers.js +7 -0
- package/dist/prospect-client/Message/MessageApollo.d.ts +5 -0
- package/dist/prospect-client/Message/MessageApollo.js +6 -0
- package/dist/prospect-client/Message/MessageCommon.d.ts +25 -0
- package/dist/prospect-client/Message/MessageCommon.js +14 -0
- package/dist/prospect-client/Message/MessageLF.d.ts +5 -0
- package/dist/prospect-client/Message/MessageLF.js +6 -0
- package/dist/prospect-client/Message/constants.d.ts +3 -0
- package/dist/prospect-client/Message/constants.js +19 -0
- package/dist/prospect-client/Message/types.d.ts +1 -0
- package/dist/prospect-client/Message/types.js +1 -0
- package/dist/prospect-client/Modal/ModalApollo.d.ts +8 -0
- package/dist/prospect-client/Modal/ModalApollo.js +13 -0
- package/dist/prospect-client/Modal/ModalCommon.d.ts +10 -0
- package/dist/prospect-client/Modal/ModalCommon.js +8 -0
- package/dist/prospect-client/Modal/ModalLF.d.ts +8 -0
- package/dist/prospect-client/Modal/ModalLF.js +13 -0
- package/dist/prospect-client/Modal/components/ModalCore.d.ts +6 -0
- package/dist/prospect-client/Modal/components/ModalCore.js +7 -0
- package/dist/prospect-client/Modal/components/ModalCoreBody.d.ts +2 -0
- package/dist/prospect-client/Modal/components/ModalCoreBody.js +14 -0
- package/dist/prospect-client/Modal/components/ModalCoreFooterApollo.d.ts +2 -0
- package/dist/prospect-client/Modal/components/ModalCoreFooterApollo.js +4 -0
- package/dist/prospect-client/Modal/components/ModalCoreFooterCommon.d.ts +10 -0
- package/dist/prospect-client/Modal/components/ModalCoreFooterCommon.js +10 -0
- package/dist/prospect-client/Modal/components/ModalCoreFooterLF.d.ts +2 -0
- package/dist/prospect-client/Modal/components/ModalCoreFooterLF.js +4 -0
- package/dist/prospect-client/Modal/components/ModalCoreHeaderApollo.d.ts +2 -0
- package/dist/prospect-client/Modal/components/ModalCoreHeaderApollo.js +5 -0
- package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.d.ts +13 -0
- package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.js +4 -0
- package/dist/prospect-client/Modal/components/ModalCoreHeaderLF.d.ts +2 -0
- package/dist/prospect-client/Modal/components/ModalCoreHeaderLF.js +5 -0
- package/dist/prospect-client/Modal/types.d.ts +12 -0
- package/dist/prospect-client/Modal/types.js +1 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationApollo.d.ts +3 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationApollo.js +3 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationCommon.d.ts +10 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationCommon.js +11 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationLF.d.ts +3 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationLF.js +3 -0
- package/dist/prospect-client/Pagination/Pagination.helper.d.ts +9 -0
- package/dist/prospect-client/Pagination/Pagination.helper.js +34 -0
- package/dist/prospect-client/Pagination/PaginationApollo.d.ts +4 -0
- package/dist/prospect-client/Pagination/PaginationApollo.js +5 -0
- package/dist/prospect-client/Pagination/PaginationCommon.d.ts +14 -0
- package/dist/prospect-client/Pagination/PaginationCommon.js +20 -0
- package/dist/prospect-client/Pagination/PaginationLF.d.ts +4 -0
- package/dist/prospect-client/Pagination/PaginationLF.js +5 -0
- package/dist/prospect-client/ProgressBar/ProgressBarApollo.d.ts +2 -0
- package/dist/prospect-client/ProgressBar/ProgressBarApollo.js +2 -0
- package/dist/prospect-client/ProgressBar/ProgressBarCommon.d.ts +9 -0
- package/dist/prospect-client/ProgressBar/ProgressBarCommon.js +8 -0
- package/dist/prospect-client/ProgressBar/ProgressBarLF.d.ts +2 -0
- package/dist/prospect-client/ProgressBar/ProgressBarLF.js +2 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupApollo.d.ts +3 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupApollo.js +5 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.d.ts +18 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.js +9 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupLF.d.ts +3 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupLF.js +5 -0
- package/dist/prospect-client/ProgressBarGroup/useSequentialProgress.d.ts +20 -0
- package/dist/prospect-client/ProgressBarGroup/useSequentialProgress.js +80 -0
- package/dist/prospect-client/Spinner/SpinnerApollo.d.ts +2 -0
- package/dist/prospect-client/Spinner/SpinnerApollo.js +2 -0
- package/dist/prospect-client/Spinner/SpinnerCommon.d.ts +17 -0
- package/dist/prospect-client/Spinner/SpinnerCommon.js +19 -0
- package/dist/prospect-client/Spinner/SpinnerLF.d.ts +2 -0
- package/dist/prospect-client/Spinner/SpinnerLF.js +2 -0
- package/dist/prospect-client/Stepper/StepperApollo.d.ts +3 -0
- package/dist/prospect-client/Stepper/StepperApollo.js +5 -0
- package/dist/prospect-client/Stepper/StepperCommon.d.ts +18 -0
- package/dist/prospect-client/Stepper/StepperCommon.js +8 -0
- package/dist/prospect-client/Stepper/StepperLF.d.ts +3 -0
- package/dist/prospect-client/Stepper/StepperLF.js +5 -0
- package/dist/prospect-client/Svg/Svg.d.ts +11 -0
- package/dist/prospect-client/Svg/Svg.js +54 -0
- package/dist/prospect-client/Svg/svgInjector.d.ts +12 -0
- package/dist/prospect-client/Svg/svgInjector.js +31 -0
- package/dist/prospect-client/TabBar/TabBarApollo.d.ts +4 -0
- package/dist/prospect-client/TabBar/TabBarApollo.js +6 -0
- package/dist/prospect-client/TabBar/TabBarCommon.d.ts +19 -0
- package/dist/prospect-client/TabBar/TabBarCommon.js +48 -0
- package/dist/prospect-client/TabBar/TabBarLF.d.ts +4 -0
- package/dist/prospect-client/TabBar/TabBarLF.js +6 -0
- package/dist/prospect-client/Tag/TagApollo.d.ts +2 -0
- package/dist/prospect-client/Tag/TagApollo.js +2 -0
- package/dist/prospect-client/Tag/TagCommon.d.ts +13 -0
- package/dist/prospect-client/Tag/TagCommon.js +14 -0
- package/dist/prospect-client/Tag/TagLF.d.ts +2 -0
- package/dist/prospect-client/Tag/TagLF.js +2 -0
- package/dist/prospect-client/TimelineVertical/TimelineVerticalApollo.d.ts +4 -0
- package/dist/prospect-client/TimelineVertical/TimelineVerticalApollo.js +5 -0
- package/dist/prospect-client/TimelineVertical/TimelineVerticalCommon.d.ts +7 -0
- package/dist/prospect-client/TimelineVertical/TimelineVerticalCommon.js +3 -0
- package/dist/prospect-client/TimelineVertical/TimelineVerticalLF.d.ts +4 -0
- package/dist/prospect-client/TimelineVertical/TimelineVerticalLF.js +5 -0
- package/dist/prospect-client/TimelineVertical/types.d.ts +5 -0
- package/dist/prospect-client/TimelineVertical/types.js +1 -0
- package/dist/prospect-client/Toggle/ToggleApollo.d.ts +2 -0
- package/dist/prospect-client/Toggle/ToggleApollo.js +2 -0
- package/dist/prospect-client/Toggle/ToggleCommon.d.ts +3 -0
- package/dist/prospect-client/Toggle/ToggleCommon.js +9 -0
- package/dist/prospect-client/Toggle/ToggleLF.d.ts +2 -0
- package/dist/prospect-client/Toggle/ToggleLF.js +2 -0
- package/dist/prospect-client/utilities/constants.d.ts +6 -0
- package/dist/prospect-client/utilities/constants.js +6 -0
- package/dist/prospect-client/utilities/generateId.d.ts +1 -0
- package/dist/prospect-client/utilities/generateId.js +10 -0
- package/dist/prospect-client/utilities/getClassName.d.ts +20 -0
- package/dist/prospect-client/utilities/getClassName.js +24 -0
- package/dist/prospect-client/utilities/getComponentClassName.d.ts +4 -0
- package/dist/prospect-client/utilities/getComponentClassName.js +30 -0
- package/dist/prospect-client/utilities/hook/useHasScroll.d.ts +6 -0
- package/dist/prospect-client/utilities/hook/useHasScroll.js +30 -0
- package/dist/prospect-client/utilities/hook/useIsSmallScreen.d.ts +1 -0
- package/dist/prospect-client/utilities/hook/useIsSmallScreen.js +14 -0
- package/dist/prospect-client/utilities/types/PolymorphicComponent.d.ts +8 -0
- package/dist/prospect-client/utilities/types/PolymorphicComponent.js +1 -0
- package/dist/prospect.d.ts +56 -0
- package/dist/prospect.js +55 -0
- package/package.json +90 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export declare const cardMessageVariants: {
|
|
3
|
+
readonly info: "info";
|
|
4
|
+
readonly warning: "warning";
|
|
5
|
+
readonly error: "error";
|
|
6
|
+
readonly neutral: "neutral";
|
|
7
|
+
};
|
|
8
|
+
export type CardMessageVariants = keyof typeof cardMessageVariants;
|
|
9
|
+
export type CardMessageProps = ComponentPropsWithoutRef<"div"> & {
|
|
10
|
+
variant?: CardMessageVariants;
|
|
11
|
+
title?: string;
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const CardMessage: ({ variant, title, text, className, ...props }: CardMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { getComponentClassName } from "../utilities/getComponentClassName";
|
|
4
|
+
export const cardMessageVariants = {
|
|
5
|
+
info: "info",
|
|
6
|
+
warning: "warning",
|
|
7
|
+
error: "error",
|
|
8
|
+
neutral: "neutral",
|
|
9
|
+
};
|
|
10
|
+
export const CardMessage = ({ variant = "info", title, text, className, ...props }) => {
|
|
11
|
+
const componentClassName = useMemo(() => {
|
|
12
|
+
return getComponentClassName("af-card-message", className, variant);
|
|
13
|
+
}, [className, variant]);
|
|
14
|
+
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from "react";
|
|
2
|
+
import { IconVariants } from "../Icon/IconCommon";
|
|
3
|
+
export type ClickIconProps = ComponentPropsWithRef<"button"> & {
|
|
4
|
+
src: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
iconVariant?: IconVariants;
|
|
7
|
+
iconClassName?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ClickIcon: ({ src, className, iconVariant, iconClassName, ...props }: ClickIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "../Icon/IconCommon";
|
|
3
|
+
export const ClickIcon = ({ src, className, iconVariant = "primary", iconClassName, ...props }) => (_jsx("button", { type: "button", className: ["af-click-icon", className].filter(Boolean).join(" "), disabled: iconVariant === "disabled", ...props, children: _jsx(Icon, { src: src, variant: iconVariant, className: iconClassName }) }));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/prospect/List/ContentItemDuoAction/ContentItemDuoActionAll.css";
|
|
2
|
+
import { type ContentItemDuoActionProps } from "./ContentItemDuoActionCommon";
|
|
3
|
+
export { type ContentItemDuoActionState } from "./ContentItemDuoActionCommon";
|
|
4
|
+
export declare const ContentItemDuoAction: (props: ContentItemDuoActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/List/ContentItemDuoAction/ContentItemDuoActionAll.css";
|
|
3
|
+
import { ContentItemDuoActionCommon, } from "./ContentItemDuoActionCommon";
|
|
4
|
+
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoApollo";
|
|
5
|
+
import { Toggle } from "../Toggle/ToggleApollo";
|
|
6
|
+
export const ContentItemDuoAction = (props) => (_jsx(ContentItemDuoActionCommon, { ...props, ContentItemMonoComponent: ContentItemMono, ToggleComponent: Toggle }));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ComponentType, type ReactElement } from "react";
|
|
2
|
+
import type { ToggleProps } from "../Toggle/ToggleCommon";
|
|
3
|
+
import type { ContentItemProps } from "../ContentItemMono/ContentItemMonoCommon";
|
|
4
|
+
import type { ButtonProps } from "../Button/ButtonCommon";
|
|
5
|
+
export declare const ContentItemDuoActionState: {
|
|
6
|
+
readonly edit: "edit";
|
|
7
|
+
readonly toggle: "toggle";
|
|
8
|
+
};
|
|
9
|
+
export type ContentItemDuoActionToggleProps = {
|
|
10
|
+
className?: string;
|
|
11
|
+
state: "toggle";
|
|
12
|
+
ContentItemMonoComponent: ComponentType<ContentItemProps>;
|
|
13
|
+
contentItemProps: ContentItemProps;
|
|
14
|
+
ToggleComponent: ComponentType<ToggleProps>;
|
|
15
|
+
toggleProps: ToggleProps;
|
|
16
|
+
};
|
|
17
|
+
export type ContentItemDuoActionButtonsProps = {
|
|
18
|
+
className?: string;
|
|
19
|
+
state: "edit";
|
|
20
|
+
ContentItemMonoComponent: ComponentType<ContentItemProps>;
|
|
21
|
+
contentItemProps: ContentItemProps;
|
|
22
|
+
buttons: ReactElement<ComponentType<ButtonProps>>;
|
|
23
|
+
};
|
|
24
|
+
export type ContentItemDuoActionProps = Omit<ContentItemDuoActionToggleProps, "ToggleComponent" | "ContentItemMonoComponent"> | Omit<ContentItemDuoActionButtonsProps, "ContentItemMonoComponent">;
|
|
25
|
+
export type ContentItemDuoActionCommonProps = ContentItemDuoActionToggleProps | ContentItemDuoActionButtonsProps;
|
|
26
|
+
export declare const ContentItemDuoActionCommon: ({ className, state, ContentItemMonoComponent, contentItemProps, ToggleComponent, ...props }: ContentItemDuoActionCommonProps & {
|
|
27
|
+
ToggleComponent?: ComponentType<ToggleProps>;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { getComponentClassName } from "../utilities/getComponentClassName";
|
|
3
|
+
export const ContentItemDuoActionState = {
|
|
4
|
+
edit: "edit",
|
|
5
|
+
toggle: "toggle",
|
|
6
|
+
};
|
|
7
|
+
export const ContentItemDuoActionCommon = ({ className, state, ContentItemMonoComponent, contentItemProps, ToggleComponent, ...props }) => {
|
|
8
|
+
const componentClassName = getComponentClassName("af-content-item-duo-action", className);
|
|
9
|
+
return (_jsxs("div", { className: componentClassName, children: [_jsx(ContentItemMonoComponent, { ...contentItemProps }), _jsx("div", { className: "af-action-container", children: state === "edit" ? (props.buttons) : (_jsx(ToggleComponent, { ...props.toggleProps })) })] }));
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/client/List/ContentItemDuoAction/ContentItemDuoActionAll.css";
|
|
2
|
+
import "@axa-fr/canopee-css/client/ContentItemMono/ContentItemMonoLF.css";
|
|
3
|
+
import { type ContentItemDuoActionProps } from "./ContentItemDuoActionCommon";
|
|
4
|
+
export { type ContentItemDuoActionState } from "./ContentItemDuoActionCommon";
|
|
5
|
+
export declare const ContentItemDuoAction: (props: ContentItemDuoActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/List/ContentItemDuoAction/ContentItemDuoActionAll.css";
|
|
3
|
+
import "@axa-fr/canopee-css/client/ContentItemMono/ContentItemMonoLF.css";
|
|
4
|
+
import { ContentItemDuoActionCommon, } from "./ContentItemDuoActionCommon";
|
|
5
|
+
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoLF";
|
|
6
|
+
import { Toggle } from "../Toggle/ToggleLF";
|
|
7
|
+
export const ContentItemDuoAction = (props) => (_jsx(ContentItemDuoActionCommon, { ...props, ContentItemMonoComponent: ContentItemMono, ToggleComponent: Toggle }));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/ContentItemMono/ContentItemMonoApollo.css";
|
|
3
|
+
import { Icon } from "../Icon/IconApollo";
|
|
4
|
+
import { ContentItemMonoCommon, } from "./ContentItemMonoCommon";
|
|
5
|
+
export const ContentItemMono = (props) => (_jsx(ContentItemMonoCommon, { ...props, IconComponent: Icon }));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ComponentProps, ComponentType } from "react";
|
|
2
|
+
import { Icon, IconProps } from "../Icon/IconCommon";
|
|
3
|
+
import { type ContentItemCoreProps } from "./ContentItemMonoCore";
|
|
4
|
+
export type ContentMonoItemSize = "medium" | "large";
|
|
5
|
+
export type ContentMonoItemPictureProps = {
|
|
6
|
+
type: "picture";
|
|
7
|
+
size?: ContentMonoItemSize;
|
|
8
|
+
picture: string;
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle: string;
|
|
11
|
+
};
|
|
12
|
+
export type ContentMonoItemIconProps = {
|
|
13
|
+
type: "icon";
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `iconProps` instead.
|
|
16
|
+
*/
|
|
17
|
+
icon?: string;
|
|
18
|
+
iconProps?: IconProps;
|
|
19
|
+
title: string;
|
|
20
|
+
subtitle1?: string;
|
|
21
|
+
subtitle2?: string;
|
|
22
|
+
};
|
|
23
|
+
export type ContentMonoItemStickProps = {
|
|
24
|
+
type: "stick";
|
|
25
|
+
title: string;
|
|
26
|
+
subtitle?: string;
|
|
27
|
+
};
|
|
28
|
+
export type ContentItemProps = ContentMonoItemPictureProps | ContentMonoItemIconProps | ContentMonoItemStickProps;
|
|
29
|
+
export type ContentItemCommonProps = ContentItemProps & {
|
|
30
|
+
IconComponent: ComponentType<ComponentProps<typeof Icon>>;
|
|
31
|
+
};
|
|
32
|
+
export declare const getContentItemCoreProps: ({ IconComponent, type, ...props }: ContentItemCommonProps) => ContentItemCoreProps;
|
|
33
|
+
export declare const ContentItemMonoCommon: (props: ContentItemCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { BasePicture } from "../BasePicture/BasePicture";
|
|
3
|
+
import { ContentItemMonoCore, } from "./ContentItemMonoCore";
|
|
4
|
+
export const getContentItemCoreProps = ({ IconComponent, type, ...props }) => {
|
|
5
|
+
if (type === "icon") {
|
|
6
|
+
const { icon, iconProps, title, subtitle1, subtitle2 } = props;
|
|
7
|
+
return {
|
|
8
|
+
title,
|
|
9
|
+
primarySubtitle: subtitle1,
|
|
10
|
+
subtitle: subtitle2,
|
|
11
|
+
leftComponent: (iconProps && _jsx(IconComponent, { "data-testid": "icon", ...iconProps })) ||
|
|
12
|
+
(icon && _jsx(IconComponent, { "data-testid": "icon", src: icon })),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
if (type === "picture") {
|
|
16
|
+
return {
|
|
17
|
+
...props,
|
|
18
|
+
leftComponent: (_jsx(BasePicture, { src: props.picture, alt: props.title })),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
...props,
|
|
23
|
+
leftComponent: _jsx("div", { className: "stick" }),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export const ContentItemMonoCommon = (props) => {
|
|
27
|
+
return _jsx(ContentItemMonoCore, { ...getContentItemCoreProps(props) });
|
|
28
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ContentMonoItemSize = "medium" | "large";
|
|
2
|
+
export type ContentItemCoreProps = {
|
|
3
|
+
size?: ContentMonoItemSize;
|
|
4
|
+
title?: string;
|
|
5
|
+
primarySubtitle?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
leftComponent?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const ContentItemMonoCore: ({ size, leftComponent, title, primarySubtitle, subtitle, }: ContentItemCoreProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const ContentItemMonoCore = ({ size = "medium", leftComponent, title, primarySubtitle, subtitle, }) => {
|
|
3
|
+
return (_jsxs("div", { "data-testid": "container", className: `af-content-item-mono ${size}`, children: [leftComponent, _jsxs("div", { className: "text-content", children: [_jsx("span", { className: "title", children: title }), primarySubtitle ? (_jsx("span", { className: "subtitle-primary", children: primarySubtitle })) : null, subtitle ? _jsx("span", { className: "subtitle", children: subtitle }) : null] })] }));
|
|
4
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/ContentItemMono/ContentItemMonoLF.css";
|
|
3
|
+
import { Icon } from "../Icon/IconLF";
|
|
4
|
+
import { ContentItemMonoCommon, } from "./ContentItemMonoCommon";
|
|
5
|
+
export const ContentItemMono = (props) => (_jsx(ContentItemMonoCommon, { ...props, IconComponent: Icon }));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DataAgentCommon } from "./DataAgentCommon";
|
|
3
|
+
import { ClickItem } from "../List/ClickItem/ClickItemApollo";
|
|
4
|
+
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoApollo";
|
|
5
|
+
import { Divider } from "../Divider/DividerApollo";
|
|
6
|
+
import "@axa-fr/canopee-css/prospect/DataAgent/DataAgentApollo.css";
|
|
7
|
+
export const DataAgent = (props) => (_jsx(DataAgentCommon, { ...props, DividerComponent: Divider, ClickItemComponent: ClickItem, ContentItemMonoComponent: ContentItemMono }));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ComponentProps, ComponentType } from "react";
|
|
2
|
+
import { Divider } from "../Divider/DividerCommon";
|
|
3
|
+
import type { ContentItemProps, ContentMonoItemIconProps, ContentMonoItemPictureProps, ContentMonoItemStickProps } from "../ContentItemMono/ContentItemMonoCommon";
|
|
4
|
+
import type { ClickItemProps } from "../List/ClickItem/types";
|
|
5
|
+
export type TupleMax3<T> = [T] | [T, T] | [T, T, T];
|
|
6
|
+
export type DataAgentProps = {
|
|
7
|
+
className?: string;
|
|
8
|
+
agentProps: ContentMonoItemPictureProps;
|
|
9
|
+
agentContractProps?: ContentMonoItemStickProps;
|
|
10
|
+
contents?: TupleMax3<ContentMonoItemIconProps>;
|
|
11
|
+
clickContents?: TupleMax3<ClickItemProps>;
|
|
12
|
+
texteOrias?: string;
|
|
13
|
+
isCompact?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type DataAgentCommonProps = DataAgentProps & {
|
|
16
|
+
DividerComponent: ComponentType<ComponentProps<typeof Divider>>;
|
|
17
|
+
ContentItemMonoComponent: ComponentType<ContentItemProps>;
|
|
18
|
+
ClickItemComponent: ComponentType<ClickItemProps>;
|
|
19
|
+
};
|
|
20
|
+
export declare const DataAgentCommon: ({ className, agentProps, agentContractProps, contents, clickContents, texteOrias, DividerComponent, ContentItemMonoComponent, ClickItemComponent, isCompact, }: DataAgentCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment, useMemo } from "react";
|
|
3
|
+
import { getComponentClassName } from "../utilities/getComponentClassName";
|
|
4
|
+
import { useIsSmallScreen } from "../utilities/hook/useIsSmallScreen";
|
|
5
|
+
import { BREAKPOINT } from "../utilities/constants";
|
|
6
|
+
export const DataAgentCommon = ({ className, agentProps, agentContractProps, contents, clickContents, texteOrias, DividerComponent, ContentItemMonoComponent, ClickItemComponent, isCompact = true, }) => {
|
|
7
|
+
const componentClassName = useMemo(() => getComponentClassName("af-data-agent", className), [className]);
|
|
8
|
+
const isMobile = useIsSmallScreen(BREAKPOINT.SM);
|
|
9
|
+
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 }))] }));
|
|
10
|
+
const renderForMobileLayout = () => (_jsx("section", { className: "af-data-agent__intro", children: _jsx(ClickItemComponent, { ...agentProps, basePictureProps: {
|
|
11
|
+
src: agentProps.picture,
|
|
12
|
+
alt: agentProps.title,
|
|
13
|
+
}, variant: "agent" }) }));
|
|
14
|
+
return (_jsx("section", { className: componentClassName, children: isMobile && isCompact
|
|
15
|
+
? renderForMobileLayout()
|
|
16
|
+
: renderForDefaultLayout() }));
|
|
17
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DataAgentCommon } from "./DataAgentCommon";
|
|
3
|
+
import { ClickItem } from "../List/ClickItem/ClickItemLF";
|
|
4
|
+
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoLF";
|
|
5
|
+
import { Divider } from "../Divider/DividerLF";
|
|
6
|
+
import "@axa-fr/canopee-css/client/DataAgent/DataAgentLF.css";
|
|
7
|
+
export const DataAgent = (props) => (_jsx(DataAgentCommon, { ...props, DividerComponent: Divider, ClickItemComponent: ClickItem, ContentItemMonoComponent: ContentItemMono }));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { getComponentClassName } from "../utilities/getComponentClassName";
|
|
4
|
+
export const Divider = ({ className, classModifier }) => {
|
|
5
|
+
const componentClassName = useMemo(() => getComponentClassName("af-divider", className, classModifier), [className, classModifier]);
|
|
6
|
+
return _jsx("hr", { className: componentClassName });
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type CardCheckboxProps } from "./CardCheckboxCommon";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CardCheckbox/CardCheckboxApollo.css";
|
|
3
|
+
export declare const CardCheckbox: {
|
|
4
|
+
(props: CardCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessageApollo";
|
|
3
|
+
import { CardCheckboxOption } from "../CardCheckboxOption/CardCheckboxOptionApollo";
|
|
4
|
+
import { CardCheckboxCommon, } from "./CardCheckboxCommon";
|
|
5
|
+
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CardCheckbox/CardCheckboxApollo.css";
|
|
6
|
+
export const CardCheckbox = (props) => (_jsx(CardCheckboxCommon, { ...props, CardCheckboxItemComponent: CardCheckboxOption, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
CardCheckbox.displayName = "CardCheckbox";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ComponentType, type ReactNode } from "react";
|
|
2
|
+
import type { ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
|
|
3
|
+
import type { CardCheckboxOptionProps } from "../CardCheckboxOption/CardCheckboxOptionCommon";
|
|
4
|
+
type CheckboxOption = Omit<CardCheckboxOptionProps, "name" | "type">;
|
|
5
|
+
export type CardCheckboxProps = Omit<CardCheckboxOptionProps, "value" | "label" | "type" | "icon" | "description" | "subtitle" | "children"> & {
|
|
6
|
+
type?: "vertical" | "horizontal";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use `label` instead.
|
|
9
|
+
*/
|
|
10
|
+
labelGroup?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use `description` instead.
|
|
13
|
+
*/
|
|
14
|
+
descriptionGroup?: string;
|
|
15
|
+
label: ReactNode;
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `required` instead.
|
|
19
|
+
*/
|
|
20
|
+
isRequired?: boolean;
|
|
21
|
+
options: CheckboxOption[];
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `message` and messageType instead.
|
|
24
|
+
*/
|
|
25
|
+
error?: string;
|
|
26
|
+
} & Partial<ItemMessageProps>;
|
|
27
|
+
type CardCheckboxCommonProps = CardCheckboxProps & {
|
|
28
|
+
CardCheckboxItemComponent: ComponentType<CardCheckboxOptionProps>;
|
|
29
|
+
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
30
|
+
};
|
|
31
|
+
export declare const CardCheckboxCommon: {
|
|
32
|
+
({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type, error, name, id, onChange, CardCheckboxItemComponent, ItemMessageComponent, message, messageType, ...inputProps }: CardCheckboxCommonProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, useRef, } from "react";
|
|
3
|
+
export const CardCheckboxCommon = ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type = "vertical", error, name, id, onChange = () => { }, CardCheckboxItemComponent, ItemMessageComponent, message, messageType = "error", ...inputProps }) => {
|
|
4
|
+
const generatedId = useId();
|
|
5
|
+
const cardCheckboxId = id || generatedId;
|
|
6
|
+
const messageId = `${cardCheckboxId}-error`;
|
|
7
|
+
const cardCheckboxOptionsRef = useRef(null);
|
|
8
|
+
const handleChange = (event) => {
|
|
9
|
+
const cardCheckboxOptionsEl = cardCheckboxOptionsRef.current;
|
|
10
|
+
if (cardCheckboxOptionsEl && required) {
|
|
11
|
+
const nbCheckedElements = cardCheckboxOptionsEl.querySelectorAll("input[type='checkbox']:checked").length;
|
|
12
|
+
cardCheckboxOptionsEl
|
|
13
|
+
.querySelectorAll("input[type='checkbox']")
|
|
14
|
+
.forEach((el) => {
|
|
15
|
+
if (nbCheckedElements < 1 && !event.target.checked) {
|
|
16
|
+
el.setAttribute("required", "true");
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
el.removeAttribute("required");
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
onChange(event);
|
|
24
|
+
};
|
|
25
|
+
const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
|
|
26
|
+
return (_jsxs("fieldset", { className: ["af-card-checkbox", className].filter(Boolean).join(" "), id: cardCheckboxId, children: [_jsxs("legend", { className: "af-card-checkbox__legend", children: [_jsxs("p", { className: "af-card-checkbox__label", children: [label, labelGroup, required || isRequired ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), description || descriptionGroup ? (_jsxs("p", { className: "af-card-checkbox__description", children: [description, descriptionGroup] })) : null] }), _jsx("div", { className: [
|
|
27
|
+
"af-card-checkbox__options",
|
|
28
|
+
`af-card-checkbox__options--${type}`,
|
|
29
|
+
].join(" "), ref: cardCheckboxOptionsRef, children: options.map((cardCheckboxItemProps) => (_jsx(CardCheckboxItemComponent, { 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 || error, messageType: messageType })] }));
|
|
30
|
+
};
|
|
31
|
+
CardCheckboxCommon.displayName = "CardCheckboxCommon";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type CardCheckboxProps } from "./CardCheckboxCommon";
|
|
2
|
+
import "@axa-fr/canopee-css/client/Form/Checkbox/CardCheckbox/CardCheckboxLF.css";
|
|
3
|
+
export declare const CardCheckbox: {
|
|
4
|
+
(props: CardCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessageLF";
|
|
3
|
+
import { CardCheckboxOption } from "../CardCheckboxOption/CardCheckboxOptionLF";
|
|
4
|
+
import { CardCheckboxCommon, } from "./CardCheckboxCommon";
|
|
5
|
+
import "@axa-fr/canopee-css/client/Form/Checkbox/CardCheckbox/CardCheckboxLF.css";
|
|
6
|
+
export const CardCheckbox = (props) => (_jsx(CardCheckboxCommon, { ...props, CardCheckboxItemComponent: CardCheckboxOption, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
CardCheckbox.displayName = "CardCheckbox";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type CardCheckboxOptionProps } from "./CardCheckboxOptionCommon";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.css";
|
|
3
|
+
export declare const CardCheckboxOption: (props: CardCheckboxOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "../../../Icon/IconApollo";
|
|
3
|
+
import { Checkbox } from "../Checkbox/CheckboxApollo";
|
|
4
|
+
import { CardCheckboxOptionCommon, } from "./CardCheckboxOptionCommon";
|
|
5
|
+
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.css";
|
|
6
|
+
export const CardCheckboxOption = (props) => (_jsx(CardCheckboxOptionCommon, { ...props, CheckboxComponent: Checkbox, IconComponent: Icon }));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ComponentType, type ReactNode } from "react";
|
|
2
|
+
import type { IconProps } from "../../../Icon/IconCommon";
|
|
3
|
+
import type { CheckboxProps } from "../Checkbox/CheckboxCommon";
|
|
4
|
+
export type CardCheckboxOptionProps = CheckboxProps & {
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
type?: "vertical" | "horizontal";
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
subtitle?: ReactNode;
|
|
9
|
+
icon?: IconProps["src"];
|
|
10
|
+
};
|
|
11
|
+
export type CardCheckboxOptionCommonProps = CardCheckboxOptionProps & {
|
|
12
|
+
CheckboxComponent: ComponentType<CheckboxProps>;
|
|
13
|
+
IconComponent: ComponentType<IconProps>;
|
|
14
|
+
};
|
|
15
|
+
declare const CardCheckboxOptionCommon: import("react").ForwardRefExoticComponent<Omit<CardCheckboxOptionCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
16
|
+
export { CardCheckboxOptionCommon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
const CardCheckboxOptionCommon = forwardRef(({ label, type = "vertical", description, subtitle, icon, className, CheckboxComponent, IconComponent, ...inputProps }, ref) => (_jsxs("label", { className: [
|
|
4
|
+
"af-card-checkbox-option",
|
|
5
|
+
type === "horizontal" && "af-card-checkbox-option--horizontal",
|
|
6
|
+
className,
|
|
7
|
+
]
|
|
8
|
+
.filter(Boolean)
|
|
9
|
+
.join(" "), children: [icon ? _jsx(IconComponent, { src: icon, role: "presentation" }) : null, _jsxs("div", { className: "af-card-checkbox-option__content", children: [_jsx("p", { className: "af-card-checkbox-option__label", children: label }), Boolean(description) && (_jsx("p", { className: "af-card-checkbox-option__description", children: description })), Boolean(subtitle) && (_jsx("p", { className: "af-card-checkbox-option__subtitle", children: subtitle }))] }), _jsx(CheckboxComponent, { ...inputProps, ref: ref })] })));
|
|
10
|
+
CardCheckboxOptionCommon.displayName = "CardCheckboxOptionCommon";
|
|
11
|
+
export { CardCheckboxOptionCommon };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type CardCheckboxOptionProps } from "./CardCheckboxOptionCommon";
|
|
2
|
+
import "@axa-fr/canopee-css/client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.css";
|
|
3
|
+
export declare const CardCheckboxOption: (props: CardCheckboxOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "../../../Icon/IconLF";
|
|
3
|
+
import { Checkbox } from "../Checkbox/CheckboxLF";
|
|
4
|
+
import { CardCheckboxOptionCommon, } from "./CardCheckboxOptionCommon";
|
|
5
|
+
import "@axa-fr/canopee-css/client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.css";
|
|
6
|
+
export const CardCheckboxOption = (props) => (_jsx(CardCheckboxOptionCommon, { ...props, CheckboxComponent: Checkbox, IconComponent: Icon }));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
export type CheckboxProps = {
|
|
3
|
+
/** @deprecated Use `aria-errormessage` instead */
|
|
4
|
+
errorId?: string;
|
|
5
|
+
/** @deprecated Use `aria-invalid` instead */
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
} & Omit<ComponentProps<"input">, "disabled" | "type">;
|
|
8
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
export const Checkbox = forwardRef(({ errorId, hasError, className, ...inputProps }, ref) => (_jsx("input", { "aria-errormessage": errorId, "aria-invalid": hasError, ...inputProps, className: ["af-checkbox", className].filter(Boolean).join(" "), ref: ref, type: "checkbox" })));
|
|
4
|
+
Checkbox.displayName = "Checkbox";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CheckboxText/CheckboxTextApollo.css";
|
|
2
|
+
import { type CheckboxTextProps } from "./CheckboxTextCommon";
|
|
3
|
+
export declare const CheckboxText: import("react").ForwardRefExoticComponent<Omit<CheckboxTextProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CheckboxText/CheckboxTextApollo.css";
|
|
4
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessageApollo";
|
|
5
|
+
import { Checkbox } from "../Checkbox/CheckboxApollo";
|
|
6
|
+
import { CheckboxTextCommon, } from "./CheckboxTextCommon";
|
|
7
|
+
export const CheckboxText = forwardRef((props, ref) => (_jsx(CheckboxTextCommon, { ...props, ref: ref, CheckboxComponent: Checkbox, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
CheckboxText.displayName = "CheckboxText";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode, type ComponentType } from "react";
|
|
2
|
+
import type { ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
|
|
3
|
+
import type { CheckboxProps } from "../Checkbox/CheckboxCommon";
|
|
4
|
+
export type CheckboxTextProps = {
|
|
5
|
+
label: string | ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `message` and messageType instead.
|
|
8
|
+
*/
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
} & Omit<CheckboxProps, "aria-errormessage" | "aria-invalid"> & Partial<ItemMessageProps>;
|
|
11
|
+
export type CheckboxTextCommonProps = CheckboxTextProps & {
|
|
12
|
+
CheckboxComponent: ComponentType<Omit<CheckboxProps, "checkBoxIcon">>;
|
|
13
|
+
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
14
|
+
};
|
|
15
|
+
declare const CheckboxTextCommon: import("react").ForwardRefExoticComponent<Omit<CheckboxTextCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
16
|
+
export { CheckboxTextCommon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, forwardRef } from "react";
|
|
3
|
+
const CheckboxTextCommon = forwardRef(({ label, errorMessage, id, message, messageType, CheckboxComponent, ItemMessageComponent, ...inputProps }, ref) => {
|
|
4
|
+
const generatedId = useId();
|
|
5
|
+
const inputId = id ?? generatedId;
|
|
6
|
+
const messageId = `${inputId}-error`;
|
|
7
|
+
const hasError = (Boolean(message) && messageType === "error") || Boolean(errorMessage);
|
|
8
|
+
return (_jsxs("div", { className: "af-checkbox-text", children: [_jsxs("label", { htmlFor: inputId, children: [_jsx(CheckboxComponent, { id: inputId, ...inputProps, "aria-errormessage": hasError ? messageId : undefined, "aria-invalid": hasError || undefined, ref: ref }), _jsx("span", { className: "af-checkbox-text__label-content", children: label })] }), _jsx(ItemMessageComponent, { message: message || errorMessage, id: messageId, messageType: messageType })] }));
|
|
9
|
+
});
|
|
10
|
+
CheckboxTextCommon.displayName = "CheckboxTextCommon";
|
|
11
|
+
export { CheckboxTextCommon };
|