@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
package/Slider/Slider.js CHANGED
@@ -12,14 +12,14 @@ import composeClasses from '@mui/utils/composeClasses';
12
12
  import { useSlider, valueToPercent } from '@mui/base/useSlider';
13
13
  import { alpha, lighten, darken } from '@mui/system/colorManipulator';
14
14
  import { useRtl } from '@mui/system/RtlProvider';
15
- import useThemeProps from '../styles/useThemeProps';
16
- import styled, { slotShouldForwardProp } from '../styles/styled';
15
+ import { styled, createUseThemeProps } from '../zero-styled';
16
+ import slotShouldForwardProp from '../styles/slotShouldForwardProp';
17
17
  import shouldSpreadAdditionalProps from '../utils/shouldSpreadAdditionalProps';
18
18
  import capitalize from '../utils/capitalize';
19
19
  import BaseSliderValueLabel from './SliderValueLabel';
20
20
  import sliderClasses, { getSliderUtilityClass } from './sliderClasses';
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ const useThemeProps = createUseThemeProps('MuiSlider');
23
23
  function Identity(x) {
24
24
  return x;
25
25
  }
@@ -33,44 +33,15 @@ export const SliderRoot = styled('span', {
33
33
  return [styles.root, styles[`color${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
34
34
  }
35
35
  })(({
36
- theme,
37
- ownerState
38
- }) => _extends({
36
+ theme
37
+ }) => ({
39
38
  borderRadius: 12,
40
39
  boxSizing: 'content-box',
41
40
  display: 'inline-block',
42
41
  position: 'relative',
43
42
  cursor: 'pointer',
44
43
  touchAction: 'none',
45
- color: (theme.vars || theme).palette[ownerState.color].main,
46
- WebkitTapHighlightColor: 'transparent'
47
- }, ownerState.orientation === 'horizontal' && _extends({
48
- height: 4,
49
- width: '100%',
50
- padding: '13px 0',
51
- // The primary input mechanism of the device includes a pointing device of limited accuracy.
52
- '@media (pointer: coarse)': {
53
- // Reach 42px touch target, about ~8mm on screen.
54
- padding: '20px 0'
55
- }
56
- }, ownerState.size === 'small' && {
57
- height: 2
58
- }, ownerState.marked && {
59
- marginBottom: 20
60
- }), ownerState.orientation === 'vertical' && _extends({
61
- height: '100%',
62
- width: 4,
63
- padding: '0 13px',
64
- // The primary input mechanism of the device includes a pointing device of limited accuracy.
65
- '@media (pointer: coarse)': {
66
- // Reach 42px touch target, about ~8mm on screen.
67
- padding: '0 20px'
68
- }
69
- }, ownerState.size === 'small' && {
70
- width: 2
71
- }, ownerState.marked && {
72
- marginRight: 44
73
- }), {
44
+ WebkitTapHighlightColor: 'transparent',
74
45
  '@media print': {
75
46
  colorAdjust: 'exact'
76
47
  },
@@ -83,45 +54,123 @@ export const SliderRoot = styled('span', {
83
54
  [`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]: {
84
55
  transition: 'none'
85
56
  }
86
- }
57
+ },
58
+ variants: [...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
59
+ props: {
60
+ color
61
+ },
62
+ style: {
63
+ color: (theme.vars || theme).palette[color].main
64
+ }
65
+ })), {
66
+ props: {
67
+ orientation: 'horizontal'
68
+ },
69
+ style: {
70
+ height: 4,
71
+ width: '100%',
72
+ padding: '13px 0',
73
+ // The primary input mechanism of the device includes a pointing device of limited accuracy.
74
+ '@media (pointer: coarse)': {
75
+ // Reach 42px touch target, about ~8mm on screen.
76
+ padding: '20px 0'
77
+ }
78
+ }
79
+ }, {
80
+ props: {
81
+ orientation: 'horizontal',
82
+ size: 'small'
83
+ },
84
+ style: {
85
+ height: 2
86
+ }
87
+ }, {
88
+ props: {
89
+ orientation: 'horizontal',
90
+ marked: true
91
+ },
92
+ style: {
93
+ marginBottom: 20
94
+ }
95
+ }, {
96
+ props: {
97
+ orientation: 'vertical'
98
+ },
99
+ style: {
100
+ height: '100%',
101
+ width: 4,
102
+ padding: '0 13px',
103
+ // The primary input mechanism of the device includes a pointing device of limited accuracy.
104
+ '@media (pointer: coarse)': {
105
+ // Reach 42px touch target, about ~8mm on screen.
106
+ padding: '0 20px'
107
+ }
108
+ }
109
+ }, {
110
+ props: {
111
+ orientation: 'vertical',
112
+ size: 'small'
113
+ },
114
+ style: {
115
+ width: 2
116
+ }
117
+ }, {
118
+ props: {
119
+ orientation: 'vertical',
120
+ marked: true
121
+ },
122
+ style: {
123
+ marginRight: 44
124
+ }
125
+ }]
87
126
  }));
