@mui/material 5.2.0 → 5.2.4

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 (637) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Accordion/Accordion.js +2 -2
  3. package/Accordion/accordionClasses.d.ts +18 -18
  4. package/AccordionActions/AccordionActions.js +1 -1
  5. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  6. package/AccordionDetails/AccordionDetails.js +1 -1
  7. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  8. package/AccordionSummary/AccordionSummary.js +2 -2
  9. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  10. package/Alert/Alert.js +1 -3
  11. package/Alert/alertClasses.d.ts +44 -44
  12. package/AlertTitle/AlertTitle.js +1 -1
  13. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  14. package/AppBar/AppBar.js +1 -1
  15. package/AppBar/appBarClasses.d.ts +28 -28
  16. package/Autocomplete/Autocomplete.js +1 -1
  17. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  18. package/Avatar/Avatar.d.ts +1 -1
  19. package/Avatar/Avatar.js +1 -1
  20. package/Avatar/avatarClasses.d.ts +20 -20
  21. package/AvatarGroup/AvatarGroup.d.ts +5 -0
  22. package/AvatarGroup/AvatarGroup.js +20 -5
  23. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  24. package/Backdrop/Backdrop.js +1 -1
  25. package/Badge/Badge.js +17 -4
  26. package/BottomNavigation/BottomNavigation.js +1 -1
  27. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  28. package/BottomNavigationAction/BottomNavigationAction.js +1 -1
  29. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  30. package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  31. package/Breadcrumbs/Breadcrumbs.js +1 -1
  32. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  33. package/Button/Button.js +16 -35
  34. package/Button/buttonClasses.d.ts +76 -76
  35. package/ButtonBase/ButtonBase.d.ts +1 -1
  36. package/ButtonBase/ButtonBase.js +2 -2
  37. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  38. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  39. package/ButtonGroup/ButtonGroup.js +1 -1
  40. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  41. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  42. package/CHANGELOG.md +244 -1
  43. package/Card/Card.js +1 -1
  44. package/Card/cardClasses.d.ts +8 -8
  45. package/CardActionArea/CardActionArea.js +1 -1
  46. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  47. package/CardActions/CardActions.js +1 -1
  48. package/CardActions/cardActionsClasses.d.ts +10 -10
  49. package/CardContent/CardContent.js +1 -1
  50. package/CardContent/cardContentClasses.d.ts +8 -8
  51. package/CardHeader/CardHeader.js +1 -1
  52. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  53. package/CardMedia/CardMedia.js +1 -1
  54. package/CardMedia/cardMediaClasses.d.ts +12 -12
  55. package/Checkbox/Checkbox.js +1 -1
  56. package/Checkbox/checkboxClasses.d.ts +18 -18
  57. package/Chip/Chip.js +1 -1
  58. package/Chip/chipClasses.d.ts +80 -80
  59. package/CircularProgress/CircularProgress.js +1 -1
  60. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  61. package/ClickAwayListener/index.d.ts +2 -2
  62. package/Collapse/Collapse.d.ts +1 -1
  63. package/Collapse/Collapse.js +1 -1
  64. package/Collapse/collapseClasses.d.ts +18 -18
  65. package/Container/Container.js +1 -1
  66. package/Container/containerClasses.d.ts +22 -22
  67. package/CssBaseline/CssBaseline.d.ts +2 -2
  68. package/CssBaseline/CssBaseline.js +1 -1
  69. package/Dialog/Dialog.d.ts +1 -1
  70. package/Dialog/Dialog.js +2 -2
  71. package/Dialog/DialogContext.d.ts +6 -6
  72. package/Dialog/dialogClasses.d.ts +36 -36
  73. package/DialogActions/DialogActions.js +1 -1
  74. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  75. package/DialogContent/DialogContent.js +1 -1
  76. package/DialogContent/dialogContentClasses.d.ts +10 -10
  77. package/DialogContentText/DialogContentText.js +1 -1
  78. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  79. package/DialogTitle/DialogTitle.js +1 -1
  80. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  81. package/Divider/Divider.js +1 -1
  82. package/Divider/dividerClasses.d.ts +34 -34
  83. package/Drawer/Drawer.js +1 -1
  84. package/Drawer/drawerClasses.d.ts +30 -30
  85. package/Fab/Fab.js +1 -1
  86. package/Fab/fabClasses.d.ts +26 -26
  87. package/Fade/Fade.d.ts +1 -1
  88. package/FilledInput/FilledInput.js +1 -1
  89. package/FilledInput/filledInputClasses.d.ts +40 -40
  90. package/FormControl/FormControl.js +1 -1
  91. package/FormControl/formControlClasses.d.ts +14 -14
  92. package/FormControlLabel/FormControlLabel.js +1 -1
  93. package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
  94. package/FormGroup/FormGroup.js +1 -1
  95. package/FormGroup/formGroupClasses.d.ts +10 -10
  96. package/FormHelperText/FormHelperText.js +1 -1
  97. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  98. package/FormLabel/FormLabel.js +1 -1
  99. package/FormLabel/formLabelClasses.d.ts +22 -22
  100. package/GlobalStyles/GlobalStyles.d.ts +2 -1
  101. package/Grid/Grid.js +98 -69
  102. package/Grid/gridClasses.d.ts +48 -48
  103. package/Grow/Grow.d.ts +1 -1
  104. package/Icon/Icon.js +1 -1
  105. package/Icon/iconClasses.d.ts +24 -24
  106. package/IconButton/IconButton.js +1 -1
  107. package/IconButton/iconButtonClasses.d.ts +26 -26
  108. package/ImageList/ImageList.js +1 -1
  109. package/ImageList/imageListClasses.d.ts +16 -16
  110. package/ImageListItem/ImageListItem.js +1 -1
  111. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  112. package/ImageListItemBar/ImageListItemBar.js +1 -1
  113. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  114. package/Input/Input.js +1 -1
  115. package/Input/inputClasses.d.ts +34 -34
  116. package/InputAdornment/InputAdornment.js +1 -1
  117. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  118. package/InputBase/InputBase.d.ts +6 -0
  119. package/InputBase/InputBase.js +11 -3
  120. package/InputBase/inputBaseClasses.d.ts +44 -44
  121. package/InputLabel/InputLabel.js +1 -1
  122. package/InputLabel/inputLabelClasses.d.ts +32 -32
  123. package/LinearProgress/LinearProgress.js +1 -1
  124. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  125. package/Link/Link.js +1 -1
  126. package/Link/linkClasses.d.ts +18 -18
  127. package/List/List.d.ts +12 -2
  128. package/List/List.js +1 -1
  129. package/List/listClasses.d.ts +14 -14
  130. package/ListItem/ListItem.d.ts +1 -1
  131. package/ListItem/ListItem.js +1 -1
  132. package/ListItem/listItemClasses.d.ts +30 -30
  133. package/ListItemAvatar/ListItemAvatar.js +1 -1
  134. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  135. package/ListItemButton/ListItemButton.d.ts +1 -1
  136. package/ListItemButton/ListItemButton.js +2 -2
  137. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  138. package/ListItemIcon/ListItemIcon.js +1 -1
  139. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  140. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  141. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  142. package/ListItemText/ListItemText.js +1 -1
  143. package/ListItemText/listItemTextClasses.d.ts +18 -18
  144. package/ListSubheader/ListSubheader.js +1 -1
  145. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  146. package/Menu/Menu.d.ts +1 -1
  147. package/Menu/Menu.js +2 -2
  148. package/Menu/menuClasses.d.ts +12 -12
  149. package/MenuItem/MenuItem.d.ts +1 -1
  150. package/MenuItem/MenuItem.js +2 -2
  151. package/MenuItem/menuItemClasses.d.ts +20 -20
  152. package/MenuList/MenuList.d.ts +47 -36
  153. package/MobileStepper/MobileStepper.js +1 -1
  154. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  155. package/Modal/Modal.js +1 -1
  156. package/NativeSelect/NativeSelect.js +1 -1
  157. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  158. package/OutlinedInput/OutlinedInput.js +15 -2
  159. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  160. package/Pagination/Pagination.js +1 -1
  161. package/Pagination/paginationClasses.d.ts +14 -14
  162. package/PaginationItem/PaginationItem.js +1 -1
  163. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  164. package/Paper/Paper.js +1 -1
  165. package/Paper/paperClasses.d.ts +39 -39
  166. package/Popover/Popover.d.ts +1 -1
  167. package/Popover/Popover.js +2 -2
  168. package/Popover/popoverClasses.d.ts +10 -10
  169. package/Popper/Popper.d.ts +17 -17
  170. package/README.md +9 -7
  171. package/Radio/Radio.js +1 -1
  172. package/Radio/radioClasses.d.ts +16 -16
  173. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  174. package/RadioGroup/useRadioGroup.d.ts +4 -4
  175. package/Rating/Rating.js +1 -1
  176. package/Rating/ratingClasses.d.ts +40 -40
  177. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
  178. package/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  179. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  180. package/Select/Select.js +1 -1
  181. package/Select/SelectInput.js +17 -1
  182. package/Select/selectClasses.d.ts +30 -30
  183. package/Skeleton/Skeleton.js +1 -1
  184. package/Skeleton/skeletonClasses.d.ts +24 -24
  185. package/Slide/Slide.d.ts +1 -1
  186. package/Slider/Slider.js +1 -1
  187. package/Snackbar/Snackbar.d.ts +5 -5
  188. package/Snackbar/Snackbar.js +62 -6
  189. package/Snackbar/snackbarClasses.d.ts +20 -20
  190. package/SnackbarContent/SnackbarContent.js +1 -1
  191. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  192. package/SpeedDial/SpeedDial.d.ts +1 -1
  193. package/SpeedDial/SpeedDial.js +2 -2
  194. package/SpeedDial/speedDialClasses.d.ts +22 -22
  195. package/SpeedDialAction/SpeedDialAction.js +1 -1
  196. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  197. package/SpeedDialIcon/SpeedDialIcon.js +1 -1
  198. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  199. package/Stack/Stack.js +1 -1
  200. package/Step/Step.js +1 -1
  201. package/Step/stepClasses.d.ts +16 -16
  202. package/StepButton/StepButton.js +1 -1
  203. package/StepButton/stepButtonClasses.d.ts +14 -14
  204. package/StepConnector/StepConnector.js +1 -1
  205. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  206. package/StepContent/StepContent.d.ts +1 -1
  207. package/StepContent/StepContent.js +2 -2
  208. package/StepContent/stepContentClasses.d.ts +12 -12
  209. package/StepIcon/StepIcon.js +1 -1
  210. package/StepIcon/stepIconClasses.d.ts +16 -16
  211. package/StepLabel/StepLabel.js +1 -1
  212. package/StepLabel/stepLabelClasses.d.ts +28 -28
  213. package/Stepper/Stepper.js +1 -1
  214. package/Stepper/stepperClasses.d.ts +14 -14
  215. package/SvgIcon/SvgIcon.js +1 -1
  216. package/SvgIcon/svgIconClasses.d.ts +24 -24
  217. package/Switch/Switch.js +1 -1
  218. package/Switch/switchClasses.d.ts +32 -32
  219. package/Tab/Tab.js +1 -1
  220. package/Tab/tabClasses.d.ts +26 -26
  221. package/TabScrollButton/TabScrollButton.js +1 -1
  222. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  223. package/Table/Table.js +1 -1
  224. package/Table/tableClasses.d.ts +10 -10
  225. package/TableBody/TableBody.js +1 -1
  226. package/TableBody/tableBodyClasses.d.ts +8 -8
  227. package/TableCell/TableCell.js +1 -1
  228. package/TableCell/tableCellClasses.d.ts +32 -32
  229. package/TableContainer/TableContainer.js +1 -1
  230. package/TableContainer/tableContainerClasses.d.ts +8 -8
  231. package/TableFooter/TableFooter.js +1 -1
  232. package/TableFooter/tableFooterClasses.d.ts +8 -8
  233. package/TableHead/TableHead.js +1 -1
  234. package/TableHead/tableHeadClasses.d.ts +8 -8
  235. package/TablePagination/TablePagination.js +1 -1
  236. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  237. package/TableRow/TableRow.js +1 -1
  238. package/TableRow/tableRowClasses.d.ts +16 -16
  239. package/TableSortLabel/TableSortLabel.js +1 -1
  240. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  241. package/Tabs/Tabs.js +1 -1
  242. package/Tabs/tabsClasses.d.ts +32 -32
  243. package/TextField/TextField.js +6 -12
  244. package/TextField/textFieldClasses.d.ts +8 -8
  245. package/ToggleButton/ToggleButton.js +1 -1
  246. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  247. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  248. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  249. package/Toolbar/Toolbar.js +1 -1
  250. package/Toolbar/toolbarClasses.d.ts +14 -14
  251. package/Tooltip/Tooltip.d.ts +1 -1
  252. package/Tooltip/Tooltip.js +2 -2
  253. package/Tooltip/tooltipClasses.d.ts +30 -30
  254. package/Typography/Typography.js +1 -1
  255. package/Typography/typographyClasses.d.ts +50 -50
  256. package/Zoom/Zoom.d.ts +1 -1
  257. package/darkScrollbar/index.d.ts +28 -28
  258. package/index.js +1 -1
  259. package/internal/switchBaseClasses.d.ts +12 -12
  260. package/legacy/Accordion/Accordion.js +2 -2
  261. package/legacy/AccordionActions/AccordionActions.js +1 -1
  262. package/legacy/AccordionDetails/AccordionDetails.js +1 -1
  263. package/legacy/AccordionSummary/AccordionSummary.js +2 -2
  264. package/legacy/Alert/Alert.js +1 -3
  265. package/legacy/AlertTitle/AlertTitle.js +1 -1
  266. package/legacy/AppBar/AppBar.js +1 -1
  267. package/legacy/Autocomplete/Autocomplete.js +1 -1
  268. package/legacy/Avatar/Avatar.js +1 -1
  269. package/legacy/AvatarGroup/AvatarGroup.js +19 -4
  270. package/legacy/Backdrop/Backdrop.js +1 -1
  271. package/legacy/Badge/Badge.js +19 -5
  272. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  273. package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
  274. package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
  275. package/legacy/Button/Button.js +23 -35
  276. package/legacy/ButtonBase/ButtonBase.js +2 -2
  277. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  278. package/legacy/Card/Card.js +1 -1
  279. package/legacy/CardActionArea/CardActionArea.js +1 -1
  280. package/legacy/CardActions/CardActions.js +1 -1
  281. package/legacy/CardContent/CardContent.js +1 -1
  282. package/legacy/CardHeader/CardHeader.js +1 -1
  283. package/legacy/CardMedia/CardMedia.js +1 -1
  284. package/legacy/Checkbox/Checkbox.js +1 -1
  285. package/legacy/Chip/Chip.js +1 -1
  286. package/legacy/CircularProgress/CircularProgress.js +1 -1
  287. package/legacy/Collapse/Collapse.js +1 -1
  288. package/legacy/Container/Container.js +1 -1
  289. package/legacy/CssBaseline/CssBaseline.js +1 -1
  290. package/legacy/Dialog/Dialog.js +2 -2
  291. package/legacy/DialogActions/DialogActions.js +1 -1
  292. package/legacy/DialogContent/DialogContent.js +1 -1
  293. package/legacy/DialogContentText/DialogContentText.js +1 -1
  294. package/legacy/DialogTitle/DialogTitle.js +1 -1
  295. package/legacy/Divider/Divider.js +1 -1
  296. package/legacy/Drawer/Drawer.js +1 -1
  297. package/legacy/Fab/Fab.js +1 -1
  298. package/legacy/FilledInput/FilledInput.js +1 -1
  299. package/legacy/FormControl/FormControl.js +1 -1
  300. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  301. package/legacy/FormGroup/FormGroup.js +1 -1
  302. package/legacy/FormHelperText/FormHelperText.js +1 -1
  303. package/legacy/FormLabel/FormLabel.js +1 -1
  304. package/legacy/Grid/Grid.js +109 -81
  305. package/legacy/Icon/Icon.js +1 -1
  306. package/legacy/IconButton/IconButton.js +1 -1
  307. package/legacy/ImageList/ImageList.js +1 -1
  308. package/legacy/ImageListItem/ImageListItem.js +1 -1
  309. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  310. package/legacy/Input/Input.js +1 -1
  311. package/legacy/InputAdornment/InputAdornment.js +1 -1
  312. package/legacy/InputBase/InputBase.js +11 -3
  313. package/legacy/InputLabel/InputLabel.js +1 -1
  314. package/legacy/LinearProgress/LinearProgress.js +1 -1
  315. package/legacy/Link/Link.js +1 -1
  316. package/legacy/List/List.js +1 -1
  317. package/legacy/ListItem/ListItem.js +1 -1
  318. package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
  319. package/legacy/ListItemButton/ListItemButton.js +2 -2
  320. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  321. package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  322. package/legacy/ListItemText/ListItemText.js +1 -1
  323. package/legacy/ListSubheader/ListSubheader.js +1 -1
  324. package/legacy/Menu/Menu.js +2 -2
  325. package/legacy/MenuItem/MenuItem.js +2 -2
  326. package/legacy/MobileStepper/MobileStepper.js +1 -1
  327. package/legacy/Modal/Modal.js +1 -1
  328. package/legacy/NativeSelect/NativeSelect.js +1 -1
  329. package/legacy/OutlinedInput/OutlinedInput.js +15 -2
  330. package/legacy/Pagination/Pagination.js +1 -1
  331. package/legacy/PaginationItem/PaginationItem.js +1 -1
  332. package/legacy/Paper/Paper.js +1 -1
  333. package/legacy/Popover/Popover.js +2 -2
  334. package/legacy/Radio/Radio.js +1 -1
  335. package/legacy/Rating/Rating.js +1 -1
  336. package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  337. package/legacy/Select/Select.js +1 -1
  338. package/legacy/Select/SelectInput.js +17 -1
  339. package/legacy/Skeleton/Skeleton.js +1 -1
  340. package/legacy/Slider/Slider.js +1 -1
  341. package/legacy/Snackbar/Snackbar.js +62 -6
  342. package/legacy/SnackbarContent/SnackbarContent.js +1 -1
  343. package/legacy/SpeedDial/SpeedDial.js +2 -2
  344. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
  345. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
  346. package/legacy/Stack/Stack.js +1 -1
  347. package/legacy/Step/Step.js +1 -1
  348. package/legacy/StepButton/StepButton.js +1 -1
  349. package/legacy/StepConnector/StepConnector.js +1 -1
  350. package/legacy/StepContent/StepContent.js +2 -2
  351. package/legacy/StepIcon/StepIcon.js +1 -1
  352. package/legacy/StepLabel/StepLabel.js +1 -1
  353. package/legacy/Stepper/Stepper.js +1 -1
  354. package/legacy/SvgIcon/SvgIcon.js +1 -1
  355. package/legacy/Switch/Switch.js +1 -1
  356. package/legacy/Tab/Tab.js +1 -1
  357. package/legacy/TabScrollButton/TabScrollButton.js +1 -1
  358. package/legacy/Table/Table.js +1 -1
  359. package/legacy/TableBody/TableBody.js +1 -1
  360. package/legacy/TableCell/TableCell.js +1 -1
  361. package/legacy/TableContainer/TableContainer.js +1 -1
  362. package/legacy/TableFooter/TableFooter.js +1 -1
  363. package/legacy/TableHead/TableHead.js +1 -1
  364. package/legacy/TablePagination/TablePagination.js +1 -1
  365. package/legacy/TableRow/TableRow.js +1 -1
  366. package/legacy/TableSortLabel/TableSortLabel.js +1 -1
  367. package/legacy/Tabs/Tabs.js +1 -1
  368. package/legacy/TextField/TextField.js +6 -12
  369. package/legacy/ToggleButton/ToggleButton.js +1 -1
  370. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  371. package/legacy/Toolbar/Toolbar.js +1 -1
  372. package/legacy/Tooltip/Tooltip.js +2 -2
  373. package/legacy/Typography/Typography.js +1 -1
  374. package/legacy/index.js +1 -1
  375. package/legacy/styles/adaptV4Theme.js +1 -1
  376. package/legacy/styles/index.js +1 -1
  377. package/legacy/styles/responsiveFontSizes.js +1 -1
  378. package/legacy/useMediaQuery/useMediaQuery.js +31 -83
  379. package/locale/index.d.ts +66 -66
  380. package/modern/Accordion/Accordion.js +2 -2
  381. package/modern/AccordionActions/AccordionActions.js +1 -1
  382. package/modern/AccordionDetails/AccordionDetails.js +1 -1
  383. package/modern/AccordionSummary/AccordionSummary.js +2 -2
  384. package/modern/Alert/Alert.js +1 -3
  385. package/modern/AlertTitle/AlertTitle.js +1 -1
  386. package/modern/AppBar/AppBar.js +1 -1
  387. package/modern/Autocomplete/Autocomplete.js +1 -1
  388. package/modern/Avatar/Avatar.js +1 -1
  389. package/modern/AvatarGroup/AvatarGroup.js +20 -5
  390. package/modern/Backdrop/Backdrop.js +1 -1
  391. package/modern/Badge/Badge.js +17 -4
  392. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  393. package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
  394. package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
  395. package/modern/Button/Button.js +16 -35
  396. package/modern/ButtonBase/ButtonBase.js +2 -2
  397. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  398. package/modern/Card/Card.js +1 -1
  399. package/modern/CardActionArea/CardActionArea.js +1 -1
  400. package/modern/CardActions/CardActions.js +1 -1
  401. package/modern/CardContent/CardContent.js +1 -1
  402. package/modern/CardHeader/CardHeader.js +1 -1
  403. package/modern/CardMedia/CardMedia.js +1 -1
  404. package/modern/Checkbox/Checkbox.js +1 -1
  405. package/modern/Chip/Chip.js +1 -1
  406. package/modern/CircularProgress/CircularProgress.js +1 -1
  407. package/modern/Collapse/Collapse.js +1 -1
  408. package/modern/Container/Container.js +1 -1
  409. package/modern/CssBaseline/CssBaseline.js +1 -1
  410. package/modern/Dialog/Dialog.js +2 -2
  411. package/modern/DialogActions/DialogActions.js +1 -1
  412. package/modern/DialogContent/DialogContent.js +1 -1
  413. package/modern/DialogContentText/DialogContentText.js +1 -1
  414. package/modern/DialogTitle/DialogTitle.js +1 -1
  415. package/modern/Divider/Divider.js +1 -1
  416. package/modern/Drawer/Drawer.js +1 -1
  417. package/modern/Fab/Fab.js +1 -1
  418. package/modern/FilledInput/FilledInput.js +1 -1
  419. package/modern/FormControl/FormControl.js +1 -1
  420. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  421. package/modern/FormGroup/FormGroup.js +1 -1
  422. package/modern/FormHelperText/FormHelperText.js +1 -1
  423. package/modern/FormLabel/FormLabel.js +1 -1
  424. package/modern/Grid/Grid.js +98 -69
  425. package/modern/Icon/Icon.js +1 -1
  426. package/modern/IconButton/IconButton.js +1 -1
  427. package/modern/ImageList/ImageList.js +1 -1
  428. package/modern/ImageListItem/ImageListItem.js +1 -1
  429. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  430. package/modern/Input/Input.js +1 -1
  431. package/modern/InputAdornment/InputAdornment.js +1 -1
  432. package/modern/InputBase/InputBase.js +11 -3
  433. package/modern/InputLabel/InputLabel.js +1 -1
  434. package/modern/LinearProgress/LinearProgress.js +1 -1
  435. package/modern/Link/Link.js +1 -1
  436. package/modern/List/List.js +1 -1
  437. package/modern/ListItem/ListItem.js +1 -1
  438. package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
  439. package/modern/ListItemButton/ListItemButton.js +2 -2
  440. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  441. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  442. package/modern/ListItemText/ListItemText.js +1 -1
  443. package/modern/ListSubheader/ListSubheader.js +1 -1
  444. package/modern/Menu/Menu.js +2 -2
  445. package/modern/MenuItem/MenuItem.js +2 -2
  446. package/modern/MobileStepper/MobileStepper.js +1 -1
  447. package/modern/Modal/Modal.js +1 -1
  448. package/modern/NativeSelect/NativeSelect.js +1 -1
  449. package/modern/OutlinedInput/OutlinedInput.js +15 -2
  450. package/modern/Pagination/Pagination.js +1 -1
  451. package/modern/PaginationItem/PaginationItem.js +1 -1
  452. package/modern/Paper/Paper.js +1 -1
  453. package/modern/Popover/Popover.js +2 -2
  454. package/modern/Radio/Radio.js +1 -1
  455. package/modern/Rating/Rating.js +1 -1
  456. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  457. package/modern/Select/Select.js +1 -1
  458. package/modern/Select/SelectInput.js +17 -1
  459. package/modern/Skeleton/Skeleton.js +1 -1
  460. package/modern/Slider/Slider.js +1 -1
  461. package/modern/Snackbar/Snackbar.js +62 -6
  462. package/modern/SnackbarContent/SnackbarContent.js +1 -1
  463. package/modern/SpeedDial/SpeedDial.js +2 -2
  464. package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
  465. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
  466. package/modern/Stack/Stack.js +1 -1
  467. package/modern/Step/Step.js +1 -1
  468. package/modern/StepButton/StepButton.js +1 -1
  469. package/modern/StepConnector/StepConnector.js +1 -1
  470. package/modern/StepContent/StepContent.js +2 -2
  471. package/modern/StepIcon/StepIcon.js +1 -1
  472. package/modern/StepLabel/StepLabel.js +1 -1
  473. package/modern/Stepper/Stepper.js +1 -1
  474. package/modern/SvgIcon/SvgIcon.js +1 -1
  475. package/modern/Switch/Switch.js +1 -1
  476. package/modern/Tab/Tab.js +1 -1
  477. package/modern/TabScrollButton/TabScrollButton.js +1 -1
  478. package/modern/Table/Table.js +1 -1
  479. package/modern/TableBody/TableBody.js +1 -1
  480. package/modern/TableCell/TableCell.js +1 -1
  481. package/modern/TableContainer/TableContainer.js +1 -1
  482. package/modern/TableFooter/TableFooter.js +1 -1
  483. package/modern/TableHead/TableHead.js +1 -1
  484. package/modern/TablePagination/TablePagination.js +1 -1
  485. package/modern/TableRow/TableRow.js +1 -1
  486. package/modern/TableSortLabel/TableSortLabel.js +1 -1
  487. package/modern/Tabs/Tabs.js +1 -1
  488. package/modern/TextField/TextField.js +6 -10
  489. package/modern/ToggleButton/ToggleButton.js +1 -1
  490. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  491. package/modern/Toolbar/Toolbar.js +1 -1
  492. package/modern/Tooltip/Tooltip.js +2 -2
  493. package/modern/Typography/Typography.js +1 -1
  494. package/modern/index.js +1 -1
  495. package/modern/styles/adaptV4Theme.js +1 -1
  496. package/modern/styles/index.js +1 -1
  497. package/modern/styles/responsiveFontSizes.js +1 -1
  498. package/modern/useMediaQuery/useMediaQuery.js +26 -65
  499. package/node/Accordion/Accordion.js +2 -2
  500. package/node/AccordionActions/AccordionActions.js +1 -1
  501. package/node/AccordionDetails/AccordionDetails.js +1 -1
  502. package/node/AccordionSummary/AccordionSummary.js +2 -2
  503. package/node/Alert/Alert.js +1 -3
  504. package/node/AlertTitle/AlertTitle.js +1 -1
  505. package/node/AppBar/AppBar.js +1 -1
  506. package/node/Autocomplete/Autocomplete.js +1 -1
  507. package/node/Avatar/Avatar.js +1 -1
  508. package/node/AvatarGroup/AvatarGroup.js +20 -5
  509. package/node/Backdrop/Backdrop.js +1 -1
  510. package/node/Badge/Badge.js +17 -4
  511. package/node/BottomNavigation/BottomNavigation.js +1 -1
  512. package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
  513. package/node/Breadcrumbs/Breadcrumbs.js +1 -1
  514. package/node/Button/Button.js +17 -34
  515. package/node/ButtonBase/ButtonBase.js +2 -2
  516. package/node/ButtonGroup/ButtonGroup.js +1 -1
  517. package/node/Card/Card.js +1 -1
  518. package/node/CardActionArea/CardActionArea.js +1 -1
  519. package/node/CardActions/CardActions.js +1 -1
  520. package/node/CardContent/CardContent.js +1 -1
  521. package/node/CardHeader/CardHeader.js +1 -1
  522. package/node/CardMedia/CardMedia.js +1 -1
  523. package/node/Checkbox/Checkbox.js +1 -1
  524. package/node/Chip/Chip.js +1 -1
  525. package/node/CircularProgress/CircularProgress.js +1 -1
  526. package/node/Collapse/Collapse.js +1 -1
  527. package/node/Container/Container.js +1 -1
  528. package/node/CssBaseline/CssBaseline.js +1 -1
  529. package/node/Dialog/Dialog.js +2 -2
  530. package/node/DialogActions/DialogActions.js +1 -1
  531. package/node/DialogContent/DialogContent.js +1 -1
  532. package/node/DialogContentText/DialogContentText.js +1 -1
  533. package/node/DialogTitle/DialogTitle.js +1 -1
  534. package/node/Divider/Divider.js +1 -1
  535. package/node/Drawer/Drawer.js +1 -1
  536. package/node/Fab/Fab.js +1 -1
  537. package/node/FilledInput/FilledInput.js +1 -1
  538. package/node/FormControl/FormControl.js +1 -1
  539. package/node/FormControlLabel/FormControlLabel.js +1 -1
  540. package/node/FormGroup/FormGroup.js +1 -1
  541. package/node/FormHelperText/FormHelperText.js +1 -1
  542. package/node/FormLabel/FormLabel.js +1 -1
  543. package/node/Grid/Grid.js +101 -68
  544. package/node/Icon/Icon.js +1 -1
  545. package/node/IconButton/IconButton.js +1 -1
  546. package/node/ImageList/ImageList.js +1 -1
  547. package/node/ImageListItem/ImageListItem.js +1 -1
  548. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  549. package/node/Input/Input.js +1 -1
  550. package/node/InputAdornment/InputAdornment.js +1 -1
  551. package/node/InputBase/InputBase.js +11 -3
  552. package/node/InputLabel/InputLabel.js +1 -1
  553. package/node/LinearProgress/LinearProgress.js +1 -1
  554. package/node/Link/Link.js +1 -1
  555. package/node/List/List.js +1 -1
  556. package/node/ListItem/ListItem.js +1 -1
  557. package/node/ListItemAvatar/ListItemAvatar.js +1 -1
  558. package/node/ListItemButton/ListItemButton.js +2 -2
  559. package/node/ListItemIcon/ListItemIcon.js +1 -1
  560. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  561. package/node/ListItemText/ListItemText.js +1 -1
  562. package/node/ListSubheader/ListSubheader.js +1 -1
  563. package/node/Menu/Menu.js +2 -2
  564. package/node/MenuItem/MenuItem.js +2 -2
  565. package/node/MobileStepper/MobileStepper.js +1 -1
  566. package/node/Modal/Modal.js +1 -1
  567. package/node/NativeSelect/NativeSelect.js +1 -1
  568. package/node/OutlinedInput/OutlinedInput.js +16 -2
  569. package/node/Pagination/Pagination.js +1 -1
  570. package/node/PaginationItem/PaginationItem.js +1 -1
  571. package/node/Paper/Paper.js +1 -1
  572. package/node/Popover/Popover.js +2 -2
  573. package/node/Radio/Radio.js +1 -1
  574. package/node/Rating/Rating.js +1 -1
  575. package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  576. package/node/Select/Select.js +1 -1
  577. package/node/Select/SelectInput.js +17 -1
  578. package/node/Skeleton/Skeleton.js +1 -1
  579. package/node/Slider/Slider.js +1 -1
  580. package/node/Snackbar/Snackbar.js +62 -6
  581. package/node/SnackbarContent/SnackbarContent.js +1 -1
  582. package/node/SpeedDial/SpeedDial.js +2 -2
  583. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  584. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
  585. package/node/Stack/Stack.js +1 -1
  586. package/node/Step/Step.js +1 -1
  587. package/node/StepButton/StepButton.js +1 -1
  588. package/node/StepConnector/StepConnector.js +1 -1
  589. package/node/StepContent/StepContent.js +2 -2
  590. package/node/StepIcon/StepIcon.js +1 -1
  591. package/node/StepLabel/StepLabel.js +1 -1
  592. package/node/Stepper/Stepper.js +1 -1
  593. package/node/SvgIcon/SvgIcon.js +1 -1
  594. package/node/Switch/Switch.js +1 -1
  595. package/node/Tab/Tab.js +1 -1
  596. package/node/TabScrollButton/TabScrollButton.js +1 -1
  597. package/node/Table/Table.js +1 -1
  598. package/node/TableBody/TableBody.js +1 -1
  599. package/node/TableCell/TableCell.js +1 -1
  600. package/node/TableContainer/TableContainer.js +1 -1
  601. package/node/TableFooter/TableFooter.js +1 -1
  602. package/node/TableHead/TableHead.js +1 -1
  603. package/node/TablePagination/TablePagination.js +1 -1
  604. package/node/TableRow/TableRow.js +1 -1
  605. package/node/TableSortLabel/TableSortLabel.js +1 -1
  606. package/node/Tabs/Tabs.js +1 -1
  607. package/node/TextField/TextField.js +4 -10
  608. package/node/ToggleButton/ToggleButton.js +1 -1
  609. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  610. package/node/Toolbar/Toolbar.js +1 -1
  611. package/node/Tooltip/Tooltip.js +2 -2
  612. package/node/Typography/Typography.js +1 -1
  613. package/node/index.js +1 -1
  614. package/node/styles/adaptV4Theme.js +1 -1
  615. package/node/styles/index.js +6 -0
  616. package/node/styles/responsiveFontSizes.js +1 -1
  617. package/node/useMediaQuery/useMediaQuery.js +26 -65
  618. package/package.json +5 -5
  619. package/styles/adaptV4Theme.js +1 -1
  620. package/styles/createTheme.d.ts +1 -1
  621. package/styles/cssUtils.d.ts +32 -0
  622. package/styles/index.d.ts +4 -1
  623. package/styles/index.js +1 -1
  624. package/styles/responsiveFontSizes.js +1 -1
  625. package/transitions/index.d.ts +1 -1
  626. package/transitions/transition.d.ts +13 -14
  627. package/transitions/utils.d.ts +23 -23
  628. package/umd/material-ui.development.js +1116 -1032
  629. package/umd/material-ui.production.min.js +21 -21
  630. package/useMediaQuery/useMediaQuery.d.ts +27 -31
  631. package/useMediaQuery/useMediaQuery.js +26 -65
  632. package/useTouchRipple/index.d.ts +1 -1
  633. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  634. package/utils/getScrollbarSize.d.ts +2 -2
  635. package/utils/ownerDocument.d.ts +2 -2
  636. package/utils/ownerWindow.d.ts +2 -2
  637. package/utils/setRef.d.ts +2 -2
