@solostylist/ui-kit 1.0.114 → 1.0.116
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.
- package/dist/{Box-BVty_s6i.js → Box-DqmXop3Z.js} +5 -5
- package/dist/{ButtonBase-mQcNFFZT.js → ButtonBase-DVlCHVDw.js} +6 -5
- package/dist/{ChevronRight-DHNkZLlo.js → ChevronRight-DQD188LX.js} +2 -2
- package/dist/{Close-NkxvAwQr.js → Close-DlTC3goO.js} +2 -2
- package/dist/{ExpandMore-DpFPV8W9.js → ExpandMore-D5dA_4ky.js} +2 -2
- package/dist/{Favorite-DpJ7EDHh.js → Favorite-DkdOa-QT.js} +2 -2
- package/dist/{Menu-CcW81QRb.js → Menu-CgxtGUFu.js} +313 -304
- package/dist/{MenuItem-DGNNylSd.js → MenuItem-FlDSyi1I.js} +6 -6
- package/dist/{Paper-BUFfm5KI.js → Paper-DTI6p5rh.js} +10 -10
- package/dist/{Select-CWgjtbUU.js → Select-awnAAkKz.js} +393 -376
- package/dist/{Stack-CQ7zBwkJ.js → Stack-CO3ed3qL.js} +6 -6
- package/dist/{TransitionGroup-Buyx2ey4.js → TransitionGroup-BK0MDPKM.js} +3 -3
- package/dist/{Typography-fMf8hWqG.js → Typography-y4bVBfDI.js} +5 -5
- package/dist/assets/stripe-input.css +1 -1
- package/dist/{chunk-5P46WS5M-OG9gpzOE.js → chunk-6WTWBXEJ-CEca0jKr.js} +963 -922
- package/dist/{createSvgIcon-PpKM6urg.js → createSvgIcon-By5UWB4_.js} +130 -104
- package/dist/{createTheme-ubqb7_yU.js → createTheme-3Wd3hHrj.js} +4 -5
- package/dist/defaultTheme-fEi1x1Gb.js +5 -0
- package/dist/{extendSxProp-5t2om437.js → extendSxProp-BKWjdW12.js} +1 -1
- package/dist/{index-B6k9mhKf.js → index--x2dvtup.js} +1 -1
- package/dist/index-VB-2NIdQ.js +95 -0
- package/dist/{jsx-runtime-DywqP_6a.js → jsx-runtime-OVHDjVDe.js} +2 -2
- package/dist/main.d.ts +3 -3
- package/dist/main.js +72 -74
- package/dist/{mergeSlotProps-DKFm7I5M.js → mergeSlotProps-C7ui6BxO.js} +1 -1
- package/dist/s-accordion/s-accordion.js +10 -10
- package/dist/s-action-overlay/s-action-overlay.js +1 -1
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +1 -1
- package/dist/s-blur-text/s-blur-text.js +1 -1
- package/dist/s-button/s-button.js +1 -1
- package/dist/s-button-link/s-button-link.js +1 -1
- package/dist/s-carousel/s-carousel.js +46 -46
- package/dist/s-category-card/s-category-card.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +3 -3
- package/dist/s-chat-message/s-chat-message.js +2 -2
- package/dist/s-checkbox/s-checkbox.js +1 -1
- package/dist/s-chip/s-chip.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +4 -4
- package/dist/s-copilot-kit-provider/s-copilot-kit-provider.js +2 -2
- package/dist/s-copyable-text/s-copyable-text.js +2 -2
- package/dist/s-countdown/s-count-down.js +1 -1
- package/dist/s-data-table/s-data-table.js +7 -7
- package/dist/s-date-picker/s-date-picker.js +49 -46
- package/dist/s-datetime-picker/s-datetime-picker.js +651 -650
- package/dist/s-dialog/s-dialog.js +2 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +3 -3
- package/dist/s-dialog-message/s-dialog-message.js +3 -3
- package/dist/s-empty/s-empty.js +1 -1
- package/dist/s-error/s-error.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +5 -5
- package/dist/s-file-icon/s-file-icon.js +2 -2
- package/dist/s-flex-box/s-flex-box.js +2 -2
- package/dist/s-form/s-form.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.js +1 -1
- package/dist/s-icon-button/s-icon-button.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.js +2 -2
- package/dist/s-image-modal/s-image-modal.js +3 -3
- package/dist/s-interactive-gallery/s-interactive-gallery.js +1 -1
- package/dist/s-label/s-label.js +2 -2
- package/dist/s-lazy-image/s-lazy-image.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +378 -293
- package/dist/s-moving-border/s-moving-border.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +4 -4
- package/dist/s-no-ssr/s-no-ssr.js +1 -1
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +2 -2
- package/dist/s-pagination/s-pagination.js +1 -1
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +1 -1
- package/dist/s-rating/s-rating.js +1 -1
- package/dist/s-review/s-review.js +2 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/s-skeleton/s-skeleton.js +1 -1
- package/dist/s-smart-text-field/s-smart-text-field.js +84 -84
- package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +1 -1
- package/dist/s-stripe/s-stripe.js +1 -1
- package/dist/s-stripe/stripe-input.js +1 -1
- package/dist/s-tabs/s-tab-panel.js +1 -1
- package/dist/s-tabs/s-tab.js +1 -1
- package/dist/s-tabs/s-tabs.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +5 -5
- package/dist/s-text-editor/s-text-editor.js +2 -2
- package/dist/s-text-field/s-text-field.js +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +2 -2
- package/dist/s-text-truncation/s-text-truncation.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +3 -3
- package/dist/s-theme-provider/index.d.ts +0 -2
- package/dist/s-theme-provider/index.js +2 -5
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.d.ts +1 -1
- package/dist/s-theme-switch/s-theme-switch.d.ts +4 -1
- package/dist/s-theme-switch/s-theme-switch.js +22 -24
- package/dist/s-tip/s-tip.js +4 -4
- package/dist/s-typewriter-text/s-typewriter-text.js +1 -1
- package/dist/{styled-C9vD3j80.js → styled-BD_erj7E.js} +3 -3
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/components/chip.js +2 -2
- package/dist/theme/customizations/inputs.js +2 -2
- package/dist/theme/customizations/navigation.js +2 -2
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{useControlled-nm4pBabJ.js → useControlled-D1L5tREc.js} +11 -11
- package/dist/{useMobilePicker-kwoV49Bq.js → useMobilePicker-BV-ABj4C.js} +4023 -3979
- package/dist/{useTheme-BRW1H8JQ.js → useTheme-B5czKfC4.js} +1 -1
- package/dist/{useThemeProps-DEztVr97.js → useThemeProps-DqA5BinV.js} +1 -1
- package/dist/utils/dayjs.js +14 -14
- package/dist/{warning-Dcl59VWg.js → warning-BCwEnWrE.js} +4 -4
- package/package.json +6 -6
- package/dist/DefaultPropsProvider-B--diaQ3.js +0 -56
- package/dist/GlobalStyles-OdaYqxTO.js +0 -59
- package/dist/defaultTheme-CtLmY7I4.js +0 -5
- package/dist/index-N6ZbgVEG.js +0 -33
- package/dist/index-h98nw21y.js +0 -44
- package/dist/s-theme-provider/use-theme.d.ts +0 -51
- package/dist/s-theme-provider/use-theme.js +0 -670
- package/dist/useId-CK6Kn3Tn.js +0 -21
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { P as e, j as
|
|
3
|
-
import { u as ce, a as ne, b as le, m as it } from "./createSvgIcon-
|
|
4
|
-
import {
|
|
5
|
-
import { s as G, r as
|
|
2
|
+
import { P as e, j as He } from "./createTheme-3Wd3hHrj.js";
|
|
3
|
+
import { u as ce, a as ne, b as le, m as it } from "./createSvgIcon-By5UWB4_.js";
|
|
4
|
+
import { j as A } from "./jsx-runtime-OVHDjVDe.js";
|
|
5
|
+
import { s as G, r as at } from "./styled-BD_erj7E.js";
|
|
6
6
|
import { g as ue } from "./colorManipulator-ep5lERxB.js";
|
|
7
7
|
import { g as pe } from "./generateUtilityClasses-BtVDwGrk.js";
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { m as yt } from "./mergeSlotProps-DKFm7I5M.js";
|
|
8
|
+
import { c as Me, b as ct, u as Z, d as W, f as Fe, g as lt, i as ut, r as pt, e as dt, a as ft, m as mt, h as ht } from "./ButtonBase-DVlCHVDw.js";
|
|
9
|
+
import { T as ze, u as qe, g as he, r as We, P as bt, i as gt } from "./Paper-DTI6p5rh.js";
|
|
10
|
+
import { m as yt } from "./mergeSlotProps-C7ui6BxO.js";
|
|
12
11
|
import * as Et from "react-dom";
|
|
13
12
|
import { u as Ne } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
14
13
|
function De(...t) {
|
|
@@ -17,7 +16,20 @@ function De(...t) {
|
|
|
17
16
|
}, () => {
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
|
-
|
|
19
|
+
const Tt = "exact-prop: ";
|
|
20
|
+
function Ge(t) {
|
|
21
|
+
return process.env.NODE_ENV === "production" ? t : {
|
|
22
|
+
...t,
|
|
23
|
+
[Tt]: (n) => {
|
|
24
|
+
const o = Object.keys(n).filter((r) => !t.hasOwnProperty(r));
|
|
25
|
+
return o.length > 0 ? new Error(`The following props are not supported: ${o.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const Pt = /* @__PURE__ */ u.createContext();
|
|
30
|
+
process.env.NODE_ENV !== "production" && (e.node, e.bool);
|
|
31
|
+
const xt = () => u.useContext(Pt) ?? !1;
|
|
32
|
+
function vt(t, n = 166) {
|
|
21
33
|
let o;
|
|
22
34
|
function r(...a) {
|
|
23
35
|
const s = () => {
|
|
@@ -44,10 +56,7 @@ function ae(t, n, o, r, a) {
|
|
|
44
56
|
const s = t[n], i = a || n;
|
|
45
57
|
return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
|
|
46
58
|
}
|
|
47
|
-
function
|
|
48
|
-
return typeof t == "string";
|
|
49
|
-
}
|
|
50
|
-
function xt(t) {
|
|
59
|
+
function Rt(t) {
|
|
51
60
|
const {
|
|
52
61
|
prototype: n = {}
|
|
53
62
|
} = t;
|
|
@@ -63,21 +72,21 @@ function Ye(t, n, o, r, a) {
|
|
|
63
72
|
return null;
|
|
64
73
|
let c;
|
|
65
74
|
const d = s.type;
|
|
66
|
-
return typeof d == "function" && !
|
|
75
|
+
return typeof d == "function" && !Rt(d) && (c = "Did you accidentally use a plain function component for an element instead?"), c !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
67
76
|
}
|
|
68
|
-
const de =
|
|
69
|
-
de.isRequired =
|
|
77
|
+
const de = Me(e.element, Ye);
|
|
78
|
+
de.isRequired = Me(e.element.isRequired, Ye);
|
|
70
79
|
function Ee(t) {
|
|
71
80
|
var n;
|
|
72
81
|
return parseInt(u.version, 10) >= 19 ? ((n = t == null ? void 0 : t.props) == null ? void 0 : n.ref) || null : (t == null ? void 0 : t.ref) || null;
|
|
73
82
|
}
|
|
74
|
-
function
|
|
83
|
+
function Ce(t) {
|
|
75
84
|
return `scale(${t}, ${t ** 2})`;
|
|
76
85
|
}
|
|
77
|
-
const
|
|
86
|
+
const Ot = {
|
|
78
87
|
entering: {
|
|
79
88
|
opacity: 1,
|
|
80
|
-
transform:
|
|
89
|
+
transform: Ce(1)
|
|
81
90
|
},
|
|
82
91
|
entered: {
|
|
83
92
|
opacity: 1,
|
|
@@ -94,76 +103,76 @@ const vt = {
|
|
|
94
103
|
onEntered: T,
|
|
95
104
|
onEntering: w,
|
|
96
105
|
onExit: x,
|
|
97
|
-
onExited:
|
|
106
|
+
onExited: C,
|
|
98
107
|
onExiting: h,
|
|
99
108
|
style: b,
|
|
100
|
-
timeout:
|
|
109
|
+
timeout: I = "auto",
|
|
101
110
|
// eslint-disable-next-line react/prop-types
|
|
102
|
-
TransitionComponent:
|
|
111
|
+
TransitionComponent: M = ze,
|
|
103
112
|
...g
|
|
104
|
-
} = n, O =
|
|
113
|
+
} = n, O = ct(), l = u.useRef(), f = qe(), y = u.useRef(null), N = Z(y, Ee(s), o), R = (p) => (m) => {
|
|
105
114
|
if (p) {
|
|
106
115
|
const F = y.current;
|
|
107
116
|
m === void 0 ? p(F) : p(F, m);
|
|
108
117
|
}
|
|
109
118
|
}, E = R(w), S = R((p, m) => {
|
|
110
|
-
|
|
119
|
+
We(p);
|
|
111
120
|
const {
|
|
112
121
|
duration: F,
|
|
113
|
-
delay:
|
|
122
|
+
delay: B,
|
|
114
123
|
easing: v
|
|
115
124
|
} = he({
|
|
116
125
|
style: b,
|
|
117
|
-
timeout:
|
|
126
|
+
timeout: I,
|
|
118
127
|
easing: i
|
|
119
128
|
}, {
|
|
120
129
|
mode: "enter"
|
|
121
130
|
});
|
|
122
131
|
let D;
|
|
123
|
-
|
|
132
|
+
I === "auto" ? (D = f.transitions.getAutoHeightDuration(p.clientHeight), l.current = D) : D = F, p.style.transition = [f.transitions.create("opacity", {
|
|
124
133
|
duration: D,
|
|
125
|
-
delay:
|
|
134
|
+
delay: B
|
|
126
135
|
}), f.transitions.create("transform", {
|
|
127
136
|
duration: Re ? D : D * 0.666,
|
|
128
|
-
delay:
|
|
137
|
+
delay: B,
|
|
129
138
|
easing: v
|
|
130
139
|
})].join(","), d && d(p, m);
|
|
131
|
-
}),
|
|
140
|
+
}), V = R(T), L = R(h), $ = R((p) => {
|
|
132
141
|
const {
|
|
133
142
|
duration: m,
|
|
134
143
|
delay: F,
|
|
135
|
-
easing:
|
|
144
|
+
easing: B
|
|
136
145
|
} = he({
|
|
137
146
|
style: b,
|
|
138
|
-
timeout:
|
|
147
|
+
timeout: I,
|
|
139
148
|
easing: i
|
|
140
149
|
}, {
|
|
141
150
|
mode: "exit"
|
|
142
151
|
});
|
|
143
152
|
let v;
|
|
144
|
-
|
|
153
|
+
I === "auto" ? (v = f.transitions.getAutoHeightDuration(p.clientHeight), l.current = v) : v = m, p.style.transition = [f.transitions.create("opacity", {
|
|
145
154
|
duration: v,
|
|
146
155
|
delay: F
|
|
147
156
|
}), f.transitions.create("transform", {
|
|
148
157
|
duration: Re ? v : v * 0.666,
|
|
149
158
|
delay: Re ? F : F || v * 0.333,
|
|
150
|
-
easing:
|
|
151
|
-
})].join(","), p.style.opacity = 0, p.style.transform =
|
|
152
|
-
}),
|
|
153
|
-
|
|
159
|
+
easing: B
|
|
160
|
+
})].join(","), p.style.opacity = 0, p.style.transform = Ce(0.75), x && x(p);
|
|
161
|
+
}), U = R(C), k = (p) => {
|
|
162
|
+
I === "auto" && O.start(l.current || 0, p), r && r(y.current, p);
|
|
154
163
|
};
|
|
155
|
-
return /* @__PURE__ */ A.jsx(
|
|
164
|
+
return /* @__PURE__ */ A.jsx(M, {
|
|
156
165
|
appear: a,
|
|
157
166
|
in: c,
|
|
158
167
|
nodeRef: y,
|
|
159
168
|
onEnter: S,
|
|
160
|
-
onEntered:
|
|
169
|
+
onEntered: V,
|
|
161
170
|
onEntering: E,
|
|
162
|
-
onExit:
|
|
163
|
-
onExited:
|
|
171
|
+
onExit: $,
|
|
172
|
+
onExited: U,
|
|
164
173
|
onExiting: L,
|
|
165
|
-
addEndListener:
|
|
166
|
-
timeout:
|
|
174
|
+
addEndListener: k,
|
|
175
|
+
timeout: I === "auto" ? null : I,
|
|
167
176
|
...g,
|
|
168
177
|
children: (p, {
|
|
169
178
|
ownerState: m,
|
|
@@ -171,9 +180,9 @@ const vt = {
|
|
|
171
180
|
}) => /* @__PURE__ */ u.cloneElement(s, {
|
|
172
181
|
style: {
|
|
173
182
|
opacity: 0,
|
|
174
|
-
transform:
|
|
183
|
+
transform: Ce(0.75),
|
|
175
184
|
visibility: p === "exited" && !c ? "hidden" : void 0,
|
|
176
|
-
...
|
|
185
|
+
...Ot[p],
|
|
177
186
|
...b,
|
|
178
187
|
...s.props.style
|
|
179
188
|
},
|
|
@@ -261,7 +270,7 @@ function Xe(t = window) {
|
|
|
261
270
|
const n = t.document.documentElement.clientWidth;
|
|
262
271
|
return t.innerWidth - n;
|
|
263
272
|
}
|
|
264
|
-
function
|
|
273
|
+
function wt(t) {
|
|
265
274
|
const n = q(t);
|
|
266
275
|
return n.body === t ? Q(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
|
|
267
276
|
}
|
|
@@ -271,14 +280,14 @@ function ie(t, n) {
|
|
|
271
280
|
function Ae(t) {
|
|
272
281
|
return parseInt(Q(t).getComputedStyle(t).paddingRight, 10) || 0;
|
|
273
282
|
}
|
|
274
|
-
function
|
|
283
|
+
function Nt(t) {
|
|
275
284
|
const o = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), r = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
|
|
276
285
|
return o || r;
|
|
277
286
|
}
|
|
278
|
-
function
|
|
287
|
+
function Ve(t, n, o, r, a) {
|
|
279
288
|
const s = [n, o, ...r];
|
|
280
289
|
[].forEach.call(t.children, (i) => {
|
|
281
|
-
const c = !s.includes(i), d = !
|
|
290
|
+
const c = !s.includes(i), d = !Nt(i);
|
|
282
291
|
c && d && ie(i, a);
|
|
283
292
|
});
|
|
284
293
|
}
|
|
@@ -286,10 +295,10 @@ function Oe(t, n) {
|
|
|
286
295
|
let o = -1;
|
|
287
296
|
return t.some((r, a) => n(r) ? (o = a, !0) : !1), o;
|
|
288
297
|
}
|
|
289
|
-
function
|
|
298
|
+
function Ct(t, n) {
|
|
290
299
|
const o = [], r = t.container;
|
|
291
300
|
if (!n.disableScrollLock) {
|
|
292
|
-
if (
|
|
301
|
+
if (wt(r)) {
|
|
293
302
|
const i = Xe(Q(r));
|
|
294
303
|
o.push({
|
|
295
304
|
value: r.style.paddingRight,
|
|
@@ -336,13 +345,13 @@ function wt(t, n) {
|
|
|
336
345
|
});
|
|
337
346
|
};
|
|
338
347
|
}
|
|
339
|
-
function
|
|
348
|
+
function Mt(t) {
|
|
340
349
|
const n = [];
|
|
341
350
|
return [].forEach.call(t.children, (o) => {
|
|
342
351
|
o.getAttribute("aria-hidden") === "true" && n.push(o);
|
|
343
352
|
}), n;
|
|
344
353
|
}
|
|
345
|
-
class
|
|
354
|
+
class kt {
|
|
346
355
|
constructor() {
|
|
347
356
|
this.modals = [], this.containers = [];
|
|
348
357
|
}
|
|
@@ -351,8 +360,8 @@ class Mt {
|
|
|
351
360
|
if (r !== -1)
|
|
352
361
|
return r;
|
|
353
362
|
r = this.modals.length, this.modals.push(n), n.modalRef && ie(n.modalRef, !1);
|
|
354
|
-
const a =
|
|
355
|
-
|
|
363
|
+
const a = Mt(o);
|
|
364
|
+
Ve(o, n.mount, n.modalRef, a, !0);
|
|
356
365
|
const s = Oe(this.containers, (i) => i.container === o);
|
|
357
366
|
return s !== -1 ? (this.containers[s].modals.push(n), r) : (this.containers.push({
|
|
358
367
|
modals: [n],
|
|
@@ -363,7 +372,7 @@ class Mt {
|
|
|
363
372
|
}
|
|
364
373
|
mount(n, o) {
|
|
365
374
|
const r = Oe(this.containers, (s) => s.modals.includes(n)), a = this.containers[r];
|
|
366
|
-
a.restore || (a.restore =
|
|
375
|
+
a.restore || (a.restore = Ct(a, o));
|
|
367
376
|
}
|
|
368
377
|
remove(n, o = !0) {
|
|
369
378
|
const r = this.modals.indexOf(n);
|
|
@@ -371,7 +380,7 @@ class Mt {
|
|
|
371
380
|
return r;
|
|
372
381
|
const a = Oe(this.containers, (i) => i.modals.includes(n)), s = this.containers[a];
|
|
373
382
|
if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(r, 1), s.modals.length === 0)
|
|
374
|
-
s.restore && s.restore(), n.modalRef && ie(n.modalRef, o),
|
|
383
|
+
s.restore && s.restore(), n.modalRef && ie(n.modalRef, o), Ve(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(a, 1);
|
|
375
384
|
else {
|
|
376
385
|
const i = s.modals[s.modals.length - 1];
|
|
377
386
|
i.modalRef && ie(i.modalRef, !1);
|
|
@@ -382,33 +391,33 @@ class Mt {
|
|
|
382
391
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
383
392
|
}
|
|
384
393
|
}
|
|
385
|
-
const
|
|
386
|
-
function
|
|
394
|
+
const St = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
395
|
+
function jt(t) {
|
|
387
396
|
const n = parseInt(t.getAttribute("tabindex") || "", 10);
|
|
388
397
|
return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
|
|
389
398
|
}
|
|
390
|
-
function
|
|
399
|
+
function It(t) {
|
|
391
400
|
if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
|
|
392
401
|
return !1;
|
|
393
402
|
const n = (r) => t.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
394
403
|
let o = n(`[name="${t.name}"]:checked`);
|
|
395
404
|
return o || (o = n(`[name="${t.name}"]`)), o !== t;
|
|
396
405
|
}
|
|
397
|
-
function
|
|
398
|
-
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" ||
|
|
406
|
+
function Ft(t) {
|
|
407
|
+
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || It(t));
|
|
399
408
|
}
|
|
400
|
-
function
|
|
409
|
+
function Dt(t) {
|
|
401
410
|
const n = [], o = [];
|
|
402
|
-
return Array.from(t.querySelectorAll(
|
|
403
|
-
const s =
|
|
404
|
-
s === -1 || !
|
|
411
|
+
return Array.from(t.querySelectorAll(St)).forEach((r, a) => {
|
|
412
|
+
const s = jt(r);
|
|
413
|
+
s === -1 || !Ft(r) || (s === 0 ? n.push(r) : o.push({
|
|
405
414
|
documentOrder: a,
|
|
406
415
|
tabIndex: s,
|
|
407
416
|
node: r
|
|
408
417
|
}));
|
|
409
418
|
}), o.sort((r, a) => r.tabIndex === a.tabIndex ? r.documentOrder - a.documentOrder : r.tabIndex - a.tabIndex).map((r) => r.node).concat(n);
|
|
410
419
|
}
|
|
411
|
-
function
|
|
420
|
+
function Lt() {
|
|
412
421
|
return !0;
|
|
413
422
|
}
|
|
414
423
|
function ge(t) {
|
|
@@ -417,10 +426,10 @@ function ge(t) {
|
|
|
417
426
|
disableAutoFocus: o = !1,
|
|
418
427
|
disableEnforceFocus: r = !1,
|
|
419
428
|
disableRestoreFocus: a = !1,
|
|
420
|
-
getTabbable: s =
|
|
421
|
-
isEnabled: i =
|
|
429
|
+
getTabbable: s = Dt,
|
|
430
|
+
isEnabled: i = Lt,
|
|
422
431
|
open: c
|
|
423
|
-
} = t, d = u.useRef(!1), T = u.useRef(null), w = u.useRef(null), x = u.useRef(null),
|
|
432
|
+
} = t, d = u.useRef(!1), T = u.useRef(null), w = u.useRef(null), x = u.useRef(null), C = u.useRef(null), h = u.useRef(!1), b = u.useRef(null), I = Z(Ee(n), b), M = u.useRef(null);
|
|
424
433
|
u.useEffect(() => {
|
|
425
434
|
!c || !b.current || (h.current = !o);
|
|
426
435
|
}, [o, c]), u.useEffect(() => {
|
|
@@ -435,9 +444,9 @@ function ge(t) {
|
|
|
435
444
|
if (!c || !b.current)
|
|
436
445
|
return;
|
|
437
446
|
const l = q(b.current), f = (R) => {
|
|
438
|
-
|
|
447
|
+
M.current = R, !(r || !i() || R.key !== "Tab") && l.activeElement === b.current && R.shiftKey && (d.current = !0, w.current && w.current.focus());
|
|
439
448
|
}, y = () => {
|
|
440
|
-
var S,
|
|
449
|
+
var S, V;
|
|
441
450
|
const R = b.current;
|
|
442
451
|
if (R === null)
|
|
443
452
|
return;
|
|
@@ -447,16 +456,16 @@ function ge(t) {
|
|
|
447
456
|
}
|
|
448
457
|
if (R.contains(l.activeElement) || r && l.activeElement !== T.current && l.activeElement !== w.current)
|
|
449
458
|
return;
|
|
450
|
-
if (l.activeElement !==
|
|
451
|
-
|
|
452
|
-
else if (
|
|
459
|
+
if (l.activeElement !== C.current)
|
|
460
|
+
C.current = null;
|
|
461
|
+
else if (C.current !== null)
|
|
453
462
|
return;
|
|
454
463
|
if (!h.current)
|
|
455
464
|
return;
|
|
456
465
|
let E = [];
|
|
457
466
|
if ((l.activeElement === T.current || l.activeElement === w.current) && (E = s(b.current)), E.length > 0) {
|
|
458
|
-
const L = !!((S =
|
|
459
|
-
typeof
|
|
467
|
+
const L = !!((S = M.current) != null && S.shiftKey && ((V = M.current) == null ? void 0 : V.key) === "Tab"), $ = E[0], U = E[E.length - 1];
|
|
468
|
+
typeof $ != "string" && typeof U != "string" && (L ? U.focus() : $.focus());
|
|
460
469
|
} else
|
|
461
470
|
R.focus();
|
|
462
471
|
};
|
|
@@ -469,7 +478,7 @@ function ge(t) {
|
|
|
469
478
|
};
|
|
470
479
|
}, [o, r, a, i, c, s]);
|
|
471
480
|
const g = (l) => {
|
|
472
|
-
x.current === null && (x.current = l.relatedTarget), h.current = !0,
|
|
481
|
+
x.current === null && (x.current = l.relatedTarget), h.current = !0, C.current = l.target;
|
|
473
482
|
const f = n.props.onFocus;
|
|
474
483
|
f && f(l);
|
|
475
484
|
}, O = (l) => {
|
|
@@ -482,7 +491,7 @@ function ge(t) {
|
|
|
482
491
|
ref: T,
|
|
483
492
|
"data-testid": "sentinelStart"
|
|
484
493
|
}), /* @__PURE__ */ u.cloneElement(n, {
|
|
485
|
-
ref:
|
|
494
|
+
ref: I,
|
|
486
495
|
onFocus: g
|
|
487
496
|
}), /* @__PURE__ */ A.jsx("div", {
|
|
488
497
|
tabIndex: c ? 0 : -1,
|
|
@@ -546,8 +555,8 @@ process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
|
546
555
|
*/
|
|
547
556
|
open: e.bool.isRequired
|
|
548
557
|
});
|
|
549
|
-
process.env.NODE_ENV !== "production" && (ge.propTypes =
|
|
550
|
-
function
|
|
558
|
+
process.env.NODE_ENV !== "production" && (ge.propTypes = Ge(ge.propTypes));
|
|
559
|
+
function At(t) {
|
|
551
560
|
return typeof t == "function" ? t() : t;
|
|
552
561
|
}
|
|
553
562
|
const ye = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
@@ -557,7 +566,7 @@ const ye = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
557
566
|
disablePortal: s = !1
|
|
558
567
|
} = n, [i, c] = u.useState(null), d = Z(/* @__PURE__ */ u.isValidElement(r) ? Ee(r) : null, o);
|
|
559
568
|
if (Ne(() => {
|
|
560
|
-
s || c(
|
|
569
|
+
s || c(At(a) || document.body);
|
|
561
570
|
}, [a, s]), Ne(() => {
|
|
562
571
|
if (i && !s)
|
|
563
572
|
return Le(o, i), () => {
|
|
@@ -600,8 +609,8 @@ process.env.NODE_ENV !== "production" && (ye.propTypes = {
|
|
|
600
609
|
*/
|
|
601
610
|
disablePortal: e.bool
|
|
602
611
|
});
|
|
603
|
-
process.env.NODE_ENV !== "production" && (ye.propTypes =
|
|
604
|
-
const
|
|
612
|
+
process.env.NODE_ENV !== "production" && (ye.propTypes = Ge(ye.propTypes));
|
|
613
|
+
const Vt = {
|
|
605
614
|
entering: {
|
|
606
615
|
opacity: 1
|
|
607
616
|
},
|
|
@@ -609,7 +618,7 @@ const Lt = {
|
|
|
609
618
|
opacity: 1
|
|
610
619
|
}
|
|
611
620
|
}, Je = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
612
|
-
const r =
|
|
621
|
+
const r = qe(), a = {
|
|
613
622
|
enter: r.transitions.duration.enteringScreen,
|
|
614
623
|
exit: r.transitions.duration.leavingScreen
|
|
615
624
|
}, {
|
|
@@ -620,41 +629,41 @@ const Lt = {
|
|
|
620
629
|
in: T,
|
|
621
630
|
onEnter: w,
|
|
622
631
|
onEntered: x,
|
|
623
|
-
onEntering:
|
|
632
|
+
onEntering: C,
|
|
624
633
|
onExit: h,
|
|
625
634
|
onExited: b,
|
|
626
|
-
onExiting:
|
|
627
|
-
style:
|
|
635
|
+
onExiting: I,
|
|
636
|
+
style: M,
|
|
628
637
|
timeout: g = a,
|
|
629
638
|
// eslint-disable-next-line react/prop-types
|
|
630
|
-
TransitionComponent: O =
|
|
639
|
+
TransitionComponent: O = ze,
|
|
631
640
|
...l
|
|
632
|
-
} = n, f = u.useRef(null), y = Z(f, Ee(c), o), N = (
|
|
633
|
-
if (
|
|
641
|
+
} = n, f = u.useRef(null), y = Z(f, Ee(c), o), N = (k) => (p) => {
|
|
642
|
+
if (k) {
|
|
634
643
|
const m = f.current;
|
|
635
|
-
p === void 0 ?
|
|
644
|
+
p === void 0 ? k(m) : k(m, p);
|
|
636
645
|
}
|
|
637
|
-
}, R = N(
|
|
638
|
-
|
|
646
|
+
}, R = N(C), E = N((k, p) => {
|
|
647
|
+
We(k);
|
|
639
648
|
const m = he({
|
|
640
|
-
style:
|
|
649
|
+
style: M,
|
|
641
650
|
timeout: g,
|
|
642
651
|
easing: d
|
|
643
652
|
}, {
|
|
644
653
|
mode: "enter"
|
|
645
654
|
});
|
|
646
|
-
|
|
647
|
-
}), S = N(x),
|
|
655
|
+
k.style.webkitTransition = r.transitions.create("opacity", m), k.style.transition = r.transitions.create("opacity", m), w && w(k, p);
|
|
656
|
+
}), S = N(x), V = N(I), L = N((k) => {
|
|
648
657
|
const p = he({
|
|
649
|
-
style:
|
|
658
|
+
style: M,
|
|
650
659
|
timeout: g,
|
|
651
660
|
easing: d
|
|
652
661
|
}, {
|
|
653
662
|
mode: "exit"
|
|
654
663
|
});
|
|
655
|
-
|
|
656
|
-
}),
|
|
657
|
-
s && s(f.current,
|
|
664
|
+
k.style.webkitTransition = r.transitions.create("opacity", p), k.style.transition = r.transitions.create("opacity", p), h && h(k);
|
|
665
|
+
}), $ = N(b), U = (k) => {
|
|
666
|
+
s && s(f.current, k);
|
|
658
667
|
};
|
|
659
668
|
return /* @__PURE__ */ A.jsx(O, {
|
|
660
669
|
appear: i,
|
|
@@ -664,20 +673,20 @@ const Lt = {
|
|
|
664
673
|
onEntered: S,
|
|
665
674
|
onEntering: R,
|
|
666
675
|
onExit: L,
|
|
667
|
-
onExited:
|
|
668
|
-
onExiting:
|
|
669
|
-
addEndListener:
|
|
676
|
+
onExited: $,
|
|
677
|
+
onExiting: V,
|
|
678
|
+
addEndListener: U,
|
|
670
679
|
timeout: g,
|
|
671
680
|
...l,
|
|
672
|
-
children: (
|
|
681
|
+
children: (k, {
|
|
673
682
|
ownerState: p,
|
|
674
683
|
...m
|
|
675
684
|
}) => /* @__PURE__ */ u.cloneElement(c, {
|
|
676
685
|
style: {
|
|
677
686
|
opacity: 0,
|
|
678
|
-
visibility:
|
|
679
|
-
...
|
|
680
|
-
...
|
|
687
|
+
visibility: k === "exited" && !T ? "hidden" : void 0,
|
|
688
|
+
...Vt[k],
|
|
689
|
+
...M,
|
|
681
690
|
...c.props.style
|
|
682
691
|
},
|
|
683
692
|
ref: y,
|
|
@@ -760,19 +769,19 @@ process.env.NODE_ENV !== "production" && (Je.propTypes = {
|
|
|
760
769
|
exit: e.number
|
|
761
770
|
})])
|
|
762
771
|
});
|
|
763
|
-
function
|
|
772
|
+
function Kt(t) {
|
|
764
773
|
return ue("MuiBackdrop", t);
|
|
765
774
|
}
|
|
766
775
|
pe("MuiBackdrop", ["root", "invisible"]);
|
|
767
|
-
const
|
|
776
|
+
const $t = (t) => {
|
|
768
777
|
const {
|
|
769
778
|
classes: n,
|
|
770
779
|
invisible: o
|
|
771
780
|
} = t;
|
|
772
781
|
return le({
|
|
773
782
|
root: ["root", o && "invisible"]
|
|
774
|
-
},
|
|
775
|
-
},
|
|
783
|
+
}, Kt, n);
|
|
784
|
+
}, Bt = G("div", {
|
|
776
785
|
name: "MuiBackdrop",
|
|
777
786
|
slot: "Root",
|
|
778
787
|
overridesResolver: (t, n) => {
|
|
@@ -813,18 +822,18 @@ const Kt = (t) => {
|
|
|
813
822
|
components: T = {},
|
|
814
823
|
componentsProps: w = {},
|
|
815
824
|
slotProps: x = {},
|
|
816
|
-
slots:
|
|
825
|
+
slots: C = {},
|
|
817
826
|
TransitionComponent: h,
|
|
818
827
|
transitionDuration: b,
|
|
819
|
-
...
|
|
820
|
-
} = r,
|
|
828
|
+
...I
|
|
829
|
+
} = r, M = {
|
|
821
830
|
...r,
|
|
822
831
|
component: i,
|
|
823
832
|
invisible: c
|
|
824
|
-
}, g =
|
|
833
|
+
}, g = $t(M), O = {
|
|
825
834
|
transition: h,
|
|
826
835
|
root: T.Root,
|
|
827
|
-
...
|
|
836
|
+
...C
|
|
828
837
|
}, l = {
|
|
829
838
|
...w,
|
|
830
839
|
...x
|
|
@@ -833,19 +842,19 @@ const Kt = (t) => {
|
|
|
833
842
|
slots: O,
|
|
834
843
|
slotProps: l
|
|
835
844
|
}, [y, N] = W("root", {
|
|
836
|
-
elementType:
|
|
845
|
+
elementType: Bt,
|
|
837
846
|
externalForwardedProps: f,
|
|
838
847
|
className: ne(g.root, s),
|
|
839
|
-
ownerState:
|
|
848
|
+
ownerState: M
|
|
840
849
|
}), [R, E] = W("transition", {
|
|
841
850
|
elementType: Je,
|
|
842
851
|
externalForwardedProps: f,
|
|
843
|
-
ownerState:
|
|
852
|
+
ownerState: M
|
|
844
853
|
});
|
|
845
854
|
return /* @__PURE__ */ A.jsx(R, {
|
|
846
855
|
in: d,
|
|
847
856
|
timeout: b,
|
|
848
|
-
...
|
|
857
|
+
...I,
|
|
849
858
|
...E,
|
|
850
859
|
children: /* @__PURE__ */ A.jsx(y, {
|
|
851
860
|
"aria-hidden": !0,
|
|
@@ -946,15 +955,15 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
|
946
955
|
exit: e.number
|
|
947
956
|
})])
|
|
948
957
|
});
|
|
949
|
-
function
|
|
958
|
+
function Ut(t) {
|
|
950
959
|
return typeof t == "function" ? t() : t;
|
|
951
960
|
}
|
|
952
|
-
function
|
|
961
|
+
function _t(t) {
|
|
953
962
|
return t ? t.props.hasOwnProperty("in") : !1;
|
|
954
963
|
}
|
|
955
|
-
const
|
|
956
|
-
}, me = new
|
|
957
|
-
function
|
|
964
|
+
const Ke = () => {
|
|
965
|
+
}, me = new kt();
|
|
966
|
+
function Ht(t) {
|
|
958
967
|
const {
|
|
959
968
|
container: n,
|
|
960
969
|
disableEscapeKeyDown: o = !1,
|
|
@@ -966,18 +975,18 @@ function $t(t) {
|
|
|
966
975
|
onClose: d,
|
|
967
976
|
open: T,
|
|
968
977
|
rootRef: w
|
|
969
|
-
} = t, x = u.useRef({}),
|
|
978
|
+
} = t, x = u.useRef({}), C = u.useRef(null), h = u.useRef(null), b = Z(h, w), [I, M] = u.useState(!T), g = _t(c);
|
|
970
979
|
let O = !0;
|
|
971
980
|
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (O = !1);
|
|
972
|
-
const l = () => q(
|
|
981
|
+
const l = () => q(C.current), f = () => (x.current.modalRef = h.current, x.current.mount = C.current, x.current), y = () => {
|
|
973
982
|
me.mount(f(), {
|
|
974
983
|
disableScrollLock: r
|
|
975
984
|
}), h.current && (h.current.scrollTop = 0);
|
|
976
985
|
}, N = Fe(() => {
|
|
977
|
-
const p =
|
|
986
|
+
const p = Ut(n) || l().body;
|
|
978
987
|
me.add(f(), p), h.current && y();
|
|
979
988
|
}), R = () => me.isTopModal(f()), E = Fe((p) => {
|
|
980
|
-
|
|
989
|
+
C.current = p, p && (T && R() ? y() : h.current && ie(h.current, O));
|
|
981
990
|
}), S = u.useCallback(() => {
|
|
982
991
|
me.remove(f(), O);
|
|
983
992
|
}, [O]);
|
|
@@ -986,7 +995,7 @@ function $t(t) {
|
|
|
986
995
|
}, [S]), u.useEffect(() => {
|
|
987
996
|
T ? N() : (!g || !a) && S();
|
|
988
997
|
}, [T, S, g, a, N]);
|
|
989
|
-
const
|
|
998
|
+
const V = (p) => (m) => {
|
|
990
999
|
var F;
|
|
991
1000
|
(F = p.onKeyDown) == null || F.call(p, m), !(m.key !== "Escape" || m.which === 229 || // Wait until IME is settled.
|
|
992
1001
|
!R()) && (o || (m.stopPropagation(), d && d(m, "escapeKeyDown")));
|
|
@@ -996,7 +1005,7 @@ function $t(t) {
|
|
|
996
1005
|
};
|
|
997
1006
|
return {
|
|
998
1007
|
getRootProps: (p = {}) => {
|
|
999
|
-
const m =
|
|
1008
|
+
const m = lt(t);
|
|
1000
1009
|
delete m.onTransitionEnter, delete m.onTransitionExited;
|
|
1001
1010
|
const F = {
|
|
1002
1011
|
...m,
|
|
@@ -1011,7 +1020,7 @@ function $t(t) {
|
|
|
1011
1020
|
*/
|
|
1012
1021
|
role: "presentation",
|
|
1013
1022
|
...F,
|
|
1014
|
-
onKeyDown:
|
|
1023
|
+
onKeyDown: V(F),
|
|
1015
1024
|
ref: b
|
|
1016
1025
|
};
|
|
1017
1026
|
},
|
|
@@ -1026,27 +1035,27 @@ function $t(t) {
|
|
|
1026
1035
|
},
|
|
1027
1036
|
getTransitionProps: () => {
|
|
1028
1037
|
const p = () => {
|
|
1029
|
-
|
|
1038
|
+
M(!1), s && s();
|
|
1030
1039
|
}, m = () => {
|
|
1031
|
-
|
|
1040
|
+
M(!0), i && i(), a && S();
|
|
1032
1041
|
};
|
|
1033
1042
|
return {
|
|
1034
|
-
onEnter: De(p, (c == null ? void 0 : c.props.onEnter) ??
|
|
1035
|
-
onExited: De(m, (c == null ? void 0 : c.props.onExited) ??
|
|
1043
|
+
onEnter: De(p, (c == null ? void 0 : c.props.onEnter) ?? Ke),
|
|
1044
|
+
onExited: De(m, (c == null ? void 0 : c.props.onExited) ?? Ke)
|
|
1036
1045
|
};
|
|
1037
1046
|
},
|
|
1038
1047
|
rootRef: b,
|
|
1039
1048
|
portalRef: E,
|
|
1040
1049
|
isTopModal: R,
|
|
1041
|
-
exited:
|
|
1050
|
+
exited: I,
|
|
1042
1051
|
hasTransition: g
|
|
1043
1052
|
};
|
|
1044
1053
|
}
|
|
1045
|
-
function
|
|
1054
|
+
function zt(t) {
|
|
1046
1055
|
return ue("MuiModal", t);
|
|
1047
1056
|
}
|
|
1048
1057
|
pe("MuiModal", ["root", "hidden", "backdrop"]);
|
|
1049
|
-
const
|
|
1058
|
+
const qt = (t) => {
|
|
1050
1059
|
const {
|
|
1051
1060
|
open: n,
|
|
1052
1061
|
exited: o,
|
|
@@ -1055,8 +1064,8 @@ const _t = (t) => {
|
|
|
1055
1064
|
return le({
|
|
1056
1065
|
root: ["root", !n && o && "hidden"],
|
|
1057
1066
|
backdrop: ["backdrop"]
|
|
1058
|
-
},
|
|
1059
|
-
},
|
|
1067
|
+
}, zt, r);
|
|
1068
|
+
}, Wt = G("div", {
|
|
1060
1069
|
name: "MuiModal",
|
|
1061
1070
|
slot: "Root",
|
|
1062
1071
|
overridesResolver: (t, n) => {
|
|
@@ -1082,7 +1091,7 @@ const _t = (t) => {
|
|
|
1082
1091
|
visibility: "hidden"
|
|
1083
1092
|
}
|
|
1084
1093
|
}]
|
|
1085
|
-
}))),
|
|
1094
|
+
}))), Gt = G(Qe, {
|
|
1086
1095
|
name: "MuiModal",
|
|
1087
1096
|
slot: "Backdrop"
|
|
1088
1097
|
})({
|
|
@@ -1092,7 +1101,7 @@ const _t = (t) => {
|
|
|
1092
1101
|
name: "MuiModal",
|
|
1093
1102
|
props: n
|
|
1094
1103
|
}), {
|
|
1095
|
-
BackdropComponent: a =
|
|
1104
|
+
BackdropComponent: a = Gt,
|
|
1096
1105
|
BackdropProps: s,
|
|
1097
1106
|
classes: i,
|
|
1098
1107
|
className: c,
|
|
@@ -1100,11 +1109,11 @@ const _t = (t) => {
|
|
|
1100
1109
|
children: T,
|
|
1101
1110
|
container: w,
|
|
1102
1111
|
component: x,
|
|
1103
|
-
components:
|
|
1112
|
+
components: C = {},
|
|
1104
1113
|
componentsProps: h = {},
|
|
1105
1114
|
disableAutoFocus: b = !1,
|
|
1106
|
-
disableEnforceFocus:
|
|
1107
|
-
disableEscapeKeyDown:
|
|
1115
|
+
disableEnforceFocus: I = !1,
|
|
1116
|
+
disableEscapeKeyDown: M = !1,
|
|
1108
1117
|
disablePortal: g = !1,
|
|
1109
1118
|
disableRestoreFocus: O = !1,
|
|
1110
1119
|
disableScrollLock: l = !1,
|
|
@@ -1114,17 +1123,17 @@ const _t = (t) => {
|
|
|
1114
1123
|
onTransitionEnter: R,
|
|
1115
1124
|
onTransitionExited: E,
|
|
1116
1125
|
open: S,
|
|
1117
|
-
slotProps:
|
|
1126
|
+
slotProps: V = {},
|
|
1118
1127
|
slots: L = {},
|
|
1119
1128
|
// eslint-disable-next-line react/prop-types
|
|
1120
|
-
theme:
|
|
1121
|
-
|
|
1122
|
-
} = r,
|
|
1129
|
+
theme: $,
|
|
1130
|
+
...U
|
|
1131
|
+
} = r, k = {
|
|
1123
1132
|
...r,
|
|
1124
1133
|
closeAfterTransition: d,
|
|
1125
1134
|
disableAutoFocus: b,
|
|
1126
|
-
disableEnforceFocus:
|
|
1127
|
-
disableEscapeKeyDown:
|
|
1135
|
+
disableEnforceFocus: I,
|
|
1136
|
+
disableEscapeKeyDown: M,
|
|
1128
1137
|
disablePortal: g,
|
|
1129
1138
|
disableRestoreFocus: O,
|
|
1130
1139
|
disableScrollLock: l,
|
|
@@ -1134,45 +1143,45 @@ const _t = (t) => {
|
|
|
1134
1143
|
getRootProps: p,
|
|
1135
1144
|
getBackdropProps: m,
|
|
1136
1145
|
getTransitionProps: F,
|
|
1137
|
-
portalRef:
|
|
1146
|
+
portalRef: B,
|
|
1138
1147
|
isTopModal: v,
|
|
1139
1148
|
exited: D,
|
|
1140
1149
|
hasTransition: Y
|
|
1141
|
-
} =
|
|
1142
|
-
...
|
|
1150
|
+
} = Ht({
|
|
1151
|
+
...k,
|
|
1143
1152
|
rootRef: o
|
|
1144
1153
|
}), X = {
|
|
1145
|
-
...
|
|
1154
|
+
...k,
|
|
1146
1155
|
exited: D
|
|
1147
|
-
},
|
|
1156
|
+
}, _ = qt(X), J = {};
|
|
1148
1157
|
if (T.props.tabIndex === void 0 && (J.tabIndex = "-1"), Y) {
|
|
1149
1158
|
const {
|
|
1150
1159
|
onEnter: P,
|
|
1151
|
-
onExited:
|
|
1160
|
+
onExited: j
|
|
1152
1161
|
} = F();
|
|
1153
|
-
J.onEnter = P, J.onExited =
|
|
1162
|
+
J.onEnter = P, J.onExited = j;
|
|
1154
1163
|
}
|
|
1155
1164
|
const fe = {
|
|
1156
1165
|
slots: {
|
|
1157
|
-
root:
|
|
1158
|
-
backdrop:
|
|
1166
|
+
root: C.Root,
|
|
1167
|
+
backdrop: C.Backdrop,
|
|
1159
1168
|
...L
|
|
1160
1169
|
},
|
|
1161
1170
|
slotProps: {
|
|
1162
1171
|
...h,
|
|
1163
|
-
...
|
|
1172
|
+
...V
|
|
1164
1173
|
}
|
|
1165
1174
|
}, [Te, Pe] = W("root", {
|
|
1166
1175
|
ref: o,
|
|
1167
|
-
elementType:
|
|
1176
|
+
elementType: Wt,
|
|
1168
1177
|
externalForwardedProps: {
|
|
1169
1178
|
...fe,
|
|
1170
|
-
|
|
1179
|
+
...U,
|
|
1171
1180
|
component: x
|
|
1172
1181
|
},
|
|
1173
1182
|
getSlotProps: p,
|
|
1174
1183
|
ownerState: X,
|
|
1175
|
-
className: ne(c,
|
|
1184
|
+
className: ne(c, _ == null ? void 0 : _.root, !X.open && X.exited && (_ == null ? void 0 : _.hidden))
|
|
1176
1185
|
}), [xe, ve] = W("backdrop", {
|
|
1177
1186
|
ref: s == null ? void 0 : s.ref,
|
|
1178
1187
|
elementType: a,
|
|
@@ -1181,15 +1190,15 @@ const _t = (t) => {
|
|
|
1181
1190
|
additionalProps: s,
|
|
1182
1191
|
getSlotProps: (P) => m({
|
|
1183
1192
|
...P,
|
|
1184
|
-
onClick: (
|
|
1185
|
-
P != null && P.onClick && P.onClick(
|
|
1193
|
+
onClick: (j) => {
|
|
1194
|
+
P != null && P.onClick && P.onClick(j);
|
|
1186
1195
|
}
|
|
1187
1196
|
}),
|
|
1188
|
-
className: ne(s == null ? void 0 : s.className,
|
|
1197
|
+
className: ne(s == null ? void 0 : s.className, _ == null ? void 0 : _.backdrop),
|
|
1189
1198
|
ownerState: X
|
|
1190
1199
|
});
|
|
1191
1200
|
return !y && !S && (!Y || D) ? null : /* @__PURE__ */ A.jsx(ye, {
|
|
1192
|
-
ref:
|
|
1201
|
+
ref: B,
|
|
1193
1202
|
container: w,
|
|
1194
1203
|
disablePortal: g,
|
|
1195
1204
|
children: /* @__PURE__ */ A.jsxs(Te, {
|
|
@@ -1197,7 +1206,7 @@ const _t = (t) => {
|
|
|
1197
1206
|
children: [!f && a ? /* @__PURE__ */ A.jsx(xe, {
|
|
1198
1207
|
...ve
|
|
1199
1208
|
}) : null, /* @__PURE__ */ A.jsx(ge, {
|
|
1200
|
-
disableEnforceFocus:
|
|
1209
|
+
disableEnforceFocus: I,
|
|
1201
1210
|
disableAutoFocus: b,
|
|
1202
1211
|
disableRestoreFocus: O,
|
|
1203
1212
|
isEnabled: v,
|
|
@@ -1378,33 +1387,33 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
|
1378
1387
|
*/
|
|
1379
1388
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1380
1389
|
});
|
|
1381
|
-
function
|
|
1390
|
+
function Yt(t) {
|
|
1382
1391
|
return ue("MuiPopover", t);
|
|
1383
1392
|
}
|
|
1384
1393
|
pe("MuiPopover", ["root", "paper"]);
|
|
1385
|
-
function
|
|
1394
|
+
function $e(t, n) {
|
|
1386
1395
|
let o = 0;
|
|
1387
1396
|
return typeof n == "number" ? o = n : n === "center" ? o = t.height / 2 : n === "bottom" && (o = t.height), o;
|
|
1388
1397
|
}
|
|
1389
|
-
function
|
|
1398
|
+
function Be(t, n) {
|
|
1390
1399
|
let o = 0;
|
|
1391
1400
|
return typeof n == "number" ? o = n : n === "center" ? o = t.width / 2 : n === "right" && (o = t.width), o;
|
|
1392
1401
|
}
|
|
1393
|
-
function
|
|
1402
|
+
function Ue(t) {
|
|
1394
1403
|
return [t.horizontal, t.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
|
1395
1404
|
}
|
|
1396
1405
|
function se(t) {
|
|
1397
1406
|
return typeof t == "function" ? t() : t;
|
|
1398
1407
|
}
|
|
1399
|
-
const
|
|
1408
|
+
const Xt = (t) => {
|
|
1400
1409
|
const {
|
|
1401
1410
|
classes: n
|
|
1402
1411
|
} = t;
|
|
1403
1412
|
return le({
|
|
1404
1413
|
root: ["root"],
|
|
1405
1414
|
paper: ["paper"]
|
|
1406
|
-
},
|
|
1407
|
-
},
|
|
1415
|
+
}, Yt, n);
|
|
1416
|
+
}, Jt = G(Ze, {
|
|
1408
1417
|
name: "MuiPopover",
|
|
1409
1418
|
slot: "Root"
|
|
1410
1419
|
})({}), et = G(bt, {
|
|
@@ -1438,12 +1447,12 @@ const Gt = (t) => {
|
|
|
1438
1447
|
children: T,
|
|
1439
1448
|
className: w,
|
|
1440
1449
|
container: x,
|
|
1441
|
-
elevation:
|
|
1450
|
+
elevation: C = 8,
|
|
1442
1451
|
marginThreshold: h = 16,
|
|
1443
1452
|
open: b,
|
|
1444
|
-
PaperProps:
|
|
1453
|
+
PaperProps: I = {},
|
|
1445
1454
|
// TODO: remove in v7
|
|
1446
|
-
slots:
|
|
1455
|
+
slots: M = {},
|
|
1447
1456
|
slotProps: g = {},
|
|
1448
1457
|
transformOrigin: O = {
|
|
1449
1458
|
vertical: "top",
|
|
@@ -1460,73 +1469,73 @@ const Gt = (t) => {
|
|
|
1460
1469
|
...r,
|
|
1461
1470
|
anchorOrigin: i,
|
|
1462
1471
|
anchorReference: d,
|
|
1463
|
-
elevation:
|
|
1472
|
+
elevation: C,
|
|
1464
1473
|
marginThreshold: h,
|
|
1465
1474
|
transformOrigin: O,
|
|
1466
1475
|
TransitionComponent: l,
|
|
1467
1476
|
transitionDuration: f,
|
|
1468
1477
|
TransitionProps: y
|
|
1469
|
-
},
|
|
1478
|
+
}, V = Xt(S), L = u.useCallback(() => {
|
|
1470
1479
|
if (d === "anchorPosition")
|
|
1471
1480
|
return process.env.NODE_ENV !== "production" && (c || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), c;
|
|
1472
|
-
const P = se(s),
|
|
1481
|
+
const P = se(s), j = P && P.nodeType === 1 ? P : q(E.current).body, K = j.getBoundingClientRect();
|
|
1473
1482
|
if (process.env.NODE_ENV !== "production") {
|
|
1474
|
-
const z =
|
|
1483
|
+
const z = j.getBoundingClientRect();
|
|
1475
1484
|
process.env.NODE_ENV !== "test" && z.top === 0 && z.left === 0 && z.right === 0 && z.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(`
|
|
1476
1485
|
`));
|
|
1477
1486
|
}
|
|
1478
1487
|
return {
|
|
1479
|
-
top:
|
|
1480
|
-
left:
|
|
1488
|
+
top: K.top + $e(K, i.vertical),
|
|
1489
|
+
left: K.left + Be(K, i.horizontal)
|
|
1481
1490
|
};
|
|
1482
|
-
}, [s, i.horizontal, i.vertical, c, d]),
|
|
1483
|
-
vertical:
|
|
1484
|
-
horizontal:
|
|
1485
|
-
}), [O.horizontal, O.vertical]),
|
|
1486
|
-
const
|
|
1491
|
+
}, [s, i.horizontal, i.vertical, c, d]), $ = u.useCallback((P) => ({
|
|
1492
|
+
vertical: $e(P, O.vertical),
|
|
1493
|
+
horizontal: Be(P, O.horizontal)
|
|
1494
|
+
}), [O.horizontal, O.vertical]), U = u.useCallback((P) => {
|
|
1495
|
+
const j = {
|
|
1487
1496
|
width: P.offsetWidth,
|
|
1488
1497
|
height: P.offsetHeight
|
|
1489
|
-
},
|
|
1498
|
+
}, K = $(j);
|
|
1490
1499
|
if (d === "none")
|
|
1491
1500
|
return {
|
|
1492
1501
|
top: null,
|
|
1493
1502
|
left: null,
|
|
1494
|
-
transformOrigin:
|
|
1503
|
+
transformOrigin: Ue(K)
|
|
1495
1504
|
};
|
|
1496
1505
|
const z = L();
|
|
1497
|
-
let ee = z.top -
|
|
1498
|
-
const
|
|
1506
|
+
let ee = z.top - K.vertical, te = z.left - K.horizontal;
|
|
1507
|
+
const ke = ee + j.height, Se = te + j.width, je = Q(se(s)), oe = je.innerHeight - h, Ie = je.innerWidth - h;
|
|
1499
1508
|
if (h !== null && ee < h) {
|
|
1500
|
-
const
|
|
1501
|
-
ee -=
|
|
1502
|
-
} else if (h !== null &&
|
|
1503
|
-
const
|
|
1504
|
-
ee -=
|
|
1509
|
+
const H = ee - h;
|
|
1510
|
+
ee -= H, K.vertical += H;
|
|
1511
|
+
} else if (h !== null && ke > oe) {
|
|
1512
|
+
const H = ke - oe;
|
|
1513
|
+
ee -= H, K.vertical += H;
|
|
1505
1514
|
}
|
|
1506
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1515
|
+
if (process.env.NODE_ENV !== "production" && j.height > oe && j.height && oe && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${j.height - oe}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
1507
1516
|
`)), h !== null && te < h) {
|
|
1508
|
-
const
|
|
1509
|
-
te -=
|
|
1510
|
-
} else if (Se >
|
|
1511
|
-
const
|
|
1512
|
-
te -=
|
|
1517
|
+
const H = te - h;
|
|
1518
|
+
te -= H, K.horizontal += H;
|
|
1519
|
+
} else if (Se > Ie) {
|
|
1520
|
+
const H = Se - Ie;
|
|
1521
|
+
te -= H, K.horizontal += H;
|
|
1513
1522
|
}
|
|
1514
1523
|
return {
|
|
1515
1524
|
top: `${Math.round(ee)}px`,
|
|
1516
1525
|
left: `${Math.round(te)}px`,
|
|
1517
|
-
transformOrigin:
|
|
1526
|
+
transformOrigin: Ue(K)
|
|
1518
1527
|
};
|
|
1519
|
-
}, [s, d, L,
|
|
1528
|
+
}, [s, d, L, $, h]), [k, p] = u.useState(b), m = u.useCallback(() => {
|
|
1520
1529
|
const P = E.current;
|
|
1521
1530
|
if (!P)
|
|
1522
1531
|
return;
|
|
1523
|
-
const
|
|
1524
|
-
|
|
1525
|
-
}, [
|
|
1532
|
+
const j = U(P);
|
|
1533
|
+
j.top !== null && P.style.setProperty("top", j.top), j.left !== null && (P.style.left = j.left), P.style.transformOrigin = j.transformOrigin, p(!0);
|
|
1534
|
+
}, [U]);
|
|
1526
1535
|
u.useEffect(() => (N && window.addEventListener("scroll", m), () => window.removeEventListener("scroll", m)), [s, N, m]);
|
|
1527
1536
|
const F = () => {
|
|
1528
1537
|
m();
|
|
1529
|
-
},
|
|
1538
|
+
}, B = () => {
|
|
1530
1539
|
p(!1);
|
|
1531
1540
|
};
|
|
1532
1541
|
u.useEffect(() => {
|
|
@@ -1538,22 +1547,22 @@ const Gt = (t) => {
|
|
|
1538
1547
|
} : null, [b, m]), u.useEffect(() => {
|
|
1539
1548
|
if (!b)
|
|
1540
1549
|
return;
|
|
1541
|
-
const P =
|
|
1550
|
+
const P = vt(() => {
|
|
1542
1551
|
m();
|
|
1543
|
-
}),
|
|
1544
|
-
return
|
|
1545
|
-
P.clear(),
|
|
1552
|
+
}), j = Q(se(s));
|
|
1553
|
+
return j.addEventListener("resize", P), () => {
|
|
1554
|
+
P.clear(), j.removeEventListener("resize", P);
|
|
1546
1555
|
};
|
|
1547
1556
|
}, [s, b, m]);
|
|
1548
1557
|
let v = f;
|
|
1549
1558
|
const D = {
|
|
1550
1559
|
slots: {
|
|
1551
1560
|
transition: l,
|
|
1552
|
-
...
|
|
1561
|
+
...M
|
|
1553
1562
|
},
|
|
1554
1563
|
slotProps: {
|
|
1555
1564
|
transition: y,
|
|
1556
|
-
paper:
|
|
1565
|
+
paper: I,
|
|
1557
1566
|
...g
|
|
1558
1567
|
}
|
|
1559
1568
|
}, [Y, X] = W("transition", {
|
|
@@ -1562,13 +1571,13 @@ const Gt = (t) => {
|
|
|
1562
1571
|
ownerState: S,
|
|
1563
1572
|
getSlotProps: (P) => ({
|
|
1564
1573
|
...P,
|
|
1565
|
-
onEntering: (
|
|
1574
|
+
onEntering: (j, K) => {
|
|
1566
1575
|
var z;
|
|
1567
|
-
(z = P.onEntering) == null || z.call(P,
|
|
1576
|
+
(z = P.onEntering) == null || z.call(P, j, K), F();
|
|
1568
1577
|
},
|
|
1569
|
-
onExited: (
|
|
1570
|
-
var
|
|
1571
|
-
(
|
|
1578
|
+
onExited: (j) => {
|
|
1579
|
+
var K;
|
|
1580
|
+
(K = P.onExited) == null || K.call(P, j), B();
|
|
1572
1581
|
}
|
|
1573
1582
|
}),
|
|
1574
1583
|
additionalProps: {
|
|
@@ -1577,13 +1586,13 @@ const Gt = (t) => {
|
|
|
1577
1586
|
}
|
|
1578
1587
|
});
|
|
1579
1588
|
f === "auto" && !Y.muiSupportAuto && (v = void 0);
|
|
1580
|
-
const
|
|
1589
|
+
const _ = x || (s ? q(se(s)).body : void 0), [J, {
|
|
1581
1590
|
slots: fe,
|
|
1582
1591
|
slotProps: Te,
|
|
1583
1592
|
...Pe
|
|
1584
1593
|
}] = W("root", {
|
|
1585
1594
|
ref: o,
|
|
1586
|
-
elementType:
|
|
1595
|
+
elementType: Jt,
|
|
1587
1596
|
externalForwardedProps: {
|
|
1588
1597
|
...D,
|
|
1589
1598
|
...R
|
|
@@ -1591,27 +1600,27 @@ const Gt = (t) => {
|
|
|
1591
1600
|
shouldForwardComponentProp: !0,
|
|
1592
1601
|
additionalProps: {
|
|
1593
1602
|
slots: {
|
|
1594
|
-
backdrop:
|
|
1603
|
+
backdrop: M.backdrop
|
|
1595
1604
|
},
|
|
1596
1605
|
slotProps: {
|
|
1597
1606
|
backdrop: yt(typeof g.backdrop == "function" ? g.backdrop(S) : g.backdrop, {
|
|
1598
1607
|
invisible: !0
|
|
1599
1608
|
})
|
|
1600
1609
|
},
|
|
1601
|
-
container:
|
|
1610
|
+
container: _,
|
|
1602
1611
|
open: b
|
|
1603
1612
|
},
|
|
1604
1613
|
ownerState: S,
|
|
1605
|
-
className: ne(
|
|
1614
|
+
className: ne(V.root, w)
|
|
1606
1615
|
}), [xe, ve] = W("paper", {
|
|
1607
1616
|
ref: E,
|
|
1608
|
-
className:
|
|
1617
|
+
className: V.paper,
|
|
1609
1618
|
elementType: et,
|
|
1610
1619
|
externalForwardedProps: D,
|
|
1611
1620
|
shouldForwardComponentProp: !0,
|
|
1612
1621
|
additionalProps: {
|
|
1613
|
-
elevation:
|
|
1614
|
-
style:
|
|
1622
|
+
elevation: C,
|
|
1623
|
+
style: k ? void 0 : {
|
|
1615
1624
|
opacity: 0
|
|
1616
1625
|
}
|
|
1617
1626
|
},
|
|
@@ -1619,7 +1628,7 @@ const Gt = (t) => {
|
|
|
1619
1628
|
});
|
|
1620
1629
|
return /* @__PURE__ */ A.jsx(J, {
|
|
1621
1630
|
...Pe,
|
|
1622
|
-
...!
|
|
1631
|
+
...!ut(J) && {
|
|
1623
1632
|
slots: fe,
|
|
1624
1633
|
slotProps: Te,
|
|
1625
1634
|
disableScrollLock: N
|
|
@@ -1649,7 +1658,7 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
1649
1658
|
* or a function that returns either.
|
|
1650
1659
|
* It's used to set the position of the popover.
|
|
1651
1660
|
*/
|
|
1652
|
-
anchorEl:
|
|
1661
|
+
anchorEl: Me(e.oneOfType([ae, e.func]), (t) => {
|
|
1653
1662
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
1654
1663
|
const n = se(t.anchorEl);
|
|
1655
1664
|
if (n && n.nodeType === 1) {
|
|
@@ -1761,7 +1770,7 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
1761
1770
|
/**
|
|
1762
1771
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
1763
1772
|
*
|
|
1764
|
-
* This prop is an alias for `slotProps.paper` and will be
|
|
1773
|
+
* This prop is an alias for `slotProps.paper` and will be overridden by it if both are used.
|
|
1765
1774
|
* @deprecated Use `slotProps.paper` instead.
|
|
1766
1775
|
*
|
|
1767
1776
|
* @default {}
|
|
@@ -1833,7 +1842,7 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
1833
1842
|
*/
|
|
1834
1843
|
TransitionProps: e.object
|
|
1835
1844
|
});
|
|
1836
|
-
function
|
|
1845
|
+
function Qt(t) {
|
|
1837
1846
|
var x;
|
|
1838
1847
|
const {
|
|
1839
1848
|
elementType: n,
|
|
@@ -1855,11 +1864,11 @@ function Xt(t) {
|
|
|
1855
1864
|
}
|
|
1856
1865
|
const nt = /* @__PURE__ */ u.createContext({});
|
|
1857
1866
|
process.env.NODE_ENV !== "production" && (nt.displayName = "ListContext");
|
|
1858
|
-
function
|
|
1867
|
+
function Zt(t) {
|
|
1859
1868
|
return ue("MuiList", t);
|
|
1860
1869
|
}
|
|
1861
1870
|
pe("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
1862
|
-
const
|
|
1871
|
+
const en = (t) => {
|
|
1863
1872
|
const {
|
|
1864
1873
|
classes: n,
|
|
1865
1874
|
disablePadding: o,
|
|
@@ -1868,8 +1877,8 @@ const Qt = (t) => {
|
|
|
1868
1877
|
} = t;
|
|
1869
1878
|
return le({
|
|
1870
1879
|
root: ["root", !o && "padding", r && "dense", a && "subheader"]
|
|
1871
|
-
},
|
|
1872
|
-
},
|
|
1880
|
+
}, Zt, n);
|
|
1881
|
+
}, tn = G("ul", {
|
|
1873
1882
|
name: "MuiList",
|
|
1874
1883
|
slot: "Root",
|
|
1875
1884
|
overridesResolver: (t, n) => {
|
|
@@ -1913,19 +1922,19 @@ const Qt = (t) => {
|
|
|
1913
1922
|
...w
|
|
1914
1923
|
} = r, x = u.useMemo(() => ({
|
|
1915
1924
|
dense: c
|
|
1916
|
-
}), [c]),
|
|
1925
|
+
}), [c]), C = {
|
|
1917
1926
|
...r,
|
|
1918
1927
|
component: i,
|
|
1919
1928
|
dense: c,
|
|
1920
1929
|
disablePadding: d
|
|
1921
|
-
}, h =
|
|
1930
|
+
}, h = en(C);
|
|
1922
1931
|
return /* @__PURE__ */ A.jsx(nt.Provider, {
|
|
1923
1932
|
value: x,
|
|
1924
|
-
children: /* @__PURE__ */ A.jsxs(
|
|
1933
|
+
children: /* @__PURE__ */ A.jsxs(tn, {
|
|
1925
1934
|
as: i,
|
|
1926
1935
|
className: ne(h.root, s),
|
|
1927
1936
|
ref: o,
|
|
1928
|
-
ownerState:
|
|
1937
|
+
ownerState: C,
|
|
1929
1938
|
...w,
|
|
1930
1939
|
children: [T, a]
|
|
1931
1940
|
})
|
|
@@ -1977,7 +1986,7 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
|
1977
1986
|
function we(t, n, o) {
|
|
1978
1987
|
return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : o ? null : t.firstChild;
|
|
1979
1988
|
}
|
|
1980
|
-
function
|
|
1989
|
+
function _e(t, n, o) {
|
|
1981
1990
|
return t === n ? o ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : o ? null : t.lastChild;
|
|
1982
1991
|
}
|
|
1983
1992
|
function rt(t, n) {
|
|
@@ -2015,7 +2024,7 @@ const st = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
2015
2024
|
disableListWrap: T = !1,
|
|
2016
2025
|
onKeyDown: w,
|
|
2017
2026
|
variant: x = "selectedMenu",
|
|
2018
|
-
...
|
|
2027
|
+
...C
|
|
2019
2028
|
} = n, h = u.useRef(null), b = u.useRef({
|
|
2020
2029
|
keys: [],
|
|
2021
2030
|
repeating: !0,
|
|
@@ -2036,7 +2045,7 @@ const st = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
2036
2045
|
return h.current;
|
|
2037
2046
|
}
|
|
2038
2047
|
}), []);
|
|
2039
|
-
const
|
|
2048
|
+
const I = (l) => {
|
|
2040
2049
|
const f = h.current, y = l.key;
|
|
2041
2050
|
if (l.ctrlKey || l.metaKey || l.altKey) {
|
|
2042
2051
|
w && w(l);
|
|
@@ -2046,26 +2055,26 @@ const st = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
2046
2055
|
if (y === "ArrowDown")
|
|
2047
2056
|
l.preventDefault(), re(f, R, T, d, we);
|
|
2048
2057
|
else if (y === "ArrowUp")
|
|
2049
|
-
l.preventDefault(), re(f, R, T, d,
|
|
2058
|
+
l.preventDefault(), re(f, R, T, d, _e);
|
|
2050
2059
|
else if (y === "Home")
|
|
2051
2060
|
l.preventDefault(), re(f, null, T, d, we);
|
|
2052
2061
|
else if (y === "End")
|
|
2053
|
-
l.preventDefault(), re(f, null, T, d,
|
|
2062
|
+
l.preventDefault(), re(f, null, T, d, _e);
|
|
2054
2063
|
else if (y.length === 1) {
|
|
2055
|
-
const E = b.current, S = y.toLowerCase(),
|
|
2056
|
-
E.keys.length > 0 && (
|
|
2064
|
+
const E = b.current, S = y.toLowerCase(), V = performance.now();
|
|
2065
|
+
E.keys.length > 0 && (V - E.lastTime > 500 ? (E.keys = [], E.repeating = !0, E.previousKeyMatched = !0) : E.repeating && S !== E.keys[0] && (E.repeating = !1)), E.lastTime = V, E.keys.push(S);
|
|
2057
2066
|
const L = R && !E.repeating && rt(R, E);
|
|
2058
2067
|
E.previousKeyMatched && (L || re(f, R, !1, d, we, E)) ? l.preventDefault() : E.previousKeyMatched = !1;
|
|
2059
2068
|
}
|
|
2060
2069
|
w && w(l);
|
|
2061
|
-
},
|
|
2070
|
+
}, M = Z(h, o);
|
|
2062
2071
|
let g = -1;
|
|
2063
2072
|
u.Children.forEach(i, (l, f) => {
|
|
2064
2073
|
if (!/* @__PURE__ */ u.isValidElement(l)) {
|
|
2065
2074
|
g === f && (g += 1, g >= i.length && (g = -1));
|
|
2066
2075
|
return;
|
|
2067
2076
|
}
|
|
2068
|
-
process.env.NODE_ENV !== "production" &&
|
|
2077
|
+
process.env.NODE_ENV !== "production" && He.isFragment(l) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2069
2078
|
`)), l.props.disabled || (x === "selectedMenu" && l.props.selected || g === -1) && (g = f), g === f && (l.props.disabled || l.props.muiSkipListHighlight || l.type.muiSkipListHighlight) && (g += 1, g >= i.length && (g = -1));
|
|
2070
2079
|
});
|
|
2071
2080
|
const O = u.Children.map(i, (l, f) => {
|
|
@@ -2077,11 +2086,11 @@ const st = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
2077
2086
|
});
|
|
2078
2087
|
return /* @__PURE__ */ A.jsx(ot, {
|
|
2079
2088
|
role: "menu",
|
|
2080
|
-
ref:
|
|
2089
|
+
ref: M,
|
|
2081
2090
|
className: c,
|
|
2082
|
-
onKeyDown:
|
|
2091
|
+
onKeyDown: I,
|
|
2083
2092
|
tabIndex: a ? 0 : -1,
|
|
2084
|
-
...
|
|
2093
|
+
...C,
|
|
2085
2094
|
children: O
|
|
2086
2095
|
});
|
|
2087
2096
|
});
|
|
@@ -2130,17 +2139,17 @@ process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
|
2130
2139
|
*/
|
|
2131
2140
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2132
2141
|
});
|
|
2133
|
-
function
|
|
2142
|
+
function nn(t) {
|
|
2134
2143
|
return ue("MuiMenu", t);
|
|
2135
2144
|
}
|
|
2136
2145
|
pe("MuiMenu", ["root", "paper", "list"]);
|
|
2137
|
-
const
|
|
2146
|
+
const on = {
|
|
2138
2147
|
vertical: "top",
|
|
2139
2148
|
horizontal: "right"
|
|
2140
|
-
},
|
|
2149
|
+
}, rn = {
|
|
2141
2150
|
vertical: "top",
|
|
2142
2151
|
horizontal: "left"
|
|
2143
|
-
},
|
|
2152
|
+
}, sn = (t) => {
|
|
2144
2153
|
const {
|
|
2145
2154
|
classes: n
|
|
2146
2155
|
} = t;
|
|
@@ -2148,12 +2157,12 @@ const tn = {
|
|
|
2148
2157
|
root: ["root"],
|
|
2149
2158
|
paper: ["paper"],
|
|
2150
2159
|
list: ["list"]
|
|
2151
|
-
},
|
|
2152
|
-
},
|
|
2153
|
-
shouldForwardProp: (t) =>
|
|
2160
|
+
}, nn, n);
|
|
2161
|
+
}, an = G(tt, {
|
|
2162
|
+
shouldForwardProp: (t) => at(t) || t === "classes",
|
|
2154
2163
|
name: "MuiMenu",
|
|
2155
2164
|
slot: "Root"
|
|
2156
|
-
})({}),
|
|
2165
|
+
})({}), cn = G(et, {
|
|
2157
2166
|
name: "MuiMenu",
|
|
2158
2167
|
slot: "Paper"
|
|
2159
2168
|
})({
|
|
@@ -2163,13 +2172,13 @@ const tn = {
|
|
|
2163
2172
|
maxHeight: "calc(100% - 96px)",
|
|
2164
2173
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
2165
2174
|
WebkitOverflowScrolling: "touch"
|
|
2166
|
-
}),
|
|
2175
|
+
}), ln = G(st, {
|
|
2167
2176
|
name: "MuiMenu",
|
|
2168
2177
|
slot: "List"
|
|
2169
2178
|
})({
|
|
2170
2179
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
2171
2180
|
outline: 0
|
|
2172
|
-
}),
|
|
2181
|
+
}), un = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
2173
2182
|
const r = ce({
|
|
2174
2183
|
props: n,
|
|
2175
2184
|
name: "MuiMenu"
|
|
@@ -2182,17 +2191,17 @@ const tn = {
|
|
|
2182
2191
|
onClose: T,
|
|
2183
2192
|
open: w,
|
|
2184
2193
|
PaperProps: x = {},
|
|
2185
|
-
PopoverClasses:
|
|
2194
|
+
PopoverClasses: C,
|
|
2186
2195
|
transitionDuration: h = "auto",
|
|
2187
2196
|
TransitionProps: {
|
|
2188
2197
|
onEntering: b,
|
|
2189
|
-
...
|
|
2198
|
+
...I
|
|
2190
2199
|
} = {},
|
|
2191
|
-
variant:
|
|
2200
|
+
variant: M = "selectedMenu",
|
|
2192
2201
|
slots: g = {},
|
|
2193
2202
|
slotProps: O = {},
|
|
2194
2203
|
...l
|
|
2195
|
-
} = r, f =
|
|
2204
|
+
} = r, f = xt(), y = {
|
|
2196
2205
|
...r,
|
|
2197
2206
|
autoFocus: a,
|
|
2198
2207
|
disableAutoFocusItem: c,
|
|
@@ -2200,63 +2209,63 @@ const tn = {
|
|
|
2200
2209
|
onEntering: b,
|
|
2201
2210
|
PaperProps: x,
|
|
2202
2211
|
transitionDuration: h,
|
|
2203
|
-
TransitionProps:
|
|
2204
|
-
variant:
|
|
2205
|
-
}, N =
|
|
2212
|
+
TransitionProps: I,
|
|
2213
|
+
variant: M
|
|
2214
|
+
}, N = sn(y), R = a && !c && w, E = u.useRef(null), S = (v, D) => {
|
|
2206
2215
|
E.current && E.current.adjustStyleForScrollbar(v, {
|
|
2207
2216
|
direction: f ? "rtl" : "ltr"
|
|
2208
2217
|
}), b && b(v, D);
|
|
2209
|
-
},
|
|
2218
|
+
}, V = (v) => {
|
|
2210
2219
|
v.key === "Tab" && (v.preventDefault(), T && T(v, "tabKeyDown"));
|
|
2211
2220
|
};
|
|
2212
2221
|
let L = -1;
|
|
2213
2222
|
u.Children.map(s, (v, D) => {
|
|
2214
|
-
/* @__PURE__ */ u.isValidElement(v) && (process.env.NODE_ENV !== "production" &&
|
|
2215
|
-
`)), v.props.disabled || (
|
|
2223
|
+
/* @__PURE__ */ u.isValidElement(v) && (process.env.NODE_ENV !== "production" && He.isFragment(v) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2224
|
+
`)), v.props.disabled || (M === "selectedMenu" && v.props.selected || L === -1) && (L = D));
|
|
2216
2225
|
});
|
|
2217
|
-
const
|
|
2226
|
+
const $ = {
|
|
2218
2227
|
slots: g,
|
|
2219
2228
|
slotProps: {
|
|
2220
2229
|
list: d,
|
|
2221
|
-
transition:
|
|
2230
|
+
transition: I,
|
|
2222
2231
|
paper: x,
|
|
2223
2232
|
...O
|
|
2224
2233
|
}
|
|
2225
|
-
},
|
|
2234
|
+
}, U = Qt({
|
|
2226
2235
|
elementType: g.root,
|
|
2227
2236
|
externalSlotProps: O.root,
|
|
2228
2237
|
ownerState: y,
|
|
2229
2238
|
className: [N.root, i]
|
|
2230
|
-
}), [
|
|
2239
|
+
}), [k, p] = W("paper", {
|
|
2231
2240
|
className: N.paper,
|
|
2232
|
-
elementType:
|
|
2233
|
-
externalForwardedProps:
|
|
2241
|
+
elementType: cn,
|
|
2242
|
+
externalForwardedProps: $,
|
|
2234
2243
|
shouldForwardComponentProp: !0,
|
|
2235
2244
|
ownerState: y
|
|
2236
2245
|
}), [m, F] = W("list", {
|
|
2237
2246
|
className: ne(N.list, d.className),
|
|
2238
|
-
elementType:
|
|
2247
|
+
elementType: ln,
|
|
2239
2248
|
shouldForwardComponentProp: !0,
|
|
2240
|
-
externalForwardedProps:
|
|
2249
|
+
externalForwardedProps: $,
|
|
2241
2250
|
getSlotProps: (v) => ({
|
|
2242
2251
|
...v,
|
|
2243
2252
|
onKeyDown: (D) => {
|
|
2244
2253
|
var Y;
|
|
2245
|
-
|
|
2254
|
+
V(D), (Y = v.onKeyDown) == null || Y.call(v, D);
|
|
2246
2255
|
}
|
|
2247
2256
|
}),
|
|
2248
2257
|
ownerState: y
|
|
2249
|
-
}),
|
|
2250
|
-
return /* @__PURE__ */ A.jsx(
|
|
2258
|
+
}), B = typeof $.slotProps.transition == "function" ? $.slotProps.transition(y) : $.slotProps.transition;
|
|
2259
|
+
return /* @__PURE__ */ A.jsx(an, {
|
|
2251
2260
|
onClose: T,
|
|
2252
2261
|
anchorOrigin: {
|
|
2253
2262
|
vertical: "bottom",
|
|
2254
2263
|
horizontal: f ? "right" : "left"
|
|
2255
2264
|
},
|
|
2256
|
-
transformOrigin: f ?
|
|
2265
|
+
transformOrigin: f ? on : rn,
|
|
2257
2266
|
slots: {
|
|
2258
2267
|
root: g.root,
|
|
2259
|
-
paper:
|
|
2268
|
+
paper: k,
|
|
2260
2269
|
backdrop: g.backdrop,
|
|
2261
2270
|
...g.transition && {
|
|
2262
2271
|
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
@@ -2264,14 +2273,14 @@ const tn = {
|
|
|
2264
2273
|
}
|
|
2265
2274
|
},
|
|
2266
2275
|
slotProps: {
|
|
2267
|
-
root:
|
|
2276
|
+
root: U,
|
|
2268
2277
|
paper: p,
|
|
2269
2278
|
backdrop: typeof O.backdrop == "function" ? O.backdrop(y) : O.backdrop,
|
|
2270
2279
|
transition: {
|
|
2271
|
-
...
|
|
2280
|
+
...B,
|
|
2272
2281
|
onEntering: (...v) => {
|
|
2273
2282
|
var D;
|
|
2274
|
-
S(...v), (D =
|
|
2283
|
+
S(...v), (D = B == null ? void 0 : B.onEntering) == null || D.call(B, ...v);
|
|
2275
2284
|
}
|
|
2276
2285
|
}
|
|
2277
2286
|
},
|
|
@@ -2280,18 +2289,18 @@ const tn = {
|
|
|
2280
2289
|
transitionDuration: h,
|
|
2281
2290
|
ownerState: y,
|
|
2282
2291
|
...l,
|
|
2283
|
-
classes:
|
|
2292
|
+
classes: C,
|
|
2284
2293
|
children: /* @__PURE__ */ A.jsx(m, {
|
|
2285
2294
|
actions: E,
|
|
2286
2295
|
autoFocus: a && (L === -1 || c),
|
|
2287
2296
|
autoFocusItem: R,
|
|
2288
|
-
variant:
|
|
2297
|
+
variant: M,
|
|
2289
2298
|
...F,
|
|
2290
2299
|
children: s
|
|
2291
2300
|
})
|
|
2292
2301
|
});
|
|
2293
2302
|
});
|
|
2294
|
-
process.env.NODE_ENV !== "production" && (
|
|
2303
|
+
process.env.NODE_ENV !== "production" && (un.propTypes = {
|
|
2295
2304
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2296
2305
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2297
2306
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2408,17 +2417,17 @@ export {
|
|
|
2408
2417
|
be as G,
|
|
2409
2418
|
ae as H,
|
|
2410
2419
|
nt as L,
|
|
2411
|
-
|
|
2420
|
+
un as M,
|
|
2412
2421
|
tt as P,
|
|
2413
2422
|
Q as a,
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2423
|
+
Qt as b,
|
|
2424
|
+
st as c,
|
|
2425
|
+
vt as d,
|
|
2426
|
+
ye as e,
|
|
2427
|
+
ge as f,
|
|
2419
2428
|
Ee as g,
|
|
2420
|
-
|
|
2421
|
-
|
|
2429
|
+
ot as h,
|
|
2430
|
+
Ze as i,
|
|
2422
2431
|
q as o,
|
|
2423
|
-
|
|
2432
|
+
xt as u
|
|
2424
2433
|
};
|