@mui/material 6.0.0-alpha.7 → 6.0.0-alpha.8

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 (459) hide show
  1. package/Accordion/Accordion.js +33 -33
  2. package/AccordionActions/AccordionActions.js +11 -12
  3. package/AccordionDetails/AccordionDetails.js +7 -9
  4. package/AccordionSummary/AccordionSummary.js +14 -16
  5. package/Alert/Alert.js +56 -51
  6. package/AlertTitle/AlertTitle.js +7 -9
  7. package/AppBar/AppBar.js +34 -32
  8. package/Autocomplete/Autocomplete.js +164 -136
  9. package/Avatar/Avatar.js +41 -35
  10. package/AvatarGroup/AvatarGroup.js +31 -31
  11. package/Backdrop/Backdrop.js +33 -30
  12. package/Badge/Badge.js +31 -30
  13. package/BottomNavigation/BottomNavigation.js +15 -17
  14. package/BottomNavigationAction/BottomNavigationAction.js +15 -18
  15. package/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  16. package/Breadcrumbs/Breadcrumbs.js +19 -21
  17. package/Button/Button.js +32 -29
  18. package/ButtonBase/ButtonBase.js +43 -42
  19. package/ButtonBase/TouchRipple.js +9 -12
  20. package/ButtonGroup/ButtonGroup.js +23 -25
  21. package/CHANGELOG.md +37 -2
  22. package/Card/Card.js +11 -12
  23. package/CardActionArea/CardActionArea.js +9 -12
  24. package/CardActions/CardActions.js +11 -12
  25. package/CardContent/CardContent.js +11 -12
  26. package/CardHeader/CardHeader.js +30 -31
  27. package/CardMedia/CardMedia.js +19 -20
  28. package/Checkbox/Checkbox.js +29 -26
  29. package/Chip/Chip.js +38 -37
  30. package/CircularProgress/CircularProgress.js +24 -23
  31. package/Collapse/Collapse.js +44 -42
  32. package/CssBaseline/CssBaseline.js +17 -14
  33. package/Dialog/Dialog.js +41 -42
  34. package/DialogActions/DialogActions.js +11 -12
  35. package/DialogContent/DialogContent.js +11 -12
  36. package/DialogContentText/DialogContentText.js +13 -11
  37. package/DialogTitle/DialogTitle.js +8 -10
  38. package/Divider/Divider.js +19 -21
  39. package/Drawer/Drawer.js +50 -49
  40. package/Fab/Fab.js +26 -23
  41. package/Fade/Fade.js +31 -30
  42. package/FilledInput/FilledInput.js +48 -44
  43. package/FilledInput/filledInputClasses.js +4 -2
  44. package/FormControl/FormControl.js +27 -25
  45. package/FormControlLabel/FormControlLabel.js +32 -26
  46. package/FormGroup/FormGroup.js +11 -12
  47. package/FormHelperText/FormHelperText.js +26 -18
  48. package/FormLabel/FormLabel.js +27 -19
  49. package/GlobalStyles/GlobalStyles.js +3 -3
  50. package/Grid/Grid.js +49 -41
  51. package/Grow/Grow.js +31 -30
  52. package/Hidden/Hidden.js +21 -22
  53. package/Hidden/HiddenCss.js +29 -29
  54. package/Hidden/withWidth.js +19 -19
  55. package/Icon/Icon.js +15 -16
  56. package/IconButton/IconButton.js +18 -20
  57. package/ImageList/ImageList.js +24 -24
  58. package/ImageListItem/ImageListItem.js +19 -20
  59. package/ImageListItemBar/ImageListItemBar.js +15 -17
  60. package/Input/Input.js +21 -20
  61. package/Input/inputClasses.js +4 -2
  62. package/InputAdornment/InputAdornment.js +16 -18
  63. package/InputBase/InputBase.js +90 -73
  64. package/InputLabel/InputLabel.js +20 -16
  65. package/LinearProgress/LinearProgress.js +21 -23
  66. package/Link/Link.js +27 -26
  67. package/List/List.js +15 -17
  68. package/ListItem/ListItem.js +58 -49
  69. package/ListItemAvatar/ListItemAvatar.js +10 -11
  70. package/ListItemButton/ListItemButton.js +23 -22
  71. package/ListItemIcon/ListItemIcon.js +10 -11
  72. package/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  73. package/ListItemText/ListItemText.js +25 -27
  74. package/ListSubheader/ListSubheader.js +15 -16
  75. package/Menu/Menu.js +34 -36
  76. package/MenuItem/MenuItem.js +28 -26
  77. package/MenuList/MenuList.js +17 -20
  78. package/MobileStepper/MobileStepper.js +21 -22
  79. package/Modal/Modal.js +47 -38
  80. package/NativeSelect/NativeSelect.js +26 -22
  81. package/NativeSelect/NativeSelectInput.js +15 -16
  82. package/OutlinedInput/NotchedOutline.js +14 -14
  83. package/OutlinedInput/OutlinedInput.js +46 -42
  84. package/OutlinedInput/outlinedInputClasses.js +4 -2
  85. package/Pagination/Pagination.js +36 -32
  86. package/PaginationItem/PaginationItem.js +31 -30
  87. package/Paper/Paper.js +26 -23
  88. package/Popover/Popover.js +71 -71
  89. package/Popper/Popper.js +25 -27
  90. package/Radio/Radio.js +24 -22
  91. package/Radio/RadioButtonIcon.js +3 -3
  92. package/RadioGroup/RadioGroup.js +15 -18
  93. package/Rating/Rating.js +54 -47
  94. package/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  95. package/Select/Select.js +63 -57
  96. package/Select/SelectInput.js +64 -59
  97. package/Skeleton/Skeleton.js +20 -21
  98. package/Slide/Slide.js +37 -33
  99. package/Slider/Slider.js +155 -106
  100. package/Snackbar/Snackbar.js +52 -45
  101. package/SnackbarContent/SnackbarContent.js +13 -15
  102. package/SpeedDial/SpeedDial.js +59 -60
  103. package/SpeedDialAction/SpeedDialAction.js +34 -33
  104. package/SpeedDialIcon/SpeedDialIcon.js +10 -12
  105. package/Step/Step.js +18 -20
  106. package/StepButton/StepButton.js +16 -17
  107. package/StepConnector/StepConnector.js +10 -12
  108. package/StepContent/StepContent.js +18 -20
  109. package/StepIcon/StepIcon.js +22 -22
  110. package/StepLabel/StepLabel.js +33 -30
  111. package/Stepper/Stepper.js +21 -22
  112. package/SvgIcon/SvgIcon.js +21 -21
  113. package/SwipeableDrawer/SwipeArea.js +15 -16
  114. package/SwipeableDrawer/SwipeableDrawer.js +49 -43
  115. package/Switch/Switch.js +23 -20
  116. package/Tab/Tab.js +32 -33
  117. package/TabScrollButton/TabScrollButton.js +27 -21
  118. package/Table/Table.js +17 -17
  119. package/TableBody/TableBody.js +11 -12
  120. package/TableCell/TableCell.js +19 -19
  121. package/TableContainer/TableContainer.js +11 -12
  122. package/TableFooter/TableFooter.js +11 -12
  123. package/TableHead/TableHead.js +11 -12
  124. package/TablePagination/TablePagination.js +56 -52
  125. package/TablePagination/TablePaginationActions.js +51 -38
  126. package/TableRow/TableRow.js +13 -14
  127. package/TableSortLabel/TableSortLabel.js +15 -17
  128. package/Tabs/ScrollbarSize.js +7 -9
  129. package/Tabs/Tabs.js +52 -49
  130. package/TextField/TextField.d.ts +58 -3
  131. package/TextField/TextField.js +137 -67
  132. package/ToggleButton/ToggleButton.js +30 -32
  133. package/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  134. package/Toolbar/Toolbar.js +13 -14
  135. package/Tooltip/Tooltip.js +75 -60
  136. package/Typography/Typography.js +37 -35
  137. package/Zoom/Zoom.js +31 -30
  138. package/index.js +1 -1
  139. package/internal/SwitchBase.js +37 -37
  140. package/modern/Accordion/Accordion.js +33 -33
  141. package/modern/AccordionActions/AccordionActions.js +11 -12
  142. package/modern/AccordionDetails/AccordionDetails.js +7 -9
  143. package/modern/AccordionSummary/AccordionSummary.js +14 -16
  144. package/modern/Alert/Alert.js +56 -51
  145. package/modern/AlertTitle/AlertTitle.js +7 -9
  146. package/modern/AppBar/AppBar.js +34 -32
  147. package/modern/Autocomplete/Autocomplete.js +164 -136
  148. package/modern/Avatar/Avatar.js +41 -35
  149. package/modern/AvatarGroup/AvatarGroup.js +31 -31
  150. package/modern/Backdrop/Backdrop.js +33 -30
  151. package/modern/Badge/Badge.js +31 -30
  152. package/modern/BottomNavigation/BottomNavigation.js +15 -17
  153. package/modern/BottomNavigationAction/BottomNavigationAction.js +15 -18
  154. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  155. package/modern/Breadcrumbs/Breadcrumbs.js +19 -21
  156. package/modern/Button/Button.js +32 -29
  157. package/modern/ButtonBase/ButtonBase.js +43 -42
  158. package/modern/ButtonBase/TouchRipple.js +9 -12
  159. package/modern/ButtonGroup/ButtonGroup.js +23 -25
  160. package/modern/Card/Card.js +11 -12
  161. package/modern/CardActionArea/CardActionArea.js +9 -12
  162. package/modern/CardActions/CardActions.js +11 -12
  163. package/modern/CardContent/CardContent.js +11 -12
  164. package/modern/CardHeader/CardHeader.js +30 -31
  165. package/modern/CardMedia/CardMedia.js +19 -20
  166. package/modern/Checkbox/Checkbox.js +29 -26
  167. package/modern/Chip/Chip.js +38 -37
  168. package/modern/CircularProgress/CircularProgress.js +24 -23
  169. package/modern/Collapse/Collapse.js +44 -42
  170. package/modern/CssBaseline/CssBaseline.js +17 -14
  171. package/modern/Dialog/Dialog.js +41 -42
  172. package/modern/DialogActions/DialogActions.js +11 -12
  173. package/modern/DialogContent/DialogContent.js +11 -12
  174. package/modern/DialogContentText/DialogContentText.js +13 -11
  175. package/modern/DialogTitle/DialogTitle.js +8 -10
  176. package/modern/Divider/Divider.js +19 -21
  177. package/modern/Drawer/Drawer.js +50 -49
  178. package/modern/Fab/Fab.js +26 -23
  179. package/modern/Fade/Fade.js +31 -30
  180. package/modern/FilledInput/FilledInput.js +48 -44
  181. package/modern/FilledInput/filledInputClasses.js +4 -2
  182. package/modern/FormControl/FormControl.js +27 -25
  183. package/modern/FormControlLabel/FormControlLabel.js +32 -26
  184. package/modern/FormGroup/FormGroup.js +11 -12
  185. package/modern/FormHelperText/FormHelperText.js +26 -18
  186. package/modern/FormLabel/FormLabel.js +27 -19
  187. package/modern/GlobalStyles/GlobalStyles.js +3 -3
  188. package/modern/Grid/Grid.js +49 -41
  189. package/modern/Grow/Grow.js +31 -30
  190. package/modern/Hidden/Hidden.js +21 -22
  191. package/modern/Hidden/HiddenCss.js +29 -29
  192. package/modern/Hidden/withWidth.js +19 -19
  193. package/modern/Icon/Icon.js +15 -16
  194. package/modern/IconButton/IconButton.js +18 -20
  195. package/modern/ImageList/ImageList.js +24 -24
  196. package/modern/ImageListItem/ImageListItem.js +19 -20
  197. package/modern/ImageListItemBar/ImageListItemBar.js +15 -17
  198. package/modern/Input/Input.js +21 -20
  199. package/modern/Input/inputClasses.js +4 -2
  200. package/modern/InputAdornment/InputAdornment.js +16 -18
  201. package/modern/InputBase/InputBase.js +90 -73
  202. package/modern/InputLabel/InputLabel.js +20 -16
  203. package/modern/LinearProgress/LinearProgress.js +21 -23
  204. package/modern/Link/Link.js +27 -26
  205. package/modern/List/List.js +15 -17
  206. package/modern/ListItem/ListItem.js +58 -49
  207. package/modern/ListItemAvatar/ListItemAvatar.js +10 -11
  208. package/modern/ListItemButton/ListItemButton.js +23 -22
  209. package/modern/ListItemIcon/ListItemIcon.js +10 -11
  210. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  211. package/modern/ListItemText/ListItemText.js +25 -27
  212. package/modern/ListSubheader/ListSubheader.js +15 -16
  213. package/modern/Menu/Menu.js +34 -36
  214. package/modern/MenuItem/MenuItem.js +28 -26
  215. package/modern/MenuList/MenuList.js +17 -20
  216. package/modern/MobileStepper/MobileStepper.js +21 -22
  217. package/modern/Modal/Modal.js +47 -38
  218. package/modern/NativeSelect/NativeSelect.js +26 -22
  219. package/modern/NativeSelect/NativeSelectInput.js +15 -16
  220. package/modern/OutlinedInput/NotchedOutline.js +14 -14
  221. package/modern/OutlinedInput/OutlinedInput.js +46 -42
  222. package/modern/OutlinedInput/outlinedInputClasses.js +4 -2
  223. package/modern/Pagination/Pagination.js +36 -32
  224. package/modern/PaginationItem/PaginationItem.js +31 -30
  225. package/modern/Paper/Paper.js +26 -23
  226. package/modern/Popover/Popover.js +71 -71
  227. package/modern/Popper/Popper.js +25 -27
  228. package/modern/Radio/Radio.js +24 -22
  229. package/modern/Radio/RadioButtonIcon.js +3 -3
  230. package/modern/RadioGroup/RadioGroup.js +15 -18
  231. package/modern/Rating/Rating.js +54 -47
  232. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  233. package/modern/Select/Select.js +63 -57
  234. package/modern/Select/SelectInput.js +64 -59
  235. package/modern/Skeleton/Skeleton.js +20 -21
  236. package/modern/Slide/Slide.js +37 -33
  237. package/modern/Slider/Slider.js +155 -106
  238. package/modern/Snackbar/Snackbar.js +52 -45
  239. package/modern/SnackbarContent/SnackbarContent.js +13 -15
  240. package/modern/SpeedDial/SpeedDial.js +59 -60
  241. package/modern/SpeedDialAction/SpeedDialAction.js +34 -33
  242. package/modern/SpeedDialIcon/SpeedDialIcon.js +10 -12
  243. package/modern/Step/Step.js +18 -20
  244. package/modern/StepButton/StepButton.js +16 -17
  245. package/modern/StepConnector/StepConnector.js +10 -12
  246. package/modern/StepContent/StepContent.js +18 -20
  247. package/modern/StepIcon/StepIcon.js +22 -22
  248. package/modern/StepLabel/StepLabel.js +33 -30
  249. package/modern/Stepper/Stepper.js +21 -22
  250. package/modern/SvgIcon/SvgIcon.js +21 -21
  251. package/modern/SwipeableDrawer/SwipeArea.js +15 -16
  252. package/modern/SwipeableDrawer/SwipeableDrawer.js +49 -43
  253. package/modern/Switch/Switch.js +23 -20
  254. package/modern/Tab/Tab.js +32 -33
  255. package/modern/TabScrollButton/TabScrollButton.js +27 -21
  256. package/modern/Table/Table.js +17 -17
  257. package/modern/TableBody/TableBody.js +11 -12
  258. package/modern/TableCell/TableCell.js +19 -19
  259. package/modern/TableContainer/TableContainer.js +11 -12
  260. package/modern/TableFooter/TableFooter.js +11 -12
  261. package/modern/TableHead/TableHead.js +11 -12
  262. package/modern/TablePagination/TablePagination.js +56 -52
  263. package/modern/TablePagination/TablePaginationActions.js +51 -38
  264. package/modern/TableRow/TableRow.js +13 -14
  265. package/modern/TableSortLabel/TableSortLabel.js +15 -17
  266. package/modern/Tabs/ScrollbarSize.js +7 -9
  267. package/modern/Tabs/Tabs.js +52 -49
  268. package/modern/TextField/TextField.js +137 -67
  269. package/modern/ToggleButton/ToggleButton.js +30 -32
  270. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  271. package/modern/Toolbar/Toolbar.js +13 -14
  272. package/modern/Tooltip/Tooltip.js +75 -60
  273. package/modern/Typography/Typography.js +37 -35
  274. package/modern/Zoom/Zoom.js +31 -30
  275. package/modern/index.js +1 -1
  276. package/modern/internal/SwitchBase.js +37 -37
  277. package/modern/styles/CssVarsProvider.js +3 -3
  278. package/modern/styles/ThemeProvider.js +7 -10
  279. package/modern/styles/adaptV4Theme.js +31 -31
  280. package/modern/styles/createMixins.js +4 -4
  281. package/modern/styles/createPalette.js +16 -13
  282. package/modern/styles/createTheme.js +16 -11
  283. package/modern/styles/createTransitions.js +17 -14
  284. package/modern/styles/createTypography.js +31 -29
  285. package/modern/styles/experimental_extendTheme.js +47 -37
  286. package/modern/styles/responsiveFontSizes.js +17 -11
  287. package/modern/usePagination/usePagination.js +18 -20
  288. package/modern/useScrollTrigger/useScrollTrigger.js +8 -10
  289. package/modern/utils/createSvgIcon.js +4 -5
  290. package/modern/utils/useSlot.js +41 -40
  291. package/node/Accordion/Accordion.js +33 -33
  292. package/node/AccordionActions/AccordionActions.js +11 -12
  293. package/node/AccordionDetails/AccordionDetails.js +7 -9
  294. package/node/AccordionSummary/AccordionSummary.js +14 -16
  295. package/node/Alert/Alert.js +56 -51
  296. package/node/AlertTitle/AlertTitle.js +7 -9
  297. package/node/AppBar/AppBar.js +125 -129
  298. package/node/Autocomplete/Autocomplete.js +165 -137
  299. package/node/Avatar/Avatar.js +41 -35
  300. package/node/AvatarGroup/AvatarGroup.js +31 -31
  301. package/node/Backdrop/Backdrop.js +33 -30
  302. package/node/Badge/Badge.js +179 -184
  303. package/node/BottomNavigation/BottomNavigation.js +15 -17
  304. package/node/BottomNavigationAction/BottomNavigationAction.js +15 -18
  305. package/node/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  306. package/node/Breadcrumbs/Breadcrumbs.js +19 -21
  307. package/node/Button/Button.js +32 -29
  308. package/node/ButtonBase/ButtonBase.js +43 -42
  309. package/node/ButtonBase/TouchRipple.js +9 -12
  310. package/node/ButtonGroup/ButtonGroup.js +23 -25
  311. package/node/Card/Card.js +11 -12
  312. package/node/CardActionArea/CardActionArea.js +9 -12
  313. package/node/CardActions/CardActions.js +11 -12
  314. package/node/CardContent/CardContent.js +11 -12
  315. package/node/CardHeader/CardHeader.js +30 -31
  316. package/node/CardMedia/CardMedia.js +19 -20
  317. package/node/Checkbox/Checkbox.js +29 -26
  318. package/node/Chip/Chip.js +38 -37
  319. package/node/CircularProgress/CircularProgress.js +24 -23
  320. package/node/Collapse/Collapse.js +44 -42
  321. package/node/CssBaseline/CssBaseline.js +17 -14
  322. package/node/Dialog/Dialog.js +41 -42
  323. package/node/DialogActions/DialogActions.js +11 -12
  324. package/node/DialogContent/DialogContent.js +11 -12
  325. package/node/DialogContentText/DialogContentText.js +13 -11
  326. package/node/DialogTitle/DialogTitle.js +8 -10
  327. package/node/Divider/Divider.js +19 -21
  328. package/node/Drawer/Drawer.js +50 -49
  329. package/node/Fab/Fab.js +27 -24
  330. package/node/Fade/Fade.js +31 -30
  331. package/node/FilledInput/FilledInput.js +48 -44
  332. package/node/FilledInput/filledInputClasses.js +4 -2
  333. package/node/FormControl/FormControl.js +27 -25
  334. package/node/FormControlLabel/FormControlLabel.js +32 -26
  335. package/node/FormGroup/FormGroup.js +11 -12
  336. package/node/FormHelperText/FormHelperText.js +26 -18
  337. package/node/FormLabel/FormLabel.js +27 -19
  338. package/node/GlobalStyles/GlobalStyles.js +3 -3
  339. package/node/Grid/Grid.js +49 -41
  340. package/node/Grow/Grow.js +31 -30
  341. package/node/Hidden/Hidden.js +24 -26
  342. package/node/Hidden/HiddenCss.js +29 -29
  343. package/node/Hidden/withWidth.js +19 -19
  344. package/node/Icon/Icon.js +15 -16
  345. package/node/IconButton/IconButton.js +18 -20
  346. package/node/ImageList/ImageList.js +24 -24
  347. package/node/ImageListItem/ImageListItem.js +19 -20
  348. package/node/ImageListItemBar/ImageListItemBar.js +15 -17
  349. package/node/Input/Input.js +21 -20
  350. package/node/Input/inputClasses.js +4 -2
  351. package/node/InputAdornment/InputAdornment.js +16 -18
  352. package/node/InputBase/InputBase.js +90 -73
  353. package/node/InputLabel/InputLabel.js +20 -16
  354. package/node/LinearProgress/LinearProgress.js +21 -23
  355. package/node/Link/Link.js +27 -26
  356. package/node/List/List.js +15 -17
  357. package/node/ListItem/ListItem.js +58 -49
  358. package/node/ListItemAvatar/ListItemAvatar.js +10 -11
  359. package/node/ListItemButton/ListItemButton.js +23 -22
  360. package/node/ListItemIcon/ListItemIcon.js +10 -11
  361. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  362. package/node/ListItemText/ListItemText.js +25 -27
  363. package/node/ListSubheader/ListSubheader.js +15 -16
  364. package/node/Menu/Menu.js +34 -36
  365. package/node/MenuItem/MenuItem.js +28 -26
  366. package/node/MenuList/MenuList.js +17 -20
  367. package/node/MobileStepper/MobileStepper.js +21 -22
  368. package/node/Modal/Modal.js +47 -38
  369. package/node/NativeSelect/NativeSelect.js +26 -22
  370. package/node/NativeSelect/NativeSelectInput.js +15 -16
  371. package/node/OutlinedInput/NotchedOutline.js +14 -14
  372. package/node/OutlinedInput/OutlinedInput.js +46 -42
  373. package/node/OutlinedInput/outlinedInputClasses.js +4 -2
  374. package/node/Pagination/Pagination.js +36 -32
  375. package/node/PaginationItem/PaginationItem.js +31 -30
  376. package/node/Paper/Paper.js +26 -23
  377. package/node/Popover/Popover.js +71 -71
  378. package/node/Popper/Popper.js +25 -27
  379. package/node/Radio/Radio.js +24 -22
  380. package/node/Radio/RadioButtonIcon.js +3 -3
  381. package/node/RadioGroup/RadioGroup.js +15 -18
  382. package/node/Rating/Rating.js +54 -47
  383. package/node/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  384. package/node/Select/Select.js +63 -57
  385. package/node/Select/SelectInput.js +64 -59
  386. package/node/Skeleton/Skeleton.js +20 -21
  387. package/node/Slide/Slide.js +39 -34
  388. package/node/Slider/Slider.js +298 -265
  389. package/node/Snackbar/Snackbar.js +52 -45
  390. package/node/SnackbarContent/SnackbarContent.js +13 -15
  391. package/node/SpeedDial/SpeedDial.js +59 -60
  392. package/node/SpeedDialAction/SpeedDialAction.js +34 -33
  393. package/node/SpeedDialIcon/SpeedDialIcon.js +10 -12
  394. package/node/Step/Step.js +18 -20
  395. package/node/StepButton/StepButton.js +16 -17
  396. package/node/StepConnector/StepConnector.js +10 -12
  397. package/node/StepContent/StepContent.js +18 -20
  398. package/node/StepIcon/StepIcon.js +22 -22
  399. package/node/StepLabel/StepLabel.js +33 -30
  400. package/node/Stepper/Stepper.js +21 -22
  401. package/node/SvgIcon/SvgIcon.js +21 -21
  402. package/node/SwipeableDrawer/SwipeArea.js +15 -16
  403. package/node/SwipeableDrawer/SwipeableDrawer.js +51 -44
  404. package/node/Switch/Switch.js +23 -20
  405. package/node/Tab/Tab.js +32 -33
  406. package/node/TabScrollButton/TabScrollButton.js +27 -21
  407. package/node/Table/Table.js +17 -17
  408. package/node/TableBody/TableBody.js +11 -12
  409. package/node/TableCell/TableCell.js +19 -19
  410. package/node/TableContainer/TableContainer.js +11 -12
  411. package/node/TableFooter/TableFooter.js +11 -12
  412. package/node/TableHead/TableHead.js +11 -12
  413. package/node/TablePagination/TablePagination.js +56 -52
  414. package/node/TablePagination/TablePaginationActions.js +54 -42
  415. package/node/TableRow/TableRow.js +13 -14
  416. package/node/TableSortLabel/TableSortLabel.js +15 -17
  417. package/node/Tabs/ScrollbarSize.js +7 -9
  418. package/node/Tabs/Tabs.js +52 -49
  419. package/node/TextField/TextField.js +137 -67
  420. package/node/ToggleButton/ToggleButton.js +30 -32
  421. package/node/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  422. package/node/Toolbar/Toolbar.js +13 -14
  423. package/node/Tooltip/Tooltip.js +75 -60
  424. package/node/Typography/Typography.js +37 -35
  425. package/node/Zoom/Zoom.js +31 -30
  426. package/node/index.js +1 -1
  427. package/node/internal/SwitchBase.js +37 -37
  428. package/node/styles/CssVarsProvider.js +3 -3
  429. package/node/styles/ThemeProvider.js +7 -10
  430. package/node/styles/adaptV4Theme.js +31 -32
  431. package/node/styles/createMixins.js +4 -5
  432. package/node/styles/createPalette.js +16 -13
  433. package/node/styles/createTheme.js +16 -11
  434. package/node/styles/createTransitions.js +17 -15
  435. package/node/styles/createTypography.js +31 -29
  436. package/node/styles/experimental_extendTheme.js +47 -37
  437. package/node/styles/responsiveFontSizes.js +17 -11
  438. package/node/usePagination/usePagination.js +18 -20
  439. package/node/useScrollTrigger/useScrollTrigger.js +8 -11
  440. package/node/utils/createSvgIcon.js +4 -5
  441. package/node/utils/useSlot.js +41 -40
  442. package/package.json +5 -5
  443. package/styles/CssVarsProvider.js +3 -3
  444. package/styles/ThemeProvider.js +7 -10
  445. package/styles/adaptV4Theme.js +31 -31
  446. package/styles/createMixins.js +4 -4
  447. package/styles/createPalette.js +16 -13
  448. package/styles/createTheme.js +16 -11
  449. package/styles/createTransitions.js +17 -14
  450. package/styles/createTypography.js +31 -29
  451. package/styles/experimental_extendTheme.js +47 -37
  452. package/styles/responsiveFontSizes.js +17 -11
  453. package/usePagination/usePagination.d.ts +1 -1
  454. package/usePagination/usePagination.js +18 -20
  455. package/useScrollTrigger/useScrollTrigger.js +8 -10
  456. package/utils/createSvgIcon.js +4 -5
  457. package/utils/useSlot.js +41 -40
  458. package/umd/material-ui.development.js +0 -54226
  459. package/umd/material-ui.production.min.js +0 -25
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = exports.SliderValueLabel = exports.SliderTrack = exports.SliderThumb = exports.SliderRoot = exports.SliderRail = exports.SliderMarkLabel = exports.SliderMark = void 0;
9
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
9
  var React = _interopRequireWildcard(require("react"));
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
  var _clsx = _interopRequireDefault(require("clsx"));
