@mui/material 5.0.3 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (712) hide show
  1. package/Accordion/Accordion.js +1 -1
  2. package/AccordionActions/AccordionActions.js +1 -1
  3. package/AccordionDetails/AccordionDetails.js +1 -1
  4. package/AccordionSummary/AccordionSummary.js +1 -1
  5. package/Alert/Alert.js +1 -1
  6. package/AlertTitle/AlertTitle.js +1 -1
  7. package/AppBar/AppBar.js +1 -1
  8. package/Autocomplete/Autocomplete.d.ts +1 -1
  9. package/Autocomplete/Autocomplete.js +18 -11
  10. package/Avatar/Avatar.js +1 -1
  11. package/AvatarGroup/AvatarGroup.js +3 -3
  12. package/Backdrop/Backdrop.js +1 -1
  13. package/Badge/Badge.js +1 -1
  14. package/BottomNavigation/BottomNavigation.js +1 -1
  15. package/BottomNavigationAction/BottomNavigationAction.js +1 -1
  16. package/Box/Box.d.ts +18 -2
  17. package/Box/Box.js +4 -1
  18. package/Breadcrumbs/Breadcrumbs.js +1 -1
  19. package/Button/Button.js +40 -9
  20. package/ButtonBase/ButtonBase.js +1 -1
  21. package/ButtonGroup/ButtonGroup.js +23 -27
  22. package/ButtonGroup/ButtonGroupContext.d.ts +18 -0
  23. package/ButtonGroup/ButtonGroupContext.js +12 -0
  24. package/CHANGELOG.md +274 -0
  25. package/Card/Card.js +1 -1
  26. package/CardActionArea/CardActionArea.js +1 -1
  27. package/CardActions/CardActions.js +1 -1
  28. package/CardContent/CardContent.js +1 -1
  29. package/CardHeader/CardHeader.js +1 -1
  30. package/CardMedia/CardMedia.js +2 -2
  31. package/Checkbox/Checkbox.js +1 -1
  32. package/Chip/Chip.js +6 -5
  33. package/CircularProgress/CircularProgress.js +1 -1
  34. package/ClickAwayListener/index.d.ts +2 -2
  35. package/ClickAwayListener/index.js +2 -2
  36. package/Collapse/Collapse.js +1 -1
  37. package/Container/Container.js +1 -1
  38. package/CssBaseline/CssBaseline.d.ts +7 -0
  39. package/CssBaseline/CssBaseline.js +20 -12
  40. package/Dialog/Dialog.d.ts +1 -1
  41. package/Dialog/Dialog.js +1 -1
  42. package/DialogActions/DialogActions.js +1 -1
  43. package/DialogContent/DialogContent.js +3 -2
  44. package/DialogContentText/DialogContentText.js +1 -1
  45. package/DialogTitle/DialogTitle.js +1 -1
  46. package/Divider/Divider.js +1 -1
  47. package/Drawer/Drawer.js +1 -1
  48. package/Fab/Fab.js +1 -1
  49. package/Fade/Fade.d.ts +1 -1
  50. package/Fade/Fade.js +1 -1
  51. package/FilledInput/FilledInput.js +1 -1
  52. package/FormControl/FormControl.js +1 -1
  53. package/FormControlLabel/FormControlLabel.d.ts +2 -2
  54. package/FormControlLabel/FormControlLabel.js +3 -3
  55. package/FormGroup/FormGroup.js +1 -1
  56. package/FormHelperText/FormHelperText.js +1 -1
  57. package/FormLabel/FormLabel.js +1 -1
  58. package/Grid/Grid.d.ts +31 -11
  59. package/Grid/Grid.js +61 -26
  60. package/Grow/Grow.d.ts +1 -1
  61. package/Grow/Grow.js +1 -1
  62. package/Icon/Icon.js +1 -1
  63. package/IconButton/IconButton.js +1 -1
  64. package/ImageList/ImageList.js +1 -1
  65. package/ImageListItem/ImageListItem.js +1 -1
  66. package/ImageListItemBar/ImageListItemBar.js +1 -1
  67. package/Input/Input.js +1 -1
  68. package/InputAdornment/InputAdornment.js +1 -1
  69. package/InputBase/InputBase.js +6 -12
  70. package/InputLabel/InputLabel.js +1 -1
  71. package/LinearProgress/LinearProgress.js +1 -1
  72. package/Link/Link.js +1 -1
  73. package/List/List.js +1 -1
  74. package/ListItem/ListItem.d.ts +1 -1
  75. package/ListItem/ListItem.js +1 -1
  76. package/ListItemAvatar/ListItemAvatar.js +1 -1
  77. package/ListItemButton/ListItemButton.d.ts +1 -1
  78. package/ListItemButton/ListItemButton.js +1 -1
  79. package/ListItemIcon/ListItemIcon.js +1 -1
  80. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  81. package/ListItemText/ListItemText.js +1 -1
  82. package/ListSubheader/ListSubheader.js +1 -1
  83. package/Menu/Menu.js +1 -1
  84. package/MenuItem/MenuItem.js +5 -2
  85. package/MobileStepper/MobileStepper.js +1 -1
  86. package/Modal/Modal.js +1 -1
  87. package/NativeSelect/NativeSelect.js +1 -1
  88. package/OutlinedInput/NotchedOutline.js +6 -1
  89. package/OutlinedInput/OutlinedInput.js +1 -1
  90. package/Pagination/Pagination.js +1 -1
  91. package/PaginationItem/PaginationItem.d.ts +15 -0
  92. package/PaginationItem/PaginationItem.js +35 -14
  93. package/Paper/Paper.js +1 -1
  94. package/Popover/Popover.d.ts +1 -1
  95. package/Popover/Popover.js +1 -1
  96. package/Popper/index.d.ts +2 -2
  97. package/Popper/index.js +1 -1
  98. package/Radio/Radio.js +1 -1
  99. package/RadioGroup/RadioGroupContext.d.ts +11 -0
  100. package/RadioGroup/RadioGroupContext.js +2 -2
  101. package/RadioGroup/useRadioGroup.d.ts +4 -5
  102. package/Rating/Rating.js +1 -2
  103. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
  104. package/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
  105. package/Select/Select.js +1 -1
  106. package/Skeleton/Skeleton.js +1 -1
  107. package/Slide/Slide.d.ts +1 -1
  108. package/Slide/Slide.js +1 -1
  109. package/Slider/Slider.js +1 -1
  110. package/Snackbar/Snackbar.d.ts +2 -2
  111. package/Snackbar/Snackbar.js +2 -2
  112. package/SnackbarContent/SnackbarContent.js +1 -1
  113. package/SpeedDial/SpeedDial.js +1 -1
  114. package/SpeedDialAction/SpeedDialAction.js +1 -1
  115. package/SpeedDialIcon/SpeedDialIcon.js +1 -1
  116. package/Stack/Stack.js +5 -2
  117. package/Step/Step.js +1 -1
  118. package/StepButton/StepButton.js +1 -1
  119. package/StepConnector/StepConnector.js +1 -1
  120. package/StepContent/StepContent.js +1 -1
  121. package/StepIcon/StepIcon.js +1 -1
  122. package/StepLabel/StepLabel.js +1 -1
  123. package/Stepper/Stepper.js +1 -1
  124. package/SvgIcon/SvgIcon.js +1 -1
  125. package/Switch/Switch.js +1 -1
  126. package/Tab/Tab.d.ts +6 -0
  127. package/Tab/Tab.js +34 -10
  128. package/Tab/tabClasses.d.ts +2 -0
  129. package/Tab/tabClasses.js +1 -1
  130. package/TabScrollButton/TabScrollButton.js +1 -1
  131. package/Table/Table.js +1 -1
  132. package/TableBody/TableBody.js +1 -1
  133. package/TableCell/TableCell.js +1 -1
  134. package/TableContainer/TableContainer.js +1 -1
  135. package/TableFooter/TableFooter.js +1 -1
  136. package/TableHead/TableHead.js +1 -1
  137. package/TablePagination/TablePagination.js +1 -1
  138. package/TableRow/TableRow.js +1 -1
  139. package/TableSortLabel/TableSortLabel.js +1 -1
  140. package/Tabs/Tabs.js +1 -1
  141. package/TextField/TextField.js +1 -1
  142. package/TextareaAutosize/index.d.ts +2 -2
  143. package/TextareaAutosize/index.js +1 -1
  144. package/ToggleButton/ToggleButton.js +1 -1
  145. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  146. package/Toolbar/Toolbar.js +1 -1
  147. package/Tooltip/Tooltip.d.ts +5 -3
  148. package/Tooltip/Tooltip.js +7 -5
  149. package/Typography/Typography.js +1 -1
  150. package/Zoom/Zoom.d.ts +1 -1
  151. package/Zoom/Zoom.js +1 -1
  152. package/index.d.ts +3 -0
  153. package/index.js +1 -1
  154. package/legacy/Accordion/Accordion.js +1 -1
  155. package/legacy/AccordionActions/AccordionActions.js +1 -1
  156. package/legacy/AccordionDetails/AccordionDetails.js +1 -1
  157. package/legacy/AccordionSummary/AccordionSummary.js +1 -1
  158. package/legacy/Alert/Alert.js +1 -1
  159. package/legacy/AlertTitle/AlertTitle.js +1 -1
  160. package/legacy/AppBar/AppBar.js +1 -1
  161. package/legacy/Autocomplete/Autocomplete.js +35 -32
  162. package/legacy/Avatar/Avatar.js +1 -1
  163. package/legacy/AvatarGroup/AvatarGroup.js +3 -3
  164. package/legacy/Backdrop/Backdrop.js +1 -1
  165. package/legacy/Badge/Badge.js +1 -1
  166. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  167. package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
  168. package/legacy/Box/Box.js +4 -1
  169. package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
  170. package/legacy/Button/Button.js +40 -16
  171. package/legacy/ButtonBase/ButtonBase.js +1 -1
  172. package/legacy/ButtonGroup/ButtonGroup.js +25 -27
  173. package/legacy/ButtonGroup/ButtonGroupContext.js +12 -0
  174. package/legacy/Card/Card.js +1 -1
  175. package/legacy/CardActionArea/CardActionArea.js +1 -1
  176. package/legacy/CardActions/CardActions.js +1 -1
  177. package/legacy/CardContent/CardContent.js +1 -1
  178. package/legacy/CardHeader/CardHeader.js +1 -1
  179. package/legacy/CardMedia/CardMedia.js +2 -2
  180. package/legacy/Checkbox/Checkbox.js +1 -1
  181. package/legacy/Chip/Chip.js +6 -5
  182. package/legacy/CircularProgress/CircularProgress.js +1 -1
  183. package/legacy/ClickAwayListener/index.js +2 -2
  184. package/legacy/Collapse/Collapse.js +1 -1
  185. package/legacy/Container/Container.js +1 -1
  186. package/legacy/CssBaseline/CssBaseline.js +38 -20
  187. package/legacy/Dialog/Dialog.js +1 -1
  188. package/legacy/DialogActions/DialogActions.js +1 -1
  189. package/legacy/DialogContent/DialogContent.js +6 -6
  190. package/legacy/DialogContentText/DialogContentText.js +1 -1
  191. package/legacy/DialogTitle/DialogTitle.js +1 -1
  192. package/legacy/Divider/Divider.js +1 -1
  193. package/legacy/Drawer/Drawer.js +1 -1
  194. package/legacy/Fab/Fab.js +1 -1
  195. package/legacy/Fade/Fade.js +1 -1
  196. package/legacy/FilledInput/FilledInput.js +1 -1
  197. package/legacy/FormControl/FormControl.js +1 -1
  198. package/legacy/FormControlLabel/FormControlLabel.js +3 -3
  199. package/legacy/FormGroup/FormGroup.js +1 -1
  200. package/legacy/FormHelperText/FormHelperText.js +1 -1
  201. package/legacy/FormLabel/FormLabel.js +1 -1
  202. package/legacy/Grid/Grid.js +62 -27
  203. package/legacy/Grow/Grow.js +1 -1
  204. package/legacy/Icon/Icon.js +1 -1
  205. package/legacy/IconButton/IconButton.js +1 -1
  206. package/legacy/ImageList/ImageList.js +1 -1
  207. package/legacy/ImageListItem/ImageListItem.js +1 -1
  208. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  209. package/legacy/Input/Input.js +1 -1
  210. package/legacy/InputAdornment/InputAdornment.js +1 -1
  211. package/legacy/InputBase/InputBase.js +6 -12
  212. package/legacy/InputLabel/InputLabel.js +1 -1
  213. package/legacy/LinearProgress/LinearProgress.js +1 -1
  214. package/legacy/Link/Link.js +1 -1
  215. package/legacy/List/List.js +1 -1
  216. package/legacy/ListItem/ListItem.js +1 -1
  217. package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
  218. package/legacy/ListItemButton/ListItemButton.js +1 -1
  219. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  220. package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  221. package/legacy/ListItemText/ListItemText.js +1 -1
  222. package/legacy/ListSubheader/ListSubheader.js +1 -1
  223. package/legacy/Menu/Menu.js +1 -1
  224. package/legacy/MenuItem/MenuItem.js +5 -2
  225. package/legacy/MobileStepper/MobileStepper.js +1 -1
  226. package/legacy/Modal/Modal.js +1 -1
  227. package/legacy/NativeSelect/NativeSelect.js +1 -1
  228. package/legacy/OutlinedInput/NotchedOutline.js +6 -1
  229. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  230. package/legacy/Pagination/Pagination.js +1 -1
  231. package/legacy/PaginationItem/PaginationItem.js +36 -14
  232. package/legacy/Paper/Paper.js +1 -1
  233. package/legacy/Popover/Popover.js +1 -1
  234. package/legacy/Popper/index.js +1 -1
  235. package/legacy/Radio/Radio.js +1 -1
  236. package/legacy/RadioGroup/RadioGroupContext.js +2 -2
  237. package/legacy/Rating/Rating.js +1 -2
  238. package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +13 -4
  239. package/legacy/Select/Select.js +1 -1
  240. package/legacy/Skeleton/Skeleton.js +1 -1
  241. package/legacy/Slide/Slide.js +1 -1
  242. package/legacy/Slider/Slider.js +1 -1
  243. package/legacy/Snackbar/Snackbar.js +2 -2
  244. package/legacy/SnackbarContent/SnackbarContent.js +1 -1
  245. package/legacy/SpeedDial/SpeedDial.js +1 -1
  246. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
  247. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
  248. package/legacy/Stack/Stack.js +5 -2
  249. package/legacy/Step/Step.js +1 -1
  250. package/legacy/StepButton/StepButton.js +1 -1
  251. package/legacy/StepConnector/StepConnector.js +1 -1
  252. package/legacy/StepContent/StepContent.js +1 -1
  253. package/legacy/StepIcon/StepIcon.js +1 -1
  254. package/legacy/StepLabel/StepLabel.js +1 -1
  255. package/legacy/Stepper/Stepper.js +1 -1
  256. package/legacy/SvgIcon/SvgIcon.js +1 -1
  257. package/legacy/Switch/Switch.js +1 -1
  258. package/legacy/Tab/Tab.js +35 -10
  259. package/legacy/Tab/tabClasses.js +1 -1
  260. package/legacy/TabScrollButton/TabScrollButton.js +1 -1
  261. package/legacy/Table/Table.js +1 -1
  262. package/legacy/TableBody/TableBody.js +1 -1
  263. package/legacy/TableCell/TableCell.js +1 -1
  264. package/legacy/TableContainer/TableContainer.js +1 -1
  265. package/legacy/TableFooter/TableFooter.js +1 -1
  266. package/legacy/TableHead/TableHead.js +1 -1
  267. package/legacy/TablePagination/TablePagination.js +1 -1
  268. package/legacy/TableRow/TableRow.js +1 -1
  269. package/legacy/TableSortLabel/TableSortLabel.js +1 -1
  270. package/legacy/Tabs/Tabs.js +1 -1
  271. package/legacy/TextField/TextField.js +1 -1
  272. package/legacy/TextareaAutosize/index.js +1 -1
  273. package/legacy/ToggleButton/ToggleButton.js +1 -1
  274. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  275. package/legacy/Toolbar/Toolbar.js +1 -1
  276. package/legacy/Tooltip/Tooltip.js +7 -5
  277. package/legacy/Typography/Typography.js +1 -1
  278. package/legacy/Zoom/Zoom.js +1 -1
  279. package/legacy/index.js +1 -1
  280. package/legacy/styles/createPalette.js +1 -1
  281. package/legacy/styles/index.js +1 -1
  282. package/legacy/utils/index.js +2 -1
  283. package/modern/Accordion/Accordion.js +1 -1
  284. package/modern/AccordionActions/AccordionActions.js +1 -1
  285. package/modern/AccordionDetails/AccordionDetails.js +1 -1
  286. package/modern/AccordionSummary/AccordionSummary.js +1 -1
  287. package/modern/Alert/Alert.js +1 -1
  288. package/modern/AlertTitle/AlertTitle.js +1 -1
  289. package/modern/AppBar/AppBar.js +1 -1
  290. package/modern/Autocomplete/Autocomplete.js +18 -11
  291. package/modern/Avatar/Avatar.js +1 -1
  292. package/modern/AvatarGroup/AvatarGroup.js +3 -3
  293. package/modern/Backdrop/Backdrop.js +1 -1
  294. package/modern/Badge/Badge.js +1 -1
  295. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  296. package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
  297. package/modern/Box/Box.js +4 -1
  298. package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
  299. package/modern/Button/Button.js +40 -9
  300. package/modern/ButtonBase/ButtonBase.js +1 -1
  301. package/modern/ButtonGroup/ButtonGroup.js +23 -27
  302. package/modern/ButtonGroup/ButtonGroupContext.js +12 -0
  303. package/modern/Card/Card.js +1 -1
  304. package/modern/CardActionArea/CardActionArea.js +1 -1
  305. package/modern/CardActions/CardActions.js +1 -1
  306. package/modern/CardContent/CardContent.js +1 -1
  307. package/modern/CardHeader/CardHeader.js +1 -1
  308. package/modern/CardMedia/CardMedia.js +2 -2
  309. package/modern/Checkbox/Checkbox.js +1 -1
  310. package/modern/Chip/Chip.js +6 -5
  311. package/modern/CircularProgress/CircularProgress.js +1 -1
  312. package/modern/ClickAwayListener/index.js +2 -2
  313. package/modern/Collapse/Collapse.js +1 -1
  314. package/modern/Container/Container.js +1 -1
  315. package/modern/CssBaseline/CssBaseline.js +20 -12
  316. package/modern/Dialog/Dialog.js +1 -1
  317. package/modern/DialogActions/DialogActions.js +1 -1
  318. package/modern/DialogContent/DialogContent.js +3 -2
  319. package/modern/DialogContentText/DialogContentText.js +1 -1
  320. package/modern/DialogTitle/DialogTitle.js +1 -1
  321. package/modern/Divider/Divider.js +1 -1
  322. package/modern/Drawer/Drawer.js +1 -1
  323. package/modern/Fab/Fab.js +1 -1
  324. package/modern/Fade/Fade.js +1 -1
  325. package/modern/FilledInput/FilledInput.js +1 -1
  326. package/modern/FormControl/FormControl.js +1 -1
  327. package/modern/FormControlLabel/FormControlLabel.js +3 -3
  328. package/modern/FormGroup/FormGroup.js +1 -1
  329. package/modern/FormHelperText/FormHelperText.js +1 -1
  330. package/modern/FormLabel/FormLabel.js +1 -1
  331. package/modern/Grid/Grid.js +61 -26
  332. package/modern/Grow/Grow.js +1 -1
  333. package/modern/Icon/Icon.js +1 -1
  334. package/modern/IconButton/IconButton.js +1 -1
  335. package/modern/ImageList/ImageList.js +1 -1
  336. package/modern/ImageListItem/ImageListItem.js +1 -1
  337. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  338. package/modern/Input/Input.js +1 -1
  339. package/modern/InputAdornment/InputAdornment.js +1 -1
  340. package/modern/InputBase/InputBase.js +6 -12
  341. package/modern/InputLabel/InputLabel.js +1 -1
  342. package/modern/LinearProgress/LinearProgress.js +1 -1
  343. package/modern/Link/Link.js +1 -1
  344. package/modern/List/List.js +1 -1
  345. package/modern/ListItem/ListItem.js +1 -1
  346. package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
  347. package/modern/ListItemButton/ListItemButton.js +1 -1
  348. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  349. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  350. package/modern/ListItemText/ListItemText.js +1 -1
  351. package/modern/ListSubheader/ListSubheader.js +1 -1
  352. package/modern/Menu/Menu.js +1 -1
  353. package/modern/MenuItem/MenuItem.js +5 -2
  354. package/modern/MobileStepper/MobileStepper.js +1 -1
  355. package/modern/Modal/Modal.js +1 -1
  356. package/modern/NativeSelect/NativeSelect.js +1 -1
  357. package/modern/OutlinedInput/NotchedOutline.js +6 -1
  358. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  359. package/modern/Pagination/Pagination.js +1 -1
  360. package/modern/PaginationItem/PaginationItem.js +35 -14
  361. package/modern/Paper/Paper.js +1 -1
  362. package/modern/Popover/Popover.js +1 -1
  363. package/modern/Popper/index.js +1 -1
  364. package/modern/Radio/Radio.js +1 -1
  365. package/modern/RadioGroup/RadioGroupContext.js +2 -2
  366. package/modern/Rating/Rating.js +1 -2
  367. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
  368. package/modern/Select/Select.js +1 -1
  369. package/modern/Skeleton/Skeleton.js +1 -1
  370. package/modern/Slide/Slide.js +1 -1
  371. package/modern/Slider/Slider.js +1 -1
  372. package/modern/Snackbar/Snackbar.js +2 -2
  373. package/modern/SnackbarContent/SnackbarContent.js +1 -1
  374. package/modern/SpeedDial/SpeedDial.js +1 -1
  375. package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
  376. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
  377. package/modern/Stack/Stack.js +5 -2
  378. package/modern/Step/Step.js +1 -1
  379. package/modern/StepButton/StepButton.js +1 -1
  380. package/modern/StepConnector/StepConnector.js +1 -1
  381. package/modern/StepContent/StepContent.js +1 -1
  382. package/modern/StepIcon/StepIcon.js +1 -1
  383. package/modern/StepLabel/StepLabel.js +1 -1
  384. package/modern/Stepper/Stepper.js +1 -1
  385. package/modern/SvgIcon/SvgIcon.js +1 -1
  386. package/modern/Switch/Switch.js +1 -1
  387. package/modern/Tab/Tab.js +34 -10
  388. package/modern/Tab/tabClasses.js +1 -1
  389. package/modern/TabScrollButton/TabScrollButton.js +1 -1
  390. package/modern/Table/Table.js +1 -1
  391. package/modern/TableBody/TableBody.js +1 -1
  392. package/modern/TableCell/TableCell.js +1 -1
  393. package/modern/TableContainer/TableContainer.js +1 -1
  394. package/modern/TableFooter/TableFooter.js +1 -1
  395. package/modern/TableHead/TableHead.js +1 -1
  396. package/modern/TablePagination/TablePagination.js +1 -1
  397. package/modern/TableRow/TableRow.js +1 -1
  398. package/modern/TableSortLabel/TableSortLabel.js +1 -1
  399. package/modern/Tabs/Tabs.js +1 -1
  400. package/modern/TextField/TextField.js +1 -1
  401. package/modern/TextareaAutosize/index.js +1 -1
  402. package/modern/ToggleButton/ToggleButton.js +1 -1
  403. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  404. package/modern/Toolbar/Toolbar.js +1 -1
  405. package/modern/Tooltip/Tooltip.js +6 -4
  406. package/modern/Typography/Typography.js +1 -1
  407. package/modern/Zoom/Zoom.js +1 -1
  408. package/modern/index.js +1 -1
  409. package/modern/styles/createPalette.js +1 -1
  410. package/modern/styles/index.js +1 -1
  411. package/modern/utils/index.js +2 -1
  412. package/node/Accordion/Accordion.js +1 -1
  413. package/node/Accordion/accordionClasses.js +1 -1
  414. package/node/Accordion/index.js +4 -4
  415. package/node/AccordionActions/AccordionActions.js +1 -1
  416. package/node/AccordionActions/accordionActionsClasses.js +1 -1
  417. package/node/AccordionActions/index.js +4 -4
  418. package/node/AccordionDetails/AccordionDetails.js +1 -1
  419. package/node/AccordionDetails/accordionDetailsClasses.js +1 -1
  420. package/node/AccordionDetails/index.js +4 -4
  421. package/node/AccordionSummary/AccordionSummary.js +1 -1
  422. package/node/AccordionSummary/accordionSummaryClasses.js +1 -1
  423. package/node/AccordionSummary/index.js +4 -4
  424. package/node/Alert/Alert.js +1 -1
  425. package/node/Alert/alertClasses.js +1 -1
  426. package/node/Alert/index.js +4 -4
  427. package/node/AlertTitle/AlertTitle.js +1 -1
  428. package/node/AlertTitle/alertTitleClasses.js +1 -1
  429. package/node/AlertTitle/index.js +4 -4
  430. package/node/AppBar/AppBar.js +1 -1
  431. package/node/AppBar/appBarClasses.js +1 -1
  432. package/node/AppBar/index.js +4 -4
  433. package/node/Autocomplete/Autocomplete.js +22 -11
  434. package/node/Autocomplete/autocompleteClasses.js +1 -1
  435. package/node/Autocomplete/index.js +4 -4
  436. package/node/Avatar/Avatar.js +1 -1
  437. package/node/Avatar/avatarClasses.js +1 -1
  438. package/node/Avatar/index.js +4 -4
  439. package/node/AvatarGroup/AvatarGroup.js +3 -3
  440. package/node/AvatarGroup/avatarGroupClasses.js +1 -1
  441. package/node/AvatarGroup/index.js +4 -4
  442. package/node/Backdrop/Backdrop.js +1 -1
  443. package/node/Badge/Badge.js +1 -1
  444. package/node/BottomNavigation/BottomNavigation.js +1 -1
  445. package/node/BottomNavigation/bottomNavigationClasses.js +1 -1
  446. package/node/BottomNavigation/index.js +4 -4
  447. package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
  448. package/node/BottomNavigationAction/bottomNavigationActionClasses.js +1 -1
  449. package/node/BottomNavigationAction/index.js +4 -4
  450. package/node/Box/Box.js +5 -1
  451. package/node/Breadcrumbs/Breadcrumbs.js +1 -1
  452. package/node/Breadcrumbs/breadcrumbsClasses.js +1 -1
  453. package/node/Breadcrumbs/index.js +4 -4
  454. package/node/Button/Button.js +40 -9
  455. package/node/Button/buttonClasses.js +1 -1
  456. package/node/Button/index.js +4 -4
  457. package/node/ButtonBase/ButtonBase.js +1 -1
  458. package/node/ButtonBase/TouchRipple.js +1 -1
  459. package/node/ButtonBase/buttonBaseClasses.js +1 -1
  460. package/node/ButtonBase/index.js +4 -4
  461. package/node/ButtonBase/touchRippleClasses.js +1 -1
  462. package/node/ButtonGroup/ButtonGroup.js +24 -28
  463. package/node/ButtonGroup/ButtonGroupContext.js +24 -0
  464. package/node/ButtonGroup/buttonGroupClasses.js +1 -1
  465. package/node/ButtonGroup/index.js +4 -4
  466. package/node/Card/Card.js +1 -1
  467. package/node/Card/cardClasses.js +1 -1
  468. package/node/Card/index.js +4 -4
  469. package/node/CardActionArea/CardActionArea.js +1 -1
  470. package/node/CardActionArea/cardActionAreaClasses.js +1 -1
  471. package/node/CardActionArea/index.js +4 -4
  472. package/node/CardActions/CardActions.js +1 -1
  473. package/node/CardActions/cardActionsClasses.js +1 -1
  474. package/node/CardActions/index.js +4 -4
  475. package/node/CardContent/CardContent.js +1 -1
  476. package/node/CardContent/cardContentClasses.js +1 -1
  477. package/node/CardContent/index.js +4 -4
  478. package/node/CardHeader/CardHeader.js +1 -1
  479. package/node/CardHeader/cardHeaderClasses.js +1 -1
  480. package/node/CardHeader/index.js +4 -4
  481. package/node/CardMedia/CardMedia.js +2 -2
  482. package/node/CardMedia/cardMediaClasses.js +1 -1
  483. package/node/CardMedia/index.js +4 -4
  484. package/node/Checkbox/Checkbox.js +1 -1
  485. package/node/Checkbox/checkboxClasses.js +1 -1
  486. package/node/Checkbox/index.js +4 -4
  487. package/node/Chip/Chip.js +6 -5
  488. package/node/Chip/chipClasses.js +1 -1
  489. package/node/Chip/index.js +4 -4
  490. package/node/CircularProgress/CircularProgress.js +1 -1
  491. package/node/CircularProgress/circularProgressClasses.js +1 -1
  492. package/node/CircularProgress/index.js +4 -4
  493. package/node/ClickAwayListener/index.js +1 -1
  494. package/node/Collapse/Collapse.js +1 -1
  495. package/node/Collapse/collapseClasses.js +1 -1
  496. package/node/Collapse/index.js +4 -4
  497. package/node/Container/Container.js +1 -1
  498. package/node/Container/containerClasses.js +1 -1
  499. package/node/Container/index.js +4 -4
  500. package/node/CssBaseline/CssBaseline.js +23 -13
  501. package/node/Dialog/Dialog.js +1 -1
  502. package/node/Dialog/dialogClasses.js +1 -1
  503. package/node/DialogActions/DialogActions.js +1 -1
  504. package/node/DialogActions/dialogActionsClasses.js +1 -1
  505. package/node/DialogContent/DialogContent.js +4 -2
  506. package/node/DialogContent/dialogContentClasses.js +1 -1
  507. package/node/DialogContentText/DialogContentText.js +1 -1
  508. package/node/DialogContentText/dialogContentTextClasses.js +1 -1
  509. package/node/DialogTitle/DialogTitle.js +1 -1
  510. package/node/DialogTitle/dialogTitleClasses.js +1 -1
  511. package/node/Divider/Divider.js +1 -1
  512. package/node/Divider/dividerClasses.js +1 -1
  513. package/node/Drawer/Drawer.js +3 -3
  514. package/node/Drawer/drawerClasses.js +1 -1
  515. package/node/Fab/Fab.js +1 -1
  516. package/node/Fab/fabClasses.js +1 -1
  517. package/node/Fade/Fade.js +1 -1
  518. package/node/FilledInput/FilledInput.js +1 -1
  519. package/node/FilledInput/filledInputClasses.js +1 -1
  520. package/node/FormControl/FormControl.js +1 -1
  521. package/node/FormControl/formControlClasses.js +1 -1
  522. package/node/FormControl/index.js +4 -4
  523. package/node/FormControlLabel/FormControlLabel.js +3 -3
  524. package/node/FormControlLabel/formControlLabelClasses.js +1 -1
  525. package/node/FormGroup/FormGroup.js +1 -1
  526. package/node/FormGroup/formGroupClasses.js +1 -1
  527. package/node/FormHelperText/FormHelperText.js +1 -1
  528. package/node/FormHelperText/formHelperTextClasses.js +1 -1
  529. package/node/FormLabel/FormLabel.js +1 -1
  530. package/node/FormLabel/formLabelClasses.js +1 -1
  531. package/node/Grid/Grid.js +63 -26
  532. package/node/Grid/gridClasses.js +1 -1
  533. package/node/Grow/Grow.js +1 -1
  534. package/node/Hidden/hiddenCssClasses.js +1 -1
  535. package/node/Hidden/withWidth.js +1 -1
  536. package/node/Icon/Icon.js +1 -1
  537. package/node/Icon/iconClasses.js +1 -1
  538. package/node/IconButton/IconButton.js +1 -1
  539. package/node/IconButton/iconButtonClasses.js +1 -1
  540. package/node/ImageList/ImageList.js +1 -1
  541. package/node/ImageList/imageListClasses.js +1 -1
  542. package/node/ImageListItem/ImageListItem.js +1 -1
  543. package/node/ImageListItem/imageListItemClasses.js +1 -1
  544. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  545. package/node/ImageListItemBar/imageListItemBarClasses.js +1 -1
  546. package/node/Input/Input.js +1 -1
  547. package/node/Input/inputClasses.js +1 -1
  548. package/node/InputAdornment/InputAdornment.js +1 -1
  549. package/node/InputAdornment/inputAdornmentClasses.js +1 -1
  550. package/node/InputBase/InputBase.js +7 -15
  551. package/node/InputBase/inputBaseClasses.js +1 -1
  552. package/node/InputBase/utils.js +1 -1
  553. package/node/InputLabel/InputLabel.js +1 -1
  554. package/node/InputLabel/inputLabelClasses.js +1 -1
  555. package/node/LinearProgress/LinearProgress.js +1 -1
  556. package/node/LinearProgress/linearProgressClasses.js +1 -1
  557. package/node/Link/Link.js +1 -1
  558. package/node/Link/linkClasses.js +1 -1
  559. package/node/List/List.js +1 -1
  560. package/node/List/listClasses.js +1 -1
  561. package/node/ListItem/ListItem.js +2 -2
  562. package/node/ListItem/listItemClasses.js +1 -1
  563. package/node/ListItemAvatar/ListItemAvatar.js +1 -1
  564. package/node/ListItemAvatar/listItemAvatarClasses.js +1 -1
  565. package/node/ListItemButton/ListItemButton.js +2 -2
  566. package/node/ListItemButton/listItemButtonClasses.js +1 -1
  567. package/node/ListItemIcon/ListItemIcon.js +1 -1
  568. package/node/ListItemIcon/listItemIconClasses.js +1 -1
  569. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  570. package/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js +1 -1
  571. package/node/ListItemText/ListItemText.js +1 -1
  572. package/node/ListItemText/listItemTextClasses.js +1 -1
  573. package/node/ListSubheader/ListSubheader.js +1 -1
  574. package/node/ListSubheader/listSubheaderClasses.js +1 -1
  575. package/node/Menu/Menu.js +1 -1
  576. package/node/Menu/menuClasses.js +1 -1
  577. package/node/MenuItem/MenuItem.js +6 -3
  578. package/node/MenuItem/menuItemClasses.js +1 -1
  579. package/node/MobileStepper/MobileStepper.js +1 -1
  580. package/node/MobileStepper/mobileStepperClasses.js +1 -1
  581. package/node/Modal/Modal.js +2 -2
  582. package/node/NativeSelect/NativeSelect.js +1 -1
  583. package/node/NativeSelect/NativeSelectInput.js +1 -1
  584. package/node/NativeSelect/nativeSelectClasses.js +1 -1
  585. package/node/OutlinedInput/NotchedOutline.js +6 -1
  586. package/node/OutlinedInput/OutlinedInput.js +1 -1
  587. package/node/OutlinedInput/outlinedInputClasses.js +1 -1
  588. package/node/Pagination/Pagination.js +1 -1
  589. package/node/Pagination/paginationClasses.js +1 -1
  590. package/node/PaginationItem/PaginationItem.js +35 -14
  591. package/node/PaginationItem/paginationItemClasses.js +1 -1
  592. package/node/Paper/Paper.js +1 -1
  593. package/node/Paper/paperClasses.js +1 -1
  594. package/node/Popover/Popover.js +3 -3
  595. package/node/Popover/popoverClasses.js +1 -1
  596. package/node/Popper/index.js +1 -1
  597. package/node/Radio/Radio.js +1 -1
  598. package/node/Radio/radioClasses.js +1 -1
  599. package/node/RadioGroup/RadioGroupContext.js +1 -1
  600. package/node/Rating/Rating.js +1 -2
  601. package/node/Rating/ratingClasses.js +1 -1
  602. package/node/ScopedCssBaseline/ScopedCssBaseline.js +21 -11
  603. package/node/ScopedCssBaseline/scopedCssBaselineClasses.js +1 -1
  604. package/node/Select/Select.js +1 -1
  605. package/node/Select/selectClasses.js +1 -1
  606. package/node/Skeleton/Skeleton.js +1 -1
  607. package/node/Skeleton/skeletonClasses.js +1 -1
  608. package/node/Slide/Slide.js +2 -2
  609. package/node/Slider/Slider.js +2 -2
  610. package/node/Snackbar/Snackbar.js +3 -3
  611. package/node/Snackbar/snackbarClasses.js +1 -1
  612. package/node/SnackbarContent/SnackbarContent.js +1 -1
  613. package/node/SnackbarContent/snackbarContentClasses.js +1 -1
  614. package/node/SpeedDial/SpeedDial.js +1 -1
  615. package/node/SpeedDial/speedDialClasses.js +1 -1
  616. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  617. package/node/SpeedDialAction/speedDialActionClasses.js +1 -1
  618. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
  619. package/node/SpeedDialIcon/speedDialIconClasses.js +1 -1
  620. package/node/Stack/Stack.js +6 -3
  621. package/node/Step/Step.js +1 -1
  622. package/node/Step/stepClasses.js +1 -1
  623. package/node/StepButton/StepButton.js +1 -1
  624. package/node/StepButton/stepButtonClasses.js +1 -1
  625. package/node/StepConnector/StepConnector.js +1 -1
  626. package/node/StepConnector/stepConnectorClasses.js +1 -1
  627. package/node/StepContent/StepContent.js +1 -1
  628. package/node/StepContent/stepContentClasses.js +1 -1
  629. package/node/StepIcon/StepIcon.js +1 -1
  630. package/node/StepIcon/stepIconClasses.js +1 -1
  631. package/node/StepLabel/StepLabel.js +1 -1
  632. package/node/StepLabel/stepLabelClasses.js +1 -1
  633. package/node/Stepper/Stepper.js +1 -1
  634. package/node/Stepper/stepperClasses.js +1 -1
  635. package/node/SvgIcon/SvgIcon.js +1 -1
  636. package/node/SvgIcon/svgIconClasses.js +1 -1
  637. package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
  638. package/node/Switch/Switch.js +1 -1
  639. package/node/Switch/switchClasses.js +1 -1
  640. package/node/Tab/Tab.js +34 -10
  641. package/node/Tab/tabClasses.js +2 -2
  642. package/node/TabScrollButton/TabScrollButton.js +1 -1
  643. package/node/TabScrollButton/tabScrollButtonClasses.js +1 -1
  644. package/node/Table/Table.js +1 -1
  645. package/node/Table/tableClasses.js +1 -1
  646. package/node/TableBody/TableBody.js +1 -1
  647. package/node/TableBody/tableBodyClasses.js +1 -1
  648. package/node/TableCell/TableCell.js +1 -1
  649. package/node/TableCell/tableCellClasses.js +1 -1
  650. package/node/TableContainer/TableContainer.js +1 -1
  651. package/node/TableContainer/tableContainerClasses.js +1 -1
  652. package/node/TableFooter/TableFooter.js +1 -1
  653. package/node/TableFooter/tableFooterClasses.js +1 -1
  654. package/node/TableHead/TableHead.js +1 -1
  655. package/node/TableHead/tableHeadClasses.js +1 -1
  656. package/node/TablePagination/TablePagination.js +1 -1
  657. package/node/TablePagination/tablePaginationClasses.js +1 -1
  658. package/node/TableRow/TableRow.js +1 -1
  659. package/node/TableRow/tableRowClasses.js +1 -1
  660. package/node/TableSortLabel/TableSortLabel.js +1 -1
  661. package/node/TableSortLabel/tableSortLabelClasses.js +1 -1
  662. package/node/Tabs/Tabs.js +1 -1
  663. package/node/Tabs/tabsClasses.js +1 -1
  664. package/node/TextField/TextField.js +1 -1
  665. package/node/TextField/textFieldClasses.js +1 -1
  666. package/node/TextareaAutosize/index.js +1 -1
  667. package/node/ToggleButton/ToggleButton.js +1 -1
  668. package/node/ToggleButton/toggleButtonClasses.js +1 -1
  669. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  670. package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  671. package/node/Toolbar/Toolbar.js +1 -1
  672. package/node/Toolbar/toolbarClasses.js +1 -1
  673. package/node/Tooltip/Tooltip.js +8 -6
  674. package/node/Tooltip/tooltipClasses.js +1 -1
  675. package/node/Typography/Typography.js +1 -1
  676. package/node/Typography/typographyClasses.js +1 -1
  677. package/node/Zoom/Zoom.js +1 -1
  678. package/node/colors/index.js +40 -40
  679. package/node/index.js +32 -32
  680. package/node/internal/switchBaseClasses.js +1 -1
  681. package/node/locale/index.js +1 -1
  682. package/node/styles/createPalette.js +3 -2
  683. package/node/styles/createTransitions.js +1 -1
  684. package/node/styles/cssUtils.js +4 -4
  685. package/node/styles/index.js +66 -54
  686. package/node/styles/styled.js +1 -1
  687. package/node/useAutocomplete/index.js +4 -4
  688. package/node/utils/index.js +9 -1
  689. package/package.json +9 -9
  690. package/styles/components.d.ts +0 -3
  691. package/styles/createPalette.js +1 -1
  692. package/styles/index.d.ts +4 -0
  693. package/styles/index.js +1 -1
  694. package/umd/material-ui.development.js +9065 -8295
  695. package/umd/material-ui.production.min.js +21 -21
  696. package/utils/index.d.ts +1 -0
  697. package/utils/index.js +2 -1
  698. package/ClickAwayListener/ClickAwayListener.d.ts +0 -47
  699. package/ClickAwayListener/ClickAwayListener.js +0 -196
  700. package/Popper/Popper.d.ts +0 -97
  701. package/Popper/Popper.js +0 -354
  702. package/TextareaAutosize/TextareaAutosize.d.ts +0 -27
  703. package/TextareaAutosize/TextareaAutosize.js +0 -224
  704. package/legacy/ClickAwayListener/ClickAwayListener.js +0 -199
  705. package/legacy/Popper/Popper.js +0 -359
  706. package/legacy/TextareaAutosize/TextareaAutosize.js +0 -226
  707. package/modern/ClickAwayListener/ClickAwayListener.js +0 -196
  708. package/modern/Popper/Popper.js +0 -354
  709. package/modern/TextareaAutosize/TextareaAutosize.js +0 -224
  710. package/node/ClickAwayListener/ClickAwayListener.js +0 -216
  711. package/node/Popper/Popper.js +0 -378
  712. package/node/TextareaAutosize/TextareaAutosize.js +0 -245
