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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/Accordion/Accordion.js +33 -33
  2. package/AccordionActions/AccordionActions.js +11 -12
  3. package/AccordionDetails/AccordionDetails.js +7 -9
  4. package/AccordionSummary/AccordionSummary.js +14 -16
  5. package/Alert/Alert.js +56 -51
  6. package/AlertTitle/AlertTitle.js +7 -9
  7. package/AppBar/AppBar.js +34 -32
  8. package/Autocomplete/Autocomplete.js +164 -136
  9. package/Avatar/Avatar.js +41 -35
  10. package/AvatarGroup/AvatarGroup.js +31 -31
  11. package/Backdrop/Backdrop.js +33 -30
  12. package/Badge/Badge.js +31 -30
  13. package/BottomNavigation/BottomNavigation.js +15 -17
  14. package/BottomNavigationAction/BottomNavigationAction.js +15 -18
  15. package/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  16. package/Breadcrumbs/Breadcrumbs.js +19 -21
  17. package/Button/Button.js +32 -29
  18. package/ButtonBase/ButtonBase.js +43 -42
  19. package/ButtonBase/TouchRipple.js +9 -12
  20. package/ButtonGroup/ButtonGroup.js +23 -25
  21. package/CHANGELOG.md +37 -2
  22. package/Card/Card.js +11 -12
  23. package/CardActionArea/CardActionArea.js +9 -12
  24. package/CardActions/CardActions.js +11 -12
  25. package/CardContent/CardContent.js +11 -12
  26. package/CardHeader/CardHeader.js +30 -31
  27. package/CardMedia/CardMedia.js +19 -20
  28. package/Checkbox/Checkbox.js +29 -26
  29. package/Chip/Chip.js +38 -37
  30. package/CircularProgress/CircularProgress.js +24 -23
  31. package/Collapse/Collapse.js +44 -42
  32. package/CssBaseline/CssBaseline.js +17 -14
  33. package/Dialog/Dialog.js +41 -42
  34. package/DialogActions/DialogActions.js +11 -12
  35. package/DialogContent/DialogContent.js +11 -12
  36. package/DialogContentText/DialogContentText.js +13 -11
  37. package/DialogTitle/DialogTitle.js +8 -10
  38. package/Divider/Divider.js +19 -21
  39. package/Drawer/Drawer.js +50 -49
  40. package/Fab/Fab.js +26 -23
  41. package/Fade/Fade.js +31 -30
  42. package/FilledInput/FilledInput.js +48 -44
  43. package/FilledInput/filledInputClasses.js +4 -2
  44. package/FormControl/FormControl.js +27 -25
  45. package/FormControlLabel/FormControlLabel.js +32 -26
  46. package/FormGroup/FormGroup.js +11 -12
  47. package/FormHelperText/FormHelperText.js +26 -18
  48. package/FormLabel/FormLabel.js +27 -19
  49. package/GlobalStyles/GlobalStyles.js +3 -3
  50. package/Grid/Grid.js +49 -41
  51. package/Grow/Grow.js +31 -30
  52. package/Hidden/Hidden.js +21 -22
  53. package/Hidden/HiddenCss.js +29 -29
  54. package/Hidden/withWidth.js +19 -19
  55. package/Icon/Icon.js +15 -16
  56. package/IconButton/IconButton.js +18 -20
  57. package/ImageList/ImageList.js +24 -24
  58. package/ImageListItem/ImageListItem.js +19 -20
  59. package/ImageListItemBar/ImageListItemBar.js +15 -17
  60. package/Input/Input.js +21 -20
  61. package/Input/inputClasses.js +4 -2
  62. package/InputAdornment/InputAdornment.js +16 -18
  63. package/InputBase/InputBase.js +90 -73
  64. package/InputLabel/InputLabel.js +20 -16
  65. package/LinearProgress/LinearProgress.js +21 -23
  66. package/Link/Link.js +27 -26
  67. package/List/List.js +15 -17
  68. package/ListItem/ListItem.js +58 -49
  69. package/ListItemAvatar/ListItemAvatar.js +10 -11
  70. package/ListItemButton/ListItemButton.js +23 -22
  71. package/ListItemIcon/ListItemIcon.js +10 -11
  72. package/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  73. package/ListItemText/ListItemText.js +25 -27
  74. package/ListSubheader/ListSubheader.js +15 -16
  75. package/Menu/Menu.js +34 -36
  76. package/MenuItem/MenuItem.js +28 -26
  77. package/MenuList/MenuList.js +17 -20
  78. package/MobileStepper/MobileStepper.js +21 -22
  79. package/Modal/Modal.js +47 -38
  80. package/NativeSelect/NativeSelect.js +26 -22
  81. package/NativeSelect/NativeSelectInput.js +15 -16
  82. package/OutlinedInput/NotchedOutline.js +14 -14
  83. package/OutlinedInput/OutlinedInput.js +46 -42
  84. package/OutlinedInput/outlinedInputClasses.js +4 -2
  85. package/Pagination/Pagination.js +36 -32
  86. package/PaginationItem/PaginationItem.js +31 -30
  87. package/Paper/Paper.js +26 -23
  88. package/Popover/Popover.js +71 -71
  89. package/Popper/Popper.js +25 -27
  90. package/Radio/Radio.js +24 -22
  91. package/Radio/RadioButtonIcon.js +3 -3
  92. package/RadioGroup/RadioGroup.js +15 -18
  93. package/Rating/Rating.js +54 -47
  94. package/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  95. package/Select/Select.js +63 -57
  96. package/Select/SelectInput.js +64 -59
  97. package/Skeleton/Skeleton.js +20 -21
  98. package/Slide/Slide.js +37 -33
  99. package/Slider/Slider.js +155 -106
  100. package/Snackbar/Snackbar.js +52 -45
  101. package/SnackbarContent/SnackbarContent.js +13 -15
  102. package/SpeedDial/SpeedDial.js +59 -60
  103. package/SpeedDialAction/SpeedDialAction.js +34 -33
  104. package/SpeedDialIcon/SpeedDialIcon.js +10 -12
  105. package/Step/Step.js +18 -20
  106. package/StepButton/StepButton.js +16 -17
  107. package/StepConnector/StepConnector.js +10 -12
  108. package/StepContent/StepContent.js +18 -20
  109. package/StepIcon/StepIcon.js +22 -22
  110. package/StepLabel/StepLabel.js +33 -30
  111. package/Stepper/Stepper.js +21 -22
  112. package/SvgIcon/SvgIcon.js +21 -21
  113. package/SwipeableDrawer/SwipeArea.js +15 -16
  114. package/SwipeableDrawer/SwipeableDrawer.js +49 -43
  115. package/Switch/Switch.js +23 -20
  116. package/Tab/Tab.js +32 -33
  117. package/TabScrollButton/TabScrollButton.js +27 -21
  118. package/Table/Table.js +17 -17
  119. package/TableBody/TableBody.js +11 -12
  120. package/TableCell/TableCell.js +19 -19
  121. package/TableContainer/TableContainer.js +11 -12
  122. package/TableFooter/TableFooter.js +11 -12
  123. package/TableHead/TableHead.js +11 -12
  124. package/TablePagination/TablePagination.js +56 -52
  125. package/TablePagination/TablePaginationActions.js +51 -38
  126. package/TableRow/TableRow.js +13 -14
  127. package/TableSortLabel/TableSortLabel.js +15 -17
  128. package/Tabs/ScrollbarSize.js +7 -9
  129. package/Tabs/Tabs.js +52 -49
  130. package/TextField/TextField.d.ts +58 -3
  131. package/TextField/TextField.js +137 -67
  132. package/ToggleButton/ToggleButton.js +30 -32
  133. package/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  134. package/Toolbar/Toolbar.js +13 -14
  135. package/Tooltip/Tooltip.js +75 -60
  136. package/Typography/Typography.js +37 -35
  137. package/Zoom/Zoom.js +31 -30
  138. package/index.js +1 -1
  139. package/internal/SwitchBase.js +37 -37
  140. package/modern/Accordion/Accordion.js +33 -33
  141. package/modern/AccordionActions/AccordionActions.js +11 -12
  142. package/modern/AccordionDetails/AccordionDetails.js +7 -9
  143. package/modern/AccordionSummary/AccordionSummary.js +14 -16
  144. package/modern/Alert/Alert.js +56 -51
  145. package/modern/AlertTitle/AlertTitle.js +7 -9
  146. package/modern/AppBar/AppBar.js +34 -32
  147. package/modern/Autocomplete/Autocomplete.js +164 -136
  148. package/modern/Avatar/Avatar.js +41 -35
  149. package/modern/AvatarGroup/AvatarGroup.js +31 -31
  150. package/modern/Backdrop/Backdrop.js +33 -30
  151. package/modern/Badge/Badge.js +31 -30
  152. package/modern/BottomNavigation/BottomNavigation.js +15 -17
  153. package/modern/BottomNavigationAction/BottomNavigationAction.js +15 -18
  154. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  155. package/modern/Breadcrumbs/Breadcrumbs.js +19 -21
  156. package/modern/Button/Button.js +32 -29
  157. package/modern/ButtonBase/ButtonBase.js +43 -42
  158. package/modern/ButtonBase/TouchRipple.js +9 -12
  159. package/modern/ButtonGroup/ButtonGroup.js +23 -25
  160. package/modern/Card/Card.js +11 -12
  161. package/modern/CardActionArea/CardActionArea.js +9 -12
  162. package/modern/CardActions/CardActions.js +11 -12
  163. package/modern/CardContent/CardContent.js +11 -12
  164. package/modern/CardHeader/CardHeader.js +30 -31
  165. package/modern/CardMedia/CardMedia.js +19 -20
  166. package/modern/Checkbox/Checkbox.js +29 -26
  167. package/modern/Chip/Chip.js +38 -37
  168. package/modern/CircularProgress/CircularProgress.js +24 -23
  169. package/modern/Collapse/Collapse.js +44 -42
  170. package/modern/CssBaseline/CssBaseline.js +17 -14
  171. package/modern/Dialog/Dialog.js +41 -42
  172. package/modern/DialogActions/DialogActions.js +11 -12
  173. package/modern/DialogContent/DialogContent.js +11 -12
  174. package/modern/DialogContentText/DialogContentText.js +13 -11
  175. package/modern/DialogTitle/DialogTitle.js +8 -10
  176. package/modern/Divider/Divider.js +19 -21
  177. package/modern/Drawer/Drawer.js +50 -49
  178. package/modern/Fab/Fab.js +26 -23
  179. package/modern/Fade/Fade.js +31 -30
  180. package/modern/FilledInput/FilledInput.js +48 -44
  181. package/modern/FilledInput/filledInputClasses.js +4 -2
  182. package/modern/FormControl/FormControl.js +27 -25
  183. package/modern/FormControlLabel/FormControlLabel.js +32 -26
  184. package/modern/FormGroup/FormGroup.js +11 -12
  185. package/modern/FormHelperText/FormHelperText.js +26 -18
  186. package/modern/FormLabel/FormLabel.js +27 -19
  187. package/modern/GlobalStyles/GlobalStyles.js +3 -3
  188. package/modern/Grid/Grid.js +49 -41
  189. package/modern/Grow/Grow.js +31 -30
  190. package/modern/Hidden/Hidden.js +21 -22
  191. package/modern/Hidden/HiddenCss.js +29 -29
  192. package/modern/Hidden/withWidth.js +19 -19
  193. package/modern/Icon/Icon.js +15 -16
  194. package/modern/IconButton/IconButton.js +18 -20
  195. package/modern/ImageList/ImageList.js +24 -24
  196. package/modern/ImageListItem/ImageListItem.js +19 -20
  197. package/modern/ImageListItemBar/ImageListItemBar.js +15 -17
  198. package/modern/Input/Input.js +21 -20
  199. package/modern/Input/inputClasses.js +4 -2
  200. package/modern/InputAdornment/InputAdornment.js +16 -18
  201. package/modern/InputBase/InputBase.js +90 -73
  202. package/modern/InputLabel/InputLabel.js +20 -16
  203. package/modern/LinearProgress/LinearProgress.js +21 -23
  204. package/modern/Link/Link.js +27 -26
  205. package/modern/List/List.js +15 -17
  206. package/modern/ListItem/ListItem.js +58 -49
  207. package/modern/ListItemAvatar/ListItemAvatar.js +10 -11
  208. package/modern/ListItemButton/ListItemButton.js +23 -22
  209. package/modern/ListItemIcon/ListItemIcon.js +10 -11
  210. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  211. package/modern/ListItemText/ListItemText.js +25 -27
  212. package/modern/ListSubheader/ListSubheader.js +15 -16
  213. package/modern/Menu/Menu.js +34 -36
  214. package/modern/MenuItem/MenuItem.js +28 -26
  215. package/modern/MenuList/MenuList.js +17 -20
  216. package/modern/MobileStepper/MobileStepper.js +21 -22
  217. package/modern/Modal/Modal.js +47 -38
  218. package/modern/NativeSelect/NativeSelect.js +26 -22
  219. package/modern/NativeSelect/NativeSelectInput.js +15 -16
  220. package/modern/OutlinedInput/NotchedOutline.js +14 -14
  221. package/modern/OutlinedInput/OutlinedInput.js +46 -42
  222. package/modern/OutlinedInput/outlinedInputClasses.js +4 -2
  223. package/modern/Pagination/Pagination.js +36 -32
  224. package/modern/PaginationItem/PaginationItem.js +31 -30
  225. package/modern/Paper/Paper.js +26 -23
  226. package/modern/Popover/Popover.js +71 -71
  227. package/modern/Popper/Popper.js +25 -27
  228. package/modern/Radio/Radio.js +24 -22
  229. package/modern/Radio/RadioButtonIcon.js +3 -3
  230. package/modern/RadioGroup/RadioGroup.js +15 -18
  231. package/modern/Rating/Rating.js +54 -47
  232. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  233. package/modern/Select/Select.js +63 -57
  234. package/modern/Select/SelectInput.js +64 -59
  235. package/modern/Skeleton/Skeleton.js +20 -21
  236. package/modern/Slide/Slide.js +37 -33
  237. package/modern/Slider/Slider.js +155 -106
  238. package/modern/Snackbar/Snackbar.js +52 -45
  239. package/modern/SnackbarContent/SnackbarContent.js +13 -15
  240. package/modern/SpeedDial/SpeedDial.js +59 -60
  241. package/modern/SpeedDialAction/SpeedDialAction.js +34 -33
  242. package/modern/SpeedDialIcon/SpeedDialIcon.js +10 -12
  243. package/modern/Step/Step.js +18 -20
  244. package/modern/StepButton/StepButton.js +16 -17
  245. package/modern/StepConnector/StepConnector.js +10 -12
  246. package/modern/StepContent/StepContent.js +18 -20
  247. package/modern/StepIcon/StepIcon.js +22 -22
  248. package/modern/StepLabel/StepLabel.js +33 -30
  249. package/modern/Stepper/Stepper.js +21 -22
  250. package/modern/SvgIcon/SvgIcon.js +21 -21
  251. package/modern/SwipeableDrawer/SwipeArea.js +15 -16
  252. package/modern/SwipeableDrawer/SwipeableDrawer.js +49 -43
  253. package/modern/Switch/Switch.js +23 -20
  254. package/modern/Tab/Tab.js +32 -33
  255. package/modern/TabScrollButton/TabScrollButton.js +27 -21
  256. package/modern/Table/Table.js +17 -17
  257. package/modern/TableBody/TableBody.js +11 -12
  258. package/modern/TableCell/TableCell.js +19 -19
  259. package/modern/TableContainer/TableContainer.js +11 -12
  260. package/modern/TableFooter/TableFooter.js +11 -12
  261. package/modern/TableHead/TableHead.js +11 -12
  262. package/modern/TablePagination/TablePagination.js +56 -52
  263. package/modern/TablePagination/TablePaginationActions.js +51 -38
  264. package/modern/TableRow/TableRow.js +13 -14
  265. package/modern/TableSortLabel/TableSortLabel.js +15 -17
  266. package/modern/Tabs/ScrollbarSize.js +7 -9
  267. package/modern/Tabs/Tabs.js +52 -49
  268. package/modern/TextField/TextField.js +137 -67
  269. package/modern/ToggleButton/ToggleButton.js +30 -32
  270. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  271. package/modern/Toolbar/Toolbar.js +13 -14
  272. package/modern/Tooltip/Tooltip.js +75 -60
  273. package/modern/Typography/Typography.js +37 -35
  274. package/modern/Zoom/Zoom.js +31 -30
  275. package/modern/index.js +1 -1
  276. package/modern/internal/SwitchBase.js +37 -37
  277. package/modern/styles/CssVarsProvider.js +3 -3
  278. package/modern/styles/ThemeProvider.js +7 -10
  279. package/modern/styles/adaptV4Theme.js +31 -31
  280. package/modern/styles/createMixins.js +4 -4
  281. package/modern/styles/createPalette.js +16 -13
  282. package/modern/styles/createTheme.js +16 -11
  283. package/modern/styles/createTransitions.js +17 -14
  284. package/modern/styles/createTypography.js +31 -29
  285. package/modern/styles/experimental_extendTheme.js +47 -37
  286. package/modern/styles/responsiveFontSizes.js +17 -11
  287. package/modern/usePagination/usePagination.js +18 -20
  288. package/modern/useScrollTrigger/useScrollTrigger.js +8 -10
  289. package/modern/utils/createSvgIcon.js +4 -5
  290. package/modern/utils/useSlot.js +41 -40
  291. package/node/Accordion/Accordion.js +33 -33
  292. package/node/AccordionActions/AccordionActions.js +11 -12
  293. package/node/AccordionDetails/AccordionDetails.js +7 -9
  294. package/node/AccordionSummary/AccordionSummary.js +14 -16
  295. package/node/Alert/Alert.js +56 -51
  296. package/node/AlertTitle/AlertTitle.js +7 -9
  297. package/node/AppBar/AppBar.js +125 -129
  298. package/node/Autocomplete/Autocomplete.js +165 -137
  299. package/node/Avatar/Avatar.js +41 -35
  300. package/node/AvatarGroup/AvatarGroup.js +31 -31
  301. package/node/Backdrop/Backdrop.js +33 -30
  302. package/node/Badge/Badge.js +179 -184
  303. package/node/BottomNavigation/BottomNavigation.js +15 -17
  304. package/node/BottomNavigationAction/BottomNavigationAction.js +15 -18
  305. package/node/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  306. package/node/Breadcrumbs/Breadcrumbs.js +19 -21
  307. package/node/Button/Button.js +32 -29
  308. package/node/ButtonBase/ButtonBase.js +43 -42
  309. package/node/ButtonBase/TouchRipple.js +9 -12
  310. package/node/ButtonGroup/ButtonGroup.js +23 -25
  311. package/node/Card/Card.js +11 -12
  312. package/node/CardActionArea/CardActionArea.js +9 -12
  313. package/node/CardActions/CardActions.js +11 -12
  314. package/node/CardContent/CardContent.js +11 -12
  315. package/node/CardHeader/CardHeader.js +30 -31
  316. package/node/CardMedia/CardMedia.js +19 -20
  317. package/node/Checkbox/Checkbox.js +29 -26
  318. package/node/Chip/Chip.js +38 -37
  319. package/node/CircularProgress/CircularProgress.js +24 -23
  320. package/node/Collapse/Collapse.js +44 -42
  321. package/node/CssBaseline/CssBaseline.js +17 -14
  322. package/node/Dialog/Dialog.js +41 -42
  323. package/node/DialogActions/DialogActions.js +11 -12
  324. package/node/DialogContent/DialogContent.js +11 -12
  325. package/node/DialogContentText/DialogContentText.js +13 -11
  326. package/node/DialogTitle/DialogTitle.js +8 -10
  327. package/node/Divider/Divider.js +19 -21
  328. package/node/Drawer/Drawer.js +50 -49
  329. package/node/Fab/Fab.js +27 -24
  330. package/node/Fade/Fade.js +31 -30
  331. package/node/FilledInput/FilledInput.js +48 -44
  332. package/node/FilledInput/filledInputClasses.js +4 -2
  333. package/node/FormControl/FormControl.js +27 -25
  334. package/node/FormControlLabel/FormControlLabel.js +32 -26
  335. package/node/FormGroup/FormGroup.js +11 -12
  336. package/node/FormHelperText/FormHelperText.js +26 -18
  337. package/node/FormLabel/FormLabel.js +27 -19
  338. package/node/GlobalStyles/GlobalStyles.js +3 -3
  339. package/node/Grid/Grid.js +49 -41
  340. package/node/Grow/Grow.js +31 -30
  341. package/node/Hidden/Hidden.js +24 -26
  342. package/node/Hidden/HiddenCss.js +29 -29
  343. package/node/Hidden/withWidth.js +19 -19
  344. package/node/Icon/Icon.js +15 -16
  345. package/node/IconButton/IconButton.js +18 -20
  346. package/node/ImageList/ImageList.js +24 -24
  347. package/node/ImageListItem/ImageListItem.js +19 -20
  348. package/node/ImageListItemBar/ImageListItemBar.js +15 -17
  349. package/node/Input/Input.js +21 -20
  350. package/node/Input/inputClasses.js +4 -2
  351. package/node/InputAdornment/InputAdornment.js +16 -18
  352. package/node/InputBase/InputBase.js +90 -73
  353. package/node/InputLabel/InputLabel.js +20 -16
  354. package/node/LinearProgress/LinearProgress.js +21 -23
  355. package/node/Link/Link.js +27 -26
  356. package/node/List/List.js +15 -17
  357. package/node/ListItem/ListItem.js +58 -49
  358. package/node/ListItemAvatar/ListItemAvatar.js +10 -11
  359. package/node/ListItemButton/ListItemButton.js +23 -22
  360. package/node/ListItemIcon/ListItemIcon.js +10 -11
  361. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  362. package/node/ListItemText/ListItemText.js +25 -27
  363. package/node/ListSubheader/ListSubheader.js +15 -16
  364. package/node/Menu/Menu.js +34 -36
  365. package/node/MenuItem/MenuItem.js +28 -26
  366. package/node/MenuList/MenuList.js +17 -20
  367. package/node/MobileStepper/MobileStepper.js +21 -22
  368. package/node/Modal/Modal.js +47 -38
  369. package/node/NativeSelect/NativeSelect.js +26 -22
  370. package/node/NativeSelect/NativeSelectInput.js +15 -16
  371. package/node/OutlinedInput/NotchedOutline.js +14 -14
  372. package/node/OutlinedInput/OutlinedInput.js +46 -42
  373. package/node/OutlinedInput/outlinedInputClasses.js +4 -2
  374. package/node/Pagination/Pagination.js +36 -32
  375. package/node/PaginationItem/PaginationItem.js +31 -30
  376. package/node/Paper/Paper.js +26 -23
  377. package/node/Popover/Popover.js +71 -71
  378. package/node/Popper/Popper.js +25 -27
  379. package/node/Radio/Radio.js +24 -22
  380. package/node/Radio/RadioButtonIcon.js +3 -3
  381. package/node/RadioGroup/RadioGroup.js +15 -18
  382. package/node/Rating/Rating.js +54 -47
  383. package/node/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  384. package/node/Select/Select.js +63 -57
  385. package/node/Select/SelectInput.js +64 -59
  386. package/node/Skeleton/Skeleton.js +20 -21
  387. package/node/Slide/Slide.js +39 -34
  388. package/node/Slider/Slider.js +298 -265
  389. package/node/Snackbar/Snackbar.js +52 -45
  390. package/node/SnackbarContent/SnackbarContent.js +13 -15
  391. package/node/SpeedDial/SpeedDial.js +59 -60
  392. package/node/SpeedDialAction/SpeedDialAction.js +34 -33
  393. package/node/SpeedDialIcon/SpeedDialIcon.js +10 -12
  394. package/node/Step/Step.js +18 -20
  395. package/node/StepButton/StepButton.js +16 -17
  396. package/node/StepConnector/StepConnector.js +10 -12
  397. package/node/StepContent/StepContent.js +18 -20
  398. package/node/StepIcon/StepIcon.js +22 -22
  399. package/node/StepLabel/StepLabel.js +33 -30
  400. package/node/Stepper/Stepper.js +21 -22
  401. package/node/SvgIcon/SvgIcon.js +21 -21
  402. package/node/SwipeableDrawer/SwipeArea.js +15 -16
  403. package/node/SwipeableDrawer/SwipeableDrawer.js +51 -44
  404. package/node/Switch/Switch.js +23 -20
  405. package/node/Tab/Tab.js +32 -33
  406. package/node/TabScrollButton/TabScrollButton.js +27 -21
  407. package/node/Table/Table.js +17 -17
  408. package/node/TableBody/TableBody.js +11 -12
  409. package/node/TableCell/TableCell.js +19 -19
  410. package/node/TableContainer/TableContainer.js +11 -12
  411. package/node/TableFooter/TableFooter.js +11 -12
  412. package/node/TableHead/TableHead.js +11 -12
  413. package/node/TablePagination/TablePagination.js +56 -52
  414. package/node/TablePagination/TablePaginationActions.js +54 -42
  415. package/node/TableRow/TableRow.js +13 -14
  416. package/node/TableSortLabel/TableSortLabel.js +15 -17
  417. package/node/Tabs/ScrollbarSize.js +7 -9
  418. package/node/Tabs/Tabs.js +52 -49
  419. package/node/TextField/TextField.js +137 -67
  420. package/node/ToggleButton/ToggleButton.js +30 -32
  421. package/node/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  422. package/node/Toolbar/Toolbar.js +13 -14
  423. package/node/Tooltip/Tooltip.js +75 -60
  424. package/node/Typography/Typography.js +37 -35
  425. package/node/Zoom/Zoom.js +31 -30
  426. package/node/index.js +1 -1
  427. package/node/internal/SwitchBase.js +37 -37
  428. package/node/styles/CssVarsProvider.js +3 -3
  429. package/node/styles/ThemeProvider.js +7 -10
  430. package/node/styles/adaptV4Theme.js +31 -32
  431. package/node/styles/createMixins.js +4 -5
  432. package/node/styles/createPalette.js +16 -13
  433. package/node/styles/createTheme.js +16 -11
  434. package/node/styles/createTransitions.js +17 -15
  435. package/node/styles/createTypography.js +31 -29
  436. package/node/styles/experimental_extendTheme.js +47 -37
  437. package/node/styles/responsiveFontSizes.js +17 -11
  438. package/node/usePagination/usePagination.js +18 -20
  439. package/node/useScrollTrigger/useScrollTrigger.js +8 -11
  440. package/node/utils/createSvgIcon.js +4 -5
  441. package/node/utils/useSlot.js +41 -40
  442. package/package.json +5 -5
  443. package/styles/CssVarsProvider.js +3 -3
  444. package/styles/ThemeProvider.js +7 -10
  445. package/styles/adaptV4Theme.js +31 -31
  446. package/styles/createMixins.js +4 -4
  447. package/styles/createPalette.js +16 -13
  448. package/styles/createTheme.js +16 -11
  449. package/styles/createTransitions.js +17 -14
  450. package/styles/createTypography.js +31 -29
  451. package/styles/experimental_extendTheme.js +47 -37
  452. package/styles/responsiveFontSizes.js +17 -11
  453. package/usePagination/usePagination.d.ts +1 -1
  454. package/usePagination/usePagination.js +18 -20
  455. package/useScrollTrigger/useScrollTrigger.js +8 -10
  456. package/utils/createSvgIcon.js +4 -5
  457. package/utils/useSlot.js +41 -40
  458. package/umd/material-ui.development.js +0 -54226
  459. package/umd/material-ui.production.min.js +0 -25
