@cgi-learning-hub/ui 1.4.0-dev.1741984172 → 1.4.0-dev.1741985772

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