@cgi-learning-hub/ui 1.0.0-dev.1721229430 → 1.0.0-dev.1721901545
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-DQXO6hAm.js → Box-BwHGDK_A.js} +15 -16
- package/dist/Box-CsYXR6Le.cjs +1 -0
- package/dist/Button-BF7P0rje.js +359 -0
- package/dist/Button-BtjHaBJr.cjs +1 -0
- package/dist/{ButtonBase-B5HiNV6L.js → ButtonBase-CWCHPphi.js} +46 -47
- package/dist/ButtonBase-VIKeNyAr.cjs +75 -0
- package/dist/CircularProgress-C0MOR9P7.cjs +28 -0
- package/dist/{CircularProgress-BlfBX_I2.js → CircularProgress-C_9OsPYJ.js} +24 -25
- package/dist/DatePicker-BE1RETq3.cjs +19 -0
- package/dist/DatePicker-DXoI-rbr.js +12663 -0
- package/dist/DefaultButton-BYqGgydF.cjs +1 -0
- package/dist/DefaultButton-CKAvlaVi.js +253 -0
- package/dist/IconButton-4zP9d1M9.cjs +2 -0
- package/dist/{IconButton-BjD7an5E.js → IconButton-De3-6K2r.js} +9 -10
- package/dist/{SearchInput-BdNp9ibO.js → InputAdornment-CdamqNqi.js} +49 -82
- package/dist/InputAdornment-UyNuc0Mc.cjs +1 -0
- package/dist/InputBase-DMbFw6s1.cjs +3 -0
- package/dist/{InputBase-Bu4aLC8s.js → InputBase-DYf00QVg.js} +35 -37
- package/dist/Stack-D1lCED40.cjs +1 -0
- package/dist/Stack-DIH86N4F.js +172 -0
- package/dist/{Tabs-rGjgGQoc.js → Tabs-D1zibo7D.js} +10 -11
- package/dist/Tabs-DZDo7UqF.cjs +4 -0
- package/dist/{TextInput-CAot24Xe.js → TextField-BAVYnvQj.js} +415 -419
- package/dist/TextField-CH-kzN1l.cjs +12 -0
- package/dist/Tooltip-BEg5oYwE.js +7463 -0
- package/dist/Tooltip-DppWsdRm.cjs +95 -0
- package/dist/Typography-C5AoCX91.cjs +1 -0
- package/dist/{Typography-2SgDaT8h.js → Typography-CbZkNGSr.js} +18 -19
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.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 +6 -6
- 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 +14 -15
- 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.d.ts +1 -4
- package/dist/components/index.es.js +264 -274
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +12 -11
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +36 -5
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.es.js +4 -3
- 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 +2 -2
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +6 -6
- 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 +37 -38
- package/dist/components/pickers/DatePicker/DatePicker.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/pickers/DatePicker/DatePicker.es.js +6 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.d.ts +5 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +16 -0
- package/dist/components/pickers/DatePicker/index.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/index.d.ts +2 -0
- package/dist/components/pickers/DatePicker/index.es.js +4 -0
- package/dist/components/pickers/index.cjs.js +1 -0
- package/dist/components/pickers/index.d.ts +1 -0
- package/dist/components/pickers/index.es.js +4 -0
- package/dist/createStyled-CXNF_m2b.js +142 -0
- package/dist/createStyled-CcHh6cyo.cjs +1 -0
- package/dist/{createSvgIcon-BqV9kys6.js → createSvgIcon-B6V0jwwg.js} +9 -10
- package/dist/{createSvgIcon-BoU2zJm2.cjs → createSvgIcon-B70pkSwO.cjs} +1 -1
- package/dist/{createSvgIcon-DKalT1IU.js → createSvgIcon-CGvnINlY.js} +17 -17
- package/dist/createSvgIcon-n-HUhGNK.cjs +1 -0
- package/dist/fr-BWMVjh4G.js +307 -0
- package/dist/fr-CzL4IYLw.cjs +1 -0
- package/dist/identifier-C_DzvlWx.js +3047 -0
- package/dist/identifier-J0ZxxQLU.cjs +50 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +265 -275
- package/dist/{refType-DzZFRJXI.cjs → refType-DNJbSwsx.cjs} +1 -1
- package/dist/{refType-BtebdsEm.js → refType-KXZNSMpq.js} +1 -1
- package/dist/styled-C04Dz9vm.cjs +17 -0
- package/dist/styled-DCjqF2JO.js +533 -0
- package/dist/{useTheme-CwCUkvkZ.js → useTheme-8G-WLfhQ.js} +30 -31
- package/dist/{useTheme-DDHh2q-k.cjs → useTheme-B4p2k0PU.cjs} +1 -1
- package/dist/useTheme-C65ChbGW.cjs +1 -0
- package/dist/{useTheme-C_ghcfxd.js → useTheme-D2TR379g.js} +1 -1
- package/dist/useThemeProps-CEfrd8SJ.cjs +1 -0
- package/dist/useThemeProps-DhHzyU0Y.cjs +1 -0
- package/dist/useThemeProps-DjJkz40D.js +17 -0
- package/dist/{useThemeProps-BybmzYVD.js → useThemeProps-fXKB99fl.js} +2 -2
- package/package.json +1 -1
- package/dist/Box-VE8zzQxN.cjs +0 -1
- package/dist/ButtonBase-BINHTm-n.cjs +0 -75
- package/dist/CircularProgress-yfmTQCpL.cjs +0 -28
- package/dist/DefaultButton-8ns1LvfF.cjs +0 -1
- package/dist/DefaultButton-CQL8OQ0m.js +0 -606
- package/dist/IconButton-RFeuYm2K.cjs +0 -2
- package/dist/InputBase-zXQ1Gs_-.cjs +0 -3
- package/dist/LocalizationProvider-Bd8iEFyF.cjs +0 -5
- package/dist/LocalizationProvider-Bw5VDmOD.js +0 -592
- package/dist/SearchInput-DeBVN_CY.cjs +0 -1
- package/dist/Stack-Bm3R862G.js +0 -309
- package/dist/Stack-CHo9cbcP.cjs +0 -1
- package/dist/Tabs-CgnNgSGQ.cjs +0 -4
- package/dist/TextInput-Dy0Qi2N7.cjs +0 -12
- package/dist/TimePicker-Dr_nF3ms.js +0 -25403
- package/dist/TimePicker-wzgmz3DE.cjs +0 -109
- package/dist/Typography-B_CzXKnG.cjs +0 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +0 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +0 -7
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +0 -6
- package/dist/components/LocalizationProvider/index.cjs.js +0 -1
- package/dist/components/LocalizationProvider/index.d.ts +0 -2
- package/dist/components/LocalizationProvider/index.es.js +0 -4
- package/dist/createSvgIcon-Dm2nQR21.cjs +0 -1
- package/dist/defaultTheme-BlqVFqOY.cjs +0 -1
- package/dist/defaultTheme-C4edRge6.js +0 -19
- package/dist/extendSxProp-BaQsf_eX.js +0 -739
- package/dist/extendSxProp-DYKVP-ko.cjs +0 -10
- package/dist/fr-DNOCWhp_.js +0 -321
- package/dist/fr-DSv4ULwD.cjs +0 -1
- package/dist/identifier-CItx51dm.js +0 -2369
- package/dist/identifier-DPVk4rwk.cjs +0 -43
- package/dist/styled-BCP6gOZj.js +0 -519
- package/dist/styled-RtRlBNlZ.cjs +0 -17
- package/dist/useTheme-CqMZT0T0.cjs +0 -1
- package/dist/useThemeProps-CEiKfXBZ.cjs +0 -1
- package/dist/useThemeProps-DmEDeofb.cjs +0 -1
- package/dist/useThemeProps-JKgv0pkv.js +0 -17
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { P as e,
|
|
1
|
+
import { K as ke, P as e, _ as ye, m as d, T as Be, v as Pe, w as Me, x as pe, q as Q, L as He } from "./identifier-C_DzvlWx.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { s as be, u as De, c as We } from "./styled-BCP6gOZj.js";
|
|
3
|
+
import { d as De, s as be, u as We, c as Ve } from "./styled-DCjqF2JO.js";
|
|
5
4
|
import { jsx as N, jsxs as X } from "react/jsx-runtime";
|
|
6
5
|
import { a as ge, u as ee } from "./useForkRef-DwN_Iz9R.js";
|
|
7
|
-
import { a as fe, d as
|
|
6
|
+
import { a as fe, d as Le } from "./ownerWindow-C7EH1lr6.js";
|
|
8
7
|
import { i as me } from "./isHostComponent-kiaBvYVo.js";
|
|
9
|
-
import { e as _e, r as
|
|
10
|
-
import {
|
|
11
|
-
import { u as Ue } from "./useTheme-C_ghcfxd.js";
|
|
8
|
+
import { e as _e, r as je } from "./refType-KXZNSMpq.js";
|
|
9
|
+
import { u as Ue } from "./useTheme-D2TR379g.js";
|
|
12
10
|
function we({
|
|
13
11
|
styles: o,
|
|
14
12
|
themeId: n,
|
|
15
13
|
defaultTheme: t = {}
|
|
16
14
|
}) {
|
|
17
15
|
const s = Ue(t), i = typeof o == "function" ? o(n && s[n] || s) : o;
|
|
18
|
-
return /* @__PURE__ */ N(
|
|
16
|
+
return /* @__PURE__ */ N(ke, {
|
|
19
17
|
styles: i
|
|
20
18
|
});
|
|
21
19
|
}
|
|
@@ -45,13 +43,13 @@ function $e() {
|
|
|
45
43
|
function he(o) {
|
|
46
44
|
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
47
45
|
}
|
|
48
|
-
function
|
|
46
|
+
function Ke(o, n = !1) {
|
|
49
47
|
return o && (he(o.value) && o.value !== "" || n && he(o.defaultValue) && o.defaultValue !== "");
|
|
50
48
|
}
|
|
51
|
-
function
|
|
49
|
+
function ho(o) {
|
|
52
50
|
return o.startAdornment;
|
|
53
51
|
}
|
|
54
|
-
function
|
|
52
|
+
function Ge({
|
|
55
53
|
props: o,
|
|
56
54
|
states: n,
|
|
57
55
|
muiFormControl: t
|
|
@@ -59,7 +57,7 @@ function Ke({
|
|
|
59
57
|
return n.reduce((s, i) => (s[i] = o[i], t && typeof o[i] > "u" && (s[i] = t[i]), s), {});
|
|
60
58
|
}
|
|
61
59
|
const qe = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
62
|
-
function
|
|
60
|
+
function L(o) {
|
|
63
61
|
return parseInt(o, 10) || 0;
|
|
64
62
|
}
|
|
65
63
|
const Ye = {
|
|
@@ -99,7 +97,7 @@ const ve = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
|
99
97
|
const m = T.current;
|
|
100
98
|
m.style.width = f.width, m.value = c.value || n.placeholder || "x", m.value.slice(-1) === `
|
|
101
99
|
` && (m.value += " ");
|
|
102
|
-
const E = f.boxSizing, O =
|
|
100
|
+
const E = f.boxSizing, O = L(f.paddingBottom) + L(f.paddingTop), x = L(f.borderBottomWidth) + L(f.borderTopWidth), S = m.scrollHeight;
|
|
103
101
|
m.value = "x";
|
|
104
102
|
const F = m.scrollHeight;
|
|
105
103
|
let y = S;
|
|
@@ -125,7 +123,7 @@ const ve = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
|
125
123
|
cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
126
124
|
c();
|
|
127
125
|
});
|
|
128
|
-
}, m =
|
|
126
|
+
}, m = Le(c), E = b.current, O = fe(E);
|
|
129
127
|
O.addEventListener("resize", m);
|
|
130
128
|
let x;
|
|
131
129
|
return typeof ResizeObserver < "u" && (x = new ResizeObserver(process.env.NODE_ENV === "test" ? f : c), x.observe(E)), () => {
|
|
@@ -134,13 +132,13 @@ const ve = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
|
134
132
|
}, [v, C]), ee(() => {
|
|
135
133
|
C();
|
|
136
134
|
});
|
|
137
|
-
const
|
|
135
|
+
const _ = (c) => {
|
|
138
136
|
R || C(), s && s(c);
|
|
139
137
|
};
|
|
140
138
|
return /* @__PURE__ */ X(l.Fragment, {
|
|
141
139
|
children: [/* @__PURE__ */ N("textarea", d({
|
|
142
140
|
value: A,
|
|
143
|
-
onChange:
|
|
141
|
+
onChange: _,
|
|
144
142
|
ref: I,
|
|
145
143
|
rows: p,
|
|
146
144
|
style: z
|
|
@@ -194,8 +192,8 @@ process.env.NODE_ENV !== "production" && (ve.propTypes = {
|
|
|
194
192
|
});
|
|
195
193
|
function Ce(o) {
|
|
196
194
|
return /* @__PURE__ */ N(we, d({}, o, {
|
|
197
|
-
defaultTheme:
|
|
198
|
-
themeId:
|
|
195
|
+
defaultTheme: De,
|
|
196
|
+
themeId: Be
|
|
199
197
|
}));
|
|
200
198
|
}
|
|
201
199
|
process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
@@ -209,9 +207,9 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
|
209
207
|
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
|
|
210
208
|
});
|
|
211
209
|
function Je(o) {
|
|
212
|
-
return
|
|
210
|
+
return Me("MuiInputBase", o);
|
|
213
211
|
}
|
|
214
|
-
const oe =
|
|
212
|
+
const oe = Pe("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), Qe = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], Xe = (o, n) => {
|
|
215
213
|
const {
|
|
216
214
|
ownerState: t
|
|
217
215
|
} = o;
|
|
@@ -241,7 +239,7 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
241
239
|
root: ["root", `color${Q(t)}`, s && "disabled", i && "error", B && "fullWidth", z && "focused", A && "formControl", g && g !== "medium" && `size${Q(g)}`, b && "multiline", T && "adornedStart", p && "adornedEnd", R && "hiddenLabel", I && "readOnly"],
|
|
242
240
|
input: ["input", s && "disabled", v === "search" && "inputTypeSearch", b && "inputMultiline", g === "small" && "inputSizeSmall", R && "inputHiddenLabel", T && "inputAdornedStart", p && "inputAdornedEnd", I && "readOnly"]
|
|
243
241
|
};
|
|
244
|
-
return
|
|
242
|
+
return Ve(C, Je, n);
|
|
245
243
|
}, no = be("div", {
|
|
246
244
|
name: "MuiInputBase",
|
|
247
245
|
slot: "Root",
|
|
@@ -385,7 +383,7 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
385
383
|
}
|
|
386
384
|
}), io = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
387
385
|
var s;
|
|
388
|
-
const i =
|
|
386
|
+
const i = We({
|
|
389
387
|
props: n,
|
|
390
388
|
name: "MuiInputBase"
|
|
391
389
|
}), {
|
|
@@ -400,7 +398,7 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
400
398
|
disableInjectingGlobalStyles: T,
|
|
401
399
|
endAdornment: v,
|
|
402
400
|
fullWidth: C = !1,
|
|
403
|
-
id:
|
|
401
|
+
id: _,
|
|
404
402
|
inputComponent: c = "input",
|
|
405
403
|
inputProps: u = {},
|
|
406
404
|
inputRef: f,
|
|
@@ -428,21 +426,21 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
428
426
|
} = l.useRef(W != null), k = l.useRef(), Ee = l.useCallback((r) => {
|
|
429
427
|
process.env.NODE_ENV !== "production" && r && r.nodeName !== "INPUT" && !r.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(`
|
|
430
428
|
`));
|
|
431
|
-
}, []), Oe = ge(k, f, u.ref, Ee), [
|
|
429
|
+
}, []), Oe = ge(k, f, u.ref, Ee), [K, G] = l.useState(!1), a = $e();
|
|
432
430
|
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
433
431
|
if (a)
|
|
434
432
|
return a.registerEffect();
|
|
435
433
|
}, [a]);
|
|
436
|
-
const h =
|
|
434
|
+
const h = Ge({
|
|
437
435
|
props: i,
|
|
438
436
|
muiFormControl: a,
|
|
439
437
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
440
438
|
});
|
|
441
|
-
h.focused = a ? a.focused :
|
|
442
|
-
!a && g &&
|
|
443
|
-
}, [a, g,
|
|
439
|
+
h.focused = a ? a.focused : K, l.useEffect(() => {
|
|
440
|
+
!a && g && K && (G(!1), S && S());
|
|
441
|
+
}, [a, g, K, S]);
|
|
444
442
|
const q = a && a.onFilled, Y = a && a.onEmpty, M = l.useCallback((r) => {
|
|
445
|
-
|
|
443
|
+
Ke(r) ? q && q() : Y && Y();
|
|
446
444
|
}, [q, Y]);
|
|
447
445
|
ee(() => {
|
|
448
446
|
$ && M({
|
|
@@ -454,14 +452,14 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
454
452
|
r.stopPropagation();
|
|
455
453
|
return;
|
|
456
454
|
}
|
|
457
|
-
H && H(r), u.onFocus && u.onFocus(r), a && a.onFocus ? a.onFocus(r) :
|
|
455
|
+
H && H(r), u.onFocus && u.onFocus(r), a && a.onFocus ? a.onFocus(r) : G(!0);
|
|
458
456
|
}, ze = (r) => {
|
|
459
|
-
S && S(r), u.onBlur && u.onBlur(r), a && a.onBlur ? a.onBlur(r) :
|
|
457
|
+
S && S(r), u.onBlur && u.onBlur(r), a && a.onBlur ? a.onBlur(r) : G(!1);
|
|
460
458
|
}, Ae = (r, ...de) => {
|
|
461
459
|
if (!$) {
|
|
462
460
|
const ce = r.target || k.current;
|
|
463
461
|
if (ce == null)
|
|
464
|
-
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." :
|
|
462
|
+
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." : He(1));
|
|
465
463
|
M({
|
|
466
464
|
value: ce.value
|
|
467
465
|
});
|
|
@@ -524,7 +522,7 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
524
522
|
autoFocus: A,
|
|
525
523
|
defaultValue: I,
|
|
526
524
|
disabled: h.disabled,
|
|
527
|
-
id:
|
|
525
|
+
id: _,
|
|
528
526
|
onAnimationStart: Fe,
|
|
529
527
|
name: x,
|
|
530
528
|
placeholder: Se,
|
|
@@ -657,7 +655,7 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
657
655
|
/**
|
|
658
656
|
* Pass a ref to the `input` element.
|
|
659
657
|
*/
|
|
660
|
-
inputRef:
|
|
658
|
+
inputRef: je,
|
|
661
659
|
/**
|
|
662
660
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
663
661
|
* FormControl.
|
|
@@ -784,13 +782,13 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
784
782
|
export {
|
|
785
783
|
ne as F,
|
|
786
784
|
io as I,
|
|
787
|
-
|
|
785
|
+
Ke as a,
|
|
788
786
|
oe as b,
|
|
789
787
|
no as c,
|
|
790
788
|
to as d,
|
|
791
789
|
eo as e,
|
|
792
|
-
|
|
793
|
-
|
|
790
|
+
Ge as f,
|
|
791
|
+
ho as i,
|
|
794
792
|
Xe as r,
|
|
795
793
|
$e as u
|
|
796
794
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-J0ZxxQLU.cjs"),T=require("./styled-C04Dz9vm.cjs"),S=require("react"),V=require("./createStyled-CcHh6cyo.cjs"),D=require("react/jsx-runtime"),C=require("./useThemeProps-CEfrd8SJ.cjs");function N(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const f=N(S),R=V.createStyled(),_=["component","direction","spacing","divider","children","className","useFlexGap"],B=e.createTheme$1(),q=R("div",{name:"MuiStack",slot:"Root",overridesResolver:(o,r)=>r.root});function $(o){return C.useThemeProps({props:o,name:"MuiStack",defaultTheme:B})}function E(o,r){const s=f.Children.toArray(o).filter(Boolean);return s.reduce((n,i,p)=>(n.push(i),p<s.length-1&&n.push(f.cloneElement(r,{key:`separator-${p}`})),n),[])}const F=o=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[o],M=({ownerState:o,theme:r})=>{let s=e._extends({display:"flex",flexDirection:"column"},e.handleBreakpoints({theme:r},e.resolveBreakpointValues({values:o.direction,breakpoints:r.breakpoints.values}),n=>({flexDirection:n})));if(o.spacing){const n=e.createUnarySpacing(r),i=Object.keys(r.breakpoints.values).reduce((t,c)=>((typeof o.spacing=="object"&&o.spacing[c]!=null||typeof o.direction=="object"&&o.direction[c]!=null)&&(t[c]=!0),t),{}),p=e.resolveBreakpointValues({values:o.direction,base:i}),a=e.resolveBreakpointValues({values:o.spacing,base:i});typeof p=="object"&&Object.keys(p).forEach((t,c,u)=>{if(!p[t]){const d=c>0?p[u[c-1]]:"column";p[t]=d}});const l=(t,c)=>o.useFlexGap?{gap:e.getValue(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${F(c?p[c]:o.direction)}`]:e.getValue(n,t)}};s=e.deepmerge(s,e.handleBreakpoints({theme:r},a,l))}return s=e.mergeBreakpointsInOrder(r.breakpoints,s),s};function w(o={}){const{createStyledComponent:r=q,useThemeProps:s=$,componentName:n="MuiStack"}=o,i=()=>{const l={root:["root"]};return T.composeClasses(l,t=>e.generateUtilityClass(n,t),{})},p=r(M),a=f.forwardRef(function(t,c){const u=s(t),y=e.extendSxProp(u),{component:d="div",direction:g="column",spacing:O=0,divider:P,children:m,className:b,useFlexGap:k=!1}=y,h=e._objectWithoutPropertiesLoose(y,_),j={direction:g,spacing:O,useFlexGap:k},x=i();return D.jsx(p,e._extends({as:d,ownerState:j,ref:c,className:e.clsx(x.root,b)},h,{children:P?E(m,P):m}))});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:e.PropTypes.node,direction:e.PropTypes.oneOfType([e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"]),e.PropTypes.arrayOf(e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"])),e.PropTypes.object]),divider:e.PropTypes.node,spacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])}),a}const v=w({createStyledComponent:T.styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(o,r)=>r.root}),useThemeProps:o=>T.useDefaultProps({props:o,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(v.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,direction:e.PropTypes.oneOfType([e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"]),e.PropTypes.arrayOf(e.PropTypes.oneOf(["column-reverse","column","row-reverse","row"])),e.PropTypes.object]),divider:e.PropTypes.node,spacing:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string])),e.PropTypes.number,e.PropTypes.object,e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),useFlexGap:e.PropTypes.bool});const G=v;exports.Stack=G;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { P as e, n as D, m as T, B as g, D as m, E as F, F as N, G as R, z as E, _ as B, x as G, w as _, H as b } from "./identifier-C_DzvlWx.js";
|
|
2
|
+
import { c as w, s as M, u as $ } from "./styled-DCjqF2JO.js";
|
|
3
|
+
import * as f from "react";
|
|
4
|
+
import { c as U } from "./createStyled-CXNF_m2b.js";
|
|
5
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
6
|
+
import { u as L } from "./useThemeProps-fXKB99fl.js";
|
|
7
|
+
const z = U(), H = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"], I = D(), W = z("div", {
|
|
8
|
+
name: "MuiStack",
|
|
9
|
+
slot: "Root",
|
|
10
|
+
overridesResolver: (o, r) => r.root
|
|
11
|
+
});
|
|
12
|
+
function q(o) {
|
|
13
|
+
return L({
|
|
14
|
+
props: o,
|
|
15
|
+
name: "MuiStack",
|
|
16
|
+
defaultTheme: I
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function J(o, r) {
|
|
20
|
+
const c = f.Children.toArray(o).filter(Boolean);
|
|
21
|
+
return c.reduce((a, i, n) => (a.push(i), n < c.length - 1 && a.push(/* @__PURE__ */ f.cloneElement(r, {
|
|
22
|
+
key: `separator-${n}`
|
|
23
|
+
})), a), []);
|
|
24
|
+
}
|
|
25
|
+
const K = (o) => ({
|
|
26
|
+
row: "Left",
|
|
27
|
+
"row-reverse": "Right",
|
|
28
|
+
column: "Top",
|
|
29
|
+
"column-reverse": "Bottom"
|
|
30
|
+
})[o], Q = ({
|
|
31
|
+
ownerState: o,
|
|
32
|
+
theme: r
|
|
33
|
+
}) => {
|
|
34
|
+
let c = T({
|
|
35
|
+
display: "flex",
|
|
36
|
+
flexDirection: "column"
|
|
37
|
+
}, g({
|
|
38
|
+
theme: r
|
|
39
|
+
}, m({
|
|
40
|
+
values: o.direction,
|
|
41
|
+
breakpoints: r.breakpoints.values
|
|
42
|
+
}), (a) => ({
|
|
43
|
+
flexDirection: a
|
|
44
|
+
})));
|
|
45
|
+
if (o.spacing) {
|
|
46
|
+
const a = F(r), i = Object.keys(r.breakpoints.values).reduce((s, t) => ((typeof o.spacing == "object" && o.spacing[t] != null || typeof o.direction == "object" && o.direction[t] != null) && (s[t] = !0), s), {}), n = m({
|
|
47
|
+
values: o.direction,
|
|
48
|
+
base: i
|
|
49
|
+
}), l = m({
|
|
50
|
+
values: o.spacing,
|
|
51
|
+
base: i
|
|
52
|
+
});
|
|
53
|
+
typeof n == "object" && Object.keys(n).forEach((s, t, p) => {
|
|
54
|
+
if (!n[s]) {
|
|
55
|
+
const d = t > 0 ? n[p[t - 1]] : "column";
|
|
56
|
+
n[s] = d;
|
|
57
|
+
}
|
|
58
|
+
}), c = N(c, g({
|
|
59
|
+
theme: r
|
|
60
|
+
}, l, (s, t) => o.useFlexGap ? {
|
|
61
|
+
gap: b(a, s)
|
|
62
|
+
} : {
|
|
63
|
+
// The useFlexGap={false} implement relies on each child to give up control of the margin.
|
|
64
|
+
// We need to reset the margin to avoid double spacing.
|
|
65
|
+
"& > :not(style):not(style)": {
|
|
66
|
+
margin: 0
|
|
67
|
+
},
|
|
68
|
+
"& > :not(style) ~ :not(style)": {
|
|
69
|
+
[`margin${K(t ? n[t] : o.direction)}`]: b(a, s)
|
|
70
|
+
}
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
return c = R(r.breakpoints, c), c;
|
|
74
|
+
};
|
|
75
|
+
function X(o = {}) {
|
|
76
|
+
const {
|
|
77
|
+
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
78
|
+
createStyledComponent: r = W,
|
|
79
|
+
useThemeProps: c = q,
|
|
80
|
+
componentName: a = "MuiStack"
|
|
81
|
+
} = o, i = () => w({
|
|
82
|
+
root: ["root"]
|
|
83
|
+
}, (s) => _(a, s), {}), n = r(Q), l = /* @__PURE__ */ f.forwardRef(function(s, t) {
|
|
84
|
+
const p = c(s), u = E(p), {
|
|
85
|
+
component: d = "div",
|
|
86
|
+
direction: j = "column",
|
|
87
|
+
spacing: k = 0,
|
|
88
|
+
divider: v,
|
|
89
|
+
children: O,
|
|
90
|
+
className: x,
|
|
91
|
+
useFlexGap: P = !1
|
|
92
|
+
} = u, S = B(u, H), V = {
|
|
93
|
+
direction: j,
|
|
94
|
+
spacing: k,
|
|
95
|
+
useFlexGap: P
|
|
96
|
+
}, C = i();
|
|
97
|
+
return /* @__PURE__ */ A(n, T({
|
|
98
|
+
as: d,
|
|
99
|
+
ownerState: V,
|
|
100
|
+
ref: t,
|
|
101
|
+
className: G(C.root, x)
|
|
102
|
+
}, S, {
|
|
103
|
+
children: v ? J(O, v) : O
|
|
104
|
+
}));
|
|
105
|
+
});
|
|
106
|
+
return process.env.NODE_ENV !== "production" && (l.propTypes = {
|
|
107
|
+
children: e.node,
|
|
108
|
+
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
109
|
+
divider: e.node,
|
|
110
|
+
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
111
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
112
|
+
}), l;
|
|
113
|
+
}
|
|
114
|
+
const h = X({
|
|
115
|
+
createStyledComponent: M("div", {
|
|
116
|
+
name: "MuiStack",
|
|
117
|
+
slot: "Root",
|
|
118
|
+
overridesResolver: (o, r) => r.root
|
|
119
|
+
}),
|
|
120
|
+
useThemeProps: (o) => $({
|
|
121
|
+
props: o,
|
|
122
|
+
name: "MuiStack"
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
126
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
127
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
128
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
129
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
130
|
+
/**
|
|
131
|
+
* The content of the component.
|
|
132
|
+
*/
|
|
133
|
+
children: e.node,
|
|
134
|
+
/**
|
|
135
|
+
* The component used for the root node.
|
|
136
|
+
* Either a string to use a HTML element or a component.
|
|
137
|
+
*/
|
|
138
|
+
component: e.elementType,
|
|
139
|
+
/**
|
|
140
|
+
* Defines the `flex-direction` style property.
|
|
141
|
+
* It is applied for all screen sizes.
|
|
142
|
+
* @default 'column'
|
|
143
|
+
*/
|
|
144
|
+
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
145
|
+
/**
|
|
146
|
+
* Add an element between each child.
|
|
147
|
+
*/
|
|
148
|
+
divider: e.node,
|
|
149
|
+
/**
|
|
150
|
+
* Defines the space between immediate children.
|
|
151
|
+
* @default 0
|
|
152
|
+
*/
|
|
153
|
+
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
154
|
+
/**
|
|
155
|
+
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
156
|
+
*/
|
|
157
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
158
|
+
/**
|
|
159
|
+
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
|
160
|
+
*
|
|
161
|
+
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
|
162
|
+
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
|
163
|
+
*
|
|
164
|
+
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
useFlexGap: e.bool
|
|
168
|
+
});
|
|
169
|
+
const se = h;
|
|
170
|
+
export {
|
|
171
|
+
se as S
|
|
172
|
+
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as me, v as ve, q as Le, m as b, _ as ae, x as k, P as o } from "./identifier-C_DzvlWx.js";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { s as _, u as Se, c as ye, a as st } from "./styled-BCP6gOZj.js";
|
|
3
|
+
import { s as _, u as Se, c as ye, b as st } from "./styled-DCjqF2JO.js";
|
|
5
4
|
import { jsxs as Q, jsx as C } from "react/jsx-runtime";
|
|
6
|
-
import { B as ke } from "./ButtonBase-
|
|
5
|
+
import { B as ke } from "./ButtonBase-CWCHPphi.js";
|
|
7
6
|
import { u as at } from "./unsupportedProp-BuVD30Gh.js";
|
|
8
|
-
import { a as Fe, b as se, u as it } from "./useTheme-
|
|
7
|
+
import { a as Fe, b as se, u as it } from "./useTheme-8G-WLfhQ.js";
|
|
9
8
|
import { u as ct } from "./useForkRef-DwN_Iz9R.js";
|
|
10
9
|
import { a as $e, d as Ae, o as dt } from "./ownerWindow-C7EH1lr6.js";
|
|
11
10
|
import { u as be } from "./useTimeout-BdvDipeg.js";
|
|
12
|
-
import { r as ut } from "./refType-
|
|
13
|
-
import { c as De } from "./createSvgIcon-
|
|
11
|
+
import { r as ut } from "./refType-KXZNSMpq.js";
|
|
12
|
+
import { c as De } from "./createSvgIcon-B6V0jwwg.js";
|
|
14
13
|
let X;
|
|
15
14
|
function je() {
|
|
16
15
|
if (X)
|
|
@@ -261,7 +260,7 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
|
261
260
|
*/
|
|
262
261
|
wrapped: o.bool
|
|
263
262
|
});
|
|
264
|
-
const
|
|
263
|
+
const qt = _e, St = De(/* @__PURE__ */ C("path", {
|
|
265
264
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
266
265
|
}), "KeyboardArrowLeft"), yt = De(/* @__PURE__ */ C("path", {
|
|
267
266
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
@@ -1079,11 +1078,11 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
1079
1078
|
*/
|
|
1080
1079
|
visibleScrollbar: o.bool
|
|
1081
1080
|
});
|
|
1082
|
-
const
|
|
1081
|
+
const Gt = Ue;
|
|
1083
1082
|
export {
|
|
1084
1083
|
yt as K,
|
|
1085
|
-
|
|
1086
|
-
|
|
1084
|
+
qt as T,
|
|
1085
|
+
Gt as a,
|
|
1087
1086
|
he as b,
|
|
1088
1087
|
Nt as c,
|
|
1089
1088
|
St as d,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-J0ZxxQLU.cjs"),Ze=require("react"),P=require("./styled-C04Dz9vm.cjs"),h=require("react/jsx-runtime"),Ee=require("./ButtonBase-VIKeNyAr.cjs"),eo=require("./unsupportedProp-Bn6XWqwH.cjs"),D=require("./useTheme-C65ChbGW.cjs"),oo=require("./useForkRef-CGd3Nhyb.cjs"),J=require("./ownerWindow-Dk_4aaak.cjs"),ue=require("./useTimeout-XUWYBnl6.cjs"),to=require("./refType-DNJbSwsx.cjs"),Oe=require("./createSvgIcon-n-HUhGNK.cjs");function ro(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:()=>o[n]})}}return t.default=o,Object.freeze(t)}const p=ro(Ze);let H;function Ne(){if(H)return H;const o=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",o.appendChild(t),o.dir="rtl",o.style.fontSize="14px",o.style.width="4px",o.style.height="1px",o.style.position="absolute",o.style.top="-1000px",o.style.overflow="scroll",document.body.appendChild(o),H="reverse",o.scrollLeft>0?H="default":(o.scrollLeft=1,o.scrollLeft===0&&(H="negative")),document.body.removeChild(o),H}function so(o,t){const n=o.scrollLeft;if(t!=="rtl")return n;switch(Ne()){case"negative":return o.scrollWidth-o.clientWidth+n;case"reverse":return o.scrollWidth-o.clientWidth-n;default:return n}}function Me(o){return e.generateUtilityClass("MuiTab",o)}const no=e.generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),R=no,lo=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],io=o=>{const{classes:t,textColor:n,fullWidth:l,wrapped:c,icon:d,label:y,selected:f,disabled:u}=o,T={root:["root",d&&y&&"labelIcon",`textColor${e.capitalize(n)}`,l&&"fullWidth",c&&"wrapped",f&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return P.composeClasses(T,Me,t)},co=P.styled(Ee.ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:n}=o;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${e.capitalize(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${R.iconWrapper}`]:t.iconWrapper}]}})(({theme:o,ownerState:t})=>e._extends({},o.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${R.iconWrapper}`]:e._extends({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:o.spacing(1)},t.iconPosition==="end"&&{marginLeft:o.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${R.selected}`]:{opacity:1},[`&.${R.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(o.vars||o).palette.text.secondary,[`&.${R.selected}`]:{color:(o.vars||o).palette.primary.main},[`&.${R.disabled}`]:{color:(o.vars||o).palette.text.disabled}},t.textColor==="secondary"&&{color:(o.vars||o).palette.text.secondary,[`&.${R.selected}`]:{color:(o.vars||o).palette.secondary.main},[`&.${R.disabled}`]:{color:(o.vars||o).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:o.typography.pxToRem(12)})),Re=p.forwardRef(function(t,n){const l=P.useDefaultProps({props:t,name:"MuiTab"}),{className:c,disabled:d=!1,disableFocusRipple:y=!1,fullWidth:f,icon:u,iconPosition:T="top",indicator:B,label:x,onChange:v,onClick:w,onFocus:z,selected:I,selectionFollowsFocus:m,textColor:A="inherit",value:O,wrapped:le=!1}=l,U=e._objectWithoutPropertiesLoose(l,lo),V=e._extends({},l,{disabled:d,disableFocusRipple:y,selected:I,icon:!!u,iconPosition:T,label:!!x,fullWidth:f,textColor:A,wrapped:le}),q=io(V),L=u&&x&&p.isValidElement(u)?p.cloneElement(u,{className:e.clsx(q.iconWrapper,u.props.className)}):u,Q=N=>{!I&&v&&v(N,O),w&&w(N)},_=N=>{m&&!I&&v&&v(N,O),z&&z(N)};return h.jsxs(co,e._extends({focusRipple:!y,className:e.clsx(q.root,c),ref:n,role:"tab","aria-selected":I,disabled:d,onClick:Q,onFocus:_,ownerState:V,tabIndex:I?0:-1},U,{children:[T==="top"||T==="start"?h.jsxs(p.Fragment,{children:[L,x]}):h.jsxs(p.Fragment,{children:[x,L]}),B]}))});process.env.NODE_ENV!=="production"&&(Re.propTypes={children:eo.unsupportedProp,classes:e.PropTypes.object,className:e.PropTypes.string,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,icon:e.PropTypes.oneOfType([e.PropTypes.element,e.PropTypes.string]),iconPosition:e.PropTypes.oneOf(["bottom","end","start","top"]),label:e.PropTypes.node,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),value:e.PropTypes.any,wrapped:e.PropTypes.bool});const ao=Re,_e=Oe.createSvgIcon(h.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),We=Oe.createSvgIcon(h.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function po(o){return(1+Math.sin(Math.PI*o-Math.PI/2))/2}function uo(o,t,n,l={},c=()=>{}){const{ease:d=po,duration:y=300}=l;let f=null;const u=t[o];let T=!1;const B=()=>{T=!0},x=v=>{if(T){c(new Error("Animation cancelled"));return}f===null&&(f=v);const w=Math.min(1,(v-f)/y);if(t[o]=d(w)*(n-u)+u,w>=1){requestAnimationFrame(()=>{c(null)});return}requestAnimationFrame(x)};return u===n?(c(new Error("Element already at target position")),B):(requestAnimationFrame(x),B)}const bo=["onChange"],fo={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function je(o){const{onChange:t}=o,n=e._objectWithoutPropertiesLoose(o,bo),l=p.useRef(),c=p.useRef(null),d=()=>{l.current=c.current.offsetHeight-c.current.clientHeight};return oo.useEnhancedEffect(()=>{const y=J.debounce(()=>{const u=l.current;d(),u!==l.current&&t(l.current)}),f=J.ownerWindow(c.current);return f.addEventListener("resize",y),()=>{y.clear(),f.removeEventListener("resize",y)}},[t]),p.useEffect(()=>{d(),t(l.current)},[t]),h.jsx("div",e._extends({style:fo,ref:c},n))}process.env.NODE_ENV!=="production"&&(je.propTypes={onChange:e.PropTypes.func.isRequired});function yo(o){return e.generateUtilityClass("MuiTabScrollButton",o)}const ho=e.generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),To=["className","slots","slotProps","direction","orientation","disabled"],vo=o=>{const{classes:t,orientation:n,disabled:l}=o,c={root:["root",n,l&&"disabled"]};return P.composeClasses(c,yo,t)},So=P.styled(Ee.ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:n}=o;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:o})=>e._extends({width:40,flexShrink:0,opacity:.8,[`&.${ho.disabled}`]:{opacity:0}},o.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${o.isRtl?-90:90}deg)`}})),ze=p.forwardRef(function(t,n){var l,c;const d=P.useDefaultProps({props:t,name:"MuiTabScrollButton"}),{className:y,slots:f={},slotProps:u={},direction:T}=d,B=e._objectWithoutPropertiesLoose(d,To),x=D.useRtl(),v=e._extends({isRtl:x},d),w=vo(v),z=(l=f.StartScrollButtonIcon)!=null?l:_e,I=(c=f.EndScrollButtonIcon)!=null?c:We,m=D.useSlotProps({elementType:z,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),A=D.useSlotProps({elementType:I,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return h.jsx(So,e._extends({component:"div",className:e.clsx(w.root,y),ref:n,role:null,ownerState:v,tabIndex:null},B,{children:T==="left"?h.jsx(z,e._extends({},m)):h.jsx(I,e._extends({},A))}))});process.env.NODE_ENV!=="production"&&(ze.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,direction:e.PropTypes.oneOf(["left","right"]).isRequired,disabled:e.PropTypes.bool,orientation:e.PropTypes.oneOf(["horizontal","vertical"]).isRequired,slotProps:e.PropTypes.shape({endScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),startScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({EndScrollButtonIcon:e.PropTypes.elementType,StartScrollButtonIcon:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});function Le(o){return e.generateUtilityClass("MuiTabs",o)}const Po=e.generateUtilityClasses("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ne=Po,mo=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Ce=(o,t)=>o===t?o.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o.firstChild,Be=(o,t)=>o===t?o.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o.lastChild,se=(o,t,n)=>{let l=!1,c=n(o,t);for(;c;){if(c===o.firstChild){if(l)return;l=!0}const d=c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||d)c=n(o,c);else{c.focus();return}}},xo=o=>{const{vertical:t,fixed:n,hideScrollbar:l,scrollableX:c,scrollableY:d,centered:y,scrollButtonsHideMobile:f,classes:u}=o,T={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",l&&"hideScrollbar",c&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",y&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[c&&"scrollableX"],hideScrollbar:[l&&"hideScrollbar"]};return P.composeClasses(T,Le,u)},go=P.styled("div",{name:"MuiTabs",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:n}=o;return[{[`& .${ne.scrollButtons}`]:t.scrollButtons},{[`& .${ne.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:o,theme:t})=>e._extends({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},o.vertical&&{flexDirection:"column"},o.scrollButtonsHideMobile&&{[`& .${ne.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Co=P.styled("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(o,t)=>{const{ownerState:n}=o;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:o})=>e._extends({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},o.fixed&&{overflowX:"hidden",width:"100%"},o.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},o.scrollableX&&{overflowX:"auto",overflowY:"hidden"},o.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Bo=P.styled("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(o,t)=>{const{ownerState:n}=o;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:o})=>e._extends({display:"flex"},o.vertical&&{flexDirection:"column"},o.centered&&{justifyContent:"center"})),wo=P.styled("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(o,t)=>t.indicator})(({ownerState:o,theme:t})=>e._extends({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},o.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},o.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},o.vertical&&{height:"100%",width:2,right:0})),Io=P.styled(je)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),we={};let Ie=!1;const ke=p.forwardRef(function(t,n){const l=P.useDefaultProps({props:t,name:"MuiTabs"}),c=D.useTheme(),d=D.useRtl(),{"aria-label":y,"aria-labelledby":f,action:u,centered:T=!1,children:B,className:x,component:v="div",allowScrollButtonsMobile:w=!1,indicatorColor:z="primary",onChange:I,orientation:m="horizontal",ScrollButtonComponent:A=ze,scrollButtons:O="auto",selectionFollowsFocus:le,slots:U={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:L={},textColor:Q="primary",value:_,variant:N="standard",visibleScrollbar:ie=!1}=l,$e=e._objectWithoutPropertiesLoose(l,mo),g=N==="scrollable",C=m==="vertical",X=C?"scrollTop":"scrollLeft",Z=C?"top":"left",ee=C?"bottom":"right",ce=C?"clientHeight":"clientWidth",Y=C?"height":"width",k=e._extends({},l,{component:v,allowScrollButtonsMobile:w,indicatorColor:z,orientation:m,vertical:C,scrollButtons:O,textColor:Q,variant:N,visibleScrollbar:ie,fixed:!g,hideScrollbar:g&&!ie,scrollableX:g&&!C,scrollableY:g&&C,centered:T&&!g,scrollButtonsHideMobile:!w}),W=xo(k),Fe=D.useSlotProps({elementType:U.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:k}),De=D.useSlotProps({elementType:U.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:k});process.env.NODE_ENV!=="production"&&T&&g&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[be,Ae]=p.useState(!1),[$,fe]=p.useState(we),[ye,Ue]=p.useState(!1),[he,qe]=p.useState(!1),[Te,He]=p.useState(!1),[ve,Ve]=p.useState({overflow:"hidden",scrollbarWidth:0}),oe=new Map,M=p.useRef(null),F=p.useRef(null),Se=()=>{const r=M.current;let s;if(r){const a=r.getBoundingClientRect();s={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:so(r,d?"rtl":"ltr"),scrollWidth:r.scrollWidth,top:a.top,bottom:a.bottom,left:a.left,right:a.right}}let i;if(r&&_!==!1){const a=F.current.children;if(a.length>0){const b=a[oe.get(_)];process.env.NODE_ENV!=="production"&&(b||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${_}".`,oe.keys?`You can provide one of the following values: ${Array.from(oe.keys()).join(", ")}.`:null].join(`
|
|
2
|
+
`))),i=b?b.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Ie&&i&&i.width===0&&i.height===0&&s.clientWidth!==0&&(s=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${_}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
3
|
+
`)),Ie=!0)}}return{tabsMeta:s,tabMeta:i}},K=ue.useEventCallback(()=>{const{tabsMeta:r,tabMeta:s}=Se();let i=0,a;if(C)a="top",s&&r&&(i=s.top-r.top+r.scrollTop);else if(a=d?"right":"left",s&&r){const S=d?r.scrollLeftNormalized+r.clientWidth-r.scrollWidth:r.scrollLeft;i=(d?-1:1)*(s[a]-r[a]+S)}const b={[a]:i,[Y]:s?s[Y]:0};if(isNaN($[a])||isNaN($[Y]))fe(b);else{const S=Math.abs($[a]-b[a]),E=Math.abs($[Y]-b[Y]);(S>=1||E>=1)&&fe(b)}}),ae=(r,{animation:s=!0}={})=>{s?uo(X,M.current,r,{duration:c.transitions.duration.standard}):M.current[X]=r},Pe=r=>{let s=M.current[X];C?s+=r:(s+=r*(d?-1:1),s*=d&&Ne()==="reverse"?-1:1),ae(s)},me=()=>{const r=M.current[ce];let s=0;const i=Array.from(F.current.children);for(let a=0;a<i.length;a+=1){const b=i[a];if(s+b[ce]>r){a===0&&(s=r);break}s+=b[ce]}return s},Xe=()=>{Pe(-1*me())},Ye=()=>{Pe(me())},Ke=p.useCallback(r=>{Ve({overflow:null,scrollbarWidth:r})},[]),Ge=()=>{const r={};r.scrollbarSizeListener=g?h.jsx(Io,{onChange:Ke,className:e.clsx(W.scrollableX,W.hideScrollbar)}):null;const i=g&&(O==="auto"&&(ye||he)||O===!0);return r.scrollButtonStart=i?h.jsx(A,e._extends({slots:{StartScrollButtonIcon:U.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Fe},orientation:m,direction:d?"right":"left",onClick:Xe,disabled:!ye},L,{className:e.clsx(W.scrollButtons,L.className)})):null,r.scrollButtonEnd=i?h.jsx(A,e._extends({slots:{EndScrollButtonIcon:U.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:De},orientation:m,direction:d?"left":"right",onClick:Ye,disabled:!he},L,{className:e.clsx(W.scrollButtons,L.className)})):null,r},xe=ue.useEventCallback(r=>{const{tabsMeta:s,tabMeta:i}=Se();if(!(!i||!s)){if(i[Z]<s[Z]){const a=s[X]+(i[Z]-s[Z]);ae(a,{animation:r})}else if(i[ee]>s[ee]){const a=s[X]+(i[ee]-s[ee]);ae(a,{animation:r})}}}),te=ue.useEventCallback(()=>{g&&O!==!1&&He(!Te)});p.useEffect(()=>{const r=J.debounce(()=>{M.current&&K()});let s;const i=S=>{S.forEach(E=>{E.removedNodes.forEach(G=>{var j;(j=s)==null||j.unobserve(G)}),E.addedNodes.forEach(G=>{var j;(j=s)==null||j.observe(G)})}),r(),te()},a=J.ownerWindow(M.current);a.addEventListener("resize",r);let b;return typeof ResizeObserver<"u"&&(s=new ResizeObserver(r),Array.from(F.current.children).forEach(S=>{s.observe(S)})),typeof MutationObserver<"u"&&(b=new MutationObserver(i),b.observe(F.current,{childList:!0})),()=>{var S,E;r.clear(),a.removeEventListener("resize",r),(S=b)==null||S.disconnect(),(E=s)==null||E.disconnect()}},[K,te]),p.useEffect(()=>{const r=Array.from(F.current.children),s=r.length;if(typeof IntersectionObserver<"u"&&s>0&&g&&O!==!1){const i=r[0],a=r[s-1],b={root:M.current,threshold:.99},S=pe=>{Ue(!pe[0].isIntersecting)},E=new IntersectionObserver(S,b);E.observe(i);const G=pe=>{qe(!pe[0].isIntersecting)},j=new IntersectionObserver(G,b);return j.observe(a),()=>{E.disconnect(),j.disconnect()}}},[g,O,Te,B==null?void 0:B.length]),p.useEffect(()=>{Ae(!0)},[]),p.useEffect(()=>{K()}),p.useEffect(()=>{xe(we!==$)},[xe,$]),p.useImperativeHandle(u,()=>({updateIndicator:K,updateScrollButtons:te}),[K,te]);const ge=h.jsx(wo,e._extends({},q,{className:e.clsx(W.indicator,q.className),ownerState:k,style:e._extends({},$,q.style)}));let re=0;const Je=p.Children.map(B,r=>{if(!p.isValidElement(r))return null;process.env.NODE_ENV!=="production"&&P.reactIsExports.isFragment(r)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
4
|
+
`));const s=r.props.value===void 0?re:r.props.value;oe.set(s,re);const i=s===_;return re+=1,p.cloneElement(r,e._extends({fullWidth:N==="fullWidth",indicator:i&&!be&&ge,selected:i,selectionFollowsFocus:le,onChange:I,textColor:Q,value:s},re===1&&_===!1&&!r.props.tabIndex?{tabIndex:0}:{}))}),Qe=r=>{const s=F.current,i=J.ownerDocument(s).activeElement;if(i.getAttribute("role")!=="tab")return;let b=m==="horizontal"?"ArrowLeft":"ArrowUp",S=m==="horizontal"?"ArrowRight":"ArrowDown";switch(m==="horizontal"&&d&&(b="ArrowRight",S="ArrowLeft"),r.key){case b:r.preventDefault(),se(s,i,Be);break;case S:r.preventDefault(),se(s,i,Ce);break;case"Home":r.preventDefault(),se(s,null,Ce);break;case"End":r.preventDefault(),se(s,null,Be);break}},de=Ge();return h.jsxs(go,e._extends({className:e.clsx(W.root,x),ownerState:k,ref:n,as:v},$e,{children:[de.scrollButtonStart,de.scrollbarSizeListener,h.jsxs(Co,{className:W.scroller,ownerState:k,style:{overflow:ve.overflow,[C?`margin${d?"Left":"Right"}`:"marginBottom"]:ie?void 0:-ve.scrollbarWidth},ref:M,children:[h.jsx(Bo,{"aria-label":y,"aria-labelledby":f,"aria-orientation":m==="vertical"?"vertical":null,className:W.flexContainer,ownerState:k,onKeyDown:Qe,ref:F,role:"tablist",children:Je}),be&&ge]}),de.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(ke.propTypes={action:to.refType,allowScrollButtonsMobile:e.PropTypes.bool,"aria-label":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,centered:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,indicatorColor:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary"]),e.PropTypes.string]),onChange:e.PropTypes.func,orientation:e.PropTypes.oneOf(["horizontal","vertical"]),ScrollButtonComponent:e.PropTypes.elementType,scrollButtons:e.PropTypes.oneOf(["auto",!1,!0]),selectionFollowsFocus:e.PropTypes.bool,slotProps:e.PropTypes.shape({endScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),startScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({EndScrollButtonIcon:e.PropTypes.elementType,StartScrollButtonIcon:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),TabIndicatorProps:e.PropTypes.object,TabScrollButtonProps:e.PropTypes.object,textColor:e.PropTypes.oneOf(["inherit","primary","secondary"]),value:e.PropTypes.any,variant:e.PropTypes.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:e.PropTypes.bool});const Eo=ke;exports.KeyboardArrowLeft=_e;exports.KeyboardArrowRight=We;exports.Tab=ao;exports.Tabs=Eo;exports.getTabUtilityClass=Me;exports.getTabsUtilityClass=Le;exports.tabClasses=R;exports.tabsClasses=ne;
|