@cgi-learning-hub/ui 0.0.1-dev.1709719281 → 0.0.1-dev.1709720061
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/{Box-CXP-5h9P.js → Box-DbTiG4H5.js} +3 -3
- package/dist/{ButtonBase-DpD6huF3.js → ButtonBase-Cj0VAGSo.js} +3 -3
- package/dist/{CircularProgress-C07SUcYf.js → CircularProgress-BqQQW0l9.js} +3 -3
- package/dist/{DefaultButton-_mrCx6TQ.js → DefaultButton-DdQUbrXq.js} +6 -6
- package/dist/{IconButton-BUJX1Kz7.js → IconButton-BO0e0bGH.js} +4 -4
- package/dist/{InputBase-U35goXkW.js → InputBase-D-C0U1Q3.js} +3 -3
- package/dist/LocalizationProvider-BqhYrFIl.js +573 -0
- package/dist/LocalizationProvider-CAosaaEW.cjs +5 -0
- package/dist/{SearchInput-lqqR8CpF.js → SearchInput-Ef9mtSE4.js} +5 -5
- package/dist/{Tabs-D8c80LIh.js → Tabs-DlViPyxj.js} +7 -7
- package/dist/{TextInput-Cg3iPUXm.js → TextInput-BzLHXWGA.js} +158 -158
- package/dist/{TextInput-Bnnhldff.cjs → TextInput-qJONVcHy.cjs} +1 -1
- package/dist/{TimePicker-w1u-gt1V.cjs → TimePicker-BhAd6Y8r.cjs} +1 -1
- package/dist/{TimePicker-C2DgLcWo.js → TimePicker-R9IvHk5c.js} +15 -15
- package/dist/{Typography-CMZpK-6k.js → Typography-gyI1N9sP.js} +2 -2
- package/dist/components/Dropzone/Dropzone.es.js +5 -5
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +3 -2
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +2 -2
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.es.js +22 -22
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +43 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.cjs.js +1 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.es.js +16 -0
- package/dist/components/inputs/PasswordInput/index.cjs.js +1 -0
- package/dist/components/inputs/PasswordInput/index.d.ts +2 -0
- package/dist/components/inputs/PasswordInput/index.es.js +4 -0
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +1 -0
- package/dist/components/inputs/TextInput/TextInput.es.js +3 -4
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.d.ts +1 -0
- package/dist/components/inputs/index.es.js +6 -4
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +5 -5
- package/dist/components/lists/TabList.stories.es.js +3 -3
- package/dist/{createSvgIcon-C2SxpGh8.js → createSvgIcon-D51qQ1iy.js} +2 -2
- package/dist/{createSvgIcon-CQqNddEV.js → createSvgIcon-RcVfBE0a.js} +6 -6
- package/dist/fr-BmGEYD_b.js +335 -0
- package/dist/fr-D4QyQkl7.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +20 -20
- package/dist/{refType-ONErEPrN.js → refType-CRZJc9ll.js} +1 -1
- package/dist/{styled-CennO0rX.js → styled-Cu97anhh.js} +1 -1
- package/dist/{useSlotProps-BojAgRB1.js → useSlotProps-BE7y-efU.js} +2 -2
- package/dist/{useTheme-Dnkg8lL1.js → useTheme-zz1qDqSf.js} +1 -1
- package/dist/{useThemeProps-HgPikzOW.js → useThemeProps-HPaoKsTZ.js} +5 -5
- package/package.json +1 -1
- package/dist/LocalizationProvider-CEOwVRxT.js +0 -903
- package/dist/LocalizationProvider-DqwEOZOd.cjs +0 -5
- package/dist/components/feedback/Alert/Alert.cjs.js +0 -1
- package/dist/components/feedback/Alert/Alert.d.ts +0 -7
- package/dist/components/feedback/Alert/Alert.es.js +0 -32
- package/dist/components/feedback/Alert/Alert.stories.cjs.js +0 -1
- package/dist/components/feedback/Alert/Alert.stories.es.js +0 -17
- package/dist/components/feedback/Alert/index.cjs.js +0 -1
- package/dist/components/feedback/Alert/index.d.ts +0 -2
- package/dist/components/feedback/Alert/index.es.js +0 -4
- package/dist/components/feedback/index.cjs.js +0 -1
- package/dist/components/feedback/index.d.ts +0 -1
- package/dist/components/feedback/index.es.js +0 -4
- /package/dist/components/{feedback/Alert/Alert.stories.d.ts → inputs/PasswordInput/PasswordInput.stories.d.ts} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsxs as fe, jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import { g as ee, s as j, r as me, a as oe, c as Z, d as ho, e as Ln } from "./styled-Cu97anhh.js";
|
|
3
|
+
import { P as e, _ as d, e as z, g as ne, b as re, o as vo, c as ce, a as Do, l as jn } from "./useThemeProps-HPaoKsTZ.js";
|
|
2
4
|
import * as u from "react";
|
|
3
5
|
import Ke from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { P as e, _ as d, e as z, g as ne, b as re, o as vo, c as ce, a as Do, k as jn } from "./useThemeProps-HgPikzOW.js";
|
|
6
|
-
import { i as go, a as yo, r as Eo, b as xo, c as To, I as Oo, u as Ve, f as qe, d as _n, e as uo, F as An } from "./InputBase-U35goXkW.js";
|
|
6
|
+
import { i as go, a as yo, r as Eo, b as xo, c as To, I as Oo, u as Ve, f as qe, d as _n, e as uo, F as An } from "./InputBase-D-C0U1Q3.js";
|
|
7
7
|
import { c as Lo, i as io, u as jo } from "./useControlled-BsLcOmhe.js";
|
|
8
8
|
import { u as Zo } from "./useId-BW-oWmul.js";
|
|
9
|
-
import { u as Ze } from "./useTheme-
|
|
9
|
+
import { u as Ze } from "./useTheme-zz1qDqSf.js";
|
|
10
10
|
import { a as be, u as po, s as _o } from "./useForkRef-CQ5u1_mH.js";
|
|
11
|
-
import { c as eo, r as we, e as Bn } from "./refType-
|
|
11
|
+
import { c as eo, r as we, e as Bn } from "./refType-CRZJc9ll.js";
|
|
12
12
|
import { _ as Wn, T as en } from "./TransitionGroupContext-C7wWJ6l7.js";
|
|
13
13
|
import * as Un from "react-dom";
|
|
14
14
|
import Ge from "react-dom";
|
|
15
15
|
import { o as ie, a as We, d as Vn } from "./ownerWindow-C7EH1lr6.js";
|
|
16
16
|
import { a as Ao, u as qn } from "./useTimeout-CT5mhldn.js";
|
|
17
|
-
import { e as zn, u as
|
|
17
|
+
import { e as zn, u as ke } from "./useSlotProps-BE7y-efU.js";
|
|
18
18
|
import { i as Hn } from "./isHostComponent-kiaBvYVo.js";
|
|
19
|
-
import { c as Kn } from "./createSvgIcon-
|
|
19
|
+
import { c as Kn } from "./createSvgIcon-D51qQ1iy.js";
|
|
20
20
|
function Gn(o) {
|
|
21
21
|
const {
|
|
22
22
|
prototype: n = {}
|
|
@@ -163,8 +163,8 @@ function Ye(o) {
|
|
|
163
163
|
let D = [];
|
|
164
164
|
if ((f.activeElement === p.current || f.activeElement === b.current) && (D = s(v.current)), D.length > 0) {
|
|
165
165
|
var _, A;
|
|
166
|
-
const V = !!((_ = O.current) != null && _.shiftKey && ((A = O.current) == null ? void 0 : A.key) === "Tab"), W = D[0],
|
|
167
|
-
typeof W != "string" && typeof
|
|
166
|
+
const V = !!((_ = O.current) != null && _.shiftKey && ((A = O.current) == null ? void 0 : A.key) === "Tab"), W = D[0], k = D[D.length - 1];
|
|
167
|
+
typeof W != "string" && typeof k != "string" && (V ? k.focus() : W.focus());
|
|
168
168
|
} else
|
|
169
169
|
y.focus();
|
|
170
170
|
};
|
|
@@ -475,44 +475,44 @@ function mt(o) {
|
|
|
475
475
|
}, [A]), u.useEffect(() => {
|
|
476
476
|
b ? y() : (!M || !s) && A();
|
|
477
477
|
}, [b, A, M, s, y]);
|
|
478
|
-
const V = (S) => (
|
|
479
|
-
var
|
|
480
|
-
(
|
|
481
|
-
!D()) && (t || (
|
|
482
|
-
}, W = (S) => (
|
|
483
|
-
var
|
|
484
|
-
(
|
|
478
|
+
const V = (S) => ($) => {
|
|
479
|
+
var F;
|
|
480
|
+
(F = S.onKeyDown) == null || F.call(S, $), !($.key !== "Escape" || $.which === 229 || // Wait until IME is settled.
|
|
481
|
+
!D()) && (t || ($.stopPropagation(), p && p($, "escapeKeyDown")));
|
|
482
|
+
}, W = (S) => ($) => {
|
|
483
|
+
var F;
|
|
484
|
+
(F = S.onClick) == null || F.call(S, $), $.target === $.currentTarget && p && p($, "backdropClick");
|
|
485
485
|
};
|
|
486
486
|
return {
|
|
487
487
|
getRootProps: (S = {}) => {
|
|
488
|
-
const
|
|
489
|
-
delete
|
|
490
|
-
const
|
|
488
|
+
const $ = zn(o);
|
|
489
|
+
delete $.onTransitionEnter, delete $.onTransitionExited;
|
|
490
|
+
const F = d({}, $, S);
|
|
491
491
|
return d({
|
|
492
492
|
role: "presentation"
|
|
493
|
-
},
|
|
494
|
-
onKeyDown: V(
|
|
493
|
+
}, F, {
|
|
494
|
+
onKeyDown: V(F),
|
|
495
495
|
ref: w
|
|
496
496
|
});
|
|
497
497
|
},
|
|
498
498
|
getBackdropProps: (S = {}) => {
|
|
499
|
-
const
|
|
499
|
+
const $ = S;
|
|
500
500
|
return d({
|
|
501
501
|
"aria-hidden": !0
|
|
502
|
-
},
|
|
503
|
-
onClick: W(
|
|
502
|
+
}, $, {
|
|
503
|
+
onClick: W($),
|
|
504
504
|
open: b
|
|
505
505
|
});
|
|
506
506
|
},
|
|
507
507
|
getTransitionProps: () => {
|
|
508
508
|
const S = () => {
|
|
509
509
|
g(!1), a && a();
|
|
510
|
-
},
|
|
510
|
+
}, $ = () => {
|
|
511
511
|
g(!0), l && l(), s && A();
|
|
512
512
|
};
|
|
513
513
|
return {
|
|
514
514
|
onEnter: Lo(S, c == null ? void 0 : c.props.onEnter),
|
|
515
|
-
onExited: Lo(
|
|
515
|
+
onExited: Lo($, c == null ? void 0 : c.props.onExited)
|
|
516
516
|
};
|
|
517
517
|
},
|
|
518
518
|
rootRef: w,
|
|
@@ -542,13 +542,13 @@ var bt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
542
542
|
exitActive: e.string
|
|
543
543
|
})]) : null, ht = function(n) {
|
|
544
544
|
return n.scrollTop;
|
|
545
|
-
}, _e = "unmounted", Ie = "exited", Se = "entering",
|
|
545
|
+
}, _e = "unmounted", Ie = "exited", Se = "entering", $e = "entered", mo = "exiting", he = /* @__PURE__ */ function(o) {
|
|
546
546
|
Wn(n, o);
|
|
547
547
|
function n(r, i) {
|
|
548
548
|
var s;
|
|
549
549
|
s = o.call(this, r, i) || this;
|
|
550
550
|
var a = i, l = a && !a.isMounting ? r.enter : r.appear, c;
|
|
551
|
-
return s.appearStatus = null, r.in ? l ? (c = Ie, s.appearStatus = Se) : c =
|
|
551
|
+
return s.appearStatus = null, r.in ? l ? (c = Ie, s.appearStatus = Se) : c = $e : r.unmountOnExit || r.mountOnEnter ? c = _e : c = Ie, s.state = {
|
|
552
552
|
status: c
|
|
553
553
|
}, s.nextCallback = null, s;
|
|
554
554
|
}
|
|
@@ -565,7 +565,7 @@ var bt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
565
565
|
var s = null;
|
|
566
566
|
if (i !== this.props) {
|
|
567
567
|
var a = this.state.status;
|
|
568
|
-
this.props.in ? a !== Se && a !==
|
|
568
|
+
this.props.in ? a !== Se && a !== $e && (s = Se) : (a === Se || a === $e) && (s = mo);
|
|
569
569
|
}
|
|
570
570
|
this.updateStatus(!1, s);
|
|
571
571
|
}, t.componentWillUnmount = function() {
|
|
@@ -595,7 +595,7 @@ var bt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
595
595
|
var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i, c = this.props.nodeRef ? [l] : [Ge.findDOMNode(this), l], p = c[0], b = c[1], h = this.getTimeouts(), x = l ? h.appear : h.enter;
|
|
596
596
|
if (!i && !a || Vo.disabled) {
|
|
597
597
|
this.safeSetState({
|
|
598
|
-
status:
|
|
598
|
+
status: $e
|
|
599
599
|
}, function() {
|
|
600
600
|
s.props.onEntered(p);
|
|
601
601
|
});
|
|
@@ -606,7 +606,7 @@ var bt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
606
606
|
}, function() {
|
|
607
607
|
s.props.onEntering(p, b), s.onTransitionEnd(x, function() {
|
|
608
608
|
s.safeSetState({
|
|
609
|
-
status:
|
|
609
|
+
status: $e
|
|
610
610
|
}, function() {
|
|
611
611
|
s.props.onEntered(p, b);
|
|
612
612
|
});
|
|
@@ -841,7 +841,7 @@ he.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
841
841
|
*/
|
|
842
842
|
onExited: e.func
|
|
843
843
|
} : {};
|
|
844
|
-
function
|
|
844
|
+
function Fe() {
|
|
845
845
|
}
|
|
846
846
|
he.defaultProps = {
|
|
847
847
|
in: !1,
|
|
@@ -850,17 +850,17 @@ he.defaultProps = {
|
|
|
850
850
|
appear: !1,
|
|
851
851
|
enter: !0,
|
|
852
852
|
exit: !0,
|
|
853
|
-
onEnter:
|
|
854
|
-
onEntering:
|
|
855
|
-
onEntered:
|
|
856
|
-
onExit:
|
|
857
|
-
onExiting:
|
|
858
|
-
onExited:
|
|
853
|
+
onEnter: Fe,
|
|
854
|
+
onEntering: Fe,
|
|
855
|
+
onEntered: Fe,
|
|
856
|
+
onExit: Fe,
|
|
857
|
+
onExiting: Fe,
|
|
858
|
+
onExited: Fe
|
|
859
859
|
};
|
|
860
860
|
he.UNMOUNTED = _e;
|
|
861
861
|
he.EXITED = Ie;
|
|
862
862
|
he.ENTERING = Se;
|
|
863
|
-
he.ENTERED =
|
|
863
|
+
he.ENTERED = $e;
|
|
864
864
|
he.EXITING = mo;
|
|
865
865
|
const cn = he;
|
|
866
866
|
function vt(o) {
|
|
@@ -1699,17 +1699,17 @@ process.env.NODE_ENV !== "production" && (pn.propTypes = {
|
|
|
1699
1699
|
*/
|
|
1700
1700
|
style: e.object
|
|
1701
1701
|
});
|
|
1702
|
-
function
|
|
1702
|
+
function Ft(o) {
|
|
1703
1703
|
return ne("MuiOutlinedInput", o);
|
|
1704
1704
|
}
|
|
1705
|
-
const
|
|
1705
|
+
const $t = d({}, go, ee("MuiOutlinedInput", ["root", "notchedOutline", "input"])), Oe = $t, kt = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"], Dt = (o) => {
|
|
1706
1706
|
const {
|
|
1707
1707
|
classes: n
|
|
1708
1708
|
} = o, r = oe({
|
|
1709
1709
|
root: ["root"],
|
|
1710
1710
|
notchedOutline: ["notchedOutline"],
|
|
1711
1711
|
input: ["input"]
|
|
1712
|
-
},
|
|
1712
|
+
}, Ft, n);
|
|
1713
1713
|
return d({}, n, r);
|
|
1714
1714
|
}, Lt = j(yo, {
|
|
1715
1715
|
shouldForwardProp: (o) => me(o) || o === "classes",
|
|
@@ -1812,7 +1812,7 @@ const Ft = d({}, go, ee("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
|
1812
1812
|
notched: v,
|
|
1813
1813
|
slots: w = {},
|
|
1814
1814
|
type: O = "text"
|
|
1815
|
-
} = c, g = z(c,
|
|
1815
|
+
} = c, g = z(c, kt), M = Dt(c), f = Ve(), m = qe({
|
|
1816
1816
|
props: c,
|
|
1817
1817
|
muiFormControl: f,
|
|
1818
1818
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
@@ -2420,27 +2420,27 @@ const Qt = ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDe
|
|
|
2420
2420
|
size: w,
|
|
2421
2421
|
variant: O
|
|
2422
2422
|
}), f = er(M), [m, E] = u.useState(() => {
|
|
2423
|
-
let
|
|
2423
|
+
let k = !1;
|
|
2424
2424
|
return i && u.Children.forEach(i, (N) => {
|
|
2425
2425
|
if (!io(N, ["Input", "Select"]))
|
|
2426
2426
|
return;
|
|
2427
2427
|
const C = io(N, ["Select"]) ? N.props.input : N;
|
|
2428
|
-
C && _n(C.props) && (
|
|
2429
|
-
}),
|
|
2428
|
+
C && _n(C.props) && (k = !0);
|
|
2429
|
+
}), k;
|
|
2430
2430
|
}), [P, y] = u.useState(() => {
|
|
2431
|
-
let
|
|
2431
|
+
let k = !1;
|
|
2432
2432
|
return i && u.Children.forEach(i, (N) => {
|
|
2433
|
-
io(N, ["Input", "Select"]) && (uo(N.props, !0) || uo(N.props.inputProps, !0)) && (
|
|
2434
|
-
}),
|
|
2433
|
+
io(N, ["Input", "Select"]) && (uo(N.props, !0) || uo(N.props.inputProps, !0)) && (k = !0);
|
|
2434
|
+
}), k;
|
|
2435
2435
|
}), [D, _] = u.useState(!1);
|
|
2436
2436
|
c && D && _(!1);
|
|
2437
2437
|
const A = b !== void 0 && !c ? b : D;
|
|
2438
2438
|
let V;
|
|
2439
2439
|
if (process.env.NODE_ENV !== "production") {
|
|
2440
|
-
const
|
|
2441
|
-
V = () => (
|
|
2442
|
-
`)),
|
|
2443
|
-
|
|
2440
|
+
const k = u.useRef(!1);
|
|
2441
|
+
V = () => (k.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
2442
|
+
`)), k.current = !0, () => {
|
|
2443
|
+
k.current = !1;
|
|
2444
2444
|
});
|
|
2445
2445
|
}
|
|
2446
2446
|
const W = u.useMemo(() => ({
|
|
@@ -3014,14 +3014,14 @@ const yr = {
|
|
|
3014
3014
|
TransitionComponent: O = cn
|
|
3015
3015
|
} = n, g = z(n, gr), M = qn(), f = u.useRef(), m = Ze(), E = u.useRef(null), P = be(E, s.ref, t), y = (C) => (S) => {
|
|
3016
3016
|
if (C) {
|
|
3017
|
-
const
|
|
3018
|
-
S === void 0 ? C(
|
|
3017
|
+
const $ = E.current;
|
|
3018
|
+
S === void 0 ? C($) : C($, S);
|
|
3019
3019
|
}
|
|
3020
3020
|
}, D = y(b), _ = y((C, S) => {
|
|
3021
3021
|
Tn(C);
|
|
3022
3022
|
const {
|
|
3023
|
-
duration:
|
|
3024
|
-
delay:
|
|
3023
|
+
duration: $,
|
|
3024
|
+
delay: F,
|
|
3025
3025
|
easing: L
|
|
3026
3026
|
} = Qe({
|
|
3027
3027
|
style: v,
|
|
@@ -3031,19 +3031,19 @@ const yr = {
|
|
|
3031
3031
|
mode: "enter"
|
|
3032
3032
|
});
|
|
3033
3033
|
let K;
|
|
3034
|
-
w === "auto" ? (K = m.transitions.getAutoHeightDuration(C.clientHeight), f.current = K) : K =
|
|
3034
|
+
w === "auto" ? (K = m.transitions.getAutoHeightDuration(C.clientHeight), f.current = K) : K = $, C.style.transition = [m.transitions.create("opacity", {
|
|
3035
3035
|
duration: K,
|
|
3036
|
-
delay:
|
|
3036
|
+
delay: F
|
|
3037
3037
|
}), m.transitions.create("transform", {
|
|
3038
3038
|
duration: co ? K : K * 0.666,
|
|
3039
|
-
delay:
|
|
3039
|
+
delay: F,
|
|
3040
3040
|
easing: L
|
|
3041
3041
|
})].join(","), c && c(C, S);
|
|
3042
3042
|
}), A = y(p), V = y(T), W = y((C) => {
|
|
3043
3043
|
const {
|
|
3044
3044
|
duration: S,
|
|
3045
|
-
delay:
|
|
3046
|
-
easing:
|
|
3045
|
+
delay: $,
|
|
3046
|
+
easing: F
|
|
3047
3047
|
} = Qe({
|
|
3048
3048
|
style: v,
|
|
3049
3049
|
timeout: w,
|
|
@@ -3054,13 +3054,13 @@ const yr = {
|
|
|
3054
3054
|
let L;
|
|
3055
3055
|
w === "auto" ? (L = m.transitions.getAutoHeightDuration(C.clientHeight), f.current = L) : L = S, C.style.transition = [m.transitions.create("opacity", {
|
|
3056
3056
|
duration: L,
|
|
3057
|
-
delay:
|
|
3057
|
+
delay: $
|
|
3058
3058
|
}), m.transitions.create("transform", {
|
|
3059
3059
|
duration: co ? L : L * 0.666,
|
|
3060
|
-
delay: co ?
|
|
3061
|
-
easing:
|
|
3060
|
+
delay: co ? $ : $ || L * 0.333,
|
|
3061
|
+
easing: F
|
|
3062
3062
|
})].join(","), C.style.opacity = 0, C.style.transform = bo(0.75), h && h(C);
|
|
3063
|
-
}),
|
|
3063
|
+
}), k = y(x);
|
|
3064
3064
|
return /* @__PURE__ */ I(O, d({
|
|
3065
3065
|
appear: i,
|
|
3066
3066
|
in: l,
|
|
@@ -3069,7 +3069,7 @@ const yr = {
|
|
|
3069
3069
|
onEntered: A,
|
|
3070
3070
|
onEntering: D,
|
|
3071
3071
|
onExit: W,
|
|
3072
|
-
onExited:
|
|
3072
|
+
onExited: k,
|
|
3073
3073
|
onExiting: V,
|
|
3074
3074
|
addEndListener: (C) => {
|
|
3075
3075
|
w === "auto" && M.start(f.current || 0, C), r && r(E.current, C);
|
|
@@ -3497,7 +3497,7 @@ const wr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
3497
3497
|
root: ["root", !n && t && "hidden"],
|
|
3498
3498
|
backdrop: ["backdrop"]
|
|
3499
3499
|
}, Sr, r);
|
|
3500
|
-
},
|
|
3500
|
+
}, Fr = j("div", {
|
|
3501
3501
|
name: "MuiModal",
|
|
3502
3502
|
slot: "Root",
|
|
3503
3503
|
overridesResolver: (o, n) => {
|
|
@@ -3518,7 +3518,7 @@ const wr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
3518
3518
|
left: 0
|
|
3519
3519
|
}, !n.open && n.exited && {
|
|
3520
3520
|
visibility: "hidden"
|
|
3521
|
-
})),
|
|
3521
|
+
})), $r = j(Ir, {
|
|
3522
3522
|
name: "MuiModal",
|
|
3523
3523
|
slot: "Backdrop",
|
|
3524
3524
|
overridesResolver: (o, n) => n.backdrop
|
|
@@ -3530,7 +3530,7 @@ const wr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
3530
3530
|
name: "MuiModal",
|
|
3531
3531
|
props: n
|
|
3532
3532
|
}), {
|
|
3533
|
-
BackdropComponent: b =
|
|
3533
|
+
BackdropComponent: b = $r,
|
|
3534
3534
|
BackdropProps: h,
|
|
3535
3535
|
className: x,
|
|
3536
3536
|
closeAfterTransition: T = !1,
|
|
@@ -3549,7 +3549,7 @@ const wr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
3549
3549
|
keepMounted: A = !1,
|
|
3550
3550
|
onBackdropClick: V,
|
|
3551
3551
|
open: W,
|
|
3552
|
-
slotProps:
|
|
3552
|
+
slotProps: k,
|
|
3553
3553
|
slots: N
|
|
3554
3554
|
// eslint-disable-next-line react/prop-types
|
|
3555
3555
|
} = p, C = z(p, wr), S = d({}, p, {
|
|
@@ -3563,8 +3563,8 @@ const wr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
3563
3563
|
hideBackdrop: _,
|
|
3564
3564
|
keepMounted: A
|
|
3565
3565
|
}), {
|
|
3566
|
-
getRootProps:
|
|
3567
|
-
getBackdropProps:
|
|
3566
|
+
getRootProps: $,
|
|
3567
|
+
getBackdropProps: F,
|
|
3568
3568
|
getTransitionProps: L,
|
|
3569
3569
|
portalRef: K,
|
|
3570
3570
|
isTopModal: de,
|
|
@@ -3582,22 +3582,22 @@ const wr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
3582
3582
|
} = L();
|
|
3583
3583
|
se.onEnter = U, se.onExited = q;
|
|
3584
3584
|
}
|
|
3585
|
-
const le = (r = (i = N == null ? void 0 : N.root) != null ? i : g.Root) != null ? r :
|
|
3585
|
+
const le = (r = (i = N == null ? void 0 : N.root) != null ? i : g.Root) != null ? r : Fr, ae = (s = (a = N == null ? void 0 : N.backdrop) != null ? a : g.Backdrop) != null ? s : b, Ce = (l = k == null ? void 0 : k.root) != null ? l : M.root, ve = (c = k == null ? void 0 : k.backdrop) != null ? c : M.backdrop, ge = ke({
|
|
3586
3586
|
elementType: le,
|
|
3587
3587
|
externalSlotProps: Ce,
|
|
3588
3588
|
externalForwardedProps: C,
|
|
3589
|
-
getSlotProps:
|
|
3589
|
+
getSlotProps: $,
|
|
3590
3590
|
additionalProps: {
|
|
3591
3591
|
ref: t,
|
|
3592
3592
|
as: O
|
|
3593
3593
|
},
|
|
3594
3594
|
ownerState: H,
|
|
3595
3595
|
className: Z(x, Ce == null ? void 0 : Ce.className, te == null ? void 0 : te.root, !H.open && H.exited && (te == null ? void 0 : te.hidden))
|
|
3596
|
-
}), ye =
|
|
3596
|
+
}), ye = ke({
|
|
3597
3597
|
elementType: ae,
|
|
3598
3598
|
externalSlotProps: ve,
|
|
3599
3599
|
additionalProps: h,
|
|
3600
|
-
getSlotProps: (U) =>
|
|
3600
|
+
getSlotProps: (U) => F(d({}, U, {
|
|
3601
3601
|
onClick: (q) => {
|
|
3602
3602
|
V && V(q), U != null && U.onClick && U.onClick(q);
|
|
3603
3603
|
}
|
|
@@ -3802,7 +3802,7 @@ process.env.NODE_ENV !== "production" && (Rn.propTypes = {
|
|
|
3802
3802
|
*/
|
|
3803
3803
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
3804
3804
|
});
|
|
3805
|
-
const
|
|
3805
|
+
const kr = Rn;
|
|
3806
3806
|
function Dr(o) {
|
|
3807
3807
|
return ne("MuiPaper", o);
|
|
3808
3808
|
}
|
|
@@ -3947,7 +3947,7 @@ const qr = (o) => {
|
|
|
3947
3947
|
root: ["root"],
|
|
3948
3948
|
paper: ["paper"]
|
|
3949
3949
|
}, Br, n);
|
|
3950
|
-
}, zr = j(
|
|
3950
|
+
}, zr = j(kr, {
|
|
3951
3951
|
name: "MuiPopover",
|
|
3952
3952
|
slot: "Root",
|
|
3953
3953
|
overridesResolver: (o, n) => n.root
|
|
@@ -4000,7 +4000,7 @@ const qr = (o) => {
|
|
|
4000
4000
|
onEntering: D
|
|
4001
4001
|
} = {},
|
|
4002
4002
|
disableScrollLock: _ = !1
|
|
4003
|
-
} = a, A = z(a.TransitionProps, Wr), V = z(a, Ur), W = (r = m == null ? void 0 : m.paper) != null ? r : M,
|
|
4003
|
+
} = a, A = z(a.TransitionProps, Wr), V = z(a, Ur), W = (r = m == null ? void 0 : m.paper) != null ? r : M, k = u.useRef(), N = be(k, W.ref), C = d({}, a, {
|
|
4004
4004
|
anchorOrigin: p,
|
|
4005
4005
|
anchorReference: h,
|
|
4006
4006
|
elevation: w,
|
|
@@ -4010,10 +4010,10 @@ const qr = (o) => {
|
|
|
4010
4010
|
TransitionComponent: P,
|
|
4011
4011
|
transitionDuration: y,
|
|
4012
4012
|
TransitionProps: A
|
|
4013
|
-
}), S = qr(C),
|
|
4013
|
+
}), S = qr(C), $ = u.useCallback(() => {
|
|
4014
4014
|
if (h === "anchorPosition")
|
|
4015
4015
|
return process.env.NODE_ENV !== "production" && (b || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), b;
|
|
4016
|
-
const U = Xe(c), q = U && U.nodeType === 1 ? U : ie(
|
|
4016
|
+
const U = Xe(c), q = U && U.nodeType === 1 ? U : ie(k.current).body, X = q.getBoundingClientRect();
|
|
4017
4017
|
if (process.env.NODE_ENV !== "production") {
|
|
4018
4018
|
const ue = q.getBoundingClientRect();
|
|
4019
4019
|
process.env.NODE_ENV !== "test" && ue.top === 0 && ue.left === 0 && ue.right === 0 && ue.bottom === 0 && console.warn(["MUI: The `anchorEl` 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(`
|
|
@@ -4023,21 +4023,21 @@ const qr = (o) => {
|
|
|
4023
4023
|
top: X.top + Go(X, p.vertical),
|
|
4024
4024
|
left: X.left + Xo(X, p.horizontal)
|
|
4025
4025
|
};
|
|
4026
|
-
}, [c, p.horizontal, p.vertical, b, h]),
|
|
4026
|
+
}, [c, p.horizontal, p.vertical, b, h]), F = u.useCallback((U) => ({
|
|
4027
4027
|
vertical: Go(U, E.vertical),
|
|
4028
4028
|
horizontal: Xo(U, E.horizontal)
|
|
4029
4029
|
}), [E.horizontal, E.vertical]), L = u.useCallback((U) => {
|
|
4030
4030
|
const q = {
|
|
4031
4031
|
width: U.offsetWidth,
|
|
4032
4032
|
height: U.offsetHeight
|
|
4033
|
-
}, X =
|
|
4033
|
+
}, X = F(q);
|
|
4034
4034
|
if (h === "none")
|
|
4035
4035
|
return {
|
|
4036
4036
|
top: null,
|
|
4037
4037
|
left: null,
|
|
4038
4038
|
transformOrigin: Yo(X)
|
|
4039
4039
|
};
|
|
4040
|
-
const ue =
|
|
4040
|
+
const ue = $();
|
|
4041
4041
|
let Ee = ue.top - X.vertical, xe = ue.left - X.horizontal;
|
|
4042
4042
|
const Re = Ee + q.height, ze = xe + q.width, pe = We(Xe(c)), Te = pe.innerHeight - O, Pe = pe.innerWidth - O;
|
|
4043
4043
|
if (O !== null && Ee < O) {
|
|
@@ -4060,8 +4060,8 @@ const qr = (o) => {
|
|
|
4060
4060
|
left: `${Math.round(xe)}px`,
|
|
4061
4061
|
transformOrigin: Yo(X)
|
|
4062
4062
|
};
|
|
4063
|
-
}, [c, h, F,
|
|
4064
|
-
const U =
|
|
4063
|
+
}, [c, h, $, F, O]), [K, de] = u.useState(g), Y = u.useCallback(() => {
|
|
4064
|
+
const U = k.current;
|
|
4065
4065
|
if (!U)
|
|
4066
4066
|
return;
|
|
4067
4067
|
const q = L(U);
|
|
@@ -4091,7 +4091,7 @@ const qr = (o) => {
|
|
|
4091
4091
|
}, [c, g, Y]);
|
|
4092
4092
|
let te = y;
|
|
4093
4093
|
y === "auto" && !P.muiSupportAuto && (te = void 0);
|
|
4094
|
-
const se = v || (c ? ie(Xe(c)).body : void 0), le = (i = f == null ? void 0 : f.root) != null ? i : zr, ae = (s = f == null ? void 0 : f.paper) != null ? s : Nn, Ce =
|
|
4094
|
+
const se = v || (c ? ie(Xe(c)).body : void 0), le = (i = f == null ? void 0 : f.root) != null ? i : zr, ae = (s = f == null ? void 0 : f.paper) != null ? s : Nn, Ce = ke({
|
|
4095
4095
|
elementType: ae,
|
|
4096
4096
|
externalSlotProps: d({}, W, {
|
|
4097
4097
|
style: K ? W.style : d({}, W.style, {
|
|
@@ -4104,7 +4104,7 @@ const qr = (o) => {
|
|
|
4104
4104
|
},
|
|
4105
4105
|
ownerState: C,
|
|
4106
4106
|
className: Z(S.paper, W == null ? void 0 : W.className)
|
|
4107
|
-
}), ve =
|
|
4107
|
+
}), ve = ke({
|
|
4108
4108
|
elementType: le,
|
|
4109
4109
|
externalSlotProps: (m == null ? void 0 : m.root) || {},
|
|
4110
4110
|
externalForwardedProps: V,
|
|
@@ -4392,7 +4392,7 @@ const Gr = ee("MuiMenu", ["root", "paper", "list"]), oi = Gr, Xr = ["onEntering"
|
|
|
4392
4392
|
variant: g
|
|
4393
4393
|
}), _ = Zr(D), A = a && !p && x, V = u.useRef(null), W = (L, K) => {
|
|
4394
4394
|
V.current && V.current.adjustStyleForScrollbar(L, P), O && O(L, K);
|
|
4395
|
-
},
|
|
4395
|
+
}, k = (L) => {
|
|
4396
4396
|
L.key === "Tab" && (L.preventDefault(), h && h(L, "tabKeyDown"));
|
|
4397
4397
|
};
|
|
4398
4398
|
let N = -1;
|
|
@@ -4400,12 +4400,12 @@ const Gr = ee("MuiMenu", ["root", "paper", "list"]), oi = Gr, Xr = ["onEntering"
|
|
|
4400
4400
|
/* @__PURE__ */ u.isValidElement(L) && (process.env.NODE_ENV !== "production" && ho.isFragment(L) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
4401
4401
|
`)), L.props.disabled || (g === "selectedMenu" && L.props.selected || N === -1) && (N = K));
|
|
4402
4402
|
});
|
|
4403
|
-
const C = (r = M.paper) != null ? r : os, S = (i = f.paper) != null ? i : T,
|
|
4403
|
+
const C = (r = M.paper) != null ? r : os, S = (i = f.paper) != null ? i : T, $ = ke({
|
|
4404
4404
|
elementType: M.root,
|
|
4405
4405
|
externalSlotProps: f.root,
|
|
4406
4406
|
ownerState: D,
|
|
4407
4407
|
className: [_.root, c]
|
|
4408
|
-
}),
|
|
4408
|
+
}), F = ke({
|
|
4409
4409
|
elementType: C,
|
|
4410
4410
|
externalSlotProps: S,
|
|
4411
4411
|
ownerState: D,
|
|
@@ -4423,8 +4423,8 @@ const Gr = ee("MuiMenu", ["root", "paper", "list"]), oi = Gr, Xr = ["onEntering"
|
|
|
4423
4423
|
root: M.root
|
|
4424
4424
|
},
|
|
4425
4425
|
slotProps: {
|
|
4426
|
-
root:
|
|
4427
|
-
paper:
|
|
4426
|
+
root: $,
|
|
4427
|
+
paper: F
|
|
4428
4428
|
},
|
|
4429
4429
|
open: x,
|
|
4430
4430
|
ref: t,
|
|
@@ -4436,7 +4436,7 @@ const Gr = ee("MuiMenu", ["root", "paper", "list"]), oi = Gr, Xr = ["onEntering"
|
|
|
4436
4436
|
}, E, {
|
|
4437
4437
|
classes: v,
|
|
4438
4438
|
children: /* @__PURE__ */ I(ns, d({
|
|
4439
|
-
onKeyDown:
|
|
4439
|
+
onKeyDown: k,
|
|
4440
4440
|
actions: V,
|
|
4441
4441
|
autoFocus: a && (N === -1 || p),
|
|
4442
4442
|
autoFocusItem: A,
|
|
@@ -4667,7 +4667,7 @@ const ss = ee("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
4667
4667
|
} = o;
|
|
4668
4668
|
return [n.icon, t.variant && n[`icon${ce(t.variant)}`], t.open && n.iconOpen];
|
|
4669
4669
|
}
|
|
4670
|
-
})(Mn),
|
|
4670
|
+
})(Mn), Fn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
4671
4671
|
const {
|
|
4672
4672
|
className: r,
|
|
4673
4673
|
disabled: i,
|
|
@@ -4693,7 +4693,7 @@ const ss = ee("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
4693
4693
|
})]
|
|
4694
4694
|
});
|
|
4695
4695
|
});
|
|
4696
|
-
process.env.NODE_ENV !== "production" && (
|
|
4696
|
+
process.env.NODE_ENV !== "production" && (Fn.propTypes = {
|
|
4697
4697
|
/**
|
|
4698
4698
|
* The option elements to populate the select with.
|
|
4699
4699
|
* Can be some `<option>` elements.
|
|
@@ -4749,7 +4749,7 @@ process.env.NODE_ENV !== "production" && (kn.propTypes = {
|
|
|
4749
4749
|
*/
|
|
4750
4750
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
4751
4751
|
});
|
|
4752
|
-
const ds =
|
|
4752
|
+
const ds = Fn;
|
|
4753
4753
|
function us(o) {
|
|
4754
4754
|
return ne("MuiSelect", o);
|
|
4755
4755
|
}
|
|
@@ -4832,7 +4832,7 @@ const gs = (o) => {
|
|
|
4832
4832
|
nativeInput: ["nativeInput"]
|
|
4833
4833
|
};
|
|
4834
4834
|
return oe(l, us, n);
|
|
4835
|
-
},
|
|
4835
|
+
}, $n = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
4836
4836
|
var r;
|
|
4837
4837
|
const {
|
|
4838
4838
|
"aria-describedby": i,
|
|
@@ -4860,11 +4860,11 @@ const gs = (o) => {
|
|
|
4860
4860
|
open: A,
|
|
4861
4861
|
readOnly: V,
|
|
4862
4862
|
renderValue: W,
|
|
4863
|
-
SelectDisplayProps:
|
|
4863
|
+
SelectDisplayProps: k = {},
|
|
4864
4864
|
tabIndex: N,
|
|
4865
4865
|
value: C,
|
|
4866
4866
|
variant: S = "standard"
|
|
4867
|
-
} = n,
|
|
4867
|
+
} = n, $ = z(n, fs), [F, L] = jo({
|
|
4868
4868
|
controlled: C,
|
|
4869
4869
|
default: h,
|
|
4870
4870
|
name: "Select"
|
|
@@ -4882,8 +4882,8 @@ const gs = (o) => {
|
|
|
4882
4882
|
G.current.focus();
|
|
4883
4883
|
},
|
|
4884
4884
|
node: Y.current,
|
|
4885
|
-
value:
|
|
4886
|
-
}), [
|
|
4885
|
+
value: F
|
|
4886
|
+
}), [F]), u.useEffect(() => {
|
|
4887
4887
|
b && K && H && !se && (ae(l ? null : ge.clientWidth), G.current.focus());
|
|
4888
4888
|
}, [H, l]), u.useEffect(() => {
|
|
4889
4889
|
a && G.current.focus();
|
|
@@ -4913,20 +4913,20 @@ const gs = (o) => {
|
|
|
4913
4913
|
let J;
|
|
4914
4914
|
if (B.currentTarget.hasAttribute("tabindex")) {
|
|
4915
4915
|
if (f) {
|
|
4916
|
-
J = Array.isArray(
|
|
4917
|
-
const Me =
|
|
4916
|
+
J = Array.isArray(F) ? F.slice() : [];
|
|
4917
|
+
const Me = F.indexOf(R.props.value);
|
|
4918
4918
|
Me === -1 ? J.push(R.props.value) : J.splice(Me, 1);
|
|
4919
4919
|
} else
|
|
4920
4920
|
J = R.props.value;
|
|
4921
|
-
if (R.props.onClick && R.props.onClick(B),
|
|
4922
|
-
const Me = B.nativeEvent || B,
|
|
4923
|
-
Object.defineProperty(
|
|
4921
|
+
if (R.props.onClick && R.props.onClick(B), F !== J && (L(J), P)) {
|
|
4922
|
+
const Me = B.nativeEvent || B, ko = new Me.constructor(Me.type, Me);
|
|
4923
|
+
Object.defineProperty(ko, "target", {
|
|
4924
4924
|
writable: !0,
|
|
4925
4925
|
value: {
|
|
4926
4926
|
value: J,
|
|
4927
4927
|
name: m
|
|
4928
4928
|
}
|
|
4929
|
-
}), P(
|
|
4929
|
+
}), P(ko, R);
|
|
4930
4930
|
}
|
|
4931
4931
|
f || ye(!1, B);
|
|
4932
4932
|
}
|
|
@@ -4943,18 +4943,18 @@ const gs = (o) => {
|
|
|
4943
4943
|
!Re && E && (Object.defineProperty(R, "target", {
|
|
4944
4944
|
writable: !0,
|
|
4945
4945
|
value: {
|
|
4946
|
-
value:
|
|
4946
|
+
value: F,
|
|
4947
4947
|
name: m
|
|
4948
4948
|
}
|
|
4949
4949
|
}), E(R));
|
|
4950
4950
|
};
|
|
4951
|
-
delete
|
|
4951
|
+
delete $["aria-invalid"];
|
|
4952
4952
|
let pe, Te;
|
|
4953
4953
|
const Pe = [];
|
|
4954
4954
|
let Q = !1, no = !1;
|
|
4955
4955
|
(uo({
|
|
4956
|
-
value:
|
|
4957
|
-
}) || T) && (W ? pe = W(
|
|
4956
|
+
value: F
|
|
4957
|
+
}) || T) && (W ? pe = W(F) : Q = !0);
|
|
4958
4958
|
const Dn = X.map((R) => {
|
|
4959
4959
|
if (!/* @__PURE__ */ u.isValidElement(R))
|
|
4960
4960
|
return null;
|
|
@@ -4962,11 +4962,11 @@ const gs = (o) => {
|
|
|
4962
4962
|
`));
|
|
4963
4963
|
let B;
|
|
4964
4964
|
if (f) {
|
|
4965
|
-
if (!Array.isArray(
|
|
4965
|
+
if (!Array.isArray(F))
|
|
4966
4966
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : jn(2));
|
|
4967
|
-
B =
|
|
4967
|
+
B = F.some((J) => Qo(J, R.props.value)), B && Q && Pe.push(R.props.children);
|
|
4968
4968
|
} else
|
|
4969
|
-
B = Qo(
|
|
4969
|
+
B = Qo(F, R.props.value), B && Q && (Te = R.props.children);
|
|
4970
4970
|
return B && (no = !0), /* @__PURE__ */ u.cloneElement(R, {
|
|
4971
4971
|
"aria-selected": B ? "true" : "false",
|
|
4972
4972
|
onClick: Ee(R),
|
|
@@ -4982,42 +4982,42 @@ const gs = (o) => {
|
|
|
4982
4982
|
});
|
|
4983
4983
|
});
|
|
4984
4984
|
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
4985
|
-
if (!no && !f &&
|
|
4985
|
+
if (!no && !f && F !== "") {
|
|
4986
4986
|
const R = X.map((B) => B.props.value);
|
|
4987
|
-
console.warn([`MUI: You have provided an out-of-range value \`${
|
|
4987
|
+
console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${m ? `(name="${m}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${R.filter((B) => B != null).map((B) => `\`${B}\``).join(", ") || '""'}.`].join(`
|
|
4988
4988
|
`));
|
|
4989
4989
|
}
|
|
4990
|
-
}, [no, X, f, m,
|
|
4990
|
+
}, [no, X, f, m, F]), Q && (f ? Pe.length === 0 ? pe = null : pe = Pe.reduce((R, B, J) => (R.push(B), J < Pe.length - 1 && R.push(", "), R), []) : pe = Te);
|
|
4991
4991
|
let Mo = le;
|
|
4992
4992
|
!l && se && H && (Mo = ge.clientWidth);
|
|
4993
4993
|
let to;
|
|
4994
4994
|
typeof N < "u" ? to = N : to = x ? null : 0;
|
|
4995
|
-
const
|
|
4995
|
+
const Fo = k.id || (m ? `mui-component-select-${m}` : void 0), He = d({}, n, {
|
|
4996
4996
|
variant: S,
|
|
4997
|
-
value:
|
|
4997
|
+
value: F,
|
|
4998
4998
|
open: Re,
|
|
4999
4999
|
error: v
|
|
5000
|
-
}), ro = gs(He), so = d({}, M.PaperProps, (r = M.slotProps) == null ? void 0 : r.paper),
|
|
5000
|
+
}), ro = gs(He), so = d({}, M.PaperProps, (r = M.slotProps) == null ? void 0 : r.paper), $o = Zo();
|
|
5001
5001
|
return /* @__PURE__ */ fe(u.Fragment, {
|
|
5002
5002
|
children: [/* @__PURE__ */ I(ms, d({
|
|
5003
5003
|
ref: ve,
|
|
5004
5004
|
tabIndex: to,
|
|
5005
5005
|
role: "combobox",
|
|
5006
|
-
"aria-controls":
|
|
5006
|
+
"aria-controls": $o,
|
|
5007
5007
|
"aria-disabled": x ? "true" : void 0,
|
|
5008
5008
|
"aria-expanded": Re ? "true" : "false",
|
|
5009
5009
|
"aria-haspopup": "listbox",
|
|
5010
5010
|
"aria-label": s,
|
|
5011
|
-
"aria-labelledby": [g,
|
|
5011
|
+
"aria-labelledby": [g, Fo].filter(Boolean).join(" ") || void 0,
|
|
5012
5012
|
"aria-describedby": i,
|
|
5013
5013
|
onKeyDown: xe,
|
|
5014
5014
|
onMouseDown: x || V ? null : U,
|
|
5015
5015
|
onBlur: ze,
|
|
5016
5016
|
onFocus: D
|
|
5017
|
-
},
|
|
5017
|
+
}, k, {
|
|
5018
5018
|
ownerState: He,
|
|
5019
|
-
className: Z(
|
|
5020
|
-
id:
|
|
5019
|
+
className: Z(k.className, ro.select, p),
|
|
5020
|
+
id: Fo,
|
|
5021
5021
|
children: vs(pe) ? (
|
|
5022
5022
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
5023
5023
|
Jo || (Jo = /* @__PURE__ */ I("span", {
|
|
@@ -5027,7 +5027,7 @@ const gs = (o) => {
|
|
|
5027
5027
|
) : pe
|
|
5028
5028
|
})), /* @__PURE__ */ I(hs, d({
|
|
5029
5029
|
"aria-invalid": v,
|
|
5030
|
-
value: Array.isArray(
|
|
5030
|
+
value: Array.isArray(F) ? F.join(",") : F,
|
|
5031
5031
|
name: m,
|
|
5032
5032
|
ref: Y,
|
|
5033
5033
|
"aria-hidden": !0,
|
|
@@ -5037,7 +5037,7 @@ const gs = (o) => {
|
|
|
5037
5037
|
className: ro.nativeInput,
|
|
5038
5038
|
autoFocus: a,
|
|
5039
5039
|
ownerState: He
|
|
5040
|
-
},
|
|
5040
|
+
}, $)), /* @__PURE__ */ I(bs, {
|
|
5041
5041
|
as: w,
|
|
5042
5042
|
className: ro.icon,
|
|
5043
5043
|
ownerState: He
|
|
@@ -5060,7 +5060,7 @@ const gs = (o) => {
|
|
|
5060
5060
|
role: "listbox",
|
|
5061
5061
|
"aria-multiselectable": f ? "true" : void 0,
|
|
5062
5062
|
disableListWrap: !0,
|
|
5063
|
-
id:
|
|
5063
|
+
id: $o
|
|
5064
5064
|
}, M.MenuListProps),
|
|
5065
5065
|
slotProps: d({}, M.slotProps, {
|
|
5066
5066
|
paper: d({}, so, {
|
|
@@ -5073,7 +5073,7 @@ const gs = (o) => {
|
|
|
5073
5073
|
}))]
|
|
5074
5074
|
});
|
|
5075
5075
|
});
|
|
5076
|
-
process.env.NODE_ENV !== "production" && (
|
|
5076
|
+
process.env.NODE_ENV !== "production" && ($n.propTypes = {
|
|
5077
5077
|
/**
|
|
5078
5078
|
* @ignore
|
|
5079
5079
|
*/
|
|
@@ -5218,7 +5218,7 @@ process.env.NODE_ENV !== "production" && (Fn.propTypes = {
|
|
|
5218
5218
|
*/
|
|
5219
5219
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
5220
5220
|
});
|
|
5221
|
-
const ys =
|
|
5221
|
+
const ys = $n, Es = Kn(/* @__PURE__ */ I("path", {
|
|
5222
5222
|
d: "M7 10l5 5 5-5z"
|
|
5223
5223
|
}), "ArrowDropDown"), xs = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"], Ts = ["root"], Os = (o) => {
|
|
5224
5224
|
const {
|
|
@@ -5260,10 +5260,10 @@ const ys = Fn, Es = Kn(/* @__PURE__ */ I("path", {
|
|
|
5260
5260
|
props: r,
|
|
5261
5261
|
muiFormControl: V,
|
|
5262
5262
|
states: ["variant", "error"]
|
|
5263
|
-
}),
|
|
5264
|
-
variant:
|
|
5263
|
+
}), k = W.variant || D, N = d({}, r, {
|
|
5264
|
+
variant: k,
|
|
5265
5265
|
classes: a
|
|
5266
|
-
}), C = Os(N), S = z(C, Ts),
|
|
5266
|
+
}), C = Os(N), S = z(C, Ts), $ = x || {
|
|
5267
5267
|
standard: /* @__PURE__ */ I(Cs, {
|
|
5268
5268
|
ownerState: N
|
|
5269
5269
|
}),
|
|
@@ -5274,9 +5274,9 @@ const ys = Fn, Es = Kn(/* @__PURE__ */ I("path", {
|
|
|
5274
5274
|
filled: /* @__PURE__ */ I(Ps, {
|
|
5275
5275
|
ownerState: N
|
|
5276
5276
|
})
|
|
5277
|
-
}[
|
|
5277
|
+
}[k], F = be(t, $.ref);
|
|
5278
5278
|
return /* @__PURE__ */ I(u.Fragment, {
|
|
5279
|
-
children: /* @__PURE__ */ u.cloneElement(
|
|
5279
|
+
children: /* @__PURE__ */ u.cloneElement($, d({
|
|
5280
5280
|
// Most of the logic is implemented in `SelectInput`.
|
|
5281
5281
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
5282
5282
|
inputComponent: A,
|
|
@@ -5284,7 +5284,7 @@ const ys = Fn, Es = Kn(/* @__PURE__ */ I("path", {
|
|
|
5284
5284
|
children: s,
|
|
5285
5285
|
error: W.error,
|
|
5286
5286
|
IconComponent: b,
|
|
5287
|
-
variant:
|
|
5287
|
+
variant: k,
|
|
5288
5288
|
type: void 0,
|
|
5289
5289
|
// We render a select. We can ignore the type provided by the `Input`.
|
|
5290
5290
|
multiple: g
|
|
@@ -5306,13 +5306,13 @@ const ys = Fn, Es = Kn(/* @__PURE__ */ I("path", {
|
|
|
5306
5306
|
}, T, {
|
|
5307
5307
|
classes: T ? vo(S, T.classes) : S
|
|
5308
5308
|
}, x ? x.props.inputProps : {})
|
|
5309
|
-
}, (g && M || p) &&
|
|
5309
|
+
}, (g && M || p) && k === "outlined" ? {
|
|
5310
5310
|
notched: !0
|
|
5311
5311
|
} : {}, {
|
|
5312
|
-
ref:
|
|
5313
|
-
className: Z(
|
|
5312
|
+
ref: F,
|
|
5313
|
+
className: Z($.props.className, l, C.root)
|
|
5314
5314
|
}, !x && {
|
|
5315
|
-
variant:
|
|
5315
|
+
variant: k
|
|
5316
5316
|
}, _))
|
|
5317
5317
|
});
|
|
5318
5318
|
});
|
|
@@ -5480,11 +5480,11 @@ const Ss = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
5480
5480
|
return oe({
|
|
5481
5481
|
root: ["root"]
|
|
5482
5482
|
}, Is, n);
|
|
5483
|
-
},
|
|
5483
|
+
}, Fs = j(nr, {
|
|
5484
5484
|
name: "MuiTextField",
|
|
5485
5485
|
slot: "Root",
|
|
5486
5486
|
overridesResolver: (o, n) => n.root
|
|
5487
|
-
})({}),
|
|
5487
|
+
})({}), kn = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
5488
5488
|
const r = re({
|
|
5489
5489
|
props: n,
|
|
5490
5490
|
name: "MuiTextField"
|
|
@@ -5514,12 +5514,12 @@ const Ss = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
5514
5514
|
onChange: A,
|
|
5515
5515
|
onFocus: V,
|
|
5516
5516
|
placeholder: W,
|
|
5517
|
-
required:
|
|
5517
|
+
required: k = !1,
|
|
5518
5518
|
rows: N,
|
|
5519
5519
|
select: C = !1,
|
|
5520
5520
|
SelectProps: S,
|
|
5521
|
-
type:
|
|
5522
|
-
value:
|
|
5521
|
+
type: $,
|
|
5522
|
+
value: F,
|
|
5523
5523
|
variant: L = "outlined"
|
|
5524
5524
|
} = r, K = z(r, Ss), de = d({}, r, {
|
|
5525
5525
|
autoFocus: s,
|
|
@@ -5528,7 +5528,7 @@ const Ss = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
5528
5528
|
error: h,
|
|
5529
5529
|
fullWidth: T,
|
|
5530
5530
|
multiline: y,
|
|
5531
|
-
required:
|
|
5531
|
+
required: k,
|
|
5532
5532
|
select: C,
|
|
5533
5533
|
variant: L
|
|
5534
5534
|
}), Y = Ms(de);
|
|
@@ -5546,8 +5546,8 @@ const Ss = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
5546
5546
|
rows: N,
|
|
5547
5547
|
maxRows: E,
|
|
5548
5548
|
minRows: P,
|
|
5549
|
-
type:
|
|
5550
|
-
value:
|
|
5549
|
+
type: $,
|
|
5550
|
+
value: F,
|
|
5551
5551
|
id: H,
|
|
5552
5552
|
inputRef: f,
|
|
5553
5553
|
onBlur: _,
|
|
@@ -5556,13 +5556,13 @@ const Ss = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
5556
5556
|
placeholder: W,
|
|
5557
5557
|
inputProps: g
|
|
5558
5558
|
}, G, M));
|
|
5559
|
-
return /* @__PURE__ */ fe(
|
|
5559
|
+
return /* @__PURE__ */ fe(Fs, d({
|
|
5560
5560
|
className: Z(Y.root, l),
|
|
5561
5561
|
disabled: b,
|
|
5562
5562
|
error: h,
|
|
5563
5563
|
fullWidth: T,
|
|
5564
5564
|
ref: t,
|
|
5565
|
-
required:
|
|
5565
|
+
required: k,
|
|
5566
5566
|
color: c,
|
|
5567
5567
|
variant: L,
|
|
5568
5568
|
ownerState: de
|
|
@@ -5576,7 +5576,7 @@ const Ss = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
5576
5576
|
"aria-describedby": te,
|
|
5577
5577
|
id: H,
|
|
5578
5578
|
labelId: se,
|
|
5579
|
-
value:
|
|
5579
|
+
value: F,
|
|
5580
5580
|
input: ae
|
|
5581
5581
|
}, S, {
|
|
5582
5582
|
children: a
|
|
@@ -5587,7 +5587,7 @@ const Ss = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
5587
5587
|
}))]
|
|
5588
5588
|
}));
|
|
5589
5589
|
});
|
|
5590
|
-
process.env.NODE_ENV !== "production" && (
|
|
5590
|
+
process.env.NODE_ENV !== "production" && (kn.propTypes = {
|
|
5591
5591
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
5592
5592
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
5593
5593
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -5760,14 +5760,14 @@ process.env.NODE_ENV !== "production" && ($n.propTypes = {
|
|
|
5760
5760
|
*/
|
|
5761
5761
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
5762
5762
|
});
|
|
5763
|
-
const
|
|
5763
|
+
const $s = kn, ks = j($s)(({ theme: o }) => ({
|
|
5764
5764
|
"& label.Mui-focused": {
|
|
5765
5765
|
color: o.palette.primary.main
|
|
5766
5766
|
},
|
|
5767
5767
|
"& .MuiTextInput-underline:after": {
|
|
5768
5768
|
borderBottomColor: o.palette.primary.main
|
|
5769
5769
|
}
|
|
5770
|
-
})), ni = (o) => /* @__PURE__ */ I(
|
|
5770
|
+
})), ni = (o) => /* @__PURE__ */ I(ks, { ...o, variant: o.variant || "standard" });
|
|
5771
5771
|
export {
|
|
5772
5772
|
Ir as B,
|
|
5773
5773
|
nr as F,
|
|
@@ -5793,12 +5793,12 @@ export {
|
|
|
5793
5793
|
oi as m,
|
|
5794
5794
|
cn as n,
|
|
5795
5795
|
Qs as o,
|
|
5796
|
-
|
|
5796
|
+
kr as p,
|
|
5797
5797
|
Ar as q,
|
|
5798
5798
|
Or as r,
|
|
5799
5799
|
je as s,
|
|
5800
5800
|
cr as t,
|
|
5801
5801
|
Ye as u,
|
|
5802
|
-
|
|
5802
|
+
$s as v,
|
|
5803
5803
|
vr as w
|
|
5804
5804
|
};
|