@hybridcore/ui 1.1.3 → 1.3.0
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/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
- package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
- package/dist/Checkbox-DP6_qp1v.js +469 -0
- package/dist/Collapse-9egEADkh.js +296 -0
- package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
- package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
- package/dist/FormControlLabel-j_atSYQA.js +827 -0
- package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
- package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
- package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
- package/dist/ListItem-BFDUUjHt.js +428 -0
- package/dist/MenuItem-BejUFNIP.js +233 -0
- package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
- package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
- package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
- package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
- package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
- package/dist/components/card/index.js +5 -5
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/index.js +34 -0
- package/dist/components/collapsible-card/style.js +575 -0
- package/dist/components/confirm/dialog.js +5 -5
- package/dist/components/container/index.js +6 -6
- package/dist/components/context-menu/index.js +191 -603
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +2 -2
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/ol.js +2 -2
- package/dist/components/map/index.js +2 -2
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +89 -6
- package/dist/components/search-input/index.js +3 -3
- package/dist/components/template-property-filters/index.js +78 -0
- package/dist/components/template-property-filters/property.js +7019 -0
- package/dist/components/tree-select/index.js +14 -13
- package/dist/components/treeview-filter/index.js +263 -328
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
- package/dist/createSvgIcon-R_PakhKf.js +213 -0
- package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
- package/dist/index-C7W2wuUG.js +609 -0
- package/dist/index-DHnXB0CB.js +287 -0
- package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
- package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
- package/dist/main.d.ts +158 -0
- package/dist/main.js +33 -29
- package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
- package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
- package/dist/styled-CHMAYxVs.js +142 -0
- package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
- package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
- package/dist/useThemeProps-D4or2IlT.js +62 -0
- package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
- package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
- package/package.json +1 -1
- package/dist/Checkbox-DostZSwR.js +0 -673
- package/dist/index-Bw_m9ult.js +0 -1105
- package/dist/index-wW2D1aTG.js +0 -957
- package/dist/styled-C43K9x7T.js +0 -229
|
@@ -1,115 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import { g as
|
|
1
|
+
import { _ as j, a as d } from "./extends-C3382pL0.js";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { c as M, P as e } from "./createTheme-oOCi1S_n.js";
|
|
4
|
+
import { g as U, r as Lo, u as Y, c as L, a as G } from "./chainPropTypes-BmidnkZm.js";
|
|
5
|
+
import { g as H, s as _, r as jo, a as eo } from "./styled-Wx2vv4j8.js";
|
|
6
6
|
import { jsx as N, jsxs as co } from "react/jsx-runtime";
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { T as
|
|
10
|
-
import { e as po, a as
|
|
7
|
+
import { a as Q, B as Vo, b as ho, s as yo, c as Eo } from "./ButtonBase-C7CHOX3y.js";
|
|
8
|
+
import { u as No } from "./useTheme-CD5DEi5n.js";
|
|
9
|
+
import { T as Uo, r as Ho, g as To } from "./utils-BEaBPoDF.js";
|
|
10
|
+
import { e as po, a as So } from "./exactProp-DhXxfU8X.js";
|
|
11
11
|
import { o as V } from "./ownerDocument-CUrv0DIK.js";
|
|
12
12
|
import { o as uo } from "./ownerWindow-niciwP7I.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import * as
|
|
16
|
-
import { P as Do } from "./Paper-
|
|
17
|
-
function
|
|
13
|
+
import { r as Ko, m as qo, a as Yo, e as Go } from "./resolveComponentProps-BwtY1IP3.js";
|
|
14
|
+
import { c as Co, u as Xo } from "./useId-BHG98T5I.js";
|
|
15
|
+
import * as Jo from "react-dom";
|
|
16
|
+
import { P as Do } from "./Paper-k37cShvn.js";
|
|
17
|
+
function Oo(o, n, t, r, s) {
|
|
18
18
|
if (process.env.NODE_ENV === "production")
|
|
19
19
|
return null;
|
|
20
|
-
const i = o[
|
|
20
|
+
const i = o[n], a = s || n;
|
|
21
21
|
return i == null ? null : i && i.nodeType !== 1 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${t}\`. Expected an HTMLElement.`) : null;
|
|
22
22
|
}
|
|
23
|
-
function Zo(o) {
|
|
24
|
-
const e = o.documentElement.clientWidth;
|
|
25
|
-
return Math.abs(window.innerWidth - e);
|
|
26
|
-
}
|
|
27
|
-
function Jo(o, e, t) {
|
|
28
|
-
return o === void 0 || Go(o) ? e : l({}, e, {
|
|
29
|
-
ownerState: l({}, e.ownerState, t)
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function Bo(o, e = []) {
|
|
33
|
-
if (o === void 0)
|
|
34
|
-
return {};
|
|
35
|
-
const t = {};
|
|
36
|
-
return Object.keys(o).filter((r) => r.match(/^on[A-Z]/) && typeof o[r] == "function" && !e.includes(r)).forEach((r) => {
|
|
37
|
-
t[r] = o[r];
|
|
38
|
-
}), t;
|
|
39
|
-
}
|
|
40
|
-
function ko(o) {
|
|
41
|
-
if (o === void 0)
|
|
42
|
-
return {};
|
|
43
|
-
const e = {};
|
|
44
|
-
return Object.keys(o).filter((t) => !(t.match(/^on[A-Z]/) && typeof o[t] == "function")).forEach((t) => {
|
|
45
|
-
e[t] = o[t];
|
|
46
|
-
}), e;
|
|
47
|
-
}
|
|
48
23
|
function Qo(o) {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
additionalProps: t,
|
|
52
|
-
externalSlotProps: r,
|
|
53
|
-
externalForwardedProps: s,
|
|
54
|
-
className: i
|
|
55
|
-
} = o;
|
|
56
|
-
if (!e) {
|
|
57
|
-
const h = _(t == null ? void 0 : t.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), f = l({}, t == null ? void 0 : t.style, s == null ? void 0 : s.style, r == null ? void 0 : r.style), S = l({}, t, s, r);
|
|
58
|
-
return h.length > 0 && (S.className = h), Object.keys(f).length > 0 && (S.style = f), {
|
|
59
|
-
props: S,
|
|
60
|
-
internalRef: void 0
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
const a = Bo(l({}, s, r)), c = ko(r), p = ko(s), b = e(a), m = _(b == null ? void 0 : b.className, t == null ? void 0 : t.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), v = l({}, b == null ? void 0 : b.style, t == null ? void 0 : t.style, s == null ? void 0 : s.style, r == null ? void 0 : r.style), y = l({}, b, t, p, c);
|
|
64
|
-
return m.length > 0 && (y.className = m), Object.keys(v).length > 0 && (y.style = v), {
|
|
65
|
-
props: y,
|
|
66
|
-
internalRef: b.ref
|
|
67
|
-
};
|
|
24
|
+
const n = o.documentElement.clientWidth;
|
|
25
|
+
return Math.abs(window.innerWidth - n);
|
|
68
26
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const ee = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
73
|
-
function Po(o) {
|
|
74
|
-
var e;
|
|
27
|
+
const Zo = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
28
|
+
function ko(o) {
|
|
29
|
+
var n;
|
|
75
30
|
const {
|
|
76
31
|
elementType: t,
|
|
77
32
|
externalSlotProps: r,
|
|
78
33
|
ownerState: s,
|
|
79
34
|
skipResolvingSlotProps: i = !1
|
|
80
|
-
} = o, a = j(o,
|
|
81
|
-
props:
|
|
82
|
-
internalRef:
|
|
83
|
-
} =
|
|
84
|
-
externalSlotProps:
|
|
85
|
-
})), m =
|
|
86
|
-
return
|
|
35
|
+
} = o, a = j(o, Zo), l = i ? {} : Ko(r, s), {
|
|
36
|
+
props: u,
|
|
37
|
+
internalRef: g
|
|
38
|
+
} = qo(d({}, a, {
|
|
39
|
+
externalSlotProps: l
|
|
40
|
+
})), m = Q(g, l == null ? void 0 : l.ref, (n = o.additionalProps) == null ? void 0 : n.ref);
|
|
41
|
+
return Yo(t, d({}, u, {
|
|
87
42
|
ref: m
|
|
88
43
|
}), s);
|
|
89
44
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
45
|
+
function oe(o) {
|
|
46
|
+
return H("MuiButton", o);
|
|
92
47
|
}
|
|
93
|
-
const no =
|
|
94
|
-
process.env.NODE_ENV !== "production" && (
|
|
95
|
-
const
|
|
96
|
-
process.env.NODE_ENV !== "production" && (
|
|
97
|
-
const
|
|
48
|
+
const no = U("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), Io = /* @__PURE__ */ c.createContext({});
|
|
49
|
+
process.env.NODE_ENV !== "production" && (Io.displayName = "ButtonGroupContext");
|
|
50
|
+
const Bo = /* @__PURE__ */ c.createContext(void 0);
|
|
51
|
+
process.env.NODE_ENV !== "production" && (Bo.displayName = "ButtonGroupButtonContext");
|
|
52
|
+
const ee = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], ne = (o) => {
|
|
98
53
|
const {
|
|
99
|
-
color:
|
|
54
|
+
color: n,
|
|
100
55
|
disableElevation: t,
|
|
101
56
|
fullWidth: r,
|
|
102
57
|
size: s,
|
|
103
58
|
variant: i,
|
|
104
59
|
classes: a
|
|
105
|
-
} = o,
|
|
106
|
-
root: ["root", i, `${i}${
|
|
60
|
+
} = o, l = {
|
|
61
|
+
root: ["root", i, `${i}${M(n)}`, `size${M(s)}`, `${i}Size${M(s)}`, `color${M(n)}`, t && "disableElevation", r && "fullWidth"],
|
|
107
62
|
label: ["label"],
|
|
108
|
-
startIcon: ["icon", "startIcon", `iconSize${
|
|
109
|
-
endIcon: ["icon", "endIcon", `iconSize${
|
|
110
|
-
},
|
|
111
|
-
return
|
|
112
|
-
},
|
|
63
|
+
startIcon: ["icon", "startIcon", `iconSize${M(s)}`],
|
|
64
|
+
endIcon: ["icon", "endIcon", `iconSize${M(s)}`]
|
|
65
|
+
}, u = G(l, oe, a);
|
|
66
|
+
return d({}, a, u);
|
|
67
|
+
}, Mo = (o) => d({}, o.size === "small" && {
|
|
113
68
|
"& > *:nth-of-type(1)": {
|
|
114
69
|
fontSize: 18
|
|
115
70
|
}
|
|
@@ -121,50 +76,50 @@ const te = ["children", "color", "component", "className", "disabled", "disableE
|
|
|
121
76
|
"& > *:nth-of-type(1)": {
|
|
122
77
|
fontSize: 22
|
|
123
78
|
}
|
|
124
|
-
}),
|
|
125
|
-
shouldForwardProp: (o) =>
|
|
79
|
+
}), te = _(Vo, {
|
|
80
|
+
shouldForwardProp: (o) => jo(o) || o === "classes",
|
|
126
81
|
name: "MuiButton",
|
|
127
82
|
slot: "Root",
|
|
128
|
-
overridesResolver: (o,
|
|
83
|
+
overridesResolver: (o, n) => {
|
|
129
84
|
const {
|
|
130
85
|
ownerState: t
|
|
131
86
|
} = o;
|
|
132
|
-
return [
|
|
87
|
+
return [n.root, n[t.variant], n[`${t.variant}${M(t.color)}`], n[`size${M(t.size)}`], n[`${t.variant}Size${M(t.size)}`], t.color === "inherit" && n.colorInherit, t.disableElevation && n.disableElevation, t.fullWidth && n.fullWidth];
|
|
133
88
|
}
|
|
134
89
|
})(({
|
|
135
90
|
theme: o,
|
|
136
|
-
ownerState:
|
|
91
|
+
ownerState: n
|
|
137
92
|
}) => {
|
|
138
93
|
var t, r;
|
|
139
94
|
const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], i = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
140
|
-
return
|
|
95
|
+
return d({}, o.typography.button, {
|
|
141
96
|
minWidth: 64,
|
|
142
97
|
padding: "6px 16px",
|
|
143
98
|
borderRadius: (o.vars || o).shape.borderRadius,
|
|
144
99
|
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
145
100
|
duration: o.transitions.duration.short
|
|
146
101
|
}),
|
|
147
|
-
"&:hover":
|
|
102
|
+
"&:hover": d({
|
|
148
103
|
textDecoration: "none",
|
|
149
104
|
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : eo(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
150
105
|
// Reset on touch devices, it doesn't add specificity
|
|
151
106
|
"@media (hover: none)": {
|
|
152
107
|
backgroundColor: "transparent"
|
|
153
108
|
}
|
|
154
|
-
},
|
|
155
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[
|
|
109
|
+
}, n.variant === "text" && n.color !== "inherit" && {
|
|
110
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : eo(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
156
111
|
// Reset on touch devices, it doesn't add specificity
|
|
157
112
|
"@media (hover: none)": {
|
|
158
113
|
backgroundColor: "transparent"
|
|
159
114
|
}
|
|
160
|
-
},
|
|
161
|
-
border: `1px solid ${(o.vars || o).palette[
|
|
162
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[
|
|
115
|
+
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
116
|
+
border: `1px solid ${(o.vars || o).palette[n.color].main}`,
|
|
117
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : eo(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
163
118
|
// Reset on touch devices, it doesn't add specificity
|
|
164
119
|
"@media (hover: none)": {
|
|
165
120
|
backgroundColor: "transparent"
|
|
166
121
|
}
|
|
167
|
-
},
|
|
122
|
+
}, n.variant === "contained" && {
|
|
168
123
|
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : i,
|
|
169
124
|
boxShadow: (o.vars || o).shadows[4],
|
|
170
125
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -172,70 +127,70 @@ const te = ["children", "color", "component", "className", "disabled", "disableE
|
|
|
172
127
|
boxShadow: (o.vars || o).shadows[2],
|
|
173
128
|
backgroundColor: (o.vars || o).palette.grey[300]
|
|
174
129
|
}
|
|
175
|
-
},
|
|
176
|
-
backgroundColor: (o.vars || o).palette[
|
|
130
|
+
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
131
|
+
backgroundColor: (o.vars || o).palette[n.color].dark,
|
|
177
132
|
// Reset on touch devices, it doesn't add specificity
|
|
178
133
|
"@media (hover: none)": {
|
|
179
|
-
backgroundColor: (o.vars || o).palette[
|
|
134
|
+
backgroundColor: (o.vars || o).palette[n.color].main
|
|
180
135
|
}
|
|
181
136
|
}),
|
|
182
|
-
"&:active":
|
|
137
|
+
"&:active": d({}, n.variant === "contained" && {
|
|
183
138
|
boxShadow: (o.vars || o).shadows[8]
|
|
184
139
|
}),
|
|
185
|
-
[`&.${no.focusVisible}`]:
|
|
140
|
+
[`&.${no.focusVisible}`]: d({}, n.variant === "contained" && {
|
|
186
141
|
boxShadow: (o.vars || o).shadows[6]
|
|
187
142
|
}),
|
|
188
|
-
[`&.${no.disabled}`]:
|
|
143
|
+
[`&.${no.disabled}`]: d({
|
|
189
144
|
color: (o.vars || o).palette.action.disabled
|
|
190
|
-
},
|
|
145
|
+
}, n.variant === "outlined" && {
|
|
191
146
|
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
192
|
-
},
|
|
147
|
+
}, n.variant === "contained" && {
|
|
193
148
|
color: (o.vars || o).palette.action.disabled,
|
|
194
149
|
boxShadow: (o.vars || o).shadows[0],
|
|
195
150
|
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
196
151
|
})
|
|
197
|
-
},
|
|
152
|
+
}, n.variant === "text" && {
|
|
198
153
|
padding: "6px 8px"
|
|
199
|
-
},
|
|
200
|
-
color: (o.vars || o).palette[
|
|
201
|
-
},
|
|
154
|
+
}, n.variant === "text" && n.color !== "inherit" && {
|
|
155
|
+
color: (o.vars || o).palette[n.color].main
|
|
156
|
+
}, n.variant === "outlined" && {
|
|
202
157
|
padding: "5px 15px",
|
|
203
158
|
border: "1px solid currentColor"
|
|
204
|
-
},
|
|
205
|
-
color: (o.vars || o).palette[
|
|
206
|
-
border: o.vars ? `1px solid rgba(${o.vars.palette[
|
|
207
|
-
},
|
|
159
|
+
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
160
|
+
color: (o.vars || o).palette[n.color].main,
|
|
161
|
+
border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${eo(o.palette[n.color].main, 0.5)}`
|
|
162
|
+
}, n.variant === "contained" && {
|
|
208
163
|
color: o.vars ? (
|
|
209
164
|
// this is safe because grey does not change between default light/dark mode
|
|
210
165
|
o.vars.palette.text.primary
|
|
211
166
|
) : (t = (r = o.palette).getContrastText) == null ? void 0 : t.call(r, o.palette.grey[300]),
|
|
212
167
|
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
|
|
213
168
|
boxShadow: (o.vars || o).shadows[2]
|
|
214
|
-
},
|
|
215
|
-
color: (o.vars || o).palette[
|
|
216
|
-
backgroundColor: (o.vars || o).palette[
|
|
217
|
-
},
|
|
169
|
+
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
170
|
+
color: (o.vars || o).palette[n.color].contrastText,
|
|
171
|
+
backgroundColor: (o.vars || o).palette[n.color].main
|
|
172
|
+
}, n.color === "inherit" && {
|
|
218
173
|
color: "inherit",
|
|
219
174
|
borderColor: "currentColor"
|
|
220
|
-
},
|
|
175
|
+
}, n.size === "small" && n.variant === "text" && {
|
|
221
176
|
padding: "4px 5px",
|
|
222
177
|
fontSize: o.typography.pxToRem(13)
|
|
223
|
-
},
|
|
178
|
+
}, n.size === "large" && n.variant === "text" && {
|
|
224
179
|
padding: "8px 11px",
|
|
225
180
|
fontSize: o.typography.pxToRem(15)
|
|
226
|
-
},
|
|
181
|
+
}, n.size === "small" && n.variant === "outlined" && {
|
|
227
182
|
padding: "3px 9px",
|
|
228
183
|
fontSize: o.typography.pxToRem(13)
|
|
229
|
-
},
|
|
184
|
+
}, n.size === "large" && n.variant === "outlined" && {
|
|
230
185
|
padding: "7px 21px",
|
|
231
186
|
fontSize: o.typography.pxToRem(15)
|
|
232
|
-
},
|
|
187
|
+
}, n.size === "small" && n.variant === "contained" && {
|
|
233
188
|
padding: "4px 10px",
|
|
234
189
|
fontSize: o.typography.pxToRem(13)
|
|
235
|
-
},
|
|
190
|
+
}, n.size === "large" && n.variant === "contained" && {
|
|
236
191
|
padding: "8px 22px",
|
|
237
192
|
fontSize: o.typography.pxToRem(15)
|
|
238
|
-
},
|
|
193
|
+
}, n.fullWidth && {
|
|
239
194
|
width: "100%"
|
|
240
195
|
});
|
|
241
196
|
}, ({
|
|
@@ -254,93 +209,93 @@ const te = ["children", "color", "component", "className", "disabled", "disableE
|
|
|
254
209
|
[`&.${no.disabled}`]: {
|
|
255
210
|
boxShadow: "none"
|
|
256
211
|
}
|
|
257
|
-
}),
|
|
212
|
+
}), re = _("span", {
|
|
258
213
|
name: "MuiButton",
|
|
259
214
|
slot: "StartIcon",
|
|
260
|
-
overridesResolver: (o,
|
|
215
|
+
overridesResolver: (o, n) => {
|
|
261
216
|
const {
|
|
262
217
|
ownerState: t
|
|
263
218
|
} = o;
|
|
264
|
-
return [
|
|
219
|
+
return [n.startIcon, n[`iconSize${M(t.size)}`]];
|
|
265
220
|
}
|
|
266
221
|
})(({
|
|
267
222
|
ownerState: o
|
|
268
|
-
}) =>
|
|
223
|
+
}) => d({
|
|
269
224
|
display: "inherit",
|
|
270
225
|
marginRight: 8,
|
|
271
226
|
marginLeft: -4
|
|
272
227
|
}, o.size === "small" && {
|
|
273
228
|
marginLeft: -2
|
|
274
|
-
},
|
|
229
|
+
}, Mo(o))), ie = _("span", {
|
|
275
230
|
name: "MuiButton",
|
|
276
231
|
slot: "EndIcon",
|
|
277
|
-
overridesResolver: (o,
|
|
232
|
+
overridesResolver: (o, n) => {
|
|
278
233
|
const {
|
|
279
234
|
ownerState: t
|
|
280
235
|
} = o;
|
|
281
|
-
return [
|
|
236
|
+
return [n.endIcon, n[`iconSize${M(t.size)}`]];
|
|
282
237
|
}
|
|
283
238
|
})(({
|
|
284
239
|
ownerState: o
|
|
285
|
-
}) =>
|
|
240
|
+
}) => d({
|
|
286
241
|
display: "inherit",
|
|
287
242
|
marginRight: -4,
|
|
288
243
|
marginLeft: 8
|
|
289
244
|
}, o.size === "small" && {
|
|
290
245
|
marginRight: -2
|
|
291
|
-
},
|
|
292
|
-
const r =
|
|
246
|
+
}, Mo(o))), se = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
247
|
+
const r = c.useContext(Io), s = c.useContext(Bo), i = Lo(r, n), a = Y({
|
|
293
248
|
props: i,
|
|
294
249
|
name: "MuiButton"
|
|
295
250
|
}), {
|
|
296
|
-
children:
|
|
297
|
-
color:
|
|
298
|
-
component:
|
|
251
|
+
children: l,
|
|
252
|
+
color: u = "primary",
|
|
253
|
+
component: g = "button",
|
|
299
254
|
className: m,
|
|
300
|
-
disabled:
|
|
301
|
-
disableElevation:
|
|
302
|
-
disableFocusRipple:
|
|
255
|
+
disabled: x = !1,
|
|
256
|
+
disableElevation: R = !1,
|
|
257
|
+
disableFocusRipple: C = !1,
|
|
303
258
|
endIcon: f,
|
|
304
|
-
focusVisibleClassName:
|
|
305
|
-
fullWidth:
|
|
259
|
+
focusVisibleClassName: $,
|
|
260
|
+
fullWidth: S = !1,
|
|
306
261
|
size: D = "medium",
|
|
307
|
-
startIcon:
|
|
308
|
-
type:
|
|
309
|
-
variant:
|
|
310
|
-
} = a,
|
|
311
|
-
color:
|
|
312
|
-
component:
|
|
313
|
-
disabled:
|
|
314
|
-
disableElevation:
|
|
315
|
-
disableFocusRipple:
|
|
316
|
-
fullWidth:
|
|
262
|
+
startIcon: P,
|
|
263
|
+
type: p,
|
|
264
|
+
variant: T = "text"
|
|
265
|
+
} = a, h = j(a, ee), k = d({}, a, {
|
|
266
|
+
color: u,
|
|
267
|
+
component: g,
|
|
268
|
+
disabled: x,
|
|
269
|
+
disableElevation: R,
|
|
270
|
+
disableFocusRipple: C,
|
|
271
|
+
fullWidth: S,
|
|
317
272
|
size: D,
|
|
318
|
-
type:
|
|
319
|
-
variant:
|
|
320
|
-
}),
|
|
321
|
-
className:
|
|
322
|
-
ownerState:
|
|
323
|
-
children:
|
|
324
|
-
}), z = f && /* @__PURE__ */ N(
|
|
325
|
-
className:
|
|
326
|
-
ownerState:
|
|
273
|
+
type: p,
|
|
274
|
+
variant: T
|
|
275
|
+
}), y = ne(k), O = P && /* @__PURE__ */ N(re, {
|
|
276
|
+
className: y.startIcon,
|
|
277
|
+
ownerState: k,
|
|
278
|
+
children: P
|
|
279
|
+
}), z = f && /* @__PURE__ */ N(ie, {
|
|
280
|
+
className: y.endIcon,
|
|
281
|
+
ownerState: k,
|
|
327
282
|
children: f
|
|
328
|
-
}),
|
|
329
|
-
return /* @__PURE__ */ co(
|
|
330
|
-
ownerState:
|
|
331
|
-
className:
|
|
332
|
-
component:
|
|
333
|
-
disabled:
|
|
334
|
-
focusRipple: !
|
|
335
|
-
focusVisibleClassName:
|
|
283
|
+
}), I = s || "";
|
|
284
|
+
return /* @__PURE__ */ co(te, d({
|
|
285
|
+
ownerState: k,
|
|
286
|
+
className: L(r.className, y.root, m, I),
|
|
287
|
+
component: g,
|
|
288
|
+
disabled: x,
|
|
289
|
+
focusRipple: !C,
|
|
290
|
+
focusVisibleClassName: L(y.focusVisible, $),
|
|
336
291
|
ref: t,
|
|
337
|
-
type:
|
|
338
|
-
},
|
|
339
|
-
classes:
|
|
340
|
-
children: [
|
|
292
|
+
type: p
|
|
293
|
+
}, h, {
|
|
294
|
+
classes: y,
|
|
295
|
+
children: [O, l, z]
|
|
341
296
|
}));
|
|
342
297
|
});
|
|
343
|
-
process.env.NODE_ENV !== "production" && (
|
|
298
|
+
process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
344
299
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
345
300
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
346
301
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -348,42 +303,42 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
|
348
303
|
/**
|
|
349
304
|
* The content of the component.
|
|
350
305
|
*/
|
|
351
|
-
children:
|
|
306
|
+
children: e.node,
|
|
352
307
|
/**
|
|
353
308
|
* Override or extend the styles applied to the component.
|
|
354
309
|
*/
|
|
355
|
-
classes:
|
|
310
|
+
classes: e.object,
|
|
356
311
|
/**
|
|
357
312
|
* @ignore
|
|
358
313
|
*/
|
|
359
|
-
className:
|
|
314
|
+
className: e.string,
|
|
360
315
|
/**
|
|
361
316
|
* The color of the component.
|
|
362
317
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
363
318
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
364
319
|
* @default 'primary'
|
|
365
320
|
*/
|
|
366
|
-
color:
|
|
321
|
+
color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), e.string]),
|
|
367
322
|
/**
|
|
368
323
|
* The component used for the root node.
|
|
369
324
|
* Either a string to use a HTML element or a component.
|
|
370
325
|
*/
|
|
371
|
-
component:
|
|
326
|
+
component: e.elementType,
|
|
372
327
|
/**
|
|
373
328
|
* If `true`, the component is disabled.
|
|
374
329
|
* @default false
|
|
375
330
|
*/
|
|
376
|
-
disabled:
|
|
331
|
+
disabled: e.bool,
|
|
377
332
|
/**
|
|
378
333
|
* If `true`, no elevation is used.
|
|
379
334
|
* @default false
|
|
380
335
|
*/
|
|
381
|
-
disableElevation:
|
|
336
|
+
disableElevation: e.bool,
|
|
382
337
|
/**
|
|
383
338
|
* If `true`, the keyboard focus ripple is disabled.
|
|
384
339
|
* @default false
|
|
385
340
|
*/
|
|
386
|
-
disableFocusRipple:
|
|
341
|
+
disableFocusRipple: e.bool,
|
|
387
342
|
/**
|
|
388
343
|
* If `true`, the ripple effect is disabled.
|
|
389
344
|
*
|
|
@@ -391,99 +346,99 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
|
391
346
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
392
347
|
* @default false
|
|
393
348
|
*/
|
|
394
|
-
disableRipple:
|
|
349
|
+
disableRipple: e.bool,
|
|
395
350
|
/**
|
|
396
351
|
* Element placed after the children.
|
|
397
352
|
*/
|
|
398
|
-
endIcon:
|
|
353
|
+
endIcon: e.node,
|
|
399
354
|
/**
|
|
400
355
|
* @ignore
|
|
401
356
|
*/
|
|
402
|
-
focusVisibleClassName:
|
|
357
|
+
focusVisibleClassName: e.string,
|
|
403
358
|
/**
|
|
404
359
|
* If `true`, the button will take up the full width of its container.
|
|
405
360
|
* @default false
|
|
406
361
|
*/
|
|
407
|
-
fullWidth:
|
|
362
|
+
fullWidth: e.bool,
|
|
408
363
|
/**
|
|
409
364
|
* The URL to link to when the button is clicked.
|
|
410
365
|
* If defined, an `a` element will be used as the root node.
|
|
411
366
|
*/
|
|
412
|
-
href:
|
|
367
|
+
href: e.string,
|
|
413
368
|
/**
|
|
414
369
|
* The size of the component.
|
|
415
370
|
* `small` is equivalent to the dense button styling.
|
|
416
371
|
* @default 'medium'
|
|
417
372
|
*/
|
|
418
|
-
size:
|
|
373
|
+
size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
|
|
419
374
|
/**
|
|
420
375
|
* Element placed before the children.
|
|
421
376
|
*/
|
|
422
|
-
startIcon:
|
|
377
|
+
startIcon: e.node,
|
|
423
378
|
/**
|
|
424
379
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
425
380
|
*/
|
|
426
|
-
sx:
|
|
381
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
427
382
|
/**
|
|
428
383
|
* @ignore
|
|
429
384
|
*/
|
|
430
|
-
type:
|
|
385
|
+
type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string]),
|
|
431
386
|
/**
|
|
432
387
|
* The variant to use.
|
|
433
388
|
* @default 'text'
|
|
434
389
|
*/
|
|
435
|
-
variant:
|
|
390
|
+
variant: e.oneOfType([e.oneOf(["contained", "outlined", "text"]), e.string])
|
|
436
391
|
});
|
|
437
|
-
function
|
|
438
|
-
const
|
|
439
|
-
return
|
|
392
|
+
function ae(o) {
|
|
393
|
+
const n = V(o);
|
|
394
|
+
return n.body === o ? uo(o).innerWidth > n.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
|
|
440
395
|
}
|
|
441
|
-
function
|
|
442
|
-
|
|
396
|
+
function J(o, n) {
|
|
397
|
+
n ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
|
|
443
398
|
}
|
|
444
|
-
function
|
|
399
|
+
function Po(o) {
|
|
445
400
|
return parseInt(uo(o).getComputedStyle(o).paddingRight, 10) || 0;
|
|
446
401
|
}
|
|
447
|
-
function
|
|
402
|
+
function le(o) {
|
|
448
403
|
const t = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(o.tagName) !== -1, r = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
|
|
449
404
|
return t || r;
|
|
450
405
|
}
|
|
451
|
-
function
|
|
452
|
-
const i = [
|
|
406
|
+
function Ro(o, n, t, r, s) {
|
|
407
|
+
const i = [n, t, ...r];
|
|
453
408
|
[].forEach.call(o.children, (a) => {
|
|
454
|
-
const
|
|
455
|
-
|
|
409
|
+
const l = i.indexOf(a) === -1, u = !le(a);
|
|
410
|
+
l && u && J(a, s);
|
|
456
411
|
});
|
|
457
412
|
}
|
|
458
|
-
function ao(o,
|
|
413
|
+
function ao(o, n) {
|
|
459
414
|
let t = -1;
|
|
460
|
-
return o.some((r, s) =>
|
|
415
|
+
return o.some((r, s) => n(r) ? (t = s, !0) : !1), t;
|
|
461
416
|
}
|
|
462
|
-
function
|
|
417
|
+
function ce(o, n) {
|
|
463
418
|
const t = [], r = o.container;
|
|
464
|
-
if (!
|
|
465
|
-
if (
|
|
466
|
-
const a =
|
|
419
|
+
if (!n.disableScrollLock) {
|
|
420
|
+
if (ae(r)) {
|
|
421
|
+
const a = Qo(V(r));
|
|
467
422
|
t.push({
|
|
468
423
|
value: r.style.paddingRight,
|
|
469
424
|
property: "padding-right",
|
|
470
425
|
el: r
|
|
471
|
-
}), r.style.paddingRight = `${
|
|
472
|
-
const
|
|
473
|
-
[].forEach.call(
|
|
426
|
+
}), r.style.paddingRight = `${Po(r) + a}px`;
|
|
427
|
+
const l = V(r).querySelectorAll(".mui-fixed");
|
|
428
|
+
[].forEach.call(l, (u) => {
|
|
474
429
|
t.push({
|
|
475
|
-
value:
|
|
430
|
+
value: u.style.paddingRight,
|
|
476
431
|
property: "padding-right",
|
|
477
|
-
el:
|
|
478
|
-
}),
|
|
432
|
+
el: u
|
|
433
|
+
}), u.style.paddingRight = `${Po(u) + a}px`;
|
|
479
434
|
});
|
|
480
435
|
}
|
|
481
436
|
let i;
|
|
482
437
|
if (r.parentNode instanceof DocumentFragment)
|
|
483
438
|
i = V(r).body;
|
|
484
439
|
else {
|
|
485
|
-
const a = r.parentElement,
|
|
486
|
-
i = (a == null ? void 0 : a.nodeName) === "HTML" &&
|
|
440
|
+
const a = r.parentElement, l = uo(r);
|
|
441
|
+
i = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : r;
|
|
487
442
|
}
|
|
488
443
|
t.push({
|
|
489
444
|
value: i.style.overflow,
|
|
@@ -503,163 +458,163 @@ function pe(o, e) {
|
|
|
503
458
|
t.forEach(({
|
|
504
459
|
value: i,
|
|
505
460
|
el: a,
|
|
506
|
-
property:
|
|
461
|
+
property: l
|
|
507
462
|
}) => {
|
|
508
|
-
i ? a.style.setProperty(
|
|
463
|
+
i ? a.style.setProperty(l, i) : a.style.removeProperty(l);
|
|
509
464
|
});
|
|
510
465
|
};
|
|
511
466
|
}
|
|
512
|
-
function
|
|
513
|
-
const
|
|
467
|
+
function de(o) {
|
|
468
|
+
const n = [];
|
|
514
469
|
return [].forEach.call(o.children, (t) => {
|
|
515
|
-
t.getAttribute("aria-hidden") === "true" &&
|
|
516
|
-
}),
|
|
470
|
+
t.getAttribute("aria-hidden") === "true" && n.push(t);
|
|
471
|
+
}), n;
|
|
517
472
|
}
|
|
518
|
-
class
|
|
473
|
+
class pe {
|
|
519
474
|
constructor() {
|
|
520
475
|
this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
|
|
521
476
|
}
|
|
522
|
-
add(
|
|
523
|
-
let r = this.modals.indexOf(
|
|
477
|
+
add(n, t) {
|
|
478
|
+
let r = this.modals.indexOf(n);
|
|
524
479
|
if (r !== -1)
|
|
525
480
|
return r;
|
|
526
|
-
r = this.modals.length, this.modals.push(
|
|
527
|
-
const s =
|
|
528
|
-
|
|
481
|
+
r = this.modals.length, this.modals.push(n), n.modalRef && J(n.modalRef, !1);
|
|
482
|
+
const s = de(t);
|
|
483
|
+
Ro(t, n.mount, n.modalRef, s, !0);
|
|
529
484
|
const i = ao(this.containers, (a) => a.container === t);
|
|
530
|
-
return i !== -1 ? (this.containers[i].modals.push(
|
|
531
|
-
modals: [
|
|
485
|
+
return i !== -1 ? (this.containers[i].modals.push(n), r) : (this.containers.push({
|
|
486
|
+
modals: [n],
|
|
532
487
|
container: t,
|
|
533
488
|
restore: null,
|
|
534
489
|
hiddenSiblings: s
|
|
535
490
|
}), r);
|
|
536
491
|
}
|
|
537
|
-
mount(
|
|
538
|
-
const r = ao(this.containers, (i) => i.modals.indexOf(
|
|
539
|
-
s.restore || (s.restore =
|
|
492
|
+
mount(n, t) {
|
|
493
|
+
const r = ao(this.containers, (i) => i.modals.indexOf(n) !== -1), s = this.containers[r];
|
|
494
|
+
s.restore || (s.restore = ce(s, t));
|
|
540
495
|
}
|
|
541
|
-
remove(
|
|
542
|
-
const r = this.modals.indexOf(
|
|
496
|
+
remove(n, t = !0) {
|
|
497
|
+
const r = this.modals.indexOf(n);
|
|
543
498
|
if (r === -1)
|
|
544
499
|
return r;
|
|
545
|
-
const s = ao(this.containers, (a) => a.modals.indexOf(
|
|
546
|
-
if (i.modals.splice(i.modals.indexOf(
|
|
547
|
-
i.restore && i.restore(),
|
|
500
|
+
const s = ao(this.containers, (a) => a.modals.indexOf(n) !== -1), i = this.containers[s];
|
|
501
|
+
if (i.modals.splice(i.modals.indexOf(n), 1), this.modals.splice(r, 1), i.modals.length === 0)
|
|
502
|
+
i.restore && i.restore(), n.modalRef && J(n.modalRef, t), Ro(i.container, n.mount, n.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1);
|
|
548
503
|
else {
|
|
549
504
|
const a = i.modals[i.modals.length - 1];
|
|
550
|
-
a.modalRef &&
|
|
505
|
+
a.modalRef && J(a.modalRef, !1);
|
|
551
506
|
}
|
|
552
507
|
return r;
|
|
553
508
|
}
|
|
554
|
-
isTopModal(
|
|
555
|
-
return this.modals.length > 0 && this.modals[this.modals.length - 1] ===
|
|
509
|
+
isTopModal(n) {
|
|
510
|
+
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
556
511
|
}
|
|
557
512
|
}
|
|
558
|
-
const
|
|
559
|
-
function
|
|
560
|
-
const
|
|
561
|
-
return Number.isNaN(
|
|
513
|
+
const ue = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
514
|
+
function fe(o) {
|
|
515
|
+
const n = parseInt(o.getAttribute("tabindex") || "", 10);
|
|
516
|
+
return Number.isNaN(n) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : n;
|
|
562
517
|
}
|
|
563
|
-
function
|
|
518
|
+
function be(o) {
|
|
564
519
|
if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
|
|
565
520
|
return !1;
|
|
566
|
-
const
|
|
567
|
-
let t =
|
|
568
|
-
return t || (t =
|
|
521
|
+
const n = (r) => o.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
522
|
+
let t = n(`[name="${o.name}"]:checked`);
|
|
523
|
+
return t || (t = n(`[name="${o.name}"]`)), t !== o;
|
|
569
524
|
}
|
|
570
|
-
function
|
|
571
|
-
return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" ||
|
|
525
|
+
function ge(o) {
|
|
526
|
+
return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || be(o));
|
|
572
527
|
}
|
|
573
|
-
function
|
|
574
|
-
const
|
|
575
|
-
return Array.from(o.querySelectorAll(
|
|
576
|
-
const i =
|
|
577
|
-
i === -1 || !
|
|
528
|
+
function me(o) {
|
|
529
|
+
const n = [], t = [];
|
|
530
|
+
return Array.from(o.querySelectorAll(ue)).forEach((r, s) => {
|
|
531
|
+
const i = fe(r);
|
|
532
|
+
i === -1 || !ge(r) || (i === 0 ? n.push(r) : t.push({
|
|
578
533
|
documentOrder: s,
|
|
579
534
|
tabIndex: i,
|
|
580
535
|
node: r
|
|
581
536
|
}));
|
|
582
|
-
}), t.sort((r, s) => r.tabIndex === s.tabIndex ? r.documentOrder - s.documentOrder : r.tabIndex - s.tabIndex).map((r) => r.node).concat(
|
|
537
|
+
}), t.sort((r, s) => r.tabIndex === s.tabIndex ? r.documentOrder - s.documentOrder : r.tabIndex - s.tabIndex).map((r) => r.node).concat(n);
|
|
583
538
|
}
|
|
584
|
-
function
|
|
539
|
+
function ve() {
|
|
585
540
|
return !0;
|
|
586
541
|
}
|
|
587
542
|
function to(o) {
|
|
588
543
|
const {
|
|
589
|
-
children:
|
|
544
|
+
children: n,
|
|
590
545
|
disableAutoFocus: t = !1,
|
|
591
546
|
disableEnforceFocus: r = !1,
|
|
592
547
|
disableRestoreFocus: s = !1,
|
|
593
|
-
getTabbable: i =
|
|
594
|
-
isEnabled: a =
|
|
595
|
-
open:
|
|
596
|
-
} = o,
|
|
597
|
-
|
|
598
|
-
!
|
|
599
|
-
}, [t,
|
|
600
|
-
if (!
|
|
548
|
+
getTabbable: i = me,
|
|
549
|
+
isEnabled: a = ve,
|
|
550
|
+
open: l
|
|
551
|
+
} = o, u = c.useRef(!1), g = c.useRef(null), m = c.useRef(null), x = c.useRef(null), R = c.useRef(null), C = c.useRef(!1), f = c.useRef(null), $ = Q(n.ref, f), S = c.useRef(null);
|
|
552
|
+
c.useEffect(() => {
|
|
553
|
+
!l || !f.current || (C.current = !t);
|
|
554
|
+
}, [t, l]), c.useEffect(() => {
|
|
555
|
+
if (!l || !f.current)
|
|
601
556
|
return;
|
|
602
|
-
const
|
|
603
|
-
return f.current.contains(
|
|
604
|
-
`)), f.current.setAttribute("tabIndex", "-1")),
|
|
605
|
-
s || (
|
|
557
|
+
const p = V(f.current);
|
|
558
|
+
return f.current.contains(p.activeElement) || (f.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(`
|
|
559
|
+
`)), f.current.setAttribute("tabIndex", "-1")), C.current && f.current.focus()), () => {
|
|
560
|
+
s || (x.current && x.current.focus && (u.current = !0, x.current.focus()), x.current = null);
|
|
606
561
|
};
|
|
607
|
-
}, [
|
|
608
|
-
if (!
|
|
562
|
+
}, [l]), c.useEffect(() => {
|
|
563
|
+
if (!l || !f.current)
|
|
609
564
|
return;
|
|
610
|
-
const
|
|
611
|
-
|
|
612
|
-
},
|
|
613
|
-
const
|
|
614
|
-
if (
|
|
565
|
+
const p = V(f.current), T = (y) => {
|
|
566
|
+
S.current = y, !(r || !a() || y.key !== "Tab") && p.activeElement === f.current && y.shiftKey && (u.current = !0, m.current && m.current.focus());
|
|
567
|
+
}, h = () => {
|
|
568
|
+
const y = f.current;
|
|
569
|
+
if (y === null)
|
|
615
570
|
return;
|
|
616
|
-
if (!
|
|
617
|
-
|
|
571
|
+
if (!p.hasFocus() || !a() || u.current) {
|
|
572
|
+
u.current = !1;
|
|
618
573
|
return;
|
|
619
574
|
}
|
|
620
|
-
if (
|
|
575
|
+
if (y.contains(p.activeElement) || r && p.activeElement !== g.current && p.activeElement !== m.current)
|
|
621
576
|
return;
|
|
622
|
-
if (
|
|
623
|
-
|
|
624
|
-
else if (
|
|
577
|
+
if (p.activeElement !== R.current)
|
|
578
|
+
R.current = null;
|
|
579
|
+
else if (R.current !== null)
|
|
625
580
|
return;
|
|
626
|
-
if (!
|
|
581
|
+
if (!C.current)
|
|
627
582
|
return;
|
|
628
|
-
let
|
|
629
|
-
if ((
|
|
630
|
-
var z,
|
|
631
|
-
const F = !!((z =
|
|
632
|
-
typeof
|
|
583
|
+
let O = [];
|
|
584
|
+
if ((p.activeElement === g.current || p.activeElement === m.current) && (O = i(f.current)), O.length > 0) {
|
|
585
|
+
var z, I;
|
|
586
|
+
const F = !!((z = S.current) != null && z.shiftKey && ((I = S.current) == null ? void 0 : I.key) === "Tab"), A = O[0], w = O[O.length - 1];
|
|
587
|
+
typeof A != "string" && typeof w != "string" && (F ? w.focus() : A.focus());
|
|
633
588
|
} else
|
|
634
|
-
|
|
589
|
+
y.focus();
|
|
635
590
|
};
|
|
636
|
-
|
|
637
|
-
const
|
|
638
|
-
|
|
591
|
+
p.addEventListener("focusin", h), p.addEventListener("keydown", T, !0);
|
|
592
|
+
const k = setInterval(() => {
|
|
593
|
+
p.activeElement && p.activeElement.tagName === "BODY" && h();
|
|
639
594
|
}, 50);
|
|
640
595
|
return () => {
|
|
641
|
-
clearInterval(
|
|
596
|
+
clearInterval(k), p.removeEventListener("focusin", h), p.removeEventListener("keydown", T, !0);
|
|
642
597
|
};
|
|
643
|
-
}, [t, r, s, a,
|
|
644
|
-
const D = (
|
|
645
|
-
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
},
|
|
649
|
-
|
|
598
|
+
}, [t, r, s, a, l, i]);
|
|
599
|
+
const D = (p) => {
|
|
600
|
+
x.current === null && (x.current = p.relatedTarget), C.current = !0, R.current = p.target;
|
|
601
|
+
const T = n.props.onFocus;
|
|
602
|
+
T && T(p);
|
|
603
|
+
}, P = (p) => {
|
|
604
|
+
x.current === null && (x.current = p.relatedTarget), C.current = !0;
|
|
650
605
|
};
|
|
651
|
-
return /* @__PURE__ */ co(
|
|
606
|
+
return /* @__PURE__ */ co(c.Fragment, {
|
|
652
607
|
children: [/* @__PURE__ */ N("div", {
|
|
653
|
-
tabIndex:
|
|
654
|
-
onFocus:
|
|
655
|
-
ref:
|
|
608
|
+
tabIndex: l ? 0 : -1,
|
|
609
|
+
onFocus: P,
|
|
610
|
+
ref: g,
|
|
656
611
|
"data-testid": "sentinelStart"
|
|
657
|
-
}), /* @__PURE__ */
|
|
658
|
-
ref:
|
|
612
|
+
}), /* @__PURE__ */ c.cloneElement(n, {
|
|
613
|
+
ref: $,
|
|
659
614
|
onFocus: D
|
|
660
615
|
}), /* @__PURE__ */ N("div", {
|
|
661
|
-
tabIndex:
|
|
662
|
-
onFocus:
|
|
616
|
+
tabIndex: l ? 0 : -1,
|
|
617
|
+
onFocus: P,
|
|
663
618
|
ref: m,
|
|
664
619
|
"data-testid": "sentinelEnd"
|
|
665
620
|
})]
|
|
@@ -683,7 +638,7 @@ process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
|
683
638
|
* accessible to assistive technologies, like screen readers.
|
|
684
639
|
* @default false
|
|
685
640
|
*/
|
|
686
|
-
disableAutoFocus:
|
|
641
|
+
disableAutoFocus: e.bool,
|
|
687
642
|
/**
|
|
688
643
|
* If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
|
|
689
644
|
*
|
|
@@ -691,19 +646,19 @@ process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
|
691
646
|
* accessible to assistive technologies, like screen readers.
|
|
692
647
|
* @default false
|
|
693
648
|
*/
|
|
694
|
-
disableEnforceFocus:
|
|
649
|
+
disableEnforceFocus: e.bool,
|
|
695
650
|
/**
|
|
696
651
|
* If `true`, the focus trap will not restore focus to previously focused element once
|
|
697
652
|
* focus trap is hidden or unmounted.
|
|
698
653
|
* @default false
|
|
699
654
|
*/
|
|
700
|
-
disableRestoreFocus:
|
|
655
|
+
disableRestoreFocus: e.bool,
|
|
701
656
|
/**
|
|
702
657
|
* Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
|
|
703
658
|
* For instance, you can provide the "tabbable" npm dependency.
|
|
704
659
|
* @param {HTMLElement} root
|
|
705
660
|
*/
|
|
706
|
-
getTabbable:
|
|
661
|
+
getTabbable: e.func,
|
|
707
662
|
/**
|
|
708
663
|
* This prop extends the `open` prop.
|
|
709
664
|
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
|
|
@@ -713,42 +668,42 @@ process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
|
713
668
|
* return true;
|
|
714
669
|
* }
|
|
715
670
|
*/
|
|
716
|
-
isEnabled:
|
|
671
|
+
isEnabled: e.func,
|
|
717
672
|
/**
|
|
718
673
|
* If `true`, focus is locked.
|
|
719
674
|
*/
|
|
720
|
-
open:
|
|
675
|
+
open: e.bool.isRequired
|
|
721
676
|
});
|
|
722
|
-
process.env.NODE_ENV !== "production" && (to.propTypes =
|
|
723
|
-
function
|
|
677
|
+
process.env.NODE_ENV !== "production" && (to.propTypes = So(to.propTypes));
|
|
678
|
+
function xe(o) {
|
|
724
679
|
return typeof o == "function" ? o() : o;
|
|
725
680
|
}
|
|
726
|
-
const ro = /* @__PURE__ */
|
|
681
|
+
const ro = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
727
682
|
const {
|
|
728
683
|
children: r,
|
|
729
684
|
container: s,
|
|
730
685
|
disablePortal: i = !1
|
|
731
|
-
} =
|
|
686
|
+
} = n, [a, l] = c.useState(null), u = Q(/* @__PURE__ */ c.isValidElement(r) ? r.ref : null, t);
|
|
732
687
|
if (ho(() => {
|
|
733
|
-
i ||
|
|
688
|
+
i || l(xe(s) || document.body);
|
|
734
689
|
}, [s, i]), ho(() => {
|
|
735
690
|
if (a && !i)
|
|
736
691
|
return yo(t, a), () => {
|
|
737
692
|
yo(t, null);
|
|
738
693
|
};
|
|
739
694
|
}, [t, a, i]), i) {
|
|
740
|
-
if (/* @__PURE__ */
|
|
741
|
-
const
|
|
742
|
-
ref:
|
|
695
|
+
if (/* @__PURE__ */ c.isValidElement(r)) {
|
|
696
|
+
const g = {
|
|
697
|
+
ref: u
|
|
743
698
|
};
|
|
744
|
-
return /* @__PURE__ */
|
|
699
|
+
return /* @__PURE__ */ c.cloneElement(r, g);
|
|
745
700
|
}
|
|
746
|
-
return /* @__PURE__ */ N(
|
|
701
|
+
return /* @__PURE__ */ N(c.Fragment, {
|
|
747
702
|
children: r
|
|
748
703
|
});
|
|
749
704
|
}
|
|
750
|
-
return /* @__PURE__ */ N(
|
|
751
|
-
children: a && /* @__PURE__ */
|
|
705
|
+
return /* @__PURE__ */ N(c.Fragment, {
|
|
706
|
+
children: a && /* @__PURE__ */ Jo.createPortal(r, a)
|
|
752
707
|
});
|
|
753
708
|
});
|
|
754
709
|
process.env.NODE_ENV !== "production" && (ro.propTypes = {
|
|
@@ -759,7 +714,7 @@ process.env.NODE_ENV !== "production" && (ro.propTypes = {
|
|
|
759
714
|
/**
|
|
760
715
|
* The children to render into the `container`.
|
|
761
716
|
*/
|
|
762
|
-
children:
|
|
717
|
+
children: e.node,
|
|
763
718
|
/**
|
|
764
719
|
* An HTML element or function that returns one.
|
|
765
720
|
* The `container` will have the portal children appended to it.
|
|
@@ -770,87 +725,87 @@ process.env.NODE_ENV !== "production" && (ro.propTypes = {
|
|
|
770
725
|
* By default, it uses the body of the top-level document object,
|
|
771
726
|
* so it's simply `document.body` most of the time.
|
|
772
727
|
*/
|
|
773
|
-
container:
|
|
728
|
+
container: e.oneOfType([Oo, e.func]),
|
|
774
729
|
/**
|
|
775
730
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
776
731
|
* @default false
|
|
777
732
|
*/
|
|
778
|
-
disablePortal:
|
|
733
|
+
disablePortal: e.bool
|
|
779
734
|
});
|
|
780
|
-
process.env.NODE_ENV !== "production" && (ro.propTypes =
|
|
781
|
-
const
|
|
735
|
+
process.env.NODE_ENV !== "production" && (ro.propTypes = So(ro.propTypes));
|
|
736
|
+
const he = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], ye = {
|
|
782
737
|
entering: {
|
|
783
738
|
opacity: 1
|
|
784
739
|
},
|
|
785
740
|
entered: {
|
|
786
741
|
opacity: 1
|
|
787
742
|
}
|
|
788
|
-
}, fo = /* @__PURE__ */
|
|
789
|
-
const r =
|
|
743
|
+
}, fo = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
744
|
+
const r = No(), s = {
|
|
790
745
|
enter: r.transitions.duration.enteringScreen,
|
|
791
746
|
exit: r.transitions.duration.leavingScreen
|
|
792
747
|
}, {
|
|
793
748
|
addEndListener: i,
|
|
794
749
|
appear: a = !0,
|
|
795
|
-
children:
|
|
796
|
-
easing:
|
|
797
|
-
in:
|
|
750
|
+
children: l,
|
|
751
|
+
easing: u,
|
|
752
|
+
in: g,
|
|
798
753
|
onEnter: m,
|
|
799
|
-
onEntered:
|
|
800
|
-
onEntering:
|
|
801
|
-
onExit:
|
|
754
|
+
onEntered: x,
|
|
755
|
+
onEntering: R,
|
|
756
|
+
onExit: C,
|
|
802
757
|
onExited: f,
|
|
803
|
-
onExiting:
|
|
804
|
-
style:
|
|
758
|
+
onExiting: $,
|
|
759
|
+
style: S,
|
|
805
760
|
timeout: D = s,
|
|
806
761
|
// eslint-disable-next-line react/prop-types
|
|
807
|
-
TransitionComponent:
|
|
808
|
-
} =
|
|
809
|
-
if (
|
|
810
|
-
const
|
|
811
|
-
W === void 0 ?
|
|
762
|
+
TransitionComponent: P = Uo
|
|
763
|
+
} = n, p = j(n, he), T = c.useRef(null), h = Q(T, l.ref, t), k = (v) => (W) => {
|
|
764
|
+
if (v) {
|
|
765
|
+
const b = T.current;
|
|
766
|
+
W === void 0 ? v(b) : v(b, W);
|
|
812
767
|
}
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
const
|
|
816
|
-
style:
|
|
768
|
+
}, y = k(R), O = k((v, W) => {
|
|
769
|
+
Ho(v);
|
|
770
|
+
const b = To({
|
|
771
|
+
style: S,
|
|
817
772
|
timeout: D,
|
|
818
|
-
easing:
|
|
773
|
+
easing: u
|
|
819
774
|
}, {
|
|
820
775
|
mode: "enter"
|
|
821
776
|
});
|
|
822
|
-
|
|
823
|
-
}), z =
|
|
777
|
+
v.style.webkitTransition = r.transitions.create("opacity", b), v.style.transition = r.transitions.create("opacity", b), m && m(v, W);
|
|
778
|
+
}), z = k(x), I = k($), F = k((v) => {
|
|
824
779
|
const W = To({
|
|
825
|
-
style:
|
|
780
|
+
style: S,
|
|
826
781
|
timeout: D,
|
|
827
|
-
easing:
|
|
782
|
+
easing: u
|
|
828
783
|
}, {
|
|
829
784
|
mode: "exit"
|
|
830
785
|
});
|
|
831
|
-
|
|
832
|
-
}),
|
|
833
|
-
return /* @__PURE__ */ N(
|
|
786
|
+
v.style.webkitTransition = r.transitions.create("opacity", W), v.style.transition = r.transitions.create("opacity", W), C && C(v);
|
|
787
|
+
}), A = k(f);
|
|
788
|
+
return /* @__PURE__ */ N(P, d({
|
|
834
789
|
appear: a,
|
|
835
|
-
in:
|
|
836
|
-
nodeRef:
|
|
837
|
-
onEnter:
|
|
790
|
+
in: g,
|
|
791
|
+
nodeRef: T,
|
|
792
|
+
onEnter: O,
|
|
838
793
|
onEntered: z,
|
|
839
|
-
onEntering:
|
|
794
|
+
onEntering: y,
|
|
840
795
|
onExit: F,
|
|
841
|
-
onExited:
|
|
842
|
-
onExiting:
|
|
843
|
-
addEndListener: (
|
|
844
|
-
i && i(
|
|
796
|
+
onExited: A,
|
|
797
|
+
onExiting: I,
|
|
798
|
+
addEndListener: (v) => {
|
|
799
|
+
i && i(T.current, v);
|
|
845
800
|
},
|
|
846
801
|
timeout: D
|
|
847
|
-
},
|
|
848
|
-
children: (
|
|
849
|
-
style:
|
|
802
|
+
}, p, {
|
|
803
|
+
children: (v, W) => /* @__PURE__ */ c.cloneElement(l, d({
|
|
804
|
+
style: d({
|
|
850
805
|
opacity: 0,
|
|
851
|
-
visibility:
|
|
852
|
-
},
|
|
853
|
-
ref:
|
|
806
|
+
visibility: v === "exited" && !g ? "hidden" : void 0
|
|
807
|
+
}, ye[v], S, l.props.style),
|
|
808
|
+
ref: h
|
|
854
809
|
}, W))
|
|
855
810
|
}));
|
|
856
811
|
});
|
|
@@ -864,13 +819,13 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
|
|
|
864
819
|
* node and a done callback. Allows for more fine grained transition end
|
|
865
820
|
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
866
821
|
*/
|
|
867
|
-
addEndListener:
|
|
822
|
+
addEndListener: e.func,
|
|
868
823
|
/**
|
|
869
824
|
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
870
825
|
* Set this to `false` to disable this behavior.
|
|
871
826
|
* @default true
|
|
872
827
|
*/
|
|
873
|
-
appear:
|
|
828
|
+
appear: e.bool,
|
|
874
829
|
/**
|
|
875
830
|
* A single child content element.
|
|
876
831
|
*/
|
|
@@ -879,42 +834,42 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
|
|
|
879
834
|
* The transition timing function.
|
|
880
835
|
* You may specify a single easing or a object containing enter and exit values.
|
|
881
836
|
*/
|
|
882
|
-
easing:
|
|
883
|
-
enter:
|
|
884
|
-
exit:
|
|
885
|
-
}),
|
|
837
|
+
easing: e.oneOfType([e.shape({
|
|
838
|
+
enter: e.string,
|
|
839
|
+
exit: e.string
|
|
840
|
+
}), e.string]),
|
|
886
841
|
/**
|
|
887
842
|
* If `true`, the component will transition in.
|
|
888
843
|
*/
|
|
889
|
-
in:
|
|
844
|
+
in: e.bool,
|
|
890
845
|
/**
|
|
891
846
|
* @ignore
|
|
892
847
|
*/
|
|
893
|
-
onEnter:
|
|
848
|
+
onEnter: e.func,
|
|
894
849
|
/**
|
|
895
850
|
* @ignore
|
|
896
851
|
*/
|
|
897
|
-
onEntered:
|
|
852
|
+
onEntered: e.func,
|
|
898
853
|
/**
|
|
899
854
|
* @ignore
|
|
900
855
|
*/
|
|
901
|
-
onEntering:
|
|
856
|
+
onEntering: e.func,
|
|
902
857
|
/**
|
|
903
858
|
* @ignore
|
|
904
859
|
*/
|
|
905
|
-
onExit:
|
|
860
|
+
onExit: e.func,
|
|
906
861
|
/**
|
|
907
862
|
* @ignore
|
|
908
863
|
*/
|
|
909
|
-
onExited:
|
|
864
|
+
onExited: e.func,
|
|
910
865
|
/**
|
|
911
866
|
* @ignore
|
|
912
867
|
*/
|
|
913
|
-
onExiting:
|
|
868
|
+
onExiting: e.func,
|
|
914
869
|
/**
|
|
915
870
|
* @ignore
|
|
916
871
|
*/
|
|
917
|
-
style:
|
|
872
|
+
style: e.object,
|
|
918
873
|
/**
|
|
919
874
|
* The duration for the transition, in milliseconds.
|
|
920
875
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -923,36 +878,36 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
|
|
|
923
878
|
* exit: theme.transitions.duration.leavingScreen,
|
|
924
879
|
* }
|
|
925
880
|
*/
|
|
926
|
-
timeout:
|
|
927
|
-
appear:
|
|
928
|
-
enter:
|
|
929
|
-
exit:
|
|
881
|
+
timeout: e.oneOfType([e.number, e.shape({
|
|
882
|
+
appear: e.number,
|
|
883
|
+
enter: e.number,
|
|
884
|
+
exit: e.number
|
|
930
885
|
})])
|
|
931
886
|
});
|
|
932
|
-
function
|
|
933
|
-
return
|
|
887
|
+
function Ee(o) {
|
|
888
|
+
return H("MuiBackdrop", o);
|
|
934
889
|
}
|
|
935
|
-
|
|
936
|
-
const
|
|
890
|
+
U("MuiBackdrop", ["root", "invisible"]);
|
|
891
|
+
const Te = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], Ce = (o) => {
|
|
937
892
|
const {
|
|
938
|
-
classes:
|
|
893
|
+
classes: n,
|
|
939
894
|
invisible: t
|
|
940
895
|
} = o;
|
|
941
896
|
return G({
|
|
942
897
|
root: ["root", t && "invisible"]
|
|
943
|
-
},
|
|
944
|
-
},
|
|
898
|
+
}, Ee, n);
|
|
899
|
+
}, ke = _("div", {
|
|
945
900
|
name: "MuiBackdrop",
|
|
946
901
|
slot: "Root",
|
|
947
|
-
overridesResolver: (o,
|
|
902
|
+
overridesResolver: (o, n) => {
|
|
948
903
|
const {
|
|
949
904
|
ownerState: t
|
|
950
905
|
} = o;
|
|
951
|
-
return [
|
|
906
|
+
return [n.root, t.invisible && n.invisible];
|
|
952
907
|
}
|
|
953
908
|
})(({
|
|
954
909
|
ownerState: o
|
|
955
|
-
}) =>
|
|
910
|
+
}) => d({
|
|
956
911
|
position: "fixed",
|
|
957
912
|
display: "flex",
|
|
958
913
|
alignItems: "center",
|
|
@@ -965,40 +920,40 @@ const ke = ["children", "className", "component", "components", "componentsProps
|
|
|
965
920
|
WebkitTapHighlightColor: "transparent"
|
|
966
921
|
}, o.invisible && {
|
|
967
922
|
backgroundColor: "transparent"
|
|
968
|
-
})), bo = /* @__PURE__ */
|
|
923
|
+
})), bo = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
969
924
|
var r, s, i;
|
|
970
925
|
const a = Y({
|
|
971
|
-
props:
|
|
926
|
+
props: n,
|
|
972
927
|
name: "MuiBackdrop"
|
|
973
928
|
}), {
|
|
974
|
-
children:
|
|
975
|
-
className:
|
|
976
|
-
component:
|
|
929
|
+
children: l,
|
|
930
|
+
className: u,
|
|
931
|
+
component: g = "div",
|
|
977
932
|
components: m = {},
|
|
978
|
-
componentsProps:
|
|
979
|
-
invisible:
|
|
980
|
-
open:
|
|
933
|
+
componentsProps: x = {},
|
|
934
|
+
invisible: R = !1,
|
|
935
|
+
open: C,
|
|
981
936
|
slotProps: f = {},
|
|
982
|
-
slots:
|
|
983
|
-
TransitionComponent:
|
|
937
|
+
slots: $ = {},
|
|
938
|
+
TransitionComponent: S = fo,
|
|
984
939
|
transitionDuration: D
|
|
985
|
-
} = a,
|
|
986
|
-
component:
|
|
987
|
-
invisible:
|
|
988
|
-
}),
|
|
989
|
-
return /* @__PURE__ */ N(
|
|
990
|
-
in:
|
|
940
|
+
} = a, P = j(a, Te), p = d({}, a, {
|
|
941
|
+
component: g,
|
|
942
|
+
invisible: R
|
|
943
|
+
}), T = Ce(p), h = (r = f.root) != null ? r : x.root;
|
|
944
|
+
return /* @__PURE__ */ N(S, d({
|
|
945
|
+
in: C,
|
|
991
946
|
timeout: D
|
|
992
|
-
},
|
|
993
|
-
children: /* @__PURE__ */ N(
|
|
947
|
+
}, P, {
|
|
948
|
+
children: /* @__PURE__ */ N(ke, d({
|
|
994
949
|
"aria-hidden": !0
|
|
995
|
-
},
|
|
996
|
-
as: (s = (i =
|
|
997
|
-
className:
|
|
998
|
-
ownerState:
|
|
999
|
-
classes:
|
|
950
|
+
}, h, {
|
|
951
|
+
as: (s = (i = $.root) != null ? i : m.Root) != null ? s : g,
|
|
952
|
+
className: L(T.root, u, h == null ? void 0 : h.className),
|
|
953
|
+
ownerState: d({}, p, h == null ? void 0 : h.ownerState),
|
|
954
|
+
classes: T,
|
|
1000
955
|
ref: t,
|
|
1001
|
-
children:
|
|
956
|
+
children: l
|
|
1002
957
|
}))
|
|
1003
958
|
}));
|
|
1004
959
|
});
|
|
@@ -1010,20 +965,20 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
|
|
|
1010
965
|
/**
|
|
1011
966
|
* The content of the component.
|
|
1012
967
|
*/
|
|
1013
|
-
children:
|
|
968
|
+
children: e.node,
|
|
1014
969
|
/**
|
|
1015
970
|
* Override or extend the styles applied to the component.
|
|
1016
971
|
*/
|
|
1017
|
-
classes:
|
|
972
|
+
classes: e.object,
|
|
1018
973
|
/**
|
|
1019
974
|
* @ignore
|
|
1020
975
|
*/
|
|
1021
|
-
className:
|
|
976
|
+
className: e.string,
|
|
1022
977
|
/**
|
|
1023
978
|
* The component used for the root node.
|
|
1024
979
|
* Either a string to use a HTML element or a component.
|
|
1025
980
|
*/
|
|
1026
|
-
component:
|
|
981
|
+
component: e.elementType,
|
|
1027
982
|
/**
|
|
1028
983
|
* The components used for each slot inside.
|
|
1029
984
|
*
|
|
@@ -1032,8 +987,8 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
|
|
|
1032
987
|
*
|
|
1033
988
|
* @default {}
|
|
1034
989
|
*/
|
|
1035
|
-
components:
|
|
1036
|
-
Root:
|
|
990
|
+
components: e.shape({
|
|
991
|
+
Root: e.elementType
|
|
1037
992
|
}),
|
|
1038
993
|
/**
|
|
1039
994
|
* The extra props for the slot components.
|
|
@@ -1044,19 +999,19 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
|
|
|
1044
999
|
*
|
|
1045
1000
|
* @default {}
|
|
1046
1001
|
*/
|
|
1047
|
-
componentsProps:
|
|
1048
|
-
root:
|
|
1002
|
+
componentsProps: e.shape({
|
|
1003
|
+
root: e.object
|
|
1049
1004
|
}),
|
|
1050
1005
|
/**
|
|
1051
1006
|
* If `true`, the backdrop is invisible.
|
|
1052
1007
|
* It can be used when rendering a popover or a custom select component.
|
|
1053
1008
|
* @default false
|
|
1054
1009
|
*/
|
|
1055
|
-
invisible:
|
|
1010
|
+
invisible: e.bool,
|
|
1056
1011
|
/**
|
|
1057
1012
|
* If `true`, the component is shown.
|
|
1058
1013
|
*/
|
|
1059
|
-
open:
|
|
1014
|
+
open: e.bool.isRequired,
|
|
1060
1015
|
/**
|
|
1061
1016
|
* The extra props for the slot components.
|
|
1062
1017
|
* You can override the existing props or add new ones.
|
|
@@ -1065,8 +1020,8 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
|
|
|
1065
1020
|
*
|
|
1066
1021
|
* @default {}
|
|
1067
1022
|
*/
|
|
1068
|
-
slotProps:
|
|
1069
|
-
root:
|
|
1023
|
+
slotProps: e.shape({
|
|
1024
|
+
root: e.object
|
|
1070
1025
|
}),
|
|
1071
1026
|
/**
|
|
1072
1027
|
* The components used for each slot inside.
|
|
@@ -1075,256 +1030,256 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
|
|
|
1075
1030
|
*
|
|
1076
1031
|
* @default {}
|
|
1077
1032
|
*/
|
|
1078
|
-
slots:
|
|
1079
|
-
root:
|
|
1033
|
+
slots: e.shape({
|
|
1034
|
+
root: e.elementType
|
|
1080
1035
|
}),
|
|
1081
1036
|
/**
|
|
1082
1037
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1083
1038
|
*/
|
|
1084
|
-
sx:
|
|
1039
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1085
1040
|
/**
|
|
1086
1041
|
* The component used for the transition.
|
|
1087
1042
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
1088
1043
|
* @default Fade
|
|
1089
1044
|
*/
|
|
1090
|
-
TransitionComponent:
|
|
1045
|
+
TransitionComponent: e.elementType,
|
|
1091
1046
|
/**
|
|
1092
1047
|
* The duration for the transition, in milliseconds.
|
|
1093
1048
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
1094
1049
|
*/
|
|
1095
|
-
transitionDuration:
|
|
1096
|
-
appear:
|
|
1097
|
-
enter:
|
|
1098
|
-
exit:
|
|
1050
|
+
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
1051
|
+
appear: e.number,
|
|
1052
|
+
enter: e.number,
|
|
1053
|
+
exit: e.number
|
|
1099
1054
|
})])
|
|
1100
1055
|
});
|
|
1101
|
-
function
|
|
1056
|
+
function Pe(o) {
|
|
1102
1057
|
return typeof o == "function" ? o() : o;
|
|
1103
1058
|
}
|
|
1104
|
-
function
|
|
1059
|
+
function Re(o) {
|
|
1105
1060
|
return o ? o.props.hasOwnProperty("in") : !1;
|
|
1106
1061
|
}
|
|
1107
|
-
const
|
|
1108
|
-
function
|
|
1062
|
+
const Ne = new pe();
|
|
1063
|
+
function Se(o) {
|
|
1109
1064
|
const {
|
|
1110
|
-
container:
|
|
1065
|
+
container: n,
|
|
1111
1066
|
disableEscapeKeyDown: t = !1,
|
|
1112
1067
|
disableScrollLock: r = !1,
|
|
1113
1068
|
// @ts-ignore internal logic - Base UI supports the manager as a prop too
|
|
1114
|
-
manager: s =
|
|
1069
|
+
manager: s = Ne,
|
|
1115
1070
|
closeAfterTransition: i = !1,
|
|
1116
1071
|
onTransitionEnter: a,
|
|
1117
|
-
onTransitionExited:
|
|
1118
|
-
children:
|
|
1119
|
-
onClose:
|
|
1072
|
+
onTransitionExited: l,
|
|
1073
|
+
children: u,
|
|
1074
|
+
onClose: g,
|
|
1120
1075
|
open: m,
|
|
1121
|
-
rootRef:
|
|
1122
|
-
} = o,
|
|
1123
|
-
let
|
|
1124
|
-
(o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (
|
|
1125
|
-
const
|
|
1126
|
-
s.mount(
|
|
1076
|
+
rootRef: x
|
|
1077
|
+
} = o, R = c.useRef({}), C = c.useRef(null), f = c.useRef(null), $ = Q(f, x), [S, D] = c.useState(!m), P = Re(u);
|
|
1078
|
+
let p = !0;
|
|
1079
|
+
(o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (p = !1);
|
|
1080
|
+
const T = () => V(C.current), h = () => (R.current.modalRef = f.current, R.current.mount = C.current, R.current), k = () => {
|
|
1081
|
+
s.mount(h(), {
|
|
1127
1082
|
disableScrollLock: r
|
|
1128
1083
|
}), f.current && (f.current.scrollTop = 0);
|
|
1129
|
-
},
|
|
1130
|
-
const
|
|
1131
|
-
s.add(
|
|
1132
|
-
}),
|
|
1133
|
-
|
|
1134
|
-
}),
|
|
1135
|
-
s.remove(
|
|
1136
|
-
}, [
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
}, [
|
|
1140
|
-
m ?
|
|
1141
|
-
}, [m,
|
|
1142
|
-
const F = (
|
|
1143
|
-
var
|
|
1144
|
-
(
|
|
1145
|
-
!
|
|
1146
|
-
},
|
|
1147
|
-
var
|
|
1148
|
-
(
|
|
1084
|
+
}, y = Eo(() => {
|
|
1085
|
+
const b = Pe(n) || T().body;
|
|
1086
|
+
s.add(h(), b), f.current && k();
|
|
1087
|
+
}), O = c.useCallback(() => s.isTopModal(h()), [s]), z = Eo((b) => {
|
|
1088
|
+
C.current = b, b && (m && O() ? k() : f.current && J(f.current, p));
|
|
1089
|
+
}), I = c.useCallback(() => {
|
|
1090
|
+
s.remove(h(), p);
|
|
1091
|
+
}, [p, s]);
|
|
1092
|
+
c.useEffect(() => () => {
|
|
1093
|
+
I();
|
|
1094
|
+
}, [I]), c.useEffect(() => {
|
|
1095
|
+
m ? y() : (!P || !i) && I();
|
|
1096
|
+
}, [m, I, P, i, y]);
|
|
1097
|
+
const F = (b) => (E) => {
|
|
1098
|
+
var B;
|
|
1099
|
+
(B = b.onKeyDown) == null || B.call(b, E), !(E.key !== "Escape" || E.which === 229 || // Wait until IME is settled.
|
|
1100
|
+
!O()) && (t || (E.stopPropagation(), g && g(E, "escapeKeyDown")));
|
|
1101
|
+
}, A = (b) => (E) => {
|
|
1102
|
+
var B;
|
|
1103
|
+
(B = b.onClick) == null || B.call(b, E), E.target === E.currentTarget && g && g(E, "backdropClick");
|
|
1149
1104
|
};
|
|
1150
1105
|
return {
|
|
1151
|
-
getRootProps: (
|
|
1152
|
-
const
|
|
1153
|
-
delete
|
|
1154
|
-
const
|
|
1155
|
-
return
|
|
1106
|
+
getRootProps: (b = {}) => {
|
|
1107
|
+
const E = Go(o);
|
|
1108
|
+
delete E.onTransitionEnter, delete E.onTransitionExited;
|
|
1109
|
+
const B = d({}, E, b);
|
|
1110
|
+
return d({
|
|
1156
1111
|
role: "presentation"
|
|
1157
|
-
},
|
|
1158
|
-
onKeyDown: F(
|
|
1159
|
-
ref:
|
|
1112
|
+
}, B, {
|
|
1113
|
+
onKeyDown: F(B),
|
|
1114
|
+
ref: $
|
|
1160
1115
|
});
|
|
1161
1116
|
},
|
|
1162
|
-
getBackdropProps: (
|
|
1163
|
-
const
|
|
1164
|
-
return
|
|
1117
|
+
getBackdropProps: (b = {}) => {
|
|
1118
|
+
const E = b;
|
|
1119
|
+
return d({
|
|
1165
1120
|
"aria-hidden": !0
|
|
1166
|
-
},
|
|
1167
|
-
onClick:
|
|
1121
|
+
}, E, {
|
|
1122
|
+
onClick: A(E),
|
|
1168
1123
|
open: m
|
|
1169
1124
|
});
|
|
1170
1125
|
},
|
|
1171
1126
|
getTransitionProps: () => {
|
|
1172
|
-
const
|
|
1127
|
+
const b = () => {
|
|
1173
1128
|
D(!1), a && a();
|
|
1174
|
-
},
|
|
1175
|
-
D(!0),
|
|
1129
|
+
}, E = () => {
|
|
1130
|
+
D(!0), l && l(), i && I();
|
|
1176
1131
|
};
|
|
1177
1132
|
return {
|
|
1178
|
-
onEnter: Co(
|
|
1179
|
-
onExited: Co(
|
|
1133
|
+
onEnter: Co(b, u == null ? void 0 : u.props.onEnter),
|
|
1134
|
+
onExited: Co(E, u == null ? void 0 : u.props.onExited)
|
|
1180
1135
|
};
|
|
1181
1136
|
},
|
|
1182
|
-
rootRef:
|
|
1137
|
+
rootRef: $,
|
|
1183
1138
|
portalRef: z,
|
|
1184
|
-
isTopModal:
|
|
1185
|
-
exited:
|
|
1186
|
-
hasTransition:
|
|
1139
|
+
isTopModal: O,
|
|
1140
|
+
exited: S,
|
|
1141
|
+
hasTransition: P
|
|
1187
1142
|
};
|
|
1188
1143
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1144
|
+
function De(o) {
|
|
1145
|
+
return H("MuiModal", o);
|
|
1191
1146
|
}
|
|
1192
|
-
|
|
1193
|
-
const
|
|
1147
|
+
U("MuiModal", ["root", "hidden", "backdrop"]);
|
|
1148
|
+
const Oe = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Ie = (o) => {
|
|
1194
1149
|
const {
|
|
1195
|
-
open:
|
|
1150
|
+
open: n,
|
|
1196
1151
|
exited: t,
|
|
1197
1152
|
classes: r
|
|
1198
1153
|
} = o;
|
|
1199
1154
|
return G({
|
|
1200
|
-
root: ["root", !
|
|
1155
|
+
root: ["root", !n && t && "hidden"],
|
|
1201
1156
|
backdrop: ["backdrop"]
|
|
1202
|
-
},
|
|
1203
|
-
},
|
|
1157
|
+
}, De, r);
|
|
1158
|
+
}, Be = _("div", {
|
|
1204
1159
|
name: "MuiModal",
|
|
1205
1160
|
slot: "Root",
|
|
1206
|
-
overridesResolver: (o,
|
|
1161
|
+
overridesResolver: (o, n) => {
|
|
1207
1162
|
const {
|
|
1208
1163
|
ownerState: t
|
|
1209
1164
|
} = o;
|
|
1210
|
-
return [
|
|
1165
|
+
return [n.root, !t.open && t.exited && n.hidden];
|
|
1211
1166
|
}
|
|
1212
1167
|
})(({
|
|
1213
1168
|
theme: o,
|
|
1214
|
-
ownerState:
|
|
1215
|
-
}) =>
|
|
1169
|
+
ownerState: n
|
|
1170
|
+
}) => d({
|
|
1216
1171
|
position: "fixed",
|
|
1217
1172
|
zIndex: (o.vars || o).zIndex.modal,
|
|
1218
1173
|
right: 0,
|
|
1219
1174
|
bottom: 0,
|
|
1220
1175
|
top: 0,
|
|
1221
1176
|
left: 0
|
|
1222
|
-
}, !
|
|
1177
|
+
}, !n.open && n.exited && {
|
|
1223
1178
|
visibility: "hidden"
|
|
1224
|
-
})),
|
|
1179
|
+
})), Me = _(bo, {
|
|
1225
1180
|
name: "MuiModal",
|
|
1226
1181
|
slot: "Backdrop",
|
|
1227
|
-
overridesResolver: (o,
|
|
1182
|
+
overridesResolver: (o, n) => n.backdrop
|
|
1228
1183
|
})({
|
|
1229
1184
|
zIndex: -1
|
|
1230
|
-
}),
|
|
1231
|
-
var r, s, i, a,
|
|
1232
|
-
const
|
|
1185
|
+
}), $o = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
1186
|
+
var r, s, i, a, l, u;
|
|
1187
|
+
const g = Y({
|
|
1233
1188
|
name: "MuiModal",
|
|
1234
|
-
props:
|
|
1189
|
+
props: n
|
|
1235
1190
|
}), {
|
|
1236
|
-
BackdropComponent: m =
|
|
1237
|
-
BackdropProps:
|
|
1238
|
-
className:
|
|
1239
|
-
closeAfterTransition:
|
|
1191
|
+
BackdropComponent: m = Me,
|
|
1192
|
+
BackdropProps: x,
|
|
1193
|
+
className: R,
|
|
1194
|
+
closeAfterTransition: C = !1,
|
|
1240
1195
|
children: f,
|
|
1241
|
-
container:
|
|
1242
|
-
component:
|
|
1196
|
+
container: $,
|
|
1197
|
+
component: S,
|
|
1243
1198
|
components: D = {},
|
|
1244
|
-
componentsProps:
|
|
1245
|
-
disableAutoFocus:
|
|
1246
|
-
disableEnforceFocus:
|
|
1247
|
-
disableEscapeKeyDown:
|
|
1248
|
-
disablePortal:
|
|
1249
|
-
disableRestoreFocus:
|
|
1250
|
-
disableScrollLock:
|
|
1199
|
+
componentsProps: P = {},
|
|
1200
|
+
disableAutoFocus: p = !1,
|
|
1201
|
+
disableEnforceFocus: T = !1,
|
|
1202
|
+
disableEscapeKeyDown: h = !1,
|
|
1203
|
+
disablePortal: k = !1,
|
|
1204
|
+
disableRestoreFocus: y = !1,
|
|
1205
|
+
disableScrollLock: O = !1,
|
|
1251
1206
|
hideBackdrop: z = !1,
|
|
1252
|
-
keepMounted:
|
|
1207
|
+
keepMounted: I = !1,
|
|
1253
1208
|
onBackdropClick: F,
|
|
1254
|
-
open:
|
|
1255
|
-
slotProps:
|
|
1256
|
-
slots:
|
|
1209
|
+
open: A,
|
|
1210
|
+
slotProps: w,
|
|
1211
|
+
slots: v
|
|
1257
1212
|
// eslint-disable-next-line react/prop-types
|
|
1258
|
-
} =
|
|
1259
|
-
closeAfterTransition:
|
|
1260
|
-
disableAutoFocus:
|
|
1261
|
-
disableEnforceFocus:
|
|
1262
|
-
disableEscapeKeyDown:
|
|
1263
|
-
disablePortal:
|
|
1264
|
-
disableRestoreFocus:
|
|
1265
|
-
disableScrollLock:
|
|
1213
|
+
} = g, W = j(g, Oe), b = d({}, g, {
|
|
1214
|
+
closeAfterTransition: C,
|
|
1215
|
+
disableAutoFocus: p,
|
|
1216
|
+
disableEnforceFocus: T,
|
|
1217
|
+
disableEscapeKeyDown: h,
|
|
1218
|
+
disablePortal: k,
|
|
1219
|
+
disableRestoreFocus: y,
|
|
1220
|
+
disableScrollLock: O,
|
|
1266
1221
|
hideBackdrop: z,
|
|
1267
|
-
keepMounted:
|
|
1222
|
+
keepMounted: I
|
|
1268
1223
|
}), {
|
|
1269
|
-
getRootProps:
|
|
1270
|
-
getBackdropProps:
|
|
1271
|
-
getTransitionProps:
|
|
1272
|
-
portalRef:
|
|
1273
|
-
isTopModal:
|
|
1224
|
+
getRootProps: E,
|
|
1225
|
+
getBackdropProps: B,
|
|
1226
|
+
getTransitionProps: zo,
|
|
1227
|
+
portalRef: Fo,
|
|
1228
|
+
isTopModal: Ao,
|
|
1274
1229
|
exited: go,
|
|
1275
1230
|
hasTransition: mo
|
|
1276
|
-
} =
|
|
1231
|
+
} = Se(d({}, b, {
|
|
1277
1232
|
rootRef: t
|
|
1278
|
-
})), X =
|
|
1233
|
+
})), X = d({}, b, {
|
|
1279
1234
|
exited: go
|
|
1280
|
-
}), K =
|
|
1281
|
-
if (f.props.tabIndex === void 0 && (
|
|
1235
|
+
}), K = Ie(X), Z = {};
|
|
1236
|
+
if (f.props.tabIndex === void 0 && (Z.tabIndex = "-1"), mo) {
|
|
1282
1237
|
const {
|
|
1283
1238
|
onEnter: q,
|
|
1284
1239
|
onExited: oo
|
|
1285
|
-
} =
|
|
1286
|
-
|
|
1240
|
+
} = zo();
|
|
1241
|
+
Z.onEnter = q, Z.onExited = oo;
|
|
1287
1242
|
}
|
|
1288
|
-
const vo = (r = (s =
|
|
1243
|
+
const vo = (r = (s = v == null ? void 0 : v.root) != null ? s : D.Root) != null ? r : Be, xo = (i = (a = v == null ? void 0 : v.backdrop) != null ? a : D.Backdrop) != null ? i : m, io = (l = w == null ? void 0 : w.root) != null ? l : P.root, so = (u = w == null ? void 0 : w.backdrop) != null ? u : P.backdrop, wo = ko({
|
|
1289
1244
|
elementType: vo,
|
|
1290
1245
|
externalSlotProps: io,
|
|
1291
1246
|
externalForwardedProps: W,
|
|
1292
|
-
getSlotProps:
|
|
1247
|
+
getSlotProps: E,
|
|
1293
1248
|
additionalProps: {
|
|
1294
1249
|
ref: t,
|
|
1295
|
-
as:
|
|
1250
|
+
as: S
|
|
1296
1251
|
},
|
|
1297
1252
|
ownerState: X,
|
|
1298
|
-
className:
|
|
1299
|
-
}),
|
|
1253
|
+
className: L(R, io == null ? void 0 : io.className, K == null ? void 0 : K.root, !X.open && X.exited && (K == null ? void 0 : K.hidden))
|
|
1254
|
+
}), _o = ko({
|
|
1300
1255
|
elementType: xo,
|
|
1301
1256
|
externalSlotProps: so,
|
|
1302
|
-
additionalProps:
|
|
1303
|
-
getSlotProps: (q) =>
|
|
1257
|
+
additionalProps: x,
|
|
1258
|
+
getSlotProps: (q) => B(d({}, q, {
|
|
1304
1259
|
onClick: (oo) => {
|
|
1305
1260
|
F && F(oo), q != null && q.onClick && q.onClick(oo);
|
|
1306
1261
|
}
|
|
1307
1262
|
})),
|
|
1308
|
-
className:
|
|
1263
|
+
className: L(so == null ? void 0 : so.className, x == null ? void 0 : x.className, K == null ? void 0 : K.backdrop),
|
|
1309
1264
|
ownerState: X
|
|
1310
1265
|
});
|
|
1311
|
-
return !
|
|
1312
|
-
ref:
|
|
1313
|
-
container:
|
|
1314
|
-
disablePortal:
|
|
1315
|
-
children: /* @__PURE__ */ co(vo,
|
|
1316
|
-
children: [!z && m ? /* @__PURE__ */ N(xo,
|
|
1317
|
-
disableEnforceFocus:
|
|
1318
|
-
disableAutoFocus:
|
|
1319
|
-
disableRestoreFocus:
|
|
1320
|
-
isEnabled:
|
|
1321
|
-
open:
|
|
1322
|
-
children: /* @__PURE__ */
|
|
1266
|
+
return !I && !A && (!mo || go) ? null : /* @__PURE__ */ N(ro, {
|
|
1267
|
+
ref: Fo,
|
|
1268
|
+
container: $,
|
|
1269
|
+
disablePortal: k,
|
|
1270
|
+
children: /* @__PURE__ */ co(vo, d({}, wo, {
|
|
1271
|
+
children: [!z && m ? /* @__PURE__ */ N(xo, d({}, _o)) : null, /* @__PURE__ */ N(to, {
|
|
1272
|
+
disableEnforceFocus: T,
|
|
1273
|
+
disableAutoFocus: p,
|
|
1274
|
+
disableRestoreFocus: y,
|
|
1275
|
+
isEnabled: Ao,
|
|
1276
|
+
open: A,
|
|
1277
|
+
children: /* @__PURE__ */ c.cloneElement(f, Z)
|
|
1323
1278
|
})]
|
|
1324
1279
|
}))
|
|
1325
1280
|
});
|
|
1326
1281
|
});
|
|
1327
|
-
process.env.NODE_ENV !== "production" && (
|
|
1282
|
+
process.env.NODE_ENV !== "production" && ($o.propTypes = {
|
|
1328
1283
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1329
1284
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1330
1285
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1343,12 +1298,12 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1343
1298
|
* zIndex: -1,
|
|
1344
1299
|
* })
|
|
1345
1300
|
*/
|
|
1346
|
-
BackdropComponent:
|
|
1301
|
+
BackdropComponent: e.elementType,
|
|
1347
1302
|
/**
|
|
1348
1303
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
1349
1304
|
* @deprecated Use `slotProps.backdrop` instead.
|
|
1350
1305
|
*/
|
|
1351
|
-
BackdropProps:
|
|
1306
|
+
BackdropProps: e.object,
|
|
1352
1307
|
/**
|
|
1353
1308
|
* A single child content element.
|
|
1354
1309
|
*/
|
|
@@ -1356,21 +1311,21 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1356
1311
|
/**
|
|
1357
1312
|
* Override or extend the styles applied to the component.
|
|
1358
1313
|
*/
|
|
1359
|
-
classes:
|
|
1314
|
+
classes: e.object,
|
|
1360
1315
|
/**
|
|
1361
1316
|
* @ignore
|
|
1362
1317
|
*/
|
|
1363
|
-
className:
|
|
1318
|
+
className: e.string,
|
|
1364
1319
|
/**
|
|
1365
1320
|
* When set to true the Modal waits until a nested Transition is completed before closing.
|
|
1366
1321
|
* @default false
|
|
1367
1322
|
*/
|
|
1368
|
-
closeAfterTransition:
|
|
1323
|
+
closeAfterTransition: e.bool,
|
|
1369
1324
|
/**
|
|
1370
1325
|
* The component used for the root node.
|
|
1371
1326
|
* Either a string to use a HTML element or a component.
|
|
1372
1327
|
*/
|
|
1373
|
-
component:
|
|
1328
|
+
component: e.elementType,
|
|
1374
1329
|
/**
|
|
1375
1330
|
* The components used for each slot inside.
|
|
1376
1331
|
*
|
|
@@ -1379,9 +1334,9 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1379
1334
|
*
|
|
1380
1335
|
* @default {}
|
|
1381
1336
|
*/
|
|
1382
|
-
components:
|
|
1383
|
-
Backdrop:
|
|
1384
|
-
Root:
|
|
1337
|
+
components: e.shape({
|
|
1338
|
+
Backdrop: e.elementType,
|
|
1339
|
+
Root: e.elementType
|
|
1385
1340
|
}),
|
|
1386
1341
|
/**
|
|
1387
1342
|
* The extra props for the slot components.
|
|
@@ -1392,9 +1347,9 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1392
1347
|
*
|
|
1393
1348
|
* @default {}
|
|
1394
1349
|
*/
|
|
1395
|
-
componentsProps:
|
|
1396
|
-
backdrop:
|
|
1397
|
-
root:
|
|
1350
|
+
componentsProps: e.shape({
|
|
1351
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
|
1352
|
+
root: e.oneOfType([e.func, e.object])
|
|
1398
1353
|
}),
|
|
1399
1354
|
/**
|
|
1400
1355
|
* An HTML element or function that returns one.
|
|
@@ -1406,7 +1361,7 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1406
1361
|
* By default, it uses the body of the top-level document object,
|
|
1407
1362
|
* so it's simply `document.body` most of the time.
|
|
1408
1363
|
*/
|
|
1409
|
-
container:
|
|
1364
|
+
container: e.oneOfType([Oo, e.func]),
|
|
1410
1365
|
/**
|
|
1411
1366
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
1412
1367
|
* replace it to the last focused element when it closes.
|
|
@@ -1416,7 +1371,7 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1416
1371
|
* accessible to assistive technologies, like screen readers.
|
|
1417
1372
|
* @default false
|
|
1418
1373
|
*/
|
|
1419
|
-
disableAutoFocus:
|
|
1374
|
+
disableAutoFocus: e.bool,
|
|
1420
1375
|
/**
|
|
1421
1376
|
* If `true`, the modal will not prevent focus from leaving the modal while open.
|
|
1422
1377
|
*
|
|
@@ -1424,45 +1379,45 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1424
1379
|
* accessible to assistive technologies, like screen readers.
|
|
1425
1380
|
* @default false
|
|
1426
1381
|
*/
|
|
1427
|
-
disableEnforceFocus:
|
|
1382
|
+
disableEnforceFocus: e.bool,
|
|
1428
1383
|
/**
|
|
1429
1384
|
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
1430
1385
|
* @default false
|
|
1431
1386
|
*/
|
|
1432
|
-
disableEscapeKeyDown:
|
|
1387
|
+
disableEscapeKeyDown: e.bool,
|
|
1433
1388
|
/**
|
|
1434
1389
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1435
1390
|
* @default false
|
|
1436
1391
|
*/
|
|
1437
|
-
disablePortal:
|
|
1392
|
+
disablePortal: e.bool,
|
|
1438
1393
|
/**
|
|
1439
1394
|
* If `true`, the modal will not restore focus to previously focused element once
|
|
1440
1395
|
* modal is hidden or unmounted.
|
|
1441
1396
|
* @default false
|
|
1442
1397
|
*/
|
|
1443
|
-
disableRestoreFocus:
|
|
1398
|
+
disableRestoreFocus: e.bool,
|
|
1444
1399
|
/**
|
|
1445
1400
|
* Disable the scroll lock behavior.
|
|
1446
1401
|
* @default false
|
|
1447
1402
|
*/
|
|
1448
|
-
disableScrollLock:
|
|
1403
|
+
disableScrollLock: e.bool,
|
|
1449
1404
|
/**
|
|
1450
1405
|
* If `true`, the backdrop is not rendered.
|
|
1451
1406
|
* @default false
|
|
1452
1407
|
*/
|
|
1453
|
-
hideBackdrop:
|
|
1408
|
+
hideBackdrop: e.bool,
|
|
1454
1409
|
/**
|
|
1455
1410
|
* Always keep the children in the DOM.
|
|
1456
1411
|
* This prop can be useful in SEO situation or
|
|
1457
1412
|
* when you want to maximize the responsiveness of the Modal.
|
|
1458
1413
|
* @default false
|
|
1459
1414
|
*/
|
|
1460
|
-
keepMounted:
|
|
1415
|
+
keepMounted: e.bool,
|
|
1461
1416
|
/**
|
|
1462
1417
|
* Callback fired when the backdrop is clicked.
|
|
1463
1418
|
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
1464
1419
|
*/
|
|
1465
|
-
onBackdropClick:
|
|
1420
|
+
onBackdropClick: e.func,
|
|
1466
1421
|
/**
|
|
1467
1422
|
* Callback fired when the component requests to be closed.
|
|
1468
1423
|
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
@@ -1470,87 +1425,87 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1470
1425
|
* @param {object} event The event source of the callback.
|
|
1471
1426
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
1472
1427
|
*/
|
|
1473
|
-
onClose:
|
|
1428
|
+
onClose: e.func,
|
|
1474
1429
|
/**
|
|
1475
1430
|
* A function called when a transition enters.
|
|
1476
1431
|
*/
|
|
1477
|
-
onTransitionEnter:
|
|
1432
|
+
onTransitionEnter: e.func,
|
|
1478
1433
|
/**
|
|
1479
1434
|
* A function called when a transition has exited.
|
|
1480
1435
|
*/
|
|
1481
|
-
onTransitionExited:
|
|
1436
|
+
onTransitionExited: e.func,
|
|
1482
1437
|
/**
|
|
1483
1438
|
* If `true`, the component is shown.
|
|
1484
1439
|
*/
|
|
1485
|
-
open:
|
|
1440
|
+
open: e.bool.isRequired,
|
|
1486
1441
|
/**
|
|
1487
1442
|
* The props used for each slot inside the Modal.
|
|
1488
1443
|
* @default {}
|
|
1489
1444
|
*/
|
|
1490
|
-
slotProps:
|
|
1491
|
-
backdrop:
|
|
1492
|
-
root:
|
|
1445
|
+
slotProps: e.shape({
|
|
1446
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
|
1447
|
+
root: e.oneOfType([e.func, e.object])
|
|
1493
1448
|
}),
|
|
1494
1449
|
/**
|
|
1495
1450
|
* The components used for each slot inside the Modal.
|
|
1496
1451
|
* Either a string to use a HTML element or a component.
|
|
1497
1452
|
* @default {}
|
|
1498
1453
|
*/
|
|
1499
|
-
slots:
|
|
1500
|
-
backdrop:
|
|
1501
|
-
root:
|
|
1454
|
+
slots: e.shape({
|
|
1455
|
+
backdrop: e.elementType,
|
|
1456
|
+
root: e.elementType
|
|
1502
1457
|
}),
|
|
1503
1458
|
/**
|
|
1504
1459
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1505
1460
|
*/
|
|
1506
|
-
sx:
|
|
1461
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1507
1462
|
});
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1463
|
+
function $e(o) {
|
|
1464
|
+
return H("MuiDialog", o);
|
|
1510
1465
|
}
|
|
1511
|
-
const lo =
|
|
1512
|
-
process.env.NODE_ENV !== "production" && (
|
|
1513
|
-
const
|
|
1466
|
+
const lo = U("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Wo = /* @__PURE__ */ c.createContext({});
|
|
1467
|
+
process.env.NODE_ENV !== "production" && (Wo.displayName = "DialogContext");
|
|
1468
|
+
const We = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], ze = _(bo, {
|
|
1514
1469
|
name: "MuiDialog",
|
|
1515
1470
|
slot: "Backdrop",
|
|
1516
|
-
overrides: (o,
|
|
1471
|
+
overrides: (o, n) => n.backdrop
|
|
1517
1472
|
})({
|
|
1518
1473
|
// Improve scrollable dialog support.
|
|
1519
1474
|
zIndex: -1
|
|
1520
|
-
}),
|
|
1475
|
+
}), Fe = (o) => {
|
|
1521
1476
|
const {
|
|
1522
|
-
classes:
|
|
1477
|
+
classes: n,
|
|
1523
1478
|
scroll: t,
|
|
1524
1479
|
maxWidth: r,
|
|
1525
1480
|
fullWidth: s,
|
|
1526
1481
|
fullScreen: i
|
|
1527
1482
|
} = o, a = {
|
|
1528
1483
|
root: ["root"],
|
|
1529
|
-
container: ["container", `scroll${
|
|
1530
|
-
paper: ["paper", `paperScroll${
|
|
1484
|
+
container: ["container", `scroll${M(t)}`],
|
|
1485
|
+
paper: ["paper", `paperScroll${M(t)}`, `paperWidth${M(String(r))}`, s && "paperFullWidth", i && "paperFullScreen"]
|
|
1531
1486
|
};
|
|
1532
|
-
return G(a,
|
|
1533
|
-
},
|
|
1487
|
+
return G(a, $e, n);
|
|
1488
|
+
}, Ae = _($o, {
|
|
1534
1489
|
name: "MuiDialog",
|
|
1535
1490
|
slot: "Root",
|
|
1536
|
-
overridesResolver: (o,
|
|
1491
|
+
overridesResolver: (o, n) => n.root
|
|
1537
1492
|
})({
|
|
1538
1493
|
"@media print": {
|
|
1539
1494
|
// Use !important to override the Modal inline-style.
|
|
1540
1495
|
position: "absolute !important"
|
|
1541
1496
|
}
|
|
1542
|
-
}),
|
|
1497
|
+
}), we = _("div", {
|
|
1543
1498
|
name: "MuiDialog",
|
|
1544
1499
|
slot: "Container",
|
|
1545
|
-
overridesResolver: (o,
|
|
1500
|
+
overridesResolver: (o, n) => {
|
|
1546
1501
|
const {
|
|
1547
1502
|
ownerState: t
|
|
1548
1503
|
} = o;
|
|
1549
|
-
return [
|
|
1504
|
+
return [n.container, n[`scroll${M(t.scroll)}`]];
|
|
1550
1505
|
}
|
|
1551
1506
|
})(({
|
|
1552
1507
|
ownerState: o
|
|
1553
|
-
}) =>
|
|
1508
|
+
}) => d({
|
|
1554
1509
|
height: "100%",
|
|
1555
1510
|
"@media print": {
|
|
1556
1511
|
height: "auto"
|
|
@@ -1572,19 +1527,19 @@ const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
1572
1527
|
height: "100%",
|
|
1573
1528
|
width: "0"
|
|
1574
1529
|
}
|
|
1575
|
-
})),
|
|
1530
|
+
})), _e = _(Do, {
|
|
1576
1531
|
name: "MuiDialog",
|
|
1577
1532
|
slot: "Paper",
|
|
1578
|
-
overridesResolver: (o,
|
|
1533
|
+
overridesResolver: (o, n) => {
|
|
1579
1534
|
const {
|
|
1580
1535
|
ownerState: t
|
|
1581
1536
|
} = o;
|
|
1582
|
-
return [
|
|
1537
|
+
return [n.paper, n[`scrollPaper${M(t.scroll)}`], n[`paperWidth${M(String(t.maxWidth))}`], t.fullWidth && n.paperFullWidth, t.fullScreen && n.paperFullScreen];
|
|
1583
1538
|
}
|
|
1584
1539
|
})(({
|
|
1585
1540
|
theme: o,
|
|
1586
|
-
ownerState:
|
|
1587
|
-
}) =>
|
|
1541
|
+
ownerState: n
|
|
1542
|
+
}) => d({
|
|
1588
1543
|
margin: 32,
|
|
1589
1544
|
position: "relative",
|
|
1590
1545
|
overflowY: "auto",
|
|
@@ -1593,34 +1548,34 @@ const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
1593
1548
|
overflowY: "visible",
|
|
1594
1549
|
boxShadow: "none"
|
|
1595
1550
|
}
|
|
1596
|
-
},
|
|
1551
|
+
}, n.scroll === "paper" && {
|
|
1597
1552
|
display: "flex",
|
|
1598
1553
|
flexDirection: "column",
|
|
1599
1554
|
maxHeight: "calc(100% - 64px)"
|
|
1600
|
-
},
|
|
1555
|
+
}, n.scroll === "body" && {
|
|
1601
1556
|
display: "inline-block",
|
|
1602
1557
|
verticalAlign: "middle",
|
|
1603
1558
|
textAlign: "left"
|
|
1604
1559
|
// 'initial' doesn't work on IE11
|
|
1605
|
-
}, !
|
|
1560
|
+
}, !n.maxWidth && {
|
|
1606
1561
|
maxWidth: "calc(100% - 64px)"
|
|
1607
|
-
},
|
|
1562
|
+
}, n.maxWidth === "xs" && {
|
|
1608
1563
|
maxWidth: o.breakpoints.unit === "px" ? Math.max(o.breakpoints.values.xs, 444) : `max(${o.breakpoints.values.xs}${o.breakpoints.unit}, 444px)`,
|
|
1609
1564
|
[`&.${lo.paperScrollBody}`]: {
|
|
1610
1565
|
[o.breakpoints.down(Math.max(o.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
1611
1566
|
maxWidth: "calc(100% - 64px)"
|
|
1612
1567
|
}
|
|
1613
1568
|
}
|
|
1614
|
-
},
|
|
1615
|
-
maxWidth: `${o.breakpoints.values[
|
|
1569
|
+
}, n.maxWidth && n.maxWidth !== "xs" && {
|
|
1570
|
+
maxWidth: `${o.breakpoints.values[n.maxWidth]}${o.breakpoints.unit}`,
|
|
1616
1571
|
[`&.${lo.paperScrollBody}`]: {
|
|
1617
|
-
[o.breakpoints.down(o.breakpoints.values[
|
|
1572
|
+
[o.breakpoints.down(o.breakpoints.values[n.maxWidth] + 32 * 2)]: {
|
|
1618
1573
|
maxWidth: "calc(100% - 64px)"
|
|
1619
1574
|
}
|
|
1620
1575
|
}
|
|
1621
|
-
},
|
|
1576
|
+
}, n.fullWidth && {
|
|
1622
1577
|
width: "calc(100% - 64px)"
|
|
1623
|
-
},
|
|
1578
|
+
}, n.fullScreen && {
|
|
1624
1579
|
margin: 0,
|
|
1625
1580
|
width: "100%",
|
|
1626
1581
|
maxWidth: "100%",
|
|
@@ -1631,87 +1586,87 @@ const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
1631
1586
|
margin: 0,
|
|
1632
1587
|
maxWidth: "100%"
|
|
1633
1588
|
}
|
|
1634
|
-
})),
|
|
1589
|
+
})), Le = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
1635
1590
|
const r = Y({
|
|
1636
|
-
props:
|
|
1591
|
+
props: n,
|
|
1637
1592
|
name: "MuiDialog"
|
|
1638
|
-
}), s =
|
|
1593
|
+
}), s = No(), i = {
|
|
1639
1594
|
enter: s.transitions.duration.enteringScreen,
|
|
1640
1595
|
exit: s.transitions.duration.leavingScreen
|
|
1641
1596
|
}, {
|
|
1642
1597
|
"aria-describedby": a,
|
|
1643
|
-
"aria-labelledby":
|
|
1644
|
-
BackdropComponent:
|
|
1645
|
-
BackdropProps:
|
|
1598
|
+
"aria-labelledby": l,
|
|
1599
|
+
BackdropComponent: u,
|
|
1600
|
+
BackdropProps: g,
|
|
1646
1601
|
children: m,
|
|
1647
|
-
className:
|
|
1648
|
-
disableEscapeKeyDown:
|
|
1649
|
-
fullScreen:
|
|
1602
|
+
className: x,
|
|
1603
|
+
disableEscapeKeyDown: R = !1,
|
|
1604
|
+
fullScreen: C = !1,
|
|
1650
1605
|
fullWidth: f = !1,
|
|
1651
|
-
maxWidth:
|
|
1652
|
-
onBackdropClick:
|
|
1606
|
+
maxWidth: $ = "sm",
|
|
1607
|
+
onBackdropClick: S,
|
|
1653
1608
|
onClick: D,
|
|
1654
|
-
onClose:
|
|
1655
|
-
open:
|
|
1656
|
-
PaperComponent:
|
|
1657
|
-
PaperProps:
|
|
1658
|
-
scroll:
|
|
1659
|
-
TransitionComponent:
|
|
1660
|
-
transitionDuration:
|
|
1609
|
+
onClose: P,
|
|
1610
|
+
open: p,
|
|
1611
|
+
PaperComponent: T = Do,
|
|
1612
|
+
PaperProps: h = {},
|
|
1613
|
+
scroll: k = "paper",
|
|
1614
|
+
TransitionComponent: y = fo,
|
|
1615
|
+
transitionDuration: O = i,
|
|
1661
1616
|
TransitionProps: z
|
|
1662
|
-
} = r,
|
|
1663
|
-
disableEscapeKeyDown:
|
|
1664
|
-
fullScreen:
|
|
1617
|
+
} = r, I = j(r, We), F = d({}, r, {
|
|
1618
|
+
disableEscapeKeyDown: R,
|
|
1619
|
+
fullScreen: C,
|
|
1665
1620
|
fullWidth: f,
|
|
1666
|
-
maxWidth:
|
|
1667
|
-
scroll:
|
|
1668
|
-
}),
|
|
1669
|
-
|
|
1670
|
-
}, W = (
|
|
1671
|
-
D && D(
|
|
1672
|
-
},
|
|
1673
|
-
titleId:
|
|
1674
|
-
}), [
|
|
1675
|
-
return /* @__PURE__ */ N(
|
|
1676
|
-
className:
|
|
1621
|
+
maxWidth: $,
|
|
1622
|
+
scroll: k
|
|
1623
|
+
}), A = Fe(F), w = c.useRef(), v = (B) => {
|
|
1624
|
+
w.current = B.target === B.currentTarget;
|
|
1625
|
+
}, W = (B) => {
|
|
1626
|
+
D && D(B), w.current && (w.current = null, S && S(B), P && P(B, "backdropClick"));
|
|
1627
|
+
}, b = Xo(l), E = c.useMemo(() => ({
|
|
1628
|
+
titleId: b
|
|
1629
|
+
}), [b]);
|
|
1630
|
+
return /* @__PURE__ */ N(Ae, d({
|
|
1631
|
+
className: L(A.root, x),
|
|
1677
1632
|
closeAfterTransition: !0,
|
|
1678
1633
|
components: {
|
|
1679
|
-
Backdrop:
|
|
1634
|
+
Backdrop: ze
|
|
1680
1635
|
},
|
|
1681
1636
|
componentsProps: {
|
|
1682
|
-
backdrop:
|
|
1683
|
-
transitionDuration:
|
|
1684
|
-
as:
|
|
1685
|
-
},
|
|
1637
|
+
backdrop: d({
|
|
1638
|
+
transitionDuration: O,
|
|
1639
|
+
as: u
|
|
1640
|
+
}, g)
|
|
1686
1641
|
},
|
|
1687
|
-
disableEscapeKeyDown:
|
|
1688
|
-
onClose:
|
|
1689
|
-
open:
|
|
1642
|
+
disableEscapeKeyDown: R,
|
|
1643
|
+
onClose: P,
|
|
1644
|
+
open: p,
|
|
1690
1645
|
ref: t,
|
|
1691
1646
|
onClick: W,
|
|
1692
1647
|
ownerState: F
|
|
1693
|
-
},
|
|
1694
|
-
children: /* @__PURE__ */ N(
|
|
1648
|
+
}, I, {
|
|
1649
|
+
children: /* @__PURE__ */ N(y, d({
|
|
1695
1650
|
appear: !0,
|
|
1696
|
-
in:
|
|
1697
|
-
timeout:
|
|
1651
|
+
in: p,
|
|
1652
|
+
timeout: O,
|
|
1698
1653
|
role: "presentation"
|
|
1699
1654
|
}, z, {
|
|
1700
|
-
children: /* @__PURE__ */ N(
|
|
1701
|
-
className:
|
|
1702
|
-
onMouseDown:
|
|
1655
|
+
children: /* @__PURE__ */ N(we, {
|
|
1656
|
+
className: L(A.container),
|
|
1657
|
+
onMouseDown: v,
|
|
1703
1658
|
ownerState: F,
|
|
1704
|
-
children: /* @__PURE__ */ N(
|
|
1705
|
-
as:
|
|
1659
|
+
children: /* @__PURE__ */ N(_e, d({
|
|
1660
|
+
as: T,
|
|
1706
1661
|
elevation: 24,
|
|
1707
1662
|
role: "dialog",
|
|
1708
1663
|
"aria-describedby": a,
|
|
1709
|
-
"aria-labelledby":
|
|
1710
|
-
},
|
|
1711
|
-
className:
|
|
1664
|
+
"aria-labelledby": b
|
|
1665
|
+
}, h, {
|
|
1666
|
+
className: L(A.paper, h.className),
|
|
1712
1667
|
ownerState: F,
|
|
1713
|
-
children: /* @__PURE__ */ N(
|
|
1714
|
-
value:
|
|
1668
|
+
children: /* @__PURE__ */ N(Wo.Provider, {
|
|
1669
|
+
value: E,
|
|
1715
1670
|
children: m
|
|
1716
1671
|
})
|
|
1717
1672
|
}))
|
|
@@ -1719,7 +1674,7 @@ const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
1719
1674
|
}))
|
|
1720
1675
|
}));
|
|
1721
1676
|
});
|
|
1722
|
-
process.env.NODE_ENV !== "production" && (
|
|
1677
|
+
process.env.NODE_ENV !== "production" && (Le.propTypes = {
|
|
1723
1678
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1724
1679
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1725
1680
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1727,11 +1682,11 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
1727
1682
|
/**
|
|
1728
1683
|
* The id(s) of the element(s) that describe the dialog.
|
|
1729
1684
|
*/
|
|
1730
|
-
"aria-describedby":
|
|
1685
|
+
"aria-describedby": e.string,
|
|
1731
1686
|
/**
|
|
1732
1687
|
* The id(s) of the element(s) that label the dialog.
|
|
1733
1688
|
*/
|
|
1734
|
-
"aria-labelledby":
|
|
1689
|
+
"aria-labelledby": e.string,
|
|
1735
1690
|
/**
|
|
1736
1691
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
1737
1692
|
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
@@ -1746,92 +1701,92 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
1746
1701
|
* zIndex: -1,
|
|
1747
1702
|
* })
|
|
1748
1703
|
*/
|
|
1749
|
-
BackdropComponent:
|
|
1704
|
+
BackdropComponent: e.elementType,
|
|
1750
1705
|
/**
|
|
1751
1706
|
* @ignore
|
|
1752
1707
|
*/
|
|
1753
|
-
BackdropProps:
|
|
1708
|
+
BackdropProps: e.object,
|
|
1754
1709
|
/**
|
|
1755
1710
|
* Dialog children, usually the included sub-components.
|
|
1756
1711
|
*/
|
|
1757
|
-
children:
|
|
1712
|
+
children: e.node,
|
|
1758
1713
|
/**
|
|
1759
1714
|
* Override or extend the styles applied to the component.
|
|
1760
1715
|
*/
|
|
1761
|
-
classes:
|
|
1716
|
+
classes: e.object,
|
|
1762
1717
|
/**
|
|
1763
1718
|
* @ignore
|
|
1764
1719
|
*/
|
|
1765
|
-
className:
|
|
1720
|
+
className: e.string,
|
|
1766
1721
|
/**
|
|
1767
1722
|
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
1768
1723
|
* @default false
|
|
1769
1724
|
*/
|
|
1770
|
-
disableEscapeKeyDown:
|
|
1725
|
+
disableEscapeKeyDown: e.bool,
|
|
1771
1726
|
/**
|
|
1772
1727
|
* If `true`, the dialog is full-screen.
|
|
1773
1728
|
* @default false
|
|
1774
1729
|
*/
|
|
1775
|
-
fullScreen:
|
|
1730
|
+
fullScreen: e.bool,
|
|
1776
1731
|
/**
|
|
1777
1732
|
* If `true`, the dialog stretches to `maxWidth`.
|
|
1778
1733
|
*
|
|
1779
1734
|
* Notice that the dialog width grow is limited by the default margin.
|
|
1780
1735
|
* @default false
|
|
1781
1736
|
*/
|
|
1782
|
-
fullWidth:
|
|
1737
|
+
fullWidth: e.bool,
|
|
1783
1738
|
/**
|
|
1784
1739
|
* Determine the max-width of the dialog.
|
|
1785
1740
|
* The dialog width grows with the size of the screen.
|
|
1786
1741
|
* Set to `false` to disable `maxWidth`.
|
|
1787
1742
|
* @default 'sm'
|
|
1788
1743
|
*/
|
|
1789
|
-
maxWidth:
|
|
1744
|
+
maxWidth: e.oneOfType([e.oneOf(["xs", "sm", "md", "lg", "xl", !1]), e.string]),
|
|
1790
1745
|
/**
|
|
1791
1746
|
* Callback fired when the backdrop is clicked.
|
|
1792
1747
|
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
1793
1748
|
*/
|
|
1794
|
-
onBackdropClick:
|
|
1749
|
+
onBackdropClick: e.func,
|
|
1795
1750
|
/**
|
|
1796
1751
|
* @ignore
|
|
1797
1752
|
*/
|
|
1798
|
-
onClick:
|
|
1753
|
+
onClick: e.func,
|
|
1799
1754
|
/**
|
|
1800
1755
|
* Callback fired when the component requests to be closed.
|
|
1801
1756
|
*
|
|
1802
1757
|
* @param {object} event The event source of the callback.
|
|
1803
1758
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
1804
1759
|
*/
|
|
1805
|
-
onClose:
|
|
1760
|
+
onClose: e.func,
|
|
1806
1761
|
/**
|
|
1807
1762
|
* If `true`, the component is shown.
|
|
1808
1763
|
*/
|
|
1809
|
-
open:
|
|
1764
|
+
open: e.bool.isRequired,
|
|
1810
1765
|
/**
|
|
1811
1766
|
* The component used to render the body of the dialog.
|
|
1812
1767
|
* @default Paper
|
|
1813
1768
|
*/
|
|
1814
|
-
PaperComponent:
|
|
1769
|
+
PaperComponent: e.elementType,
|
|
1815
1770
|
/**
|
|
1816
1771
|
* Props applied to the [`Paper`](/material-ui/api/paper/) element.
|
|
1817
1772
|
* @default {}
|
|
1818
1773
|
*/
|
|
1819
|
-
PaperProps:
|
|
1774
|
+
PaperProps: e.object,
|
|
1820
1775
|
/**
|
|
1821
1776
|
* Determine the container for scrolling the dialog.
|
|
1822
1777
|
* @default 'paper'
|
|
1823
1778
|
*/
|
|
1824
|
-
scroll:
|
|
1779
|
+
scroll: e.oneOf(["body", "paper"]),
|
|
1825
1780
|
/**
|
|
1826
1781
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1827
1782
|
*/
|
|
1828
|
-
sx:
|
|
1783
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1829
1784
|
/**
|
|
1830
1785
|
* The component used for the transition.
|
|
1831
1786
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
1832
1787
|
* @default Fade
|
|
1833
1788
|
*/
|
|
1834
|
-
TransitionComponent:
|
|
1789
|
+
TransitionComponent: e.elementType,
|
|
1835
1790
|
/**
|
|
1836
1791
|
* The duration for the transition, in milliseconds.
|
|
1837
1792
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -1840,41 +1795,41 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
1840
1795
|
* exit: theme.transitions.duration.leavingScreen,
|
|
1841
1796
|
* }
|
|
1842
1797
|
*/
|
|
1843
|
-
transitionDuration:
|
|
1844
|
-
appear:
|
|
1845
|
-
enter:
|
|
1846
|
-
exit:
|
|
1798
|
+
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
1799
|
+
appear: e.number,
|
|
1800
|
+
enter: e.number,
|
|
1801
|
+
exit: e.number
|
|
1847
1802
|
})]),
|
|
1848
1803
|
/**
|
|
1849
1804
|
* Props applied to the transition element.
|
|
1850
1805
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
1851
1806
|
*/
|
|
1852
|
-
TransitionProps:
|
|
1807
|
+
TransitionProps: e.object
|
|
1853
1808
|
});
|
|
1854
|
-
function
|
|
1855
|
-
return
|
|
1809
|
+
function je(o) {
|
|
1810
|
+
return H("MuiDialogActions", o);
|
|
1856
1811
|
}
|
|
1857
|
-
|
|
1858
|
-
const
|
|
1812
|
+
U("MuiDialogActions", ["root", "spacing"]);
|
|
1813
|
+
const Ve = ["className", "disableSpacing"], Ue = (o) => {
|
|
1859
1814
|
const {
|
|
1860
|
-
classes:
|
|
1815
|
+
classes: n,
|
|
1861
1816
|
disableSpacing: t
|
|
1862
1817
|
} = o;
|
|
1863
1818
|
return G({
|
|
1864
1819
|
root: ["root", !t && "spacing"]
|
|
1865
|
-
},
|
|
1866
|
-
},
|
|
1820
|
+
}, je, n);
|
|
1821
|
+
}, He = _("div", {
|
|
1867
1822
|
name: "MuiDialogActions",
|
|
1868
1823
|
slot: "Root",
|
|
1869
|
-
overridesResolver: (o,
|
|
1824
|
+
overridesResolver: (o, n) => {
|
|
1870
1825
|
const {
|
|
1871
1826
|
ownerState: t
|
|
1872
1827
|
} = o;
|
|
1873
|
-
return [
|
|
1828
|
+
return [n.root, !t.disableSpacing && n.spacing];
|
|
1874
1829
|
}
|
|
1875
1830
|
})(({
|
|
1876
1831
|
ownerState: o
|
|
1877
|
-
}) =>
|
|
1832
|
+
}) => d({
|
|
1878
1833
|
display: "flex",
|
|
1879
1834
|
alignItems: "center",
|
|
1880
1835
|
padding: 8,
|
|
@@ -1884,23 +1839,23 @@ const Ue = ["className", "disableSpacing"], Ke = (o) => {
|
|
|
1884
1839
|
"& > :not(style) ~ :not(style)": {
|
|
1885
1840
|
marginLeft: 8
|
|
1886
1841
|
}
|
|
1887
|
-
})),
|
|
1842
|
+
})), Ke = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
1888
1843
|
const r = Y({
|
|
1889
|
-
props:
|
|
1844
|
+
props: n,
|
|
1890
1845
|
name: "MuiDialogActions"
|
|
1891
1846
|
}), {
|
|
1892
1847
|
className: s,
|
|
1893
1848
|
disableSpacing: i = !1
|
|
1894
|
-
} = r, a = j(r,
|
|
1849
|
+
} = r, a = j(r, Ve), l = d({}, r, {
|
|
1895
1850
|
disableSpacing: i
|
|
1896
|
-
}),
|
|
1897
|
-
return /* @__PURE__ */ N(
|
|
1898
|
-
className:
|
|
1899
|
-
ownerState:
|
|
1851
|
+
}), u = Ue(l);
|
|
1852
|
+
return /* @__PURE__ */ N(He, d({
|
|
1853
|
+
className: L(u.root, s),
|
|
1854
|
+
ownerState: l,
|
|
1900
1855
|
ref: t
|
|
1901
1856
|
}, a));
|
|
1902
1857
|
});
|
|
1903
|
-
process.env.NODE_ENV !== "production" && (
|
|
1858
|
+
process.env.NODE_ENV !== "production" && (Ke.propTypes = {
|
|
1904
1859
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1905
1860
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1906
1861
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1908,83 +1863,83 @@ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
|
1908
1863
|
/**
|
|
1909
1864
|
* The content of the component.
|
|
1910
1865
|
*/
|
|
1911
|
-
children:
|
|
1866
|
+
children: e.node,
|
|
1912
1867
|
/**
|
|
1913
1868
|
* Override or extend the styles applied to the component.
|
|
1914
1869
|
*/
|
|
1915
|
-
classes:
|
|
1870
|
+
classes: e.object,
|
|
1916
1871
|
/**
|
|
1917
1872
|
* @ignore
|
|
1918
1873
|
*/
|
|
1919
|
-
className:
|
|
1874
|
+
className: e.string,
|
|
1920
1875
|
/**
|
|
1921
1876
|
* If `true`, the actions do not have additional margin.
|
|
1922
1877
|
* @default false
|
|
1923
1878
|
*/
|
|
1924
|
-
disableSpacing:
|
|
1879
|
+
disableSpacing: e.bool,
|
|
1925
1880
|
/**
|
|
1926
1881
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1927
1882
|
*/
|
|
1928
|
-
sx:
|
|
1883
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1929
1884
|
});
|
|
1930
|
-
function
|
|
1931
|
-
return
|
|
1885
|
+
function qe(o) {
|
|
1886
|
+
return H("MuiDialogContent", o);
|
|
1932
1887
|
}
|
|
1933
|
-
|
|
1934
|
-
function
|
|
1935
|
-
return
|
|
1888
|
+
U("MuiDialogContent", ["root", "dividers"]);
|
|
1889
|
+
function bn(o) {
|
|
1890
|
+
return H("MuiDialogTitle", o);
|
|
1936
1891
|
}
|
|
1937
|
-
const
|
|
1892
|
+
const Ye = U("MuiDialogTitle", ["root"]), Ge = ["className", "dividers"], Xe = (o) => {
|
|
1938
1893
|
const {
|
|
1939
|
-
classes:
|
|
1894
|
+
classes: n,
|
|
1940
1895
|
dividers: t
|
|
1941
1896
|
} = o;
|
|
1942
1897
|
return G({
|
|
1943
1898
|
root: ["root", t && "dividers"]
|
|
1944
|
-
},
|
|
1945
|
-
},
|
|
1899
|
+
}, qe, n);
|
|
1900
|
+
}, Je = _("div", {
|
|
1946
1901
|
name: "MuiDialogContent",
|
|
1947
1902
|
slot: "Root",
|
|
1948
|
-
overridesResolver: (o,
|
|
1903
|
+
overridesResolver: (o, n) => {
|
|
1949
1904
|
const {
|
|
1950
1905
|
ownerState: t
|
|
1951
1906
|
} = o;
|
|
1952
|
-
return [
|
|
1907
|
+
return [n.root, t.dividers && n.dividers];
|
|
1953
1908
|
}
|
|
1954
1909
|
})(({
|
|
1955
1910
|
theme: o,
|
|
1956
|
-
ownerState:
|
|
1957
|
-
}) =>
|
|
1911
|
+
ownerState: n
|
|
1912
|
+
}) => d({
|
|
1958
1913
|
flex: "1 1 auto",
|
|
1959
1914
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
1960
1915
|
WebkitOverflowScrolling: "touch",
|
|
1961
1916
|
overflowY: "auto",
|
|
1962
1917
|
padding: "20px 24px"
|
|
1963
|
-
},
|
|
1918
|
+
}, n.dividers ? {
|
|
1964
1919
|
padding: "16px 24px",
|
|
1965
1920
|
borderTop: `1px solid ${(o.vars || o).palette.divider}`,
|
|
1966
1921
|
borderBottom: `1px solid ${(o.vars || o).palette.divider}`
|
|
1967
1922
|
} : {
|
|
1968
|
-
[`.${
|
|
1923
|
+
[`.${Ye.root} + &`]: {
|
|
1969
1924
|
paddingTop: 0
|
|
1970
1925
|
}
|
|
1971
|
-
})),
|
|
1926
|
+
})), Qe = /* @__PURE__ */ c.forwardRef(function(n, t) {
|
|
1972
1927
|
const r = Y({
|
|
1973
|
-
props:
|
|
1928
|
+
props: n,
|
|
1974
1929
|
name: "MuiDialogContent"
|
|
1975
1930
|
}), {
|
|
1976
1931
|
className: s,
|
|
1977
1932
|
dividers: i = !1
|
|
1978
|
-
} = r, a = j(r,
|
|
1933
|
+
} = r, a = j(r, Ge), l = d({}, r, {
|
|
1979
1934
|
dividers: i
|
|
1980
|
-
}),
|
|
1981
|
-
return /* @__PURE__ */ N(
|
|
1982
|
-
className:
|
|
1983
|
-
ownerState:
|
|
1935
|
+
}), u = Xe(l);
|
|
1936
|
+
return /* @__PURE__ */ N(Je, d({
|
|
1937
|
+
className: L(u.root, s),
|
|
1938
|
+
ownerState: l,
|
|
1984
1939
|
ref: t
|
|
1985
1940
|
}, a));
|
|
1986
1941
|
});
|
|
1987
|
-
process.env.NODE_ENV !== "production" && (
|
|
1942
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
1988
1943
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1989
1944
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1990
1945
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1992,34 +1947,36 @@ process.env.NODE_ENV !== "production" && (on.propTypes = {
|
|
|
1992
1947
|
/**
|
|
1993
1948
|
* The content of the component.
|
|
1994
1949
|
*/
|
|
1995
|
-
children:
|
|
1950
|
+
children: e.node,
|
|
1996
1951
|
/**
|
|
1997
1952
|
* Override or extend the styles applied to the component.
|
|
1998
1953
|
*/
|
|
1999
|
-
classes:
|
|
1954
|
+
classes: e.object,
|
|
2000
1955
|
/**
|
|
2001
1956
|
* @ignore
|
|
2002
1957
|
*/
|
|
2003
|
-
className:
|
|
1958
|
+
className: e.string,
|
|
2004
1959
|
/**
|
|
2005
1960
|
* Display the top and bottom dividers.
|
|
2006
1961
|
* @default false
|
|
2007
1962
|
*/
|
|
2008
|
-
dividers:
|
|
1963
|
+
dividers: e.bool,
|
|
2009
1964
|
/**
|
|
2010
1965
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2011
1966
|
*/
|
|
2012
|
-
sx:
|
|
1967
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
2013
1968
|
});
|
|
2014
1969
|
export {
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
1970
|
+
se as B,
|
|
1971
|
+
Le as D,
|
|
1972
|
+
fo as F,
|
|
1973
|
+
Oo as H,
|
|
1974
|
+
$o as M,
|
|
1975
|
+
Qe as a,
|
|
1976
|
+
Ke as b,
|
|
1977
|
+
Wo as c,
|
|
1978
|
+
Qo as d,
|
|
1979
|
+
lo as e,
|
|
1980
|
+
bn as g,
|
|
1981
|
+
ko as u
|
|
2025
1982
|
};
|