@mui/material 5.15.13 → 6.0.0-alpha.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 (582) hide show
  1. package/Accordion/Accordion.js +31 -25
  2. package/AccordionActions/AccordionActions.js +14 -12
  3. package/AccordionDetails/AccordionDetails.js +2 -2
  4. package/AccordionSummary/AccordionSummary.js +30 -25
  5. package/Alert/Alert.js +1 -2
  6. package/AppBar/AppBar.js +1 -1
  7. package/Autocomplete/Autocomplete.d.ts +1 -1
  8. package/Autocomplete/Autocomplete.js +71 -50
  9. package/Autocomplete/autocompleteClasses.d.ts +3 -3
  10. package/AvatarGroup/AvatarGroup.js +27 -25
  11. package/Backdrop/Backdrop.d.ts +40 -22
  12. package/Backdrop/Backdrop.js +50 -33
  13. package/Badge/Badge.js +156 -164
  14. package/BottomNavigation/BottomNavigation.js +2 -2
  15. package/BottomNavigationAction/BottomNavigationAction.js +40 -24
  16. package/Breadcrumbs/Breadcrumbs.js +2 -2
  17. package/Button/Button.js +2 -4
  18. package/ButtonBase/ButtonBase.js +1 -2
  19. package/ButtonBase/TouchRipple.js +34 -39
  20. package/ButtonGroup/ButtonGroup.js +1 -1
  21. package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
  22. package/ButtonGroup/buttonGroupClasses.js +1 -1
  23. package/CHANGELOG.md +195 -60
  24. package/Card/Card.js +4 -6
  25. package/CardActionArea/CardActionArea.js +3 -4
  26. package/CardActions/CardActions.js +16 -12
  27. package/CardContent/CardContent.js +7 -9
  28. package/CardHeader/CardHeader.js +3 -4
  29. package/CardMedia/CardMedia.js +22 -13
  30. package/Checkbox/Checkbox.js +2 -3
  31. package/Chip/Chip.js +191 -122
  32. package/CircularProgress/CircularProgress.d.ts +1 -1
  33. package/CircularProgress/CircularProgress.js +11 -16
  34. package/CssBaseline/CssBaseline.js +3 -6
  35. package/DialogTitle/DialogTitle.js +1 -1
  36. package/Divider/Divider.js +140 -81
  37. package/Fab/Fab.js +55 -58
  38. package/FilledInput/FilledInput.js +4 -6
  39. package/FormControl/FormControl.js +30 -15
  40. package/FormControlLabel/FormControlLabel.js +42 -27
  41. package/FormGroup/FormGroup.js +14 -10
  42. package/Grid/Grid.js +2 -4
  43. package/Icon/Icon.d.ts +1 -1
  44. package/Icon/Icon.js +1 -1
  45. package/IconButton/IconButton.js +2 -3
  46. package/ImageListItemBar/ImageListItemBar.js +1 -2
  47. package/Input/Input.js +3 -4
  48. package/InputAdornment/InputAdornment.js +1 -2
  49. package/InputBase/InputBase.js +2 -4
  50. package/LinearProgress/LinearProgress.js +16 -24
  51. package/List/List.js +1 -2
  52. package/ListItem/ListItem.js +1 -2
  53. package/ListItemText/ListItemText.js +2 -3
  54. package/Menu/Menu.js +2 -3
  55. package/MobileStepper/MobileStepper.js +80 -47
  56. package/Modal/Modal.js +22 -19
  57. package/NativeSelect/NativeSelectInput.js +1 -2
  58. package/OutlinedInput/OutlinedInput.js +4 -5
  59. package/OverridableComponent.d.ts +1 -1
  60. package/PaginationItem/PaginationItem.js +1 -2
  61. package/Paper/Paper.js +15 -18
  62. package/Popover/Popover.js +7 -8
  63. package/Popper/Popper.d.ts +3 -26
  64. package/Popper/Popper.js +3 -4
  65. package/README.md +5 -3
  66. package/Radio/Radio.js +2 -3
  67. package/Radio/RadioButtonIcon.js +1 -2
  68. package/Rating/Rating.js +1 -2
  69. package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
  70. package/Select/Select.d.ts +8 -20
  71. package/Select/SelectInput.js +3 -5
  72. package/Skeleton/Skeleton.js +11 -16
  73. package/Slider/Slider.js +358 -195
  74. package/Slider/SliderValueLabel.js +1 -2
  75. package/SnackbarContent/SnackbarContent.js +1 -2
  76. package/SpeedDial/SpeedDial.js +1 -2
  77. package/SpeedDialAction/SpeedDialAction.js +1 -2
  78. package/SpeedDialIcon/SpeedDialIcon.js +1 -2
  79. package/Step/Step.js +23 -14
  80. package/StepButton/StepButton.js +17 -14
  81. package/StepConnector/StepConnector.js +45 -26
  82. package/StepContent/StepContent.js +13 -8
  83. package/StepIcon/StepIcon.js +3 -4
  84. package/StepLabel/StepLabel.d.ts +25 -13
  85. package/StepLabel/StepLabel.js +47 -27
  86. package/Stepper/Stepper.js +29 -15
  87. package/SvgIcon/SvgIcon.js +26 -30
  88. package/SwipeableDrawer/SwipeableDrawer.js +2 -4
  89. package/Switch/Switch.js +1 -2
  90. package/TabScrollButton/TabScrollButton.js +2 -3
  91. package/TablePagination/TablePagination.js +2 -4
  92. package/TablePagination/TablePaginationActions.js +11 -13
  93. package/TableSortLabel/TableSortLabel.js +1 -2
  94. package/Tabs/Tabs.js +6 -10
  95. package/TextField/TextField.js +1 -2
  96. package/Tooltip/Tooltip.js +14 -17
  97. package/index.js +1 -1
  98. package/internal/SwitchBase.js +1 -2
  99. package/legacy/Accordion/Accordion.js +34 -24
  100. package/legacy/AccordionActions/AccordionActions.js +17 -14
  101. package/legacy/AccordionDetails/AccordionDetails.js +2 -2
  102. package/legacy/AccordionSummary/AccordionSummary.js +32 -24
  103. package/legacy/Alert/Alert.js +1 -2
  104. package/legacy/Autocomplete/Autocomplete.js +134 -116
  105. package/legacy/AvatarGroup/AvatarGroup.js +19 -11
  106. package/legacy/Backdrop/Backdrop.js +66 -44
  107. package/legacy/Badge/Badge.js +1 -2
  108. package/legacy/BottomNavigation/BottomNavigation.js +2 -2
  109. package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
  110. package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
  111. package/legacy/Button/Button.js +1 -2
  112. package/legacy/ButtonBase/ButtonBase.js +1 -2
  113. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  114. package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
  115. package/legacy/Card/Card.js +4 -6
  116. package/legacy/CardActionArea/CardActionArea.js +3 -4
  117. package/legacy/CardActions/CardActions.js +16 -13
  118. package/legacy/CardContent/CardContent.js +7 -9
  119. package/legacy/CardHeader/CardHeader.js +3 -4
  120. package/legacy/CardMedia/CardMedia.js +24 -16
  121. package/legacy/Chip/Chip.js +199 -107
  122. package/legacy/CircularProgress/CircularProgress.js +1 -1
  123. package/legacy/CssBaseline/CssBaseline.js +1 -2
  124. package/legacy/Divider/Divider.js +148 -88
  125. package/legacy/FormControl/FormControl.js +37 -23
  126. package/legacy/FormControlLabel/FormControlLabel.js +42 -25
  127. package/legacy/FormGroup/FormGroup.js +15 -12
  128. package/legacy/Icon/Icon.js +1 -1
  129. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
  130. package/legacy/InputAdornment/InputAdornment.js +1 -2
  131. package/legacy/InputBase/InputBase.js +1 -2
  132. package/legacy/LinearProgress/LinearProgress.js +1 -2
  133. package/legacy/List/List.js +1 -2
  134. package/legacy/ListItem/ListItem.js +1 -2
  135. package/legacy/ListItemText/ListItemText.js +1 -2
  136. package/legacy/MobileStepper/MobileStepper.js +80 -48
  137. package/legacy/Modal/Modal.js +20 -15
  138. package/legacy/NativeSelect/NativeSelectInput.js +1 -2
  139. package/legacy/OutlinedInput/OutlinedInput.js +1 -2
  140. package/legacy/PaginationItem/PaginationItem.js +1 -2
  141. package/legacy/Popover/Popover.js +2 -2
  142. package/legacy/Radio/RadioButtonIcon.js +1 -2
  143. package/legacy/Rating/Rating.js +1 -2
  144. package/legacy/Select/SelectInput.js +1 -2
  145. package/legacy/Slider/Slider.js +374 -193
  146. package/legacy/Slider/SliderValueLabel.js +1 -2
  147. package/legacy/SnackbarContent/SnackbarContent.js +1 -2
  148. package/legacy/SpeedDial/SpeedDial.js +1 -2
  149. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
  150. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
  151. package/legacy/Step/Step.js +22 -14
  152. package/legacy/StepButton/StepButton.js +17 -15
  153. package/legacy/StepConnector/StepConnector.js +46 -28
  154. package/legacy/StepContent/StepContent.js +15 -10
  155. package/legacy/StepIcon/StepIcon.js +3 -4
  156. package/legacy/StepLabel/StepLabel.js +65 -44
  157. package/legacy/Stepper/Stepper.js +28 -15
  158. package/legacy/SvgIcon/SvgIcon.js +2 -3
  159. package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
  160. package/legacy/Switch/Switch.js +1 -2
  161. package/legacy/TablePagination/TablePagination.js +1 -2
  162. package/legacy/TablePagination/TablePaginationActions.js +1 -2
  163. package/legacy/TableSortLabel/TableSortLabel.js +1 -2
  164. package/legacy/Tabs/Tabs.js +1 -2
  165. package/legacy/TextField/TextField.js +1 -2
  166. package/legacy/Tooltip/Tooltip.js +1 -2
  167. package/legacy/index.js +1 -1
  168. package/legacy/internal/SwitchBase.js +1 -2
  169. package/legacy/styles/CssVarsProvider.js +1 -3
  170. package/legacy/styles/createGetSelector.js +21 -0
  171. package/legacy/styles/experimental_extendTheme.js +27 -8
  172. package/legacy/styles/rootShouldForwardProp.js +5 -0
  173. package/legacy/styles/slotShouldForwardProp.js +5 -0
  174. package/legacy/styles/styled.js +4 -5
  175. package/legacy/usePagination/usePagination.js +1 -1
  176. package/modern/Accordion/Accordion.js +31 -25
  177. package/modern/AccordionActions/AccordionActions.js +14 -12
  178. package/modern/AccordionDetails/AccordionDetails.js +2 -2
  179. package/modern/AccordionSummary/AccordionSummary.js +30 -25
  180. package/modern/Alert/Alert.js +1 -2
  181. package/modern/Autocomplete/Autocomplete.js +61 -36
  182. package/modern/AvatarGroup/AvatarGroup.js +25 -22
  183. package/modern/Backdrop/Backdrop.js +50 -32
  184. package/modern/Badge/Badge.js +1 -2
  185. package/modern/BottomNavigation/BottomNavigation.js +2 -2
  186. package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
  187. package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
  188. package/modern/Button/Button.js +1 -2
  189. package/modern/ButtonBase/ButtonBase.js +1 -2
  190. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  191. package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
  192. package/modern/Card/Card.js +4 -6
  193. package/modern/CardActionArea/CardActionArea.js +3 -4
  194. package/modern/CardActions/CardActions.js +16 -12
  195. package/modern/CardContent/CardContent.js +7 -9
  196. package/modern/CardHeader/CardHeader.js +3 -4
  197. package/modern/CardMedia/CardMedia.js +22 -13
  198. package/modern/Chip/Chip.js +191 -122
  199. package/modern/CircularProgress/CircularProgress.js +1 -1
  200. package/modern/CssBaseline/CssBaseline.js +1 -2
  201. package/modern/Divider/Divider.js +140 -81
  202. package/modern/FormControl/FormControl.js +30 -15
  203. package/modern/FormControlLabel/FormControlLabel.js +38 -22
  204. package/modern/FormGroup/FormGroup.js +14 -10
  205. package/modern/Icon/Icon.js +1 -1
  206. package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
  207. package/modern/InputAdornment/InputAdornment.js +1 -2
  208. package/modern/InputBase/InputBase.js +1 -2
  209. package/modern/LinearProgress/LinearProgress.js +1 -2
  210. package/modern/List/List.js +1 -2
  211. package/modern/ListItem/ListItem.js +1 -2
  212. package/modern/ListItemText/ListItemText.js +1 -2
  213. package/modern/MobileStepper/MobileStepper.js +80 -47
  214. package/modern/Modal/Modal.js +15 -11
  215. package/modern/NativeSelect/NativeSelectInput.js +1 -2
  216. package/modern/OutlinedInput/OutlinedInput.js +1 -2
  217. package/modern/PaginationItem/PaginationItem.js +1 -2
  218. package/modern/Popover/Popover.js +2 -2
  219. package/modern/Radio/RadioButtonIcon.js +1 -2
  220. package/modern/Rating/Rating.js +1 -2
  221. package/modern/Select/SelectInput.js +1 -2
  222. package/modern/Slider/Slider.js +338 -174
  223. package/modern/Slider/SliderValueLabel.js +1 -2
  224. package/modern/SnackbarContent/SnackbarContent.js +1 -2
  225. package/modern/SpeedDial/SpeedDial.js +1 -2
  226. package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
  227. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
  228. package/modern/Step/Step.js +23 -14
  229. package/modern/StepButton/StepButton.js +17 -14
  230. package/modern/StepConnector/StepConnector.js +45 -26
  231. package/modern/StepContent/StepContent.js +13 -8
  232. package/modern/StepIcon/StepIcon.js +3 -4
  233. package/modern/StepLabel/StepLabel.js +47 -26
  234. package/modern/Stepper/Stepper.js +29 -15
  235. package/modern/SvgIcon/SvgIcon.js +2 -3
  236. package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
  237. package/modern/Switch/Switch.js +1 -2
  238. package/modern/TablePagination/TablePagination.js +1 -2
  239. package/modern/TablePagination/TablePaginationActions.js +1 -2
  240. package/modern/TableSortLabel/TableSortLabel.js +1 -2
  241. package/modern/Tabs/Tabs.js +1 -2
  242. package/modern/TextField/TextField.js +1 -2
  243. package/modern/Tooltip/Tooltip.js +1 -2
  244. package/modern/index.js +1 -1
  245. package/modern/internal/SwitchBase.js +1 -2
  246. package/modern/styles/CssVarsProvider.js +1 -3
  247. package/modern/styles/createGetSelector.js +21 -0
  248. package/modern/styles/experimental_extendTheme.js +22 -9
  249. package/modern/styles/rootShouldForwardProp.js +3 -0
  250. package/modern/styles/slotShouldForwardProp.js +5 -0
  251. package/modern/styles/styled.js +4 -3
  252. package/modern/usePagination/usePagination.js +1 -1
  253. package/node/Accordion/Accordion.js +33 -26
  254. package/node/Accordion/AccordionContext.js +1 -1
  255. package/node/Accordion/index.js +1 -1
  256. package/node/AccordionActions/AccordionActions.js +17 -15
  257. package/node/AccordionActions/index.js +1 -1
  258. package/node/AccordionDetails/AccordionDetails.js +5 -5
  259. package/node/AccordionDetails/index.js +1 -1
  260. package/node/AccordionSummary/AccordionSummary.js +34 -28
  261. package/node/AccordionSummary/index.js +1 -1
  262. package/node/Alert/Alert.js +1 -1
  263. package/node/Alert/index.js +1 -1
  264. package/node/AlertTitle/AlertTitle.js +1 -1
  265. package/node/AlertTitle/index.js +1 -1
  266. package/node/AppBar/AppBar.js +1 -1
  267. package/node/AppBar/index.js +1 -1
  268. package/node/Autocomplete/Autocomplete.js +73 -47
  269. package/node/Autocomplete/index.js +1 -1
  270. package/node/Avatar/Avatar.js +1 -1
  271. package/node/Avatar/index.js +1 -1
  272. package/node/AvatarGroup/AvatarGroup.js +27 -23
  273. package/node/AvatarGroup/index.js +1 -1
  274. package/node/Backdrop/Backdrop.js +53 -36
  275. package/node/Backdrop/index.js +1 -1
  276. package/node/Badge/Badge.js +1 -1
  277. package/node/Badge/index.js +1 -1
  278. package/node/BottomNavigation/BottomNavigation.js +5 -5
  279. package/node/BottomNavigation/index.js +1 -1
  280. package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
  281. package/node/BottomNavigationAction/index.js +1 -1
  282. package/node/Box/index.js +1 -1
  283. package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  284. package/node/Breadcrumbs/Breadcrumbs.js +7 -7
  285. package/node/Breadcrumbs/index.js +1 -1
  286. package/node/Button/Button.js +1 -1
  287. package/node/Button/index.js +1 -1
  288. package/node/ButtonBase/ButtonBase.js +1 -1
  289. package/node/ButtonBase/Ripple.js +1 -1
  290. package/node/ButtonBase/TouchRipple.js +1 -1
  291. package/node/ButtonBase/index.js +1 -1
  292. package/node/ButtonGroup/ButtonGroup.js +2 -2
  293. package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
  294. package/node/ButtonGroup/ButtonGroupContext.js +1 -1
  295. package/node/ButtonGroup/buttonGroupClasses.js +1 -1
  296. package/node/ButtonGroup/index.js +1 -1
  297. package/node/Card/Card.js +7 -9
  298. package/node/Card/index.js +1 -1
  299. package/node/CardActionArea/CardActionArea.js +6 -6
  300. package/node/CardActionArea/index.js +1 -1
  301. package/node/CardActions/CardActions.js +19 -15
  302. package/node/CardActions/index.js +1 -1
  303. package/node/CardContent/CardContent.js +10 -12
  304. package/node/CardContent/index.js +1 -1
  305. package/node/CardHeader/CardHeader.js +8 -8
  306. package/node/CardHeader/index.js +1 -1
  307. package/node/CardMedia/CardMedia.js +25 -16
  308. package/node/CardMedia/index.js +1 -1
  309. package/node/Checkbox/Checkbox.js +1 -1
  310. package/node/Checkbox/index.js +1 -1
  311. package/node/Chip/Chip.js +194 -124
  312. package/node/Chip/index.js +1 -1
  313. package/node/CircularProgress/CircularProgress.js +2 -2
  314. package/node/CircularProgress/index.js +1 -1
  315. package/node/Collapse/Collapse.js +1 -1
  316. package/node/Collapse/index.js +1 -1
  317. package/node/Container/index.js +1 -1
  318. package/node/CssBaseline/CssBaseline.js +1 -1
  319. package/node/Dialog/Dialog.js +1 -1
  320. package/node/Dialog/DialogContext.js +1 -1
  321. package/node/Dialog/index.js +1 -1
  322. package/node/DialogActions/DialogActions.js +1 -1
  323. package/node/DialogActions/index.js +1 -1
  324. package/node/DialogContent/DialogContent.js +1 -1
  325. package/node/DialogContent/index.js +1 -1
  326. package/node/DialogContentText/DialogContentText.js +1 -1
  327. package/node/DialogContentText/index.js +1 -1
  328. package/node/DialogTitle/DialogTitle.js +1 -1
  329. package/node/DialogTitle/index.js +1 -1
  330. package/node/Divider/Divider.js +144 -85
  331. package/node/Divider/index.js +1 -1
  332. package/node/Drawer/Drawer.js +1 -1
  333. package/node/Drawer/index.js +1 -1
  334. package/node/Fab/Fab.js +1 -1
  335. package/node/Fab/index.js +1 -1
  336. package/node/Fade/Fade.js +1 -1
  337. package/node/FilledInput/FilledInput.js +1 -1
  338. package/node/FilledInput/index.js +1 -1
  339. package/node/FormControl/FormControl.js +33 -18
  340. package/node/FormControl/FormControlContext.js +1 -1
  341. package/node/FormControl/index.js +1 -1
  342. package/node/FormControl/useFormControl.js +1 -1
  343. package/node/FormControlLabel/FormControlLabel.js +41 -24
  344. package/node/FormControlLabel/index.js +1 -1
  345. package/node/FormGroup/FormGroup.js +17 -13
  346. package/node/FormGroup/index.js +1 -1
  347. package/node/FormHelperText/FormHelperText.js +1 -1
  348. package/node/FormHelperText/index.js +1 -1
  349. package/node/FormLabel/FormLabel.js +1 -1
  350. package/node/FormLabel/index.js +1 -1
  351. package/node/GlobalStyles/GlobalStyles.js +1 -1
  352. package/node/Grid/Grid.js +1 -1
  353. package/node/Grid/GridContext.js +1 -1
  354. package/node/Grid/index.js +1 -1
  355. package/node/Grow/Grow.js +1 -1
  356. package/node/Hidden/Hidden.js +1 -1
  357. package/node/Hidden/HiddenCss.js +1 -1
  358. package/node/Hidden/HiddenJs.js +1 -1
  359. package/node/Hidden/withWidth.js +1 -1
  360. package/node/Icon/Icon.js +2 -2
  361. package/node/Icon/index.js +1 -1
  362. package/node/IconButton/IconButton.js +1 -1
  363. package/node/IconButton/index.js +1 -1
  364. package/node/ImageList/ImageList.js +1 -1
  365. package/node/ImageList/ImageListContext.js +1 -1
  366. package/node/ImageList/index.js +1 -1
  367. package/node/ImageListItem/ImageListItem.js +1 -1
  368. package/node/ImageListItem/index.js +1 -1
  369. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  370. package/node/ImageListItemBar/index.js +1 -1
  371. package/node/Input/Input.js +1 -1
  372. package/node/Input/index.js +1 -1
  373. package/node/InputAdornment/InputAdornment.js +1 -1
  374. package/node/InputAdornment/index.js +1 -1
  375. package/node/InputBase/InputBase.js +1 -1
  376. package/node/InputBase/index.js +1 -1
  377. package/node/InputLabel/InputLabel.js +1 -1
  378. package/node/InputLabel/index.js +1 -1
  379. package/node/LinearProgress/LinearProgress.js +1 -1
  380. package/node/LinearProgress/index.js +1 -1
  381. package/node/Link/Link.js +1 -1
  382. package/node/Link/index.js +1 -1
  383. package/node/List/List.js +1 -1
  384. package/node/List/ListContext.js +1 -1
  385. package/node/List/index.js +1 -1
  386. package/node/ListItem/ListItem.js +1 -1
  387. package/node/ListItem/index.js +1 -1
  388. package/node/ListItemAvatar/ListItemAvatar.js +1 -1
  389. package/node/ListItemAvatar/index.js +1 -1
  390. package/node/ListItemButton/ListItemButton.js +1 -1
  391. package/node/ListItemButton/index.js +1 -1
  392. package/node/ListItemIcon/ListItemIcon.js +1 -1
  393. package/node/ListItemIcon/index.js +1 -1
  394. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  395. package/node/ListItemSecondaryAction/index.js +1 -1
  396. package/node/ListItemText/ListItemText.js +1 -1
  397. package/node/ListItemText/index.js +1 -1
  398. package/node/ListSubheader/ListSubheader.js +1 -1
  399. package/node/ListSubheader/index.js +1 -1
  400. package/node/Menu/Menu.js +1 -1
  401. package/node/Menu/index.js +1 -1
  402. package/node/MenuItem/MenuItem.js +1 -1
  403. package/node/MenuItem/index.js +1 -1
  404. package/node/MenuList/MenuList.js +1 -1
  405. package/node/MobileStepper/MobileStepper.js +86 -52
  406. package/node/MobileStepper/index.js +1 -1
  407. package/node/Modal/Modal.js +18 -13
  408. package/node/Modal/index.js +1 -1
  409. package/node/NativeSelect/NativeSelect.js +1 -1
  410. package/node/NativeSelect/NativeSelectInput.js +1 -1
  411. package/node/NativeSelect/index.js +1 -1
  412. package/node/OutlinedInput/NotchedOutline.js +1 -1
  413. package/node/OutlinedInput/OutlinedInput.js +1 -1
  414. package/node/OutlinedInput/index.js +1 -1
  415. package/node/Pagination/Pagination.js +1 -1
  416. package/node/Pagination/index.js +1 -1
  417. package/node/PaginationItem/PaginationItem.js +1 -1
  418. package/node/PaginationItem/index.js +1 -1
  419. package/node/Paper/Paper.js +1 -1
  420. package/node/Paper/index.js +1 -1
  421. package/node/Popover/Popover.js +6 -6
  422. package/node/Popover/index.js +1 -1
  423. package/node/Popper/Popper.js +1 -1
  424. package/node/Radio/Radio.js +1 -1
  425. package/node/Radio/RadioButtonIcon.js +1 -1
  426. package/node/Radio/index.js +1 -1
  427. package/node/RadioGroup/RadioGroup.js +1 -1
  428. package/node/RadioGroup/RadioGroupContext.js +1 -1
  429. package/node/RadioGroup/useRadioGroup.js +1 -1
  430. package/node/Rating/Rating.js +1 -1
  431. package/node/Rating/index.js +1 -1
  432. package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  433. package/node/ScopedCssBaseline/index.js +1 -1
  434. package/node/Select/Select.js +1 -1
  435. package/node/Select/SelectInput.js +1 -1
  436. package/node/Select/index.js +1 -1
  437. package/node/Skeleton/Skeleton.js +1 -1
  438. package/node/Skeleton/index.js +1 -1
  439. package/node/Slide/Slide.js +1 -1
  440. package/node/Slider/Slider.js +415 -234
  441. package/node/Slider/SliderValueLabel.js +1 -1
  442. package/node/Slider/index.js +1 -1
  443. package/node/Snackbar/Snackbar.js +1 -1
  444. package/node/Snackbar/index.js +1 -1
  445. package/node/SnackbarContent/SnackbarContent.js +1 -1
  446. package/node/SnackbarContent/index.js +1 -1
  447. package/node/SpeedDial/SpeedDial.js +1 -1
  448. package/node/SpeedDial/index.js +1 -1
  449. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  450. package/node/SpeedDialAction/index.js +1 -1
  451. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
  452. package/node/SpeedDialIcon/index.js +1 -1
  453. package/node/Step/Step.js +25 -15
  454. package/node/Step/StepContext.js +1 -1
  455. package/node/Step/index.js +1 -1
  456. package/node/StepButton/StepButton.js +20 -17
  457. package/node/StepButton/index.js +1 -1
  458. package/node/StepConnector/StepConnector.js +49 -30
  459. package/node/StepConnector/index.js +1 -1
  460. package/node/StepContent/StepContent.js +17 -12
  461. package/node/StepContent/index.js +1 -1
  462. package/node/StepIcon/StepIcon.js +6 -6
  463. package/node/StepIcon/index.js +1 -1
  464. package/node/StepLabel/StepLabel.js +52 -31
  465. package/node/StepLabel/index.js +1 -1
  466. package/node/Stepper/Stepper.js +32 -18
  467. package/node/Stepper/StepperContext.js +1 -1
  468. package/node/Stepper/index.js +1 -1
  469. package/node/SvgIcon/SvgIcon.js +2 -2
  470. package/node/SvgIcon/index.js +1 -1
  471. package/node/SwipeableDrawer/SwipeArea.js +1 -1
  472. package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
  473. package/node/Switch/Switch.js +1 -1
  474. package/node/Switch/index.js +1 -1
  475. package/node/Tab/Tab.js +1 -1
  476. package/node/Tab/index.js +1 -1
  477. package/node/TabScrollButton/TabScrollButton.js +1 -1
  478. package/node/TabScrollButton/index.js +1 -1
  479. package/node/Table/Table.js +1 -1
  480. package/node/Table/TableContext.js +1 -1
  481. package/node/Table/Tablelvl2Context.js +1 -1
  482. package/node/Table/index.js +1 -1
  483. package/node/TableBody/TableBody.js +1 -1
  484. package/node/TableBody/index.js +1 -1
  485. package/node/TableCell/TableCell.js +1 -1
  486. package/node/TableCell/index.js +1 -1
  487. package/node/TableContainer/TableContainer.js +1 -1
  488. package/node/TableContainer/index.js +1 -1
  489. package/node/TableFooter/TableFooter.js +1 -1
  490. package/node/TableFooter/index.js +1 -1
  491. package/node/TableHead/TableHead.js +1 -1
  492. package/node/TableHead/index.js +1 -1
  493. package/node/TablePagination/TablePagination.js +1 -1
  494. package/node/TablePagination/TablePaginationActions.js +1 -1
  495. package/node/TablePagination/index.js +1 -1
  496. package/node/TableRow/TableRow.js +1 -1
  497. package/node/TableRow/index.js +1 -1
  498. package/node/TableSortLabel/TableSortLabel.js +1 -1
  499. package/node/TableSortLabel/index.js +1 -1
  500. package/node/Tabs/ScrollbarSize.js +1 -1
  501. package/node/Tabs/Tabs.js +1 -1
  502. package/node/Tabs/index.js +1 -1
  503. package/node/TextField/TextField.js +1 -1
  504. package/node/TextField/index.js +1 -1
  505. package/node/ToggleButton/ToggleButton.js +1 -1
  506. package/node/ToggleButton/index.js +1 -1
  507. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  508. package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
  509. package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
  510. package/node/ToggleButtonGroup/index.js +1 -1
  511. package/node/Toolbar/Toolbar.js +1 -1
  512. package/node/Toolbar/index.js +1 -1
  513. package/node/Tooltip/Tooltip.js +1 -1
  514. package/node/Tooltip/index.js +1 -1
  515. package/node/Typography/Typography.js +1 -1
  516. package/node/Typography/index.js +1 -1
  517. package/node/Unstable_Grid2/index.js +1 -1
  518. package/node/Zoom/Zoom.js +1 -1
  519. package/node/index.js +2 -2
  520. package/node/internal/SwitchBase.js +1 -1
  521. package/node/internal/svg-icons/Add.js +1 -1
  522. package/node/internal/svg-icons/ArrowDownward.js +1 -1
  523. package/node/internal/svg-icons/ArrowDropDown.js +1 -1
  524. package/node/internal/svg-icons/Cancel.js +1 -1
  525. package/node/internal/svg-icons/CheckBox.js +1 -1
  526. package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
  527. package/node/internal/svg-icons/CheckCircle.js +1 -1
  528. package/node/internal/svg-icons/Close.js +1 -1
  529. package/node/internal/svg-icons/ErrorOutline.js +1 -1
  530. package/node/internal/svg-icons/FirstPage.js +1 -1
  531. package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
  532. package/node/internal/svg-icons/InfoOutlined.js +1 -1
  533. package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
  534. package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
  535. package/node/internal/svg-icons/LastPage.js +1 -1
  536. package/node/internal/svg-icons/MoreHoriz.js +1 -1
  537. package/node/internal/svg-icons/NavigateBefore.js +1 -1
  538. package/node/internal/svg-icons/NavigateNext.js +1 -1
  539. package/node/internal/svg-icons/Person.js +1 -1
  540. package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
  541. package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
  542. package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
  543. package/node/internal/svg-icons/Star.js +1 -1
  544. package/node/internal/svg-icons/StarBorder.js +1 -1
  545. package/node/internal/svg-icons/SuccessOutlined.js +1 -1
  546. package/node/internal/svg-icons/Warning.js +1 -1
  547. package/node/styles/CssVarsProvider.js +1 -3
  548. package/node/styles/ThemeProvider.js +1 -1
  549. package/node/styles/createGetSelector.js +29 -0
  550. package/node/styles/createTheme.js +1 -1
  551. package/node/styles/experimental_extendTheme.js +23 -10
  552. package/node/styles/index.js +1 -1
  553. package/node/styles/rootShouldForwardProp.js +10 -0
  554. package/node/styles/slotShouldForwardProp.js +11 -0
  555. package/node/styles/styled.js +17 -8
  556. package/node/styles/useTheme.js +1 -1
  557. package/node/useAutocomplete/index.js +1 -1
  558. package/node/usePagination/usePagination.js +1 -1
  559. package/node/useScrollTrigger/useScrollTrigger.js +1 -1
  560. package/node/useTouchRipple/useTouchRipple.js +1 -1
  561. package/node/utils/createSvgIcon.js +1 -1
  562. package/package.json +6 -6
  563. package/styles/CssVarsProvider.js +1 -3
  564. package/styles/createGetSelector.d.ts +10 -0
  565. package/styles/createGetSelector.js +21 -0
  566. package/styles/createTheme.js +1 -1
  567. package/styles/excludeVariablesFromRoot.d.ts +1 -1
  568. package/styles/experimental_extendTheme.d.ts +23 -5
  569. package/styles/experimental_extendTheme.js +29 -17
  570. package/styles/rootShouldForwardProp.d.ts +2 -0
  571. package/styles/rootShouldForwardProp.js +3 -0
  572. package/styles/shouldSkipGeneratingVar.js +1 -2
  573. package/styles/slotShouldForwardProp.d.ts +2 -0
  574. package/styles/slotShouldForwardProp.js +5 -0
  575. package/styles/styled.d.ts +2 -3
  576. package/styles/styled.js +4 -3
  577. package/transitions/utils.js +2 -3
  578. package/umd/material-ui.development.js +1819 -1179
  579. package/umd/material-ui.production.min.js +4 -4
  580. package/usePagination/usePagination.js +1 -1
  581. package/useTouchRipple/useTouchRipple.js +4 -8
  582. package/utils/useSlot.js +1 -1