@@ -156,7 +156,7 @@ process.env.NODE_ENV !== "production" ? Paper.propTypes
156
156
  /**
157
157
  * The system prop that allows defining system overrides as well as additional CSS styles.
158
158
  */
159
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
159
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
160
160
 
161
161
  /**
162
162
  * The variant to use.
@@ -471,7 +471,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
471
471
  /**
472
472
  * The system prop that allows defining system overrides as well as additional CSS styles.
473
473
  */
474
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
474
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
475
475
 
476
476
  /**
477
477
  * This is the point on the popover which
@@ -509,7 +509,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes
509
509
 
510
510
  /**
511
511
  * Props applied to the transition element.
512
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
512
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
513
513
  * @default {}
514
514
  */
515
515
  TransitionProps: PropTypes.object
@@ -222,7 +222,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes
222
222
  /**
223
223
  * The system prop that allows defining system overrides as well as additional CSS styles.
224
224
  */
225
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
225
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
226
226
 
227
227
  /**
228
228
  * The value of the component. The DOM API casts this to a string.
@@ -740,7 +740,7 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes
740
740
  /**
741
741
  * The system prop that allows defining system overrides as well as additional CSS styles.
742
742
  */
743
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
743
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
744
744
 
745
745
  /**
746
746
  * The rating value.
@@ -90,7 +90,7 @@ process.env.NODE_ENV !== "production" ? ScopedCssBaseline.propTypes
90
90
  component: PropTypes.elementType,
91
91
 
92
92
  /**
93
- * Enable `color-scheme` css property to use `theme.palette.mode`.
93
+ * Enable `color-scheme` CSS property to use `theme.palette.mode`.
94
94
  * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
95
95
  * For browser support, check out https://caniuse.com/?search=color-scheme
96
96
  */
