@mui/material 5.6.4 → 5.8.1

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 (387) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/Alert.js +1 -0
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/Autocomplete.d.ts +23 -1
  10. package/Autocomplete/Autocomplete.js +18 -16
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  14. package/Backdrop/backdropClasses.d.ts +10 -10
  15. package/Badge/Badge.d.ts +1 -34
  16. package/Badge/badgeClasses.d.ts +56 -24
  17. package/BottomNavigation/BottomNavigation.js +0 -0
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  20. package/Box/Box.js +1 -1
  21. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  22. package/Button/buttonClasses.d.ts +76 -76
  23. package/ButtonBase/TouchRipple.js +5 -5
  24. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  25. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  26. package/ButtonGroup/ButtonGroup.js +10 -10
  27. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  28. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  29. package/CHANGELOG.md +241 -0
  30. package/Card/cardClasses.d.ts +8 -8
  31. package/CardActionArea/CardActionArea.js +2 -2
  32. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  33. package/CardActions/cardActionsClasses.d.ts +10 -10
  34. package/CardContent/cardContentClasses.d.ts +8 -8
  35. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  36. package/CardMedia/cardMediaClasses.d.ts +12 -12
  37. package/Checkbox/checkboxClasses.d.ts +18 -18
  38. package/Chip/chipClasses.d.ts +80 -80
  39. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  40. package/ClickAwayListener/index.d.ts +2 -2
  41. package/Collapse/collapseClasses.d.ts +18 -18
  42. package/Container/Container.js +17 -106
  43. package/Container/containerClasses.d.ts +6 -22
  44. package/CssBaseline/CssBaseline.js +4 -4
  45. package/Dialog/DialogContext.d.ts +6 -6
  46. package/Dialog/dialogClasses.d.ts +36 -36
  47. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  48. package/DialogContent/DialogContent.js +2 -2
  49. package/DialogContent/dialogContentClasses.d.ts +10 -10
  50. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  51. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  52. package/Divider/Divider.js +4 -4
  53. package/Divider/dividerClasses.d.ts +34 -34
  54. package/Drawer/Drawer.js +6 -6
  55. package/Drawer/drawerClasses.d.ts +30 -30
  56. package/Fab/Fab.js +72 -66
  57. package/Fab/fabClasses.d.ts +26 -26
  58. package/FilledInput/filledInputClasses.d.ts +40 -40
  59. package/FormControl/formControlClasses.d.ts +14 -14
  60. package/FormControlLabel/FormControlLabel.js +1 -1
  61. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  62. package/FormGroup/formGroupClasses.d.ts +12 -12
  63. package/FormHelperText/FormHelperText.js +3 -3
  64. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  65. package/FormLabel/FormLabel.js +5 -5
  66. package/FormLabel/formLabelClasses.d.ts +22 -22
  67. package/Grid/gridClasses.d.ts +48 -48
  68. package/Icon/Icon.js +8 -8
  69. package/Icon/iconClasses.d.ts +24 -24
  70. package/IconButton/IconButton.js +5 -5
  71. package/IconButton/iconButtonClasses.d.ts +26 -26
  72. package/ImageList/imageListClasses.d.ts +16 -16
  73. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  74. package/ImageListItemBar/ImageListItemBar.js +1 -1
  75. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  76. package/Input/Input.js +9 -4
  77. package/Input/inputClasses.d.ts +34 -34
  78. package/InputAdornment/InputAdornment.js +1 -1
  79. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  80. package/InputBase/InputBase.js +16 -8
  81. package/InputBase/inputBaseClasses.d.ts +44 -44
  82. package/InputLabel/inputLabelClasses.d.ts +32 -32
  83. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  84. package/Link/Link.js +3 -8
  85. package/Link/linkClasses.d.ts +18 -18
  86. package/List/listClasses.d.ts +14 -14
  87. package/ListItem/ListItem.js +8 -8
  88. package/ListItem/listItemClasses.d.ts +30 -30
  89. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  90. package/ListItemButton/ListItemButton.js +15 -9
  91. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  92. package/ListItemIcon/ListItemIcon.js +1 -1
  93. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  94. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  95. package/ListItemText/listItemTextClasses.d.ts +18 -18
  96. package/ListSubheader/ListSubheader.js +3 -3
  97. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  98. package/Menu/menuClasses.d.ts +12 -12
  99. package/MenuItem/MenuItem.js +8 -8
  100. package/MenuItem/menuItemClasses.d.ts +20 -20
  101. package/MenuList/MenuList.d.ts +1 -1
  102. package/MenuList/MenuList.js +1 -1
  103. package/MobileStepper/MobileStepper.js +5 -5
  104. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  105. package/Modal/Modal.js +1 -1
  106. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  107. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  108. package/Pagination/paginationClasses.d.ts +14 -14
  109. package/PaginationItem/PaginationItem.js +27 -27
  110. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  111. package/Paper/Paper.js +20 -15
  112. package/Paper/index.d.ts +1 -1
  113. package/Paper/paperClasses.d.ts +39 -39
  114. package/Popover/popoverClasses.d.ts +10 -10
  115. package/Popper/Popper.d.ts +29 -29
  116. package/README.md +2 -1
  117. package/Radio/Radio.js +4 -4
  118. package/Radio/radioClasses.d.ts +16 -16
  119. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  120. package/RadioGroup/useRadioGroup.d.ts +4 -4
  121. package/Rating/Rating.js +2 -2
  122. package/Rating/ratingClasses.d.ts +40 -40
  123. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  124. package/Select/SelectInput.js +2 -2
  125. package/Select/selectClasses.d.ts +30 -30
  126. package/Skeleton/skeletonClasses.d.ts +24 -24
  127. package/Slider/Slider.js +1 -5
  128. package/Snackbar/Snackbar.js +1 -1
  129. package/Snackbar/snackbarClasses.d.ts +20 -20
  130. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  131. package/SpeedDial/SpeedDial.js +1 -1
  132. package/SpeedDial/speedDialClasses.d.ts +22 -22
  133. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  134. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  135. package/Step/StepContext.d.ts +20 -20
  136. package/Step/stepClasses.d.ts +16 -16
  137. package/StepButton/stepButtonClasses.d.ts +14 -14
  138. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  139. package/StepContent/stepContentClasses.d.ts +12 -12
  140. package/StepIcon/StepIcon.js +5 -5
  141. package/StepIcon/stepIconClasses.d.ts +16 -16
  142. package/StepLabel/StepLabel.js +4 -4
  143. package/StepLabel/stepLabelClasses.d.ts +28 -28
  144. package/Stepper/StepperContext.d.ts +18 -0
  145. package/Stepper/StepperContext.js +10 -2
  146. package/Stepper/index.d.ts +3 -0
  147. package/Stepper/index.js +3 -1
  148. package/Stepper/stepperClasses.d.ts +14 -14
  149. package/SvgIcon/SvgIcon.js +4 -4
  150. package/SvgIcon/svgIconClasses.d.ts +24 -24
  151. package/Switch/switchClasses.d.ts +32 -32
  152. package/Tab/Tab.js +7 -7
  153. package/Tab/tabClasses.d.ts +26 -26
  154. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  155. package/Table/Table.js +1 -1
  156. package/Table/tableClasses.d.ts +10 -10
  157. package/TableBody/tableBodyClasses.d.ts +8 -8
  158. package/TableCell/tableCellClasses.d.ts +32 -32
  159. package/TableContainer/tableContainerClasses.d.ts +8 -8
  160. package/TableFooter/tableFooterClasses.d.ts +8 -8
  161. package/TableHead/tableHeadClasses.d.ts +8 -8
  162. package/TablePagination/TablePagination.js +1 -1
  163. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  164. package/TableRow/TableRow.js +3 -3
  165. package/TableRow/tableRowClasses.d.ts +16 -16
  166. package/TableSortLabel/TableSortLabel.js +4 -4
  167. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  168. package/Tabs/Tabs.js +4 -4
  169. package/Tabs/tabsClasses.d.ts +32 -32
  170. package/TextField/textFieldClasses.d.ts +8 -8
  171. package/ToggleButton/ToggleButton.js +17 -10
  172. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  173. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  174. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  175. package/Toolbar/toolbarClasses.d.ts +14 -14
  176. package/Tooltip/Tooltip.js +5 -5
  177. package/Tooltip/tooltipClasses.d.ts +30 -30
  178. package/Typography/typographyClasses.d.ts +50 -50
  179. package/className/index.d.ts +1 -8
  180. package/className/index.js +1 -8
  181. package/darkScrollbar/index.d.ts +28 -28
  182. package/index.js +1 -1
  183. package/internal/switchBaseClasses.d.ts +12 -12
  184. package/legacy/Alert/Alert.js +1 -0
  185. package/legacy/Autocomplete/Autocomplete.js +18 -16
  186. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  187. package/legacy/Box/Box.js +1 -1
  188. package/legacy/ButtonBase/TouchRipple.js +5 -5
  189. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  190. package/legacy/CardActionArea/CardActionArea.js +2 -2
  191. package/legacy/Container/Container.js +18 -103
  192. package/legacy/CssBaseline/CssBaseline.js +4 -4
  193. package/legacy/DialogContent/DialogContent.js +2 -2
  194. package/legacy/Divider/Divider.js +4 -4
  195. package/legacy/Drawer/Drawer.js +6 -6
  196. package/legacy/Fab/Fab.js +20 -18
  197. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  198. package/legacy/FormHelperText/FormHelperText.js +3 -3
  199. package/legacy/FormLabel/FormLabel.js +5 -5
  200. package/legacy/Icon/Icon.js +8 -8
  201. package/legacy/IconButton/IconButton.js +5 -5
  202. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  203. package/legacy/Input/Input.js +8 -3
  204. package/legacy/InputAdornment/InputAdornment.js +1 -1
  205. package/legacy/InputBase/InputBase.js +16 -8
  206. package/legacy/Link/Link.js +3 -9
  207. package/legacy/ListItem/ListItem.js +8 -8
  208. package/legacy/ListItemButton/ListItemButton.js +15 -9
  209. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  210. package/legacy/ListSubheader/ListSubheader.js +3 -3
  211. package/legacy/MenuItem/MenuItem.js +8 -8
  212. package/legacy/MenuList/MenuList.js +1 -1
  213. package/legacy/MobileStepper/MobileStepper.js +5 -5
  214. package/legacy/Modal/Modal.js +1 -1
  215. package/legacy/PaginationItem/PaginationItem.js +27 -27
  216. package/legacy/Paper/Paper.js +10 -7
  217. package/legacy/Radio/Radio.js +4 -4
  218. package/legacy/Rating/Rating.js +2 -2
  219. package/legacy/Select/SelectInput.js +2 -2
  220. package/legacy/Slider/Slider.js +1 -10
  221. package/legacy/Snackbar/Snackbar.js +1 -1
  222. package/legacy/SpeedDial/SpeedDial.js +1 -1
  223. package/legacy/StepIcon/StepIcon.js +5 -5
  224. package/legacy/StepLabel/StepLabel.js +4 -4
  225. package/legacy/Stepper/StepperContext.js +10 -2
  226. package/legacy/Stepper/index.js +3 -1
  227. package/legacy/SvgIcon/SvgIcon.js +4 -4
  228. package/legacy/Tab/Tab.js +7 -7
  229. package/legacy/Table/Table.js +1 -1
  230. package/legacy/TablePagination/TablePagination.js +1 -1
  231. package/legacy/TableRow/TableRow.js +3 -3
  232. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  233. package/legacy/Tabs/Tabs.js +4 -4
  234. package/legacy/ToggleButton/ToggleButton.js +16 -9
  235. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  236. package/legacy/Tooltip/Tooltip.js +5 -5
  237. package/legacy/className/index.js +1 -8
  238. package/legacy/index.js +1 -1
  239. package/legacy/locale/index.js +22 -22
  240. package/legacy/styles/createMixins.js +5 -3
  241. package/legacy/styles/createPalette.js +2 -1
  242. package/legacy/styles/createTheme.js +1 -1
  243. package/legacy/styles/experimental_extendTheme.js +70 -42
  244. package/locale/index.d.ts +71 -71
  245. package/locale/index.js +22 -22
  246. package/modern/Alert/Alert.js +1 -0
  247. package/modern/Autocomplete/Autocomplete.js +18 -16
  248. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  249. package/modern/Box/Box.js +1 -1
  250. package/modern/ButtonBase/TouchRipple.js +5 -5
  251. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  252. package/modern/CardActionArea/CardActionArea.js +2 -2
  253. package/modern/Container/Container.js +17 -106
  254. package/modern/CssBaseline/CssBaseline.js +4 -4
  255. package/modern/DialogContent/DialogContent.js +2 -2
  256. package/modern/Divider/Divider.js +4 -4
  257. package/modern/Drawer/Drawer.js +6 -6
  258. package/modern/Fab/Fab.js +19 -17
  259. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  260. package/modern/FormHelperText/FormHelperText.js +3 -3
  261. package/modern/FormLabel/FormLabel.js +5 -5
  262. package/modern/Icon/Icon.js +8 -8
  263. package/modern/IconButton/IconButton.js +5 -5
  264. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  265. package/modern/Input/Input.js +9 -4
  266. package/modern/InputAdornment/InputAdornment.js +1 -1
  267. package/modern/InputBase/InputBase.js +16 -8
  268. package/modern/Link/Link.js +3 -8
  269. package/modern/ListItem/ListItem.js +8 -8
  270. package/modern/ListItemButton/ListItemButton.js +15 -9
  271. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  272. package/modern/ListSubheader/ListSubheader.js +3 -3
  273. package/modern/MenuItem/MenuItem.js +8 -8
  274. package/modern/MenuList/MenuList.js +1 -1
  275. package/modern/MobileStepper/MobileStepper.js +5 -5
  276. package/modern/Modal/Modal.js +1 -1
  277. package/modern/PaginationItem/PaginationItem.js +27 -27
  278. package/modern/Paper/Paper.js +8 -7
  279. package/modern/Radio/Radio.js +4 -4
  280. package/modern/Rating/Rating.js +2 -2
  281. package/modern/Select/SelectInput.js +2 -2
  282. package/modern/Slider/Slider.js +1 -5
  283. package/modern/Snackbar/Snackbar.js +1 -1
  284. package/modern/SpeedDial/SpeedDial.js +1 -1
  285. package/modern/StepIcon/StepIcon.js +5 -5
  286. package/modern/StepLabel/StepLabel.js +4 -4
  287. package/modern/Stepper/StepperContext.js +10 -2
  288. package/modern/Stepper/index.js +3 -1
  289. package/modern/SvgIcon/SvgIcon.js +3 -3
  290. package/modern/Tab/Tab.js +7 -7
  291. package/modern/Table/Table.js +1 -1
  292. package/modern/TablePagination/TablePagination.js +1 -1
  293. package/modern/TableRow/TableRow.js +3 -3
  294. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  295. package/modern/Tabs/Tabs.js +4 -4
  296. package/modern/ToggleButton/ToggleButton.js +17 -10
  297. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  298. package/modern/Tooltip/Tooltip.js +5 -5
  299. package/modern/className/index.js +1 -8
  300. package/modern/index.js +1 -1
  301. package/modern/locale/index.js +22 -22
  302. package/modern/styles/createMixins.js +5 -3
  303. package/modern/styles/createPalette.js +2 -1
  304. package/modern/styles/createTheme.js +1 -1
  305. package/modern/styles/experimental_extendTheme.js +71 -44
  306. package/node/Alert/Alert.js +1 -0
  307. package/node/Autocomplete/Autocomplete.js +19 -16
  308. package/node/BottomNavigation/BottomNavigation.js +0 -0
  309. package/node/Box/Box.js +2 -2
  310. package/node/ButtonBase/TouchRipple.js +5 -5
  311. package/node/ButtonGroup/ButtonGroup.js +10 -10
  312. package/node/CardActionArea/CardActionArea.js +2 -2
  313. package/node/Container/Container.js +17 -113
  314. package/node/CssBaseline/CssBaseline.js +4 -4
  315. package/node/DialogContent/DialogContent.js +2 -2
  316. package/node/Divider/Divider.js +4 -4
  317. package/node/Drawer/Drawer.js +6 -6
  318. package/node/Fab/Fab.js +72 -66
  319. package/node/FormControlLabel/FormControlLabel.js +1 -1
  320. package/node/FormHelperText/FormHelperText.js +3 -3
  321. package/node/FormLabel/FormLabel.js +5 -5
  322. package/node/Icon/Icon.js +8 -8
  323. package/node/IconButton/IconButton.js +5 -5
  324. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  325. package/node/Input/Input.js +9 -4
  326. package/node/InputAdornment/InputAdornment.js +1 -1
  327. package/node/InputBase/InputBase.js +14 -8
  328. package/node/Link/Link.js +3 -9
  329. package/node/ListItem/ListItem.js +8 -8
  330. package/node/ListItemButton/ListItemButton.js +15 -9
  331. package/node/ListItemIcon/ListItemIcon.js +1 -1
  332. package/node/ListSubheader/ListSubheader.js +3 -3
  333. package/node/MenuItem/MenuItem.js +8 -8
  334. package/node/MenuList/MenuList.js +1 -1
  335. package/node/MobileStepper/MobileStepper.js +5 -5
  336. package/node/Modal/Modal.js +1 -1
  337. package/node/PaginationItem/PaginationItem.js +27 -27
  338. package/node/Paper/Paper.js +22 -14
  339. package/node/Radio/Radio.js +4 -4
  340. package/node/Rating/Rating.js +2 -2
  341. package/node/Select/SelectInput.js +2 -2
  342. package/node/Slider/Slider.js +1 -5
  343. package/node/Snackbar/Snackbar.js +1 -1
  344. package/node/SpeedDial/SpeedDial.js +1 -1
  345. package/node/StepIcon/StepIcon.js +5 -5
  346. package/node/StepLabel/StepLabel.js +4 -4
  347. package/node/Stepper/StepperContext.js +11 -1
  348. package/node/Stepper/index.js +22 -1
  349. package/node/SvgIcon/SvgIcon.js +4 -4
  350. package/node/Tab/Tab.js +7 -7
  351. package/node/Table/Table.js +1 -1
  352. package/node/TablePagination/TablePagination.js +1 -1
  353. package/node/TableRow/TableRow.js +3 -3
  354. package/node/TableSortLabel/TableSortLabel.js +4 -4
  355. package/node/Tabs/Tabs.js +4 -4
  356. package/node/ToggleButton/ToggleButton.js +17 -10
  357. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  358. package/node/Tooltip/Tooltip.js +5 -5
  359. package/node/className/index.js +2 -2
  360. package/node/index.js +1 -1
  361. package/node/locale/index.js +22 -22
  362. package/node/styles/createMixins.js +5 -3
  363. package/node/styles/createPalette.js +2 -1
  364. package/node/styles/createTheme.js +1 -1
  365. package/node/styles/experimental_extendTheme.js +72 -45
  366. package/package.json +5 -5
  367. package/styles/ThemeProvider.d.ts +1 -1
  368. package/styles/createMixins.d.ts +2 -6
  369. package/styles/createMixins.js +5 -3
  370. package/styles/createPalette.d.ts +10 -3
  371. package/styles/createPalette.js +2 -1
  372. package/styles/createTheme.js +1 -1
  373. package/styles/experimental_extendTheme.d.ts +43 -16
  374. package/styles/experimental_extendTheme.js +72 -45
  375. package/styles/index.d.ts +1 -0
  376. package/transitions/index.d.ts +1 -1
  377. package/transitions/transition.d.ts +13 -13
  378. package/transitions/utils.d.ts +23 -23
  379. package/umd/material-ui.development.js +1079 -894
  380. package/umd/material-ui.production.min.js +21 -21
  381. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  382. package/useTouchRipple/index.d.ts +1 -1
  383. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  384. package/utils/getScrollbarSize.d.ts +2 -2
  385. package/utils/ownerDocument.d.ts +2 -2
  386. package/utils/ownerWindow.d.ts +2 -2
  387. package/utils/setRef.d.ts +2 -2
