@mui/material 5.0.4 → 5.0.5

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 (496) hide show
  1. package/Accordion/Accordion.js +1 -1
  2. package/AccordionActions/AccordionActions.js +1 -1
  3. package/AccordionDetails/AccordionDetails.js +1 -1
  4. package/AccordionSummary/AccordionSummary.js +1 -1
  5. package/Alert/Alert.js +1 -1
  6. package/AlertTitle/AlertTitle.js +1 -1
  7. package/AppBar/AppBar.js +1 -1
  8. package/Autocomplete/Autocomplete.js +14 -10
  9. package/Avatar/Avatar.js +1 -1
  10. package/AvatarGroup/AvatarGroup.js +3 -3
  11. package/Backdrop/Backdrop.js +1 -1
  12. package/Badge/Badge.js +1 -1
  13. package/BottomNavigation/BottomNavigation.js +1 -1
  14. package/BottomNavigationAction/BottomNavigationAction.js +1 -1
  15. package/Breadcrumbs/Breadcrumbs.js +1 -1
  16. package/Button/Button.js +1 -1
  17. package/ButtonBase/ButtonBase.js +1 -1
  18. package/ButtonGroup/ButtonGroup.js +1 -1
  19. package/CHANGELOG.md +79 -0
  20. package/Card/Card.js +1 -1
  21. package/CardActionArea/CardActionArea.js +1 -1
  22. package/CardActions/CardActions.js +1 -1
  23. package/CardContent/CardContent.js +1 -1
  24. package/CardHeader/CardHeader.js +1 -1
  25. package/CardMedia/CardMedia.js +2 -2
  26. package/Checkbox/Checkbox.js +1 -1
  27. package/Chip/Chip.js +1 -1
  28. package/CircularProgress/CircularProgress.js +1 -1
  29. package/ClickAwayListener/index.d.ts +2 -2
  30. package/ClickAwayListener/index.js +2 -2
  31. package/Collapse/Collapse.js +1 -1
  32. package/Container/Container.js +1 -1
  33. package/Dialog/Dialog.js +1 -1
  34. package/DialogActions/DialogActions.js +1 -1
  35. package/DialogContent/DialogContent.js +3 -2
  36. package/DialogContentText/DialogContentText.js +1 -1
  37. package/DialogTitle/DialogTitle.js +1 -1
  38. package/Divider/Divider.js +1 -1
  39. package/Drawer/Drawer.js +1 -1
  40. package/Fab/Fab.js +1 -1
  41. package/FilledInput/FilledInput.js +1 -1
  42. package/FormControl/FormControl.js +1 -1
  43. package/FormControlLabel/FormControlLabel.js +1 -1
  44. package/FormGroup/FormGroup.js +1 -1
  45. package/FormHelperText/FormHelperText.js +1 -1
  46. package/FormLabel/FormLabel.js +1 -1
  47. package/Grid/Grid.js +6 -3
  48. package/Icon/Icon.js +1 -1
  49. package/IconButton/IconButton.js +1 -1
  50. package/ImageList/ImageList.js +1 -1
  51. package/ImageListItem/ImageListItem.js +1 -1
  52. package/ImageListItemBar/ImageListItemBar.js +1 -1
  53. package/Input/Input.js +1 -1
  54. package/InputAdornment/InputAdornment.js +1 -1
  55. package/InputBase/InputBase.js +4 -9
  56. package/InputLabel/InputLabel.js +1 -1
  57. package/LinearProgress/LinearProgress.js +1 -1
  58. package/Link/Link.js +1 -1
  59. package/List/List.js +1 -1
  60. package/ListItem/ListItem.js +1 -1
  61. package/ListItemAvatar/ListItemAvatar.js +1 -1
  62. package/ListItemButton/ListItemButton.js +1 -1
  63. package/ListItemIcon/ListItemIcon.js +1 -1
  64. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  65. package/ListItemText/ListItemText.js +1 -1
  66. package/ListSubheader/ListSubheader.js +1 -1
  67. package/Menu/Menu.js +1 -1
  68. package/MenuItem/MenuItem.js +5 -2
  69. package/MobileStepper/MobileStepper.js +1 -1
  70. package/Modal/Modal.js +1 -1
  71. package/NativeSelect/NativeSelect.js +1 -1
  72. package/OutlinedInput/OutlinedInput.js +1 -1
  73. package/Pagination/Pagination.js +1 -1
  74. package/PaginationItem/PaginationItem.js +1 -1
  75. package/Paper/Paper.js +1 -1
  76. package/Popover/Popover.js +1 -1
  77. package/Popper/index.d.ts +2 -2
  78. package/Popper/index.js +1 -1
  79. package/Radio/Radio.js +1 -1
  80. package/Rating/Rating.js +1 -1
  81. package/Select/Select.js +1 -1
  82. package/Skeleton/Skeleton.js +1 -1
  83. package/Slider/Slider.js +1 -1
  84. package/Snackbar/Snackbar.d.ts +1 -1
  85. package/Snackbar/Snackbar.js +2 -2
  86. package/SnackbarContent/SnackbarContent.js +1 -1
  87. package/SpeedDial/SpeedDial.js +1 -1
  88. package/SpeedDialAction/SpeedDialAction.js +1 -1
  89. package/SpeedDialIcon/SpeedDialIcon.js +1 -1
  90. package/Stack/Stack.js +1 -1
  91. package/Step/Step.js +1 -1
  92. package/StepButton/StepButton.js +1 -1
  93. package/StepConnector/StepConnector.js +1 -1
  94. package/StepContent/StepContent.js +1 -1
  95. package/StepIcon/StepIcon.js +1 -1
  96. package/StepLabel/StepLabel.js +1 -1
  97. package/Stepper/Stepper.js +1 -1
  98. package/SvgIcon/SvgIcon.js +1 -1
  99. package/Switch/Switch.js +1 -1
  100. package/Tab/Tab.d.ts +6 -0
  101. package/Tab/Tab.js +27 -7
  102. package/TabScrollButton/TabScrollButton.js +1 -1
  103. package/Table/Table.js +1 -1
  104. package/TableBody/TableBody.js +1 -1
  105. package/TableCell/TableCell.js +1 -1
  106. package/TableContainer/TableContainer.js +1 -1
  107. package/TableFooter/TableFooter.js +1 -1
  108. package/TableHead/TableHead.js +1 -1
  109. package/TablePagination/TablePagination.js +1 -1
  110. package/TableRow/TableRow.js +1 -1
  111. package/TableSortLabel/TableSortLabel.js +1 -1
  112. package/Tabs/Tabs.js +1 -1
  113. package/TextField/TextField.js +1 -1
  114. package/TextareaAutosize/index.d.ts +2 -2
  115. package/TextareaAutosize/index.js +1 -1
  116. package/ToggleButton/ToggleButton.js +1 -1
  117. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  118. package/Toolbar/Toolbar.js +1 -1
  119. package/Tooltip/Tooltip.d.ts +1 -1
  120. package/Tooltip/Tooltip.js +4 -4
  121. package/Typography/Typography.js +1 -1
  122. package/index.js +1 -1
  123. package/legacy/Accordion/Accordion.js +1 -1
  124. package/legacy/AccordionActions/AccordionActions.js +1 -1
  125. package/legacy/AccordionDetails/AccordionDetails.js +1 -1
  126. package/legacy/AccordionSummary/AccordionSummary.js +1 -1
  127. package/legacy/Alert/Alert.js +1 -1
  128. package/legacy/AlertTitle/AlertTitle.js +1 -1
  129. package/legacy/AppBar/AppBar.js +1 -1
  130. package/legacy/Autocomplete/Autocomplete.js +33 -32
  131. package/legacy/Avatar/Avatar.js +1 -1
  132. package/legacy/AvatarGroup/AvatarGroup.js +3 -3
  133. package/legacy/Backdrop/Backdrop.js +1 -1
  134. package/legacy/Badge/Badge.js +1 -1
  135. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  136. package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
  137. package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
  138. package/legacy/Button/Button.js +1 -1
  139. package/legacy/ButtonBase/ButtonBase.js +1 -1
  140. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  141. package/legacy/Card/Card.js +1 -1
  142. package/legacy/CardActionArea/CardActionArea.js +1 -1
  143. package/legacy/CardActions/CardActions.js +1 -1
  144. package/legacy/CardContent/CardContent.js +1 -1
  145. package/legacy/CardHeader/CardHeader.js +1 -1
  146. package/legacy/CardMedia/CardMedia.js +2 -2
  147. package/legacy/Checkbox/Checkbox.js +1 -1
  148. package/legacy/Chip/Chip.js +1 -1
  149. package/legacy/CircularProgress/CircularProgress.js +1 -1
  150. package/legacy/ClickAwayListener/index.js +2 -2
  151. package/legacy/Collapse/Collapse.js +1 -1
  152. package/legacy/Container/Container.js +1 -1
  153. package/legacy/Dialog/Dialog.js +1 -1
  154. package/legacy/DialogActions/DialogActions.js +1 -1
  155. package/legacy/DialogContent/DialogContent.js +6 -6
  156. package/legacy/DialogContentText/DialogContentText.js +1 -1
  157. package/legacy/DialogTitle/DialogTitle.js +1 -1
  158. package/legacy/Divider/Divider.js +1 -1
  159. package/legacy/Drawer/Drawer.js +1 -1
  160. package/legacy/Fab/Fab.js +1 -1
  161. package/legacy/FilledInput/FilledInput.js +1 -1
  162. package/legacy/FormControl/FormControl.js +1 -1
  163. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  164. package/legacy/FormGroup/FormGroup.js +1 -1
  165. package/legacy/FormHelperText/FormHelperText.js +1 -1
  166. package/legacy/FormLabel/FormLabel.js +1 -1
  167. package/legacy/Grid/Grid.js +6 -4
  168. package/legacy/Icon/Icon.js +1 -1
  169. package/legacy/IconButton/IconButton.js +1 -1
  170. package/legacy/ImageList/ImageList.js +1 -1
  171. package/legacy/ImageListItem/ImageListItem.js +1 -1
  172. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  173. package/legacy/Input/Input.js +1 -1
  174. package/legacy/InputAdornment/InputAdornment.js +1 -1
  175. package/legacy/InputBase/InputBase.js +4 -9
  176. package/legacy/InputLabel/InputLabel.js +1 -1
  177. package/legacy/LinearProgress/LinearProgress.js +1 -1
  178. package/legacy/Link/Link.js +1 -1
  179. package/legacy/List/List.js +1 -1
  180. package/legacy/ListItem/ListItem.js +1 -1
  181. package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
  182. package/legacy/ListItemButton/ListItemButton.js +1 -1
  183. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  184. package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  185. package/legacy/ListItemText/ListItemText.js +1 -1
  186. package/legacy/ListSubheader/ListSubheader.js +1 -1
  187. package/legacy/Menu/Menu.js +1 -1
  188. package/legacy/MenuItem/MenuItem.js +5 -2
  189. package/legacy/MobileStepper/MobileStepper.js +1 -1
  190. package/legacy/Modal/Modal.js +1 -1
  191. package/legacy/NativeSelect/NativeSelect.js +1 -1
  192. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  193. package/legacy/Pagination/Pagination.js +1 -1
  194. package/legacy/PaginationItem/PaginationItem.js +1 -1
  195. package/legacy/Paper/Paper.js +1 -1
  196. package/legacy/Popover/Popover.js +1 -1
  197. package/legacy/Popper/index.js +1 -1
  198. package/legacy/Radio/Radio.js +1 -1
  199. package/legacy/Rating/Rating.js +1 -1
  200. package/legacy/Select/Select.js +1 -1
  201. package/legacy/Skeleton/Skeleton.js +1 -1
  202. package/legacy/Slider/Slider.js +1 -1
  203. package/legacy/Snackbar/Snackbar.js +2 -2
  204. package/legacy/SnackbarContent/SnackbarContent.js +1 -1
  205. package/legacy/SpeedDial/SpeedDial.js +1 -1
  206. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
  207. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
  208. package/legacy/Stack/Stack.js +1 -1
  209. package/legacy/Step/Step.js +1 -1
  210. package/legacy/StepButton/StepButton.js +1 -1
  211. package/legacy/StepConnector/StepConnector.js +1 -1
  212. package/legacy/StepContent/StepContent.js +1 -1
  213. package/legacy/StepIcon/StepIcon.js +1 -1
  214. package/legacy/StepLabel/StepLabel.js +1 -1
  215. package/legacy/Stepper/Stepper.js +1 -1
  216. package/legacy/SvgIcon/SvgIcon.js +1 -1
  217. package/legacy/Switch/Switch.js +1 -1
  218. package/legacy/Tab/Tab.js +28 -7
  219. package/legacy/TabScrollButton/TabScrollButton.js +1 -1
  220. package/legacy/Table/Table.js +1 -1
  221. package/legacy/TableBody/TableBody.js +1 -1
  222. package/legacy/TableCell/TableCell.js +1 -1
  223. package/legacy/TableContainer/TableContainer.js +1 -1
  224. package/legacy/TableFooter/TableFooter.js +1 -1
  225. package/legacy/TableHead/TableHead.js +1 -1
  226. package/legacy/TablePagination/TablePagination.js +1 -1
  227. package/legacy/TableRow/TableRow.js +1 -1
  228. package/legacy/TableSortLabel/TableSortLabel.js +1 -1
  229. package/legacy/Tabs/Tabs.js +1 -1
  230. package/legacy/TextField/TextField.js +1 -1
  231. package/legacy/TextareaAutosize/index.js +1 -1
  232. package/legacy/ToggleButton/ToggleButton.js +1 -1
  233. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  234. package/legacy/Toolbar/Toolbar.js +1 -1
  235. package/legacy/Tooltip/Tooltip.js +4 -4
  236. package/legacy/Typography/Typography.js +1 -1
  237. package/legacy/index.js +1 -1
  238. package/legacy/styles/index.js +1 -1
  239. package/legacy/utils/index.js +2 -1
  240. package/modern/Accordion/Accordion.js +1 -1
  241. package/modern/AccordionActions/AccordionActions.js +1 -1
  242. package/modern/AccordionDetails/AccordionDetails.js +1 -1
  243. package/modern/AccordionSummary/AccordionSummary.js +1 -1
  244. package/modern/Alert/Alert.js +1 -1
  245. package/modern/AlertTitle/AlertTitle.js +1 -1
  246. package/modern/AppBar/AppBar.js +1 -1
  247. package/modern/Autocomplete/Autocomplete.js +14 -10
  248. package/modern/Avatar/Avatar.js +1 -1
  249. package/modern/AvatarGroup/AvatarGroup.js +3 -3
  250. package/modern/Backdrop/Backdrop.js +1 -1
  251. package/modern/Badge/Badge.js +1 -1
  252. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  253. package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
  254. package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
  255. package/modern/Button/Button.js +1 -1
  256. package/modern/ButtonBase/ButtonBase.js +1 -1
  257. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  258. package/modern/Card/Card.js +1 -1
  259. package/modern/CardActionArea/CardActionArea.js +1 -1
  260. package/modern/CardActions/CardActions.js +1 -1
  261. package/modern/CardContent/CardContent.js +1 -1
  262. package/modern/CardHeader/CardHeader.js +1 -1
  263. package/modern/CardMedia/CardMedia.js +2 -2
  264. package/modern/Checkbox/Checkbox.js +1 -1
  265. package/modern/Chip/Chip.js +1 -1
  266. package/modern/CircularProgress/CircularProgress.js +1 -1
  267. package/modern/ClickAwayListener/index.js +2 -2
  268. package/modern/Collapse/Collapse.js +1 -1
  269. package/modern/Container/Container.js +1 -1
  270. package/modern/Dialog/Dialog.js +1 -1
  271. package/modern/DialogActions/DialogActions.js +1 -1
  272. package/modern/DialogContent/DialogContent.js +3 -2
  273. package/modern/DialogContentText/DialogContentText.js +1 -1
  274. package/modern/DialogTitle/DialogTitle.js +1 -1
  275. package/modern/Divider/Divider.js +1 -1
  276. package/modern/Drawer/Drawer.js +1 -1
  277. package/modern/Fab/Fab.js +1 -1
  278. package/modern/FilledInput/FilledInput.js +1 -1
  279. package/modern/FormControl/FormControl.js +1 -1
  280. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  281. package/modern/FormGroup/FormGroup.js +1 -1
  282. package/modern/FormHelperText/FormHelperText.js +1 -1
  283. package/modern/FormLabel/FormLabel.js +1 -1
  284. package/modern/Grid/Grid.js +6 -3
  285. package/modern/Icon/Icon.js +1 -1
  286. package/modern/IconButton/IconButton.js +1 -1
  287. package/modern/ImageList/ImageList.js +1 -1
  288. package/modern/ImageListItem/ImageListItem.js +1 -1
  289. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  290. package/modern/Input/Input.js +1 -1
  291. package/modern/InputAdornment/InputAdornment.js +1 -1
  292. package/modern/InputBase/InputBase.js +4 -9
  293. package/modern/InputLabel/InputLabel.js +1 -1
  294. package/modern/LinearProgress/LinearProgress.js +1 -1
  295. package/modern/Link/Link.js +1 -1
  296. package/modern/List/List.js +1 -1
  297. package/modern/ListItem/ListItem.js +1 -1
  298. package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
  299. package/modern/ListItemButton/ListItemButton.js +1 -1
  300. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  301. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  302. package/modern/ListItemText/ListItemText.js +1 -1
  303. package/modern/ListSubheader/ListSubheader.js +1 -1
  304. package/modern/Menu/Menu.js +1 -1
  305. package/modern/MenuItem/MenuItem.js +5 -2
  306. package/modern/MobileStepper/MobileStepper.js +1 -1
  307. package/modern/Modal/Modal.js +1 -1
  308. package/modern/NativeSelect/NativeSelect.js +1 -1
  309. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  310. package/modern/Pagination/Pagination.js +1 -1
  311. package/modern/PaginationItem/PaginationItem.js +1 -1
  312. package/modern/Paper/Paper.js +1 -1
  313. package/modern/Popover/Popover.js +1 -1
  314. package/modern/Popper/index.js +1 -1
  315. package/modern/Radio/Radio.js +1 -1
  316. package/modern/Rating/Rating.js +1 -1
  317. package/modern/Select/Select.js +1 -1
  318. package/modern/Skeleton/Skeleton.js +1 -1
  319. package/modern/Slider/Slider.js +1 -1
  320. package/modern/Snackbar/Snackbar.js +2 -2
  321. package/modern/SnackbarContent/SnackbarContent.js +1 -1
  322. package/modern/SpeedDial/SpeedDial.js +1 -1
  323. package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
  324. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
  325. package/modern/Stack/Stack.js +1 -1
  326. package/modern/Step/Step.js +1 -1
  327. package/modern/StepButton/StepButton.js +1 -1
  328. package/modern/StepConnector/StepConnector.js +1 -1
  329. package/modern/StepContent/StepContent.js +1 -1
  330. package/modern/StepIcon/StepIcon.js +1 -1
  331. package/modern/StepLabel/StepLabel.js +1 -1
  332. package/modern/Stepper/Stepper.js +1 -1
  333. package/modern/SvgIcon/SvgIcon.js +1 -1
  334. package/modern/Switch/Switch.js +1 -1
  335. package/modern/Tab/Tab.js +27 -7
  336. package/modern/TabScrollButton/TabScrollButton.js +1 -1
  337. package/modern/Table/Table.js +1 -1
  338. package/modern/TableBody/TableBody.js +1 -1
  339. package/modern/TableCell/TableCell.js +1 -1
  340. package/modern/TableContainer/TableContainer.js +1 -1
  341. package/modern/TableFooter/TableFooter.js +1 -1
  342. package/modern/TableHead/TableHead.js +1 -1
  343. package/modern/TablePagination/TablePagination.js +1 -1
  344. package/modern/TableRow/TableRow.js +1 -1
  345. package/modern/TableSortLabel/TableSortLabel.js +1 -1
  346. package/modern/Tabs/Tabs.js +1 -1
  347. package/modern/TextField/TextField.js +1 -1
  348. package/modern/TextareaAutosize/index.js +1 -1
  349. package/modern/ToggleButton/ToggleButton.js +1 -1
  350. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  351. package/modern/Toolbar/Toolbar.js +1 -1
  352. package/modern/Tooltip/Tooltip.js +3 -3
  353. package/modern/Typography/Typography.js +1 -1
  354. package/modern/index.js +1 -1
  355. package/modern/styles/index.js +1 -1
  356. package/modern/utils/index.js +2 -1
  357. package/node/Accordion/Accordion.js +1 -1
  358. package/node/AccordionActions/AccordionActions.js +1 -1
  359. package/node/AccordionDetails/AccordionDetails.js +1 -1
  360. package/node/AccordionSummary/AccordionSummary.js +1 -1
  361. package/node/Alert/Alert.js +1 -1
  362. package/node/AlertTitle/AlertTitle.js +1 -1
  363. package/node/AppBar/AppBar.js +1 -1
  364. package/node/Autocomplete/Autocomplete.js +18 -10
  365. package/node/Avatar/Avatar.js +1 -1
  366. package/node/AvatarGroup/AvatarGroup.js +3 -3
  367. package/node/Backdrop/Backdrop.js +1 -1
  368. package/node/Badge/Badge.js +1 -1
  369. package/node/BottomNavigation/BottomNavigation.js +1 -1
  370. package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
  371. package/node/Breadcrumbs/Breadcrumbs.js +1 -1
  372. package/node/Button/Button.js +1 -1
  373. package/node/ButtonBase/ButtonBase.js +1 -1
  374. package/node/ButtonGroup/ButtonGroup.js +1 -1
  375. package/node/Card/Card.js +1 -1
  376. package/node/CardActionArea/CardActionArea.js +1 -1
  377. package/node/CardActions/CardActions.js +1 -1
  378. package/node/CardContent/CardContent.js +1 -1
  379. package/node/CardHeader/CardHeader.js +1 -1
  380. package/node/CardMedia/CardMedia.js +2 -2
  381. package/node/Checkbox/Checkbox.js +1 -1
  382. package/node/Chip/Chip.js +1 -1
  383. package/node/CircularProgress/CircularProgress.js +1 -1
  384. package/node/ClickAwayListener/index.js +1 -1
  385. package/node/Collapse/Collapse.js +1 -1
  386. package/node/Container/Container.js +1 -1
  387. package/node/Dialog/Dialog.js +1 -1
  388. package/node/DialogActions/DialogActions.js +1 -1
  389. package/node/DialogContent/DialogContent.js +4 -2
  390. package/node/DialogContentText/DialogContentText.js +1 -1
  391. package/node/DialogTitle/DialogTitle.js +1 -1
  392. package/node/Divider/Divider.js +1 -1
  393. package/node/Drawer/Drawer.js +1 -1
  394. package/node/Fab/Fab.js +1 -1
  395. package/node/FilledInput/FilledInput.js +1 -1
  396. package/node/FormControl/FormControl.js +1 -1
  397. package/node/FormControlLabel/FormControlLabel.js +1 -1
  398. package/node/FormGroup/FormGroup.js +1 -1
  399. package/node/FormHelperText/FormHelperText.js +1 -1
  400. package/node/FormLabel/FormLabel.js +1 -1
  401. package/node/Grid/Grid.js +6 -3
  402. package/node/Icon/Icon.js +1 -1
  403. package/node/IconButton/IconButton.js +1 -1
  404. package/node/ImageList/ImageList.js +1 -1
  405. package/node/ImageListItem/ImageListItem.js +1 -1
  406. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  407. package/node/Input/Input.js +1 -1
  408. package/node/InputAdornment/InputAdornment.js +1 -1
  409. package/node/InputBase/InputBase.js +4 -11
  410. package/node/InputLabel/InputLabel.js +1 -1
  411. package/node/LinearProgress/LinearProgress.js +1 -1
  412. package/node/Link/Link.js +1 -1
  413. package/node/List/List.js +1 -1
  414. package/node/ListItem/ListItem.js +1 -1
  415. package/node/ListItemAvatar/ListItemAvatar.js +1 -1
  416. package/node/ListItemButton/ListItemButton.js +1 -1
  417. package/node/ListItemIcon/ListItemIcon.js +1 -1
  418. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  419. package/node/ListItemText/ListItemText.js +1 -1
  420. package/node/ListSubheader/ListSubheader.js +1 -1
  421. package/node/Menu/Menu.js +1 -1
  422. package/node/MenuItem/MenuItem.js +5 -2
  423. package/node/MobileStepper/MobileStepper.js +1 -1
  424. package/node/Modal/Modal.js +1 -1
  425. package/node/NativeSelect/NativeSelect.js +1 -1
  426. package/node/OutlinedInput/OutlinedInput.js +1 -1
  427. package/node/Pagination/Pagination.js +1 -1
  428. package/node/PaginationItem/PaginationItem.js +1 -1
  429. package/node/Paper/Paper.js +1 -1
  430. package/node/Popover/Popover.js +1 -1
  431. package/node/Popper/index.js +1 -1
  432. package/node/Radio/Radio.js +1 -1
  433. package/node/Rating/Rating.js +1 -1
  434. package/node/Select/Select.js +1 -1
  435. package/node/Skeleton/Skeleton.js +1 -1
  436. package/node/Slider/Slider.js +1 -1
  437. package/node/Snackbar/Snackbar.js +3 -3
  438. package/node/SnackbarContent/SnackbarContent.js +1 -1
  439. package/node/SpeedDial/SpeedDial.js +1 -1
  440. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  441. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
  442. package/node/Stack/Stack.js +1 -1
  443. package/node/Step/Step.js +1 -1
  444. package/node/StepButton/StepButton.js +1 -1
  445. package/node/StepConnector/StepConnector.js +1 -1
  446. package/node/StepContent/StepContent.js +1 -1
  447. package/node/StepIcon/StepIcon.js +1 -1
  448. package/node/StepLabel/StepLabel.js +1 -1
  449. package/node/Stepper/Stepper.js +1 -1
  450. package/node/SvgIcon/SvgIcon.js +1 -1
  451. package/node/Switch/Switch.js +1 -1
  452. package/node/Tab/Tab.js +27 -7
  453. package/node/TabScrollButton/TabScrollButton.js +1 -1
  454. package/node/Table/Table.js +1 -1
  455. package/node/TableBody/TableBody.js +1 -1
  456. package/node/TableCell/TableCell.js +1 -1
  457. package/node/TableContainer/TableContainer.js +1 -1
  458. package/node/TableFooter/TableFooter.js +1 -1
  459. package/node/TableHead/TableHead.js +1 -1
  460. package/node/TablePagination/TablePagination.js +1 -1
  461. package/node/TableRow/TableRow.js +1 -1
  462. package/node/TableSortLabel/TableSortLabel.js +1 -1
  463. package/node/Tabs/Tabs.js +1 -1
  464. package/node/TextField/TextField.js +1 -1
  465. package/node/TextareaAutosize/index.js +1 -1
  466. package/node/ToggleButton/ToggleButton.js +1 -1
  467. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  468. package/node/Toolbar/Toolbar.js +1 -1
  469. package/node/Tooltip/Tooltip.js +4 -4
  470. package/node/Typography/Typography.js +1 -1
  471. package/node/index.js +1 -1
  472. package/node/styles/index.js +12 -0
  473. package/node/utils/index.js +9 -1
  474. package/package.json +5 -6
  475. package/styles/components.d.ts +0 -3
  476. package/styles/index.d.ts +4 -0
  477. package/styles/index.js +1 -1
  478. package/umd/material-ui.development.js +7835 -7748
  479. package/umd/material-ui.production.min.js +21 -21
  480. package/utils/index.d.ts +1 -0
  481. package/utils/index.js +2 -1
  482. package/ClickAwayListener/ClickAwayListener.d.ts +0 -47
  483. package/ClickAwayListener/ClickAwayListener.js +0 -196
  484. package/Popper/Popper.d.ts +0 -97
  485. package/Popper/Popper.js +0 -354
  486. package/TextareaAutosize/TextareaAutosize.d.ts +0 -27
  487. package/TextareaAutosize/TextareaAutosize.js +0 -224
  488. package/legacy/ClickAwayListener/ClickAwayListener.js +0 -199
  489. package/legacy/Popper/Popper.js +0 -359
  490. package/legacy/TextareaAutosize/TextareaAutosize.js +0 -226
  491. package/modern/ClickAwayListener/ClickAwayListener.js +0 -196
  492. package/modern/Popper/Popper.js +0 -354
  493. package/modern/TextareaAutosize/TextareaAutosize.js +0 -224
  494. package/node/ClickAwayListener/ClickAwayListener.js +0 -216
  495. package/node/Popper/Popper.js +0 -378
  496. package/node/TextareaAutosize/TextareaAutosize.js +0 -245
