@cgi-learning-hub/ui 1.4.0-dev.1742033609 → 1.4.0-dev.1742203139

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 (210) hide show
  1. package/dist/{Alert-BCd1tHk0.js → Alert-DdpAZix8.js} +9 -9
  2. package/dist/{Backdrop-CjDitjBW.js → Backdrop-BctCVgLy.js} +19 -20
  3. package/dist/Backdrop-DWp3AktL.cjs +1 -0
  4. package/dist/{Box-GMNejc_m.js → Box-DgqaLb7j.js} +7 -7
  5. package/dist/{Button-x5rtZxJN.js → Button-B7kOjNW1.js} +6 -6
  6. package/dist/{ButtonBase-CU1npQuI.js → ButtonBase-IZ_QjbpE.js} +4 -4
  7. package/dist/{CardContent-CL_61cm-.js → CardContent-F4-KcZH8.js} +3 -3
  8. package/dist/{Checkbox-CtRSDqOe.js → Checkbox-qUSjau0g.js} +7 -7
  9. package/dist/{Chip-ZIBpWC4I.js → Chip-OpRIs-sL.js} +6 -6
  10. package/dist/{CircularProgress-B28FKeiH.js → CircularProgress-CQxzJquv.js} +4 -4
  11. package/dist/{CloseRounded-pP8asZiP.js → CloseRounded-BMEGLs8y.js} +1 -1
  12. package/dist/DatePicker-DrLKgvkx.cjs +14 -0
  13. package/dist/{DatePicker-XdCuICxv.js → DatePicker-fFsWvNFc.js} +2535 -2117
  14. package/dist/{DefaultPropsProvider-CQixa6JQ.js → DefaultPropsProvider-Cqcb4sws.js} +7 -7
  15. package/dist/{Dialog-CgEvhrbZ.cjs → Dialog-B1wnk5BT.cjs} +1 -1
  16. package/dist/{Dialog-C-Ptqtq-.js → Dialog-CKS7yjT5.js} +9 -9
  17. package/dist/{DialogContent-1sjO2rQK.js → DialogContent-BzPaz5G8.js} +3 -3
  18. package/dist/{DialogTitle-CGpa_QH9.js → DialogTitle-D3E_lDHD.js} +5 -5
  19. package/dist/{DialogTitle-F6JD1f_z.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
  20. package/dist/{Divider-CNGfzZqD.js → Divider-D-pZeQTm.js} +8 -8
  21. package/dist/{FormLabel-BlaPVlwX.js → FormLabel-3-CC-ZGw.js} +76 -67
  22. package/dist/FormLabel-BV7-a0i5.cjs +2 -0
  23. package/dist/{Grow-D5UIC41W.js → Grow-DKgYCxiY.js} +13 -14
  24. package/dist/Grow-Z3KzFaK5.cjs +1 -0
  25. package/dist/{IconButton-CFUIddNg.js → IconButton-CCNUMz2l.js} +6 -6
  26. package/dist/{InputAdornment-GcbiriFv.js → InputAdornment-DL8XIM8r.js} +5 -5
  27. package/dist/{InputBase-DJuF09Rf.js → InputBase-By7jMrFP.js} +7 -7
  28. package/dist/{Link-DtsZ0d_s.js → Link-C_GPIs0q.js} +7 -7
  29. package/dist/{Menu-DD_bqi6q.js → Menu-BunOW0ot.js} +428 -306
  30. package/dist/Menu-Cngt8Va9.cjs +7 -0
  31. package/dist/MenuItem-Bha8aBMr.cjs +1 -0
  32. package/dist/{MenuItem-Byj-2QQd.js → MenuItem-Cu3FTLl8.js} +77 -72
  33. package/dist/{Modal-S2P14Nsp.js → Modal-DTJd7JJ6.js} +8 -8
  34. package/dist/{Modal-BG3hPYyH.cjs → Modal-u82Ss4h_.cjs} +1 -1
  35. package/dist/MoreVert-CrM_1EkN.js +8 -0
  36. package/dist/MoreVert-CxgmXooO.cjs +1 -0
  37. package/dist/{Paper-BrsaeLlu.js → Paper-BiZq6EF2.js} +4 -4
  38. package/dist/Popper-BVYscbsI.cjs +4 -0
  39. package/dist/{Popper-BNftxeQ5.js → Popper-DjwR55WH.js} +30 -31
  40. package/dist/{Portal-BLEnzj1v.js → Portal-BByeByPq.js} +2 -2
  41. package/dist/Portal-DUHpWdY1.cjs +1 -0
  42. package/dist/{Radio-CRTKwNe5.js → Radio-DSRS-tjj.js} +9 -9
  43. package/dist/{RadioGroup-NjI5PlIb.js → RadioGroup-cPdOWdYD.js} +3 -3
  44. package/dist/{Select-C0jrZLRg.js → Select-CZnKFG3o.js} +30 -30
  45. package/dist/{Select-8kBUq_SZ.cjs → Select-DZAzJA0y.cjs} +1 -1
  46. package/dist/{Stack-Bm7M81n8.js → Stack-hbAJHQhq.js} +22 -22
  47. package/dist/{Switch-D5FnE7HW.js → Switch-B9uT9-d0.js} +6 -6
  48. package/dist/{SwitchBase-91Mand9t.js → SwitchBase-CDkmnGAP.js} +5 -5
  49. package/dist/Tabs-AyJ_tKtV.cjs +4 -0
  50. package/dist/{Tabs-C5VIdTSp.js → Tabs-BYfDlOR9.js} +24 -25
  51. package/dist/{TextField-D5jS5WjF.js → TextField-BKfXjPdH.js} +8 -8
  52. package/dist/{TextField-BzqflYRV.cjs → TextField-CwcPgdgD.cjs} +1 -1
  53. package/dist/{ToggleButtonGroup-CipWZLXf.js → ToggleButtonGroup-B1yghh29.js} +3886 -2652
  54. package/dist/ToggleButtonGroup-NqurNgWT.cjs +140 -0
  55. package/dist/{Tooltip-DgTrUaHJ.js → Tooltip-B1NGvrJP.js} +10 -10
  56. package/dist/Tooltip-oNmnF7Bc.cjs +4 -0
  57. package/dist/{Typography-Ct2Sc9KM.js → Typography-SIQ6eleU.js} +5 -5
  58. package/dist/{capitalize-BJ0FEsU7.js → capitalize-3KLkrEtk.js} +1 -1
  59. package/dist/components/Alert/Alert.es.js +1 -1
  60. package/dist/components/Alert/index.es.js +1 -1
  61. package/dist/components/Button/Button.es.js +2 -2
  62. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  63. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  64. package/dist/components/DatePicker/index.cjs.js +1 -1
  65. package/dist/components/DatePicker/index.es.js +1 -1
  66. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  67. package/dist/components/Dialog/Dialog.es.js +2 -2
  68. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  69. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  70. package/dist/components/FileList/FileIcon.es.js +1 -1
  71. package/dist/components/FileList/FileListItem.es.js +4 -4
  72. package/dist/components/FolderCard/FolderCard.cjs.js +1 -0
  73. package/dist/components/FolderCard/FolderCard.d.ts +10 -0
  74. package/dist/components/FolderCard/FolderCard.es.js +77 -0
  75. package/dist/components/FolderCard/index.cjs.js +1 -0
  76. package/dist/components/FolderCard/index.d.ts +2 -0
  77. package/dist/components/FolderCard/index.es.js +4 -0
  78. package/dist/components/FolderCard/styles.cjs.js +1 -0
  79. package/dist/components/FolderCard/styles.d.ts +10 -0
  80. package/dist/components/FolderCard/styles.es.js +13 -0
  81. package/dist/components/FolderCard/types.cjs.js +1 -0
  82. package/dist/components/FolderCard/types.d.ts +11 -0
  83. package/dist/components/FolderCard/types.es.js +14 -0
  84. package/dist/components/Heading/Heading.es.js +2 -2
  85. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  86. package/dist/components/ImagePicker/ImagePicker.es.js +46 -45
  87. package/dist/components/Loader/Loader.es.js +1 -1
  88. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  89. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  90. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  91. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  92. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  93. package/dist/components/ResourceCard/ResourceCard.es.js +16 -18
  94. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  95. package/dist/components/index.cjs.js +1 -1
  96. package/dist/components/index.d.ts +1 -0
  97. package/dist/components/index.es.js +299 -302
  98. package/dist/components/stories/Alert.stories.es.js +1 -1
  99. package/dist/components/stories/Button.stories.es.js +1 -1
  100. package/dist/components/stories/Card.stories.es.js +2 -2
  101. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  102. package/dist/components/stories/Chip.stories.es.js +1 -1
  103. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  104. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  105. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  106. package/dist/components/stories/Dialog.stories.es.js +2 -2
  107. package/dist/components/stories/Divider.stories.es.js +1 -1
  108. package/dist/components/stories/FolderCard.stories.cjs.js +1 -0
  109. package/dist/components/stories/FolderCard.stories.d.ts +7 -0
  110. package/dist/components/stories/FolderCard.stories.es.js +71 -0
  111. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  112. package/dist/components/stories/Heading.stories.es.js +2 -2
  113. package/dist/components/stories/IconButton.stories.es.js +2 -2
  114. package/dist/components/stories/Link.stories.es.js +1 -1
  115. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  116. package/dist/components/stories/Menu.stories.es.js +2 -2
  117. package/dist/components/stories/Paper.stories.es.js +1 -1
  118. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  119. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  120. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  121. package/dist/components/stories/Select.stories.cjs.js +1 -1
  122. package/dist/components/stories/Select.stories.es.js +3 -3
  123. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  124. package/dist/components/stories/TabList.stories.es.js +4 -4
  125. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  126. package/dist/components/stories/TextField.stories.es.js +1 -1
  127. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  128. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  129. package/dist/components/stories/Typography.stories.es.js +1 -1
  130. package/dist/{createSvgIcon-B62eln-G.js → createSvgIcon-K2ZAdASa.js} +6 -6
  131. package/dist/{dividerClasses-DjJZQ2Lt.js → dividerClasses-afsB3Yy1.js} +1 -1
  132. package/dist/{elementTypeAcceptingRef-B04tk6ag.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
  133. package/dist/{extendSxProp-CgS-3O19.js → extendSxProp-dlShX1xL.js} +1 -1
  134. package/dist/{generateUtilityClasses-EXBFO7eY.js → generateUtilityClasses-DotvgSDH.js} +9 -9
  135. package/dist/{index-DcwdJ8a_.js → index-B1u7G33_.js} +1 -1
  136. package/dist/{index-BZ7ldAwE.js → index-DTTmpNYg.js} +4 -4
  137. package/dist/index.cjs.js +1 -1
  138. package/dist/index.es.js +299 -302
  139. package/dist/{memoTheme-DJWQ754x.js → memoTheme-CqmIydD-.js} +1 -1
  140. package/dist/{refType-Bpj8bod6.js → refType-C210ipRY.js} +1 -1
  141. package/dist/{resolveComponentProps-CIdMNno4.js → resolveComponentProps-CPmhKPdH.js} +1 -1
  142. package/dist/{useSlot-RbAtahZu.js → useSlot-GZu0V5wJ.js} +1 -1
  143. package/dist/useSlotProps-C9tsxDNg.js +45 -0
  144. package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
  145. package/dist/useTheme-BA7tMglY.js +11 -0
  146. package/dist/{useTheme-CUKf8NYA.js → useTheme-tdgDVH1p.js} +1 -1
  147. package/dist/{useThemeProps-Bxjrhw9q.js → useThemeProps-BQlPXzo3.js} +2 -2
  148. package/dist/useThemeProps-BTfGtNci.js +17 -0
  149. package/dist/utils-CFI_-FMV.cjs +1 -0
  150. package/dist/{utils-B2jSugkj.js → utils-CXhh35wP.js} +104 -76
  151. package/package.json +1 -2
  152. package/dist/Backdrop-DOdBqGqq.cjs +0 -1
  153. package/dist/Collapse-Bvxtq7n-.cjs +0 -1
  154. package/dist/Collapse-wS8A5zc5.js +0 -334
  155. package/dist/CustomTreeItem-dmAy1wfu.cjs +0 -3
  156. package/dist/CustomTreeItem-kFMLEWpp.js +0 -1003
  157. package/dist/DatePicker-64gpvkmk.cjs +0 -13
  158. package/dist/Delete-BQA9--_t.js +0 -8
  159. package/dist/Delete-DmeDAs0n.cjs +0 -1
  160. package/dist/FormLabel-XpwTqbs8.cjs +0 -2
  161. package/dist/Grow-wjlsaPJ-.cjs +0 -1
  162. package/dist/List-BTPrBGqY.js +0 -130
  163. package/dist/List-Bo4pzQqG.cjs +0 -1
  164. package/dist/ListItem-C9OfYRAP.js +0 -423
  165. package/dist/ListItem-CB4JyjSb.cjs +0 -1
  166. package/dist/ListItemText-B_hEVsaT.js +0 -928
  167. package/dist/ListItemText-Bjd08uk4.cjs +0 -1
  168. package/dist/Menu-XypIRgTl.cjs +0 -7
  169. package/dist/MenuItem-vb36Ljmd.cjs +0 -1
  170. package/dist/Popper-BaxEpkdE.cjs +0 -4
  171. package/dist/Portal-Bw9XOIah.cjs +0 -1
  172. package/dist/Tabs-Csp29aqN.cjs +0 -4
  173. package/dist/ToggleButtonGroup-Bpi3kmko.cjs +0 -140
  174. package/dist/Tooltip-DJmbLjU6.cjs +0 -4
  175. package/dist/components/TreeView/TreeView.cjs.js +0 -7
  176. package/dist/components/TreeView/TreeView.d.ts +0 -4
  177. package/dist/components/TreeView/TreeView.es.js +0 -1892
  178. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +0 -1
  179. package/dist/components/TreeView/components/CustomTreeItem.d.ts +0 -3
  180. package/dist/components/TreeView/components/CustomTreeItem.es.js +0 -9
  181. package/dist/components/TreeView/index.cjs.js +0 -1
  182. package/dist/components/TreeView/index.d.ts +0 -2
  183. package/dist/components/TreeView/index.es.js +0 -6
  184. package/dist/components/TreeView/style.cjs.js +0 -1
  185. package/dist/components/TreeView/style.d.ts +0 -12
  186. package/dist/components/TreeView/style.es.js +0 -24
  187. package/dist/components/TreeView/types.cjs.js +0 -1
  188. package/dist/components/TreeView/types.d.ts +0 -37
  189. package/dist/components/TreeView/types.es.js +0 -4
  190. package/dist/components/TreeView/utils.cjs.js +0 -1
  191. package/dist/components/TreeView/utils.d.ts +0 -6
  192. package/dist/components/TreeView/utils.es.js +0 -51
  193. package/dist/components/stories/TreeView.stories.cjs.js +0 -63
  194. package/dist/components/stories/TreeView.stories.d.ts +0 -12
  195. package/dist/components/stories/TreeView.stories.es.js +0 -663
  196. package/dist/getReactElementRef-CTRMtaOQ.cjs +0 -1
  197. package/dist/getReactElementRef-DjLvttrJ.js +0 -31
  198. package/dist/index-Cr54V0sz.cjs +0 -1
  199. package/dist/index-D_xl88AE.js +0 -22
  200. package/dist/isMuiElement-BzDAj3yJ.cjs +0 -1
  201. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  202. package/dist/listItemTextClasses-BCuJjsDp.cjs +0 -1
  203. package/dist/listItemTextClasses-Kxu3VILo.js +0 -9
  204. package/dist/useSlotProps-BTRhbYwP.cjs +0 -1
  205. package/dist/useSlotProps-U2Iu6E0j.js +0 -25
  206. package/dist/useTheme-Czi7oO55.js +0 -11
  207. package/dist/useThemeProps-v-SfXuGn.js +0 -17
  208. package/dist/utils-lBmb5bp_.cjs +0 -1
  209. package/dist/warning-C8W811fV.js +0 -11
  210. package/dist/warning-DMUNDgRg.cjs +0 -2
@@ -1,136 +1,254 @@
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-EXBFO7eY.js";
3
- import { u as De } from "./index-D_xl88AE.js";
4
- import { s as W, u as ye, c as be, r as Ie } from "./DefaultPropsProvider-CQixa6JQ.js";
5
- import { jsx as U } from "react/jsx-runtime";
6
- import { u as le } from "./useSlotProps-U2Iu6E0j.js";
7
- import { i as je } from "./isHostComponent-kiaBvYVo.js";
8
- import { u as ce } from "./useSlot-RbAtahZu.js";
9
- import { P as ke, i as Fe } from "./Paper-BrsaeLlu.js";
10
- import { G as Le } from "./Grow-D5UIC41W.js";
11
- import { o as J } from "./ownerDocument-CUrv0DIK.js";
12
- import { o as Q } from "./ownerWindow-niciwP7I.js";
13
- import { d as ze } from "./debounce-46wSf_lW.js";
1
+ import * as s from "react";
2
+ import { H as ee, I as oe, G as Y, P as e, Z as ye } from "./generateUtilityClasses-DotvgSDH.js";
3
+ import { u as Le, a as fe } from "./useSlotProps-C9tsxDNg.js";
4
+ import { u as te, s as V, c as ne, r as je } from "./DefaultPropsProvider-Cqcb4sws.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-GZu0V5wJ.js";
8
+ import { P as ze, i as Ke } from "./Paper-BiZq6EF2.js";
9
+ import { G as He } from "./Grow-DKgYCxiY.js";
10
+ import { o as Z } from "./ownerDocument-CUrv0DIK.js";
11
+ import { o as J } from "./ownerWindow-niciwP7I.js";
12
+ import { d as Ue } from "./debounce-46wSf_lW.js";
14
13
  import { u as ve } from "./useForkRef-C_4o__cU.js";
15
- import { b as Ke, M as He } from "./Modal-S2P14Nsp.js";
16
- import { c as Ue } from "./chainPropTypes-D9lkm76m.js";
17
- import { r as Ve } from "./refType-Bpj8bod6.js";
18
- import { e as Ae } from "./elementTypeAcceptingRef-B04tk6ag.js";
19
- import { H as Z } from "./Portal-BLEnzj1v.js";
20
- import { u as _e } from "./useEnhancedEffect-CJGo-L3B.js";
21
- import { L as We } from "./List-BTPrBGqY.js";
22
- function Y(t, o, n) {
14
+ import { b as Ve, M as _e } from "./Modal-DTJd7JJ6.js";
15
+ import { c as Ae } from "./chainPropTypes-D9lkm76m.js";
16
+ import { r as We } from "./refType-C210ipRY.js";
17
+ import { e as $e } from "./elementTypeAcceptingRef-5ESWTE79.js";
18
+ import { H as Q } from "./Portal-BByeByPq.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) {
23
141
  return t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : n ? null : t.firstChild;
24
142
  }
25
- function pe(t, o, n) {
143
+ function he(t, o, n) {
26
144
  return t === o ? n ? t.firstChild : t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : n ? null : t.lastChild;
27
145
  }
28
- function Pe(t, o) {
146
+ function Ee(t, o) {
29
147
  if (o === void 0)
30
148
  return !0;
31
149
  let n = t.innerText;
32
150
  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(""));
33
151
  }
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)
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)
39
157
  return !1;
40
- g = !0;
158
+ b = !0;
41
159
  }
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);
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);
45
163
  else
