@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/Avatar/Avatar.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 = ["alt", "children", "className", "component", "slots", "slotProps", "imgProps", "sizes", "src", "srcSet", "variant"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import clsx from 'clsx';
@@ -69,15 +66,17 @@ const AvatarRoot = styled('div', {
69
66
  props: {
70
67
  colorDefault: true
71
68
  },
72
- style: _extends({
73
- color: (theme.vars || theme).palette.background.default
74
- }, theme.vars ? {
75
- backgroundColor: theme.vars.palette.Avatar.defaultBg
76
- } : _extends({
77
- backgroundColor: theme.palette.grey[400]
78
- }, theme.applyStyles('dark', {
79
- backgroundColor: theme.palette.grey[600]
80
- })))
69
+ style: {
70
+ color: (theme.vars || theme).palette.background.default,
71
+ ...(theme.vars ? {
72
+ backgroundColor: theme.vars.palette.Avatar.defaultBg
73
+ } : {
74
+ backgroundColor: theme.palette.grey[400],
75
+ ...theme.applyStyles('dark', {
76
+ backgroundColor: theme.palette.grey[600]
77
+ })
78
+ })
79
+ }
81
80
  }]
82
81
  }));
83
82
  const AvatarImg = styled('img', {
@@ -147,33 +146,35 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
147
146
  name: 'MuiAvatar'
148
147
  });
149
148
  const {
150
- alt,
151
- children: childrenProp,
152
- className,
153
- component = 'div',
154
- slots = {},
155
- slotProps = {},
156
- imgProps,
157
- sizes,
158
- src,
159
- srcSet,
160
- variant = 'circular'
161
- } = props,
162
- other = _objectWithoutPropertiesLoose(props, _excluded);
149
+ alt,
150
+ children: childrenProp,
151
+ className,
152
+ component = 'div',
153
+ slots = {},
154
+ slotProps = {},
155
+ imgProps,
156
+ sizes,
157
+ src,
158
+ srcSet,
159
+ variant = 'circular',
160
+ ...other
161
+ } = props;
163
162
  let children = null;
164
163
 
165
164
  // Use a hook instead of onError on the img element to support server-side rendering.
166
- const loaded = useLoaded(_extends({}, imgProps, {
165
+ const loaded = useLoaded({
166
+ ...imgProps,
167
167
  src,
168
168
  srcSet
169
- }));
169
+ });
170
170
  const hasImg = src || srcSet;
171
171
  const hasImgNotFailing = hasImg && loaded !== 'error';
172
- const ownerState = _extends({}, props, {
172
+ const ownerState = {
173
+ ...props,
173
174
  colorDefault: !hasImgNotFailing,
174
175
  component,
175
176
  variant
176
- });
177
+ };
177
178
  const classes = useUtilityClasses(ownerState);
178
179
  const [ImgSlot, imgSlotProps] = useSlot('img', {
179
180
  className: classes.img,
@@ -181,7 +182,10 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
181
182
  externalForwardedProps: {
182
183
  slots,
183
184
  slotProps: {
184
- img: _extends({}, imgProps, slotProps.img)
185
+ img: {
186
+ ...imgProps,
187
+ ...slotProps.img
188
+ }
185
189
  }
186
190
  },
187
191
  additionalProps: {
@@ -193,7 +197,9 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
193
197
  ownerState
194
198
  });
195
199
  if (hasImgNotFailing) {
196
- children = /*#__PURE__*/_jsx(ImgSlot, _extends({}, imgSlotProps));
200
+ children = /*#__PURE__*/_jsx(ImgSlot, {
201
+ ...imgSlotProps
202
+ });
197
203
  // We only render valid children, non valid children are rendered with a fallback
198
204
  // We consider that invalid children are all falsy values, except 0, which is valid.
199
205
  } else if (!!childrenProp || childrenProp === 0) {
@@ -206,14 +212,14 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
206
212
  className: classes.fallback
207
213
  });
208
214
  }
209
- return /*#__PURE__*/_jsx(AvatarRoot, _extends({
215
+ return /*#__PURE__*/_jsx(AvatarRoot, {
210
216
  as: component,
211
217
  ownerState: ownerState,
212
218
  className: clsx(classes.root, className),
213
- ref: ref
214
- }, other, {
219
+ ref: ref,
220
+ ...other,
215
221
  children: children
216
- }));
222
+ });
217
223
  });
