@cgi-learning-hub/ui 1.7.0-dev.1754301696 → 1.7.0-dev.1754384740

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 (296) hide show
  1. package/dist/{Alert-D7CiHM6d.js → Alert-6yOnGlLE.js} +6 -6
  2. package/dist/Alert-CWHOYWde.cjs +1 -0
  3. package/dist/Alert-D4-73fYc.cjs +1 -0
  4. package/dist/{Alert-kxWN2hw0.js → Alert-D6SQnjuJ.js} +83 -84
  5. package/dist/{Autocomplete-BfNqYbav.js → Autocomplete-B8u-WYi5.js} +690 -675
  6. package/dist/Autocomplete-BA6NkciB.cjs +6 -0
  7. package/dist/Backdrop-Dp1hKKfU.cjs +1 -0
  8. package/dist/{Backdrop-D7dPrxSb.js → Backdrop-DuOPKUSY.js} +36 -35
  9. package/dist/{Badge-DBzOcFK5.js → Badge-BJ4yH_Da.js} +9 -10
  10. package/dist/Badge-XMr4Ygjv.cjs +1 -0
  11. package/dist/Box-B5E7sstc.cjs +1 -0
  12. package/dist/{Box-CBqFcDTK.js → Box-BWETzF5p.js} +3 -3
  13. package/dist/Button-BJB830NI.cjs +1 -0
  14. package/dist/{Button-CdzT4uYI.js → Button-C8_HxKFe.js} +139 -173
  15. package/dist/{ButtonBase-C1FIHWcD.js → ButtonBase-CJYV8wgs.js} +2 -2
  16. package/dist/{ButtonBase-BOnOTx73.cjs → ButtonBase-DPIkh47Q.cjs} +1 -1
  17. package/dist/CardContent-H0z20SY7.cjs +1 -0
  18. package/dist/{CardContent-cbluqmUz.js → CardContent-V9JMSLmA.js} +3 -3
  19. package/dist/Checkbox-BZPMiwbF.cjs +1 -0
  20. package/dist/{Checkbox-CXMDqMmf.js → Checkbox-DMMz_IAP.js} +85 -86
  21. package/dist/Chip-BDVqkZZM.js +573 -0
  22. package/dist/Chip-DMBSp59F.cjs +1 -0
  23. package/dist/CircularProgress-BMVNeiSf.cjs +28 -0
  24. package/dist/{CircularProgress-ByBabaUG.js → CircularProgress-CrWnCGqN.js} +13 -14
  25. package/dist/{Close-NlNVwj8F.cjs → Close-2eEmvKPH.cjs} +1 -1
  26. package/dist/{Close-BjQCC0qE.js → Close-Cr2OT0GV.js} +1 -1
  27. package/dist/{CloseRounded-XK3z7Pzh.cjs → CloseRounded-B6cT7aGi.cjs} +1 -1
  28. package/dist/{CloseRounded-DHTxUBWk.js → CloseRounded-BrGeesu1.js} +1 -1
  29. package/dist/{CustomTreeItem-C1bfen5B.cjs → CustomTreeItem-BXgsWbl_.cjs} +1 -1
  30. package/dist/{CustomTreeItem-D-4kMx41.js → CustomTreeItem-DhB3ECa2.js} +12 -12
  31. package/dist/DatePicker-DtPvvFiK.cjs +16 -0
  32. package/dist/{DatePicker-DZrDegSu.js → DatePicker-ofISDY8Q.js} +2862 -2864
  33. package/dist/DefaultPropsProvider-BFTLy05-.cjs +1 -0
  34. package/dist/{DefaultPropsProvider-BrNsAtD3.js → DefaultPropsProvider-nxIPd34m.js} +23 -23
  35. package/dist/{Delete-jSTHS8bP.cjs → Delete-BF63Gpr-.cjs} +1 -1
  36. package/dist/{Delete-De1w6Wb0.js → Delete-CwWpjEOT.js} +1 -1
  37. package/dist/Dialog-Cymf3DJ2.cjs +1 -0
  38. package/dist/{Dialog-Cx__5cTV.js → Dialog-eK1zTFBm.js} +14 -15
  39. package/dist/{DialogContent-DrRkY205.js → DialogContent-BsPZJR2a.js} +3 -3
  40. package/dist/DialogContent-Gy1s3ela.cjs +1 -0
  41. package/dist/DialogTitle-BDyrzRXS.cjs +1 -0
  42. package/dist/{DialogTitle-CdH-pj3R.js → DialogTitle-CaAd59jN.js} +5 -5
  43. package/dist/Divider-BzdMIEJJ.cjs +1 -0
  44. package/dist/{Divider-BTDjUp2v.js → Divider-D_gbcyWE.js} +26 -26
  45. package/dist/{Folder-BdmrBiSE.js → Folder-COKXTjZ4.js} +1 -1
  46. package/dist/{Folder-Ry-DhShC.cjs → Folder-D0fZbyc-.cjs} +1 -1
  47. package/dist/FormLabel-BLySmpkL.cjs +2 -0
  48. package/dist/{FormLabel-BqkN_xxS.js → FormLabel-DmLckqyT.js} +15 -16
  49. package/dist/Grid-DFaRzlB4.cjs +2 -0
  50. package/dist/{Grid-Dal_bzkG.js → Grid-vM--ojbL.js} +74 -82
  51. package/dist/{Grow-BpiZp6xU.js → Grow-DE5x7F5S.js} +1 -1
  52. package/dist/{Grow-DPkmt9jI.cjs → Grow-ovNT7Sot.cjs} +1 -1
  53. package/dist/IconButton-DCQiOq7W.cjs +2 -0
  54. package/dist/{IconButton-BrEiwZs1.js → IconButton-f9EZgwvD.js} +66 -67
  55. package/dist/{InputAdornment-6pibWhBs.js → InputAdornment-B615VSjF.js} +14 -15
  56. package/dist/InputAdornment-BrrJ8chb.cjs +1 -0
  57. package/dist/{InputBase--Jk0Al5O.js → InputBase-BCbPPzW1.js} +50 -51
  58. package/dist/InputBase-CRrFludT.cjs +4 -0
  59. package/dist/Link-CMes5bws.cjs +1 -0
  60. package/dist/{Link-8wJ87d6M.js → Link-GBRiPElP.js} +56 -44
  61. package/dist/{List-q9c0EQIN.js → List-DZkddOsr.js} +2 -2
  62. package/dist/List-E_TAQ1jJ.cjs +1 -0
  63. package/dist/{ListItem-iH38wGFD.js → ListItem-CMoibMI7.js} +4 -4
  64. package/dist/ListItem-qTKJTg7f.cjs +1 -0
  65. package/dist/ListItemText-B3z5dHrQ.cjs +1 -0
  66. package/dist/{ListItemText-7p6JHq3z.js → ListItemText-BbrPf29n.js} +139 -139
  67. package/dist/{Menu-B-AGEy5x.js → Menu-3UjlpKRJ.js} +28 -28
  68. package/dist/{Menu-CZF84BcH.cjs → Menu-C0uY9Dd0.cjs} +5 -5
  69. package/dist/MenuItem--a878rw9.cjs +1 -0
  70. package/dist/{MenuItem-D-Y0l50p.js → MenuItem-CHEWce5u.js} +94 -94
  71. package/dist/Modal-CdcolE0C.cjs +2 -0
  72. package/dist/{Modal-rm4Wr5mr.js → Modal-Du5LfkZg.js} +6 -6
  73. package/dist/{MoreVert-4w5beLFq.cjs → MoreVert-DZjEMvuw.cjs} +1 -1
  74. package/dist/{MoreVert-K_wr6kJS.js → MoreVert-PLU7h8WO.js} +1 -1
  75. package/dist/{Paper-CFhnudKQ.js → Paper-BylmTlAJ.js} +4 -4
  76. package/dist/Paper-DgHGh6vt.cjs +2 -0
  77. package/dist/Popper-BsNp09Gg.cjs +4 -0
  78. package/dist/{Popper-tW85AcRT.js → Popper-CvQLHjwo.js} +4 -4
  79. package/dist/{Portal-DZrHcvYi.js → Portal-BlK6ttxt.js} +15 -15
  80. package/dist/Portal-CPOCKeMh.cjs +1 -0
  81. package/dist/Radio-CLNMQGNf.cjs +1 -0
  82. package/dist/{Radio-C1IIog7f.js → Radio-CbYgci2-.js} +124 -120
  83. package/dist/{RadioGroup-C03E_nJT.js → RadioGroup-D-Cq8SmM.js} +3 -3
  84. package/dist/RadioGroup-Dyf8fKum.cjs +1 -0
  85. package/dist/{Select-qUF3oQz8.js → Select-Bx0yVOZE.js} +596 -563
  86. package/dist/Select-CRVPbesC.cjs +3 -0
  87. package/dist/Stack-COmIqMxy.cjs +1 -0
  88. package/dist/{Stack-D1BZQ4nk.js → Stack-CbK4a2n5.js} +16 -16
  89. package/dist/Stepper-CWq9t5jy.cjs +1 -0
  90. package/dist/{Stepper-N5qN-x7q.js → Stepper-DU9nixCp.js} +22 -23
  91. package/dist/{Switch-PlSZBWfd.js → Switch-Bm3Gclye.js} +97 -95
  92. package/dist/Switch-kHZOqjeU.cjs +1 -0
  93. package/dist/{SwitchBase-CAOV2ay6.js → SwitchBase-9CKmTWdZ.js} +50 -48
  94. package/dist/SwitchBase-Hbqxtooi.cjs +1 -0
  95. package/dist/{Tab-DfH7qAIY.js → Tab-DBCv1T9W.js} +75 -76
  96. package/dist/Tab-DnxFjc89.cjs +4 -0
  97. package/dist/TextField-BhdmUny-.cjs +1 -0
  98. package/dist/{TextField-CUhKk24w.js → TextField-V-EQ80Y6.js} +22 -23
  99. package/dist/ToggleButtonGroup-B2FBwoDV.cjs +138 -0
  100. package/dist/{ToggleButtonGroup-D_I3DjEz.js → ToggleButtonGroup-_UpIjysl.js} +1742 -1760
  101. package/dist/{Tooltip-BLSnjkFh.js → Tooltip-DKHOTDh0.js} +84 -85
  102. package/dist/Tooltip-DYTDIzp4.cjs +4 -0
  103. package/dist/Typography-BvRUTdLD.cjs +1 -0
  104. package/dist/{Typography-Bdfl0Alf.js → Typography-o0iALAVg.js} +6 -7
  105. package/dist/components/ActionBar/style.cjs.js +1 -1
  106. package/dist/components/ActionBar/style.es.js +2 -2
  107. package/dist/components/Alert/Alert.cjs.js +1 -1
  108. package/dist/components/Alert/Alert.es.js +4 -4
  109. package/dist/components/Alert/index.cjs.js +1 -1
  110. package/dist/components/Alert/index.es.js +1 -1
  111. package/dist/components/Button/Button.cjs.js +1 -1
  112. package/dist/components/Button/Button.es.js +2 -2
  113. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  114. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  115. package/dist/components/DatePicker/index.cjs.js +1 -1
  116. package/dist/components/DatePicker/index.es.js +1 -1
  117. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  118. package/dist/components/Dialog/Dialog.es.js +2 -2
  119. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  120. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  121. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  122. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  123. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  124. package/dist/components/FileList/FileIcon.es.js +1 -1
  125. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  126. package/dist/components/FileList/FileListItem.es.js +4 -4
  127. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  128. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  129. package/dist/components/Heading/Heading.cjs.js +1 -1
  130. package/dist/components/Heading/Heading.es.js +2 -2
  131. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  132. package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
  133. package/dist/components/Loader/Loader.cjs.js +1 -1
  134. package/dist/components/Loader/Loader.es.js +1 -1
  135. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  136. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  137. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  138. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  139. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  140. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  141. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  142. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  143. package/dist/components/TreeView/TreeView.cjs.js +2 -2
  144. package/dist/components/TreeView/TreeView.es.js +39 -39
  145. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  146. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  147. package/dist/components/TreeView/utils.cjs.js +1 -1
  148. package/dist/components/TreeView/utils.es.js +3 -3
  149. package/dist/components/index.cjs.js +1 -1
  150. package/dist/components/index.es.js +44 -44
  151. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  152. package/dist/components/stories/Alert.stories.es.js +1 -1
  153. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  154. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  155. package/dist/components/stories/Badge.stories.cjs.js +1 -1
  156. package/dist/components/stories/Badge.stories.es.js +2 -2
  157. package/dist/components/stories/Button.stories.cjs.js +1 -1
  158. package/dist/components/stories/Button.stories.es.js +1 -1
  159. package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
  160. package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
  161. package/dist/components/stories/Card.stories.cjs.js +1 -1
  162. package/dist/components/stories/Card.stories.es.js +2 -2
  163. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  164. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  165. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  166. package/dist/components/stories/Chip.stories.es.js +1 -1
  167. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  168. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  169. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  170. package/dist/components/stories/Dialog.stories.es.js +2 -2
  171. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  172. package/dist/components/stories/Divider.stories.es.js +1 -1
  173. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  174. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  175. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  176. package/dist/components/stories/Heading.stories.es.js +2 -2
  177. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  178. package/dist/components/stories/IconButton.stories.es.js +2 -2
  179. package/dist/components/stories/Link.stories.cjs.js +1 -1
  180. package/dist/components/stories/Link.stories.es.js +1 -1
  181. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  182. package/dist/components/stories/Menu.stories.es.js +2 -2
  183. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  184. package/dist/components/stories/Paper.stories.es.js +1 -1
  185. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  186. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  187. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  188. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  189. package/dist/components/stories/Select.stories.cjs.js +1 -1
  190. package/dist/components/stories/Select.stories.es.js +3 -3
  191. package/dist/components/stories/Stepper.stories.cjs.js +1 -1
  192. package/dist/components/stories/Stepper.stories.es.js +4 -4
  193. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  194. package/dist/components/stories/TabList.stories.es.js +1 -1
  195. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  196. package/dist/components/stories/TextField.stories.es.js +1 -1
  197. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  198. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  199. package/dist/components/stories/TreeView.stories.cjs.js +1 -1
  200. package/dist/components/stories/TreeView.stories.es.js +12 -12
  201. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  202. package/dist/components/stories/Typography.stories.es.js +1 -1
  203. package/dist/createSvgIcon-BJRigbha.cjs +1 -0
  204. package/dist/{createSvgIcon-nrGLeL-I.js → createSvgIcon-BV54rC7k.js} +7 -8
  205. package/dist/dividerClasses-CbwbHy8r.cjs +1 -0
  206. package/dist/{dividerClasses-Cds5AHtx.js → dividerClasses-DDXs86hs.js} +1 -1
  207. package/dist/extendSxProp-CxMSlckP.cjs +1 -0
  208. package/dist/{extendSxProp-e_bx8m3Z.js → extendSxProp-XouBF-Ct.js} +1 -1
  209. package/dist/identifier-DBvccNCw.cjs +55 -0
  210. package/dist/{generateUtilityClasses-32ARRWdA.js → identifier-Dnc8T93Z.js} +1062 -1021
  211. package/dist/{index-B9KBbi0q.js → index-9te7SXrs.js} +4 -4
  212. package/dist/index-BkNQtUZJ.cjs +1 -0
  213. package/dist/index.cjs.js +1 -1
  214. package/dist/index.es.js +44 -44
  215. package/dist/{listItemTextClasses-D1H_8v-c.js → listItemTextClasses-4p_83pwn.js} +1 -1
  216. package/dist/listItemTextClasses-Cxo4anAo.cjs +1 -0
  217. package/dist/{memoTheme-BsSXjuJK.cjs → memoTheme-Dv-rDqFz.cjs} +1 -1
  218. package/dist/{memoTheme-BBxIYGG7.js → memoTheme-K37vidlb.js} +1 -1
  219. package/dist/mergeSlotProps-CXO1f70l.cjs +1 -0
  220. package/dist/{mergeSlotProps-r8Lw8Cah.js → mergeSlotProps-DSWiBSbD.js} +1 -1
  221. package/dist/styled-B7pKW9DQ.cjs +1 -0
  222. package/dist/styled-JnAdiSL5.js +5 -0
  223. package/dist/{useSlot-DnOTNYbF.js → useSlot-GooGQrej.js} +1 -1
  224. package/dist/useSlot-ONna5RyM.cjs +1 -0
  225. package/dist/{useSlotProps-BwBEemtt.js → useSlotProps-C34Wr67s.js} +1 -1
  226. package/dist/{useSlotProps-5aNXGFYF.cjs → useSlotProps-CtYqUyy1.cjs} +1 -1
  227. package/dist/useTheme-CH7DA5fq.js +11 -0
  228. package/dist/useTheme-D6wPRo0G.cjs +1 -0
  229. package/dist/useTheme-DkiCyF-9.cjs +1 -0
  230. package/dist/{useTheme-CMVVKo4v.js → useTheme-VH02z7nF.js} +1 -1
  231. package/dist/{useThemeProps-BIb0QYVO.cjs → useThemeProps-BU5PNyhK.cjs} +1 -1
  232. package/dist/useThemeProps-CnZ-QgwI.cjs +1 -0
  233. package/dist/useThemeProps-DT4QxdFn.js +17 -0
  234. package/dist/{useThemeProps-lFVeX-f0.js → useThemeProps-DZ05-54P.js} +4 -4
  235. package/package.json +7 -7
  236. package/dist/Alert-C6iEisoq.cjs +0 -1
  237. package/dist/Alert-D4JVZyQU.cjs +0 -1
  238. package/dist/Autocomplete-1xee2eiQ.cjs +0 -6
  239. package/dist/Backdrop-DgkaE-oT.cjs +0 -1
  240. package/dist/Badge-BUbP5vp-.cjs +0 -1
  241. package/dist/Box-C1W2izKY.cjs +0 -1
  242. package/dist/Button-cDSw19Nq.cjs +0 -1
  243. package/dist/CardContent-D4botNGC.cjs +0 -1
  244. package/dist/Checkbox-BXKolrmm.cjs +0 -1
  245. package/dist/Chip-BpeHDShb.js +0 -573
  246. package/dist/Chip-Ch-5oIUc.cjs +0 -1
  247. package/dist/CircularProgress-CTG6zAAM.cjs +0 -28
  248. package/dist/DatePicker-Slqqr585.cjs +0 -16
  249. package/dist/DefaultPropsProvider-H9bB_0gL.cjs +0 -1
  250. package/dist/Dialog-CzMU1Vaw.cjs +0 -1
  251. package/dist/DialogContent-mzqgUnTG.cjs +0 -1
  252. package/dist/DialogTitle-Ba_P5rRd.cjs +0 -1
  253. package/dist/Divider-CZPVxsPO.cjs +0 -1
  254. package/dist/FormLabel-DJ9MlN95.cjs +0 -2
  255. package/dist/Grid-gwsV6B8i.cjs +0 -2
  256. package/dist/IconButton-DQ0-3085.cjs +0 -2
  257. package/dist/InputAdornment-BM3llcq_.cjs +0 -1
  258. package/dist/InputBase-C4hx7uf2.cjs +0 -4
  259. package/dist/Link-CIQePe28.cjs +0 -1
  260. package/dist/List--5MPONUQ.cjs +0 -1
  261. package/dist/ListItem-C2_Z7drq.cjs +0 -1
  262. package/dist/ListItemText-D9-Pz-Pv.cjs +0 -1
  263. package/dist/MenuItem-Tfoo4dBw.cjs +0 -1
  264. package/dist/Modal-DeI0Mlfa.cjs +0 -2
  265. package/dist/Paper-_oaR1_0W.cjs +0 -2
  266. package/dist/Popper-D60dNc4H.cjs +0 -4
  267. package/dist/Portal-BXwfYalF.cjs +0 -1
  268. package/dist/Radio-DTyaqbCx.cjs +0 -1
  269. package/dist/RadioGroup-Ch703c6I.cjs +0 -1
  270. package/dist/Select-BFy88I22.cjs +0 -3
  271. package/dist/Stack-DraxEahz.cjs +0 -1
  272. package/dist/Stepper-DZ3G6yg0.cjs +0 -1
  273. package/dist/Switch-JAYiSudG.cjs +0 -1
  274. package/dist/SwitchBase-CLGs4Tit.cjs +0 -1
  275. package/dist/Tab-BnZwSzzt.cjs +0 -4
  276. package/dist/TextField-3tuxHLZ9.cjs +0 -1
  277. package/dist/ToggleButtonGroup-BZRf-b3W.cjs +0 -138
  278. package/dist/Tooltip-Bzb_mXr7.cjs +0 -4
  279. package/dist/Typography-CZKR4ZRK.cjs +0 -1
  280. package/dist/capitalize-CgHuXq7I.js +0 -9
  281. package/dist/capitalize-N-bUbBKG.cjs +0 -1
  282. package/dist/composeClasses-CZaHK87I.js +0 -51
  283. package/dist/composeClasses-DLNLdr2K.cjs +0 -1
  284. package/dist/createSvgIcon-DzMPK9Wt.cjs +0 -1
  285. package/dist/dividerClasses-DT1ACCA-.cjs +0 -1
  286. package/dist/extendSxProp-IrF6qCII.cjs +0 -1
  287. package/dist/generateUtilityClasses-CdsrTlgj.cjs +0 -55
  288. package/dist/index-DGUCeeBA.cjs +0 -1
  289. package/dist/listItemTextClasses-BK-fvEix.cjs +0 -1
  290. package/dist/mergeSlotProps-wZnr2VqA.cjs +0 -1
  291. package/dist/useSlot-BI_E4Zjs.cjs +0 -1
  292. package/dist/useTheme-6FgHgKII.cjs +0 -1
  293. package/dist/useTheme-Bjns7t5p.js +0 -11
  294. package/dist/useTheme-BxDf8E3o.cjs +0 -1
  295. package/dist/useThemeProps-BwzAhOV5.cjs +0 -1
  296. package/dist/useThemeProps-DV7UxDZG.js +0 -17
