@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,4 +0,0 @@
1
- import { type InputFileProps } from "./InputFileCommon";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/FileUpload/InputFile/InputFileLF.css";
3
- declare const InputFile: import("react").ForwardRefExoticComponent<Omit<InputFileProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
4
- export { InputFile };
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { ItemLabel } from "../../ItemLabel/ItemLabelLF";
4
- import { ItemMessage } from "../../ItemMessage/ItemMessageLF";
5
- import { InputFileCommon } from "./InputFileCommon";
6
- import "@axa-fr/design-system-apollo-css/dist/Form/FileUpload/InputFile/InputFileLF.css";
7
- const InputFile = forwardRef((props, ref) => (_jsx(InputFileCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
8
- InputFile.displayName = "InputFile";
9
- export { InputFile };
@@ -1,3 +0,0 @@
1
- import { type ItemFileProps } from "./ItemFileCommon";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/FileUpload/ItemFile/ItemFileApollo.css";
3
- export declare const ItemFile: (props: ItemFileProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import deleteIcon from "@material-symbols/svg-400/outlined/delete.svg";
3
- import visibilityIcon from "@material-symbols/svg-400/outlined/visibility-fill.svg";
4
- import { ClickIcon } from "../../../ClickIcon/ClickIconApollo";
5
- import { Icon } from "../../../Icon/IconApollo";
6
- import { Spinner } from "../../../Spinner/SpinnerApollo";
7
- import { ItemMessage } from "../../ItemMessage/ItemMessageApollo";
8
- import { ItemFileCommon } from "./ItemFileCommon";
9
- import "@axa-fr/design-system-apollo-css/dist/Form/FileUpload/ItemFile/ItemFileApollo.css";
10
- export const ItemFile = (props) => (_jsx(ItemFileCommon, { ItemMessageComponent: ItemMessage, ItemIconComponent: Icon, ItemSpinnerComponent: Spinner, ClickIconComponent: ClickIcon, removeIcon: deleteIcon, previewIcon: visibilityIcon, ...props }));
@@ -1,54 +0,0 @@
1
- import { type ComponentPropsWithoutRef, type ComponentType, type MouseEvent } from "react";
2
- import type { ClickIconProps } from "../../../ClickIcon/ClickIconCommon";
3
- import type { IconProps } from "../../../Icon/IconCommon";
4
- import type { SpinnerProps } from "../../../Spinner/SpinnerCommon";
5
- import type { ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
6
- export type ItemFileProps = {
7
- /**
8
- * The JavaScript File object representing the uploaded file.
9
- * (required)
10
- */
11
- file: File;
12
- /**
13
- * When true, a spinner is shown instead of the validation icon and actions
14
- * may be disabled.
15
- * @default false
16
- */
17
- isLoading?: boolean;
18
- /**
19
- * An optional error message shown below the file. If present, the item is
20
- * rendered in an error state.
21
- */
22
- errorMessage?: string;
23
- /**
24
- * Callback invoked when the remove action is triggered. Receives the file
25
- * and the click event.
26
- */
27
- onRemove?: (file: File, event: MouseEvent<HTMLButtonElement>) => void;
28
- /**
29
- * Callback invoked when the preview action is triggered. Receives the file
30
- * and the click event.
31
- */
32
- onPreview?: (file: File, event: MouseEvent<HTMLButtonElement>) => void;
33
- /**
34
- * Optional props forwarded to the preview icon button (except `src` and
35
- * `onClick`).
36
- * @default {}
37
- */
38
- previewProps?: Partial<Omit<ClickIconProps, "src" | "onClick">>;
39
- /**
40
- * Optional props forwarded to the remove icon button (except `src` and
41
- * `onClick`).
42
- * @default {}
43
- */
44
- removeProps?: Partial<Omit<ClickIconProps, "src" | "onClick">>;
45
- } & Omit<ComponentPropsWithoutRef<"section">, "children">;
46
- export type ItemFileCommonProps = ItemFileProps & {
47
- ItemMessageComponent: ComponentType<ItemMessageProps>;
48
- ItemIconComponent: ComponentType<IconProps>;
49
- ItemSpinnerComponent: ComponentType<SpinnerProps>;
50
- ClickIconComponent: ComponentType<ClickIconProps>;
51
- removeIcon: string;
52
- previewIcon: string;
53
- };
54
- export declare const ItemFileCommon: ({ file, isLoading, errorMessage, className, onRemove, onPreview, previewProps, removeProps, removeIcon, previewIcon, ItemSpinnerComponent, ItemIconComponent, ItemMessageComponent, ClickIconComponent, ...props }: ItemFileCommonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import validationIcon from "@material-symbols/svg-400/outlined/check_circle-fill.svg";
3
- import errorIcon from "@material-symbols/svg-400/outlined/error-fill.svg";
4
- import { getClassName } from "../../../utilities/getClassName";
5
- const BASE_UNIT = 1000;
6
- const BYTE_UNITS = ["Ko", "Mo", "Go"];
7
- const getReadableFileSizeString = (fileSizeInBytes) => {
8
- let i = -1;
9
- let fileSizeInBytesCopy = fileSizeInBytes;
10
- do {
11
- fileSizeInBytesCopy /= BASE_UNIT;
12
- i += 1;
13
- } while (fileSizeInBytesCopy > BASE_UNIT);
14
- return `${Math.max(fileSizeInBytesCopy, 0.1).toFixed(1)} ${BYTE_UNITS[i]}`;
15
- };
16
- export const ItemFileCommon = ({ file, isLoading, errorMessage, className, onRemove = () => { }, onPreview = () => { }, previewProps = {}, removeProps = {}, removeIcon, previewIcon, ItemSpinnerComponent, ItemIconComponent, ItemMessageComponent, ClickIconComponent, ...props }) => {
17
- const hasError = Boolean(errorMessage);
18
- const handleClick = (callback) => (e) => {
19
- callback(file, e);
20
- };
21
- return (_jsxs("section", { className: getClassName({
22
- baseClassName: "af-item-file",
23
- modifiers: [hasError && "error"],
24
- className,
25
- }), "aria-busy": isLoading ? true : undefined, "aria-live": "polite", ...props, children: [_jsxs("div", { className: "af-item-file__body", children: [isLoading && !hasError ? (_jsx(ItemSpinnerComponent, { size: 24 })) : (_jsx(ItemIconComponent, { size: "S", src: hasError ? errorIcon : validationIcon })), _jsx("p", { className: "af-item-file__file-name", children: file.name }), _jsx("p", { className: "af-item-file__file-size", children: getReadableFileSizeString(file.size) }), _jsxs("div", { className: "af-item-file__actions", children: [!isLoading && !hasError && (_jsx(ClickIconComponent, { src: previewIcon, onClick: handleClick(onPreview), "aria-label": `Previsualiser le fichier ${file.name}`, ...previewProps })), _jsx(ClickIconComponent, { src: removeIcon, onClick: handleClick(onRemove), "aria-label": `Suppression du fichier ${file.name}`, ...removeProps })] })] }), _jsx(ItemMessageComponent, { message: errorMessage })] }));
26
- };
@@ -1,3 +0,0 @@
1
- import { type ItemFileProps } from "./ItemFileCommon";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/FileUpload/ItemFile/ItemFileLF.css";
3
- export declare const ItemFile: (props: ItemFileProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import deleteIconFilled from "@material-symbols/svg-400/outlined/delete-fill.svg";
3
- import visibilityIcon from "@material-symbols/svg-400/outlined/visibility-fill.svg";
4
- import { ClickIcon } from "../../../ClickIcon/ClickIconLF";
5
- import { Icon } from "../../../Icon/IconLF";
6
- import { Spinner } from "../../../Spinner/SpinnerLF";
7
- import { ItemMessage } from "../../ItemMessage/ItemMessageLF";
8
- import { ItemFileCommon } from "./ItemFileCommon";
9
- import "@axa-fr/design-system-apollo-css/dist/Form/FileUpload/ItemFile/ItemFileLF.css";
10
- export const ItemFile = (props) => (_jsx(ItemFileCommon, { ItemMessageComponent: ItemMessage, ItemIconComponent: Icon, ItemSpinnerComponent: Spinner, ClickIconComponent: ClickIcon, removeIcon: deleteIconFilled, previewIcon: visibilityIcon, ...props }));
@@ -1,8 +0,0 @@
1
- export declare const formatInputDateValue: (value?: Date | string) => string | undefined;
2
- export declare const isValidDayDecimal: (char: string, index: number) => boolean;
3
- export declare const isValidDay: (day: number, index: number) => boolean;
4
- export declare const isValidMonthDecimal: (char: string, index: number) => boolean;
5
- export declare const isValidMonth: (month: number, index: number) => boolean;
6
- export declare const isValidMillennium: (char: string, index: number) => boolean;
7
- export declare const isValidDigit: (char: string, index: number, currentCleanValue: string[]) => boolean;
8
- export declare const formatDateTextValue: (value?: string) => string;
@@ -1,23 +0,0 @@
1
- export const formatInputDateValue = (value) => value instanceof Date ? value.toISOString().split("T")[0] : value;
2
- export const isValidDayDecimal = (char, index) => (index === 0 && Number(char) <= 3) || index !== 0;
3
- export const isValidDay = (day, index) => (index === 1 && day <= 31 && day > 0) || index !== 1;
4
- export const isValidMonthDecimal = (char, index) => (index === 2 && Number(char) <= 1) || index !== 2;
5
- export const isValidMonth = (month, index) => (index === 3 && month <= 12 && month > 0) || index !== 3;
6
- export const isValidMillennium = (char, index) => (index === 4 && Number(char) > 0) || index !== 4;
7
- export const isValidDigit = (char, index, currentCleanValue) => Number.isInteger(Number(char)) &&
8
- isValidDayDecimal(char, index) &&
9
- isValidDay(Number(`${Number(currentCleanValue[0])}${Number(char)}`), index) &&
10
- isValidMonthDecimal(char, index) &&
11
- isValidMonth(Number(`${Number(currentCleanValue[2])}${Number(char)}`), index) &&
12
- isValidMillennium(char, index);
13
- export const formatDateTextValue = (value) => {
14
- if (!value) {
15
- return "";
16
- }
17
- return value
18
- .split("")
19
- .filter((char) => char !== "/")
20
- .filter((char, index, currentCleanValue) => isValidDigit(char, index, currentCleanValue))
21
- .map((char, index) => (index === 2 || index === 4 ? `/${char}` : char))
22
- .join("");
23
- };
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputDate/InputDateApollo.css";
2
- import { type InputDateProps } from "./InputDateCommon";
3
- export declare const InputDate: import("react").ForwardRefExoticComponent<Omit<InputDateProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/InputDate/InputDateApollo.css";
3
- import { forwardRef } from "react";
4
- import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
5
- import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
6
- import { InputDateCommon } from "./InputDateCommon";
7
- export const InputDate = forwardRef((props, ref) => (_jsx(InputDateCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
8
- InputDate.displayName = "InputDate";
@@ -1,9 +0,0 @@
1
- import { type ComponentPropsWithRef } from "react";
2
- export type InputDateAtomProps = Omit<ComponentPropsWithRef<"input">, "value" | "min" | "max"> & {
3
- defaultValue?: Date | string;
4
- value?: Date | string;
5
- min?: Date | string;
6
- max?: Date | string;
7
- };
8
- declare const InputDateAtom: import("react").ForwardRefExoticComponent<Omit<InputDateAtomProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
9
- export { InputDateAtom };
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { formatInputDateValue } from "./InputDate.helper";
4
- const InputDateAtom = forwardRef(({ defaultValue, value, min, max, ...otherProps }, inputRef) => (_jsx("input", { ...otherProps, type: "date", ref: inputRef, defaultValue: formatInputDateValue(defaultValue), value: formatInputDateValue(value), min: formatInputDateValue(min), max: formatInputDateValue(max) })));
5
- InputDateAtom.displayName = "InputDateAtom";
6
- export { InputDateAtom };
@@ -1,27 +0,0 @@
1
- import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
2
- import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
3
- import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
4
- export type InputDateProps = Omit<ComponentPropsWithRef<"input">, "value" | "min" | "max"> & {
5
- classModifier?: string;
6
- defaultValue?: Date | string;
7
- value?: Date | string;
8
- min?: Date | string;
9
- max?: Date | string;
10
- helper?: string;
11
- /**
12
- * @deprecated Use `message` and messageType instead.
13
- */
14
- error?: string;
15
- /**
16
- * @deprecated Use `message` and messageType instead.
17
- */
18
- success?: string;
19
- hidePicker?: boolean;
20
- label: ItemLabelProps["children"];
21
- } & Partial<Pick<ItemLabelProps, "description" | "buttonLabel" | "moreButtonLabel" | "onButtonClick" | "onMoreButtonClick"> & ItemMessageProps>;
22
- type InputDateCommonProps = InputDateProps & {
23
- ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
24
- ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
25
- };
26
- declare const InputDateCommon: import("react").ForwardRefExoticComponent<Omit<InputDateCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
27
- export { InputDateCommon };
@@ -1,30 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useId, } from "react";
3
- import { getClassName } from "../../utilities/getClassName";
4
- import { InputDateAtom } from "./InputDateAtom";
5
- import { InputDateTextAtom } from "./InputDateTextAtom";
6
- const InputDateCommon = forwardRef(({ className, classModifier = "", helper, error, success, message, messageType, label, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, ItemLabelComponent, ItemMessageComponent, required, hidePicker, max, min, ...otherProps }, inputRef) => {
7
- const componentClassName = getClassName({
8
- baseClassName: "af-form__input-date",
9
- modifiers: classModifier.split(" "),
10
- className,
11
- });
12
- let inputId = useId();
13
- inputId = otherProps.id ?? inputId;
14
- const idMessage = useId();
15
- const idHelp = useId();
16
- const ariaDescribedbyIds = [
17
- helper && idHelp,
18
- ((Boolean(message) && messageType === "success") || Boolean(success)) &&
19
- idMessage,
20
- ].filter(Boolean);
21
- const ariaDescribedby = ariaDescribedbyIds.length
22
- ? ariaDescribedbyIds.join(" ")
23
- : undefined;
24
- const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
25
- const ariaErrormessage = hasError ? idMessage : undefined;
26
- const ariaInvalid = hasError || undefined;
27
- return (_jsxs("div", { className: "af-form__input-container", children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: buttonLabel || moreButtonLabel, onMoreButtonClick: onButtonClick || onMoreButtonClick, required: required, htmlFor: inputId, children: label }), hidePicker ? (_jsx(InputDateTextAtom, { ...otherProps, id: inputId, className: componentClassName, ref: inputRef, "aria-errormessage": ariaErrormessage, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedby, required: required })) : (_jsx(InputDateAtom, { ...otherProps, id: inputId, className: componentClassName, ref: inputRef, "aria-errormessage": ariaErrormessage, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedby, required: required, max: max, min: min })), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
28
- });
29
- InputDateCommon.displayName = "InputDate";
30
- export { InputDateCommon };
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputDate/InputDateLF.css";
2
- import { type InputDateProps } from "./InputDateCommon";
3
- export declare const InputDate: import("react").ForwardRefExoticComponent<Omit<InputDateProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/InputDate/InputDateLF.css";
3
- import { forwardRef } from "react";
4
- import { ItemLabel } from "../ItemLabel/ItemLabelLF";
5
- import { ItemMessage } from "../ItemMessage/ItemMessageLF";
6
- import { InputDateCommon } from "./InputDateCommon";
7
- export const InputDate = forwardRef((props, ref) => (_jsx(InputDateCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
8
- InputDate.displayName = "InputDate";
@@ -1,9 +0,0 @@
1
- import { type ComponentProps } from "react";
2
- import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
3
- export type InputDateTextAtomProps = Omit<ComponentProps<typeof InputTextAtom>, "value"> & {
4
- value?: Date | string;
5
- defaultValue?: Date | string;
6
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
- };
8
- declare const InputDateTextAtom: import("react").ForwardRefExoticComponent<Omit<InputDateTextAtomProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
9
- export { InputDateTextAtom };
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
4
- import { formatDateTextValue, formatInputDateValue } from "./InputDate.helper";
5
- const InputDateTextAtom = forwardRef(({ onChange, value, defaultValue, ...otherProps }, inputRef) => {
6
- const handleChange = (e) => {
7
- const formattedValue = formatDateTextValue(e.target.value);
8
- onChange?.({
9
- ...e,
10
- target: { ...e.target, value: formattedValue },
11
- });
12
- };
13
- return (_jsx(InputTextAtom, { pattern: "\\d{0,2}/?\\d{0,2}/?\\d{0,4}", maxLength: 10, ref: inputRef, inputMode: "numeric", onChange: handleChange, value: formatInputDateValue(value), defaultValue: formatInputDateValue(defaultValue), ...otherProps }));
14
- });
15
- InputDateTextAtom.displayName = "InputDateText";
16
- export { InputDateTextAtom };
@@ -1,12 +0,0 @@
1
- import { ComponentProps, ComponentType } from "react";
2
- import { SingleValue } from "react-select";
3
- import { OptionType } from "./InputPhone.types";
4
- import { Icon } from "../../Icon/IconCommon";
5
- declare const CountryCodeSelect: ({ options, defaultCountry, onChangeSelect, IconComponent, disabled, }: {
6
- options: OptionType[];
7
- defaultCountry?: string;
8
- onChangeSelect?: (value: SingleValue<OptionType>) => void;
9
- IconComponent: ComponentType<ComponentProps<typeof Icon>>;
10
- disabled?: boolean;
11
- }) => import("react/jsx-runtime").JSX.Element;
12
- export { CountryCodeSelect };
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import Select from "react-select";
4
- const CountryCodeSelect = ({ options, defaultCountry, onChangeSelect, IconComponent, disabled, }) => {
5
- const defaultOption = options.find((option) => option.code === (defaultCountry ?? "+33"));
6
- const [selectedOption, setSelectedOption] = useState(defaultOption);
7
- const customStyles = {
8
- control: (provided) => ({
9
- ...provided,
10
- margin: 0,
11
- }),
12
- dropdownIndicator: (provided) => ({
13
- ...provided,
14
- display: "none",
15
- }),
16
- indicatorSeparator: (provided) => ({
17
- ...provided,
18
- display: "none",
19
- }),
20
- singleValue: (provided) => ({
21
- ...provided,
22
- color: "inherit",
23
- }),
24
- };
25
- const formatOptionLabel = ({ flag, code }) => (_jsxs("div", { className: "country-code-select-format-label", children: [_jsx(IconComponent, { src: flag }), code] }));
26
- const handleChange = (newValue) => {
27
- setSelectedOption(newValue ?? undefined);
28
- if (newValue)
29
- onChangeSelect?.(newValue);
30
- };
31
- return (_jsx(Select, { classNamePrefix: "country-code-select", styles: customStyles, options: options, value: selectedOption, onChange: handleChange, formatOptionLabel: formatOptionLabel, "aria-label": "Select country code", getOptionValue: (option) => option.code, isDisabled: disabled }));
32
- };
33
- export { CountryCodeSelect };
@@ -1,4 +0,0 @@
1
- export type OptionType = {
2
- flag: string;
3
- code: string;
4
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputPhone/InputPhoneApollo.css";
2
- import { type InputPhoneProps } from "./InputPhoneCommon";
3
- export declare const InputPhone: (props: InputPhoneProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/InputPhone/InputPhoneApollo.css";
3
- import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
4
- import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
5
- import { InputPhoneCommon } from "./InputPhoneCommon";
6
- import { InputTextAtom } from "../InputTextAtom/InputTextAtomApollo";
7
- import { Icon } from "../../Icon/IconApollo";
8
- export const InputPhone = (props) => (_jsx(InputPhoneCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage, InputTextComponent: InputTextAtom, IconComponent: Icon }));
@@ -1,35 +0,0 @@
1
- import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
2
- import { SingleValue } from "react-select";
3
- import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
4
- import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
5
- import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
6
- import { Icon } from "../../Icon/IconCommon";
7
- import { type OptionType } from "./InputPhone.types";
8
- export type InputPhoneProps = ComponentPropsWithRef<"input"> & {
9
- classModifier?: string;
10
- helper?: string;
11
- /**
12
- * @deprecated Use `message` and messageType instead.
13
- */
14
- error?: string;
15
- /**
16
- * @deprecated Use `message` and messageType instead.
17
- */
18
- success?: string;
19
- defaultCountry?: string;
20
- showSelect?: boolean;
21
- disabled?: boolean;
22
- countryCodeOptions?: OptionType[];
23
- onChangeSelect?: (value: SingleValue<OptionType>) => void;
24
- onChangeInput?: (value: string) => void;
25
- mask?: (value: string) => string;
26
- label: ItemLabelProps["label"];
27
- } & Partial<ItemLabelProps & ItemMessageProps>;
28
- type InputPhoneCommonProps = InputPhoneProps & {
29
- ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
30
- ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
31
- InputTextComponent: ComponentType<ComponentProps<typeof InputTextAtom>>;
32
- IconComponent: ComponentType<ComponentProps<typeof Icon>>;
33
- };
34
- declare const InputPhoneCommon: import("react").ForwardRefExoticComponent<Omit<InputPhoneCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
35
- export { InputPhoneCommon };
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useId, } from "react";
3
- import { CountryCodeSelect } from "./CountryCodeSelect";
4
- import { maskFrenchPhoneNumber } from "./maskFrenchPhoneNumber";
5
- const InputPhoneCommon = forwardRef(({ className, classModifier = "", helper, error, success, message, messageType, defaultCountry, showSelect, disabled, label, description, buttonLabel, onButtonClick, required, sideButtonLabel, onSideButtonClick, countryCodeOptions = [], onChangeSelect, onChangeInput, mask = maskFrenchPhoneNumber, ItemLabelComponent, ItemMessageComponent, InputTextComponent, IconComponent, "aria-errormessage": ariaErrormessage, ...otherProps }, inputRef) => {
6
- let inputId = useId();
7
- inputId = otherProps.id || inputId;
8
- const idMessage = useId();
9
- const idHelp = useId();
10
- const ariaDescribedby = [helper && idHelp, success && idMessage].filter(Boolean);
11
- const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
12
- /**
13
- * Gère le changement de valeur du champ numéro de téléphone.
14
- * - Récupère une fonction de masquage (mask) depuis les props ou utilise une version par défaut.
15
- * - La fonction de masquage par défaut :
16
- * - Ne garde que les chiffres (supprime tout le reste).
17
- * - Limite à 10 chiffres.
18
- * - Formate par groupes de 2 chiffres séparés par un espace (ex: 06 12 34 56 78).
19
- * - Applique le masquage à la valeur saisie et transmet le résultat via onChangeInput.
20
- */
21
- const handleChangeNumber = (e) => {
22
- const input = e.target;
23
- const rawValue = input.value;
24
- const maskedValue = mask(rawValue);
25
- onChangeInput?.(maskedValue);
26
- };
27
- return (_jsxs("div", { className: "af-form__input-phone-container", children: [_jsx(ItemLabelComponent, { label: label, description: description, buttonLabel: buttonLabel, onButtonClick: onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, inputId: inputId }), _jsxs("div", { className: "af-form__input-phone-fields", children: [showSelect ? (_jsx("div", { className: "af-form__country-code-wrapper", children: _jsx(CountryCodeSelect, { options: countryCodeOptions, defaultCountry: defaultCountry, onChangeSelect: onChangeSelect, IconComponent: IconComponent, disabled: disabled }) })) : null, _jsx(InputTextComponent, { ...otherProps, className: ["af-form__input-phone", className]
28
- .filter(Boolean)
29
- .join(" "), classModifier: classModifier, ref: inputRef, error: hasError ? messageType || error : undefined, type: "tel", required: required, placeholder: otherProps.placeholder, "aria-errormessage": ariaErrormessage, value: otherProps.value, onChange: handleChangeNumber, disabled: disabled, idMessage: hasError ? idMessage : undefined, idHelp: ariaDescribedby.length > 0 ? ariaDescribedby.join(" ") : undefined, id: inputId })] }), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-phone-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
30
- });
31
- InputPhoneCommon.displayName = "InputPhone";
32
- export { InputPhoneCommon };
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputPhone/InputPhoneLF.css";
2
- import { type InputPhoneProps } from "./InputPhoneCommon";
3
- export declare const InputPhone: (props: InputPhoneProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/InputPhone/InputPhoneLF.css";
3
- import { ItemLabel } from "../ItemLabel/ItemLabelLF";
4
- import { ItemMessage } from "../ItemMessage/ItemMessageLF";
5
- import { InputPhoneCommon } from "./InputPhoneCommon";
6
- import { InputTextAtom } from "../InputTextAtom/InputTextAtomLF";
7
- import { Icon } from "../../Icon/IconLF";
8
- export const InputPhone = (props) => (_jsx(InputPhoneCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage, InputTextComponent: InputTextAtom, IconComponent: Icon }));
@@ -1 +0,0 @@
1
- export declare function maskFrenchPhoneNumber(value: string): string;
@@ -1,12 +0,0 @@
1
- export function maskFrenchPhoneNumber(value) {
2
- let numericValue = value.replace(/[^0-9]/g, "");
3
- numericValue = numericValue.slice(0, 10);
4
- let formattedValue = "";
5
- for (let i = 0; i < numericValue.length; i += 2) {
6
- formattedValue += numericValue.slice(i, i + 2);
7
- if (i + 2 < numericValue.length) {
8
- formattedValue += " ";
9
- }
10
- }
11
- return formattedValue;
12
- }
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputText/InputTextApollo.css";
2
- import { type InputTextProps } from "./InputTextCommon";
3
- export declare const InputText: import("react").ForwardRefExoticComponent<Omit<InputTextProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/InputText/InputTextApollo.css";
3
- import { forwardRef } from "react";
4
- import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
5
- import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
6
- import { InputTextCommon } from "./InputTextCommon";
7
- import { InputTextAtom } from "../InputTextAtom/InputTextAtomApollo";
8
- export const InputText = forwardRef((props, ref) => (_jsx(InputTextCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage, InputTextAtomComponent: InputTextAtom })));
9
- InputText.displayName = "InputText";
@@ -1,24 +0,0 @@
1
- import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
2
- import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
3
- import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
4
- import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
5
- export type InputTextProps = ComponentPropsWithRef<"input"> & {
6
- unit?: ReactNode;
7
- classModifier?: string;
8
- helper?: string;
9
- /**
10
- * @deprecated Use `message` and messageType instead.
11
- */
12
- error?: string;
13
- /**
14
- * @deprecated Use `message` and messageType instead.
15
- */
16
- success?: string;
17
- } & Partial<ItemLabelProps & ItemMessageProps>;
18
- type InputTextCommonProps = InputTextProps & {
19
- ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
20
- ItemMessageComponent: ComponentType<ComponentProps<typeof ItemMessage>>;
21
- InputTextAtomComponent: ComponentType<ComponentProps<typeof InputTextAtom>>;
22
- };
23
- declare const InputTextCommon: import("react").ForwardRefExoticComponent<Omit<InputTextCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
24
- export { InputTextCommon };
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useId, } from "react";
3
- const InputTextCommon = forwardRef(({ unit, className, classModifier = "", helper, error, success, message, messageType, label, description, buttonLabel, onButtonClick, required, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, InputTextAtomComponent, ...otherProps }, inputRef) => {
4
- let inputId = useId();
5
- inputId = otherProps.id || inputId;
6
- const idMessage = useId();
7
- const idHelp = useId();
8
- const ariaDescribedby = [helper && idHelp, success && idMessage].filter(Boolean);
9
- return (_jsxs("div", { className: "af-form__input-container", children: [_jsx(ItemLabelComponent, { label: label, description: description, buttonLabel: buttonLabel, onButtonClick: onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, inputId: inputId }), _jsx(InputTextAtomComponent, { id: inputId, ref: inputRef, unit: unit, className: className, classModifier: classModifier, error: (message && messageType === "error") || Boolean(error)
10
- ? messageType || error
11
- : undefined, required: required, idMessage: message || error ? idMessage : undefined, idHelp: ariaDescribedby.length > 0 ? ariaDescribedby.join(" ") : undefined, ...otherProps }), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
12
- });
13
- InputTextCommon.displayName = "InputText";
14
- export { InputTextCommon };
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputText/InputTextLF.css";
2
- import { type InputTextProps } from "./InputTextCommon";
3
- export declare const InputText: import("react").ForwardRefExoticComponent<Omit<InputTextProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "@axa-fr/design-system-apollo-css/dist/Form/InputText/InputTextLF.css";
3
- import { forwardRef } from "react";
4
- import { ItemLabel } from "../ItemLabel/ItemLabelLF";
5
- import { ItemMessage } from "../ItemMessage/ItemMessageLF";
6
- import { InputTextCommon } from "./InputTextCommon";
7
- import { InputTextAtom } from "../InputTextAtom/InputTextAtomLF";
8
- export const InputText = forwardRef((props, ref) => (_jsx(InputTextCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage, InputTextAtomComponent: InputTextAtom })));
9
- InputText.displayName = "InputText";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputTextAtom/InputTextAtomApollo.css";
2
- export { InputTextAtom } from "./InputTextAtomCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputTextAtom/InputTextAtomApollo.css";
2
- export { InputTextAtom } from "./InputTextAtomCommon";
@@ -1,10 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode } from "react";
2
- type InputTextAtomProps = ComponentPropsWithRef<"input"> & {
3
- unit?: ReactNode;
4
- classModifier?: string;
5
- error?: string;
6
- idMessage?: string;
7
- idHelp?: string;
8
- };
9
- declare const InputTextAtom: import("react").ForwardRefExoticComponent<Omit<InputTextAtomProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
10
- export { InputTextAtom };
@@ -1,11 +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
- const InputTextAtom = forwardRef(({ unit, className, classModifier = "", error, required, idMessage, idHelp, "aria-errormessage": ariaErrormessage, "aria-describedby": ariaDescribedby, type = "text", ...otherProps }, inputRef) => {
5
- const componentClassName = getComponentClassName("af-form__input-text", className, classModifier + (error || ariaErrormessage ? " error" : ""));
6
- let inputId = useId();
7
- inputId = otherProps.id || inputId;
8
- return (_jsxs("div", { className: "af-form__input-variant", children: [_jsx("input", { id: inputId, className: componentClassName, type: type, required: required, ref: inputRef, "aria-errormessage": ariaErrormessage ?? idMessage, "aria-invalid": Boolean(error || ariaErrormessage), "aria-describedby": ariaDescribedby ?? idHelp, ...otherProps }), unit] }));
9
- });
10
- InputTextAtom.displayName = "InputTextAtom";
11
- export { InputTextAtom };
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputTextAtom/InputTextAtomLF.css";
2
- export { InputTextAtom } from "./InputTextAtomCommon";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/InputTextAtom/InputTextAtomLF.css";
2
- export { InputTextAtom } from "./InputTextAtomCommon";
@@ -1,3 +0,0 @@
1
- import "@axa-fr/design-system-apollo-css/dist/Form/ItemLabel/ItemLabelApollo.css";
2
- import { type ItemLabelProps } from "./ItemLabelCommon";
3
- export declare const ItemLabel: (props: ItemLabelProps) => import("react/jsx-runtime").JSX.Element;