@@ -266,7 +266,7 @@ process.env.NODE_ENV !== "production" ? Select.propTypes
266
266
  /**
267
267
  * The system prop that allows defining system overrides as well as additional CSS styles.
268
268
  */
269
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
269
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
270
270
 
271
271
  /**
272
272
  * The `input` value. Providing an empty string will select no options.
@@ -425,7 +425,23 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
425
425
  }
426
426
 
427
427
  if (computeDisplay) {
428
- display = multiple ? displayMultiple.join(', ') : displaySingle;
428
+ if (multiple) {
429
+ if (displayMultiple.length === 0) {
430
+ display = null;
431
+ } else {
432
+ display = displayMultiple.reduce(function (output, child, index) {
433
+ output.push(child);
434
+
435
+ if (index < displayMultiple.length - 1) {
436
+ output.push(', ');
437
+ }
438
+
439
+ return output;
440
+ }, []);
441
+ }
442
+ } else {
443
+ display = displaySingle;
444
+ }
429
445
  } // Avoid performing a layout computation in the render method.
430
446
 
431
447
 
@@ -164,7 +164,7 @@ process.env.NODE_ENV !== "production" ? Skeleton.propTypes
164
164
  /**
165
165
  * The system prop that allows defining system overrides as well as additional CSS styles.
166
166
  */