@@ -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", "cols", "component", "rowHeight", "gap", "style", "variant"];
6
3
  import composeClasses from '@mui/utils/composeClasses';
7
4
  import integerPropType from '@mui/utils/integerPropType';
8
5
  import clsx from 'clsx';
@@ -54,16 +51,16 @@ const ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref)
54
51
  name: 'MuiImageList'
55
52
  });
56
53
  const {
57
- children,
58
- className,
59
- cols = 2,
60
- component = 'ul',
61
- rowHeight = 'auto',
62
- gap = 4,
63
- style: styleProp,
64
- variant = 'standard'
65
- } = props,
66
- other = _objectWithoutPropertiesLoose(props, _excluded);
54
+ children,
55
+ className,
56
+ cols = 2,
57
+ component = 'ul',
58
+ rowHeight = 'auto',
59
+ gap = 4,
60
+ style: styleProp,
61
+ variant = 'standard',
62
+ ...other
63
+ } = props;
67
64
  const contextValue = React.useMemo(() => ({
68
65
  rowHeight,
69
66
  gap,
@@ -77,32 +74,35 @@ const ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref)
77
74
  }
78
75
  }
79
76
  }, []);
80
- const style = variant === 'masonry' ? _extends({
77
+ const style = variant === 'masonry' ? {
81
78
  columnCount: cols,
82
- columnGap: gap
83
- }, styleProp) : _extends({
79
+ columnGap: gap,
80
+ ...styleProp
81
+ } : {
84
82
  gridTemplateColumns: `repeat(${cols}, 1fr)`,
85
- gap
86
- }, styleProp);
87
- const ownerState = _extends({}, props, {
83
+ gap,
84
+ ...styleProp
85
+ };
86
+ const ownerState = {
87
+ ...props,
88
88
  component,
89
89
  gap,
90
90
  rowHeight,
91
91
  variant
92
- });
92
+ };
93
93
  const classes = useUtilityClasses(ownerState);
