@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,10 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { HeadingLevel } from "./types";
|
|
3
|
-
type HeadingTextProps = {
|
|
4
|
-
title: ReactNode;
|
|
5
|
-
firstSubtitle?: ReactNode;
|
|
6
|
-
secondSubtitle?: ReactNode;
|
|
7
|
-
titleComponent?: `h${HeadingLevel}`;
|
|
8
|
-
};
|
|
9
|
-
export declare const HeadingWithSubheadings: ({ title, firstSubtitle, secondSubtitle, titleComponent: TitleComponent, }: HeadingTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const HeadingWithSubheadings = ({ title, firstSubtitle, secondSubtitle, titleComponent: TitleComponent = "h1", }) => (_jsxs("hgroup", { className: "af-heading__title-container", children: [_jsx(TitleComponent, { className: "af-heading__title", children: title }), firstSubtitle ? (_jsx("p", { className: "af-heading__subtitle", children: firstSubtitle })) : null, TitleComponent === "h1" && secondSubtitle ? (_jsx("p", { className: "af-heading__subtitle", children: secondSubtitle })) : null] }));
|
package/dist/Heading/types.d.ts
DELETED
package/dist/Heading/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/Icon/IconApollo.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
import { Svg } from "../Svg/Svg";
|
|
3
|
-
export declare const iconVariants: {
|
|
4
|
-
readonly primary: "primary";
|
|
5
|
-
readonly secondary: "secondary";
|
|
6
|
-
readonly disabled: "disabled";
|
|
7
|
-
};
|
|
8
|
-
export type IconVariants = keyof typeof iconVariants;
|
|
9
|
-
export declare const iconSizeVariants: {
|
|
10
|
-
readonly L: "large";
|
|
11
|
-
readonly M: "medium";
|
|
12
|
-
readonly S: "small";
|
|
13
|
-
readonly XS: "extra-small";
|
|
14
|
-
};
|
|
15
|
-
export type IconSizeVariants = keyof typeof iconSizeVariants;
|
|
16
|
-
export type IconProps = ComponentProps<typeof Svg> & {
|
|
17
|
-
variant?: IconVariants;
|
|
18
|
-
size?: IconSizeVariants;
|
|
19
|
-
hasBackground?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare const Icon: ({ variant, size, hasBackground, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Icon/IconCommon.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { getComponentClassName } from "../utilities/getComponentClassName";
|
|
4
|
-
import { Svg } from "../Svg/Svg";
|
|
5
|
-
export const iconVariants = {
|
|
6
|
-
primary: "primary",
|
|
7
|
-
secondary: "secondary",
|
|
8
|
-
disabled: "disabled",
|
|
9
|
-
};
|
|
10
|
-
export const iconSizeVariants = {
|
|
11
|
-
L: "large",
|
|
12
|
-
M: "medium",
|
|
13
|
-
S: "small",
|
|
14
|
-
XS: "extra-small",
|
|
15
|
-
};
|
|
16
|
-
export const Icon = ({ variant = "primary", size = "S", hasBackground = false, ...props }) => {
|
|
17
|
-
const componentClassName = useMemo(() => {
|
|
18
|
-
const newClassModifier = [
|
|
19
|
-
variant,
|
|
20
|
-
iconSizeVariants[size],
|
|
21
|
-
hasBackground && "has-background",
|
|
22
|
-
]
|
|
23
|
-
.filter(Boolean)
|
|
24
|
-
.join(" ");
|
|
25
|
-
return getComponentClassName("af-icon", "", newClassModifier);
|
|
26
|
-
}, [variant, hasBackground, size]);
|
|
27
|
-
return (_jsx("div", { className: componentClassName, children: _jsx(Svg, { ...props }) }));
|
|
28
|
-
};
|
package/dist/Icon/IconLF.d.ts
DELETED
package/dist/Icon/IconLF.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
2
|
-
export type ItemTabBarProps = ComponentPropsWithRef<"button"> & {
|
|
3
|
-
isActive?: boolean;
|
|
4
|
-
title: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const ItemTabBar: import("react").ForwardRefExoticComponent<Omit<ItemTabBarProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { getComponentClassName } from "../utilities/getComponentClassName";
|
|
4
|
-
export const ItemTabBar = forwardRef(({ isActive = false, title, className, ...props }, ref) => {
|
|
5
|
-
const classNames = getComponentClassName("af-item-tab-bar", className);
|
|
6
|
-
return (_jsx("button", { ref: ref, type: "button", role: "tab", "aria-selected": isActive, className: classNames, ...props, children: title }));
|
|
7
|
-
});
|
|
8
|
-
ItemTabBar.displayName = "ItemTabBar";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import facebook from "@axa-fr/design-system-apollo-css/facebook.svg";
|
|
3
|
-
import linkedin from "@axa-fr/design-system-apollo-css/linkedin.svg";
|
|
4
|
-
import twitterx from "@axa-fr/design-system-apollo-css/twitterx.svg";
|
|
5
|
-
import youtube from "@axa-fr/design-system-apollo-css/youtube.svg";
|
|
6
|
-
import { Svg } from "../../Svg/Svg";
|
|
7
|
-
export const DynamicIcon = ({ iconName, className, }) => {
|
|
8
|
-
switch (iconName) {
|
|
9
|
-
case "facebook":
|
|
10
|
-
return _jsx(Svg, { src: facebook, className: className });
|
|
11
|
-
case "twitter":
|
|
12
|
-
return _jsx(Svg, { src: twitterx, className: className });
|
|
13
|
-
case "youtube":
|
|
14
|
-
return _jsx(Svg, { src: youtube, className: className });
|
|
15
|
-
case "linkedin":
|
|
16
|
-
return _jsx(Svg, { src: linkedin, className: className });
|
|
17
|
-
default:
|
|
18
|
-
return iconName;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SocialMedia } from "./MenuIcons";
|
|
2
|
-
import { Link } from "./MenuLink";
|
|
3
|
-
export type FooterProps = {
|
|
4
|
-
links: Link[];
|
|
5
|
-
socialMedias?: SocialMedia[];
|
|
6
|
-
copyright: string;
|
|
7
|
-
expandLinkText: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const Footer: ({ links, socialMedias, copyright, expandLinkText, id, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import expandMore from "@material-symbols/svg-400/outlined/keyboard_arrow_down.svg";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { useCallback, useState } from "react";
|
|
5
|
-
import { MenuIcons } from "./MenuIcons";
|
|
6
|
-
import { MenuLink } from "./MenuLink";
|
|
7
|
-
import { Svg } from "../../Svg/Svg";
|
|
8
|
-
export const Footer = ({ links, socialMedias = [], copyright, expandLinkText, id, }) => {
|
|
9
|
-
const [isAboutOpen, setIsAboutOpen] = useState(false);
|
|
10
|
-
const handleClick = useCallback(() => {
|
|
11
|
-
setIsAboutOpen((isOpen) => !isOpen);
|
|
12
|
-
}, []);
|
|
13
|
-
return (_jsxs("footer", { role: "contentinfo", id: id, className: "af-footer", children: [_jsxs("div", { className: "af-footer__footerTop", children: [_jsxs("nav", { role: "navigation", className: "af-footer__menuTop", "aria-label": expandLinkText, children: [_jsxs("button", { type: "button", onClick: handleClick, className: "af-footer__menuAboutTrigger", children: [_jsx("span", { className: "af-footer__menuAboutTriggerText", children: expandLinkText }), _jsx(Svg, { src: expandMore, className: classNames("af-footer__icon", "af-footer__iconTrigger", isAboutOpen && "af-footer__iconTrigger--display") })] }), _jsx(MenuLink, { links: links, isAboutOpen: isAboutOpen })] }), _jsx(MenuIcons, { socialMedias: socialMedias })] }), _jsx("div", { className: "af-footer__footerBottom", children: _jsx("div", { className: "af-footer__footerBottomWidth", children: _jsx("span", { className: "af-footer__textCopyright", children: copyright }) }) })] }));
|
|
14
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type SocialMedia = {
|
|
2
|
-
icon: "facebook" | "twitter" | "youtube" | "linkedin";
|
|
3
|
-
link: string;
|
|
4
|
-
};
|
|
5
|
-
type MenuIconsProps = {
|
|
6
|
-
socialMedias: SocialMedia[];
|
|
7
|
-
};
|
|
8
|
-
export declare const MenuIcons: ({ socialMedias }: MenuIconsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { DynamicIcon } from "./DynamicIcons";
|
|
3
|
-
export const MenuIcons = ({ socialMedias }) => {
|
|
4
|
-
if (socialMedias.length === 0) {
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
return (_jsx("nav", { role: "navigation", className: "af-footer__footerMenuIcons", children: _jsx("ul", { children: socialMedias.map((socialItem) => (_jsx("li", { children: _jsx("a", { "aria-label": `social media ${socialItem.icon}`, className: "af-footer__menuIconLinks", href: socialItem.link, target: "_blank", rel: "noopener noreferrer", children: _jsx(DynamicIcon, { iconName: socialItem.icon }) }) }, socialItem.icon))) }) }));
|
|
8
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type Link = {
|
|
2
|
-
link: string;
|
|
3
|
-
text: string;
|
|
4
|
-
openInCurrentTab?: boolean;
|
|
5
|
-
};
|
|
6
|
-
type MenuLinkProps = {
|
|
7
|
-
links: Link[];
|
|
8
|
-
isAboutOpen?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const MenuLink: ({ links, isAboutOpen }: MenuLinkProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import classNames from "classnames";
|
|
3
|
-
import { useIsSmallScreen } from "../../utilities/hook/useIsSmallScreen";
|
|
4
|
-
import { BREAKPOINT } from "../../utilities/constants";
|
|
5
|
-
export const MenuLink = ({ links, isAboutOpen = false }) => {
|
|
6
|
-
const isSmallScreen = useIsSmallScreen(BREAKPOINT.MD);
|
|
7
|
-
if (links.length === 0) {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
return (_jsx("ul", { className: classNames("af-footer__menuLinks", isAboutOpen && "af-footer__menuLinks--display"), children: links.map((menuItem) => (_jsx("li", { children: _jsx("a", { className: "af-footer__linkItem", href: menuItem.link, target: menuItem.openInCurrentTab ? "_top" : "_blank", rel: "noreferrer", tabIndex: isSmallScreen && !isAboutOpen ? -1 : undefined, children: menuItem.text }) }, menuItem.text))) }));
|
|
11
|
-
};
|
package/dist/Link/LinkApollo.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, PropsWithChildren, type ReactNode } from "react";
|
|
2
|
-
export declare const linkVariants: {
|
|
3
|
-
readonly default: "default";
|
|
4
|
-
readonly underline: "underline";
|
|
5
|
-
readonly inverse: "inverse";
|
|
6
|
-
};
|
|
7
|
-
export type LinkVariants = keyof typeof linkVariants;
|
|
8
|
-
type LinkProps = {
|
|
9
|
-
variant?: LinkVariants;
|
|
10
|
-
openInNewTab?: boolean;
|
|
11
|
-
leftIcon?: ReactNode;
|
|
12
|
-
rightIcon?: ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
classModifier?: string;
|
|
15
|
-
} & ComponentPropsWithoutRef<"a">;
|
|
16
|
-
export declare const Link: ({ href, variant, openInNewTab, leftIcon, rightIcon, children, className, classModifier, ...props }: PropsWithChildren<LinkProps>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
package/dist/Link/LinkCommon.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import openInNew from "@material-symbols/svg-400/outlined/open_in_new.svg";
|
|
3
|
-
import { useMemo, } from "react";
|
|
4
|
-
import { Svg } from "../Svg/Svg";
|
|
5
|
-
import { getComponentClassName } from "../utilities/getComponentClassName";
|
|
6
|
-
export const linkVariants = {
|
|
7
|
-
default: "default",
|
|
8
|
-
underline: "underline",
|
|
9
|
-
inverse: "inverse",
|
|
10
|
-
};
|
|
11
|
-
export const Link = ({ href, variant = "underline", openInNewTab = false, leftIcon, rightIcon, children, className, classModifier = "", ...props }) => {
|
|
12
|
-
const newTabProps = openInNewTab && {
|
|
13
|
-
target: "_blank",
|
|
14
|
-
rel: "noopener noreferrer",
|
|
15
|
-
};
|
|
16
|
-
const componentClassName = useMemo(() => getComponentClassName("af-link", className, `${classModifier}${!className && openInNewTab ? " openInNewTab" : ""} ${variant}`), [classModifier, className, openInNewTab, variant]);
|
|
17
|
-
return (_jsxs("a", { className: componentClassName, href: href, ...newTabProps, ...props, children: [leftIcon, children, openInNewTab || Boolean(rightIcon)
|
|
18
|
-
? (rightIcon ?? _jsx(Svg, { src: openInNew }))
|
|
19
|
-
: null] }));
|
|
20
|
-
};
|
package/dist/Link/LinkLF.d.ts
DELETED
package/dist/Link/LinkLF.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ClickItem/ClickItemApollo.css";
|
|
2
|
-
import type { ClickItemProps } from "./types";
|
|
3
|
-
export declare const ClickItem: (props: ClickItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export { clickItemStates, type ClickItemStates, clickItemVariants, type ClickItemVariants, } from "./ClickItemCommon";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ClickItem/ClickItemApollo.css";
|
|
3
|
-
import { ClickItemCommon } from "./ClickItemCommon";
|
|
4
|
-
import { ClickItemContent } from "./components/ClickItemContentApollo";
|
|
5
|
-
import { ClickItemSuffix } from "./components/ClickItemSuffixApollo";
|
|
6
|
-
import { ClickItemPrefix } from "./components/ClickItemPrefixApollo";
|
|
7
|
-
export const ClickItem = (props) => (_jsx(ClickItemCommon, { ClickItemContentComponent: ClickItemContent, ClickItemSuffixComponent: ClickItemSuffix, ClickItemPrefixComponent: ClickItemPrefix, ...props }));
|
|
8
|
-
export { clickItemStates, clickItemVariants, } from "./ClickItemCommon";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ClickItemPropsCommon } from "./types";
|
|
2
|
-
export declare const clickItemVariants: {
|
|
3
|
-
readonly small: "small";
|
|
4
|
-
readonly medium: "medium";
|
|
5
|
-
readonly large: "large";
|
|
6
|
-
readonly agent: "agent";
|
|
7
|
-
};
|
|
8
|
-
export type ClickItemVariants = keyof typeof clickItemVariants;
|
|
9
|
-
export declare const clickItemStates: {
|
|
10
|
-
readonly default: "default";
|
|
11
|
-
readonly disabled: "disabled";
|
|
12
|
-
readonly loading: "loading";
|
|
13
|
-
};
|
|
14
|
-
export type ClickItemStates = keyof typeof clickItemStates;
|
|
15
|
-
export declare const ClickItemCommon: ({ className, state, variant, icon, title, subtitle, textSecondary, textTertiary, tagLabel, tagProps, basePictureProps, onClick, ariaLabelForActionIcon, ClickItemContentComponent, ClickItemSuffixComponent, ClickItemPrefixComponent, }: ClickItemPropsCommon) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ClickItemWrapper } from "./ClickItemWrapper";
|
|
3
|
-
export const clickItemVariants = {
|
|
4
|
-
small: "small",
|
|
5
|
-
medium: "medium",
|
|
6
|
-
large: "large",
|
|
7
|
-
agent: "agent",
|
|
8
|
-
};
|
|
9
|
-
export const clickItemStates = {
|
|
10
|
-
default: "default",
|
|
11
|
-
disabled: "disabled",
|
|
12
|
-
loading: "loading",
|
|
13
|
-
};
|
|
14
|
-
export const ClickItemCommon = ({ className = "", state = "default", variant = "large", icon, title, subtitle, textSecondary, textTertiary, tagLabel, tagProps, basePictureProps, onClick, ariaLabelForActionIcon, ClickItemContentComponent, ClickItemSuffixComponent, ClickItemPrefixComponent, }) => {
|
|
15
|
-
const clickableProps = onClick && {
|
|
16
|
-
"aria-label": ariaLabelForActionIcon,
|
|
17
|
-
onClick,
|
|
18
|
-
disabled: state === "disabled" || state === "loading",
|
|
19
|
-
};
|
|
20
|
-
return (_jsxs(ClickItemWrapper, { isClickable: Boolean(onClick), className: [
|
|
21
|
-
"af-apollo-click-item",
|
|
22
|
-
`af-apollo-click-item--${variant}`,
|
|
23
|
-
`af-apollo-click-item--${state}`,
|
|
24
|
-
className,
|
|
25
|
-
]
|
|
26
|
-
.filter(Boolean)
|
|
27
|
-
.join(" "), ...clickableProps, children: [_jsx("div", { className: "af-apollo-click-item__leading", children: _jsx(ClickItemPrefixComponent, { variant: variant, state: state, basePictureProps: basePictureProps, icon: icon }) }), _jsx("div", { className: "af-apollo-click-item__content", children: _jsx(ClickItemContentComponent, { title: title, subtitle: subtitle, textSecondary: textSecondary, textTertiary: textTertiary, tagLabel: tagLabel, tagProps: {
|
|
28
|
-
...(tagProps ?? {}),
|
|
29
|
-
variant: state === "disabled" ? "neutral" : tagProps?.variant,
|
|
30
|
-
} }) }), _jsx("div", { className: "af-apollo-click-item__trailing", children: _jsx(ClickItemSuffixComponent, { variant: variant, state: state }) })] }));
|
|
31
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ClickItem/ClickItemLF.css";
|
|
2
|
-
import type { ClickItemProps } from "./types";
|
|
3
|
-
export declare const ClickItem: (props: ClickItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export { clickItemStates, type ClickItemStates, clickItemVariants, type ClickItemVariants, } from "./ClickItemCommon";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ClickItem/ClickItemLF.css";
|
|
3
|
-
import { ClickItemCommon } from "./ClickItemCommon";
|
|
4
|
-
import { ClickItemContent } from "./components/ClickItemContentLF";
|
|
5
|
-
import { ClickItemSuffix } from "./components/ClickItemSuffixLF";
|
|
6
|
-
import { ClickItemPrefix } from "./components/ClickItemPrefixLF";
|
|
7
|
-
export const ClickItem = (props) => (_jsx(ClickItemCommon, { ClickItemContentComponent: ClickItemContent, ClickItemSuffixComponent: ClickItemSuffix, ClickItemPrefixComponent: ClickItemPrefix, ...props }));
|
|
8
|
-
export { clickItemStates, clickItemVariants, } from "./ClickItemCommon";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
type ClickItemWrapperProps = HTMLAttributes<HTMLElement> & {
|
|
3
|
-
isClickable?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const ClickItemWrapper: ({ isClickable, children, ...props }: ClickItemWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export const ClickItemWrapper = ({ isClickable = true, children, ...props }) => {
|
|
3
|
-
if (isClickable) {
|
|
4
|
-
return (_jsx("button", { type: "button", ...props, children: children }));
|
|
5
|
-
}
|
|
6
|
-
return _jsx("div", { ...props, children: children });
|
|
7
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Tag } from "../../../Tag/TagApollo";
|
|
3
|
-
import { ClickItemContentCommon, } from "./ClickItemContentCommon";
|
|
4
|
-
export const ClickItemContent = (props) => (_jsx(ClickItemContentCommon, { ...props, TagComponent: Tag }));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from "react";
|
|
2
|
-
import type { TagProps } from "../../../Tag/TagCommon";
|
|
3
|
-
export type ClickItemContentProps = {
|
|
4
|
-
title: string;
|
|
5
|
-
subtitle?: string;
|
|
6
|
-
textSecondary?: string;
|
|
7
|
-
textTertiary?: string;
|
|
8
|
-
tagLabel?: string;
|
|
9
|
-
tagProps?: TagProps;
|
|
10
|
-
};
|
|
11
|
-
export type ClickItemContentCommonProps = ClickItemContentProps & {
|
|
12
|
-
TagComponent: ComponentType<TagProps>;
|
|
13
|
-
};
|
|
14
|
-
export declare const ClickItemContentCommon: ({ title, subtitle, textSecondary, textTertiary, tagLabel, tagProps, TagComponent, }: ClickItemContentCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const ClickItemContentCommon = ({ title, subtitle, textSecondary, textTertiary, tagLabel, tagProps, TagComponent, }) => {
|
|
3
|
-
return (_jsxs(_Fragment, { children: [_jsx("p", { className: "af-apollo-click-item__title", children: title }), subtitle ? (_jsx("p", { className: "af-apollo-click-item__subtitle", children: subtitle })) : null, textSecondary ? (_jsx("p", { className: "af-apollo-click-item__secondary", children: textSecondary })) : null, textTertiary ? (_jsx("p", { className: "af-apollo-click-item__tertiary", children: textTertiary })) : null, tagLabel ? (_jsx("div", { className: "af-apollo-click-item__tag-container", children: _jsx(TagComponent, { ...tagProps, children: tagLabel }) })) : null] }));
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Icon } from "../../../Icon/IconApollo";
|
|
3
|
-
import { ClickItemPrefixCommon, } from "./ClickItemPrefixCommon";
|
|
4
|
-
export const ClickItemPrefix = (props) => (_jsx(ClickItemPrefixCommon, { ...props, IconComponent: Icon }));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ComponentType } from "react";
|
|
2
|
-
import { BasePicture } from "../../../BasePicture/BasePicture";
|
|
3
|
-
import type { IconProps } from "../../../Icon/IconCommon";
|
|
4
|
-
import type { ClickItemStates, ClickItemVariants } from "../ClickItemCommon";
|
|
5
|
-
export type ClickItemPrefixProps = {
|
|
6
|
-
state: ClickItemStates;
|
|
7
|
-
variant: ClickItemVariants;
|
|
8
|
-
icon?: string;
|
|
9
|
-
basePictureProps?: ComponentProps<typeof BasePicture>;
|
|
10
|
-
};
|
|
11
|
-
export type ClickItemPrefixCommonProps = ClickItemPrefixProps & {
|
|
12
|
-
IconComponent: ComponentType<IconProps>;
|
|
13
|
-
};
|
|
14
|
-
export declare const ClickItemPrefixCommon: ({ state, variant, icon, basePictureProps, IconComponent, }: ClickItemPrefixCommonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { BasePicture } from "../../../BasePicture/BasePicture";
|
|
3
|
-
export const ClickItemPrefixCommon = ({ state, variant, icon, basePictureProps, IconComponent, }) => {
|
|
4
|
-
if (!(Boolean(basePictureProps) && variant === "agent") && !icon) {
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
if (Boolean(basePictureProps) && variant === "agent") {
|
|
8
|
-
return _jsx(BasePicture, { ...basePictureProps });
|
|
9
|
-
}
|
|
10
|
-
return (_jsx(IconComponent, { role: "presentation", src: icon ?? "", variant: state === "disabled" && variant !== "small" ? "disabled" : "primary" }));
|
|
11
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import arrowForward from "@material-symbols/svg-400/rounded/arrow_forward-fill.svg";
|
|
3
|
-
import { Icon } from "../../../Icon/IconApollo";
|
|
4
|
-
import { Spinner } from "../../../Spinner/SpinnerApollo";
|
|
5
|
-
import { ClickItemSuffixCommon, } from "./ClickItemSuffixCommon";
|
|
6
|
-
export const ClickItemSuffix = (props) => (_jsx(ClickItemSuffixCommon, { trailingClickIcon: arrowForward, IconComponent: Icon, SpinnerComponent: Spinner, ...props }));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ComponentType } from "react";
|
|
2
|
-
import type { IconProps } from "../../../Icon/IconCommon";
|
|
3
|
-
import { ClickItemStates, ClickItemVariants } from "../ClickItemCommon";
|
|
4
|
-
import { Spinner } from "../../../Spinner/SpinnerCommon";
|
|
5
|
-
export type ClickItemSuffixProps = {
|
|
6
|
-
state: ClickItemStates;
|
|
7
|
-
variant: ClickItemVariants;
|
|
8
|
-
};
|
|
9
|
-
export type ClickItemSuffixCommonProps = ClickItemSuffixProps & {
|
|
10
|
-
trailingClickIcon: string;
|
|
11
|
-
IconComponent: ComponentType<IconProps>;
|
|
12
|
-
SpinnerComponent: ComponentType<ComponentProps<typeof Spinner>>;
|
|
13
|
-
};
|
|
14
|
-
export declare const ClickItemSuffixCommon: ({ state, variant, trailingClickIcon, IconComponent, SpinnerComponent, }: ClickItemSuffixCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import keyboardArrowRight from "@material-symbols/svg-400/rounded/keyboard_arrow_right-fill.svg";
|
|
3
|
-
export const ClickItemSuffixCommon = ({ state, variant, trailingClickIcon, IconComponent, SpinnerComponent, }) => {
|
|
4
|
-
if (variant === "large" && state === "loading") {
|
|
5
|
-
return _jsx(SpinnerComponent, { size: 32 });
|
|
6
|
-
}
|
|
7
|
-
if (variant === "small") {
|
|
8
|
-
return _jsx(IconComponent, { src: keyboardArrowRight, role: "presentation" });
|
|
9
|
-
}
|
|
10
|
-
const isDisabled = variant === "large" && state === "disabled";
|
|
11
|
-
return (_jsx("div", { className: ["af-click-icon", isDisabled && "af-click-icon--disabled"]
|
|
12
|
-
.filter(Boolean)
|
|
13
|
-
.join(" "), children: _jsx(IconComponent, { src: trailingClickIcon, role: "presentation", variant: isDisabled ? "disabled" : "primary" }) }));
|
|
14
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import keyboardArrowRight from "@material-symbols/svg-400/rounded/keyboard_arrow_right-fill.svg";
|
|
3
|
-
import { Icon } from "../../../Icon/IconLF";
|
|
4
|
-
import { Spinner } from "../../../Spinner/SpinnerLF";
|
|
5
|
-
import { ClickItemSuffixCommon, } from "./ClickItemSuffixCommon";
|
|
6
|
-
export const ClickItemSuffix = (props) => (_jsx(ClickItemSuffixCommon, { trailingClickIcon: keyboardArrowRight, IconComponent: Icon, SpinnerComponent: Spinner, ...props }));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ContentItemDuo/ContentItemDuoApollo.css";
|
|
3
|
-
import { Button } from "../../Button/ButtonApollo";
|
|
4
|
-
import { ContentItemDuoCommon, } from "./ContentItemDuoCommon";
|
|
5
|
-
export const ContentItemDuo = (props) => (_jsx(ContentItemDuoCommon, { ...props, ButtonComponent: Button }));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentType, type ReactNode } from "react";
|
|
2
|
-
import type { ButtonProps } from "../../Button/ButtonCommon";
|
|
3
|
-
export type ContentItemDuoProps = {
|
|
4
|
-
label: string;
|
|
5
|
-
value: ReactNode;
|
|
6
|
-
isVertical?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
classModifier?: string;
|
|
9
|
-
buttonText?: string;
|
|
10
|
-
onButtonClick?: () => void;
|
|
11
|
-
} & ComponentProps<"div">;
|
|
12
|
-
type ContentItemDuoCommonProps = ContentItemDuoProps & {
|
|
13
|
-
ButtonComponent: ComponentType<ButtonProps>;
|
|
14
|
-
};
|
|
15
|
-
export declare const ContentItemDuoCommon: ({ label, value, isVertical, className, classModifier, buttonText, onButtonClick, ButtonComponent, ...containerProps }: ContentItemDuoCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo, } from "react";
|
|
3
|
-
import { getComponentClassName } from "../../utilities/getComponentClassName";
|
|
4
|
-
export const ContentItemDuoCommon = ({ label, value, isVertical = false, className, classModifier, buttonText, onButtonClick, ButtonComponent, ...containerProps }) => {
|
|
5
|
-
const componentClassName = useMemo(() => {
|
|
6
|
-
const classModifiers = [classModifier];
|
|
7
|
-
if (isVertical) {
|
|
8
|
-
classModifiers.push("vertical");
|
|
9
|
-
}
|
|
10
|
-
return getComponentClassName("af-content-item-duo", className, classModifiers.filter(Boolean).join(" "));
|
|
11
|
-
}, [classModifier, className, isVertical]);
|
|
12
|
-
return (_jsxs("div", { className: componentClassName, ...containerProps, children: [_jsx("p", { className: "af-content-item-duo__label", children: label }), typeof value === "string" ? (_jsx("p", { className: "af-content-item-duo__value", children: value })) : (_jsx("div", { className: "af-content-item-duo__value", children: value })), buttonText ? (_jsx("div", { className: "af-content-item-duo__button", children: _jsx(ButtonComponent, { variant: "ghost", onClick: onButtonClick, children: buttonText }) })) : null] }));
|
|
13
|
-
};
|