@axa-fr/design-system-apollo-react 3.2.0 → 4.0.0-alpha.1090

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 (383) hide show
  1. package/package.json +9 -56
  2. package/src/index.ts +2 -0
  3. package/src/indexLF.ts +2 -0
  4. package/dist/Accordion/AccordionApollo.d.ts +0 -4
  5. package/dist/Accordion/AccordionApollo.js +0 -8
  6. package/dist/Accordion/AccordionCommon.d.ts +0 -29
  7. package/dist/Accordion/AccordionCommon.js +0 -17
  8. package/dist/Accordion/AccordionLF.d.ts +0 -4
  9. package/dist/Accordion/AccordionLF.js +0 -8
  10. package/dist/AccordionCore/AccordionCoreApollo.d.ts +0 -3
  11. package/dist/AccordionCore/AccordionCoreApollo.js +0 -5
  12. package/dist/AccordionCore/AccordionCoreCommon.d.ts +0 -17
  13. package/dist/AccordionCore/AccordionCoreCommon.js +0 -22
  14. package/dist/AccordionCore/AccordionCoreLF.d.ts +0 -3
  15. package/dist/AccordionCore/AccordionCoreLF.js +0 -5
  16. package/dist/BasePicture/BasePicture.d.ts +0 -5
  17. package/dist/BasePicture/BasePicture.js +0 -4
  18. package/dist/Button/ButtonApollo.d.ts +0 -4
  19. package/dist/Button/ButtonApollo.js +0 -6
  20. package/dist/Button/ButtonCommon.d.ts +0 -23
  21. package/dist/Button/ButtonCommon.js +0 -13
  22. package/dist/Button/ButtonLF.d.ts +0 -4
  23. package/dist/Button/ButtonLF.js +0 -6
  24. package/dist/CardMessage/CardMessageApollo.d.ts +0 -2
  25. package/dist/CardMessage/CardMessageApollo.js +0 -2
  26. package/dist/CardMessage/CardMessageCommon.d.ts +0 -14
  27. package/dist/CardMessage/CardMessageCommon.js +0 -15
  28. package/dist/CardMessage/CardMessageLF.d.ts +0 -2
  29. package/dist/CardMessage/CardMessageLF.js +0 -2
  30. package/dist/ClickIcon/ClickIconApollo.d.ts +0 -2
  31. package/dist/ClickIcon/ClickIconApollo.js +0 -2
  32. package/dist/ClickIcon/ClickIconCommon.d.ts +0 -9
  33. package/dist/ClickIcon/ClickIconCommon.js +0 -3
  34. package/dist/ClickIcon/ClickIconLF.d.ts +0 -2
  35. package/dist/ClickIcon/ClickIconLF.js +0 -2
  36. package/dist/ContentItemDuoAction/ContentItemDuoActionApollo.d.ts +0 -4
  37. package/dist/ContentItemDuoAction/ContentItemDuoActionApollo.js +0 -6
  38. package/dist/ContentItemDuoAction/ContentItemDuoActionCommon.d.ts +0 -28
  39. package/dist/ContentItemDuoAction/ContentItemDuoActionCommon.js +0 -10
  40. package/dist/ContentItemDuoAction/ContentItemDuoActionLF.d.ts +0 -5
  41. package/dist/ContentItemDuoAction/ContentItemDuoActionLF.js +0 -7
  42. package/dist/ContentItemMono/ContentItemMonoApollo.d.ts +0 -3
  43. package/dist/ContentItemMono/ContentItemMonoApollo.js +0 -5
  44. package/dist/ContentItemMono/ContentItemMonoCommon.d.ts +0 -33
  45. package/dist/ContentItemMono/ContentItemMonoCommon.js +0 -28
  46. package/dist/ContentItemMono/ContentItemMonoCore.d.ts +0 -9
  47. package/dist/ContentItemMono/ContentItemMonoCore.js +0 -4
  48. package/dist/ContentItemMono/ContentItemMonoLF.d.ts +0 -3
  49. package/dist/ContentItemMono/ContentItemMonoLF.js +0 -5
  50. package/dist/DataAgent/DataAgentApollo.d.ts +0 -3
  51. package/dist/DataAgent/DataAgentApollo.js +0 -7
  52. package/dist/DataAgent/DataAgentCommon.d.ts +0 -21
  53. package/dist/DataAgent/DataAgentCommon.js +0 -17
  54. package/dist/DataAgent/DataAgentLF.d.ts +0 -3
  55. package/dist/DataAgent/DataAgentLF.js +0 -7
  56. package/dist/Divider/DividerApollo.d.ts +0 -2
  57. package/dist/Divider/DividerApollo.js +0 -2
  58. package/dist/Divider/DividerCommon.d.ts +0 -6
  59. package/dist/Divider/DividerCommon.js +0 -7
  60. package/dist/Divider/DividerLF.d.ts +0 -2
  61. package/dist/Divider/DividerLF.js +0 -2
  62. package/dist/Form/Checkbox/CardCheckbox/CardCheckboxApollo.d.ts +0 -6
  63. package/dist/Form/Checkbox/CardCheckbox/CardCheckboxApollo.js +0 -7
  64. package/dist/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +0 -35
  65. package/dist/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +0 -31
  66. package/dist/Form/Checkbox/CardCheckbox/CardCheckboxLF.d.ts +0 -6
  67. package/dist/Form/Checkbox/CardCheckbox/CardCheckboxLF.js +0 -7
  68. package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.d.ts +0 -3
  69. package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo.js +0 -6
  70. package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.d.ts +0 -16
  71. package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.js +0 -11
  72. package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.d.ts +0 -3
  73. package/dist/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF.js +0 -6
  74. package/dist/Form/Checkbox/Checkbox/CheckboxApollo.d.ts +0 -2
  75. package/dist/Form/Checkbox/Checkbox/CheckboxApollo.js +0 -2
  76. package/dist/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +0 -8
  77. package/dist/Form/Checkbox/Checkbox/CheckboxCommon.js +0 -4
  78. package/dist/Form/Checkbox/Checkbox/CheckboxLF.d.ts +0 -2
  79. package/dist/Form/Checkbox/Checkbox/CheckboxLF.js +0 -2
  80. package/dist/Form/Checkbox/CheckboxText/CheckboxTextApollo.d.ts +0 -3
  81. package/dist/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +0 -8
  82. package/dist/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +0 -16
  83. package/dist/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +0 -11
  84. package/dist/Form/Checkbox/CheckboxText/CheckboxTextLF.d.ts +0 -3
  85. package/dist/Form/Checkbox/CheckboxText/CheckboxTextLF.js +0 -8
  86. package/dist/Form/Dropdown/DropdownApollo.d.ts +0 -3
  87. package/dist/Form/Dropdown/DropdownApollo.js +0 -6
  88. package/dist/Form/Dropdown/DropdownCommon.d.ts +0 -26
  89. package/dist/Form/Dropdown/DropdownCommon.js +0 -13
  90. package/dist/Form/Dropdown/DropdownLF.d.ts +0 -3
  91. package/dist/Form/Dropdown/DropdownLF.js +0 -6
  92. package/dist/Form/FileUpload/FileUpload/FileUploadApollo.d.ts +0 -3
  93. package/dist/Form/FileUpload/FileUpload/FileUploadApollo.js +0 -7
  94. package/dist/Form/FileUpload/FileUpload/FileUploadCommon.d.ts +0 -18
  95. package/dist/Form/FileUpload/FileUpload/FileUploadCommon.js +0 -11
  96. package/dist/Form/FileUpload/FileUpload/FileUploadLF.d.ts +0 -3
  97. package/dist/Form/FileUpload/FileUpload/FileUploadLF.js +0 -7
  98. package/dist/Form/FileUpload/InputFile/InputFileApollo.d.ts +0 -4
  99. package/dist/Form/FileUpload/InputFile/InputFileApollo.js +0 -11
  100. package/dist/Form/FileUpload/InputFile/InputFileCommon.d.ts +0 -60
  101. package/dist/Form/FileUpload/InputFile/InputFileCommon.js +0 -39
  102. package/dist/Form/FileUpload/InputFile/InputFileLF.d.ts +0 -4
  103. package/dist/Form/FileUpload/InputFile/InputFileLF.js +0 -9
  104. package/dist/Form/FileUpload/ItemFile/ItemFileApollo.d.ts +0 -3
  105. package/dist/Form/FileUpload/ItemFile/ItemFileApollo.js +0 -10
  106. package/dist/Form/FileUpload/ItemFile/ItemFileCommon.d.ts +0 -54
  107. package/dist/Form/FileUpload/ItemFile/ItemFileCommon.js +0 -26
  108. package/dist/Form/FileUpload/ItemFile/ItemFileLF.d.ts +0 -3
  109. package/dist/Form/FileUpload/ItemFile/ItemFileLF.js +0 -10
  110. package/dist/Form/InputDate/InputDate.helper.d.ts +0 -8
  111. package/dist/Form/InputDate/InputDate.helper.js +0 -23
  112. package/dist/Form/InputDate/InputDateApollo.d.ts +0 -3
  113. package/dist/Form/InputDate/InputDateApollo.js +0 -8
  114. package/dist/Form/InputDate/InputDateAtom.d.ts +0 -9
  115. package/dist/Form/InputDate/InputDateAtom.js +0 -6
  116. package/dist/Form/InputDate/InputDateCommon.d.ts +0 -27
  117. package/dist/Form/InputDate/InputDateCommon.js +0 -30
  118. package/dist/Form/InputDate/InputDateLF.d.ts +0 -3
  119. package/dist/Form/InputDate/InputDateLF.js +0 -8
  120. package/dist/Form/InputDate/InputDateTextAtom.d.ts +0 -9
  121. package/dist/Form/InputDate/InputDateTextAtom.js +0 -16
  122. package/dist/Form/InputPhone/CountryCodeSelect.d.ts +0 -12
  123. package/dist/Form/InputPhone/CountryCodeSelect.js +0 -33
  124. package/dist/Form/InputPhone/InputPhone.types.d.ts +0 -4
  125. package/dist/Form/InputPhone/InputPhone.types.js +0 -1
  126. package/dist/Form/InputPhone/InputPhoneApollo.d.ts +0 -3
  127. package/dist/Form/InputPhone/InputPhoneApollo.js +0 -8
  128. package/dist/Form/InputPhone/InputPhoneCommon.d.ts +0 -35
  129. package/dist/Form/InputPhone/InputPhoneCommon.js +0 -32
  130. package/dist/Form/InputPhone/InputPhoneLF.d.ts +0 -3
  131. package/dist/Form/InputPhone/InputPhoneLF.js +0 -8
  132. package/dist/Form/InputPhone/maskFrenchPhoneNumber.d.ts +0 -1
  133. package/dist/Form/InputPhone/maskFrenchPhoneNumber.js +0 -12
  134. package/dist/Form/InputText/InputTextApollo.d.ts +0 -3
  135. package/dist/Form/InputText/InputTextApollo.js +0 -9
  136. package/dist/Form/InputText/InputTextCommon.d.ts +0 -24
  137. package/dist/Form/InputText/InputTextCommon.js +0 -14
  138. package/dist/Form/InputText/InputTextLF.d.ts +0 -3
  139. package/dist/Form/InputText/InputTextLF.js +0 -9
  140. package/dist/Form/InputTextAtom/InputTextAtomApollo.d.ts +0 -2
  141. package/dist/Form/InputTextAtom/InputTextAtomApollo.js +0 -2
  142. package/dist/Form/InputTextAtom/InputTextAtomCommon.d.ts +0 -10
  143. package/dist/Form/InputTextAtom/InputTextAtomCommon.js +0 -11
  144. package/dist/Form/InputTextAtom/InputTextAtomLF.d.ts +0 -2
  145. package/dist/Form/InputTextAtom/InputTextAtomLF.js +0 -2
  146. package/dist/Form/ItemLabel/ItemLabelApollo.d.ts +0 -3
  147. package/dist/Form/ItemLabel/ItemLabelApollo.js +0 -5
  148. package/dist/Form/ItemLabel/ItemLabelCommon.d.ts +0 -103
  149. package/dist/Form/ItemLabel/ItemLabelCommon.js +0 -55
  150. package/dist/Form/ItemLabel/ItemLabelLF.d.ts +0 -3
  151. package/dist/Form/ItemLabel/ItemLabelLF.js +0 -5
  152. package/dist/Form/ItemMessage/ItemMessageApollo.d.ts +0 -2
  153. package/dist/Form/ItemMessage/ItemMessageApollo.js +0 -2
  154. package/dist/Form/ItemMessage/ItemMessageCommon.d.ts +0 -13
  155. package/dist/Form/ItemMessage/ItemMessageCommon.js +0 -23
  156. package/dist/Form/ItemMessage/ItemMessageLF.d.ts +0 -2
  157. package/dist/Form/ItemMessage/ItemMessageLF.js +0 -2
  158. package/dist/Form/Radio/CardRadio/CardRadioApollo.d.ts +0 -3
  159. package/dist/Form/Radio/CardRadio/CardRadioApollo.js +0 -6
  160. package/dist/Form/Radio/CardRadio/CardRadioCommon.d.ts +0 -39
  161. package/dist/Form/Radio/CardRadio/CardRadioCommon.js +0 -16
  162. package/dist/Form/Radio/CardRadio/CardRadioLF.d.ts +0 -3
  163. package/dist/Form/Radio/CardRadio/CardRadioLF.js +0 -6
  164. package/dist/Form/Radio/CardRadioOption/CardRadioOptionApollo.d.ts +0 -3
  165. package/dist/Form/Radio/CardRadioOption/CardRadioOptionApollo.js +0 -6
  166. package/dist/Form/Radio/CardRadioOption/CardRadioOptionCommon.d.ts +0 -50
  167. package/dist/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +0 -12
  168. package/dist/Form/Radio/CardRadioOption/CardRadioOptionLF.d.ts +0 -3
  169. package/dist/Form/Radio/CardRadioOption/CardRadioOptionLF.js +0 -6
  170. package/dist/Form/Radio/Radio/RadioApollo.d.ts +0 -2
  171. package/dist/Form/Radio/Radio/RadioApollo.js +0 -2
  172. package/dist/Form/Radio/Radio/RadioCommon.d.ts +0 -5
  173. package/dist/Form/Radio/Radio/RadioCommon.js +0 -6
  174. package/dist/Form/Radio/Radio/RadioLF.d.ts +0 -2
  175. package/dist/Form/Radio/Radio/RadioLF.js +0 -2
  176. package/dist/Form/TextArea/TextAreaApollo.d.ts +0 -3
  177. package/dist/Form/TextArea/TextAreaApollo.js +0 -8
  178. package/dist/Form/TextArea/TextAreaCommon.d.ts +0 -17
  179. package/dist/Form/TextArea/TextAreaCommon.js +0 -14
  180. package/dist/Form/TextArea/TextAreaLF.d.ts +0 -3
  181. package/dist/Form/TextArea/TextAreaLF.js +0 -8
  182. package/dist/Grid/DebugGridApollo.d.ts +0 -2
  183. package/dist/Grid/DebugGridApollo.js +0 -4
  184. package/dist/Grid/DebugGridCommon.d.ts +0 -11
  185. package/dist/Grid/DebugGridCommon.js +0 -10
  186. package/dist/Grid/DebugGridLF.d.ts +0 -2
  187. package/dist/Grid/DebugGridLF.js +0 -4
  188. package/dist/Heading/HeadingApollo.d.ts +0 -4
  189. package/dist/Heading/HeadingApollo.js +0 -5
  190. package/dist/Heading/HeadingCommon.d.ts +0 -15
  191. package/dist/Heading/HeadingCommon.js +0 -8
  192. package/dist/Heading/HeadingLF.d.ts +0 -4
  193. package/dist/Heading/HeadingLF.js +0 -5
  194. package/dist/Heading/HeadingWithSubheadings.d.ts +0 -10
  195. package/dist/Heading/HeadingWithSubheadings.js +0 -2
  196. package/dist/Heading/types.d.ts +0 -6
  197. package/dist/Heading/types.js +0 -1
  198. package/dist/Icon/IconApollo.d.ts +0 -2
  199. package/dist/Icon/IconApollo.js +0 -2
  200. package/dist/Icon/IconCommon.d.ts +0 -21
  201. package/dist/Icon/IconCommon.js +0 -28
  202. package/dist/Icon/IconLF.d.ts +0 -2
  203. package/dist/Icon/IconLF.js +0 -2
  204. package/dist/ItemTabBar/ItemTabBarApollo.d.ts +0 -2
  205. package/dist/ItemTabBar/ItemTabBarApollo.js +0 -2
  206. package/dist/ItemTabBar/ItemTabBarCommon.d.ts +0 -6
  207. package/dist/ItemTabBar/ItemTabBarCommon.js +0 -8
  208. package/dist/ItemTabBar/ItemTabBarLF.d.ts +0 -2
  209. package/dist/ItemTabBar/ItemTabBarLF.js +0 -2
  210. package/dist/Layout/Footer/DynamicIcons.d.ts +0 -4
  211. package/dist/Layout/Footer/DynamicIcons.js +0 -20
  212. package/dist/Layout/Footer/FooterApollo.d.ts +0 -2
  213. package/dist/Layout/Footer/FooterApollo.js +0 -2
  214. package/dist/Layout/Footer/FooterCommon.d.ts +0 -10
  215. package/dist/Layout/Footer/FooterCommon.js +0 -14
  216. package/dist/Layout/Footer/FooterLF.d.ts +0 -2
  217. package/dist/Layout/Footer/FooterLF.js +0 -2
  218. package/dist/Layout/Footer/MenuIcons.d.ts +0 -9
  219. package/dist/Layout/Footer/MenuIcons.js +0 -8
  220. package/dist/Layout/Footer/MenuLink.d.ts +0 -11
  221. package/dist/Layout/Footer/MenuLink.js +0 -11
  222. package/dist/Link/LinkApollo.d.ts +0 -2
  223. package/dist/Link/LinkApollo.js +0 -2
  224. package/dist/Link/LinkCommon.d.ts +0 -17
  225. package/dist/Link/LinkCommon.js +0 -20
  226. package/dist/Link/LinkLF.d.ts +0 -2
  227. package/dist/Link/LinkLF.js +0 -2
  228. package/dist/List/ClickItem/ClickItemApollo.d.ts +0 -4
  229. package/dist/List/ClickItem/ClickItemApollo.js +0 -8
  230. package/dist/List/ClickItem/ClickItemCommon.d.ts +0 -15
  231. package/dist/List/ClickItem/ClickItemCommon.js +0 -31
  232. package/dist/List/ClickItem/ClickItemLF.d.ts +0 -4
  233. package/dist/List/ClickItem/ClickItemLF.js +0 -8
  234. package/dist/List/ClickItem/ClickItemWrapper.d.ts +0 -6
  235. package/dist/List/ClickItem/ClickItemWrapper.js +0 -7
  236. package/dist/List/ClickItem/components/ClickItemContentApollo.d.ts +0 -2
  237. package/dist/List/ClickItem/components/ClickItemContentApollo.js +0 -4
  238. package/dist/List/ClickItem/components/ClickItemContentCommon.d.ts +0 -14
  239. package/dist/List/ClickItem/components/ClickItemContentCommon.js +0 -4
  240. package/dist/List/ClickItem/components/ClickItemContentLF.d.ts +0 -2
  241. package/dist/List/ClickItem/components/ClickItemContentLF.js +0 -4
  242. package/dist/List/ClickItem/components/ClickItemPrefixApollo.d.ts +0 -2
  243. package/dist/List/ClickItem/components/ClickItemPrefixApollo.js +0 -4
  244. package/dist/List/ClickItem/components/ClickItemPrefixCommon.d.ts +0 -14
  245. package/dist/List/ClickItem/components/ClickItemPrefixCommon.js +0 -11
  246. package/dist/List/ClickItem/components/ClickItemPrefixLF.d.ts +0 -2
  247. package/dist/List/ClickItem/components/ClickItemPrefixLF.js +0 -4
  248. package/dist/List/ClickItem/components/ClickItemSuffixApollo.d.ts +0 -2
  249. package/dist/List/ClickItem/components/ClickItemSuffixApollo.js +0 -6
  250. package/dist/List/ClickItem/components/ClickItemSuffixCommon.d.ts +0 -14
  251. package/dist/List/ClickItem/components/ClickItemSuffixCommon.js +0 -14
  252. package/dist/List/ClickItem/components/ClickItemSuffixLF.d.ts +0 -2
  253. package/dist/List/ClickItem/components/ClickItemSuffixLF.js +0 -6
  254. package/dist/List/ContentItemDuo/ContentItemDuoApollo.d.ts +0 -3
  255. package/dist/List/ContentItemDuo/ContentItemDuoApollo.js +0 -5
  256. package/dist/List/ContentItemDuo/ContentItemDuoCommon.d.ts +0 -16
  257. package/dist/List/ContentItemDuo/ContentItemDuoCommon.js +0 -13
  258. package/dist/List/ContentItemDuo/ContentItemDuoLF.d.ts +0 -3
  259. package/dist/List/ContentItemDuo/ContentItemDuoLF.js +0 -5
  260. package/dist/Message/Message.helpers.d.ts +0 -5
  261. package/dist/Message/Message.helpers.js +0 -7
  262. package/dist/Message/MessageApollo.d.ts +0 -5
  263. package/dist/Message/MessageApollo.js +0 -6
  264. package/dist/Message/MessageCommon.d.ts +0 -25
  265. package/dist/Message/MessageCommon.js +0 -14
  266. package/dist/Message/MessageLF.d.ts +0 -5
  267. package/dist/Message/MessageLF.js +0 -6
  268. package/dist/Message/constants.d.ts +0 -3
  269. package/dist/Message/constants.js +0 -19
  270. package/dist/Message/types.d.ts +0 -1
  271. package/dist/Message/types.js +0 -1
  272. package/dist/Modal/ModalApollo.d.ts +0 -8
  273. package/dist/Modal/ModalApollo.js +0 -13
  274. package/dist/Modal/ModalCommon.d.ts +0 -10
  275. package/dist/Modal/ModalCommon.js +0 -8
  276. package/dist/Modal/ModalLF.d.ts +0 -8
  277. package/dist/Modal/ModalLF.js +0 -13
  278. package/dist/Modal/components/ModalCore.d.ts +0 -6
  279. package/dist/Modal/components/ModalCore.js +0 -7
  280. package/dist/Modal/components/ModalCoreBody.d.ts +0 -2
  281. package/dist/Modal/components/ModalCoreBody.js +0 -14
  282. package/dist/Modal/components/ModalCoreFooterApollo.d.ts +0 -2
  283. package/dist/Modal/components/ModalCoreFooterApollo.js +0 -4
  284. package/dist/Modal/components/ModalCoreFooterCommon.d.ts +0 -10
  285. package/dist/Modal/components/ModalCoreFooterCommon.js +0 -10
  286. package/dist/Modal/components/ModalCoreFooterLF.d.ts +0 -2
  287. package/dist/Modal/components/ModalCoreFooterLF.js +0 -4
  288. package/dist/Modal/components/ModalCoreHeaderApollo.d.ts +0 -2
  289. package/dist/Modal/components/ModalCoreHeaderApollo.js +0 -5
  290. package/dist/Modal/components/ModalCoreHeaderCommon.d.ts +0 -13
  291. package/dist/Modal/components/ModalCoreHeaderCommon.js +0 -4
  292. package/dist/Modal/components/ModalCoreHeaderLF.d.ts +0 -2
  293. package/dist/Modal/components/ModalCoreHeaderLF.js +0 -5
  294. package/dist/Modal/types.d.ts +0 -12
  295. package/dist/Modal/types.js +0 -1
  296. package/dist/Pagination/ItemPagination/ItemPaginationApollo.d.ts +0 -3
  297. package/dist/Pagination/ItemPagination/ItemPaginationApollo.js +0 -3
  298. package/dist/Pagination/ItemPagination/ItemPaginationCommon.d.ts +0 -10
  299. package/dist/Pagination/ItemPagination/ItemPaginationCommon.js +0 -11
  300. package/dist/Pagination/ItemPagination/ItemPaginationLF.d.ts +0 -3
  301. package/dist/Pagination/ItemPagination/ItemPaginationLF.js +0 -3
  302. package/dist/Pagination/Pagination.helper.d.ts +0 -9
  303. package/dist/Pagination/Pagination.helper.js +0 -34
  304. package/dist/Pagination/PaginationApollo.d.ts +0 -4
  305. package/dist/Pagination/PaginationApollo.js +0 -5
  306. package/dist/Pagination/PaginationCommon.d.ts +0 -14
  307. package/dist/Pagination/PaginationCommon.js +0 -20
  308. package/dist/Pagination/PaginationLF.d.ts +0 -4
  309. package/dist/Pagination/PaginationLF.js +0 -5
  310. package/dist/ProgressBar/ProgressBarApollo.d.ts +0 -2
  311. package/dist/ProgressBar/ProgressBarApollo.js +0 -2
  312. package/dist/ProgressBar/ProgressBarCommon.d.ts +0 -9
  313. package/dist/ProgressBar/ProgressBarCommon.js +0 -8
  314. package/dist/ProgressBar/ProgressBarLF.d.ts +0 -2
  315. package/dist/ProgressBar/ProgressBarLF.js +0 -2
  316. package/dist/ProgressBarGroup/ProgressBarGroupApollo.d.ts +0 -3
  317. package/dist/ProgressBarGroup/ProgressBarGroupApollo.js +0 -5
  318. package/dist/ProgressBarGroup/ProgressBarGroupCommon.d.ts +0 -18
  319. package/dist/ProgressBarGroup/ProgressBarGroupCommon.js +0 -9
  320. package/dist/ProgressBarGroup/ProgressBarGroupLF.d.ts +0 -3
  321. package/dist/ProgressBarGroup/ProgressBarGroupLF.js +0 -5
  322. package/dist/ProgressBarGroup/useSequentialProgress.d.ts +0 -20
  323. package/dist/ProgressBarGroup/useSequentialProgress.js +0 -80
  324. package/dist/Spinner/SpinnerApollo.d.ts +0 -2
  325. package/dist/Spinner/SpinnerApollo.js +0 -2
  326. package/dist/Spinner/SpinnerCommon.d.ts +0 -17
  327. package/dist/Spinner/SpinnerCommon.js +0 -19
  328. package/dist/Spinner/SpinnerLF.d.ts +0 -2
  329. package/dist/Spinner/SpinnerLF.js +0 -2
  330. package/dist/Stepper/StepperApollo.d.ts +0 -3
  331. package/dist/Stepper/StepperApollo.js +0 -5
  332. package/dist/Stepper/StepperCommon.d.ts +0 -18
  333. package/dist/Stepper/StepperCommon.js +0 -8
  334. package/dist/Stepper/StepperLF.d.ts +0 -3
  335. package/dist/Stepper/StepperLF.js +0 -5
  336. package/dist/Svg/Svg.d.ts +0 -11
  337. package/dist/Svg/Svg.js +0 -54
  338. package/dist/Svg/svgInjector.d.ts +0 -12
  339. package/dist/Svg/svgInjector.js +0 -31
  340. package/dist/TabBar/TabBarApollo.d.ts +0 -4
  341. package/dist/TabBar/TabBarApollo.js +0 -6
  342. package/dist/TabBar/TabBarCommon.d.ts +0 -19
  343. package/dist/TabBar/TabBarCommon.js +0 -48
  344. package/dist/TabBar/TabBarLF.d.ts +0 -4
  345. package/dist/TabBar/TabBarLF.js +0 -6
  346. package/dist/Tag/TagApollo.d.ts +0 -2
  347. package/dist/Tag/TagApollo.js +0 -2
  348. package/dist/Tag/TagCommon.d.ts +0 -13
  349. package/dist/Tag/TagCommon.js +0 -14
  350. package/dist/Tag/TagLF.d.ts +0 -2
  351. package/dist/Tag/TagLF.js +0 -2
  352. package/dist/TimelineVertical/TimelineVerticalApollo.d.ts +0 -4
  353. package/dist/TimelineVertical/TimelineVerticalApollo.js +0 -5
  354. package/dist/TimelineVertical/TimelineVerticalCommon.d.ts +0 -7
  355. package/dist/TimelineVertical/TimelineVerticalCommon.js +0 -3
  356. package/dist/TimelineVertical/TimelineVerticalLF.d.ts +0 -4
  357. package/dist/TimelineVertical/TimelineVerticalLF.js +0 -5
  358. package/dist/TimelineVertical/types.d.ts +0 -5
  359. package/dist/TimelineVertical/types.js +0 -1
  360. package/dist/Toggle/ToggleApollo.d.ts +0 -2
  361. package/dist/Toggle/ToggleApollo.js +0 -2
  362. package/dist/Toggle/ToggleCommon.d.ts +0 -3
  363. package/dist/Toggle/ToggleCommon.js +0 -9
  364. package/dist/Toggle/ToggleLF.d.ts +0 -2
  365. package/dist/Toggle/ToggleLF.js +0 -2
  366. package/dist/index.d.ts +0 -56
  367. package/dist/index.js +0 -55
  368. package/dist/indexLF.d.ts +0 -60
  369. package/dist/indexLF.js +0 -59
  370. package/dist/utilities/constants.d.ts +0 -6
  371. package/dist/utilities/constants.js +0 -6
  372. package/dist/utilities/generateId.d.ts +0 -1
  373. package/dist/utilities/generateId.js +0 -10
  374. package/dist/utilities/getClassName.d.ts +0 -20
  375. package/dist/utilities/getClassName.js +0 -24
  376. package/dist/utilities/getComponentClassName.d.ts +0 -4
  377. package/dist/utilities/getComponentClassName.js +0 -30
  378. package/dist/utilities/hook/useHasScroll.d.ts +0 -6
  379. package/dist/utilities/hook/useHasScroll.js +0 -30
  380. package/dist/utilities/hook/useIsSmallScreen.d.ts +0 -1
  381. package/dist/utilities/hook/useIsSmallScreen.js +0 -14
  382. package/dist/utilities/types/PolymorphicComponent.d.ts +0 -8
  383. package/dist/utilities/types/PolymorphicComponent.js +0 -1
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/ItemLabel/ItemLabelApollo.css";
3
- import { Button } from "../../Button/ButtonApollo";
4
- import { ItemLabelCommon } from "./ItemLabelCommon";
5
- export const ItemLabel = (props) => (_jsx(ItemLabelCommon, { ...props, ButtonComponent: Button }));
@@ -1,103 +0,0 @@
1
- import { type ComponentProps, type ComponentType, type MouseEventHandler, type ReactNode } from "react";
2
- import type { ButtonProps } from "../../Button/ButtonCommon";
3
- export type ItemLabelProps = ComponentProps<"label"> & {
4
- /**
5
- * Label text content
6
- * @deprecated use `children` instead.
7
- */
8
- label?: ReactNode;
9
- /**
10
- * Additional description text that enriches the label.
11
- * @example "Phone bill, EDF receipt, etc."
12
- */
13
- description?: ReactNode;
14
- /**
15
- * Shows a visual asterisk (*) indicator next to the label.
16
- */
17
- required?: boolean;
18
- /**
19
- * ID of the associated input element
20
- * @deprecated use `htmlFor` instead.
21
- */
22
- inputId?: string;
23
- /**
24
- * Label content for the side action button.
25
- * When provided, renders a secondary button next to the main label.
26
- */
27
- sideButtonLabel?: ReactNode;
28
- /**
29
- * Click handler for the side button
30
- */
31
- onSideButtonClick?: MouseEventHandler<HTMLButtonElement>;
32
- /**
33
- * Additional props to pass to the side button component.
34
- */
35
- sideButtonProps?: Omit<Partial<ButtonProps>, "children" | "onClick" | "variant" | "className">;
36
- /**
37
- * Label content for the more button
38
- * @deprecated use `moreButtonLabel` instead.
39
- */
40
- buttonLabel?: ReactNode;
41
- /**
42
- * Click handler for the info button
43
- * @deprecated use `onMoreButtonClick` instead.
44
- */
45
- onButtonClick?: MouseEventHandler<HTMLButtonElement>;
46
- /**
47
- * Label content for the more button
48
- * When provided, renders an more button with an info icon.
49
- */
50
- moreButtonLabel?: ReactNode;
51
- /**
52
- * Click handler for the more button
53
- */
54
- onMoreButtonClick?: MouseEventHandler<HTMLButtonElement>;
55
- /**
56
- * Additional props to pass to the more button component.
57
- */
58
- moreButtonProps?: Omit<Partial<ButtonProps>, "children" | "onClick" | "variant" | "className">;
59
- };
60
- export type ItemLabelCommonProps = ItemLabelProps & {
61
- ButtonComponent: ComponentType<ButtonProps>;
62
- };
63
- /**
64
- * A comprehensive label component for form items with support for descriptions and action buttons.
65
- *
66
- * This component provides an accessible label that can be enhanced with:
67
- * - Visual required field indicator (asterisk)
68
- * - Optional description text
69
- * - Optional side action button
70
- * - Optional more button with icon
71
- *
72
- * The component ensures proper accessibility by:
73
- * - Associating the label with form controls via htmlFor
74
- * - Providing appropriate ARIA attributes for screen readers
75
- * - Supporting keyboard navigation for interactive elements
76
- *
77
- * @example Basic usage
78
- * ```tsx
79
- * <ItemLabelCommon
80
- * htmlFor="email-input"
81
- * required
82
- * ButtonComponent={Button}
83
- * >
84
- * Email Address
85
- * </ItemLabelCommon>
86
- * ```
87
- *
88
- * @example With description and action buttons
89
- * ```tsx
90
- * <ItemLabelCommon
91
- * htmlFor="document-upload"
92
- * description="Accepted: PDF, JPG, PNG (max 5MB)"
93
- * sideButtonLabel="Browse"
94
- * onSideButtonClick={handleBrowse}
95
- * moreButton="Help"
96
- * onMoreButtonClick={handleShowHelp}
97
- * ButtonComponent={Button}
98
- * >
99
- * Proof of residence
100
- * </ItemLabelCommon>
101
- * ```
102
- */
103
- export declare const ItemLabelCommon: ({ label, children, description, required, inputId, htmlFor, className, style, "aria-describedby": ariaDescribedby, sideButtonLabel, onSideButtonClick, sideButtonProps, buttonLabel, onButtonClick, moreButtonLabel, onMoreButtonClick, ButtonComponent, moreButtonProps, ...props }: ItemLabelCommonProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,55 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import infoIcon from "@material-symbols/svg-400/outlined/info.svg";
3
- import { useId, } from "react";
4
- import { Svg } from "../../Svg/Svg";
5
- /**
6
- * A comprehensive label component for form items with support for descriptions and action buttons.
7
- *
8
- * This component provides an accessible label that can be enhanced with:
9
- * - Visual required field indicator (asterisk)
10
- * - Optional description text
11
- * - Optional side action button
12
- * - Optional more button with icon
13
- *
14
- * The component ensures proper accessibility by:
15
- * - Associating the label with form controls via htmlFor
16
- * - Providing appropriate ARIA attributes for screen readers
17
- * - Supporting keyboard navigation for interactive elements
18
- *
19
- * @example Basic usage
20
- * ```tsx
21
- * <ItemLabelCommon
22
- * htmlFor="email-input"
23
- * required
24
- * ButtonComponent={Button}
25
- * >
26
- * Email Address
27
- * </ItemLabelCommon>
28
- * ```
29
- *
30
- * @example With description and action buttons
31
- * ```tsx
32
- * <ItemLabelCommon
33
- * htmlFor="document-upload"
34
- * description="Accepted: PDF, JPG, PNG (max 5MB)"
35
- * sideButtonLabel="Browse"
36
- * onSideButtonClick={handleBrowse}
37
- * moreButton="Help"
38
- * onMoreButtonClick={handleShowHelp}
39
- * ButtonComponent={Button}
40
- * >
41
- * Proof of residence
42
- * </ItemLabelCommon>
43
- * ```
44
- */
45
- export const ItemLabelCommon = ({ label, children, description, required, inputId, htmlFor, className, style, "aria-describedby": ariaDescribedby, sideButtonLabel, onSideButtonClick, sideButtonProps, buttonLabel, onButtonClick, moreButtonLabel, onMoreButtonClick, ButtonComponent, moreButtonProps, ...props }) => {
46
- const idDescription = useId();
47
- const contentLabel = children ?? label;
48
- const describedByIds = [description ? idDescription : null, ariaDescribedby]
49
- .filter(Boolean)
50
- .join(" ");
51
- if (!contentLabel) {
52
- return null;
53
- }
54
- return (_jsxs("div", { className: ["af-item-label", className].filter(Boolean).join(" "), style: style, children: [_jsxs("label", { htmlFor: htmlFor || inputId, className: "af-item-label__label", "aria-describedby": describedByIds || undefined, ...props, children: [contentLabel, required ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), sideButtonLabel ? (_jsx(ButtonComponent, { ...sideButtonProps, variant: "ghost", onClick: onSideButtonClick, className: "af-item-label__sidebutton", children: sideButtonLabel })) : null, description ? (_jsx("span", { id: idDescription, className: "af-item-label__description", children: description })) : null, moreButtonLabel || buttonLabel ? (_jsx(ButtonComponent, { iconLeft: _jsx(Svg, { src: infoIcon, role: "presentation" }), ...moreButtonProps, variant: "ghost", className: "af-item-label__more", onClick: onMoreButtonClick || onButtonClick, children: moreButtonLabel || buttonLabel })) : null] }));
55
- };
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/ItemLabel/ItemLabelLF.css";
2
- import { type ItemLabelProps } from "./ItemLabelCommon";
3
- export declare const ItemLabel: (props: ItemLabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/ItemLabel/ItemLabelLF.css";
3
- import { Button } from "../../Button/ButtonLF";
4
- import { ItemLabelCommon } from "./ItemLabelCommon";
5
- export const ItemLabel = (props) => (_jsx(ItemLabelCommon, { ...props, ButtonComponent: Button }));
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/ItemMessage/ItemMessageApollo.css";
2
- export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./ItemMessageCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/ItemMessage/ItemMessageApollo.css";
2
- export { ItemMessage, itemMessageVariants, } from "./ItemMessageCommon";
@@ -1,13 +0,0 @@
1
- import type { ReactNode } from "react";
2
- export declare const itemMessageVariants: {
3
- readonly error: "error";
4
- readonly success: "success";
5
- readonly warning: "warning";
6
- };
7
- export type ItemMessageVariants = keyof typeof itemMessageVariants;
8
- export type ItemMessageProps = {
9
- message?: ReactNode;
10
- id?: string;
11
- messageType?: ItemMessageVariants;
12
- };
13
- export declare const ItemMessage: ({ message, id, messageType, }: ItemMessageProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import successIcon from "@material-symbols/svg-400/outlined/check_circle-fill.svg";
3
- import errorIcon from "@material-symbols/svg-400/outlined/error-fill.svg";
4
- import warningIcon from "@material-symbols/svg-400/outlined/warning-fill.svg";
5
- import { Svg } from "../../Svg/Svg";
6
- export const itemMessageVariants = {
7
- error: "error",
8
- success: "success",
9
- warning: "warning",
10
- };
11
- export const ItemMessage = ({ message, id, messageType = "error", }) => {
12
- if (!message) {
13
- return null;
14
- }
15
- const getIcon = () => {
16
- if (messageType === "success")
17
- return successIcon;
18
- if (messageType === "warning")
19
- return warningIcon;
20
- return errorIcon;
21
- };
22
- return (_jsxs("small", { id: id, className: `af-item-message af-item-message--${messageType}`, role: messageType === "success" ? undefined : "alert", "aria-live": "assertive", children: [_jsx(Svg, { src: getIcon(), className: "af-item-message__icon", "aria-hidden": "true" }), _jsx("span", { className: "af-item-message__message", children: message })] }));
23
- };
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/ItemMessage/ItemMessageLF.css";
2
- export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./ItemMessageCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/ItemMessage/ItemMessageLF.css";
2
- export { ItemMessage, itemMessageVariants, } from "./ItemMessageCommon";
@@ -1,3 +0,0 @@
1
- import { type CardRadioProps } from "./CardRadioCommon";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/CardRadio/CardRadioApollo.css";
3
- export declare const CardRadio: (props: CardRadioProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { CardRadioOption } from "../CardRadioOption/CardRadioOptionApollo";
3
- import { CardRadioCommon } from "./CardRadioCommon";
4
- import { ItemMessage } from "../../ItemMessage/ItemMessageApollo";
5
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/CardRadio/CardRadioApollo.css";
6
- export const CardRadio = (props) => (_jsx(CardRadioCommon, { ...props, CardRadioOptionComponent: CardRadioOption, ItemMessageComponent: ItemMessage }));
@@ -1,39 +0,0 @@
1
- import { type ComponentProps, type ComponentType, type PropsWithChildren, type ReactNode } from "react";
2
- import { type CardRadioOptionProps } from "../CardRadioOption/CardRadioOptionCommon";
3
- import { ItemMessage, type ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
4
- type RadioOption = Omit<CardRadioOptionProps, "name" | "type" | "isInvalid">;
5
- export type CardRadioProps = Omit<CardRadioOptionProps, "value" | "label" | "type" | "isInvalid" | "icon" | "src" | "basePictureProps" | "description" | "subtitle" | "children"> & {
6
- type?: "vertical" | "horizontal";
7
- /**
8
- * @deprecated Use `label` instead.
9
- */
10
- labelGroup?: string;
11
- /**
12
- * @deprecated Use `description` instead.
13
- */
14
- descriptionGroup?: string;
15
- label: ReactNode;
16
- description?: ReactNode;
17
- /**
18
- * @deprecated Use `required` instead.
19
- */
20
- isRequired?: boolean;
21
- /**
22
- * @deprecated This prop is deprecated. To check an option, use the `checked` property in each item of the `options` array.
23
- */
24
- value?: number | string;
25
- options: RadioOption[];
26
- /**
27
- * @deprecated Use `message` and messageType instead.
28
- */
29
- error?: ReactNode;
30
- } & PropsWithChildren & Partial<ItemMessageProps>;
31
- export type CardRadioCommonProps = CardRadioProps & {
32
- CardRadioOptionComponent: ComponentType<CardRadioOptionProps>;
33
- ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
34
- };
35
- declare const CardRadioCommon: {
36
- ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type, error, message, messageType, name, value, id, CardRadioOptionComponent, ItemMessageComponent, ...inputProps }: CardRadioCommonProps): import("react/jsx-runtime").JSX.Element;
37
- displayName: string;
38
- };
39
- export { CardRadioCommon };
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useId, } from "react";
3
- const CardRadioCommon = ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type = "vertical", error, message, messageType = "error", name, value, id, CardRadioOptionComponent, ItemMessageComponent, ...inputProps }) => {
4
- const generatedId = useId();
5
- const cardRadioId = id ?? generatedId;
6
- const messageId = `${cardRadioId}-error`;
7
- const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
8
- return (_jsxs("fieldset", { className: ["af-card-radio", className].filter(Boolean).join(" "), role: "radiogroup", "aria-required": Boolean(required) || undefined, "aria-invalid": hasError || undefined, "aria-errormessage": hasError ? messageId : undefined, id: cardRadioId, children: [_jsxs("legend", { className: "af-card-radio__legend", children: [_jsxs("p", { className: "af-card-radio__label", children: [label, labelGroup, required || isRequired ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), description || descriptionGroup ? (_jsxs("p", { className: "af-card-radio__description", children: [description, descriptionGroup] })) : null] }), _jsx("div", { className: [
9
- "af-card-radio__options",
10
- `af-card-radio__options--${type}`,
11
- ].join(" "), children: options.map((cardRadioItemProps) => (_jsx(CardRadioOptionComponent, { id: `${cardRadioId}-${cardRadioItemProps.value}`, checked: value !== undefined
12
- ? value === cardRadioItemProps.value
13
- : undefined, required: required, ...inputProps, ...cardRadioItemProps, type: type, isInvalid: hasError, name: name }, `${name ?? cardRadioId}-${cardRadioItemProps.label}`))) }), _jsx(ItemMessageComponent, { id: messageId, message: message || error, messageType: messageType })] }));
14
- };
15
- CardRadioCommon.displayName = "CardRadioCommon";
16
- export { CardRadioCommon };
@@ -1,3 +0,0 @@
1
- import { type CardRadioProps } from "./CardRadioCommon";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/CardRadio/CardRadioLF.css";
3
- export declare const CardRadio: (props: CardRadioProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { CardRadioOption } from "../CardRadioOption/CardRadioOptionLF";
3
- import { CardRadioCommon } from "./CardRadioCommon";
4
- import { ItemMessage } from "../../ItemMessage/ItemMessageLF";
5
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/CardRadio/CardRadioLF.css";
6
- export const CardRadio = (props) => (_jsx(CardRadioCommon, { ...props, CardRadioOptionComponent: CardRadioOption, ItemMessageComponent: ItemMessage }));
@@ -1,3 +0,0 @@
1
- import { type CardRadioOptionProps } from "./CardRadioOptionCommon";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/CardRadioOption/CardRadioOptionApollo.css";
3
- export declare const CardRadioOption: (props: CardRadioOptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon } from "../../../Icon/IconApollo";
3
- import { Radio } from "../Radio/RadioApollo";
4
- import { CardRadioOptionCommon, } from "./CardRadioOptionCommon";
5
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/CardRadioOption/CardRadioOptionApollo.css";
6
- export const CardRadioOption = (props) => (_jsx(CardRadioOptionCommon, { ...props, RadioComponent: Radio, IconComponent: Icon }));
@@ -1,50 +0,0 @@
1
- import { type ComponentProps, type ComponentType, type ReactNode } from "react";
2
- import type { Icon as IconCommon } from "../../../Icon/IconCommon";
3
- import { BasePicture } from "../../../BasePicture/BasePicture";
4
- import type { Radio } from "../Radio/RadioCommon";
5
- type BaseCardRadioOptionProps = Omit<ComponentProps<typeof Radio>, "size"> & {
6
- label: ReactNode;
7
- description?: ReactNode;
8
- subtitle?: ReactNode;
9
- };
10
- export type CardRadioOptionProps = (BaseCardRadioOptionProps & {
11
- type?: "vertical" | "horizontal";
12
- icon?: ComponentProps<typeof IconCommon>["src"];
13
- src?: undefined;
14
- basePictureProps?: undefined;
15
- }) | (BaseCardRadioOptionProps & {
16
- type: "horizontal";
17
- src?: ComponentProps<typeof BasePicture>["src"];
18
- basePictureProps?: Omit<ComponentProps<typeof BasePicture>, "src">;
19
- icon?: undefined;
20
- });
21
- export type CardRadioOptionCommonProps = CardRadioOptionProps & {
22
- RadioComponent: ComponentType<ComponentProps<typeof Radio>>;
23
- IconComponent: ComponentType<ComponentProps<typeof IconCommon>>;
24
- };
25
- export declare const CardRadioOptionCommon: import("react").ForwardRefExoticComponent<(Omit<Omit<Omit<import("../Radio/RadioCommon").RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "size"> & {
26
- label: ReactNode;
27
- description?: ReactNode;
28
- subtitle?: ReactNode;
29
- } & {
30
- type?: "vertical" | "horizontal";
31
- icon?: ComponentProps<typeof IconCommon>["src"];
32
- src?: undefined;
33
- basePictureProps?: undefined;
34
- } & {
35
- RadioComponent: ComponentType<ComponentProps<typeof Radio>>;
36
- IconComponent: ComponentType<ComponentProps<typeof IconCommon>>;
37
- }, "ref"> | Omit<Omit<Omit<import("../Radio/RadioCommon").RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "size"> & {
38
- label: ReactNode;
39
- description?: ReactNode;
40
- subtitle?: ReactNode;
41
- } & {
42
- type: "horizontal";
43
- src?: ComponentProps<typeof BasePicture>["src"];
44
- basePictureProps?: Omit<ComponentProps<typeof BasePicture>, "src">;
45
- icon?: undefined;
46
- } & {
47
- RadioComponent: ComponentType<ComponentProps<typeof Radio>>;
48
- IconComponent: ComponentType<ComponentProps<typeof IconCommon>>;
49
- }, "ref">) & import("react").RefAttributes<HTMLInputElement>>;
50
- export {};
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { BasePicture } from "../../../BasePicture/BasePicture";
4
- export const CardRadioOptionCommon = forwardRef(({ label, type, description, subtitle, icon, src, basePictureProps, isInvalid, className, RadioComponent, IconComponent, ...inputProps }, ref) => (_jsxs("label", { className: [
5
- "af-card-radio-option",
6
- isInvalid && "af-card-radio-option--invalid",
7
- type === "horizontal" && "af-card-radio-option--horizontal",
8
- className,
9
- ]
10
- .filter(Boolean)
11
- .join(" "), children: [icon ? _jsx(IconComponent, { src: icon, role: "presentation" }) : null, type === "horizontal" && src ? (_jsx(BasePicture, { src: src, ...basePictureProps })) : null, _jsxs("div", { className: "af-card-radio-option__content", children: [_jsx("p", { className: "af-card-radio-option__label", children: label }), Boolean(description) && (_jsx("p", { className: "af-card-radio-option__description", children: description })), Boolean(subtitle) && (_jsx("p", { className: "af-card-radio-option__subtitle", children: subtitle }))] }), _jsx(RadioComponent, { ...inputProps, isInvalid: isInvalid, ref: ref })] })));
12
- CardRadioOptionCommon.displayName = "CardRadioOptionCommon";
@@ -1,3 +0,0 @@
1
- import { type CardRadioOptionProps } from "./CardRadioOptionCommon";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/CardRadioOption/CardRadioOptionLF.css";
3
- export declare const CardRadioOption: (props: CardRadioOptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon } from "../../../Icon/IconLF";
3
- import { Radio } from "../Radio/RadioLF";
4
- import { CardRadioOptionCommon, } from "./CardRadioOptionCommon";
5
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/CardRadioOption/CardRadioOptionLF.css";
6
- export const CardRadioOption = (props) => (_jsx(CardRadioOptionCommon, { ...props, RadioComponent: Radio, IconComponent: Icon }));
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/Radio/RadioApollo.css";
2
- export { Radio } from "./RadioCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/Radio/RadioApollo.css";
2
- export { Radio } from "./RadioCommon";
@@ -1,5 +0,0 @@
1
- import { type ComponentProps } from "react";
2
- export type RadioProps = Omit<ComponentProps<"input">, "disabled" | "type"> & {
3
- isInvalid?: boolean;
4
- };
5
- export declare const Radio: import("react").ForwardRefExoticComponent<Omit<RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- export const Radio = forwardRef(({ className, isInvalid, ...props }, ref) => (_jsx("input", { ...props, className: ["af-radio", isInvalid && "af-radio--invalid", className]
4
- .filter(Boolean)
5
- .join(" "), type: "radio", ref: ref })));
6
- Radio.displayName = "Radio";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/Radio/RadioLF.css";
2
- export { Radio } from "./RadioCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/Radio/Radio/RadioLF.css";
2
- export { Radio } from "./RadioCommon";
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/TextArea/TextAreaApollo.css";
2
- import { type TextAreaProps } from "./TextAreaCommon";
3
- export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/TextArea/TextAreaApollo.css";
3
- import { forwardRef } from "react";
4
- import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
5
- import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
6
- import { TextAreaCommon } from "./TextAreaCommon";
7
- export const TextArea = forwardRef((props, ref) => (_jsx(TextAreaCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
8
- TextArea.displayName = "TextArea";
@@ -1,17 +0,0 @@
1
- import { type ComponentProps, ComponentPropsWithRef, type ComponentType, MouseEventHandler } from "react";
2
- import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
3
- import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
4
- export type TextAreaProps = ComponentPropsWithRef<"textarea"> & {
5
- helper?: string;
6
- /**
7
- * @deprecated Use `message` and messageType instead.
8
- */
9
- error?: string;
10
- onButtonClick?: MouseEventHandler<HTMLButtonElement>;
11
- } & Partial<ItemMessageProps & ItemLabelProps>;
12
- type TextAreaCommonProps = TextAreaProps & {
13
- ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
14
- ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
15
- };
16
- declare const TextAreaCommon: import("react").ForwardRefExoticComponent<Omit<TextAreaCommonProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
17
- export { TextAreaCommon };
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useId, } from "react";
3
- const TextAreaCommon = forwardRef(({ id, className, label, description, helper, error, message, messageType, buttonLabel, onButtonClick, required, sideButtonLabel, ItemLabelComponent, ItemMessageComponent, onSideButtonClick, placeholder = " ", ...inputProps }, inputRef) => {
4
- const generatedId = useId();
5
- const inputId = id ?? generatedId;
6
- const helperId = `${inputId}-helper`;
7
- const messageId = `${inputId}-error`;
8
- const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
9
- return (_jsxs("div", { className: ["af-form__input-container", className]
10
- .filter(Boolean)
11
- .join(" "), children: [_jsx(ItemLabelComponent, { label: label, description: description, buttonLabel: buttonLabel, onButtonClick: onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, inputId: inputId }), _jsx("textarea", { id: inputId, className: "af-form__textarea", ref: inputRef, "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 })] }));
12
- });
13
- TextAreaCommon.displayName = "TextArea";
14
- export { TextAreaCommon };
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/TextArea/TextAreaLF.css";
2
- import { type TextAreaProps } from "./TextAreaCommon";
3
- export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/TextArea/TextAreaLF.css";
3
- import { forwardRef } from "react";
4
- import { ItemLabel } from "../ItemLabel/ItemLabelLF";
5
- import { ItemMessage } from "../ItemMessage/ItemMessageLF";
6
- import { TextAreaCommon } from "./TextAreaCommon";
7
- export const TextArea = forwardRef((props, ref) => (_jsx(TextAreaCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
8
- TextArea.displayName = "TextArea";
@@ -1,2 +0,0 @@
1
- import { type DebugGridProps } from "./DebugGridCommon";
2
- export declare const DebugGrid: <P extends object = object>({ ...props }: DebugGridProps<P>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { CardCheckboxOption } from "../Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo";
3
- import { DebugGridCommon } from "./DebugGridCommon";
4
- export const DebugGrid = ({ ...props }) => (_jsx(DebugGridCommon, { ...props, CardCheckboxOption: CardCheckboxOption }));
@@ -1,11 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Grid/DebugGrid.css";
2
- import type { ComponentType } from "react";
3
- import type { CardCheckboxOptionProps } from "../Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon";
4
- export type DebugGridProps<P = object> = P & {
5
- cols?: number;
6
- isCheckedByDefault?: boolean;
7
- };
8
- export type DebugGridCommonProps<P = object> = DebugGridProps<P> & {
9
- CardCheckboxOption: ComponentType<CardCheckboxOptionProps>;
10
- };
11
- export declare const DebugGridCommon: <P = object>({ cols, isCheckedByDefault, CardCheckboxOption, ...props }: DebugGridCommonProps<P>) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Grid/DebugGrid.css";
3
- export const DebugGridCommon = ({ cols = 12, isCheckedByDefault = false, CardCheckboxOption, ...props }) => {
4
- // The forceVisible prop is a hidden prop to force the component's visibility when building the storybook
5
- const forceVisible = props?.forceVisible || false;
6
- if (process.env.NODE_ENV === "production" && !forceVisible) {
7
- return null;
8
- }
9
- return (_jsxs(_Fragment, { children: [_jsx(CardCheckboxOption, { type: "horizontal", name: "debuggrid", label: "Grid", defaultChecked: isCheckedByDefault }), _jsx("div", { className: "debug-grid", role: "presentation", children: _jsx("div", { className: "grid", children: [...Array(cols).keys()].map((col) => (_jsx("div", { className: "cols" }, col))) }) })] }));
10
- };
@@ -1,2 +0,0 @@
1
- import { type DebugGridProps } from "./DebugGridCommon";
2
- export declare const DebugGrid: <P extends object = object>({ ...props }: DebugGridProps<P>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { CardCheckboxOption } from "../Form/Checkbox/CardCheckboxOption/CardCheckboxOptionLF";
3
- import { DebugGridCommon } from "./DebugGridCommon";
4
- export const DebugGrid = ({ ...props }) => (_jsx(DebugGridCommon, { ...props, CardCheckboxOption: CardCheckboxOption }));
@@ -1,4 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Heading/HeadingApollo.css";
2
- import { HeadingProps } from "./types";
3
- export type { HeadingLevel, HeadingProps } from "./types";
4
- export declare const Heading: ({ tag, tagProps, ...props }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Heading/HeadingApollo.css";
3
- import { DEFAULT_TAG_PROPS, HeadingCommon } from "./HeadingCommon";
4
- import { Tag } from "../Tag/TagApollo";
5
- export const Heading = ({ tag, tagProps = {}, ...props }) => (_jsx(HeadingCommon, { ...props, tag: tag ? (_jsx(Tag, { ...DEFAULT_TAG_PROPS, ...tagProps, children: tag })) : null }));
@@ -1,15 +0,0 @@
1
- import type { JSX, PropsWithChildren, ReactNode } from "react";
2
- import { type IconProps } from "../Icon/IconCommon";
3
- import { type TagProps } from "../Tag/TagCommon";
4
- import { type HeadingLevel } from "./types";
5
- export type HeadingCommonProps = PropsWithChildren<{
6
- level?: HeadingLevel;
7
- icon?: string;
8
- iconProps?: Omit<IconProps, "src">;
9
- tag?: ReactNode;
10
- firstSubtitle?: ReactNode;
11
- secondSubtitle?: ReactNode;
12
- className?: string;
13
- }> & JSX.IntrinsicElements["div"];
14
- export declare const DEFAULT_TAG_PROPS: TagProps;
15
- export declare const HeadingCommon: ({ children: title, className, firstSubtitle, secondSubtitle, level, icon, iconProps, tag, ...props }: HeadingCommonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import classNames from "classnames";
3
- import { Icon } from "../Icon/IconCommon";
4
- import { HeadingWithSubheadings } from "./HeadingWithSubheadings";
5
- export const DEFAULT_TAG_PROPS = {
6
- variant: "neutral",
7
- };
8
- export const HeadingCommon = ({ children: title, className, firstSubtitle, secondSubtitle, level = 1, icon, iconProps = {}, tag, ...props }) => (_jsxs("div", { className: classNames("af-heading", className), ...props, children: [tag && level < 3 ? _jsx("div", { className: "af-heading__label", children: tag }) : null, icon && level === 1 ? (_jsx(Icon, { src: icon, size: "L", hasBackground: true, variant: "secondary", ...iconProps, className: classNames("af-heading__icon", iconProps.className) })) : null, _jsx(HeadingWithSubheadings, { title: title, firstSubtitle: firstSubtitle, titleComponent: `h${level}`, secondSubtitle: secondSubtitle })] }));
@@ -1,4 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Heading/HeadingLF.css";
2
- import { HeadingProps } from "./types";
3
- export type { HeadingLevel, HeadingProps } from "./types";
4
- export declare const Heading: ({ tag, tagProps, ...props }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Heading/HeadingLF.css";
3
- import { DEFAULT_TAG_PROPS, HeadingCommon } from "./HeadingCommon";
4
- import { Tag } from "../Tag/TagLF";
5
- export const Heading = ({ tag, tagProps = {}, ...props }) => (_jsx(HeadingCommon, { ...props, tag: tag ? (_jsx(Tag, { ...DEFAULT_TAG_PROPS, ...tagProps, children: tag })) : null }));