@@ -1,45 +1,44 @@
1
- import * as P from "react";
2
- import { P as e } from "./index-Sy88PpwE.js";
3
- import { F as j, G as R, H as M, n as S, s as N, q as D } from "./generateUtilityClasses-32ARRWdA.js";
4
- import { c as I } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
- import { S as U } from "./SwitchBase-CAOV2ay6.js";
6
- import { m as d } from "./memoTheme-BBxIYGG7.js";
7
- import { u as y } from "./useSlot-DnOTNYbF.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-BrNsAtD3.js";
10
- import { c as n } from "./capitalize-CgHuXq7I.js";
11
- import { r as A } from "./refType-Dp7CJc86.js";
12
- function V(t) {
13
- return R("MuiSwitch", t);
1
+ import * as z from "react";
2
+ import { P as o } from "./index-Sy88PpwE.js";
3
+ import { F as P, G as j, H as R, K as n } from "./identifier-Dnc8T93Z.js";
4
+ import { c as M } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
+ import { S as N } from "./SwitchBase-9CKmTWdZ.js";
6
+ import { m as d } from "./memoTheme-K37vidlb.js";
7
+ import { u as y } from "./useSlot-GooGQrej.js";
8
+ import { jsx as k, jsxs as D } from "react/jsx-runtime";
9
+ import { u as I, s as u, c as U } from "./DefaultPropsProvider-nxIPd34m.js";
10
+ import { r as E } from "./refType-Dp7CJc86.js";
11
+ function F(t) {
12
+ return j("MuiSwitch", t);
14
13
  }
15
- const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), X = (t) => {
14
+ const a = P("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), A = (t) => {
16
15
  const {
17
- classes: o,
16
+ classes: e,
18
17
  edge: s,
19
18
  size: p,
20
19
  color: h,
21
20
  checked: f,
22
21
  disabled: b
23
- } = t, m = {
22
+ } = t, w = {
24
23
  root: ["root", s && `edge${n(s)}`, `size${n(p)}`],
25
24
  switchBase: ["switchBase", `color${n(h)}`, f && "checked", b && "disabled"],
26
25
  thumb: ["thumb"],
27
26
  track: ["track"],
28
27
  input: ["input"]
29
- }, g = q(m, V, o);
28
+ }, g = U(w, F, e);
30
29
  return {
31
- ...o,
30
+ ...e,
32
31
  // forward the disabled and checked classes to the SwitchBase
33
32
  ...g
34
33
  };
35
- }, G = u("span", {
34
+ }, V = u("span", {
36
35
  name: "MuiSwitch",
37
36
  slot: "Root",
38
- overridesResolver: (t, o) => {
37
+ overridesResolver: (t, e) => {
39
38
  const {
40
39
  ownerState: s
41
40
  } = t;
42
- return [o.root, s.edge && o[`edge${n(s.edge)}`], o[`size${n(s.size)}`]];
41
+ return [e.root, s.edge && e[`edge${n(s.edge)}`], e[`size${n(s.size)}`]];
43
42
  }
44
43
  })({
45
44
  display: "inline-flex",
@@ -91,16 +90,16 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
91
90
  }
92
91
  }
93
92
  }]
