@cgi-learning-hub/ui 1.4.0 → 1.5.0

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-CvizDCvx.cjs +1 -0
  2. package/dist/Alert-D7eKsj1P.js +452 -0
  3. package/dist/Autocomplete-Cfz4sLy8.js +1829 -0
  4. package/dist/Autocomplete-DjU6i3zL.cjs +6 -0
  5. package/dist/Backdrop-BM-OE2Q_.cjs +1 -0
  6. package/dist/{Backdrop-DdA12b-5.js → Backdrop-COiz4sPF.js} +20 -19
  7. package/dist/Box-BmfpLwYG.cjs +1 -0
  8. package/dist/{Box-DbRInJ2-.js → Box-C-j-U8SH.js} +7 -7
  9. package/dist/Button-BGWvL_UD.cjs +1 -0
  10. package/dist/{Button-rxIER0bL.js → Button-CQQdMCSm.js} +147 -113
  11. package/dist/{ButtonBase-DzpmdR6N.js → ButtonBase-CZFKUUHD.js} +4 -4
  12. package/dist/{ButtonBase-C2rhY3j-.cjs → ButtonBase-NqQjeQ4X.cjs} +1 -1
  13. package/dist/CardContent-GHLuvxgm.cjs +1 -0
  14. package/dist/{CardContent-u1MKaFvP.js → CardContent-sX9Bw4Ke.js} +3 -3
  15. package/dist/{Checkbox-BI77q7eR.js → Checkbox-1Zr36vDa.js} +23 -22
  16. package/dist/Checkbox-BZYoJieY.cjs +1 -0
  17. package/dist/{Chip-6-zATjcr.js → Chip-BsErraqe.js} +50 -49
  18. package/dist/Chip-Cu_SZxrx.cjs +1 -0
  19. package/dist/{CircularProgress-CDa_qU1a.js → CircularProgress-BBHGA0JX.js} +14 -13
  20. package/dist/CircularProgress-CdS7-HOv.cjs +28 -0
  21. package/dist/Close-ZXg7X3Tz.cjs +1 -0
  22. package/dist/Close-r-ZUhk0-.js +9 -0
  23. package/dist/{CloseRounded-DTpqUeWr.js → CloseRounded-B-eaQsyM.js} +1 -1
  24. package/dist/{CloseRounded-DQWTEbNz.cjs → CloseRounded-CWmxueMc.cjs} +1 -1
  25. package/dist/CustomTreeItem-BIl2yiro.cjs +4 -0
  26. package/dist/CustomTreeItem-BpAK85gf.js +1336 -0
  27. package/dist/{DatePicker-BTTLIBm9.js → DatePicker-CWMXTgRG.js} +3032 -3133
  28. package/dist/DatePicker-tyDzcyzu.cjs +14 -0
  29. package/dist/DefaultPropsProvider-BTnRBr0O.cjs +1 -0
  30. package/dist/{DefaultPropsProvider-BcmyIf2H.js → DefaultPropsProvider-CXfMJdg8.js} +24 -24
  31. package/dist/Delete-CpTtpM4U.cjs +1 -0
  32. package/dist/Delete-DKn2lIDB.js +8 -0
  33. package/dist/Dialog-DIHzs0ro.cjs +1 -0
  34. package/dist/{Dialog-CgBiKk8B.js → Dialog-pU1ZAttp.js} +17 -16
  35. package/dist/DialogContent-B-9ga3Wv.cjs +1 -0
  36. package/dist/{DialogContent-SYCCu1VD.js → DialogContent-BEgapieO.js} +3 -3
  37. package/dist/DialogTitle-B_UN_oL2.cjs +1 -0
  38. package/dist/{DialogTitle-_yayDwkI.js → DialogTitle-Dcls3mcZ.js} +5 -5
  39. package/dist/{Divider-Doy31VS6.js → Divider-CT4XaEn6.js} +8 -8
  40. package/dist/Divider-iYLSpFUc.cjs +1 -0
  41. package/dist/Folder-DWD_1Fux.cjs +1 -0
  42. package/dist/Folder-DoEl37QZ.js +8 -0
  43. package/dist/{FormLabel-DjkS3S9h.js → FormLabel-BF6m-_uI.js} +68 -76
  44. package/dist/FormLabel-Cp2OFw8d.cjs +2 -0
  45. package/dist/{Grow-DPD-iBAX.js → Grow-Bk7XkPFP.js} +14 -13
  46. package/dist/Grow-DXY5DOqR.cjs +1 -0
  47. package/dist/IconButton-BLZJne06.cjs +2 -0
  48. package/dist/{IconButton-B4bt0Hp2.js → IconButton-BQW0xjdH.js} +27 -26
  49. package/dist/InputAdornment-C0WI_oQg.cjs +1 -0
  50. package/dist/{InputAdornment-GzDm1zf_.js → InputAdornment-C6UfLaud.js} +9 -8
  51. package/dist/InputBase-B3KOyouT.cjs +3 -0
  52. package/dist/{InputBase-CF5oNEfh.js → InputBase-YOnatBxw.js} +41 -40
  53. package/dist/{Link-CnahHTmK.js → Link-C3rf4gqc.js} +11 -10
  54. package/dist/Link-lvpmE2yz.cjs +1 -0
  55. package/dist/List-CFInjv2S.js +130 -0
  56. package/dist/List-PQXGlDbt.cjs +1 -0
  57. package/dist/ListItem-BAAZxsu5.js +423 -0
  58. package/dist/ListItem-CWEvdMjN.cjs +1 -0
  59. package/dist/ListItemText-BhxrnTkb.cjs +1 -0
  60. package/dist/ListItemText-CADHegDF.js +928 -0
  61. package/dist/{Menu-DzBX10ev.js → Menu-BgO92SV3.js} +302 -424
  62. package/dist/Menu-DBacrp-P.cjs +7 -0
  63. package/dist/{MenuItem-DQQ-p2ie.js → MenuItem-B8eWAj8E.js} +72 -77
  64. package/dist/MenuItem-DkcVAo3U.cjs +1 -0
  65. package/dist/{Modal-B8JRJWm0.js → Modal-CFv4UMTP.js} +8 -8
  66. package/dist/{Modal-D8lS9C1l.cjs → Modal-kUvS-N46.cjs} +2 -2
  67. package/dist/MoreVert-B_Gz5Gfx.cjs +1 -0
  68. package/dist/MoreVert-Dq8BqKg4.js +8 -0
  69. package/dist/Paper-ByOgFIEE.cjs +2 -0
  70. package/dist/{Paper-CbgkVQVx.js → Paper-DeL_n4k9.js} +4 -4
  71. package/dist/{Popper-1-DDNRPD.js → Popper-BKxRTMsO.js} +31 -30
  72. package/dist/Popper-CsQqc5DE.cjs +4 -0
  73. package/dist/{Portal-T-1Qk77D.js → Portal-7MKUQzjh.js} +2 -2
  74. package/dist/Portal-DhGy1jKe.cjs +1 -0
  75. package/dist/{Radio-BxMxeQa-.js → Radio-BVfoGshx.js} +9 -8
  76. package/dist/Radio-DG-k6cXx.cjs +1 -0
  77. package/dist/{RadioGroup-BLrD8_Lp.js → RadioGroup-DcqRUtV8.js} +3 -3
  78. package/dist/RadioGroup-Dd0mX-H2.cjs +1 -0
  79. package/dist/{Select-B6mYfJPA.js → Select-Vnsr3NSv.js} +49 -48
  80. package/dist/Select-b6liJFDI.cjs +3 -0
  81. package/dist/{Stack-aCUdCw1A.js → Stack-PQFKjbdN.js} +104 -59
  82. package/dist/Stack-gtxG2YLo.cjs +1 -0
  83. package/dist/Switch-BlwDxL6O.cjs +1 -0
  84. package/dist/{Switch-BOpqo-TS.js → Switch-Bn8zlIOf.js} +11 -10
  85. package/dist/SwitchBase-DtKlxrES.cjs +1 -0
  86. package/dist/{SwitchBase-BAjfatYA.js → SwitchBase-QwOXoy8f.js} +21 -20
  87. package/dist/Tab-A0R3g6rB.js +1394 -0
  88. package/dist/Tab-Dx7V4E6B.cjs +4 -0
  89. package/dist/TextField-CB2n4aV8.cjs +1 -0
  90. package/dist/{TextField-CAmc1Qpg.js → TextField-Di6Nfe3O.js} +18 -17
  91. package/dist/ToggleButtonGroup-B-zfmsAO.js +7716 -0
  92. package/dist/ToggleButtonGroup-D3bdznCl.cjs +137 -0
  93. package/dist/Tooltip-D0jvnXYu.cjs +4 -0
  94. package/dist/{Tooltip-BvVFPsVR.js → Tooltip-KTkLBRQj.js} +30 -29
  95. package/dist/Typography-3CpuuLtj.cjs +1 -0
  96. package/dist/{Typography-CE8fQQ8B.js → Typography-DZ11k9cZ.js} +13 -12
  97. package/dist/capitalize-B3tmp8MO.cjs +1 -0
  98. package/dist/capitalize-Bs7Xs33U.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 +1890 -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 +29 -0
  165. package/dist/components/TreeView/types.cjs.js +1 -0
  166. package/dist/components/TreeView/types.d.ts +41 -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 +13 -0
  224. package/dist/components/stories/TreeView.stories.es.js +786 -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-2wwaxLPT.cjs +1 -0
  228. package/dist/{createSvgIcon-CCejzj0C.js → createSvgIcon-BFqOnlgU.js} +19 -18
  229. package/dist/{dividerClasses-DN9F43tq.js → dividerClasses-BYkvalOn.js} +1 -1
  230. package/dist/dividerClasses-izm7KFVg.cjs +1 -0
  231. package/dist/{elementTypeAcceptingRef-CrAqn_fc.js → elementTypeAcceptingRef-1usJq_B8.js} +1 -1
  232. package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +1 -0
  233. package/dist/extendSxProp-Bv3E507G.cjs +1 -0
  234. package/dist/{extendSxProp-DFv-GFt5.js → extendSxProp-D_IkoDXB.js} +1 -1
  235. package/dist/{identifier-D58rA1gM.js → generateUtilityClasses-CqzQXpT_.js} +885 -855
  236. package/dist/generateUtilityClasses-KugHyZhN.cjs +75 -0
  237. package/dist/getReactElementRef-D7IvykPI.cjs +1 -0
  238. package/dist/getReactElementRef-DtLerx40.js +31 -0
  239. package/dist/index-9hEUqvaJ.cjs +1 -0
  240. package/dist/index-BomeQRLD.cjs +5 -0
  241. package/dist/{index-BGS2uu2L.js → index-C7WfZsMe.js} +1 -1
  242. package/dist/{index-ClXCinr6.js → index-CFIk4hVM.js} +4 -4
  243. package/dist/index-DS8G_wjP.cjs +1 -0
  244. package/dist/index-sDFEVHTg.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-C0D3xQur.js +9 -0
  250. package/dist/listItemTextClasses-CQXcckDA.cjs +1 -0
  251. package/dist/{memoTheme-DyiN-Awd.js → memoTheme-B0xVysYu.js} +1 -1
  252. package/dist/{memoTheme-C8EfvlY1.cjs → memoTheme-WwIyYqBX.cjs} +1 -1
  253. package/dist/{refType-B86yTZra.js → refType-BvSJNaoq.js} +1 -1
  254. package/dist/refType-D-n-tVSl.cjs +1 -0
  255. package/dist/resolveComponentProps-Byi_59AN.cjs +1 -0
  256. package/dist/{resolveComponentProps-0QnU-fDT.js → resolveComponentProps-Ctw0-dUN.js} +1 -1
  257. package/dist/{useSlot-CyXLaLc2.cjs → useSlot-CGbU9jGm.cjs} +1 -1
  258. package/dist/{useSlot-CZNcsPv1.js → useSlot-CqjfyGd9.js} +1 -1
  259. package/dist/useSlotProps-Ceyorp-u.js +25 -0
  260. package/dist/useSlotProps-DfO7r_4Y.cjs +1 -0
  261. package/dist/{useTheme-DxxkErdZ.js → useTheme-2JCMQS-E.js} +1 -1
  262. package/dist/useTheme-B6wow4M9.cjs +1 -0
  263. package/dist/useTheme-DepbBZga.js +11 -0
  264. package/dist/useTheme-MahNaB8C.cjs +1 -0
  265. package/dist/useThemeProps-BqypsO1h.cjs +1 -0
  266. package/dist/{useThemeProps-BGZrRNnL.js → useThemeProps-Cuazh32X.js} +2 -2
  267. package/dist/useThemeProps-Drd5oJEF.js +17 -0
  268. package/dist/{useThemeProps-CpNQz1Ap.cjs → useThemeProps-RdxbcMsR.cjs} +1 -1
  269. package/dist/{utils-SrEVp7Pm.js → utils-BVg32WSe.js} +76 -104
  270. package/dist/utils-CUU5fjzL.cjs +1 -0
  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,254 +1,136 @@