@@ -1,50 +1,50 @@
1
- export interface TypographyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="body2"`. */
5
- body2: string;
6
- /** Styles applied to the root element if `variant="body1"`. */
7
- body1: string;
8
- /** Styles applied to the root element if `variant="caption"`. */
9
- caption: string;
10
- /** Styles applied to the root element if `variant="button"`. */
11
- button: string;
12
- /** Styles applied to the root element if `variant="h1"`. */
13
- h1: string;
14
- /** Styles applied to the root element if `variant="h2"`. */
15
- h2: string;
16
- /** Styles applied to the root element if `variant="h3"`. */
17
- h3: string;
18
- /** Styles applied to the root element if `variant="h4"`. */
19
- h4: string;
20
- /** Styles applied to the root element if `variant="h5"`. */
21
- h5: string;
22
- /** Styles applied to the root element if `variant="h6"`. */
23
- h6: string;
24
- /** Styles applied to the root element if `variant="subtitle1"`. */
25
- subtitle1: string;
26
- /** Styles applied to the root element if `variant="subtitle2"`. */
27
- subtitle2: string;
28
- /** Styles applied to the root element if `variant="overline"`. */
29
- overline: string;
30
- /** Styles applied to the root element if `variant="inherit"`. */
31
- inherit: string;
32
- /** Styles applied to the root element if `align="left"`. */
33
- alignLeft: string;
34
- /** Styles applied to the root element if `align="center"`. */
35
- alignCenter: string;
36
- /** Styles applied to the root element if `align="right"`. */
37
- alignRight: string;
38
- /** Styles applied to the root element if `align="justify"`. */
39
- alignJustify: string;
40
- /** Styles applied to the root element if `nowrap={true}`. */
41
- noWrap: string;
42
- /** Styles applied to the root element if `gutterBottom={true}`. */
43
- gutterBottom: string;
44
- /** Styles applied to the root element if `paragraph={true}`. */
45
- paragraph: string;
46
- }
47
- export declare type TypographyClassKey = keyof TypographyClasses;
48
- export declare function getTypographyUtilityClass(slot: string): string;
49
- declare const typographyClasses: TypographyClasses;
50
- export default typographyClasses;
1
+ export interface TypographyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="body2"`. */
5
+ body2: string;
6
+ /** Styles applied to the root element if `variant="body1"`. */
7
+ body1: string;
8
+ /** Styles applied to the root element if `variant="caption"`. */
9
+ caption: string;
10
+ /** Styles applied to the root element if `variant="button"`. */
11
+ button: string;
12
+ /** Styles applied to the root element if `variant="h1"`. */
13
+ h1: string;
14
+ /** Styles applied to the root element if `variant="h2"`. */
15
+ h2: string;
16
+ /** Styles applied to the root element if `variant="h3"`. */
17
+ h3: string;
18
+ /** Styles applied to the root element if `variant="h4"`. */
19
+ h4: string;
20
+ /** Styles applied to the root element if `variant="h5"`. */
21
+ h5: string;
22
+ /** Styles applied to the root element if `variant="h6"`. */
23
+ h6: string;
24
+ /** Styles applied to the root element if `variant="subtitle1"`. */
25
+ subtitle1: string;
26
+ /** Styles applied to the root element if `variant="subtitle2"`. */
27
+ subtitle2: string;
28
+ /** Styles applied to the root element if `variant="overline"`. */
29
+ overline: string;
30
+ /** Styles applied to the root element if `variant="inherit"`. */
31
+ inherit: string;
32
+ /** Styles applied to the root element if `align="left"`. */
33
+ alignLeft: string;
34
+ /** Styles applied to the root element if `align="center"`. */
35
+ alignCenter: string;
36
+ /** Styles applied to the root element if `align="right"`. */
37
+ alignRight: string;
38
+ /** Styles applied to the root element if `align="justify"`. */
39
+ alignJustify: string;
40
+ /** Styles applied to the root element if `nowrap={true}`. */
41
+ noWrap: string;
42
+ /** Styles applied to the root element if `gutterBottom={true}`. */
43
+ gutterBottom: string;
44
+ /** Styles applied to the root element if `paragraph={true}`. */
45
+ paragraph: string;
46
+ }
47
+ export declare type TypographyClassKey = keyof TypographyClasses;
48
+ export declare function getTypographyUtilityClass(slot: string): string;
49
+ declare const typographyClasses: TypographyClasses;
50
+ export default typographyClasses;
@@ -1,8 +1 @@
1
- /**
2
- * Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
3
- * ❌ import { ... } from '@mui/base';
4
- * ✅ import { ... } from '@mui/base/utils'; // must be specific base module
5
- *
6
- * Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
7
- */
8
- export { unstable_ClassNameGenerator } from '@mui/base/className';
1
+ export { unstable_ClassNameGenerator } from '@mui/utils';
@@ -1,9 +1,2 @@
1
- /**
2
- * Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
3
- * ❌ import { ... } from '@mui/base';
4
- * ✅ import { ... } from '@mui/base/utils'; // must be specific base module
5
- *
6
- * Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
7
- */
8
1
  // eslint-disable-next-line import/prefer-default-export
