@cgi-learning-hub/ui 1.3.5 → 1.4.0

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
@@ -0,0 +1,662 @@
1
+ import * as b from "react";
2
+ import { H as A, I as q, G as N, L as r, n as y, P as t } from "./identifier-D58rA1gM.js";
3
+ import { a as J, u as K, s as f, c as Q, r as X } from "./DefaultPropsProvider-BcmyIf2H.js";
4
+ import { m as Y } from "./memoTheme-DyiN-Awd.js";
5
+ import { c as Z } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
6
+ import { jsxs as oo, jsx as d } from "react/jsx-runtime";
7
+ import { u as to } from "./useId-CK6Kn3Tn.js";
8
+ import { B as ao } from "./ButtonBase-DzpmdR6N.js";
9
+ import { C as no } from "./CircularProgress-CDa_qU1a.js";
10
+ function io(o) {
11
+ return q("MuiButton", o);
12
+ }
13
+ const p = A("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), W = /* @__PURE__ */ b.createContext({});
14
+ process.env.NODE_ENV !== "production" && (W.displayName = "ButtonGroupContext");
15
+ const T = /* @__PURE__ */ b.createContext(void 0);
16
+ process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupButtonContext");
17
+ const ro = (o) => {
18
+ const {
19
+ color: a,
20
+ disableElevation: n,
21
+ fullWidth: i,
22
+ size: c,
23
+ variant: u,
24
+ loading: g,
25
+ loadingPosition: z,
26
+ classes: x
27
+ } = o, S = {
28
+ root: ["root", g && "loading", u, `${u}${r(a)}`, `size${r(c)}`, `${u}Size${r(c)}`, `color${r(a)}`, n && "disableElevation", i && "fullWidth", g && `loadingPosition${r(z)}`],
29
+ startIcon: ["icon", "startIcon", `iconSize${r(c)}`],
30
+ endIcon: ["icon", "endIcon", `iconSize${r(c)}`],
31
+ loadingIndicator: ["loadingIndicator"],
32
+ loadingWrapper: ["loadingWrapper"]
33
+ }, I = Q(S, io, x);
34
+ return {
35
+ ...x,
36
+ // forward the focused, disabled, etc. classes to the ButtonBase
37
+ ...I
38
+ };
39
+ }, L = [{
40
+ props: {
41
+ size: "small"
42
+ },
43
+ style: {
44
+ "& > *:nth-of-type(1)": {
45
+ fontSize: 18
46
+ }
47
+ }
48
+ }, {
49
+ props: {
50
+ size: "medium"
51
+ },
52
+ style: {
53
+ "& > *:nth-of-type(1)": {
54
+ fontSize: 20
55
+ }
56
+ }
57
+ }, {
58
+ props: {
59
+ size: "large"
60
+ },
61
+ style: {
62
+ "& > *:nth-of-type(1)": {
63
+ fontSize: 22
64
+ }
65
+ }
66
+ }], eo = f(ao, {
67
+ shouldForwardProp: (o) => X(o) || o === "classes",
68
+ name: "MuiButton",
69
+ slot: "Root",
70
+ overridesResolver: (o, a) => {
71
+ const {
72
+ ownerState: n
73
+ } = o;
74
+ return [a.root, a[n.variant], a[`${n.variant}${r(n.color)}`], a[`size${r(n.size)}`], a[`${n.variant}Size${r(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth, n.loading && a.loading];
75
+ }
76
+ })(Y(({
77
+ theme: o
78
+ }) => {
79
+ const a = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], n = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
80
+ return {
81
+ ...o.typography.button,
82
+ minWidth: 64,
83
+ padding: "6px 16px",
84
+ border: 0,
85
+ borderRadius: (o.vars || o).shape.borderRadius,
86
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
87
+ duration: o.transitions.duration.short
88
+ }),
89
+ "&:hover": {
90
+ textDecoration: "none"
91
+ },
92
+ [`&.${p.disabled}`]: {
93
+ color: (o.vars || o).palette.action.disabled
94
+ },
95
+ variants: [{
96
+ props: {
97
+ variant: "contained"
98
+ },
99
+ style: {
100
+ color: "var(--variant-containedColor)",
101
+ backgroundColor: "var(--variant-containedBg)",
102
+ boxShadow: (o.vars || o).shadows[2],
103
+ "&:hover": {
104
+ boxShadow: (o.vars || o).shadows[4],
105
+ // Reset on touch devices, it doesn't add specificity
106
+ "@media (hover: none)": {
107
+ boxShadow: (o.vars || o).shadows[2]
108
+ }
109
+ },
110
+ "&:active": {
111
+ boxShadow: (o.vars || o).shadows[8]
112
+ },
113
+ [`&.${p.focusVisible}`]: {
114
+ boxShadow: (o.vars || o).shadows[6]
115
+ },
116
+ [`&.${p.disabled}`]: {
117
+ color: (o.vars || o).palette.action.disabled,
118
+ boxShadow: (o.vars || o).shadows[0],
119
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
120
+ }
121
+ }
122
+ }, {
123
+ props: {
124
+ variant: "outlined"
125
+ },
126
+ style: {
127
+ padding: "5px 15px",
128
+ border: "1px solid currentColor",
129
+ borderColor: "var(--variant-outlinedBorder, currentColor)",
130
+ backgroundColor: "var(--variant-outlinedBg)",
131
+ color: "var(--variant-outlinedColor)",
132
+ [`&.${p.disabled}`]: {
133
+ border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
134
+ }
135
+ }
136
+ }, {
137
+ props: {
138
+ variant: "text"
139
+ },
140
+ style: {
141
+ padding: "6px 8px",
142
+ color: "var(--variant-textColor)",
143
+ backgroundColor: "var(--variant-textBg)"
144
+ }
145
+ }, ...Object.entries(o.palette).filter(Z()).map(([i]) => ({
146
+ props: {
147
+ color: i
148
+ },
149
+ style: {
150
+ "--variant-textColor": (o.vars || o).palette[i].main,
151
+ "--variant-outlinedColor": (o.vars || o).palette[i].main,
152
+ "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / 0.5)` : y(o.palette[i].main, 0.5),
153
+ "--variant-containedColor": (o.vars || o).palette[i].contrastText,
154
+ "--variant-containedBg": (o.vars || o).palette[i].main,
155
+ "@media (hover: hover)": {
156
+ "&:hover": {
157
+ "--variant-containedBg": (o.vars || o).palette[i].dark,
158
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette[i].main, o.palette.action.hoverOpacity),
159
+ "--variant-outlinedBorder": (o.vars || o).palette[i].main,
160
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette[i].main, o.palette.action.hoverOpacity)
161
+ }
162
+ }
163
+ }
164
+ })), {
165
+ props: {
166
+ color: "inherit"
167
+ },
168
+ style: {
169
+ color: "inherit",
170
+ borderColor: "currentColor",
171
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
172
+ "@media (hover: hover)": {
173
+ "&:hover": {
174
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
175
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette.text.primary, o.palette.action.hoverOpacity),
176
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette.text.primary, o.palette.action.hoverOpacity)
177
+ }
178
+ }
179
+ }
180
+ }, {
181
+ props: {
182
+ size: "small",
183
+ variant: "text"
184
+ },
185
+ style: {
186
+ padding: "4px 5px",
187
+ fontSize: o.typography.pxToRem(13)
188
+ }
189
+ }, {
190
+ props: {
191
+ size: "large",
192
+ variant: "text"
193
+ },
194
+ style: {
195
+ padding: "8px 11px",
196
+ fontSize: o.typography.pxToRem(15)
197
+ }
198
+ }, {
199
+ props: {
200
+ size: "small",
201
+ variant: "outlined"
202
+ },
203
+ style: {
204
+ padding: "3px 9px",
205
+ fontSize: o.typography.pxToRem(13)
206
+ }
207
+ }, {
208
+ props: {
209
+ size: "large",
210
+ variant: "outlined"
211
+ },
212
+ style: {
213
+ padding: "7px 21px",
214
+ fontSize: o.typography.pxToRem(15)
215
+ }
216
+ }, {
217
+ props: {
218
+ size: "small",
219
+ variant: "contained"
220
+ },
221
+ style: {
222
+ padding: "4px 10px",
223
+ fontSize: o.typography.pxToRem(13)
224
+ }
225
+ }, {
226
+ props: {
227
+ size: "large",
228
+ variant: "contained"
229
+ },
230
+ style: {
231
+ padding: "8px 22px",
232
+ fontSize: o.typography.pxToRem(15)
233
+ }
234
+ }, {
235
+ props: {
236
+ disableElevation: !0
237
+ },
238
+ style: {
239
+ boxShadow: "none",
240
+ "&:hover": {
241
+ boxShadow: "none"
242
+ },
243
+ [`&.${p.focusVisible}`]: {
244
+ boxShadow: "none"
245
+ },
246
+ "&:active": {
247
+ boxShadow: "none"
248
+ },
249
+ [`&.${p.disabled}`]: {
250
+ boxShadow: "none"
251
+ }
252
+ }
253
+ }, {
254
+ props: {
255
+ fullWidth: !0
256
+ },
257
+ style: {
258
+ width: "100%"
259
+ }
260
+ }, {
261
+ props: {
262
+ loadingPosition: "center"
263
+ },
264
+ style: {
265
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
266
+ duration: o.transitions.duration.short
267
+ }),
268
+ [`&.${p.loading}`]: {
269
+ color: "transparent"
270
+ }
271
+ }
272
+ }]
273
+ };
274
+ })), so = f("span", {
275
+ name: "MuiButton",
276
+ slot: "StartIcon",
277
+ overridesResolver: (o, a) => {
278
+ const {
279
+ ownerState: n
280
+ } = o;
281
+ return [a.startIcon, n.loading && a.startIconLoadingStart, a[`iconSize${r(n.size)}`]];
282
+ }
283
+ })(({
284
+ theme: o
285
+ }) => ({
286
+ display: "inherit",
287
+ marginRight: 8,
288
+ marginLeft: -4,
289
+ variants: [{
290
+ props: {
291
+ size: "small"
292
+ },
293
+ style: {
294
+ marginLeft: -2
295
+ }
296
+ }, {
297
+ props: {
298
+ loadingPosition: "start",
299
+ loading: !0
300
+ },
301
+ style: {
302
+ transition: o.transitions.create(["opacity"], {
303
+ duration: o.transitions.duration.short
304
+ }),
305
+ opacity: 0
306
+ }
307
+ }, {
308
+ props: {
309
+ loadingPosition: "start",
310
+ loading: !0,
311
+ fullWidth: !0
312
+ },
313
+ style: {
314
+ marginRight: -8
315
+ }
316
+ }, ...L]
317
+ })), lo = f("span", {
318
+ name: "MuiButton",
319
+ slot: "EndIcon",
320
+ overridesResolver: (o, a) => {
321
+ const {
322
+ ownerState: n
323
+ } = o;
324
+ return [a.endIcon, n.loading && a.endIconLoadingEnd, a[`iconSize${r(n.size)}`]];
325
+ }
326
+ })(({
327
+ theme: o
328
+ }) => ({
329
+ display: "inherit",
330
+ marginRight: -4,
331
+ marginLeft: 8,
332
+ variants: [{
333
+ props: {
334
+ size: "small"
335
+ },
336
+ style: {
337
+ marginRight: -2
338
+ }
339
+ }, {
340
+ props: {
341
+ loadingPosition: "end",
342
+ loading: !0
343
+ },
344
+ style: {
345
+ transition: o.transitions.create(["opacity"], {
346
+ duration: o.transitions.duration.short
347
+ }),
348
+ opacity: 0
349
+ }
350
+ }, {
351
+ props: {
352
+ loadingPosition: "end",
353
+ loading: !0,
354
+ fullWidth: !0
355
+ },
356
+ style: {
357
+ marginLeft: -8
358
+ }
359
+ }, ...L]
360
+ })), po = f("span", {
361
+ name: "MuiButton",
362
+ slot: "LoadingIndicator",
363
+ overridesResolver: (o, a) => a.loadingIndicator
364
+ })(({
365
+ theme: o
366
+ }) => ({
367
+ display: "none",
368
+ position: "absolute",
369
+ visibility: "visible",
370
+ variants: [{
371
+ props: {
372
+ loading: !0
373
+ },
374
+ style: {
375
+ display: "flex"
376
+ }
377
+ }, {
378
+ props: {
379
+ loadingPosition: "start"
380
+ },
381
+ style: {
382
+ left: 14
383
+ }
384
+ }, {
385
+ props: {
386
+ loadingPosition: "start",
387
+ size: "small"
388
+ },
389
+ style: {
390
+ left: 10
391
+ }
392
+ }, {
393
+ props: {
394
+ variant: "text",
395
+ loadingPosition: "start"
396
+ },
397
+ style: {
398
+ left: 6
399
+ }
400
+ }, {
401
+ props: {
402
+ loadingPosition: "center"
403
+ },
404
+ style: {
405
+ left: "50%",
406
+ transform: "translate(-50%)",
407
+ color: (o.vars || o).palette.action.disabled
408
+ }
409
+ }, {
410
+ props: {
411
+ loadingPosition: "end"
412
+ },
413
+ style: {
414
+ right: 14
415
+ }
416
+ }, {
417
+ props: {
418
+ loadingPosition: "end",
419
+ size: "small"
420
+ },
421
+ style: {
422
+ right: 10
423
+ }
424
+ }, {
425
+ props: {
426
+ variant: "text",
427
+ loadingPosition: "end"
428
+ },
429
+ style: {
430
+ right: 6
431
+ }
432
+ }, {
433
+ props: {
434
+ loadingPosition: "start",
435
+ fullWidth: !0
436
+ },
437
+ style: {
438
+ position: "relative",
439
+ left: -10
440
+ }
441
+ }, {
442
+ props: {
443
+ loadingPosition: "end",
444
+ fullWidth: !0
445
+ },
446
+ style: {
447
+ position: "relative",
448
+ right: -10
449
+ }
450
+ }]
451
+ })), E = f("span", {
452
+ name: "MuiButton",
453
+ slot: "LoadingIconPlaceholder",
454
+ overridesResolver: (o, a) => a.loadingIconPlaceholder
455
+ })({
456
+ display: "inline-block",
457
+ width: "1em",
458
+ height: "1em"
459
+ }), co = /* @__PURE__ */ b.forwardRef(function(a, n) {
460
+ const i = b.useContext(W), c = b.useContext(T), u = J(i, a), g = K({
461
+ props: u,
462
+ name: "MuiButton"
463
+ }), {
464
+ children: z,
465
+ color: x = "primary",
466
+ component: S = "button",
467
+ className: I,
468
+ disabled: C = !1,
469
+ disableElevation: M = !1,
470
+ disableFocusRipple: B = !1,
471
+ endIcon: P,
472
+ focusVisibleClassName: k,
473
+ fullWidth: V = !1,
474
+ id: m,
475
+ loading: s = null,
476
+ loadingIndicator: j,
477
+ loadingPosition: v = "center",
478
+ size: G = "medium",
479
+ startIcon: h,
480
+ type: w,
481
+ variant: D = "text",
482
+ ...F
483
+ } = g, $ = to(m), R = j ?? /* @__PURE__ */ d(no, {
484
+ "aria-labelledby": $,
485
+ color: "inherit",
486
+ size: 16
487
+ }), l = {
488
+ ...g,
489
+ color: x,
490
+ component: S,
491
+ disabled: C,
492
+ disableElevation: M,
493
+ disableFocusRipple: B,
494
+ fullWidth: V,
495
+ loading: s,
496
+ loadingIndicator: R,
497
+ loadingPosition: v,
498
+ size: G,
499
+ type: w,
500
+ variant: D
501
+ }, e = ro(l), U = (h || s && v === "start") && /* @__PURE__ */ d(so, {
502
+ className: e.startIcon,
503
+ ownerState: l,
504
+ children: h || /* @__PURE__ */ d(E, {
505
+ className: e.loadingIconPlaceholder,
506
+ ownerState: l
507
+ })
508
+ }), H = (P || s && v === "end") && /* @__PURE__ */ d(lo, {
509
+ className: e.endIcon,
510
+ ownerState: l,
511
+ children: P || /* @__PURE__ */ d(E, {
512
+ className: e.loadingIconPlaceholder,
513
+ ownerState: l
514
+ })
515
+ }), _ = c || "", O = typeof s == "boolean" ? (
516
+ // use plain HTML span to minimize the runtime overhead
517
+ /* @__PURE__ */ d("span", {
518
+ className: e.loadingWrapper,
519
+ style: {
520
+ display: "contents"
521
+ },
522
+ children: s && /* @__PURE__ */ d(po, {
523
+ className: e.loadingIndicator,
524
+ ownerState: l,
525
+ children: R
526
+ })
527
+ })
528
+ ) : null;
529
+ return /* @__PURE__ */ oo(eo, {
530
+ ownerState: l,
531
+ className: N(i.className, e.root, I, _),
532
+ component: S,
533
+ disabled: C || s,
534
+ focusRipple: !B,
535
+ focusVisibleClassName: N(e.focusVisible, k),
536
+ ref: n,
537
+ type: w,
538
+ id: s ? $ : m,
539
+ ...F,
540
+ classes: e,
541
+ children: [U, v !== "end" && O, z, v === "end" && O, H]
542
+ });
543
+ });
544
+ process.env.NODE_ENV !== "production" && (co.propTypes = {
545
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
546
+ // │ These PropTypes are generated from the TypeScript type definitions. │
547
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
548
+ // └─────────────────────────────────────────────────────────────────────┘
549
+ /**
550
+ * The content of the component.
551
+ */
552
+ children: t.node,
553
+ /**
554
+ * Override or extend the styles applied to the component.
555
+ */
556
+ classes: t.object,
557
+ /**
558
+ * @ignore
559
+ */
560
+ className: t.string,
561
+ /**
562
+ * The color of the component.
563
+ * It supports both default and custom theme colors, which can be added as shown in the
564
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
565
+ * @default 'primary'
566
+ */
567
+ color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
568
+ /**
569
+ * The component used for the root node.
570
+ * Either a string to use a HTML element or a component.
571
+ */
572
+ component: t.elementType,
573
+ /**
574
+ * If `true`, the component is disabled.
575
+ * @default false
576
+ */
577
+ disabled: t.bool,
578
+ /**
579
+ * If `true`, no elevation is used.
580
+ * @default false
581
+ */
582
+ disableElevation: t.bool,
583
+ /**
584
+ * If `true`, the keyboard focus ripple is disabled.
585
+ * @default false
586
+ */
587
+ disableFocusRipple: t.bool,
588
+ /**
589
+ * If `true`, the ripple effect is disabled.
590
+ *
591
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
592
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
593
+ * @default false
594
+ */
595
+ disableRipple: t.bool,
596
+ /**
597
+ * Element placed after the children.
598
+ */
599
+ endIcon: t.node,
600
+ /**
601
+ * @ignore
602
+ */
603
+ focusVisibleClassName: t.string,
604
+ /**
605
+ * If `true`, the button will take up the full width of its container.
606
+ * @default false
607
+ */
608
+ fullWidth: t.bool,
609
+ /**
610
+ * The URL to link to when the button is clicked.
611
+ * If defined, an `a` element will be used as the root node.
612
+ */
613
+ href: t.string,
614
+ /**
615
+ * @ignore
616
+ */
617
+ id: t.string,
618
+ /**
619
+ * If `true`, the loading indicator is visible and the button is disabled.
620
+ * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
621
+ * @default null
622
+ */
623
+ loading: t.bool,
624
+ /**
625
+ * Element placed before the children if the button is in loading state.
626
+ * The node should contain an element with `role="progressbar"` with an accessible name.
627
+ * By default, it renders a `CircularProgress` that is labeled by the button itself.
628
+ * @default <CircularProgress color="inherit" size={16} />
629
+ */
630
+ loadingIndicator: t.node,
631
+ /**
632
+ * The loading indicator can be positioned on the start, end, or the center of the button.
633
+ * @default 'center'
634
+ */
635
+ loadingPosition: t.oneOf(["center", "end", "start"]),
636
+ /**
637
+ * The size of the component.
638
+ * `small` is equivalent to the dense button styling.
639
+ * @default 'medium'
640
+ */
641
+ size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
642
+ /**
643
+ * Element placed before the children.
644
+ */
645
+ startIcon: t.node,
646
+ /**
647
+ * The system prop that allows defining system overrides as well as additional CSS styles.
648
+ */
649
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
650
+ /**
651
+ * @ignore
652
+ */
653
+ type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
654
+ /**
655
+ * The variant to use.
656
+ * @default 'text'
657
+ */
658
+ variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
659
+ });
660
+ export {
661
+ co as B
662
+ };