@axa-fr/canopee-react 2.0.0-alpha.8 → 2.0.0-alpha.80

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 (394) hide show
  1. package/dist/client.d.ts +17 -17
  2. package/dist/client.js +17 -17
  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 +1 -3
  10. package/dist/distributeur/Action/Action.js +2 -3
  11. package/dist/distributeur/Button/Button.d.ts +3 -4
  12. package/dist/distributeur/Button/Button.js +7 -1
  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 +1 -1
  24. package/dist/distributeur/Form/Checkbox/Checkbox.js +9 -4
  25. package/dist/distributeur/Form/Checkbox/CheckboxInput.js +2 -2
  26. package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +1 -3
  27. package/dist/distributeur/Form/Checkbox/CheckboxItem.js +2 -2
  28. package/dist/distributeur/Form/Choice/Choice.d.ts +0 -2
  29. package/dist/distributeur/Form/Choice/ChoiceInput.js +1 -1
  30. package/dist/distributeur/Form/Date/Date.d.ts +2 -3
  31. package/dist/distributeur/Form/Date/Date.js +3 -3
  32. package/dist/distributeur/Form/Date/DateInput.js +1 -1
  33. package/dist/distributeur/Form/Experimental/DateInput.d.ts +31 -0
  34. package/dist/distributeur/Form/Experimental/DateInput.js +27 -0
  35. package/dist/distributeur/Form/Experimental/InputContainer.d.ts +4 -1
  36. package/dist/distributeur/Form/Experimental/InputContainer.js +2 -2
  37. package/dist/distributeur/Form/Experimental/InputUnit.d.ts +1 -1
  38. package/dist/distributeur/Form/Experimental/InputUnit.js +1 -1
  39. package/dist/distributeur/Form/Experimental/ItemMessage.d.ts +1 -1
  40. package/dist/distributeur/Form/Experimental/ItemMessage.js +1 -1
  41. package/dist/distributeur/Form/Experimental/Label.d.ts +1 -2
  42. package/dist/distributeur/Form/Experimental/Legend.d.ts +12 -0
  43. package/dist/distributeur/Form/Experimental/Legend.js +3 -0
  44. package/dist/distributeur/Form/Experimental/Radio/AddRadioCard.d.ts +7 -0
  45. package/dist/distributeur/Form/Experimental/Radio/AddRadioCard.js +14 -0
  46. package/dist/distributeur/Form/Experimental/Radio/RadioButton.d.ts +13 -0
  47. package/dist/distributeur/Form/Experimental/Radio/RadioButton.js +3 -0
  48. package/dist/distributeur/Form/Experimental/Radio/RadioCard.d.ts +10 -0
  49. package/dist/distributeur/Form/Experimental/Radio/RadioCard.js +13 -0
  50. package/dist/distributeur/Form/Experimental/Radio/RadioGroup.d.ts +8 -0
  51. package/dist/distributeur/Form/Experimental/Radio/RadioGroup.js +10 -0
  52. package/dist/distributeur/Form/Experimental/Radio/RadioInput.d.ts +18 -0
  53. package/dist/distributeur/Form/Experimental/Radio/RadioInput.js +34 -0
  54. package/dist/distributeur/Form/Experimental/Radio/RadioItem.d.ts +4 -0
  55. package/dist/distributeur/Form/Experimental/Radio/RadioItem.js +10 -0
  56. package/dist/distributeur/Form/Experimental/Radio/RadioText.d.ts +6 -0
  57. package/dist/distributeur/Form/Experimental/Radio/RadioText.js +3 -0
  58. package/dist/distributeur/Form/Experimental/Radio/_radioInputOptions.d.ts +8 -0
  59. package/dist/distributeur/Form/Experimental/Radio/_radioInputOptions.js +7 -0
  60. package/dist/distributeur/Form/Experimental/Select.d.ts +8 -0
  61. package/dist/distributeur/Form/Experimental/Select.js +16 -0
  62. package/dist/distributeur/Form/Experimental/SelectInput.d.ts +36 -0
  63. package/dist/distributeur/Form/Experimental/SelectInput.js +26 -0
  64. package/dist/distributeur/Form/Experimental/index.d.ts +11 -0
  65. package/dist/distributeur/Form/Experimental/index.js +9 -0
  66. package/dist/distributeur/Form/Experimental/types.d.ts +1 -1
  67. package/dist/distributeur/Form/Experimental/useInput.hook.js +1 -1
  68. package/dist/distributeur/Form/File/File.d.ts +1 -3
  69. package/dist/distributeur/Form/File/File.js +1 -2
  70. package/dist/distributeur/Form/File/FileInput.d.ts +3 -1
  71. package/dist/distributeur/Form/File/FileInput.js +2 -2
  72. package/dist/distributeur/Form/File/FileLine.d.ts +1 -2
  73. package/dist/distributeur/Form/File/FileLine.js +6 -3
  74. package/dist/distributeur/Form/File/FileTable.d.ts +1 -2
  75. package/dist/distributeur/Form/File/FileTable.js +6 -3
  76. package/dist/distributeur/Form/MultiSelect/MultiSelectInput.js +1 -1
  77. package/dist/distributeur/Form/NestedQuestion/NestedQuestion.js +7 -3
  78. package/dist/distributeur/Form/Number/Number.d.ts +4 -7
  79. package/dist/distributeur/Form/Number/Number.js +4 -5
  80. package/dist/distributeur/Form/Number/NumberInput.js +1 -1
  81. package/dist/distributeur/Form/Radio/Radio.d.ts +1 -1
  82. package/dist/distributeur/Form/Radio/RadioInput.js +1 -1
  83. package/dist/distributeur/Form/Radio/RadioItem.d.ts +1 -3
  84. package/dist/distributeur/Form/Radio/RadioItem.js +2 -2
  85. package/dist/distributeur/Form/Select/Select.d.ts +3 -19
  86. package/dist/distributeur/Form/Select/Select.js +3 -4
  87. package/dist/distributeur/Form/Select/SelectBase.d.ts +3 -24
  88. package/dist/distributeur/Form/Select/SelectBase.js +2 -7
  89. package/dist/distributeur/Form/Select/SelectDefault.d.ts +3 -3
  90. package/dist/distributeur/Form/Select/SelectInput.js +1 -1
  91. package/dist/distributeur/Form/Select/index.d.ts +0 -1
  92. package/dist/distributeur/Form/Select/index.js +0 -1
  93. package/dist/distributeur/Form/Text/Text.d.ts +2 -3
  94. package/dist/distributeur/Form/Text/Text.js +3 -3
  95. package/dist/distributeur/Form/Text/TextInput.js +1 -1
  96. package/dist/distributeur/Form/Textarea/Textarea.d.ts +2 -3
  97. package/dist/distributeur/Form/Textarea/Textarea.js +3 -3
  98. package/dist/distributeur/Form/Textarea/TextareaInput.js +1 -1
  99. package/dist/distributeur/Form/core/Field.d.ts +4 -23
  100. package/dist/distributeur/Form/core/Field.js +23 -16
  101. package/dist/distributeur/Form/core/FieldError.js +5 -2
  102. package/dist/distributeur/Form/core/getOptionClassName.d.ts +1 -1
  103. package/dist/distributeur/Form/core/getOptionClassName.js +2 -6
  104. package/dist/distributeur/Form/core/index.d.ts +0 -8
  105. package/dist/distributeur/Form/core/index.js +0 -4
  106. package/dist/distributeur/HelpButton/index.d.ts +1 -1
  107. package/dist/distributeur/HelpButton/index.js +4 -6
  108. package/dist/distributeur/ItemFormHelper/ItemFormHelper.d.ts +8 -0
  109. package/dist/distributeur/ItemFormHelper/ItemFormHelper.js +31 -0
  110. package/dist/distributeur/Layout/Header/Header.d.ts +1 -3
  111. package/dist/distributeur/Layout/Header/Header.js +1 -2
  112. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +1 -2
  113. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.js +7 -4
  114. package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -3
  115. package/dist/distributeur/Layout/Header/Infos/Infos.js +1 -2
  116. package/dist/distributeur/Layout/Header/Name/Name.d.ts +1 -3
  117. package/dist/distributeur/Layout/Header/Name/Name.js +1 -2
  118. package/dist/distributeur/Layout/Header/NavBar/NavBar.js +1 -6
  119. package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -3
  120. package/dist/distributeur/Layout/Header/NavBar/NavBarBase.js +7 -3
  121. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +2 -2
  122. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.js +10 -3
  123. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +1 -2
  124. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.js +6 -3
  125. package/dist/distributeur/Layout/Header/User/User.d.ts +1 -11
  126. package/dist/distributeur/Layout/Header/User/User.js +1 -2
  127. package/dist/distributeur/Link/LinkAnchor.d.ts +4 -6
  128. package/dist/distributeur/Link/LinkAnchor.js +2 -2
  129. package/dist/distributeur/Messages/Message.d.ts +2 -6
  130. package/dist/distributeur/Messages/Message.js +3 -14
  131. package/dist/distributeur/ModalAgent/BooleanModal.d.ts +1 -6
  132. package/dist/distributeur/ModalAgent/BooleanModal.js +7 -4
  133. package/dist/distributeur/ModalAgent/Modal.d.ts +2 -7
  134. package/dist/distributeur/ModalAgent/Modal.js +7 -16
  135. package/dist/distributeur/ModalAgent/components/Body.d.ts +2 -5
  136. package/dist/distributeur/ModalAgent/components/Body.js +1 -2
  137. package/dist/distributeur/ModalAgent/components/Footer.d.ts +2 -5
  138. package/dist/distributeur/ModalAgent/components/Footer.js +1 -2
  139. package/dist/distributeur/ModalAgent/components/Header.d.ts +1 -11
  140. package/dist/distributeur/ModalAgent/components/Header.js +2 -3
  141. package/dist/distributeur/ModalAgent/components/HeaderBase.d.ts +2 -5
  142. package/dist/distributeur/ModalAgent/components/HeaderBase.js +1 -2
  143. package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -3
  144. package/dist/distributeur/Popover/AnimatedPopover.js +1 -2
  145. package/dist/distributeur/Popover/Popover.d.ts +1 -3
  146. package/dist/distributeur/Popover/Popover.js +2 -2
  147. package/dist/distributeur/Popover/Popover.types.d.ts +0 -2
  148. package/dist/distributeur/Popover/PopoverBase.d.ts +1 -3
  149. package/dist/distributeur/Popover/PopoverBase.js +2 -2
  150. package/dist/distributeur/Popover/PopoverClick.d.ts +1 -1
  151. package/dist/distributeur/Popover/PopoverClick.js +2 -2
  152. package/dist/distributeur/Popover/PopoverOver.d.ts +1 -1
  153. package/dist/distributeur/Popover/PopoverOver.js +2 -2
  154. package/dist/distributeur/Restitution/ArticleRestitution.d.ts +2 -5
  155. package/dist/distributeur/Restitution/ArticleRestitution.js +1 -2
  156. package/dist/distributeur/Restitution/HeaderRestitution.d.ts +1 -3
  157. package/dist/distributeur/Restitution/HeaderRestitution.js +1 -2
  158. package/dist/distributeur/Restitution/Restitution.d.ts +1 -3
  159. package/dist/distributeur/Restitution/Restitution.js +2 -2
  160. package/dist/distributeur/Restitution/SectionRestitution.d.ts +1 -3
  161. package/dist/distributeur/Restitution/SectionRestitution.js +1 -2
  162. package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +1 -3
  163. package/dist/distributeur/Restitution/SectionRestitutionColumn.js +1 -2
  164. package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +1 -3
  165. package/dist/distributeur/Restitution/SectionRestitutionRow.js +5 -9
  166. package/dist/distributeur/Restitution/SectionRestitutionTitle.d.ts +1 -3
  167. package/dist/distributeur/Restitution/SectionRestitutionTitle.js +1 -2
  168. package/dist/distributeur/Steps/Step.d.ts +1 -1
  169. package/dist/distributeur/Steps/Step.js +4 -4
  170. package/dist/distributeur/Steps/StepBase.d.ts +1 -3
  171. package/dist/distributeur/Steps/StepBase.js +1 -2
  172. package/dist/distributeur/Steps/Steps.d.ts +1 -3
  173. package/dist/distributeur/Steps/Steps.js +1 -2
  174. package/dist/distributeur/Summary/index.d.ts +1 -1
  175. package/dist/distributeur/Summary/index.js +1 -2
  176. package/dist/distributeur/Table/Pagination/Items.d.ts +1 -2
  177. package/dist/distributeur/Table/Pagination/Items.js +8 -8
  178. package/dist/distributeur/Table/Pagination/Pager.d.ts +1 -2
  179. package/dist/distributeur/Table/Pagination/Pager.js +6 -3
  180. package/dist/distributeur/Table/Pagination/Paging.d.ts +1 -1
  181. package/dist/distributeur/Table/Pagination/Paging.js +6 -3
  182. package/dist/distributeur/Table/TBody.d.ts +1 -5
  183. package/dist/distributeur/Table/TBody.js +1 -2
  184. package/dist/distributeur/Table/THead.d.ts +2 -5
  185. package/dist/distributeur/Table/THead.js +1 -2
  186. package/dist/distributeur/Table/Table.d.ts +6 -33
  187. package/dist/distributeur/Table/Table.js +1 -10
  188. package/dist/distributeur/Table/Td.d.ts +1 -5
  189. package/dist/distributeur/Table/Td.js +1 -2
  190. package/dist/distributeur/Table/Th.d.ts +2 -4
  191. package/dist/distributeur/Table/Th.js +2 -2
  192. package/dist/distributeur/Table/Tr.d.ts +2 -5
  193. package/dist/distributeur/Table/Tr.js +1 -2
  194. package/dist/distributeur/Table/index.d.ts +1 -1
  195. package/dist/distributeur/Tabs/components/Tab.d.ts +0 -4
  196. package/dist/distributeur/Tabs/components/TabsStateless.d.ts +3 -7
  197. package/dist/distributeur/Tabs/components/TabsStateless.js +2 -2
  198. package/dist/distributeur/Tag/Tag.d.ts +1 -6
  199. package/dist/distributeur/Tag/Tag.js +2 -2
  200. package/dist/distributeur/Title/Title.d.ts +1 -3
  201. package/dist/distributeur/Title/Title.js +3 -3
  202. package/dist/distributeur/utilities.d.ts +1 -1
  203. package/dist/distributeur/utilities.js +1 -1
  204. package/dist/distributeur-experimental.d.ts +2 -0
  205. package/dist/distributeur-experimental.js +2 -0
  206. package/dist/distributeur.d.ts +10 -24
  207. package/dist/distributeur.js +9 -17
  208. package/dist/prospect-client/AccordionCore/AccordionCoreCommon.d.ts +3 -5
  209. package/dist/prospect-client/AccordionCore/AccordionCoreCommon.js +10 -4
  210. package/dist/prospect-client/AppName/AppName.d.ts +44 -0
  211. package/dist/prospect-client/AppName/AppName.js +23 -0
  212. package/dist/prospect-client/Card/CardApollo.d.ts +1 -1
  213. package/dist/prospect-client/Card/CardApollo.js +1 -1
  214. package/dist/prospect-client/Card/CardCommon.d.ts +30 -2
  215. package/dist/prospect-client/Card/CardCommon.js +18 -1
  216. package/dist/prospect-client/Card/CardLF.d.ts +1 -1
  217. package/dist/prospect-client/Card/CardLF.js +1 -1
  218. package/dist/prospect-client/CardMessage/CardMessageCommon.js +6 -4
  219. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +2 -2
  220. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.js +5 -2
  221. package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +0 -4
  222. package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.js +2 -3
  223. package/dist/prospect-client/DataAgent/DataAgentCommon.js +2 -2
  224. package/dist/prospect-client/Divider/DividerCommon.js +6 -2
  225. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +1 -0
  226. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.js +1 -1
  227. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +2 -18
  228. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +4 -4
  229. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +1 -0
  230. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.js +1 -1
  231. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +2 -6
  232. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.js +6 -2
  233. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +1 -1
  234. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +2 -6
  235. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +3 -3
  236. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.js +1 -1
  237. package/dist/prospect-client/Form/Dropdown/DropdownApollo.js +1 -1
  238. package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +4 -12
  239. package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +4 -4
  240. package/dist/prospect-client/Form/Dropdown/DropdownLF.js +1 -1
  241. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.js +1 -1
  242. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +1 -1
  243. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +1 -1
  244. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.js +1 -1
  245. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileApollo.js +1 -1
  246. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +1 -1
  247. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileLF.js +1 -1
  248. package/dist/prospect-client/Form/InputDate/InputDateApollo.js +1 -1
  249. package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +4 -12
  250. package/dist/prospect-client/Form/InputDate/InputDateCommon.js +5 -6
  251. package/dist/prospect-client/Form/InputDate/InputDateLF.js +1 -1
  252. package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.js +1 -1
  253. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +4 -12
  254. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +10 -6
  255. package/dist/prospect-client/Form/InputPhone/InputPhoneLF.js +1 -1
  256. package/dist/prospect-client/Form/InputText/InputTextApollo.js +1 -1
  257. package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +4 -12
  258. package/dist/prospect-client/Form/InputText/InputTextCommon.js +7 -6
  259. package/dist/prospect-client/Form/InputText/InputTextLF.js +1 -1
  260. package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.d.ts +2 -22
  261. package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.js +4 -5
  262. package/dist/prospect-client/Form/ItemMessage/{ItemMessageCommon.d.ts → ItemMessage.d.ts} +1 -0
  263. package/dist/prospect-client/Form/ItemMessage/{ItemMessageCommon.js → ItemMessage.js} +10 -9
  264. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.d.ts +4 -0
  265. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.js +5 -0
  266. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.d.ts +11 -0
  267. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.js +2 -0
  268. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.d.ts +4 -0
  269. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.js +5 -0
  270. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.d.ts +1 -5
  271. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +4 -4
  272. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +1 -1
  273. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +6 -30
  274. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +5 -7
  275. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +1 -1
  276. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +2 -5
  277. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.js +6 -4
  278. package/dist/prospect-client/Form/TextArea/TextAreaApollo.js +1 -1
  279. package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +4 -8
  280. package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +4 -4
  281. package/dist/prospect-client/Form/TextArea/TextAreaLF.js +1 -1
  282. package/dist/prospect-client/Header/HeaderApollo.d.ts +4 -0
  283. package/dist/prospect-client/Header/HeaderApollo.js +8 -0
  284. package/dist/prospect-client/Header/HeaderCommon.d.ts +22 -0
  285. package/dist/prospect-client/Header/HeaderCommon.js +37 -0
  286. package/dist/prospect-client/Header/HeaderLF.d.ts +4 -0
  287. package/dist/prospect-client/Header/HeaderLF.js +8 -0
  288. package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
  289. package/dist/prospect-client/Icon/IconCommon.js +8 -9
  290. package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.js +5 -2
  291. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +12 -0
  292. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.js +12 -0
  293. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +12 -0
  294. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.js +12 -0
  295. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.d.ts +23 -0
  296. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.js +17 -0
  297. package/dist/prospect-client/Link/LinkCommon.d.ts +1 -5
  298. package/dist/prospect-client/Link/LinkCommon.js +2 -2
  299. package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +1 -0
  300. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoApollo.js +1 -1
  301. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.d.ts +3 -7
  302. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.js +3 -7
  303. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoLF.js +1 -1
  304. package/dist/prospect-client/List/List/ListCommon.d.ts +27 -2
  305. package/dist/prospect-client/List/List/ListCommon.js +12 -0
  306. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.d.ts +4 -0
  307. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.js +8 -0
  308. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.d.ts +60 -0
  309. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.js +34 -0
  310. package/dist/prospect-client/MenuBurger/MenuBurgerLF.d.ts +4 -0
  311. package/dist/prospect-client/MenuBurger/MenuBurgerLF.js +8 -0
  312. package/dist/prospect-client/MessageBar/MessageBarAction.d.ts +8 -0
  313. package/dist/prospect-client/MessageBar/MessageBarAction.js +11 -0
  314. package/dist/prospect-client/MessageBar/MessageBarApollo.d.ts +5 -0
  315. package/dist/prospect-client/MessageBar/MessageBarApollo.js +7 -0
  316. package/dist/prospect-client/MessageBar/MessageBarCommon.d.ts +26 -0
  317. package/dist/prospect-client/MessageBar/MessageBarCommon.js +33 -0
  318. package/dist/prospect-client/MessageBar/MessageBarDescription.d.ts +6 -0
  319. package/dist/prospect-client/MessageBar/MessageBarDescription.js +8 -0
  320. package/dist/prospect-client/MessageBar/MessageBarLF.d.ts +5 -0
  321. package/dist/prospect-client/MessageBar/MessageBarLF.js +7 -0
  322. package/dist/prospect-client/MessageBar/MessageBarSummary.d.ts +11 -0
  323. package/dist/prospect-client/MessageBar/MessageBarSummary.js +2 -0
  324. package/dist/prospect-client/MessageBar/types.d.ts +1 -0
  325. package/dist/prospect-client/MessageBar/types.js +1 -0
  326. package/dist/prospect-client/Modal/ModalApollo.d.ts +1 -1
  327. package/dist/prospect-client/Modal/ModalApollo.js +1 -3
  328. package/dist/prospect-client/Modal/ModalCommon.d.ts +1 -1
  329. package/dist/prospect-client/Modal/ModalCommon.js +1 -1
  330. package/dist/prospect-client/Modal/ModalLF.d.ts +1 -1
  331. package/dist/prospect-client/Modal/ModalLF.js +1 -3
  332. package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.d.ts +0 -7
  333. package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.js +2 -12
  334. package/dist/prospect-client/Modal/types.d.ts +0 -15
  335. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.d.ts +1 -5
  336. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.js +1 -1
  337. package/dist/prospect-client/Skeleton/Skeleton.d.ts +61 -0
  338. package/dist/prospect-client/Skeleton/Skeleton.js +41 -0
  339. package/dist/prospect-client/SkeletonGrid/SkeletonGrid.d.ts +51 -0
  340. package/dist/prospect-client/SkeletonGrid/SkeletonGrid.js +37 -0
  341. package/dist/prospect-client/SkeletonList/SkeletonListApollo.d.ts +7 -0
  342. package/dist/prospect-client/SkeletonList/SkeletonListApollo.js +8 -2
  343. package/dist/prospect-client/SkeletonList/SkeletonListCommon.d.ts +21 -4
  344. package/dist/prospect-client/SkeletonList/SkeletonListCommon.js +18 -2
  345. package/dist/prospect-client/SkeletonList/SkeletonListLF.d.ts +7 -0
  346. package/dist/prospect-client/SkeletonList/SkeletonListLF.js +8 -2
  347. package/dist/prospect-client/Stepper/StepperApollo.js +3 -1
  348. package/dist/prospect-client/Stepper/StepperCommon.d.ts +13 -7
  349. package/dist/prospect-client/Stepper/StepperCommon.js +3 -4
  350. package/dist/prospect-client/Stepper/StepperLF.js +3 -1
  351. package/dist/prospect-client/TabMenu/TabMenu.js +1 -1
  352. package/dist/prospect-client/Tag/TagCommon.js +6 -2
  353. package/dist/prospect-client/Toggle/ToggleCommon.js +2 -2
  354. package/dist/prospect.d.ts +11 -7
  355. package/dist/prospect.js +11 -7
  356. package/package.json +2 -2
  357. package/dist/distributeur/Form/Pass/Pass.d.ts +0 -15
  358. package/dist/distributeur/Form/Pass/Pass.js +0 -13
  359. package/dist/distributeur/Form/Pass/PassInput.d.ts +0 -13
  360. package/dist/distributeur/Form/Pass/PassInput.js +0 -34
  361. package/dist/distributeur/Form/Pass/index.d.ts +0 -2
  362. package/dist/distributeur/Form/Pass/index.js +0 -2
  363. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +0 -26
  364. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.js +0 -32
  365. package/dist/distributeur/Form/Slider/Slider.d.ts +0 -28
  366. package/dist/distributeur/Form/Slider/Slider.js +0 -40
  367. package/dist/distributeur/Form/Slider/SliderInput.d.ts +0 -9
  368. package/dist/distributeur/Form/Slider/SliderInput.js +0 -11
  369. package/dist/distributeur/Form/Slider/index.d.ts +0 -3
  370. package/dist/distributeur/Form/Slider/index.js +0 -3
  371. package/dist/distributeur/Form/core/Deprecated/Field.d.ts +0 -21
  372. package/dist/distributeur/Form/core/Deprecated/Field.js +0 -20
  373. package/dist/distributeur/Form/core/Deprecated/FieldForm.d.ts +0 -103
  374. package/dist/distributeur/Form/core/Deprecated/FieldForm.js +0 -162
  375. package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +0 -16
  376. package/dist/distributeur/Form/core/Deprecated/FieldInput.js +0 -14
  377. package/dist/distributeur/Form/core/useInputClassModifier.d.ts +0 -4
  378. package/dist/distributeur/Form/core/useInputClassModifier.js +0 -13
  379. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.d.ts +0 -1
  380. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.js +0 -6
  381. package/dist/distributeur/utilities/helpers/getComponentClassName.d.ts +0 -20
  382. package/dist/distributeur/utilities/helpers/getComponentClassName.js +0 -54
  383. package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.d.ts +0 -2
  384. package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.js +0 -2
  385. package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.d.ts +0 -2
  386. package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.js +0 -2
  387. package/dist/prospect-client/Skeleton/SkeletonApollo.d.ts +0 -2
  388. package/dist/prospect-client/Skeleton/SkeletonApollo.js +0 -2
  389. package/dist/prospect-client/Skeleton/SkeletonCommon.d.ts +0 -19
  390. package/dist/prospect-client/Skeleton/SkeletonCommon.js +0 -11
  391. package/dist/prospect-client/Skeleton/SkeletonLF.d.ts +0 -2
  392. package/dist/prospect-client/Skeleton/SkeletonLF.js +0 -2
  393. package/dist/prospect-client/utilities/getComponentClassName.d.ts +0 -4
  394. package/dist/prospect-client/utilities/getComponentClassName.js +0 -30