@@ -1,8 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
7
  import * as React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import clsx from 'clsx';
@@ -12,14 +13,14 @@ import composeClasses from '@mui/utils/composeClasses';
12
13
  import { useSlider, valueToPercent } from '@mui/base/useSlider';
13
14
  import { alpha, lighten, darken } from '@mui/system/colorManipulator';
14
15
  import { useRtl } from '@mui/system/RtlProvider';
15
- import useThemeProps from '../styles/useThemeProps';
16
- import styled, { slotShouldForwardProp } from '../styles/styled';
16
+ import { styled, createUseThemeProps } from '../zero-styled';
17
+ import slotShouldForwardProp from '../styles/slotShouldForwardProp';
17
18
  import shouldSpreadAdditionalProps from '../utils/shouldSpreadAdditionalProps';
18
19
  import capitalize from '../utils/capitalize';
19
20
  import BaseSliderValueLabel from './SliderValueLabel';
20
21
  import sliderClasses, { getSliderUtilityClass } from './sliderClasses';
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
22
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
+ var useThemeProps = createUseThemeProps('MuiSlider');
23
24
  function Identity(x) {
24
25
  return x;
25
26
  }
@@ -31,44 +32,16 @@ export var SliderRoot = styled('span', {
31
32
  return [styles.root, styles["color".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["size".concat(capitalize(ownerState.size))], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
32
33
  }
33
34
  })(function (_ref) {
34
- var theme = _ref.theme,
35
- ownerState = _ref.ownerState;
36
- return _extends({
35
+ var _theme$vars;
36
+ var theme = _ref.theme;
37
+ return _defineProperty(_defineProperty(_defineProperty({
37
38
  borderRadius: 12,
38
39
  boxSizing: 'content-box',
39
40
  display: 'inline-block',
40
41
  position: 'relative',
41
42
  cursor: 'pointer',
42
43
  touchAction: 'none',
43
- color: (theme.vars || theme).palette[ownerState.color].main,
44
- WebkitTapHighlightColor: 'transparent'
45
- }, ownerState.orientation === 'horizontal' && _extends({
46
- height: 4,
47
- width: '100%',
48
- padding: '13px 0',
49
- // The primary input mechanism of the device includes a pointing device of limited accuracy.
50
- '@media (pointer: coarse)': {
51
- // Reach 42px touch target, about ~8mm on screen.
52
- padding: '20px 0'
53
- }
54
- }, ownerState.size === 'small' && {
55
- height: 2
56
- }, ownerState.marked && {
57
- marginBottom: 20
58
- }), ownerState.orientation === 'vertical' && _extends({
59
- height: '100%',
60
- width: 4,
61
- padding: '0 13px',
62
- // The primary input mechanism of the device includes a pointing device of limited accuracy.
63
- '@media (pointer: coarse)': {
64
- // Reach 42px touch target, about ~8mm on screen.
65
- padding: '0 20px'
66
- }
67
- }, ownerState.size === 'small' && {
68
- width: 2
69
- }, ownerState.marked && {
70
- marginRight: 44
71
- }), _defineProperty(_defineProperty({
44
+ WebkitTapHighlightColor: 'transparent',
72
45
  '@media print': {
73
46
  colorAdjust: 'exact'
74
47
  }
@@ -78,7 +51,79 @@ export var SliderRoot = styled('span', {
78
51
  color: (theme.vars || theme).palette.grey[400]
79
52
  }), "&.".concat(sliderClasses.dragging), _defineProperty({}, "& .".concat(sliderClasses.thumb, ", & .").concat(sliderClasses.track), {
80
53
  transition: 'none'
81
- })));
54
+ })), "variants", [].concat(_toConsumableArray(Object.keys(((_theme$vars = theme.vars) != null ? _theme$vars : theme).palette).filter(function (key) {
55
+ var _theme$vars2;
56
+ return ((_theme$vars2 = theme.vars) != null ? _theme$vars2 : theme).palette[key].main;
57
+ }).map(function (color) {
58
+ return {
59
+ props: {
60
+ color: color
61
+ },
62
+ style: {
63
+ color: (theme.vars || theme).palette[color].main
64
+ }
65
+ };
66
+ })), [{
67
+ props: {
68
+ orientation: 'horizontal'
69
+ },
70
+ style: {
71
+ height: 4,
72
+ width: '100%',
73
+ padding: '13px 0',
74
+ // The primary input mechanism of the device includes a pointing device of limited accuracy.
75
+ '@media (pointer: coarse)': {
76
+ // Reach 42px touch target, about ~8mm on screen.
77
+ padding: '20px 0'
78
+ }
79
+ }
80
+ }, {
81
+ props: {
82
+ orientation: 'horizontal',
83
+ size: 'small'
84
+ },
85
+ style: {
86
+ height: 2
87
+ }
88
+ }, {
89
+ props: {
90
+ orientation: 'horizontal',
91
+ marked: true
92
+ },
93
+ style: {
94
+ marginBottom: 20
95
+ }
96
+ }, {
97
+ props: {
98
+ orientation: 'vertical'
99
+ },
100
+ style: {
101
+ height: '100%',
102
+ width: 4,
103
+ padding: '0 13px',
104
+ // The primary input mechanism of the device includes a pointing device of limited accuracy.
105
+ '@media (pointer: coarse)': {
106
+ // Reach 42px touch target, about ~8mm on screen.
107
+ padding: '0 20px'
108
+ }
109
+ }
110
+ }, {
111
+ props: {
112
+ orientation: 'vertical',
113
+ size: 'small'
114
+ },
115
+ style: {
116
+ width: 2
117
+ }
118
+ }, {
119
+ props: {
120
+ orientation: 'vertical',
121
+ marked: true
122
+ },
123
+ style: {
124
+ marginRight: 44
125
+ }
126
+ }]));
82
127
  });
83
128
  export var SliderRail = styled('span', {
84
129
  name: 'MuiSlider',
@@ -86,27 +131,40 @@ export var SliderRail = styled('span', {
86
131
  overridesResolver: function overridesResolver(props, styles) {
87
132
  return styles.rail;
88
133
  }
89
- })(function (_ref2) {
90
- var ownerState = _ref2.ownerState;
91
- return _extends({
92
- display: 'block',
93
- position: 'absolute',
94
- borderRadius: 'inherit',
95
- backgroundColor: 'currentColor',
96
- opacity: 0.38
97
- }, ownerState.orientation === 'horizontal' && {
98
- width: '100%',
99
- height: 'inherit',
100
- top: '50%',
101
- transform: 'translateY(-50%)'
102
- }, ownerState.orientation === 'vertical' && {
103
- height: '100%',
104
- width: 'inherit',
105
- left: '50%',
106
- transform: 'translateX(-50%)'
107
- }, ownerState.track === 'inverted' && {
108
- opacity: 1
109
- });
134
+ })({
135
+ display: 'block',
136
+ position: 'absolute',
137
+ borderRadius: 'inherit',
138
+ backgroundColor: 'currentColor',
139
+ opacity: 0.38,
140
+ variants: [{
141
+ props: {
142
+ orientation: 'horizontal'
143
+ },
144
+ style: {
145
+ width: '100%',
146
+ height: 'inherit',
147
+ top: '50%',
148
+ transform: 'translateY(-50%)'
149
+ }
150
+ }, {
151
+ props: {
152
+ orientation: 'vertical'
153
+ },
154
+ style: {
155
+ height: '100%',
156
+ width: 'inherit',
157
+ left: '50%',
158
+ transform: 'translateX(-50%)'
159
+ }
160
+ }, {
161
+ props: {
162
+ track: 'inverted'
163
+ },
164
+ style: {
165
+ opacity: 1
166
+ }
167
+ }]
110
168
  });
111
169
  export var SliderTrack = styled('span', {
112
170
  name: 'MuiSlider',
@@ -115,12 +173,9 @@ export var SliderTrack = styled('span', {
115
173
  return styles.track;
116
174
  }
117
175
  })(function (_ref3) {
118
- var theme = _ref3.theme,
119
- ownerState = _ref3.ownerState;
120
- var color =
121
- // Same logic as the LinearProgress track color
122
- theme.palette.mode === 'light' ? lighten(theme.palette[ownerState.color].main, 0.62) : darken(theme.palette[ownerState.color].main, 0.5);
123
- return _extends({
176
+ var _theme$vars3;
177
+ var theme = _ref3.theme;
178
+ return {
124
179
  display: 'block',
125
180
  position: 'absolute',
126
181
  borderRadius: 'inherit',
@@ -128,23 +183,62 @@ export var SliderTrack = styled('span', {
128
183
  backgroundColor: 'currentColor',
129
184
  transition: theme.transitions.create(['left', 'width', 'bottom', 'height'], {
130
185
  duration: theme.transitions.duration.shortest
131
- })
132
- }, ownerState.size === 'small' && {
133
- border: 'none'
134
- }, ownerState.orientation === 'horizontal' && {
135
- height: 'inherit',
136
- top: '50%',
137
- transform: 'translateY(-50%)'
138
- }, ownerState.orientation === 'vertical' && {
139
- width: 'inherit',
140
- left: '50%',
141
- transform: 'translateX(-50%)'
142
- }, ownerState.track === false && {
143
- display: 'none'
144
- }, ownerState.track === 'inverted' && {
145
- backgroundColor: theme.vars ? theme.vars.palette.Slider["".concat(ownerState.color, "Track")] : color,
146
- borderColor: theme.vars ? theme.vars.palette.Slider["".concat(ownerState.color, "Track")] : color
147
- });
186
+ }),
187
+ variants: [{
188
+ props: {
189
+ size: 'small'
190
+ },
191
+ style: {
192
+ border: 'none'
193
+ }
194
+ }, {
195
+ props: {
196
+ orientation: 'horizontal'
197
+ },
198
+ style: {
199
+ height: 'inherit',
200
+ top: '50%',
201
+ transform: 'translateY(-50%)'
202
+ }
203
+ }, {
204
+ props: {
205
+ orientation: 'vertical'
206
+ },
207
+ style: {
208
+ width: 'inherit',
209
+ left: '50%',
210
+ transform: 'translateX(-50%)'
211
+ }
212
+ }, {
213
+ props: {
214
+ track: false
215
+ },
216
+ style: {
217
+ display: 'none'
218
+ }
219
+ }].concat(_toConsumableArray(Object.keys(((_theme$vars3 = theme.vars) != null ? _theme$vars3 : theme).palette).filter(function (key) {
220
+ var _theme$vars4;
221
+ return ((_theme$vars4 = theme.vars) != null ? _theme$vars4 : theme).palette[key].main;
222
+ }).map(function (color) {
223
+ return {
224
+ props: {
225
+ color: color,
226
+ track: 'inverted'
227
+ },
228
+ style: _extends({}, theme.vars ? {
229
+ backgroundColor: theme.vars.palette.Slider["".concat(color, "Track")],
230
+ borderColor: theme.vars.palette.Slider["".concat(color, "Track")]
231
+ } : _extends({
232
+ backgroundColor: lighten(theme.palette[color].main, 0.62),
233
+ borderColor: lighten(theme.palette[color].main, 0.62)
234
+ }, theme.applyStyles('dark', {
235
+ backgroundColor: darken(theme.palette[color].main, 0.5)
236
+ }), theme.applyStyles('dark', {
237
+ borderColor: darken(theme.palette[color].main, 0.5)
238
+ })))
239
+ };
240
+ })))
241
+ };
148
242
  });
149
243
  export var SliderThumb = styled('span', {
150
244
  name: 'MuiSlider',
@@ -154,9 +248,9 @@ export var SliderThumb = styled('span', {
154
248
  return [styles.thumb, styles["thumbColor".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["thumbSize".concat(capitalize(ownerState.size))]];
155
249
  }
156
250
  })(function (_ref4) {
157
- var theme = _ref4.theme,
158
- ownerState = _ref4.ownerState;
159
- return _extends({
251
+ var _theme$vars5;
252
+ var theme = _ref4.theme;
253
+ return _defineProperty(_defineProperty({
160
254
  position: 'absolute',
161
255
  width: 20,
162
256
  height: 20,
@@ -169,27 +263,15 @@ export var SliderThumb = styled('span', {
169
263
  justifyContent: 'center',
170
264
  transition: theme.transitions.create(['box-shadow', 'left', 'bottom'], {
171
265
  duration: theme.transitions.duration.shortest
172
- })
173
- }, ownerState.size === 'small' && {
174
- width: 12,
175
- height: 12
176
- }, ownerState.orientation === 'horizontal' && {
177
- top: '50%',
178
- transform: 'translate(-50%, -50%)'
179
- }, ownerState.orientation === 'vertical' && {
180
- left: '50%',
181
- transform: 'translate(-50%, 50%)'
182
- }, _defineProperty(_defineProperty(_defineProperty({
183
- '&::before': _extends({
266
+ }),
267
+ '&::before': {
184
268
  position: 'absolute',
185
269
  content: '""',
186
270
  borderRadius: 'inherit',
187
271
  width: '100%',
188
272
  height: '100%',
189
273
  boxShadow: (theme.vars || theme).shadows[2]
190
- }, ownerState.size === 'small' && {
191
- boxShadow: 'none'
192
- }),
274
+ },
193
275
  '&::after': {
194
276
  position: 'absolute',
195
277
  content: '""',
@@ -201,18 +283,60 @@ export var SliderThumb = styled('span', {
201
283
  left: '50%',
202
284
  transform: 'translate(-50%, -50%)'
203
285
  }
204
- }, "&:hover, &.".concat(sliderClasses.focusVisible), {
205
- boxShadow: "0px 0px 0px 8px ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.16)") : alpha(theme.palette[ownerState.color].main, 0.16)),
206
- '@media (hover: none)': {
207
- boxShadow: 'none'
208
- }
209
- }), "&.".concat(sliderClasses.active), {
210
- boxShadow: "0px 0px 0px 14px ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.16)") : alpha(theme.palette[ownerState.color].main, 0.16))
211
- }), "&.".concat(sliderClasses.disabled), {
286
+ }, "&.".concat(sliderClasses.disabled), {
212
287
  '&:hover': {
213
288
  boxShadow: 'none'
214
289
  }
215
- }));
290
+ }), "variants", [].concat(_toConsumableArray(Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(function (key) {
291
+ var _theme$vars6;
292
+ return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
293
+ }).map(function (color) {
294
+ return {
295
+ props: {
296
+ color: color
297
+ },
298
+ style: _defineProperty(_defineProperty({}, "&:hover, &.".concat(sliderClasses.focusVisible), _extends({}, theme.vars ? {
299
+ boxShadow: "0px 0px 0px 8px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
300
+ } : {
301
+ boxShadow: "0px 0px 0px 8px ".concat(alpha(theme.palette[color].main, 0.16))
302
+ }, {
303
+ '@media (hover: none)': {
304
+ boxShadow: 'none'
305
+ }
306
+ })), "&.".concat(sliderClasses.active), _extends({}, theme.vars ? {
307
+ boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)}")
308
+ } : {
309
+ boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
310
+ }))
311
+ };
312
+ })), [{
313
+ props: {
314
+ size: 'small'
315
+ },
316
+ style: {
317
+ width: 12,
318
+ height: 12,
319
+ '&::before': {
320
+ boxShadow: 'none'
321
+ }
322
+ }
323
+ }, {
324
+ props: {
325
+ orientation: 'horizontal'
326
+ },
327
+ style: {
328
+ top: '50%',
329
+ transform: 'translate(-50%, -50%)'
330
+ }
331
+ }, {
332
+ props: {
333
+ orientation: 'vertical'
334
+ },
335
+ style: {
336
+ left: '50%',
337
+ transform: 'translate(-50%, 50%)'
338
+ }
339
+ }]));
216
340
  });
217
341
  export var SliderValueLabel = styled(BaseSliderValueLabel, {
218
342
  name: 'MuiSlider',
@@ -220,17 +344,16 @@ export var SliderValueLabel = styled(BaseSliderValueLabel, {
220
344
  overridesResolver: function overridesResolver(props, styles) {
221
345
  return styles.valueLabel;
222
346
  }
223
- })(function (_ref5) {
224
- var theme = _ref5.theme,
225
- ownerState = _ref5.ownerState;
226
- return _extends(_defineProperty(_defineProperty(_defineProperty({}, "&.".concat(sliderClasses.valueLabelOpen), {
227
- transform: "".concat(ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)', " scale(1)")
228
- }), "zIndex", 1), "whiteSpace", 'nowrap'), theme.typography.body2, {
347
+ })(function (_ref6) {
348
+ var theme = _ref6.theme;
349
+ return _extends({
350
+ zIndex: 1,
351
+ whiteSpace: 'nowrap'
352
+ }, theme.typography.body2, {
229
353
  fontWeight: 500,
230
354
  transition: theme.transitions.create(['transform'], {
231
355
  duration: theme.transitions.duration.shortest
232
356
  }),
233
- transform: "".concat(ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)', " scale(0)"),
234
357
  position: 'absolute',
235
358
  backgroundColor: (theme.vars || theme).palette.grey[600],
236
359
  borderRadius: 2,
@@ -238,37 +361,67 @@ export var SliderValueLabel = styled(BaseSliderValueLabel, {
238
361
  display: 'flex',
239
362
  alignItems: 'center',
240
363
  justifyContent: 'center',
241
- padding: '0.25rem 0.75rem'
242
- }, ownerState.orientation === 'horizontal' && {
243
- top: '-10px',
244
- transformOrigin: 'bottom center',
245
- '&::before': {
246
- position: 'absolute',
247
- content: '""',
248
- width: 8,
249
- height: 8,
250
- transform: 'translate(-50%, 50%) rotate(45deg)',
251
- backgroundColor: 'inherit',
252
- bottom: 0,
253
- left: '50%'
254
- }
255
- }, ownerState.orientation === 'vertical' && {
256
- right: ownerState.size === 'small' ? '20px' : '30px',
257
- top: '50%',
258
- transformOrigin: 'right center',
259
- '&::before': {
260
- position: 'absolute',
261
- content: '""',
262
- width: 8,
263
- height: 8,
264
- transform: 'translate(-50%, -50%) rotate(45deg)',
265
- backgroundColor: 'inherit',
266
- right: -8,
267
- top: '50%'
268
- }
269
- }, ownerState.size === 'small' && {
270
- fontSize: theme.typography.pxToRem(12),
271
- padding: '0.25rem 0.5rem'
364
+ padding: '0.25rem 0.75rem',
365
+ variants: [{
366
+ props: {
367
+ orientation: 'horizontal'
368
+ },
369
+ style: _defineProperty({
370
+ transform: 'translateY(-100%) scale(0)',
371
+ top: '-10px',
372
+ transformOrigin: 'bottom center',
373
+ '&::before': {
374
+ position: 'absolute',
375
+ content: '""',
376
+ width: 8,
377
+ height: 8,
378
+ transform: 'translate(-50%, 50%) rotate(45deg)',
379
+ backgroundColor: 'inherit',
380
+ bottom: 0,
381
+ left: '50%'
382
+ }
383
+ }, "&.".concat(sliderClasses.valueLabelOpen), {
384
+ transform: 'translateY(-100%) scale(1)'
385
+ })
386
+ }, {
387
+ props: {
388
+ orientation: 'vertical'
389
+ },
390
+ style: _defineProperty({
391
+ transform: 'translateY(-50%) scale(0)',
392
+ right: '30px',
393
+ top: '50%',
394
+ transformOrigin: 'right center',
395
+ '&::before': {
396
+ position: 'absolute',
397
+ content: '""',
398
+ width: 8,
399
+ height: 8,
400
+ transform: 'translate(-50%, -50%) rotate(45deg)',
401
+ backgroundColor: 'inherit',
402
+ right: -8,
403
+ top: '50%'
404
+ }
405
+ }, "&.".concat(sliderClasses.valueLabelOpen), {
406
+ transform: 'translateY(-50%) scale(1)'
407
+ })
408
+ }, {
409
+ props: {
410
+ size: 'small'
411
+ },
412
+ style: {
413
+ fontSize: theme.typography.pxToRem(12),
414
+ padding: '0.25rem 0.5rem'
415
+ }
416
+ }, {
417
+ props: {
418
+ orientation: 'vertical',
419
+ size: 'small'
420
+ },
421
+ style: {
422
+ right: '20px'
423
+ }
424
+ }]
272
425
  });
273
426
  });
274
427
  export var SliderMark = styled('span', {
@@ -281,26 +434,40 @@ export var SliderMark = styled('span', {
281
434
  var markActive = props.markActive;
282
435
  return [styles.mark, markActive && styles.markActive];
283
436
  }
284
- })(function (_ref6) {
285
- var theme = _ref6.theme,
286
- ownerState = _ref6.ownerState,
287
- markActive = _ref6.markActive;
288
- return _extends({
437
+ })(function (_ref7) {
438
+ var theme = _ref7.theme;
439
+ return {
289
440
  position: 'absolute',
290
441
  width: 2,
291
442
  height: 2,
292
443
  borderRadius: 1,
293
- backgroundColor: 'currentColor'
294
- }, ownerState.orientation === 'horizontal' && {
295
- top: '50%',
296
- transform: 'translate(-1px, -50%)'
297
- }, ownerState.orientation === 'vertical' && {
298
- left: '50%',
299
- transform: 'translate(-50%, 1px)'
300
- }, markActive && {
301
- backgroundColor: (theme.vars || theme).palette.background.paper,
302
- opacity: 0.8
303
- });
444
+ backgroundColor: 'currentColor',
445
+ variants: [{
446
+ props: {
447
+ orientation: 'horizontal'
448
+ },
449
+ style: {
450
+ top: '50%',
451
+ transform: 'translate(-1px, -50%)'
452
+ }
453
+ }, {
454
+ props: {
455
+ orientation: 'vertical'
456
+ },
457
+ style: {
458
+ left: '50%',
459
+ transform: 'translate(-50%, 1px)'
460
+ }
461
+ }, {
462
+ props: {
463
+ markActive: true
464
+ },
465
+ style: {
466
+ backgroundColor: (theme.vars || theme).palette.background.paper,
467
+ opacity: 0.8
468
+ }
469
+ }]
470
+ };
304
471
  });
305
472
  export var SliderMarkLabel = styled('span', {
306
473
  name: 'MuiSlider',
@@ -311,28 +478,42 @@ export var SliderMarkLabel = styled('span', {
311
478
  overridesResolver: function overridesResolver(props, styles) {
312
479
  return styles.markLabel;
313
480
  }
314
- })(function (_ref7) {
315
- var theme = _ref7.theme,
316
- ownerState = _ref7.ownerState,
317
- markLabelActive = _ref7.markLabelActive;
481
+ })(function (_ref8) {
482
+ var theme = _ref8.theme;
318
483
  return _extends({}, theme.typography.body2, {
319
484
  color: (theme.vars || theme).palette.text.secondary,
320
485
  position: 'absolute',
321
- whiteSpace: 'nowrap'
322
- }, ownerState.orientation === 'horizontal' && {
323
- top: 30,
324
- transform: 'translateX(-50%)',
325
- '@media (pointer: coarse)': {
326
- top: 40
327
- }
328
- }, ownerState.orientation === 'vertical' && {
329
- left: 36,
330
- transform: 'translateY(50%)',
331
- '@media (pointer: coarse)': {
332
- left: 44
333
- }
334
- }, markLabelActive && {
335
- color: (theme.vars || theme).palette.text.primary
486
+ whiteSpace: 'nowrap',
487
+ variants: [{
488
+ props: {
489
+ orientation: 'horizontal'
490
+ },
491
+ style: {
492
+ top: 30,
493
+ transform: 'translateX(-50%)',
494
+ '@media (pointer: coarse)': {
495
+ top: 40
496
+ }
497
+ }
498
+ }, {
499
+ props: {
500
+ orientation: 'vertical'
501
+ },
502
+ style: {
503
+ left: 36,
504
+ transform: 'translateY(50%)',
505
+ '@media (pointer: coarse)': {
506
+ left: 44
507
+ }
508
+ }
509
+ }, {
510
+ props: {
511
+ markLabelActive: true
512
+ },
513
+ style: {
514
+ color: (theme.vars || theme).palette.text.primary
515
+ }
516
+ }]
336
517
  });
337
518
  });
338
519
  var useUtilityClasses = function useUtilityClasses(ownerState) {
@@ -360,12 +541,12 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
360
541
  };
361
542
  return composeClasses(slots, getSliderUtilityClass, classes);
362
543
  };
363
- var Forward = function Forward(_ref8) {
364
- var children = _ref8.children;
544
+ var Forward = function Forward(_ref9) {
545
+ var children = _ref9.children;
365
546
  return children;
366
547
  };
367
548
  var Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
368
- var _ref9, _slots$root, _ref10, _slots$rail, _ref11, _slots$track, _ref12, _slots$thumb, _ref13, _slots$valueLabel, _ref14, _slots$mark, _ref15, _slots$markLabel, _ref16, _slots$input, _slotProps$root, _slotProps$rail, _slotProps$track, _slotProps$thumb, _slotProps$valueLabel, _slotProps$mark, _slotProps$markLabel, _slotProps$input;
549
+ var _ref10, _slots$root, _ref11, _slots$rail, _ref12, _slots$track, _ref13, _slots$thumb, _ref14, _slots$valueLabel, _ref15, _slots$mark, _ref16, _slots$markLabel, _ref17, _slots$input, _slotProps$root, _slotProps$rail, _slotProps$track, _slotProps$thumb, _slotProps$valueLabel, _slotProps$mark, _slotProps$markLabel, _slotProps$input;
369
550
  var props = useThemeProps({
370
551
  props: inputProps,
371
552
  name: 'MuiSlider'
@@ -464,14 +645,14 @@ var Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
464
645
  var classes = useUtilityClasses(ownerState);
465
646
 
466
647
  // support both `slots` and `components` for backward compatibility
467
- var RootSlot = (_ref9 = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref9 : SliderRoot;
468
- var RailSlot = (_ref10 = (_slots$rail = slots == null ? void 0 : slots.rail) != null ? _slots$rail : components.Rail) != null ? _ref10 : SliderRail;
469
- var TrackSlot = (_ref11 = (_slots$track = slots == null ? void 0 : slots.track) != null ? _slots$track : components.Track) != null ? _ref11 : SliderTrack;
470
- var ThumbSlot = (_ref12 = (_slots$thumb = slots == null ? void 0 : slots.thumb) != null ? _slots$thumb : components.Thumb) != null ? _ref12 : SliderThumb;
471
- var ValueLabelSlot = (_ref13 = (_slots$valueLabel = slots == null ? void 0 : slots.valueLabel) != null ? _slots$valueLabel : components.ValueLabel) != null ? _ref13 : SliderValueLabel;
472
- var MarkSlot = (_ref14 = (_slots$mark = slots == null ? void 0 : slots.mark) != null ? _slots$mark : components.Mark) != null ? _ref14 : SliderMark;
473
- var MarkLabelSlot = (_ref15 = (_slots$markLabel = slots == null ? void 0 : slots.markLabel) != null ? _slots$markLabel : components.MarkLabel) != null ? _ref15 : SliderMarkLabel;
474
- var InputSlot = (_ref16 = (_slots$input = slots == null ? void 0 : slots.input) != null ? _slots$input : components.Input) != null ? _ref16 : 'input';
648
+ var RootSlot = (_ref10 = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref10 : SliderRoot;
649
+ var RailSlot = (_ref11 = (_slots$rail = slots == null ? void 0 : slots.rail) != null ? _slots$rail : components.Rail) != null ? _ref11 : SliderRail;
650
+ var TrackSlot = (_ref12 = (_slots$track = slots == null ? void 0 : slots.track) != null ? _slots$track : components.Track) != null ? _ref12 : SliderTrack;
651
+ var ThumbSlot = (_ref13 = (_slots$thumb = slots == null ? void 0 : slots.thumb) != null ? _slots$thumb : components.Thumb) != null ? _ref13 : SliderThumb;
652
+ var ValueLabelSlot = (_ref14 = (_slots$valueLabel = slots == null ? void 0 : slots.valueLabel) != null ? _slots$valueLabel : components.ValueLabel) != null ? _ref14 : SliderValueLabel;
653
+ var MarkSlot = (_ref15 = (_slots$mark = slots == null ? void 0 : slots.mark) != null ? _slots$mark : components.Mark) != null ? _ref15 : SliderMark;
654
+ var MarkLabelSlot = (_ref16 = (_slots$markLabel = slots == null ? void 0 : slots.markLabel) != null ? _slots$markLabel : components.MarkLabel) != null ? _ref16 : SliderMarkLabel;
655
+ var InputSlot = (_ref17 = (_slots$input = slots == null ? void 0 : slots.input) != null ? _slots$input : components.Input) != null ? _ref17 : 'input';
475
656
  var rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
476
657
  var railSlotProps = (_slotProps$rail = slotProps == null ? void 0 : slotProps.rail) != null ? _slotProps$rail : componentsProps.rail;
477
658
  var trackSlotProps = (_slotProps$track = slotProps == null ? void 0 : slotProps.track) != null ? _slotProps$track : componentsProps.track;