167
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
167
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
168
168
 
169
169
  /**
170
170
  * The type of content that will be rendered.
@@ -649,7 +649,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
649
649
  /**
650
650
  * The system prop that allows defining system overrides as well as additional CSS styles.
651
651
  */
652
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
652
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
653
653
 
654
654
  /**
655
655
  * Tab index attribute of the hidden `input` element.
@@ -103,7 +103,9 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
103
103
  _props$disableWindowB = props.disableWindowBlurListener,
104
104
  disableWindowBlurListener = _props$disableWindowB === void 0 ? false : _props$disableWindowB,
105
105
  message = props.message,
106
+ onBlur = props.onBlur,
106
107
  onClose = props.onClose,
108
+ onFocus = props.onFocus,
107
109
  onMouseEnter = props.onMouseEnter,
108
110
  onMouseLeave = props.onMouseLeave,
109
111
  open = props.open,
@@ -121,7 +123,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
121
123
  var onEnter = _props$TransitionProp.onEnter,
122
124
  onExited = _props$TransitionProp.onExited,
123
125
  TransitionProps = _objectWithoutProperties(_props$TransitionProp, ["onEnter", "onExited"]),
124
- other = _objectWithoutProperties(props, ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onClose", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"]);
126
+ other = _objectWithoutProperties(props, ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"]);
125
127
 
126
128
  var theme = useTheme();
127
129
  var isRtl = theme.direction === 'rtl';
@@ -179,6 +181,14 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
179
181
  }
180
182
  }, [autoHideDuration, resumeHideDuration, setAutoHideTimer]);
181
183
 
184
+ var handleFocus = function handleFocus(event) {
185
+ if (onFocus) {
186
+ onFocus(event);
187
+ }
188
+
189
+ handlePause();
190
+ };
191
+
182
192
  var handleMouseEnter = function handleMouseEnter(event) {
183
193
  if (onMouseEnter) {
184
194
  onMouseEnter(event);
@@ -187,6 +197,14 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
187
197
  handlePause();
188
198
  };
189
199
 
200
+ var handleBlur = function handleBlur(event) {
201
+ if (onBlur) {
202
+ onBlur(event);
203
+ }
204
+
205
+ handleResume();
206
+ };
207
+
190
208
  var handleMouseLeave = function handleMouseLeave(event) {
191
209
  if (onMouseLeave) {
192
210
  onMouseLeave(event);
@@ -229,7 +247,33 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
229
247
  }
230
248
 
231
249
  return undefined;
232
- }, [disableWindowBlurListener, handleResume, open]); // So we only render active snackbars.
250
+ }, [disableWindowBlurListener, handleResume, open]);
251
+ React.useEffect(function () {
252
+ if (!open) {
253
+ return undefined;
254
+ }
255
+ /**
256
+ * @param {KeyboardEvent} nativeEvent
257
+ */
258
+
259
+
260
+ function handleKeyDown(nativeEvent) {
261
+ if (!nativeEvent.defaultPrevented) {
262
+ // IE11, Edge (prior to using Bink?) use 'Esc'
263
+ if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {
264
+ // not calling `preventDefault` since we don't know if people may ignore this event e.g. a permanently open snackbar
265
+ if (onClose) {
266
+ onClose(nativeEvent, 'escapeKeyDown');
267
+ }
268
+ }
269
+ }
270
+ }
271
+
272
+ document.addEventListener('keydown', handleKeyDown);
273
+ return function () {
274
+ document.removeEventListener('keydown', handleKeyDown);
275
+ };
276
+ }, [exited, open, onClose]); // So we only render active snackbars.
233
277
 
