@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
package/locale/index.js CHANGED
@@ -82,26 +82,26 @@ export const arEG = {
82
82
  components: {
83
83
  MuiBreadcrumbs: {
84
84
  defaultProps: {
85
- expandText: 'ظهر العنوان'
85
+ expandText: 'إظهار المسار'
86
86
  }
87
87
  },
88
88
  MuiTablePagination: {
89
89
  defaultProps: {
90
90
  getItemAriaLabel: type => {
91
91
  if (type === 'first') {
92
- return 'امش للصفحة الأولى';
92
+ return 'انتقل إلى الصفحة الأولى';
93
93
  }
94
94
 
95
95
  if (type === 'last') {
96
- return 'امش للصفحة الأخيرة';
96
+ return 'انتقل إلى الصفحة الأخيرة';
97
97
  }
98
98
 
99
99
  if (type === 'next') {
100
- return 'امش للصفحة التالية';
100
+ return 'انتقل إلى الصفحة التالية';
101
101
  } // if (type === 'previous') {
102
102
 
103
103
 
104
- return 'امش للصفحة السابقة';
104
+ return 'انتقل إلى الصفحة السابقة';
105
105
  },
106
106
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
107
107
  labelDisplayedRows: ({
@@ -121,7 +121,7 @@ export const arEG = {
121
121
  defaultProps: {
122
122
  clearText: 'مسح',
123
123
  closeText: 'إغلاق',
124
- loadingText: 'يتم التحميل…',
124
+ loadingText: 'جار التحميل...',
125
125
  noOptionsText: 'لا يوجد خيارات',
126
126
  openText: 'فتح'
127
127
  }
@@ -136,23 +136,23 @@ export const arEG = {
136
136
  'aria-label': 'التنقل عبر الصفحات',
137
137
  getItemAriaLabel: (type, page, selected) => {
138
138
  if (type === 'page') {
139
- return `${selected ? '' : 'امش إلى '} صفحة ${page}`;
139
+ return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
140
140
  }
141
141
 
142
142
  if (type === 'first') {
143
- return 'امش للصفحة الأولى';
143
+ return 'انتقل إلى الصفحة الأولى';
144
144
  }
145
145
 
146
146
  if (type === 'last') {
147
- return 'امش للصفحة الأخيرة';
147
+ return 'انتقل إلى الصفحة الأخيرة';
148
148
  }
149
149
 
150
150
  if (type === 'next') {
151
- return 'امش للصفحة التالية';
151
+ return 'انتقل إلى الصفحة التالية';
152
152
  } // if (type === 'previous') {
153
153
 
154
154
 
155
- return 'امش للصفحة السابقة';
155
+ return 'انتقل إلى الصفحة السابقة';
156
156
  }
157
157
  }
158
158
  }
@@ -162,26 +162,26 @@ export const arSD = {
162
162
  components: {
163
163
  MuiBreadcrumbs: {
164
164
  defaultProps: {
165
- expandText: 'إظهر العنوان'
165
+ expandText: 'إظهار المسار'
166
166
  }
167
167
  },
168
168
  MuiTablePagination: {
169
169
  defaultProps: {
170
170
  getItemAriaLabel: type => {
171
171
  if (type === 'first') {
172
- return 'إذهب الى الصفحة الأولى';
172
+ return 'انتقل إلى الصفحة الأولى';
173
173
  }
174
174
 
175
175
  if (type === 'last') {
176
- return 'إذهب الي الصفحة الأخيرة';
176
+ return 'انتقل إلى الصفحة الأخيرة';
177
177
  }
178
178
 
179
179
  if (type === 'next') {
180
- return 'إذهب الى الصفحة التالية';
180
+ return 'انتقل إلى الصفحة التالية';
181
181
  } // if (type === 'previous') {
182
182
 
183
183
 
184
- return 'إذهب الى الصفحة السابقة';
184
+ return 'انتقل إلى الصفحة السابقة';
185
185
  },
186
186
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
187
187
  labelDisplayedRows: ({
@@ -201,7 +201,7 @@ export const arSD = {
201
201
  defaultProps: {
202
202
  clearText: 'مسح',
203
203
  closeText: 'إغلاق',
204
- loadingText: 'يتم التحميل…',
204
+ loadingText: 'جار التحميل...',
205
205
  noOptionsText: 'لا يوجد خيارات',
206
206
  openText: 'فتح'
207
207
  }
@@ -216,23 +216,23 @@ export const arSD = {
216
216
  'aria-label': 'التنقل عبر الصفحات',
217
217
  getItemAriaLabel: (type, page, selected) => {
218
218
  if (type === 'page') {
219
- return `${selected ? '' : 'إذهب إلى '} صفحة ${page}`;
219
+ return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
220
220
  }
221
221
 
222
222
  if (type === 'first') {
223
- return 'إذهب الى الصفحة الأولى';
223
+ return 'انتقل إلى الصفحة الأولى';
224
224
  }
225
225
 
226
226
  if (type === 'last') {
227
- return 'إذهب الي الصفحة الأخيرة';
227
+ return 'انتقل الي الصفحة الأخيرة';
228
228
  }
229
229
 
230
230
  if (type === 'next') {
231
- return 'إذهب الى الصفحة التالية';
231
+ return 'انتقل إلى الصفحة التالية';
232
232
  } // if (type === 'previous') {
233
233
 
234
234
 
235
- return 'إذهب الى الصفحة السابقة';
235
+ return 'انتقل إلى الصفحة السابقة';
236
236
  }
237
237
  }
238
238
  }
@@ -164,6 +164,7 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
164
164
  className: classes.message,
165
165
  children: children
166
166
  }), action != null ? /*#__PURE__*/_jsx(AlertAction, {
167
+ ownerState: ownerState,
167
168
  className: classes.action,
168
169
  children: action
169
170
  }) : null, action == null && onClose ? /*#__PURE__*/_jsx(AlertAction, {
@@ -236,7 +236,7 @@ const AutocompletePopper = styled(Popper, {
236
236
  theme,
237
237
  ownerState
238
238
  }) => _extends({
239
- zIndex: theme.zIndex.modal
239
+ zIndex: (theme.vars || theme).zIndex.modal
240
240
  }, ownerState.disablePortal && {
241
241
  position: 'absolute'
242
242
  }));
@@ -256,7 +256,7 @@ const AutocompleteLoading = styled('div', {
256
256
  })(({
257
257
  theme
258
258
  }) => ({
259
- color: theme.palette.text.secondary,
259
+ color: (theme.vars || theme).palette.text.secondary,
260
260
  padding: '14px 16px'
261
261
  }));
262
262
  const AutocompleteNoOptions = styled('div', {
@@ -266,7 +266,7 @@ const AutocompleteNoOptions = styled('div', {
266
266
  })(({
267
267
  theme
268
268
  }) => ({
269
- color: theme.palette.text.secondary,
269
+ color: (theme.vars || theme).palette.text.secondary,
270
270
  padding: '14px 16px'
271
271
  }));
272
272
  const AutocompleteListbox = styled('div', {
@@ -299,30 +299,30 @@ const AutocompleteListbox = styled('div', {
299
299
  minHeight: 'auto'
300
300
  },
301
301
  [`&.${autocompleteClasses.focused}`]: {
302
- backgroundColor: theme.palette.action.hover,
302
+ backgroundColor: (theme.vars || theme).palette.action.hover,
303
303
  // Reset on touch devices, it doesn't add specificity
304
304
  '@media (hover: none)': {
305
305
  backgroundColor: 'transparent'
306
306
  }
307
307
  },
308
308
  '&[aria-disabled="true"]': {
309
- opacity: theme.palette.action.disabledOpacity,
309
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
310
310
  pointerEvents: 'none'
311
311
  },
312
312
  [`&.${autocompleteClasses.focusVisible}`]: {
313
- backgroundColor: theme.palette.action.focus
313
+ backgroundColor: (theme.vars || theme).palette.action.focus
314
314
  },
315
315
  '&[aria-selected="true"]': {
316
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
316
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
317
317
  [`&.${autocompleteClasses.focused}`]: {
318
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
318
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
319
319
  // Reset on touch devices, it doesn't add specificity
320
320
  '@media (hover: none)': {
321
- backgroundColor: theme.palette.action.selected
321
+ backgroundColor: (theme.vars || theme).palette.action.selected
322
322
  }
323
323
  },
324
324
  [`&.${autocompleteClasses.focusVisible}`]: {
325
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
325
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
326
326
  }
327
327
  }
328
328
  }
@@ -334,7 +334,7 @@ const AutocompleteGroupLabel = styled(ListSubheader, {
334
334
  })(({
335
335
  theme
336
336
  }) => ({
337
- backgroundColor: theme.palette.background.paper,
337
+ backgroundColor: (theme.vars || theme).palette.background.paper,
338
338
  top: -8
339
339
  }));
340
340
  const AutocompleteGroupUl = styled('ul', {
@@ -433,7 +433,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
433
433
  componentName: 'Autocomplete'
434
434
  }));
435
435
  const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
436
- const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
436
+ const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
437
437
 
438
438
  const ownerState = _extends({}, props, {
439
439
  disablePortal,
@@ -456,7 +456,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
456
456
  }, getTagProps(params));
457
457
 
458
458
  if (renderTags) {
459
- startAdornment = renderTags(value, getCustomizedTagProps);
459
+ startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
460
460
  } else {
461
461
  startAdornment = value.map((option, index) => /*#__PURE__*/_jsx(Chip, _extends({
462
462
  label: getOptionLabel(option),
@@ -525,10 +525,11 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
525
525
  fullWidth: true,
526
526
  size: size === 'small' ? 'small' : undefined,
527
527
  InputLabelProps: getInputLabelProps(),
528
- InputProps: {
528
+ InputProps: _extends({
529
529
  ref: setAnchorEl,
530
530
  className: classes.inputRoot,
531
- startAdornment,
531
+ startAdornment
532
+ }, (hasClearIcon || hasPopupIcon) && {
532
533
  endAdornment: /*#__PURE__*/_jsxs(AutocompleteEndAdornment, {
533
534
  className: classes.endAdornment,
534
535
  ownerState: ownerState,
@@ -548,7 +549,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
548
549
  children: popupIcon
549
550
  })) : null]
550
551
  })
551
- },
552
+ }),
552
553
  inputProps: _extends({
553
554
  className: clsx(classes.input),
554
555
  disabled,
@@ -1032,6 +1033,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1032
1033
  *
1033
1034
  * @param {T[]} value The `value` provided to the component.
1034
1035
  * @param {function} getTagProps A tag props getter.
1036
+ * @param {object} ownerState The state of the Autocomplete component.
1035
1037
  * @returns {ReactNode}
1036
1038
  */
1037
1039
  renderTags: PropTypes.func,
File without changes
package/modern/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
  const defaultTheme = createTheme();
@@ -192,12 +192,12 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
192
192
 
193
193
  } = options;
194
194
 
195
- if (event.type === 'mousedown' && ignoringMouseDown.current) {
195
+ if (event?.type === 'mousedown' && ignoringMouseDown.current) {
196
196
  ignoringMouseDown.current = false;
197
197
  return;
198
198
  }
199
199
 
200
- if (event.type === 'touchstart') {
200
+ if (event?.type === 'touchstart') {
201
201
  ignoringMouseDown.current = true;
202
202
  }
203
203
 
@@ -213,7 +213,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
213
213
  let rippleY;
214
214
  let rippleSize;
215
215
 
216
- if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
216
+ if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
217
217
  rippleX = Math.round(rect.width / 2);
218
218
  rippleY = Math.round(rect.height / 2);
219
219
  } else {
@@ -238,7 +238,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
238
238
  } // Touche devices
239
239
 
240
240
 
241
- if (event.touches) {
241
+ if (event?.touches) {
242
242
  // check that this isn't another touchstart due to multitouch
243
243
  // otherwise we will only clear a single timer when unmounting while two
244
244
  // are running
@@ -281,7 +281,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
281
281
  clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
282
282
  // We still want to show ripple effect.
283
283
 
284
- if (event.type === 'touchend' && startTimerCommit.current) {
284
+ if (event?.type === 'touchend' && startTimerCommit.current) {
285
285
  startTimerCommit.current();
286
286
  startTimerCommit.current = null;
287
287
  startTimer.current = setTimeout(() => {
@@ -56,9 +56,9 @@ const ButtonGroupRoot = styled('div', {
56
56
  ownerState
57
57
  }) => _extends({
58
58
  display: 'inline-flex',
59
- borderRadius: theme.shape.borderRadius
59
+ borderRadius: (theme.vars || theme).shape.borderRadius
60
60
  }, ownerState.variant === 'contained' && {
61
- boxShadow: theme.shadows[2]
61
+ boxShadow: (theme.vars || theme).shadows[2]
62
62
  }, ownerState.disableElevation && {
63
63
  boxShadow: 'none'
64
64
  }, ownerState.fullWidth && {
@@ -86,27 +86,27 @@ const ButtonGroupRoot = styled('div', {
86
86
  borderBottomRightRadius: 0,
87
87
  borderBottomLeftRadius: 0
88
88
  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
89
- borderRight: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
89
+ borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
90
90
  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
91
- borderBottom: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
91
+ borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
92
92
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
93
- borderColor: alpha(theme.palette[ownerState.color].main, 0.5)
93
+ borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
94
94
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
95
95
  borderRightColor: 'transparent'
96
96
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
97
97
  borderBottomColor: 'transparent'
98
98
  }, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
99
- borderRight: `1px solid ${theme.palette.grey[400]}`,
99
+ borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
100
100
  [`&.${buttonGroupClasses.disabled}`]: {
101
- borderRight: `1px solid ${theme.palette.action.disabled}`
101
+ borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
102
102
  }
103
103
  }, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
104
- borderBottom: `1px solid ${theme.palette.grey[400]}`,
104
+ borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
105
105
  [`&.${buttonGroupClasses.disabled}`]: {
106
- borderBottom: `1px solid ${theme.palette.action.disabled}`
106
+ borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
107
107
  }
108
108
  }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
109
- borderColor: theme.palette[ownerState.color].dark
109
+ borderColor: (theme.vars || theme).palette[ownerState.color].dark
110
110
  }, {
111
111
  '&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
112
112
  borderRightColor: 'currentColor'
@@ -34,13 +34,13 @@ const CardActionAreaRoot = styled(ButtonBase, {
34
34
  textAlign: 'inherit',
35
35
  width: '100%',
36
36
  [`&:hover .${cardActionAreaClasses.focusHighlight}`]: {
37
- opacity: theme.palette.action.hoverOpacity,
37
+ opacity: (theme.vars || theme).palette.action.hoverOpacity,
38
38
  '@media (hover: none)': {
39
39
  opacity: 0
40
40
  }
41
41
  },
42
42
  [`&.${cardActionAreaClasses.focusVisible} .${cardActionAreaClasses.focusHighlight}`]: {
43
- opacity: theme.palette.action.focusOpacity
43
+ opacity: (theme.vars || theme).palette.action.focusOpacity
44
44
  }
45
45
  }));
46
46
  const CardActionAreaFocusHighlight = styled('span', {
@@ -1,108 +1,24 @@
1
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["className", "component", "disableGutters", "fixed", "maxWidth"];
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
- const useUtilityClasses = ownerState => {
15
- const {
16
- classes,
17
- fixed,
18
- disableGutters,
19
- maxWidth
20
- } = ownerState;
21
- const slots = {
22
- root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']
23
- };
24
- return composeClasses(slots, getContainerUtilityClass, classes);
25
- };
26
-
27
- const ContainerRoot = styled('div', {
28
- name: 'MuiContainer',
29
- slot: 'Root',
30
- overridesResolver: (props, styles) => {
31
- const {
32
- ownerState
33
- } = props;
34
- return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
35
- }
36
- })(({
37
- theme,
38
- ownerState
39
- }) => _extends({
40
- width: '100%',
41
- marginLeft: 'auto',
42
- boxSizing: 'border-box',
43
- marginRight: 'auto',
44
- display: 'block'
45
- }, !ownerState.disableGutters && {
46
- paddingLeft: theme.spacing(2),
47
- paddingRight: theme.spacing(2),
48
- [theme.breakpoints.up('sm')]: {
49
- paddingLeft: theme.spacing(3),
50
- paddingRight: theme.spacing(3)
51
- }
52
- }), ({
53
- theme,
54
- ownerState
55
- }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
56
- const value = theme.breakpoints.values[breakpoint];
57
-
58
- if (value !== 0) {
59
- acc[theme.breakpoints.up(breakpoint)] = {
60
- maxWidth: `${value}${theme.breakpoints.unit}`
61
- };
62
- }
63
-
64
- return acc;
65
- }, {}), ({
66
- theme,
67
- ownerState
68
- }) => _extends({}, ownerState.maxWidth === 'xs' && {
69
- [theme.breakpoints.up('xs')]: {
70
- maxWidth: Math.max(theme.breakpoints.values.xs, 444)
71
- }
72
- }, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
73
- [theme.breakpoints.up(ownerState.maxWidth)]: {
74
- maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`
75
- }
76
- }));
77
- const Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {
78
- const props = useThemeProps({
5
+ import styled from '../styles/styled';
6
+ import useThemeProps from '../styles/useThemeProps';
7
+ const Container = createContainer({
8
+ createStyledComponent: styled('div', {
9
+ name: 'MuiContainer',
10
+ slot: 'Root',
11
+ overridesResolver: (props, styles) => {
12
+ const {
13
+ ownerState
14
+ } = props;
15
+ return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
16
+ }
17
+ }),
18
+ useThemeProps: inProps => useThemeProps({
79
19
  props: inProps,
80
20
  name: 'MuiContainer'
81
- });
82
-
83
- const {
84
- className,
85
- component = 'div',
86
- disableGutters = false,
87
- fixed = false,
88
- maxWidth = 'lg'
89
- } = props,
90
- other = _objectWithoutPropertiesLoose(props, _excluded);
91
-
92
- const ownerState = _extends({}, props, {
93
- component,
94
- disableGutters,
95
- fixed,
96
- maxWidth
97
- });
98
-
99
- const classes = useUtilityClasses(ownerState);
100
- return /*#__PURE__*/_jsx(ContainerRoot, _extends({
101
- as: component,
102
- ownerState: ownerState,
103
- className: clsx(classes.root, className),
104
- ref: ref
105
- }, other));
21
+ })
106
22
  });
107
23
  process.env.NODE_ENV !== "production" ? Container.propTypes
108
24
  /* remove-proptypes */
@@ -122,11 +38,6 @@ process.env.NODE_ENV !== "production" ? Container.propTypes
122
38
  */
123
39
  classes: PropTypes.object,
124
40
 
125
- /**
126
- * @ignore
127
- */
128
- className: PropTypes.string,
129
-
130
41
  /**
131
42
  * The component used for the root node.
132
43
  * Either a string to use a HTML element or a component.
@@ -19,12 +19,12 @@ export const html = (theme, enableColorScheme) => _extends({
19
19
  colorScheme: theme.palette.mode
20
20
  });
21
21
  export const body = theme => _extends({
22
- color: theme.palette.text.primary
22
+ color: (theme.vars || theme).palette.text.primary
23
23
  }, theme.typography.body1, {
24
- backgroundColor: theme.palette.background.default,
24
+ backgroundColor: (theme.vars || theme).palette.background.default,
25
25
  '@media print': {
26
26
  // Save printer ink.
27
- backgroundColor: theme.palette.common.white
27
+ backgroundColor: (theme.vars || theme).palette.common.white
28
28
  }
29
29
  });
30
30
  export const styles = (theme, enableColorScheme = false) => {
@@ -42,7 +42,7 @@ export const styles = (theme, enableColorScheme = false) => {
42
42
  // Add support for document.body.requestFullScreen().
43
43
  // Other elements, if background transparent, are not supported.
44
44
  '&::backdrop': {
45
- backgroundColor: theme.palette.background.default
45
+ backgroundColor: (theme.vars || theme).palette.background.default
46
46
  }
47
47
  })
48
48
  };
@@ -42,8 +42,8 @@ const DialogContentRoot = styled('div', {
42
42
  padding: '20px 24px'
43
43
  }, ownerState.dividers ? {
44
44
  padding: '16px 24px',
45
- borderTop: `1px solid ${theme.palette.divider}`,
46
- borderBottom: `1px solid ${theme.palette.divider}`
45
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
46
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
47
47
  } : {
48
48
  [`.${dialogTitleClasses.root} + &`]: {
49
49
  paddingTop: 0
@@ -47,7 +47,7 @@ const DividerRoot = styled('div', {
47
47
  flexShrink: 0,
48
48
  borderWidth: 0,
49
49
  borderStyle: 'solid',
50
- borderColor: theme.palette.divider,
50
+ borderColor: (theme.vars || theme).palette.divider,
51
51
  borderBottomWidth: 'thin'
52
52
  }, ownerState.absolute && {
53
53
  position: 'absolute',
@@ -55,7 +55,7 @@ const DividerRoot = styled('div', {
55
55
  left: 0,
56
56
  width: '100%'
57
57
  }, ownerState.light && {
58
- borderColor: alpha(theme.palette.divider, 0.08)
58
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
59
59
  }, ownerState.variant === 'inset' && {
60
60
  marginLeft: 72
61
61
  }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
@@ -82,7 +82,7 @@ const DividerRoot = styled('div', {
82
82
  '&::before, &::after': {
83
83
  position: 'relative',
84
84
  width: '100%',
85
- borderTop: `thin solid ${theme.palette.divider}`,
85
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
86
86
  top: '50%',
87
87
  content: '""',
88
88
  transform: 'translateY(50%)'
@@ -97,7 +97,7 @@ const DividerRoot = styled('div', {
97
97
  top: '0%',
98
98
  left: '50%',
99
99
  borderTop: 0,
100
- borderLeft: `thin solid ${theme.palette.divider}`,
100
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
101
101
  transform: 'translateX(0%)'
102
102
  }
103
103
  }), ({
@@ -46,7 +46,7 @@ const DrawerRoot = styled(Modal, {
46
46
  })(({
47
47
  theme
48
48
  }) => ({
49
- zIndex: theme.zIndex.drawer
49
+ zIndex: (theme.vars || theme).zIndex.drawer
50
50
  }));
51
51
  const DrawerDockedRoot = styled('div', {
52
52
  shouldForwardProp: rootShouldForwardProp,
@@ -75,7 +75,7 @@ const DrawerPaper = styled(Paper, {
75
75
  flexDirection: 'column',
76
76
  height: '100%',
77
77
  flex: '1 0 auto',
78
- zIndex: theme.zIndex.drawer,
78
+ zIndex: (theme.vars || theme).zIndex.drawer,
79
79
  // Add iOS momentum scrolling for iOS < 13.0
80
80
  WebkitOverflowScrolling: 'touch',
81
81
  // temporary style
@@ -103,13 +103,13 @@ const DrawerPaper = styled(Paper, {
103
103
  height: 'auto',
104
104
  maxHeight: '100%'
105
105
  }, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
106
- borderRight: `1px solid ${theme.palette.divider}`
106
+ borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
107
107
  }, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
108
- borderBottom: `1px solid ${theme.palette.divider}`
108
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
109
109
  }, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
110
- borderLeft: `1px solid ${theme.palette.divider}`
110
+ borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
111
111
  }, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
112
- borderTop: `1px solid ${theme.palette.divider}`
112
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
113
113
  }));
114
114
  const oppositeDirection = {
115
115
  left: 'right',