@axa-fr/canopee-react 2.0.1-alpha.3 → 2.0.1-alpha.45

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.
Files changed (411) hide show
  1. package/dist/client.d.ts +7 -0
  2. package/dist/client.js +7 -0
  3. package/dist/distributeur/Accordion/Accordion.d.ts +1 -1
  4. package/dist/distributeur/Accordion/Body.d.ts +1 -1
  5. package/dist/distributeur/Accordion/CollapseCard.d.ts +1 -1
  6. package/dist/distributeur/Accordion/Header.d.ts +1 -1
  7. package/dist/distributeur/Action/Action.d.ts +1 -1
  8. package/dist/distributeur/Button/Button.d.ts +1 -1
  9. package/dist/distributeur/ButtonMultiActions/ButtonMultiActions.d.ts +1 -1
  10. package/dist/distributeur/Card/BaseCard.d.ts +1 -1
  11. package/dist/distributeur/Card/Card.d.ts +1 -1
  12. package/dist/distributeur/CardButton/CardButton.d.ts +1 -1
  13. package/dist/distributeur/CardData/CardData.d.ts +1 -1
  14. package/dist/distributeur/CardData/CardDataHeader.d.ts +1 -1
  15. package/dist/distributeur/ClickableGhost.d.ts +1 -1
  16. package/dist/distributeur/Divider/Divider.d.ts +1 -1
  17. package/dist/distributeur/EditorialMessage/EditorialMessage.d.ts +1 -1
  18. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitution.d.ts +1 -1
  19. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionColumn.d.ts +1 -1
  20. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionHeader.d.ts +1 -1
  21. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionLabel.d.ts +1 -1
  22. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionLabelValue.d.ts +1 -1
  23. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionListDef.d.ts +1 -1
  24. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionRow.d.ts +1 -1
  25. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionSection.d.ts +1 -1
  26. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionValue.d.ts +1 -1
  27. package/dist/distributeur/Experimental/Restitution/ExperimentalRestitutionValueList.d.ts +1 -1
  28. package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +2 -2
  29. package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +1 -1
  30. package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +1 -1
  31. package/dist/distributeur/Form/Choice/Choice.d.ts +1 -1
  32. package/dist/distributeur/Form/Choice/ChoiceInput.d.ts +1 -1
  33. package/dist/distributeur/Form/Date/Date.d.ts +1 -1
  34. package/dist/distributeur/Form/Date/DateInput.d.ts +1 -1
  35. package/dist/distributeur/Form/Experimental/DateInput.d.ts +1 -1
  36. package/dist/distributeur/Form/Experimental/Input.d.ts +1 -1
  37. package/dist/distributeur/Form/Experimental/InputContainer.d.ts +1 -1
  38. package/dist/distributeur/Form/Experimental/InputUnit.d.ts +1 -1
  39. package/dist/distributeur/Form/Experimental/ItemMessage.d.ts +1 -1
  40. package/dist/distributeur/Form/Experimental/Label.d.ts +1 -1
  41. package/dist/distributeur/Form/Experimental/Legend.d.ts +1 -1
  42. package/dist/distributeur/Form/Experimental/Radio/AddRadioCard.d.ts +1 -1
  43. package/dist/distributeur/Form/Experimental/Radio/RadioButton.d.ts +1 -1
  44. package/dist/distributeur/Form/Experimental/Radio/RadioCard.d.ts +1 -1
  45. package/dist/distributeur/Form/Experimental/Radio/RadioGroup.d.ts +1 -1
  46. package/dist/distributeur/Form/Experimental/Radio/RadioInput.d.ts +1 -1
  47. package/dist/distributeur/Form/Experimental/Radio/RadioItem.d.ts +1 -1
  48. package/dist/distributeur/Form/Experimental/Radio/RadioText.d.ts +1 -1
  49. package/dist/distributeur/Form/Experimental/Radio/_radioInputOptions.d.ts +1 -1
  50. package/dist/distributeur/Form/Experimental/Select.d.ts +1 -1
  51. package/dist/distributeur/Form/Experimental/SelectInput.d.ts +1 -1
  52. package/dist/distributeur/Form/Experimental/TextInput.d.ts +1 -1
  53. package/dist/distributeur/Form/File/File.d.ts +1 -1
  54. package/dist/distributeur/Form/File/FileErrors.d.ts +1 -1
  55. package/dist/distributeur/Form/File/FileInput.d.ts +1 -1
  56. package/dist/distributeur/Form/File/FileLine.d.ts +1 -1
  57. package/dist/distributeur/Form/File/FileTable.d.ts +1 -1
  58. package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.d.ts +1 -1
  59. package/dist/distributeur/Form/MultiSelect/MultiSelect.d.ts +1 -1
  60. package/dist/distributeur/Form/MultiSelect/MultiSelectInput.d.ts +1 -1
  61. package/dist/distributeur/Form/MultiSelect/ValueContainer.d.ts +2 -1
  62. package/dist/distributeur/Form/NestedQuestion/NestedQuestion.d.ts +1 -1
  63. package/dist/distributeur/Form/Number/Number.d.ts +1 -1
  64. package/dist/distributeur/Form/Number/NumberInput.d.ts +1 -1
  65. package/dist/distributeur/Form/Radio/Radio.d.ts +1 -1
  66. package/dist/distributeur/Form/Radio/RadioCardGroup.d.ts +1 -1
  67. package/dist/distributeur/Form/Radio/RadioInput.d.ts +1 -1
  68. package/dist/distributeur/Form/Radio/RadioItem.d.ts +1 -1
  69. package/dist/distributeur/Form/Select/Select.d.ts +1 -1
  70. package/dist/distributeur/Form/Select/SelectBase.d.ts +1 -1
  71. package/dist/distributeur/Form/Select/SelectDefault.d.ts +1 -1
  72. package/dist/distributeur/Form/Select/SelectInput.d.ts +1 -1
  73. package/dist/distributeur/Form/Text/Text.d.ts +1 -1
  74. package/dist/distributeur/Form/Text/TextInput.d.ts +1 -1
  75. package/dist/distributeur/Form/Textarea/Textarea.d.ts +1 -1
  76. package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +1 -1
  77. package/dist/distributeur/Form/core/Field.d.ts +1 -1
  78. package/dist/distributeur/Form/core/FieldError.d.ts +1 -1
  79. package/dist/distributeur/Form/core/HelpMessage.d.ts +1 -1
  80. package/dist/distributeur/HelpButton/index.d.ts +1 -1
  81. package/dist/distributeur/ItemFormHelper/ItemFormHelper.d.ts +1 -1
  82. package/dist/distributeur/Layout/Footer/Footer.d.ts +1 -1
  83. package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.d.ts +1 -1
  84. package/dist/distributeur/Layout/Header/Header.d.ts +1 -1
  85. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +1 -1
  86. package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -1
  87. package/dist/distributeur/Layout/Header/MenuTitleWrapper/MenuTitleWrapper.d.ts +1 -1
  88. package/dist/distributeur/Layout/Header/Name/Name.d.ts +1 -1
  89. package/dist/distributeur/Layout/Header/NavBar/NavBar.d.ts +1 -1
  90. package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -1
  91. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +2 -2
  92. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +1 -1
  93. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemLink.d.ts +1 -1
  94. package/dist/distributeur/Layout/Header/User/InnerUser.d.ts +1 -1
  95. package/dist/distributeur/Layout/Header/User/User.d.ts +1 -1
  96. package/dist/distributeur/Layout/MainContainer/MainContainer.d.ts +1 -1
  97. package/dist/distributeur/Link/Link.d.ts +1 -1
  98. package/dist/distributeur/Link/LinkAnchor.d.ts +1 -1
  99. package/dist/distributeur/Loader/ItemLoader.d.ts +1 -1
  100. package/dist/distributeur/Loader/Loader.d.ts +1 -1
  101. package/dist/distributeur/Loader/SquareLoader.d.ts +1 -1
  102. package/dist/distributeur/MandatoryMention/MandatoryMention.d.ts +1 -1
  103. package/dist/distributeur/Messages/Message.d.ts +1 -1
  104. package/dist/distributeur/ModalAgent/BooleanModal.d.ts +1 -1
  105. package/dist/distributeur/ModalAgent/Modal.d.ts +1 -1
  106. package/dist/distributeur/ModalAgent/Modal.js +1 -3
  107. package/dist/distributeur/ModalAgent/components/Body.d.ts +1 -1
  108. package/dist/distributeur/ModalAgent/components/Footer.d.ts +1 -1
  109. package/dist/distributeur/ModalAgent/components/Header.d.ts +1 -1
  110. package/dist/distributeur/ModalAgent/components/HeaderBase.d.ts +1 -1
  111. package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -1
  112. package/dist/distributeur/Popover/Popover.d.ts +1 -1
  113. package/dist/distributeur/Popover/PopoverBase.d.ts +1 -1
  114. package/dist/distributeur/Popover/PopoverClick.d.ts +2 -1
  115. package/dist/distributeur/Popover/PopoverOver.d.ts +2 -1
  116. package/dist/distributeur/Restitution/ArticleRestitution.d.ts +1 -1
  117. package/dist/distributeur/Restitution/HeaderRestitution.d.ts +1 -1
  118. package/dist/distributeur/Restitution/Restitution.d.ts +1 -1
  119. package/dist/distributeur/Restitution/RestitutionList.d.ts +1 -1
  120. package/dist/distributeur/Restitution/SectionRestitution.d.ts +1 -1
  121. package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +1 -1
  122. package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +1 -1
  123. package/dist/distributeur/Restitution/SectionRestitutionTitle.d.ts +1 -1
  124. package/dist/distributeur/Steps/Step.d.ts +1 -1
  125. package/dist/distributeur/Steps/StepBase.d.ts +1 -1
  126. package/dist/distributeur/Steps/StepCurrent.d.ts +1 -1
  127. package/dist/distributeur/Steps/StepDisabled.d.ts +1 -1
  128. package/dist/distributeur/Steps/StepLink.d.ts +1 -1
  129. package/dist/distributeur/Steps/StepNoLink.d.ts +1 -1
  130. package/dist/distributeur/Steps/Steps.d.ts +1 -1
  131. package/dist/distributeur/Steps/VerticalStep.d.ts +1 -1
  132. package/dist/distributeur/Summary/index.d.ts +1 -1
  133. package/dist/distributeur/Svg/Svg.d.ts +1 -1
  134. package/dist/distributeur/Table/Pagination/Items.d.ts +1 -1
  135. package/dist/distributeur/Table/Pagination/Li.d.ts +1 -1
  136. package/dist/distributeur/Table/Pagination/LiPoint.d.ts +1 -1
  137. package/dist/distributeur/Table/Pagination/Pager.d.ts +1 -1
  138. package/dist/distributeur/Table/Pagination/PaginationButton.d.ts +1 -1
  139. package/dist/distributeur/Table/Pagination/Paging.d.ts +1 -1
  140. package/dist/distributeur/Table/TBody.d.ts +1 -1
  141. package/dist/distributeur/Table/THead.d.ts +1 -1
  142. package/dist/distributeur/Table/Table.d.ts +6 -6
  143. package/dist/distributeur/Table/Td.d.ts +1 -1
  144. package/dist/distributeur/Table/Th.d.ts +1 -1
  145. package/dist/distributeur/Table/Tr.d.ts +1 -1
  146. package/dist/distributeur/Tabs/components/Pane.d.ts +1 -1
  147. package/dist/distributeur/Tabs/components/TabsCore.d.ts +1 -1
  148. package/dist/distributeur/Tabs/components/TabsStateless.d.ts +1 -1
  149. package/dist/distributeur/Tag/Tag.d.ts +1 -1
  150. package/dist/distributeur/Timeline/Timeline.d.ts +1 -1
  151. package/dist/distributeur/Timeline/TimelineCircle.d.ts +1 -1
  152. package/dist/distributeur/Timeline/TimelineDetails.d.ts +1 -1
  153. package/dist/distributeur/Title/Title.d.ts +1 -1
  154. package/dist/distributeur/utilities/VisuallyHidden.d.ts +1 -1
  155. package/dist/prospect-client/Accordion/AccordionApollo.d.ts +1 -1
  156. package/dist/prospect-client/Accordion/AccordionCommon.d.ts +1 -1
  157. package/dist/prospect-client/Accordion/AccordionLF.d.ts +1 -1
  158. package/dist/prospect-client/AccordionContextual/AccordionContextualApollo.d.ts +1 -1
  159. package/dist/prospect-client/AccordionContextual/AccordionContextualCommon.d.ts +1 -1
  160. package/dist/prospect-client/AccordionContextual/AccordionContextualLF.d.ts +1 -1
  161. package/dist/prospect-client/AccordionCore/AccordionCoreApollo.d.ts +1 -1
  162. package/dist/prospect-client/AccordionCore/AccordionCoreCommon.d.ts +1 -1
  163. package/dist/prospect-client/AccordionCore/AccordionCoreLF.d.ts +1 -1
  164. package/dist/prospect-client/AppName/AppName.d.ts +1 -1
  165. package/dist/prospect-client/BasePicture/BasePicture.d.ts +1 -1
  166. package/dist/prospect-client/Button/ButtonApollo.d.ts +1 -1
  167. package/dist/prospect-client/Button/ButtonCommon.d.ts +1 -1
  168. package/dist/prospect-client/Button/ButtonLF.d.ts +1 -1
  169. package/dist/prospect-client/Card/CardCommon.d.ts +5 -2
  170. package/dist/prospect-client/Card/CardCommon.js +2 -1
  171. package/dist/prospect-client/CardMarketing/CardMarketingApollo.d.ts +3 -0
  172. package/dist/prospect-client/CardMarketing/CardMarketingApollo.js +6 -0
  173. package/dist/prospect-client/CardMarketing/CardMarketingCommon.d.ts +32 -0
  174. package/dist/prospect-client/CardMarketing/CardMarketingCommon.js +20 -0
  175. package/dist/prospect-client/CardMarketing/CardMarketingLF.d.ts +3 -0
  176. package/dist/prospect-client/CardMarketing/CardMarketingLF.js +6 -0
  177. package/dist/prospect-client/CardMessage/CardMessageCommon.d.ts +1 -1
  178. package/dist/prospect-client/ClickIcon/ClickIconCommon.d.ts +1 -1
  179. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionApollo.d.ts +1 -1
  180. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +1 -1
  181. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionLF.d.ts +1 -1
  182. package/dist/prospect-client/ContentItemMono/ContentItemMonoApollo.d.ts +1 -1
  183. package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +1 -1
  184. package/dist/prospect-client/ContentItemMono/ContentItemMonoCore.d.ts +1 -1
  185. package/dist/prospect-client/ContentItemMono/ContentItemMonoLF.d.ts +1 -1
  186. package/dist/prospect-client/DataAgent/DataAgentApollo.d.ts +1 -1
  187. package/dist/prospect-client/DataAgent/DataAgentCommon.d.ts +1 -1
  188. package/dist/prospect-client/DataAgent/DataAgentLF.d.ts +1 -1
  189. package/dist/prospect-client/Divider/DividerCommon.d.ts +1 -1
  190. package/dist/prospect-client/Fieldset/FieldsetApollo.d.ts +1 -1
  191. package/dist/prospect-client/Fieldset/FieldsetCommon.d.ts +1 -1
  192. package/dist/prospect-client/Fieldset/FieldsetLF.d.ts +1 -1
  193. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +1 -1
  194. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +1 -1
  195. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +1 -1
  196. package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.d.ts +1 -1
  197. package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.d.ts +1 -1
  198. package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.d.ts +1 -1
  199. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +1 -1
  200. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.d.ts +1 -1
  201. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +1 -1
  202. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.d.ts +1 -1
  203. package/dist/prospect-client/Form/Dropdown/DropdownApollo.d.ts +1 -1
  204. package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +3 -3
  205. package/dist/prospect-client/Form/Dropdown/DropdownLF.d.ts +1 -1
  206. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.d.ts +1 -1
  207. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.d.ts +1 -1
  208. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.d.ts +1 -1
  209. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.d.ts +1 -1
  210. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +1 -1
  211. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.d.ts +1 -1
  212. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileApollo.d.ts +1 -1
  213. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +1 -1
  214. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileLF.d.ts +1 -1
  215. package/dist/prospect-client/Form/InputDate/InputDateApollo.d.ts +1 -1
  216. package/dist/prospect-client/Form/InputDate/InputDateAtom.d.ts +1 -1
  217. package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +3 -3
  218. package/dist/prospect-client/Form/InputDate/InputDateLF.d.ts +1 -1
  219. package/dist/prospect-client/Form/InputDate/InputDateTextAtom.d.ts +1 -1
  220. package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.d.ts +1 -1
  221. package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.d.ts +1 -1
  222. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +3 -3
  223. package/dist/prospect-client/Form/InputPhone/InputPhoneLF.d.ts +1 -1
  224. package/dist/prospect-client/Form/InputText/InputTextApollo.d.ts +1 -1
  225. package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +3 -3
  226. package/dist/prospect-client/Form/InputText/InputTextLF.d.ts +1 -1
  227. package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.d.ts +1 -1
  228. package/dist/prospect-client/Form/ItemLabel/ItemLabelApollo.d.ts +1 -1
  229. package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.d.ts +1 -1
  230. package/dist/prospect-client/Form/ItemLabel/ItemLabelLF.d.ts +1 -1
  231. package/dist/prospect-client/Form/ItemMessage/ItemMessage.d.ts +1 -1
  232. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.d.ts +1 -1
  233. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.d.ts +1 -1
  234. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.d.ts +1 -1
  235. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.d.ts +1 -1
  236. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.d.ts +1 -1
  237. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +1 -1
  238. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.d.ts +1 -1
  239. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +1 -1
  240. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.d.ts +1 -1
  241. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +1 -1
  242. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.d.ts +1 -1
  243. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +1 -1
  244. package/dist/prospect-client/Form/TextArea/TextAreaApollo.d.ts +1 -1
  245. package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +3 -3
  246. package/dist/prospect-client/Form/TextArea/TextAreaLF.d.ts +1 -1
  247. package/dist/prospect-client/Grid/DebugGridApollo.d.ts +1 -1
  248. package/dist/prospect-client/Grid/DebugGridCommon.d.ts +1 -1
  249. package/dist/prospect-client/Grid/DebugGridLF.d.ts +1 -1
  250. package/dist/prospect-client/Header/HeaderApollo.d.ts +1 -1
  251. package/dist/prospect-client/Header/HeaderCommon.d.ts +1 -1
  252. package/dist/prospect-client/Header/HeaderLF.d.ts +1 -1
  253. package/dist/prospect-client/Heading/HeadingApollo.d.ts +1 -1
  254. package/dist/prospect-client/Heading/HeadingCommon.d.ts +1 -1
  255. package/dist/prospect-client/Heading/HeadingLF.d.ts +1 -1
  256. package/dist/prospect-client/Heading/HeadingWithSubheadings.d.ts +1 -1
  257. package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
  258. package/dist/prospect-client/ItemMenu/ItemMenuCommon.d.ts +1 -1
  259. package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +1 -1
  260. package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutApollo.d.ts +8 -0
  261. package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutApollo.js +14 -0
  262. package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutCommon.d.ts +24 -0
  263. package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutCommon.js +29 -0
  264. package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutLF.d.ts +8 -0
  265. package/dist/prospect-client/Layout/ColumnLayout/ColumnsLayoutLF.js +14 -0
  266. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +1 -1
  267. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.d.ts +1 -1
  268. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +1 -1
  269. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.d.ts +1 -1
  270. package/dist/prospect-client/Layout/Footer/DynamicIcons.d.ts +1 -1
  271. package/dist/prospect-client/Layout/Footer/FooterCommon.d.ts +1 -1
  272. package/dist/prospect-client/Layout/Footer/MenuIcons.d.ts +1 -1
  273. package/dist/prospect-client/Layout/Footer/MenuLink.d.ts +1 -1
  274. package/dist/prospect-client/Layout/FormLayout/FormLayout.d.ts +1 -1
  275. package/dist/prospect-client/Layout/MainLayout/MainLayoutApollo.d.ts +8 -0
  276. package/dist/prospect-client/Layout/MainLayout/MainLayoutApollo.js +15 -0
  277. package/dist/prospect-client/Layout/MainLayout/MainLayoutCommon.d.ts +48 -0
  278. package/dist/prospect-client/Layout/MainLayout/MainLayoutCommon.js +36 -0
  279. package/dist/prospect-client/Layout/MainLayout/MainLayoutLF.d.ts +8 -0
  280. package/dist/prospect-client/Layout/MainLayout/MainLayoutLF.js +15 -0
  281. package/dist/prospect-client/Layout/PatternCardMarketing/PatternCardMarketing.d.ts +7 -0
  282. package/dist/prospect-client/Layout/PatternCardMarketing/PatternCardMarketing.js +7 -0
  283. package/dist/prospect-client/Layout/PatternMozaicFree/PatternMozaicFree.d.ts +9 -0
  284. package/dist/prospect-client/Layout/PatternMozaicFree/PatternMozaicFree.js +13 -0
  285. package/dist/prospect-client/Layout/PatternMozaicGrid/PatternMozaicGrid.d.ts +19 -0
  286. package/dist/prospect-client/Layout/PatternMozaicGrid/PatternMozaicGrid.js +28 -0
  287. package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionApollo.d.ts +7 -0
  288. package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionApollo.js +7 -0
  289. package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionCommon.d.ts +16 -0
  290. package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionCommon.js +18 -0
  291. package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionLF.d.ts +7 -0
  292. package/dist/prospect-client/Layout/PatternWithAction/PatternWithActionLF.js +7 -0
  293. package/dist/prospect-client/LevelSelector/LevelSelectorApollo.d.ts +1 -1
  294. package/dist/prospect-client/LevelSelector/LevelSelectorCommon.d.ts +1 -1
  295. package/dist/prospect-client/LevelSelector/LevelSelectorLF.d.ts +1 -1
  296. package/dist/prospect-client/Link/LinkApollo.d.ts +1 -0
  297. package/dist/prospect-client/Link/LinkApollo.js +1 -0
  298. package/dist/prospect-client/Link/LinkCommon.d.ts +8 -1
  299. package/dist/prospect-client/Link/LinkCommon.js +17 -2
  300. package/dist/prospect-client/Link/LinkLF.d.ts +1 -0
  301. package/dist/prospect-client/Link/LinkLF.js +1 -0
  302. package/dist/prospect-client/List/ClickItem/ClickItemApollo.d.ts +1 -1
  303. package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +1 -1
  304. package/dist/prospect-client/List/ClickItem/ClickItemLF.d.ts +1 -1
  305. package/dist/prospect-client/List/ClickItem/ClickItemWrapper.d.ts +1 -1
  306. package/dist/prospect-client/List/ClickItem/components/ClickItemContentApollo.d.ts +1 -1
  307. package/dist/prospect-client/List/ClickItem/components/ClickItemContentCommon.d.ts +1 -1
  308. package/dist/prospect-client/List/ClickItem/components/ClickItemContentLF.d.ts +1 -1
  309. package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixApollo.d.ts +1 -1
  310. package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixCommon.d.ts +1 -1
  311. package/dist/prospect-client/List/ClickItem/components/ClickItemPrefixLF.d.ts +1 -1
  312. package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixApollo.d.ts +1 -1
  313. package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.d.ts +1 -1
  314. package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixLF.d.ts +1 -1
  315. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoApollo.d.ts +1 -1
  316. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.d.ts +1 -1
  317. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoLF.d.ts +1 -1
  318. package/dist/prospect-client/List/List/ListApollo.d.ts +1 -1
  319. package/dist/prospect-client/List/List/ListCommon.d.ts +1 -1
  320. package/dist/prospect-client/List/List/ListLF.d.ts +1 -1
  321. package/dist/prospect-client/Loader/LoaderApollo.d.ts +1 -1
  322. package/dist/prospect-client/Loader/LoaderCommon.d.ts +1 -1
  323. package/dist/prospect-client/Loader/LoaderLF.d.ts +1 -1
  324. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.d.ts +1 -1
  325. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.d.ts +1 -1
  326. package/dist/prospect-client/MenuBurger/MenuBurgerLF.d.ts +1 -1
  327. package/dist/prospect-client/Message/MessageApollo.d.ts +1 -1
  328. package/dist/prospect-client/Message/MessageCommon.d.ts +1 -1
  329. package/dist/prospect-client/Message/MessageLF.d.ts +1 -1
  330. package/dist/prospect-client/MessageBar/MessageBarAction.d.ts +1 -1
  331. package/dist/prospect-client/MessageBar/MessageBarApollo.d.ts +1 -1
  332. package/dist/prospect-client/MessageBar/MessageBarCommon.d.ts +1 -1
  333. package/dist/prospect-client/MessageBar/MessageBarDescription.d.ts +1 -1
  334. package/dist/prospect-client/MessageBar/MessageBarLF.d.ts +1 -1
  335. package/dist/prospect-client/MessageBar/MessageBarSummary.d.ts +1 -1
  336. package/dist/prospect-client/Modal/ModalApollo.d.ts +1 -1
  337. package/dist/prospect-client/Modal/ModalCommon.d.ts +1 -1
  338. package/dist/prospect-client/Modal/ModalLF.d.ts +1 -1
  339. package/dist/prospect-client/Modal/components/ModalCore.d.ts +1 -1
  340. package/dist/prospect-client/Modal/components/ModalCore.js +1 -3
  341. package/dist/prospect-client/Modal/components/ModalCoreBody.d.ts +1 -1
  342. package/dist/prospect-client/Modal/components/ModalCoreFooterApollo.d.ts +1 -1
  343. package/dist/prospect-client/Modal/components/ModalCoreFooterCommon.d.ts +1 -1
  344. package/dist/prospect-client/Modal/components/ModalCoreFooterLF.d.ts +1 -1
  345. package/dist/prospect-client/Modal/components/ModalCoreHeaderApollo.d.ts +1 -1
  346. package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.d.ts +1 -1
  347. package/dist/prospect-client/Modal/components/ModalCoreHeaderLF.d.ts +1 -1
  348. package/dist/prospect-client/MultiMessage/MultiMessageApollo.d.ts +1 -1
  349. package/dist/prospect-client/MultiMessage/MultiMessageCommon.d.ts +1 -1
  350. package/dist/prospect-client/MultiMessage/MultiMessageFooter.d.ts +1 -1
  351. package/dist/prospect-client/MultiMessage/MultiMessageLF.d.ts +1 -1
  352. package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationApollo.d.ts +1 -1
  353. package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationCommon.d.ts +1 -1
  354. package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationLF.d.ts +1 -1
  355. package/dist/prospect-client/Pagination/PaginationApollo.d.ts +1 -1
  356. package/dist/prospect-client/Pagination/PaginationCommon.d.ts +1 -1
  357. package/dist/prospect-client/Pagination/PaginationLF.d.ts +1 -1
  358. package/dist/prospect-client/ProgressBar/ProgressBarCommon.d.ts +1 -1
  359. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupApollo.d.ts +1 -1
  360. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.d.ts +1 -1
  361. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupLF.d.ts +1 -1
  362. package/dist/prospect-client/Skeleton/Skeleton.d.ts +1 -1
  363. package/dist/prospect-client/SkeletonGrid/SkeletonGrid.d.ts +1 -1
  364. package/dist/prospect-client/SkeletonList/SkeletonListApollo.d.ts +1 -1
  365. package/dist/prospect-client/SkeletonList/SkeletonListCommon.d.ts +1 -1
  366. package/dist/prospect-client/SkeletonList/SkeletonListLF.d.ts +1 -1
  367. package/dist/prospect-client/Spinner/SpinnerCommon.d.ts +1 -1
  368. package/dist/prospect-client/Stepper/StepperApollo.d.ts +1 -1
  369. package/dist/prospect-client/Stepper/StepperCommon.d.ts +3 -3
  370. package/dist/prospect-client/Stepper/StepperLF.d.ts +1 -1
  371. package/dist/prospect-client/Svg/Svg.d.ts +2 -2
  372. package/dist/prospect-client/TabBar/TabBarApollo.d.ts +1 -1
  373. package/dist/prospect-client/TabBar/TabBarCommon.d.ts +1 -1
  374. package/dist/prospect-client/TabBar/TabBarCommon.js +1 -1
  375. package/dist/prospect-client/TabBar/TabBarLF.d.ts +1 -1
  376. package/dist/prospect-client/TabMenu/TabMenu.d.ts +1 -1
  377. package/dist/prospect-client/TabMenu/TabMenu.js +1 -3
  378. package/dist/prospect-client/Table/TBody.d.ts +1 -1
  379. package/dist/prospect-client/Table/THead.d.ts +1 -1
  380. package/dist/prospect-client/Table/TableCommon.d.ts +6 -6
  381. package/dist/prospect-client/Table/Td.d.ts +1 -1
  382. package/dist/prospect-client/Table/Th.d.ts +1 -1
  383. package/dist/prospect-client/Table/Tr.d.ts +1 -1
  384. package/dist/prospect-client/TableMobileCard/DRow.d.ts +1 -1
  385. package/dist/prospect-client/TableMobileCard/Dd.d.ts +1 -1
  386. package/dist/prospect-client/TableMobileCard/Dt.d.ts +1 -1
  387. package/dist/prospect-client/TableMobileCard/TableMobileCard.d.ts +4 -4
  388. package/dist/prospect-client/Tag/TagCommon.d.ts +1 -1
  389. package/dist/prospect-client/TagList/TagListApollo.d.ts +1 -1
  390. package/dist/prospect-client/TagList/TagListCommon.d.ts +1 -1
  391. package/dist/prospect-client/TagList/TagListLF.d.ts +1 -1
  392. package/dist/prospect-client/TimelineVertical/TimelineVerticalApollo.d.ts +1 -1
  393. package/dist/prospect-client/TimelineVertical/TimelineVerticalCommon.d.ts +1 -1
  394. package/dist/prospect-client/TimelineVertical/TimelineVerticalLF.d.ts +1 -1
  395. package/dist/prospect-client/Toggle/ToggleApollo.d.ts +1 -1
  396. package/dist/prospect-client/Toggle/ToggleCommon.d.ts +1 -1
  397. package/dist/prospect-client/Toggle/ToggleLF.d.ts +1 -1
  398. package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.d.ts +1 -1
  399. package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.d.ts +1 -1
  400. package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.d.ts +1 -1
  401. package/dist/prospect-client/pages/ValidPage/ValidPageApollo.d.ts +1 -1
  402. package/dist/prospect-client/pages/ValidPage/ValidPageCommon.d.ts +1 -1
  403. package/dist/prospect-client/pages/ValidPage/ValidPageLF.d.ts +1 -1
  404. package/dist/prospect-client/utilities/VisuallyHidden.d.ts +1 -1
  405. package/dist/prospect-client/utilities/flattenFragments.d.ts +2 -0
  406. package/dist/prospect-client/utilities/flattenFragments.js +4 -0
  407. package/dist/prospect-client/utilities/types/Permutations.d.ts +1 -0
  408. package/dist/prospect-client/utilities/types/Permutations.js +1 -0
  409. package/dist/prospect.d.ts +7 -0
  410. package/dist/prospect.js +7 -0
  411. package/package.json +16 -16
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Heading } from "../../Heading/HeadingApollo";
3
+ import { Right, Left, Content, Top, ColumnsLayoutCommon, } from "./ColumnsLayoutCommon";
4
+ export {} from "./ColumnsLayoutCommon";
5
+ /**
6
+ * Prospect columns layout with its `top`, `Left`, `Content`, and `Right` slots.
7
+ *
8
+ * @param props - Layout options, including the optional heading configuration.
9
+ */
10
+ export const ColumnsLayout = (props) => _jsx(ColumnsLayoutCommon, { ...props, HeadingComponent: Heading });
11
+ ColumnsLayout.Right = Right;
12
+ ColumnsLayout.Left = Left;
13
+ ColumnsLayout.Content = Content;
14
+ ColumnsLayout.Top = Top;
@@ -0,0 +1,24 @@
1
+ import { type ComponentProps, type ComponentType, type PropsWithChildren, type ReactElement, type ReactNode } from "react";
2
+ import { type HeadingProps } from "../../Heading/types";
3
+ import "@axa-fr/canopee-css/prospect/Layout/ColumnLayout/ColumnsLayoutAll.css";
4
+ export type ColumnsLayoutProps = ComponentProps<"section"> & {
5
+ headingProps?: HeadingProps;
6
+ isFit?: boolean;
7
+ };
8
+ export declare const Top: ({ children }: PropsWithChildren) => ReactNode;
9
+ export declare const Left: ({ children }: PropsWithChildren) => ReactNode;
10
+ export declare const Content: ({ children }: PropsWithChildren) => ReactNode;
11
+ export declare const Right: ({ children }: PropsWithChildren) => ReactNode;
12
+ type ColumnsLayoutCommonProps = ColumnsLayoutProps & {
13
+ HeadingComponent: ComponentType<HeadingProps>;
14
+ };
15
+ export declare const ColumnsLayoutCommon: {
16
+ ({ children, className, headingProps, HeadingComponent, isFit, ...columnsLayoutProps }: ColumnsLayoutCommonProps): import("react").JSX.Element;
17
+ Top: ({ children }: PropsWithChildren) => ReactNode;
18
+ Left: ({ children }: PropsWithChildren) => ReactNode;
19
+ Content: ({ children }: PropsWithChildren) => ReactNode;
20
+ Right: ({ children }: PropsWithChildren) => ReactNode;
21
+ };
22
+ type ColumnsLayoutSubComponents = Pick<typeof ColumnsLayoutCommon, "Top" | "Left" | "Right" | "Content">;
23
+ export type ColumnsLayoutWithSubComponents = ((props: ColumnsLayoutProps) => ReactElement) & ColumnsLayoutSubComponents;
24
+ export {};
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { isValidElement, } from "react";
3
+ import {} from "../../Heading/types";
4
+ import "@axa-fr/canopee-css/prospect/Layout/ColumnLayout/ColumnsLayoutAll.css";
5
+ import { getClassName } from "../../utilities/getClassName";
6
+ import { flattenFragments } from "../../utilities/flattenFragments";
7
+ export const Top = ({ children }) => children;
8
+ export const Left = ({ children }) => children;
9
+ export const Content = ({ children }) => children;
10
+ export const Right = ({ children }) => children;
11
+ const DEFAULT_CLASS_NAME = "af-columns-layout";
12
+ export const ColumnsLayoutCommon = ({ children, className, headingProps, HeadingComponent, isFit, ...columnsLayoutProps }) => {
13
+ const childrenArray = flattenFragments(children);
14
+ const isSlot = (child, slot) => isValidElement(child) && child.type === slot;
15
+ const top = childrenArray.filter((child) => isSlot(child, Top));
16
+ const left = childrenArray.filter((child) => isSlot(child, Left));
17
+ const right = childrenArray.filter((child) => isSlot(child, Right));
18
+ const content = childrenArray.filter((child) => !isSlot(child, Top) && !isSlot(child, Left) && !isSlot(child, Right));
19
+ const invalidFit = Boolean(isFit) && (left.length > 0 || right.length > 0);
20
+ return (_jsxs(_Fragment, { children: [top.length > 0 ? (_jsx("article", { className: `${DEFAULT_CLASS_NAME}__top subgrid`, children: top })) : null, _jsxs("section", { className: getClassName({
21
+ baseClassName: DEFAULT_CLASS_NAME,
22
+ modifiers: [isFit && !invalidFit ? "fit" : ""],
23
+ className: `grid subgrid ${className ?? ""}`,
24
+ }), ...columnsLayoutProps, children: [headingProps ? _jsx(HeadingComponent, { ...headingProps }) : null, left.length > 0 ? (_jsx("section", { className: `${DEFAULT_CLASS_NAME}__left subgrid`, children: left })) : null, content.length > 0 ? (_jsx("section", { className: `${DEFAULT_CLASS_NAME}__content subgrid`, children: content })) : null, right.length > 0 ? (_jsx("section", { className: `${DEFAULT_CLASS_NAME}__right subgrid`, children: right })) : null] })] }));
25
+ };
26
+ ColumnsLayoutCommon.Top = Top;
27
+ ColumnsLayoutCommon.Left = Left;
28
+ ColumnsLayoutCommon.Content = Content;
29
+ ColumnsLayoutCommon.Right = Right;
@@ -0,0 +1,8 @@
1
+ import { type ColumnsLayoutWithSubComponents } from "./ColumnsLayoutCommon";
2
+ export { type ColumnsLayoutProps } from "./ColumnsLayoutCommon";
3
+ /**
4
+ * Client columns layout with its `Top`, `Left`, `Content`, and `Right` slots.
5
+ *
6
+ * @param props - Layout options, including the optional heading configuration.
7
+ */
8
+ export declare const ColumnsLayout: ColumnsLayoutWithSubComponents;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Heading } from "../../Heading/HeadingLF";
3
+ import { Right, Left, Content, Top, ColumnsLayoutCommon, } from "./ColumnsLayoutCommon";
4
+ export {} from "./ColumnsLayoutCommon";
5
+ /**
6
+ * Client columns layout with its `Top`, `Left`, `Content`, and `Right` slots.
7
+ *
8
+ * @param props - Layout options, including the optional heading configuration.
9
+ */
10
+ export const ColumnsLayout = (props) => _jsx(ColumnsLayoutCommon, { ...props, HeadingComponent: Heading });
11
+ ColumnsLayout.Right = Right;
12
+ ColumnsLayout.Left = Left;
13
+ ColumnsLayout.Content = Content;
14
+ ColumnsLayout.Top = Top;
@@ -13,7 +13,7 @@ export { ExitLayoutSkeleton, type ExitLayoutSkeletonProps, } from "./ExitLayoutS
13
13
  * @returns {JSX.Element} The rendered Apollo-themed ExitLayout.
