@solostylist/ui-kit 1.0.11 → 1.0.13
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/README.md +1 -1
- package/dist/{Box-DyPisl7H.js → Box-BAmUWsQI.js} +4 -4
- package/dist/{Menu-CzI0zcbw.js → Menu-B8rPlcSd.js} +426 -420
- package/dist/{Stack-DIkbVcfm.js → Stack-DDbGEkxd.js} +17 -18
- package/dist/{Typography-jSFidXje.js → Typography-DiJzGJJd.js} +4 -4
- package/dist/{buttonBaseClasses-DxKwiRBX.js → buttonBaseClasses-DuDP2bLR.js} +2 -2
- package/dist/{createSvgIcon-B7_s-URK.js → createSvgIcon-Bpes8W5L.js} +20 -20
- package/dist/{createTheme-BZxWCiBm.js → createTheme-DDycScYN.js} +294 -263
- package/dist/{extendSxProp-SCsFy5tr.js → extendSxProp-De4gGzfV.js} +1 -1
- package/dist/{generateUtilityClasses-STjIp_B9.js → generateUtilityClasses-Z7VQRhBn.js} +1 -1
- package/dist/hooks/use-popover.d.ts +1 -1
- package/dist/{iconButtonClasses-CqYTUZq-.js → iconButtonClasses-8TuGhR-e.js} +2 -2
- package/dist/{index-DljiS4x1.js → index-CBHvlAxO.js} +4 -4
- package/dist/main.d.ts +0 -13
- package/dist/main.js +73 -99
- package/dist/{memoTheme-CaOW5YiB.js → memoTheme-DX35GGEJ.js} +30 -30
- package/dist/{menuItemClasses-BxqenSTj.js → menuItemClasses-DLFqc90k.js} +2 -2
- package/dist/outlinedInputClasses-CnRkAD7A.js +19 -0
- package/dist/s-button-link/s-button-link.d.ts +2 -3
- package/dist/s-button-link/s-button-link.js +11 -12
- package/dist/s-checkbox/s-checkbox.js +8 -9
- package/dist/s-chips/s-chips.js +6 -7
- package/dist/s-data-table/s-data-table.js +232 -233
- package/dist/s-dialog-confirm/s-dialog-confirm.js +26 -27
- package/dist/s-dialog-message/s-dialog-message.js +27 -28
- package/dist/s-file-dropzone/s-file-dropzone.js +27 -29
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +318 -33
- package/dist/s-pagination/s-pagination.d.ts +2 -1
- package/dist/s-pagination/s-pagination.js +12 -15
- package/dist/s-select/s-select.js +10 -11
- package/dist/s-text-editor/s-text-editor-toolbar.js +506 -508
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{selectClasses-BaagNb21.js → selectClasses-CDFwg8w_.js} +2 -2
- package/dist/{svgIconClasses-SzHbWjUv.js → svgIconClasses-XJq1Ciua.js} +2 -2
- package/dist/theme/{customizations/components → components}/avatar.js +2 -2
- package/dist/theme/components/components.d.ts +2 -1126
- package/dist/theme/components/components.js +4 -108
- package/dist/theme/customizations/data-display.js +98 -58
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +5 -5
- package/dist/theme/customizations/navigation.js +24 -24
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-BrhUWCU3.js → typographyClasses-CyVhKkh8.js} +2 -2
- package/dist/useSlot-B682hoPx.js +1179 -0
- package/dist/{useTheme-DrS6mww6.js → useTheme-DPznNGA-.js} +1 -1
- package/package.json +1 -1
- package/dist/ButtonBase-BFsNsbc9.js +0 -999
- package/dist/CaretDown-CZu0drmJ.js +0 -41
- package/dist/MenuItem-Bl45WcKS.js +0 -258
- package/dist/backdropClasses-lc38rgzd.js +0 -10
- package/dist/generateUtilityClass-CRH_bFW6.js +0 -34
- package/dist/inputBaseClasses-BRd7g4Od.js +0 -10
- package/dist/listItemIconClasses-D-kc0Y9u.js +0 -5
- package/dist/outlinedInputClasses-BTtPbpE5.js +0 -14
- package/dist/paperClasses-D1WMlaxU.js +0 -10
- package/dist/s-avatar/index.d.ts +0 -1
- package/dist/s-avatar/index.js +0 -4
- package/dist/s-avatar/package.json +0 -5
- package/dist/s-avatar/s-avatar.d.ts +0 -6
- package/dist/s-avatar/s-avatar.js +0 -6
- package/dist/s-box/index.d.ts +0 -1
- package/dist/s-box/index.js +0 -4
- package/dist/s-box/package.json +0 -5
- package/dist/s-box/s-box.d.ts +0 -5
- package/dist/s-box/s-box.js +0 -6
- package/dist/s-breadcrumbs-separator/index.d.ts +0 -1
- package/dist/s-breadcrumbs-separator/index.js +0 -4
- package/dist/s-breadcrumbs-separator/package.json +0 -5
- package/dist/s-breadcrumbs-separator/s-breadcrumbs-separator.d.ts +0 -3
- package/dist/s-breadcrumbs-separator/s-breadcrumbs-separator.js +0 -6
- package/dist/s-button/index.d.ts +0 -1
- package/dist/s-button/index.js +0 -4
- package/dist/s-button/package.json +0 -5
- package/dist/s-button/s-button.d.ts +0 -6
- package/dist/s-button/s-button.js +0 -18
- package/dist/s-card/index.d.ts +0 -1
- package/dist/s-card/index.js +0 -4
- package/dist/s-card/package.json +0 -5
- package/dist/s-card/s-card.d.ts +0 -6
- package/dist/s-card/s-card.js +0 -6
- package/dist/s-card-actions/index.d.ts +0 -1
- package/dist/s-card-actions/index.js +0 -4
- package/dist/s-card-actions/package.json +0 -5
- package/dist/s-card-actions/s-card-actions.d.ts +0 -6
- package/dist/s-card-actions/s-card-actions.js +0 -6
- package/dist/s-card-content/index.d.ts +0 -1
- package/dist/s-card-content/index.js +0 -4
- package/dist/s-card-content/package.json +0 -5
- package/dist/s-card-content/s-card-content.d.ts +0 -6
- package/dist/s-card-content/s-card-content.js +0 -6
- package/dist/s-card-header/index.d.ts +0 -1
- package/dist/s-card-header/index.js +0 -4
- package/dist/s-card-header/package.json +0 -5
- package/dist/s-card-header/s-card-header.d.ts +0 -6
- package/dist/s-card-header/s-card-header.js +0 -6
- package/dist/s-chip/index.d.ts +0 -1
- package/dist/s-chip/index.js +0 -4
- package/dist/s-chip/package.json +0 -5
- package/dist/s-chip/s-chip.d.ts +0 -6
- package/dist/s-chip/s-chip.js +0 -6
- package/dist/s-link/index.d.ts +0 -1
- package/dist/s-link/index.js +0 -4
- package/dist/s-link/package.json +0 -5
- package/dist/s-link/s-link.d.ts +0 -6
- package/dist/s-link/s-link.js +0 -6
- package/dist/s-menu-item/index.d.ts +0 -1
- package/dist/s-menu-item/index.js +0 -4
- package/dist/s-menu-item/package.json +0 -5
- package/dist/s-menu-item/s-menu-item.d.ts +0 -9
- package/dist/s-menu-item/s-menu-item.js +0 -6
- package/dist/s-rating/index.d.ts +0 -1
- package/dist/s-rating/index.js +0 -4
- package/dist/s-rating/package.json +0 -5
- package/dist/s-rating/s-rating.d.ts +0 -7
- package/dist/s-rating/s-rating.js +0 -6
- package/dist/s-stack/index.d.ts +0 -1
- package/dist/s-stack/index.js +0 -4
- package/dist/s-stack/package.json +0 -5
- package/dist/s-stack/s-stack.d.ts +0 -5
- package/dist/s-stack/s-stack.js +0 -6
- package/dist/tabClasses-CDDkt7la.js +0 -5
- package/dist/tableCellClasses-CBw1aep0.js +0 -10
- package/dist/theme/components/accordion.d.ts +0 -8
- package/dist/theme/components/accordion.js +0 -11
- package/dist/theme/components/alert.d.ts +0 -7
- package/dist/theme/components/alert.js +0 -4
- package/dist/theme/components/autocomplete.d.ts +0 -124
- package/dist/theme/components/autocomplete.js +0 -51
- package/dist/theme/components/backdrop.d.ts +0 -9
- package/dist/theme/components/backdrop.js +0 -9
- package/dist/theme/components/button-base.d.ts +0 -5
- package/dist/theme/components/button-base.js +0 -4
- package/dist/theme/components/button-group.d.ts +0 -5
- package/dist/theme/components/button-group.js +0 -4
- package/dist/theme/components/button.d.ts +0 -156
- package/dist/theme/components/button.js +0 -109
- package/dist/theme/components/card-actions.d.ts +0 -7
- package/dist/theme/components/card-actions.js +0 -6
- package/dist/theme/components/card-content.d.ts +0 -10
- package/dist/theme/components/card-content.js +0 -7
- package/dist/theme/components/card-header.d.ts +0 -25
- package/dist/theme/components/card-header.js +0 -20
- package/dist/theme/components/card.d.ts +0 -17
- package/dist/theme/components/card.js +0 -17
- package/dist/theme/components/checkbox.d.ts +0 -18
- package/dist/theme/components/checkbox.js +0 -60
- package/dist/theme/components/chip.d.ts +0 -28
- package/dist/theme/components/chip.js +0 -62
- package/dist/theme/components/dialog-actions.d.ts +0 -7
- package/dist/theme/components/dialog-actions.js +0 -6
- package/dist/theme/components/dialog-content-text.d.ts +0 -8
- package/dist/theme/components/dialog-content-text.js +0 -6
- package/dist/theme/components/dialog-content.d.ts +0 -8
- package/dist/theme/components/dialog-content.js +0 -6
- package/dist/theme/components/dialog-title.d.ts +0 -7
- package/dist/theme/components/dialog-title.js +0 -6
- package/dist/theme/components/filled-input.d.ts +0 -31
- package/dist/theme/components/filled-input.js +0 -21
- package/dist/theme/components/form-control-label.d.ts +0 -15
- package/dist/theme/components/form-control-label.js +0 -7
- package/dist/theme/components/form-group.d.ts +0 -7
- package/dist/theme/components/form-group.js +0 -4
- package/dist/theme/components/form-helper-text.d.ts +0 -8
- package/dist/theme/components/form-helper-text.js +0 -8
- package/dist/theme/components/form-label.d.ts +0 -12
- package/dist/theme/components/form-label.js +0 -9
- package/dist/theme/components/icon-button.d.ts +0 -83
- package/dist/theme/components/icon-button.js +0 -49
- package/dist/theme/components/input-base.d.ts +0 -39
- package/dist/theme/components/input-base.js +0 -34
- package/dist/theme/components/input-label.d.ts +0 -10
- package/dist/theme/components/input-label.js +0 -6
- package/dist/theme/components/input.d.ts +0 -32
- package/dist/theme/components/input.js +0 -22
- package/dist/theme/components/linear-progress.d.ts +0 -8
- package/dist/theme/components/linear-progress.js +0 -6
- package/dist/theme/components/link.d.ts +0 -10
- package/dist/theme/components/link.js +0 -11
- package/dist/theme/components/list-item-avatar.d.ts +0 -7
- package/dist/theme/components/list-item-avatar.js +0 -6
- package/dist/theme/components/list-item-button.d.ts +0 -10
- package/dist/theme/components/list-item-button.js +0 -7
- package/dist/theme/components/list-item-icon.d.ts +0 -9
- package/dist/theme/components/list-item-icon.js +0 -6
- package/dist/theme/components/list-item-text.d.ts +0 -7
- package/dist/theme/components/list-item-text.js +0 -6
- package/dist/theme/components/list-item.d.ts +0 -7
- package/dist/theme/components/list-item.js +0 -6
- package/dist/theme/components/list.d.ts +0 -7
- package/dist/theme/components/list.js +0 -6
- package/dist/theme/components/menu-item.d.ts +0 -17
- package/dist/theme/components/menu-item.js +0 -17
- package/dist/theme/components/menu.d.ts +0 -13
- package/dist/theme/components/menu.js +0 -7
- package/dist/theme/components/outlined-input.d.ts +0 -127
- package/dist/theme/components/outlined-input.js +0 -47
- package/dist/theme/components/paper.d.ts +0 -7
- package/dist/theme/components/paper.js +0 -6
- package/dist/theme/components/popover.d.ts +0 -11
- package/dist/theme/components/popover.js +0 -7
- package/dist/theme/components/radio.d.ts +0 -13
- package/dist/theme/components/radio.js +0 -25
- package/dist/theme/components/select.d.ts +0 -21
- package/dist/theme/components/select.js +0 -18
- package/dist/theme/components/skeleton.d.ts +0 -5
- package/dist/theme/components/skeleton.js +0 -8
- package/dist/theme/components/stack.d.ts +0 -5
- package/dist/theme/components/stack.js +0 -4
- package/dist/theme/components/switch.d.ts +0 -19
- package/dist/theme/components/switch.js +0 -11
- package/dist/theme/components/tab.d.ts +0 -18
- package/dist/theme/components/tab.js +0 -15
- package/dist/theme/components/table-body.d.ts +0 -5
- package/dist/theme/components/table-body.js +0 -10
- package/dist/theme/components/table-cell.d.ts +0 -10
- package/dist/theme/components/table-cell.js +0 -11
- package/dist/theme/components/table-head.d.ts +0 -11
- package/dist/theme/components/table-head.js +0 -15
- package/dist/theme/components/table-pagination.d.ts +0 -28
- package/dist/theme/components/table-pagination.js +0 -93
- package/dist/theme/components/tabs.d.ts +0 -33
- package/dist/theme/components/tabs.js +0 -21
- package/dist/theme/components/toggle-button-group.d.ts +0 -23
- package/dist/theme/components/toggle-button-group.js +0 -17
- package/dist/theme/components/toggle-button.d.ts +0 -12
- package/dist/theme/components/toggle-button.js +0 -9
- package/dist/theme/components/tooltip.d.ts +0 -10
- package/dist/theme/components/tooltip.js +0 -7
- package/dist/theme/customizations/components/components.d.ts +0 -7
- package/dist/theme/customizations/components/components.js +0 -7
- package/dist/useSlot-CtsS_jy6.js +0 -184
- /package/dist/theme/{customizations/components → components}/avatar.d.ts +0 -0
|
@@ -1,50 +1,45 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import
|
|
3
|
-
import { P as e, a as ze,
|
|
4
|
-
import { T as
|
|
2
|
+
import be from "react";
|
|
3
|
+
import { P as e, g as se, a as ze, p as We, l as st } from "./createTheme-DDycScYN.js";
|
|
4
|
+
import { T as wt, c as ee } from "./identifier-CHPjnqaz.js";
|
|
5
5
|
import { j as L } from "./jsx-runtime-C5mzlN2N.js";
|
|
6
|
-
import { d as
|
|
7
|
-
import { g as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import { g as Ht } from "./backdropClasses-lc38rgzd.js";
|
|
16
|
-
import { g as Bt } from "./paperClasses-D1WMlaxU.js";
|
|
17
|
-
import { u as zt } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
18
|
-
import { L as Wt } from "./MenuItem-Bl45WcKS.js";
|
|
19
|
-
const Gt = /* @__PURE__ */ p.createContext();
|
|
6
|
+
import { d as St, u as ae, s as z, c as le, m as at, b as Ct } from "./memoTheme-DX35GGEJ.js";
|
|
7
|
+
import { g as ce } from "./generateUtilityClasses-Z7VQRhBn.js";
|
|
8
|
+
import { _ as Mt, b as kt, T as lt, c as Ne, d as Dt, u as we, a as G, e as It, m as jt, r as Ft, f as Lt, g as At, h as _t, i as $t } from "./useSlot-B682hoPx.js";
|
|
9
|
+
import { u as Vt } from "./useTheme-DPznNGA-.js";
|
|
10
|
+
import * as Ut from "react-dom";
|
|
11
|
+
import Ee from "react-dom";
|
|
12
|
+
import { unstable_getScrollbarSize as qt, unstable_ownerWindow as ye, unstable_ownerDocument as ie, unstable_useForkRef as Ve, unstable_getReactElementRef as ct, elementAcceptingRef as Kt, exactProp as ut, unstable_useEnhancedEffect as Ge, unstable_setRef as Xe, HTMLElementType as Bt, unstable_useEventCallback as Ye, unstable_createChainedFunction as Je } from "@mui/utils";
|
|
13
|
+
import { u as Ht } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
14
|
+
const zt = /* @__PURE__ */ p.createContext();
|
|
20
15
|
process.env.NODE_ENV !== "production" && (e.node, e.bool);
|
|
21
|
-
const
|
|
16
|
+
const Wt = () => p.useContext(zt) ?? !1;
|
|
22
17
|
function Ue() {
|
|
23
|
-
const t =
|
|
24
|
-
return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[
|
|
18
|
+
const t = Vt(St);
|
|
19
|
+
return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[wt] || t;
|
|
25
20
|
}
|
|
26
|
-
function
|
|
21
|
+
function Gt(t, n = 166) {
|
|
27
22
|
let r;
|
|
28
|
-
function
|
|
23
|
+
function i(...s) {
|
|
29
24
|
const o = () => {
|
|
30
|
-
t.apply(this,
|
|
25
|
+
t.apply(this, s);
|
|
31
26
|
};
|
|
32
27
|
clearTimeout(r), r = setTimeout(o, n);
|
|
33
28
|
}
|
|
34
|
-
return
|
|
29
|
+
return i.clear = () => {
|
|
35
30
|
clearTimeout(r);
|
|
36
|
-
},
|
|
31
|
+
}, i;
|
|
37
32
|
}
|
|
38
|
-
function
|
|
33
|
+
function ve(t) {
|
|
39
34
|
return t && t.ownerDocument || document;
|
|
40
35
|
}
|
|
41
36
|
function Le(t) {
|
|
42
|
-
return
|
|
37
|
+
return ve(t).defaultView || window;
|
|
43
38
|
}
|
|
44
39
|
const Qe = {
|
|
45
40
|
disabled: !1
|
|
46
41
|
};
|
|
47
|
-
var
|
|
42
|
+
var Xt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
|
|
48
43
|
enter: e.number,
|
|
49
44
|
exit: e.number,
|
|
50
45
|
appear: e.number
|
|
@@ -61,30 +56,30 @@ process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
|
|
|
61
56
|
exitDone: e.string,
|
|
62
57
|
exitActive: e.string
|
|
63
58
|
})]);
|
|
64
|
-
var
|
|
59
|
+
var Yt = function(n) {
|
|
65
60
|
return n.scrollTop;
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
function n(
|
|
61
|
+
}, de = "unmounted", Q = "exited", Z = "entering", re = "entered", Ae = "exiting", W = /* @__PURE__ */ function(t) {
|
|
62
|
+
Mt(n, t);
|
|
63
|
+
function n(i, s) {
|
|
69
64
|
var o;
|
|
70
|
-
o = t.call(this,
|
|
71
|
-
var a =
|
|
72
|
-
return o.appearStatus = null,
|
|
65
|
+
o = t.call(this, i, s) || this;
|
|
66
|
+
var a = s, l = a && !a.isMounting ? i.enter : i.appear, c;
|
|
67
|
+
return o.appearStatus = null, i.in ? l ? (c = Q, o.appearStatus = Z) : c = re : i.unmountOnExit || i.mountOnEnter ? c = de : c = Q, o.state = {
|
|
73
68
|
status: c
|
|
74
69
|
}, o.nextCallback = null, o;
|
|
75
70
|
}
|
|
76
|
-
n.getDerivedStateFromProps = function(
|
|
77
|
-
var a =
|
|
78
|
-
return a && o.status ===
|
|
71
|
+
n.getDerivedStateFromProps = function(s, o) {
|
|
72
|
+
var a = s.in;
|
|
73
|
+
return a && o.status === de ? {
|
|
79
74
|
status: Q
|
|
80
75
|
} : null;
|
|
81
76
|
};
|
|
82
77
|
var r = n.prototype;
|
|
83
78
|
return r.componentDidMount = function() {
|
|
84
79
|
this.updateStatus(!0, this.appearStatus);
|
|
85
|
-
}, r.componentDidUpdate = function(
|
|
80
|
+
}, r.componentDidUpdate = function(s) {
|
|
86
81
|
var o = null;
|
|
87
|
-
if (
|
|
82
|
+
if (s !== this.props) {
|
|
88
83
|
var a = this.state.status;
|
|
89
84
|
this.props.in ? a !== Z && a !== re && (o = Z) : (a === Z || a === re) && (o = Ae);
|
|
90
85
|
}
|
|
@@ -92,28 +87,28 @@ var Qt = function(n) {
|
|
|
92
87
|
}, r.componentWillUnmount = function() {
|
|
93
88
|
this.cancelNextCallback();
|
|
94
89
|
}, r.getTimeouts = function() {
|
|
95
|
-
var
|
|
96
|
-
return o = a = l =
|
|
90
|
+
var s = this.props.timeout, o, a, l;
|
|
91
|
+
return o = a = l = s, s != null && typeof s != "number" && (o = s.exit, a = s.enter, l = s.appear !== void 0 ? s.appear : a), {
|
|
97
92
|
exit: o,
|
|
98
93
|
enter: a,
|
|
99
94
|
appear: l
|
|
100
95
|
};
|
|
101
|
-
}, r.updateStatus = function(
|
|
102
|
-
if (
|
|
96
|
+
}, r.updateStatus = function(s, o) {
|
|
97
|
+
if (s === void 0 && (s = !1), o !== null)
|
|
103
98
|
if (this.cancelNextCallback(), o === Z) {
|
|
104
99
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
105
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current :
|
|
106
|
-
a &&
|
|
100
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : Ee.findDOMNode(this);
|
|
101
|
+
a && Yt(a);
|
|
107
102
|
}
|
|
108
|
-
this.performEnter(
|
|
103
|
+
this.performEnter(s);
|
|
109
104
|
} else
|
|
110
105
|
this.performExit();
|
|
111
106
|
else this.props.unmountOnExit && this.state.status === Q && this.setState({
|
|
112
|
-
status:
|
|
107
|
+
status: de
|
|
113
108
|
});
|
|
114
|
-
}, r.performEnter = function(
|
|
115
|
-
var o = this, a = this.props.enter, l = this.context ? this.context.isMounting :
|
|
116
|
-
if (!
|
|
109
|
+
}, r.performEnter = function(s) {
|
|
110
|
+
var o = this, a = this.props.enter, l = this.context ? this.context.isMounting : s, c = this.props.nodeRef ? [l] : [Ee.findDOMNode(this), l], b = c[0], T = c[1], v = this.getTimeouts(), N = l ? v.appear : v.enter;
|
|
111
|
+
if (!s && !a || Qe.disabled) {
|
|
117
112
|
this.safeSetState({
|
|
118
113
|
status: re
|
|
119
114
|
}, function() {
|
|
@@ -133,40 +128,40 @@ var Qt = function(n) {
|
|
|
133
128
|
});
|
|
134
129
|
});
|
|
135
130
|
}, r.performExit = function() {
|
|
136
|
-
var
|
|
131
|
+
var s = this, o = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Ee.findDOMNode(this);
|
|
137
132
|
if (!o || Qe.disabled) {
|
|
138
133
|
this.safeSetState({
|
|
139
134
|
status: Q
|
|
140
135
|
}, function() {
|
|
141
|
-
|
|
136
|
+
s.props.onExited(l);
|
|
142
137
|
});
|
|
143
138
|
return;
|
|
144
139
|
}
|
|
145
140
|
this.props.onExit(l), this.safeSetState({
|
|
146
141
|
status: Ae
|
|
147
142
|
}, function() {
|
|
148
|
-
|
|
149
|
-
|
|
143
|
+
s.props.onExiting(l), s.onTransitionEnd(a.exit, function() {
|
|
144
|
+
s.safeSetState({
|
|
150
145
|
status: Q
|
|
151
146
|
}, function() {
|
|
152
|
-
|
|
147
|
+
s.props.onExited(l);
|
|
153
148
|
});
|
|
154
149
|
});
|
|
155
150
|
});
|
|
156
151
|
}, r.cancelNextCallback = function() {
|
|
157
152
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
158
|
-
}, r.safeSetState = function(
|
|
159
|
-
o = this.setNextCallback(o), this.setState(
|
|
160
|
-
}, r.setNextCallback = function(
|
|
153
|
+
}, r.safeSetState = function(s, o) {
|
|
154
|
+
o = this.setNextCallback(o), this.setState(s, o);
|
|
155
|
+
}, r.setNextCallback = function(s) {
|
|
161
156
|
var o = this, a = !0;
|
|
162
157
|
return this.nextCallback = function(l) {
|
|
163
|
-
a && (a = !1, o.nextCallback = null,
|
|
158
|
+
a && (a = !1, o.nextCallback = null, s(l));
|
|
164
159
|
}, this.nextCallback.cancel = function() {
|
|
165
160
|
a = !1;
|
|
166
161
|
}, this.nextCallback;
|
|
167
|
-
}, r.onTransitionEnd = function(
|
|
162
|
+
}, r.onTransitionEnd = function(s, o) {
|
|
168
163
|
this.setNextCallback(o);
|
|
169
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current :
|
|
164
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : Ee.findDOMNode(this), l = s == null && !this.props.addEndListener;
|
|
170
165
|
if (!a || l) {
|
|
171
166
|
setTimeout(this.nextCallback, 0);
|
|
172
167
|
return;
|
|
@@ -175,22 +170,22 @@ var Qt = function(n) {
|
|
|
175
170
|
var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], b = c[0], T = c[1];
|
|
176
171
|
this.props.addEndListener(b, T);
|
|
177
172
|
}
|
|
178
|
-
|
|
173
|
+
s != null && setTimeout(this.nextCallback, s);
|
|
179
174
|
}, r.render = function() {
|
|
180
|
-
var
|
|
181
|
-
if (
|
|
175
|
+
var s = this.state.status;
|
|
176
|
+
if (s === de)
|
|
182
177
|
return null;
|
|
183
178
|
var o = this.props, a = o.children;
|
|
184
179
|
o.in, o.mountOnEnter, o.unmountOnExit, o.appear, o.enter, o.exit, o.timeout, o.addEndListener, o.onEnter, o.onEntering, o.onEntered, o.onExit, o.onExiting, o.onExited, o.nodeRef;
|
|
185
|
-
var l =
|
|
180
|
+
var l = kt(o, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
186
181
|
return (
|
|
187
182
|
// allows for nested Transitions
|
|
188
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ be.createElement(lt.Provider, {
|
|
189
184
|
value: null
|
|
190
|
-
}, typeof a == "function" ? a(
|
|
185
|
+
}, typeof a == "function" ? a(s, l) : be.cloneElement(be.Children.only(a), l))
|
|
191
186
|
);
|
|
192
187
|
}, n;
|
|
193
|
-
}(
|
|
188
|
+
}(be.Component);
|
|
194
189
|
W.contextType = lt;
|
|
195
190
|
W.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
196
191
|
/**
|
|
@@ -205,9 +200,9 @@ W.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
205
200
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
206
201
|
*/
|
|
207
202
|
nodeRef: e.shape({
|
|
208
|
-
current: typeof Element > "u" ? e.any : function(t, n, r,
|
|
203
|
+
current: typeof Element > "u" ? e.any : function(t, n, r, i, s, o) {
|
|
209
204
|
var a = t[n];
|
|
210
|
-
return e.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(t, n, r,
|
|
205
|
+
return e.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(t, n, r, i, s, o);
|
|
211
206
|
}
|
|
212
207
|
}),
|
|
213
208
|
/**
|
|
@@ -288,11 +283,11 @@ W.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
288
283
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
289
284
|
*/
|
|
290
285
|
timeout: function(n) {
|
|
291
|
-
var r =
|
|
286
|
+
var r = Xt;
|
|
292
287
|
n.addEndListener || (r = r.isRequired);
|
|
293
|
-
for (var
|
|
294
|
-
|
|
295
|
-
return r.apply(void 0, [n].concat(
|
|
288
|
+
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), o = 1; o < i; o++)
|
|
289
|
+
s[o - 1] = arguments[o];
|
|
290
|
+
return r.apply(void 0, [n].concat(s));
|
|
296
291
|
},
|
|
297
292
|
/**
|
|
298
293
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -377,21 +372,21 @@ W.defaultProps = {
|
|
|
377
372
|
onExiting: oe,
|
|
378
373
|
onExited: oe
|
|
379
374
|
};
|
|
380
|
-
W.UNMOUNTED =
|
|
375
|
+
W.UNMOUNTED = de;
|
|
381
376
|
W.EXITED = Q;
|
|
382
377
|
W.ENTERING = Z;
|
|
383
378
|
W.ENTERED = re;
|
|
384
379
|
W.EXITING = Ae;
|
|
385
|
-
function
|
|
380
|
+
function Jt(t) {
|
|
386
381
|
return typeof t == "string";
|
|
387
382
|
}
|
|
388
|
-
function
|
|
383
|
+
function Te(t, n, r, i, s) {
|
|
389
384
|
if (process.env.NODE_ENV === "production")
|
|
390
385
|
return null;
|
|
391
|
-
const o = t[n], a =
|
|
392
|
-
return o == null ? null : o && o.nodeType !== 1 ? new Error(`Invalid ${
|
|
386
|
+
const o = t[n], a = s || n;
|
|
387
|
+
return o == null ? null : o && o.nodeType !== 1 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
|
|
393
388
|
}
|
|
394
|
-
function
|
|
389
|
+
function Qt(t) {
|
|
395
390
|
const n = typeof t;
|
|
396
391
|
switch (n) {
|
|
397
392
|
case "number":
|
|
@@ -402,11 +397,11 @@ function en(t) {
|
|
|
402
397
|
return n;
|
|
403
398
|
}
|
|
404
399
|
}
|
|
405
|
-
function pt(t, n, r,
|
|
406
|
-
const
|
|
407
|
-
if (
|
|
408
|
-
const o =
|
|
409
|
-
return new RangeError(`Invalid ${
|
|
400
|
+
function pt(t, n, r, i) {
|
|
401
|
+
const s = t[n];
|
|
402
|
+
if (s == null || !Number.isInteger(s)) {
|
|
403
|
+
const o = Qt(s);
|
|
404
|
+
return new RangeError(`Invalid ${i} \`${n}\` of type \`${o}\` supplied to \`${r}\`, expected \`integer\`.`);
|
|
410
405
|
}
|
|
411
406
|
return null;
|
|
412
407
|
}
|
|
@@ -419,14 +414,14 @@ function _e() {
|
|
|
419
414
|
dt.isRequired = pt;
|
|
420
415
|
_e.isRequired = _e;
|
|
421
416
|
const ft = process.env.NODE_ENV === "production" ? _e : dt;
|
|
422
|
-
function
|
|
417
|
+
function Zt(t) {
|
|
423
418
|
const {
|
|
424
419
|
prototype: n = {}
|
|
425
420
|
} = t;
|
|
426
421
|
return !!n.isReactComponent;
|
|
427
422
|
}
|
|
428
|
-
function mt(t, n, r,
|
|
429
|
-
const o = t[n], a =
|
|
423
|
+
function mt(t, n, r, i, s) {
|
|
424
|
+
const o = t[n], a = s || n;
|
|
430
425
|
if (o == null || // When server-side rendering React doesn't warn either.
|
|
431
426
|
// This is not an accurate check for SSR.
|
|
432
427
|
// This is only in place for Emotion compat.
|
|
@@ -435,7 +430,7 @@ function mt(t, n, r, s, i) {
|
|
|
435
430
|
return null;
|
|
436
431
|
let l;
|
|
437
432
|
const c = o.type;
|
|
438
|
-
return typeof c == "function" && !
|
|
433
|
+
return typeof c == "function" && !Zt(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
439
434
|
}
|
|
440
435
|
const Se = Ne(e.element, mt);
|
|
441
436
|
Se.isRequired = Ne(e.element.isRequired, mt);
|
|
@@ -444,22 +439,22 @@ function ht(t) {
|
|
|
444
439
|
return parseInt(p.version, 10) >= 19 ? ((n = t == null ? void 0 : t.props) == null ? void 0 : n.ref) || null : (t == null ? void 0 : t.ref) || null;
|
|
445
440
|
}
|
|
446
441
|
const bt = (t) => t.scrollTop;
|
|
447
|
-
function
|
|
442
|
+
function xe(t, n) {
|
|
448
443
|
const {
|
|
449
444
|
timeout: r,
|
|
450
|
-
easing:
|
|
451
|
-
style:
|
|
445
|
+
easing: i,
|
|
446
|
+
style: s = {}
|
|
452
447
|
} = t;
|
|
453
448
|
return {
|
|
454
|
-
duration:
|
|
455
|
-
easing:
|
|
456
|
-
delay:
|
|
449
|
+
duration: s.transitionDuration ?? (typeof r == "number" ? r : r[n.mode] || 0),
|
|
450
|
+
easing: s.transitionTimingFunction ?? (typeof i == "object" ? i[n.mode] : i),
|
|
451
|
+
delay: s.transitionDelay
|
|
457
452
|
};
|
|
458
453
|
}
|
|
459
454
|
function $e(t) {
|
|
460
455
|
return `scale(${t}, ${t ** 2})`;
|
|
461
456
|
}
|
|
462
|
-
const
|
|
457
|
+
const en = {
|
|
463
458
|
entering: {
|
|
464
459
|
opacity: 1,
|
|
465
460
|
transform: $e(1)
|
|
@@ -468,10 +463,10 @@ const nn = {
|
|
|
468
463
|
opacity: 1,
|
|
469
464
|
transform: "none"
|
|
470
465
|
}
|
|
471
|
-
}, Ie = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent),
|
|
466
|
+
}, Ie = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), Pe = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
472
467
|
const {
|
|
473
|
-
addEndListener:
|
|
474
|
-
appear:
|
|
468
|
+
addEndListener: i,
|
|
469
|
+
appear: s = !0,
|
|
475
470
|
children: o,
|
|
476
471
|
easing: a,
|
|
477
472
|
in: l,
|
|
@@ -486,18 +481,18 @@ const nn = {
|
|
|
486
481
|
// eslint-disable-next-line react/prop-types
|
|
487
482
|
TransitionComponent: C = W,
|
|
488
483
|
...g
|
|
489
|
-
} = n, w =
|
|
484
|
+
} = n, w = Dt(), u = p.useRef(), f = Ue(), y = p.useRef(null), S = we(y, ht(o), r), O = (d) => (h) => {
|
|
490
485
|
if (d) {
|
|
491
486
|
const j = y.current;
|
|
492
487
|
h === void 0 ? d(j) : d(j, h);
|
|
493
488
|
}
|
|
494
|
-
}, x = O(T),
|
|
489
|
+
}, x = O(T), k = O((d, h) => {
|
|
495
490
|
bt(d);
|
|
496
491
|
const {
|
|
497
492
|
duration: j,
|
|
498
493
|
delay: U,
|
|
499
494
|
easing: R
|
|
500
|
-
} =
|
|
495
|
+
} = xe({
|
|
501
496
|
style: E,
|
|
502
497
|
timeout: I,
|
|
503
498
|
easing: a
|
|
@@ -518,7 +513,7 @@ const nn = {
|
|
|
518
513
|
duration: h,
|
|
519
514
|
delay: j,
|
|
520
515
|
easing: U
|
|
521
|
-
} =
|
|
516
|
+
} = xe({
|
|
522
517
|
style: E,
|
|
523
518
|
timeout: I,
|
|
524
519
|
easing: a
|
|
@@ -534,20 +529,20 @@ const nn = {
|
|
|
534
529
|
delay: Ie ? j : j || R * 0.333,
|
|
535
530
|
easing: U
|
|
536
531
|
})].join(","), d.style.opacity = 0, d.style.transform = $e(0.75), v && v(d);
|
|
537
|
-
}), q = O(N),
|
|
538
|
-
I === "auto" && w.start(u.current || 0, d),
|
|
532
|
+
}), q = O(N), M = (d) => {
|
|
533
|
+
I === "auto" && w.start(u.current || 0, d), i && i(y.current, d);
|
|
539
534
|
};
|
|
540
535
|
return /* @__PURE__ */ L.jsx(C, {
|
|
541
|
-
appear:
|
|
536
|
+
appear: s,
|
|
542
537
|
in: l,
|
|
543
538
|
nodeRef: y,
|
|
544
|
-
onEnter:
|
|
539
|
+
onEnter: k,
|
|
545
540
|
onEntered: _,
|
|
546
541
|
onEntering: x,
|
|
547
542
|
onExit: V,
|
|
548
543
|
onExited: q,
|
|
549
544
|
onExiting: A,
|
|
550
|
-
addEndListener:
|
|
545
|
+
addEndListener: M,
|
|
551
546
|
timeout: I === "auto" ? null : I,
|
|
552
547
|
...g,
|
|
553
548
|
children: (d, {
|
|
@@ -558,7 +553,7 @@ const nn = {
|
|
|
558
553
|
opacity: 0,
|
|
559
554
|
transform: $e(0.75),
|
|
560
555
|
visibility: d === "exited" && !l ? "hidden" : void 0,
|
|
561
|
-
...
|
|
556
|
+
...en[d],
|
|
562
557
|
...E,
|
|
563
558
|
...o.props.style
|
|
564
559
|
},
|
|
@@ -567,7 +562,7 @@ const nn = {
|
|
|
567
562
|
})
|
|
568
563
|
});
|
|
569
564
|
});
|
|
570
|
-
process.env.NODE_ENV !== "production" && (
|
|
565
|
+
process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
571
566
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
572
567
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
573
568
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -641,43 +636,43 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
|
641
636
|
exit: e.number
|
|
642
637
|
})])
|
|
643
638
|
});
|
|
644
|
-
|
|
645
|
-
function
|
|
646
|
-
const n =
|
|
647
|
-
return n.body === t ?
|
|
639
|
+
Pe && (Pe.muiSupportAuto = !0);
|
|
640
|
+
function tn(t) {
|
|
641
|
+
const n = ie(t);
|
|
642
|
+
return n.body === t ? ye(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
|
|
648
643
|
}
|
|
649
|
-
function
|
|
644
|
+
function me(t, n) {
|
|
650
645
|
n ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
|
|
651
646
|
}
|
|
652
647
|
function Ze(t) {
|
|
653
|
-
return parseInt(
|
|
648
|
+
return parseInt(ye(t).getComputedStyle(t).paddingRight, 10) || 0;
|
|
654
649
|
}
|
|
655
|
-
function
|
|
656
|
-
const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName),
|
|
657
|
-
return r ||
|
|
650
|
+
function nn(t) {
|
|
651
|
+
const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), i = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
|
|
652
|
+
return r || i;
|
|
658
653
|
}
|
|
659
|
-
function et(t, n, r,
|
|
660
|
-
const o = [n, r, ...
|
|
654
|
+
function et(t, n, r, i, s) {
|
|
655
|
+
const o = [n, r, ...i];
|
|
661
656
|
[].forEach.call(t.children, (a) => {
|
|
662
|
-
const l = !o.includes(a), c = !
|
|
663
|
-
l && c &&
|
|
657
|
+
const l = !o.includes(a), c = !nn(a);
|
|
658
|
+
l && c && me(a, s);
|
|
664
659
|
});
|
|
665
660
|
}
|
|
666
661
|
function je(t, n) {
|
|
667
662
|
let r = -1;
|
|
668
|
-
return t.some((
|
|
663
|
+
return t.some((i, s) => n(i) ? (r = s, !0) : !1), r;
|
|
669
664
|
}
|
|
670
|
-
function
|
|
671
|
-
const r = [],
|
|
665
|
+
function on(t, n) {
|
|
666
|
+
const r = [], i = t.container;
|
|
672
667
|
if (!n.disableScrollLock) {
|
|
673
|
-
if (
|
|
674
|
-
const a =
|
|
668
|
+
if (tn(i)) {
|
|
669
|
+
const a = qt(ye(i));
|
|
675
670
|
r.push({
|
|
676
|
-
value:
|
|
671
|
+
value: i.style.paddingRight,
|
|
677
672
|
property: "padding-right",
|
|
678
|
-
el:
|
|
679
|
-
}),
|
|
680
|
-
const l =
|
|
673
|
+
el: i
|
|
674
|
+
}), i.style.paddingRight = `${Ze(i) + a}px`;
|
|
675
|
+
const l = ie(i).querySelectorAll(".mui-fixed");
|
|
681
676
|
[].forEach.call(l, (c) => {
|
|
682
677
|
r.push({
|
|
683
678
|
value: c.style.paddingRight,
|
|
@@ -687,11 +682,11 @@ function sn(t, n) {
|
|
|
687
682
|
});
|
|
688
683
|
}
|
|
689
684
|
let o;
|
|
690
|
-
if (
|
|
691
|
-
o =
|
|
685
|
+
if (i.parentNode instanceof DocumentFragment)
|
|
686
|
+
o = ie(i).body;
|
|
692
687
|
else {
|
|
693
|
-
const a =
|
|
694
|
-
o = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a :
|
|
688
|
+
const a = i.parentElement, l = ye(i);
|
|
689
|
+
o = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : i;
|
|
695
690
|
}
|
|
696
691
|
r.push({
|
|
697
692
|
value: o.style.overflow,
|
|
@@ -717,89 +712,89 @@ function sn(t, n) {
|
|
|
717
712
|
});
|
|
718
713
|
};
|
|
719
714
|
}
|
|
720
|
-
function
|
|
715
|
+
function rn(t) {
|
|
721
716
|
const n = [];
|
|
722
717
|
return [].forEach.call(t.children, (r) => {
|
|
723
718
|
r.getAttribute("aria-hidden") === "true" && n.push(r);
|
|
724
719
|
}), n;
|
|
725
720
|
}
|
|
726
|
-
class
|
|
721
|
+
class sn {
|
|
727
722
|
constructor() {
|
|
728
723
|
this.modals = [], this.containers = [];
|
|
729
724
|
}
|
|
730
725
|
add(n, r) {
|
|
731
|
-
let
|
|
732
|
-
if (
|
|
733
|
-
return
|
|
734
|
-
|
|
735
|
-
const
|
|
736
|
-
et(r, n.mount, n.modalRef,
|
|
726
|
+
let i = this.modals.indexOf(n);
|
|
727
|
+
if (i !== -1)
|
|
728
|
+
return i;
|
|
729
|
+
i = this.modals.length, this.modals.push(n), n.modalRef && me(n.modalRef, !1);
|
|
730
|
+
const s = rn(r);
|
|
731
|
+
et(r, n.mount, n.modalRef, s, !0);
|
|
737
732
|
const o = je(this.containers, (a) => a.container === r);
|
|
738
|
-
return o !== -1 ? (this.containers[o].modals.push(n),
|
|
733
|
+
return o !== -1 ? (this.containers[o].modals.push(n), i) : (this.containers.push({
|
|
739
734
|
modals: [n],
|
|
740
735
|
container: r,
|
|
741
736
|
restore: null,
|
|
742
|
-
hiddenSiblings:
|
|
743
|
-
}),
|
|
737
|
+
hiddenSiblings: s
|
|
738
|
+
}), i);
|
|
744
739
|
}
|
|
745
740
|
mount(n, r) {
|
|
746
|
-
const
|
|
747
|
-
|
|
741
|
+
const i = je(this.containers, (o) => o.modals.includes(n)), s = this.containers[i];
|
|
742
|
+
s.restore || (s.restore = on(s, r));
|
|
748
743
|
}
|
|
749
744
|
remove(n, r = !0) {
|
|
750
|
-
const
|
|
751
|
-
if (
|
|
752
|
-
return
|
|
753
|
-
const
|
|
754
|
-
if (o.modals.splice(o.modals.indexOf(n), 1), this.modals.splice(
|
|
755
|
-
o.restore && o.restore(), n.modalRef &&
|
|
745
|
+
const i = this.modals.indexOf(n);
|
|
746
|
+
if (i === -1)
|
|
747
|
+
return i;
|
|
748
|
+
const s = je(this.containers, (a) => a.modals.includes(n)), o = this.containers[s];
|
|
749
|
+
if (o.modals.splice(o.modals.indexOf(n), 1), this.modals.splice(i, 1), o.modals.length === 0)
|
|
750
|
+
o.restore && o.restore(), n.modalRef && me(n.modalRef, r), et(o.container, n.mount, n.modalRef, o.hiddenSiblings, !1), this.containers.splice(s, 1);
|
|
756
751
|
else {
|
|
757
752
|
const a = o.modals[o.modals.length - 1];
|
|
758
|
-
a.modalRef &&
|
|
753
|
+
a.modalRef && me(a.modalRef, !1);
|
|
759
754
|
}
|
|
760
|
-
return
|
|
755
|
+
return i;
|
|
761
756
|
}
|
|
762
757
|
isTopModal(n) {
|
|
763
758
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
764
759
|
}
|
|
765
760
|
}
|
|
766
|
-
const
|
|
767
|
-
function
|
|
761
|
+
const an = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
762
|
+
function ln(t) {
|
|
768
763
|
const n = parseInt(t.getAttribute("tabindex") || "", 10);
|
|
769
764
|
return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
|
|
770
765
|
}
|
|
771
|
-
function
|
|
766
|
+
function cn(t) {
|
|
772
767
|
if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
|
|
773
768
|
return !1;
|
|
774
|
-
const n = (
|
|
769
|
+
const n = (i) => t.ownerDocument.querySelector(`input[type="radio"]${i}`);
|
|
775
770
|
let r = n(`[name="${t.name}"]:checked`);
|
|
776
771
|
return r || (r = n(`[name="${t.name}"]`)), r !== t;
|
|
777
772
|
}
|
|
778
|
-
function
|
|
779
|
-
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" ||
|
|
773
|
+
function un(t) {
|
|
774
|
+
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || cn(t));
|
|
780
775
|
}
|
|
781
|
-
function
|
|
776
|
+
function pn(t) {
|
|
782
777
|
const n = [], r = [];
|
|
783
|
-
return Array.from(t.querySelectorAll(
|
|
784
|
-
const o =
|
|
785
|
-
o === -1 || !
|
|
786
|
-
documentOrder:
|
|
778
|
+
return Array.from(t.querySelectorAll(an)).forEach((i, s) => {
|
|
779
|
+
const o = ln(i);
|
|
780
|
+
o === -1 || !un(i) || (o === 0 ? n.push(i) : r.push({
|
|
781
|
+
documentOrder: s,
|
|
787
782
|
tabIndex: o,
|
|
788
|
-
node:
|
|
783
|
+
node: i
|
|
789
784
|
}));
|
|
790
|
-
}), r.sort((
|
|
785
|
+
}), r.sort((i, s) => i.tabIndex === s.tabIndex ? i.documentOrder - s.documentOrder : i.tabIndex - s.tabIndex).map((i) => i.node).concat(n);
|
|
791
786
|
}
|
|
792
|
-
function
|
|
787
|
+
function dn() {
|
|
793
788
|
return !0;
|
|
794
789
|
}
|
|
795
|
-
function
|
|
790
|
+
function Re(t) {
|
|
796
791
|
const {
|
|
797
792
|
children: n,
|
|
798
793
|
disableAutoFocus: r = !1,
|
|
799
|
-
disableEnforceFocus:
|
|
800
|
-
disableRestoreFocus:
|
|
801
|
-
getTabbable: o =
|
|
802
|
-
isEnabled: a =
|
|
794
|
+
disableEnforceFocus: i = !1,
|
|
795
|
+
disableRestoreFocus: s = !1,
|
|
796
|
+
getTabbable: o = pn,
|
|
797
|
+
isEnabled: a = dn,
|
|
803
798
|
open: l
|
|
804
799
|
} = t, c = p.useRef(!1), b = p.useRef(null), T = p.useRef(null), v = p.useRef(null), N = p.useRef(null), m = p.useRef(!1), E = p.useRef(null), I = Ve(ct(n), E), C = p.useRef(null);
|
|
805
800
|
p.useEffect(() => {
|
|
@@ -807,18 +802,18 @@ function xe(t) {
|
|
|
807
802
|
}, [r, l]), p.useEffect(() => {
|
|
808
803
|
if (!l || !E.current)
|
|
809
804
|
return;
|
|
810
|
-
const u =
|
|
805
|
+
const u = ie(E.current);
|
|
811
806
|
return E.current.contains(u.activeElement) || (E.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
812
807
|
`)), E.current.setAttribute("tabIndex", "-1")), m.current && E.current.focus()), () => {
|
|
813
|
-
|
|
808
|
+
s || (v.current && v.current.focus && (c.current = !0, v.current.focus()), v.current = null);
|
|
814
809
|
};
|
|
815
810
|
}, [l]), p.useEffect(() => {
|
|
816
811
|
if (!l || !E.current)
|
|
817
812
|
return;
|
|
818
|
-
const u =
|
|
819
|
-
C.current = O, !(
|
|
813
|
+
const u = ie(E.current), f = (O) => {
|
|
814
|
+
C.current = O, !(i || !a() || O.key !== "Tab") && u.activeElement === E.current && O.shiftKey && (c.current = !0, T.current && T.current.focus());
|
|
820
815
|
}, y = () => {
|
|
821
|
-
var
|
|
816
|
+
var k, _;
|
|
822
817
|
const O = E.current;
|
|
823
818
|
if (O === null)
|
|
824
819
|
return;
|
|
@@ -826,7 +821,7 @@ function xe(t) {
|
|
|
826
821
|
c.current = !1;
|
|
827
822
|
return;
|
|
828
823
|
}
|
|
829
|
-
if (O.contains(u.activeElement) ||
|
|
824
|
+
if (O.contains(u.activeElement) || i && u.activeElement !== b.current && u.activeElement !== T.current)
|
|
830
825
|
return;
|
|
831
826
|
if (u.activeElement !== N.current)
|
|
832
827
|
N.current = null;
|
|
@@ -836,7 +831,7 @@ function xe(t) {
|
|
|
836
831
|
return;
|
|
837
832
|
let x = [];
|
|
838
833
|
if ((u.activeElement === b.current || u.activeElement === T.current) && (x = o(E.current)), x.length > 0) {
|
|
839
|
-
const A = !!((
|
|
834
|
+
const A = !!((k = C.current) != null && k.shiftKey && ((_ = C.current) == null ? void 0 : _.key) === "Tab"), V = x[0], q = x[x.length - 1];
|
|
840
835
|
typeof V != "string" && typeof q != "string" && (A ? q.focus() : V.focus());
|
|
841
836
|
} else
|
|
842
837
|
O.focus();
|
|
@@ -848,7 +843,7 @@ function xe(t) {
|
|
|
848
843
|
return () => {
|
|
849
844
|
clearInterval(S), u.removeEventListener("focusin", y), u.removeEventListener("keydown", f, !0);
|
|
850
845
|
};
|
|
851
|
-
}, [r,
|
|
846
|
+
}, [r, i, s, a, l, o]);
|
|
852
847
|
const g = (u) => {
|
|
853
848
|
v.current === null && (v.current = u.relatedTarget), m.current = !0, N.current = u.target;
|
|
854
849
|
const f = n.props.onFocus;
|
|
@@ -873,7 +868,7 @@ function xe(t) {
|
|
|
873
868
|
})]
|
|
874
869
|
});
|
|
875
870
|
}
|
|
876
|
-
process.env.NODE_ENV !== "production" && (
|
|
871
|
+
process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
877
872
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
878
873
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
879
874
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -881,7 +876,7 @@ process.env.NODE_ENV !== "production" && (xe.propTypes = {
|
|
|
881
876
|
/**
|
|
882
877
|
* A single child content element.
|
|
883
878
|
*/
|
|
884
|
-
children:
|
|
879
|
+
children: Kt,
|
|
885
880
|
/**
|
|
886
881
|
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
887
882
|
* replace it to the last focused element when it closes.
|
|
@@ -927,35 +922,35 @@ process.env.NODE_ENV !== "production" && (xe.propTypes = {
|
|
|
927
922
|
*/
|
|
928
923
|
open: e.bool.isRequired
|
|
929
924
|
});
|
|
930
|
-
process.env.NODE_ENV !== "production" && (
|
|
931
|
-
function
|
|
925
|
+
process.env.NODE_ENV !== "production" && (Re.propTypes = ut(Re.propTypes));
|
|
926
|
+
function fn(t) {
|
|
932
927
|
return typeof t == "function" ? t() : t;
|
|
933
928
|
}
|
|
934
|
-
const
|
|
929
|
+
const Oe = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
935
930
|
const {
|
|
936
|
-
children:
|
|
937
|
-
container:
|
|
931
|
+
children: i,
|
|
932
|
+
container: s,
|
|
938
933
|
disablePortal: o = !1
|
|
939
|
-
} = n, [a, l] = p.useState(null), c = Ve(/* @__PURE__ */ p.isValidElement(
|
|
934
|
+
} = n, [a, l] = p.useState(null), c = Ve(/* @__PURE__ */ p.isValidElement(i) ? ct(i) : null, r);
|
|
940
935
|
if (Ge(() => {
|
|
941
|
-
o || l(
|
|
942
|
-
}, [
|
|
936
|
+
o || l(fn(s) || document.body);
|
|
937
|
+
}, [s, o]), Ge(() => {
|
|
943
938
|
if (a && !o)
|
|
944
939
|
return Xe(r, a), () => {
|
|
945
940
|
Xe(r, null);
|
|
946
941
|
};
|
|
947
942
|
}, [r, a, o]), o) {
|
|
948
|
-
if (/* @__PURE__ */ p.isValidElement(
|
|
943
|
+
if (/* @__PURE__ */ p.isValidElement(i)) {
|
|
949
944
|
const b = {
|
|
950
945
|
ref: c
|
|
951
946
|
};
|
|
952
|
-
return /* @__PURE__ */ p.cloneElement(
|
|
947
|
+
return /* @__PURE__ */ p.cloneElement(i, b);
|
|
953
948
|
}
|
|
954
|
-
return
|
|
949
|
+
return i;
|
|
955
950
|
}
|
|
956
|
-
return a && /* @__PURE__ */
|
|
951
|
+
return a && /* @__PURE__ */ Ut.createPortal(i, a);
|
|
957
952
|
});
|
|
958
|
-
process.env.NODE_ENV !== "production" && (
|
|
953
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
959
954
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
960
955
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
961
956
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -974,15 +969,15 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
974
969
|
* By default, it uses the body of the top-level document object,
|
|
975
970
|
* so it's simply `document.body` most of the time.
|
|
976
971
|
*/
|
|
977
|
-
container: e.oneOfType([
|
|
972
|
+
container: e.oneOfType([Bt, e.func]),
|
|
978
973
|
/**
|
|
979
974
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
980
975
|
* @default false
|
|
981
976
|
*/
|
|
982
977
|
disablePortal: e.bool
|
|
983
978
|
});
|
|
984
|
-
process.env.NODE_ENV !== "production" && (
|
|
985
|
-
const
|
|
979
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = ut(Oe.propTypes));
|
|
980
|
+
const mn = {
|
|
986
981
|
entering: {
|
|
987
982
|
opacity: 1
|
|
988
983
|
},
|
|
@@ -990,9 +985,9 @@ const bn = {
|
|
|
990
985
|
opacity: 1
|
|
991
986
|
}
|
|
992
987
|
}, Et = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
993
|
-
const
|
|
994
|
-
enter:
|
|
995
|
-
exit:
|
|
988
|
+
const i = Ue(), s = {
|
|
989
|
+
enter: i.transitions.duration.enteringScreen,
|
|
990
|
+
exit: i.transitions.duration.leavingScreen
|
|
996
991
|
}, {
|
|
997
992
|
addEndListener: o,
|
|
998
993
|
appear: a = !0,
|
|
@@ -1006,43 +1001,43 @@ const bn = {
|
|
|
1006
1001
|
onExited: E,
|
|
1007
1002
|
onExiting: I,
|
|
1008
1003
|
style: C,
|
|
1009
|
-
timeout: g =
|
|
1004
|
+
timeout: g = s,
|
|
1010
1005
|
// eslint-disable-next-line react/prop-types
|
|
1011
1006
|
TransitionComponent: w = W,
|
|
1012
1007
|
...u
|
|
1013
|
-
} = n, f = p.useRef(null), y = we(f, ht(l), r), S = (
|
|
1014
|
-
if (
|
|
1008
|
+
} = n, f = p.useRef(null), y = we(f, ht(l), r), S = (M) => (d) => {
|
|
1009
|
+
if (M) {
|
|
1015
1010
|
const h = f.current;
|
|
1016
|
-
d === void 0 ?
|
|
1011
|
+
d === void 0 ? M(h) : M(h, d);
|
|
1017
1012
|
}
|
|
1018
|
-
}, O = S(N), x = S((
|
|
1019
|
-
bt(
|
|
1020
|
-
const h =
|
|
1013
|
+
}, O = S(N), x = S((M, d) => {
|
|
1014
|
+
bt(M);
|
|
1015
|
+
const h = xe({
|
|
1021
1016
|
style: C,
|
|
1022
1017
|
timeout: g,
|
|
1023
1018
|
easing: c
|
|
1024
1019
|
}, {
|
|
1025
1020
|
mode: "enter"
|
|
1026
1021
|
});
|
|
1027
|
-
|
|
1028
|
-
}),
|
|
1029
|
-
const d =
|
|
1022
|
+
M.style.webkitTransition = i.transitions.create("opacity", h), M.style.transition = i.transitions.create("opacity", h), T && T(M, d);
|
|
1023
|
+
}), k = S(v), _ = S(I), A = S((M) => {
|
|
1024
|
+
const d = xe({
|
|
1030
1025
|
style: C,
|
|
1031
1026
|
timeout: g,
|
|
1032
1027
|
easing: c
|
|
1033
1028
|
}, {
|
|
1034
1029
|
mode: "exit"
|
|
1035
1030
|
});
|
|
1036
|
-
|
|
1037
|
-
}), V = S(E), q = (
|
|
1038
|
-
o && o(f.current,
|
|
1031
|
+
M.style.webkitTransition = i.transitions.create("opacity", d), M.style.transition = i.transitions.create("opacity", d), m && m(M);
|
|
1032
|
+
}), V = S(E), q = (M) => {
|
|
1033
|
+
o && o(f.current, M);
|
|
1039
1034
|
};
|
|
1040
1035
|
return /* @__PURE__ */ L.jsx(w, {
|
|
1041
1036
|
appear: a,
|
|
1042
1037
|
in: b,
|
|
1043
1038
|
nodeRef: f,
|
|
1044
1039
|
onEnter: x,
|
|
1045
|
-
onEntered:
|
|
1040
|
+
onEntered: k,
|
|
1046
1041
|
onEntering: O,
|
|
1047
1042
|
onExit: A,
|
|
1048
1043
|
onExited: V,
|
|
@@ -1050,14 +1045,14 @@ const bn = {
|
|
|
1050
1045
|
addEndListener: q,
|
|
1051
1046
|
timeout: g,
|
|
1052
1047
|
...u,
|
|
1053
|
-
children: (
|
|
1048
|
+
children: (M, {
|
|
1054
1049
|
ownerState: d,
|
|
1055
1050
|
...h
|
|
1056
1051
|
}) => /* @__PURE__ */ p.cloneElement(l, {
|
|
1057
1052
|
style: {
|
|
1058
1053
|
opacity: 0,
|
|
1059
|
-
visibility:
|
|
1060
|
-
...
|
|
1054
|
+
visibility: M === "exited" && !b ? "hidden" : void 0,
|
|
1055
|
+
...mn[M],
|
|
1061
1056
|
...C,
|
|
1062
1057
|
...l.props.style
|
|
1063
1058
|
},
|
|
@@ -1141,15 +1136,19 @@ process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
|
1141
1136
|
exit: e.number
|
|
1142
1137
|
})])
|
|
1143
1138
|
});
|
|
1144
|
-
|
|
1139
|
+
function hn(t) {
|
|
1140
|
+
return se("MuiBackdrop", t);
|
|
1141
|
+
}
|
|
1142
|
+
ce("MuiBackdrop", ["root", "invisible"]);
|
|
1143
|
+
const bn = (t) => {
|
|
1145
1144
|
const {
|
|
1146
1145
|
classes: n,
|
|
1147
1146
|
invisible: r
|
|
1148
1147
|
} = t;
|
|
1149
|
-
return
|
|
1148
|
+
return le({
|
|
1150
1149
|
root: ["root", r && "invisible"]
|
|
1151
|
-
},
|
|
1152
|
-
},
|
|
1150
|
+
}, hn, n);
|
|
1151
|
+
}, En = z("div", {
|
|
1153
1152
|
name: "MuiBackdrop",
|
|
1154
1153
|
slot: "Root",
|
|
1155
1154
|
overridesResolver: (t, n) => {
|
|
@@ -1178,11 +1177,11 @@ const En = (t) => {
|
|
|
1178
1177
|
}
|
|
1179
1178
|
}]
|
|
1180
1179
|
}), gt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
1181
|
-
const
|
|
1180
|
+
const i = ae({
|
|
1182
1181
|
props: n,
|
|
1183
1182
|
name: "MuiBackdrop"
|
|
1184
1183
|
}), {
|
|
1185
|
-
children:
|
|
1184
|
+
children: s,
|
|
1186
1185
|
className: o,
|
|
1187
1186
|
component: a = "div",
|
|
1188
1187
|
invisible: l = !1,
|
|
@@ -1194,11 +1193,11 @@ const En = (t) => {
|
|
|
1194
1193
|
TransitionComponent: m,
|
|
1195
1194
|
transitionDuration: E,
|
|
1196
1195
|
...I
|
|
1197
|
-
} =
|
|
1198
|
-
...
|
|
1196
|
+
} = i, C = {
|
|
1197
|
+
...i,
|
|
1199
1198
|
component: a,
|
|
1200
1199
|
invisible: l
|
|
1201
|
-
}, g =
|
|
1200
|
+
}, g = bn(C), w = {
|
|
1202
1201
|
transition: m,
|
|
1203
1202
|
root: b.Root,
|
|
1204
1203
|
...N
|
|
@@ -1209,7 +1208,7 @@ const En = (t) => {
|
|
|
1209
1208
|
slots: w,
|
|
1210
1209
|
slotProps: u
|
|
1211
1210
|
}, [y, S] = G("root", {
|
|
1212
|
-
elementType:
|
|
1211
|
+
elementType: En,
|
|
1213
1212
|
externalForwardedProps: f,
|
|
1214
1213
|
className: ee(g.root, o),
|
|
1215
1214
|
ownerState: C
|
|
@@ -1228,7 +1227,7 @@ const En = (t) => {
|
|
|
1228
1227
|
...S,
|
|
1229
1228
|
classes: g,
|
|
1230
1229
|
ref: r,
|
|
1231
|
-
children:
|
|
1230
|
+
children: s
|
|
1232
1231
|
})
|
|
1233
1232
|
});
|
|
1234
1233
|
});
|
|
@@ -1322,46 +1321,46 @@ process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
|
1322
1321
|
exit: e.number
|
|
1323
1322
|
})])
|
|
1324
1323
|
});
|
|
1325
|
-
function
|
|
1324
|
+
function gn(t) {
|
|
1326
1325
|
return typeof t == "function" ? t() : t;
|
|
1327
1326
|
}
|
|
1328
|
-
function
|
|
1327
|
+
function yn(t) {
|
|
1329
1328
|
return t ? t.props.hasOwnProperty("in") : !1;
|
|
1330
1329
|
}
|
|
1331
1330
|
const tt = () => {
|
|
1332
|
-
},
|
|
1333
|
-
function
|
|
1331
|
+
}, ge = new sn();
|
|
1332
|
+
function vn(t) {
|
|
1334
1333
|
const {
|
|
1335
1334
|
container: n,
|
|
1336
1335
|
disableEscapeKeyDown: r = !1,
|
|
1337
|
-
disableScrollLock:
|
|
1338
|
-
closeAfterTransition:
|
|
1336
|
+
disableScrollLock: i = !1,
|
|
1337
|
+
closeAfterTransition: s = !1,
|
|
1339
1338
|
onTransitionEnter: o,
|
|
1340
1339
|
onTransitionExited: a,
|
|
1341
1340
|
children: l,
|
|
1342
1341
|
onClose: c,
|
|
1343
1342
|
open: b,
|
|
1344
1343
|
rootRef: T
|
|
1345
|
-
} = t, v = p.useRef({}), N = p.useRef(null), m = p.useRef(null), E = Ve(m, T), [I, C] = p.useState(!b), g =
|
|
1344
|
+
} = t, v = p.useRef({}), N = p.useRef(null), m = p.useRef(null), E = Ve(m, T), [I, C] = p.useState(!b), g = yn(l);
|
|
1346
1345
|
let w = !0;
|
|
1347
1346
|
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (w = !1);
|
|
1348
|
-
const u = () =>
|
|
1349
|
-
|
|
1350
|
-
disableScrollLock:
|
|
1347
|
+
const u = () => ie(N.current), f = () => (v.current.modalRef = m.current, v.current.mount = N.current, v.current), y = () => {
|
|
1348
|
+
ge.mount(f(), {
|
|
1349
|
+
disableScrollLock: i
|
|
1351
1350
|
}), m.current && (m.current.scrollTop = 0);
|
|
1352
1351
|
}, S = Ye(() => {
|
|
1353
|
-
const d =
|
|
1354
|
-
|
|
1355
|
-
}), O = () =>
|
|
1356
|
-
N.current = d, d && (b && O() ? y() : m.current &&
|
|
1357
|
-
}),
|
|
1358
|
-
|
|
1352
|
+
const d = gn(n) || u().body;
|
|
1353
|
+
ge.add(f(), d), m.current && y();
|
|
1354
|
+
}), O = () => ge.isTopModal(f()), x = Ye((d) => {
|
|
1355
|
+
N.current = d, d && (b && O() ? y() : m.current && me(m.current, w));
|
|
1356
|
+
}), k = p.useCallback(() => {
|
|
1357
|
+
ge.remove(f(), w);
|
|
1359
1358
|
}, [w]);
|
|
1360
1359
|
p.useEffect(() => () => {
|
|
1361
|
-
|
|
1362
|
-
}, [
|
|
1363
|
-
b ? S() : (!g || !
|
|
1364
|
-
}, [b,
|
|
1360
|
+
k();
|
|
1361
|
+
}, [k]), p.useEffect(() => {
|
|
1362
|
+
b ? S() : (!g || !s) && k();
|
|
1363
|
+
}, [b, k, g, s, S]);
|
|
1365
1364
|
const _ = (d) => (h) => {
|
|
1366
1365
|
var j;
|
|
1367
1366
|
(j = d.onKeyDown) == null || j.call(d, h), !(h.key !== "Escape" || h.which === 229 || // Wait until IME is settled.
|
|
@@ -1372,7 +1371,7 @@ function Tn(t) {
|
|
|
1372
1371
|
};
|
|
1373
1372
|
return {
|
|
1374
1373
|
getRootProps: (d = {}) => {
|
|
1375
|
-
const h =
|
|
1374
|
+
const h = It(t);
|
|
1376
1375
|
delete h.onTransitionEnter, delete h.onTransitionExited;
|
|
1377
1376
|
const j = {
|
|
1378
1377
|
...h,
|
|
@@ -1404,7 +1403,7 @@ function Tn(t) {
|
|
|
1404
1403
|
const d = () => {
|
|
1405
1404
|
C(!1), o && o();
|
|
1406
1405
|
}, h = () => {
|
|
1407
|
-
C(!0), a && a(),
|
|
1406
|
+
C(!0), a && a(), s && k();
|
|
1408
1407
|
};
|
|
1409
1408
|
return {
|
|
1410
1409
|
onEnter: Je(d, (l == null ? void 0 : l.props.onEnter) ?? tt),
|
|
@@ -1418,21 +1417,21 @@ function Tn(t) {
|
|
|
1418
1417
|
hasTransition: g
|
|
1419
1418
|
};
|
|
1420
1419
|
}
|
|
1421
|
-
function
|
|
1422
|
-
return
|
|
1420
|
+
function Tn(t) {
|
|
1421
|
+
return se("MuiModal", t);
|
|
1423
1422
|
}
|
|
1424
|
-
|
|
1425
|
-
const
|
|
1423
|
+
ce("MuiModal", ["root", "hidden", "backdrop"]);
|
|
1424
|
+
const xn = (t) => {
|
|
1426
1425
|
const {
|
|
1427
1426
|
open: n,
|
|
1428
1427
|
exited: r,
|
|
1429
|
-
classes:
|
|
1428
|
+
classes: i
|
|
1430
1429
|
} = t;
|
|
1431
|
-
return
|
|
1430
|
+
return le({
|
|
1432
1431
|
root: ["root", !n && r && "hidden"],
|
|
1433
1432
|
backdrop: ["backdrop"]
|
|
1434
|
-
},
|
|
1435
|
-
},
|
|
1433
|
+
}, Tn, i);
|
|
1434
|
+
}, Pn = z("div", {
|
|
1436
1435
|
name: "MuiModal",
|
|
1437
1436
|
slot: "Root",
|
|
1438
1437
|
overridesResolver: (t, n) => {
|
|
@@ -1458,18 +1457,18 @@ const Pn = (t) => {
|
|
|
1458
1457
|
visibility: "hidden"
|
|
1459
1458
|
}
|
|
1460
1459
|
}]
|
|
1461
|
-
}))),
|
|
1460
|
+
}))), Rn = z(gt, {
|
|
1462
1461
|
name: "MuiModal",
|
|
1463
1462
|
slot: "Backdrop",
|
|
1464
1463
|
overridesResolver: (t, n) => n.backdrop
|
|
1465
1464
|
})({
|
|
1466
1465
|
zIndex: -1
|
|
1467
1466
|
}), yt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
1468
|
-
const
|
|
1467
|
+
const i = ae({
|
|
1469
1468
|
name: "MuiModal",
|
|
1470
1469
|
props: n
|
|
1471
1470
|
}), {
|
|
1472
|
-
BackdropComponent:
|
|
1471
|
+
BackdropComponent: s = Rn,
|
|
1473
1472
|
BackdropProps: o,
|
|
1474
1473
|
classes: a,
|
|
1475
1474
|
className: l,
|
|
@@ -1490,14 +1489,14 @@ const Pn = (t) => {
|
|
|
1490
1489
|
onClose: S,
|
|
1491
1490
|
onTransitionEnter: O,
|
|
1492
1491
|
onTransitionExited: x,
|
|
1493
|
-
open:
|
|
1492
|
+
open: k,
|
|
1494
1493
|
slotProps: _ = {},
|
|
1495
1494
|
slots: A = {},
|
|
1496
1495
|
// eslint-disable-next-line react/prop-types
|
|
1497
1496
|
theme: V,
|
|
1498
1497
|
...q
|
|
1499
|
-
} =
|
|
1500
|
-
...
|
|
1498
|
+
} = i, M = {
|
|
1499
|
+
...i,
|
|
1501
1500
|
closeAfterTransition: c,
|
|
1502
1501
|
disableAutoFocus: E,
|
|
1503
1502
|
disableEnforceFocus: I,
|
|
@@ -1515,13 +1514,13 @@ const Pn = (t) => {
|
|
|
1515
1514
|
isTopModal: R,
|
|
1516
1515
|
exited: F,
|
|
1517
1516
|
hasTransition: X
|
|
1518
|
-
} =
|
|
1519
|
-
...
|
|
1517
|
+
} = vn({
|
|
1518
|
+
...M,
|
|
1520
1519
|
rootRef: r
|
|
1521
1520
|
}), Y = {
|
|
1522
|
-
...
|
|
1521
|
+
...M,
|
|
1523
1522
|
exited: F
|
|
1524
|
-
}, K =
|
|
1523
|
+
}, K = xn(Y), J = {};
|
|
1525
1524
|
if (b.props.tabIndex === void 0 && (J.tabIndex = "-1"), X) {
|
|
1526
1525
|
const {
|
|
1527
1526
|
onEnter: P,
|
|
@@ -1529,7 +1528,7 @@ const Pn = (t) => {
|
|
|
1529
1528
|
} = j();
|
|
1530
1529
|
J.onEnter = P, J.onExited = D;
|
|
1531
1530
|
}
|
|
1532
|
-
const
|
|
1531
|
+
const he = {
|
|
1533
1532
|
slots: {
|
|
1534
1533
|
root: N.Root,
|
|
1535
1534
|
backdrop: N.Backdrop,
|
|
@@ -1539,21 +1538,21 @@ const Pn = (t) => {
|
|
|
1539
1538
|
...m,
|
|
1540
1539
|
..._
|
|
1541
1540
|
}
|
|
1542
|
-
}, [Ce,
|
|
1541
|
+
}, [Ce, Me] = G("root", {
|
|
1543
1542
|
ref: r,
|
|
1544
|
-
elementType:
|
|
1543
|
+
elementType: Pn,
|
|
1545
1544
|
externalForwardedProps: {
|
|
1546
|
-
...
|
|
1545
|
+
...he,
|
|
1547
1546
|
...q,
|
|
1548
1547
|
component: v
|
|
1549
1548
|
},
|
|
1550
1549
|
getSlotProps: d,
|
|
1551
1550
|
ownerState: Y,
|
|
1552
1551
|
className: ee(l, K == null ? void 0 : K.root, !Y.open && Y.exited && (K == null ? void 0 : K.hidden))
|
|
1553
|
-
}), [
|
|
1552
|
+
}), [ke, De] = G("backdrop", {
|
|
1554
1553
|
ref: o == null ? void 0 : o.ref,
|
|
1555
|
-
elementType:
|
|
1556
|
-
externalForwardedProps:
|
|
1554
|
+
elementType: s,
|
|
1555
|
+
externalForwardedProps: he,
|
|
1557
1556
|
shouldForwardComponentProp: !0,
|
|
1558
1557
|
additionalProps: o,
|
|
1559
1558
|
getSlotProps: (P) => h({
|
|
@@ -1565,20 +1564,20 @@ const Pn = (t) => {
|
|
|
1565
1564
|
className: ee(o == null ? void 0 : o.className, K == null ? void 0 : K.backdrop),
|
|
1566
1565
|
ownerState: Y
|
|
1567
1566
|
});
|
|
1568
|
-
return !y && !
|
|
1567
|
+
return !y && !k && (!X || F) ? null : /* @__PURE__ */ L.jsx(Oe, {
|
|
1569
1568
|
ref: U,
|
|
1570
1569
|
container: T,
|
|
1571
1570
|
disablePortal: g,
|
|
1572
1571
|
children: /* @__PURE__ */ L.jsxs(Ce, {
|
|
1573
|
-
...
|
|
1574
|
-
children: [!f &&
|
|
1572
|
+
...Me,
|
|
1573
|
+
children: [!f && s ? /* @__PURE__ */ L.jsx(ke, {
|
|
1575
1574
|
...De
|
|
1576
|
-
}) : null, /* @__PURE__ */ L.jsx(
|
|
1575
|
+
}) : null, /* @__PURE__ */ L.jsx(Re, {
|
|
1577
1576
|
disableEnforceFocus: I,
|
|
1578
1577
|
disableAutoFocus: E,
|
|
1579
1578
|
disableRestoreFocus: w,
|
|
1580
1579
|
isEnabled: R,
|
|
1581
|
-
open:
|
|
1580
|
+
open: k,
|
|
1582
1581
|
children: /* @__PURE__ */ p.cloneElement(b, J)
|
|
1583
1582
|
})]
|
|
1584
1583
|
})
|
|
@@ -1664,7 +1663,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
1664
1663
|
* By default, it uses the body of the top-level document object,
|
|
1665
1664
|
* so it's simply `document.body` most of the time.
|
|
1666
1665
|
*/
|
|
1667
|
-
container: e.oneOfType([
|
|
1666
|
+
container: e.oneOfType([Te, e.func]),
|
|
1668
1667
|
/**
|
|
1669
1668
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
1670
1669
|
* replace it to the last focused element when it closes.
|
|
@@ -1758,16 +1757,20 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
1758
1757
|
*/
|
|
1759
1758
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1760
1759
|
});
|
|
1760
|
+
function On(t) {
|
|
1761
|
+
return se("MuiPaper", t);
|
|
1762
|
+
}
|
|
1763
|
+
ce("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
1761
1764
|
const Nn = (t) => {
|
|
1762
1765
|
const {
|
|
1763
1766
|
square: n,
|
|
1764
1767
|
elevation: r,
|
|
1765
|
-
variant:
|
|
1766
|
-
classes:
|
|
1768
|
+
variant: i,
|
|
1769
|
+
classes: s
|
|
1767
1770
|
} = t, o = {
|
|
1768
|
-
root: ["root",
|
|
1771
|
+
root: ["root", i, !n && "rounded", i === "elevation" && `elevation${r}`]
|
|
1769
1772
|
};
|
|
1770
|
-
return
|
|
1773
|
+
return le(o, On, s);
|
|
1771
1774
|
}, wn = z("div", {
|
|
1772
1775
|
name: "MuiPaper",
|
|
1773
1776
|
slot: "Root",
|
|
@@ -1808,24 +1811,24 @@ const Nn = (t) => {
|
|
|
1808
1811
|
}]
|
|
1809
1812
|
}))), vt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
1810
1813
|
var m;
|
|
1811
|
-
const
|
|
1814
|
+
const i = ae({
|
|
1812
1815
|
props: n,
|
|
1813
1816
|
name: "MuiPaper"
|
|
1814
|
-
}),
|
|
1817
|
+
}), s = Ue(), {
|
|
1815
1818
|
className: o,
|
|
1816
1819
|
component: a = "div",
|
|
1817
1820
|
elevation: l = 1,
|
|
1818
1821
|
square: c = !1,
|
|
1819
1822
|
variant: b = "elevation",
|
|
1820
1823
|
...T
|
|
1821
|
-
} =
|
|
1822
|
-
...
|
|
1824
|
+
} = i, v = {
|
|
1825
|
+
...i,
|
|
1823
1826
|
component: a,
|
|
1824
1827
|
elevation: l,
|
|
1825
1828
|
square: c,
|
|
1826
1829
|
variant: b
|
|
1827
1830
|
}, N = Nn(v);
|
|
1828
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1831
|
+
return process.env.NODE_ENV !== "production" && s.shadows[l] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
1829
1832
|
`)), /* @__PURE__ */ L.jsx(wn, {
|
|
1830
1833
|
as: a,
|
|
1831
1834
|
ownerState: v,
|
|
@@ -1834,11 +1837,11 @@ const Nn = (t) => {
|
|
|
1834
1837
|
...T,
|
|
1835
1838
|
style: {
|
|
1836
1839
|
...b === "elevation" && {
|
|
1837
|
-
"--Paper-shadow": (
|
|
1838
|
-
...
|
|
1839
|
-
"--Paper-overlay": (m =
|
|
1840
|
+
"--Paper-shadow": (s.vars || s).shadows[l],
|
|
1841
|
+
...s.vars && {
|
|
1842
|
+
"--Paper-overlay": (m = s.vars.overlays) == null ? void 0 : m[l]
|
|
1840
1843
|
},
|
|
1841
|
-
...!
|
|
1844
|
+
...!s.vars && s.palette.mode === "dark" && {
|
|
1842
1845
|
"--Paper-overlay": `linear-gradient(${ze("#fff", We(l))}, ${ze("#fff", We(l))})`
|
|
1843
1846
|
}
|
|
1844
1847
|
},
|
|
@@ -1900,9 +1903,9 @@ process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
|
1900
1903
|
variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
|
|
1901
1904
|
});
|
|
1902
1905
|
function Sn(t) {
|
|
1903
|
-
return
|
|
1906
|
+
return se("MuiPopover", t);
|
|
1904
1907
|
}
|
|
1905
|
-
|
|
1908
|
+
ce("MuiPopover", ["root", "paper"]);
|
|
1906
1909
|
function nt(t, n) {
|
|
1907
1910
|
let r = 0;
|
|
1908
1911
|
return typeof n == "number" ? r = n : n === "center" ? r = t.height / 2 : n === "bottom" && (r = t.height), r;
|
|
@@ -1914,18 +1917,18 @@ function ot(t, n) {
|
|
|
1914
1917
|
function rt(t) {
|
|
1915
1918
|
return [t.horizontal, t.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
|
1916
1919
|
}
|
|
1917
|
-
function
|
|
1920
|
+
function fe(t) {
|
|
1918
1921
|
return typeof t == "function" ? t() : t;
|
|
1919
1922
|
}
|
|
1920
1923
|
const Cn = (t) => {
|
|
1921
1924
|
const {
|
|
1922
1925
|
classes: n
|
|
1923
1926
|
} = t;
|
|
1924
|
-
return
|
|
1927
|
+
return le({
|
|
1925
1928
|
root: ["root"],
|
|
1926
1929
|
paper: ["paper"]
|
|
1927
1930
|
}, Sn, n);
|
|
1928
|
-
},
|
|
1931
|
+
}, Mn = z(yt, {
|
|
1929
1932
|
name: "MuiPopover",
|
|
1930
1933
|
slot: "Root",
|
|
1931
1934
|
overridesResolver: (t, n) => n.root
|
|
@@ -1946,11 +1949,11 @@ const Cn = (t) => {
|
|
|
1946
1949
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1947
1950
|
outline: 0
|
|
1948
1951
|
}), xt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
1949
|
-
const
|
|
1952
|
+
const i = ae({
|
|
1950
1953
|
props: n,
|
|
1951
1954
|
name: "MuiPopover"
|
|
1952
1955
|
}), {
|
|
1953
|
-
action:
|
|
1956
|
+
action: s,
|
|
1954
1957
|
anchorEl: o,
|
|
1955
1958
|
anchorOrigin: a = {
|
|
1956
1959
|
vertical: "top",
|
|
@@ -1979,8 +1982,8 @@ const Cn = (t) => {
|
|
|
1979
1982
|
// TODO: remove in v7
|
|
1980
1983
|
disableScrollLock: S = !1,
|
|
1981
1984
|
...O
|
|
1982
|
-
} =
|
|
1983
|
-
...
|
|
1985
|
+
} = i, x = p.useRef(), k = {
|
|
1986
|
+
...i,
|
|
1984
1987
|
anchorOrigin: a,
|
|
1985
1988
|
anchorReference: c,
|
|
1986
1989
|
elevation: N,
|
|
@@ -1989,13 +1992,13 @@ const Cn = (t) => {
|
|
|
1989
1992
|
TransitionComponent: u,
|
|
1990
1993
|
transitionDuration: f,
|
|
1991
1994
|
TransitionProps: y
|
|
1992
|
-
}, _ = Cn(
|
|
1995
|
+
}, _ = Cn(k), A = p.useCallback(() => {
|
|
1993
1996
|
if (c === "anchorPosition")
|
|
1994
1997
|
return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), l;
|
|
1995
|
-
const P =
|
|
1998
|
+
const P = fe(o), D = P && P.nodeType === 1 ? P : ve(x.current).body, $ = D.getBoundingClientRect();
|
|
1996
1999
|
if (process.env.NODE_ENV !== "production") {
|
|
1997
|
-
const
|
|
1998
|
-
process.env.NODE_ENV !== "test" &&
|
|
2000
|
+
const H = D.getBoundingClientRect();
|
|
2001
|
+
process.env.NODE_ENV !== "test" && H.top === 0 && H.left === 0 && H.right === 0 && H.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(`
|
|
1999
2002
|
`));
|
|
2000
2003
|
}
|
|
2001
2004
|
return {
|
|
@@ -2016,30 +2019,30 @@ const Cn = (t) => {
|
|
|
2016
2019
|
left: null,
|
|
2017
2020
|
transformOrigin: rt($)
|
|
2018
2021
|
};
|
|
2019
|
-
const
|
|
2020
|
-
let te =
|
|
2021
|
-
const qe = te + D.height, Ke = ne + D.width,
|
|
2022
|
+
const H = A();
|
|
2023
|
+
let te = H.top - $.vertical, ne = H.left - $.horizontal;
|
|
2024
|
+
const qe = te + D.height, Ke = ne + D.width, Be = Le(fe(o)), ue = Be.innerHeight - m, He = Be.innerWidth - m;
|
|
2022
2025
|
if (m !== null && te < m) {
|
|
2023
|
-
const
|
|
2024
|
-
te -=
|
|
2025
|
-
} else if (m !== null && qe >
|
|
2026
|
-
const
|
|
2027
|
-
te -=
|
|
2026
|
+
const B = te - m;
|
|
2027
|
+
te -= B, $.vertical += B;
|
|
2028
|
+
} else if (m !== null && qe > ue) {
|
|
2029
|
+
const B = qe - ue;
|
|
2030
|
+
te -= B, $.vertical += B;
|
|
2028
2031
|
}
|
|
2029
|
-
if (process.env.NODE_ENV !== "production" && D.height >
|
|
2032
|
+
if (process.env.NODE_ENV !== "production" && D.height > ue && D.height && ue && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${D.height - ue}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
2030
2033
|
`)), m !== null && ne < m) {
|
|
2031
|
-
const
|
|
2032
|
-
ne -=
|
|
2033
|
-
} else if (Ke >
|
|
2034
|
-
const
|
|
2035
|
-
ne -=
|
|
2034
|
+
const B = ne - m;
|
|
2035
|
+
ne -= B, $.horizontal += B;
|
|
2036
|
+
} else if (Ke > He) {
|
|
2037
|
+
const B = Ke - He;
|
|
2038
|
+
ne -= B, $.horizontal += B;
|
|
2036
2039
|
}
|
|
2037
2040
|
return {
|
|
2038
2041
|
top: `${Math.round(te)}px`,
|
|
2039
2042
|
left: `${Math.round(ne)}px`,
|
|
2040
2043
|
transformOrigin: rt($)
|
|
2041
2044
|
};
|
|
2042
|
-
}, [o, c, A, V, m]), [
|
|
2045
|
+
}, [o, c, A, V, m]), [M, d] = p.useState(E), h = p.useCallback(() => {
|
|
2043
2046
|
const P = x.current;
|
|
2044
2047
|
if (!P)
|
|
2045
2048
|
return;
|
|
@@ -2054,16 +2057,16 @@ const Cn = (t) => {
|
|
|
2054
2057
|
};
|
|
2055
2058
|
p.useEffect(() => {
|
|
2056
2059
|
E && h();
|
|
2057
|
-
}), p.useImperativeHandle(
|
|
2060
|
+
}), p.useImperativeHandle(s, () => E ? {
|
|
2058
2061
|
updatePosition: () => {
|
|
2059
2062
|
h();
|
|
2060
2063
|
}
|
|
2061
2064
|
} : null, [E, h]), p.useEffect(() => {
|
|
2062
2065
|
if (!E)
|
|
2063
2066
|
return;
|
|
2064
|
-
const P =
|
|
2067
|
+
const P = Gt(() => {
|
|
2065
2068
|
h();
|
|
2066
|
-
}), D = Le(
|
|
2069
|
+
}), D = Le(fe(o));
|
|
2067
2070
|
return D.addEventListener("resize", P), () => {
|
|
2068
2071
|
P.clear(), D.removeEventListener("resize", P);
|
|
2069
2072
|
};
|
|
@@ -2080,14 +2083,14 @@ const Cn = (t) => {
|
|
|
2080
2083
|
...g
|
|
2081
2084
|
}
|
|
2082
2085
|
}, [X, Y] = G("transition", {
|
|
2083
|
-
elementType:
|
|
2086
|
+
elementType: Pe,
|
|
2084
2087
|
externalForwardedProps: F,
|
|
2085
|
-
ownerState:
|
|
2088
|
+
ownerState: k,
|
|
2086
2089
|
getSlotProps: (P) => ({
|
|
2087
2090
|
...P,
|
|
2088
2091
|
onEntering: (D, $) => {
|
|
2089
|
-
var
|
|
2090
|
-
(
|
|
2092
|
+
var H;
|
|
2093
|
+
(H = P.onEntering) == null || H.call(P, D, $), j();
|
|
2091
2094
|
},
|
|
2092
2095
|
onExited: (D) => {
|
|
2093
2096
|
var $;
|
|
@@ -2100,13 +2103,13 @@ const Cn = (t) => {
|
|
|
2100
2103
|
}
|
|
2101
2104
|
});
|
|
2102
2105
|
f === "auto" && !X.muiSupportAuto && (R = void 0);
|
|
2103
|
-
const K = v || (o ?
|
|
2104
|
-
slots:
|
|
2106
|
+
const K = v || (o ? ve(fe(o)).body : void 0), [J, {
|
|
2107
|
+
slots: he,
|
|
2105
2108
|
slotProps: Ce,
|
|
2106
|
-
...
|
|
2109
|
+
...Me
|
|
2107
2110
|
}] = G("root", {
|
|
2108
2111
|
ref: r,
|
|
2109
|
-
elementType:
|
|
2112
|
+
elementType: Mn,
|
|
2110
2113
|
externalForwardedProps: {
|
|
2111
2114
|
...F,
|
|
2112
2115
|
...O
|
|
@@ -2117,16 +2120,16 @@ const Cn = (t) => {
|
|
|
2117
2120
|
backdrop: C.backdrop
|
|
2118
2121
|
},
|
|
2119
2122
|
slotProps: {
|
|
2120
|
-
backdrop:
|
|
2123
|
+
backdrop: jt(typeof g.backdrop == "function" ? g.backdrop(k) : g.backdrop, {
|
|
2121
2124
|
invisible: !0
|
|
2122
2125
|
})
|
|
2123
2126
|
},
|
|
2124
2127
|
container: K,
|
|
2125
2128
|
open: E
|
|
2126
2129
|
},
|
|
2127
|
-
ownerState:
|
|
2130
|
+
ownerState: k,
|
|
2128
2131
|
className: ee(_.root, T)
|
|
2129
|
-
}), [
|
|
2132
|
+
}), [ke, De] = G("paper", {
|
|
2130
2133
|
ref: x,
|
|
2131
2134
|
className: _.paper,
|
|
2132
2135
|
elementType: Tt,
|
|
@@ -2134,23 +2137,23 @@ const Cn = (t) => {
|
|
|
2134
2137
|
shouldForwardComponentProp: !0,
|
|
2135
2138
|
additionalProps: {
|
|
2136
2139
|
elevation: N,
|
|
2137
|
-
style:
|
|
2140
|
+
style: M ? void 0 : {
|
|
2138
2141
|
opacity: 0
|
|
2139
2142
|
}
|
|
2140
2143
|
},
|
|
2141
|
-
ownerState:
|
|
2144
|
+
ownerState: k
|
|
2142
2145
|
});
|
|
2143
2146
|
return /* @__PURE__ */ L.jsx(J, {
|
|
2144
|
-
...
|
|
2145
|
-
...!
|
|
2146
|
-
slots:
|
|
2147
|
+
...Me,
|
|
2148
|
+
...!Jt(J) && {
|
|
2149
|
+
slots: he,
|
|
2147
2150
|
slotProps: Ce,
|
|
2148
2151
|
disableScrollLock: S
|
|
2149
2152
|
},
|
|
2150
2153
|
children: /* @__PURE__ */ L.jsx(X, {
|
|
2151
2154
|
...Y,
|
|
2152
2155
|
timeout: R,
|
|
2153
|
-
children: /* @__PURE__ */ L.jsx(
|
|
2156
|
+
children: /* @__PURE__ */ L.jsx(ke, {
|
|
2154
2157
|
...De,
|
|
2155
2158
|
children: b
|
|
2156
2159
|
})
|
|
@@ -2166,15 +2169,15 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2166
2169
|
* A ref for imperative actions.
|
|
2167
2170
|
* It currently only supports updatePosition() action.
|
|
2168
2171
|
*/
|
|
2169
|
-
action:
|
|
2172
|
+
action: Ft,
|
|
2170
2173
|
/**
|
|
2171
2174
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
2172
2175
|
* or a function that returns either.
|
|
2173
2176
|
* It's used to set the position of the popover.
|
|
2174
2177
|
*/
|
|
2175
|
-
anchorEl: Ne(e.oneOfType([
|
|
2178
|
+
anchorEl: Ne(e.oneOfType([Te, e.func]), (t) => {
|
|
2176
2179
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
2177
|
-
const n =
|
|
2180
|
+
const n = fe(t.anchorEl);
|
|
2178
2181
|
if (n && n.nodeType === 1) {
|
|
2179
2182
|
const r = n.getBoundingClientRect();
|
|
2180
2183
|
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
@@ -2255,7 +2258,7 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2255
2258
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
2256
2259
|
* so it's simply `document.body` most of the time.
|
|
2257
2260
|
*/
|
|
2258
|
-
container: e.oneOfType([
|
|
2261
|
+
container: e.oneOfType([Te, e.func]),
|
|
2259
2262
|
/**
|
|
2260
2263
|
* Disable the scroll lock behavior.
|
|
2261
2264
|
* @default false
|
|
@@ -2290,7 +2293,7 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2290
2293
|
* @default {}
|
|
2291
2294
|
*/
|
|
2292
2295
|
PaperProps: e.shape({
|
|
2293
|
-
component:
|
|
2296
|
+
component: Lt
|
|
2294
2297
|
}),
|
|
2295
2298
|
/**
|
|
2296
2299
|
* The props used for each slot inside.
|
|
@@ -2356,39 +2359,41 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2356
2359
|
*/
|
|
2357
2360
|
TransitionProps: e.object
|
|
2358
2361
|
});
|
|
2359
|
-
function
|
|
2362
|
+
function kn(t) {
|
|
2360
2363
|
var v;
|
|
2361
2364
|
const {
|
|
2362
2365
|
elementType: n,
|
|
2363
2366
|
externalSlotProps: r,
|
|
2364
|
-
ownerState:
|
|
2365
|
-
skipResolvingSlotProps:
|
|
2367
|
+
ownerState: i,
|
|
2368
|
+
skipResolvingSlotProps: s = !1,
|
|
2366
2369
|
...o
|
|
2367
|
-
} = t, a =
|
|
2370
|
+
} = t, a = s ? {} : At(r, i), {
|
|
2368
2371
|
props: l,
|
|
2369
2372
|
internalRef: c
|
|
2370
|
-
} =
|
|
2373
|
+
} = _t({
|
|
2371
2374
|
...o,
|
|
2372
2375
|
externalSlotProps: a
|
|
2373
2376
|
}), b = we(c, a == null ? void 0 : a.ref, (v = t.additionalProps) == null ? void 0 : v.ref);
|
|
2374
|
-
return
|
|
2377
|
+
return $t(n, {
|
|
2375
2378
|
...l,
|
|
2376
2379
|
ref: b
|
|
2377
|
-
},
|
|
2380
|
+
}, i);
|
|
2378
2381
|
}
|
|
2382
|
+
const Pt = /* @__PURE__ */ p.createContext({});
|
|
2383
|
+
process.env.NODE_ENV !== "production" && (Pt.displayName = "ListContext");
|
|
2379
2384
|
function Dn(t) {
|
|
2380
|
-
return
|
|
2385
|
+
return se("MuiList", t);
|
|
2381
2386
|
}
|
|
2382
|
-
|
|
2387
|
+
ce("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
2383
2388
|
const In = (t) => {
|
|
2384
2389
|
const {
|
|
2385
2390
|
classes: n,
|
|
2386
2391
|
disablePadding: r,
|
|
2387
|
-
dense:
|
|
2388
|
-
subheader:
|
|
2392
|
+
dense: i,
|
|
2393
|
+
subheader: s
|
|
2389
2394
|
} = t;
|
|
2390
|
-
return
|
|
2391
|
-
root: ["root", !r && "padding",
|
|
2395
|
+
return le({
|
|
2396
|
+
root: ["root", !r && "padding", i && "dense", s && "subheader"]
|
|
2392
2397
|
}, Dn, n);
|
|
2393
2398
|
}, jn = z("ul", {
|
|
2394
2399
|
name: "MuiList",
|
|
@@ -2420,27 +2425,27 @@ const In = (t) => {
|
|
|
2420
2425
|
paddingTop: 0
|
|
2421
2426
|
}
|
|
2422
2427
|
}]
|
|
2423
|
-
}),
|
|
2424
|
-
const
|
|
2428
|
+
}), Rt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
2429
|
+
const i = ae({
|
|
2425
2430
|
props: n,
|
|
2426
2431
|
name: "MuiList"
|
|
2427
2432
|
}), {
|
|
2428
|
-
children:
|
|
2433
|
+
children: s,
|
|
2429
2434
|
className: o,
|
|
2430
2435
|
component: a = "ul",
|
|
2431
2436
|
dense: l = !1,
|
|
2432
2437
|
disablePadding: c = !1,
|
|
2433
2438
|
subheader: b,
|
|
2434
2439
|
...T
|
|
2435
|
-
} =
|
|
2440
|
+
} = i, v = p.useMemo(() => ({
|
|
2436
2441
|
dense: l
|
|
2437
2442
|
}), [l]), N = {
|
|
2438
|
-
...
|
|
2443
|
+
...i,
|
|
2439
2444
|
component: a,
|
|
2440
2445
|
dense: l,
|
|
2441
2446
|
disablePadding: c
|
|
2442
2447
|
}, m = In(N);
|
|
2443
|
-
return /* @__PURE__ */ L.jsx(
|
|
2448
|
+
return /* @__PURE__ */ L.jsx(Pt.Provider, {
|
|
2444
2449
|
value: v,
|
|
2445
2450
|
children: /* @__PURE__ */ L.jsxs(jn, {
|
|
2446
2451
|
as: a,
|
|
@@ -2448,11 +2453,11 @@ const In = (t) => {
|
|
|
2448
2453
|
ref: r,
|
|
2449
2454
|
ownerState: N,
|
|
2450
2455
|
...T,
|
|
2451
|
-
children: [b,
|
|
2456
|
+
children: [b, s]
|
|
2452
2457
|
})
|
|
2453
2458
|
});
|
|
2454
2459
|
});
|
|
2455
|
-
process.env.NODE_ENV !== "production" && (
|
|
2460
|
+
process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
2456
2461
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2457
2462
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2458
2463
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2502,37 +2507,37 @@ function Fn(t = window) {
|
|
|
2502
2507
|
function Fe(t, n, r) {
|
|
2503
2508
|
return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : r ? null : t.firstChild;
|
|
2504
2509
|
}
|
|
2505
|
-
function
|
|
2510
|
+
function it(t, n, r) {
|
|
2506
2511
|
return t === n ? r ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : r ? null : t.lastChild;
|
|
2507
2512
|
}
|
|
2508
|
-
function
|
|
2513
|
+
function Ot(t, n) {
|
|
2509
2514
|
if (n === void 0)
|
|
2510
2515
|
return !0;
|
|
2511
2516
|
let r = t.innerText;
|
|
2512
2517
|
return r === void 0 && (r = t.textContent), r = r.trim().toLowerCase(), r.length === 0 ? !1 : n.repeating ? r[0] === n.keys[0] : r.startsWith(n.keys.join(""));
|
|
2513
2518
|
}
|
|
2514
|
-
function
|
|
2515
|
-
let a = !1, l =
|
|
2519
|
+
function pe(t, n, r, i, s, o) {
|
|
2520
|
+
let a = !1, l = s(t, n, n ? r : !1);
|
|
2516
2521
|
for (; l; ) {
|
|
2517
2522
|
if (l === t.firstChild) {
|
|
2518
2523
|
if (a)
|
|
2519
2524
|
return !1;
|
|
2520
2525
|
a = !0;
|
|
2521
2526
|
}
|
|
2522
|
-
const c =
|
|
2523
|
-
if (!l.hasAttribute("tabindex") || !
|
|
2524
|
-
l =
|
|
2527
|
+
const c = i ? !1 : l.disabled || l.getAttribute("aria-disabled") === "true";
|
|
2528
|
+
if (!l.hasAttribute("tabindex") || !Ot(l, o) || c)
|
|
2529
|
+
l = s(t, l, r);
|
|
2525
2530
|
else
|
|
2526
2531
|
return l.focus(), !0;
|
|
2527
2532
|
}
|
|
2528
2533
|
return !1;
|
|
2529
2534
|
}
|
|
2530
|
-
const
|
|
2535
|
+
const Nt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
2531
2536
|
const {
|
|
2532
2537
|
// private
|
|
2533
2538
|
// eslint-disable-next-line react/prop-types
|
|
2534
|
-
actions:
|
|
2535
|
-
autoFocus:
|
|
2539
|
+
actions: i,
|
|
2540
|
+
autoFocus: s = !1,
|
|
2536
2541
|
autoFocusItem: o = !1,
|
|
2537
2542
|
children: a,
|
|
2538
2543
|
className: l,
|
|
@@ -2547,9 +2552,9 @@ const Ot = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
2547
2552
|
previousKeyMatched: !0,
|
|
2548
2553
|
lastTime: null
|
|
2549
2554
|
});
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
}, [
|
|
2555
|
+
Ht(() => {
|
|
2556
|
+
s && m.current.focus();
|
|
2557
|
+
}, [s]), p.useImperativeHandle(i, () => ({
|
|
2553
2558
|
adjustStyleForScrollbar: (u, {
|
|
2554
2559
|
direction: f
|
|
2555
2560
|
}) => {
|
|
@@ -2567,20 +2572,20 @@ const Ot = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
2567
2572
|
T && T(u);
|
|
2568
2573
|
return;
|
|
2569
2574
|
}
|
|
2570
|
-
const O =
|
|
2575
|
+
const O = ve(f).activeElement;
|
|
2571
2576
|
if (y === "ArrowDown")
|
|
2572
|
-
u.preventDefault(),
|
|
2577
|
+
u.preventDefault(), pe(f, O, b, c, Fe);
|
|
2573
2578
|
else if (y === "ArrowUp")
|
|
2574
|
-
u.preventDefault(),
|
|
2579
|
+
u.preventDefault(), pe(f, O, b, c, it);
|
|
2575
2580
|
else if (y === "Home")
|
|
2576
|
-
u.preventDefault(),
|
|
2581
|
+
u.preventDefault(), pe(f, null, b, c, Fe);
|
|
2577
2582
|
else if (y === "End")
|
|
2578
|
-
u.preventDefault(),
|
|
2583
|
+
u.preventDefault(), pe(f, null, b, c, it);
|
|
2579
2584
|
else if (y.length === 1) {
|
|
2580
|
-
const x = E.current,
|
|
2581
|
-
x.keys.length > 0 && (_ - x.lastTime > 500 ? (x.keys = [], x.repeating = !0, x.previousKeyMatched = !0) : x.repeating &&
|
|
2582
|
-
const A = O && !x.repeating &&
|
|
2583
|
-
x.previousKeyMatched && (A ||
|
|
2585
|
+
const x = E.current, k = y.toLowerCase(), _ = performance.now();
|
|
2586
|
+
x.keys.length > 0 && (_ - x.lastTime > 500 ? (x.keys = [], x.repeating = !0, x.previousKeyMatched = !0) : x.repeating && k !== x.keys[0] && (x.repeating = !1)), x.lastTime = _, x.keys.push(k);
|
|
2587
|
+
const A = O && !x.repeating && Ot(O, x);
|
|
2588
|
+
x.previousKeyMatched && (A || pe(f, O, !1, c, Fe, x)) ? u.preventDefault() : x.previousKeyMatched = !1;
|
|
2584
2589
|
}
|
|
2585
2590
|
T && T(u);
|
|
2586
2591
|
}, C = we(m, r);
|
|
@@ -2590,7 +2595,7 @@ const Ot = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
2590
2595
|
g === f && (g += 1, g >= a.length && (g = -1));
|
|
2591
2596
|
return;
|
|
2592
2597
|
}
|
|
2593
|
-
process.env.NODE_ENV !== "production" &&
|
|
2598
|
+
process.env.NODE_ENV !== "production" && st.isFragment(u) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2594
2599
|
`)), u.props.disabled || (v === "selectedMenu" && u.props.selected || g === -1) && (g = f), g === f && (u.props.disabled || u.props.muiSkipListHighlight || u.type.muiSkipListHighlight) && (g += 1, g >= a.length && (g = -1));
|
|
2595
2600
|
});
|
|
2596
2601
|
const w = p.Children.map(a, (u, f) => {
|
|
@@ -2600,17 +2605,17 @@ const Ot = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
2600
2605
|
}
|
|
2601
2606
|
return u;
|
|
2602
2607
|
});
|
|
2603
|
-
return /* @__PURE__ */ L.jsx(
|
|
2608
|
+
return /* @__PURE__ */ L.jsx(Rt, {
|
|
2604
2609
|
role: "menu",
|
|
2605
2610
|
ref: C,
|
|
2606
2611
|
className: l,
|
|
2607
2612
|
onKeyDown: I,
|
|
2608
|
-
tabIndex:
|
|
2613
|
+
tabIndex: s ? 0 : -1,
|
|
2609
2614
|
...N,
|
|
2610
2615
|
children: w
|
|
2611
2616
|
});
|
|
2612
2617
|
});
|
|
2613
|
-
process.env.NODE_ENV !== "production" && (
|
|
2618
|
+
process.env.NODE_ENV !== "production" && (Nt.propTypes = {
|
|
2614
2619
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2615
2620
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2616
2621
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2656,9 +2661,9 @@ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
|
|
|
2656
2661
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2657
2662
|
});
|
|
2658
2663
|
function Ln(t) {
|
|
2659
|
-
return
|
|
2664
|
+
return se("MuiMenu", t);
|
|
2660
2665
|
}
|
|
2661
|
-
|
|
2666
|
+
ce("MuiMenu", ["root", "paper", "list"]);
|
|
2662
2667
|
const An = {
|
|
2663
2668
|
vertical: "top",
|
|
2664
2669
|
horizontal: "right"
|
|
@@ -2669,13 +2674,13 @@ const An = {
|
|
|
2669
2674
|
const {
|
|
2670
2675
|
classes: n
|
|
2671
2676
|
} = t;
|
|
2672
|
-
return
|
|
2677
|
+
return le({
|
|
2673
2678
|
root: ["root"],
|
|
2674
2679
|
paper: ["paper"],
|
|
2675
2680
|
list: ["list"]
|
|
2676
2681
|
}, Ln, n);
|
|
2677
2682
|
}, Vn = z(xt, {
|
|
2678
|
-
shouldForwardProp: (t) =>
|
|
2683
|
+
shouldForwardProp: (t) => Ct(t) || t === "classes",
|
|
2679
2684
|
name: "MuiMenu",
|
|
2680
2685
|
slot: "Root",
|
|
2681
2686
|
overridesResolver: (t, n) => n.root
|
|
@@ -2690,7 +2695,7 @@ const An = {
|
|
|
2690
2695
|
maxHeight: "calc(100% - 96px)",
|
|
2691
2696
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
2692
2697
|
WebkitOverflowScrolling: "touch"
|
|
2693
|
-
}), qn = z(
|
|
2698
|
+
}), qn = z(Nt, {
|
|
2694
2699
|
name: "MuiMenu",
|
|
2695
2700
|
slot: "List",
|
|
2696
2701
|
overridesResolver: (t, n) => n.list
|
|
@@ -2698,11 +2703,11 @@ const An = {
|
|
|
2698
2703
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
2699
2704
|
outline: 0
|
|
2700
2705
|
}), Kn = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
2701
|
-
const
|
|
2706
|
+
const i = ae({
|
|
2702
2707
|
props: n,
|
|
2703
2708
|
name: "MuiMenu"
|
|
2704
2709
|
}), {
|
|
2705
|
-
autoFocus:
|
|
2710
|
+
autoFocus: s = !0,
|
|
2706
2711
|
children: o,
|
|
2707
2712
|
className: a,
|
|
2708
2713
|
disableAutoFocusItem: l = !1,
|
|
@@ -2720,9 +2725,9 @@ const An = {
|
|
|
2720
2725
|
slots: g = {},
|
|
2721
2726
|
slotProps: w = {},
|
|
2722
2727
|
...u
|
|
2723
|
-
} =
|
|
2724
|
-
...
|
|
2725
|
-
autoFocus:
|
|
2728
|
+
} = i, f = Wt(), y = {
|
|
2729
|
+
...i,
|
|
2730
|
+
autoFocus: s,
|
|
2726
2731
|
disableAutoFocusItem: l,
|
|
2727
2732
|
MenuListProps: c,
|
|
2728
2733
|
onEntering: E,
|
|
@@ -2730,7 +2735,7 @@ const An = {
|
|
|
2730
2735
|
transitionDuration: m,
|
|
2731
2736
|
TransitionProps: I,
|
|
2732
2737
|
variant: C
|
|
2733
|
-
}, S = $n(y), O =
|
|
2738
|
+
}, S = $n(y), O = s && !l && T, x = p.useRef(null), k = (R, F) => {
|
|
2734
2739
|
x.current && x.current.adjustStyleForScrollbar(R, {
|
|
2735
2740
|
direction: f ? "rtl" : "ltr"
|
|
2736
2741
|
}), E && E(R, F);
|
|
@@ -2739,7 +2744,7 @@ const An = {
|
|
|
2739
2744
|
};
|
|
2740
2745
|
let A = -1;
|
|
2741
2746
|
p.Children.map(o, (R, F) => {
|
|
2742
|
-
/* @__PURE__ */ p.isValidElement(R) && (process.env.NODE_ENV !== "production" &&
|
|
2747
|
+
/* @__PURE__ */ p.isValidElement(R) && (process.env.NODE_ENV !== "production" && st.isFragment(R) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2743
2748
|
`)), R.props.disabled || (C === "selectedMenu" && R.props.selected || A === -1) && (A = F));
|
|
2744
2749
|
});
|
|
2745
2750
|
const V = {
|
|
@@ -2750,12 +2755,12 @@ const An = {
|
|
|
2750
2755
|
paper: v,
|
|
2751
2756
|
...w
|
|
2752
2757
|
}
|
|
2753
|
-
}, q =
|
|
2758
|
+
}, q = kn({
|
|
2754
2759
|
elementType: g.root,
|
|
2755
2760
|
externalSlotProps: w.root,
|
|
2756
2761
|
ownerState: y,
|
|
2757
2762
|
className: [S.root, a]
|
|
2758
|
-
}), [
|
|
2763
|
+
}), [M, d] = G("paper", {
|
|
2759
2764
|
className: S.paper,
|
|
2760
2765
|
elementType: Un,
|
|
2761
2766
|
externalForwardedProps: V,
|
|
@@ -2784,7 +2789,7 @@ const An = {
|
|
|
2784
2789
|
transformOrigin: f ? An : _n,
|
|
2785
2790
|
slots: {
|
|
2786
2791
|
root: g.root,
|
|
2787
|
-
paper:
|
|
2792
|
+
paper: M,
|
|
2788
2793
|
backdrop: g.backdrop,
|
|
2789
2794
|
...g.transition && {
|
|
2790
2795
|
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
@@ -2799,7 +2804,7 @@ const An = {
|
|
|
2799
2804
|
...U,
|
|
2800
2805
|
onEntering: (...R) => {
|
|
2801
2806
|
var F;
|
|
2802
|
-
|
|
2807
|
+
k(...R), (F = U == null ? void 0 : U.onEntering) == null || F.call(U, ...R);
|
|
2803
2808
|
}
|
|
2804
2809
|
}
|
|
2805
2810
|
},
|
|
@@ -2811,7 +2816,7 @@ const An = {
|
|
|
2811
2816
|
classes: N,
|
|
2812
2817
|
children: /* @__PURE__ */ L.jsx(h, {
|
|
2813
2818
|
actions: x,
|
|
2814
|
-
autoFocus:
|
|
2819
|
+
autoFocus: s && (A === -1 || l),
|
|
2815
2820
|
autoFocusItem: O,
|
|
2816
2821
|
variant: C,
|
|
2817
2822
|
...j,
|
|
@@ -2828,7 +2833,7 @@ process.env.NODE_ENV !== "production" && (Kn.propTypes = {
|
|
|
2828
2833
|
* An HTML element, or a function that returns one.
|
|
2829
2834
|
* It's used to set the position of the menu.
|
|
2830
2835
|
*/
|
|
2831
|
-
anchorEl: e.oneOfType([
|
|
2836
|
+
anchorEl: e.oneOfType([Te, e.func]),
|
|
2832
2837
|
/**
|
|
2833
2838
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
2834
2839
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -2931,9 +2936,10 @@ process.env.NODE_ENV !== "production" && (Kn.propTypes = {
|
|
|
2931
2936
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2932
2937
|
});
|
|
2933
2938
|
export {
|
|
2939
|
+
Pt as L,
|
|
2934
2940
|
Kn as M,
|
|
2935
2941
|
xt as P,
|
|
2936
2942
|
ht as g,
|
|
2937
|
-
|
|
2938
|
-
|
|
2943
|
+
Jt as i,
|
|
2944
|
+
ve as o
|
|
2939
2945
|
};
|