@cgi-learning-hub/ui 1.5.1 → 1.6.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 (343) hide show
  1. package/dist/Alert-DW8yCR-B.cjs +1 -0
  2. package/dist/{Alert-BfMYnyZX.js → Alert-PmI169Dq.js} +144 -142
  3. package/dist/{Autocomplete-DQyr97ya.js → Autocomplete-BIBR54X2.js} +709 -667
  4. package/dist/Autocomplete-D9hZ2wrR.cjs +6 -0
  5. package/dist/Backdrop-3TL73mAe.cjs +1 -0
  6. package/dist/{Backdrop-B200pms1.js → Backdrop-BxgGvlLM.js} +21 -20
  7. package/dist/Badge-DhyDno9j.cjs +138 -0
  8. package/dist/{ToggleButtonGroup-gxIqbo6a.js → Badge-rX7YUmBc.js} +6487 -4178
  9. package/dist/Box-DYD6q-6M.cjs +1 -0
  10. package/dist/{Box-D3Pi13ta.js → Box-o7Tjjyko.js} +21 -20
  11. package/dist/{Button-D1aKdjIh.js → Button-D974vesA.js} +19 -18
  12. package/dist/Button-y1LmxqGA.cjs +1 -0
  13. package/dist/{ButtonBase-Bncgzjtp.js → ButtonBase-Chb99sDQ.js} +25 -24
  14. package/dist/ButtonBase-Cteo-mSC.cjs +74 -0
  15. package/dist/{CardContent-DyggcxBG.js → CardContent-DaZl2i3G.js} +10 -9
  16. package/dist/CardContent-ji0_AneN.cjs +1 -0
  17. package/dist/Checkbox-XXqW_dbW.cjs +1 -0
  18. package/dist/{Checkbox-DkrWUPYT.js → Checkbox-p-PKpEw_.js} +91 -62
  19. package/dist/Chip-Bpcd3tnL.cjs +1 -0
  20. package/dist/{Chip-Y39z3DS6.js → Chip-CPR3r42q.js} +13 -12
  21. package/dist/{CircularProgress-BDjnnyuL.js → CircularProgress-DVKNRMKq.js} +15 -14
  22. package/dist/CircularProgress-Wqx0-T36.cjs +28 -0
  23. package/dist/{Close-DJDhRwj2.cjs → Close-DyRqry3p.cjs} +1 -1
  24. package/dist/{Close-hx7dlgmZ.js → Close-m-MX3rFn.js} +1 -1
  25. package/dist/{CloseRounded-DapqosK3.cjs → CloseRounded-Bpxbxvyb.cjs} +1 -1
  26. package/dist/{CloseRounded-aZqv6aS-.js → CloseRounded-CjjQdrNy.js} +1 -1
  27. package/dist/CustomTreeItem-DPyfIueW.cjs +3 -0
  28. package/dist/{CustomTreeItem-CgdZ-hEx.js → CustomTreeItem-hIRSCwAW.js} +251 -256
  29. package/dist/{DatePicker-C2ZobNcJ.js → DatePicker-BMzW4v1g.js} +1079 -1081
  30. package/dist/DatePicker-CNhBoaI3.cjs +14 -0
  31. package/dist/DefaultPropsProvider-B1crdkTC.cjs +1 -0
  32. package/dist/{DefaultPropsProvider-Ik4eAJdt.js → DefaultPropsProvider-hFv1J_xl.js} +68 -67
  33. package/dist/{Delete-Cfk3fOW-.js → Delete-9fJbdRit.js} +1 -1
  34. package/dist/{Delete-DDxv1h6V.cjs → Delete-CEX2hq0f.cjs} +1 -1
  35. package/dist/Dialog-B2LKe7ZM.cjs +1 -0
  36. package/dist/{Dialog-Ccvug1yq.js → Dialog-BzsWl6Vl.js} +106 -111
  37. package/dist/{DialogContent-CIMpKm-U.js → DialogContent-B41jvlMn.js} +14 -13
  38. package/dist/DialogContent-BbCu_OEw.cjs +1 -0
  39. package/dist/{DialogTitle-BwTvIaQe.js → DialogTitle-CVvztEM0.js} +22 -21
  40. package/dist/DialogTitle-SwUSpeBT.cjs +1 -0
  41. package/dist/{Divider-C2cBikSL.js → Divider-CJwnMdVg.js} +9 -8
  42. package/dist/Divider-Cshcr5kR.cjs +1 -0
  43. package/dist/{Folder-DEtB13yM.cjs → Folder-7plrMkOp.cjs} +1 -1
  44. package/dist/{Folder-Bnoqtzc6.js → Folder-CutUz0bW.js} +1 -1
  45. package/dist/FormLabel-0LbNeQQU.cjs +2 -0
  46. package/dist/{FormLabel-EkpI8MQr.js → FormLabel-DSi2pGSZ.js} +16 -15
  47. package/dist/{Grow-B_clfUP9.js → Grow-FFFqe81C.js} +5 -5
  48. package/dist/Grow-aEgTOewU.cjs +1 -0
  49. package/dist/IconButton-BKwDNYJl.cjs +2 -0
  50. package/dist/{IconButton-D1mhTuaI.js → IconButton-CgwURB2g.js} +7 -6
  51. package/dist/InputAdornment-C7e-kyf7.cjs +1 -0
  52. package/dist/{InputAdornment-BxB8_tq-.js → InputAdornment-DgWvMLgR.js} +22 -21
  53. package/dist/{InputBase-BQnEIwl1.js → InputBase-DxLqRpcl.js} +263 -256
  54. package/dist/InputBase-pYQWRFK2.cjs +3 -0
  55. package/dist/Link-DUtuCYMx.cjs +1 -0
  56. package/dist/{Link-8ltXgZj7.js → Link-rb-SwfiY.js} +18 -17
  57. package/dist/List-BH_S4Hqm.cjs +1 -0
  58. package/dist/{List-DJsqHOqv.js → List-BjfdkeEI.js} +5 -4
  59. package/dist/{ListItem-BspNcHM_.js → ListItem-B0EiObKw.js} +40 -39
  60. package/dist/ListItem-D33t-hkx.cjs +1 -0
  61. package/dist/ListItemText-B8jlTz59.cjs +2 -0
  62. package/dist/ListItemText-BeyHu1da.js +853 -0
  63. package/dist/Menu-BjrN8rMF.cjs +7 -0
  64. package/dist/{Menu-DPhreDcS.js → Menu-By6cOqEO.js} +407 -336
  65. package/dist/{MenuItem-Fb7iU47J.js → MenuItem-B1FTx8Uo.js} +17 -16
  66. package/dist/MenuItem-Cz_x60jl.cjs +1 -0
  67. package/dist/Modal-DxwlW5NV.cjs +2 -0
  68. package/dist/{Modal-dmMiGSAp.js → Modal-vrLLqk9Y.js} +240 -245
  69. package/dist/{MoreVert-DNeLf2VB.cjs → MoreVert-DC6HBf1h.cjs} +1 -1
  70. package/dist/{MoreVert-BCGFGn8f.js → MoreVert-DJ8sAY3o.js} +1 -1
  71. package/dist/{Paper-CEDxpHWv.js → Paper-984iTz4H.js} +32 -31
  72. package/dist/Paper-Bh9CKUCb.cjs +2 -0
  73. package/dist/{Popper-D5_YIJX6.js → Popper-DfwuvxaQ.js} +11 -10
  74. package/dist/Popper-yO_RaCbM.cjs +4 -0
  75. package/dist/Portal-B5KqLEa0.cjs +1 -0
  76. package/dist/Portal-ChC9wmMZ.js +85 -0
  77. package/dist/{Radio-B4sx0387.js → Radio-BqY-su_F.js} +228 -183
  78. package/dist/Radio-C7zzpRFc.cjs +1 -0
  79. package/dist/{RadioGroup-UStIK_UX.js → RadioGroup-BQvlYFpE.js} +24 -23
  80. package/dist/RadioGroup-BlUWRmLG.cjs +1 -0
  81. package/dist/{Select-CxnCi-3l.js → Select-DZMwqCYA.js} +96 -95
  82. package/dist/Select-Doay7ukI.cjs +3 -0
  83. package/dist/Stack-BVWbOqY_.cjs +1 -0
  84. package/dist/{Stack-CzKIgmIE.js → Stack-CMUWQxQn.js} +63 -107
  85. package/dist/{Switch-D3KweZGQ.js → Switch-Bg4QB4PJ.js} +169 -108
  86. package/dist/Switch-CEfqaD33.cjs +1 -0
  87. package/dist/SwitchBase-DvCITKv8.cjs +1 -0
  88. package/dist/SwitchBase-EDFBMPd7.js +316 -0
  89. package/dist/{Tab-C1r8JXwz.js → Tab-52AkFc9v.js} +599 -537
  90. package/dist/Tab-C6H241Pf.cjs +4 -0
  91. package/dist/{TextField-D-_WjPAW.js → TextField-DG9mRp_m.js} +127 -116
  92. package/dist/TextField-bE2NUKKK.cjs +1 -0
  93. package/dist/{Tooltip-D0bof-68.js → Tooltip-DCgaU2em.js} +20 -19
  94. package/dist/Tooltip-D_w-IJoD.cjs +4 -0
  95. package/dist/Typography-De-21leI.cjs +1 -0
  96. package/dist/{Typography-DBJqhIhB.js → Typography-DwMlN0K5.js} +9 -8
  97. package/dist/{capitalize-DSG2FA7x.js → capitalize-BHFotl9B.js} +1 -1
  98. package/dist/{capitalize-CToVceBw.cjs → capitalize-CKLkSyDO.cjs} +1 -1
  99. package/dist/client-error-CHkavqXs.cjs +1 -0
  100. package/dist/{client-error-B_-qjgAB.js → client-error-D0Ng5oOn.js} +1 -3
  101. package/dist/components/Alert/Alert.cjs.js +1 -1
  102. package/dist/components/Alert/Alert.es.js +3 -3
  103. package/dist/components/Alert/index.cjs.js +1 -1
  104. package/dist/components/Alert/index.es.js +1 -1
  105. package/dist/components/Button/Button.cjs.js +1 -1
  106. package/dist/components/Button/Button.es.js +2 -2
  107. package/dist/components/ColorPicker/ColorPicker.cjs.js +27 -0
  108. package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
  109. package/dist/components/ColorPicker/ColorPicker.es.js +7960 -0
  110. package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +1 -0
  111. package/dist/components/ColorPicker/ColorPickerIcon.d.ts +5 -0
  112. package/dist/components/ColorPicker/ColorPickerIcon.es.js +58 -0
  113. package/dist/components/ColorPicker/index.cjs.js +1 -0
  114. package/dist/components/ColorPicker/index.d.ts +3 -0
  115. package/dist/components/ColorPicker/index.es.js +4 -0
  116. package/dist/components/ColorPicker/styles.cjs.js +1 -0
  117. package/dist/components/ColorPicker/styles.es.js +26 -0
  118. package/dist/components/ColorPicker/types.cjs.js +1 -0
  119. package/dist/components/ColorPicker/types.d.ts +19 -0
  120. package/dist/components/ColorPicker/types.es.js +1 -0
  121. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  122. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  123. package/dist/components/DatePicker/index.cjs.js +1 -1
  124. package/dist/components/DatePicker/index.es.js +1 -1
  125. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  126. package/dist/components/Dialog/Dialog.es.js +2 -2
  127. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  128. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  129. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  130. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  131. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  132. package/dist/components/FileList/FileIcon.es.js +1 -1
  133. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  134. package/dist/components/FileList/FileListItem.es.js +4 -4
  135. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  136. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  137. package/dist/components/Heading/Heading.cjs.js +1 -1
  138. package/dist/components/Heading/Heading.es.js +2 -2
  139. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  140. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  141. package/dist/components/Loader/Loader.cjs.js +1 -1
  142. package/dist/components/Loader/Loader.es.js +1 -1
  143. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  144. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  145. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  146. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  147. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  148. package/dist/components/QueryError/QueryError.es.js +2 -2
  149. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  150. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  151. package/dist/components/ResourceCard/style.cjs.js +1 -1
  152. package/dist/components/ResourceCard/style.es.js +22 -22
  153. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  154. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  155. package/dist/components/TreeView/TreeView.cjs.js +5 -5
  156. package/dist/components/TreeView/TreeView.es.js +15 -13
  157. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  158. package/dist/components/TreeView/components/CustomTreeItem.es.js +4 -3
  159. package/dist/components/TreeView/utils.cjs.js +1 -1
  160. package/dist/components/TreeView/utils.es.js +3 -3
  161. package/dist/components/index.cjs.js +1 -1
  162. package/dist/components/index.d.ts +19 -0
  163. package/dist/components/index.es.js +404 -373
  164. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  165. package/dist/components/stories/Alert.stories.es.js +1 -1
  166. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  167. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  168. package/dist/components/stories/Button.stories.cjs.js +1 -1
  169. package/dist/components/stories/Button.stories.es.js +1 -1
  170. package/dist/components/stories/Card.stories.cjs.js +1 -1
  171. package/dist/components/stories/Card.stories.es.js +2 -2
  172. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  173. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  174. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  175. package/dist/components/stories/Chip.stories.es.js +1 -1
  176. package/dist/components/stories/ColoPicker.stories.cjs.js +1 -0
  177. package/dist/components/stories/ColoPicker.stories.d.ts +6 -0
  178. package/dist/components/stories/ColoPicker.stories.es.js +23 -0
  179. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  180. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  181. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  182. package/dist/components/stories/Dialog.stories.es.js +2 -2
  183. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  184. package/dist/components/stories/Divider.stories.es.js +1 -1
  185. package/dist/components/stories/EmptyState.stories.cjs.js +1 -1
  186. package/dist/components/stories/EmptyState.stories.es.js +1 -1
  187. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  188. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  189. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  190. package/dist/components/stories/Heading.stories.es.js +2 -2
  191. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  192. package/dist/components/stories/IconButton.stories.es.js +2 -2
  193. package/dist/components/stories/Link.stories.cjs.js +1 -1
  194. package/dist/components/stories/Link.stories.es.js +1 -1
  195. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  196. package/dist/components/stories/Menu.stories.es.js +2 -2
  197. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  198. package/dist/components/stories/Paper.stories.es.js +1 -1
  199. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  200. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  201. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  202. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  203. package/dist/components/stories/Select.stories.cjs.js +1 -1
  204. package/dist/components/stories/Select.stories.es.js +3 -3
  205. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  206. package/dist/components/stories/TabList.stories.es.js +1 -1
  207. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  208. package/dist/components/stories/TextField.stories.es.js +1 -1
  209. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  210. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  211. package/dist/components/stories/TreeView.stories.cjs.js +3 -3
  212. package/dist/components/stories/TreeView.stories.es.js +29 -29
  213. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  214. package/dist/components/stories/Typography.stories.es.js +1 -1
  215. package/dist/composeClasses-CJKlIaRn.js +51 -0
  216. package/dist/composeClasses-CWgX5SFD.cjs +1 -0
  217. package/dist/createSvgIcon-BgBODH2F.cjs +1 -0
  218. package/dist/{createSvgIcon-CsMK8tGM.js → createSvgIcon-BlKmtOkV.js} +48 -47
  219. package/dist/{dividerClasses-BtzbOVqV.cjs → dividerClasses-D3gnW6kZ.cjs} +1 -1
  220. package/dist/{dividerClasses-BfxSqqSn.js → dividerClasses-Glz8RJdF.js} +1 -1
  221. package/dist/elementTypeAcceptingRef-BwZv9xBI.cjs +1 -0
  222. package/dist/{elementTypeAcceptingRef-CW5o2Qxo.js → elementTypeAcceptingRef-DOeckaXy.js} +1 -1
  223. package/dist/{extendSxProp-DSA-5JvJ.js → extendSxProp-BouzOuB6.js} +1 -1
  224. package/dist/{extendSxProp-BKP1AeGz.cjs → extendSxProp-Cm-DtZe3.cjs} +1 -1
  225. package/dist/generateUtilityClasses-CMlilM6r.cjs +55 -0
  226. package/dist/generateUtilityClasses-DngCqveO.js +2628 -0
  227. package/dist/getReactElementRef-EVJnBPlV.cjs +1 -0
  228. package/dist/{getReactElementRef-CD3_Stk5.js → getReactElementRef-H8kwrWP1.js} +1 -1
  229. package/dist/hooks/lazySvgImport.cjs.js +1 -1
  230. package/dist/hooks/lazySvgImport.es.js +1 -1
  231. package/dist/index-BzsuDIEl.cjs +1 -0
  232. package/dist/{index-CDLJvERp.js → index-CX0sAlmK.js} +2 -2
  233. package/dist/index-CrINMjCH.cjs +1 -0
  234. package/dist/index-DIyAQH20.cjs +5 -0
  235. package/dist/index-DLnSn8GT.cjs +20 -0
  236. package/dist/{index-JOgYmUF8.js → index-DX2Sl0Ig.js} +1 -1
  237. package/dist/index-Sy88PpwE.js +672 -0
  238. package/dist/{index-CoYVLWJY.js → index-l8yqod25.js} +14 -13
  239. package/dist/index.cjs.js +1 -1
  240. package/dist/index.es.js +404 -373
  241. package/dist/{listItemTextClasses-DePeZNtZ.cjs → listItemTextClasses-BJFgw1ah.cjs} +1 -1
  242. package/dist/{listItemTextClasses-Cy10XsJj.js → listItemTextClasses-BRj19IXv.js} +1 -1
  243. package/dist/{memoTheme-BhhxAcUJ.cjs → memoTheme-BAbn60Cb.cjs} +1 -1
  244. package/dist/{memoTheme-44McxcVZ.js → memoTheme-nmt7i1dS.js} +1 -1
  245. package/dist/mergeSlotProps-BBciKnr4.js +62 -0
  246. package/dist/mergeSlotProps-Z5-o9vSe.cjs +1 -0
  247. package/dist/refType-B_IEJm4x.cjs +1 -0
  248. package/dist/{refType-DsRJ5_Sj.js → refType-Dp7CJc86.js} +1 -1
  249. package/dist/server-error-CqyYyPLN.cjs +1 -0
  250. package/dist/{server-error-DMyaPFs8.js → server-error-CvgIy7ap.js} +1 -3
  251. package/dist/useEventCallback-BxpcFap0.cjs +1 -0
  252. package/dist/useEventCallback-Yoj9nCug.js +15 -0
  253. package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
  254. package/dist/useForkRef-u29GSuCu.js +27 -0
  255. package/dist/useSlot-BDb1lvxu.js +125 -0
  256. package/dist/useSlot-W0PiuVaZ.cjs +1 -0
  257. package/dist/{useSlotProps-CDJdiQpV.js → useSlotProps-B_D8u0j-.js} +2 -2
  258. package/dist/useSlotProps-OhEflPiz.cjs +1 -0
  259. package/dist/useTheme-C59wIJ3-.js +11 -0
  260. package/dist/{useTheme-DpMakc_Y.cjs → useTheme-ClhInrO2.cjs} +1 -1
  261. package/dist/{useTheme-CCi6a5Vl.cjs → useTheme-CqYtLDbs.cjs} +1 -1
  262. package/dist/{useTheme-C2OE_AnH.js → useTheme-D9cVynB-.js} +1 -1
  263. package/dist/useThemeProps-BFQ8ndnj.js +17 -0
  264. package/dist/{useThemeProps-DQFApaJ_.cjs → useThemeProps-DQOn-ezC.cjs} +1 -1
  265. package/dist/useThemeProps-DYpozGhe.cjs +1 -0
  266. package/dist/{useThemeProps-ClM1OENH.js → useThemeProps-ggw56DH-.js} +2 -2
  267. package/dist/{utils-DFLaK7Ad.js → utils-BQenyzDz.js} +1 -1
  268. package/dist/utils-ByXw_ZY1.cjs +1 -0
  269. package/dist/warning-C8W811fV.js +11 -0
  270. package/dist/warning-DMUNDgRg.cjs +2 -0
  271. package/package.json +12 -10
  272. package/dist/Alert-Dg5u5Z7d.cjs +0 -1
  273. package/dist/Autocomplete-3xshJ4m_.cjs +0 -6
  274. package/dist/Backdrop-BrTs3LxC.cjs +0 -1
  275. package/dist/Box-CFuWIdLg.cjs +0 -1
  276. package/dist/Button-C7tsSPXV.cjs +0 -1
  277. package/dist/ButtonBase-CBFRgTBs.cjs +0 -74
  278. package/dist/CardContent-BRUkl8hU.cjs +0 -1
  279. package/dist/Checkbox-C_wSNEHD.cjs +0 -1
  280. package/dist/Chip-DUeBMcO4.cjs +0 -1
  281. package/dist/CircularProgress-DdHpo4Bf.cjs +0 -28
  282. package/dist/CustomTreeItem-9kBuTFO8.cjs +0 -4
  283. package/dist/DatePicker-BYPJypQT.cjs +0 -14
  284. package/dist/DefaultPropsProvider-B6DqRWnX.cjs +0 -1
  285. package/dist/Dialog-DOXpPT7S.cjs +0 -1
  286. package/dist/DialogContent-BoIE95Tg.cjs +0 -1
  287. package/dist/DialogTitle-B_am69Lr.cjs +0 -1
  288. package/dist/Divider-Nyl7rx-c.cjs +0 -1
  289. package/dist/FormLabel-D4O160ND.cjs +0 -2
  290. package/dist/Grow-DKA2Mfhu.cjs +0 -1
  291. package/dist/IconButton-CGfKAsNI.cjs +0 -2
  292. package/dist/InputAdornment-BOcB8UIi.cjs +0 -1
  293. package/dist/InputBase-BIf-xtMJ.cjs +0 -3
  294. package/dist/Link-CS0qbKjo.cjs +0 -1
  295. package/dist/List-T5dKKWkc.cjs +0 -1
  296. package/dist/ListItem-BN7OXyEP.cjs +0 -1
  297. package/dist/ListItemText-6gXRtF3r.cjs +0 -1
  298. package/dist/ListItemText-afV0BrJL.js +0 -928
  299. package/dist/Menu-D6dHPVP_.cjs +0 -7
  300. package/dist/MenuItem-DOVsV_vI.cjs +0 -1
  301. package/dist/Modal-B8xPmNJd.cjs +0 -2
  302. package/dist/Paper-owda8LtM.cjs +0 -2
  303. package/dist/Popper-DMGJYlm7.cjs +0 -4
  304. package/dist/Portal-BKVc0iys.js +0 -81
  305. package/dist/Portal-CgaP8O8B.cjs +0 -1
  306. package/dist/Radio-OUfsD89D.cjs +0 -1
  307. package/dist/RadioGroup-Cr_IFflA.cjs +0 -1
  308. package/dist/Select-CUlunaOr.cjs +0 -3
  309. package/dist/Stack-D5_1ZBcn.cjs +0 -1
  310. package/dist/Switch-DpdnFebj.cjs +0 -1
  311. package/dist/SwitchBase-BsP35Aas.js +0 -262
  312. package/dist/SwitchBase-DMGf52a3.cjs +0 -1
  313. package/dist/Tab-DZvAf79O.cjs +0 -4
  314. package/dist/TextField-C0KpyS6X.cjs +0 -1
  315. package/dist/ToggleButtonGroup-UNGSwlQe.cjs +0 -137
  316. package/dist/Tooltip-BljbhP1z.cjs +0 -4
  317. package/dist/Typography-yvyJLNFu.cjs +0 -1
  318. package/dist/client-error-BUtdld5f.cjs +0 -1
  319. package/dist/createSvgIcon-EiiLl5-A.cjs +0 -1
  320. package/dist/elementTypeAcceptingRef-D1T31ZXC.cjs +0 -1
  321. package/dist/generateUtilityClasses-BpRGbQmY.js +0 -3299
  322. package/dist/generateUtilityClasses-q4qbJjmd.cjs +0 -75
  323. package/dist/getReactElementRef-yvpNgSpm.cjs +0 -1
  324. package/dist/index-Bt7ukCXi.cjs +0 -5
  325. package/dist/index-DCpyECL4.cjs +0 -1
  326. package/dist/index-baZm35zL.cjs +0 -1
  327. package/dist/refType-DDdajp2p.cjs +0 -1
  328. package/dist/resolveComponentProps-BTEnlM7q.cjs +0 -1
  329. package/dist/resolveComponentProps-BZQ1jKzF.js +0 -80
  330. package/dist/server-error-CeAtUo4S.cjs +0 -1
  331. package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
  332. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  333. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  334. package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
  335. package/dist/useForkRef-CTI33h-3.cjs +0 -1
  336. package/dist/useForkRef-C_4o__cU.js +0 -15
  337. package/dist/useSlot-CSTfsYPJ.cjs +0 -1
  338. package/dist/useSlot-CYOxsM2I.js +0 -48
  339. package/dist/useSlotProps-DTgWZk99.cjs +0 -1
  340. package/dist/useTheme-BDL2rp7a.js +0 -11
  341. package/dist/useThemeProps-BnN3o4c1.cjs +0 -1
  342. package/dist/useThemeProps-DjkGUV8r.js +0 -17
  343. package/dist/utils-Cn6wZNus.cjs +0 -1
