@axa-fr/canopee-react 1.8.1-alpha.1 → 2.0.0-RC.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (486) hide show
  1. package/dist/client.d.ts +21 -19
  2. package/dist/client.js +21 -19
  3. package/dist/distributeur/Accordion/Accordion.d.ts +1 -3
  4. package/dist/distributeur/Accordion/Accordion.js +2 -5
  5. package/dist/distributeur/Accordion/CollapseCard.d.ts +1 -3
  6. package/dist/distributeur/Accordion/CollapseCard.js +2 -4
  7. package/dist/distributeur/Accordion/Header.d.ts +1 -3
  8. package/dist/distributeur/Accordion/Header.js +1 -2
  9. package/dist/distributeur/Action/Action.d.ts +8 -4
  10. package/dist/distributeur/Action/Action.js +4 -5
  11. package/dist/distributeur/Button/Button.d.ts +9 -7
  12. package/dist/distributeur/Button/Button.js +8 -2
  13. package/dist/distributeur/ButtonMultiActions/ButtonMultiActions.d.ts +10 -0
  14. package/dist/distributeur/ButtonMultiActions/ButtonMultiActions.js +51 -0
  15. package/dist/distributeur/ButtonMultiActions/index.d.ts +2 -0
  16. package/dist/distributeur/ButtonMultiActions/index.js +1 -0
  17. package/dist/distributeur/Card/BaseCard.d.ts +14 -0
  18. package/dist/distributeur/Card/BaseCard.js +23 -0
  19. package/dist/distributeur/CardButton/CardButton.d.ts +18 -0
  20. package/dist/distributeur/CardButton/CardButton.js +12 -0
  21. package/dist/distributeur/ClickableGhost.d.ts +36 -0
  22. package/dist/distributeur/ClickableGhost.js +26 -0
  23. package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +6 -3
  24. package/dist/distributeur/Form/Checkbox/Checkbox.js +11 -6
  25. package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +6 -3
  26. package/dist/distributeur/Form/Checkbox/CheckboxInput.js +5 -5
  27. package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +7 -5
  28. package/dist/distributeur/Form/Checkbox/CheckboxItem.js +5 -5
  29. package/dist/distributeur/Form/Choice/Choice.d.ts +6 -5
  30. package/dist/distributeur/Form/Choice/Choice.js +4 -4
  31. package/dist/distributeur/Form/Choice/ChoiceInput.d.ts +6 -3
  32. package/dist/distributeur/Form/Choice/ChoiceInput.js +2 -4
  33. package/dist/distributeur/Form/Date/Date.d.ts +5 -3
  34. package/dist/distributeur/Form/Date/Date.js +5 -5
  35. package/dist/distributeur/Form/Date/DateInput.d.ts +4 -1
  36. package/dist/distributeur/Form/Date/DateInput.js +2 -4
  37. package/dist/distributeur/Form/Experimental/DateInput.d.ts +31 -0
  38. package/dist/distributeur/Form/Experimental/DateInput.js +27 -0
  39. package/dist/distributeur/Form/Experimental/Input.d.ts +5 -1
  40. package/dist/distributeur/Form/Experimental/Input.js +4 -4
  41. package/dist/distributeur/Form/Experimental/InputContainer.d.ts +4 -1
  42. package/dist/distributeur/Form/Experimental/InputContainer.js +2 -2
  43. package/dist/distributeur/Form/Experimental/InputUnit.d.ts +1 -1
  44. package/dist/distributeur/Form/Experimental/InputUnit.js +1 -1
  45. package/dist/distributeur/Form/Experimental/ItemMessage.d.ts +1 -1
  46. package/dist/distributeur/Form/Experimental/ItemMessage.js +1 -1
  47. package/dist/distributeur/Form/Experimental/Label.d.ts +1 -2
  48. package/dist/distributeur/Form/Experimental/Legend.d.ts +12 -0
  49. package/dist/distributeur/Form/Experimental/Legend.js +3 -0
  50. package/dist/distributeur/Form/Experimental/Radio/AddRadioCard.d.ts +7 -0
  51. package/dist/distributeur/Form/Experimental/Radio/AddRadioCard.js +14 -0
  52. package/dist/distributeur/Form/Experimental/Radio/RadioButton.d.ts +13 -0
  53. package/dist/distributeur/Form/Experimental/Radio/RadioButton.js +3 -0
  54. package/dist/distributeur/Form/Experimental/Radio/RadioCard.d.ts +10 -0
  55. package/dist/distributeur/Form/Experimental/Radio/RadioCard.js +13 -0
  56. package/dist/distributeur/Form/Experimental/Radio/RadioGroup.d.ts +8 -0
  57. package/dist/distributeur/Form/Experimental/Radio/RadioGroup.js +10 -0
  58. package/dist/distributeur/Form/Experimental/Radio/RadioInput.d.ts +18 -0
  59. package/dist/distributeur/Form/Experimental/Radio/RadioInput.js +34 -0
  60. package/dist/distributeur/Form/Experimental/Radio/RadioItem.d.ts +4 -0
  61. package/dist/distributeur/Form/Experimental/Radio/RadioItem.js +10 -0
  62. package/dist/distributeur/Form/Experimental/Radio/RadioText.d.ts +6 -0
  63. package/dist/distributeur/Form/Experimental/Radio/RadioText.js +3 -0
  64. package/dist/distributeur/Form/Experimental/Radio/_radioInputOptions.d.ts +8 -0
  65. package/dist/distributeur/Form/Experimental/Radio/_radioInputOptions.js +7 -0
  66. package/dist/distributeur/Form/Experimental/Select.d.ts +8 -0
  67. package/dist/distributeur/Form/Experimental/Select.js +16 -0
  68. package/dist/distributeur/Form/Experimental/SelectInput.d.ts +36 -0
  69. package/dist/distributeur/Form/Experimental/SelectInput.js +26 -0
  70. package/dist/distributeur/Form/Experimental/TextInput.d.ts +4 -1
  71. package/dist/distributeur/Form/Experimental/TextInput.js +4 -4
  72. package/dist/distributeur/Form/Experimental/index.d.ts +11 -0
  73. package/dist/distributeur/Form/Experimental/index.js +9 -0
  74. package/dist/distributeur/Form/Experimental/types.d.ts +1 -1
  75. package/dist/distributeur/Form/Experimental/useInput.hook.js +1 -1
  76. package/dist/distributeur/Form/File/File.d.ts +1 -3
  77. package/dist/distributeur/Form/File/File.js +1 -2
  78. package/dist/distributeur/Form/File/FileInput.d.ts +3 -1
  79. package/dist/distributeur/Form/File/FileInput.js +2 -2
  80. package/dist/distributeur/Form/File/FileLine.d.ts +1 -2
  81. package/dist/distributeur/Form/File/FileLine.js +6 -3
  82. package/dist/distributeur/Form/File/FileTable.d.ts +1 -2
  83. package/dist/distributeur/Form/File/FileTable.js +6 -3
  84. package/dist/distributeur/Form/MultiSelect/MultiSelectInput.js +1 -1
  85. package/dist/distributeur/Form/NestedQuestion/NestedQuestion.js +7 -3
  86. package/dist/distributeur/Form/Number/Number.d.ts +5 -5
  87. package/dist/distributeur/Form/Number/Number.js +6 -7
  88. package/dist/distributeur/Form/Number/NumberInput.js +1 -1
  89. package/dist/distributeur/Form/Radio/Radio.d.ts +12 -23
  90. package/dist/distributeur/Form/Radio/Radio.js +4 -4
  91. package/dist/distributeur/Form/Radio/RadioInput.d.ts +6 -3
  92. package/dist/distributeur/Form/Radio/RadioInput.js +4 -4
  93. package/dist/distributeur/Form/Radio/RadioItem.d.ts +4 -3
  94. package/dist/distributeur/Form/Radio/RadioItem.js +5 -5
  95. package/dist/distributeur/Form/Select/Select.d.ts +8 -340
  96. package/dist/distributeur/Form/Select/Select.js +5 -6
  97. package/dist/distributeur/Form/Select/SelectBase.d.ts +6 -23
  98. package/dist/distributeur/Form/Select/SelectBase.js +4 -9
  99. package/dist/distributeur/Form/Select/SelectDefault.d.ts +7 -4
  100. package/dist/distributeur/Form/Select/SelectDefault.js +4 -4
  101. package/dist/distributeur/Form/Select/SelectInput.d.ts +9 -376
  102. package/dist/distributeur/Form/Select/SelectInput.js +2 -4
  103. package/dist/distributeur/Form/Select/index.d.ts +0 -1
  104. package/dist/distributeur/Form/Select/index.js +0 -1
  105. package/dist/distributeur/Form/Text/Text.d.ts +5 -3
  106. package/dist/distributeur/Form/Text/Text.js +5 -5
  107. package/dist/distributeur/Form/Text/TextInput.d.ts +4 -1
  108. package/dist/distributeur/Form/Text/TextInput.js +2 -4
  109. package/dist/distributeur/Form/Textarea/Textarea.d.ts +8 -4
  110. package/dist/distributeur/Form/Textarea/Textarea.js +5 -5
  111. package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +4 -1
  112. package/dist/distributeur/Form/Textarea/TextareaInput.js +2 -4
  113. package/dist/distributeur/Form/core/Field.d.ts +4 -23
  114. package/dist/distributeur/Form/core/Field.js +23 -16
  115. package/dist/distributeur/Form/core/FieldError.js +5 -2
  116. package/dist/distributeur/Form/core/getOptionClassName.d.ts +1 -1
  117. package/dist/distributeur/Form/core/getOptionClassName.js +2 -6
  118. package/dist/distributeur/Form/core/index.d.ts +0 -8
  119. package/dist/distributeur/Form/core/index.js +0 -4
  120. package/dist/distributeur/HelpButton/index.d.ts +1 -1
  121. package/dist/distributeur/HelpButton/index.js +4 -6
  122. package/dist/distributeur/ItemFormHelper/ItemFormHelper.d.ts +8 -0
  123. package/dist/distributeur/ItemFormHelper/ItemFormHelper.js +31 -0
  124. package/dist/distributeur/Layout/Footer/Footer.d.ts +5 -3
  125. package/dist/distributeur/Layout/Footer/Footer.js +2 -2
  126. package/dist/distributeur/Layout/Header/Header.d.ts +1 -3
  127. package/dist/distributeur/Layout/Header/Header.js +1 -2
  128. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +1 -2
  129. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.js +7 -4
  130. package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -3
  131. package/dist/distributeur/Layout/Header/Infos/Infos.js +1 -2
  132. package/dist/distributeur/Layout/Header/Name/Name.d.ts +1 -3
  133. package/dist/distributeur/Layout/Header/Name/Name.js +2 -3
  134. package/dist/distributeur/Layout/Header/NavBar/NavBar.js +1 -6
  135. package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -3
  136. package/dist/distributeur/Layout/Header/NavBar/NavBarBase.js +7 -3
  137. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +2 -2
  138. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.js +10 -3
  139. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +1 -2
  140. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.js +7 -4
  141. package/dist/distributeur/Layout/Header/User/User.d.ts +1 -11
  142. package/dist/distributeur/Layout/Header/User/User.js +1 -2
  143. package/dist/distributeur/Link/Link.d.ts +4 -1
  144. package/dist/distributeur/Link/Link.js +3 -4
  145. package/dist/distributeur/Link/LinkAnchor.d.ts +8 -7
  146. package/dist/distributeur/Link/LinkAnchor.js +5 -5
  147. package/dist/distributeur/Loader/ItemLoader.d.ts +4 -0
  148. package/dist/distributeur/Loader/ItemLoader.js +8 -0
  149. package/dist/distributeur/Loader/Loader.d.ts +7 -10
  150. package/dist/distributeur/Loader/Loader.js +12 -27
  151. package/dist/distributeur/Loader/SquareLoader.d.ts +15 -0
  152. package/dist/distributeur/Loader/SquareLoader.js +33 -0
  153. package/dist/distributeur/Messages/Message.d.ts +2 -6
  154. package/dist/distributeur/Messages/Message.js +3 -14
  155. package/dist/distributeur/ModalAgent/BooleanModal.d.ts +4 -6
  156. package/dist/distributeur/ModalAgent/BooleanModal.js +9 -6
  157. package/dist/distributeur/ModalAgent/Modal.d.ts +5 -7
  158. package/dist/distributeur/ModalAgent/Modal.js +10 -19
  159. package/dist/distributeur/ModalAgent/components/Body.d.ts +2 -5
  160. package/dist/distributeur/ModalAgent/components/Body.js +1 -2
  161. package/dist/distributeur/ModalAgent/components/Footer.d.ts +2 -5
  162. package/dist/distributeur/ModalAgent/components/Footer.js +1 -2
  163. package/dist/distributeur/ModalAgent/components/Header.d.ts +1 -11
  164. package/dist/distributeur/ModalAgent/components/Header.js +2 -3
  165. package/dist/distributeur/ModalAgent/components/HeaderBase.d.ts +2 -5
  166. package/dist/distributeur/ModalAgent/components/HeaderBase.js +1 -2
  167. package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -3
  168. package/dist/distributeur/Popover/AnimatedPopover.js +1 -2
  169. package/dist/distributeur/Popover/Popover.d.ts +1 -3
  170. package/dist/distributeur/Popover/Popover.js +2 -2
  171. package/dist/distributeur/Popover/Popover.types.d.ts +0 -2
  172. package/dist/distributeur/Popover/PopoverBase.d.ts +1 -3
  173. package/dist/distributeur/Popover/PopoverBase.js +2 -2
  174. package/dist/distributeur/Popover/PopoverClick.d.ts +1 -1
  175. package/dist/distributeur/Popover/PopoverClick.js +2 -2
  176. package/dist/distributeur/Popover/PopoverOver.d.ts +1 -1
  177. package/dist/distributeur/Popover/PopoverOver.js +2 -2
  178. package/dist/distributeur/Restitution/ArticleRestitution.d.ts +2 -5
  179. package/dist/distributeur/Restitution/ArticleRestitution.js +1 -2
  180. package/dist/distributeur/Restitution/HeaderRestitution.d.ts +1 -3
  181. package/dist/distributeur/Restitution/HeaderRestitution.js +1 -2
  182. package/dist/distributeur/Restitution/Restitution.d.ts +1 -3
  183. package/dist/distributeur/Restitution/Restitution.js +2 -2
  184. package/dist/distributeur/Restitution/SectionRestitution.d.ts +1 -3
  185. package/dist/distributeur/Restitution/SectionRestitution.js +1 -2
  186. package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +1 -3
  187. package/dist/distributeur/Restitution/SectionRestitutionColumn.js +1 -2
  188. package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +1 -3
  189. package/dist/distributeur/Restitution/SectionRestitutionRow.js +5 -9
  190. package/dist/distributeur/Restitution/SectionRestitutionTitle.d.ts +1 -3
  191. package/dist/distributeur/Restitution/SectionRestitutionTitle.js +1 -2
  192. package/dist/distributeur/Steps/Step.d.ts +1 -1
  193. package/dist/distributeur/Steps/Step.js +4 -4
  194. package/dist/distributeur/Steps/StepBase.d.ts +1 -3
  195. package/dist/distributeur/Steps/StepBase.js +1 -2
  196. package/dist/distributeur/Steps/Steps.d.ts +1 -3
  197. package/dist/distributeur/Steps/Steps.js +1 -2
  198. package/dist/distributeur/Steps/VerticalStep.d.ts +2 -8
  199. package/dist/distributeur/Summary/index.d.ts +1 -1
  200. package/dist/distributeur/Summary/index.js +1 -2
  201. package/dist/distributeur/Svg/svgInjector.js +1 -0
  202. package/dist/distributeur/Table/Pagination/Items.d.ts +1 -2
  203. package/dist/distributeur/Table/Pagination/Items.js +8 -8
  204. package/dist/distributeur/Table/Pagination/Pager.d.ts +1 -2
  205. package/dist/distributeur/Table/Pagination/Pager.js +6 -3
  206. package/dist/distributeur/Table/Pagination/Paging.d.ts +1 -1
  207. package/dist/distributeur/Table/Pagination/Paging.js +6 -3
  208. package/dist/distributeur/Table/TBody.d.ts +1 -5
  209. package/dist/distributeur/Table/TBody.js +1 -2
  210. package/dist/distributeur/Table/THead.d.ts +2 -5
  211. package/dist/distributeur/Table/THead.js +1 -2
  212. package/dist/distributeur/Table/Table.d.ts +6 -33
  213. package/dist/distributeur/Table/Table.js +1 -10
  214. package/dist/distributeur/Table/Td.d.ts +1 -5
  215. package/dist/distributeur/Table/Td.js +1 -2
  216. package/dist/distributeur/Table/Th.d.ts +2 -4
  217. package/dist/distributeur/Table/Th.js +2 -2
  218. package/dist/distributeur/Table/Tr.d.ts +2 -5
  219. package/dist/distributeur/Table/Tr.js +1 -2
  220. package/dist/distributeur/Table/index.d.ts +1 -1
  221. package/dist/distributeur/Tabs/components/Tab.d.ts +0 -4
  222. package/dist/distributeur/Tabs/components/TabsStateless.d.ts +3 -7
  223. package/dist/distributeur/Tabs/components/TabsStateless.js +2 -2
  224. package/dist/distributeur/Tag/Tag.d.ts +4 -6
  225. package/dist/distributeur/Tag/Tag.js +5 -5
  226. package/dist/distributeur/Title/Title.d.ts +4 -3
  227. package/dist/distributeur/Title/Title.js +5 -5
  228. package/dist/distributeur/utilities.d.ts +1 -1
  229. package/dist/distributeur/utilities.js +1 -1
  230. package/dist/distributeur-experimental.d.ts +2 -0
  231. package/dist/distributeur-experimental.js +2 -0
  232. package/dist/distributeur.d.ts +13 -21
  233. package/dist/distributeur.js +12 -17
  234. package/dist/prospect-client/AccordionCore/AccordionCoreCommon.d.ts +3 -5
  235. package/dist/prospect-client/AccordionCore/AccordionCoreCommon.js +10 -4
  236. package/dist/prospect-client/AppName/AppName.d.ts +44 -0
  237. package/dist/prospect-client/AppName/AppName.js +23 -0
  238. package/dist/prospect-client/Card/CardApollo.d.ts +1 -1
  239. package/dist/prospect-client/Card/CardApollo.js +1 -1
  240. package/dist/prospect-client/Card/CardCommon.d.ts +30 -2
  241. package/dist/prospect-client/Card/CardCommon.js +18 -1
  242. package/dist/prospect-client/Card/CardLF.d.ts +1 -1
  243. package/dist/prospect-client/Card/CardLF.js +1 -1
  244. package/dist/prospect-client/CardMessage/CardMessageCommon.js +6 -4
  245. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +2 -2
  246. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.js +5 -2
  247. package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +0 -4
  248. package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.js +2 -3
  249. package/dist/prospect-client/DataAgent/DataAgentCommon.js +2 -2
  250. package/dist/prospect-client/Divider/DividerCommon.d.ts +1 -2
  251. package/dist/prospect-client/Divider/DividerCommon.js +3 -3
  252. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +1 -0
  253. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.js +1 -1
  254. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +2 -18
  255. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +4 -4
  256. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +1 -0
  257. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.js +1 -1
  258. package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.d.ts +4 -1
  259. package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.js +3 -3
  260. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +2 -3
  261. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.js +7 -3
  262. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.d.ts +4 -1
  263. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +2 -3
  264. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +5 -6
  265. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +5 -5
  266. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.d.ts +4 -1
  267. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.js +2 -3
  268. package/dist/prospect-client/Form/Dropdown/DropdownApollo.js +1 -1
  269. package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +7 -13
  270. package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +6 -6
  271. package/dist/prospect-client/Form/Dropdown/DropdownLF.js +1 -1
  272. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.d.ts +4 -1
  273. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.js +1 -2
  274. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.d.ts +4 -1
  275. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.js +4 -4
  276. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.d.ts +4 -1
  277. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.js +1 -2
  278. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.d.ts +4 -1
  279. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.js +4 -5
  280. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +5 -2
  281. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +5 -7
  282. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.d.ts +4 -1
  283. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.js +2 -3
  284. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileApollo.js +1 -1
  285. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +1 -1
  286. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileLF.js +1 -1
  287. package/dist/prospect-client/Form/InputDate/InputDateApollo.d.ts +4 -1
  288. package/dist/prospect-client/Form/InputDate/InputDateApollo.js +2 -3
  289. package/dist/prospect-client/Form/InputDate/InputDateAtom.d.ts +4 -1
  290. package/dist/prospect-client/Form/InputDate/InputDateAtom.js +2 -2
  291. package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +7 -13
  292. package/dist/prospect-client/Form/InputDate/InputDateCommon.js +8 -9
  293. package/dist/prospect-client/Form/InputDate/InputDateLF.d.ts +4 -1
  294. package/dist/prospect-client/Form/InputDate/InputDateLF.js +2 -3
  295. package/dist/prospect-client/Form/InputDate/InputDateTextAtom.d.ts +4 -1
  296. package/dist/prospect-client/Form/InputDate/InputDateTextAtom.js +4 -4
  297. package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.js +1 -1
  298. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +7 -13
  299. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +12 -8
  300. package/dist/prospect-client/Form/InputPhone/InputPhoneLF.js +1 -1
  301. package/dist/prospect-client/Form/InputText/InputTextApollo.d.ts +4 -1
  302. package/dist/prospect-client/Form/InputText/InputTextApollo.js +2 -3
  303. package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +7 -13
  304. package/dist/prospect-client/Form/InputText/InputTextCommon.js +9 -8
  305. package/dist/prospect-client/Form/InputText/InputTextLF.d.ts +4 -1
  306. package/dist/prospect-client/Form/InputText/InputTextLF.js +2 -3
  307. package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.d.ts +4 -2
  308. package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.js +4 -5
  309. package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.d.ts +2 -22
  310. package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.js +4 -5
  311. package/dist/prospect-client/Form/ItemMessage/{ItemMessageCommon.d.ts → ItemMessage.d.ts} +1 -0
  312. package/dist/prospect-client/Form/ItemMessage/{ItemMessageCommon.js → ItemMessage.js} +10 -9
  313. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.d.ts +7 -0
  314. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.js +6 -0
  315. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.d.ts +8 -0
  316. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.js +9 -0
  317. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.d.ts +7 -0
  318. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.js +6 -0
  319. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.d.ts +4 -0
  320. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.js +5 -0
  321. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.d.ts +11 -0
  322. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.js +2 -0
  323. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.d.ts +4 -0
  324. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.js +5 -0
  325. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +3 -0
  326. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.js +6 -0
  327. package/dist/prospect-client/Form/Radio/{CardRadioOption/CardRadioOptionCommon.d.ts → CardRadio/CardRadioCommon.d.ts} +7 -8
  328. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +16 -0
  329. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +3 -0
  330. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.js +6 -0
  331. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +3 -3
  332. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +9 -33
  333. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +6 -8
  334. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +3 -3
  335. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +2 -2
  336. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.js +7 -5
  337. package/dist/prospect-client/Form/TextArea/TextAreaApollo.d.ts +4 -1
  338. package/dist/prospect-client/Form/TextArea/TextAreaApollo.js +2 -3
  339. package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +7 -8
  340. package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +6 -6
  341. package/dist/prospect-client/Form/TextArea/TextAreaLF.d.ts +4 -1
  342. package/dist/prospect-client/Form/TextArea/TextAreaLF.js +2 -3
  343. package/dist/prospect-client/Header/HeaderApollo.d.ts +4 -0
  344. package/dist/prospect-client/Header/HeaderApollo.js +8 -0
  345. package/dist/prospect-client/Header/HeaderCommon.d.ts +22 -0
  346. package/dist/prospect-client/Header/HeaderCommon.js +37 -0
  347. package/dist/prospect-client/Header/HeaderLF.d.ts +4 -0
  348. package/dist/prospect-client/Header/HeaderLF.js +8 -0
  349. package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
  350. package/dist/prospect-client/Icon/IconCommon.js +8 -9
  351. package/dist/prospect-client/ItemMenu/ItemMenuApollo.d.ts +2 -0
  352. package/dist/prospect-client/ItemMenu/ItemMenuApollo.js +2 -0
  353. package/dist/prospect-client/ItemMenu/ItemMenuCommon.d.ts +22 -0
  354. package/dist/prospect-client/ItemMenu/ItemMenuCommon.js +18 -0
  355. package/dist/prospect-client/ItemMenu/ItemMenuLF.d.ts +2 -0
  356. package/dist/prospect-client/ItemMenu/ItemMenuLF.js +2 -0
  357. package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +4 -1
  358. package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.js +9 -6
  359. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +12 -0
  360. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.js +12 -0
  361. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +12 -0
  362. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.js +12 -0
  363. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.d.ts +23 -0
  364. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.js +17 -0
  365. package/dist/prospect-client/Link/LinkCommon.d.ts +1 -5
  366. package/dist/prospect-client/Link/LinkCommon.js +2 -2
  367. package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +1 -0
  368. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoApollo.js +1 -1
  369. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.d.ts +3 -7
  370. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.js +3 -7
  371. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoLF.js +1 -1
  372. package/dist/prospect-client/List/List/ListCommon.d.ts +27 -2
  373. package/dist/prospect-client/List/List/ListCommon.js +12 -0
  374. package/dist/prospect-client/Loader/LoaderCommon.d.ts +4 -1
  375. package/dist/prospect-client/Loader/LoaderCommon.js +4 -4
  376. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.d.ts +4 -0
  377. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.js +8 -0
  378. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.d.ts +60 -0
  379. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.js +34 -0
  380. package/dist/prospect-client/MenuBurger/MenuBurgerLF.d.ts +4 -0
  381. package/dist/prospect-client/MenuBurger/MenuBurgerLF.js +8 -0
  382. package/dist/prospect-client/MessageBar/MessageBarAction.d.ts +8 -0
  383. package/dist/prospect-client/MessageBar/MessageBarAction.js +11 -0
  384. package/dist/prospect-client/MessageBar/MessageBarApollo.d.ts +5 -0
  385. package/dist/prospect-client/MessageBar/MessageBarApollo.js +7 -0
  386. package/dist/prospect-client/MessageBar/MessageBarCommon.d.ts +26 -0
  387. package/dist/prospect-client/MessageBar/MessageBarCommon.js +33 -0
  388. package/dist/prospect-client/MessageBar/MessageBarDescription.d.ts +6 -0
  389. package/dist/prospect-client/MessageBar/MessageBarDescription.js +8 -0
  390. package/dist/prospect-client/MessageBar/MessageBarLF.d.ts +5 -0
  391. package/dist/prospect-client/MessageBar/MessageBarLF.js +7 -0
  392. package/dist/prospect-client/MessageBar/MessageBarSummary.d.ts +11 -0
  393. package/dist/prospect-client/MessageBar/MessageBarSummary.js +2 -0
  394. package/dist/prospect-client/MessageBar/types.d.ts +1 -0
  395. package/dist/prospect-client/MessageBar/types.js +1 -0
  396. package/dist/prospect-client/Modal/ModalApollo.d.ts +4 -1
  397. package/dist/prospect-client/Modal/ModalApollo.js +2 -5
  398. package/dist/prospect-client/Modal/ModalCommon.d.ts +4 -1
  399. package/dist/prospect-client/Modal/ModalCommon.js +1 -2
  400. package/dist/prospect-client/Modal/ModalLF.d.ts +4 -1
  401. package/dist/prospect-client/Modal/ModalLF.js +2 -5
  402. package/dist/prospect-client/Modal/components/ModalCore.d.ts +4 -1
  403. package/dist/prospect-client/Modal/components/ModalCore.js +3 -3
  404. package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.d.ts +0 -7
  405. package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.js +2 -12
  406. package/dist/prospect-client/Modal/types.d.ts +0 -15
  407. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.d.ts +1 -5
  408. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.js +1 -1
  409. package/dist/prospect-client/Skeleton/Skeleton.d.ts +61 -0
  410. package/dist/prospect-client/Skeleton/Skeleton.js +41 -0
  411. package/dist/prospect-client/SkeletonGrid/SkeletonGrid.d.ts +51 -0
  412. package/dist/prospect-client/SkeletonGrid/SkeletonGrid.js +37 -0
  413. package/dist/prospect-client/SkeletonList/SkeletonListApollo.d.ts +7 -0
  414. package/dist/prospect-client/SkeletonList/SkeletonListApollo.js +8 -2
  415. package/dist/prospect-client/SkeletonList/SkeletonListCommon.d.ts +21 -4
  416. package/dist/prospect-client/SkeletonList/SkeletonListCommon.js +18 -2
  417. package/dist/prospect-client/SkeletonList/SkeletonListLF.d.ts +7 -0
  418. package/dist/prospect-client/SkeletonList/SkeletonListLF.js +8 -2
  419. package/dist/prospect-client/Stepper/StepperApollo.js +3 -1
  420. package/dist/prospect-client/Stepper/StepperCommon.d.ts +13 -7
  421. package/dist/prospect-client/Stepper/StepperCommon.js +3 -4
  422. package/dist/prospect-client/Stepper/StepperLF.js +3 -1
  423. package/dist/prospect-client/TabBar/TabBarCommon.js +6 -3
  424. package/dist/prospect-client/TabMenu/TabMenu.d.ts +36 -0
  425. package/dist/prospect-client/TabMenu/TabMenu.helpers.d.ts +1 -0
  426. package/dist/prospect-client/TabMenu/TabMenu.helpers.js +12 -0
  427. package/dist/prospect-client/TabMenu/TabMenu.js +39 -0
  428. package/dist/prospect-client/Tag/TagCommon.js +6 -2
  429. package/dist/prospect-client/TagList/TagListApollo.d.ts +4 -0
  430. package/dist/prospect-client/TagList/TagListApollo.js +5 -0
  431. package/dist/prospect-client/TagList/TagListCommon.d.ts +10 -0
  432. package/dist/prospect-client/TagList/TagListCommon.js +16 -0
  433. package/dist/prospect-client/TagList/TagListLF.d.ts +4 -0
  434. package/dist/prospect-client/TagList/TagListLF.js +5 -0
  435. package/dist/prospect-client/Toggle/ToggleApollo.d.ts +4 -1
  436. package/dist/prospect-client/Toggle/ToggleApollo.js +1 -2
  437. package/dist/prospect-client/Toggle/ToggleCommon.d.ts +4 -3
  438. package/dist/prospect-client/Toggle/ToggleCommon.js +5 -5
  439. package/dist/prospect-client/Toggle/ToggleLF.d.ts +4 -1
  440. package/dist/prospect-client/Toggle/ToggleLF.js +1 -2
  441. package/dist/prospect.d.ts +17 -11
  442. package/dist/prospect.js +17 -11
  443. package/package.json +3 -3
  444. package/dist/distributeur/Form/Pass/Pass.d.ts +0 -12
  445. package/dist/distributeur/Form/Pass/Pass.js +0 -13
  446. package/dist/distributeur/Form/Pass/PassInput.d.ts +0 -13
  447. package/dist/distributeur/Form/Pass/PassInput.js +0 -34
  448. package/dist/distributeur/Form/Pass/index.d.ts +0 -2
  449. package/dist/distributeur/Form/Pass/index.js +0 -2
  450. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +0 -23
  451. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.js +0 -39
  452. package/dist/distributeur/Form/Slider/Slider.d.ts +0 -28
  453. package/dist/distributeur/Form/Slider/Slider.js +0 -40
  454. package/dist/distributeur/Form/Slider/SliderInput.d.ts +0 -9
  455. package/dist/distributeur/Form/Slider/SliderInput.js +0 -11
  456. package/dist/distributeur/Form/Slider/index.d.ts +0 -3
  457. package/dist/distributeur/Form/Slider/index.js +0 -3
  458. package/dist/distributeur/Form/core/Deprecated/Field.d.ts +0 -21
  459. package/dist/distributeur/Form/core/Deprecated/Field.js +0 -20
  460. package/dist/distributeur/Form/core/Deprecated/FieldForm.d.ts +0 -103
  461. package/dist/distributeur/Form/core/Deprecated/FieldForm.js +0 -162
  462. package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +0 -16
  463. package/dist/distributeur/Form/core/Deprecated/FieldInput.js +0 -14
  464. package/dist/distributeur/Form/core/useInputClassModifier.d.ts +0 -4
  465. package/dist/distributeur/Form/core/useInputClassModifier.js +0 -13
  466. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.d.ts +0 -1
  467. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.js +0 -6
  468. package/dist/distributeur/utilities/helpers/getComponentClassName.d.ts +0 -20
  469. package/dist/distributeur/utilities/helpers/getComponentClassName.js +0 -54
  470. package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.d.ts +0 -2
  471. package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.js +0 -2
  472. package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.d.ts +0 -2
  473. package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.js +0 -2
  474. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo.d.ts +0 -3
  475. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo.js +0 -6
  476. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +0 -16
  477. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF.d.ts +0 -3
  478. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF.js +0 -6
  479. package/dist/prospect-client/Skeleton/SkeletonApollo.d.ts +0 -2
  480. package/dist/prospect-client/Skeleton/SkeletonApollo.js +0 -2
  481. package/dist/prospect-client/Skeleton/SkeletonCommon.d.ts +0 -19
  482. package/dist/prospect-client/Skeleton/SkeletonCommon.js +0 -11
  483. package/dist/prospect-client/Skeleton/SkeletonLF.d.ts +0 -2
  484. package/dist/prospect-client/Skeleton/SkeletonLF.js +0 -2
  485. package/dist/prospect-client/utilities/getComponentClassName.d.ts +0 -4
  486. package/dist/prospect-client/utilities/getComponentClassName.js +0 -30
