@mui/material 6.0.0-alpha.6 → 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 (462) 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.d.ts +78 -12
  9. package/Autocomplete/Autocomplete.js +251 -162
  10. package/Avatar/Avatar.js +41 -35
  11. package/AvatarGroup/AvatarGroup.js +31 -31
  12. package/Backdrop/Backdrop.js +33 -30
  13. package/Badge/Badge.js +31 -30
  14. package/BottomNavigation/BottomNavigation.js +15 -17
  15. package/BottomNavigationAction/BottomNavigationAction.js +15 -18
  16. package/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  17. package/Breadcrumbs/Breadcrumbs.js +19 -21
  18. package/Button/Button.js +32 -29
  19. package/ButtonBase/ButtonBase.js +43 -42
  20. package/ButtonBase/TouchRipple.js +9 -12
  21. package/ButtonGroup/ButtonGroup.js +23 -25
  22. package/CHANGELOG.md +84 -2
  23. package/Card/Card.js +11 -12
  24. package/CardActionArea/CardActionArea.js +9 -12
  25. package/CardActions/CardActions.js +11 -12
  26. package/CardContent/CardContent.js +11 -12
  27. package/CardHeader/CardHeader.js +30 -31
  28. package/CardMedia/CardMedia.js +19 -20
  29. package/Checkbox/Checkbox.js +29 -26
  30. package/Chip/Chip.js +38 -37
  31. package/CircularProgress/CircularProgress.js +24 -23
  32. package/CircularProgress/circularProgressClasses.d.ts +6 -2
  33. package/Collapse/Collapse.js +44 -42
  34. package/CssBaseline/CssBaseline.js +17 -14
  35. package/Dialog/Dialog.js +41 -42
  36. package/DialogActions/DialogActions.js +11 -12
  37. package/DialogContent/DialogContent.js +11 -12
  38. package/DialogContentText/DialogContentText.js +13 -11
  39. package/DialogTitle/DialogTitle.js +8 -10
  40. package/Divider/Divider.js +19 -21
  41. package/Drawer/Drawer.js +50 -49
  42. package/Fab/Fab.js +26 -23
  43. package/Fade/Fade.js +31 -30
  44. package/FilledInput/FilledInput.js +48 -44
  45. package/FilledInput/filledInputClasses.js +4 -2
  46. package/FormControl/FormControl.js +27 -25
  47. package/FormControlLabel/FormControlLabel.js +32 -26
  48. package/FormGroup/FormGroup.js +11 -12
  49. package/FormHelperText/FormHelperText.js +26 -18
  50. package/FormLabel/FormLabel.js +27 -19
  51. package/GlobalStyles/GlobalStyles.js +3 -3
  52. package/Grid/Grid.js +49 -41
  53. package/Grow/Grow.js +31 -30
  54. package/Hidden/Hidden.js +21 -22
  55. package/Hidden/HiddenCss.js +29 -29
  56. package/Hidden/withWidth.js +19 -19
  57. package/Icon/Icon.js +15 -16
  58. package/IconButton/IconButton.js +18 -20
  59. package/ImageList/ImageList.js +24 -24
  60. package/ImageListItem/ImageListItem.js +19 -20
  61. package/ImageListItemBar/ImageListItemBar.js +15 -17
  62. package/Input/Input.js +21 -20
  63. package/Input/inputClasses.js +4 -2
  64. package/InputAdornment/InputAdornment.js +16 -18
  65. package/InputBase/InputBase.js +90 -73
  66. package/InputLabel/InputLabel.js +20 -16
  67. package/LinearProgress/LinearProgress.js +21 -23
  68. package/Link/Link.js +27 -26
  69. package/List/List.js +15 -17
  70. package/ListItem/ListItem.js +58 -49
  71. package/ListItemAvatar/ListItemAvatar.js +10 -11
  72. package/ListItemButton/ListItemButton.js +23 -22
  73. package/ListItemIcon/ListItemIcon.js +10 -11
  74. package/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  75. package/ListItemText/ListItemText.js +25 -27
  76. package/ListSubheader/ListSubheader.js +15 -16
  77. package/Menu/Menu.js +34 -36
  78. package/MenuItem/MenuItem.js +28 -26
  79. package/MenuList/MenuList.js +17 -20
  80. package/MobileStepper/MobileStepper.js +21 -22
  81. package/Modal/Modal.js +47 -38
  82. package/NativeSelect/NativeSelect.js +26 -22
  83. package/NativeSelect/NativeSelectInput.js +15 -16
  84. package/OutlinedInput/NotchedOutline.js +14 -14
  85. package/OutlinedInput/OutlinedInput.js +46 -42
  86. package/OutlinedInput/outlinedInputClasses.js +4 -2
  87. package/Pagination/Pagination.js +36 -32
  88. package/PaginationItem/PaginationItem.js +31 -30
  89. package/Paper/Paper.js +26 -23
  90. package/Popover/Popover.js +71 -71
  91. package/Popper/Popper.js +25 -27
  92. package/Radio/Radio.js +24 -22
  93. package/Radio/RadioButtonIcon.js +3 -3
  94. package/RadioGroup/RadioGroup.js +15 -18
  95. package/Rating/Rating.js +54 -47
  96. package/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  97. package/Select/Select.js +63 -57
  98. package/Select/SelectInput.js +64 -59
  99. package/Skeleton/Skeleton.js +20 -21
  100. package/Slide/Slide.js +37 -33
  101. package/Slider/Slider.js +155 -106
  102. package/Snackbar/Snackbar.js +52 -45
  103. package/SnackbarContent/SnackbarContent.js +13 -15
  104. package/SpeedDial/SpeedDial.js +59 -60
  105. package/SpeedDialAction/SpeedDialAction.js +34 -33
  106. package/SpeedDialIcon/SpeedDialIcon.js +10 -12
  107. package/Step/Step.js +18 -20
  108. package/StepButton/StepButton.js +16 -17
  109. package/StepConnector/StepConnector.js +10 -12
  110. package/StepContent/StepContent.js +18 -20
  111. package/StepIcon/StepIcon.js +22 -22
  112. package/StepLabel/StepLabel.js +33 -30
  113. package/Stepper/Stepper.js +21 -22
  114. package/SvgIcon/SvgIcon.js +21 -21
  115. package/SwipeableDrawer/SwipeArea.js +15 -16
  116. package/SwipeableDrawer/SwipeableDrawer.js +49 -43
  117. package/Switch/Switch.js +23 -20
  118. package/Tab/Tab.js +32 -33
  119. package/TabScrollButton/TabScrollButton.js +27 -21
  120. package/Table/Table.js +17 -17
  121. package/TableBody/TableBody.js +11 -12
  122. package/TableCell/TableCell.js +19 -19
  123. package/TableContainer/TableContainer.js +11 -12
  124. package/TableFooter/TableFooter.js +11 -12
  125. package/TableHead/TableHead.js +11 -12
  126. package/TablePagination/TablePagination.js +56 -52
  127. package/TablePagination/TablePaginationActions.js +51 -38
  128. package/TableRow/TableRow.js +13 -14
  129. package/TableSortLabel/TableSortLabel.js +15 -17
  130. package/Tabs/ScrollbarSize.js +7 -9
  131. package/Tabs/Tabs.js +52 -49
  132. package/TextField/TextField.d.ts +58 -3
  133. package/TextField/TextField.js +137 -67
  134. package/ToggleButton/ToggleButton.js +30 -32
  135. package/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  136. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -0
  137. package/Toolbar/Toolbar.js +13 -14
  138. package/Tooltip/Tooltip.js +75 -60
  139. package/Typography/Typography.js +37 -35
  140. package/Zoom/Zoom.js +31 -30
  141. package/index.js +1 -1
  142. package/internal/SwitchBase.js +37 -37
  143. package/modern/Accordion/Accordion.js +33 -33
  144. package/modern/AccordionActions/AccordionActions.js +11 -12
  145. package/modern/AccordionDetails/AccordionDetails.js +7 -9
  146. package/modern/AccordionSummary/AccordionSummary.js +14 -16
  147. package/modern/Alert/Alert.js +56 -51
  148. package/modern/AlertTitle/AlertTitle.js +7 -9
  149. package/modern/AppBar/AppBar.js +34 -32
  150. package/modern/Autocomplete/Autocomplete.js +251 -162
  151. package/modern/Avatar/Avatar.js +41 -35
  152. package/modern/AvatarGroup/AvatarGroup.js +31 -31
  153. package/modern/Backdrop/Backdrop.js +33 -30
  154. package/modern/Badge/Badge.js +31 -30
  155. package/modern/BottomNavigation/BottomNavigation.js +15 -17
  156. package/modern/BottomNavigationAction/BottomNavigationAction.js +15 -18
  157. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  158. package/modern/Breadcrumbs/Breadcrumbs.js +19 -21
  159. package/modern/Button/Button.js +32 -29
  160. package/modern/ButtonBase/ButtonBase.js +43 -42
  161. package/modern/ButtonBase/TouchRipple.js +9 -12
  162. package/modern/ButtonGroup/ButtonGroup.js +23 -25
  163. package/modern/Card/Card.js +11 -12
  164. package/modern/CardActionArea/CardActionArea.js +9 -12
  165. package/modern/CardActions/CardActions.js +11 -12
  166. package/modern/CardContent/CardContent.js +11 -12
  167. package/modern/CardHeader/CardHeader.js +30 -31
  168. package/modern/CardMedia/CardMedia.js +19 -20
  169. package/modern/Checkbox/Checkbox.js +29 -26
  170. package/modern/Chip/Chip.js +38 -37
  171. package/modern/CircularProgress/CircularProgress.js +24 -23
  172. package/modern/Collapse/Collapse.js +44 -42
  173. package/modern/CssBaseline/CssBaseline.js +17 -14
  174. package/modern/Dialog/Dialog.js +41 -42
  175. package/modern/DialogActions/DialogActions.js +11 -12
  176. package/modern/DialogContent/DialogContent.js +11 -12
  177. package/modern/DialogContentText/DialogContentText.js +13 -11
  178. package/modern/DialogTitle/DialogTitle.js +8 -10
  179. package/modern/Divider/Divider.js +19 -21
  180. package/modern/Drawer/Drawer.js +50 -49
  181. package/modern/Fab/Fab.js +26 -23
  182. package/modern/Fade/Fade.js +31 -30
  183. package/modern/FilledInput/FilledInput.js +48 -44
  184. package/modern/FilledInput/filledInputClasses.js +4 -2
  185. package/modern/FormControl/FormControl.js +27 -25
  186. package/modern/FormControlLabel/FormControlLabel.js +32 -26
  187. package/modern/FormGroup/FormGroup.js +11 -12
  188. package/modern/FormHelperText/FormHelperText.js +26 -18
  189. package/modern/FormLabel/FormLabel.js +27 -19
  190. package/modern/GlobalStyles/GlobalStyles.js +3 -3
  191. package/modern/Grid/Grid.js +49 -41
  192. package/modern/Grow/Grow.js +31 -30
  193. package/modern/Hidden/Hidden.js +21 -22
  194. package/modern/Hidden/HiddenCss.js +29 -29
  195. package/modern/Hidden/withWidth.js +19 -19
  196. package/modern/Icon/Icon.js +15 -16
  197. package/modern/IconButton/IconButton.js +18 -20
  198. package/modern/ImageList/ImageList.js +24 -24
  199. package/modern/ImageListItem/ImageListItem.js +19 -20
  200. package/modern/ImageListItemBar/ImageListItemBar.js +15 -17
  201. package/modern/Input/Input.js +21 -20
  202. package/modern/Input/inputClasses.js +4 -2
  203. package/modern/InputAdornment/InputAdornment.js +16 -18
  204. package/modern/InputBase/InputBase.js +90 -73
  205. package/modern/InputLabel/InputLabel.js +20 -16
  206. package/modern/LinearProgress/LinearProgress.js +21 -23
  207. package/modern/Link/Link.js +27 -26
  208. package/modern/List/List.js +15 -17
  209. package/modern/ListItem/ListItem.js +58 -49
  210. package/modern/ListItemAvatar/ListItemAvatar.js +10 -11
  211. package/modern/ListItemButton/ListItemButton.js +23 -22
  212. package/modern/ListItemIcon/ListItemIcon.js +10 -11
  213. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  214. package/modern/ListItemText/ListItemText.js +25 -27
  215. package/modern/ListSubheader/ListSubheader.js +15 -16
  216. package/modern/Menu/Menu.js +34 -36
  217. package/modern/MenuItem/MenuItem.js +28 -26
  218. package/modern/MenuList/MenuList.js +17 -20
  219. package/modern/MobileStepper/MobileStepper.js +21 -22
  220. package/modern/Modal/Modal.js +47 -38
  221. package/modern/NativeSelect/NativeSelect.js +26 -22
  222. package/modern/NativeSelect/NativeSelectInput.js +15 -16
  223. package/modern/OutlinedInput/NotchedOutline.js +14 -14
  224. package/modern/OutlinedInput/OutlinedInput.js +46 -42
  225. package/modern/OutlinedInput/outlinedInputClasses.js +4 -2
  226. package/modern/Pagination/Pagination.js +36 -32
  227. package/modern/PaginationItem/PaginationItem.js +31 -30
  228. package/modern/Paper/Paper.js +26 -23
  229. package/modern/Popover/Popover.js +71 -71
  230. package/modern/Popper/Popper.js +25 -27
  231. package/modern/Radio/Radio.js +24 -22
  232. package/modern/Radio/RadioButtonIcon.js +3 -3
  233. package/modern/RadioGroup/RadioGroup.js +15 -18
  234. package/modern/Rating/Rating.js +54 -47
  235. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  236. package/modern/Select/Select.js +63 -57
  237. package/modern/Select/SelectInput.js +64 -59
  238. package/modern/Skeleton/Skeleton.js +20 -21
  239. package/modern/Slide/Slide.js +37 -33
  240. package/modern/Slider/Slider.js +155 -106
  241. package/modern/Snackbar/Snackbar.js +52 -45
  242. package/modern/SnackbarContent/SnackbarContent.js +13 -15
  243. package/modern/SpeedDial/SpeedDial.js +59 -60
  244. package/modern/SpeedDialAction/SpeedDialAction.js +34 -33
  245. package/modern/SpeedDialIcon/SpeedDialIcon.js +10 -12
  246. package/modern/Step/Step.js +18 -20
  247. package/modern/StepButton/StepButton.js +16 -17
  248. package/modern/StepConnector/StepConnector.js +10 -12
  249. package/modern/StepContent/StepContent.js +18 -20
  250. package/modern/StepIcon/StepIcon.js +22 -22
  251. package/modern/StepLabel/StepLabel.js +33 -30
  252. package/modern/Stepper/Stepper.js +21 -22
  253. package/modern/SvgIcon/SvgIcon.js +21 -21
  254. package/modern/SwipeableDrawer/SwipeArea.js +15 -16
  255. package/modern/SwipeableDrawer/SwipeableDrawer.js +49 -43
  256. package/modern/Switch/Switch.js +23 -20
  257. package/modern/Tab/Tab.js +32 -33
  258. package/modern/TabScrollButton/TabScrollButton.js +27 -21
  259. package/modern/Table/Table.js +17 -17
  260. package/modern/TableBody/TableBody.js +11 -12
  261. package/modern/TableCell/TableCell.js +19 -19
  262. package/modern/TableContainer/TableContainer.js +11 -12
  263. package/modern/TableFooter/TableFooter.js +11 -12
  264. package/modern/TableHead/TableHead.js +11 -12
  265. package/modern/TablePagination/TablePagination.js +56 -52
  266. package/modern/TablePagination/TablePaginationActions.js +51 -38
  267. package/modern/TableRow/TableRow.js +13 -14
  268. package/modern/TableSortLabel/TableSortLabel.js +15 -17
  269. package/modern/Tabs/ScrollbarSize.js +7 -9
  270. package/modern/Tabs/Tabs.js +52 -49
  271. package/modern/TextField/TextField.js +137 -67
  272. package/modern/ToggleButton/ToggleButton.js +30 -32
  273. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  274. package/modern/Toolbar/Toolbar.js +13 -14
  275. package/modern/Tooltip/Tooltip.js +75 -60
  276. package/modern/Typography/Typography.js +37 -35
  277. package/modern/Zoom/Zoom.js +31 -30
  278. package/modern/index.js +1 -1
  279. package/modern/internal/SwitchBase.js +37 -37
  280. package/modern/styles/CssVarsProvider.js +3 -3
  281. package/modern/styles/ThemeProvider.js +7 -10
  282. package/modern/styles/adaptV4Theme.js +31 -31
  283. package/modern/styles/createMixins.js +4 -4
  284. package/modern/styles/createPalette.js +16 -13
  285. package/modern/styles/createTheme.js +16 -11
  286. package/modern/styles/createTransitions.js +17 -14
  287. package/modern/styles/createTypography.js +31 -29
  288. package/modern/styles/experimental_extendTheme.js +47 -37
  289. package/modern/styles/responsiveFontSizes.js +17 -11
  290. package/modern/usePagination/usePagination.js +18 -20
  291. package/modern/useScrollTrigger/useScrollTrigger.js +8 -10
  292. package/modern/utils/createSvgIcon.js +4 -5
  293. package/modern/utils/useSlot.js +41 -40
  294. package/node/Accordion/Accordion.js +33 -33
  295. package/node/AccordionActions/AccordionActions.js +11 -12
  296. package/node/AccordionDetails/AccordionDetails.js +7 -9
  297. package/node/AccordionSummary/AccordionSummary.js +14 -16
  298. package/node/Alert/Alert.js +56 -51
  299. package/node/AlertTitle/AlertTitle.js +7 -9
  300. package/node/AppBar/AppBar.js +125 -129
  301. package/node/Autocomplete/Autocomplete.js +252 -164
  302. package/node/Avatar/Avatar.js +41 -35
  303. package/node/AvatarGroup/AvatarGroup.js +31 -31
  304. package/node/Backdrop/Backdrop.js +33 -30
  305. package/node/Badge/Badge.js +179 -184
  306. package/node/BottomNavigation/BottomNavigation.js +15 -17
  307. package/node/BottomNavigationAction/BottomNavigationAction.js +15 -18
  308. package/node/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  309. package/node/Breadcrumbs/Breadcrumbs.js +19 -21
  310. package/node/Button/Button.js +32 -29
  311. package/node/ButtonBase/ButtonBase.js +43 -42
  312. package/node/ButtonBase/TouchRipple.js +9 -12
  313. package/node/ButtonGroup/ButtonGroup.js +23 -25
  314. package/node/Card/Card.js +11 -12
  315. package/node/CardActionArea/CardActionArea.js +9 -12
  316. package/node/CardActions/CardActions.js +11 -12
  317. package/node/CardContent/CardContent.js +11 -12
  318. package/node/CardHeader/CardHeader.js +30 -31
  319. package/node/CardMedia/CardMedia.js +19 -20
  320. package/node/Checkbox/Checkbox.js +29 -26
  321. package/node/Chip/Chip.js +38 -37
  322. package/node/CircularProgress/CircularProgress.js +24 -23
  323. package/node/Collapse/Collapse.js +44 -42
  324. package/node/CssBaseline/CssBaseline.js +17 -14
  325. package/node/Dialog/Dialog.js +41 -42
  326. package/node/DialogActions/DialogActions.js +11 -12
  327. package/node/DialogContent/DialogContent.js +11 -12
  328. package/node/DialogContentText/DialogContentText.js +13 -11
  329. package/node/DialogTitle/DialogTitle.js +8 -10
  330. package/node/Divider/Divider.js +19 -21
  331. package/node/Drawer/Drawer.js +50 -49
  332. package/node/Fab/Fab.js +27 -24
  333. package/node/Fade/Fade.js +31 -30
  334. package/node/FilledInput/FilledInput.js +48 -44
  335. package/node/FilledInput/filledInputClasses.js +4 -2
  336. package/node/FormControl/FormControl.js +27 -25
  337. package/node/FormControlLabel/FormControlLabel.js +32 -26
  338. package/node/FormGroup/FormGroup.js +11 -12
  339. package/node/FormHelperText/FormHelperText.js +26 -18
  340. package/node/FormLabel/FormLabel.js +27 -19
  341. package/node/GlobalStyles/GlobalStyles.js +3 -3
  342. package/node/Grid/Grid.js +49 -41
  343. package/node/Grow/Grow.js +31 -30
  344. package/node/Hidden/Hidden.js +24 -26
  345. package/node/Hidden/HiddenCss.js +29 -29
  346. package/node/Hidden/withWidth.js +19 -19
  347. package/node/Icon/Icon.js +15 -16
  348. package/node/IconButton/IconButton.js +18 -20
  349. package/node/ImageList/ImageList.js +24 -24
  350. package/node/ImageListItem/ImageListItem.js +19 -20
  351. package/node/ImageListItemBar/ImageListItemBar.js +15 -17
  352. package/node/Input/Input.js +21 -20
  353. package/node/Input/inputClasses.js +4 -2
  354. package/node/InputAdornment/InputAdornment.js +16 -18
  355. package/node/InputBase/InputBase.js +90 -73
  356. package/node/InputLabel/InputLabel.js +20 -16
  357. package/node/LinearProgress/LinearProgress.js +21 -23
  358. package/node/Link/Link.js +27 -26
  359. package/node/List/List.js +15 -17
  360. package/node/ListItem/ListItem.js +58 -49
  361. package/node/ListItemAvatar/ListItemAvatar.js +10 -11
  362. package/node/ListItemButton/ListItemButton.js +23 -22
  363. package/node/ListItemIcon/ListItemIcon.js +10 -11
  364. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  365. package/node/ListItemText/ListItemText.js +25 -27
  366. package/node/ListSubheader/ListSubheader.js +15 -16
  367. package/node/Menu/Menu.js +34 -36
  368. package/node/MenuItem/MenuItem.js +28 -26
  369. package/node/MenuList/MenuList.js +17 -20
  370. package/node/MobileStepper/MobileStepper.js +21 -22
  371. package/node/Modal/Modal.js +47 -38
  372. package/node/NativeSelect/NativeSelect.js +26 -22
  373. package/node/NativeSelect/NativeSelectInput.js +15 -16
  374. package/node/OutlinedInput/NotchedOutline.js +14 -14
  375. package/node/OutlinedInput/OutlinedInput.js +46 -42
  376. package/node/OutlinedInput/outlinedInputClasses.js +4 -2
  377. package/node/Pagination/Pagination.js +36 -32
  378. package/node/PaginationItem/PaginationItem.js +31 -30
  379. package/node/Paper/Paper.js +26 -23
  380. package/node/Popover/Popover.js +71 -71
  381. package/node/Popper/Popper.js +25 -27
  382. package/node/Radio/Radio.js +24 -22
  383. package/node/Radio/RadioButtonIcon.js +3 -3
  384. package/node/RadioGroup/RadioGroup.js +15 -18
  385. package/node/Rating/Rating.js +54 -47
  386. package/node/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  387. package/node/Select/Select.js +63 -57
  388. package/node/Select/SelectInput.js +64 -59
  389. package/node/Skeleton/Skeleton.js +20 -21
  390. package/node/Slide/Slide.js +39 -34
  391. package/node/Slider/Slider.js +298 -265
  392. package/node/Snackbar/Snackbar.js +52 -45
  393. package/node/SnackbarContent/SnackbarContent.js +13 -15
  394. package/node/SpeedDial/SpeedDial.js +59 -60
  395. package/node/SpeedDialAction/SpeedDialAction.js +34 -33
  396. package/node/SpeedDialIcon/SpeedDialIcon.js +10 -12
  397. package/node/Step/Step.js +18 -20
  398. package/node/StepButton/StepButton.js +16 -17
  399. package/node/StepConnector/StepConnector.js +10 -12
  400. package/node/StepContent/StepContent.js +18 -20
  401. package/node/StepIcon/StepIcon.js +22 -22
  402. package/node/StepLabel/StepLabel.js +33 -30
  403. package/node/Stepper/Stepper.js +21 -22
  404. package/node/SvgIcon/SvgIcon.js +21 -21
  405. package/node/SwipeableDrawer/SwipeArea.js +15 -16
  406. package/node/SwipeableDrawer/SwipeableDrawer.js +51 -44
  407. package/node/Switch/Switch.js +23 -20
  408. package/node/Tab/Tab.js +32 -33
  409. package/node/TabScrollButton/TabScrollButton.js +27 -21
  410. package/node/Table/Table.js +17 -17
  411. package/node/TableBody/TableBody.js +11 -12
  412. package/node/TableCell/TableCell.js +19 -19
  413. package/node/TableContainer/TableContainer.js +11 -12
  414. package/node/TableFooter/TableFooter.js +11 -12
  415. package/node/TableHead/TableHead.js +11 -12
  416. package/node/TablePagination/TablePagination.js +56 -52
  417. package/node/TablePagination/TablePaginationActions.js +54 -42
  418. package/node/TableRow/TableRow.js +13 -14
  419. package/node/TableSortLabel/TableSortLabel.js +15 -17
  420. package/node/Tabs/ScrollbarSize.js +7 -9
  421. package/node/Tabs/Tabs.js +52 -49
  422. package/node/TextField/TextField.js +137 -67
  423. package/node/ToggleButton/ToggleButton.js +30 -32
  424. package/node/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  425. package/node/Toolbar/Toolbar.js +13 -14
  426. package/node/Tooltip/Tooltip.js +75 -60
  427. package/node/Typography/Typography.js +37 -35
  428. package/node/Zoom/Zoom.js +31 -30
  429. package/node/index.js +1 -1
  430. package/node/internal/SwitchBase.js +37 -37
  431. package/node/styles/CssVarsProvider.js +3 -3
  432. package/node/styles/ThemeProvider.js +7 -10
  433. package/node/styles/adaptV4Theme.js +31 -32
  434. package/node/styles/createMixins.js +4 -5
  435. package/node/styles/createPalette.js +16 -13
  436. package/node/styles/createTheme.js +16 -11
  437. package/node/styles/createTransitions.js +17 -15
  438. package/node/styles/createTypography.js +31 -29
  439. package/node/styles/experimental_extendTheme.js +47 -37
  440. package/node/styles/responsiveFontSizes.js +17 -11
  441. package/node/usePagination/usePagination.js +18 -20
  442. package/node/useScrollTrigger/useScrollTrigger.js +8 -11
  443. package/node/utils/createSvgIcon.js +4 -5
  444. package/node/utils/useSlot.js +41 -40
  445. package/package.json +6 -6
  446. package/styles/CssVarsProvider.js +3 -3
  447. package/styles/ThemeProvider.js +7 -10
  448. package/styles/adaptV4Theme.js +31 -31
  449. package/styles/createMixins.js +4 -4
  450. package/styles/createPalette.js +16 -13
  451. package/styles/createTheme.js +16 -11
  452. package/styles/createTransitions.js +17 -14
  453. package/styles/createTypography.js +31 -29
  454. package/styles/experimental_extendTheme.js +47 -37
  455. package/styles/responsiveFontSizes.js +17 -11
  456. package/usePagination/usePagination.d.ts +1 -1
  457. package/usePagination/usePagination.js +18 -20
  458. package/useScrollTrigger/useScrollTrigger.js +8 -10
  459. package/utils/createSvgIcon.js +4 -5
  460. package/utils/useSlot.js +41 -40
  461. package/umd/material-ui.development.js +0 -54172
  462. package/umd/material-ui.production.min.js +0 -25