88
127
  export const SliderRail = styled('span', {
89
128
  name: 'MuiSlider',
90
129
  slot: 'Rail',
91
130
  overridesResolver: (props, styles) => styles.rail
92
- })(({
93
- ownerState
94
- }) => _extends({
131
+ })({
95
132
  display: 'block',
96
133
  position: 'absolute',
97
134
  borderRadius: 'inherit',
98
135
  backgroundColor: 'currentColor',
99
- opacity: 0.38
100
- }, ownerState.orientation === 'horizontal' && {
101
- width: '100%',
102
- height: 'inherit',
103
- top: '50%',
104
- transform: 'translateY(-50%)'
105
- }, ownerState.orientation === 'vertical' && {
106
- height: '100%',
107
- width: 'inherit',
108
- left: '50%',
109
- transform: 'translateX(-50%)'
110
- }, ownerState.track === 'inverted' && {
111
- opacity: 1
112
- }));
136
+ opacity: 0.38,
137
+ variants: [{
138
+ props: {
139
+ orientation: 'horizontal'
140
+ },
141
+ style: {
142
+ width: '100%',
143
+ height: 'inherit',
144
+ top: '50%',
145
+ transform: 'translateY(-50%)'
146
+ }
147
+ }, {
148
+ props: {
149
+ orientation: 'vertical'
150
+ },
151
+ style: {
152
+ height: '100%',
153
+ width: 'inherit',
154
+ left: '50%',
155
+ transform: 'translateX(-50%)'
156
+ }
157
+ }, {
158
+ props: {
159
+ track: 'inverted'
160
+ },
161
+ style: {
162
+ opacity: 1
163
+ }
164
+ }]
165
+ });
113
166
  export const SliderTrack = styled('span', {
114
167
  name: 'MuiSlider',
115
168
  slot: 'Track',
116
169
  overridesResolver: (props, styles) => styles.track
117
170
  })(({
118
- theme,
119
- ownerState
171
+ theme
120
172
  }) => {
121
- const color =
122
- // Same logic as the LinearProgress track color
123
- theme.palette.mode === 'light' ? lighten(theme.palette[ownerState.color].main, 0.62) : darken(theme.palette[ownerState.color].main, 0.5);
124
- return _extends({
173
+ return {
125
174
  display: 'block',
126
175
  position: 'absolute',
127
176
  borderRadius: 'inherit',
@@ -129,23 +178,57 @@ export const SliderTrack = styled('span', {
129
178
  backgroundColor: 'currentColor',
130
179
  transition: theme.transitions.create(['left', 'width', 'bottom', 'height'], {
131
180
  duration: theme.transitions.duration.shortest
132
- })
133
- }, ownerState.size === 'small' && {
134
- border: 'none'
135
- }, ownerState.orientation === 'horizontal' && {
136
- height: 'inherit',
137
- top: '50%',
138
- transform: 'translateY(-50%)'
139
- }, ownerState.orientation === 'vertical' && {
140
- width: 'inherit',
141
- left: '50%',
142
- transform: 'translateX(-50%)'
143
- }, ownerState.track === false && {
144
- display: 'none'
145
- }, ownerState.track === 'inverted' && {
146
- backgroundColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color,
147
- borderColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color
148
- });
181
+ }),
182
+ variants: [{
183
+ props: {
184
+ size: 'small'
185
+ },
186
+ style: {
187
+ border: 'none'
188
+ }
189
+ }, {
190
+ props: {
191
+ orientation: 'horizontal'
192
+ },
193
+ style: {
194
+ height: 'inherit',
195
+ top: '50%',
196
+ transform: 'translateY(-50%)'
197
+ }
198
+ }, {
199
+ props: {
200
+ orientation: 'vertical'
201
+ },
202
+ style: {
203
+ width: 'inherit',
204
+ left: '50%',
205
+ transform: 'translateX(-50%)'
206
+ }
207
+ }, {
208
+ props: {
209
+ track: false
210
+ },
211
+ style: {
212
+ display: 'none'
213
+ }
214
+ }, ...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
215
+ props: {
216
+ color,
217
+ track: 'inverted'
218
+ },
219
+ style: _extends({}, theme.vars ? {
220
+ backgroundColor: theme.vars.palette.Slider[`${color}Track`],
221
+ borderColor: theme.vars.palette.Slider[`${color}Track`]
222
+ } : _extends({
223
+ backgroundColor: lighten(theme.palette[color].main, 0.62),
224
+ borderColor: lighten(theme.palette[color].main, 0.62)
225
+ }, theme.applyStyles('dark', {
226
+ backgroundColor: darken(theme.palette[color].main, 0.5)
227
+ }), theme.applyStyles('dark', {
228
+ borderColor: darken(theme.palette[color].main, 0.5)
229
+ })))
230
+ }))]
231
+ };
149
232
  });