94
- return /*#__PURE__*/_jsx(ImageListRoot, _extends({
94
+ return /*#__PURE__*/_jsx(ImageListRoot, {
95
95
  as: component,
96
96
  className: clsx(classes.root, classes[variant], className),
97
97
  ref: ref,
98
98
  style: style,
99
- ownerState: ownerState
100
- }, other, {
99
+ ownerState: ownerState,
100
+ ...other,
101
101
  children: /*#__PURE__*/_jsx(ImageListContext.Provider, {
102
102
  value: contextValue,
103
103
  children: children
104
104
  })
105
- }));
105
+ });
106
106
  });
107
107
  process.env.NODE_ENV !== "production" ? ImageList.propTypes /* remove-proptypes */ = {
108
108
  // ┌────────────────────────────── 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", "cols", "component", "rows", "style"];
6
3
  import composeClasses from '@mui/utils/composeClasses';
7
4
  import integerPropType from '@mui/utils/integerPropType';
8
5
  import clsx from 'clsx';
@@ -86,14 +83,14 @@ const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inPro
86
83
 
87
84
  // TODO: - Use jsdoc @default?: "cols rows default values are for docs only"
88
85
  const {
89
- children,
90
- className,
91
- cols = 1,
92
- component = 'li',
93
- rows = 1,
94
- style
95
- } = props,
96
- other = _objectWithoutPropertiesLoose(props, _excluded);
86
+ children,
87
+ className,
88
+ cols = 1,
89
+ component = 'li',
90
+ rows = 1,
91
+ style,
92
+ ...other
93
+ } = props;
97
94
  const {
98
95
  rowHeight = 'auto',
99
96
  gap,
@@ -105,28 +102,30 @@ const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inPro
105
102
  } else if (rowHeight !== 'auto') {
106
103
  height = rowHeight * rows + gap * (rows - 1);
107
104
  }