218
224
  process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */ = {
219
225
  // ┌────────────────────────────── 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 = ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import { isFragment } from 'react-is';
@@ -31,9 +28,10 @@ const useUtilityClasses = ownerState => {
31
28
  const AvatarGroupRoot = styled('div', {
32
29
  name: 'MuiAvatarGroup',
33
30
  slot: 'Root',
34
- overridesResolver: (props, styles) => _extends({
35
- [`& .${avatarGroupClasses.avatar}`]: styles.avatar
36
- }, styles.root)
31
+ overridesResolver: (props, styles) => ({
32
+ [`& .${avatarGroupClasses.avatar}`]: styles.avatar,
33
+ ...styles.root
34
+ })
37
35
  })(({
38
36
  theme
39
37
  }) => ({
@@ -54,25 +52,26 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
54
52
  name: 'MuiAvatarGroup'
55
53
  });
56
54
  const {
57
- children: childrenProp,
58
- className,
59
- component = 'div',
60
- componentsProps = {},
61
- max = 5,
62
- renderSurplus,
63
- slotProps = {},
64
- spacing = 'medium',
65
- total,
66
- variant = 'circular'
67
- } = props,
68
- other = _objectWithoutPropertiesLoose(props, _excluded);
55
+ children: childrenProp,
56
+ className,
57
+ component = 'div',
58
+ componentsProps = {},
59
+ max = 5,
60
+ renderSurplus,
61
+ slotProps = {},
62
+ spacing = 'medium',
63
+ total,
64
+ variant = 'circular',
65
+ ...other
66
+ } = props;
69
67
  let clampedMax = max < 2 ? 2 : max;
70
- const ownerState = _extends({}, props, {
68
+ const ownerState = {
69
+ ...props,
71
70
  max,
72
71
  spacing,
73
72
  component,
74
73
  variant
75
- });
74
+ };
76
75
  const classes = useUtilityClasses(ownerState);
77
76
  const children = React.Children.toArray(childrenProp).filter(child => {
78
77
  if (process.env.NODE_ENV !== 'production') {
@@ -92,27 +91,28 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
92
91
  const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
93
92
  const additionalAvatarSlotProps = slotProps.additionalAvatar ?? componentsProps.additionalAvatar;
94
93
  const marginValue = ownerState.spacing && SPACINGS[ownerState.spacing] !== undefined ? SPACINGS[ownerState.spacing] : -ownerState.spacing || -8;
95
- return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
94
+ return /*#__PURE__*/_jsxs(AvatarGroupRoot, {
96
95
  as: component,
97
96
  ownerState: ownerState,
98
97
  className: clsx(classes.root, className),
99
- ref: ref
100
- }, other, {
101
- children: [extraAvatars ? /*#__PURE__*/_jsx(Avatar, _extends({
102
- variant: variant
103
- }, additionalAvatarSlotProps, {
98
+ ref: ref,
99
+ ...other,
100
+ children: [extraAvatars ? /*#__PURE__*/_jsx(Avatar, {
101
+ variant: variant,
102
+ ...additionalAvatarSlotProps,
104
103
  className: clsx(classes.avatar, additionalAvatarSlotProps?.className),
105
- style: _extends({
106
- '--AvatarRoot-spacing': marginValue ? `${marginValue}px` : undefined
107
- }, other.style),
104
+ style: {
105
+ '--AvatarRoot-spacing': marginValue ? `${marginValue}px` : undefined,
106
+ ...other.style
107
+ },
108
108
  children: extraAvatarsElement
109
- })) : null, children.slice(0, maxAvatars).reverse().map(child => {
109
+ }) : null, children.slice(0, maxAvatars).reverse().map(child => {
110
110
  return /*#__PURE__*/React.cloneElement(child, {
111
111
  className: clsx(child.props.className, classes.avatar),
112
112
  variant: child.props.variant || variant
113
113
  });
114
114
  })]
115
- }));
115
+ });
116
116
  });
117
117
  process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptypes */ = {
118
118
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,8 +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 = ["children", "className", "component", "invisible", "open", "components", "componentsProps", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import clsx from 'clsx';
@@ -58,29 +55,34 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
58
55
  name: 'MuiBackdrop'
59
56
  });
60
57
  const {
61
- children,
62
- className,
63
- component = 'div',
64
- invisible = false,
65
- open,
66
- components = {},
67
- componentsProps = {},
68
- slotProps = {},
69
- slots = {},
70
- TransitionComponent: TransitionComponentProp,
71
- transitionDuration
72
- } = props,
73
- other = _objectWithoutPropertiesLoose(props, _excluded);
74
- const ownerState = _extends({}, props, {
58
+ children,
59
+ className,
60
+ component = 'div',
61
+ invisible = false,
62
+ open,
63
+ components = {},
64
+ componentsProps = {},
65
+ slotProps = {},
66
+ slots = {},
67
+ TransitionComponent: TransitionComponentProp,
68
+ transitionDuration,
69
+ ...other
70
+ } = props;
71
+ const ownerState = {
72
+ ...props,
75
73
  component,
76
74
  invisible
77
- });
75
+ };
78
76
  const classes = useUtilityClasses(ownerState);
79
- const backwardCompatibleSlots = _extends({
77
+ const backwardCompatibleSlots = {
80
78
  transition: TransitionComponentProp,
81
- root: components.Root
82
- }, slots);
83
- const backwardCompatibleSlotProps = _extends({}, componentsProps, slotProps);
79
+ root: components.Root,
80
+ ...slots
81
+ };
82
+ const backwardCompatibleSlotProps = {
83
+ ...componentsProps,
84
+ ...slotProps
85
+ };
84
86
  const externalForwardedProps = {
85
87
  slots: backwardCompatibleSlots,
86
88
  slotProps: backwardCompatibleSlotProps
@@ -97,18 +99,19 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
97
99
  ownerState
98
100
  });
99
101
  delete transitionProps.ownerState;
100
- return /*#__PURE__*/_jsx(TransitionSlot, _extends({
102
+ return /*#__PURE__*/_jsx(TransitionSlot, {
101
103
  in: open,
102
- timeout: transitionDuration
103
- }, other, transitionProps, {
104
- children: /*#__PURE__*/_jsx(RootSlot, _extends({
105
- "aria-hidden": true
106
- }, rootProps, {
104
+ timeout: transitionDuration,
105
+ ...other,
106
+ ...transitionProps,
107
+ children: /*#__PURE__*/_jsx(RootSlot, {
108
+ "aria-hidden": true,
109
+ ...rootProps,
107
110
  classes: classes,
108
111
  ref: ref,
109
112
  children: children
110
- }))
111
- }));
113
+ })
114
+ });
112
115
  });
