@axa-fr/canopee-react 1.3.1-alpha.3 → 1.4.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +23 -14
- package/dist/client.js +21 -12
- package/dist/distributeur/Accordion/Accordion.d.ts +2 -2
- package/dist/distributeur/Accordion/Accordion.js +1 -1
- package/dist/distributeur/Accordion/Header.js +1 -0
- package/dist/distributeur/Button/Button.d.ts +1 -1
- package/dist/distributeur/CardData/CardData.d.ts +1 -1
- package/dist/distributeur/CardData/CardData.js +1 -0
- package/dist/distributeur/CardData/CardDataHeader.d.ts +1 -1
- package/dist/distributeur/CardData/CardDataHeader.js +2 -1
- package/dist/distributeur/Divider/Divider.d.ts +1 -1
- package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +2 -2
- package/dist/distributeur/Form/Checkbox/Checkbox.js +1 -1
- package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +1 -1
- package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +1 -1
- package/dist/distributeur/Form/Checkbox/CheckboxItem.js +1 -1
- package/dist/distributeur/Form/Date/Date.d.ts +1 -1
- package/dist/distributeur/Form/Date/DateInput.d.ts +2 -2
- package/dist/distributeur/Form/Experimental/index.d.ts +1 -0
- package/dist/distributeur/Form/Experimental/index.js +1 -1
- package/dist/distributeur/Form/File/File.d.ts +2 -2
- package/dist/distributeur/Form/File/File.js +2 -2
- package/dist/distributeur/Form/File/FileErrors.d.ts +1 -1
- package/dist/distributeur/Form/File/FileErrors.js +1 -0
- package/dist/distributeur/Form/File/FileInput.d.ts +1 -1
- package/dist/distributeur/Form/File/FileLine.d.ts +1 -1
- package/dist/distributeur/Form/File/FileTable.d.ts +3 -3
- package/dist/distributeur/Form/File/FileTable.js +2 -2
- package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.js +2 -1
- package/dist/distributeur/Form/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/MultiSelect.js +2 -2
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.js +1 -0
- package/dist/distributeur/Form/MultiSelect/ValueContainer.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/ValueContainer.js +1 -1
- package/dist/distributeur/Form/MultiSelect/useMultiSelectStyle.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/useMultiSelectStyle.js +1 -0
- package/dist/distributeur/Form/NestedQuestion/NestedQuestion.d.ts +1 -1
- package/dist/distributeur/Form/Number/Number.d.ts +1 -1
- package/dist/distributeur/Form/Number/NumberInput.d.ts +1 -1
- package/dist/distributeur/Form/Number/NumberInput.js +1 -0
- package/dist/distributeur/Form/Pass/Pass.d.ts +1 -1
- package/dist/distributeur/Form/Pass/PassInput.d.ts +2 -2
- package/dist/distributeur/Form/Radio/Radio.js +1 -1
- package/dist/distributeur/Form/Radio/RadioCardGroup.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioCardGroup.js +1 -1
- package/dist/distributeur/Form/Radio/RadioInput.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioItem.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioItem.js +1 -1
- package/dist/distributeur/Form/Select/Select.d.ts +15 -15
- package/dist/distributeur/Form/Select/SelectBase.d.ts +1 -1
- package/dist/distributeur/Form/Select/SelectDefault.d.ts +1 -1
- package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +1 -1
- package/dist/distributeur/Form/Select/SelectInput.d.ts +15 -15
- package/dist/distributeur/Form/Slider/SliderInput.d.ts +1 -1
- package/dist/distributeur/Form/Slider/SliderInput.js +1 -0
- package/dist/distributeur/Form/Text/Text.d.ts +1 -1
- package/dist/distributeur/Form/Text/TextInput.d.ts +2 -2
- package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +1 -1
- package/dist/distributeur/Form/core/Deprecated/Field.js +1 -0
- package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +1 -1
- package/dist/distributeur/Form/core/Field.js +1 -1
- package/dist/distributeur/Form/core/FormClassManager.d.ts +1 -1
- package/dist/distributeur/Form/core/HelpMessage.d.ts +1 -1
- package/dist/distributeur/Form/core/index.d.ts +1 -1
- package/dist/distributeur/HelpButton/index.d.ts +1 -1
- package/dist/distributeur/Layout/Footer/Footer.js +2 -2
- package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.d.ts +1 -1
- package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.js +3 -2
- package/dist/distributeur/Layout/Header/Header.js +1 -0
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +2 -2
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.js +1 -1
- package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -1
- package/dist/distributeur/Layout/Header/Name/Name.js +1 -0
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemLink.d.ts +1 -1
- package/dist/distributeur/Layout/Header/User/User.d.ts +1 -1
- package/dist/distributeur/Layout/MainContainer/MainContainer.d.ts +1 -1
- package/dist/distributeur/Link/CustomLink.d.ts +1 -1
- package/dist/distributeur/Link/LinkAnchor.d.ts +1 -1
- package/dist/distributeur/Link/LinkAnchor.js +2 -1
- package/dist/distributeur/Loader/Loader.js +1 -0
- package/dist/distributeur/Messages/Message.d.ts +1 -1
- package/dist/distributeur/ModalAgent/BooleanModal.d.ts +1 -1
- package/dist/distributeur/ModalAgent/BooleanModal.js +1 -1
- package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -1
- package/dist/distributeur/Popover/AnimatedPopover.js +1 -1
- package/dist/distributeur/Popover/Popover.d.ts +2 -2
- package/dist/distributeur/Popover/Popover.js +1 -0
- package/dist/distributeur/Popover/Popover.types.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverBase.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverBase.js +1 -0
- package/dist/distributeur/Popover/PopoverClick.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverOver.d.ts +1 -1
- package/dist/distributeur/Popover/index.js +2 -0
- package/dist/distributeur/Restitution/ArticleRestitution.d.ts +1 -1
- package/dist/distributeur/Restitution/HeaderRestitution.js +1 -0
- package/dist/distributeur/Restitution/Restitution.d.ts +1 -1
- package/dist/distributeur/Restitution/RestitutionList.d.ts +1 -1
- package/dist/distributeur/Restitution/SectionRestitution.d.ts +1 -1
- package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +1 -1
- package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +1 -1
- package/dist/distributeur/Steps/Step.d.ts +1 -1
- package/dist/distributeur/Steps/StepCurrent.d.ts +1 -1
- package/dist/distributeur/Steps/StepDisabled.d.ts +1 -1
- package/dist/distributeur/Steps/StepLink.d.ts +1 -1
- package/dist/distributeur/Steps/StepNoLink.d.ts +1 -1
- package/dist/distributeur/Steps/Steps.d.ts +1 -1
- package/dist/distributeur/Steps/VerticalStep.d.ts +1 -1
- package/dist/distributeur/Steps/types.d.ts +1 -1
- package/dist/distributeur/Summary/index.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/LiPoint.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/Pager.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/PaginationButton.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/Paging.d.ts +1 -1
- package/dist/distributeur/Table/TBody.d.ts +1 -1
- package/dist/distributeur/Table/THead.d.ts +1 -1
- package/dist/distributeur/Table/Table.d.ts +1 -1
- package/dist/distributeur/Table/Td.d.ts +1 -1
- package/dist/distributeur/Table/Th.d.ts +1 -1
- package/dist/distributeur/Table/Tr.d.ts +1 -1
- package/dist/distributeur/Table/Tr.js +1 -0
- package/dist/distributeur/Tabs/Tabs.d.ts +2 -2
- package/dist/distributeur/Tabs/Tabs.js +1 -0
- package/dist/distributeur/Tabs/components/Pane.js +1 -0
- package/dist/distributeur/Tabs/components/Tab.d.ts +1 -1
- package/dist/distributeur/Tabs/components/TabsCore.d.ts +1 -1
- package/dist/distributeur/Tabs/components/TabsCore.js +1 -1
- package/dist/distributeur/Tabs/components/Title.js +1 -0
- package/dist/distributeur/Tag/Tag.d.ts +1 -1
- package/dist/distributeur/Tag/Tag.js +1 -1
- package/dist/distributeur/Title/Title.d.ts +1 -1
- package/dist/distributeur.js +1 -0
- package/dist/prospect-client/Button/ButtonCommon.js +1 -0
- package/dist/prospect-client/Card/CardCommon.js +1 -0
- package/dist/prospect-client/CardMessage/CardMessageCommon.d.ts +1 -1
- package/dist/prospect-client/ClickIcon/ClickIconCommon.d.ts +1 -1
- package/dist/prospect-client/ClickIcon/ClickIconCommon.js +1 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionApollo.js +1 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.js +1 -0
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionLF.js +1 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +1 -1
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.js +1 -0
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCore.d.ts +2 -3
- package/dist/prospect-client/DataAgent/DataAgentApollo.d.ts +1 -0
- package/dist/prospect-client/DataAgent/DataAgentApollo.js +1 -0
- package/dist/prospect-client/DataAgent/DataAgentCommon.d.ts +2 -2
- package/dist/prospect-client/DataAgent/DataAgentCommon.js +3 -2
- package/dist/prospect-client/DataAgent/DataAgentLF.d.ts +1 -0
- package/dist/prospect-client/DataAgent/DataAgentLF.js +1 -0
- package/dist/prospect-client/Fieldset/FieldsetCommon.js +2 -0
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +3 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +2 -2
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +3 -1
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +3 -3
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +2 -0
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +4 -2
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +2 -0
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +5 -3
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.js +1 -0
- package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +2 -0
- package/dist/prospect-client/Form/InputDate/InputDateCommon.js +4 -2
- package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.d.ts +3 -3
- package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.js +2 -1
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +3 -1
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +7 -2
- package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +4 -2
- package/dist/prospect-client/Form/InputText/InputTextCommon.js +5 -2
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.d.ts +3 -0
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +6 -0
- package/dist/prospect-client/Form/Radio/{CardRadio/CardRadioCommon.d.ts → CardRadioGroup/CardRadioGroupCommon.d.ts} +13 -6
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +18 -0
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.d.ts +3 -0
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +6 -0
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.d.ts +5 -1
- package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +12 -8
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +3 -1
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +4 -2
- package/dist/prospect-client/Heading/HeadingApollo.d.ts +1 -1
- package/dist/prospect-client/Heading/HeadingApollo.js +1 -1
- package/dist/prospect-client/Heading/HeadingCommon.js +1 -0
- package/dist/prospect-client/Heading/HeadingLF.d.ts +1 -1
- package/dist/prospect-client/Heading/HeadingLF.js +1 -1
- package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
- package/dist/prospect-client/Icon/IconCommon.js +1 -1
- package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +1 -1
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +21 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.js +9 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.d.ts +50 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.js +39 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +21 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.js +9 -0
- package/dist/prospect-client/Layout/Footer/FooterCommon.d.ts +2 -2
- package/dist/prospect-client/Layout/Footer/FooterCommon.js +1 -1
- package/dist/prospect-client/Layout/FormLayout/FormLayout.d.ts +3529 -0
- package/dist/prospect-client/Layout/FormLayout/FormLayout.js +79 -0
- package/dist/prospect-client/LevelSelector/LevelSelectorApollo.js +1 -0
- package/dist/prospect-client/LevelSelector/LevelSelectorCommon.d.ts +2 -2
- package/dist/prospect-client/LevelSelector/LevelSelectorCommon.js +2 -0
- package/dist/prospect-client/LevelSelector/LevelSelectorLF.js +1 -0
- package/dist/prospect-client/Link/LinkApollo.d.ts +1 -1
- package/dist/prospect-client/Link/LinkApollo.js +1 -1
- package/dist/prospect-client/Link/LinkCommon.d.ts +5 -5
- package/dist/prospect-client/Link/LinkCommon.js +7 -7
- package/dist/prospect-client/Link/LinkLF.d.ts +1 -1
- package/dist/prospect-client/Link/LinkLF.js +1 -1
- package/dist/prospect-client/List/ClickItem/ClickItemWrapper.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentCommon.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.d.ts +2 -2
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.js +1 -0
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.js +1 -0
- package/dist/prospect-client/List/List/ListApollo.js +1 -0
- package/dist/prospect-client/List/List/ListCommon.d.ts +1 -1
- package/dist/prospect-client/List/List/ListCommon.js +1 -0
- package/dist/prospect-client/List/List/ListLF.js +1 -0
- package/dist/prospect-client/Message/MessageCommon.js +1 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationApollo.js +1 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationCommon.js +2 -0
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationLF.js +1 -0
- package/dist/prospect-client/Pagination/PaginationApollo.js +1 -0
- package/dist/prospect-client/Pagination/PaginationCommon.d.ts +1 -1
- package/dist/prospect-client/Pagination/PaginationCommon.js +2 -2
- package/dist/prospect-client/Pagination/PaginationLF.js +1 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupApollo.d.ts +1 -1
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.js +1 -0
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupLF.d.ts +1 -1
- package/dist/prospect-client/SkeletonList/SkeletonListApollo.js +1 -0
- package/dist/prospect-client/SkeletonList/SkeletonListLF.js +1 -0
- package/dist/prospect-client/Spinner/SpinnerCommon.d.ts +1 -1
- package/dist/prospect-client/Stepper/StepperCommon.d.ts +1 -1
- package/dist/prospect-client/Stepper/StepperCommon.js +1 -0
- package/dist/prospect-client/Svg/Svg.js +1 -1
- package/dist/prospect-client/TabBar/TabBarCommon.d.ts +1 -1
- package/dist/prospect-client/TabBar/TabBarCommon.js +2 -1
- package/dist/prospect-client/Table/TBody.d.ts +6 -0
- package/dist/prospect-client/Table/TBody.js +10 -0
- package/dist/prospect-client/Table/THead.d.ts +6 -0
- package/dist/prospect-client/Table/THead.js +11 -0
- package/dist/prospect-client/Table/TableApollo.d.ts +2 -0
- package/dist/prospect-client/Table/TableApollo.js +2 -0
- package/dist/prospect-client/Table/TableCommon.d.ts +14 -0
- package/dist/prospect-client/Table/TableCommon.js +20 -0
- package/dist/prospect-client/Table/TableLF.d.ts +2 -0
- package/dist/prospect-client/Table/TableLF.js +2 -0
- package/dist/prospect-client/Table/Td.d.ts +17 -0
- package/dist/prospect-client/Table/Td.js +15 -0
- package/dist/prospect-client/Table/Th.d.ts +9 -0
- package/dist/prospect-client/Table/Th.js +14 -0
- package/dist/prospect-client/Table/Tr.d.ts +11 -0
- package/dist/prospect-client/Table/Tr.js +16 -0
- package/dist/prospect-client/TableMobileCard/DRow.d.ts +6 -0
- package/dist/prospect-client/TableMobileCard/DRow.js +11 -0
- package/dist/prospect-client/TableMobileCard/Dd.d.ts +3 -0
- package/dist/prospect-client/TableMobileCard/Dd.js +10 -0
- package/dist/prospect-client/TableMobileCard/Dt.d.ts +3 -0
- package/dist/prospect-client/TableMobileCard/Dt.js +10 -0
- package/dist/prospect-client/TableMobileCard/TableMobileCard.d.ts +12 -0
- package/dist/prospect-client/TableMobileCard/TableMobileCard.js +18 -0
- package/dist/prospect-client/TimelineVertical/TimelineVerticalCommon.d.ts +1 -1
- package/dist/prospect-client/TimelineVertical/types.d.ts +1 -1
- package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.d.ts +3 -0
- package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.js +6 -0
- package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.d.ts +12 -0
- package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.js +9 -0
- package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.d.ts +3 -0
- package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.js +6 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageApollo.d.ts +3 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageApollo.js +7 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageCommon.d.ts +15 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageCommon.js +10 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageLF.d.ts +3 -0
- package/dist/prospect-client/pages/ValidPage/ValidPageLF.js +7 -0
- package/dist/prospect-client/utilities/types/GridContainerProps.d.ts +10 -0
- package/dist/prospect-client/utilities/types/GridContainerProps.js +1 -0
- package/dist/prospect.d.ts +22 -13
- package/dist/prospect.js +20 -11
- package/package.json +2 -2
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +0 -3
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.js +0 -6
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +0 -16
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +0 -3
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.js +0 -6
package/dist/client.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/common/rebootLF.css";
|
|
2
|
-
import "@axa-fr/canopee-css/client/common/
|
|
2
|
+
import "@axa-fr/canopee-css/client/common/tokens.css";
|
|
3
3
|
import "@axa-fr/canopee-css/client/Grid/Grid.css";
|
|
4
4
|
import "@fontsource/source-sans-pro";
|
|
5
|
-
export { AccordionContextual, accordionContextualVariants, type AccordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
|
|
6
5
|
export { Accordion, accordionVariants, type AccordionVariants, } from "./prospect-client/Accordion/AccordionLF";
|
|
6
|
+
export { AccordionContextual, accordionContextualVariants, type AccordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
|
|
7
7
|
export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreLF";
|
|
8
8
|
export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
|
|
9
9
|
export { Button, buttonVariants, type ButtonVariants, } from "./prospect-client/Button/ButtonLF";
|
|
10
|
+
export { Card, type CardProps } from "./prospect-client/Card/CardLF";
|
|
10
11
|
export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./prospect-client/CardMessage/CardMessageLF";
|
|
11
12
|
export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconLF";
|
|
12
13
|
export { ContentItemDuoAction, type ContentItemDuoActionState, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionLF";
|
|
13
14
|
export { ContentItemMono } from "./prospect-client/ContentItemMono/ContentItemMonoLF";
|
|
14
|
-
export { DataAgent } from "./prospect-client/DataAgent/DataAgentLF";
|
|
15
|
+
export { DataAgent, type DataAgentProps, } from "./prospect-client/DataAgent/DataAgentLF";
|
|
15
16
|
export { Divider } from "./prospect-client/Divider/DividerLF";
|
|
17
|
+
export { Fieldset, type FieldsetProps, } from "./prospect-client/Fieldset/FieldsetLF";
|
|
16
18
|
export { CardCheckbox,
|
|
17
19
|
/** @deprecated Use `CardCheckbox` instead. */
|
|
18
20
|
CardCheckbox as CheckboxCard, } from "./prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF";
|
|
@@ -34,22 +36,30 @@ InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
|
|
|
34
36
|
export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
|
|
35
37
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
|
|
36
38
|
export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
|
|
37
|
-
export {
|
|
39
|
+
export {
|
|
40
|
+
/** @deprecated Use `CardRadioGroup` instead. */
|
|
41
|
+
CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
|
|
38
42
|
export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF";
|
|
39
43
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
|
|
40
44
|
export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
|
|
41
45
|
export { DebugGrid } from "./prospect-client/Grid/DebugGridLF";
|
|
42
|
-
export { Heading, type HeadingLevel, } from "./prospect-client/Heading/HeadingLF";
|
|
46
|
+
export { Heading, type HeadingLevel, type HeadingProps, } from "./prospect-client/Heading/HeadingLF";
|
|
43
47
|
export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./prospect-client/Icon/IconLF";
|
|
44
48
|
export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
|
|
45
49
|
export { Footer, type FooterProps, } from "./prospect-client/Layout/Footer/FooterLF";
|
|
46
|
-
export {
|
|
50
|
+
export { LevelSelector, type LevelSelectorProps, } from "./prospect-client/LevelSelector/LevelSelectorLF";
|
|
51
|
+
export { Link, linkVariants, type LinkVariants, type LinkProps, } from "./prospect-client/Link/LinkLF";
|
|
47
52
|
export { ClickItem, clickItemStates, clickItemVariants, type ClickItemStates, type ClickItemVariants, } from "./prospect-client/List/ClickItem/ClickItemLF";
|
|
48
53
|
export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoLF";
|
|
54
|
+
export { List, type ListProps } from "./prospect-client/List/List/ListLF";
|
|
49
55
|
export { Message, messageVariants, type MessageVariants, } from "./prospect-client/Message/MessageLF";
|
|
50
56
|
export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalLF";
|
|
57
|
+
export { ItemPagination, type ItemPaginationProps, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
|
|
58
|
+
export { Pagination } from "./prospect-client/Pagination/PaginationLF";
|
|
51
59
|
export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarLF";
|
|
52
60
|
export { ProgressBarGroup } from "./prospect-client/ProgressBarGroup/ProgressBarGroupLF";
|
|
61
|
+
export { Skeleton, type SkeletonProps, } from "./prospect-client/Skeleton/SkeletonLF";
|
|
62
|
+
export { SkeletonList, type SkeletonListProps, } from "./prospect-client/SkeletonList/SkeletonListLF";
|
|
53
63
|
export { Spinner, spinnerVariants, type SpinnerVariants, } from "./prospect-client/Spinner/SpinnerLF";
|
|
54
64
|
export { Stepper } from "./prospect-client/Stepper/StepperLF";
|
|
55
65
|
export { Svg } from "./prospect-client/Svg/Svg";
|
|
@@ -57,11 +67,10 @@ export { TabBar, tabBarDirection, type TabBarDirection, type TabBarProps, } from
|
|
|
57
67
|
export { Tag, tagVariants, type TagVariants, } from "./prospect-client/Tag/TagLF";
|
|
58
68
|
export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
|
|
59
69
|
export { Toggle } from "./prospect-client/Toggle/ToggleLF";
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export { Fieldset, type FieldsetProps, } from "./prospect-client/Fieldset/FieldsetLF";
|
|
70
|
+
export { Table, type TableProps, type HeadColorVariants, type BodyColorVariants, type RowSizeVariants, } from "./prospect-client/Table/TableLF";
|
|
71
|
+
export { TableMobileCard, type TableMobileCardProps, } from "./prospect-client/TableMobileCard/TableMobileCard";
|
|
72
|
+
export { ExitLayout, type ExitLayoutWithSubComponents, type ExitLayoutProps, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
|
|
73
|
+
export { FormLayout, type FormLayoutProps, } from "./prospect-client/Layout/FormLayout/FormLayout";
|
|
74
|
+
export { ValidPage, type ValidPageProps, } from "./prospect-client/pages/ValidPage/ValidPageLF";
|
|
75
|
+
export { ErrorPage, type ErrorPageProps, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
|
|
76
|
+
export type { GridContainerProps } from "./prospect-client/utilities/types/GridContainerProps";
|
package/dist/client.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/common/rebootLF.css";
|
|
2
|
-
import "@axa-fr/canopee-css/client/common/
|
|
2
|
+
import "@axa-fr/canopee-css/client/common/tokens.css";
|
|
3
3
|
import "@axa-fr/canopee-css/client/Grid/Grid.css";
|
|
4
4
|
import "@fontsource/source-sans-pro";
|
|
5
|
-
export { AccordionContextual, accordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
|
|
6
5
|
export { Accordion, accordionVariants, } from "./prospect-client/Accordion/AccordionLF";
|
|
6
|
+
export { AccordionContextual, accordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
|
|
7
7
|
export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreLF";
|
|
8
8
|
export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
|
|
9
9
|
export { Button, buttonVariants, } from "./prospect-client/Button/ButtonLF";
|
|
10
|
+
export { Card } from "./prospect-client/Card/CardLF";
|
|
10
11
|
export { CardMessage, cardMessageVariants, } from "./prospect-client/CardMessage/CardMessageLF";
|
|
11
12
|
export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconLF";
|
|
12
13
|
export { ContentItemDuoAction, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionLF";
|
|
13
14
|
export { ContentItemMono } from "./prospect-client/ContentItemMono/ContentItemMonoLF";
|
|
14
|
-
export { DataAgent } from "./prospect-client/DataAgent/DataAgentLF";
|
|
15
|
+
export { DataAgent, } from "./prospect-client/DataAgent/DataAgentLF";
|
|
15
16
|
export { Divider } from "./prospect-client/Divider/DividerLF";
|
|
17
|
+
export { Fieldset, } from "./prospect-client/Fieldset/FieldsetLF";
|
|
16
18
|
export { CardCheckbox,
|
|
17
19
|
/** @deprecated Use `CardCheckbox` instead. */
|
|
18
20
|
CardCheckbox as CheckboxCard, } from "./prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF";
|
|
@@ -26,6 +28,7 @@ export { ItemFile } from "./prospect-client/Form/FileUpload/ItemFile/ItemFileLF"
|
|
|
26
28
|
export {
|
|
27
29
|
/** @deprecated Use `InputDate` instead. */
|
|
28
30
|
InputDate as DateInput, InputDate, } from "./prospect-client/Form/InputDate/InputDateLF";
|
|
31
|
+
export {} from "./prospect-client/Form/InputPhone/InputPhone.types";
|
|
29
32
|
export { InputPhone } from "./prospect-client/Form/InputPhone/InputPhoneLF";
|
|
30
33
|
export { InputText,
|
|
31
34
|
/** @deprecated Use `InputText` instead. */
|
|
@@ -33,7 +36,9 @@ InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
|
|
|
33
36
|
export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
|
|
34
37
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
|
|
35
38
|
export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
|
|
36
|
-
export {
|
|
39
|
+
export {
|
|
40
|
+
/** @deprecated Use `CardRadioGroup` instead. */
|
|
41
|
+
CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
|
|
37
42
|
export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF";
|
|
38
43
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
|
|
39
44
|
export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
|
|
@@ -42,13 +47,19 @@ export { Heading, } from "./prospect-client/Heading/HeadingLF";
|
|
|
42
47
|
export { Icon, iconSizeVariants, iconVariants, } from "./prospect-client/Icon/IconLF";
|
|
43
48
|
export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
|
|
44
49
|
export { Footer, } from "./prospect-client/Layout/Footer/FooterLF";
|
|
50
|
+
export { LevelSelector, } from "./prospect-client/LevelSelector/LevelSelectorLF";
|
|
45
51
|
export { Link, linkVariants, } from "./prospect-client/Link/LinkLF";
|
|
46
52
|
export { ClickItem, clickItemStates, clickItemVariants, } from "./prospect-client/List/ClickItem/ClickItemLF";
|
|
47
53
|
export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoLF";
|
|
54
|
+
export { List } from "./prospect-client/List/List/ListLF";
|
|
48
55
|
export { Message, messageVariants, } from "./prospect-client/Message/MessageLF";
|
|
49
56
|
export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalLF";
|
|
57
|
+
export { ItemPagination, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
|
|
58
|
+
export { Pagination } from "./prospect-client/Pagination/PaginationLF";
|
|
50
59
|
export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarLF";
|
|
51
60
|
export { ProgressBarGroup } from "./prospect-client/ProgressBarGroup/ProgressBarGroupLF";
|
|
61
|
+
export { Skeleton, } from "./prospect-client/Skeleton/SkeletonLF";
|
|
62
|
+
export { SkeletonList, } from "./prospect-client/SkeletonList/SkeletonListLF";
|
|
52
63
|
export { Spinner, spinnerVariants, } from "./prospect-client/Spinner/SpinnerLF";
|
|
53
64
|
export { Stepper } from "./prospect-client/Stepper/StepperLF";
|
|
54
65
|
export { Svg } from "./prospect-client/Svg/Svg";
|
|
@@ -56,11 +67,9 @@ export { TabBar, tabBarDirection, } from "./prospect-client/TabBar/TabBarLF";
|
|
|
56
67
|
export { Tag, tagVariants, } from "./prospect-client/Tag/TagLF";
|
|
57
68
|
export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
|
|
58
69
|
export { Toggle } from "./prospect-client/Toggle/ToggleLF";
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export { SkeletonList, } from "./prospect-client/SkeletonList/SkeletonListLF";
|
|
66
|
-
export { Fieldset, } from "./prospect-client/Fieldset/FieldsetLF";
|
|
70
|
+
export { Table, } from "./prospect-client/Table/TableLF";
|
|
71
|
+
export { TableMobileCard, } from "./prospect-client/TableMobileCard/TableMobileCard";
|
|
72
|
+
export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
|
|
73
|
+
export { FormLayout, } from "./prospect-client/Layout/FormLayout/FormLayout";
|
|
74
|
+
export { ValidPage, } from "./prospect-client/pages/ValidPage/ValidPageLF";
|
|
75
|
+
export { ErrorPage, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Accordion/Accordion.css";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { CollapseProps } from "./CollapseCard";
|
|
4
|
-
import { AccordionVariant, TDefaultProps } from "./types";
|
|
3
|
+
import { type CollapseProps } from "./CollapseCard";
|
|
4
|
+
import type { AccordionVariant, TDefaultProps } from "./types";
|
|
5
5
|
export type EnhancedProps = Partial<TDefaultProps> & {
|
|
6
6
|
onlyOne?: boolean;
|
|
7
7
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
3
|
import "@axa-fr/canopee-css/distributeur/Accordion/Accordion.css";
|
|
4
|
-
import { useId } from "react";
|
|
4
|
+
import React, { useId } from "react";
|
|
5
5
|
import { getComponentClassNameWithUserClassname } from "../utilities/helpers/getComponentClassName";
|
|
6
6
|
import { CollapseCard } from "./CollapseCard";
|
|
7
7
|
const defaultClassName = "af-accordion";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import arrow from "@material-symbols/svg-400/rounded/keyboard_arrow_down.svg";
|
|
3
|
+
import React from "react";
|
|
3
4
|
import { Button } from "../Button/Button";
|
|
4
5
|
import { Svg } from "../Svg/Svg";
|
|
5
6
|
import { Title } from "../Title/Title";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Button/Button.css";
|
|
3
3
|
export type ButtonVariant = "primary" | "secondary" | "validated" | "danger" | "ghost" | "ghost-reverse";
|
|
4
4
|
export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from "react";
|
|
1
|
+
import React, { type PropsWithChildren } from "react";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/CardData/CardData.css";
|
|
3
3
|
export type CardDataVariant = "error" | "warning" | "information" | "success" | "default" | "dark" | "gray" | "purple";
|
|
4
4
|
type CardDataProps = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
+
import React, {} from "react";
|
|
3
4
|
import { CardDataHeader } from "./CardDataHeader";
|
|
4
5
|
import "@axa-fr/canopee-css/distributeur/CardData/CardData.css";
|
|
5
6
|
const defaultClassName = "af-card-data";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/CardData/CardData.css";
|
|
3
|
-
import { CardDataVariant } from "./CardData";
|
|
3
|
+
import type { CardDataVariant } from "./CardData";
|
|
4
4
|
type CardDataHeaderProps = {
|
|
5
5
|
title: React.ReactNode;
|
|
6
6
|
subTitle?: React.ReactNode;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import "@axa-fr/canopee-css/distributeur/CardData/CardData.css";
|
|
3
4
|
import classNames from "classnames";
|
|
4
|
-
import { Svg } from "../Svg";
|
|
5
5
|
import { Divider } from "../Divider/Divider";
|
|
6
|
+
import { Svg } from "../Svg";
|
|
6
7
|
import { Title } from "../Title/Title";
|
|
7
8
|
const defaultClassName = "af-card-data-header";
|
|
8
9
|
const iconDefaultClassName = `${defaultClassName}-icon`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import { Option } from "../core";
|
|
1
|
+
import React, { type ComponentProps, type ReactNode } from "react";
|
|
2
|
+
import type { Option } from "../core";
|
|
3
3
|
import { CheckboxItem } from "./CheckboxItem";
|
|
4
4
|
import { CheckboxModes } from "./CheckboxModes";
|
|
5
5
|
type OnChange = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
|
-
import { forwardRef } from "react";
|
|
3
|
+
import React, { forwardRef } from "react";
|
|
4
4
|
import { CheckboxItem } from "./CheckboxItem";
|
|
5
5
|
import { CheckboxModes } from "./CheckboxModes";
|
|
6
6
|
const defaultClassName = (mode) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Form/Checkbox/Checkbox.css";
|
|
3
3
|
declare const CheckboxItem: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & {
|
|
4
4
|
classModifier?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import check from "@material-symbols/svg-700/sharp/check.svg";
|
|
3
|
-
import { forwardRef, useId } from "react";
|
|
3
|
+
import { forwardRef, useId, } from "react";
|
|
4
4
|
import { getOptionClassName } from "../core";
|
|
5
5
|
import "@axa-fr/canopee-css/distributeur/Form/Checkbox/Checkbox.css";
|
|
6
6
|
import { Svg } from "../../Svg";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Form/Date/Date.css";
|
|
2
|
-
import { ComponentPropsWithRef } from "react";
|
|
2
|
+
import { type ComponentPropsWithRef } from "react";
|
|
3
3
|
type Props = Omit<ComponentPropsWithRef<"input">, "value"> & {
|
|
4
4
|
classModifier?: string;
|
|
5
5
|
defaultValue?: Date | string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import { ConsumerFieldProps } from "../core";
|
|
1
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
2
|
+
import { type ConsumerFieldProps } from "../core";
|
|
3
3
|
import { Date } from "./Date";
|
|
4
4
|
type Props = ConsumerFieldProps & ComponentProps<typeof Date> & {
|
|
5
5
|
helpMessage?: ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DropzoneInputProps, DropzoneOptions, FileRejection } from "react-dropzone";
|
|
2
|
-
import { FileActions } from "./constants";
|
|
1
|
+
import { type DropzoneInputProps, type DropzoneOptions, type FileRejection } from "react-dropzone";
|
|
2
|
+
import type { FileActions } from "./constants";
|
|
3
3
|
type Dropzone = DropzoneInputProps & DropzoneOptions;
|
|
4
4
|
type Props = Omit<Dropzone, "onDrop" | "onChange"> & {
|
|
5
5
|
classModifier?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useDropzone, } from "react-dropzone";
|
|
3
2
|
import { useId } from "react";
|
|
4
|
-
import {
|
|
3
|
+
import { useDropzone, } from "react-dropzone";
|
|
5
4
|
import { Button } from "../../Button/Button";
|
|
5
|
+
import { getComponentClassName } from "../../utilities";
|
|
6
6
|
const File = ({ className, classModifier, id, name, disabled, onChange, multiple = true, maxSize = 20000000, minSize = 0, accept, readOnly, placeholder = "Glissez/déposez vos fichiers", label = "Parcourir", icon = "open", ...otherProps }) => {
|
|
7
7
|
const valueId = useId();
|
|
8
8
|
const errorsId = useId();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import {} from "react-dropzone";
|
|
2
3
|
const FileErrors = ({ errors }) => (_jsxs("div", { className: "af-form__file-errors", children: [_jsx("span", { children: "Le chargement de certains fichiers a \u00E9chou\u00E9 : " }), _jsx("ul", { className: "af-form__file-errors-list", children: errors
|
|
3
4
|
? errors.map((err) => (_jsxs("li", { children: [err.file.name, " (", err.file.size, ")"] }, err.file.name)))
|
|
4
5
|
: null })] }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Form/File/File.css";
|
|
2
|
-
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
3
3
|
import { type ConsumerFieldProps } from "../core";
|
|
4
4
|
import { File } from "./File";
|
|
5
5
|
import { FileTable } from "./FileTable";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
import { FileRejection } from "react-dropzone";
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { FileRejection } from "react-dropzone";
|
|
3
|
+
import type { CustomFile } from "./File";
|
|
3
4
|
import { FileLine } from "./FileLine";
|
|
4
|
-
import { CustomFile } from "./File";
|
|
5
5
|
type FileLineProps = ComponentPropsWithoutRef<typeof FileLine>;
|
|
6
6
|
type Props = Pick<FileLineProps, "onClick"> & {
|
|
7
7
|
errors?: FileRejection[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FileLine } from "./FileLine";
|
|
3
|
-
import { FileErrors } from "./FileErrors";
|
|
4
2
|
import { getComponentClassName } from "../../utilities";
|
|
3
|
+
import { FileErrors } from "./FileErrors";
|
|
4
|
+
import { FileLine } from "./FileLine";
|
|
5
5
|
const FileTable = ({ errors, values, className, classModifier, disabled, onClick, }) => {
|
|
6
6
|
const componentClassName = getComponentClassName(className, classModifier, "custom-table-file af-file-table");
|
|
7
7
|
return (_jsxs("div", { className: componentClassName, children: [errors && errors.length > 0 ? _jsx(FileErrors, { errors: errors }) : null, values && values.length > 0 ? (_jsx("ul", { className: "af-form__file-list", children: values.map(({ file, id }) => (_jsx(FileLine, { disabled: disabled, file: file, onClick: onClick, id: id }, id))) })) : null] }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type FormatOptionLabelMeta } from "react-select";
|
|
2
|
-
import { Option } from "./MultiSelect";
|
|
2
|
+
import type { Option } from "./MultiSelect";
|
|
3
3
|
declare const formatOptionLabel: (data: Option, formatOptionLabelMeta: FormatOptionLabelMeta<Option>) => string | import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { formatOptionLabel };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import checkIcon from "@material-symbols/svg-700/outlined/check.svg";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import {} from "react-select";
|
|
4
5
|
import { Svg } from "../../Svg";
|
|
5
6
|
const formatOptionLabel = (data, formatOptionLabelMeta) => {
|
|
6
7
|
if (formatOptionLabelMeta.context === "value") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Form/MultiSelect/MultiSelect.css";
|
|
2
2
|
import { type GroupBase } from "react-select";
|
|
3
|
-
import { AsyncProps } from "react-select/async";
|
|
3
|
+
import { type AsyncProps } from "react-select/async";
|
|
4
4
|
type Option = {
|
|
5
5
|
value: string;
|
|
6
6
|
label: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Form/MultiSelect/MultiSelect.css";
|
|
3
3
|
import { useId } from "react";
|
|
4
|
-
import Select from "react-select";
|
|
5
|
-
import AsyncSelect from "react-select/async";
|
|
4
|
+
import Select, {} from "react-select";
|
|
5
|
+
import AsyncSelect, {} from "react-select/async";
|
|
6
6
|
import { formatOptionLabel } from "./FormatOptionLabel";
|
|
7
7
|
import { noOptionsMessage } from "./NoOptionsMessage";
|
|
8
8
|
import { useMultiSelectStyle } from "./useMultiSelectStyle";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Form/MultiSelect/MultiSelect.css";
|
|
2
2
|
import { type ComponentProps } from "react";
|
|
3
|
-
import { ConsumerFieldProps } from "../core";
|
|
3
|
+
import { type ConsumerFieldProps } from "../core";
|
|
4
4
|
import { MultiSelect } from "./MultiSelect";
|
|
5
5
|
type Props = ConsumerFieldProps & ComponentProps<typeof MultiSelect>;
|
|
6
6
|
declare const MultiSelectInput: ({ label, children, ...multiSelectProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Form/MultiSelect/MultiSelect.css";
|
|
3
|
+
import {} from "react";
|
|
3
4
|
import { Field } from "../core";
|
|
4
5
|
import { MultiSelect } from "./MultiSelect";
|
|
5
6
|
const MultiSelectInput = ({ label, children, ...multiSelectProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type GroupBase, type ValueContainerProps } from "react-select";
|
|
2
|
-
import { Option } from "./MultiSelect";
|
|
2
|
+
import type { Option } from "./MultiSelect";
|
|
3
3
|
declare const ValueContainer: ({ children, ...props }: ValueContainerProps<Option, boolean, GroupBase<Option>>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { ValueContainer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
2
|
+
import React, {} from "react";
|
|
3
3
|
import { components, } from "react-select";
|
|
4
4
|
const ValueContainer = ({ children, ...props }) => {
|
|
5
5
|
const { selectProps, getStyles, innerProps } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type GroupBase, type StylesConfig } from "react-select";
|
|
2
|
-
import { Option } from "./MultiSelect";
|
|
2
|
+
import type { Option } from "./MultiSelect";
|
|
3
3
|
export declare const useMultiSelectStyle: () => {
|
|
4
4
|
styles: StylesConfig<Option, boolean, GroupBase<Option>>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Form/NestedQuestion/NestedQuestion.css";
|
|
2
|
-
import { PropsWithChildren } from "react";
|
|
2
|
+
import type { PropsWithChildren } from "react";
|
|
3
3
|
export declare const NestedQuestion: ({ children, className, }: {
|
|
4
4
|
className?: string;
|
|
5
5
|
} & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import { ConsumerFieldProps } from "../core";
|
|
1
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
2
|
+
import { type ConsumerFieldProps } from "../core";
|
|
3
3
|
import { Pass } from "./Pass";
|
|
4
4
|
type PassProps = ComponentProps<typeof Pass>;
|
|
5
5
|
type Props = Omit<ConsumerFieldProps & PassProps & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElement as _createElement } from "react";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef, } from "react";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import { forwardRef, } from "react";
|
|
5
5
|
import { RadioCardGroup } from "./RadioCardGroup";
|
|
6
6
|
import { RadioItem } from "./RadioItem";
|
|
7
7
|
export var RadioModes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Form/Radio/RadioCardGroup.css";
|
|
2
|
-
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
3
3
|
import type { Option } from "../core";
|
|
4
4
|
type RadioOptions = Option & {
|
|
5
5
|
action?: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Form/Radio/RadioCardGroup.css";
|
|
3
|
-
import { useId } from "react";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import { useId } from "react";
|
|
5
5
|
import { Svg } from "../../Svg";
|
|
6
6
|
const DEFAULT_CLASSNAME = "af-card";
|
|
7
7
|
const DEFAULT_CONTAINER_CLASSNAME = "af-form__radio-card-group";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
import { type ConsumerFieldProps } from "../core";
|
|
3
3
|
import { Radio } from "./Radio";
|
|
4
4
|
type RadioInputProps = ConsumerFieldProps & ComponentPropsWithoutRef<typeof Radio>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/distributeur/Form/Radio/Radio.css";
|
|
2
|
-
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
2
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
3
3
|
type Props = Omit<ComponentPropsWithRef<"input">, "checked" | "type"> & {
|
|
4
4
|
classModifier?: string;
|
|
5
5
|
optionClassName?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/canopee-css/distributeur/Form/Radio/Radio.css";
|
|
3
|
-
import { forwardRef, useId } from "react";
|
|
3
|
+
import { forwardRef, useId, } from "react";
|
|
4
4
|
import { getOptionClassName } from "../core";
|
|
5
5
|
const RadioItem = forwardRef(({ value = "", id, isChecked, label, classModifier = "", className = "", disabled = false, ...otherProps }, inputRef) => {
|
|
6
6
|
const optionClassName = getOptionClassName(className, classModifier, "af-form__radio", disabled);
|