@@ -1,23 +1,24 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
-
3
- var _GlobalStyles;
4
-
5
2
  import * as React from 'react';
6
3
  import PropTypes from 'prop-types';
7
4
  import useThemeProps from '../styles/useThemeProps';
8
5
  import GlobalStyles from '../GlobalStyles';
9
6
  import { jsx as _jsx } from "react/jsx-runtime";
10
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
- export var html = {
12
- WebkitFontSmoothing: 'antialiased',
13
- // Antialiasing.
14
- MozOsxFontSmoothing: 'grayscale',
15
- // Antialiasing.
16
- // Change from `box-sizing: content-box` so that `width`
17
- // is not affected by `padding` or `border`.
18
- boxSizing: 'border-box',
19
- // Fix font resize problem in iOS
20
- WebkitTextSizeAdjust: '100%'
8
+ export var html = function html(theme, enableColorScheme) {
9
+ return _extends({
10
+ WebkitFontSmoothing: 'antialiased',
11
+ // Antialiasing.
12
+ MozOsxFontSmoothing: 'grayscale',
13
+ // Antialiasing.
14
+ // Change from `box-sizing: content-box` so that `width`
15
+ // is not affected by `padding` or `border`.
16
+ boxSizing: 'border-box',
17
+ // Fix font resize problem in iOS
18
+ WebkitTextSizeAdjust: '100%'
19
+ }, enableColorScheme && {
20
+ colorScheme: theme.palette.mode
21
+ });
21
22
  };
22
23
  export var body = function body(theme) {
23
24
  return _extends({
@@ -30,11 +31,13 @@ export var body = function body(theme) {
30
31
  }
31
32
  });
32
33
  };
33
- export var styles = function styles(theme) {
34
+
35
+ var _styles = function styles(theme) {
34
36
  var _theme$components, _theme$components$Mui;
35
37
 
38
+ var enableColorScheme = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
36
39
  var defaultStyles = {
37
- html: html,
40
+ html: html(theme, enableColorScheme),
38
41
  '*, *::before, *::after': {
39
42
  boxSizing: 'inherit'
40
43
  },
@@ -63,16 +66,23 @@ export var styles = function styles(theme) {
63
66
  * Kickstart an elegant, consistent, and simple baseline to build upon.
64
67
  */
65
68
 
69
+
70
+ export { _styles as styles };
71
+
66
72
  function CssBaseline(inProps) {
67
73
  var props = useThemeProps({
68
74
  props: inProps,
69
75
  name: 'MuiCssBaseline'
70
76
  });
71
- var children = props.children;
77
+ var children = props.children,
78
+ _props$enableColorSch = props.enableColorScheme,
79
+ enableColorScheme = _props$enableColorSch === void 0 ? false : _props$enableColorSch;
72
80
  return /*#__PURE__*/_jsxs(React.Fragment, {
73
- children: [_GlobalStyles || (_GlobalStyles = /*#__PURE__*/_jsx(GlobalStyles, {
74
- styles: styles
75
- })), children]
81
+ children: [/*#__PURE__*/_jsx(GlobalStyles, {
82
+ styles: function styles(theme) {
83
+ return _styles(theme, enableColorScheme);
84
+ }
85
+ }), children]
76
86
  });
77
87
  }
78
88
 
@@ -87,6 +97,14 @@ process.env.NODE_ENV !== "production" ? CssBaseline.propTypes
87
97
  /**
88
98
  * You can wrap a node.
89
99
  */
90
- children: PropTypes.node
100
+ children: PropTypes.node,
101
+
102
+ /**
103
+ * Enable `color-scheme` css property to use `theme.palette.mode`.
104
+ * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
105
+ * For browser support, check out https://caniuse.com/?search=color-scheme
106
+ * @default false
107
+ */
108
+ enableColorScheme: PropTypes.bool
91
109
  } : void 0;
92
110
  export default CssBaseline;
@@ -387,7 +387,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
387
387
  /**
388
388
  * The system prop that allows defining system overrides as well as additional CSS styles.
389
389
  */
390
- sx: PropTypes.object,
390
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
391
391
 
392
392
  /**
393
393
  * The component used for the transition.
@@ -93,6 +93,6 @@ process.env.NODE_ENV !== "production" ? DialogActions.propTypes
93
93
  /**
94
94
  * The system prop that allows defining system overrides as well as additional CSS styles.
95
95
  */
96
- sx: PropTypes.object
96
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
97
97
  } : void 0;
98
98
  export default DialogActions;
@@ -1,4 +1,5 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
3
  import _extends from "@babel/runtime/helpers/esm/extends";
3
4
  import * as React from 'react';
4
5
  import PropTypes from 'prop-types';
@@ -7,6 +8,7 @@ import { unstable_composeClasses as composeClasses } from '@mui/core';
7
8
  import styled from '../styles/styled';
8
9
  import useThemeProps from '../styles/useThemeProps';
9
10
  import { getDialogContentUtilityClass } from './dialogContentClasses';
11
+ import dialogTitleClasses from '../DialogTitle/dialogTitleClasses';
10
12
  import { jsx as _jsx } from "react/jsx-runtime";
11
13
 
12
14
  var useUtilityClasses = function useUtilityClasses(ownerState) {
@@ -38,11 +40,9 @@ var DialogContentRoot = styled('div', {
38
40
  padding: '16px 24px',
39
41
  borderTop: "1px solid ".concat(theme.palette.divider),
40
42
  borderBottom: "1px solid ".concat(theme.palette.divider)
41
- } : {
42
- '.MuiDialogTitle-root + &': {
43
- paddingTop: 0
44
- }
45
- });
43
+ } : _defineProperty({}, ".".concat(dialogTitleClasses.root, " + &"), {
44
+ paddingTop: 0
45
+ }));
46
46
  });