14
14
  */
15
15
  export declare const ExitLayout: {
16
- (props: ExitLayoutProps): import("react/jsx-runtime").JSX.Element;
16
+ (props: ExitLayoutProps): import("react").JSX.Element;
17
17
  Agent: ({ children }: import("react").PropsWithChildren) => (string | number | bigint | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | {
18
18
  props: {
19
19
  className: string;
@@ -27,7 +27,7 @@ export declare const Agent: ({ children }: PropsWithChildren) => (string | numbe
27
27
  export declare const Action: ({ children }: PropsWithChildren) => import("react").ReactNode;
28
28
  export declare const Content: ({ children }: PropsWithChildren) => import("react").ReactNode;
29
29
  export declare const ExitLayoutCommon: {
30
- ({ headingProps, iconProps, children, HeadingComponent, IconComponent, }: ExitLayoutCommonProps): import("react/jsx-runtime").JSX.Element;
30
+ ({ headingProps, iconProps, children, HeadingComponent, IconComponent, }: ExitLayoutCommonProps): import("react").JSX.Element;
31
31
  Agent: ({ children }: PropsWithChildren) => (string | number | bigint | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | {
32
32
  props: {
33
33
  className: string;
@@ -13,7 +13,7 @@ export { ExitLayoutSkeleton, type ExitLayoutSkeletonProps, } from "./ExitLayoutS
13
13
  * @returns {JSX.Element} The rendered Look and Feel ExitLayout.
14
14
  */
15
15
  export declare const ExitLayout: {
16
- (props: ExitLayoutProps): import("react/jsx-runtime").JSX.Element;
16
+ (props: ExitLayoutProps): import("react").JSX.Element;
17
17
  Agent: ({ children }: import("react").PropsWithChildren) => (string | number | bigint | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | {
18
18
  props: {
19
19
  className: string;
@@ -20,4 +20,4 @@ export type ExitLayoutSkeletonProps = {
20
20
  * @param {boolean} [props.hasHeading] - Displays the heading placeholder.
21
21
  * @returns {JSX.Element} The rendered ExitLayoutSkeleton component.
22
22
  */
23
- export declare const ExitLayoutSkeleton: ({ hasAgent, hasIcon, hasAction, hasContent, hasHeading, }: ExitLayoutSkeletonProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const ExitLayoutSkeleton: ({ hasAgent, hasIcon, hasAction, hasContent, hasHeading, }: ExitLayoutSkeletonProps) => import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export declare const DynamicIcon: ({ iconName, className, }: {
2
2
  iconName: string;
3
3
  className?: string;
4
- }) => string | import("react/jsx-runtime").JSX.Element;
4
+ }) => string | import("react").JSX.Element;
@@ -7,4 +7,4 @@ export type FooterProps = {
7
7
  expandLinkText: string;
8
8
  id?: string;
9
9
  };
10
- export declare const Footer: ({ links, socialMedias, copyright, expandLinkText, id, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const Footer: ({ links, socialMedias, copyright, expandLinkText, id, }: FooterProps) => import("react").JSX.Element;
@@ -5,5 +5,5 @@ export type SocialMedia = {
5
5
  type MenuIconsProps = {
6
6
  socialMedias: SocialMedia[];
7
7
  };
8
- export declare const MenuIcons: ({ socialMedias }: MenuIconsProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const MenuIcons: ({ socialMedias }: MenuIconsProps) => import("react").JSX.Element | null;
9
9
  export {};
@@ -7,5 +7,5 @@ type MenuLinkProps = {
7
7
  links: Link[];
8
8
  isAboutOpen?: boolean;
9
9
  };
10
- export declare const MenuLink: ({ links, isAboutOpen }: MenuLinkProps) => import("react/jsx-runtime").JSX.Element | null;
10
+ export declare const MenuLink: ({ links, isAboutOpen }: MenuLinkProps) => import("react").JSX.Element | null;
11
11
  export {};
@@ -1762,7 +1762,7 @@ export declare const Body: ({ children }: PropsWithChildren) => (string | number
1762
1762
  key: string | null;
1763
1763
  })[] | null | undefined;
1764
1764
  export declare const FormLayout: {
1765
- ({ children, className, "aria-label": ariaLabel, ...formProps }: FormLayoutProps): import("react/jsx-runtime").JSX.Element;
1765
+ ({ children, className, "aria-label": ariaLabel, ...formProps }: FormLayoutProps): import("react").JSX.Element;
1766
1766
  Header: ({ children }: PropsWithChildren) => import("react").ReactNode;
1767
1767
  Body: ({ children }: PropsWithChildren) => (string | number | bigint | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | {
1768
1768
  props: {
@@ -0,0 +1,8 @@
1
+ import { type MainLayoutProps, type MainLayoutSlotProps, type MainLayoutWithSubComponents } from "./MainLayoutCommon";
2
+ import "@axa-fr/canopee-css/prospect/Layout/MainLayout/MainLayoutApollo.css";
3
+ /**
4
+ * Prospect page skeleton: header, optional `MainLayout.Top` area, main content (children),
5
+ * optional `MainLayout.Bottom` area and footer.
6
+ */
7
+ export declare const MainLayout: MainLayoutWithSubComponents;
8
+ export type { MainLayoutProps, MainLayoutSlotProps };
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DebugGrid } from "../../Grid/DebugGridApollo";
3
+ import { Header } from "../../Header/HeaderApollo";
4
+ import { Footer } from "../Footer/FooterApollo";
5
+ import { Bottom, MainLayoutCommon, Top, } from "./MainLayoutCommon";
6
+ import { Link } from "../../Link/LinkApollo";
7
+ import { Icon } from "../../Icon/IconApollo";
8
+ import "@axa-fr/canopee-css/prospect/Layout/MainLayout/MainLayoutApollo.css";
9
+ /**
10
+ * Prospect page skeleton: header, optional `MainLayout.Top` area, main content (children),
11
+ * optional `MainLayout.Bottom` area and footer.
12
+ */
13
+ export const MainLayout = (props) => (_jsx(MainLayoutCommon, { ...props, HeaderComponent: Header, FooterComponent: Footer, DebugGridComponent: DebugGrid, LinkComponent: Link, IconComponent: Icon }));
14
+ MainLayout.Top = Top;
15
+ MainLayout.Bottom = Bottom;
@@ -0,0 +1,48 @@
1
+ import { type ComponentProps, type ComponentType, type PropsWithChildren, type ReactElement, type ReactNode } from "react";
2
+ import type { DebugGridProps } from "../../Grid/DebugGridCommon";
3
+ import { type HeaderProps } from "../../Header/HeaderCommon";
4
+ import { type FooterProps } from "../Footer/FooterCommon";
5
+ import { type LinkProps } from "../../Link/LinkCommon";
6
+ import { type IconProps } from "../../Icon/IconCommon";
7
+ export type MainLayoutSlotProps = PropsWithChildren<{
8
+ /** Additional class applied to the element wrapping the slot. */
9
+ className?: string;
10
+ }>;
11
+ /** Content rendered on the grid between the header and the main content. */
12
+ export declare const Top: ({ children }: MainLayoutSlotProps) => ReactNode;
13
+ /** Content rendered on the grid between the main content and the footer. */
14
+ export declare const Bottom: ({ children }: MainLayoutSlotProps) => ReactNode;
15
+ export type MainLayoutProps = {
16
+ /** Props of the back link displayed under the header. Omit it to render no back link. */
17
+ backLinkProps?: LinkProps;
18
+ /** Props passed to `Header`. Omit it to render no header. */
19
+ headerProps?: HeaderProps;
20
+ /** Props passed to `Footer`. Omit it to render no footer. */
21
+ footerProps?: FooterProps;
22
+ /** Props passed to `DebugGrid`. Omit it to render no debug grid. */
23
+ debugGridProps?: DebugGridProps;
24
+ /** Additional class applied to the layout root element. */
25
+ className?: string;
26
+ /** Native props passed to `<main>` when main content is present. */
27
+ mainProps?: Omit<ComponentProps<"main">, "children">;
28
+ /**
29
+ * Main page content, rendered in `<main className="grid">`.
30
+ * Use `MainLayout.Top` and `MainLayout.Bottom` to render content around it.
31
+ */
32
+ children?: ReactNode;
33
+ };
34
+ type MainLayoutCommonProps = MainLayoutProps & {
35
+ HeaderComponent: ComponentType<HeaderProps>;
36
+ FooterComponent: ComponentType<FooterProps>;
37
+ DebugGridComponent: ComponentType<DebugGridProps>;
38
+ LinkComponent: ComponentType<LinkProps>;
39
+ IconComponent: ComponentType<IconProps>;
40
+ };
41
+ export declare const MainLayoutCommon: {
42
+ ({ debugGridProps, headerProps, footerProps, backLinkProps, className, mainProps, children, HeaderComponent, FooterComponent, DebugGridComponent, LinkComponent, IconComponent, }: MainLayoutCommonProps): import("react").JSX.Element;
43
+ Top: ({ children }: MainLayoutSlotProps) => ReactNode;
44
+ Bottom: ({ children }: MainLayoutSlotProps) => ReactNode;
45
+ };
46
+ type MainLayoutSubComponents = Pick<typeof MainLayoutCommon, "Top" | "Bottom">;
47
+ export type MainLayoutWithSubComponents = ((props: MainLayoutProps) => ReactElement) & MainLayoutSubComponents;
48
+ export {};
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { isValidElement, } from "react";
3
+ import arrowLeftAlt from "@material-symbols/svg-400/outlined/arrow_left_alt.svg";
4
+ import {} from "../../Header/HeaderCommon";
5
+ import {} from "../Footer/FooterCommon";
6
+ import {} from "../../Link/LinkCommon";
7
+ import {} from "../../Icon/IconCommon";
8
+ import { getClassName } from "../../utilities/getClassName";
9
+ import { flattenFragments } from "../../utilities/flattenFragments";
10
+ /** Content rendered on the grid between the header and the main content. */
11
+ export const Top = ({ children }) => children;
12
+ /** Content rendered on the grid between the main content and the footer. */
13
+ export const Bottom = ({ children }) => children;
14
+ const DEFAULT_CLASS = "af-main-layout";
15
+ const isSlot = (child, slot) => isValidElement(child) && child.type === slot;
16
+ export const MainLayoutCommon = ({ debugGridProps, headerProps, footerProps, backLinkProps, className, mainProps, children, HeaderComponent, FooterComponent, DebugGridComponent, LinkComponent, IconComponent, }) => {
17
+ const childrenArray = flattenFragments(children);
18
+ const top = childrenArray.filter((child) => isSlot(child, Top));
19
+ const bottom = childrenArray.filter((child) => isSlot(child, Bottom));
20
+ const mainChildren = childrenArray.filter((child) => !isSlot(child, Top) && !isSlot(child, Bottom));
21
+ return (_jsxs(_Fragment, { children: [debugGridProps ? _jsx(DebugGridComponent, { ...debugGridProps }) : null, _jsxs("div", { className: getClassName({
22
+ baseClassName: DEFAULT_CLASS,
23
+ className,
24
+ }), children: [headerProps ? _jsx(HeaderComponent, { ...headerProps }) : null, _jsxs("div", { className: `${DEFAULT_CLASS}__content`, children: [backLinkProps ? (_jsx("div", { className: `grid ${DEFAULT_CLASS}__back-link`, children: _jsx(LinkComponent, { leftIcon: _jsx(IconComponent, { src: arrowLeftAlt }), ...backLinkProps }) })) : null, top.map((slot) => (_jsx("div", { className: getClassName({
25
+ baseClassName: `${DEFAULT_CLASS}__top`,
26
+ className: slot.props.className,
27
+ }), children: slot }, slot.key))), mainChildren.length > 0 ? (_jsx("main", { ...mainProps, className: getClassName({
28
+ baseClassName: `${DEFAULT_CLASS}__center`,
29
+ className: `grid ${mainProps?.className ?? ""}`,
30
+ }), children: mainChildren })) : null, bottom.map((slot) => (_jsx("div", { className: getClassName({
31
+ baseClassName: `${DEFAULT_CLASS}__bottom`,
32
+ className: slot.props.className,
33
+ }), children: slot }, slot.key)))] }), footerProps ? _jsx(FooterComponent, { ...footerProps }) : null] })] }));
34
+ };
35
+ MainLayoutCommon.Top = Top;
36
+ MainLayoutCommon.Bottom = Bottom;
@@ -0,0 +1,8 @@
1
+ import { type MainLayoutProps, type MainLayoutSlotProps, type MainLayoutWithSubComponents } from "./MainLayoutCommon";
2
+ import "@axa-fr/canopee-css/client/Layout/MainLayout/MainLayoutLF.css";
3
+ /**
4
+ * Client page skeleton: header, optional `MainLayout.Top` area, main content (children),
5
+ * optional `MainLayout.Bottom` area and footer.
6
+ */
7
+ export declare const MainLayout: MainLayoutWithSubComponents;
8
+ export type { MainLayoutProps, MainLayoutSlotProps };
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DebugGrid } from "../../Grid/DebugGridLF";
3
+ import { Header } from "../../Header/HeaderLF";
4
+ import { Footer } from "../Footer/FooterLF";
5
+ import { Bottom, MainLayoutCommon, Top, } from "./MainLayoutCommon";
6
+ import { Link } from "../../Link/LinkLF";
7
+ import { Icon } from "../../Icon/IconLF";
8
+ import "@axa-fr/canopee-css/client/Layout/MainLayout/MainLayoutLF.css";
9
+ /**
10
+ * Client page skeleton: header, optional `MainLayout.Top` area, main content (children),
11
+ * optional `MainLayout.Bottom` area and footer.
12
+ */
13
+ export const MainLayout = (props) => (_jsx(MainLayoutCommon, { ...props, HeaderComponent: Header, FooterComponent: Footer, DebugGridComponent: DebugGrid, LinkComponent: Link, IconComponent: Icon }));
14
+ MainLayout.Top = Top;
15
+ MainLayout.Bottom = Bottom;
@@ -0,0 +1,7 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import "@axa-fr/canopee-css/prospect/Layout/PatternCardMarketing/PatternCardMarketingAll.css";
3
+ export type PatternCardMarketingProps = Omit<ComponentProps<"section">, "children"> & {
4
+ /** Direct cards to arrange. With exactly three cards, the first spans both rows on desktop. */
5
+ children: ReactNode;
6
+ };
7
+ export declare const PatternCardMarketing: ({ children, className, ...sectionProps }: PatternCardMarketingProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/prospect/Layout/PatternCardMarketing/PatternCardMarketingAll.css";
3
+ import { getClassName } from "../../utilities/getClassName";
4
+ export const PatternCardMarketing = ({ children, className, ...sectionProps }) => (_jsx("section", { ...sectionProps, className: getClassName({
5
+ baseClassName: "af-pattern-card-marketing",
6
+ className,
7
+ }), children: children }));
@@ -0,0 +1,9 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import "@axa-fr/canopee-css/prospect/Layout/PatternMozaicFree/PatternMozaicFreeAll.css";
3
+ export type PatternMozaicFreeProps = Omit<ComponentProps<"section">, "children"> & {
4
+ /** Content arranged in equal-width columns, independently of the application grid. */
5
+ children: ReactNode;
6
+ /** Number of columns above 1023px. Below this breakpoint, uses one column. Defaults to 2. */
7
+ cols?: number;
8
+ };
9
+ export declare const PatternMozaicFree: ({ children, cols, className, style, ...sectionProps }: PatternMozaicFreeProps) => import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/prospect/Layout/PatternMozaicFree/PatternMozaicFreeAll.css";
3
+ import { getClassName } from "../../utilities/getClassName";
4
+ export const PatternMozaicFree = ({ children, cols = 2, className, style, ...sectionProps }) => {
5
+ const gridStyle = {
6
+ ...style,
7
+ "--mozaic-free-cols": cols,
8
+ };
9
+ return (_jsx("section", { ...sectionProps, className: getClassName({
10
+ baseClassName: "af-pattern-mozaic-free",
11
+ className,
12
+ }), style: gridStyle, children: children }));
13
+ };
@@ -0,0 +1,19 @@
1
+ import { type ComponentProps, type ReactNode } from "react";
2
+ import "@axa-fr/canopee-css/prospect/Layout/PatternMozaicGrid/PatternMozaicGridAll.css";
3
+ export type PatternMozaicGridProps = Omit<ComponentProps<"section">, "children"> & {
4
+ /** Direct elements sharing the same responsive column spans. Must forward style to their root. */
5
+ children: ReactNode;
6
+ /** Initial span for every child, used when no mobile span is provided. Defaults to 2. */
7
+ cols?: number;
8
+ /** Columns per child on mobile. Defaults to cols. */
9
+ "data-cols-mobile"?: number;
10
+ /** Columns per child above 667px. Defaults to the mobile span. */
11
+ "data-cols-tablet"?: number;
12
+ /** Columns per child above 1023px. Defaults to the tablet span. */
13
+ "data-cols-desktop-small"?: number;
14
+ /** Columns per child above 1279px. Defaults to the small desktop span. */
15
+ "data-cols-desktop-medium"?: number;
16
+ /** Columns per child above 1599px. Defaults to the medium desktop span. */
17
+ "data-cols-desktop-large"?: number;
18
+ };
19
+ export declare const PatternMozaicGrid: ({ children, cols, "data-cols-mobile": colsMobile, "data-cols-tablet": colsTablet, "data-cols-desktop-small": colsDesktopSmall, "data-cols-desktop-medium": colsDesktopMedium, "data-cols-desktop-large": colsDesktopLarge, className, ...sectionProps }: PatternMozaicGridProps) => import("react").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Children, cloneElement, isValidElement, } from "react";
3
+ import "@axa-fr/canopee-css/prospect/Layout/PatternMozaicGrid/PatternMozaicGridAll.css";
4
+ import { getClassName } from "../../utilities/getClassName";
5
+ export const PatternMozaicGrid = ({ children, cols = 2, "data-cols-mobile": colsMobile = cols, "data-cols-tablet": colsTablet = colsMobile, "data-cols-desktop-small": colsDesktopSmall = colsTablet, "data-cols-desktop-medium": colsDesktopMedium = colsDesktopSmall, "data-cols-desktop-large": colsDesktopLarge = colsDesktopMedium, className, ...sectionProps }) => {
6
+ const responsiveStyle = {
7
+ "--cols-mobile": colsMobile,
8
+ "--cols-tablet": colsTablet,
9
+ "--cols-desktop-small": colsDesktopSmall,
10
+ "--cols-desktop-medium": colsDesktopMedium,
11
+ "--cols-desktop-large": colsDesktopLarge,
12
+ };
13
+ const childrenWithCols = Children.map(children, (child) => {
14
+ if (!isValidElement(child)) {
15
+ return child;
16
+ }
17
+ return cloneElement(child, {
18
+ style: {
19
+ ...child.props.style,
20
+ ...responsiveStyle,
21
+ },
22
+ });
23
+ });
24
+ return (_jsx("section", { ...sectionProps, className: getClassName({
25
+ baseClassName: "af-pattern-mozaic-grid",
26
+ className: `subgrid ${className ?? ""}`,
27
+ }), children: childrenWithCols }));
28
+ };
@@ -0,0 +1,7 @@
1
+ import { type PatternWithActionProps } from "./PatternWithActionCommon";
2
+ export { type PatternWithActionProps } from "./PatternWithActionCommon";
3
+ /** Prospect section with an optional heading, a call to action and content. */
4
+ export declare const PatternWithAction: {
5
+ (props: PatternWithActionProps): import("react").JSX.Element;
6
+ Action: ({ children }: import("react").PropsWithChildren) => import("react").ReactNode;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Heading } from "../../Heading/HeadingApollo";
3
+ import { Action, PatternWithActionCommon, } from "./PatternWithActionCommon";
4
+ export {} from "./PatternWithActionCommon";
5
+ /** Prospect section with an optional heading, a call to action and content. */
6
+ export const PatternWithAction = (props) => (_jsx(PatternWithActionCommon, { ...props, HeadingComponent: Heading }));
7
+ PatternWithAction.Action = Action;
@@ -0,0 +1,16 @@
1
+ import { type ComponentProps, type ComponentType, type PropsWithChildren, type ReactNode } from "react";
2
+ import "@axa-fr/canopee-css/prospect/Layout/PatternWithAction/PatternWithActionAll.css";
3
+ import type { HeadingProps } from "../../Heading/types";
4
+ export type PatternWithActionProps = Omit<ComponentProps<"section">, "children"> & {
5
+ /** Section content. Wrap the call to action in `PatternWithAction.Action`. */
6
+ children?: ReactNode;
7
+ /** Section title. Rendered as a level 2 heading unless `level` is provided. */
8
+ headingProps?: HeadingProps;
9
+ };
10
+ /** Call to action displayed next to the heading on desktop, after the content on mobile and tablet. */
11
+ export declare const Action: ({ children }: PropsWithChildren) => ReactNode;
12
+ type PatternWithActionCommonProps = PatternWithActionProps & {
13
+ HeadingComponent: ComponentType<HeadingProps>;
14
+ };
15
+ export declare const PatternWithActionCommon: ({ children, headingProps, className, HeadingComponent, ...sectionProps }: PatternWithActionCommonProps) => import("react").JSX.Element;
16
+ export {};
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { isValidElement, } from "react";
3
+ import "@axa-fr/canopee-css/prospect/Layout/PatternWithAction/PatternWithActionAll.css";
4
+ import { getClassName } from "../../utilities/getClassName";
5
+ import { flattenFragments } from "../../utilities/flattenFragments";
6
+ const DEFAULT_CLASS_NAME = "af-pattern-with-action";
7
+ /** Call to action displayed next to the heading on desktop, after the content on mobile and tablet. */
8
+ export const Action = ({ children }) => children;
9
+ export const PatternWithActionCommon = ({ children, headingProps, className, HeadingComponent, ...sectionProps }) => {
10
+ const childrenArray = flattenFragments(children);
11
+ const isAction = (child) => isValidElement(child) && child.type === Action;
12
+ const actions = childrenArray.filter(isAction);
13
+ const content = childrenArray.filter((child) => !isAction(child));
14
+ return (_jsxs("section", { ...sectionProps, className: getClassName({
15
+ baseClassName: DEFAULT_CLASS_NAME,
16
+ className: `subgrid ${className ?? ""}`,
17
+ }), children: [headingProps ? (_jsx("div", { className: `${DEFAULT_CLASS_NAME}__header`, children: _jsx(HeadingComponent, { level: 2, ...headingProps }) })) : null, content.length > 0 ? (_jsx("div", { className: `${DEFAULT_CLASS_NAME}__content subgrid`, children: content })) : null, actions.length > 0 ? (_jsx("div", { className: `${DEFAULT_CLASS_NAME}__action`, children: actions })) : null] }));
18
+ };
@@ -0,0 +1,7 @@
1
+ import { type PatternWithActionProps } from "./PatternWithActionCommon";
2
+ export { type PatternWithActionProps } from "./PatternWithActionCommon";
3
+ /** Client section with an optional heading, a call to action and content. */
4
+ export declare const PatternWithAction: {
5
+ (props: PatternWithActionProps): import("react").JSX.Element;
6
+ Action: ({ children }: import("react").PropsWithChildren) => import("react").ReactNode;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Heading } from "../../Heading/HeadingLF";
3
+ import { Action, PatternWithActionCommon, } from "./PatternWithActionCommon";
4
+ export {} from "./PatternWithActionCommon";
5
+ /** Client section with an optional heading, a call to action and content. */
6
+ export const PatternWithAction = (props) => (_jsx(PatternWithActionCommon, { ...props, HeadingComponent: Heading }));
7
+ PatternWithAction.Action = Action;
@@ -1,4 +1,4 @@
1
1
  import "@axa-fr/canopee-css/prospect/LevelSelector/LevelSelectorApollo.css";
2
2
  import { type LevelSelectorProps } from "./LevelSelectorCommon";
3
- export declare const LevelSelector: (props: LevelSelectorProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const LevelSelector: (props: LevelSelectorProps) => import("react").JSX.Element;
4
4
  export { type LevelSelectorProps };
@@ -14,5 +14,5 @@ type LevelSelectorCommonProps = LevelSelectorProps & {
14
14
  ClickIconComponent: ComponentType<ComponentProps<typeof ClickIcon>>;
15
15
  CardComponent: ComponentType<ComponentProps<typeof CardCommon>>;
16
16
  };
17
- export declare const LevelSelectorCommon: ({ title, description, value, stepsCount, ClickIconComponent, CardComponent, minusAriaLabel, plusAriaLabel, onChange, }: LevelSelectorCommonProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const LevelSelectorCommon: ({ title, description, value, stepsCount, ClickIconComponent, CardComponent, minusAriaLabel, plusAriaLabel, onChange, }: LevelSelectorCommonProps) => import("react").JSX.Element;
18
18
  export {};
@@ -1,4 +1,4 @@
1
1
  import "@axa-fr/canopee-css/client/LevelSelector/LevelSelectorLF.css";
2
2
  import { type LevelSelectorProps } from "./LevelSelectorCommon";
3
- export declare const LevelSelector: (props: LevelSelectorProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const LevelSelector: (props: LevelSelectorProps) => import("react").JSX.Element;
4
4
  export { type LevelSelectorProps };
@@ -1,2 +1,3 @@
1
+ import "@axa-fr/canopee-css/prospect/Button/ButtonApollo.css";
1
2
  import "@axa-fr/canopee-css/prospect/Link/LinkApollo.css";
2
3
  export { Link, type LinkVariants, linkVariants, type LinkProps, } from "./LinkCommon";
@@ -1,2 +1,3 @@
1
+ import "@axa-fr/canopee-css/prospect/Button/ButtonApollo.css";
1
2
  import "@axa-fr/canopee-css/prospect/Link/LinkApollo.css";
2
3
  export { Link, linkVariants, } from "./LinkCommon";
@@ -2,6 +2,13 @@ import type { ElementType, ReactNode } from "react";
2
2
  import type { PolymorphicComponent } from "../utilities/types/PolymorphicComponent";
3
3
  export declare const linkVariants: {
4
4
  readonly inverse: "inverse";
5
+ readonly "button-primary": "button-primary";
6
+ readonly "button-primary-business": "button-primary-business";
7
+ readonly "button-primary-inverse": "button-primary-inverse";
8
+ readonly "button-secondary": "button-secondary";
9
+ readonly "button-secondary-inverse": "button-secondary-inverse";
10
+ readonly "button-tertiary": "button-tertiary";
11
+ readonly "button-ghost": "button-ghost";
5
12
  };
6
13
  export type LinkVariants = keyof typeof linkVariants;
7
14
  export type LinkProps<T extends ElementType = "a"> = PolymorphicComponent<T, {
@@ -12,4 +19,4 @@ export type LinkProps<T extends ElementType = "a"> = PolymorphicComponent<T, {
12
19
  className?: string;
13
20
  children?: ReactNode;
14
21
  }>;
15
- export declare const Link: <T extends ElementType = "a">({ as, variant, openInNewTab, leftIcon, rightIcon, children, className, ...props }: LinkProps<T>) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Link: <T extends ElementType = "a">({ as, variant, openInNewTab, leftIcon, rightIcon, children, className, ...props }: LinkProps<T>) => import("react").JSX.Element;
@@ -4,17 +4,32 @@ import { Svg } from "../Svg/Svg";
4
4
  import { getClassName } from "../utilities/getClassName";
5
5
  export const linkVariants = {
6
6
  inverse: "inverse",
7
+ "button-primary": "button-primary",
8
+ "button-primary-business": "button-primary-business",
9
+ "button-primary-inverse": "button-primary-inverse",
10
+ "button-secondary": "button-secondary",
11
+ "button-secondary-inverse": "button-secondary-inverse",
12
+ "button-tertiary": "button-tertiary",
13
+ "button-ghost": "button-ghost",
7
14
  };
15
+ const BUTTON_VARIANT_PREFIX = "button-";
16
+ const getButtonClassName = (variant) => variant?.startsWith(BUTTON_VARIANT_PREFIX)
17
+ ? `af-btn-client af-btn-client--${variant.slice(BUTTON_VARIANT_PREFIX.length)}`
18
+ : undefined;
8
19
  export const Link = ({ as, variant, openInNewTab = false, leftIcon, rightIcon, children, className, ...props }) => {
9
20
  const Component = as ?? "a";
10
21
  const newTabProps = openInNewTab && {
11
22
  target: "_blank",
12
23
  rel: "noopener noreferrer",
13
24
  };
25
+ const buttonClassName = getButtonClassName(variant);
14
26
  return (_jsxs(Component, { className: getClassName({
15
27
  baseClassName: "af-link",
16
- modifiers: [variant, openInNewTab && "openInNewTab"],
17
- className,
28
+ modifiers: [
29
+ buttonClassName ? undefined : variant,
30
+ openInNewTab && "openInNewTab",
31
+ ],
32
+ className: [buttonClassName, className].filter(Boolean).join(" "),
18
33
  }), ...newTabProps, ...props, children: [leftIcon, children, openInNewTab || Boolean(rightIcon)
19
34
  ? (rightIcon ?? _jsx(Svg, { src: openInNew }))
20
35
  : null] }));
@@ -1,2 +1,3 @@
1
+ import "@axa-fr/canopee-css/client/Button/ButtonLF.css";
1
2
  import "@axa-fr/canopee-css/client/Link/LinkLF.css";
2
3
  export { Link, type LinkVariants, linkVariants, type LinkProps, } from "./LinkCommon";
@@ -1,2 +1,3 @@
1
+ import "@axa-fr/canopee-css/client/Button/ButtonLF.css";
1
2
  import "@axa-fr/canopee-css/client/Link/LinkLF.css";
2
3
  export { Link, linkVariants, } from "./LinkCommon";
@@ -1,4 +1,4 @@
1
1
  import "@axa-fr/canopee-css/prospect/List/ClickItem/ClickItemApollo.css";
2
2
  import type { ClickItemProps } from "./types";
3
- export declare const ClickItem: (props: ClickItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ClickItem: (props: ClickItemProps) => import("react").JSX.Element;
4
4
  export { clickItemStates, type ClickItemStates, clickItemVariants, type ClickItemVariants, } from "./ClickItemCommon";
@@ -13,4 +13,4 @@ export declare const clickItemStates: {
13
13
  readonly loading: "loading";
14
14
  };
15
15
  export type ClickItemStates = keyof typeof clickItemStates;
16
- export declare const ClickItemCommon: ({ className, state, variant, icon, title, subtitle, textSecondary, textTertiary, tagLabel, tagProps, basePictureProps, onClick, ariaLabelForActionIcon, ClickItemContentComponent, ClickItemSuffixComponent, ClickItemPrefixComponent, }: ClickItemPropsCommon) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const ClickItemCommon: ({ className, state, variant, icon, title, subtitle, textSecondary, textTertiary, tagLabel, tagProps, basePictureProps, onClick, ariaLabelForActionIcon, ClickItemContentComponent, ClickItemSuffixComponent, ClickItemPrefixComponent, }: ClickItemPropsCommon) => import("react").JSX.Element;