@cgi-learning-hub/ui 1.0.0-dev.1721116816 → 1.0.0-dev.1721201350
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-9LdfEXsf.js → Box-DIvTvtYV.js} +17 -16
- package/dist/Box-RP_U1h2I.cjs +1 -0
- package/dist/{ButtonBase-D-i7Mp_0.js → ButtonBase-BN5QfC5l.js} +15 -17
- package/dist/ButtonBase-BZD9sI_c.cjs +75 -0
- package/dist/CircularProgress-C_a44--B.cjs +28 -0
- package/dist/{CircularProgress-CA8vWmu-.js → CircularProgress-CgjNSTmB.js} +25 -26
- package/dist/DefaultButton-BOHgRr6G.cjs +1 -0
- package/dist/{DefaultButton--hIqP5--.js → DefaultButton-DVHllq2U.js} +26 -26
- package/dist/IconButton-DQ2kDyxh.cjs +2 -0
- package/dist/{IconButton-DqE3X4a8.js → IconButton-ysdlpOVe.js} +15 -16
- package/dist/InputBase-CCpgZdXG.cjs +3 -0
- package/dist/{InputBase-DP_Adhgc.js → InputBase-CR3zhf1t.js} +198 -197
- package/dist/LocalizationProvider-BGJCD07W.js +592 -0
- package/dist/LocalizationProvider-C0yQiDF6.cjs +5 -0
- package/dist/PaperHeader-D2LH9bW-.cjs +1 -0
- package/dist/{PaperHeader-FAOEsMM9.js → PaperHeader-DAzxEUlx.js} +21 -20
- package/dist/SearchInput-CvqVbm-Q.cjs +1 -0
- package/dist/{SearchInput-CsSDD5eI.js → SearchInput-DGF3NOLB.js} +28 -29
- package/dist/Tabs-C91eu1Uw.cjs +4 -0
- package/dist/{Tabs-3kwkNbaY.js → Tabs-CObzeuUj.js} +208 -209
- package/dist/TextInput-61DYDrkn.cjs +12 -0
- package/dist/{TextInput-D-KCBgdw.js → TextInput-CjRiCEow.js} +141 -143
- package/dist/TimePicker-C64jDcYa.js +24351 -0
- package/dist/TimePicker-DKHA-KBc.cjs +74 -0
- package/dist/Typography-CX8IJDUK.cjs +1 -0
- package/dist/{Typography-D9wqoWpo.js → Typography-DDYzN_3X.js} +18 -19
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +73 -103
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -3
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -2
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +3 -3
- package/dist/components/PaperHeader/index.cjs.js +1 -1
- package/dist/components/PaperHeader/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +30 -31
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +3 -3
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +13 -13
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +7 -9
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.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.es.js +1 -1
- 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.es.js +2 -2
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +6 -6
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +5 -5
- package/dist/createSvgIcon-BhmdtpFQ.cjs +1 -0
- package/dist/{createSvgIcon-DzqAq5L0.js → createSvgIcon-D0vr-xfg.js} +14 -15
- package/dist/{createSvgIcon-BB59Xsl7.cjs → createSvgIcon-DtHN6kOe.cjs} +1 -1
- package/dist/{createSvgIcon-BKAOek5F.js → createSvgIcon-XuLYHpIN.js} +2 -2
- package/dist/defaultTheme-43URU5cB.cjs +1 -0
- package/dist/defaultTheme-kWAisKX-.js +19 -0
- package/dist/{extendSxProp-DHqLFl-L.js → extendSxProp-BH27e4Uq.js} +47 -60
- package/dist/{extendSxProp-CaWP661G.cjs → extendSxProp-DguFtn4z.cjs} +2 -2
- package/dist/{fr-DQmRkdQN.cjs → fr-Cv05qO2i.cjs} +1 -1
- package/dist/{fr-CK9zQ_Ty.js → fr-VAA6DQIZ.js} +20 -34
- package/dist/identifier-DN9zMdjb.cjs +42 -0
- package/dist/{identifier-DRpIhLLR.js → identifier-wD7TMRod.js} +675 -703
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +14 -15
- package/dist/{refType-Cn5gyhZI.js → refType-DNsX9F1k.js} +1 -1
- package/dist/{refType-DY4akPK-.cjs → refType-P4W7j6GU.cjs} +1 -1
- package/dist/styled-DBkKGFww.js +496 -0
- package/dist/styled-vrKxhnRS.cjs +17 -0
- package/dist/{useSlotProps-DUT5Ou9s.js → useTheme-0LP2yOaO.js} +35 -35
- package/dist/useTheme-BjiEuL2C.cjs +1 -0
- package/dist/useTheme-BlWZbBeO.cjs +1 -0
- package/dist/useTheme-DmZo1zFM.js +18 -0
- package/dist/useThemeProps-BbYOXO_x.cjs +1 -0
- package/dist/useThemeProps-C1QhfJXI.js +17 -0
- package/dist/useThemeProps-CuBdueUZ.js +27 -0
- package/dist/useThemeProps-zfqmINoS.cjs +1 -0
- package/package.json +16 -14
- package/dist/Box-DZHlB1JL.cjs +0 -1
- package/dist/ButtonBase-s9fq-FWa.cjs +0 -75
- package/dist/CircularProgress-BRObeUJf.cjs +0 -28
- package/dist/DefaultButton-CFsQZCt0.cjs +0 -1
- package/dist/IconButton-Ciyl-3i6.cjs +0 -2
- package/dist/InputBase-DrfyjvX2.cjs +0 -3
- package/dist/LocalizationProvider-DdSFKwmg.js +0 -577
- package/dist/LocalizationProvider-bb4YzxZc.cjs +0 -5
- package/dist/PaperHeader-Cym2X2f9.cjs +0 -1
- package/dist/SearchInput-DLB_reMI.cjs +0 -1
- package/dist/Tabs-DpjAr2Z-.cjs +0 -4
- package/dist/TextInput-BcCK6QOQ.cjs +0 -12
- package/dist/TimePicker-P_IrNQee.js +0 -22670
- package/dist/TimePicker-zrUL2wS7.cjs +0 -73
- package/dist/Typography-BWqNUG5K.cjs +0 -1
- package/dist/createSvgIcon-DYS0kjMM.cjs +0 -1
- package/dist/identifier-yw8YLxO3.cjs +0 -42
- package/dist/styled-BCfAQpid.cjs +0 -17
- package/dist/styled-LH7lmhcc.js +0 -474
- package/dist/useSlotProps-CabDgsss.cjs +0 -1
- package/dist/useThemeProps-BSLCJPn5.cjs +0 -1
- package/dist/useThemeProps-DQoLAgYV.js +0 -55
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { jsx as I, jsxs as me } from "react/jsx-runtime";
|
|
2
|
-
import { P as e, _ as d, h as q, d as Z, f as Do, e as ce,
|
|
2
|
+
import { P as e, _ as d, h as q, d as Z, f as Do, e as ce, u as vo, z as kn } from "./identifier-wD7TMRod.js";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import Ge from "react";
|
|
5
|
-
import { g as ee, c as Q } from "./extendSxProp-
|
|
6
|
-
import { s as j, c as oe, r as be, a as go, b as Fn } from "./styled-
|
|
7
|
-
import { u as
|
|
8
|
-
import { i as $n, a as po, F as Dn, u as Ve, f as qe, b as yo, c as Eo, r as xo, d as To, e as Oo, I as Co } from "./InputBase-DP_Adhgc.js";
|
|
5
|
+
import { g as ee, c as Q } from "./extendSxProp-BH27e4Uq.js";
|
|
6
|
+
import { s as j, u as re, c as oe, r as be, a as go, b as Fn } from "./styled-DBkKGFww.js";
|
|
7
|
+
import { i as $n, a as po, F as Dn, u as Ve, f as qe, b as yo, c as Eo, r as xo, d as To, e as Oo, I as Co } from "./InputBase-CR3zhf1t.js";
|
|
9
8
|
import { c as Lo, i as ao, u as jo } from "./useControlled-DoRrpN8o.js";
|
|
10
9
|
import { u as Zo } from "./useId-BW-oWmul.js";
|
|
11
|
-
import { b as Ro, e as Ln, a as $e, u as jn } from "./
|
|
10
|
+
import { b as Ro, e as Ln, a as $e, u as jn } from "./useTheme-0LP2yOaO.js";
|
|
11
|
+
import { o as ie, a as We, d as _n } from "./ownerWindow-C7EH1lr6.js";
|
|
12
12
|
import { a as he, u as fo, s as _o } from "./useForkRef-DwN_Iz9R.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
13
|
+
import { u as Ao, a as An } from "./useTimeout-BdvDipeg.js";
|
|
14
|
+
import { c as eo, r as we, e as Bn } from "./refType-DNsX9F1k.js";
|
|
15
|
+
import { _ as Wn, T as en } from "./TransitionGroupContext-BkoHK5Kx.js";
|
|
16
|
+
import * as Un from "react-dom";
|
|
16
17
|
import Xe from "react-dom";
|
|
17
|
-
import { o as ie, a as We, d as Wn } from "./ownerWindow-C7EH1lr6.js";
|
|
18
|
-
import { u as Ao, a as Un } from "./useTimeout-BdvDipeg.js";
|
|
19
18
|
import { i as Vn } from "./isHostComponent-kiaBvYVo.js";
|
|
20
|
-
import { c as qn } from "./createSvgIcon-
|
|
19
|
+
import { c as qn } from "./createSvgIcon-D0vr-xfg.js";
|
|
21
20
|
function zn(o) {
|
|
22
21
|
const {
|
|
23
22
|
prototype: n = {}
|
|
@@ -98,7 +97,7 @@ var Yn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
98
97
|
enter: e.number,
|
|
99
98
|
exit: e.number,
|
|
100
99
|
appear: e.number
|
|
101
|
-
}).isRequired]) : null,
|
|
100
|
+
}).isRequired]) : null, As = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
|
|
102
101
|
enter: e.string,
|
|
103
102
|
exit: e.string,
|
|
104
103
|
active: e.string
|
|
@@ -112,7 +111,7 @@ var Yn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
112
111
|
})]) : null, Jn = function(n) {
|
|
113
112
|
return n.scrollTop;
|
|
114
113
|
}, _e = "unmounted", Ie = "exited", Se = "entering", Fe = "entered", bo = "exiting", de = /* @__PURE__ */ function(o) {
|
|
115
|
-
|
|
114
|
+
Wn(n, o);
|
|
116
115
|
function n(r, i) {
|
|
117
116
|
var s;
|
|
118
117
|
s = o.call(this, r, i) || this;
|
|
@@ -156,10 +155,9 @@ var Yn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
156
155
|
this.performEnter(i);
|
|
157
156
|
} else
|
|
158
157
|
this.performExit();
|
|
159
|
-
else
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
});
|
|
158
|
+
else this.props.unmountOnExit && this.state.status === Ie && this.setState({
|
|
159
|
+
status: _e
|
|
160
|
+
});
|
|
163
161
|
}, t.performEnter = function(i) {
|
|
164
162
|
var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i, c = this.props.nodeRef ? [l] : [Xe.findDOMNode(this), l], p = c[0], b = c[1], h = this.getTimeouts(), x = l ? h.appear : h.enter;
|
|
165
163
|
if (!i && !a || Wo.disabled) {
|
|
@@ -434,7 +432,7 @@ de.EXITING = bo;
|
|
|
434
432
|
function Qn(o) {
|
|
435
433
|
return Z("MuiPaper", o);
|
|
436
434
|
}
|
|
437
|
-
const Zn = ee("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]),
|
|
435
|
+
const Zn = ee("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]), Bs = Zn, et = ["className", "component", "elevation", "square", "variant"], ot = (o) => {
|
|
438
436
|
const {
|
|
439
437
|
square: n,
|
|
440
438
|
elevation: t,
|
|
@@ -714,7 +712,7 @@ process.env.NODE_ENV !== "production" && (dn.propTypes = {
|
|
|
714
712
|
function it(o) {
|
|
715
713
|
return Z("MuiBackdrop", o);
|
|
716
714
|
}
|
|
717
|
-
const at = ee("MuiBackdrop", ["root", "invisible"]),
|
|
715
|
+
const at = ee("MuiBackdrop", ["root", "invisible"]), Ws = at, lt = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], ct = (o) => {
|
|
718
716
|
const {
|
|
719
717
|
classes: n,
|
|
720
718
|
invisible: t
|
|
@@ -1001,121 +999,33 @@ class ht {
|
|
|
1001
999
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
1002
1000
|
}
|
|
1003
1001
|
}
|
|
1004
|
-
|
|
1005
|
-
return typeof o == "function" ? o() : o;
|
|
1006
|
-
}
|
|
1002
|
+
const vt = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
1007
1003
|
function gt(o) {
|
|
1008
|
-
return o ? o.props.hasOwnProperty("in") : !1;
|
|
1009
|
-
}
|
|
1010
|
-
const yt = new ht();
|
|
1011
|
-
function Et(o) {
|
|
1012
|
-
const {
|
|
1013
|
-
container: n,
|
|
1014
|
-
disableEscapeKeyDown: t = !1,
|
|
1015
|
-
disableScrollLock: r = !1,
|
|
1016
|
-
// @ts-ignore internal logic - Base UI supports the manager as a prop too
|
|
1017
|
-
manager: i = yt,
|
|
1018
|
-
closeAfterTransition: s = !1,
|
|
1019
|
-
onTransitionEnter: a,
|
|
1020
|
-
onTransitionExited: l,
|
|
1021
|
-
children: c,
|
|
1022
|
-
onClose: p,
|
|
1023
|
-
open: b,
|
|
1024
|
-
rootRef: h
|
|
1025
|
-
} = o, x = u.useRef({}), T = u.useRef(null), v = u.useRef(null), M = he(v, h), [C, y] = u.useState(!b), k = gt(c);
|
|
1026
|
-
let f = !0;
|
|
1027
|
-
(o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (f = !1);
|
|
1028
|
-
const m = () => ie(T.current), E = () => (x.current.modalRef = v.current, x.current.mount = T.current, x.current), P = () => {
|
|
1029
|
-
i.mount(E(), {
|
|
1030
|
-
disableScrollLock: r
|
|
1031
|
-
}), v.current && (v.current.scrollTop = 0);
|
|
1032
|
-
}, g = Ao(() => {
|
|
1033
|
-
const w = vt(n) || m().body;
|
|
1034
|
-
i.add(E(), w), v.current && P();
|
|
1035
|
-
}), D = u.useCallback(() => i.isTopModal(E()), [i]), A = Ao((w) => {
|
|
1036
|
-
T.current = w, w && (b && D() ? P() : v.current && Ae(v.current, f));
|
|
1037
|
-
}), L = u.useCallback(() => {
|
|
1038
|
-
i.remove(E(), f);
|
|
1039
|
-
}, [f, i]);
|
|
1040
|
-
u.useEffect(() => () => {
|
|
1041
|
-
L();
|
|
1042
|
-
}, [L]), u.useEffect(() => {
|
|
1043
|
-
b ? g() : (!k || !s) && L();
|
|
1044
|
-
}, [b, L, k, s, g]);
|
|
1045
|
-
const z = (w) => (F) => {
|
|
1046
|
-
var O;
|
|
1047
|
-
(O = w.onKeyDown) == null || O.call(w, F), !(F.key !== "Escape" || F.which === 229 || // Wait until IME is settled.
|
|
1048
|
-
!D()) && (t || (F.stopPropagation(), p && p(F, "escapeKeyDown")));
|
|
1049
|
-
}, B = (w) => (F) => {
|
|
1050
|
-
var O;
|
|
1051
|
-
(O = w.onClick) == null || O.call(w, F), F.target === F.currentTarget && p && p(F, "backdropClick");
|
|
1052
|
-
};
|
|
1053
|
-
return {
|
|
1054
|
-
getRootProps: (w = {}) => {
|
|
1055
|
-
const F = Ln(o);
|
|
1056
|
-
delete F.onTransitionEnter, delete F.onTransitionExited;
|
|
1057
|
-
const O = d({}, F, w);
|
|
1058
|
-
return d({
|
|
1059
|
-
role: "presentation"
|
|
1060
|
-
}, O, {
|
|
1061
|
-
onKeyDown: z(O),
|
|
1062
|
-
ref: M
|
|
1063
|
-
});
|
|
1064
|
-
},
|
|
1065
|
-
getBackdropProps: (w = {}) => {
|
|
1066
|
-
const F = w;
|
|
1067
|
-
return d({
|
|
1068
|
-
"aria-hidden": !0
|
|
1069
|
-
}, F, {
|
|
1070
|
-
onClick: B(F),
|
|
1071
|
-
open: b
|
|
1072
|
-
});
|
|
1073
|
-
},
|
|
1074
|
-
getTransitionProps: () => {
|
|
1075
|
-
const w = () => {
|
|
1076
|
-
y(!1), a && a();
|
|
1077
|
-
}, F = () => {
|
|
1078
|
-
y(!0), l && l(), s && L();
|
|
1079
|
-
};
|
|
1080
|
-
return {
|
|
1081
|
-
onEnter: Lo(w, c == null ? void 0 : c.props.onEnter),
|
|
1082
|
-
onExited: Lo(F, c == null ? void 0 : c.props.onExited)
|
|
1083
|
-
};
|
|
1084
|
-
},
|
|
1085
|
-
rootRef: M,
|
|
1086
|
-
portalRef: A,
|
|
1087
|
-
isTopModal: D,
|
|
1088
|
-
exited: C,
|
|
1089
|
-
hasTransition: k
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
|
-
const xt = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
1093
|
-
function Tt(o) {
|
|
1094
1004
|
const n = parseInt(o.getAttribute("tabindex") || "", 10);
|
|
1095
1005
|
return Number.isNaN(n) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : n;
|
|
1096
1006
|
}
|
|
1097
|
-
function
|
|
1007
|
+
function yt(o) {
|
|
1098
1008
|
if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
|
|
1099
1009
|
return !1;
|
|
1100
1010
|
const n = (r) => o.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
1101
1011
|
let t = n(`[name="${o.name}"]:checked`);
|
|
1102
1012
|
return t || (t = n(`[name="${o.name}"]`)), t !== o;
|
|
1103
1013
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" ||
|
|
1014
|
+
function Et(o) {
|
|
1015
|
+
return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || yt(o));
|
|
1106
1016
|
}
|
|
1107
|
-
function
|
|
1017
|
+
function xt(o) {
|
|
1108
1018
|
const n = [], t = [];
|
|
1109
|
-
return Array.from(o.querySelectorAll(
|
|
1110
|
-
const s =
|
|
1111
|
-
s === -1 || !
|
|
1019
|
+
return Array.from(o.querySelectorAll(vt)).forEach((r, i) => {
|
|
1020
|
+
const s = gt(r);
|
|
1021
|
+
s === -1 || !Et(r) || (s === 0 ? n.push(r) : t.push({
|
|
1112
1022
|
documentOrder: i,
|
|
1113
1023
|
tabIndex: s,
|
|
1114
1024
|
node: r
|
|
1115
1025
|
}));
|
|
1116
1026
|
}), t.sort((r, i) => r.tabIndex === i.tabIndex ? r.documentOrder - i.documentOrder : r.tabIndex - i.tabIndex).map((r) => r.node).concat(n);
|
|
1117
1027
|
}
|
|
1118
|
-
function
|
|
1028
|
+
function Tt() {
|
|
1119
1029
|
return !0;
|
|
1120
1030
|
}
|
|
1121
1031
|
function Qe(o) {
|
|
@@ -1124,8 +1034,8 @@ function Qe(o) {
|
|
|
1124
1034
|
disableAutoFocus: t = !1,
|
|
1125
1035
|
disableEnforceFocus: r = !1,
|
|
1126
1036
|
disableRestoreFocus: i = !1,
|
|
1127
|
-
getTabbable: s =
|
|
1128
|
-
isEnabled: a =
|
|
1037
|
+
getTabbable: s = xt,
|
|
1038
|
+
isEnabled: a = Tt,
|
|
1129
1039
|
open: l
|
|
1130
1040
|
} = o, c = u.useRef(!1), p = u.useRef(null), b = u.useRef(null), h = u.useRef(null), x = u.useRef(null), T = u.useRef(!1), v = u.useRef(null), M = he(n.ref, v), C = u.useRef(null);
|
|
1131
1041
|
u.useEffect(() => {
|
|
@@ -1254,7 +1164,7 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
|
1254
1164
|
open: e.bool.isRequired
|
|
1255
1165
|
});
|
|
1256
1166
|
process.env.NODE_ENV !== "production" && (Qe.propTypes = nn(Qe.propTypes));
|
|
1257
|
-
function
|
|
1167
|
+
function Ot(o) {
|
|
1258
1168
|
return typeof o == "function" ? o() : o;
|
|
1259
1169
|
}
|
|
1260
1170
|
const Ze = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
@@ -1264,7 +1174,7 @@ const Ze = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
|
1264
1174
|
disablePortal: s = !1
|
|
1265
1175
|
} = n, [a, l] = u.useState(null), c = he(/* @__PURE__ */ u.isValidElement(r) ? r.ref : null, t);
|
|
1266
1176
|
if (fo(() => {
|
|
1267
|
-
s || l(
|
|
1177
|
+
s || l(Ot(i) || document.body);
|
|
1268
1178
|
}, [i, s]), fo(() => {
|
|
1269
1179
|
if (a && !s)
|
|
1270
1180
|
return _o(t, a), () => {
|
|
@@ -1282,7 +1192,7 @@ const Ze = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
|
1282
1192
|
});
|
|
1283
1193
|
}
|
|
1284
1194
|
return /* @__PURE__ */ I(u.Fragment, {
|
|
1285
|
-
children: a && /* @__PURE__ */
|
|
1195
|
+
children: a && /* @__PURE__ */ Un.createPortal(r, a)
|
|
1286
1196
|
});
|
|
1287
1197
|
});
|
|
1288
1198
|
process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
@@ -1312,6 +1222,94 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
|
1312
1222
|
disablePortal: e.bool
|
|
1313
1223
|
});
|
|
1314
1224
|
process.env.NODE_ENV !== "production" && (Ze.propTypes = nn(Ze.propTypes));
|
|
1225
|
+
function Ct(o) {
|
|
1226
|
+
return typeof o == "function" ? o() : o;
|
|
1227
|
+
}
|
|
1228
|
+
function Rt(o) {
|
|
1229
|
+
return o ? o.props.hasOwnProperty("in") : !1;
|
|
1230
|
+
}
|
|
1231
|
+
const Pt = new ht();
|
|
1232
|
+
function Nt(o) {
|
|
1233
|
+
const {
|
|
1234
|
+
container: n,
|
|
1235
|
+
disableEscapeKeyDown: t = !1,
|
|
1236
|
+
disableScrollLock: r = !1,
|
|
1237
|
+
// @ts-ignore internal logic - Base UI supports the manager as a prop too
|
|
1238
|
+
manager: i = Pt,
|
|
1239
|
+
closeAfterTransition: s = !1,
|
|
1240
|
+
onTransitionEnter: a,
|
|
1241
|
+
onTransitionExited: l,
|
|
1242
|
+
children: c,
|
|
1243
|
+
onClose: p,
|
|
1244
|
+
open: b,
|
|
1245
|
+
rootRef: h
|
|
1246
|
+
} = o, x = u.useRef({}), T = u.useRef(null), v = u.useRef(null), M = he(v, h), [C, y] = u.useState(!b), k = Rt(c);
|
|
1247
|
+
let f = !0;
|
|
1248
|
+
(o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (f = !1);
|
|
1249
|
+
const m = () => ie(T.current), E = () => (x.current.modalRef = v.current, x.current.mount = T.current, x.current), P = () => {
|
|
1250
|
+
i.mount(E(), {
|
|
1251
|
+
disableScrollLock: r
|
|
1252
|
+
}), v.current && (v.current.scrollTop = 0);
|
|
1253
|
+
}, g = Ao(() => {
|
|
1254
|
+
const w = Ct(n) || m().body;
|
|
1255
|
+
i.add(E(), w), v.current && P();
|
|
1256
|
+
}), D = u.useCallback(() => i.isTopModal(E()), [i]), A = Ao((w) => {
|
|
1257
|
+
T.current = w, w && (b && D() ? P() : v.current && Ae(v.current, f));
|
|
1258
|
+
}), L = u.useCallback(() => {
|
|
1259
|
+
i.remove(E(), f);
|
|
1260
|
+
}, [f, i]);
|
|
1261
|
+
u.useEffect(() => () => {
|
|
1262
|
+
L();
|
|
1263
|
+
}, [L]), u.useEffect(() => {
|
|
1264
|
+
b ? g() : (!k || !s) && L();
|
|
1265
|
+
}, [b, L, k, s, g]);
|
|
1266
|
+
const z = (w) => (F) => {
|
|
1267
|
+
var O;
|
|
1268
|
+
(O = w.onKeyDown) == null || O.call(w, F), !(F.key !== "Escape" || F.which === 229 || // Wait until IME is settled.
|
|
1269
|
+
!D()) && (t || (F.stopPropagation(), p && p(F, "escapeKeyDown")));
|
|
1270
|
+
}, B = (w) => (F) => {
|
|
1271
|
+
var O;
|
|
1272
|
+
(O = w.onClick) == null || O.call(w, F), F.target === F.currentTarget && p && p(F, "backdropClick");
|
|
1273
|
+
};
|
|
1274
|
+
return {
|
|
1275
|
+
getRootProps: (w = {}) => {
|
|
1276
|
+
const F = Ln(o);
|
|
1277
|
+
delete F.onTransitionEnter, delete F.onTransitionExited;
|
|
1278
|
+
const O = d({}, F, w);
|
|
1279
|
+
return d({
|
|
1280
|
+
role: "presentation"
|
|
1281
|
+
}, O, {
|
|
1282
|
+
onKeyDown: z(O),
|
|
1283
|
+
ref: M
|
|
1284
|
+
});
|
|
1285
|
+
},
|
|
1286
|
+
getBackdropProps: (w = {}) => {
|
|
1287
|
+
const F = w;
|
|
1288
|
+
return d({
|
|
1289
|
+
"aria-hidden": !0
|
|
1290
|
+
}, F, {
|
|
1291
|
+
onClick: B(F),
|
|
1292
|
+
open: b
|
|
1293
|
+
});
|
|
1294
|
+
},
|
|
1295
|
+
getTransitionProps: () => {
|
|
1296
|
+
const w = () => {
|
|
1297
|
+
y(!1), a && a();
|
|
1298
|
+
}, F = () => {
|
|
1299
|
+
y(!0), l && l(), s && L();
|
|
1300
|
+
};
|
|
1301
|
+
return {
|
|
1302
|
+
onEnter: Lo(w, c == null ? void 0 : c.props.onEnter),
|
|
1303
|
+
onExited: Lo(F, c == null ? void 0 : c.props.onExited)
|
|
1304
|
+
};
|
|
1305
|
+
},
|
|
1306
|
+
rootRef: M,
|
|
1307
|
+
portalRef: A,
|
|
1308
|
+
isTopModal: D,
|
|
1309
|
+
exited: C,
|
|
1310
|
+
hasTransition: k
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1315
1313
|
function It(o) {
|
|
1316
1314
|
return Z("MuiModal", o);
|
|
1317
1315
|
}
|
|
@@ -1399,7 +1397,7 @@ const St = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
1399
1397
|
isTopModal: ue,
|
|
1400
1398
|
exited: X,
|
|
1401
1399
|
hasTransition: K
|
|
1402
|
-
} =
|
|
1400
|
+
} = Nt(d({}, w, {
|
|
1403
1401
|
rootRef: t
|
|
1404
1402
|
})), H = d({}, w, {
|
|
1405
1403
|
exited: X
|
|
@@ -1634,7 +1632,7 @@ process.env.NODE_ENV !== "production" && (pn.propTypes = {
|
|
|
1634
1632
|
function Ft(o) {
|
|
1635
1633
|
return Z("MuiFormControl", o);
|
|
1636
1634
|
}
|
|
1637
|
-
const $t = ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]),
|
|
1635
|
+
const $t = ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]), Us = $t, Dt = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Lt = (o) => {
|
|
1638
1636
|
const {
|
|
1639
1637
|
classes: n,
|
|
1640
1638
|
margin: t,
|
|
@@ -2446,7 +2444,7 @@ const hn = Po;
|
|
|
2446
2444
|
function rr(o) {
|
|
2447
2445
|
return Z("MuiInputLabel", o);
|
|
2448
2446
|
}
|
|
2449
|
-
const sr = ee("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]),
|
|
2447
|
+
const sr = ee("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]), Vs = sr, ir = ["disableAnimation", "margin", "shrink", "variant", "className"], ar = (o) => {
|
|
2450
2448
|
const {
|
|
2451
2449
|
classes: n,
|
|
2452
2450
|
formControl: t,
|
|
@@ -2638,7 +2636,7 @@ process.env.NODE_ENV !== "production" && (gn.displayName = "ListContext");
|
|
|
2638
2636
|
function dr(o) {
|
|
2639
2637
|
return Z("MuiList", o);
|
|
2640
2638
|
}
|
|
2641
|
-
const ur = ee("MuiList", ["root", "padding", "dense", "subheader"]),
|
|
2639
|
+
const ur = ee("MuiList", ["root", "padding", "dense", "subheader"]), qs = ur, pr = ["children", "className", "component", "dense", "disablePadding", "subheader"], fr = (o) => {
|
|
2642
2640
|
const {
|
|
2643
2641
|
classes: n,
|
|
2644
2642
|
disablePadding: t,
|
|
@@ -2923,7 +2921,7 @@ const gr = {
|
|
|
2923
2921
|
timeout: M = "auto",
|
|
2924
2922
|
// eslint-disable-next-line react/prop-types
|
|
2925
2923
|
TransitionComponent: C = de
|
|
2926
|
-
} = n, y = q(n, vr), k =
|
|
2924
|
+
} = n, y = q(n, vr), k = An(), f = u.useRef(), m = Ro(), E = u.useRef(null), P = he(E, s.ref, t), g = (R) => (w) => {
|
|
2927
2925
|
if (R) {
|
|
2928
2926
|
const F = E.current;
|
|
2929
2927
|
w === void 0 ? R(F) : R(F, w);
|
|
@@ -3234,7 +3232,7 @@ const Or = (o) => {
|
|
|
3234
3232
|
} : null, [y, X]), u.useEffect(() => {
|
|
3235
3233
|
if (!y)
|
|
3236
3234
|
return;
|
|
3237
|
-
const W =
|
|
3235
|
+
const W = _n(() => {
|
|
3238
3236
|
X();
|
|
3239
3237
|
}), V = We(c);
|
|
3240
3238
|
return V.addEventListener("resize", W), () => {
|
|
@@ -3406,7 +3404,7 @@ process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
|
3406
3404
|
* @default {}
|
|
3407
3405
|
*/
|
|
3408
3406
|
PaperProps: e.shape({
|
|
3409
|
-
component:
|
|
3407
|
+
component: Bn
|
|
3410
3408
|
}),
|
|
3411
3409
|
/**
|
|
3412
3410
|
* The extra props for the slot components.
|
|
@@ -3472,7 +3470,7 @@ process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
|
3472
3470
|
function Rr(o) {
|
|
3473
3471
|
return Z("MuiMenu", o);
|
|
3474
3472
|
}
|
|
3475
|
-
const Pr = ee("MuiMenu", ["root", "paper", "list"]),
|
|
3473
|
+
const Pr = ee("MuiMenu", ["root", "paper", "list"]), zs = Pr, Nr = ["onEntering"], Ir = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"], Sr = {
|
|
3476
3474
|
vertical: "top",
|
|
3477
3475
|
horizontal: "right"
|
|
3478
3476
|
}, wr = {
|
|
@@ -5751,11 +5749,11 @@ process.env.NODE_ENV !== "production" && (wn.propTypes = {
|
|
|
5751
5749
|
*/
|
|
5752
5750
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
5753
5751
|
});
|
|
5754
|
-
const
|
|
5752
|
+
const Hs = (o) => /* @__PURE__ */ I(wn, { ...o, variant: o.variant || "standard" });
|
|
5755
5753
|
export {
|
|
5756
5754
|
de as A,
|
|
5757
5755
|
ut as B,
|
|
5758
|
-
|
|
5756
|
+
As as C,
|
|
5759
5757
|
pn as D,
|
|
5760
5758
|
dn as E,
|
|
5761
5759
|
_t as F,
|
|
@@ -5767,12 +5765,12 @@ export {
|
|
|
5767
5765
|
br as L,
|
|
5768
5766
|
Dr as M,
|
|
5769
5767
|
an as N,
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5768
|
+
gn as O,
|
|
5769
|
+
nn as P,
|
|
5770
|
+
No as Q,
|
|
5771
|
+
Ze as R,
|
|
5774
5772
|
hs as S,
|
|
5775
|
-
|
|
5773
|
+
Hs as T,
|
|
5776
5774
|
Qe as U,
|
|
5777
5775
|
wn as V,
|
|
5778
5776
|
xn as W,
|
|
@@ -5780,8 +5778,8 @@ export {
|
|
|
5780
5778
|
Jt as b,
|
|
5781
5779
|
cr as c,
|
|
5782
5780
|
tt as d,
|
|
5783
|
-
|
|
5784
|
-
|
|
5781
|
+
Ws as e,
|
|
5782
|
+
Us as f,
|
|
5785
5783
|
it as g,
|
|
5786
5784
|
Ft as h,
|
|
5787
5785
|
qo as i,
|
|
@@ -5791,13 +5789,13 @@ export {
|
|
|
5791
5789
|
zt as m,
|
|
5792
5790
|
De as n,
|
|
5793
5791
|
Qt as o,
|
|
5794
|
-
|
|
5792
|
+
Vs as p,
|
|
5795
5793
|
rr as q,
|
|
5796
|
-
|
|
5794
|
+
qs as r,
|
|
5797
5795
|
dr as s,
|
|
5798
|
-
|
|
5796
|
+
zs as t,
|
|
5799
5797
|
Rr as u,
|
|
5800
|
-
|
|
5798
|
+
Bs as v,
|
|
5801
5799
|
Qn as w,
|
|
5802
5800
|
je as x,
|
|
5803
5801
|
Wr as y,
|