@cgi-learning-hub/ui 1.2.0 → 1.3.0-dev.1731057153

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 (327) hide show
  1. package/dist/Backdrop-CxHwPsCX.js +789 -0
  2. package/dist/Backdrop-ZCTs-Ws8.cjs +1 -0
  3. package/dist/Box-D61CmHcZ.cjs +1 -0
  4. package/dist/{Box-Bawb5zHX.js → Box-a6v7fn61.js} +31 -30
  5. package/dist/Button-B8Vr_qVd.js +450 -0
  6. package/dist/Button-elp97nQ8.cjs +1 -0
  7. package/dist/ButtonBase-S0mFlojL.cjs +75 -0
  8. package/dist/ButtonBase-Y5TK5SRu.js +890 -0
  9. package/dist/CircularProgress-DDIZxeFH.cjs +28 -0
  10. package/dist/CircularProgress-DU3DJQfF.js +252 -0
  11. package/dist/DatePicker-BigDV0IN.cjs +17 -0
  12. package/dist/{DatePicker-DGVeagTz.js → DatePicker-ZdjLD9eR.js} +6100 -5984
  13. package/dist/DefaultPropsProvider-7QnSWHxy.js +484 -0
  14. package/dist/DefaultPropsProvider-eEVEiLDf.cjs +17 -0
  15. package/dist/IconButton-C7H_G1LX.js +230 -0
  16. package/dist/IconButton-DfmbM9nO.cjs +2 -0
  17. package/dist/InputAdornment-C-EbfNtT.cjs +1 -0
  18. package/dist/{InputAdornment-hNrnvXW9.js → InputAdornment-CPJFY_m_.js} +81 -64
  19. package/dist/InputBase-5GB2c2J6.js +803 -0
  20. package/dist/InputBase-CPtGhJye.cjs +3 -0
  21. package/dist/Stack-656bqKiW.cjs +1 -0
  22. package/dist/{Stack-BJ2ths-g.js → Stack-CutIWKkG.js} +61 -60
  23. package/dist/Tabs-CKic46Op.js +1222 -0
  24. package/dist/Tabs-DzrxYlm-.cjs +4 -0
  25. package/dist/TextField-BLEvZwPH.cjs +14 -0
  26. package/dist/TextField-CGMPbx_J.js +5686 -0
  27. package/dist/Tooltip-BJefPCe7.cjs +100 -0
  28. package/dist/{Tooltip-D42pzHKW.js → Tooltip-DqLAZimE.js} +4764 -3511
  29. package/dist/TransitionGroupContext-DMJLhY9-.js +24 -0
  30. package/dist/TransitionGroupContext-DbXD5xqS.cjs +1 -0
  31. package/dist/Typography-CreZW2v6.cjs +1 -0
  32. package/dist/Typography-DsJC595c.js +259 -0
  33. package/dist/assets/styles.css +1 -1
  34. package/dist/assets/styles2.css +1 -1
  35. package/dist/client-error-BUtdld5f.cjs +1 -0
  36. package/dist/client-error-B_-qjgAB.js +395 -0
  37. package/dist/components/Alert/Alert.cjs.js +1 -0
  38. package/dist/components/{feedback/Alert → Alert}/Alert.d.ts +0 -1
  39. package/dist/components/Alert/Alert.stories.cjs.js +1 -0
  40. package/dist/components/{feedback/Alert → Alert}/Alert.stories.d.ts +0 -1
  41. package/dist/components/{feedback/Alert → Alert}/Alert.stories.es.js +7 -7
  42. package/dist/components/Button/Button.cjs.js +1 -0
  43. package/dist/components/Button/Button.d.ts +4 -0
  44. package/dist/components/Button/Button.es.js +334 -0
  45. package/dist/components/Button/Button.stories.cjs.js +1 -0
  46. package/dist/components/{buttons/SecondaryButton/SecondaryButton.stories.d.ts → Button/Button.stories.d.ts} +3 -2
  47. package/dist/components/Button/Button.stories.es.js +45 -0
  48. package/dist/components/Button/index.cjs.js +1 -0
  49. package/dist/components/Button/index.d.ts +2 -0
  50. package/dist/components/Button/index.es.js +4 -0
  51. package/dist/components/DatePicker/DatePicker.cjs.js +1 -0
  52. package/dist/components/{pickers/DatePicker → DatePicker}/DatePicker.d.ts +0 -1
  53. package/dist/components/DatePicker/DatePicker.es.js +6 -0
  54. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -0
  55. package/dist/components/{pickers/DatePicker → DatePicker}/DatePicker.stories.d.ts +0 -1
  56. package/dist/components/DatePicker/DatePicker.stories.es.js +16 -0
  57. package/dist/components/{pickers → DatePicker}/index.cjs.js +1 -1
  58. package/dist/components/DatePicker/index.es.js +4 -0
  59. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  60. package/dist/components/Dropzone/Dropzone.d.ts +0 -1
  61. package/dist/components/Dropzone/Dropzone.es.js +1685 -686
  62. package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
  63. package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -1
  64. package/dist/components/Dropzone/Dropzone.stories.es.js +1 -1
  65. package/dist/components/EmptyState/EmptyState.cjs.js +1 -0
  66. package/dist/components/EmptyState/EmptyState.d.ts +12 -0
  67. package/dist/components/EmptyState/EmptyState.es.js +31 -0
  68. package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -0
  69. package/dist/components/{PaperHeader/PaperHeader.stories.d.ts → EmptyState/EmptyState.stories.d.ts} +0 -1
  70. package/dist/components/EmptyState/EmptyState.stories.es.js +17 -0
  71. package/dist/components/EmptyState/index.cjs.js +1 -0
  72. package/dist/components/EmptyState/index.d.ts +2 -0
  73. package/dist/components/EmptyState/index.es.js +4 -0
  74. package/dist/components/FileList/FileList.cjs.js +1 -0
  75. package/dist/components/{lists/FileList → FileList}/FileList.d.ts +0 -1
  76. package/dist/components/{lists/FileList → FileList}/FileList.es.js +1 -1
  77. package/dist/components/FileList/FileList.stories.cjs.js +1 -0
  78. package/dist/components/{lists/FileList → FileList}/FileList.stories.d.ts +0 -1
  79. package/dist/components/{lists/FileList → FileList}/FileList.stories.es.js +3 -3
  80. package/dist/components/FileList/FileListItem.cjs.js +1 -0
  81. package/dist/components/FileList/FileListItem.d.ts +12 -0
  82. package/dist/components/FileList/FileListItem.es.js +29 -0
  83. package/dist/components/Heading/Heading.cjs.js +1 -0
  84. package/dist/components/{PaperHeader/PaperHeader.d.ts → Heading/Heading.d.ts} +6 -5
  85. package/dist/components/Heading/Heading.es.js +39 -0
  86. package/dist/components/Heading/Heading.stories.cjs.js +1 -0
  87. package/dist/components/{buttons/PrimaryButton/PrimaryButton.stories.d.ts → Heading/Heading.stories.d.ts} +0 -1
  88. package/dist/components/Heading/Heading.stories.es.js +22 -0
  89. package/dist/components/Heading/index.cjs.js +1 -0
  90. package/dist/components/Heading/index.d.ts +2 -0
  91. package/dist/components/Heading/index.es.js +4 -0
  92. package/dist/components/IconButton.stories.cjs.js +1 -0
  93. package/dist/components/{buttons/IconButton.stories.d.ts → IconButton.stories.d.ts} +0 -1
  94. package/dist/components/IconButton.stories.es.js +21 -0
  95. package/dist/components/Loader/Loader.cjs.js +1 -1
  96. package/dist/components/Loader/Loader.d.ts +0 -1
  97. package/dist/components/Loader/Loader.es.js +2 -2
  98. package/dist/components/Loader/Loader.stories.cjs.js +1 -1
  99. package/dist/components/Loader/Loader.stories.d.ts +0 -1
  100. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  101. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -1
  102. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +10 -8
  103. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +0 -1
  104. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -0
  105. package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.d.ts +0 -1
  106. package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.es.js +10 -11
  107. package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.stories.cjs.js +1 -1
  108. package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.stories.d.ts +0 -1
  109. package/dist/components/PasswordInput/PasswordInput.stories.es.js +16 -0
  110. package/dist/components/QueryError/QueryError.cjs.js +1 -0
  111. package/dist/components/{feedback/QueryError → QueryError}/QueryError.d.ts +0 -1
  112. package/dist/components/QueryError/QueryError.es.js +43 -0
  113. package/dist/components/{feedback/QueryError → QueryError}/helpers.d.ts +0 -1
  114. package/dist/components/SearchInput/SearchInput.cjs.js +1 -0
  115. package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.d.ts +0 -1
  116. package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.es.js +4 -4
  117. package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -0
  118. package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.stories.d.ts +0 -1
  119. package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.stories.es.js +1 -1
  120. package/dist/components/TabList.stories.cjs.js +1 -0
  121. package/dist/components/{lists/TabList.stories.d.ts → TabList.stories.d.ts} +0 -1
  122. package/dist/components/{lists/TabList.stories.es.js → TabList.stories.es.js} +99 -87
  123. package/dist/components/TextInput/TextInput.cjs.js +1 -0
  124. package/dist/components/{inputs/TextInput → TextInput}/TextInput.d.ts +0 -1
  125. package/dist/components/{inputs/TextInput → TextInput}/TextInput.es.js +1 -1
  126. package/dist/components/TextInput/TextInput.stories.cjs.js +1 -0
  127. package/dist/components/{inputs/TextInput → TextInput}/TextInput.stories.d.ts +0 -1
  128. package/dist/components/{inputs/TextInput → TextInput}/TextInput.stories.es.js +7 -7
  129. package/dist/components/index.cjs.js +1 -1
  130. package/dist/components/index.d.ts +14 -20
  131. package/dist/components/index.es.js +270 -272
  132. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
  133. package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
  134. package/dist/createSvgIcon-Ae1vF9Lv.js +250 -0
  135. package/dist/createSvgIcon-PXjVOXDY.cjs +1 -0
  136. package/dist/error-CRNeivL7.js +5 -0
  137. package/dist/error-Dk3o6ber.cjs +1 -0
  138. package/dist/extendSxProp-BzTGWWcy.js +37 -0
  139. package/dist/extendSxProp-DLhbnNxc.cjs +1 -0
  140. package/dist/{fr-By4s91yO.js → fr-B0c4Eu-I.js} +13 -13
  141. package/dist/{fr-TRjulm1Q.cjs → fr-BtINyNRC.cjs} +1 -1
  142. package/dist/hooks/lazySvgImport.cjs.js +1 -0
  143. package/dist/hooks/lazySvgImport.d.ts +6 -0
  144. package/dist/hooks/lazySvgImport.es.js +34 -0
  145. package/dist/identifier-B_IiMbpZ.cjs +59 -0
  146. package/dist/identifier-Bu3vgTzE.js +3115 -0
  147. package/dist/index-BDy6VH40.cjs +1 -0
  148. package/dist/index-D4YvqRSh.js +45 -0
  149. package/dist/index-DNmEgr4X.js +89 -0
  150. package/dist/index-Dl4BXU0b.cjs +1 -0
  151. package/dist/index.cjs.js +1 -1
  152. package/dist/index.d.ts +0 -1
  153. package/dist/index.es.js +271 -273
  154. package/dist/memoTheme-C4_nd-x4.js +15 -0
  155. package/dist/memoTheme-DvW891YJ.cjs +1 -0
  156. package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
  157. package/dist/refType-DYRsy3ld.cjs +1 -0
  158. package/dist/refType-DvOnKTmB.js +27 -0
  159. package/dist/server-error-CeAtUo4S.cjs +1 -0
  160. package/dist/server-error-DMyaPFs8.js +400 -0
  161. package/dist/useForkRef-D-DyzOXj.js +21 -0
  162. package/dist/useForkRef-D81w5oMb.cjs +1 -0
  163. package/dist/useId-CK6Kn3Tn.js +21 -0
  164. package/dist/useId-DNXtOFeX.cjs +1 -0
  165. package/dist/useTheme-B_3HWqyi.js +88 -0
  166. package/dist/useTheme-BvsnROiB.cjs +1 -0
  167. package/dist/{useTheme-CjBTq22m.js → useTheme-DhYab2-0.js} +5 -5
  168. package/dist/useTheme-vN32oV1t.cjs +1 -0
  169. package/dist/useThemeProps-5hp2m3Xl.cjs +1 -0
  170. package/dist/{useThemeProps-BM4fCFq5.js → useThemeProps-Bmkt_XOR.js} +2 -2
  171. package/dist/useThemeProps-D_gKWuk1.cjs +1 -0
  172. package/dist/useThemeProps-DftpgVZ0.js +24 -0
  173. package/dist/useTimeout-Bx22KOcH.js +53 -0
  174. package/dist/useTimeout-gEG15bRo.cjs +1 -0
  175. package/package.json +14 -17
  176. package/dist/Box-5x1F2S3-.cjs +0 -1
  177. package/dist/Button-C__-QOJY.js +0 -359
  178. package/dist/Button-DKIRmOzf.cjs +0 -1
  179. package/dist/ButtonBase-4F5roLHd.js +0 -827
  180. package/dist/ButtonBase-Bw3wq81v.cjs +0 -75
  181. package/dist/CircularProgress-BNazIBar.js +0 -217
  182. package/dist/CircularProgress-WnNPMTjD.cjs +0 -28
  183. package/dist/DatePicker-B0jLSEvZ.cjs +0 -19
  184. package/dist/DefaultButton-F67BOmrx.js +0 -258
  185. package/dist/DefaultButton-y-mHSNFH.cjs +0 -1
  186. package/dist/IconButton-D_deQOvN.js +0 -184
  187. package/dist/IconButton-DhWgsgQ7.cjs +0 -2
  188. package/dist/InputAdornment-DYqMrYJz.cjs +0 -1
  189. package/dist/InputBase-BeZ70Fbf.cjs +0 -3
  190. package/dist/InputBase-DNkF-TAp.js +0 -794
  191. package/dist/Stack-BOcvai-O.cjs +0 -1
  192. package/dist/Tabs-CG428TT3.cjs +0 -4
  193. package/dist/Tabs-CWujD0SK.js +0 -1091
  194. package/dist/TextField-DDmGQyEr.js +0 -5800
  195. package/dist/TextField-wYRnAj1v.cjs +0 -12
  196. package/dist/Tooltip-O30xWGZU.cjs +0 -95
  197. package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
  198. package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
  199. package/dist/Typography-B2XMXu83.js +0 -178
  200. package/dist/Typography-DR_aF9lJ.cjs +0 -1
  201. package/dist/assets/index.css +0 -1
  202. package/dist/components/PaperHeader/PaperHeader.cjs.js +0 -1
  203. package/dist/components/PaperHeader/PaperHeader.es.js +0 -41
  204. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +0 -1
  205. package/dist/components/PaperHeader/PaperHeader.stories.es.js +0 -28
  206. package/dist/components/PaperHeader/index.cjs.js +0 -1
  207. package/dist/components/PaperHeader/index.d.ts +0 -2
  208. package/dist/components/PaperHeader/index.es.js +0 -4
  209. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +0 -1
  210. package/dist/components/buttons/DefaultButton/DefaultButton.d.ts +0 -9
  211. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +0 -8
  212. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +0 -1
  213. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.d.ts +0 -9
  214. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +0 -143
  215. package/dist/components/buttons/DefaultButton/index.cjs.js +0 -1
  216. package/dist/components/buttons/DefaultButton/index.d.ts +0 -2
  217. package/dist/components/buttons/DefaultButton/index.es.js +0 -4
  218. package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
  219. package/dist/components/buttons/IconButton.stories.es.js +0 -28
  220. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +0 -1
  221. package/dist/components/buttons/PrimaryButton/PrimaryButton.d.ts +0 -6
  222. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +0 -13
  223. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +0 -1
  224. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +0 -25
  225. package/dist/components/buttons/PrimaryButton/index.cjs.js +0 -1
  226. package/dist/components/buttons/PrimaryButton/index.d.ts +0 -2
  227. package/dist/components/buttons/PrimaryButton/index.es.js +0 -4
  228. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +0 -1
  229. package/dist/components/buttons/SecondaryButton/SecondaryButton.d.ts +0 -6
  230. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +0 -6
  231. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +0 -1
  232. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +0 -25
  233. package/dist/components/buttons/SecondaryButton/index.cjs.js +0 -1
  234. package/dist/components/buttons/SecondaryButton/index.d.ts +0 -2
  235. package/dist/components/buttons/SecondaryButton/index.es.js +0 -4
  236. package/dist/components/buttons/index.cjs.js +0 -1
  237. package/dist/components/buttons/index.d.ts +0 -3
  238. package/dist/components/buttons/index.es.js +0 -8
  239. package/dist/components/feedback/Alert/Alert.cjs.js +0 -1
  240. package/dist/components/feedback/Alert/Alert.stories.cjs.js +0 -1
  241. package/dist/components/feedback/QueryError/QueryError.cjs.js +0 -1
  242. package/dist/components/feedback/QueryError/QueryError.es.js +0 -19
  243. package/dist/components/feedback/index.cjs.js +0 -1
  244. package/dist/components/feedback/index.d.ts +0 -2
  245. package/dist/components/feedback/index.es.js +0 -6
  246. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +0 -1
  247. package/dist/components/inputs/PasswordInput/PasswordInput.stories.es.js +0 -16
  248. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +0 -1
  249. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
  250. package/dist/components/inputs/TextInput/TextInput.cjs.js +0 -1
  251. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
  252. package/dist/components/inputs/index.cjs.js +0 -1
  253. package/dist/components/inputs/index.d.ts +0 -3
  254. package/dist/components/inputs/index.es.js +0 -8
  255. package/dist/components/lists/FileList/FileList.cjs.js +0 -1
  256. package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
  257. package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
  258. package/dist/components/lists/FileList/FileListItem.d.ts +0 -14
  259. package/dist/components/lists/FileList/FileListItem.es.js +0 -42
  260. package/dist/components/lists/TabList.stories.cjs.js +0 -1
  261. package/dist/components/lists/index.cjs.js +0 -1
  262. package/dist/components/lists/index.d.ts +0 -1
  263. package/dist/components/lists/index.es.js +0 -6
  264. package/dist/components/pickers/DatePicker/DatePicker.cjs.js +0 -1
  265. package/dist/components/pickers/DatePicker/DatePicker.es.js +0 -6
  266. package/dist/components/pickers/DatePicker/DatePicker.stories.cjs.js +0 -1
  267. package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +0 -16
  268. package/dist/components/pickers/DatePicker/index.cjs.js +0 -1
  269. package/dist/components/pickers/DatePicker/index.es.js +0 -4
  270. package/dist/components/pickers/index.d.ts +0 -1
  271. package/dist/components/pickers/index.es.js +0 -4
  272. package/dist/createStyled-CzVedz8V.js +0 -142
  273. package/dist/createStyled-LobpFGWo.cjs +0 -1
  274. package/dist/createSvgIcon-B8vHI3I6.js +0 -183
  275. package/dist/createSvgIcon-BGm-SWUB.cjs +0 -1
  276. package/dist/createSvgIcon-CKlvKClV.cjs +0 -2
  277. package/dist/createSvgIcon-DjuUwmEp.js +0 -75
  278. package/dist/identifier-4KVhx666.cjs +0 -50
  279. package/dist/identifier-D-ng7Qqa.js +0 -3047
  280. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  281. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  282. package/dist/refType-BhXrhWFB.cjs +0 -1
  283. package/dist/refType-COGEdfch.js +0 -29
  284. package/dist/styled-ZF_yhfMW.cjs +0 -17
  285. package/dist/styled-xiAudcD_.js +0 -533
  286. package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
  287. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  288. package/dist/useControlled-DKpcyPsg.cjs +0 -3
  289. package/dist/useControlled-DoRrpN8o.js +0 -48
  290. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  291. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  292. package/dist/useId-BW-oWmul.js +0 -19
  293. package/dist/useId-Cw0TtD-8.cjs +0 -1
  294. package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
  295. package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
  296. package/dist/useTheme-B5RCz7rY.cjs +0 -1
  297. package/dist/useTheme-iNHILPzK.js +0 -99
  298. package/dist/useTheme-kqsjFBnC.cjs +0 -1
  299. package/dist/useThemeProps-B-Oq4Y2j.cjs +0 -1
  300. package/dist/useThemeProps-BHAsCmc4.cjs +0 -1
  301. package/dist/useThemeProps-BVvSbkPP.js +0 -17
  302. package/dist/useTimeout-BdvDipeg.js +0 -47
  303. package/dist/useTimeout-XUWYBnl6.cjs +0 -1
  304. package/dist/vite-env.d.cjs.js +0 -1
  305. package/dist/vite-env.d.es.js +0 -1
  306. /package/dist/components/{feedback/Alert → Alert}/Alert.es.js +0 -0
  307. /package/dist/components/{feedback/Alert → Alert}/index.cjs.js +0 -0
  308. /package/dist/components/{feedback/Alert → Alert}/index.d.ts +0 -0
  309. /package/dist/components/{feedback/Alert → Alert}/index.es.js +0 -0
  310. /package/dist/components/{pickers/DatePicker → DatePicker}/index.d.ts +0 -0
  311. /package/dist/components/{lists/FileList → FileList}/index.cjs.js +0 -0
  312. /package/dist/components/{lists/FileList → FileList}/index.d.ts +0 -0
  313. /package/dist/components/{lists/FileList → FileList}/index.es.js +0 -0
  314. /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.cjs.js +0 -0
  315. /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.d.ts +0 -0
  316. /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.es.js +0 -0
  317. /package/dist/components/{feedback/QueryError → QueryError}/helpers.cjs.js +0 -0
  318. /package/dist/components/{feedback/QueryError → QueryError}/helpers.es.js +0 -0
  319. /package/dist/components/{feedback/QueryError → QueryError}/index.cjs.js +0 -0
  320. /package/dist/components/{feedback/QueryError → QueryError}/index.d.ts +0 -0
  321. /package/dist/components/{feedback/QueryError → QueryError}/index.es.js +0 -0
  322. /package/dist/components/{inputs/SearchInput → SearchInput}/index.cjs.js +0 -0
  323. /package/dist/components/{inputs/SearchInput → SearchInput}/index.d.ts +0 -0
  324. /package/dist/components/{inputs/SearchInput → SearchInput}/index.es.js +0 -0
  325. /package/dist/components/{inputs/TextInput → TextInput}/index.cjs.js +0 -0
  326. /package/dist/components/{inputs/TextInput → TextInput}/index.d.ts +0 -0
  327. /package/dist/components/{inputs/TextInput → TextInput}/index.es.js +0 -0
