@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,37 +1,70 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { s as b, r as D,
|
|
4
|
-
import { m as
|
|
5
|
-
import { c as
|
|
6
|
-
import { jsxs as A, jsx as
|
|
7
|
-
import { B as
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import * as g from "react";
|
|
2
|
+
import { I as L, H as G, n as v, G as m, P as t } from "./generateUtilityClasses--6MLb_cS.js";
|
|
3
|
+
import { s as b, r as D, u as F, c as U } from "./DefaultPropsProvider-DUWovK-8.js";
|
|
4
|
+
import { m as H } from "./memoTheme-o8RCKrNG.js";
|
|
5
|
+
import { c as _ } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
6
|
+
import { jsxs as A, jsx as I } from "react/jsx-runtime";
|
|
7
|
+
import { B as K } from "./ButtonBase-CYkLbJ0U.js";
|
|
8
|
+
import { c as s } from "./capitalize-NmHVRYy8.js";
|
|
9
|
+
function w(o, n) {
|
|
10
|
+
const a = {
|
|
11
|
+
...n
|
|
12
|
+
};
|
|
13
|
+
for (const e in o)
|
|
14
|
+
if (Object.prototype.hasOwnProperty.call(o, e)) {
|
|
15
|
+
const r = e;
|
|
16
|
+
if (r === "components" || r === "slots")
|
|
17
|
+
a[r] = {
|
|
18
|
+
...o[r],
|
|
19
|
+
...a[r]
|
|
20
|
+
};
|
|
21
|
+
else if (r === "componentsProps" || r === "slotProps") {
|
|
22
|
+
const i = o[r], l = n[r];
|
|
23
|
+
if (!l)
|
|
24
|
+
a[r] = i || {};
|
|
25
|
+
else if (!i)
|
|
26
|
+
a[r] = l;
|
|
27
|
+
else {
|
|
28
|
+
a[r] = {
|
|
29
|
+
...l
|
|
30
|
+
};
|
|
31
|
+
for (const c in i)
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(i, c)) {
|
|
33
|
+
const p = c;
|
|
34
|
+
a[r][p] = w(i[p], l[p]);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
} else a[r] === void 0 && (a[r] = o[r]);
|
|
38
|
+
}
|
|
39
|
+
return a;
|
|
40
|
+
}
|
|
41
|
+
function q(o) {
|
|
42
|
+
return G("MuiButton", o);
|
|
10
43
|
}
|
|
11
|
-
const
|
|
44
|
+
const d = L("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), $ = /* @__PURE__ */ g.createContext({});
|
|
12
45
|
process.env.NODE_ENV !== "production" && ($.displayName = "ButtonGroupContext");
|
|
13
|
-
const
|
|
14
|
-
process.env.NODE_ENV !== "production" && (
|
|
15
|
-
const
|
|
46
|
+
const O = /* @__PURE__ */ g.createContext(void 0);
|
|
47
|
+
process.env.NODE_ENV !== "production" && (O.displayName = "ButtonGroupButtonContext");
|
|
48
|
+
const J = (o) => {
|
|
16
49
|
const {
|
|
17
|
-
color:
|
|
18
|
-
disableElevation:
|
|
19
|
-
fullWidth:
|
|
20
|
-
size:
|
|
21
|
-
variant:
|
|
22
|
-
classes:
|
|
23
|
-
} = o,
|
|
24
|
-
root: ["root",
|
|
50
|
+
color: n,
|
|
51
|
+
disableElevation: a,
|
|
52
|
+
fullWidth: e,
|
|
53
|
+
size: r,
|
|
54
|
+
variant: i,
|
|
55
|
+
classes: l
|
|
56
|
+
} = o, c = {
|
|
57
|
+
root: ["root", i, `${i}${s(n)}`, `size${s(r)}`, `${i}Size${s(r)}`, `color${s(n)}`, a && "disableElevation", e && "fullWidth"],
|
|
25
58
|
label: ["label"],
|
|
26
|
-
startIcon: ["icon", "startIcon", `iconSize${
|
|
27
|
-
endIcon: ["icon", "endIcon", `iconSize${
|
|
28
|
-
},
|
|
59
|
+
startIcon: ["icon", "startIcon", `iconSize${s(r)}`],
|
|
60
|
+
endIcon: ["icon", "endIcon", `iconSize${s(r)}`]
|
|
61
|
+
}, p = U(c, q, l);
|
|
29
62
|
return {
|
|
30
|
-
...
|
|
63
|
+
...l,
|
|
31
64
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
32
|
-
...
|
|
65
|
+
...p
|
|
33
66
|
};
|
|
34
|
-
},
|
|
67
|
+
}, R = [{
|
|
35
68
|
props: {
|
|
36
69
|
size: "small"
|
|
37
70
|
},
|
|
@@ -58,20 +91,20 @@ const q = (o) => {
|
|
|
58
91
|
fontSize: 22
|
|
59
92
|
}
|
|
60
93
|
}
|
|
61
|
-
}], Q = b(
|
|
94
|
+
}], Q = b(K, {
|
|
62
95
|
shouldForwardProp: (o) => D(o) || o === "classes",
|
|
63
96
|
name: "MuiButton",
|
|
64
97
|
slot: "Root",
|
|
65
|
-
overridesResolver: (o,
|
|
98
|
+
overridesResolver: (o, n) => {
|
|
66
99
|
const {
|
|
67
|
-
ownerState:
|
|
100
|
+
ownerState: a
|
|
68
101
|
} = o;
|
|
69
|
-
return [
|
|
102
|
+
return [n.root, n[a.variant], n[`${a.variant}${s(a.color)}`], n[`size${s(a.size)}`], n[`${a.variant}Size${s(a.size)}`], a.color === "inherit" && n.colorInherit, a.disableElevation && n.disableElevation, a.fullWidth && n.fullWidth];
|
|
70
103
|
}
|
|
71
|
-
})(
|
|
104
|
+
})(H(({
|
|
72
105
|
theme: o
|
|
73
106
|
}) => {
|
|
74
|
-
const
|
|
107
|
+
const n = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], a = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
75
108
|
return {
|
|
76
109
|
...o.typography.button,
|
|
77
110
|
minWidth: 64,
|
|
@@ -84,7 +117,7 @@ const q = (o) => {
|
|
|
84
117
|
"&:hover": {
|
|
85
118
|
textDecoration: "none"
|
|
86
119
|
},
|
|
87
|
-
[`&.${
|
|
120
|
+
[`&.${d.disabled}`]: {
|
|
88
121
|
color: (o.vars || o).palette.action.disabled
|
|
89
122
|
},
|
|
90
123
|
variants: [{
|
|
@@ -105,10 +138,10 @@ const q = (o) => {
|
|
|
105
138
|
"&:active": {
|
|
106
139
|
boxShadow: (o.vars || o).shadows[8]
|
|
107
140
|
},
|
|
108
|
-
[`&.${
|
|
141
|
+
[`&.${d.focusVisible}`]: {
|
|
109
142
|
boxShadow: (o.vars || o).shadows[6]
|
|
110
143
|
},
|
|
111
|
-
[`&.${
|
|
144
|
+
[`&.${d.disabled}`]: {
|
|
112
145
|
color: (o.vars || o).palette.action.disabled,
|
|
113
146
|
boxShadow: (o.vars || o).shadows[0],
|
|
114
147
|
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
@@ -124,7 +157,7 @@ const q = (o) => {
|
|
|
124
157
|
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
125
158
|
backgroundColor: "var(--variant-outlinedBg)",
|
|
126
159
|
color: "var(--variant-outlinedColor)",
|
|
127
|
-
[`&.${
|
|
160
|
+
[`&.${d.disabled}`]: {
|
|
128
161
|
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
129
162
|
}
|
|
130
163
|
}
|
|
@@ -137,22 +170,22 @@ const q = (o) => {
|
|
|
137
170
|
color: "var(--variant-textColor)",
|
|
138
171
|
backgroundColor: "var(--variant-textBg)"
|
|
139
172
|
}
|
|
140
|
-
}, ...Object.entries(o.palette).filter(
|
|
173
|
+
}, ...Object.entries(o.palette).filter(_()).map(([e]) => ({
|
|
141
174
|
props: {
|
|
142
|
-
color:
|
|
175
|
+
color: e
|
|
143
176
|
},
|
|
144
177
|
style: {
|
|
145
|
-
"--variant-textColor": (o.vars || o).palette[
|
|
146
|
-
"--variant-outlinedColor": (o.vars || o).palette[
|
|
147
|
-
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[
|
|
148
|
-
"--variant-containedColor": (o.vars || o).palette[
|
|
149
|
-
"--variant-containedBg": (o.vars || o).palette[
|
|
178
|
+
"--variant-textColor": (o.vars || o).palette[e].main,
|
|
179
|
+
"--variant-outlinedColor": (o.vars || o).palette[e].main,
|
|
180
|
+
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / 0.5)` : v(o.palette[e].main, 0.5),
|
|
181
|
+
"--variant-containedColor": (o.vars || o).palette[e].contrastText,
|
|
182
|
+
"--variant-containedBg": (o.vars || o).palette[e].main,
|
|
150
183
|
"@media (hover: hover)": {
|
|
151
184
|
"&:hover": {
|
|
152
|
-
"--variant-containedBg": (o.vars || o).palette[
|
|
153
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[
|
|
154
|
-
"--variant-outlinedBorder": (o.vars || o).palette[
|
|
155
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[
|
|
185
|
+
"--variant-containedBg": (o.vars || o).palette[e].dark,
|
|
186
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[e].main, o.palette.action.hoverOpacity),
|
|
187
|
+
"--variant-outlinedBorder": (o.vars || o).palette[e].main,
|
|
188
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[e].main, o.palette.action.hoverOpacity)
|
|
156
189
|
}
|
|
157
190
|
}
|
|
158
191
|
}
|
|
@@ -163,12 +196,12 @@ const q = (o) => {
|
|
|
163
196
|
style: {
|
|
164
197
|
color: "inherit",
|
|
165
198
|
borderColor: "currentColor",
|
|
166
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg :
|
|
199
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : n,
|
|
167
200
|
"@media (hover: hover)": {
|
|
168
201
|
"&:hover": {
|
|
169
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg :
|
|
170
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
171
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
202
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
|
|
203
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
204
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity)
|
|
172
205
|
}
|
|
173
206
|
}
|
|
174
207
|
}
|
|
@@ -235,13 +268,13 @@ const q = (o) => {
|
|
|
235
268
|
"&:hover": {
|
|
236
269
|
boxShadow: "none"
|
|
237
270
|
},
|
|
238
|
-
[`&.${
|
|
271
|
+
[`&.${d.focusVisible}`]: {
|
|
239
272
|
boxShadow: "none"
|
|
240
273
|
},
|
|
241
274
|
"&:active": {
|
|
242
275
|
boxShadow: "none"
|
|
243
276
|
},
|
|
244
|
-
[`&.${
|
|
277
|
+
[`&.${d.disabled}`]: {
|
|
245
278
|
boxShadow: "none"
|
|
246
279
|
}
|
|
247
280
|
}
|
|
@@ -257,11 +290,11 @@ const q = (o) => {
|
|
|
257
290
|
})), X = b("span", {
|
|
258
291
|
name: "MuiButton",
|
|
259
292
|
slot: "StartIcon",
|
|
260
|
-
overridesResolver: (o,
|
|
293
|
+
overridesResolver: (o, n) => {
|
|
261
294
|
const {
|
|
262
|
-
ownerState:
|
|
295
|
+
ownerState: a
|
|
263
296
|
} = o;
|
|
264
|
-
return [
|
|
297
|
+
return [n.startIcon, n[`iconSize${s(a.size)}`]];
|
|
265
298
|
}
|
|
266
299
|
})({
|
|
267
300
|
display: "inherit",
|
|
@@ -274,15 +307,15 @@ const q = (o) => {
|
|
|
274
307
|
style: {
|
|
275
308
|
marginLeft: -2
|
|
276
309
|
}
|
|
277
|
-
}, ...
|
|
310
|
+
}, ...R]
|
|
278
311
|
}), Y = b("span", {
|
|
279
312
|
name: "MuiButton",
|
|
280
313
|
slot: "EndIcon",
|
|
281
|
-
overridesResolver: (o,
|
|
314
|
+
overridesResolver: (o, n) => {
|
|
282
315
|
const {
|
|
283
|
-
ownerState:
|
|
316
|
+
ownerState: a
|
|
284
317
|
} = o;
|
|
285
|
-
return [
|
|
318
|
+
return [n.endIcon, n[`iconSize${s(a.size)}`]];
|
|
286
319
|
}
|
|
287
320
|
})({
|
|
288
321
|
display: "inherit",
|
|
@@ -295,59 +328,59 @@ const q = (o) => {
|
|
|
295
328
|
style: {
|
|
296
329
|
marginRight: -2
|
|
297
330
|
}
|
|
298
|
-
}, ...
|
|
299
|
-
}), Z = /* @__PURE__ */
|
|
300
|
-
const
|
|
301
|
-
props:
|
|
331
|
+
}, ...R]
|
|
332
|
+
}), Z = /* @__PURE__ */ g.forwardRef(function(n, a) {
|
|
333
|
+
const e = g.useContext($), r = g.useContext(O), i = w(e, n), l = F({
|
|
334
|
+
props: i,
|
|
302
335
|
name: "MuiButton"
|
|
303
336
|
}), {
|
|
304
|
-
children:
|
|
305
|
-
color:
|
|
306
|
-
component:
|
|
307
|
-
className:
|
|
308
|
-
disabled:
|
|
309
|
-
disableElevation:
|
|
337
|
+
children: c,
|
|
338
|
+
color: p = "primary",
|
|
339
|
+
component: f = "button",
|
|
340
|
+
className: N,
|
|
341
|
+
disabled: x = !1,
|
|
342
|
+
disableElevation: h = !1,
|
|
310
343
|
disableFocusRipple: S = !1,
|
|
311
344
|
endIcon: z,
|
|
312
|
-
focusVisibleClassName:
|
|
313
|
-
fullWidth:
|
|
345
|
+
focusVisibleClassName: E,
|
|
346
|
+
fullWidth: P = !1,
|
|
314
347
|
size: T = "medium",
|
|
315
348
|
startIcon: C,
|
|
316
349
|
type: B,
|
|
317
|
-
variant:
|
|
318
|
-
...
|
|
319
|
-
} =
|
|
320
|
-
...
|
|
321
|
-
color:
|
|
322
|
-
component:
|
|
323
|
-
disabled:
|
|
324
|
-
disableElevation:
|
|
350
|
+
variant: W = "text",
|
|
351
|
+
...k
|
|
352
|
+
} = l, y = {
|
|
353
|
+
...l,
|
|
354
|
+
color: p,
|
|
355
|
+
component: f,
|
|
356
|
+
disabled: x,
|
|
357
|
+
disableElevation: h,
|
|
325
358
|
disableFocusRipple: S,
|
|
326
|
-
fullWidth:
|
|
359
|
+
fullWidth: P,
|
|
327
360
|
size: T,
|
|
328
361
|
type: B,
|
|
329
|
-
variant:
|
|
330
|
-
},
|
|
331
|
-
className:
|
|
332
|
-
ownerState:
|
|
362
|
+
variant: W
|
|
363
|
+
}, u = J(y), M = C && /* @__PURE__ */ I(X, {
|
|
364
|
+
className: u.startIcon,
|
|
365
|
+
ownerState: y,
|
|
333
366
|
children: C
|
|
334
|
-
}), V = z && /* @__PURE__ */
|
|
335
|
-
className:
|
|
336
|
-
ownerState:
|
|
367
|
+
}), V = z && /* @__PURE__ */ I(Y, {
|
|
368
|
+
className: u.endIcon,
|
|
369
|
+
ownerState: y,
|
|
337
370
|
children: z
|
|
338
|
-
}),
|
|
371
|
+
}), j = r || "";
|
|
339
372
|
return /* @__PURE__ */ A(Q, {
|
|
340
|
-
ownerState:
|
|
341
|
-
className:
|
|
342
|
-
component:
|
|
343
|
-
disabled:
|
|
373
|
+
ownerState: y,
|
|
374
|
+
className: m(e.className, u.root, N, j),
|
|
375
|
+
component: f,
|
|
376
|
+
disabled: x,
|
|
344
377
|
focusRipple: !S,
|
|
345
|
-
focusVisibleClassName:
|
|
346
|
-
ref:
|
|
378
|
+
focusVisibleClassName: m(u.focusVisible, E),
|
|
379
|
+
ref: a,
|
|
347
380
|
type: B,
|
|
348
|
-
...
|
|
349
|
-
classes:
|
|
350
|
-
children: [M,
|
|
381
|
+
...k,
|
|
382
|
+
classes: u,
|
|
383
|
+
children: [M, c, V]
|
|
351
384
|
});
|
|
352
385
|
});
|
|
353
386
|
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
@@ -358,42 +391,42 @@ process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
|
358
391
|
/**
|
|
359
392
|
* The content of the component.
|
|
360
393
|
*/
|
|
361
|
-
children:
|
|
394
|
+
children: t.node,
|
|
362
395
|
/**
|
|
363
396
|
* Override or extend the styles applied to the component.
|
|
364
397
|
*/
|
|
365
|
-
classes:
|
|
398
|
+
classes: t.object,
|
|
366
399
|
/**
|
|
367
400
|
* @ignore
|
|
368
401
|
*/
|
|
369
|
-
className:
|
|
402
|
+
className: t.string,
|
|
370
403
|
/**
|
|
371
404
|
* The color of the component.
|
|
372
405
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
373
406
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
374
407
|
* @default 'primary'
|
|
375
408
|
*/
|
|
376
|
-
color:
|
|
409
|
+
color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
|
|
377
410
|
/**
|
|
378
411
|
* The component used for the root node.
|
|
379
412
|
* Either a string to use a HTML element or a component.
|
|
380
413
|
*/
|
|
381
|
-
component:
|
|
414
|
+
component: t.elementType,
|
|
382
415
|
/**
|
|
383
416
|
* If `true`, the component is disabled.
|
|
384
417
|
* @default false
|
|
385
418
|
*/
|
|
386
|
-
disabled:
|
|
419
|
+
disabled: t.bool,
|
|
387
420
|
/**
|
|
388
421
|
* If `true`, no elevation is used.
|
|
389
422
|
* @default false
|
|
390
423
|
*/
|
|
391
|
-
disableElevation:
|
|
424
|
+
disableElevation: t.bool,
|
|
392
425
|
/**
|
|
393
426
|
* If `true`, the keyboard focus ripple is disabled.
|
|
394
427
|
* @default false
|
|
395
428
|
*/
|
|
396
|
-
disableFocusRipple:
|
|
429
|
+
disableFocusRipple: t.bool,
|
|
397
430
|
/**
|
|
398
431
|
* If `true`, the ripple effect is disabled.
|
|
399
432
|
*
|
|
@@ -401,50 +434,51 @@ process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
|
401
434
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
402
435
|
* @default false
|
|
403
436
|
*/
|
|
404
|
-
disableRipple:
|
|
437
|
+
disableRipple: t.bool,
|
|
405
438
|
/**
|
|
406
439
|
* Element placed after the children.
|
|
407
440
|
*/
|
|
408
|
-
endIcon:
|
|
441
|
+
endIcon: t.node,
|
|
409
442
|
/**
|
|
410
443
|
* @ignore
|
|
411
444
|
*/
|
|
412
|
-
focusVisibleClassName:
|
|
445
|
+
focusVisibleClassName: t.string,
|
|
413
446
|
/**
|
|
414
447
|
* If `true`, the button will take up the full width of its container.
|
|
415
448
|
* @default false
|
|
416
449
|
*/
|
|
417
|
-
fullWidth:
|
|
450
|
+
fullWidth: t.bool,
|
|
418
451
|
/**
|
|
419
452
|
* The URL to link to when the button is clicked.
|
|
420
453
|
* If defined, an `a` element will be used as the root node.
|
|
421
454
|
*/
|
|
422
|
-
href:
|
|
455
|
+
href: t.string,
|
|
423
456
|
/**
|
|
424
457
|
* The size of the component.
|
|
425
458
|
* `small` is equivalent to the dense button styling.
|
|
426
459
|
* @default 'medium'
|
|
427
460
|
*/
|
|
428
|
-
size:
|
|
461
|
+
size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
|
|
429
462
|
/**
|
|
430
463
|
* Element placed before the children.
|
|
431
464
|
*/
|
|
432
|
-
startIcon:
|
|
465
|
+
startIcon: t.node,
|
|
433
466
|
/**
|
|
434
467
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
435
468
|
*/
|
|
436
|
-
sx:
|
|
469
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
437
470
|
/**
|
|
438
471
|
* @ignore
|
|
439
472
|
*/
|
|
440
|
-
type:
|
|
473
|
+
type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
|
|
441
474
|
/**
|
|
442
475
|
* The variant to use.
|
|
443
476
|
* @default 'text'
|
|
444
477
|
*/
|
|
445
|
-
variant:
|
|
478
|
+
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
446
479
|
});
|
|
447
480
|
export {
|
|
448
481
|
Z as B,
|
|
449
|
-
$ as a
|
|
482
|
+
$ as a,
|
|
483
|
+
w as r
|
|
450
484
|
};
|