9
- export { unstable_ClassNameGenerator } from '@mui/base/className';
2
+ export { unstable_ClassNameGenerator } from '@mui/utils';
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.4
1
+ /** @license MUI v5.8.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
@@ -166,6 +166,7 @@ var Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
166
166
  className: classes.message,
167
167
  children: children
168
168
  }), action != null ? /*#__PURE__*/_jsx(AlertAction, {
169
+ ownerState: ownerState,
169
170
  className: classes.action,
170
171
  children: action
171
172
  }) : null, action == null && onClose ? /*#__PURE__*/_jsx(AlertAction, {
@@ -192,7 +192,7 @@ var AutocompletePopper = styled(Popper, {
192
192
  var theme = _ref10.theme,
193
193
  ownerState = _ref10.ownerState;
194
194
  return _extends({
195
- zIndex: theme.zIndex.modal
195
+ zIndex: (theme.vars || theme).zIndex.modal
196
196
  }, ownerState.disablePortal && {
197
197
  position: 'absolute'
198
198
  });
@@ -218,7 +218,7 @@ var AutocompleteLoading = styled('div', {
218
218
  })(function (_ref12) {
219
219
  var theme = _ref12.theme;
220
220
  return {
221
- color: theme.palette.text.secondary,
221
+ color: (theme.vars || theme).palette.text.secondary,
222
222
  padding: '14px 16px'
223
223
  };
224
224
  });
@@ -231,7 +231,7 @@ var AutocompleteNoOptions = styled('div', {
231
231
  })(function (_ref13) {
232
232
  var theme = _ref13.theme;
233
233
  return {
234
- color: theme.palette.text.secondary,
234
+ color: (theme.vars || theme).palette.text.secondary,
235
235
  padding: '14px 16px'
236
236
  };
237
237
  });
@@ -268,26 +268,26 @@ var AutocompleteListbox = styled('div', {
268
268
  }, _defineProperty(_$concat4, theme.breakpoints.up('sm'), {
269
269
  minHeight: 'auto'
270
270
  }), _defineProperty(_$concat4, "&.".concat(autocompleteClasses.focused), {
271
- backgroundColor: theme.palette.action.hover,
271
+ backgroundColor: (theme.vars || theme).palette.action.hover,
272
272
  // Reset on touch devices, it doesn't add specificity
273
273
  '@media (hover: none)': {
274
274
  backgroundColor: 'transparent'
275
275
  }
276
276
  }), _defineProperty(_$concat4, '&[aria-disabled="true"]', {
277
- opacity: theme.palette.action.disabledOpacity,
277
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
278
278
  pointerEvents: 'none'
279
279
  }), _defineProperty(_$concat4, "&.".concat(autocompleteClasses.focusVisible), {
280
- backgroundColor: theme.palette.action.focus
280
+ backgroundColor: (theme.vars || theme).palette.action.focus
281
281
  }), _defineProperty(_$concat4, '&[aria-selected="true"]', (_ariaSelectedTru = {
282
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
282
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
283
283
  }, _defineProperty(_ariaSelectedTru, "&.".concat(autocompleteClasses.focused), {
284
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
284
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
285
285
  // Reset on touch devices, it doesn't add specificity
286
286
  '@media (hover: none)': {
287
- backgroundColor: theme.palette.action.selected
287
+ backgroundColor: (theme.vars || theme).palette.action.selected
288
288
  }
289
289
  }), _defineProperty(_ariaSelectedTru, "&.".concat(autocompleteClasses.focusVisible), {
290
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
290
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
291
291
  }), _ariaSelectedTru)), _$concat4));
292
292
  });
293
293
  var AutocompleteGroupLabel = styled(ListSubheader, {
@@ -299,7 +299,7 @@ var AutocompleteGroupLabel = styled(ListSubheader, {
299
299
  })(function (_ref16) {
300
300
  var theme = _ref16.theme;
301
301
  return {
302
- backgroundColor: theme.palette.background.paper,
302
+ backgroundColor: (theme.vars || theme).palette.background.paper,
303
303
  top: -8
304
304
  };
305
305
  });
@@ -458,7 +458,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
458
458
  groupedOptions = _useAutocomplete.groupedOptions;
459
459
 
460
460
  var hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
461
- var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
461
+ var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
462
462
 
463
463
  var ownerState = _extends({}, props, {
464
464
  disablePortal: disablePortal,
@@ -483,7 +483,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
483
483
  };
484
484
 
485
485
  if (renderTags) {
486
- startAdornment = renderTags(value, getCustomizedTagProps);
486
+ startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
487
487
  } else {
488
488
  startAdornment = value.map(function (option, index) {
489
489
  return /*#__PURE__*/_jsx(Chip, _extends({
@@ -558,10 +558,11 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
558
558
  fullWidth: true,
559
559
  size: size === 'small' ? 'small' : undefined,
560
560
  InputLabelProps: getInputLabelProps(),
561
- InputProps: {
561
+ InputProps: _extends({
562
562
  ref: setAnchorEl,
563
563
  className: classes.inputRoot,
564
- startAdornment: startAdornment,
564
+ startAdornment: startAdornment
565
+ }, (hasClearIcon || hasPopupIcon) && {
565
566
  endAdornment: /*#__PURE__*/_jsxs(AutocompleteEndAdornment, {
566
567
  className: classes.endAdornment,
567
568
  ownerState: ownerState,
@@ -581,7 +582,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
581
582
  children: popupIcon
582
583
  })) : null]
583
584
  })
584
- },
585
+ }),
585
586
  inputProps: _extends({
586
587
  className: clsx(classes.input),
587
588
  disabled: disabled,
@@ -1067,6 +1068,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1067
1068
  *
1068
1069
  * @param {T[]} value The `value` provided to the component.
1069
1070
  * @param {function} getTagProps A tag props getter.
1071
+ * @param {object} ownerState The state of the Autocomplete component.
1070
1072
  * @returns {ReactNode}
1071
1073
  */
1072
1074
  renderTags: PropTypes.func,
File without changes
package/legacy/Box/Box.js CHANGED
@@ -1,5 +1,5 @@
1
- import PropTypes from 'prop-types';
2
1
  import { createBox } from '@mui/system';
2
+ import PropTypes from 'prop-types';
3
3
  import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
4
4
  import { createTheme } from '../styles';
5
5
  var defaultTheme = createTheme();
@@ -133,12 +133,12 @@ var TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, re
133
133
  _options$fakeElement = options.fakeElement,
134
134
  fakeElement = _options$fakeElement === void 0 ? false : _options$fakeElement;
135
135
 
136
- if (event.type === 'mousedown' && ignoringMouseDown.current) {
136
+ if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {
137
137
  ignoringMouseDown.current = false;
138
138
  return;
139
139
  }
140
140
 
141
- if (event.type === 'touchstart') {
141
+ if ((event == null ? void 0 : event.type) === 'touchstart') {
142
142
  ignoringMouseDown.current = true;
143
143
  }
144
144
 
@@ -154,7 +154,7 @@ var TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, re
154
154
  var rippleY;
155
155
  var rippleSize;
156
156
 
157
- if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
157
+ if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
158
158
  rippleX = Math.round(rect.width / 2);
159
159
  rippleY = Math.round(rect.height / 2);
160
160
  } else {
@@ -179,7 +179,7 @@ var TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, re
179
179
  } // Touche devices
180
180
 
181
181
 
182
- if (event.touches) {
182
+ if (event != null && event.touches) {
183
183
  // check that this isn't another touchstart due to multitouch
184
184
  // otherwise we will only clear a single timer when unmounting while two
185
185
  // are running
@@ -222,7 +222,7 @@ var TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, re
222
222
  clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
223
223
  // We still want to show ripple effect.
224
224
 
225
- if (event.type === 'touchend' && startTimerCommit.current) {
225
+ if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {
226
226
  startTimerCommit.current();
227
227
  startTimerCommit.current = null;
228
228
  startTimer.current = setTimeout(function () {
@@ -42,9 +42,9 @@ var ButtonGroupRoot = styled('div', {
42
42
  ownerState = _ref6.ownerState;
43
43
  return _extends({
44
44
  display: 'inline-flex',
45
- borderRadius: theme.shape.borderRadius
45
+ borderRadius: (theme.vars || theme).shape.borderRadius
46
46
  }, ownerState.variant === 'contained' && {
47
- boxShadow: theme.shadows[2]
47
+ boxShadow: (theme.vars || theme).shadows[2]
48
48
  }, ownerState.disableElevation && {
49
49
  boxShadow: 'none'
50
50
  }, ownerState.fullWidth && {
@@ -71,25 +71,25 @@ var ButtonGroupRoot = styled('div', {
71
71
  borderBottomRightRadius: 0,
72
72
  borderBottomLeftRadius: 0
73
73
  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
74
- borderRight: "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
74
+ borderRight: theme.vars ? "1px solid rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
75
75
  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
76
- borderBottom: "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
76
+ borderBottom: theme.vars ? "1px solid rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
77
77
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
78
- borderColor: alpha(theme.palette[ownerState.color].main, 0.5)
78
+ borderColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.5)") : alpha(theme.palette[ownerState.color].main, 0.5)
79
79
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
80
80
  borderRightColor: 'transparent'
81
81
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
82
82
  borderBottomColor: 'transparent'
83
83
  }, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && _defineProperty({
84
- borderRight: "1px solid ".concat(theme.palette.grey[400])
84
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.grey[400])
85
85
  }, "&.".concat(buttonGroupClasses.disabled), {
86
- borderRight: "1px solid ".concat(theme.palette.action.disabled)
86
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
87
87
  }), ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && _defineProperty({
88
- borderBottom: "1px solid ".concat(theme.palette.grey[400])
88
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.grey[400])
89
89
  }, "&.".concat(buttonGroupClasses.disabled), {
90
- borderBottom: "1px solid ".concat(theme.palette.action.disabled)
90
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
91
91
  }), ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
92
- borderColor: theme.palette[ownerState.color].dark
92
+ borderColor: (theme.vars || theme).palette[ownerState.color].dark
93
93
  }, {
94
94
  '&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
95
95
  borderRightColor: 'currentColor'
@@ -36,12 +36,12 @@ var CardActionAreaRoot = styled(ButtonBase, {
36
36
  textAlign: 'inherit',
37
37
  width: '100%'
38
38
  }, _defineProperty(_ref2, "&:hover .".concat(cardActionAreaClasses.focusHighlight), {
39
- opacity: theme.palette.action.hoverOpacity,
39
+ opacity: (theme.vars || theme).palette.action.hoverOpacity,
40
40
  '@media (hover: none)': {
41
41
  opacity: 0
42
42
  }
43
43
  }), _defineProperty(_ref2, "&.".concat(cardActionAreaClasses.focusVisible, " .").concat(cardActionAreaClasses.focusHighlight), {
44
- opacity: theme.palette.action.focusOpacity
44
+ opacity: (theme.vars || theme).palette.action.focusOpacity
45
45
  }), _ref2;
46
46
  });
47
47
  var CardActionAreaFocusHighlight = styled('span', {
@@ -1,104 +1,24 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import * as React from 'react';
1
+ /* eslint-disable material-ui/mui-name-matches-component-name */
5
2
  import PropTypes from 'prop-types';
6
- import clsx from 'clsx';
7
- import { unstable_composeClasses as composeClasses } from '@mui/base';
8
- import useThemeProps from '../styles/useThemeProps';
9
- import styled from '../styles/styled';
10
- import { getContainerUtilityClass } from './containerClasses';
3
+ import { createContainer } from '@mui/system';
11
4
  import capitalize from '../utils/capitalize';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
-
14
- var useUtilityClasses = function useUtilityClasses(ownerState) {
15
- var classes = ownerState.classes,
16
- fixed = ownerState.fixed,
17
- disableGutters = ownerState.disableGutters,
18
- maxWidth = ownerState.maxWidth;
19
- var slots = {
20
- root: ['root', maxWidth && "maxWidth".concat(capitalize(String(maxWidth))), fixed && 'fixed', disableGutters && 'disableGutters']
21
- };
22
- return composeClasses(slots, getContainerUtilityClass, classes);
23
- };
24
-
25
- var ContainerRoot = styled('div', {
26
- name: 'MuiContainer',
27
- slot: 'Root',
28
- overridesResolver: function overridesResolver(props, styles) {
29
- var ownerState = props.ownerState;
30
- return [styles.root, styles["maxWidth".concat(capitalize(String(ownerState.maxWidth)))], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
31
- }
32
- })(function (_ref) {
33
- var theme = _ref.theme,
34
- ownerState = _ref.ownerState;
35
- return _extends({
36
- width: '100%',
37
- marginLeft: 'auto',
38
- boxSizing: 'border-box',
39
- marginRight: 'auto',
40
- display: 'block'
41
- }, !ownerState.disableGutters && _defineProperty({
42
- paddingLeft: theme.spacing(2),
43
- paddingRight: theme.spacing(2)
44
- }, theme.breakpoints.up('sm'), {
45
- paddingLeft: theme.spacing(3),
46
- paddingRight: theme.spacing(3)
47
- }));
48
- }, function (_ref3) {
49
- var theme = _ref3.theme,
50
- ownerState = _ref3.ownerState;
51
- return ownerState.fixed && Object.keys(theme.breakpoints.values).reduce(function (acc, breakpoint) {
52
- var value = theme.breakpoints.values[breakpoint];
53
-
54
- if (value !== 0) {
55
- acc[theme.breakpoints.up(breakpoint)] = {
56
- maxWidth: "".concat(value).concat(theme.breakpoints.unit)
57
- };
5
+ import styled from '../styles/styled';
6
+ import _useThemeProps from '../styles/useThemeProps';
7
+ var Container = createContainer({
8
+ createStyledComponent: styled('div', {
9
+ name: 'MuiContainer',
10
+ slot: 'Root',
11
+ overridesResolver: function overridesResolver(props, styles) {
12
+ var ownerState = props.ownerState;
13
+ return [styles.root, styles["maxWidth".concat(capitalize(String(ownerState.maxWidth)))], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
58
14
  }
59
-
60
- return acc;
61
- }, {});
62
- }, function (_ref4) {
63
- var theme = _ref4.theme,
64
- ownerState = _ref4.ownerState;
65
- return _extends({}, ownerState.maxWidth === 'xs' && _defineProperty({}, theme.breakpoints.up('xs'), {
66
- maxWidth: Math.max(theme.breakpoints.values.xs, 444)
67
- }), ownerState.maxWidth && ownerState.maxWidth !== 'xs' && _defineProperty({}, theme.breakpoints.up(ownerState.maxWidth), {
68
- maxWidth: "".concat(theme.breakpoints.values[ownerState.maxWidth]).concat(theme.breakpoints.unit)
69
- }));
70
- });
71
- var Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {
72
- var props = useThemeProps({
73
- props: inProps,
74
- name: 'MuiContainer'
75
- });
76
-
77
- var className = props.className,
78
- _props$component = props.component,
79
- component = _props$component === void 0 ? 'div' : _props$component,
80
- _props$disableGutters = props.disableGutters,
81
- disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters,
82
- _props$fixed = props.fixed,
83
- fixed = _props$fixed === void 0 ? false : _props$fixed,
84
- _props$maxWidth = props.maxWidth,
85
- maxWidth = _props$maxWidth === void 0 ? 'lg' : _props$maxWidth,
86
- other = _objectWithoutProperties(props, ["className", "component", "disableGutters", "fixed", "maxWidth"]);
87
-
88
- var ownerState = _extends({}, props, {
89
- component: component,
90
- disableGutters: disableGutters,
91
- fixed: fixed,
92
- maxWidth: maxWidth
93
- });
94
-
95
- var classes = useUtilityClasses(ownerState);
96
- return /*#__PURE__*/_jsx(ContainerRoot, _extends({
97
- as: component,
98
- ownerState: ownerState,
99
- className: clsx(classes.root, className),
100
- ref: ref
101
- }, other));
15
+ }),
16
+ useThemeProps: function useThemeProps(inProps) {
17
+ return _useThemeProps({
18
+ props: inProps,
19
+ name: 'MuiContainer'
20
+ });
21
+ }
102
22
  });
103
23
  process.env.NODE_ENV !== "production" ? Container.propTypes
104
24
  /* remove-proptypes */
@@ -118,11 +38,6 @@ process.env.NODE_ENV !== "production" ? Container.propTypes
118
38
  */
119
39
  classes: PropTypes.object,
120
40
 
121
- /**
122
- * @ignore
123
- */
124
- className: PropTypes.string,
125
-
126
41
  /**
127
42
  * The component used for the root node.
128
43
  * Either a string to use a HTML element or a component.
@@ -22,12 +22,12 @@ export var html = function html(theme, enableColorScheme) {
22
22
  };
23
23
  export var body = function body(theme) {
24
24
  return _extends({
25
- color: theme.palette.text.primary
25
+ color: (theme.vars || theme).palette.text.primary
26
26
  }, theme.typography.body1, {
27
- backgroundColor: theme.palette.background.default,
27
+ backgroundColor: (theme.vars || theme).palette.background.default,
28
28
  '@media print': {
29
29
  // Save printer ink.
30
- backgroundColor: theme.palette.common.white
30
+ backgroundColor: (theme.vars || theme).palette.common.white
31
31
  }
32
32
  });
33
33
  };
@@ -50,7 +50,7 @@ var _styles = function styles(theme) {
50
50
  // Add support for document.body.requestFullScreen().
51
51
  // Other elements, if background transparent, are not supported.
52
52
  '&::backdrop': {
53
- backgroundColor: theme.palette.background.default
53
+ backgroundColor: (theme.vars || theme).palette.background.default
54
54
  }
55
55
  })
56
56
  };
@@ -38,8 +38,8 @@ var DialogContentRoot = styled('div', {
38
38
  padding: '20px 24px'
39
39
  }, ownerState.dividers ? {
40
40
  padding: '16px 24px',
41
- borderTop: "1px solid ".concat(theme.palette.divider),
42
- borderBottom: "1px solid ".concat(theme.palette.divider)
41
+ borderTop: "1px solid ".concat((theme.vars || theme).palette.divider),
42
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider)
43
43
  } : _defineProperty({}, ".".concat(dialogTitleClasses.root, " + &"), {
44
44
  paddingTop: 0
45
45
  }));