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