94
- }), H = u(U, {
93
+ }), X = u(N, {
95
94
  name: "MuiSwitch",
96
95
  slot: "SwitchBase",
97
- overridesResolver: (t, o) => {
96
+ overridesResolver: (t, e) => {
98
97
  const {
99
98
  ownerState: s
100
99
  } = t;
101
- return [o.switchBase, {
102
- [`& .${a.input}`]: o.input
103
- }, s.color !== "default" && o[`color${n(s.color)}`]];
100
+ return [e.switchBase, {
101
+ [`& .${a.input}`]: e.input
102
+ }, s.color !== "default" && e[`color${n(s.color)}`]];
104
103
  }
105
104
  })(d(({
106
105
  theme: t
@@ -134,35 +133,35 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
134
133
  theme: t
135
134
  }) => ({
136
135
  "&:hover": {
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
+ backgroundColor: t.alpha((t.vars || t).palette.action.active, (t.vars || t).palette.action.hoverOpacity),
138
137
  // Reset on touch devices, it doesn't add specificity
139
138
  "@media (hover: none)": {
140
139
  backgroundColor: "transparent"
141
140
  }
142
141
  },
143
- variants: [...Object.entries(t.palette).filter(I(["light"])).map(([o]) => ({
142
+ variants: [...Object.entries(t.palette).filter(M(["light"])).map(([e]) => ({
144
143
  props: {
145
- color: o
144
+ color: e
146
145
  },
147
146
  style: {
148
147
  [`&.${a.checked}`]: {
149
- color: (t.vars || t).palette[o].main,
148
+ color: (t.vars || t).palette[e].main,
150
149
  "&:hover": {
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
+ backgroundColor: t.alpha((t.vars || t).palette[e].main, (t.vars || t).palette.action.hoverOpacity),
152
151
  "@media (hover: none)": {
153
152
  backgroundColor: "transparent"
154
153
  }
155
154
  },
156
155
  [`&.${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
+ color: t.vars ? t.vars.palette.Switch[`${e}DisabledColor`] : `${t.palette.mode === "light" ? t.lighten(t.palette[e].main, 0.62) : t.darken(t.palette[e].main, 0.55)}`
158
157
  }
159
158
  },
160
159
  [`&.${a.checked} + .${a.track}`]: {
161
- backgroundColor: (t.vars || t).palette[o].main
160
+ backgroundColor: (t.vars || t).palette[e].main
162
161
  }
163
162
  }
164
163
  }))]
165
- }))), L = u("span", {
164
+ }))), q = u("span", {
166
165
  name: "MuiSwitch",
167
166
  slot: "Track"
168
167
  })(d(({
@@ -177,7 +176,7 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
177
176
  }),
178
177
  backgroundColor: t.vars ? t.vars.palette.common.onBackground : `${t.palette.mode === "light" ? t.palette.common.black : t.palette.common.white}`,
179
178
  opacity: t.vars ? t.vars.opacity.switchTrack : `${t.palette.mode === "light" ? 0.38 : 0.3}`
180
- }))), _ = u("span", {
179
+ }))), G = u("span", {
181
180
  name: "MuiSwitch",
182
181
  slot: "Thumb"
183
182
  })(d(({
@@ -188,57 +187,57 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
188
187
  width: 20,
189
188
  height: 20,
190
189
  borderRadius: "50%"
191
- }))), J = /* @__PURE__ */ P.forwardRef(function(o, s) {
192
- const p = F({
193
- props: o,
190
+ }))), H = /* @__PURE__ */ z.forwardRef(function(e, s) {
191
+ const p = I({
192
+ props: e,
194
193
  name: "MuiSwitch"
195
194
  }), {
196
195
  className: h,
197
196
  color: f = "primary",
198
197
  edge: b = !1,
199
- size: m = "medium",
198
+ size: w = "medium",
200
199
  sx: g,
201
200
  slots: c = {},
202
201
  slotProps: r = {},
203
- ...$
202
+ ...v
204
203
  } = p, i = {
205
204
  ...p,
206
205
  color: f,
207
206
  edge: b,
208
- size: m
209
- }, l = X(i), w = {
207
+ size: w
208
+ }, l = A(i), m = {
210
209
  slots: c,
211
210
  slotProps: r
212
- }, [T, C] = y("root", {
213
- className: M(l.root, h),
214
- elementType: G,
215
- externalForwardedProps: w,
211
+ }, [T, $] = y("root", {
212
+ className: R(l.root, h),
213
+ elementType: V,
214
+ externalForwardedProps: m,
216
215
  ownerState: i,
217
216
  additionalProps: {
218
217
  sx: g
219
218
  }
220
- }), [x, O] = y("thumb", {
219
+ }), [C, x] = y("thumb", {
221
220
  className: l.thumb,
222
- elementType: _,
223
- externalForwardedProps: w,
221
+ elementType: G,
222
+ externalForwardedProps: m,
224
223
  ownerState: i
225
- }), k = /* @__PURE__ */ v(x, {
226
- ...O
227
- }), [B, z] = y("track", {
224
+ }), S = /* @__PURE__ */ k(C, {
225
+ ...x
226
+ }), [B, O] = y("track", {
228
227
  className: l.track,
229
- elementType: L,
230
- externalForwardedProps: w,
228
+ elementType: q,
229
+ externalForwardedProps: m,
231
230
  ownerState: i
232
231
  });
233
- return /* @__PURE__ */ E(T, {
234
- ...C,
235
- children: [/* @__PURE__ */ v(H, {
232
+ return /* @__PURE__ */ D(T, {
233
+ ...$,
234
+ children: [/* @__PURE__ */ k(X, {
236
235
  type: "checkbox",
237
- icon: k,
238
- checkedIcon: k,
236
+ icon: S,
237
+ checkedIcon: S,
239
238
  ref: s,
240
239
  ownerState: i,
241
- ...$,
240
+ ...v,
242
241
  classes: {
243
242
  ...l,
244
243
  root: l.switchBase
@@ -255,16 +254,19 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
255
254
  ...r.switchBase && {
256
255
  root: typeof r.switchBase == "function" ? r.switchBase(i) : r.switchBase
257
256
  },
257
+ input: {
258
+ role: "switch"
259
+ },
258
260
  ...r.input && {
259
261
  input: typeof r.input == "function" ? r.input(i) : r.input
260
262
  }
261
263
  }
262
- }), /* @__PURE__ */ v(B, {
263
- ...z
264
+ }), /* @__PURE__ */ k(B, {
265
+ ...O
264
266
  })]
265
267
  });
266
268
  });
267
- process.env.NODE_ENV !== "production" && (J.propTypes = {
269
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
268
270
  // ┌────────────────────────────── Warning ──────────────────────────────┐
269
271
  // │ These PropTypes are generated from the TypeScript type definitions. │
270
272
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -272,39 +274,39 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
272
274
  /**
273
275
  * If `true`, the component is checked.
274
276
  */
275
- checked: e.bool,
277
+ checked: o.bool,
276
278
  /**
277
279
  * The icon to display when the component is checked.
278
280
  */
279
- checkedIcon: e.node,
281
+ checkedIcon: o.node,
280
282
  /**
281
283
  * Override or extend the styles applied to the component.
282
284
  */
283
- classes: e.object,
285
+ classes: o.object,
284
286
  /**
285
287
  * @ignore
286
288
  */
287
- className: e.string,
289
+ className: o.string,
288
290
  /**
289
291
  * The color of the component.
290
292
  * It supports both default and custom theme colors, which can be added as shown in the
291
293
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
292
294
  * @default 'primary'
293
295
  */
294
- color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
296
+ color: o.oneOfType([o.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), o.string]),
295
297
  /**
296
298
  * The default checked state. Use when the component is not controlled.
297
299
  */
298
- defaultChecked: e.bool,
300
+ defaultChecked: o.bool,
299
301
  /**
300
302
  * If `true`, the component is disabled.
301
303
  */
302
- disabled: e.bool,
304
+ disabled: o.bool,
303
305
  /**
304
306
  * If `true`, the ripple effect is disabled.
305
307
  * @default false
306
308
  */
307
- disableRipple: e.bool,
309
+ disableRipple: o.bool,
308
310
  /**
309
311
  * If given, uses a negative margin to counteract the padding on one
310
312
  * side (this is often helpful for aligning the left or right
@@ -312,25 +314,25 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
312
314
  * size and shape).
313
315
  * @default false
314
316
  */
315
- edge: e.oneOf(["end", "start", !1]),
317
+ edge: o.oneOf(["end", "start", !1]),
316
318
  /**
317
319
  * The icon to display when the component is unchecked.
318
320
  */
319
- icon: e.node,
321
+ icon: o.node,
320
322
  /**
321
323
  * The id of the `input` element.
322
324
  */
323
- id: e.string,
325
+ id: o.string,
324
326
  /**
325
327
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
326
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.
327
329
  */
328
- inputProps: e.object,
330
+ inputProps: o.object,
329
331
  /**
330
332
  * Pass a ref to the `input` element.
331
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.
332
334
  */
333
- inputRef: A,
335
+ inputRef: E,
334
336
  /**
335
337
  * Callback fired when the state is changed.
336
338
  *
@@ -338,52 +340,52 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
338
340
  * You can pull out the new value by accessing `event.target.value` (string).
339
341
  * You can pull out the new checked state by accessing `event.target.checked` (boolean).
340
342
  */
341
- onChange: e.func,
343
+ onChange: o.func,
342
344
  /**
343
345
  * If `true`, the `input` element is required.
344
346
  * @default false
345
347
  */
346
- required: e.bool,
348
+ required: o.bool,
347
349
  /**
348
350
  * The size of the component.
349
351
  * `small` is equivalent to the dense switch styling.
350
352
  * @default 'medium'
351
353
  */
352
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
354
+ size: o.oneOfType([o.oneOf(["medium", "small"]), o.string]),
353
355
  /**
354
356
  * The props used for each slot inside.
355
357
  * @default {}
356
358
  */
357
- slotProps: e.shape({
358
- input: e.oneOfType([e.func, e.object]),
359
- root: e.oneOfType([e.func, e.object]),
360
- switchBase: e.oneOfType([e.func, e.object]),
361
- thumb: e.oneOfType([e.func, e.object]),
362
- track: e.oneOfType([e.func, e.object])
359
+ slotProps: o.shape({
360
+ input: o.oneOfType([o.func, o.object]),
361
+ root: o.oneOfType([o.func, o.object]),
362
+ switchBase: o.oneOfType([o.func, o.object]),
363
+ thumb: o.oneOfType([o.func, o.object]),
364
+ track: o.oneOfType([o.func, o.object])
363
365
  }),
364
366
  /**
365
367
  * The components used for each slot inside.
366
368
  * @default {}
367
369
  */
368
- slots: e.shape({
369
- input: e.elementType,
370
- root: e.elementType,
371
- switchBase: e.elementType,
372
- thumb: e.elementType,
373
- track: e.elementType
370
+ slots: o.shape({
371
+ input: o.elementType,
372
+ root: o.elementType,
373
+ switchBase: o.elementType,
374
+ thumb: o.elementType,
375
+ track: o.elementType
374
376
  }),
375
377
  /**
376
378
  * The system prop that allows defining system overrides as well as additional CSS styles.
377
379
  */
378
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
380
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
379
381
  /**
380
382
  * The value of the component. The DOM API casts this to a string.
381
383
  * The browser uses "on" as the default value.
382
384
  */
383
- value: e.any
385
+ value: o.any
384
386
  });
385
387
  export {
386
- J as S,
387
- V as g,
388
+ H as S,
389
+ F as g,
388
390
  a as s
389
391
  };
@@ -0,0 +1 @@
1
+ "use strict";const B=require("react"),t=require("./index-DLnSn8GT.cjs"),i=require("./identifier-DBvccNCw.cjs"),R=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),q=require("./SwitchBase-Hbqxtooi.cjs"),y=require("./memoTheme-Dv-rDqFz.cjs"),g=require("./useSlot-ONna5RyM.cjs"),u=require("react/jsx-runtime"),c=require("./DefaultPropsProvider-BFTLy05-.cjs"),M=require("./refType-B_IEJm4x.cjs");function D(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const p=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,p.get?p:{enumerable:!0,get:()=>e[s]})}}return o.default=e,Object.freeze(o)}const N=D(B);function S(e){return i.generateUtilityClass("MuiSwitch",e)}const r=i.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I=e=>{const{classes:o,edge:s,size:p,color:T,checked:h,disabled:P}=e,f={root:["root",s&&`edge${i.capitalize(s)}`,`size${i.capitalize(p)}`],switchBase:["switchBase",`color${i.capitalize(T)}`,h&&"checked",P&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=c.composeClasses(f,S,o);return{...o,...b}},U=c.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.root,s.edge&&o[`edge${i.capitalize(s.edge)}`],o[`size${i.capitalize(s.size)}`]]}})({display:"inline-flex",width:58,height:38,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)"}}}}]}),_=c.styled(q.SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.switchBase,{[`& .${r.input}`]:o.input},s.color!=="default"&&o[`color${i.capitalize(s.color)}`]]}})(y.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%"}})),y.memoTheme(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(R.createSimplePaletteValueFilter(["light"])).map(([o])=>({props:{color:o},style:{[`&.${r.checked}`]:{color:(e.vars||e).palette[o].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${o}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[o].main,.62):e.darken(e.palette[o].main,.55)}`}},[`&.${r.checked} + .${r.track}`]:{backgroundColor:(e.vars||e).palette[o].main}}}))]}))),E=c.styled("span",{name:"MuiSwitch",slot:"Track"})(y.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}`}))),F=c.styled("span",{name:"MuiSwitch",slot:"Thumb"})(y.memoTheme(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),k=N.forwardRef(function(o,s){const p=c.useDefaultProps({props:o,name:"MuiSwitch"}),{className:T,color:h="primary",edge:P=!1,size:f="medium",sx:b,slots:l={},slotProps:a={},...v}=p,n={...p,color:h,edge:P,size:f},d=I(n),w={slots:l,slotProps:a},[$,x]=g.useSlot("root",{className:i.clsx(d.root,T),elementType:U,externalForwardedProps:w,ownerState:n,additionalProps:{sx:b}}),[C,O]=g.useSlot("thumb",{className:d.thumb,elementType:F,externalForwardedProps:w,ownerState:n}),m=u.jsx(C,{...O}),[j,z]=g.useSlot("track",{className:d.track,elementType:E,externalForwardedProps:w,ownerState:n});return u.jsxs($,{...x,children:[u.jsx(_,{type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:n,...v,classes:{...d,root:d.switchBase},slots:{...l.switchBase&&{root:l.switchBase},...l.input&&{input:l.input}},slotProps:{...a.switchBase&&{root:typeof a.switchBase=="function"?a.switchBase(n):a.switchBase},input:{role:"switch"},...a.input&&{input:typeof a.input=="function"?a.input(n):a.input}}}),u.jsx(j,{...z})]})});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:M.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;
@@ -1,30 +1,31 @@
1
- import * as K from "react";
1
+ import * as H from "react";
2
2
  import { P as e } from "./index-Sy88PpwE.js";
3
- import { s as C, c as M, r as Q } from "./DefaultPropsProvider-BrNsAtD3.js";
3
+ import { s as k, c as J, r as Q } from "./DefaultPropsProvider-nxIPd34m.js";
4
4
  import { u as W } from "./useFormControl-CatNKXAi.js";
5
- import { G as X, F as Y } from "./generateUtilityClasses-32ARRWdA.js";
6
- import { u as k } from "./useSlot-DnOTNYbF.js";
7
- import { jsxs as Z, jsx as ee } from "react/jsx-runtime";
8
- import { u as oe } from "./useControlled-nm4pBabJ.js";
9
- import { c as te } from "./capitalize-CgHuXq7I.js";
10
- import { B as se } from "./ButtonBase-C1FIHWcD.js";
5
+ import { G as X, F as Y, K as Z } from "./identifier-Dnc8T93Z.js";
6
+ import { u as w } from "./useSlot-GooGQrej.js";
7
+ import { jsxs as ee, jsx as oe } from "react/jsx-runtime";
8
+ import { u as te } from "./useControlled-nm4pBabJ.js";
9
+ import { B as se } from "./ButtonBase-CJYV8wgs.js";
11
10
  import { r as ne } from "./refType-Dp7CJc86.js";
12
- function re(s) {
11
+ function ie(s) {
13
12
  return X("PrivateSwitchBase", s);
14
13
  }
15
14
  Y("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
16
- const ie = (s) => {
15
+ const re = (s) => {
17
16
  const {
18
17
  classes: n,
19
18
  checked: d,
20
19
  disabled: p,
21
20
  edge: a
22
21
  } = s, u = {
23
- root: ["root", d && "checked", p && "disabled", a && `edge${te(a)}`],
22
+ root: ["root", d && "checked", p && "disabled", a && `edge${Z(a)}`],
24
23
  input: ["input"]
25
24
  };
26
- return M(u, re, n);
27
- }, ae = C(se)({
25
+ return J(u, ie, n);
26
+ }, ae = k(se, {
27
+ name: "MuiSwitchBase"
28
+ })({
28
29
  padding: 9,
29
30
  borderRadius: "50%",
30
31
  variants: [{
@@ -60,7 +61,8 @@ const ie = (s) => {
60
61
  marginRight: -12
61
62
  }
62
63
  }]
63
- }), ce = C("input", {
64
+ }), ce = k("input", {
65
+ name: "MuiSwitchBase",
64
66
  shouldForwardProp: Q
65
67
  })({
66
68
  cursor: "inherit",
@@ -73,21 +75,21 @@ const ie = (s) => {
73
75
  margin: 0,
74
76
  padding: 0,
75
77
  zIndex: 1
76
- }), le = /* @__PURE__ */ K.forwardRef(function(n, d) {
78
+ }), le = /* @__PURE__ */ H.forwardRef(function(n, d) {
77
79
  const {
78
80
  autoFocus: p,
79
81
  checked: a,
80
82
  checkedIcon: u,
81
83
  defaultChecked: m,
82
- disabled: w,
83
- disableFocusRipple: g = !1,
84
+ disabled: C,
85
+ disableFocusRipple: h = !1,
84
86
  edge: R = !1,
85
87
  icon: x,
86
88
  id: T,
87
89
  inputProps: I,
88
90
  inputRef: j,
89
91
  name: O,
90
- onBlur: h,
92
+ onBlur: g,
91
93
  onChange: b,
92
94
  onFocus: y,
93
95
  readOnly: z,
@@ -98,74 +100,74 @@ const ie = (s) => {
98
100
  slots: E = {},
99
101
  slotProps: U = {},
100
102
  ...v
101
- } = n, [F, L] = oe({
103
+ } = n, [S, L] = te({
102
104
  controlled: a,
103
105
  default: !!m,
104
106
  name: "SwitchBase",
105
107
  state: "checked"
106
- }), r = W(), D = (o) => {
107
- y && y(o), r && r.onFocus && r.onFocus(o);
108
+ }), i = W(), M = (o) => {
109
+ y && y(o), i && i.onFocus && i.onFocus(o);
110
+ }, D = (o) => {
111
+ g && g(o), i && i.onBlur && i.onBlur(o);
108
112
  }, G = (o) => {
109
- h && h(o), r && r.onBlur && r.onBlur(o);
110
- }, V = (o) => {
111
113
  if (o.nativeEvent.defaultPrevented)
112
114
  return;
113
115
  const t = o.target.checked;
114
116
  L(t), b && b(o, t);
115
117
  };
116
- let c = w;
117
- r && typeof c > "u" && (c = r.disabled);
118
- const _ = l === "checkbox" || l === "radio", f = {
118
+ let c = C;
119
+ i && typeof c > "u" && (c = i.disabled);
120
+ const K = l === "checkbox" || l === "radio", f = {
119
121
  ...n,
120
- checked: F,
122
+ checked: S,
121
123
  disabled: c,
122
- disableFocusRipple: g,
124
+ disableFocusRipple: h,
123
125
  edge: R
124
- }, S = ie(f), B = {
126
+ }, B = re(f), F = {
125
127
  slots: E,
126
128
  slotProps: {
127
129
  input: I,
128
130
  ...U
129
131
  }
130
- }, [$, A] = k("root", {
132
+ }, [V, _] = w("root", {
131
133
  ref: d,
132
134
  elementType: ae,
133
- className: S.root,
135
+ className: B.root,
134
136
  shouldForwardComponentProp: !0,
135
137
  externalForwardedProps: {
136
- ...B,
138
+ ...F,
137
139
  component: "span",
138
140
  ...v
139
141
  },
140
142
  getSlotProps: (o) => ({
141
143
  ...o,
142
144
  onFocus: (t) => {
143
- var i;
144
- (i = o.onFocus) == null || i.call(o, t), D(t);
145
+ var r;
146
+ (r = o.onFocus) == null || r.call(o, t), M(t);
145
147
  },
146
148
  onBlur: (t) => {
147
- var i;
148
- (i = o.onBlur) == null || i.call(o, t), G(t);
149
+ var r;
150
+ (r = o.onBlur) == null || r.call(o, t), D(t);
149
151
  }
150
152
  }),
151
153
  ownerState: f,
152
154
  additionalProps: {
153
155
  centerRipple: !0,
154
- focusRipple: !g,
156
+ focusRipple: !h,
155
157
  disabled: c,
156
158
  role: void 0,
157
159
  tabIndex: null
158
160
  }
159
- }), [H, J] = k("input", {
161
+ }), [$, A] = w("input", {
160
162
  ref: j,
161
163
  elementType: ce,
162
- className: S.input,
163
- externalForwardedProps: B,
164
+ className: B.input,
165
+ externalForwardedProps: F,
164
166
  getSlotProps: (o) => ({
165
167
  ...o,
166
168
  onChange: (t) => {
167
- var i;
168
- (i = o.onChange) == null || i.call(o, t), V(t);
169
+ var r;
170
+ (r = o.onChange) == null || r.call(o, t), G(t);
169
171
  }
170
172
  }),
171
173
  ownerState: f,
@@ -174,7 +176,7 @@ const ie = (s) => {
174
176
  checked: a,
175
177
  defaultChecked: m,
176
178
  disabled: c,
177
- id: _ ? T : void 0,
179
+ id: K ? T : void 0,
178
180
  name: O,
179
181
  readOnly: z,
180
182
  required: q,
@@ -185,11 +187,11 @@ const ie = (s) => {
185
187
  }
186
188
  }
187
189
  });
188
- return /* @__PURE__ */ Z($, {
189
- ...A,
190
- children: [/* @__PURE__ */ ee(H, {
191
- ...J
192
- }), F ? u : x]
190
+ return /* @__PURE__ */ ee(V, {
191
+ ..._,
192
+ children: [/* @__PURE__ */ oe($, {
193
+ ...A
194
+ }), S ? u : x]
193
195
  });
194
196
  });
195
197
  process.env.NODE_ENV !== "production" && (le.propTypes = {
@@ -0,0 +1 @@
1
+ "use strict";const W=require("react"),e=require("./index-DLnSn8GT.cjs"),d=require("./DefaultPropsProvider-BFTLy05-.cjs"),X=require("./useFormControl-haP0iPhl.cjs"),f=require("./identifier-DBvccNCw.cjs"),F=require("./useSlot-ONna5RyM.cjs"),k=require("react/jsx-runtime"),Y=require("./useControlled-QrrYcKxm.cjs"),Z=require("./ButtonBase-DPIkh47Q.cjs"),ee=require("./refType-B_IEJm4x.cjs");function oe(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 te=oe(W);function se(t){return f.generateUtilityClass("PrivateSwitchBase",t)}f.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const re=t=>{const{classes:s,checked:n,disabled:c,edge:a}=t,y={root:["root",n&&"checked",c&&"disabled",a&&`edge${f.capitalize(a)}`],input:["input"]};return d.composeClasses(y,se,s)},ne=d.styled(Z.ButtonBase,{name:"MuiSwitchBase"})({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}}]}),pe=d.styled("input",{name:"MuiSwitchBase",shouldForwardProp:d.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),R=te.forwardRef(function(s,n){const{autoFocus:c,checked:a,checkedIcon:y,defaultChecked:T,disabled:q,disableFocusRipple:g=!1,edge:x=!1,icon:j,id:O,inputProps:I,inputRef:z,name:N,onBlur:b,onChange:h,onFocus:m,readOnly:v,required:D=!1,tabIndex:E,type:u,value:S,slots:U={},slotProps:_={},...L}=s,[B,M]=Y.useControlled({controlled:a,default:!!T,name:"SwitchBase",state:"checked"}),p=X.useFormControl(),V=o=>{m&&m(o),p&&p.onFocus&&p.onFocus(o)},$=o=>{b&&b(o),p&&p.onBlur&&p.onBlur(o)},A=o=>{if(o.nativeEvent.defaultPrevented)return;const r=o.target.checked;M(r),h&&h(o,r)};let l=q;p&&typeof l>"u"&&(l=p.disabled);const G=u==="checkbox"||u==="radio",P={...s,checked:B,disabled:l,disableFocusRipple:g,edge:x},w=re(P),C={slots:U,slotProps:{input:I,..._}},[H,J]=F.useSlot("root",{ref:n,elementType:ne,className:w.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:!g,disabled:l,role:void 0,tabIndex:null}}),[K,Q]=F.useSlot("input",{ref:z,elementType:pe,className:w.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:T,disabled:l,id:G?O:void 0,name:N,readOnly:v,required:D,tabIndex:E,type:u,...u==="checkbox"&&S===void 0?{}:{value:S}}});return k.jsxs(H,{...J,children:[k.jsx(K,{...Q}),B?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:ee.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;