@cgi-learning-hub/ui 1.3.3 → 1.3.4
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-BlKt7y1x.js +360 -0
- package/dist/Backdrop-vSE8W9jq.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DErdbtsw.js} +9 -9
- package/dist/{Box-H49yQEt_.cjs → Box-DMYs7NTb.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button-CiqVGfRs.js} +14 -14
- package/dist/{Button-qc45QbX6.cjs → Button-D3dbHQM1.cjs} +1 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +74 -0
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-DUPJVOlc.js} +232 -240
- package/dist/Card-Cnh4u4kb.cjs +1 -0
- package/dist/Card-mGRk1RuE.js +74 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-aJ1r7ufI.js} +12 -12
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-s_RdgUlw.cjs} +1 -1
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-CfODO7vI.js} +17 -17
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DHgcUb1c.cjs} +7 -7
- package/dist/DatePicker-Dyf9Vhld.js +10845 -0
- package/dist/DatePicker-juzW4bLC.cjs +14 -0
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +17 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-xJkZOrdv.js} +146 -143
- package/dist/Delete-BOQTx9ze.js +8 -0
- package/dist/Delete-DyzDL8-Y.cjs +1 -0
- package/dist/DialogContent-D1KFPXhr.js +602 -0
- package/dist/DialogContent-Dphl2SKX.cjs +1 -0
- package/dist/DialogTitle-AQ-YU9PH.js +134 -0
- package/dist/DialogTitle-C8AdXsDz.cjs +1 -0
- package/dist/Divider-Bdp8beK-.cjs +1 -0
- package/dist/Divider-C0R1SUa4.js +296 -0
- package/dist/FormControlLabel-BlO93LTi.cjs +1 -0
- package/dist/FormControlLabel-w-X91z27.js +261 -0
- package/dist/FormGroup-6NoANcYk.js +95 -0
- package/dist/FormGroup-D0zSGn42.cjs +1 -0
- package/dist/FormLabel-BkiH7wl7.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-CoLJ9tA8.js} +36 -42
- package/dist/Grow-DfACa72Q.cjs +1 -0
- package/dist/Grow-SW33sONG.js +193 -0
- package/dist/IconButton-DRs0xB4z.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-DjeMTpI5.js} +5 -5
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-B1pggfEX.cjs} +1 -1
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-ByiVSgFT.js} +4 -4
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-CvU0-Zg6.js} +59 -59
- package/dist/InputBase-Xfjv-RYp.cjs +3 -0
- package/dist/Link-Dmwt9wxb.js +266 -0
- package/dist/Link-Z_UCBvgV.cjs +1 -0
- package/dist/Menu-4U27Dst1.js +965 -0
- package/dist/Menu-DREdNbqu.cjs +7 -0
- package/dist/MenuItem-CN75Du-9.cjs +1 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-CqPsuuC1.js} +69 -74
- package/dist/Modal-DWqBsogu.cjs +2 -0
- package/dist/Modal-D_mqYIr2.js +750 -0
- package/dist/Paper-CjMuucS5.cjs +2 -0
- package/dist/Paper-D973Ow-i.js +185 -0
- package/dist/Popper-B8oNZqtn.js +1407 -0
- package/dist/Popper-hzM0y1hA.cjs +4 -0
- package/dist/Portal-BKbBRbWN.js +86 -0
- package/dist/Portal-Bv2VRYHH.cjs +1 -0
- package/dist/Radio-BrzQH9pY.js +312 -0
- package/dist/Radio-DxbXYNhR.cjs +1 -0
- package/dist/Select-CL4E8NNL.cjs +3 -0
- package/dist/Select-CgAPAUTr.js +2602 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-CYXQpKS2.js} +18 -18
- package/dist/{Stack-CEjx3KHM.cjs → Stack-WrITLr1B.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-CGa9A6SL.js} +10 -10
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-Cqh9rxOh.cjs} +1 -1
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-hvz89Dvu.js} +2185 -3518
- package/dist/TableSortLabel-mAzX4tAl.cjs +98 -0
- package/dist/Tabs-BNqwYd2G.cjs +4 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BPI2IyPx.js} +284 -282
- package/dist/{TextField-C-B529_r.js → TextField-C4nIxR_t.js} +24 -24
- package/dist/{TextField-BVAkADOb.cjs → TextField-Dy0Iblqt.cjs} +1 -1
- package/dist/Tooltip-Bdrv-e2a.js +720 -0
- package/dist/Tooltip-vg27N3PU.cjs +4 -0
- package/dist/{Typography-5OodZ94T.cjs → Typography-BF9bdWxl.cjs} +1 -1
- package/dist/{Typography-C_ESP41L.js → Typography-CUdlQxLM.js} +4 -4
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- 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 +12 -12
- 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 +1 -0
- package/dist/components/index.es.js +277 -265
- 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 +378 -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-GU7fqNnI.cjs → createSvgIcon-BMmqQ2z0.cjs} +1 -1
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CVd3Lo1D.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CyDs_RPD.cjs +1 -0
- package/dist/dividerClasses-kN_Ky2Bl.js +9 -0
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +1 -0
- package/dist/elementTypeAcceptingRef-modXfN2G.js +23 -0
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-6YOo46ig.cjs} +1 -1
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-CHv0k-C6.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 → identifier-Bn0tF6ls.js} +612 -608
- package/dist/{identifier-BQH88SE0.cjs → identifier-Dax8VlUh.cjs} +19 -19
- package/dist/index-BNojWn2E.js +2152 -0
- package/dist/index-C5dNuV-2.cjs +5 -0
- package/dist/{index-BUxqDIr9.js → index-CVpJYeY2.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-D3PBNx_m.cjs} +1 -1
- package/dist/{index-CNv8ppur.cjs → index-OLlWw08I.cjs} +1 -1
- package/dist/{index-CRT92bm7.js → index-waINWr3i.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +277 -265
- 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-BPA1FjB4.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-CMJVTZEg.js} +1 -1
- 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/refType-BmrOFNz6.js +7 -0
- package/dist/refType-Dm84STBj.cjs +1 -0
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-4nhUsl3a.cjs} +1 -1
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-DHoZOPOi.js} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-42jgZftI.cjs → useSlot-CJAXUvYJ.cjs} +1 -1
- package/dist/{useSlot-Co14PUn6.js → useSlot-t9oGnIgq.js} +2 -2
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-BIogn5Me.cjs} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-Bz4LKMiC.cjs} +1 -1
- package/dist/{useTheme-oM_SFWy4.js → useTheme-CBsFvF7I.js} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-L3EQmvnN.js} +3 -3
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-5Bku71LW.js} +2 -2
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-C692LOYf.cjs} +1 -1
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-DNFKz8wS.cjs} +1 -1
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-I9EHeqzU.js} +3 -3
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-3Y5y4gWq.js} +4 -4
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-CxOQget6.cjs} +1 -1
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-CE_a8glN.js +391 -0
- package/dist/utils-CusX8Edy.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- 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/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/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- 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/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/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.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-mGRk1RuE.js";
|
|
4
|
+
import * as u from "react";
|
|
5
|
+
import { I as f, H as C, G as y, P as o } from "../../identifier-Bn0tF6ls.js";
|
|
6
|
+
import { s as v, u as g, c as b } from "../../DefaultPropsProvider-xJkZOrdv.js";
|
|
7
|
+
import { T as c } from "../../Typography-CUdlQxLM.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-s_RdgUlw.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-aJ1r7ufI.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-juzW4bLC.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-Dphl2SKX.cjs"),l=require("../../DialogTitle-C8AdXsDz.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-D1KFPXhr.js";
|
|
5
|
+
import { a as p, D as f } from "../../DialogTitle-AQ-YU9PH.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-Bdp8beK-.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-C0R1SUa4.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"),f=require("../../Checkbox-s_RdgUlw.cjs"),m=require("../../Radio-DxbXYNhR.cjs"),T=require("react"),o=require("../../identifier-Dax8VlUh.cjs"),k=require("../../createSimplePaletteValueFilter-PTK3TAhW.cjs"),S=require("../../SwitchBase-Cqh9rxOh.cjs"),p=require("../../memoTheme-BPA1FjB4.cjs"),n=require("../../DefaultPropsProvider-Biv7NHew.cjs"),P=require("../../refType-Dm84STBj.cjs"),$=require("../../FormControlLabel-BlO93LTi.cjs");function C(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=C(T);function j(e){return o.generateUtilityClass("MuiSwitch",e)}const a=o.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),z=e=>{const{classes:t,edge:r,size:i,color:d,checked:u,disabled:b}=e,y={root:["root",r&&`edge${o.capitalize(r)}`,`size${o.capitalize(i)}`],switchBase:["switchBase",`color${o.capitalize(d)}`,u&&"checked",b&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=n.composeClasses(y,j,t);return{...t,...h}},O=n.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${o.capitalize(r.edge)}`],t[`size${o.capitalize(r.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,[`& .${a.thumb}`]:{width:16,height:16},[`& .${a.switchBase}`]:{padding:4,[`&.${a.checked}`]:{transform:"translateX(16px)"}}}}]}),R=n.styled(S.SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${a.input}`]:t.input},r.color!=="default"&&t[`color${o.capitalize(r.color)}`]]}})(p.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}),[`&.${a.checked}`]:{transform:"translateX(20px)"},[`&.${a.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${a.checked} + .${a.track}`]:{opacity:.5},[`&.${a.disabled} + .${a.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${a.input}`]:{left:"-100%",width:"300%"}})),p.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(k.createSimplePaletteValueFilter(["light"])).map(([t])=>({props:{color:t},style:{[`&.${a.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"}},[`&.${a.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)}`}},[`&.${a.checked} + .${a.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),q=n.styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(p.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}`}))),B=n.styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(p.memoTheme(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),v=x.forwardRef(function(t,r){const i=n.useDefaultProps({props:t,name:"MuiSwitch"}),{className:d,color:u="primary",edge:b=!1,size:y="medium",sx:h,...w}=i,c={...i,color:u,edge:b,size:y},l=z(c),g=s.jsx(B,{className:l.thumb,ownerState:c});return s.jsxs(O,{className:o.clsx(l.root,d),sx:h,ownerState:c,children:[s.jsx(R,{type:"checkbox",icon:g,checkedIcon:g,ref:r,ownerState:c,...w,classes:{...l,root:l.switchBase}}),s.jsx(q,{className:l.track,ownerState:c})]})});process.env.NODE_ENV!=="production"&&(v.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:P.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 M=e=>s.jsx($.FormControlLabel,{...e}),D={title:"Components/FormControlLabel",component:M,argTypes:{control:{control:"object"},disabled:{control:"boolean"},disableTypography:{control:"boolean"},label:{control:"object"},labelPlacement:{control:"select",options:["bottom","end","start","top"]},required:{control:"boolean"}}},L={args:{control:s.jsx(f.Checkbox,{}),checked:void 0,disabled:void 0,disableTypography:void 0,label:"Label",labelPlacement:"end",required:void 0}},N={args:{control:s.jsx(m.Radio,{}),label:"Label"}},F={args:{control:s.jsx(v,{}),label:"Label"}};exports.Checkbox=L;exports.Radio=N;exports.Switch=F;exports.default=D;
|
|
@@ -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;
|