108
- const ownerState = _extends({}, props, {
105
+ const ownerState = {
106
+ ...props,
109
107
  cols,
110
108
  component,
111
109
  gap,
112
110
  rowHeight,
113
111
  rows,
114
112
  variant
115
- });
113
+ };
116
114
  const classes = useUtilityClasses(ownerState);
117
- return /*#__PURE__*/_jsx(ImageListItemRoot, _extends({
115
+ return /*#__PURE__*/_jsx(ImageListItemRoot, {
118
116
  as: component,
119
117
  className: clsx(classes.root, classes[variant], className),
120
118
  ref: ref,
121
- style: _extends({
119
+ style: {
122
120
  height,
123
121
  gridColumnEnd: variant !== 'masonry' ? `span ${cols}` : undefined,
124
122
  gridRowEnd: variant !== 'masonry' ? `span ${rows}` : undefined,
125
123
  marginBottom: variant === 'masonry' ? gap : undefined,
126
- breakInside: variant === 'masonry' ? 'avoid' : undefined
127
- }, style),
128
- ownerState: ownerState
129
- }, other, {
124
+ breakInside: variant === 'masonry' ? 'avoid' : undefined,
125
+ ...style
126
+ },
127
+ ownerState: ownerState,
128
+ ...other,
130
129
  children: React.Children.map(children, child => {
131
130
  if (! /*#__PURE__*/React.isValidElement(child)) {
132
131
  return null;
@@ -143,7 +142,7 @@ const ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inPro
143
142
  }
144
143
  return child;
145
144
  })
146
- }));
145
+ });
147
146
  });