113
116
  process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes */ = {
114
117
  // ┌────────────────────────────── Warning ──────────────────────────────┐
package/Badge/Badge.js CHANGED
@@ -1,8 +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 = ["anchorOrigin", "className", "classes", "component", "components", "componentsProps", "children", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import clsx from 'clsx';
@@ -77,7 +74,7 @@ const BadgeBadge = styled('span', {
77
74
  easing: theme.transitions.easing.easeInOut,
78
75
  duration: theme.transitions.duration.enteringScreen
79
76
  }),
80
- variants: [...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main && (theme.vars ?? theme).palette[key].contrastText).map(color => ({
77
+ variants: [...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main && palette.contrastText).map(([color]) => ({
81
78
  props: {
82
79
  color
83
80
  },
@@ -217,26 +214,27 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
217
214
  name: 'MuiBadge'
218
215
  });
219
216
  const {
220
- anchorOrigin: anchorOriginProp = {
221
- vertical: 'top',
222
- horizontal: 'right'
223
- },
224
- className,
225
- component,
226
- components = {},
227
- componentsProps = {},
228
- children,
229
- overlap: overlapProp = 'rectangular',
230
- color: colorProp = 'default',
231
- invisible: invisibleProp = false,
232
- max: maxProp = 99,
233
- badgeContent: badgeContentProp,
234
- slots,
235
- slotProps,
236
- showZero = false,
237
- variant: variantProp = 'standard'
238
- } = props,
239
- other = _objectWithoutPropertiesLoose(props, _excluded);
217
+ anchorOrigin: anchorOriginProp = {
218
+ vertical: 'top',
219
+ horizontal: 'right'
220
+ },
221
+ className,
222
+ classes: classesProp,
223
+ component,
224
+ components = {},
225
+ componentsProps = {},
226
+ children,
227
+ overlap: overlapProp = 'rectangular',
228
+ color: colorProp = 'default',
229
+ invisible: invisibleProp = false,
230
+ max: maxProp = 99,
231
+ badgeContent: badgeContentProp,
232
+ slots,
233
+ slotProps,
234
+ showZero = false,
235
+ variant: variantProp = 'standard',
236
+ ...other
237
+ } = props;
240
238
  const {
241
239
  badgeContent,
242
240
  invisible: invisibleFromHook,
@@ -263,7 +261,8 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
263
261
  variant = variantProp
264
262
  } = invisible ? prevProps : props;
265
263
  const displayValue = variant !== 'dot' ? displayValueFromHook : undefined;
266
- const ownerState = _extends({}, props, {
264
+ const ownerState = {
265
+ ...props,
267
266
  badgeContent,
268
267
  invisible,
269
268
  max,
@@ -273,7 +272,7 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
273
272
  color,
274
273
  overlap,
275
274
  variant
276
- });
275
+ };
277
276
  const classes = useUtilityClasses(ownerState);
278
277
 
279
278
  // support both `slots` and `components` for backward compatibility
@@ -298,11 +297,13 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
298
297
  ownerState,
299
298
  className: clsx(classes.badge, badgeSlotProps?.className)
300
299
  });
301
- return /*#__PURE__*/_jsxs(RootSlot, _extends({}, rootProps, {
302
- children: [children, /*#__PURE__*/_jsx(BadgeSlot, _extends({}, badgeProps, {
300
+ return /*#__PURE__*/_jsxs(RootSlot, {
301
+ ...rootProps,
302
+ children: [children, /*#__PURE__*/_jsx(BadgeSlot, {
303
+ ...badgeProps,
303
304
  children: displayValue
304
- }))]
305
- }));
305
+ })]
306
+ });
306
307
  });
307
308
  process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ = {
308
309
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,8 +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 = ["children", "className", "component", "onChange", "showLabels", "value"];
6
3
  import * as React from 'react';
7
4
  import { isFragment } from 'react-is';
8
5
  import PropTypes from 'prop-types';
@@ -39,25 +36,26 @@ const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation
39
36
  name: 'MuiBottomNavigation'
40
37
  });