1
- import * as s from "react";
2
- import { H as ee, I as oe, G as Y, P as e, _ as ye } from "./identifier-D58rA1gM.js";
3
- import { u as Le, a as fe } from "./index-DwHI-aa0.js";
4
- import { u as te, s as V, c as ne, r as je } from "./DefaultPropsProvider-BcmyIf2H.js";
5
- import { jsx as z, jsxs as ke } from "react/jsx-runtime";
6
- import { i as Fe } from "./isHostComponent-kiaBvYVo.js";
7
- import { u as de } from "./useSlot-CZNcsPv1.js";
8
- import { P as ze, i as Ke } from "./Paper-CbgkVQVx.js";
9
- import { G as He } from "./Grow-DPD-iBAX.js";
1
+ import * as a from "react";
2
+ import { S as me, P as e, H as he, G as ge, I as X } from "./generateUtilityClasses-CqzQXpT_.js";
3
+ import { u as De } from "./index-sDFEVHTg.js";
4
+ import { s as W, u as ye, c as be, r as Ie } from "./DefaultPropsProvider-CXfMJdg8.js";
5
+ import { jsx as U } from "react/jsx-runtime";
6
+ import { u as le } from "./useSlotProps-Ceyorp-u.js";
7
+ import { i as je } from "./isHostComponent-kiaBvYVo.js";
8
+ import { u as ce } from "./useSlot-CqjfyGd9.js";
9
+ import { P as ke, i as Fe } from "./Paper-DeL_n4k9.js";
10
+ import { G as Le } from "./Grow-Bk7XkPFP.js";
10
11
  import { o as J } from "./ownerDocument-CUrv0DIK.js";
