@cgi-learning-hub/ui 1.6.0 → 1.7.0-dev.1750693982

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 (364) hide show
  1. package/dist/{Alert-PmI169Dq.js → Alert-BhLIlUBu.js} +126 -212
  2. package/dist/Alert-DPSZppEy.cjs +1 -0
  3. package/dist/Alert-OeEy_IGc.js +94 -0
  4. package/dist/Alert-rPyl-bqs.cjs +1 -0
  5. package/dist/Autocomplete-BdPO9SAd.cjs +6 -0
  6. package/dist/{Autocomplete-BIBR54X2.js → Autocomplete-WZw_zCjA.js} +391 -398
  7. package/dist/{Backdrop-BxgGvlLM.js → Backdrop-CjZYrxkZ.js} +5 -5
  8. package/dist/Backdrop-DeNTZlA5.cjs +1 -0
  9. package/dist/Badge-Bwcsnbsa.js +465 -0
  10. package/dist/Badge-DFzvdVS-.cjs +1 -0
  11. package/dist/{Box-o7Tjjyko.js → Box-BI4osO9v.js} +3 -3
  12. package/dist/Box-DR3n_po_.cjs +1 -0
  13. package/dist/{Button-D974vesA.js → Button-DDV5EfwJ.js} +115 -151
  14. package/dist/Button-DyJV5llI.cjs +1 -0
  15. package/dist/{ButtonBase-Chb99sDQ.js → ButtonBase-6TF6t2SP.js} +22 -23
  16. package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
  17. package/dist/CardContent-COfaU6E0.cjs +1 -0
  18. package/dist/{CardContent-DaZl2i3G.js → CardContent-D3uGcxlr.js} +34 -36
  19. package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
  20. package/dist/{Checkbox-p-PKpEw_.js → Checkbox-BfBDowB2.js} +27 -28
  21. package/dist/Chip-BG0OU0KI.cjs +1 -0
  22. package/dist/{Chip-CPR3r42q.js → Chip-DmjZbx_X.js} +213 -164
  23. package/dist/CircularProgress-CXXyPavb.cjs +28 -0
  24. package/dist/{CircularProgress-DVKNRMKq.js → CircularProgress-DZuYTFz-.js} +34 -36
  25. package/dist/{Close-DyRqry3p.cjs → Close-7S2hSoFB.cjs} +1 -1
  26. package/dist/{Close-m-MX3rFn.js → Close-DEMecSZ6.js} +1 -1
  27. package/dist/{CloseRounded-CjjQdrNy.js → CloseRounded-CioV1GK3.js} +1 -1
  28. package/dist/{CloseRounded-Bpxbxvyb.cjs → CloseRounded-DS-4-gMR.cjs} +1 -1
  29. package/dist/CustomTreeItem-B9FylIhL.js +2045 -0
  30. package/dist/CustomTreeItem-Bg8Ub4dn.cjs +41 -0
  31. package/dist/DatePicker-CH8XRum0.cjs +16 -0
  32. package/dist/DatePicker-DasS2wq6.js +10663 -0
  33. package/dist/DefaultPropsProvider-Cnf49AIv.cjs +1 -0
  34. package/dist/{DefaultPropsProvider-hFv1J_xl.js → DefaultPropsProvider-DqazQPtr.js} +36 -34
  35. package/dist/{Delete-9fJbdRit.js → Delete-B5VTV71K.js} +1 -1
  36. package/dist/{Delete-CEX2hq0f.cjs → Delete-BvkBJXEM.cjs} +1 -1
  37. package/dist/Dialog-Btagj_Gt.cjs +1 -0
  38. package/dist/{Dialog-BzsWl6Vl.js → Dialog-DEWB041V.js} +36 -41
  39. package/dist/{DialogContent-B41jvlMn.js → DialogContent-C294EkoQ.js} +3 -3
  40. package/dist/DialogContent-DXfUge3c.cjs +1 -0
  41. package/dist/{DialogTitle-CVvztEM0.js → DialogTitle-BSiId6Q1.js} +38 -40
  42. package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
  43. package/dist/Divider-NermA5hZ.cjs +1 -0
  44. package/dist/{Divider-CJwnMdVg.js → Divider-kKp4VqHh.js} +4 -4
  45. package/dist/{Folder-7plrMkOp.cjs → Folder-BfLBqDHM.cjs} +1 -1
  46. package/dist/{Folder-CutUz0bW.js → Folder-BgQP5-Ve.js} +1 -1
  47. package/dist/{FormLabel-DSi2pGSZ.js → FormLabel-B3WAnPGP.js} +36 -38
  48. package/dist/FormLabel-JrZR9kt8.cjs +2 -0
  49. package/dist/Grid-BHYQ3JNy.cjs +2 -0
  50. package/dist/Grid-DFk-4jnZ.js +411 -0
  51. package/dist/Grow-BULCy6GX.cjs +1 -0
  52. package/dist/{Grow-FFFqe81C.js → Grow-BfjkXlG8.js} +2 -2
  53. package/dist/{IconButton-CgwURB2g.js → IconButton-BYvak8Nw.js} +13 -15
  54. package/dist/IconButton-CjtMjZ9e.cjs +2 -0
  55. package/dist/{InputAdornment-DgWvMLgR.js → InputAdornment-BBZXvhZ-.js} +14 -15
  56. package/dist/InputAdornment-DvHQMisT.cjs +1 -0
  57. package/dist/{InputBase-DxLqRpcl.js → InputBase-BS5oknUK.js} +196 -194
  58. package/dist/InputBase-DPdKpmOz.cjs +4 -0
  59. package/dist/Link-BwbY60dS.cjs +1 -0
  60. package/dist/{Link-rb-SwfiY.js → Link-DYPjEdvu.js} +10 -11
  61. package/dist/{List-BjfdkeEI.js → List-CB_cqCSw.js} +2 -2
  62. package/dist/List-t9bWFewp.cjs +1 -0
  63. package/dist/{ListItem-B0EiObKw.js → ListItem-DAZQEir2.js} +25 -26
  64. package/dist/ListItem-DP7YmqZk.cjs +1 -0
  65. package/dist/ListItemText-cVnimPLO.cjs +1 -0
  66. package/dist/ListItemText-qfdqJP77.js +441 -0
  67. package/dist/{Menu-By6cOqEO.js → Menu-9BK8jmzW.js} +110 -114
  68. package/dist/Menu-C61wLk41.cjs +7 -0
  69. package/dist/{MenuItem-B1FTx8Uo.js → MenuItem-C8nduSzJ.js} +8 -8
  70. package/dist/MenuItem-DHM3qxwr.cjs +1 -0
  71. package/dist/{Modal-vrLLqk9Y.js → Modal-D3Q9vEAI.js} +51 -55
  72. package/dist/Modal-DkzrSKHd.cjs +2 -0
  73. package/dist/{MoreVert-DC6HBf1h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
  74. package/dist/{MoreVert-DJ8sAY3o.js → MoreVert-C_W1m_Z_.js} +1 -1
  75. package/dist/Paper-BbqZL5vx.cjs +2 -0
  76. package/dist/Paper-IQckggbn.js +158 -0
  77. package/dist/{Popper-DfwuvxaQ.js → Popper-CfFLBZ7-.js} +6 -7
  78. package/dist/Popper-DvWx5tR3.cjs +4 -0
  79. package/dist/{Portal-ChC9wmMZ.js → Portal-BlK6ttxt.js} +5 -5
  80. package/dist/Portal-CPOCKeMh.cjs +1 -0
  81. package/dist/Radio-Bwh_t6PC.cjs +1 -0
  82. package/dist/{Radio-BqY-su_F.js → Radio-DKiu6lVB.js} +17 -19
  83. package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
  84. package/dist/{RadioGroup-BQvlYFpE.js → RadioGroup-DFKMlNWO.js} +4 -4
  85. package/dist/Select-3HP39Z7o.cjs +3 -0
  86. package/dist/{Select-DZMwqCYA.js → Select-CpNF3a57.js} +425 -410
  87. package/dist/Stack-CIyfgZCM.cjs +1 -0
  88. package/dist/{Stack-CMUWQxQn.js → Stack-DSJ2DqNd.js} +36 -37
  89. package/dist/Stepper-CXHfLPtA.cjs +1 -0
  90. package/dist/Stepper-DE2l91K0.js +965 -0
  91. package/dist/{Switch-Bg4QB4PJ.js → Switch-BIcwDf_P.js} +24 -27
  92. package/dist/Switch-CTEqKDiv.cjs +1 -0
  93. package/dist/{SwitchBase-EDFBMPd7.js → SwitchBase-DZV8S81Z.js} +21 -22
  94. package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
  95. package/dist/{Tab-52AkFc9v.js → Tab-Ckr6Bn59.js} +96 -99
  96. package/dist/Tab-r5imbU9z.cjs +4 -0
  97. package/dist/{TextField-DG9mRp_m.js → TextField-BenBw4oE.js} +46 -48
  98. package/dist/TextField-Brw3X9cn.cjs +1 -0
  99. package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
  100. package/dist/{Badge-rX7YUmBc.js → ToggleButtonGroup-DhtAoGtM.js} +3144 -4140
  101. package/dist/Tooltip-BAOKe3SY.cjs +4 -0
  102. package/dist/{Tooltip-DCgaU2em.js → Tooltip-KkgNQm4r.js} +27 -29
  103. package/dist/Typography-CSTmKyr8.cjs +1 -0
  104. package/dist/{Typography-DwMlN0K5.js → Typography-Dy8r_tT2.js} +6 -7
  105. package/dist/components/Alert/Alert.cjs.js +1 -1
  106. package/dist/components/Alert/Alert.es.js +5 -4
  107. package/dist/components/Alert/index.cjs.js +1 -1
  108. package/dist/components/Alert/index.es.js +1 -1
  109. package/dist/components/Button/Button.cjs.js +1 -1
  110. package/dist/components/Button/Button.es.js +2 -2
  111. package/dist/components/ButtonGroup/ButtonGroup.cjs.js +1 -0
  112. package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
  113. package/dist/components/ButtonGroup/ButtonGroup.es.js +38 -0
  114. package/dist/components/ButtonGroup/index.cjs.js +1 -0
  115. package/dist/components/ButtonGroup/index.d.ts +2 -0
  116. package/dist/components/ButtonGroup/index.es.js +4 -0
  117. package/dist/components/ButtonGroup/style.cjs.js +1 -0
  118. package/dist/components/ButtonGroup/style.es.js +29 -0
  119. package/dist/components/ButtonGroup/types.cjs.js +1 -0
  120. package/dist/components/ButtonGroup/types.d.ts +22 -0
  121. package/dist/components/ButtonGroup/types.es.js +1 -0
  122. package/dist/components/ColorPicker/ColorPicker.cjs.js +1 -1
  123. package/dist/components/ColorPicker/ColorPicker.es.js +5 -5
  124. package/dist/components/ColorPicker/styles.es.js +13 -11
  125. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  126. package/dist/components/DatePicker/DatePicker.d.ts +1 -2
  127. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  128. package/dist/components/DatePicker/index.cjs.js +1 -1
  129. package/dist/components/DatePicker/index.es.js +1 -1
  130. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  131. package/dist/components/Dialog/Dialog.es.js +8 -3
  132. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  133. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  134. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  135. package/dist/components/EmptyState/EmptyState.d.ts +1 -0
  136. package/dist/components/EmptyState/EmptyState.es.js +13 -12
  137. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  138. package/dist/components/FileList/FileIcon.es.js +1 -1
  139. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  140. package/dist/components/FileList/FileListItem.es.js +4 -4
  141. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  142. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  143. package/dist/components/Heading/Heading.cjs.js +1 -1
  144. package/dist/components/Heading/Heading.es.js +2 -2
  145. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  146. package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
  147. package/dist/components/Loader/Loader.cjs.js +1 -1
  148. package/dist/components/Loader/Loader.es.js +1 -1
  149. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  150. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  151. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  152. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  153. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  154. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  155. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  156. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  157. package/dist/components/TreeView/TreeView.cjs.js +5 -7
  158. package/dist/components/TreeView/TreeView.es.js +1207 -1452
  159. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  160. package/dist/components/TreeView/components/CustomTreeItem.d.ts +2 -2
  161. package/dist/components/TreeView/components/CustomTreeItem.es.js +3 -3
  162. package/dist/components/TreeView/types.d.ts +5 -5
  163. package/dist/components/TreeView/utils.cjs.js +1 -1
  164. package/dist/components/TreeView/utils.es.js +3 -3
  165. package/dist/components/index.cjs.js +1 -1
  166. package/dist/components/index.d.ts +7 -2
  167. package/dist/components/index.es.js +402 -391
  168. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  169. package/dist/components/stories/Alert.stories.d.ts +1 -1
  170. package/dist/components/stories/Alert.stories.es.js +1 -1
  171. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  172. package/dist/components/stories/Autocomplete.stories.d.ts +1 -1
  173. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  174. package/dist/components/stories/Badge.stories.cjs.js +1 -0
  175. package/dist/components/stories/Badge.stories.d.ts +17 -0
  176. package/dist/components/stories/Badge.stories.es.js +188 -0
  177. package/dist/components/stories/Button.stories.cjs.js +1 -1
  178. package/dist/components/stories/Button.stories.d.ts +1 -1
  179. package/dist/components/stories/Button.stories.es.js +1 -1
  180. package/dist/components/stories/ButtonGroup.stories.cjs.js +153 -0
  181. package/dist/components/stories/ButtonGroup.stories.d.ts +17 -0
  182. package/dist/components/stories/ButtonGroup.stories.es.js +1296 -0
  183. package/dist/components/stories/Card.stories.cjs.js +1 -1
  184. package/dist/components/stories/Card.stories.d.ts +1 -1
  185. package/dist/components/stories/Card.stories.es.js +2 -2
  186. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  187. package/dist/components/stories/Checkbox.stories.d.ts +1 -1
  188. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  189. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  190. package/dist/components/stories/Chip.stories.d.ts +1 -1
  191. package/dist/components/stories/Chip.stories.es.js +1 -1
  192. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  193. package/dist/components/stories/DatePicker.stories.d.ts +1 -1
  194. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  195. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  196. package/dist/components/stories/Dialog.stories.d.ts +1 -1
  197. package/dist/components/stories/Dialog.stories.es.js +2 -2
  198. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  199. package/dist/components/stories/Divider.stories.d.ts +1 -1
  200. package/dist/components/stories/Divider.stories.es.js +1 -1
  201. package/dist/components/stories/Dropzone.stories.d.ts +1 -1
  202. package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +1 -1
  203. package/dist/components/stories/EmptyState.stories.d.ts +1 -1
  204. package/dist/components/stories/FileList.stories.d.ts +1 -1
  205. package/dist/components/stories/FolderCard.stories.d.ts +1 -1
  206. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  207. package/dist/components/stories/FormControlLabel.stories.d.ts +1 -1
  208. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  209. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  210. package/dist/components/stories/Heading.stories.d.ts +1 -1
  211. package/dist/components/stories/Heading.stories.es.js +2 -2
  212. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  213. package/dist/components/stories/IconButton.stories.d.ts +1 -1
  214. package/dist/components/stories/IconButton.stories.es.js +2 -2
  215. package/dist/components/stories/ImagePicker.stories.d.ts +1 -1
  216. package/dist/components/stories/Link.stories.cjs.js +1 -1
  217. package/dist/components/stories/Link.stories.d.ts +1 -1
  218. package/dist/components/stories/Link.stories.es.js +1 -1
  219. package/dist/components/stories/Loader.stories.d.ts +1 -1
  220. package/dist/components/stories/LoaderBackdrop.stories.d.ts +1 -1
  221. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  222. package/dist/components/stories/Menu.stories.d.ts +1 -1
  223. package/dist/components/stories/Menu.stories.es.js +2 -2
  224. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  225. package/dist/components/stories/Paper.stories.d.ts +1 -1
  226. package/dist/components/stories/Paper.stories.es.js +1 -1
  227. package/dist/components/stories/PasswordInput.stories.d.ts +1 -1
  228. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  229. package/dist/components/stories/RadioGroup.stories.d.ts +1 -1
  230. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  231. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  232. package/dist/components/stories/ResourceCard.stories.d.ts +1 -1
  233. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  234. package/dist/components/stories/SearchInput.stories.d.ts +1 -1
  235. package/dist/components/stories/Select.stories.cjs.js +1 -1
  236. package/dist/components/stories/Select.stories.d.ts +1 -1
  237. package/dist/components/stories/Select.stories.es.js +3 -3
  238. package/dist/components/stories/Stepper.stories.cjs.js +1 -0
  239. package/dist/components/stories/Stepper.stories.d.ts +7 -0
  240. package/dist/components/stories/Stepper.stories.es.js +161 -0
  241. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  242. package/dist/components/stories/TabList.stories.d.ts +1 -1
  243. package/dist/components/stories/TabList.stories.es.js +1 -1
  244. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  245. package/dist/components/stories/TextField.stories.d.ts +1 -1
  246. package/dist/components/stories/TextField.stories.es.js +1 -1
  247. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  248. package/dist/components/stories/Tooltip.stories.d.ts +1 -1
  249. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  250. package/dist/components/stories/TreeView.stories.cjs.js +3 -3
  251. package/dist/components/stories/TreeView.stories.d.ts +1 -1
  252. package/dist/components/stories/TreeView.stories.es.js +39 -38
  253. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  254. package/dist/components/stories/Typography.stories.d.ts +1 -1
  255. package/dist/components/stories/Typography.stories.es.js +1 -1
  256. package/dist/{createSvgIcon-BlKmtOkV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
  257. package/dist/createSvgIcon-IET9soda.cjs +1 -0
  258. package/dist/{dividerClasses-Glz8RJdF.js → dividerClasses-BPJZ8SFy.js} +1 -1
  259. package/dist/dividerClasses-C07OJKLL.cjs +1 -0
  260. package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
  261. package/dist/{extendSxProp-BouzOuB6.js → extendSxProp-CesAxox9.js} +1 -1
  262. package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
  263. package/dist/identifier-BoZelETM.cjs +55 -0
  264. package/dist/{generateUtilityClasses-DngCqveO.js → identifier-PWESmBq6.js} +582 -612
  265. package/dist/{index-l8yqod25.js → index-8G2jvqZ8.js} +4 -4
  266. package/dist/index-D3lMWU76.cjs +1 -0
  267. package/dist/index.cjs.js +1 -1
  268. package/dist/index.es.js +402 -391
  269. package/dist/integerPropType-BihGt2aU.js +31 -0
  270. package/dist/integerPropType-CR7ytEJG.cjs +1 -0
  271. package/dist/{listItemTextClasses-BRj19IXv.js → listItemTextClasses-B5VhLd9W.js} +1 -1
  272. package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
  273. package/dist/{memoTheme-BAbn60Cb.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
  274. package/dist/{memoTheme-nmt7i1dS.js → memoTheme-DAFDflPY.js} +1 -1
  275. package/dist/{mergeSlotProps-BBciKnr4.js → mergeSlotProps-ChAye7iz.js} +1 -1
  276. package/dist/mergeSlotProps-DXwOW3FE.cjs +1 -0
  277. package/dist/styled-C7gyRDlj.js +5 -0
  278. package/dist/styled-Cax0O00h.cjs +1 -0
  279. package/dist/useControlled-QrrYcKxm.cjs +3 -0
  280. package/dist/useControlled-nm4pBabJ.js +31 -0
  281. package/dist/{useEventCallback-Yoj9nCug.js → useEventCallback-Y2KwRxBw.js} +2 -2
  282. package/dist/usePreviousProps-ByGlbpJ6.js +10 -0
  283. package/dist/usePreviousProps-jC3PWcIp.cjs +1 -0
  284. package/dist/{useSlot-BDb1lvxu.js → useSlot-BzdKwDQ5.js} +1 -1
  285. package/dist/useSlot-C2FjoUpF.cjs +1 -0
  286. package/dist/{useSlotProps-OhEflPiz.cjs → useSlotProps-CrQGQLdL.cjs} +1 -1
  287. package/dist/{useSlotProps-B_D8u0j-.js → useSlotProps-DdMuGelR.js} +1 -1
  288. package/dist/{useTheme-D9cVynB-.js → useTheme--i9fxE_A.js} +1 -1
  289. package/dist/useTheme-BLMJDSsv.cjs +1 -0
  290. package/dist/useTheme-CooC_6Ep.cjs +1 -0
  291. package/dist/useTheme-XJ9sFCWX.js +11 -0
  292. package/dist/{useThemeProps-ggw56DH-.js → useThemeProps-B4VFkcP0.js} +4 -4
  293. package/dist/{useThemeProps-DQOn-ezC.cjs → useThemeProps-B9E_wuN9.cjs} +1 -1
  294. package/dist/useThemeProps-C1A3rnbh.cjs +1 -0
  295. package/dist/useThemeProps-CQ9rZe7g.js +17 -0
  296. package/package.json +12 -11
  297. package/dist/Alert-DW8yCR-B.cjs +0 -1
  298. package/dist/Autocomplete-D9hZ2wrR.cjs +0 -6
  299. package/dist/Backdrop-3TL73mAe.cjs +0 -1
  300. package/dist/Badge-DhyDno9j.cjs +0 -138
  301. package/dist/Box-DYD6q-6M.cjs +0 -1
  302. package/dist/Button-y1LmxqGA.cjs +0 -1
  303. package/dist/ButtonBase-Cteo-mSC.cjs +0 -74
  304. package/dist/CardContent-ji0_AneN.cjs +0 -1
  305. package/dist/Checkbox-XXqW_dbW.cjs +0 -1
  306. package/dist/Chip-Bpcd3tnL.cjs +0 -1
  307. package/dist/CircularProgress-Wqx0-T36.cjs +0 -28
  308. package/dist/CustomTreeItem-DPyfIueW.cjs +0 -3
  309. package/dist/CustomTreeItem-hIRSCwAW.js +0 -1336
  310. package/dist/DatePicker-BMzW4v1g.js +0 -10255
  311. package/dist/DatePicker-CNhBoaI3.cjs +0 -14
  312. package/dist/DefaultPropsProvider-B1crdkTC.cjs +0 -1
  313. package/dist/Dialog-B2LKe7ZM.cjs +0 -1
  314. package/dist/DialogContent-BbCu_OEw.cjs +0 -1
  315. package/dist/DialogTitle-SwUSpeBT.cjs +0 -1
  316. package/dist/Divider-Cshcr5kR.cjs +0 -1
  317. package/dist/FormLabel-0LbNeQQU.cjs +0 -2
  318. package/dist/Grow-aEgTOewU.cjs +0 -1
  319. package/dist/IconButton-BKwDNYJl.cjs +0 -2
  320. package/dist/InputAdornment-C7e-kyf7.cjs +0 -1
  321. package/dist/InputBase-pYQWRFK2.cjs +0 -3
  322. package/dist/Link-DUtuCYMx.cjs +0 -1
  323. package/dist/List-BH_S4Hqm.cjs +0 -1
  324. package/dist/ListItem-D33t-hkx.cjs +0 -1
  325. package/dist/ListItemText-B8jlTz59.cjs +0 -2
  326. package/dist/ListItemText-BeyHu1da.js +0 -853
  327. package/dist/Menu-BjrN8rMF.cjs +0 -7
  328. package/dist/MenuItem-Cz_x60jl.cjs +0 -1
  329. package/dist/Modal-DxwlW5NV.cjs +0 -2
  330. package/dist/Paper-984iTz4H.js +0 -186
  331. package/dist/Paper-Bh9CKUCb.cjs +0 -2
  332. package/dist/Popper-yO_RaCbM.cjs +0 -4
  333. package/dist/Portal-B5KqLEa0.cjs +0 -1
  334. package/dist/Radio-C7zzpRFc.cjs +0 -1
  335. package/dist/RadioGroup-BlUWRmLG.cjs +0 -1
  336. package/dist/Select-Doay7ukI.cjs +0 -3
  337. package/dist/Stack-BVWbOqY_.cjs +0 -1
  338. package/dist/Switch-CEfqaD33.cjs +0 -1
  339. package/dist/SwitchBase-DvCITKv8.cjs +0 -1
  340. package/dist/Tab-C6H241Pf.cjs +0 -4
  341. package/dist/TextField-bE2NUKKK.cjs +0 -1
  342. package/dist/Tooltip-D_w-IJoD.cjs +0 -4
  343. package/dist/Typography-De-21leI.cjs +0 -1
  344. package/dist/capitalize-BHFotl9B.js +0 -9
  345. package/dist/capitalize-CKLkSyDO.cjs +0 -1
  346. package/dist/composeClasses-CJKlIaRn.js +0 -51
  347. package/dist/composeClasses-CWgX5SFD.cjs +0 -1
  348. package/dist/createSvgIcon-BgBODH2F.cjs +0 -1
  349. package/dist/dividerClasses-D3gnW6kZ.cjs +0 -1
  350. package/dist/extendSxProp-Cm-DtZe3.cjs +0 -1
  351. package/dist/generateUtilityClasses-CMlilM6r.cjs +0 -55
  352. package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
  353. package/dist/index-BzsuDIEl.cjs +0 -1
  354. package/dist/listItemTextClasses-BJFgw1ah.cjs +0 -1
  355. package/dist/mergeSlotProps-Z5-o9vSe.cjs +0 -1
  356. package/dist/useControlled-BYdyS7Pn.js +0 -31
  357. package/dist/useControlled-Ysk4KqoX.cjs +0 -3
  358. package/dist/useSlot-W0PiuVaZ.cjs +0 -1
  359. package/dist/useTheme-C59wIJ3-.js +0 -11
  360. package/dist/useTheme-ClhInrO2.cjs +0 -1
  361. package/dist/useTheme-CqYtLDbs.cjs +0 -1
  362. package/dist/useThemeProps-BFQ8ndnj.js +0 -17
  363. package/dist/useThemeProps-DYpozGhe.cjs +0 -1
  364. package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
@@ -1,853 +0,0 @@
1
- import { P as e } from "./index-Sy88PpwE.js";
2
- import { u as ae } from "./useTheme-C59wIJ3-.js";
3
- import * as O from "react";
4
- import { H as I, Q as ie, n as P } from "./generateUtilityClasses-DngCqveO.js";
5
- import { jsx as G, jsxs as ce } from "react/jsx-runtime";
6
- import { s as le, c as pe, g as de } from "./composeClasses-CJKlIaRn.js";
7
- import { u as fe } from "./useTheme-D9cVynB-.js";
8
- import { e as ue } from "./extendSxProp-BouzOuB6.js";
9
- import { u as me } from "./useThemeProps-ggw56DH-.js";
10
- import { s as F, u as A, c as Y, r as ye } from "./DefaultPropsProvider-hFv1J_xl.js";
11
- import { m as ge } from "./memoTheme-nmt7i1dS.js";
12
- import { a as _ } from "./List-BjfdkeEI.js";
13
- import { b as be, a as N } from "./ListItem-B0EiObKw.js";
14
- import { a as Oe } from "./useEventCallback-Yoj9nCug.js";
15
- import { u as Te } from "./useForkRef-u29GSuCu.js";
16
- import { B as ve } from "./ButtonBase-Chb99sDQ.js";
17
- import { g as we, l as E } from "./listItemTextClasses-BRj19IXv.js";
18
- import { u as W } from "./useSlot-BDb1lvxu.js";
19
- import { T as k, t as H } from "./Typography-DwMlN0K5.js";
20
- function xe(r, o) {
21
- var n, t, s;
22
- return /* @__PURE__ */ O.isValidElement(r) && o.indexOf(
23
- // For server components `muiName` is avaialble in element.type._payload.value.muiName
24
- // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
25
- // eslint-disable-next-line no-underscore-dangle
26
- r.type.muiName ?? ((s = (t = (n = r.type) == null ? void 0 : n._payload) == null ? void 0 : t.value) == null ? void 0 : s.muiName)
27
- ) !== -1;
28
- }
29
- const he = (r, o) => r.filter((n) => o.includes(n)), j = (r, o, n) => {
30
- const t = r.keys[0];
31
- Array.isArray(o) ? o.forEach((s, a) => {
32
- n((i, u) => {
33
- a <= r.keys.length - 1 && (a === 0 ? Object.assign(i, u) : i[r.up(r.keys[a])] = u);
34
- }, s);
35
- }) : o && typeof o == "object" ? (Object.keys(o).length > r.keys.length ? r.keys : he(r.keys, Object.keys(o))).forEach((a) => {
36
- if (r.keys.includes(a)) {
37
- const i = o[a];
38
- i !== void 0 && n((u, m) => {
39
- t === a ? Object.assign(u, m) : u[r.up(a)] = m;
40
- }, i);
41
- }
42
- }) : (typeof o == "number" || typeof o == "string") && n((s, a) => {
43
- Object.assign(s, a);
44
- }, o);
45
- };
46
- function R(r) {
47
- return `--Grid-${r}Spacing`;
48
- }
49
- function B(r) {
50
- return `--Grid-parent-${r}Spacing`;
51
- }
52
- const K = "--Grid-columns", C = "--Grid-parent-columns", $e = ({
53
- theme: r,
54
- ownerState: o
55
- }) => {
56
- const n = {};
57
- return j(r.breakpoints, o.size, (t, s) => {
58
- let a = {};
59
- s === "grow" && (a = {
60
- flexBasis: 0,
61
- flexGrow: 1,
62
- maxWidth: "100%"
63
- }), s === "auto" && (a = {
64
- flexBasis: "auto",
65
- flexGrow: 0,
66
- flexShrink: 0,
67
- maxWidth: "none",
68
- width: "auto"
69
- }), typeof s == "number" && (a = {
70
- flexGrow: 0,
71
- flexBasis: "auto",
72
- width: `calc(100% * ${s} / var(${C}) - (var(${C}) - ${s}) * (var(${B("column")}) / var(${C})))`
73
- }), t(n, a);
74
- }), n;
75
- }, Se = ({
76
- theme: r,
77
- ownerState: o
78
- }) => {
79
- const n = {};
80
- return j(r.breakpoints, o.offset, (t, s) => {
81
- let a = {};
82
- s === "auto" && (a = {
83
- marginLeft: "auto"
84
- }), typeof s == "number" && (a = {
85
- marginLeft: s === 0 ? "0px" : `calc(100% * ${s} / var(${C}) + var(${B("column")}) * ${s} / var(${C}))`
86
- }), t(n, a);
87
- }), n;
88
- }, Ce = ({
89
- theme: r,
90
- ownerState: o
91
- }) => {
92
- if (!o.container)
93
- return {};
94
- const n = {
95
- [K]: 12
96
- };
97
- return j(r.breakpoints, o.columns, (t, s) => {
98
- const a = s ?? 12;
99
- t(n, {
100
- [K]: a,
101
- "> *": {
102
- [C]: a
103
- }
104
- });
105
- }), n;
106
- }, je = ({
107
- theme: r,
108
- ownerState: o
109
- }) => {
110
- if (!o.container)
111
- return {};
112
- const n = {};
113
- return j(r.breakpoints, o.rowSpacing, (t, s) => {
114
- var i;
115
- const a = typeof s == "string" ? s : (i = r.spacing) == null ? void 0 : i.call(r, s);
116
- t(n, {
117
- [R("row")]: a,
118
- "> *": {
119
- [B("row")]: a
120
- }
121
- });
122
- }), n;
123
- }, Ne = ({
124
- theme: r,
125
- ownerState: o
126
- }) => {
127
- if (!o.container)
128
- return {};
129
- const n = {};
130
- return j(r.breakpoints, o.columnSpacing, (t, s) => {
131
- var i;
132
- const a = typeof s == "string" ? s : (i = r.spacing) == null ? void 0 : i.call(r, s);
133
- t(n, {
134
- [R("column")]: a,
135
- "> *": {
136
- [B("column")]: a
137
- }
138
- });
139
- }), n;
140
- }, Ge = ({
141
- theme: r,
142
- ownerState: o
143
- }) => {
144
- if (!o.container)
145
- return {};
146
- const n = {};
147
- return j(r.breakpoints, o.direction, (t, s) => {
148
- t(n, {
149
- flexDirection: s
150
- });
151
- }), n;
152
- }, Pe = ({
153
- ownerState: r
154
- }) => ({
155
- minWidth: 0,
156
- boxSizing: "border-box",
157
- ...r.container && {
158
- display: "flex",
159
- flexWrap: "wrap",
160
- ...r.wrap && r.wrap !== "wrap" && {
161
- flexWrap: r.wrap
162
- },
163
- gap: `var(${R("row")}) var(${R("column")})`
164
- }
165
- }), Ee = (r) => {
166
- const o = [];
167
- return Object.entries(r).forEach(([n, t]) => {
168
- t !== !1 && t !== void 0 && o.push(`grid-${n}-${String(t)}`);
169
- }), o;
170
- }, ke = (r, o = "xs") => {
171
- function n(t) {
172
- return t === void 0 ? !1 : typeof t == "string" && !Number.isNaN(Number(t)) || typeof t == "number" && t > 0;
173
- }
174
- if (n(r))
175
- return [`spacing-${o}-${String(r)}`];
176
- if (typeof r == "object" && !Array.isArray(r)) {
177
- const t = [];
178
- return Object.entries(r).forEach(([s, a]) => {
179
- n(a) && t.push(`spacing-${s}-${String(a)}`);
180
- }), t;
181
- }
182
- return [];
183
- }, Ie = (r) => r === void 0 ? [] : typeof r == "object" ? Object.entries(r).map(([o, n]) => `direction-${o}-${n}`) : [`direction-xs-${String(r)}`], Re = (r) => ["item", "zeroMinWidth"].includes(r) ? `The \`${r}\` prop has been removed and is no longer necessary. You can safely remove it.` : `The \`${r}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`, Q = [];
184
- function Be(r, o) {
185
- const n = [];
186
- r.item !== void 0 && (delete r.item, n.push("item")), r.zeroMinWidth !== void 0 && (delete r.zeroMinWidth, n.push("zeroMinWidth")), o.keys.forEach((t) => {
187
- r[t] !== void 0 && (n.push(t), delete r[t]);
188
- }), process.env.NODE_ENV !== "production" && n.forEach((t) => {
189
- Q.includes(t) || (Q.push(t), console.warn(`MUI Grid: ${Re(t)}
190
- `));
191
- });
192
- }
193
- const Le = ie(), Me = le("div", {
194
- name: "MuiGrid",
195
- slot: "Root"
196
- });
197
- function ze(r) {
198
- return me({
199
- props: r,
200
- name: "MuiGrid",
201
- defaultTheme: Le
202
- });
203
- }
204
- function De(r = {}) {
205
- const {
206
- // This will allow adding custom styled fn (for example for custom sx style function)
207
- createStyledComponent: o = Me,
208
- useThemeProps: n = ze,
209
- useTheme: t = fe,
210
- componentName: s = "MuiGrid"
211
- } = r, a = (l, p) => {
212
- const {
213
- container: y,
214
- direction: d,
215
- spacing: f,
216
- wrap: c,
217
- size: v
218
- } = l, b = {
219
- root: ["root", y && "container", c !== "wrap" && `wrap-xs-${String(c)}`, ...Ie(d), ...Ee(v), ...y ? ke(f, p.breakpoints.keys[0]) : []]
220
- };
221
- return pe(b, (g) => de(s, g), {});
222
- };
223
- function i(l, p, y = () => !0) {
224
- const d = {};
225
- return l === null || (Array.isArray(l) ? l.forEach((f, c) => {
226
- f !== null && y(f) && p.keys[c] && (d[p.keys[c]] = f);
227
- }) : typeof l == "object" ? Object.keys(l).forEach((f) => {
228
- const c = l[f];
229
- c != null && y(c) && (d[f] = c);
230
- }) : d[p.keys[0]] = l), d;
231
- }
232
- const u = o(Ce, Ne, je, $e, Ge, Pe, Se), m = /* @__PURE__ */ O.forwardRef(function(p, y) {
233
- const d = t(), f = n(p), c = ue(f);
234
- Be(c, d.breakpoints);
235
- const {
236
- className: v,
237
- children: b,
238
- columns: g = 12,
239
- container: T = !1,
240
- component: w = "div",
241
- direction: $ = "row",
242
- wrap: L = "wrap",
243
- size: M = {},
244
- offset: z = {},
245
- spacing: x = 0,
246
- rowSpacing: D = x,
247
- columnSpacing: V = x,
248
- unstable_level: S = 0,
249
- ...X
250
- } = c, Z = i(M, d.breakpoints, (h) => h !== !1), ee = i(z, d.breakpoints), re = p.columns ?? (S ? void 0 : g), oe = p.spacing ?? (S ? void 0 : x), ne = p.rowSpacing ?? p.spacing ?? (S ? void 0 : D), te = p.columnSpacing ?? p.spacing ?? (S ? void 0 : V), U = {
251
- ...c,
252
- level: S,
253
- columns: re,
254
- container: T,
255
- direction: $,
256
- wrap: L,
257
- spacing: oe,
258
- rowSpacing: ne,
259
- columnSpacing: te,
260
- size: Z,
261
- offset: ee
262
- }, se = a(U, d);
263
- return /* @__PURE__ */ G(u, {
264
- ref: y,
265
- as: w,
266
- ownerState: U,
267
- className: I(se.root, v),
268
- ...X,
269
- children: O.Children.map(b, (h) => {
270
- var q;
271
- return /* @__PURE__ */ O.isValidElement(h) && xe(h, ["Grid"]) && T && h.props.container ? /* @__PURE__ */ O.cloneElement(h, {
272
- unstable_level: ((q = h.props) == null ? void 0 : q.unstable_level) ?? S + 1
273
- }) : h;
274
- })
275
- });
276
- });
277
- return process.env.NODE_ENV !== "production" && (m.propTypes = {
278
- children: e.node,
279
- className: e.string,
280
- columns: e.oneOfType([e.arrayOf(e.number), e.number, e.object]),
281
- columnSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
282
- component: e.elementType,
283
- container: e.bool,
284
- direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
285
- offset: e.oneOfType([e.string, e.number, e.arrayOf(e.oneOfType([e.string, e.number])), e.object]),
286
- rowSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
287
- size: e.oneOfType([e.string, e.bool, e.number, e.arrayOf(e.oneOfType([e.string, e.bool, e.number])), e.object]),
288
- spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
289
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
290
- wrap: e.oneOf(["nowrap", "wrap-reverse", "wrap"])
291
- }), m.muiName = "Grid", m;
292
- }
293
- function Ve(r, o) {
294
- if (process.env.NODE_ENV === "production")
295
- return () => null;
296
- const n = o ? {
297
- ...o.propTypes
298
- } : null;
299
- return (s) => (a, i, u, m, l, ...p) => {
300
- const y = l || i, d = n == null ? void 0 : n[y];
301
- if (d) {
302
- const f = d(a, i, u, m, l, ...p);
303
- if (f)
304
- return f;
305
- }
306
- return typeof a[i] < "u" && !a[s] ? new Error(`The prop \`${y}\` of \`${r}\` can only be used together with the \`${s}\` prop.`) : null;
307
- };
308
- }
309
- const J = De({
310
- createStyledComponent: F("div", {
311
- name: "MuiGrid",
312
- slot: "Root",
313
- overridesResolver: (r, o) => {
314
- const {
315
- ownerState: n
316
- } = r;
317
- return [o.root, n.container && o.container];
318
- }
319
- }),
320
- componentName: "MuiGrid",
321
- useThemeProps: (r) => A({
322
- props: r,
323
- name: "MuiGrid"
324
- }),
325
- useTheme: ae
326
- });
327
- process.env.NODE_ENV !== "production" && (J.propTypes = {
328
- // ┌────────────────────────────── Warning ──────────────────────────────┐
329
- // │ These PropTypes are generated from the TypeScript type definitions. │
330
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
331
- // └─────────────────────────────────────────────────────────────────────┘
332
- /**
333
- * The content of the component.
334
- */
335
- children: e.node,
336
- /**
337
- * The number of columns.
338
- * @default 12
339
- */
340
- columns: e.oneOfType([e.arrayOf(e.number), e.number, e.object]),
341
- /**
342
- * Defines the horizontal space between the type `item` components.
343
- * It overrides the value of the `spacing` prop.
344
- */
345
- columnSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
346
- /**
347
- * If `true`, the component will have the flex *container* behavior.
348
- * You should be wrapping *items* with a *container*.
349
- * @default false
350
- */
351
- container: e.bool,
352
- /**
353
- * Defines the `flex-direction` style property.
354
- * It is applied for all screen sizes.
355
- * @default 'row'
356
- */
357
- direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
358
- /**
359
- * Defines the offset value for the type `item` components.
360
- */
361
- offset: e.oneOfType([e.string, e.number, e.arrayOf(e.oneOfType([e.string, e.number])), e.object]),
362
- /**
363
- * Defines the vertical space between the type `item` components.
364
- * It overrides the value of the `spacing` prop.
365
- */
366
- rowSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
367
- /**
368
- * Defines the size of the the type `item` components.
369
- */
370
- size: e.oneOfType([e.string, e.bool, e.number, e.arrayOf(e.oneOfType([e.string, e.bool, e.number])), e.object]),
371
- /**
372
- * Defines the space between the type `item` components.
373
- * It can only be used on a type `container` component.
374
- * @default 0
375
- */
376
- spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
377
- /**
378
- * @ignore
379
- */
380
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
381
- /**
382
- * @internal
383
- * The level of the grid starts from `0` and increases when the grid nests
384
- * inside another grid. Nesting is defined as a container Grid being a direct
385
- * child of a container Grid.
386
- *
387
- * ```js
388
- * <Grid container> // level 0
389
- * <Grid container> // level 1
390
- * <Grid container> // level 2
391
- * ```
392
- *
393
- * Only consecutive grid is considered nesting. A grid container will start at
394
- * `0` if there are non-Grid container element above it.
395
- *
396
- * ```js
397
- * <Grid container> // level 0
398
- * <div>
399
- * <Grid container> // level 0
400
- * ```
401
- *
402
- * ```js
403
- * <Grid container> // level 0
404
- * <Grid>
405
- * <Grid container> // level 0
406
- * ```
407
- */
408
- unstable_level: e.number,
409
- /**
410
- * Defines the `flex-wrap` style property.
411
- * It's applied for all screen sizes.
412
- * @default 'wrap'
413
- */
414
- wrap: e.oneOf(["nowrap", "wrap-reverse", "wrap"])
415
- });
416
- if (process.env.NODE_ENV !== "production") {
417
- const r = J, o = Ve("Grid", r);
418
- r.propTypes = {
419
- // eslint-disable-next-line react/forbid-foreign-prop-types
420
- ...r.propTypes,
421
- direction: o("container"),
422
- spacing: o("container"),
423
- wrap: o("container")
424
- };
425
- }
426
- const We = (r, o) => {
427
- const {
428
- ownerState: n
429
- } = r;
430
- return [o.root, n.dense && o.dense, n.alignItems === "flex-start" && o.alignItemsFlexStart, n.divider && o.divider, !n.disableGutters && o.gutters];
431
- }, _e = (r) => {
432
- const {
433
- alignItems: o,
434
- classes: n,
435
- dense: t,
436
- disabled: s,
437
- disableGutters: a,
438
- divider: i,
439
- selected: u
440
- } = r, l = Y({
441
- root: ["root", t && "dense", !a && "gutters", i && "divider", s && "disabled", o === "flex-start" && "alignItemsFlexStart", u && "selected"]
442
- }, be, n);
443
- return {
444
- ...n,
445
- ...l
446
- };
447
- }, Fe = F(ve, {
448
- shouldForwardProp: (r) => ye(r) || r === "classes",
449
- name: "MuiListItemButton",
450
- slot: "Root",
451
- overridesResolver: We
452
- })(ge(({
453
- theme: r
454
- }) => ({
455
- display: "flex",
456
- flexGrow: 1,
457
- justifyContent: "flex-start",
458
- alignItems: "center",
459
- position: "relative",
460
- textDecoration: "none",
461
- minWidth: 0,
462
- boxSizing: "border-box",
463
- textAlign: "left",
464
- paddingTop: 8,
465
- paddingBottom: 8,
466
- transition: r.transitions.create("background-color", {
467
- duration: r.transitions.duration.shortest
468
- }),
469
- "&:hover": {
470
- textDecoration: "none",
471
- backgroundColor: (r.vars || r).palette.action.hover,
472
- // Reset on touch devices, it doesn't add specificity
473
- "@media (hover: none)": {
474
- backgroundColor: "transparent"
475
- }
476
- },
477
- [`&.${N.selected}`]: {
478
- backgroundColor: r.vars ? `rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})` : P(r.palette.primary.main, r.palette.action.selectedOpacity),
479
- [`&.${N.focusVisible}`]: {
480
- backgroundColor: r.vars ? `rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))` : P(r.palette.primary.main, r.palette.action.selectedOpacity + r.palette.action.focusOpacity)
481
- }
482
- },
483
- [`&.${N.selected}:hover`]: {
484
- backgroundColor: r.vars ? `rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))` : P(r.palette.primary.main, r.palette.action.selectedOpacity + r.palette.action.hoverOpacity),
485
- // Reset on touch devices, it doesn't add specificity
486
- "@media (hover: none)": {
487
- backgroundColor: r.vars ? `rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})` : P(r.palette.primary.main, r.palette.action.selectedOpacity)
488
- }
489
- },
490
- [`&.${N.focusVisible}`]: {
491
- backgroundColor: (r.vars || r).palette.action.focus
492
- },
493
- [`&.${N.disabled}`]: {
494
- opacity: (r.vars || r).palette.action.disabledOpacity
495
- },
496
- variants: [{
497
- props: ({
498
- ownerState: o
499
- }) => o.divider,
500
- style: {
501
- borderBottom: `1px solid ${(r.vars || r).palette.divider}`,
502
- backgroundClip: "padding-box"
503
- }
504
- }, {
505
- props: {
506
- alignItems: "flex-start"
507
- },
508
- style: {
509
- alignItems: "flex-start"
510
- }
511
- }, {
512
- props: ({
513
- ownerState: o
514
- }) => !o.disableGutters,
515
- style: {
516
- paddingLeft: 16,
517
- paddingRight: 16
518
- }
519
- }, {
520
- props: ({
521
- ownerState: o
522
- }) => o.dense,
523
- style: {
524
- paddingTop: 4,
525
- paddingBottom: 4
526
- }
527
- }]
528
- }))), Ae = /* @__PURE__ */ O.forwardRef(function(o, n) {
529
- const t = A({
530
- props: o,
531
- name: "MuiListItemButton"
532
- }), {
533
- alignItems: s = "center",
534
- autoFocus: a = !1,
535
- component: i = "div",
536
- children: u,
537
- dense: m = !1,
538
- disableGutters: l = !1,
539
- divider: p = !1,
540
- focusVisibleClassName: y,
541
- selected: d = !1,
542
- className: f,
543
- ...c
544
- } = t, v = O.useContext(_), b = O.useMemo(() => ({
545
- dense: m || v.dense || !1,
546
- alignItems: s,
547
- disableGutters: l
548
- }), [s, v.dense, m, l]), g = O.useRef(null);
549
- Oe(() => {
550
- a && (g.current ? g.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
551
- }, [a]);
552
- const T = {
553
- ...t,
554
- alignItems: s,
555
- dense: b.dense,
556
- disableGutters: l,
557
- divider: p,
558
- selected: d
559
- }, w = _e(T), $ = Te(g, n);
560
- return /* @__PURE__ */ G(_.Provider, {
561
- value: b,
562
- children: /* @__PURE__ */ G(Fe, {
563
- ref: $,
564
- href: c.href || c.to,
565
- component: (c.href || c.to) && i === "div" ? "button" : i,
566
- focusVisibleClassName: I(w.focusVisible, y),
567
- ownerState: T,
568
- className: I(w.root, f),
569
- ...c,
570
- classes: w,
571
- children: u
572
- })
573
- });
574
- });
575
- process.env.NODE_ENV !== "production" && (Ae.propTypes = {
576
- // ┌────────────────────────────── Warning ──────────────────────────────┐
577
- // │ These PropTypes are generated from the TypeScript type definitions. │
578
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
579
- // └─────────────────────────────────────────────────────────────────────┘
580
- /**
581
- * Defines the `align-items` style property.
582
- * @default 'center'
583
- */
584
- alignItems: e.oneOf(["center", "flex-start"]),
585
- /**
586
- * If `true`, the list item is focused during the first mount.
587
- * Focus will also be triggered if the value changes from false to true.
588
- * @default false
589
- */
590
- autoFocus: e.bool,
591
- /**
592
- * The content of the component if a `ListItemSecondaryAction` is used it must
593
- * be the last child.
594
- */
595
- children: e.node,
596
- /**
597
- * Override or extend the styles applied to the component.
598
- */
599
- classes: e.object,
600
- /**
601
- * @ignore
602
- */
603
- className: e.string,
604
- /**
605
- * The component used for the root node.
606
- * Either a string to use a HTML element or a component.
607
- */
608
- component: e.elementType,
609
- /**
610
- * If `true`, compact vertical padding designed for keyboard and mouse input is used.
611
- * The prop defaults to the value inherited from the parent List component.
612
- * @default false
613
- */
614
- dense: e.bool,
615
- /**
616
- * If `true`, the component is disabled.
617
- * @default false
618
- */
619
- disabled: e.bool,
620
- /**
621
- * If `true`, the left and right padding is removed.
622
- * @default false
623
- */
624
- disableGutters: e.bool,
625
- /**
626
- * If `true`, a 1px light border is added to the bottom of the list item.
627
- * @default false
628
- */
629
- divider: e.bool,
630
- /**
631
- * This prop can help identify which element has keyboard focus.
632
- * The class name will be applied when the element gains the focus through keyboard interaction.
633
- * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
634
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
635
- * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
636
- * if needed.
637
- */
638
- focusVisibleClassName: e.string,
639
- /**
640
- * @ignore
641
- */
642
- href: e.string,
643
- /**
644
- * Use to apply selected styling.
645
- * @default false
646
- */
647
- selected: e.bool,
648
- /**
649
- * The system prop that allows defining system overrides as well as additional CSS styles.
650
- */
651
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
652
- });
653
- const Ue = (r) => {
654
- const {
655
- classes: o,
656
- inset: n,
657
- primary: t,
658
- secondary: s,
659
- dense: a
660
- } = r;
661
- return Y({
662
- root: ["root", n && "inset", a && "dense", t && s && "multiline"],
663
- primary: ["primary"],
664
- secondary: ["secondary"]
665
- }, we, o);
666
- }, qe = F("div", {
667
- name: "MuiListItemText",
668
- slot: "Root",
669
- overridesResolver: (r, o) => {
670
- const {
671
- ownerState: n
672
- } = r;
673
- return [{
674
- [`& .${E.primary}`]: o.primary
675
- }, {
676
- [`& .${E.secondary}`]: o.secondary
677
- }, o.root, n.inset && o.inset, n.primary && n.secondary && o.multiline, n.dense && o.dense];
678
- }
679
- })({
680
- flex: "1 1 auto",
681
- minWidth: 0,
682
- marginTop: 4,
683
- marginBottom: 4,
684
- [`.${H.root}:where(& .${E.primary})`]: {
685
- display: "block"
686
- },
687
- [`.${H.root}:where(& .${E.secondary})`]: {
688
- display: "block"
689
- },
690
- variants: [{
691
- props: ({
692
- ownerState: r
693
- }) => r.primary && r.secondary,
694
- style: {
695
- marginTop: 6,
696
- marginBottom: 6
697
- }
698
- }, {
699
- props: ({
700
- ownerState: r
701
- }) => r.inset,
702
- style: {
703
- paddingLeft: 56
704
- }
705
- }]
706
- }), He = /* @__PURE__ */ O.forwardRef(function(o, n) {
707
- const t = A({
708
- props: o,
709
- name: "MuiListItemText"
710
- }), {
711
- children: s,
712
- className: a,
713
- disableTypography: i = !1,
714
- inset: u = !1,
715
- primary: m,
716
- primaryTypographyProps: l,
717
- secondary: p,
718
- secondaryTypographyProps: y,
719
- slots: d = {},
720
- slotProps: f = {},
721
- ...c
722
- } = t, {
723
- dense: v
724
- } = O.useContext(_);
725
- let b = m ?? s, g = p;
726
- const T = {
727
- ...t,
728
- disableTypography: i,
729
- inset: u,
730
- primary: !!b,
731
- secondary: !!g,
732
- dense: v
733
- }, w = Ue(T), $ = {
734
- slots: d,
735
- slotProps: {
736
- primary: l,
737
- secondary: y,
738
- ...f
739
- }
740
- }, [L, M] = W("root", {
741
- className: I(w.root, a),
742
- elementType: qe,
743
- externalForwardedProps: {
744
- ...$,
745
- ...c
746
- },
747
- ownerState: T,
748
- ref: n
749
- }), [z, x] = W("primary", {
750
- className: w.primary,
751
- elementType: k,
752
- externalForwardedProps: $,
753
- ownerState: T
754
- }), [D, V] = W("secondary", {
755
- className: w.secondary,
756
- elementType: k,
757
- externalForwardedProps: $,
758
- ownerState: T
759
- });
760
- return b != null && b.type !== k && !i && (b = /* @__PURE__ */ G(z, {
761
- variant: v ? "body2" : "body1",
762
- component: x != null && x.variant ? void 0 : "span",
763
- ...x,
764
- children: b
765
- })), g != null && g.type !== k && !i && (g = /* @__PURE__ */ G(D, {
766
- variant: "body2",
767
- color: "textSecondary",
768
- ...V,
769
- children: g
770
- })), /* @__PURE__ */ ce(L, {
771
- ...M,
772
- children: [b, g]
773
- });
774
- });
775
- process.env.NODE_ENV !== "production" && (He.propTypes = {
776
- // ┌────────────────────────────── Warning ──────────────────────────────┐
777
- // │ These PropTypes are generated from the TypeScript type definitions. │
778
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
779
- // └─────────────────────────────────────────────────────────────────────┘
780
- /**
781
- * Alias for the `primary` prop.
782
- */
783
- children: e.node,
784
- /**
785
- * Override or extend the styles applied to the component.
786
- */
787
- classes: e.object,
788
- /**
789
- * @ignore
790
- */
791
- className: e.string,
792
- /**
793
- * If `true`, the children won't be wrapped by a Typography component.
794
- * This can be useful to render an alternative Typography variant by wrapping
795
- * the `children` (or `primary`) text, and optional `secondary` text
796
- * with the Typography component.
797
- * @default false
798
- */
799
- disableTypography: e.bool,
800
- /**
801
- * If `true`, the children are indented.
802
- * This should be used if there is no left avatar or left icon.
803
- * @default false
804
- */
805
- inset: e.bool,
806
- /**
807
- * The main content element.
808
- */
809
- primary: e.node,
810
- /**
811
- * These props will be forwarded to the primary typography component
812
- * (as long as disableTypography is not `true`).
813
- * @deprecated Use `slotProps.primary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
814
- */
815
- primaryTypographyProps: e.object,
816
- /**
817
- * The secondary content element.
818
- */
819
- secondary: e.node,
820
- /**
821
- * These props will be forwarded to the secondary typography component
822
- * (as long as disableTypography is not `true`).
823
- * @deprecated Use `slotProps.secondary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
824
- */
825
- secondaryTypographyProps: e.object,
826
- /**
827
- * The props used for each slot inside.
828
- * @default {}
829
- */
830
- slotProps: e.shape({
831
- primary: e.oneOfType([e.func, e.object]),
832
- root: e.oneOfType([e.func, e.object]),
833
- secondary: e.oneOfType([e.func, e.object])
834
- }),
835
- /**
836
- * The components used for each slot inside.
837
- * @default {}
838
- */
839
- slots: e.shape({
840
- primary: e.elementType,
841
- root: e.elementType,
842
- secondary: e.elementType
843
- }),
844
- /**
845
- * The system prop that allows defining system overrides as well as additional CSS styles.
846
- */
847
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
848
- });
849
- export {
850
- J as G,
851
- Ae as L,
852
- He as a
853
- };