@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
@@ -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
 
@@ -1,30 +1,30 @@
1
- export interface SelectClasses {
2
- /** Styles applied to the select component `select` class. */
3
- select: string;
4
- /** Styles applied to the select component if `multiple={true}`. */
5
- multiple: string;
6
- /** Styles applied to the select component if `variant="filled"`. */
7
- filled: string;
8
- /** Styles applied to the select component if `variant="outlined"`. */
9
- outlined: string;
10
- /** Styles applied to the select component if `variant="standard"`. */
11
- standard: string;
12
- /** State class applied to the select component `disabled` class. */
13
- disabled: string;
14
- /** Styles applied to the icon component. */
15
- icon: string;
16
- /** Styles applied to the icon component if the popup is open. */
17
- iconOpen: string;
18
- /** Styles applied to the icon component if `variant="filled"`. */
19
- iconFilled: string;
20
- /** Styles applied to the icon component if `variant="outlined"`. */
21
- iconOutlined: string;
22
- /** Styles applied to the icon component if `variant="standard"`. */
23
- iconStandard: string;
24
- /** Styles applied to the underlying native input component. */
25
- nativeInput: string;
26
- }
27
- export declare type SelectClassKey = keyof SelectClasses;
28
- export declare function getSelectUtilityClasses(slot: string): string;
29
- declare const selectClasses: SelectClasses;
30
- export default selectClasses;
1
+ export interface SelectClasses {
2
+ /** Styles applied to the select component `select` class. */
3
+ select: string;
4
+ /** Styles applied to the select component if `multiple={true}`. */
5
+ multiple: string;
6
+ /** Styles applied to the select component if `variant="filled"`. */
7
+ filled: string;
8
+ /** Styles applied to the select component if `variant="outlined"`. */
9
+ outlined: string;
10
+ /** Styles applied to the select component if `variant="standard"`. */
11
+ standard: string;
12
+ /** State class applied to the select component `disabled` class. */
13
+ disabled: string;
14
+ /** Styles applied to the icon component. */
15
+ icon: string;
16
+ /** Styles applied to the icon component if the popup is open. */
17
+ iconOpen: string;
18
+ /** Styles applied to the icon component if `variant="filled"`. */
19
+ iconFilled: string;
20
+ /** Styles applied to the icon component if `variant="outlined"`. */
21
+ iconOutlined: string;
22
+ /** Styles applied to the icon component if `variant="standard"`. */
23
+ iconStandard: string;
24
+ /** Styles applied to the underlying native input component. */
25
+ nativeInput: string;
26
+ }
27
+ export declare type SelectClassKey = keyof SelectClasses;
28
+ export declare function getSelectUtilityClasses(slot: string): string;
29
+ declare const selectClasses: SelectClasses;
30
+ export default selectClasses;
@@ -215,7 +215,7 @@ process.env.NODE_ENV !== "production" ? Skeleton.propTypes
215
215
  /**
216
216
  * The system prop that allows defining system overrides as well as additional CSS styles.
217
217
  */
218
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
218
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
219
219
 
