@solostylist/ui-kit 1.0.196 → 1.0.198
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/{ArrowUpward-JWPHrR6I.js → ArrowUpward-D8eqD-si.js} +1 -1
- package/dist/{Box-p3bpOtdn.js → Box-BkXoTbe8.js} +3 -3
- package/dist/{ButtonBase-PbSTzuUP.js → ButtonBase-D73M0QY5.js} +7 -7
- package/dist/{ChevronLeft-BJjuFNNQ.js → ChevronLeft-BmgmPHp9.js} +1 -1
- package/dist/{ChevronRight-5ZX3FodP.js → ChevronRight-DbWSr8yz.js} +1 -1
- package/dist/{Close-C-pCw-CD.js → Close-lHCUMitI.js} +1 -1
- package/dist/{ContentCopy-CNxsEhmq.js → ContentCopy-D4SuJd86.js} +1 -1
- package/dist/{DefaultPropsProvider-2MEHB2yv.js → DefaultPropsProvider-DPuuPIbS.js} +2 -2
- package/dist/{Download-D97XSAig.js → Download-BoRQUwCf.js} +1 -1
- package/dist/{ExpandMore-CTZrSZlF.js → ExpandMore-C7yRQv1-.js} +1 -1
- package/dist/{Favorite-Cvjg7GqN.js → Favorite-Bz_HcMgN.js} +1 -1
- package/dist/{Menu-_ZW9WiF2.js → Menu-GVFDMHCN.js} +137 -131
- package/dist/{MenuItem-DTapLhin.js → MenuItem-2wG8I2HO.js} +5 -5
- package/dist/{Paper-5nSdRRBA.js → Paper-CR019bki.js} +6 -6
- package/dist/{Select-J5gDqfEk.js → Select-80JhW337.js} +7 -7
- package/dist/{Stack-BlwLEm6H.js → Stack-Dfjnuorw.js} +5 -5
- package/dist/{Typography-Cum5_Ehu.js → Typography-PcmlIqm1.js} +4 -4
- package/dist/assets/s-overlay-scrollbar.css +1 -1
- package/dist/{createSvgIcon-DTNHY3_v.js → createSvgIcon-BkbeLOhM.js} +3 -3
- package/dist/{createTheme-CIXJrNxb.js → createTheme-DgoJyWM-.js} +874 -871
- package/dist/defaultTheme-CulFxfLR.js +5 -0
- package/dist/{extendSxProp-CyoueGTe.js → extendSxProp-BJEIxcAx.js} +1 -1
- package/dist/{index-8LcCMmwl.js → index-DtGYsHSv.js} +4 -4
- package/dist/s-accordion/s-accordion.js +89 -89
- package/dist/s-action-overlay/s-action-overlay.js +7 -7
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +44 -0
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +241 -272
- package/dist/s-avatar/s-avatar.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +4 -4
- package/dist/s-carousel/s-carousel.js +4 -4
- package/dist/s-chat-input/s-chat-input.js +4 -4
- package/dist/s-chat-message/s-chat-message.js +135 -124
- package/dist/s-chips/s-chips.js +35 -35
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +5 -5
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-countdown/s-count-down.d.ts +15 -10
- package/dist/s-countdown/s-count-down.js +84 -101
- package/dist/s-data-table/s-data-table.js +75 -76
- package/dist/s-date-picker/s-date-picker.js +43 -47
- package/dist/s-datetime-picker/s-datetime-picker.js +782 -782
- 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-empty/s-empty.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +15 -15
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-modal/s-image-modal.js +7 -7
- package/dist/s-label/s-label.d.ts +1 -1
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +8 -8
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-moving-border/s-moving-border.d.ts +5 -5
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +6 -6
- package/dist/s-pixel-reveal/s-pixel-reveal.js +76 -71
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +2 -2
- package/dist/s-review/s-review.d.ts +3 -2
- package/dist/s-review/s-review.js +19 -19
- package/dist/s-scroll-to-top/s-scroll-to-top.js +5 -5
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +1 -1
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +3 -3
- package/dist/s-scroll-velocity/scroll-velocity-row.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -0
- package/dist/s-select/s-select.js +60 -72
- package/dist/s-select-list/s-select-list.js +1 -1
- package/dist/s-stripe/s-stripe-cvc.d.ts +1 -1
- package/dist/s-stripe/s-stripe-expiry.d.ts +1 -1
- package/dist/s-stripe/s-stripe-number.d.ts +1 -1
- package/dist/s-stripe/stripe-input.d.ts +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +64 -60
- 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 +3 -3
- package/dist/s-theme-demo/s-theme-demo.js +2 -2
- package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{styled-BR6UL29H.js → styled-8Y5KoVix.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/button.js +1 -1
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/icon-button.d.ts +2 -2
- package/dist/theme/components/popover.js +2 -2
- package/dist/theme/components/skeleton.js +1 -1
- package/dist/theme/components/tooltip.js +5 -5
- package/dist/theme/customizations/data-display.js +12 -12
- package/dist/theme/customizations/feedback.js +2 -2
- package/dist/theme/customizations/inputs.js +12 -12
- package/dist/theme/customizations/navigation.js +28 -28
- package/dist/theme/customizations/surfaces.js +11 -11
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{useMobilePicker-C0pYjskU.js → useMobilePicker-DVnEuXv1.js} +3936 -3653
- package/dist/{useTheme-DSvhq4Np.js → useTheme-CWPkv7g3.js} +1 -1
- package/dist/{useThemeProps-C-oV4Fbz.js → useThemeProps-XYgXGzjS.js} +1 -1
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils-CHdpkEZx.js +33 -0
- package/dist/{warning-BZ61Y8gI.js → warning-Ba-7BBAN.js} +3 -3
- package/package.json +59 -59
- package/dist/defaultTheme-DLue8Fr1.js +0 -5
- package/dist/utils-DJIrqgo5.js +0 -18
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { P as e, k as ze } from "./createTheme-
|
|
2
|
+
import { P as e, k as ze } from "./createTheme-DgoJyWM-.js";
|
|
3
3
|
import { c as ee } from "./clsx-OuTLNxxd.js";
|
|
4
4
|
import { j as A } from "./jsx-runtime-tc70JA_2.js";
|
|
5
|
-
import { s as q, r as
|
|
5
|
+
import { s as q, r as ct } from "./styled-8Y5KoVix.js";
|
|
6
6
|
import { g as le } from "./generateUtilityClass-BhfUaMgk.js";
|
|
7
7
|
import { g as ue } from "./generateUtilityClasses-E9gROIFd.js";
|
|
8
|
-
import {
|
|
9
|
-
import { u as pe, c as de, m as
|
|
10
|
-
import { T as qe, u as We, g as be, r as Ge, P as
|
|
11
|
-
import { m as
|
|
12
|
-
import * as
|
|
8
|
+
import { f as lt, m as ut, u as J, g as pt, c as Me, a as dt, b as z, d as De, h as ft, i as mt, r as ht, e as bt } from "./ButtonBase-D73M0QY5.js";
|
|
9
|
+
import { u as pe, c as de, m as gt } from "./DefaultPropsProvider-DPuuPIbS.js";
|
|
10
|
+
import { T as qe, u as We, g as be, r as Ge, P as yt, i as Et } from "./Paper-CR019bki.js";
|
|
11
|
+
import { m as Tt } from "./mergeSlotProps-CuzBQdlp.js";
|
|
12
|
+
import * as Pt from "react-dom";
|
|
13
13
|
import { u as ke } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
14
14
|
function Le(...t) {
|
|
15
15
|
return t.reduce((n, o) => o == null ? n : function(...a) {
|
|
@@ -17,20 +17,20 @@ function Le(...t) {
|
|
|
17
17
|
}, () => {
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const vt = "exact-prop: ";
|
|
21
21
|
function Ye(t) {
|
|
22
22
|
return process.env.NODE_ENV === "production" ? t : {
|
|
23
23
|
...t,
|
|
24
|
-
[
|
|
24
|
+
[vt]: (n) => {
|
|
25
25
|
const o = Object.keys(n).filter((r) => !t.hasOwnProperty(r));
|
|
26
26
|
return o.length > 0 ? new Error(`The following props are not supported: ${o.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const xt = /* @__PURE__ */ l.createContext();
|
|
31
31
|
process.env.NODE_ENV !== "production" && (e.node, e.bool);
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const Rt = () => l.useContext(xt) ?? !1;
|
|
33
|
+
function Ot(t, n = 166) {
|
|
34
34
|
let o;
|
|
35
35
|
function r(...a) {
|
|
36
36
|
const s = () => {
|
|
@@ -57,32 +57,32 @@ function ce(t, n, o, r, a) {
|
|
|
57
57
|
const s = t[n], i = a || n;
|
|
58
58
|
return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function wt(t) {
|
|
61
61
|
const {
|
|
62
62
|
elementType: n,
|
|
63
63
|
externalSlotProps: o,
|
|
64
64
|
ownerState: r,
|
|
65
65
|
skipResolvingSlotProps: a = !1,
|
|
66
66
|
...s
|
|
67
|
-
} = t, i = a ? {} :
|
|
67
|
+
} = t, i = a ? {} : lt(o, r), {
|
|
68
68
|
props: c,
|
|
69
69
|
internalRef: d
|
|
70
|
-
} =
|
|
70
|
+
} = ut({
|
|
71
71
|
...s,
|
|
72
72
|
externalSlotProps: i
|
|
73
73
|
}), T = J(d, i?.ref, t.additionalProps?.ref);
|
|
74
|
-
return
|
|
74
|
+
return pt(n, {
|
|
75
75
|
...c,
|
|
76
76
|
ref: T
|
|
77
77
|
}, r);
|
|
78
78
|
}
|
|
79
79
|
const Xe = /* @__PURE__ */ l.createContext({});
|
|
80
80
|
process.env.NODE_ENV !== "production" && (Xe.displayName = "ListContext");
|
|
81
|
-
function
|
|
81
|
+
function Nt(t) {
|
|
82
82
|
return le("MuiList", t);
|
|
83
83
|
}
|
|
84
84
|
ue("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
85
|
-
const
|
|
85
|
+
const kt = (t) => {
|
|
86
86
|
const {
|
|
87
87
|
classes: n,
|
|
88
88
|
disablePadding: o,
|
|
@@ -91,8 +91,8 @@ const Nt = (t) => {
|
|
|
91
91
|
} = t;
|
|
92
92
|
return de({
|
|
93
93
|
root: ["root", !o && "padding", r && "dense", a && "subheader"]
|
|
94
|
-
},
|
|
95
|
-
},
|
|
94
|
+
}, Nt, n);
|
|
95
|
+
}, Ct = q("ul", {
|
|
96
96
|
name: "MuiList",
|
|
97
97
|
slot: "Root",
|
|
98
98
|
overridesResolver: (t, n) => {
|
|
@@ -141,10 +141,10 @@ const Nt = (t) => {
|
|
|
141
141
|
component: i,
|
|
142
142
|
dense: c,
|
|
143
143
|
disablePadding: d
|
|
144
|
-
}, h =
|
|
144
|
+
}, h = kt(C);
|
|
145
145
|
return /* @__PURE__ */ A.jsx(Xe.Provider, {
|
|
146
146
|
value: x,
|
|
147
|
-
children: /* @__PURE__ */ A.jsxs(
|
|
147
|
+
children: /* @__PURE__ */ A.jsxs(Ct, {
|
|
148
148
|
as: i,
|
|
149
149
|
className: ee(h.root, s),
|
|
150
150
|
ref: o,
|
|
@@ -363,13 +363,18 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
363
363
|
*/
|
|
364
364
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
365
365
|
});
|
|
366
|
-
function
|
|
366
|
+
function tt() {
|
|
367
|
+
return !(/jsdom|HappyDOM/.test(window.navigator.userAgent) || // TODO(v9): Remove the test environment check
|
|
368
|
+
// eslint-disable-next-line mui/consistent-production-guard
|
|
369
|
+
process.env.NODE_ENV === "test");
|
|
370
|
+
}
|
|
371
|
+
function Mt(t) {
|
|
367
372
|
const {
|
|
368
373
|
prototype: n = {}
|
|
369
374
|
} = t;
|
|
370
375
|
return !!n.isReactComponent;
|
|
371
376
|
}
|
|
372
|
-
function
|
|
377
|
+
function nt(t, n, o, r, a) {
|
|
373
378
|
const s = t[n], i = a || n;
|
|
374
379
|
if (s == null || // When server-side rendering React doesn't warn either.
|
|
375
380
|
// This is not an accurate check for SSR.
|
|
@@ -379,17 +384,17 @@ function tt(t, n, o, r, a) {
|
|
|
379
384
|
return null;
|
|
380
385
|
let c;
|
|
381
386
|
const d = s.type;
|
|
382
|
-
return typeof d == "function" && !
|
|
387
|
+
return typeof d == "function" && !Mt(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;
|
|
383
388
|
}
|
|
384
|
-
const fe = Me(e.element,
|
|
385
|
-
fe.isRequired = Me(e.element.isRequired,
|
|
389
|
+
const fe = Me(e.element, nt);
|
|
390
|
+
fe.isRequired = Me(e.element.isRequired, nt);
|
|
386
391
|
function Te(t) {
|
|
387
392
|
return parseInt(l.version, 10) >= 19 ? t?.props?.ref || null : t?.ref || null;
|
|
388
393
|
}
|
|
389
394
|
function Ce(t) {
|
|
390
395
|
return `scale(${t}, ${t ** 2})`;
|
|
391
396
|
}
|
|
392
|
-
const
|
|
397
|
+
const St = {
|
|
393
398
|
entering: {
|
|
394
399
|
opacity: 1,
|
|
395
400
|
transform: Ce(1)
|
|
@@ -416,7 +421,7 @@ const Mt = {
|
|
|
416
421
|
// eslint-disable-next-line react/prop-types
|
|
417
422
|
TransitionComponent: M = qe,
|
|
418
423
|
...y
|
|
419
|
-
} = n, R =
|
|
424
|
+
} = n, R = dt(), u = l.useRef(), p = We(), g = l.useRef(null), k = J(g, Te(s), o), P = (f) => (m) => {
|
|
420
425
|
if (f) {
|
|
421
426
|
const L = g.current;
|
|
422
427
|
m === void 0 ? f(L) : f(L, m);
|
|
@@ -488,7 +493,7 @@ const Mt = {
|
|
|
488
493
|
opacity: 0,
|
|
489
494
|
transform: Ce(0.75),
|
|
490
495
|
visibility: f === "exited" && !c ? "hidden" : void 0,
|
|
491
|
-
...
|
|
496
|
+
...St[f],
|
|
492
497
|
...b,
|
|
493
498
|
...s.props.style
|
|
494
499
|
},
|
|
@@ -572,7 +577,7 @@ process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
|
572
577
|
})])
|
|
573
578
|
});
|
|
574
579
|
ge && (ge.muiSupportAuto = !0);
|
|
575
|
-
function
|
|
580
|
+
function jt(t) {
|
|
576
581
|
const n = _(t);
|
|
577
582
|
return n.body === t ? X(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
|
|
578
583
|
}
|
|
@@ -582,14 +587,14 @@ function ae(t, n) {
|
|
|
582
587
|
function Be(t) {
|
|
583
588
|
return parseFloat(X(t).getComputedStyle(t).paddingRight) || 0;
|
|
584
589
|
}
|
|
585
|
-
function
|
|
590
|
+
function Ft(t) {
|
|
586
591
|
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";
|
|
587
592
|
return o || r;
|
|
588
593
|
}
|
|
589
594
|
function Ve(t, n, o, r, a) {
|
|
590
595
|
const s = [n, o, ...r];
|
|
591
596
|
[].forEach.call(t.children, (i) => {
|
|
592
|
-
const c = !s.includes(i), d = !
|
|
597
|
+
const c = !s.includes(i), d = !Ft(i);
|
|
593
598
|
c && d && ae(i, a);
|
|
594
599
|
});
|
|
595
600
|
}
|
|
@@ -597,10 +602,10 @@ function Ne(t, n) {
|
|
|
597
602
|
let o = -1;
|
|
598
603
|
return t.some((r, a) => n(r) ? (o = a, !0) : !1), o;
|
|
599
604
|
}
|
|
600
|
-
function
|
|
605
|
+
function It(t, n) {
|
|
601
606
|
const o = [], r = t.container;
|
|
602
607
|
if (!n.disableScrollLock) {
|
|
603
|
-
if (
|
|
608
|
+
if (jt(r)) {
|
|
604
609
|
const i = Qe(X(r));
|
|
605
610
|
o.push({
|
|
606
611
|
value: r.style.paddingRight,
|
|
@@ -647,13 +652,13 @@ function Ft(t, n) {
|
|
|
647
652
|
});
|
|
648
653
|
};
|
|
649
654
|
}
|
|
650
|
-
function
|
|
655
|
+
function Dt(t) {
|
|
651
656
|
const n = [];
|
|
652
657
|
return [].forEach.call(t.children, (o) => {
|
|
653
658
|
o.getAttribute("aria-hidden") === "true" && n.push(o);
|
|
654
659
|
}), n;
|
|
655
660
|
}
|
|
656
|
-
class
|
|
661
|
+
class Lt {
|
|
657
662
|
constructor() {
|
|
658
663
|
this.modals = [], this.containers = [];
|
|
659
664
|
}
|
|
@@ -662,7 +667,7 @@ class Dt {
|
|
|
662
667
|
if (r !== -1)
|
|
663
668
|
return r;
|
|
664
669
|
r = this.modals.length, this.modals.push(n), n.modalRef && ae(n.modalRef, !1);
|
|
665
|
-
const a =
|
|
670
|
+
const a = Dt(o);
|
|
666
671
|
Ve(o, n.mount, n.modalRef, a, !0);
|
|
667
672
|
const s = Ne(this.containers, (i) => i.container === o);
|
|
668
673
|
return s !== -1 ? (this.containers[s].modals.push(n), r) : (this.containers.push({
|
|
@@ -674,7 +679,7 @@ class Dt {
|
|
|
674
679
|
}
|
|
675
680
|
mount(n, o) {
|
|
676
681
|
const r = Ne(this.containers, (s) => s.modals.includes(n)), a = this.containers[r];
|
|
677
|
-
a.restore || (a.restore =
|
|
682
|
+
a.restore || (a.restore = It(a, o));
|
|
678
683
|
}
|
|
679
684
|
remove(n, o = !0) {
|
|
680
685
|
const r = this.modals.indexOf(n);
|
|
@@ -693,33 +698,33 @@ class Dt {
|
|
|
693
698
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
694
699
|
}
|
|
695
700
|
}
|
|
696
|
-
const
|
|
697
|
-
function
|
|
701
|
+
const At = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
702
|
+
function Ht(t) {
|
|
698
703
|
const n = parseInt(t.getAttribute("tabindex") || "", 10);
|
|
699
704
|
return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
|
|
700
705
|
}
|
|
701
|
-
function
|
|
706
|
+
function Bt(t) {
|
|
702
707
|
if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
|
|
703
708
|
return !1;
|
|
704
709
|
const n = (r) => t.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
705
710
|
let o = n(`[name="${t.name}"]:checked`);
|
|
706
711
|
return o || (o = n(`[name="${t.name}"]`)), o !== t;
|
|
707
712
|
}
|
|
708
|
-
function Bt(t) {
|
|
709
|
-
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || Ht(t));
|
|
710
|
-
}
|
|
711
713
|
function Vt(t) {
|
|
714
|
+
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || Bt(t));
|
|
715
|
+
}
|
|
716
|
+
function $t(t) {
|
|
712
717
|
const n = [], o = [];
|
|
713
|
-
return Array.from(t.querySelectorAll(
|
|
714
|
-
const s =
|
|
715
|
-
s === -1 || !
|
|
718
|
+
return Array.from(t.querySelectorAll(At)).forEach((r, a) => {
|
|
719
|
+
const s = Ht(r);
|
|
720
|
+
s === -1 || !Vt(r) || (s === 0 ? n.push(r) : o.push({
|
|
716
721
|
documentOrder: a,
|
|
717
722
|
tabIndex: s,
|
|
718
723
|
node: r
|
|
719
724
|
}));
|
|
720
725
|
}), o.sort((r, a) => r.tabIndex === a.tabIndex ? r.documentOrder - a.documentOrder : r.tabIndex - a.tabIndex).map((r) => r.node).concat(n);
|
|
721
726
|
}
|
|
722
|
-
function
|
|
727
|
+
function Kt() {
|
|
723
728
|
return !0;
|
|
724
729
|
}
|
|
725
730
|
function ye(t) {
|
|
@@ -728,8 +733,8 @@ function ye(t) {
|
|
|
728
733
|
disableAutoFocus: o = !1,
|
|
729
734
|
disableEnforceFocus: r = !1,
|
|
730
735
|
disableRestoreFocus: a = !1,
|
|
731
|
-
getTabbable: s =
|
|
732
|
-
isEnabled: i =
|
|
736
|
+
getTabbable: s = $t,
|
|
737
|
+
isEnabled: i = Kt,
|
|
733
738
|
open: c
|
|
734
739
|
} = t, d = l.useRef(!1), T = l.useRef(null), O = l.useRef(null), x = l.useRef(null), C = l.useRef(null), h = l.useRef(!1), b = l.useRef(null), F = J(Te(n), b), M = l.useRef(null);
|
|
735
740
|
l.useEffect(() => {
|
|
@@ -861,7 +866,7 @@ process.env.NODE_ENV !== "production" && (ye.propTypes = {
|
|
|
861
866
|
open: e.bool.isRequired
|
|
862
867
|
});
|
|
863
868
|
process.env.NODE_ENV !== "production" && (ye.propTypes = Ye(ye.propTypes));
|
|
864
|
-
function
|
|
869
|
+
function Ut(t) {
|
|
865
870
|
return typeof t == "function" ? t() : t;
|
|
866
871
|
}
|
|
867
872
|
const Ee = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
@@ -871,7 +876,7 @@ const Ee = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
|
871
876
|
disablePortal: s = !1
|
|
872
877
|
} = n, [i, c] = l.useState(null), d = J(/* @__PURE__ */ l.isValidElement(r) ? Te(r) : null, o);
|
|
873
878
|
if (ke(() => {
|
|
874
|
-
s || c(
|
|
879
|
+
s || c(Ut(a) || document.body);
|
|
875
880
|
}, [a, s]), ke(() => {
|
|
876
881
|
if (i && !s)
|
|
877
882
|
return Ae(o, i), () => {
|
|
@@ -886,7 +891,7 @@ const Ee = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
|
886
891
|
}
|
|
887
892
|
return r;
|
|
888
893
|
}
|
|
889
|
-
return i && /* @__PURE__ */
|
|
894
|
+
return i && /* @__PURE__ */ Pt.createPortal(r, i);
|
|
890
895
|
});
|
|
891
896
|
process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
892
897
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -915,14 +920,14 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
915
920
|
disablePortal: e.bool
|
|
916
921
|
});
|
|
917
922
|
process.env.NODE_ENV !== "production" && (Ee.propTypes = Ye(Ee.propTypes));
|
|
918
|
-
const
|
|
923
|
+
const _t = {
|
|
919
924
|
entering: {
|
|
920
925
|
opacity: 1
|
|
921
926
|
},
|
|
922
927
|
entered: {
|
|
923
928
|
opacity: 1
|
|
924
929
|
}
|
|
925
|
-
},
|
|
930
|
+
}, ot = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
926
931
|
const r = We(), a = {
|
|
927
932
|
enter: r.transitions.duration.enteringScreen,
|
|
928
933
|
exit: r.transitions.duration.leavingScreen
|
|
@@ -990,7 +995,7 @@ const Ut = {
|
|
|
990
995
|
style: {
|
|
991
996
|
opacity: 0,
|
|
992
997
|
visibility: S === "exited" && !T ? "hidden" : void 0,
|
|
993
|
-
...
|
|
998
|
+
..._t[S],
|
|
994
999
|
...M,
|
|
995
1000
|
...c.props.style
|
|
996
1001
|
},
|
|
@@ -999,7 +1004,7 @@ const Ut = {
|
|
|
999
1004
|
})
|
|
1000
1005
|
});
|
|
1001
1006
|
});
|
|
1002
|
-
process.env.NODE_ENV !== "production" && (
|
|
1007
|
+
process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
1003
1008
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1004
1009
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1005
1010
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1074,19 +1079,19 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1074
1079
|
exit: e.number
|
|
1075
1080
|
})])
|
|
1076
1081
|
});
|
|
1077
|
-
function
|
|
1082
|
+
function zt(t) {
|
|
1078
1083
|
return le("MuiBackdrop", t);
|
|
1079
1084
|
}
|
|
1080
1085
|
ue("MuiBackdrop", ["root", "invisible"]);
|
|
1081
|
-
const
|
|
1086
|
+
const qt = (t) => {
|
|
1082
1087
|
const {
|
|
1083
1088
|
classes: n,
|
|
1084
1089
|
invisible: o
|
|
1085
1090
|
} = t;
|
|
1086
1091
|
return de({
|
|
1087
1092
|
root: ["root", o && "invisible"]
|
|
1088
|
-
},
|
|
1089
|
-
},
|
|
1093
|
+
}, zt, n);
|
|
1094
|
+
}, Wt = q("div", {
|
|
1090
1095
|
name: "MuiBackdrop",
|
|
1091
1096
|
slot: "Root",
|
|
1092
1097
|
overridesResolver: (t, n) => {
|
|
@@ -1114,7 +1119,7 @@ const zt = (t) => {
|
|
|
1114
1119
|
backgroundColor: "transparent"
|
|
1115
1120
|
}
|
|
1116
1121
|
}]
|
|
1117
|
-
}),
|
|
1122
|
+
}), rt = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
1118
1123
|
const r = pe({
|
|
1119
1124
|
props: n,
|
|
1120
1125
|
name: "MuiBackdrop"
|
|
@@ -1135,7 +1140,7 @@ const zt = (t) => {
|
|
|
1135
1140
|
...r,
|
|
1136
1141
|
component: i,
|
|
1137
1142
|
invisible: c
|
|
1138
|
-
}, y =
|
|
1143
|
+
}, y = qt(M), R = {
|
|
1139
1144
|
transition: h,
|
|
1140
1145
|
root: T.Root,
|
|
1141
1146
|
...C
|
|
@@ -1147,12 +1152,12 @@ const zt = (t) => {
|
|
|
1147
1152
|
slots: R,
|
|
1148
1153
|
slotProps: u
|
|
1149
1154
|
}, [g, k] = z("root", {
|
|
1150
|
-
elementType:
|
|
1155
|
+
elementType: Wt,
|
|
1151
1156
|
externalForwardedProps: p,
|
|
1152
1157
|
className: ee(y.root, s),
|
|
1153
1158
|
ownerState: M
|
|
1154
1159
|
}), [P, E] = z("transition", {
|
|
1155
|
-
elementType:
|
|
1160
|
+
elementType: ot,
|
|
1156
1161
|
externalForwardedProps: p,
|
|
1157
1162
|
ownerState: M
|
|
1158
1163
|
});
|
|
@@ -1169,7 +1174,7 @@ const zt = (t) => {
|
|
|
1169
1174
|
})
|
|
1170
1175
|
});
|
|
1171
1176
|
});
|
|
1172
|
-
process.env.NODE_ENV !== "production" && (
|
|
1177
|
+
process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
1173
1178
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1174
1179
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1175
1180
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1259,15 +1264,15 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
|
1259
1264
|
exit: e.number
|
|
1260
1265
|
})])
|
|
1261
1266
|
});
|
|
1262
|
-
function
|
|
1267
|
+
function Gt(t) {
|
|
1263
1268
|
return typeof t == "function" ? t() : t;
|
|
1264
1269
|
}
|
|
1265
|
-
function
|
|
1270
|
+
function Yt(t) {
|
|
1266
1271
|
return t ? t.props.hasOwnProperty("in") : !1;
|
|
1267
1272
|
}
|
|
1268
1273
|
const $e = () => {
|
|
1269
|
-
}, he = new
|
|
1270
|
-
function
|
|
1274
|
+
}, he = new Lt();
|
|
1275
|
+
function Xt(t) {
|
|
1271
1276
|
const {
|
|
1272
1277
|
container: n,
|
|
1273
1278
|
disableEscapeKeyDown: o = !1,
|
|
@@ -1279,7 +1284,7 @@ function Yt(t) {
|
|
|
1279
1284
|
onClose: d,
|
|
1280
1285
|
open: T,
|
|
1281
1286
|
rootRef: O
|
|
1282
|
-
} = t, x = l.useRef({}), C = l.useRef(null), h = l.useRef(null), b = J(h, O), [F, M] = l.useState(!T), y =
|
|
1287
|
+
} = t, x = l.useRef({}), C = l.useRef(null), h = l.useRef(null), b = J(h, O), [F, M] = l.useState(!T), y = Yt(c);
|
|
1283
1288
|
let R = !0;
|
|
1284
1289
|
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (R = !1);
|
|
1285
1290
|
const u = () => _(C.current), p = () => (x.current.modalRef = h.current, x.current.mount = C.current, x.current), g = () => {
|
|
@@ -1287,7 +1292,7 @@ function Yt(t) {
|
|
|
1287
1292
|
disableScrollLock: r
|
|
1288
1293
|
}), h.current && (h.current.scrollTop = 0);
|
|
1289
1294
|
}, k = De(() => {
|
|
1290
|
-
const f =
|
|
1295
|
+
const f = Gt(n) || u().body;
|
|
1291
1296
|
he.add(p(), f), h.current && g();
|
|
1292
1297
|
}), P = () => he.isTopModal(p()), E = De((f) => {
|
|
1293
1298
|
C.current = f, f && (T && P() ? g() : h.current && ae(h.current, R));
|
|
@@ -1307,7 +1312,7 @@ function Yt(t) {
|
|
|
1307
1312
|
};
|
|
1308
1313
|
return {
|
|
1309
1314
|
getRootProps: (f = {}) => {
|
|
1310
|
-
const m =
|
|
1315
|
+
const m = ft(t);
|
|
1311
1316
|
delete m.onTransitionEnter, delete m.onTransitionExited;
|
|
1312
1317
|
const L = {
|
|
1313
1318
|
...m,
|
|
@@ -1353,11 +1358,11 @@ function Yt(t) {
|
|
|
1353
1358
|
hasTransition: y
|
|
1354
1359
|
};
|
|
1355
1360
|
}
|
|
1356
|
-
function
|
|
1361
|
+
function Jt(t) {
|
|
1357
1362
|
return le("MuiModal", t);
|
|
1358
1363
|
}
|
|
1359
1364
|
ue("MuiModal", ["root", "hidden", "backdrop"]);
|
|
1360
|
-
const
|
|
1365
|
+
const Qt = (t) => {
|
|
1361
1366
|
const {
|
|
1362
1367
|
open: n,
|
|
1363
1368
|
exited: o,
|
|
@@ -1366,8 +1371,8 @@ const Jt = (t) => {
|
|
|
1366
1371
|
return de({
|
|
1367
1372
|
root: ["root", !n && o && "hidden"],
|
|
1368
1373
|
backdrop: ["backdrop"]
|
|
1369
|
-
},
|
|
1370
|
-
},
|
|
1374
|
+
}, Jt, r);
|
|
1375
|
+
}, Zt = q("div", {
|
|
1371
1376
|
name: "MuiModal",
|
|
1372
1377
|
slot: "Root",
|
|
1373
1378
|
overridesResolver: (t, n) => {
|
|
@@ -1376,7 +1381,7 @@ const Jt = (t) => {
|
|
|
1376
1381
|
} = t;
|
|
1377
1382
|
return [n.root, !o.open && o.exited && n.hidden];
|
|
1378
1383
|
}
|
|
1379
|
-
})(
|
|
1384
|
+
})(gt(({
|
|
1380
1385
|
theme: t
|
|
1381
1386
|
}) => ({
|
|
1382
1387
|
position: "fixed",
|
|
@@ -1393,17 +1398,17 @@ const Jt = (t) => {
|
|
|
1393
1398
|
visibility: "hidden"
|
|
1394
1399
|
}
|
|
1395
1400
|
}]
|
|
1396
|
-
}))),
|
|
1401
|
+
}))), en = q(rt, {
|
|
1397
1402
|
name: "MuiModal",
|
|
1398
1403
|
slot: "Backdrop"
|
|
1399
1404
|
})({
|
|
1400
1405
|
zIndex: -1
|
|
1401
|
-
}),
|
|
1406
|
+
}), st = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
1402
1407
|
const r = pe({
|
|
1403
1408
|
name: "MuiModal",
|
|
1404
1409
|
props: n
|
|
1405
1410
|
}), {
|
|
1406
|
-
BackdropComponent: a =
|
|
1411
|
+
BackdropComponent: a = en,
|
|
1407
1412
|
BackdropProps: s,
|
|
1408
1413
|
classes: i,
|
|
1409
1414
|
className: c,
|
|
@@ -1449,13 +1454,13 @@ const Jt = (t) => {
|
|
|
1449
1454
|
isTopModal: v,
|
|
1450
1455
|
exited: I,
|
|
1451
1456
|
hasTransition: te
|
|
1452
|
-
} =
|
|
1457
|
+
} = Xt({
|
|
1453
1458
|
...S,
|
|
1454
1459
|
rootRef: o
|
|
1455
1460
|
}), W = {
|
|
1456
1461
|
...S,
|
|
1457
1462
|
exited: I
|
|
1458
|
-
}, ne =
|
|
1463
|
+
}, ne = Qt(W), G = {};
|
|
1459
1464
|
if (T.props.tabIndex === void 0 && (G.tabIndex = "-1"), te) {
|
|
1460
1465
|
const {
|
|
1461
1466
|
onEnter: N,
|
|
@@ -1475,7 +1480,7 @@ const Jt = (t) => {
|
|
|
1475
1480
|
}
|
|
1476
1481
|
}, [Pe, ve] = z("root", {
|
|
1477
1482
|
ref: o,
|
|
1478
|
-
elementType:
|
|
1483
|
+
elementType: Zt,
|
|
1479
1484
|
externalForwardedProps: {
|
|
1480
1485
|
...me,
|
|
1481
1486
|
...$,
|
|
@@ -1518,7 +1523,7 @@ const Jt = (t) => {
|
|
|
1518
1523
|
})
|
|
1519
1524
|
});
|
|
1520
1525
|
});
|
|
1521
|
-
process.env.NODE_ENV !== "production" && (
|
|
1526
|
+
process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
1522
1527
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1523
1528
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1524
1529
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1689,7 +1694,7 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
|
1689
1694
|
*/
|
|
1690
1695
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1691
1696
|
});
|
|
1692
|
-
function
|
|
1697
|
+
function tn(t) {
|
|
1693
1698
|
return le("MuiPopover", t);
|
|
1694
1699
|
}
|
|
1695
1700
|
ue("MuiPopover", ["root", "paper"]);
|
|
@@ -1707,18 +1712,18 @@ function _e(t) {
|
|
|
1707
1712
|
function ie(t) {
|
|
1708
1713
|
return typeof t == "function" ? t() : t;
|
|
1709
1714
|
}
|
|
1710
|
-
const
|
|
1715
|
+
const nn = (t) => {
|
|
1711
1716
|
const {
|
|
1712
1717
|
classes: n
|
|
1713
1718
|
} = t;
|
|
1714
1719
|
return de({
|
|
1715
1720
|
root: ["root"],
|
|
1716
1721
|
paper: ["paper"]
|
|
1717
|
-
},
|
|
1718
|
-
},
|
|
1722
|
+
}, tn, n);
|
|
1723
|
+
}, on = q(st, {
|
|
1719
1724
|
name: "MuiPopover",
|
|
1720
1725
|
slot: "Root"
|
|
1721
|
-
})({}),
|
|
1726
|
+
})({}), it = q(yt, {
|
|
1722
1727
|
name: "MuiPopover",
|
|
1723
1728
|
slot: "Paper"
|
|
1724
1729
|
})({
|
|
@@ -1733,7 +1738,7 @@ const tn = (t) => {
|
|
|
1733
1738
|
maxHeight: "calc(100% - 32px)",
|
|
1734
1739
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1735
1740
|
outline: 0
|
|
1736
|
-
}),
|
|
1741
|
+
}), at = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
1737
1742
|
const r = pe({
|
|
1738
1743
|
props: n,
|
|
1739
1744
|
name: "MuiPopover"
|
|
@@ -1777,13 +1782,13 @@ const tn = (t) => {
|
|
|
1777
1782
|
TransitionComponent: u,
|
|
1778
1783
|
transitionDuration: p,
|
|
1779
1784
|
TransitionProps: g
|
|
1780
|
-
}, H =
|
|
1785
|
+
}, H = nn(w), D = l.useCallback(() => {
|
|
1781
1786
|
if (d === "anchorPosition")
|
|
1782
1787
|
return process.env.NODE_ENV !== "production" && (c || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), c;
|
|
1783
1788
|
const N = ie(s), j = N && N.nodeType === 1 ? N : _(E.current).body, V = j.getBoundingClientRect();
|
|
1784
1789
|
if (process.env.NODE_ENV !== "production") {
|
|
1785
1790
|
const Y = j.getBoundingClientRect();
|
|
1786
|
-
|
|
1791
|
+
tt() && Y.top === 0 && Y.left === 0 && Y.right === 0 && Y.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(`
|
|
1787
1792
|
`));
|
|
1788
1793
|
}
|
|
1789
1794
|
return {
|
|
@@ -1849,7 +1854,7 @@ const tn = (t) => {
|
|
|
1849
1854
|
} : null, [b, m]), l.useEffect(() => {
|
|
1850
1855
|
if (!b)
|
|
1851
1856
|
return;
|
|
1852
|
-
const N =
|
|
1857
|
+
const N = Ot(() => {
|
|
1853
1858
|
m();
|
|
1854
1859
|
}), j = X(ie(s));
|
|
1855
1860
|
return j.addEventListener("resize", N), () => {
|
|
@@ -1892,7 +1897,7 @@ const tn = (t) => {
|
|
|
1892
1897
|
...ve
|
|
1893
1898
|
}] = z("root", {
|
|
1894
1899
|
ref: o,
|
|
1895
|
-
elementType:
|
|
1900
|
+
elementType: on,
|
|
1896
1901
|
externalForwardedProps: {
|
|
1897
1902
|
...I,
|
|
1898
1903
|
...P
|
|
@@ -1903,7 +1908,7 @@ const tn = (t) => {
|
|
|
1903
1908
|
backdrop: M.backdrop
|
|
1904
1909
|
},
|
|
1905
1910
|
slotProps: {
|
|
1906
|
-
backdrop:
|
|
1911
|
+
backdrop: Tt(typeof y.backdrop == "function" ? y.backdrop(w) : y.backdrop, {
|
|
1907
1912
|
invisible: !0
|
|
1908
1913
|
})
|
|
1909
1914
|
},
|
|
@@ -1915,7 +1920,7 @@ const tn = (t) => {
|
|
|
1915
1920
|
}), [xe, Re] = z("paper", {
|
|
1916
1921
|
ref: E,
|
|
1917
1922
|
className: H.paper,
|
|
1918
|
-
elementType:
|
|
1923
|
+
elementType: it,
|
|
1919
1924
|
externalForwardedProps: I,
|
|
1920
1925
|
shouldForwardComponentProp: !0,
|
|
1921
1926
|
additionalProps: {
|
|
@@ -1928,7 +1933,7 @@ const tn = (t) => {
|
|
|
1928
1933
|
});
|
|
1929
1934
|
return /* @__PURE__ */ A.jsx(G, {
|
|
1930
1935
|
...ve,
|
|
1931
|
-
...!
|
|
1936
|
+
...!mt(G) && {
|
|
1932
1937
|
slots: me,
|
|
1933
1938
|
slotProps: Pe,
|
|
1934
1939
|
disableScrollLock: k
|
|
@@ -1943,7 +1948,7 @@ const tn = (t) => {
|
|
|
1943
1948
|
})
|
|
1944
1949
|
});
|
|
1945
1950
|
});
|
|
1946
|
-
process.env.NODE_ENV !== "production" && (
|
|
1951
|
+
process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
1947
1952
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1948
1953
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1949
1954
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1952,7 +1957,7 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
1952
1957
|
* A ref for imperative actions.
|
|
1953
1958
|
* It currently only supports updatePosition() action.
|
|
1954
1959
|
*/
|
|
1955
|
-
action:
|
|
1960
|
+
action: ht,
|
|
1956
1961
|
/**
|
|
1957
1962
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
1958
1963
|
* or a function that returns either.
|
|
@@ -1963,7 +1968,7 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
1963
1968
|
const n = ie(t.anchorEl);
|
|
1964
1969
|
if (n && n.nodeType === 1) {
|
|
1965
1970
|
const o = n.getBoundingClientRect();
|
|
1966
|
-
if (process.env.NODE_ENV !== "
|
|
1971
|
+
if (process.env.NODE_ENV !== "production" && tt() && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
|
|
1967
1972
|
return new Error(["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(`
|
|
1968
1973
|
`));
|
|
1969
1974
|
} else
|
|
@@ -2051,7 +2056,7 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
2051
2056
|
* The elevation of the popover.
|
|
2052
2057
|
* @default 8
|
|
2053
2058
|
*/
|
|
2054
|
-
elevation:
|
|
2059
|
+
elevation: Et,
|
|
2055
2060
|
/**
|
|
2056
2061
|
* Specifies how close to the edge of the window the popover can appear.
|
|
2057
2062
|
* If null, the popover will not be constrained by the window.
|
|
@@ -2076,7 +2081,7 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
2076
2081
|
* @default {}
|
|
2077
2082
|
*/
|
|
2078
2083
|
PaperProps: e.shape({
|
|
2079
|
-
component:
|
|
2084
|
+
component: bt
|
|
2080
2085
|
}),
|
|
2081
2086
|
/**
|
|
2082
2087
|
* The props used for each slot inside.
|
|
@@ -2142,17 +2147,17 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
2142
2147
|
*/
|
|
2143
2148
|
TransitionProps: e.object
|
|
2144
2149
|
});
|
|
2145
|
-
function
|
|
2150
|
+
function rn(t) {
|
|
2146
2151
|
return le("MuiMenu", t);
|
|
2147
2152
|
}
|
|
2148
2153
|
ue("MuiMenu", ["root", "paper", "list"]);
|
|
2149
|
-
const
|
|
2154
|
+
const sn = {
|
|
2150
2155
|
vertical: "top",
|
|
2151
2156
|
horizontal: "right"
|
|
2152
|
-
},
|
|
2157
|
+
}, an = {
|
|
2153
2158
|
vertical: "top",
|
|
2154
2159
|
horizontal: "left"
|
|
2155
|
-
},
|
|
2160
|
+
}, cn = (t) => {
|
|
2156
2161
|
const {
|
|
2157
2162
|
classes: n
|
|
2158
2163
|
} = t;
|
|
@@ -2160,12 +2165,12 @@ const rn = {
|
|
|
2160
2165
|
root: ["root"],
|
|
2161
2166
|
paper: ["paper"],
|
|
2162
2167
|
list: ["list"]
|
|
2163
|
-
},
|
|
2164
|
-
},
|
|
2165
|
-
shouldForwardProp: (t) =>
|
|
2168
|
+
}, rn, n);
|
|
2169
|
+
}, ln = q(at, {
|
|
2170
|
+
shouldForwardProp: (t) => ct(t) || t === "classes",
|
|
2166
2171
|
name: "MuiMenu",
|
|
2167
2172
|
slot: "Root"
|
|
2168
|
-
})({}),
|
|
2173
|
+
})({}), un = q(it, {
|
|
2169
2174
|
name: "MuiMenu",
|
|
2170
2175
|
slot: "Paper"
|
|
2171
2176
|
})({
|
|
@@ -2175,13 +2180,13 @@ const rn = {
|
|
|
2175
2180
|
maxHeight: "calc(100% - 96px)",
|
|
2176
2181
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
2177
2182
|
WebkitOverflowScrolling: "touch"
|
|
2178
|
-
}),
|
|
2183
|
+
}), pn = q(et, {
|
|
2179
2184
|
name: "MuiMenu",
|
|
2180
2185
|
slot: "List"
|
|
2181
2186
|
})({
|
|
2182
2187
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
2183
2188
|
outline: 0
|
|
2184
|
-
}),
|
|
2189
|
+
}), dn = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
2185
2190
|
const r = pe({
|
|
2186
2191
|
props: n,
|
|
2187
2192
|
name: "MuiMenu"
|
|
@@ -2204,7 +2209,7 @@ const rn = {
|
|
|
2204
2209
|
slots: y = {},
|
|
2205
2210
|
slotProps: R = {},
|
|
2206
2211
|
...u
|
|
2207
|
-
} = r, p =
|
|
2212
|
+
} = r, p = Rt(), g = {
|
|
2208
2213
|
...r,
|
|
2209
2214
|
autoFocus: a,
|
|
2210
2215
|
disableAutoFocusItem: c,
|
|
@@ -2214,7 +2219,7 @@ const rn = {
|
|
|
2214
2219
|
transitionDuration: h,
|
|
2215
2220
|
TransitionProps: F,
|
|
2216
2221
|
variant: M
|
|
2217
|
-
}, k =
|
|
2222
|
+
}, k = cn(g), P = a && !c && O, E = l.useRef(null), w = (v, I) => {
|
|
2218
2223
|
E.current && E.current.adjustStyleForScrollbar(v, {
|
|
2219
2224
|
direction: p ? "rtl" : "ltr"
|
|
2220
2225
|
}), b && b(v, I);
|
|
@@ -2234,20 +2239,20 @@ const rn = {
|
|
|
2234
2239
|
paper: x,
|
|
2235
2240
|
...R
|
|
2236
2241
|
}
|
|
2237
|
-
}, $ =
|
|
2242
|
+
}, $ = wt({
|
|
2238
2243
|
elementType: y.root,
|
|
2239
2244
|
externalSlotProps: R.root,
|
|
2240
2245
|
ownerState: g,
|
|
2241
2246
|
className: [k.root, i]
|
|
2242
2247
|
}), [S, f] = z("paper", {
|
|
2243
2248
|
className: k.paper,
|
|
2244
|
-
elementType:
|
|
2249
|
+
elementType: un,
|
|
2245
2250
|
externalForwardedProps: B,
|
|
2246
2251
|
shouldForwardComponentProp: !0,
|
|
2247
2252
|
ownerState: g
|
|
2248
2253
|
}), [m, L] = z("list", {
|
|
2249
2254
|
className: ee(k.list, d.className),
|
|
2250
|
-
elementType:
|
|
2255
|
+
elementType: pn,
|
|
2251
2256
|
shouldForwardComponentProp: !0,
|
|
2252
2257
|
externalForwardedProps: B,
|
|
2253
2258
|
getSlotProps: (v) => ({
|
|
@@ -2258,13 +2263,13 @@ const rn = {
|
|
|
2258
2263
|
}),
|
|
2259
2264
|
ownerState: g
|
|
2260
2265
|
}), K = typeof B.slotProps.transition == "function" ? B.slotProps.transition(g) : B.slotProps.transition;
|
|
2261
|
-
return /* @__PURE__ */ A.jsx(
|
|
2266
|
+
return /* @__PURE__ */ A.jsx(ln, {
|
|
2262
2267
|
onClose: T,
|
|
2263
2268
|
anchorOrigin: {
|
|
2264
2269
|
vertical: "bottom",
|
|
2265
2270
|
horizontal: p ? "right" : "left"
|
|
2266
2271
|
},
|
|
2267
|
-
transformOrigin: p ?
|
|
2272
|
+
transformOrigin: p ? sn : an,
|
|
2268
2273
|
slots: {
|
|
2269
2274
|
root: y.root,
|
|
2270
2275
|
paper: S,
|
|
@@ -2301,7 +2306,7 @@ const rn = {
|
|
|
2301
2306
|
})
|
|
2302
2307
|
});
|
|
2303
2308
|
});
|
|
2304
|
-
process.env.NODE_ENV !== "production" && (
|
|
2309
|
+
process.env.NODE_ENV !== "production" && (dn.propTypes = {
|
|
2305
2310
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2306
2311
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2307
2312
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2413,23 +2418,24 @@ process.env.NODE_ENV !== "production" && (pn.propTypes = {
|
|
|
2413
2418
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2414
2419
|
});
|
|
2415
2420
|
export {
|
|
2416
|
-
|
|
2417
|
-
|
|
2421
|
+
rt as B,
|
|
2422
|
+
ot as F,
|
|
2418
2423
|
ge as G,
|
|
2419
2424
|
ce as H,
|
|
2420
2425
|
Xe as L,
|
|
2421
|
-
|
|
2422
|
-
|
|
2426
|
+
dn as M,
|
|
2427
|
+
at as P,
|
|
2423
2428
|
_ as a,
|
|
2424
|
-
|
|
2429
|
+
wt as b,
|
|
2425
2430
|
se as c,
|
|
2426
|
-
|
|
2431
|
+
Ot as d,
|
|
2427
2432
|
et as e,
|
|
2428
2433
|
Ee as f,
|
|
2429
2434
|
Te as g,
|
|
2430
2435
|
ye as h,
|
|
2431
|
-
|
|
2432
|
-
|
|
2436
|
+
tt as i,
|
|
2437
|
+
Je as j,
|
|
2438
|
+
st as k,
|
|
2433
2439
|
X as o,
|
|
2434
|
-
|
|
2440
|
+
Rt as u
|
|
2435
2441
|
};
|