@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740498210

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 (297) hide show
  1. package/dist/Backdrop-COarwgJj.cjs +1 -0
  2. package/dist/{Backdrop-DcDd6WZF.js → Backdrop-DdA12b-5.js} +79 -82
  3. package/dist/Box-C0mEbUoK.cjs +1 -0
  4. package/dist/{Box-Byz2BwGf.js → Box-DbRInJ2-.js} +8 -8
  5. package/dist/Button-1tZRtOeG.cjs +1 -0
  6. package/dist/Button-rxIER0bL.js +662 -0
  7. package/dist/ButtonBase-C2rhY3j-.cjs +74 -0
  8. package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-DzpmdR6N.js} +334 -334
  9. package/dist/CardContent-BXjX98Jd.cjs +1 -0
  10. package/dist/CardContent-u1MKaFvP.js +226 -0
  11. package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-BI77q7eR.js} +26 -27
  12. package/dist/Checkbox-C6CIGK27.cjs +1 -0
  13. package/dist/Chip-6-zATjcr.js +521 -0
  14. package/dist/Chip-CAPnyZyW.cjs +1 -0
  15. package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CDa_qU1a.js} +19 -20
  16. package/dist/CircularProgress-DTVP6gln.cjs +28 -0
  17. package/dist/CloseRounded-DQWTEbNz.cjs +1 -0
  18. package/dist/CloseRounded-DTpqUeWr.js +8 -0
  19. package/dist/{DatePicker-BS1OatwQ.js → DatePicker-BTTLIBm9.js} +3110 -3600
  20. package/dist/DatePicker-CJ5-Udgh.cjs +14 -0
  21. package/dist/DefaultPropsProvider-BcmyIf2H.js +303 -0
  22. package/dist/DefaultPropsProvider-QmkL7lbM.cjs +1 -0
  23. package/dist/Dialog-CgBiKk8B.js +477 -0
  24. package/dist/Dialog-Cmv58WoN.cjs +1 -0
  25. package/dist/DialogContent-CGEdCDYk.cjs +1 -0
  26. package/dist/{DialogContent-uc65XOEU.js → DialogContent-SYCCu1VD.js} +13 -13
  27. package/dist/DialogTitle-Dxm2NHs7.cjs +1 -0
  28. package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-_yayDwkI.js} +30 -30
  29. package/dist/Divider-D_LVNUqS.cjs +1 -0
  30. package/dist/{Divider-KO-E6nU8.js → Divider-Doy31VS6.js} +8 -8
  31. package/dist/FormLabel-D0gSgwnj.cjs +2 -0
  32. package/dist/{FormLabel-CfR4bb21.js → FormLabel-DjkS3S9h.js} +130 -133
  33. package/dist/Grow-D7scX77o.cjs +1 -0
  34. package/dist/{Grow-CQVPAYvp.js → Grow-DPD-iBAX.js} +46 -43
  35. package/dist/{IconButton-CekuyD4r.js → IconButton-B4bt0Hp2.js} +134 -67
  36. package/dist/IconButton-Edo5JMfQ.cjs +2 -0
  37. package/dist/InputAdornment-C9NrmB_z.cjs +1 -0
  38. package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-GzDm1zf_.js} +17 -17
  39. package/dist/{InputBase-BJy3wwFB.js → InputBase-CF5oNEfh.js} +216 -211
  40. package/dist/InputBase-CgOQ0M4_.cjs +3 -0
  41. package/dist/Link-CAbb9OCV.cjs +1 -0
  42. package/dist/{Link-CoQuUM0t.js → Link-CnahHTmK.js} +49 -50
  43. package/dist/Menu-C-R0FVOB.cjs +7 -0
  44. package/dist/{Menu-C7tKmcAh.js → Menu-DzBX10ev.js} +56 -57
  45. package/dist/MenuItem-Cp1_Q0FD.cjs +1 -0
  46. package/dist/{MenuItem-j8luVUcX.js → MenuItem-DQQ-p2ie.js} +20 -20
  47. package/dist/{Modal-brWBFdK7.js → Modal-B8JRJWm0.js} +99 -98
  48. package/dist/Modal-D8lS9C1l.cjs +2 -0
  49. package/dist/Paper-C-oPGpbI.cjs +2 -0
  50. package/dist/{Paper-BG4Vk_Um.js → Paper-CbgkVQVx.js} +8 -8
  51. package/dist/{Popper-DFZ_gRev.js → Popper-1-DDNRPD.js} +241 -243
  52. package/dist/Popper-uw9PkkLY.cjs +4 -0
  53. package/dist/{Portal-JEwcozmp.js → Portal-T-1Qk77D.js} +34 -39
  54. package/dist/Portal-bIKnnWR4.cjs +1 -0
  55. package/dist/Radio-BxMxeQa-.js +567 -0
  56. package/dist/Radio-CvCkmq8g.cjs +1 -0
  57. package/dist/RadioGroup-BLrD8_Lp.js +190 -0
  58. package/dist/RadioGroup-Ya-I8Lz1.cjs +1 -0
  59. package/dist/{Select-DmssuG5M.js → Select-B6mYfJPA.js} +419 -402
  60. package/dist/Select-KMdcuol6.cjs +3 -0
  61. package/dist/Stack-C6v70ALA.cjs +1 -0
  62. package/dist/{Stack-BzTJdRGj.js → Stack-aCUdCw1A.js} +60 -105
  63. package/dist/Switch-BOpqo-TS.js +329 -0
  64. package/dist/Switch-DF4bSjED.cjs +1 -0
  65. package/dist/SwitchBase-7zONZyYP.cjs +1 -0
  66. package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-BAjfatYA.js} +35 -36
  67. package/dist/{Tabs-CYbeTnJk.js → Tabs-CrWcC5nJ.js} +299 -301
  68. package/dist/Tabs-Dploq_37.cjs +4 -0
  69. package/dist/TextField-BC7GvvHh.cjs +1 -0
  70. package/dist/{TextField-Cri5Gxa7.js → TextField-CAmc1Qpg.js} +31 -30
  71. package/dist/ToggleButtonGroup-BCVgsika.cjs +140 -0
  72. package/dist/ToggleButtonGroup-ekxVeQCc.js +10461 -0
  73. package/dist/{Tooltip-BhAHhzKz.js → Tooltip-BvVFPsVR.js} +32 -33
  74. package/dist/Tooltip-CWA-GKdK.cjs +4 -0
  75. package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
  76. package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
  77. package/dist/{Typography-DBwTr_ix.js → Typography-CE8fQQ8B.js} +15 -16
  78. package/dist/Typography-DEAE8-8u.cjs +1 -0
  79. package/dist/components/Alert/Alert.es.js +13 -4
  80. package/dist/components/Button/Button.cjs.js +1 -1
  81. package/dist/components/Button/Button.d.ts +1 -2
  82. package/dist/components/Button/Button.es.js +12 -325
  83. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  84. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  85. package/dist/components/DatePicker/index.cjs.js +1 -1
  86. package/dist/components/DatePicker/index.es.js +1 -1
  87. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  88. package/dist/components/Dialog/Dialog.es.js +12 -14
  89. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  90. package/dist/components/Dropzone/Dropzone.d.ts +2 -0
  91. package/dist/components/Dropzone/Dropzone.es.js +22 -19
  92. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
  93. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
  94. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  95. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  96. package/dist/components/FileList/FileIcon.cjs.js +1 -0
  97. package/dist/components/FileList/FileIcon.d.ts +3 -0
  98. package/dist/components/FileList/FileIcon.es.js +56 -0
  99. package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
  100. package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
  101. package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
  102. package/dist/components/FileList/FileList.cjs.js +1 -1
  103. package/dist/components/FileList/FileList.d.ts +5 -3
  104. package/dist/components/FileList/FileList.es.js +22 -15
  105. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  106. package/dist/components/FileList/FileListItem.d.ts +9 -5
  107. package/dist/components/FileList/FileListItem.es.js +117 -24
  108. package/dist/components/FileList/utils.cjs.js +1 -0
  109. package/dist/components/FileList/utils.d.ts +2 -0
  110. package/dist/components/FileList/utils.es.js +13 -0
  111. package/dist/components/Heading/Heading.cjs.js +1 -1
  112. package/dist/components/Heading/Heading.es.js +2 -2
  113. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  114. package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
  115. package/dist/components/Loader/Loader.cjs.js +1 -1
  116. package/dist/components/Loader/Loader.d.ts +1 -2
  117. package/dist/components/Loader/Loader.es.js +1 -1
  118. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  119. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
  120. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  121. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  122. package/dist/components/PasswordInput/PasswordInput.es.js +12 -10
  123. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  124. package/dist/components/QueryError/QueryError.d.ts +2 -2
  125. package/dist/components/QueryError/QueryError.es.js +14 -14
  126. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
  127. package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
  128. package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
  129. package/dist/components/ResourceCard/index.cjs.js +1 -0
  130. package/dist/components/ResourceCard/index.d.ts +2 -0
  131. package/dist/components/ResourceCard/index.es.js +4 -0
  132. package/dist/components/ResourceCard/style.cjs.js +1 -0
  133. package/dist/components/ResourceCard/style.es.js +125 -0
  134. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  135. package/dist/components/SearchInput/SearchInput.d.ts +1 -2
  136. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  137. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  138. package/dist/components/TextInput/TextInput.es.js +1 -1
  139. package/dist/components/index.cjs.js +1 -1
  140. package/dist/components/index.d.ts +35 -0
  141. package/dist/components/index.es.js +348 -294
  142. package/dist/components/stories/Button.stories.cjs.js +1 -1
  143. package/dist/components/stories/Button.stories.es.js +1 -1
  144. package/dist/components/stories/Card.stories.cjs.js +1 -1
  145. package/dist/components/stories/Card.stories.es.js +17 -168
  146. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  147. package/dist/components/stories/Checkbox.stories.es.js +5 -5
  148. package/dist/components/stories/Chip.stories.cjs.js +1 -0
  149. package/dist/components/stories/Chip.stories.d.ts +10 -0
  150. package/dist/components/stories/Chip.stories.es.js +77 -0
  151. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  152. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  153. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  154. package/dist/components/stories/Dialog.stories.es.js +2 -2
  155. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  156. package/dist/components/stories/Divider.stories.es.js +5 -5
  157. package/dist/components/stories/FileList.stories.cjs.js +8 -1
  158. package/dist/components/stories/FileList.stories.es.js +144 -20
  159. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  160. package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
  161. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  162. package/dist/components/stories/Heading.stories.es.js +2 -2
  163. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  164. package/dist/components/stories/IconButton.stories.es.js +2 -2
  165. package/dist/components/stories/Link.stories.cjs.js +1 -1
  166. package/dist/components/stories/Link.stories.es.js +1 -1
  167. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  168. package/dist/components/stories/Menu.stories.es.js +16 -16
  169. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  170. package/dist/components/stories/Paper.stories.es.js +1 -1
  171. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  172. package/dist/components/stories/RadioGroup.stories.es.js +19 -115
  173. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
  174. package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
  175. package/dist/components/stories/ResourceCard.stories.es.js +141 -0
  176. package/dist/components/stories/Select.stories.cjs.js +1 -1
  177. package/dist/components/stories/Select.stories.es.js +3 -3
  178. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  179. package/dist/components/stories/TabList.stories.es.js +14 -14
  180. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  181. package/dist/components/stories/TextField.stories.es.js +3 -3
  182. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  183. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  184. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  185. package/dist/components/stories/Typography.stories.es.js +1 -1
  186. package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-CCejzj0C.js} +49 -48
  187. package/dist/createSvgIcon-Dn4BBPej.cjs +1 -0
  188. package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-DN9F43tq.js} +3 -3
  189. package/dist/dividerClasses-Zk1QmrZw.cjs +1 -0
  190. package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-CrAqn_fc.js} +1 -1
  191. package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +1 -0
  192. package/dist/extendSxProp-BB6jYY1x.cjs +1 -0
  193. package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-DFv-GFt5.js} +3 -3
  194. package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
  195. package/dist/hooks/lazySvgImport.d.ts +1 -1
  196. package/dist/identifier-5n4d7br9.cjs +75 -0
  197. package/dist/identifier-D58rA1gM.js +3267 -0
  198. package/dist/index-5BAFzrXD.cjs +1 -0
  199. package/dist/{index-CwvpOCso.js → index-BGS2uu2L.js} +29 -29
  200. package/dist/index-CFm-oAsb.cjs +1 -0
  201. package/dist/index-CJW5gB6d.cjs +5 -0
  202. package/dist/{index-BCnPLuqJ.js → index-ClXCinr6.js} +22 -22
  203. package/dist/index-DwHI-aa0.js +45 -0
  204. package/dist/index.cjs.js +1 -1
  205. package/dist/index.es.js +348 -294
  206. package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-C8EfvlY1.cjs} +1 -1
  207. package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-DyiN-Awd.js} +1 -1
  208. package/dist/{refType-DKYKROQk.js → refType-B86yTZra.js} +1 -1
  209. package/dist/refType-CjW6JOBA.cjs +1 -0
  210. package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-0QnU-fDT.js} +7 -7
  211. package/dist/resolveComponentProps-D0sgyopa.cjs +1 -0
  212. package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
  213. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  214. package/dist/useSlot-CZNcsPv1.js +48 -0
  215. package/dist/useSlot-CyXLaLc2.cjs +1 -0
  216. package/dist/useTheme-Bi8B4Op1.cjs +1 -0
  217. package/dist/useTheme-C_2IF7CS.cjs +1 -0
  218. package/dist/useTheme-Clhsq4HW.js +11 -0
  219. package/dist/{useTheme-_xyy-wul.js → useTheme-DxxkErdZ.js} +1 -1
  220. package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BGZrRNnL.js} +2 -2
  221. package/dist/useThemeProps-C6qniHmV.js +17 -0
  222. package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-CpNQz1Ap.cjs} +1 -1
  223. package/dist/useThemeProps-Dq3GRYN1.cjs +1 -0
  224. package/dist/utils-D4if93Yl.cjs +1 -0
  225. package/dist/{utils-C6c4fj7D.js → utils-SrEVp7Pm.js} +41 -41
  226. package/package.json +9 -9
  227. package/dist/Backdrop-CvufxHMY.cjs +0 -1
  228. package/dist/Box-mP2Th61z.cjs +0 -1
  229. package/dist/Button-BH9MUvmz.cjs +0 -1
  230. package/dist/Button-BnNYfQ3E.js +0 -484
  231. package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
  232. package/dist/Card-AJG0TUOx.js +0 -74
  233. package/dist/Card-NqCXQteq.cjs +0 -1
  234. package/dist/Checkbox-DYrDbdy1.cjs +0 -1
  235. package/dist/CircularProgress-BByrCLjv.cjs +0 -28
  236. package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
  237. package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
  238. package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
  239. package/dist/Delete-BkZN7Xu5.js +0 -8
  240. package/dist/Delete-D1EiKoL5.cjs +0 -1
  241. package/dist/Dialog-D_lS4J_M.js +0 -415
  242. package/dist/Dialog-yOrNcHbG.cjs +0 -1
  243. package/dist/DialogContent-Dj_OjLZ6.cjs +0 -1
  244. package/dist/DialogTitle-BboPDaoB.cjs +0 -1
  245. package/dist/Divider-CcrM3lNn.cjs +0 -1
  246. package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
  247. package/dist/FormControlLabel-BmrKQtQA.js +0 -262
  248. package/dist/FormGroup-CbczEc6e.js +0 -95
  249. package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
  250. package/dist/FormLabel-D1uvEhsH.cjs +0 -2
  251. package/dist/Grow-CUBJs6WD.cjs +0 -1
  252. package/dist/IconButton-CJfzspZK.cjs +0 -2
  253. package/dist/InputAdornment-Cq0WhPxF.cjs +0 -1
  254. package/dist/InputBase-s1fk8TB4.cjs +0 -3
  255. package/dist/Link-CWczkFp0.cjs +0 -1
  256. package/dist/Menu-Bsx8PA-q.cjs +0 -7
  257. package/dist/MenuItem-BZ_EVaBq.cjs +0 -1
  258. package/dist/Modal-DImrEpYJ.cjs +0 -2
  259. package/dist/Paper-Cr56xkCr.cjs +0 -2
  260. package/dist/Popper-YT5WAMV-.cjs +0 -4
  261. package/dist/Portal-DF0RKOcD.cjs +0 -1
  262. package/dist/Radio-CVAEGXKi.cjs +0 -1
  263. package/dist/Radio-DGhot3Cd.js +0 -313
  264. package/dist/Select-CwAWNiiv.cjs +0 -3
  265. package/dist/Stack-Yq6rb7iK.cjs +0 -1
  266. package/dist/SwitchBase-DjIY_KWB.cjs +0 -1
  267. package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
  268. package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
  269. package/dist/Tabs-KG4VWw-1.cjs +0 -4
  270. package/dist/TextField-BI9KVqjC.cjs +0 -1
  271. package/dist/Tooltip-DhDtvULK.cjs +0 -4
  272. package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
  273. package/dist/Typography-DfRMDngd.cjs +0 -1
  274. package/dist/capitalize-B3GG7Wn6.cjs +0 -1
  275. package/dist/capitalize-CkF8kU4n.js +0 -9
  276. package/dist/createSvgIcon--rEClVU7.cjs +0 -1
  277. package/dist/dividerClasses-CCAY3Pnr.cjs +0 -1
  278. package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +0 -1
  279. package/dist/extendSxProp-apyK-EBz.cjs +0 -1
  280. package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
  281. package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
  282. package/dist/index-Aa73Kpym.cjs +0 -1
  283. package/dist/index-ChM1Ett8.cjs +0 -5
  284. package/dist/index-Cw0GDedk.cjs +0 -17
  285. package/dist/index-DXD5J5Eu.js +0 -186
  286. package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
  287. package/dist/refType-CoaxQOPt.cjs +0 -1
  288. package/dist/useSlot-BTpHG6jf.js +0 -50
  289. package/dist/useSlot-CByalpSD.cjs +0 -1
  290. package/dist/useSlotProps-B31YQlzb.js +0 -45
  291. package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
  292. package/dist/useTheme-Cy5kyKJF.cjs +0 -1
  293. package/dist/useTheme-Dukx-__T.cjs +0 -1
  294. package/dist/useTheme-DyaNKf4e.js +0 -11
  295. package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
  296. package/dist/useThemeProps-CwEQ4bv2.js +0 -24
  297. package/dist/utils-vmyQ2IaS.cjs +0 -1