220
220
  /**
221
221
  * The type of content that will be rendered.
@@ -1,24 +1,24 @@
1
- export interface SkeletonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="text"`. */
5
- text: string;
6
- /** Styles applied to the root element if `variant="rectangular"`. */
7
- rectangular: string;
8
- /** Styles applied to the root element if `variant="circular"`. */
9
- circular: string;
10
- /** Styles applied to the root element if `animation="pulse"`. */
11
- pulse: string;
12
- /** Styles applied to the root element if `animation="wave"`. */
13
- wave: string;
14
- /** Styles applied when the component is passed children. */
15
- withChildren: string;
16
- /** Styles applied when the component is passed children and no width. */
17
- fitContent: string;
18
- /** Styles applied when the component is passed children and no height. */
19
- heightAuto: string;
20
- }
21
- export declare type SkeletonClassKey = keyof SkeletonClasses;
22
- export declare function getSkeletonUtilityClass(slot: string): string;
23
- declare const skeletonClasses: SkeletonClasses;
24
- export default skeletonClasses;
1
+ export interface SkeletonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="text"`. */
5
+ text: string;
6
+ /** Styles applied to the root element if `variant="rectangular"`. */
7
+ rectangular: string;
8
+ /** Styles applied to the root element if `variant="circular"`. */
9
+ circular: string;
10
+ /** Styles applied to the root element if `animation="pulse"`. */
11
+ pulse: string;
12
+ /** Styles applied to the root element if `animation="wave"`. */
13
+ wave: string;
14
+ /** Styles applied when the component is passed children. */
15
+ withChildren: string;
16
+ /** Styles applied when the component is passed children and no width. */
17
+ fitContent: string;
18
+ /** Styles applied when the component is passed children and no height. */
19
+ heightAuto: string;
20
+ }
21
+ export declare type SkeletonClassKey = keyof SkeletonClasses;
22
+ export declare function getSkeletonUtilityClass(slot: string): string;
23
+ declare const skeletonClasses: SkeletonClasses;
24
+ export default skeletonClasses;
package/Slide/Slide.d.ts CHANGED
@@ -59,6 +59,6 @@ export interface SlideProps extends TransitionProps {
59
59
  * API:
60
60
  *
61
61
  * - [Slide API](https://mui.com/api/slide/)
62
- * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition#Transition-props)
62
+ * - inherits [Transition API](http://reactcommunity.org/react-transition-group/transition/#Transition-props)
63
63
  */
64
64
  export default function Slide(props: SlideProps): JSX.Element;
package/Slider/Slider.js CHANGED
@@ -633,7 +633,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
633
633
  /**
634
634
  * The system prop that allows defining system overrides as well as additional CSS styles.
635
635
  */
636
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
636
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
637
637
 
638
638
  /**
639
639
  * Tab index attribute of the hidden `input` element.
@@ -12,7 +12,7 @@ export interface SnackbarOrigin {
12
12
  horizontal: 'left' | 'center' | 'right';
13
13
  }
14
14
 
15
- export type SnackbarCloseReason = 'timeout' | 'clickaway';
15
+ export type SnackbarCloseReason = 'timeout' | 'clickaway' | 'escapeKeyDown';
16
16
 
17
17
  export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
18
18
  /**
@@ -73,10 +73,10 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
73
73
  * The `reason` parameter can optionally be used to control the response to `onClose`,
74
74
  * for example ignoring `clickaway`.
75
75
  *
76
- * @param {React.SyntheticEvent<any>} event The event source of the callback.
77
- * @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`.
76
+ * @param {React.SyntheticEvent<any> | Event} event The event source of the callback.
77
+ * @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`, or `"escapeKeyDown"`.
78
78
  */
79
- onClose?: (event: React.SyntheticEvent<any>, reason: SnackbarCloseReason) => void;
79
+ onClose?: (event: React.SyntheticEvent<any> | Event, reason: SnackbarCloseReason) => void;
80
80
  /**
81
81
  * If `true`, the component is shown.
82
82
  */
@@ -111,7 +111,7 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
111
111
  transitionDuration?: TransitionProps['timeout'];
112
112
  /**
113
113
  * Props applied to the transition element.
114
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
114
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
115
115
  * @default {}
116
116
  */
117
117
  TransitionProps?: TransitionProps;
@@ -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
@@ -1,20 +1,20 @@
1
- export interface SnackbarClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `anchorOrigin={{ 'top', 'center' }}`. */
5
- anchorOriginTopCenter: string;
6
- /** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'center' }}`. */
7
- anchorOriginBottomCenter: string;
8
- /** Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }}`. */
9
- anchorOriginTopRight: string;
10
- /** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }}`. */
11
- anchorOriginBottomRight: string;
12
- /** Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }}`. */
13
- anchorOriginTopLeft: string;
14
- /** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }}`. */
15
- anchorOriginBottomLeft: string;
16
- }
17
- export declare type SnackbarClassKey = keyof SnackbarClasses;
18
- export declare function getSnackbarUtilityClass(slot: string): string;
19
- declare const snackbarClasses: SnackbarClasses;
20
- export default snackbarClasses;
1
+ export interface SnackbarClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `anchorOrigin={{ 'top', 'center' }}`. */
5
+ anchorOriginTopCenter: string;
6
+ /** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'center' }}`. */
7
+ anchorOriginBottomCenter: string;
8
+ /** Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }}`. */
9
+ anchorOriginTopRight: string;
10
+ /** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }}`. */
11
+ anchorOriginBottomRight: string;
12
+ /** Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }}`. */
13
+ anchorOriginTopLeft: string;
14
+ /** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }}`. */
15
+ anchorOriginBottomLeft: string;
16
+ }
17
+ export declare type SnackbarClassKey = keyof SnackbarClasses;
18
+ export declare function getSnackbarUtilityClass(slot: string): string;
19
+ declare const snackbarClasses: SnackbarClasses;
20
+ export default snackbarClasses;
@@ -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;
@@ -1,12 +1,12 @@
1
- export interface SnackbarContentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the message wrapper element. */
5
- message: string;
6
- /** Styles applied to the action wrapper element if `action` is provided. */
7
- action: string;
8
- }
9
- export declare type SnackbarContentClassKey = keyof SnackbarContentClasses;
10
- export declare function getSnackbarContentUtilityClass(slot: string): string;
11
- declare const snackbarContentClasses: SnackbarContentClasses;
12
- export default snackbarContentClasses;
1
+ export interface SnackbarContentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the message wrapper element. */
5
+ message: string;
6
+ /** Styles applied to the action wrapper element if `action` is provided. */
7
+ action: string;
8
+ }
9
+ export declare type SnackbarContentClassKey = keyof SnackbarContentClasses;
10
+ export declare function getSnackbarContentUtilityClass(slot: string): string;
11
+ declare const snackbarContentClasses: SnackbarContentClasses;
12
+ export default snackbarContentClasses;
@@ -87,7 +87,7 @@ export interface SpeedDialProps
87
87
  transitionDuration?: TransitionProps['timeout'];