package/Slider/Slider.js CHANGED
@@ -1,8 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
5
- 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"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import clsx from 'clsx';
@@ -55,7 +52,7 @@ export const SliderRoot = styled('span', {
55
52
  transition: 'none'
56
53
  }
57
54
  },
58
- variants: [...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
55
+ variants: [...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
59
56
  props: {
60
57
  color
61
58
  },
@@ -211,22 +208,26 @@ export const SliderTrack = styled('span', {
211
208
  style: {
212
209
  display: 'none'
213
210
  }
214
- }, ...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
211
+ }, ...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
215
212
  props: {
216
213
  color,
217
214
  track: 'inverted'
218
215
  },
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
- })))
216
+ style: {
217
+ ...(theme.vars ? {
218
+ backgroundColor: theme.vars.palette.Slider[`${color}Track`],
219
+ borderColor: theme.vars.palette.Slider[`${color}Track`]
220
+ } : {
221
+ backgroundColor: lighten(theme.palette[color].main, 0.62),
222
+ borderColor: lighten(theme.palette[color].main, 0.62),
223
+ ...theme.applyStyles('dark', {
224
+ backgroundColor: darken(theme.palette[color].main, 0.5)
225
+ }),
226
+ ...theme.applyStyles('dark', {
227
+ borderColor: darken(theme.palette[color].main, 0.5)
228
+ })
229
+ })
230
+ }
230
231
  }))]