11
12
  import { o as Q } from "./ownerWindow-niciwP7I.js";
12
- import { d as Ue } from "./debounce-46wSf_lW.js";
13
+ import { d as ze } from "./debounce-46wSf_lW.js";
13
14
  import { u as ve } from "./useForkRef-C_4o__cU.js";
14
- import { b as Ve, M as _e } from "./Modal-B8JRJWm0.js";
15
- import { c as Ae } from "./chainPropTypes-D9lkm76m.js";
16
- import { r as We } from "./refType-B86yTZra.js";
17
- import { e as $e } from "./elementTypeAcceptingRef-CrAqn_fc.js";
18
- import { H as Z } from "./Portal-T-1Qk77D.js";
19
- import { u as qe } from "./useEnhancedEffect-CJGo-L3B.js";
20
- const Pe = /* @__PURE__ */ s.createContext({});
21
- process.env.NODE_ENV !== "production" && (Pe.displayName = "ListContext");
22
- function Be(t) {
23
- return oe("MuiList", t);
24
- }
25
- const wo = ee("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) => {
26
- const {
27
- classes: o,
28
- disablePadding: n,
29
- dense: y,
30
- subheader: g
31
- } = t;
32
- return ne({
33
- root: ["root", !n && "padding", y && "dense", g && "subheader"]
34
- }, Be, o);
35
- }, Ye = V("ul", {
36
- name: "MuiList",
37
- slot: "Root",
38
- overridesResolver: (t, o) => {
39
- const {
40
- ownerState: n
41
- } = t;
42
- return [o.root, !n.disablePadding && o.padding, n.dense && o.dense, n.subheader && o.subheader];
43
- }
44
- })({
45
- listStyle: "none",
46
- margin: 0,
47
- padding: 0,
48
- position: "relative",
49
- variants: [{
50
- props: ({
51
- ownerState: t
52
- }) => !t.disablePadding,
53
- style: {
54
- paddingTop: 8,
55
- paddingBottom: 8
56
- }
57
- }, {
58
- props: ({
59
- ownerState: t
60
- }) => t.subheader,
61
- style: {
62
- paddingTop: 0
63
- }
64
- }]
65
- }), Te = /* @__PURE__ */ s.forwardRef(function(o, n) {
66
- const y = te({
67
- props: o,
68
- name: "MuiList"
69
- }), {
70
- children: g,
71
- className: h,
72
- component: b = "ul",
73
- dense: a = !1,
74
- disablePadding: m = !1,
75
- subheader: E,
76
- ...O
77
- } = y, S = s.useMemo(() => ({
78
- dense: a
79
- }), [a]), D = {
80
- ...y,
81
- component: b,
82
- dense: a,
83
- disablePadding: m
84
- }, i = Ge(D);
85
- return /* @__PURE__ */ z(Pe.Provider, {
86
- value: S,
87
- children: /* @__PURE__ */ ke(Ye, {
88
- as: b,
89
- className: Y(i.root, h),
90
- ref: n,
91
- ownerState: D,
92
- ...O,
93
- children: [E, g]
94
- })
95
- });
96
- });
97
- process.env.NODE_ENV !== "production" && (Te.propTypes = {
98
- // ┌────────────────────────────── Warning ──────────────────────────────┐
99
- // │ These PropTypes are generated from the TypeScript type definitions. │
100
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
101
- // └─────────────────────────────────────────────────────────────────────┘
102
- /**
103
- * The content of the component.
104
- */
105
- children: e.node,
106
- /**
107
- * Override or extend the styles applied to the component.
108
- */
109
- classes: e.object,
110
- /**
111
- * @ignore
112
- */
113
- className: e.string,
114
- /**
115
- * The component used for the root node.
116
- * Either a string to use a HTML element or a component.
117
- */
118
- component: e.elementType,
119
- /**
120
- * If `true`, compact vertical padding designed for keyboard and mouse input is used for
121
- * the list and list items.
122
- * The prop is available to descendant components as the `dense` context.
123
- * @default false
124
- */
125
- dense: e.bool,
126
- /**
127
- * If `true`, vertical padding is removed from the list.
128
- * @default false
129
- */
130
- disablePadding: e.bool,
131
- /**
132
- * The content of the subheader, normally `ListSubheader`.
133
- */
134
- subheader: e.node,
135
- /**
136
- * The system prop that allows defining system overrides as well as additional CSS styles.
137
- */
138
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
139
- });
140
- function X(t, o, n) {
15
+ import { b as Ke, M as He } from "./Modal-CFv4UMTP.js";
16
+ import { c as Ue } from "./chainPropTypes-D9lkm76m.js";
17
+ import { r as Ve } from "./refType-BvSJNaoq.js";
18
+ import { e as Ae } from "./elementTypeAcceptingRef-1usJq_B8.js";
19
+ import { H as Z } from "./Portal-7MKUQzjh.js";
20
+ import { u as _e } from "./useEnhancedEffect-CJGo-L3B.js";
21
+ import { L as We } from "./List-CFInjv2S.js";
22
+ function Y(t, o, n) {
141
23
  return t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : n ? null : t.firstChild;
142
24
  }
143
- function he(t, o, n) {
25
+ function pe(t, o, n) {
144
26
  return t === o ? n ? t.firstChild : t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : n ? null : t.lastChild;
145
27
  }
146
- function Ee(t, o) {
28
+ function Pe(t, o) {
147
29
  if (o === void 0)
148
30
  return !0;
149
31
  let n = t.innerText;
150
32
  return n === void 0 && (n = t.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : o.repeating ? n[0] === o.keys[0] : n.startsWith(o.keys.join(""));
151
33
  }
152
- function W(t, o, n, y, g, h) {
153
- let b = !1, a = g(t, o, o ? n : !1);
154
- for (; a; ) {
155
- if (a === t.firstChild) {
156
- if (b)
34
+ function _(t, o, n, x, P, h) {
35
+ let g = !1, d = P(t, o, o ? n : !1);
36
+ for (; d; ) {
37
+ if (d === t.firstChild) {
38
+ if (g)
157
39
  return !1;
158
- b = !0;
40
+ g = !0;
159
41
  }
160
- const m = y ? !1 : a.disabled || a.getAttribute("aria-disabled") === "true";
161
- if (!a.hasAttribute("tabindex") || !Ee(a, h) || m)
162
- a = g(t, a, n);
42
+ const m = x ? !1 : d.disabled || d.getAttribute("aria-disabled") === "true";
43
+ if (!d.hasAttribute("tabindex") || !Pe(d, h) || m)
44
+ d = P(t, d, n);
163
45
  else
164
- return a.focus(), !0;
46
+ return d.focus(), !0;
165
47
  }
166
48
  return !1;
167
49
  }
168
- const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
50
+ const Te = /* @__PURE__ */ a.forwardRef(function(o, n) {
169
51
  const {
170
52
  // private
171
53
  // eslint-disable-next-line react/prop-types
172
- actions: y,
173
- autoFocus: g = !1,
54
+ actions: x,
55
+ autoFocus: P = !1,
174
56
  autoFocusItem: h = !1,
175
- children: b,
176
- className: a,
57
+ children: g,
58
+ className: d,
177
59
  disabledItemsFocusable: m = !1,
178
- disableListWrap: E = !1,
179
- onKeyDown: O,
180
- variant: S = "selectedMenu",
181
- ...D
182
- } = o, i = s.useRef(null), v = s.useRef({
60
+ disableListWrap: O = !1,
61
+ onKeyDown: N,
62
+ variant: I = "selectedMenu",
63
+ ...L
64
+ } = o, s = a.useRef(null), y = a.useRef({
183
65
  keys: [],
184
66
  repeating: !0,
185
67
  previousKeyMatched: !0,
186
68
  lastTime: null
187
69
  });
188
- qe(() => {
189
- g && i.current.focus();
190
- }, [g]), s.useImperativeHandle(y, () => ({
70
+ _e(() => {
71
+ P && s.current.focus();
72
+ }, [P]), a.useImperativeHandle(x, () => ({
191
73
  adjustStyleForScrollbar: (r, {
192
- direction: l
74
+ direction: i
193
75
  }) => {
194
- const f = !i.current.style.width;
195
- if (r.clientHeight < i.current.clientHeight && f) {
196
- const N = `${Ve(Q(r))}px`;
197
- i.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = N, i.current.style.width = `calc(100% + ${N})`;
76
+ const u = !s.current.style.width;
77
+ if (r.clientHeight < s.current.clientHeight && u) {
78
+ const w = `${Ke(Q(r))}px`;
79
+ s.current.style[i === "rtl" ? "paddingLeft" : "paddingRight"] = w, s.current.style.width = `calc(100% + ${w})`;
198
80
  }
199
- return i.current;
81
+ return s.current;
200
82
  }
201
83
  }), []);
202
- const K = (r) => {
203
- const l = i.current, f = r.key;
84
+ const z = (r) => {
85
+ const i = s.current, u = r.key;
204
86
  if (r.ctrlKey || r.metaKey || r.altKey) {
205
- O && O(r);
87
+ N && N(r);
206
88
  return;
207
89
  }
208
- const R = J(l).activeElement;
209
- if (f === "ArrowDown")
210
- r.preventDefault(), W(l, R, E, m, X);
211
- else if (f === "ArrowUp")
212
- r.preventDefault(), W(l, R, E, m, he);
213
- else if (f === "Home")
214
- r.preventDefault(), W(l, null, E, m, X);
215
- else if (f === "End")
216
- r.preventDefault(), W(l, null, E, m, he);
217
- else if (f.length === 1) {
218
- const p = v.current, M = f.toLowerCase(), L = performance.now();
219
- p.keys.length > 0 && (L - p.lastTime > 500 ? (p.keys = [], p.repeating = !0, p.previousKeyMatched = !0) : p.repeating && M !== p.keys[0] && (p.repeating = !1)), p.lastTime = L, p.keys.push(M);
220
- const x = R && !p.repeating && Ee(R, p);
221
- p.previousKeyMatched && (x || W(l, R, !1, m, X, p)) ? r.preventDefault() : p.previousKeyMatched = !1;
90
+ const E = J(i).activeElement;
91
+ if (u === "ArrowDown")
92
+ r.preventDefault(), _(i, E, O, m, Y);
93
+ else if (u === "ArrowUp")
94
+ r.preventDefault(), _(i, E, O, m, pe);
95
+ else if (u === "Home")
96
+ r.preventDefault(), _(i, null, O, m, Y);
97
+ else if (u === "End")
98
+ r.preventDefault(), _(i, null, O, m, pe);
99
+ else if (u.length === 1) {
100
+ const c = y.current, T = u.toLowerCase(), D = performance.now();
101
+ c.keys.length > 0 && (D - c.lastTime > 500 ? (c.keys = [], c.repeating = !0, c.previousKeyMatched = !0) : c.repeating && T !== c.keys[0] && (c.repeating = !1)), c.lastTime = D, c.keys.push(T);
102
+ const C = E && !c.repeating && Pe(E, c);
103
+ c.previousKeyMatched && (C || _(i, E, !1, m, Y, c)) ? r.preventDefault() : c.previousKeyMatched = !1;
222
104
  }
223
- O && O(r);
224
- }, j = ve(i, n);
225
- let c = -1;
226
- s.Children.forEach(b, (r, l) => {
227
- if (!/* @__PURE__ */ s.isValidElement(r)) {
228
- c === l && (c += 1, c >= b.length && (c = -1));
105
+ N && N(r);
106
+ }, j = ve(s, n);
107
+ let l = -1;
108
+ a.Children.forEach(g, (r, i) => {
109
+ if (!/* @__PURE__ */ a.isValidElement(r)) {
110
+ l === i && (l += 1, l >= g.length && (l = -1));
229
111
  return;
230
112
  }
231
- process.env.NODE_ENV !== "production" && ye.isFragment(r) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
232
- `)), r.props.disabled || (S === "selectedMenu" && r.props.selected || c === -1) && (c = l), c === l && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (c += 1, c >= b.length && (c = -1));
113
+ process.env.NODE_ENV !== "production" && me.isFragment(r) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
114
+ `)), r.props.disabled || (I === "selectedMenu" && r.props.selected || l === -1) && (l = i), l === i && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (l += 1, l >= g.length && (l = -1));
233
115
  });
234
- const C = s.Children.map(b, (r, l) => {
235
- if (l === c) {
236
- const f = {};
237
- return h && (f.autoFocus = !0), r.props.tabIndex === void 0 && S === "selectedMenu" && (f.tabIndex = 0), /* @__PURE__ */ s.cloneElement(r, f);
116
+ const R = a.Children.map(g, (r, i) => {
117
+ if (i === l) {
118
+ const u = {};
119
+ return h && (u.autoFocus = !0), r.props.tabIndex === void 0 && I === "selectedMenu" && (u.tabIndex = 0), /* @__PURE__ */ a.cloneElement(r, u);
238
120
  }
239
121
  return r;
240
122
  });
241
- return /* @__PURE__ */ z(Te, {
123
+ return /* @__PURE__ */ U(We, {
242
124
  role: "menu",
243
125
  ref: j,
244
- className: a,
245
- onKeyDown: K,
246
- tabIndex: g ? 0 : -1,
247
- ...D,
248
- children: C
126
+ className: d,
127
+ onKeyDown: z,
128
+ tabIndex: P ? 0 : -1,
129
+ ...L,
130
+ children: R
249
131
  });
250
132
  });
251
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
133
+ process.env.NODE_ENV !== "production" && (Te.propTypes = {
252
134
  // ┌────────────────────────────── Warning ──────────────────────────────┐
253
135
  // │ These PropTypes are generated from the TypeScript type definitions. │
254
136
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -293,37 +175,37 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
293
175
  */
294
176
  variant: e.oneOf(["menu", "selectedMenu"])
295
177
  });
296
- function Xe(t) {
297
- return oe("MuiPopover", t);
178
+ function qe(t) {
179
+ return he("MuiPopover", t);
298
180
  }
299
- ee("MuiPopover", ["root", "paper"]);
300
- function me(t, o) {
181
+ ge("MuiPopover", ["root", "paper"]);
182
+ function ue(t, o) {
301
183
  let n = 0;
302
184
  return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
303
185
  }
304
- function be(t, o) {
186
+ function fe(t, o) {
305
187
  let n = 0;
306
188
  return typeof o == "number" ? n = o : o === "center" ? n = t.width / 2 : o === "right" && (n = t.width), n;
307
189
  }
308
- function ge(t) {
190
+ function de(t) {
309
191
  return [t.horizontal, t.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
310
192
  }
311
193
  function G(t) {
312
194
  return typeof t == "function" ? t() : t;
313
195
  }
314
- const Je = (t) => {
196
+ const $e = (t) => {
315
197
  const {
316
198
  classes: o
317
199
  } = t;
318
- return ne({
200
+ return be({
319
201
  root: ["root"],
320
202
  paper: ["paper"]
321
- }, Xe, o);
322
- }, Qe = V(_e, {
203
+ }, qe, o);
204
+ }, Be = W(He, {
323
205
  name: "MuiPopover",
324
206
  slot: "Root",
325
207
  overridesResolver: (t, o) => o.root
326
- })({}), Oe = V(ze, {
208
+ })({}), Ee = W(ke, {
327
209
  name: "MuiPopover",
328
210
  slot: "Paper",
329
211
  overridesResolver: (t, o) => o.paper
@@ -339,192 +221,192 @@ const Je = (t) => {
339
221
  maxHeight: "calc(100% - 32px)",
340
222
  // We disable the focus ring for mouse, touch and keyboard users.
341
223
  outline: 0
342
- }), Re = /* @__PURE__ */ s.forwardRef(function(o, n) {
343
- const y = te({
224
+ }), Me = /* @__PURE__ */ a.forwardRef(function(o, n) {
225
+ const x = ye({
344
226
  props: o,
345
227
  name: "MuiPopover"
346
228
  }), {
347
- action: g,
229
+ action: P,
348
230
  anchorEl: h,
349
- anchorOrigin: b = {
231
+ anchorOrigin: g = {
350
232
  vertical: "top",
351
233
  horizontal: "left"
352
234
  },
353
- anchorPosition: a,
235
+ anchorPosition: d,
354
236
  anchorReference: m = "anchorEl",
355
- children: E,
356
- className: O,
357
- container: S,
358
- elevation: D = 8,
359
- marginThreshold: i = 16,
360
- open: v,
361
- PaperProps: K = {},
237
+ children: O,
238
+ className: N,
239
+ container: I,
240
+ elevation: L = 8,
241
+ marginThreshold: s = 16,
242
+ open: y,
243
+ PaperProps: z = {},
362
244
  slots: j = {},
363
- slotProps: c = {},
364
- transformOrigin: C = {
245
+ slotProps: l = {},
246
+ transformOrigin: R = {
365
247
  vertical: "top",
366
248
  horizontal: "left"
367
249
  },
368
- TransitionComponent: r = He,
369
- transitionDuration: l = "auto",
250
+ TransitionComponent: r = Le,
251
+ transitionDuration: i = "auto",
370
252
  TransitionProps: {
371
- onEntering: f,
372
- ...N
253
+ onEntering: u,
254
+ ...w
373
255
  } = {},
374
- disableScrollLock: R = !1,
375
- ...p
376
- } = y, M = (c == null ? void 0 : c.paper) ?? K, L = s.useRef(), x = {
377
- ...y,
378
- anchorOrigin: b,
256
+ disableScrollLock: E = !1,
257
+ ...c
258
+ } = x, T = (l == null ? void 0 : l.paper) ?? z, D = a.useRef(), C = {
259
+ ...x,
260
+ anchorOrigin: g,
379
261
  anchorReference: m,
380
- elevation: D,
381
- marginThreshold: i,
382
- externalPaperSlotProps: M,
383
- transformOrigin: C,
262
+ elevation: L,
263
+ marginThreshold: s,
264
+ externalPaperSlotProps: T,
265
+ transformOrigin: R,
384
266
  TransitionComponent: r,
385
- transitionDuration: l,
386
- TransitionProps: N
387
- }, _ = Je(x), $ = s.useCallback(() => {
267
+ transitionDuration: i,
268
+ TransitionProps: w
269
+ }, V = $e(C), q = a.useCallback(() => {
388
270
  if (m === "anchorPosition")
389
- return process.env.NODE_ENV !== "production" && (a || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), a;
390
- const u = G(h), d = u && u.nodeType === 1 ? u : J(L.current).body, T = d.getBoundingClientRect();
271
+ return process.env.NODE_ENV !== "production" && (d || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), d;
272
+ const p = G(h), f = p && p.nodeType === 1 ? p : J(D.current).body, v = f.getBoundingClientRect();
391
273
  if (process.env.NODE_ENV !== "production") {
392
- const F = d.getBoundingClientRect();
274
+ const F = f.getBoundingClientRect();
393
275
  process.env.NODE_ENV !== "test" && F.top === 0 && F.left === 0 && F.right === 0 && F.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
394
276
  `));
395
277
  }
396
278
  return {
397
- top: T.top + me(T, b.vertical),
398
- left: T.left + be(T, b.horizontal)
279
+ top: v.top + ue(v, g.vertical),
280
+ left: v.left + fe(v, g.horizontal)
399
281
  };
400
- }, [h, b.horizontal, b.vertical, a, m]), q = s.useCallback((u) => ({
401
- vertical: me(u, C.vertical),
402
- horizontal: be(u, C.horizontal)
403
- }), [C.horizontal, C.vertical]), B = s.useCallback((u) => {
404
- const d = {
405
- width: u.offsetWidth,
406
- height: u.offsetHeight
407
- }, T = q(d);
282
+ }, [h, g.horizontal, g.vertical, d, m]), $ = a.useCallback((p) => ({
283
+ vertical: ue(p, R.vertical),
284
+ horizontal: fe(p, R.horizontal)
285
+ }), [R.horizontal, R.vertical]), B = a.useCallback((p) => {
286
+ const f = {
287
+ width: p.offsetWidth,
288
+ height: p.offsetHeight
289
+ }, v = $(f);
408
290
  if (m === "none")
409
291
  return {
410
292
  top: null,
411
293
  left: null,
412
- transformOrigin: ge(T)
294
+ transformOrigin: de(v)
413
295
  };
414
- const F = $();
415
- let H = F.top - T.vertical, U = F.left - T.horizontal;
416
- const le = H + d.height, ce = U + d.width, pe = Q(G(h)), A = pe.innerHeight - i, ue = pe.innerWidth - i;
417
- if (i !== null && H < i) {
418
- const w = H - i;
419
- H -= w, T.vertical += w;
420
- } else if (i !== null && le > A) {
421
- const w = le - A;
422
- H -= w, T.vertical += w;
296
+ const F = q();
297
+ let K = F.top - v.vertical, H = F.left - v.horizontal;
298
+ const re = K + f.height, se = H + f.width, ie = Q(G(h)), A = ie.innerHeight - s, ae = ie.innerWidth - s;
299
+ if (s !== null && K < s) {
300
+ const M = K - s;
301
+ K -= M, v.vertical += M;
302
+ } else if (s !== null && re > A) {
303
+ const M = re - A;
304
+ K -= M, v.vertical += M;
423
305
  }
424
- if (process.env.NODE_ENV !== "production" && d.height > A && d.height && A && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${d.height - A}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
425
- `)), i !== null && U < i) {
426
- const w = U - i;
427
- U -= w, T.horizontal += w;
428
- } else if (ce > ue) {
429
- const w = ce - ue;
430
- U -= w, T.horizontal += w;
306
+ if (process.env.NODE_ENV !== "production" && f.height > A && f.height && A && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${f.height - A}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
307
+ `)), s !== null && H < s) {
308
+ const M = H - s;
309
+ H -= M, v.horizontal += M;
310
+ } else if (se > ae) {
311
+ const M = se - ae;
312
+ H -= M, v.horizontal += M;
431
313
  }
432
314
  return {
433
- top: `${Math.round(H)}px`,
434
- left: `${Math.round(U)}px`,
435
- transformOrigin: ge(T)
315
+ top: `${Math.round(K)}px`,
316
+ left: `${Math.round(H)}px`,
317
+ transformOrigin: de(v)
436
318
  };
437
- }, [h, m, $, q, i]), [P, k] = s.useState(v), I = s.useCallback(() => {
438
- const u = L.current;
439
- if (!u)
319
+ }, [h, m, q, $, s]), [b, k] = a.useState(y), S = a.useCallback(() => {
320
+ const p = D.current;
321
+ if (!p)
440
322
  return;
441
- const d = B(u);
442
- d.top !== null && u.style.setProperty("top", d.top), d.left !== null && (u.style.left = d.left), u.style.transformOrigin = d.transformOrigin, k(!0);
323
+ const f = B(p);
324
+ f.top !== null && p.style.setProperty("top", f.top), f.left !== null && (p.style.left = f.left), p.style.transformOrigin = f.transformOrigin, k(!0);
443
325
  }, [B]);
444
- s.useEffect(() => (R && window.addEventListener("scroll", I), () => window.removeEventListener("scroll", I)), [h, R, I]);
445
- const we = (u, d) => {
446
- f && f(u, d), I();
447
- }, Ce = () => {
326
+ a.useEffect(() => (E && window.addEventListener("scroll", S), () => window.removeEventListener("scroll", S)), [h, E, S]);
327
+ const Oe = (p, f) => {
328
+ u && u(p, f), S();
329
+ }, Re = () => {
448
330
  k(!1);
449
331
  };
450
- s.useEffect(() => {
451
- v && I();
452
- }), s.useImperativeHandle(g, () => v ? {
332
+ a.useEffect(() => {
333
+ y && S();
334
+ }), a.useImperativeHandle(P, () => y ? {
453
335
  updatePosition: () => {
454
- I();
336
+ S();
455
337
  }
456
- } : null, [v, I]), s.useEffect(() => {
457
- if (!v)
338
+ } : null, [y, S]), a.useEffect(() => {
339
+ if (!y)
458
340
  return;
459
- const u = Ue(() => {
460
- I();
461
- }), d = Q(h);
462
- return d.addEventListener("resize", u), () => {
463
- u.clear(), d.removeEventListener("resize", u);
341
+ const p = ze(() => {
342
+ S();
343
+ }), f = Q(h);
344
+ return f.addEventListener("resize", p), () => {
345
+ p.clear(), f.removeEventListener("resize", p);
464
346
  };
465
- }, [h, v, I]);
466
- let re = l;
467
- l === "auto" && !r.muiSupportAuto && (re = void 0);
468
- const Ne = S || (h ? J(G(h)).body : void 0), se = {
347
+ }, [h, y, S]);
348
+ let ee = i;
349
+ i === "auto" && !r.muiSupportAuto && (ee = void 0);
350
+ const we = I || (h ? J(G(h)).body : void 0), oe = {
469
351
  slots: j,
470
352
  slotProps: {
471
- ...c,
472
- paper: M
353
+ ...l,
354
+ paper: T
473
355
  }
474
- }, [xe, ie] = de("paper", {
475
- elementType: Oe,
476
- externalForwardedProps: se,
356
+ }, [Ce, te] = ce("paper", {
357
+ elementType: Ee,
358
+ externalForwardedProps: oe,
477
359
  additionalProps: {
478
- elevation: D,
479
- className: Y(_.paper, M == null ? void 0 : M.className),
480
- style: P ? M.style : {
481
- ...M.style,
360
+ elevation: L,
361
+ className: X(V.paper, T == null ? void 0 : T.className),
362
+ style: b ? T.style : {
363
+ ...T.style,
482
364
  opacity: 0
483
365
  }
484
366
  },
485
- ownerState: x
486
- }), [ae, {
487
- slotProps: Se,
488
- ...De
489
- }] = de("root", {
490
- elementType: Qe,
491
- externalForwardedProps: se,
367
+ ownerState: C
368
+ }), [ne, {
369
+ slotProps: xe,
370
+ ...Ne
371
+ }] = ce("root", {
372
+ elementType: Be,
373
+ externalForwardedProps: oe,
492
374
  additionalProps: {
493
375
  slotProps: {
494
376
  backdrop: {
495
377
  invisible: !0
496
378
  }
497
379
  },
498
- container: Ne,
499
- open: v
380
+ container: we,
381
+ open: y
500
382
  },
501
- ownerState: x,
502
- className: Y(_.root, O)
503
- }), Ie = ve(L, ie.ref);
504
- return /* @__PURE__ */ z(ae, {
505
- ...De,
506
- ...!Fe(ae) && {
507
- slotProps: Se,
508
- disableScrollLock: R
383
+ ownerState: C,
384
+ className: X(V.root, N)
385
+ }), Se = ve(D, te.ref);
386
+ return /* @__PURE__ */ U(ne, {
387
+ ...Ne,
388
+ ...!je(ne) && {
389
+ slotProps: xe,
390
+ disableScrollLock: E
509
391
  },
510
- ...p,
392
+ ...c,
511
393
  ref: n,
512
- children: /* @__PURE__ */ z(r, {
394
+ children: /* @__PURE__ */ U(r, {
513
395
  appear: !0,
514
- in: v,
515
- onEntering: we,
516
- onExited: Ce,
517
- timeout: re,
518
- ...N,
519
- children: /* @__PURE__ */ z(xe, {
520
- ...ie,
521
- ref: Ie,
522
- children: E
396
+ in: y,
397
+ onEntering: Oe,
398
+ onExited: Re,
399
+ timeout: ee,
400
+ ...w,
401
+ children: /* @__PURE__ */ U(Ce, {
402
+ ...te,
403
+ ref: Se,
404
+ children: O
523
405
  })
524
406
  })
525
407
  });
526
408
  });
527
- process.env.NODE_ENV !== "production" && (Re.propTypes = {
409
+ process.env.NODE_ENV !== "production" && (Me.propTypes = {
528
410
  // ┌────────────────────────────── Warning ──────────────────────────────┐
529
411
  // │ These PropTypes are generated from the TypeScript type definitions. │
530
412
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -533,13 +415,13 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
533
415
  * A ref for imperative actions.
534
416
  * It currently only supports updatePosition() action.
535
417
  */
536
- action: We,
418
+ action: Ve,
537
419
  /**
538
420
  * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
539
421
  * or a function that returns either.
540
422
  * It's used to set the position of the popover.
541
423
  */
542
- anchorEl: Ae(e.oneOfType([Z, e.func]), (t) => {
424
+ anchorEl: Ue(e.oneOfType([Z, e.func]), (t) => {
543
425
  if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
544
426
  const o = G(t.anchorEl);
545
427
  if (o && o.nodeType === 1) {
@@ -633,7 +515,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
633
515
  * The elevation of the popover.
634
516
  * @default 8
635
517
  */
636
- elevation: Ke,
518
+ elevation: Fe,
637
519
  /**
638
520
  * Specifies how close to the edge of the window the popover can appear.
639
521
  * If null, the popover will not be constrained by the window.
@@ -658,7 +540,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
658
540
  * @default {}
659
541
  */
660
542
  PaperProps: e.shape({
661
- component: $e
543
+ component: Ae
662
544
  }),
663
545
  /**
664
546
  * The props used for each slot inside.
@@ -718,30 +600,30 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
718
600
  */
719
601
  TransitionProps: e.object
720
602
  });
721
- function Ze(t) {
722
- return oe("MuiMenu", t);
603
+ function Ge(t) {
604
+ return he("MuiMenu", t);
723
605
  }
724
- const Co = ee("MuiMenu", ["root", "paper", "list"]), eo = {
606
+ const Mo = ge("MuiMenu", ["root", "paper", "list"]), Ye = {
725
607
  vertical: "top",
726
608
  horizontal: "right"
727
- }, oo = {
609
+ }, Xe = {
728
610
  vertical: "top",
729
611
  horizontal: "left"
730
- }, to = (t) => {
612
+ }, Je = (t) => {
731
613
  const {
732
614
  classes: o
733
615
  } = t;
734
- return ne({
616
+ return be({
735
617
  root: ["root"],
736
618
  paper: ["paper"],
737
619
  list: ["list"]
738
- }, Ze, o);
739
- }, no = V(Re, {
740
- shouldForwardProp: (t) => je(t) || t === "classes",
620
+ }, Ge, o);
621
+ }, Qe = W(Me, {
622
+ shouldForwardProp: (t) => Ie(t) || t === "classes",
741
623
  name: "MuiMenu",
742
624
  slot: "Root",
743
625
  overridesResolver: (t, o) => o.root
744
- })({}), ro = V(Oe, {
626
+ })({}), Ze = W(Ee, {
745
627
  name: "MuiMenu",
746
628
  slot: "Paper",
747
629
  overridesResolver: (t, o) => o.paper
@@ -752,107 +634,107 @@ const Co = ee("MuiMenu", ["root", "paper", "list"]), eo = {
752
634
  maxHeight: "calc(100% - 96px)",
753
635
  // Add iOS momentum scrolling for iOS < 13.0
754
636
  WebkitOverflowScrolling: "touch"
755
- }), so = V(Me, {
637
+ }), eo = W(Te, {
756
638
  name: "MuiMenu",
757
639
  slot: "List",
758
640
  overridesResolver: (t, o) => o.list
759
641
  })({
760
642
  // We disable the focus ring for mouse, touch and keyboard users.
761
643
  outline: 0
762
- }), io = /* @__PURE__ */ s.forwardRef(function(o, n) {
763
- const y = te({
644
+ }), oo = /* @__PURE__ */ a.forwardRef(function(o, n) {
645
+ const x = ye({
764
646
  props: o,
765
647
  name: "MuiMenu"
766
648
  }), {
767
- autoFocus: g = !0,
649
+ autoFocus: P = !0,
768
650
  children: h,
769
- className: b,
770
- disableAutoFocusItem: a = !1,
651
+ className: g,
652
+ disableAutoFocusItem: d = !1,
771
653
  MenuListProps: m = {},
772
- onClose: E,
773
- open: O,
774
- PaperProps: S = {},
775
- PopoverClasses: D,
776
- transitionDuration: i = "auto",
654
+ onClose: O,
655
+ open: N,
656
+ PaperProps: I = {},
657
+ PopoverClasses: L,
658
+ transitionDuration: s = "auto",
777
659
  TransitionProps: {
778
- onEntering: v,
779
- ...K
660
+ onEntering: y,
661
+ ...z
780
662
  } = {},
781
663
  variant: j = "selectedMenu",
782
- slots: c = {},
783
- slotProps: C = {},
664
+ slots: l = {},
665
+ slotProps: R = {},
784
666
  ...r
785
- } = y, l = Le(), f = {
786
- ...y,
787
- autoFocus: g,
788
- disableAutoFocusItem: a,
667
+ } = x, i = De(), u = {
668
+ ...x,
669
+ autoFocus: P,
670
+ disableAutoFocusItem: d,
789
671
  MenuListProps: m,
790
- onEntering: v,
791
- PaperProps: S,
792
- transitionDuration: i,
793
- TransitionProps: K,
672
+ onEntering: y,
673
+ PaperProps: I,
674
+ transitionDuration: s,
675
+ TransitionProps: z,
794
676
  variant: j
795
- }, N = to(f), R = g && !a && O, p = s.useRef(null), M = (P, k) => {
796
- p.current && p.current.adjustStyleForScrollbar(P, {
797
- direction: l ? "rtl" : "ltr"
798
- }), v && v(P, k);
799
- }, L = (P) => {
800
- P.key === "Tab" && (P.preventDefault(), E && E(P, "tabKeyDown"));
677
+ }, w = Je(u), E = P && !d && N, c = a.useRef(null), T = (b, k) => {
678
+ c.current && c.current.adjustStyleForScrollbar(b, {
679
+ direction: i ? "rtl" : "ltr"
680
+ }), y && y(b, k);
681
+ }, D = (b) => {
682
+ b.key === "Tab" && (b.preventDefault(), O && O(b, "tabKeyDown"));
801
683
  };
802
- let x = -1;
803
- s.Children.map(h, (P, k) => {
804
- /* @__PURE__ */ s.isValidElement(P) && (process.env.NODE_ENV !== "production" && ye.isFragment(P) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
805
- `)), P.props.disabled || (j === "selectedMenu" && P.props.selected || x === -1) && (x = k));
684
+ let C = -1;
685
+ a.Children.map(h, (b, k) => {
686
+ /* @__PURE__ */ a.isValidElement(b) && (process.env.NODE_ENV !== "production" && me.isFragment(b) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
687
+ `)), b.props.disabled || (j === "selectedMenu" && b.props.selected || C === -1) && (C = k));
806
688
  });
807
- const _ = c.paper ?? ro, $ = C.paper ?? S, q = fe({
808
- elementType: c.root,
809
- externalSlotProps: C.root,
810
- ownerState: f,
811
- className: [N.root, b]
812
- }), B = fe({
813
- elementType: _,
814
- externalSlotProps: $,
815
- ownerState: f,
816
- className: N.paper
689
+ const V = l.paper ?? Ze, q = R.paper ?? I, $ = le({
690
+ elementType: l.root,
691
+ externalSlotProps: R.root,
692
+ ownerState: u,
693
+ className: [w.root, g]
694
+ }), B = le({
695
+ elementType: V,
696
+ externalSlotProps: q,
697
+ ownerState: u,
698
+ className: w.paper
817
699
  });
818
- return /* @__PURE__ */ z(no, {
819
- onClose: E,
700
+ return /* @__PURE__ */ U(Qe, {
701
+ onClose: O,
820
702
  anchorOrigin: {
821
703
  vertical: "bottom",
822
- horizontal: l ? "right" : "left"
704
+ horizontal: i ? "right" : "left"
823
705
  },
824
- transformOrigin: l ? eo : oo,
706
+ transformOrigin: i ? Ye : Xe,
825
707
  slots: {
826
- paper: _,
827
- root: c.root
708
+ paper: V,
709
+ root: l.root
828
710
  },
829
711
  slotProps: {
830
- root: q,
712
+ root: $,
831
713
  paper: B
832
714
  },
833
- open: O,
715
+ open: N,
834
716
  ref: n,
835
- transitionDuration: i,
717
+ transitionDuration: s,
836
718
  TransitionProps: {
837
- onEntering: M,
838
- ...K
719
+ onEntering: T,
720
+ ...z
839
721
  },
840
- ownerState: f,
722
+ ownerState: u,
841
723
  ...r,
842
- classes: D,
843
- children: /* @__PURE__ */ z(so, {
844
- onKeyDown: L,
845
- actions: p,
846
- autoFocus: g && (x === -1 || a),
847
- autoFocusItem: R,
724
+ classes: L,
725
+ children: /* @__PURE__ */ U(eo, {
726
+ onKeyDown: D,
727
+ actions: c,
728
+ autoFocus: P && (C === -1 || d),
729
+ autoFocusItem: E,
848
730
  variant: j,
849
731
  ...m,
850
- className: Y(N.list, m.className),
732
+ className: X(w.list, m.className),
851
733
  children: h
852
734
  })
853
735
  });
854
736
  });
855
- process.env.NODE_ENV !== "production" && (io.propTypes = {
737
+ process.env.NODE_ENV !== "production" && (oo.propTypes = {
856
738
  // ┌────────────────────────────── Warning ──────────────────────────────┐
857
739
  // │ These PropTypes are generated from the TypeScript type definitions. │
858
740
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -956,11 +838,7 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
956
838
  variant: e.oneOf(["menu", "selectedMenu"])
957
839
  });
958
840
  export {
959
- Te as L,
960
- io as M,
961
- Ze as a,
962
- Pe as b,
963
- Be as g,
964
- wo as l,
965
- Co as m
841
+ oo as M,
842
+ Ge as g,
843
+ Mo as m
966
844
  };