@axa-fr/canopee-react 2.0.0-alpha.9 → 2.0.0-alpha.91

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 (400) hide show
  1. package/dist/client.d.ts +18 -18
  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 +11 -24
  207. package/dist/distributeur.js +10 -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.d.ts +1 -2
  225. package/dist/prospect-client/Divider/DividerCommon.js +3 -3
  226. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +1 -0
  227. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxApollo.js +1 -1
  228. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +2 -18
  229. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +4 -4
  230. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +1 -0
  231. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF.js +1 -1
  232. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +2 -6
  233. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.js +6 -2
  234. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +1 -1
  235. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +2 -6
  236. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +3 -3
  237. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.js +1 -1
  238. package/dist/prospect-client/Form/Dropdown/DropdownApollo.js +1 -1
  239. package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +4 -13
  240. package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +4 -4
  241. package/dist/prospect-client/Form/Dropdown/DropdownLF.js +1 -1
  242. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.js +1 -1
  243. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +1 -1
  244. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +1 -1
  245. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.js +1 -1
  246. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileApollo.js +1 -1
  247. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +1 -1
  248. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileLF.js +1 -1
  249. package/dist/prospect-client/Form/InputDate/InputDateApollo.js +1 -1
  250. package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +4 -13
  251. package/dist/prospect-client/Form/InputDate/InputDateCommon.js +6 -7
  252. package/dist/prospect-client/Form/InputDate/InputDateLF.js +1 -1
  253. package/dist/prospect-client/Form/InputPhone/InputPhoneApollo.js +1 -1
  254. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +4 -13
  255. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +10 -6
  256. package/dist/prospect-client/Form/InputPhone/InputPhoneLF.js +1 -1
  257. package/dist/prospect-client/Form/InputText/InputTextApollo.js +1 -1
  258. package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +4 -13
  259. package/dist/prospect-client/Form/InputText/InputTextCommon.js +7 -6
  260. package/dist/prospect-client/Form/InputText/InputTextLF.js +1 -1
  261. package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.d.ts +1 -2
  262. package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.js +1 -2
  263. package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.d.ts +2 -22
  264. package/dist/prospect-client/Form/ItemLabel/ItemLabelCommon.js +4 -5
  265. package/dist/prospect-client/Form/ItemMessage/{ItemMessageCommon.d.ts → ItemMessage.d.ts} +1 -0
  266. package/dist/prospect-client/Form/ItemMessage/{ItemMessageCommon.js → ItemMessage.js} +10 -9
  267. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.d.ts +4 -0
  268. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.js +5 -0
  269. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.d.ts +11 -0
  270. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.js +2 -0
  271. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.d.ts +4 -0
  272. package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.js +5 -0
  273. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.d.ts +1 -5
  274. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +4 -4
  275. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +1 -1
  276. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +6 -30
  277. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +5 -7
  278. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +1 -1
  279. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +2 -5
  280. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.js +6 -4
  281. package/dist/prospect-client/Form/TextArea/TextAreaApollo.js +1 -1
  282. package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +4 -8
  283. package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +4 -4
  284. package/dist/prospect-client/Form/TextArea/TextAreaLF.js +1 -1
  285. package/dist/prospect-client/Header/HeaderApollo.d.ts +4 -0
  286. package/dist/prospect-client/Header/HeaderApollo.js +8 -0
  287. package/dist/prospect-client/Header/HeaderCommon.d.ts +22 -0
  288. package/dist/prospect-client/Header/HeaderCommon.js +37 -0
  289. package/dist/prospect-client/Header/HeaderLF.d.ts +4 -0
  290. package/dist/prospect-client/Header/HeaderLF.js +8 -0
  291. package/dist/prospect-client/Icon/IconApollo.d.ts +1 -1
  292. package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
  293. package/dist/prospect-client/Icon/IconCommon.js +8 -9
  294. package/dist/prospect-client/Icon/IconLF.d.ts +1 -1
  295. package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.js +5 -2
  296. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +12 -0
  297. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.js +12 -0
  298. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +12 -0
  299. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.js +12 -0
  300. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.d.ts +23 -0
  301. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutSkeleton.js +17 -0
  302. package/dist/prospect-client/Link/LinkCommon.d.ts +6 -8
  303. package/dist/prospect-client/Link/LinkCommon.js +5 -4
  304. package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +1 -0
  305. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoApollo.js +1 -1
  306. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.d.ts +3 -7
  307. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.js +3 -7
  308. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoLF.js +1 -1
  309. package/dist/prospect-client/List/List/ListCommon.d.ts +27 -2
  310. package/dist/prospect-client/List/List/ListCommon.js +12 -0
  311. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.d.ts +4 -0
  312. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.js +8 -0
  313. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.d.ts +60 -0
  314. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.js +34 -0
  315. package/dist/prospect-client/MenuBurger/MenuBurgerLF.d.ts +4 -0
  316. package/dist/prospect-client/MenuBurger/MenuBurgerLF.js +8 -0
  317. package/dist/prospect-client/MessageBar/MessageBarAction.d.ts +8 -0
  318. package/dist/prospect-client/MessageBar/MessageBarAction.js +11 -0
  319. package/dist/prospect-client/MessageBar/MessageBarApollo.d.ts +5 -0
  320. package/dist/prospect-client/MessageBar/MessageBarApollo.js +7 -0
  321. package/dist/prospect-client/MessageBar/MessageBarCommon.d.ts +26 -0
  322. package/dist/prospect-client/MessageBar/MessageBarCommon.js +33 -0
  323. package/dist/prospect-client/MessageBar/MessageBarDescription.d.ts +6 -0
  324. package/dist/prospect-client/MessageBar/MessageBarDescription.js +8 -0
  325. package/dist/prospect-client/MessageBar/MessageBarLF.d.ts +5 -0
  326. package/dist/prospect-client/MessageBar/MessageBarLF.js +7 -0
  327. package/dist/prospect-client/MessageBar/MessageBarSummary.d.ts +11 -0
  328. package/dist/prospect-client/MessageBar/MessageBarSummary.js +2 -0
  329. package/dist/prospect-client/MessageBar/types.d.ts +1 -0
  330. package/dist/prospect-client/MessageBar/types.js +1 -0
  331. package/dist/prospect-client/Modal/ModalApollo.d.ts +1 -1
  332. package/dist/prospect-client/Modal/ModalApollo.js +1 -3
  333. package/dist/prospect-client/Modal/ModalCommon.d.ts +1 -1
  334. package/dist/prospect-client/Modal/ModalCommon.js +1 -1
  335. package/dist/prospect-client/Modal/ModalLF.d.ts +1 -1
  336. package/dist/prospect-client/Modal/ModalLF.js +1 -3
  337. package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.d.ts +0 -7
  338. package/dist/prospect-client/Modal/components/ModalCoreHeaderCommon.js +2 -12
  339. package/dist/prospect-client/Modal/types.d.ts +0 -15
  340. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.d.ts +1 -5
  341. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.js +1 -1
  342. package/dist/prospect-client/Skeleton/Skeleton.d.ts +61 -0
  343. package/dist/prospect-client/Skeleton/Skeleton.js +41 -0
  344. package/dist/prospect-client/SkeletonGrid/SkeletonGrid.d.ts +51 -0
  345. package/dist/prospect-client/SkeletonGrid/SkeletonGrid.js +37 -0
  346. package/dist/prospect-client/SkeletonList/SkeletonListApollo.d.ts +7 -0
  347. package/dist/prospect-client/SkeletonList/SkeletonListApollo.js +8 -2
  348. package/dist/prospect-client/SkeletonList/SkeletonListCommon.d.ts +21 -4
  349. package/dist/prospect-client/SkeletonList/SkeletonListCommon.js +18 -2
  350. package/dist/prospect-client/SkeletonList/SkeletonListLF.d.ts +7 -0
  351. package/dist/prospect-client/SkeletonList/SkeletonListLF.js +8 -2
  352. package/dist/prospect-client/Stepper/StepperApollo.js +3 -1
  353. package/dist/prospect-client/Stepper/StepperCommon.d.ts +13 -7
  354. package/dist/prospect-client/Stepper/StepperCommon.js +3 -4
  355. package/dist/prospect-client/Stepper/StepperLF.js +3 -1
  356. package/dist/prospect-client/TabBar/TabBarCommon.js +6 -3
  357. package/dist/prospect-client/TabMenu/TabMenu.js +1 -1
  358. package/dist/prospect-client/Tag/TagCommon.js +6 -2
  359. package/dist/prospect-client/Toggle/ToggleCommon.js +2 -2
  360. package/dist/prospect.d.ts +12 -8
  361. package/dist/prospect.js +11 -7
  362. package/package.json +2 -2
  363. package/dist/distributeur/Form/Pass/Pass.d.ts +0 -15
  364. package/dist/distributeur/Form/Pass/Pass.js +0 -13
  365. package/dist/distributeur/Form/Pass/PassInput.d.ts +0 -13
  366. package/dist/distributeur/Form/Pass/PassInput.js +0 -34
  367. package/dist/distributeur/Form/Pass/index.d.ts +0 -2
  368. package/dist/distributeur/Form/Pass/index.js +0 -2
  369. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +0 -26
  370. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.js +0 -32
  371. package/dist/distributeur/Form/Slider/Slider.d.ts +0 -28
  372. package/dist/distributeur/Form/Slider/Slider.js +0 -40
  373. package/dist/distributeur/Form/Slider/SliderInput.d.ts +0 -9
  374. package/dist/distributeur/Form/Slider/SliderInput.js +0 -11
  375. package/dist/distributeur/Form/Slider/index.d.ts +0 -3
  376. package/dist/distributeur/Form/Slider/index.js +0 -3
  377. package/dist/distributeur/Form/core/Deprecated/Field.d.ts +0 -21
  378. package/dist/distributeur/Form/core/Deprecated/Field.js +0 -20
  379. package/dist/distributeur/Form/core/Deprecated/FieldForm.d.ts +0 -103
  380. package/dist/distributeur/Form/core/Deprecated/FieldForm.js +0 -162
  381. package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +0 -16
  382. package/dist/distributeur/Form/core/Deprecated/FieldInput.js +0 -14
  383. package/dist/distributeur/Form/core/useInputClassModifier.d.ts +0 -4
  384. package/dist/distributeur/Form/core/useInputClassModifier.js +0 -13
  385. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.d.ts +0 -1
  386. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.helpers.js +0 -6
  387. package/dist/distributeur/utilities/helpers/getComponentClassName.d.ts +0 -20
  388. package/dist/distributeur/utilities/helpers/getComponentClassName.js +0 -54
  389. package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.d.ts +0 -2
  390. package/dist/prospect-client/Form/ItemMessage/ItemMessageApollo.js +0 -2
  391. package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.d.ts +0 -2
  392. package/dist/prospect-client/Form/ItemMessage/ItemMessageLF.js +0 -2
  393. package/dist/prospect-client/Skeleton/SkeletonApollo.d.ts +0 -2
  394. package/dist/prospect-client/Skeleton/SkeletonApollo.js +0 -2
  395. package/dist/prospect-client/Skeleton/SkeletonCommon.d.ts +0 -19
  396. package/dist/prospect-client/Skeleton/SkeletonCommon.js +0 -11
  397. package/dist/prospect-client/Skeleton/SkeletonLF.d.ts +0 -2
  398. package/dist/prospect-client/Skeleton/SkeletonLF.js +0 -2
  399. package/dist/prospect-client/utilities/getComponentClassName.d.ts +0 -4
  400. package/dist/prospect-client/utilities/getComponentClassName.js +0 -30