47
47
  var DialogContent = /*#__PURE__*/React.forwardRef(function DialogContent(inProps, ref) {
48
48
  var props = useThemeProps({
@@ -98,6 +98,6 @@ process.env.NODE_ENV !== "production" ? DialogContent.propTypes
98
98
  /**
99
99
  * The system prop that allows defining system overrides as well as additional CSS styles.
100
100
  */
101
- sx: PropTypes.object
101
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
102
102
  } : void 0;
103
103
  export default DialogContent;
@@ -69,6 +69,6 @@ process.env.NODE_ENV !== "production" ? DialogContentText.propTypes
69
69
  /**
70
70
  * The system prop that allows defining system overrides as well as additional CSS styles.
71
71
  */
72
- sx: PropTypes.object
72
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
73
73
  } : void 0;
74
74
  export default DialogContentText;
@@ -86,6 +86,6 @@ process.env.NODE_ENV !== "production" ? DialogTitle.propTypes
86
86
  /**
87
87
  * The system prop that allows defining system overrides as well as additional CSS styles.
88
88
  */
89
- sx: PropTypes.object
89
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
90
90
  } : void 0;
91
91
  export default DialogTitle;
@@ -251,7 +251,7 @@ process.env.NODE_ENV !== "production" ? Divider.propTypes
251
251
  /**
252
252
  * The system prop that allows defining system overrides as well as additional CSS styles.
253
253
  */
254
- sx: PropTypes.object,
254
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
255
255
 
256
256
  /**
257
257
  * The text alignment.
@@ -312,7 +312,7 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes
312
312
  /**
313
313
  * The system prop that allows defining system overrides as well as additional CSS styles.
314
314
  */
315
- sx: PropTypes.object,
315
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
316
316
 
317
317
  /**
318
318
  * The duration for the transition, in milliseconds.
package/legacy/Fab/Fab.js CHANGED
@@ -240,7 +240,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes
240
240
  /**
241
241
  * The system prop that allows defining system overrides as well as additional CSS styles.
242
242
  */
243
- sx: PropTypes.object,
243
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
244
244
 
245
245
  /**
246
246
  * The variant to use.
@@ -159,7 +159,7 @@ process.env.NODE_ENV !== "production" ? Fade.propTypes
159
159
  /**
160
160
  * A single child content element.
161
161
  */
162
- children: elementAcceptingRef,
162
+ children: elementAcceptingRef.isRequired,
163
163
 
164
164
  /**
165
165
  * The transition timing function.
@@ -387,7 +387,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
387
387
  /**
388
388
  * The system prop that allows defining system overrides as well as additional CSS styles.
389
389
  */
390
- sx: PropTypes.object,
390
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
391
391
 
392
392
  /**
393
393
  * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
@@ -328,7 +328,7 @@ process.env.NODE_ENV !== "production" ? FormControl.propTypes
328
328
  /**
329
329
  * The system prop that allows defining system overrides as well as additional CSS styles.
330
330
  */
331
- sx: PropTypes.object,
331
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
332
332
 
333
333
  /**
334
334
  * The variant to use.
@@ -179,9 +179,9 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
179
179
  inputRef: refType,
180
180
 
181
181
  /**
182
- * The text to be used in an enclosing label element.
182
+ * A text or an element to be used in an enclosing label element.
183
183
  */
184
- label: PropTypes.node,
184
+ label: PropTypes.oneOfType([PropTypes.element, PropTypes.number, PropTypes.string]).isRequired,
185
185
 
186
186
  /**
187
187
  * The position of the label.
@@ -205,7 +205,7 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
205
205
  /**
206
206
  * The system prop that allows defining system overrides as well as additional CSS styles.
207
207
  */
208
- sx: PropTypes.object,
208
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
209
209
 
210
210
  /**
211
211
  * The value of the component.
@@ -95,6 +95,6 @@ process.env.NODE_ENV !== "production" ? FormGroup.propTypes
95
95
  /**
96
96
  * The system prop that allows defining system overrides as well as additional CSS styles.
97
97
  */
98
- sx: PropTypes.object
98
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
99
99
  } : void 0;
