@cgi-learning-hub/ui 1.7.0 → 1.8.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 (275) hide show
  1. package/dist/{Alert-OeEy_IGc.js → Alert-6yOnGlLE.js} +6 -6
  2. package/dist/{Alert-rPyl-bqs.cjs → Alert-CWHOYWde.cjs} +1 -1
  3. package/dist/{Alert-DPSZppEy.cjs → Alert-D4-73fYc.cjs} +1 -1
  4. package/dist/{Alert-BhLIlUBu.js → Alert-D6SQnjuJ.js} +83 -83
  5. package/dist/{Autocomplete-WZw_zCjA.js → Autocomplete-B8u-WYi5.js} +680 -664
  6. package/dist/Autocomplete-BA6NkciB.cjs +6 -0
  7. package/dist/Backdrop-Dp1hKKfU.cjs +1 -0
  8. package/dist/{Backdrop-CjZYrxkZ.js → Backdrop-DuOPKUSY.js} +36 -35
  9. package/dist/{Badge-Bwcsnbsa.js → Badge-BJ4yH_Da.js} +4 -4
  10. package/dist/{Badge-DFzvdVS-.cjs → Badge-XMr4Ygjv.cjs} +1 -1
  11. package/dist/{Box-DR3n_po_.cjs → Box-B5E7sstc.cjs} +1 -1
  12. package/dist/{Box-BI4osO9v.js → Box-BWETzF5p.js} +3 -3
  13. package/dist/Button-BJB830NI.cjs +1 -0
  14. package/dist/{Button-DDV5EfwJ.js → Button-C8_HxKFe.js} +95 -95
  15. package/dist/{ButtonBase-6TF6t2SP.js → ButtonBase-CJYV8wgs.js} +2 -2
  16. package/dist/{ButtonBase-Dp6sf_dP.cjs → ButtonBase-DPIkh47Q.cjs} +1 -1
  17. package/dist/{CardContent-COfaU6E0.cjs → CardContent-H0z20SY7.cjs} +1 -1
  18. package/dist/{CardContent-D3uGcxlr.js → CardContent-V9JMSLmA.js} +3 -3
  19. package/dist/Checkbox-BZPMiwbF.cjs +1 -0
  20. package/dist/{Checkbox-BfBDowB2.js → Checkbox-DMMz_IAP.js} +86 -86
  21. package/dist/Chip-BDVqkZZM.js +573 -0
  22. package/dist/Chip-DMBSp59F.cjs +1 -0
  23. package/dist/{CircularProgress-CXXyPavb.cjs → CircularProgress-BMVNeiSf.cjs} +1 -1
  24. package/dist/{CircularProgress-DZuYTFz-.js → CircularProgress-CrWnCGqN.js} +3 -3
  25. package/dist/{Close-7S2hSoFB.cjs → Close-2eEmvKPH.cjs} +1 -1
  26. package/dist/{Close-DEMecSZ6.js → Close-Cr2OT0GV.js} +1 -1
  27. package/dist/{CloseRounded-DS-4-gMR.cjs → CloseRounded-B6cT7aGi.cjs} +1 -1
  28. package/dist/{CloseRounded-CioV1GK3.js → CloseRounded-BrGeesu1.js} +1 -1
  29. package/dist/{CustomTreeItem-Bg8Ub4dn.cjs → CustomTreeItem-BXgsWbl_.cjs} +1 -1
  30. package/dist/{CustomTreeItem-B9FylIhL.js → CustomTreeItem-DhB3ECa2.js} +12 -12
  31. package/dist/DatePicker-DtPvvFiK.cjs +16 -0
  32. package/dist/{DatePicker-DasS2wq6.js → DatePicker-ofISDY8Q.js} +2822 -2821
  33. package/dist/DefaultPropsProvider-BFTLy05-.cjs +1 -0
  34. package/dist/DefaultPropsProvider-nxIPd34m.js +312 -0
  35. package/dist/{Delete-BvkBJXEM.cjs → Delete-BF63Gpr-.cjs} +1 -1
  36. package/dist/{Delete-B5VTV71K.js → Delete-CwWpjEOT.js} +1 -1
  37. package/dist/Dialog-Cymf3DJ2.cjs +1 -0
  38. package/dist/{Dialog-DEWB041V.js → Dialog-eK1zTFBm.js} +10 -10
  39. package/dist/{DialogContent-C294EkoQ.js → DialogContent-BsPZJR2a.js} +3 -3
  40. package/dist/{DialogContent-DXfUge3c.cjs → DialogContent-Gy1s3ela.cjs} +1 -1
  41. package/dist/{DialogTitle-y2PrK6uU.cjs → DialogTitle-BDyrzRXS.cjs} +1 -1
  42. package/dist/{DialogTitle-BSiId6Q1.js → DialogTitle-CaAd59jN.js} +5 -5
  43. package/dist/Divider-BzdMIEJJ.cjs +1 -0
  44. package/dist/{Divider-kKp4VqHh.js → Divider-D_gbcyWE.js} +26 -26
  45. package/dist/{Folder-BgQP5-Ve.js → Folder-COKXTjZ4.js} +1 -1
  46. package/dist/{Folder-BfLBqDHM.cjs → Folder-D0fZbyc-.cjs} +1 -1
  47. package/dist/{FormLabel-JrZR9kt8.cjs → FormLabel-BLySmpkL.cjs} +1 -1
  48. package/dist/{FormLabel-B3WAnPGP.js → FormLabel-DmLckqyT.js} +3 -3
  49. package/dist/{Grid-BHYQ3JNy.cjs → Grid-DFaRzlB4.cjs} +1 -1
  50. package/dist/{Grid-DFk-4jnZ.js → Grid-vM--ojbL.js} +7 -7
  51. package/dist/{Grow-BfjkXlG8.js → Grow-DE5x7F5S.js} +1 -1
  52. package/dist/{Grow-BULCy6GX.cjs → Grow-ovNT7Sot.cjs} +1 -1
  53. package/dist/IconButton-DCQiOq7W.cjs +2 -0
  54. package/dist/{IconButton-BYvak8Nw.js → IconButton-f9EZgwvD.js} +66 -66
  55. package/dist/{InputAdornment-BBZXvhZ-.js → InputAdornment-B615VSjF.js} +4 -4
  56. package/dist/{InputAdornment-DvHQMisT.cjs → InputAdornment-BrrJ8chb.cjs} +1 -1
  57. package/dist/{InputBase-BS5oknUK.js → InputBase-BCbPPzW1.js} +4 -4
  58. package/dist/{InputBase-DPdKpmOz.cjs → InputBase-CRrFludT.cjs} +1 -1
  59. package/dist/Link-CMes5bws.cjs +1 -0
  60. package/dist/{Link-DYPjEdvu.js → Link-GBRiPElP.js} +52 -39
  61. package/dist/{List-CB_cqCSw.js → List-DZkddOsr.js} +2 -2
  62. package/dist/{List-t9bWFewp.cjs → List-E_TAQ1jJ.cjs} +1 -1
  63. package/dist/{ListItem-DAZQEir2.js → ListItem-CMoibMI7.js} +4 -4
  64. package/dist/{ListItem-DP7YmqZk.cjs → ListItem-qTKJTg7f.cjs} +1 -1
  65. package/dist/ListItemText-B3z5dHrQ.cjs +1 -0
  66. package/dist/{ListItemText-qfdqJP77.js → ListItemText-BbrPf29n.js} +139 -139
  67. package/dist/{Menu-9BK8jmzW.js → Menu-3UjlpKRJ.js} +27 -27
  68. package/dist/{Menu-C61wLk41.cjs → Menu-C0uY9Dd0.cjs} +1 -1
  69. package/dist/MenuItem--a878rw9.cjs +1 -0
  70. package/dist/{MenuItem-C8nduSzJ.js → MenuItem-CHEWce5u.js} +94 -94
  71. package/dist/{Modal-DkzrSKHd.cjs → Modal-CdcolE0C.cjs} +1 -1
  72. package/dist/{Modal-D3Q9vEAI.js → Modal-Du5LfkZg.js} +5 -5
  73. package/dist/{MoreVert-C-Rhn-xK.cjs → MoreVert-DZjEMvuw.cjs} +1 -1
  74. package/dist/{MoreVert-C_W1m_Z_.js → MoreVert-PLU7h8WO.js} +1 -1
  75. package/dist/{Paper-IQckggbn.js → Paper-BylmTlAJ.js} +4 -4
  76. package/dist/{Paper-BbqZL5vx.cjs → Paper-DgHGh6vt.cjs} +1 -1
  77. package/dist/{Popper-DvWx5tR3.cjs → Popper-BsNp09Gg.cjs} +1 -1
  78. package/dist/{Popper-CfFLBZ7-.js → Popper-CvQLHjwo.js} +3 -3
  79. package/dist/Radio-CLNMQGNf.cjs +1 -0
  80. package/dist/{Radio-DKiu6lVB.js → Radio-CbYgci2-.js} +195 -190
  81. package/dist/{RadioGroup-DFKMlNWO.js → RadioGroup-D-Cq8SmM.js} +3 -3
  82. package/dist/{RadioGroup-Cvnwt4JE.cjs → RadioGroup-Dyf8fKum.cjs} +1 -1
  83. package/dist/{Select-CpNF3a57.js → Select-Bx0yVOZE.js} +641 -607
  84. package/dist/Select-CRVPbesC.cjs +3 -0
  85. package/dist/{Stack-CIyfgZCM.cjs → Stack-COmIqMxy.cjs} +1 -1
  86. package/dist/{Stack-DSJ2DqNd.js → Stack-CbK4a2n5.js} +5 -5
  87. package/dist/{Stepper-CXHfLPtA.cjs → Stepper-CWq9t5jy.cjs} +1 -1
  88. package/dist/{Stepper-DE2l91K0.js → Stepper-DU9nixCp.js} +6 -6
  89. package/dist/{Switch-BIcwDf_P.js → Switch-Bm3Gclye.js} +102 -99
  90. package/dist/Switch-kHZOqjeU.cjs +1 -0
  91. package/dist/{SwitchBase-DZV8S81Z.js → SwitchBase-9CKmTWdZ.js} +47 -44
  92. package/dist/SwitchBase-Hbqxtooi.cjs +1 -0
  93. package/dist/{Tab-Ckr6Bn59.js → Tab-DBCv1T9W.js} +58 -58
  94. package/dist/{Tab-r5imbU9z.cjs → Tab-DnxFjc89.cjs} +1 -1
  95. package/dist/{TextField-Brw3X9cn.cjs → TextField-BhdmUny-.cjs} +1 -1
  96. package/dist/{TextField-BenBw4oE.js → TextField-V-EQ80Y6.js} +6 -6
  97. package/dist/ToggleButtonGroup-B2FBwoDV.cjs +138 -0
  98. package/dist/{ToggleButtonGroup-DhtAoGtM.js → ToggleButtonGroup-_UpIjysl.js} +1567 -1537
  99. package/dist/{Tooltip-KkgNQm4r.js → Tooltip-DKHOTDh0.js} +81 -81
  100. package/dist/{Tooltip-BAOKe3SY.cjs → Tooltip-DYTDIzp4.cjs} +3 -3
  101. package/dist/{Typography-CSTmKyr8.cjs → Typography-BvRUTdLD.cjs} +1 -1
  102. package/dist/{Typography-Dy8r_tT2.js → Typography-o0iALAVg.js} +4 -4
  103. package/dist/components/ActionBar/ActionBar.cjs.js +1 -0
  104. package/dist/components/ActionBar/ActionBar.d.ts +3 -0
  105. package/dist/components/ActionBar/ActionBar.es.js +63 -0
  106. package/dist/components/ActionBar/index.cjs.js +1 -0
  107. package/dist/components/ActionBar/index.d.ts +2 -0
  108. package/dist/components/ActionBar/index.es.js +4 -0
  109. package/dist/components/ActionBar/style.cjs.js +1 -0
  110. package/dist/components/ActionBar/style.es.js +61 -0
  111. package/dist/components/ActionBar/types.cjs.js +1 -0
  112. package/dist/components/ActionBar/types.d.ts +17 -0
  113. package/dist/components/ActionBar/types.es.js +1 -0
  114. package/dist/components/Alert/Alert.cjs.js +1 -1
  115. package/dist/components/Alert/Alert.es.js +4 -4
  116. package/dist/components/Alert/index.cjs.js +1 -1
  117. package/dist/components/Alert/index.es.js +1 -1
  118. package/dist/components/Button/Button.cjs.js +1 -1
  119. package/dist/components/Button/Button.es.js +2 -2
  120. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  121. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  122. package/dist/components/DatePicker/index.cjs.js +1 -1
  123. package/dist/components/DatePicker/index.es.js +1 -1
  124. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  125. package/dist/components/Dialog/Dialog.es.js +2 -2
  126. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  127. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  128. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  129. package/dist/components/EmptyState/EmptyState.d.ts +1 -0
  130. package/dist/components/EmptyState/EmptyState.es.js +22 -20
  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 +4 -4
  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/ResourceCard/ResourceCard.cjs.js +1 -1
  148. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  149. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  150. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  151. package/dist/components/TreeView/TreeView.cjs.js +2 -2
  152. package/dist/components/TreeView/TreeView.es.js +39 -39
  153. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  154. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  155. package/dist/components/TreeView/types.d.ts +1 -0
  156. package/dist/components/TreeView/utils.cjs.js +1 -1
  157. package/dist/components/TreeView/utils.es.js +3 -3
  158. package/dist/components/index.cjs.js +1 -1
  159. package/dist/components/index.d.ts +2 -1
  160. package/dist/components/index.es.js +302 -300
  161. package/dist/components/stories/ActionBar.stories.cjs.js +1 -0
  162. package/dist/components/stories/ActionBar.stories.d.ts +11 -0
  163. package/dist/components/stories/ActionBar.stories.es.js +206 -0
  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/Badge.stories.cjs.js +1 -1
  169. package/dist/components/stories/Badge.stories.es.js +2 -2
  170. package/dist/components/stories/Button.stories.cjs.js +1 -1
  171. package/dist/components/stories/Button.stories.es.js +1 -1
  172. package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
  173. package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
  174. package/dist/components/stories/Card.stories.cjs.js +1 -1
  175. package/dist/components/stories/Card.stories.es.js +2 -2
  176. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  177. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  178. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  179. package/dist/components/stories/Chip.stories.es.js +1 -1
  180. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  181. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  182. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  183. package/dist/components/stories/Dialog.stories.es.js +2 -2
  184. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  185. package/dist/components/stories/Divider.stories.es.js +1 -1
  186. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  187. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  188. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  189. package/dist/components/stories/Heading.stories.es.js +2 -2
  190. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  191. package/dist/components/stories/IconButton.stories.es.js +2 -2
  192. package/dist/components/stories/Link.stories.cjs.js +1 -1
  193. package/dist/components/stories/Link.stories.es.js +1 -1
  194. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  195. package/dist/components/stories/Menu.stories.es.js +2 -2
  196. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  197. package/dist/components/stories/Paper.stories.es.js +1 -1
  198. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  199. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  200. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  201. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  202. package/dist/components/stories/Select.stories.cjs.js +1 -1
  203. package/dist/components/stories/Select.stories.es.js +3 -3
  204. package/dist/components/stories/Stepper.stories.cjs.js +1 -1
  205. package/dist/components/stories/Stepper.stories.es.js +4 -4
  206. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  207. package/dist/components/stories/TabList.stories.es.js +1 -1
  208. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  209. package/dist/components/stories/TextField.stories.es.js +1 -1
  210. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  211. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  212. package/dist/components/stories/TreeView.stories.cjs.js +1 -1
  213. package/dist/components/stories/TreeView.stories.es.js +12 -12
  214. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  215. package/dist/components/stories/Typography.stories.es.js +1 -1
  216. package/dist/{createSvgIcon-IET9soda.cjs → createSvgIcon-BJRigbha.cjs} +1 -1
  217. package/dist/{createSvgIcon-B1E6Wo8z.js → createSvgIcon-BV54rC7k.js} +3 -3
  218. package/dist/{dividerClasses-C07OJKLL.cjs → dividerClasses-CbwbHy8r.cjs} +1 -1
  219. package/dist/{dividerClasses-BPJZ8SFy.js → dividerClasses-DDXs86hs.js} +1 -1
  220. package/dist/{extendSxProp-ZMCunXYm.cjs → extendSxProp-CxMSlckP.cjs} +1 -1
  221. package/dist/{extendSxProp-CesAxox9.js → extendSxProp-XouBF-Ct.js} +1 -1
  222. package/dist/identifier-DBvccNCw.cjs +55 -0
  223. package/dist/identifier-Dnc8T93Z.js +2673 -0
  224. package/dist/{index-8G2jvqZ8.js → index-9te7SXrs.js} +47 -41
  225. package/dist/index-BkNQtUZJ.cjs +1 -0
  226. package/dist/index.cjs.js +1 -1
  227. package/dist/index.es.js +302 -300
  228. package/dist/{listItemTextClasses-B5VhLd9W.js → listItemTextClasses-4p_83pwn.js} +1 -1
  229. package/dist/{listItemTextClasses-CJDKfXvl.cjs → listItemTextClasses-Cxo4anAo.cjs} +1 -1
  230. package/dist/{memoTheme-BKfsJx_F.cjs → memoTheme-Dv-rDqFz.cjs} +1 -1
  231. package/dist/{memoTheme-DAFDflPY.js → memoTheme-K37vidlb.js} +1 -1
  232. package/dist/{mergeSlotProps-DXwOW3FE.cjs → mergeSlotProps-CXO1f70l.cjs} +1 -1
  233. package/dist/{mergeSlotProps-ChAye7iz.js → mergeSlotProps-DSWiBSbD.js} +1 -1
  234. package/dist/styled-B7pKW9DQ.cjs +1 -0
  235. package/dist/styled-JnAdiSL5.js +5 -0
  236. package/dist/{useSlot-BzdKwDQ5.js → useSlot-GooGQrej.js} +1 -1
  237. package/dist/{useSlot-C2FjoUpF.cjs → useSlot-ONna5RyM.cjs} +1 -1
  238. package/dist/{useSlotProps-DdMuGelR.js → useSlotProps-C34Wr67s.js} +1 -1
  239. package/dist/{useSlotProps-CrQGQLdL.cjs → useSlotProps-CtYqUyy1.cjs} +1 -1
  240. package/dist/{useTheme-XJ9sFCWX.js → useTheme-CH7DA5fq.js} +3 -3
  241. package/dist/{useTheme-BLMJDSsv.cjs → useTheme-D6wPRo0G.cjs} +1 -1
  242. package/dist/{useTheme-CooC_6Ep.cjs → useTheme-DkiCyF-9.cjs} +1 -1
  243. package/dist/{useTheme--i9fxE_A.js → useTheme-VH02z7nF.js} +1 -1
  244. package/dist/{useThemeProps-B9E_wuN9.cjs → useThemeProps-BU5PNyhK.cjs} +1 -1
  245. package/dist/useThemeProps-CnZ-QgwI.cjs +1 -0
  246. package/dist/useThemeProps-DT4QxdFn.js +17 -0
  247. package/dist/{useThemeProps-B4VFkcP0.js → useThemeProps-DZ05-54P.js} +2 -2
  248. package/package.json +7 -7
  249. package/dist/Autocomplete-BdPO9SAd.cjs +0 -6
  250. package/dist/Backdrop-DeNTZlA5.cjs +0 -1
  251. package/dist/Button-DyJV5llI.cjs +0 -1
  252. package/dist/Checkbox-3hTSv0EZ.cjs +0 -1
  253. package/dist/Chip-BG0OU0KI.cjs +0 -1
  254. package/dist/Chip-DmjZbx_X.js +0 -572
  255. package/dist/DatePicker-CH8XRum0.cjs +0 -16
  256. package/dist/DefaultPropsProvider-Cnf49AIv.cjs +0 -1
  257. package/dist/DefaultPropsProvider-DqazQPtr.js +0 -306
  258. package/dist/Dialog-Btagj_Gt.cjs +0 -1
  259. package/dist/Divider-NermA5hZ.cjs +0 -1
  260. package/dist/IconButton-CjtMjZ9e.cjs +0 -2
  261. package/dist/Link-BwbY60dS.cjs +0 -1
  262. package/dist/ListItemText-cVnimPLO.cjs +0 -1
  263. package/dist/MenuItem-DHM3qxwr.cjs +0 -1
  264. package/dist/Radio-Bwh_t6PC.cjs +0 -1
  265. package/dist/Select-3HP39Z7o.cjs +0 -3
  266. package/dist/Switch-CTEqKDiv.cjs +0 -1
  267. package/dist/SwitchBase-P3zHVmLX.cjs +0 -1
  268. package/dist/ToggleButtonGroup-CA1cSosV.cjs +0 -138
  269. package/dist/identifier-BoZelETM.cjs +0 -55
  270. package/dist/identifier-PWESmBq6.js +0 -2598
  271. package/dist/index-D3lMWU76.cjs +0 -1
  272. package/dist/styled-C7gyRDlj.js +0 -5
  273. package/dist/styled-Cax0O00h.cjs +0 -1
  274. package/dist/useThemeProps-C1A3rnbh.cjs +0 -1
  275. package/dist/useThemeProps-CQ9rZe7g.js +0 -17
