@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733911143

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 (270) hide show
  1. package/dist/Backdrop-DqUdx8FP.cjs +1 -0
  2. package/dist/Backdrop-ZqzrnV2E.js +360 -0
  3. package/dist/Box-Be6jhcmK.cjs +1 -0
  4. package/dist/{Box-UE-zctbJ.js → Box-DN_2fcm9.js} +9 -9
  5. package/dist/Button-C6UXybBV.cjs +1 -0
  6. package/dist/{Button-Bjy0iPNm.js → Button-CL9rFoOY.js} +152 -118
  7. package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-CYkLbJ0U.js} +232 -240
  8. package/dist/ButtonBase-DzK1n18b.cjs +74 -0
  9. package/dist/Card-DO4cAmNC.js +74 -0
  10. package/dist/Card-DsmqVSx1.cjs +1 -0
  11. package/dist/Checkbox-Btg05OjV.cjs +1 -0
  12. package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-CLM5GjuC.js} +27 -26
  13. package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
  14. package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-C4xtwh4E.js} +28 -27
  15. package/dist/DatePicker-BXTOQETi.cjs +14 -0
  16. package/dist/DatePicker-D9suyaUZ.js +10846 -0
  17. package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
  18. package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
  19. package/dist/Delete-CpADFuIX.cjs +1 -0
  20. package/dist/Delete-DWXEW4-c.js +8 -0
  21. package/dist/DialogContent-D_JmqJt6.js +603 -0
  22. package/dist/DialogContent-gRISmOoj.cjs +1 -0
  23. package/dist/DialogTitle-CID6RFNo.js +134 -0
  24. package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
  25. package/dist/Divider-BjxxEFnr.cjs +1 -0
  26. package/dist/Divider-HhF8ckeh.js +296 -0
  27. package/dist/FormControlLabel-0-cflTuo.js +262 -0
  28. package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
  29. package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
  30. package/dist/FormGroup-DIP4u-gv.js +95 -0
  31. package/dist/FormLabel-Ch103TK-.cjs +2 -0
  32. package/dist/{FormLabel-B4QlkhhB.js → FormLabel-X7FN1eBV.js} +39 -44
  33. package/dist/Grow-BgMSa0P2.js +193 -0
  34. package/dist/Grow-D7OAahbU.cjs +1 -0
  35. package/dist/{IconButton-Av8eJ5IG.js → IconButton-CMwpC2Co.js} +10 -9
  36. package/dist/IconButton-DbWtCGLB.cjs +2 -0
  37. package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-B4hI0-Jz.js} +9 -8
  38. package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
  39. package/dist/InputBase-BuVAuMNp.cjs +3 -0
  40. package/dist/{InputBase-Bbgoz8GV.js → InputBase-DrofJ7xL.js} +60 -59
  41. package/dist/Link-AXhb0uJT.cjs +1 -0
  42. package/dist/Link-Bdupo_fW.js +267 -0
  43. package/dist/Menu-DR-xtxpt.js +966 -0
  44. package/dist/Menu-_chQG-Za.cjs +7 -0
  45. package/dist/{MenuItem-D7HWYhF3.js → MenuItem-C_d0Sc_L.js} +69 -74
  46. package/dist/MenuItem-De6eStq9.cjs +1 -0
  47. package/dist/Modal-C4Jb6sd1.js +750 -0
  48. package/dist/Modal-GXSEk85U.cjs +2 -0
  49. package/dist/Paper-CH4BABUB.cjs +2 -0
  50. package/dist/Paper-nlWPEgQh.js +185 -0
  51. package/dist/Popper-CjTplNLW.cjs +4 -0
  52. package/dist/Popper-CkAj_qw_.js +1407 -0
  53. package/dist/Portal-BcFwfiTx.js +86 -0
  54. package/dist/Portal-BruYsISj.cjs +1 -0
  55. package/dist/Radio-B0v6nDvz.js +313 -0
  56. package/dist/Radio-BbZnB74m.cjs +1 -0
  57. package/dist/Select-BFGwwKap.cjs +3 -0
  58. package/dist/Select-D9fwtA9U.js +2604 -0
  59. package/dist/{Stack-y1PjTHKX.js → Stack-C1i6_V9e.js} +105 -60
  60. package/dist/Stack-DMNZvXss.cjs +1 -0
  61. package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
  62. package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DfbwljzN.js} +25 -24
  63. package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-DwnLOHOy.js} +2645 -3965
  64. package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
  65. package/dist/{Tabs-DK4Bc5xo.js → Tabs-BoFP2RHv.js} +333 -329
  66. package/dist/Tabs-DEvwJheI.cjs +4 -0
  67. package/dist/{TextField-C-B529_r.js → TextField-kwhzNVAL.js} +35 -34
  68. package/dist/TextField-waKWSLD4.cjs +1 -0
  69. package/dist/Tooltip-CFyOA9CT.cjs +4 -0
  70. package/dist/Tooltip-tgkiC77d.js +721 -0
  71. package/dist/Typography-B6KFjCtE.cjs +1 -0
  72. package/dist/{Typography-C_ESP41L.js → Typography-DWXYj92v.js} +13 -12
  73. package/dist/assets/styles.css +1 -1
  74. package/dist/assets/styles2.css +1 -1
  75. package/dist/capitalize-DASFtB-F.cjs +1 -0
  76. package/dist/capitalize-NmHVRYy8.js +9 -0
  77. package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
  78. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  79. package/dist/components/Button/Button.cjs.js +1 -1
  80. package/dist/components/Button/Button.es.js +28 -27
  81. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  82. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  83. package/dist/components/DatePicker/index.cjs.js +1 -1
  84. package/dist/components/DatePicker/index.es.js +1 -1
  85. package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
  86. package/dist/components/Dropzone/Dropzone.es.js +24 -2162
  87. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  88. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  89. package/dist/components/FileList/FileList.cjs.js +1 -1
  90. package/dist/components/FileList/FileList.es.js +1 -1
  91. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  92. package/dist/components/FileList/FileListItem.es.js +21 -22
  93. package/dist/components/Heading/Heading.cjs.js +1 -1
  94. package/dist/components/Heading/Heading.es.js +2 -2
  95. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
  96. package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
  97. package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
  98. package/dist/components/ImagePicker/index.cjs.js +1 -0
  99. package/dist/components/ImagePicker/index.d.ts +2 -0
  100. package/dist/components/ImagePicker/index.es.js +4 -0
  101. package/dist/components/Loader/Loader.cjs.js +1 -1
  102. package/dist/components/Loader/Loader.es.js +2 -2
  103. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  104. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
  105. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  106. package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
  107. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  108. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  109. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  110. package/dist/components/TextInput/TextInput.es.js +1 -1
  111. package/dist/components/index.cjs.js +1 -1
  112. package/dist/components/index.d.ts +3 -0
  113. package/dist/components/index.es.js +276 -262
  114. package/dist/components/stories/Button.stories.cjs.js +1 -1
  115. package/dist/components/stories/Button.stories.es.js +1 -1
  116. package/dist/components/stories/Card.stories.cjs.js +1 -0
  117. package/dist/components/stories/Card.stories.d.ts +7 -0
  118. package/dist/components/stories/Card.stories.es.js +193 -0
  119. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  120. package/dist/components/stories/Checkbox.stories.es.js +41 -12
  121. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  122. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  123. package/dist/components/stories/Dialog.stories.cjs.js +1 -0
  124. package/dist/components/stories/Dialog.stories.d.ts +7 -0
  125. package/dist/components/stories/Dialog.stories.es.js +53 -0
  126. package/dist/components/stories/Divider.stories.cjs.js +1 -0
  127. package/dist/components/stories/Divider.stories.d.ts +6 -0
  128. package/dist/components/stories/Divider.stories.es.js +41 -0
  129. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
  130. package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
  131. package/dist/components/stories/FormControlLabel.stories.es.js +379 -0
  132. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  133. package/dist/components/stories/Heading.stories.es.js +2 -2
  134. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  135. package/dist/components/stories/IconButton.stories.es.js +47 -11
  136. package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
  137. package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
  138. package/dist/components/stories/ImagePicker.stories.es.js +50 -0
  139. package/dist/components/stories/Link.stories.cjs.js +1 -0
  140. package/dist/components/stories/Link.stories.d.ts +7 -0
  141. package/dist/components/stories/Link.stories.es.js +43 -0
  142. package/dist/components/stories/Menu.stories.cjs.js +1 -0
  143. package/dist/components/stories/Menu.stories.d.ts +7 -0
  144. package/dist/components/stories/Menu.stories.es.js +51 -0
  145. package/dist/components/stories/Paper.stories.cjs.js +1 -0
  146. package/dist/components/stories/Paper.stories.d.ts +7 -0
  147. package/dist/components/stories/Paper.stories.es.js +28 -0
  148. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  149. package/dist/components/stories/RadioGroup.stories.es.js +70 -371
  150. package/dist/components/stories/Select.stories.cjs.js +1 -1
  151. package/dist/components/stories/Select.stories.es.js +3 -3
  152. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  153. package/dist/components/stories/TabList.stories.es.js +140 -90
  154. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  155. package/dist/components/stories/TextField.stories.es.js +1 -1
  156. package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
  157. package/dist/components/stories/Tooltip.stories.d.ts +7 -0
  158. package/dist/components/stories/Tooltip.stories.es.js +46 -0
  159. package/dist/components/stories/Typography.stories.cjs.js +1 -0
  160. package/dist/components/stories/Typography.stories.d.ts +6 -0
  161. package/dist/components/stories/Typography.stories.es.js +65 -0
  162. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  163. package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
  164. package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CeuAoIMQ.js} +6 -5
  165. package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
  166. package/dist/debounce-46wSf_lW.js +15 -0
  167. package/dist/debounce-DpCj7ugL.cjs +1 -0
  168. package/dist/dividerClasses-CSD96RzX.cjs +1 -0
  169. package/dist/dividerClasses-DrJ5oIdP.js +9 -0
  170. package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
  171. package/dist/elementTypeAcceptingRef-HBfwF2vD.js +23 -0
  172. package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
  173. package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-NjjUyYdB.js} +1 -1
  174. package/dist/formControlState-CuX6WjAX.cjs +1 -0
  175. package/dist/formControlState-vgaj2ksH.js +10 -0
  176. package/dist/fr-ChrHtTbj.cjs +1 -0
  177. package/dist/fr-rmVQsNbI.js +312 -0
  178. package/dist/{identifier-BqadgaK7.js → generateUtilityClasses--6MLb_cS.js} +990 -956
  179. package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
  180. package/dist/{index-BUxqDIr9.js → index-B4GmPutS.js} +6 -5
  181. package/dist/index-BGCIdIru.js +2152 -0
  182. package/dist/index-BoQHt8iN.cjs +1 -0
  183. package/dist/index-CRdsZkOC.cjs +17 -0
  184. package/dist/index-CmEzEdk2.cjs +5 -0
  185. package/dist/index-XYfXmNqA.js +186 -0
  186. package/dist/index.cjs.js +1 -1
  187. package/dist/index.es.js +276 -262
  188. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  189. package/dist/isFocusVisible-DlSijby6.cjs +2 -0
  190. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  191. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  192. package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-D99chbOP.cjs} +1 -1
  193. package/dist/{memoTheme-DfGVDRrB.js → memoTheme-o8RCKrNG.js} +1 -1
  194. package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
  195. package/dist/{resolveComponentProps-CxJ2yAJn.js → mergeSlotProps-KHPCviGJ.js} +7 -7
  196. package/dist/ownerDocument-4MViGo3k.cjs +1 -0
  197. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  198. package/dist/ownerWindow-DDHucZi0.cjs +1 -0
  199. package/dist/ownerWindow-niciwP7I.js +7 -0
  200. package/dist/useEnhancedEffect-C9MKL5N4.cjs +1 -0
  201. package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
  202. package/dist/useForkRef-CTI33h-3.cjs +1 -0
  203. package/dist/useForkRef-C_4o__cU.js +15 -0
  204. package/dist/useSlot-DsW0udy9.cjs +1 -0
  205. package/dist/{useSlot-Co14PUn6.js → useSlot-eWxwpnv1.js} +2 -2
  206. package/dist/useSlotProps--FPRW1CI.cjs +1 -0
  207. package/dist/{index-CRT92bm7.js → useSlotProps-C7zjg7t9.js} +26 -26
  208. package/dist/useTheme-B1YEBlI0.cjs +1 -0
  209. package/dist/useTheme-BXzyKigM.js +11 -0
  210. package/dist/{useTheme-oM_SFWy4.js → useTheme-D0ITn2Re.js} +1 -1
  211. package/dist/useTheme-DFJNv-zn.cjs +1 -0
  212. package/dist/useThemeProps-BwyYDczI.cjs +1 -0
  213. package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-DrCROxdY.js} +2 -2
  214. package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-DsDeaP0E.js} +3 -3
  215. package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
  216. package/dist/{useTimeout-D16vpBhn.js → useTimeout-FkIxJmTC.js} +4 -4
  217. package/dist/useTimeout-NIA-3R5R.cjs +1 -0
  218. package/dist/utils-70jLtOQP.js +391 -0
  219. package/dist/utils-BWx1W_q1.cjs +1 -0
  220. package/dist/utils-DWqc1kRF.js +13 -0
  221. package/dist/utils-DlWHEABQ.cjs +1 -0
  222. package/package.json +5 -5
  223. package/dist/Backdrop-KAJqifAq.cjs +0 -1
  224. package/dist/Backdrop-RBPtVAPX.js +0 -744
  225. package/dist/Box-H49yQEt_.cjs +0 -1
  226. package/dist/Button-qc45QbX6.cjs +0 -1
  227. package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
  228. package/dist/Checkbox-CuYTY0gd.cjs +0 -1
  229. package/dist/CircularProgress-BPHINMQw.cjs +0 -28
  230. package/dist/DatePicker-rhgpaD-r.cjs +0 -17
  231. package/dist/DatePicker-u4rtXGeo.js +0 -12791
  232. package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
  233. package/dist/DefaultPropsProvider-CaRoy5OV.js +0 -484
  234. package/dist/FormGroup-BBYEQB4C.cjs +0 -1
  235. package/dist/FormGroup-BVtE8Mrv.js +0 -348
  236. package/dist/FormLabel-D8jYibc1.cjs +0 -2
  237. package/dist/IconButton-CVyLtjcH.cjs +0 -2
  238. package/dist/InputAdornment-BJfpEQAa.cjs +0 -1
  239. package/dist/InputBase-Ctmib7Br.cjs +0 -3
  240. package/dist/MenuItem-Els-vJZW.cjs +0 -1
  241. package/dist/Select-BlPQngVF.js +0 -4720
  242. package/dist/Select-ipcMZ4iK.cjs +0 -11
  243. package/dist/Stack-CEjx3KHM.cjs +0 -1
  244. package/dist/SwitchBase-URM3X3YZ.cjs +0 -1
  245. package/dist/Tabs-Nvk94RTW.cjs +0 -4
  246. package/dist/TextField-BVAkADOb.cjs +0 -1
  247. package/dist/Tooltip-DvPL2M0E.cjs +0 -100
  248. package/dist/Typography-5OodZ94T.cjs +0 -1
  249. package/dist/createSvgIcon-GU7fqNnI.cjs +0 -1
  250. package/dist/extendSxProp-D11-pC6h.cjs +0 -1
  251. package/dist/formControlState-DCkDUdfO.cjs +0 -1
  252. package/dist/formControlState-DdQP43Uo.js +0 -21
  253. package/dist/fr-B8_MxRl5.js +0 -307
  254. package/dist/fr-Nvp7C-vS.cjs +0 -1
  255. package/dist/identifier-BQH88SE0.cjs +0 -59
  256. package/dist/index-CNv8ppur.cjs +0 -1
  257. package/dist/index-D7nFYLYq.cjs +0 -1
  258. package/dist/ownerWindow-BoRkeomM.js +0 -23
  259. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  260. package/dist/refType-DlHf9HvO.js +0 -27
  261. package/dist/refType-Do7KaOvv.cjs +0 -1
  262. package/dist/resolveComponentProps-DTv6xPbb.cjs +0 -1
  263. package/dist/useForkRef-D-DyzOXj.js +0 -21
  264. package/dist/useForkRef-D81w5oMb.cjs +0 -1
  265. package/dist/useSlot-42jgZftI.cjs +0 -1
  266. package/dist/useTheme-CtT7O-Wk.js +0 -11
  267. package/dist/useTheme-cVN-YQNB.cjs +0 -1
  268. package/dist/useTheme-tZYpFplW.cjs +0 -1
  269. package/dist/useThemeProps-r0DnR8FJ.cjs +0 -1
  270. package/dist/useTimeout-DWEGwfTA.cjs +0 -1