@@ -1,46 +1,22 @@
1
- import { type ComponentProps, type ComponentType, type PropsWithChildren, type ReactNode } from "react";
1
+ import { type ComponentType, type PropsWithChildren, type ReactNode } from "react";
2
2
  import type { GridContainerProps } from "../../../utilities/types/GridContainerProps";
3
- import { ItemMessage, type ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
3
+ import { type ItemMessageProps } from "../../ItemMessage/ItemMessage";
4
4
  import { type CardRadioProps } from "../CardRadio/CardRadioCommon";
5
- type RadioOption = Omit<CardRadioProps, "name" | "type" | "isInvalid">;
6
- export type CardRadioGroupProps = Omit<CardRadioProps, "value" | "label" | "type" | "isInvalid" | "icon" | "src" | "basePictureProps" | "description" | "subtitle" | "children" | "position"> & {
7
- /**
8
- * @deprecated Use `position` and `cardStyle` instead.
9
- */
10
- type?: "vertical" | "horizontal";
5
+ type RadioOption = Omit<CardRadioProps, "name" | "type" | "variant">;
6
+ export type CardRadioGroupProps = Omit<CardRadioProps, "value" | "label" | "type" | "variant" | "icon" | "src" | "basePictureProps" | "description" | "subtitle" | "children" | "position"> & {
11
7
  cardStyle?: CardRadioProps["position"];
12
8
  position?: "line" | "column";
13
- /**
14
- * @deprecated Use `label` instead.
15
- */
16
- labelGroup?: string;
17
- /**
18
- * @deprecated Use `description` instead.
19
- */
20
- descriptionGroup?: string;
21
9
  label: ReactNode;
22
10
  description?: ReactNode;
23
- /**
24
- * @deprecated Use `required` instead.
25
- */
26
- isRequired?: boolean;
27
- /**
28
- * @deprecated This prop is deprecated. To check an option, use the `checked` property in each item of the `options` array.
29
- */
30
- value?: number | string;
31
11
  options: RadioOption[];
32
- /**
33
- * @deprecated Use `message` and messageType instead.
34
- */
35
- error?: ReactNode;
36
12
  containerProps?: GridContainerProps<"fieldset">;
37
13
  } & PropsWithChildren & Partial<ItemMessageProps>;
38
14
  export type CardRadioCommonProps = CardRadioGroupProps & {
39
15
  CardRadioComponent: ComponentType<CardRadioProps>;
40
- ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
16
+ ItemMessageComponent: ComponentType<ItemMessageProps>;
41
17
  };
42
18
  declare const CardRadioGroupCommon: {
43
- ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, cardStyle, type, position, error, message, messageType, name, value, id, CardRadioComponent, ItemMessageComponent, containerProps, ...inputProps }: CardRadioCommonProps): import("react/jsx-runtime").JSX.Element;
19
+ ({ className, label, description, required, options, cardStyle, position, message, messageType, name, id, CardRadioComponent, ItemMessageComponent, containerProps, ...inputProps }: CardRadioCommonProps): import("react/jsx-runtime").JSX.Element;
44
20
  displayName: string;
45
21
  };
