@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,378 @@
|
|
|
1
|
+
import { jsxs as y, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { C as S } from "../../Checkbox-aJ1r7ufI.js";
|
|
3
|
+
import { a as $ } from "../../Radio-BrzQH9pY.js";
|
|
4
|
+
import * as C from "react";
|
|
5
|
+
import { I as x, H as T, L as i, P as t, n as f, s as R, q as z, G as O } from "../../identifier-Bn0tF6ls.js";
|
|
6
|
+
import { c as j } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
|
+
import { S as B } from "../../SwitchBase-CGa9A6SL.js";
|
|
8
|
+
import { m as d } from "../../memoTheme-CMJVTZEg.js";
|
|
9
|
+
import { s as p, u as L, c as M } from "../../DefaultPropsProvider-xJkZOrdv.js";
|
|
10
|
+
import { r as P } from "../../refType-BmrOFNz6.js";
|
|
11
|
+
import { F as N } from "../../FormControlLabel-w-X91z27.js";
|
|
12
|
+
function I(o) {
|
|
13
|
+
return T("MuiSwitch", o);
|
|
14
|
+
}
|
|
15
|
+
const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), D = (o) => {
|
|
16
|
+
const {
|
|
17
|
+
classes: e,
|
|
18
|
+
edge: r,
|
|
19
|
+
size: l,
|
|
20
|
+
color: b,
|
|
21
|
+
checked: u,
|
|
22
|
+
disabled: g
|
|
23
|
+
} = o, h = {
|
|
24
|
+
root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
|
|
25
|
+
switchBase: ["switchBase", `color${i(b)}`, u && "checked", g && "disabled"],
|
|
26
|
+
thumb: ["thumb"],
|
|
27
|
+
track: ["track"],
|
|
28
|
+
input: ["input"]
|
|
29
|
+
}, m = M(h, I, e);
|
|
30
|
+
return {
|
|
31
|
+
...e,
|
|
32
|
+
// forward the disabled and checked classes to the SwitchBase
|
|
33
|
+
...m
|
|
34
|
+
};
|
|
35
|
+
}, F = p("span", {
|
|
36
|
+
name: "MuiSwitch",
|
|
37
|
+
slot: "Root",
|
|
38
|
+
overridesResolver: (o, e) => {
|
|
39
|
+
const {
|
|
40
|
+
ownerState: r
|
|
41
|
+
} = o;
|
|
42
|
+
return [e.root, r.edge && e[`edge${i(r.edge)}`], e[`size${i(r.size)}`]];
|
|
43
|
+
}
|
|
44
|
+
})({
|
|
45
|
+
display: "inline-flex",
|
|
46
|
+
width: 34 + 12 * 2,
|
|
47
|
+
height: 14 + 12 * 2,
|
|
48
|
+
overflow: "hidden",
|
|
49
|
+
padding: 12,
|
|
50
|
+
boxSizing: "border-box",
|
|
51
|
+
position: "relative",
|
|
52
|
+
flexShrink: 0,
|
|
53
|
+
zIndex: 0,
|
|
54
|
+
// Reset the stacking context.
|
|
55
|
+
verticalAlign: "middle",
|
|
56
|
+
// For correct alignment with the text.
|
|
57
|
+
"@media print": {
|
|
58
|
+
colorAdjust: "exact"
|
|
59
|
+
},
|
|
60
|
+
variants: [{
|
|
61
|
+
props: {
|
|
62
|
+
edge: "start"
|
|
63
|
+
},
|
|
64
|
+
style: {
|
|
65
|
+
marginLeft: -8
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
props: {
|
|
69
|
+
edge: "end"
|
|
70
|
+
},
|
|
71
|
+
style: {
|
|
72
|
+
marginRight: -8
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
props: {
|
|
76
|
+
size: "small"
|
|
77
|
+
},
|
|
78
|
+
style: {
|
|
79
|
+
width: 40,
|
|
80
|
+
height: 24,
|
|
81
|
+
padding: 7,
|
|
82
|
+
[`& .${a.thumb}`]: {
|
|
83
|
+
width: 16,
|
|
84
|
+
height: 16
|
|
85
|
+
},
|
|
86
|
+
[`& .${a.switchBase}`]: {
|
|
87
|
+
padding: 4,
|
|
88
|
+
[`&.${a.checked}`]: {
|
|
89
|
+
transform: "translateX(16px)"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}]
|
|
94
|
+
}), q = p(B, {
|
|
95
|
+
name: "MuiSwitch",
|
|
96
|
+
slot: "SwitchBase",
|
|
97
|
+
overridesResolver: (o, e) => {
|
|
98
|
+
const {
|
|
99
|
+
ownerState: r
|
|
100
|
+
} = o;
|
|
101
|
+
return [e.switchBase, {
|
|
102
|
+
[`& .${a.input}`]: e.input
|
|
103
|
+
}, r.color !== "default" && e[`color${i(r.color)}`]];
|
|
104
|
+
}
|
|
105
|
+
})(d(({
|
|
106
|
+
theme: o
|
|
107
|
+
}) => ({
|
|
108
|
+
position: "absolute",
|
|
109
|
+
top: 0,
|
|
110
|
+
left: 0,
|
|
111
|
+
zIndex: 1,
|
|
112
|
+
// Render above the focus ripple.
|
|
113
|
+
color: o.vars ? o.vars.palette.Switch.defaultColor : `${o.palette.mode === "light" ? o.palette.common.white : o.palette.grey[300]}`,
|
|
114
|
+
transition: o.transitions.create(["left", "transform"], {
|
|
115
|
+
duration: o.transitions.duration.shortest
|
|
116
|
+
}),
|
|
117
|
+
[`&.${a.checked}`]: {
|
|
118
|
+
transform: "translateX(20px)"
|
|
119
|
+
},
|
|
120
|
+
[`&.${a.disabled}`]: {
|
|
121
|
+
color: o.vars ? o.vars.palette.Switch.defaultDisabledColor : `${o.palette.mode === "light" ? o.palette.grey[100] : o.palette.grey[600]}`
|
|
122
|
+
},
|
|
123
|
+
[`&.${a.checked} + .${a.track}`]: {
|
|
124
|
+
opacity: 0.5
|
|
125
|
+
},
|
|
126
|
+
[`&.${a.disabled} + .${a.track}`]: {
|
|
127
|
+
opacity: o.vars ? o.vars.opacity.switchTrackDisabled : `${o.palette.mode === "light" ? 0.12 : 0.2}`
|
|
128
|
+
},
|
|
129
|
+
[`& .${a.input}`]: {
|
|
130
|
+
left: "-100%",
|
|
131
|
+
width: "300%"
|
|
132
|
+
}
|
|
133
|
+
})), d(({
|
|
134
|
+
theme: o
|
|
135
|
+
}) => ({
|
|
136
|
+
"&:hover": {
|
|
137
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
138
|
+
// Reset on touch devices, it doesn't add specificity
|
|
139
|
+
"@media (hover: none)": {
|
|
140
|
+
backgroundColor: "transparent"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
variants: [...Object.entries(o.palette).filter(j(["light"])).map(([e]) => ({
|
|
144
|
+
props: {
|
|
145
|
+
color: e
|
|
146
|
+
},
|
|
147
|
+
style: {
|
|
148
|
+
[`&.${a.checked}`]: {
|
|
149
|
+
color: (o.vars || o).palette[e].main,
|
|
150
|
+
"&:hover": {
|
|
151
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette[e].main, o.palette.action.hoverOpacity),
|
|
152
|
+
"@media (hover: none)": {
|
|
153
|
+
backgroundColor: "transparent"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
[`&.${a.disabled}`]: {
|
|
157
|
+
color: o.vars ? o.vars.palette.Switch[`${e}DisabledColor`] : `${o.palette.mode === "light" ? R(o.palette[e].main, 0.62) : z(o.palette[e].main, 0.55)}`
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
[`&.${a.checked} + .${a.track}`]: {
|
|
161
|
+
backgroundColor: (o.vars || o).palette[e].main
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}))]
|
|
165
|
+
}))), U = p("span", {
|
|
166
|
+
name: "MuiSwitch",
|
|
167
|
+
slot: "Track",
|
|
168
|
+
overridesResolver: (o, e) => e.track
|
|
169
|
+
})(d(({
|
|
170
|
+
theme: o
|
|
171
|
+
}) => ({
|
|
172
|
+
height: "100%",
|
|
173
|
+
width: "100%",
|
|
174
|
+
borderRadius: 14 / 2,
|
|
175
|
+
zIndex: -1,
|
|
176
|
+
transition: o.transitions.create(["opacity", "background-color"], {
|
|
177
|
+
duration: o.transitions.duration.shortest
|
|
178
|
+
}),
|
|
179
|
+
backgroundColor: o.vars ? o.vars.palette.common.onBackground : `${o.palette.mode === "light" ? o.palette.common.black : o.palette.common.white}`,
|
|
180
|
+
opacity: o.vars ? o.vars.opacity.switchTrack : `${o.palette.mode === "light" ? 0.38 : 0.3}`
|
|
181
|
+
}))), E = p("span", {
|
|
182
|
+
name: "MuiSwitch",
|
|
183
|
+
slot: "Thumb",
|
|
184
|
+
overridesResolver: (o, e) => e.thumb
|
|
185
|
+
})(d(({
|
|
186
|
+
theme: o
|
|
187
|
+
}) => ({
|
|
188
|
+
boxShadow: (o.vars || o).shadows[1],
|
|
189
|
+
backgroundColor: "currentColor",
|
|
190
|
+
width: 20,
|
|
191
|
+
height: 20,
|
|
192
|
+
borderRadius: "50%"
|
|
193
|
+
}))), w = /* @__PURE__ */ C.forwardRef(function(e, r) {
|
|
194
|
+
const l = L({
|
|
195
|
+
props: e,
|
|
196
|
+
name: "MuiSwitch"
|
|
197
|
+
}), {
|
|
198
|
+
className: b,
|
|
199
|
+
color: u = "primary",
|
|
200
|
+
edge: g = !1,
|
|
201
|
+
size: h = "medium",
|
|
202
|
+
sx: m,
|
|
203
|
+
...k
|
|
204
|
+
} = l, n = {
|
|
205
|
+
...l,
|
|
206
|
+
color: u,
|
|
207
|
+
edge: g,
|
|
208
|
+
size: h
|
|
209
|
+
}, c = D(n), v = /* @__PURE__ */ s(E, {
|
|
210
|
+
className: c.thumb,
|
|
211
|
+
ownerState: n
|
|
212
|
+
});
|
|
213
|
+
return /* @__PURE__ */ y(F, {
|
|
214
|
+
className: O(c.root, b),
|
|
215
|
+
sx: m,
|
|
216
|
+
ownerState: n,
|
|
217
|
+
children: [/* @__PURE__ */ s(q, {
|
|
218
|
+
type: "checkbox",
|
|
219
|
+
icon: v,
|
|
220
|
+
checkedIcon: v,
|
|
221
|
+
ref: r,
|
|
222
|
+
ownerState: n,
|
|
223
|
+
...k,
|
|
224
|
+
classes: {
|
|
225
|
+
...c,
|
|
226
|
+
root: c.switchBase
|
|
227
|
+
}
|
|
228
|
+
}), /* @__PURE__ */ s(U, {
|
|
229
|
+
className: c.track,
|
|
230
|
+
ownerState: n
|
|
231
|
+
})]
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
235
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
236
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
237
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
238
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
239
|
+
/**
|
|
240
|
+
* If `true`, the component is checked.
|
|
241
|
+
*/
|
|
242
|
+
checked: t.bool,
|
|
243
|
+
/**
|
|
244
|
+
* The icon to display when the component is checked.
|
|
245
|
+
*/
|
|
246
|
+
checkedIcon: t.node,
|
|
247
|
+
/**
|
|
248
|
+
* Override or extend the styles applied to the component.
|
|
249
|
+
*/
|
|
250
|
+
classes: t.object,
|
|
251
|
+
/**
|
|
252
|
+
* @ignore
|
|
253
|
+
*/
|
|
254
|
+
className: t.string,
|
|
255
|
+
/**
|
|
256
|
+
* The color of the component.
|
|
257
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
258
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
259
|
+
* @default 'primary'
|
|
260
|
+
*/
|
|
261
|
+
color: t.oneOfType([t.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
262
|
+
/**
|
|
263
|
+
* The default checked state. Use when the component is not controlled.
|
|
264
|
+
*/
|
|
265
|
+
defaultChecked: t.bool,
|
|
266
|
+
/**
|
|
267
|
+
* If `true`, the component is disabled.
|
|
268
|
+
*/
|
|
269
|
+
disabled: t.bool,
|
|
270
|
+
/**
|
|
271
|
+
* If `true`, the ripple effect is disabled.
|
|
272
|
+
* @default false
|
|
273
|
+
*/
|
|
274
|
+
disableRipple: t.bool,
|
|
275
|
+
/**
|
|
276
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
277
|
+
* side (this is often helpful for aligning the left or right
|
|
278
|
+
* side of the icon with content above or below, without ruining the border
|
|
279
|
+
* size and shape).
|
|
280
|
+
* @default false
|
|
281
|
+
*/
|
|
282
|
+
edge: t.oneOf(["end", "start", !1]),
|
|
283
|
+
/**
|
|
284
|
+
* The icon to display when the component is unchecked.
|
|
285
|
+
*/
|
|
286
|
+
icon: t.node,
|
|
287
|
+
/**
|
|
288
|
+
* The id of the `input` element.
|
|
289
|
+
*/
|
|
290
|
+
id: t.string,
|
|
291
|
+
/**
|
|
292
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
293
|
+
*/
|
|
294
|
+
inputProps: t.object,
|
|
295
|
+
/**
|
|
296
|
+
* Pass a ref to the `input` element.
|
|
297
|
+
*/
|
|
298
|
+
inputRef: P,
|
|
299
|
+
/**
|
|
300
|
+
* Callback fired when the state is changed.
|
|
301
|
+
*
|
|
302
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
303
|
+
* You can pull out the new value by accessing `event.target.value` (string).
|
|
304
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
305
|
+
*/
|
|
306
|
+
onChange: t.func,
|
|
307
|
+
/**
|
|
308
|
+
* If `true`, the `input` element is required.
|
|
309
|
+
* @default false
|
|
310
|
+
*/
|
|
311
|
+
required: t.bool,
|
|
312
|
+
/**
|
|
313
|
+
* The size of the component.
|
|
314
|
+
* `small` is equivalent to the dense switch styling.
|
|
315
|
+
* @default 'medium'
|
|
316
|
+
*/
|
|
317
|
+
size: t.oneOfType([t.oneOf(["medium", "small"]), t.string]),
|
|
318
|
+
/**
|
|
319
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
320
|
+
*/
|
|
321
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
322
|
+
/**
|
|
323
|
+
* The value of the component. The DOM API casts this to a string.
|
|
324
|
+
* The browser uses "on" as the default value.
|
|
325
|
+
*/
|
|
326
|
+
value: t.any
|
|
327
|
+
});
|
|
328
|
+
const A = (o) => /* @__PURE__ */ s(N, { ...o }), Z = {
|
|
329
|
+
title: "Components/FormControlLabel",
|
|
330
|
+
component: A,
|
|
331
|
+
argTypes: {
|
|
332
|
+
control: {
|
|
333
|
+
control: "object"
|
|
334
|
+
},
|
|
335
|
+
disabled: {
|
|
336
|
+
control: "boolean"
|
|
337
|
+
},
|
|
338
|
+
disableTypography: {
|
|
339
|
+
control: "boolean"
|
|
340
|
+
},
|
|
341
|
+
label: {
|
|
342
|
+
control: "object"
|
|
343
|
+
},
|
|
344
|
+
labelPlacement: {
|
|
345
|
+
control: "select",
|
|
346
|
+
options: ["bottom", "end", "start", "top"]
|
|
347
|
+
},
|
|
348
|
+
required: {
|
|
349
|
+
control: "boolean"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}, oo = {
|
|
353
|
+
args: {
|
|
354
|
+
control: /* @__PURE__ */ s(S, {}),
|
|
355
|
+
checked: void 0,
|
|
356
|
+
disabled: void 0,
|
|
357
|
+
disableTypography: void 0,
|
|
358
|
+
label: "Label",
|
|
359
|
+
labelPlacement: "end",
|
|
360
|
+
required: void 0
|
|
361
|
+
}
|
|
362
|
+
}, to = {
|
|
363
|
+
args: {
|
|
364
|
+
control: /* @__PURE__ */ s($, {}),
|
|
365
|
+
label: "Label"
|
|
366
|
+
}
|
|
367
|
+
}, eo = {
|
|
368
|
+
args: {
|
|
369
|
+
control: /* @__PURE__ */ s(w, {}),
|
|
370
|
+
label: "Label"
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
export {
|
|
374
|
+
oo as Checkbox,
|
|
375
|
+
to as Radio,
|
|
376
|
+
eo as Switch,
|
|
377
|
+
Z as default
|
|
378
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-BMmqQ2z0.cjs"),t=require("../Heading/Heading.cjs.js"),n=require("../../identifier-Dax8VlUh.cjs"),c=o.createSvgIcon(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood"),i={title:"Components/Heading",component:t},r={args:{title:"Heading",iconColor:n.red,IconComponent:c}};exports.Default=r;exports.default=i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "../../createSvgIcon-
|
|
2
|
+
import { c as t } from "../../createSvgIcon-CVd3Lo1D.js";
|
|
3
3
|
import n from "../Heading/Heading.es.js";
|
|
4
|
-
import { r as c } from "../../identifier-
|
|
4
|
+
import { r as c } from "../../identifier-Bn0tF6ls.js";
|
|
5
5
|
const e = t(/* @__PURE__ */ o("path", {
|
|
6
6
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"
|
|
7
7
|
}), "Mood"), i = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-BMmqQ2z0.cjs"),l=require("../../IconButton-DRs0xB4z.cjs"),t=o.createSvgIcon(e.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),n={title:"Components/IconButton",component:l.IconButton,argTypes:{color:{control:"select",options:["inherit","default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},disableFocusRipple:{control:"boolean"},disableRipple:{control:"boolean"},edge:{control:"radio",options:["end","start",!1]},size:{control:"radio",options:["small","medium","large"]}}},s={args:{children:e.jsx(t,{}),color:"default",disabled:!1,disableFocusRipple:!1,disableRipple:!1,edge:!1,size:"medium"}};exports.Default=s;exports.default=n;
|
|
@@ -1,19 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { I as
|
|
4
|
-
const s =
|
|
5
|
-
d: "
|
|
6
|
-
}), "
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../createSvgIcon-CVd3Lo1D.js";
|
|
3
|
+
import { I as l } from "../../IconButton-DjeMTpI5.js";
|
|
4
|
+
const s = e(/* @__PURE__ */ o("path", {
|
|
5
|
+
d: "M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"
|
|
6
|
+
}), "School"), r = {
|
|
7
7
|
title: "Components/IconButton",
|
|
8
|
-
component:
|
|
8
|
+
component: l,
|
|
9
|
+
argTypes: {
|
|
10
|
+
color: {
|
|
11
|
+
control: "select",
|
|
12
|
+
options: [
|
|
13
|
+
"inherit",
|
|
14
|
+
"default",
|
|
15
|
+
"primary",
|
|
16
|
+
"secondary",
|
|
17
|
+
"error",
|
|
18
|
+
"info",
|
|
19
|
+
"success",
|
|
20
|
+
"warning"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
control: "boolean"
|
|
25
|
+
},
|
|
26
|
+
disableFocusRipple: {
|
|
27
|
+
control: "boolean"
|
|
28
|
+
},
|
|
29
|
+
disableRipple: {
|
|
30
|
+
control: "boolean"
|
|
31
|
+
},
|
|
32
|
+
edge: {
|
|
33
|
+
control: "radio",
|
|
34
|
+
options: ["end", "start", !1]
|
|
35
|
+
},
|
|
36
|
+
size: {
|
|
37
|
+
control: "radio",
|
|
38
|
+
options: ["small", "medium", "large"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
9
41
|
}, i = {
|
|
10
42
|
args: {
|
|
11
|
-
children: /* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
disabled: !1
|
|
43
|
+
children: /* @__PURE__ */ o(s, {}),
|
|
44
|
+
color: "default",
|
|
45
|
+
disabled: !1,
|
|
46
|
+
disableFocusRipple: !1,
|
|
47
|
+
disableRipple: !1,
|
|
48
|
+
edge: !1,
|
|
49
|
+
size: "medium"
|
|
14
50
|
}
|
|
15
51
|
};
|
|
16
52
|
export {
|
|
17
53
|
i as Default,
|
|
18
|
-
|
|
54
|
+
r as default
|
|
19
55
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../ImagePicker/ImagePicker.cjs.js"),a={title:"Components/ImagePicker",component:t,argTypes:{defaultLabel:{description:"Le contenu affiché comme label par défaut (ReactNode).",control:"text",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<ImagePickerDefaultLabel />"}}},dragLabel:{description:"Texte affiché lorsque l'utilisateur fait glisser un fichier.",control:"text",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<ImagePickerDefaultDragLabel />"}}},information:{description:"Informations supplémentaires affichées sous le label par défaut.",control:"text",table:{type:{summary:"string"}}},onFileChange:{description:"Callback déclenché lorsque l'utilisateur sélectionne ou supprime un fichier.",action:"file-changed",table:{type:{summary:"(file: File | null) => void"}}}}},l={args:{information:"SVG, PNG, JPG, GIF",onFileChange:e=>{console.log(e?"Image uplaodé":"Image supprimé")},width:"160px",height:"160px"}};exports.Default=l;exports.default=a;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import a from "../ImagePicker/ImagePicker.es.js";
|
|
2
|
+
const l = {
|
|
3
|
+
title: "Components/ImagePicker",
|
|
4
|
+
component: a,
|
|
5
|
+
argTypes: {
|
|
6
|
+
defaultLabel: {
|
|
7
|
+
description: "Le contenu affiché comme label par défaut (ReactNode).",
|
|
8
|
+
control: "text",
|
|
9
|
+
table: {
|
|
10
|
+
type: { summary: "ReactNode" },
|
|
11
|
+
defaultValue: { summary: "<ImagePickerDefaultLabel />" }
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
dragLabel: {
|
|
15
|
+
description: "Texte affiché lorsque l'utilisateur fait glisser un fichier.",
|
|
16
|
+
control: "text",
|
|
17
|
+
table: {
|
|
18
|
+
type: { summary: "ReactNode" },
|
|
19
|
+
defaultValue: { summary: "<ImagePickerDefaultDragLabel />" }
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
information: {
|
|
23
|
+
description: "Informations supplémentaires affichées sous le label par défaut.",
|
|
24
|
+
control: "text",
|
|
25
|
+
table: {
|
|
26
|
+
type: { summary: "string" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
onFileChange: {
|
|
30
|
+
description: "Callback déclenché lorsque l'utilisateur sélectionne ou supprime un fichier.",
|
|
31
|
+
action: "file-changed",
|
|
32
|
+
table: {
|
|
33
|
+
type: { summary: "(file: File | null) => void" }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, i = {
|
|
38
|
+
args: {
|
|
39
|
+
information: "SVG, PNG, JPG, GIF",
|
|
40
|
+
onFileChange: (e) => {
|
|
41
|
+
console.log(e ? "Image uplaodé" : "Image supprimé");
|
|
42
|
+
},
|
|
43
|
+
width: "160px",
|
|
44
|
+
height: "160px"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
i as Default,
|
|
49
|
+
l as default
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../Link-Z_UCBvgV.cjs"),n=e=>t.jsx(r.Link,{...e}),o={title:"Components/Link",component:n,argTypes:{children:{control:"text"},color:{control:"select",options:["primary","secondary","error","info","success","warning","textPrimary","textSecondary","textDisabled"]},href:{control:"text"},underline:{control:"select",options:["always","hover","none"]}}},i={args:{children:"Link",color:"primary",href:"https://www.cgi.com/france/fr-fr/solution/cgi-learning-hub",underline:"always"}};exports.Default=i;exports.default=o;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LinkProps } from '@mui/material/Link';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const Link: (props: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof Link>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Link>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { L as e } from "../../Link-Dmwt9wxb.js";
|
|
3
|
+
const n = (r) => /* @__PURE__ */ o(e, { ...r }), c = {
|
|
4
|
+
title: "Components/Link",
|
|
5
|
+
component: n,
|
|
6
|
+
argTypes: {
|
|
7
|
+
children: {
|
|
8
|
+
control: "text"
|
|
9
|
+
},
|
|
10
|
+
color: {
|
|
11
|
+
control: "select",
|
|
12
|
+
options: [
|
|
13
|
+
"primary",
|
|
14
|
+
"secondary",
|
|
15
|
+
"error",
|
|
16
|
+
"info",
|
|
17
|
+
"success",
|
|
18
|
+
"warning",
|
|
19
|
+
"textPrimary",
|
|
20
|
+
"textSecondary",
|
|
21
|
+
"textDisabled"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
href: {
|
|
25
|
+
control: "text"
|
|
26
|
+
},
|
|
27
|
+
underline: {
|
|
28
|
+
control: "select",
|
|
29
|
+
options: ["always", "hover", "none"]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}, s = {
|
|
33
|
+
args: {
|
|
34
|
+
children: "Link",
|
|
35
|
+
color: "primary",
|
|
36
|
+
href: "https://www.cgi.com/france/fr-fr/solution/cgi-learning-hub",
|
|
37
|
+
underline: "always"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
s as Default,
|
|
42
|
+
c as default
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),a=require("../Button/Button.cjs.js"),d=require("../../Menu-DREdNbqu.cjs"),o=require("../../MenuItem-CN75Du-9.cjs"),m=r=>{const[u,s]=l.useState(null),t=!!u,c=i=>{s(i.currentTarget)},n=()=>s(null);return e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"text",id:"basic-button","aria-controls":t?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:c,children:"Open menu"}),e.jsxs(d.Menu,{...r,id:"basic-menu",anchorEl:u,open:t,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},children:[e.jsx(o.MenuItem,{onClick:n,children:"Profile"}),e.jsx(o.MenuItem,{onClick:n,children:"My account"}),e.jsx(o.MenuItem,{onClick:n,children:"Logout"})]})]})},M={title:"Components/Menu",component:m},p={args:{}};exports.Default=p;exports.default=M;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuProps } from '@mui/material/Menu';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const Menu: (props: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof Menu>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Menu>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as u, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import p from "../Button/Button.es.js";
|
|
4
|
+
import { M as d } from "../../Menu-4U27Dst1.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-CqPsuuC1.js";
|
|
6
|
+
const h = (c) => {
|
|
7
|
+
const [r, i] = m(null), e = !!r, l = (s) => {
|
|
8
|
+
i(s.currentTarget);
|
|
9
|
+
}, n = () => i(null);
|
|
10
|
+
return /* @__PURE__ */ a(u, { children: [
|
|
11
|
+
/* @__PURE__ */ o(
|
|
12
|
+
p,
|
|
13
|
+
{
|
|
14
|
+
variant: "text",
|
|
15
|
+
id: "basic-button",
|
|
16
|
+
"aria-controls": e ? "basic-menu" : void 0,
|
|
17
|
+
"aria-haspopup": "true",
|
|
18
|
+
"aria-expanded": e ? "true" : void 0,
|
|
19
|
+
onClick: l,
|
|
20
|
+
children: "Open menu"
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
/* @__PURE__ */ a(
|
|
24
|
+
d,
|
|
25
|
+
{
|
|
26
|
+
...c,
|
|
27
|
+
id: "basic-menu",
|
|
28
|
+
anchorEl: r,
|
|
29
|
+
open: e,
|
|
30
|
+
onClose: n,
|
|
31
|
+
MenuListProps: {
|
|
32
|
+
"aria-labelledby": "basic-button"
|
|
33
|
+
},
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ o(t, { onClick: n, children: "Profile" }),
|
|
36
|
+
/* @__PURE__ */ o(t, { onClick: n, children: "My account" }),
|
|
37
|
+
/* @__PURE__ */ o(t, { onClick: n, children: "Logout" })
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
] });
|
|
42
|
+
}, x = {
|
|
43
|
+
title: "Components/Menu",
|
|
44
|
+
component: h
|
|
45
|
+
}, g = {
|
|
46
|
+
args: {}
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
g as Default,
|
|
50
|
+
x as default
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("../../Paper-CjMuucS5.cjs"),r=e=>t.jsx(o.Paper,{sx:{width:"10rem",height:"10rem",p:1},...e,children:"children"}),n={title:"Components/Paper",component:r,argTypes:{elevation:{control:"number"},square:{control:"boolean"},variant:{control:"select",options:["elevation","outlined"]}}},a={args:{elevation:1,square:!1,variant:"elevation"}};exports.Default=a;exports.default=n;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PaperProps } from '@mui/material/Paper';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const Paper: (props: PaperProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof Paper>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Paper>;
|
|
7
|
+
export declare const Default: Story;
|