@@ -24,7 +22,6 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
24
22
  var _SliderValueLabel = _interopRequireDefault(require("./SliderValueLabel"));
25
23
  var _sliderClasses = _interopRequireWildcard(require("./sliderClasses"));
26
24
  var _jsxRuntime = require("react/jsx-runtime");
27
- const _excluded = ["aria-label", "aria-valuetext", "aria-labelledby", "component", "components", "componentsProps", "color", "classes", "className", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "orientation", "shiftStep", "size", "step", "scale", "slotProps", "slots", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat"];
28
25
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
29
26
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
30
27
  const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiSlider');
@@ -42,102 +39,96 @@ const SliderRoot = exports.SliderRoot = (0, _zeroStyled.styled)('span', {
42
39
  }
43
40
  })(({
44
41
  theme
45
- }) => {
46
- var _theme$vars;
47
- return {
48
- borderRadius: 12,
49
- boxSizing: 'content-box',
50
- display: 'inline-block',
51
- position: 'relative',
52
- cursor: 'pointer',
53
- touchAction: 'none',
54
- WebkitTapHighlightColor: 'transparent',
55
- '@media print': {
56
- colorAdjust: 'exact'
42
+ }) => ({
43
+ borderRadius: 12,
44
+ boxSizing: 'content-box',
45
+ display: 'inline-block',
46
+ position: 'relative',
47
+ cursor: 'pointer',
48
+ touchAction: 'none',
49
+ WebkitTapHighlightColor: 'transparent',
50
+ '@media print': {
51
+ colorAdjust: 'exact'
52
+ },
53
+ [`&.${_sliderClasses.default.disabled}`]: {
54
+ pointerEvents: 'none',
55
+ cursor: 'default',
56
+ color: (theme.vars || theme).palette.grey[400]
57
+ },
58
+ [`&.${_sliderClasses.default.dragging}`]: {
59
+ [`& .${_sliderClasses.default.thumb}, & .${_sliderClasses.default.track}`]: {
60
+ transition: 'none'
61
+ }
62
+ },
63
+ variants: [...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
64
+ props: {
65
+ color
57
66
  },
58
- [`&.${_sliderClasses.default.disabled}`]: {
59
- pointerEvents: 'none',
60
- cursor: 'default',
61
- color: (theme.vars || theme).palette.grey[400]
67
+ style: {
68
+ color: (theme.vars || theme).palette[color].main
69
+ }
70
+ })), {
71
+ props: {
72
+ orientation: 'horizontal'
62
73
  },
63
- [`&.${_sliderClasses.default.dragging}`]: {
64
- [`& .${_sliderClasses.default.thumb}, & .${_sliderClasses.default.track}`]: {
65
- transition: 'none'
74
+ style: {
75
+ height: 4,
76
+ width: '100%',
77
+ padding: '13px 0',
78
+ // The primary input mechanism of the device includes a pointing device of limited accuracy.
79
+ '@media (pointer: coarse)': {
80
+ // Reach 42px touch target, about ~8mm on screen.
81
+ padding: '20px 0'
66
82
  }
83
+ }
84
+ }, {
85
+ props: {
86
+ orientation: 'horizontal',
87
+ size: 'small'
67
88
  },
68
- variants: [...Object.keys(((_theme$vars = theme.vars) != null ? _theme$vars : theme).palette).filter(key => {
69
- var _theme$vars2;
70
- return ((_theme$vars2 = theme.vars) != null ? _theme$vars2 : theme).palette[key].main;
71
- }).map(color => ({
72
- props: {
73
- color
74
- },
75
- style: {
76
- color: (theme.vars || theme).palette[color].main
77
- }
78
- })), {
79
- props: {
80
- orientation: 'horizontal'
81
- },
82
- style: {
83
- height: 4,
84
- width: '100%',
85
- padding: '13px 0',
86
- // The primary input mechanism of the device includes a pointing device of limited accuracy.
87
- '@media (pointer: coarse)': {
88
- // Reach 42px touch target, about ~8mm on screen.
89
- padding: '20px 0'
90
- }
91
- }
92
- }, {
93
- props: {
94
- orientation: 'horizontal',
95
- size: 'small'
96
- },
97
- style: {
98
- height: 2
99
- }
100
- }, {
101
- props: {
102
- orientation: 'horizontal',
103
- marked: true
104
- },
105
- style: {
106
- marginBottom: 20
107
- }
108
- }, {
109
- props: {
110
- orientation: 'vertical'
111
- },
112
- style: {
113
- height: '100%',
114
- width: 4,
115
- padding: '0 13px',
116
- // The primary input mechanism of the device includes a pointing device of limited accuracy.
117
- '@media (pointer: coarse)': {
118
- // Reach 42px touch target, about ~8mm on screen.
119
- padding: '0 20px'
120
- }
121
- }
122
- }, {
123
- props: {
124
- orientation: 'vertical',
125
- size: 'small'
126
- },
127
- style: {
128
- width: 2
129
- }
130
- }, {
131
- props: {
132
- orientation: 'vertical',
133
- marked: true
134
- },
135
- style: {
136
- marginRight: 44
89
+ style: {
90
+ height: 2
91
+ }
92
+ }, {
93
+ props: {
94
+ orientation: 'horizontal',
95
+ marked: true
96
+ },
97
+ style: {
98
+ marginBottom: 20
99
+ }
100
+ }, {
101
+ props: {
102
+ orientation: 'vertical'
103
+ },
104
+ style: {
105
+ height: '100%',
106
+ width: 4,
107
+ padding: '0 13px',
108
+ // The primary input mechanism of the device includes a pointing device of limited accuracy.
109
+ '@media (pointer: coarse)': {
110
+ // Reach 42px touch target, about ~8mm on screen.
111
+ padding: '0 20px'
137
112
  }
138
- }]
139
- };
140
- });
113
+ }
114
+ }, {
115
+ props: {
116
+ orientation: 'vertical',
117
+ size: 'small'
118
+ },
119
+ style: {
120
+ width: 2
121
+ }
122
+ }, {
123
+ props: {
124
+ orientation: 'vertical',
125
+ marked: true
126
+ },
127
+ style: {
128
+ marginRight: 44
129
+ }
130
+ }]
131
+ }));
141
132
  const SliderRail = exports.SliderRail = (0, _zeroStyled.styled)('span', {
142
133
  name: 'MuiSlider',
143
134
  slot: 'Rail',
@@ -184,7 +175,6 @@ const SliderTrack = exports.SliderTrack = (0, _zeroStyled.styled)('span', {
184
175
  })(({
185
176
  theme
186
177
  }) => {
187
- var _theme$vars3;
188
178
  return {
189
179
  display: 'block',
190
180
  position: 'absolute',
@@ -226,25 +216,26 @@ const SliderTrack = exports.SliderTrack = (0, _zeroStyled.styled)('span', {
226
216
  style: {
227
217
  display: 'none'
228
218
  }
229
- }, ...Object.keys(((_theme$vars3 = theme.vars) != null ? _theme$vars3 : theme).palette).filter(key => {
230
- var _theme$vars4;
231
- return ((_theme$vars4 = theme.vars) != null ? _theme$vars4 : theme).palette[key].main;
232
- }).map(color => ({
219
+ }, ...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
233
220
  props: {
234
221
  color,
235
222
  track: 'inverted'
236
223
  },
237
- style: (0, _extends2.default)({}, theme.vars ? {
238
- backgroundColor: theme.vars.palette.Slider[`${color}Track`],
239
- borderColor: theme.vars.palette.Slider[`${color}Track`]
240
- } : (0, _extends2.default)({
241
- backgroundColor: (0, _colorManipulator.lighten)(theme.palette[color].main, 0.62),
242
- borderColor: (0, _colorManipulator.lighten)(theme.palette[color].main, 0.62)
243
- }, theme.applyStyles('dark', {
244
- backgroundColor: (0, _colorManipulator.darken)(theme.palette[color].main, 0.5)
245
- }), theme.applyStyles('dark', {
246
- borderColor: (0, _colorManipulator.darken)(theme.palette[color].main, 0.5)
247
- })))
224
+ style: {
225
+ ...(theme.vars ? {
226
+ backgroundColor: theme.vars.palette.Slider[`${color}Track`],
227
+ borderColor: theme.vars.palette.Slider[`${color}Track`]
228
+ } : {
229
+ backgroundColor: (0, _colorManipulator.lighten)(theme.palette[color].main, 0.62),
230
+ borderColor: (0, _colorManipulator.lighten)(theme.palette[color].main, 0.62),
231
+ ...theme.applyStyles('dark', {
232
+ backgroundColor: (0, _colorManipulator.darken)(theme.palette[color].main, 0.5)
233
+ }),
234
+ ...theme.applyStyles('dark', {
235
+ borderColor: (0, _colorManipulator.darken)(theme.palette[color].main, 0.5)
236
+ })
237
+ })
238
+ }
248
239
  }))]
249
240
  };
250
241
  });
@@ -259,109 +250,106 @@ const SliderThumb = exports.SliderThumb = (0, _zeroStyled.styled)('span', {
259
250
  }
260
251
  })(({
261
252
  theme
262
- }) => {
263
- var _theme$vars5;
264
- return {
253
+ }) => ({
254
+ position: 'absolute',
255
+ width: 20,
256
+ height: 20,
257
+ boxSizing: 'border-box',
258
+ borderRadius: '50%',
259
+ outline: 0,
260
+ backgroundColor: 'currentColor',
261
+ display: 'flex',
262
+ alignItems: 'center',
263
+ justifyContent: 'center',
264
+ transition: theme.transitions.create(['box-shadow', 'left', 'bottom'], {
265
+ duration: theme.transitions.duration.shortest
266
+ }),
267
+ '&::before': {
268
+ position: 'absolute',
269
+ content: '""',
270
+ borderRadius: 'inherit',
271
+ width: '100%',
272
+ height: '100%',
273
+ boxShadow: (theme.vars || theme).shadows[2]
274
+ },
275
+ '&::after': {
265
276
  position: 'absolute',
266
- width: 20,
267
- height: 20,
268
- boxSizing: 'border-box',
277
+ content: '""',
269
278
  borderRadius: '50%',
270
- outline: 0,
271
- backgroundColor: 'currentColor',
272
- display: 'flex',
273
- alignItems: 'center',
274
- justifyContent: 'center',
275
- transition: theme.transitions.create(['box-shadow', 'left', 'bottom'], {
276
- duration: theme.transitions.duration.shortest
277
- }),
278
- '&::before': {
279
- position: 'absolute',
280
- content: '""',
281
- borderRadius: 'inherit',
282
- width: '100%',
283
- height: '100%',
284
- boxShadow: (theme.vars || theme).shadows[2]
279
+ // 42px is the hit target
280
+ width: 42,
281
+ height: 42,
282
+ top: '50%',
283
+ left: '50%',
284
+ transform: 'translate(-50%, -50%)'
285
+ },
286
+ [`&.${_sliderClasses.default.disabled}`]: {
287
+ '&:hover': {
288
+ boxShadow: 'none'
289
+ }
290
+ },
291
+ variants: [{
292
+ props: {
293
+ size: 'small'
294
+ },
295
+ style: {
296
+ width: 12,
297
+ height: 12,
298
+ '&::before': {
299
+ boxShadow: 'none'
300
+ }
301
+ }
302
+ }, {
303
+ props: {
304
+ orientation: 'horizontal'
285
305
  },
286
- '&::after': {
287
- position: 'absolute',
288
- content: '""',
289
- borderRadius: '50%',
290
- // 42px is the hit target
291
- width: 42,
292
- height: 42,
306
+ style: {
293
307
  top: '50%',
294
- left: '50%',
295
308
  transform: 'translate(-50%, -50%)'
309
+ }
310
+ }, {
311
+ props: {
312
+ orientation: 'vertical'
296
313
  },
297
- [`&.${_sliderClasses.default.disabled}`]: {
298
- '&:hover': {
299
- boxShadow: 'none'
300
- }
314
+ style: {
315
+ left: '50%',
316
+ transform: 'translate(-50%, 50%)'
317
+ }
318
+ }, ...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
319
+ props: {
320
+ color
301
321
  },
302
- variants: [{
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
- }, ...Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(key => {
330
- var _theme$vars6;
331
- return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
332
- }).map(color => ({
333
- props: {
334
- color
335
- },
336
- style: {
337
- [`&:hover, &.${_sliderClasses.default.focusVisible}`]: (0, _extends2.default)({}, theme.vars ? {
322
+ style: {
323
+ [`&:hover, &.${_sliderClasses.default.focusVisible}`]: {
324
+ ...(theme.vars ? {
338
325
  boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
339
326
  } : {
340
327
  boxShadow: `0px 0px 0px 8px ${(0, _colorManipulator.alpha)(theme.palette[color].main, 0.16)}`
341
- }, {
342
- '@media (hover: none)': {
343
- boxShadow: 'none'
344
- }
345
328
  }),
346
- [`&.${_sliderClasses.default.active}`]: (0, _extends2.default)({}, theme.vars ? {
329
+ '@media (hover: none)': {
330
+ boxShadow: 'none'
331
+ }
332
+ },
333
+ [`&.${_sliderClasses.default.active}`]: {
334
+ ...(theme.vars ? {
347
335
  boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
348
336
  } : {
349
337
  boxShadow: `0px 0px 0px 14px ${(0, _colorManipulator.alpha)(theme.palette[color].main, 0.16)}`
350
338
  })
351
339
  }
352
- }))]
353
- };
354
- });
340
+ }
341
+ }))]
342
+ }));
355
343
  const SliderValueLabel = exports.SliderValueLabel = (0, _zeroStyled.styled)(_SliderValueLabel.default, {
356
344
  name: 'MuiSlider',
357
345
  slot: 'ValueLabel',
358
346
  overridesResolver: (props, styles) => styles.valueLabel
359
347
  })(({
360
348
  theme
361
- }) => (0, _extends2.default)({
349
+ }) => ({
362
350
  zIndex: 1,
363
- whiteSpace: 'nowrap'
364
- }, theme.typography.body2, {
351
+ whiteSpace: 'nowrap',
352
+ ...theme.typography.body2,
365
353
  fontWeight: 500,
366
354
  transition: theme.transitions.create(['transform'], {
367
355
  duration: theme.transitions.duration.shortest
@@ -488,7 +476,8 @@ const SliderMarkLabel = exports.SliderMarkLabel = (0, _zeroStyled.styled)('span'
488
476
  overridesResolver: (props, styles) => styles.markLabel
489
477
  })(({
490
478
  theme
491
- }) => (0, _extends2.default)({}, theme.typography.body2, {
479
+ }) => ({
480
+ ...theme.typography.body2,
492
481
  color: (theme.vars || theme).palette.text.secondary,
493
482
  position: 'absolute',
494
483
  whiteSpace: 'nowrap',
@@ -561,36 +550,42 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
561
550
  });
562
551
  const isRtl = (0, _RtlProvider.useRtl)();
563
552
  const {
564
- 'aria-label': ariaLabel,
565
- 'aria-valuetext': ariaValuetext,
566
- 'aria-labelledby': ariaLabelledby,
567
- // eslint-disable-next-line react/prop-types
568
- component = 'span',
569
- components = {},
570
- componentsProps = {},
571
- color = 'primary',
572
- classes: classesProp,
573
- className,
574
- disableSwap = false,
575
- disabled = false,
576
- getAriaLabel,
577
- getAriaValueText,
578
- marks: marksProp = false,
579
- max = 100,
580
- min = 0,
581
- orientation = 'horizontal',
582
- shiftStep = 10,
583
- size = 'medium',
584
- step = 1,
585
- scale = Identity,
586
- slotProps,
587
- slots,
588
- track = 'normal',
589
- valueLabelDisplay = 'off',
590
- valueLabelFormat = Identity
591
- } = props,
592
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
593
- const ownerState = (0, _extends2.default)({}, props, {
553
+ 'aria-label': ariaLabel,
554
+ 'aria-valuetext': ariaValuetext,
555
+ 'aria-labelledby': ariaLabelledby,
556
+ // eslint-disable-next-line react/prop-types
557
+ component = 'span',
558
+ components = {},
559
+ componentsProps = {},
560
+ color = 'primary',
561
+ classes: classesProp,
562
+ className,
563
+ disableSwap = false,
564
+ disabled = false,
565
+ getAriaLabel,
566
+ getAriaValueText,
567
+ marks: marksProp = false,
568
+ max = 100,
569
+ min = 0,
570
+ name,
571
+ onChange,
572
+ onChangeCommitted,
573
+ orientation = 'horizontal',
574
+ shiftStep = 10,
575
+ size = 'medium',
576
+ step = 1,
577
+ scale = Identity,
578
+ slotProps,
579
+ slots,
580
+ tabIndex,
581
+ track = 'normal',
582
+ value: valueProp,
583
+ valueLabelDisplay = 'off',
584
+ valueLabelFormat = Identity,
585
+ ...other
586
+ } = props;
587
+ const ownerState = {
588
+ ...props,
594
589
  isRtl,
595
590
  max,
596
591
  min,
@@ -607,7 +602,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
607
602
  track,
608
603
  valueLabelDisplay,
609
604
  valueLabelFormat
610
- });
605
+ };
611
606
  const {
612
607
  axisProps,
613
608
  getRootProps,
@@ -624,9 +619,10 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
624
619
  trackOffset,
625
620
  trackLeap,
626
621
  getThumbStyle
627
- } = (0, _useSlider.useSlider)((0, _extends2.default)({}, ownerState, {
622
+ } = (0, _useSlider.useSlider)({
623
+ ...ownerState,
628
624
  rootRef: ref
629
- }));
625
+ });
630
626
  ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
631
627
  ownerState.dragging = dragging;
632
628
  ownerState.focusedThumbIndex = focusedThumbIndex;
@@ -654,10 +650,15 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
654
650
  getSlotProps: getRootProps,
655
651
  externalSlotProps: rootSlotProps,
656
652
  externalForwardedProps: other,
657
- additionalProps: (0, _extends2.default)({}, (0, _shouldSpreadAdditionalProps.default)(RootSlot) && {
658
- as: component
659
- }),
660
- ownerState: (0, _extends2.default)({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
653
+ additionalProps: {
654
+ ...((0, _shouldSpreadAdditionalProps.default)(RootSlot) && {
655
+ as: component
656
+ })
657
+ },
658
+ ownerState: {
659
+ ...ownerState,
660
+ ...(rootSlotProps == null ? void 0 : rootSlotProps.ownerState)
661
+ },
661
662
  className: [classes.root, className]
662
663
  });
663
664
  const railProps = (0, _utils.useSlotProps)({
@@ -670,22 +671,34 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
670
671
  elementType: TrackSlot,
671
672
  externalSlotProps: trackSlotProps,
672
673
  additionalProps: {
673
- style: (0, _extends2.default)({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap))
674
+ style: {
675
+ ...axisProps[axis].offset(trackOffset),
676
+ ...axisProps[axis].leap(trackLeap)
677
+ }
678
+ },
679
+ ownerState: {
680
+ ...ownerState,
681
+ ...(trackSlotProps == null ? void 0 : trackSlotProps.ownerState)
674
682
  },
675
- ownerState: (0, _extends2.default)({}, ownerState, trackSlotProps == null ? void 0 : trackSlotProps.ownerState),
676
683
  className: classes.track
677
684
  });
678
685
  const thumbProps = (0, _utils.useSlotProps)({
679
686
  elementType: ThumbSlot,
680
687
  getSlotProps: getThumbProps,
681
688
  externalSlotProps: thumbSlotProps,
682
- ownerState: (0, _extends2.default)({}, ownerState, thumbSlotProps == null ? void 0 : thumbSlotProps.ownerState),
689
+ ownerState: {
690
+ ...ownerState,
691
+ ...(thumbSlotProps == null ? void 0 : thumbSlotProps.ownerState)
692
+ },
683
693
  className: classes.thumb
684
694
  });
685
695
  const valueLabelProps = (0, _utils.useSlotProps)({
686
696
  elementType: ValueLabelSlot,
687
697
  externalSlotProps: valueLabelSlotProps,
688
- ownerState: (0, _extends2.default)({}, ownerState, valueLabelSlotProps == null ? void 0 : valueLabelSlotProps.ownerState),
698
+ ownerState: {
699
+ ...ownerState,
700
+ ...(valueLabelSlotProps == null ? void 0 : valueLabelSlotProps.ownerState)
701
+ },
689
702
  className: classes.valueLabel
690
703
  });
691
704
  const markProps = (0, _utils.useSlotProps)({
@@ -706,8 +719,13 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
706
719
  externalSlotProps: inputSlotProps,
707
720
  ownerState
708
721
  });
709
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, (0, _extends2.default)({}, rootProps, {
710
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(RailSlot, (0, _extends2.default)({}, railProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(TrackSlot, (0, _extends2.default)({}, trackProps)), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
722
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
723
+ ...rootProps,
724
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(RailSlot, {
725
+ ...railProps
726
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(TrackSlot, {
727
+ ...trackProps
728
+ }), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
711
729
  const percent = (0, _useSlider.valueToPercent)(mark.value, min, max);
712
730
  const style = axisProps[axis].offset(percent);
713
731
  let markActive;
@@ -717,23 +735,31 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
717
735
  markActive = track === 'normal' && (range ? mark.value >= values[0] && mark.value <= values[values.length - 1] : mark.value <= values[0]) || track === 'inverted' && (range ? mark.value <= values[0] || mark.value >= values[values.length - 1] : mark.value >= values[0]);
718
736
  }
719
737
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
720
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(MarkSlot, (0, _extends2.default)({
721
- "data-index": index
722
- }, markProps, !(0, _utils.isHostComponent)(MarkSlot) && {
723
- markActive
724
- }, {
725
- style: (0, _extends2.default)({}, style, markProps.style),
738
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(MarkSlot, {
739
+ "data-index": index,
740
+ ...markProps,
741
+ ...(!(0, _utils.isHostComponent)(MarkSlot) && {
742
+ markActive
743
+ }),
744
+ style: {
745
+ ...style,
746
+ ...markProps.style
747
+ },
726
748
  className: (0, _clsx.default)(markProps.className, markActive && classes.markActive)
727
- })), mark.label != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(MarkLabelSlot, (0, _extends2.default)({
749
+ }), mark.label != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(MarkLabelSlot, {
728
750
  "aria-hidden": true,
729
- "data-index": index
730
- }, markLabelProps, !(0, _utils.isHostComponent)(MarkLabelSlot) && {
731
- markLabelActive: markActive
732
- }, {
733
- style: (0, _extends2.default)({}, style, markLabelProps.style),
751
+ "data-index": index,
752
+ ...markLabelProps,
753
+ ...(!(0, _utils.isHostComponent)(MarkLabelSlot) && {
754
+ markLabelActive: markActive
755
+ }),
756
+ style: {
757
+ ...style,
758
+ ...markLabelProps.style
759
+ },
734
760
  className: (0, _clsx.default)(classes.markLabel, markLabelProps.className, markActive && classes.markLabelActive),
735
761
  children: mark.label
736
- })) : null]
762
+ }) : null]
737
763
  }, index);
738
764
  }), values.map((value, index) => {
739
765
  const percent = (0, _useSlider.valueToPercent)(value, min, max);
@@ -742,32 +768,39 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
742
768
  return (
743
769
  /*#__PURE__*/
744
770
  /* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
745
- (0, _jsxRuntime.jsx)(ValueLabelComponent, (0, _extends2.default)({}, !(0, _utils.isHostComponent)(ValueLabelComponent) && {
746
- valueLabelFormat,
747
- valueLabelDisplay,
748
- value: typeof valueLabelFormat === 'function' ? valueLabelFormat(scale(value), index) : valueLabelFormat,
749
- index,
750
- open: open === index || active === index || valueLabelDisplay === 'on',
751
- disabled
752
- }, valueLabelProps, {
753
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ThumbSlot, (0, _extends2.default)({
754
- "data-index": index
755
- }, thumbProps, {
771
+ (0, _jsxRuntime.jsx)(ValueLabelComponent, {
772
+ ...(!(0, _utils.isHostComponent)(ValueLabelComponent) && {
773
+ valueLabelFormat,
774
+ valueLabelDisplay,
775
+ value: typeof valueLabelFormat === 'function' ? valueLabelFormat(scale(value), index) : valueLabelFormat,
776
+ index,
777
+ open: open === index || active === index || valueLabelDisplay === 'on',
778
+ disabled
779
+ }),
780
+ ...valueLabelProps,
781
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ThumbSlot, {
782
+ "data-index": index,
783
+ ...thumbProps,
756
784
  className: (0, _clsx.default)(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
757
- style: (0, _extends2.default)({}, style, getThumbStyle(index), thumbProps.style),
758
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(InputSlot, (0, _extends2.default)({
785
+ style: {
786
+ ...style,
787
+ ...getThumbStyle(index),
788
+ ...thumbProps.style
789
+ },
790
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(InputSlot, {
759
791
  "data-index": index,
760
792
  "aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
761
793
  "aria-valuenow": scale(value),
762
794
  "aria-labelledby": ariaLabelledby,
763
795
  "aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
764
- value: values[index]
765
- }, inputSliderProps))
766
- }))
767
- }), index)
796
+ value: values[index],
797
+ ...inputSliderProps
798
+ })
799
+ })
800
+ }, index)
768
801
  );
769
802
  })]
770
- }));
803
+ });
771
804
  });
772
805
  process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */ = {
773
806
  // ┌────────────────────────────── Warning ──────────────────────────────┐