88
88
  /**
89
89
  * Props applied to the transition element.
90
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
90
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
91
91
  */
92
92
  TransitionProps?: TransitionProps;
93
93
  }
@@ -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;
@@ -1,22 +1,22 @@
1
- export interface SpeedDialClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the Fab component. */
5
- fab: string;
6
- /** Styles applied to the root element if direction="up" */
7
- directionUp: string;
8
- /** Styles applied to the root element if direction="down" */
9
- directionDown: string;
10
- /** Styles applied to the root element if direction="left" */
11
- directionLeft: string;
12
- /** Styles applied to the root element if direction="right" */
13
- directionRight: string;
14
- /** Styles applied to the actions (`children` wrapper) element. */
15
- actions: string;
16
- /** Styles applied to the actions (`children` wrapper) element if `open={false}`. */
17
- actionsClosed: string;
18
- }
19
- export declare type SpeedDialClassKey = keyof SpeedDialClasses;
20
- export declare function getSpeedDialUtilityClass(slot: string): string;
21
- declare const speedDialClasses: SpeedDialClasses;
22
- export default speedDialClasses;
1
+ export interface SpeedDialClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the Fab component. */
5
+ fab: string;
6
+ /** Styles applied to the root element if direction="up" */
7
+ directionUp: string;
8
+ /** Styles applied to the root element if direction="down" */
9
+ directionDown: string;
10
+ /** Styles applied to the root element if direction="left" */
11
+ directionLeft: string;
12
+ /** Styles applied to the root element if direction="right" */
13
+ directionRight: string;
14
+ /** Styles applied to the actions (`children` wrapper) element. */
15
+ actions: string;
16
+ /** Styles applied to the actions (`children` wrapper) element if `open={false}`. */
17
+ actionsClosed: string;
18
+ }
19
+ export declare type SpeedDialClassKey = keyof SpeedDialClasses;
20
+ export declare function getSpeedDialUtilityClass(slot: string): string;
21
+ declare const speedDialClasses: SpeedDialClasses;
22
+ export default speedDialClasses;
@@ -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.
@@ -1,20 +1,20 @@
1
- export interface SpeedDialActionClasses {
2
- /** Styles applied to the Fab component. */
3
- fab: string;
4
- /** Styles applied to the Fab component if `open={false}`. */
5
- fabClosed: string;
6
- /** Styles applied to the root element if `tooltipOpen={true}`. */
7
- staticTooltip: string;
8
- /** Styles applied to the root element if `tooltipOpen={true}` and `open={false}`. */
9
- staticTooltipClosed: string;
10
- /** Styles applied to the static tooltip label if `tooltipOpen={true}`. */
11
- staticTooltipLabel: string;
12
- /** Styles applied to the root element if `tooltipOpen={true}` and `tooltipPlacement="left"`` */
13
- tooltipPlacementLeft: string;
14
- /** Styles applied to the root element if `tooltipOpen={true}` and `tooltipPlacement="right"`` */
15
- tooltipPlacementRight: string;
16
- }
17
- export declare type SpeedDialActionClassKey = keyof SpeedDialActionClasses;
18
- export declare function getSpeedDialActionUtilityClass(slot: string): string;
19
- declare const speedDialActionClasses: SpeedDialActionClasses;
20
- export default speedDialActionClasses;
1
+ export interface SpeedDialActionClasses {
2
+ /** Styles applied to the Fab component. */
3
+ fab: string;
4
+ /** Styles applied to the Fab component if `open={false}`. */
5
+ fabClosed: string;
6
+ /** Styles applied to the root element if `tooltipOpen={true}`. */
7
+ staticTooltip: string;
8
+ /** Styles applied to the root element if `tooltipOpen={true}` and `open={false}`. */
9
+ staticTooltipClosed: string;
10
+ /** Styles applied to the static tooltip label if `tooltipOpen={true}`. */
11
+ staticTooltipLabel: string;
12
+ /** Styles applied to the root element if `tooltipOpen={true}` and `tooltipPlacement="left"`` */
13
+ tooltipPlacementLeft: string;
14
+ /** Styles applied to the root element if `tooltipOpen={true}` and `tooltipPlacement="right"`` */
15
+ tooltipPlacementRight: string;
16
+ }
17
+ export declare type SpeedDialActionClassKey = keyof SpeedDialActionClasses;
18
+ export declare function getSpeedDialActionUtilityClass(slot: string): string;
19
+ declare const speedDialActionClasses: SpeedDialActionClasses;
20
+ export default speedDialActionClasses;
@@ -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;
@@ -1,18 +1,18 @@
1
- export interface SpeedDialIconClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the icon component. */
5
- icon: string;
6
- /** Styles applied to the icon component if `open={true}`. */
7
- iconOpen: string;
8
- /** Styles applied to the icon when an `openIcon` is provided and if `open={true}`. */
9
- iconWithOpenIconOpen: string;
10
- /** Styles applied to the `openIcon` if provided. */
11
- openIcon: string;
12
- /** Styles applied to the `openIcon` if provided and if `open={true}`. */
13
- openIconOpen: string;
14
- }
15
- export declare type SpeedDialIconClassKey = keyof SpeedDialIconClasses;
16
- export declare function getSpeedDialIconUtilityClass(slot: string): string;
17
- declare const speedDialIconClasses: SpeedDialIconClasses;
18
- export default speedDialIconClasses;
1
+ export interface SpeedDialIconClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the icon component. */
5
+ icon: string;
6
+ /** Styles applied to the icon component if `open={true}`. */
7
+ iconOpen: string;
8
+ /** Styles applied to the icon when an `openIcon` is provided and if `open={true}`. */
9
+ iconWithOpenIconOpen: string;
10
+ /** Styles applied to the `openIcon` if provided. */
11
+ openIcon: string;
12
+ /** Styles applied to the `openIcon` if provided and if `open={true}`. */
13
+ openIconOpen: string;
14
+ }
15
+ export declare type SpeedDialIconClassKey = keyof SpeedDialIconClasses;
16
+ export declare function getSpeedDialIconUtilityClass(slot: string): string;
17
+ declare const speedDialIconClasses: SpeedDialIconClasses;
18
+ export default speedDialIconClasses;
package/Stack/Stack.js CHANGED
@@ -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;
package/Step/Step.js CHANGED
@@ -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;
@@ -1,16 +1,16 @@
1
- export interface StepClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="horizontal"`. */
5
- horizontal: string;
6
- /** Styles applied to the root element if `orientation="vertical"`. */
7
- vertical: string;
8
- /** Styles applied to the root element if `alternativeLabel={true}`. */
9
- alternativeLabel: string;
10
- /** State class applied to the root element if `completed={true}`. */
11
- completed: string;
12
- }
13
- export declare type StepClassKey = keyof StepClasses;
14
- export declare function getStepUtilityClass(slot: string): string;
15
- declare const stepClasses: StepClasses;
16
- export default stepClasses;
1
+ export interface StepClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="horizontal"`. */
5
+ horizontal: string;
6
+ /** Styles applied to the root element if `orientation="vertical"`. */
7
+ vertical: string;
8
+ /** Styles applied to the root element if `alternativeLabel={true}`. */
9
+ alternativeLabel: string;
10
+ /** State class applied to the root element if `completed={true}`. */
11
+ completed: string;
12
+ }
13
+ export declare type StepClassKey = keyof StepClasses;
14
+ export declare function getStepUtilityClass(slot: string): string;
15
+ declare const stepClasses: StepClasses;
16
+ export default stepClasses;