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

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 (276) hide show
  1. package/dist/{Backdrop-DcDd6WZF.js → Backdrop-BctCVgLy.js} +79 -82
  2. package/dist/Backdrop-DWp3AktL.cjs +1 -0
  3. package/dist/{Box-mP2Th61z.cjs → Box-DYA49L7w.cjs} +1 -1
  4. package/dist/{Box-Byz2BwGf.js → Box-DgqaLb7j.js} +8 -8
  5. package/dist/Button-B7kOjNW1.js +696 -0
  6. package/dist/Button-UmeKHfcL.cjs +1 -0
  7. package/dist/ButtonBase-D6tfI-8D.cjs +74 -0
  8. package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-IZ_QjbpE.js} +334 -334
  9. package/dist/CardContent-5bW4A4d2.cjs +1 -0
  10. package/dist/CardContent-F4-KcZH8.js +226 -0
  11. package/dist/{Checkbox-DYrDbdy1.cjs → Checkbox-DQgPXaym.cjs} +1 -1
  12. package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-qUSjau0g.js} +26 -26
  13. package/dist/Chip-BTnuWGEU.cjs +1 -0
  14. package/dist/Chip-OpRIs-sL.js +522 -0
  15. package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CQxzJquv.js} +11 -11
  16. package/dist/{CircularProgress-BByrCLjv.cjs → CircularProgress-cPXhiRlM.cjs} +4 -4
  17. package/dist/CloseRounded-BMEGLs8y.js +8 -0
  18. package/dist/CloseRounded-BRXBizmR.cjs +1 -0
  19. package/dist/{DatePicker-BS1OatwQ.js → DatePicker-C6MCYjpp.js} +3113 -3600
  20. package/dist/DatePicker-CTIqTlNQ.cjs +14 -0
  21. package/dist/DefaultPropsProvider-Cqcb4sws.js +303 -0
  22. package/dist/DefaultPropsProvider-wpBXjN8r.cjs +1 -0
  23. package/dist/Dialog-B1wnk5BT.cjs +1 -0
  24. package/dist/Dialog-CKS7yjT5.js +478 -0
  25. package/dist/{DialogContent-uc65XOEU.js → DialogContent-BzPaz5G8.js} +13 -13
  26. package/dist/{DialogContent-Dj_OjLZ6.cjs → DialogContent-DcZz4rBc.cjs} +1 -1
  27. package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-D3E_lDHD.js} +30 -30
  28. package/dist/{DialogTitle-BboPDaoB.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
  29. package/dist/{Divider-KO-E6nU8.js → Divider-D-pZeQTm.js} +8 -8
  30. package/dist/{Divider-CcrM3lNn.cjs → Divider-D3hPb7s4.cjs} +1 -1
  31. package/dist/{FormLabel-CfR4bb21.js → FormLabel-3-CC-ZGw.js} +131 -133
  32. package/dist/FormLabel-BV7-a0i5.cjs +2 -0
  33. package/dist/{Grow-CQVPAYvp.js → Grow-DKgYCxiY.js} +46 -43
  34. package/dist/Grow-Z3KzFaK5.cjs +1 -0
  35. package/dist/{IconButton-CekuyD4r.js → IconButton-CCNUMz2l.js} +132 -64
  36. package/dist/IconButton-CVOPR4EM.cjs +2 -0
  37. package/dist/{InputAdornment-Cq0WhPxF.cjs → InputAdornment-CwFEJSXv.cjs} +1 -1
  38. package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DL8XIM8r.js} +15 -14
  39. package/dist/{InputBase-BJy3wwFB.js → InputBase-By7jMrFP.js} +221 -215
  40. package/dist/InputBase-Cejvjv1E.cjs +3 -0
  41. package/dist/Link-2ncpUcIp.cjs +1 -0
  42. package/dist/{Link-CoQuUM0t.js → Link-C_GPIs0q.js} +46 -46
  43. package/dist/{Menu-C7tKmcAh.js → Menu-BunOW0ot.js} +72 -73
  44. package/dist/Menu-Cngt8Va9.cjs +7 -0
  45. package/dist/{MenuItem-BZ_EVaBq.cjs → MenuItem-Bha8aBMr.cjs} +1 -1
  46. package/dist/{MenuItem-j8luVUcX.js → MenuItem-Cu3FTLl8.js} +20 -20
  47. package/dist/{Modal-brWBFdK7.js → Modal-DTJd7JJ6.js} +99 -98
  48. package/dist/Modal-u82Ss4h_.cjs +2 -0
  49. package/dist/{Paper-BG4Vk_Um.js → Paper-BiZq6EF2.js} +8 -8
  50. package/dist/{Paper-Cr56xkCr.cjs → Paper-EvOTlB_Q.cjs} +2 -2
  51. package/dist/{Popper-YT5WAMV-.cjs → Popper-BVYscbsI.cjs} +3 -3
  52. package/dist/{Popper-DFZ_gRev.js → Popper-DjwR55WH.js} +241 -243
  53. package/dist/{Portal-JEwcozmp.js → Portal-BByeByPq.js} +34 -39
  54. package/dist/Portal-DUHpWdY1.cjs +1 -0
  55. package/dist/Radio-CSl8GQNk.cjs +1 -0
  56. package/dist/Radio-DSRS-tjj.js +568 -0
  57. package/dist/RadioGroup-DL4hhZzK.cjs +1 -0
  58. package/dist/RadioGroup-cPdOWdYD.js +190 -0
  59. package/dist/{Select-DmssuG5M.js → Select-CZnKFG3o.js} +419 -401
  60. package/dist/Select-DZAzJA0y.cjs +3 -0
  61. package/dist/Stack-B82ckLGm.cjs +1 -0
  62. package/dist/{Stack-BzTJdRGj.js → Stack-hbAJHQhq.js} +29 -29
  63. package/dist/Switch-B9uT9-d0.js +330 -0
  64. package/dist/Switch-DWKHe4z_.cjs +1 -0
  65. package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CDkmnGAP.js} +29 -29
  66. package/dist/{SwitchBase-DjIY_KWB.cjs → SwitchBase-CnA6TA2P.cjs} +1 -1
  67. package/dist/Tabs-AyJ_tKtV.cjs +4 -0
  68. package/dist/{Tabs-CYbeTnJk.js → Tabs-BYfDlOR9.js} +336 -337
  69. package/dist/{TextField-Cri5Gxa7.js → TextField-BKfXjPdH.js} +29 -27
  70. package/dist/TextField-CwcPgdgD.cjs +1 -0
  71. package/dist/ToggleButtonGroup-DIp0fcXW.cjs +140 -0
  72. package/dist/ToggleButtonGroup-sc2omtRp.js +10473 -0
  73. package/dist/{Tooltip-BhAHhzKz.js → Tooltip-B1NGvrJP.js} +14 -14
  74. package/dist/{Tooltip-DhDtvULK.cjs → Tooltip-oNmnF7Bc.cjs} +3 -3
  75. package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
  76. package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
  77. package/dist/{Typography-DfRMDngd.cjs → Typography-DPij13XT.cjs} +1 -1
  78. package/dist/{Typography-DBwTr_ix.js → Typography-SIQ6eleU.js} +9 -9
  79. package/dist/{capitalize-CkF8kU4n.js → capitalize-3KLkrEtk.js} +1 -1
  80. package/dist/{capitalize-B3GG7Wn6.cjs → capitalize-CEByPz9F.cjs} +1 -1
  81. package/dist/components/Alert/Alert.es.js +13 -4
  82. package/dist/components/Button/Button.cjs.js +1 -1
  83. package/dist/components/Button/Button.d.ts +1 -2
  84. package/dist/components/Button/Button.es.js +12 -325
  85. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  86. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  87. package/dist/components/DatePicker/index.cjs.js +1 -1
  88. package/dist/components/DatePicker/index.es.js +1 -1
  89. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  90. package/dist/components/Dialog/Dialog.es.js +12 -14
  91. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  92. package/dist/components/Dropzone/Dropzone.d.ts +2 -0
  93. package/dist/components/Dropzone/Dropzone.es.js +22 -19
  94. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
  95. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
  96. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  97. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  98. package/dist/components/FileList/FileIcon.cjs.js +1 -0
  99. package/dist/components/FileList/FileIcon.d.ts +3 -0
  100. package/dist/components/FileList/FileIcon.es.js +56 -0
  101. package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
  102. package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
  103. package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
  104. package/dist/components/FileList/FileList.cjs.js +1 -1
  105. package/dist/components/FileList/FileList.d.ts +5 -3
  106. package/dist/components/FileList/FileList.es.js +22 -15
  107. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  108. package/dist/components/FileList/FileListItem.d.ts +9 -5
  109. package/dist/components/FileList/FileListItem.es.js +118 -24
  110. package/dist/components/FileList/utils.cjs.js +1 -0
  111. package/dist/components/FileList/utils.d.ts +2 -0
  112. package/dist/components/FileList/utils.es.js +13 -0
  113. package/dist/components/Heading/Heading.cjs.js +1 -1
  114. package/dist/components/Heading/Heading.es.js +2 -2
  115. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  116. package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
  117. package/dist/components/Loader/Loader.cjs.js +1 -1
  118. package/dist/components/Loader/Loader.d.ts +1 -2
  119. package/dist/components/Loader/Loader.es.js +1 -1
  120. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  121. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
  122. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  123. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  124. package/dist/components/PasswordInput/PasswordInput.es.js +12 -10
  125. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  126. package/dist/components/QueryError/QueryError.d.ts +2 -2
  127. package/dist/components/QueryError/QueryError.es.js +14 -14
  128. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
  129. package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
  130. package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
  131. package/dist/components/ResourceCard/index.cjs.js +1 -0
  132. package/dist/components/ResourceCard/index.d.ts +2 -0
  133. package/dist/components/ResourceCard/index.es.js +4 -0
  134. package/dist/components/ResourceCard/style.cjs.js +1 -0
  135. package/dist/components/ResourceCard/style.es.js +125 -0
  136. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  137. package/dist/components/SearchInput/SearchInput.d.ts +1 -2
  138. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  139. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  140. package/dist/components/TextInput/TextInput.es.js +1 -1
  141. package/dist/components/index.cjs.js +1 -1
  142. package/dist/components/index.d.ts +35 -0
  143. package/dist/components/index.es.js +348 -294
  144. package/dist/components/stories/Button.stories.cjs.js +1 -1
  145. package/dist/components/stories/Button.stories.es.js +1 -1
  146. package/dist/components/stories/Card.stories.cjs.js +1 -1
  147. package/dist/components/stories/Card.stories.es.js +17 -168
  148. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  149. package/dist/components/stories/Checkbox.stories.es.js +5 -5
  150. package/dist/components/stories/Chip.stories.cjs.js +1 -0
  151. package/dist/components/stories/Chip.stories.d.ts +10 -0
  152. package/dist/components/stories/Chip.stories.es.js +77 -0
  153. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  154. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  155. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  156. package/dist/components/stories/Dialog.stories.es.js +2 -2
  157. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  158. package/dist/components/stories/Divider.stories.es.js +5 -5
  159. package/dist/components/stories/FileList.stories.cjs.js +8 -1
  160. package/dist/components/stories/FileList.stories.es.js +144 -20
  161. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  162. package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
  163. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  164. package/dist/components/stories/Heading.stories.es.js +2 -2
  165. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  166. package/dist/components/stories/IconButton.stories.es.js +2 -2
  167. package/dist/components/stories/Link.stories.cjs.js +1 -1
  168. package/dist/components/stories/Link.stories.es.js +1 -1
  169. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  170. package/dist/components/stories/Menu.stories.es.js +16 -16
  171. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  172. package/dist/components/stories/Paper.stories.es.js +1 -1
  173. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  174. package/dist/components/stories/RadioGroup.stories.es.js +19 -115
  175. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
  176. package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
  177. package/dist/components/stories/ResourceCard.stories.es.js +141 -0
  178. package/dist/components/stories/Select.stories.cjs.js +1 -1
  179. package/dist/components/stories/Select.stories.es.js +3 -3
  180. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  181. package/dist/components/stories/TabList.stories.es.js +14 -14
  182. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  183. package/dist/components/stories/TextField.stories.es.js +3 -3
  184. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  185. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  186. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  187. package/dist/components/stories/Typography.stories.es.js +1 -1
  188. package/dist/createSvgIcon-DJMYlO0S.cjs +1 -0
  189. package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-K2ZAdASa.js} +57 -55
  190. package/dist/{dividerClasses-CCAY3Pnr.cjs → dividerClasses-Dq1bCO_s.cjs} +1 -1
  191. package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-afsB3Yy1.js} +3 -3
  192. package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
  193. package/dist/{elementTypeAcceptingRef-DZsNbuLU.cjs → elementTypeAcceptingRef-BjgxF5Bq.cjs} +1 -1
  194. package/dist/{extendSxProp-apyK-EBz.cjs → extendSxProp-D-oLUmkR.cjs} +1 -1
  195. package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-dlShX1xL.js} +3 -3
  196. package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
  197. package/dist/generateUtilityClasses-De8NU9_E.cjs +75 -0
  198. package/dist/generateUtilityClasses-DotvgSDH.js +3297 -0
  199. package/dist/hooks/lazySvgImport.d.ts +1 -1
  200. package/dist/{index-CwvpOCso.js → index-B1u7G33_.js} +29 -29
  201. package/dist/{index-ChM1Ett8.cjs → index-CVFzneYe.cjs} +1 -1
  202. package/dist/{index-BCnPLuqJ.js → index-DTTmpNYg.js} +22 -22
  203. package/dist/index-T-RSwkXB.cjs +1 -0
  204. package/dist/index.cjs.js +1 -1
  205. package/dist/index.es.js +348 -294
  206. package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-CqmIydD-.js} +1 -1
  207. package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-DrjvJtTP.cjs} +1 -1
  208. package/dist/{refType-CoaxQOPt.cjs → refType-BkobP3bK.cjs} +1 -1
  209. package/dist/{refType-DKYKROQk.js → refType-C210ipRY.js} +1 -1
  210. package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-CPmhKPdH.js} +7 -7
  211. package/dist/resolveComponentProps-PuUs-PsA.cjs +1 -0
  212. package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
  213. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  214. package/dist/useSlot-CC2AaOjN.cjs +1 -0
  215. package/dist/useSlot-GZu0V5wJ.js +48 -0
  216. package/dist/{useSlotProps-B31YQlzb.js → useSlotProps-C9tsxDNg.js} +11 -11
  217. package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
  218. package/dist/{useTheme-Dukx-__T.cjs → useTheme-7RGQRN-h.cjs} +1 -1
  219. package/dist/useTheme-BA7tMglY.js +11 -0
  220. package/dist/{useTheme-Cy5kyKJF.cjs → useTheme-CIf2b2wK.cjs} +1 -1
  221. package/dist/{useTheme-_xyy-wul.js → useTheme-tdgDVH1p.js} +1 -1
  222. package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-AnS1uVAy.cjs} +1 -1
  223. package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BQlPXzo3.js} +2 -2
  224. package/dist/useThemeProps-BTfGtNci.js +17 -0
  225. package/dist/useThemeProps-DxBEHys5.cjs +1 -0
  226. package/dist/utils-CFI_-FMV.cjs +1 -0
  227. package/dist/{utils-C6c4fj7D.js → utils-CXhh35wP.js} +41 -41
  228. package/package.json +9 -9
  229. package/dist/Backdrop-CvufxHMY.cjs +0 -1
  230. package/dist/Button-BH9MUvmz.cjs +0 -1
  231. package/dist/Button-BnNYfQ3E.js +0 -484
  232. package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
  233. package/dist/Card-AJG0TUOx.js +0 -74
  234. package/dist/Card-NqCXQteq.cjs +0 -1
  235. package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
  236. package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
  237. package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
  238. package/dist/Delete-BkZN7Xu5.js +0 -8
  239. package/dist/Delete-D1EiKoL5.cjs +0 -1
  240. package/dist/Dialog-D_lS4J_M.js +0 -415
  241. package/dist/Dialog-yOrNcHbG.cjs +0 -1
  242. package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
  243. package/dist/FormControlLabel-BmrKQtQA.js +0 -262
  244. package/dist/FormGroup-CbczEc6e.js +0 -95
  245. package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
  246. package/dist/FormLabel-D1uvEhsH.cjs +0 -2
  247. package/dist/Grow-CUBJs6WD.cjs +0 -1
  248. package/dist/IconButton-CJfzspZK.cjs +0 -2
  249. package/dist/InputBase-s1fk8TB4.cjs +0 -3
  250. package/dist/Link-CWczkFp0.cjs +0 -1
  251. package/dist/Menu-Bsx8PA-q.cjs +0 -7
  252. package/dist/Modal-DImrEpYJ.cjs +0 -2
  253. package/dist/Portal-DF0RKOcD.cjs +0 -1
  254. package/dist/Radio-CVAEGXKi.cjs +0 -1
  255. package/dist/Radio-DGhot3Cd.js +0 -313
  256. package/dist/Select-CwAWNiiv.cjs +0 -3
  257. package/dist/Stack-Yq6rb7iK.cjs +0 -1
  258. package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
  259. package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
  260. package/dist/Tabs-KG4VWw-1.cjs +0 -4
  261. package/dist/TextField-BI9KVqjC.cjs +0 -1
  262. package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
  263. package/dist/createSvgIcon--rEClVU7.cjs +0 -1
  264. package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
  265. package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
  266. package/dist/index-Aa73Kpym.cjs +0 -1
  267. package/dist/index-Cw0GDedk.cjs +0 -17
  268. package/dist/index-DXD5J5Eu.js +0 -186
  269. package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
  270. package/dist/useSlot-BTpHG6jf.js +0 -50
  271. package/dist/useSlot-CByalpSD.cjs +0 -1
  272. package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
  273. package/dist/useTheme-DyaNKf4e.js +0 -11
  274. package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
  275. package/dist/useThemeProps-CwEQ4bv2.js +0 -24
  276. package/dist/utils-vmyQ2IaS.cjs +0 -1
