@cgi-learning-hub/ui 1.0.0-dev.1721824898 → 1.0.0-dev.1721914990
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-vGRO-On_.js → Box-BwHGDK_A.js} +10 -10
- package/dist/Button-BF7P0rje.js +359 -0
- package/dist/Button-BtjHaBJr.cjs +1 -0
- package/dist/{ButtonBase-vONl_zxO.js → ButtonBase-CWCHPphi.js} +36 -36
- package/dist/{CircularProgress-BDwTzcEn.js → CircularProgress-C_9OsPYJ.js} +17 -17
- package/dist/DatePicker-BE1RETq3.cjs +19 -0
- package/dist/DatePicker-DXoI-rbr.js +12663 -0
- package/dist/DefaultButton-AlqYHpLl.js +258 -0
- package/dist/DefaultButton-BfVdIzrl.cjs +1 -0
- package/dist/{IconButton-Ctm1Peef.js → IconButton-De3-6K2r.js} +7 -7
- package/dist/{SearchInput-Clr0qHPm.js → InputAdornment-CdamqNqi.js} +55 -87
- package/dist/InputAdornment-UyNuc0Mc.cjs +1 -0
- package/dist/{InputBase-Dqfior4W.js → InputBase-DYf00QVg.js} +25 -25
- package/dist/Stack-D1lCED40.cjs +1 -0
- package/dist/Stack-DIH86N4F.js +172 -0
- package/dist/{Tabs-D-RPVuW4.js → Tabs-D1zibo7D.js} +118 -131
- package/dist/Tabs-DZDo7UqF.cjs +4 -0
- package/dist/{TextInput-BxI4zwrY.js → TextField-BAVYnvQj.js} +411 -414
- package/dist/{TextInput-Ba5ly1H9.cjs → TextField-CH-kzN1l.cjs} +11 -11
- package/dist/Tooltip-BEg5oYwE.js +7463 -0
- package/dist/Tooltip-DppWsdRm.cjs +95 -0
- package/dist/{Typography-Cl3kH-A8.js → Typography-CbZkNGSr.js} +11 -11
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- 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.es.js +2 -2
- 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.es.js +2 -2
- 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.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.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.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.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -5
- package/dist/components/index.es.js +269 -278
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +18 -16
- 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.es.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 +16 -15
- 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-BwGNMrhW.js → createSvgIcon-B6V0jwwg.js} +5 -5
- package/dist/{createSvgIcon-Blbo0WDd.js → createSvgIcon-CGvnINlY.js} +15 -15
- package/dist/fr-BWMVjh4G.js +307 -0
- package/dist/fr-CzL4IYLw.cjs +1 -0
- package/dist/{identifier-wKuu0zOr.js → identifier-C_DzvlWx.js} +24 -24
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +270 -279
- package/dist/{refType-Bqz8QGtc.js → refType-KXZNSMpq.js} +1 -1
- package/dist/{styled-CFCmdTd8.js → styled-DCjqF2JO.js} +29 -29
- package/dist/{useTheme-DWyCcDbs.js → useTheme-8G-WLfhQ.js} +7 -7
- package/dist/{useTheme-D5vjhuQC.js → useTheme-D2TR379g.js} +1 -1
- package/dist/useThemeProps-DhHzyU0Y.cjs +1 -0
- package/dist/useThemeProps-DjJkz40D.js +17 -0
- package/dist/{useThemeProps-CZSYSmRG.js → useThemeProps-fXKB99fl.js} +2 -2
- package/package.json +1 -1
- package/dist/DefaultButton-BD1TIeNP.js +0 -604
- package/dist/DefaultButton-DV0j1bMY.cjs +0 -1
- package/dist/SearchInput-CruiB2CO.cjs +0 -1
- package/dist/Stack-CwklSaeG.js +0 -308
- package/dist/Stack-v4g12Xre.cjs +0 -1
- package/dist/Tabs-CLr003cV.cjs +0 -4
- package/dist/TimePicker-DK-Q99ep.js +0 -26252
- package/dist/TimePicker-DYEkxpHp.cjs +0 -113
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as it, k as Se, m as ye, n as Le, _ as b, s as ae, t as k, P as o } from "./identifier-wKuu0zOr.js";
|
|
3
|
-
import { u as ct } from "./useThemeProps-CZSYSmRG.js";
|
|
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";
|
|
4
2
|
import * as u from "react";
|
|
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-
|
|
7
|
-
import { u as
|
|
8
|
-
import { a as
|
|
9
|
-
import { u as
|
|
10
|
-
import { a as
|
|
5
|
+
import { B as ke } from "./ButtonBase-CWCHPphi.js";
|
|
6
|
+
import { u as at } from "./unsupportedProp-BuVD30Gh.js";
|
|
7
|
+
import { a as Fe, b as se, u as it } from "./useTheme-8G-WLfhQ.js";
|
|
8
|
+
import { u as ct } from "./useForkRef-DwN_Iz9R.js";
|
|
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
|
|
13
|
-
import { c as
|
|
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)
|
|
@@ -18,7 +17,7 @@ function je() {
|
|
|
18
17
|
const e = document.createElement("div"), t = document.createElement("div");
|
|
19
18
|
return t.style.width = "10px", t.style.height = "1px", e.appendChild(t), e.dir = "rtl", e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute", e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e), X = "reverse", e.scrollLeft > 0 ? X = "default" : (e.scrollLeft = 1, e.scrollLeft === 0 && (X = "negative")), document.body.removeChild(e), X;
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function pt(e, t) {
|
|
22
21
|
const n = e.scrollLeft;
|
|
23
22
|
if (t !== "rtl")
|
|
24
23
|
return n;
|
|
@@ -31,21 +30,10 @@ function ht(e, t) {
|
|
|
31
30
|
return n;
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
name: t
|
|
37
|
-
}) {
|
|
38
|
-
return ct({
|
|
39
|
-
props: e,
|
|
40
|
-
name: t,
|
|
41
|
-
defaultTheme: st,
|
|
42
|
-
themeId: it
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function mt(e) {
|
|
46
|
-
return Se("MuiTab", e);
|
|
33
|
+
function ft(e) {
|
|
34
|
+
return me("MuiTab", e);
|
|
47
35
|
}
|
|
48
|
-
const
|
|
36
|
+
const bt = ve("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]), L = bt, ht = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"], mt = (e) => {
|
|
49
37
|
const {
|
|
50
38
|
classes: t,
|
|
51
39
|
textColor: n,
|
|
@@ -59,8 +47,8 @@ const vt = ye("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
59
47
|
root: ["root", d && m && "labelIcon", `textColor${Le(n)}`, c && "fullWidth", i && "wrapped", h && "selected", p && "disabled"],
|
|
60
48
|
iconWrapper: ["iconWrapper"]
|
|
61
49
|
};
|
|
62
|
-
return
|
|
63
|
-
},
|
|
50
|
+
return ye(y, ft, t);
|
|
51
|
+
}, vt = _(ke, {
|
|
64
52
|
name: "MuiTab",
|
|
65
53
|
slot: "Root",
|
|
66
54
|
overridesResolver: (e, t) => {
|
|
@@ -135,7 +123,7 @@ const vt = ye("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
135
123
|
}, t.wrapped && {
|
|
136
124
|
fontSize: e.typography.pxToRem(12)
|
|
137
125
|
})), _e = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
138
|
-
const c =
|
|
126
|
+
const c = Se({
|
|
139
127
|
props: t,
|
|
140
128
|
name: "MuiTab"
|
|
141
129
|
}), {
|
|
@@ -151,16 +139,16 @@ const vt = ye("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
151
139
|
label: T,
|
|
152
140
|
onChange: v,
|
|
153
141
|
onClick: I,
|
|
154
|
-
onFocus:
|
|
142
|
+
onFocus: F,
|
|
155
143
|
// eslint-disable-next-line react/prop-types
|
|
156
144
|
selected: E,
|
|
157
145
|
// eslint-disable-next-line react/prop-types
|
|
158
146
|
selectionFollowsFocus: g,
|
|
159
147
|
// eslint-disable-next-line react/prop-types
|
|
160
148
|
textColor: H = "inherit",
|
|
161
|
-
value:
|
|
149
|
+
value: N,
|
|
162
150
|
wrapped: ie = !1
|
|
163
|
-
} = c, V = ae(c,
|
|
151
|
+
} = c, V = ae(c, ht), Y = b({}, c, {
|
|
164
152
|
disabled: d,
|
|
165
153
|
disableFocusRipple: m,
|
|
166
154
|
selected: E,
|
|
@@ -170,14 +158,14 @@ const vt = ye("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
170
158
|
fullWidth: h,
|
|
171
159
|
textColor: H,
|
|
172
160
|
wrapped: ie
|
|
173
|
-
}), U =
|
|
161
|
+
}), U = mt(Y), $ = p && T && /* @__PURE__ */ u.isValidElement(p) ? /* @__PURE__ */ u.cloneElement(p, {
|
|
174
162
|
className: k(U.iconWrapper, p.props.className)
|
|
175
|
-
}) : p, Z = (
|
|
176
|
-
!E && v && v(
|
|
177
|
-
}, P = (
|
|
178
|
-
g && !E && v && v(
|
|
163
|
+
}) : p, Z = (M) => {
|
|
164
|
+
!E && v && v(M, N), I && I(M);
|
|
165
|
+
}, P = (M) => {
|
|
166
|
+
g && !E && v && v(M, N), F && F(M);
|
|
179
167
|
};
|
|
180
|
-
return /* @__PURE__ */ Q(
|
|
168
|
+
return /* @__PURE__ */ Q(vt, b({
|
|
181
169
|
focusRipple: !m,
|
|
182
170
|
className: k(U.root, i),
|
|
183
171
|
ref: n,
|
|
@@ -190,9 +178,9 @@ const vt = ye("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
190
178
|
tabIndex: E ? 0 : -1
|
|
191
179
|
}, V, {
|
|
192
180
|
children: [y === "top" || y === "start" ? /* @__PURE__ */ Q(u.Fragment, {
|
|
193
|
-
children: [
|
|
181
|
+
children: [$, T]
|
|
194
182
|
}) : /* @__PURE__ */ Q(u.Fragment, {
|
|
195
|
-
children: [T,
|
|
183
|
+
children: [T, $]
|
|
196
184
|
}), w]
|
|
197
185
|
}));
|
|
198
186
|
});
|
|
@@ -205,7 +193,7 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
|
205
193
|
* This prop isn't supported.
|
|
206
194
|
* Use the `component` prop if you need to change the children structure.
|
|
207
195
|
*/
|
|
208
|
-
children:
|
|
196
|
+
children: at,
|
|
209
197
|
/**
|
|
210
198
|
* Override or extend the styles applied to the component.
|
|
211
199
|
*/
|
|
@@ -272,18 +260,18 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
|
272
260
|
*/
|
|
273
261
|
wrapped: o.bool
|
|
274
262
|
});
|
|
275
|
-
const
|
|
263
|
+
const qt = _e, St = De(/* @__PURE__ */ C("path", {
|
|
276
264
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
277
|
-
}), "KeyboardArrowLeft"),
|
|
265
|
+
}), "KeyboardArrowLeft"), yt = De(/* @__PURE__ */ C("path", {
|
|
278
266
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
279
267
|
}), "KeyboardArrowRight");
|
|
280
|
-
function
|
|
268
|
+
function gt(e) {
|
|
281
269
|
return (1 + Math.sin(Math.PI * e - Math.PI / 2)) / 2;
|
|
282
270
|
}
|
|
283
|
-
function
|
|
271
|
+
function Tt(e, t, n, c = {}, i = () => {
|
|
284
272
|
}) {
|
|
285
273
|
const {
|
|
286
|
-
ease: d =
|
|
274
|
+
ease: d = gt,
|
|
287
275
|
duration: m = 300
|
|
288
276
|
// standard
|
|
289
277
|
} = c;
|
|
@@ -309,7 +297,7 @@ function Ct(e, t, n, c = {}, i = () => {
|
|
|
309
297
|
};
|
|
310
298
|
return p === n ? (i(new Error("Element already at target position")), w) : (requestAnimationFrame(T), w);
|
|
311
299
|
}
|
|
312
|
-
const
|
|
300
|
+
const xt = ["onChange"], Bt = {
|
|
313
301
|
width: 99,
|
|
314
302
|
height: 99,
|
|
315
303
|
position: "absolute",
|
|
@@ -319,40 +307,40 @@ const wt = ["onChange"], It = {
|
|
|
319
307
|
function He(e) {
|
|
320
308
|
const {
|
|
321
309
|
onChange: t
|
|
322
|
-
} = e, n = ae(e,
|
|
310
|
+
} = e, n = ae(e, xt), c = u.useRef(), i = u.useRef(null), d = () => {
|
|
323
311
|
c.current = i.current.offsetHeight - i.current.clientHeight;
|
|
324
312
|
};
|
|
325
|
-
return
|
|
326
|
-
const m =
|
|
313
|
+
return ct(() => {
|
|
314
|
+
const m = Ae(() => {
|
|
327
315
|
const p = c.current;
|
|
328
316
|
d(), p !== c.current && t(c.current);
|
|
329
|
-
}), h =
|
|
317
|
+
}), h = $e(i.current);
|
|
330
318
|
return h.addEventListener("resize", m), () => {
|
|
331
319
|
m.clear(), h.removeEventListener("resize", m);
|
|
332
320
|
};
|
|
333
321
|
}, [t]), u.useEffect(() => {
|
|
334
322
|
d(), t(c.current);
|
|
335
323
|
}, [t]), /* @__PURE__ */ C("div", b({
|
|
336
|
-
style:
|
|
324
|
+
style: Bt,
|
|
337
325
|
ref: i
|
|
338
326
|
}, n));
|
|
339
327
|
}
|
|
340
328
|
process.env.NODE_ENV !== "production" && (He.propTypes = {
|
|
341
329
|
onChange: o.func.isRequired
|
|
342
330
|
});
|
|
343
|
-
function
|
|
344
|
-
return
|
|
331
|
+
function Ct(e) {
|
|
332
|
+
return me("MuiTabScrollButton", e);
|
|
345
333
|
}
|
|
346
|
-
const
|
|
334
|
+
const wt = ve("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), It = ["className", "slots", "slotProps", "direction", "orientation", "disabled"], Et = (e) => {
|
|
347
335
|
const {
|
|
348
336
|
classes: t,
|
|
349
337
|
orientation: n,
|
|
350
338
|
disabled: c
|
|
351
339
|
} = e;
|
|
352
|
-
return
|
|
340
|
+
return ye({
|
|
353
341
|
root: ["root", n, c && "disabled"]
|
|
354
|
-
},
|
|
355
|
-
},
|
|
342
|
+
}, Ct, t);
|
|
343
|
+
}, Ot = _(ke, {
|
|
356
344
|
name: "MuiTabScrollButton",
|
|
357
345
|
slot: "Root",
|
|
358
346
|
overridesResolver: (e, t) => {
|
|
@@ -367,7 +355,7 @@ const Ot = ye("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
367
355
|
width: 40,
|
|
368
356
|
flexShrink: 0,
|
|
369
357
|
opacity: 0.8,
|
|
370
|
-
[`&.${
|
|
358
|
+
[`&.${wt.disabled}`]: {
|
|
371
359
|
opacity: 0
|
|
372
360
|
}
|
|
373
361
|
}, e.orientation === "vertical" && {
|
|
@@ -378,7 +366,7 @@ const Ot = ye("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
378
366
|
}
|
|
379
367
|
})), Ve = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
380
368
|
var c, i;
|
|
381
|
-
const d =
|
|
369
|
+
const d = Se({
|
|
382
370
|
props: t,
|
|
383
371
|
name: "MuiTabScrollButton"
|
|
384
372
|
}), {
|
|
@@ -386,10 +374,10 @@ const Ot = ye("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
386
374
|
slots: h = {},
|
|
387
375
|
slotProps: p = {},
|
|
388
376
|
direction: y
|
|
389
|
-
} = d, w = ae(d,
|
|
377
|
+
} = d, w = ae(d, It), T = Fe(), v = b({
|
|
390
378
|
isRtl: T
|
|
391
|
-
}, d), I =
|
|
392
|
-
elementType:
|
|
379
|
+
}, d), I = Et(v), F = (c = h.StartScrollButtonIcon) != null ? c : St, E = (i = h.EndScrollButtonIcon) != null ? i : yt, g = se({
|
|
380
|
+
elementType: F,
|
|
393
381
|
externalSlotProps: p.startScrollButtonIcon,
|
|
394
382
|
additionalProps: {
|
|
395
383
|
fontSize: "small"
|
|
@@ -403,7 +391,7 @@ const Ot = ye("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
403
391
|
},
|
|
404
392
|
ownerState: v
|
|
405
393
|
});
|
|
406
|
-
return /* @__PURE__ */ C(
|
|
394
|
+
return /* @__PURE__ */ C(Ot, b({
|
|
407
395
|
component: "div",
|
|
408
396
|
className: k(I.root, m),
|
|
409
397
|
ref: n,
|
|
@@ -411,7 +399,7 @@ const Ot = ye("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
411
399
|
ownerState: v,
|
|
412
400
|
tabIndex: null
|
|
413
401
|
}, w, {
|
|
414
|
-
children: y === "left" ? /* @__PURE__ */ C(
|
|
402
|
+
children: y === "left" ? /* @__PURE__ */ C(F, b({}, g)) : /* @__PURE__ */ C(E, b({}, H))
|
|
415
403
|
}));
|
|
416
404
|
});
|
|
417
405
|
process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
@@ -466,10 +454,10 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
466
454
|
*/
|
|
467
455
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
468
456
|
});
|
|
469
|
-
function
|
|
470
|
-
return
|
|
457
|
+
function Nt(e) {
|
|
458
|
+
return me("MuiTabs", e);
|
|
471
459
|
}
|
|
472
|
-
const
|
|
460
|
+
const Mt = ve("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), he = Mt, Rt = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], Re = (e, t) => e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : e.firstChild, Pe = (e, t) => e === t ? e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : e.lastChild, ne = (e, t, n) => {
|
|
473
461
|
let c = !1, i = n(e, t);
|
|
474
462
|
for (; i; ) {
|
|
475
463
|
if (i === e.firstChild) {
|
|
@@ -485,7 +473,7 @@ const Wt = ye("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
485
473
|
return;
|
|
486
474
|
}
|
|
487
475
|
}
|
|
488
|
-
},
|
|
476
|
+
}, Pt = (e) => {
|
|
489
477
|
const {
|
|
490
478
|
vertical: t,
|
|
491
479
|
fixed: n,
|
|
@@ -496,7 +484,7 @@ const Wt = ye("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
496
484
|
scrollButtonsHideMobile: h,
|
|
497
485
|
classes: p
|
|
498
486
|
} = e;
|
|
499
|
-
return
|
|
487
|
+
return ye({
|
|
500
488
|
root: ["root", t && "vertical"],
|
|
501
489
|
scroller: ["scroller", n && "fixed", c && "hideScrollbar", i && "scrollableX", d && "scrollableY"],
|
|
502
490
|
flexContainer: ["flexContainer", t && "flexContainerVertical", m && "centered"],
|
|
@@ -504,8 +492,8 @@ const Wt = ye("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
504
492
|
scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
|
|
505
493
|
scrollableX: [i && "scrollableX"],
|
|
506
494
|
hideScrollbar: [c && "hideScrollbar"]
|
|
507
|
-
},
|
|
508
|
-
},
|
|
495
|
+
}, Nt, p);
|
|
496
|
+
}, Wt = _("div", {
|
|
509
497
|
name: "MuiTabs",
|
|
510
498
|
slot: "Root",
|
|
511
499
|
overridesResolver: (e, t) => {
|
|
@@ -535,7 +523,7 @@ const Wt = ye("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
535
523
|
display: "none"
|
|
536
524
|
}
|
|
537
525
|
}
|
|
538
|
-
})),
|
|
526
|
+
})), zt = _("div", {
|
|
539
527
|
name: "MuiTabs",
|
|
540
528
|
slot: "Scroller",
|
|
541
529
|
overridesResolver: (e, t) => {
|
|
@@ -568,7 +556,7 @@ const Wt = ye("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
568
556
|
}, e.scrollableY && {
|
|
569
557
|
overflowY: "auto",
|
|
570
558
|
overflowX: "hidden"
|
|
571
|
-
})),
|
|
559
|
+
})), Lt = _("div", {
|
|
572
560
|
name: "MuiTabs",
|
|
573
561
|
slot: "FlexContainer",
|
|
574
562
|
overridesResolver: (e, t) => {
|
|
@@ -585,7 +573,7 @@ const Wt = ye("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
585
573
|
flexDirection: "column"
|
|
586
574
|
}, e.centered && {
|
|
587
575
|
justifyContent: "center"
|
|
588
|
-
})),
|
|
576
|
+
})), kt = _("span", {
|
|
589
577
|
name: "MuiTabs",
|
|
590
578
|
slot: "Indicator",
|
|
591
579
|
overridesResolver: (e, t) => t.indicator
|
|
@@ -606,7 +594,7 @@ const Wt = ye("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
606
594
|
height: "100%",
|
|
607
595
|
width: 2,
|
|
608
596
|
right: 0
|
|
609
|
-
})),
|
|
597
|
+
})), Ft = _(He)({
|
|
610
598
|
overflowX: "auto",
|
|
611
599
|
overflowY: "hidden",
|
|
612
600
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -619,10 +607,10 @@ const Wt = ye("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
619
607
|
}), We = {};
|
|
620
608
|
let ze = !1;
|
|
621
609
|
const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
622
|
-
const c =
|
|
610
|
+
const c = Se({
|
|
623
611
|
props: t,
|
|
624
612
|
name: "MuiTabs"
|
|
625
|
-
}), i =
|
|
613
|
+
}), i = it(), d = Fe(), {
|
|
626
614
|
"aria-label": m,
|
|
627
615
|
"aria-labelledby": h,
|
|
628
616
|
action: p,
|
|
@@ -631,29 +619,29 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
631
619
|
className: T,
|
|
632
620
|
component: v = "div",
|
|
633
621
|
allowScrollButtonsMobile: I = !1,
|
|
634
|
-
indicatorColor:
|
|
622
|
+
indicatorColor: F = "primary",
|
|
635
623
|
onChange: E,
|
|
636
624
|
orientation: g = "horizontal",
|
|
637
625
|
ScrollButtonComponent: H = Ve,
|
|
638
|
-
scrollButtons:
|
|
626
|
+
scrollButtons: N = "auto",
|
|
639
627
|
selectionFollowsFocus: ie,
|
|
640
628
|
slots: V = {},
|
|
641
629
|
slotProps: Y = {},
|
|
642
630
|
TabIndicatorProps: U = {},
|
|
643
|
-
TabScrollButtonProps:
|
|
631
|
+
TabScrollButtonProps: $ = {},
|
|
644
632
|
textColor: Z = "primary",
|
|
645
633
|
value: P,
|
|
646
|
-
variant:
|
|
634
|
+
variant: M = "standard",
|
|
647
635
|
visibleScrollbar: ce = !1
|
|
648
|
-
} = c, Xe = ae(c,
|
|
636
|
+
} = c, Xe = ae(c, Rt), x = M === "scrollable", B = g === "vertical", K = B ? "scrollTop" : "scrollLeft", ee = B ? "top" : "left", te = B ? "bottom" : "right", de = B ? "clientHeight" : "clientWidth", q = B ? "height" : "width", A = b({}, c, {
|
|
649
637
|
component: v,
|
|
650
638
|
allowScrollButtonsMobile: I,
|
|
651
|
-
indicatorColor:
|
|
639
|
+
indicatorColor: F,
|
|
652
640
|
orientation: g,
|
|
653
641
|
vertical: B,
|
|
654
|
-
scrollButtons:
|
|
642
|
+
scrollButtons: N,
|
|
655
643
|
textColor: Z,
|
|
656
|
-
variant:
|
|
644
|
+
variant: M,
|
|
657
645
|
visibleScrollbar: ce,
|
|
658
646
|
fixed: !x,
|
|
659
647
|
hideScrollbar: x && !ce,
|
|
@@ -661,17 +649,17 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
661
649
|
scrollableY: x && B,
|
|
662
650
|
centered: y && !x,
|
|
663
651
|
scrollButtonsHideMobile: !I
|
|
664
|
-
}), W =
|
|
652
|
+
}), W = Pt(A), Ye = se({
|
|
665
653
|
elementType: V.StartScrollButtonIcon,
|
|
666
654
|
externalSlotProps: Y.startScrollButtonIcon,
|
|
667
|
-
ownerState:
|
|
655
|
+
ownerState: A
|
|
668
656
|
}), Ke = se({
|
|
669
657
|
elementType: V.EndScrollButtonIcon,
|
|
670
658
|
externalSlotProps: Y.endScrollButtonIcon,
|
|
671
|
-
ownerState:
|
|
659
|
+
ownerState: A
|
|
672
660
|
});
|
|
673
661
|
process.env.NODE_ENV !== "production" && y && x && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
|
674
|
-
const [ge, qe] = u.useState(!1), [
|
|
662
|
+
const [ge, qe] = u.useState(!1), [D, Te] = u.useState(We), [xe, Ge] = u.useState(!1), [Be, Je] = u.useState(!1), [Ce, Qe] = u.useState(!1), [we, Ze] = u.useState({
|
|
675
663
|
overflow: "hidden",
|
|
676
664
|
scrollbarWidth: 0
|
|
677
665
|
}), oe = /* @__PURE__ */ new Map(), R = u.useRef(null), j = u.useRef(null), Ie = () => {
|
|
@@ -683,7 +671,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
683
671
|
clientWidth: r.clientWidth,
|
|
684
672
|
scrollLeft: r.scrollLeft,
|
|
685
673
|
scrollTop: r.scrollTop,
|
|
686
|
-
scrollLeftNormalized:
|
|
674
|
+
scrollLeftNormalized: pt(r, d ? "rtl" : "ltr"),
|
|
687
675
|
scrollWidth: r.scrollWidth,
|
|
688
676
|
top: a.top,
|
|
689
677
|
bottom: a.bottom,
|
|
@@ -723,16 +711,16 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
723
711
|
// May be wrong until the font is loaded.
|
|
724
712
|
[q]: l ? l[q] : 0
|
|
725
713
|
};
|
|
726
|
-
if (isNaN(
|
|
714
|
+
if (isNaN(D[a]) || isNaN(D[q]))
|
|
727
715
|
Te(f);
|
|
728
716
|
else {
|
|
729
|
-
const S = Math.abs(
|
|
717
|
+
const S = Math.abs(D[a] - f[a]), O = Math.abs(D[q] - f[q]);
|
|
730
718
|
(S >= 1 || O >= 1) && Te(f);
|
|
731
719
|
}
|
|
732
720
|
}), ue = (r, {
|
|
733
721
|
animation: l = !0
|
|
734
722
|
} = {}) => {
|
|
735
|
-
l ?
|
|
723
|
+
l ? Tt(K, R.current, r, {
|
|
736
724
|
duration: i.transitions.duration.standard
|
|
737
725
|
}) : R.current[K] = r;
|
|
738
726
|
}, Ee = (r) => {
|
|
@@ -762,11 +750,11 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
762
750
|
});
|
|
763
751
|
}, []), rt = () => {
|
|
764
752
|
const r = {};
|
|
765
|
-
r.scrollbarSizeListener = x ? /* @__PURE__ */ C(
|
|
753
|
+
r.scrollbarSizeListener = x ? /* @__PURE__ */ C(Ft, {
|
|
766
754
|
onChange: ot,
|
|
767
755
|
className: k(W.scrollableX, W.hideScrollbar)
|
|
768
756
|
}) : null;
|
|
769
|
-
const s = x && (
|
|
757
|
+
const s = x && (N === "auto" && (xe || Be) || N === !0);
|
|
770
758
|
return r.scrollButtonStart = s ? /* @__PURE__ */ C(H, b({
|
|
771
759
|
slots: {
|
|
772
760
|
StartScrollButtonIcon: V.StartScrollButtonIcon
|
|
@@ -778,8 +766,8 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
778
766
|
direction: d ? "right" : "left",
|
|
779
767
|
onClick: et,
|
|
780
768
|
disabled: !xe
|
|
781
|
-
},
|
|
782
|
-
className: k(W.scrollButtons,
|
|
769
|
+
}, $, {
|
|
770
|
+
className: k(W.scrollButtons, $.className)
|
|
783
771
|
})) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ C(H, b({
|
|
784
772
|
slots: {
|
|
785
773
|
EndScrollButtonIcon: V.EndScrollButtonIcon
|
|
@@ -791,10 +779,10 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
791
779
|
direction: d ? "left" : "right",
|
|
792
780
|
onClick: tt,
|
|
793
781
|
disabled: !Be
|
|
794
|
-
},
|
|
795
|
-
className: k(W.scrollButtons,
|
|
782
|
+
}, $, {
|
|
783
|
+
className: k(W.scrollButtons, $.className)
|
|
796
784
|
})) : null, r;
|
|
797
|
-
},
|
|
785
|
+
}, Ne = be((r) => {
|
|
798
786
|
const {
|
|
799
787
|
tabsMeta: l,
|
|
800
788
|
tabMeta: s
|
|
@@ -813,10 +801,10 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
813
801
|
}
|
|
814
802
|
}
|
|
815
803
|
}), re = be(() => {
|
|
816
|
-
x &&
|
|
804
|
+
x && N !== !1 && Qe(!Ce);
|
|
817
805
|
});
|
|
818
806
|
u.useEffect(() => {
|
|
819
|
-
const r =
|
|
807
|
+
const r = Ae(() => {
|
|
820
808
|
R.current && G();
|
|
821
809
|
});
|
|
822
810
|
let l;
|
|
@@ -830,7 +818,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
830
818
|
(z = l) == null || z.observe(J);
|
|
831
819
|
});
|
|
832
820
|
}), r(), re();
|
|
833
|
-
}, a =
|
|
821
|
+
}, a = $e(R.current);
|
|
834
822
|
a.addEventListener("resize", r);
|
|
835
823
|
let f;
|
|
836
824
|
return typeof ResizeObserver < "u" && (l = new ResizeObserver(r), Array.from(j.current.children).forEach((S) => {
|
|
@@ -843,7 +831,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
843
831
|
};
|
|
844
832
|
}, [G, re]), u.useEffect(() => {
|
|
845
833
|
const r = Array.from(j.current.children), l = r.length;
|
|
846
|
-
if (typeof IntersectionObserver < "u" && l > 0 && x &&
|
|
834
|
+
if (typeof IntersectionObserver < "u" && l > 0 && x && N !== !1) {
|
|
847
835
|
const s = r[0], a = r[l - 1], f = {
|
|
848
836
|
root: R.current,
|
|
849
837
|
threshold: 0.99
|
|
@@ -858,33 +846,33 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
858
846
|
O.disconnect(), z.disconnect();
|
|
859
847
|
};
|
|
860
848
|
}
|
|
861
|
-
}, [x,
|
|
849
|
+
}, [x, N, Ce, w == null ? void 0 : w.length]), u.useEffect(() => {
|
|
862
850
|
qe(!0);
|
|
863
851
|
}, []), u.useEffect(() => {
|
|
864
852
|
G();
|
|
865
853
|
}), u.useEffect(() => {
|
|
866
|
-
|
|
867
|
-
}, [
|
|
854
|
+
Ne(We !== D);
|
|
855
|
+
}, [Ne, D]), u.useImperativeHandle(p, () => ({
|
|
868
856
|
updateIndicator: G,
|
|
869
857
|
updateScrollButtons: re
|
|
870
858
|
}), [G, re]);
|
|
871
|
-
const
|
|
859
|
+
const Me = /* @__PURE__ */ C(kt, b({}, U, {
|
|
872
860
|
className: k(W.indicator, U.className),
|
|
873
|
-
ownerState:
|
|
874
|
-
style: b({},
|
|
861
|
+
ownerState: A,
|
|
862
|
+
style: b({}, D, U.style)
|
|
875
863
|
}));
|
|
876
864
|
let le = 0;
|
|
877
865
|
const lt = u.Children.map(w, (r) => {
|
|
878
866
|
if (!/* @__PURE__ */ u.isValidElement(r))
|
|
879
867
|
return null;
|
|
880
|
-
process.env.NODE_ENV !== "production" &&
|
|
868
|
+
process.env.NODE_ENV !== "production" && st.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
881
869
|
`));
|
|
882
870
|
const l = r.props.value === void 0 ? le : r.props.value;
|
|
883
871
|
oe.set(l, le);
|
|
884
872
|
const s = l === P;
|
|
885
873
|
return le += 1, /* @__PURE__ */ u.cloneElement(r, b({
|
|
886
|
-
fullWidth:
|
|
887
|
-
indicator: s && !ge &&
|
|
874
|
+
fullWidth: M === "fullWidth",
|
|
875
|
+
indicator: s && !ge && Me,
|
|
888
876
|
selected: s,
|
|
889
877
|
selectionFollowsFocus: ie,
|
|
890
878
|
onChange: E,
|
|
@@ -894,7 +882,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
894
882
|
tabIndex: 0
|
|
895
883
|
} : {}));
|
|
896
884
|
}), nt = (r) => {
|
|
897
|
-
const l = j.current, s =
|
|
885
|
+
const l = j.current, s = dt(l).activeElement;
|
|
898
886
|
if (s.getAttribute("role") !== "tab")
|
|
899
887
|
return;
|
|
900
888
|
let f = g === "horizontal" ? "ArrowLeft" : "ArrowUp", S = g === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
@@ -913,31 +901,31 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
913
901
|
break;
|
|
914
902
|
}
|
|
915
903
|
}, pe = rt();
|
|
916
|
-
return /* @__PURE__ */ Q(
|
|
904
|
+
return /* @__PURE__ */ Q(Wt, b({
|
|
917
905
|
className: k(W.root, T),
|
|
918
|
-
ownerState:
|
|
906
|
+
ownerState: A,
|
|
919
907
|
ref: n,
|
|
920
908
|
as: v
|
|
921
909
|
}, Xe, {
|
|
922
|
-
children: [pe.scrollButtonStart, pe.scrollbarSizeListener, /* @__PURE__ */ Q(
|
|
910
|
+
children: [pe.scrollButtonStart, pe.scrollbarSizeListener, /* @__PURE__ */ Q(zt, {
|
|
923
911
|
className: W.scroller,
|
|
924
|
-
ownerState:
|
|
912
|
+
ownerState: A,
|
|
925
913
|
style: {
|
|
926
914
|
overflow: we.overflow,
|
|
927
915
|
[B ? `margin${d ? "Left" : "Right"}` : "marginBottom"]: ce ? void 0 : -we.scrollbarWidth
|
|
928
916
|
},
|
|
929
917
|
ref: R,
|
|
930
|
-
children: [/* @__PURE__ */ C(
|
|
918
|
+
children: [/* @__PURE__ */ C(Lt, {
|
|
931
919
|
"aria-label": m,
|
|
932
920
|
"aria-labelledby": h,
|
|
933
921
|
"aria-orientation": g === "vertical" ? "vertical" : null,
|
|
934
922
|
className: W.flexContainer,
|
|
935
|
-
ownerState:
|
|
923
|
+
ownerState: A,
|
|
936
924
|
onKeyDown: nt,
|
|
937
925
|
ref: j,
|
|
938
926
|
role: "tablist",
|
|
939
927
|
children: lt
|
|
940
|
-
}), ge &&
|
|
928
|
+
}), ge && Me]
|
|
941
929
|
}), pe.scrollButtonEnd]
|
|
942
930
|
}));
|
|
943
931
|
});
|
|
@@ -954,7 +942,7 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
954
942
|
* @param {object} actions This object contains all possible actions
|
|
955
943
|
* that can be triggered programmatically.
|
|
956
944
|
*/
|
|
957
|
-
action:
|
|
945
|
+
action: ut,
|
|
958
946
|
/**
|
|
959
947
|
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
960
948
|
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
@@ -1090,15 +1078,14 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
1090
1078
|
*/
|
|
1091
1079
|
visibleScrollbar: o.bool
|
|
1092
1080
|
});
|
|
1093
|
-
const
|
|
1081
|
+
const Gt = Ue;
|
|
1094
1082
|
export {
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1083
|
+
yt as K,
|
|
1084
|
+
qt as T,
|
|
1085
|
+
Gt as a,
|
|
1098
1086
|
he as b,
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
L as t
|
|
1103
|
-
Zt as u
|
|
1087
|
+
Nt as c,
|
|
1088
|
+
St as d,
|
|
1089
|
+
ft as g,
|
|
1090
|
+
L as t
|
|
1104
1091
|
};
|