@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
@@ -2,8 +2,6 @@ import { type DropzoneInputProps, type DropzoneOptions, type FileRejection } fro
2
2
  import type { FileActions } from "./constants";
3
3
  type Dropzone = DropzoneInputProps & DropzoneOptions;
4
4
  type Props = Omit<Dropzone, "onDrop" | "onChange"> & {
5
- /** @deprecated Use `className` instead. */
6
- classModifier?: string;
7
5
  label?: string;
8
6
  icon?: string;
9
7
  onChange: (data: onChangeProps) => void;
@@ -22,5 +20,5 @@ type onChangeProps = {
22
20
  values: CustomFile[];
23
21
  errors?: CustomFile<FileRejection>[];
24
22
  };
25
- declare const File: ({ className, classModifier, id, name, disabled, onChange, multiple, maxSize, minSize, accept, readOnly, placeholder, label, icon, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
23
+ declare const File: ({ className, id, name, disabled, onChange, multiple, maxSize, minSize, accept, readOnly, placeholder, label, icon, ...otherProps }: Props) => import("react/jsx-runtime").JSX.Element;
26
24
  export { File };
@@ -3,7 +3,7 @@ import { useId } from "react";
3
3
  import { useDropzone, } from "react-dropzone";
4
4
  import { Button } from "../../Button/Button";
5
5
  import { getClassName } from "../../utilities/helpers/getClassName";
6
- const File = ({ className, classModifier, id, name, disabled, onChange, multiple = true, maxSize = 20000000, minSize = 0, accept, readOnly, placeholder = "Glissez/déposez vos fichiers", label = "Parcourir", icon = "open", ...otherProps }) => {
6
+ const File = ({ className, id, name, disabled, onChange, multiple = true, maxSize = 20000000, minSize = 0, accept, readOnly, placeholder = "Glissez/déposez vos fichiers", label = "Parcourir", icon = "open", ...otherProps }) => {
7
7
  const valueId = useId();
8
8
  const errorsId = useId();
9
9
  const handleOnChange = (acceptedFiles, rejectedFiles) => {
@@ -56,7 +56,6 @@ const File = ({ className, classModifier, id, name, disabled, onChange, multiple
56
56
  });
57
57
  const componentClassName = getClassName({
58
58
  baseClassName: "af-form__file-input",
59
- modifiers: classModifier?.split(" "),
60
59
  className,
61
60
  });
62
61
  return (_jsxs("div", { className: componentClassName, children: [_jsxs("div", { ...getRootProps({ className: "drop-box" }), children: [_jsx("input", { ...getInputProps({ id, name, readOnly, ...otherProps }) }), _jsx("div", { children: placeholder })] }), _jsx(Button, { className: "af-btn--file", leftIcon: _jsx("i", { className: `glyphicon glyphicon-${icon}` }), onClick: open, disabled: disabled, children: label })] }));
@@ -8,6 +8,8 @@ type FileTableProps = ComponentPropsWithoutRef<typeof FileTable>;
8
8
  type Props = ConsumerFieldProps & FileProps & Pick<FileTableProps, "values" | "errors"> & {
9
9
  fileLabel?: string;
10
10
  helpMessage?: ReactNode;
11
+ } & {
12
+ tableClassName?: string;
11
13
  };
12
- declare const FileInput: ({ values, id, name, onChange, label, errors, fileLabel, classModifier, children, ...otherFileProps }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ declare const FileInput: ({ values, id, name, onChange, label, errors, fileLabel, children, ...otherFileProps }: Props) => import("react/jsx-runtime").JSX.Element;
13
15
  export { FileInput };
@@ -4,7 +4,7 @@ import { useId } from "react";
4
4
  import { Field } from "../core";
5
5
  import { File } from "./File";
6
6
  import { FileTable } from "./FileTable";
7
- const FileInput = ({ values = [], id, name = "", onChange, label, errors, fileLabel, classModifier, children, ...otherFileProps }) => {
7
+ const FileInput = ({ values = [], id, name = "", onChange, label, errors, fileLabel, children, ...otherFileProps }) => {
8
8
  const onDeleteClick = (selectedId, selectInputId) => {
9
9
  const newValues = values.filter((element) => element.id !== selectedId);
10
10
  onChange({
@@ -16,6 +16,6 @@ const FileInput = ({ values = [], id, name = "", onChange, label, errors, fileLa
16
16
  };
17
17
  const generatedId = useId();
18
18
  const actualId = id ?? generatedId;
19
- return (_jsx(Field, { label: label, labelPosition: "top", id: actualId, classNameSuffix: "file", ...otherFileProps, renderInput: ({ classModifier: inputClassModifiers, id: inputId, ariaInvalid, errorId, ...inputProps }) => (_jsxs(_Fragment, { children: [_jsx(File, { id: inputId, name: name, onChange: onChange, classModifier: inputClassModifiers, label: fileLabel, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...inputProps }), children] })), appendChildren: _jsx(FileTable, { errors: errors, values: values, onClick: (selectedId) => onDeleteClick(selectedId, actualId), classModifier: classModifier }) }));
19
+ return (_jsx(Field, { label: label, labelPosition: "top", id: actualId, fieldClassNameSuffix: "file", ...otherFileProps, renderInput: ({ inputClassName: inputClassModifiers, id: inputId, ariaInvalid, errorId, ...inputProps }) => (_jsxs(_Fragment, { children: [_jsx(File, { id: inputId, name: name, onChange: onChange, className: inputClassModifiers, label: fileLabel, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...inputProps }), children] })), appendChildren: _jsx(FileTable, { errors: errors, values: values, onClick: (selectedId) => onDeleteClick(selectedId, actualId), className: otherFileProps.tableClassName }) }));
20
20
  };
21
21
  export { FileInput };
@@ -2,8 +2,7 @@ import type { CustomFile } from "./File";
2
2
  type Props = CustomFile & {
3
3
  onClick: (id: string) => void;
4
4
  className?: string;
5
- classModifier?: string;
6
5
  disabled?: boolean;
7
6
  };
8
- declare const FileLine: ({ className, classModifier, file, disabled, id, onClick, }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const FileLine: ({ className, file, disabled, id, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
9
8
  export { FileLine };
@@ -1,7 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getComponentClassName } from "../../utilities";
3
- const FileLine = ({ className, classModifier, file, disabled, id, onClick, }) => {
4
- const componentClassName = getComponentClassName(className, classModifier, "af-form__file-line");
2
+ import { getClassName } from "../../utilities";
3
+ const FileLine = ({ className, file, disabled, id, onClick }) => {
4
+ const componentClassName = getClassName({
5
+ baseClassName: "af-form__file-line",
6
+ className,
7
+ });
5
8
  return (_jsxs("li", { className: componentClassName, children: [file && file.type && file.type.startsWith("image") ? (_jsx("i", { className: "glyphicon glyphicon-picture" })) : (_jsx("i", { className: "glyphicon glyphicon-file" })), _jsx("span", { children: file.name }), _jsx("span", { children: file.size }), _jsx("button", { disabled: disabled, type: "button", className: "af-link af-link--delete-file", onClick: () => onClick(id), children: _jsx("span", { className: "af-link__text", children: "Supprimer" }) })] }));
6
9
  };
7
10
  export { FileLine };
@@ -7,8 +7,7 @@ type Props = Pick<FileLineProps, "onClick"> & {
7
7
  errors?: FileRejection[];
8
8
  values?: CustomFile[];
9
9
  className?: string;
10
- classModifier?: string;
11
10
  disabled?: boolean;
12
11
  };
13
- declare const FileTable: ({ errors, values, className, classModifier, disabled, onClick, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ declare const FileTable: ({ errors, values, className, disabled, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
14
13
  export { FileTable };
@@ -1,9 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getComponentClassName } from "../../utilities";
2
+ import { getClassName } from "../../utilities";
3
3
  import { FileErrors } from "./FileErrors";
4
4
  import { FileLine } from "./FileLine";
5
- const FileTable = ({ errors, values, className, classModifier, disabled, onClick, }) => {
6
- const componentClassName = getComponentClassName(className, classModifier, "custom-table-file af-file-table");
5
+ const FileTable = ({ errors, values, className, disabled, onClick }) => {
6
+ const componentClassName = getClassName({
7
+ baseClassName: "af-file-table",
8
+ className: `custom-table-file ${className ?? ""}`,
9
+ });
7
10
  return (_jsxs("div", { className: componentClassName, children: [errors && errors.length > 0 ? _jsx(FileErrors, { errors: errors }) : null, values && values.length > 0 ? (_jsx("ul", { className: "af-form__file-list", children: values.map(({ file, id }) => (_jsx(FileLine, { disabled: disabled, file: file, onClick: onClick, id: id }, id))) })) : null] }));
8
11
  };
9
12
  export { FileTable };
@@ -4,7 +4,7 @@ import {} from "react";
4
4
  import { Field } from "../core";
5
5
  import { MultiSelect } from "./MultiSelect";
6
6
  const MultiSelectInput = ({ label, children, ...multiSelectProps }) => {
7
- return (_jsx(Field, { label: label, ...multiSelectProps, classNameSuffix: "select", renderInput: ({ id, ariaInvalid, errorId, ...props }) => {
7
+ return (_jsx(Field, { label: label, ...multiSelectProps, fieldClassNameSuffix: "select", renderInput: ({ id, ariaInvalid, errorId, ...props }) => {
8
8
  return (_jsxs(_Fragment, { children: [_jsx(MultiSelect, { id: id, "aria-invalid": ariaInvalid, "aria-describedby": errorId, ...props }), children] }));
9
9
  } }));
10
10
  };
@@ -1,7 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/distributeur/Form/NestedQuestion/NestedQuestion.css";
3
- import { getComponentClassName } from "../../utilities";
3
+ import { getClassName } from "../../utilities";
4
+ const baseClassName = "af-form__nested-question";
4
5
  export const NestedQuestion = ({ children, className, }) => {
5
- const componentClassName = getComponentClassName(className, "", "af-form__nested-question");
6
- return (_jsxs("section", { className: componentClassName, children: [_jsx("div", { className: `${componentClassName}-arrow` }), _jsx("section", { children: children })] }));
6
+ const componentClassName = getClassName({
7
+ baseClassName,
8
+ className,
9
+ });
10
+ return (_jsxs("section", { className: componentClassName, children: [_jsx("div", { className: `${baseClassName}-arrow` }), _jsx("section", { children: children })] }));
7
11
  };
@@ -1,11 +1,8 @@
1
1
  import "@axa-fr/canopee-css/distributeur/Form/Text/Text.css";
2
2
  import { type ComponentPropsWithRef } from "react";
3
- type Props = Omit<ComponentPropsWithRef<"input">, "type"> & {
4
- /** @deprecated Use `className` and the native `required` prop instead. */
5
- classModifier?: string;
6
- };
7
- declare const Number: {
8
- ({ id, className, classModifier, required, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
3
+ type Props = Omit<ComponentPropsWithRef<"input">, "type"> & {};
4
+ declare const NumberComponent: {
5
+ ({ id, className, required, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
9
6
  displayName: string;
10
7
  };
11
- export { Number };
8
+ export { NumberComponent as Number };
@@ -2,15 +2,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/distributeur/Form/Text/Text.css";
3
3
  import { useId } from "react";
4
4
  import { getClassName } from "../../utilities/helpers/getClassName";
5
- const Number = ({ id, className, classModifier, required, ...otherProps }) => {
5
+ const NumberComponent = ({ id, className, required, ...otherProps }) => {
6
6
  const inputUseId = useId();
7
7
  const inputId = id ?? inputUseId;
8
8
  const componentClassName = getClassName({
9
9
  baseClassName: "af-form__input-text",
10
- modifiers: classModifier?.split(" "),
11
10
  className,
12
11
  });
13
- return (_jsx("input", { className: componentClassName, id: inputId, type: "number", required: required || classModifier?.includes("required"), ...otherProps }));
12
+ return (_jsx("input", { className: componentClassName, id: inputId, type: "number", required: required, ...otherProps }));
14
13
  };
15
- Number.displayName = "Number";
16
- export { Number };
14
+ NumberComponent.displayName = "Number";
15
+ export { NumberComponent as Number };
@@ -3,5 +3,5 @@ import {} from "react";
3
3
  import { Field } from "../core";
4
4
  import { Number } from "./Number";
5
5
  export const NumberInput = ({ children, ...props }) => {
6
- return (_jsx(Field, { ...props, renderInput: ({ id, classModifier, ariaInvalid, errorId, ...inputProps }) => (_jsxs(_Fragment, { children: [_jsx(Number, { id: id, classModifier: classModifier, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...inputProps }), children] })) }));
6
+ return (_jsx(Field, { ...props, renderInput: ({ id, inputClassName, ariaInvalid, errorId, ...inputProps }) => (_jsxs(_Fragment, { children: [_jsx(Number, { id: id, className: inputClassName, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...inputProps }), children] })) }));
7
7
  };
@@ -10,7 +10,7 @@ export declare enum RadioModes {
10
10
  }
11
11
  type Props = {
12
12
  options: Option[];
13
- } & ((Omit<ComponentPropsWithRef<typeof RadioItem>, "id" | "label" | "className"> & {
13
+ } & ((Omit<ComponentPropsWithRef<typeof RadioItem>, "id" | "label"> & {
14
14
  mode?: "classic" | "default" | "inline";
15
15
  }) | (ComponentPropsWithRef<typeof RadioCardGroup> & {
16
16
  mode: "cardRadio";
@@ -5,7 +5,7 @@ import { Radio, RadioModes } from "./Radio";
5
5
  const RadioInput = ({ label, mode = "default", options, children, ...props }) => {
6
6
  const labelPosition = mode === RadioModes.classic ? "top" : "center";
7
7
  const newOptions = useOptionsWithId(options);
8
- return (_jsx(Field, { label: label, labelPosition: labelPosition, roleContainer: "radiogroup", ...props, renderInput: ({ classModifier, ...radioProps }) => (_jsx(Radio, { options: newOptions, mode: mode, classModifier: classModifier, ...radioProps, children: children })) }));
8
+ return (_jsx(Field, { label: label, labelPosition: labelPosition, roleContainer: "radiogroup", ...props, renderInput: ({ inputClassName, ...radioProps }) => (_jsx(Radio, { options: newOptions, mode: mode, className: inputClassName, ...radioProps, children: children })) }));
9
9
  };
10
10
  RadioInput.displayName = "EnhancedInputRadio";
11
11
  export { RadioInput };
@@ -1,14 +1,12 @@
1
1
  import "@axa-fr/canopee-css/distributeur/Form/Radio/Radio.css";
2
2
  import { type ComponentPropsWithRef, type ReactNode } from "react";
3
3
  type Props = Omit<ComponentPropsWithRef<"input">, "checked" | "type"> & {
4
- /** @deprecated Use `className` instead. */
5
- classModifier?: string;
6
4
  optionClassName?: string;
7
5
  label?: ReactNode;
8
6
  isChecked?: boolean;
9
7
  };
10
8
  declare const RadioItem: {
11
- ({ value, id, isChecked, label, classModifier, className, disabled, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
9
+ ({ value, id, isChecked, label, className, disabled, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
12
10
  displayName: string;
13
11
  };
14
12
  export { RadioItem };
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/distributeur/Form/Radio/Radio.css";
3
3
  import { useId } from "react";
4
4
  import { getOptionClassName } from "../core";
5
- const RadioItem = ({ value = "", id, isChecked, label, classModifier = "", className = "", disabled = false, ...otherProps }) => {
6
- const optionClassName = getOptionClassName(className, classModifier, "af-form__radio", disabled);
5
+ const RadioItem = ({ value = "", id, isChecked, label, className = "", disabled = false, ...otherProps }) => {
6
+ const optionClassName = getOptionClassName(className, "af-form__radio", disabled);
7
7
  const generatedId = useId();
8
8
  const newId = id ?? generatedId;
9
9
  return (_jsxs("div", { className: optionClassName, children: [_jsx("input", { ...otherProps, className: "af-form__input-radio", id: newId, type: "radio", value: value, checked: isChecked, disabled: disabled }), _jsx("label", { className: "af-form__label", htmlFor: newId, children: _jsx("span", { className: "af-form__description", children: label }) })] }, value));
@@ -1,26 +1,10 @@
1
- import { type ComponentProps, type OptionHTMLAttributes, type PropsWithChildren } from "react";
1
+ import { type ComponentProps, type PropsWithChildren } from "react";
2
2
  import { SelectDefault } from "./SelectDefault";
3
- import { SelectDefaultWithOptions } from "./SelectDefaultWithOptions";
4
- type SelectProps = PropsWithChildren<ComponentProps<typeof SelectDefault | typeof SelectDefaultWithOptions> & {
5
- /**
6
- * @deprecated Use `children` instead
7
- * Instead of
8
- * ```jsx
9
- * <SelectBase options={[{ value: "1", label: "Option 1" }]} />
10
- * ```
11
- * you can now do something like :
12
- * ```jsx
13
- * <SelectBase>
14
- * <option value="1">Option 1</option>
15
- * </SelectBase>
16
- * ```
17
- * It allows you to use the `optgroup` tag for example.
18
- */
19
- options?: OptionHTMLAttributes<HTMLOptionElement>[];
3
+ type SelectProps = PropsWithChildren<ComponentProps<typeof SelectDefault> & {
20
4
  mode?: "default" | "base";
21
5
  }>;
22
6
  declare const Select: {
23
- ({ mode, children, options, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
7
+ ({ mode, children, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
24
8
  displayName: string;
25
9
  };
26
10
  export { Select };
@@ -2,12 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import {} from "react";
3
3
  import { SelectBase } from "./SelectBase";
4
4
  import { SelectDefault } from "./SelectDefault";
5
- import { SelectDefaultWithOptions } from "./SelectDefaultWithOptions";
6
- const Select = ({ mode = "default", children, options, ...props }) => {
5
+ const Select = ({ mode = "default", children, ...props }) => {
7
6
  if (mode === "default") {
8
- return options ? (_jsx(SelectDefaultWithOptions, { ...props, options: options })) : (_jsx(SelectDefault, { ...props, children: children }));
7
+ return _jsx(SelectDefault, { ...props, children: children });
9
8
  }
10
- return (_jsx(SelectBase, { ...props, options: options, children: children }));
9
+ return _jsx(SelectBase, { ...props, children: children });
11
10
  };
12
11
  Select.displayName = "Select";
13
12
  export { Select };
@@ -1,29 +1,8 @@
1
1
  import "@axa-fr/canopee-css/distributeur/Form/Select/Select.css";
2
- import { type ComponentPropsWithRef, type OptionHTMLAttributes } from "react";
3
- type Props = ComponentPropsWithRef<"select"> & {
4
- /**
5
- * @deprecated Use `children` instead
6
- * Instead of
7
- * ```jsx
8
- * <SelectBase options={[{ value: "1", label: "Option 1" }]} />
9
- * ```
10
- * you can now do something like :
11
- * ```jsx
12
- * <SelectBase>
13
- * <option value="1">Option 1</option>
14
- * </SelectBase>
15
- * ```
16
- * It allows you to use the `optgroup` tag for example.
17
- */
18
- options?: OptionHTMLAttributes<HTMLOptionElement>[];
19
- /** @deprecated Use `className` and the native `required` prop instead. */
20
- classModifier?: string;
21
- };
22
- /**
23
- * @deprecated Use Select instead
24
- */
2
+ import { type ComponentPropsWithRef } from "react";
3
+ type Props = ComponentPropsWithRef<"select">;
25
4
  declare const SelectBase: {
26
- ({ options, id, className, classModifier, required, children, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
5
+ ({ id, className, required, children, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
27
6
  displayName: string;
28
7
  };
29
8
  export { SelectBase };
@@ -2,17 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/distributeur/Form/Select/Select.css";
3
3
  import {} from "react";
4
4
  import { getClassName } from "../../utilities/helpers/getClassName";
5
- /**
6
- * @deprecated Use Select instead
7
- */
8
- const SelectBase = ({ options, id, className, classModifier, required, children, ...otherProps }) => {
5
+ const SelectBase = ({ id, className, required, children, ...otherProps }) => {
9
6
  const componentClassName = getClassName({
10
7
  baseClassName: "af-form__input-select",
11
- modifiers: classModifier?.split(" "),
12
8
  className,
13
9
  });
14
- return (_jsxs("div", { className: "af-form__select-container", children: [_jsx("select", { ...otherProps, id: id, className: componentClassName, required: classModifier?.includes("required") || required, children: children ??
15
- options?.map(({ label, ...opt }) => (_jsx("option", { ...opt, children: label }, opt.value?.toString()))) }), _jsx("span", { "aria-controls": id, className: "glyphicon glyphicon-menu-down" })] }));
10
+ return (_jsxs("div", { className: "af-form__select-container", children: [_jsx("select", { ...otherProps, id: id, className: componentClassName, required: required, children: children }), _jsx("span", { "aria-controls": id, className: "glyphicon glyphicon-menu-down" })] }));
16
11
  };
17
12
  SelectBase.displayName = "SelectBase";
18
13
  export { SelectBase };
@@ -1,10 +1,10 @@
1
1
  import { type ComponentPropsWithRef } from "react";
2
2
  import { SelectBase } from "./SelectBase";
3
- type Props = Omit<ComponentPropsWithRef<typeof SelectBase> & {
3
+ type Props = ComponentPropsWithRef<typeof SelectBase> & {
4
4
  forceDisplayPlaceholder?: boolean;
5
5
  placeholder?: string;
6
- children: React.ReactNode;
7
- }, "options">;
6
+ children?: React.ReactNode;
7
+ };
8
8
  declare const SelectDefault: {
9
9
  ({ onChange, forceDisplayPlaceholder, value, defaultValue, required, placeholder, id, children, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
10
10
  displayName: string;
@@ -2,6 +2,6 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import {} from "react";
3
3
  import { Field } from "../core";
4
4
  import { Select } from "./Select";
5
- const SelectInput = ({ label, options, children, ...props }) => (_jsx(Field, { label: label, classNameSuffix: "select", ...props, renderInput: ({ classModifier, id, ariaInvalid, errorId, ...otherSelectProps }) => (_jsxs(_Fragment, { children: [_jsx(Select, { id: id, classModifier: classModifier, "aria-describedby": errorId, "aria-invalid": ariaInvalid, options: options, ...otherSelectProps }), children] })) }));
5
+ const SelectInput = ({ label, options, children, ...props }) => (_jsx(Field, { label: label, fieldClassNameSuffix: "select", ...props, renderInput: ({ inputClassName, id, ariaInvalid, errorId, ...otherSelectProps }) => (_jsxs(_Fragment, { children: [_jsx(Select, { id: id, className: inputClassName, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...otherSelectProps, children: options.map(({ label: optionLabel, ...option }) => (_jsx("option", { ...option, children: optionLabel }, option.value?.toString()))) }), children] })) }));
6
6
  SelectInput.displayName = "SelectInput";
7
7
  export { SelectInput };
@@ -1,3 +1,2 @@
1
1
  export { Select } from "./Select";
2
- export { SelectBase } from "./SelectBase";
3
2
  export { SelectInput } from "./SelectInput";
@@ -1,3 +1,2 @@
1
1
  export { Select } from "./Select";
2
- export { SelectBase } from "./SelectBase";
3
2
  export { SelectInput } from "./SelectInput";
@@ -1,11 +1,10 @@
1
1
  import "@axa-fr/canopee-css/distributeur/Form/Text/Text.css";
2
2
  import { type ComponentPropsWithRef } from "react";
3
3
  type Props = ComponentPropsWithRef<"input"> & {
4
- /** @deprecated Use `className` and the native `required` prop instead. */
5
- classModifier?: string;
4
+ hasInfobulle?: boolean;
6
5
  };
7
6
  declare const Text: {
8
- ({ className, classModifier, required, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
7
+ ({ className, required, hasInfobulle, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
9
8
  displayName: string;
10
9
  };
11
10
  export { Text };
@@ -2,13 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/distributeur/Form/Text/Text.css";
3
3
  import {} from "react";
4
4
  import { getClassName } from "../../utilities/helpers/getClassName";
5
- const Text = ({ className, classModifier, required, ...otherProps }) => {
5
+ const Text = ({ className, required, hasInfobulle, ...otherProps }) => {
6
6
  const componentClassName = getClassName({
7
7
  baseClassName: "af-form__input-text",
8
- modifiers: classModifier?.split(" "),
8
+ modifiers: [hasInfobulle && "hasinfobulle"],
9
9
  className,
10
10
  });
11
- return (_jsx("input", { className: componentClassName, type: "text", required: required || classModifier?.includes("required"), ...otherProps }));
11
+ return (_jsx("input", { className: componentClassName, type: "text", required: required, ...otherProps }));
12
12
  };
13
13
  Text.displayName = "Text";
14
14
  export { Text };
@@ -2,6 +2,6 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import {} from "react";
3
3
  import { Field } from "../core";
4
4
  import { Text } from "./Text";
5
- const TextInput = ({ children, ...props }) => (_jsx(Field, { ...props, renderInput: ({ id, classModifier, ariaInvalid, errorId, ...textProps }) => (_jsxs(_Fragment, { children: [_jsx(Text, { id: id, classModifier: classModifier, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...textProps }), children] })) }));
5
+ const TextInput = ({ children, ...props }) => (_jsx(Field, { ...props, renderInput: ({ id, inputClassName, ariaInvalid, errorId, ...textProps }) => (_jsxs(_Fragment, { children: [_jsx(Text, { id: id, className: inputClassName, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...textProps }), children] })) }));
6
6
  TextInput.displayName = "TextInput";
7
7
  export { TextInput };
@@ -1,11 +1,10 @@
1
1
  import "@axa-fr/canopee-css/distributeur/Form/Textarea/Textarea.css";
2
2
  import { type ComponentPropsWithRef } from "react";
3
3
  type Props = ComponentPropsWithRef<"textarea"> & {
4
- /** @deprecated Use `className` and the native `required` prop instead. */
5
- classModifier?: string;
4
+ hasInfobulle?: boolean;
6
5
  };
7
6
  declare const Textarea: {
8
- ({ id, className, classModifier, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
7
+ ({ id, className, required, hasInfobulle, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
9
8
  displayName: string;
10
9
  };
11
10
  export { Textarea };
@@ -2,15 +2,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/distributeur/Form/Textarea/Textarea.css";
3
3
  import { useId } from "react";
4
4
  import { getClassName } from "../../utilities/helpers/getClassName";
5
- const Textarea = ({ id, className, classModifier, ...otherProps }) => {
5
+ const Textarea = ({ id, className, required, hasInfobulle, ...otherProps }) => {
6
6
  const inputUseId = useId();
7
7
  const inputId = id ?? inputUseId;
8
8
  const componentClassName = getClassName({
9
9
  baseClassName: "af-form__input-textarea",
10
- modifiers: classModifier?.split(" "),
10
+ modifiers: [hasInfobulle && "hasinfobulle"],
11
11
  className,
12
12
  });
13
- return (_jsx("textarea", { ...otherProps, id: inputId, className: componentClassName, required: classModifier?.includes("required") }));
13
+ return (_jsx("textarea", { ...otherProps, id: inputId, className: componentClassName, required: required }));
14
14
  };
15
15
  Textarea.displayName = "Textarea";
16
16
  export { Textarea };
@@ -3,6 +3,6 @@ import "@axa-fr/canopee-css/distributeur/Form/Textarea/Textarea.css";
3
3
  import {} from "react";
4
4
  import { Field } from "../core";
5
5
  import { Textarea } from "./Textarea";
6
- const TextareaInput = ({ label, children, ...props }) => (_jsx(Field, { label: label, labelPosition: "top", classNameSuffix: "textarea", ...props, renderInput: ({ id, ariaInvalid, errorId, ...inputProps }) => (_jsxs(_Fragment, { children: [_jsx(Textarea, { id: id, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...inputProps }), children] })) }));
6
+ const TextareaInput = ({ label, children, ...props }) => (_jsx(Field, { label: label, labelPosition: "top", fieldClassNameSuffix: "textarea", ...props, renderInput: ({ id, inputClassName, ariaInvalid, errorId, ...inputProps }) => (_jsxs(_Fragment, { children: [_jsx(Textarea, { id: id, className: inputClassName, "aria-describedby": errorId, "aria-invalid": ariaInvalid, ...inputProps }), children] })) }));
7
7
  TextareaInput.displayName = "TextareaInput";
8
8
  export { TextareaInput };
@@ -10,16 +10,8 @@ type InputProps = {
10
10
  */
11
11
  id?: string;
12
12
  className?: string;
13
- classModifier?: string;
14
13
  classNameContainerLabel?: string;
15
14
  classNameContainerInput?: string;
16
- /**
17
- * Setting this to false will disable the rendering of the component
18
- * @default true
19
- * @deprecated You should handle the visibility of the component in your code
20
- * instead of using this prop. This prop will be removed in a future version.
21
- */
22
- isVisible?: boolean;
23
15
  roleContainer?: string;
24
16
  ariaLabelContainer?: string;
25
17
  isLabelContainerLinkedToInput?: boolean;
@@ -28,6 +20,7 @@ type InputProps = {
28
20
  messageType?: MessageTypes;
29
21
  required?: boolean;
30
22
  disabled?: boolean;
23
+ hasInfobulle?: boolean;
31
24
  helpMessage?: ReactNode;
32
25
  /**
33
26
  * Sets the position of the label relative to the input.
@@ -37,22 +30,10 @@ type InputProps = {
37
30
  *
38
31
  */
39
32
  labelPosition?: "top" | "center";
40
- /**
41
- * suffix appended to the className of the div wrapping the input
42
- * @deprecated We should rationalize the CSS for the components to avoid having to use different sufixes
43
- * but it would be a breaking change to do so, so we keep it for now
44
- * @example "textarea" will result in
45
- * ```html
46
- * <div class="af-form__textarea">
47
- * // ... input
48
- * </div>
49
- * ```
50
- * @default "text"
51
- */
52
- classNameSuffix?: string;
33
+ fieldClassNameSuffix?: string;
53
34
  renderInput: (props: {
54
35
  id: string;
55
- classModifier: string;
36
+ inputClassName: string;
56
37
  errorId?: string;
57
38
  ariaInvalid?: boolean;
58
39
  } & Record<string, unknown>) => ReactNode;
@@ -76,5 +57,5 @@ export type ConsumerFieldProps = Omit<InputProps, "renderInput" | "classNameSuff
76
57
  */
77
58
  children?: ReactNode;
78
59
  };
79
- export declare const Field: ({ classNameContainerInput, classNameContainerLabel, className, label, forceDisplayMessage, message, messageType, required, classModifier, disabled, helpMessage, id, isVisible, roleContainer, ariaLabelContainer, isLabelContainerLinkedToInput, labelPosition, classNameSuffix, renderInput, appendChildren, ...otherProps }: InputProps) => import("react/jsx-runtime").JSX.Element | null;
60
+ export declare const Field: ({ classNameContainerInput, classNameContainerLabel, className, label, forceDisplayMessage, message, messageType, required, disabled, hasInfobulle, helpMessage, id, roleContainer, ariaLabelContainer, isLabelContainerLinkedToInput, labelPosition, fieldClassNameSuffix, renderInput, appendChildren, ...otherProps }: InputProps) => import("react/jsx-runtime").JSX.Element;
80
61
  export {};
@@ -1,37 +1,44 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import classNames from "classnames";
3
3
  import { useId } from "react";
4
- import { FieldError, FormClassManager, HelpMessage, MessageTypes, useInputClassModifier, } from ".";
5
- import { getComponentClassName } from "../../utilities";
4
+ import { FieldError, FormClassManager, HelpMessage, MessageTypes } from ".";
5
+ import { getClassName } from "../../utilities";
6
6
  import { useAriaInvalid } from "./useAriaInvalid";
7
7
  function isIdDefined(id) {
8
8
  return typeof id === "string" && id.length > 0;
9
9
  }
10
- export const Field = ({ classNameContainerInput = "col-md-10", classNameContainerLabel = "col-md-2", className, label, forceDisplayMessage, message, messageType, required, classModifier = "", disabled = false, helpMessage, id, isVisible = true, roleContainer, ariaLabelContainer, isLabelContainerLinkedToInput = true, labelPosition = "center", classNameSuffix = "text", renderInput, appendChildren, ...otherProps }) => {
10
+ export const Field = ({ classNameContainerInput = "col-md-10", classNameContainerLabel = "col-md-2", className, label, forceDisplayMessage, message, messageType, required, disabled = false, hasInfobulle, helpMessage, id, roleContainer, ariaLabelContainer, isLabelContainerLinkedToInput = true, labelPosition = "center", fieldClassNameSuffix = "text", renderInput, appendChildren, ...otherProps }) => {
11
11
  const inputUseId = useId();
12
12
  const inputId = isIdDefined(id) ? id : inputUseId;
13
- const actualRequired = required || classModifier.includes("required");
14
13
  const isInvalid = useAriaInvalid(message, forceDisplayMessage, messageType);
15
14
  const errorId = forceDisplayMessage || helpMessage ? `${inputId}-description` : undefined;
16
- const { inputClassModifier, inputFieldClassModifier } = useInputClassModifier(classModifier, disabled, false, actualRequired);
17
15
  const labelId = useId();
18
- if (!isVisible) {
19
- return null;
20
- }
21
16
  const isGroup = roleContainer === "radiogroup" || roleContainer === "group";
22
17
  const LabelElement = isGroup ? "div" : "label";
23
- const modifiers = forceDisplayMessage
24
- ? `${inputFieldClassModifier} ${FormClassManager.getModifier(messageType)}`
25
- : inputFieldClassModifier;
26
- const fieldContainerClassName = getComponentClassName(`af-form__${classNameSuffix}`, modifiers);
27
- const groupClassName = getComponentClassName(className, classModifier, "af-form__group");
18
+ const fieldModifiers = [
19
+ disabled && "disabled",
20
+ required && "required",
21
+ forceDisplayMessage && FormClassManager.getModifier(messageType),
22
+ ];
23
+ const inputClassName = getClassName({
24
+ baseClassName: `af-form__input-${fieldClassNameSuffix}`,
25
+ modifiers: [...fieldModifiers, hasInfobulle && `hasinfobulle`],
26
+ });
27
+ const fieldContainerClassName = getClassName({
28
+ baseClassName: `af-form__${fieldClassNameSuffix}`,
29
+ modifiers: fieldModifiers,
30
+ });
31
+ const groupClassName = getClassName({
32
+ baseClassName: "af-form__group",
33
+ className,
34
+ });
28
35
  return (_jsxs("div", { className: classNames("row", groupClassName, {
29
- "af-form__group--required": actualRequired,
36
+ "af-form__group--required": required,
30
37
  "af-form__group--label-top": labelPosition === "top",
31
38
  }), role: roleContainer, "aria-invalid": isGroup ? isInvalid : undefined, "aria-required": isGroup ? required : undefined, "aria-label": ariaLabelContainer, "aria-labelledby": isGroup ? labelId : undefined, "aria-errormessage": isGroup && isInvalid ? errorId : undefined, children: [_jsx("div", { className: classNameContainerLabel, children: _jsx(LabelElement, { className: classNames("af-form__group-label", {
32
- "af-form__group-label--required": actualRequired,
39
+ "af-form__group-label--required": required,
33
40
  }), htmlFor: isLabelContainerLinkedToInput ? inputId : undefined, id: labelId, children: label }) }), _jsxs("div", { className: classNameContainerInput, children: [_jsx("div", { className: fieldContainerClassName, children: renderInput({
34
- classModifier: `${inputClassModifier} ${modifiers}`,
41
+ inputClassName,
35
42
  id: inputId,
36
43
  errorId,
37
44
  disabled,
@@ -1,8 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getComponentClassName } from "../../utilities";
2
+ import { getClassName } from "../../utilities";
3
3
  import { MessageTypes } from "./MessageTypes";
4
4
  const DEFAULT_CLASS_NAME = "af-form__message";
5
5
  export const FieldError = ({ message = null, messageType = MessageTypes.error, errorId = undefined, }) => {
6
- const className = getComponentClassName(DEFAULT_CLASS_NAME, messageType, DEFAULT_CLASS_NAME);
6
+ const className = getClassName({
7
+ baseClassName: DEFAULT_CLASS_NAME,
8
+ modifiers: [messageType],
9
+ });
7
10
  return (message && (_jsxs("small", { className: className, children: [_jsx("span", { className: "glyphicon glyphicon-exclamation-sign" }), _jsx("span", { id: errorId, role: "alert", className: `af-form__${messageType}-text`, children: message })] })));
8
11
  };
@@ -1 +1 @@
1
- export declare function getOptionClassName(className: string, classModifier: string, defaultClassName: string, disabled: boolean, variant?: string): string;
1
+ export declare function getOptionClassName(className: string, defaultClassName: string, disabled: boolean, variant?: string): string;