234
278
  if (!open && exited) {
235
279
  return null;
@@ -240,6 +284,8 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
240
284
  }, ClickAwayListenerProps, {
241
285
  children: /*#__PURE__*/_jsx(SnackbarRoot, _extends({
242
286
  className: clsx(classes.root, className),
287
+ onBlur: handleBlur,
288
+ onFocus: handleFocus,
243
289
  onMouseEnter: handleMouseEnter,
244
290
  onMouseLeave: handleMouseLeave,
245
291
  ownerState: ownerState,
@@ -340,6 +386,11 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
340
386
  */
341
387
  message: PropTypes.node,
342
388
 
389
+ /**
390
+ * @ignore
391
+ */
392
+ onBlur: PropTypes.func,
393
+
343
394
  /**
344
395
  * Callback fired when the component requests to be closed.
345
396
  * Typically `onClose` is used to set state in the parent component,
@@ -347,11 +398,16 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
347
398
  * The `reason` parameter can optionally be used to control the response to `onClose`,
348
399
  * for example ignoring `clickaway`.
349
400
  *
350
- * @param {React.SyntheticEvent<any>} event The event source of the callback.
351
- * @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`.
401
+ * @param {React.SyntheticEvent<any> | Event} event The event source of the callback.
402
+ * @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`, or `"escapeKeyDown"`.
352
403
  */
353
404
  onClose: PropTypes.func,
354
405
 
406
+ /**
407
+ * @ignore
408
+ */
409
+ onFocus: PropTypes.func,
410
+
355
411
  /**
356
412
  * @ignore
357
413
  */
@@ -378,7 +434,7 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
378
434
  /**
379
435
  * The system prop that allows defining system overrides as well as additional CSS styles.
380
436
  */
381
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
437
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
382
438
 
383
439
  /**
384
440
  * The component used for the transition.
@@ -403,7 +459,7 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
403
459
 
404
460
  /**
405
461
  * Props applied to the transition element.
406
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
462
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
407
463
  * @default {}
408
464
  */
409
465
  TransitionProps: PropTypes.object
@@ -142,6 +142,6 @@ process.env.NODE_ENV !== "production" ? SnackbarContent.propTypes
142
142
  /**
143
143
  * The system prop that allows defining system overrides as well as additional CSS styles.
144
144
  */
145
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
145
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
146
146
  } : void 0;
147
147
  export default SnackbarContent;
@@ -528,7 +528,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes
528
528
  /**
529
529
  * The system prop that allows defining system overrides as well as additional CSS styles.
530
530
  */
531
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
531
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
532
532
 
533
533
  /**
534
534
  * The component used for the transition.
@@ -553,7 +553,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes
553
553
 
554
554
  /**
555
555
  * Props applied to the transition element.
556
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
556
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
557
557
  */
558
558
  TransitionProps: PropTypes.object
559
559
  } : void 0;
@@ -246,7 +246,7 @@ process.env.NODE_ENV !== "production" ? SpeedDialAction.propTypes
246
246
  /**
247
247
  * The system prop that allows defining system overrides as well as additional CSS styles.
248
248
  */
249
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
249
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
250
250
 
251
251
  /**
252
252
  * `classes` prop applied to the [`Tooltip`](/api/tooltip/) element.
@@ -130,7 +130,7 @@ process.env.NODE_ENV !== "production" ? SpeedDialIcon.propTypes
130
130
  /**
131
131
  * The system prop that allows defining system overrides as well as additional CSS styles.
132
132
  */
133
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
133
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
134
134
  } : void 0;
135
135
  SpeedDialIcon.muiName = 'SpeedDialIcon';
136
136
  export default SpeedDialIcon;
@@ -167,6 +167,6 @@ process.env.NODE_ENV !== "production" ? Stack.propTypes
167
167
  /**
168
168
  * The system prop, which allows defining system overrides as well as additional CSS styles.
169
169
  */
170
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
170
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
171
171
  } : void 0;
