@axa-fr/design-system-apollo-react 3.2.0 → 4.0.0-alpha.1090
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/package.json +9 -56
- package/src/index.ts +2 -0
- package/src/indexLF.ts +2 -0
- package/dist/Accordion/AccordionApollo.d.ts +0 -4
- package/dist/Accordion/AccordionApollo.js +0 -8
- package/dist/Accordion/AccordionCommon.d.ts +0 -29
- package/dist/Accordion/AccordionCommon.js +0 -17
- package/dist/Accordion/AccordionLF.d.ts +0 -4
- package/dist/Accordion/AccordionLF.js +0 -8
- package/dist/AccordionCore/AccordionCoreApollo.d.ts +0 -3
- package/dist/AccordionCore/AccordionCoreApollo.js +0 -5
- package/dist/AccordionCore/AccordionCoreCommon.d.ts +0 -17
- package/dist/AccordionCore/AccordionCoreCommon.js +0 -22
- package/dist/AccordionCore/AccordionCoreLF.d.ts +0 -3
- package/dist/AccordionCore/AccordionCoreLF.js +0 -5
- package/dist/BasePicture/BasePicture.d.ts +0 -5
- package/dist/BasePicture/BasePicture.js +0 -4
- package/dist/Button/ButtonApollo.d.ts +0 -4
- package/dist/Button/ButtonApollo.js +0 -6
- package/dist/Button/ButtonCommon.d.ts +0 -23
- package/dist/Button/ButtonCommon.js +0 -13
- package/dist/Button/ButtonLF.d.ts +0 -4
- package/dist/Button/ButtonLF.js +0 -6
- package/dist/CardMessage/CardMessageApollo.d.ts +0 -2
- package/dist/CardMessage/CardMessageApollo.js +0 -2
- package/dist/CardMessage/CardMessageCommon.d.ts +0 -14
- package/dist/CardMessage/CardMessageCommon.js +0 -15
- package/dist/CardMessage/CardMessageLF.d.ts +0 -2
- package/dist/CardMessage/CardMessageLF.js +0 -2
- package/dist/ClickIcon/ClickIconApollo.d.ts +0 -2
- package/dist/ClickIcon/ClickIconApollo.js +0 -2
- package/dist/ClickIcon/ClickIconCommon.d.ts +0 -9
- package/dist/ClickIcon/ClickIconCommon.js +0 -3
- package/dist/ClickIcon/ClickIconLF.d.ts +0 -2
- package/dist/ClickIcon/ClickIconLF.js +0 -2
- package/dist/ContentItemDuoAction/ContentItemDuoActionApollo.d.ts +0 -4
- package/dist/ContentItemDuoAction/ContentItemDuoActionApollo.js +0 -6
- package/dist/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +0 -28
- package/dist/ContentItemDuoAction/ContentItemDuoActionCommon.js +0 -10
- package/dist/ContentItemDuoAction/ContentItemDuoActionLF.d.ts +0 -5
- package/dist/ContentItemDuoAction/ContentItemDuoActionLF.js +0 -7
- package/dist/ContentItemMono/ContentItemMonoApollo.d.ts +0 -3
- package/dist/ContentItemMono/ContentItemMonoApollo.js +0 -5
- package/dist/ContentItemMono/ContentItemMonoCommon.d.ts +0 -33
- package/dist/ContentItemMono/ContentItemMonoCommon.js +0 -28
- package/dist/ContentItemMono/ContentItemMonoCore.d.ts +0 -9
- package/dist/ContentItemMono/ContentItemMonoCore.js +0 -4
- package/dist/ContentItemMono/ContentItemMonoLF.d.ts +0 -3
- package/dist/ContentItemMono/ContentItemMonoLF.js +0 -5
- package/dist/DataAgent/DataAgentApollo.d.ts +0 -3
- package/dist/DataAgent/DataAgentApollo.js +0 -7
- package/dist/DataAgent/DataAgentCommon.d.ts +0 -21
- package/dist/DataAgent/DataAgentCommon.js +0 -17
- package/dist/DataAgent/DataAgentLF.d.ts +0 -3
- package/dist/DataAgent/DataAgentLF.js +0 -7
- package/dist/Divider/DividerApollo.d.ts +0 -2
- package/dist/Divider/DividerApollo.js +0 -2
- package/dist/Divider/DividerCommon.d.ts +0 -6
- package/dist/Divider/DividerCommon.js +0 -7
- package/dist/Divider/DividerLF.d.ts +0 -2
- package/dist/Divider/DividerLF.js +0 -2
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +0 -6
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxApollo.js +0 -7
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +0 -35
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +0 -31
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +0 -6
- package/dist/Form/Checkbox/CardCheckbox/CardCheckboxLF.js +0 -7
- package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.d.ts +0 -3
- package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.js +0 -6
- package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.d.ts +0 -16
- package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.js +0 -11
- package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.d.ts +0 -3
- package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.js +0 -6
- package/dist/Form/Checkbox/Checkbox/CheckboxApollo.d.ts +0 -2
- package/dist/Form/Checkbox/Checkbox/CheckboxApollo.js +0 -2
- package/dist/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +0 -8
- package/dist/Form/Checkbox/Checkbox/CheckboxCommon.js +0 -4
- package/dist/Form/Checkbox/Checkbox/CheckboxLF.d.ts +0 -2
- package/dist/Form/Checkbox/Checkbox/CheckboxLF.js +0 -2
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextApollo.d.ts +0 -3
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +0 -8
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +0 -16
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +0 -11
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextLF.d.ts +0 -3
- package/dist/Form/Checkbox/CheckboxText/CheckboxTextLF.js +0 -8
- package/dist/Form/Dropdown/DropdownApollo.d.ts +0 -3
- package/dist/Form/Dropdown/DropdownApollo.js +0 -6
- package/dist/Form/Dropdown/DropdownCommon.d.ts +0 -26
- package/dist/Form/Dropdown/DropdownCommon.js +0 -13
- package/dist/Form/Dropdown/DropdownLF.d.ts +0 -3
- package/dist/Form/Dropdown/DropdownLF.js +0 -6
- package/dist/Form/FileUpload/FileUpload/FileUploadApollo.d.ts +0 -3
- package/dist/Form/FileUpload/FileUpload/FileUploadApollo.js +0 -7
- package/dist/Form/FileUpload/FileUpload/FileUploadCommon.d.ts +0 -18
- package/dist/Form/FileUpload/FileUpload/FileUploadCommon.js +0 -11
- package/dist/Form/FileUpload/FileUpload/FileUploadLF.d.ts +0 -3
- package/dist/Form/FileUpload/FileUpload/FileUploadLF.js +0 -7
- package/dist/Form/FileUpload/InputFile/InputFileApollo.d.ts +0 -4
- package/dist/Form/FileUpload/InputFile/InputFileApollo.js +0 -11
- package/dist/Form/FileUpload/InputFile/InputFileCommon.d.ts +0 -60
- package/dist/Form/FileUpload/InputFile/InputFileCommon.js +0 -39
- package/dist/Form/FileUpload/InputFile/InputFileLF.d.ts +0 -4
- package/dist/Form/FileUpload/InputFile/InputFileLF.js +0 -9
- package/dist/Form/FileUpload/ItemFile/ItemFileApollo.d.ts +0 -3
- package/dist/Form/FileUpload/ItemFile/ItemFileApollo.js +0 -10
- package/dist/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +0 -54
- package/dist/Form/FileUpload/ItemFile/ItemFileCommon.js +0 -26
- package/dist/Form/FileUpload/ItemFile/ItemFileLF.d.ts +0 -3
- package/dist/Form/FileUpload/ItemFile/ItemFileLF.js +0 -10
- package/dist/Form/InputDate/InputDate.helper.d.ts +0 -8
- package/dist/Form/InputDate/InputDate.helper.js +0 -23
- package/dist/Form/InputDate/InputDateApollo.d.ts +0 -3
- package/dist/Form/InputDate/InputDateApollo.js +0 -8
- package/dist/Form/InputDate/InputDateAtom.d.ts +0 -9
- package/dist/Form/InputDate/InputDateAtom.js +0 -6
- package/dist/Form/InputDate/InputDateCommon.d.ts +0 -27
- package/dist/Form/InputDate/InputDateCommon.js +0 -30
- package/dist/Form/InputDate/InputDateLF.d.ts +0 -3
- package/dist/Form/InputDate/InputDateLF.js +0 -8
- package/dist/Form/InputDate/InputDateTextAtom.d.ts +0 -9
- package/dist/Form/InputDate/InputDateTextAtom.js +0 -16
- package/dist/Form/InputPhone/CountryCodeSelect.d.ts +0 -12
- package/dist/Form/InputPhone/CountryCodeSelect.js +0 -33
- package/dist/Form/InputPhone/InputPhone.types.d.ts +0 -4
- package/dist/Form/InputPhone/InputPhone.types.js +0 -1
- package/dist/Form/InputPhone/InputPhoneApollo.d.ts +0 -3
- package/dist/Form/InputPhone/InputPhoneApollo.js +0 -8
- package/dist/Form/InputPhone/InputPhoneCommon.d.ts +0 -35
- package/dist/Form/InputPhone/InputPhoneCommon.js +0 -32
- package/dist/Form/InputPhone/InputPhoneLF.d.ts +0 -3
- package/dist/Form/InputPhone/InputPhoneLF.js +0 -8
- package/dist/Form/InputPhone/maskFrenchPhoneNumber.d.ts +0 -1
- package/dist/Form/InputPhone/maskFrenchPhoneNumber.js +0 -12
- package/dist/Form/InputText/InputTextApollo.d.ts +0 -3
- package/dist/Form/InputText/InputTextApollo.js +0 -9
- package/dist/Form/InputText/InputTextCommon.d.ts +0 -24
- package/dist/Form/InputText/InputTextCommon.js +0 -14
- package/dist/Form/InputText/InputTextLF.d.ts +0 -3
- package/dist/Form/InputText/InputTextLF.js +0 -9
- package/dist/Form/InputTextAtom/InputTextAtomApollo.d.ts +0 -2
- package/dist/Form/InputTextAtom/InputTextAtomApollo.js +0 -2
- package/dist/Form/InputTextAtom/InputTextAtomCommon.d.ts +0 -10
- package/dist/Form/InputTextAtom/InputTextAtomCommon.js +0 -11
- package/dist/Form/InputTextAtom/InputTextAtomLF.d.ts +0 -2
- package/dist/Form/InputTextAtom/InputTextAtomLF.js +0 -2
- package/dist/Form/ItemLabel/ItemLabelApollo.d.ts +0 -3
- package/dist/Form/ItemLabel/ItemLabelApollo.js +0 -5
- package/dist/Form/ItemLabel/ItemLabelCommon.d.ts +0 -103
- package/dist/Form/ItemLabel/ItemLabelCommon.js +0 -55
- package/dist/Form/ItemLabel/ItemLabelLF.d.ts +0 -3
- package/dist/Form/ItemLabel/ItemLabelLF.js +0 -5
- package/dist/Form/ItemMessage/ItemMessageApollo.d.ts +0 -2
- package/dist/Form/ItemMessage/ItemMessageApollo.js +0 -2
- package/dist/Form/ItemMessage/ItemMessageCommon.d.ts +0 -13
- package/dist/Form/ItemMessage/ItemMessageCommon.js +0 -23
- package/dist/Form/ItemMessage/ItemMessageLF.d.ts +0 -2
- package/dist/Form/ItemMessage/ItemMessageLF.js +0 -2
- package/dist/Form/Radio/CardRadio/CardRadioApollo.d.ts +0 -3
- package/dist/Form/Radio/CardRadio/CardRadioApollo.js +0 -6
- package/dist/Form/Radio/CardRadio/CardRadioCommon.d.ts +0 -39
- package/dist/Form/Radio/CardRadio/CardRadioCommon.js +0 -16
- package/dist/Form/Radio/CardRadio/CardRadioLF.d.ts +0 -3
- package/dist/Form/Radio/CardRadio/CardRadioLF.js +0 -6
- package/dist/Form/Radio/CardRadioOption/CardRadioOptionApollo.d.ts +0 -3
- package/dist/Form/Radio/CardRadioOption/CardRadioOptionApollo.js +0 -6
- package/dist/Form/Radio/CardRadioOption/CardRadioOptionCommon.d.ts +0 -50
- package/dist/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +0 -12
- package/dist/Form/Radio/CardRadioOption/CardRadioOptionLF.d.ts +0 -3
- package/dist/Form/Radio/CardRadioOption/CardRadioOptionLF.js +0 -6
- package/dist/Form/Radio/Radio/RadioApollo.d.ts +0 -2
- package/dist/Form/Radio/Radio/RadioApollo.js +0 -2
- package/dist/Form/Radio/Radio/RadioCommon.d.ts +0 -5
- package/dist/Form/Radio/Radio/RadioCommon.js +0 -6
- package/dist/Form/Radio/Radio/RadioLF.d.ts +0 -2
- package/dist/Form/Radio/Radio/RadioLF.js +0 -2
- package/dist/Form/TextArea/TextAreaApollo.d.ts +0 -3
- package/dist/Form/TextArea/TextAreaApollo.js +0 -8
- package/dist/Form/TextArea/TextAreaCommon.d.ts +0 -17
- package/dist/Form/TextArea/TextAreaCommon.js +0 -14
- package/dist/Form/TextArea/TextAreaLF.d.ts +0 -3
- package/dist/Form/TextArea/TextAreaLF.js +0 -8
- package/dist/Grid/DebugGridApollo.d.ts +0 -2
- package/dist/Grid/DebugGridApollo.js +0 -4
- package/dist/Grid/DebugGridCommon.d.ts +0 -11
- package/dist/Grid/DebugGridCommon.js +0 -10
- package/dist/Grid/DebugGridLF.d.ts +0 -2
- package/dist/Grid/DebugGridLF.js +0 -4
- package/dist/Heading/HeadingApollo.d.ts +0 -4
- package/dist/Heading/HeadingApollo.js +0 -5
- package/dist/Heading/HeadingCommon.d.ts +0 -15
- package/dist/Heading/HeadingCommon.js +0 -8
- package/dist/Heading/HeadingLF.d.ts +0 -4
- package/dist/Heading/HeadingLF.js +0 -5
- package/dist/Heading/HeadingWithSubheadings.d.ts +0 -10
- package/dist/Heading/HeadingWithSubheadings.js +0 -2
- package/dist/Heading/types.d.ts +0 -6
- package/dist/Heading/types.js +0 -1
- package/dist/Icon/IconApollo.d.ts +0 -2
- package/dist/Icon/IconApollo.js +0 -2
- package/dist/Icon/IconCommon.d.ts +0 -21
- package/dist/Icon/IconCommon.js +0 -28
- package/dist/Icon/IconLF.d.ts +0 -2
- package/dist/Icon/IconLF.js +0 -2
- package/dist/ItemTabBar/ItemTabBarApollo.d.ts +0 -2
- package/dist/ItemTabBar/ItemTabBarApollo.js +0 -2
- package/dist/ItemTabBar/ItemTabBarCommon.d.ts +0 -6
- package/dist/ItemTabBar/ItemTabBarCommon.js +0 -8
- package/dist/ItemTabBar/ItemTabBarLF.d.ts +0 -2
- package/dist/ItemTabBar/ItemTabBarLF.js +0 -2
- package/dist/Layout/Footer/DynamicIcons.d.ts +0 -4
- package/dist/Layout/Footer/DynamicIcons.js +0 -20
- package/dist/Layout/Footer/FooterApollo.d.ts +0 -2
- package/dist/Layout/Footer/FooterApollo.js +0 -2
- package/dist/Layout/Footer/FooterCommon.d.ts +0 -10
- package/dist/Layout/Footer/FooterCommon.js +0 -14
- package/dist/Layout/Footer/FooterLF.d.ts +0 -2
- package/dist/Layout/Footer/FooterLF.js +0 -2
- package/dist/Layout/Footer/MenuIcons.d.ts +0 -9
- package/dist/Layout/Footer/MenuIcons.js +0 -8
- package/dist/Layout/Footer/MenuLink.d.ts +0 -11
- package/dist/Layout/Footer/MenuLink.js +0 -11
- package/dist/Link/LinkApollo.d.ts +0 -2
- package/dist/Link/LinkApollo.js +0 -2
- package/dist/Link/LinkCommon.d.ts +0 -17
- package/dist/Link/LinkCommon.js +0 -20
- package/dist/Link/LinkLF.d.ts +0 -2
- package/dist/Link/LinkLF.js +0 -2
- package/dist/List/ClickItem/ClickItemApollo.d.ts +0 -4
- package/dist/List/ClickItem/ClickItemApollo.js +0 -8
- package/dist/List/ClickItem/ClickItemCommon.d.ts +0 -15
- package/dist/List/ClickItem/ClickItemCommon.js +0 -31
- package/dist/List/ClickItem/ClickItemLF.d.ts +0 -4
- package/dist/List/ClickItem/ClickItemLF.js +0 -8
- package/dist/List/ClickItem/ClickItemWrapper.d.ts +0 -6
- package/dist/List/ClickItem/ClickItemWrapper.js +0 -7
- package/dist/List/ClickItem/components/ClickItemContentApollo.d.ts +0 -2
- package/dist/List/ClickItem/components/ClickItemContentApollo.js +0 -4
- package/dist/List/ClickItem/components/ClickItemContentCommon.d.ts +0 -14
- package/dist/List/ClickItem/components/ClickItemContentCommon.js +0 -4
- package/dist/List/ClickItem/components/ClickItemContentLF.d.ts +0 -2
- package/dist/List/ClickItem/components/ClickItemContentLF.js +0 -4
- package/dist/List/ClickItem/components/ClickItemPrefixApollo.d.ts +0 -2
- package/dist/List/ClickItem/components/ClickItemPrefixApollo.js +0 -4
- package/dist/List/ClickItem/components/ClickItemPrefixCommon.d.ts +0 -14
- package/dist/List/ClickItem/components/ClickItemPrefixCommon.js +0 -11
- package/dist/List/ClickItem/components/ClickItemPrefixLF.d.ts +0 -2
- package/dist/List/ClickItem/components/ClickItemPrefixLF.js +0 -4
- package/dist/List/ClickItem/components/ClickItemSuffixApollo.d.ts +0 -2
- package/dist/List/ClickItem/components/ClickItemSuffixApollo.js +0 -6
- package/dist/List/ClickItem/components/ClickItemSuffixCommon.d.ts +0 -14
- package/dist/List/ClickItem/components/ClickItemSuffixCommon.js +0 -14
- package/dist/List/ClickItem/components/ClickItemSuffixLF.d.ts +0 -2
- package/dist/List/ClickItem/components/ClickItemSuffixLF.js +0 -6
- package/dist/List/ContentItemDuo/ContentItemDuoApollo.d.ts +0 -3
- package/dist/List/ContentItemDuo/ContentItemDuoApollo.js +0 -5
- package/dist/List/ContentItemDuo/ContentItemDuoCommon.d.ts +0 -16
- package/dist/List/ContentItemDuo/ContentItemDuoCommon.js +0 -13
- package/dist/List/ContentItemDuo/ContentItemDuoLF.d.ts +0 -3
- package/dist/List/ContentItemDuo/ContentItemDuoLF.js +0 -5
- package/dist/Message/Message.helpers.d.ts +0 -5
- package/dist/Message/Message.helpers.js +0 -7
- package/dist/Message/MessageApollo.d.ts +0 -5
- package/dist/Message/MessageApollo.js +0 -6
- package/dist/Message/MessageCommon.d.ts +0 -25
- package/dist/Message/MessageCommon.js +0 -14
- package/dist/Message/MessageLF.d.ts +0 -5
- package/dist/Message/MessageLF.js +0 -6
- package/dist/Message/constants.d.ts +0 -3
- package/dist/Message/constants.js +0 -19
- package/dist/Message/types.d.ts +0 -1
- package/dist/Message/types.js +0 -1
- package/dist/Modal/ModalApollo.d.ts +0 -8
- package/dist/Modal/ModalApollo.js +0 -13
- package/dist/Modal/ModalCommon.d.ts +0 -10
- package/dist/Modal/ModalCommon.js +0 -8
- package/dist/Modal/ModalLF.d.ts +0 -8
- package/dist/Modal/ModalLF.js +0 -13
- package/dist/Modal/components/ModalCore.d.ts +0 -6
- package/dist/Modal/components/ModalCore.js +0 -7
- package/dist/Modal/components/ModalCoreBody.d.ts +0 -2
- package/dist/Modal/components/ModalCoreBody.js +0 -14
- package/dist/Modal/components/ModalCoreFooterApollo.d.ts +0 -2
- package/dist/Modal/components/ModalCoreFooterApollo.js +0 -4
- package/dist/Modal/components/ModalCoreFooterCommon.d.ts +0 -10
- package/dist/Modal/components/ModalCoreFooterCommon.js +0 -10
- package/dist/Modal/components/ModalCoreFooterLF.d.ts +0 -2
- package/dist/Modal/components/ModalCoreFooterLF.js +0 -4
- package/dist/Modal/components/ModalCoreHeaderApollo.d.ts +0 -2
- package/dist/Modal/components/ModalCoreHeaderApollo.js +0 -5
- package/dist/Modal/components/ModalCoreHeaderCommon.d.ts +0 -13
- package/dist/Modal/components/ModalCoreHeaderCommon.js +0 -4
- package/dist/Modal/components/ModalCoreHeaderLF.d.ts +0 -2
- package/dist/Modal/components/ModalCoreHeaderLF.js +0 -5
- package/dist/Modal/types.d.ts +0 -12
- package/dist/Modal/types.js +0 -1
- package/dist/Pagination/ItemPagination/ItemPaginationApollo.d.ts +0 -3
- package/dist/Pagination/ItemPagination/ItemPaginationApollo.js +0 -3
- package/dist/Pagination/ItemPagination/ItemPaginationCommon.d.ts +0 -10
- package/dist/Pagination/ItemPagination/ItemPaginationCommon.js +0 -11
- package/dist/Pagination/ItemPagination/ItemPaginationLF.d.ts +0 -3
- package/dist/Pagination/ItemPagination/ItemPaginationLF.js +0 -3
- package/dist/Pagination/Pagination.helper.d.ts +0 -9
- package/dist/Pagination/Pagination.helper.js +0 -34
- package/dist/Pagination/PaginationApollo.d.ts +0 -4
- package/dist/Pagination/PaginationApollo.js +0 -5
- package/dist/Pagination/PaginationCommon.d.ts +0 -14
- package/dist/Pagination/PaginationCommon.js +0 -20
- package/dist/Pagination/PaginationLF.d.ts +0 -4
- package/dist/Pagination/PaginationLF.js +0 -5
- package/dist/ProgressBar/ProgressBarApollo.d.ts +0 -2
- package/dist/ProgressBar/ProgressBarApollo.js +0 -2
- package/dist/ProgressBar/ProgressBarCommon.d.ts +0 -9
- package/dist/ProgressBar/ProgressBarCommon.js +0 -8
- package/dist/ProgressBar/ProgressBarLF.d.ts +0 -2
- package/dist/ProgressBar/ProgressBarLF.js +0 -2
- package/dist/ProgressBarGroup/ProgressBarGroupApollo.d.ts +0 -3
- package/dist/ProgressBarGroup/ProgressBarGroupApollo.js +0 -5
- package/dist/ProgressBarGroup/ProgressBarGroupCommon.d.ts +0 -18
- package/dist/ProgressBarGroup/ProgressBarGroupCommon.js +0 -9
- package/dist/ProgressBarGroup/ProgressBarGroupLF.d.ts +0 -3
- package/dist/ProgressBarGroup/ProgressBarGroupLF.js +0 -5
- package/dist/ProgressBarGroup/useSequentialProgress.d.ts +0 -20
- package/dist/ProgressBarGroup/useSequentialProgress.js +0 -80
- package/dist/Spinner/SpinnerApollo.d.ts +0 -2
- package/dist/Spinner/SpinnerApollo.js +0 -2
- package/dist/Spinner/SpinnerCommon.d.ts +0 -17
- package/dist/Spinner/SpinnerCommon.js +0 -19
- package/dist/Spinner/SpinnerLF.d.ts +0 -2
- package/dist/Spinner/SpinnerLF.js +0 -2
- package/dist/Stepper/StepperApollo.d.ts +0 -3
- package/dist/Stepper/StepperApollo.js +0 -5
- package/dist/Stepper/StepperCommon.d.ts +0 -18
- package/dist/Stepper/StepperCommon.js +0 -8
- package/dist/Stepper/StepperLF.d.ts +0 -3
- package/dist/Stepper/StepperLF.js +0 -5
- package/dist/Svg/Svg.d.ts +0 -11
- package/dist/Svg/Svg.js +0 -54
- package/dist/Svg/svgInjector.d.ts +0 -12
- package/dist/Svg/svgInjector.js +0 -31
- package/dist/TabBar/TabBarApollo.d.ts +0 -4
- package/dist/TabBar/TabBarApollo.js +0 -6
- package/dist/TabBar/TabBarCommon.d.ts +0 -19
- package/dist/TabBar/TabBarCommon.js +0 -48
- package/dist/TabBar/TabBarLF.d.ts +0 -4
- package/dist/TabBar/TabBarLF.js +0 -6
- package/dist/Tag/TagApollo.d.ts +0 -2
- package/dist/Tag/TagApollo.js +0 -2
- package/dist/Tag/TagCommon.d.ts +0 -13
- package/dist/Tag/TagCommon.js +0 -14
- package/dist/Tag/TagLF.d.ts +0 -2
- package/dist/Tag/TagLF.js +0 -2
- package/dist/TimelineVertical/TimelineVerticalApollo.d.ts +0 -4
- package/dist/TimelineVertical/TimelineVerticalApollo.js +0 -5
- package/dist/TimelineVertical/TimelineVerticalCommon.d.ts +0 -7
- package/dist/TimelineVertical/TimelineVerticalCommon.js +0 -3
- package/dist/TimelineVertical/TimelineVerticalLF.d.ts +0 -4
- package/dist/TimelineVertical/TimelineVerticalLF.js +0 -5
- package/dist/TimelineVertical/types.d.ts +0 -5
- package/dist/TimelineVertical/types.js +0 -1
- package/dist/Toggle/ToggleApollo.d.ts +0 -2
- package/dist/Toggle/ToggleApollo.js +0 -2
- package/dist/Toggle/ToggleCommon.d.ts +0 -3
- package/dist/Toggle/ToggleCommon.js +0 -9
- package/dist/Toggle/ToggleLF.d.ts +0 -2
- package/dist/Toggle/ToggleLF.js +0 -2
- package/dist/index.d.ts +0 -56
- package/dist/index.js +0 -55
- package/dist/indexLF.d.ts +0 -60
- package/dist/indexLF.js +0 -59
- package/dist/utilities/constants.d.ts +0 -6
- package/dist/utilities/constants.js +0 -6
- package/dist/utilities/generateId.d.ts +0 -1
- package/dist/utilities/generateId.js +0 -10
- package/dist/utilities/getClassName.d.ts +0 -20
- package/dist/utilities/getClassName.js +0 -24
- package/dist/utilities/getComponentClassName.d.ts +0 -4
- package/dist/utilities/getComponentClassName.js +0 -30
- package/dist/utilities/hook/useHasScroll.d.ts +0 -6
- package/dist/utilities/hook/useHasScroll.js +0 -30
- package/dist/utilities/hook/useIsSmallScreen.d.ts +0 -1
- package/dist/utilities/hook/useIsSmallScreen.js +0 -14
- package/dist/utilities/types/PolymorphicComponent.d.ts +0 -8
- package/dist/utilities/types/PolymorphicComponent.js +0 -1
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ContentItemDuo/ContentItemDuoLF.css";
|
|
3
|
-
import { Button } from "../../Button/ButtonLF";
|
|
4
|
-
import { ContentItemDuoCommon, } from "./ContentItemDuoCommon";
|
|
5
|
-
export const ContentItemDuo = (props) => (_jsx(ContentItemDuoCommon, { ...props, ButtonComponent: Button }));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Message/MessageApollo.css";
|
|
2
|
-
import { type MessageProps } from "./MessageCommon";
|
|
3
|
-
export { messageVariants } from "./constants";
|
|
4
|
-
export type { MessageVariants } from "./types";
|
|
5
|
-
export declare const Message: (props: MessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Message/MessageApollo.css";
|
|
3
|
-
import { Icon } from "..";
|
|
4
|
-
import { MessageCommon } from "./MessageCommon";
|
|
5
|
-
export { messageVariants } from "./constants";
|
|
6
|
-
export const Message = (props) => (_jsx(MessageCommon, { ...props, IconComponent: Icon }));
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef, ComponentType, ReactElement, ReactNode } from "react";
|
|
2
|
-
import type { ButtonProps } from "../Button/ButtonCommon";
|
|
3
|
-
import type { Icon } from "../Icon/IconCommon";
|
|
4
|
-
import { Link } from "../Link/LinkCommon";
|
|
5
|
-
import type { MessageVariants } from "./types";
|
|
6
|
-
type Headings = "h2" | "h3" | "h4" | "h5" | "h6";
|
|
7
|
-
export type MessageProps = {
|
|
8
|
-
/** Message variant (validation, error, warning, information, neutral) */
|
|
9
|
-
variant: MessageVariants;
|
|
10
|
-
/** Title displayed in the message */
|
|
11
|
-
title?: string;
|
|
12
|
-
/** Main content of the message */
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
/** Action (link or button) displayed on the right side of the message */
|
|
15
|
-
action?: ReactElement<typeof Link | ComponentType<ButtonProps>>;
|
|
16
|
-
/** Icon size in pixels */
|
|
17
|
-
iconSize?: number;
|
|
18
|
-
/** HTML heading level used for the title */
|
|
19
|
-
heading?: Headings;
|
|
20
|
-
} & ComponentPropsWithoutRef<"section">;
|
|
21
|
-
type MessagePropsWithComponents = MessageProps & {
|
|
22
|
-
IconComponent: typeof Icon;
|
|
23
|
-
};
|
|
24
|
-
export declare const MessageCommon: ({ variant, className, title, children, action, iconSize, heading: Heading, IconComponent, ...sectionProps }: MessagePropsWithComponents) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { iconByVariant, messageVariants } from "./constants";
|
|
3
|
-
import { getAriaRole } from "./Message.helpers";
|
|
4
|
-
const defaultClassName = "af-message";
|
|
5
|
-
export const MessageCommon = ({ variant = messageVariants.information, className, title, children, action, iconSize = 24, heading: Heading = "h4", IconComponent, ...sectionProps }) => {
|
|
6
|
-
const role = getAriaRole(variant);
|
|
7
|
-
return (_jsxs("section", { className: [
|
|
8
|
-
defaultClassName,
|
|
9
|
-
variant && `${defaultClassName}--${variant}`,
|
|
10
|
-
className,
|
|
11
|
-
]
|
|
12
|
-
.filter(Boolean)
|
|
13
|
-
.join(" "), role: role, ...sectionProps, children: [_jsx(IconComponent, { src: iconByVariant[variant], width: iconSize, height: iconSize, className: "af-message__icon", role: "presentation" }), _jsxs("div", { className: "af-message__content", children: [title ? (_jsx(Heading, { className: "af-message__title", children: title })) : null, children, action ? _jsx("div", { className: "af-message__action", children: action }) : null] })] }));
|
|
14
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Message/MessageLF.css";
|
|
2
|
-
import { type MessageProps } from "./MessageCommon";
|
|
3
|
-
export { messageVariants } from "./constants";
|
|
4
|
-
export type { MessageVariants } from "./types";
|
|
5
|
-
export declare const Message: (props: MessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Message/MessageLF.css";
|
|
3
|
-
import { Icon } from "../indexLF";
|
|
4
|
-
import { MessageCommon } from "./MessageCommon";
|
|
5
|
-
export { messageVariants } from "./constants";
|
|
6
|
-
export const Message = (props) => (_jsx(MessageCommon, { ...props, IconComponent: Icon }));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import validationIcon from "@material-symbols/svg-400/outlined/check_circle-fill.svg";
|
|
2
|
-
import infoIcon from "@material-symbols/svg-400/outlined/emoji_objects-fill.svg";
|
|
3
|
-
import errorIcon from "@material-symbols/svg-400/outlined/error-fill.svg";
|
|
4
|
-
import neutralIcon from "@material-symbols/svg-400/outlined/info-fill.svg";
|
|
5
|
-
import warningIcon from "@material-symbols/svg-400/outlined/warning-fill.svg";
|
|
6
|
-
export const messageVariants = {
|
|
7
|
-
validation: "validation",
|
|
8
|
-
error: "error",
|
|
9
|
-
warning: "warning",
|
|
10
|
-
information: "information",
|
|
11
|
-
neutral: "neutral",
|
|
12
|
-
};
|
|
13
|
-
export const iconByVariant = {
|
|
14
|
-
validation: validationIcon,
|
|
15
|
-
error: errorIcon,
|
|
16
|
-
neutral: neutralIcon,
|
|
17
|
-
warning: warningIcon,
|
|
18
|
-
information: infoIcon,
|
|
19
|
-
};
|
package/dist/Message/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type MessageVariants = "validation" | "error" | "warning" | "information" | "neutral";
|
package/dist/Message/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Modal/ModalApollo.css";
|
|
2
|
-
import type { ModalProps } from "./types";
|
|
3
|
-
export { ModalCore, type ModalCoreProps } from "./components/ModalCore";
|
|
4
|
-
export { ModalCoreBody, type ModalCoreBodyProps, } from "./components/ModalCoreBody";
|
|
5
|
-
export { ModalCoreFooter } from "./components/ModalCoreFooterApollo";
|
|
6
|
-
export { ModalCoreHeader } from "./components/ModalCoreHeaderApollo";
|
|
7
|
-
export type { ModalCoreFooterProps, ModalCoreHeaderProps, ModalProps, } from "./types";
|
|
8
|
-
export declare const Modal: import("react").ForwardRefExoticComponent<Omit<ModalProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Modal/ModalApollo.css";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { Button } from "../Button/ButtonApollo";
|
|
5
|
-
import { Heading } from "../Heading/HeadingApollo";
|
|
6
|
-
import { Icon } from "../Icon/IconApollo";
|
|
7
|
-
import { ModalCommon } from "./ModalCommon";
|
|
8
|
-
export { ModalCore } from "./components/ModalCore";
|
|
9
|
-
export { ModalCoreBody, } from "./components/ModalCoreBody";
|
|
10
|
-
export { ModalCoreFooter } from "./components/ModalCoreFooterApollo";
|
|
11
|
-
export { ModalCoreHeader } from "./components/ModalCoreHeaderApollo";
|
|
12
|
-
export const Modal = forwardRef(({ headingProps = {}, icon, iconProps = {}, ...props }, ref) => (_jsx(ModalCommon, { ...props, ref: ref, headingComponent: Heading, headingProps: { ...headingProps, children: props.title }, iconComponent: icon ? Icon : undefined, iconProps: icon ? { src: icon, ...iconProps } : undefined, buttonComponent: Button })));
|
|
13
|
-
Modal.displayName = "Modal";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ModalCoreProps } from "./components/ModalCore";
|
|
2
|
-
import { type ModalCoreBodyProps } from "./components/ModalCoreBody";
|
|
3
|
-
import { type ModalCoreFooterCommonProps, type ModalCoreFooterContainerProps } from "./components/ModalCoreFooterCommon";
|
|
4
|
-
import type { ModalCoreHeaderCommonProps, ModalCoreHeaderContainerProps } from "./components/ModalCoreHeaderCommon";
|
|
5
|
-
export type ModalCommonProps = ModalCoreProps & Omit<ModalCoreHeaderCommonProps, Extract<keyof ModalCoreProps, keyof ModalCoreHeaderCommonProps>> & Omit<ModalCoreFooterCommonProps, Extract<keyof ModalCoreProps, keyof ModalCoreFooterCommonProps>> & {
|
|
6
|
-
modalCoreBodyProps?: ModalCoreBodyProps;
|
|
7
|
-
modalCoreFooterProps?: ModalCoreFooterContainerProps;
|
|
8
|
-
modalCoreHeaderProps?: ModalCoreHeaderContainerProps;
|
|
9
|
-
};
|
|
10
|
-
export declare const ModalCommon: import("react").ForwardRefExoticComponent<Omit<ModalCommonProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { ModalCore } from "./components/ModalCore";
|
|
4
|
-
import { ModalCoreBody, } from "./components/ModalCoreBody";
|
|
5
|
-
import { ModalCoreFooterCommon, } from "./components/ModalCoreFooterCommon";
|
|
6
|
-
import { ModalCoreHeaderCommon } from "./components/ModalCoreHeaderCommon";
|
|
7
|
-
export const ModalCommon = forwardRef(({ children, headingComponent, headingProps, closeButtonAriaLabel, onClose, iconComponent, iconProps, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, buttonComponent, modalCoreBodyProps, modalCoreFooterProps, modalCoreHeaderProps, ...props }, ref) => (_jsxs(ModalCore, { onClose: onClose, ref: ref, ...props, children: [_jsx(ModalCoreHeaderCommon, { headingComponent: headingComponent, headingProps: headingProps, iconComponent: iconComponent, iconProps: iconProps, onClose: onClose, closeButtonAriaLabel: closeButtonAriaLabel, ...modalCoreHeaderProps }), _jsx(ModalCoreBody, { ...modalCoreBodyProps, children: children }), _jsx(ModalCoreFooterCommon, { buttonComponent: buttonComponent, primaryButtonProps: primaryButtonProps, secondaryButtonProps: secondaryButtonProps, tertiaryButtonProps: tertiaryButtonProps, ...modalCoreFooterProps })] })));
|
|
8
|
-
ModalCommon.displayName = "ModalCommon";
|
package/dist/Modal/ModalLF.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Modal/ModalLF.css";
|
|
2
|
-
import type { ModalProps } from "./types";
|
|
3
|
-
export { ModalCore, type ModalCoreProps } from "./components/ModalCore";
|
|
4
|
-
export { ModalCoreBody, type ModalCoreBodyProps, } from "./components/ModalCoreBody";
|
|
5
|
-
export { ModalCoreFooter } from "./components/ModalCoreFooterLF";
|
|
6
|
-
export { ModalCoreHeader } from "./components/ModalCoreHeaderLF";
|
|
7
|
-
export type { ModalCoreFooterProps, ModalCoreHeaderProps, ModalProps, } from "./types";
|
|
8
|
-
export declare const Modal: import("react").ForwardRefExoticComponent<Omit<ModalProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
|
package/dist/Modal/ModalLF.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Modal/ModalLF.css";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { Button } from "../Button/ButtonLF";
|
|
5
|
-
import { Heading } from "../Heading/HeadingLF";
|
|
6
|
-
import { Icon } from "../Icon/IconLF";
|
|
7
|
-
import { ModalCommon } from "./ModalCommon";
|
|
8
|
-
export { ModalCore } from "./components/ModalCore";
|
|
9
|
-
export { ModalCoreBody, } from "./components/ModalCoreBody";
|
|
10
|
-
export { ModalCoreFooter } from "./components/ModalCoreFooterLF";
|
|
11
|
-
export { ModalCoreHeader } from "./components/ModalCoreHeaderLF";
|
|
12
|
-
export const Modal = forwardRef(({ headingProps = {}, icon, iconProps = {}, ...props }, ref) => (_jsx(ModalCommon, { ...props, ref: ref, headingComponent: Heading, headingProps: { ...headingProps, children: props.title }, iconComponent: icon ? Icon : undefined, iconProps: icon ? { src: icon, ...iconProps } : undefined, buttonComponent: Button })));
|
|
13
|
-
Modal.displayName = "Modal";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef } from "react";
|
|
2
|
-
export type ModalCoreProps = Omit<ComponentPropsWithRef<"dialog">, "title" | "onClose"> & Required<Pick<ComponentPropsWithRef<"dialog">, "title">> & {
|
|
3
|
-
onClose?: VoidFunction;
|
|
4
|
-
};
|
|
5
|
-
declare const ModalCore: import("react").ForwardRefExoticComponent<Omit<ModalCoreProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
|
|
6
|
-
export { ModalCore };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
const ModalCore = forwardRef(({ className, children, ...props }, ref) => (
|
|
4
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events
|
|
5
|
-
_jsx("dialog", { "aria-modal": true, "aria-label": props["aria-label"] ?? props.title, className: ["af-modal", className].filter(Boolean).join(" "), onClick: props.onClose, ref: ref, ...props, children: _jsx("section", { className: "af-modal__content", onClick: (e) => e.stopPropagation(), children: children }) })));
|
|
6
|
-
ModalCore.displayName = "ModalCore";
|
|
7
|
-
export { ModalCore };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useRef } from "react";
|
|
3
|
-
import { useHasScroll } from "../../utilities/hook/useHasScroll";
|
|
4
|
-
export const ModalCoreBody = ({ children, className, ...otherProps }) => {
|
|
5
|
-
const bodyRef = useRef(null);
|
|
6
|
-
const { vertical: hasVerticalScroll } = useHasScroll(bodyRef);
|
|
7
|
-
return (_jsx("main", { className: [
|
|
8
|
-
"af-modal__body",
|
|
9
|
-
hasVerticalScroll ? "af-modal__body-vertical-scroll" : undefined,
|
|
10
|
-
className,
|
|
11
|
-
]
|
|
12
|
-
.filter(Boolean)
|
|
13
|
-
.join(" "), ...otherProps, ref: bodyRef, children: children }));
|
|
14
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from "../../Button/ButtonApollo";
|
|
3
|
-
import { ModalCoreFooterCommon } from "./ModalCoreFooterCommon";
|
|
4
|
-
export const ModalCoreFooter = (args) => (_jsx(ModalCoreFooterCommon, { buttonComponent: Button, ...args }));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef, ComponentType } from "react";
|
|
2
|
-
import type { ButtonProps } from "../../Button/ButtonCommon";
|
|
3
|
-
export type ModalCoreFooterContainerProps = ComponentPropsWithoutRef<"footer">;
|
|
4
|
-
export type ModalCoreFooterCommonProps = ModalCoreFooterContainerProps & {
|
|
5
|
-
buttonComponent: ComponentType<ButtonProps>;
|
|
6
|
-
primaryButtonProps?: Partial<ButtonProps>;
|
|
7
|
-
secondaryButtonProps?: Partial<ButtonProps>;
|
|
8
|
-
tertiaryButtonProps?: Partial<ButtonProps>;
|
|
9
|
-
};
|
|
10
|
-
export declare const ModalCoreFooterCommon: ({ className, buttonComponent: ButtonComponent, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, ...rest }: ModalCoreFooterCommonProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const renderFooterButtons = (ButtonComponent, buttons) => ButtonComponent &&
|
|
3
|
-
buttons.map(([variant, props]) => Boolean(props) && (_jsx(ButtonComponent, { variant: variant, ...props, className: [props?.className, "af-modal__footer-button"]
|
|
4
|
-
.filter(Boolean)
|
|
5
|
-
.join(" ") }, variant)));
|
|
6
|
-
export const ModalCoreFooterCommon = ({ className, buttonComponent: ButtonComponent, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, ...rest }) => (primaryButtonProps || secondaryButtonProps || tertiaryButtonProps) && (_jsx("footer", { className: ["af-modal__footer", className].filter(Boolean).join(" "), ...rest, children: renderFooterButtons(ButtonComponent, [
|
|
7
|
-
["tertiary", tertiaryButtonProps],
|
|
8
|
-
["secondary", secondaryButtonProps],
|
|
9
|
-
["primary", primaryButtonProps],
|
|
10
|
-
]) }));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from "../../Button/ButtonLF";
|
|
3
|
-
import { ModalCoreFooterCommon } from "./ModalCoreFooterCommon";
|
|
4
|
-
export const ModalCoreFooter = (args) => (_jsx(ModalCoreFooterCommon, { buttonComponent: Button, ...args }));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Heading } from "../../Heading/HeadingApollo";
|
|
3
|
-
import { Icon } from "../../Icon/IconApollo";
|
|
4
|
-
import { ModalCoreHeaderCommon } from "./ModalCoreHeaderCommon";
|
|
5
|
-
export const ModalCoreHeader = (args) => (_jsx(ModalCoreHeaderCommon, { headingComponent: Heading, iconComponent: Icon, ...args }));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef, ComponentType } from "react";
|
|
2
|
-
import type { HeadingProps } from "../../Heading/types";
|
|
3
|
-
import type { IconProps } from "../../Icon/IconCommon";
|
|
4
|
-
export type ModalCoreHeaderContainerProps = ComponentPropsWithoutRef<"header">;
|
|
5
|
-
export type ModalCoreHeaderCommonProps = ModalCoreHeaderContainerProps & {
|
|
6
|
-
headingComponent: ComponentType<HeadingProps>;
|
|
7
|
-
headingProps: HeadingProps;
|
|
8
|
-
iconComponent?: ComponentType<IconProps>;
|
|
9
|
-
iconProps?: IconProps;
|
|
10
|
-
onClose?: VoidFunction;
|
|
11
|
-
closeButtonAriaLabel?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const ModalCoreHeaderCommon: ({ className, headingComponent: HeadingComponent, headingProps, iconComponent: IconComponent, iconProps, onClose, closeButtonAriaLabel, ...props }: ModalCoreHeaderCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import close from "@material-symbols/svg-400/rounded/close.svg";
|
|
3
|
-
import { ClickIcon } from "../../ClickIcon/ClickIconCommon";
|
|
4
|
-
export const ModalCoreHeaderCommon = ({ className, headingComponent: HeadingComponent, headingProps, iconComponent: IconComponent, iconProps, onClose, closeButtonAriaLabel = "Fermer la boite de dialogue", ...props }) => (_jsxs("header", { className: ["af-modal__header", className].filter(Boolean).join(" "), ...props, children: [_jsx(ClickIcon, { className: "af-modal__header-close-btn", src: close, onClick: onClose, "aria-label": closeButtonAriaLabel }), _jsxs("div", { className: "af-modal__header-title", children: [IconComponent && iconProps ? (_jsx(IconComponent, { size: "M", ...iconProps })) : null, _jsx(HeadingComponent, { level: 2, ...headingProps })] })] }));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Heading } from "../../Heading/HeadingLF";
|
|
3
|
-
import { Icon } from "../../Icon/IconLF";
|
|
4
|
-
import { ModalCoreHeaderCommon } from "./ModalCoreHeaderCommon";
|
|
5
|
-
export const ModalCoreHeader = (args) => (_jsx(ModalCoreHeaderCommon, { headingComponent: Heading, iconComponent: Icon, ...args }));
|
package/dist/Modal/types.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { HeadingProps } from "../Heading/types";
|
|
2
|
-
import type { IconProps } from "../Icon/IconCommon";
|
|
3
|
-
import type { ModalCoreFooterCommonProps } from "./components/ModalCoreFooterCommon";
|
|
4
|
-
import type { ModalCoreHeaderCommonProps } from "./components/ModalCoreHeaderCommon";
|
|
5
|
-
import type { ModalCommonProps } from "./ModalCommon";
|
|
6
|
-
export type ModalCoreHeaderProps = Omit<ModalCoreHeaderCommonProps, "headingComponent" | "iconComponent">;
|
|
7
|
-
export type ModalCoreFooterProps = Omit<ModalCoreFooterCommonProps, "buttonComponent">;
|
|
8
|
-
export type ModalProps = Omit<ModalCommonProps, "headingComponent" | "headingProps" | "iconComponent" | "iconProps" | "buttonComponent"> & {
|
|
9
|
-
headingProps?: Omit<HeadingProps, "children">;
|
|
10
|
-
icon?: string;
|
|
11
|
-
iconProps?: Omit<IconProps, "src">;
|
|
12
|
-
};
|
package/dist/Modal/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Pagination/ItemPagination/ItemPaginationApollo.css";
|
|
2
|
-
export { type ItemPaginationCommonProps as ItemPaginationProps } from "./ItemPaginationCommon";
|
|
3
|
-
export declare const ItemPagination: <T extends import("react").ElementType = "a">({ as, page, isCurrentPage, className, ...props }: import("./ItemPaginationCommon").ItemPaginationCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ElementType } from "react";
|
|
2
|
-
import { type PolymorphicComponent } from "../../utilities/types/PolymorphicComponent";
|
|
3
|
-
export declare const ELLIPSIS = "...";
|
|
4
|
-
type ItemPaginationCustomProps = {
|
|
5
|
-
page: number | typeof ELLIPSIS;
|
|
6
|
-
isCurrentPage: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type ItemPaginationCommonProps<T extends ElementType> = PolymorphicComponent<T, ItemPaginationCustomProps>;
|
|
9
|
-
export declare const ItemPaginationCommon: <T extends ElementType = "a">({ as, page, isCurrentPage, className, ...props }: ItemPaginationCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getClassName } from "../../utilities/getClassName";
|
|
3
|
-
export const ELLIPSIS = "...";
|
|
4
|
-
export const ItemPaginationCommon = ({ as, page, isCurrentPage, className, ...props }) => {
|
|
5
|
-
const Component = page === ELLIPSIS ? "span" : as || "a";
|
|
6
|
-
return (_jsx(Component, { href: Component === "a" ? `/${page}` : undefined, type: Component === "button" ? "button" : undefined, "aria-current": Component === "a" && isCurrentPage ? "page" : undefined, className: getClassName({
|
|
7
|
-
baseClassName: "af-item-pagination",
|
|
8
|
-
className,
|
|
9
|
-
modifiers: [isCurrentPage ? "current" : undefined],
|
|
10
|
-
}), ...props, children: page }));
|
|
11
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Pagination/ItemPagination/ItemPaginationLF.css";
|
|
2
|
-
export { type ItemPaginationCommonProps as ItemPaginationProps } from "./ItemPaginationCommon";
|
|
3
|
-
export declare const ItemPagination: <T extends import("react").ElementType = "a">({ as, page, isCurrentPage, className, ...props }: import("./ItemPaginationCommon").ItemPaginationCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ElementType } from "react";
|
|
2
|
-
import type { ItemPaginationCommonProps } from "./ItemPagination/ItemPaginationCommon";
|
|
3
|
-
export type getItemsProps = {
|
|
4
|
-
numberPages: number;
|
|
5
|
-
onChangePage: (page: number) => void;
|
|
6
|
-
currentPage: number;
|
|
7
|
-
asItem?: ElementType;
|
|
8
|
-
};
|
|
9
|
-
export declare const getItems: ({ numberPages, currentPage, asItem, onChangePage, }: getItemsProps) => ItemPaginationCommonProps<ElementType>[];
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ELLIPSIS } from "./ItemPagination/ItemPaginationCommon";
|
|
2
|
-
const MAX_PAGE = 7;
|
|
3
|
-
const ellipsisItem = {
|
|
4
|
-
page: ELLIPSIS,
|
|
5
|
-
isCurrentPage: false,
|
|
6
|
-
};
|
|
7
|
-
export const getItems = ({ numberPages, currentPage, asItem, onChangePage, }) => {
|
|
8
|
-
const items = Array.from({ length: numberPages }, (_, index) => ({
|
|
9
|
-
page: index + 1,
|
|
10
|
-
isCurrentPage: index + 1 === currentPage,
|
|
11
|
-
as: asItem,
|
|
12
|
-
onClick: () => onChangePage(index + 1),
|
|
13
|
-
}));
|
|
14
|
-
if (numberPages <= MAX_PAGE) {
|
|
15
|
-
return items;
|
|
16
|
-
}
|
|
17
|
-
if (currentPage && currentPage < MAX_PAGE - 1) {
|
|
18
|
-
return items.toSpliced(MAX_PAGE - 1, numberPages - 1, ellipsisItem, items[numberPages - 1]);
|
|
19
|
-
}
|
|
20
|
-
if (currentPage && currentPage > numberPages - (MAX_PAGE - 2)) {
|
|
21
|
-
return [
|
|
22
|
-
items[0],
|
|
23
|
-
ellipsisItem,
|
|
24
|
-
...items.toSpliced(0, numberPages - (MAX_PAGE - 1)),
|
|
25
|
-
];
|
|
26
|
-
}
|
|
27
|
-
return [
|
|
28
|
-
items[0],
|
|
29
|
-
ellipsisItem,
|
|
30
|
-
...items.toSpliced(0, currentPage - 2).toSpliced(3, numberPages - 1),
|
|
31
|
-
ellipsisItem,
|
|
32
|
-
items[numberPages - 1],
|
|
33
|
-
];
|
|
34
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Pagination/PaginationApollo.css";
|
|
2
|
-
import { type PaginationProps } from "./PaginationCommon";
|
|
3
|
-
export { type PaginationProps } from "./PaginationCommon";
|
|
4
|
-
export declare const Pagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Pagination/PaginationApollo.css";
|
|
3
|
-
import { ItemPagination } from "./ItemPagination/ItemPaginationApollo";
|
|
4
|
-
import { PaginationCommon } from "./PaginationCommon";
|
|
5
|
-
export const Pagination = (props) => (_jsx(PaginationCommon, { ...props, ItemPaginationComponent: ItemPagination }));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ComponentType, type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
import { ClickIcon } from "../ClickIcon/ClickIconApollo";
|
|
3
|
-
import { ItemPaginationCommon } from "./ItemPagination/ItemPaginationCommon";
|
|
4
|
-
import { type getItemsProps } from "./Pagination.helper";
|
|
5
|
-
export type PaginationProps = getItemsProps & ComponentPropsWithoutRef<"nav"> & {
|
|
6
|
-
hidePrevNext?: boolean;
|
|
7
|
-
prevButtonProps?: ComponentProps<typeof ClickIcon>;
|
|
8
|
-
nextButtonProps?: ComponentProps<typeof ClickIcon>;
|
|
9
|
-
};
|
|
10
|
-
type PaginationCommonProps = PaginationProps & {
|
|
11
|
-
ItemPaginationComponent: ComponentType<ComponentProps<typeof ItemPaginationCommon>>;
|
|
12
|
-
};
|
|
13
|
-
export declare const PaginationCommon: ({ numberPages, onChangePage, className, currentPage, asItem, hidePrevNext, "aria-label": ariaLabel, ItemPaginationComponent, prevButtonProps, nextButtonProps, }: PaginationCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import chevronBackward from "@material-symbols/svg-400/rounded/chevron_backward.svg";
|
|
3
|
-
import chevronForward from "@material-symbols/svg-400/rounded/chevron_forward.svg";
|
|
4
|
-
import { getClassName } from "../utilities/getClassName";
|
|
5
|
-
import { ClickIcon } from "../ClickIcon/ClickIconApollo";
|
|
6
|
-
import { ELLIPSIS, } from "./ItemPagination/ItemPaginationCommon";
|
|
7
|
-
import { getItems } from "./Pagination.helper";
|
|
8
|
-
export const PaginationCommon = ({ numberPages = 1, onChangePage, className, currentPage = 1, asItem, hidePrevNext = false, "aria-label": ariaLabel = "Pagination", ItemPaginationComponent, prevButtonProps, nextButtonProps, }) => {
|
|
9
|
-
const items = getItems({
|
|
10
|
-
numberPages,
|
|
11
|
-
currentPage,
|
|
12
|
-
asItem,
|
|
13
|
-
onChangePage,
|
|
14
|
-
});
|
|
15
|
-
return (_jsx("nav", { className: getClassName({
|
|
16
|
-
baseClassName: "af-pagination",
|
|
17
|
-
className,
|
|
18
|
-
modifiers: [hidePrevNext ? "hide-prev-next" : undefined],
|
|
19
|
-
}), "aria-label": ariaLabel, children: _jsxs("ol", { className: "af-pagination-list", children: [_jsx("li", { children: _jsx(ClickIcon, { src: chevronBackward, onClick: () => onChangePage(currentPage - 1), disabled: currentPage === 1, "aria-label": "Page pr\u00E9c\u00E9dente", ...prevButtonProps }) }), _jsx("li", { children: _jsx("span", { className: "af-pagination-counter", children: `Page ${currentPage} sur ${numberPages}` }) }), items.map((item, index) => (_jsx("li", { children: _jsx(ItemPaginationComponent, { ...item }) }, item.page === ELLIPSIS ? `ellipsis-${index}` : item.page))), _jsx("li", { children: _jsx(ClickIcon, { src: chevronForward, onClick: () => onChangePage(currentPage + 1), disabled: currentPage === numberPages, "aria-label": "Page suivante", ...nextButtonProps }) })] }) }));
|
|
20
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Pagination/PaginationLF.css";
|
|
2
|
-
import { type PaginationProps } from "./PaginationCommon";
|
|
3
|
-
export { type PaginationProps } from "./PaginationCommon";
|
|
4
|
-
export declare const Pagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Pagination/PaginationLF.css";
|
|
3
|
-
import { ItemPagination } from "./ItemPagination/ItemPaginationLF";
|
|
4
|
-
import { PaginationCommon } from "./PaginationCommon";
|
|
5
|
-
export const Pagination = (props) => (_jsx(PaginationCommon, { ...props, ItemPaginationComponent: ItemPagination }));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps, type ReactNode } from "react";
|
|
2
|
-
type ProgressBarProps = ComponentProps<"progress"> & {
|
|
3
|
-
label?: ReactNode;
|
|
4
|
-
};
|
|
5
|
-
export declare const ProgressBar: {
|
|
6
|
-
({ id, label, className, ...props }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useId } from "react";
|
|
3
|
-
export const ProgressBar = ({ id, label, className, ...props }) => {
|
|
4
|
-
let inputId = useId();
|
|
5
|
-
inputId = id || inputId;
|
|
6
|
-
return (_jsxs(_Fragment, { children: [Boolean(label) && (_jsx("label", { className: "af-progress-bar__label", htmlFor: inputId, children: label })), _jsx("progress", { id: inputId, className: ["af-progress-bar", className].filter(Boolean).join(" "), ...props })] }));
|
|
7
|
-
};
|
|
8
|
-
ProgressBar.displayName = "ProgressBar";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/ProgressBarGroup/ProgressBarGroupApollo.css";
|
|
3
|
-
import { ProgressBar } from "../ProgressBar/ProgressBarApollo";
|
|
4
|
-
import { ProgressBarGroupCommon, } from "./ProgressBarGroupCommon";
|
|
5
|
-
export const ProgressBarGroup = (props) => (_jsx(ProgressBarGroupCommon, { ...props, ProgressBarComponent: ProgressBar }));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentType } from "react";
|
|
2
|
-
import { ProgressBar } from "../ProgressBar/ProgressBarCommon";
|
|
3
|
-
export type ProgressBarGroupProps = {
|
|
4
|
-
currentStepProgress?: number;
|
|
5
|
-
currentStep: number;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `stepsCount` instead.
|
|
8
|
-
*/
|
|
9
|
-
nbSteps?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
10
|
-
stepsCount?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
11
|
-
max?: number;
|
|
12
|
-
className?: string;
|
|
13
|
-
} & Omit<ComponentProps<"ol">, "children" | "className">;
|
|
14
|
-
type ProgressBarGroupCommonProps = ProgressBarGroupProps & {
|
|
15
|
-
ProgressBarComponent: ComponentType<ComponentProps<typeof ProgressBar>>;
|
|
16
|
-
};
|
|
17
|
-
export declare const ProgressBarGroupCommon: ({ currentStepProgress, max, nbSteps, stepsCount, currentStep, className, ProgressBarComponent, ...props }: ProgressBarGroupCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import classNames from "classnames";
|
|
3
|
-
import { useId } from "react";
|
|
4
|
-
import { useSequentialProgress } from "./useSequentialProgress";
|
|
5
|
-
export const ProgressBarGroupCommon = ({ currentStepProgress = 0, max = 100, nbSteps = 4, stepsCount = nbSteps, currentStep, className, ProgressBarComponent, ...props }) => {
|
|
6
|
-
const stepperId = useId();
|
|
7
|
-
const progressValues = useSequentialProgress(currentStepProgress / max, currentStep, stepsCount);
|
|
8
|
-
return (_jsx("ol", { className: classNames("af-progress-bar-group", className), ...props, children: progressValues.map((value, index) => (_jsx("li", { className: "af-progress-bar-group__item", children: _jsx(ProgressBarComponent, { value: value, "aria-hidden": true }) }, `af-progress-bar-group__item--${stepperId}-${index}`))) }));
|
|
9
|
-
};
|