148
147
  process.env.NODE_ENV !== "production" ? ImageListItem.propTypes /* remove-proptypes */ = {
149
148
  // ┌────────────────────────────── 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 = ["actionIcon", "actionPosition", "className", "subtitle", "title", "position"];
6
3
  import composeClasses from '@mui/utils/composeClasses';
7
4
  import clsx from 'clsx';
8
5
  import PropTypes from 'prop-types';
@@ -171,24 +168,25 @@ const ImageListItemBar = /*#__PURE__*/React.forwardRef(function ImageListItemBar
171
168
  name: 'MuiImageListItemBar'
172
169
  });
173
170
  const {
174
- actionIcon,
175
- actionPosition = 'right',
176
- className,
177
- subtitle,
178
- title,
179
- position = 'bottom'
180
- } = props,
181
- other = _objectWithoutPropertiesLoose(props, _excluded);
182
- const ownerState = _extends({}, props, {
171
+ actionIcon,
172
+ actionPosition = 'right',
173
+ className,
174
+ subtitle,
175
+ title,
176
+ position = 'bottom',
177
+ ...other
178
+ } = props;
179
+ const ownerState = {
180
+ ...props,
183
181
  position,
184
182
  actionPosition
185
- });
183
+ };
186
184
  const classes = useUtilityClasses(ownerState);