@@ -0,0 +1,696 @@
1
+ import * as x from "react";
2
+ import { H as K, I as q, G as R, n as b, P as t } from "./generateUtilityClasses-DotvgSDH.js";
3
+ import { u as J, s as S, c as Q, r as X } from "./DefaultPropsProvider-Cqcb4sws.js";
4
+ import { m as Y } from "./memoTheme-CqmIydD-.js";
5
+ import { c as Z } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
6
+ import { jsxs as oo, jsx as g } from "react/jsx-runtime";
7
+ import { u as to } from "./useId-CK6Kn3Tn.js";
8
+ import { c as e } from "./capitalize-3KLkrEtk.js";
9
+ import { B as no } from "./ButtonBase-IZ_QjbpE.js";
10
+ import { C as ao } from "./CircularProgress-CQxzJquv.js";
11
+ function W(o, a) {
12
+ const n = {
13
+ ...a
14
+ };
15
+ for (const r in o)
16
+ if (Object.prototype.hasOwnProperty.call(o, r)) {
17
+ const i = r;
18
+ if (i === "components" || i === "slots")
19
+ n[i] = {
20
+ ...o[i],
21
+ ...n[i]
22
+ };
23
+ else if (i === "componentsProps" || i === "slotProps") {
24
+ const s = o[i], l = a[i];
25
+ if (!l)
26
+ n[i] = s || {};
27
+ else if (!s)
28
+ n[i] = l;
29
+ else {
30
+ n[i] = {
31
+ ...l
32
+ };
33
+ for (const y in s)
34
+ if (Object.prototype.hasOwnProperty.call(s, y)) {
35
+ const p = y;
36
+ n[i][p] = W(s[p], l[p]);
37
+ }
38
+ }
39
+ } else n[i] === void 0 && (n[i] = o[i]);
40
+ }
41
+ return n;
42
+ }
43
+ function io(o) {
44
+ return q("MuiButton", o);
45
+ }
46
+ const v = K("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"]), T = /* @__PURE__ */ x.createContext({});
47
+ process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupContext");
48
+ const L = /* @__PURE__ */ x.createContext(void 0);
49
+ process.env.NODE_ENV !== "production" && (L.displayName = "ButtonGroupButtonContext");
50
+ const ro = (o) => {
51
+ const {
52
+ color: a,
53
+ disableElevation: n,
54
+ fullWidth: r,
55
+ size: i,
56
+ variant: s,
57
+ loading: l,
58
+ loadingPosition: y,
59
+ classes: p
60
+ } = o, z = {
61
+ root: ["root", l && "loading", s, `${s}${e(a)}`, `size${e(i)}`, `${s}Size${e(i)}`, `color${e(a)}`, n && "disableElevation", r && "fullWidth", l && `loadingPosition${e(y)}`],
62
+ startIcon: ["icon", "startIcon", `iconSize${e(i)}`],
63
+ endIcon: ["icon", "endIcon", `iconSize${e(i)}`],
64
+ loadingIndicator: ["loadingIndicator"],
65
+ loadingWrapper: ["loadingWrapper"]
66
+ }, I = Q(z, io, p);
67
+ return {
68
+ ...p,
69
+ // forward the focused, disabled, etc. classes to the ButtonBase
70
+ ...I
71
+ };
72
+ }, k = [{
73
+ props: {
74
+ size: "small"
75
+ },
76
+ style: {
77
+ "& > *:nth-of-type(1)": {
78
+ fontSize: 18
79
+ }
80
+ }
81
+ }, {
82
+ props: {
83
+ size: "medium"
84
+ },
85
+ style: {
86
+ "& > *:nth-of-type(1)": {
87
+ fontSize: 20
88
+ }
89
+ }
90
+ }, {
91
+ props: {
92
+ size: "large"
93
+ },
94
+ style: {
95
+ "& > *:nth-of-type(1)": {
96
+ fontSize: 22
97
+ }
98
+ }
99
+ }], eo = S(no, {
100
+ shouldForwardProp: (o) => X(o) || o === "classes",
101
+ name: "MuiButton",
102
+ slot: "Root",
103
+ overridesResolver: (o, a) => {
104
+ const {
105
+ ownerState: n
106
+ } = o;
107
+ return [a.root, a[n.variant], a[`${n.variant}${e(n.color)}`], a[`size${e(n.size)}`], a[`${n.variant}Size${e(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth, n.loading && a.loading];
108
+ }
109
+ })(Y(({
110
+ theme: o
111
+ }) => {
112
+ 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];
113
+ return {
114
+ ...o.typography.button,
115
+ minWidth: 64,
116
+ padding: "6px 16px",
117
+ border: 0,
118
+ borderRadius: (o.vars || o).shape.borderRadius,
119
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
120
+ duration: o.transitions.duration.short
121
+ }),
122
+ "&:hover": {
123
+ textDecoration: "none"
124
+ },
125
+ [`&.${v.disabled}`]: {
126
+ color: (o.vars || o).palette.action.disabled
127
+ },
128
+ variants: [{
129
+ props: {
130
+ variant: "contained"
131
+ },
132
+ style: {
133
+ color: "var(--variant-containedColor)",
134
+ backgroundColor: "var(--variant-containedBg)",
135
+ boxShadow: (o.vars || o).shadows[2],
136
+ "&:hover": {
137
+ boxShadow: (o.vars || o).shadows[4],
138
+ // Reset on touch devices, it doesn't add specificity
139
+ "@media (hover: none)": {
140
+ boxShadow: (o.vars || o).shadows[2]
141
+ }
142
+ },
143
+ "&:active": {
144
+ boxShadow: (o.vars || o).shadows[8]
145
+ },
146
+ [`&.${v.focusVisible}`]: {
147
+ boxShadow: (o.vars || o).shadows[6]
148
+ },
149
+ [`&.${v.disabled}`]: {
150
+ color: (o.vars || o).palette.action.disabled,
151
+ boxShadow: (o.vars || o).shadows[0],
152
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
153
+ }
154
+ }
155
+ }, {
156
+ props: {
157
+ variant: "outlined"
158
+ },
159
+ style: {
160
+ padding: "5px 15px",
161
+ border: "1px solid currentColor",
162
+ borderColor: "var(--variant-outlinedBorder, currentColor)",
163
+ backgroundColor: "var(--variant-outlinedBg)",
164
+ color: "var(--variant-outlinedColor)",
165
+ [`&.${v.disabled}`]: {
166
+ border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
167
+ }
168
+ }
169
+ }, {
170
+ props: {
171
+ variant: "text"
172
+ },
173
+ style: {
174
+ padding: "6px 8px",
175
+ color: "var(--variant-textColor)",
176
+ backgroundColor: "var(--variant-textBg)"
177
+ }
178
+ }, ...Object.entries(o.palette).filter(Z()).map(([r]) => ({
179
+ props: {
180
+ color: r
181
+ },
182
+ style: {
183
+ "--variant-textColor": (o.vars || o).palette[r].main,
184
+ "--variant-outlinedColor": (o.vars || o).palette[r].main,
185
+ "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / 0.5)` : b(o.palette[r].main, 0.5),
186
+ "--variant-containedColor": (o.vars || o).palette[r].contrastText,
187
+ "--variant-containedBg": (o.vars || o).palette[r].main,
188
+ "@media (hover: hover)": {
189
+ "&:hover": {
190
+ "--variant-containedBg": (o.vars || o).palette[r].dark,
191
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette[r].main, o.palette.action.hoverOpacity),
192
+ "--variant-outlinedBorder": (o.vars || o).palette[r].main,
193
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette[r].main, o.palette.action.hoverOpacity)
194
+ }
195
+ }
196
+ }
197
+ })), {
198
+ props: {
199
+ color: "inherit"
200
+ },
201
+ style: {
202
+ color: "inherit",
203
+ borderColor: "currentColor",
204
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
205
+ "@media (hover: hover)": {
206
+ "&:hover": {
207
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
208
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.text.primary, o.palette.action.hoverOpacity),
209
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.text.primary, o.palette.action.hoverOpacity)
210
+ }
211
+ }
212
+ }
213
+ }, {
214
+ props: {
215
+ size: "small",
216
+ variant: "text"
217
+ },
218
+ style: {
219
+ padding: "4px 5px",
220
+ fontSize: o.typography.pxToRem(13)
221
+ }
222
+ }, {
223
+ props: {
224
+ size: "large",
225
+ variant: "text"
226
+ },
227
+ style: {
228
+ padding: "8px 11px",
229
+ fontSize: o.typography.pxToRem(15)
230
+ }
231
+ }, {
232
+ props: {
233
+ size: "small",
234
+ variant: "outlined"
235
+ },
236
+ style: {
237
+ padding: "3px 9px",
238
+ fontSize: o.typography.pxToRem(13)
239
+ }
240
+ }, {
241
+ props: {
242
+ size: "large",
243
+ variant: "outlined"
244
+ },
245
+ style: {
246
+ padding: "7px 21px",
247
+ fontSize: o.typography.pxToRem(15)
248
+ }
249
+ }, {
250
+ props: {
251
+ size: "small",
252
+ variant: "contained"
253
+ },
254
+ style: {
255
+ padding: "4px 10px",
256
+ fontSize: o.typography.pxToRem(13)
257
+ }
258
+ }, {
259
+ props: {
260
+ size: "large",
261
+ variant: "contained"
262
+ },
263
+ style: {
264
+ padding: "8px 22px",
265
+ fontSize: o.typography.pxToRem(15)
266
+ }
267
+ }, {
268
+ props: {
269
+ disableElevation: !0
270
+ },
271
+ style: {
272
+ boxShadow: "none",
273
+ "&:hover": {
274
+ boxShadow: "none"
275
+ },
276
+ [`&.${v.focusVisible}`]: {
277
+ boxShadow: "none"
278
+ },
279
+ "&:active": {
280
+ boxShadow: "none"
281
+ },
282
+ [`&.${v.disabled}`]: {
283
+ boxShadow: "none"
284
+ }
285
+ }
286
+ }, {
287
+ props: {
288
+ fullWidth: !0
289
+ },
290
+ style: {
291
+ width: "100%"
292
+ }
293
+ }, {
294
+ props: {
295
+ loadingPosition: "center"
296
+ },
297
+ style: {
298
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
299
+ duration: o.transitions.duration.short
300
+ }),
301
+ [`&.${v.loading}`]: {
302
+ color: "transparent"
303
+ }
304
+ }
305
+ }]
306
+ };
307
+ })), so = S("span", {
308
+ name: "MuiButton",
309
+ slot: "StartIcon",
310
+ overridesResolver: (o, a) => {
311
+ const {
312
+ ownerState: n
313
+ } = o;
314
+ return [a.startIcon, n.loading && a.startIconLoadingStart, a[`iconSize${e(n.size)}`]];
315
+ }
316
+ })(({
317
+ theme: o
318
+ }) => ({
319
+ display: "inherit",
320
+ marginRight: 8,
321
+ marginLeft: -4,
322
+ variants: [{
323
+ props: {
324
+ size: "small"
325
+ },
326
+ style: {
327
+ marginLeft: -2
328
+ }
329
+ }, {
330
+ props: {
331
+ loadingPosition: "start",
332
+ loading: !0
333
+ },
334
+ style: {
335
+ transition: o.transitions.create(["opacity"], {
336
+ duration: o.transitions.duration.short
337
+ }),
338
+ opacity: 0
339
+ }
340
+ }, {
341
+ props: {
342
+ loadingPosition: "start",
343
+ loading: !0,
344
+ fullWidth: !0
345
+ },
346
+ style: {
347
+ marginRight: -8
348
+ }
349
+ }, ...k]
350
+ })), lo = S("span", {
351
+ name: "MuiButton",
352
+ slot: "EndIcon",
353
+ overridesResolver: (o, a) => {
354
+ const {
355
+ ownerState: n
356
+ } = o;
357
+ return [a.endIcon, n.loading && a.endIconLoadingEnd, a[`iconSize${e(n.size)}`]];
358
+ }
359
+ })(({
360
+ theme: o
361
+ }) => ({
362
+ display: "inherit",
363
+ marginRight: -4,
364
+ marginLeft: 8,
365
+ variants: [{
366
+ props: {
367
+ size: "small"
368
+ },
369
+ style: {
370
+ marginRight: -2
371
+ }
372
+ }, {
373
+ props: {
374
+ loadingPosition: "end",
375
+ loading: !0
376
+ },
377
+ style: {
378
+ transition: o.transitions.create(["opacity"], {
379
+ duration: o.transitions.duration.short
380
+ }),
381
+ opacity: 0
382
+ }
383
+ }, {
384
+ props: {
385
+ loadingPosition: "end",
386
+ loading: !0,
387
+ fullWidth: !0
388
+ },
389
+ style: {
390
+ marginLeft: -8
391
+ }
392
+ }, ...k]
393
+ })), po = S("span", {
394
+ name: "MuiButton",
395
+ slot: "LoadingIndicator",
396
+ overridesResolver: (o, a) => a.loadingIndicator
397
+ })(({
398
+ theme: o
399
+ }) => ({
400
+ display: "none",
401
+ position: "absolute",
402
+ visibility: "visible",
403
+ variants: [{
404
+ props: {
405
+ loading: !0
406
+ },
407
+ style: {
408
+ display: "flex"
409
+ }
410
+ }, {
411
+ props: {
412
+ loadingPosition: "start"
413
+ },
414
+ style: {
415
+ left: 14
416
+ }
417
+ }, {
418
+ props: {
419
+ loadingPosition: "start",
420
+ size: "small"
421
+ },
422
+ style: {
423
+ left: 10
424
+ }
425
+ }, {
426
+ props: {
427
+ variant: "text",
428
+ loadingPosition: "start"
429
+ },
430
+ style: {
431
+ left: 6
432
+ }
433
+ }, {
434
+ props: {
435
+ loadingPosition: "center"
436
+ },
437
+ style: {
438
+ left: "50%",
439
+ transform: "translate(-50%)",
440
+ color: (o.vars || o).palette.action.disabled
441
+ }
442
+ }, {
443
+ props: {
444
+ loadingPosition: "end"
445
+ },
446
+ style: {
447
+ right: 14
448
+ }
449
+ }, {
450
+ props: {
451
+ loadingPosition: "end",
452
+ size: "small"
453
+ },
454
+ style: {
455
+ right: 10
456
+ }
457
+ }, {
458
+ props: {
459
+ variant: "text",
460
+ loadingPosition: "end"
461
+ },
462
+ style: {
463
+ right: 6
464
+ }
465
+ }, {
466
+ props: {
467
+ loadingPosition: "start",
468
+ fullWidth: !0
469
+ },
470
+ style: {
471
+ position: "relative",
472
+ left: -10
473
+ }
474
+ }, {
475
+ props: {
476
+ loadingPosition: "end",
477
+ fullWidth: !0
478
+ },
479
+ style: {
480
+ position: "relative",
481
+ right: -10
482
+ }
483
+ }]
484
+ })), E = S("span", {
485
+ name: "MuiButton",
486
+ slot: "LoadingIconPlaceholder",
487
+ overridesResolver: (o, a) => a.loadingIconPlaceholder
488
+ })({
489
+ display: "inline-block",
490
+ width: "1em",
491
+ height: "1em"
492
+ }), co = /* @__PURE__ */ x.forwardRef(function(a, n) {
493
+ const r = x.useContext(T), i = x.useContext(L), s = W(r, a), l = J({
494
+ props: s,
495
+ name: "MuiButton"
496
+ }), {
497
+ children: y,
498
+ color: p = "primary",
499
+ component: z = "button",
500
+ className: I,
501
+ disabled: C = !1,
502
+ disableElevation: M = !1,
503
+ disableFocusRipple: m = !1,
504
+ endIcon: B,
505
+ focusVisibleClassName: V,
506
+ fullWidth: j = !1,
507
+ id: P,
508
+ loading: c = null,
509
+ loadingIndicator: G,
510
+ loadingPosition: f = "center",
511
+ size: D = "medium",
512
+ startIcon: h,
513
+ type: w,
514
+ variant: F = "text",
515
+ ...U
516
+ } = l, $ = to(P), O = G ?? /* @__PURE__ */ g(ao, {
517
+ "aria-labelledby": $,
518
+ color: "inherit",
519
+ size: 16
520
+ }), u = {
521
+ ...l,
522
+ color: p,
523
+ component: z,
524
+ disabled: C,
525
+ disableElevation: M,
526
+ disableFocusRipple: m,
527
+ fullWidth: j,
528
+ loading: c,
529
+ loadingIndicator: O,
530
+ loadingPosition: f,
531
+ size: D,
532
+ type: w,
533
+ variant: F
534
+ }, d = ro(u), H = (h || c && f === "start") && /* @__PURE__ */ g(so, {
535
+ className: d.startIcon,
536
+ ownerState: u,
537
+ children: h || /* @__PURE__ */ g(E, {
538
+ className: d.loadingIconPlaceholder,
539
+ ownerState: u
540
+ })
541
+ }), _ = (B || c && f === "end") && /* @__PURE__ */ g(lo, {
542
+ className: d.endIcon,
543
+ ownerState: u,
544
+ children: B || /* @__PURE__ */ g(E, {
545
+ className: d.loadingIconPlaceholder,
546
+ ownerState: u
547
+ })
548
+ }), A = i || "", N = typeof c == "boolean" ? (
549
+ // use plain HTML span to minimize the runtime overhead
550
+ /* @__PURE__ */ g("span", {
551
+ className: d.loadingWrapper,
552
+ style: {
553
+ display: "contents"
554
+ },
555
+ children: c && /* @__PURE__ */ g(po, {
556
+ className: d.loadingIndicator,
557
+ ownerState: u,
558
+ children: O
559
+ })
560
+ })
561
+ ) : null;
562
+ return /* @__PURE__ */ oo(eo, {
563
+ ownerState: u,
564
+ className: R(r.className, d.root, I, A),
565
+ component: z,
566
+ disabled: C || c,
567
+ focusRipple: !m,
568
+ focusVisibleClassName: R(d.focusVisible, V),
569
+ ref: n,
570
+ type: w,
571
+ id: c ? $ : P,
572
+ ...U,
573
+ classes: d,
574
+ children: [H, f !== "end" && N, y, f === "end" && N, _]
575
+ });
576
+ });
577
+ process.env.NODE_ENV !== "production" && (co.propTypes = {
578
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
579
+ // │ These PropTypes are generated from the TypeScript type definitions. │
580
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
581
+ // └─────────────────────────────────────────────────────────────────────┘
582
+ /**
583
+ * The content of the component.
584
+ */
585
+ children: t.node,
586
+ /**
587
+ * Override or extend the styles applied to the component.
588
+ */
589
+ classes: t.object,
590
+ /**
591
+ * @ignore
592
+ */
593
+ className: t.string,
594
+ /**
595
+ * The color of the component.
596
+ * It supports both default and custom theme colors, which can be added as shown in the
597
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
598
+ * @default 'primary'
599
+ */
600
+ color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
601
+ /**
602
+ * The component used for the root node.
603
+ * Either a string to use a HTML element or a component.
604
+ */
605
+ component: t.elementType,
606
+ /**
607
+ * If `true`, the component is disabled.
608
+ * @default false
609
+ */
610
+ disabled: t.bool,
611
+ /**
612
+ * If `true`, no elevation is used.
613
+ * @default false
614
+ */
615
+ disableElevation: t.bool,
616
+ /**
617
+ * If `true`, the keyboard focus ripple is disabled.
618
+ * @default false
619
+ */
620
+ disableFocusRipple: t.bool,
621
+ /**
622
+ * If `true`, the ripple effect is disabled.
623
+ *
624
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
625
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
626
+ * @default false
627
+ */
628
+ disableRipple: t.bool,
629
+ /**
630
+ * Element placed after the children.
631
+ */
632
+ endIcon: t.node,
633
+ /**
634
+ * @ignore
635
+ */
636
+ focusVisibleClassName: t.string,
637
+ /**
638
+ * If `true`, the button will take up the full width of its container.
639
+ * @default false
640
+ */
641
+ fullWidth: t.bool,
642
+ /**
643
+ * The URL to link to when the button is clicked.
644
+ * If defined, an `a` element will be used as the root node.
645
+ */
646
+ href: t.string,
647
+ /**
648
+ * @ignore
649
+ */
650
+ id: t.string,
651
+ /**
652
+ * If `true`, the loading indicator is visible and the button is disabled.
653
+ * 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).
654
+ * @default null
655
+ */
656
+ loading: t.bool,
657
+ /**
658
+ * Element placed before the children if the button is in loading state.
659
+ * The node should contain an element with `role="progressbar"` with an accessible name.
660
+ * By default, it renders a `CircularProgress` that is labeled by the button itself.
661
+ * @default <CircularProgress color="inherit" size={16} />
662
+ */
663
+ loadingIndicator: t.node,
664
+ /**
665
+ * The loading indicator can be positioned on the start, end, or the center of the button.
666
+ * @default 'center'
667
+ */
668
+ loadingPosition: t.oneOf(["center", "end", "start"]),
669
+ /**
670
+ * The size of the component.
671
+ * `small` is equivalent to the dense button styling.
672
+ * @default 'medium'
673
+ */
674
+ size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
675
+ /**
676
+ * Element placed before the children.
677
+ */
678
+ startIcon: t.node,
679
+ /**
680
+ * The system prop that allows defining system overrides as well as additional CSS styles.
681
+ */
682
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
683
+ /**
684
+ * @ignore
685
+ */
686
+ type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
687
+ /**
688
+ * The variant to use.
689
+ * @default 'text'
690
+ */
691
+ variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
692
+ });
693
+ export {
694
+ co as B,
695
+ W as r
696
+ };