@cgi-learning-hub/ui 1.3.3-dev.1732021842 → 1.3.3-dev.1732274173

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.
Files changed (227) hide show
  1. package/dist/Backdrop-DcJf9G30.js +359 -0
  2. package/dist/Backdrop-cE8nccLi.cjs +1 -0
  3. package/dist/{Box-UE-zctbJ.js → Box-D9cHa8GX.js} +9 -9
  4. package/dist/{Box-H49yQEt_.cjs → Box-Y_dUbq3W.cjs} +1 -1
  5. package/dist/{Button-Bjy0iPNm.js → Button-Cx05eP88.js} +14 -14
  6. package/dist/{Button-qc45QbX6.cjs → Button-TBA8S65S.cjs} +1 -1
  7. package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
  8. package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-z74SMnd9.js} +232 -240
  9. package/dist/Card-DBGYwd3H.cjs +1 -0
  10. package/dist/Card-mAtxoJ0p.js +74 -0
  11. package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-Bmz9nh6k.js} +12 -12
  12. package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-OTMaikud.cjs} +1 -1
  13. package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-B5osG37N.js} +17 -17
  14. package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
  15. package/dist/DatePicker-Ds7y4pei.js +10815 -0
  16. package/dist/DatePicker-MSoGmJoG.cjs +14 -0
  17. package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-BYFwNPLt.js} +31 -31
  18. package/dist/{DefaultPropsProvider-BrX6iuA3.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
  19. package/dist/DialogContent-B_NH_if8.js +602 -0
  20. package/dist/DialogContent-C0L4r0-p.cjs +1 -0
  21. package/dist/DialogTitle-Bx7712Li.js +134 -0
  22. package/dist/DialogTitle-DemSKN6H.cjs +1 -0
  23. package/dist/Divider-CMuvurmv.js +296 -0
  24. package/dist/Divider-DlN3YfOR.cjs +1 -0
  25. package/dist/FormControlLabel-BDXTL5Eo.js +261 -0
  26. package/dist/FormControlLabel-D8GTkxJD.cjs +1 -0
  27. package/dist/FormGroup-CFDapyxc.cjs +1 -0
  28. package/dist/FormGroup-DO8m1X6w.js +95 -0
  29. package/dist/{FormLabel-B4QlkhhB.js → FormLabel-B11aqT37.js} +36 -42
  30. package/dist/FormLabel-DcUS1c1d.cjs +2 -0
  31. package/dist/Grow-BKrOFfC1.js +193 -0
  32. package/dist/Grow-C_nN9VuE.cjs +1 -0
  33. package/dist/IconButton-5LMERRPL.cjs +2 -0
  34. package/dist/{IconButton-Av8eJ5IG.js → IconButton-DLcGpM1F.js} +5 -5
  35. package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-BrvfHlzv.js} +4 -4
  36. package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-DgT008NI.cjs} +1 -1
  37. package/dist/{InputBase-Bbgoz8GV.js → InputBase-CHytwRH8.js} +59 -59
  38. package/dist/InputBase-qhWgXXNd.cjs +3 -0
  39. package/dist/Link-6UH3Aljp.cjs +1 -0
  40. package/dist/Link-D_0FIsgB.js +266 -0
  41. package/dist/Menu-0Hr9Yx9l.cjs +7 -0
  42. package/dist/Menu-ysG9uY3e.js +965 -0
  43. package/dist/MenuItem-BP7OsPVc.cjs +1 -0
  44. package/dist/{MenuItem-D7HWYhF3.js → MenuItem-DYrKaYOk.js} +69 -74
  45. package/dist/Modal-BLMnkdGb.cjs +2 -0
  46. package/dist/Modal-DT240BJZ.js +750 -0
  47. package/dist/Paper-n4KgM09K.cjs +2 -0
  48. package/dist/Paper-vlsh8Nca.js +185 -0
  49. package/dist/Popper-BSaTZXvX.js +1407 -0
  50. package/dist/Popper-DzQZEFYT.cjs +4 -0
  51. package/dist/Portal-C4QgaMKl.cjs +1 -0
  52. package/dist/Portal-meM40OhI.js +86 -0
  53. package/dist/Radio-CW4v1BS4.js +312 -0
  54. package/dist/Radio-D-wbZ6M-.cjs +1 -0
  55. package/dist/Select-CKsf044t.js +2602 -0
  56. package/dist/Select-DAHsfas2.cjs +3 -0
  57. package/dist/{Stack-y1PjTHKX.js → Stack-DbWQHN5i.js} +18 -18
  58. package/dist/{Stack-CEjx3KHM.cjs → Stack-elRjtOGk.cjs} +1 -1
  59. package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DBnju71w.js} +10 -10
  60. package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-DWfUIgEW.cjs} +1 -1
  61. package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-ByZJO-zF.js} +2447 -3849
  62. package/dist/TableSortLabel-C0MAdw-j.cjs +98 -0
  63. package/dist/{Tabs-DK4Bc5xo.js → Tabs-BqJSX1la.js} +284 -282
  64. package/dist/Tabs-CUpcnsPl.cjs +4 -0
  65. package/dist/{TextField-BVAkADOb.cjs → TextField-C23FnJYk.cjs} +1 -1
  66. package/dist/{TextField-C-B529_r.js → TextField-DVUnQAd7.js} +24 -24
  67. package/dist/Tooltip-41rGxwva.js +697 -0
  68. package/dist/Tooltip-CPAH20AZ.cjs +4 -0
  69. package/dist/{Typography-C_ESP41L.js → Typography-CizHc1nM.js} +4 -4
  70. package/dist/{Typography-5OodZ94T.cjs → Typography-DyMSnhvs.cjs} +1 -1
  71. package/dist/assets/styles.css +1 -1
  72. package/dist/assets/styles2.css +1 -1
  73. package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
  74. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  75. package/dist/components/Button/Button.cjs.js +1 -1
  76. package/dist/components/Button/Button.es.js +12 -12
  77. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  78. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  79. package/dist/components/DatePicker/index.cjs.js +1 -1
  80. package/dist/components/DatePicker/index.es.js +1 -1
  81. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  82. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  83. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  84. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  85. package/dist/components/FileList/FileList.cjs.js +1 -1
  86. package/dist/components/FileList/FileList.es.js +1 -1
  87. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  88. package/dist/components/FileList/FileListItem.es.js +6 -6
  89. package/dist/components/Heading/Heading.cjs.js +1 -1
  90. package/dist/components/Heading/Heading.es.js +2 -2
  91. package/dist/components/Loader/Loader.cjs.js +1 -1
  92. package/dist/components/Loader/Loader.es.js +2 -2
  93. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  94. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
  95. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  96. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  97. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  98. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  99. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  100. package/dist/components/TextInput/TextInput.es.js +1 -1
  101. package/dist/components/index.cjs.js +1 -1
  102. package/dist/components/index.es.js +282 -272
  103. package/dist/components/stories/Button.stories.cjs.js +1 -1
  104. package/dist/components/stories/Button.stories.es.js +1 -1
  105. package/dist/components/stories/Card.stories.cjs.js +1 -0
  106. package/dist/components/stories/Card.stories.d.ts +7 -0
  107. package/dist/components/stories/Card.stories.es.js +193 -0
  108. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  109. package/dist/components/stories/Checkbox.stories.es.js +41 -12
  110. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  111. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  112. package/dist/components/stories/Dialog.stories.cjs.js +1 -0
  113. package/dist/components/stories/Dialog.stories.d.ts +7 -0
  114. package/dist/components/stories/Dialog.stories.es.js +33 -0
  115. package/dist/components/stories/Divider.stories.cjs.js +1 -0
  116. package/dist/components/stories/Divider.stories.d.ts +6 -0
  117. package/dist/components/stories/Divider.stories.es.js +41 -0
  118. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
  119. package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
  120. package/dist/components/stories/FormControlLabel.stories.es.js +378 -0
  121. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  122. package/dist/components/stories/Heading.stories.es.js +2 -2
  123. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  124. package/dist/components/stories/IconButton.stories.es.js +2 -2
  125. package/dist/components/stories/Link.stories.cjs.js +1 -0
  126. package/dist/components/stories/Link.stories.d.ts +7 -0
  127. package/dist/components/stories/Link.stories.es.js +43 -0
  128. package/dist/components/stories/Menu.stories.cjs.js +1 -0
  129. package/dist/components/stories/Menu.stories.d.ts +7 -0
  130. package/dist/components/stories/Menu.stories.es.js +51 -0
  131. package/dist/components/stories/Paper.stories.cjs.js +1 -0
  132. package/dist/components/stories/Paper.stories.d.ts +7 -0
  133. package/dist/components/stories/Paper.stories.es.js +28 -0
  134. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  135. package/dist/components/stories/RadioGroup.stories.es.js +70 -371
  136. package/dist/components/stories/Select.stories.cjs.js +1 -1
  137. package/dist/components/stories/Select.stories.es.js +3 -3
  138. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  139. package/dist/components/stories/TabList.stories.es.js +8 -8
  140. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  141. package/dist/components/stories/TextField.stories.es.js +1 -1
  142. package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
  143. package/dist/components/stories/Tooltip.stories.d.ts +7 -0
  144. package/dist/components/stories/Tooltip.stories.es.js +46 -0
  145. package/dist/components/stories/Typography.stories.cjs.js +1 -0
  146. package/dist/components/stories/Typography.stories.d.ts +6 -0
  147. package/dist/components/stories/Typography.stories.es.js +65 -0
  148. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  149. package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
  150. package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-BS0Qe85N.js} +3 -3
  151. package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
  152. package/dist/debounce-46wSf_lW.js +15 -0
  153. package/dist/debounce-DpCj7ugL.cjs +1 -0
  154. package/dist/dividerClasses-Bp7otbbC.js +9 -0
  155. package/dist/dividerClasses-O0vIU6On.cjs +1 -0
  156. package/dist/elementTypeAcceptingRef-DOFWAguJ.js +23 -0
  157. package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
  158. package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
  159. package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-BpXLpaGL.js} +1 -1
  160. package/dist/formControlState-CuX6WjAX.cjs +1 -0
  161. package/dist/formControlState-vgaj2ksH.js +10 -0
  162. package/dist/{fr-Nvp7C-vS.cjs → fr-CSCQhSqi.cjs} +1 -1
  163. package/dist/{fr-B8_MxRl5.js → fr-Djc-bU-B.js} +23 -23
  164. package/dist/{identifier-BqadgaK7.js → identifier-B7MO0PvI.js} +490 -489
  165. package/dist/{identifier-BQH88SE0.cjs → identifier-DTh6b5Gz.cjs} +17 -17
  166. package/dist/{index-CNv8ppur.cjs → index-B_acx8gh.cjs} +1 -1
  167. package/dist/{index-BUxqDIr9.js → index-CKZgd5LP.js} +4 -4
  168. package/dist/{index-D7nFYLYq.cjs → index-oINGa1MV.cjs} +1 -1
  169. package/dist/{index-CRT92bm7.js → index-yb8koCDz.js} +3 -3
  170. package/dist/index.cjs.js +1 -1
  171. package/dist/index.es.js +282 -272
  172. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  173. package/dist/isFocusVisible-DlSijby6.cjs +2 -0
  174. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  175. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  176. package/dist/{memoTheme-DfGVDRrB.js → memoTheme-CqfvfBST.js} +1 -1
  177. package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-DJBS0nbO.cjs} +1 -1
  178. package/dist/ownerDocument-4MViGo3k.cjs +1 -0
  179. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  180. package/dist/ownerWindow-DDHucZi0.cjs +1 -0
  181. package/dist/ownerWindow-niciwP7I.js +7 -0
  182. package/dist/refType-BqQbA6de.js +7 -0
  183. package/dist/refType-DNB-r0Bp.cjs +1 -0
  184. package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-CYk57pLv.js} +1 -1
  185. package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-R_l8gy3y.cjs} +1 -1
  186. package/dist/useForkRef-CTI33h-3.cjs +1 -0
  187. package/dist/useForkRef-C_4o__cU.js +15 -0
  188. package/dist/{useSlot-Co14PUn6.js → useSlot-BSVkAc2J.js} +2 -2
  189. package/dist/{useSlot-42jgZftI.cjs → useSlot-i7AZwCRV.cjs} +1 -1
  190. package/dist/{useTheme-CtT7O-Wk.js → useTheme-CzzAEESs.js} +3 -3
  191. package/dist/{useTheme-tZYpFplW.cjs → useTheme-DfN3sBzg.cjs} +1 -1
  192. package/dist/{useTheme-oM_SFWy4.js → useTheme-DrsmidxY.js} +1 -1
  193. package/dist/{useTheme-cVN-YQNB.cjs → useTheme-w4BoR6ol.cjs} +1 -1
  194. package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-B9UyPpzT.js} +3 -3
  195. package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-BFeVem33.js} +2 -2
  196. package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
  197. package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-CkGODfms.cjs} +1 -1
  198. package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
  199. package/dist/{useTimeout-D16vpBhn.js → useTimeout-Znm_nF2D.js} +4 -4
  200. package/dist/utils-BWx1W_q1.cjs +1 -0
  201. package/dist/utils-D2bhwE7x.cjs +1 -0
  202. package/dist/utils-DWqc1kRF.js +13 -0
  203. package/dist/utils-jA5a7WHN.js +391 -0
  204. package/package.json +1 -1
  205. package/dist/Backdrop-KAJqifAq.cjs +0 -1
  206. package/dist/Backdrop-RBPtVAPX.js +0 -744
  207. package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
  208. package/dist/DatePicker-rhgpaD-r.cjs +0 -17
  209. package/dist/DatePicker-u4rtXGeo.js +0 -12791
  210. package/dist/FormGroup-BBYEQB4C.cjs +0 -1
  211. package/dist/FormGroup-BVtE8Mrv.js +0 -348
  212. package/dist/FormLabel-D8jYibc1.cjs +0 -2
  213. package/dist/IconButton-CVyLtjcH.cjs +0 -2
  214. package/dist/InputBase-Ctmib7Br.cjs +0 -3
  215. package/dist/MenuItem-Els-vJZW.cjs +0 -1
  216. package/dist/Select-BlPQngVF.js +0 -4720
  217. package/dist/Select-ipcMZ4iK.cjs +0 -11
  218. package/dist/Tabs-Nvk94RTW.cjs +0 -4
  219. package/dist/Tooltip-DvPL2M0E.cjs +0 -100
  220. package/dist/formControlState-DCkDUdfO.cjs +0 -1
  221. package/dist/formControlState-DdQP43Uo.js +0 -21
  222. package/dist/ownerWindow-BoRkeomM.js +0 -23
  223. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  224. package/dist/refType-DlHf9HvO.js +0 -27
  225. package/dist/refType-Do7KaOvv.cjs +0 -1
  226. package/dist/useForkRef-D-DyzOXj.js +0 -21
  227. package/dist/useForkRef-D81w5oMb.cjs +0 -1