@@ -11,5 +11,5 @@ export type Props = Omit<PagingComponentProps, "onChange"> & {
11
11
  onChange?: OnChangePager;
12
12
  selectPageSizeLabel?: string;
13
13
  };
14
- declare const Paging: ({ className, classModifier, currentPage, displayLabel, elementsLabel, selectPageSizeLabel, id, mode, nextLabel, numberItems, numberPages, ofLabel, previousLabel, items, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ declare const Paging: ({ className, currentPage, displayLabel, elementsLabel, selectPageSizeLabel, id, mode, nextLabel, numberItems, numberPages, ofLabel, previousLabel, items, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
15
15
  export { Paging };
@@ -1,11 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/distributeur/Table/Paging.css";
3
3
  import { useCallback } from "react";
4
- import { getComponentClassName } from "../../utilities";
4
+ import { getClassName } from "../../utilities";
5
5
  import { Items } from "./Items";
6
6
  import { Pager } from "./Pager";
7
- const Paging = ({ className, classModifier, currentPage = 1, displayLabel, elementsLabel, selectPageSizeLabel, id, mode, nextLabel, numberItems = 10, numberPages, ofLabel, previousLabel, items, onChange, }) => {
8
- const componentClassName = getComponentClassName(className, classModifier, "af-paging");
7
+ const Paging = ({ className, currentPage = 1, displayLabel, elementsLabel, selectPageSizeLabel, id, mode, nextLabel, numberItems = 10, numberPages, ofLabel, previousLabel, items, onChange, }) => {
8
+ const componentClassName = getClassName({
9
+ baseClassName: "af-paging",
10
+ className,
11
+ });
9
12
  const handleChangeItems = useCallback((e) => onChange &&
10
13
  onChange({
11
14
  numberItems: e.value,
@@ -1,7 +1,3 @@
1
1
  import type { ComponentPropsWithoutRef } from "react";
2
- type Props = ComponentPropsWithoutRef<"tbody"> & {
3
- /** @deprecated Use `className` instead. */
4
- classModifier?: string;
5
- };
6
- declare const TBody: ({ children, className, classModifier, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const TBody: ({ children, className, ...otherProps }: ComponentPropsWithoutRef<"tbody">) => import("react/jsx-runtime").JSX.Element;
7
3
  export { TBody };
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
- const TBody = ({ children, className, classModifier, ...otherProps }) => {
3
+ const TBody = ({ children, className, ...otherProps }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-table__body",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return (_jsx("tbody", { className: componentClassName, ...otherProps, children: children }));
@@ -1,7 +1,4 @@
1
1
  import type { ComponentPropsWithoutRef } from "react";
2
- type Props = ComponentPropsWithoutRef<"thead"> & {
3
- /** @deprecated Use `className` instead. */
4
- classModifier?: string;
5
- };
6
- declare const THead: ({ children, className, classModifier, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
2
+ type Props = ComponentPropsWithoutRef<"thead"> & {};
3
+ declare const THead: ({ children, className, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
7
4
  export { THead };
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
- const THead = ({ children, className, classModifier, ...otherProps }) => {
3
+ const THead = ({ children, className, ...otherProps }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-table__thead",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return (_jsx("thead", { className: componentClassName, ...otherProps, children: children }));
@@ -1,38 +1,11 @@
1
1
  import type { ComponentPropsWithoutRef } from "react";
2
2
  import "@axa-fr/canopee-css/distributeur/Table/Table.css";
3
- type TableProps = ComponentPropsWithoutRef<"table"> & {
4
- /** @deprecated Use `className` instead. */
5
- classModifier?: string;
6
- };
7
3
  declare const Table: {
8
- ({ className, classModifier, children, ...othersProps }: TableProps): import("react/jsx-runtime").JSX.Element;
9
- /**
10
- * @deprecated Use Table.THead instead
11
- */
12
- Header: ({ children, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
13
- classModifier?: string;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- /**
16
- * @deprecated Use Table.TBody instead
17
- */
18
- Body: ({ children, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
19
- classModifier?: string;
20
- }) => import("react/jsx-runtime").JSX.Element;
21
- THead: ({ children, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
22
- classModifier?: string;
23
- }) => import("react/jsx-runtime").JSX.Element;
24
- TBody: ({ children, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
25
- classModifier?: string;
26
- }) => import("react/jsx-runtime").JSX.Element;
27
- Th: ({ children, id, className, classModifier, sortable, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & {
28
- classModifier?: string;
29
- sortable?: boolean;
30
- }) => import("react/jsx-runtime").JSX.Element;
31
- Tr: ({ children, id, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
32
- classModifier?: string;
33
- }) => import("react/jsx-runtime").JSX.Element;
34
- Td: ({ children, id, className, classModifier, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & {
35
- classModifier?: string;
36
- }) => import("react/jsx-runtime").JSX.Element;
4
+ ({ className, children, ...othersProps }: ComponentPropsWithoutRef<"table">): import("react/jsx-runtime").JSX.Element;
5
+ THead: ({ children, className, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref">) => import("react/jsx-runtime").JSX.Element;
6
+ TBody: ({ children, className, ...otherProps }: ComponentPropsWithoutRef<"tbody">) => import("react/jsx-runtime").JSX.Element;
7
+ Th: ({ children, id, className, sortable, ...otherProps }: import("./Th").ThProps) => import("react/jsx-runtime").JSX.Element;
8
+ Tr: ({ children, id, className, ...otherProps }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref">) => import("react/jsx-runtime").JSX.Element;
9
+ Td: ({ children, id, className, ...otherProps }: ComponentPropsWithoutRef<"td">) => import("react/jsx-runtime").JSX.Element;
37
10
  };
38
11
  export { Table };
@@ -6,22 +6,13 @@ import { Td } from "./Td";
6
6
  import { Th } from "./Th";
7
7
  import { Tr } from "./Tr";
8
8
  import "@axa-fr/canopee-css/distributeur/Table/Table.css";
9
- const Table = ({ className, classModifier, children, ...othersProps }) => {
9
+ const Table = ({ className, children, ...othersProps }) => {
10
10
  const componentClassName = getClassName({
11
11
  baseClassName: "af-table",
12
- modifiers: classModifier?.split(" "),
13
12
  className,
14
13
  });
15
14
  return (_jsx("table", { className: componentClassName, ...othersProps, children: children }));
16
15
  };
17
- /**
18
- * @deprecated Use Table.THead instead
19
- */
20
- Table.Header = THead;
21
- /**
22
- * @deprecated Use Table.TBody instead
23
- */
24
- Table.Body = TBody;
25
16
  Table.THead = THead;
26
17
  Table.TBody = TBody;
27
18
  Table.Th = Th;
@@ -1,7 +1,3 @@
1
1
  import type { ComponentPropsWithoutRef } from "react";
2
- type Props = ComponentPropsWithoutRef<"td"> & {
3
- /** @deprecated Use `className` instead. */
4
- classModifier?: string;
5
- };
6
- declare const Td: ({ children, id, className, classModifier, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Td: ({ children, id, className, ...otherProps }: ComponentPropsWithoutRef<"td">) => import("react/jsx-runtime").JSX.Element;
7
3
  export { Td };
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
- const Td = ({ children, id, className, classModifier, ...otherProps }) => {
3
+ const Td = ({ children, id, className, ...otherProps }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-table__cell",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return (_jsx("td", { className: componentClassName, id: id, ...otherProps, children: children }, id));
@@ -1,8 +1,6 @@
1
1
  import type { ComponentPropsWithoutRef } from "react";
2
- type Props = ComponentPropsWithoutRef<"th"> & {
3
- /** @deprecated Use `className` instead. */
4
- classModifier?: string;
2
+ export type ThProps = ComponentPropsWithoutRef<"th"> & {
5
3
  sortable?: boolean;
6
4
  };
7
- declare const Th: ({ children, id, className, classModifier, sortable, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ declare const Th: ({ children, id, className, sortable, ...otherProps }: ThProps) => import("react/jsx-runtime").JSX.Element;
8
6
  export { Th };
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
- const Th = ({ children, id, className, classModifier, sortable, ...otherProps }) => {
3
+ const Th = ({ children, id, className, sortable, ...otherProps }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-table__th",
6
- modifiers: [sortable && "sortable", ...(classModifier?.split(" ") ?? [])],
6
+ modifiers: [sortable && "sortable"],
7
7
  className,
8
8
  });
9
9
  return (_jsx("th", { className: componentClassName, id: id, ...otherProps, children: children }, id));
@@ -1,7 +1,4 @@
1
1
  import { type ComponentPropsWithoutRef } from "react";
2
- type Props = ComponentPropsWithoutRef<"tr"> & {
3
- /** @deprecated Use `className` instead. */
4
- classModifier?: string;
5
- };
6
- declare const Tr: ({ children, id, className, classModifier, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
2
+ type Props = ComponentPropsWithoutRef<"tr"> & {};
3
+ declare const Tr: ({ children, id, className, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
7
4
  export { Tr };
@@ -1,10 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import {} from "react";
3
3
  import { getClassName } from "../utilities/helpers/getClassName";
4
- const Tr = ({ children, id, className, classModifier, ...otherProps }) => {
4
+ const Tr = ({ children, id, className, ...otherProps }) => {
5
5
  const componentClassName = getClassName({
6
6
  baseClassName: "af-table__tr",
7
- modifiers: classModifier?.split(" "),
8
7
  className,
9
8
  });
10
9
  return (_jsx("tr", { className: componentClassName, ...otherProps, children: children }, id));
@@ -5,5 +5,5 @@ export { TBody } from "./TBody";
5
5
  export { THead } from "./THead";
6
6
  export { Table } from "./Table";
7
7
  export { Td } from "./Td";
8
- export { Th } from "./Th";
8
+ export { Th, type ThProps } from "./Th";
9
9
  export { Tr } from "./Tr";
@@ -4,10 +4,6 @@ export type TabProps = {
4
4
  title: ReactNode;
5
5
  children?: ReactNode;
6
6
  className?: string;
7
- /**
8
- * @deprecated Use className instead
9
- */
10
- classModifier?: string;
11
7
  };
12
8
  declare const Tab: () => null;
13
9
  export { Tab };
@@ -1,17 +1,13 @@
1
- import { type FormEvent, type ReactElement } from "react";
1
+ import { type ReactElement, type SyntheticEvent } from "react";
2
2
  import type { TabProps } from "./Tab";
3
3
  export type TabsStatelessProps = {
4
4
  children: ReactElement<TabProps> | ReactElement<TabProps>[];
5
5
  activeIndex: number;
6
6
  className?: string;
7
- /**
8
- * @deprecated Use `className` instead
9
- */
10
- classModifier?: string;
11
7
  };
12
8
  export type TabsStatelessHandlers = {
13
- onChange: (event: FormEvent<HTMLButtonElement>, index: number) => void;
9
+ onChange: (event: SyntheticEvent<HTMLButtonElement>, index: number) => void;
14
10
  };
15
11
  type Props = TabsStatelessProps & TabsStatelessHandlers;
16
- declare const TabsStateless: ({ activeIndex, className, classModifier, children, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ declare const TabsStateless: ({ activeIndex, className, children, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
17
13
  export { TabsStateless };
@@ -22,11 +22,11 @@ function handleKeyDown(event, moveToTab, index, totalNumberOfTabs) {
22
22
  event.stopPropagation();
23
23
  }
24
24
  }
25
- const TabsStateless = ({ activeIndex, className = "af-tabs", classModifier, children, onChange, }) => {
25
+ const TabsStateless = ({ activeIndex, className = "af-tabs", children, onChange, }) => {
26
26
  const componentClassName = getClassName({
27
27
  baseClassName: "af-tabs",
28
28
  className,
29
- modifiers: classModifier?.split(" "),
29
+ modifiers: [],
30
30
  });
31
31
  const tabRefs = useRef([]);
32
32
  const moveToTab = (event, index) => {
@@ -2,11 +2,6 @@ import "@axa-fr/canopee-css/distributeur/Tag/Tag.css";
2
2
  import { type ComponentPropsWithRef, type PropsWithChildren } from "react";
3
3
  export type TagVariants = "success" | "information" | "warning" | "error" | "default" | "dark" | "purple" | "gray" | "white";
4
4
  type TagProps = ComponentPropsWithRef<"span"> & {
5
- /**
6
- * Modifier class to apply specific styles. Note: "danger" is deprecated, use "warning" instead. "info" is deprecated, use "information" instead
7
- * @deprecated Use `variant` instead
8
- */
9
- classModifier?: string;
10
5
  /**
11
6
  * Variant of the tag to apply specific styles.
12
7
  * "warning" replaces the deprecated "danger
@@ -29,7 +24,7 @@ type TagProps = ComponentPropsWithRef<"span"> & {
29
24
  * @returns {JSX.Element} The rendered Tag component.
30
25
  */
31
26
  export declare const Tag: {
32
- ({ children, className, classModifier, variant, ...otherProps }: PropsWithChildren<TagProps>): import("react/jsx-runtime").JSX.Element;
27
+ ({ children, className, variant, ...otherProps }: PropsWithChildren<TagProps>): import("react/jsx-runtime").JSX.Element;
33
28
  displayName: string;
34
29
  };
35
30
  export {};
@@ -14,8 +14,8 @@ import { getClassName } from "../utilities/helpers/getClassName";
14
14
  * @param {React.Ref<HTMLSpanElement>} ref - The ref to the span element.
15
15
  * @returns {JSX.Element} The rendered Tag component.
16
16
  */
17
- export const Tag = ({ children, className, classModifier, variant, ...otherProps }) => {
18
- const actualModifier = variant || classModifier || "default";
17
+ export const Tag = ({ children, className, variant, ...otherProps }) => {
18
+ const actualModifier = variant || "default";
19
19
  const componentClassName = getClassName({
20
20
  baseClassName: "af-tag",
21
21
  modifiers: [actualModifier],
@@ -2,15 +2,13 @@ import "@axa-fr/canopee-css/distributeur/Title/Title.css";
2
2
  import { type ComponentPropsWithRef, type PropsWithChildren, type ReactElement, type ReactNode } from "react";
3
3
  type Headings = "h2" | "h3" | "h4";
4
4
  type TitleProps = ComponentPropsWithRef<"h2"> & {
5
- /** @deprecated Use `className` instead. */
6
- classModifier?: string;
7
5
  heading?: Headings;
8
6
  contentLeft?: ReactElement;
9
7
  contentRight?: ReactNode;
10
8
  withDivider?: boolean;
11
9
  };
12
10
  export declare const Title: {
13
- ({ className, classModifier, children, heading: Heading, contentLeft, contentRight, withDivider, ...otherProps }: PropsWithChildren<TitleProps>): import("react/jsx-runtime").JSX.Element;
11
+ ({ className, children, heading: Heading, contentLeft, contentRight, withDivider, ...otherProps }: PropsWithChildren<TitleProps>): import("react/jsx-runtime").JSX.Element;
14
12
  displayName: string;
15
13
  };
16
14
  export {};
@@ -3,8 +3,8 @@ import "@axa-fr/canopee-css/distributeur/Title/Title.css";
3
3
  import {} from "react";
4
4
  import { getClassName } from "../utilities/helpers/getClassName";
5
5
  const baseClass = "af-title";
6
- export const Title = ({ className, classModifier, children, heading: Heading = "h2", contentLeft, contentRight, withDivider = true, ...otherProps }) => {
7
- const modifiers = classModifier?.split(" ") ?? [];
6
+ export const Title = ({ className, children, heading: Heading = "h2", contentLeft, contentRight, withDivider = true, ...otherProps }) => {
7
+ const modifiers = [];
8
8
  if (!withDivider) {
9
9
  modifiers.push("without-divider");
10
10
  }
@@ -13,6 +13,6 @@ export const Title = ({ className, classModifier, children, heading: Heading = "
13
13
  modifiers,
14
14
  className,
15
15
  });
16
- return (_jsxs("div", { className: `${baseClass}--container`, children: [_jsxs(Heading, { className: componentClassName, ...otherProps, children: [children, contentLeft] }), contentRight ? (_jsx("div", { className: "content-right", children: contentRight })) : null] }));
16
+ return (_jsxs("div", { className: `${baseClass}--container`, children: [_jsxs(Heading, { className: componentClassName, ...otherProps, children: [children, contentLeft] }), contentRight ? (_jsx("div", { className: `${baseClass}__content-right`, children: contentRight })) : null] }));
17
17
  };
18
18
  Title.displayName = "Title";
@@ -1,3 +1,3 @@
1
1
  export { BREAKPOINT } from "./utilities/constants";
2
- export { getComponentClassName } from "./utilities/helpers/getComponentClassName";
2
+ export { getClassName } from "./utilities/helpers/getClassName";
3
3
  export { useIsSmallScreen } from "./utilities/hooks/useIsSmallScreen";
@@ -1,3 +1,3 @@
1
1
  export { BREAKPOINT } from "./utilities/constants";
2
- export { getComponentClassName } from "./utilities/helpers/getComponentClassName";
2
+ export { getClassName } from "./utilities/helpers/getClassName";
3
3
  export { useIsSmallScreen } from "./utilities/hooks/useIsSmallScreen";
@@ -1,2 +1,4 @@
1
+ import "@axa-fr/canopee-css/distributeur/common/reboot.css";
2
+ import "@axa-fr/canopee-css/distributeur/common/tokens.css";
1
3
  export * from "./distributeur/Experimental/Restitution";
2
4
  export * from "./distributeur/Form/Experimental";
@@ -1,2 +1,4 @@
1
+ import "@axa-fr/canopee-css/distributeur/common/reboot.css";
2
+ import "@axa-fr/canopee-css/distributeur/common/tokens.css";
1
3
  export * from "./distributeur/Experimental/Restitution";
2
4
  export * from "./distributeur/Form/Experimental";
@@ -7,8 +7,6 @@ import "@axa-fr/canopee-css/distributeur/Form/core/FormCore.css";
7
7
  import "@fontsource/source-sans-pro/400.css";
8
8
  import "@fontsource/source-sans-pro/600.css";
9
9
  import "@fontsource/source-sans-pro/700.css";
10
- import { Message } from "./distributeur/Messages/Message";
11
- import { Tag } from "./distributeur/Tag/Tag";
12
10
  export { Action } from "./distributeur/Action/Action";
13
11
  export { Button } from "./distributeur/Button/Button";
14
12
  export type { ButtonVariant } from "./distributeur/Button/Button";
@@ -16,22 +14,21 @@ export { Card } from "./distributeur/Card/Card";
16
14
  export { Divider } from "./distributeur/Divider/Divider";
17
15
  export { Checkbox, CheckboxInput, CheckboxItem, CheckboxModes, } from "./distributeur/Form/Checkbox";
18
16
  export { Choice, ChoiceInput } from "./distributeur/Form/Choice";
19
- export { LegacyField as Field, FieldError, FieldForm, FieldInput, FormClassManager, HelpMessage, InputList, MessageTypes, } from "./distributeur/Form/core";
17
+ export { Field, FieldError, FormClassManager, HelpMessage, InputList, MessageTypes, } from "./distributeur/Form/core";
20
18
  export { Date, DateInput } from "./distributeur/Form/Date";
21
19
  export { File, FileInput, FileTable, type FilePreview, } from "./distributeur/Form/File";
22
20
  export { MultiSelect, MultiSelectInput } from "./distributeur/Form/MultiSelect";
23
21
  export { NestedQuestion } from "./distributeur/Form/NestedQuestion/NestedQuestion";
24
22
  export { Number, NumberInput } from "./distributeur/Form/Number";
25
- export { Pass, PassInput } from "./distributeur/Form/Pass";
26
23
  export { Radio, RadioInput, RadioItem, RadioModes, } from "./distributeur/Form/Radio";
27
- export { Select, SelectBase, SelectInput } from "./distributeur/Form/Select";
28
- export { Slider, SliderInput } from "./distributeur/Form/Slider";
24
+ export { Select, SelectInput } from "./distributeur/Form/Select";
29
25
  export { Text, TextInput } from "./distributeur/Form/Text";
30
26
  export { Textarea, TextareaInput } from "./distributeur/Form/Textarea";
31
27
  export { Footer } from "./distributeur/Layout/Footer";
32
28
  export { Header, HeaderTitle, Infos, MenuTitleWrapper, Name, NavBar, NavBarBase, NavBarItem, NavBarItemBase, NavBarItemLink, ToggleButton, User, type AnchorNavBarItem, } from "./distributeur/Layout/Header";
33
29
  export { MainContainer } from "./distributeur/Layout/MainContainer/MainContainer";
34
30
  export { Link, type LinkProps } from "./distributeur/Link/Link";
31
+ export { ButtonMultiActions, type ButtonMultiActionsProps, } from "./distributeur/ButtonMultiActions";
35
32
  export { MandatoryMention } from "./distributeur/MandatoryMention/MandatoryMention";
36
33
  export { BooleanModal, Modal, ModalBody, ModalFooter, ModalHeader, ModalHeaderBase, } from "./distributeur/ModalAgent";
37
34
  export { ArticleRestitution, HeaderRestitution, Restitution, RestitutionList, SectionRestitution, SectionRestitutionColumn, SectionRestitutionRow, SectionRestitutionTitle, } from "./distributeur/Restitution";
@@ -41,33 +38,22 @@ export { Summary } from "./distributeur/Summary";
41
38
  export { Svg } from "./distributeur/Svg";
42
39
  export { Tabs } from "./distributeur/Tabs/Tabs";
43
40
  export { Title } from "./distributeur/Title/Title";
44
- export { getComponentClassName } from "./distributeur/utilities";
45
- /** @deprecated Use `Tag` instead. */
46
- declare const Badge: {
47
- ({ children, className, classModifier, variant, ...otherProps }: import("react").PropsWithChildren<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
48
- classModifier?: string;
49
- variant?: import("./distributeur").TagVariants;
50
- disabled?: boolean;
51
- }>): import("react/jsx-runtime").JSX.Element;
52
- displayName: string;
53
- };
41
+ export { getClassName } from "./distributeur/utilities";
54
42
  export type { TagVariants } from "./distributeur/Tag/Tag";
55
- export { Badge, Tag };
56
- /**
57
- * @deprecated `Alert` has been renamed `Message` in order to comply with UX naming of components. Use `Message` instead.
58
- * @see {@link Message}
59
- */
60
- declare const Alert: ({ className, onClose, icon, title, children, classModifier, variant, closeButtonAriaLabel, }: import("react").PropsWithChildren<import("./distributeur").MessageProps>) => import("react/jsx-runtime").JSX.Element;
43
+ export { Tag } from "./distributeur/Tag/Tag";
61
44
  export * from "./distributeur/Accordion";
62
45
  export { type MessageProps, type MessageVariants, } from "./distributeur/Messages/Message";
63
46
  export * from "./distributeur/Popover";
64
47
  export * from "./distributeur/Table";
65
- export { Alert, Message };
48
+ export { Message } from "./distributeur/Messages/Message";
66
49
  export { HelpButton } from "./distributeur/HelpButton";
67
50
  export { Loader } from "./distributeur/Loader/Loader";
68
51
  export { ItemLoader, type ItemLoaderVariant, } from "./distributeur/Loader/ItemLoader";
69
- export { SquareLoader } from "./distributeur/Loader/SquareLoader";
70
52
  export { CardData } from "./distributeur/CardData/CardData";
71
53
  export type { CardDataVariant } from "./distributeur/CardData/CardData";
72
54
  export { EditorialMessage, type EditorialMessageProps, type EditorialMessageType, } from "./distributeur/EditorialMessage/EditorialMessage";
73
55
  export { Timeline, type TimelineProps, type TimelineVariants, } from "./distributeur/Timeline/Timeline";
56
+ export { CardButton, type CardButtonProps, } from "./distributeur/CardButton/CardButton";
57
+ export type { ClickableComponentProps } from "./distributeur/ClickableGhost";
58
+ export { BaseCard, type BaseCardProps } from "./distributeur/Card/BaseCard";
59
+ export { ItemFormHelper, type ItemFormHelperProps, type ItemFormHelperVariant, } from "./distributeur/ItemFormHelper/ItemFormHelper";
@@ -7,30 +7,27 @@ import "@axa-fr/canopee-css/distributeur/Form/core/FormCore.css";
7
7
  import "@fontsource/source-sans-pro/400.css";
8
8
  import "@fontsource/source-sans-pro/600.css";
9
9
  import "@fontsource/source-sans-pro/700.css";
10
- import { Message } from "./distributeur/Messages/Message";
11
- import { Tag } from "./distributeur/Tag/Tag";
12
10
  export { Action } from "./distributeur/Action/Action";
13
11
  export { Button } from "./distributeur/Button/Button";
14
12
  export { Card } from "./distributeur/Card/Card";
15
13
  export { Divider } from "./distributeur/Divider/Divider";
16
14
  export { Checkbox, CheckboxInput, CheckboxItem, CheckboxModes, } from "./distributeur/Form/Checkbox";
17
15
  export { Choice, ChoiceInput } from "./distributeur/Form/Choice";
18
- export { LegacyField as Field, FieldError, FieldForm, FieldInput, FormClassManager, HelpMessage, InputList, MessageTypes, } from "./distributeur/Form/core";
16
+ export { Field, FieldError, FormClassManager, HelpMessage, InputList, MessageTypes, } from "./distributeur/Form/core";
19
17
  export { Date, DateInput } from "./distributeur/Form/Date";
20
18
  export { File, FileInput, FileTable, } from "./distributeur/Form/File";
21
19
  export { MultiSelect, MultiSelectInput } from "./distributeur/Form/MultiSelect";
22
20
  export { NestedQuestion } from "./distributeur/Form/NestedQuestion/NestedQuestion";
23
21
  export { Number, NumberInput } from "./distributeur/Form/Number";
24
- export { Pass, PassInput } from "./distributeur/Form/Pass";
25
22
  export { Radio, RadioInput, RadioItem, RadioModes, } from "./distributeur/Form/Radio";
26
- export { Select, SelectBase, SelectInput } from "./distributeur/Form/Select";
27
- export { Slider, SliderInput } from "./distributeur/Form/Slider";
23
+ export { Select, SelectInput } from "./distributeur/Form/Select";
28
24
  export { Text, TextInput } from "./distributeur/Form/Text";
29
25
  export { Textarea, TextareaInput } from "./distributeur/Form/Textarea";
30
26
  export { Footer } from "./distributeur/Layout/Footer";
31
27
  export { Header, HeaderTitle, Infos, MenuTitleWrapper, Name, NavBar, NavBarBase, NavBarItem, NavBarItemBase, NavBarItemLink, ToggleButton, User, } from "./distributeur/Layout/Header";
32
28
  export { MainContainer } from "./distributeur/Layout/MainContainer/MainContainer";
33
29
  export { Link } from "./distributeur/Link/Link";
30
+ export { ButtonMultiActions, } from "./distributeur/ButtonMultiActions";
34
31
  export { MandatoryMention } from "./distributeur/MandatoryMention/MandatoryMention";
35
32
  export { BooleanModal, Modal, ModalBody, ModalFooter, ModalHeader, ModalHeaderBase, } from "./distributeur/ModalAgent";
36
33
  export { ArticleRestitution, HeaderRestitution, Restitution, RestitutionList, SectionRestitution, SectionRestitutionColumn, SectionRestitutionRow, SectionRestitutionTitle, } from "./distributeur/Restitution";
@@ -39,24 +36,19 @@ export { Summary } from "./distributeur/Summary";
39
36
  export { Svg } from "./distributeur/Svg";
40
37
  export { Tabs } from "./distributeur/Tabs/Tabs";
41
38
  export { Title } from "./distributeur/Title/Title";
42
- export { getComponentClassName } from "./distributeur/utilities";
43
- /** @deprecated Use `Tag` instead. */
44
- const Badge = Tag;
45
- export { Badge, Tag };
46
- /**
47
- * @deprecated `Alert` has been renamed `Message` in order to comply with UX naming of components. Use `Message` instead.
48
- * @see {@link Message}
49
- */
50
- const Alert = Message;
39
+ export { getClassName } from "./distributeur/utilities";
40
+ export { Tag } from "./distributeur/Tag/Tag";
51
41
  export * from "./distributeur/Accordion";
52
42
  export {} from "./distributeur/Messages/Message";
53
43
  export * from "./distributeur/Popover";
54
44
  export * from "./distributeur/Table";
55
- export { Alert, Message };
45
+ export { Message } from "./distributeur/Messages/Message";
56
46
  export { HelpButton } from "./distributeur/HelpButton";
57
47
  export { Loader } from "./distributeur/Loader/Loader";
58
48
  export { ItemLoader, } from "./distributeur/Loader/ItemLoader";
59
- export { SquareLoader } from "./distributeur/Loader/SquareLoader";
60
49
  export { CardData } from "./distributeur/CardData/CardData";
61
50
  export { EditorialMessage, } from "./distributeur/EditorialMessage/EditorialMessage";
62
51
  export { Timeline, } from "./distributeur/Timeline/Timeline";
52
+ export { CardButton, } from "./distributeur/CardButton/CardButton";
53
+ export { BaseCard } from "./distributeur/Card/BaseCard";
54
+ export { ItemFormHelper, } from "./distributeur/ItemFormHelper/ItemFormHelper";
@@ -1,19 +1,17 @@
1
1
  import { type ComponentProps, type ComponentType, type MouseEventHandler, type ReactNode } from "react";
2
+ import type { ClickIconVariant } from "../ClickIcon/ClickIconCommon";
2
3
  import type { IconProps } from "../Icon/IconCommon";
3
4
  type SummaryOnClick = MouseEventHandler<HTMLElement>;
4
5
  export type AccordionCoreProps = {
5
6
  summary: ReactNode;
6
- /**
7
- * @deprecated use `open` instead
8
- */
9
- isOpen?: boolean;
10
7
  summaryProps?: Omit<ComponentProps<"summary">, "onClick">;
11
8
  onClick?: SummaryOnClick;
12
9
  showArrowAsClickIcon?: boolean;
10
+ arrowClickIconVariant?: ClickIconVariant;
13
11
  arrowIconVariant?: IconProps["variant"];
14
12
  } & ComponentProps<"details">;
15
13
  export type AccordionPropsCommonProps = AccordionCoreProps & {
16
14
  IconComponent: ComponentType<IconProps>;
17
15
  };
18
- export declare const AccordionCoreCommon: ({ summary, children, className, summaryProps, isOpen, IconComponent, onClick, showArrowAsClickIcon, arrowIconVariant, ...detailsProps }: AccordionPropsCommonProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const AccordionCoreCommon: ({ summary, children, className, summaryProps, IconComponent, onClick, showArrowAsClickIcon, arrowClickIconVariant, arrowIconVariant, ...detailsProps }: AccordionPropsCommonProps) => import("react/jsx-runtime").JSX.Element;
19
17
  export {};
@@ -1,22 +1,28 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCallback, } from "react";
3
2
  import keyboardDown from "@material-symbols/svg-400/rounded/keyboard_arrow_down-fill.svg";
3
+ import { useCallback, } from "react";
4
4
  import { getClassName } from "../utilities/getClassName";
5
- export const AccordionCoreCommon = ({ summary, children, className, summaryProps, isOpen = false, IconComponent, onClick, showArrowAsClickIcon = true, arrowIconVariant, ...detailsProps }) => {
5
+ export const AccordionCoreCommon = ({ summary, children, className, summaryProps, IconComponent, onClick, showArrowAsClickIcon = true, arrowClickIconVariant = "default", arrowIconVariant, ...detailsProps }) => {
6
6
  const handleSummaryClick = useCallback((event) => {
7
7
  if (onClick) {
8
8
  event.preventDefault();
9
9
  onClick(event);
10
10
  }
11
11
  }, [onClick]);
12
+ const arrowClassName = showArrowAsClickIcon
13
+ ? getClassName({
14
+ baseClassName: "af-click-icon",
15
+ modifiers: [arrowClickIconVariant === "ghost" && arrowClickIconVariant],
16
+ })
17
+ : undefined;
12
18
  return (_jsxs("details", { className: getClassName({
13
19
  baseClassName: "af-apollo-accordion",
14
20
  className,
15
- }), open: isOpen, ...detailsProps, children: [_jsxs("summary", { onClick: handleSummaryClick, tabIndex: 0, ...summaryProps, className: getClassName({
21
+ }), ...detailsProps, children: [_jsxs("summary", { onClick: handleSummaryClick, tabIndex: 0, ...summaryProps, className: getClassName({
16
22
  baseClassName: "af-apollo-accordion__summary",
17
23
  className: summaryProps?.className,
18
24
  }), children: [summary, _jsx("div", { className: getClassName({
19
25
  baseClassName: "af-accordion__arrow",
20
- className: showArrowAsClickIcon ? "af-click-icon" : "",
26
+ className: arrowClassName,
21
27
  }), children: _jsx(IconComponent, { src: keyboardDown, role: "presentation", variant: arrowIconVariant }) })] }), children] }));
22
28
  };
@@ -0,0 +1,44 @@
1
+ import type { ComponentPropsWithoutRef, ElementType } from "react";
2
+ import "@axa-fr/canopee-css/prospect/AppName/AppNameAll.css";
3
+ /**
4
+ * Props for the AppName component.
5
+ */
6
+ export type AppNameProps = ComponentPropsWithoutRef<"div"> & {
7
+ /**
8
+ * Application name displayed next to the AXA logo.
9
+ */
10
+ label: string;
11
+ /**
12
+ * Alt text for the AXA logo image.
13
+ * @default "Logo AXA"
14
+ */
15
+ logoAlt?: string;
16
+ /**
17
+ * Props forwarded to the `LogoLinkComponent` (defaults to `<a>`).
18
+ * @example { href: "/" }
19
+ * @example { to: "/" } // for React Router Link
20
+ */
21
+ logoLinkProps?: Record<string, unknown>;
22
+ /**
23
+ * Element or component used to wrap the logo.
24
+ * Accepts native HTML elements (`"a"`) or custom components (e.g. `Link` from React Router or the DS).
25
+ * `logoLinkProps` are forwarded to it.
26
+ * @default "a"
27
+ * @example "a"
28
+ * @example Link // from react-router-dom or the DS
29
+ */
30
+ LogoLinkComponent?: ElementType;
31
+ };
32
+ /**
33
+ * Displays the application name alongside the AXA logo.
34
+ * The logo can optionally be wrapped in a native anchor or a custom link component.
35
+ *
36
+ * @component
37
+ * @param {AppNameProps} props - AppName props.
38
+ * @param {string} props.label - Application name displayed next to the logo.
39
+ * @param {string} [props.logoAlt="Logo AXA"] - Alt text for the AXA logo image.
40
+ * @param {Record<string, unknown>} [props.logoLinkProps] - Props forwarded to the wrapping anchor or `LogoLinkComponent`.
41
+ * @param {ElementType} [props.LogoLinkComponent="a"] - Element or component used to wrap the logo. Accepts `"a"` or any custom link component (e.g. React Router `Link`).
42
+ * @returns {JSX.Element} The rendered AppName component.
43
+ */
44
+ export declare const AppName: ({ label, className, logoAlt, logoLinkProps, LogoLinkComponent, ...props }: AppNameProps) => import("react/jsx-runtime").JSX.Element;