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

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,827 +0,0 @@
1
- import { m as Y, _ as ie, P as e, x, v as ye, w as Ke } from "./identifier-D-ng7Qqa.js";
2
- import * as p from "react";
3
- import W, { Children as Xe, isValidElement as G, cloneElement as J } from "react";
4
- import { s as re, u as Te, c as Ye } from "./styled-xiAudcD_.js";
5
- import { jsx as U, jsxs as Ae } from "react/jsx-runtime";
6
- import { a as qe, u as H } from "./useTimeout-BdvDipeg.js";
7
- import { _ as We, T as de } from "./TransitionGroupContext-BkoHK5Kx.js";
8
- import { keyframes as se } from "@emotion/react";
9
- import { a as he } from "./useForkRef-DwN_Iz9R.js";
10
- import { u as He } from "./useIsFocusVisible-DhASXQ4o.js";
11
- import { r as Ge, e as Je } from "./refType-COGEdfch.js";
12
- function Qe(t) {
13
- if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14
- return t;
15
- }
16
- function ae(t, s) {
17
- var a = function(n) {
18
- return s && G(n) ? s(n) : n;
19
- }, l = /* @__PURE__ */ Object.create(null);
20
- return t && Xe.map(t, function(o) {
21
- return o;
22
- }).forEach(function(o) {
23
- l[o.key] = a(o);
24
- }), l;
25
- }
26
- function Ze(t, s) {
27
- t = t || {}, s = s || {};
28
- function a(h) {
29
- return h in s ? s[h] : t[h];
30
- }
31
- var l = /* @__PURE__ */ Object.create(null), o = [];
32
- for (var n in t)
33
- n in s ? o.length && (l[n] = o, o = []) : o.push(n);
34
- var i, c = {};
35
- for (var u in s) {
36
- if (l[u])
37
- for (i = 0; i < l[u].length; i++) {
38
- var f = l[u][i];
39
- c[l[u][i]] = a(f);
40
- }
41
- c[u] = a(u);
42
- }
43
- for (i = 0; i < o.length; i++)
44
- c[o[i]] = a(o[i]);
45
- return c;
46
- }
47
- function F(t, s, a) {
48
- return a[s] != null ? a[s] : t.props[s];
49
- }
50
- function et(t, s) {
51
- return ae(t.children, function(a) {
52
- return J(a, {
53
- onExited: s.bind(null, a),
54
- in: !0,
55
- appear: F(a, "appear", t),
56
- enter: F(a, "enter", t),
57
- exit: F(a, "exit", t)
58
- });
59
- });
60
- }
61
- function tt(t, s, a) {
62
- var l = ae(t.children), o = Ze(s, l);
63
- return Object.keys(o).forEach(function(n) {
64
- var i = o[n];
65
- if (G(i)) {
66
- var c = n in s, u = n in l, f = s[n], h = G(f) && !f.props.in;
67
- u && (!c || h) ? o[n] = J(i, {
68
- onExited: a.bind(null, i),
69
- in: !0,
70
- exit: F(i, "exit", t),
71
- enter: F(i, "enter", t)
72
- }) : !u && c && !h ? o[n] = J(i, {
73
- in: !1
74
- }) : u && c && G(f) && (o[n] = J(i, {
75
- onExited: a.bind(null, i),
76
- in: f.props.in,
77
- exit: F(i, "exit", t),
78
- enter: F(i, "enter", t)
79
- }));
80
- }
81
- }), o;
82
- }
83
- var nt = Object.values || function(t) {
84
- return Object.keys(t).map(function(s) {
85
- return t[s];
86
- });
87
- }, ot = {
88
- component: "div",
89
- childFactory: function(s) {
90
- return s;
91
- }
92
- }, le = /* @__PURE__ */ function(t) {
93
- We(s, t);
94
- function s(l, o) {
95
- var n;
96
- n = t.call(this, l, o) || this;
97
- var i = n.handleExited.bind(Qe(n));
98
- return n.state = {
99
- contextValue: {
100
- isMounting: !0
101
- },
102
- handleExited: i,
103
- firstRender: !0
104
- }, n;
105
- }
106
- var a = s.prototype;
107
- return a.componentDidMount = function() {
108
- this.mounted = !0, this.setState({
109
- contextValue: {
110
- isMounting: !1
111
- }
112
- });
113
- }, a.componentWillUnmount = function() {
114
- this.mounted = !1;
115
- }, s.getDerivedStateFromProps = function(o, n) {
116
- var i = n.children, c = n.handleExited, u = n.firstRender;
117
- return {
118
- children: u ? et(o, c) : tt(o, i, c),
119
- firstRender: !1
120
- };
121
- }, a.handleExited = function(o, n) {
122
- var i = ae(this.props.children);
123
- o.key in i || (o.props.onExited && o.props.onExited(n), this.mounted && this.setState(function(c) {
124
- var u = Y({}, c.children);
125
- return delete u[o.key], {
126
- children: u
127
- };
128
- }));
129
- }, a.render = function() {
130
- var o = this.props, n = o.component, i = o.childFactory, c = ie(o, ["component", "childFactory"]), u = this.state.contextValue, f = nt(this.state.children).map(i);
131
- return delete c.appear, delete c.enter, delete c.exit, n === null ? /* @__PURE__ */ W.createElement(de.Provider, {
132
- value: u
133
- }, f) : /* @__PURE__ */ W.createElement(de.Provider, {
134
- value: u
135
- }, /* @__PURE__ */ W.createElement(n, c, f));
136
- }, s;
137
- }(W.Component);
138
- le.propTypes = process.env.NODE_ENV !== "production" ? {
139
- /**
140
- * `<TransitionGroup>` renders a `<div>` by default. You can change this
141
- * behavior by providing a `component` prop.
142
- * If you use React v16+ and would like to avoid a wrapping `<div>` element
143
- * you can pass in `component={null}`. This is useful if the wrapping div
144
- * borks your css styles.
145
- */
146
- component: e.any,
147
- /**
148
- * A set of `<Transition>` components, that are toggled `in` and out as they
149
- * leave. the `<TransitionGroup>` will inject specific transition props, so
150
- * remember to spread them through if you are wrapping the `<Transition>` as
151
- * with our `<Fade>` example.
152
- *
153
- * While this component is meant for multiple `Transition` or `CSSTransition`
154
- * children, sometimes you may want to have a single transition child with
155
- * content that you want to be transitioned out and in when you change it
156
- * (e.g. routes, images etc.) In that case you can change the `key` prop of
157
- * the transition child as you change its content, this will cause
158
- * `TransitionGroup` to transition the child out and back in.
159
- */
160
- children: e.node,
161
- /**
162
- * A convenience prop that enables or disables appear animations
163
- * for all children. Note that specifying this will override any defaults set
164
- * on individual children Transitions.
165
- */
166
- appear: e.bool,
167
- /**
168
- * A convenience prop that enables or disables enter animations
169
- * for all children. Note that specifying this will override any defaults set
170
- * on individual children Transitions.
171
- */
172
- enter: e.bool,
173
- /**
174
- * A convenience prop that enables or disables exit animations
175
- * for all children. Note that specifying this will override any defaults set
176
- * on individual children Transitions.
177
- */
178
- exit: e.bool,
179
- /**
180
- * You may need to apply reactive updates to a child as it is exiting.
181
- * This is generally done by using `cloneElement` however in the case of an exiting
182
- * child the element has already been removed and not accessible to the consumer.
183
- *
184
- * If you do need to update a child as it leaves you can provide a `childFactory`
185
- * to wrap every child, even the ones that are leaving.
186
- *
187
- * @type Function(child: ReactElement) -> ReactElement
188
- */
189
- childFactory: e.func
190
- } : {};
191
- le.defaultProps = ot;
192
- function Me(t) {
193
- const {
194
- className: s,
195
- classes: a,
196
- pulsate: l = !1,
197
- rippleX: o,
198
- rippleY: n,
199
- rippleSize: i,
200
- in: c,
201
- onExited: u,
202
- timeout: f
203
- } = t, [h, y] = p.useState(!1), g = x(s, a.ripple, a.rippleVisible, l && a.ripplePulsate), v = {
204
- width: i,
205
- height: i,
206
- top: -(i / 2) + n,
207
- left: -(i / 2) + o
208
- }, m = x(a.child, h && a.childLeaving, l && a.childPulsate);
209
- return !c && !h && y(!0), p.useEffect(() => {
210
- if (!c && u != null) {
211
- const T = setTimeout(u, f);
212
- return () => {
213
- clearTimeout(T);
214
- };
215
- }
216
- }, [u, c, f]), /* @__PURE__ */ U("span", {
217
- className: g,
218
- style: v,
219
- children: /* @__PURE__ */ U("span", {
220
- className: m
221
- })
222
- });
223
- }
224
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
225
- /**
226
- * Override or extend the styles applied to the component.
227
- */
228
- classes: e.object.isRequired,
229
- className: e.string,
230
- /**
231
- * @ignore - injected from TransitionGroup
232
- */
233
- in: e.bool,
234
- /**
235
- * @ignore - injected from TransitionGroup
236
- */
237
- onExited: e.func,
238
- /**
239
- * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
240
- */
241
- pulsate: e.bool,
242
- /**
243
- * Diameter of the ripple.
244
- */
245
- rippleSize: e.number,
246
- /**
247
- * Horizontal position of the ripple center.
248
- */
249
- rippleX: e.number,
250
- /**
251
- * Vertical position of the ripple center.
252
- */
253
- rippleY: e.number,
254
- /**
255
- * exit delay
256
- */
257
- timeout: e.number.isRequired
258
- });
259
- const b = ye("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), it = ["center", "classes", "className"];
260
- let Q = (t) => t, me, be, ge, Re;
261
- const oe = 550, rt = 80, st = se(me || (me = Q`
262
- 0% {
263
- transform: scale(0);
264
- opacity: 0.1;
265
- }
266
-
267
- 100% {
268
- transform: scale(1);
269
- opacity: 0.3;
270
- }
271
- `)), at = se(be || (be = Q`
272
- 0% {
273
- opacity: 1;
274
- }
275
-
276
- 100% {
277
- opacity: 0;
278
- }
279
- `)), lt = se(ge || (ge = Q`
280
- 0% {
281
- transform: scale(1);
282
- }
283
-
284
- 50% {
285
- transform: scale(0.92);
286
- }
287
-
288
- 100% {
289
- transform: scale(1);
290
- }
291
- `)), ut = re("span", {
292
- name: "MuiTouchRipple",
293
- slot: "Root"
294
- })({
295
- overflow: "hidden",
296
- pointerEvents: "none",
297
- position: "absolute",
298
- zIndex: 0,
299
- top: 0,
300
- right: 0,
301
- bottom: 0,
302
- left: 0,
303
- borderRadius: "inherit"
304
- }), ct = re(Me, {
305
- name: "MuiTouchRipple",
306
- slot: "Ripple"
307
- })(Re || (Re = Q`
308
- opacity: 0;
309
- position: absolute;
310
-
311
- &.${0} {
312
- opacity: 0.3;
313
- transform: scale(1);
314
- animation-name: ${0};
315
- animation-duration: ${0}ms;
316
- animation-timing-function: ${0};
317
- }
318
-
319
- &.${0} {
320
- animation-duration: ${0}ms;
321
- }
322
-
323
- & .${0} {
324
- opacity: 1;
325
- display: block;
326
- width: 100%;
327
- height: 100%;
328
- border-radius: 50%;
329
- background-color: currentColor;
330
- }
331
-
332
- & .${0} {
333
- opacity: 0;
334
- animation-name: ${0};
335
- animation-duration: ${0}ms;
336
- animation-timing-function: ${0};
337
- }
338
-
339
- & .${0} {
340
- position: absolute;
341
- /* @noflip */
342
- left: 0px;
343
- top: 0;
344
- animation-name: ${0};
345
- animation-duration: 2500ms;
346
- animation-timing-function: ${0};
347
- animation-iteration-count: infinite;
348
- animation-delay: 200ms;
349
- }
350
- `), b.rippleVisible, st, oe, ({
351
- theme: t
352
- }) => t.transitions.easing.easeInOut, b.ripplePulsate, ({
353
- theme: t
354
- }) => t.transitions.duration.shorter, b.child, b.childLeaving, at, oe, ({
355
- theme: t
356
- }) => t.transitions.easing.easeInOut, b.childPulsate, lt, ({
357
- theme: t
358
- }) => t.transitions.easing.easeInOut), Ee = /* @__PURE__ */ p.forwardRef(function(s, a) {
359
- const l = Te({
360
- props: s,
361
- name: "MuiTouchRipple"
362
- }), {
363
- center: o = !1,
364
- classes: n = {},
365
- className: i
366
- } = l, c = ie(l, it), [u, f] = p.useState([]), h = p.useRef(0), y = p.useRef(null);
367
- p.useEffect(() => {
368
- y.current && (y.current(), y.current = null);
369
- }, [u]);
370
- const g = p.useRef(!1), v = qe(), m = p.useRef(null), T = p.useRef(null), $ = p.useCallback((d) => {
371
- const {
372
- pulsate: M,
373
- rippleX: E,
374
- rippleY: S,
375
- rippleSize: I,
376
- cb: z
377
- } = d;
378
- f((C) => [...C, /* @__PURE__ */ U(ct, {
379
- classes: {
380
- ripple: x(n.ripple, b.ripple),
381
- rippleVisible: x(n.rippleVisible, b.rippleVisible),
382
- ripplePulsate: x(n.ripplePulsate, b.ripplePulsate),
383
- child: x(n.child, b.child),
384
- childLeaving: x(n.childLeaving, b.childLeaving),
385
- childPulsate: x(n.childPulsate, b.childPulsate)
386
- },
387
- timeout: oe,
388
- pulsate: M,
389
- rippleX: E,
390
- rippleY: S,
391
- rippleSize: I
392
- }, h.current)]), h.current += 1, y.current = z;
393
- }, [n]), _ = p.useCallback((d = {}, M = {}, E = () => {
394
- }) => {
395
- const {
396
- pulsate: S = !1,
397
- center: I = o || M.pulsate,
398
- fakeElement: z = !1
399
- // For test purposes
400
- } = M;
401
- if ((d == null ? void 0 : d.type) === "mousedown" && g.current) {
402
- g.current = !1;
403
- return;
404
- }
405
- (d == null ? void 0 : d.type) === "touchstart" && (g.current = !0);
406
- const C = z ? null : T.current, P = C ? C.getBoundingClientRect() : {
407
- width: 0,
408
- height: 0,
409
- left: 0,
410
- top: 0
411
- };
412
- let V, B, w;
413
- if (I || d === void 0 || d.clientX === 0 && d.clientY === 0 || !d.clientX && !d.touches)
414
- V = Math.round(P.width / 2), B = Math.round(P.height / 2);
415
- else {
416
- const {
417
- clientX: L,
418
- clientY: N
419
- } = d.touches && d.touches.length > 0 ? d.touches[0] : d;
420
- V = Math.round(L - P.left), B = Math.round(N - P.top);
421
- }
422
- if (I)
423
- w = Math.sqrt((2 * P.width ** 2 + P.height ** 2) / 3), w % 2 === 0 && (w += 1);
424
- else {
425
- const L = Math.max(Math.abs((C ? C.clientWidth : 0) - V), V) * 2 + 2, N = Math.max(Math.abs((C ? C.clientHeight : 0) - B), B) * 2 + 2;
426
- w = Math.sqrt(L ** 2 + N ** 2);
427
- }
428
- d != null && d.touches ? m.current === null && (m.current = () => {
429
- $({
430
- pulsate: S,
431
- rippleX: V,
432
- rippleY: B,
433
- rippleSize: w,
434
- cb: E
435
- });
436
- }, v.start(rt, () => {
437
- m.current && (m.current(), m.current = null);
438
- })) : $({
439
- pulsate: S,
440
- rippleX: V,
441
- rippleY: B,
442
- rippleSize: w,
443
- cb: E
444
- });
445
- }, [o, $, v]), j = p.useCallback(() => {
446
- _({}, {
447
- pulsate: !0
448
- });
449
- }, [_]), O = p.useCallback((d, M) => {
450
- if (v.clear(), (d == null ? void 0 : d.type) === "touchend" && m.current) {
451
- m.current(), m.current = null, v.start(0, () => {
452
- O(d, M);
453
- });
454
- return;
455
- }
456
- m.current = null, f((E) => E.length > 0 ? E.slice(1) : E), y.current = M;
457
- }, [v]);
458
- return p.useImperativeHandle(a, () => ({
459
- pulsate: j,
460
- start: _,
461
- stop: O
462
- }), [j, _, O]), /* @__PURE__ */ U(ut, Y({
463
- className: x(b.root, n.root, i),
464
- ref: T
465
- }, c, {
466
- children: /* @__PURE__ */ U(le, {
467
- component: null,
468
- exit: !0,
469
- children: u
470
- })
471
- }));
472
- });
473
- process.env.NODE_ENV !== "production" && (Ee.propTypes = {
474
- /**
475
- * If `true`, the ripple starts at the center of the component
476
- * rather than at the point of interaction.
477
- */
478
- center: e.bool,
479
- /**
480
- * Override or extend the styles applied to the component.
481
- */
482
- classes: e.object,
483
- /**
484
- * @ignore
485
- */
486
- className: e.string
487
- });
488
- function pt(t) {
489
- return Ke("MuiButtonBase", t);
490
- }
491
- const ft = ye("MuiButtonBase", ["root", "disabled", "focusVisible"]), dt = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], ht = (t) => {
492
- const {
493
- disabled: s,
494
- focusVisible: a,
495
- focusVisibleClassName: l,
496
- classes: o
497
- } = t, i = Ye({
498
- root: ["root", s && "disabled", a && "focusVisible"]
499
- }, pt, o);
500
- return a && l && (i.root += ` ${l}`), i;
501
- }, mt = re("button", {
502
- name: "MuiButtonBase",
503
- slot: "Root",
504
- overridesResolver: (t, s) => s.root
505
- })({
506
- display: "inline-flex",
507
- alignItems: "center",
508
- justifyContent: "center",
509
- position: "relative",
510
- boxSizing: "border-box",
511
- WebkitTapHighlightColor: "transparent",
512
- backgroundColor: "transparent",
513
- // Reset default value
514
- // We disable the focus ring for mouse, touch and keyboard users.
515
- outline: 0,
516
- border: 0,
517
- margin: 0,
518
- // Remove the margin in Safari
519
- borderRadius: 0,
520
- padding: 0,
521
- // Remove the padding in Firefox
522
- cursor: "pointer",
523
- userSelect: "none",
524
- verticalAlign: "middle",
525
- MozAppearance: "none",
526
- // Reset
527
- WebkitAppearance: "none",
528
- // Reset
529
- textDecoration: "none",
530
- // So we take precedent over the style of a native <a /> element.
531
- color: "inherit",
532
- "&::-moz-focus-inner": {
533
- borderStyle: "none"
534
- // Remove Firefox dotted outline.
535
- },
536
- [`&.${ft.disabled}`]: {
537
- pointerEvents: "none",
538
- // Disable link interactions
539
- cursor: "default"
540
- },
541
- "@media print": {
542
- colorAdjust: "exact"
543
- }
544
- }), bt = /* @__PURE__ */ p.forwardRef(function(s, a) {
545
- const l = Te({
546
- props: s,
547
- name: "MuiButtonBase"
548
- }), {
549
- action: o,
550
- centerRipple: n = !1,
551
- children: i,
552
- className: c,
553
- component: u = "button",
554
- disabled: f = !1,
555
- disableRipple: h = !1,
556
- disableTouchRipple: y = !1,
557
- focusRipple: g = !1,
558
- LinkComponent: v = "a",
559
- onBlur: m,
560
- onClick: T,
561
- onContextMenu: $,
562
- onDragLeave: _,
563
- onFocus: j,
564
- onFocusVisible: O,
565
- onKeyDown: d,
566
- onKeyUp: M,
567
- onMouseDown: E,
568
- onMouseLeave: S,
569
- onMouseUp: I,
570
- onTouchEnd: z,
571
- onTouchMove: C,
572
- onTouchStart: P,
573
- tabIndex: V = 0,
574
- TouchRippleProps: B,
575
- touchRippleRef: w,
576
- type: L
577
- } = l, N = ie(l, dt), K = p.useRef(null), R = p.useRef(null), Ce = he(R, w), {
578
- isFocusVisibleRef: ue,
579
- onFocus: xe,
580
- onBlur: ve,
581
- ref: Ve
582
- } = He(), [k, A] = p.useState(!1);
583
- f && k && A(!1), p.useImperativeHandle(o, () => ({
584
- focusVisible: () => {
585
- A(!0), K.current.focus();
586
- }
587
- }), []);
588
- const [Z, Ne] = p.useState(!1);
589
- p.useEffect(() => {
590
- Ne(!0);
591
- }, []);
592
- const ee = Z && !h && !f;
593
- p.useEffect(() => {
594
- k && g && !h && Z && R.current.pulsate();
595
- }, [h, g, k, Z]);
596
- function D(r, pe, ze = y) {
597
- return H((fe) => (pe && pe(fe), !ze && R.current && R.current[r](fe), !0));
598
- }
599
- const De = D("start", E), Pe = D("stop", $), Be = D("stop", _), we = D("stop", I), Se = D("stop", (r) => {
600
- k && r.preventDefault(), S && S(r);
601
- }), Le = D("start", P), ke = D("stop", z), Fe = D("stop", C), _e = D("stop", (r) => {
602
- ve(r), ue.current === !1 && A(!1), m && m(r);
603
- }, !1), Oe = H((r) => {
604
- K.current || (K.current = r.currentTarget), xe(r), ue.current === !0 && (A(!0), O && O(r)), j && j(r);
605
- }), te = () => {
606
- const r = K.current;
607
- return u && u !== "button" && !(r.tagName === "A" && r.href);
608
- }, ne = p.useRef(!1), Ie = H((r) => {
609
- g && !ne.current && k && R.current && r.key === " " && (ne.current = !0, R.current.stop(r, () => {
610
- R.current.start(r);
611
- })), r.target === r.currentTarget && te() && r.key === " " && r.preventDefault(), d && d(r), r.target === r.currentTarget && te() && r.key === "Enter" && !f && (r.preventDefault(), T && T(r));
612
- }), Ue = H((r) => {
613
- g && r.key === " " && R.current && k && !r.defaultPrevented && (ne.current = !1, R.current.stop(r, () => {
614
- R.current.pulsate(r);
615
- })), M && M(r), T && r.target === r.currentTarget && te() && r.key === " " && !r.defaultPrevented && T(r);
616
- });
617
- let q = u;
618
- q === "button" && (N.href || N.to) && (q = v);
619
- const X = {};
620
- q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!N.href && !N.to && (X.role = "button"), f && (X["aria-disabled"] = f));
621
- const $e = he(a, Ve, K);
622
- process.env.NODE_ENV !== "production" && p.useEffect(() => {
623
- ee && !R.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
624
- `));
625
- }, [ee]);
626
- const ce = Y({}, l, {
627
- centerRipple: n,
628
- component: u,
629
- disabled: f,
630
- disableRipple: h,
631
- disableTouchRipple: y,
632
- focusRipple: g,
633
- tabIndex: V,
634
- focusVisible: k
635
- }), je = ht(ce);
636
- return /* @__PURE__ */ Ae(mt, Y({
637
- as: q,
638
- className: x(je.root, c),
639
- ownerState: ce,
640
- onBlur: _e,
641
- onClick: T,
642
- onContextMenu: Pe,
643
- onFocus: Oe,
644
- onKeyDown: Ie,
645
- onKeyUp: Ue,
646
- onMouseDown: De,
647
- onMouseLeave: Se,
648
- onMouseUp: we,
649
- onDragLeave: Be,
650
- onTouchEnd: ke,
651
- onTouchMove: Fe,
652
- onTouchStart: Le,
653
- ref: $e,
654
- tabIndex: f ? -1 : V,
655
- type: L
656
- }, X, N, {
657
- children: [i, ee ? (
658
- /* TouchRipple is only needed client-side, x2 boost on the server. */
659
- /* @__PURE__ */ U(Ee, Y({
660
- ref: Ce,
661
- center: n
662
- }, B))
663
- ) : null]
664
- }));
665
- });
666
- process.env.NODE_ENV !== "production" && (bt.propTypes = {
667
- // ┌────────────────────────────── Warning ──────────────────────────────┐
668
- // │ These PropTypes are generated from the TypeScript type definitions. │
669
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
670
- // └─────────────────────────────────────────────────────────────────────┘
671
- /**
672
- * A ref for imperative actions.
673
- * It currently only supports `focusVisible()` action.
674
- */
675
- action: Ge,
676
- /**
677
- * If `true`, the ripples are centered.
678
- * They won't start at the cursor interaction position.
679
- * @default false
680
- */
681
- centerRipple: e.bool,
682
- /**
683
- * The content of the component.
684
- */
685
- children: e.node,
686
- /**
687
- * Override or extend the styles applied to the component.
688
- */
689
- classes: e.object,
690
- /**
691
- * @ignore
692
- */
693
- className: e.string,
694
- /**
695
- * The component used for the root node.
696
- * Either a string to use a HTML element or a component.
697
- */
698
- component: Je,
699
- /**
700
- * If `true`, the component is disabled.
701
- * @default false
702
- */
703
- disabled: e.bool,
704
- /**
705
- * If `true`, the ripple effect is disabled.
706
- *
707
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
708
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
709
- * @default false
710
- */
711
- disableRipple: e.bool,
712
- /**
713
- * If `true`, the touch ripple effect is disabled.
714
- * @default false
715
- */
716
- disableTouchRipple: e.bool,
717
- /**
718
- * If `true`, the base button will have a keyboard focus ripple.
719
- * @default false
720
- */
721
- focusRipple: e.bool,
722
- /**
723
- * This prop can help identify which element has keyboard focus.
724
- * The class name will be applied when the element gains the focus through keyboard interaction.
725
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
726
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
727
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
728
- * if needed.
729
- */
730
- focusVisibleClassName: e.string,
731
- /**
732
- * @ignore
733
- */
734
- href: e.any,
735
- /**
736
- * The component used to render a link when the `href` prop is provided.
737
- * @default 'a'
738
- */
739
- LinkComponent: e.elementType,
740
- /**
741
- * @ignore
742
- */
743
- onBlur: e.func,
744
- /**
745
- * @ignore
746
- */
747
- onClick: e.func,
748
- /**
749
- * @ignore
750
- */
751
- onContextMenu: e.func,
752
- /**
753
- * @ignore
754
- */
755
- onDragLeave: e.func,
756
- /**
757
- * @ignore
758
- */
759
- onFocus: e.func,
760
- /**
761
- * Callback fired when the component is focused with a keyboard.
762
- * We trigger a `onFocus` callback too.
763
- */
764
- onFocusVisible: e.func,
765
- /**
766
- * @ignore
767
- */
768
- onKeyDown: e.func,
769
- /**
770
- * @ignore
771
- */
772
- onKeyUp: e.func,
773
- /**
774
- * @ignore
775
- */
776
- onMouseDown: e.func,
777
- /**
778
- * @ignore
779
- */
780
- onMouseLeave: e.func,
781
- /**
782
- * @ignore
783
- */
784
- onMouseUp: e.func,
785
- /**
786
- * @ignore
787
- */
788
- onTouchEnd: e.func,
789
- /**
790
- * @ignore
791
- */
792
- onTouchMove: e.func,
793
- /**
794
- * @ignore
795
- */
796
- onTouchStart: e.func,
797
- /**
798
- * The system prop that allows defining system overrides as well as additional CSS styles.
799
- */
800
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
801
- /**
802
- * @default 0
803
- */
804
- tabIndex: e.number,
805
- /**
806
- * Props applied to the `TouchRipple` element.
807
- */
808
- TouchRippleProps: e.object,
809
- /**
810
- * A ref that points to the `TouchRipple` element.
811
- */
812
- touchRippleRef: e.oneOfType([e.func, e.shape({
813
- current: e.shape({
814
- pulsate: e.func.isRequired,
815
- start: e.func.isRequired,
816
- stop: e.func.isRequired
817
- })
818
- })]),
819
- /**
820
- * @ignore
821
- */
822
- type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
823
- });
824
- export {
825
- bt as B,
826
- le as T
827
- };