@cgi-learning-hub/ui 1.3.5-dev.1736346072 → 1.3.5
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/Backdrop-CvufxHMY.cjs +1 -0
- package/dist/{Backdrop-B78NPr0F.js → Backdrop-DcDd6WZF.js} +73 -70
- package/dist/{Box-BzbXlIpa.js → Box-Byz2BwGf.js} +3 -3
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-By0vfP8J.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-ZtXnS9gg.js → ButtonBase-DAWDecOk.js} +277 -277
- package/dist/{Card-CQBb4UMy.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-CWN2YKNQ.js → Checkbox-8Rhxpkjl.js} +19 -18
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-B8D0BpDv.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-D5Rf5NAr.js → DatePicker-BS1OatwQ.js} +2245 -2256
- package/dist/{DefaultPropsProvider-DS3RzjuS.cjs → DefaultPropsProvider-3KMGupjb.cjs} +3 -3
- package/dist/{DefaultPropsProvider-DEufUd_C.js → DefaultPropsProvider-CvJPQJmL.js} +20 -21
- package/dist/{Delete-DwpFA0q9.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DV3Q-OXQ.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/{Dialog-CEC-r5SR.js → Dialog-D_lS4J_M.js} +16 -15
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/{DialogContent-CmsuCpdK.js → DialogContent-uc65XOEU.js} +3 -3
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-CAsdh55l.js → DialogTitle-C8JOi-rq.js} +5 -5
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-D8G4fS_W.js → Divider-KO-E6nU8.js} +4 -4
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-0Z4FgiQi.js → FormControlLabel-BmrKQtQA.js} +13 -12
- package/dist/{FormGroup-B6BQaLl5.js → FormGroup-CbczEc6e.js} +2 -2
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-BljR05I0.js → FormLabel-CfR4bb21.js} +83 -80
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-BknJanej.js → Grow-CQVPAYvp.js} +34 -37
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-C6hPeqXq.js → IconButton-CekuyD4r.js} +9 -8
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-DYe9bZdy.js → InputAdornment-iU5YnveW.js} +15 -15
- package/dist/{InputBase-bIxQpDEw.js → InputBase-BJy3wwFB.js} +24 -23
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-69Y2GGzK.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-CrLJY61G.js → Menu-C7tKmcAh.js} +27 -26
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-i8U9J9Ds.js → MenuItem-j8luVUcX.js} +6 -6
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-Airm8V-9.js → Modal-brWBFdK7.js} +81 -82
- package/dist/{Paper-zmG6CtmU.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-CQ0ZGqya.js → Popper-DFZ_gRev.js} +5 -5
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BSNCqu7q.js → Portal-JEwcozmp.js} +39 -34
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-DAKlrqC8.js → Radio-DGhot3Cd.js} +16 -15
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-B6NmIC6a.js → Select-DmssuG5M.js} +416 -424
- package/dist/{Stack-LOzokt50.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CXvx1DtF.js → SwitchBase-Dlth5_F7.js} +23 -22
- package/dist/{TableSortLabel-C4rUHuBk.js → TableSortLabel-BsgRD4k4.js} +1706 -1808
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-DFlFghRY.js → Tabs-CYbeTnJk.js} +115 -113
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-B9Jog6CY.js → TextField-Cri5Gxa7.js} +20 -21
- package/dist/{Tooltip-zyIjqlzt.js → Tooltip-BhAHhzKz.js} +31 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-DeEwslc2.js → Typography-DBwTr_ix.js} +39 -38
- package/dist/Typography-DfRMDngd.cjs +1 -0
- package/dist/capitalize-B3GG7Wn6.cjs +1 -0
- package/dist/capitalize-CkF8kU4n.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +140 -103
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +7 -7
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +3 -3
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +31 -31
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +4 -4
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +20 -19
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +6 -6
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +4 -4
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon--rEClVU7.cjs +1 -0
- package/dist/{createSvgIcon-DCcHNe8S.js → createSvgIcon-C8nGcfF4.js} +41 -40
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-BIQl1sXf.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-C9ErcCVk.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-BtWdisVp.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-DuQ8Gjnk.js → generateUtilityClasses-Bssl7BA_.js} +811 -781
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CvvRovRe.js → index-BCnPLuqJ.js} +4 -4
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BrVfbiqv.js → index-CwvpOCso.js} +29 -29
- package/dist/index-DXD5J5Eu.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +31 -31
- package/dist/{memoTheme-BBurdur9.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-BX806g-H.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-BsjDgxuc.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/{refType-Bj5oVmPL.js → refType-DKYKROQk.js} +1 -1
- package/dist/useSlot-BTpHG6jf.js +50 -0
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/{index-Bh3yiNTb.js → useSlotProps-B31YQlzb.js} +26 -26
- package/dist/useSlotProps-BVSAQTNl.cjs +1 -0
- package/dist/useTheme-Cy5kyKJF.cjs +1 -0
- package/dist/useTheme-Dukx-__T.cjs +1 -0
- package/dist/useTheme-DyaNKf4e.js +11 -0
- package/dist/{useTheme-Btccn2RE.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-DkiiJVq2.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-SHbptCB5.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-H1IpEt-K.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/{utils-CAhqvD6J.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +9 -9
- package/dist/Backdrop-CGpJR5Hl.cjs +0 -1
- package/dist/Box-DjTF7J_q.cjs +0 -1
- package/dist/Button-D3qGoavT.cjs +0 -1
- package/dist/ButtonBase-CL4z-tXi.cjs +0 -74
- package/dist/Card-DVvNw_iY.cjs +0 -1
- package/dist/Checkbox-V6OQIwlV.cjs +0 -1
- package/dist/CircularProgress-Cgy3S9U3.cjs +0 -28
- package/dist/DatePicker-BPbdIoL9.cjs +0 -14
- package/dist/Dialog-BydVKebY.cjs +0 -1
- package/dist/DialogContent-BK2ayZAZ.cjs +0 -1
- package/dist/DialogTitle-BOT7MPXD.cjs +0 -1
- package/dist/Divider-tJEWvRjW.cjs +0 -1
- package/dist/FormControlLabel-B3aVcND9.cjs +0 -1
- package/dist/FormGroup-CaIWje6a.cjs +0 -1
- package/dist/FormLabel-cfHljFCc.cjs +0 -2
- package/dist/Grow-CTl1xcRO.cjs +0 -1
- package/dist/IconButton-DLqUtTTS.cjs +0 -2
- package/dist/InputAdornment-C-w19sIO.cjs +0 -1
- package/dist/InputBase-BNmBX1sj.cjs +0 -3
- package/dist/Link-CbFN--su.cjs +0 -1
- package/dist/Menu-CDKB-4vE.cjs +0 -7
- package/dist/MenuItem-Cz_afi4Z.cjs +0 -1
- package/dist/Modal-CAWPr5pr.cjs +0 -2
- package/dist/Paper-D7GaBTFY.cjs +0 -2
- package/dist/Popper-PxC5lBvF.cjs +0 -4
- package/dist/Portal-Cw7h9YXi.cjs +0 -1
- package/dist/Radio-D8JzkZ7R.cjs +0 -1
- package/dist/Select-D3AUyBzT.cjs +0 -3
- package/dist/Stack-ChAD7MBi.cjs +0 -1
- package/dist/SwitchBase-C9eGMRmU.cjs +0 -1
- package/dist/TableSortLabel-BJ0u2uA5.cjs +0 -98
- package/dist/Tabs-CSXp7psk.cjs +0 -4
- package/dist/TextField-dzDYEheV.cjs +0 -1
- package/dist/Tooltip-Dxitr7Ef.cjs +0 -4
- package/dist/Typography-Bwmxx4FZ.cjs +0 -1
- package/dist/createSvgIcon-B-TuJjUa.cjs +0 -1
- package/dist/dividerClasses-gUm5VAyT.cjs +0 -1
- package/dist/elementTypeAcceptingRef-BpVcc71P.cjs +0 -1
- package/dist/extendSxProp-RlEfz15o.cjs +0 -1
- package/dist/identifier-wZ6XDHde.cjs +0 -59
- package/dist/index-BtBEUHyX.cjs +0 -5
- package/dist/index-Cwbb61M9.cjs +0 -1
- package/dist/index-DGoTWEZ6.cjs +0 -1
- package/dist/refType-CqcE23ld.cjs +0 -1
- package/dist/resolveComponentProps-CwoUNybl.cjs +0 -1
- package/dist/useSlot-CcIPcgkB.cjs +0 -1
- package/dist/useSlot-D3Bt2dZB.js +0 -44
- package/dist/useTheme-C7xxleiU.cjs +0 -1
- package/dist/useTheme-CVDdFPAV.js +0 -11
- package/dist/useTheme-DZ8a53P0.cjs +0 -1
- package/dist/useThemeProps-BZX2pbh5.cjs +0 -1
- package/dist/utils-DWiPKWpw.cjs +0 -1
|
@@ -1,65 +1,110 @@
|
|
|
1
|
-
import { P as e, M as
|
|
2
|
-
import { b as
|
|
1
|
+
import { P as e, M as P, S as b, U as f, V as N, W as D, X as G, G as R, Y as O } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
2
|
+
import { b as M, s as $, u as E } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
3
3
|
import * as m from "react";
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { e as
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
4
|
+
import { jsx as F } from "react/jsx-runtime";
|
|
5
|
+
import { e as B } from "./extendSxProp-C2ff0oGc.js";
|
|
6
|
+
import { u as w } from "./useThemeProps-BySkSe-M.js";
|
|
7
|
+
const T = (o) => o, U = () => {
|
|
8
|
+
let o = T;
|
|
9
|
+
return {
|
|
10
|
+
configure(r) {
|
|
11
|
+
o = r;
|
|
12
|
+
},
|
|
13
|
+
generate(r) {
|
|
14
|
+
return o(r);
|
|
15
|
+
},
|
|
16
|
+
reset() {
|
|
17
|
+
o = T;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}, q = U(), A = {
|
|
21
|
+
active: "active",
|
|
22
|
+
checked: "checked",
|
|
23
|
+
completed: "completed",
|
|
24
|
+
disabled: "disabled",
|
|
25
|
+
error: "error",
|
|
26
|
+
expanded: "expanded",
|
|
27
|
+
focused: "focused",
|
|
28
|
+
focusVisible: "focusVisible",
|
|
29
|
+
open: "open",
|
|
30
|
+
readOnly: "readOnly",
|
|
31
|
+
required: "required",
|
|
32
|
+
selected: "selected"
|
|
33
|
+
};
|
|
34
|
+
function _(o, r, n = "Mui") {
|
|
35
|
+
const t = A[r];
|
|
36
|
+
return t ? `${n}-${t}` : `${q.generate(o)}-${r}`;
|
|
37
|
+
}
|
|
38
|
+
const I = M();
|
|
39
|
+
function L(o, r, n = void 0) {
|
|
40
|
+
const t = {};
|
|
41
|
+
for (const i in o) {
|
|
42
|
+
const a = o[i];
|
|
43
|
+
let l = "", u = !0;
|
|
44
|
+
for (let s = 0; s < a.length; s += 1) {
|
|
45
|
+
const c = a[s];
|
|
46
|
+
c && (l += (u === !0 ? "" : " ") + r(c), u = !1, n && n[c] && (l += " " + n[c]));
|
|
47
|
+
}
|
|
48
|
+
t[i] = l;
|
|
49
|
+
}
|
|
50
|
+
return t;
|
|
51
|
+
}
|
|
52
|
+
const W = P(), X = I("div", {
|
|
8
53
|
name: "MuiStack",
|
|
9
54
|
slot: "Root",
|
|
10
55
|
overridesResolver: (o, r) => r.root
|
|
11
56
|
});
|
|
12
|
-
function
|
|
13
|
-
return
|
|
57
|
+
function Y(o) {
|
|
58
|
+
return w({
|
|
14
59
|
props: o,
|
|
15
60
|
name: "MuiStack",
|
|
16
|
-
defaultTheme:
|
|
61
|
+
defaultTheme: W
|
|
17
62
|
});
|
|
18
63
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
key: `separator-${
|
|
23
|
-
})),
|
|
64
|
+
function z(o, r) {
|
|
65
|
+
const n = m.Children.toArray(o).filter(Boolean);
|
|
66
|
+
return n.reduce((t, i, a) => (t.push(i), a < n.length - 1 && t.push(/* @__PURE__ */ m.cloneElement(r, {
|
|
67
|
+
key: `separator-${a}`
|
|
68
|
+
})), t), []);
|
|
24
69
|
}
|
|
25
|
-
const
|
|
70
|
+
const H = (o) => ({
|
|
26
71
|
row: "Left",
|
|
27
72
|
"row-reverse": "Right",
|
|
28
73
|
column: "Top",
|
|
29
74
|
"column-reverse": "Bottom"
|
|
30
|
-
})[o],
|
|
75
|
+
})[o], J = ({
|
|
31
76
|
ownerState: o,
|
|
32
77
|
theme: r
|
|
33
78
|
}) => {
|
|
34
|
-
let
|
|
79
|
+
let n = {
|
|
35
80
|
display: "flex",
|
|
36
81
|
flexDirection: "column",
|
|
37
|
-
...
|
|
82
|
+
...b({
|
|
38
83
|
theme: r
|
|
39
84
|
}, f({
|
|
40
85
|
values: o.direction,
|
|
41
86
|
breakpoints: r.breakpoints.values
|
|
42
|
-
}), (
|
|
43
|
-
flexDirection:
|
|
87
|
+
}), (t) => ({
|
|
88
|
+
flexDirection: t
|
|
44
89
|
}))
|
|
45
90
|
};
|
|
46
91
|
if (o.spacing) {
|
|
47
|
-
const
|
|
92
|
+
const t = N(r), i = Object.keys(r.breakpoints.values).reduce((s, c) => ((typeof o.spacing == "object" && o.spacing[c] != null || typeof o.direction == "object" && o.direction[c] != null) && (s[c] = !0), s), {}), a = f({
|
|
48
93
|
values: o.direction,
|
|
49
94
|
base: i
|
|
50
95
|
}), l = f({
|
|
51
96
|
values: o.spacing,
|
|
52
97
|
base: i
|
|
53
98
|
});
|
|
54
|
-
typeof
|
|
55
|
-
if (!
|
|
56
|
-
const
|
|
57
|
-
|
|
99
|
+
typeof a == "object" && Object.keys(a).forEach((s, c, p) => {
|
|
100
|
+
if (!a[s]) {
|
|
101
|
+
const d = c > 0 ? a[p[c - 1]] : "column";
|
|
102
|
+
a[s] = d;
|
|
58
103
|
}
|
|
59
|
-
}),
|
|
104
|
+
}), n = D(n, b({
|
|
60
105
|
theme: r
|
|
61
|
-
}, l, (s,
|
|
62
|
-
gap:
|
|
106
|
+
}, l, (s, c) => o.useFlexGap ? {
|
|
107
|
+
gap: O(t, s)
|
|
63
108
|
} : {
|
|
64
109
|
// The useFlexGap={false} implement relies on each child to give up control of the margin.
|
|
65
110
|
// We need to reset the margin to avoid double spacing.
|
|
@@ -67,42 +112,42 @@ const W = (o) => ({
|
|
|
67
112
|
margin: 0
|
|
68
113
|
},
|
|
69
114
|
"& > :not(style) ~ :not(style)": {
|
|
70
|
-
[`margin${
|
|
115
|
+
[`margin${H(c ? a[c] : o.direction)}`]: O(t, s)
|
|
71
116
|
}
|
|
72
117
|
}));
|
|
73
118
|
}
|
|
74
|
-
return
|
|
119
|
+
return n = G(r.breakpoints, n), n;
|
|
75
120
|
};
|
|
76
|
-
function
|
|
121
|
+
function K(o = {}) {
|
|
77
122
|
const {
|
|
78
123
|
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
79
|
-
createStyledComponent: r =
|
|
80
|
-
useThemeProps:
|
|
81
|
-
componentName:
|
|
82
|
-
} = o, i = () =>
|
|
124
|
+
createStyledComponent: r = X,
|
|
125
|
+
useThemeProps: n = Y,
|
|
126
|
+
componentName: t = "MuiStack"
|
|
127
|
+
} = o, i = () => L({
|
|
83
128
|
root: ["root"]
|
|
84
|
-
}, (s) =>
|
|
85
|
-
const
|
|
86
|
-
component:
|
|
87
|
-
direction:
|
|
88
|
-
spacing:
|
|
129
|
+
}, (s) => _(t, s), {}), a = r(J), l = /* @__PURE__ */ m.forwardRef(function(s, c) {
|
|
130
|
+
const p = n(s), y = B(p), {
|
|
131
|
+
component: d = "div",
|
|
132
|
+
direction: h = "column",
|
|
133
|
+
spacing: k = 0,
|
|
89
134
|
divider: v,
|
|
90
|
-
children:
|
|
135
|
+
children: g,
|
|
91
136
|
className: j,
|
|
92
|
-
useFlexGap:
|
|
93
|
-
...
|
|
94
|
-
} = y,
|
|
95
|
-
direction:
|
|
96
|
-
spacing:
|
|
97
|
-
useFlexGap:
|
|
98
|
-
},
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
-
as:
|
|
101
|
-
ownerState:
|
|
102
|
-
ref:
|
|
103
|
-
className:
|
|
104
|
-
...
|
|
105
|
-
children: v ?
|
|
137
|
+
useFlexGap: x = !1,
|
|
138
|
+
...C
|
|
139
|
+
} = y, S = {
|
|
140
|
+
direction: h,
|
|
141
|
+
spacing: k,
|
|
142
|
+
useFlexGap: x
|
|
143
|
+
}, V = i();
|
|
144
|
+
return /* @__PURE__ */ F(a, {
|
|
145
|
+
as: d,
|
|
146
|
+
ownerState: S,
|
|
147
|
+
ref: c,
|
|
148
|
+
className: R(V.root, j),
|
|
149
|
+
...C,
|
|
150
|
+
children: v ? z(g, v) : g
|
|
106
151
|
});
|
|
107
152
|
});
|
|
108
153
|
return process.env.NODE_ENV !== "production" && (l.propTypes = {
|
|
@@ -113,18 +158,18 @@ function Y(o = {}) {
|
|
|
113
158
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
114
159
|
}), l;
|
|
115
160
|
}
|
|
116
|
-
const
|
|
117
|
-
createStyledComponent:
|
|
161
|
+
const Q = K({
|
|
162
|
+
createStyledComponent: $("div", {
|
|
118
163
|
name: "MuiStack",
|
|
119
164
|
slot: "Root",
|
|
120
165
|
overridesResolver: (o, r) => r.root
|
|
121
166
|
}),
|
|
122
|
-
useThemeProps: (o) =>
|
|
167
|
+
useThemeProps: (o) => E({
|
|
123
168
|
props: o,
|
|
124
169
|
name: "MuiStack"
|
|
125
170
|
})
|
|
126
171
|
});
|
|
127
|
-
process.env.NODE_ENV !== "production" && (
|
|
172
|
+
process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
128
173
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
129
174
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
130
175
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -169,5 +214,5 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
169
214
|
useFlexGap: e.bool
|
|
170
215
|
});
|
|
171
216
|
export {
|
|
172
|
-
|
|
217
|
+
Q as S
|
|
173
218
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./generateUtilityClasses-B_H9HEmg.cjs"),d=require("./DefaultPropsProvider-3KMGupjb.cjs"),C=require("react"),V=require("react/jsx-runtime"),D=require("./extendSxProp-apyK-EBz.cjs"),N=require("./useThemeProps-u_ESzK2f.cjs");function R(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(o,s,t.get?t:{enumerable:!0,get:()=>r[s]})}}return o.default=r,Object.freeze(o)}const f=R(C),g=r=>r,q=()=>{let r=g;return{configure(o){r=o},generate(o){return r(o)},reset(){r=g}}},B=q(),G={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function M(r,o,s="Mui"){const t=G[o];return t?`${s}-${t}`:`${B.generate(r)}-${o}`}const $=d.createStyled();function E(r,o,s=void 0){const t={};for(const i in r){const c=r[i];let a="",l=!0;for(let n=0;n<c.length;n+=1){const p=c[n];p&&(a+=(l===!0?"":" ")+o(p),l=!1,s&&s[p]&&(a+=" "+s[p]))}t[i]=a}return t}const w=e.createTheme$1(),F=$("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,o)=>o.root});function _(r){return N.useThemeProps({props:r,name:"MuiStack",defaultTheme:w})}function U(r,o){const s=f.Children.toArray(r).filter(Boolean);return s.reduce((t,i,c)=>(t.push(i),c<s.length-1&&t.push(f.cloneElement(o,{key:`separator-${c}`})),t),[])}const A=r=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r],z=({ownerState:r,theme:o})=>{let s={display:"flex",flexDirection:"column",...e.handleBreakpoints({theme:o},e.resolveBreakpointValues({values:r.direction,breakpoints:o.breakpoints.values}),t=>({flexDirection:t}))};if(r.spacing){const t=e.createUnarySpacing(o),i=Object.keys(o.breakpoints.values).reduce((n,p)=>((typeof r.spacing=="object"&&r.spacing[p]!=null||typeof r.direction=="object"&&r.direction[p]!=null)&&(n[p]=!0),n),{}),c=e.resolveBreakpointValues({values:r.direction,base:i}),a=e.resolveBreakpointValues({values:r.spacing,base:i});typeof c=="object"&&Object.keys(c).forEach((n,p,u)=>{if(!c[n]){const y=p>0?c[u[p-1]]:"column";c[n]=y}});const l=(n,p)=>r.useFlexGap?{gap:e.getValue(t,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${A(p?c[p]:r.direction)}`]:e.getValue(t,n)}};s=e.deepmerge(s,e.handleBreakpoints({theme:o},a,l))}return s=e.mergeBreakpointsInOrder(o.breakpoints,s),s};function I(r={}){const{createStyledComponent:o=F,useThemeProps:s=_,componentName:t="MuiStack"}=r,i=()=>E({root:["root"]},n=>M(t,n),{}),c=o(z),a=f.forwardRef(function(n,p){const u=s(n),T=D.extendSxProp(u),{component:y="div",direction:b="column",spacing:O=0,divider:P,children:m,className:k,useFlexGap:h=!1,...j}=T,x={direction:b,spacing:O,useFlexGap:h},S=i();return V.jsx(c,{as:y,ownerState:x,ref:p,className:e.clsx(S.root,k),...j,children:P?U(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=I({createStyledComponent:d.styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,o)=>o.root}),useThemeProps:r=>d.useDefaultProps({props:r,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});exports.Stack=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const M=require("react"),e=require("./generateUtilityClasses-B_H9HEmg.cjs"),l=require("./DefaultPropsProvider-3KMGupjb.cjs"),V=require("./useFormControl-haP0iPhl.cjs"),B=require("react/jsx-runtime"),$=require("./ButtonBase-BXtyQVDC.cjs"),A=require("./useControlled-Ysk4KqoX.cjs"),G=require("./refType-CoaxQOPt.cjs"),H=require("./capitalize-B3GG7Wn6.cjs");function J(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,a.get?a:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const K=J(M);function Q(o){return e.generateUtilityClass("PrivateSwitchBase",o)}e.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const W=o=>{const{classes:s,checked:r,disabled:a,edge:i}=o,p={root:["root",r&&"checked",a&&"disabled",i&&`edge${H.capitalize(i)}`],input:["input"]};return l.composeClasses(p,Q,s)},X=l.styled($.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:o,ownerState:s})=>o==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:o,ownerState:s})=>o==="end"&&s.size!=="small",style:{marginRight:-12}}]}),Y=l.styled("input",{shouldForwardProp:l.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=K.forwardRef(function(s,r){const{autoFocus:a,checked:i,checkedIcon:p,className:w,defaultChecked:f,disabled:F,disableFocusRipple:y=!1,edge:R=!1,icon:S,id:q,inputProps:x,inputRef:O,name:j,onBlur:h,onChange:b,onFocus:g,readOnly:I,required:z=!1,tabIndex:v,type:d,value:P,...N}=s,[m,U]=A.useControlled({controlled:i,default:!!f,name:"SwitchBase",state:"checked"}),n=V.useFormControl(),D=t=>{g&&g(t),n&&n.onFocus&&n.onFocus(t)},E=t=>{h&&h(t),n&&n.onBlur&&n.onBlur(t)},_=t=>{if(t.nativeEvent.defaultPrevented)return;const k=t.target.checked;U(k),b&&b(t,k)};let c=F;n&&typeof c>"u"&&(c=n.disabled);const L=d==="checkbox"||d==="radio",u={...s,checked:m,disabled:c,disableFocusRipple:y,edge:R},T=W(u);return B.jsxs(X,{component:"span",className:e.clsx(T.root,w),centerRipple:!0,focusRipple:!y,disabled:c,tabIndex:null,role:void 0,onFocus:D,onBlur:E,ownerState:u,ref:r,...N,children:[B.jsx(Y,{autoFocus:a,checked:i,defaultChecked:f,className:T.input,disabled:c,id:L?q:void 0,name:j,onChange:_,readOnly:I,ref:O,required:z,ownerState:u,tabIndex:v,type:d,...d==="checkbox"&&P===void 0?{}:{value:P},...x}),m?p:S]})});process.env.NODE_ENV!=="production"&&(C.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:G.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=C;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
|
-
import { H as G, I as H, G as V, P as e
|
|
3
|
-
import { s as C, r as
|
|
4
|
-
import { u as
|
|
5
|
-
import { jsxs as
|
|
6
|
-
import { B as
|
|
7
|
-
import { u as
|
|
8
|
-
import { r as
|
|
2
|
+
import { H as G, I as H, G as V, P as e } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
+
import { s as C, r as _, c as $ } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
4
|
+
import { u as A } from "./useFormControl-CatNKXAi.js";
|
|
5
|
+
import { jsxs as J, jsx as K } from "react/jsx-runtime";
|
|
6
|
+
import { B as M } from "./ButtonBase-DAWDecOk.js";
|
|
7
|
+
import { u as Q } from "./useControlled-BYdyS7Pn.js";
|
|
8
|
+
import { r as W } from "./refType-DKYKROQk.js";
|
|
9
|
+
import { c as X } from "./capitalize-CkF8kU4n.js";
|
|
9
10
|
function Y(s) {
|
|
10
11
|
return G("PrivateSwitchBase", s);
|
|
11
12
|
}
|
|
@@ -17,11 +18,11 @@ const Z = (s) => {
|
|
|
17
18
|
disabled: c,
|
|
18
19
|
edge: a
|
|
19
20
|
} = s, l = {
|
|
20
|
-
root: ["root", d && "checked", c && "disabled", a && `edge${
|
|
21
|
+
root: ["root", d && "checked", c && "disabled", a && `edge${X(a)}`],
|
|
21
22
|
input: ["input"]
|
|
22
23
|
};
|
|
23
|
-
return
|
|
24
|
-
}, ee = C(
|
|
24
|
+
return $(l, Y, t);
|
|
25
|
+
}, ee = C(M)({
|
|
25
26
|
padding: 9,
|
|
26
27
|
borderRadius: "50%",
|
|
27
28
|
variants: [{
|
|
@@ -58,7 +59,7 @@ const Z = (s) => {
|
|
|
58
59
|
}
|
|
59
60
|
}]
|
|
60
61
|
}), oe = C("input", {
|
|
61
|
-
shouldForwardProp:
|
|
62
|
+
shouldForwardProp: _
|
|
62
63
|
})({
|
|
63
64
|
cursor: "inherit",
|
|
64
65
|
position: "absolute",
|
|
@@ -94,16 +95,16 @@ const Z = (s) => {
|
|
|
94
95
|
type: i,
|
|
95
96
|
value: g,
|
|
96
97
|
...j
|
|
97
|
-
} = t, [y, v] =
|
|
98
|
+
} = t, [y, v] = Q({
|
|
98
99
|
controlled: a,
|
|
99
100
|
default: !!p,
|
|
100
101
|
name: "SwitchBase",
|
|
101
102
|
state: "checked"
|
|
102
|
-
}), n =
|
|
103
|
+
}), n = A(), E = (o) => {
|
|
103
104
|
b && b(o), n && n.onFocus && n.onFocus(o);
|
|
104
|
-
}, L = (o) => {
|
|
105
|
-
h && h(o), n && n.onBlur && n.onBlur(o);
|
|
106
105
|
}, T = (o) => {
|
|
106
|
+
h && h(o), n && n.onBlur && n.onBlur(o);
|
|
107
|
+
}, U = (o) => {
|
|
107
108
|
if (o.nativeEvent.defaultPrevented)
|
|
108
109
|
return;
|
|
109
110
|
const B = o.target.checked;
|
|
@@ -111,14 +112,14 @@ const Z = (s) => {
|
|
|
111
112
|
};
|
|
112
113
|
let r = F;
|
|
113
114
|
n && typeof r > "u" && (r = n.disabled);
|
|
114
|
-
const
|
|
115
|
+
const L = i === "checkbox" || i === "radio", u = {
|
|
115
116
|
...t,
|
|
116
117
|
checked: y,
|
|
117
118
|
disabled: r,
|
|
118
119
|
disableFocusRipple: f,
|
|
119
120
|
edge: R
|
|
120
121
|
}, k = Z(u);
|
|
121
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ J(ee, {
|
|
122
123
|
component: "span",
|
|
123
124
|
className: V(k.root, w),
|
|
124
125
|
centerRipple: !0,
|
|
@@ -127,19 +128,19 @@ const Z = (s) => {
|
|
|
127
128
|
tabIndex: null,
|
|
128
129
|
role: void 0,
|
|
129
130
|
onFocus: E,
|
|
130
|
-
onBlur:
|
|
131
|
+
onBlur: T,
|
|
131
132
|
ownerState: u,
|
|
132
133
|
ref: d,
|
|
133
134
|
...j,
|
|
134
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ K(oe, {
|
|
135
136
|
autoFocus: c,
|
|
136
137
|
checked: a,
|
|
137
138
|
defaultChecked: p,
|
|
138
139
|
className: k.input,
|
|
139
140
|
disabled: r,
|
|
140
|
-
id:
|
|
141
|
+
id: L ? x : void 0,
|
|
141
142
|
name: q,
|
|
142
|
-
onChange:
|
|
143
|
+
onChange: U,
|
|
143
144
|
readOnly: z,
|
|
144
145
|
ref: I,
|
|
145
146
|
required: N,
|
|
@@ -210,7 +211,7 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
|
210
211
|
/**
|
|
211
212
|
* Pass a ref to the `input` element.
|
|
212
213
|
*/
|
|
213
|
-
inputRef:
|
|
214
|
+
inputRef: W,
|
|
214
215
|
/*
|
|
215
216
|
* @ignore
|
|
216
217
|
*/
|