jcicl 0.0.173 → 0.0.175
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/.chunks/Portal.js +4 -4
- package/.chunks/TextField.js +138 -141
- package/.chunks/index.js +29 -57
- package/.chunks/useControlled.js +31 -0
- package/.chunks/useFormControl.js +10 -0
- package/FormInput/FormInput.d.ts +7 -0
- package/FormInput/FormInput.js +10 -0
- package/Input/Input.js +12 -11
- package/LabeledCheckbox/LabeledCheckbox.d.ts +6 -0
- package/LabeledCheckbox/LabeledCheckbox.js +522 -0
- package/LabeledCheckbox/index.d.ts +1 -0
- package/LabeledCheckbox/index.js +4 -0
- package/LabeledInput/LabeledInput.js +8 -8
- package/Pagination/Pagination.js +4 -3
- package/Table/Table.d.ts +1 -0
- package/Table/Table.js +1 -0
- package/Tooltip/Tooltip.js +16 -15
- package/package.json +1 -1
package/.chunks/TextField.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { P as e, f as Ct, i as
|
|
3
|
-
import { u as ye, i as
|
|
2
|
+
import { P as e, f as Ct, i as Ho, T as _o, a as oe, g as te, c as ue, s as j, u as ae, b as Q, d as ne, j as Ko, r as we, k as bo, l as ho, e as Ro, m as wo, n as Pt } from "./DefaultPropsProvider.js";
|
|
3
|
+
import { u as ye, i as Go } from "./useSlot.js";
|
|
4
4
|
import { jsx as E, jsxs as he } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { u as Ae, F as Yo } from "./useFormControl.js";
|
|
6
|
+
import { c as Xo, o as ge, g as yo, e as go, d as It, a as Zo, T as Nt, r as Mt, b as So, P as Ft, H as eo, G as kt, f as Co, h as Jo } from "./Portal.js";
|
|
6
7
|
import { m as le } from "./memoTheme.js";
|
|
7
8
|
import { c as ro } from "./createSimplePaletteValueFilter.js";
|
|
8
|
-
import { e as Lt, u as jt
|
|
9
|
-
import { u as Ee, a as oo, r as Pe, e as
|
|
9
|
+
import { e as Lt, u as jt } from "./index.js";
|
|
10
|
+
import { u as Ee, a as oo, r as Pe, e as Po } from "./TransitionGroupContext.js";
|
|
10
11
|
import { c as Qo } from "./chainPropTypes.js";
|
|
11
12
|
import { e as et } from "./elementTypeAcceptingRef.js";
|
|
13
|
+
import { u as Io } from "./useControlled.js";
|
|
12
14
|
import { c as $t } from "./createSvgIcon.js";
|
|
13
15
|
import { G as At } from "./emotion-react.browser.esm.js";
|
|
14
16
|
function Dt(o) {
|
|
@@ -76,7 +78,7 @@ function zt({
|
|
|
76
78
|
props: o
|
|
77
79
|
});
|
|
78
80
|
}
|
|
79
|
-
function
|
|
81
|
+
function No(...o) {
|
|
80
82
|
return o.reduce((t, n) => n == null ? t : function(...s) {
|
|
81
83
|
t.apply(this, s), n.apply(this, s);
|
|
82
84
|
}, () => {
|
|
@@ -94,7 +96,7 @@ function nt(o, t = 166) {
|
|
|
94
96
|
clearTimeout(n);
|
|
95
97
|
}, r;
|
|
96
98
|
}
|
|
97
|
-
function
|
|
99
|
+
function uo(o, t) {
|
|
98
100
|
var n, r, s;
|
|
99
101
|
return /* @__PURE__ */ c.isValidElement(o) && t.indexOf(
|
|
100
102
|
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
@@ -113,8 +115,8 @@ function rt(o = window) {
|
|
|
113
115
|
function st(o) {
|
|
114
116
|
return /* @__PURE__ */ E(tt, {
|
|
115
117
|
...o,
|
|
116
|
-
defaultTheme:
|
|
117
|
-
themeId:
|
|
118
|
+
defaultTheme: Ho,
|
|
119
|
+
themeId: _o
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
122
|
process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
@@ -147,8 +149,8 @@ function Ut({
|
|
|
147
149
|
return zt({
|
|
148
150
|
props: o,
|
|
149
151
|
name: t,
|
|
150
|
-
defaultTheme:
|
|
151
|
-
themeId:
|
|
152
|
+
defaultTheme: Ho,
|
|
153
|
+
themeId: _o
|
|
152
154
|
});
|
|
153
155
|
}
|
|
154
156
|
function Ze(o) {
|
|
@@ -288,26 +290,21 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
288
290
|
*/
|
|
289
291
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
290
292
|
});
|
|
291
|
-
function
|
|
293
|
+
function mo(o) {
|
|
292
294
|
return typeof o == "string";
|
|
293
295
|
}
|
|
294
|
-
function
|
|
296
|
+
function De({
|
|
295
297
|
props: o,
|
|
296
298
|
states: t,
|
|
297
299
|
muiFormControl: n
|
|
298
300
|
}) {
|
|
299
301
|
return t.reduce((r, s) => (r[s] = o[s], n && typeof o[s] > "u" && (r[s] = n[s]), r), {});
|
|
300
302
|
}
|
|
301
|
-
|
|
302
|
-
process.env.NODE_ENV !== "production" && (so.displayName = "FormControlContext");
|
|
303
|
-
function De() {
|
|
304
|
-
return c.useContext(so);
|
|
305
|
-
}
|
|
306
|
-
function Fo(o) {
|
|
303
|
+
function Mo(o) {
|
|
307
304
|
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
308
305
|
}
|
|
309
306
|
function to(o, t = !1) {
|
|
310
|
-
return o && (
|
|
307
|
+
return o && (Mo(o.value) && o.value !== "" || t && Mo(o.defaultValue) && o.defaultValue !== "");
|
|
311
308
|
}
|
|
312
309
|
function Ht(o) {
|
|
313
310
|
return o.startAdornment;
|
|
@@ -316,13 +313,13 @@ function _t(o) {
|
|
|
316
313
|
return te("MuiInputBase", o);
|
|
317
314
|
}
|
|
318
315
|
const $e = oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
319
|
-
var
|
|
320
|
-
const
|
|
316
|
+
var Fo;
|
|
317
|
+
const so = (o, t) => {
|
|
321
318
|
const {
|
|
322
319
|
ownerState: n
|
|
323
320
|
} = o;
|
|
324
321
|
return [t.root, n.formControl && t.formControl, n.startAdornment && t.adornedStart, n.endAdornment && t.adornedEnd, n.error && t.error, n.size === "small" && t.sizeSmall, n.multiline && t.multiline, n.color && t[`color${ue(n.color)}`], n.fullWidth && t.fullWidth, n.hiddenLabel && t.hiddenLabel];
|
|
325
|
-
},
|
|
322
|
+
}, io = (o, t) => {
|
|
326
323
|
const {
|
|
327
324
|
ownerState: n
|
|
328
325
|
} = o;
|
|
@@ -348,10 +345,10 @@ const io = (o, t) => {
|
|
|
348
345
|
input: ["input", r && "disabled", h === "search" && "inputTypeSearch", y && "inputMultiline", T === "small" && "inputSizeSmall", b && "inputHiddenLabel", p && "inputAdornedStart", i && "inputAdornedEnd", g && "readOnly"]
|
|
349
346
|
};
|
|
350
347
|
return ne(w, _t, t);
|
|
351
|
-
},
|
|
348
|
+
}, ao = j("div", {
|
|
352
349
|
name: "MuiInputBase",
|
|
353
350
|
slot: "Root",
|
|
354
|
-
overridesResolver:
|
|
351
|
+
overridesResolver: so
|
|
355
352
|
})(le(({
|
|
356
353
|
theme: o
|
|
357
354
|
}) => ({
|
|
@@ -392,10 +389,10 @@ const io = (o, t) => {
|
|
|
392
389
|
width: "100%"
|
|
393
390
|
}
|
|
394
391
|
}]
|
|
395
|
-
}))),
|
|
392
|
+
}))), lo = j("input", {
|
|
396
393
|
name: "MuiInputBase",
|
|
397
394
|
slot: "Input",
|
|
398
|
-
overridesResolver:
|
|
395
|
+
overridesResolver: io
|
|
399
396
|
})(le(({
|
|
400
397
|
theme: o
|
|
401
398
|
}) => {
|
|
@@ -507,7 +504,7 @@ const io = (o, t) => {
|
|
|
507
504
|
}
|
|
508
505
|
}]
|
|
509
506
|
};
|
|
510
|
-
})),
|
|
507
|
+
})), ko = Wt({
|
|
511
508
|
"@keyframes mui-auto-fill": {
|
|
512
509
|
from: {
|
|
513
510
|
display: "block"
|
|
@@ -518,7 +515,7 @@ const io = (o, t) => {
|
|
|
518
515
|
display: "block"
|
|
519
516
|
}
|
|
520
517
|
}
|
|
521
|
-
}),
|
|
518
|
+
}), co = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
522
519
|
const r = ae({
|
|
523
520
|
props: t,
|
|
524
521
|
name: "MuiInputBase"
|
|
@@ -567,12 +564,12 @@ const io = (o, t) => {
|
|
|
567
564
|
} = c.useRef(pe != null), J = c.useRef(), A = c.useCallback((_) => {
|
|
568
565
|
process.env.NODE_ENV !== "production" && _ && _.nodeName !== "INPUT" && !_.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
569
566
|
`));
|
|
570
|
-
}, []), D = Ee(J, m, d.ref, A), [z, X] = c.useState(!1), B =
|
|
567
|
+
}, []), D = Ee(J, m, d.ref, A), [z, X] = c.useState(!1), B = Ae();
|
|
571
568
|
process.env.NODE_ENV !== "production" && c.useEffect(() => {
|
|
572
569
|
if (B)
|
|
573
570
|
return B.registerEffect();
|
|
574
571
|
}, [B]);
|
|
575
|
-
const K =
|
|
572
|
+
const K = De({
|
|
576
573
|
props: r,
|
|
577
574
|
muiFormControl: B,
|
|
578
575
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
@@ -596,7 +593,7 @@ const io = (o, t) => {
|
|
|
596
593
|
if (!me) {
|
|
597
594
|
const Ue = _.target || J.current;
|
|
598
595
|
if (Ue == null)
|
|
599
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." :
|
|
596
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Ko(1));
|
|
600
597
|
be({
|
|
601
598
|
value: Ue.value
|
|
602
599
|
});
|
|
@@ -643,26 +640,26 @@ const io = (o, t) => {
|
|
|
643
640
|
size: K.size,
|
|
644
641
|
startAdornment: q,
|
|
645
642
|
type: G
|
|
646
|
-
}, We = Kt(ze), Fe = fe.root || b.Root ||
|
|
643
|
+
}, We = Kt(ze), Fe = fe.root || b.Root || ao, ke = se.root || y.root || {}, Ne = fe.input || b.Input || lo;
|
|
647
644
|
return de = {
|
|
648
645
|
...de,
|
|
649
646
|
...se.input ?? y.input
|
|
650
647
|
}, /* @__PURE__ */ he(c.Fragment, {
|
|
651
|
-
children: [!p && typeof
|
|
648
|
+
children: [!p && typeof ko == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
652
649
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
653
|
-
(
|
|
650
|
+
(Fo || (Fo = /* @__PURE__ */ E(ko, {}))), /* @__PURE__ */ he(Fe, {
|
|
654
651
|
...ke,
|
|
655
652
|
ref: n,
|
|
656
653
|
onClick: Ie,
|
|
657
654
|
...ie,
|
|
658
|
-
...!
|
|
655
|
+
...!mo(Fe) && {
|
|
659
656
|
ownerState: {
|
|
660
657
|
...ze,
|
|
661
658
|
...ke.ownerState
|
|
662
659
|
}
|
|
663
660
|
},
|
|
664
661
|
className: Q(We.root, ke.className, l, V && "MuiInputBase-readOnly"),
|
|
665
|
-
children: [q, /* @__PURE__ */ E(
|
|
662
|
+
children: [q, /* @__PURE__ */ E(Yo.Provider, {
|
|
666
663
|
value: null,
|
|
667
664
|
children: /* @__PURE__ */ E(Ne, {
|
|
668
665
|
"aria-invalid": K.error,
|
|
@@ -683,7 +680,7 @@ const io = (o, t) => {
|
|
|
683
680
|
onKeyUp: x,
|
|
684
681
|
type: G,
|
|
685
682
|
...de,
|
|
686
|
-
...!
|
|
683
|
+
...!mo(Ne) && {
|
|
687
684
|
as: Ce,
|
|
688
685
|
ownerState: {
|
|
689
686
|
...ze,
|
|
@@ -703,7 +700,7 @@ const io = (o, t) => {
|
|
|
703
700
|
})]
|
|
704
701
|
});
|
|
705
702
|
});
|
|
706
|
-
process.env.NODE_ENV !== "production" && (
|
|
703
|
+
process.env.NODE_ENV !== "production" && (co.propTypes = {
|
|
707
704
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
708
705
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
709
706
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -950,7 +947,7 @@ const Ve = {
|
|
|
950
947
|
// forward classes to the InputBase
|
|
951
948
|
...s
|
|
952
949
|
};
|
|
953
|
-
}, Xt = j(
|
|
950
|
+
}, Xt = j(ao, {
|
|
954
951
|
shouldForwardProp: (o) => we(o) || o === "classes",
|
|
955
952
|
name: "MuiInput",
|
|
956
953
|
slot: "Root",
|
|
@@ -958,7 +955,7 @@ const Ve = {
|
|
|
958
955
|
const {
|
|
959
956
|
ownerState: n
|
|
960
957
|
} = o;
|
|
961
|
-
return [...
|
|
958
|
+
return [...so(o, t), !n.disableUnderline && t.underline];
|
|
962
959
|
}
|
|
963
960
|
})(le(({
|
|
964
961
|
theme: o
|
|
@@ -1040,10 +1037,10 @@ const Ve = {
|
|
|
1040
1037
|
}
|
|
1041
1038
|
}))]
|
|
1042
1039
|
};
|
|
1043
|
-
})), Zt = j(
|
|
1040
|
+
})), Zt = j(lo, {
|
|
1044
1041
|
name: "MuiInput",
|
|
1045
1042
|
slot: "Input",
|
|
1046
|
-
overridesResolver:
|
|
1043
|
+
overridesResolver: io
|
|
1047
1044
|
})({}), Ge = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
1048
1045
|
const r = ae({
|
|
1049
1046
|
props: t,
|
|
@@ -1065,8 +1062,8 @@ const Ve = {
|
|
|
1065
1062
|
disableUnderline: s
|
|
1066
1063
|
}
|
|
1067
1064
|
}
|
|
1068
|
-
}, f = y ?? a ?
|
|
1069
|
-
return /* @__PURE__ */ E(
|
|
1065
|
+
}, f = y ?? a ? bo(y ?? a, v) : v, O = g.root ?? i.Root ?? Xt, d = g.input ?? i.Input ?? Zt;
|
|
1066
|
+
return /* @__PURE__ */ E(co, {
|
|
1070
1067
|
slots: {
|
|
1071
1068
|
root: O,
|
|
1072
1069
|
input: d
|
|
@@ -1291,7 +1288,7 @@ const Me = {
|
|
|
1291
1288
|
// forward classes to the InputBase
|
|
1292
1289
|
...b
|
|
1293
1290
|
};
|
|
1294
|
-
}, en = j(
|
|
1291
|
+
}, en = j(ao, {
|
|
1295
1292
|
shouldForwardProp: (o) => we(o) || o === "classes",
|
|
1296
1293
|
name: "MuiFilledInput",
|
|
1297
1294
|
slot: "Root",
|
|
@@ -1299,7 +1296,7 @@ const Me = {
|
|
|
1299
1296
|
const {
|
|
1300
1297
|
ownerState: n
|
|
1301
1298
|
} = o;
|
|
1302
|
-
return [...
|
|
1299
|
+
return [...so(o, t), !n.disableUnderline && t.underline];
|
|
1303
1300
|
}
|
|
1304
1301
|
})(le(({
|
|
1305
1302
|
theme: o
|
|
@@ -1437,10 +1434,10 @@ const Me = {
|
|
|
1437
1434
|
}
|
|
1438
1435
|
}]
|
|
1439
1436
|
};
|
|
1440
|
-
})), on = j(
|
|
1437
|
+
})), on = j(lo, {
|
|
1441
1438
|
name: "MuiFilledInput",
|
|
1442
1439
|
slot: "Input",
|
|
1443
|
-
overridesResolver:
|
|
1440
|
+
overridesResolver: io
|
|
1444
1441
|
})(le(({
|
|
1445
1442
|
theme: o
|
|
1446
1443
|
}) => ({
|
|
@@ -1550,8 +1547,8 @@ const Me = {
|
|
|
1550
1547
|
input: {
|
|
1551
1548
|
ownerState: w
|
|
1552
1549
|
}
|
|
1553
|
-
}, O = g ?? a ?
|
|
1554
|
-
return /* @__PURE__ */ E(
|
|
1550
|
+
}, O = g ?? a ? bo(f, g ?? a) : f, d = T.root ?? i.Root ?? en, m = T.input ?? i.Input ?? on;
|
|
1551
|
+
return /* @__PURE__ */ E(co, {
|
|
1555
1552
|
slots: {
|
|
1556
1553
|
root: d,
|
|
1557
1554
|
input: m
|
|
@@ -1759,7 +1756,7 @@ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
|
1759
1756
|
value: e.any
|
|
1760
1757
|
});
|
|
1761
1758
|
Ye && (Ye.muiName = "Input");
|
|
1762
|
-
var
|
|
1759
|
+
var Lo;
|
|
1763
1760
|
const tn = j("fieldset", {
|
|
1764
1761
|
shouldForwardProp: we
|
|
1765
1762
|
})({
|
|
@@ -1865,7 +1862,7 @@ function at(o) {
|
|
|
1865
1862
|
children: s
|
|
1866
1863
|
}) : (
|
|
1867
1864
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
1868
|
-
|
|
1865
|
+
Lo || (Lo = /* @__PURE__ */ E("span", {
|
|
1869
1866
|
className: "notranslate",
|
|
1870
1867
|
children: ""
|
|
1871
1868
|
}))
|
|
@@ -1918,11 +1915,11 @@ const xe = {
|
|
|
1918
1915
|
// forward classes to the InputBase
|
|
1919
1916
|
...r
|
|
1920
1917
|
};
|
|
1921
|
-
}, an = j(
|
|
1918
|
+
}, an = j(ao, {
|
|
1922
1919
|
shouldForwardProp: (o) => we(o) || o === "classes",
|
|
1923
1920
|
name: "MuiOutlinedInput",
|
|
1924
1921
|
slot: "Root",
|
|
1925
|
-
overridesResolver:
|
|
1922
|
+
overridesResolver: so
|
|
1926
1923
|
})(le(({
|
|
1927
1924
|
theme: o
|
|
1928
1925
|
}) => {
|
|
@@ -2004,10 +2001,10 @@ const xe = {
|
|
|
2004
2001
|
return {
|
|
2005
2002
|
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
|
|
2006
2003
|
};
|
|
2007
|
-
})), cn = j(
|
|
2004
|
+
})), cn = j(lo, {
|
|
2008
2005
|
name: "MuiOutlinedInput",
|
|
2009
2006
|
slot: "Input",
|
|
2010
|
-
overridesResolver:
|
|
2007
|
+
overridesResolver: io
|
|
2011
2008
|
})(le(({
|
|
2012
2009
|
theme: o
|
|
2013
2010
|
}) => ({
|
|
@@ -2076,7 +2073,7 @@ const xe = {
|
|
|
2076
2073
|
slots: g = {},
|
|
2077
2074
|
type: T = "text",
|
|
2078
2075
|
...p
|
|
2079
|
-
} = s, h = sn(s), w =
|
|
2076
|
+
} = s, h = sn(s), w = Ae(), v = De({
|
|
2080
2077
|
props: s,
|
|
2081
2078
|
muiFormControl: w,
|
|
2082
2079
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
@@ -2093,7 +2090,7 @@ const xe = {
|
|
|
2093
2090
|
size: v.size,
|
|
2094
2091
|
type: T
|
|
2095
2092
|
}, O = g.root ?? i.Root ?? an, d = g.input ?? i.Input ?? cn;
|
|
2096
|
-
return /* @__PURE__ */ E(
|
|
2093
|
+
return /* @__PURE__ */ E(co, {
|
|
2097
2094
|
slots: {
|
|
2098
2095
|
root: O,
|
|
2099
2096
|
input: d
|
|
@@ -2364,7 +2361,7 @@ const _e = oe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
2364
2361
|
focused: g,
|
|
2365
2362
|
required: T,
|
|
2366
2363
|
...p
|
|
2367
|
-
} = r, h =
|
|
2364
|
+
} = r, h = Ae(), w = De({
|
|
2368
2365
|
props: r,
|
|
2369
2366
|
muiFormControl: h,
|
|
2370
2367
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
@@ -2612,10 +2609,10 @@ const bn = (o) => {
|
|
|
2612
2609
|
variant: l,
|
|
2613
2610
|
className: u,
|
|
2614
2611
|
...b
|
|
2615
|
-
} = r, y =
|
|
2612
|
+
} = r, y = Ae();
|
|
2616
2613
|
let g = a;
|
|
2617
2614
|
typeof g > "u" && y && (g = y.filled || y.focused || y.adornedStart);
|
|
2618
|
-
const T =
|
|
2615
|
+
const T = De({
|
|
2619
2616
|
props: r,
|
|
2620
2617
|
muiFormControl: y,
|
|
2621
2618
|
states: ["size", "variant", "required", "focused"]
|
|
@@ -2797,15 +2794,15 @@ const gn = (o) => {
|
|
|
2797
2794
|
}, d = gn(O), [m, S] = c.useState(() => {
|
|
2798
2795
|
let k = !1;
|
|
2799
2796
|
return s && c.Children.forEach(s, (x) => {
|
|
2800
|
-
if (!
|
|
2797
|
+
if (!uo(x, ["Input", "Select"]))
|
|
2801
2798
|
return;
|
|
2802
|
-
const R =
|
|
2799
|
+
const R = uo(x, ["Select"]) ? x.props.input : x;
|
|
2803
2800
|
R && Ht(R.props) && (k = !0);
|
|
2804
2801
|
}), k;
|
|
2805
2802
|
}), [N, I] = c.useState(() => {
|
|
2806
2803
|
let k = !1;
|
|
2807
2804
|
return s && c.Children.forEach(s, (x) => {
|
|
2808
|
-
|
|
2805
|
+
uo(x, ["Input", "Select"]) && (to(x.props, !0) || to(x.props.inputProps, !0)) && (k = !0);
|
|
2809
2806
|
}), k;
|
|
2810
2807
|
}), [P, M] = c.useState(!1);
|
|
2811
2808
|
u && P && M(!1);
|
|
@@ -2843,7 +2840,7 @@ const gn = (o) => {
|
|
|
2843
2840
|
required: h,
|
|
2844
2841
|
variant: v
|
|
2845
2842
|
}), [m, a, u, b, N, F, g, T, $, h, w, v]);
|
|
2846
|
-
return /* @__PURE__ */ E(
|
|
2843
|
+
return /* @__PURE__ */ E(Yo.Provider, {
|
|
2847
2844
|
value: H,
|
|
2848
2845
|
children: /* @__PURE__ */ E(vn, {
|
|
2849
2846
|
as: l,
|
|
@@ -2938,8 +2935,8 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
|
2938
2935
|
function Tn(o) {
|
|
2939
2936
|
return te("MuiFormHelperText", o);
|
|
2940
2937
|
}
|
|
2941
|
-
const
|
|
2942
|
-
var
|
|
2938
|
+
const jo = oe("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]);
|
|
2939
|
+
var $o;
|
|
2943
2940
|
const On = (o) => {
|
|
2944
2941
|
const {
|
|
2945
2942
|
classes: t,
|
|
@@ -2973,10 +2970,10 @@ const On = (o) => {
|
|
|
2973
2970
|
marginRight: 0,
|
|
2974
2971
|
marginBottom: 0,
|
|
2975
2972
|
marginLeft: 0,
|
|
2976
|
-
[`&.${
|
|
2973
|
+
[`&.${jo.disabled}`]: {
|
|
2977
2974
|
color: (o.vars || o).palette.text.disabled
|
|
2978
2975
|
},
|
|
2979
|
-
[`&.${
|
|
2976
|
+
[`&.${jo.error}`]: {
|
|
2980
2977
|
color: (o.vars || o).palette.error.main
|
|
2981
2978
|
},
|
|
2982
2979
|
variants: [{
|
|
@@ -3011,7 +3008,7 @@ const On = (o) => {
|
|
|
3011
3008
|
required: T,
|
|
3012
3009
|
variant: p,
|
|
3013
3010
|
...h
|
|
3014
|
-
} = r, w =
|
|
3011
|
+
} = r, w = Ae(), v = De({
|
|
3015
3012
|
props: r,
|
|
3016
3013
|
muiFormControl: w,
|
|
3017
3014
|
states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
|
|
@@ -3037,7 +3034,7 @@ const On = (o) => {
|
|
|
3037
3034
|
ownerState: f,
|
|
3038
3035
|
children: s === " " ? (
|
|
3039
3036
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
3040
|
-
|
|
3037
|
+
$o || ($o = /* @__PURE__ */ E("span", {
|
|
3041
3038
|
className: "notranslate",
|
|
3042
3039
|
children: ""
|
|
3043
3040
|
}))
|
|
@@ -3223,10 +3220,10 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
|
3223
3220
|
*/
|
|
3224
3221
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
3225
3222
|
});
|
|
3226
|
-
function
|
|
3223
|
+
function po(o, t, n) {
|
|
3227
3224
|
return o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : o.firstChild;
|
|
3228
3225
|
}
|
|
3229
|
-
function
|
|
3226
|
+
function Ao(o, t, n) {
|
|
3230
3227
|
return o === t ? n ? o.firstChild : o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : o.lastChild;
|
|
3231
3228
|
}
|
|
3232
3229
|
function mt(o, t) {
|
|
@@ -3293,18 +3290,18 @@ const bt = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
|
3293
3290
|
}
|
|
3294
3291
|
const I = ge(m).activeElement;
|
|
3295
3292
|
if (S === "ArrowDown")
|
|
3296
|
-
d.preventDefault(), qe(m, I, b, u,
|
|
3293
|
+
d.preventDefault(), qe(m, I, b, u, po);
|
|
3297
3294
|
else if (S === "ArrowUp")
|
|
3298
|
-
d.preventDefault(), qe(m, I, b, u,
|
|
3295
|
+
d.preventDefault(), qe(m, I, b, u, Ao);
|
|
3299
3296
|
else if (S === "Home")
|
|
3300
|
-
d.preventDefault(), qe(m, null, b, u,
|
|
3297
|
+
d.preventDefault(), qe(m, null, b, u, po);
|
|
3301
3298
|
else if (S === "End")
|
|
3302
|
-
d.preventDefault(), qe(m, null, b, u,
|
|
3299
|
+
d.preventDefault(), qe(m, null, b, u, Ao);
|
|
3303
3300
|
else if (S.length === 1) {
|
|
3304
3301
|
const P = h.current, M = S.toLowerCase(), F = performance.now();
|
|
3305
3302
|
P.keys.length > 0 && (F - P.lastTime > 500 ? (P.keys = [], P.repeating = !0, P.previousKeyMatched = !0) : P.repeating && M !== P.keys[0] && (P.repeating = !1)), P.lastTime = F, P.keys.push(M);
|
|
3306
3303
|
const $ = I && !P.repeating && mt(I, P);
|
|
3307
|
-
P.previousKeyMatched && ($ || qe(m, I, !1, u,
|
|
3304
|
+
P.previousKeyMatched && ($ || qe(m, I, !1, u, po, P)) ? d.preventDefault() : P.previousKeyMatched = !1;
|
|
3308
3305
|
}
|
|
3309
3306
|
y && y(d);
|
|
3310
3307
|
}, v = Ee(p, n);
|
|
@@ -3314,7 +3311,7 @@ const bt = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
|
3314
3311
|
f === m && (f += 1, f >= a.length && (f = -1));
|
|
3315
3312
|
return;
|
|
3316
3313
|
}
|
|
3317
|
-
process.env.NODE_ENV !== "production" &&
|
|
3314
|
+
process.env.NODE_ENV !== "production" && ho.isFragment(d) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
3318
3315
|
`)), d.props.disabled || (g === "selectedMenu" && d.props.selected || f === -1) && (f = m), f === m && (d.props.disabled || d.props.muiSkipListHighlight || d.type.muiSkipListHighlight) && (f += 1, f >= a.length && (f = -1));
|
|
3319
3316
|
});
|
|
3320
3317
|
const O = c.Children.map(a, (d, m) => {
|
|
@@ -3386,21 +3383,21 @@ function Sn(o) {
|
|
|
3386
3383
|
function Ke(o, t) {
|
|
3387
3384
|
t ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
|
|
3388
3385
|
}
|
|
3389
|
-
function
|
|
3386
|
+
function Do(o) {
|
|
3390
3387
|
return parseInt(Re(o).getComputedStyle(o).paddingRight, 10) || 0;
|
|
3391
3388
|
}
|
|
3392
3389
|
function Cn(o) {
|
|
3393
3390
|
const n = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(o.tagName), r = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
|
|
3394
3391
|
return n || r;
|
|
3395
3392
|
}
|
|
3396
|
-
function
|
|
3393
|
+
function Bo(o, t, n, r, s) {
|
|
3397
3394
|
const i = [t, n, ...r];
|
|
3398
3395
|
[].forEach.call(o.children, (a) => {
|
|
3399
3396
|
const l = !i.includes(a), u = !Cn(a);
|
|
3400
3397
|
l && u && Ke(a, s);
|
|
3401
3398
|
});
|
|
3402
3399
|
}
|
|
3403
|
-
function
|
|
3400
|
+
function fo(o, t) {
|
|
3404
3401
|
let n = -1;
|
|
3405
3402
|
return o.some((r, s) => t(r) ? (n = s, !0) : !1), n;
|
|
3406
3403
|
}
|
|
@@ -3413,14 +3410,14 @@ function Pn(o, t) {
|
|
|
3413
3410
|
value: r.style.paddingRight,
|
|
3414
3411
|
property: "padding-right",
|
|
3415
3412
|
el: r
|
|
3416
|
-
}), r.style.paddingRight = `${
|
|
3413
|
+
}), r.style.paddingRight = `${Do(r) + a}px`;
|
|
3417
3414
|
const l = ge(r).querySelectorAll(".mui-fixed");
|
|
3418
3415
|
[].forEach.call(l, (u) => {
|
|
3419
3416
|
n.push({
|
|
3420
3417
|
value: u.style.paddingRight,
|
|
3421
3418
|
property: "padding-right",
|
|
3422
3419
|
el: u
|
|
3423
|
-
}), u.style.paddingRight = `${
|
|
3420
|
+
}), u.style.paddingRight = `${Do(u) + a}px`;
|
|
3424
3421
|
});
|
|
3425
3422
|
}
|
|
3426
3423
|
let i;
|
|
@@ -3470,8 +3467,8 @@ class Nn {
|
|
|
3470
3467
|
return r;
|
|
3471
3468
|
r = this.modals.length, this.modals.push(t), t.modalRef && Ke(t.modalRef, !1);
|
|
3472
3469
|
const s = In(n);
|
|
3473
|
-
|
|
3474
|
-
const i =
|
|
3470
|
+
Bo(n, t.mount, t.modalRef, s, !0);
|
|
3471
|
+
const i = fo(this.containers, (a) => a.container === n);
|
|
3475
3472
|
return i !== -1 ? (this.containers[i].modals.push(t), r) : (this.containers.push({
|
|
3476
3473
|
modals: [t],
|
|
3477
3474
|
container: n,
|
|
@@ -3480,16 +3477,16 @@ class Nn {
|
|
|
3480
3477
|
}), r);
|
|
3481
3478
|
}
|
|
3482
3479
|
mount(t, n) {
|
|
3483
|
-
const r =
|
|
3480
|
+
const r = fo(this.containers, (i) => i.modals.includes(t)), s = this.containers[r];
|
|
3484
3481
|
s.restore || (s.restore = Pn(s, n));
|
|
3485
3482
|
}
|
|
3486
3483
|
remove(t, n = !0) {
|
|
3487
3484
|
const r = this.modals.indexOf(t);
|
|
3488
3485
|
if (r === -1)
|
|
3489
3486
|
return r;
|
|
3490
|
-
const s =
|
|
3487
|
+
const s = fo(this.containers, (a) => a.modals.includes(t)), i = this.containers[s];
|
|
3491
3488
|
if (i.modals.splice(i.modals.indexOf(t), 1), this.modals.splice(r, 1), i.modals.length === 0)
|
|
3492
|
-
i.restore && i.restore(), t.modalRef && Ke(t.modalRef, n),
|
|
3489
|
+
i.restore && i.restore(), t.modalRef && Ke(t.modalRef, n), Bo(i.container, t.mount, t.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1);
|
|
3493
3490
|
else {
|
|
3494
3491
|
const a = i.modals[i.modals.length - 1];
|
|
3495
3492
|
a.modalRef && Ke(a.modalRef, !1);
|
|
@@ -3538,7 +3535,7 @@ function no(o) {
|
|
|
3538
3535
|
getTabbable: i = jn,
|
|
3539
3536
|
isEnabled: a = $n,
|
|
3540
3537
|
open: l
|
|
3541
|
-
} = o, u = c.useRef(!1), b = c.useRef(null), y = c.useRef(null), g = c.useRef(null), T = c.useRef(null), p = c.useRef(!1), h = c.useRef(null), w = Ee(
|
|
3538
|
+
} = o, u = c.useRef(!1), b = c.useRef(null), y = c.useRef(null), g = c.useRef(null), T = c.useRef(null), p = c.useRef(!1), h = c.useRef(null), w = Ee(yo(t), h), v = c.useRef(null);
|
|
3542
3539
|
c.useEffect(() => {
|
|
3543
3540
|
!l || !h.current || (p.current = !n);
|
|
3544
3541
|
}, [n, l]), c.useEffect(() => {
|
|
@@ -3618,7 +3615,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
|
3618
3615
|
/**
|
|
3619
3616
|
* A single child content element.
|
|
3620
3617
|
*/
|
|
3621
|
-
children:
|
|
3618
|
+
children: go,
|
|
3622
3619
|
/**
|
|
3623
3620
|
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
3624
3621
|
* replace it to the last focused element when it closes.
|
|
@@ -3693,14 +3690,14 @@ const An = {
|
|
|
3693
3690
|
// eslint-disable-next-line react/prop-types
|
|
3694
3691
|
TransitionComponent: O = Nt,
|
|
3695
3692
|
...d
|
|
3696
|
-
} = t, m = c.useRef(null), S = Ee(m,
|
|
3693
|
+
} = t, m = c.useRef(null), S = Ee(m, yo(l), n), N = (k) => (x) => {
|
|
3697
3694
|
if (k) {
|
|
3698
3695
|
const R = m.current;
|
|
3699
3696
|
x === void 0 ? k(R) : k(R, x);
|
|
3700
3697
|
}
|
|
3701
3698
|
}, I = N(T), P = N((k, x) => {
|
|
3702
3699
|
Mt(k);
|
|
3703
|
-
const R =
|
|
3700
|
+
const R = So({
|
|
3704
3701
|
style: v,
|
|
3705
3702
|
timeout: f,
|
|
3706
3703
|
easing: u
|
|
@@ -3709,7 +3706,7 @@ const An = {
|
|
|
3709
3706
|
});
|
|
3710
3707
|
k.style.webkitTransition = r.transitions.create("opacity", R), k.style.transition = r.transitions.create("opacity", R), y && y(k, x);
|
|
3711
3708
|
}), M = N(g), F = N(w), $ = N((k) => {
|
|
3712
|
-
const x =
|
|
3709
|
+
const x = So({
|
|
3713
3710
|
style: v,
|
|
3714
3711
|
timeout: f,
|
|
3715
3712
|
easing: u
|
|
@@ -3766,7 +3763,7 @@ process.env.NODE_ENV !== "production" && (ht.propTypes = {
|
|
|
3766
3763
|
/**
|
|
3767
3764
|
* A single child content element.
|
|
3768
3765
|
*/
|
|
3769
|
-
children:
|
|
3766
|
+
children: go.isRequired,
|
|
3770
3767
|
/**
|
|
3771
3768
|
* The transition timing function.
|
|
3772
3769
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -4037,10 +4034,10 @@ function qn(o) {
|
|
|
4037
4034
|
Je.mount(m(), {
|
|
4038
4035
|
disableScrollLock: r
|
|
4039
4036
|
}), p.current && (p.current.scrollTop = 0);
|
|
4040
|
-
}, N =
|
|
4037
|
+
}, N = Po(() => {
|
|
4041
4038
|
const x = Un(t) || d().body;
|
|
4042
4039
|
Je.add(m(), x), p.current && S();
|
|
4043
|
-
}), I = () => Je.isTopModal(m()), P =
|
|
4040
|
+
}), I = () => Je.isTopModal(m()), P = Po((x) => {
|
|
4044
4041
|
T.current = x, x && (b && I() ? S() : p.current && Ke(p.current, O));
|
|
4045
4042
|
}), M = c.useCallback(() => {
|
|
4046
4043
|
Je.remove(m(), O);
|
|
@@ -4095,8 +4092,8 @@ function qn(o) {
|
|
|
4095
4092
|
v(!0), a && a(), s && M();
|
|
4096
4093
|
};
|
|
4097
4094
|
return {
|
|
4098
|
-
onEnter:
|
|
4099
|
-
onExited:
|
|
4095
|
+
onEnter: No(x, l == null ? void 0 : l.props.onEnter),
|
|
4096
|
+
onExited: No(R, l == null ? void 0 : l.props.onExited)
|
|
4100
4097
|
};
|
|
4101
4098
|
},
|
|
4102
4099
|
rootRef: h,
|
|
@@ -4300,7 +4297,7 @@ process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
|
4300
4297
|
/**
|
|
4301
4298
|
* A single child content element.
|
|
4302
4299
|
*/
|
|
4303
|
-
children:
|
|
4300
|
+
children: go.isRequired,
|
|
4304
4301
|
/**
|
|
4305
4302
|
* Override or extend the styles applied to the component.
|
|
4306
4303
|
*/
|
|
@@ -4536,7 +4533,7 @@ const Xn = (o) => {
|
|
|
4536
4533
|
"--Paper-overlay": (p = s.vars.overlays) == null ? void 0 : p[l]
|
|
4537
4534
|
},
|
|
4538
4535
|
...!s.vars && s.palette.mode === "dark" && {
|
|
4539
|
-
"--Paper-overlay": `linear-gradient(${
|
|
4536
|
+
"--Paper-overlay": `linear-gradient(${Ro("#fff", wo(l))}, ${Ro("#fff", wo(l))})`
|
|
4540
4537
|
}
|
|
4541
4538
|
},
|
|
4542
4539
|
...y.style
|
|
@@ -4570,7 +4567,7 @@ process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
|
4570
4567
|
* It accepts values between 0 and 24 inclusive.
|
|
4571
4568
|
* @default 1
|
|
4572
4569
|
*/
|
|
4573
|
-
elevation: Qo(
|
|
4570
|
+
elevation: Qo(Go, (o) => {
|
|
4574
4571
|
const {
|
|
4575
4572
|
elevation: t,
|
|
4576
4573
|
variant: n
|
|
@@ -4600,15 +4597,15 @@ function Jn(o) {
|
|
|
4600
4597
|
return te("MuiPopover", o);
|
|
4601
4598
|
}
|
|
4602
4599
|
oe("MuiPopover", ["root", "paper"]);
|
|
4603
|
-
function
|
|
4600
|
+
function zo(o, t) {
|
|
4604
4601
|
let n = 0;
|
|
4605
4602
|
return typeof t == "number" ? n = t : t === "center" ? n = o.height / 2 : t === "bottom" && (n = o.height), n;
|
|
4606
4603
|
}
|
|
4607
|
-
function
|
|
4604
|
+
function Wo(o, t) {
|
|
4608
4605
|
let n = 0;
|
|
4609
4606
|
return typeof t == "number" ? n = t : t === "center" ? n = o.width / 2 : t === "right" && (n = o.width), n;
|
|
4610
4607
|
}
|
|
4611
|
-
function
|
|
4608
|
+
function Uo(o) {
|
|
4612
4609
|
return [o.horizontal, o.vertical].map((t) => typeof t == "number" ? `${t}px` : t).join(" ");
|
|
4613
4610
|
}
|
|
4614
4611
|
function Qe(o) {
|
|
@@ -4697,12 +4694,12 @@ const Qn = (o) => {
|
|
|
4697
4694
|
`));
|
|
4698
4695
|
}
|
|
4699
4696
|
return {
|
|
4700
|
-
top: z.top +
|
|
4701
|
-
left: z.left +
|
|
4697
|
+
top: z.top + zo(z, a.vertical),
|
|
4698
|
+
left: z.left + Wo(z, a.horizontal)
|
|
4702
4699
|
};
|
|
4703
4700
|
}, [i, a.horizontal, a.vertical, l, u]), k = c.useCallback((A) => ({
|
|
4704
|
-
vertical:
|
|
4705
|
-
horizontal:
|
|
4701
|
+
vertical: zo(A, O.vertical),
|
|
4702
|
+
horizontal: Wo(A, O.horizontal)
|
|
4706
4703
|
}), [O.horizontal, O.vertical]), x = c.useCallback((A) => {
|
|
4707
4704
|
const D = {
|
|
4708
4705
|
width: A.offsetWidth,
|
|
@@ -4712,7 +4709,7 @@ const Qn = (o) => {
|
|
|
4712
4709
|
return {
|
|
4713
4710
|
top: null,
|
|
4714
4711
|
left: null,
|
|
4715
|
-
transformOrigin:
|
|
4712
|
+
transformOrigin: Uo(z)
|
|
4716
4713
|
};
|
|
4717
4714
|
const X = H();
|
|
4718
4715
|
let B = X.top - z.vertical, K = X.left - z.horizontal;
|
|
@@ -4735,7 +4732,7 @@ const Qn = (o) => {
|
|
|
4735
4732
|
return {
|
|
4736
4733
|
top: `${Math.round(B)}px`,
|
|
4737
4734
|
left: `${Math.round(K)}px`,
|
|
4738
|
-
transformOrigin:
|
|
4735
|
+
transformOrigin: Uo(z)
|
|
4739
4736
|
};
|
|
4740
4737
|
}, [i, u, H, k, p]), [R, V] = c.useState(h), L = c.useCallback(() => {
|
|
4741
4738
|
const A = F.current;
|
|
@@ -4806,7 +4803,7 @@ const Qn = (o) => {
|
|
|
4806
4803
|
}), J = Ee(F, Z.ref);
|
|
4807
4804
|
return /* @__PURE__ */ E(ie, {
|
|
4808
4805
|
...me,
|
|
4809
|
-
...!
|
|
4806
|
+
...!mo(ie) && {
|
|
4810
4807
|
slotProps: pe,
|
|
4811
4808
|
disableScrollLock: I
|
|
4812
4809
|
},
|
|
@@ -4936,7 +4933,7 @@ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
|
|
|
4936
4933
|
* The elevation of the popover.
|
|
4937
4934
|
* @default 8
|
|
4938
4935
|
*/
|
|
4939
|
-
elevation:
|
|
4936
|
+
elevation: Go,
|
|
4940
4937
|
/**
|
|
4941
4938
|
* Specifies how close to the edge of the window the popover can appear.
|
|
4942
4939
|
* If null, the popover will not be constrained by the window.
|
|
@@ -5105,15 +5102,15 @@ const tr = {
|
|
|
5105
5102
|
};
|
|
5106
5103
|
let $ = -1;
|
|
5107
5104
|
c.Children.map(i, (R, V) => {
|
|
5108
|
-
/* @__PURE__ */ c.isValidElement(R) && (process.env.NODE_ENV !== "production" &&
|
|
5105
|
+
/* @__PURE__ */ c.isValidElement(R) && (process.env.NODE_ENV !== "production" && ho.isFragment(R) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
5109
5106
|
`)), R.props.disabled || (v === "selectedMenu" && R.props.selected || $ === -1) && ($ = V));
|
|
5110
5107
|
});
|
|
5111
|
-
const U = f.paper ?? ir, H = O.paper ?? g, k =
|
|
5108
|
+
const U = f.paper ?? ir, H = O.paper ?? g, k = Co({
|
|
5112
5109
|
elementType: f.root,
|
|
5113
5110
|
externalSlotProps: O.root,
|
|
5114
5111
|
ownerState: S,
|
|
5115
5112
|
className: [N.root, a]
|
|
5116
|
-
}), x =
|
|
5113
|
+
}), x = Co({
|
|
5117
5114
|
elementType: U,
|
|
5118
5115
|
externalSlotProps: H,
|
|
5119
5116
|
ownerState: S,
|
|
@@ -5262,7 +5259,7 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
5262
5259
|
function lr(o) {
|
|
5263
5260
|
return te("MuiNativeSelect", o);
|
|
5264
5261
|
}
|
|
5265
|
-
const
|
|
5262
|
+
const vo = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), cr = (o) => {
|
|
5266
5263
|
const {
|
|
5267
5264
|
classes: t,
|
|
5268
5265
|
variant: n,
|
|
@@ -5292,7 +5289,7 @@ const To = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
5292
5289
|
// Reset Chrome style
|
|
5293
5290
|
borderRadius: 0
|
|
5294
5291
|
},
|
|
5295
|
-
[`&.${
|
|
5292
|
+
[`&.${vo.disabled}`]: {
|
|
5296
5293
|
cursor: "default"
|
|
5297
5294
|
},
|
|
5298
5295
|
"&[multiple]": {
|
|
@@ -5346,7 +5343,7 @@ const To = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
5346
5343
|
ownerState: n
|
|
5347
5344
|
} = o;
|
|
5348
5345
|
return [t.select, t[n.variant], n.error && t.error, {
|
|
5349
|
-
[`&.${
|
|
5346
|
+
[`&.${vo.multiple}`]: t.multiple
|
|
5350
5347
|
}];
|
|
5351
5348
|
}
|
|
5352
5349
|
})({}), Rt = j("svg")(({
|
|
@@ -5361,7 +5358,7 @@ const To = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
5361
5358
|
// Don't block pointer events on the select under the icon.
|
|
5362
5359
|
pointerEvents: "none",
|
|
5363
5360
|
color: (o.vars || o).palette.action.active,
|
|
5364
|
-
[`&.${
|
|
5361
|
+
[`&.${vo.disabled}`]: {
|
|
5365
5362
|
color: (o.vars || o).palette.action.disabled
|
|
5366
5363
|
},
|
|
5367
5364
|
variants: [{
|
|
@@ -5483,7 +5480,7 @@ function pr(o) {
|
|
|
5483
5480
|
return te("MuiSelect", o);
|
|
5484
5481
|
}
|
|
5485
5482
|
const He = oe("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
5486
|
-
var
|
|
5483
|
+
var Vo;
|
|
5487
5484
|
const fr = j(Et, {
|
|
5488
5485
|
name: "MuiSelect",
|
|
5489
5486
|
slot: "Select",
|
|
@@ -5541,7 +5538,7 @@ const fr = j(Et, {
|
|
|
5541
5538
|
width: "100%",
|
|
5542
5539
|
boxSizing: "border-box"
|
|
5543
5540
|
});
|
|
5544
|
-
function
|
|
5541
|
+
function qo(o, t) {
|
|
5545
5542
|
return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
|
|
5546
5543
|
}
|
|
5547
5544
|
function hr(o) {
|
|
@@ -5562,7 +5559,7 @@ const yr = (o) => {
|
|
|
5562
5559
|
};
|
|
5563
5560
|
return ne(l, pr, t);
|
|
5564
5561
|
}, St = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
5565
|
-
var
|
|
5562
|
+
var xo;
|
|
5566
5563
|
const {
|
|
5567
5564
|
"aria-describedby": r,
|
|
5568
5565
|
"aria-label": s,
|
|
@@ -5651,14 +5648,14 @@ const yr = (o) => {
|
|
|
5651
5648
|
} else
|
|
5652
5649
|
ee = C.props.value;
|
|
5653
5650
|
if (C.props.onClick && C.props.onClick(W), L !== ee && (re(ee), S)) {
|
|
5654
|
-
const je = W.nativeEvent || W,
|
|
5655
|
-
Object.defineProperty(
|
|
5651
|
+
const je = W.nativeEvent || W, Eo = new je.constructor(je.type, je);
|
|
5652
|
+
Object.defineProperty(Eo, "target", {
|
|
5656
5653
|
writable: !0,
|
|
5657
5654
|
value: {
|
|
5658
5655
|
value: ee,
|
|
5659
5656
|
name: d
|
|
5660
5657
|
}
|
|
5661
|
-
}), S(
|
|
5658
|
+
}), S(Eo, C);
|
|
5662
5659
|
}
|
|
5663
5660
|
O || z(!1, W);
|
|
5664
5661
|
}
|
|
@@ -5690,15 +5687,15 @@ const yr = (o) => {
|
|
|
5690
5687
|
const ze = K.map((C) => {
|
|
5691
5688
|
if (!/* @__PURE__ */ c.isValidElement(C))
|
|
5692
5689
|
return null;
|
|
5693
|
-
process.env.NODE_ENV !== "production" &&
|
|
5690
|
+
process.env.NODE_ENV !== "production" && ho.isFragment(C) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
5694
5691
|
`));
|
|
5695
5692
|
let W;
|
|
5696
5693
|
if (O) {
|
|
5697
5694
|
if (!Array.isArray(L))
|
|
5698
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." :
|
|
5699
|
-
W = L.some((ee) =>
|
|
5695
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Ko(2));
|
|
5696
|
+
W = L.some((ee) => qo(ee, C.props.value)), W && de && Ce.push(C.props.children);
|
|
5700
5697
|
} else
|
|
5701
|
-
W =
|
|
5698
|
+
W = qo(L, C.props.value), W && de && (Ie = C.props.children);
|
|
5702
5699
|
return W && (Be = !0), /* @__PURE__ */ c.cloneElement(C, {
|
|
5703
5700
|
"aria-selected": W ? "true" : "false",
|
|
5704
5701
|
onClick: Oe(C),
|
|
@@ -5732,7 +5729,7 @@ const yr = (o) => {
|
|
|
5732
5729
|
error: p
|
|
5733
5730
|
}, _ = yr(Ne), Le = {
|
|
5734
5731
|
...f.PaperProps,
|
|
5735
|
-
...(
|
|
5732
|
+
...(xo = f.slotProps) == null ? void 0 : xo.paper
|
|
5736
5733
|
}, Ue = Jo();
|
|
5737
5734
|
return /* @__PURE__ */ he(c.Fragment, {
|
|
5738
5735
|
children: [/* @__PURE__ */ E(fr, {
|
|
@@ -5757,7 +5754,7 @@ const yr = (o) => {
|
|
|
5757
5754
|
id: ke,
|
|
5758
5755
|
children: hr(Y) ? (
|
|
5759
5756
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
5760
|
-
|
|
5757
|
+
Vo || (Vo = /* @__PURE__ */ E("span", {
|
|
5761
5758
|
className: "notranslate",
|
|
5762
5759
|
children: ""
|
|
5763
5760
|
}))
|
|
@@ -5966,12 +5963,12 @@ const gr = $t(/* @__PURE__ */ E("path", {
|
|
|
5966
5963
|
classes: t
|
|
5967
5964
|
} = o;
|
|
5968
5965
|
return t;
|
|
5969
|
-
},
|
|
5966
|
+
}, To = {
|
|
5970
5967
|
name: "MuiSelect",
|
|
5971
5968
|
overridesResolver: (o, t) => t.root,
|
|
5972
5969
|
shouldForwardProp: (o) => we(o) && o !== "variant",
|
|
5973
5970
|
slot: "Root"
|
|
5974
|
-
}, Tr = j(Ge,
|
|
5971
|
+
}, Tr = j(Ge, To)(""), Or = j(Xe, To)(""), xr = j(Ye, To)(""), Oo = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
5975
5972
|
const r = Ut({
|
|
5976
5973
|
name: "MuiSelect",
|
|
5977
5974
|
props: t
|
|
@@ -5998,7 +5995,7 @@ const gr = $t(/* @__PURE__ */ E("path", {
|
|
|
5998
5995
|
SelectDisplayProps: I,
|
|
5999
5996
|
variant: P = "outlined",
|
|
6000
5997
|
...M
|
|
6001
|
-
} = r, F = O ? wt : St, $ =
|
|
5998
|
+
} = r, F = O ? wt : St, $ = Ae(), U = De({
|
|
6002
5999
|
props: r,
|
|
6003
6000
|
muiFormControl: $,
|
|
6004
6001
|
states: ["variant", "error"]
|
|
@@ -6020,7 +6017,7 @@ const gr = $t(/* @__PURE__ */ E("path", {
|
|
|
6020
6017
|
filled: /* @__PURE__ */ E(xr, {
|
|
6021
6018
|
ownerState: k
|
|
6022
6019
|
})
|
|
6023
|
-
}[H], re = Ee(n,
|
|
6020
|
+
}[H], re = Ee(n, yo(L));
|
|
6024
6021
|
return /* @__PURE__ */ E(c.Fragment, {
|
|
6025
6022
|
children: /* @__PURE__ */ c.cloneElement(L, {
|
|
6026
6023
|
// Most of the logic is implemented in `SelectInput`.
|
|
@@ -6052,7 +6049,7 @@ const gr = $t(/* @__PURE__ */ E("path", {
|
|
|
6052
6049
|
}
|
|
6053
6050
|
},
|
|
6054
6051
|
...p,
|
|
6055
|
-
classes: p ?
|
|
6052
|
+
classes: p ? bo(V, p.classes) : V,
|
|
6056
6053
|
...T ? T.props.inputProps : {}
|
|
6057
6054
|
},
|
|
6058
6055
|
...(f && O || b) && H === "outlined" ? {
|
|
@@ -6068,7 +6065,7 @@ const gr = $t(/* @__PURE__ */ E("path", {
|
|
|
6068
6065
|
})
|
|
6069
6066
|
});
|
|
6070
6067
|
});
|
|
6071
|
-
process.env.NODE_ENV !== "production" && (
|
|
6068
|
+
process.env.NODE_ENV !== "production" && (Oo.propTypes = {
|
|
6072
6069
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
6073
6070
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
6074
6071
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -6215,7 +6212,7 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = {
|
|
|
6215
6212
|
*/
|
|
6216
6213
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
6217
6214
|
});
|
|
6218
|
-
|
|
6215
|
+
Oo.muiName = "Select";
|
|
6219
6216
|
function Er(o) {
|
|
6220
6217
|
return te("MuiTextField", o);
|
|
6221
6218
|
}
|
|
@@ -6318,7 +6315,7 @@ const Rr = {
|
|
|
6318
6315
|
externalForwardedProps: J,
|
|
6319
6316
|
ownerState: q
|
|
6320
6317
|
}), [Se, Y] = ye("select", {
|
|
6321
|
-
elementType:
|
|
6318
|
+
elementType: Oo,
|
|
6322
6319
|
externalForwardedProps: J,
|
|
6323
6320
|
ownerState: q
|
|
6324
6321
|
}), Ie = /* @__PURE__ */ E(z, {
|