@@ -0,0 +1,378 @@
1
+ import { jsxs as y, jsx as s } from "react/jsx-runtime";
2
+ import { C as S } from "../../Checkbox-Bmz9nh6k.js";
3
+ import { a as $ } from "../../Radio-CW4v1BS4.js";
4
+ import * as C from "react";
5
+ import { I as x, H as T, L as i, P as t, n as f, s as R, q as z, G as O } from "../../identifier-B7MO0PvI.js";
6
+ import { c as j } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
7
+ import { S as B } from "../../SwitchBase-DBnju71w.js";
8
+ import { m as d } from "../../memoTheme-CqfvfBST.js";
9
+ import { s as p, u as L, c as M } from "../../DefaultPropsProvider-BYFwNPLt.js";
10
+ import { r as P } from "../../refType-BqQbA6de.js";
11
+ import { F as N } from "../../FormControlLabel-BDXTL5Eo.js";
12
+ function I(o) {
13
+ return T("MuiSwitch", o);
14
+ }
15
+ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), D = (o) => {
16
+ const {
17
+ classes: e,
18
+ edge: r,
19
+ size: l,
20
+ color: b,
21
+ checked: u,
22
+ disabled: g
23
+ } = o, h = {
24
+ root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
25
+ switchBase: ["switchBase", `color${i(b)}`, u && "checked", g && "disabled"],
26
+ thumb: ["thumb"],
27
+ track: ["track"],
28
+ input: ["input"]
29
+ }, m = M(h, I, e);
30
+ return {
31
+ ...e,
32
+ // forward the disabled and checked classes to the SwitchBase
33
+ ...m
34
+ };
35
+ }, F = p("span", {
36
+ name: "MuiSwitch",
37
+ slot: "Root",
38
+ overridesResolver: (o, e) => {
39
+ const {
40
+ ownerState: r
41
+ } = o;
42
+ return [e.root, r.edge && e[`edge${i(r.edge)}`], e[`size${i(r.size)}`]];
43
+ }
44
+ })({
45
+ display: "inline-flex",
46
+ width: 34 + 12 * 2,
47
+ height: 14 + 12 * 2,
48
+ overflow: "hidden",
49
+ padding: 12,
50
+ boxSizing: "border-box",
51
+ position: "relative",
52
+ flexShrink: 0,
53
+ zIndex: 0,
54
+ // Reset the stacking context.
55
+ verticalAlign: "middle",
56
+ // For correct alignment with the text.
57
+ "@media print": {
58
+ colorAdjust: "exact"
59
+ },
60
+ variants: [{
61
+ props: {
62
+ edge: "start"
63
+ },
64
+ style: {
65
+ marginLeft: -8
66
+ }
67
+ }, {
68
+ props: {
69
+ edge: "end"
70
+ },
71
+ style: {
72
+ marginRight: -8
73
+ }
74
+ }, {
75
+ props: {
76
+ size: "small"
77
+ },
78
+ style: {
79
+ width: 40,
80
+ height: 24,
81
+ padding: 7,
82
+ [`& .${a.thumb}`]: {
83
+ width: 16,
84
+ height: 16
85
+ },
86
+ [`& .${a.switchBase}`]: {
87
+ padding: 4,
88
+ [`&.${a.checked}`]: {
89
+ transform: "translateX(16px)"
90
+ }
91
+ }
92
+ }
93
+ }]
94
+ }), q = p(B, {
95
+ name: "MuiSwitch",
96
+ slot: "SwitchBase",
97
+ overridesResolver: (o, e) => {
98
+ const {
99
+ ownerState: r
100
+ } = o;
101
+ return [e.switchBase, {
102
+ [`& .${a.input}`]: e.input
103
+ }, r.color !== "default" && e[`color${i(r.color)}`]];
104
+ }
105
+ })(d(({
106
+ theme: o
107
+ }) => ({
108
+ position: "absolute",
109
+ top: 0,
110
+ left: 0,
111
+ zIndex: 1,
112
+ // Render above the focus ripple.
113
+ color: o.vars ? o.vars.palette.Switch.defaultColor : `${o.palette.mode === "light" ? o.palette.common.white : o.palette.grey[300]}`,
114
+ transition: o.transitions.create(["left", "transform"], {
115
+ duration: o.transitions.duration.shortest
116
+ }),
117
+ [`&.${a.checked}`]: {
118
+ transform: "translateX(20px)"
119
+ },
120
+ [`&.${a.disabled}`]: {
121
+ color: o.vars ? o.vars.palette.Switch.defaultDisabledColor : `${o.palette.mode === "light" ? o.palette.grey[100] : o.palette.grey[600]}`
122
+ },
123
+ [`&.${a.checked} + .${a.track}`]: {
124
+ opacity: 0.5
125
+ },
126
+ [`&.${a.disabled} + .${a.track}`]: {
127
+ opacity: o.vars ? o.vars.opacity.switchTrackDisabled : `${o.palette.mode === "light" ? 0.12 : 0.2}`
128
+ },
129
+ [`& .${a.input}`]: {
130
+ left: "-100%",
131
+ width: "300%"
132
+ }
133
+ })), d(({
134
+ theme: o
135
+ }) => ({
136
+ "&:hover": {
137
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.action.active, o.palette.action.hoverOpacity),
138
+ // Reset on touch devices, it doesn't add specificity
139
+ "@media (hover: none)": {
140
+ backgroundColor: "transparent"
141
+ }
142
+ },
143
+ variants: [...Object.entries(o.palette).filter(j(["light"])).map(([e]) => ({
144
+ props: {
145
+ color: e
146
+ },
147
+ style: {
148
+ [`&.${a.checked}`]: {
149
+ color: (o.vars || o).palette[e].main,
150
+ "&:hover": {
151
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette[e].main, o.palette.action.hoverOpacity),
152
+ "@media (hover: none)": {
153
+ backgroundColor: "transparent"
154
+ }
155
+ },
156
+ [`&.${a.disabled}`]: {
157
+ color: o.vars ? o.vars.palette.Switch[`${e}DisabledColor`] : `${o.palette.mode === "light" ? R(o.palette[e].main, 0.62) : z(o.palette[e].main, 0.55)}`
158
+ }
159
+ },
160
+ [`&.${a.checked} + .${a.track}`]: {
161
+ backgroundColor: (o.vars || o).palette[e].main
162
+ }
163
+ }
164
+ }))]
165
+ }))), U = p("span", {
166
+ name: "MuiSwitch",
167
+ slot: "Track",
168
+ overridesResolver: (o, e) => e.track
169
+ })(d(({
170
+ theme: o
171
+ }) => ({
172
+ height: "100%",
173
+ width: "100%",
174
+ borderRadius: 14 / 2,
175
+ zIndex: -1,
176
+ transition: o.transitions.create(["opacity", "background-color"], {
177
+ duration: o.transitions.duration.shortest
178
+ }),
179
+ backgroundColor: o.vars ? o.vars.palette.common.onBackground : `${o.palette.mode === "light" ? o.palette.common.black : o.palette.common.white}`,
180
+ opacity: o.vars ? o.vars.opacity.switchTrack : `${o.palette.mode === "light" ? 0.38 : 0.3}`
181
+ }))), E = p("span", {
182
+ name: "MuiSwitch",
183
+ slot: "Thumb",
184
+ overridesResolver: (o, e) => e.thumb
185
+ })(d(({
186
+ theme: o
187
+ }) => ({
188
+ boxShadow: (o.vars || o).shadows[1],
189
+ backgroundColor: "currentColor",
190
+ width: 20,
191
+ height: 20,
192
+ borderRadius: "50%"
193
+ }))), w = /* @__PURE__ */ C.forwardRef(function(e, r) {
194
+ const l = L({
195
+ props: e,
196
+ name: "MuiSwitch"
197
+ }), {
198
+ className: b,
199
+ color: u = "primary",
200
+ edge: g = !1,
201
+ size: h = "medium",
202
+ sx: m,
203
+ ...k
204
+ } = l, n = {
205
+ ...l,
206
+ color: u,
207
+ edge: g,
208
+ size: h
209
+ }, c = D(n), v = /* @__PURE__ */ s(E, {
210
+ className: c.thumb,
211
+ ownerState: n
212
+ });
213
+ return /* @__PURE__ */ y(F, {
214
+ className: O(c.root, b),
215
+ sx: m,
216
+ ownerState: n,
217
+ children: [/* @__PURE__ */ s(q, {
218
+ type: "checkbox",
219
+ icon: v,
220
+ checkedIcon: v,
221
+ ref: r,
222
+ ownerState: n,
223
+ ...k,
224
+ classes: {
225
+ ...c,
226
+ root: c.switchBase
227
+ }
228
+ }), /* @__PURE__ */ s(U, {
229
+ className: c.track,
230
+ ownerState: n
231
+ })]
232
+ });
233
+ });
234
+ process.env.NODE_ENV !== "production" && (w.propTypes = {
235
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
236
+ // │ These PropTypes are generated from the TypeScript type definitions. │
237
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
238
+ // └─────────────────────────────────────────────────────────────────────┘
239
+ /**
240
+ * If `true`, the component is checked.
241
+ */
242
+ checked: t.bool,
243
+ /**
244
+ * The icon to display when the component is checked.
245
+ */
246
+ checkedIcon: t.node,
247
+ /**
248
+ * Override or extend the styles applied to the component.
249
+ */
250
+ classes: t.object,
251
+ /**
252
+ * @ignore
253
+ */
254
+ className: t.string,
255
+ /**
256
+ * The color of the component.
257
+ * It supports both default and custom theme colors, which can be added as shown in the
258
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
259
+ * @default 'primary'
260
+ */
261
+ color: t.oneOfType([t.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
262
+ /**
263
+ * The default checked state. Use when the component is not controlled.
264
+ */
265
+ defaultChecked: t.bool,
266
+ /**
267
+ * If `true`, the component is disabled.
268
+ */
269
+ disabled: t.bool,
270
+ /**
271
+ * If `true`, the ripple effect is disabled.
272
+ * @default false
273
+ */
274
+ disableRipple: t.bool,
275
+ /**
276
+ * If given, uses a negative margin to counteract the padding on one
277
+ * side (this is often helpful for aligning the left or right
278
+ * side of the icon with content above or below, without ruining the border
279
+ * size and shape).
280
+ * @default false
281
+ */
282
+ edge: t.oneOf(["end", "start", !1]),
283
+ /**
284
+ * The icon to display when the component is unchecked.
285
+ */
286
+ icon: t.node,
287
+ /**
288
+ * The id of the `input` element.
289
+ */
290
+ id: t.string,
291
+ /**
292
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
293
+ */
294
+ inputProps: t.object,
295
+ /**
296
+ * Pass a ref to the `input` element.
297
+ */
298
+ inputRef: P,
299
+ /**
300
+ * Callback fired when the state is changed.
301
+ *
302
+ * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
303
+ * You can pull out the new value by accessing `event.target.value` (string).
304
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
305
+ */
306
+ onChange: t.func,
307
+ /**
308
+ * If `true`, the `input` element is required.
309
+ * @default false
310
+ */
311
+ required: t.bool,
312
+ /**
313
+ * The size of the component.
314
+ * `small` is equivalent to the dense switch styling.
315
+ * @default 'medium'
316
+ */
317
+ size: t.oneOfType([t.oneOf(["medium", "small"]), t.string]),
318
+ /**
319
+ * The system prop that allows defining system overrides as well as additional CSS styles.
320
+ */
321
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
322
+ /**
323
+ * The value of the component. The DOM API casts this to a string.
324
+ * The browser uses "on" as the default value.
325
+ */
326
+ value: t.any
327
+ });
328
+ const A = (o) => /* @__PURE__ */ s(N, { ...o }), Z = {
329
+ title: "Components/FormControlLabel",
330
+ component: A,
331
+ argTypes: {
332
+ control: {
333
+ control: "object"
334
+ },
335
+ disabled: {
336
+ control: "boolean"
337
+ },
338
+ disableTypography: {
339
+ control: "boolean"
340
+ },
341
+ label: {
342
+ control: "object"
343
+ },
344
+ labelPlacement: {
345
+ control: "select",
346
+ options: ["bottom", "end", "start", "top"]
347
+ },
348
+ required: {
349
+ control: "boolean"
350
+ }
351
+ }
352
+ }, oo = {
353
+ args: {
354
+ control: /* @__PURE__ */ s(S, {}),
355
+ checked: void 0,
356
+ disabled: void 0,
357
+ disableTypography: void 0,
358
+ label: "Label",
359
+ labelPlacement: "end",
360
+ required: void 0
361
+ }
362
+ }, to = {
363
+ args: {
364
+ control: /* @__PURE__ */ s($, {}),
365
+ label: "Label"
366
+ }
367
+ }, eo = {
368
+ args: {
369
+ control: /* @__PURE__ */ s(w, {}),
370
+ label: "Label"
371
+ }
372
+ };
373
+ export {
374
+ oo as Checkbox,
375
+ to as Radio,
376
+ eo as Switch,
377
+ Z as default
378
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-GU7fqNnI.cjs"),t=require("../Heading/Heading.cjs.js"),n=require("../../identifier-BQH88SE0.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
+ "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-DxbvMQd7.js";
2
+ import { c as t } from "../../createSvgIcon-BS0Qe85N.js";
3
3
  import n from "../Heading/Heading.es.js";
4
- import { r as c } from "../../identifier-BqadgaK7.js";
4
+ import { r as c } from "../../identifier-B7MO0PvI.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-GU7fqNnI.cjs"),t=require("../../IconButton-CVyLtjcH.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
+ "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-DxbvMQd7.js";
3
- import { I as o } from "../../IconButton-Av8eJ5IG.js";
2
+ import { c as t } from "../../createSvgIcon-BS0Qe85N.js";
3
+ import { I as o } from "../../IconButton-DLcGpM1F.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-D_0FIsgB.js";
3
+ const n = (r) => /* @__PURE__ */ o(e, { ...r }), c = {
4
+ title: "Components/Link",
5
+ component: n,
6
+ argTypes: {
7
+ children: {
8
+ control: "text"
9
+ },
10
+ color: {
11
+ control: "select",
12
+ options: [
13
+ "primary",
14
+ "secondary",
15
+ "error",
16
+ "info",
17
+ "success",
18
+ "warning",
19
+ "textPrimary",
20
+ "textSecondary",
21
+ "textDisabled"
22
+ ]
23
+ },
24
+ href: {
25
+ control: "text"
26
+ },
27
+ underline: {
28
+ control: "select",
29
+ options: ["always", "hover", "none"]
30
+ }
31
+ }
32
+ }, s = {
33
+ args: {
34
+ children: "Link",
35
+ color: "primary",
36
+ href: "https://www.cgi.com/france/fr-fr/solution/cgi-learning-hub",
37
+ underline: "always"
38
+ }
39
+ };
40
+ export {
41
+ s as Default,
42
+ c as default
43
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),a=require("../Button/Button.cjs.js"),d=require("../../Menu-0Hr9Yx9l.cjs"),o=require("../../MenuItem-BP7OsPVc.cjs"),m=r=>{const[u,s]=l.useState(null),t=!!u,c=i=>{s(i.currentTarget)},n=()=>s(null);return e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"text",id:"basic-button","aria-controls":t?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:c,children:"Open menu"}),e.jsxs(d.Menu,{...r,id:"basic-menu",anchorEl:u,open:t,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},children:[e.jsx(o.MenuItem,{onClick:n,children:"Profile"}),e.jsx(o.MenuItem,{onClick:n,children:"My account"}),e.jsx(o.MenuItem,{onClick:n,children:"Logout"})]})]})},M={title:"Components/Menu",component:m},p={args:{}};exports.Default=p;exports.default=M;
@@ -0,0 +1,7 @@
1
+ import { MenuProps } from '@mui/material/Menu';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+ declare const Menu: (props: MenuProps) => import("react/jsx-runtime").JSX.Element;
4
+ declare const meta: Meta<typeof Menu>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof Menu>;
7
+ export declare const Default: Story;
@@ -0,0 +1,51 @@
1
+ import { jsxs as a, Fragment as u, jsx as o } from "react/jsx-runtime";
2
+ import { useState as m } from "react";
3
+ import p from "../Button/Button.es.js";
4
+ import { M as d } from "../../Menu-ysG9uY3e.js";
5
+ import { M as t } from "../../MenuItem-DYrKaYOk.js";
6
+ const h = (c) => {
7
+ const [r, i] = m(null), e = !!r, l = (s) => {
8
+ i(s.currentTarget);
9
+ }, n = () => i(null);
10
+ return /* @__PURE__ */ a(u, { children: [
11
+ /* @__PURE__ */ o(
12
+ p,
13
+ {
14
+ variant: "text",
15
+ id: "basic-button",
16
+ "aria-controls": e ? "basic-menu" : void 0,
17
+ "aria-haspopup": "true",
18
+ "aria-expanded": e ? "true" : void 0,
19
+ onClick: l,
20
+ children: "Open menu"
21
+ }
22
+ ),
23
+ /* @__PURE__ */ a(
24
+ d,
25
+ {
26
+ ...c,
27
+ id: "basic-menu",
28
+ anchorEl: r,
29
+ open: e,
30
+ onClose: n,
31
+ MenuListProps: {
32
+ "aria-labelledby": "basic-button"
33
+ },
34
+ children: [
35
+ /* @__PURE__ */ o(t, { onClick: n, children: "Profile" }),
36
+ /* @__PURE__ */ o(t, { onClick: n, children: "My account" }),
37
+ /* @__PURE__ */ o(t, { onClick: n, children: "Logout" })
38
+ ]
39
+ }
40
+ )
41
+ ] });
42
+ }, x = {
43
+ title: "Components/Menu",
44
+ component: h
45
+ }, g = {
46
+ args: {}
47
+ };
48
+ export {
49
+ g as Default,
50
+ x as default
51
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("../../Paper-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-vlsh8Nca.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"),O=require("../../FormLabel-D8jYibc1.cjs"),B=require("react"),o=require("../../identifier-BQH88SE0.cjs"),D=require("../../useControlled-Ysk4KqoX.cjs"),E=require("../../useForkRef-D81w5oMb.cjs"),U=require("../../useId-DNXtOFeX.cjs"),v=require("../../FormGroup-BBYEQB4C.cjs"),c=require("../../DefaultPropsProvider-BrX6iuA3.cjs"),_=require("../../SwitchBase-URM3X3YZ.cjs"),G=require("../../createSvgIcon-GU7fqNnI.cjs"),V=require("../../memoTheme-B6o2KVgJ.cjs"),L=require("../../useFormControl-haP0iPhl.cjs"),F=require("../../createSimplePaletteValueFilter-PTK3TAhW.cjs"),H=require("../../refType-Do7KaOvv.cjs");function Z(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=Z(B),A=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"),J=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"),K=c.styled("span",{shouldForwardProp:c.rootShouldForwardProp})({position:"relative",display:"flex"}),Q=c.styled(A)({transform:"scale(1)"}),W=c.styled(J)(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 w(e){const{checked:r=!1,classes:t={},fontSize:a}=e,n={...e,checked:r};return s.jsxs(K,{className:t.root,ownerState:n,children:[s.jsx(Q,{fontSize:a,className:t.background,ownerState:n}),s.jsx(W,{fontSize:a,className:t.dot,ownerState:n})]})}process.env.NODE_ENV!=="production"&&(w.propTypes={checked:o.PropTypes.bool,classes:o.PropTypes.object,fontSize:o.PropTypes.oneOf(["small","medium"])});const z=l.createContext(void 0);process.env.NODE_ENV!=="production"&&(z.displayName="RadioGroupContext");function X(){return l.useContext(z)}function Y(e){return o.generateUtilityClass("MuiRadio",e)}const q=o.generateUtilityClasses("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ee=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,Y,r)}},oe=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 re(e,r){return typeof r=="object"&&r!==null?e===r:String(e)===String(r)}const N=s.jsx(w,{checked:!0}),I=s.jsx(w,{}),T=l.forwardRef(function(r,t){const a=c.useDefaultProps({props:r,name:"MuiRadio"}),{checked:n,checkedIcon:C=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=ee(g),y=X();let x=n;const $=O.createChainedFunction(S,y&&y.onChange);let k=u;return y&&(typeof x>"u"&&(x=re(y.value,a.value)),typeof k>"u"&&(k=y.name)),s.jsx(oe,{type:"radio",icon:l.cloneElement(h,{fontSize:I.props.fontSize??d}),checkedIcon:l.cloneElement(C,{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"&&(T.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:H.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 te(e){return o.generateUtilityClass("MuiRadioGroup",e)}o.generateUtilityClasses("MuiRadioGroup",["root","row","error"]);const se=e=>{const{classes:r,row:t,error:a}=e,n={root:["root",t&&"row",a&&"error"]};return c.composeClasses(n,te,r)},M=l.forwardRef(function(r,t){const{actions:a,children:n,className:C,defaultValue:R,name:h,onChange:u,value:S,...d}=r,f=l.useRef(null),j=se(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(z.Provider,{value:g,children:s.jsx(v.FormGroup,{role:"radiogroup",ref:P,className:o.clsx(j.root,C),...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 ae=e=>s.jsxs(O.FormControl,{children:[s.jsx(O.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(T,{}),label:"First"}),s.jsx(v.FormControlLabel,{value:"second",control:s.jsx(T,{}),label:"Second"}),s.jsx(v.FormControlLabel,{value:"third",control:s.jsx(T,{}),label:"Third"})]})]}),ne={title:"Components/RadioGroup",component:ae},ie={args:{row:!1}},le={args:{row:!0}};exports.Default=ie;exports.Row=le;exports.default=ne;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),R=require("../../FormLabel-DcUS1c1d.cjs"),F=require("react"),r=require("../../identifier-DTh6b5Gz.cjs"),u=require("../../Radio-D-wbZ6M-.cjs"),G=require("../../useControlled-Ysk4KqoX.cjs"),T=require("../../useForkRef-CTI33h-3.cjs"),w=require("../../useId-DNXtOFeX.cjs"),S=require("../../FormGroup-CFDapyxc.cjs"),L=require("../../DefaultPropsProvider-eVMpAUQg.cjs"),p=require("../../FormControlLabel-D8GTkxJD.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)},g=l.forwardRef(function(t,s){const{actions:a,children:i,className:y,defaultValue:j,name:C,onChange:c,value:v,...h}=t,d=l.useRef(null),x=M(t),[f,m]=G.useControlled({controlled:v,default:j,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(C),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"&&(g.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(R.FormControl,{children:[o.jsx(R.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(g,{"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}},k={args:{row:!0}};exports.Default=_;exports.Row=k;exports.default=V;