@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733911143
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-DqUdx8FP.cjs +1 -0
- package/dist/Backdrop-ZqzrnV2E.js +360 -0
- package/dist/Box-Be6jhcmK.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DN_2fcm9.js} +9 -9
- package/dist/Button-C6UXybBV.cjs +1 -0
- package/dist/{Button-Bjy0iPNm.js → Button-CL9rFoOY.js} +152 -118
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-CYkLbJ0U.js} +232 -240
- package/dist/ButtonBase-DzK1n18b.cjs +74 -0
- package/dist/Card-DO4cAmNC.js +74 -0
- package/dist/Card-DsmqVSx1.cjs +1 -0
- package/dist/Checkbox-Btg05OjV.cjs +1 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-CLM5GjuC.js} +27 -26
- package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-C4xtwh4E.js} +28 -27
- package/dist/DatePicker-BXTOQETi.cjs +14 -0
- package/dist/DatePicker-D9suyaUZ.js +10846 -0
- package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
- package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
- package/dist/Delete-CpADFuIX.cjs +1 -0
- package/dist/Delete-DWXEW4-c.js +8 -0
- package/dist/DialogContent-D_JmqJt6.js +603 -0
- package/dist/DialogContent-gRISmOoj.cjs +1 -0
- package/dist/DialogTitle-CID6RFNo.js +134 -0
- package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
- package/dist/Divider-BjxxEFnr.cjs +1 -0
- package/dist/Divider-HhF8ckeh.js +296 -0
- package/dist/FormControlLabel-0-cflTuo.js +262 -0
- package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
- package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
- package/dist/FormGroup-DIP4u-gv.js +95 -0
- package/dist/FormLabel-Ch103TK-.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-X7FN1eBV.js} +39 -44
- package/dist/Grow-BgMSa0P2.js +193 -0
- package/dist/Grow-D7OAahbU.cjs +1 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-CMwpC2Co.js} +10 -9
- package/dist/IconButton-DbWtCGLB.cjs +2 -0
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-B4hI0-Jz.js} +9 -8
- package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
- package/dist/InputBase-BuVAuMNp.cjs +3 -0
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-DrofJ7xL.js} +60 -59
- package/dist/Link-AXhb0uJT.cjs +1 -0
- package/dist/Link-Bdupo_fW.js +267 -0
- package/dist/Menu-DR-xtxpt.js +966 -0
- package/dist/Menu-_chQG-Za.cjs +7 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-C_d0Sc_L.js} +69 -74
- package/dist/MenuItem-De6eStq9.cjs +1 -0
- package/dist/Modal-C4Jb6sd1.js +750 -0
- package/dist/Modal-GXSEk85U.cjs +2 -0
- package/dist/Paper-CH4BABUB.cjs +2 -0
- package/dist/Paper-nlWPEgQh.js +185 -0
- package/dist/Popper-CjTplNLW.cjs +4 -0
- package/dist/Popper-CkAj_qw_.js +1407 -0
- package/dist/Portal-BcFwfiTx.js +86 -0
- package/dist/Portal-BruYsISj.cjs +1 -0
- package/dist/Radio-B0v6nDvz.js +313 -0
- package/dist/Radio-BbZnB74m.cjs +1 -0
- package/dist/Select-BFGwwKap.cjs +3 -0
- package/dist/Select-D9fwtA9U.js +2604 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-C1i6_V9e.js} +105 -60
- package/dist/Stack-DMNZvXss.cjs +1 -0
- package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DfbwljzN.js} +25 -24
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-DwnLOHOy.js} +2645 -3965
- package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BoFP2RHv.js} +333 -329
- package/dist/Tabs-DEvwJheI.cjs +4 -0
- package/dist/{TextField-C-B529_r.js → TextField-kwhzNVAL.js} +35 -34
- package/dist/TextField-waKWSLD4.cjs +1 -0
- package/dist/Tooltip-CFyOA9CT.cjs +4 -0
- package/dist/Tooltip-tgkiC77d.js +721 -0
- package/dist/Typography-B6KFjCtE.cjs +1 -0
- package/dist/{Typography-C_ESP41L.js → Typography-DWXYj92v.js} +13 -12
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/capitalize-DASFtB-F.cjs +1 -0
- package/dist/capitalize-NmHVRYy8.js +9 -0
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +28 -27
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- 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 +21 -22
- 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 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
- 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.d.ts +3 -0
- package/dist/components/index.es.js +276 -262
- 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 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- 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 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +53 -0
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +379 -0
- 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 +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- 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 +140 -90
- 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 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CeuAoIMQ.js} +6 -5
- package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CSD96RzX.cjs +1 -0
- package/dist/dividerClasses-DrJ5oIdP.js +9 -0
- package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
- package/dist/elementTypeAcceptingRef-HBfwF2vD.js +23 -0
- package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-NjjUyYdB.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → generateUtilityClasses--6MLb_cS.js} +990 -956
- package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
- package/dist/{index-BUxqDIr9.js → index-B4GmPutS.js} +6 -5
- package/dist/index-BGCIdIru.js +2152 -0
- package/dist/index-BoQHt8iN.cjs +1 -0
- package/dist/index-CRdsZkOC.cjs +17 -0
- package/dist/index-CmEzEdk2.cjs +5 -0
- package/dist/index-XYfXmNqA.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +276 -262
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-D99chbOP.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-o8RCKrNG.js} +1 -1
- package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → mergeSlotProps-KHPCviGJ.js} +7 -7
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/useEnhancedEffect-C9MKL5N4.cjs +1 -0
- package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useSlot-DsW0udy9.cjs +1 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-eWxwpnv1.js} +2 -2
- package/dist/useSlotProps--FPRW1CI.cjs +1 -0
- package/dist/{index-CRT92bm7.js → useSlotProps-C7zjg7t9.js} +26 -26
- package/dist/useTheme-B1YEBlI0.cjs +1 -0
- package/dist/useTheme-BXzyKigM.js +11 -0
- package/dist/{useTheme-oM_SFWy4.js → useTheme-D0ITn2Re.js} +1 -1
- package/dist/useTheme-DFJNv-zn.cjs +1 -0
- package/dist/useThemeProps-BwyYDczI.cjs +1 -0
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-DrCROxdY.js} +2 -2
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-DsDeaP0E.js} +3 -3
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-FkIxJmTC.js} +4 -4
- package/dist/useTimeout-NIA-3R5R.cjs +1 -0
- package/dist/utils-70jLtOQP.js +391 -0
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-DlWHEABQ.cjs +1 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/Box-H49yQEt_.cjs +0 -1
- package/dist/Button-qc45QbX6.cjs +0 -1
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/Checkbox-CuYTY0gd.cjs +0 -1
- package/dist/CircularProgress-BPHINMQw.cjs +0 -28
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/DefaultPropsProvider-CaRoy5OV.js +0 -484
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputAdornment-BJfpEQAa.cjs +0 -1
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Stack-CEjx3KHM.cjs +0 -1
- package/dist/SwitchBase-URM3X3YZ.cjs +0 -1
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/TextField-BVAkADOb.cjs +0 -1
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/Typography-5OodZ94T.cjs +0 -1
- package/dist/createSvgIcon-GU7fqNnI.cjs +0 -1
- package/dist/extendSxProp-D11-pC6h.cjs +0 -1
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/identifier-BQH88SE0.cjs +0 -59
- package/dist/index-CNv8ppur.cjs +0 -1
- package/dist/index-D7nFYLYq.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/resolveComponentProps-DTv6xPbb.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useSlot-42jgZftI.cjs +0 -1
- package/dist/useTheme-CtT7O-Wk.js +0 -11
- package/dist/useTheme-cVN-YQNB.cjs +0 -1
- package/dist/useTheme-tZYpFplW.cjs +0 -1
- package/dist/useThemeProps-r0DnR8FJ.cjs +0 -1
- package/dist/useTimeout-DWEGwfTA.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--6MLb_cS.js";
|
|
2
|
+
import { b as M, s as $, u as E } from "./DefaultPropsProvider-DUWovK-8.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-NjjUyYdB.js";
|
|
6
|
+
import { u as w } from "./useThemeProps-DrCROxdY.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, t = "Mui") {
|
|
35
|
+
const n = A[r];
|
|
36
|
+
return n ? `${t}-${n}` : `${q.generate(o)}-${r}`;
|
|
37
|
+
}
|
|
38
|
+
const I = M();
|
|
39
|
+
function L(o, r, t = void 0) {
|
|
40
|
+
const n = {};
|
|
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, t && t[c] && (l += " " + t[c]));
|
|
47
|
+
}
|
|
48
|
+
n[i] = l;
|
|
49
|
+
}
|
|
50
|
+
return n;
|
|
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 t = m.Children.toArray(o).filter(Boolean);
|
|
66
|
+
return t.reduce((n, i, a) => (n.push(i), a < t.length - 1 && n.push(/* @__PURE__ */ m.cloneElement(r, {
|
|
67
|
+
key: `separator-${a}`
|
|
68
|
+
})), n), []);
|
|
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 t = {
|
|
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
|
+
}), (n) => ({
|
|
88
|
+
flexDirection: n
|
|
44
89
|
}))
|
|
45
90
|
};
|
|
46
91
|
if (o.spacing) {
|
|
47
|
-
const
|
|
92
|
+
const n = 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
|
+
}), t = D(t, b({
|
|
60
105
|
theme: r
|
|
61
|
-
}, l, (s,
|
|
62
|
-
gap:
|
|
106
|
+
}, l, (s, c) => o.useFlexGap ? {
|
|
107
|
+
gap: O(n, 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(n, s)
|
|
71
116
|
}
|
|
72
117
|
}));
|
|
73
118
|
}
|
|
74
|
-
return
|
|
119
|
+
return t = G(r.breakpoints, t), t;
|
|
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: t = Y,
|
|
126
|
+
componentName: n = "MuiStack"
|
|
127
|
+
} = o, i = () => L({
|
|
83
128
|
root: ["root"]
|
|
84
|
-
}, (s) =>
|
|
85
|
-
const p =
|
|
86
|
-
component:
|
|
87
|
-
direction:
|
|
88
|
-
spacing:
|
|
129
|
+
}, (s) => _(n, s), {}), a = r(J), l = /* @__PURE__ */ m.forwardRef(function(s, c) {
|
|
130
|
+
const p = t(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 q(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" && (z.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-DEQ18TAF.cjs"),d=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),C=require("react"),V=require("react/jsx-runtime"),D=require("./extendSxProp-Fr1MMO0I.cjs"),N=require("./useThemeProps-j-HQOOfB.cjs");function R(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const f=R(C),v=o=>o,q=()=>{let o=v;return{configure(r){o=r},generate(r){return o(r)},reset(){o=v}}},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(o,r,s="Mui"){const t=G[r];return t?`${s}-${t}`:`${B.generate(o)}-${r}`}const $=d.createStyled();function E(o,r,s=void 0){const t={};for(const i in o){const c=o[i];let a="",l=!0;for(let n=0;n<c.length;n+=1){const p=c[n];p&&(a+=(l===!0?"":" ")+r(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:(o,r)=>r.root});function _(o){return N.useThemeProps({props:o,name:"MuiStack",defaultTheme:w})}function U(o,r){const s=f.Children.toArray(o).filter(Boolean);return s.reduce((t,i,c)=>(t.push(i),c<s.length-1&&t.push(f.cloneElement(r,{key:`separator-${c}`})),t),[])}const A=o=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[o],z=({ownerState:o,theme:r})=>{let s={display:"flex",flexDirection:"column",...e.handleBreakpoints({theme:r},e.resolveBreakpointValues({values:o.direction,breakpoints:r.breakpoints.values}),t=>({flexDirection:t}))};if(o.spacing){const t=e.createUnarySpacing(r),i=Object.keys(r.breakpoints.values).reduce((n,p)=>((typeof o.spacing=="object"&&o.spacing[p]!=null||typeof o.direction=="object"&&o.direction[p]!=null)&&(n[p]=!0),n),{}),c=e.resolveBreakpointValues({values:o.direction,base:i}),a=e.resolveBreakpointValues({values:o.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)=>o.useFlexGap?{gap:e.getValue(t,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${A(p?c[p]:o.direction)}`]:e.getValue(t,n)}};s=e.deepmerge(s,e.handleBreakpoints({theme:r},a,l))}return s=e.mergeBreakpointsInOrder(r.breakpoints,s),s};function I(o={}){const{createStyledComponent:r=F,useThemeProps:s=_,componentName:t="MuiStack"}=o,i=()=>E({root:["root"]},n=>M(t,n),{}),c=r(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 g=I({createStyledComponent:d.styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(o,r)=>r.root}),useThemeProps:o=>d.useDefaultProps({props:o,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(g.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=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const M=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),l=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),V=require("./useFormControl-haP0iPhl.cjs"),B=require("react/jsx-runtime"),$=require("./ButtonBase-DzK1n18b.cjs"),A=require("./useControlled-Ysk4KqoX.cjs"),G=require("./useEnhancedEffect-C9MKL5N4.cjs"),H=require("./capitalize-DASFtB-F.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:v=!1,tabIndex:z,type:d,value:P,...N}=s,[m,E]=A.useControlled({controlled:i,default:!!f,name:"SwitchBase",state:"checked"}),n=V.useFormControl(),U=t=>{g&&g(t),n&&n.onFocus&&n.onFocus(t)},D=t=>{h&&h(t),n&&n.onBlur&&n.onBlur(t)},_=t=>{if(t.nativeEvent.defaultPrevented)return;const k=t.target.checked;E(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:U,onBlur:D,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:v,ownerState:u,tabIndex:z,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,15 +1,16 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
|
-
import {
|
|
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--6MLb_cS.js";
|
|
3
|
+
import { s as C, r as _, c as $ } from "./DefaultPropsProvider-DUWovK-8.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-CYkLbJ0U.js";
|
|
7
|
+
import { u as Q } from "./useControlled-BYdyS7Pn.js";
|
|
8
|
+
import { r as W } from "./useEnhancedEffect-DlS7O_-p.js";
|
|
9
|
+
import { c as X } from "./capitalize-NmHVRYy8.js";
|
|
9
10
|
function Y(s) {
|
|
10
|
-
return
|
|
11
|
+
return G("PrivateSwitchBase", s);
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
H("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
13
14
|
const Z = (s) => {
|
|
14
15
|
const {
|
|
15
16
|
classes: t,
|
|
@@ -17,11 +18,11 @@ const Z = (s) => {
|
|
|
17
18
|
disabled: c,
|
|
18
19
|
edge: n
|
|
19
20
|
} = s, l = {
|
|
20
|
-
root: ["root", d && "checked", c && "disabled", n && `edge${
|
|
21
|
+
root: ["root", d && "checked", c && "disabled", n && `edge${X(n)}`],
|
|
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
|
...O
|
|
97
|
-
} = t, [y, j] =
|
|
98
|
+
} = t, [y, j] = Q({
|
|
98
99
|
controlled: n,
|
|
99
100
|
default: !!p,
|
|
100
101
|
name: "SwitchBase",
|
|
101
102
|
state: "checked"
|
|
102
|
-
}), a =
|
|
103
|
+
}), a = A(), E = (o) => {
|
|
103
104
|
b && b(o), a && a.onFocus && a.onFocus(o);
|
|
104
|
-
}, L = (o) => {
|
|
105
|
-
h && h(o), a && a.onBlur && a.onBlur(o);
|
|
106
105
|
}, T = (o) => {
|
|
106
|
+
h && h(o), a && a.onBlur && a.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
|
a && typeof r > "u" && (r = a.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
|
...O,
|
|
134
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ K(oe, {
|
|
135
136
|
autoFocus: c,
|
|
136
137
|
checked: n,
|
|
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: v,
|
|
144
145
|
ref: I,
|
|
145
146
|
required: z,
|
|
@@ -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
|
*/
|