172
172
  export default Stack;
@@ -178,6 +178,6 @@ process.env.NODE_ENV !== "production" ? Step.propTypes
178
178
  /**
179
179
  * The system prop that allows defining system overrides as well as additional CSS styles.
180
180
  */
181
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
181
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
182
182
  } : void 0;
183
183
  export default Step;
@@ -126,6 +126,6 @@ process.env.NODE_ENV !== "production" ? StepButton.propTypes
126
126
  /**
127
127
  * The system prop that allows defining system overrides as well as additional CSS styles.
128
128
  */
129
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
129
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
130
130
  } : void 0;
131
131
  export default StepButton;
@@ -129,6 +129,6 @@ process.env.NODE_ENV !== "production" ? StepConnector.propTypes
129
129
  /**
130
130
  * The system prop that allows defining system overrides as well as additional CSS styles.
131
131
  */
132
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
132
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
133
133
  } : void 0;
134
134
  export default StepConnector;
@@ -134,7 +134,7 @@ process.env.NODE_ENV !== "production" ? StepContent.propTypes
134
134
  /**
135
135
  * The system prop that allows defining system overrides as well as additional CSS styles.
136
136
  */
137
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
137
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
138
138
 
139
139
  /**
140
140
  * The component used for the transition.
@@ -158,7 +158,7 @@ process.env.NODE_ENV !== "production" ? StepContent.propTypes
158
158
 
159
159
  /**
160
160
  * Props applied to the transition element.
161
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
161
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
162
162
  */