@@ -1,226 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- import * as React from 'react';
4
- import PropTypes from 'prop-types';
5
- import debounce from '../utils/debounce';
6
- import useForkRef from '../utils/useForkRef';
7
- import useEnhancedEffect from '../utils/useEnhancedEffect';
8
- import ownerWindow from '../utils/ownerWindow';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
-
12
- function getStyleValue(computedStyle, property) {
13
- return parseInt(computedStyle[property], 10) || 0;
14
- }
15
-
16
- var styles = {
17
- shadow: {
18
- // Visibility needed to hide the extra text area on iPads
19
- visibility: 'hidden',
20
- // Remove from the content flow
21
- position: 'absolute',
22
- // Ignore the scrollbar width
23
- overflow: 'hidden',
24
- height: 0,
25
- top: 0,
26
- left: 0,
27
- // Create a new layer, increase the isolation of the computed values
28
- transform: 'translateZ(0)'
29
- }
30
- };
31
- var TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize(props, ref) {
32
- var onChange = props.onChange,
33
- maxRows = props.maxRows,
34
- _props$minRows = props.minRows,
35
- minRows = _props$minRows === void 0 ? 1 : _props$minRows,
36
- style = props.style,
37
- value = props.value,
38
- other = _objectWithoutProperties(props, ["onChange", "maxRows", "minRows", "style", "value"]);
39
-
40
- var _React$useRef = React.useRef(value != null),
41
- isControlled = _React$useRef.current;
42
-
43
- var inputRef = React.useRef(null);
44
- var handleRef = useForkRef(ref, inputRef);
45
- var shadowRef = React.useRef(null);
46
- var renders = React.useRef(0);
47
-
48
- var _React$useState = React.useState({}),
49
- state = _React$useState[0],
50
- setState = _React$useState[1];
51
-
52
- var syncHeight = React.useCallback(function () {
53
- var input = inputRef.current;
54
- var containerWindow = ownerWindow(input);
55
- var computedStyle = containerWindow.getComputedStyle(input); // If input's width is shrunk and it's not visible, don't sync height.
56
-
57
- if (computedStyle.width === '0px') {
58
- return;
59
- }
60
-
61
- var inputShallow = shadowRef.current;
62
- inputShallow.style.width = computedStyle.width;
63
- inputShallow.value = input.value || props.placeholder || 'x';
64
-
65
- if (inputShallow.value.slice(-1) === '\n') {
66
- // Certain fonts which overflow the line height will cause the textarea
67
- // to report a different scrollHeight depending on whether the last line
68
- // is empty. Make it non-empty to avoid this issue.
69
- inputShallow.value += ' ';
70
- }
71
-
72
- var boxSizing = computedStyle['box-sizing'];
73
- var padding = getStyleValue(computedStyle, 'padding-bottom') + getStyleValue(computedStyle, 'padding-top');
74
- var border = getStyleValue(computedStyle, 'border-bottom-width') + getStyleValue(computedStyle, 'border-top-width'); // The height of the inner content
75
-
76
- var innerHeight = inputShallow.scrollHeight; // Measure height of a textarea with a single row
77
-
78
- inputShallow.value = 'x';
79
- var singleRowHeight = inputShallow.scrollHeight; // The height of the outer content
80
-
81
- var outerHeight = innerHeight;
82
-
83
- if (minRows) {
84
- outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);
85
- }
86
-
87
- if (maxRows) {
88
- outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);
89
- }
90
-
91
- outerHeight = Math.max(outerHeight, singleRowHeight); // Take the box sizing into account for applying this value as a style.
92
-
93
- var outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);
94
- var overflow = Math.abs(outerHeight - innerHeight) <= 1;
95
- setState(function (prevState) {
96
- // Need a large enough difference to update the height.
97
- // This prevents infinite rendering loop.
98
- if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {
99
- renders.current += 1;
100
- return {
101
- overflow: overflow,
102
- outerHeightStyle: outerHeightStyle
103
- };
104
- }
105
-
106
- if (process.env.NODE_ENV !== 'production') {
107
- if (renders.current === 20) {
108
- console.error(['MUI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n'));
109
- }
110
- }
111
-
112
- return prevState;
113
- });
114
- }, [maxRows, minRows, props.placeholder]);
115
- React.useEffect(function () {
116
- var handleResize = debounce(function () {
117
- renders.current = 0;
118
- syncHeight();
119
- });
120
- var containerWindow = ownerWindow(inputRef.current);
121
- containerWindow.addEventListener('resize', handleResize);
122
- var resizeObserver;
123
-
124
- if (typeof ResizeObserver !== 'undefined') {
125
- resizeObserver = new ResizeObserver(handleResize);
126
- resizeObserver.observe(inputRef.current);
127
- }
128
-
129
- return function () {
130
- handleResize.clear();
131
- containerWindow.removeEventListener('resize', handleResize);
132
-
133
- if (resizeObserver) {
134
- resizeObserver.disconnect();
135
- }
136
- };
137
- }, [syncHeight]);
138
- useEnhancedEffect(function () {
139
- syncHeight();
140
- });
141
- React.useEffect(function () {
142
- renders.current = 0;
143
- }, [value]);
144
-
145
- var handleChange = function handleChange(event) {
146
- renders.current = 0;
147
-
148
- if (!isControlled) {
149
- syncHeight();
150
- }
151
-
152
- if (onChange) {
153
- onChange(event);
154
- }
155
- };
156
-
157
- return /*#__PURE__*/_jsxs(React.Fragment, {
158
- children: [/*#__PURE__*/_jsx("textarea", _extends({
159
- value: value,
160
- onChange: handleChange,
161
- ref: handleRef // Apply the rows prop to get a "correct" first SSR paint
162
- ,
163
- rows: minRows,
164
- style: _extends({
165
- height: state.outerHeightStyle,
166
- // Need a large enough difference to allow scrolling.
167
- // This prevents infinite rendering loop.
168
- overflow: state.overflow ? 'hidden' : null
169
- }, style)
170
- }, other)), /*#__PURE__*/_jsx("textarea", {
171
- "aria-hidden": true,
172
- className: props.className,
173
- readOnly: true,
174
- ref: shadowRef,
175
- tabIndex: -1,
176
- style: _extends({}, styles.shadow, style, {
177
- padding: 0
178
- })
179
- })]
180
- });
181
- });
182
- process.env.NODE_ENV !== "production" ? TextareaAutosize.propTypes
183
- /* remove-proptypes */
184
- = {
185
- // ----------------------------- Warning --------------------------------
186
- // | These PropTypes are generated from the TypeScript type definitions |
187
- // | To update them edit the d.ts file and run "yarn proptypes" |
188
- // ----------------------------------------------------------------------
189
-
190
- /**
191
- * @ignore
192
- */
193
- className: PropTypes.string,
194
-
195
- /**
196
- * Maximum number of rows to display.
197
- */
198
- maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
199
-
200
- /**
201
- * Minimum number of rows to display.
202
- * @default 1
203
- */
204
- minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
205
-
206
- /**
207
- * @ignore
208
- */
209
- onChange: PropTypes.func,
210
-
211
- /**
212
- * @ignore
213
- */
214
- placeholder: PropTypes.string,
215
-
216
- /**
217
- * @ignore
218
- */
219
- style: PropTypes.object,
220
-
221
- /**
222
- * @ignore
223
- */
224
- value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string])
225
- } : void 0;
226
- export default TextareaAutosize;
@@ -1,196 +0,0 @@
1
- import * as React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { elementAcceptingRef, exactProp } from '@mui/utils';
4
- import ownerDocument from '../utils/ownerDocument';
5
- import useForkRef from '../utils/useForkRef';
6
- import useEventCallback from '../utils/useEventCallback'; // TODO: return `EventHandlerName extends `on${infer EventName}` ? Lowercase<EventName> : never` once generatePropTypes runs with TS 4.1
7
-
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
-
10
- function mapEventPropToEvent(eventProp) {
11
- return eventProp.substring(2).toLowerCase();
12
- }
13
-
14
- function clickedRootScrollbar(event, doc) {
15
- return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
16
- }
17
-
18
- /**
19
- * Listen for click events that occur somewhere in the document, outside of the element itself.
20
- * For instance, if you need to hide a menu when people click anywhere else on your page.
21
- *
22
- * Demos:
23
- *
24
- * - [Click Away Listener](https://mui.com/components/click-away-listener/)
25
- * - [Menus](https://mui.com/components/menus/)
26
- *
27
- * API:
28
- *
29
- * - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
30
- */
31
- function ClickAwayListener(props) {
32
- const {
33
- children,
34
- disableReactTree = false,
35
- mouseEvent = 'onClick',
36
- onClickAway,
37
- touchEvent = 'onTouchEnd'
38
- } = props;
39
- const movedRef = React.useRef(false);
40
- const nodeRef = React.useRef(null);
41
- const activatedRef = React.useRef(false);
42
- const syntheticEventRef = React.useRef(false);
43
- React.useEffect(() => {
44
- // Ensure that this component is not "activated" synchronously.
45
- // https://github.com/facebook/react/issues/20074
46
- setTimeout(() => {
47
- activatedRef.current = true;
48
- }, 0);
49
- return () => {
50
- activatedRef.current = false;
51
- };
52
- }, []);
53
- const handleRef = useForkRef( // @ts-expect-error TODO upstream fix
54
- children.ref, nodeRef); // The handler doesn't take event.defaultPrevented into account:
55
- //
56
- // event.preventDefault() is meant to stop default behaviors like
57
- // clicking a checkbox to check it, hitting a button to submit a form,
58
- // and hitting left arrow to move the cursor in a text input etc.
59
- // Only special HTML elements have these default behaviors.
60
-
61
- const handleClickAway = useEventCallback(event => {
62
- // Given developers can stop the propagation of the synthetic event,
63
- // we can only be confident with a positive value.
64
- const insideReactTree = syntheticEventRef.current;
65
- syntheticEventRef.current = false;
66
- const doc = ownerDocument(nodeRef.current); // 1. IE11 support, which trigger the handleClickAway even after the unbind
67
- // 2. The child might render null.
68
- // 3. Behave like a blur listener.
69
-
70
- if (!activatedRef.current || !nodeRef.current || 'clientX' in event && clickedRootScrollbar(event, doc)) {
71
- return;
72
- } // Do not act if user performed touchmove
73
-
74
-
75
- if (movedRef.current) {
76
- movedRef.current = false;
77
- return;
78
- }
79
-
80
- let insideDOM; // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js
81
-
82
- if (event.composedPath) {
83
- insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;
84
- } else {
85
- insideDOM = !doc.documentElement.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
86
- event.target) || nodeRef.current.contains( // @ts-expect-error returns `false` as intended when not dispatched from a Node
87
- event.target);
88
- }
89
-
90
- if (!insideDOM && (disableReactTree || !insideReactTree)) {
91
- onClickAway(event);
92
- }
93
- }); // Keep track of mouse/touch events that bubbled up through the portal.
94
-
95
- const createHandleSynthetic = handlerName => event => {
96
- syntheticEventRef.current = true;
97
- const childrenPropsHandler = children.props[handlerName];
98
-
99
- if (childrenPropsHandler) {
100
- childrenPropsHandler(event);
101
- }
102
- };
103
-
104
- const childrenProps = {
105
- ref: handleRef
106
- };
107
-
108
- if (touchEvent !== false) {
109
- childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
110
- }
111
-
112
- React.useEffect(() => {
113
- if (touchEvent !== false) {
114
- const mappedTouchEvent = mapEventPropToEvent(touchEvent);
115
- const doc = ownerDocument(nodeRef.current);
116
-
117
- const handleTouchMove = () => {
118
- movedRef.current = true;
119
- };
120
-
121
- doc.addEventListener(mappedTouchEvent, handleClickAway);
122
- doc.addEventListener('touchmove', handleTouchMove);
123
- return () => {
124
- doc.removeEventListener(mappedTouchEvent, handleClickAway);
125
- doc.removeEventListener('touchmove', handleTouchMove);
126
- };
127
- }
128
-
129
- return undefined;
130
- }, [handleClickAway, touchEvent]);
131
-
132
- if (mouseEvent !== false) {
133
- childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
134
- }
135
-
136
- React.useEffect(() => {
137
- if (mouseEvent !== false) {
138
- const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
139
- const doc = ownerDocument(nodeRef.current);
140
- doc.addEventListener(mappedMouseEvent, handleClickAway);
141
- return () => {
142
- doc.removeEventListener(mappedMouseEvent, handleClickAway);
143
- };
144
- }
145
-
146
- return undefined;
147
- }, [handleClickAway, mouseEvent]);
148
- return /*#__PURE__*/_jsx(React.Fragment, {
149
- children: /*#__PURE__*/React.cloneElement(children, childrenProps)
150
- });
151
- }
152
-
153
- process.env.NODE_ENV !== "production" ? ClickAwayListener.propTypes
154
- /* remove-proptypes */
155
- = {
156
- // ----------------------------- Warning --------------------------------
157
- // | These PropTypes are generated from the TypeScript type definitions |
158
- // | To update them edit TypeScript types and run "yarn proptypes" |
159
- // ----------------------------------------------------------------------
160
-
161
- /**
162
- * The wrapped element.
163
- */
164
- children: elementAcceptingRef.isRequired,
165
-
166
- /**
167
- * If `true`, the React tree is ignored and only the DOM tree is considered.
168
- * This prop changes how portaled elements are handled.
169
- * @default false
170
- */
171
- disableReactTree: PropTypes.bool,
172
-
173
- /**
174
- * The mouse event to listen to. You can disable the listener by providing `false`.
175
- * @default 'onClick'
176
- */
177
- mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
178
-
179
- /**
180
- * Callback fired when a "click away" event is detected.
181
- */
182
- onClickAway: PropTypes.func.isRequired,
183
-
184
- /**
185
- * The touch event to listen to. You can disable the listener by providing `false`.
186
- * @default 'onTouchEnd'
187
- */
188
- touchEvent: PropTypes.oneOf(['onTouchEnd', 'onTouchStart', false])
189
- } : void 0;
190
-
191
- if (process.env.NODE_ENV !== 'production') {
192
- // eslint-disable-next-line
193
- ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);
194
- }
195
-
196
- export default ClickAwayListener;