@fangzsx/component-library 0.0.20 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ButtonBase-DxZEqM87.js → ButtonBase-DycJOmlJ.js} +7 -6
- package/dist/{useForkRef-gLJikozA.js → DefaultPropsProvider-DVX_ssOt.js} +101 -125
- package/dist/{FormLabel-DLyFlUyL.js → FormLabel-D4ON51Wt.js} +1 -1
- package/dist/{Paper-DZg6u5tT.js → Paper-oafkOzNM.js} +1 -1
- package/dist/{SwitchBase-BPRcMkqu.js → SwitchBase-V2UoemN5.js} +3 -3
- package/dist/{Typography-DMROEdKW.js → Typography-CTrRb9FL.js} +2 -2
- package/dist/components/AppBarPublic/index.js +5 -5
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Checkbox/index.js +5 -5
- package/dist/components/Dialog/index.d.ts +18 -0
- package/dist/components/Dialog/index.js +67 -0
- package/dist/components/MediaCardWithAction/index.js +4 -4
- package/dist/components/RadioButtonGroup/index.js +12 -11
- package/dist/components/Stepper/index.d.ts +2 -5
- package/dist/components/Stepper/index.js +150 -174
- package/dist/components/TextFieldInput/index.js +32 -31
- package/dist/{createSvgIcon-ChKzptBc.js → createSvgIcon-C0YrvByi.js} +1 -1
- package/dist/{index-B08hLYdM.js → index-BPIwhwks.js} +2 -2
- package/dist/{index-1CH5DDiw.js → index-Cx-D0vTo.js} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +15 -13
- package/dist/{mergeSlotProps-CADAqXOb.js → mergeSlotProps-S3NX_8iG.js} +1 -1
- package/dist/useForkRef-9kN4DArm.js +27 -0
- package/dist/{useSlot-jPRhj-MO.js → useSlot-DKccmcQE.js} +13 -12
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
2
|
import W, { isValidElement as H, cloneElement as G, Children as Ve } from "react";
|
|
3
3
|
import { P as e, a as ce, g as Se } from "./generateUtilityClasses-BCID9NF1.js";
|
|
4
|
-
import { c as v, u as pe, s as ne,
|
|
4
|
+
import { c as v, u as pe, s as ne, a as Be } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
5
5
|
import { jsx as $, jsxs as Oe } from "react/jsx-runtime";
|
|
6
|
-
import { u as Le, _ as je, b as ke, T as
|
|
6
|
+
import { u as Le, _ as je, b as ke, T as ae, d as Fe, e as J, f as Ie, r as Ue } from "./useTimeout-DmOXPFt0.js";
|
|
7
7
|
import { keyframes as oe } from "@mui/system";
|
|
8
|
+
import { u as ue } from "./useForkRef-9kN4DArm.js";
|
|
8
9
|
function le(n) {
|
|
9
10
|
try {
|
|
10
11
|
return n.matches(":focus-visible");
|
|
@@ -187,9 +188,9 @@ var Ke = Object.values || function(n) {
|
|
|
187
188
|
}));
|
|
188
189
|
}, o.render = function() {
|
|
189
190
|
var i = this.props, s = i.component, r = i.childFactory, c = ke(i, ["component", "childFactory"]), l = this.state.contextValue, p = Ke(this.state.children).map(r);
|
|
190
|
-
return delete c.appear, delete c.enter, delete c.exit, s === null ? /* @__PURE__ */ W.createElement(
|
|
191
|
+
return delete c.appear, delete c.enter, delete c.exit, s === null ? /* @__PURE__ */ W.createElement(ae.Provider, {
|
|
191
192
|
value: l
|
|
192
|
-
}, p) : /* @__PURE__ */ W.createElement(
|
|
193
|
+
}, p) : /* @__PURE__ */ W.createElement(ae.Provider, {
|
|
193
194
|
value: l
|
|
194
195
|
}, /* @__PURE__ */ W.createElement(s, c, p));
|
|
195
196
|
}, t;
|
|
@@ -633,7 +634,7 @@ const tt = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), nt = (n) =
|
|
|
633
634
|
touchRippleRef: A,
|
|
634
635
|
type: O,
|
|
635
636
|
...U
|
|
636
|
-
} = u, _ = f.useRef(null), b = $e(), he =
|
|
637
|
+
} = u, _ = f.useRef(null), b = $e(), he = ue(b.ref, A), [L, K] = f.useState(!1);
|
|
637
638
|
p && L && K(!1), f.useImperativeHandle(i, () => ({
|
|
638
639
|
focusVisible: () => {
|
|
639
640
|
K(!0), _.current.focus();
|
|
@@ -669,7 +670,7 @@ const tt = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), nt = (n) =
|
|
|
669
670
|
X.type = O === void 0 && !a ? "button" : O, X.disabled = p;
|
|
670
671
|
} else
|
|
671
672
|
!U.href && !U.to && (X.role = "button"), p && (X["aria-disabled"] = p);
|
|
672
|
-
const we =
|
|
673
|
+
const we = ue(o, _), re = {
|
|
673
674
|
...u,
|
|
674
675
|
centerRipple: s,
|
|
675
676
|
component: l,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P, b as ne, r as
|
|
2
|
-
import
|
|
1
|
+
import { P, b as ne, r as j, h as re, s as L, i as oe, c as se, T as ie } from "./generateUtilityClasses-BCID9NF1.js";
|
|
2
|
+
import fe from "@emotion/styled";
|
|
3
3
|
import "@emotion/react";
|
|
4
|
-
import { unstable_memoTheme as
|
|
5
|
-
import * as
|
|
4
|
+
import { unstable_memoTheme as ae } from "@mui/system";
|
|
5
|
+
import * as K from "react";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
function q(e) {
|
|
8
8
|
var t, n, r = "";
|
|
@@ -13,18 +13,18 @@ function q(e) {
|
|
|
13
13
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
14
14
|
return r;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function ue() {
|
|
17
17
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = q(e)) && (r && (r += " "), r += t);
|
|
18
18
|
return r;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ge(e, t, n = void 0) {
|
|
21
21
|
const r = {};
|
|
22
22
|
for (const o in e) {
|
|
23
23
|
const s = e[o];
|
|
24
|
-
let i = "",
|
|
25
|
-
for (let
|
|
26
|
-
const
|
|
27
|
-
|
|
24
|
+
let i = "", f = !0;
|
|
25
|
+
for (let u = 0; u < s.length; u += 1) {
|
|
26
|
+
const a = s[u];
|
|
27
|
+
a && (i += (f === !0 ? "" : " ") + t(a), f = !1, n && n[a] && (i += " " + n[a]));
|
|
28
28
|
}
|
|
29
29
|
r[o] = i;
|
|
30
30
|
}
|
|
@@ -107,7 +107,7 @@ function de(e) {
|
|
|
107
107
|
}
|
|
108
108
|
var me = /[A-Z]|^ms/g, ye = /_EMO_([^_]+?)_([^]*?)_EMO_/g, U = function(t) {
|
|
109
109
|
return t.charCodeAt(1) === 45;
|
|
110
|
-
},
|
|
110
|
+
}, M = function(t) {
|
|
111
111
|
return t != null && typeof t != "boolean";
|
|
112
112
|
}, T = /* @__PURE__ */ de(function(e) {
|
|
113
113
|
return U(e) ? e : e.replace(me, "-$&").toLowerCase();
|
|
@@ -153,14 +153,14 @@ function _(e, t, n) {
|
|
|
153
153
|
styles: i.styles,
|
|
154
154
|
next: p
|
|
155
155
|
}, i = i.next;
|
|
156
|
-
var
|
|
157
|
-
return
|
|
156
|
+
var f = s.styles + ";";
|
|
157
|
+
return f;
|
|
158
158
|
}
|
|
159
159
|
return he(e, t, n);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
var
|
|
163
|
-
return
|
|
162
|
+
var u = n;
|
|
163
|
+
return u;
|
|
164
164
|
}
|
|
165
165
|
function he(e, t, n) {
|
|
166
166
|
var r = "";
|
|
@@ -171,21 +171,21 @@ function he(e, t, n) {
|
|
|
171
171
|
for (var s in n) {
|
|
172
172
|
var i = n[s];
|
|
173
173
|
if (typeof i != "object") {
|
|
174
|
-
var
|
|
175
|
-
|
|
174
|
+
var f = i;
|
|
175
|
+
M(f) && (r += T(s) + ":" + G(s, f) + ";");
|
|
176
176
|
} else if (Array.isArray(i) && typeof i[0] == "string" && t == null)
|
|
177
|
-
for (var
|
|
178
|
-
|
|
177
|
+
for (var u = 0; u < i.length; u++)
|
|
178
|
+
M(i[u]) && (r += T(s) + ":" + G(s, i[u]) + ";");
|
|
179
179
|
else {
|
|
180
|
-
var
|
|
180
|
+
var a = _(e, t, i);
|
|
181
181
|
switch (s) {
|
|
182
182
|
case "animation":
|
|
183
183
|
case "animationName": {
|
|
184
|
-
r += T(s) + ":" +
|
|
184
|
+
r += T(s) + ":" + a + ";";
|
|
185
185
|
break;
|
|
186
186
|
}
|
|
187
187
|
default:
|
|
188
|
-
r += s + "{" +
|
|
188
|
+
r += s + "{" + a + "}";
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -204,23 +204,23 @@ function pe(e, t, n) {
|
|
|
204
204
|
var i = s;
|
|
205
205
|
o += i[0];
|
|
206
206
|
}
|
|
207
|
-
for (var
|
|
208
|
-
if (o += _(n, t, e[
|
|
209
|
-
var
|
|
210
|
-
o +=
|
|
207
|
+
for (var f = 1; f < e.length; f++)
|
|
208
|
+
if (o += _(n, t, e[f]), r) {
|
|
209
|
+
var u = s;
|
|
210
|
+
o += u[f];
|
|
211
211
|
}
|
|
212
212
|
W.lastIndex = 0;
|
|
213
|
-
for (var
|
|
214
|
-
|
|
215
|
-
var
|
|
213
|
+
for (var a = "", c; (c = W.exec(o)) !== null; )
|
|
214
|
+
a += "-" + c[1];
|
|
215
|
+
var w = ce(o) + a;
|
|
216
216
|
return {
|
|
217
|
-
name:
|
|
217
|
+
name: w,
|
|
218
218
|
styles: o,
|
|
219
219
|
next: p
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
function ve(e, t) {
|
|
223
|
-
const n =
|
|
223
|
+
const n = fe(e, t);
|
|
224
224
|
return process.env.NODE_ENV !== "production" ? (...r) => {
|
|
225
225
|
const o = typeof e == "string" ? `"${e}"` : "component";
|
|
226
226
|
return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
@@ -230,11 +230,11 @@ function ve(e, t) {
|
|
|
230
230
|
function xe(e, t) {
|
|
231
231
|
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const k = [];
|
|
234
234
|
function S(e) {
|
|
235
|
-
return
|
|
235
|
+
return k[0] = e, pe(k);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function F(e, t, n = !1) {
|
|
238
238
|
const r = {
|
|
239
239
|
...t
|
|
240
240
|
};
|
|
@@ -247,29 +247,29 @@ function N(e, t, n = !1) {
|
|
|
247
247
|
...r[s]
|
|
248
248
|
};
|
|
249
249
|
else if (s === "componentsProps" || s === "slotProps") {
|
|
250
|
-
const i = e[s],
|
|
251
|
-
if (!
|
|
250
|
+
const i = e[s], f = t[s];
|
|
251
|
+
if (!f)
|
|
252
252
|
r[s] = i || {};
|
|
253
253
|
else if (!i)
|
|
254
|
-
r[s] =
|
|
254
|
+
r[s] = f;
|
|
255
255
|
else {
|
|
256
256
|
r[s] = {
|
|
257
|
-
...
|
|
257
|
+
...f
|
|
258
258
|
};
|
|
259
|
-
for (const
|
|
260
|
-
if (Object.prototype.hasOwnProperty.call(i,
|
|
261
|
-
const
|
|
262
|
-
r[s][
|
|
259
|
+
for (const u in i)
|
|
260
|
+
if (Object.prototype.hasOwnProperty.call(i, u)) {
|
|
261
|
+
const a = u;
|
|
262
|
+
r[s][a] = F(i[a], f[a], n);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
} else s === "className" && n && t.className ? r.className =
|
|
265
|
+
} else s === "className" && n && t.className ? r.className = ue(e?.className, t?.className) : s === "style" && n && t.style ? r.style = {
|
|
266
266
|
...e?.style,
|
|
267
267
|
...t?.style
|
|
268
268
|
} : r[s] === void 0 && (r[s] = e[s]);
|
|
269
269
|
}
|
|
270
270
|
return r;
|
|
271
271
|
}
|
|
272
|
-
const Se = /* @__PURE__ */
|
|
272
|
+
const Se = /* @__PURE__ */ K.createContext(void 0);
|
|
273
273
|
process.env.NODE_ENV !== "production" && (P.node, P.object);
|
|
274
274
|
function we(e) {
|
|
275
275
|
const {
|
|
@@ -280,13 +280,13 @@ function we(e) {
|
|
|
280
280
|
if (!t || !t.components || !t.components[n])
|
|
281
281
|
return r;
|
|
282
282
|
const o = t.components[n];
|
|
283
|
-
return o.defaultProps ?
|
|
283
|
+
return o.defaultProps ? F(o.defaultProps, r, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? F(o, r, t.components.mergeClassNameAndStyle) : r;
|
|
284
284
|
}
|
|
285
285
|
function be({
|
|
286
286
|
props: e,
|
|
287
287
|
name: t
|
|
288
288
|
}) {
|
|
289
|
-
const n =
|
|
289
|
+
const n = K.useContext(Se);
|
|
290
290
|
return we({
|
|
291
291
|
props: e,
|
|
292
292
|
name: t,
|
|
@@ -299,7 +299,7 @@ const ge = ne();
|
|
|
299
299
|
function Y(e, t = "") {
|
|
300
300
|
return e.displayName || e.name || t;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function H(e, t, n) {
|
|
303
303
|
const r = Y(t);
|
|
304
304
|
return e.displayName || (r !== "" ? `${n}(${r})` : n);
|
|
305
305
|
}
|
|
@@ -311,10 +311,10 @@ function Oe(e) {
|
|
|
311
311
|
return Y(e, "Component");
|
|
312
312
|
if (typeof e == "object")
|
|
313
313
|
switch (e.$$typeof) {
|
|
314
|
-
case
|
|
315
|
-
return
|
|
316
|
-
case
|
|
317
|
-
return
|
|
314
|
+
case j.ForwardRef:
|
|
315
|
+
return H(e, e.render, "ForwardRef");
|
|
316
|
+
case j.Memo:
|
|
317
|
+
return H(e, e.type, "memo");
|
|
318
318
|
default:
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
@@ -333,23 +333,23 @@ function Ae(e) {
|
|
|
333
333
|
typeof o.style != "function" && (o.style = S(o.style));
|
|
334
334
|
}), r;
|
|
335
335
|
}
|
|
336
|
-
const
|
|
336
|
+
const Pe = re();
|
|
337
337
|
function $(e) {
|
|
338
338
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
339
339
|
}
|
|
340
340
|
function x(e, t) {
|
|
341
341
|
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function _e(e) {
|
|
344
344
|
return e ? (t, n) => n[e] : null;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
e.theme =
|
|
346
|
+
function Ce(e, t, n) {
|
|
347
|
+
e.theme = $e(e.theme) ? n : e.theme[t] || e.theme;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function A(e, t, n) {
|
|
350
350
|
const r = typeof t == "function" ? t(e) : t;
|
|
351
351
|
if (Array.isArray(r))
|
|
352
|
-
return r.flatMap((o) =>
|
|
352
|
+
return r.flatMap((o) => A(e, o, n));
|
|
353
353
|
if (Array.isArray(r?.variants)) {
|
|
354
354
|
let o;
|
|
355
355
|
if (r.isProcessed)
|
|
@@ -377,8 +377,8 @@ function B(e, t, n = [], r = void 0) {
|
|
|
377
377
|
}, !i.props(o))
|
|
378
378
|
continue;
|
|
379
379
|
} else
|
|
380
|
-
for (const
|
|
381
|
-
if (e[
|
|
380
|
+
for (const f in i.props)
|
|
381
|
+
if (e[f] !== i.props[f] && e.ownerState?.[f] !== i.props[f])
|
|
382
382
|
continue e;
|
|
383
383
|
typeof i.style == "function" ? (o ??= {
|
|
384
384
|
...e,
|
|
@@ -391,86 +391,86 @@ function B(e, t, n = [], r = void 0) {
|
|
|
391
391
|
function Re(e = {}) {
|
|
392
392
|
const {
|
|
393
393
|
themeId: t,
|
|
394
|
-
defaultTheme: n =
|
|
394
|
+
defaultTheme: n = Pe,
|
|
395
395
|
rootShouldForwardProp: r = $,
|
|
396
396
|
slotShouldForwardProp: o = $
|
|
397
397
|
} = e;
|
|
398
|
-
function s(
|
|
399
|
-
|
|
398
|
+
function s(f) {
|
|
399
|
+
Ce(f, t, n);
|
|
400
400
|
}
|
|
401
|
-
return (
|
|
402
|
-
xe(
|
|
401
|
+
return (f, u = {}) => {
|
|
402
|
+
xe(f, (l) => l.filter((d) => d !== L));
|
|
403
403
|
const {
|
|
404
|
-
name:
|
|
404
|
+
name: a,
|
|
405
405
|
slot: c,
|
|
406
|
-
skipVariantsResolver:
|
|
406
|
+
skipVariantsResolver: w,
|
|
407
407
|
skipSx: z,
|
|
408
408
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
409
409
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
410
|
-
overridesResolver:
|
|
410
|
+
overridesResolver: N = _e(Z(c)),
|
|
411
411
|
...J
|
|
412
|
-
} =
|
|
412
|
+
} = u, C = a && a.startsWith("Mui") || c ? "components" : "custom", Q = w !== void 0 ? w : (
|
|
413
413
|
// TODO v6: remove `Root` in the next major release
|
|
414
414
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
415
415
|
c && c !== "Root" && c !== "root" || !1
|
|
416
416
|
), X = z || !1;
|
|
417
|
-
let
|
|
418
|
-
c === "Root" || c === "root" ?
|
|
419
|
-
const
|
|
420
|
-
shouldForwardProp:
|
|
421
|
-
label:
|
|
417
|
+
let b = $;
|
|
418
|
+
c === "Root" || c === "root" ? b = r : c ? b = o : Fe(f) && (b = void 0);
|
|
419
|
+
const R = ve(f, {
|
|
420
|
+
shouldForwardProp: b,
|
|
421
|
+
label: Te(a, c),
|
|
422
422
|
...J
|
|
423
423
|
}), ee = (l) => {
|
|
424
424
|
if (l.__emotion_real === l)
|
|
425
425
|
return l;
|
|
426
426
|
if (typeof l == "function")
|
|
427
427
|
return function(v) {
|
|
428
|
-
return
|
|
428
|
+
return A(v, l, v.theme.modularCssLayers ? C : void 0);
|
|
429
429
|
};
|
|
430
430
|
if (oe(l)) {
|
|
431
431
|
const d = Ae(l);
|
|
432
432
|
return function(h) {
|
|
433
|
-
return d.variants ?
|
|
433
|
+
return d.variants ? A(h, d, h.theme.modularCssLayers ? C : void 0) : h.theme.modularCssLayers ? x(d.style, C) : d.style;
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
436
|
return l;
|
|
437
|
-
},
|
|
437
|
+
}, V = (...l) => {
|
|
438
438
|
const d = [], v = l.map(ee), h = [];
|
|
439
|
-
if (d.push(s),
|
|
440
|
-
const y = m.theme.components?.[
|
|
439
|
+
if (d.push(s), a && N && h.push(function(m) {
|
|
440
|
+
const y = m.theme.components?.[a]?.styleOverrides;
|
|
441
441
|
if (!y)
|
|
442
442
|
return null;
|
|
443
|
-
const
|
|
444
|
-
for (const
|
|
445
|
-
D
|
|
446
|
-
return
|
|
447
|
-
}),
|
|
448
|
-
const y = m.theme?.components?.[
|
|
443
|
+
const I = {};
|
|
444
|
+
for (const D in y)
|
|
445
|
+
I[D] = A(m, y[D], m.theme.modularCssLayers ? "theme" : void 0);
|
|
446
|
+
return N(m, I);
|
|
447
|
+
}), a && !Q && h.push(function(m) {
|
|
448
|
+
const y = m.theme?.components?.[a]?.variants;
|
|
449
449
|
return y ? B(m, y, [], m.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
450
|
-
}), X || h.push(
|
|
451
|
-
const
|
|
450
|
+
}), X || h.push(L), Array.isArray(v[0])) {
|
|
451
|
+
const g = v.shift(), m = new Array(d.length).fill(""), O = new Array(h.length).fill("");
|
|
452
452
|
let y;
|
|
453
|
-
y = [...m, ...
|
|
453
|
+
y = [...m, ...g, ...O], y.raw = [...m, ...g.raw, ...O], d.unshift(y);
|
|
454
454
|
}
|
|
455
|
-
const te = [...d, ...v, ...h],
|
|
456
|
-
return
|
|
455
|
+
const te = [...d, ...v, ...h], E = R(...te);
|
|
456
|
+
return f.muiName && (E.muiName = f.muiName), process.env.NODE_ENV !== "production" && (E.displayName = Ee(a, c, f)), E;
|
|
457
457
|
};
|
|
458
|
-
return
|
|
458
|
+
return R.withConfig && (V.withConfig = R.withConfig), V;
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
function Ee(e, t, n) {
|
|
462
462
|
return e ? `${e}${se(t || "")}` : `Styled(${Oe(n)})`;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Te(e, t) {
|
|
465
465
|
let n;
|
|
466
466
|
return process.env.NODE_ENV !== "production" && e && (n = `${e}-${Z(t || "Root")}`), n;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function $e(e) {
|
|
469
469
|
for (const t in e)
|
|
470
470
|
return !1;
|
|
471
471
|
return !0;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Fe(e) {
|
|
474
474
|
return typeof e == "string" && // 96 is one less than the char code
|
|
475
475
|
// for "a" so this is checking that
|
|
476
476
|
// it's a lowercase character
|
|
@@ -482,47 +482,23 @@ function Z(e) {
|
|
|
482
482
|
function Ne(e) {
|
|
483
483
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
484
484
|
}
|
|
485
|
-
const Ve = (e) => Ne(e) && e !== "classes",
|
|
485
|
+
const Ve = (e) => Ne(e) && e !== "classes", We = Re({
|
|
486
486
|
themeId: ie,
|
|
487
487
|
defaultTheme: ge,
|
|
488
488
|
rootShouldForwardProp: Ve
|
|
489
|
-
}),
|
|
489
|
+
}), ke = ae;
|
|
490
490
|
process.env.NODE_ENV !== "production" && (P.node, P.object.isRequired);
|
|
491
491
|
function He(e) {
|
|
492
492
|
return be(e);
|
|
493
493
|
}
|
|
494
|
-
function Ke(...e) {
|
|
495
|
-
const t = w.useRef(void 0), n = w.useCallback((r) => {
|
|
496
|
-
const o = e.map((s) => {
|
|
497
|
-
if (s == null)
|
|
498
|
-
return null;
|
|
499
|
-
if (typeof s == "function") {
|
|
500
|
-
const i = s, u = i(r);
|
|
501
|
-
return typeof u == "function" ? u : () => {
|
|
502
|
-
i(null);
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
return s.current = r, () => {
|
|
506
|
-
s.current = null;
|
|
507
|
-
};
|
|
508
|
-
});
|
|
509
|
-
return () => {
|
|
510
|
-
o.forEach((s) => s?.());
|
|
511
|
-
};
|
|
512
|
-
}, e);
|
|
513
|
-
return w.useMemo(() => e.every((r) => r == null) ? null : (r) => {
|
|
514
|
-
t.current && (t.current(), t.current = void 0), r != null && (t.current = n(r));
|
|
515
|
-
}, e);
|
|
516
|
-
}
|
|
517
494
|
export {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
495
|
+
Ge as a,
|
|
496
|
+
F as b,
|
|
497
|
+
ue as c,
|
|
521
498
|
ge as d,
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
We as m,
|
|
499
|
+
Ne as e,
|
|
500
|
+
ke as m,
|
|
525
501
|
Ve as r,
|
|
526
|
-
|
|
502
|
+
We as s,
|
|
527
503
|
He as u
|
|
528
504
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
2
|
import { g as z, a as E, c as T, P as e } from "./generateUtilityClasses-BCID9NF1.js";
|
|
3
|
-
import { u as L, s as N, c as $, a as A, m as H } from "./
|
|
3
|
+
import { u as L, s as N, c as $, a as A, m as H } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
4
4
|
import { F as re, a as Q } from "./useFormControl-BGLuGvqS.js";
|
|
5
5
|
import { jsx as O, jsxs as P } from "react/jsx-runtime";
|
|
6
6
|
import { c as oe } from "./useTimeout-DmOXPFt0.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
2
|
import { T as h, g as P, a as b, e as d, f as c, P as a } from "./generateUtilityClasses-BCID9NF1.js";
|
|
3
|
-
import { d as T, u as g, s as w, c as E, a as $, m as N } from "./
|
|
3
|
+
import { d as T, u as g, s as w, c as E, a as $, m as N } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
4
4
|
import { useTheme as O } from "@mui/system";
|
|
5
5
|
import { jsx as x } from "react/jsx-runtime";
|
|
6
6
|
import { a as C } from "./useTimeout-DmOXPFt0.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as H from "react";
|
|
2
2
|
import { g as J, a as K, c as Q, P as e } from "./generateUtilityClasses-BCID9NF1.js";
|
|
3
|
-
import { s as k, a as W, r as X } from "./
|
|
3
|
+
import { s as k, a as W, r as X } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
4
4
|
import { u as Y, a as Z } from "./useFormControl-BGLuGvqS.js";
|
|
5
|
-
import { u as F } from "./useSlot-
|
|
5
|
+
import { u as F } from "./useSlot-DKccmcQE.js";
|
|
6
6
|
import { jsxs as ee, jsx as oe } from "react/jsx-runtime";
|
|
7
|
-
import { B as te } from "./ButtonBase-
|
|
7
|
+
import { B as te } from "./ButtonBase-DycJOmlJ.js";
|
|
8
8
|
import { r as se } from "./useTimeout-DmOXPFt0.js";
|
|
9
9
|
function ne(s) {
|
|
10
10
|
return J("PrivateSwitchBase", s);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
2
|
import { g as j, a as B, c, P as e } from "./generateUtilityClasses-BCID9NF1.js";
|
|
3
|
-
import { u as S, s as w, c as C, a as P, m as W } from "./
|
|
4
|
-
import { i as M } from "./index-
|
|
3
|
+
import { u as S, s as w, c as C, a as P, m as W } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
4
|
+
import { i as M } from "./index-Cx-D0vTo.js";
|
|
5
5
|
import { c as R } from "./useTimeout-DmOXPFt0.js";
|
|
6
6
|
import { jsx as N } from "react/jsx-runtime";
|
|
7
7
|
function D(o) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as n, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import { c as E } from "../../createSvgIcon-
|
|
2
|
+
import { c as E } from "../../createSvgIcon-C0YrvByi.js";
|
|
3
3
|
import { Stack as w, Popper as $, ClickAwayListener as D, Paper as U } from "@mui/material";
|
|
4
4
|
import * as C from "react";
|
|
5
5
|
import { useState as Z } from "react";
|
|
6
|
-
import { C as G, B as b } from "../../index-
|
|
6
|
+
import { C as G, B as b } from "../../index-BPIwhwks.js";
|
|
7
7
|
import { g as V, a as A, c as l, P as r } from "../../generateUtilityClasses-BCID9NF1.js";
|
|
8
|
-
import { u as H, s as B, c as T, a as h, m as v } from "../../
|
|
8
|
+
import { u as H, s as B, c as T, a as h, m as v } from "../../DefaultPropsProvider-DVX_ssOt.js";
|
|
9
9
|
import { c as I, a as F } from "../../useTimeout-DmOXPFt0.js";
|
|
10
|
-
import { P as W } from "../../Paper-
|
|
10
|
+
import { P as W } from "../../Paper-oafkOzNM.js";
|
|
11
11
|
import { u as _ } from "../../useId-CK6Kn3Tn.js";
|
|
12
|
-
import { B as q } from "../../ButtonBase-
|
|
12
|
+
import { B as q } from "../../ButtonBase-DycJOmlJ.js";
|
|
13
13
|
import { B as Y } from "../../Box-DPlM16yK.js";
|
|
14
14
|
const J = E(/* @__PURE__ */ n("path", {
|
|
15
15
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import { a as j, g as w, c as l, P as e } from "../../generateUtilityClasses-BCID9NF1.js";
|
|
4
|
-
import { u as M, c as $, s as N, a as V, r as F, m as H } from "../../
|
|
5
|
-
import { S as E } from "../../SwitchBase-
|
|
6
|
-
import { c as h } from "../../createSvgIcon-
|
|
4
|
+
import { u as M, c as $, s as N, a as V, r as F, m as H } from "../../DefaultPropsProvider-DVX_ssOt.js";
|
|
5
|
+
import { S as E } from "../../SwitchBase-V2UoemN5.js";
|
|
6
|
+
import { c as h } from "../../createSvgIcon-C0YrvByi.js";
|
|
7
7
|
import { c as I } from "../../useTimeout-DmOXPFt0.js";
|
|
8
|
-
import { u as U } from "../../useSlot-
|
|
9
|
-
import { m as D } from "../../mergeSlotProps-
|
|
8
|
+
import { u as U } from "../../useSlot-DKccmcQE.js";
|
|
9
|
+
import { m as D } from "../../mergeSlotProps-S3NX_8iG.js";
|
|
10
10
|
const L = h(/* @__PURE__ */ r("path", {
|
|
11
11
|
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
12
12
|
}), "CheckBoxOutlineBlank"), q = h(/* @__PURE__ */ r("path", {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Breakpoint } from '@mui/material/styles';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface ScrollableDialogProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
maxWidth?: Breakpoint | false;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
|
+
dividers?: boolean;
|
|
14
|
+
fullScreen?: boolean;
|
|
15
|
+
slideTransition?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function ScrollableDialog({ open, onClose, title, children, actions, maxWidth, fullWidth, showCloseButton, dividers, fullScreen, slideTransition }: ScrollableDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "../../createSvgIcon-C0YrvByi.js";
|
|
3
|
+
import { Slide as x, Dialog as u, DialogTitle as g, IconButton as h, DialogContent as D, DialogActions as C } from "@mui/material";
|
|
4
|
+
import { forwardRef as j } from "react";
|
|
5
|
+
const y = f(/* @__PURE__ */ i("path", {
|
|
6
|
+
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
7
|
+
}), "Close"), I = j(function(o, t) {
|
|
8
|
+
return /* @__PURE__ */ i(x, { direction: "up", ref: t, ...o });
|
|
9
|
+
});
|
|
10
|
+
function w({
|
|
11
|
+
open: e,
|
|
12
|
+
onClose: o,
|
|
13
|
+
title: t,
|
|
14
|
+
children: l,
|
|
15
|
+
actions: r,
|
|
16
|
+
maxWidth: s = "sm",
|
|
17
|
+
fullWidth: a = !0,
|
|
18
|
+
showCloseButton: c = !0,
|
|
19
|
+
dividers: p = !0,
|
|
20
|
+
fullScreen: m = !1,
|
|
21
|
+
slideTransition: d = !1
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ n(
|
|
24
|
+
u,
|
|
25
|
+
{
|
|
26
|
+
open: e,
|
|
27
|
+
onClose: o,
|
|
28
|
+
maxWidth: s,
|
|
29
|
+
fullWidth: a,
|
|
30
|
+
fullScreen: m,
|
|
31
|
+
scroll: "paper",
|
|
32
|
+
slots: d ? { transition: I } : void 0,
|
|
33
|
+
sx: {
|
|
34
|
+
"& .MuiDialog-paper": {
|
|
35
|
+
maxWidth: {
|
|
36
|
+
xs: "100%",
|
|
37
|
+
md: "600px"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ n(g, { sx: {
|
|
43
|
+
display: "flex",
|
|
44
|
+
justifyContent: "space-between",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
pr: 1
|
|
47
|
+
}, children: [
|
|
48
|
+
t,
|
|
49
|
+
c && /* @__PURE__ */ i(
|
|
50
|
+
h,
|
|
51
|
+
{
|
|
52
|
+
onClick: o,
|
|
53
|
+
size: "small",
|
|
54
|
+
sx: { ml: 2 },
|
|
55
|
+
children: /* @__PURE__ */ i(y, {})
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ i(D, { dividers: p, children: l }),
|
|
60
|
+
r && /* @__PURE__ */ i(C, { sx: { px: 3, py: 2 }, children: r })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
w as ScrollableDialog
|
|
67
|
+
};
|