187
- return /*#__PURE__*/_jsxs(ImageListItemBarRoot, _extends({
185
+ return /*#__PURE__*/_jsxs(ImageListItemBarRoot, {
188
186
  ownerState: ownerState,
189
187
  className: clsx(classes.root, className),
190
- ref: ref
191
- }, other, {
188
+ ref: ref,
189
+ ...other,
192
190
  children: [/*#__PURE__*/_jsxs(ImageListItemBarTitleWrap, {
193
191
  ownerState: ownerState,
194
192
  className: classes.titleWrap,
@@ -204,7 +202,7 @@ const ImageListItemBar = /*#__PURE__*/React.forwardRef(function ImageListItemBar
204
202
  className: classes.actionIcon,
205
203
  children: actionIcon
206
204
  }) : null]
207
- }));
205
+ });
208
206
  });
209
207
  process.env.NODE_ENV !== "production" ? ImageListItemBar.propTypes /* remove-proptypes */ = {
210
208
  // ┌────────────────────────────── 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 = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
6
3
  import * as React from 'react';
7
4
  import PropTypes from 'prop-types';
8
5
  import composeClasses from '@mui/utils/composeClasses';
@@ -25,7 +22,11 @@ const useUtilityClasses = ownerState => {
25
22
  input: ['input']
26
23
  };
27
24
  const composedClasses = composeClasses(slots, getInputUtilityClass, classes);
28
- return _extends({}, classes, composedClasses);
25
+ return {
26
+ ...classes,
27
+ // forward classes to the InputBase
28
+ ...composedClasses
29
+ };
29
30
  };
