@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,43 +1,45 @@
1
- import * as k from "react";
2
- import { G as S, H as y, I as $, n as v, s as C, q as x, P as a } from "./generateUtilityClasses-BpRGbQmY.js";
3
- import { c as z } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
4
- import { S as O } from "./SwitchBase-BsP35Aas.js";
5
- import { m as l } from "./memoTheme-44McxcVZ.js";
6
- import { jsxs as T, jsx as w } from "react/jsx-runtime";
7
- import { u as R, s as d, c as B } from "./DefaultPropsProvider-Ik4eAJdt.js";
8
- import { c as r } from "./capitalize-DSG2FA7x.js";
9
- import { r as j } from "./refType-DsRJ5_Sj.js";
10
- function M(t) {
11
- return y("MuiSwitch", t);
1
+ import * as P from "react";
2
+ import { P as e } from "./index-Sy88PpwE.js";
3
+ import { F as R, G as j, H as M, n as S, s as N, q as D } from "./generateUtilityClasses-DngCqveO.js";
4
+ import { c as I } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
+ import { S as U } from "./SwitchBase-EDFBMPd7.js";
6
+ import { m as d } from "./memoTheme-nmt7i1dS.js";
7
+ import { u as y } from "./useSlot-BDb1lvxu.js";
8
+ import { jsx as v, jsxs as E } from "react/jsx-runtime";
9
+ import { u as F, s as u, c as q } from "./DefaultPropsProvider-hFv1J_xl.js";
10
+ import { c as n } from "./capitalize-BHFotl9B.js";
11
+ import { r as A } from "./refType-Dp7CJc86.js";
12
+ function V(t) {
13
+ return j("MuiSwitch", t);
12
14
  }
13
- const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), N = (t) => {
15
+ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), X = (t) => {
14
16
  const {
15
- classes: e,
17
+ classes: o,
16
18
  edge: s,
17
- size: c,
18
- color: p,
19
- checked: u,
20
- disabled: g
21
- } = t, h = {
22
- root: ["root", s && `edge${r(s)}`, `size${r(c)}`],
23
- switchBase: ["switchBase", `color${r(p)}`, u && "checked", g && "disabled"],
19
+ size: p,
20
+ color: h,
21
+ checked: f,
22
+ disabled: b
23
+ } = t, m = {
24
+ root: ["root", s && `edge${n(s)}`, `size${n(p)}`],
25
+ switchBase: ["switchBase", `color${n(h)}`, f && "checked", b && "disabled"],
24
26
  thumb: ["thumb"],
25
27
  track: ["track"],
26
28
  input: ["input"]
27
- }, b = B(h, M, e);
29
+ }, g = q(m, V, o);
28
30
  return {
29
- ...e,
31
+ ...o,
30
32
  // forward the disabled and checked classes to the SwitchBase
31
- ...b
33
+ ...g
32
34
  };