@@ -1,49 +1,49 @@
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, K as n, n as S, s as N, q as D } from "./identifier-PWESmBq6.js";
4
- import { c as I } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
- import { S as U } from "./SwitchBase-DZV8S81Z.js";
6
- import { m as d } from "./memoTheme-DAFDflPY.js";
7
- import { u as y } from "./useSlot-BzdKwDQ5.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-DqazQPtr.js";
10
- import { r as A } from "./refType-Dp7CJc86.js";
11
- function V(t) {
12
- 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);
13
13
  }
14
- 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) => {
15
15
  const {
16
- classes: o,
16
+ classes: e,
17
17
  edge: s,
18
18
  size: p,
19
19
  color: h,
20
20
  checked: f,
21
21
  disabled: b
22
- } = t, g = {
22
+ } = t, w = {
23
23
  root: ["root", s && `edge${n(s)}`, `size${n(p)}`],
24
24
  switchBase: ["switchBase", `color${n(h)}`, f && "checked", b && "disabled"],
25
25
  thumb: ["thumb"],
26
26
  track: ["track"],
27
27
  input: ["input"]
28
- }, m = q(g, V, o);
28
+ }, g = U(w, F, e);
29
29
  return {
30
- ...o,
30
+ ...e,
31
31
  // forward the disabled and checked classes to the SwitchBase
32
- ...m
32
+ ...g
33
33
  };