163
163
  TransitionProps: PropTypes.object
164
164
  } : void 0;
@@ -178,6 +178,6 @@ process.env.NODE_ENV !== "production" ? StepIcon.propTypes
178
178
  /**
179
179
  * The system prop that allows defining system overrides as well as additional CSS styles.
180
180
  */
181
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
181
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
182
182
  } : void 0;
183
183
  export default StepIcon;
@@ -240,7 +240,7 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes
240
240
  /**
241
241
  * The system prop that allows defining system overrides as well as additional CSS styles.
242
242
  */
243
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
243
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
244
244
  } : void 0;
245
245
  StepLabel.muiName = 'StepLabel';
246
246
  export default StepLabel;
@@ -156,6 +156,6 @@ process.env.NODE_ENV !== "production" ? Stepper.propTypes
156
156
  /**
157
157
  * The system prop that allows defining system overrides as well as additional CSS styles.
158
158
  */
159
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
159
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
160
160
  } : void 0;
161
161
  export default Stepper;
@@ -162,7 +162,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes
162
162
  /**
163
163
  * The system prop that allows defining system overrides as well as additional CSS styles.
164
164
  */
165
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
165
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
166
166
 
167
167
  /**
168
168
  * Provides a human-readable title for the element that contains it.
@@ -329,7 +329,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes
329
329
  /**
330
330
  * The system prop that allows defining system overrides as well as additional CSS styles.
331
331
  */
332
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
332
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
333
333
 