41
38
  const {
42
- children,
43
- className,
44
- component = 'div',
45
- onChange,
46
- showLabels = false,
47
- value
48
- } = props,
49
- other = _objectWithoutPropertiesLoose(props, _excluded);
50
- const ownerState = _extends({}, props, {
39
+ children,
40
+ className,
41
+ component = 'div',
42
+ onChange,
43
+ showLabels = false,
44
+ value,
45
+ ...other
46
+ } = props;
47
+ const ownerState = {
48
+ ...props,
51
49
  component,
52
50
  showLabels
53
- });
51
+ };
54
52
  const classes = useUtilityClasses(ownerState);
55
- return /*#__PURE__*/_jsx(BottomNavigationRoot, _extends({
53
+ return /*#__PURE__*/_jsx(BottomNavigationRoot, {
56
54
  as: component,
57
55
  className: clsx(classes.root, className),
58
56
  ref: ref,
59
- ownerState: ownerState
60
- }, other, {
57
+ ownerState: ownerState,
58
+ ...other,
61
59
  children: React.Children.map(children, (child, childIndex) => {
62
60
  if (! /*#__PURE__*/React.isValidElement(child)) {
63
61
  return null;
@@ -75,7 +73,7 @@ const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation
75
73
  onChange
76
74
  });
77
75
  })
78
- }));
76
+ });
79
77
  });
80
78
  process.env.NODE_ENV !== "production" ? BottomNavigation.propTypes /* remove-proptypes */ = {
81
79
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,8 +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 = ["className", "icon", "label", "onChange", "onClick", "selected", "showLabel", "value"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import clsx from 'clsx';
@@ -100,17 +97,17 @@ const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavi
100
97
  name: 'MuiBottomNavigationAction'
101
98
  });
102
99
  const {
103
- className,
104
- icon,
105
- label,
106
- onChange,
107
- onClick
108
- // eslint-disable-next-line react/prop-types -- private, always overridden by BottomNavigation
109
- ,
110
-
111
- value
112
- } = props,
113
- other = _objectWithoutPropertiesLoose(props, _excluded);
100
+ className,
101
+ icon,
102
+ label,
103
+ onChange,
104
+ onClick,
105
+ // eslint-disable-next-line react/prop-types -- private, always overridden by BottomNavigation
106
+ selected,
107
+ showLabel,
108
+ value,
109
+ ...other
110
+ } = props;
114
111
  const ownerState = props;
115
112
  const classes = useUtilityClasses(ownerState);
116
113
  const handleChange = event => {
@@ -121,19 +118,19 @@ const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavi
121
118
  onClick(event);
122
119
  }
123
120
  };
124
- return /*#__PURE__*/_jsxs(BottomNavigationActionRoot, _extends({
121
+ return /*#__PURE__*/_jsxs(BottomNavigationActionRoot, {
125
122
  ref: ref,
126
123
  className: clsx(classes.root, className),
127
124
  focusRipple: true,
128
125
  onClick: handleChange,
129
- ownerState: ownerState
130
- }, other, {
126
+ ownerState: ownerState,
127
+ ...other,
131
128
  children: [icon, /*#__PURE__*/_jsx(BottomNavigationActionLabel, {
132
129
  className: classes.label,
133
130
  ownerState: ownerState,
134
131
  children: label
135
132
  })]
136
- }));
133
+ });
137
134
  });
