@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
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../../utilities/helpers/getClassName";
3
- const Body = ({ children, className, classModifier, ...otherProps }) => {
3
+ const Body = ({ children, className, ...otherProps }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-modal__body",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return (_jsx("section", { className: componentClassName, ...otherProps, children: children }));
@@ -1,6 +1,3 @@
1
- export type FooterProps = React.HTMLAttributes<HTMLDivElement> & {
2
- /** @deprecated Use `className` instead. */
3
- classModifier?: string;
4
- };
5
- declare const Footer: ({ classModifier, className, ...rest }: FooterProps) => import("react/jsx-runtime").JSX.Element;
1
+ export type FooterProps = React.HTMLAttributes<HTMLDivElement> & {};
2
+ declare const Footer: ({ className, ...rest }: FooterProps) => import("react/jsx-runtime").JSX.Element;
6
3
  export { Footer };
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../../utilities/helpers/getClassName";
3
- const Footer = ({ classModifier, className, ...rest }) => {
3
+ const Footer = ({ className, ...rest }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-modal__footer",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return _jsx("footer", { ...rest, className: componentClassName });
@@ -1,10 +1,5 @@
1
1
  import type { MouseEventHandler, ReactNode } from "react";
2
2
  export type HeaderProps = React.HTMLAttributes<HTMLDivElement> & {
3
- /**
4
- * Text displayed in the header.
5
- * @deprecated Use `children` instead to allow for more flexible content.
6
- */
7
- title?: string;
8
3
  /**
9
4
  * Text displayed in the header, overrides `title` if both are set.
10
5
  */
@@ -17,15 +12,10 @@ export type HeaderProps = React.HTMLAttributes<HTMLDivElement> & {
17
12
  * Aria label for the close button, used for accessibility.
18
13
  */
19
14
  closeButtonAriaLabel?: string;
20
- /**
21
- * Class modifier for the header. Can be used to apply custom styles.
22
- * @deprecated Use `className` instead.
23
- */
24
- classModifier?: string;
25
15
  /**
26
16
  * Prop to override the style of the header. Will totally remove the default styles.
27
17
  */
28
18
  className?: string;
29
19
  };
30
- declare const Header: ({ className, classModifier, title, closeButtonAriaLabel, onCancel, children, ...props }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
20
+ declare const Header: ({ className, closeButtonAriaLabel, onCancel, children, ...props }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
31
21
  export { Header };
@@ -2,12 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import closeIcon from "@material-symbols/svg-400/outlined/close.svg";
3
3
  import { Svg } from "../../../distributeur";
4
4
  import { getClassName } from "../../utilities/helpers/getClassName";
5
- const Header = ({ className, classModifier, title, closeButtonAriaLabel = "Fermer la boite de dialogue", onCancel, children, ...props }) => {
5
+ const Header = ({ className, closeButtonAriaLabel = "Fermer la boite de dialogue", onCancel, children, ...props }) => {
6
6
  const componentClassName = getClassName({
7
7
  baseClassName: "af-modal__header",
8
- modifiers: classModifier?.split(" "),
9
8
  className,
10
9
  });
11
- return (_jsxs("header", { className: componentClassName, ...props, children: [_jsx("h4", { className: "af-modal__header-title", children: children ?? title }), _jsx("button", { className: "af-modal__header-close-btn", type: "button", "aria-label": closeButtonAriaLabel, onClick: onCancel, children: _jsx(Svg, { src: closeIcon }) })] }));
10
+ return (_jsxs("header", { className: componentClassName, ...props, children: [_jsx("h4", { className: "af-modal__header-title", children: children }), _jsx("button", { className: "af-modal__header-close-btn", type: "button", "aria-label": closeButtonAriaLabel, onClick: onCancel, children: _jsx(Svg, { src: closeIcon }) })] }));
12
11
  };
13
12
  export { Header };
@@ -1,6 +1,3 @@
1
- export type HeaderBaseProps = React.HTMLAttributes<HTMLDivElement> & {
2
- /** @deprecated Use `className` instead. */
3
- classModifier?: string;
4
- };
5
- declare const HeaderBase: ({ classModifier, className, ...rest }: HeaderBaseProps) => import("react/jsx-runtime").JSX.Element;
1
+ export type HeaderBaseProps = React.HTMLAttributes<HTMLDivElement> & {};
2
+ declare const HeaderBase: ({ className, ...rest }: HeaderBaseProps) => import("react/jsx-runtime").JSX.Element;
6
3
  export { HeaderBase };
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../../utilities/helpers/getClassName";
3
- const HeaderBase = ({ classModifier, className, ...rest }) => {
3
+ const HeaderBase = ({ className, ...rest }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-modal__header",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return _jsx("header", { ...rest, className: componentClassName });
@@ -6,10 +6,8 @@ type PropsAnimatedPopover = {
6
6
  isOpen: boolean;
7
7
  target: React.ReactNode;
8
8
  className?: string;
9
- /** @deprecated Use `className` instead. */
10
- classModifier?: string;
11
9
  onMouseEnter?: (event: React.MouseEvent) => void;
12
10
  onMouseLeave?: (event: React.MouseEvent) => void;
13
11
  };
14
- export declare const AnimatedPopover: ({ placement, children, isOpen, target, className, classModifier, onMouseEnter, onMouseLeave, }: PropsAnimatedPopover) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const AnimatedPopover: ({ placement, children, isOpen, target, className, onMouseEnter, onMouseLeave, }: PropsAnimatedPopover) => import("react/jsx-runtime").JSX.Element;
15
13
  export {};
@@ -4,10 +4,9 @@ import { arrow, FloatingArrow, offset, useFloating, } from "@floating-ui/react";
4
4
  import React, { useRef } from "react";
5
5
  import { getClassName } from "../utilities/helpers/getClassName";
6
6
  const defaultClassName = "af-popover__container";
7
- export const AnimatedPopover = ({ placement, children, isOpen, target, className, classModifier, onMouseEnter, onMouseLeave, }) => {
7
+ export const AnimatedPopover = ({ placement, children, isOpen, target, className, onMouseEnter, onMouseLeave, }) => {
8
8
  const componentClassName = getClassName({
9
9
  baseClassName: defaultClassName,
10
- modifiers: classModifier?.split(" ") ?? [],
11
10
  className,
12
11
  });
13
12
  const [referenceElement, setReferenceElement] = React.useState(null);
@@ -3,12 +3,10 @@ import React from "react";
3
3
  import type { PopoverModes } from "./Popover.types";
4
4
  type Props = {
5
5
  className?: string;
6
- /** @deprecated Use `className` instead. */
7
- classModifier?: string;
8
6
  placement?: Placement;
9
7
  mode: PopoverModes;
10
8
  popoverElement: React.ReactNode;
11
9
  children: React.ReactNode;
12
10
  };
13
- declare const Popover: ({ children, placement, className, classModifier, mode, popoverElement: content, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ declare const Popover: ({ children, placement, className, mode, popoverElement: content, }: Props) => import("react/jsx-runtime").JSX.Element;
14
12
  export { Popover };
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { PopoverClick } from "./PopoverClick";
4
4
  import { PopoverOver } from "./PopoverOver";
5
- const Popover = ({ children, placement = "top", className, classModifier, mode = "click", popoverElement: content, }) => {
5
+ const Popover = ({ children, placement = "top", className, mode = "click", popoverElement: content, }) => {
6
6
  const Component = mode === "click" ? PopoverClick : PopoverOver;
7
- return (_jsx(Component, { className: className, classModifier: classModifier, placement: placement, element: content, children: children }));
7
+ return (_jsx(Component, { className: className, placement: placement, element: content, children: children }));
8
8
  };
9
9
  export { Popover };
@@ -2,8 +2,6 @@ import type { Placement } from "@floating-ui/react";
2
2
  export type PopoverModes = "hover" | "click";
3
3
  export type PopoverProps = {
4
4
  className?: string;
5
- /** @deprecated Use `className` instead. */
6
- classModifier?: string;
7
5
  size?: "small";
8
6
  placement?: Placement;
9
7
  children?: React.ReactNode;
@@ -4,13 +4,11 @@ import "@axa-fr/canopee-css/distributeur/Popover/Popover.css";
4
4
  type Props = {
5
5
  placement?: Placement;
6
6
  className?: string;
7
- /** @deprecated Use `className` instead. */
8
- classModifier?: string;
9
7
  element: React.ReactNode;
10
8
  children: React.ReactNode | React.ReactNode[];
11
9
  isOpen: boolean;
12
10
  onMouseEnter?: (event: React.MouseEvent) => void;
13
11
  onMouseLeave?: (event: React.MouseEvent) => void;
14
12
  };
15
- declare const PopoverBase: ({ children, isOpen, placement, className, classModifier, element, onMouseEnter, onMouseLeave, }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ declare const PopoverBase: ({ children, isOpen, placement, className, element, onMouseEnter, onMouseLeave, }: Props) => import("react/jsx-runtime").JSX.Element;
16
14
  export { PopoverBase };
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { AnimatedPopover } from "./AnimatedPopover";
4
4
  import "@axa-fr/canopee-css/distributeur/Popover/Popover.css";
5
- const PopoverBase = ({ children, isOpen, placement = "right", className, classModifier, element, onMouseEnter, onMouseLeave, }) => {
6
- return (_jsx(AnimatedPopover, { target: children, placement: placement, isOpen: isOpen, className: className, classModifier: classModifier, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: element }));
5
+ const PopoverBase = ({ children, isOpen, placement = "right", className, element, onMouseEnter, onMouseLeave, }) => {
6
+ return (_jsx(AnimatedPopover, { target: children, placement: placement, isOpen: isOpen, className: className, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: element }));
7
7
  };
8
8
  export { PopoverBase };
@@ -1,2 +1,2 @@
1
1
  import type { PopoverProps } from "./Popover.types";
2
- export declare const PopoverClick: ({ children, placement, className, classModifier, element, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const PopoverClick: ({ children, placement, className, element, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { PopoverBase } from "./PopoverBase";
4
- export const PopoverClick = ({ children, placement, className, classModifier, element, }) => {
4
+ export const PopoverClick = ({ children, placement, className, element, }) => {
5
5
  const wrapperRef = React.useRef(null);
6
6
  const [isOpen, setOpen] = React.useState(false);
7
7
  const [isPopoverHover, setPopoverHover] = React.useState(false);
@@ -23,5 +23,5 @@ export const PopoverClick = ({ children, placement, className, classModifier, el
23
23
  const handleMouseLeavePopover = () => {
24
24
  setPopoverHover(false);
25
25
  };
26
- return (_jsx("div", { role: "button", tabIndex: 0, ref: wrapperRef, className: "af-popover__wrapper af-popover__wrapper--click", onKeyDown: handleKeyDown, onClick: handleClick, onBlur: (event) => handleClick(event, false), children: _jsx(PopoverBase, { onMouseEnter: handleMouseEnterPopover, onMouseLeave: handleMouseLeavePopover, isOpen: isOpen, placement: placement, className: className, classModifier: classModifier, element: element, children: children }) }));
26
+ return (_jsx("div", { role: "button", tabIndex: 0, ref: wrapperRef, className: "af-popover__wrapper af-popover__wrapper--click", onKeyDown: handleKeyDown, onClick: handleClick, onBlur: (event) => handleClick(event, false), children: _jsx(PopoverBase, { onMouseEnter: handleMouseEnterPopover, onMouseLeave: handleMouseLeavePopover, isOpen: isOpen, placement: placement, className: className, element: element, children: children }) }));
27
27
  };
@@ -1,2 +1,2 @@
1
1
  import type { PopoverProps } from "./Popover.types";
2
- export declare const PopoverOver: ({ children, placement, className, classModifier, element: content, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const PopoverOver: ({ children, placement, className, element: content, }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { PopoverBase } from "./PopoverBase";
4
- export const PopoverOver = ({ children, placement, className, classModifier, element: content, }) => {
4
+ export const PopoverOver = ({ children, placement, className, element: content, }) => {
5
5
  const [isOpen, setOpen] = React.useState(false);
6
6
  const handleMouseEnter = () => {
7
7
  setOpen(true);
@@ -9,5 +9,5 @@ export const PopoverOver = ({ children, placement, className, classModifier, ele
9
9
  const handleMouseLeave = () => {
10
10
  setOpen(false);
11
11
  };
12
- return (_jsx("div", { role: "button", tabIndex: 0, className: "af-popover__wrapper af-popover__wrapper--over", onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onFocus: handleMouseEnter, onBlur: handleMouseLeave, children: _jsx(PopoverBase, { isOpen: isOpen, placement: placement, className: className, classModifier: classModifier, element: content, children: children }) }));
12
+ return (_jsx("div", { role: "button", tabIndex: 0, className: "af-popover__wrapper af-popover__wrapper--over", onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onFocus: handleMouseEnter, onBlur: handleMouseLeave, children: _jsx(PopoverBase, { isOpen: isOpen, placement: placement, className: className, element: content, children: children }) }));
13
13
  };
@@ -1,7 +1,4 @@
1
1
  import type { ComponentPropsWithoutRef, PropsWithChildren } from "react";
2
- type ArticleRestitutionProps = ComponentPropsWithoutRef<"article"> & {
3
- /** @deprecated Use `className` instead. */
4
- classModifier?: string;
5
- };
6
- export declare const ArticleRestitution: ({ children, className, classModifier, ...otherProps }: PropsWithChildren<ArticleRestitutionProps>) => import("react/jsx-runtime").JSX.Element;
2
+ type ArticleRestitutionProps = ComponentPropsWithoutRef<"article"> & {};
3
+ export declare const ArticleRestitution: ({ children, className, ...otherProps }: PropsWithChildren<ArticleRestitutionProps>) => import("react/jsx-runtime").JSX.Element;
7
4
  export {};
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
- export const ArticleRestitution = ({ children, className, classModifier, ...otherProps }) => {
3
+ export const ArticleRestitution = ({ children, className, ...otherProps }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-restitution",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return (_jsx("article", { className: componentClassName, ...otherProps, children: children }));
@@ -4,7 +4,5 @@ export type HeaderRestitutionProps = {
4
4
  title: React.ReactNode;
5
5
  subtitle?: React.ReactNode;
6
6
  rightTitle?: React.ReactNode;
7
- /** @deprecated Use `className` instead. */
8
- classModifier?: string;
9
7
  };
10
- export declare const HeaderRestitution: ({ title, subtitle, rightTitle, className, classModifier, }: HeaderRestitutionProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const HeaderRestitution: ({ title, subtitle, rightTitle, className, }: HeaderRestitutionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { getClassName } from "../utilities/helpers/getClassName";
4
- export const HeaderRestitution = ({ title, subtitle, rightTitle, className, classModifier, }) => {
4
+ export const HeaderRestitution = ({ title, subtitle, rightTitle, className, }) => {
5
5
  const componentClassName = getClassName({
6
6
  baseClassName: "af-restitution__header",
7
- modifiers: classModifier?.split(" "),
8
7
  className,
9
8
  });
10
9
  return (_jsxs("header", { className: componentClassName, children: [_jsx("div", { className: "af-restitution__header-left", children: _jsxs("h3", { className: "af-restitution__title", children: [_jsx("span", { className: "af-restitution__title-main", children: title }), subtitle ? (_jsx("span", { className: "af-restitution__title-subtitle", children: subtitle })) : null] }) }), rightTitle ? (_jsx("div", { className: "af-restitution__header-right", children: _jsx("span", { className: "af-restitution__title", children: rightTitle }) })) : null] }));
@@ -1,8 +1,6 @@
1
1
  import type { ComponentPropsWithoutRef, PropsWithChildren } from "react";
2
2
  export type RestitutionProps = ComponentPropsWithoutRef<"dl"> & {
3
3
  label: string;
4
- /** @deprecated Use `className` instead. */
5
- classModifier?: string;
6
4
  variant?: "marge";
7
5
  };
8
- export declare const Restitution: ({ label, children, className, classModifier, variant, }: PropsWithChildren<RestitutionProps>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Restitution: ({ label, children, className, variant, }: PropsWithChildren<RestitutionProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
- export const Restitution = ({ label, children = "-", className, classModifier, variant, }) => {
3
+ export const Restitution = ({ label, children = "-", className, variant, }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-restitution__listdef",
6
- modifiers: [variant, ...(classModifier?.split(" ") ?? [])],
6
+ modifiers: [variant],
7
7
  className,
8
8
  });
9
9
  return (_jsxs("dl", { className: componentClassName, children: [_jsx("dt", { className: "af-restitution__listdef-item", children: _jsx("span", { className: "af-restitution__text", children: label }) }), _jsx("dd", { className: "af-restitution__listdef-value", children: children })] }));
@@ -1,7 +1,5 @@
1
1
  import type { PropsWithChildren } from "react";
2
2
  export type SectionRestitutionProps = {
3
3
  className?: string;
4
- /** @deprecated Use `className` instead. */
5
- classModifier?: string;
6
4
  };
7
- export declare const SectionRestitution: ({ children, className, classModifier, }: PropsWithChildren<SectionRestitutionProps>) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const SectionRestitution: ({ children, className, }: PropsWithChildren<SectionRestitutionProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
- export const SectionRestitution = ({ children, className, classModifier, }) => {
3
+ export const SectionRestitution = ({ children, className, }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-restitution__content",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return _jsx("section", { className: componentClassName, children: children });
@@ -2,7 +2,5 @@ import type { PropsWithChildren } from "react";
2
2
  export type SectionRestitutionColumnProps = {
3
3
  className?: string;
4
4
  title?: string;
5
- /** @deprecated Use `className` instead. */
6
- classModifier?: string;
7
5
  };
8
- export declare const SectionRestitutionColumn: ({ children, className, title, classModifier, }: PropsWithChildren<SectionRestitutionColumnProps>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const SectionRestitutionColumn: ({ children, className, title, }: PropsWithChildren<SectionRestitutionColumnProps>) => import("react/jsx-runtime").JSX.Element;
@@ -2,11 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import classNames from "classnames";
3
3
  import { getClassName } from "../utilities/helpers/getClassName";
4
4
  import { SectionRestitutionTitle } from "./SectionRestitutionTitle";
5
- export const SectionRestitutionColumn = ({ children, className, title, classModifier, }) => {
5
+ export const SectionRestitutionColumn = ({ children, className, title, }) => {
6
6
  const baseClassName = className
7
7
  ? getClassName({
8
8
  baseClassName: className,
9
- modifiers: classModifier?.split(" "),
10
9
  })
11
10
  : null;
12
11
  const componentClassName = classNames("col-sm-12 col-md-12 col-lg-6 col-xl-6", baseClassName);
@@ -3,7 +3,5 @@ export type SectionRestitutionRowProps = {
3
3
  title?: React.ReactNode;
4
4
  classNameContainer?: string;
5
5
  className?: string;
6
- /** @deprecated Use `className` instead. */
7
- classModifier?: string;
8
6
  };
9
- export declare const SectionRestitutionRow: ({ title, className, classNameContainer, children, classModifier, }: PropsWithChildren<SectionRestitutionRowProps>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const SectionRestitutionRow: ({ title, className, classNameContainer, children, }: PropsWithChildren<SectionRestitutionRowProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import classNames from "classnames";
3
2
  import { getClassName } from "../utilities/helpers/getClassName";
4
3
  import { SectionRestitutionTitle } from "./SectionRestitutionTitle";
5
4
  const DEFAULT_CLASSNAME = "af-restitution__content-row";
6
- export const SectionRestitutionRow = ({ title, className, classNameContainer = "row af-restitution__content-left", children, classModifier, }) => {
7
- const baseClassName = className
8
- ? getClassName({
9
- baseClassName: className,
10
- modifiers: classModifier?.split(" "),
11
- })
12
- : null;
13
- const componentClassName = classNames(DEFAULT_CLASSNAME, baseClassName);
5
+ export const SectionRestitutionRow = ({ title, className, classNameContainer = "row af-restitution__content-left", children, }) => {
6
+ const componentClassName = getClassName({
7
+ baseClassName: DEFAULT_CLASSNAME,
8
+ className,
9
+ });
14
10
  return (_jsxs("div", { className: componentClassName, children: [title ? _jsx(SectionRestitutionTitle, { title: title }) : null, _jsx("div", { className: classNameContainer, children: children })] }));
15
11
  };
@@ -1,7 +1,5 @@
1
1
  export type SectionRestitutionTitleProps = {
2
2
  title: React.ReactNode;
3
3
  className?: string;
4
- /** @deprecated Use `className` instead. */
5
- classModifier?: string;
6
4
  };
7
- export declare const SectionRestitutionTitle: ({ title, className, classModifier, }: SectionRestitutionTitleProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const SectionRestitutionTitle: ({ title, className, }: SectionRestitutionTitleProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
- export const SectionRestitutionTitle = ({ title, className, classModifier, }) => {
3
+ export const SectionRestitutionTitle = ({ title, className, }) => {
4
4
  const componentClassName = getClassName({
5
5
  baseClassName: "af-restitution__content-title",
6
- modifiers: classModifier?.split(" "),
7
6
  className,
8
7
  });
9
8
  return _jsx("h4", { className: componentClassName, children: title });
@@ -4,5 +4,5 @@ type Props = Omit<StepLinkProps, "href"> & {
4
4
  href?: string;
5
5
  mode?: StepMode;
6
6
  };
7
- declare const Step: ({ number, id, title, classModifier, href, onClick, mode, className, stateLabel, }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const Step: ({ number, id, title, href, onClick, mode, className, stateLabel, }: Props) => import("react/jsx-runtime").JSX.Element;
8
8
  export { Step };
@@ -2,14 +2,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { StepCurrent } from "./StepCurrent";
3
3
  import { StepDisabled } from "./StepDisabled";
4
4
  import { StepLink } from "./StepLink";
5
- const Step = ({ number, id, title, classModifier, href, onClick, mode = "link", className, stateLabel, }) => {
5
+ const Step = ({ number, id, title, href, onClick, mode = "link", className, stateLabel, }) => {
6
6
  switch (mode) {
7
7
  case "link":
8
- return (_jsx(StepLink, { id: id, href: href ?? "#", number: number, classModifier: classModifier, className: className, title: title, onClick: onClick, stateLabel: stateLabel || "complété" }));
8
+ return (_jsx(StepLink, { id: id, href: href ?? "#", number: number, className: className, title: title, onClick: onClick, stateLabel: stateLabel || "complété" }));
9
9
  case "active":
10
- return (_jsx(StepCurrent, { id: id, title: title, classModifier: classModifier, className: className, number: number, stateLabel: stateLabel || "en cours" }));
10
+ return (_jsx(StepCurrent, { id: id, title: title, className: className, number: number, stateLabel: stateLabel || "en cours" }));
11
11
  default:
12
- return (_jsx(StepDisabled, { id: id, title: title, classModifier: classModifier, className: className, number: number, stateLabel: stateLabel || "à venir" }));
12
+ return (_jsx(StepDisabled, { id: id, title: title, className: className, number: number, stateLabel: stateLabel || "à venir" }));
13
13
  }
14
14
  };
15
15
  export { Step };
@@ -4,8 +4,6 @@ export type StepBaseProps = {
4
4
  title: string;
5
5
  children?: ReactNode;
6
6
  className?: string;
7
- /** @deprecated Use `className` instead. */
8
- classModifier?: string;
9
7
  /**
10
8
  * Label to add to the title as state indication (e.g. "in progress", "to come"...)
11
9
  * Will be wrapped in parentheses, next to the `title` in the `title` attribute of the <li> element.
@@ -16,5 +14,5 @@ export type StepBaseProps = {
16
14
  */
17
15
  stateLabel?: string;
18
16
  };
19
- declare const StepBase: ({ children, id, title, className, classModifier, stateLabel, }: StepBaseProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const StepBase: ({ children, id, title, className, stateLabel, }: StepBaseProps) => import("react/jsx-runtime").JSX.Element;
20
18
  export { StepBase };
@@ -3,10 +3,9 @@ import checkSvg from "@material-symbols/svg-400/outlined/check.svg";
3
3
  import chevronSvg from "@material-symbols/svg-400/outlined/chevron_right.svg";
4
4
  import { Svg } from "../../distributeur";
5
5
  import { getClassName } from "../utilities/helpers/getClassName";
6
- const StepBase = ({ children, id, title, className, classModifier, stateLabel, }) => {
6
+ const StepBase = ({ children, id, title, className, stateLabel, }) => {
7
7
  const componentClassName = getClassName({
8
8
  baseClassName: "af-steps-list-step",
9
- modifiers: classModifier?.split(" "),
10
9
  className,
11
10
  });
12
11
  const outputTitle = stateLabel ? `${title} (${stateLabel})` : title;
@@ -2,8 +2,6 @@ import type { ReactNode } from "react";
2
2
  type Props = {
3
3
  children: ReactNode;
4
4
  className?: string;
5
- /** @deprecated Use `className` instead. */
6
- classModifier?: string;
7
5
  };
8
- declare const Steps: ({ children, className, classModifier }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Steps: ({ children, className }: Props) => import("react/jsx-runtime").JSX.Element;
9
7
  export { Steps };
@@ -1,10 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { getClassName } from "../utilities/helpers/getClassName";
3
3
  const defaultClassName = "af-steps-new";
4
- const Steps = ({ children, className, classModifier }) => {
4
+ const Steps = ({ children, className }) => {
5
5
  const componentClassName = getClassName({
6
6
  baseClassName: defaultClassName,
7
- modifiers: classModifier?.split(" "),
8
7
  className,
9
8
  });
10
9
  return (_jsx("div", { className: componentClassName, children: _jsx("ol", { className: "af-steps-list", children: children }) }));
@@ -5,5 +5,5 @@ type SummaryProps = Omit<MessageProps, "title"> & {
5
5
  messages?: ReactNode[];
6
6
  isVisible?: boolean;
7
7
  };
8
- export declare const Summary: ({ messages, isVisible, title, classModifier, ...args }: SummaryProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const Summary: ({ messages, isVisible, title, variant, ...args }: SummaryProps) => import("react/jsx-runtime").JSX.Element | null;
9
9
  export {};
@@ -1,11 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Message } from "../Messages/Message";
3
3
  import { generateId } from "../utilities/helpers/generateId";
4
- export const Summary = ({ messages = [], isVisible = true, title = "Invalid form", classModifier = "error", ...args }) => {
4
+ export const Summary = ({ messages = [], isVisible = true, title = "Invalid form", variant = "error", ...args }) => {
5
5
  const messagesNotBlank = messages.filter((message) => Boolean(message));
6
6
  if (!messages || !isVisible || messagesNotBlank.length === 0) {
7
7
  return null;
8
8
  }
9
- const variant = classModifier === "danger" ? "warning" : classModifier;
10
9
  return (_jsx(Message, { title: title, variant: variant, ...args, children: _jsx("ul", { className: "af-summary__message-list", children: messages.map((message) => (_jsx("li", { className: "af-summary__message-item", children: message }, `message_${generateId({ message })}`))) }) }));
11
10
  };
@@ -1,7 +1,6 @@
1
1
  export type Props = {
2
2
  id?: string;
3
3
  className?: string;
4
- classModifier?: string;
5
4
  /**
6
5
  * Text displayed before the per-page select
7
6
  */
@@ -26,5 +25,5 @@ export type Props = {
26
25
  value: number;
27
26
  }) => void;
28
27
  };
29
- declare const Items: ({ className, classModifier, onChange, displayLabel, elementsLabel, selectAriaLabel, id, items, numberItems, }: Props) => import("react/jsx-runtime").JSX.Element;
28
+ declare const Items: ({ className, onChange, displayLabel, elementsLabel, selectAriaLabel, id, items, numberItems, }: Props) => import("react/jsx-runtime").JSX.Element;
30
29
  export { Items };
@@ -1,17 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
3
  import { Select } from "../../Form/Select";
4
- import { getComponentClassName } from "../../utilities";
5
- const Items = ({ className, classModifier, onChange, displayLabel = "Afficher", elementsLabel = "éléments", selectAriaLabel = "Modifier le nombre d'éléments à afficher dans le tableau", id, items = [5, 10, 25, 50, 100], numberItems = 10, }) => {
4
+ import { getClassName } from "../../utilities";
5
+ const Items = ({ className, onChange, displayLabel = "Afficher", elementsLabel = "éléments", selectAriaLabel = "Modifier le nombre d'éléments à afficher dans le tableau", id, items = [5, 10, 25, 50, 100], numberItems = 10, }) => {
6
6
  const defaultIdName = useId();
7
7
  const newId = id ?? defaultIdName;
8
- const componentClassName = getComponentClassName(className, classModifier, "af-paging__form");
9
- return (_jsx("div", { className: "af-paging__limit", children: _jsx("form", { className: componentClassName, children: _jsxs("div", { className: "af-form__group", children: [_jsx("div", { className: "col col-sm-2 col-md-2 col-lg-2 col-xl-2", children: _jsx("label", { className: "af-form__group-label", htmlFor: newId, children: displayLabel }) }), _jsxs("div", { className: "col col-sm-10 col-md-10 col-lg-10 col-xl-10", children: [_jsx(Select, { id: newId, value: numberItems, mode: "base", options: items.map((item) => ({
10
- label: item.toString(),
11
- value: item.toString(),
12
- })), onChange: (e) => {
8
+ const componentClassName = getClassName({
9
+ baseClassName: "af-paging__form",
10
+ className,
11
+ });
12
+ return (_jsx("div", { className: "af-paging__limit", children: _jsx("form", { className: componentClassName, children: _jsxs("div", { className: "af-form__group", children: [_jsx("div", { className: "col col-sm-2 col-md-2 col-lg-2 col-xl-2", children: _jsx("label", { className: "af-form__group-label", htmlFor: newId, children: displayLabel }) }), _jsxs("div", { className: "col col-sm-10 col-md-10 col-lg-10 col-xl-10", children: [_jsx(Select, { id: newId, value: numberItems, mode: "base", onChange: (e) => {
13
13
  e.preventDefault();
14
14
  onChange({ value: Number(e.target.value) });
15
- }, "aria-label": selectAriaLabel }), _jsx("span", { className: "af-form__input-cmplt", children: elementsLabel })] })] }) }) }));
15
+ }, "aria-label": selectAriaLabel, children: items.map((item) => (_jsx("option", { value: item, children: item }, item))) }), _jsx("span", { className: "af-form__input-cmplt", children: elementsLabel })] })] }) }) }));
16
16
  };
17
17
  export { Items };
@@ -3,7 +3,6 @@ import type { ComponentPropsWithoutRef } from "react";
3
3
  import { PaginationButton } from "./PaginationButton";
4
4
  export type PagerComponentProps = Pick<ComponentPropsWithoutRef<typeof PaginationButton>, "onChange"> & {
5
5
  className?: string;
6
- classModifier?: string;
7
6
  /**
8
7
  * Total number of pages in the table
9
8
  */
@@ -37,5 +36,5 @@ export type PagerComponentProps = Pick<ComponentPropsWithoutRef<typeof Paginatio
37
36
  */
38
37
  ofLabel?: string;
39
38
  };
40
- declare const Pager: ({ className, classModifier, numberPages, currentPage, onChange, mode, previousLabel, nextLabel, elementsLabel, ofLabel, }: PagerComponentProps) => import("react/jsx-runtime").JSX.Element;
39
+ declare const Pager: ({ className, numberPages, currentPage, onChange, mode, previousLabel, nextLabel, elementsLabel, ofLabel, }: PagerComponentProps) => import("react/jsx-runtime").JSX.Element;
41
40
  export { Pager };
@@ -1,13 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/distributeur/Table/Pager.css";
3
- import { getComponentClassName } from "../../utilities";
3
+ import { getClassName } from "../../utilities";
4
4
  import { Li } from "./Li";
5
5
  import { LiPoint } from "./LiPoint";
6
6
  import { PaginationButton } from "./PaginationButton";
7
- const Pager = ({ className, classModifier, numberPages = 1, currentPage = 1, onChange, mode = "default", previousLabel = "« Précédent", nextLabel = "Suivant »", elementsLabel = "éléments", ofLabel = "sur", }) => {
7
+ const Pager = ({ className, numberPages = 1, currentPage = 1, onChange, mode = "default", previousLabel = "« Précédent", nextLabel = "Suivant »", elementsLabel = "éléments", ofLabel = "sur", }) => {
8
8
  const hasNext = currentPage < numberPages;
9
9
  const hasPrevious = currentPage > 1;
10
- const componentClassName = getComponentClassName(className, classModifier, "af-pager");
10
+ const componentClassName = getClassName({
11
+ baseClassName: "af-pager",
12
+ className,
13
+ });
11
14
  if (mode === "light") {
12
15
  return (_jsx("nav", { className: componentClassName, children: _jsxs("ul", { className: "af-pager__pagination", children: [_jsx(PaginationButton, { onChange: onChange, value: currentPage - 1, active: hasPrevious, isVisible: true, ariaLabel: `Page précédente des ${elementsLabel}`, children: _jsx("i", { className: "glyphicon glyphicon-chevron-left", "aria-hidden": "true" }) }), _jsxs(LiPoint, { isVisible: true, children: [currentPage, " ", ofLabel, " ", numberPages] }), _jsx(PaginationButton, { onChange: onChange, value: currentPage + 1, active: hasNext, isVisible: true, ariaLabel: `Page suivante des ${elementsLabel}`, children: _jsx("i", { className: "glyphicon glyphicon-chevron-right", "aria-hidden": "true" }) })] }) }));
13
16
  }