@@ -1,928 +0,0 @@
1
- import * as O from "react";
2
- import { G as H, H as K, I as W, U as L, V as D, P as o, n as P } from "./generateUtilityClasses-BpRGbQmY.js";
3
- import { u as U, s as z, c as F, r as J } from "./DefaultPropsProvider-Ik4eAJdt.js";
4
- import { u as Q } from "./useTheme-BDL2rp7a.js";
5
- import { jsx as w, jsxs as X } from "react/jsx-runtime";
6
- import { e as Y } from "./extendSxProp-DSA-5JvJ.js";
7
- import { m as ee } from "./memoTheme-44McxcVZ.js";
8
- import { a as V } from "./List-DJsqHOqv.js";
9
- import { b as oe, a as C } from "./ListItem-BspNcHM_.js";
10
- import { u as te } from "./useEnhancedEffect-CJGo-L3B.js";
11
- import { u as re } from "./useForkRef-C_4o__cU.js";
12
- import { B as ne } from "./ButtonBase-Bncgzjtp.js";
13
- import { g as se, l as E } from "./listItemTextClasses-Cy10XsJj.js";
14
- import { u as _ } from "./useSlot-CYOxsM2I.js";
15
- import { T as B, t as q } from "./Typography-DBJqhIhB.js";
16
- function ae(e, t) {
17
- if (process.env.NODE_ENV === "production")
18
- return () => null;
19
- const r = t ? {
20
- ...t.propTypes
21
- } : null;
22
- return (n) => (a, i, p, l, c, ...d) => {
23
- const u = c || i, f = r == null ? void 0 : r[u];
24
- if (f) {
25
- const m = f(a, i, p, l, c, ...d);
26
- if (m)
27
- return m;
28
- }
29
- return typeof a[i] < "u" && !a[n] ? new Error(`The prop \`${u}\` of \`${e}\` can only be used together with the \`${n}\` prop.`) : null;
30
- };
31
- }
32
- const M = /* @__PURE__ */ O.createContext();
33
- process.env.NODE_ENV !== "production" && (M.displayName = "GridContext");
34
- function ie(e) {
35
- return K("MuiGrid", e);
36
- }
37
- const ce = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], le = ["column-reverse", "column", "row-reverse", "row"], pe = ["nowrap", "wrap-reverse", "wrap"], S = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], N = H("MuiGrid", [
38
- "root",
39
- "container",
40
- "item",
41
- "zeroMinWidth",
42
- // spacings
43
- ...ce.map((e) => `spacing-xs-${e}`),
44
- // direction values
45
- ...le.map((e) => `direction-xs-${e}`),
46
- // wrap values
47
- ...pe.map((e) => `wrap-xs-${e}`),
48
- // grid sizes for all breakpoints
49
- ...S.map((e) => `grid-xs-${e}`),
50
- ...S.map((e) => `grid-sm-${e}`),
51
- ...S.map((e) => `grid-md-${e}`),
52
- ...S.map((e) => `grid-lg-${e}`),
53
- ...S.map((e) => `grid-xl-${e}`)
54
- ]);
55
- function de({
56
- theme: e,
57
- ownerState: t
58
- }) {
59
- let r;
60
- return e.breakpoints.keys.reduce((s, n) => {
61
- let a = {};
62
- if (t[n] && (r = t[n]), !r)
63
- return s;
64
- if (r === !0)
65
- a = {
66
- flexBasis: 0,
67
- flexGrow: 1,
68
- maxWidth: "100%"
69
- };
70
- else if (r === "auto")
71
- a = {
72
- flexBasis: "auto",
73
- flexGrow: 0,
74
- flexShrink: 0,
75
- maxWidth: "none",
76
- width: "auto"
77
- };
78
- else {
79
- const i = L({
80
- values: t.columns,
81
- breakpoints: e.breakpoints.values
82
- }), p = typeof i == "object" ? i[n] : i;
83
- if (p == null)
84
- return s;
85
- const l = `${Math.round(r / p * 1e8) / 1e6}%`;
86
- let c = {};
87
- if (t.container && t.item && t.columnSpacing !== 0) {
88
- const d = e.spacing(t.columnSpacing);
89
- if (d !== "0px") {
90
- const u = `calc(${l} + ${d})`;
91
- c = {
92
- flexBasis: u,
93
- maxWidth: u
94
- };
95
- }
96
- }
97
- a = {
98
- flexBasis: l,
99
- flexGrow: 0,
100
- maxWidth: l,
101
- ...c
102
- };
103
- }
104
- return e.breakpoints.values[n] === 0 ? Object.assign(s, a) : s[e.breakpoints.up(n)] = a, s;
105
- }, {});
106
- }
107
- function ue({
108
- theme: e,
109
- ownerState: t
110
- }) {
111
- const r = L({
112
- values: t.direction,
113
- breakpoints: e.breakpoints.values
114
- });
115
- return D({
116
- theme: e
117
- }, r, (s) => {
118
- const n = {
119
- flexDirection: s
120
- };
121
- return s.startsWith("column") && (n[`& > .${N.item}`] = {
122
- maxWidth: "none"
123
- }), n;
124
- });
125
- }
126
- function A({
127
- breakpoints: e,
128
- values: t
129
- }) {
130
- let r = "";
131
- Object.keys(t).forEach((n) => {
132
- r === "" && t[n] !== 0 && (r = n);
133
- });
134
- const s = Object.keys(e).sort((n, a) => e[n] - e[a]);
135
- return s.slice(0, s.indexOf(r));
136
- }
137
- function fe({
138
- theme: e,
139
- ownerState: t
140
- }) {
141
- const {
142
- container: r,
143
- rowSpacing: s
144
- } = t;
145
- let n = {};
146
- if (r && s !== 0) {
147
- const a = L({
148
- values: s,
149
- breakpoints: e.breakpoints.values
150
- });
151
- let i;
152
- typeof a == "object" && (i = A({
153
- breakpoints: e.breakpoints.values,
154
- values: a
155
- })), n = D({
156
- theme: e
157
- }, a, (p, l) => {
158
- const c = e.spacing(p);
159
- return c !== "0px" ? {
160
- marginTop: `calc(-1 * ${c})`,
161
- [`& > .${N.item}`]: {
162
- paddingTop: c
163
- }
164
- } : i != null && i.includes(l) ? {} : {
165
- marginTop: 0,
166
- [`& > .${N.item}`]: {
167
- paddingTop: 0
168
- }
169
- };
170
- });
171
- }
172
- return n;
173
- }
174
- function me({
175
- theme: e,
176
- ownerState: t
177
- }) {
178
- const {
179
- container: r,
180
- columnSpacing: s
181
- } = t;
182
- let n = {};
183
- if (r && s !== 0) {
184
- const a = L({
185
- values: s,
186
- breakpoints: e.breakpoints.values
187
- });
188
- let i;
189
- typeof a == "object" && (i = A({
190
- breakpoints: e.breakpoints.values,
191
- values: a
192
- })), n = D({
193
- theme: e
194
- }, a, (p, l) => {
195
- const c = e.spacing(p);
196
- if (c !== "0px") {
197
- const d = `calc(-1 * ${c})`;
198
- return {
199
- width: `calc(100% + ${c})`,
200
- marginLeft: d,
201
- [`& > .${N.item}`]: {
202
- paddingLeft: c
203
- }
204
- };
205
- }
206
- return i != null && i.includes(l) ? {} : {
207
- width: "100%",
208
- marginLeft: 0,
209
- [`& > .${N.item}`]: {
210
- paddingLeft: 0
211
- }
212
- };
213
- });
214
- }
215
- return n;
216
- }
217
- function ye(e, t, r = {}) {
218
- if (!e || e <= 0)
219
- return [];
220
- if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
221
- return [r[`spacing-xs-${String(e)}`]];
222
- const s = [];
223
- return t.forEach((n) => {
224
- const a = e[n];
225
- Number(a) > 0 && s.push(r[`spacing-${n}-${String(a)}`]);
226
- }), s;
227
- }
228
- const ge = z("div", {
229
- name: "MuiGrid",
230
- slot: "Root",
231
- overridesResolver: (e, t) => {
232
- const {
233
- ownerState: r
234
- } = e, {
235
- container: s,
236
- direction: n,
237
- item: a,
238
- spacing: i,
239
- wrap: p,
240
- zeroMinWidth: l,
241
- breakpoints: c
242
- } = r;
243
- let d = [];
244
- s && (d = ye(i, c, t));
245
- const u = [];
246
- return c.forEach((f) => {
247
- const m = r[f];
248
- m && u.push(t[`grid-${f}-${String(m)}`]);
249
- }), [t.root, s && t.container, a && t.item, l && t.zeroMinWidth, ...d, n !== "row" && t[`direction-xs-${String(n)}`], p !== "wrap" && t[`wrap-xs-${String(p)}`], ...u];
250
- }
251
- })(
252
- // FIXME(romgrk): Can't use memoTheme here
253
- ({
254
- ownerState: e
255
- }) => ({
256
- boxSizing: "border-box",
257
- ...e.container && {
258
- display: "flex",
259
- flexWrap: "wrap",
260
- width: "100%"
261
- },
262
- ...e.item && {
263
- margin: 0
264
- // For instance, it's useful when used with a `figure` element.
265
- },
266
- ...e.zeroMinWidth && {
267
- minWidth: 0
268
- },
269
- ...e.wrap !== "wrap" && {
270
- flexWrap: e.wrap
271
- }
272
- }),
273
- ue,
274
- fe,
275
- me,
276
- de
277
- );
278
- function be(e, t) {
279
- if (!e || e <= 0)
280
- return [];
281
- if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
282
- return [`spacing-xs-${String(e)}`];
283
- const r = [];
284
- return t.forEach((s) => {
285
- const n = e[s];
286
- if (Number(n) > 0) {
287
- const a = `spacing-${s}-${String(n)}`;
288
- r.push(a);
289
- }
290
- }), r;
291
- }
292
- const ve = (e) => {
293
- const {
294
- classes: t,
295
- container: r,
296
- direction: s,
297
- item: n,
298
- spacing: a,
299
- wrap: i,
300
- zeroMinWidth: p,
301
- breakpoints: l
302
- } = e;
303
- let c = [];
304
- r && (c = be(a, l));
305
- const d = [];
306
- l.forEach((f) => {
307
- const m = e[f];
308
- m && d.push(`grid-${f}-${String(m)}`);
309
- });
310
- const u = {
311
- root: ["root", r && "container", n && "item", p && "zeroMinWidth", ...c, s !== "row" && `direction-xs-${String(s)}`, i !== "wrap" && `wrap-xs-${String(i)}`, ...d]
312
- };
313
- return F(u, ie, t);
314
- }, R = /* @__PURE__ */ O.forwardRef(function(t, r) {
315
- const s = U({
316
- props: t,
317
- name: "MuiGrid"
318
- }), {
319
- breakpoints: n
320
- } = Q(), a = Y(s), {
321
- className: i,
322
- columns: p,
323
- columnSpacing: l,
324
- component: c = "div",
325
- container: d = !1,
326
- direction: u = "row",
327
- item: f = !1,
328
- rowSpacing: m,
329
- spacing: g = 0,
330
- wrap: T = "wrap",
331
- zeroMinWidth: b = !1,
332
- ...y
333
- } = a, v = m || g, x = l || g, h = O.useContext(M), I = d ? p || 12 : h, $ = {}, k = {
334
- ...y
335
- };
336
- n.keys.forEach((G) => {
337
- y[G] != null && ($[G] = y[G], delete k[G]);
338
- });
339
- const j = {
340
- ...a,
341
- columns: I,
342
- container: d,
343
- direction: u,
344
- item: f,
345
- rowSpacing: v,
346
- columnSpacing: x,
347
- wrap: T,
348
- zeroMinWidth: b,
349
- spacing: g,
350
- ...$,
351
- breakpoints: n.keys
352
- }, Z = ve(j);
353
- return /* @__PURE__ */ w(M.Provider, {
354
- value: I,
355
- children: /* @__PURE__ */ w(ge, {
356
- ownerState: j,
357
- className: W(Z.root, i),
358
- as: c,
359
- ref: r,
360
- ...k
361
- })
362
- });
363
- });
364
- process.env.NODE_ENV !== "production" && (R.propTypes = {
365
- // ┌────────────────────────────── Warning ──────────────────────────────┐
366
- // │ These PropTypes are generated from the TypeScript type definitions. │
367
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
368
- // └─────────────────────────────────────────────────────────────────────┘
369
- /**
370
- * The content of the component.
371
- */
372
- children: o.node,
373
- /**
374
- * Override or extend the styles applied to the component.
375
- */
376
- classes: o.object,
377
- /**
378
- * @ignore
379
- */
380
- className: o.string,
381
- /**
382
- * The number of columns.
383
- * @default 12
384
- */
385
- columns: o.oneOfType([o.arrayOf(o.number), o.number, o.object]),
386
- /**
387
- * Defines the horizontal space between the type `item` components.
388
- * It overrides the value of the `spacing` prop.
389
- */
390
- columnSpacing: o.oneOfType([o.arrayOf(o.oneOfType([o.number, o.string])), o.number, o.object, o.string]),
391
- /**
392
- * The component used for the root node.
393
- * Either a string to use a HTML element or a component.
394
- */
395
- component: o.elementType,
396
- /**
397
- * If `true`, the component will have the flex *container* behavior.
398
- * You should be wrapping *items* with a *container*.
399
- * @default false
400
- */
401
- container: o.bool,
402
- /**
403
- * Defines the `flex-direction` style property.
404
- * It is applied for all screen sizes.
405
- * @default 'row'
406
- */
407
- direction: o.oneOfType([o.oneOf(["column-reverse", "column", "row-reverse", "row"]), o.arrayOf(o.oneOf(["column-reverse", "column", "row-reverse", "row"])), o.object]),
408
- /**
409
- * If `true`, the component will have the flex *item* behavior.
410
- * You should be wrapping *items* with a *container*.
411
- * @default false
412
- */
413
- item: o.bool,
414
- /**
415
- * If a number, it sets the number of columns the grid item uses.
416
- * It can't be greater than the total number of columns of the container (12 by default).
417
- * If 'auto', the grid item's width matches its content.
418
- * If false, the prop is ignored.
419
- * If true, the grid item's width grows to use the space available in the grid container.
420
- * The value is applied for the `lg` breakpoint and wider screens if not overridden.
421
- * @default false
422
- */
423
- lg: o.oneOfType([o.oneOf(["auto"]), o.number, o.bool]),
424
- /**
425
- * If a number, it sets the number of columns the grid item uses.
426
- * It can't be greater than the total number of columns of the container (12 by default).
427
- * If 'auto', the grid item's width matches its content.
428
- * If false, the prop is ignored.
429
- * If true, the grid item's width grows to use the space available in the grid container.
430
- * The value is applied for the `md` breakpoint and wider screens if not overridden.
431
- * @default false
432
- */
433
- md: o.oneOfType([o.oneOf(["auto"]), o.number, o.bool]),
434
- /**
435
- * Defines the vertical space between the type `item` components.
436
- * It overrides the value of the `spacing` prop.
437
- */
438
- rowSpacing: o.oneOfType([o.arrayOf(o.oneOfType([o.number, o.string])), o.number, o.object, o.string]),
439
- /**
440
- * If a number, it sets the number of columns the grid item uses.
441
- * It can't be greater than the total number of columns of the container (12 by default).
442
- * If 'auto', the grid item's width matches its content.
443
- * If false, the prop is ignored.
444
- * If true, the grid item's width grows to use the space available in the grid container.
445
- * The value is applied for the `sm` breakpoint and wider screens if not overridden.
446
- * @default false
447
- */
448
- sm: o.oneOfType([o.oneOf(["auto"]), o.number, o.bool]),
449
- /**
450
- * Defines the space between the type `item` components.
451
- * It can only be used on a type `container` component.
452
- * @default 0
453
- */
454
- spacing: o.oneOfType([o.arrayOf(o.oneOfType([o.number, o.string])), o.number, o.object, o.string]),
455
- /**
456
- * The system prop that allows defining system overrides as well as additional CSS styles.
457
- */
458
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
459
- /**
460
- * Defines the `flex-wrap` style property.
461
- * It's applied for all screen sizes.
462
- * @default 'wrap'
463
- */
464
- wrap: o.oneOf(["nowrap", "wrap-reverse", "wrap"]),
465
- /**
466
- * If a number, it sets the number of columns the grid item uses.
467
- * It can't be greater than the total number of columns of the container (12 by default).
468
- * If 'auto', the grid item's width matches its content.
469
- * If false, the prop is ignored.
470
- * If true, the grid item's width grows to use the space available in the grid container.
471
- * The value is applied for the `xl` breakpoint and wider screens if not overridden.
472
- * @default false
473
- */
474
- xl: o.oneOfType([o.oneOf(["auto"]), o.number, o.bool]),
475
- /**
476
- * If a number, it sets the number of columns the grid item uses.
477
- * It can't be greater than the total number of columns of the container (12 by default).
478
- * If 'auto', the grid item's width matches its content.
479
- * If false, the prop is ignored.
480
- * If true, the grid item's width grows to use the space available in the grid container.
481
- * The value is applied for all the screen sizes with the lowest priority.
482
- * @default false
483
- */
484
- xs: o.oneOfType([o.oneOf(["auto"]), o.number, o.bool]),
485
- /**
486
- * If `true`, it sets `min-width: 0` on the item.
487
- * Refer to the limitations section of the documentation to better understand the use case.
488
- * @default false
489
- */
490
- zeroMinWidth: o.bool
491
- });
492
- if (process.env.NODE_ENV !== "production") {
493
- const e = ae("Grid", R);
494
- R.propTypes = {
495
- // eslint-disable-next-line react/forbid-foreign-prop-types
496
- ...R.propTypes,
497
- direction: e("container"),
498
- lg: e("item"),
499
- md: e("item"),
500
- sm: e("item"),
501
- spacing: e("container"),
502
- wrap: e("container"),
503
- xs: e("item"),
504
- zeroMinWidth: e("item")
505
- };
506
- }
507
- const xe = (e, t) => {
508
- const {
509
- ownerState: r
510
- } = e;
511
- return [t.root, r.dense && t.dense, r.alignItems === "flex-start" && t.alignItemsFlexStart, r.divider && t.divider, !r.disableGutters && t.gutters];
512
- }, Oe = (e) => {
513
- const {
514
- alignItems: t,
515
- classes: r,
516
- dense: s,
517
- disabled: n,
518
- disableGutters: a,
519
- divider: i,
520
- selected: p
521
- } = e, c = F({
522
- root: ["root", s && "dense", !a && "gutters", i && "divider", n && "disabled", t === "flex-start" && "alignItemsFlexStart", p && "selected"]
523
- }, oe, r);
524
- return {
525
- ...r,
526
- ...c
527
- };
528
- }, Te = z(ne, {
529
- shouldForwardProp: (e) => J(e) || e === "classes",
530
- name: "MuiListItemButton",
531
- slot: "Root",
532
- overridesResolver: xe
533
- })(ee(({
534
- theme: e
535
- }) => ({
536
- display: "flex",
537
- flexGrow: 1,
538
- justifyContent: "flex-start",
539
- alignItems: "center",
540
- position: "relative",
541
- textDecoration: "none",
542
- minWidth: 0,
543
- boxSizing: "border-box",
544
- textAlign: "left",
545
- paddingTop: 8,
546
- paddingBottom: 8,
547
- transition: e.transitions.create("background-color", {
548
- duration: e.transitions.duration.shortest
549
- }),
550
- "&:hover": {
551
- textDecoration: "none",
552
- backgroundColor: (e.vars || e).palette.action.hover,
553
- // Reset on touch devices, it doesn't add specificity
554
- "@media (hover: none)": {
555
- backgroundColor: "transparent"
556
- }
557
- },
558
- [`&.${C.selected}`]: {
559
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : P(e.palette.primary.main, e.palette.action.selectedOpacity),
560
- [`&.${C.focusVisible}`]: {
561
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : P(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
562
- }
563
- },
564
- [`&.${C.selected}:hover`]: {
565
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : P(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
566
- // Reset on touch devices, it doesn't add specificity
567
- "@media (hover: none)": {
568
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : P(e.palette.primary.main, e.palette.action.selectedOpacity)
569
- }
570
- },
571
- [`&.${C.focusVisible}`]: {
572
- backgroundColor: (e.vars || e).palette.action.focus
573
- },
574
- [`&.${C.disabled}`]: {
575
- opacity: (e.vars || e).palette.action.disabledOpacity
576
- },
577
- variants: [{
578
- props: ({
579
- ownerState: t
580
- }) => t.divider,
581
- style: {
582
- borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
583
- backgroundClip: "padding-box"
584
- }
585
- }, {
586
- props: {
587
- alignItems: "flex-start"
588
- },
589
- style: {
590
- alignItems: "flex-start"
591
- }
592
- }, {
593
- props: ({
594
- ownerState: t
595
- }) => !t.disableGutters,
596
- style: {
597
- paddingLeft: 16,
598
- paddingRight: 16
599
- }
600
- }, {
601
- props: ({
602
- ownerState: t
603
- }) => t.dense,
604
- style: {
605
- paddingTop: 4,
606
- paddingBottom: 4
607
- }
608
- }]
609
- }))), $e = /* @__PURE__ */ O.forwardRef(function(t, r) {
610
- const s = U({
611
- props: t,
612
- name: "MuiListItemButton"
613
- }), {
614
- alignItems: n = "center",
615
- autoFocus: a = !1,
616
- component: i = "div",
617
- children: p,
618
- dense: l = !1,
619
- disableGutters: c = !1,
620
- divider: d = !1,
621
- focusVisibleClassName: u,
622
- selected: f = !1,
623
- className: m,
624
- ...g
625
- } = s, T = O.useContext(V), b = O.useMemo(() => ({
626
- dense: l || T.dense || !1,
627
- alignItems: n,
628
- disableGutters: c
629
- }), [n, T.dense, l, c]), y = O.useRef(null);
630
- te(() => {
631
- a && (y.current ? y.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
632
- }, [a]);
633
- const v = {
634
- ...s,
635
- alignItems: n,
636
- dense: b.dense,
637
- disableGutters: c,
638
- divider: d,
639
- selected: f
640
- }, x = Oe(v), h = re(y, r);
641
- return /* @__PURE__ */ w(V.Provider, {
642
- value: b,
643
- children: /* @__PURE__ */ w(Te, {
644
- ref: h,
645
- href: g.href || g.to,
646
- component: (g.href || g.to) && i === "div" ? "button" : i,
647
- focusVisibleClassName: W(x.focusVisible, u),
648
- ownerState: v,
649
- className: W(x.root, m),
650
- ...g,
651
- classes: x,
652
- children: p
653
- })
654
- });
655
- });
656
- process.env.NODE_ENV !== "production" && ($e.propTypes = {
657
- // ┌────────────────────────────── Warning ──────────────────────────────┐
658
- // │ These PropTypes are generated from the TypeScript type definitions. │
659
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
660
- // └─────────────────────────────────────────────────────────────────────┘
661
- /**
662
- * Defines the `align-items` style property.
663
- * @default 'center'
664
- */
665
- alignItems: o.oneOf(["center", "flex-start"]),
666
- /**
667
- * If `true`, the list item is focused during the first mount.
668
- * Focus will also be triggered if the value changes from false to true.
669
- * @default false
670
- */
671
- autoFocus: o.bool,
672
- /**
673
- * The content of the component if a `ListItemSecondaryAction` is used it must
674
- * be the last child.
675
- */
676
- children: o.node,
677
- /**
678
- * Override or extend the styles applied to the component.
679
- */
680
- classes: o.object,
681
- /**
682
- * @ignore
683
- */
684
- className: o.string,
685
- /**
686
- * The component used for the root node.
687
- * Either a string to use a HTML element or a component.
688
- */
689
- component: o.elementType,
690
- /**
691
- * If `true`, compact vertical padding designed for keyboard and mouse input is used.
692
- * The prop defaults to the value inherited from the parent List component.
693
- * @default false
694
- */
695
- dense: o.bool,
696
- /**
697
- * If `true`, the component is disabled.
698
- * @default false
699
- */
700
- disabled: o.bool,
701
- /**
702
- * If `true`, the left and right padding is removed.
703
- * @default false
704
- */
705
- disableGutters: o.bool,
706
- /**
707
- * If `true`, a 1px light border is added to the bottom of the list item.
708
- * @default false
709
- */
710
- divider: o.bool,
711
- /**
712
- * This prop can help identify which element has keyboard focus.
713
- * The class name will be applied when the element gains the focus through keyboard interaction.
714
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
715
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
716
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
717
- * if needed.
718
- */
719
- focusVisibleClassName: o.string,
720
- /**
721
- * @ignore
722
- */
723
- href: o.string,
724
- /**
725
- * Use to apply selected styling.
726
- * @default false
727
- */
728
- selected: o.bool,
729
- /**
730
- * The system prop that allows defining system overrides as well as additional CSS styles.
731
- */
732
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
733
- });
734
- const he = (e) => {
735
- const {
736
- classes: t,
737
- inset: r,
738
- primary: s,
739
- secondary: n,
740
- dense: a
741
- } = e;
742
- return F({
743
- root: ["root", r && "inset", a && "dense", s && n && "multiline"],
744
- primary: ["primary"],
745
- secondary: ["secondary"]
746
- }, se, t);
747
- }, we = z("div", {
748
- name: "MuiListItemText",
749
- slot: "Root",
750
- overridesResolver: (e, t) => {
751
- const {
752
- ownerState: r
753
- } = e;
754
- return [{
755
- [`& .${E.primary}`]: t.primary
756
- }, {
757
- [`& .${E.secondary}`]: t.secondary
758
- }, t.root, r.inset && t.inset, r.primary && r.secondary && t.multiline, r.dense && t.dense];
759
- }
760
- })({
761
- flex: "1 1 auto",
762
- minWidth: 0,
763
- marginTop: 4,
764
- marginBottom: 4,
765
- [`.${q.root}:where(& .${E.primary})`]: {
766
- display: "block"
767
- },
768
- [`.${q.root}:where(& .${E.secondary})`]: {
769
- display: "block"
770
- },
771
- variants: [{
772
- props: ({
773
- ownerState: e
774
- }) => e.primary && e.secondary,
775
- style: {
776
- marginTop: 6,
777
- marginBottom: 6
778
- }
779
- }, {
780
- props: ({
781
- ownerState: e
782
- }) => e.inset,
783
- style: {
784
- paddingLeft: 56
785
- }
786
- }]
787
- }), Ce = /* @__PURE__ */ O.forwardRef(function(t, r) {
788
- const s = U({
789
- props: t,
790
- name: "MuiListItemText"
791
- }), {
792
- children: n,
793
- className: a,
794
- disableTypography: i = !1,
795
- inset: p = !1,
796
- primary: l,
797
- primaryTypographyProps: c,
798
- secondary: d,
799
- secondaryTypographyProps: u,
800
- slots: f = {},
801
- slotProps: m = {},
802
- ...g
803
- } = s, {
804
- dense: T
805
- } = O.useContext(V);
806
- let b = l ?? n, y = d;
807
- const v = {
808
- ...s,
809
- disableTypography: i,
810
- inset: p,
811
- primary: !!b,
812
- secondary: !!y,
813
- dense: T
814
- }, x = he(v), h = {
815
- slots: f,
816
- slotProps: {
817
- primary: c,
818
- secondary: u,
819
- ...m
820
- }
821
- }, [I, $] = _("primary", {
822
- className: x.primary,
823
- elementType: B,
824
- externalForwardedProps: h,
825
- ownerState: v
826
- }), [k, j] = _("secondary", {
827
- className: x.secondary,
828
- elementType: B,
829
- externalForwardedProps: h,
830
- ownerState: v
831
- });
832
- return b != null && b.type !== B && !i && (b = /* @__PURE__ */ w(I, {
833
- variant: T ? "body2" : "body1",
834
- component: $ != null && $.variant ? void 0 : "span",
835
- ...$,
836
- children: b
837
- })), y != null && y.type !== B && !i && (y = /* @__PURE__ */ w(k, {
838
- variant: "body2",
839
- color: "textSecondary",
840
- ...j,
841
- children: y
842
- })), /* @__PURE__ */ X(we, {
843
- className: W(x.root, a),
844
- ownerState: v,
845
- ref: r,
846
- ...g,
847
- children: [b, y]
848
- });
849
- });
850
- process.env.NODE_ENV !== "production" && (Ce.propTypes = {
851
- // ┌────────────────────────────── Warning ──────────────────────────────┐
852
- // │ These PropTypes are generated from the TypeScript type definitions. │
853
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
854
- // └─────────────────────────────────────────────────────────────────────┘
855
- /**
856
- * Alias for the `primary` prop.
857
- */
858
- children: o.node,
859
- /**
860
- * Override or extend the styles applied to the component.
861
- */
862
- classes: o.object,
863
- /**
864
- * @ignore
865
- */
866
- className: o.string,
867
- /**
868
- * If `true`, the children won't be wrapped by a Typography component.
869
- * This can be useful to render an alternative Typography variant by wrapping
870
- * the `children` (or `primary`) text, and optional `secondary` text
871
- * with the Typography component.
872
- * @default false
873
- */
874
- disableTypography: o.bool,
875
- /**
876
- * If `true`, the children are indented.
877
- * This should be used if there is no left avatar or left icon.
878
- * @default false
879
- */
880
- inset: o.bool,
881
- /**
882
- * The main content element.
883
- */
884
- primary: o.node,
885
- /**
886
- * These props will be forwarded to the primary typography component
887
- * (as long as disableTypography is not `true`).
888
- * @deprecated Use `slotProps.primary` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
889
- */
890
- primaryTypographyProps: o.object,
891
- /**
892
- * The secondary content element.
893
- */
894
- secondary: o.node,
895
- /**
896
- * These props will be forwarded to the secondary typography component
897
- * (as long as disableTypography is not `true`).
898
- * @deprecated Use `slotProps.secondary` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
899
- */
900
- secondaryTypographyProps: o.object,
901
- /**
902
- * The props used for each slot inside.
903
- * @default {}
904
- */
905
- slotProps: o.shape({
906
- primary: o.oneOfType([o.func, o.object]),
907
- secondary: o.oneOfType([o.func, o.object])
908
- }),
909
- /**
910
- * The components used for each slot inside.
911
- * @default {}
912
- */
913
- slots: o.shape({
914
- primary: o.elementType,
915
- secondary: o.elementType
916
- }),
917
- /**
918
- * The system prop that allows defining system overrides as well as additional CSS styles.
919
- */
920
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
921
- });
922
- export {
923
- R as G,
924
- $e as L,
925
- Ce as a,
926
- ie as b,
927
- N as g
928
- };