@axa-fr/canopee-react 2.0.1-alpha.6 → 2.0.1-alpha.61
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 +8 -0
- package/dist/client.js +8 -0
- package/dist/distributeur/Accordion/Accordion.d.ts +1 -1
- package/dist/distributeur/Accordion/Body.d.ts +1 -1
- package/dist/distributeur/Accordion/CollapseCard.d.ts +1 -1
- package/dist/distributeur/Accordion/Header.d.ts +1 -1
- package/dist/distributeur/Action/Action.d.ts +1 -1
- package/dist/distributeur/Button/Button.d.ts +1 -1
- package/dist/distributeur/ButtonMultiActions/ButtonMultiActions.d.ts +1 -1
- package/dist/distributeur/ButtonMultiActions/ButtonMultiActions.js +1 -1
- package/dist/distributeur/Card/BaseCard.d.ts +1 -1
- package/dist/distributeur/Card/Card.d.ts +1 -1
- package/dist/distributeur/CardButton/CardButton.d.ts +1 -1
- package/dist/distributeur/CardData/CardData.d.ts +1 -1
- package/dist/distributeur/CardData/CardDataHeader.d.ts +1 -1
- package/dist/distributeur/ClickableGhost.d.ts +1 -1
- package/dist/distributeur/Divider/Divider.d.ts +1 -1
- package/dist/distributeur/EditorialMessage/EditorialMessage.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitution.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionColumn.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionHeader.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionLabel.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionLabelValue.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionListDef.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionRow.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionSection.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionValue.d.ts +1 -1
- package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionValueList.d.ts +1 -1
- package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +2 -2
- package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +1 -1
- package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +1 -1
- package/dist/distributeur/Form/Choice/Choice.d.ts +1 -1
- package/dist/distributeur/Form/Choice/ChoiceInput.d.ts +1 -1
- package/dist/distributeur/Form/Date/Date.d.ts +1 -1
- package/dist/distributeur/Form/Date/DateInput.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/DateInput.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Input.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/InputContainer.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/InputUnit.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/ItemMessage.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Label.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Legend.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Radio/AddRadioCard.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Radio/RadioButton.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Radio/RadioCard.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Radio/RadioGroup.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Radio/RadioInput.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Radio/RadioItem.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Radio/RadioText.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Radio/_radioInputOptions.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/Select.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/SelectInput.d.ts +1 -1
- package/dist/distributeur/Form/Experimental/TextInput.d.ts +1 -1
- package/dist/distributeur/Form/File/File.d.ts +1 -1
- package/dist/distributeur/Form/File/FileErrors.d.ts +1 -1
- 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 +1 -1
- package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/MultiSelectInput.d.ts +1 -1
- package/dist/distributeur/Form/MultiSelect/ValueContainer.d.ts +2 -1
- 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/Radio/Radio.d.ts +1 -1
- package/dist/distributeur/Form/Radio/RadioCardGroup.d.ts +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/Select/Select.d.ts +1 -1
- 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/SelectInput.d.ts +1 -1
- package/dist/distributeur/Form/Text/Text.d.ts +1 -1
- package/dist/distributeur/Form/Text/TextInput.d.ts +1 -1
- package/dist/distributeur/Form/Textarea/Textarea.d.ts +1 -1
- package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +1 -1
- package/dist/distributeur/Form/core/Field.d.ts +1 -1
- package/dist/distributeur/Form/core/FieldError.d.ts +1 -1
- package/dist/distributeur/Form/core/HelpMessage.d.ts +1 -1
- package/dist/distributeur/FormHelper/FormHelper.d.ts +17 -0
- package/dist/distributeur/FormHelper/FormHelper.js +10 -0
- package/dist/distributeur/FormHelper/ListFormHelper.d.ts +26 -0
- package/dist/distributeur/FormHelper/ListFormHelper.js +17 -0
- package/dist/distributeur/FormHelper/types.d.ts +3 -0
- package/dist/distributeur/FormHelper/types.js +1 -0
- package/dist/distributeur/HelpButton/index.d.ts +1 -1
- package/dist/distributeur/ItemFormHelper/ItemFormHelper.d.ts +17 -3
- package/dist/distributeur/ItemFormHelper/ItemFormHelper.js +3 -3
- package/dist/distributeur/Layout/Footer/Footer.d.ts +1 -1
- package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.d.ts +1 -1
- package/dist/distributeur/Layout/Header/Header.d.ts +1 -1
- package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +1 -1
- package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -1
- package/dist/distributeur/Layout/Header/MenuTitleWrapper/MenuTitleWrapper.d.ts +1 -1
- package/dist/distributeur/Layout/Header/Name/Name.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBar.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -1
- package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +2 -2
- 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/InnerUser.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/Link.d.ts +1 -1
- package/dist/distributeur/Link/LinkAnchor.d.ts +1 -1
- package/dist/distributeur/Loader/ItemLoader.d.ts +1 -1
- package/dist/distributeur/Loader/Loader.d.ts +1 -1
- package/dist/distributeur/Loader/SquareLoader.d.ts +1 -1
- package/dist/distributeur/MandatoryMention/MandatoryMention.d.ts +1 -1
- package/dist/distributeur/Messages/Message.d.ts +1 -1
- package/dist/distributeur/ModalAgent/BooleanModal.d.ts +1 -1
- package/dist/distributeur/ModalAgent/Modal.d.ts +1 -1
- package/dist/distributeur/ModalAgent/Modal.js +1 -3
- package/dist/distributeur/ModalAgent/components/Body.d.ts +1 -1
- package/dist/distributeur/ModalAgent/components/Footer.d.ts +1 -1
- package/dist/distributeur/ModalAgent/components/Header.d.ts +1 -1
- package/dist/distributeur/ModalAgent/components/HeaderBase.d.ts +1 -1
- package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -1
- package/dist/distributeur/Popover/Popover.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverBase.d.ts +1 -1
- package/dist/distributeur/Popover/PopoverClick.d.ts +2 -1
- package/dist/distributeur/Popover/PopoverOver.d.ts +2 -1
- package/dist/distributeur/Restitution/ArticleRestitution.d.ts +1 -1
- package/dist/distributeur/Restitution/HeaderRestitution.d.ts +1 -1
- 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/Restitution/SectionRestitutionTitle.d.ts +1 -1
- package/dist/distributeur/Steps/Step.d.ts +1 -1
- package/dist/distributeur/Steps/StepBase.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/Summary/index.d.ts +1 -1
- package/dist/distributeur/Svg/Svg.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/Items.d.ts +1 -1
- package/dist/distributeur/Table/Pagination/Li.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 +6 -6
- 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/Tabs/components/Pane.d.ts +1 -1
- package/dist/distributeur/Tabs/components/TabsCore.d.ts +1 -1
- package/dist/distributeur/Tabs/components/TabsStateless.d.ts +1 -1
- package/dist/distributeur/Tag/Tag.d.ts +1 -1
- package/dist/distributeur/Timeline/Timeline.d.ts +1 -1
- package/dist/distributeur/Timeline/TimelineCircle.d.ts +1 -1
- package/dist/distributeur/Timeline/TimelineDetails.d.ts +1 -1
- package/dist/distributeur/Title/Title.d.ts +1 -1
- package/dist/distributeur/utilities/VisuallyHidden.d.ts +1 -1
- package/dist/distributeur.d.ts +3 -0
- package/dist/distributeur.js +2 -0
- package/dist/prospect-client/Accordion/AccordionApollo.d.ts +1 -1
- package/dist/prospect-client/Accordion/AccordionCommon.d.ts +1 -1
- package/dist/prospect-client/Accordion/AccordionLF.d.ts +1 -1
- package/dist/prospect-client/AccordionContextual/AccordionContextualApollo.d.ts +1 -1
- package/dist/prospect-client/AccordionContextual/AccordionContextualCommon.d.ts +1 -1
- package/dist/prospect-client/AccordionContextual/AccordionContextualLF.d.ts +1 -1
- package/dist/prospect-client/AccordionCore/AccordionCoreApollo.d.ts +1 -1
- package/dist/prospect-client/AccordionCore/AccordionCoreCommon.d.ts +1 -1
- package/dist/prospect-client/AccordionCore/AccordionCoreLF.d.ts +1 -1
- package/dist/prospect-client/AppName/AppName.d.ts +1 -1
- package/dist/prospect-client/BasePicture/BasePicture.d.ts +1 -1
- package/dist/prospect-client/Button/ButtonApollo.d.ts +1 -1
- package/dist/prospect-client/Button/ButtonCommon.d.ts +1 -1
- package/dist/prospect-client/Button/ButtonLF.d.ts +1 -1
- package/dist/prospect-client/Card/CardCommon.d.ts +1 -1
- package/dist/prospect-client/CardMarketing/CardMarketingApollo.d.ts +3 -0
- package/dist/prospect-client/CardMarketing/CardMarketingApollo.js +6 -0
- package/dist/prospect-client/CardMarketing/CardMarketingCommon.d.ts +32 -0
- package/dist/prospect-client/CardMarketing/CardMarketingCommon.js +20 -0
- package/dist/prospect-client/CardMarketing/CardMarketingLF.d.ts +3 -0
- package/dist/prospect-client/CardMarketing/CardMarketingLF.js +6 -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/ContentItemDuoAction/ContentItemDuoActionApollo.d.ts +1 -1
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +1 -1
- package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionLF.d.ts +1 -1
- package/dist/prospect-client/ContentItemMono/ContentItemMonoApollo.d.ts +1 -1
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +8 -1
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.js +3 -2
- package/dist/prospect-client/ContentItemMono/ContentItemMonoCore.d.ts +1 -1
- package/dist/prospect-client/ContentItemMono/ContentItemMonoLF.d.ts +1 -1
- package/dist/prospect-client/DataAgent/DataAgentApollo.d.ts +1 -1
- package/dist/prospect-client/DataAgent/DataAgentCommon.d.ts +1 -1
- package/dist/prospect-client/DataAgent/DataAgentCommon.js +1 -1
- package/dist/prospect-client/DataAgent/DataAgentLF.d.ts +1 -1
- package/dist/prospect-client/Divider/DividerCommon.d.ts +1 -1
- package/dist/prospect-client/Fieldset/FieldsetApollo.d.ts +1 -1
- package/dist/prospect-client/Fieldset/FieldsetCommon.d.ts +1 -1
- package/dist/prospect-client/Fieldset/FieldsetLF.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.d.ts +1 -1
- package/dist/prospect-client/Form/Dropdown/DropdownApollo.d.ts +1 -1
- package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +3 -3
- package/dist/prospect-client/Form/Dropdown/DropdownLF.d.ts +1 -1
- package/dist/prospect-client/Form/DropdownMultiSelect/DropdownMultiSelectApollo.d.ts +4 -0
- package/dist/prospect-client/Form/DropdownMultiSelect/DropdownMultiSelectApollo.js +9 -0
- package/dist/prospect-client/Form/DropdownMultiSelect/DropdownMultiSelectCommon.d.ts +47 -0
- package/dist/prospect-client/Form/DropdownMultiSelect/DropdownMultiSelectCommon.js +39 -0
- package/dist/prospect-client/Form/DropdownMultiSelect/DropdownMultiSelectLF.d.ts +4 -0
- package/dist/prospect-client/Form/DropdownMultiSelect/DropdownMultiSelectLF.js +9 -0
- package/dist/prospect-client/Form/DropdownMultiSelect/useDropdownMultiSelect.hook.d.ts +14 -0
- package/dist/prospect-client/Form/DropdownMultiSelect/useDropdownMultiSelect.hook.js +31 -0
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileApollo.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +1 -1
- package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileLF.d.ts +1 -1
- package/dist/prospect-client/Form/InputDate/InputDateApollo.d.ts +1 -1
- package/dist/prospect-client/Form/InputDate/InputDateAtom.d.ts +1 -1
- package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +3 -3
- package/dist/prospect-client/Form/InputDate/InputDateLF.d.ts +1 -1
- package/dist/prospect-client/Form/InputDate/InputDateTextAtom.d.ts +1 -1
- package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.d.ts +1 -1
- package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.d.ts +1 -1
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +3 -3
- package/dist/prospect-client/Form/InputPhone/InputPhoneLF.d.ts +1 -1
- package/dist/prospect-client/Form/InputText/InputTextApollo.d.ts +1 -1
- package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +3 -3
- package/dist/prospect-client/Form/InputText/InputTextLF.d.ts +1 -1
- package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.d.ts +1 -1
- package/dist/prospect-client/Form/ItemLabel/ItemLabelApollo.d.ts +1 -1
- package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.d.ts +1 -1
- package/dist/prospect-client/Form/ItemLabel/ItemLabelLF.d.ts +1 -1
- package/dist/prospect-client/Form/ItemMessage/ItemMessage.d.ts +1 -1
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.d.ts +1 -1
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.d.ts +2 -1
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.d.ts +1 -1
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.d.ts +1 -1
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.d.ts +1 -1
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.d.ts +1 -1
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +1 -1
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +1 -1
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.d.ts +1 -1
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +1 -1
- package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.d.ts +1 -1
- package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +1 -1
- package/dist/prospect-client/Form/TextArea/TextAreaApollo.d.ts +1 -1
- package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +3 -3
- package/dist/prospect-client/Form/TextArea/TextAreaLF.d.ts +1 -1
- package/dist/prospect-client/Grid/DebugGridApollo.d.ts +1 -1
- package/dist/prospect-client/Grid/DebugGridCommon.d.ts +1 -1
- package/dist/prospect-client/Grid/DebugGridLF.d.ts +1 -1
- package/dist/prospect-client/Header/HeaderApollo.d.ts +1 -1
- package/dist/prospect-client/Header/HeaderCommon.d.ts +1 -1
- package/dist/prospect-client/Header/HeaderLF.d.ts +1 -1
- package/dist/prospect-client/Heading/HeadingApollo.d.ts +1 -1
- package/dist/prospect-client/Heading/HeadingCommon.d.ts +1 -1
- package/dist/prospect-client/Heading/HeadingLF.d.ts +1 -1
- package/dist/prospect-client/Heading/HeadingWithSubheadings.d.ts +1 -1
- package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
- package/dist/prospect-client/ItemMenu/ItemMenuCommon.d.ts +1 -1
- package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +1 -1
- package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutApollo.d.ts +8 -0
- package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutApollo.js +14 -0
- package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutCommon.d.ts +24 -0
- package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutCommon.js +29 -0
- package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutLF.d.ts +8 -0
- package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutLF.js +14 -0
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +1 -1
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.d.ts +1 -1
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +1 -1
- package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.d.ts +1 -1
- package/dist/prospect-client/Layout/Footer/DynamicIcons.d.ts +1 -1
- package/dist/prospect-client/Layout/Footer/FooterCommon.d.ts +1 -1
- package/dist/prospect-client/Layout/Footer/MenuIcons.d.ts +1 -1
- package/dist/prospect-client/Layout/Footer/MenuLink.d.ts +1 -1
- package/dist/prospect-client/Layout/FormLayout/FormLayout.d.ts +1 -1
- package/dist/prospect-client/Layout/MainLayout/MainLayoutApollo.d.ts +8 -0
- package/dist/prospect-client/Layout/MainLayout/MainLayoutApollo.js +15 -0
- package/dist/prospect-client/Layout/MainLayout/MainLayoutCommon.d.ts +48 -0
- package/dist/prospect-client/Layout/MainLayout/MainLayoutCommon.js +36 -0
- package/dist/prospect-client/Layout/MainLayout/MainLayoutLF.d.ts +8 -0
- package/dist/prospect-client/Layout/MainLayout/MainLayoutLF.js +15 -0
- package/dist/prospect-client/Layout/PatternCardMarketing/PatternCardMarketing.d.ts +7 -0
- package/dist/prospect-client/Layout/PatternCardMarketing/PatternCardMarketing.js +7 -0
- package/dist/prospect-client/Layout/PatternMozaicFree/PatternMozaicFree.d.ts +9 -0
- package/dist/prospect-client/Layout/PatternMozaicFree/PatternMozaicFree.js +13 -0
- package/dist/prospect-client/Layout/PatternMozaicGrid/PatternMozaicGrid.d.ts +19 -0
- package/dist/prospect-client/Layout/PatternMozaicGrid/PatternMozaicGrid.js +28 -0
- package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionApollo.d.ts +7 -0
- package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionApollo.js +7 -0
- package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionCommon.d.ts +16 -0
- package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionCommon.js +18 -0
- package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionLF.d.ts +7 -0
- package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionLF.js +7 -0
- package/dist/prospect-client/LevelSelector/LevelSelectorApollo.d.ts +1 -1
- package/dist/prospect-client/LevelSelector/LevelSelectorCommon.d.ts +1 -1
- package/dist/prospect-client/LevelSelector/LevelSelectorLF.d.ts +1 -1
- package/dist/prospect-client/Link/LinkApollo.d.ts +1 -0
- package/dist/prospect-client/Link/LinkApollo.js +1 -0
- package/dist/prospect-client/Link/LinkCommon.d.ts +8 -1
- package/dist/prospect-client/Link/LinkCommon.js +17 -2
- package/dist/prospect-client/Link/LinkLF.d.ts +1 -0
- package/dist/prospect-client/Link/LinkLF.js +1 -0
- package/dist/prospect-client/List/ClickItem/ClickItemApollo.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/ClickItemLF.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/ClickItemWrapper.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentApollo.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentCommon.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemContentLF.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixApollo.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixCommon.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixLF.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixApollo.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.d.ts +1 -1
- package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixLF.d.ts +1 -1
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoApollo.d.ts +1 -1
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.d.ts +1 -1
- package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoLF.d.ts +1 -1
- package/dist/prospect-client/List/List/ListApollo.d.ts +1 -1
- package/dist/prospect-client/List/List/ListCommon.d.ts +1 -1
- package/dist/prospect-client/List/List/ListLF.d.ts +1 -1
- package/dist/prospect-client/Loader/LoaderApollo.d.ts +1 -1
- package/dist/prospect-client/Loader/LoaderCommon.d.ts +1 -1
- package/dist/prospect-client/Loader/LoaderLF.d.ts +1 -1
- package/dist/prospect-client/MenuBurger/MenuBurgerApollo.d.ts +1 -1
- package/dist/prospect-client/MenuBurger/MenuBurgerCommon.d.ts +1 -1
- package/dist/prospect-client/MenuBurger/MenuBurgerLF.d.ts +1 -1
- package/dist/prospect-client/Message/MessageApollo.d.ts +1 -1
- package/dist/prospect-client/Message/MessageCommon.d.ts +1 -1
- package/dist/prospect-client/Message/MessageLF.d.ts +1 -1
- package/dist/prospect-client/MessageBar/MessageBarAction.d.ts +1 -1
- package/dist/prospect-client/MessageBar/MessageBarApollo.d.ts +1 -1
- package/dist/prospect-client/MessageBar/MessageBarCommon.d.ts +1 -1
- package/dist/prospect-client/MessageBar/MessageBarDescription.d.ts +1 -1
- package/dist/prospect-client/MessageBar/MessageBarLF.d.ts +1 -1
- package/dist/prospect-client/MessageBar/MessageBarSummary.d.ts +1 -1
- package/dist/prospect-client/Modal/ModalApollo.d.ts +1 -1
- package/dist/prospect-client/Modal/ModalCommon.d.ts +1 -1
- package/dist/prospect-client/Modal/ModalLF.d.ts +1 -1
- package/dist/prospect-client/Modal/components/ModalCore.d.ts +1 -1
- package/dist/prospect-client/Modal/components/ModalCore.js +1 -3
- package/dist/prospect-client/Modal/components/ModalCoreBody.d.ts +1 -1
- package/dist/prospect-client/Modal/components/ModalCoreFooterApollo.d.ts +1 -1
- package/dist/prospect-client/Modal/components/ModalCoreFooterCommon.d.ts +1 -1
- package/dist/prospect-client/Modal/components/ModalCoreFooterLF.d.ts +1 -1
- package/dist/prospect-client/Modal/components/ModalCoreHeaderApollo.d.ts +1 -1
- package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.d.ts +1 -1
- package/dist/prospect-client/Modal/components/ModalCoreHeaderLF.d.ts +1 -1
- package/dist/prospect-client/MultiMessage/MultiMessageApollo.d.ts +1 -1
- package/dist/prospect-client/MultiMessage/MultiMessageCommon.d.ts +1 -1
- package/dist/prospect-client/MultiMessage/MultiMessageFooter.d.ts +1 -1
- package/dist/prospect-client/MultiMessage/MultiMessageLF.d.ts +1 -1
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationApollo.d.ts +1 -1
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationCommon.d.ts +1 -1
- package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationLF.d.ts +1 -1
- package/dist/prospect-client/Pagination/PaginationApollo.d.ts +1 -1
- package/dist/prospect-client/Pagination/PaginationCommon.d.ts +1 -1
- package/dist/prospect-client/Pagination/PaginationLF.d.ts +1 -1
- package/dist/prospect-client/ProgressBar/ProgressBarCommon.d.ts +1 -1
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupApollo.d.ts +1 -1
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.d.ts +1 -1
- package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupLF.d.ts +1 -1
- package/dist/prospect-client/Skeleton/Skeleton.d.ts +1 -1
- package/dist/prospect-client/SkeletonGrid/SkeletonGrid.d.ts +1 -1
- package/dist/prospect-client/SkeletonList/SkeletonListApollo.d.ts +1 -1
- package/dist/prospect-client/SkeletonList/SkeletonListCommon.d.ts +1 -1
- package/dist/prospect-client/SkeletonList/SkeletonListLF.d.ts +1 -1
- package/dist/prospect-client/Spinner/SpinnerCommon.d.ts +1 -1
- package/dist/prospect-client/Stepper/StepperApollo.d.ts +1 -1
- package/dist/prospect-client/Stepper/StepperCommon.d.ts +3 -3
- package/dist/prospect-client/Stepper/StepperLF.d.ts +1 -1
- package/dist/prospect-client/Svg/Svg.d.ts +2 -2
- package/dist/prospect-client/TabBar/TabBarApollo.d.ts +1 -1
- package/dist/prospect-client/TabBar/TabBarCommon.d.ts +1 -1
- package/dist/prospect-client/TabBar/TabBarCommon.js +1 -1
- package/dist/prospect-client/TabBar/TabBarLF.d.ts +1 -1
- package/dist/prospect-client/TabMenu/TabMenu.d.ts +1 -1
- package/dist/prospect-client/TabMenu/TabMenu.js +1 -3
- package/dist/prospect-client/Table/TBody.d.ts +1 -1
- package/dist/prospect-client/Table/THead.d.ts +1 -1
- package/dist/prospect-client/Table/TableCommon.d.ts +6 -6
- package/dist/prospect-client/Table/Td.d.ts +1 -1
- package/dist/prospect-client/Table/Th.d.ts +1 -1
- package/dist/prospect-client/Table/Tr.d.ts +1 -1
- package/dist/prospect-client/TableMobileCard/DRow.d.ts +1 -1
- package/dist/prospect-client/TableMobileCard/Dd.d.ts +1 -1
- package/dist/prospect-client/TableMobileCard/Dt.d.ts +1 -1
- package/dist/prospect-client/TableMobileCard/TableMobileCard.d.ts +4 -4
- package/dist/prospect-client/Tag/TagCommon.d.ts +1 -1
- package/dist/prospect-client/TagList/TagListApollo.d.ts +1 -1
- package/dist/prospect-client/TagList/TagListApollo.js +1 -1
- package/dist/prospect-client/TagList/TagListCommon.d.ts +5 -7
- package/dist/prospect-client/TagList/TagListCommon.js +6 -5
- package/dist/prospect-client/TagList/TagListLF.d.ts +1 -1
- package/dist/prospect-client/TagList/TagListLF.js +1 -1
- package/dist/prospect-client/TimelineVertical/TimelineVerticalApollo.d.ts +1 -1
- package/dist/prospect-client/TimelineVertical/TimelineVerticalCommon.d.ts +1 -1
- package/dist/prospect-client/TimelineVertical/TimelineVerticalLF.d.ts +1 -1
- package/dist/prospect-client/Toggle/ToggleApollo.d.ts +1 -1
- package/dist/prospect-client/Toggle/ToggleCommon.d.ts +1 -1
- package/dist/prospect-client/Toggle/ToggleLF.d.ts +1 -1
- package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.d.ts +1 -1
- package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.d.ts +1 -1
- package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.d.ts +1 -1
- package/dist/prospect-client/pages/ValidPage/ValidPageApollo.d.ts +1 -1
- package/dist/prospect-client/pages/ValidPage/ValidPageCommon.d.ts +1 -1
- package/dist/prospect-client/pages/ValidPage/ValidPageLF.d.ts +1 -1
- package/dist/prospect-client/utilities/VisuallyHidden.d.ts +1 -1
- package/dist/prospect-client/utilities/flattenFragments.d.ts +2 -0
- package/dist/prospect-client/utilities/flattenFragments.js +4 -0
- package/dist/prospect.d.ts +8 -0
- package/dist/prospect.js +8 -0
- package/package.json +16 -16
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, ComponentType } from "react";
|
|
2
|
+
import { BasePicture } from "../BasePicture/BasePicture";
|
|
2
3
|
import { Icon, type IconProps } from "../Icon/IconCommon";
|
|
3
4
|
import { type ContentItemCoreProps } from "./ContentItemMonoCore";
|
|
4
5
|
export type ContentMonoItemSize = "medium" | "large";
|
|
@@ -8,6 +9,12 @@ export type ContentMonoItemPictureProps = {
|
|
|
8
9
|
picture: string;
|
|
9
10
|
title: string;
|
|
10
11
|
subtitle: string;
|
|
12
|
+
/**
|
|
13
|
+
* Props passed to the picture. The picture is decorative by default
|
|
14
|
+
* (`alt=""`) because the title is displayed next to it: set `alt` only
|
|
15
|
+
* when the picture carries information that the text does not.
|
|
16
|
+
*/
|
|
17
|
+
basePictureProps?: Omit<ComponentProps<typeof BasePicture>, "src">;
|
|
11
18
|
};
|
|
12
19
|
export type ContentMonoItemIconProps = {
|
|
13
20
|
type: "icon";
|
|
@@ -26,4 +33,4 @@ export type ContentItemCommonProps = ContentItemProps & {
|
|
|
26
33
|
IconComponent: ComponentType<ComponentProps<typeof Icon>>;
|
|
27
34
|
};
|
|
28
35
|
export declare const getContentItemCoreProps: ({ IconComponent, type, ...props }: ContentItemCommonProps) => ContentItemCoreProps;
|
|
29
|
-
export declare const ContentItemMonoCommon: (props: ContentItemCommonProps) => import("react
|
|
36
|
+
export declare const ContentItemMonoCommon: (props: ContentItemCommonProps) => import("react").JSX.Element;
|
|
@@ -13,9 +13,10 @@ export const getContentItemCoreProps = ({ IconComponent, type, ...props }) => {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
if (type === "picture") {
|
|
16
|
+
const { picture, basePictureProps, ...pictureItemProps } = props;
|
|
16
17
|
return {
|
|
17
|
-
...
|
|
18
|
-
leftComponent:
|
|
18
|
+
...pictureItemProps,
|
|
19
|
+
leftComponent: _jsx(BasePicture, { src: picture, ...basePictureProps }),
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
return {
|
|
@@ -12,5 +12,5 @@ export type ContentItemCoreProps<T extends ElementType = "div"> = {
|
|
|
12
12
|
size?: ContentMonoItemSize;
|
|
13
13
|
leftComponent?: ReactNode;
|
|
14
14
|
} & AtLeastOneText;
|
|
15
|
-
export declare const ContentItemMonoCore: <T extends ElementType = "div">({ as, size, leftComponent, title, primarySubtitle, subtitle, }: ContentItemCoreProps<T>) => import("react
|
|
15
|
+
export declare const ContentItemMonoCore: <T extends ElementType = "div">({ as, size, leftComponent, title, primarySubtitle, subtitle, }: ContentItemCoreProps<T>) => import("react").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/ContentItemMono/ContentItemMonoLF.css";
|
|
2
2
|
import { type ContentItemProps } from "./ContentItemMonoCommon";
|
|
3
|
-
export declare const ContentItemMono: (props: ContentItemProps) => import("react
|
|
3
|
+
export declare const ContentItemMono: (props: ContentItemProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type DataAgentProps } from "./DataAgentCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/DataAgent/DataAgentApollo.css";
|
|
3
3
|
export { type DataAgentProps } from "./DataAgentCommon";
|
|
4
|
-
export declare const DataAgent: (props: DataAgentProps) => import("react
|
|
4
|
+
export declare const DataAgent: (props: DataAgentProps) => import("react").JSX.Element;
|
|
@@ -19,5 +19,5 @@ type DataAgentCommonProps = DataAgentProps & {
|
|
|
19
19
|
ContentItemMonoComponent: ComponentType<ContentItemProps>;
|
|
20
20
|
ClickItemComponent: ComponentType<ClickItemProps>;
|
|
21
21
|
};
|
|
22
|
-
export declare const DataAgentCommon: ({ className, agentProps, agentContractProps, contents, clickContents, texteOrias, DividerComponent, ContentItemMonoComponent, ClickItemComponent, isCompact, variant, }: DataAgentCommonProps) => import("react
|
|
22
|
+
export declare const DataAgentCommon: ({ className, agentProps, agentContractProps, contents, clickContents, texteOrias, DividerComponent, ContentItemMonoComponent, ClickItemComponent, isCompact, variant, }: DataAgentCommonProps) => import("react").JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -10,7 +10,7 @@ export const DataAgentCommon = ({ className, agentProps, agentContractProps, con
|
|
|
10
10
|
const renderForDefaultLayout = () => (_jsxs(_Fragment, { children: [_jsxs("section", { className: "af-data-agent__intro", children: [_jsx(ContentItemMonoComponent, { ...agentProps, type: "picture" }), agentContractProps ? (_jsx(ContentItemMonoComponent, { ...agentContractProps, type: "stick" })) : null] }), _jsx(DividerComponent, {}), contents && contents?.length > 0 ? (_jsx("section", { className: "af-data-agent__info-content", children: contents.map((content) => (_jsxs(Fragment, { children: [_jsx(ContentItemMonoComponent, { ...content, type: "icon" }), _jsx(DividerComponent, { className: "af-data-agent__line" })] }, `content--${crypto.randomUUID()}`))) })) : null, clickContents && clickContents?.length > 0 ? (_jsx("section", { className: "af-data-agent__info-click-content", children: clickContents.map((clickContent) => (_jsxs(Fragment, { children: [_jsx(ClickItemComponent, { ...clickContent, variant: "small" }), _jsx(DividerComponent, { className: "af-data-agent__line" })] }, `clickContent--${crypto.randomUUID()}`))) })) : null, Boolean(texteOrias) && (_jsx("p", { className: "af-data-agent__text-orias", children: texteOrias }))] }));
|
|
11
11
|
const renderForMobileLayout = () => (_jsx("section", { className: "af-data-agent__intro", children: _jsx(ClickItemComponent, { ...agentProps, basePictureProps: {
|
|
12
12
|
src: agentProps.picture,
|
|
13
|
-
|
|
13
|
+
...agentProps.basePictureProps,
|
|
14
14
|
}, variant: "agent" }) }));
|
|
15
15
|
return (_jsx("section", { className: componentClassName, children: (isMobile && isCompact) || variant === "compact"
|
|
16
16
|
? renderForMobileLayout()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type DataAgentProps } from "./DataAgentCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/client/DataAgent/DataAgentLF.css";
|
|
3
3
|
export { type DataAgentProps } from "./DataAgentCommon";
|
|
4
|
-
export declare const DataAgent: (props: DataAgentProps) => import("react
|
|
4
|
+
export declare const DataAgent: (props: DataAgentProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/prospect/Fieldset/FieldsetApollo.css";
|
|
2
2
|
import { type FieldsetProps } from "./FieldsetCommon";
|
|
3
3
|
export type { FieldsetProps };
|
|
4
|
-
export declare const Fieldset: (props: FieldsetProps) => import("react
|
|
4
|
+
export declare const Fieldset: (props: FieldsetProps) => import("react").JSX.Element;
|
|
@@ -10,4 +10,4 @@ export type FieldsetCommonProps = FieldsetProps & {
|
|
|
10
10
|
IconComponent: ComponentType<ComponentProps<typeof Icon>>;
|
|
11
11
|
CardComponent: ComponentType<ComponentProps<typeof CardCommon>>;
|
|
12
12
|
};
|
|
13
|
-
export declare const FieldsetCommon: ({ children, title, iconProps, className, IconComponent, CardComponent, }: FieldsetCommonProps) => import("react
|
|
13
|
+
export declare const FieldsetCommon: ({ children, title, iconProps, className, IconComponent, CardComponent, }: FieldsetCommonProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/Fieldset/FieldsetLF.css";
|
|
2
2
|
import { type FieldsetProps } from "./FieldsetCommon";
|
|
3
3
|
export type { FieldsetProps };
|
|
4
|
-
export declare const Fieldset: (props: FieldsetProps) => import("react
|
|
4
|
+
export declare const Fieldset: (props: FieldsetProps) => import("react").JSX.Element;
|
|
@@ -2,6 +2,6 @@ import { type CardCheckboxProps } from "./CardCheckboxCommon";
|
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CardCheckbox/CardCheckboxApollo.css";
|
|
3
3
|
export type { CardCheckboxProps };
|
|
4
4
|
export declare const CardCheckbox: {
|
|
5
|
-
(props: CardCheckboxProps): import("react
|
|
5
|
+
(props: CardCheckboxProps): import("react").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
@@ -18,7 +18,7 @@ type CardCheckboxCommonProps = CardCheckboxProps & {
|
|
|
18
18
|
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
19
19
|
};
|
|
20
20
|
export declare const CardCheckboxCommon: {
|
|
21
|
-
({ className, label, description, required, options, type, name, id, onChange, CardCheckboxItemComponent, CheckboxTextComponent, ItemMessageComponent, message, messageType, containerProps, mode, ...inputProps }: CardCheckboxCommonProps): import("react
|
|
21
|
+
({ className, label, description, required, options, type, name, id, onChange, CardCheckboxItemComponent, CheckboxTextComponent, ItemMessageComponent, message, messageType, containerProps, mode, ...inputProps }: CardCheckboxCommonProps): import("react").JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
@@ -2,6 +2,6 @@ import { type CardCheckboxProps } from "./CardCheckboxCommon";
|
|
|
2
2
|
import "@axa-fr/canopee-css/client/Form/Checkbox/CardCheckbox/CardCheckboxLF.css";
|
|
3
3
|
export type { CardCheckboxProps };
|
|
4
4
|
export declare const CardCheckbox: {
|
|
5
|
-
(props: CardCheckboxProps): import("react
|
|
5
|
+
(props: CardCheckboxProps): import("react").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type CardCheckboxOptionProps } from "./CardCheckboxOptionCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.css";
|
|
3
|
-
export declare const CardCheckboxOption: (props: CardCheckboxOptionProps) => import("react
|
|
3
|
+
export declare const CardCheckboxOption: (props: CardCheckboxOptionProps) => import("react").JSX.Element;
|
|
@@ -13,7 +13,7 @@ export type CardCheckboxOptionCommonProps = CardCheckboxOptionProps & {
|
|
|
13
13
|
IconComponent: ComponentType<IconProps>;
|
|
14
14
|
};
|
|
15
15
|
declare const CardCheckboxOptionCommon: {
|
|
16
|
-
({ label, type, description, subtitle, icon, className, CheckboxComponent, IconComponent, ...inputProps }: CardCheckboxOptionCommonProps): import("react
|
|
16
|
+
({ label, type, description, subtitle, icon, className, CheckboxComponent, IconComponent, ...inputProps }: CardCheckboxOptionCommonProps): import("react").JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
export { CardCheckboxOptionCommon };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type CardCheckboxOptionProps } from "./CardCheckboxOptionCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.css";
|
|
3
|
-
export declare const CardCheckboxOption: (props: CardCheckboxOptionProps) => import("react
|
|
3
|
+
export declare const CardCheckboxOption: (props: CardCheckboxOptionProps) => import("react").JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { type ComponentProps } from "react";
|
|
|
2
2
|
export type CheckboxProps = {
|
|
3
3
|
variant?: "error" | "warning";
|
|
4
4
|
} & Omit<ComponentProps<"input">, "disabled" | "type">;
|
|
5
|
-
export declare const Checkbox: ({ variant, className, ref, ...inputProps }: CheckboxProps) => import("react
|
|
5
|
+
export declare const Checkbox: ({ variant, className, ref, ...inputProps }: CheckboxProps) => import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/prospect/Form/Checkbox/CheckboxText/CheckboxTextApollo.css";
|
|
2
2
|
import { type CheckboxTextProps } from "./CheckboxTextCommon";
|
|
3
3
|
export declare const CheckboxText: {
|
|
4
|
-
({ ...props }: CheckboxTextProps): import("react
|
|
4
|
+
({ ...props }: CheckboxTextProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -11,7 +11,7 @@ export type CheckboxTextCommonProps = CheckboxTextProps & {
|
|
|
11
11
|
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
12
12
|
};
|
|
13
13
|
declare const CheckboxTextCommon: {
|
|
14
|
-
({ label, id, message, messageType, CheckboxComponent, ItemMessageComponent, containerProps, ...inputProps }: CheckboxTextCommonProps): import("react
|
|
14
|
+
({ label, id, message, messageType, CheckboxComponent, ItemMessageComponent, containerProps, ...inputProps }: CheckboxTextCommonProps): import("react").JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
export { CheckboxTextCommon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/Form/Checkbox/CheckboxText/CheckboxTextLF.css";
|
|
2
2
|
import { type CheckboxTextProps } from "./CheckboxTextCommon";
|
|
3
3
|
export declare const CheckboxText: {
|
|
4
|
-
({ ...props }: CheckboxTextProps): import("react
|
|
4
|
+
({ ...props }: CheckboxTextProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/prospect/Form/Dropdown/DropdownApollo.css";
|
|
2
2
|
import { type DropdownProps } from "./DropdownCommon";
|
|
3
|
-
export declare const Dropdown: (props: DropdownProps) => import("react
|
|
3
|
+
export declare const Dropdown: (props: DropdownProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
3
3
|
import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
4
4
|
import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
@@ -7,7 +7,7 @@ export type DropdownProps = ComponentPropsWithRef<"select"> & {
|
|
|
7
7
|
label?: ItemLabelProps["children"];
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
description?: string;
|
|
10
|
-
helper?:
|
|
10
|
+
helper?: ReactNode;
|
|
11
11
|
containerProps?: GridContainerProps;
|
|
12
12
|
} & Pick<ItemLabelProps, "moreButtonLabel" | "onMoreButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
|
|
13
13
|
type DropdownCommonProps = DropdownProps & {
|
|
@@ -15,7 +15,7 @@ type DropdownCommonProps = DropdownProps & {
|
|
|
15
15
|
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
16
16
|
};
|
|
17
17
|
declare const DropdownCommon: {
|
|
18
|
-
({ id, required, label, placeholder, children, helper, message, messageType, description, moreButtonLabel, onMoreButtonClick, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, containerProps, ...otherProps }: DropdownCommonProps): import("react
|
|
18
|
+
({ id, required, label, placeholder, children, helper, message, messageType, description, moreButtonLabel, onMoreButtonClick, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, containerProps, ...otherProps }: DropdownCommonProps): import("react").JSX.Element;
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
21
|
export { DropdownCommon };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/Form/Dropdown/DropdownLF.css";
|
|
2
2
|
import { type DropdownProps } from "./DropdownCommon";
|
|
3
|
-
export declare const Dropdown: (props: DropdownProps) => import("react
|
|
3
|
+
export declare const Dropdown: (props: DropdownProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/prospect/Form/DropdownMultiSelect/DropdownMultiSelectAll.css";
|
|
2
|
+
import { type DropdownMultiSelectProps } from "./DropdownMultiSelectCommon";
|
|
3
|
+
export type { DropdownMultiSelectProps } from "./DropdownMultiSelectCommon";
|
|
4
|
+
export declare const DropdownMultiSelect: (props: DropdownMultiSelectProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/DropdownMultiSelect/DropdownMultiSelectAll.css";
|
|
3
|
+
import { Tag } from "../../Tag/TagCommon";
|
|
4
|
+
import { TagList } from "../../TagList/TagListApollo";
|
|
5
|
+
import { MultiSelectList } from "../MultiSelectList/MultiSelectListApollo";
|
|
6
|
+
import { DropdownMultiSelectCommon, } from "./DropdownMultiSelectCommon";
|
|
7
|
+
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
8
|
+
import { ItemMessage } from "../ItemMessage/ItemMessage";
|
|
9
|
+
export const DropdownMultiSelect = (props) => (_jsx(DropdownMultiSelectCommon, { ...props, MultiSelectListComponent: MultiSelectList, TagListComponent: TagList, TagComponent: Tag, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ChangeEvent, type ComponentProps, type ComponentType } from "react";
|
|
2
|
+
import type { MultiSelectListProps } from "../MultiSelectList/MultiSelectListCommon";
|
|
3
|
+
import type { TagListProps } from "../../TagList/TagListCommon";
|
|
4
|
+
import type { TagProps } from "../../Tag/TagCommon";
|
|
5
|
+
import type { ItemLabelCommon, ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
6
|
+
import type { ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
7
|
+
export type DropdownMultiSelectProps = Pick<ItemLabelProps, "moreButtonLabel" | "onMoreButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType"> & Pick<MultiSelectListProps, "items"> & {
|
|
8
|
+
id?: string;
|
|
9
|
+
name: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
label?: ItemLabelProps["children"];
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
helper?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The number of items to hide before showing a "more" option.
|
|
19
|
+
* Defaults to `3`.
|
|
20
|
+
*/
|
|
21
|
+
hideThreshold?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Props to be spread onto the underlying input element.
|
|
24
|
+
* onChange will be override by `onChange` prop of `DropdownMultiSelect`.
|
|
25
|
+
*/
|
|
26
|
+
inputProps?: Omit<ComponentProps<"input">, "type" | "onChange">;
|
|
27
|
+
/**
|
|
28
|
+
* The initially selected values. The component manages its own
|
|
29
|
+
* selection state afterwards (always uncontrolled): clicking an item
|
|
30
|
+
* always updates it, regardless of this prop. Use it only to seed the
|
|
31
|
+
* selection, not to drive it from a parent.
|
|
32
|
+
*/
|
|
33
|
+
defaultValue?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Callback function invoked when an item is selected or deselected.
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
38
|
+
};
|
|
39
|
+
type DropdownMultiSelectCommonProps = DropdownMultiSelectProps & {
|
|
40
|
+
MultiSelectListComponent: ComponentType<MultiSelectListProps>;
|
|
41
|
+
TagListComponent: ComponentType<TagListProps>;
|
|
42
|
+
TagComponent: ComponentType<TagProps>;
|
|
43
|
+
ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
|
|
44
|
+
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
45
|
+
};
|
|
46
|
+
export declare const DropdownMultiSelectCommon: ({ items, helper, name, message, messageType, description, placeholder, className, moreButtonLabel, onMoreButtonClick, sideButtonLabel, onSideButtonClick, required, id: inputId, label, disabled, hideThreshold, defaultValue, onChange, MultiSelectListComponent, TagListComponent, TagComponent, ItemLabelComponent, ItemMessageComponent, inputProps, }: DropdownMultiSelectCommonProps) => import("react").JSX.Element;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, } from "react";
|
|
3
|
+
import { getClassName } from "../../utilities/getClassName";
|
|
4
|
+
import { useDropdownMultiSelect } from "./useDropdownMultiSelect.hook";
|
|
5
|
+
export const DropdownMultiSelectCommon = ({ items, helper, name, message, messageType, description, placeholder, className, moreButtonLabel, onMoreButtonClick, sideButtonLabel, onSideButtonClick, required, id: inputId, label, disabled, hideThreshold, defaultValue, onChange, MultiSelectListComponent, TagListComponent, TagComponent, ItemLabelComponent, ItemMessageComponent, inputProps, }) => {
|
|
6
|
+
const { selectedItems, selectedValues, summary, accessibleCount, handleOnItemSelect, } = useDropdownMultiSelect({
|
|
7
|
+
items,
|
|
8
|
+
defaultValue,
|
|
9
|
+
placeholder,
|
|
10
|
+
});
|
|
11
|
+
const inputItems = items.map((item) => ({
|
|
12
|
+
...inputProps,
|
|
13
|
+
name,
|
|
14
|
+
onChange: (e) => {
|
|
15
|
+
onChange?.(e);
|
|
16
|
+
handleOnItemSelect(item.id, e.target.checked);
|
|
17
|
+
},
|
|
18
|
+
...item,
|
|
19
|
+
checked: selectedValues.includes(item.id),
|
|
20
|
+
value: item.id,
|
|
21
|
+
}));
|
|
22
|
+
const generatedId = useId();
|
|
23
|
+
const idMessage = useId();
|
|
24
|
+
const fieldId = inputId ?? generatedId;
|
|
25
|
+
const triggerId = `${fieldId}-trigger`;
|
|
26
|
+
const panelId = `${fieldId}-panel`;
|
|
27
|
+
const countId = `${fieldId}-count`;
|
|
28
|
+
const componentClassName = getClassName({
|
|
29
|
+
baseClassName: "af-form__dropdown-multi-select",
|
|
30
|
+
modifiers: [disabled && "disabled"],
|
|
31
|
+
className,
|
|
32
|
+
});
|
|
33
|
+
const componentInputClassName = getClassName({
|
|
34
|
+
baseClassName: "af-form__dropdown-input",
|
|
35
|
+
modifiers: [Boolean(message) && messageType],
|
|
36
|
+
className: "dropdown-multi-select__trigger",
|
|
37
|
+
});
|
|
38
|
+
return (_jsxs("div", { className: componentClassName, id: fieldId, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel, onMoreButtonClick: onMoreButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, id: `${fieldId}-label`, htmlFor: triggerId, children: label }), _jsxs("div", { className: "dropdown-multi-select__surface", children: [_jsxs("button", { type: "button", id: triggerId, className: componentInputClassName, "aria-controls": panelId, "aria-haspopup": "listbox", "aria-label": summary, disabled: disabled, "data-empty": selectedItems.length === 0, popoverTarget: panelId, popoverTargetAction: "toggle", children: [_jsx("span", { className: "dropdown-multi-select__summary", children: summary }), _jsx("span", { id: countId, className: "sr-only", children: accessibleCount })] }), items.length > 0 ? (_jsx("div", { id: panelId, popover: "auto", className: "dropdown-multi-select__list", role: "group", "aria-labelledby": triggerId, children: _jsx(MultiSelectListComponent, { items: inputItems }) })) : null] }), selectedItems.length > 0 ? (_jsx(TagListComponent, { className: "dropdown-multi-select__tags", hideThreshold: hideThreshold, OverflowTagComponent: TagComponent, "aria-hidden": "true", children: selectedItems.map((item) => (_jsx(TagComponent, { children: item.label }, item.id))) })) : null, helper ? _jsx("span", { className: "af-form__input-helper", children: helper }) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message, messageType: messageType })] }));
|
|
39
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/client/Form/DropdownMultiSelect/DropdownMultiSelectAll.css";
|
|
2
|
+
import { type DropdownMultiSelectProps } from "./DropdownMultiSelectCommon";
|
|
3
|
+
export type { DropdownMultiSelectProps } from "./DropdownMultiSelectCommon";
|
|
4
|
+
export declare const DropdownMultiSelect: (props: DropdownMultiSelectProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/Form/DropdownMultiSelect/DropdownMultiSelectAll.css";
|
|
3
|
+
import { Tag } from "../../Tag/TagCommon";
|
|
4
|
+
import { TagList } from "../../TagList/TagListLF";
|
|
5
|
+
import { MultiSelectList } from "../MultiSelectList/MultiSelectListLF";
|
|
6
|
+
import { DropdownMultiSelectCommon, } from "./DropdownMultiSelectCommon";
|
|
7
|
+
import { ItemLabel } from "../ItemLabel/ItemLabelLF";
|
|
8
|
+
import { ItemMessage } from "../ItemMessage/ItemMessage";
|
|
9
|
+
export const DropdownMultiSelect = (props) => (_jsx(DropdownMultiSelectCommon, { ...props, MultiSelectListComponent: MultiSelectList, TagListComponent: TagList, TagComponent: Tag, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ItemMultiSelectCommonProps } from "../ItemMultiSelect/ItemMultiSelectCommon";
|
|
2
|
+
type UseDropdownMultiSelect = {
|
|
3
|
+
items: Omit<ItemMultiSelectCommonProps, "Checkbox">[];
|
|
4
|
+
defaultValue?: string[];
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const useDropdownMultiSelect: ({ items, defaultValue, placeholder, }: UseDropdownMultiSelect) => {
|
|
8
|
+
selectedValues: string[];
|
|
9
|
+
selectedItems: Omit<ItemMultiSelectCommonProps, "Checkbox">[];
|
|
10
|
+
summary: string;
|
|
11
|
+
accessibleCount: string;
|
|
12
|
+
handleOnItemSelect: (id: string, checked: boolean) => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useState, useMemo } from "react";
|
|
2
|
+
export const useDropdownMultiSelect = ({ items, defaultValue, placeholder, }) => {
|
|
3
|
+
const [internalValues, setInternalValues] = useState(() => defaultValue ??
|
|
4
|
+
items.filter((item) => item.checked).map((item) => item.id));
|
|
5
|
+
const valuesLength = internalValues.length;
|
|
6
|
+
const selectedItems = useMemo(() => internalValues.length > 0
|
|
7
|
+
? items.filter((item) => internalValues.includes(item.id))
|
|
8
|
+
: [], [items, internalValues]);
|
|
9
|
+
const summary = useMemo(() => {
|
|
10
|
+
if (valuesLength === 0) {
|
|
11
|
+
return placeholder ?? "Sélectionner";
|
|
12
|
+
}
|
|
13
|
+
return valuesLength === 1
|
|
14
|
+
? "1 élément sélectionné"
|
|
15
|
+
: `${valuesLength} éléments sélectionnés`;
|
|
16
|
+
}, [valuesLength, placeholder]);
|
|
17
|
+
const accessibleCount = useMemo(() => {
|
|
18
|
+
const base = valuesLength === 0 ? "0 élément sélectionné" : summary;
|
|
19
|
+
return `${base} sur ${items.length}`;
|
|
20
|
+
}, [summary, valuesLength, items.length]);
|
|
21
|
+
const handleOnItemSelect = (id, checked) => {
|
|
22
|
+
setInternalValues((current) => checked ? [...current, id] : current.filter((itemId) => itemId !== id));
|
|
23
|
+
};
|
|
24
|
+
return {
|
|
25
|
+
selectedValues: internalValues,
|
|
26
|
+
selectedItems,
|
|
27
|
+
summary,
|
|
28
|
+
accessibleCount,
|
|
29
|
+
handleOnItemSelect,
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FileUploadProps } from "./FileUploadCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/Form/FileUpload/FileUpload/FileUploadAll.css";
|
|
3
3
|
export declare const FileUpload: {
|
|
4
|
-
({ ...props }: FileUploadProps): import("react
|
|
4
|
+
({ ...props }: FileUploadProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -15,7 +15,7 @@ type FileUploadCommonProps = FileUploadProps & {
|
|
|
15
15
|
InputFileComponent: ComponentType<InputFileProps>;
|
|
16
16
|
};
|
|
17
17
|
export declare const FileUploadCommon: {
|
|
18
|
-
({ InputFileComponent, className, children, fileListLabel, ...props }: FileUploadCommonProps): import("react
|
|
18
|
+
({ InputFileComponent, className, children, fileListLabel, ...props }: FileUploadCommonProps): import("react").JSX.Element;
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FileUploadProps } from "./FileUploadCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/client/Form/FileUpload/FileUpload/FileUploadAll.css";
|
|
3
3
|
export declare const FileUpload: {
|
|
4
|
-
({ ...props }: FileUploadProps): import("react
|
|
4
|
+
({ ...props }: FileUploadProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type InputFileProps } from "./InputFileCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/Form/FileUpload/InputFile/InputFileApollo.css";
|
|
3
3
|
declare const InputFile: {
|
|
4
|
-
({ ...props }: InputFileProps): import("react
|
|
4
|
+
({ ...props }: InputFileProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export { InputFile };
|
|
@@ -59,7 +59,7 @@ type InputFileCommonProps = InputFileProps & {
|
|
|
59
59
|
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
60
60
|
};
|
|
61
61
|
export declare const InputFileCommon: {
|
|
62
|
-
({ ItemLabelComponent, ItemMessageComponent, id, label, description, sideButtonLabel, onSideButtonClick, moreButtonLabel, onMoreButtonClick, labelProps, helper, required, message, messageType, className, dropzoneLabels, children, containerProps, ...props }: InputFileCommonProps): import("react
|
|
62
|
+
({ ItemLabelComponent, ItemMessageComponent, id, label, description, sideButtonLabel, onSideButtonClick, moreButtonLabel, onMoreButtonClick, labelProps, helper, required, message, messageType, className, dropzoneLabels, children, containerProps, ...props }: InputFileCommonProps): import("react").JSX.Element;
|
|
63
63
|
displayName: string;
|
|
64
64
|
};
|
|
65
65
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type InputFileProps } from "./InputFileCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/client/Form/FileUpload/InputFile/InputFileLF.css";
|
|
3
3
|
declare const InputFile: {
|
|
4
|
-
({ ...props }: InputFileProps): import("react
|
|
4
|
+
({ ...props }: InputFileProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export { InputFile };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type ItemFileProps } from "./ItemFileCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/prospect/ContentItemMono/ContentItemMonoApollo.css";
|
|
3
3
|
import "@axa-fr/canopee-css/prospect/Form/FileUpload/ItemFile/ItemFileApollo.css";
|
|
4
|
-
export declare const ItemFile: (props: ItemFileProps) => import("react
|
|
4
|
+
export declare const ItemFile: (props: ItemFileProps) => import("react").JSX.Element;
|
|
@@ -51,4 +51,4 @@ export type ItemFileCommonProps = ItemFileProps & {
|
|
|
51
51
|
removeIcon: string;
|
|
52
52
|
previewIcon: string;
|
|
53
53
|
};
|
|
54
|
-
export declare const ItemFileCommon: ({ file, isLoading, errorMessage, className, onRemove, onPreview, previewProps, removeProps, removeIcon, previewIcon, ItemSpinnerComponent, ItemIconComponent, ItemMessageComponent, ClickIconComponent, ...props }: ItemFileCommonProps) => import("react
|
|
54
|
+
export declare const ItemFileCommon: ({ file, isLoading, errorMessage, className, onRemove, onPreview, previewProps, removeProps, removeIcon, previewIcon, ItemSpinnerComponent, ItemIconComponent, ItemMessageComponent, ClickIconComponent, ...props }: ItemFileCommonProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type ItemFileProps } from "./ItemFileCommon";
|
|
2
2
|
import "@axa-fr/canopee-css/client/ContentItemMono/ContentItemMonoLF.css";
|
|
3
3
|
import "@axa-fr/canopee-css/client/Form/FileUpload/ItemFile/ItemFileLF.css";
|
|
4
|
-
export declare const ItemFile: (props: ItemFileProps) => import("react
|
|
4
|
+
export declare const ItemFile: (props: ItemFileProps) => import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/prospect/Form/InputDate/InputDateApollo.css";
|
|
2
2
|
import { type InputDateProps } from "./InputDateCommon";
|
|
3
3
|
export declare const InputDate: {
|
|
4
|
-
({ ...props }: InputDateProps): import("react
|
|
4
|
+
({ ...props }: InputDateProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -6,7 +6,7 @@ export type InputDateAtomProps = Omit<ComponentPropsWithRef<"input">, "value" |
|
|
|
6
6
|
max?: ComponentProps<"input">["max"] | Date;
|
|
7
7
|
};
|
|
8
8
|
declare const InputDateAtom: {
|
|
9
|
-
({ defaultValue, value, min, max, ...otherProps }: InputDateAtomProps): import("react
|
|
9
|
+
({ defaultValue, value, min, max, ...otherProps }: InputDateAtomProps): import("react").JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export { InputDateAtom };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
3
3
|
import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
4
4
|
import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
@@ -8,7 +8,7 @@ export type InputDateProps = Omit<ComponentPropsWithRef<"input">, "value" | "min
|
|
|
8
8
|
value?: Date | string;
|
|
9
9
|
min?: InputDateAtomProps["min"];
|
|
10
10
|
max?: InputDateAtomProps["max"];
|
|
11
|
-
helper?:
|
|
11
|
+
helper?: ReactNode;
|
|
12
12
|
hidePicker?: boolean;
|
|
13
13
|
label: ItemLabelProps["children"];
|
|
14
14
|
containerProps?: GridContainerProps;
|
|
@@ -18,7 +18,7 @@ type InputDateCommonProps = InputDateProps & {
|
|
|
18
18
|
ItemMessageComponent: ComponentType<ItemMessageProps>;
|
|
19
19
|
};
|
|
20
20
|
declare const InputDateCommon: {
|
|
21
|
-
({ className, helper, message, messageType, label, description, moreButtonLabel, onMoreButtonClick, ItemLabelComponent, ItemMessageComponent, required, hidePicker, max, min, containerProps, ...otherProps }: InputDateCommonProps): import("react
|
|
21
|
+
({ className, helper, message, messageType, label, description, moreButtonLabel, onMoreButtonClick, ItemLabelComponent, ItemMessageComponent, required, hidePicker, max, min, containerProps, ...otherProps }: InputDateCommonProps): import("react").JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
export { InputDateCommon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/client/Form/InputDate/InputDateLF.css";
|
|
2
2
|
import { type InputDateProps } from "./InputDateCommon";
|
|
3
3
|
export declare const InputDate: {
|
|
4
|
-
({ ...props }: InputDateProps): import("react
|
|
4
|
+
({ ...props }: InputDateProps): import("react").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
@@ -6,7 +6,7 @@ export type InputDateTextAtomProps = Omit<ComponentProps<typeof InputTextAtom>,
|
|
|
6
6
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const InputDateTextAtom: {
|
|
9
|
-
({ onChange, value, defaultValue, ...otherProps }: InputDateTextAtomProps): import("react
|
|
9
|
+
({ onChange, value, defaultValue, ...otherProps }: InputDateTextAtomProps): import("react").JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export { InputDateTextAtom };
|
|
@@ -8,5 +8,5 @@ declare const CountryCodeSelect: ({ options, defaultCountry, onChangeSelect, Ico
|
|
|
8
8
|
onChangeSelect?: (value: SingleValue<OptionType>) => void;
|
|
9
9
|
IconComponent: ComponentType<ComponentProps<typeof Icon>>;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
-
}) => import("react
|
|
11
|
+
}) => import("react").JSX.Element;
|
|
12
12
|
export { CountryCodeSelect };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "@axa-fr/canopee-css/prospect/Form/InputPhone/InputPhoneApollo.css";
|
|
2
2
|
import { type InputPhoneProps } from "./InputPhoneCommon";
|
|
3
|
-
export declare const InputPhone: (props: InputPhoneProps) => import("react
|
|
3
|
+
export declare const InputPhone: (props: InputPhoneProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import type { SingleValue } from "react-select";
|
|
3
3
|
import { Icon } from "../../Icon/IconCommon";
|
|
4
4
|
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
@@ -7,7 +7,7 @@ import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelComm
|
|
|
7
7
|
import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
8
8
|
import { type OptionType } from "./InputPhone.types";
|
|
9
9
|
export type InputPhoneProps = ComponentPropsWithRef<"input"> & {
|
|
10
|
-
helper?:
|
|
10
|
+
helper?: ReactNode;
|
|
11
11
|
defaultCountry?: string;
|
|
12
12
|
showSelect?: boolean;
|
|
13
13
|
disabled?: boolean;
|
|
@@ -25,7 +25,7 @@ type InputPhoneCommonProps = InputPhoneProps & {
|
|
|
25
25
|
IconComponent: ComponentType<ComponentProps<typeof Icon>>;
|
|
26
26
|
};
|
|
27
27
|
declare const InputPhoneCommon: {
|
|
28
|
-
({ className, helper, message, messageType, defaultCountry, showSelect, disabled, label, description, moreButtonLabel, onMoreButtonClick, required, sideButtonLabel, onSideButtonClick, countryCodeOptions, onChangeSelect, onChangeInput, mask, ItemLabelComponent, ItemMessageComponent, InputTextComponent, IconComponent, "aria-errormessage": ariaErrormessage, containerProps, ...otherProps }: InputPhoneCommonProps): import("react
|
|
28
|
+
({ className, helper, message, messageType, defaultCountry, showSelect, disabled, label, description, moreButtonLabel, onMoreButtonClick, required, sideButtonLabel, onSideButtonClick, countryCodeOptions, onChangeSelect, onChangeInput, mask, ItemLabelComponent, ItemMessageComponent, InputTextComponent, IconComponent, "aria-errormessage": ariaErrormessage, containerProps, ...otherProps }: InputPhoneCommonProps): import("react").JSX.Element;
|
|
29
29
|
displayName: string;
|
|
30
30
|
};
|
|
31
31
|
export { InputPhoneCommon };
|