@@ -7,4 +7,7 @@ export type ModalCommonProps = ModalCoreProps & Omit<ModalCoreHeaderCommonProps,
7
7
  modalCoreFooterProps?: ModalCoreFooterContainerProps;
8
8
  modalCoreHeaderProps?: ModalCoreHeaderContainerProps;
9
9
  };
10
- export declare const ModalCommon: import("react").ForwardRefExoticComponent<Omit<ModalCommonProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
10
+ export declare const ModalCommon: {
11
+ ({ children, headingComponent, headingProps, closeButtonAriaLabel, onClose, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, buttonComponent, modalCoreBodyProps, modalCoreFooterProps, modalCoreHeaderProps, ...props }: ModalCommonProps): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
@@ -1,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
2
  import { ModalCore } from "./components/ModalCore";
4
3
  import { ModalCoreBody, } from "./components/ModalCoreBody";
5
4
  import { ModalCoreFooterCommon, } from "./components/ModalCoreFooterCommon";
6
5
  import { ModalCoreHeaderCommon } from "./components/ModalCoreHeaderCommon";
7
- export const ModalCommon = forwardRef(({ children, headingComponent, headingProps, closeButtonAriaLabel, onClose, iconProps, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, buttonComponent, modalCoreBodyProps, modalCoreFooterProps, modalCoreHeaderProps, ...props }, ref) => (_jsxs(ModalCore, { onClose: onClose, ref: ref, ...props, children: [_jsx(ModalCoreHeaderCommon, { headingComponent: headingComponent, headingProps: headingProps, iconProps: iconProps, onClose: onClose, closeButtonAriaLabel: closeButtonAriaLabel, ...modalCoreHeaderProps }), _jsx(ModalCoreBody, { ...modalCoreBodyProps, children: children }), _jsx(ModalCoreFooterCommon, { buttonComponent: buttonComponent, primaryButtonProps: primaryButtonProps, secondaryButtonProps: secondaryButtonProps, tertiaryButtonProps: tertiaryButtonProps, ...modalCoreFooterProps })] })));
6
+ export const ModalCommon = ({ children, headingComponent, headingProps, closeButtonAriaLabel, onClose, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, buttonComponent, modalCoreBodyProps, modalCoreFooterProps, modalCoreHeaderProps, ...props }) => (_jsxs(ModalCore, { onClose: onClose, ...props, children: [_jsx(ModalCoreHeaderCommon, { headingComponent: headingComponent, headingProps: headingProps, onClose: onClose, closeButtonAriaLabel: closeButtonAriaLabel, ...modalCoreHeaderProps }), _jsx(ModalCoreBody, { ...modalCoreBodyProps, children: children }), _jsx(ModalCoreFooterCommon, { buttonComponent: buttonComponent, primaryButtonProps: primaryButtonProps, secondaryButtonProps: secondaryButtonProps, tertiaryButtonProps: tertiaryButtonProps, ...modalCoreFooterProps })] }));
8
7
  ModalCommon.displayName = "ModalCommon";
@@ -5,4 +5,7 @@ export { ModalCoreBody, type ModalCoreBodyProps, } from "./components/ModalCoreB
5
5
  export { ModalCoreFooter } from "./components/ModalCoreFooterLF";
6
6
  export { ModalCoreHeader } from "./components/ModalCoreHeaderLF";
7
7
  export type { ModalCoreFooterProps, ModalCoreHeaderProps, ModalProps, } from "./types";
8
- export declare const Modal: import("react").ForwardRefExoticComponent<Omit<ModalProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
8
+ export declare const Modal: {
9
+ ({ headingProps, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/client/Modal/ModalLF.css";
3
- import { forwardRef } from "react";
4
3
  import { Button } from "../Button/ButtonLF";
5
4
  import { Heading } from "../Heading/HeadingLF";
6
5
  import { ModalCommon } from "./ModalCommon";
@@ -8,10 +7,8 @@ export { ModalCore } from "./components/ModalCore";
8
7
  export { ModalCoreBody, } from "./components/ModalCoreBody";
9
8
  export { ModalCoreFooter } from "./components/ModalCoreFooterLF";
10
9
  export { ModalCoreHeader } from "./components/ModalCoreHeaderLF";
11
- export const Modal = forwardRef(({ headingProps = {}, icon, iconProps, ...props }, ref) => (_jsx(ModalCommon, { ...props, ref: ref, headingComponent: Heading, headingProps: {
10
+ export const Modal = ({ headingProps = {}, ...props }) => (_jsx(ModalCommon, { ...props, headingComponent: Heading, headingProps: {
12
11
  ...headingProps,
13
12
  children: props.title,
14
- icon: headingProps.icon ?? icon,
15
- iconProps: headingProps.iconProps ?? iconProps,
16
- }, buttonComponent: Button })));
13
+ }, buttonComponent: Button }));
17
14
  Modal.displayName = "Modal";
@@ -2,5 +2,8 @@ import { type ComponentPropsWithRef } from "react";
2
2
  export type ModalCoreProps = Omit<ComponentPropsWithRef<"dialog">, "title" | "onClose"> & Required<Pick<ComponentPropsWithRef<"dialog">, "title">> & {
3
3
  onClose?: VoidFunction;
4
4
  };
5
- declare const ModalCore: import("react").ForwardRefExoticComponent<Omit<ModalCoreProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
5
+ declare const ModalCore: {
6
+ ({ className, children, ...props }: ModalCoreProps): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
6
9
  export { ModalCore };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- const ModalCore = forwardRef(({ className, children, ...props }, ref) => (
2
+ import {} from "react";
3
+ const ModalCore = ({ className, children, ...props }) => (
4
4
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events
5
- _jsx("dialog", { "aria-modal": true, "aria-label": props["aria-label"] ?? props.title, className: ["af-modal", className].filter(Boolean).join(" "), onClick: props.onClose, ref: ref, ...props, children: _jsx("section", { className: "af-modal__content", onClick: (e) => e.stopPropagation(), children: children }) })));
5
+ _jsx("dialog", { "aria-modal": true, "aria-label": props["aria-label"] ?? props.title, className: ["af-modal", className].filter(Boolean).join(" "), onClick: props.onClose, ...props, children: _jsx("section", { className: "af-modal__content", onClick: (e) => e.stopPropagation(), children: children }) }));
6
6
  ModalCore.displayName = "ModalCore";
7
7
  export { ModalCore };
@@ -1,16 +1,9 @@
1
1
  import type { ComponentPropsWithoutRef, ComponentType } from "react";
2
2
  import type { HeadingProps } from "../../Heading/types";
3
- import type { IconProps } from "../../Icon/IconCommon";
4
3
  export type ModalCoreHeaderContainerProps = ComponentPropsWithoutRef<"header">;
5
4
  export type ModalCoreHeaderCommonProps = ModalCoreHeaderContainerProps & {
6
5
  headingComponent: ComponentType<HeadingProps>;
7
6
  headingProps: HeadingProps;
8
- /**
9
- * @deprecated Pass `icon` and `iconProps` (without `src`) inside
10
- * `headingProps` instead. The legacy `iconProps` is forwarded to the
11
- * Heading molecule for backward compatibility and will be removed in 2.0.0.
12
- */
13
- iconProps?: IconProps;
14
7
  onClose?: VoidFunction;
15
8
  closeButtonAriaLabel?: string;
16
9
  };
@@ -2,16 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import close from "@material-symbols/svg-400/rounded/close.svg";
3
3
  import { ClickIcon } from "../../ClickIcon/ClickIconCommon";
4
4
  export const ModalCoreHeaderCommon = (props) => {
5
- const { className, headingComponent: HeadingComponent, headingProps, iconProps, onClose, closeButtonAriaLabel = "Fermer la boite de dialogue", ...rest } = props;
6
- // Backward-compat: legacy `iconProps` (with `src`) is routed through the
7
- // Heading molecule, which already renders the icon and title together.
8
- const { src: legacyIconSrc, ...legacyIconRest } = iconProps ?? {};
9
- const mergedHeadingProps = legacyIconSrc
10
- ? {
11
- ...headingProps,
12
- icon: headingProps.icon ?? legacyIconSrc,
13
- iconProps: { ...legacyIconRest, ...(headingProps.iconProps ?? {}) },
14
- }
15
- : headingProps;
16
- return (_jsxs("header", { className: ["af-modal__header", className].filter(Boolean).join(" "), ...rest, children: [_jsx(ClickIcon, { className: "af-modal__header-close-btn", src: close, onClick: onClose, "aria-label": closeButtonAriaLabel }), _jsx("div", { className: "af-modal__header-title", children: _jsx(HeadingComponent, { level: 2, ...mergedHeadingProps }) })] }));
5
+ const { className, headingComponent: HeadingComponent, headingProps, onClose, closeButtonAriaLabel = "Fermer la boite de dialogue", ...rest } = props;
6
+ return (_jsxs("header", { className: ["af-modal__header", className].filter(Boolean).join(" "), ...rest, children: [_jsx(ClickIcon, { className: "af-modal__header-close-btn", src: close, onClick: onClose, "aria-label": closeButtonAriaLabel }), _jsx("div", { className: "af-modal__header-title", children: _jsx(HeadingComponent, { level: 2, ...headingProps }) })] }));
17
7
  };
@@ -1,5 +1,4 @@
1
1
  import type { HeadingProps } from "../Heading/types";
2
- import type { IconProps } from "../Icon/IconCommon";
3
2
  import type { ModalCoreFooterCommonProps } from "./components/ModalCoreFooterCommon";
4
3
  import type { ModalCoreHeaderCommonProps } from "./components/ModalCoreHeaderCommon";
5
4
  import type { ModalCommonProps } from "./ModalCommon";
@@ -7,18 +6,4 @@ export type ModalCoreHeaderProps = Omit<ModalCoreHeaderCommonProps, "headingComp
7
6
  export type ModalCoreFooterProps = Omit<ModalCoreFooterCommonProps, "buttonComponent">;
8
7
  export type ModalProps = Omit<ModalCommonProps, "headingComponent" | "headingProps" | "iconProps" | "buttonComponent"> & {
9
8
  headingProps?: Omit<HeadingProps, "children">;
10
- /**
11
- * @deprecated Pass `icon` inside `headingProps` instead
12
- * (e.g. `headingProps={{ icon }}`). The top-level `icon` prop is
13
- * forwarded to the Heading molecule for backward compatibility and will
14
- * be removed in 2.0.0.
15
- */
16
- icon?: string;
17
- /**
18
- * @deprecated Pass `iconProps` inside `headingProps` instead
19
- * (e.g. `headingProps={{ iconProps }}`). The top-level `iconProps`
20
- * is forwarded to the Heading molecule for backward compatibility and
21
- * will be removed in 2.0.0.
22
- */
23
- iconProps?: Omit<IconProps, "src">;
24
9
  };
@@ -3,10 +3,6 @@ import { ProgressBar } from "../ProgressBar/ProgressBarCommon";
3
3
  export type ProgressBarGroupProps = {
4
4
  currentStepProgress?: number;
5
5
  currentStep: number;
6
- /**
7
- * @deprecated Use `stepsCount` instead.
8
- */
9
- nbSteps?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
10
6
  stepsCount?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
11
7
  max?: number;
12
8
  className?: string;
@@ -14,5 +10,5 @@ export type ProgressBarGroupProps = {
14
10
  type ProgressBarGroupCommonProps = ProgressBarGroupProps & {
15
11
  ProgressBarComponent: ComponentType<ComponentProps<typeof ProgressBar>>;
16
12
  };
17
- export declare const ProgressBarGroupCommon: ({ currentStepProgress, max, nbSteps, stepsCount, currentStep, className, ProgressBarComponent, ...props }: ProgressBarGroupCommonProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ProgressBarGroupCommon: ({ currentStepProgress, max, stepsCount, currentStep, className, ProgressBarComponent, ...props }: ProgressBarGroupCommonProps) => import("react/jsx-runtime").JSX.Element;
18
14
  export {};
@@ -3,7 +3,7 @@ import classNames from "classnames";
3
3
  import { useId } from "react";
4
4
  import { ProgressBar } from "../ProgressBar/ProgressBarCommon";
5
5
  import { useSequentialProgress } from "./useSequentialProgress";
6
- export const ProgressBarGroupCommon = ({ currentStepProgress = 0, max = 100, nbSteps = 4, stepsCount = nbSteps, currentStep, className, ProgressBarComponent, ...props }) => {
6
+ export const ProgressBarGroupCommon = ({ currentStepProgress = 0, max = 100, stepsCount = 4, currentStep, className, ProgressBarComponent, ...props }) => {
7
7
  const stepperId = useId();
8
8
  const progressValues = useSequentialProgress(currentStepProgress / max, currentStep, stepsCount);
9
9
  return (_jsx("ol", { className: classNames("af-progress-bar-group", className), ...props, children: progressValues.map((value, index) => (_jsx("li", { className: "af-progress-bar-group__item", children: _jsx(ProgressBarComponent, { value: value, "aria-hidden": true }) }, `af-progress-bar-group__item--${stepperId}-${index}`))) }));
@@ -0,0 +1,61 @@
1
+ import type { ComponentPropsWithoutRef } from "react";
2
+ import "@axa-fr/canopee-css/client/Skeleton/SkeletonAll.css";
3
+ export declare const skeletonVariants: {
4
+ readonly action: "action";
5
+ readonly circle: "circle";
6
+ readonly rectangle: "rectangle";
7
+ };
8
+ export type SkeletonVariant = keyof typeof skeletonVariants;
9
+ export declare const skeletonSizeVariants: {
10
+ readonly XS: "extra-small";
11
+ readonly S: "small";
12
+ readonly M: "medium";
13
+ readonly L: "large";
14
+ readonly XL: "extra-large";
15
+ readonly XXL: "extra-extra-large";
16
+ };
17
+ export type SkeletonSizeVariant = keyof typeof skeletonSizeVariants;
18
+ export type SkeletonCircleSizeVariant = keyof Pick<typeof skeletonSizeVariants, "S" | "M" | "L">;
19
+ export type SkeletonActionSizeVariant = keyof Pick<typeof skeletonSizeVariants, "M">;
20
+ type SkeletonSharedProps = {
21
+ colSize?: number;
22
+ rowSize?: number;
23
+ } & ComponentPropsWithoutRef<"div">;
24
+ type SkeletonCircleProps = {
25
+ size?: SkeletonCircleSizeVariant;
26
+ variant: "circle";
27
+ };
28
+ type SkeletonActionProps = {
29
+ size?: SkeletonActionSizeVariant;
30
+ variant: "action";
31
+ };
32
+ type SkeletonRectangleProps = {
33
+ size?: SkeletonSizeVariant;
34
+ variant?: "rectangle";
35
+ };
36
+ /**
37
+ * Props for the `Skeleton` component.
38
+ *
39
+ * The allowed `size` values depend on the selected `variant`:
40
+ * - `circle`: `S | M | L`
41
+ * - `action`: `M`
42
+ * - `rectangle`: `XS | S | M | L | XL | XXL`
43
+ */
44
+ export type SkeletonProps = SkeletonSharedProps & (SkeletonCircleProps | SkeletonActionProps | SkeletonRectangleProps);
45
+ /**
46
+ * Renders one skeleton placeholder block.
47
+ *
48
+ * This is the base building block used by `SkeletonGrid`, `SkeletonList`,
49
+ * and `ExitLayoutSkeleton`.
50
+ *
51
+ * @component
52
+ * @param {SkeletonProps} props - Skeleton props.
53
+ * @param {number} [props.colSize=1] - Number of grid columns occupied by the skeleton.
54
+ * @param {number} [props.rowSize=1] - Number of grid rows occupied by the skeleton.
55
+ * @param {SkeletonVariant} [props.variant="rectangle"] - Visual variant of the placeholder.
56
+ * @param {SkeletonSizeVariant | SkeletonCircleSizeVariant | SkeletonActionSizeVariant} [props.size="M"] - Size applied to the skeleton. The accepted values depend on `variant`.
57
+ * @param {string} [props.className] - Additional CSS class applied to the skeleton.
58
+ * @returns {JSX.Element} The rendered Skeleton component.
59
+ */
60
+ export declare const Skeleton: ({ className, colSize, rowSize, size, variant, style, ...props }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
61
+ export {};
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/client/Skeleton/SkeletonAll.css";
3
+ import { getClassName } from "../utilities/getClassName";
4
+ const CLASS_NAME = "af-skeleton";
5
+ export const skeletonVariants = {
6
+ action: "action",
7
+ circle: "circle",
8
+ rectangle: "rectangle",
9
+ };
10
+ export const skeletonSizeVariants = {
11
+ XS: "extra-small",
12
+ S: "small",
13
+ M: "medium",
14
+ L: "large",
15
+ XL: "extra-large",
16
+ XXL: "extra-extra-large",
17
+ };
18
+ /**
19
+ * Renders one skeleton placeholder block.
20
+ *
21
+ * This is the base building block used by `SkeletonGrid`, `SkeletonList`,
22
+ * and `ExitLayoutSkeleton`.
23
+ *
24
+ * @component
25
+ * @param {SkeletonProps} props - Skeleton props.
26
+ * @param {number} [props.colSize=1] - Number of grid columns occupied by the skeleton.
27
+ * @param {number} [props.rowSize=1] - Number of grid rows occupied by the skeleton.
28
+ * @param {SkeletonVariant} [props.variant="rectangle"] - Visual variant of the placeholder.
29
+ * @param {SkeletonSizeVariant | SkeletonCircleSizeVariant | SkeletonActionSizeVariant} [props.size="M"] - Size applied to the skeleton. The accepted values depend on `variant`.
30
+ * @param {string} [props.className] - Additional CSS class applied to the skeleton.
31
+ * @returns {JSX.Element} The rendered Skeleton component.
32
+ */
33
+ export const Skeleton = ({ className, colSize = 1, rowSize = 1, size = "M", variant = "rectangle", style, ...props }) => (_jsx("div", { ...props, className: getClassName({
34
+ baseClassName: CLASS_NAME,
35
+ modifiers: [variant, skeletonSizeVariants[size]],
36
+ className,
37
+ }), style: {
38
+ "--col-size": colSize,
39
+ "--row-size": rowSize,
40
+ ...style,
41
+ } }));
@@ -0,0 +1,51 @@
1
+ import type { ReactNode } from "react";
2
+ import { type SkeletonProps } from "../Skeleton/Skeleton";
3
+ import "@axa-fr/canopee-css/prospect/SkeletonGrid/SkeletonGridAll.css";
4
+ /**
5
+ * One skeleton cell rendered inside a `SkeletonGrid` row.
6
+ */
7
+ export type SkeletonGridItem = SkeletonProps;
8
+ type isLoadingAndChildrenProps = {
9
+ children: ReactNode;
10
+ isLoading: boolean;
11
+ } | {
12
+ children?: undefined;
13
+ isLoading?: boolean;
14
+ };
15
+ /**
16
+ * Props for the `SkeletonGrid` component.
17
+ *
18
+ * `grid` is a two-level array where:
19
+ * - first level represents rows
20
+ * - second level represents skeleton cells rendered in each row
21
+ */
22
+ export type SkeletonGridProps = {
23
+ className?: string;
24
+ grid: SkeletonGridItem[][];
25
+ "aria-busy"?: boolean;
26
+ "aria-label"?: string;
27
+ maxCols?: number;
28
+ colGap?: number;
29
+ rowGap?: number;
30
+ } & isLoadingAndChildrenProps;
31
+ /**
32
+ * Renders a responsive grid of skeleton placeholders.
33
+ *
34
+ * When `isLoading` is `false`, the component returns its `children` instead of
35
+ * the skeleton grid.
36
+ *
37
+ * @component
38
+ * @param {SkeletonGridProps} props - SkeletonGrid props.
39
+ * @param {SkeletonGridItem[][]} props.grid - Grid definition where each row contains one or more skeleton cells.
40
+ * @param {number} [props.maxCols=12] - Number of columns used to build the grid template.
41
+ * @param {number} [props.colGap=16] - Horizontal gap between grid columns, in pixels.
42
+ * @param {number} [props.rowGap=8] - Vertical gap between grid rows, in pixels.
43
+ * @param {boolean} [props.isLoading=true] - When `true`, displays the skeleton placeholders.
44
+ * @param {ReactNode} [props.children] - Content rendered when `isLoading` is `false`.
45
+ * @param {string} [props.className] - Additional CSS class applied to the root element.
46
+ * @param {string} [props.aria-label="Chargement"] - Accessible label for the loading region.
47
+ * @param {boolean} [props.aria-busy=true] - Announces the loading region as busy to assistive technologies.
48
+ * @returns {JSX.Element | ReactNode} The rendered skeleton grid or the fallback children.
49
+ */
50
+ export declare const SkeletonGrid: ({ className, grid, "aria-busy": ariaBusy, "aria-label": ariaLabel, maxCols, colGap, rowGap, isLoading, children, }: SkeletonGridProps) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
51
+ export {};
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Skeleton } from "../Skeleton/Skeleton";
3
+ import "@axa-fr/canopee-css/prospect/SkeletonGrid/SkeletonGridAll.css";
4
+ import { getClassName } from "../utilities/getClassName";
5
+ const CLASS_NAME = "af-skeleton-grid";
6
+ /**
7
+ * Renders a responsive grid of skeleton placeholders.
8
+ *
9
+ * When `isLoading` is `false`, the component returns its `children` instead of
10
+ * the skeleton grid.
11
+ *
12
+ * @component
13
+ * @param {SkeletonGridProps} props - SkeletonGrid props.
14
+ * @param {SkeletonGridItem[][]} props.grid - Grid definition where each row contains one or more skeleton cells.
15
+ * @param {number} [props.maxCols=12] - Number of columns used to build the grid template.
16
+ * @param {number} [props.colGap=16] - Horizontal gap between grid columns, in pixels.
17
+ * @param {number} [props.rowGap=8] - Vertical gap between grid rows, in pixels.
18
+ * @param {boolean} [props.isLoading=true] - When `true`, displays the skeleton placeholders.
19
+ * @param {ReactNode} [props.children] - Content rendered when `isLoading` is `false`.
20
+ * @param {string} [props.className] - Additional CSS class applied to the root element.
21
+ * @param {string} [props.aria-label="Chargement"] - Accessible label for the loading region.
22
+ * @param {boolean} [props.aria-busy=true] - Announces the loading region as busy to assistive technologies.
23
+ * @returns {JSX.Element | ReactNode} The rendered skeleton grid or the fallback children.
24
+ */
25
+ export const SkeletonGrid = ({ className, grid = [], "aria-busy": ariaBusy = true, "aria-label": ariaLabel = "Chargement", maxCols = 12, colGap = 16, rowGap = 8, isLoading = true, children, }) => {
26
+ if (isLoading) {
27
+ return (_jsx("div", { className: getClassName({
28
+ baseClassName: CLASS_NAME,
29
+ className,
30
+ }), "aria-label": ariaLabel, role: "status", "aria-busy": ariaBusy, style: {
31
+ "--max-cols": maxCols,
32
+ "--col-gap": `calc(${colGap} / var(--font-size-base) * 1rem)`,
33
+ "--row-gap": `calc(${rowGap} / var(--font-size-base) * 1rem)`,
34
+ }, children: grid.map((cols, indexRow) => cols.map((skeletonProps, indexCol) => (_jsx(Skeleton, { ...skeletonProps }, `${indexRow}-${indexCol}`)))) }));
35
+ }
36
+ return children;
37
+ };
@@ -1,3 +1,10 @@
1
1
  import { type SkeletonListProps } from "./SkeletonListCommon";
2
2
  export { type SkeletonListProps } from "./SkeletonListCommon";
3
+ /**
4
+ * Apollo-themed `SkeletonList` component.
5
+ *
6
+ * @component
7
+ * @param {SkeletonListProps} props - SkeletonList props.
8
+ * @returns {JSX.Element | ReactNode[]} The rendered Apollo-themed SkeletonList.
9
+ */
3
10
  export declare const SkeletonList: (props: SkeletonListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Skeleton } from "../Skeleton/SkeletonApollo";
3
2
  import { List } from "../List/List/ListApollo";
4
3
  import { SkeletonListCommon, } from "./SkeletonListCommon";
5
4
  export {} from "./SkeletonListCommon";
6
- export const SkeletonList = (props) => (_jsx(SkeletonListCommon, { ...props, SkeletonComponent: Skeleton, ListComponent: List }));
5
+ /**
6
+ * Apollo-themed `SkeletonList` component.
7
+ *
8
+ * @component
9
+ * @param {SkeletonListProps} props - SkeletonList props.
10
+ * @returns {JSX.Element | ReactNode[]} The rendered Apollo-themed SkeletonList.
11
+ */
12
+ export const SkeletonList = (props) => (_jsx(SkeletonListCommon, { ...props, ListComponent: List }));
@@ -1,17 +1,34 @@
1
1
  import type { ComponentType, PropsWithChildren } from "react";
2
- import type { SkeletonProps } from "../Skeleton/SkeletonCommon";
2
+ import type { SkeletonGridProps } from "../SkeletonGrid/SkeletonGrid";
3
3
  import type { ListProps } from "../List/List/ListCommon";
4
+ /**
5
+ * Props for the themed `SkeletonList` components.
6
+ */
4
7
  export type SkeletonListProps = {
5
8
  lists: {
6
9
  lines?: number;
7
- grid: SkeletonProps["grid"];
10
+ grid: SkeletonGridProps["grid"];
8
11
  }[];
9
12
  isLoading?: boolean;
10
13
  className?: string;
11
14
  } & PropsWithChildren;
12
15
  type SkeletonListPropsCommon = SkeletonListProps & {
13
16
  ListComponent: ComponentType<ListProps>;
14
- SkeletonComponent: ComponentType<SkeletonProps>;
15
17
  };
16
- export declare const SkeletonListCommon: ({ children, isLoading, lists, className, ListComponent, SkeletonComponent, }: SkeletonListPropsCommon) => string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | 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> | import("react/jsx-runtime").JSX.Element[] | null | undefined;
18
+ /**
19
+ * Shared implementation rendering repeated `SkeletonGrid` rows inside a `List`.
20
+ *
21
+ * The visual list container is injected through `ListComponent` to allow
22
+ * Apollo and Look and Feel theming.
23
+ *
24
+ * @component
25
+ * @param {SkeletonListPropsCommon} props - SkeletonList props.
26
+ * @param {{ lines?: number; grid: SkeletonGridProps["grid"] }[]} props.lists - Groups of skeleton rows to render while loading.
27
+ * @param {boolean} [props.isLoading=true] - When `true`, renders the list of skeleton placeholders.
28
+ * @param {string} [props.className] - Additional CSS class applied to each injected list container.
29
+ * @param {ReactNode} [props.children] - Content rendered when `isLoading` is `false`.
30
+ * @param {ComponentType<ListProps>} props.ListComponent - Theme-specific list component used to wrap each skeleton block.
31
+ * @returns {JSX.Element | ReactNode[]} The rendered skeleton list or the fallback children.
32
+ */
33
+ export declare const SkeletonListCommon: ({ children, isLoading, lists, className, ListComponent, }: SkeletonListPropsCommon) => string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | 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> | import("react/jsx-runtime").JSX.Element[] | null | undefined;
17
34
  export {};
@@ -1,4 +1,20 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export const SkeletonListCommon = ({ children, isLoading, lists = [], className, ListComponent, SkeletonComponent, }) => isLoading
3
- ? lists.map(({ lines = 1, grid }, linesIndex) => (_jsx(ListComponent, { className: className, children: [...Array(lines).keys()].map((_, lineIndex) => (_jsx(SkeletonComponent, { grid: grid }, lineIndex))) }, linesIndex)))
2
+ import { SkeletonGrid } from "../SkeletonGrid/SkeletonGrid";
3
+ /**
4
+ * Shared implementation rendering repeated `SkeletonGrid` rows inside a `List`.
5
+ *
6
+ * The visual list container is injected through `ListComponent` to allow
7
+ * Apollo and Look and Feel theming.
8
+ *
9
+ * @component
10
+ * @param {SkeletonListPropsCommon} props - SkeletonList props.
11
+ * @param {{ lines?: number; grid: SkeletonGridProps["grid"] }[]} props.lists - Groups of skeleton rows to render while loading.
12
+ * @param {boolean} [props.isLoading=true] - When `true`, renders the list of skeleton placeholders.
13
+ * @param {string} [props.className] - Additional CSS class applied to each injected list container.
14
+ * @param {ReactNode} [props.children] - Content rendered when `isLoading` is `false`.
15
+ * @param {ComponentType<ListProps>} props.ListComponent - Theme-specific list component used to wrap each skeleton block.
16
+ * @returns {JSX.Element | ReactNode[]} The rendered skeleton list or the fallback children.
17
+ */
18
+ export const SkeletonListCommon = ({ children, isLoading, lists = [], className, ListComponent, }) => isLoading
19
+ ? lists.map(({ lines = 1, grid }, linesIndex) => (_jsx(ListComponent, { className: className, children: [...Array(lines).keys()].map((_, lineIndex) => (_jsx(SkeletonGrid, { grid: grid }, lineIndex))) }, linesIndex)))
4
20
  : children;
@@ -1,3 +1,10 @@
1
1
  import { type SkeletonListProps } from "./SkeletonListCommon";
2
2
  export { type SkeletonListProps } from "./SkeletonListCommon";
3
+ /**
4
+ * Look and Feel-themed `SkeletonList` component.
5
+ *
6
+ * @component
7
+ * @param {SkeletonListProps} props - SkeletonList props.
8
+ * @returns {JSX.Element | ReactNode[]} The rendered Look and Feel SkeletonList.
9
+ */
3
10
  export declare const SkeletonList: (props: SkeletonListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Skeleton } from "../Skeleton/SkeletonLF";
3
2
  import { List } from "../List/List/ListLF";
4
3
  import { SkeletonListCommon, } from "./SkeletonListCommon";
5
4
  export {} from "./SkeletonListCommon";
6
- export const SkeletonList = (props) => (_jsx(SkeletonListCommon, { ...props, SkeletonComponent: Skeleton, ListComponent: List }));
5
+ /**
6
+ * Look and Feel-themed `SkeletonList` component.
7
+ *
8
+ * @component
9
+ * @param {SkeletonListProps} props - SkeletonList props.
10
+ * @returns {JSX.Element | ReactNode[]} The rendered Look and Feel SkeletonList.
11
+ */
12
+ export const SkeletonList = (props) => (_jsx(SkeletonListCommon, { ...props, ListComponent: List }));
@@ -1,5 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/prospect/Stepper/StepperApollo.css";
3
+ import { Heading } from "../Heading/HeadingApollo";
3
4
  import { ProgressBarGroup } from "../ProgressBarGroup/ProgressBarGroupApollo";
5
+ import { ItemMessage } from "../Form/ItemMessage/ItemMessage";
4
6
  import { StepperCommon } from "./StepperCommon";
5
- export const Stepper = (props) => (_jsx(StepperCommon, { ...props, ProgressBarGroupComponent: ProgressBarGroup }));
7
+ export const Stepper = (props) => (_jsx(StepperCommon, { ...props, ProgressBarGroupComponent: ProgressBarGroup, HeadingComponent: Heading, ItemMessageComponent: ItemMessage }));
@@ -1,18 +1,24 @@
1
- import { type ComponentType, type HTMLAttributes } from "react";
2
- import { type ItemMessageProps } from "../Form/ItemMessage/ItemMessageCommon";
1
+ import { type ComponentType, type HTMLAttributes, type ReactNode } from "react";
2
+ import { type ItemMessageProps } from "../Form/ItemMessage/ItemMessage";
3
3
  import { type ProgressBarGroupProps } from "../ProgressBarGroup/ProgressBarGroupCommon";
4
+ import type { HeadingCommonProps } from "../Heading/HeadingCommon";
5
+ import type { HeadingLevel } from "../Heading/types";
4
6
  export type StepperProps = {
5
7
  currentStepProgress?: number;
6
8
  currentStep: number;
7
- currentSubtitle?: string;
8
- currentTitle?: string;
9
+ currentSubtitle?: ReactNode;
10
+ currentTitle?: ReactNode;
9
11
  nbSteps?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
10
12
  helper?: string;
13
+ icon?: string;
14
+ iconProps?: HeadingCommonProps["iconProps"];
11
15
  message?: string;
12
16
  messageType?: ItemMessageProps["messageType"];
13
- titleLevel?: 1 | 2 | 3;
14
- } & Omit<HTMLAttributes<HTMLDivElement>, "role">;
17
+ titleLevel?: HeadingLevel;
18
+ } & Omit<HTMLAttributes<HTMLDivElement>, "role" | "title">;
15
19
  export type StepperCommonProps = StepperProps & {
16
20
  ProgressBarGroupComponent: ComponentType<ProgressBarGroupProps>;
21
+ HeadingComponent: ComponentType<HeadingCommonProps>;
22
+ ItemMessageComponent: ComponentType<ItemMessageProps>;
17
23
  };
18
- export declare const StepperCommon: ({ currentStepProgress, currentTitle, nbSteps, currentStep, currentSubtitle, className, ProgressBarGroupComponent, helper, message, messageType, titleLevel, ...props }: StepperCommonProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const StepperCommon: ({ currentStepProgress, currentTitle, nbSteps, currentStep, currentSubtitle, className, ProgressBarGroupComponent, HeadingComponent, ItemMessageComponent, helper, icon, iconProps, message, messageType, titleLevel, ...props }: StepperCommonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId, } from "react";
3
- import { ItemMessage, } from "../Form/ItemMessage/ItemMessageCommon";
3
+ import {} from "../Form/ItemMessage/ItemMessage";
4
4
  import {} from "../ProgressBarGroup/ProgressBarGroupCommon";
5
- export const StepperCommon = ({ currentStepProgress, currentTitle, nbSteps, currentStep, currentSubtitle, className, ProgressBarGroupComponent, helper, message, messageType = "success", titleLevel = 2, ...props }) => {
5
+ export const StepperCommon = ({ currentStepProgress, currentTitle, nbSteps, currentStep, currentSubtitle, className, ProgressBarGroupComponent, HeadingComponent, ItemMessageComponent, helper, icon, iconProps, message, messageType = "success", titleLevel = 2, ...props }) => {
6
6
  const titleId = useId();
7
- const Title = `h${titleLevel}`;
8
- return (_jsxs("div", { className: "af-stepper", ...props, tabIndex: undefined, children: [_jsxs("div", { className: "af-stepper__header", children: [_jsx(Title, { id: titleId, className: "af-stepper__title", children: currentTitle }), Boolean(currentSubtitle) && (_jsx("p", { className: "af-stepper__subtitle", children: currentSubtitle }))] }), _jsx(ProgressBarGroupComponent, { className: className, currentStep: currentStep, stepsCount: nbSteps, currentStepProgress: currentStepProgress, "aria-labelledby": titleId }), Boolean(helper) && _jsx("span", { className: "af-stepper__helper", children: helper }), _jsx(ItemMessage, { message: message, messageType: messageType })] }));
7
+ return (_jsxs("div", { className: "af-stepper", ...props, tabIndex: undefined, children: [_jsx("div", { className: "af-stepper__header", id: titleId, children: _jsx(HeadingComponent, { level: titleLevel, icon: icon, iconProps: iconProps, firstSubtitle: currentSubtitle, children: currentTitle }) }), _jsx(ProgressBarGroupComponent, { className: className, currentStep: currentStep, stepsCount: nbSteps, currentStepProgress: currentStepProgress, "aria-labelledby": titleId }), Boolean(helper) && _jsx("span", { className: "af-stepper__helper", children: helper }), _jsx(ItemMessageComponent, { message: message, messageType: messageType })] }));
9
8
  };
@@ -2,4 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/client/Stepper/StepperLF.css";
3
3
  import { ProgressBarGroup } from "../ProgressBarGroup/ProgressBarGroupLF";
4
4
  import { StepperCommon } from "./StepperCommon";
5
- export const Stepper = (props) => (_jsx(StepperCommon, { ...props, ProgressBarGroupComponent: ProgressBarGroup }));
5
+ import { Heading } from "../Heading/HeadingLF";
6
+ import { ItemMessage } from "../Form/ItemMessage/ItemMessage";
7
+ export const Stepper = (props) => (_jsx(StepperCommon, { ...props, ProgressBarGroupComponent: ProgressBarGroup, HeadingComponent: Heading, ItemMessageComponent: ItemMessage }));
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import classNames from "classnames";
3
- import { useCallback, useRef, useState, } from "react";
3
+ import { useCallback, useId, useRef, useState, } from "react";
4
4
  import { ItemTabBar, } from "../ItemTabBar/ItemTabBarCommon";
5
5
  export const tabBarDirection = {
6
6
  center: "center",
@@ -10,6 +10,9 @@ const CLASS_NAME = "af-tabbar";
10
10
  export const TabBarCommon = ({ items, preSelectedTabIndex, direction = "left", ItemTabBarComponent, }) => {
11
11
  const [selectedTabIndex, setSelectedTabIndex] = useState(preSelectedTabIndex || 0);
12
12
  const buttonRefs = useRef([]);
13
+ const baseId = useId();
14
+ const getTabId = (index) => `${baseId}-tab-${index}`;
15
+ const getTabPanelId = (index) => `${baseId}-tabpanel-${index}`;
13
16
  const tablistRef = useRef(null);
14
17
  const totalTabs = items.length;
15
18
  const isActive = (index) => index === selectedTabIndex;
@@ -48,7 +51,7 @@ export const TabBarCommon = ({ items, preSelectedTabIndex, direction = "left", I
48
51
  break;
49
52
  }
50
53
  }, [selectedTabIndex, totalTabs]);
51
- return (_jsxs("div", { className: classNames(CLASS_NAME, direction === tabBarDirection.center ? `${CLASS_NAME}--center` : ""), children: [_jsx("div", { role: "tablist", ref: tablistRef, children: items.map(({ title }, index) => (_jsx(ItemTabBarComponent, { id: `tab-${index}`, "aria-selected": isActive(index), "aria-controls": `tabpanel-${index}`, onKeyDown: onChangeTab, onClick: () => handleClickFn(index), ref: (element) => {
54
+ return (_jsxs("div", { className: classNames(CLASS_NAME, direction === tabBarDirection.center ? `${CLASS_NAME}--center` : ""), children: [_jsx("div", { role: "tablist", ref: tablistRef, children: items.map(({ title }, index) => (_jsx(ItemTabBarComponent, { id: getTabId(index), "aria-selected": isActive(index), "aria-controls": getTabPanelId(index), onKeyDown: onChangeTab, onClick: () => handleClickFn(index), ref: (element) => {
52
55
  buttonRefs.current[index] = element;
53
- }, tabIndex: isActive(index) ? 0 : -1, title: title }, `tab-${title}`))) }), items.map((item, index) => (_jsx("div", { role: "tabpanel", "aria-hidden": !isActive(index), id: `tabpanel-${index}`, "aria-labelledby": `tab-${index}`, children: item.content }, `tabpanel-${item.title}`)))] }));
56
+ }, tabIndex: isActive(index) ? 0 : -1, title: title }, `tab-${title}`))) }), items.map((item, index) => (_jsx("div", { role: "tabpanel", "aria-hidden": !isActive(index), id: getTabPanelId(index), "aria-labelledby": getTabId(index), children: item.content }, `tabpanel-${item.title}`)))] }));
54
57
  };
@@ -0,0 +1,36 @@
1
+ import { type ComponentPropsWithoutRef } from "react";
2
+ import { type ItemMenuProps } from "../ItemMenu/ItemMenuCommon";
3
+ import "@axa-fr/canopee-css/prospect/TabMenu/TabMenuAll.css";
4
+ /**
5
+ * One item displayed in the TabMenu component.
6
+ */
7
+ export type TabMenuItemProps = Omit<ItemMenuProps, "children"> & {
8
+ /**
9
+ * Visible label of the menu item.
10
+ */
11
+ label: string;
12
+ };
13
+ /**
14
+ * Props for the TabMenu component.
15
+ */
16
+ export type TabMenuProps = {
17
+ /**
18
+ * List of menu items.
19
+ */
20
+ items?: TabMenuItemProps[];
21
+ /**
22
+ * Initial active item position.
23
+ * @default 0
24
+ */
25
+ initialPosition?: number;
26
+ } & Omit<ComponentPropsWithoutRef<"nav">, "children">;
27
+ /**
28
+ * Renders a keyboard-navigable tab-style menu.
29
+ *
30
+ * @component
31
+ * @param {TabMenuProps} props - TabMenu props.
32
+ * @param {TabMenuItemProps[]} [props.items] - Items to render.
33
+ * @param {number} [props.initialPosition=0] - Initially selected item index.
34
+ * @returns {JSX.Element | null} The rendered TabMenu, or null when no items are provided.
35
+ */
36
+ export declare const TabMenu: ({ items, className, initialPosition, ...props }: TabMenuProps) => import("react/jsx-runtime").JSX.Element | null;