30
31
  const InputRoot = styled(InputBaseRoot, {
31
32
  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
@@ -109,7 +110,7 @@ const InputRoot = styled(InputBaseRoot, {
109
110
  borderBottomStyle: 'dotted'
110
111
  }
111
112
  }
112
- }, ...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
113
+ }, ...Object.entries(theme.palette).filter(([, value]) => value && value.main).map(([color]) => ({
113
114
  props: {
114
115
  color,
115
116
  disableUnderline: false
@@ -133,17 +134,17 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
133
134
  name: 'MuiInput'
134
135
  });
135
136
  const {
136
- disableUnderline = false,
137
- components = {},
138
- componentsProps: componentsPropsProp,
139
- fullWidth = false,
140
- inputComponent = 'input',
141
- multiline = false,
142
- slotProps,
143
- slots = {},
144
- type = 'text'
145
- } = props,
146
- other = _objectWithoutPropertiesLoose(props, _excluded);
137
+ disableUnderline = false,
138
+ components = {},
139
+ componentsProps: componentsPropsProp,
140
+ fullWidth = false,
141
+ inputComponent = 'input',
142
+ multiline = false,
143
+ slotProps,
144
+ slots = {},
145
+ type = 'text',
146
+ ...other
147
+ } = props;
147
148
  const classes = useUtilityClasses(props);
148
149
  const ownerState = {
149
150
  disableUnderline
@@ -156,7 +157,7 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
156
157
  const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(slotProps ?? componentsPropsProp, inputComponentsProps) : inputComponentsProps;
157
158
  const RootSlot = slots.root ?? components.Root ?? InputRoot;
158
159
  const InputSlot = slots.input ?? components.Input ?? InputInput;
159
- return /*#__PURE__*/_jsx(InputBase, _extends({
160
+ return /*#__PURE__*/_jsx(InputBase, {
160
161
  slots: {
161
162
  root: RootSlot,
162
163
  input: InputSlot
@@ -166,10 +167,10 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
166
167
  inputComponent: inputComponent,
167
168
  multiline: multiline,
168
169
  ref: ref,
169
- type: type
170
- }, other, {
170
+ type: type,
171
+ ...other,
171
172
  classes: classes
172
- }));
173
+ });
173
174
  });
174
175
  process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ = {
175
176
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,9 +1,11 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
2
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
4
3
  import { inputBaseClasses } from '../InputBase';
5
4
  export function getInputUtilityClass(slot) {
6
5
  return generateUtilityClass('MuiInput', slot);
7
6
  }
8
- const inputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiInput', ['root', 'underline', 'input']));
7
+ const inputClasses = {
8
+ ...inputBaseClasses,
9
+ ...generateUtilityClasses('MuiInput', ['root', 'underline', 'input'])
10
+ };
9
11
  export default inputClasses;
@@ -1,9 +1,6 @@
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
3
  var _span;
6
- const _excluded = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"];
7
4
  import * as React from 'react';
8
5
  import PropTypes from 'prop-types';
9
6
  import clsx from 'clsx';
@@ -88,15 +85,15 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
88
85
  name: 'MuiInputAdornment'
89
86
  });
90
87
  const {
91
- children,
92
- className,
93
- component = 'div',
94
- disablePointerEvents = false,
95
- disableTypography = false,
96
- position,
97
- variant: variantProp
98
- } = props,
99
- other = _objectWithoutPropertiesLoose(props, _excluded);
88
+ children,
89
+ className,
90
+ component = 'div',
91
+ disablePointerEvents = false,
92
+ disableTypography = false,
93
+ position,
94
+ variant: variantProp,
95
+ ...other
96
+ } = props;
100
97
  const muiFormControl = useFormControl() || {};
101
98
  let variant = variantProp;
102
99
  if (variantProp && muiFormControl.variant) {
@@ -109,22 +106,23 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
109
106
  if (muiFormControl && !variant) {
110
107
  variant = muiFormControl.variant;
111
108
  }
112
- const ownerState = _extends({}, props, {
109
+ const ownerState = {
110
+ ...props,
113
111
  hiddenLabel: muiFormControl.hiddenLabel,
114
112
  size: muiFormControl.size,
115
113
  disablePointerEvents,
116
114
  position,
117
115
  variant
118
- });
116
+ };
119
117
  const classes = useUtilityClasses(ownerState);
120
118
  return /*#__PURE__*/_jsx(FormControlContext.Provider, {
121
119
  value: null,
122
- children: /*#__PURE__*/_jsx(InputAdornmentRoot, _extends({
120
+ children: /*#__PURE__*/_jsx(InputAdornmentRoot, {
123
121
  as: component,
124
122
  ownerState: ownerState,
125
123
  className: clsx(classes.root, className),
126
- ref: ref
127
- }, other, {
124
+ ref: ref,
125
+ ...other,
128
126
  children: typeof children === 'string' && !disableTypography ? /*#__PURE__*/_jsx(Typography, {
129
127
  color: "text.secondary",
130
128
  children: children
@@ -134,7 +132,7 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
134
132
  children: "\u200B"
135
133
  }))) : null, children]
136
134
  })
137
- }))
135
+ })
138
136
  });
139
137
  });