100
100
  export default FormGroup;
@@ -181,7 +181,7 @@ process.env.NODE_ENV !== "production" ? FormHelperText.propTypes
181
181
  /**
182
182
  * The system prop that allows defining system overrides as well as additional CSS styles.
183
183
  */
184
- sx: PropTypes.object,
184
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
185
185
 
186
186
  /**
187
187
  * The variant to use.
@@ -180,6 +180,6 @@ process.env.NODE_ENV !== "production" ? FormLabel.propTypes
180
180
  /**
181
181
  * The system prop that allows defining system overrides as well as additional CSS styles.
182
182
  */
183
- sx: PropTypes.object
183
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
184
184
  } : void 0;
185
185
  export default FormLabel;
@@ -1,6 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _typeof from "@babel/runtime/helpers/esm/typeof";
4
5
  // A grid component using the following libs as inspiration.
5
6
  //
6
7
  // For the implementation:
@@ -55,10 +56,11 @@ function generateGrid(globalStyles, theme, breakpoint, ownerState) {
55
56
  } else {
56
57
  var columnsBreakpointValues = resolveBreakpointValues({
57
58
  values: ownerState.columns,
58
- base: theme.breakpoints.values
59
- }); // Keep 7 significant numbers.
59
+ breakpoints: theme.breakpoints.values
60
+ });
61
+ var columnValue = _typeof(columnsBreakpointValues) === 'object' ? columnsBreakpointValues[breakpoint] : columnsBreakpointValues; // Keep 7 significant numbers.
60
62
 