150
233
  export const SliderThumb = styled('span', {
151
234
  name: 'MuiSlider',
@@ -157,9 +240,8 @@ export const SliderThumb = styled('span', {
157
240
  return [styles.thumb, styles[`thumbColor${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`thumbSize${capitalize(ownerState.size)}`]];
158
241
  }
159
242
  })(({
160
- theme,
161
- ownerState
162
- }) => _extends({
243
+ theme
244
+ }) => ({
163
245
  position: 'absolute',
164
246
  width: 20,
165
247
  height: 20,
@@ -172,27 +254,15 @@ export const SliderThumb = styled('span', {
172
254
  justifyContent: 'center',
173
255
  transition: theme.transitions.create(['box-shadow', 'left', 'bottom'], {
174
256
  duration: theme.transitions.duration.shortest
175
- })
176
- }, ownerState.size === 'small' && {
177
- width: 12,
178
- height: 12
179
- }, ownerState.orientation === 'horizontal' && {
180
- top: '50%',
181
- transform: 'translate(-50%, -50%)'
182
- }, ownerState.orientation === 'vertical' && {
183
- left: '50%',
184
- transform: 'translate(-50%, 50%)'
185
- }, {
186
- '&::before': _extends({
257
+ }),
258
+ '&::before': {
187
259
  position: 'absolute',
188
260
  content: '""',
189
261
  borderRadius: 'inherit',
190
262
  width: '100%',
191
263
  height: '100%',
192
264
  boxShadow: (theme.vars || theme).shadows[2]
193
- }, ownerState.size === 'small' && {
194
- boxShadow: 'none'
195
- }),
265
+ },
196
266
  '&::after': {
197
267
  position: 'absolute',
198
268
  content: '""',
@@ -204,32 +274,67 @@ export const SliderThumb = styled('span', {
204
274
  left: '50%',
205
275
  transform: 'translate(-50%, -50%)'
206
276
  },
207
- [`&:hover, &.${sliderClasses.focusVisible}`]: {
208
- boxShadow: `0px 0px 0px 8px ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.16)` : alpha(theme.palette[ownerState.color].main, 0.16)}`,
209
- '@media (hover: none)': {
210
- boxShadow: 'none'
211
- }
212
- },
213
- [`&.${sliderClasses.active}`]: {
214
- boxShadow: `0px 0px 0px 14px ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.16)` : alpha(theme.palette[ownerState.color].main, 0.16)}`
215
- },
216
277
  [`&.${sliderClasses.disabled}`]: {
217
278
  '&:hover': {
218
279
  boxShadow: 'none'
219
280
  }
220
- }
281
+ },
282
+ variants: [...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
283
+ props: {
284
+ color
285
+ },
286
+ style: {
287
+ [`&:hover, &.${sliderClasses.focusVisible}`]: _extends({}, theme.vars ? {
288
+ boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
289
+ } : {
290
+ boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
291
+ }, {
292
+ '@media (hover: none)': {
293
+ boxShadow: 'none'
294
+ }
295
+ }),
296
+ [`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
297
+ boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
298
+ } : {
299
+ boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
300
+ })
301
+ }
302
+ })), {
303
+ props: {
304
+ size: 'small'
305
+ },
306
+ style: {
307
+ width: 12,
308
+ height: 12,
309
+ '&::before': {
310
+ boxShadow: 'none'
311
+ }
312
+ }
313
+ }, {
314
+ props: {
315
+ orientation: 'horizontal'
316
+ },
317
+ style: {
318
+ top: '50%',
319
+ transform: 'translate(-50%, -50%)'
320
+ }
321
+ }, {
322
+ props: {
323
+ orientation: 'vertical'
324
+ },
325
+ style: {
326
+ left: '50%',
327
+ transform: 'translate(-50%, 50%)'
328
+ }
329
+ }]
221
330
  }));