140
138
  process.env.NODE_ENV !== "production" ? InputAdornment.propTypes /* remove-proptypes */ = {
@@ -1,9 +1,6 @@
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
3
  import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
6
- const _excluded = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"];
7
4
  import * as React from 'react';
8
5
  import PropTypes from 'prop-types';
9
6
  import clsx from 'clsx';
@@ -65,7 +62,8 @@ export const InputBaseRoot = styled('div', {
65
62
  overridesResolver: rootOverridesResolver
66
63
  })(({
67
64
  theme
68
- }) => _extends({}, theme.typography.body1, {
65
+ }) => ({
66
+ ...theme.typography.body1,
69
67
  color: (theme.vars || theme).palette.text.primary,
70
68
  lineHeight: '1.4375em',
71
69
  // 23px
@@ -111,17 +109,17 @@ export const InputBaseInput = styled('input', {
111
109
  theme
112
110
  }) => {
113
111
  const light = theme.palette.mode === 'light';
114
- const placeholder = _extends({
115
- color: 'currentColor'
116
- }, theme.vars ? {
117
- opacity: theme.vars.opacity.inputPlaceholder
118
- } : {
119
- opacity: light ? 0.42 : 0.5
120
- }, {
112
+ const placeholder = {
113
+ color: 'currentColor',
114
+ ...(theme.vars ? {
115
+ opacity: theme.vars.opacity.inputPlaceholder
116
+ } : {
117
+ opacity: light ? 0.42 : 0.5
118
+ }),
121
119
  transition: theme.transitions.create('opacity', {
122
120
  duration: theme.transitions.duration.shorter
123
121
  })
124
- });
122
+ };
125
123
  const placeholderHidden = {
126
124
  opacity: '0 !important'
127
125
  };
@@ -246,42 +244,46 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
246
244
  name: 'MuiInputBase'
247
245
  });
248
246
  const {
249
- 'aria-describedby': ariaDescribedby,
250
- autoComplete,
251
- autoFocus,
252
- className,
253
- components = {},
254
- componentsProps = {},
255
- defaultValue,
256
- disabled,
257
- disableInjectingGlobalStyles,
258
- endAdornment,
259
- fullWidth = false,
260
- id,
261
- inputComponent = 'input',
262
- inputProps: inputPropsProp = {},
263
- inputRef: inputRefProp,
264
- maxRows,
265
- minRows,
266
- multiline = false,
267
- name,
268
- onBlur,
269
- onChange,
270
- onClick,
271
- onFocus,
272
- onKeyDown,
273
- onKeyUp,
274
- placeholder,
275
- readOnly,
276
- renderSuffix,
277
- rows,
278
- slotProps = {},
279
- slots = {},
280
- startAdornment,
281
- type = 'text',
282
- value: valueProp
283
- } = props,
284
- other = _objectWithoutPropertiesLoose(props, _excluded);
247
+ 'aria-describedby': ariaDescribedby,
248
+ autoComplete,
249
+ autoFocus,
250
+ className,
251
+ color,
252
+ components = {},
253
+ componentsProps = {},
254
+ defaultValue,
255
+ disabled,
256
+ disableInjectingGlobalStyles,
257
+ endAdornment,
258
+ error,
259
+ fullWidth = false,
260
+ id,
261
+ inputComponent = 'input',
262
+ inputProps: inputPropsProp = {},
263
+ inputRef: inputRefProp,
264
+ margin,
265
+ maxRows,
266
+ minRows,
267
+ multiline = false,
268
+ name,
269
+ onBlur,
270
+ onChange,
271
+ onClick,
272
+ onFocus,
273
+ onKeyDown,
274
+ onKeyUp,
275
+ placeholder,
276
+ readOnly,
277
+ renderSuffix,
278
+ rows,
279
+ size,
280
+ slotProps = {},
281
+ slots = {},
282
+ startAdornment,
283
+ type = 'text',
284
+ value: valueProp,
285
+ ...other
286
+ } = props;
285
287
  const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
286
288
  const {
287
289
  current: isControlled
@@ -416,17 +418,19 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
416
418
  console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
417
419
  }
418
420
  }
419
- inputProps = _extends({
421
+ inputProps = {
420
422
  type: undefined,
421
423
  minRows: rows,
422
- maxRows: rows
423
- }, inputProps);
424
+ maxRows: rows,
425
+ ...inputProps
426
+ };
424
427
  } else {
425
- inputProps = _extends({
428
+ inputProps = {
426
429
  type: undefined,
427
430
  maxRows,
428
- minRows
429
- }, inputProps);
431
+ minRows,
432
+ ...inputProps
433
+ };
430
434
  }
431
435
  InputComponent = TextareaAutosize;
432
436
  }
@@ -441,7 +445,8 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
441
445
  muiFormControl.setAdornedStart(Boolean(startAdornment));
442
446
  }
443
447
  }, [muiFormControl, startAdornment]);
444
- const ownerState = _extends({}, props, {
448
+ const ownerState = {
449
+ ...props,
445
450
  color: fcs.color || 'primary',
446
451
  disabled: fcs.disabled,
447
452
  endAdornment,
@@ -454,24 +459,31 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
454
459
  size: fcs.size,
455
460
  startAdornment,
456
461
  type
457
- });
462
+ };
458
463
  const classes = useUtilityClasses(ownerState);
459
464
  const Root = slots.root || components.Root || InputBaseRoot;
460
465
  const rootProps = slotProps.root || componentsProps.root || {};
461
466
  const Input = slots.input || components.Input || InputBaseInput;
462
- inputProps = _extends({}, inputProps, slotProps.input ?? componentsProps.input);
467
+ inputProps = {
468
+ ...inputProps,
469
+ ...(slotProps.input ?? componentsProps.input)
470
+ };
463
471
  return /*#__PURE__*/_jsxs(React.Fragment, {
464
- children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/_jsxs(Root, _extends({}, rootProps, !isHostComponent(Root) && {
465
- ownerState: _extends({}, ownerState, rootProps.ownerState)
466
- }, {
472
+ children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/_jsxs(Root, {
473
+ ...rootProps,
467
474
  ref: ref,
468
- onClick: handleClick
469
- }, other, {
475
+ onClick: handleClick,
476
+ ...other,
477
+ ...(!isHostComponent(Root) && {
478
+ ownerState: {
479
+ ...ownerState,
480
+ ...rootProps.ownerState
481
+ }
482
+ }),
470
483
  className: clsx(classes.root, rootProps.className, className, readOnly && 'MuiInputBase-readOnly'),
471
484
  children: [startAdornment, /*#__PURE__*/_jsx(FormControlContext.Provider, {
472
485
  value: null,
473
- children: /*#__PURE__*/_jsx(Input, _extends({
474
- ownerState: ownerState,
486
+ children: /*#__PURE__*/_jsx(Input, {
475
487
  "aria-invalid": fcs.error,
476
488
  "aria-describedby": ariaDescribedby,
477
489
  autoComplete: autoComplete,
@@ -488,21 +500,26 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
488
500
  value: value,
489
501
  onKeyDown: onKeyDown,
490
502
  onKeyUp: onKeyUp,
491
- type: type
492
- }, inputProps, !isHostComponent(Input) && {
493
- as: InputComponent,
494
- ownerState: _extends({}, ownerState, inputProps.ownerState)
495
- }, {
503
+ type: type,
504
+ ...inputProps,
505
+ ...(!isHostComponent(Input) && {
506
+ as: InputComponent,
507
+ ownerState: {
508
+ ...ownerState,
509
+ ...inputProps.ownerState
510
+ }
511
+ }),
496
512
  ref: handleInputRef,
497
513
  className: clsx(classes.input, inputProps.className, readOnly && 'MuiInputBase-readOnly'),
498
514
  onBlur: handleBlur,
499
515
  onChange: handleChange,
500
516
  onFocus: handleFocus
501
- }))
502
- }), endAdornment, renderSuffix ? renderSuffix(_extends({}, fcs, {
517
+ })
518
+ }), endAdornment, renderSuffix ? renderSuffix({
519
+ ...fcs,
503
520
  startAdornment
504
- })) : null]
505
- }))]
521
+ }) : null]
522
+ })]
506
523
  });
507
524
  });
508
525
  process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes */ = {