@cgi-learning-hub/ui 1.4.0 → 1.5.0-dev.1743511847

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 (335) hide show
  1. package/dist/Alert-BoWYecXr.cjs +1 -0
  2. package/dist/Alert-D31xXLY_.js +452 -0
  3. package/dist/Autocomplete-C4BeJqHd.js +1829 -0
  4. package/dist/Autocomplete-QNC3IpEu.cjs +6 -0
  5. package/dist/Backdrop-A963bP01.cjs +1 -0
  6. package/dist/{Backdrop-DdA12b-5.js → Backdrop-Cwv7IqH8.js} +20 -19
  7. package/dist/{Box-DbRInJ2-.js → Box--MaxIKbn.js} +7 -7
  8. package/dist/Box-ge7hyt34.cjs +1 -0
  9. package/dist/Button-BkHaHEAp.cjs +1 -0
  10. package/dist/{Button-rxIER0bL.js → Button-kOBqHwsO.js} +147 -113
  11. package/dist/{ButtonBase-C2rhY3j-.cjs → ButtonBase-DIunRlDS.cjs} +1 -1
  12. package/dist/{ButtonBase-DzpmdR6N.js → ButtonBase-DYKChljK.js} +4 -4
  13. package/dist/{CardContent-u1MKaFvP.js → CardContent-BHHejD6b.js} +3 -3
  14. package/dist/CardContent-VzvauMnh.cjs +1 -0
  15. package/dist/Checkbox-CMW4C-5f.cjs +1 -0
  16. package/dist/{Checkbox-BI77q7eR.js → Checkbox-Vfd8tExZ.js} +23 -22
  17. package/dist/{Chip-6-zATjcr.js → Chip-CVtoGCpW.js} +50 -49
  18. package/dist/Chip-DnYryF72.cjs +1 -0
  19. package/dist/CircularProgress-4dhoIFaN.cjs +28 -0
  20. package/dist/{CircularProgress-CDa_qU1a.js → CircularProgress-CAuw8noH.js} +14 -13
  21. package/dist/Close-D88q8bP4.js +9 -0
  22. package/dist/Close-gPyOHzhk.cjs +1 -0
  23. package/dist/{CloseRounded-DQWTEbNz.cjs → CloseRounded-D4Rf4Yq-.cjs} +1 -1
  24. package/dist/{CloseRounded-DTpqUeWr.js → CloseRounded-DXBTbQ8P.js} +1 -1
  25. package/dist/CustomTreeItem-DhiQBmjt.js +1341 -0
  26. package/dist/CustomTreeItem-DvuxaLU3.cjs +4 -0
  27. package/dist/DatePicker-BoM1keBS.cjs +14 -0
  28. package/dist/{DatePicker-BTTLIBm9.js → DatePicker-Cy18dRtr.js} +3032 -3133
  29. package/dist/DefaultPropsProvider-DhsUT47i.cjs +1 -0
  30. package/dist/{DefaultPropsProvider-BcmyIf2H.js → DefaultPropsProvider-ZFZfNXyN.js} +24 -24
  31. package/dist/Delete-abpyrxF4.cjs +1 -0
  32. package/dist/Delete-p7eKZ0Bk.js +8 -0
  33. package/dist/{Dialog-CgBiKk8B.js → Dialog-BdWhnP_F.js} +17 -16
  34. package/dist/Dialog-LbgQSeqb.cjs +1 -0
  35. package/dist/{DialogContent-SYCCu1VD.js → DialogContent-CazuB6uB.js} +3 -3
  36. package/dist/DialogContent-DBuTlPHe.cjs +1 -0
  37. package/dist/{DialogTitle-_yayDwkI.js → DialogTitle-B98lWCsF.js} +5 -5
  38. package/dist/DialogTitle-DTwr1uD3.cjs +1 -0
  39. package/dist/{Divider-Doy31VS6.js → Divider-Bw612Jal.js} +8 -8
  40. package/dist/Divider-D3QqAaaL.cjs +1 -0
  41. package/dist/Folder-DbtkTNEB.js +8 -0
  42. package/dist/Folder-NcfJgwuN.cjs +1 -0
  43. package/dist/FormLabel-C_MIE5B5.cjs +2 -0
  44. package/dist/{FormLabel-DjkS3S9h.js → FormLabel-Sb7RO6Cr.js} +68 -76
  45. package/dist/Grow-B05P--4W.cjs +1 -0
  46. package/dist/{Grow-DPD-iBAX.js → Grow-CYTfRVAz.js} +14 -13
  47. package/dist/{IconButton-B4bt0Hp2.js → IconButton-BfOmPY_b.js} +27 -26
  48. package/dist/IconButton-Czd8uNt8.cjs +2 -0
  49. package/dist/{InputAdornment-GzDm1zf_.js → InputAdornment-Bq0xmUe9.js} +9 -8
  50. package/dist/InputAdornment-OOctzn5p.cjs +1 -0
  51. package/dist/InputBase-B7ajOn6r.cjs +3 -0
  52. package/dist/{InputBase-CF5oNEfh.js → InputBase-BemCmQtU.js} +41 -40
  53. package/dist/{Link-CnahHTmK.js → Link-Dlyo6tWB.js} +11 -10
  54. package/dist/Link-Dq7AP0Tt.cjs +1 -0
  55. package/dist/List-CBdWJkIa.cjs +1 -0
  56. package/dist/List-CV_4VCwT.js +130 -0
  57. package/dist/ListItem--Hj6zz4n.js +423 -0
  58. package/dist/ListItem-B2M8rFxh.cjs +1 -0
  59. package/dist/ListItemText-BeWOS4WA.js +928 -0
  60. package/dist/ListItemText-Yjh9Zoqh.cjs +1 -0
  61. package/dist/{Menu-DzBX10ev.js → Menu-BCmTJEi8.js} +302 -424
  62. package/dist/Menu-BHYjNOvv.cjs +7 -0
  63. package/dist/MenuItem-CpMKEsli.cjs +1 -0
  64. package/dist/{MenuItem-DQQ-p2ie.js → MenuItem-CyARn9vd.js} +72 -77
  65. package/dist/{Modal-B8JRJWm0.js → Modal-4sDxsZsm.js} +8 -8
  66. package/dist/{Modal-D8lS9C1l.cjs → Modal-BvhfWPvw.cjs} +2 -2
  67. package/dist/MoreVert-RHtym60m.cjs +1 -0
  68. package/dist/MoreVert-WFvQcAf-.js +8 -0
  69. package/dist/Paper-CRHSfFG5.cjs +2 -0
  70. package/dist/{Paper-CbgkVQVx.js → Paper-D9hEGUDL.js} +4 -4
  71. package/dist/Popper-9z2UJQ7R.cjs +4 -0
  72. package/dist/{Popper-1-DDNRPD.js → Popper-BxJaaK-J.js} +31 -30
  73. package/dist/Portal-BkkZn65J.cjs +1 -0
  74. package/dist/{Portal-T-1Qk77D.js → Portal-jqIJ9-dR.js} +2 -2
  75. package/dist/Radio-Cj3mKEAT.cjs +1 -0
  76. package/dist/{Radio-BxMxeQa-.js → Radio-Dm7GnmRB.js} +9 -8
  77. package/dist/RadioGroup-D-aGM7xY.cjs +1 -0
  78. package/dist/{RadioGroup-BLrD8_Lp.js → RadioGroup-b8jmEUAw.js} +3 -3
  79. package/dist/Select--p-t3vFP.cjs +3 -0
  80. package/dist/{Select-B6mYfJPA.js → Select-B9udggeF.js} +49 -48
  81. package/dist/{Stack-aCUdCw1A.js → Stack-Ba2nYyYI.js} +104 -59
  82. package/dist/Stack-DVHYuvhX.cjs +1 -0
  83. package/dist/Switch--DHfiMMI.cjs +1 -0
  84. package/dist/{Switch-BOpqo-TS.js → Switch-D9wihGbW.js} +11 -10
  85. package/dist/SwitchBase-D6Hcty5-.cjs +1 -0
  86. package/dist/{SwitchBase-BAjfatYA.js → SwitchBase-hLPPZJfx.js} +21 -20
  87. package/dist/Tab-CoQ2exTs.cjs +4 -0
  88. package/dist/Tab-qZjEW6Cy.js +1394 -0
  89. package/dist/TextField-1N_cJeHB.cjs +1 -0
  90. package/dist/{TextField-CAmc1Qpg.js → TextField-B6qm5aBz.js} +18 -17
  91. package/dist/ToggleButtonGroup-Bz445DUg.cjs +137 -0
  92. package/dist/ToggleButtonGroup-DB7FU2Sy.js +7716 -0
  93. package/dist/{Tooltip-BvVFPsVR.js → Tooltip-UBiscQPm.js} +30 -29
  94. package/dist/Tooltip-arPEgWU6.cjs +4 -0
  95. package/dist/{Typography-CE8fQQ8B.js → Typography-BJPk_mTw.js} +13 -12
  96. package/dist/Typography-Daq_a9_t.cjs +1 -0
  97. package/dist/capitalize-CzyXIc5e.cjs +1 -0
  98. package/dist/capitalize-R3VbHRUv.js +9 -0
  99. package/dist/components/Alert/Alert.cjs.js +1 -1
  100. package/dist/components/Alert/Alert.d.ts +3 -3
  101. package/dist/components/Alert/Alert.es.js +5 -20
  102. package/dist/components/Alert/index.cjs.js +1 -1
  103. package/dist/components/Alert/index.es.js +2 -2
  104. package/dist/components/Button/Button.cjs.js +1 -1
  105. package/dist/components/Button/Button.es.js +2 -2
  106. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  107. package/dist/components/DatePicker/DatePicker.es.js +2 -3
  108. package/dist/components/DatePicker/index.cjs.js +1 -1
  109. package/dist/components/DatePicker/index.es.js +1 -1
  110. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  111. package/dist/components/Dialog/Dialog.es.js +2 -2
  112. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  113. package/dist/components/Dropzone/Dropzone.d.ts +2 -0
  114. package/dist/components/Dropzone/Dropzone.es.js +33 -30
  115. package/dist/components/Dropzone/types.cjs.js +1 -0
  116. package/dist/components/Dropzone/types.d.ts +8 -0
  117. package/dist/components/Dropzone/types.es.js +1 -0
  118. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  119. package/dist/components/EmptyState/EmptyState.d.ts +10 -2
  120. package/dist/components/EmptyState/EmptyState.es.js +26 -26
  121. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  122. package/dist/components/FileList/FileIcon.es.js +1 -1
  123. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  124. package/dist/components/FileList/FileListItem.es.js +14 -13
  125. package/dist/components/FolderCard/FolderCard.cjs.js +1 -0
  126. package/dist/components/FolderCard/FolderCard.d.ts +11 -0
  127. package/dist/components/FolderCard/FolderCard.es.js +79 -0
  128. package/dist/components/FolderCard/index.cjs.js +1 -0
  129. package/dist/components/FolderCard/index.d.ts +2 -0
  130. package/dist/components/FolderCard/index.es.js +4 -0
  131. package/dist/components/FolderCard/styles.cjs.js +1 -0
  132. package/dist/components/FolderCard/styles.d.ts +20 -0
  133. package/dist/components/FolderCard/styles.es.js +23 -0
  134. package/dist/components/FolderCard/types.cjs.js +1 -0
  135. package/dist/components/FolderCard/types.d.ts +3 -0
  136. package/dist/components/FolderCard/types.es.js +14 -0
  137. package/dist/components/Heading/Heading.cjs.js +1 -1
  138. package/dist/components/Heading/Heading.es.js +2 -2
  139. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  140. package/dist/components/ImagePicker/ImagePicker.es.js +54 -51
  141. package/dist/components/Loader/Loader.cjs.js +1 -1
  142. package/dist/components/Loader/Loader.es.js +8 -9
  143. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  144. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +4 -5
  145. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  146. package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
  147. package/dist/components/PasswordInput/PasswordInput.es.js +28 -37
  148. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  149. package/dist/components/QueryError/QueryError.es.js +23 -20
  150. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  151. package/dist/components/ResourceCard/ResourceCard.es.js +21 -23
  152. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  153. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  154. package/dist/components/TreeView/TreeView.cjs.js +7 -0
  155. package/dist/components/TreeView/TreeView.d.ts +4 -0
  156. package/dist/components/TreeView/TreeView.es.js +1892 -0
  157. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -0
  158. package/dist/components/TreeView/components/CustomTreeItem.d.ts +6 -0
  159. package/dist/components/TreeView/components/CustomTreeItem.es.js +8 -0
  160. package/dist/components/TreeView/index.cjs.js +1 -0
  161. package/dist/components/TreeView/index.d.ts +2 -0
  162. package/dist/components/TreeView/index.es.js +6 -0
  163. package/dist/components/TreeView/style.cjs.js +1 -0
  164. package/dist/components/TreeView/style.es.js +35 -0
  165. package/dist/components/TreeView/types.cjs.js +1 -0
  166. package/dist/components/TreeView/types.d.ts +43 -0
  167. package/dist/components/TreeView/types.es.js +4 -0
  168. package/dist/components/TreeView/utils.cjs.js +1 -0
  169. package/dist/components/TreeView/utils.d.ts +6 -0
  170. package/dist/components/TreeView/utils.es.js +50 -0
  171. package/dist/components/index.cjs.js +1 -1
  172. package/dist/components/index.d.ts +12 -1
  173. package/dist/components/index.es.js +368 -344
  174. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  175. package/dist/components/stories/Alert.stories.es.js +1 -1
  176. package/dist/components/stories/Autocomplete.stories.cjs.js +3 -0
  177. package/dist/components/stories/Autocomplete.stories.d.ts +6 -0
  178. package/dist/components/stories/Autocomplete.stories.es.js +62 -0
  179. package/dist/components/stories/Button.stories.cjs.js +1 -1
  180. package/dist/components/stories/Button.stories.es.js +1 -1
  181. package/dist/components/stories/Card.stories.cjs.js +1 -1
  182. package/dist/components/stories/Card.stories.es.js +2 -2
  183. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  184. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  185. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  186. package/dist/components/stories/Chip.stories.es.js +1 -1
  187. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  188. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  189. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  190. package/dist/components/stories/Dialog.stories.es.js +2 -2
  191. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  192. package/dist/components/stories/Divider.stories.es.js +1 -1
  193. package/dist/components/stories/EmptyState.stories.cjs.js +1 -1
  194. package/dist/components/stories/EmptyState.stories.es.js +23 -7
  195. package/dist/components/stories/FolderCard.stories.cjs.js +1 -0
  196. package/dist/components/stories/FolderCard.stories.d.ts +7 -0
  197. package/dist/components/stories/FolderCard.stories.es.js +71 -0
  198. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  199. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  200. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  201. package/dist/components/stories/Heading.stories.es.js +2 -2
  202. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  203. package/dist/components/stories/IconButton.stories.es.js +2 -2
  204. package/dist/components/stories/Link.stories.cjs.js +1 -1
  205. package/dist/components/stories/Link.stories.es.js +1 -1
  206. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  207. package/dist/components/stories/Menu.stories.es.js +2 -2
  208. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  209. package/dist/components/stories/Paper.stories.es.js +1 -1
  210. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  211. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  212. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  213. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  214. package/dist/components/stories/Select.stories.cjs.js +1 -1
  215. package/dist/components/stories/Select.stories.es.js +3 -3
  216. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  217. package/dist/components/stories/TabList.stories.es.js +21 -184
  218. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  219. package/dist/components/stories/TextField.stories.es.js +1 -1
  220. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  221. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  222. package/dist/components/stories/TreeView.stories.cjs.js +69 -0
  223. package/dist/components/stories/TreeView.stories.d.ts +14 -0
  224. package/dist/components/stories/TreeView.stories.es.js +857 -0
  225. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  226. package/dist/components/stories/Typography.stories.es.js +1 -1
  227. package/dist/createSvgIcon-DjTQ6UHI.cjs +1 -0
  228. package/dist/{createSvgIcon-CCejzj0C.js → createSvgIcon-Dk3n_NBz.js} +19 -18
  229. package/dist/{dividerClasses-DN9F43tq.js → dividerClasses-BbwdfVtE.js} +1 -1
  230. package/dist/dividerClasses-sb3FZiiC.cjs +1 -0
  231. package/dist/elementTypeAcceptingRef-CFAbKDTa.cjs +1 -0
  232. package/dist/{elementTypeAcceptingRef-CrAqn_fc.js → elementTypeAcceptingRef-Cqa8qLE7.js} +1 -1
  233. package/dist/extendSxProp-DG37PMfH.cjs +1 -0
  234. package/dist/{extendSxProp-DFv-GFt5.js → extendSxProp-u_I5DXAE.js} +1 -1
  235. package/dist/generateUtilityClasses-B90hrzv4.cjs +75 -0
  236. package/dist/{identifier-D58rA1gM.js → generateUtilityClasses-SJ1QPUag.js} +867 -835
  237. package/dist/getReactElementRef-Blb86d4n.cjs +1 -0
  238. package/dist/getReactElementRef-DMv8jOEv.js +31 -0
  239. package/dist/{index-BGS2uu2L.js → index-8ZjeXGh4.js} +1 -1
  240. package/dist/index-C4sHlmg5.cjs +1 -0
  241. package/dist/index-D5we-BQd.cjs +1 -0
  242. package/dist/{index-ClXCinr6.js → index-DBDGMwpZ.js} +4 -4
  243. package/dist/index-DzunNw1H.cjs +5 -0
  244. package/dist/index-uoOKg_7A.js +22 -0
  245. package/dist/index.cjs.js +1 -1
  246. package/dist/index.es.js +368 -344
  247. package/dist/isMuiElement-BzDAj3yJ.cjs +1 -0
  248. package/dist/isMuiElement-DnSE4qG4.js +13 -0
  249. package/dist/listItemTextClasses-Bh3BazNw.cjs +1 -0
  250. package/dist/listItemTextClasses-v8jRy934.js +9 -0
  251. package/dist/{memoTheme-DyiN-Awd.js → memoTheme-C9GnPENe.js} +1 -1
  252. package/dist/{memoTheme-C8EfvlY1.cjs → memoTheme-D8ch-Aus.cjs} +1 -1
  253. package/dist/refType-B7SJEv5t.cjs +1 -0
  254. package/dist/{refType-B86yTZra.js → refType-D-xpF9tL.js} +1 -1
  255. package/dist/{resolveComponentProps-0QnU-fDT.js → resolveComponentProps-BFteOhbz.js} +1 -1
  256. package/dist/resolveComponentProps-ZXhc99MU.cjs +1 -0
  257. package/dist/{useSlot-CZNcsPv1.js → useSlot-C73TTXlD.js} +1 -1
  258. package/dist/{useSlot-CyXLaLc2.cjs → useSlot-bB9P8y2N.cjs} +1 -1
  259. package/dist/useSlotProps-CuY7blPC.cjs +1 -0
  260. package/dist/useSlotProps-Cz_jXqU-.js +25 -0
  261. package/dist/useTheme-BI9bHTEJ.cjs +1 -0
  262. package/dist/{useTheme-DxxkErdZ.js → useTheme-C0OFZcd4.js} +1 -1
  263. package/dist/useTheme-C9d_IgK4.cjs +1 -0
  264. package/dist/useTheme-EvTdEPuY.js +11 -0
  265. package/dist/useThemeProps-DUEuJR3m.cjs +1 -0
  266. package/dist/{useThemeProps-BGZrRNnL.js → useThemeProps-ch-ZdCsr.js} +2 -2
  267. package/dist/useThemeProps-jdOTP9Fb.js +17 -0
  268. package/dist/{useThemeProps-CpNQz1Ap.cjs → useThemeProps-qlNnBrri.cjs} +1 -1
  269. package/dist/utils-BODEd0eo.cjs +1 -0
  270. package/dist/{utils-SrEVp7Pm.js → utils-_bodXh-n.js} +76 -104
  271. package/package.json +2 -1
  272. package/dist/Backdrop-COarwgJj.cjs +0 -1
  273. package/dist/Box-C0mEbUoK.cjs +0 -1
  274. package/dist/Button-1tZRtOeG.cjs +0 -1
  275. package/dist/CardContent-BXjX98Jd.cjs +0 -1
  276. package/dist/Checkbox-C6CIGK27.cjs +0 -1
  277. package/dist/Chip-CAPnyZyW.cjs +0 -1
  278. package/dist/CircularProgress-DTVP6gln.cjs +0 -28
  279. package/dist/DatePicker-CJ5-Udgh.cjs +0 -14
  280. package/dist/DefaultPropsProvider-QmkL7lbM.cjs +0 -1
  281. package/dist/Dialog-Cmv58WoN.cjs +0 -1
  282. package/dist/DialogContent-CGEdCDYk.cjs +0 -1
  283. package/dist/DialogTitle-Dxm2NHs7.cjs +0 -1
  284. package/dist/Divider-D_LVNUqS.cjs +0 -1
  285. package/dist/FormLabel-D0gSgwnj.cjs +0 -2
  286. package/dist/Grow-D7scX77o.cjs +0 -1
  287. package/dist/IconButton-Edo5JMfQ.cjs +0 -2
  288. package/dist/InputAdornment-C9NrmB_z.cjs +0 -1
  289. package/dist/InputBase-CgOQ0M4_.cjs +0 -3
  290. package/dist/Link-CAbb9OCV.cjs +0 -1
  291. package/dist/Menu-C-R0FVOB.cjs +0 -7
  292. package/dist/MenuItem-Cp1_Q0FD.cjs +0 -1
  293. package/dist/Paper-C-oPGpbI.cjs +0 -2
  294. package/dist/Popper-uw9PkkLY.cjs +0 -4
  295. package/dist/Portal-bIKnnWR4.cjs +0 -1
  296. package/dist/Radio-CvCkmq8g.cjs +0 -1
  297. package/dist/RadioGroup-Ya-I8Lz1.cjs +0 -1
  298. package/dist/Select-KMdcuol6.cjs +0 -3
  299. package/dist/Stack-C6v70ALA.cjs +0 -1
  300. package/dist/Switch-DF4bSjED.cjs +0 -1
  301. package/dist/SwitchBase-7zONZyYP.cjs +0 -1
  302. package/dist/Tabs-CrWcC5nJ.js +0 -1225
  303. package/dist/Tabs-Dploq_37.cjs +0 -4
  304. package/dist/TextField-BC7GvvHh.cjs +0 -1
  305. package/dist/ToggleButtonGroup-BCVgsika.cjs +0 -140
  306. package/dist/ToggleButtonGroup-ekxVeQCc.js +0 -10461
  307. package/dist/Tooltip-CWA-GKdK.cjs +0 -4
  308. package/dist/Typography-DEAE8-8u.cjs +0 -1
  309. package/dist/components/TextInput/TextInput.cjs.js +0 -1
  310. package/dist/components/TextInput/TextInput.d.ts +0 -4
  311. package/dist/components/TextInput/TextInput.es.js +0 -6
  312. package/dist/components/TextInput/index.cjs.js +0 -1
  313. package/dist/components/TextInput/index.d.ts +0 -2
  314. package/dist/components/TextInput/index.es.js +0 -4
  315. package/dist/createSvgIcon-Dn4BBPej.cjs +0 -1
  316. package/dist/dividerClasses-Zk1QmrZw.cjs +0 -1
  317. package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +0 -1
  318. package/dist/extendSxProp-BB6jYY1x.cjs +0 -1
  319. package/dist/fr-B3qrCNcK.js +0 -312
  320. package/dist/fr-JE-1WKP6.cjs +0 -1
  321. package/dist/identifier-5n4d7br9.cjs +0 -75
  322. package/dist/index-5BAFzrXD.cjs +0 -1
  323. package/dist/index-CFm-oAsb.cjs +0 -1
  324. package/dist/index-CJW5gB6d.cjs +0 -5
  325. package/dist/index-DwHI-aa0.js +0 -45
  326. package/dist/refType-CjW6JOBA.cjs +0 -1
  327. package/dist/resolveComponentProps-D0sgyopa.cjs +0 -1
  328. package/dist/useTheme-Bi8B4Op1.cjs +0 -1
  329. package/dist/useTheme-C_2IF7CS.cjs +0 -1
  330. package/dist/useTheme-Clhsq4HW.js +0 -11
  331. package/dist/useThemeProps-C6qniHmV.js +0 -17
  332. package/dist/useThemeProps-Dq3GRYN1.cjs +0 -1
  333. package/dist/utils-D4if93Yl.cjs +0 -1
  334. /package/dist/assets/{styles.css → Loader.css} +0 -0
  335. /package/dist/assets/{styles2.css → LoaderBackdrop.css} +0 -0
@@ -1,1225 +0,0 @@
1
- import * as c from "react";
2
- import { H as pt, I as ft, G as W, L as Wt, P as e, _ as ee } from "./identifier-D58rA1gM.js";
3
- import { m as bt } from "./memoTheme-DyiN-Awd.js";
4
- import { jsxs as q, jsx as x } from "react/jsx-runtime";
5
- import { u as ht, s as L, c as mt } from "./DefaultPropsProvider-BcmyIf2H.js";
6
- import { B as kt } from "./ButtonBase-DzpmdR6N.js";
7
- import { u as oe } from "./unsupportedProp-BuVD30Gh.js";
8
- import { u as zt, a as rt } from "./index-DwHI-aa0.js";
9
- import { u as re } from "./useTheme-Clhsq4HW.js";
10
- import { u as ne } from "./useEnhancedEffect-CJGo-L3B.js";
11
- import { d as Dt } from "./debounce-46wSf_lW.js";
12
- import { o as $t } from "./ownerWindow-niciwP7I.js";
13
- import { c as At } from "./createSvgIcon-CCejzj0C.js";
14
- import { u as dt } from "./useEventCallback-BAQJJ3ye.js";
15
- import { o as le } from "./ownerDocument-CUrv0DIK.js";
16
- import { r as se } from "./refType-B86yTZra.js";
17
- function ae(o) {
18
- return ft("MuiTab", o);
19
- }
20
- const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), ie = (o) => {
21
- const {
22
- classes: t,
23
- textColor: l,
24
- fullWidth: d,
25
- wrapped: i,
26
- icon: u,
27
- label: b,
28
- selected: h,
29
- disabled: f
30
- } = o, S = {
31
- root: ["root", u && b && "labelIcon", `textColor${Wt(l)}`, d && "fullWidth", i && "wrapped", h && "selected", f && "disabled"],
32
- icon: ["iconWrapper", "icon"]
33
- };
34
- return mt(S, ae, t);
35
- }, ce = L(kt, {
36
- name: "MuiTab",
37
- slot: "Root",
38
- overridesResolver: (o, t) => {
39
- const {
40
- ownerState: l
41
- } = o;
42
- return [t.root, l.label && l.icon && t.labelIcon, t[`textColor${Wt(l.textColor)}`], l.fullWidth && t.fullWidth, l.wrapped && t.wrapped, {
43
- [`& .${T.iconWrapper}`]: t.iconWrapper
44
- }, {
45
- [`& .${T.icon}`]: t.icon
46
- }];
47
- }
48
- })(bt(({
49
- theme: o
50
- }) => ({
51
- ...o.typography.button,
52
- maxWidth: 360,
53
- minWidth: 90,
54
- position: "relative",
55
- minHeight: 48,
56
- flexShrink: 0,
57
- padding: "12px 16px",
58
- overflow: "hidden",
59
- whiteSpace: "normal",
60
- textAlign: "center",
61
- lineHeight: 1.25,
62
- variants: [{
63
- props: ({
64
- ownerState: t
65
- }) => t.label && (t.iconPosition === "top" || t.iconPosition === "bottom"),
66
- style: {
67
- flexDirection: "column"
68
- }
69
- }, {
70
- props: ({
71
- ownerState: t
72
- }) => t.label && t.iconPosition !== "top" && t.iconPosition !== "bottom",
73
- style: {
74
- flexDirection: "row"
75
- }
76
- }, {
77
- props: ({
78
- ownerState: t
79
- }) => t.icon && t.label,
80
- style: {
81
- minHeight: 72,
82
- paddingTop: 9,
83
- paddingBottom: 9
84
- }
85
- }, {
86
- props: ({
87
- ownerState: t,
88
- iconPosition: l
89
- }) => t.icon && t.label && l === "top",
90
- style: {
91
- [`& > .${T.icon}`]: {
92
- marginBottom: 6
93
- }
94
- }
95
- }, {
96
- props: ({
97
- ownerState: t,
98
- iconPosition: l
99
- }) => t.icon && t.label && l === "bottom",
100
- style: {
101
- [`& > .${T.icon}`]: {
102
- marginTop: 6
103
- }
104
- }
105
- }, {
106
- props: ({
107
- ownerState: t,
108
- iconPosition: l
109
- }) => t.icon && t.label && l === "start",
110
- style: {
111
- [`& > .${T.icon}`]: {
112
- marginRight: o.spacing(1)
113
- }
114
- }
115
- }, {
116
- props: ({
117
- ownerState: t,
118
- iconPosition: l
119
- }) => t.icon && t.label && l === "end",
120
- style: {
121
- [`& > .${T.icon}`]: {
122
- marginLeft: o.spacing(1)
123
- }
124
- }
125
- }, {
126
- props: {
127
- textColor: "inherit"
128
- },
129
- style: {
130
- color: "inherit",
131
- opacity: 0.6,
132
- // same opacity as theme.palette.text.secondary
133
- [`&.${T.selected}`]: {
134
- opacity: 1
135
- },
136
- [`&.${T.disabled}`]: {
137
- opacity: (o.vars || o).palette.action.disabledOpacity
138
- }
139
- }
140
- }, {
141
- props: {
142
- textColor: "primary"
143
- },
144
- style: {
145
- color: (o.vars || o).palette.text.secondary,
146
- [`&.${T.selected}`]: {
147
- color: (o.vars || o).palette.primary.main
148
- },
149
- [`&.${T.disabled}`]: {
150
- color: (o.vars || o).palette.text.disabled
151
- }
152
- }
153
- }, {
154
- props: {
155
- textColor: "secondary"
156
- },
157
- style: {
158
- color: (o.vars || o).palette.text.secondary,
159
- [`&.${T.selected}`]: {
160
- color: (o.vars || o).palette.secondary.main
161
- },
162
- [`&.${T.disabled}`]: {
163
- color: (o.vars || o).palette.text.disabled
164
- }
165
- }
166
- }, {
167
- props: ({
168
- ownerState: t
169
- }) => t.fullWidth,
170
- style: {
171
- flexShrink: 1,
172
- flexGrow: 1,
173
- flexBasis: 0,
174
- maxWidth: "none"
175
- }
176
- }, {
177
- props: ({
178
- ownerState: t
179
- }) => t.wrapped,
180
- style: {
181
- fontSize: o.typography.pxToRem(12)
182
- }
183
- }]
184
- }))), de = /* @__PURE__ */ c.forwardRef(function(t, l) {
185
- const d = ht({
186
- props: t,
187
- name: "MuiTab"
188
- }), {
189
- className: i,
190
- disabled: u = !1,
191
- disableFocusRipple: b = !1,
192
- // eslint-disable-next-line react/prop-types
193
- fullWidth: h,
194
- icon: f,
195
- iconPosition: S = "top",
196
- // eslint-disable-next-line react/prop-types
197
- indicator: v,
198
- label: y,
199
- onChange: m,
200
- onClick: C,
201
- onFocus: k,
202
- // eslint-disable-next-line react/prop-types
203
- selected: I,
204
- // eslint-disable-next-line react/prop-types
205
- selectionFollowsFocus: g,
206
- // eslint-disable-next-line react/prop-types
207
- textColor: j = "inherit",
208
- value: M,
209
- wrapped: nt = !1,
210
- ...H
211
- } = d, U = {
212
- ...d,
213
- disabled: u,
214
- disableFocusRipple: b,
215
- selected: I,
216
- icon: !!f,
217
- iconPosition: S,
218
- label: !!y,
219
- fullWidth: h,
220
- textColor: j,
221
- wrapped: nt
222
- }, V = ie(U), z = f && y && /* @__PURE__ */ c.isValidElement(f) ? /* @__PURE__ */ c.cloneElement(f, {
223
- className: W(V.icon, f.props.className)
224
- }) : f, G = (R) => {
225
- !I && m && m(R, M), C && C(R);
226
- }, N = (R) => {
227
- g && !I && m && m(R, M), k && k(R);
228
- };
229
- return /* @__PURE__ */ q(ce, {
230
- focusRipple: !b,
231
- className: W(V.root, i),
232
- ref: l,
233
- role: "tab",
234
- "aria-selected": I,
235
- disabled: u,
236
- onClick: G,
237
- onFocus: N,
238
- ownerState: U,
239
- tabIndex: I ? 0 : -1,
240
- ...H,
241
- children: [S === "top" || S === "start" ? /* @__PURE__ */ q(c.Fragment, {
242
- children: [z, y]
243
- }) : /* @__PURE__ */ q(c.Fragment, {
244
- children: [y, z]
245
- }), v]
246
- });
247
- });
248
- process.env.NODE_ENV !== "production" && (de.propTypes = {
249
- // ┌────────────────────────────── Warning ──────────────────────────────┐
250
- // │ These PropTypes are generated from the TypeScript type definitions. │
251
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
252
- // └─────────────────────────────────────────────────────────────────────┘
253
- /**
254
- * This prop isn't supported.
255
- * Use the `component` prop if you need to change the children structure.
256
- */
257
- children: oe,
258
- /**
259
- * Override or extend the styles applied to the component.
260
- */
261
- classes: e.object,
262
- /**
263
- * @ignore
264
- */
265
- className: e.string,
266
- /**
267
- * If `true`, the component is disabled.
268
- * @default false
269
- */
270
- disabled: e.bool,
271
- /**
272
- * If `true`, the keyboard focus ripple is disabled.
273
- * @default false
274
- */
275
- disableFocusRipple: e.bool,
276
- /**
277
- * If `true`, the ripple effect is disabled.
278
- *
279
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
280
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
281
- * @default false
282
- */
283
- disableRipple: e.bool,
284
- /**
285
- * The icon to display.
286
- */
287
- icon: e.oneOfType([e.element, e.string]),
288
- /**
289
- * The position of the icon relative to the label.
290
- * @default 'top'
291
- */
292
- iconPosition: e.oneOf(["bottom", "end", "start", "top"]),
293
- /**
294
- * The label element.
295
- */
296
- label: e.node,
297
- /**
298
- * @ignore
299
- */
300
- onChange: e.func,
301
- /**
302
- * @ignore
303
- */
304
- onClick: e.func,
305
- /**
306
- * @ignore
307
- */
308
- onFocus: e.func,
309
- /**
310
- * The system prop that allows defining system overrides as well as additional CSS styles.
311
- */
312
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
313
- /**
314
- * You can provide your own value. Otherwise, we fallback to the child position index.
315
- */
316
- value: e.any,
317
- /**
318
- * Tab labels appear in a single row.
319
- * They can use a second line if needed.
320
- * @default false
321
- */
322
- wrapped: e.bool
323
- });
324
- const ue = At(/* @__PURE__ */ x("path", {
325
- d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
326
- }), "KeyboardArrowLeft"), pe = At(/* @__PURE__ */ x("path", {
327
- d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
328
- }), "KeyboardArrowRight");
329
- function fe(o) {
330
- return (1 + Math.sin(Math.PI * o - Math.PI / 2)) / 2;
331
- }
332
- function be(o, t, l, d = {}, i = () => {
333
- }) {
334
- const {
335
- ease: u = fe,
336
- duration: b = 300
337
- // standard
338
- } = d;
339
- let h = null;
340
- const f = t[o];
341
- let S = !1;
342
- const v = () => {
343
- S = !0;
344
- }, y = (m) => {
345
- if (S) {
346
- i(new Error("Animation cancelled"));
347
- return;
348
- }
349
- h === null && (h = m);
350
- const C = Math.min(1, (m - h) / b);
351
- if (t[o] = u(C) * (l - f) + f, C >= 1) {
352
- requestAnimationFrame(() => {
353
- i(null);
354
- });
355
- return;
356
- }
357
- requestAnimationFrame(y);
358
- };
359
- return f === l ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(y), v);
360
- }
361
- const he = {
362
- width: 99,
363
- height: 99,
364
- position: "absolute",
365
- top: -9999,
366
- overflow: "scroll"
367
- };
368
- function Ft(o) {
369
- const {
370
- onChange: t,
371
- ...l
372
- } = o, d = c.useRef(), i = c.useRef(null), u = () => {
373
- d.current = i.current.offsetHeight - i.current.clientHeight;
374
- };
375
- return ne(() => {
376
- const b = Dt(() => {
377
- const f = d.current;
378
- u(), f !== d.current && t(d.current);
379
- }), h = $t(i.current);
380
- return h.addEventListener("resize", b), () => {
381
- b.clear(), h.removeEventListener("resize", b);
382
- };
383
- }, [t]), c.useEffect(() => {
384
- u(), t(d.current);
385
- }, [t]), /* @__PURE__ */ x("div", {
386
- style: he,
387
- ...l,
388
- ref: i
389
- });
390
- }
391
- process.env.NODE_ENV !== "production" && (Ft.propTypes = {
392
- onChange: e.func.isRequired
393
- });
394
- function me(o) {
395
- return ft("MuiTabScrollButton", o);
396
- }
397
- const Se = pt("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), ve = (o) => {
398
- const {
399
- classes: t,
400
- orientation: l,
401
- disabled: d
402
- } = o;
403
- return mt({
404
- root: ["root", l, d && "disabled"]
405
- }, me, t);
406
- }, ye = L(kt, {
407
- name: "MuiTabScrollButton",
408
- slot: "Root",
409
- overridesResolver: (o, t) => {
410
- const {
411
- ownerState: l
412
- } = o;
413
- return [t.root, l.orientation && t[l.orientation]];
414
- }
415
- })({
416
- width: 40,
417
- flexShrink: 0,
418
- opacity: 0.8,
419
- [`&.${Se.disabled}`]: {
420
- opacity: 0
421
- },
422
- variants: [{
423
- props: {
424
- orientation: "vertical"
425
- },
426
- style: {
427
- width: "100%",
428
- height: 40,
429
- "& svg": {
430
- transform: "var(--TabScrollButton-svgRotate)"
431
- }
432
- }
433
- }]
434
- }), Lt = /* @__PURE__ */ c.forwardRef(function(t, l) {
435
- const d = ht({
436
- props: t,
437
- name: "MuiTabScrollButton"
438
- }), {
439
- className: i,
440
- slots: u = {},
441
- slotProps: b = {},
442
- direction: h,
443
- orientation: f,
444
- disabled: S,
445
- ...v
446
- } = d, y = zt(), m = {
447
- isRtl: y,
448
- ...d
449
- }, C = ve(m), k = u.StartScrollButtonIcon ?? ue, I = u.EndScrollButtonIcon ?? pe, g = rt({
450
- elementType: k,
451
- externalSlotProps: b.startScrollButtonIcon,
452
- additionalProps: {
453
- fontSize: "small"
454
- },
455
- ownerState: m
456
- }), j = rt({
457
- elementType: I,
458
- externalSlotProps: b.endScrollButtonIcon,
459
- additionalProps: {
460
- fontSize: "small"
461
- },
462
- ownerState: m
463
- });
464
- return /* @__PURE__ */ x(ye, {
465
- component: "div",
466
- className: W(C.root, i),
467
- ref: l,
468
- role: null,
469
- ownerState: m,
470
- tabIndex: null,
471
- ...v,
472
- style: {
473
- ...v.style,
474
- ...f === "vertical" && {
475
- "--TabScrollButton-svgRotate": `rotate(${y ? -90 : 90}deg)`
476
- }
477
- },
478
- children: h === "left" ? /* @__PURE__ */ x(k, {
479
- ...g
480
- }) : /* @__PURE__ */ x(I, {
481
- ...j
482
- })
483
- });
484
- });
485
- process.env.NODE_ENV !== "production" && (Lt.propTypes = {
486
- // ┌────────────────────────────── Warning ──────────────────────────────┐
487
- // │ These PropTypes are generated from the TypeScript type definitions. │
488
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
489
- // └─────────────────────────────────────────────────────────────────────┘
490
- /**
491
- * The content of the component.
492
- */
493
- children: e.node,
494
- /**
495
- * Override or extend the styles applied to the component.
496
- */
497
- classes: e.object,
498
- /**
499
- * @ignore
500
- */
501
- className: e.string,
502
- /**
503
- * The direction the button should indicate.
504
- */
505
- direction: e.oneOf(["left", "right"]).isRequired,
506
- /**
507
- * If `true`, the component is disabled.
508
- * @default false
509
- */
510
- disabled: e.bool,
511
- /**
512
- * The component orientation (layout flow direction).
513
- */
514
- orientation: e.oneOf(["horizontal", "vertical"]).isRequired,
515
- /**
516
- * The extra props for the slot components.
517
- * You can override the existing props or add new ones.
518
- * @default {}
519
- */
520
- slotProps: e.shape({
521
- endScrollButtonIcon: e.oneOfType([e.func, e.object]),
522
- startScrollButtonIcon: e.oneOfType([e.func, e.object])
523
- }),
524
- /**
525
- * The components used for each slot inside.
526
- * @default {}
527
- */
528
- slots: e.shape({
529
- EndScrollButtonIcon: e.elementType,
530
- StartScrollButtonIcon: e.elementType
531
- }),
532
- /**
533
- * @ignore
534
- */
535
- style: e.object,
536
- /**
537
- * The system prop that allows defining system overrides as well as additional CSS styles.
538
- */
539
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
540
- });
541
- function ge(o) {
542
- return ft("MuiTabs", o);
543
- }
544
- const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), Rt = (o, t) => o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : o.firstChild, Ot = (o, t) => o === t ? o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : o.lastChild, ot = (o, t, l) => {
545
- let d = !1, i = l(o, t);
546
- for (; i; ) {
547
- if (i === o.firstChild) {
548
- if (d)
549
- return;
550
- d = !0;
551
- }
552
- const u = i.disabled || i.getAttribute("aria-disabled") === "true";
553
- if (!i.hasAttribute("tabindex") || u)
554
- i = l(o, i);
555
- else {
556
- i.focus();
557
- return;
558
- }
559
- }
560
- }, Te = (o) => {
561
- const {
562
- vertical: t,
563
- fixed: l,
564
- hideScrollbar: d,
565
- scrollableX: i,
566
- scrollableY: u,
567
- centered: b,
568
- scrollButtonsHideMobile: h,
569
- classes: f
570
- } = o;
571
- return mt({
572
- root: ["root", t && "vertical"],
573
- scroller: ["scroller", l && "fixed", d && "hideScrollbar", i && "scrollableX", u && "scrollableY"],
574
- flexContainer: ["flexContainer", t && "flexContainerVertical", b && "centered"],
575
- indicator: ["indicator"],
576
- scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
577
- scrollableX: [i && "scrollableX"],
578
- hideScrollbar: [d && "hideScrollbar"]
579
- }, ge, f);
580
- }, we = L("div", {
581
- name: "MuiTabs",
582
- slot: "Root",
583
- overridesResolver: (o, t) => {
584
- const {
585
- ownerState: l
586
- } = o;
587
- return [{
588
- [`& .${ut.scrollButtons}`]: t.scrollButtons
589
- }, {
590
- [`& .${ut.scrollButtons}`]: l.scrollButtonsHideMobile && t.scrollButtonsHideMobile
591
- }, t.root, l.vertical && t.vertical];
592
- }
593
- })(bt(({
594
- theme: o
595
- }) => ({
596
- overflow: "hidden",
597
- minHeight: 48,
598
- // Add iOS momentum scrolling for iOS < 13.0
599
- WebkitOverflowScrolling: "touch",
600
- display: "flex",
601
- variants: [{
602
- props: ({
603
- ownerState: t
604
- }) => t.vertical,
605
- style: {
606
- flexDirection: "column"
607
- }
608
- }, {
609
- props: ({
610
- ownerState: t
611
- }) => t.scrollButtonsHideMobile,
612
- style: {
613
- [`& .${ut.scrollButtons}`]: {
614
- [o.breakpoints.down("sm")]: {
615
- display: "none"
616
- }
617
- }
618
- }
619
- }]
620
- }))), Be = L("div", {
621
- name: "MuiTabs",
622
- slot: "Scroller",
623
- overridesResolver: (o, t) => {
624
- const {
625
- ownerState: l
626
- } = o;
627
- return [t.scroller, l.fixed && t.fixed, l.hideScrollbar && t.hideScrollbar, l.scrollableX && t.scrollableX, l.scrollableY && t.scrollableY];
628
- }
629
- })({
630
- position: "relative",
631
- display: "inline-block",
632
- flex: "1 1 auto",
633
- whiteSpace: "nowrap",
634
- variants: [{
635
- props: ({
636
- ownerState: o
637
- }) => o.fixed,
638
- style: {
639
- overflowX: "hidden",
640
- width: "100%"
641
- }
642
- }, {
643
- props: ({
644
- ownerState: o
645
- }) => o.hideScrollbar,
646
- style: {
647
- // Hide dimensionless scrollbar on macOS
648
- scrollbarWidth: "none",
649
- // Firefox
650
- "&::-webkit-scrollbar": {
651
- display: "none"
652
- // Safari + Chrome
653
- }
654
- }
655
- }, {
656
- props: ({
657
- ownerState: o
658
- }) => o.scrollableX,
659
- style: {
660
- overflowX: "auto",
661
- overflowY: "hidden"
662
- }
663
- }, {
664
- props: ({
665
- ownerState: o
666
- }) => o.scrollableY,
667
- style: {
668
- overflowY: "auto",
669
- overflowX: "hidden"
670
- }
671
- }]
672
- }), xe = L("div", {
673
- name: "MuiTabs",
674
- slot: "FlexContainer",
675
- overridesResolver: (o, t) => {
676
- const {
677
- ownerState: l
678
- } = o;
679
- return [t.flexContainer, l.vertical && t.flexContainerVertical, l.centered && t.centered];
680
- }
681
- })({
682
- display: "flex",
683
- variants: [{
684
- props: ({
685
- ownerState: o
686
- }) => o.vertical,
687
- style: {
688
- flexDirection: "column"
689
- }
690
- }, {
691
- props: ({
692
- ownerState: o
693
- }) => o.centered,
694
- style: {
695
- justifyContent: "center"
696
- }
697
- }]
698
- }), Ce = L("span", {
699
- name: "MuiTabs",
700
- slot: "Indicator",
701
- overridesResolver: (o, t) => t.indicator
702
- })(bt(({
703
- theme: o
704
- }) => ({
705
- position: "absolute",
706
- height: 2,
707
- bottom: 0,
708
- width: "100%",
709
- transition: o.transitions.create(),
710
- variants: [{
711
- props: {
712
- indicatorColor: "primary"
713
- },
714
- style: {
715
- backgroundColor: (o.vars || o).palette.primary.main
716
- }
717
- }, {
718
- props: {
719
- indicatorColor: "secondary"
720
- },
721
- style: {
722
- backgroundColor: (o.vars || o).palette.secondary.main
723
- }
724
- }, {
725
- props: ({
726
- ownerState: t
727
- }) => t.vertical,
728
- style: {
729
- height: "100%",
730
- width: 2,
731
- right: 0
732
- }
733
- }]
734
- }))), Ie = L(Ft)({
735
- overflowX: "auto",
736
- overflowY: "hidden",
737
- // Hide dimensionless scrollbar on macOS
738
- scrollbarWidth: "none",
739
- // Firefox
740
- "&::-webkit-scrollbar": {
741
- display: "none"
742
- // Safari + Chrome
743
- }
744
- }), Nt = {};
745
- let Pt = !1;
746
- const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
747
- const d = ht({
748
- props: t,
749
- name: "MuiTabs"
750
- }), i = re(), u = zt(), {
751
- "aria-label": b,
752
- "aria-labelledby": h,
753
- action: f,
754
- centered: S = !1,
755
- children: v,
756
- className: y,
757
- component: m = "div",
758
- allowScrollButtonsMobile: C = !1,
759
- indicatorColor: k = "primary",
760
- onChange: I,
761
- orientation: g = "horizontal",
762
- ScrollButtonComponent: j = Lt,
763
- scrollButtons: M = "auto",
764
- selectionFollowsFocus: nt,
765
- slots: H = {},
766
- slotProps: U = {},
767
- TabIndicatorProps: V = {},
768
- TabScrollButtonProps: z = {},
769
- textColor: G = "primary",
770
- value: N,
771
- variant: R = "standard",
772
- visibleScrollbar: lt = !1,
773
- ...jt
774
- } = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", J = B ? "top" : "left", Q = B ? "bottom" : "right", st = B ? "clientHeight" : "clientWidth", Y = B ? "height" : "width", D = {
775
- ...d,
776
- component: m,
777
- allowScrollButtonsMobile: C,
778
- indicatorColor: k,
779
- orientation: g,
780
- vertical: B,
781
- scrollButtons: M,
782
- textColor: G,
783
- variant: R,
784
- visibleScrollbar: lt,
785
- fixed: !w,
786
- hideScrollbar: w && !lt,
787
- scrollableX: w && !B,
788
- scrollableY: w && B,
789
- centered: S && !w,
790
- scrollButtonsHideMobile: !C
791
- }, P = Te(D), Ht = rt({
792
- elementType: H.StartScrollButtonIcon,
793
- externalSlotProps: U.startScrollButtonIcon,
794
- ownerState: D
795
- }), Vt = rt({
796
- elementType: H.EndScrollButtonIcon,
797
- externalSlotProps: U.endScrollButtonIcon,
798
- ownerState: D
799
- });
800
- process.env.NODE_ENV !== "production" && S && w && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
801
- const [St, Ut] = c.useState(!1), [$, vt] = c.useState(Nt), [yt, Xt] = c.useState(!1), [gt, Yt] = c.useState(!1), [Tt, _t] = c.useState(!1), [wt, Kt] = c.useState({
802
- overflow: "hidden",
803
- scrollbarWidth: 0
804
- }), Z = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null), Bt = () => {
805
- const r = O.current;
806
- let n;
807
- if (r) {
808
- const a = r.getBoundingClientRect();
809
- n = {
810
- clientWidth: r.clientWidth,
811
- scrollLeft: r.scrollLeft,
812
- scrollTop: r.scrollTop,
813
- scrollWidth: r.scrollWidth,
814
- top: a.top,
815
- bottom: a.bottom,
816
- left: a.left,
817
- right: a.right
818
- };
819
- }
820
- let s;
821
- if (r && N !== !1) {
822
- const a = A.current.children;
823
- if (a.length > 0) {
824
- const p = a[Z.get(N)];
825
- process.env.NODE_ENV !== "production" && (p || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${N}".`, Z.keys ? `You can provide one of the following values: ${Array.from(Z.keys()).join(", ")}.` : null].join(`
826
- `))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Pt && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
827
- n.clientWidth !== 0 && (n = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${N}") 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(`
828
- `)), Pt = !0);
829
- }
830
- }
831
- return {
832
- tabsMeta: n,
833
- tabMeta: s
834
- };
835
- }, _ = dt(() => {
836
- const {
837
- tabsMeta: r,
838
- tabMeta: n
839
- } = Bt();
840
- let s = 0, a;
841
- B ? (a = "top", n && r && (s = n.top - r.top + r.scrollTop)) : (a = u ? "right" : "left", n && r && (s = (u ? -1 : 1) * (n[a] - r[a] + r.scrollLeft)));
842
- const p = {
843
- [a]: s,
844
- // May be wrong until the font is loaded.
845
- [Y]: n ? n[Y] : 0
846
- };
847
- if (typeof $[a] != "number" || typeof $[Y] != "number")
848
- vt(p);
849
- else {
850
- const E = Math.abs($[a] - p[a]), F = Math.abs($[Y] - p[Y]);
851
- (E >= 1 || F >= 1) && vt(p);
852
- }
853
- }), at = (r, {
854
- animation: n = !0
855
- } = {}) => {
856
- n ? be(X, O.current, r, {
857
- duration: i.transitions.duration.standard
858
- }) : O.current[X] = r;
859
- }, xt = (r) => {
860
- let n = O.current[X];
861
- B ? n += r : n += r * (u ? -1 : 1), at(n);
862
- }, Ct = () => {
863
- const r = O.current[st];
864
- let n = 0;
865
- const s = Array.from(A.current.children);
866
- for (let a = 0; a < s.length; a += 1) {
867
- const p = s[a];
868
- if (n + p[st] > r) {
869
- a === 0 && (n = r);
870
- break;
871
- }
872
- n += p[st];
873
- }
874
- return n;
875
- }, qt = () => {
876
- xt(-1 * Ct());
877
- }, Gt = () => {
878
- xt(Ct());
879
- }, Jt = c.useCallback((r) => {
880
- Kt({
881
- overflow: null,
882
- scrollbarWidth: r
883
- });
884
- }, []), Qt = () => {
885
- const r = {};
886
- r.scrollbarSizeListener = w ? /* @__PURE__ */ x(Ie, {
887
- onChange: Jt,
888
- className: W(P.scrollableX, P.hideScrollbar)
889
- }) : null;
890
- const s = w && (M === "auto" && (yt || gt) || M === !0);
891
- return r.scrollButtonStart = s ? /* @__PURE__ */ x(j, {
892
- slots: {
893
- StartScrollButtonIcon: H.StartScrollButtonIcon
894
- },
895
- slotProps: {
896
- startScrollButtonIcon: Ht
897
- },
898
- orientation: g,
899
- direction: u ? "right" : "left",
900
- onClick: qt,
901
- disabled: !yt,
902
- ...z,
903
- className: W(P.scrollButtons, z.className)
904
- }) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ x(j, {
905
- slots: {
906
- EndScrollButtonIcon: H.EndScrollButtonIcon
907
- },
908
- slotProps: {
909
- endScrollButtonIcon: Vt
910
- },
911
- orientation: g,
912
- direction: u ? "left" : "right",
913
- onClick: Gt,
914
- disabled: !gt,
915
- ...z,
916
- className: W(P.scrollButtons, z.className)
917
- }) : null, r;
918
- }, It = dt((r) => {
919
- const {
920
- tabsMeta: n,
921
- tabMeta: s
922
- } = Bt();
923
- if (!(!s || !n)) {
924
- if (s[J] < n[J]) {
925
- const a = n[X] + (s[J] - n[J]);
926
- at(a, {
927
- animation: r
928
- });
929
- } else if (s[Q] > n[Q]) {
930
- const a = n[X] + (s[Q] - n[Q]);
931
- at(a, {
932
- animation: r
933
- });
934
- }
935
- }
936
- }), tt = dt(() => {
937
- w && M !== !1 && _t(!Tt);
938
- });
939
- c.useEffect(() => {
940
- const r = Dt(() => {
941
- O.current && _();
942
- });
943
- let n;
944
- const s = (E) => {
945
- E.forEach((F) => {
946
- F.removedNodes.forEach((K) => {
947
- n == null || n.unobserve(K);
948
- }), F.addedNodes.forEach((K) => {
949
- n == null || n.observe(K);
950
- });
951
- }), r(), tt();
952
- }, a = $t(O.current);
953
- a.addEventListener("resize", r);
954
- let p;
955
- return typeof ResizeObserver < "u" && (n = new ResizeObserver(r), Array.from(A.current.children).forEach((E) => {
956
- n.observe(E);
957
- })), typeof MutationObserver < "u" && (p = new MutationObserver(s), p.observe(A.current, {
958
- childList: !0
959
- })), () => {
960
- r.clear(), a.removeEventListener("resize", r), p == null || p.disconnect(), n == null || n.disconnect();
961
- };
962
- }, [_, tt]), c.useEffect(() => {
963
- const r = Array.from(A.current.children), n = r.length;
964
- if (typeof IntersectionObserver < "u" && n > 0 && w && M !== !1) {
965
- const s = r[0], a = r[n - 1], p = {
966
- root: O.current,
967
- threshold: 0.99
968
- }, E = (ct) => {
969
- Xt(!ct[0].isIntersecting);
970
- }, F = new IntersectionObserver(E, p);
971
- F.observe(s);
972
- const K = (ct) => {
973
- Yt(!ct[0].isIntersecting);
974
- }, Mt = new IntersectionObserver(K, p);
975
- return Mt.observe(a), () => {
976
- F.disconnect(), Mt.disconnect();
977
- };
978
- }
979
- }, [w, M, Tt, v == null ? void 0 : v.length]), c.useEffect(() => {
980
- Ut(!0);
981
- }, []), c.useEffect(() => {
982
- _();
983
- }), c.useEffect(() => {
984
- It(Nt !== $);
985
- }, [It, $]), c.useImperativeHandle(f, () => ({
986
- updateIndicator: _,
987
- updateScrollButtons: tt
988
- }), [_, tt]);
989
- const Et = /* @__PURE__ */ x(Ce, {
990
- ...V,
991
- className: W(P.indicator, V.className),
992
- ownerState: D,
993
- style: {
994
- ...$,
995
- ...V.style
996
- }
997
- });
998
- let et = 0;
999
- const Zt = c.Children.map(v, (r) => {
1000
- if (!/* @__PURE__ */ c.isValidElement(r))
1001
- return null;
1002
- process.env.NODE_ENV !== "production" && ee.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
1003
- `));
1004
- const n = r.props.value === void 0 ? et : r.props.value;
1005
- Z.set(n, et);
1006
- const s = n === N;
1007
- return et += 1, /* @__PURE__ */ c.cloneElement(r, {
1008
- fullWidth: R === "fullWidth",
1009
- indicator: s && !St && Et,
1010
- selected: s,
1011
- selectionFollowsFocus: nt,
1012
- onChange: I,
1013
- textColor: G,
1014
- value: n,
1015
- ...et === 1 && N === !1 && !r.props.tabIndex ? {
1016
- tabIndex: 0
1017
- } : {}
1018
- });
1019
- }), te = (r) => {
1020
- const n = A.current, s = le(n).activeElement;
1021
- if (s.getAttribute("role") !== "tab")
1022
- return;
1023
- let p = g === "horizontal" ? "ArrowLeft" : "ArrowUp", E = g === "horizontal" ? "ArrowRight" : "ArrowDown";
1024
- switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"), r.key) {
1025
- case p:
1026
- r.preventDefault(), ot(n, s, Ot);
1027
- break;
1028
- case E:
1029
- r.preventDefault(), ot(n, s, Rt);
1030
- break;
1031
- case "Home":
1032
- r.preventDefault(), ot(n, null, Rt);
1033
- break;
1034
- case "End":
1035
- r.preventDefault(), ot(n, null, Ot);
1036
- break;
1037
- }
1038
- }, it = Qt();
1039
- return /* @__PURE__ */ q(we, {
1040
- className: W(P.root, y),
1041
- ownerState: D,
1042
- ref: l,
1043
- as: m,
1044
- ...jt,
1045
- children: [it.scrollButtonStart, it.scrollbarSizeListener, /* @__PURE__ */ q(Be, {
1046
- className: P.scroller,
1047
- ownerState: D,
1048
- style: {
1049
- overflow: wt.overflow,
1050
- [B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: lt ? void 0 : -wt.scrollbarWidth
1051
- },
1052
- ref: O,
1053
- children: [/* @__PURE__ */ x(xe, {
1054
- "aria-label": b,
1055
- "aria-labelledby": h,
1056
- "aria-orientation": g === "vertical" ? "vertical" : null,
1057
- className: P.flexContainer,
1058
- ownerState: D,
1059
- onKeyDown: te,
1060
- ref: A,
1061
- role: "tablist",
1062
- children: Zt
1063
- }), St && Et]
1064
- }), it.scrollButtonEnd]
1065
- });
1066
- });
1067
- process.env.NODE_ENV !== "production" && (Ee.propTypes = {
1068
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1069
- // │ These PropTypes are generated from the TypeScript type definitions. │
1070
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1071
- // └─────────────────────────────────────────────────────────────────────┘
1072
- /**
1073
- * Callback fired when the component mounts.
1074
- * This is useful when you want to trigger an action programmatically.
1075
- * It supports two actions: `updateIndicator()` and `updateScrollButtons()`
1076
- *
1077
- * @param {object} actions This object contains all possible actions
1078
- * that can be triggered programmatically.
1079
- */
1080
- action: se,
1081
- /**
1082
- * If `true`, the scroll buttons aren't forced hidden on mobile.
1083
- * By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
1084
- * @default false
1085
- */
1086
- allowScrollButtonsMobile: e.bool,
1087
- /**
1088
- * The label for the Tabs as a string.
1089
- */
1090
- "aria-label": e.string,
1091
- /**
1092
- * An id or list of ids separated by a space that label the Tabs.
1093
- */
1094
- "aria-labelledby": e.string,
1095
- /**
1096
- * If `true`, the tabs are centered.
1097
- * This prop is intended for large views.
1098
- * @default false
1099
- */
1100
- centered: e.bool,
1101
- /**
1102
- * The content of the component.
1103
- */
1104
- children: e.node,
1105
- /**
1106
- * Override or extend the styles applied to the component.
1107
- */
1108
- classes: e.object,
1109
- /**
1110
- * @ignore
1111
- */
1112
- className: e.string,
1113
- /**
1114
- * The component used for the root node.
1115
- * Either a string to use a HTML element or a component.
1116
- */
1117
- component: e.elementType,
1118
- /**
1119
- * Determines the color of the indicator.
1120
- * @default 'primary'
1121
- */
1122
- indicatorColor: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
1123
- /**
1124
- * Callback fired when the value changes.
1125
- *
1126
- * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
1127
- * @param {any} value We default to the index of the child (number)
1128
- */
1129
- onChange: e.func,
1130
- /**
1131
- * The component orientation (layout flow direction).
1132
- * @default 'horizontal'
1133
- */
1134
- orientation: e.oneOf(["horizontal", "vertical"]),
1135
- /**
1136
- * The component used to render the scroll buttons.
1137
- * @default TabScrollButton
1138
- */
1139
- ScrollButtonComponent: e.elementType,
1140
- /**
1141
- * Determine behavior of scroll buttons when tabs are set to scroll:
1142
- *
1143
- * - `auto` will only present them when not all the items are visible.
1144
- * - `true` will always present them.
1145
- * - `false` will never present them.
1146
- *
1147
- * By default the scroll buttons are hidden on mobile.
1148
- * This behavior can be disabled with `allowScrollButtonsMobile`.
1149
- * @default 'auto'
1150
- */
1151
- scrollButtons: e.oneOf(["auto", !1, !0]),
1152
- /**
1153
- * If `true` the selected tab changes on focus. Otherwise it only
1154
- * changes on activation.
1155
- */
1156
- selectionFollowsFocus: e.bool,
1157
- /**
1158
- * The extra props for the slot components.
1159
- * You can override the existing props or add new ones.
1160
- * @default {}
1161
- */
1162
- slotProps: e.shape({
1163
- endScrollButtonIcon: e.oneOfType([e.func, e.object]),
1164
- startScrollButtonIcon: e.oneOfType([e.func, e.object])
1165
- }),
1166
- /**
1167
- * The components used for each slot inside.
1168
- * @default {}
1169
- */
1170
- slots: e.shape({
1171
- EndScrollButtonIcon: e.elementType,
1172
- StartScrollButtonIcon: e.elementType
1173
- }),
1174
- /**
1175
- * The system prop that allows defining system overrides as well as additional CSS styles.
1176
- */
1177
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1178
- /**
1179
- * Props applied to the tab indicator element.
1180
- * @default {}
1181
- */
1182
- TabIndicatorProps: e.object,
1183
- /**
1184
- * Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
1185
- * @default {}
1186
- */
1187
- TabScrollButtonProps: e.object,
1188
- /**
1189
- * Determines the color of the `Tab`.
1190
- * @default 'primary'
1191
- */
1192
- textColor: e.oneOf(["inherit", "primary", "secondary"]),
1193
- /**
1194
- * The value of the currently selected `Tab`.
1195
- * If you don't want any selected `Tab`, you can set this prop to `false`.
1196
- */
1197
- value: e.any,
1198
- /**
1199
- * Determines additional display behavior of the tabs:
1200
- *
1201
- * - `scrollable` will invoke scrolling properties and allow for horizontally
1202
- * scrolling (or swiping) of the tab bar.
1203
- * - `fullWidth` will make the tabs grow to use all the available space,
1204
- * which should be used for small views, like on mobile.
1205
- * - `standard` will render the default state.
1206
- * @default 'standard'
1207
- */
1208
- variant: e.oneOf(["fullWidth", "scrollable", "standard"]),
1209
- /**
1210
- * If `true`, the scrollbar is visible. It can be useful when displaying
1211
- * a long vertical list of tabs.
1212
- * @default false
1213
- */
1214
- visibleScrollbar: e.bool
1215
- });
1216
- export {
1217
- pe as K,
1218
- de as T,
1219
- Ee as a,
1220
- ut as b,
1221
- ge as c,
1222
- ue as d,
1223
- ae as g,
1224
- T as t
1225
- };