@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
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import S from "../Button/Button.es.js";
|
|
3
|
+
import { C as T } from "../../Card-DO4cAmNC.js";
|
|
4
|
+
import * as u from "react";
|
|
5
|
+
import { I as f, H as C, G as y, P as o } from "../../generateUtilityClasses--6MLb_cS.js";
|
|
6
|
+
import { s as v, u as g, c as b } from "../../DefaultPropsProvider-DUWovK-8.js";
|
|
7
|
+
import { T as c } from "../../Typography-DWXYj92v.js";
|
|
8
|
+
function N(t) {
|
|
9
|
+
return C("MuiCardActions", t);
|
|
10
|
+
}
|
|
11
|
+
f("MuiCardActions", ["root", "spacing"]);
|
|
12
|
+
const j = (t) => {
|
|
13
|
+
const {
|
|
14
|
+
classes: e,
|
|
15
|
+
disableSpacing: s
|
|
16
|
+
} = t;
|
|
17
|
+
return b({
|
|
18
|
+
root: ["root", !s && "spacing"]
|
|
19
|
+
}, N, e);
|
|
20
|
+
}, M = v("div", {
|
|
21
|
+
name: "MuiCardActions",
|
|
22
|
+
slot: "Root",
|
|
23
|
+
overridesResolver: (t, e) => {
|
|
24
|
+
const {
|
|
25
|
+
ownerState: s
|
|
26
|
+
} = t;
|
|
27
|
+
return [e.root, !s.disableSpacing && e.spacing];
|
|
28
|
+
}
|
|
29
|
+
})({
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
padding: 8,
|
|
33
|
+
variants: [{
|
|
34
|
+
props: {
|
|
35
|
+
disableSpacing: !1
|
|
36
|
+
},
|
|
37
|
+
style: {
|
|
38
|
+
"& > :not(style) ~ :not(style)": {
|
|
39
|
+
marginLeft: 8
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}]
|
|
43
|
+
}), h = /* @__PURE__ */ u.forwardRef(function(e, s) {
|
|
44
|
+
const r = g({
|
|
45
|
+
props: e,
|
|
46
|
+
name: "MuiCardActions"
|
|
47
|
+
}), {
|
|
48
|
+
disableSpacing: l = !1,
|
|
49
|
+
className: i,
|
|
50
|
+
...d
|
|
51
|
+
} = r, a = {
|
|
52
|
+
...r,
|
|
53
|
+
disableSpacing: l
|
|
54
|
+
}, p = j(a);
|
|
55
|
+
return /* @__PURE__ */ n(M, {
|
|
56
|
+
className: y(p.root, i),
|
|
57
|
+
ownerState: a,
|
|
58
|
+
ref: s,
|
|
59
|
+
...d
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
63
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
64
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
65
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
66
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
67
|
+
/**
|
|
68
|
+
* The content of the component.
|
|
69
|
+
*/
|
|
70
|
+
children: o.node,
|
|
71
|
+
/**
|
|
72
|
+
* Override or extend the styles applied to the component.
|
|
73
|
+
*/
|
|
74
|
+
classes: o.object,
|
|
75
|
+
/**
|
|
76
|
+
* @ignore
|
|
77
|
+
*/
|
|
78
|
+
className: o.string,
|
|
79
|
+
/**
|
|
80
|
+
* If `true`, the actions do not have additional margin.
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
disableSpacing: o.bool,
|
|
84
|
+
/**
|
|
85
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
86
|
+
*/
|
|
87
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
88
|
+
});
|
|
89
|
+
function R(t) {
|
|
90
|
+
return C("MuiCardContent", t);
|
|
91
|
+
}
|
|
92
|
+
f("MuiCardContent", ["root"]);
|
|
93
|
+
const w = (t) => {
|
|
94
|
+
const {
|
|
95
|
+
classes: e
|
|
96
|
+
} = t;
|
|
97
|
+
return b({
|
|
98
|
+
root: ["root"]
|
|
99
|
+
}, R, e);
|
|
100
|
+
}, A = v("div", {
|
|
101
|
+
name: "MuiCardContent",
|
|
102
|
+
slot: "Root",
|
|
103
|
+
overridesResolver: (t, e) => e.root
|
|
104
|
+
})({
|
|
105
|
+
padding: 16,
|
|
106
|
+
"&:last-child": {
|
|
107
|
+
paddingBottom: 24
|
|
108
|
+
}
|
|
109
|
+
}), x = /* @__PURE__ */ u.forwardRef(function(e, s) {
|
|
110
|
+
const r = g({
|
|
111
|
+
props: e,
|
|
112
|
+
name: "MuiCardContent"
|
|
113
|
+
}), {
|
|
114
|
+
className: l,
|
|
115
|
+
component: i = "div",
|
|
116
|
+
...d
|
|
117
|
+
} = r, a = {
|
|
118
|
+
...r,
|
|
119
|
+
component: i
|
|
120
|
+
}, p = w(a);
|
|
121
|
+
return /* @__PURE__ */ n(A, {
|
|
122
|
+
as: i,
|
|
123
|
+
className: y(p.root, l),
|
|
124
|
+
ownerState: a,
|
|
125
|
+
ref: s,
|
|
126
|
+
...d
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
130
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
131
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
132
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
133
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
134
|
+
/**
|
|
135
|
+
* The content of the component.
|
|
136
|
+
*/
|
|
137
|
+
children: o.node,
|
|
138
|
+
/**
|
|
139
|
+
* Override or extend the styles applied to the component.
|
|
140
|
+
*/
|
|
141
|
+
classes: o.object,
|
|
142
|
+
/**
|
|
143
|
+
* @ignore
|
|
144
|
+
*/
|
|
145
|
+
className: o.string,
|
|
146
|
+
/**
|
|
147
|
+
* The component used for the root node.
|
|
148
|
+
* Either a string to use a HTML element or a component.
|
|
149
|
+
*/
|
|
150
|
+
component: o.elementType,
|
|
151
|
+
/**
|
|
152
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
153
|
+
*/
|
|
154
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
155
|
+
});
|
|
156
|
+
const O = (t) => /* @__PURE__ */ m(T, { sx: { minWidth: 275 }, ...t, children: [
|
|
157
|
+
/* @__PURE__ */ m(x, { children: [
|
|
158
|
+
/* @__PURE__ */ n(c, { gutterBottom: !0, sx: { color: "text.secondary", fontSize: 14 }, children: "Word of the Day" }),
|
|
159
|
+
/* @__PURE__ */ n(c, { variant: "h5", component: "div", children: "be-nev-o-lent" }),
|
|
160
|
+
/* @__PURE__ */ n(c, { sx: { color: "text.secondary", mb: 1.5 }, children: "adjective" }),
|
|
161
|
+
/* @__PURE__ */ m(c, { variant: "body2", children: [
|
|
162
|
+
"well meaning and kindly.",
|
|
163
|
+
/* @__PURE__ */ n("br", {}),
|
|
164
|
+
'"a benevolent smile"'
|
|
165
|
+
] })
|
|
166
|
+
] }),
|
|
167
|
+
/* @__PURE__ */ n(h, { children: /* @__PURE__ */ n(S, { variant: "text", size: "small", children: "Learn More" }) })
|
|
168
|
+
] }), z = {
|
|
169
|
+
title: "Components/Card",
|
|
170
|
+
component: O,
|
|
171
|
+
argTypes: {
|
|
172
|
+
elevation: {
|
|
173
|
+
control: "number"
|
|
174
|
+
},
|
|
175
|
+
square: {
|
|
176
|
+
control: "boolean"
|
|
177
|
+
},
|
|
178
|
+
variant: {
|
|
179
|
+
control: "select",
|
|
180
|
+
options: ["elevation", "outlined"]
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}, I = {
|
|
184
|
+
args: {
|
|
185
|
+
elevation: 1,
|
|
186
|
+
square: !1,
|
|
187
|
+
variant: "elevation"
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
export {
|
|
191
|
+
I as Default,
|
|
192
|
+
z as default
|
|
193
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),s=require("../../Checkbox-Btg05OjV.cjs"),r=e=>o.jsx(s.Checkbox,{...e}),c={title:"Components/Checkbox",component:r,argTypes:{checked:{control:"boolean"},color:{control:"select",options:["primary","secondary","success","error","info","warning"]},disabled:{control:"boolean"},disableRipple:{control:"boolean"},required:{control:"boolean"},size:{control:"select",options:["medium","small"]}}},l={args:{checked:void 0,color:"primary",disabled:!1,disableRipple:!1,required:!1,size:"medium"}},t={args:{checked:!0}},a={args:{disabled:!0}},i={args:{checked:!0,disabled:!0}};exports.Checked=t;exports.Default=l;exports.Disabled=a;exports.DisabledChecked=i;exports.default=c;
|
|
@@ -1,19 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { C as
|
|
3
|
-
const s = (e) => /* @__PURE__ */
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { C as r } from "../../Checkbox-CLM5GjuC.js";
|
|
3
|
+
const s = (e) => /* @__PURE__ */ o(r, { ...e }), t = {
|
|
4
4
|
title: "Components/Checkbox",
|
|
5
|
-
component: s
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
component: s,
|
|
6
|
+
argTypes: {
|
|
7
|
+
checked: {
|
|
8
|
+
control: "boolean"
|
|
9
|
+
},
|
|
10
|
+
color: {
|
|
11
|
+
control: "select",
|
|
12
|
+
options: ["primary", "secondary", "success", "error", "info", "warning"]
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
control: "boolean"
|
|
16
|
+
},
|
|
17
|
+
disableRipple: {
|
|
18
|
+
control: "boolean"
|
|
19
|
+
},
|
|
20
|
+
required: {
|
|
21
|
+
control: "boolean"
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
control: "select",
|
|
25
|
+
options: ["medium", "small"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}, a = {
|
|
29
|
+
args: {
|
|
30
|
+
checked: void 0,
|
|
31
|
+
color: "primary",
|
|
32
|
+
disabled: !1,
|
|
33
|
+
disableRipple: !1,
|
|
34
|
+
required: !1,
|
|
35
|
+
size: "medium"
|
|
36
|
+
}
|
|
8
37
|
}, n = {
|
|
9
38
|
args: {
|
|
10
39
|
checked: !0
|
|
11
40
|
}
|
|
12
|
-
},
|
|
41
|
+
}, i = {
|
|
13
42
|
args: {
|
|
14
43
|
disabled: !0
|
|
15
44
|
}
|
|
16
|
-
},
|
|
45
|
+
}, d = {
|
|
17
46
|
args: {
|
|
18
47
|
checked: !0,
|
|
19
48
|
disabled: !0
|
|
@@ -21,8 +50,8 @@ const s = (e) => /* @__PURE__ */ t(o, { ...e }), a = {
|
|
|
21
50
|
};
|
|
22
51
|
export {
|
|
23
52
|
n as Checked,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
53
|
+
a as Default,
|
|
54
|
+
i as Disabled,
|
|
55
|
+
d as DisabledChecked,
|
|
56
|
+
t as default
|
|
28
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-BXTOQETi.cjs"),t={title:"Components/DatePicker",component:e.DatePicker},a={args:{adapterLocale:"fr"}};exports.Default=a;exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("react"),t=require("../Button/Button.cjs.js"),o=require("../../DialogContent-gRISmOoj.cjs"),l=require("../../DialogTitle-Dhxh1DVb.cjs"),u=a=>{const[s,i]=c.useState(!1),r=()=>i(!0),n=()=>i(!1);return e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"outlined",onClick:r,children:"Open dialog"}),e.jsxs(o.Dialog,{...a,open:s,onClose:n,children:[e.jsx(l.DialogTitle,{children:"Dialog title"}),e.jsx(o.DialogContent,{children:e.jsxs(l.DialogContentText,{children:["Dialog content text",e.jsx("br",{}),e.jsx("br",{}),"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."]})}),e.jsxs(o.DialogActions,{children:[e.jsx(t,{variant:"text",onClick:n,children:"Cancel"}),e.jsx(t,{variant:"text",onClick:()=>!0,children:"Save"})]})]})]})},d={title:"Components/Dialog",component:u,argTypes:{disableEscapeKeyDown:{control:"boolean"},fullScreen:{control:"boolean"},fullWidth:{control:"boolean"},maxWidth:{control:"select",options:["xs","sm","md","lg","xl",!1]}}},m={args:{disableEscapeKeyDown:!1,fullScreen:!1,fullWidth:!1,maxWidth:"sm"}};exports.Default=m;exports.default=d;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DialogProps } from '@mui/material/Dialog';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const Dialog: (props: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof Dialog>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Dialog>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as o, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import t from "../Button/Button.es.js";
|
|
4
|
+
import { D as u, b as d, a as m } from "../../DialogContent-D_JmqJt6.js";
|
|
5
|
+
import { a as p, D as f } from "../../DialogTitle-CID6RFNo.js";
|
|
6
|
+
const g = (a) => {
|
|
7
|
+
const [n, i] = c(!1), r = () => i(!0), l = () => i(!1);
|
|
8
|
+
return /* @__PURE__ */ o(s, { children: [
|
|
9
|
+
/* @__PURE__ */ e(t, { variant: "outlined", onClick: r, children: "Open dialog" }),
|
|
10
|
+
/* @__PURE__ */ o(u, { ...a, open: n, onClose: l, children: [
|
|
11
|
+
/* @__PURE__ */ e(p, { children: "Dialog title" }),
|
|
12
|
+
/* @__PURE__ */ e(d, { children: /* @__PURE__ */ o(f, { children: [
|
|
13
|
+
"Dialog content text",
|
|
14
|
+
/* @__PURE__ */ e("br", {}),
|
|
15
|
+
/* @__PURE__ */ e("br", {}),
|
|
16
|
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
|
17
|
+
] }) }),
|
|
18
|
+
/* @__PURE__ */ o(m, { children: [
|
|
19
|
+
/* @__PURE__ */ e(t, { variant: "text", onClick: l, children: "Cancel" }),
|
|
20
|
+
/* @__PURE__ */ e(t, { variant: "text", onClick: () => !0, children: "Save" })
|
|
21
|
+
] })
|
|
22
|
+
] })
|
|
23
|
+
] });
|
|
24
|
+
}, v = {
|
|
25
|
+
title: "Components/Dialog",
|
|
26
|
+
component: g,
|
|
27
|
+
argTypes: {
|
|
28
|
+
disableEscapeKeyDown: {
|
|
29
|
+
control: "boolean"
|
|
30
|
+
},
|
|
31
|
+
fullScreen: {
|
|
32
|
+
control: "boolean"
|
|
33
|
+
},
|
|
34
|
+
fullWidth: {
|
|
35
|
+
control: "boolean"
|
|
36
|
+
},
|
|
37
|
+
maxWidth: {
|
|
38
|
+
control: "select",
|
|
39
|
+
options: ["xs", "sm", "md", "lg", "xl", !1]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, q = {
|
|
43
|
+
args: {
|
|
44
|
+
disableEscapeKeyDown: !1,
|
|
45
|
+
fullScreen: !1,
|
|
46
|
+
fullWidth: !1,
|
|
47
|
+
maxWidth: "sm"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
q as Default,
|
|
52
|
+
v as default
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Divider-BjxxEFnr.cjs"),t={title:"Components/Divider",component:e.Divider,argTypes:{absolute:{control:"boolean"},children:{control:"text"},flexItem:{control:"boolean"},orientation:{control:"select",options:["horizontal","vertical"]},textAlign:{control:"select",options:["center","left","right"]},variant:{control:"select",options:["fullWidth","inset","middle"]}}},o={args:{absolute:!1,children:void 0,flexItem:!1,orientation:"horizontal",textAlign:"center",variant:"fullWidth"}};exports.Default=o;exports.default=t;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { D as t } from "../../Divider-HhF8ckeh.js";
|
|
2
|
+
const e = {
|
|
3
|
+
title: "Components/Divider",
|
|
4
|
+
component: t,
|
|
5
|
+
argTypes: {
|
|
6
|
+
absolute: {
|
|
7
|
+
control: "boolean"
|
|
8
|
+
},
|
|
9
|
+
children: {
|
|
10
|
+
control: "text"
|
|
11
|
+
},
|
|
12
|
+
flexItem: {
|
|
13
|
+
control: "boolean"
|
|
14
|
+
},
|
|
15
|
+
orientation: {
|
|
16
|
+
control: "select",
|
|
17
|
+
options: ["horizontal", "vertical"]
|
|
18
|
+
},
|
|
19
|
+
textAlign: {
|
|
20
|
+
control: "select",
|
|
21
|
+
options: ["center", "left", "right"]
|
|
22
|
+
},
|
|
23
|
+
variant: {
|
|
24
|
+
control: "select",
|
|
25
|
+
options: ["fullWidth", "inset", "middle"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}, l = {
|
|
29
|
+
args: {
|
|
30
|
+
absolute: !1,
|
|
31
|
+
children: void 0,
|
|
32
|
+
flexItem: !1,
|
|
33
|
+
orientation: "horizontal",
|
|
34
|
+
textAlign: "center",
|
|
35
|
+
variant: "fullWidth"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
l as Default,
|
|
40
|
+
e as default
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),m=require("../../Checkbox-Btg05OjV.cjs"),T=require("../../Radio-BbZnB74m.cjs"),k=require("react"),o=require("../../generateUtilityClasses-DEQ18TAF.cjs"),S=require("../../createSimplePaletteValueFilter-PTK3TAhW.cjs"),P=require("../../SwitchBase-BpMNk4XV.cjs"),d=require("../../memoTheme-D99chbOP.cjs"),c=require("../../DefaultPropsProvider-DE-Tx_ov.cjs"),n=require("../../capitalize-DASFtB-F.cjs"),$=require("../../useEnhancedEffect-C9MKL5N4.cjs"),C=require("../../FormControlLabel-C-eZV5Xc.cjs");function x(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const j=x(k);function z(e){return o.generateUtilityClass("MuiSwitch",e)}const r=o.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),O=e=>{const{classes:t,edge:a,size:i,color:u,checked:b,disabled:y}=e,h={root:["root",a&&`edge${n.capitalize(a)}`,`size${n.capitalize(i)}`],switchBase:["switchBase",`color${n.capitalize(u)}`,b&&"checked",y&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},g=c.composeClasses(h,z,t);return{...t,...g}},R=c.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.edge&&t[`edge${n.capitalize(a.edge)}`],t[`size${n.capitalize(a.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${r.thumb}`]:{width:16,height:16},[`& .${r.switchBase}`]:{padding:4,[`&.${r.checked}`]:{transform:"translateX(16px)"}}}}]}),q=c.styled(P.SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.switchBase,{[`& .${r.input}`]:t.input},a.color!=="default"&&t[`color${n.capitalize(a.color)}`]]}})(d.memoTheme(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${r.checked}`]:{transform:"translateX(20px)"},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${r.checked} + .${r.track}`]:{opacity:.5},[`&.${r.disabled} + .${r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${r.input}`]:{left:"-100%",width:"300%"}})),d.memoTheme(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(S.createSimplePaletteValueFilter(["light"])).map(([t])=>({props:{color:t},style:{[`&.${r.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?o.lighten(e.palette[t].main,.62):o.darken(e.palette[t].main,.55)}`}},[`&.${r.checked} + .${r.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),B=c.styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(d.memoTheme(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),M=c.styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(d.memoTheme(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),w=j.forwardRef(function(t,a){const i=c.useDefaultProps({props:t,name:"MuiSwitch"}),{className:u,color:b="primary",edge:y=!1,size:h="medium",sx:g,...f}=i,l={...i,color:b,edge:y,size:h},p=O(l),v=s.jsx(M,{className:p.thumb,ownerState:l});return s.jsxs(R,{className:o.clsx(p.root,u),sx:g,ownerState:l,children:[s.jsx(q,{type:"checkbox",icon:v,checkedIcon:v,ref:a,ownerState:l,...f,classes:{...p,root:p.switchBase}}),s.jsx(B,{className:p.track,ownerState:l})]})});process.env.NODE_ENV!=="production"&&(w.propTypes={checked:o.PropTypes.bool,checkedIcon:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),defaultChecked:o.PropTypes.bool,disabled:o.PropTypes.bool,disableRipple:o.PropTypes.bool,edge:o.PropTypes.oneOf(["end","start",!1]),icon:o.PropTypes.node,id:o.PropTypes.string,inputProps:o.PropTypes.object,inputRef:$.refType,onChange:o.PropTypes.func,required:o.PropTypes.bool,size:o.PropTypes.oneOfType([o.PropTypes.oneOf(["medium","small"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object]),value:o.PropTypes.any});const D=e=>s.jsx(C.FormControlLabel,{...e}),L={title:"Components/FormControlLabel",component:D,argTypes:{control:{control:"object"},disabled:{control:"boolean"},disableTypography:{control:"boolean"},label:{control:"object"},labelPlacement:{control:"select",options:["bottom","end","start","top"]},required:{control:"boolean"}}},N={args:{control:s.jsx(m.Checkbox,{}),checked:void 0,disabled:void 0,disableTypography:void 0,label:"Label",labelPlacement:"end",required:void 0}},F={args:{control:s.jsx(T.Radio,{}),label:"Label"}},_={args:{control:s.jsx(w,{}),label:"Label"}};exports.Checkbox=N;exports.Radio=F;exports.Switch=_;exports.default=L;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const FormControlLabel: (props: FormControlLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof FormControlLabel>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof FormControlLabel>;
|
|
7
|
+
export declare const Checkbox: Story;
|
|
8
|
+
export declare const Radio: Story;
|
|
9
|
+
export declare const Switch: Story;
|