33
- }, I = d("span", {
35
+ }, G = u("span", {
34
36
  name: "MuiSwitch",
35
37
  slot: "Root",
36
- overridesResolver: (t, e) => {
38
+ overridesResolver: (t, o) => {
37
39
  const {
38
40
  ownerState: s
39
41
  } = t;
40
- return [e.root, s.edge && e[`edge${r(s.edge)}`], e[`size${r(s.size)}`]];
42
+ return [o.root, s.edge && o[`edge${n(s.edge)}`], o[`size${n(s.size)}`]];
41
43
  }
42
44
  })({
43
45
  display: "inline-flex",
@@ -77,30 +79,30 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
77
79
  width: 40,
78
80
  height: 24,
79
81
  padding: 7,
80
- [`& .${o.thumb}`]: {
82
+ [`& .${a.thumb}`]: {
81
83
  width: 16,
82
84
  height: 16
83
85
  },
84
- [`& .${o.switchBase}`]: {
86
+ [`& .${a.switchBase}`]: {
85
87
  padding: 4,
86
- [`&.${o.checked}`]: {
88
+ [`&.${a.checked}`]: {
87
89
  transform: "translateX(16px)"
88
90
  }
89
91
  }
90
92
  }
91
93
  }]
92
- }), P = d(O, {
94
+ }), H = u(U, {
93
95
  name: "MuiSwitch",
94
96
  slot: "SwitchBase",
95
- overridesResolver: (t, e) => {
97
+ overridesResolver: (t, o) => {
96
98
  const {
97
99
  ownerState: s
98
100
  } = t;
99
- return [e.switchBase, {
100
- [`& .${o.input}`]: e.input
101
- }, s.color !== "default" && e[`color${r(s.color)}`]];
101
+ return [o.switchBase, {
102
+ [`& .${a.input}`]: o.input
103
+ }, s.color !== "default" && o[`color${n(s.color)}`]];
102
104
  }
103
- })(l(({
105
+ })(d(({
104
106
  theme: t
105
107
  }) => ({
106
108
  position: "absolute",
@@ -112,59 +114,59 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
112
114
  transition: t.transitions.create(["left", "transform"], {
113
115
  duration: t.transitions.duration.shortest
114
116
  }),
115
- [`&.${o.checked}`]: {
117
+ [`&.${a.checked}`]: {
116
118
  transform: "translateX(20px)"
117
119
  },
118
- [`&.${o.disabled}`]: {
120
+ [`&.${a.disabled}`]: {
119
121
  color: t.vars ? t.vars.palette.Switch.defaultDisabledColor : `${t.palette.mode === "light" ? t.palette.grey[100] : t.palette.grey[600]}`
120
122
  },
121
- [`&.${o.checked} + .${o.track}`]: {
123
+ [`&.${a.checked} + .${a.track}`]: {
122
124
  opacity: 0.5
123
125
  },
124
- [`&.${o.disabled} + .${o.track}`]: {
126
+ [`&.${a.disabled} + .${a.track}`]: {
125
127
  opacity: t.vars ? t.vars.opacity.switchTrackDisabled : `${t.palette.mode === "light" ? 0.12 : 0.2}`
126
128
  },
127
- [`& .${o.input}`]: {
129
+ [`& .${a.input}`]: {
128
130
  left: "-100%",
129
131
  width: "300%"
130
132
  }
131
- })), l(({
133
+ })), d(({
132
134
  theme: t
133
135
  }) => ({
134
136
  "&:hover": {
135
- backgroundColor: t.vars ? `rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})` : v(t.palette.action.active, t.palette.action.hoverOpacity),
137
+ backgroundColor: t.vars ? `rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})` : S(t.palette.action.active, t.palette.action.hoverOpacity),
136
138
  // Reset on touch devices, it doesn't add specificity
137
139
  "@media (hover: none)": {
138
140
  backgroundColor: "transparent"
139
141
  }
140
142
  },
141
- variants: [...Object.entries(t.palette).filter(z(["light"])).map(([e]) => ({
143
+ variants: [...Object.entries(t.palette).filter(I(["light"])).map(([o]) => ({
142
144
  props: {
143
- color: e
145
+ color: o
144
146
  },
145
147
  style: {
146
- [`&.${o.checked}`]: {
147
- color: (t.vars || t).palette[e].main,
148
+ [`&.${a.checked}`]: {
149
+ color: (t.vars || t).palette[o].main,
148
150
  "&:hover": {
149
- backgroundColor: t.vars ? `rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})` : v(t.palette[e].main, t.palette.action.hoverOpacity),
151
+ backgroundColor: t.vars ? `rgba(${t.vars.palette[o].mainChannel} / ${t.vars.palette.action.hoverOpacity})` : S(t.palette[o].main, t.palette.action.hoverOpacity),
150
152
  "@media (hover: none)": {
151
153
  backgroundColor: "transparent"
152
154
  }
153
155
  },
154
- [`&.${o.disabled}`]: {
155
- color: t.vars ? t.vars.palette.Switch[`${e}DisabledColor`] : `${t.palette.mode === "light" ? C(t.palette[e].main, 0.62) : x(t.palette[e].main, 0.55)}`
156
+ [`&.${a.disabled}`]: {
157
+ color: t.vars ? t.vars.palette.Switch[`${o}DisabledColor`] : `${t.palette.mode === "light" ? N(t.palette[o].main, 0.62) : D(t.palette[o].main, 0.55)}`
156
158
  }
157
159
  },
158
- [`&.${o.checked} + .${o.track}`]: {
159
- backgroundColor: (t.vars || t).palette[e].main
160
+ [`&.${a.checked} + .${a.track}`]: {
161
+ backgroundColor: (t.vars || t).palette[o].main
160
162
  }
161
163
  }
162
164
  }))]
163
- }))), D = d("span", {
165
+ }))), L = u("span", {
164
166
  name: "MuiSwitch",
165
167
  slot: "Track",
166
- overridesResolver: (t, e) => e.track
167
- })(l(({
168
+ overridesResolver: (t, o) => o.track
169
+ })(d(({
168
170
  theme: t
169
171
  }) => ({
170
172
  height: "100%",
@@ -176,11 +178,11 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
176
178
  }),
177
179
  backgroundColor: t.vars ? t.vars.palette.common.onBackground : `${t.palette.mode === "light" ? t.palette.common.black : t.palette.common.white}`,
178
180
  opacity: t.vars ? t.vars.opacity.switchTrack : `${t.palette.mode === "light" ? 0.38 : 0.3}`
179
- }))), U = d("span", {
181
+ }))), _ = u("span", {
180
182
  name: "MuiSwitch",
181
183
  slot: "Thumb",
182
- overridesResolver: (t, e) => e.thumb
183
- })(l(({
184
+ overridesResolver: (t, o) => o.thumb
185
+ })(d(({
184
186
  theme: t
185
187
  }) => ({
186
188
  boxShadow: (t.vars || t).shadows[1],
@@ -188,48 +190,83 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
188
190
  width: 20,
189
191
  height: 20,
190
192
  borderRadius: "50%"
191
- }))), E = /* @__PURE__ */ k.forwardRef(function(e, s) {
192
- const c = R({
193
- props: e,
193
+ }))), J = /* @__PURE__ */ P.forwardRef(function(o, s) {
194
+ const p = F({
195
+ props: o,
194
196
  name: "MuiSwitch"
195
197
  }), {
196
- className: p,
197
- color: u = "primary",
198
- edge: g = !1,
199
- size: h = "medium",
200
- sx: b,
201
- ...m
202
- } = c, i = {
203
- ...c,
204
- color: u,
205
- edge: g,
206
- size: h
207
- }, n = N(i), f = /* @__PURE__ */ w(U, {
208
- className: n.thumb,
198
+ className: h,
199
+ color: f = "primary",
200
+ edge: b = !1,
201
+ size: m = "medium",
202
+ sx: g,
203
+ slots: c = {},
204
+ slotProps: r = {},
205
+ ...$
206
+ } = p, i = {
207
+ ...p,
208
+ color: f,
209
+ edge: b,
210
+ size: m
211
+ }, l = X(i), w = {
212
+ slots: c,
213
+ slotProps: r
214
+ }, [T, C] = y("root", {
215
+ className: M(l.root, h),
216
+ elementType: G,
217
+ externalForwardedProps: w,
218
+ ownerState: i,
219
+ additionalProps: {
220
+ sx: g
221
+ }
222
+ }), [x, O] = y("thumb", {
223
+ className: l.thumb,
224
+ elementType: _,
225
+ externalForwardedProps: w,
226
+ ownerState: i
227
+ }), k = /* @__PURE__ */ v(x, {
228
+ ...O
229
+ }), [B, z] = y("track", {
230
+ className: l.track,
231
+ elementType: L,
232
+ externalForwardedProps: w,
209
233
  ownerState: i
210
234
  });
211
- return /* @__PURE__ */ T(I, {
212
- className: $(n.root, p),
213
- sx: b,
214
- ownerState: i,
215
- children: [/* @__PURE__ */ w(P, {
235
+ return /* @__PURE__ */ E(T, {
236
+ ...C,
237
+ children: [/* @__PURE__ */ v(H, {
216
238
  type: "checkbox",
217
- icon: f,
218
- checkedIcon: f,
239
+ icon: k,
240
+ checkedIcon: k,
219
241
  ref: s,
220
242
  ownerState: i,
221
- ...m,
243
+ ...$,
222
244
  classes: {
223
- ...n,
224
- root: n.switchBase
245
+ ...l,
246
+ root: l.switchBase
247
+ },
248
+ slots: {
249
+ ...c.switchBase && {
250
+ root: c.switchBase
251
+ },
252
+ ...c.input && {
253
+ input: c.input
254
+ }
255
+ },
256
+ slotProps: {
257
+ ...r.switchBase && {
258
+ root: typeof r.switchBase == "function" ? r.switchBase(i) : r.switchBase
259
+ },
260
+ ...r.input && {
261
+ input: typeof r.input == "function" ? r.input(i) : r.input
262
+ }
225
263
  }
226
- }), /* @__PURE__ */ w(D, {
227
- className: n.track,
228
- ownerState: i
264
+ }), /* @__PURE__ */ v(B, {
265
+ ...z
229
266
  })]
230
267
  });
231
268
  });
232
- process.env.NODE_ENV !== "production" && (E.propTypes = {
269
+ process.env.NODE_ENV !== "production" && (J.propTypes = {
233
270
  // ┌────────────────────────────── Warning ──────────────────────────────┐
234
271
  // │ These PropTypes are generated from the TypeScript type definitions. │
235
272
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -237,39 +274,39 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
237
274
  /**
238
275
  * If `true`, the component is checked.
239
276
  */
240
- checked: a.bool,
277
+ checked: e.bool,
241
278
  /**
242
279
  * The icon to display when the component is checked.
243
280
  */
244
- checkedIcon: a.node,
281
+ checkedIcon: e.node,
245
282
  /**
246
283
  * Override or extend the styles applied to the component.
247
284
  */
248
- classes: a.object,
285
+ classes: e.object,
249
286
  /**
250
287
  * @ignore
251
288
  */
252
- className: a.string,
289
+ className: e.string,
253
290
  /**
254
291
  * The color of the component.
255
292
  * It supports both default and custom theme colors, which can be added as shown in the
256
293
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
257
294
  * @default 'primary'
258
295
  */
259
- color: a.oneOfType([a.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), a.string]),
296
+ color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
260
297
  /**
261
298
  * The default checked state. Use when the component is not controlled.
262
299
  */
263
- defaultChecked: a.bool,
300
+ defaultChecked: e.bool,
264
301
  /**
265
302
  * If `true`, the component is disabled.
266
303
  */
267
- disabled: a.bool,
304
+ disabled: e.bool,
268
305
  /**
269
306
  * If `true`, the ripple effect is disabled.
270
307
  * @default false
271
308
  */
272
- disableRipple: a.bool,
309
+ disableRipple: e.bool,
273
310
  /**
274
311
  * If given, uses a negative margin to counteract the padding on one
275
312
  * side (this is often helpful for aligning the left or right
@@ -277,23 +314,25 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
277
314
  * size and shape).
278
315
  * @default false
279
316
  */
280
- edge: a.oneOf(["end", "start", !1]),
317
+ edge: e.oneOf(["end", "start", !1]),
281
318
  /**
282
319
  * The icon to display when the component is unchecked.
283
320
  */
284
- icon: a.node,
321
+ icon: e.node,
285
322
  /**
286
323
  * The id of the `input` element.
287
324
  */
288
- id: a.string,
325
+ id: e.string,
289
326
  /**
290
327
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
328
+ * @deprecated Use `slotProps.input` 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.
291
329
  */
292
- inputProps: a.object,
330
+ inputProps: e.object,
293
331
  /**
294
332
  * Pass a ref to the `input` element.
333
+ * @deprecated Use `slotProps.input.ref` 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.
295
334
  */
296
- inputRef: j,
335
+ inputRef: A,
297
336
  /**
298
337
  * Callback fired when the state is changed.
299
338
  *
@@ -301,30 +340,52 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
301
340
  * You can pull out the new value by accessing `event.target.value` (string).
302
341
  * You can pull out the new checked state by accessing `event.target.checked` (boolean).
303
342
  */
304
- onChange: a.func,
343
+ onChange: e.func,
305
344
  /**
306
345
  * If `true`, the `input` element is required.
307
346
  * @default false
308
347
  */
309
- required: a.bool,
348
+ required: e.bool,
310
349
  /**
311
350
  * The size of the component.
312
351
  * `small` is equivalent to the dense switch styling.
313
352
  * @default 'medium'
314
353
  */
315
- size: a.oneOfType([a.oneOf(["medium", "small"]), a.string]),
354
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
355
+ /**
356
+ * The props used for each slot inside.
357
+ * @default {}
358
+ */
359
+ slotProps: e.shape({
360
+ input: e.oneOfType([e.func, e.object]),
361
+ root: e.oneOfType([e.func, e.object]),
362
+ switchBase: e.oneOfType([e.func, e.object]),
363
+ thumb: e.oneOfType([e.func, e.object]),
364
+ track: e.oneOfType([e.func, e.object])
365
+ }),
366
+ /**
367
+ * The components used for each slot inside.
368
+ * @default {}
369
+ */
370
+ slots: e.shape({
371
+ input: e.elementType,
372
+ root: e.elementType,
373
+ switchBase: e.elementType,
374
+ thumb: e.elementType,
375
+ track: e.elementType
376
+ }),
316
377
  /**
317
378
  * The system prop that allows defining system overrides as well as additional CSS styles.
318
379
  */
319
- sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
380
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
320
381
  /**
321
382
  * The value of the component. The DOM API casts this to a string.
322
383
  * The browser uses "on" as the default value.
323
384
  */
324
- value: a.any
385
+ value: e.any
325
386
  });
326
387
  export {
327
- E as S,
328
- M as g,
329
- o as s
388
+ J as S,
389
+ V as g,
390
+ a as s
330
391
  };
@@ -0,0 +1 @@
1
+ "use strict";const R=require("react"),t=require("./index-DLnSn8GT.cjs"),n=require("./generateUtilityClasses-CMlilM6r.cjs"),q=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),M=require("./SwitchBase-DvCITKv8.cjs"),T=require("./memoTheme-BAbn60Cb.cjs"),m=require("./useSlot-W0PiuVaZ.cjs"),y=require("react/jsx-runtime"),l=require("./DefaultPropsProvider-B1crdkTC.cjs"),c=require("./capitalize-CKLkSyDO.cjs"),D=require("./refType-B_IEJm4x.cjs");function N(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,i.get?i:{enumerable:!0,get:()=>e[s]})}}return o.default=e,Object.freeze(o)}const U=N(R);function S(e){return n.generateUtilityClass("MuiSwitch",e)}const r=n.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I=e=>{const{classes:o,edge:s,size:i,color:h,checked:P,disabled:b}=e,f={root:["root",s&&`edge${c.capitalize(s)}`,`size${c.capitalize(i)}`],switchBase:["switchBase",`color${c.capitalize(h)}`,P&&"checked",b&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},g=l.composeClasses(f,S,o);return{...o,...g}},_=l.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.root,s.edge&&o[`edge${c.capitalize(s.edge)}`],o[`size${c.capitalize(s.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${r.thumb}`]:{width:16,height:16},[`& .${r.switchBase}`]:{padding:4,[`&.${r.checked}`]:{transform:"translateX(16px)"}}}}]}),E=l.styled(M.SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.switchBase,{[`& .${r.input}`]:o.input},s.color!=="default"&&o[`color${c.capitalize(s.color)}`]]}})(T.memoTheme(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${r.checked}`]:{transform:"translateX(20px)"},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${r.checked} + .${r.track}`]:{opacity:.5},[`&.${r.disabled} + .${r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${r.input}`]:{left:"-100%",width:"300%"}})),T.memoTheme(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:n.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(q.createSimplePaletteValueFilter(["light"])).map(([o])=>({props:{color:o},style:{[`&.${r.checked}`]:{color:(e.vars||e).palette[o].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:n.alpha(e.palette[o].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${o}DisabledColor`]:`${e.palette.mode==="light"?n.lighten(e.palette[o].main,.62):n.darken(e.palette[o].main,.55)}`}},[`&.${r.checked} + .${r.track}`]:{backgroundColor:(e.vars||e).palette[o].main}}}))]}))),F=l.styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,o)=>o.track})(T.memoTheme(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),V=l.styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,o)=>o.thumb})(T.memoTheme(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),k=U.forwardRef(function(o,s){const i=l.useDefaultProps({props:o,name:"MuiSwitch"}),{className:h,color:P="primary",edge:b=!1,size:f="medium",sx:g,slots:d={},slotProps:a={},...$}=i,p={...i,color:P,edge:b,size:f},u=I(p),w={slots:d,slotProps:a},[C,O]=m.useSlot("root",{className:n.clsx(u.root,h),elementType:_,externalForwardedProps:w,ownerState:p,additionalProps:{sx:g}}),[x,z]=m.useSlot("thumb",{className:u.thumb,elementType:V,externalForwardedProps:w,ownerState:p}),v=y.jsx(x,{...z}),[j,B]=m.useSlot("track",{className:u.track,elementType:F,externalForwardedProps:w,ownerState:p});return y.jsxs(C,{...O,children:[y.jsx(E,{type:"checkbox",icon:v,checkedIcon:v,ref:s,ownerState:p,...$,classes:{...u,root:u.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...a.switchBase&&{root:typeof a.switchBase=="function"?a.switchBase(p):a.switchBase},...a.input&&{input:typeof a.input=="function"?a.input(p):a.input}}}),y.jsx(j,{...B})]})});process.env.NODE_ENV!=="production"&&(k.propTypes={checked:t.PropTypes.bool,checkedIcon:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),t.PropTypes.string]),defaultChecked:t.PropTypes.bool,disabled:t.PropTypes.bool,disableRipple:t.PropTypes.bool,edge:t.PropTypes.oneOf(["end","start",!1]),icon:t.PropTypes.node,id:t.PropTypes.string,inputProps:t.PropTypes.object,inputRef:D.refType,onChange:t.PropTypes.func,required:t.PropTypes.bool,size:t.PropTypes.oneOfType([t.PropTypes.oneOf(["medium","small"]),t.PropTypes.string]),slotProps:t.PropTypes.shape({input:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),switchBase:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),thumb:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),track:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),slots:t.PropTypes.shape({input:t.PropTypes.elementType,root:t.PropTypes.elementType,switchBase:t.PropTypes.elementType,thumb:t.PropTypes.elementType,track:t.PropTypes.elementType}),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),value:t.PropTypes.any});exports.Switch=k;exports.getSwitchUtilityClass=S;exports.switchClasses=r;
@@ -0,0 +1 @@
1
+ "use strict";const W=require("react"),e=require("./index-DLnSn8GT.cjs"),d=require("./DefaultPropsProvider-B1crdkTC.cjs"),X=require("./useFormControl-haP0iPhl.cjs"),w=require("./generateUtilityClasses-CMlilM6r.cjs"),F=require("./useSlot-W0PiuVaZ.cjs"),k=require("react/jsx-runtime"),Y=require("./useControlled-Ysk4KqoX.cjs"),Z=require("./capitalize-CKLkSyDO.cjs"),ee=require("./ButtonBase-Cteo-mSC.cjs"),oe=require("./refType-B_IEJm4x.cjs");function te(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,c.get?c:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const se=te(W);function re(t){return w.generateUtilityClass("PrivateSwitchBase",t)}w.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ne=t=>{const{classes:s,checked:n,disabled:c,edge:a}=t,y={root:["root",n&&"checked",c&&"disabled",a&&`edge${Z.capitalize(a)}`],input:["input"]};return d.composeClasses(y,re,s)},pe=d.styled(ee.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:s})=>t==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:s})=>t==="end"&&s.size!=="small",style:{marginRight:-12}}]}),ie=d.styled("input",{shouldForwardProp:d.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),R=se.forwardRef(function(s,n){const{autoFocus:c,checked:a,checkedIcon:y,defaultChecked:f,disabled:q,disableFocusRipple:T=!1,edge:x=!1,icon:j,id:O,inputProps:I,inputRef:z,name:N,onBlur:g,onChange:b,onFocus:h,readOnly:v,required:U=!1,tabIndex:D,type:u,value:m,slots:E={},slotProps:_={},...L}=s,[S,M]=Y.useControlled({controlled:a,default:!!f,name:"SwitchBase",state:"checked"}),p=X.useFormControl(),V=o=>{h&&h(o),p&&p.onFocus&&p.onFocus(o)},$=o=>{g&&g(o),p&&p.onBlur&&p.onBlur(o)},A=o=>{if(o.nativeEvent.defaultPrevented)return;const r=o.target.checked;M(r),b&&b(o,r)};let l=q;p&&typeof l>"u"&&(l=p.disabled);const G=u==="checkbox"||u==="radio",P={...s,checked:S,disabled:l,disableFocusRipple:T,edge:x},B=ne(P),C={slots:E,slotProps:{input:I,..._}},[H,J]=F.useSlot("root",{ref:n,elementType:pe,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...C,component:"span",...L},getSlotProps:o=>({...o,onFocus:r=>{var i;(i=o.onFocus)==null||i.call(o,r),V(r)},onBlur:r=>{var i;(i=o.onBlur)==null||i.call(o,r),$(r)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!T,disabled:l,role:void 0,tabIndex:null}}),[K,Q]=F.useSlot("input",{ref:z,elementType:ie,className:B.input,externalForwardedProps:C,getSlotProps:o=>({...o,onChange:r=>{var i;(i=o.onChange)==null||i.call(o,r),A(r)}}),ownerState:P,additionalProps:{autoFocus:c,checked:a,defaultChecked:f,disabled:l,id:G?O:void 0,name:N,readOnly:v,required:U,tabIndex:D,type:u,...u==="checkbox"&&m===void 0?{}:{value:m}}});return k.jsxs(H,{...J,children:[k.jsx(K,{...Q}),S?y:j]})});process.env.NODE_ENV!=="production"&&(R.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:oe.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({input:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=R;