@mui/material 5.1.1 → 5.2.3

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