222
331
  export const SliderValueLabel = styled(BaseSliderValueLabel, {
223
332
  name: 'MuiSlider',
224
333
  slot: 'ValueLabel',
225
334
  overridesResolver: (props, styles) => styles.valueLabel
226
335
  })(({
227
- theme,
228
- ownerState
336
+ theme
229
337
  }) => _extends({
230
- [`&.${sliderClasses.valueLabelOpen}`]: {
231
- transform: `${ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)'} scale(1)`
232
- },
233
338
  zIndex: 1,
234
339
  whiteSpace: 'nowrap'
235
340
  }, theme.typography.body2, {
@@ -237,7 +342,6 @@ export const SliderValueLabel = styled(BaseSliderValueLabel, {
237
342
  transition: theme.transitions.create(['transform'], {
238
343
  duration: theme.transitions.duration.shortest
239
344
  }),
240
- transform: `${ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)'} scale(0)`,
241
345
  position: 'absolute',
242
346
  backgroundColor: (theme.vars || theme).palette.grey[600],
243
347
  borderRadius: 2,
@@ -245,37 +349,69 @@ export const SliderValueLabel = styled(BaseSliderValueLabel, {
245
349
  display: 'flex',
246
350
  alignItems: 'center',
247
351
  justifyContent: 'center',
248
- padding: '0.25rem 0.75rem'
249
- }, ownerState.orientation === 'horizontal' && {
250
- top: '-10px',
251
- transformOrigin: 'bottom center',
252
- '&::before': {
253
- position: 'absolute',
254
- content: '""',
255
- width: 8,
256
- height: 8,
257
- transform: 'translate(-50%, 50%) rotate(45deg)',
258
- backgroundColor: 'inherit',
259
- bottom: 0,
260
- left: '50%'
261
- }
262
- }, ownerState.orientation === 'vertical' && {
263
- right: ownerState.size === 'small' ? '20px' : '30px',
264
- top: '50%',
265
- transformOrigin: 'right center',
266
- '&::before': {
267
- position: 'absolute',
268
- content: '""',
269
- width: 8,
270
- height: 8,
271
- transform: 'translate(-50%, -50%) rotate(45deg)',
272
- backgroundColor: 'inherit',
273
- right: -8,
274
- top: '50%'
275
- }
276
- }, ownerState.size === 'small' && {
277
- fontSize: theme.typography.pxToRem(12),
278
- padding: '0.25rem 0.5rem'
352
+ padding: '0.25rem 0.75rem',
353
+ variants: [{
354
+ props: {
355
+ orientation: 'horizontal'
356
+ },
357
+ style: {
358
+ transform: 'translateY(-100%) scale(0)',
359
+ top: '-10px',
360
+ transformOrigin: 'bottom center',
361
+ '&::before': {
362
+ position: 'absolute',
363
+ content: '""',
364
+ width: 8,
365
+ height: 8,
366
+ transform: 'translate(-50%, 50%) rotate(45deg)',
367
+ backgroundColor: 'inherit',
368
+ bottom: 0,
369
+ left: '50%'
370
+ },
371
+ [`&.${sliderClasses.valueLabelOpen}`]: {
372
+ transform: 'translateY(-100%) scale(1)'
373
+ }
374
+ }
375
+ }, {
376
+ props: {
377
+ orientation: 'vertical'
378
+ },
379
+ style: {
380
+ transform: 'translateY(-50%) scale(0)',
381
+ right: '30px',
382
+ top: '50%',
383
+ transformOrigin: 'right center',
384
+ '&::before': {
385
+ position: 'absolute',
386
+ content: '""',
387
+ width: 8,
388
+ height: 8,
389
+ transform: 'translate(-50%, -50%) rotate(45deg)',
390
+ backgroundColor: 'inherit',
391
+ right: -8,
392
+ top: '50%'
393
+ },
394
+ [`&.${sliderClasses.valueLabelOpen}`]: {
395
+ transform: 'translateY(-50%) scale(1)'
396
+ }
397
+ }
398
+ }, {
399
+ props: {
400
+ size: 'small'
401
+ },
402
+ style: {
403
+ fontSize: theme.typography.pxToRem(12),
404
+ padding: '0.25rem 0.5rem'
405
+ }
406
+ }, {
407
+ props: {
408
+ orientation: 'vertical',
409
+ size: 'small'
410
+ },
411
+ style: {
412
+ right: '20px'
413
+ }
414
+ }]
279
415
  }));
280
416
  export const SliderMark = styled('span', {
281
417
  name: 'MuiSlider',
@@ -288,24 +424,38 @@ export const SliderMark = styled('span', {
288
424
  return [styles.mark, markActive && styles.markActive];
289
425
  }
290
426
  })(({
291
- theme,
292
- ownerState,
293
- markActive
294
- }) => _extends({
427
+ theme
428
+ }) => ({
295
429
  position: 'absolute',
296
430
  width: 2,
297
431
  height: 2,
298
432
  borderRadius: 1,
299
- backgroundColor: 'currentColor'
300
- }, ownerState.orientation === 'horizontal' && {
301
- top: '50%',
302
- transform: 'translate(-1px, -50%)'
303
- }, ownerState.orientation === 'vertical' && {
304
- left: '50%',
305
- transform: 'translate(-50%, 1px)'
306
- }, markActive && {
307
- backgroundColor: (theme.vars || theme).palette.background.paper,
308
- opacity: 0.8
433
+ backgroundColor: 'currentColor',
434
+ variants: [{
435
+ props: {
436
+ orientation: 'horizontal'
437
+ },
438
+ style: {
439
+ top: '50%',
440
+ transform: 'translate(-1px, -50%)'
441
+ }
442
+ }, {
443
+ props: {
444
+ orientation: 'vertical'
445
+ },
446
+ style: {
447
+ left: '50%',
448
+ transform: 'translate(-50%, 1px)'
449
+ }
450
+ }, {
451
+ props: {
452
+ markActive: true
453
+ },
454
+ style: {
455
+ backgroundColor: (theme.vars || theme).palette.background.paper,
456
+ opacity: 0.8
457
+ }
458
+ }]
309
459
  }));
310
460
  export const SliderMarkLabel = styled('span', {
311
461
  name: 'MuiSlider',
@@ -313,27 +463,41 @@ export const SliderMarkLabel = styled('span', {
313
463
  shouldForwardProp: prop => slotShouldForwardProp(prop) && prop !== 'markLabelActive',
314
464
  overridesResolver: (props, styles) => styles.markLabel
315
465
  })(({
316
- theme,
317
- ownerState,
318
- markLabelActive
466
+ theme
319
467
  }) => _extends({}, theme.typography.body2, {
320
468
  color: (theme.vars || theme).palette.text.secondary,
321
469
  position: 'absolute',
322
- whiteSpace: 'nowrap'
323
- }, ownerState.orientation === 'horizontal' && {
324
- top: 30,
325
- transform: 'translateX(-50%)',
326
- '@media (pointer: coarse)': {
327
- top: 40
328
- }
329
- }, ownerState.orientation === 'vertical' && {
330
- left: 36,
331
- transform: 'translateY(50%)',
332
- '@media (pointer: coarse)': {
333
- left: 44
334
- }
335
- }, markLabelActive && {
336
- color: (theme.vars || theme).palette.text.primary
470
+ whiteSpace: 'nowrap',
471
+ variants: [{
472
+ props: {
473
+ orientation: 'horizontal'
474
+ },
475
+ style: {
476
+ top: 30,
477
+ transform: 'translateX(-50%)',
478
+ '@media (pointer: coarse)': {
479
+ top: 40
480
+ }
481
+ }
482
+ }, {
483
+ props: {
484
+ orientation: 'vertical'
485
+ },
486
+ style: {
487
+ left: 36,
488
+ transform: 'translateY(50%)',
489
+ '@media (pointer: coarse)': {
490
+ left: 44
491
+ }
492
+ }
493
+ }, {
494
+ props: {
495
+ markLabelActive: true
496
+ },
497
+ style: {
498
+ color: (theme.vars || theme).palette.text.primary
499
+ }
500
+ }]
337
501
  }));
338
502
  const useUtilityClasses = ownerState => {
339
503
  const {
@@ -366,7 +530,6 @@ const Forward = ({
366
530
  children
367
531
  }) => children;
368
532
  const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
369
- var _ref, _slots$root, _ref2, _slots$rail, _ref3, _slots$track, _ref4, _slots$thumb, _ref5, _slots$valueLabel, _ref6, _slots$mark, _ref7, _slots$markLabel, _ref8, _slots$input, _slotProps$root, _slotProps$rail, _slotProps$track, _slotProps$thumb, _slotProps$valueLabel, _slotProps$mark, _slotProps$markLabel, _slotProps$input;
370
533
  const props = useThemeProps({
371
534
  props: inputProps,
372
535
  name: 'MuiSlider'
@@ -445,22 +608,22 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
445
608
  const classes = useUtilityClasses(ownerState);
446
609
 
447
610
  // support both `slots` and `components` for backward compatibility
448
- const RootSlot = (_ref = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref : SliderRoot;
449
- const RailSlot = (_ref2 = (_slots$rail = slots == null ? void 0 : slots.rail) != null ? _slots$rail : components.Rail) != null ? _ref2 : SliderRail;
450
- const TrackSlot = (_ref3 = (_slots$track = slots == null ? void 0 : slots.track) != null ? _slots$track : components.Track) != null ? _ref3 : SliderTrack;
451
- const ThumbSlot = (_ref4 = (_slots$thumb = slots == null ? void 0 : slots.thumb) != null ? _slots$thumb : components.Thumb) != null ? _ref4 : SliderThumb;
452
- const ValueLabelSlot = (_ref5 = (_slots$valueLabel = slots == null ? void 0 : slots.valueLabel) != null ? _slots$valueLabel : components.ValueLabel) != null ? _ref5 : SliderValueLabel;
453
- const MarkSlot = (_ref6 = (_slots$mark = slots == null ? void 0 : slots.mark) != null ? _slots$mark : components.Mark) != null ? _ref6 : SliderMark;
454
- const MarkLabelSlot = (_ref7 = (_slots$markLabel = slots == null ? void 0 : slots.markLabel) != null ? _slots$markLabel : components.MarkLabel) != null ? _ref7 : SliderMarkLabel;
455
- const InputSlot = (_ref8 = (_slots$input = slots == null ? void 0 : slots.input) != null ? _slots$input : components.Input) != null ? _ref8 : 'input';
456
- const rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
457
- const railSlotProps = (_slotProps$rail = slotProps == null ? void 0 : slotProps.rail) != null ? _slotProps$rail : componentsProps.rail;
458
- const trackSlotProps = (_slotProps$track = slotProps == null ? void 0 : slotProps.track) != null ? _slotProps$track : componentsProps.track;
459
- const thumbSlotProps = (_slotProps$thumb = slotProps == null ? void 0 : slotProps.thumb) != null ? _slotProps$thumb : componentsProps.thumb;
460
- const valueLabelSlotProps = (_slotProps$valueLabel = slotProps == null ? void 0 : slotProps.valueLabel) != null ? _slotProps$valueLabel : componentsProps.valueLabel;
461
- const markSlotProps = (_slotProps$mark = slotProps == null ? void 0 : slotProps.mark) != null ? _slotProps$mark : componentsProps.mark;
462
- const markLabelSlotProps = (_slotProps$markLabel = slotProps == null ? void 0 : slotProps.markLabel) != null ? _slotProps$markLabel : componentsProps.markLabel;
463
- const inputSlotProps = (_slotProps$input = slotProps == null ? void 0 : slotProps.input) != null ? _slotProps$input : componentsProps.input;
611
+ const RootSlot = slots?.root ?? components.Root ?? SliderRoot;
612
+ const RailSlot = slots?.rail ?? components.Rail ?? SliderRail;
613
+ const TrackSlot = slots?.track ?? components.Track ?? SliderTrack;
614
+ const ThumbSlot = slots?.thumb ?? components.Thumb ?? SliderThumb;
615
+ const ValueLabelSlot = slots?.valueLabel ?? components.ValueLabel ?? SliderValueLabel;
616
+ const MarkSlot = slots?.mark ?? components.Mark ?? SliderMark;
617
+ const MarkLabelSlot = slots?.markLabel ?? components.MarkLabel ?? SliderMarkLabel;
618
+ const InputSlot = slots?.input ?? components.Input ?? 'input';
619
+ const rootSlotProps = slotProps?.root ?? componentsProps.root;
620
+ const railSlotProps = slotProps?.rail ?? componentsProps.rail;
621
+ const trackSlotProps = slotProps?.track ?? componentsProps.track;
622
+ const thumbSlotProps = slotProps?.thumb ?? componentsProps.thumb;
623
+ const valueLabelSlotProps = slotProps?.valueLabel ?? componentsProps.valueLabel;
624
+ const markSlotProps = slotProps?.mark ?? componentsProps.mark;
625
+ const markLabelSlotProps = slotProps?.markLabel ?? componentsProps.markLabel;
626
+ const inputSlotProps = slotProps?.input ?? componentsProps.input;
464
627
  const rootProps = useSlotProps({
465
628
  elementType: RootSlot,
466
629
  getSlotProps: getRootProps,
@@ -469,7 +632,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
469
632
  additionalProps: _extends({}, shouldSpreadAdditionalProps(RootSlot) && {
470
633
  as: component
471
634
  }),
472
- ownerState: _extends({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
635
+ ownerState: _extends({}, ownerState, rootSlotProps?.ownerState),
473
636
  className: [classes.root, className]
474
637
  });
475
638
  const railProps = useSlotProps({
@@ -484,20 +647,20 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
484
647
  additionalProps: {
485
648
  style: _extends({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap))
486
649
  },
487
- ownerState: _extends({}, ownerState, trackSlotProps == null ? void 0 : trackSlotProps.ownerState),
650
+ ownerState: _extends({}, ownerState, trackSlotProps?.ownerState),
488
651
  className: classes.track
489
652
  });
490
653
  const thumbProps = useSlotProps({
491
654
  elementType: ThumbSlot,
492
655
  getSlotProps: getThumbProps,
493
656
  externalSlotProps: thumbSlotProps,
494
- ownerState: _extends({}, ownerState, thumbSlotProps == null ? void 0 : thumbSlotProps.ownerState),
657
+ ownerState: _extends({}, ownerState, thumbSlotProps?.ownerState),
495
658
  className: classes.thumb
496
659
  });
497
660
  const valueLabelProps = useSlotProps({
498
661
  elementType: ValueLabelSlot,
499
662
  externalSlotProps: valueLabelSlotProps,
500
- ownerState: _extends({}, ownerState, valueLabelSlotProps == null ? void 0 : valueLabelSlotProps.ownerState),
663
+ ownerState: _extends({}, ownerState, valueLabelSlotProps?.ownerState),
501
664
  className: classes.valueLabel
502
665
  });
503
666
  const markProps = useSlotProps({