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