@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/ProgressBarGroup/ProgressBarGroupLF.css";
3
- import { ProgressBar } from "../ProgressBar/ProgressBarLF";
4
- import { ProgressBarGroupCommon, } from "./ProgressBarGroupCommon";
5
- export const ProgressBarGroup = (props) => (_jsx(ProgressBarGroupCommon, { ...props, ProgressBarComponent: ProgressBar }));
@@ -1,20 +0,0 @@
1
- /**
2
- * useSequentialProgress
3
- *
4
- * A custom React hook to manage the animated progress values for a multi-step progress bar (stepper).
5
- *
6
- * This hook returns an array of numbers (between 0 and 1) representing the fill percentage of each progress bar step.
7
- * It animates the transition between steps, smoothly updating the progress values when the current step or percentage changes.
8
- *
9
- * @param stepPercentage - The completion percentage (between 0 and 1) of the current step.
10
- * @param currentStepIndex - The index (starting from 0) of the current step.
11
- * @param steps - The total number of steps in the progress bar.
12
- * @param duration - (Optional) Animation duration in milliseconds for each update (default: 750ms).
13
- *
14
- * @returns number[] - An array of progress values for each step (0 = empty, 1 = full, value between 0 and 1 = partial).
15
- *
16
- * Example usage:
17
- * const progressValues = useSequentialProgress(0.5, 1, 3);
18
- * // progressValues might be: [1, 0.5, 0]
19
- */
20
- export declare const useSequentialProgress: (stepPercentage: number, currentStepIndex: number, steps: number, duration?: number) => number[];
@@ -1,80 +0,0 @@
1
- import { useCallback, useEffect, useRef, useState } from "react";
2
- const getProgressValues = (currentStepIndex, stepPercentage, steps) => {
3
- const values = Array(steps).fill(0);
4
- for (let i = 0; i < steps; i++) {
5
- if (i < currentStepIndex) {
6
- values[i] = 1;
7
- }
8
- else if (i === currentStepIndex) {
9
- values[i] = stepPercentage;
10
- break;
11
- }
12
- }
13
- return values;
14
- };
15
- /**
16
- * useSequentialProgress
17
- *
18
- * A custom React hook to manage the animated progress values for a multi-step progress bar (stepper).
19
- *
20
- * This hook returns an array of numbers (between 0 and 1) representing the fill percentage of each progress bar step.
21
- * It animates the transition between steps, smoothly updating the progress values when the current step or percentage changes.
22
- *
23
- * @param stepPercentage - The completion percentage (between 0 and 1) of the current step.
24
- * @param currentStepIndex - The index (starting from 0) of the current step.
25
- * @param steps - The total number of steps in the progress bar.
26
- * @param duration - (Optional) Animation duration in milliseconds for each update (default: 750ms).
27
- *
28
- * @returns number[] - An array of progress values for each step (0 = empty, 1 = full, value between 0 and 1 = partial).
29
- *
30
- * Example usage:
31
- * const progressValues = useSequentialProgress(0.5, 1, 3);
32
- * // progressValues might be: [1, 0.5, 0]
33
- */
34
- export const useSequentialProgress = (stepPercentage, currentStepIndex, steps, duration = 750) => {
35
- const [progressValues, setProgressValues] = useState(getProgressValues(currentStepIndex, stepPercentage, steps));
36
- const currentAnimationStep = useRef(currentStepIndex + stepPercentage);
37
- const timeoutRef = useRef(null);
38
- const animate = useCallback(() => {
39
- const targetStep = currentStepIndex + stepPercentage;
40
- if (currentAnimationStep.current === targetStep) {
41
- return;
42
- }
43
- const diff = targetStep - currentAnimationStep.current;
44
- if (!Number.isInteger(currentAnimationStep.current) &&
45
- Math.floor(currentAnimationStep.current) !== currentStepIndex) {
46
- currentAnimationStep.current =
47
- diff > 0
48
- ? Math.ceil(currentAnimationStep.current)
49
- : Math.floor(currentAnimationStep.current);
50
- }
51
- else if (Math.abs(diff) > 1) {
52
- currentAnimationStep.current += Number(Math.sign(diff)) * 1;
53
- }
54
- else if (Math.abs(diff) > 0) {
55
- currentAnimationStep.current = targetStep;
56
- }
57
- setProgressValues(getProgressValues(Math.floor(currentAnimationStep.current), currentAnimationStep.current - Math.floor(currentAnimationStep.current), steps));
58
- timeoutRef.current = setTimeout(animate, duration);
59
- }, [currentStepIndex, duration, stepPercentage, steps]);
60
- // Reset the array and animation if the number of steps changes
61
- useEffect(() => {
62
- if (timeoutRef.current) {
63
- clearTimeout(timeoutRef.current);
64
- timeoutRef.current = null;
65
- }
66
- setProgressValues(getProgressValues(currentStepIndex, stepPercentage, steps));
67
- // eslint-disable-next-line react-hooks/exhaustive-deps
68
- }, [steps]);
69
- // Animate only when currentStepIndex or stepPercentage changes
70
- useEffect(() => {
71
- animate();
72
- return () => {
73
- if (timeoutRef.current) {
74
- clearTimeout(timeoutRef.current);
75
- }
76
- };
77
- // eslint-disable-next-line react-hooks/exhaustive-deps
78
- }, [stepPercentage, currentStepIndex]);
79
- return progressValues;
80
- };
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Spinner/SpinnerApollo.css";
2
- export { Spinner, spinnerVariants, type SpinnerVariants, } from "./SpinnerCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Spinner/SpinnerApollo.css";
2
- export { Spinner, spinnerVariants, } from "./SpinnerCommon";
@@ -1,17 +0,0 @@
1
- import { ComponentPropsWithoutRef } from "react";
2
- export declare const spinnerVariants: {
3
- readonly blue: "blue";
4
- readonly gray: "gray";
5
- readonly white: "white";
6
- };
7
- export type SpinnerVariants = keyof typeof spinnerVariants;
8
- export type SpinnerProps = {
9
- size?: 24 | 32 | 40;
10
- variant?: SpinnerVariants;
11
- text?: string;
12
- } & ComponentPropsWithoutRef<"div">;
13
- declare const Spinner: {
14
- ({ size, variant, text, className, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
15
- displayName: string;
16
- };
17
- export { Spinner };
@@ -1,19 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- export const spinnerVariants = {
3
- blue: "blue",
4
- gray: "gray",
5
- white: "white",
6
- };
7
- const DEFAULT_CLASSNAME = "af-spinner";
8
- const Spinner = ({ size = 40, variant = "blue", text = "Chargement en cours", className, ...props }) => (_jsx("div", { role: "alert", ...props, "aria-busy": true, "aria-label": text, "aria-live": "assertive", className: [
9
- DEFAULT_CLASSNAME,
10
- `${DEFAULT_CLASSNAME}--${variant}`,
11
- `${DEFAULT_CLASSNAME}--${size}`,
12
- className,
13
- ]
14
- .filter(Boolean)
15
- .join(" "), style: {
16
- "--spinner-size": size,
17
- } }));
18
- Spinner.displayName = "Spinner";
19
- export { Spinner };
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Spinner/SpinnerLF.css";
2
- export { Spinner, spinnerVariants, type SpinnerVariants, } from "./SpinnerCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Spinner/SpinnerLF.css";
2
- export { Spinner, spinnerVariants, } from "./SpinnerCommon";
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Stepper/StepperApollo.css";
2
- import { type StepperProps } from "./StepperCommon";
3
- export declare const Stepper: (props: StepperProps) => 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/Stepper/StepperApollo.css";
3
- import { ProgressBarGroup } from "../ProgressBarGroup/ProgressBarGroupApollo";
4
- import { StepperCommon } from "./StepperCommon";
5
- export const Stepper = (props) => (_jsx(StepperCommon, { ...props, ProgressBarGroupComponent: ProgressBarGroup }));
@@ -1,18 +0,0 @@
1
- import { ComponentType, type HTMLAttributes } from "react";
2
- import { type ItemMessageProps } from "../Form/ItemMessage/ItemMessageCommon";
3
- import { type ProgressBarGroupProps } from "../ProgressBarGroup/ProgressBarGroupCommon";
4
- export type StepperProps = {
5
- currentStepProgress?: number;
6
- currentStep: number;
7
- currentSubtitle?: string;
8
- currentTitle?: string;
9
- nbSteps?: 3 | 4 | 5 | 6 | 7 | 8;
10
- helper?: string;
11
- message?: string;
12
- messageType?: ItemMessageProps["messageType"];
13
- titleLevel?: 1 | 2 | 3;
14
- } & Omit<HTMLAttributes<HTMLDivElement>, "role">;
15
- export type StepperCommonProps = StepperProps & {
16
- ProgressBarGroupComponent: ComponentType<ProgressBarGroupProps>;
17
- };
18
- export declare const StepperCommon: ({ currentStepProgress, currentTitle, nbSteps, currentStep, currentSubtitle, className, ProgressBarGroupComponent, helper, message, messageType, titleLevel, ...props }: StepperCommonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useId, } from "react";
3
- import { ItemMessage, } from "../Form/ItemMessage/ItemMessageCommon";
4
- export const StepperCommon = ({ currentStepProgress, currentTitle, nbSteps, currentStep, currentSubtitle, className, ProgressBarGroupComponent, helper, message, messageType = "success", titleLevel = 2, ...props }) => {
5
- const titleId = useId();
6
- const Title = `h${titleLevel}`;
7
- return (_jsxs("div", { className: "af-stepper", ...props, tabIndex: undefined, children: [_jsxs("div", { className: "af-stepper__header", children: [_jsx(Title, { id: titleId, className: "af-stepper__title", children: currentTitle }), Boolean(currentSubtitle) && (_jsx("p", { className: "af-stepper__subtitle", children: currentSubtitle }))] }), _jsx(ProgressBarGroupComponent, { className: className, currentStep: currentStep, stepsCount: nbSteps, currentStepProgress: currentStepProgress, "aria-labelledby": titleId }), Boolean(helper) && _jsx("span", { className: "af-stepper__helper", children: helper }), _jsx(ItemMessage, { message: message, messageType: messageType })] }));
8
- };
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Stepper/StepperLF.css";
2
- import { type StepperProps } from "./StepperCommon";
3
- export declare const Stepper: (props: StepperProps) => 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/Stepper/StepperLF.css";
3
- import { ProgressBarGroup } from "../ProgressBarGroup/ProgressBarGroupLF";
4
- import { StepperCommon } from "./StepperCommon";
5
- export const Stepper = (props) => (_jsx(StepperCommon, { ...props, ProgressBarGroupComponent: ProgressBarGroup }));
package/dist/Svg/Svg.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Svg/Svg.css";
2
- import { type SVGAttributes } from "react";
3
- type SvgProps = SVGAttributes<SVGSVGElement> & {
4
- src: string;
5
- alt?: string;
6
- };
7
- /**
8
- * @deprecated Use Icon instead
9
- */
10
- export declare const Svg: ({ className, src, alt, width, height, ...props }: SvgProps) => import("react/jsx-runtime").JSX.Element | null;
11
- export {};
package/dist/Svg/Svg.js DELETED
@@ -1,54 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Svg/Svg.css";
3
- import React from "react";
4
- import { svgInjector } from "./svgInjector";
5
- const cloneAttributes = (from, to) => {
6
- const attributes = from.getAttributeNames();
7
- attributes.forEach((attribute) => {
8
- to.setAttribute(attribute, from.getAttribute(attribute));
9
- });
10
- };
11
- /**
12
- * @deprecated Use Icon instead
13
- */
14
- export const Svg = ({ className, src, alt, width = 24, height = 24, ...props }) => {
15
- const rootRef = React.useRef(null);
16
- const [hasError, setHasError] = React.useState(false);
17
- React.useLayoutEffect(() => {
18
- if (hasError) {
19
- setHasError(false);
20
- }
21
- // eslint-disable-next-line react-hooks/exhaustive-deps
22
- }, [src]);
23
- React.useLayoutEffect(() => {
24
- if (hasError) {
25
- return;
26
- }
27
- const root = rootRef.current;
28
- if (root) {
29
- const parent = document.createElement("div");
30
- const svg = document.createElement("svg");
31
- parent.appendChild(svg);
32
- cloneAttributes(root, svg);
33
- // Default SVG size was 24px with @material-design-icons/svg. With @material-symbols/svg-400 this is now 48px (with no native way to change it)
34
- // In order not to break existing CSS, we manually set the default value back to 24px
35
- svg.setAttribute("width", width.toString());
36
- svg.setAttribute("height", height.toString());
37
- svgInjector(svg, {
38
- afterEach: (error, svgInject) => {
39
- if (error) {
40
- setHasError(true);
41
- }
42
- if (svgInject) {
43
- root.innerHTML = svgInject.innerHTML;
44
- cloneAttributes(svgInject, root);
45
- }
46
- },
47
- });
48
- }
49
- }, [src, width, height, hasError]);
50
- if (hasError) {
51
- return alt ? (_jsx("span", { ...props, children: alt })) : null;
52
- }
53
- return (_jsx("svg", { ref: rootRef, className: ["af-svg", className].filter(Boolean).join(" "), "data-src": src, width: width, height: height, ...props }));
54
- };
@@ -1,12 +0,0 @@
1
- import { type AfterAll, type BeforeEach, type Errback, type EvalScripts } from "@tanem/svg-injector";
2
- type Options = {
3
- afterAll?: AfterAll;
4
- afterEach?: Errback;
5
- beforeEach?: BeforeEach;
6
- cacheRequests?: boolean;
7
- evalScripts?: EvalScripts;
8
- httpRequestWithCredentials?: boolean;
9
- renumerateIRIElements?: boolean;
10
- };
11
- export declare const svgInjector: (element: HTMLElement | SVGSVGElement | null, { beforeEach, ...options }?: Options) => void;
12
- export {};
@@ -1,31 +0,0 @@
1
- import { SVGInjector, } from "@tanem/svg-injector";
2
- import DOMPurify from "dompurify";
3
- const attributesToRestore = ["fill", "stroke"];
4
- const restoreAttributes = (element, svg) => {
5
- const attributes = {};
6
- element?.getAttributeNames().forEach((attribute) => {
7
- if (attribute.startsWith("aria-") ||
8
- attributesToRestore.includes(attribute)) {
9
- attributes[attribute] = element.getAttribute(attribute);
10
- }
11
- });
12
- Object.keys(attributes).forEach((attribute) => {
13
- svg.setAttribute(attribute, attributes[attribute]);
14
- });
15
- };
16
- export const svgInjector = (element, { beforeEach = () => { }, ...options } = {}) => {
17
- if (!element) {
18
- return;
19
- }
20
- SVGInjector(element, {
21
- ...options,
22
- beforeEach: (svg) => {
23
- DOMPurify.sanitize(svg, {
24
- USE_PROFILES: { svg: true, svgFilters: true },
25
- IN_PLACE: true,
26
- });
27
- restoreAttributes(element, svg);
28
- beforeEach(svg);
29
- },
30
- });
31
- };
@@ -1,4 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/TabBar/TabBarApollo.css";
2
- import { type TabBarProps } from "./TabBarCommon";
3
- export { tabBarDirection, type TabBarProps, type TabBarDirection, } from "./TabBarCommon";
4
- export declare const TabBar: (props: TabBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/TabBar/TabBarApollo.css";
3
- import { ItemTabBar } from "../ItemTabBar/ItemTabBarApollo";
4
- import { TabBarCommon } from "./TabBarCommon";
5
- export { tabBarDirection, } from "./TabBarCommon";
6
- export const TabBar = (props) => (_jsx(TabBarCommon, { ...props, ItemTabBarComponent: ItemTabBar }));
@@ -1,19 +0,0 @@
1
- import { ComponentProps, ComponentType, ReactNode } from "react";
2
- import { ItemTabBar, type ItemTabBarProps } from "../ItemTabBar/ItemTabBarCommon";
3
- export declare const tabBarDirection: {
4
- readonly center: "center";
5
- readonly left: "left";
6
- };
7
- export type TabBarDirection = keyof typeof tabBarDirection;
8
- export type TabBarProps = {
9
- items: ({
10
- content: ReactNode;
11
- } & Omit<ItemTabBarProps, "content">)[];
12
- preSelectedTabIndex?: number;
13
- direction?: TabBarDirection;
14
- };
15
- type TabBarPropsCommon = TabBarProps & {
16
- ItemTabBarComponent: ComponentType<ComponentProps<typeof ItemTabBar>>;
17
- };
18
- export declare const TabBarCommon: ({ items, preSelectedTabIndex, direction, ItemTabBarComponent, }: TabBarPropsCommon) => import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,48 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCallback, useRef, useState, } from "react";
3
- import classNames from "classnames";
4
- export const tabBarDirection = {
5
- center: "center",
6
- left: "left",
7
- };
8
- const CLASS_NAME = "af-tabbar";
9
- export const TabBarCommon = ({ items, preSelectedTabIndex, direction = "left", ItemTabBarComponent, }) => {
10
- const [selectedTabIndex, setSelectedTabIndex] = useState(preSelectedTabIndex || 0);
11
- const buttonRefs = useRef([]);
12
- const tablistRef = useRef(null);
13
- const totalTabs = items.length;
14
- const isActive = (index) => index === selectedTabIndex;
15
- const onChangeTab = useCallback((e) => {
16
- const firstTabIndex = 0;
17
- const lastTabIndex = totalTabs - 1;
18
- const goToNextTab = (nextTabIndex) => {
19
- setSelectedTabIndex(nextTabIndex);
20
- buttonRefs.current[nextTabIndex].focus();
21
- e.stopPropagation();
22
- e.preventDefault();
23
- };
24
- switch (e.key) {
25
- case "ArrowRight":
26
- goToNextTab(selectedTabIndex < lastTabIndex
27
- ? selectedTabIndex + 1
28
- : firstTabIndex);
29
- break;
30
- case "ArrowLeft":
31
- goToNextTab(selectedTabIndex > firstTabIndex
32
- ? selectedTabIndex - 1
33
- : lastTabIndex);
34
- break;
35
- case "Home":
36
- goToNextTab(firstTabIndex);
37
- break;
38
- case "End":
39
- goToNextTab(lastTabIndex);
40
- break;
41
- default:
42
- break;
43
- }
44
- }, [selectedTabIndex, totalTabs]);
45
- return (_jsxs("div", { className: classNames(CLASS_NAME, direction === tabBarDirection.center ? `${CLASS_NAME}--center` : ""), children: [_jsx("div", { role: "tablist", ref: tablistRef, children: items.map(({ title }, index) => (_jsx(ItemTabBarComponent, { id: `tab-${index}`, "aria-selected": isActive(index), "aria-controls": `tabpanel-${index}`, onKeyDown: onChangeTab, onClick: () => setSelectedTabIndex(index), ref: (element) => {
46
- buttonRefs.current[index] = element;
47
- }, tabIndex: isActive(index) ? 0 : -1, title: title }, `tab-${title}`))) }), items.map((item, index) => (_jsx("div", { role: "tabpanel", "aria-hidden": !isActive(index), id: `tabpanel-${index}`, "aria-labelledby": `tab-${index}`, children: item.content }, `tabpanel-${item.title}`)))] }));
48
- };
@@ -1,4 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/TabBar/TabBarLF.css";
2
- import { type TabBarProps } from "./TabBarCommon";
3
- export { tabBarDirection, type TabBarProps, type TabBarDirection, } from "./TabBarCommon";
4
- export declare const TabBar: (props: TabBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/TabBar/TabBarLF.css";
3
- import { ItemTabBar } from "../ItemTabBar/ItemTabBarLF";
4
- import { TabBarCommon } from "./TabBarCommon";
5
- export { tabBarDirection, } from "./TabBarCommon";
6
- export const TabBar = (props) => (_jsx(TabBarCommon, { ...props, ItemTabBarComponent: ItemTabBar }));
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Tag/TagApollo.css";
2
- export { Tag, type TagVariants, tagVariants } from "./TagCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Tag/TagApollo.css";
2
- export { Tag, tagVariants } from "./TagCommon";
@@ -1,13 +0,0 @@
1
- import { type ComponentProps } from "react";
2
- export declare const tagVariants: {
3
- readonly info: "info";
4
- readonly success: "success";
5
- readonly warning: "warning";
6
- readonly error: "error";
7
- readonly neutral: "neutral";
8
- };
9
- export type TagVariants = keyof typeof tagVariants;
10
- export type TagProps = ComponentProps<"div"> & {
11
- variant?: TagVariants;
12
- };
13
- export declare const Tag: ({ children, className, variant, ...divProps }: TagProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useMemo } from "react";
3
- import { getComponentClassName } from "../utilities/getComponentClassName";
4
- export const tagVariants = {
5
- info: "info",
6
- success: "success",
7
- warning: "warning",
8
- error: "error",
9
- neutral: "neutral",
10
- };
11
- export const Tag = ({ children, className, variant = "info", ...divProps }) => {
12
- const componentClassName = useMemo(() => getComponentClassName("af-tag", className, variant), [className, variant]);
13
- return (_jsx("div", { className: componentClassName, ...divProps, children: _jsx("span", { className: "af-tag__label", children: children }) }));
14
- };
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Tag/TagLF.css";
2
- export { Tag, type TagVariants, tagVariants } from "./TagCommon";
package/dist/Tag/TagLF.js DELETED
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Tag/TagLF.css";
2
- export { Tag, tagVariants } from "./TagCommon";
@@ -1,4 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/TimelineVertical/TimelineVerticalApollo.css";
2
- import type { TimelineVerticalProps } from "./types";
3
- export type { TimelineVerticalProps } from "./types";
4
- export declare const TimelineVertical: ({ tag, tagProps, ...props }: TimelineVerticalProps) => 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/TimelineVertical/TimelineVerticalApollo.css";
3
- import { TimelineVerticalCommon } from "./TimelineVerticalCommon";
4
- import { Tag } from "../Tag/TagApollo";
5
- export const TimelineVertical = ({ tag, tagProps = {}, ...props }) => (_jsx(TimelineVerticalCommon, { tag: _jsx(Tag, { ...tagProps, children: tag }), ...props }));
@@ -1,7 +0,0 @@
1
- import { PropsWithChildren, ReactNode } from "react";
2
- export type TimelineVerticalProps = PropsWithChildren<{
3
- title: string;
4
- tag: ReactNode;
5
- className?: string;
6
- }>;
7
- export declare const TimelineVerticalCommon: ({ title, children, tag, className, }: TimelineVerticalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import classNames from "classnames";
3
- export const TimelineVerticalCommon = ({ title, children, tag, className, }) => (_jsxs("section", { className: classNames("af-timeline-vertical", className), children: [_jsxs("header", { className: "af-timeline-vertical__header", children: [tag, _jsx("h4", { className: "af-timeline-vertical__title", children: title })] }), Boolean(children) && (_jsx("main", { className: "af-timeline-vertical__description", children: children }))] }));
@@ -1,4 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/TimelineVertical/TimelineVerticalLF.css";
2
- import type { TimelineVerticalProps } from "./types";
3
- export type { TimelineVerticalProps } from "./types";
4
- export declare const TimelineVertical: ({ tag, tagProps, ...props }: TimelineVerticalProps) => 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/TimelineVertical/TimelineVerticalLF.css";
3
- import { TimelineVerticalCommon } from "./TimelineVerticalCommon";
4
- import { Tag } from "../Tag/TagLF";
5
- export const TimelineVertical = ({ tag, tagProps = {}, ...props }) => (_jsx(TimelineVerticalCommon, { tag: _jsx(Tag, { ...tagProps, children: tag }), ...props }));
@@ -1,5 +0,0 @@
1
- import { TagProps } from "../Tag/TagCommon";
2
- import type { TimelineVerticalProps as TimelineVerticalCommonProps } from "./TimelineVerticalCommon";
3
- export type TimelineVerticalProps = TimelineVerticalCommonProps & {
4
- tagProps?: Omit<TagProps, "children">;
5
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Toggle/ToggleApollo.css";
2
- export { Toggle } from "./ToggleCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Toggle/ToggleApollo.css";
2
- export { Toggle } from "./ToggleCommon";
@@ -1,3 +0,0 @@
1
- import { type InputHTMLAttributes } from "react";
2
- export type ToggleProps = Omit<InputHTMLAttributes<HTMLInputElement>, "style" | "type">;
3
- export declare const Toggle: import("react").ForwardRefExoticComponent<ToggleProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useId } from "react";
3
- import { getComponentClassName } from "../utilities/getComponentClassName";
4
- export const Toggle = forwardRef(({ className, ...inputProps }, ref) => {
5
- let inputId = useId();
6
- inputId = inputProps.id ?? inputId;
7
- return (_jsxs("label", { className: getComponentClassName("af-toggle", className), htmlFor: inputId, children: [_jsx("div", { className: "af-toggle__root", children: _jsx("span", { className: "af-toggle__handle" }) }), _jsx("input", { ...inputProps, ref: ref, type: "checkbox", id: inputId })] }));
8
- });
9
- Toggle.displayName = "Toggle";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Toggle/ToggleLF.css";
2
- export { Toggle } from "./ToggleCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Toggle/ToggleLF.css";
2
- export { Toggle } from "./ToggleCommon";
package/dist/index.d.ts DELETED
@@ -1,56 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/common/reboot.css";
2
- import "@axa-fr/design-system-apollo-css/dist/common/tokens.css";
3
- import "@axa-fr/design-system-apollo-css/dist/Grid/Grid.css";
4
- import "@fontsource/source-sans-pro";
5
- export { Accordion, accordionVariants, type AccordionVariants, } from "./Accordion/AccordionApollo";
6
- export { AccordionCore } from "./AccordionCore/AccordionCoreApollo";
7
- export { BasePicture } from "./BasePicture/BasePicture";
8
- export { Button, buttonVariants, type ButtonVariants, } from "./Button/ButtonApollo";
9
- export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./CardMessage/CardMessageApollo";
10
- export { ClickIcon } from "./ClickIcon/ClickIconApollo";
11
- export { ContentItemDuoAction, type ContentItemDuoActionState, } from "./ContentItemDuoAction/ContentItemDuoActionApollo";
12
- export { ContentItemMono } from "./ContentItemMono/ContentItemMonoApollo";
13
- export { DataAgent } from "./DataAgent/DataAgentApollo";
14
- export { Divider } from "./Divider/DividerApollo";
15
- export { CardCheckbox,
16
- /** @deprecated Use `CardCheckbox` instead. */
17
- CardCheckbox as CheckboxCard, } from "./Form/Checkbox/CardCheckbox/CardCheckboxApollo";
18
- export { CardCheckboxOption } from "./Form/Checkbox/CardCheckboxOption/CardCheckboxOptionApollo";
19
- export { Checkbox } from "./Form/Checkbox/Checkbox/CheckboxApollo";
20
- export { CheckboxText } from "./Form/Checkbox/CheckboxText/CheckboxTextApollo";
21
- export { Dropdown } from "./Form/Dropdown/DropdownApollo";
22
- export { FileUpload } from "./Form/FileUpload/FileUpload/FileUploadApollo";
23
- export { InputFile } from "./Form/FileUpload/InputFile/InputFileApollo";
24
- export { ItemFile } from "./Form/FileUpload/ItemFile/ItemFileApollo";
25
- export { InputDate } from "./Form/InputDate/InputDateApollo";
26
- export { type OptionType } from "./Form/InputPhone/InputPhone.types";
27
- export { InputPhone } from "./Form/InputPhone/InputPhoneApollo";
28
- export { InputText } from "./Form/InputText/InputTextApollo";
29
- export { InputTextAtom } from "./Form/InputTextAtom/InputTextAtomApollo";
30
- export { ItemLabel } from "./Form/ItemLabel/ItemLabelApollo";
31
- export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./Form/ItemMessage/ItemMessageApollo";
32
- export { CardRadio } from "./Form/Radio/CardRadio/CardRadioApollo";
33
- export { CardRadioOption } from "./Form/Radio/CardRadioOption/CardRadioOptionApollo";
34
- export { Radio } from "./Form/Radio/Radio/RadioApollo";
35
- export { TextArea } from "./Form/TextArea/TextAreaApollo";
36
- export { DebugGrid } from "./Grid/DebugGridApollo";
37
- export { Heading, type HeadingLevel } from "./Heading/HeadingApollo";
38
- export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./Icon/IconApollo";
39
- export { ItemTabBar, type ItemTabBarProps, } from "./ItemTabBar/ItemTabBarApollo";
40
- export { Footer, type FooterProps } from "./Layout/Footer/FooterApollo";
41
- export { Link, linkVariants, type LinkVariants } from "./Link/LinkApollo";
42
- export { ClickItem, clickItemStates, clickItemVariants, type ClickItemStates, type ClickItemVariants, } from "./List/ClickItem/ClickItemApollo";
43
- export { ContentItemDuo } from "./List/ContentItemDuo/ContentItemDuoApollo";
44
- export { Message, messageVariants, type MessageVariants, } from "./Message/MessageApollo";
45
- export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./Modal/ModalApollo";
46
- export { ProgressBar } from "./ProgressBar/ProgressBarApollo";
47
- export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
48
- export { Spinner, spinnerVariants, type SpinnerVariants, } from "./Spinner/SpinnerApollo";
49
- export { Stepper } from "./Stepper/StepperApollo";
50
- export { Svg } from "./Svg/Svg";
51
- export { TabBar, tabBarDirection, type TabBarDirection, type TabBarProps, } from "./TabBar/TabBarApollo";
52
- export { Tag, tagVariants, type TagVariants } from "./Tag/TagApollo";
53
- export { TimelineVertical } from "./TimelineVertical/TimelineVerticalApollo";
54
- export { Toggle } from "./Toggle/ToggleApollo";
55
- export { Pagination } from "./Pagination/PaginationApollo";
56
- export { ItemPagination, type ItemPaginationProps, } from "./Pagination/ItemPagination/ItemPaginationApollo";