@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
@@ -1,484 +0,0 @@
1
- import * as g from "react";
2
- import { I as L, H as G, n as v, G as m, P as t } from "./generateUtilityClasses-Bssl7BA_.js";
3
- import { s as f, r as D, u as F, c as U } from "./DefaultPropsProvider-CvJPQJmL.js";
4
- import { m as H } from "./memoTheme-D7Fyh_3C.js";
5
- import { c as _ } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
6
- import { jsxs as A, jsx as I } from "react/jsx-runtime";
7
- import { B as K } from "./ButtonBase-DAWDecOk.js";
8
- import { c as s } from "./capitalize-CkF8kU4n.js";
9
- function w(o, n) {
10
- const a = {
11
- ...n
12
- };
13
- for (const e in o)
14
- if (Object.prototype.hasOwnProperty.call(o, e)) {
15
- const r = e;
16
- if (r === "components" || r === "slots")
17
- a[r] = {
18
- ...o[r],
19
- ...a[r]
20
- };
21
- else if (r === "componentsProps" || r === "slotProps") {
22
- const i = o[r], l = n[r];
23
- if (!l)
24
- a[r] = i || {};
25
- else if (!i)
26
- a[r] = l;
27
- else {
28
- a[r] = {
29
- ...l
30
- };
31
- for (const c in i)
32
- if (Object.prototype.hasOwnProperty.call(i, c)) {
33
- const p = c;
34
- a[r][p] = w(i[p], l[p]);
35
- }
36
- }
37
- } else a[r] === void 0 && (a[r] = o[r]);
38
- }
39
- return a;
40
- }
41
- function q(o) {
42
- return G("MuiButton", o);
43
- }
44
- const d = L("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"]), $ = /* @__PURE__ */ g.createContext({});
45
- process.env.NODE_ENV !== "production" && ($.displayName = "ButtonGroupContext");
46
- const O = /* @__PURE__ */ g.createContext(void 0);
47
- process.env.NODE_ENV !== "production" && (O.displayName = "ButtonGroupButtonContext");
48
- const J = (o) => {
49
- const {
50
- color: n,
51
- disableElevation: a,
52
- fullWidth: e,
53
- size: r,
54
- variant: i,
55
- classes: l
56
- } = o, c = {
57
- root: ["root", i, `${i}${s(n)}`, `size${s(r)}`, `${i}Size${s(r)}`, `color${s(n)}`, a && "disableElevation", e && "fullWidth"],
58
- label: ["label"],
59
- startIcon: ["icon", "startIcon", `iconSize${s(r)}`],
60
- endIcon: ["icon", "endIcon", `iconSize${s(r)}`]
61
- }, p = U(c, q, l);
62
- return {
63
- ...l,
64
- // forward the focused, disabled, etc. classes to the ButtonBase
65
- ...p
66
- };
67
- }, R = [{
68
- props: {
69
- size: "small"
70
- },
71
- style: {
72
- "& > *:nth-of-type(1)": {
73
- fontSize: 18
74
- }
75
- }
76
- }, {
77
- props: {
78
- size: "medium"
79
- },
80
- style: {
81
- "& > *:nth-of-type(1)": {
82
- fontSize: 20
83
- }
84
- }
85
- }, {
86
- props: {
87
- size: "large"
88
- },
89
- style: {
90
- "& > *:nth-of-type(1)": {
91
- fontSize: 22
92
- }
93
- }
94
- }], Q = f(K, {
95
- shouldForwardProp: (o) => D(o) || o === "classes",
96
- name: "MuiButton",
97
- slot: "Root",
98
- overridesResolver: (o, n) => {
99
- const {
100
- ownerState: a
101
- } = o;
102
- return [n.root, n[a.variant], n[`${a.variant}${s(a.color)}`], n[`size${s(a.size)}`], n[`${a.variant}Size${s(a.size)}`], a.color === "inherit" && n.colorInherit, a.disableElevation && n.disableElevation, a.fullWidth && n.fullWidth];
103
- }
104
- })(H(({
105
- theme: o
106
- }) => {
107
- const n = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], a = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
108
- return {
109
- ...o.typography.button,
110
- minWidth: 64,
111
- padding: "6px 16px",
112
- border: 0,
113
- borderRadius: (o.vars || o).shape.borderRadius,
114
- transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
115
- duration: o.transitions.duration.short
116
- }),
117
- "&:hover": {
118
- textDecoration: "none"
119
- },
120
- [`&.${d.disabled}`]: {
121
- color: (o.vars || o).palette.action.disabled
122
- },
123
- variants: [{
124
- props: {
125
- variant: "contained"
126
- },
127
- style: {
128
- color: "var(--variant-containedColor)",
129
- backgroundColor: "var(--variant-containedBg)",
130
- boxShadow: (o.vars || o).shadows[2],
131
- "&:hover": {
132
- boxShadow: (o.vars || o).shadows[4],
133
- // Reset on touch devices, it doesn't add specificity
134
- "@media (hover: none)": {
135
- boxShadow: (o.vars || o).shadows[2]
136
- }
137
- },
138
- "&:active": {
139
- boxShadow: (o.vars || o).shadows[8]
140
- },
141
- [`&.${d.focusVisible}`]: {
142
- boxShadow: (o.vars || o).shadows[6]
143
- },
144
- [`&.${d.disabled}`]: {
145
- color: (o.vars || o).palette.action.disabled,
146
- boxShadow: (o.vars || o).shadows[0],
147
- backgroundColor: (o.vars || o).palette.action.disabledBackground
148
- }
149
- }
150
- }, {
151
- props: {
152
- variant: "outlined"
153
- },
154
- style: {
155
- padding: "5px 15px",
156
- border: "1px solid currentColor",
157
- borderColor: "var(--variant-outlinedBorder, currentColor)",
158
- backgroundColor: "var(--variant-outlinedBg)",
159
- color: "var(--variant-outlinedColor)",
160
- [`&.${d.disabled}`]: {
161
- border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
162
- }
163
- }
164
- }, {
165
- props: {
166
- variant: "text"
167
- },
168
- style: {
169
- padding: "6px 8px",
170
- color: "var(--variant-textColor)",
171
- backgroundColor: "var(--variant-textBg)"
172
- }
173
- }, ...Object.entries(o.palette).filter(_()).map(([e]) => ({
174
- props: {
175
- color: e
176
- },
177
- style: {
178
- "--variant-textColor": (o.vars || o).palette[e].main,
179
- "--variant-outlinedColor": (o.vars || o).palette[e].main,
180
- "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / 0.5)` : v(o.palette[e].main, 0.5),
181
- "--variant-containedColor": (o.vars || o).palette[e].contrastText,
182
- "--variant-containedBg": (o.vars || o).palette[e].main,
183
- "@media (hover: hover)": {
184
- "&:hover": {
185
- "--variant-containedBg": (o.vars || o).palette[e].dark,
186
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[e].main, o.palette.action.hoverOpacity),
187
- "--variant-outlinedBorder": (o.vars || o).palette[e].main,
188
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[e].main, o.palette.action.hoverOpacity)
189
- }
190
- }
191
- }
192
- })), {
193
- props: {
194
- color: "inherit"
195
- },
196
- style: {
197
- color: "inherit",
198
- borderColor: "currentColor",
199
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : n,
200
- "@media (hover: hover)": {
201
- "&:hover": {
202
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
203
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
204
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity)
205
- }
206
- }
207
- }
208
- }, {
209
- props: {
210
- size: "small",
211
- variant: "text"
212
- },
213
- style: {
214
- padding: "4px 5px",
215
- fontSize: o.typography.pxToRem(13)
216
- }
217
- }, {
218
- props: {
219
- size: "large",
220
- variant: "text"
221
- },
222
- style: {
223
- padding: "8px 11px",
224
- fontSize: o.typography.pxToRem(15)
225
- }
226
- }, {
227
- props: {
228
- size: "small",
229
- variant: "outlined"
230
- },
231
- style: {
232
- padding: "3px 9px",
233
- fontSize: o.typography.pxToRem(13)
234
- }
235
- }, {
236
- props: {
237
- size: "large",
238
- variant: "outlined"
239
- },
240
- style: {
241
- padding: "7px 21px",
242
- fontSize: o.typography.pxToRem(15)
243
- }
244
- }, {
245
- props: {
246
- size: "small",
247
- variant: "contained"
248
- },
249
- style: {
250
- padding: "4px 10px",
251
- fontSize: o.typography.pxToRem(13)
252
- }
253
- }, {
254
- props: {
255
- size: "large",
256
- variant: "contained"
257
- },
258
- style: {
259
- padding: "8px 22px",
260
- fontSize: o.typography.pxToRem(15)
261
- }
262
- }, {
263
- props: {
264
- disableElevation: !0
265
- },
266
- style: {
267
- boxShadow: "none",
268
- "&:hover": {
269
- boxShadow: "none"
270
- },
271
- [`&.${d.focusVisible}`]: {
272
- boxShadow: "none"
273
- },
274
- "&:active": {
275
- boxShadow: "none"
276
- },
277
- [`&.${d.disabled}`]: {
278
- boxShadow: "none"
279
- }
280
- }
281
- }, {
282
- props: {
283
- fullWidth: !0
284
- },
285
- style: {
286
- width: "100%"
287
- }
288
- }]
289
- };
290
- })), X = f("span", {
291
- name: "MuiButton",
292
- slot: "StartIcon",
293
- overridesResolver: (o, n) => {
294
- const {
295
- ownerState: a
296
- } = o;
297
- return [n.startIcon, n[`iconSize${s(a.size)}`]];
298
- }
299
- })({
300
- display: "inherit",
301
- marginRight: 8,
302
- marginLeft: -4,
303
- variants: [{
304
- props: {
305
- size: "small"
306
- },
307
- style: {
308
- marginLeft: -2
309
- }
310
- }, ...R]
311
- }), Y = f("span", {
312
- name: "MuiButton",
313
- slot: "EndIcon",
314
- overridesResolver: (o, n) => {
315
- const {
316
- ownerState: a
317
- } = o;
318
- return [n.endIcon, n[`iconSize${s(a.size)}`]];
319
- }
320
- })({
321
- display: "inherit",
322
- marginRight: -4,
323
- marginLeft: 8,
324
- variants: [{
325
- props: {
326
- size: "small"
327
- },
328
- style: {
329
- marginRight: -2
330
- }
331
- }, ...R]
332
- }), Z = /* @__PURE__ */ g.forwardRef(function(n, a) {
333
- const e = g.useContext($), r = g.useContext(O), i = w(e, n), l = F({
334
- props: i,
335
- name: "MuiButton"
336
- }), {
337
- children: c,
338
- color: p = "primary",
339
- component: b = "button",
340
- className: N,
341
- disabled: x = !1,
342
- disableElevation: h = !1,
343
- disableFocusRipple: S = !1,
344
- endIcon: z,
345
- focusVisibleClassName: E,
346
- fullWidth: P = !1,
347
- size: T = "medium",
348
- startIcon: C,
349
- type: B,
350
- variant: W = "text",
351
- ...k
352
- } = l, y = {
353
- ...l,
354
- color: p,
355
- component: b,
356
- disabled: x,
357
- disableElevation: h,
358
- disableFocusRipple: S,
359
- fullWidth: P,
360
- size: T,
361
- type: B,
362
- variant: W
363
- }, u = J(y), M = C && /* @__PURE__ */ I(X, {
364
- className: u.startIcon,
365
- ownerState: y,
366
- children: C
367
- }), V = z && /* @__PURE__ */ I(Y, {
368
- className: u.endIcon,
369
- ownerState: y,
370
- children: z
371
- }), j = r || "";
372
- return /* @__PURE__ */ A(Q, {
373
- ownerState: y,
374
- className: m(e.className, u.root, N, j),
375
- component: b,
376
- disabled: x,
377
- focusRipple: !S,
378
- focusVisibleClassName: m(u.focusVisible, E),
379
- ref: a,
380
- type: B,
381
- ...k,
382
- classes: u,
383
- children: [M, c, V]
384
- });
385
- });
386
- process.env.NODE_ENV !== "production" && (Z.propTypes = {
387
- // ┌────────────────────────────── Warning ──────────────────────────────┐
388
- // │ These PropTypes are generated from the TypeScript type definitions. │
389
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
390
- // └─────────────────────────────────────────────────────────────────────┘
391
- /**
392
- * The content of the component.
393
- */
394
- children: t.node,
395
- /**
396
- * Override or extend the styles applied to the component.
397
- */
398
- classes: t.object,
399
- /**
400
- * @ignore
401
- */
402
- className: t.string,
403
- /**
404
- * The color of the component.
405
- * It supports both default and custom theme colors, which can be added as shown in the
406
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
407
- * @default 'primary'
408
- */
409
- color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
410
- /**
411
- * The component used for the root node.
412
- * Either a string to use a HTML element or a component.
413
- */
414
- component: t.elementType,
415
- /**
416
- * If `true`, the component is disabled.
417
- * @default false
418
- */
419
- disabled: t.bool,
420
- /**
421
- * If `true`, no elevation is used.
422
- * @default false
423
- */
424
- disableElevation: t.bool,
425
- /**
426
- * If `true`, the keyboard focus ripple is disabled.
427
- * @default false
428
- */
429
- disableFocusRipple: t.bool,
430
- /**
431
- * If `true`, the ripple effect is disabled.
432
- *
433
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
434
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
435
- * @default false
436
- */
437
- disableRipple: t.bool,
438
- /**
439
- * Element placed after the children.
440
- */
441
- endIcon: t.node,
442
- /**
443
- * @ignore
444
- */
445
- focusVisibleClassName: t.string,
446
- /**
447
- * If `true`, the button will take up the full width of its container.
448
- * @default false
449
- */
450
- fullWidth: t.bool,
451
- /**
452
- * The URL to link to when the button is clicked.
453
- * If defined, an `a` element will be used as the root node.
454
- */
455
- href: t.string,
456
- /**
457
- * The size of the component.
458
- * `small` is equivalent to the dense button styling.
459
- * @default 'medium'
460
- */
461
- size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
462
- /**
463
- * Element placed before the children.
464
- */
465
- startIcon: t.node,
466
- /**
467
- * The system prop that allows defining system overrides as well as additional CSS styles.
468
- */
469
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
470
- /**
471
- * @ignore
472
- */
473
- type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
474
- /**
475
- * The variant to use.
476
- * @default 'text'
477
- */
478
- variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
479
- });
480
- export {
481
- Z as B,
482
- $ as a,
483
- w as r
484
- };
@@ -1,74 +0,0 @@
1
- "use strict";var ve=Object.defineProperty;var Se=(o,t,n)=>t in o?ve(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n;var le=(o,t,n)=>Se(o,typeof t!="symbol"?t+"":t,n);const m=require("react"),e=require("./generateUtilityClasses-B_H9HEmg.cjs"),L=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-3KMGupjb.cjs"),ce=require("./useTimeout-COCrDKz-.cjs"),W=require("./TransitionGroupContext-DbXD5xqS.cjs"),ne=require("@emotion/react"),ue=require("./useForkRef-CTI33h-3.cjs"),H=require("./useEventCallback-C0-Qw3Sm.cjs"),ae=require("./isFocusVisible-DlSijby6.cjs"),Oe=require("./refType-CoaxQOPt.cjs"),we=require("./elementTypeAcceptingRef-DZsNbuLU.cjs");function Be(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>o[n]})}}return t.default=o,Object.freeze(t)}const d=Be(m);function J(){return J=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)({}).hasOwnProperty.call(n,u)&&(o[u]=n[u])}return o},J.apply(null,arguments)}function Le(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function oe(o,t){var n=function(s){return t&&m.isValidElement(s)?t(s):s},u=Object.create(null);return o&&m.Children.map(o,function(r){return r}).forEach(function(r){u[r.key]=n(r)}),u}function Fe(o,t){o=o||{},t=t||{};function n(h){return h in t?t[h]:o[h]}var u=Object.create(null),r=[];for(var s in o)s in t?r.length&&(u[s]=r,r=[]):r.push(s);var i,p={};for(var a in t){if(u[a])for(i=0;i<u[a].length;i++){var f=u[a][i];p[u[a][i]]=n(f)}p[a]=n(a)}for(i=0;i<r.length;i++)p[r[i]]=n(r[i]);return p}function B(o,t,n){return n[t]!=null?n[t]:o.props[t]}function qe(o,t){return oe(o.children,function(n){return m.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:B(n,"appear",o),enter:B(n,"enter",o),exit:B(n,"exit",o)})})}function Ue(o,t,n){var u=oe(o.children),r=Fe(t,u);return Object.keys(r).forEach(function(s){var i=r[s];if(m.isValidElement(i)){var p=s in t,a=s in u,f=t[s],h=m.isValidElement(f)&&!f.props.in;a&&(!p||h)?r[s]=m.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:B(i,"exit",o),enter:B(i,"enter",o)}):!a&&p&&!h?r[s]=m.cloneElement(i,{in:!1}):a&&p&&m.isValidElement(f)&&(r[s]=m.cloneElement(i,{onExited:n.bind(null,i),in:f.props.in,exit:B(i,"exit",o),enter:B(i,"enter",o)}))}}),r}var $e=Object.values||function(o){return Object.keys(o).map(function(t){return o[t]})},Ie={component:"div",childFactory:function(t){return t}},Z=function(o){W._inheritsLoose(t,o);function t(u,r){var s;s=o.call(this,u,r)||this;var i=s.handleExited.bind(Le(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var i=s.children,p=s.handleExited,a=s.firstRender;return{children:a?qe(r,p):Ue(r,i,p),firstRender:!1}},n.handleExited=function(r,s){var i=oe(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(p){var a=J({},p.children);return delete a[r.key],{children:a}}))},n.render=function(){var r=this.props,s=r.component,i=r.childFactory,p=W._objectWithoutPropertiesLoose(r,["component","childFactory"]),a=this.state.contextValue,f=$e(this.state.children).map(i);return delete p.appear,delete p.enter,delete p.exit,s===null?m.createElement(W.TransitionGroupContext.Provider,{value:a},f):m.createElement(W.TransitionGroupContext.Provider,{value:a},m.createElement(s,p,f))},t}(m.Component);Z.propTypes=process.env.NODE_ENV!=="production"?{component:e.PropTypes.any,children:e.PropTypes.node,appear:e.PropTypes.bool,enter:e.PropTypes.bool,exit:e.PropTypes.bool,childFactory:e.PropTypes.func}:{};Z.defaultProps=Ie;class Q{constructor(){le(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Q}static use(){const t=ce.useLazyRef(Q.create).current,[n,u]=d.useState(!1);return t.shouldMount=n,t.setShouldMount=u,d.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=_e(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function ze(){return Q.use()}function _e(){let o,t;const n=new Promise((u,r)=>{o=u,t=r});return n.resolve=o,n.reject=t,n}function pe(o){const{className:t,classes:n,pulsate:u=!1,rippleX:r,rippleY:s,rippleSize:i,in:p,onExited:a,timeout:f}=o,[h,g]=d.useState(!1),b=e.clsx(t,n.ripple,n.rippleVisible,u&&n.ripplePulsate),D={width:i,height:i,top:-(i/2)+s,left:-(i/2)+r},y=e.clsx(n.child,h&&n.childLeaving,u&&n.childPulsate);return!p&&!h&&g(!0),d.useEffect(()=>{if(!p&&a!=null){const v=setTimeout(a,f);return()=>{clearTimeout(v)}}},[a,p,f]),L.jsx("span",{className:b,style:D,children:L.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(pe.propTypes={classes:e.PropTypes.object.isRequired,className:e.PropTypes.string,in:e.PropTypes.bool,onExited:e.PropTypes.func,pulsate:e.PropTypes.bool,rippleSize:e.PropTypes.number,rippleX:e.PropTypes.number,rippleY:e.PropTypes.number,timeout:e.PropTypes.number.isRequired});const T=e.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),te=550,Ae=80,Xe=ne.keyframes`
2
- 0% {
3
- transform: scale(0);
4
- opacity: 0.1;
5
- }
6
-
7
- 100% {
8
- transform: scale(1);
9
- opacity: 0.3;
10
- }
11
- `,Ye=ne.keyframes`
12
- 0% {
13
- opacity: 1;
14
- }
15
-
16
- 100% {
17
- opacity: 0;
18
- }
19
- `,Ke=ne.keyframes`
20
- 0% {
21
- transform: scale(1);
22
- }
23
-
24
- 50% {
25
- transform: scale(0.92);
26
- }
27
-
28
- 100% {
29
- transform: scale(1);
30
- }
31
- `,Ge=$.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),We=$.styled(pe,{name:"MuiTouchRipple",slot:"Ripple"})`
32
- opacity: 0;
33
- position: absolute;
34
-
35
- &.${T.rippleVisible} {
36
- opacity: 0.3;
37
- transform: scale(1);
38
- animation-name: ${Xe};
39
- animation-duration: ${te}ms;
40
- animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
41
- }
42
-
43
- &.${T.ripplePulsate} {
44
- animation-duration: ${({theme:o})=>o.transitions.duration.shorter}ms;
45
- }
46
-
47
- & .${T.child} {
48
- opacity: 1;
49
- display: block;
50
- width: 100%;
51
- height: 100%;
52
- border-radius: 50%;
53
- background-color: currentColor;
54
- }
55
-
56
- & .${T.childLeaving} {
57
- opacity: 0;
58
- animation-name: ${Ye};
59
- animation-duration: ${te}ms;
60
- animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
61
- }
62
-
63
- & .${T.childPulsate} {
64
- position: absolute;
65
- /* @noflip */
66
- left: 0px;
67
- top: 0;
68
- animation-name: ${Ke};
69
- animation-duration: 2500ms;
70
- animation-timing-function: ${({theme:o})=>o.transitions.easing.easeInOut};
71
- animation-iteration-count: infinite;
72
- animation-delay: 200ms;
73
- }
74
- `,fe=d.forwardRef(function(t,n){const u=$.useDefaultProps({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i,...p}=u,[a,f]=d.useState([]),h=d.useRef(0),g=d.useRef(null);d.useEffect(()=>{g.current&&(g.current(),g.current=null)},[a]);const b=d.useRef(!1),D=ce.useTimeout(),y=d.useRef(null),v=d.useRef(null),x=d.useCallback(c=>{const{pulsate:R,rippleX:P,rippleY:U,rippleSize:S,cb:I}=c;f(M=>[...M,L.jsx(We,{classes:{ripple:e.clsx(s.ripple,T.ripple),rippleVisible:e.clsx(s.rippleVisible,T.rippleVisible),ripplePulsate:e.clsx(s.ripplePulsate,T.ripplePulsate),child:e.clsx(s.child,T.child),childLeaving:e.clsx(s.childLeaving,T.childLeaving),childPulsate:e.clsx(s.childPulsate,T.childPulsate)},timeout:te,pulsate:R,rippleX:P,rippleY:U,rippleSize:S},h.current)]),h.current+=1,g.current=I},[s]),F=d.useCallback((c={},R={},P=()=>{})=>{const{pulsate:U=!1,center:S=r||R.pulsate,fakeElement:I=!1}=R;if((c==null?void 0:c.type)==="mousedown"&&b.current){b.current=!1;return}(c==null?void 0:c.type)==="touchstart"&&(b.current=!0);const M=I?null:v.current,N=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,E,k;if(S||c===void 0||c.clientX===0&&c.clientY===0||!c.clientX&&!c.touches)j=Math.round(N.width/2),E=Math.round(N.height/2);else{const{clientX:z,clientY:O}=c.touches&&c.touches.length>0?c.touches[0]:c;j=Math.round(z-N.left),E=Math.round(O-N.top)}if(S)k=Math.sqrt((2*N.width**2+N.height**2)/3),k%2===0&&(k+=1);else{const z=Math.max(Math.abs((M?M.clientWidth:0)-j),j)*2+2,O=Math.max(Math.abs((M?M.clientHeight:0)-E),E)*2+2;k=Math.sqrt(z**2+O**2)}c!=null&&c.touches?y.current===null&&(y.current=()=>{x({pulsate:U,rippleX:j,rippleY:E,rippleSize:k,cb:P})},D.start(Ae,()=>{y.current&&(y.current(),y.current=null)})):x({pulsate:U,rippleX:j,rippleY:E,rippleSize:k,cb:P})},[r,x,D]),Y=d.useCallback(()=>{F({},{pulsate:!0})},[F]),q=d.useCallback((c,R)=>{if(D.clear(),(c==null?void 0:c.type)==="touchend"&&y.current){y.current(),y.current=null,D.start(0,()=>{q(c,R)});return}y.current=null,f(P=>P.length>0?P.slice(1):P),g.current=R},[D]);return d.useImperativeHandle(n,()=>({pulsate:Y,start:F,stop:q}),[Y,F,q]),L.jsx(Ge,{className:e.clsx(T.root,s.root,i),ref:v,...p,children:L.jsx(Z,{component:null,exit:!0,children:a})})});process.env.NODE_ENV!=="production"&&(fe.propTypes={center:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string});function He(o){return e.generateUtilityClass("MuiButtonBase",o)}const Je=e.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),Qe=o=>{const{disabled:t,focusVisible:n,focusVisibleClassName:u,classes:r}=o,s={root:["root",t&&"disabled",n&&"focusVisible"]},i=$.composeClasses(s,He,r);return n&&u&&(i.root+=` ${u}`),i},Ze=$.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(o,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Je.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),de=d.forwardRef(function(t,n){const u=$.useDefaultProps({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:p,component:a="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:b=!1,focusVisibleClassName:D,LinkComponent:y="a",onBlur:v,onClick:x,onContextMenu:F,onDragLeave:Y,onFocus:q,onFocusVisible:c,onKeyDown:R,onKeyUp:P,onMouseDown:U,onMouseLeave:S,onMouseUp:I,onTouchEnd:M,onTouchMove:N,onTouchStart:j,tabIndex:E=0,TouchRippleProps:k,touchRippleRef:z,type:O,..._}=u,A=d.useRef(null),C=ze(),he=ue.useForkRef(C.ref,z),[w,K]=d.useState(!1);f&&w&&K(!1),d.useImperativeHandle(r,()=>({focusVisible:()=>{K(!0),A.current.focus()}}),[]);const me=C.shouldMount&&!h&&!f;d.useEffect(()=>{w&&b&&!h&&C.pulsate()},[h,b,w,C]);function V(l,re,ke=g){return H.useEventCallback(ie=>(re&&re(ie),ke||C[l](ie),!0))}const ye=V("start",U),Te=V("stop",F),be=V("stop",Y),Pe=V("stop",I),ge=V("stop",l=>{w&&l.preventDefault(),S&&S(l)}),Re=V("start",j),Me=V("stop",M),xe=V("stop",N),Ee=V("stop",l=>{ae.isFocusVisible(l.target)||K(!1),v&&v(l)},!1),Ce=H.useEventCallback(l=>{A.current||(A.current=l.currentTarget),ae.isFocusVisible(l.target)&&(K(!0),c&&c(l)),q&&q(l)}),ee=()=>{const l=A.current;return a&&a!=="button"&&!(l.tagName==="A"&&l.href)},Ve=H.useEventCallback(l=>{b&&!l.repeat&&w&&l.key===" "&&C.stop(l,()=>{C.start(l)}),l.target===l.currentTarget&&ee()&&l.key===" "&&l.preventDefault(),R&&R(l),l.target===l.currentTarget&&ee()&&l.key==="Enter"&&!f&&(l.preventDefault(),x&&x(l))}),De=H.useEventCallback(l=>{b&&l.key===" "&&w&&!l.defaultPrevented&&C.stop(l,()=>{C.pulsate(l)}),P&&P(l),x&&l.target===l.currentTarget&&ee()&&l.key===" "&&!l.defaultPrevented&&x(l)});let G=a;G==="button"&&(_.href||_.to)&&(G=y);const X={};G==="button"?(X.type=O===void 0?"button":O,X.disabled=f):(!_.href&&!_.to&&(X.role="button"),f&&(X["aria-disabled"]=f));const Ne=ue.useForkRef(n,A),se={...u,centerRipple:s,component:a,disabled:f,disableRipple:h,disableTouchRipple:g,focusRipple:b,tabIndex:E,focusVisible:w},je=Qe(se);return L.jsxs(Ze,{as:G,className:e.clsx(je.root,p),ownerState:se,onBlur:Ee,onClick:x,onContextMenu:Te,onFocus:Ce,onKeyDown:Ve,onKeyUp:De,onMouseDown:ye,onMouseLeave:ge,onMouseUp:Pe,onDragLeave:be,onTouchEnd:Me,onTouchMove:xe,onTouchStart:Re,ref:Ne,tabIndex:f?-1:E,type:O,...X,..._,children:[i,me?L.jsx(fe,{ref:he,center:s,...k}):null]})});process.env.NODE_ENV!=="production"&&(de.propTypes={action:Oe.refType,centerRipple:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:we.elementTypeAcceptingRef,disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,disableTouchRipple:e.PropTypes.bool,focusRipple:e.PropTypes.bool,focusVisibleClassName:e.PropTypes.string,href:e.PropTypes.any,LinkComponent:e.PropTypes.elementType,onBlur:e.PropTypes.func,onClick:e.PropTypes.func,onContextMenu:e.PropTypes.func,onDragLeave:e.PropTypes.func,onFocus:e.PropTypes.func,onFocusVisible:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,onMouseDown:e.PropTypes.func,onMouseLeave:e.PropTypes.func,onMouseUp:e.PropTypes.func,onTouchEnd:e.PropTypes.func,onTouchMove:e.PropTypes.func,onTouchStart:e.PropTypes.func,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),tabIndex:e.PropTypes.number,TouchRippleProps:e.PropTypes.object,touchRippleRef:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.shape({current:e.PropTypes.shape({pulsate:e.PropTypes.func.isRequired,start:e.PropTypes.func.isRequired,stop:e.PropTypes.func.isRequired})})]),type:e.PropTypes.oneOfType([e.PropTypes.oneOf(["button","reset","submit"]),e.PropTypes.string])});exports.ButtonBase=de;exports.TransitionGroup=Z;exports._extends=J;
@@ -1,74 +0,0 @@
1
- import * as d from "react";
2
- import { H as p, I as f, G as u, P as s } from "./generateUtilityClasses-Bssl7BA_.js";
3
- import { jsx as m } from "react/jsx-runtime";
4
- import { s as C, u as y, c as v } from "./DefaultPropsProvider-CvJPQJmL.js";
5
- import { P as b } from "./Paper-BG4Vk_Um.js";
6
- import { c as g } from "./chainPropTypes-D9lkm76m.js";
7
- function h(o) {
8
- return p("MuiCard", o);
9
- }
10
- const x = f("MuiCard", ["root"]), w = (o) => {
11
- const {
12
- classes: e
13
- } = o;
14
- return v({
15
- root: ["root"]
16
- }, h, e);
17
- }, P = C(b, {
18
- name: "MuiCard",
19
- slot: "Root",
20
- overridesResolver: (o, e) => e.root
21
- })({
22
- overflow: "hidden"
23
- }), M = /* @__PURE__ */ d.forwardRef(function(e, r) {
24
- const t = y({
25
- props: e,
26
- name: "MuiCard"
27
- }), {
28
- className: i,
29
- raised: a = !1,
30
- ...c
31
- } = t, n = {
32
- ...t,
33
- raised: a
34
- }, l = w(n);
35
- return /* @__PURE__ */ m(P, {
36
- className: u(l.root, i),
37
- elevation: a ? 8 : void 0,
38
- ref: r,
39
- ownerState: n,
40
- ...c
41
- });
42
- });
43
- process.env.NODE_ENV !== "production" && (M.propTypes = {
44
- // ┌────────────────────────────── Warning ──────────────────────────────┐
45
- // │ These PropTypes are generated from the TypeScript type definitions. │
46
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
47
- // └─────────────────────────────────────────────────────────────────────┘
48
- /**
49
- * The content of the component.
50
- */
51
- children: s.node,
52
- /**
53
- * Override or extend the styles applied to the component.
54
- */
55
- classes: s.object,
56
- /**
57
- * @ignore
58
- */
59
- className: s.string,
60
- /**
61
- * If `true`, the card will use raised styling.
62
- * @default false
63
- */
64
- raised: g(s.bool, (o) => o.raised && o.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
65
- /**
66
- * The system prop that allows defining system overrides as well as additional CSS styles.
67
- */
68
- sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
69
- });
70
- export {
71
- M as C,
72
- x as c,
73
- h as g
74
- };
@@ -1 +0,0 @@
1
- "use strict";const f=require("react"),e=require("./generateUtilityClasses-B_H9HEmg.cjs"),y=require("react/jsx-runtime"),n=require("./DefaultPropsProvider-3KMGupjb.cjs"),P=require("./Paper-Cr56xkCr.cjs"),C=require("./chainPropTypes-CEUi6Jb4.cjs");function T(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const b=T(f);function c(r){return e.generateUtilityClass("MuiCard",r)}const g=e.generateUtilityClasses("MuiCard",["root"]),m=r=>{const{classes:s}=r,t={root:["root"]};return n.composeClasses(t,c,s)},j=n.styled(P.Paper,{name:"MuiCard",slot:"Root",overridesResolver:(r,s)=>s.root})({overflow:"hidden"}),p=b.forwardRef(function(s,t){const o=n.useDefaultProps({props:s,name:"MuiCard"}),{className:l,raised:a=!1,...u}=o,i={...o,raised:a},d=m(i);return y.jsx(j,{className:e.clsx(d.root,l),elevation:a?8:void 0,ref:t,ownerState:i,...u})});process.env.NODE_ENV!=="production"&&(p.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,raised:C.chainPropTypes(e.PropTypes.bool,r=>r.raised&&r.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.Card=p;exports.cardClasses=g;exports.getCardUtilityClass=c;