@@ -1,1091 +0,0 @@
1
- import { w as me, v as ve, q as Le, m as b, _ as ae, x as k, P as o } from "./identifier-D-ng7Qqa.js";
2
- import * as u from "react";
3
- import { s as _, u as Se, c as ye, b as st } from "./styled-xiAudcD_.js";
4
- import { jsxs as Q, jsx as C } from "react/jsx-runtime";
5
- import { B as ke } from "./ButtonBase-4F5roLHd.js";
6
- import { u as at } from "./unsupportedProp-BuVD30Gh.js";
7
- import { a as Fe, b as se, u as it } from "./useTheme-iNHILPzK.js";
8
- import { u as ct } from "./useForkRef-DwN_Iz9R.js";
9
- import { a as $e, d as Ae, o as dt } from "./ownerWindow-C7EH1lr6.js";
10
- import { u as be } from "./useTimeout-BdvDipeg.js";
11
- import { r as ut } from "./refType-COGEdfch.js";
12
- import { c as De } from "./createSvgIcon-B8vHI3I6.js";
13
- let X;
14
- function je() {
15
- if (X)
16
- return X;
17
- const e = document.createElement("div"), t = document.createElement("div");
18
- return t.style.width = "10px", t.style.height = "1px", e.appendChild(t), e.dir = "rtl", e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute", e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e), X = "reverse", e.scrollLeft > 0 ? X = "default" : (e.scrollLeft = 1, e.scrollLeft === 0 && (X = "negative")), document.body.removeChild(e), X;
19
- }
20
- function pt(e, t) {
21
- const n = e.scrollLeft;
22
- if (t !== "rtl")
23
- return n;
24
- switch (je()) {
25
- case "negative":
26
- return e.scrollWidth - e.clientWidth + n;
27
- case "reverse":
28
- return e.scrollWidth - e.clientWidth - n;
29
- default:
30
- return n;
31
- }
32
- }
33
- function ft(e) {
34
- return me("MuiTab", e);
35
- }
36
- const bt = ve("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]), L = bt, ht = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"], mt = (e) => {
37
- const {
38
- classes: t,
39
- textColor: n,
40
- fullWidth: c,
41
- wrapped: i,
42
- icon: d,
43
- label: m,
44
- selected: h,
45
- disabled: p
46
- } = e, y = {
47
- root: ["root", d && m && "labelIcon", `textColor${Le(n)}`, c && "fullWidth", i && "wrapped", h && "selected", p && "disabled"],
48
- iconWrapper: ["iconWrapper"]
49
- };
50
- return ye(y, ft, t);
51
- }, vt = _(ke, {
52
- name: "MuiTab",
53
- slot: "Root",
54
- overridesResolver: (e, t) => {
55
- const {
56
- ownerState: n
57
- } = e;
58
- return [t.root, n.label && n.icon && t.labelIcon, t[`textColor${Le(n.textColor)}`], n.fullWidth && t.fullWidth, n.wrapped && t.wrapped, {
59
- [`& .${L.iconWrapper}`]: t.iconWrapper
60
- }];
61
- }
62
- })(({
63
- theme: e,
64
- ownerState: t
65
- }) => b({}, e.typography.button, {
66
- maxWidth: 360,
67
- minWidth: 90,
68
- position: "relative",
69
- minHeight: 48,
70
- flexShrink: 0,
71
- padding: "12px 16px",
72
- overflow: "hidden",
73
- whiteSpace: "normal",
74
- textAlign: "center"
75
- }, t.label && {
76
- flexDirection: t.iconPosition === "top" || t.iconPosition === "bottom" ? "column" : "row"
77
- }, {
78
- lineHeight: 1.25
79
- }, t.icon && t.label && {
80
- minHeight: 72,
81
- paddingTop: 9,
82
- paddingBottom: 9,
83
- [`& > .${L.iconWrapper}`]: b({}, t.iconPosition === "top" && {
84
- marginBottom: 6
85
- }, t.iconPosition === "bottom" && {
86
- marginTop: 6
87
- }, t.iconPosition === "start" && {
88
- marginRight: e.spacing(1)
89
- }, t.iconPosition === "end" && {
90
- marginLeft: e.spacing(1)
91
- })
92
- }, t.textColor === "inherit" && {
93
- color: "inherit",
94
- opacity: 0.6,
95
- // same opacity as theme.palette.text.secondary
96
- [`&.${L.selected}`]: {
97
- opacity: 1
98
- },
99
- [`&.${L.disabled}`]: {
100
- opacity: (e.vars || e).palette.action.disabledOpacity
101
- }
102
- }, t.textColor === "primary" && {
103
- color: (e.vars || e).palette.text.secondary,
104
- [`&.${L.selected}`]: {
105
- color: (e.vars || e).palette.primary.main
106
- },
107
- [`&.${L.disabled}`]: {
108
- color: (e.vars || e).palette.text.disabled
109
- }
110
- }, t.textColor === "secondary" && {
111
- color: (e.vars || e).palette.text.secondary,
112
- [`&.${L.selected}`]: {
113
- color: (e.vars || e).palette.secondary.main
114
- },
115
- [`&.${L.disabled}`]: {
116
- color: (e.vars || e).palette.text.disabled
117
- }
118
- }, t.fullWidth && {
119
- flexShrink: 1,
120
- flexGrow: 1,
121
- flexBasis: 0,
122
- maxWidth: "none"
123
- }, t.wrapped && {
124
- fontSize: e.typography.pxToRem(12)
125
- })), _e = /* @__PURE__ */ u.forwardRef(function(t, n) {
126
- const c = Se({
127
- props: t,
128
- name: "MuiTab"
129
- }), {
130
- className: i,
131
- disabled: d = !1,
132
- disableFocusRipple: m = !1,
133
- // eslint-disable-next-line react/prop-types
134
- fullWidth: h,
135
- icon: p,
136
- iconPosition: y = "top",
137
- // eslint-disable-next-line react/prop-types
138
- indicator: w,
139
- label: T,
140
- onChange: v,
141
- onClick: I,
142
- onFocus: F,
143
- // eslint-disable-next-line react/prop-types
144
- selected: E,
145
- // eslint-disable-next-line react/prop-types
146
- selectionFollowsFocus: g,
147
- // eslint-disable-next-line react/prop-types
148
- textColor: H = "inherit",
149
- value: N,
150
- wrapped: ie = !1
151
- } = c, V = ae(c, ht), Y = b({}, c, {
152
- disabled: d,
153
- disableFocusRipple: m,
154
- selected: E,
155
- icon: !!p,
156
- iconPosition: y,
157
- label: !!T,
158
- fullWidth: h,
159
- textColor: H,
160
- wrapped: ie
161
- }), U = mt(Y), $ = p && T && /* @__PURE__ */ u.isValidElement(p) ? /* @__PURE__ */ u.cloneElement(p, {
162
- className: k(U.iconWrapper, p.props.className)
163
- }) : p, Z = (M) => {
164
- !E && v && v(M, N), I && I(M);
165
- }, P = (M) => {
166
- g && !E && v && v(M, N), F && F(M);
167
- };
168
- return /* @__PURE__ */ Q(vt, b({
169
- focusRipple: !m,
170
- className: k(U.root, i),
171
- ref: n,
172
- role: "tab",
173
- "aria-selected": E,
174
- disabled: d,
175
- onClick: Z,
176
- onFocus: P,
177
- ownerState: Y,
178
- tabIndex: E ? 0 : -1
179
- }, V, {
180
- children: [y === "top" || y === "start" ? /* @__PURE__ */ Q(u.Fragment, {
181
- children: [$, T]
182
- }) : /* @__PURE__ */ Q(u.Fragment, {
183
- children: [T, $]
184
- }), w]
185
- }));
186
- });
187
- process.env.NODE_ENV !== "production" && (_e.propTypes = {
188
- // ┌────────────────────────────── Warning ──────────────────────────────┐
189
- // │ These PropTypes are generated from the TypeScript type definitions. │
190
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
191
- // └─────────────────────────────────────────────────────────────────────┘
192
- /**
193
- * This prop isn't supported.
194
- * Use the `component` prop if you need to change the children structure.
195
- */
196
- children: at,
197
- /**
198
- * Override or extend the styles applied to the component.
199
- */
200
- classes: o.object,
201
- /**
202
- * @ignore
203
- */
204
- className: o.string,
205
- /**
206
- * If `true`, the component is disabled.
207
- * @default false
208
- */
209
- disabled: o.bool,
210
- /**
211
- * If `true`, the keyboard focus ripple is disabled.
212
- * @default false
213
- */
214
- disableFocusRipple: o.bool,
215
- /**
216
- * If `true`, the ripple effect is disabled.
217
- *
218
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
219
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
220
- * @default false
221
- */
222
- disableRipple: o.bool,
223
- /**
224
- * The icon to display.
225
- */
226
- icon: o.oneOfType([o.element, o.string]),
227
- /**
228
- * The position of the icon relative to the label.
229
- * @default 'top'
230
- */
231
- iconPosition: o.oneOf(["bottom", "end", "start", "top"]),
232
- /**
233
- * The label element.
234
- */
235
- label: o.node,
236
- /**
237
- * @ignore
238
- */
239
- onChange: o.func,
240
- /**
241
- * @ignore
242
- */
243
- onClick: o.func,
244
- /**
245
- * @ignore
246
- */
247
- onFocus: o.func,
248
- /**
249
- * The system prop that allows defining system overrides as well as additional CSS styles.
250
- */
251
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
252
- /**
253
- * You can provide your own value. Otherwise, we fallback to the child position index.
254
- */
255
- value: o.any,
256
- /**
257
- * Tab labels appear in a single row.
258
- * They can use a second line if needed.
259
- * @default false
260
- */
261
- wrapped: o.bool
262
- });
263
- const qt = _e, St = De(/* @__PURE__ */ C("path", {
264
- d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
265
- }), "KeyboardArrowLeft"), yt = De(/* @__PURE__ */ C("path", {
266
- d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
267
- }), "KeyboardArrowRight");
268
- function gt(e) {
269
- return (1 + Math.sin(Math.PI * e - Math.PI / 2)) / 2;
270
- }
271
- function Tt(e, t, n, c = {}, i = () => {
272
- }) {
273
- const {
274
- ease: d = gt,
275
- duration: m = 300
276
- // standard
277
- } = c;
278
- let h = null;
279
- const p = t[e];
280
- let y = !1;
281
- const w = () => {
282
- y = !0;
283
- }, T = (v) => {
284
- if (y) {
285
- i(new Error("Animation cancelled"));
286
- return;
287
- }
288
- h === null && (h = v);
289
- const I = Math.min(1, (v - h) / m);
290
- if (t[e] = d(I) * (n - p) + p, I >= 1) {
291
- requestAnimationFrame(() => {
292
- i(null);
293
- });
294
- return;
295
- }
296
- requestAnimationFrame(T);
297
- };
298
- return p === n ? (i(new Error("Element already at target position")), w) : (requestAnimationFrame(T), w);
299
- }
300
- const xt = ["onChange"], Bt = {
301
- width: 99,
302
- height: 99,
303
- position: "absolute",
304
- top: -9999,
305
- overflow: "scroll"
306
- };
307
- function He(e) {
308
- const {
309
- onChange: t
310
- } = e, n = ae(e, xt), c = u.useRef(), i = u.useRef(null), d = () => {
311
- c.current = i.current.offsetHeight - i.current.clientHeight;
312
- };
313
- return ct(() => {
314
- const m = Ae(() => {
315
- const p = c.current;
316
- d(), p !== c.current && t(c.current);
317
- }), h = $e(i.current);
318
- return h.addEventListener("resize", m), () => {
319
- m.clear(), h.removeEventListener("resize", m);
320
- };
321
- }, [t]), u.useEffect(() => {
322
- d(), t(c.current);
323
- }, [t]), /* @__PURE__ */ C("div", b({
324
- style: Bt,
325
- ref: i
326
- }, n));
327
- }
328
- process.env.NODE_ENV !== "production" && (He.propTypes = {
329
- onChange: o.func.isRequired
330
- });
331
- function Ct(e) {
332
- return me("MuiTabScrollButton", e);
333
- }
334
- const wt = ve("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), It = ["className", "slots", "slotProps", "direction", "orientation", "disabled"], Et = (e) => {
335
- const {
336
- classes: t,
337
- orientation: n,
338
- disabled: c
339
- } = e;
340
- return ye({
341
- root: ["root", n, c && "disabled"]
342
- }, Ct, t);
343
- }, Ot = _(ke, {
344
- name: "MuiTabScrollButton",
345
- slot: "Root",
346
- overridesResolver: (e, t) => {
347
- const {
348
- ownerState: n
349
- } = e;
350
- return [t.root, n.orientation && t[n.orientation]];
351
- }
352
- })(({
353
- ownerState: e
354
- }) => b({
355
- width: 40,
356
- flexShrink: 0,
357
- opacity: 0.8,
358
- [`&.${wt.disabled}`]: {
359
- opacity: 0
360
- }
361
- }, e.orientation === "vertical" && {
362
- width: "100%",
363
- height: 40,
364
- "& svg": {
365
- transform: `rotate(${e.isRtl ? -90 : 90}deg)`
366
- }
367
- })), Ve = /* @__PURE__ */ u.forwardRef(function(t, n) {
368
- var c, i;
369
- const d = Se({
370
- props: t,
371
- name: "MuiTabScrollButton"
372
- }), {
373
- className: m,
374
- slots: h = {},
375
- slotProps: p = {},
376
- direction: y
377
- } = d, w = ae(d, It), T = Fe(), v = b({
378
- isRtl: T
379
- }, d), I = Et(v), F = (c = h.StartScrollButtonIcon) != null ? c : St, E = (i = h.EndScrollButtonIcon) != null ? i : yt, g = se({
380
- elementType: F,
381
- externalSlotProps: p.startScrollButtonIcon,
382
- additionalProps: {
383
- fontSize: "small"
384
- },
385
- ownerState: v
386
- }), H = se({
387
- elementType: E,
388
- externalSlotProps: p.endScrollButtonIcon,
389
- additionalProps: {
390
- fontSize: "small"
391
- },
392
- ownerState: v
393
- });
394
- return /* @__PURE__ */ C(Ot, b({
395
- component: "div",
396
- className: k(I.root, m),
397
- ref: n,
398
- role: null,
399
- ownerState: v,
400
- tabIndex: null
401
- }, w, {
402
- children: y === "left" ? /* @__PURE__ */ C(F, b({}, g)) : /* @__PURE__ */ C(E, b({}, H))
403
- }));
404
- });
405
- process.env.NODE_ENV !== "production" && (Ve.propTypes = {
406
- // ┌────────────────────────────── Warning ──────────────────────────────┐
407
- // │ These PropTypes are generated from the TypeScript type definitions. │
408
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
409
- // └─────────────────────────────────────────────────────────────────────┘
410
- /**
411
- * The content of the component.
412
- */
413
- children: o.node,
414
- /**
415
- * Override or extend the styles applied to the component.
416
- */
417
- classes: o.object,
418
- /**
419
- * @ignore
420
- */
421
- className: o.string,
422
- /**
423
- * The direction the button should indicate.
424
- */
425
- direction: o.oneOf(["left", "right"]).isRequired,
426
- /**
427
- * If `true`, the component is disabled.
428
- * @default false
429
- */
430
- disabled: o.bool,
431
- /**
432
- * The component orientation (layout flow direction).
433
- */
434
- orientation: o.oneOf(["horizontal", "vertical"]).isRequired,
435
- /**
436
- * The extra props for the slot components.
437
- * You can override the existing props or add new ones.
438
- * @default {}
439
- */
440
- slotProps: o.shape({
441
- endScrollButtonIcon: o.oneOfType([o.func, o.object]),
442
- startScrollButtonIcon: o.oneOfType([o.func, o.object])
443
- }),
444
- /**
445
- * The components used for each slot inside.
446
- * @default {}
447
- */
448
- slots: o.shape({
449
- EndScrollButtonIcon: o.elementType,
450
- StartScrollButtonIcon: o.elementType
451
- }),
452
- /**
453
- * The system prop that allows defining system overrides as well as additional CSS styles.
454
- */
455
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
456
- });
457
- function Nt(e) {
458
- return me("MuiTabs", e);
459
- }
460
- const Mt = ve("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), he = Mt, Rt = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], Re = (e, t) => e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : e.firstChild, Pe = (e, t) => e === t ? e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : e.lastChild, ne = (e, t, n) => {
461
- let c = !1, i = n(e, t);
462
- for (; i; ) {
463
- if (i === e.firstChild) {
464
- if (c)
465
- return;
466
- c = !0;
467
- }
468
- const d = i.disabled || i.getAttribute("aria-disabled") === "true";
469
- if (!i.hasAttribute("tabindex") || d)
470
- i = n(e, i);
471
- else {
472
- i.focus();
473
- return;
474
- }
475
- }
476
- }, Pt = (e) => {
477
- const {
478
- vertical: t,
479
- fixed: n,
480
- hideScrollbar: c,
481
- scrollableX: i,
482
- scrollableY: d,
483
- centered: m,
484
- scrollButtonsHideMobile: h,
485
- classes: p
486
- } = e;
487
- return ye({
488
- root: ["root", t && "vertical"],
489
- scroller: ["scroller", n && "fixed", c && "hideScrollbar", i && "scrollableX", d && "scrollableY"],
490
- flexContainer: ["flexContainer", t && "flexContainerVertical", m && "centered"],
491
- indicator: ["indicator"],
492
- scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
493
- scrollableX: [i && "scrollableX"],
494
- hideScrollbar: [c && "hideScrollbar"]
495
- }, Nt, p);
496
- }, Wt = _("div", {
497
- name: "MuiTabs",
498
- slot: "Root",
499
- overridesResolver: (e, t) => {
500
- const {
501
- ownerState: n
502
- } = e;
503
- return [{
504
- [`& .${he.scrollButtons}`]: t.scrollButtons
505
- }, {
506
- [`& .${he.scrollButtons}`]: n.scrollButtonsHideMobile && t.scrollButtonsHideMobile
507
- }, t.root, n.vertical && t.vertical];
508
- }
509
- })(({
510
- ownerState: e,
511
- theme: t
512
- }) => b({
513
- overflow: "hidden",
514
- minHeight: 48,
515
- // Add iOS momentum scrolling for iOS < 13.0
516
- WebkitOverflowScrolling: "touch",
517
- display: "flex"
518
- }, e.vertical && {
519
- flexDirection: "column"
520
- }, e.scrollButtonsHideMobile && {
521
- [`& .${he.scrollButtons}`]: {
522
- [t.breakpoints.down("sm")]: {
523
- display: "none"
524
- }
525
- }
526
- })), zt = _("div", {
527
- name: "MuiTabs",
528
- slot: "Scroller",
529
- overridesResolver: (e, t) => {
530
- const {
531
- ownerState: n
532
- } = e;
533
- return [t.scroller, n.fixed && t.fixed, n.hideScrollbar && t.hideScrollbar, n.scrollableX && t.scrollableX, n.scrollableY && t.scrollableY];
534
- }
535
- })(({
536
- ownerState: e
537
- }) => b({
538
- position: "relative",
539
- display: "inline-block",
540
- flex: "1 1 auto",
541
- whiteSpace: "nowrap"
542
- }, e.fixed && {
543
- overflowX: "hidden",
544
- width: "100%"
545
- }, e.hideScrollbar && {
546
- // Hide dimensionless scrollbar on macOS
547
- scrollbarWidth: "none",
548
- // Firefox
549
- "&::-webkit-scrollbar": {
550
- display: "none"
551
- // Safari + Chrome
552
- }
553
- }, e.scrollableX && {
554
- overflowX: "auto",
555
- overflowY: "hidden"
556
- }, e.scrollableY && {
557
- overflowY: "auto",
558
- overflowX: "hidden"
559
- })), Lt = _("div", {
560
- name: "MuiTabs",
561
- slot: "FlexContainer",
562
- overridesResolver: (e, t) => {
563
- const {
564
- ownerState: n
565
- } = e;
566
- return [t.flexContainer, n.vertical && t.flexContainerVertical, n.centered && t.centered];
567
- }
568
- })(({
569
- ownerState: e
570
- }) => b({
571
- display: "flex"
572
- }, e.vertical && {
573
- flexDirection: "column"
574
- }, e.centered && {
575
- justifyContent: "center"
576
- })), kt = _("span", {
577
- name: "MuiTabs",
578
- slot: "Indicator",
579
- overridesResolver: (e, t) => t.indicator
580
- })(({
581
- ownerState: e,
582
- theme: t
583
- }) => b({
584
- position: "absolute",
585
- height: 2,
586
- bottom: 0,
587
- width: "100%",
588
- transition: t.transitions.create()
589
- }, e.indicatorColor === "primary" && {
590
- backgroundColor: (t.vars || t).palette.primary.main
591
- }, e.indicatorColor === "secondary" && {
592
- backgroundColor: (t.vars || t).palette.secondary.main
593
- }, e.vertical && {
594
- height: "100%",
595
- width: 2,
596
- right: 0
597
- })), Ft = _(He)({
598
- overflowX: "auto",
599
- overflowY: "hidden",
600
- // Hide dimensionless scrollbar on macOS
601
- scrollbarWidth: "none",
602
- // Firefox
603
- "&::-webkit-scrollbar": {
604
- display: "none"
605
- // Safari + Chrome
606
- }
607
- }), We = {};
608
- let ze = !1;
609
- const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
610
- const c = Se({
611
- props: t,
612
- name: "MuiTabs"
613
- }), i = it(), d = Fe(), {
614
- "aria-label": m,
615
- "aria-labelledby": h,
616
- action: p,
617
- centered: y = !1,
618
- children: w,
619
- className: T,
620
- component: v = "div",
621
- allowScrollButtonsMobile: I = !1,
622
- indicatorColor: F = "primary",
623
- onChange: E,
624
- orientation: g = "horizontal",
625
- ScrollButtonComponent: H = Ve,
626
- scrollButtons: N = "auto",
627
- selectionFollowsFocus: ie,
628
- slots: V = {},
629
- slotProps: Y = {},
630
- TabIndicatorProps: U = {},
631
- TabScrollButtonProps: $ = {},
632
- textColor: Z = "primary",
633
- value: P,
634
- variant: M = "standard",
635
- visibleScrollbar: ce = !1
636
- } = c, Xe = ae(c, Rt), x = M === "scrollable", B = g === "vertical", K = B ? "scrollTop" : "scrollLeft", ee = B ? "top" : "left", te = B ? "bottom" : "right", de = B ? "clientHeight" : "clientWidth", q = B ? "height" : "width", A = b({}, c, {
637
- component: v,
638
- allowScrollButtonsMobile: I,
639
- indicatorColor: F,
640
- orientation: g,
641
- vertical: B,
642
- scrollButtons: N,
643
- textColor: Z,
644
- variant: M,
645
- visibleScrollbar: ce,
646
- fixed: !x,
647
- hideScrollbar: x && !ce,
648
- scrollableX: x && !B,
649
- scrollableY: x && B,
650
- centered: y && !x,
651
- scrollButtonsHideMobile: !I
652
- }), W = Pt(A), Ye = se({
653
- elementType: V.StartScrollButtonIcon,
654
- externalSlotProps: Y.startScrollButtonIcon,
655
- ownerState: A
656
- }), Ke = se({
657
- elementType: V.EndScrollButtonIcon,
658
- externalSlotProps: Y.endScrollButtonIcon,
659
- ownerState: A
660
- });
661
- process.env.NODE_ENV !== "production" && y && x && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
662
- const [ge, qe] = u.useState(!1), [D, Te] = u.useState(We), [xe, Ge] = u.useState(!1), [Be, Je] = u.useState(!1), [Ce, Qe] = u.useState(!1), [we, Ze] = u.useState({
663
- overflow: "hidden",
664
- scrollbarWidth: 0
665
- }), oe = /* @__PURE__ */ new Map(), R = u.useRef(null), j = u.useRef(null), Ie = () => {
666
- const r = R.current;
667
- let l;
668
- if (r) {
669
- const a = r.getBoundingClientRect();
670
- l = {
671
- clientWidth: r.clientWidth,
672
- scrollLeft: r.scrollLeft,
673
- scrollTop: r.scrollTop,
674
- scrollLeftNormalized: pt(r, d ? "rtl" : "ltr"),
675
- scrollWidth: r.scrollWidth,
676
- top: a.top,
677
- bottom: a.bottom,
678
- left: a.left,
679
- right: a.right
680
- };
681
- }
682
- let s;
683
- if (r && P !== !1) {
684
- const a = j.current.children;
685
- if (a.length > 0) {
686
- const f = a[oe.get(P)];
687
- process.env.NODE_ENV !== "production" && (f || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${P}".`, oe.keys ? `You can provide one of the following values: ${Array.from(oe.keys()).join(", ")}.` : null].join(`
688
- `))), s = f ? f.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !ze && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
689
- l.clientWidth !== 0 && (l = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${P}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
690
- `)), ze = !0);
691
- }
692
- }
693
- return {
694
- tabsMeta: l,
695
- tabMeta: s
696
- };
697
- }, G = be(() => {
698
- const {
699
- tabsMeta: r,
700
- tabMeta: l
701
- } = Ie();
702
- let s = 0, a;
703
- if (B)
704
- a = "top", l && r && (s = l.top - r.top + r.scrollTop);
705
- else if (a = d ? "right" : "left", l && r) {
706
- const S = d ? r.scrollLeftNormalized + r.clientWidth - r.scrollWidth : r.scrollLeft;
707
- s = (d ? -1 : 1) * (l[a] - r[a] + S);
708
- }
709
- const f = {
710
- [a]: s,
711
- // May be wrong until the font is loaded.
712
- [q]: l ? l[q] : 0
713
- };
714
- if (isNaN(D[a]) || isNaN(D[q]))
715
- Te(f);
716
- else {
717
- const S = Math.abs(D[a] - f[a]), O = Math.abs(D[q] - f[q]);
718
- (S >= 1 || O >= 1) && Te(f);
719
- }
720
- }), ue = (r, {
721
- animation: l = !0
722
- } = {}) => {
723
- l ? Tt(K, R.current, r, {
724
- duration: i.transitions.duration.standard
725
- }) : R.current[K] = r;
726
- }, Ee = (r) => {
727
- let l = R.current[K];
728
- B ? l += r : (l += r * (d ? -1 : 1), l *= d && je() === "reverse" ? -1 : 1), ue(l);
729
- }, Oe = () => {
730
- const r = R.current[de];
731
- let l = 0;
732
- const s = Array.from(j.current.children);
733
- for (let a = 0; a < s.length; a += 1) {
734
- const f = s[a];
735
- if (l + f[de] > r) {
736
- a === 0 && (l = r);
737
- break;
738
- }
739
- l += f[de];
740
- }
741
- return l;
742
- }, et = () => {
743
- Ee(-1 * Oe());
744
- }, tt = () => {
745
- Ee(Oe());
746
- }, ot = u.useCallback((r) => {
747
- Ze({
748
- overflow: null,
749
- scrollbarWidth: r
750
- });
751
- }, []), rt = () => {
752
- const r = {};
753
- r.scrollbarSizeListener = x ? /* @__PURE__ */ C(Ft, {
754
- onChange: ot,
755
- className: k(W.scrollableX, W.hideScrollbar)
756
- }) : null;
757
- const s = x && (N === "auto" && (xe || Be) || N === !0);
758
- return r.scrollButtonStart = s ? /* @__PURE__ */ C(H, b({
759
- slots: {
760
- StartScrollButtonIcon: V.StartScrollButtonIcon
761
- },
762
- slotProps: {
763
- startScrollButtonIcon: Ye
764
- },
765
- orientation: g,
766
- direction: d ? "right" : "left",
767
- onClick: et,
768
- disabled: !xe
769
- }, $, {
770
- className: k(W.scrollButtons, $.className)
771
- })) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ C(H, b({
772
- slots: {
773
- EndScrollButtonIcon: V.EndScrollButtonIcon
774
- },
775
- slotProps: {
776
- endScrollButtonIcon: Ke
777
- },
778
- orientation: g,
779
- direction: d ? "left" : "right",
780
- onClick: tt,
781
- disabled: !Be
782
- }, $, {
783
- className: k(W.scrollButtons, $.className)
784
- })) : null, r;
785
- }, Ne = be((r) => {
786
- const {
787
- tabsMeta: l,
788
- tabMeta: s
789
- } = Ie();
790
- if (!(!s || !l)) {
791
- if (s[ee] < l[ee]) {
792
- const a = l[K] + (s[ee] - l[ee]);
793
- ue(a, {
794
- animation: r
795
- });
796
- } else if (s[te] > l[te]) {
797
- const a = l[K] + (s[te] - l[te]);
798
- ue(a, {
799
- animation: r
800
- });
801
- }
802
- }
803
- }), re = be(() => {
804
- x && N !== !1 && Qe(!Ce);
805
- });
806
- u.useEffect(() => {
807
- const r = Ae(() => {
808
- R.current && G();
809
- });
810
- let l;
811
- const s = (S) => {
812
- S.forEach((O) => {
813
- O.removedNodes.forEach((J) => {
814
- var z;
815
- (z = l) == null || z.unobserve(J);
816
- }), O.addedNodes.forEach((J) => {
817
- var z;
818
- (z = l) == null || z.observe(J);
819
- });
820
- }), r(), re();
821
- }, a = $e(R.current);
822
- a.addEventListener("resize", r);
823
- let f;
824
- return typeof ResizeObserver < "u" && (l = new ResizeObserver(r), Array.from(j.current.children).forEach((S) => {
825
- l.observe(S);
826
- })), typeof MutationObserver < "u" && (f = new MutationObserver(s), f.observe(j.current, {
827
- childList: !0
828
- })), () => {
829
- var S, O;
830
- r.clear(), a.removeEventListener("resize", r), (S = f) == null || S.disconnect(), (O = l) == null || O.disconnect();
831
- };
832
- }, [G, re]), u.useEffect(() => {
833
- const r = Array.from(j.current.children), l = r.length;
834
- if (typeof IntersectionObserver < "u" && l > 0 && x && N !== !1) {
835
- const s = r[0], a = r[l - 1], f = {
836
- root: R.current,
837
- threshold: 0.99
838
- }, S = (fe) => {
839
- Ge(!fe[0].isIntersecting);
840
- }, O = new IntersectionObserver(S, f);
841
- O.observe(s);
842
- const J = (fe) => {
843
- Je(!fe[0].isIntersecting);
844
- }, z = new IntersectionObserver(J, f);
845
- return z.observe(a), () => {
846
- O.disconnect(), z.disconnect();
847
- };
848
- }
849
- }, [x, N, Ce, w == null ? void 0 : w.length]), u.useEffect(() => {
850
- qe(!0);
851
- }, []), u.useEffect(() => {
852
- G();
853
- }), u.useEffect(() => {
854
- Ne(We !== D);
855
- }, [Ne, D]), u.useImperativeHandle(p, () => ({
856
- updateIndicator: G,
857
- updateScrollButtons: re
858
- }), [G, re]);
859
- const Me = /* @__PURE__ */ C(kt, b({}, U, {
860
- className: k(W.indicator, U.className),
861
- ownerState: A,
862
- style: b({}, D, U.style)
863
- }));
864
- let le = 0;
865
- const lt = u.Children.map(w, (r) => {
866
- if (!/* @__PURE__ */ u.isValidElement(r))
867
- return null;
868
- process.env.NODE_ENV !== "production" && st.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
869
- `));
870
- const l = r.props.value === void 0 ? le : r.props.value;
871
- oe.set(l, le);
872
- const s = l === P;
873
- return le += 1, /* @__PURE__ */ u.cloneElement(r, b({
874
- fullWidth: M === "fullWidth",
875
- indicator: s && !ge && Me,
876
- selected: s,
877
- selectionFollowsFocus: ie,
878
- onChange: E,
879
- textColor: Z,
880
- value: l
881
- }, le === 1 && P === !1 && !r.props.tabIndex ? {
882
- tabIndex: 0
883
- } : {}));
884
- }), nt = (r) => {
885
- const l = j.current, s = dt(l).activeElement;
886
- if (s.getAttribute("role") !== "tab")
887
- return;
888
- let f = g === "horizontal" ? "ArrowLeft" : "ArrowUp", S = g === "horizontal" ? "ArrowRight" : "ArrowDown";
889
- switch (g === "horizontal" && d && (f = "ArrowRight", S = "ArrowLeft"), r.key) {
890
- case f:
891
- r.preventDefault(), ne(l, s, Pe);
892
- break;
893
- case S:
894
- r.preventDefault(), ne(l, s, Re);
895
- break;
896
- case "Home":
897
- r.preventDefault(), ne(l, null, Re);
898
- break;
899
- case "End":
900
- r.preventDefault(), ne(l, null, Pe);
901
- break;
902
- }
903
- }, pe = rt();
904
- return /* @__PURE__ */ Q(Wt, b({
905
- className: k(W.root, T),
906
- ownerState: A,
907
- ref: n,
908
- as: v
909
- }, Xe, {
910
- children: [pe.scrollButtonStart, pe.scrollbarSizeListener, /* @__PURE__ */ Q(zt, {
911
- className: W.scroller,
912
- ownerState: A,
913
- style: {
914
- overflow: we.overflow,
915
- [B ? `margin${d ? "Left" : "Right"}` : "marginBottom"]: ce ? void 0 : -we.scrollbarWidth
916
- },
917
- ref: R,
918
- children: [/* @__PURE__ */ C(Lt, {
919
- "aria-label": m,
920
- "aria-labelledby": h,
921
- "aria-orientation": g === "vertical" ? "vertical" : null,
922
- className: W.flexContainer,
923
- ownerState: A,
924
- onKeyDown: nt,
925
- ref: j,
926
- role: "tablist",
927
- children: lt
928
- }), ge && Me]
929
- }), pe.scrollButtonEnd]
930
- }));
931
- });
932
- process.env.NODE_ENV !== "production" && (Ue.propTypes = {
933
- // ┌────────────────────────────── Warning ──────────────────────────────┐
934
- // │ These PropTypes are generated from the TypeScript type definitions. │
935
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
936
- // └─────────────────────────────────────────────────────────────────────┘
937
- /**
938
- * Callback fired when the component mounts.
939
- * This is useful when you want to trigger an action programmatically.
940
- * It supports two actions: `updateIndicator()` and `updateScrollButtons()`
941
- *
942
- * @param {object} actions This object contains all possible actions
943
- * that can be triggered programmatically.
944
- */
945
- action: ut,
946
- /**
947
- * If `true`, the scroll buttons aren't forced hidden on mobile.
948
- * By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
949
- * @default false
950
- */
951
- allowScrollButtonsMobile: o.bool,
952
- /**
953
- * The label for the Tabs as a string.
954
- */
955
- "aria-label": o.string,
956
- /**
957
- * An id or list of ids separated by a space that label the Tabs.
958
- */
959
- "aria-labelledby": o.string,
960
- /**
961
- * If `true`, the tabs are centered.
962
- * This prop is intended for large views.
963
- * @default false
964
- */
965
- centered: o.bool,
966
- /**
967
- * The content of the component.
968
- */
969
- children: o.node,
970
- /**
971
- * Override or extend the styles applied to the component.
972
- */
973
- classes: o.object,
974
- /**
975
- * @ignore
976
- */
977
- className: o.string,
978
- /**
979
- * The component used for the root node.
980
- * Either a string to use a HTML element or a component.
981
- */
982
- component: o.elementType,
983
- /**
984
- * Determines the color of the indicator.
985
- * @default 'primary'
986
- */
987
- indicatorColor: o.oneOfType([o.oneOf(["primary", "secondary"]), o.string]),
988
- /**
989
- * Callback fired when the value changes.
990
- *
991
- * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
992
- * @param {any} value We default to the index of the child (number)
993
- */
994
- onChange: o.func,
995
- /**
996
- * The component orientation (layout flow direction).
997
- * @default 'horizontal'
998
- */
999
- orientation: o.oneOf(["horizontal", "vertical"]),
1000
- /**
1001
- * The component used to render the scroll buttons.
1002
- * @default TabScrollButton
1003
- */
1004
- ScrollButtonComponent: o.elementType,
1005
- /**
1006
- * Determine behavior of scroll buttons when tabs are set to scroll:
1007
- *
1008
- * - `auto` will only present them when not all the items are visible.
1009
- * - `true` will always present them.
1010
- * - `false` will never present them.
1011
- *
1012
- * By default the scroll buttons are hidden on mobile.
1013
- * This behavior can be disabled with `allowScrollButtonsMobile`.
1014
- * @default 'auto'
1015
- */
1016
- scrollButtons: o.oneOf(["auto", !1, !0]),
1017
- /**
1018
- * If `true` the selected tab changes on focus. Otherwise it only
1019
- * changes on activation.
1020
- */
1021
- selectionFollowsFocus: o.bool,
1022
- /**
1023
- * The extra props for the slot components.
1024
- * You can override the existing props or add new ones.
1025
- * @default {}
1026
- */
1027
- slotProps: o.shape({
1028
- endScrollButtonIcon: o.oneOfType([o.func, o.object]),
1029
- startScrollButtonIcon: o.oneOfType([o.func, o.object])
1030
- }),
1031
- /**
1032
- * The components used for each slot inside.
1033
- * @default {}
1034
- */
1035
- slots: o.shape({
1036
- EndScrollButtonIcon: o.elementType,
1037
- StartScrollButtonIcon: o.elementType
1038
- }),
1039
- /**
1040
- * The system prop that allows defining system overrides as well as additional CSS styles.
1041
- */
1042
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
1043
- /**
1044
- * Props applied to the tab indicator element.
1045
- * @default {}
1046
- */
1047
- TabIndicatorProps: o.object,
1048
- /**
1049
- * Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
1050
- * @default {}
1051
- */
1052
- TabScrollButtonProps: o.object,
1053
- /**
1054
- * Determines the color of the `Tab`.
1055
- * @default 'primary'
1056
- */
1057
- textColor: o.oneOf(["inherit", "primary", "secondary"]),
1058
- /**
1059
- * The value of the currently selected `Tab`.
1060
- * If you don't want any selected `Tab`, you can set this prop to `false`.
1061
- */
1062
- value: o.any,
1063
- /**
1064
- * Determines additional display behavior of the tabs:
1065
- *
1066
- * - `scrollable` will invoke scrolling properties and allow for horizontally
1067
- * scrolling (or swiping) of the tab bar.
1068
- * - `fullWidth` will make the tabs grow to use all the available space,
1069
- * which should be used for small views, like on mobile.
1070
- * - `standard` will render the default state.
1071
- * @default 'standard'
1072
- */
1073
- variant: o.oneOf(["fullWidth", "scrollable", "standard"]),
1074
- /**
1075
- * If `true`, the scrollbar is visible. It can be useful when displaying
1076
- * a long vertical list of tabs.
1077
- * @default false
1078
- */
1079
- visibleScrollbar: o.bool
1080
- });
1081
- const Gt = Ue;
1082
- export {
1083
- yt as K,
1084
- qt as T,
1085
- Gt as a,
1086
- he as b,
1087
- Nt as c,
1088
- St as d,
1089
- ft as g,
1090
- L as t
1091
- };