34
- }, G = u("span", {
34
+ }, V = u("span", {
35
35
  name: "MuiSwitch",
36
36
  slot: "Root",
37
- overridesResolver: (t, o) => {
37
+ overridesResolver: (t, e) => {
38
38
  const {
39
39
  ownerState: s
40
40
  } = t;
41
- 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)}`]];
42
42
  }
43
43
  })({
44
44
  display: "inline-flex",
45
- width: 34 + 12 * 2,
46
- height: 14 + 12 * 2,
45
+ width: 58,
46
+ height: 38,
47
47
  overflow: "hidden",
48
48
  padding: 12,
49
49
  boxSizing: "border-box",
@@ -90,16 +90,16 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
90
90
  }
91
91
  }
92
92
  }]
93
- }), H = u(U, {
93
+ }), X = u(N, {
94
94
  name: "MuiSwitch",
95
95
  slot: "SwitchBase",
96
- overridesResolver: (t, o) => {
96
+ overridesResolver: (t, e) => {
97
97
  const {
98
98
  ownerState: s
99
99
  } = t;
100
- return [o.switchBase, {
101
- [`& .${a.input}`]: o.input
102
- }, 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)}`]];
103
103
  }
104
104
  })(d(({
105
105
  theme: t
@@ -133,35 +133,35 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
133
133
  theme: t
134
134
  }) => ({
135
135
  "&:hover": {
136
- 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),
137
137
  // Reset on touch devices, it doesn't add specificity
138
138
  "@media (hover: none)": {
139
139
  backgroundColor: "transparent"
140
140
  }
141
141
  },
142
- variants: [...Object.entries(t.palette).filter(I(["light"])).map(([o]) => ({
142
+ variants: [...Object.entries(t.palette).filter(M(["light"])).map(([e]) => ({
143
143
  props: {
144
- color: o
144
+ color: e
145
145
  },
146
146
  style: {
147
147
  [`&.${a.checked}`]: {
148
- color: (t.vars || t).palette[o].main,
148
+ color: (t.vars || t).palette[e].main,
149
149
  "&:hover": {
150
- 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),
151
151
  "@media (hover: none)": {
152
152
  backgroundColor: "transparent"
153
153
  }
154
154
  },
155
155
  [`&.${a.disabled}`]: {
156
- 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)}`
157
157
  }
158
158
  },
159
159
  [`&.${a.checked} + .${a.track}`]: {
160
- backgroundColor: (t.vars || t).palette[o].main
160
+ backgroundColor: (t.vars || t).palette[e].main
161
161
  }
162
162
  }
163
163
  }))]
164
- }))), K = u("span", {
164
+ }))), q = u("span", {
165
165
  name: "MuiSwitch",
166
166
  slot: "Track"
167
167
  })(d(({
@@ -176,7 +176,7 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
176
176
  }),
177
177
  backgroundColor: t.vars ? t.vars.palette.common.onBackground : `${t.palette.mode === "light" ? t.palette.common.black : t.palette.common.white}`,
178
178
  opacity: t.vars ? t.vars.opacity.switchTrack : `${t.palette.mode === "light" ? 0.38 : 0.3}`
179
- }))), L = u("span", {
179
+ }))), G = u("span", {
180
180
  name: "MuiSwitch",
181
181
  slot: "Thumb"
182
182
  })(d(({
@@ -187,57 +187,57 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
187
187
  width: 20,
188
188
  height: 20,
189
189
  borderRadius: "50%"
190
- }))), _ = /* @__PURE__ */ P.forwardRef(function(o, s) {
191
- const p = F({
192
- props: o,
190
+ }))), H = /* @__PURE__ */ z.forwardRef(function(e, s) {
191
+ const p = I({
192
+ props: e,
193
193
  name: "MuiSwitch"
194
194
  }), {
195
195
  className: h,
196
196
  color: f = "primary",
197
197
  edge: b = !1,
198
- size: g = "medium",
199
- sx: m,
198
+ size: w = "medium",
199
+ sx: g,
200
200
  slots: c = {},
201
201
  slotProps: r = {},
202
- ...$
202
+ ...v
203
203
  } = p, i = {
204
204
  ...p,
205
205
  color: f,
206
206
  edge: b,
207
- size: g
208
- }, l = X(i), w = {
207
+ size: w
208
+ }, l = A(i), m = {
209
209
  slots: c,
210
210
  slotProps: r
211
- }, [T, C] = y("root", {
212
- className: M(l.root, h),
213
- elementType: G,
214
- externalForwardedProps: w,
211
+ }, [T, $] = y("root", {
212
+ className: R(l.root, h),
213
+ elementType: V,
214
+ externalForwardedProps: m,
215
215
  ownerState: i,
216
216
  additionalProps: {
217
- sx: m
217
+ sx: g
218
218
  }
219
- }), [x, O] = y("thumb", {
219
+ }), [C, x] = y("thumb", {
220
220
  className: l.thumb,
221
- elementType: L,
222
- externalForwardedProps: w,
221
+ elementType: G,
222
+ externalForwardedProps: m,
223
223
  ownerState: i
224
- }), k = /* @__PURE__ */ v(x, {
225
- ...O
226
- }), [B, z] = y("track", {
224
+ }), S = /* @__PURE__ */ k(C, {
225
+ ...x
226
+ }), [B, O] = y("track", {
227
227
  className: l.track,
228
- elementType: K,
229
- externalForwardedProps: w,
228
+ elementType: q,
229
+ externalForwardedProps: m,
230
230
  ownerState: i
231
231
  });
232
- return /* @__PURE__ */ E(T, {
233
- ...C,
234
- children: [/* @__PURE__ */ v(H, {
232
+ return /* @__PURE__ */ D(T, {
233
+ ...$,
234
+ children: [/* @__PURE__ */ k(X, {
235
235
  type: "checkbox",
236
- icon: k,
237
- checkedIcon: k,
236
+ icon: S,
237
+ checkedIcon: S,
238
238
  ref: s,
239
239
  ownerState: i,
240
- ...$,
240
+ ...v,
241
241
  classes: {
242
242
  ...l,
243
243
  root: l.switchBase
@@ -254,16 +254,19 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
254
254
  ...r.switchBase && {
255
255
  root: typeof r.switchBase == "function" ? r.switchBase(i) : r.switchBase
256
256
  },
257
+ input: {
258
+ role: "switch"
259
+ },
257
260
  ...r.input && {
258
261
  input: typeof r.input == "function" ? r.input(i) : r.input
259
262
  }
260
263
  }
261
- }), /* @__PURE__ */ v(B, {
262
- ...z
264
+ }), /* @__PURE__ */ k(B, {
265
+ ...O
263
266
  })]
264
267
  });
265
268
  });
266
- process.env.NODE_ENV !== "production" && (_.propTypes = {
269
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
267
270
  // ┌────────────────────────────── Warning ──────────────────────────────┐
268
271
  // │ These PropTypes are generated from the TypeScript type definitions. │
269
272
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -271,39 +274,39 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
271
274
  /**
272
275
  * If `true`, the component is checked.
273
276
  */
274
- checked: e.bool,
277
+ checked: o.bool,
275
278
  /**
276
279
  * The icon to display when the component is checked.
277
280
  */
278
- checkedIcon: e.node,
281
+ checkedIcon: o.node,
279
282
  /**
280
283
  * Override or extend the styles applied to the component.
281
284
  */
282
- classes: e.object,
285
+ classes: o.object,
283
286
  /**
284
287
  * @ignore
285
288
  */
286
- className: e.string,
289
+ className: o.string,
287
290
  /**
288
291
  * The color of the component.
289
292
  * It supports both default and custom theme colors, which can be added as shown in the
290
293
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
291
294
  * @default 'primary'
292
295
  */
293
- 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]),
294
297
  /**
295
298
  * The default checked state. Use when the component is not controlled.
296
299
  */
297
- defaultChecked: e.bool,
300
+ defaultChecked: o.bool,
298
301
  /**
299
302
  * If `true`, the component is disabled.
300
303
  */
301
- disabled: e.bool,
304
+ disabled: o.bool,
302
305
  /**
303
306
  * If `true`, the ripple effect is disabled.
304
307
  * @default false
305
308
  */
306
- disableRipple: e.bool,
309
+ disableRipple: o.bool,
307
310
  /**
308
311
  * If given, uses a negative margin to counteract the padding on one
309
312
  * side (this is often helpful for aligning the left or right
@@ -311,25 +314,25 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
311
314
  * size and shape).
312
315
  * @default false
313
316
  */
314
- edge: e.oneOf(["end", "start", !1]),
317
+ edge: o.oneOf(["end", "start", !1]),
315
318
  /**
316
319
  * The icon to display when the component is unchecked.
317
320
  */
318
- icon: e.node,
321
+ icon: o.node,
319
322
  /**
320
323
  * The id of the `input` element.
321
324
  */
322
- id: e.string,
325
+ id: o.string,
323
326
  /**
324
327
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
325
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.
326
329
  */
327
- inputProps: e.object,
330
+ inputProps: o.object,
328
331
  /**
329
332
  * Pass a ref to the `input` element.
330
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.
331
334
  */
332
- inputRef: A,
335
+ inputRef: E,
333
336
  /**
334
337
  * Callback fired when the state is changed.
335
338
  *
@@ -337,52 +340,52 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
337
340
  * You can pull out the new value by accessing `event.target.value` (string).
338
341
  * You can pull out the new checked state by accessing `event.target.checked` (boolean).
339
342
  */
340
- onChange: e.func,
343
+ onChange: o.func,
341
344
  /**
342
345
  * If `true`, the `input` element is required.
343
346
  * @default false
344
347
  */
345
- required: e.bool,
348
+ required: o.bool,
346
349
  /**
347
350
  * The size of the component.
348
351
  * `small` is equivalent to the dense switch styling.
349
352
  * @default 'medium'
350
353
  */
351
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
354
+ size: o.oneOfType([o.oneOf(["medium", "small"]), o.string]),
352
355
  /**
353
356
  * The props used for each slot inside.
354
357
  * @default {}
355
358
  */
356
- slotProps: e.shape({
357
- input: e.oneOfType([e.func, e.object]),
358
- root: e.oneOfType([e.func, e.object]),
359
- switchBase: e.oneOfType([e.func, e.object]),
360
- thumb: e.oneOfType([e.func, e.object]),
361
- 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])
362
365
  }),
363
366
  /**
364
367
  * The components used for each slot inside.
365
368
  * @default {}
366
369
  */
367
- slots: e.shape({
368
- input: e.elementType,
369
- root: e.elementType,
370
- switchBase: e.elementType,
371
- thumb: e.elementType,
372
- 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
373
376
  }),
374
377
  /**
375
378
  * The system prop that allows defining system overrides as well as additional CSS styles.
376
379
  */
377
- 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]),
378
381
  /**
379
382
  * The value of the component. The DOM API casts this to a string.
380
383
  * The browser uses "on" as the default value.
381
384
  */
382
- value: e.any
385
+ value: o.any
383
386
  });
384
387
  export {
385
- _ as S,
386
- V as g,
388
+ H as S,
389
+ F as g,
387
390
  a as s
388
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,18 +1,18 @@
1
- import * as J 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-DqazQPtr.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, K as Z } from "./identifier-PWESmBq6.js";
6
- import { u as k } from "./useSlot-BzdKwDQ5.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
7
  import { jsxs as ee, jsx as oe } from "react/jsx-runtime";
8
8
  import { u as te } from "./useControlled-nm4pBabJ.js";
9
- import { B as se } from "./ButtonBase-6TF6t2SP.js";
9
+ import { B as se } from "./ButtonBase-CJYV8wgs.js";
10
10
  import { r as ne } from "./refType-Dp7CJc86.js";
11
- function re(s) {
11
+ function ie(s) {
12
12
  return X("PrivateSwitchBase", s);
13
13
  }
14
14
  Y("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
15
- const ie = (s) => {
15
+ const re = (s) => {
16
16
  const {
17
17
  classes: n,
18
18
  checked: d,
@@ -22,8 +22,10 @@ const ie = (s) => {
22
22
  root: ["root", d && "checked", p && "disabled", a && `edge${Z(a)}`],
23
23
  input: ["input"]
24
24
  };
25
- return M(u, re, n);
26
- }, ae = C(se)({
25
+ return J(u, ie, n);
26
+ }, ae = k(se, {
27
+ name: "MuiSwitchBase"
28
+ })({
27
29
  padding: 9,
28
30
  borderRadius: "50%",
29
31
  variants: [{
@@ -59,7 +61,8 @@ const ie = (s) => {
59
61
  marginRight: -12
60
62
  }
61
63
  }]
62
- }), ce = C("input", {
64
+ }), ce = k("input", {
65
+ name: "MuiSwitchBase",
63
66
  shouldForwardProp: Q
64
67
  })({
65
68
  cursor: "inherit",
@@ -72,21 +75,21 @@ const ie = (s) => {
72
75
  margin: 0,
73
76
  padding: 0,
74
77
  zIndex: 1
75
- }), le = /* @__PURE__ */ J.forwardRef(function(n, d) {
78
+ }), le = /* @__PURE__ */ H.forwardRef(function(n, d) {
76
79
  const {
77
80
  autoFocus: p,
78
81
  checked: a,
79
82
  checkedIcon: u,
80
83
  defaultChecked: m,
81
- disabled: w,
82
- disableFocusRipple: g = !1,
84
+ disabled: C,
85
+ disableFocusRipple: h = !1,
83
86
  edge: R = !1,
84
87
  icon: x,
85
88
  id: T,
86
89
  inputProps: I,
87
90
  inputRef: j,
88
91
  name: O,
89
- onBlur: h,
92
+ onBlur: g,
90
93
  onChange: b,
91
94
  onFocus: y,
92
95
  readOnly: z,
@@ -97,74 +100,74 @@ const ie = (s) => {
97
100
  slots: E = {},
98
101
  slotProps: U = {},
99
102
  ...v
100
- } = n, [F, L] = te({
103
+ } = n, [S, L] = te({
101
104
  controlled: a,
102
105
  default: !!m,
103
106
  name: "SwitchBase",
104
107
  state: "checked"
105
- }), r = W(), D = (o) => {
106
- 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);
107
112
  }, G = (o) => {
108
- h && h(o), r && r.onBlur && r.onBlur(o);
109
- }, K = (o) => {
110
113
  if (o.nativeEvent.defaultPrevented)
111
114
  return;
112
115
  const t = o.target.checked;
113
116
  L(t), b && b(o, t);
114
117
  };
115
- let c = w;
116
- r && typeof c > "u" && (c = r.disabled);
117
- const V = 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 = {
118
121
  ...n,
119
- checked: F,
122
+ checked: S,
120
123
  disabled: c,
121
- disableFocusRipple: g,
124
+ disableFocusRipple: h,
122
125
  edge: R
123
- }, S = ie(f), B = {
126
+ }, B = re(f), F = {
124
127
  slots: E,
125
128
  slotProps: {
126
129
  input: I,
127
130
  ...U
128
131
  }
129
- }, [_, $] = k("root", {
132
+ }, [V, _] = w("root", {
130
133
  ref: d,
131
134
  elementType: ae,
132
- className: S.root,
135
+ className: B.root,
133
136
  shouldForwardComponentProp: !0,
134
137
  externalForwardedProps: {
135
- ...B,
138
+ ...F,
136
139
  component: "span",
137
140
  ...v
138
141
  },
139
142
  getSlotProps: (o) => ({
140
143
  ...o,
141
144
  onFocus: (t) => {
142
- var i;
143
- (i = o.onFocus) == null || i.call(o, t), D(t);
145
+ var r;
146
+ (r = o.onFocus) == null || r.call(o, t), M(t);
144
147
  },
145
148
  onBlur: (t) => {
146
- var i;
147
- (i = o.onBlur) == null || i.call(o, t), G(t);
149
+ var r;
150
+ (r = o.onBlur) == null || r.call(o, t), D(t);
148
151
  }
149
152
  }),
150
153
  ownerState: f,
151
154
  additionalProps: {
152
155
  centerRipple: !0,
153
- focusRipple: !g,
156
+ focusRipple: !h,
154
157
  disabled: c,
155
158
  role: void 0,
156
159
  tabIndex: null
157
160
  }
158
- }), [A, H] = k("input", {
161
+ }), [$, A] = w("input", {
159
162
  ref: j,
160
163
  elementType: ce,
161
- className: S.input,
162
- externalForwardedProps: B,
164
+ className: B.input,
165
+ externalForwardedProps: F,
163
166
  getSlotProps: (o) => ({
164
167
  ...o,
165
168
  onChange: (t) => {
166
- var i;
167
- (i = o.onChange) == null || i.call(o, t), K(t);
169
+ var r;
170
+ (r = o.onChange) == null || r.call(o, t), G(t);
168
171
  }
169
172
  }),
170
173
  ownerState: f,
@@ -173,7 +176,7 @@ const ie = (s) => {
173
176
  checked: a,
174
177
  defaultChecked: m,
175
178
  disabled: c,
176
- id: V ? T : void 0,
179
+ id: K ? T : void 0,
177
180
  name: O,
178
181
  readOnly: z,
179
182
  required: q,
@@ -184,11 +187,11 @@ const ie = (s) => {
184
187
  }
185
188
  }
186
189
  });
187
- return /* @__PURE__ */ ee(_, {
188
- ...$,
189
- children: [/* @__PURE__ */ oe(A, {
190
- ...H
191
- }), F ? u : x]
190
+ return /* @__PURE__ */ ee(V, {
191
+ ..._,
192
+ children: [/* @__PURE__ */ oe($, {
193
+ ...A
194
+ }), S ? u : x]
192
195
  });
193
196
  });
194
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;