@axa-fr/design-system-apollo-react 3.2.1-tags-slash-3-0-0.1 → 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
package/package.json
CHANGED
|
@@ -1,38 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/design-system-apollo-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.1090",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
5
|
"exports": {
|
|
8
6
|
".": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
12
|
-
}
|
|
7
|
+
"import": "./src/index.js",
|
|
8
|
+
"types": "./src/index.d.ts"
|
|
13
9
|
},
|
|
14
10
|
"./lf": {
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
"types": "./dist/indexLF.d.ts"
|
|
18
|
-
}
|
|
11
|
+
"import": "./src/indexLF.js",
|
|
12
|
+
"types": "./src/indexLF.d.ts"
|
|
19
13
|
}
|
|
20
14
|
},
|
|
21
15
|
"files": [
|
|
22
|
-
"
|
|
16
|
+
"src"
|
|
23
17
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"prebuild": "rimraf dist",
|
|
26
|
-
"build": "tsc -p tsconfig.build.json",
|
|
27
|
-
"eslint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
28
|
-
"eslint:fix": "eslint src --ext js,jsx,ts,tsx --fix",
|
|
29
|
-
"prettier": "prettier \"src/**/*.!(js|jsx|ts|tsx|svg)\" --check --ignore-unknown",
|
|
30
|
-
"prettier:fix": "prettier \"src/**/*.!(js|jsx|ts|tsx|svg)\" --write --ignore-unknown",
|
|
31
|
-
"check-types": "tsc --noEmit",
|
|
32
|
-
"test": "vitest",
|
|
33
|
-
"test:ui": "vitest --ui",
|
|
34
|
-
"test:ci": "vitest run --coverage"
|
|
35
|
-
},
|
|
36
18
|
"repository": {
|
|
37
19
|
"type": "git",
|
|
38
20
|
"url": "git+https://github.com/AxaFrance/design-system.git"
|
|
@@ -46,7 +28,7 @@
|
|
|
46
28
|
},
|
|
47
29
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
|
48
30
|
"peerDependencies": {
|
|
49
|
-
"@axa-fr/
|
|
31
|
+
"@axa-fr/canopee-css": "1.0.0-alpha.1090",
|
|
50
32
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
51
33
|
"react": ">= 18"
|
|
52
34
|
},
|
|
@@ -56,38 +38,9 @@
|
|
|
56
38
|
}
|
|
57
39
|
},
|
|
58
40
|
"dependencies": {
|
|
59
|
-
"@
|
|
60
|
-
"@tanem/svg-injector": "^10.1.68",
|
|
61
|
-
"classnames": "^2.5.1",
|
|
62
|
-
"dompurify": "^3.1.5",
|
|
63
|
-
"react-select": "^5.10.1"
|
|
64
|
-
},
|
|
65
|
-
"devDependencies": {
|
|
66
|
-
"@axa-fr/design-system-apollo-css": "*",
|
|
67
|
-
"@axa-fr/eslint-config-design-system": "*",
|
|
68
|
-
"@axa-fr/prettier-config-design-system": "*",
|
|
69
|
-
"@testing-library/dom": "^10.4.0",
|
|
70
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
71
|
-
"@testing-library/react": "^16.2.0",
|
|
72
|
-
"@testing-library/user-event": "^14.6.1",
|
|
73
|
-
"@types/dompurify": "^3.0.5",
|
|
74
|
-
"@types/jest": "^29.5.14",
|
|
75
|
-
"@types/jest-axe": "^3.5.9",
|
|
76
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
77
|
-
"@vitest/ui": "^3.0.7",
|
|
78
|
-
"copyfiles": "^2.4.1",
|
|
79
|
-
"jest-axe": "^10.0.0",
|
|
80
|
-
"jsdom": "^25.0.1",
|
|
81
|
-
"react": "^19.0.0",
|
|
82
|
-
"rimraf": "^6.0.1",
|
|
83
|
-
"vitest": "^3.0.7"
|
|
84
|
-
},
|
|
85
|
-
"lint-staged": {
|
|
86
|
-
"*.(js|jsx|ts|tsx)": "eslint --fix",
|
|
87
|
-
"*.(ts|tsx)": "tsc-files --noEmit"
|
|
41
|
+
"@axa-fr/canopee-react": "*"
|
|
88
42
|
},
|
|
89
|
-
"prettier": "@axa-fr/prettier-config-design-system",
|
|
90
43
|
"volta": {
|
|
91
44
|
"extends": "../../../package.json"
|
|
92
45
|
}
|
|
93
|
-
}
|
|
46
|
+
}
|
package/src/index.ts
ADDED
package/src/indexLF.ts
ADDED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type AccordionProps } from "./AccordionCommon";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Accordion/AccordionApollo.css";
|
|
3
|
-
export declare const Accordion: (props: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export { type AccordionVariants, accordionVariants } from "./AccordionCommon";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { AccordionCore } from "../AccordionCore/AccordionCoreApollo";
|
|
3
|
-
import { Tag } from "../Tag/TagApollo";
|
|
4
|
-
import { Icon } from "../Icon/IconApollo";
|
|
5
|
-
import { AccordionCommon } from "./AccordionCommon";
|
|
6
|
-
import "@axa-fr/design-system-apollo-css/dist/Accordion/AccordionApollo.css";
|
|
7
|
-
export const Accordion = (props) => (_jsx(AccordionCommon, { ...props, AccordionCoreComponent: AccordionCore, TagComponent: Tag, IconComponent: Icon }));
|
|
8
|
-
export { accordionVariants } from "./AccordionCommon";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ComponentType } from "react";
|
|
2
|
-
import type { TagProps } from "../Tag/TagCommon";
|
|
3
|
-
import type { IconProps } from "../Icon/IconCommon";
|
|
4
|
-
import type { AccordionCoreProps } from "../AccordionCore/AccordionCoreCommon";
|
|
5
|
-
export declare const accordionVariants: {
|
|
6
|
-
readonly primary: "primary";
|
|
7
|
-
readonly secondary: "secondary";
|
|
8
|
-
};
|
|
9
|
-
export type AccordionVariants = (typeof accordionVariants)[keyof typeof accordionVariants];
|
|
10
|
-
export type AccordionProps = {
|
|
11
|
-
variant?: AccordionVariants;
|
|
12
|
-
title: string;
|
|
13
|
-
subtitle?: string;
|
|
14
|
-
icon?: string;
|
|
15
|
-
info1: string;
|
|
16
|
-
info2: string;
|
|
17
|
-
dateLabel?: string;
|
|
18
|
-
dateProps?: Omit<ComponentProps<"time">, "children">;
|
|
19
|
-
tagLabel?: string;
|
|
20
|
-
tagProps?: Omit<TagProps, "children">;
|
|
21
|
-
isPlain?: boolean;
|
|
22
|
-
} & Omit<AccordionCoreProps, "summary">;
|
|
23
|
-
type AccordionCommonProps = AccordionProps & {
|
|
24
|
-
AccordionCoreComponent: ComponentType<AccordionCoreProps>;
|
|
25
|
-
TagComponent: ComponentType<TagProps>;
|
|
26
|
-
IconComponent: ComponentType<IconProps>;
|
|
27
|
-
};
|
|
28
|
-
export declare const AccordionCommon: ({ variant, className, children, icon, title, subtitle, tagLabel, tagProps, dateLabel, dateProps, info1, info2, AccordionCoreComponent, TagComponent, IconComponent, isPlain, ...accordionCoreProps }: AccordionCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getClassName } from "../utilities/getClassName";
|
|
3
|
-
export const accordionVariants = {
|
|
4
|
-
primary: "primary",
|
|
5
|
-
secondary: "secondary",
|
|
6
|
-
};
|
|
7
|
-
export const AccordionCommon = ({ variant = accordionVariants.primary, className, children, icon, title, subtitle, tagLabel, tagProps, dateLabel, dateProps, info1, info2, AccordionCoreComponent, TagComponent, IconComponent, isPlain, ...accordionCoreProps }) => (_jsx(AccordionCoreComponent, { className: getClassName({
|
|
8
|
-
baseClassName: "af-apollo-accordion",
|
|
9
|
-
modifiers: [variant, isPlain && "plain"],
|
|
10
|
-
className,
|
|
11
|
-
}), summary: _jsxs(_Fragment, { children: [icon ? (_jsx(IconComponent, { role: "presentation", src: icon, variant: "primary", size: "S", className: "af-accordion__icon" })) : null, _jsx("p", { className: "af-accordion__title", children: title }), subtitle ? _jsx("p", { className: "af-accordion__subtitle", children: subtitle }) : null, tagLabel ? (_jsx(TagComponent, { variant: "warning", ...tagProps, className: getClassName({
|
|
12
|
-
baseClassName: "af-accordion__tag-container",
|
|
13
|
-
className: tagProps?.className,
|
|
14
|
-
}), children: tagLabel })) : null, dateLabel ? (_jsx("time", { ...dateProps, className: getClassName({
|
|
15
|
-
baseClassName: "af-accordion__date",
|
|
16
|
-
className: dateProps?.className,
|
|
17
|
-
}), children: dateLabel })) : null, info1 ? _jsx("p", { className: "af-accordion__info1", children: info1 }) : null, info2 ? _jsx("p", { className: "af-accordion__info2", children: info2 }) : null] }), ...accordionCoreProps, children: children }));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type AccordionProps } from "./AccordionCommon";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Accordion/AccordionLF.css";
|
|
3
|
-
export declare const Accordion: (props: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export { type AccordionVariants, accordionVariants } from "./AccordionCommon";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { AccordionCore } from "../AccordionCore/AccordionCoreLF";
|
|
3
|
-
import { Tag } from "../Tag/TagLF";
|
|
4
|
-
import { AccordionCommon } from "./AccordionCommon";
|
|
5
|
-
import { Icon } from "../Icon/IconCommon";
|
|
6
|
-
import "@axa-fr/design-system-apollo-css/dist/Accordion/AccordionLF.css";
|
|
7
|
-
export const Accordion = (props) => (_jsx(AccordionCommon, { ...props, AccordionCoreComponent: AccordionCore, TagComponent: Tag, IconComponent: Icon }));
|
|
8
|
-
export { accordionVariants } from "./AccordionCommon";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/AccordionCore/AccordionCoreApollo.css";
|
|
3
|
-
import { AccordionCoreCommon, } from "./AccordionCoreCommon";
|
|
4
|
-
import { Icon } from "../Icon/IconApollo";
|
|
5
|
-
export const AccordionCore = (props) => (_jsx(AccordionCoreCommon, { IconComponent: Icon, ...props }));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentType, type MouseEventHandler, type ReactNode } from "react";
|
|
2
|
-
import type { IconProps } from "../Icon/IconCommon";
|
|
3
|
-
type SummaryOnClick = MouseEventHandler<HTMLElement>;
|
|
4
|
-
export type AccordionCoreProps = {
|
|
5
|
-
summary: ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated use `open` instead
|
|
8
|
-
*/
|
|
9
|
-
isOpen?: boolean;
|
|
10
|
-
summaryProps?: Omit<ComponentProps<"summary">, "onClick">;
|
|
11
|
-
onClick?: SummaryOnClick;
|
|
12
|
-
} & ComponentProps<"details">;
|
|
13
|
-
export type AccordionPropsCommonProps = AccordionCoreProps & {
|
|
14
|
-
IconComponent: ComponentType<IconProps>;
|
|
15
|
-
};
|
|
16
|
-
export declare const AccordionCoreCommon: ({ summary, children, className, summaryProps, isOpen, IconComponent, onClick, ...detailsProps }: AccordionPropsCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, } from "react";
|
|
3
|
-
import keyboardDown from "@material-symbols/svg-400/rounded/keyboard_arrow_down-fill.svg";
|
|
4
|
-
import { getClassName } from "../utilities/getClassName";
|
|
5
|
-
export const AccordionCoreCommon = ({ summary, children, className, summaryProps, isOpen = false, IconComponent, onClick, ...detailsProps }) => {
|
|
6
|
-
const handleSummaryClick = useCallback((event) => {
|
|
7
|
-
if (onClick) {
|
|
8
|
-
event.preventDefault();
|
|
9
|
-
onClick(event);
|
|
10
|
-
}
|
|
11
|
-
}, [onClick]);
|
|
12
|
-
return (_jsxs("details", { className: getClassName({
|
|
13
|
-
baseClassName: "af-apollo-accordion",
|
|
14
|
-
className,
|
|
15
|
-
}), open: isOpen, ...detailsProps, children: [_jsxs("summary", { onClick: handleSummaryClick, tabIndex: 0, ...summaryProps, className: getClassName({
|
|
16
|
-
baseClassName: "af-apollo-accordion__summary",
|
|
17
|
-
className: summaryProps?.className,
|
|
18
|
-
}), children: [summary, _jsx("div", { className: getClassName({
|
|
19
|
-
baseClassName: "af-accordion__arrow",
|
|
20
|
-
className: "af-click-icon",
|
|
21
|
-
}), children: _jsx(IconComponent, { src: keyboardDown, role: "presentation" }) })] }), children] }));
|
|
22
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/AccordionCore/AccordionCoreLF.css";
|
|
3
|
-
import { AccordionCoreCommon, } from "./AccordionCoreCommon";
|
|
4
|
-
import { Icon } from "../Icon/IconLF";
|
|
5
|
-
export const AccordionCore = (props) => (_jsx(AccordionCoreCommon, { IconComponent: Icon, ...props }));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from "react";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/BasePicture/BasePictureAll.css";
|
|
3
|
-
type BasePictureProps = ComponentProps<"img">;
|
|
4
|
-
export declare const BasePicture: ({ className, src, ...props }: BasePictureProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import logo from "@axa-fr/design-system-apollo-css/logo-axa.svg";
|
|
3
|
-
import "@axa-fr/design-system-apollo-css/dist/BasePicture/BasePictureAll.css";
|
|
4
|
-
export const BasePicture = ({ className, src, ...props }) => (_jsx("img", { className: ["af-basepicture", className].filter(Boolean).join(" "), alt: "", src: src || logo, ...props }));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Button/ButtonApollo.css";
|
|
2
|
-
import { type ButtonProps } from "./ButtonCommon";
|
|
3
|
-
export { buttonVariants, type ButtonVariants, type ButtonProps, } from "./ButtonCommon";
|
|
4
|
-
export declare const Button: (props: ButtonProps) => 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/Button/ButtonApollo.css";
|
|
3
|
-
import { Spinner } from "../Spinner/SpinnerApollo";
|
|
4
|
-
import { ButtonCommon } from "./ButtonCommon";
|
|
5
|
-
export { buttonVariants, } from "./ButtonCommon";
|
|
6
|
-
export const Button = (props) => (_jsx(ButtonCommon, { ...props, SpinnerComponent: Spinner }));
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ComponentPropsWithoutRef, ComponentType, PropsWithChildren, ReactNode } from "react";
|
|
2
|
-
import { Spinner } from "../Spinner/SpinnerCommon";
|
|
3
|
-
export declare const buttonVariants: {
|
|
4
|
-
readonly primary: "primary";
|
|
5
|
-
readonly "primary-business": "primary-business";
|
|
6
|
-
readonly "primary-inverse": "primary-inverse";
|
|
7
|
-
readonly secondary: "secondary";
|
|
8
|
-
readonly "secondary-inverse": "secondary-inverse";
|
|
9
|
-
readonly tertiary: "tertiary";
|
|
10
|
-
readonly ghost: "ghost";
|
|
11
|
-
};
|
|
12
|
-
export type ButtonVariants = keyof typeof buttonVariants;
|
|
13
|
-
export type ButtonProps = {
|
|
14
|
-
variant?: ButtonVariants;
|
|
15
|
-
iconLeft?: ReactNode;
|
|
16
|
-
iconRight?: ReactNode;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
} & ComponentPropsWithoutRef<"button">;
|
|
19
|
-
type ButtonCommonProps = ButtonProps & {
|
|
20
|
-
SpinnerComponent: ComponentType<ComponentProps<typeof Spinner>>;
|
|
21
|
-
};
|
|
22
|
-
export declare const ButtonCommon: ({ children, className, variant, iconLeft, iconRight, disabled, loading, SpinnerComponent, ...args }: PropsWithChildren<ButtonCommonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const buttonVariants = {
|
|
3
|
-
primary: "primary",
|
|
4
|
-
"primary-business": "primary-business",
|
|
5
|
-
"primary-inverse": "primary-inverse",
|
|
6
|
-
secondary: "secondary",
|
|
7
|
-
"secondary-inverse": "secondary-inverse",
|
|
8
|
-
tertiary: "tertiary",
|
|
9
|
-
ghost: "ghost",
|
|
10
|
-
};
|
|
11
|
-
export const ButtonCommon = ({ children, className, variant = "primary", iconLeft, iconRight, disabled, loading, SpinnerComponent, ...args }) => (_jsxs("button", { className: ["af-btn-client", `af-btn-client--${variant}`, className]
|
|
12
|
-
.filter(Boolean)
|
|
13
|
-
.join(" "), disabled: disabled || loading, type: "button", ...args, children: [iconLeft, children, iconRight, disabled || loading ? _jsx(SpinnerComponent, { size: 24, variant: "gray" }) : null] }));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/Button/ButtonLF.css";
|
|
2
|
-
import { type ButtonProps } from "./ButtonCommon";
|
|
3
|
-
export { buttonVariants, type ButtonVariants, type ButtonProps, } from "./ButtonCommon";
|
|
4
|
-
export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Button/ButtonLF.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/Button/ButtonLF.css";
|
|
3
|
-
import { Spinner } from "../Spinner/SpinnerLF";
|
|
4
|
-
import { ButtonCommon } from "./ButtonCommon";
|
|
5
|
-
export { buttonVariants, } from "./ButtonCommon";
|
|
6
|
-
export const Button = (props) => (_jsx(ButtonCommon, { ...props, SpinnerComponent: Spinner }));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export declare const cardMessageVariants: {
|
|
3
|
-
readonly info: "info";
|
|
4
|
-
readonly warning: "warning";
|
|
5
|
-
readonly error: "error";
|
|
6
|
-
readonly neutral: "neutral";
|
|
7
|
-
};
|
|
8
|
-
export type CardMessageVariants = keyof typeof cardMessageVariants;
|
|
9
|
-
export type CardMessageProps = ComponentPropsWithoutRef<"div"> & {
|
|
10
|
-
variant?: CardMessageVariants;
|
|
11
|
-
title?: string;
|
|
12
|
-
text: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const CardMessage: ({ variant, title, text, className, ...props }: CardMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +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 cardMessageVariants = {
|
|
5
|
-
info: "info",
|
|
6
|
-
warning: "warning",
|
|
7
|
-
error: "error",
|
|
8
|
-
neutral: "neutral",
|
|
9
|
-
};
|
|
10
|
-
export const CardMessage = ({ variant = "info", title, text, className, ...props }) => {
|
|
11
|
-
const componentClassName = useMemo(() => {
|
|
12
|
-
return getComponentClassName("af-card-message", className, variant);
|
|
13
|
-
}, [className, variant]);
|
|
14
|
-
return (_jsxs("div", { ...props, className: componentClassName, children: [title ? _jsx("span", { className: "af-card-message--title", children: title }) : null, _jsx("span", { className: "af-card-message--text", children: text })] }));
|
|
15
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
2
|
-
import { IconVariants } from "../Icon/IconCommon";
|
|
3
|
-
export type ClickIconProps = ComponentPropsWithRef<"button"> & {
|
|
4
|
-
src: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
iconVariant?: IconVariants;
|
|
7
|
-
iconClassName?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const ClickIcon: ({ src, className, iconVariant, iconClassName, ...props }: ClickIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Icon } from "../Icon/IconCommon";
|
|
3
|
-
export const ClickIcon = ({ src, className, iconVariant = "primary", iconClassName, ...props }) => (_jsx("button", { type: "button", className: ["af-click-icon", className].filter(Boolean).join(" "), disabled: iconVariant === "disabled", ...props, children: _jsx(Icon, { src: src, variant: iconVariant, className: iconClassName }) }));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ContentItemDuoAction/ContentItemDuoActionAll.css";
|
|
2
|
-
import { type ContentItemDuoActionProps } from "./ContentItemDuoActionCommon";
|
|
3
|
-
export { type ContentItemDuoActionState } from "./ContentItemDuoActionCommon";
|
|
4
|
-
export declare const ContentItemDuoAction: (props: ContentItemDuoActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ContentItemDuoAction/ContentItemDuoActionAll.css";
|
|
3
|
-
import { ContentItemDuoActionCommon, } from "./ContentItemDuoActionCommon";
|
|
4
|
-
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoApollo";
|
|
5
|
-
import { Toggle } from "../Toggle/ToggleApollo";
|
|
6
|
-
export const ContentItemDuoAction = (props) => (_jsx(ContentItemDuoActionCommon, { ...props, ContentItemMonoComponent: ContentItemMono, ToggleComponent: Toggle }));
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type ComponentType, type ReactElement } from "react";
|
|
2
|
-
import type { ToggleProps } from "../Toggle/ToggleCommon";
|
|
3
|
-
import type { ContentItemProps } from "../ContentItemMono/ContentItemMonoCommon";
|
|
4
|
-
import type { ButtonProps } from "../Button/ButtonCommon";
|
|
5
|
-
export declare const ContentItemDuoActionState: {
|
|
6
|
-
readonly edit: "edit";
|
|
7
|
-
readonly toggle: "toggle";
|
|
8
|
-
};
|
|
9
|
-
export type ContentItemDuoActionToggleProps = {
|
|
10
|
-
className?: string;
|
|
11
|
-
state: "toggle";
|
|
12
|
-
ContentItemMonoComponent: ComponentType<ContentItemProps>;
|
|
13
|
-
contentItemProps: ContentItemProps;
|
|
14
|
-
ToggleComponent: ComponentType<ToggleProps>;
|
|
15
|
-
toggleProps: ToggleProps;
|
|
16
|
-
};
|
|
17
|
-
export type ContentItemDuoActionButtonsProps = {
|
|
18
|
-
className?: string;
|
|
19
|
-
state: "edit";
|
|
20
|
-
ContentItemMonoComponent: ComponentType<ContentItemProps>;
|
|
21
|
-
contentItemProps: ContentItemProps;
|
|
22
|
-
buttons: ReactElement<ComponentType<ButtonProps>>;
|
|
23
|
-
};
|
|
24
|
-
export type ContentItemDuoActionProps = Omit<ContentItemDuoActionToggleProps, "ToggleComponent" | "ContentItemMonoComponent"> | Omit<ContentItemDuoActionButtonsProps, "ContentItemMonoComponent">;
|
|
25
|
-
export type ContentItemDuoActionCommonProps = ContentItemDuoActionToggleProps | ContentItemDuoActionButtonsProps;
|
|
26
|
-
export declare const ContentItemDuoActionCommon: ({ className, state, ContentItemMonoComponent, contentItemProps, ToggleComponent, ...props }: ContentItemDuoActionCommonProps & {
|
|
27
|
-
ToggleComponent?: ComponentType<ToggleProps>;
|
|
28
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "../utilities/getComponentClassName";
|
|
3
|
-
export const ContentItemDuoActionState = {
|
|
4
|
-
edit: "edit",
|
|
5
|
-
toggle: "toggle",
|
|
6
|
-
};
|
|
7
|
-
export const ContentItemDuoActionCommon = ({ className, state, ContentItemMonoComponent, contentItemProps, ToggleComponent, ...props }) => {
|
|
8
|
-
const componentClassName = getComponentClassName("af-content-item-duo-action", className);
|
|
9
|
-
return (_jsxs("div", { className: componentClassName, children: [_jsx(ContentItemMonoComponent, { ...contentItemProps }), _jsx("div", { className: "af-action-container", children: state === "edit" ? (props.buttons) : (_jsx(ToggleComponent, { ...props.toggleProps })) })] }));
|
|
10
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ContentItemDuoAction/ContentItemDuoActionAll.css";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/ContentItemMono/ContentItemMonoLF.css";
|
|
3
|
-
import { type ContentItemDuoActionProps } from "./ContentItemDuoActionCommon";
|
|
4
|
-
export { type ContentItemDuoActionState } from "./ContentItemDuoActionCommon";
|
|
5
|
-
export declare const ContentItemDuoAction: (props: ContentItemDuoActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/List/ContentItemDuoAction/ContentItemDuoActionAll.css";
|
|
3
|
-
import "@axa-fr/design-system-apollo-css/dist/ContentItemMono/ContentItemMonoLF.css";
|
|
4
|
-
import { ContentItemDuoActionCommon, } from "./ContentItemDuoActionCommon";
|
|
5
|
-
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoLF";
|
|
6
|
-
import { Toggle } from "../Toggle/ToggleLF";
|
|
7
|
-
export const ContentItemDuoAction = (props) => (_jsx(ContentItemDuoActionCommon, { ...props, ContentItemMonoComponent: ContentItemMono, ToggleComponent: Toggle }));
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/ContentItemMono/ContentItemMonoApollo.css";
|
|
3
|
-
import { Icon } from "../Icon/IconApollo";
|
|
4
|
-
import { ContentItemMonoCommon, } from "./ContentItemMonoCommon";
|
|
5
|
-
export const ContentItemMono = (props) => (_jsx(ContentItemMonoCommon, { ...props, IconComponent: Icon }));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ComponentType } from "react";
|
|
2
|
-
import { Icon, IconProps } from "../Icon/IconCommon";
|
|
3
|
-
import { type ContentItemCoreProps } from "./ContentItemMonoCore";
|
|
4
|
-
export type ContentMonoItemSize = "medium" | "large";
|
|
5
|
-
export type ContentMonoItemPictureProps = {
|
|
6
|
-
type: "picture";
|
|
7
|
-
size?: ContentMonoItemSize;
|
|
8
|
-
picture: string;
|
|
9
|
-
title: string;
|
|
10
|
-
subtitle: string;
|
|
11
|
-
};
|
|
12
|
-
export type ContentMonoItemIconProps = {
|
|
13
|
-
type: "icon";
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use `iconProps` instead.
|
|
16
|
-
*/
|
|
17
|
-
icon?: string;
|
|
18
|
-
iconProps?: IconProps;
|
|
19
|
-
title: string;
|
|
20
|
-
subtitle1?: string;
|
|
21
|
-
subtitle2?: string;
|
|
22
|
-
};
|
|
23
|
-
export type ContentMonoItemStickProps = {
|
|
24
|
-
type: "stick";
|
|
25
|
-
title: string;
|
|
26
|
-
subtitle?: string;
|
|
27
|
-
};
|
|
28
|
-
export type ContentItemProps = ContentMonoItemPictureProps | ContentMonoItemIconProps | ContentMonoItemStickProps;
|
|
29
|
-
export type ContentItemCommonProps = ContentItemProps & {
|
|
30
|
-
IconComponent: ComponentType<ComponentProps<typeof Icon>>;
|
|
31
|
-
};
|
|
32
|
-
export declare const getContentItemCoreProps: ({ IconComponent, type, ...props }: ContentItemCommonProps) => ContentItemCoreProps;
|
|
33
|
-
export declare const ContentItemMonoCommon: (props: ContentItemCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { BasePicture } from "../BasePicture/BasePicture";
|
|
3
|
-
import { ContentItemMonoCore, } from "./ContentItemMonoCore";
|
|
4
|
-
export const getContentItemCoreProps = ({ IconComponent, type, ...props }) => {
|
|
5
|
-
if (type === "icon") {
|
|
6
|
-
const { icon, iconProps, title, subtitle1, subtitle2 } = props;
|
|
7
|
-
return {
|
|
8
|
-
title,
|
|
9
|
-
primarySubtitle: subtitle1,
|
|
10
|
-
subtitle: subtitle2,
|
|
11
|
-
leftComponent: (iconProps && _jsx(IconComponent, { "data-testid": "icon", ...iconProps })) ||
|
|
12
|
-
(icon && _jsx(IconComponent, { "data-testid": "icon", src: icon })),
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
if (type === "picture") {
|
|
16
|
-
return {
|
|
17
|
-
...props,
|
|
18
|
-
leftComponent: (_jsx(BasePicture, { src: props.picture, alt: props.title })),
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
...props,
|
|
23
|
-
leftComponent: _jsx("div", { className: "stick" }),
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export const ContentItemMonoCommon = (props) => {
|
|
27
|
-
return _jsx(ContentItemMonoCore, { ...getContentItemCoreProps(props) });
|
|
28
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type ContentMonoItemSize = "medium" | "large";
|
|
2
|
-
export type ContentItemCoreProps = {
|
|
3
|
-
size?: ContentMonoItemSize;
|
|
4
|
-
title?: string;
|
|
5
|
-
primarySubtitle?: string;
|
|
6
|
-
subtitle?: string;
|
|
7
|
-
leftComponent?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare const ContentItemMonoCore: ({ size, leftComponent, title, primarySubtitle, subtitle, }: ContentItemCoreProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const ContentItemMonoCore = ({ size = "medium", leftComponent, title, primarySubtitle, subtitle, }) => {
|
|
3
|
-
return (_jsxs("div", { "data-testid": "container", className: `af-content-item-mono ${size}`, children: [leftComponent, _jsxs("div", { className: "text-content", children: [_jsx("span", { className: "title", children: title }), primarySubtitle ? (_jsx("span", { className: "subtitle-primary", children: primarySubtitle })) : null, subtitle ? _jsx("span", { className: "subtitle", children: subtitle }) : null] })] }));
|
|
4
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import "@axa-fr/design-system-apollo-css/dist/ContentItemMono/ContentItemMonoLF.css";
|
|
3
|
-
import { Icon } from "../Icon/IconLF";
|
|
4
|
-
import { ContentItemMonoCommon, } from "./ContentItemMonoCommon";
|
|
5
|
-
export const ContentItemMono = (props) => (_jsx(ContentItemMonoCommon, { ...props, IconComponent: Icon }));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { DataAgentCommon } from "./DataAgentCommon";
|
|
3
|
-
import { ClickItem } from "../List/ClickItem/ClickItemApollo";
|
|
4
|
-
import { ContentItemMono } from "../ContentItemMono/ContentItemMonoApollo";
|
|
5
|
-
import { Divider } from "../Divider/DividerApollo";
|
|
6
|
-
import "@axa-fr/design-system-apollo-css/dist/DataAgent/DataAgentApollo.css";
|
|
7
|
-
export const DataAgent = (props) => (_jsx(DataAgentCommon, { ...props, DividerComponent: Divider, ClickItemComponent: ClickItem, ContentItemMonoComponent: ContentItemMono }));
|