138
135
  process.env.NODE_ENV !== "production" ? BottomNavigationAction.propTypes /* remove-proptypes */ = {
139
136
  // ┌────────────────────────────── 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 = ["slots", "slotProps"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import { emphasize } from '@mui/system/colorManipulator';
@@ -12,30 +9,33 @@ import ButtonBase from '../ButtonBase';
12
9
  import { jsx as _jsx } from "react/jsx-runtime";
13
10
  const BreadcrumbCollapsedButton = styled(ButtonBase)(({
14
11
  theme
15
- }) => _extends({
12
+ }) => ({
16
13
  display: 'flex',
17
14
  marginLeft: `calc(${theme.spacing(1)} * 0.5)`,
18
- marginRight: `calc(${theme.spacing(1)} * 0.5)`
19
- }, theme.palette.mode === 'light' ? {
20
- backgroundColor: theme.palette.grey[100],
21
- color: theme.palette.grey[700]
22
- } : {
23
- backgroundColor: theme.palette.grey[700],
24
- color: theme.palette.grey[100]
25
- }, {
26
- borderRadius: 2,
27
- '&:hover, &:focus': _extends({}, theme.palette.mode === 'light' ? {
28
- backgroundColor: theme.palette.grey[200]
15
+ marginRight: `calc(${theme.spacing(1)} * 0.5)`,
16
+ ...(theme.palette.mode === 'light' ? {
17
+ backgroundColor: theme.palette.grey[100],
18
+ color: theme.palette.grey[700]
29
19
  } : {
30
- backgroundColor: theme.palette.grey[600]
20
+ backgroundColor: theme.palette.grey[700],
21
+ color: theme.palette.grey[100]
31
22
  }),
32
- '&:active': _extends({
33
- boxShadow: theme.shadows[0]
34
- }, theme.palette.mode === 'light' ? {
35
- backgroundColor: emphasize(theme.palette.grey[200], 0.12)
36
- } : {
37
- backgroundColor: emphasize(theme.palette.grey[600], 0.12)
38
- })
23
+ borderRadius: 2,
24
+ '&:hover, &:focus': {
25
+ ...(theme.palette.mode === 'light' ? {
26
+ backgroundColor: theme.palette.grey[200]
27
+ } : {
28
+ backgroundColor: theme.palette.grey[600]
29
+ })
30
+ },
31
+ '&:active': {
32
+ boxShadow: theme.shadows[0],
33
+ ...(theme.palette.mode === 'light' ? {
34
+ backgroundColor: emphasize(theme.palette.grey[200], 0.12)
35
+ } : {
36
+ backgroundColor: emphasize(theme.palette.grey[600], 0.12)
37
+ })
38
+ }
39
39
  }));
40
40
  const BreadcrumbCollapsedIcon = styled(MoreHorizIcon)({
41
41
  width: 24,
@@ -47,21 +47,22 @@ const BreadcrumbCollapsedIcon = styled(MoreHorizIcon)({
47
47
  */
48
48
  function BreadcrumbCollapsed(props) {
49
49
  const {
50
- slots = {},
51
- slotProps = {}
52
- } = props,
53
- otherProps = _objectWithoutPropertiesLoose(props, _excluded);
50
+ slots = {},
51
+ slotProps = {},
52
+ ...otherProps
53
+ } = props;
54
54
  const ownerState = props;
55
55
  return /*#__PURE__*/_jsx("li", {
56
- children: /*#__PURE__*/_jsx(BreadcrumbCollapsedButton, _extends({
57
- focusRipple: true
58
- }, otherProps, {
56
+ children: /*#__PURE__*/_jsx(BreadcrumbCollapsedButton, {
57
+ focusRipple: true,
58
+ ...otherProps,
59
59
  ownerState: ownerState,
60
- children: /*#__PURE__*/_jsx(BreadcrumbCollapsedIcon, _extends({
60
+ children: /*#__PURE__*/_jsx(BreadcrumbCollapsedIcon, {
61
61
  as: slots.CollapsedIcon,
62
- ownerState: ownerState
63
- }, slotProps.collapsedIcon))
64
- }))
62
+ ownerState: ownerState,
63
+ ...slotProps.collapsedIcon
64
+ })
65
+ })
65
66
  });
66
67
  }
67
68
  process.env.NODE_ENV !== "production" ? BreadcrumbCollapsed.propTypes = {