@cgi-learning-hub/ui 1.3.5-dev.1738165321 → 1.3.5-dev.1739206891
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-Dnd-7Jz5.cjs → Backdrop-Cvbj4YKG.cjs} +1 -1
- package/dist/{Backdrop-CjFhgXFW.js → Backdrop-DZHacmMU.js} +21 -21
- package/dist/{Box-BTYxUBc5.cjs → Box-CVaz7diG.cjs} +1 -1
- package/dist/{Box-C5qOvRw6.js → Box-Cpg9IWKr.js} +8 -8
- package/dist/{Button-QAP1Wyns.cjs → Button-COTy9ASL.cjs} +1 -1
- package/dist/{Button-DJ9kLggx.js → Button-DovfjBkz.js} +14 -14
- package/dist/{ButtonBase-Di2DXi1_.cjs → ButtonBase-DKNIY_Ve.cjs} +2 -2
- package/dist/{ButtonBase-CGJRRTHm.js → ButtonBase-eQU9HVgU.js} +42 -42
- package/dist/{Card-BkkrhzGz.js → Card-B7MHmB_Y.js} +7 -7
- package/dist/{Card-BklIrMy_.cjs → Card-CwE6nm11.cjs} +1 -1
- package/dist/{Checkbox-Bfngr2Ow.cjs → Checkbox-YCpJS_3E.cjs} +1 -1
- package/dist/{Checkbox-BMr92NEw.js → Checkbox-y6Kts0Hm.js} +26 -26
- package/dist/{CircularProgress-Wu1RUH10.js → CircularProgress-BgUNlpbU.js} +9 -9
- package/dist/{CircularProgress-CIsFCabr.cjs → CircularProgress-nxAXvjY0.cjs} +2 -2
- package/dist/{DatePicker-BIrYgv-6.js → DatePicker-B2dOH7Zl.js} +1283 -1282
- package/dist/{DatePicker-UggPKt6P.cjs → DatePicker-C3CzK9Fb.cjs} +9 -9
- package/dist/{DefaultPropsProvider-CeEBQtDy.js → DefaultPropsProvider-CmOKr9hq.js} +48 -48
- package/dist/{DefaultPropsProvider-Se6dgF9O.cjs → DefaultPropsProvider-PRhNsS_3.cjs} +1 -1
- package/dist/{Delete-D269dtzC.js → Delete-DCHX_nNr.js} +1 -1
- package/dist/{Delete-CN1Nvyw-.cjs → Delete-Z2rf9szx.cjs} +1 -1
- package/dist/{Dialog-FQAvW7D6.cjs → Dialog-BFZeovlo.cjs} +1 -1
- package/dist/{Dialog-DX2Mdwmr.js → Dialog-D0fzD-TX.js} +13 -13
- package/dist/{DialogContent-CkPzndRH.js → DialogContent-4rDvu_sh.js} +13 -13
- package/dist/{DialogContent-BaKv3Ei9.cjs → DialogContent-DMvW6Xos.cjs} +1 -1
- package/dist/{DialogTitle-D7utXPRz.js → DialogTitle-BXGok8k-.js} +30 -30
- package/dist/{DialogTitle-BwJVdg4G.cjs → DialogTitle-CXRmRtja.cjs} +1 -1
- package/dist/{Divider-BAPyGNV2.cjs → Divider-CISPNs7L.cjs} +1 -1
- package/dist/{Divider-DViVz6TV.js → Divider-CeOjSQMP.js} +8 -8
- package/dist/{FormControlLabel-DMrvY_r6.js → FormControlLabel-BjbkwHC0.js} +13 -13
- package/dist/{FormControlLabel-BKz4_Gd0.cjs → FormControlLabel-BjlJz2oa.cjs} +1 -1
- package/dist/{FormGroup-Cp4YeqR3.js → FormGroup-DdwFGMq2.js} +15 -15
- package/dist/{FormGroup-BulQbkfu.cjs → FormGroup-x7hlLAv1.cjs} +1 -1
- package/dist/{FormLabel-DXWktPiT.js → FormLabel-Cm4Ba58U.js} +21 -21
- package/dist/{FormLabel-DwND2qd8.cjs → FormLabel-CtCBcJ-1.cjs} +2 -2
- package/dist/{Grow-BYbd5knJ.cjs → Grow-BK4rGn4x.cjs} +1 -1
- package/dist/{Grow-C9mKol1b.js → Grow-EpJy9qdL.js} +15 -15
- package/dist/{IconButton-Dl_aERqI.cjs → IconButton-BUCTqOFa.cjs} +1 -1
- package/dist/{IconButton-HSWaMjTn.js → IconButton-CZvDgqOc.js} +13 -13
- package/dist/{InputAdornment-VmPspNH6.cjs → InputAdornment-CLIvW7Gk.cjs} +1 -1
- package/dist/{InputAdornment-DEwfQJnE.js → InputAdornment-XfxRdI9K.js} +14 -14
- package/dist/{InputBase-BWlk5xev.cjs → InputBase-BXcShs87.cjs} +2 -2
- package/dist/{InputBase-NJYUs2qK.js → InputBase-DBsV_L3Y.js} +9 -9
- package/dist/{Link-D-_BtjdU.cjs → Link-DgsVJ4Wk.cjs} +1 -1
- package/dist/{Link-DRY3a76q.js → Link-Dqbq0dpE.js} +11 -11
- package/dist/{Menu-BIebKPfA.cjs → Menu-NuheFzLD.cjs} +6 -6
- package/dist/{Menu-D4QuPq36.js → Menu-_4rLUzDf.js} +54 -54
- package/dist/{MenuItem-CLytGq10.cjs → MenuItem-CNUAbgnE.cjs} +1 -1
- package/dist/{MenuItem-BaVk-qxi.js → MenuItem-D9Hs7HRQ.js} +20 -20
- package/dist/{Modal-D9Xuvhjf.cjs → Modal-BhIbbbzx.cjs} +2 -2
- package/dist/{Modal-Bv_n3vzB.js → Modal-a-cSzSt8.js} +32 -32
- package/dist/{Paper-B-qSqbHC.js → Paper-BIgadgtb.js} +8 -8
- package/dist/{Paper-cQSlrWza.cjs → Paper-DYhLUL1K.cjs} +2 -2
- package/dist/{Popper-CIpGciMP.js → Popper-BcaTNUvi.js} +241 -243
- package/dist/{Popper-rY0PGJdm.cjs → Popper-CPstdcBG.cjs} +3 -3
- package/dist/{Portal-DsPJ5mJy.js → Portal-B8inUnB_.js} +2 -2
- package/dist/{Portal-Cxw-nTCW.cjs → Portal-BL8eg_0C.cjs} +1 -1
- package/dist/{Radio-CTv0ptam.cjs → Radio-8fNX60rb.cjs} +1 -1
- package/dist/{Radio-g00XgvHL.js → Radio-DgedCGZw.js} +15 -15
- package/dist/{Select-D2_IXdrU.js → Select-D4pmgfdb.js} +99 -99
- package/dist/{Select-C8HBwNk7.cjs → Select-DtrvYyJ3.cjs} +1 -1
- package/dist/Stack-B68ooSQ-.cjs +1 -0
- package/dist/{Stack-DX7XIsZG.js → Stack-CSgGU-cq.js} +29 -29
- package/dist/{SwitchBase-BOo1bjHy.cjs → SwitchBase-VA100mrf.cjs} +1 -1
- package/dist/{SwitchBase-eilyehy9.js → SwitchBase-ynQQkTVh.js} +29 -29
- package/dist/{TableSortLabel-BE_c25_7.cjs → TableSortLabel-B2Nvl2FF.cjs} +7 -7
- package/dist/{TableSortLabel-CkN2fsuh.js → TableSortLabel-DrpjgQBL.js} +51 -52
- package/dist/{Tabs-CZ0zpzfU.js → Tabs-CMnuOnzP.js} +328 -328
- package/dist/{Tabs-Cu3QAwFQ.cjs → Tabs-CTYqNGoo.cjs} +3 -3
- package/dist/{TextField-CYuyowfl.cjs → TextField-BcAZk2Rx.cjs} +1 -1
- package/dist/{TextField-CB2G2DE7.js → TextField-dvVq-1Hp.js} +27 -27
- package/dist/{Tooltip-BbMItBno.js → Tooltip-CVvaAqh7.js} +13 -13
- package/dist/{Tooltip-CcjNbPHm.cjs → Tooltip-DL2i_lGL.cjs} +3 -3
- package/dist/{Typography-CsC_hF8M.js → Typography-C9ltjPyz.js} +9 -9
- package/dist/{Typography-BYWZ5kB1.cjs → Typography-Y-OGmT9M.cjs} +1 -1
- package/dist/{capitalize-BDTxYy_y.cjs → capitalize-Cq3s4y8R.cjs} +1 -1
- package/dist/{capitalize-B55K71yP.js → capitalize-yX_QSknw.js} +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +47 -47
- 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/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +3 -3
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- 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 +7 -7
- 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 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- 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.es.js +38 -38
- 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 -1
- package/dist/components/stories/Card.stories.es.js +8 -8
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- 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 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +75 -75
- 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 +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +8 -8
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +11 -11
- 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 +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-DestgQu_.cjs → createSvgIcon-CWNQW6u6.cjs} +1 -1
- package/dist/{createSvgIcon-C9kh-71a.js → createSvgIcon-Cd6y8E9W.js} +6 -6
- package/dist/{dividerClasses-CmqQpmPs.cjs → dividerClasses-1ChhOCNX.cjs} +1 -1
- package/dist/{dividerClasses-Cx-v4p9p.js → dividerClasses-DHKvPyr8.js} +3 -3
- package/dist/{elementTypeAcceptingRef-93jMVjym.cjs → elementTypeAcceptingRef-BgjnOQqe.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-BwApo3R5.js → elementTypeAcceptingRef-BnBq35EV.js} +1 -1
- package/dist/{extendSxProp-BuzWiNW6.js → extendSxProp-D1UphbpP.js} +3 -3
- package/dist/{extendSxProp-CWfAkLIT.cjs → extendSxProp-Dolw-tGY.cjs} +1 -1
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/{generateUtilityClasses-CCNEQAp0.cjs → generateUtilityClasses-0dYt6eGZ.cjs} +2 -2
- package/dist/{generateUtilityClasses-CMVTZlSt.js → generateUtilityClasses-v9KcqdK1.js} +6 -6
- package/dist/{index-BvElRKTI.cjs → index-BUATG6-f.cjs} +1 -1
- package/dist/{index-HBv5JZBE.js → index-BhCs2pHX.js} +22 -22
- package/dist/index-CgWaRcwQ.cjs +1 -0
- package/dist/{index-DT_OMUCV.js → index-OesDQygc.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +36 -36
- package/dist/{memoTheme-CnIL9ySw.js → memoTheme-D-rebSfX.js} +1 -1
- package/dist/{memoTheme-DTSENpyZ.cjs → memoTheme-D1tPxCd9.cjs} +1 -1
- package/dist/{mergeSlotProps-A2fwE85L.cjs → mergeSlotProps-DJgEFzGv.cjs} +1 -1
- package/dist/{mergeSlotProps-lTnyHfRr.js → mergeSlotProps-DwgGXvkj.js} +1 -1
- package/dist/{refType-IuPwh8dk.js → refType-DcE_kWty.js} +1 -1
- package/dist/{refType-B9Yjv-2f.cjs → refType-DdkUp8DT.cjs} +1 -1
- package/dist/{useSlot-DKRXHGjw.js → useSlot-BYfmyYXv.js} +1 -1
- package/dist/{useSlot-BHPToxin.cjs → useSlot-CMUEd7j7.cjs} +1 -1
- package/dist/useSlotProps-D0jr2eYF.cjs +1 -0
- package/dist/{useSlotProps-DW4-IGZ7.js → useSlotProps-r0vmrJvl.js} +11 -11
- package/dist/{useTheme-CQhlwWHY.cjs → useTheme-B1HNivkF.cjs} +1 -1
- package/dist/{useTheme-6TUGBldK.js → useTheme-BB8ZCoMF.js} +1 -1
- package/dist/{useTheme-BovhfGLb.cjs → useTheme-C0AF6jAe.cjs} +1 -1
- package/dist/useTheme-Dyx3LMQU.js +11 -0
- package/dist/{useThemeProps-BcTQ5K1G.cjs → useThemeProps-DcOn-vk2.cjs} +1 -1
- package/dist/{useThemeProps-1WBbiiBB.js → useThemeProps-DnDXTiQj.js} +2 -2
- package/dist/{useThemeProps-CAttQgvS.js → useThemeProps-DwnyQf-S.js} +3 -3
- package/dist/{useThemeProps-CTpVXkg_.cjs → useThemeProps-u8EQT0RR.cjs} +1 -1
- package/dist/{utils-CHzhlXgP.cjs → utils-BWXB1haV.cjs} +1 -1
- package/dist/{utils-CuFsTY6H.js → utils-D4djO_Ph.js} +1 -1
- package/package.json +1 -1
- package/dist/Stack-6AHEa1bx.cjs +0 -1
- package/dist/index-vTvfssKH.cjs +0 -1
- package/dist/useSlotProps-CgzVLVxq.cjs +0 -1
- package/dist/useTheme-i6uFvVRH.js +0 -11
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { jsxs as y, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { c as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
2
|
+
import { F as S } from "../../FormControlLabel-BjbkwHC0.js";
|
|
3
|
+
import { C as $ } from "../../Checkbox-y6Kts0Hm.js";
|
|
4
|
+
import { a as C } from "../../Radio-DgedCGZw.js";
|
|
5
|
+
import * as x from "react";
|
|
6
|
+
import { H as T, I as R, G as z, n as v, s as O, q as j, P as t } from "../../generateUtilityClasses-v9KcqdK1.js";
|
|
7
|
+
import { c as B } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
+
import { S as M } from "../../SwitchBase-ynQQkTVh.js";
|
|
9
|
+
import { m as d } from "../../memoTheme-D-rebSfX.js";
|
|
10
|
+
import { u as P, s as p, c as L } from "../../DefaultPropsProvider-CmOKr9hq.js";
|
|
11
|
+
import { c as i } from "../../capitalize-yX_QSknw.js";
|
|
12
|
+
import { r as N } from "../../refType-DcE_kWty.js";
|
|
13
13
|
function I(o) {
|
|
14
|
-
return
|
|
14
|
+
return R("MuiSwitch", o);
|
|
15
15
|
}
|
|
16
|
-
const a =
|
|
16
|
+
const a = T("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), D = (o) => {
|
|
17
17
|
const {
|
|
18
|
-
classes:
|
|
18
|
+
classes: e,
|
|
19
19
|
edge: r,
|
|
20
20
|
size: l,
|
|
21
|
-
color:
|
|
22
|
-
checked:
|
|
21
|
+
color: b,
|
|
22
|
+
checked: u,
|
|
23
23
|
disabled: g
|
|
24
24
|
} = o, h = {
|
|
25
25
|
root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
|
|
26
|
-
switchBase: ["switchBase", `color${i(
|
|
26
|
+
switchBase: ["switchBase", `color${i(b)}`, u && "checked", g && "disabled"],
|
|
27
27
|
thumb: ["thumb"],
|
|
28
28
|
track: ["track"],
|
|
29
29
|
input: ["input"]
|
|
30
|
-
},
|
|
30
|
+
}, m = L(h, I, e);
|
|
31
31
|
return {
|
|
32
|
-
...
|
|
32
|
+
...e,
|
|
33
33
|
// forward the disabled and checked classes to the SwitchBase
|
|
34
|
-
...
|
|
34
|
+
...m
|
|
35
35
|
};
|
|
36
36
|
}, F = p("span", {
|
|
37
37
|
name: "MuiSwitch",
|
|
38
38
|
slot: "Root",
|
|
39
|
-
overridesResolver: (o,
|
|
39
|
+
overridesResolver: (o, e) => {
|
|
40
40
|
const {
|
|
41
41
|
ownerState: r
|
|
42
42
|
} = o;
|
|
43
|
-
return [
|
|
43
|
+
return [e.root, r.edge && e[`edge${i(r.edge)}`], e[`size${i(r.size)}`]];
|
|
44
44
|
}
|
|
45
45
|
})({
|
|
46
46
|
display: "inline-flex",
|
|
@@ -92,16 +92,16 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}]
|
|
95
|
-
}), q = p(
|
|
95
|
+
}), q = p(M, {
|
|
96
96
|
name: "MuiSwitch",
|
|
97
97
|
slot: "SwitchBase",
|
|
98
|
-
overridesResolver: (o,
|
|
98
|
+
overridesResolver: (o, e) => {
|
|
99
99
|
const {
|
|
100
100
|
ownerState: r
|
|
101
101
|
} = o;
|
|
102
|
-
return [
|
|
103
|
-
[`& .${a.input}`]:
|
|
104
|
-
}, r.color !== "default" &&
|
|
102
|
+
return [e.switchBase, {
|
|
103
|
+
[`& .${a.input}`]: e.input
|
|
104
|
+
}, r.color !== "default" && e[`color${i(r.color)}`]];
|
|
105
105
|
}
|
|
106
106
|
})(d(({
|
|
107
107
|
theme: o
|
|
@@ -135,38 +135,38 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
135
135
|
theme: o
|
|
136
136
|
}) => ({
|
|
137
137
|
"&:hover": {
|
|
138
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
138
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
139
139
|
// Reset on touch devices, it doesn't add specificity
|
|
140
140
|
"@media (hover: none)": {
|
|
141
141
|
backgroundColor: "transparent"
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
variants: [...Object.entries(o.palette).filter(
|
|
144
|
+
variants: [...Object.entries(o.palette).filter(B(["light"])).map(([e]) => ({
|
|
145
145
|
props: {
|
|
146
|
-
color:
|
|
146
|
+
color: e
|
|
147
147
|
},
|
|
148
148
|
style: {
|
|
149
149
|
[`&.${a.checked}`]: {
|
|
150
|
-
color: (o.vars || o).palette[
|
|
150
|
+
color: (o.vars || o).palette[e].main,
|
|
151
151
|
"&:hover": {
|
|
152
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[
|
|
152
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[e].main, o.palette.action.hoverOpacity),
|
|
153
153
|
"@media (hover: none)": {
|
|
154
154
|
backgroundColor: "transparent"
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
[`&.${a.disabled}`]: {
|
|
158
|
-
color: o.vars ? o.vars.palette.Switch[`${
|
|
158
|
+
color: o.vars ? o.vars.palette.Switch[`${e}DisabledColor`] : `${o.palette.mode === "light" ? O(o.palette[e].main, 0.62) : j(o.palette[e].main, 0.55)}`
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
[`&.${a.checked} + .${a.track}`]: {
|
|
162
|
-
backgroundColor: (o.vars || o).palette[
|
|
162
|
+
backgroundColor: (o.vars || o).palette[e].main
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}))]
|
|
166
166
|
}))), U = p("span", {
|
|
167
167
|
name: "MuiSwitch",
|
|
168
168
|
slot: "Track",
|
|
169
|
-
overridesResolver: (o,
|
|
169
|
+
overridesResolver: (o, e) => e.track
|
|
170
170
|
})(d(({
|
|
171
171
|
theme: o
|
|
172
172
|
}) => ({
|
|
@@ -182,7 +182,7 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
182
182
|
}))), E = p("span", {
|
|
183
183
|
name: "MuiSwitch",
|
|
184
184
|
slot: "Thumb",
|
|
185
|
-
overridesResolver: (o,
|
|
185
|
+
overridesResolver: (o, e) => e.thumb
|
|
186
186
|
})(d(({
|
|
187
187
|
theme: o
|
|
188
188
|
}) => ({
|
|
@@ -191,34 +191,34 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
191
191
|
width: 20,
|
|
192
192
|
height: 20,
|
|
193
193
|
borderRadius: "50%"
|
|
194
|
-
}))),
|
|
195
|
-
const l =
|
|
196
|
-
props:
|
|
194
|
+
}))), w = /* @__PURE__ */ x.forwardRef(function(e, r) {
|
|
195
|
+
const l = P({
|
|
196
|
+
props: e,
|
|
197
197
|
name: "MuiSwitch"
|
|
198
198
|
}), {
|
|
199
|
-
className:
|
|
200
|
-
color:
|
|
199
|
+
className: b,
|
|
200
|
+
color: u = "primary",
|
|
201
201
|
edge: g = !1,
|
|
202
202
|
size: h = "medium",
|
|
203
|
-
sx:
|
|
203
|
+
sx: m,
|
|
204
204
|
...k
|
|
205
205
|
} = l, n = {
|
|
206
206
|
...l,
|
|
207
|
-
color:
|
|
207
|
+
color: u,
|
|
208
208
|
edge: g,
|
|
209
209
|
size: h
|
|
210
|
-
}, c = D(n),
|
|
210
|
+
}, c = D(n), f = /* @__PURE__ */ s(E, {
|
|
211
211
|
className: c.thumb,
|
|
212
212
|
ownerState: n
|
|
213
213
|
});
|
|
214
214
|
return /* @__PURE__ */ y(F, {
|
|
215
|
-
className:
|
|
216
|
-
sx:
|
|
215
|
+
className: z(c.root, b),
|
|
216
|
+
sx: m,
|
|
217
217
|
ownerState: n,
|
|
218
218
|
children: [/* @__PURE__ */ s(q, {
|
|
219
219
|
type: "checkbox",
|
|
220
|
-
icon:
|
|
221
|
-
checkedIcon:
|
|
220
|
+
icon: f,
|
|
221
|
+
checkedIcon: f,
|
|
222
222
|
ref: r,
|
|
223
223
|
ownerState: n,
|
|
224
224
|
...k,
|
|
@@ -232,7 +232,7 @@ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
232
232
|
})]
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
|
-
process.env.NODE_ENV !== "production" && (
|
|
235
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
236
236
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
237
237
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
238
238
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -240,39 +240,39 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
240
240
|
/**
|
|
241
241
|
* If `true`, the component is checked.
|
|
242
242
|
*/
|
|
243
|
-
checked:
|
|
243
|
+
checked: t.bool,
|
|
244
244
|
/**
|
|
245
245
|
* The icon to display when the component is checked.
|
|
246
246
|
*/
|
|
247
|
-
checkedIcon:
|
|
247
|
+
checkedIcon: t.node,
|
|
248
248
|
/**
|
|
249
249
|
* Override or extend the styles applied to the component.
|
|
250
250
|
*/
|
|
251
|
-
classes:
|
|
251
|
+
classes: t.object,
|
|
252
252
|
/**
|
|
253
253
|
* @ignore
|
|
254
254
|
*/
|
|
255
|
-
className:
|
|
255
|
+
className: t.string,
|
|
256
256
|
/**
|
|
257
257
|
* The color of the component.
|
|
258
258
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
259
259
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
260
260
|
* @default 'primary'
|
|
261
261
|
*/
|
|
262
|
-
color:
|
|
262
|
+
color: t.oneOfType([t.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
263
263
|
/**
|
|
264
264
|
* The default checked state. Use when the component is not controlled.
|
|
265
265
|
*/
|
|
266
|
-
defaultChecked:
|
|
266
|
+
defaultChecked: t.bool,
|
|
267
267
|
/**
|
|
268
268
|
* If `true`, the component is disabled.
|
|
269
269
|
*/
|
|
270
|
-
disabled:
|
|
270
|
+
disabled: t.bool,
|
|
271
271
|
/**
|
|
272
272
|
* If `true`, the ripple effect is disabled.
|
|
273
273
|
* @default false
|
|
274
274
|
*/
|
|
275
|
-
disableRipple:
|
|
275
|
+
disableRipple: t.bool,
|
|
276
276
|
/**
|
|
277
277
|
* If given, uses a negative margin to counteract the padding on one
|
|
278
278
|
* side (this is often helpful for aligning the left or right
|
|
@@ -280,23 +280,23 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
280
280
|
* size and shape).
|
|
281
281
|
* @default false
|
|
282
282
|
*/
|
|
283
|
-
edge:
|
|
283
|
+
edge: t.oneOf(["end", "start", !1]),
|
|
284
284
|
/**
|
|
285
285
|
* The icon to display when the component is unchecked.
|
|
286
286
|
*/
|
|
287
|
-
icon:
|
|
287
|
+
icon: t.node,
|
|
288
288
|
/**
|
|
289
289
|
* The id of the `input` element.
|
|
290
290
|
*/
|
|
291
|
-
id:
|
|
291
|
+
id: t.string,
|
|
292
292
|
/**
|
|
293
293
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
294
294
|
*/
|
|
295
|
-
inputProps:
|
|
295
|
+
inputProps: t.object,
|
|
296
296
|
/**
|
|
297
297
|
* Pass a ref to the `input` element.
|
|
298
298
|
*/
|
|
299
|
-
inputRef:
|
|
299
|
+
inputRef: N,
|
|
300
300
|
/**
|
|
301
301
|
* Callback fired when the state is changed.
|
|
302
302
|
*
|
|
@@ -304,29 +304,29 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
304
304
|
* You can pull out the new value by accessing `event.target.value` (string).
|
|
305
305
|
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
306
306
|
*/
|
|
307
|
-
onChange:
|
|
307
|
+
onChange: t.func,
|
|
308
308
|
/**
|
|
309
309
|
* If `true`, the `input` element is required.
|
|
310
310
|
* @default false
|
|
311
311
|
*/
|
|
312
|
-
required:
|
|
312
|
+
required: t.bool,
|
|
313
313
|
/**
|
|
314
314
|
* The size of the component.
|
|
315
315
|
* `small` is equivalent to the dense switch styling.
|
|
316
316
|
* @default 'medium'
|
|
317
317
|
*/
|
|
318
|
-
size:
|
|
318
|
+
size: t.oneOfType([t.oneOf(["medium", "small"]), t.string]),
|
|
319
319
|
/**
|
|
320
320
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
321
321
|
*/
|
|
322
|
-
sx:
|
|
322
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
323
323
|
/**
|
|
324
324
|
* The value of the component. The DOM API casts this to a string.
|
|
325
325
|
* The browser uses "on" as the default value.
|
|
326
326
|
*/
|
|
327
|
-
value:
|
|
327
|
+
value: t.any
|
|
328
328
|
});
|
|
329
|
-
const A = (o) => /* @__PURE__ */ s(
|
|
329
|
+
const A = (o) => /* @__PURE__ */ s(S, { ...o }), oo = {
|
|
330
330
|
title: "Components/FormControlLabel",
|
|
331
331
|
component: A,
|
|
332
332
|
argTypes: {
|
|
@@ -350,9 +350,9 @@ const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
|
|
|
350
350
|
control: "boolean"
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
},
|
|
353
|
+
}, to = {
|
|
354
354
|
args: {
|
|
355
|
-
control: /* @__PURE__ */ s(
|
|
355
|
+
control: /* @__PURE__ */ s($, {}),
|
|
356
356
|
checked: void 0,
|
|
357
357
|
disabled: void 0,
|
|
358
358
|
disableTypography: void 0,
|
|
@@ -360,20 +360,20 @@ const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
|
|
|
360
360
|
labelPlacement: "end",
|
|
361
361
|
required: void 0
|
|
362
362
|
}
|
|
363
|
-
},
|
|
363
|
+
}, eo = {
|
|
364
364
|
args: {
|
|
365
|
-
control: /* @__PURE__ */ s(
|
|
365
|
+
control: /* @__PURE__ */ s(C, {}),
|
|
366
366
|
label: "Label"
|
|
367
367
|
}
|
|
368
368
|
}, ao = {
|
|
369
369
|
args: {
|
|
370
|
-
control: /* @__PURE__ */ s(
|
|
370
|
+
control: /* @__PURE__ */ s(w, {}),
|
|
371
371
|
label: "Label"
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
374
|
export {
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
to as Checkbox,
|
|
376
|
+
eo as Radio,
|
|
377
377
|
ao as Switch,
|
|
378
378
|
oo as default
|
|
379
379
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon-CWNQW6u6.cjs"),o=require("../Heading/Heading.cjs.js"),n=require("../../generateUtilityClasses-0dYt6eGZ.cjs"),c=t.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"),s={title:"Components/Heading",component:o},r={args:{title:"Heading",iconColor:n.red,IconComponent:c}};exports.Default=r;exports.default=s;
|
|
@@ -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-Cd6y8E9W.js";
|
|
3
3
|
import n from "../Heading/Heading.es.js";
|
|
4
|
-
import { r as c } from "../../generateUtilityClasses-
|
|
4
|
+
import { r as c } from "../../generateUtilityClasses-v9KcqdK1.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"),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-CWNQW6u6.cjs"),l=require("../../IconButton-BUCTqOFa.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,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../createSvgIcon-
|
|
3
|
-
import { I as l } from "../../IconButton-
|
|
2
|
+
import { c as e } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
3
|
+
import { I as l } from "../../IconButton-CZvDgqOc.js";
|
|
4
4
|
const s = e(/* @__PURE__ */ o("path", {
|
|
5
5
|
d: "M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"
|
|
6
6
|
}), "School"), r = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../Link-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../Link-DgsVJ4Wk.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;
|
|
@@ -1 +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-
|
|
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-NuheFzLD.cjs"),o=require("../../MenuItem-CNUAbgnE.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;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as u, jsx as
|
|
1
|
+
import { jsxs as a, Fragment as u, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { M as
|
|
5
|
-
import { M as t } from "../../MenuItem-
|
|
6
|
-
const
|
|
7
|
-
const [r, i] = m(null),
|
|
3
|
+
import p from "../Button/Button.es.js";
|
|
4
|
+
import { M as d } from "../../Menu-_4rLUzDf.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-D9Hs7HRQ.js";
|
|
6
|
+
const h = (c) => {
|
|
7
|
+
const [r, i] = m(null), e = !!r, l = (s) => {
|
|
8
8
|
i(s.currentTarget);
|
|
9
9
|
}, n = () => i(null);
|
|
10
10
|
return /* @__PURE__ */ a(u, { children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
11
|
+
/* @__PURE__ */ o(
|
|
12
|
+
p,
|
|
13
13
|
{
|
|
14
14
|
variant: "text",
|
|
15
15
|
id: "basic-button",
|
|
16
|
-
"aria-controls":
|
|
16
|
+
"aria-controls": e ? "basic-menu" : void 0,
|
|
17
17
|
"aria-haspopup": "true",
|
|
18
|
-
"aria-expanded":
|
|
18
|
+
"aria-expanded": e ? "true" : void 0,
|
|
19
19
|
onClick: l,
|
|
20
20
|
children: "Open menu"
|
|
21
21
|
}
|
|
22
22
|
),
|
|
23
23
|
/* @__PURE__ */ a(
|
|
24
|
-
|
|
24
|
+
d,
|
|
25
25
|
{
|
|
26
26
|
...c,
|
|
27
27
|
id: "basic-menu",
|
|
28
28
|
anchorEl: r,
|
|
29
|
-
open:
|
|
29
|
+
open: e,
|
|
30
30
|
onClose: n,
|
|
31
31
|
MenuListProps: {
|
|
32
32
|
"aria-labelledby": "basic-button"
|
|
33
33
|
},
|
|
34
34
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
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
38
|
]
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] });
|
|
42
42
|
}, x = {
|
|
43
43
|
title: "Components/Menu",
|
|
44
|
-
component:
|
|
44
|
+
component: h
|
|
45
45
|
}, g = {
|
|
46
46
|
args: {}
|
|
47
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("../../Paper-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("../../Paper-DYhLUL1K.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { P as o } from "../../Paper-
|
|
2
|
+
import { P as o } from "../../Paper-BIgadgtb.js";
|
|
3
3
|
const r = (e) => /* @__PURE__ */ t(o, { sx: { width: "10rem", height: "10rem", p: 1 }, ...e, children: "children" }), l = {
|
|
4
4
|
title: "Components/Paper",
|
|
5
5
|
component: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),g=require("../../FormLabel-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),g=require("../../FormLabel-CtCBcJ-1.cjs"),F=require("react"),r=require("../../generateUtilityClasses-0dYt6eGZ.cjs"),u=require("../../Radio-8fNX60rb.cjs"),G=require("../../useControlled-Ysk4KqoX.cjs"),T=require("../../useForkRef-CTI33h-3.cjs"),w=require("../../useId-DNXtOFeX.cjs"),S=require("../../FormGroup-x7hlLAv1.cjs"),L=require("../../DefaultPropsProvider-PRhNsS_3.cjs"),p=require("../../FormControlLabel-BjlJz2oa.cjs");function O(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const l=O(F);function D(e){return r.generateUtilityClass("MuiRadioGroup",e)}r.generateUtilityClasses("MuiRadioGroup",["root","row","error"]);const M=e=>{const{classes:t,row:s,error:a}=e,i={root:["root",s&&"row",a&&"error"]};return L.composeClasses(i,D,t)},R=l.forwardRef(function(t,s){const{actions:a,children:i,className:y,defaultValue:C,name:j,onChange:c,value:v,...h}=t,d=l.useRef(null),x=M(t),[f,m]=G.useControlled({controlled:v,default:C,name:"RadioGroup"});l.useImperativeHandle(a,()=>({focus:()=>{let n=d.current.querySelector("input:not(:disabled):checked");n||(n=d.current.querySelector("input:not(:disabled)")),n&&n.focus()}}),[]);const P=T.useForkRef(s,d),b=w.useId(j),q=l.useMemo(()=>({name:b,onChange(n){m(n.target.value),c&&c(n,n.target.value)},value:f}),[b,c,m,f]);return o.jsx(u.RadioGroupContext.Provider,{value:q,children:o.jsx(S.FormGroup,{role:"radiogroup",ref:P,className:r.clsx(x.root,y),...h,children:i})})});process.env.NODE_ENV!=="production"&&(R.propTypes={children:r.PropTypes.node,className:r.PropTypes.string,defaultValue:r.PropTypes.any,name:r.PropTypes.string,onChange:r.PropTypes.func,value:r.PropTypes.any});const N=e=>o.jsxs(g.FormControl,{children:[o.jsx(g.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(R,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...e,children:[o.jsx(p.FormControlLabel,{value:"first",control:o.jsx(u.Radio,{}),label:"First"}),o.jsx(p.FormControlLabel,{value:"second",control:o.jsx(u.Radio,{}),label:"Second"}),o.jsx(p.FormControlLabel,{value:"third",control:o.jsx(u.Radio,{}),label:"Third"})]})]}),V={title:"Components/RadioGroup",component:N},_={args:{row:!1}},U={args:{row:!0}};exports.Default=_;exports.Row=U;exports.default=V;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { F as V, a as N } from "../../FormLabel-
|
|
2
|
+
import { F as V, a as N } from "../../FormLabel-Cm4Ba58U.js";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import { I as P, H as S, G as U, P as t } from "../../generateUtilityClasses-
|
|
5
|
-
import { R as I, a as c } from "../../Radio-
|
|
4
|
+
import { I as P, H as S, G as U, P as t } from "../../generateUtilityClasses-v9KcqdK1.js";
|
|
5
|
+
import { R as I, a as c } from "../../Radio-DgedCGZw.js";
|
|
6
6
|
import { u as L } from "../../useControlled-BYdyS7Pn.js";
|
|
7
7
|
import { u as M } from "../../useForkRef-C_4o__cU.js";
|
|
8
8
|
import { u as T } from "../../useId-CK6Kn3Tn.js";
|
|
9
|
-
import { F as j } from "../../FormGroup-
|
|
10
|
-
import { c as k } from "../../DefaultPropsProvider-
|
|
11
|
-
import { F as d } from "../../FormControlLabel-
|
|
9
|
+
import { F as j } from "../../FormGroup-DdwFGMq2.js";
|
|
10
|
+
import { c as k } from "../../DefaultPropsProvider-CmOKr9hq.js";
|
|
11
|
+
import { F as d } from "../../FormControlLabel-BjbkwHC0.js";
|
|
12
12
|
function q(r) {
|
|
13
|
-
return
|
|
13
|
+
return P("MuiRadioGroup", r);
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
S("MuiRadioGroup", ["root", "row", "error"]);
|
|
16
16
|
const D = (r) => {
|
|
17
17
|
const {
|
|
18
18
|
classes: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("../ResourceCard/ResourceCard.cjs.js"),o=require("../../createSvgIcon-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("../ResourceCard/ResourceCard.cjs.js"),o=require("../../createSvgIcon-CWNQW6u6.cjs"),r=require("@mui/material"),s=o.createSvgIcon(e.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),i=o.createSvgIcon(e.jsx("path",{d:"M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"LiveHelp"),l=o.createSvgIcon(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),a=o.createSvgIcon(e.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),n={title:"Components/ResourceCard",component:c,argTypes:{title:{description:"Titre de la carte.",control:"text",table:{type:{summary:"string"}},required:!0},defaultImage:{description:"Image par défaut => Logo de l'application",control:"text",table:{type:{summary:"string"}},required:!0},isSelected:{description:"Indique si la carte est sélectionnée.",control:"boolean",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}},onSelect:{description:"Callback déclenché lorsque l'utilisateur sélectionne la carte.",action:"card-selected",table:{type:{summary:"() => void"}}},image:{description:"URL de l'image affichée sur la carte.",control:"text",table:{type:{summary:"string"}}},propertyItems:{description:"Liste des propriétés affichées sous le titre.",control:"object",table:{type:{summary:"PropertyItem[{text: Typography, icon: MuiIcon}]"}}},infoIcons:{description:"Liste des icônes d'information affichées dans la carte. (3 maximums)",control:"object",table:{type:{summary:"InfoItem[{text: string, icon: MuiIcon}]"}}},size:{description:"Taille de la carte (petite ou moyenne).",control:"radio",options:["sm","md"],table:{type:{summary:'"sm" | "md"'},defaultValue:{summary:"md"}}},width:{description:"Largeur de la carte.",control:"text",table:{type:{summary:"string"},defaultValue:{summary:"320px"}}}}},t={args:{isSelected:!1,image:"https://dummyimage.com/600x400/000/fff.png&text=flashquizz",defaultImage:"https://flashquizz-dev.support-ent.fr/images/logo.svg",title:"Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",propertyItems:[{text:e.jsx(r.Typography,{color:"text.primary",children:"0 questions"}),icon:e.jsx(i,{color:"primary"})},{text:e.jsx(r.Typography,{color:"text.primary",children:"27 septembre 2025"}),icon:e.jsx(s,{color:"primary"})}],infoIcons:[{text:"Information 1",icon:e.jsx(l,{color:"primary"})},{text:"Information 2",icon:e.jsx(a,{color:"primary"})},{text:"Information 3",icon:e.jsx(a,{color:"primary"})}],size:"md",onSelect:()=>{console.log("Carte sélectionnée !")},onClick:()=>{console.log("Select all")}}},m={args:{...t.args,isSelected:!0,title:"Carte Sélectionnée"}},d={args:{...t.args,size:"sm",title:"Petite Carte"}},u={args:{...t.args,title:"Pas d'image",image:void 0}};exports.Default=t;exports.NoImage=u;exports.Selected=m;exports.Small=d;exports.default=n;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import c from "../ResourceCard/ResourceCard.es.js";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as e } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
4
4
|
import { Typography as r } from "@mui/material";
|
|
5
|
-
const i =
|
|
5
|
+
const i = e(/* @__PURE__ */ o("path", {
|
|
6
6
|
d: "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"
|
|
7
|
-
}), "CalendarToday"), s =
|
|
7
|
+
}), "CalendarToday"), s = e(/* @__PURE__ */ o("path", {
|
|
8
8
|
d: "M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"
|
|
9
|
-
}), "LiveHelp"), l =
|
|
9
|
+
}), "LiveHelp"), l = e(/* @__PURE__ */ o("path", {
|
|
10
10
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"
|
|
11
|
-
}), "Public"), a =
|
|
11
|
+
}), "Public"), a = e(/* @__PURE__ */ o("path", {
|
|
12
12
|
d: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
|
|
13
13
|
}), "Star"), u = {
|
|
14
14
|
title: "Components/ResourceCard",
|
|
@@ -91,13 +91,13 @@ const i = o(/* @__PURE__ */ e("path", {
|
|
|
91
91
|
defaultImage: "https://flashquizz-dev.support-ent.fr/images/logo.svg",
|
|
92
92
|
title: "Titre de la Ressource tres loooooooooooooooooooooooooooooooooooooooooooooooooooooong",
|
|
93
93
|
propertyItems: [
|
|
94
|
-
{ text: /* @__PURE__ */
|
|
95
|
-
{ text: /* @__PURE__ */
|
|
94
|
+
{ text: /* @__PURE__ */ o(r, { color: "text.primary", children: "0 questions" }), icon: /* @__PURE__ */ o(s, { color: "primary" }) },
|
|
95
|
+
{ text: /* @__PURE__ */ o(r, { color: "text.primary", children: "27 septembre 2025" }), icon: /* @__PURE__ */ o(i, { color: "primary" }) }
|
|
96
96
|
],
|
|
97
97
|
infoIcons: [
|
|
98
|
-
{ text: "Information 1", icon: /* @__PURE__ */
|
|
99
|
-
{ text: "Information 2", icon: /* @__PURE__ */
|
|
100
|
-
{ text: "Information 3", icon: /* @__PURE__ */
|
|
98
|
+
{ text: "Information 1", icon: /* @__PURE__ */ o(l, { color: "primary" }) },
|
|
99
|
+
{ text: "Information 2", icon: /* @__PURE__ */ o(a, { color: "primary" }) },
|
|
100
|
+
{ text: "Information 3", icon: /* @__PURE__ */ o(a, { color: "primary" }) }
|
|
101
101
|
],
|
|
102
102
|
size: "md",
|
|
103
103
|
onSelect: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("react"),u=require("../../FormLabel-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("react"),u=require("../../FormLabel-CtCBcJ-1.cjs"),l=require("../../Select-DtrvYyJ3.cjs"),t=require("../../MenuItem-CNUAbgnE.cjs"),c=n=>{const[a,s]=d.useState("pending"),i=r=>s(r.target.value);return e.jsxs(u.FormControl,{variant:n.variant,sx:{width:"10rem"},children:[e.jsx(l.InputLabel,{id:"simple-select-label",children:"Status"}),e.jsxs(l.Select,{labelId:"simple-select-label",id:"simple-select",value:a,label:"Status",onChange:i,...n,children:[e.jsx(t.MenuItem,{value:"pending",children:"Pending"}),e.jsx(t.MenuItem,{value:"ongoing",children:"Ongoing"}),e.jsx(t.MenuItem,{value:"validated",children:"Validated"}),e.jsx(t.MenuItem,{value:"rejected",children:"Rejected"})]})]})},o={title:"Components/Select",component:c},g={args:{}},m={args:{variant:"filled"}},v={args:{variant:"standard"}},S={args:{disabled:!0}};exports.Default=g;exports.Disabled=S;exports.Filled=m;exports.Standard=v;exports.default=o;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
|
-
import { F as o } from "../../FormLabel-
|
|
4
|
-
import { a as c, S as m } from "../../Select-
|
|
5
|
-
import { M as t } from "../../MenuItem-
|
|
3
|
+
import { F as o } from "../../FormLabel-Cm4Ba58U.js";
|
|
4
|
+
import { a as c, S as m } from "../../Select-D4pmgfdb.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-D9Hs7HRQ.js";
|
|
6
6
|
const u = (a) => {
|
|
7
7
|
const [n, s] = d("pending"), r = (i) => s(i.target.value);
|
|
8
8
|
return /* @__PURE__ */ l(o, { variant: a.variant, sx: { width: "10rem" }, children: [
|