@atipicus/mrs-ui 1.0.0 → 1.0.2
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/DatePicker-BKPeAHBW.mjs +25 -0
- package/dist/DatePicker-BKPeAHBW.mjs.map +1 -0
- package/dist/DatePicker-Du7BnvWs.js +24 -0
- package/dist/DatePicker-Du7BnvWs.js.map +1 -0
- package/dist/DateTimePicker-Cj0NPhiR.js +26 -0
- package/dist/DateTimePicker-Cj0NPhiR.js.map +1 -0
- package/dist/DateTimePicker-Xho8h3ww.mjs +27 -0
- package/dist/DateTimePicker-Xho8h3ww.mjs.map +1 -0
- package/dist/Dialog-CTl9ynAU.js +34 -0
- package/dist/Dialog-CTl9ynAU.js.map +1 -0
- package/dist/Dialog-Tfym7LkJ.mjs +35 -0
- package/dist/Dialog-Tfym7LkJ.mjs.map +1 -0
- package/dist/Drawer-9nL7gecl.mjs +53 -0
- package/dist/Drawer-9nL7gecl.mjs.map +1 -0
- package/dist/Drawer-Cs8bfNKk.js +52 -0
- package/dist/Drawer-Cs8bfNKk.js.map +1 -0
- package/dist/Table-BWJUQgDY.js +87 -0
- package/dist/Table-BWJUQgDY.js.map +1 -0
- package/dist/Table-BrEk_oGh.mjs +88 -0
- package/dist/Table-BrEk_oGh.mjs.map +1 -0
- package/dist/TimePicker-BCpPRTJI.js +24 -0
- package/dist/TimePicker-BCpPRTJI.js.map +1 -0
- package/dist/TimePicker-Bt5plyjC.mjs +25 -0
- package/dist/TimePicker-Bt5plyjC.mjs.map +1 -0
- package/dist/Timeline-BPdic0I4.mjs +59 -0
- package/dist/Timeline-BPdic0I4.mjs.map +1 -0
- package/dist/Timeline-BzDR_6ve.js +58 -0
- package/dist/Timeline-BzDR_6ve.js.map +1 -0
- package/dist/components/atoms/TextField/TextField.types.d.ts +1 -1
- package/dist/components/atoms/TextField/TextField.types.d.ts.map +1 -1
- package/dist/index--v2dNPpd.js +11 -0
- package/dist/index--v2dNPpd.js.map +1 -0
- package/dist/index-B4_KKxHQ.mjs +6 -0
- package/dist/index-B4_KKxHQ.mjs.map +1 -0
- package/dist/index-Bp_39Kmf.js +12 -0
- package/dist/index-Bp_39Kmf.js.map +1 -0
- package/dist/index-C4N6hqG7.mjs +14 -0
- package/dist/index-C4N6hqG7.mjs.map +1 -0
- package/dist/index-C4a5SkEO.js +6 -0
- package/dist/index-C4a5SkEO.js.map +1 -0
- package/dist/index-CBDmTLHS.mjs +11 -0
- package/dist/index-CBDmTLHS.mjs.map +1 -0
- package/dist/index-CLLVDdFI.mjs +12 -0
- package/dist/index-CLLVDdFI.mjs.map +1 -0
- package/dist/index-CxB9Lb7L.mjs +6 -0
- package/dist/index-CxB9Lb7L.mjs.map +1 -0
- package/dist/index-DGbzI3ul.mjs +6 -0
- package/dist/index-DGbzI3ul.mjs.map +1 -0
- package/dist/index-DQLiGYRv.js +6 -0
- package/dist/index-DQLiGYRv.js.map +1 -0
- package/dist/index-DgpKiomn.js +6 -0
- package/dist/index-DgpKiomn.js.map +1 -0
- package/dist/index-DrHcCXwi.js +6 -0
- package/dist/index-DrHcCXwi.js.map +1 -0
- package/dist/index-xewrdUFS.js +14 -0
- package/dist/index-xewrdUFS.js.map +1 -0
- package/dist/index-zqX2ktfd.mjs +6 -0
- package/dist/index-zqX2ktfd.mjs.map +1 -0
- package/dist/index.js +1603 -18703
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1605 -18692
- package/dist/index.mjs.map +1 -1
- package/dist/lazy.js +23 -23
- package/dist/lazy.js.map +1 -1
- package/dist/lazy.mjs +23 -23
- package/dist/lazy.mjs.map +1 -1
- package/package.json +2 -1
- package/dist/data-display-BT3VQcEN.mjs +0 -9920
- package/dist/data-display-BT3VQcEN.mjs.map +0 -1
- package/dist/data-display-DKx97xmI.js +0 -9935
- package/dist/data-display-DKx97xmI.js.map +0 -1
- package/dist/date-pickers-BMsJzi64.js +0 -34187
- package/dist/date-pickers-BMsJzi64.js.map +0 -1
- package/dist/date-pickers-CqiDeUt4.mjs +0 -34172
- package/dist/date-pickers-CqiDeUt4.mjs.map +0 -1
- package/dist/overlays-Cx39IOTG.js +0 -2380
- package/dist/overlays-Cx39IOTG.js.map +0 -1
- package/dist/overlays-a3qo0vDF.mjs +0 -2365
- package/dist/overlays-a3qo0vDF.mjs.map +0 -1
|
@@ -1,2380 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const datePickers = require("./date-pickers-BMsJzi64.js");
|
|
3
|
-
const React = require("react");
|
|
4
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const dataDisplay = require("./data-display-DKx97xmI.js");
|
|
6
|
-
const material = require("@mui/material");
|
|
7
|
-
function _interopNamespaceDefault(e) {
|
|
8
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
-
if (e) {
|
|
10
|
-
for (const k in e) {
|
|
11
|
-
if (k !== "default") {
|
|
12
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: () => e[k]
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
n.default = e;
|
|
21
|
-
return Object.freeze(n);
|
|
22
|
-
}
|
|
23
|
-
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
24
|
-
const boxClasses = dataDisplay.generateUtilityClasses("MuiBox", ["root"]);
|
|
25
|
-
const defaultTheme = dataDisplay.createTheme();
|
|
26
|
-
const Box = dataDisplay.createBox({
|
|
27
|
-
themeId: dataDisplay.THEME_ID,
|
|
28
|
-
defaultTheme,
|
|
29
|
-
defaultClassName: boxClasses.root,
|
|
30
|
-
generateClassName: dataDisplay.ClassNameGenerator.generate
|
|
31
|
-
});
|
|
32
|
-
process.env.NODE_ENV !== "production" ? Box.propTypes = {
|
|
33
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
34
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
35
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
36
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
37
|
-
/**
|
|
38
|
-
* @ignore
|
|
39
|
-
*/
|
|
40
|
-
children: dataDisplay.PropTypes.node,
|
|
41
|
-
/**
|
|
42
|
-
* The component used for the root node.
|
|
43
|
-
* Either a string to use a HTML element or a component.
|
|
44
|
-
*/
|
|
45
|
-
component: dataDisplay.PropTypes.elementType,
|
|
46
|
-
/**
|
|
47
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48
|
-
*/
|
|
49
|
-
sx: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.arrayOf(dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object, dataDisplay.PropTypes.bool])), dataDisplay.PropTypes.func, dataDisplay.PropTypes.object])
|
|
50
|
-
} : void 0;
|
|
51
|
-
const MaterialSymbol = React.forwardRef(
|
|
52
|
-
({
|
|
53
|
-
icon,
|
|
54
|
-
size = "medium",
|
|
55
|
-
fill = 0,
|
|
56
|
-
weight = 300,
|
|
57
|
-
grade = 100,
|
|
58
|
-
color,
|
|
59
|
-
className = "",
|
|
60
|
-
sx,
|
|
61
|
-
ariaLabel,
|
|
62
|
-
ariaHidden = false,
|
|
63
|
-
onClick,
|
|
64
|
-
...props
|
|
65
|
-
}, ref) => {
|
|
66
|
-
let fontSize;
|
|
67
|
-
let opticalSize;
|
|
68
|
-
if (size === "inherit") {
|
|
69
|
-
fontSize = "inherit";
|
|
70
|
-
opticalSize = 24;
|
|
71
|
-
} else if (typeof size === "number") {
|
|
72
|
-
fontSize = size;
|
|
73
|
-
opticalSize = size;
|
|
74
|
-
} else {
|
|
75
|
-
const sizeMap = {
|
|
76
|
-
small: { fontSize: 20, opsz: 20 },
|
|
77
|
-
medium: { fontSize: 24, opsz: 24 },
|
|
78
|
-
large: { fontSize: 36, opsz: 40 }
|
|
79
|
-
};
|
|
80
|
-
fontSize = sizeMap[size].fontSize;
|
|
81
|
-
opticalSize = sizeMap[size].opsz;
|
|
82
|
-
}
|
|
83
|
-
const fontVariationSettings = `'FILL' ${fill}, 'wght' ${weight}, 'GRAD' ${grade}, 'opsz' ${opticalSize}`;
|
|
84
|
-
const classNames = ["material-symbols-rounded", className].filter(Boolean).join(" ");
|
|
85
|
-
const isClickable = Boolean(onClick);
|
|
86
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
87
|
-
material.Box,
|
|
88
|
-
{
|
|
89
|
-
ref,
|
|
90
|
-
component: "span",
|
|
91
|
-
className: classNames,
|
|
92
|
-
"aria-label": ariaLabel,
|
|
93
|
-
"aria-hidden": ariaHidden,
|
|
94
|
-
role: ariaLabel && !ariaHidden ? "img" : void 0,
|
|
95
|
-
onClick,
|
|
96
|
-
style: {
|
|
97
|
-
// Use inline style for fontVariationSettings to ensure it renders properly
|
|
98
|
-
fontVariationSettings
|
|
99
|
-
},
|
|
100
|
-
sx: {
|
|
101
|
-
fontSize: typeof fontSize === "number" ? `${fontSize}px` : fontSize,
|
|
102
|
-
color: color || "inherit",
|
|
103
|
-
userSelect: "none",
|
|
104
|
-
cursor: isClickable ? "pointer" : "inherit",
|
|
105
|
-
...isClickable && {
|
|
106
|
-
transition: "opacity 0.2s ease-in-out",
|
|
107
|
-
"&:hover": {
|
|
108
|
-
opacity: 0.7
|
|
109
|
-
},
|
|
110
|
-
"&:active": {
|
|
111
|
-
opacity: 0.5
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
...sx
|
|
115
|
-
},
|
|
116
|
-
...props,
|
|
117
|
-
children: icon
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
);
|
|
122
|
-
MaterialSymbol.displayName = "MaterialSymbol";
|
|
123
|
-
function getCollapseUtilityClass(slot) {
|
|
124
|
-
return dataDisplay.generateUtilityClass("MuiCollapse", slot);
|
|
125
|
-
}
|
|
126
|
-
dataDisplay.generateUtilityClasses("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
127
|
-
const useUtilityClasses$6 = (ownerState) => {
|
|
128
|
-
const {
|
|
129
|
-
orientation,
|
|
130
|
-
classes
|
|
131
|
-
} = ownerState;
|
|
132
|
-
const slots = {
|
|
133
|
-
root: ["root", `${orientation}`],
|
|
134
|
-
entered: ["entered"],
|
|
135
|
-
hidden: ["hidden"],
|
|
136
|
-
wrapper: ["wrapper", `${orientation}`],
|
|
137
|
-
wrapperInner: ["wrapperInner", `${orientation}`]
|
|
138
|
-
};
|
|
139
|
-
return dataDisplay.composeClasses(slots, getCollapseUtilityClass, classes);
|
|
140
|
-
};
|
|
141
|
-
const CollapseRoot = dataDisplay.styled("div", {
|
|
142
|
-
name: "MuiCollapse",
|
|
143
|
-
slot: "Root",
|
|
144
|
-
overridesResolver: (props, styles) => {
|
|
145
|
-
const {
|
|
146
|
-
ownerState
|
|
147
|
-
} = props;
|
|
148
|
-
return [styles.root, styles[ownerState.orientation], ownerState.state === "entered" && styles.entered, ownerState.state === "exited" && !ownerState.in && ownerState.collapsedSize === "0px" && styles.hidden];
|
|
149
|
-
}
|
|
150
|
-
})(dataDisplay.memoTheme(({
|
|
151
|
-
theme
|
|
152
|
-
}) => ({
|
|
153
|
-
height: 0,
|
|
154
|
-
overflow: "hidden",
|
|
155
|
-
transition: theme.transitions.create("height"),
|
|
156
|
-
variants: [{
|
|
157
|
-
props: {
|
|
158
|
-
orientation: "horizontal"
|
|
159
|
-
},
|
|
160
|
-
style: {
|
|
161
|
-
height: "auto",
|
|
162
|
-
width: 0,
|
|
163
|
-
transition: theme.transitions.create("width")
|
|
164
|
-
}
|
|
165
|
-
}, {
|
|
166
|
-
props: {
|
|
167
|
-
state: "entered"
|
|
168
|
-
},
|
|
169
|
-
style: {
|
|
170
|
-
height: "auto",
|
|
171
|
-
overflow: "visible"
|
|
172
|
-
}
|
|
173
|
-
}, {
|
|
174
|
-
props: {
|
|
175
|
-
state: "entered",
|
|
176
|
-
orientation: "horizontal"
|
|
177
|
-
},
|
|
178
|
-
style: {
|
|
179
|
-
width: "auto"
|
|
180
|
-
}
|
|
181
|
-
}, {
|
|
182
|
-
props: ({
|
|
183
|
-
ownerState
|
|
184
|
-
}) => ownerState.state === "exited" && !ownerState.in && ownerState.collapsedSize === "0px",
|
|
185
|
-
style: {
|
|
186
|
-
visibility: "hidden"
|
|
187
|
-
}
|
|
188
|
-
}]
|
|
189
|
-
})));
|
|
190
|
-
const CollapseWrapper = dataDisplay.styled("div", {
|
|
191
|
-
name: "MuiCollapse",
|
|
192
|
-
slot: "Wrapper",
|
|
193
|
-
overridesResolver: (props, styles) => styles.wrapper
|
|
194
|
-
})({
|
|
195
|
-
// Hack to get children with a negative margin to not falsify the height computation.
|
|
196
|
-
display: "flex",
|
|
197
|
-
width: "100%",
|
|
198
|
-
variants: [{
|
|
199
|
-
props: {
|
|
200
|
-
orientation: "horizontal"
|
|
201
|
-
},
|
|
202
|
-
style: {
|
|
203
|
-
width: "auto",
|
|
204
|
-
height: "100%"
|
|
205
|
-
}
|
|
206
|
-
}]
|
|
207
|
-
});
|
|
208
|
-
const CollapseWrapperInner = dataDisplay.styled("div", {
|
|
209
|
-
name: "MuiCollapse",
|
|
210
|
-
slot: "WrapperInner",
|
|
211
|
-
overridesResolver: (props, styles) => styles.wrapperInner
|
|
212
|
-
})({
|
|
213
|
-
width: "100%",
|
|
214
|
-
variants: [{
|
|
215
|
-
props: {
|
|
216
|
-
orientation: "horizontal"
|
|
217
|
-
},
|
|
218
|
-
style: {
|
|
219
|
-
width: "auto",
|
|
220
|
-
height: "100%"
|
|
221
|
-
}
|
|
222
|
-
}]
|
|
223
|
-
});
|
|
224
|
-
const Collapse = /* @__PURE__ */ React__namespace.forwardRef(function Collapse2(inProps, ref) {
|
|
225
|
-
const props = dataDisplay.useDefaultProps({
|
|
226
|
-
props: inProps,
|
|
227
|
-
name: "MuiCollapse"
|
|
228
|
-
});
|
|
229
|
-
const {
|
|
230
|
-
addEndListener,
|
|
231
|
-
children,
|
|
232
|
-
className,
|
|
233
|
-
collapsedSize: collapsedSizeProp = "0px",
|
|
234
|
-
component,
|
|
235
|
-
easing,
|
|
236
|
-
in: inProp,
|
|
237
|
-
onEnter,
|
|
238
|
-
onEntered,
|
|
239
|
-
onEntering,
|
|
240
|
-
onExit,
|
|
241
|
-
onExited,
|
|
242
|
-
onExiting,
|
|
243
|
-
orientation = "vertical",
|
|
244
|
-
style,
|
|
245
|
-
timeout = dataDisplay.duration.standard,
|
|
246
|
-
// eslint-disable-next-line react/prop-types
|
|
247
|
-
TransitionComponent = datePickers.Transition,
|
|
248
|
-
...other
|
|
249
|
-
} = props;
|
|
250
|
-
const ownerState = {
|
|
251
|
-
...props,
|
|
252
|
-
orientation,
|
|
253
|
-
collapsedSize: collapsedSizeProp
|
|
254
|
-
};
|
|
255
|
-
const classes = useUtilityClasses$6(ownerState);
|
|
256
|
-
const theme = dataDisplay.useTheme();
|
|
257
|
-
const timer = dataDisplay.useTimeout();
|
|
258
|
-
const wrapperRef = React__namespace.useRef(null);
|
|
259
|
-
const autoTransitionDuration = React__namespace.useRef();
|
|
260
|
-
const collapsedSize = typeof collapsedSizeProp === "number" ? `${collapsedSizeProp}px` : collapsedSizeProp;
|
|
261
|
-
const isHorizontal2 = orientation === "horizontal";
|
|
262
|
-
const size = isHorizontal2 ? "width" : "height";
|
|
263
|
-
const nodeRef = React__namespace.useRef(null);
|
|
264
|
-
const handleRef = dataDisplay.useForkRef(ref, nodeRef);
|
|
265
|
-
const normalizedTransitionCallback = (callback) => (maybeIsAppearing) => {
|
|
266
|
-
if (callback) {
|
|
267
|
-
const node = nodeRef.current;
|
|
268
|
-
if (maybeIsAppearing === void 0) {
|
|
269
|
-
callback(node);
|
|
270
|
-
} else {
|
|
271
|
-
callback(node, maybeIsAppearing);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal2 ? "clientWidth" : "clientHeight"] : 0;
|
|
276
|
-
const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
|
|
277
|
-
if (wrapperRef.current && isHorizontal2) {
|
|
278
|
-
wrapperRef.current.style.position = "absolute";
|
|
279
|
-
}
|
|
280
|
-
node.style[size] = collapsedSize;
|
|
281
|
-
if (onEnter) {
|
|
282
|
-
onEnter(node, isAppearing);
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
|
|
286
|
-
const wrapperSize = getWrapperSize();
|
|
287
|
-
if (wrapperRef.current && isHorizontal2) {
|
|
288
|
-
wrapperRef.current.style.position = "";
|
|
289
|
-
}
|
|
290
|
-
const {
|
|
291
|
-
duration: transitionDuration,
|
|
292
|
-
easing: transitionTimingFunction
|
|
293
|
-
} = datePickers.getTransitionProps({
|
|
294
|
-
style,
|
|
295
|
-
timeout,
|
|
296
|
-
easing
|
|
297
|
-
}, {
|
|
298
|
-
mode: "enter"
|
|
299
|
-
});
|
|
300
|
-
if (timeout === "auto") {
|
|
301
|
-
const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);
|
|
302
|
-
node.style.transitionDuration = `${duration2}ms`;
|
|
303
|
-
autoTransitionDuration.current = duration2;
|
|
304
|
-
} else {
|
|
305
|
-
node.style.transitionDuration = typeof transitionDuration === "string" ? transitionDuration : `${transitionDuration}ms`;
|
|
306
|
-
}
|
|
307
|
-
node.style[size] = `${wrapperSize}px`;
|
|
308
|
-
node.style.transitionTimingFunction = transitionTimingFunction;
|
|
309
|
-
if (onEntering) {
|
|
310
|
-
onEntering(node, isAppearing);
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
const handleEntered = normalizedTransitionCallback((node, isAppearing) => {
|
|
314
|
-
node.style[size] = "auto";
|
|
315
|
-
if (onEntered) {
|
|
316
|
-
onEntered(node, isAppearing);
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
const handleExit = normalizedTransitionCallback((node) => {
|
|
320
|
-
node.style[size] = `${getWrapperSize()}px`;
|
|
321
|
-
if (onExit) {
|
|
322
|
-
onExit(node);
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
const handleExited = normalizedTransitionCallback(onExited);
|
|
326
|
-
const handleExiting = normalizedTransitionCallback((node) => {
|
|
327
|
-
const wrapperSize = getWrapperSize();
|
|
328
|
-
const {
|
|
329
|
-
duration: transitionDuration,
|
|
330
|
-
easing: transitionTimingFunction
|
|
331
|
-
} = datePickers.getTransitionProps({
|
|
332
|
-
style,
|
|
333
|
-
timeout,
|
|
334
|
-
easing
|
|
335
|
-
}, {
|
|
336
|
-
mode: "exit"
|
|
337
|
-
});
|
|
338
|
-
if (timeout === "auto") {
|
|
339
|
-
const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);
|
|
340
|
-
node.style.transitionDuration = `${duration2}ms`;
|
|
341
|
-
autoTransitionDuration.current = duration2;
|
|
342
|
-
} else {
|
|
343
|
-
node.style.transitionDuration = typeof transitionDuration === "string" ? transitionDuration : `${transitionDuration}ms`;
|
|
344
|
-
}
|
|
345
|
-
node.style[size] = collapsedSize;
|
|
346
|
-
node.style.transitionTimingFunction = transitionTimingFunction;
|
|
347
|
-
if (onExiting) {
|
|
348
|
-
onExiting(node);
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
const handleAddEndListener = (next) => {
|
|
352
|
-
if (timeout === "auto") {
|
|
353
|
-
timer.start(autoTransitionDuration.current || 0, next);
|
|
354
|
-
}
|
|
355
|
-
if (addEndListener) {
|
|
356
|
-
addEndListener(nodeRef.current, next);
|
|
357
|
-
}
|
|
358
|
-
};
|
|
359
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TransitionComponent, {
|
|
360
|
-
in: inProp,
|
|
361
|
-
onEnter: handleEnter,
|
|
362
|
-
onEntered: handleEntered,
|
|
363
|
-
onEntering: handleEntering,
|
|
364
|
-
onExit: handleExit,
|
|
365
|
-
onExited: handleExited,
|
|
366
|
-
onExiting: handleExiting,
|
|
367
|
-
addEndListener: handleAddEndListener,
|
|
368
|
-
nodeRef,
|
|
369
|
-
timeout: timeout === "auto" ? null : timeout,
|
|
370
|
-
...other,
|
|
371
|
-
children: (state, {
|
|
372
|
-
ownerState: incomingOwnerState,
|
|
373
|
-
...restChildProps
|
|
374
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(CollapseRoot, {
|
|
375
|
-
as: component,
|
|
376
|
-
className: dataDisplay.clsx(classes.root, className, {
|
|
377
|
-
"entered": classes.entered,
|
|
378
|
-
"exited": !inProp && collapsedSize === "0px" && classes.hidden
|
|
379
|
-
}[state]),
|
|
380
|
-
style: {
|
|
381
|
-
[isHorizontal2 ? "minWidth" : "minHeight"]: collapsedSize,
|
|
382
|
-
...style
|
|
383
|
-
},
|
|
384
|
-
ref: handleRef,
|
|
385
|
-
ownerState: {
|
|
386
|
-
...ownerState,
|
|
387
|
-
state
|
|
388
|
-
},
|
|
389
|
-
...restChildProps,
|
|
390
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(CollapseWrapper, {
|
|
391
|
-
ownerState: {
|
|
392
|
-
...ownerState,
|
|
393
|
-
state
|
|
394
|
-
},
|
|
395
|
-
className: classes.wrapper,
|
|
396
|
-
ref: wrapperRef,
|
|
397
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(CollapseWrapperInner, {
|
|
398
|
-
ownerState: {
|
|
399
|
-
...ownerState,
|
|
400
|
-
state
|
|
401
|
-
},
|
|
402
|
-
className: classes.wrapperInner,
|
|
403
|
-
children
|
|
404
|
-
})
|
|
405
|
-
})
|
|
406
|
-
})
|
|
407
|
-
});
|
|
408
|
-
});
|
|
409
|
-
process.env.NODE_ENV !== "production" ? Collapse.propTypes = {
|
|
410
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
411
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
412
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
413
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
414
|
-
/**
|
|
415
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
416
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
417
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
418
|
-
*/
|
|
419
|
-
addEndListener: dataDisplay.PropTypes.func,
|
|
420
|
-
/**
|
|
421
|
-
* The content node to be collapsed.
|
|
422
|
-
*/
|
|
423
|
-
children: dataDisplay.PropTypes.node,
|
|
424
|
-
/**
|
|
425
|
-
* Override or extend the styles applied to the component.
|
|
426
|
-
*/
|
|
427
|
-
classes: dataDisplay.PropTypes.object,
|
|
428
|
-
/**
|
|
429
|
-
* @ignore
|
|
430
|
-
*/
|
|
431
|
-
className: dataDisplay.PropTypes.string,
|
|
432
|
-
/**
|
|
433
|
-
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
434
|
-
* @default '0px'
|
|
435
|
-
*/
|
|
436
|
-
collapsedSize: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.number, dataDisplay.PropTypes.string]),
|
|
437
|
-
/**
|
|
438
|
-
* The component used for the root node.
|
|
439
|
-
* Either a string to use a HTML element or a component.
|
|
440
|
-
*/
|
|
441
|
-
component: dataDisplay.elementTypeAcceptingRef,
|
|
442
|
-
/**
|
|
443
|
-
* The transition timing function.
|
|
444
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
445
|
-
*/
|
|
446
|
-
easing: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.shape({
|
|
447
|
-
enter: dataDisplay.PropTypes.string,
|
|
448
|
-
exit: dataDisplay.PropTypes.string
|
|
449
|
-
}), dataDisplay.PropTypes.string]),
|
|
450
|
-
/**
|
|
451
|
-
* If `true`, the component will transition in.
|
|
452
|
-
*/
|
|
453
|
-
in: dataDisplay.PropTypes.bool,
|
|
454
|
-
/**
|
|
455
|
-
* @ignore
|
|
456
|
-
*/
|
|
457
|
-
onEnter: dataDisplay.PropTypes.func,
|
|
458
|
-
/**
|
|
459
|
-
* @ignore
|
|
460
|
-
*/
|
|
461
|
-
onEntered: dataDisplay.PropTypes.func,
|
|
462
|
-
/**
|
|
463
|
-
* @ignore
|
|
464
|
-
*/
|
|
465
|
-
onEntering: dataDisplay.PropTypes.func,
|
|
466
|
-
/**
|
|
467
|
-
* @ignore
|
|
468
|
-
*/
|
|
469
|
-
onExit: dataDisplay.PropTypes.func,
|
|
470
|
-
/**
|
|
471
|
-
* @ignore
|
|
472
|
-
*/
|
|
473
|
-
onExited: dataDisplay.PropTypes.func,
|
|
474
|
-
/**
|
|
475
|
-
* @ignore
|
|
476
|
-
*/
|
|
477
|
-
onExiting: dataDisplay.PropTypes.func,
|
|
478
|
-
/**
|
|
479
|
-
* The transition orientation.
|
|
480
|
-
* @default 'vertical'
|
|
481
|
-
*/
|
|
482
|
-
orientation: dataDisplay.PropTypes.oneOf(["horizontal", "vertical"]),
|
|
483
|
-
/**
|
|
484
|
-
* @ignore
|
|
485
|
-
*/
|
|
486
|
-
style: dataDisplay.PropTypes.object,
|
|
487
|
-
/**
|
|
488
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
489
|
-
*/
|
|
490
|
-
sx: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.arrayOf(dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object, dataDisplay.PropTypes.bool])), dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
491
|
-
/**
|
|
492
|
-
* The duration for the transition, in milliseconds.
|
|
493
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
494
|
-
*
|
|
495
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
496
|
-
* @default duration.standard
|
|
497
|
-
*/
|
|
498
|
-
timeout: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.oneOf(["auto"]), dataDisplay.PropTypes.number, dataDisplay.PropTypes.shape({
|
|
499
|
-
appear: dataDisplay.PropTypes.number,
|
|
500
|
-
enter: dataDisplay.PropTypes.number,
|
|
501
|
-
exit: dataDisplay.PropTypes.number
|
|
502
|
-
})])
|
|
503
|
-
} : void 0;
|
|
504
|
-
if (Collapse) {
|
|
505
|
-
Collapse.muiSupportAuto = true;
|
|
506
|
-
}
|
|
507
|
-
function getDialogActionsUtilityClass(slot) {
|
|
508
|
-
return dataDisplay.generateUtilityClass("MuiDialogActions", slot);
|
|
509
|
-
}
|
|
510
|
-
dataDisplay.generateUtilityClasses("MuiDialogActions", ["root", "spacing"]);
|
|
511
|
-
const useUtilityClasses$5 = (ownerState) => {
|
|
512
|
-
const {
|
|
513
|
-
classes,
|
|
514
|
-
disableSpacing
|
|
515
|
-
} = ownerState;
|
|
516
|
-
const slots = {
|
|
517
|
-
root: ["root", !disableSpacing && "spacing"]
|
|
518
|
-
};
|
|
519
|
-
return dataDisplay.composeClasses(slots, getDialogActionsUtilityClass, classes);
|
|
520
|
-
};
|
|
521
|
-
const DialogActionsRoot = dataDisplay.styled("div", {
|
|
522
|
-
name: "MuiDialogActions",
|
|
523
|
-
slot: "Root",
|
|
524
|
-
overridesResolver: (props, styles) => {
|
|
525
|
-
const {
|
|
526
|
-
ownerState
|
|
527
|
-
} = props;
|
|
528
|
-
return [styles.root, !ownerState.disableSpacing && styles.spacing];
|
|
529
|
-
}
|
|
530
|
-
})({
|
|
531
|
-
display: "flex",
|
|
532
|
-
alignItems: "center",
|
|
533
|
-
padding: 8,
|
|
534
|
-
justifyContent: "flex-end",
|
|
535
|
-
flex: "0 0 auto",
|
|
536
|
-
variants: [{
|
|
537
|
-
props: ({
|
|
538
|
-
ownerState
|
|
539
|
-
}) => !ownerState.disableSpacing,
|
|
540
|
-
style: {
|
|
541
|
-
"& > :not(style) ~ :not(style)": {
|
|
542
|
-
marginLeft: 8
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}]
|
|
546
|
-
});
|
|
547
|
-
const DialogActions = /* @__PURE__ */ React__namespace.forwardRef(function DialogActions2(inProps, ref) {
|
|
548
|
-
const props = dataDisplay.useDefaultProps({
|
|
549
|
-
props: inProps,
|
|
550
|
-
name: "MuiDialogActions"
|
|
551
|
-
});
|
|
552
|
-
const {
|
|
553
|
-
className,
|
|
554
|
-
disableSpacing = false,
|
|
555
|
-
...other
|
|
556
|
-
} = props;
|
|
557
|
-
const ownerState = {
|
|
558
|
-
...props,
|
|
559
|
-
disableSpacing
|
|
560
|
-
};
|
|
561
|
-
const classes = useUtilityClasses$5(ownerState);
|
|
562
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DialogActionsRoot, {
|
|
563
|
-
className: dataDisplay.clsx(classes.root, className),
|
|
564
|
-
ownerState,
|
|
565
|
-
ref,
|
|
566
|
-
...other
|
|
567
|
-
});
|
|
568
|
-
});
|
|
569
|
-
process.env.NODE_ENV !== "production" ? DialogActions.propTypes = {
|
|
570
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
571
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
572
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
573
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
574
|
-
/**
|
|
575
|
-
* The content of the component.
|
|
576
|
-
*/
|
|
577
|
-
children: dataDisplay.PropTypes.node,
|
|
578
|
-
/**
|
|
579
|
-
* Override or extend the styles applied to the component.
|
|
580
|
-
*/
|
|
581
|
-
classes: dataDisplay.PropTypes.object,
|
|
582
|
-
/**
|
|
583
|
-
* @ignore
|
|
584
|
-
*/
|
|
585
|
-
className: dataDisplay.PropTypes.string,
|
|
586
|
-
/**
|
|
587
|
-
* If `true`, the actions do not have additional margin.
|
|
588
|
-
* @default false
|
|
589
|
-
*/
|
|
590
|
-
disableSpacing: dataDisplay.PropTypes.bool,
|
|
591
|
-
/**
|
|
592
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
593
|
-
*/
|
|
594
|
-
sx: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.arrayOf(dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object, dataDisplay.PropTypes.bool])), dataDisplay.PropTypes.func, dataDisplay.PropTypes.object])
|
|
595
|
-
} : void 0;
|
|
596
|
-
function getDialogContentUtilityClass(slot) {
|
|
597
|
-
return dataDisplay.generateUtilityClass("MuiDialogContent", slot);
|
|
598
|
-
}
|
|
599
|
-
dataDisplay.generateUtilityClasses("MuiDialogContent", ["root", "dividers"]);
|
|
600
|
-
function getDialogTitleUtilityClass(slot) {
|
|
601
|
-
return dataDisplay.generateUtilityClass("MuiDialogTitle", slot);
|
|
602
|
-
}
|
|
603
|
-
const dialogTitleClasses = dataDisplay.generateUtilityClasses("MuiDialogTitle", ["root"]);
|
|
604
|
-
const useUtilityClasses$4 = (ownerState) => {
|
|
605
|
-
const {
|
|
606
|
-
classes,
|
|
607
|
-
dividers
|
|
608
|
-
} = ownerState;
|
|
609
|
-
const slots = {
|
|
610
|
-
root: ["root", dividers && "dividers"]
|
|
611
|
-
};
|
|
612
|
-
return dataDisplay.composeClasses(slots, getDialogContentUtilityClass, classes);
|
|
613
|
-
};
|
|
614
|
-
const DialogContentRoot = dataDisplay.styled("div", {
|
|
615
|
-
name: "MuiDialogContent",
|
|
616
|
-
slot: "Root",
|
|
617
|
-
overridesResolver: (props, styles) => {
|
|
618
|
-
const {
|
|
619
|
-
ownerState
|
|
620
|
-
} = props;
|
|
621
|
-
return [styles.root, ownerState.dividers && styles.dividers];
|
|
622
|
-
}
|
|
623
|
-
})(dataDisplay.memoTheme(({
|
|
624
|
-
theme
|
|
625
|
-
}) => ({
|
|
626
|
-
flex: "1 1 auto",
|
|
627
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
628
|
-
WebkitOverflowScrolling: "touch",
|
|
629
|
-
overflowY: "auto",
|
|
630
|
-
padding: "20px 24px",
|
|
631
|
-
variants: [{
|
|
632
|
-
props: ({
|
|
633
|
-
ownerState
|
|
634
|
-
}) => ownerState.dividers,
|
|
635
|
-
style: {
|
|
636
|
-
padding: "16px 24px",
|
|
637
|
-
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
638
|
-
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
639
|
-
}
|
|
640
|
-
}, {
|
|
641
|
-
props: ({
|
|
642
|
-
ownerState
|
|
643
|
-
}) => !ownerState.dividers,
|
|
644
|
-
style: {
|
|
645
|
-
[`.${dialogTitleClasses.root} + &`]: {
|
|
646
|
-
paddingTop: 0
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}]
|
|
650
|
-
})));
|
|
651
|
-
const DialogContent = /* @__PURE__ */ React__namespace.forwardRef(function DialogContent2(inProps, ref) {
|
|
652
|
-
const props = dataDisplay.useDefaultProps({
|
|
653
|
-
props: inProps,
|
|
654
|
-
name: "MuiDialogContent"
|
|
655
|
-
});
|
|
656
|
-
const {
|
|
657
|
-
className,
|
|
658
|
-
dividers = false,
|
|
659
|
-
...other
|
|
660
|
-
} = props;
|
|
661
|
-
const ownerState = {
|
|
662
|
-
...props,
|
|
663
|
-
dividers
|
|
664
|
-
};
|
|
665
|
-
const classes = useUtilityClasses$4(ownerState);
|
|
666
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DialogContentRoot, {
|
|
667
|
-
className: dataDisplay.clsx(classes.root, className),
|
|
668
|
-
ownerState,
|
|
669
|
-
ref,
|
|
670
|
-
...other
|
|
671
|
-
});
|
|
672
|
-
});
|
|
673
|
-
process.env.NODE_ENV !== "production" ? DialogContent.propTypes = {
|
|
674
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
675
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
676
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
677
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
678
|
-
/**
|
|
679
|
-
* The content of the component.
|
|
680
|
-
*/
|
|
681
|
-
children: dataDisplay.PropTypes.node,
|
|
682
|
-
/**
|
|
683
|
-
* Override or extend the styles applied to the component.
|
|
684
|
-
*/
|
|
685
|
-
classes: dataDisplay.PropTypes.object,
|
|
686
|
-
/**
|
|
687
|
-
* @ignore
|
|
688
|
-
*/
|
|
689
|
-
className: dataDisplay.PropTypes.string,
|
|
690
|
-
/**
|
|
691
|
-
* Display the top and bottom dividers.
|
|
692
|
-
* @default false
|
|
693
|
-
*/
|
|
694
|
-
dividers: dataDisplay.PropTypes.bool,
|
|
695
|
-
/**
|
|
696
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
697
|
-
*/
|
|
698
|
-
sx: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.arrayOf(dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object, dataDisplay.PropTypes.bool])), dataDisplay.PropTypes.func, dataDisplay.PropTypes.object])
|
|
699
|
-
} : void 0;
|
|
700
|
-
function getDialogUtilityClass(slot) {
|
|
701
|
-
return dataDisplay.generateUtilityClass("MuiDialog", slot);
|
|
702
|
-
}
|
|
703
|
-
const dialogClasses = dataDisplay.generateUtilityClasses("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]);
|
|
704
|
-
const DialogContext = /* @__PURE__ */ React__namespace.createContext({});
|
|
705
|
-
if (process.env.NODE_ENV !== "production") {
|
|
706
|
-
DialogContext.displayName = "DialogContext";
|
|
707
|
-
}
|
|
708
|
-
const DialogBackdrop = dataDisplay.styled(datePickers.Backdrop, {
|
|
709
|
-
name: "MuiDialog",
|
|
710
|
-
slot: "Backdrop",
|
|
711
|
-
overrides: (props, styles) => styles.backdrop
|
|
712
|
-
})({
|
|
713
|
-
// Improve scrollable dialog support.
|
|
714
|
-
zIndex: -1
|
|
715
|
-
});
|
|
716
|
-
const useUtilityClasses$3 = (ownerState) => {
|
|
717
|
-
const {
|
|
718
|
-
classes,
|
|
719
|
-
scroll,
|
|
720
|
-
maxWidth,
|
|
721
|
-
fullWidth,
|
|
722
|
-
fullScreen
|
|
723
|
-
} = ownerState;
|
|
724
|
-
const slots = {
|
|
725
|
-
root: ["root"],
|
|
726
|
-
container: ["container", `scroll${dataDisplay.capitalize(scroll)}`],
|
|
727
|
-
paper: ["paper", `paperScroll${dataDisplay.capitalize(scroll)}`, `paperWidth${dataDisplay.capitalize(String(maxWidth))}`, fullWidth && "paperFullWidth", fullScreen && "paperFullScreen"]
|
|
728
|
-
};
|
|
729
|
-
return dataDisplay.composeClasses(slots, getDialogUtilityClass, classes);
|
|
730
|
-
};
|
|
731
|
-
const DialogRoot = dataDisplay.styled(datePickers.Modal, {
|
|
732
|
-
name: "MuiDialog",
|
|
733
|
-
slot: "Root",
|
|
734
|
-
overridesResolver: (props, styles) => styles.root
|
|
735
|
-
})({
|
|
736
|
-
"@media print": {
|
|
737
|
-
// Use !important to override the Modal inline-style.
|
|
738
|
-
position: "absolute !important"
|
|
739
|
-
}
|
|
740
|
-
});
|
|
741
|
-
const DialogContainer = dataDisplay.styled("div", {
|
|
742
|
-
name: "MuiDialog",
|
|
743
|
-
slot: "Container",
|
|
744
|
-
overridesResolver: (props, styles) => {
|
|
745
|
-
const {
|
|
746
|
-
ownerState
|
|
747
|
-
} = props;
|
|
748
|
-
return [styles.container, styles[`scroll${dataDisplay.capitalize(ownerState.scroll)}`]];
|
|
749
|
-
}
|
|
750
|
-
})({
|
|
751
|
-
height: "100%",
|
|
752
|
-
"@media print": {
|
|
753
|
-
height: "auto"
|
|
754
|
-
},
|
|
755
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
756
|
-
outline: 0,
|
|
757
|
-
variants: [{
|
|
758
|
-
props: {
|
|
759
|
-
scroll: "paper"
|
|
760
|
-
},
|
|
761
|
-
style: {
|
|
762
|
-
display: "flex",
|
|
763
|
-
justifyContent: "center",
|
|
764
|
-
alignItems: "center"
|
|
765
|
-
}
|
|
766
|
-
}, {
|
|
767
|
-
props: {
|
|
768
|
-
scroll: "body"
|
|
769
|
-
},
|
|
770
|
-
style: {
|
|
771
|
-
overflowY: "auto",
|
|
772
|
-
overflowX: "hidden",
|
|
773
|
-
textAlign: "center",
|
|
774
|
-
"&::after": {
|
|
775
|
-
content: '""',
|
|
776
|
-
display: "inline-block",
|
|
777
|
-
verticalAlign: "middle",
|
|
778
|
-
height: "100%",
|
|
779
|
-
width: "0"
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
}]
|
|
783
|
-
});
|
|
784
|
-
const DialogPaper = dataDisplay.styled(datePickers.Paper, {
|
|
785
|
-
name: "MuiDialog",
|
|
786
|
-
slot: "Paper",
|
|
787
|
-
overridesResolver: (props, styles) => {
|
|
788
|
-
const {
|
|
789
|
-
ownerState
|
|
790
|
-
} = props;
|
|
791
|
-
return [styles.paper, styles[`scrollPaper${dataDisplay.capitalize(ownerState.scroll)}`], styles[`paperWidth${dataDisplay.capitalize(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];
|
|
792
|
-
}
|
|
793
|
-
})(dataDisplay.memoTheme(({
|
|
794
|
-
theme
|
|
795
|
-
}) => ({
|
|
796
|
-
margin: 32,
|
|
797
|
-
position: "relative",
|
|
798
|
-
overflowY: "auto",
|
|
799
|
-
"@media print": {
|
|
800
|
-
overflowY: "visible",
|
|
801
|
-
boxShadow: "none"
|
|
802
|
-
},
|
|
803
|
-
variants: [{
|
|
804
|
-
props: {
|
|
805
|
-
scroll: "paper"
|
|
806
|
-
},
|
|
807
|
-
style: {
|
|
808
|
-
display: "flex",
|
|
809
|
-
flexDirection: "column",
|
|
810
|
-
maxHeight: "calc(100% - 64px)"
|
|
811
|
-
}
|
|
812
|
-
}, {
|
|
813
|
-
props: {
|
|
814
|
-
scroll: "body"
|
|
815
|
-
},
|
|
816
|
-
style: {
|
|
817
|
-
display: "inline-block",
|
|
818
|
-
verticalAlign: "middle",
|
|
819
|
-
textAlign: "initial"
|
|
820
|
-
}
|
|
821
|
-
}, {
|
|
822
|
-
props: ({
|
|
823
|
-
ownerState
|
|
824
|
-
}) => !ownerState.maxWidth,
|
|
825
|
-
style: {
|
|
826
|
-
maxWidth: "calc(100% - 64px)"
|
|
827
|
-
}
|
|
828
|
-
}, {
|
|
829
|
-
props: {
|
|
830
|
-
maxWidth: "xs"
|
|
831
|
-
},
|
|
832
|
-
style: {
|
|
833
|
-
maxWidth: theme.breakpoints.unit === "px" ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
|
|
834
|
-
[`&.${dialogClasses.paperScrollBody}`]: {
|
|
835
|
-
[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
836
|
-
maxWidth: "calc(100% - 64px)"
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
}, ...Object.keys(theme.breakpoints.values).filter((maxWidth) => maxWidth !== "xs").map((maxWidth) => ({
|
|
841
|
-
props: {
|
|
842
|
-
maxWidth
|
|
843
|
-
},
|
|
844
|
-
style: {
|
|
845
|
-
maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`,
|
|
846
|
-
[`&.${dialogClasses.paperScrollBody}`]: {
|
|
847
|
-
[theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {
|
|
848
|
-
maxWidth: "calc(100% - 64px)"
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
})), {
|
|
853
|
-
props: ({
|
|
854
|
-
ownerState
|
|
855
|
-
}) => ownerState.fullWidth,
|
|
856
|
-
style: {
|
|
857
|
-
width: "calc(100% - 64px)"
|
|
858
|
-
}
|
|
859
|
-
}, {
|
|
860
|
-
props: ({
|
|
861
|
-
ownerState
|
|
862
|
-
}) => ownerState.fullScreen,
|
|
863
|
-
style: {
|
|
864
|
-
margin: 0,
|
|
865
|
-
width: "100%",
|
|
866
|
-
maxWidth: "100%",
|
|
867
|
-
height: "100%",
|
|
868
|
-
maxHeight: "none",
|
|
869
|
-
borderRadius: 0,
|
|
870
|
-
[`&.${dialogClasses.paperScrollBody}`]: {
|
|
871
|
-
margin: 0,
|
|
872
|
-
maxWidth: "100%"
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
}]
|
|
876
|
-
})));
|
|
877
|
-
const Dialog$1 = /* @__PURE__ */ React__namespace.forwardRef(function Dialog(inProps, ref) {
|
|
878
|
-
const props = dataDisplay.useDefaultProps({
|
|
879
|
-
props: inProps,
|
|
880
|
-
name: "MuiDialog"
|
|
881
|
-
});
|
|
882
|
-
const theme = dataDisplay.useTheme();
|
|
883
|
-
const defaultTransitionDuration = {
|
|
884
|
-
enter: theme.transitions.duration.enteringScreen,
|
|
885
|
-
exit: theme.transitions.duration.leavingScreen
|
|
886
|
-
};
|
|
887
|
-
const {
|
|
888
|
-
"aria-describedby": ariaDescribedby,
|
|
889
|
-
"aria-labelledby": ariaLabelledbyProp,
|
|
890
|
-
"aria-modal": ariaModal = true,
|
|
891
|
-
BackdropComponent,
|
|
892
|
-
BackdropProps,
|
|
893
|
-
children,
|
|
894
|
-
className,
|
|
895
|
-
disableEscapeKeyDown = false,
|
|
896
|
-
fullScreen = false,
|
|
897
|
-
fullWidth = false,
|
|
898
|
-
maxWidth = "sm",
|
|
899
|
-
onBackdropClick,
|
|
900
|
-
onClick,
|
|
901
|
-
onClose,
|
|
902
|
-
open,
|
|
903
|
-
PaperComponent = datePickers.Paper,
|
|
904
|
-
PaperProps = {},
|
|
905
|
-
scroll = "paper",
|
|
906
|
-
slots = {},
|
|
907
|
-
slotProps = {},
|
|
908
|
-
TransitionComponent = datePickers.Fade,
|
|
909
|
-
transitionDuration = defaultTransitionDuration,
|
|
910
|
-
TransitionProps,
|
|
911
|
-
...other
|
|
912
|
-
} = props;
|
|
913
|
-
const ownerState = {
|
|
914
|
-
...props,
|
|
915
|
-
disableEscapeKeyDown,
|
|
916
|
-
fullScreen,
|
|
917
|
-
fullWidth,
|
|
918
|
-
maxWidth,
|
|
919
|
-
scroll
|
|
920
|
-
};
|
|
921
|
-
const classes = useUtilityClasses$3(ownerState);
|
|
922
|
-
const backdropClick = React__namespace.useRef();
|
|
923
|
-
const handleMouseDown = (event) => {
|
|
924
|
-
backdropClick.current = event.target === event.currentTarget;
|
|
925
|
-
};
|
|
926
|
-
const handleBackdropClick = (event) => {
|
|
927
|
-
if (onClick) {
|
|
928
|
-
onClick(event);
|
|
929
|
-
}
|
|
930
|
-
if (!backdropClick.current) {
|
|
931
|
-
return;
|
|
932
|
-
}
|
|
933
|
-
backdropClick.current = null;
|
|
934
|
-
if (onBackdropClick) {
|
|
935
|
-
onBackdropClick(event);
|
|
936
|
-
}
|
|
937
|
-
if (onClose) {
|
|
938
|
-
onClose(event, "backdropClick");
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
|
-
const ariaLabelledby = dataDisplay.useId(ariaLabelledbyProp);
|
|
942
|
-
const dialogContextValue = React__namespace.useMemo(() => {
|
|
943
|
-
return {
|
|
944
|
-
titleId: ariaLabelledby
|
|
945
|
-
};
|
|
946
|
-
}, [ariaLabelledby]);
|
|
947
|
-
const backwardCompatibleSlots = {
|
|
948
|
-
transition: TransitionComponent,
|
|
949
|
-
...slots
|
|
950
|
-
};
|
|
951
|
-
const backwardCompatibleSlotProps = {
|
|
952
|
-
transition: TransitionProps,
|
|
953
|
-
paper: PaperProps,
|
|
954
|
-
backdrop: BackdropProps,
|
|
955
|
-
...slotProps
|
|
956
|
-
};
|
|
957
|
-
const externalForwardedProps = {
|
|
958
|
-
slots: backwardCompatibleSlots,
|
|
959
|
-
slotProps: backwardCompatibleSlotProps
|
|
960
|
-
};
|
|
961
|
-
const [RootSlot, rootSlotProps] = datePickers.useSlot("root", {
|
|
962
|
-
elementType: DialogRoot,
|
|
963
|
-
shouldForwardComponentProp: true,
|
|
964
|
-
externalForwardedProps,
|
|
965
|
-
ownerState,
|
|
966
|
-
className: dataDisplay.clsx(classes.root, className),
|
|
967
|
-
ref
|
|
968
|
-
});
|
|
969
|
-
const [BackdropSlot, backdropSlotProps] = datePickers.useSlot("backdrop", {
|
|
970
|
-
elementType: DialogBackdrop,
|
|
971
|
-
shouldForwardComponentProp: true,
|
|
972
|
-
externalForwardedProps,
|
|
973
|
-
ownerState
|
|
974
|
-
});
|
|
975
|
-
const [PaperSlot, paperSlotProps] = datePickers.useSlot("paper", {
|
|
976
|
-
elementType: DialogPaper,
|
|
977
|
-
shouldForwardComponentProp: true,
|
|
978
|
-
externalForwardedProps,
|
|
979
|
-
ownerState,
|
|
980
|
-
className: dataDisplay.clsx(classes.paper, PaperProps.className)
|
|
981
|
-
});
|
|
982
|
-
const [ContainerSlot, containerSlotProps] = datePickers.useSlot("container", {
|
|
983
|
-
elementType: DialogContainer,
|
|
984
|
-
externalForwardedProps,
|
|
985
|
-
ownerState,
|
|
986
|
-
className: dataDisplay.clsx(classes.container)
|
|
987
|
-
});
|
|
988
|
-
const [TransitionSlot, transitionSlotProps] = datePickers.useSlot("transition", {
|
|
989
|
-
elementType: datePickers.Fade,
|
|
990
|
-
externalForwardedProps,
|
|
991
|
-
ownerState,
|
|
992
|
-
additionalProps: {
|
|
993
|
-
appear: true,
|
|
994
|
-
in: open,
|
|
995
|
-
timeout: transitionDuration,
|
|
996
|
-
role: "presentation"
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RootSlot, {
|
|
1000
|
-
closeAfterTransition: true,
|
|
1001
|
-
slots: {
|
|
1002
|
-
backdrop: BackdropSlot
|
|
1003
|
-
},
|
|
1004
|
-
slotProps: {
|
|
1005
|
-
backdrop: {
|
|
1006
|
-
transitionDuration,
|
|
1007
|
-
as: BackdropComponent,
|
|
1008
|
-
...backdropSlotProps
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
disableEscapeKeyDown,
|
|
1012
|
-
onClose,
|
|
1013
|
-
open,
|
|
1014
|
-
onClick: handleBackdropClick,
|
|
1015
|
-
...rootSlotProps,
|
|
1016
|
-
...other,
|
|
1017
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(TransitionSlot, {
|
|
1018
|
-
...transitionSlotProps,
|
|
1019
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ContainerSlot, {
|
|
1020
|
-
onMouseDown: handleMouseDown,
|
|
1021
|
-
...containerSlotProps,
|
|
1022
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(PaperSlot, {
|
|
1023
|
-
as: PaperComponent,
|
|
1024
|
-
elevation: 24,
|
|
1025
|
-
role: "dialog",
|
|
1026
|
-
"aria-describedby": ariaDescribedby,
|
|
1027
|
-
"aria-labelledby": ariaLabelledby,
|
|
1028
|
-
"aria-modal": ariaModal,
|
|
1029
|
-
...paperSlotProps,
|
|
1030
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(DialogContext.Provider, {
|
|
1031
|
-
value: dialogContextValue,
|
|
1032
|
-
children
|
|
1033
|
-
})
|
|
1034
|
-
})
|
|
1035
|
-
})
|
|
1036
|
-
})
|
|
1037
|
-
});
|
|
1038
|
-
});
|
|
1039
|
-
process.env.NODE_ENV !== "production" ? Dialog$1.propTypes = {
|
|
1040
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1041
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1042
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1043
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1044
|
-
/**
|
|
1045
|
-
* The id(s) of the element(s) that describe the dialog.
|
|
1046
|
-
*/
|
|
1047
|
-
"aria-describedby": dataDisplay.PropTypes.string,
|
|
1048
|
-
/**
|
|
1049
|
-
* The id(s) of the element(s) that label the dialog.
|
|
1050
|
-
*/
|
|
1051
|
-
"aria-labelledby": dataDisplay.PropTypes.string,
|
|
1052
|
-
/**
|
|
1053
|
-
* Informs assistive technologies that the element is modal.
|
|
1054
|
-
* It's added on the element with role="dialog".
|
|
1055
|
-
* @default true
|
|
1056
|
-
*/
|
|
1057
|
-
"aria-modal": dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.oneOf(["false", "true"]), dataDisplay.PropTypes.bool]),
|
|
1058
|
-
/**
|
|
1059
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
1060
|
-
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
1061
|
-
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
1062
|
-
* @default styled(Backdrop, {
|
|
1063
|
-
* name: 'MuiModal',
|
|
1064
|
-
* slot: 'Backdrop',
|
|
1065
|
-
* overridesResolver: (props, styles) => {
|
|
1066
|
-
* return styles.backdrop;
|
|
1067
|
-
* },
|
|
1068
|
-
* })({
|
|
1069
|
-
* zIndex: -1,
|
|
1070
|
-
* })
|
|
1071
|
-
*/
|
|
1072
|
-
BackdropComponent: dataDisplay.PropTypes.elementType,
|
|
1073
|
-
/**
|
|
1074
|
-
* @ignore
|
|
1075
|
-
*/
|
|
1076
|
-
BackdropProps: dataDisplay.PropTypes.object,
|
|
1077
|
-
/**
|
|
1078
|
-
* Dialog children, usually the included sub-components.
|
|
1079
|
-
*/
|
|
1080
|
-
children: dataDisplay.PropTypes.node,
|
|
1081
|
-
/**
|
|
1082
|
-
* Override or extend the styles applied to the component.
|
|
1083
|
-
*/
|
|
1084
|
-
classes: dataDisplay.PropTypes.object,
|
|
1085
|
-
/**
|
|
1086
|
-
* @ignore
|
|
1087
|
-
*/
|
|
1088
|
-
className: dataDisplay.PropTypes.string,
|
|
1089
|
-
/**
|
|
1090
|
-
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
1091
|
-
* @default false
|
|
1092
|
-
*/
|
|
1093
|
-
disableEscapeKeyDown: dataDisplay.PropTypes.bool,
|
|
1094
|
-
/**
|
|
1095
|
-
* If `true`, the dialog is full-screen.
|
|
1096
|
-
* @default false
|
|
1097
|
-
*/
|
|
1098
|
-
fullScreen: dataDisplay.PropTypes.bool,
|
|
1099
|
-
/**
|
|
1100
|
-
* If `true`, the dialog stretches to `maxWidth`.
|
|
1101
|
-
*
|
|
1102
|
-
* Notice that the dialog width grow is limited by the default margin.
|
|
1103
|
-
* @default false
|
|
1104
|
-
*/
|
|
1105
|
-
fullWidth: dataDisplay.PropTypes.bool,
|
|
1106
|
-
/**
|
|
1107
|
-
* Determine the max-width of the dialog.
|
|
1108
|
-
* The dialog width grows with the size of the screen.
|
|
1109
|
-
* Set to `false` to disable `maxWidth`.
|
|
1110
|
-
* @default 'sm'
|
|
1111
|
-
*/
|
|
1112
|
-
maxWidth: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.oneOf(["xs", "sm", "md", "lg", "xl", false]), dataDisplay.PropTypes.string]),
|
|
1113
|
-
/**
|
|
1114
|
-
* Callback fired when the backdrop is clicked.
|
|
1115
|
-
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
1116
|
-
*/
|
|
1117
|
-
onBackdropClick: dataDisplay.PropTypes.func,
|
|
1118
|
-
/**
|
|
1119
|
-
* @ignore
|
|
1120
|
-
*/
|
|
1121
|
-
onClick: dataDisplay.PropTypes.func,
|
|
1122
|
-
/**
|
|
1123
|
-
* Callback fired when the component requests to be closed.
|
|
1124
|
-
*
|
|
1125
|
-
* @param {object} event The event source of the callback.
|
|
1126
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
1127
|
-
*/
|
|
1128
|
-
onClose: dataDisplay.PropTypes.func,
|
|
1129
|
-
/**
|
|
1130
|
-
* If `true`, the component is shown.
|
|
1131
|
-
*/
|
|
1132
|
-
open: dataDisplay.PropTypes.bool.isRequired,
|
|
1133
|
-
/**
|
|
1134
|
-
* The component used to render the body of the dialog.
|
|
1135
|
-
* @default Paper
|
|
1136
|
-
*/
|
|
1137
|
-
PaperComponent: dataDisplay.PropTypes.elementType,
|
|
1138
|
-
/**
|
|
1139
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
1140
|
-
* @default {}
|
|
1141
|
-
* @deprecated Use `slotProps.paper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1142
|
-
*/
|
|
1143
|
-
PaperProps: dataDisplay.PropTypes.object,
|
|
1144
|
-
/**
|
|
1145
|
-
* Determine the container for scrolling the dialog.
|
|
1146
|
-
* @default 'paper'
|
|
1147
|
-
*/
|
|
1148
|
-
scroll: dataDisplay.PropTypes.oneOf(["body", "paper"]),
|
|
1149
|
-
/**
|
|
1150
|
-
* The props used for each slot inside.
|
|
1151
|
-
* @default {}
|
|
1152
|
-
*/
|
|
1153
|
-
slotProps: dataDisplay.PropTypes.shape({
|
|
1154
|
-
backdrop: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
1155
|
-
container: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
1156
|
-
paper: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
1157
|
-
root: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
1158
|
-
transition: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object])
|
|
1159
|
-
}),
|
|
1160
|
-
/**
|
|
1161
|
-
* The components used for each slot inside.
|
|
1162
|
-
* @default {}
|
|
1163
|
-
*/
|
|
1164
|
-
slots: dataDisplay.PropTypes.shape({
|
|
1165
|
-
backdrop: dataDisplay.PropTypes.elementType,
|
|
1166
|
-
container: dataDisplay.PropTypes.elementType,
|
|
1167
|
-
paper: dataDisplay.PropTypes.elementType,
|
|
1168
|
-
root: dataDisplay.PropTypes.elementType,
|
|
1169
|
-
transition: dataDisplay.PropTypes.elementType
|
|
1170
|
-
}),
|
|
1171
|
-
/**
|
|
1172
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1173
|
-
*/
|
|
1174
|
-
sx: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.arrayOf(dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object, dataDisplay.PropTypes.bool])), dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
1175
|
-
/**
|
|
1176
|
-
* The component used for the transition.
|
|
1177
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
1178
|
-
* @default Fade
|
|
1179
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1180
|
-
*/
|
|
1181
|
-
TransitionComponent: dataDisplay.PropTypes.elementType,
|
|
1182
|
-
/**
|
|
1183
|
-
* The duration for the transition, in milliseconds.
|
|
1184
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
1185
|
-
* @default {
|
|
1186
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
1187
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
1188
|
-
* }
|
|
1189
|
-
*/
|
|
1190
|
-
transitionDuration: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.number, dataDisplay.PropTypes.shape({
|
|
1191
|
-
appear: dataDisplay.PropTypes.number,
|
|
1192
|
-
enter: dataDisplay.PropTypes.number,
|
|
1193
|
-
exit: dataDisplay.PropTypes.number
|
|
1194
|
-
})]),
|
|
1195
|
-
/**
|
|
1196
|
-
* Props applied to the transition element.
|
|
1197
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
1198
|
-
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1199
|
-
*/
|
|
1200
|
-
TransitionProps: dataDisplay.PropTypes.object
|
|
1201
|
-
} : void 0;
|
|
1202
|
-
const PickersModalDialogRoot = dataDisplay.styled(Dialog$1)({
|
|
1203
|
-
[`& .${dialogClasses.container}`]: {
|
|
1204
|
-
outline: 0
|
|
1205
|
-
},
|
|
1206
|
-
[`& .${dialogClasses.paper}`]: {
|
|
1207
|
-
outline: 0,
|
|
1208
|
-
minWidth: datePickers.DIALOG_WIDTH
|
|
1209
|
-
}
|
|
1210
|
-
});
|
|
1211
|
-
const PickersModalDialogContent = dataDisplay.styled(DialogContent)({
|
|
1212
|
-
"&:first-of-type": {
|
|
1213
|
-
padding: 0
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
function PickersModalDialog(props) {
|
|
1217
|
-
const {
|
|
1218
|
-
children,
|
|
1219
|
-
slots,
|
|
1220
|
-
slotProps
|
|
1221
|
-
} = props;
|
|
1222
|
-
const {
|
|
1223
|
-
open
|
|
1224
|
-
} = datePickers.usePickerContext();
|
|
1225
|
-
const {
|
|
1226
|
-
dismissViews,
|
|
1227
|
-
onPopperExited
|
|
1228
|
-
} = datePickers.usePickerPrivateContext();
|
|
1229
|
-
const Dialog3 = slots?.dialog ?? PickersModalDialogRoot;
|
|
1230
|
-
const Transition = slots?.mobileTransition ?? datePickers.Fade;
|
|
1231
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Dialog3, datePickers._extends({
|
|
1232
|
-
open,
|
|
1233
|
-
onClose: () => {
|
|
1234
|
-
dismissViews();
|
|
1235
|
-
onPopperExited?.();
|
|
1236
|
-
}
|
|
1237
|
-
}, slotProps?.dialog, {
|
|
1238
|
-
TransitionComponent: Transition,
|
|
1239
|
-
TransitionProps: slotProps?.mobileTransition,
|
|
1240
|
-
PaperComponent: slots?.mobilePaper,
|
|
1241
|
-
PaperProps: slotProps?.mobilePaper,
|
|
1242
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(PickersModalDialogContent, {
|
|
1243
|
-
children
|
|
1244
|
-
})
|
|
1245
|
-
}));
|
|
1246
|
-
}
|
|
1247
|
-
const Dialog2 = React.forwardRef(
|
|
1248
|
-
({
|
|
1249
|
-
open,
|
|
1250
|
-
onClose,
|
|
1251
|
-
maxWidth = "sm",
|
|
1252
|
-
fullWidth = false,
|
|
1253
|
-
fullScreen = false,
|
|
1254
|
-
scroll = "paper",
|
|
1255
|
-
children,
|
|
1256
|
-
...props
|
|
1257
|
-
}, ref) => {
|
|
1258
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1259
|
-
Dialog$1,
|
|
1260
|
-
{
|
|
1261
|
-
ref,
|
|
1262
|
-
open,
|
|
1263
|
-
onClose,
|
|
1264
|
-
maxWidth,
|
|
1265
|
-
fullWidth,
|
|
1266
|
-
fullScreen,
|
|
1267
|
-
scroll,
|
|
1268
|
-
...props,
|
|
1269
|
-
children
|
|
1270
|
-
}
|
|
1271
|
-
);
|
|
1272
|
-
}
|
|
1273
|
-
);
|
|
1274
|
-
Dialog2.displayName = "Dialog";
|
|
1275
|
-
const useUtilityClasses$2 = (ownerState) => {
|
|
1276
|
-
const {
|
|
1277
|
-
classes
|
|
1278
|
-
} = ownerState;
|
|
1279
|
-
const slots = {
|
|
1280
|
-
root: ["root"]
|
|
1281
|
-
};
|
|
1282
|
-
return dataDisplay.composeClasses(slots, getDialogTitleUtilityClass, classes);
|
|
1283
|
-
};
|
|
1284
|
-
const DialogTitleRoot = dataDisplay.styled(dataDisplay.Typography, {
|
|
1285
|
-
name: "MuiDialogTitle",
|
|
1286
|
-
slot: "Root",
|
|
1287
|
-
overridesResolver: (props, styles) => styles.root
|
|
1288
|
-
})({
|
|
1289
|
-
padding: "16px 24px",
|
|
1290
|
-
flex: "0 0 auto"
|
|
1291
|
-
});
|
|
1292
|
-
const DialogTitle = /* @__PURE__ */ React__namespace.forwardRef(function DialogTitle2(inProps, ref) {
|
|
1293
|
-
const props = dataDisplay.useDefaultProps({
|
|
1294
|
-
props: inProps,
|
|
1295
|
-
name: "MuiDialogTitle"
|
|
1296
|
-
});
|
|
1297
|
-
const {
|
|
1298
|
-
className,
|
|
1299
|
-
id: idProp,
|
|
1300
|
-
...other
|
|
1301
|
-
} = props;
|
|
1302
|
-
const ownerState = props;
|
|
1303
|
-
const classes = useUtilityClasses$2(ownerState);
|
|
1304
|
-
const {
|
|
1305
|
-
titleId = idProp
|
|
1306
|
-
} = React__namespace.useContext(DialogContext);
|
|
1307
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DialogTitleRoot, {
|
|
1308
|
-
component: "h2",
|
|
1309
|
-
className: dataDisplay.clsx(classes.root, className),
|
|
1310
|
-
ownerState,
|
|
1311
|
-
ref,
|
|
1312
|
-
variant: "h6",
|
|
1313
|
-
id: idProp ?? titleId,
|
|
1314
|
-
...other
|
|
1315
|
-
});
|
|
1316
|
-
});
|
|
1317
|
-
process.env.NODE_ENV !== "production" ? DialogTitle.propTypes = {
|
|
1318
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1319
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1320
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1321
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1322
|
-
/**
|
|
1323
|
-
* The content of the component.
|
|
1324
|
-
*/
|
|
1325
|
-
children: dataDisplay.PropTypes.node,
|
|
1326
|
-
/**
|
|
1327
|
-
* Override or extend the styles applied to the component.
|
|
1328
|
-
*/
|
|
1329
|
-
classes: dataDisplay.PropTypes.object,
|
|
1330
|
-
/**
|
|
1331
|
-
* @ignore
|
|
1332
|
-
*/
|
|
1333
|
-
className: dataDisplay.PropTypes.string,
|
|
1334
|
-
/**
|
|
1335
|
-
* @ignore
|
|
1336
|
-
*/
|
|
1337
|
-
id: dataDisplay.PropTypes.string,
|
|
1338
|
-
/**
|
|
1339
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1340
|
-
*/
|
|
1341
|
-
sx: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.arrayOf(dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object, dataDisplay.PropTypes.bool])), dataDisplay.PropTypes.func, dataDisplay.PropTypes.object])
|
|
1342
|
-
} : void 0;
|
|
1343
|
-
function getDialogContentTextUtilityClass(slot) {
|
|
1344
|
-
return dataDisplay.generateUtilityClass("MuiDialogContentText", slot);
|
|
1345
|
-
}
|
|
1346
|
-
dataDisplay.generateUtilityClasses("MuiDialogContentText", ["root"]);
|
|
1347
|
-
const useUtilityClasses$1 = (ownerState) => {
|
|
1348
|
-
const {
|
|
1349
|
-
classes
|
|
1350
|
-
} = ownerState;
|
|
1351
|
-
const slots = {
|
|
1352
|
-
root: ["root"]
|
|
1353
|
-
};
|
|
1354
|
-
const composedClasses = dataDisplay.composeClasses(slots, getDialogContentTextUtilityClass, classes);
|
|
1355
|
-
return {
|
|
1356
|
-
...classes,
|
|
1357
|
-
// forward classes to the Typography
|
|
1358
|
-
...composedClasses
|
|
1359
|
-
};
|
|
1360
|
-
};
|
|
1361
|
-
const DialogContentTextRoot = dataDisplay.styled(dataDisplay.Typography, {
|
|
1362
|
-
shouldForwardProp: (prop) => dataDisplay.rootShouldForwardProp(prop) || prop === "classes",
|
|
1363
|
-
name: "MuiDialogContentText",
|
|
1364
|
-
slot: "Root",
|
|
1365
|
-
overridesResolver: (props, styles) => styles.root
|
|
1366
|
-
})({});
|
|
1367
|
-
const DialogContentText = /* @__PURE__ */ React__namespace.forwardRef(function DialogContentText2(inProps, ref) {
|
|
1368
|
-
const props = dataDisplay.useDefaultProps({
|
|
1369
|
-
props: inProps,
|
|
1370
|
-
name: "MuiDialogContentText"
|
|
1371
|
-
});
|
|
1372
|
-
const {
|
|
1373
|
-
children,
|
|
1374
|
-
className,
|
|
1375
|
-
...ownerState
|
|
1376
|
-
} = props;
|
|
1377
|
-
const classes = useUtilityClasses$1(ownerState);
|
|
1378
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DialogContentTextRoot, {
|
|
1379
|
-
component: "p",
|
|
1380
|
-
variant: "body1",
|
|
1381
|
-
color: "textSecondary",
|
|
1382
|
-
ref,
|
|
1383
|
-
ownerState,
|
|
1384
|
-
className: dataDisplay.clsx(classes.root, className),
|
|
1385
|
-
...props,
|
|
1386
|
-
classes
|
|
1387
|
-
});
|
|
1388
|
-
});
|
|
1389
|
-
process.env.NODE_ENV !== "production" ? DialogContentText.propTypes = {
|
|
1390
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1391
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1392
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1393
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1394
|
-
/**
|
|
1395
|
-
* The content of the component.
|
|
1396
|
-
*/
|
|
1397
|
-
children: dataDisplay.PropTypes.node,
|
|
1398
|
-
/**
|
|
1399
|
-
* Override or extend the styles applied to the component.
|
|
1400
|
-
*/
|
|
1401
|
-
classes: dataDisplay.PropTypes.object,
|
|
1402
|
-
/**
|
|
1403
|
-
* @ignore
|
|
1404
|
-
*/
|
|
1405
|
-
className: dataDisplay.PropTypes.string,
|
|
1406
|
-
/**
|
|
1407
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1408
|
-
*/
|
|
1409
|
-
sx: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.arrayOf(dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object, dataDisplay.PropTypes.bool])), dataDisplay.PropTypes.func, dataDisplay.PropTypes.object])
|
|
1410
|
-
} : void 0;
|
|
1411
|
-
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1412
|
-
__proto__: null,
|
|
1413
|
-
Dialog: Dialog2,
|
|
1414
|
-
DialogActions,
|
|
1415
|
-
DialogContent,
|
|
1416
|
-
DialogContentText,
|
|
1417
|
-
DialogTitle
|
|
1418
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1419
|
-
function getTranslateValue(direction, node, resolvedContainer) {
|
|
1420
|
-
const rect = node.getBoundingClientRect();
|
|
1421
|
-
const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();
|
|
1422
|
-
const containerWindow = dataDisplay.ownerWindow(node);
|
|
1423
|
-
let transform;
|
|
1424
|
-
if (node.fakeTransform) {
|
|
1425
|
-
transform = node.fakeTransform;
|
|
1426
|
-
} else {
|
|
1427
|
-
const computedStyle = containerWindow.getComputedStyle(node);
|
|
1428
|
-
transform = computedStyle.getPropertyValue("-webkit-transform") || computedStyle.getPropertyValue("transform");
|
|
1429
|
-
}
|
|
1430
|
-
let offsetX = 0;
|
|
1431
|
-
let offsetY = 0;
|
|
1432
|
-
if (transform && transform !== "none" && typeof transform === "string") {
|
|
1433
|
-
const transformValues = transform.split("(")[1].split(")")[0].split(",");
|
|
1434
|
-
offsetX = parseInt(transformValues[4], 10);
|
|
1435
|
-
offsetY = parseInt(transformValues[5], 10);
|
|
1436
|
-
}
|
|
1437
|
-
if (direction === "left") {
|
|
1438
|
-
if (containerRect) {
|
|
1439
|
-
return `translateX(${containerRect.right + offsetX - rect.left}px)`;
|
|
1440
|
-
}
|
|
1441
|
-
return `translateX(${containerWindow.innerWidth + offsetX - rect.left}px)`;
|
|
1442
|
-
}
|
|
1443
|
-
if (direction === "right") {
|
|
1444
|
-
if (containerRect) {
|
|
1445
|
-
return `translateX(-${rect.right - containerRect.left - offsetX}px)`;
|
|
1446
|
-
}
|
|
1447
|
-
return `translateX(-${rect.left + rect.width - offsetX}px)`;
|
|
1448
|
-
}
|
|
1449
|
-
if (direction === "up") {
|
|
1450
|
-
if (containerRect) {
|
|
1451
|
-
return `translateY(${containerRect.bottom + offsetY - rect.top}px)`;
|
|
1452
|
-
}
|
|
1453
|
-
return `translateY(${containerWindow.innerHeight + offsetY - rect.top}px)`;
|
|
1454
|
-
}
|
|
1455
|
-
if (containerRect) {
|
|
1456
|
-
return `translateY(-${rect.top - containerRect.top + rect.height - offsetY}px)`;
|
|
1457
|
-
}
|
|
1458
|
-
return `translateY(-${rect.top + rect.height - offsetY}px)`;
|
|
1459
|
-
}
|
|
1460
|
-
function resolveContainer(containerPropProp) {
|
|
1461
|
-
return typeof containerPropProp === "function" ? containerPropProp() : containerPropProp;
|
|
1462
|
-
}
|
|
1463
|
-
function setTranslateValue(direction, node, containerProp) {
|
|
1464
|
-
const resolvedContainer = resolveContainer(containerProp);
|
|
1465
|
-
const transform = getTranslateValue(direction, node, resolvedContainer);
|
|
1466
|
-
if (transform) {
|
|
1467
|
-
node.style.webkitTransform = transform;
|
|
1468
|
-
node.style.transform = transform;
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
const Slide = /* @__PURE__ */ React__namespace.forwardRef(function Slide2(props, ref) {
|
|
1472
|
-
const theme = dataDisplay.useTheme();
|
|
1473
|
-
const defaultEasing = {
|
|
1474
|
-
enter: theme.transitions.easing.easeOut,
|
|
1475
|
-
exit: theme.transitions.easing.sharp
|
|
1476
|
-
};
|
|
1477
|
-
const defaultTimeout = {
|
|
1478
|
-
enter: theme.transitions.duration.enteringScreen,
|
|
1479
|
-
exit: theme.transitions.duration.leavingScreen
|
|
1480
|
-
};
|
|
1481
|
-
const {
|
|
1482
|
-
addEndListener,
|
|
1483
|
-
appear = true,
|
|
1484
|
-
children,
|
|
1485
|
-
container: containerProp,
|
|
1486
|
-
direction = "down",
|
|
1487
|
-
easing: easingProp = defaultEasing,
|
|
1488
|
-
in: inProp,
|
|
1489
|
-
onEnter,
|
|
1490
|
-
onEntered,
|
|
1491
|
-
onEntering,
|
|
1492
|
-
onExit,
|
|
1493
|
-
onExited,
|
|
1494
|
-
onExiting,
|
|
1495
|
-
style,
|
|
1496
|
-
timeout = defaultTimeout,
|
|
1497
|
-
// eslint-disable-next-line react/prop-types
|
|
1498
|
-
TransitionComponent = datePickers.Transition,
|
|
1499
|
-
...other
|
|
1500
|
-
} = props;
|
|
1501
|
-
const childrenRef = React__namespace.useRef(null);
|
|
1502
|
-
const handleRef = dataDisplay.useForkRef(dataDisplay.getReactElementRef(children), childrenRef, ref);
|
|
1503
|
-
const normalizedTransitionCallback = (callback) => (isAppearing) => {
|
|
1504
|
-
if (callback) {
|
|
1505
|
-
if (isAppearing === void 0) {
|
|
1506
|
-
callback(childrenRef.current);
|
|
1507
|
-
} else {
|
|
1508
|
-
callback(childrenRef.current, isAppearing);
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
};
|
|
1512
|
-
const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
|
|
1513
|
-
setTranslateValue(direction, node, containerProp);
|
|
1514
|
-
datePickers.reflow(node);
|
|
1515
|
-
if (onEnter) {
|
|
1516
|
-
onEnter(node, isAppearing);
|
|
1517
|
-
}
|
|
1518
|
-
});
|
|
1519
|
-
const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
|
|
1520
|
-
const transitionProps = datePickers.getTransitionProps({
|
|
1521
|
-
timeout,
|
|
1522
|
-
style,
|
|
1523
|
-
easing: easingProp
|
|
1524
|
-
}, {
|
|
1525
|
-
mode: "enter"
|
|
1526
|
-
});
|
|
1527
|
-
node.style.webkitTransition = theme.transitions.create("-webkit-transform", {
|
|
1528
|
-
...transitionProps
|
|
1529
|
-
});
|
|
1530
|
-
node.style.transition = theme.transitions.create("transform", {
|
|
1531
|
-
...transitionProps
|
|
1532
|
-
});
|
|
1533
|
-
node.style.webkitTransform = "none";
|
|
1534
|
-
node.style.transform = "none";
|
|
1535
|
-
if (onEntering) {
|
|
1536
|
-
onEntering(node, isAppearing);
|
|
1537
|
-
}
|
|
1538
|
-
});
|
|
1539
|
-
const handleEntered = normalizedTransitionCallback(onEntered);
|
|
1540
|
-
const handleExiting = normalizedTransitionCallback(onExiting);
|
|
1541
|
-
const handleExit = normalizedTransitionCallback((node) => {
|
|
1542
|
-
const transitionProps = datePickers.getTransitionProps({
|
|
1543
|
-
timeout,
|
|
1544
|
-
style,
|
|
1545
|
-
easing: easingProp
|
|
1546
|
-
}, {
|
|
1547
|
-
mode: "exit"
|
|
1548
|
-
});
|
|
1549
|
-
node.style.webkitTransition = theme.transitions.create("-webkit-transform", transitionProps);
|
|
1550
|
-
node.style.transition = theme.transitions.create("transform", transitionProps);
|
|
1551
|
-
setTranslateValue(direction, node, containerProp);
|
|
1552
|
-
if (onExit) {
|
|
1553
|
-
onExit(node);
|
|
1554
|
-
}
|
|
1555
|
-
});
|
|
1556
|
-
const handleExited = normalizedTransitionCallback((node) => {
|
|
1557
|
-
node.style.webkitTransition = "";
|
|
1558
|
-
node.style.transition = "";
|
|
1559
|
-
if (onExited) {
|
|
1560
|
-
onExited(node);
|
|
1561
|
-
}
|
|
1562
|
-
});
|
|
1563
|
-
const handleAddEndListener = (next) => {
|
|
1564
|
-
if (addEndListener) {
|
|
1565
|
-
addEndListener(childrenRef.current, next);
|
|
1566
|
-
}
|
|
1567
|
-
};
|
|
1568
|
-
const updatePosition = React__namespace.useCallback(() => {
|
|
1569
|
-
if (childrenRef.current) {
|
|
1570
|
-
setTranslateValue(direction, childrenRef.current, containerProp);
|
|
1571
|
-
}
|
|
1572
|
-
}, [direction, containerProp]);
|
|
1573
|
-
React__namespace.useEffect(() => {
|
|
1574
|
-
if (inProp || direction === "down" || direction === "right") {
|
|
1575
|
-
return void 0;
|
|
1576
|
-
}
|
|
1577
|
-
const handleResize = dataDisplay.debounce(() => {
|
|
1578
|
-
if (childrenRef.current) {
|
|
1579
|
-
setTranslateValue(direction, childrenRef.current, containerProp);
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1582
|
-
const containerWindow = dataDisplay.ownerWindow(childrenRef.current);
|
|
1583
|
-
containerWindow.addEventListener("resize", handleResize);
|
|
1584
|
-
return () => {
|
|
1585
|
-
handleResize.clear();
|
|
1586
|
-
containerWindow.removeEventListener("resize", handleResize);
|
|
1587
|
-
};
|
|
1588
|
-
}, [direction, inProp, containerProp]);
|
|
1589
|
-
React__namespace.useEffect(() => {
|
|
1590
|
-
if (!inProp) {
|
|
1591
|
-
updatePosition();
|
|
1592
|
-
}
|
|
1593
|
-
}, [inProp, updatePosition]);
|
|
1594
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TransitionComponent, {
|
|
1595
|
-
nodeRef: childrenRef,
|
|
1596
|
-
onEnter: handleEnter,
|
|
1597
|
-
onEntered: handleEntered,
|
|
1598
|
-
onEntering: handleEntering,
|
|
1599
|
-
onExit: handleExit,
|
|
1600
|
-
onExited: handleExited,
|
|
1601
|
-
onExiting: handleExiting,
|
|
1602
|
-
addEndListener: handleAddEndListener,
|
|
1603
|
-
appear,
|
|
1604
|
-
in: inProp,
|
|
1605
|
-
timeout,
|
|
1606
|
-
...other,
|
|
1607
|
-
children: (state, {
|
|
1608
|
-
ownerState,
|
|
1609
|
-
...restChildProps
|
|
1610
|
-
}) => {
|
|
1611
|
-
return /* @__PURE__ */ React__namespace.cloneElement(children, {
|
|
1612
|
-
ref: handleRef,
|
|
1613
|
-
style: {
|
|
1614
|
-
visibility: state === "exited" && !inProp ? "hidden" : void 0,
|
|
1615
|
-
...style,
|
|
1616
|
-
...children.props.style
|
|
1617
|
-
},
|
|
1618
|
-
...restChildProps
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
});
|
|
1622
|
-
});
|
|
1623
|
-
process.env.NODE_ENV !== "production" ? Slide.propTypes = {
|
|
1624
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1625
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1626
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1627
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1628
|
-
/**
|
|
1629
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
1630
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
1631
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
1632
|
-
*/
|
|
1633
|
-
addEndListener: dataDisplay.PropTypes.func,
|
|
1634
|
-
/**
|
|
1635
|
-
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
1636
|
-
* Set this to `false` to disable this behavior.
|
|
1637
|
-
* @default true
|
|
1638
|
-
*/
|
|
1639
|
-
appear: dataDisplay.PropTypes.bool,
|
|
1640
|
-
/**
|
|
1641
|
-
* A single child content element.
|
|
1642
|
-
*/
|
|
1643
|
-
children: dataDisplay.elementAcceptingRef.isRequired,
|
|
1644
|
-
/**
|
|
1645
|
-
* An HTML element, or a function that returns one.
|
|
1646
|
-
* It's used to set the container the Slide is transitioning from.
|
|
1647
|
-
*/
|
|
1648
|
-
container: dataDisplay.chainPropTypes(dataDisplay.PropTypes.oneOfType([dataDisplay.HTMLElementType, dataDisplay.PropTypes.func]), (props) => {
|
|
1649
|
-
if (props.open) {
|
|
1650
|
-
const resolvedContainer = resolveContainer(props.container);
|
|
1651
|
-
if (resolvedContainer && resolvedContainer.nodeType === 1) {
|
|
1652
|
-
const box = resolvedContainer.getBoundingClientRect();
|
|
1653
|
-
if (process.env.NODE_ENV !== "test" && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
1654
|
-
return new Error(["MUI: The `container` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join("\n"));
|
|
1655
|
-
}
|
|
1656
|
-
} else if (!resolvedContainer || typeof resolvedContainer.getBoundingClientRect !== "function" || resolvedContainer.contextElement != null && resolvedContainer.contextElement.nodeType !== 1) {
|
|
1657
|
-
return new Error(["MUI: The `container` prop provided to the component is invalid.", "It should be an HTML element instance."].join("\n"));
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
return null;
|
|
1661
|
-
}),
|
|
1662
|
-
/**
|
|
1663
|
-
* Direction the child node will enter from.
|
|
1664
|
-
* @default 'down'
|
|
1665
|
-
*/
|
|
1666
|
-
direction: dataDisplay.PropTypes.oneOf(["down", "left", "right", "up"]),
|
|
1667
|
-
/**
|
|
1668
|
-
* The transition timing function.
|
|
1669
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
1670
|
-
* @default {
|
|
1671
|
-
* enter: theme.transitions.easing.easeOut,
|
|
1672
|
-
* exit: theme.transitions.easing.sharp,
|
|
1673
|
-
* }
|
|
1674
|
-
*/
|
|
1675
|
-
easing: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.shape({
|
|
1676
|
-
enter: dataDisplay.PropTypes.string,
|
|
1677
|
-
exit: dataDisplay.PropTypes.string
|
|
1678
|
-
}), dataDisplay.PropTypes.string]),
|
|
1679
|
-
/**
|
|
1680
|
-
* If `true`, the component will transition in.
|
|
1681
|
-
*/
|
|
1682
|
-
in: dataDisplay.PropTypes.bool,
|
|
1683
|
-
/**
|
|
1684
|
-
* @ignore
|
|
1685
|
-
*/
|
|
1686
|
-
onEnter: dataDisplay.PropTypes.func,
|
|
1687
|
-
/**
|
|
1688
|
-
* @ignore
|
|
1689
|
-
*/
|
|
1690
|
-
onEntered: dataDisplay.PropTypes.func,
|
|
1691
|
-
/**
|
|
1692
|
-
* @ignore
|
|
1693
|
-
*/
|
|
1694
|
-
onEntering: dataDisplay.PropTypes.func,
|
|
1695
|
-
/**
|
|
1696
|
-
* @ignore
|
|
1697
|
-
*/
|
|
1698
|
-
onExit: dataDisplay.PropTypes.func,
|
|
1699
|
-
/**
|
|
1700
|
-
* @ignore
|
|
1701
|
-
*/
|
|
1702
|
-
onExited: dataDisplay.PropTypes.func,
|
|
1703
|
-
/**
|
|
1704
|
-
* @ignore
|
|
1705
|
-
*/
|
|
1706
|
-
onExiting: dataDisplay.PropTypes.func,
|
|
1707
|
-
/**
|
|
1708
|
-
* @ignore
|
|
1709
|
-
*/
|
|
1710
|
-
style: dataDisplay.PropTypes.object,
|
|
1711
|
-
/**
|
|
1712
|
-
* The duration for the transition, in milliseconds.
|
|
1713
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
1714
|
-
* @default {
|
|
1715
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
1716
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
1717
|
-
* }
|
|
1718
|
-
*/
|
|
1719
|
-
timeout: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.number, dataDisplay.PropTypes.shape({
|
|
1720
|
-
appear: dataDisplay.PropTypes.number,
|
|
1721
|
-
enter: dataDisplay.PropTypes.number,
|
|
1722
|
-
exit: dataDisplay.PropTypes.number
|
|
1723
|
-
})])
|
|
1724
|
-
} : void 0;
|
|
1725
|
-
function getDrawerUtilityClass(slot) {
|
|
1726
|
-
return dataDisplay.generateUtilityClass("MuiDrawer", slot);
|
|
1727
|
-
}
|
|
1728
|
-
dataDisplay.generateUtilityClasses("MuiDrawer", ["root", "docked", "paper", "anchorLeft", "anchorRight", "anchorTop", "anchorBottom", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
|
|
1729
|
-
const overridesResolver = (props, styles) => {
|
|
1730
|
-
const {
|
|
1731
|
-
ownerState
|
|
1732
|
-
} = props;
|
|
1733
|
-
return [styles.root, (ownerState.variant === "permanent" || ownerState.variant === "persistent") && styles.docked, styles.modal];
|
|
1734
|
-
};
|
|
1735
|
-
const useUtilityClasses = (ownerState) => {
|
|
1736
|
-
const {
|
|
1737
|
-
classes,
|
|
1738
|
-
anchor,
|
|
1739
|
-
variant
|
|
1740
|
-
} = ownerState;
|
|
1741
|
-
const slots = {
|
|
1742
|
-
root: ["root", `anchor${dataDisplay.capitalize(anchor)}`],
|
|
1743
|
-
docked: [(variant === "permanent" || variant === "persistent") && "docked"],
|
|
1744
|
-
modal: ["modal"],
|
|
1745
|
-
paper: ["paper", `paperAnchor${dataDisplay.capitalize(anchor)}`, variant !== "temporary" && `paperAnchorDocked${dataDisplay.capitalize(anchor)}`]
|
|
1746
|
-
};
|
|
1747
|
-
return dataDisplay.composeClasses(slots, getDrawerUtilityClass, classes);
|
|
1748
|
-
};
|
|
1749
|
-
const DrawerRoot = dataDisplay.styled(datePickers.Modal, {
|
|
1750
|
-
name: "MuiDrawer",
|
|
1751
|
-
slot: "Root",
|
|
1752
|
-
overridesResolver
|
|
1753
|
-
})(dataDisplay.memoTheme(({
|
|
1754
|
-
theme
|
|
1755
|
-
}) => ({
|
|
1756
|
-
zIndex: (theme.vars || theme).zIndex.drawer
|
|
1757
|
-
})));
|
|
1758
|
-
const DrawerDockedRoot = dataDisplay.styled("div", {
|
|
1759
|
-
shouldForwardProp: dataDisplay.rootShouldForwardProp,
|
|
1760
|
-
name: "MuiDrawer",
|
|
1761
|
-
slot: "Docked",
|
|
1762
|
-
skipVariantsResolver: false,
|
|
1763
|
-
overridesResolver
|
|
1764
|
-
})({
|
|
1765
|
-
flex: "0 0 auto"
|
|
1766
|
-
});
|
|
1767
|
-
const DrawerPaper = dataDisplay.styled(datePickers.Paper, {
|
|
1768
|
-
name: "MuiDrawer",
|
|
1769
|
-
slot: "Paper",
|
|
1770
|
-
overridesResolver: (props, styles) => {
|
|
1771
|
-
const {
|
|
1772
|
-
ownerState
|
|
1773
|
-
} = props;
|
|
1774
|
-
return [styles.paper, styles[`paperAnchor${dataDisplay.capitalize(ownerState.anchor)}`], ownerState.variant !== "temporary" && styles[`paperAnchorDocked${dataDisplay.capitalize(ownerState.anchor)}`]];
|
|
1775
|
-
}
|
|
1776
|
-
})(dataDisplay.memoTheme(({
|
|
1777
|
-
theme
|
|
1778
|
-
}) => ({
|
|
1779
|
-
overflowY: "auto",
|
|
1780
|
-
display: "flex",
|
|
1781
|
-
flexDirection: "column",
|
|
1782
|
-
height: "100%",
|
|
1783
|
-
flex: "1 0 auto",
|
|
1784
|
-
zIndex: (theme.vars || theme).zIndex.drawer,
|
|
1785
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
1786
|
-
WebkitOverflowScrolling: "touch",
|
|
1787
|
-
// temporary style
|
|
1788
|
-
position: "fixed",
|
|
1789
|
-
top: 0,
|
|
1790
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1791
|
-
// At some point, it would be better to keep it for keyboard users.
|
|
1792
|
-
// :focus-ring CSS pseudo-class will help.
|
|
1793
|
-
outline: 0,
|
|
1794
|
-
variants: [{
|
|
1795
|
-
props: {
|
|
1796
|
-
anchor: "left"
|
|
1797
|
-
},
|
|
1798
|
-
style: {
|
|
1799
|
-
left: 0
|
|
1800
|
-
}
|
|
1801
|
-
}, {
|
|
1802
|
-
props: {
|
|
1803
|
-
anchor: "top"
|
|
1804
|
-
},
|
|
1805
|
-
style: {
|
|
1806
|
-
top: 0,
|
|
1807
|
-
left: 0,
|
|
1808
|
-
right: 0,
|
|
1809
|
-
height: "auto",
|
|
1810
|
-
maxHeight: "100%"
|
|
1811
|
-
}
|
|
1812
|
-
}, {
|
|
1813
|
-
props: {
|
|
1814
|
-
anchor: "right"
|
|
1815
|
-
},
|
|
1816
|
-
style: {
|
|
1817
|
-
right: 0
|
|
1818
|
-
}
|
|
1819
|
-
}, {
|
|
1820
|
-
props: {
|
|
1821
|
-
anchor: "bottom"
|
|
1822
|
-
},
|
|
1823
|
-
style: {
|
|
1824
|
-
top: "auto",
|
|
1825
|
-
left: 0,
|
|
1826
|
-
bottom: 0,
|
|
1827
|
-
right: 0,
|
|
1828
|
-
height: "auto",
|
|
1829
|
-
maxHeight: "100%"
|
|
1830
|
-
}
|
|
1831
|
-
}, {
|
|
1832
|
-
props: ({
|
|
1833
|
-
ownerState
|
|
1834
|
-
}) => ownerState.anchor === "left" && ownerState.variant !== "temporary",
|
|
1835
|
-
style: {
|
|
1836
|
-
borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
1837
|
-
}
|
|
1838
|
-
}, {
|
|
1839
|
-
props: ({
|
|
1840
|
-
ownerState
|
|
1841
|
-
}) => ownerState.anchor === "top" && ownerState.variant !== "temporary",
|
|
1842
|
-
style: {
|
|
1843
|
-
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
1844
|
-
}
|
|
1845
|
-
}, {
|
|
1846
|
-
props: ({
|
|
1847
|
-
ownerState
|
|
1848
|
-
}) => ownerState.anchor === "right" && ownerState.variant !== "temporary",
|
|
1849
|
-
style: {
|
|
1850
|
-
borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
1851
|
-
}
|
|
1852
|
-
}, {
|
|
1853
|
-
props: ({
|
|
1854
|
-
ownerState
|
|
1855
|
-
}) => ownerState.anchor === "bottom" && ownerState.variant !== "temporary",
|
|
1856
|
-
style: {
|
|
1857
|
-
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
1858
|
-
}
|
|
1859
|
-
}]
|
|
1860
|
-
})));
|
|
1861
|
-
const oppositeDirection = {
|
|
1862
|
-
left: "right",
|
|
1863
|
-
right: "left",
|
|
1864
|
-
top: "down",
|
|
1865
|
-
bottom: "up"
|
|
1866
|
-
};
|
|
1867
|
-
function isHorizontal(anchor) {
|
|
1868
|
-
return ["left", "right"].includes(anchor);
|
|
1869
|
-
}
|
|
1870
|
-
function getAnchor({
|
|
1871
|
-
direction
|
|
1872
|
-
}, anchor) {
|
|
1873
|
-
return direction === "rtl" && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
|
|
1874
|
-
}
|
|
1875
|
-
const Drawer$1 = /* @__PURE__ */ React__namespace.forwardRef(function Drawer(inProps, ref) {
|
|
1876
|
-
const props = dataDisplay.useDefaultProps({
|
|
1877
|
-
props: inProps,
|
|
1878
|
-
name: "MuiDrawer"
|
|
1879
|
-
});
|
|
1880
|
-
const theme = dataDisplay.useTheme();
|
|
1881
|
-
const isRtl = dataDisplay.useRtl();
|
|
1882
|
-
const defaultTransitionDuration = {
|
|
1883
|
-
enter: theme.transitions.duration.enteringScreen,
|
|
1884
|
-
exit: theme.transitions.duration.leavingScreen
|
|
1885
|
-
};
|
|
1886
|
-
const {
|
|
1887
|
-
anchor: anchorProp = "left",
|
|
1888
|
-
BackdropProps,
|
|
1889
|
-
children,
|
|
1890
|
-
className,
|
|
1891
|
-
elevation = 16,
|
|
1892
|
-
hideBackdrop = false,
|
|
1893
|
-
ModalProps: {
|
|
1894
|
-
BackdropProps: BackdropPropsProp,
|
|
1895
|
-
...ModalProps
|
|
1896
|
-
} = {},
|
|
1897
|
-
onClose,
|
|
1898
|
-
open = false,
|
|
1899
|
-
PaperProps = {},
|
|
1900
|
-
SlideProps,
|
|
1901
|
-
// eslint-disable-next-line react/prop-types
|
|
1902
|
-
TransitionComponent,
|
|
1903
|
-
transitionDuration = defaultTransitionDuration,
|
|
1904
|
-
variant = "temporary",
|
|
1905
|
-
slots = {},
|
|
1906
|
-
slotProps = {},
|
|
1907
|
-
...other
|
|
1908
|
-
} = props;
|
|
1909
|
-
const mounted = React__namespace.useRef(false);
|
|
1910
|
-
React__namespace.useEffect(() => {
|
|
1911
|
-
mounted.current = true;
|
|
1912
|
-
}, []);
|
|
1913
|
-
const anchorInvariant = getAnchor({
|
|
1914
|
-
direction: isRtl ? "rtl" : "ltr"
|
|
1915
|
-
}, anchorProp);
|
|
1916
|
-
const anchor = anchorProp;
|
|
1917
|
-
const ownerState = {
|
|
1918
|
-
...props,
|
|
1919
|
-
anchor,
|
|
1920
|
-
elevation,
|
|
1921
|
-
open,
|
|
1922
|
-
variant,
|
|
1923
|
-
...other
|
|
1924
|
-
};
|
|
1925
|
-
const classes = useUtilityClasses(ownerState);
|
|
1926
|
-
const externalForwardedProps = {
|
|
1927
|
-
slots: {
|
|
1928
|
-
transition: TransitionComponent,
|
|
1929
|
-
...slots
|
|
1930
|
-
},
|
|
1931
|
-
slotProps: {
|
|
1932
|
-
paper: PaperProps,
|
|
1933
|
-
transition: SlideProps,
|
|
1934
|
-
...slotProps,
|
|
1935
|
-
backdrop: dataDisplay.mergeSlotProps$1(slotProps.backdrop || {
|
|
1936
|
-
...BackdropProps,
|
|
1937
|
-
...BackdropPropsProp
|
|
1938
|
-
}, {
|
|
1939
|
-
transitionDuration
|
|
1940
|
-
})
|
|
1941
|
-
}
|
|
1942
|
-
};
|
|
1943
|
-
const [RootSlot, rootSlotProps] = datePickers.useSlot("root", {
|
|
1944
|
-
ref,
|
|
1945
|
-
elementType: DrawerRoot,
|
|
1946
|
-
className: dataDisplay.clsx(classes.root, classes.modal, className),
|
|
1947
|
-
shouldForwardComponentProp: true,
|
|
1948
|
-
ownerState,
|
|
1949
|
-
externalForwardedProps: {
|
|
1950
|
-
...externalForwardedProps,
|
|
1951
|
-
...other,
|
|
1952
|
-
...ModalProps
|
|
1953
|
-
},
|
|
1954
|
-
additionalProps: {
|
|
1955
|
-
open,
|
|
1956
|
-
onClose,
|
|
1957
|
-
hideBackdrop,
|
|
1958
|
-
slots: {
|
|
1959
|
-
backdrop: externalForwardedProps.slots.backdrop
|
|
1960
|
-
},
|
|
1961
|
-
slotProps: {
|
|
1962
|
-
backdrop: externalForwardedProps.slotProps.backdrop
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
});
|
|
1966
|
-
const [PaperSlot, paperSlotProps] = datePickers.useSlot("paper", {
|
|
1967
|
-
elementType: DrawerPaper,
|
|
1968
|
-
shouldForwardComponentProp: true,
|
|
1969
|
-
className: dataDisplay.clsx(classes.paper, PaperProps.className),
|
|
1970
|
-
ownerState,
|
|
1971
|
-
externalForwardedProps,
|
|
1972
|
-
additionalProps: {
|
|
1973
|
-
elevation: variant === "temporary" ? elevation : 0,
|
|
1974
|
-
square: true
|
|
1975
|
-
}
|
|
1976
|
-
});
|
|
1977
|
-
const [DockedSlot, dockedSlotProps] = datePickers.useSlot("docked", {
|
|
1978
|
-
elementType: DrawerDockedRoot,
|
|
1979
|
-
ref,
|
|
1980
|
-
className: dataDisplay.clsx(classes.root, classes.docked, className),
|
|
1981
|
-
ownerState,
|
|
1982
|
-
externalForwardedProps,
|
|
1983
|
-
additionalProps: other
|
|
1984
|
-
// pass `other` here because `DockedSlot` is also a root slot for some variants
|
|
1985
|
-
});
|
|
1986
|
-
const [TransitionSlot, transitionSlotProps] = datePickers.useSlot("transition", {
|
|
1987
|
-
elementType: Slide,
|
|
1988
|
-
ownerState,
|
|
1989
|
-
externalForwardedProps,
|
|
1990
|
-
additionalProps: {
|
|
1991
|
-
in: open,
|
|
1992
|
-
direction: oppositeDirection[anchorInvariant],
|
|
1993
|
-
timeout: transitionDuration,
|
|
1994
|
-
appear: mounted.current
|
|
1995
|
-
}
|
|
1996
|
-
});
|
|
1997
|
-
const drawer = /* @__PURE__ */ jsxRuntime.jsx(PaperSlot, {
|
|
1998
|
-
...paperSlotProps,
|
|
1999
|
-
children
|
|
2000
|
-
});
|
|
2001
|
-
if (variant === "permanent") {
|
|
2002
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DockedSlot, {
|
|
2003
|
-
...dockedSlotProps,
|
|
2004
|
-
children: drawer
|
|
2005
|
-
});
|
|
2006
|
-
}
|
|
2007
|
-
const slidingDrawer = /* @__PURE__ */ jsxRuntime.jsx(TransitionSlot, {
|
|
2008
|
-
...transitionSlotProps,
|
|
2009
|
-
children: drawer
|
|
2010
|
-
});
|
|
2011
|
-
if (variant === "persistent") {
|
|
2012
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DockedSlot, {
|
|
2013
|
-
...dockedSlotProps,
|
|
2014
|
-
children: slidingDrawer
|
|
2015
|
-
});
|
|
2016
|
-
}
|
|
2017
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RootSlot, {
|
|
2018
|
-
...rootSlotProps,
|
|
2019
|
-
children: slidingDrawer
|
|
2020
|
-
});
|
|
2021
|
-
});
|
|
2022
|
-
process.env.NODE_ENV !== "production" ? Drawer$1.propTypes = {
|
|
2023
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2024
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2025
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
2026
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
2027
|
-
/**
|
|
2028
|
-
* Side from which the drawer will appear.
|
|
2029
|
-
* @default 'left'
|
|
2030
|
-
*/
|
|
2031
|
-
anchor: dataDisplay.PropTypes.oneOf(["bottom", "left", "right", "top"]),
|
|
2032
|
-
/**
|
|
2033
|
-
* @ignore
|
|
2034
|
-
*/
|
|
2035
|
-
BackdropProps: dataDisplay.PropTypes.object,
|
|
2036
|
-
/**
|
|
2037
|
-
* The content of the component.
|
|
2038
|
-
*/
|
|
2039
|
-
children: dataDisplay.PropTypes.node,
|
|
2040
|
-
/**
|
|
2041
|
-
* Override or extend the styles applied to the component.
|
|
2042
|
-
*/
|
|
2043
|
-
classes: dataDisplay.PropTypes.object,
|
|
2044
|
-
/**
|
|
2045
|
-
* @ignore
|
|
2046
|
-
*/
|
|
2047
|
-
className: dataDisplay.PropTypes.string,
|
|
2048
|
-
/**
|
|
2049
|
-
* The elevation of the drawer.
|
|
2050
|
-
* @default 16
|
|
2051
|
-
*/
|
|
2052
|
-
elevation: dataDisplay.integerPropType,
|
|
2053
|
-
/**
|
|
2054
|
-
* If `true`, the backdrop is not rendered.
|
|
2055
|
-
* @default false
|
|
2056
|
-
*/
|
|
2057
|
-
hideBackdrop: dataDisplay.PropTypes.bool,
|
|
2058
|
-
/**
|
|
2059
|
-
* Props applied to the [`Modal`](https://mui.com/material-ui/api/modal/) element.
|
|
2060
|
-
* @default {}
|
|
2061
|
-
*/
|
|
2062
|
-
ModalProps: dataDisplay.PropTypes.object,
|
|
2063
|
-
/**
|
|
2064
|
-
* Callback fired when the component requests to be closed.
|
|
2065
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
2066
|
-
*
|
|
2067
|
-
* @param {object} event The event source of the callback.
|
|
2068
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
2069
|
-
*/
|
|
2070
|
-
onClose: dataDisplay.PropTypes.func,
|
|
2071
|
-
/**
|
|
2072
|
-
* If `true`, the component is shown.
|
|
2073
|
-
* @default false
|
|
2074
|
-
*/
|
|
2075
|
-
open: dataDisplay.PropTypes.bool,
|
|
2076
|
-
/**
|
|
2077
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
2078
|
-
* @deprecated use the `slotProps.paper` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2079
|
-
* @default {}
|
|
2080
|
-
*/
|
|
2081
|
-
PaperProps: dataDisplay.PropTypes.object,
|
|
2082
|
-
/**
|
|
2083
|
-
* Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
|
|
2084
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2085
|
-
*/
|
|
2086
|
-
SlideProps: dataDisplay.PropTypes.object,
|
|
2087
|
-
/**
|
|
2088
|
-
* The props used for each slot inside.
|
|
2089
|
-
* @default {}
|
|
2090
|
-
*/
|
|
2091
|
-
slotProps: dataDisplay.PropTypes.shape({
|
|
2092
|
-
backdrop: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
2093
|
-
docked: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
2094
|
-
paper: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
2095
|
-
root: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
2096
|
-
transition: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object])
|
|
2097
|
-
}),
|
|
2098
|
-
/**
|
|
2099
|
-
* The components used for each slot inside.
|
|
2100
|
-
* @default {}
|
|
2101
|
-
*/
|
|
2102
|
-
slots: dataDisplay.PropTypes.shape({
|
|
2103
|
-
backdrop: dataDisplay.PropTypes.elementType,
|
|
2104
|
-
docked: dataDisplay.PropTypes.elementType,
|
|
2105
|
-
paper: dataDisplay.PropTypes.elementType,
|
|
2106
|
-
root: dataDisplay.PropTypes.elementType,
|
|
2107
|
-
transition: dataDisplay.PropTypes.elementType
|
|
2108
|
-
}),
|
|
2109
|
-
/**
|
|
2110
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2111
|
-
*/
|
|
2112
|
-
sx: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.arrayOf(dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.func, dataDisplay.PropTypes.object, dataDisplay.PropTypes.bool])), dataDisplay.PropTypes.func, dataDisplay.PropTypes.object]),
|
|
2113
|
-
/**
|
|
2114
|
-
* The duration for the transition, in milliseconds.
|
|
2115
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
2116
|
-
* @default {
|
|
2117
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
2118
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
2119
|
-
* }
|
|
2120
|
-
*/
|
|
2121
|
-
transitionDuration: dataDisplay.PropTypes.oneOfType([dataDisplay.PropTypes.number, dataDisplay.PropTypes.shape({
|
|
2122
|
-
appear: dataDisplay.PropTypes.number,
|
|
2123
|
-
enter: dataDisplay.PropTypes.number,
|
|
2124
|
-
exit: dataDisplay.PropTypes.number
|
|
2125
|
-
})]),
|
|
2126
|
-
/**
|
|
2127
|
-
* The variant to use.
|
|
2128
|
-
* @default 'temporary'
|
|
2129
|
-
*/
|
|
2130
|
-
variant: dataDisplay.PropTypes.oneOf(["permanent", "persistent", "temporary"])
|
|
2131
|
-
} : void 0;
|
|
2132
|
-
const Drawer2 = React.forwardRef(
|
|
2133
|
-
({
|
|
2134
|
-
anchor = "left",
|
|
2135
|
-
children,
|
|
2136
|
-
elevation = 16,
|
|
2137
|
-
hideBackdrop = false,
|
|
2138
|
-
ModalProps,
|
|
2139
|
-
onClose,
|
|
2140
|
-
open = false,
|
|
2141
|
-
slotProps,
|
|
2142
|
-
slots,
|
|
2143
|
-
sx,
|
|
2144
|
-
transitionDuration,
|
|
2145
|
-
variant = "temporary",
|
|
2146
|
-
...props
|
|
2147
|
-
}, ref) => {
|
|
2148
|
-
const theme = dataDisplay.useTheme();
|
|
2149
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2150
|
-
Drawer$1,
|
|
2151
|
-
{
|
|
2152
|
-
ref,
|
|
2153
|
-
anchor,
|
|
2154
|
-
elevation,
|
|
2155
|
-
hideBackdrop,
|
|
2156
|
-
ModalProps,
|
|
2157
|
-
onClose,
|
|
2158
|
-
open,
|
|
2159
|
-
slotProps,
|
|
2160
|
-
slots,
|
|
2161
|
-
transitionDuration,
|
|
2162
|
-
variant,
|
|
2163
|
-
sx: {
|
|
2164
|
-
// Ensure Nunito font is applied to drawer content
|
|
2165
|
-
"& .MuiDrawer-paper": {
|
|
2166
|
-
fontFamily: theme.typography.fontFamily
|
|
2167
|
-
},
|
|
2168
|
-
...sx
|
|
2169
|
-
},
|
|
2170
|
-
...props,
|
|
2171
|
-
children
|
|
2172
|
-
}
|
|
2173
|
-
);
|
|
2174
|
-
}
|
|
2175
|
-
);
|
|
2176
|
-
Drawer2.displayName = "Drawer";
|
|
2177
|
-
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2178
|
-
__proto__: null,
|
|
2179
|
-
Drawer: Drawer2
|
|
2180
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2181
|
-
const ExpandableNavItem = React.forwardRef(
|
|
2182
|
-
({
|
|
2183
|
-
label,
|
|
2184
|
-
icon,
|
|
2185
|
-
isOpen = false,
|
|
2186
|
-
onToggle,
|
|
2187
|
-
children = [],
|
|
2188
|
-
selected = false,
|
|
2189
|
-
onClick,
|
|
2190
|
-
ListItemButtonProps,
|
|
2191
|
-
childListItemButtonProps
|
|
2192
|
-
}, ref) => {
|
|
2193
|
-
const theme = dataDisplay.useTheme();
|
|
2194
|
-
const handleParentClick = () => {
|
|
2195
|
-
if (onToggle) {
|
|
2196
|
-
onToggle();
|
|
2197
|
-
}
|
|
2198
|
-
if (onClick) {
|
|
2199
|
-
onClick();
|
|
2200
|
-
}
|
|
2201
|
-
};
|
|
2202
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, children: [
|
|
2203
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2204
|
-
datePickers.ListItemButton,
|
|
2205
|
-
{
|
|
2206
|
-
selected,
|
|
2207
|
-
onClick: handleParentClick,
|
|
2208
|
-
sx: {
|
|
2209
|
-
fontFamily: theme.typography.fontFamily,
|
|
2210
|
-
...ListItemButtonProps?.sx
|
|
2211
|
-
},
|
|
2212
|
-
...ListItemButtonProps,
|
|
2213
|
-
children: [
|
|
2214
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx(datePickers.ListItemIcon, { sx: { minWidth: 40 }, children: icon }),
|
|
2215
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2216
|
-
datePickers.ListItemText,
|
|
2217
|
-
{
|
|
2218
|
-
primary: label,
|
|
2219
|
-
primaryTypographyProps: {
|
|
2220
|
-
fontFamily: theme.typography.fontFamily,
|
|
2221
|
-
fontWeight: selected ? 600 : 400
|
|
2222
|
-
}
|
|
2223
|
-
}
|
|
2224
|
-
),
|
|
2225
|
-
children.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(MaterialSymbol, { icon: isOpen ? "expand_less" : "expand_more", size: "medium" })
|
|
2226
|
-
]
|
|
2227
|
-
}
|
|
2228
|
-
),
|
|
2229
|
-
children.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(Collapse, { in: isOpen, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsxRuntime.jsx(datePickers.List, { component: "div", disablePadding: true, children: children.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2230
|
-
datePickers.ListItemButton,
|
|
2231
|
-
{
|
|
2232
|
-
selected: child.selected,
|
|
2233
|
-
onClick: child.onClick,
|
|
2234
|
-
sx: {
|
|
2235
|
-
pl: icon ? 9 : 4,
|
|
2236
|
-
fontFamily: theme.typography.fontFamily,
|
|
2237
|
-
...childListItemButtonProps?.sx
|
|
2238
|
-
},
|
|
2239
|
-
...childListItemButtonProps,
|
|
2240
|
-
children: [
|
|
2241
|
-
child.icon && /* @__PURE__ */ jsxRuntime.jsx(datePickers.ListItemIcon, { sx: { minWidth: 40 }, children: child.icon }),
|
|
2242
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2243
|
-
datePickers.ListItemText,
|
|
2244
|
-
{
|
|
2245
|
-
primary: child.label,
|
|
2246
|
-
primaryTypographyProps: {
|
|
2247
|
-
fontFamily: theme.typography.fontFamily,
|
|
2248
|
-
fontSize: "0.875rem",
|
|
2249
|
-
fontWeight: child.selected ? 600 : 400
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
)
|
|
2253
|
-
]
|
|
2254
|
-
},
|
|
2255
|
-
index2
|
|
2256
|
-
)) }) })
|
|
2257
|
-
] });
|
|
2258
|
-
}
|
|
2259
|
-
);
|
|
2260
|
-
ExpandableNavItem.displayName = "ExpandableNavItem";
|
|
2261
|
-
function isExpandableItem(item) {
|
|
2262
|
-
return item.expandable === true;
|
|
2263
|
-
}
|
|
2264
|
-
const DrawerNavigation = React.forwardRef(
|
|
2265
|
-
({ items, width = 256, paddingTop = 32, paddingBottom = 32, sx, listSx, onItemClick }, ref) => {
|
|
2266
|
-
const theme = dataDisplay.useTheme();
|
|
2267
|
-
const [openItems, setOpenItems] = React.useState(() => {
|
|
2268
|
-
const initial = {};
|
|
2269
|
-
items.forEach((item, index2) => {
|
|
2270
|
-
if (isExpandableItem(item)) {
|
|
2271
|
-
const key = item.id || `item-${index2}`;
|
|
2272
|
-
initial[key] = item.defaultOpen || false;
|
|
2273
|
-
}
|
|
2274
|
-
});
|
|
2275
|
-
return initial;
|
|
2276
|
-
});
|
|
2277
|
-
const handleToggle = (itemId) => {
|
|
2278
|
-
setOpenItems((prev) => ({
|
|
2279
|
-
...prev,
|
|
2280
|
-
[itemId]: !prev[itemId]
|
|
2281
|
-
}));
|
|
2282
|
-
};
|
|
2283
|
-
const handleItemClick = (item) => {
|
|
2284
|
-
if (item.onClick) {
|
|
2285
|
-
item.onClick();
|
|
2286
|
-
}
|
|
2287
|
-
if (onItemClick) {
|
|
2288
|
-
onItemClick(item);
|
|
2289
|
-
}
|
|
2290
|
-
};
|
|
2291
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2292
|
-
Box,
|
|
2293
|
-
{
|
|
2294
|
-
ref,
|
|
2295
|
-
sx: {
|
|
2296
|
-
width,
|
|
2297
|
-
paddingTop: `${paddingTop}px`,
|
|
2298
|
-
paddingBottom: `${paddingBottom}px`,
|
|
2299
|
-
fontFamily: theme.typography.fontFamily,
|
|
2300
|
-
...sx
|
|
2301
|
-
},
|
|
2302
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2303
|
-
datePickers.List,
|
|
2304
|
-
{
|
|
2305
|
-
sx: {
|
|
2306
|
-
"& .MuiListItemButton-root": {
|
|
2307
|
-
fontFamily: theme.typography.fontFamily
|
|
2308
|
-
},
|
|
2309
|
-
...listSx
|
|
2310
|
-
},
|
|
2311
|
-
children: items.map((item, index2) => {
|
|
2312
|
-
const itemId = item.id || `item-${index2}`;
|
|
2313
|
-
const isLast = index2 === items.length - 1;
|
|
2314
|
-
if (isExpandableItem(item)) {
|
|
2315
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
2316
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2317
|
-
ExpandableNavItem,
|
|
2318
|
-
{
|
|
2319
|
-
label: item.label,
|
|
2320
|
-
icon: item.icon,
|
|
2321
|
-
isOpen: openItems[itemId],
|
|
2322
|
-
onToggle: () => handleToggle(itemId),
|
|
2323
|
-
selected: item.selected,
|
|
2324
|
-
onClick: () => handleItemClick(item),
|
|
2325
|
-
children: item.children
|
|
2326
|
-
}
|
|
2327
|
-
),
|
|
2328
|
-
(item.divider || !isLast && items[index2 + 1]?.divider) && /* @__PURE__ */ jsxRuntime.jsx(datePickers.Divider, { sx: { my: 1 } })
|
|
2329
|
-
] }, itemId);
|
|
2330
|
-
}
|
|
2331
|
-
const simpleItem = item;
|
|
2332
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
2333
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2334
|
-
datePickers.ListItemButton,
|
|
2335
|
-
{
|
|
2336
|
-
selected: simpleItem.selected,
|
|
2337
|
-
onClick: () => handleItemClick(simpleItem),
|
|
2338
|
-
sx: {
|
|
2339
|
-
fontFamily: theme.typography.fontFamily
|
|
2340
|
-
},
|
|
2341
|
-
children: [
|
|
2342
|
-
simpleItem.icon && /* @__PURE__ */ jsxRuntime.jsx(datePickers.ListItemIcon, { sx: { minWidth: 40 }, children: simpleItem.icon }),
|
|
2343
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2344
|
-
datePickers.ListItemText,
|
|
2345
|
-
{
|
|
2346
|
-
primary: simpleItem.label,
|
|
2347
|
-
primaryTypographyProps: {
|
|
2348
|
-
fontFamily: theme.typography.fontFamily,
|
|
2349
|
-
fontWeight: simpleItem.selected ? 600 : 400
|
|
2350
|
-
}
|
|
2351
|
-
}
|
|
2352
|
-
)
|
|
2353
|
-
]
|
|
2354
|
-
}
|
|
2355
|
-
),
|
|
2356
|
-
(simpleItem.divider || !isLast && items[index2 + 1]?.divider) && /* @__PURE__ */ jsxRuntime.jsx(datePickers.Divider, { sx: { my: 1 } })
|
|
2357
|
-
] }, itemId);
|
|
2358
|
-
})
|
|
2359
|
-
}
|
|
2360
|
-
)
|
|
2361
|
-
}
|
|
2362
|
-
);
|
|
2363
|
-
}
|
|
2364
|
-
);
|
|
2365
|
-
DrawerNavigation.displayName = "DrawerNavigation";
|
|
2366
|
-
exports.Box = Box;
|
|
2367
|
-
exports.Collapse = Collapse;
|
|
2368
|
-
exports.Dialog = Dialog2;
|
|
2369
|
-
exports.DialogActions = DialogActions;
|
|
2370
|
-
exports.DialogContent = DialogContent;
|
|
2371
|
-
exports.DialogContentText = DialogContentText;
|
|
2372
|
-
exports.DialogTitle = DialogTitle;
|
|
2373
|
-
exports.Drawer = Drawer2;
|
|
2374
|
-
exports.DrawerNavigation = DrawerNavigation;
|
|
2375
|
-
exports.ExpandableNavItem = ExpandableNavItem;
|
|
2376
|
-
exports.MaterialSymbol = MaterialSymbol;
|
|
2377
|
-
exports.PickersModalDialog = PickersModalDialog;
|
|
2378
|
-
exports.index = index$1;
|
|
2379
|
-
exports.index$1 = index;
|
|
2380
|
-
//# sourceMappingURL=overlays-Cx39IOTG.js.map
|