@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,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import Select from "react-select";
|
|
4
|
+
const CountryCodeSelect = ({ options, defaultCountry, onChangeSelect, IconComponent, disabled, }) => {
|
|
5
|
+
const defaultOption = options.find((option) => option.code === (defaultCountry ?? "+33"));
|
|
6
|
+
const [selectedOption, setSelectedOption] = useState(defaultOption);
|
|
7
|
+
const customStyles = {
|
|
8
|
+
control: (provided) => ({
|
|
9
|
+
...provided,
|
|
10
|
+
margin: 0,
|
|
11
|
+
}),
|
|
12
|
+
dropdownIndicator: (provided) => ({
|
|
13
|
+
...provided,
|
|
14
|
+
display: "none",
|
|
15
|
+
}),
|
|
16
|
+
indicatorSeparator: (provided) => ({
|
|
17
|
+
...provided,
|
|
18
|
+
display: "none",
|
|
19
|
+
}),
|
|
20
|
+
singleValue: (provided) => ({
|
|
21
|
+
...provided,
|
|
22
|
+
color: "inherit",
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
const formatOptionLabel = ({ flag, code }) => (_jsxs("div", { className: "country-code-select-format-label", children: [_jsx(IconComponent, { src: flag }), code] }));
|
|
26
|
+
const handleChange = (newValue) => {
|
|
27
|
+
setSelectedOption(newValue ?? undefined);
|
|
28
|
+
if (newValue)
|
|
29
|
+
onChangeSelect?.(newValue);
|
|
30
|
+
};
|
|
31
|
+
return (_jsx(Select, { classNamePrefix: "country-code-select", styles: customStyles, options: options, value: selectedOption, onChange: handleChange, formatOptionLabel: formatOptionLabel, "aria-label": "Select country code", getOptionValue: (option) => option.code, isDisabled: disabled }));
|
|
32
|
+
};
|
|
33
|
+
export { CountryCodeSelect };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/InputPhone/InputPhoneApollo.css";
|
|
3
|
+
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
4
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
5
|
+
import { InputPhoneCommon } from "./InputPhoneCommon";
|
|
6
|
+
import { InputTextAtom } from "../InputTextAtom/InputTextAtomApollo";
|
|
7
|
+
import { Icon } from "../../Icon/IconApollo";
|
|
8
|
+
export const InputPhone = (props) => (_jsx(InputPhoneCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage, InputTextComponent: InputTextAtom, IconComponent: Icon }));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
|
|
2
|
+
import { SingleValue } from "react-select";
|
|
3
|
+
import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
4
|
+
import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
|
|
5
|
+
import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
|
|
6
|
+
import { Icon } from "../../Icon/IconCommon";
|
|
7
|
+
import { type OptionType } from "./InputPhone.types";
|
|
8
|
+
export type InputPhoneProps = ComponentPropsWithRef<"input"> & {
|
|
9
|
+
classModifier?: string;
|
|
10
|
+
helper?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use `message` and messageType instead.
|
|
13
|
+
*/
|
|
14
|
+
error?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use `message` and messageType instead.
|
|
17
|
+
*/
|
|
18
|
+
success?: string;
|
|
19
|
+
defaultCountry?: string;
|
|
20
|
+
showSelect?: boolean;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
countryCodeOptions?: OptionType[];
|
|
23
|
+
onChangeSelect?: (value: SingleValue<OptionType>) => void;
|
|
24
|
+
onChangeInput?: (value: string) => void;
|
|
25
|
+
mask?: (value: string) => string;
|
|
26
|
+
label: ItemLabelProps["label"];
|
|
27
|
+
} & Partial<ItemLabelProps & ItemMessageProps>;
|
|
28
|
+
type InputPhoneCommonProps = InputPhoneProps & {
|
|
29
|
+
ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
|
|
30
|
+
ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
31
|
+
InputTextComponent: ComponentType<ComponentProps<typeof InputTextAtom>>;
|
|
32
|
+
IconComponent: ComponentType<ComponentProps<typeof Icon>>;
|
|
33
|
+
};
|
|
34
|
+
declare const InputPhoneCommon: import("react").ForwardRefExoticComponent<Omit<InputPhoneCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
35
|
+
export { InputPhoneCommon };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useId, } from "react";
|
|
3
|
+
import { CountryCodeSelect } from "./CountryCodeSelect";
|
|
4
|
+
import { maskFrenchPhoneNumber } from "./maskFrenchPhoneNumber";
|
|
5
|
+
const InputPhoneCommon = forwardRef(({ className, classModifier = "", helper, error, success, message, messageType, defaultCountry, showSelect, disabled, label, description, buttonLabel, onButtonClick, required, sideButtonLabel, onSideButtonClick, countryCodeOptions = [], onChangeSelect, onChangeInput, mask = maskFrenchPhoneNumber, ItemLabelComponent, ItemMessageComponent, InputTextComponent, IconComponent, "aria-errormessage": ariaErrormessage, ...otherProps }, inputRef) => {
|
|
6
|
+
let inputId = useId();
|
|
7
|
+
inputId = otherProps.id || inputId;
|
|
8
|
+
const idMessage = useId();
|
|
9
|
+
const idHelp = useId();
|
|
10
|
+
const ariaDescribedby = [helper && idHelp, success && idMessage].filter(Boolean);
|
|
11
|
+
const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
|
|
12
|
+
/**
|
|
13
|
+
* Gère le changement de valeur du champ numéro de téléphone.
|
|
14
|
+
* - Récupère une fonction de masquage (mask) depuis les props ou utilise une version par défaut.
|
|
15
|
+
* - La fonction de masquage par défaut :
|
|
16
|
+
* - Ne garde que les chiffres (supprime tout le reste).
|
|
17
|
+
* - Limite à 10 chiffres.
|
|
18
|
+
* - Formate par groupes de 2 chiffres séparés par un espace (ex: 06 12 34 56 78).
|
|
19
|
+
* - Applique le masquage à la valeur saisie et transmet le résultat via onChangeInput.
|
|
20
|
+
*/
|
|
21
|
+
const handleChangeNumber = (e) => {
|
|
22
|
+
const input = e.target;
|
|
23
|
+
const rawValue = input.value;
|
|
24
|
+
const maskedValue = mask(rawValue);
|
|
25
|
+
onChangeInput?.(maskedValue);
|
|
26
|
+
};
|
|
27
|
+
return (_jsxs("div", { className: "af-form__input-phone-container", children: [_jsx(ItemLabelComponent, { label: label, description: description, buttonLabel: buttonLabel, onButtonClick: onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, inputId: inputId }), _jsxs("div", { className: "af-form__input-phone-fields", children: [showSelect ? (_jsx("div", { className: "af-form__country-code-wrapper", children: _jsx(CountryCodeSelect, { options: countryCodeOptions, defaultCountry: defaultCountry, onChangeSelect: onChangeSelect, IconComponent: IconComponent, disabled: disabled }) })) : null, _jsx(InputTextComponent, { ...otherProps, className: ["af-form__input-phone", className]
|
|
28
|
+
.filter(Boolean)
|
|
29
|
+
.join(" "), classModifier: classModifier, ref: inputRef, error: hasError ? messageType || error : undefined, type: "tel", required: required, placeholder: otherProps.placeholder, "aria-errormessage": ariaErrormessage, value: otherProps.value, onChange: handleChangeNumber, disabled: disabled, idMessage: hasError ? idMessage : undefined, idHelp: ariaDescribedby.length > 0 ? ariaDescribedby.join(" ") : undefined, id: inputId })] }), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-phone-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
|
|
30
|
+
});
|
|
31
|
+
InputPhoneCommon.displayName = "InputPhone";
|
|
32
|
+
export { InputPhoneCommon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/Form/InputPhone/InputPhoneLF.css";
|
|
3
|
+
import { ItemLabel } from "../ItemLabel/ItemLabelLF";
|
|
4
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
5
|
+
import { InputPhoneCommon } from "./InputPhoneCommon";
|
|
6
|
+
import { InputTextAtom } from "../InputTextAtom/InputTextAtomLF";
|
|
7
|
+
import { Icon } from "../../Icon/IconLF";
|
|
8
|
+
export const InputPhone = (props) => (_jsx(InputPhoneCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage, InputTextComponent: InputTextAtom, IconComponent: Icon }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function maskFrenchPhoneNumber(value: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function maskFrenchPhoneNumber(value) {
|
|
2
|
+
let numericValue = value.replace(/[^0-9]/g, "");
|
|
3
|
+
numericValue = numericValue.slice(0, 10);
|
|
4
|
+
let formattedValue = "";
|
|
5
|
+
for (let i = 0; i < numericValue.length; i += 2) {
|
|
6
|
+
formattedValue += numericValue.slice(i, i + 2);
|
|
7
|
+
if (i + 2 < numericValue.length) {
|
|
8
|
+
formattedValue += " ";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return formattedValue;
|
|
12
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/prospect/Form/InputText/InputTextApollo.css";
|
|
2
|
+
import { type InputTextProps } from "./InputTextCommon";
|
|
3
|
+
export declare const InputText: import("react").ForwardRefExoticComponent<Omit<InputTextProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/InputText/InputTextApollo.css";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
5
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
6
|
+
import { InputTextCommon } from "./InputTextCommon";
|
|
7
|
+
import { InputTextAtom } from "../InputTextAtom/InputTextAtomApollo";
|
|
8
|
+
export const InputText = forwardRef((props, ref) => (_jsx(InputTextCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage, InputTextAtomComponent: InputTextAtom })));
|
|
9
|
+
InputText.displayName = "InputText";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
|
|
2
|
+
import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
|
|
3
|
+
import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
4
|
+
import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
|
|
5
|
+
export type InputTextProps = ComponentPropsWithRef<"input"> & {
|
|
6
|
+
unit?: ReactNode;
|
|
7
|
+
classModifier?: string;
|
|
8
|
+
helper?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `message` and messageType instead.
|
|
11
|
+
*/
|
|
12
|
+
error?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `message` and messageType instead.
|
|
15
|
+
*/
|
|
16
|
+
success?: string;
|
|
17
|
+
} & Partial<ItemLabelProps & ItemMessageProps>;
|
|
18
|
+
type InputTextCommonProps = InputTextProps & {
|
|
19
|
+
ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
|
|
20
|
+
ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
21
|
+
InputTextAtomComponent: ComponentType<ComponentProps<typeof InputTextAtom>>;
|
|
22
|
+
};
|
|
23
|
+
declare const InputTextCommon: import("react").ForwardRefExoticComponent<Omit<InputTextCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
24
|
+
export { InputTextCommon };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useId, } from "react";
|
|
3
|
+
const InputTextCommon = forwardRef(({ unit, className, classModifier = "", helper, error, success, message, messageType, label, description, buttonLabel, onButtonClick, required, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, InputTextAtomComponent, ...otherProps }, inputRef) => {
|
|
4
|
+
let inputId = useId();
|
|
5
|
+
inputId = otherProps.id || inputId;
|
|
6
|
+
const idMessage = useId();
|
|
7
|
+
const idHelp = useId();
|
|
8
|
+
const ariaDescribedby = [helper && idHelp, success && idMessage].filter(Boolean);
|
|
9
|
+
return (_jsxs("div", { className: "af-form__input-container", children: [_jsx(ItemLabelComponent, { label: label, description: description, buttonLabel: buttonLabel, onButtonClick: onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, inputId: inputId }), _jsx(InputTextAtomComponent, { id: inputId, ref: inputRef, unit: unit, className: className, classModifier: classModifier, error: (message && messageType === "error") || Boolean(error)
|
|
10
|
+
? messageType || error
|
|
11
|
+
: undefined, required: required, idMessage: message || error ? idMessage : undefined, idHelp: ariaDescribedby.length > 0 ? ariaDescribedby.join(" ") : undefined, ...otherProps }), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
|
|
12
|
+
});
|
|
13
|
+
InputTextCommon.displayName = "InputText";
|
|
14
|
+
export { InputTextCommon };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/client/Form/InputText/InputTextLF.css";
|
|
2
|
+
import { type InputTextProps } from "./InputTextCommon";
|
|
3
|
+
export declare const InputText: import("react").ForwardRefExoticComponent<Omit<InputTextProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/Form/InputText/InputTextLF.css";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { ItemLabel } from "../ItemLabel/ItemLabelLF";
|
|
5
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
6
|
+
import { InputTextCommon } from "./InputTextCommon";
|
|
7
|
+
import { InputTextAtom } from "../InputTextAtom/InputTextAtomLF";
|
|
8
|
+
export const InputText = forwardRef((props, ref) => (_jsx(InputTextCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage, InputTextAtomComponent: InputTextAtom })));
|
|
9
|
+
InputText.displayName = "InputText";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
|
+
type InputTextAtomProps = ComponentPropsWithRef<"input"> & {
|
|
3
|
+
unit?: ReactNode;
|
|
4
|
+
classModifier?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
idMessage?: string;
|
|
7
|
+
idHelp?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const InputTextAtom: import("react").ForwardRefExoticComponent<Omit<InputTextAtomProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
|
+
export { InputTextAtom };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useId, } from "react";
|
|
3
|
+
import { getComponentClassName } from "../../utilities/getComponentClassName";
|
|
4
|
+
const InputTextAtom = forwardRef(({ unit, className, classModifier = "", error, required, idMessage, idHelp, "aria-errormessage": ariaErrormessage, "aria-describedby": ariaDescribedby, type = "text", ...otherProps }, inputRef) => {
|
|
5
|
+
const componentClassName = getComponentClassName("af-form__input-text", className, classModifier + (error || ariaErrormessage ? " error" : ""));
|
|
6
|
+
let inputId = useId();
|
|
7
|
+
inputId = otherProps.id || inputId;
|
|
8
|
+
return (_jsxs("div", { className: "af-form__input-variant", children: [_jsx("input", { id: inputId, className: componentClassName, type: type, required: required, ref: inputRef, "aria-errormessage": ariaErrormessage ?? idMessage, "aria-invalid": Boolean(error || ariaErrormessage), "aria-describedby": ariaDescribedby ?? idHelp, ...otherProps }), unit] }));
|
|
9
|
+
});
|
|
10
|
+
InputTextAtom.displayName = "InputTextAtom";
|
|
11
|
+
export { InputTextAtom };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/ItemLabel/ItemLabelApollo.css";
|
|
3
|
+
import { Button } from "../../Button/ButtonApollo";
|
|
4
|
+
import { ItemLabelCommon } from "./ItemLabelCommon";
|
|
5
|
+
export const ItemLabel = (props) => (_jsx(ItemLabelCommon, { ...props, ButtonComponent: Button }));
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { type ComponentProps, type ComponentType, type MouseEventHandler, type ReactNode } from "react";
|
|
2
|
+
import type { ButtonProps } from "../../Button/ButtonCommon";
|
|
3
|
+
export type ItemLabelProps = ComponentProps<"label"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Label text content
|
|
6
|
+
* @deprecated use `children` instead.
|
|
7
|
+
*/
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Additional description text that enriches the label.
|
|
11
|
+
* @example "Phone bill, EDF receipt, etc."
|
|
12
|
+
*/
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Shows a visual asterisk (*) indicator next to the label.
|
|
16
|
+
*/
|
|
17
|
+
required?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* ID of the associated input element
|
|
20
|
+
* @deprecated use `htmlFor` instead.
|
|
21
|
+
*/
|
|
22
|
+
inputId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Label content for the side action button.
|
|
25
|
+
* When provided, renders a secondary button next to the main label.
|
|
26
|
+
*/
|
|
27
|
+
sideButtonLabel?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Click handler for the side button
|
|
30
|
+
*/
|
|
31
|
+
onSideButtonClick?: MouseEventHandler<HTMLButtonElement>;
|
|
32
|
+
/**
|
|
33
|
+
* Additional props to pass to the side button component.
|
|
34
|
+
*/
|
|
35
|
+
sideButtonProps?: Omit<Partial<ButtonProps>, "children" | "onClick" | "variant" | "className">;
|
|
36
|
+
/**
|
|
37
|
+
* Label content for the more button
|
|
38
|
+
* @deprecated use `moreButtonLabel` instead.
|
|
39
|
+
*/
|
|
40
|
+
buttonLabel?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Click handler for the info button
|
|
43
|
+
* @deprecated use `onMoreButtonClick` instead.
|
|
44
|
+
*/
|
|
45
|
+
onButtonClick?: MouseEventHandler<HTMLButtonElement>;
|
|
46
|
+
/**
|
|
47
|
+
* Label content for the more button
|
|
48
|
+
* When provided, renders an more button with an info icon.
|
|
49
|
+
*/
|
|
50
|
+
moreButtonLabel?: ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Click handler for the more button
|
|
53
|
+
*/
|
|
54
|
+
onMoreButtonClick?: MouseEventHandler<HTMLButtonElement>;
|
|
55
|
+
/**
|
|
56
|
+
* Additional props to pass to the more button component.
|
|
57
|
+
*/
|
|
58
|
+
moreButtonProps?: Omit<Partial<ButtonProps>, "children" | "onClick" | "variant" | "className">;
|
|
59
|
+
};
|
|
60
|
+
export type ItemLabelCommonProps = ItemLabelProps & {
|
|
61
|
+
ButtonComponent: ComponentType<ButtonProps>;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* A comprehensive label component for form items with support for descriptions and action buttons.
|
|
65
|
+
*
|
|
66
|
+
* This component provides an accessible label that can be enhanced with:
|
|
67
|
+
* - Visual required field indicator (asterisk)
|
|
68
|
+
* - Optional description text
|
|
69
|
+
* - Optional side action button
|
|
70
|
+
* - Optional more button with icon
|
|
71
|
+
*
|
|
72
|
+
* The component ensures proper accessibility by:
|
|
73
|
+
* - Associating the label with form controls via htmlFor
|
|
74
|
+
* - Providing appropriate ARIA attributes for screen readers
|
|
75
|
+
* - Supporting keyboard navigation for interactive elements
|
|
76
|
+
*
|
|
77
|
+
* @example Basic usage
|
|
78
|
+
* ```tsx
|
|
79
|
+
* <ItemLabelCommon
|
|
80
|
+
* htmlFor="email-input"
|
|
81
|
+
* required
|
|
82
|
+
* ButtonComponent={Button}
|
|
83
|
+
* >
|
|
84
|
+
* Email Address
|
|
85
|
+
* </ItemLabelCommon>
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @example With description and action buttons
|
|
89
|
+
* ```tsx
|
|
90
|
+
* <ItemLabelCommon
|
|
91
|
+
* htmlFor="document-upload"
|
|
92
|
+
* description="Accepted: PDF, JPG, PNG (max 5MB)"
|
|
93
|
+
* sideButtonLabel="Browse"
|
|
94
|
+
* onSideButtonClick={handleBrowse}
|
|
95
|
+
* moreButton="Help"
|
|
96
|
+
* onMoreButtonClick={handleShowHelp}
|
|
97
|
+
* ButtonComponent={Button}
|
|
98
|
+
* >
|
|
99
|
+
* Proof of residence
|
|
100
|
+
* </ItemLabelCommon>
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
export declare const ItemLabelCommon: ({ label, children, description, required, inputId, htmlFor, className, style, "aria-describedby": ariaDescribedby, sideButtonLabel, onSideButtonClick, sideButtonProps, buttonLabel, onButtonClick, moreButtonLabel, onMoreButtonClick, ButtonComponent, moreButtonProps, ...props }: ItemLabelCommonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import infoIcon from "@material-symbols/svg-400/outlined/info.svg";
|
|
3
|
+
import { useId, } from "react";
|
|
4
|
+
import { Svg } from "../../Svg/Svg";
|
|
5
|
+
/**
|
|
6
|
+
* A comprehensive label component for form items with support for descriptions and action buttons.
|
|
7
|
+
*
|
|
8
|
+
* This component provides an accessible label that can be enhanced with:
|
|
9
|
+
* - Visual required field indicator (asterisk)
|
|
10
|
+
* - Optional description text
|
|
11
|
+
* - Optional side action button
|
|
12
|
+
* - Optional more button with icon
|
|
13
|
+
*
|
|
14
|
+
* The component ensures proper accessibility by:
|
|
15
|
+
* - Associating the label with form controls via htmlFor
|
|
16
|
+
* - Providing appropriate ARIA attributes for screen readers
|
|
17
|
+
* - Supporting keyboard navigation for interactive elements
|
|
18
|
+
*
|
|
19
|
+
* @example Basic usage
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <ItemLabelCommon
|
|
22
|
+
* htmlFor="email-input"
|
|
23
|
+
* required
|
|
24
|
+
* ButtonComponent={Button}
|
|
25
|
+
* >
|
|
26
|
+
* Email Address
|
|
27
|
+
* </ItemLabelCommon>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @example With description and action buttons
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <ItemLabelCommon
|
|
33
|
+
* htmlFor="document-upload"
|
|
34
|
+
* description="Accepted: PDF, JPG, PNG (max 5MB)"
|
|
35
|
+
* sideButtonLabel="Browse"
|
|
36
|
+
* onSideButtonClick={handleBrowse}
|
|
37
|
+
* moreButton="Help"
|
|
38
|
+
* onMoreButtonClick={handleShowHelp}
|
|
39
|
+
* ButtonComponent={Button}
|
|
40
|
+
* >
|
|
41
|
+
* Proof of residence
|
|
42
|
+
* </ItemLabelCommon>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export const ItemLabelCommon = ({ label, children, description, required, inputId, htmlFor, className, style, "aria-describedby": ariaDescribedby, sideButtonLabel, onSideButtonClick, sideButtonProps, buttonLabel, onButtonClick, moreButtonLabel, onMoreButtonClick, ButtonComponent, moreButtonProps, ...props }) => {
|
|
46
|
+
const idDescription = useId();
|
|
47
|
+
const contentLabel = children ?? label;
|
|
48
|
+
const describedByIds = [description ? idDescription : null, ariaDescribedby]
|
|
49
|
+
.filter(Boolean)
|
|
50
|
+
.join(" ");
|
|
51
|
+
if (!contentLabel) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return (_jsxs("div", { className: ["af-item-label", className].filter(Boolean).join(" "), style: style, children: [_jsxs("label", { htmlFor: htmlFor || inputId, className: "af-item-label__label", "aria-describedby": describedByIds || undefined, ...props, children: [contentLabel, required ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), sideButtonLabel ? (_jsx(ButtonComponent, { ...sideButtonProps, variant: "ghost", onClick: onSideButtonClick, className: "af-item-label__sidebutton", children: sideButtonLabel })) : null, description ? (_jsx("span", { id: idDescription, className: "af-item-label__description", children: description })) : null, moreButtonLabel || buttonLabel ? (_jsx(ButtonComponent, { iconLeft: _jsx(Svg, { src: infoIcon, role: "presentation" }), ...moreButtonProps, variant: "ghost", className: "af-item-label__more", onClick: onMoreButtonClick || onButtonClick, children: moreButtonLabel || buttonLabel })) : null] }));
|
|
55
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/Form/ItemLabel/ItemLabelLF.css";
|
|
3
|
+
import { Button } from "../../Button/ButtonLF";
|
|
4
|
+
import { ItemLabelCommon } from "./ItemLabelCommon";
|
|
5
|
+
export const ItemLabel = (props) => (_jsx(ItemLabelCommon, { ...props, ButtonComponent: Button }));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare const itemMessageVariants: {
|
|
3
|
+
readonly error: "error";
|
|
4
|
+
readonly success: "success";
|
|
5
|
+
readonly warning: "warning";
|
|
6
|
+
};
|
|
7
|
+
export type ItemMessageVariants = keyof typeof itemMessageVariants;
|
|
8
|
+
export type ItemMessageProps = {
|
|
9
|
+
message?: ReactNode;
|
|
10
|
+
id?: string;
|
|
11
|
+
messageType?: ItemMessageVariants;
|
|
12
|
+
};
|
|
13
|
+
export declare const ItemMessage: ({ message, id, messageType, }: ItemMessageProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import successIcon from "@material-symbols/svg-400/outlined/check_circle-fill.svg";
|
|
3
|
+
import errorIcon from "@material-symbols/svg-400/outlined/error-fill.svg";
|
|
4
|
+
import warningIcon from "@material-symbols/svg-400/outlined/warning-fill.svg";
|
|
5
|
+
import { Svg } from "../../Svg/Svg";
|
|
6
|
+
export const itemMessageVariants = {
|
|
7
|
+
error: "error",
|
|
8
|
+
success: "success",
|
|
9
|
+
warning: "warning",
|
|
10
|
+
};
|
|
11
|
+
export const ItemMessage = ({ message, id, messageType = "error", }) => {
|
|
12
|
+
if (!message) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
const getIcon = () => {
|
|
16
|
+
if (messageType === "success")
|
|
17
|
+
return successIcon;
|
|
18
|
+
if (messageType === "warning")
|
|
19
|
+
return warningIcon;
|
|
20
|
+
return errorIcon;
|
|
21
|
+
};
|
|
22
|
+
return (_jsxs("small", { id: id, className: `af-item-message af-item-message--${messageType}`, role: messageType === "success" ? undefined : "alert", "aria-live": "assertive", children: [_jsx(Svg, { src: getIcon(), className: "af-item-message__icon", "aria-hidden": "true" }), _jsx("span", { className: "af-item-message__message", children: message })] }));
|
|
23
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CardRadioOption } from "../CardRadioOption/CardRadioOptionApollo";
|
|
3
|
+
import { CardRadioCommon } from "./CardRadioCommon";
|
|
4
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessageApollo";
|
|
5
|
+
import "@axa-fr/canopee-css/prospect/Form/Radio/CardRadio/CardRadioApollo.css";
|
|
6
|
+
export const CardRadio = (props) => (_jsx(CardRadioCommon, { ...props, CardRadioOptionComponent: CardRadioOption, ItemMessageComponent: ItemMessage }));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ComponentProps, type ComponentType, type PropsWithChildren, type ReactNode } from "react";
|
|
2
|
+
import { type CardRadioOptionProps } from "../CardRadioOption/CardRadioOptionCommon";
|
|
3
|
+
import { ItemMessage, type ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
|
|
4
|
+
type RadioOption = Omit<CardRadioOptionProps, "name" | "type" | "isInvalid">;
|
|
5
|
+
export type CardRadioProps = Omit<CardRadioOptionProps, "value" | "label" | "type" | "isInvalid" | "icon" | "src" | "basePictureProps" | "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
|
+
/**
|
|
22
|
+
* @deprecated This prop is deprecated. To check an option, use the `checked` property in each item of the `options` array.
|
|
23
|
+
*/
|
|
24
|
+
value?: number | string;
|
|
25
|
+
options: RadioOption[];
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `message` and messageType instead.
|
|
28
|
+
*/
|
|
29
|
+
error?: ReactNode;
|
|
30
|
+
} & PropsWithChildren & Partial<ItemMessageProps>;
|
|
31
|
+
export type CardRadioCommonProps = CardRadioProps & {
|
|
32
|
+
CardRadioOptionComponent: ComponentType<CardRadioOptionProps>;
|
|
33
|
+
ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
34
|
+
};
|
|
35
|
+
declare const CardRadioCommon: {
|
|
36
|
+
({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type, error, message, messageType, name, value, id, CardRadioOptionComponent, ItemMessageComponent, ...inputProps }: CardRadioCommonProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
displayName: string;
|
|
38
|
+
};
|
|
39
|
+
export { CardRadioCommon };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, } from "react";
|
|
3
|
+
const CardRadioCommon = ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type = "vertical", error, message, messageType = "error", name, value, id, CardRadioOptionComponent, ItemMessageComponent, ...inputProps }) => {
|
|
4
|
+
const generatedId = useId();
|
|
5
|
+
const cardRadioId = id ?? generatedId;
|
|
6
|
+
const messageId = `${cardRadioId}-error`;
|
|
7
|
+
const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
|
|
8
|
+
return (_jsxs("fieldset", { className: ["af-card-radio", className].filter(Boolean).join(" "), role: "radiogroup", "aria-required": Boolean(required) || undefined, "aria-invalid": hasError || undefined, "aria-errormessage": hasError ? messageId : undefined, id: cardRadioId, children: [_jsxs("legend", { className: "af-card-radio__legend", children: [_jsxs("p", { className: "af-card-radio__label", children: [label, labelGroup, required || isRequired ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), description || descriptionGroup ? (_jsxs("p", { className: "af-card-radio__description", children: [description, descriptionGroup] })) : null] }), _jsx("div", { className: [
|
|
9
|
+
"af-card-radio__options",
|
|
10
|
+
`af-card-radio__options--${type}`,
|
|
11
|
+
].join(" "), children: options.map((cardRadioItemProps) => (_jsx(CardRadioOptionComponent, { id: `${cardRadioId}-${cardRadioItemProps.value}`, checked: value !== undefined
|
|
12
|
+
? value === cardRadioItemProps.value
|
|
13
|
+
: undefined, required: required, ...inputProps, ...cardRadioItemProps, type: type, isInvalid: hasError, name: name }, `${name ?? cardRadioId}-${cardRadioItemProps.label}`))) }), _jsx(ItemMessageComponent, { id: messageId, message: message || error, messageType: messageType })] }));
|
|
14
|
+
};
|
|
15
|
+
CardRadioCommon.displayName = "CardRadioCommon";
|
|
16
|
+
export { CardRadioCommon };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CardRadioOption } from "../CardRadioOption/CardRadioOptionLF";
|
|
3
|
+
import { CardRadioCommon } from "./CardRadioCommon";
|
|
4
|
+
import { ItemMessage } from "../../ItemMessage/ItemMessageLF";
|
|
5
|
+
import "@axa-fr/canopee-css/client/Form/Radio/CardRadio/CardRadioLF.css";
|
|
6
|
+
export const CardRadio = (props) => (_jsx(CardRadioCommon, { ...props, CardRadioOptionComponent: CardRadioOption, ItemMessageComponent: ItemMessage }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type CardRadioOptionProps } from "./CardRadioOptionCommon";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/Radio/CardRadioOption/CardRadioOptionApollo.css";
|
|
3
|
+
export declare const CardRadioOption: (props: CardRadioOptionProps) => 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 { Radio } from "../Radio/RadioApollo";
|
|
4
|
+
import { CardRadioOptionCommon, } from "./CardRadioOptionCommon";
|
|
5
|
+
import "@axa-fr/canopee-css/prospect/Form/Radio/CardRadioOption/CardRadioOptionApollo.css";
|
|
6
|
+
export const CardRadioOption = (props) => (_jsx(CardRadioOptionCommon, { ...props, RadioComponent: Radio, IconComponent: Icon }));
|