@@ -1,334 +1,10 @@
1
- import { jsxs as y, jsx as s } from "react/jsx-runtime";
2
- import { C as S } from "../../Checkbox-8Rhxpkjl.js";
3
- import { a as $ } from "../../Radio-DGhot3Cd.js";
4
- import * as C from "react";
5
- import { I as x, H as T, P as e, n as w, s as R, q as z, G as O } from "../../generateUtilityClasses-Bssl7BA_.js";
6
- import { c as j } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
7
- import { S as B } from "../../SwitchBase-Dlth5_F7.js";
8
- import { m as d } from "../../memoTheme-D7Fyh_3C.js";
9
- import { s as p, u as M, c as P } from "../../DefaultPropsProvider-CvJPQJmL.js";
10
- import { c as i } from "../../capitalize-CkF8kU4n.js";
11
- import { r as L } from "../../refType-DKYKROQk.js";
12
- import { F as N } from "../../FormControlLabel-BmrKQtQA.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: t,
19
- edge: r,
20
- size: l,
21
- color: u,
22
- checked: b,
23
- disabled: g
24
- } = o, h = {
25
- root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
26
- switchBase: ["switchBase", `color${i(u)}`, b && "checked", g && "disabled"],
27
- thumb: ["thumb"],
28
- track: ["track"],
29
- input: ["input"]
30
- }, f = P(h, I, t);
31
- return {
32
- ...t,
33
- // forward the disabled and checked classes to the SwitchBase
34
- ...f
35
- };
36
- }, F = p("span", {
37
- name: "MuiSwitch",
38
- slot: "Root",
39
- overridesResolver: (o, t) => {
40
- const {
41
- ownerState: r
42
- } = o;
43
- return [t.root, r.edge && t[`edge${i(r.edge)}`], t[`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, t) => {
99
- const {
100
- ownerState: r
101
- } = o;
102
- return [t.switchBase, {
103
- [`& .${a.input}`]: t.input
104
- }, r.color !== "default" && t[`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})` : w(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(([t]) => ({
145
- props: {
146
- color: t
147
- },
148
- style: {
149
- [`&.${a.checked}`]: {
150
- color: (o.vars || o).palette[t].main,
151
- "&:hover": {
152
- backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette[t].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[`${t}DisabledColor`] : `${o.palette.mode === "light" ? R(o.palette[t].main, 0.62) : z(o.palette[t].main, 0.55)}`
159
- }
160
- },
161
- [`&.${a.checked} + .${a.track}`]: {
162
- backgroundColor: (o.vars || o).palette[t].main
163
- }
164
- }
165
- }))]
166
- }))), U = p("span", {
167
- name: "MuiSwitch",
168
- slot: "Track",
169
- overridesResolver: (o, t) => t.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, t) => t.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
- }))), v = /* @__PURE__ */ C.forwardRef(function(t, r) {
195
- const l = M({
196
- props: t,
197
- name: "MuiSwitch"
198
- }), {
199
- className: u,
200
- color: b = "primary",
201
- edge: g = !1,
202
- size: h = "medium",
203
- sx: f,
204
- ...k
205
- } = l, n = {
206
- ...l,
207
- color: b,
208
- edge: g,
209
- size: h
210
- }, c = D(n), m = /* @__PURE__ */ s(E, {
211
- className: c.thumb,
212
- ownerState: n
213
- });
214
- return /* @__PURE__ */ y(F, {
215
- className: O(c.root, u),
216
- sx: f,
217
- ownerState: n,
218
- children: [/* @__PURE__ */ s(q, {
219
- type: "checkbox",
220
- icon: m,
221
- checkedIcon: m,
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" && (v.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: e.bool,
244
- /**
245
- * The icon to display when the component is checked.
246
- */
247
- checkedIcon: e.node,
248
- /**
249
- * Override or extend the styles applied to the component.
250
- */
251
- classes: e.object,
252
- /**
253
- * @ignore
254
- */
255
- className: e.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: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
263
- /**
264
- * The default checked state. Use when the component is not controlled.
265
- */
266
- defaultChecked: e.bool,
267
- /**
268
- * If `true`, the component is disabled.
269
- */
270
- disabled: e.bool,
271
- /**
272
- * If `true`, the ripple effect is disabled.
273
- * @default false
274
- */
275
- disableRipple: e.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: e.oneOf(["end", "start", !1]),
284
- /**
285
- * The icon to display when the component is unchecked.
286
- */
287
- icon: e.node,
288
- /**
289
- * The id of the `input` element.
290
- */
291
- id: e.string,
292
- /**
293
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
294
- */
295
- inputProps: e.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: e.func,
308
- /**
309
- * If `true`, the `input` element is required.
310
- * @default false
311
- */
312
- required: e.bool,
313
- /**
314
- * The size of the component.
315
- * `small` is equivalent to the dense switch styling.
316
- * @default 'medium'
317
- */
318
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
319
- /**
320
- * The system prop that allows defining system overrides as well as additional CSS styles.
321
- */
322
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.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: e.any
328
- });
329
- const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { F as l, R as t } from "../../Radio-BxMxeQa-.js";
3
+ import { C as r } from "../../Checkbox-BI77q7eR.js";
4
+ import { S as a } from "../../Switch-BOpqo-TS.js";
5
+ const n = (e) => /* @__PURE__ */ o(l, { ...e }), d = {
330
6
  title: "Components/FormControlLabel",
331
- component: A,
7
+ component: n,
332
8
  argTypes: {
333
9
  control: {
334
10
  control: "object"
@@ -350,9 +26,9 @@ const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
350
26
  control: "boolean"
351
27
  }
352
28
  }
353
- }, eo = {
29
+ }, m = {
354
30
  args: {
355
- control: /* @__PURE__ */ s(S, {}),
31
+ control: /* @__PURE__ */ o(r, {}),
356
32
  checked: void 0,
357
33
  disabled: void 0,
358
34
  disableTypography: void 0,
@@ -360,20 +36,20 @@ const A = (o) => /* @__PURE__ */ s(N, { ...o }), oo = {
360
36
  labelPlacement: "end",
361
37
  required: void 0
362
38
  }
363
- }, to = {
39
+ }, p = {
364
40
  args: {
365
- control: /* @__PURE__ */ s($, {}),
41
+ control: /* @__PURE__ */ o(t, {}),
366
42
  label: "Label"
367
43
  }
368
- }, ao = {
44
+ }, h = {
369
45
  args: {
370
- control: /* @__PURE__ */ s(v, {}),
46
+ control: /* @__PURE__ */ o(a, {}),
371
47
  label: "Label"
372
48
  }
373
49
  };
374
50
  export {
375
- eo as Checkbox,
376
- to as Radio,
377
- ao as Switch,
378
- oo as default
51
+ m as Checkbox,
52
+ p as Radio,
53
+ h as Switch,
54
+ d as default
379
55
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("../../createSvgIcon--rEClVU7.cjs"),o=require("../Heading/Heading.cjs.js"),n=require("../../generateUtilityClasses-B_H9HEmg.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
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-Dn4BBPej.cjs"),t=require("../Heading/Heading.cjs.js"),n=require("../../identifier-5n4d7br9.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-C8nGcfF4.js";
2
+ import { c as t } from "../../createSvgIcon-CCejzj0C.js";
3
3
  import n from "../Heading/Heading.es.js";
4
- import { r as c } from "../../generateUtilityClasses-Bssl7BA_.js";
4
+ import { r as c } from "../../identifier-D58rA1gM.js";
5
5
  const e = t(/* @__PURE__ */ o("path", {
6
6
  d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"
7
7
  }), "Mood"), i = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon--rEClVU7.cjs"),l=require("../../IconButton-CJfzspZK.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
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../createSvgIcon-Dn4BBPej.cjs"),l=require("../../IconButton-Edo5JMfQ.cjs"),t=o.createSvgIcon(e.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),n={title:"Components/IconButton",component:l.IconButton,argTypes:{color:{control:"select",options:["inherit","default","primary","secondary","error","info","success","warning"]},disabled:{control:"boolean"},disableFocusRipple:{control:"boolean"},disableRipple:{control:"boolean"},edge:{control:"radio",options:["end","start",!1]},size:{control:"radio",options:["small","medium","large"]}}},s={args:{children:e.jsx(t,{}),color:"default",disabled:!1,disableFocusRipple:!1,disableRipple:!1,edge:!1,size:"medium"}};exports.Default=s;exports.default=n;
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { c as e } from "../../createSvgIcon-C8nGcfF4.js";
3
- import { I as l } from "../../IconButton-CekuyD4r.js";
2
+ import { c as e } from "../../createSvgIcon-CCejzj0C.js";
3
+ import { I as l } from "../../IconButton-B4bt0Hp2.js";
4
4
  const s = e(/* @__PURE__ */ o("path", {
5
5
  d: "M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"
6
6
  }), "School"), r = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../Link-CWczkFp0.cjs"),n=e=>t.jsx(r.Link,{...e}),o={title:"Components/Link",component:n,argTypes:{children:{control:"text"},color:{control:"select",options:["primary","secondary","error","info","success","warning","textPrimary","textSecondary","textDisabled"]},href:{control:"text"},underline:{control:"select",options:["always","hover","none"]}}},i={args:{children:"Link",color:"primary",href:"https://www.cgi.com/france/fr-fr/solution/cgi-learning-hub",underline:"always"}};exports.Default=i;exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../Link-CAbb9OCV.cjs"),n=e=>t.jsx(r.Link,{...e}),o={title:"Components/Link",component:n,argTypes:{children:{control:"text"},color:{control:"select",options:["primary","secondary","error","info","success","warning","textPrimary","textSecondary","textDisabled"]},href:{control:"text"},underline:{control:"select",options:["always","hover","none"]}}},i={args:{children:"Link",color:"primary",href:"https://www.cgi.com/france/fr-fr/solution/cgi-learning-hub",underline:"always"}};exports.Default=i;exports.default=o;
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { L as e } from "../../Link-CoQuUM0t.js";
2
+ import { L as e } from "../../Link-CnahHTmK.js";
3
3
  const n = (r) => /* @__PURE__ */ o(e, { ...r }), c = {
4
4
  title: "Components/Link",
5
5
  component: n,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),a=require("../Button/Button.cjs.js"),d=require("../../Menu-Bsx8PA-q.cjs"),o=require("../../MenuItem-BZ_EVaBq.cjs"),m=r=>{const[u,s]=l.useState(null),t=!!u,c=i=>{s(i.currentTarget)},n=()=>s(null);return e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"text",id:"basic-button","aria-controls":t?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:c,children:"Open menu"}),e.jsxs(d.Menu,{...r,id:"basic-menu",anchorEl:u,open:t,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},children:[e.jsx(o.MenuItem,{onClick:n,children:"Profile"}),e.jsx(o.MenuItem,{onClick:n,children:"My account"}),e.jsx(o.MenuItem,{onClick:n,children:"Logout"})]})]})},M={title:"Components/Menu",component:m},p={args:{}};exports.Default=p;exports.default=M;
1
+ "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-C-R0FVOB.cjs"),o=require("../../MenuItem-Cp1_Q0FD.cjs"),m=r=>{const[u,s]=l.useState(null),t=!!u,c=i=>{s(i.currentTarget)},n=()=>s(null);return e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"text",id:"basic-button","aria-controls":t?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:c,children:"Open menu"}),e.jsxs(d.Menu,{...r,id:"basic-menu",anchorEl:u,open:t,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},children:[e.jsx(o.MenuItem,{onClick:n,children:"Profile"}),e.jsx(o.MenuItem,{onClick:n,children:"My account"}),e.jsx(o.MenuItem,{onClick:n,children:"Logout"})]})]})},M={title:"Components/Menu",component:m},p={args:{}};exports.Default=p;exports.default=M;
@@ -1,47 +1,47 @@
1
- import { jsxs as a, Fragment as u, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as a, Fragment as u, jsx as o } from "react/jsx-runtime";
2
2
  import { useState as m } from "react";
3
- import d from "../Button/Button.es.js";
4
- import { M as p } from "../../Menu-C7tKmcAh.js";
5
- import { M as t } from "../../MenuItem-j8luVUcX.js";
6
- const f = (c) => {
7
- const [r, i] = m(null), o = !!r, l = (s) => {
3
+ import p from "../Button/Button.es.js";
4
+ import { M as d } from "../../Menu-DzBX10ev.js";
5
+ import { M as t } from "../../MenuItem-DQQ-p2ie.js";
6
+ const h = (c) => {
7
+ const [r, i] = m(null), e = !!r, l = (s) => {
8
8
  i(s.currentTarget);
9
9
  }, n = () => i(null);
10
10
  return /* @__PURE__ */ a(u, { children: [
11
- /* @__PURE__ */ e(
12
- d,
11
+ /* @__PURE__ */ o(
12
+ p,
13
13
  {
14
14
  variant: "text",
15
15
  id: "basic-button",
16
- "aria-controls": o ? "basic-menu" : void 0,
16
+ "aria-controls": e ? "basic-menu" : void 0,
17
17
  "aria-haspopup": "true",
18
- "aria-expanded": o ? "true" : void 0,
18
+ "aria-expanded": e ? "true" : void 0,
19
19
  onClick: l,
20
20
  children: "Open menu"
21
21
  }
22
22
  ),
23
23
  /* @__PURE__ */ a(
24
- p,
24
+ d,
25
25
  {
26
26
  ...c,
27
27
  id: "basic-menu",
28
28
  anchorEl: r,
29
- open: o,
29
+ open: e,
30
30
  onClose: n,
31
31
  MenuListProps: {
32
32
  "aria-labelledby": "basic-button"
33
33
  },
34
34
  children: [
35
- /* @__PURE__ */ e(t, { onClick: n, children: "Profile" }),
36
- /* @__PURE__ */ e(t, { onClick: n, children: "My account" }),
37
- /* @__PURE__ */ e(t, { onClick: n, children: "Logout" })
35
+ /* @__PURE__ */ o(t, { onClick: n, children: "Profile" }),
36
+ /* @__PURE__ */ o(t, { onClick: n, children: "My account" }),
37
+ /* @__PURE__ */ o(t, { onClick: n, children: "Logout" })
38
38
  ]
39
39
  }
40
40
  )
41
41
  ] });
42
42
  }, x = {
43
43
  title: "Components/Menu",
44
- component: f
44
+ component: h
45
45
  }, g = {
46
46
  args: {}
47
47
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("../../Paper-Cr56xkCr.cjs"),r=e=>t.jsx(o.Paper,{sx:{width:"10rem",height:"10rem",p:1},...e,children:"children"}),n={title:"Components/Paper",component:r,argTypes:{elevation:{control:"number"},square:{control:"boolean"},variant:{control:"select",options:["elevation","outlined"]}}},a={args:{elevation:1,square:!1,variant:"elevation"}};exports.Default=a;exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),o=require("../../Paper-C-oPGpbI.cjs"),r=e=>t.jsx(o.Paper,{sx:{width:"10rem",height:"10rem",p:1},...e,children:"children"}),n={title:"Components/Paper",component:r,argTypes:{elevation:{control:"number"},square:{control:"boolean"},variant:{control:"select",options:["elevation","outlined"]}}},a={args:{elevation:1,square:!1,variant:"elevation"}};exports.Default=a;exports.default=n;
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { P as o } from "../../Paper-BG4Vk_Um.js";
2
+ import { P as o } from "../../Paper-CbgkVQVx.js";
3
3
  const r = (e) => /* @__PURE__ */ t(o, { sx: { width: "10rem", height: "10rem", p: 1 }, ...e, children: "children" }), l = {
4
4
  title: "Components/Paper",
5
5
  component: r,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),g=require("../../FormLabel-D1uvEhsH.cjs"),F=require("react"),r=require("../../generateUtilityClasses-B_H9HEmg.cjs"),u=require("../../Radio-CVAEGXKi.cjs"),G=require("../../useControlled-Ysk4KqoX.cjs"),T=require("../../useForkRef-CTI33h-3.cjs"),w=require("../../useId-DNXtOFeX.cjs"),S=require("../../FormGroup-Y3P2AG0i.cjs"),L=require("../../DefaultPropsProvider-3KMGupjb.cjs"),p=require("../../FormControlLabel-Bb6Ul-qQ.cjs");function O(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const l=O(F);function D(e){return r.generateUtilityClass("MuiRadioGroup",e)}r.generateUtilityClasses("MuiRadioGroup",["root","row","error"]);const M=e=>{const{classes:t,row:s,error:a}=e,i={root:["root",s&&"row",a&&"error"]};return L.composeClasses(i,D,t)},R=l.forwardRef(function(t,s){const{actions:a,children:i,className:y,defaultValue:C,name:j,onChange:c,value:h,...v}=t,d=l.useRef(null),x=M(t),[f,m]=G.useControlled({controlled:h,default:C,name:"RadioGroup"});l.useImperativeHandle(a,()=>({focus:()=>{let n=d.current.querySelector("input:not(:disabled):checked");n||(n=d.current.querySelector("input:not(:disabled)")),n&&n.focus()}}),[]);const P=T.useForkRef(s,d),b=w.useId(j),q=l.useMemo(()=>({name:b,onChange(n){m(n.target.value),c&&c(n,n.target.value)},value:f}),[b,c,m,f]);return o.jsx(u.RadioGroupContext.Provider,{value:q,children:o.jsx(S.FormGroup,{role:"radiogroup",ref:P,className:r.clsx(x.root,y),...v,children:i})})});process.env.NODE_ENV!=="production"&&(R.propTypes={children:r.PropTypes.node,className:r.PropTypes.string,defaultValue:r.PropTypes.any,name:r.PropTypes.string,onChange:r.PropTypes.func,value:r.PropTypes.any});const N=e=>o.jsxs(g.FormControl,{children:[o.jsx(g.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(R,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...e,children:[o.jsx(p.FormControlLabel,{value:"first",control:o.jsx(u.Radio,{}),label:"First"}),o.jsx(p.FormControlLabel,{value:"second",control:o.jsx(u.Radio,{}),label:"Second"}),o.jsx(p.FormControlLabel,{value:"third",control:o.jsx(u.Radio,{}),label:"Third"})]})]}),V={title:"Components/RadioGroup",component:N},_={args:{row:!1}},U={args:{row:!0}};exports.Default=_;exports.Row=U;exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),r=require("../../FormLabel-D0gSgwnj.cjs"),t=require("../../RadioGroup-Ya-I8Lz1.cjs"),e=require("../../Radio-CvCkmq8g.cjs"),a=l=>o.jsxs(r.FormControl,{children:[o.jsx(r.FormLabel,{id:"radio-buttons-group-label",children:"Label"}),o.jsxs(t.RadioGroup,{"aria-labelledby":"radio-buttons-group-label",defaultValue:"first",name:"radio-buttons-group",...l,children:[o.jsx(e.FormControlLabel,{value:"first",control:o.jsx(e.Radio,{}),label:"First"}),o.jsx(e.FormControlLabel,{value:"second",control:o.jsx(e.Radio,{}),label:"Second"}),o.jsx(e.FormControlLabel,{value:"third",control:o.jsx(e.Radio,{}),label:"Third"})]})]}),s={title:"Components/RadioGroup",component:a},n={args:{row:!1}},i={args:{row:!0}};exports.Default=n;exports.Row=i;exports.default=s;