334
334
  /**
335
335
  * The value of the component. The DOM API casts this to a string.
package/legacy/Tab/Tab.js CHANGED
@@ -259,7 +259,7 @@ process.env.NODE_ENV !== "production" ? Tab.propTypes
259
259
  /**
260
260
  * The system prop that allows defining system overrides as well as additional CSS styles.
261
261
  */
262
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
262
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
263
263
 
264
264
  /**
265
265
  * You can provide your own value. Otherwise, we fallback to the child position index.
@@ -127,6 +127,6 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes
127
127
  /**
128
128
  * The system prop that allows defining system overrides as well as additional CSS styles.
129
129
  */
130
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
130
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
131
131
  } : void 0;
132
132
  export default TabScrollButton;
@@ -142,6 +142,6 @@ process.env.NODE_ENV !== "production" ? Table.propTypes
142
142
  /**
143
143
  * The system prop that allows defining system overrides as well as additional CSS styles.
144
144
  */
145
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
145
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
146
146
  } : void 0;
147
147
  export default Table;
@@ -90,6 +90,6 @@ process.env.NODE_ENV !== "production" ? TableBody.propTypes
90
90
  /**
91
91
  * The system prop that allows defining system overrides as well as additional CSS styles.
92
92
  */
93
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
93
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
94
94
  } : void 0;
95
95
  export default TableBody;
@@ -216,7 +216,7 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
216
216
  /**
217
217
  * The system prop that allows defining system overrides as well as additional CSS styles.
218
218
  */
219
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
219
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
220
220
 
221
221
  /**
222
222
  * Specify the cell type.
@@ -82,6 +82,6 @@ process.env.NODE_ENV !== "production" ? TableContainer.propTypes
82
82
  /**
83
83
  * The system prop that allows defining system overrides as well as additional CSS styles.
84
84
  */
85
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
85
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
86
86
  } : void 0;
87
87
  export default TableContainer;
@@ -90,6 +90,6 @@ process.env.NODE_ENV !== "production" ? TableFooter.propTypes
90
90
  /**
91
91
  * The system prop that allows defining system overrides as well as additional CSS styles.
92
92
  */
93
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
93
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
94
94
  } : void 0;
95
95
  export default TableFooter;
@@ -90,6 +90,6 @@ process.env.NODE_ENV !== "production" ? TableHead.propTypes
90
90
  /**
91
91
  * The system prop that allows defining system overrides as well as additional CSS styles.
92
92
  */
93
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
93
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
94
94
  } : void 0;
95
95
  export default TableHead;
@@ -434,6 +434,6 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes
434
434
  /**
435
435
  * The system prop that allows defining system overrides as well as additional CSS styles.
436
436
  */
437
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
437
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
438
438
  } : void 0;
439
439
  export default TablePagination;
@@ -134,6 +134,6 @@ process.env.NODE_ENV !== "production" ? TableRow.propTypes
134
134
  /**
135
135
  * The system prop that allows defining system overrides as well as additional CSS styles.
136
136
  */
137
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
137
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
138
138
  } : void 0;
139
139
  export default TableRow;
@@ -174,6 +174,6 @@ process.env.NODE_ENV !== "production" ? TableSortLabel.propTypes
174
174
  /**
175
175
  * The system prop that allows defining system overrides as well as additional CSS styles.
176
176
  */
177
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
177
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
178
178
  } : void 0;
179
179
  export default TableSortLabel;
@@ -821,7 +821,7 @@ process.env.NODE_ENV !== "production" ? Tabs.propTypes
821
821
  /**
822
822
  * The system prop that allows defining system overrides as well as additional CSS styles.
823
823
  */
824
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
824
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
825
825
 
826
826
  /**
827
827
  * Props applied to the tab indicator element.
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import clsx from 'clsx';
6
6
  import { unstable_composeClasses as composeClasses } from '@mui/base';
7
- import { refType } from '@mui/utils';
7
+ import { refType, unstable_useId as useId } from '@mui/utils';
8
8
  import styled from '../styles/styled';
9
9
  import useThemeProps from '../styles/useThemeProps';
10
10
  import Input from '../Input';
@@ -15,8 +15,8 @@ import FormControl from '../FormControl';
15
15
  import FormHelperText from '../FormHelperText';
16
16
  import Select from '../Select';
17
17
  import { getTextFieldUtilityClass } from './textFieldClasses';
18
- import { jsxs as _jsxs } from "react/jsx-runtime";
19
18
  import { jsx as _jsx } from "react/jsx-runtime";
19
+ import { jsxs as _jsxs } from "react/jsx-runtime";
20
20
  var variantComponent = {
21
21
  standard: Input,
22
22
  filled: FilledInput,
@@ -93,7 +93,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
93
93
  _props$fullWidth = props.fullWidth,
94
94
  fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
95
95
  helperText = props.helperText,
96
- id = props.id,
96
+ idOverride = props.id,
97
97
  InputLabelProps = props.InputLabelProps,
98
98
  inputProps = props.inputProps,
99
99
  InputProps = props.InputProps,
@@ -147,14 +147,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
147
147
  InputMore.notched = InputLabelProps.shrink;
148
148
  }
149
149
 
150
- if (label) {
151
- var _InputLabelProps$requ;
152
-
153
- var displayRequired = (_InputLabelProps$requ = InputLabelProps == null ? void 0 : InputLabelProps.required) != null ? _InputLabelProps$requ : required;
154
- InputMore.label = /*#__PURE__*/_jsxs(React.Fragment, {
155
- children: [label, displayRequired && "\xA0*"]
156
- });
157
- }
150
+ InputMore.label = label;
158
151
  }
159
152
 
160
153
  if (select) {
@@ -166,6 +159,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
166
159
  InputMore['aria-describedby'] = undefined;
167
160
  }
168
161
 
162
+ var id = useId(idOverride);
169
163
  var helperTextId = helperText && id ? "".concat(id, "-helper-text") : undefined;
170
164
  var inputLabelId = label && id ? "".concat(id, "-label") : undefined;
171
165
  var InputComponent = variantComponent[variant];
@@ -417,7 +411,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes
417
411
  /**
418
412
  * The system prop that allows defining system overrides as well as additional CSS styles.
419
413
  */
420
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
414
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
421
415
 
422
416
  /**
423
417
  * 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).
@@ -222,7 +222,7 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes
222
222
  /**
223
223
  * The system prop that allows defining system overrides as well as additional CSS styles.
224
224
  */
225
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
225
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
226
226
 
227
227
  /**
228
228
  * The value to associate with the button when selected in a
@@ -236,7 +236,7 @@ process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes
236
236
  /**
237
237
  * The system prop that allows defining system overrides as well as additional CSS styles.
238
238
  */
239
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
239
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
240
240
 
241
241
  /**
242
242
  * The currently selected value within the group or an array of selected
@@ -116,7 +116,7 @@ process.env.NODE_ENV !== "production" ? Toolbar.propTypes
116
116
  /**
117
117
  * The system prop that allows defining system overrides as well as additional CSS styles.
118
118
  */
119
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
119
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
120
120
 
121
121
  /**
122
122
  * The variant to use.