61
- var width = "".concat(Math.round(size / columnsBreakpointValues[breakpoint] * 10e7) / 10e5, "%");
63
+ var width = "".concat(Math.round(size / columnValue * 10e7) / 10e5, "%");
62
64
  var more = {};
63
65
 
64
66
  if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {
@@ -90,12 +92,16 @@ function generateGrid(globalStyles, theme, breakpoint, ownerState) {
90
92
  }
91
93
  }
92
94
 
93
- function generateDirection(_ref) {
95
+ export function generateDirection(_ref) {
94
96
  var theme = _ref.theme,
95
97
  ownerState = _ref.ownerState;
98
+ var directionValues = resolveBreakpointValues({
99
+ values: ownerState.direction,
100
+ breakpoints: theme.breakpoints.values
101
+ });
96
102
  return handleBreakpoints({
97
103
  theme: theme
98
- }, ownerState.direction, function (propValue) {
104
+ }, directionValues, function (propValue) {
99
105
  var output = {
100
106
  flexDirection: propValue
101
107
  };
@@ -109,7 +115,6 @@ function generateDirection(_ref) {
109
115
  return output;
110
116
  });
111
117
  }
112
-
113
118
  export function generateRowGap(_ref2) {
114
119
  var theme = _ref2.theme,
115
120
  ownerState = _ref2.ownerState;
@@ -118,9 +123,13 @@ export function generateRowGap(_ref2) {
118
123
  var styles = {};
119
124
 
120
125
  if (container && rowSpacing !== 0) {
126
+ var rowSpacingValues = resolveBreakpointValues({
127
+ values: rowSpacing,
128
+ breakpoints: theme.breakpoints.values
129
+ });
121
130
  styles = handleBreakpoints({
122
131
  theme: theme
123
- }, rowSpacing, function (propValue) {
132
+ }, rowSpacingValues, function (propValue) {
124
133
  var themeSpacing = theme.spacing(propValue);
125
134
 
126
135
  if (themeSpacing !== '0px') {
@@ -145,9 +154,13 @@ export function generateColumnGap(_ref4) {
145
154
  var styles = {};
146
155
 
147
156
  if (container && columnSpacing !== 0) {
157
+ var columnSpacingValues = resolveBreakpointValues({
158
+ values: columnSpacing,
159
+ breakpoints: theme.breakpoints.values
160
+ });
148
161
  styles = handleBreakpoints({
149
162
  theme: theme
150
- }, columnSpacing, function (propValue) {
163
+ }, columnSpacingValues, function (propValue) {
151
164
  var themeSpacing = theme.spacing(propValue);
152
165
 
153
166
  if (themeSpacing !== '0px') {
@@ -244,8 +257,7 @@ var Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
244
257
  var props = extendSxProp(themeProps);
245
258
 
246
259
  var className = props.className,
247
- _props$columns = props.columns,
248
- columnsProp = _props$columns === void 0 ? 12 : _props$columns,
260
+ columnsProp = props.columns,
249
261
  columnSpacingProp = props.columnSpacing,
250
262
  _props$component = props.component,
251
263
  component = _props$component === void 0 ? 'div' : _props$component,
@@ -276,7 +288,10 @@ var Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
276
288
 
277
289
  var rowSpacing = rowSpacingProp || spacing;
278
290
  var columnSpacing = columnSpacingProp || spacing;
279
- var columns = React.useContext(GridContext) || columnsProp;
291
+ var columnsContext = React.useContext(GridContext); // setting prop before context to accomodate nesting
292
+ // colums set with default breakpoint unit of 12
293
+
294
+ var columns = columnsProp || columnsContext || 12;
280
295
 
281
296
  var ownerState = _extends({}, props, {
282
297
  columns: columns,
@@ -373,18 +388,26 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
373
388
  item: PropTypes.bool,
374
389
 
375
390
  /**
376
- * Defines the number of grids the component is going to use.
377
- * It's applied for the `lg` breakpoint and wider screens if not overridden.
391
+ * If a number, it sets the number of columns the grid item uses.
392
+ * It can't be greater than the total number of columns of the container (12 by default).
393
+ * If 'auto', the grid item's width matches its content.
394
+ * If false, the prop is ignored.
395
+ * If true, the grid item's width grows to use the space available in the grid container.
396
+ * The value is applied for the `lg` breakpoint and wider screens if not overridden.
378
397
  * @default false
379
398
  */
380
- lg: PropTypes.oneOfType([PropTypes.oneOf(['auto', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), PropTypes.bool]),
399
+ lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
381
400
 
382
401
  /**
383
- * Defines the number of grids the component is going to use.
384
- * It's applied for the `md` breakpoint and wider screens if not overridden.
402
+ * If a number, it sets the number of columns the grid item uses.
403
+ * It can't be greater than the total number of columns of the container (12 by default).
404
+ * If 'auto', the grid item's width matches its content.
405
+ * If false, the prop is ignored.
406
+ * If true, the grid item's width grows to use the space available in the grid container.
407
+ * The value is applied for the `md` breakpoint and wider screens if not overridden.
385
408
  * @default false
386
409
  */
387
- md: PropTypes.oneOfType([PropTypes.oneOf(['auto', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), PropTypes.bool]),
410
+ md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
388
411
 
389
412
  /**
390
413
  * Defines the vertical space between the type `item` components.
@@ -393,11 +416,15 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
393
416
  rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
394
417
 
395
418
  /**
396
- * Defines the number of grids the component is going to use.
397
- * It's applied for the `sm` breakpoint and wider screens if not overridden.
419
+ * If a number, it sets the number of columns the grid item uses.
420
+ * It can't be greater than the total number of columns of the container (12 by default).
421
+ * If 'auto', the grid item's width matches its content.
422
+ * If false, the prop is ignored.
423
+ * If true, the grid item's width grows to use the space available in the grid container.
424
+ * The value is applied for the `sm` breakpoint and wider screens if not overridden.
398
425
  * @default false
399
426
  */
400
- sm: PropTypes.oneOfType([PropTypes.oneOf(['auto', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), PropTypes.bool]),
427
+ sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
401
428
 
402
429
  /**
403
430
  * Defines the space between the type `item` components.
@@ -409,7 +436,7 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
409
436
  /**
410
437
  * The system prop that allows defining system overrides as well as additional CSS styles.
411
438
  */
412
- sx: PropTypes.object,
439
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
413
440
 
414
441
  /**
415
442
  * Defines the `flex-wrap` style property.
@@ -419,18 +446,26 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes
419
446
  wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
420
447
 
421
448
  /**
422
- * Defines the number of grids the component is going to use.
423
- * It's applied for the `xl` breakpoint and wider screens.
449
+ * If a number, it sets the number of columns the grid item uses.
450
+ * It can't be greater than the total number of columns of the container (12 by default).
451
+ * If 'auto', the grid item's width matches its content.
452
+ * If false, the prop is ignored.
453
+ * If true, the grid item's width grows to use the space available in the grid container.
454
+ * The value is applied for the `xl` breakpoint and wider screens if not overridden.
424
455
  * @default false
425
456
  */
426
- xl: PropTypes.oneOfType([PropTypes.oneOf(['auto', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), PropTypes.bool]),
457
+ xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
427
458
 
428
459
  /**
429
- * Defines the number of grids the component is going to use.
430
- * It's applied for all the screen sizes with the lowest priority.
460
+ * If a number, it sets the number of columns the grid item uses.
461
+ * It can't be greater than the total number of columns of the container (12 by default).
462
+ * If 'auto', the grid item's width matches its content.
463
+ * If false, the prop is ignored.
464
+ * If true, the grid item's width grows to use the space available in the grid container.
465
+ * The value is applied for all the screen sizes with the lowest priority.
431
466
  * @default false
432
467
  */
433
- xs: PropTypes.oneOfType([PropTypes.oneOf(['auto', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), PropTypes.bool]),
468
+ xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
434
469
 
435
470
  /**
436
471
  * If `true`, it sets `min-width: 0` on the item.
@@ -213,7 +213,7 @@ process.env.NODE_ENV !== "production" ? Grow.propTypes
213
213
  /**
214
214
  * A single child content element.
215
215
  */
216
- children: elementAcceptingRef,
216
+ children: elementAcceptingRef.isRequired,
217
217
 
218
218
  /**
219
219
  * The transition timing function.
@@ -152,7 +152,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes
152
152
  /**
153
153
  * The system prop that allows defining system overrides as well as additional CSS styles.
154
154
  */
155
- sx: PropTypes.object
155
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
156
156
  } : void 0;
157
157
  Icon.muiName = 'Icon';
158
158
  export default Icon;
@@ -213,6 +213,6 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes
213
213
  /**
214
214
  * The system prop that allows defining system overrides as well as additional CSS styles.
215
215
  */
216
- sx: PropTypes.object
216
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
217
217
  } : void 0;
218
218
  export default IconButton;
@@ -162,7 +162,7 @@ process.env.NODE_ENV !== "production" ? ImageList.propTypes
162
162
  /**
163
163
  * The system prop that allows defining system overrides as well as additional CSS styles.
164
164
  */
165
- sx: PropTypes.object,
165
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
166
166
 
167
167
  /**
168
168
  * The variant to use.
@@ -179,6 +179,6 @@ process.env.NODE_ENV !== "production" ? ImageListItem.propTypes
179
179
  /**
180
180
  * The system prop that allows defining system overrides as well as additional CSS styles.
181
181
  */
182
- sx: PropTypes.object
182
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
183
183
  } : void 0;
184
184
  export default ImageListItem;
@@ -216,7 +216,7 @@ process.env.NODE_ENV !== "production" ? ImageListItemBar.propTypes
216
216
  /**
217
217
  * The system prop that allows defining system overrides as well as additional CSS styles.
218
218
  */
219
- sx: PropTypes.object,
219
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
220
220
 
221
221
  /**
222
222
  * Title to be displayed.
@@ -314,7 +314,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
314
314
  /**
315
315
  * The system prop that allows defining system overrides as well as additional CSS styles.
316
316
  */
317
- sx: PropTypes.object,
317
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
318
318
 
319
319
  /**
320
320
  * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
@@ -181,7 +181,7 @@ process.env.NODE_ENV !== "production" ? InputAdornment.propTypes
181
181
  /**
182
182
  * The system prop that allows defining system overrides as well as additional CSS styles.
183
183
  */
184
- sx: PropTypes.object,
184
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
185
185
 
186
186
  /**
187
187
  * The variant to use.
@@ -6,17 +6,15 @@ import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import clsx from 'clsx';
8
8
  import { refType, elementTypeAcceptingRef } from '@mui/utils';
9
- import { unstable_composeClasses as composeClasses, isHostComponent } from '@mui/core';
9
+ import { unstable_composeClasses as composeClasses, isHostComponent, TextareaAutosize } from '@mui/core';
10
10
  import formControlState from '../FormControl/formControlState';
11
11
  import FormControlContext from '../FormControl/FormControlContext';
12
12
  import useFormControl from '../FormControl/useFormControl';
13
13
  import styled from '../styles/styled';
14
14
  import useThemeProps from '../styles/useThemeProps';
15
- import useTheme from '../styles/useTheme';
16
15
  import capitalize from '../utils/capitalize';
17
16
  import useForkRef from '../utils/useForkRef';
18
17
  import useEnhancedEffect from '../utils/useEnhancedEffect';
19
- import TextareaAutosize from '../TextareaAutosize';
20
18
  import GlobalStyles from '../GlobalStyles';
21
19
  import { isFilled } from './utils';
22
20
  import inputBaseClasses, { getInputBaseUtilityClass } from './inputBaseClasses';
@@ -173,8 +171,7 @@ export var InputBaseComponent = styled('input', {
173
171
  paddingTop: 0
174
172
  }, ownerState.type === 'search' && {
175
173
  // Improve type search style.
176
- MozAppearance: 'textfield',
177
- WebkitAppearance: 'textfield'
174
+ MozAppearance: 'textfield'
178
175
  });
179
176
  });
180
177
 
@@ -249,7 +246,6 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
249
246
  valueProp = props.value,
250
247
  other = _objectWithoutProperties(props, ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"]);
251
248
 
252
- var theme = useTheme();
253
249
  var value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
254
250
 
255
251
  var _React$useRef = React.useRef(value != null),
@@ -464,8 +460,7 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
464
460
  inputProps = _extends({}, inputProps, componentsProps.input);
465
461
  return /*#__PURE__*/_jsxs(React.Fragment, {
466
462
  children: [inputGlobalStyles, /*#__PURE__*/_jsxs(Root, _extends({}, rootProps, !isHostComponent(Root) && {
467
- ownerState: _extends({}, ownerState, rootProps.ownerState),
468
- theme: theme
463
+ ownerState: _extends({}, ownerState, rootProps.ownerState)
469
464
  }, {
470
465
  ref: ref,
471
466
  onClick: handleClick
@@ -494,11 +489,10 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
494
489
  type: type
495
490
  }, inputProps, !isHostComponent(Input) && {
496
491
  as: InputComponent,
497
- ownerState: _extends({}, ownerState, inputProps.ownerState),
498
- theme: theme
492
+ ownerState: _extends({}, ownerState, inputProps.ownerState)
499
493
  }, {
500
494
  ref: handleInputRef,
501
- className: clsx(classes.input, inputProps.className, inputPropsProp.className),
495
+ className: clsx(classes.input, inputProps.className),
502
496
  onBlur: handleBlur,
503
497
  onChange: handleChange,
504
498
  onFocus: handleFocus
@@ -724,7 +718,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
724
718
  /**
725
719
  * The system prop that allows defining system overrides as well as additional CSS styles.
726
720
  */
727
- sx: PropTypes.object,
721
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
728
722
 
729
723
  /**
730
724
  * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
@@ -204,7 +204,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes
204
204
  /**
205
205
  * The system prop that allows defining system overrides as well as additional CSS styles.
206
206
  */
207
- sx: PropTypes.object,
207
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
208
208
 
209
209
  /**
210
210
  * The variant to use.