46
22
  export { CardRadioGroupCommon };
@@ -1,18 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId, } from "react";
3
- import { ItemMessage, } from "../../ItemMessage/ItemMessageCommon";
3
+ import {} from "../../ItemMessage/ItemMessage";
4
4
  import {} from "../CardRadio/CardRadioCommon";
5
- const CardRadioGroupCommon = ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, cardStyle, type = "vertical", position = (cardStyle ?? type) === "vertical" ? "column" : "line", error, message, messageType = "error", name, value, id, CardRadioComponent, ItemMessageComponent, containerProps, ...inputProps }) => {
5
+ const CardRadioGroupCommon = ({ className, label, description, required, options, cardStyle, position = cardStyle === "vertical" ? "column" : "line", message, messageType = "error", name, id, CardRadioComponent, ItemMessageComponent, containerProps, ...inputProps }) => {
6
6
  const generatedId = useId();
7
7
  const cardRadioGroupId = id ?? generatedId;
8
8
  const messageId = `${cardRadioGroupId}-error`;
9
- const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
10
- return (_jsxs("fieldset", { className: ["af-card-radio-group", className].filter(Boolean).join(" "), role: "radiogroup", "aria-required": Boolean(required) || undefined, "aria-invalid": hasError || undefined, "aria-errormessage": hasError ? messageId : undefined, id: cardRadioGroupId, ...containerProps, children: [_jsxs("legend", { className: "af-card-radio-group__legend", children: [_jsxs("p", { className: "af-card-radio-group__label", children: [label, labelGroup, required || isRequired ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), description || descriptionGroup ? (_jsxs("p", { className: "af-card-radio-group__description", children: [description, descriptionGroup] })) : null] }), _jsx("div", { className: [
9
+ const hasError = Boolean(message) && messageType === "error";
10
+ return (_jsxs("fieldset", { className: ["af-card-radio-group", className].filter(Boolean).join(" "), role: "radiogroup", "aria-required": Boolean(required) || undefined, "aria-invalid": hasError || undefined, "aria-errormessage": hasError ? messageId : undefined, id: cardRadioGroupId, ...containerProps, children: [_jsxs("legend", { className: "af-card-radio-group__legend", children: [_jsxs("p", { className: "af-card-radio-group__label", children: [label, required ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), description ? (_jsx("p", { className: "af-card-radio-group__description", children: description })) : null] }), _jsx("div", { className: [
11
11
  "af-card-radio-group__options",
12
12
  `af-card-radio-group__options--${position}`,
13
- ].join(" "), children: options.map((cardRadioItemProps) => (_jsx(CardRadioComponent, { id: `${cardRadioGroupId}-${cardRadioItemProps.value}`, checked: value !== undefined
14
- ? value === cardRadioItemProps.value
15
- : undefined, required: required, position: cardStyle ?? type, ...inputProps, ...cardRadioItemProps, isInvalid: hasError, name: name }, `${name ?? cardRadioGroupId}-${cardRadioItemProps.label}`))) }), _jsx(ItemMessageComponent, { id: messageId, message: message || error, messageType: messageType })] }));
13
+ ].join(" "), children: options.map((cardRadioItemProps) => (_jsx(CardRadioComponent, { id: `${cardRadioGroupId}-${cardRadioItemProps.value}`, required: required, position: cardStyle, ...inputProps, ...cardRadioItemProps, variant: hasError ? "error" : undefined, name: name }, `${name ?? cardRadioGroupId}-${cardRadioItemProps.label}`))) }), _jsx(ItemMessageComponent, { id: messageId, message: message, messageType: messageType })] }));
16
14
  };
17
15
  CardRadioGroupCommon.displayName = "CardRadioGroupCommon";
18
16
  export { CardRadioGroupCommon };
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ItemMessage } from "../../ItemMessage/ItemMessageLF";
2
+ import { ItemMessage } from "../../ItemMessage/ItemMessage";
3
3
  import { CardRadio } from "../CardRadio/CardRadioLF";
4
4
  import { CardRadioGroupCommon, } from "./CardRadioGroupCommon";
5
5
  import "@axa-fr/canopee-css/client/Form/Radio/CardRadioGroup/CardRadioGroupLF.css";
@@ -1,8 +1,5 @@
1
1
  import { type ComponentProps } from "react";
2
2
  export type RadioProps = Omit<ComponentProps<"input">, "disabled" | "type"> & {
3
- isInvalid?: boolean;
4
- };
5
- export declare const Radio: {
6
- ({ className, isInvalid, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
3
+ variant?: "error" | "warning";
8
4
  };
5
+ export declare const Radio: ({ variant, className, ref, ...inputProps }: RadioProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import {} from "react";
3
- export const Radio = ({ className, isInvalid, ...props }) => (_jsx("input", { ...props, className: ["af-radio", isInvalid && "af-radio--invalid", className]
4
- .filter(Boolean)
5
- .join(" "), type: "radio" }));
6
- Radio.displayName = "Radio";
3
+ import { getClassName } from "../../../utilities/getClassName";
4
+ export const Radio = ({ variant, className, ref, ...inputProps }) => (_jsx("input", { ...inputProps, className: getClassName({
5
+ baseClassName: "af-radio",
6
+ modifiers: [variant],
7
+ className,
8
+ }), ref: ref, type: "radio" }));
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/prospect/Form/TextArea/TextAreaApollo.css";
3
3
  import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
4
- import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
4
+ import { ItemMessage } from "../ItemMessage/ItemMessage";
5
5
  import { TextAreaCommon } from "./TextAreaCommon";
6
6
  export const TextArea = ({ ...props }) => (_jsx(TextAreaCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
7
7
  TextArea.displayName = "TextArea";
@@ -1,22 +1,18 @@
1
1
  import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
2
2
  import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
3
3
  import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
4
- import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
4
+ import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
5
5
  export type TextAreaProps = ComponentPropsWithRef<"textarea"> & {
6
6
  label?: ItemLabelProps["children"];
7
7
  helper?: string;
8
- /**
9
- * @deprecated Use `message` and messageType instead.
10
- */
11
- error?: string;
12
8
  containerProps?: GridContainerProps;
13
- } & Pick<ItemLabelProps, "description" | "moreButtonLabel" | "buttonLabel" | "onMoreButtonClick" | "onButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
9
+ } & Pick<ItemLabelProps, "description" | "moreButtonLabel" | "onMoreButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
14
10
  type TextAreaCommonProps = TextAreaProps & {
15
11
  ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
16
- ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
12
+ ItemMessageComponent: ComponentType<ItemMessageProps>;
17
13
  };
18
14
  declare const TextAreaCommon: {
19
- ({ id, className, label, description, helper, error, message, messageType, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, required, sideButtonLabel, ItemLabelComponent, ItemMessageComponent, onSideButtonClick, placeholder, containerProps, ...inputProps }: TextAreaCommonProps): import("react/jsx-runtime").JSX.Element;
15
+ ({ id, className, label, description, helper, message, messageType, moreButtonLabel, onMoreButtonClick, required, sideButtonLabel, ItemLabelComponent, ItemMessageComponent, onSideButtonClick, placeholder, containerProps, ...inputProps }: TextAreaCommonProps): import("react/jsx-runtime").JSX.Element;
20
16
  displayName: string;
21
17
  };
22
18
  export { TextAreaCommon };
@@ -2,13 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId, } from "react";
3
3
  import { getClassName } from "../../utilities/getClassName";
4
4
  import { ItemLabelCommon, } from "../ItemLabel/ItemLabelCommon";
5
- import { ItemMessage, } from "../ItemMessage/ItemMessageCommon";
6
- const TextAreaCommon = ({ id, className, label, description, helper, error, message, messageType, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, required, sideButtonLabel, ItemLabelComponent, ItemMessageComponent, onSideButtonClick, placeholder = " ", containerProps, ...inputProps }) => {
5
+ import {} from "../ItemMessage/ItemMessage";
6
+ const TextAreaCommon = ({ id, className, label, description, helper, message, messageType = "error", moreButtonLabel, onMoreButtonClick, required, sideButtonLabel, ItemLabelComponent, ItemMessageComponent, onSideButtonClick, placeholder = " ", containerProps, ...inputProps }) => {
7
7
  const generatedId = useId();
8
8
  const inputId = id ?? generatedId;
9
9
  const helperId = `${inputId}-helper`;
10
10
  const messageId = `${inputId}-error`;
11
- const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
11
+ const hasError = Boolean(message) && messageType === "error";
12
12
  const hasWarning = Boolean(message) && messageType === "warning" && !hasError;
13
13
  const textareaClassName = getClassName({
14
14
  baseClassName: "af-form__textarea",
@@ -16,7 +16,7 @@ const TextAreaCommon = ({ id, className, label, description, helper, error, mess
16
16
  });
17
17
  return (_jsxs("div", { className: ["af-form__input-container", className]
18
18
  .filter(Boolean)
19
- .join(" "), ...containerProps, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsx("textarea", { id: inputId, className: textareaClassName, "aria-errormessage": hasError ? messageId : undefined, "aria-describedby": helper ? helperId : undefined, required: required, "aria-invalid": hasError || undefined, placeholder: placeholder, ...inputProps }), helper ? (_jsx("span", { id: helperId, className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: messageId, message: message || error, messageType: messageType })] }));
19
+ .join(" "), ...containerProps, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel, onMoreButtonClick: onMoreButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsx("textarea", { id: inputId, className: textareaClassName, "aria-errormessage": hasError ? messageId : undefined, "aria-describedby": helper ? helperId : undefined, required: required, "aria-invalid": hasError || undefined, placeholder: placeholder, ...inputProps }), helper ? (_jsx("span", { id: helperId, className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: messageId, message: message, messageType: messageType })] }));
20
20
  };
21
21
  TextAreaCommon.displayName = "TextArea";
22
22
  export { TextAreaCommon };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/client/Form/TextArea/TextAreaLF.css";
3
3
  import { ItemLabel } from "../ItemLabel/ItemLabelLF";
4
- import { ItemMessage } from "../ItemMessage/ItemMessageLF";
4
+ import { ItemMessage } from "../ItemMessage/ItemMessage";
5
5
  import { TextAreaCommon } from "./TextAreaCommon";
6
6
  export const TextArea = ({ ...props }) => (_jsx(TextAreaCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
7
7
  TextArea.displayName = "TextArea";
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/canopee-css/prospect/Header/HeaderApollo.css";
2
+ import { type HeaderProps } from "./HeaderCommon";
3
+ export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
4
+ export type { HeaderProps };
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/prospect/Header/HeaderApollo.css";
3
+ import { AppName } from "../AppName/AppName";
4
+ import { Heading } from "../Heading/HeadingApollo";
5
+ import { MenuBurger } from "../MenuBurger/MenuBurgerApollo";
6
+ import { ClickIcon } from "../ClickIcon/ClickIconApollo";
7
+ import { HeaderCommon } from "./HeaderCommon";
8
+ export const Header = (props) => (_jsx(HeaderCommon, { AppNameComponent: AppName, HeadingComponent: Heading, MenuBurgerComponent: MenuBurger, ClickIconComponent: ClickIcon, ...props }));
@@ -0,0 +1,22 @@
1
+ import { type ComponentPropsWithoutRef, type ComponentType, type ReactNode } from "react";
2
+ import { type ClickIconProps } from "../ClickIcon/ClickIconCommon";
3
+ import { type AppNameProps } from "../AppName/AppName";
4
+ import { type HeadingProps } from "../Heading/types";
5
+ import { type MenuBurgerProps } from "../MenuBurger/MenuBurgerCommon";
6
+ import { type TabMenuProps } from "../TabMenu/TabMenu";
7
+ export type HeaderProps = Omit<ComponentPropsWithoutRef<"header">, "title"> & {
8
+ appNameProps: AppNameProps;
9
+ menuBurgerProps?: MenuBurgerProps;
10
+ tabMenuProps?: TabMenuProps;
11
+ clickIconProps?: ClickIconProps;
12
+ title?: string;
13
+ actionChildren?: ReactNode;
14
+ };
15
+ type HeaderCommonProps = HeaderProps & {
16
+ AppNameComponent: ComponentType<AppNameProps>;
17
+ HeadingComponent: ComponentType<HeadingProps>;
18
+ MenuBurgerComponent: ComponentType<MenuBurgerProps>;
19
+ ClickIconComponent: ComponentType<ClickIconProps>;
20
+ };
21
+ export declare const HeaderCommon: ({ appNameProps, menuBurgerProps, tabMenuProps, clickIconProps, title, className, AppNameComponent, HeadingComponent, MenuBurgerComponent, ClickIconComponent, actionChildren, ...props }: HeaderCommonProps) => import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import {} from "react";
3
+ import menu from "@material-symbols/svg-400/outlined/menu.svg";
4
+ import { BREAKPOINT } from "../utilities/constants";
5
+ import {} from "../ClickIcon/ClickIconCommon";
6
+ import { TabMenu } from "../TabMenu/TabMenu";
7
+ import {} from "../AppName/AppName";
8
+ import {} from "../Heading/types";
9
+ import {} from "../MenuBurger/MenuBurgerCommon";
10
+ import {} from "../TabMenu/TabMenu";
11
+ import { getClassName } from "../utilities/getClassName";
12
+ import { useIsSmallScreen } from "../utilities/hook/useIsSmallScreen";
13
+ const withElementClass = (props, baseClassName) => ({
14
+ ...props,
15
+ className: getClassName({
16
+ baseClassName,
17
+ className: props.className,
18
+ }),
19
+ });
20
+ export const HeaderCommon = ({ appNameProps, menuBurgerProps, tabMenuProps, clickIconProps, title, className, AppNameComponent, HeadingComponent, MenuBurgerComponent, ClickIconComponent, actionChildren, ...props }) => {
21
+ const isSmallScreen = useIsSmallScreen(BREAKPOINT.MD);
22
+ const parsedAppNameProps = withElementClass(appNameProps, "af-header__app-name");
23
+ const parsedMenuBurgerProps = menuBurgerProps
24
+ ? withElementClass(menuBurgerProps, "af-header__menu-burger")
25
+ : undefined;
26
+ const parsedTabMenuProps = tabMenuProps
27
+ ? withElementClass(tabMenuProps, "af-header__tab-menu")
28
+ : undefined;
29
+ return (_jsxs("header", { className: getClassName({
30
+ baseClassName: "af-header",
31
+ className,
32
+ }), ...props, children: [_jsx(AppNameComponent, { ...parsedAppNameProps }), Boolean(parsedMenuBurgerProps) ||
33
+ Boolean(parsedTabMenuProps) ||
34
+ Boolean(actionChildren) ? (_jsx(ClickIconComponent, { ...clickIconProps, src: menu, size: "S", variant: "ghost", className: "af-header__menu-icon", "aria-haspopup": isSmallScreen ? "menu" : undefined, "aria-label": clickIconProps?.["aria-label"] ?? "Ouvrir le menu", popoverTarget: isSmallScreen ? "af-header-menu" : undefined, popoverTargetAction: isSmallScreen ? "toggle" : undefined })) : null, _jsxs("div", { id: "af-header-menu", popover: isSmallScreen ? "auto" : undefined, className: "af-header__menu", children: [parsedTabMenuProps ? _jsx(TabMenu, { ...parsedTabMenuProps }) : null, (title && !isSmallScreen) ||
35
+ actionChildren ||
36
+ parsedMenuBurgerProps ? (_jsxs("div", { className: "af-header__actions", children: [title ? (_jsx(HeadingComponent, { level: 1, className: "af-header__title", children: title })) : null, actionChildren ? (_jsx("div", { className: "af-header__actions-children", children: actionChildren })) : null, parsedMenuBurgerProps ? (_jsx(MenuBurgerComponent, { ...parsedMenuBurgerProps })) : null] })) : null] })] }));
37
+ };
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/canopee-css/client/Header/HeaderLF.css";
2
+ import { type HeaderProps } from "./HeaderCommon";
3
+ export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
4
+ export type { HeaderProps };
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/client/Header/HeaderLF.css";
3
+ import { AppName } from "../AppName/AppName";
4
+ import { Heading } from "../Heading/HeadingLF";
5
+ import { MenuBurger } from "../MenuBurger/MenuBurgerLF";
6
+ import { ClickIcon } from "../ClickIcon/ClickIconLF";
7
+ import { HeaderCommon } from "./HeaderCommon";
8
+ export const Header = (props) => (_jsx(HeaderCommon, { AppNameComponent: AppName, HeadingComponent: Heading, MenuBurgerComponent: MenuBurger, ClickIconComponent: ClickIcon, ...props }));
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/prospect/Icon/IconApollo.css";
2
- export { Icon, iconVariants, type IconVariants, iconSizeVariants, type IconSizeVariants, } from "./IconCommon";
2
+ export { Icon, iconVariants, type IconVariants, iconSizeVariants, type IconProps, type IconSizeVariants, } from "./IconCommon";
@@ -21,4 +21,4 @@ export type IconProps = ComponentProps<typeof Svg> & {
21
21
  size?: IconSizeVariants;
22
22
  hasBackground?: boolean;
23
23
  };
24
- export declare const Icon: ({ variant, size, hasBackground, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const Icon: ({ variant, size, hasBackground, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { Svg } from "../Svg/Svg";
4
- import { getComponentClassName } from "../utilities/getComponentClassName";
4
+ import { getClassName } from "../utilities/getClassName";
5
5
  export const iconVariants = {
6
6
  primary: "primary",
7
7
  secondary: "secondary",
@@ -16,16 +16,15 @@ export const iconSizeVariants = {
16
16
  S: "small",
17
17
  XS: "extra-small",
18
18
  };
19
- export const Icon = ({ variant = "primary", size = "S", hasBackground = false, ...props }) => {
20
- const componentClassName = useMemo(() => {
21
- const newClassModifier = [
19
+ export const Icon = ({ variant = "primary", size = "S", hasBackground = false, className, ...props }) => {
20
+ const componentClassName = useMemo(() => getClassName({
21
+ baseClassName: "af-icon",
22
+ className,
23
+ modifiers: [
22
24
  variant,
23
25
  iconSizeVariants[size],
24
26
  hasBackground && "has-background",
25
- ]
26
- .filter(Boolean)
27
- .join(" ");
28
- return getComponentClassName("af-icon", "", newClassModifier);
29
- }, [variant, hasBackground, size]);
27
+ ].filter(Boolean),
28
+ }), [className, variant, size, hasBackground]);
30
29
  return (_jsx("div", { className: componentClassName, children: _jsx(Svg, { ...props }) }));
31
30
  };
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/client/Icon/IconLF.css";
2
- export { Icon, iconVariants, type IconVariants, iconSizeVariants, type IconSizeVariants, } from "./IconCommon";
2
+ export { Icon, iconVariants, type IconVariants, iconSizeVariants, type IconProps, type IconSizeVariants, } from "./IconCommon";
@@ -1,8 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import {} from "react";
3
- import { getComponentClassName } from "../utilities/getComponentClassName";
3
+ import { getClassName } from "../utilities/getClassName";
4
4
  export const ItemTabBar = ({ isActive = false, title, className, ...props }) => {
5
- const classNames = getComponentClassName("af-item-tab-bar", className);
5
+ const classNames = getClassName({
6
+ baseClassName: "af-item-tab-bar",
7
+ className,
8
+ });
6
9
  return (_jsx("button", { type: "button", role: "tab", "aria-selected": isActive, className: classNames, ...props, children: title }));
7
10
  };
8
11
  ItemTabBar.displayName = "ItemTabBar";
@@ -1,5 +1,17 @@
1
1
  import { type ExitLayoutProps } from "./ExitLayoutCommon";
2
2
  export { type ExitLayoutWithSubComponents, type ExitLayoutProps, } from "./ExitLayoutCommon";
3
+ export { ExitLayoutSkeleton, type ExitLayoutSkeletonProps, } from "./ExitLayoutSkeleton";
4
+ /**
5
+ * Apollo-themed `ExitLayout` component with `Agent`, `Action`, and `Content`
6
+ * static slots.
7
+ *
8
+ * @component
9
+ * @param {ExitLayoutProps} props - ExitLayout props.
10
+ * @param {HeadingProps} [props.headingProps] - Props forwarded to the heading displayed in the content column.
11
+ * @param {Pick<IconProps, "variant" | "src" | "hasBackground">} [props.iconProps] - Props forwarded to the icon displayed in the content column.
12
+ * @param {React.ReactNode} [props.children] - Slots composed with `ExitLayout.Content`, `ExitLayout.Agent`, and `ExitLayout.Action`.
13
+ * @returns {JSX.Element} The rendered Apollo-themed ExitLayout.
14
+ */
3
15
  export declare const ExitLayout: {
4
16
  (props: ExitLayoutProps): import("react/jsx-runtime").JSX.Element;
5
17
  Agent: ({ children }: import("react").PropsWithChildren) => (string | number | bigint | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | {
@@ -3,6 +3,18 @@ import { Heading } from "../../Heading/HeadingApollo";
3
3
  import { Icon } from "../../Icon/IconApollo";
4
4
  import { Agent, Action, Content, ExitLayoutCommon, } from "./ExitLayoutCommon";
5
5
  export {} from "./ExitLayoutCommon";
6
+ export { ExitLayoutSkeleton, } from "./ExitLayoutSkeleton";
7
+ /**
8
+ * Apollo-themed `ExitLayout` component with `Agent`, `Action`, and `Content`
9
+ * static slots.
10
+ *
11
+ * @component
12
+ * @param {ExitLayoutProps} props - ExitLayout props.
13
+ * @param {HeadingProps} [props.headingProps] - Props forwarded to the heading displayed in the content column.
14
+ * @param {Pick<IconProps, "variant" | "src" | "hasBackground">} [props.iconProps] - Props forwarded to the icon displayed in the content column.
15
+ * @param {React.ReactNode} [props.children] - Slots composed with `ExitLayout.Content`, `ExitLayout.Agent`, and `ExitLayout.Action`.
16
+ * @returns {JSX.Element} The rendered Apollo-themed ExitLayout.
17
+ */
6
18
  export const ExitLayout = (props) => (_jsx(ExitLayoutCommon, { ...props, HeadingComponent: Heading, IconComponent: Icon }));
7
19
  ExitLayout.Agent = Agent;
8
20
  ExitLayout.Action = Action;
@@ -1,5 +1,17 @@
1
1
  import { type ExitLayoutProps } from "./ExitLayoutCommon";
2
2
  export { type ExitLayoutWithSubComponents, type ExitLayoutProps, } from "./ExitLayoutCommon";
3
+ export { ExitLayoutSkeleton, type ExitLayoutSkeletonProps, } from "./ExitLayoutSkeleton";
4
+ /**
5
+ * Look and Feel-themed `ExitLayout` component with `Agent`, `Action`, and
6
+ * `Content` static slots.
7
+ *
8
+ * @component
9
+ * @param {ExitLayoutProps} props - ExitLayout props.
10
+ * @param {HeadingProps} [props.headingProps] - Props forwarded to the heading displayed in the content column.
11
+ * @param {Pick<IconProps, "variant" | "src" | "hasBackground">} [props.iconProps] - Props forwarded to the icon displayed in the content column.
12
+ * @param {React.ReactNode} [props.children] - Slots composed with `ExitLayout.Content`, `ExitLayout.Agent`, and `ExitLayout.Action`.
13
+ * @returns {JSX.Element} The rendered Look and Feel ExitLayout.
14
+ */
3
15
  export declare const ExitLayout: {
4
16
  (props: ExitLayoutProps): import("react/jsx-runtime").JSX.Element;
5
17
  Agent: ({ children }: import("react").PropsWithChildren) => (string | number | bigint | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | {
@@ -3,6 +3,18 @@ import { Heading } from "../../Heading/HeadingLF";
3
3
  import { Icon } from "../../Icon/IconLF";
4
4
  import { Agent, Action, Content, ExitLayoutCommon, } from "./ExitLayoutCommon";
5
5
  export {} from "./ExitLayoutCommon";
6
+ export { ExitLayoutSkeleton, } from "./ExitLayoutSkeleton";
7
+ /**
8
+ * Look and Feel-themed `ExitLayout` component with `Agent`, `Action`, and
9
+ * `Content` static slots.
10
+ *
11
+ * @component
12
+ * @param {ExitLayoutProps} props - ExitLayout props.
13
+ * @param {HeadingProps} [props.headingProps] - Props forwarded to the heading displayed in the content column.
14
+ * @param {Pick<IconProps, "variant" | "src" | "hasBackground">} [props.iconProps] - Props forwarded to the icon displayed in the content column.
15
+ * @param {React.ReactNode} [props.children] - Slots composed with `ExitLayout.Content`, `ExitLayout.Agent`, and `ExitLayout.Action`.
16
+ * @returns {JSX.Element} The rendered Look and Feel ExitLayout.
17
+ */
6
18
  export const ExitLayout = (props) => (_jsx(ExitLayoutCommon, { ...props, HeadingComponent: Heading, IconComponent: Icon }));
7
19
  ExitLayout.Agent = Agent;
8
20
  ExitLayout.Action = Action;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Props controlling which placeholder areas are displayed in `ExitLayoutSkeleton`.
3
+ */
4
+ export type ExitLayoutSkeletonProps = {
5
+ hasAgent?: boolean;
6
+ hasIcon?: boolean;
7
+ hasAction?: boolean;
8
+ hasContent?: boolean;
9
+ hasHeading?: boolean;
10
+ };
11
+ /**
12
+ * Renders skeleton placeholders matching the visual structure of `ExitLayout`.
13
+ *
14
+ * @component
15
+ * @param {ExitLayoutSkeletonProps} props - ExitLayoutSkeleton props.
16
+ * @param {boolean} [props.hasAgent] - Displays the agent placeholder block.
17
+ * @param {boolean} [props.hasIcon] - Displays the icon placeholder.
18
+ * @param {boolean} [props.hasAction] - Displays the action area placeholder.
19
+ * @param {boolean} [props.hasContent] - Displays the main content placeholder.
20
+ * @param {boolean} [props.hasHeading] - Displays the heading placeholder.
21
+ * @returns {JSX.Element} The rendered ExitLayoutSkeleton component.
22
+ */
23
+ export declare const ExitLayoutSkeleton: ({ hasAgent, hasIcon, hasAction, hasContent, hasHeading, }: ExitLayoutSkeletonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Skeleton } from "../../Skeleton/Skeleton";
3
+ /**
4
+ * Renders skeleton placeholders matching the visual structure of `ExitLayout`.
5
+ *
6
+ * @component
7
+ * @param {ExitLayoutSkeletonProps} props - ExitLayoutSkeleton props.
8
+ * @param {boolean} [props.hasAgent] - Displays the agent placeholder block.
9
+ * @param {boolean} [props.hasIcon] - Displays the icon placeholder.
10
+ * @param {boolean} [props.hasAction] - Displays the action area placeholder.
11
+ * @param {boolean} [props.hasContent] - Displays the main content placeholder.
12
+ * @param {boolean} [props.hasHeading] - Displays the heading placeholder.
13
+ * @returns {JSX.Element} The rendered ExitLayoutSkeleton component.
14
+ */
15
+ export const ExitLayoutSkeleton = ({ hasAgent, hasIcon, hasAction, hasContent, hasHeading, }) => {
16
+ return (_jsxs("section", { className: "af-exit-page subgrid", children: [_jsxs("article", { className: "af-exit-page__content subgrid", children: [hasIcon ? _jsx(Skeleton, { variant: "circle", size: "L" }) : null, hasHeading ? _jsx(Skeleton, { colSize: 12 }) : null, hasContent ? _jsx(Skeleton, { size: "XL", colSize: 12 }) : null] }), hasAgent ? (_jsx(Skeleton, { className: "af-exit-page__agent", size: "XXL", colSize: 12 })) : null, hasAction ? (_jsx("div", { className: "af-exit-page__actions subgrid", children: _jsx(Skeleton, { variant: "action", colSize: 12 }) })) : null] }));
17
+ };
@@ -1,17 +1,15 @@
1
- import type { ComponentPropsWithoutRef, PropsWithChildren, ReactNode } from "react";
1
+ import type { ElementType, ReactNode } from "react";
2
+ import type { PolymorphicComponent } from "../utilities/types/PolymorphicComponent";
2
3
  export declare const linkVariants: {
3
4
  readonly inverse: "inverse";
4
5
  };
5
6
  export type LinkVariants = keyof typeof linkVariants;
6
- export type LinkProps = {
7
+ export type LinkProps<T extends ElementType = "a"> = PolymorphicComponent<T, {
7
8
  variant?: LinkVariants;
8
9
  openInNewTab?: boolean;
9
10
  leftIcon?: ReactNode;
10
11
  rightIcon?: ReactNode;
11
12
  className?: string;
12
- /**
13
- * @deprecated Use variant instead
14
- */
15
- classModifier?: string;
16
- } & ComponentPropsWithoutRef<"a">;
17
- export declare const Link: ({ href, variant, openInNewTab, leftIcon, rightIcon, children, className, classModifier, ...props }: PropsWithChildren<LinkProps>) => import("react/jsx-runtime").JSX.Element;
13
+ children?: ReactNode;
14
+ }>;
15
+ export declare const Link: <T extends ElementType = "a">({ as, variant, openInNewTab, leftIcon, rightIcon, children, className, ...props }: LinkProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -5,16 +5,17 @@ import { getClassName } from "../utilities/getClassName";
5
5
  export const linkVariants = {
6
6
  inverse: "inverse",
7
7
  };
8
- export const Link = ({ href, variant, openInNewTab = false, leftIcon, rightIcon, children, className, classModifier = "", ...props }) => {
8
+ export const Link = ({ as, variant, openInNewTab = false, leftIcon, rightIcon, children, className, ...props }) => {
9
+ const Component = as ?? "a";
9
10
  const newTabProps = openInNewTab && {
10
11
  target: "_blank",
11
12
  rel: "noopener noreferrer",
12
13
  };
13
- return (_jsxs("a", { className: getClassName({
14
+ return (_jsxs(Component, { className: getClassName({
14
15
  baseClassName: "af-link",
15
- modifiers: [classModifier, variant, openInNewTab && "openInNewTab"],
16
+ modifiers: [variant, openInNewTab && "openInNewTab"],
16
17
  className,
17
- }), href: href, ...newTabProps, ...props, children: [leftIcon, children, openInNewTab || Boolean(rightIcon)
18
+ }), ...newTabProps, ...props, children: [leftIcon, children, openInNewTab || Boolean(rightIcon)
18
19
  ? (rightIcon ?? _jsx(Svg, { src: openInNew }))
19
20
  : null] }));
20
21
  };
@@ -1,4 +1,5 @@
1
1
  import type { ClickItemPropsCommon } from "./types";
2
+ export type { ClickItemProps } from "./types";
2
3
  export declare const clickItemVariants: {
3
4
  readonly small: "small";
4
5
  readonly medium: "medium";
@@ -2,5 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/prospect/List/ContentItemDuo/ContentItemDuoApollo.css";
3
3
  import { Button } from "../../Button/ButtonApollo";
4
4
  import { ContentItemDuoCommon, } from "./ContentItemDuoCommon";
5
- import { ItemMessage } from "../../Form/ItemMessage/ItemMessageApollo";
5
+ import { ItemMessage } from "../../Form/ItemMessage/ItemMessage";
6
6
  export const ContentItemDuo = (props) => (_jsx(ContentItemDuoCommon, { ...props, ButtonComponent: Button, ItemMessageComponent: ItemMessage }));
@@ -1,6 +1,6 @@
1
1
  import { type ComponentProps, type ComponentType, type ReactNode } from "react";
2
2
  import type { ButtonProps } from "../../Button/ButtonCommon";
3
- import { ItemMessage, type ItemMessageProps } from "../../Form/ItemMessage/ItemMessageCommon";
3
+ import { type ItemMessageProps } from "../../Form/ItemMessage/ItemMessage";
4
4
  type ContentItemDuoPositions = {
5
5
  position?: "horizontal";
6
6
  size?: "small" | "large";
@@ -13,14 +13,10 @@ export type ContentItemDuoProps = {
13
13
  value: ReactNode;
14
14
  buttonText?: string;
15
15
  onButtonClick?: () => void;
16
- /** @deprecated Use `position` instead */
17
- isVertical?: boolean;
18
- /** @deprecated Use `size` or `className` instead */
19
- classModifier?: string;
20
16
  } & Pick<ItemMessageProps, "message" | "messageType"> & ContentItemDuoPositions & ComponentProps<"div">;
21
17
  type ContentItemDuoCommonProps = ContentItemDuoProps & {
22
18
  ButtonComponent: ComponentType<ButtonProps>;
23
- ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
19
+ ItemMessageComponent: ComponentType<ItemMessageProps>;
24
20
  };
25
- export declare const ContentItemDuoCommon: ({ label, value, position, size, className, classModifier, isVertical, buttonText, onButtonClick, ButtonComponent, message, messageType, ItemMessageComponent, ...containerProps }: ContentItemDuoCommonProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const ContentItemDuoCommon: ({ label, value, position, size, className, buttonText, onButtonClick, ButtonComponent, message, messageType, ItemMessageComponent, ...containerProps }: ContentItemDuoCommonProps) => import("react/jsx-runtime").JSX.Element;
26
22
  export {};
@@ -1,16 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import {} from "react";
3
3
  import { getClassName } from "../../utilities/getClassName";
4
- import { ItemMessage, } from "../../Form/ItemMessage/ItemMessageCommon";
5
- export const ContentItemDuoCommon = ({ label, value, position = "horizontal", size = "large", className, classModifier, isVertical, buttonText, onButtonClick, ButtonComponent, message, messageType, ItemMessageComponent, ...containerProps }) => {
4
+ import {} from "../../Form/ItemMessage/ItemMessage";
5
+ export const ContentItemDuoCommon = ({ label, value, position = "horizontal", size = "large", className, buttonText, onButtonClick, ButtonComponent, message, messageType, ItemMessageComponent, ...containerProps }) => {
6
6
  const componentClassName = getClassName({
7
7
  baseClassName: "af-content-item-duo",
8
8
  className,
9
- modifiers: [
10
- isVertical ? "vertical" : position,
11
- size === "small" && size,
12
- classModifier,
13
- ],
9
+ modifiers: [position, size === "small" && size],
14
10
  });
15
11
  return (_jsxs("div", { className: componentClassName, ...containerProps, children: [_jsx("dt", { className: "af-content-item-duo__label", children: label }), _jsxs("dd", { className: "af-content-item-duo__value", children: [value, message ? (_jsx(ItemMessageComponent, { message: message, messageType: messageType })) : null] }), buttonText && onButtonClick ? (_jsx(ButtonComponent, { className: "af-content-item-duo__button", variant: "ghost", onClick: onButtonClick, children: buttonText })) : null] }));
16
12
  };
@@ -2,5 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/client/List/ContentItemDuo/ContentItemDuoLF.css";
3
3
  import { Button } from "../../Button/ButtonLF";
4
4
  import { ContentItemDuoCommon, } from "./ContentItemDuoCommon";
5
- import { ItemMessage } from "../../Form/ItemMessage/ItemMessageLF";
5
+ import { ItemMessage } from "../../Form/ItemMessage/ItemMessage";
6
6
  export const ContentItemDuo = (props) => (_jsx(ContentItemDuoCommon, { ...props, ButtonComponent: Button, ItemMessageComponent: ItemMessage }));