46
- return d.focus(), !0;
164
+ return a.focus(), !0;
47
165
  }
48
166
  return !1;
49
167
  }
50
- const Te = /* @__PURE__ */ a.forwardRef(function(o, n) {
168
+ const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
51
169
  const {
52
170
  // private
53
171
  // eslint-disable-next-line react/prop-types
54
- actions: x,
55
- autoFocus: P = !1,
172
+ actions: y,
173
+ autoFocus: g = !1,
56
174
  autoFocusItem: h = !1,
57
- children: g,
58
- className: d,
175
+ children: b,
176
+ className: a,
59
177
  disabledItemsFocusable: m = !1,
60
- disableListWrap: O = !1,
61
- onKeyDown: N,
62
- variant: I = "selectedMenu",
63
- ...L
64
- } = o, s = a.useRef(null), y = a.useRef({
178
+ disableListWrap: E = !1,
179
+ onKeyDown: O,
180
+ variant: S = "selectedMenu",
181
+ ...D
182
+ } = o, i = s.useRef(null), v = s.useRef({
65
183
  keys: [],
66
184
  repeating: !0,
67
185
  previousKeyMatched: !0,
68
186
  lastTime: null
69
187
  });
70
- _e(() => {
71
- P && s.current.focus();
72
- }, [P]), a.useImperativeHandle(x, () => ({
188
+ qe(() => {
189
+ g && i.current.focus();
190
+ }, [g]), s.useImperativeHandle(y, () => ({
73
191
  adjustStyleForScrollbar: (r, {
74
- direction: i
192
+ direction: l
75
193
  }) => {
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})`;
194
+ const f = !i.current.style.width;
195
+ if (r.clientHeight < i.current.clientHeight && f) {
196
+ const N = `${Ve(J(r))}px`;
197
+ i.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = N, i.current.style.width = `calc(100% + ${N})`;
80
198
  }
81
- return s.current;
199
+ return i.current;
82
200
  }
83
201
  }), []);
84
- const z = (r) => {
85
- const i = s.current, u = r.key;
202
+ const K = (r) => {
203
+ const l = i.current, f = r.key;
86
204
  if (r.ctrlKey || r.metaKey || r.altKey) {
87
- N && N(r);
205
+ O && O(r);
88
206
  return;
89
207
  }
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;
208
+ const R = Z(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;
104
222
  }
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));
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));
111
229
  return;
112
230
  }
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));
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));
115
233
  });
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);
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);
120
238
  }
121
239
  return r;
122
240
  });
123
- return /* @__PURE__ */ U(We, {
241
+ return /* @__PURE__ */ z(Te, {
124
242
  role: "menu",
125
243
  ref: j,
126
- className: d,
127
- onKeyDown: z,
128
- tabIndex: P ? 0 : -1,
129
- ...L,
130
- children: R
244
+ className: a,
245
+ onKeyDown: K,
246
+ tabIndex: g ? 0 : -1,
247
+ ...D,
248
+ children: C
131
249
  });
132
250
  });
133
- process.env.NODE_ENV !== "production" && (Te.propTypes = {
251
+ process.env.NODE_ENV !== "production" && (Me.propTypes = {
134
252
  // ┌────────────────────────────── Warning ──────────────────────────────┐
135
253
  // │ These PropTypes are generated from the TypeScript type definitions. │
136
254
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -175,37 +293,37 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
175
293
  */
176
294
  variant: e.oneOf(["menu", "selectedMenu"])
177
295
  });
178
- function qe(t) {
179
- return he("MuiPopover", t);
296
+ function Xe(t) {
297
+ return oe("MuiPopover", t);
180
298
  }
181
- ge("MuiPopover", ["root", "paper"]);
182
- function ue(t, o) {
299
+ ee("MuiPopover", ["root", "paper"]);
300
+ function me(t, o) {
183
301
  let n = 0;
184
302
  return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
185
303
  }
186
- function fe(t, o) {
304
+ function be(t, o) {
187
305
  let n = 0;
188
306
  return typeof o == "number" ? n = o : o === "center" ? n = t.width / 2 : o === "right" && (n = t.width), n;
189
307
  }
190
- function de(t) {
308
+ function ge(t) {
191
309
  return [t.horizontal, t.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
192
310
  }
193
311
  function G(t) {
194
312
  return typeof t == "function" ? t() : t;
195
313
  }
196
- const $e = (t) => {
314
+ const Ze = (t) => {
197
315
  const {
198
316
  classes: o
199
317
  } = t;
200
- return be({
318
+ return ne({
201
319
  root: ["root"],
202
320
  paper: ["paper"]
203
- }, qe, o);
204
- }, Be = W(He, {
321
+ }, Xe, o);
322
+ }, Je = V(_e, {
205
323
  name: "MuiPopover",
206
324
  slot: "Root",
207
325
  overridesResolver: (t, o) => o.root
208
- })({}), Ee = W(ke, {
326
+ })({}), Oe = V(ze, {
209
327
  name: "MuiPopover",
210
328
  slot: "Paper",
211
329
  overridesResolver: (t, o) => o.paper
@@ -221,192 +339,192 @@ const $e = (t) => {
221
339
  maxHeight: "calc(100% - 32px)",
222
340
  // We disable the focus ring for mouse, touch and keyboard users.
223
341
  outline: 0
224
- }), Me = /* @__PURE__ */ a.forwardRef(function(o, n) {
225
- const x = ye({
342
+ }), Re = /* @__PURE__ */ s.forwardRef(function(o, n) {
343
+ const y = te({
226
344
  props: o,
227
345
  name: "MuiPopover"
228
346
  }), {
229
- action: P,
347
+ action: g,
230
348
  anchorEl: h,
231
- anchorOrigin: g = {
349
+ anchorOrigin: b = {
232
350
  vertical: "top",
233
351
  horizontal: "left"
234
352
  },
235
- anchorPosition: d,
353
+ anchorPosition: a,
236
354
  anchorReference: m = "anchorEl",
237
- children: O,
238
- className: N,
239
- container: I,
240
- elevation: L = 8,
241
- marginThreshold: s = 16,
242
- open: y,
243
- PaperProps: z = {},
355
+ children: E,
356
+ className: O,
357
+ container: S,
358
+ elevation: D = 8,
359
+ marginThreshold: i = 16,
360
+ open: v,
361
+ PaperProps: K = {},
244
362
  slots: j = {},
245
- slotProps: l = {},
246
- transformOrigin: R = {
363
+ slotProps: c = {},
364
+ transformOrigin: C = {
247
365
  vertical: "top",
248
366
  horizontal: "left"
249
367
  },
250
- TransitionComponent: r = Le,
251
- transitionDuration: i = "auto",
368
+ TransitionComponent: r = He,
369
+ transitionDuration: l = "auto",
252
370
  TransitionProps: {
253
- onEntering: u,
254
- ...w
371
+ onEntering: f,
372
+ ...N
255
373
  } = {},
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,
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,
261
379
  anchorReference: m,
262
- elevation: L,
263
- marginThreshold: s,
264
- externalPaperSlotProps: T,
265
- transformOrigin: R,
380
+ elevation: D,
381
+ marginThreshold: i,
382
+ externalPaperSlotProps: M,
383
+ transformOrigin: C,
266
384
  TransitionComponent: r,
267
- transitionDuration: i,
268
- TransitionProps: w
269
- }, V = $e(C), q = a.useCallback(() => {
385
+ transitionDuration: l,
386
+ TransitionProps: N
387
+ }, _ = Ze(x), $ = s.useCallback(() => {
270
388
  if (m === "anchorPosition")
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();
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 : Z(L.current).body, T = d.getBoundingClientRect();
273
391
  if (process.env.NODE_ENV !== "production") {
274
- const F = f.getBoundingClientRect();
392
+ const F = d.getBoundingClientRect();
275
393
  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(`
276
394
  `));
277
395
  }
278
396
  return {
279
- top: v.top + ue(v, g.vertical),
280
- left: v.left + fe(v, g.horizontal)
397
+ top: T.top + me(T, b.vertical),
398
+ left: T.left + be(T, b.horizontal)
281
399
  };
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);
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);
290
408
  if (m === "none")
291
409
  return {
292
410
  top: null,
293
411
  left: null,
294
- transformOrigin: de(v)
412
+ transformOrigin: ge(T)
295
413
  };
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;
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 = J(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;
305
423
  }
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;
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;
313
431
  }
314
432
  return {
315
- top: `${Math.round(K)}px`,
316
- left: `${Math.round(H)}px`,
317
- transformOrigin: de(v)
433
+ top: `${Math.round(H)}px`,
434
+ left: `${Math.round(U)}px`,
435
+ transformOrigin: ge(T)
318
436
  };
319
- }, [h, m, q, $, s]), [b, k] = a.useState(y), S = a.useCallback(() => {
320
- const p = D.current;
321
- if (!p)
437
+ }, [h, m, $, q, i]), [P, k] = s.useState(v), I = s.useCallback(() => {
438
+ const u = L.current;
439
+ if (!u)
322
440
  return;
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);
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);
325
443
  }, [B]);
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 = () => {
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 = () => {
330
448
  k(!1);
331
449
  };
332
- a.useEffect(() => {
333
- y && S();
334
- }), a.useImperativeHandle(P, () => y ? {
450
+ s.useEffect(() => {
451
+ v && I();
452
+ }), s.useImperativeHandle(g, () => v ? {
335
453
  updatePosition: () => {
336
- S();
454
+ I();
337
455
  }
338
- } : null, [y, S]), a.useEffect(() => {
339
- if (!y)
456
+ } : null, [v, I]), s.useEffect(() => {
457
+ if (!v)
340
458
  return;
341
- const p = ze(() => {
342
- S();
343
- }), f = Q(h);
344
- return f.addEventListener("resize", p), () => {
345
- p.clear(), f.removeEventListener("resize", p);
459
+ const u = Ue(() => {
460
+ I();
461
+ }), d = J(h);
462
+ return d.addEventListener("resize", u), () => {
463
+ u.clear(), d.removeEventListener("resize", u);
346
464
  };
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 = {
465
+ }, [h, v, I]);
466
+ let re = l;
467
+ l === "auto" && !r.muiSupportAuto && (re = void 0);
468
+ const Ne = S || (h ? Z(G(h)).body : void 0), se = {
351
469
  slots: j,
352
470
  slotProps: {
353
- ...l,
354
- paper: T
471
+ ...c,
472
+ paper: M
355
473
  }
356
- }, [Ce, te] = ce("paper", {
357
- elementType: Ee,
358
- externalForwardedProps: oe,
474
+ }, [xe, ie] = de("paper", {
475
+ elementType: Oe,
476
+ externalForwardedProps: se,
359
477
  additionalProps: {
360
- elevation: L,
361
- className: X(V.paper, T == null ? void 0 : T.className),
362
- style: b ? T.style : {
363
- ...T.style,
478
+ elevation: D,
479
+ className: Y(_.paper, M == null ? void 0 : M.className),
480
+ style: P ? M.style : {
481
+ ...M.style,
364
482
  opacity: 0
365
483
  }
366
484
  },
367
- ownerState: C
368
- }), [ne, {
369
- slotProps: xe,
370
- ...Ne
371
- }] = ce("root", {
372
- elementType: Be,
373
- externalForwardedProps: oe,
485
+ ownerState: x
486
+ }), [ae, {
487
+ slotProps: Se,
488
+ ...De
489
+ }] = de("root", {
490
+ elementType: Je,
491
+ externalForwardedProps: se,
374
492
  additionalProps: {
375
493
  slotProps: {
376
494
  backdrop: {
377
495
  invisible: !0
378
496
  }
379
497
  },
380
- container: we,
381
- open: y
498
+ container: Ne,
499
+ open: v
382
500
  },
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
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
391
509
  },
392
- ...c,
510
+ ...p,
393
511
  ref: n,
394
- children: /* @__PURE__ */ U(r, {
512
+ children: /* @__PURE__ */ z(r, {
395
513
  appear: !0,
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
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
405
523
  })
406
524
  })
407
525
  });
408
526
  });
409
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
527
+ process.env.NODE_ENV !== "production" && (Re.propTypes = {
410
528
  // ┌────────────────────────────── Warning ──────────────────────────────┐
411
529
  // │ These PropTypes are generated from the TypeScript type definitions. │
412
530
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -415,13 +533,13 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
415
533
  * A ref for imperative actions.
416
534
  * It currently only supports updatePosition() action.
417
535
  */
418
- action: Ve,
536
+ action: We,
419
537
  /**
420
538
  * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
421
539
  * or a function that returns either.
422
540
  * It's used to set the position of the popover.
423
541
  */
424
- anchorEl: Ue(e.oneOfType([Z, e.func]), (t) => {
542
+ anchorEl: Ae(e.oneOfType([Q, e.func]), (t) => {
425
543
  if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
426
544
  const o = G(t.anchorEl);
427
545
  if (o && o.nodeType === 1) {
@@ -505,7 +623,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
505
623
  * By default, it uses the body of the anchorEl's top-level document object,
506
624
  * so it's simply `document.body` most of the time.
507
625
  */
508
- container: e.oneOfType([Z, e.func]),
626
+ container: e.oneOfType([Q, e.func]),
509
627
  /**
510
628
  * Disable the scroll lock behavior.
511
629
  * @default false
@@ -515,7 +633,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
515
633
  * The elevation of the popover.
516
634
  * @default 8
517
635
  */
518
- elevation: Fe,
636
+ elevation: Ke,
519
637
  /**
520
638
  * Specifies how close to the edge of the window the popover can appear.
521
639
  * If null, the popover will not be constrained by the window.
@@ -540,7 +658,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
540
658
  * @default {}
541
659
  */
542
660
  PaperProps: e.shape({
543
- component: Ae
661
+ component: $e
544
662
  }),
545
663
  /**
546
664
  * The props used for each slot inside.
@@ -600,30 +718,30 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
600
718
  */
601
719
  TransitionProps: e.object
602
720
  });
603
- function Ge(t) {
604
- return he("MuiMenu", t);
721
+ function Qe(t) {
722
+ return oe("MuiMenu", t);
605
723
  }
606
- const Mo = ge("MuiMenu", ["root", "paper", "list"]), Ye = {
724
+ const Co = ee("MuiMenu", ["root", "paper", "list"]), eo = {
607
725
  vertical: "top",
608
726
  horizontal: "right"
609
- }, Xe = {
727
+ }, oo = {
610
728
  vertical: "top",
611
729
  horizontal: "left"
612
- }, Je = (t) => {
730
+ }, to = (t) => {
613
731
  const {
614
732
  classes: o
615
733
  } = t;
616
- return be({
734
+ return ne({
617
735
  root: ["root"],
618
736
  paper: ["paper"],
619
737
  list: ["list"]
620
- }, Ge, o);
621
- }, Qe = W(Me, {
622
- shouldForwardProp: (t) => Ie(t) || t === "classes",
738
+ }, Qe, o);
739
+ }, no = V(Re, {
740
+ shouldForwardProp: (t) => je(t) || t === "classes",
623
741
  name: "MuiMenu",
624
742
  slot: "Root",
625
743
  overridesResolver: (t, o) => o.root
626
- })({}), Ze = W(Ee, {
744
+ })({}), ro = V(Oe, {
627
745
  name: "MuiMenu",
628
746
  slot: "Paper",
629
747
  overridesResolver: (t, o) => o.paper
@@ -634,107 +752,107 @@ const Mo = ge("MuiMenu", ["root", "paper", "list"]), Ye = {
634
752
  maxHeight: "calc(100% - 96px)",
635
753
  // Add iOS momentum scrolling for iOS < 13.0
636
754
  WebkitOverflowScrolling: "touch"
637
- }), eo = W(Te, {
755
+ }), so = V(Me, {
638
756
  name: "MuiMenu",
639
757
  slot: "List",
640
758
  overridesResolver: (t, o) => o.list
641
759
  })({
642
760
  // We disable the focus ring for mouse, touch and keyboard users.
643
761
  outline: 0
644
- }), oo = /* @__PURE__ */ a.forwardRef(function(o, n) {
645
- const x = ye({
762
+ }), io = /* @__PURE__ */ s.forwardRef(function(o, n) {
763
+ const y = te({
646
764
  props: o,
647
765
  name: "MuiMenu"
648
766
  }), {
649
- autoFocus: P = !0,
767
+ autoFocus: g = !0,
650
768
  children: h,
651
- className: g,
652
- disableAutoFocusItem: d = !1,
769
+ className: b,
770
+ disableAutoFocusItem: a = !1,
653
771
  MenuListProps: m = {},
654
- onClose: O,
655
- open: N,
656
- PaperProps: I = {},
657
- PopoverClasses: L,
658
- transitionDuration: s = "auto",
772
+ onClose: E,
773
+ open: O,
774
+ PaperProps: S = {},
775
+ PopoverClasses: D,
776
+ transitionDuration: i = "auto",
659
777
  TransitionProps: {
660
- onEntering: y,
661
- ...z
778
+ onEntering: v,
779
+ ...K
662
780
  } = {},
663
781
  variant: j = "selectedMenu",
664
- slots: l = {},
665
- slotProps: R = {},
782
+ slots: c = {},
783
+ slotProps: C = {},
666
784
  ...r
667
- } = x, i = De(), u = {
668
- ...x,
669
- autoFocus: P,
670
- disableAutoFocusItem: d,
785
+ } = y, l = Le(), f = {
786
+ ...y,
787
+ autoFocus: g,
788
+ disableAutoFocusItem: a,
671
789
  MenuListProps: m,
672
- onEntering: y,
673
- PaperProps: I,
674
- transitionDuration: s,
675
- TransitionProps: z,
790
+ onEntering: v,
791
+ PaperProps: S,
792
+ transitionDuration: i,
793
+ TransitionProps: K,
676
794
  variant: j
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"));
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"));
683
801
  };
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));
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));
688
806
  });
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
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
699
817
  });
700
- return /* @__PURE__ */ U(Qe, {
701
- onClose: O,
818
+ return /* @__PURE__ */ z(no, {
819
+ onClose: E,
702
820
  anchorOrigin: {
703
821
  vertical: "bottom",
704
- horizontal: i ? "right" : "left"
822
+ horizontal: l ? "right" : "left"
705
823
  },
706
- transformOrigin: i ? Ye : Xe,
824
+ transformOrigin: l ? eo : oo,
707
825
  slots: {
708
- paper: V,
709
- root: l.root
826
+ paper: _,
827
+ root: c.root
710
828
  },
711
829
  slotProps: {
712
- root: $,
830
+ root: q,
713
831
  paper: B
714
832
  },
715
- open: N,
833
+ open: O,
716
834
  ref: n,
717
- transitionDuration: s,
835
+ transitionDuration: i,
718
836
  TransitionProps: {
719
- onEntering: T,
720
- ...z
837
+ onEntering: M,
838
+ ...K
721
839
  },
722
- ownerState: u,
840
+ ownerState: f,
723
841
  ...r,
724
- classes: L,
725
- children: /* @__PURE__ */ U(eo, {
726
- onKeyDown: D,
727
- actions: c,
728
- autoFocus: P && (C === -1 || d),
729
- autoFocusItem: E,
842
+ classes: D,
843
+ children: /* @__PURE__ */ z(so, {
844
+ onKeyDown: L,
845
+ actions: p,
846
+ autoFocus: g && (x === -1 || a),
847
+ autoFocusItem: R,
730
848
  variant: j,
731
849
  ...m,
732
- className: X(w.list, m.className),
850
+ className: Y(N.list, m.className),
733
851
  children: h
734
852
  })
735
853
  });
736
854
  });
737
- process.env.NODE_ENV !== "production" && (oo.propTypes = {
855
+ process.env.NODE_ENV !== "production" && (io.propTypes = {
738
856
  // ┌────────────────────────────── Warning ──────────────────────────────┐
739
857
  // │ These PropTypes are generated from the TypeScript type definitions. │
740
858
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -743,7 +861,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
743
861
  * An HTML element, or a function that returns one.
744
862
  * It's used to set the position of the menu.
745
863
  */
746
- anchorEl: e.oneOfType([Z, e.func]),
864
+ anchorEl: e.oneOfType([Q, e.func]),
747
865
  /**
748
866
  * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
749
867
  * children are not focusable. If you set this prop to `false` focus will be placed
@@ -838,7 +956,11 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
838
956
  variant: e.oneOf(["menu", "selectedMenu"])
839
957
  });
840
958
  export {
841
- oo as M,
842
- Ge as g,
843
- Mo as m
959
+ Te as L,
960
+ io as M,
961
+ Qe as a,
962
+ Pe as b,
963
+ Be as g,
964
+ wo as l,
965
+ Co as m
844
966
  };