@@ -0,0 +1,379 @@
1
+ import { jsxs as y, jsx as s } from "react/jsx-runtime";
2
+ import { C as S } from "../../Checkbox-CLM5GjuC.js";
3
+ import { a as $ } from "../../Radio-B0v6nDvz.js";
4
+ import * as C from "react";
5
+ import { I as x, H as T, P as t, n as v, s as R, q as z, G as O } from "../../generateUtilityClasses--6MLb_cS.js";
6
+ import { c as j } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
7
+ import { S as B } from "../../SwitchBase-DfbwljzN.js";
8
+ import { m as d } from "../../memoTheme-o8RCKrNG.js";
9
+ import { s as p, u as M, c as P } from "../../DefaultPropsProvider-DUWovK-8.js";
10
+ import { c as i } from "../../capitalize-NmHVRYy8.js";
11
+ import { r as L } from "../../useEnhancedEffect-DlS7O_-p.js";
12
+ import { F as N } from "../../FormControlLabel-0-cflTuo.js";
13
+ function I(o) {
14
+ return T("MuiSwitch", o);
15
+ }
16
+ const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), D = (o) => {
17
+ const {
18
+ classes: e,
19
+ edge: r,
20
+ size: l,
21
+ color: b,
22
+ checked: u,
23
+ disabled: g
24
+ } = o, h = {
25
+ root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
26
+ switchBase: ["switchBase", `color${i(b)}`, u && "checked", g && "disabled"],
27
+ thumb: ["thumb"],
28
+ track: ["track"],
29
+ input: ["input"]
30
+ }, m = P(h, I, e);
31
+ return {
32
+ ...e,
33
+ // forward the disabled and checked classes to the SwitchBase
34
+ ...m
35
+ };
36
+ }, F = p("span", {
37
+ name: "MuiSwitch",
38
+ slot: "Root",
39
+ overridesResolver: (o, e) => {
40
+ const {
41
+ ownerState: r
42
+ } = o;
43
+ return [e.root, r.edge && e[`edge${i(r.edge)}`], e[`size${i(r.size)}`]];
44
+ }
45
+ })({
46
+ display: "inline-flex",
47
+ width: 34 + 12 * 2,
48
+ height: 14 + 12 * 2,
49
+ overflow: "hidden",
50
+ padding: 12,
51
+ boxSizing: "border-box",
52
+ position: "relative",
53
+ flexShrink: 0,
54
+ zIndex: 0,
55
+ // Reset the stacking context.
56
+ verticalAlign: "middle",
57
+ // For correct alignment with the text.
58
+ "@media print": {
59
+ colorAdjust: "exact"
60
+ },
61
+ variants: [{
62
+ props: {
63
+ edge: "start"
64
+ },
65
+ style: {
66
+ marginLeft: -8
67
+ }
68
+ }, {
69
+ props: {
70
+ edge: "end"
71
+ },
72
+ style: {
73
+ marginRight: -8
74
+ }
75
+ }, {
76
+ props: {
77
+ size: "small"
78
+ },
79
+ style: {
80
+ width: 40,
81
+ height: 24,
82
+ padding: 7,
83
+ [`& .${a.thumb}`]: {
84
+ width: 16,
85
+ height: 16
86
+ },
87
+ [`& .${a.switchBase}`]: {
88
+ padding: 4,
89
+ [`&.${a.checked}`]: {
90
+ transform: "translateX(16px)"
91
+ }
92
+ }
93
+ }
94
+ }]
95
+ }), q = p(B, {
96
+ name: "MuiSwitch",
97
+ slot: "SwitchBase",
98
+ overridesResolver: (o, e) => {
99
+ const {
100
+ ownerState: r
101
+ } = o;
102
+ return [e.switchBase, {
103
+ [`& .${a.input}`]: e.input
104
+ }, r.color !== "default" && e[`color${i(r.color)}`]];
105
+ }
106
+ })(d(({
107
+ theme: o
108
+ }) => ({
109
+ position: "absolute",
110
+ top: 0,
111
+ left: 0,
112
+ zIndex: 1,
113
+ // Render above the focus ripple.
114
+ color: o.vars ? o.vars.palette.Switch.defaultColor : `${o.palette.mode === "light" ? o.palette.common.white : o.palette.grey[300]}`,
115
+ transition: o.transitions.create(["left", "transform"], {
116
+ duration: o.transitions.duration.shortest
117
+ }),
118
+ [`&.${a.checked}`]: {
119
+ transform: "translateX(20px)"
120
+ },
121
+ [`&.${a.disabled}`]: {
122
+ color: o.vars ? o.vars.palette.Switch.defaultDisabledColor : `${o.palette.mode === "light" ? o.palette.grey[100] : o.palette.grey[600]}`
123
+ },
124
+ [`&.${a.checked} + .${a.track}`]: {
125
+ opacity: 0.5
126
+ },
127
+ [`&.${a.disabled} + .${a.track}`]: {
128
+ opacity: o.vars ? o.vars.opacity.switchTrackDisabled : `${o.palette.mode === "light" ? 0.12 : 0.2}`
129
+ },
130
+ [`& .${a.input}`]: {
131
+ left: "-100%",
132
+ width: "300%"
133
+ }
134
+ })), d(({
135
+ theme: o
136
+ }) => ({
137
+ "&:hover": {
138
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.action.active, o.palette.action.hoverOpacity),
139
+ // Reset on touch devices, it doesn't add specificity
140
+ "@media (hover: none)": {
141
+ backgroundColor: "transparent"
142
+ }
143
+ },
144
+ variants: [...Object.entries(o.palette).filter(j(["light"])).map(([e]) => ({
145
+ props: {
146
+ color: e
147
+ },
148
+ style: {
149
+ [`&.${a.checked}`]: {
150
+ color: (o.vars || o).palette[e].main,
151
+ "&:hover": {
152
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[e].main, o.palette.action.hoverOpacity),
153
+ "@media (hover: none)": {
154
+ backgroundColor: "transparent"
155
+ }
156
+ },
157
+ [`&.${a.disabled}`]: {
158
+ 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)}`
159
+ }
160
+ },
161
+ [`&.${a.checked} + .${a.track}`]: {
162
+ backgroundColor: (o.vars || o).palette[e].main
163
+ }
164
+ }
165
+ }))]
166
+ }))), U = p("span", {
167
+ name: "MuiSwitch",
168
+ slot: "Track",
169
+ overridesResolver: (o, e) => e.track
170
+ })(d(({
171
+ theme: o
172
+ }) => ({
173
+ height: "100%",
174
+ width: "100%",
175
+ borderRadius: 14 / 2,
176
+ zIndex: -1,
177
+ transition: o.transitions.create(["opacity", "background-color"], {
178
+ duration: o.transitions.duration.shortest
179
+ }),
180
+ backgroundColor: o.vars ? o.vars.palette.common.onBackground : `${o.palette.mode === "light" ? o.palette.common.black : o.palette.common.white}`,
181
+ opacity: o.vars ? o.vars.opacity.switchTrack : `${o.palette.mode === "light" ? 0.38 : 0.3}`
182
+ }))), E = p("span", {
183
+ name: "MuiSwitch",
184
+ slot: "Thumb",
185
+ overridesResolver: (o, e) => e.thumb
186
+ })(d(({
187
+ theme: o
188
+ }) => ({
189
+ boxShadow: (o.vars || o).shadows[1],
190
+ backgroundColor: "currentColor",
191
+ width: 20,
192
+ height: 20,
193
+ borderRadius: "50%"
194
+ }))), w = /* @__PURE__ */ C.forwardRef(function(e, r) {
195
+ const l = M({
196
+ props: e,
197
+ name: "MuiSwitch"
198
+ }), {
199
+ className: b,
200
+ color: u = "primary",
201
+ edge: g = !1,
202
+ size: h = "medium",
203
+ sx: m,
204
+ ...k
205
+ } = l, n = {
206
+ ...l,
207
+ color: u,
208
+ edge: g,
209
+ size: h
210
+ }, c = D(n), f = /* @__PURE__ */ s(E, {
211
+ className: c.thumb,
212
+ ownerState: n
213
+ });
214
+ return /* @__PURE__ */ y(F, {
215
+ className: O(c.root, b),
216
+ sx: m,
217
+ ownerState: n,
218
+ children: [/* @__PURE__ */ s(q, {
219
+ type: "checkbox",
220
+ icon: f,
221
+ checkedIcon: f,
222
+ ref: r,
223
+ ownerState: n,
224
+ ...k,
225
+ classes: {
226
+ ...c,
227
+ root: c.switchBase
228
+ }
229
+ }), /* @__PURE__ */ s(U, {
230
+ className: c.track,
231
+ ownerState: n
232
+ })]
233
+ });
234
+ });
235
+ process.env.NODE_ENV !== "production" && (w.propTypes = {
236
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
237
+ // │ These PropTypes are generated from the TypeScript type definitions. │
238
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
239
+ // └─────────────────────────────────────────────────────────────────────┘
240
+ /**
241
+ * If `true`, the component is checked.
242
+ */
243
+ checked: t.bool,
244
+ /**
245
+ * The icon to display when the component is checked.
246
+ */
247
+ checkedIcon: t.node,
248
+ /**
249
+ * Override or extend the styles applied to the component.
250
+ */
251
+ classes: t.object,
252
+ /**
253
+ * @ignore
254
+ */
255
+ className: t.string,
256
+ /**
257
+ * The color of the component.
258
+ * It supports both default and custom theme colors, which can be added as shown in the
259
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
260
+ * @default 'primary'
261
+ */
262
+ color: t.oneOfType([t.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
263
+ /**
264
+ * The default checked state. Use when the component is not controlled.
265
+ */
266
+ defaultChecked: t.bool,
267
+ /**
268
+ * If `true`, the component is disabled.
269
+ */
270
+ disabled: t.bool,
271
+ /**
272
+ * If `true`, the ripple effect is disabled.
273
+ * @default false
274
+ */
275
+ disableRipple: t.bool,
276
+ /**
277
+ * If given, uses a negative margin to counteract the padding on one
278
+ * side (this is often helpful for aligning the left or right
279
+ * side of the icon with content above or below, without ruining the border
280
+ * size and shape).
281
+ * @default false
282
+ */
283
+ edge: t.oneOf(["end", "start", !1]),
284
+ /**
285
+ * The icon to display when the component is unchecked.
286
+ */
287
+ icon: t.node,
288
+ /**
289
+ * The id of the `input` element.
290
+ */
291
+ id: t.string,
292
+ /**
293
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
294
+ */
295
+ inputProps: t.object,
296
+ /**
297
+ * Pass a ref to the `input` element.
298
+ */
299
+ inputRef: L,
300
+ /**
301
+ * Callback fired when the state is changed.
302
+ *
303
+ * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
304
+ * You can pull out the new value by accessing `event.target.value` (string).
305
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
306
+ */
307
+ onChange: t.func,
308
+ /**
309
+ * If `true`, the `input` element is required.
310
+ * @default false
311
+ */
312
+ required: t.bool,
313
+ /**
314
+ * The size of the component.
315
+ * `small` is equivalent to the dense switch styling.
316
+ * @default 'medium'
317
+ */
318
+ size: t.oneOfType([t.oneOf(["medium", "small"]), t.string]),
319
+ /**
320
+ * The system prop that allows defining system overrides as well as additional CSS styles.
321
+ */
322
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
323
+ /**
324
+ * The value of the component. The DOM API casts this to a string.
325
+ * The browser uses "on" as the default value.
326
+ */
327
+ value: t.any
328
+ });
329
+ const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
330
+ title: "Components/FormControlLabel",
331
+ component: A,
332
+ argTypes: {
333
+ control: {
334
+ control: "object"
335
+ },
336
+ disabled: {
337
+ control: "boolean"
338
+ },
339
+ disableTypography: {
340
+ control: "boolean"
341
+ },
342
+ label: {
343
+ control: "object"
344
+ },
345
+ labelPlacement: {
346
+ control: "select",
347
+ options: ["bottom", "end", "start", "top"]
348
+ },
349
+ required: {
350
+ control: "boolean"
351
+ }
352
+ }
353
+ }, to = {
354
+ args: {
355
+ control: /* @__PURE__ */ s(S, {}),
356
+ checked: void 0,
357
+ disabled: void 0,
358
+ disableTypography: void 0,
359
+ label: "Label",
360
+ labelPlacement: "end",
361
+ required: void 0
362
+ }
363
+ }, eo = {
364
+ args: {
365
+ control: /* @__PURE__ */ s($, {}),
366
+ label: "Label"
367
+ }
368
+ }, ao = {
369
+ args: {
370
+ control: /* @__PURE__ */ s(w, {}),
371
+ label: "Label"
372
+ }
373
+ };
374
+ export {
375
+ to as Checkbox,
376
+ eo as Radio,
377
+ ao as Switch,
378
+ oo as default
379
+ };
@@ -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"),t=require("../../createSvgIcon-eUfAcV0x.cjs"),o=require("../Heading/Heading.cjs.js"),n=require("../../generateUtilityClasses-DEQ18TAF.cjs"),c=t.createSvgIcon(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood"),s={title:"Components/Heading",component:o},r={args:{title:"Heading",iconColor:n.red,IconComponent:c}};exports.Default=r;exports.default=s;
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { c as t } from "../../createSvgIcon-DxbvMQd7.js";
2
+ import { c as t } from "../../createSvgIcon-CeuAoIMQ.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 "../../generateUtilityClasses--6MLb_cS.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"),o=require("../../createSvgIcon-eUfAcV0x.cjs"),l=require("../../IconButton-DbWtCGLB.cjs"),t=o.createSvgIcon(e.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),n={title:"Components/IconButton",component:l.IconButton,argTypes:{color:{control:"select",options:["inherit","default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},disableFocusRipple:{control:"boolean"},disableRipple:{control:"boolean"},edge:{control:"radio",options:["end","start",!1]},size:{control:"radio",options:["small","medium","large"]}}},s={args:{children:e.jsx(t,{}),color:"default",disabled:!1,disableFocusRipple:!1,disableRipple:!1,edge:!1,size:"medium"}};exports.Default=s;exports.default=n;
@@ -1,19 +1,55 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { c as t } from "../../createSvgIcon-DxbvMQd7.js";
3
- import { I as o } from "../../IconButton-Av8eJ5IG.js";
4
- const s = t(/* @__PURE__ */ c("path", {
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
- }), "Fingerprint"), a = {
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as e } from "../../createSvgIcon-CeuAoIMQ.js";
3
+ import { I as l } from "../../IconButton-CMwpC2Co.js";
4
+ const s = e(/* @__PURE__ */ o("path", {
5
+ d: "M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"
6
+ }), "School"), r = {
7
7
  title: "Components/IconButton",
8
- component: o
8
+ component: l,
9
+ argTypes: {
10
+ color: {
11
+ control: "select",
12
+ options: [
13
+ "inherit",
14
+ "default",
15
+ "primary",
16
+ "secondary",
17
+ "error",
18
+ "info",
19
+ "success",
20
+ "warning"
21
+ ]
22
+ },
23
+ disabled: {
24
+ control: "boolean"
25
+ },
26
+ disableFocusRipple: {
27
+ control: "boolean"
28
+ },
29
+ disableRipple: {
30
+ control: "boolean"
31
+ },
32
+ edge: {
33
+ control: "radio",
34
+ options: ["end", "start", !1]
35
+ },
36
+ size: {
37
+ control: "radio",
38
+ options: ["small", "medium", "large"]
39
+ }
40
+ }
9
41
  }, i = {
10
42
  args: {
11
- children: /* @__PURE__ */ c(s, {}),
12
- onClick: () => alert("Alert"),
13
- disabled: !1
43
+ children: /* @__PURE__ */ o(s, {}),
44
+ color: "default",
45
+ disabled: !1,
46
+ disableFocusRipple: !1,
47
+ disableRipple: !1,
48
+ edge: !1,
49
+ size: "medium"
14
50
  }
15
51
  };
16
52
  export {
17
53
  i as Default,
18
- a as default
54
+ r as default
19
55
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../ImagePicker/ImagePicker.cjs.js"),a={title:"Components/ImagePicker",component:t,argTypes:{defaultLabel:{description:"Le contenu affiché comme label par défaut (ReactNode).",control:"text",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<ImagePickerDefaultLabel />"}}},dragLabel:{description:"Texte affiché lorsque l'utilisateur fait glisser un fichier.",control:"text",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<ImagePickerDefaultDragLabel />"}}},information:{description:"Informations supplémentaires affichées sous le label par défaut.",control:"text",table:{type:{summary:"string"}}},onFileChange:{description:"Callback déclenché lorsque l'utilisateur sélectionne ou supprime un fichier.",action:"file-changed",table:{type:{summary:"(file: File | null) => void"}}}}},l={args:{information:"SVG, PNG, JPG, GIF",onFileChange:e=>{console.log(e?"Image uplaodé":"Image supprimé")},width:"160px",height:"160px"}};exports.Default=l;exports.default=a;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ImagePicker } from '../ImagePicker';
3
+ declare const meta: Meta<typeof ImagePicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ImagePicker>;
6
+ export declare const Default: Story;
@@ -0,0 +1,50 @@
1
+ import a from "../ImagePicker/ImagePicker.es.js";
2
+ const l = {
3
+ title: "Components/ImagePicker",
4
+ component: a,
5
+ argTypes: {
6
+ defaultLabel: {
7
+ description: "Le contenu affiché comme label par défaut (ReactNode).",
8
+ control: "text",
9
+ table: {
10
+ type: { summary: "ReactNode" },
11
+ defaultValue: { summary: "<ImagePickerDefaultLabel />" }
12
+ }
13
+ },
14
+ dragLabel: {
15
+ description: "Texte affiché lorsque l'utilisateur fait glisser un fichier.",
16
+ control: "text",
17
+ table: {
18
+ type: { summary: "ReactNode" },
19
+ defaultValue: { summary: "<ImagePickerDefaultDragLabel />" }
20
+ }
21
+ },
22
+ information: {
23
+ description: "Informations supplémentaires affichées sous le label par défaut.",
24
+ control: "text",
25
+ table: {
26
+ type: { summary: "string" }
27
+ }
28
+ },
29
+ onFileChange: {
30
+ description: "Callback déclenché lorsque l'utilisateur sélectionne ou supprime un fichier.",
31
+ action: "file-changed",
32
+ table: {
33
+ type: { summary: "(file: File | null) => void" }
34
+ }
35
+ }
36
+ }
37
+ }, i = {
38
+ args: {
39
+ information: "SVG, PNG, JPG, GIF",
40
+ onFileChange: (e) => {
41
+ console.log(e ? "Image uplaodé" : "Image supprimé");
42
+ },
43
+ width: "160px",
44
+ height: "160px"
45
+ }
46
+ };
47
+ export {
48
+ i as Default,
49
+ l as default
50
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../Link-AXhb0uJT.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-Bdupo_fW.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-_chQG-Za.cjs"),o=require("../../MenuItem-De6eStq9.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-DR-xtxpt.js";
5
+ import { M as t } from "../../MenuItem-C_d0Sc_L.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-CH4BABUB.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;