231
232
  };
232
233
  });
@@ -306,25 +307,28 @@ export const SliderThumb = styled('span', {
306
307
  left: '50%',
307
308
  transform: 'translate(-50%, 50%)'
308
309
  }
309
- }, ...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
310
+ }, ...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
310
311
  props: {
311
312
  color
312
313
  },
313
314
  style: {
314
- [`&:hover, &.${sliderClasses.focusVisible}`]: _extends({}, theme.vars ? {
315
- boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
316
- } : {
317
- boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
318
- }, {
315
+ [`&:hover, &.${sliderClasses.focusVisible}`]: {
316
+ ...(theme.vars ? {
317
+ boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
318
+ } : {
319
+ boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
320
+ }),
319
321
  '@media (hover: none)': {
320
322
  boxShadow: 'none'
321
323
  }
322
- }),
323
- [`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
324
- boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
325
- } : {
326
- boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
327
- })
324
+ },
325
+ [`&.${sliderClasses.active}`]: {
326
+ ...(theme.vars ? {
327
+ boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
328
+ } : {
329
+ boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
330
+ })
331
+ }
328
332
  }
329
333
  }))]
330
334
  }));
@@ -334,10 +338,10 @@ export const SliderValueLabel = styled(BaseSliderValueLabel, {
334
338
  overridesResolver: (props, styles) => styles.valueLabel
335
339
  })(({
336
340
  theme
337
- }) => _extends({
341
+ }) => ({
338
342
  zIndex: 1,
339
- whiteSpace: 'nowrap'
340
- }, theme.typography.body2, {
343
+ whiteSpace: 'nowrap',
344
+ ...theme.typography.body2,
341
345
  fontWeight: 500,
342
346
  transition: theme.transitions.create(['transform'], {
343
347
  duration: theme.transitions.duration.shortest
@@ -464,7 +468,8 @@ export const SliderMarkLabel = styled('span', {
464
468
  overridesResolver: (props, styles) => styles.markLabel
465
469
  })(({
466
470
  theme
467
- }) => _extends({}, theme.typography.body2, {
471
+ }) => ({
472
+ ...theme.typography.body2,
468
473
  color: (theme.vars || theme).palette.text.secondary,
469
474
  position: 'absolute',
470
475
  whiteSpace: 'nowrap',
@@ -536,36 +541,42 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
536
541
  });
537
542
  const isRtl = useRtl();
538
543
  const {
539
- 'aria-label': ariaLabel,
540
- 'aria-valuetext': ariaValuetext,
541
- 'aria-labelledby': ariaLabelledby,
542
- // eslint-disable-next-line react/prop-types
543
- component = 'span',
544
- components = {},
545
- componentsProps = {},
546
- color = 'primary',
547
- classes: classesProp,
548
- className,
549
- disableSwap = false,
550
- disabled = false,
551
- getAriaLabel,
552
- getAriaValueText,
553
- marks: marksProp = false,
554
- max = 100,
555
- min = 0,
556
- orientation = 'horizontal',
557
- shiftStep = 10,
558
- size = 'medium',
559
- step = 1,
560
- scale = Identity,
561
- slotProps,
562
- slots,
563
- track = 'normal',
564
- valueLabelDisplay = 'off',
565
- valueLabelFormat = Identity
566
- } = props,
567
- other = _objectWithoutPropertiesLoose(props, _excluded);
568
- const ownerState = _extends({}, props, {
544
+ 'aria-label': ariaLabel,
545
+ 'aria-valuetext': ariaValuetext,
546
+ 'aria-labelledby': ariaLabelledby,
547
+ // eslint-disable-next-line react/prop-types
548
+ component = 'span',
549
+ components = {},
550
+ componentsProps = {},
551
+ color = 'primary',
552
+ classes: classesProp,
553
+ className,
554
+ disableSwap = false,
555
+ disabled = false,
556
+ getAriaLabel,
557
+ getAriaValueText,
558
+ marks: marksProp = false,
559
+ max = 100,
560
+ min = 0,
561
+ name,
562
+ onChange,
563
+ onChangeCommitted,
564
+ orientation = 'horizontal',
565
+ shiftStep = 10,
566
+ size = 'medium',
567
+ step = 1,
568
+ scale = Identity,
569
+ slotProps,
570
+ slots,
571
+ tabIndex,
572
+ track = 'normal',
573
+ value: valueProp,
574
+ valueLabelDisplay = 'off',
575
+ valueLabelFormat = Identity,
576
+ ...other
577
+ } = props;
578
+ const ownerState = {
579
+ ...props,
569
580
  isRtl,
570
581
  max,
571
582
  min,
@@ -582,7 +593,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
582
593
  track,
583
594
  valueLabelDisplay,
584
595
  valueLabelFormat
585
- });
596
+ };
586
597
  const {
587
598
  axisProps,
588
599
  getRootProps,
@@ -599,9 +610,10 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
599
610
  trackOffset,
600
611
  trackLeap,
601
612
  getThumbStyle
602
- } = useSlider(_extends({}, ownerState, {
613
+ } = useSlider({
614
+ ...ownerState,
603
615
  rootRef: ref
604
- }));
616
+ });
605
617
  ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
606
618
  ownerState.dragging = dragging;
607
619
  ownerState.focusedThumbIndex = focusedThumbIndex;
@@ -629,10 +641,15 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
629
641
  getSlotProps: getRootProps,
630
642
  externalSlotProps: rootSlotProps,
631
643
  externalForwardedProps: other,
632
- additionalProps: _extends({}, shouldSpreadAdditionalProps(RootSlot) && {
633
- as: component
634
- }),
635
- ownerState: _extends({}, ownerState, rootSlotProps?.ownerState),
644
+ additionalProps: {
645
+ ...(shouldSpreadAdditionalProps(RootSlot) && {
646
+ as: component
647
+ })
648
+ },
649
+ ownerState: {
650
+ ...ownerState,
651
+ ...rootSlotProps?.ownerState
652
+ },
636
653
  className: [classes.root, className]
637
654
  });
638
655
  const railProps = useSlotProps({
@@ -645,22 +662,34 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
645
662
  elementType: TrackSlot,
646
663
  externalSlotProps: trackSlotProps,
647
664
  additionalProps: {
648
- style: _extends({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap))
665
+ style: {
666
+ ...axisProps[axis].offset(trackOffset),
667
+ ...axisProps[axis].leap(trackLeap)
668
+ }
669
+ },
670
+ ownerState: {
671
+ ...ownerState,
672
+ ...trackSlotProps?.ownerState
649
673
  },
650
- ownerState: _extends({}, ownerState, trackSlotProps?.ownerState),
651
674
  className: classes.track
652
675
  });
653
676
  const thumbProps = useSlotProps({
654
677
  elementType: ThumbSlot,
655
678
  getSlotProps: getThumbProps,
656
679
  externalSlotProps: thumbSlotProps,
657
- ownerState: _extends({}, ownerState, thumbSlotProps?.ownerState),
680
+ ownerState: {
681
+ ...ownerState,
682
+ ...thumbSlotProps?.ownerState
683
+ },
658
684
  className: classes.thumb
659
685
  });
660
686
  const valueLabelProps = useSlotProps({
661
687
  elementType: ValueLabelSlot,
662
688
  externalSlotProps: valueLabelSlotProps,
663
- ownerState: _extends({}, ownerState, valueLabelSlotProps?.ownerState),
689
+ ownerState: {
690
+ ...ownerState,
691
+ ...valueLabelSlotProps?.ownerState
692
+ },
664
693
  className: classes.valueLabel
665
694
  });
666
695
  const markProps = useSlotProps({
@@ -681,8 +710,13 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
681
710
  externalSlotProps: inputSlotProps,
682
711
  ownerState
683
712
  });
684
- return /*#__PURE__*/_jsxs(RootSlot, _extends({}, rootProps, {
685
- children: [/*#__PURE__*/_jsx(RailSlot, _extends({}, railProps)), /*#__PURE__*/_jsx(TrackSlot, _extends({}, trackProps)), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
713
+ return /*#__PURE__*/_jsxs(RootSlot, {
714
+ ...rootProps,
715
+ children: [/*#__PURE__*/_jsx(RailSlot, {
716
+ ...railProps
717
+ }), /*#__PURE__*/_jsx(TrackSlot, {
718
+ ...trackProps
719
+ }), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
686
720
  const percent = valueToPercent(mark.value, min, max);
687
721
  const style = axisProps[axis].offset(percent);
688
722
  let markActive;
@@ -692,23 +726,31 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
692
726
  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]);
693
727
  }
694
728
  return /*#__PURE__*/_jsxs(React.Fragment, {
695
- children: [/*#__PURE__*/_jsx(MarkSlot, _extends({
696
- "data-index": index
697
- }, markProps, !isHostComponent(MarkSlot) && {
698
- markActive
699
- }, {
700
- style: _extends({}, style, markProps.style),
729
+ children: [/*#__PURE__*/_jsx(MarkSlot, {
730
+ "data-index": index,
731
+ ...markProps,
732
+ ...(!isHostComponent(MarkSlot) && {
733
+ markActive
734
+ }),
735
+ style: {
736
+ ...style,
737
+ ...markProps.style
738
+ },
701
739
  className: clsx(markProps.className, markActive && classes.markActive)
702
- })), mark.label != null ? /*#__PURE__*/_jsx(MarkLabelSlot, _extends({
740
+ }), mark.label != null ? /*#__PURE__*/_jsx(MarkLabelSlot, {
703
741
  "aria-hidden": true,
704
- "data-index": index
705
- }, markLabelProps, !isHostComponent(MarkLabelSlot) && {
706
- markLabelActive: markActive
707
- }, {
708
- style: _extends({}, style, markLabelProps.style),
742
+ "data-index": index,
743
+ ...markLabelProps,
744
+ ...(!isHostComponent(MarkLabelSlot) && {
745
+ markLabelActive: markActive
746
+ }),
747
+ style: {
748
+ ...style,
749
+ ...markLabelProps.style
750
+ },
709
751
  className: clsx(classes.markLabel, markLabelProps.className, markActive && classes.markLabelActive),
710
752
  children: mark.label
711
- })) : null]
753
+ }) : null]
712
754
  }, index);
713
755
  }), values.map((value, index) => {
714
756
  const percent = valueToPercent(value, min, max);
@@ -717,32 +759,39 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
717
759
  return (
718
760
  /*#__PURE__*/
719
761
  /* 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. */
720
- _jsx(ValueLabelComponent, _extends({}, !isHostComponent(ValueLabelComponent) && {
721
- valueLabelFormat,
722
- valueLabelDisplay,
723
- value: typeof valueLabelFormat === 'function' ? valueLabelFormat(scale(value), index) : valueLabelFormat,
724
- index,
725
- open: open === index || active === index || valueLabelDisplay === 'on',
726
- disabled
727
- }, valueLabelProps, {
728
- children: /*#__PURE__*/_jsx(ThumbSlot, _extends({
729
- "data-index": index
730
- }, thumbProps, {
762
+ _jsx(ValueLabelComponent, {
763
+ ...(!isHostComponent(ValueLabelComponent) && {
764
+ valueLabelFormat,
765
+ valueLabelDisplay,
766
+ value: typeof valueLabelFormat === 'function' ? valueLabelFormat(scale(value), index) : valueLabelFormat,
767
+ index,
768
+ open: open === index || active === index || valueLabelDisplay === 'on',
769
+ disabled
770
+ }),
771
+ ...valueLabelProps,
772
+ children: /*#__PURE__*/_jsx(ThumbSlot, {
773
+ "data-index": index,
774
+ ...thumbProps,
731
775
  className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
732
- style: _extends({}, style, getThumbStyle(index), thumbProps.style),
733
- children: /*#__PURE__*/_jsx(InputSlot, _extends({
776
+ style: {
777
+ ...style,
778
+ ...getThumbStyle(index),
779
+ ...thumbProps.style
780
+ },
781
+ children: /*#__PURE__*/_jsx(InputSlot, {
734
782
  "data-index": index,
735
783
  "aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
736
784
  "aria-valuenow": scale(value),
737
785
  "aria-labelledby": ariaLabelledby,
738
786
  "aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
739
- value: values[index]
740
- }, inputSliderProps))
741
- }))
742
- }), index)
787
+ value: values[index],
788
+ ...inputSliderProps
789
+ })
790
+ })
791
+ }, index)
743
792
  );
744
793
  })]
745
- }));
794
+ });
746
795
  });
747
796
  process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */ = {
748
797
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,9 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["onEnter", "onExited"],
6
- _excluded2 = ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"];
7
3
  import * as React from 'react';
8
4
  import PropTypes from 'prop-types';
9
5
  import { useSlotProps } from '@mui/base/utils';
@@ -113,32 +109,39 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
113
109
  exit: theme.transitions.duration.leavingScreen
114
110
  };
115
111
  const {
116
- action,
117
- anchorOrigin: {
118
- vertical,
119
- horizontal
120
- } = {
121
- vertical: 'bottom',
122
- horizontal: 'left'
123
- },
124
- autoHideDuration = null,
125
- children,
126
- className,
127
- ClickAwayListenerProps,
128
- ContentProps,
129
- disableWindowBlurListener = false,
130
- message,
131
- open,
132
- TransitionComponent = Grow,
133
- transitionDuration = defaultTransitionDuration,
134
- TransitionProps: {
135
- onEnter,
136
- onExited
137
- } = {}
138
- } = props,
139
- TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded),
140
- other = _objectWithoutPropertiesLoose(props, _excluded2);
141
- const ownerState = _extends({}, props, {
112
+ action,
113
+ anchorOrigin: {
114
+ vertical,
115
+ horizontal
116
+ } = {
117
+ vertical: 'bottom',
118
+ horizontal: 'left'
119
+ },
120
+ autoHideDuration = null,
121
+ children,
122
+ className,
123
+ ClickAwayListenerProps,
124
+ ContentProps,
125
+ disableWindowBlurListener = false,
126
+ message,
127
+ onBlur,
128
+ onClose,
129
+ onFocus,
130
+ onMouseEnter,
131
+ onMouseLeave,
132
+ open,
133
+ resumeHideDuration,
134
+ TransitionComponent = Grow,
135
+ transitionDuration = defaultTransitionDuration,
136
+ TransitionProps: {
137
+ onEnter,
138
+ onExited,
139
+ ...TransitionProps
140
+ } = {},
141
+ ...other
142
+ } = props;
143
+ const ownerState = {
144
+ ...props,
142
145
  anchorOrigin: {
143
146
  vertical,
144
147
  horizontal
@@ -147,12 +150,14 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
147
150
  disableWindowBlurListener,
148
151
  TransitionComponent,
149
152
  transitionDuration
150
- });
153
+ };
151
154
  const classes = useUtilityClasses(ownerState);
152
155
  const {
153
156
  getRootProps,
154
157
  onClickAway
155
- } = useSnackbar(_extends({}, ownerState));
158
+ } = useSnackbar({
159
+ ...ownerState
160
+ });
156
161
  const [exited, setExited] = React.useState(true);
157
162
  const rootProps = useSlotProps({
158
163
  elementType: SnackbarRoot,
@@ -181,25 +186,27 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
181
186
  if (!open && exited) {
182
187
  return null;
183
188
  }
184
- return /*#__PURE__*/_jsx(ClickAwayListener, _extends({
185
- onClickAway: onClickAway
186
- }, ClickAwayListenerProps, {
187
- children: /*#__PURE__*/_jsx(SnackbarRoot, _extends({}, rootProps, {
188
- children: /*#__PURE__*/_jsx(TransitionComponent, _extends({
189
+ return /*#__PURE__*/_jsx(ClickAwayListener, {
190
+ onClickAway: onClickAway,
191
+ ...ClickAwayListenerProps,
192
+ children: /*#__PURE__*/_jsx(SnackbarRoot, {
193
+ ...rootProps,
194
+ children: /*#__PURE__*/_jsx(TransitionComponent, {
189
195
  appear: true,
190
196
  in: open,
191
197
  timeout: transitionDuration,
192
198
  direction: vertical === 'top' ? 'down' : 'up',
193
199
  onEnter: handleEnter,
194
- onExited: handleExited
195
- }, TransitionProps, {
196
- children: children || /*#__PURE__*/_jsx(SnackbarContent, _extends({
200
+ onExited: handleExited,
201
+ ...TransitionProps,
202
+ children: children || /*#__PURE__*/_jsx(SnackbarContent, {
197
203
  message: message,
198
- action: action
199
- }, ContentProps))
200
- }))
201
- }))
202
- }));
204
+ action: action,
205
+ ...ContentProps
206
+ })
207
+ })
208
+ })
209
+ });
203
210
  });
204
211
  process.env.NODE_ENV !== "production" ? Snackbar.propTypes /* remove-proptypes */ = {
205
212
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,8 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["action", "className", "message", "role"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import clsx from 'clsx';
@@ -33,7 +30,8 @@ const SnackbarContentRoot = styled(Paper, {
33
30
  }) => {
34
31
  const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
35
32
  const backgroundColor = emphasize(theme.palette.background.default, emphasis);
36
- return _extends({}, theme.typography.body2, {
33
+ return {
34
+ ...theme.typography.body2,
37
35
  color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),
38
36
  backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
39
37
  display: 'flex',
@@ -46,7 +44,7 @@ const SnackbarContentRoot = styled(Paper, {
46
44
  flexGrow: 'initial',
47
45
  minWidth: 288
48
46
  }
49
- });
47
+ };
50
48
  });
51
49
  const SnackbarContentMessage = styled('div', {
52
50
  name: 'MuiSnackbarContent',
@@ -72,22 +70,22 @@ const SnackbarContent = /*#__PURE__*/React.forwardRef(function SnackbarContent(i
72
70
  name: 'MuiSnackbarContent'
73
71
  });
74
72
  const {
75
- action,
76
- className,
77
- message,
78
- role = 'alert'
79
- } = props,
80
- other = _objectWithoutPropertiesLoose(props, _excluded);
73
+ action,
74
+ className,
75
+ message,
76
+ role = 'alert',
77
+ ...other
78
+ } = props;
81
79
  const ownerState = props;
82
80
  const classes = useUtilityClasses(ownerState);
83
- return /*#__PURE__*/_jsxs(SnackbarContentRoot, _extends({
81
+ return /*#__PURE__*/_jsxs(SnackbarContentRoot, {
84
82
  role: role,
85
83
  square: true,
86
84
  elevation: 6,
87
85
  className: clsx(classes.root, className),
88
86
  ownerState: ownerState,
89
- ref: ref
90
- }, other, {
87
+ ref: ref,
88
+ ...other,
91
89
  children: [/*#__PURE__*/_jsx(SnackbarContentMessage, {
92
90
  className: classes.message,
93
91
  ownerState: ownerState,
@@ -97,7 +95,7 @@ const SnackbarContent = /*#__PURE__*/React.forwardRef(function SnackbarContent(i
97
95
  ownerState: ownerState,
98
96
  children: action
99
97
  }) : null]
100
- }));
98
+ });
101
99
  });
102
100
  process.env.NODE_ENV !== "production" ? SnackbarContent.propTypes /* remove-proptypes */ = {
103
101
  // ┌────────────────────────────── Warning ──────────────────────────────┐