@cgi-learning-hub/ui 1.3.3-dev.1732021842 → 1.3.3-dev.1732123246
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-DorR8O-b.js +359 -0
- package/dist/Backdrop-cE8nccLi.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-BTNw-FYi.js} +8 -8
- package/dist/{Box-H49yQEt_.cjs → Box-Y_dUbq3W.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button--paERYBc.js} +4 -4
- package/dist/{Button-qc45QbX6.cjs → Button-TBA8S65S.cjs} +1 -1
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-B0gJT_ti.js} +229 -237
- package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
- package/dist/Card-BVJgnURR.js +74 -0
- package/dist/Card-DBGYwd3H.cjs +1 -0
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-OTMaikud.cjs} +1 -1
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-aBoDjdQG.js} +6 -6
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-CIqTwP6H.js} +4 -4
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
- package/dist/DatePicker-DGRD-CdO.cjs +14 -0
- package/dist/DatePicker-DXgVCuAd.js +10814 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-StV_SUuk.js} +40 -40
- package/dist/{DefaultPropsProvider-BrX6iuA3.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
- package/dist/DialogContent-C0L4r0-p.cjs +1 -0
- package/dist/DialogContent-CP2NOfUr.js +602 -0
- package/dist/DialogTitle-Couh2TzJ.js +134 -0
- package/dist/DialogTitle-DemSKN6H.cjs +1 -0
- package/dist/{FormGroup-BVtE8Mrv.js → FormGroup-CcM69JIS.js} +6 -6
- package/dist/{FormGroup-BBYEQB4C.cjs → FormGroup-KOLND6rE.cjs} +1 -1
- package/dist/FormLabel-C506NT5o.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-wDh-AEMQ.js} +50 -57
- package/dist/Grow-4QU1bnXQ.js +193 -0
- package/dist/Grow-C_nN9VuE.cjs +1 -0
- package/dist/IconButton-5LMERRPL.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-CsqR1453.js} +5 -5
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-DgT008NI.cjs} +1 -1
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-bXTpzNQ2.js} +4 -4
- package/dist/{InputBase-Ctmib7Br.cjs → InputBase-Cpx39cny.cjs} +3 -3
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-VKt_ajuq.js} +21 -19
- package/dist/Link-6UH3Aljp.cjs +1 -0
- package/dist/Link-CPyeYGpa.js +266 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-BFkBwBkN.js} +15 -15
- package/dist/{MenuItem-Els-vJZW.cjs → MenuItem-BxXCEc8h.cjs} +1 -1
- package/dist/Modal-BDx2_UzP.js +750 -0
- package/dist/Modal-BLMnkdGb.cjs +2 -0
- package/dist/Paper-CMUbp6SX.js +185 -0
- package/dist/Paper-n4KgM09K.cjs +2 -0
- package/dist/Popper-D_UryU8v.js +1407 -0
- package/dist/Popper-DzQZEFYT.cjs +4 -0
- package/dist/Portal-C4QgaMKl.cjs +1 -0
- package/dist/Portal-DVy9JFBN.js +86 -0
- package/dist/Select-CcnCBhBN.js +3555 -0
- package/dist/Select-CnFa2_je.cjs +9 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-CKjrTRJB.js} +16 -16
- package/dist/{Stack-CEjx3KHM.cjs → Stack-elRjtOGk.cjs} +1 -1
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-DWfUIgEW.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DYa1wGSu.js} +4 -4
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-Czgy_sW5.js} +1684 -2801
- package/dist/TableSortLabel-Ppl9Q-SZ.cjs +98 -0
- package/dist/Tabs-CUpcnsPl.cjs +4 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-RxcUgknI.js} +284 -282
- package/dist/{TextField-C-B529_r.js → TextField-DorMAtUh.js} +7 -7
- package/dist/{TextField-BVAkADOb.cjs → TextField-DvGLmvG1.cjs} +1 -1
- package/dist/Tooltip-B4e9QdHI.js +697 -0
- package/dist/Tooltip-CPAH20AZ.cjs +4 -0
- package/dist/{Typography-C_ESP41L.js → Typography-B29dnCv3.js} +4 -4
- package/dist/{Typography-5OodZ94T.cjs → Typography-DyMSnhvs.cjs} +1 -1
- 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 +6 -6
- 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 -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 +6 -6
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- 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 +5 -5
- 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 +280 -274
- 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 +1 -1
- 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 +33 -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 +2 -2
- 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/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 +28 -27
- 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 +10 -10
- 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/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-VByplk-r.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/elementTypeAcceptingRef-BPhL72td.js +23 -0
- package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-BYB-kybW.js} +1 -1
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
- package/dist/{fr-B8_MxRl5.js → fr-B4aeA9th.js} +23 -23
- package/dist/{fr-Nvp7C-vS.cjs → fr-CSCQhSqi.cjs} +1 -1
- package/dist/{identifier-BqadgaK7.js → identifier-BewKgEhI.js} +488 -487
- package/dist/{identifier-BQH88SE0.cjs → identifier-DTh6b5Gz.cjs} +17 -17
- package/dist/{index-CRT92bm7.js → index-BAjSgP8k.js} +3 -3
- package/dist/{index-CNv8ppur.cjs → index-B_acx8gh.cjs} +1 -1
- package/dist/{index-BUxqDIr9.js → index-_oi9ph20.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-oINGa1MV.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +280 -274
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-B9kDhX1-.js} +1 -1
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-DJBS0nbO.cjs} +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-3o3c-kYx.js +7 -0
- package/dist/refType-DNB-r0Bp.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-BQQ-uUKZ.js} +1 -1
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-R_l8gy3y.cjs} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-B2hCpx8C.js} +2 -2
- package/dist/{useSlot-42jgZftI.cjs → useSlot-i7AZwCRV.cjs} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-0u9_WhjM.js} +3 -3
- package/dist/{useTheme-oM_SFWy4.js → useTheme-BrFhq4dW.js} +1 -1
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-DfN3sBzg.cjs} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-w4BoR6ol.cjs} +1 -1
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-CkGODfms.cjs} +1 -1
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-CwWORfXn.js} +2 -2
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-cERu5xHk.js} +3 -3
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-Br8oWWYt.js} +4 -4
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
- package/dist/utils-CH0HZgJe.js +391 -0
- package/dist/utils-D2bhwE7x.cjs +1 -0
- package/package.json +1 -1
- 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/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- 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/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-BVJgnURR.js";
|
|
4
|
+
import * as u from "react";
|
|
5
|
+
import { J as f, I as C, L as y, P as o } from "../../identifier-BewKgEhI.js";
|
|
6
|
+
import { s as v, u as g, c as b } from "../../DefaultPropsProvider-StV_SUuk.js";
|
|
7
|
+
import { T as c } from "../../Typography-B29dnCv3.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
|
+
] }), q = {
|
|
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
|
+
}, z = {
|
|
184
|
+
args: {
|
|
185
|
+
elevation: 1,
|
|
186
|
+
square: !1,
|
|
187
|
+
variant: "elevation"
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
export {
|
|
191
|
+
z as Default,
|
|
192
|
+
q as default
|
|
193
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),s=require("../../Checkbox-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),s=require("../../Checkbox-OTMaikud.cjs"),c=e=>t.jsx(s.Checkbox,{...e}),o={title:"Components/Checkbox",component:c},r={args:{}},d={args:{checked:!0}},a={args:{disabled:!0}},u={args:{checked:!0,disabled:!0}};exports.Checked=d;exports.Default=r;exports.Disabled=a;exports.DisabledChecked=u;exports.default=o;
|
|
@@ -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-DGRD-CdO.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"),u=require("react"),t=require("../Button/Button.cjs.js"),i=require("../../DialogContent-C0L4r0-p.cjs"),l=require("../../DialogTitle-DemSKN6H.cjs"),c=a=>{const[s,o]=u.useState(!1),r=()=>o(!0),n=()=>o(!1);return e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"outlined",onClick:r,children:"Open dialog"}),e.jsxs(i.Dialog,{...a,open:s,onClose:n,children:[e.jsx(l.DialogTitle,{children:"Dialog title"}),e.jsx(i.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(i.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:c},m={args:{}};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,33 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import i from "../Button/Button.es.js";
|
|
4
|
+
import { D as u, b as m, a as d } from "../../DialogContent-CP2NOfUr.js";
|
|
5
|
+
import { a as p, D as g } from "../../DialogTitle-Couh2TzJ.js";
|
|
6
|
+
const D = (a) => {
|
|
7
|
+
const [l, o] = c(!1), r = () => o(!0), n = () => o(!1);
|
|
8
|
+
return /* @__PURE__ */ t(s, { children: [
|
|
9
|
+
/* @__PURE__ */ e(i, { variant: "outlined", onClick: r, children: "Open dialog" }),
|
|
10
|
+
/* @__PURE__ */ t(u, { ...a, open: l, onClose: n, children: [
|
|
11
|
+
/* @__PURE__ */ e(p, { children: "Dialog title" }),
|
|
12
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ t(g, { 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__ */ t(d, { children: [
|
|
19
|
+
/* @__PURE__ */ e(i, { variant: "text", onClick: n, children: "Cancel" }),
|
|
20
|
+
/* @__PURE__ */ e(i, { variant: "text", onClick: () => !0, children: "Save" })
|
|
21
|
+
] })
|
|
22
|
+
] })
|
|
23
|
+
] });
|
|
24
|
+
}, b = {
|
|
25
|
+
title: "Components/Dialog",
|
|
26
|
+
component: D
|
|
27
|
+
}, q = {
|
|
28
|
+
args: {}
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
q as Default,
|
|
32
|
+
b as default
|
|
33
|
+
};
|
|
@@ -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-DQqazotA.cjs"),t=require("../Heading/Heading.cjs.js"),n=require("../../identifier-DTh6b5Gz.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-VByplk-r.js";
|
|
3
3
|
import n from "../Heading/Heading.es.js";
|
|
4
|
-
import { r as c } from "../../identifier-
|
|
4
|
+
import { r as c } from "../../identifier-BewKgEhI.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"),c=require("../../createSvgIcon-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("../../createSvgIcon-DQqazotA.cjs"),t=require("../../IconButton-5LMERRPL.cjs"),n=c.createSvgIcon(e.jsx("path",{d:"M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28M3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7s-.54.11-.7-.12c-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21m6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15m7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12M14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38"}),"Fingerprint"),s={title:"Components/IconButton",component:t.IconButton},o={args:{children:e.jsx(n,{}),onClick:()=>alert("Alert"),disabled:!1}};exports.Default=o;exports.default=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "../../createSvgIcon-
|
|
3
|
-
import { I as o } from "../../IconButton-
|
|
2
|
+
import { c as t } from "../../createSvgIcon-VByplk-r.js";
|
|
3
|
+
import { I as o } from "../../IconButton-CsqR1453.js";
|
|
4
4
|
const s = t(/* @__PURE__ */ c("path", {
|
|
5
5
|
d: "M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28M3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7s-.54.11-.7-.12c-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21m6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15m7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12M14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38"
|
|
6
6
|
}), "Fingerprint"), a = {
|
|
@@ -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-6UH3Aljp.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-CPyeYGpa.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 t=require("react/jsx-runtime"),o=require("../../Paper-n4KgM09K.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;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { P as o } from "../../Paper-CMUbp6SX.js";
|
|
3
|
+
const r = (e) => /* @__PURE__ */ t(o, { sx: { width: "10rem", height: "10rem", p: 1 }, ...e, children: "children" }), l = {
|
|
4
|
+
title: "Components/Paper",
|
|
5
|
+
component: r,
|
|
6
|
+
argTypes: {
|
|
7
|
+
elevation: {
|
|
8
|
+
control: "number"
|
|
9
|
+
},
|
|
10
|
+
square: {
|
|
11
|
+
control: "boolean"
|
|
12
|
+
},
|
|
13
|
+
variant: {
|
|
14
|
+
control: "select",
|
|
15
|
+
options: ["elevation", "outlined"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, i = {
|
|
19
|
+
args: {
|
|
20
|
+
elevation: 1,
|
|
21
|
+
square: !1,
|
|
22
|
+
variant: "elevation"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
i as Default,
|
|
27
|
+
l as default
|
|
28
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),z=require("../../FormLabel-C506NT5o.cjs"),B=require("react"),o=require("../../identifier-DTh6b5Gz.cjs"),D=require("../../useControlled-Ysk4KqoX.cjs"),E=require("../../useForkRef-CTI33h-3.cjs"),U=require("../../useId-DNXtOFeX.cjs"),v=require("../../FormGroup-KOLND6rE.cjs"),c=require("../../DefaultPropsProvider-eVMpAUQg.cjs"),_=require("../../SwitchBase-DWfUIgEW.cjs"),G=require("../../createSvgIcon-DQqazotA.cjs"),V=require("../../memoTheme-DJBS0nbO.cjs"),L=require("../../useFormControl-haP0iPhl.cjs"),F=require("../../createSimplePaletteValueFilter-PTK3TAhW.cjs"),H=require("../../createChainedFunction-CJmlQuW8.cjs"),Z=require("../../refType-DNB-r0Bp.cjs");function A(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const l=A(B),J=G.createSvgIcon(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),K=G.createSvgIcon(s.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Q=c.styled("span",{shouldForwardProp:c.rootShouldForwardProp})({position:"relative",display:"flex"}),W=c.styled(J)({transform:"scale(1)"}),X=c.styled(K)(V.memoTheme(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function O(e){const{checked:r=!1,classes:t={},fontSize:a}=e,n={...e,checked:r};return s.jsxs(Q,{className:t.root,ownerState:n,children:[s.jsx(W,{fontSize:a,className:t.background,ownerState:n}),s.jsx(X,{fontSize:a,className:t.dot,ownerState:n})]})}process.env.NODE_ENV!=="production"&&(O.propTypes={checked:o.PropTypes.bool,classes:o.PropTypes.object,fontSize:o.PropTypes.oneOf(["small","medium"])});const w=l.createContext(void 0);process.env.NODE_ENV!=="production"&&(w.displayName="RadioGroupContext");function Y(){return l.useContext(w)}function ee(e){return o.generateUtilityClass("MuiRadio",e)}const q=o.generateUtilityClasses("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),oe=e=>{const{classes:r,color:t,size:a}=e,n={root:["root",`color${o.capitalize(t)}`,a!=="medium"&&`size${o.capitalize(a)}`]};return{...r,...c.composeClasses(n,ee,r)}},re=c.styled(_.SwitchBase,{shouldForwardProp:e=>c.rootShouldForwardProp(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.size!=="medium"&&r[`size${o.capitalize(t.size)}`],r[`color${o.capitalize(t.color)}`]]}})(V.memoTheme(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${q.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&: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)}}},...Object.entries(e.palette).filter(F.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette[r].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(F.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r,disabled:!1},style:{[`&.${q.checked}`]:{color:(e.vars||e).palette[r].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function te(e,r){return typeof r=="object"&&r!==null?e===r:String(e)===String(r)}const N=s.jsx(O,{checked:!0}),I=s.jsx(O,{}),C=l.forwardRef(function(r,t){const a=c.useDefaultProps({props:r,name:"MuiRadio"}),{checked:n,checkedIcon:T=N,color:R="primary",icon:h=I,name:u,onChange:S,size:d="medium",className:f,disabled:j,disableRipple:m=!1,...b}=a,P=L.useFormControl();let p=j;P&&typeof p>"u"&&(p=P.disabled),p??(p=!1);const g={...a,disabled:p,disableRipple:m,color:R,size:d},i=oe(g),y=Y();let x=n;const $=H.createChainedFunction(S,y&&y.onChange);let k=u;return y&&(typeof x>"u"&&(x=te(y.value,a.value)),typeof k>"u"&&(k=y.name)),s.jsx(re,{type:"radio",icon:l.cloneElement(h,{fontSize:I.props.fontSize??d}),checkedIcon:l.cloneElement(T,{fontSize:N.props.fontSize??d}),disabled:p,ownerState:g,classes:i,name:k,checked:x,onChange:$,ref:t,className:o.clsx(i.root,f),...b})});process.env.NODE_ENV!=="production"&&(C.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]),disabled:o.PropTypes.bool,disableRipple:o.PropTypes.bool,icon:o.PropTypes.node,id:o.PropTypes.string,inputProps:o.PropTypes.object,inputRef:Z.refType,name:o.PropTypes.string,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});function se(e){return o.generateUtilityClass("MuiRadioGroup",e)}o.generateUtilityClasses("MuiRadioGroup",["root","row","error"]);const ae=e=>{const{classes:r,row:t,error:a}=e,n={root:["root",t&&"row",a&&"error"]};return c.composeClasses(n,se,r)},M=l.forwardRef(function(r,t){const{actions:a,children:n,className:T,defaultValue:R,name:h,onChange:u,value:S,...d}=r,f=l.useRef(null),j=ae(r),[m,b]=D.useControlled({controlled:S,default:R,name:"RadioGroup"});l.useImperativeHandle(a,()=>({focus:()=>{let i=f.current.querySelector("input:not(:disabled):checked");i||(i=f.current.querySelector("input:not(:disabled)")),i&&i.focus()}}),[]);const P=E.useForkRef(t,f),p=U.useId(h),g=l.useMemo(()=>({name:p,onChange(i){b(i.target.value),u&&u(i,i.target.value)},value:m}),[p,u,b,m]);return s.jsx(w.Provider,{value:g,children:s.jsx(v.FormGroup,{role:"radiogroup",ref:P,className:o.clsx(j.root,T),...d,children:n})})});process.env.NODE_ENV!=="production"&&(M.propTypes={children:o.PropTypes.node,className:o.PropTypes.string,defaultValue:o.PropTypes.any,name:o.PropTypes.string,onChange:o.PropTypes.func,value:o.PropTypes.any});const ne=e=>s.jsxs(z.FormControl,{children:[s.jsx(z.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),s.jsxs(M,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...e,children:[s.jsx(v.FormControlLabel,{value:"first",control:s.jsx(C,{}),label:"First"}),s.jsx(v.FormControlLabel,{value:"second",control:s.jsx(C,{}),label:"Second"}),s.jsx(v.FormControlLabel,{value:"third",control:s.jsx(C,{}),label:"Third"})]})]}),ie={title:"Components/RadioGroup",component:ne},le={args:{row:!1}},ce={args:{row:!0}};exports.Default=le;exports.Row=ce;exports.default=ie;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as t, jsxs as P } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { F as J, a as K } from "../../FormLabel-wDh-AEMQ.js";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import { P as e, J as j, I as B,
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { a as
|
|
9
|
-
import { s as C, r as U, u as
|
|
10
|
-
import { S as
|
|
11
|
-
import { c as q } from "../../createSvgIcon-
|
|
12
|
-
import { m as L } from "../../memoTheme-
|
|
13
|
-
import { u as
|
|
4
|
+
import { P as e, J as j, I as B, K as y, n as x, L as M } from "../../identifier-BewKgEhI.js";
|
|
5
|
+
import { u as Z } from "../../useControlled-BYdyS7Pn.js";
|
|
6
|
+
import { u as A } from "../../useForkRef-C_4o__cU.js";
|
|
7
|
+
import { u as Q } from "../../useId-CK6Kn3Tn.js";
|
|
8
|
+
import { a as W, F as I } from "../../FormGroup-CcM69JIS.js";
|
|
9
|
+
import { s as C, r as U, u as X, c as D } from "../../DefaultPropsProvider-StV_SUuk.js";
|
|
10
|
+
import { S as Y } from "../../SwitchBase-DYa1wGSu.js";
|
|
11
|
+
import { c as q } from "../../createSvgIcon-VByplk-r.js";
|
|
12
|
+
import { m as L } from "../../memoTheme-B9kDhX1-.js";
|
|
13
|
+
import { u as oo } from "../../useFormControl-CatNKXAi.js";
|
|
14
14
|
import { c as $ } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
15
|
-
import {
|
|
15
|
+
import { c as eo } from "../../createChainedFunction-C0nujS3O.js";
|
|
16
|
+
import { r as ao } from "../../refType-3o3c-kYx.js";
|
|
16
17
|
const to = q(/* @__PURE__ */ t("path", {
|
|
17
18
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
18
19
|
}), "RadioButtonUnchecked"), ro = q(/* @__PURE__ */ t("path", {
|
|
@@ -106,7 +107,7 @@ const E = j("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorSe
|
|
|
106
107
|
...a,
|
|
107
108
|
...D(i, co, a)
|
|
108
109
|
};
|
|
109
|
-
}, po = C(
|
|
110
|
+
}, po = C(Y, {
|
|
110
111
|
shouldForwardProp: (o) => U(o) || o === "classes",
|
|
111
112
|
name: "MuiRadio",
|
|
112
113
|
slot: "Root",
|
|
@@ -176,7 +177,7 @@ function fo(o, a) {
|
|
|
176
177
|
const T = /* @__PURE__ */ t(F, {
|
|
177
178
|
checked: !0
|
|
178
179
|
}), V = /* @__PURE__ */ t(F, {}), g = /* @__PURE__ */ l.forwardRef(function(a, r) {
|
|
179
|
-
const s =
|
|
180
|
+
const s = X({
|
|
180
181
|
props: a,
|
|
181
182
|
name: "MuiRadio"
|
|
182
183
|
}), {
|
|
@@ -191,7 +192,7 @@ const T = /* @__PURE__ */ t(F, {
|
|
|
191
192
|
disabled: z,
|
|
192
193
|
disableRipple: m = !1,
|
|
193
194
|
...b
|
|
194
|
-
} = s, v =
|
|
195
|
+
} = s, v = oo();
|
|
195
196
|
let c = z;
|
|
196
197
|
v && typeof c > "u" && (c = v.disabled), c ?? (c = !1);
|
|
197
198
|
const R = {
|
|
@@ -202,7 +203,7 @@ const T = /* @__PURE__ */ t(F, {
|
|
|
202
203
|
size: u
|
|
203
204
|
}, n = uo(R), f = lo();
|
|
204
205
|
let O = i;
|
|
205
|
-
const H =
|
|
206
|
+
const H = eo(w, f && f.onChange);
|
|
206
207
|
let N = d;
|
|
207
208
|
return f && (typeof O > "u" && (O = fo(f.value, s.value)), typeof N > "u" && (N = f.name)), /* @__PURE__ */ t(po, {
|
|
208
209
|
type: "radio",
|
|
@@ -335,7 +336,7 @@ const bo = (o) => {
|
|
|
335
336
|
onChange: d,
|
|
336
337
|
value: w,
|
|
337
338
|
...u
|
|
338
|
-
} = a, p = l.useRef(null), z = bo(a), [m, b] =
|
|
339
|
+
} = a, p = l.useRef(null), z = bo(a), [m, b] = Z({
|
|
339
340
|
controlled: w,
|
|
340
341
|
default: S,
|
|
341
342
|
name: "RadioGroup"
|
|
@@ -346,7 +347,7 @@ const bo = (o) => {
|
|
|
346
347
|
n || (n = p.current.querySelector("input:not(:disabled)")), n && n.focus();
|
|
347
348
|
}
|
|
348
349
|
}), []);
|
|
349
|
-
const v =
|
|
350
|
+
const v = A(r, p), c = Q(k), R = l.useMemo(() => ({
|
|
350
351
|
name: c,
|
|
351
352
|
onChange(n) {
|
|
352
353
|
b(n.target.value), d && d(n, n.target.value);
|
|
@@ -355,7 +356,7 @@ const bo = (o) => {
|
|
|
355
356
|
}), [c, d, b, m]);
|
|
356
357
|
return /* @__PURE__ */ t(G.Provider, {
|
|
357
358
|
value: R,
|
|
358
|
-
children: /* @__PURE__ */ t(
|
|
359
|
+
children: /* @__PURE__ */ t(W, {
|
|
359
360
|
role: "radiogroup",
|
|
360
361
|
ref: v,
|
|
361
362
|
className: M(z.root, h),
|
|
@@ -399,8 +400,8 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
399
400
|
*/
|
|
400
401
|
value: e.any
|
|
401
402
|
});
|
|
402
|
-
const vo = (o) => /* @__PURE__ */ P(
|
|
403
|
-
/* @__PURE__ */ t(
|
|
403
|
+
const vo = (o) => /* @__PURE__ */ P(J, { children: [
|
|
404
|
+
/* @__PURE__ */ t(K, { id: "radio-buttons-group-label", children: "Label" }),
|
|
404
405
|
/* @__PURE__ */ P(
|
|
405
406
|
_,
|
|
406
407
|
{
|
|
@@ -415,20 +416,20 @@ const vo = (o) => /* @__PURE__ */ P(K, { children: [
|
|
|
415
416
|
]
|
|
416
417
|
}
|
|
417
418
|
)
|
|
418
|
-
] }),
|
|
419
|
+
] }), xo = {
|
|
419
420
|
title: "Components/RadioGroup",
|
|
420
421
|
component: vo
|
|
421
|
-
},
|
|
422
|
+
}, $o = {
|
|
422
423
|
args: {
|
|
423
424
|
row: !1
|
|
424
425
|
}
|
|
425
|
-
},
|
|
426
|
+
}, Eo = {
|
|
426
427
|
args: {
|
|
427
428
|
row: !0
|
|
428
429
|
}
|
|
429
430
|
};
|
|
430
431
|
export {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
432
|
+
$o as Default,
|
|
433
|
+
Eo as Row,
|
|
434
|
+
xo as default
|
|
434
435
|
};
|
|
@@ -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-C506NT5o.cjs"),l=require("../../Select-CnFa2_je.cjs"),t=require("../../MenuItem-BxXCEc8h.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-wDh-AEMQ.js";
|
|
4
|
+
import { a as c, S as m } from "../../Select-CcnCBhBN.js";
|
|
5
|
+
import { M as t } from "../../MenuItem-BFkBwBkN.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: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),O=require("react"),r=require("../../identifier-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),O=require("react"),r=require("../../identifier-DTh6b5Gz.cjs"),d=require("../../Tabs-CUpcnsPl.cjs"),P=require("../../DefaultPropsProvider-eVMpAUQg.cjs"),E=require("../../useThemeProps-BoO3MMZc.cjs");function M(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=M(O),f=a.createContext(null);process.env.NODE_ENV!=="production"&&(f.displayName="TabContext");function D(){const[e,n]=a.useState(null);return a.useEffect(()=>{n(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function y(e){const{children:n,value:t}=e,o=D(),p=a.useMemo(()=>({idPrefix:o,value:t}),[o,t]);return s.jsx(f.Provider,{value:p,children:n})}process.env.NODE_ENV!=="production"&&(y.propTypes={children:r.PropTypes.node,value:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).isRequired});function v(){return a.useContext(f)}function x(e,n){const{idPrefix:t}=e;return t===null?null:`${e.idPrefix}-P-${n}`}function m(e,n){const{idPrefix:t}=e;return t===null?null:`${e.idPrefix}-T-${n}`}const h=a.forwardRef(function(n,t){const{children:o,...p}=n,i=v();if(i===null)throw new TypeError("No TabContext provided");const l=a.Children.map(o,u=>a.isValidElement(u)?a.cloneElement(u,{"aria-controls":x(i,u.props.value),id:m(i,u.props.value)}):null);return s.jsx(d.Tabs,{...p,ref:t,value:i.value,children:l})});process.env.NODE_ENV!=="production"&&(h.propTypes={children:r.PropTypes.node});function R(e){return r.generateUtilityClass("MuiTabPanel",e)}r.generateUtilityClasses("MuiTabPanel",["root","hidden"]);const q=e=>{const{classes:n,hidden:t}=e,o={root:["root",t&&"hidden"]};return P.composeClasses(o,R,n)},w=P.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>({padding:e.spacing(3)})),T=a.forwardRef(function(n,t){const o=E.useThemeProps({props:n,name:"MuiTabPanel"}),{children:p,className:i,value:l,keepMounted:u=!1,...j}=o,b={...o},g=q(b),c=v();if(c===null)throw new TypeError("No TabContext provided");const C=x(c,l),N=m(c,l);return s.jsx(w,{"aria-labelledby":N,className:r.clsx(g.root,i),hidden:l!==c.value,id:C,ref:t,role:"tabpanel",ownerState:b,...j,children:(u||l===c.value)&&p})});process.env.NODE_ENV!=="production"&&(T.propTypes={children:r.PropTypes.node,classes:r.PropTypes.object,className:r.PropTypes.string,keepMounted:r.PropTypes.bool,sx:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object,r.PropTypes.bool])),r.PropTypes.func,r.PropTypes.object]),value:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).isRequired});const _=e=>s.jsxs(y,{value:"1",children:[s.jsxs(h,{...e,"aria-label":"lab API tabs example",children:[s.jsx(d.Tab,{label:"Utilisateurs",value:"1"}),s.jsx(d.Tab,{label:"Groupes",value:"2"}),s.jsx(d.Tab,{label:"Demandes d'inscription",value:"3"})]}),s.jsx(T,{value:"1",children:"Utilisateurs"}),s.jsx(T,{value:"2",children:"Groupes"}),s.jsx(T,{value:"3",children:"Demandes d'inscription"})]}),S={title:"Components/TabList",component:_},U={args:{}};exports.Default=U;exports.default=S;
|