@mui/material 5.6.3 → 5.8.0

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 (385) hide show
  1. package/Accordion/Accordion.js +6 -6
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/AccordionSummary.js +3 -3
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/appBarClasses.d.ts +28 -28
  10. package/Autocomplete/Autocomplete.d.ts +23 -1
  11. package/Autocomplete/Autocomplete.js +18 -16
  12. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  13. package/Avatar/avatarClasses.d.ts +20 -20
  14. package/AvatarGroup/AvatarGroup.js +2 -2
  15. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  16. package/Backdrop/backdropClasses.d.ts +10 -10
  17. package/Badge/Badge.d.ts +1 -34
  18. package/Badge/Badge.js +2 -2
  19. package/Badge/badgeClasses.d.ts +56 -24
  20. package/BottomNavigation/BottomNavigation.js +1 -1
  21. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  22. package/BottomNavigationAction/BottomNavigationAction.js +2 -2
  23. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  24. package/Box/Box.js +1 -1
  25. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  26. package/Button/buttonClasses.d.ts +76 -76
  27. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  28. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  29. package/ButtonGroup/ButtonGroup.js +10 -10
  30. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  31. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  32. package/CHANGELOG.md +238 -0
  33. package/Card/cardClasses.d.ts +8 -8
  34. package/CardActionArea/CardActionArea.js +2 -2
  35. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  36. package/CardActions/cardActionsClasses.d.ts +10 -10
  37. package/CardContent/cardContentClasses.d.ts +8 -8
  38. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  39. package/CardMedia/cardMediaClasses.d.ts +12 -12
  40. package/Checkbox/checkboxClasses.d.ts +18 -18
  41. package/Chip/chipClasses.d.ts +80 -80
  42. package/CircularProgress/CircularProgress.js +1 -1
  43. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  44. package/ClickAwayListener/index.d.ts +2 -2
  45. package/Collapse/collapseClasses.d.ts +18 -18
  46. package/Container/Container.js +17 -106
  47. package/Container/containerClasses.d.ts +6 -22
  48. package/CssBaseline/CssBaseline.js +4 -4
  49. package/Dialog/DialogContext.d.ts +6 -6
  50. package/Dialog/dialogClasses.d.ts +36 -36
  51. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  52. package/DialogContent/DialogContent.js +2 -2
  53. package/DialogContent/dialogContentClasses.d.ts +10 -10
  54. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  55. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  56. package/Divider/Divider.js +4 -4
  57. package/Divider/dividerClasses.d.ts +34 -34
  58. package/Drawer/Drawer.js +6 -6
  59. package/Drawer/drawerClasses.d.ts +30 -30
  60. package/Fab/Fab.js +69 -65
  61. package/Fab/fabClasses.d.ts +26 -26
  62. package/FilledInput/FilledInput.js +3 -1
  63. package/FilledInput/filledInputClasses.d.ts +40 -40
  64. package/FormControl/formControlClasses.d.ts +14 -14
  65. package/FormControlLabel/FormControlLabel.js +1 -1
  66. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  67. package/FormGroup/formGroupClasses.d.ts +12 -12
  68. package/FormHelperText/FormHelperText.js +3 -3
  69. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  70. package/FormLabel/FormLabel.js +5 -5
  71. package/FormLabel/formLabelClasses.d.ts +22 -22
  72. package/Grid/gridClasses.d.ts +48 -48
  73. package/Icon/Icon.js +8 -8
  74. package/Icon/iconClasses.d.ts +24 -24
  75. package/IconButton/IconButton.js +5 -5
  76. package/IconButton/iconButtonClasses.d.ts +26 -26
  77. package/ImageList/imageListClasses.d.ts +16 -16
  78. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  79. package/ImageListItemBar/ImageListItemBar.js +1 -1
  80. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  81. package/Input/Input.js +9 -4
  82. package/Input/inputClasses.d.ts +34 -34
  83. package/InputAdornment/InputAdornment.js +1 -1
  84. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  85. package/InputBase/InputBase.js +16 -8
  86. package/InputBase/inputBaseClasses.d.ts +44 -44
  87. package/InputLabel/inputLabelClasses.d.ts +32 -32
  88. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  89. package/Link/Link.js +3 -8
  90. package/Link/linkClasses.d.ts +18 -18
  91. package/List/listClasses.d.ts +14 -14
  92. package/ListItem/ListItem.js +8 -8
  93. package/ListItem/listItemClasses.d.ts +30 -30
  94. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  95. package/ListItemButton/ListItemButton.js +8 -8
  96. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  97. package/ListItemIcon/ListItemIcon.js +1 -1
  98. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  99. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  100. package/ListItemText/listItemTextClasses.d.ts +18 -18
  101. package/ListSubheader/ListSubheader.js +3 -3
  102. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  103. package/Menu/menuClasses.d.ts +12 -12
  104. package/MenuItem/MenuItem.js +8 -8
  105. package/MenuItem/menuItemClasses.d.ts +20 -20
  106. package/MobileStepper/MobileStepper.js +5 -5
  107. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  108. package/Modal/Modal.js +1 -1
  109. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  110. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  111. package/Pagination/paginationClasses.d.ts +14 -14
  112. package/PaginationItem/PaginationItem.js +27 -27
  113. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  114. package/Paper/paperClasses.d.ts +39 -39
  115. package/Popover/popoverClasses.d.ts +10 -10
  116. package/Popper/Popper.d.ts +29 -29
  117. package/README.md +2 -3
  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/selectClasses.d.ts +30 -30
  125. package/Skeleton/skeletonClasses.d.ts +24 -24
  126. package/Snackbar/Snackbar.js +1 -1
  127. package/Snackbar/snackbarClasses.d.ts +20 -20
  128. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  129. package/SpeedDial/SpeedDial.js +1 -1
  130. package/SpeedDial/speedDialClasses.d.ts +22 -22
  131. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  132. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  133. package/Step/StepContext.d.ts +20 -20
  134. package/Step/stepClasses.d.ts +16 -16
  135. package/StepButton/stepButtonClasses.d.ts +14 -14
  136. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  137. package/StepContent/stepContentClasses.d.ts +12 -12
  138. package/StepIcon/StepIcon.js +5 -5
  139. package/StepIcon/stepIconClasses.d.ts +16 -16
  140. package/StepLabel/StepLabel.js +4 -4
  141. package/StepLabel/stepLabelClasses.d.ts +28 -28
  142. package/Stepper/StepperContext.d.ts +18 -0
  143. package/Stepper/StepperContext.js +10 -2
  144. package/Stepper/index.d.ts +3 -0
  145. package/Stepper/index.js +3 -1
  146. package/Stepper/stepperClasses.d.ts +14 -14
  147. package/SvgIcon/SvgIcon.js +4 -4
  148. package/SvgIcon/svgIconClasses.d.ts +24 -24
  149. package/Switch/switchClasses.d.ts +32 -32
  150. package/Tab/Tab.js +7 -7
  151. package/Tab/tabClasses.d.ts +26 -26
  152. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  153. package/Table/Table.js +1 -1
  154. package/Table/tableClasses.d.ts +10 -10
  155. package/TableBody/tableBodyClasses.d.ts +8 -8
  156. package/TableCell/tableCellClasses.d.ts +32 -32
  157. package/TableContainer/tableContainerClasses.d.ts +8 -8
  158. package/TableFooter/tableFooterClasses.d.ts +8 -8
  159. package/TableHead/tableHeadClasses.d.ts +8 -8
  160. package/TablePagination/TablePagination.js +1 -1
  161. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  162. package/TableRow/TableRow.js +3 -3
  163. package/TableRow/tableRowClasses.d.ts +16 -16
  164. package/TableSortLabel/TableSortLabel.js +4 -4
  165. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  166. package/Tabs/Tabs.d.ts +1 -1
  167. package/Tabs/Tabs.js +2 -2
  168. package/Tabs/tabsClasses.d.ts +32 -32
  169. package/TextField/textFieldClasses.d.ts +8 -8
  170. package/ToggleButton/ToggleButton.js +17 -10
  171. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  172. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  173. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  174. package/Toolbar/toolbarClasses.d.ts +14 -14
  175. package/Tooltip/Tooltip.js +5 -5
  176. package/Tooltip/tooltipClasses.d.ts +30 -30
  177. package/Typography/typographyClasses.d.ts +50 -50
  178. package/className/index.d.ts +1 -8
  179. package/className/index.js +1 -8
  180. package/darkScrollbar/index.d.ts +28 -28
  181. package/index.js +1 -1
  182. package/internal/switchBaseClasses.d.ts +12 -12
  183. package/legacy/Accordion/Accordion.js +6 -6
  184. package/legacy/AccordionSummary/AccordionSummary.js +3 -3
  185. package/legacy/Autocomplete/Autocomplete.js +18 -16
  186. package/legacy/AvatarGroup/AvatarGroup.js +2 -2
  187. package/legacy/Badge/Badge.js +2 -2
  188. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  189. package/legacy/BottomNavigationAction/BottomNavigationAction.js +2 -2
  190. package/legacy/Box/Box.js +1 -1
  191. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  192. package/legacy/CardActionArea/CardActionArea.js +2 -2
  193. package/legacy/CircularProgress/CircularProgress.js +1 -1
  194. package/legacy/Container/Container.js +18 -103
  195. package/legacy/CssBaseline/CssBaseline.js +4 -4
  196. package/legacy/DialogContent/DialogContent.js +2 -2
  197. package/legacy/Divider/Divider.js +4 -4
  198. package/legacy/Drawer/Drawer.js +6 -6
  199. package/legacy/Fab/Fab.js +17 -17
  200. package/legacy/FilledInput/FilledInput.js +2 -2
  201. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  202. package/legacy/FormHelperText/FormHelperText.js +3 -3
  203. package/legacy/FormLabel/FormLabel.js +5 -5
  204. package/legacy/Icon/Icon.js +8 -8
  205. package/legacy/IconButton/IconButton.js +5 -5
  206. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  207. package/legacy/Input/Input.js +8 -3
  208. package/legacy/InputAdornment/InputAdornment.js +1 -1
  209. package/legacy/InputBase/InputBase.js +16 -8
  210. package/legacy/Link/Link.js +3 -9
  211. package/legacy/ListItem/ListItem.js +8 -8
  212. package/legacy/ListItemButton/ListItemButton.js +8 -8
  213. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  214. package/legacy/ListSubheader/ListSubheader.js +3 -3
  215. package/legacy/MenuItem/MenuItem.js +8 -8
  216. package/legacy/MobileStepper/MobileStepper.js +5 -5
  217. package/legacy/Modal/Modal.js +1 -1
  218. package/legacy/PaginationItem/PaginationItem.js +27 -27
  219. package/legacy/Rating/Rating.js +2 -2
  220. package/legacy/Snackbar/Snackbar.js +1 -1
  221. package/legacy/SpeedDial/SpeedDial.js +1 -1
  222. package/legacy/StepIcon/StepIcon.js +5 -5
  223. package/legacy/StepLabel/StepLabel.js +4 -4
  224. package/legacy/Stepper/StepperContext.js +10 -2
  225. package/legacy/Stepper/index.js +3 -1
  226. package/legacy/SvgIcon/SvgIcon.js +4 -4
  227. package/legacy/Tab/Tab.js +7 -7
  228. package/legacy/Table/Table.js +1 -1
  229. package/legacy/TablePagination/TablePagination.js +1 -1
  230. package/legacy/TableRow/TableRow.js +3 -3
  231. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  232. package/legacy/Tabs/Tabs.js +2 -2
  233. package/legacy/ToggleButton/ToggleButton.js +16 -9
  234. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  235. package/legacy/Tooltip/Tooltip.js +5 -5
  236. package/legacy/className/index.js +1 -8
  237. package/legacy/index.js +1 -1
  238. package/legacy/locale/index.js +23 -23
  239. package/legacy/styles/createMixins.js +1 -1
  240. package/legacy/styles/createPalette.js +2 -1
  241. package/legacy/styles/createTheme.js +1 -1
  242. package/legacy/styles/experimental_extendTheme.js +52 -43
  243. package/locale/index.d.ts +71 -71
  244. package/locale/index.js +23 -23
  245. package/modern/Accordion/Accordion.js +6 -6
  246. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  247. package/modern/Autocomplete/Autocomplete.js +18 -16
  248. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  249. package/modern/Badge/Badge.js +2 -2
  250. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  251. package/modern/BottomNavigationAction/BottomNavigationAction.js +2 -2
  252. package/modern/Box/Box.js +1 -1
  253. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  254. package/modern/CardActionArea/CardActionArea.js +2 -2
  255. package/modern/CircularProgress/CircularProgress.js +1 -1
  256. package/modern/Container/Container.js +17 -106
  257. package/modern/CssBaseline/CssBaseline.js +4 -4
  258. package/modern/DialogContent/DialogContent.js +2 -2
  259. package/modern/Divider/Divider.js +4 -4
  260. package/modern/Drawer/Drawer.js +6 -6
  261. package/modern/Fab/Fab.js +16 -16
  262. package/modern/FilledInput/FilledInput.js +1 -1
  263. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  264. package/modern/FormHelperText/FormHelperText.js +3 -3
  265. package/modern/FormLabel/FormLabel.js +5 -5
  266. package/modern/Icon/Icon.js +8 -8
  267. package/modern/IconButton/IconButton.js +5 -5
  268. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  269. package/modern/Input/Input.js +9 -4
  270. package/modern/InputAdornment/InputAdornment.js +1 -1
  271. package/modern/InputBase/InputBase.js +16 -8
  272. package/modern/Link/Link.js +3 -8
  273. package/modern/ListItem/ListItem.js +8 -8
  274. package/modern/ListItemButton/ListItemButton.js +8 -8
  275. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  276. package/modern/ListSubheader/ListSubheader.js +3 -3
  277. package/modern/MenuItem/MenuItem.js +8 -8
  278. package/modern/MobileStepper/MobileStepper.js +5 -5
  279. package/modern/Modal/Modal.js +1 -1
  280. package/modern/PaginationItem/PaginationItem.js +27 -27
  281. package/modern/Rating/Rating.js +2 -2
  282. package/modern/Snackbar/Snackbar.js +1 -1
  283. package/modern/SpeedDial/SpeedDial.js +1 -1
  284. package/modern/StepIcon/StepIcon.js +5 -5
  285. package/modern/StepLabel/StepLabel.js +4 -4
  286. package/modern/Stepper/StepperContext.js +10 -2
  287. package/modern/Stepper/index.js +3 -1
  288. package/modern/SvgIcon/SvgIcon.js +3 -3
  289. package/modern/Tab/Tab.js +7 -7
  290. package/modern/Table/Table.js +1 -1
  291. package/modern/TablePagination/TablePagination.js +1 -1
  292. package/modern/TableRow/TableRow.js +3 -3
  293. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  294. package/modern/Tabs/Tabs.js +2 -2
  295. package/modern/ToggleButton/ToggleButton.js +17 -10
  296. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  297. package/modern/Tooltip/Tooltip.js +5 -5
  298. package/modern/className/index.js +1 -8
  299. package/modern/index.js +1 -1
  300. package/modern/locale/index.js +23 -23
  301. package/modern/styles/createMixins.js +1 -1
  302. package/modern/styles/createPalette.js +2 -1
  303. package/modern/styles/createTheme.js +1 -1
  304. package/modern/styles/experimental_extendTheme.js +56 -45
  305. package/node/Accordion/Accordion.js +6 -6
  306. package/node/AccordionSummary/AccordionSummary.js +3 -3
  307. package/node/Autocomplete/Autocomplete.js +19 -16
  308. package/node/AvatarGroup/AvatarGroup.js +2 -2
  309. package/node/Badge/Badge.js +2 -2
  310. package/node/BottomNavigation/BottomNavigation.js +1 -1
  311. package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
  312. package/node/Box/Box.js +2 -2
  313. package/node/ButtonGroup/ButtonGroup.js +10 -10
  314. package/node/CardActionArea/CardActionArea.js +2 -2
  315. package/node/CircularProgress/CircularProgress.js +1 -1
  316. package/node/Container/Container.js +17 -113
  317. package/node/CssBaseline/CssBaseline.js +4 -4
  318. package/node/DialogContent/DialogContent.js +2 -2
  319. package/node/Divider/Divider.js +4 -4
  320. package/node/Drawer/Drawer.js +6 -6
  321. package/node/Fab/Fab.js +69 -65
  322. package/node/FilledInput/FilledInput.js +3 -1
  323. package/node/FormControlLabel/FormControlLabel.js +1 -1
  324. package/node/FormHelperText/FormHelperText.js +3 -3
  325. package/node/FormLabel/FormLabel.js +5 -5
  326. package/node/Icon/Icon.js +8 -8
  327. package/node/IconButton/IconButton.js +5 -5
  328. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  329. package/node/Input/Input.js +9 -4
  330. package/node/InputAdornment/InputAdornment.js +1 -1
  331. package/node/InputBase/InputBase.js +14 -8
  332. package/node/Link/Link.js +3 -9
  333. package/node/ListItem/ListItem.js +8 -8
  334. package/node/ListItemButton/ListItemButton.js +8 -8
  335. package/node/ListItemIcon/ListItemIcon.js +1 -1
  336. package/node/ListSubheader/ListSubheader.js +3 -3
  337. package/node/MenuItem/MenuItem.js +8 -8
  338. package/node/MobileStepper/MobileStepper.js +5 -5
  339. package/node/Modal/Modal.js +1 -1
  340. package/node/PaginationItem/PaginationItem.js +27 -27
  341. package/node/Rating/Rating.js +2 -2
  342. package/node/Snackbar/Snackbar.js +1 -1
  343. package/node/SpeedDial/SpeedDial.js +1 -1
  344. package/node/StepIcon/StepIcon.js +5 -5
  345. package/node/StepLabel/StepLabel.js +4 -4
  346. package/node/Stepper/StepperContext.js +11 -1
  347. package/node/Stepper/index.js +22 -1
  348. package/node/SvgIcon/SvgIcon.js +4 -4
  349. package/node/Tab/Tab.js +7 -7
  350. package/node/Table/Table.js +1 -1
  351. package/node/TablePagination/TablePagination.js +1 -1
  352. package/node/TableRow/TableRow.js +3 -3
  353. package/node/TableSortLabel/TableSortLabel.js +4 -4
  354. package/node/Tabs/Tabs.js +2 -2
  355. package/node/ToggleButton/ToggleButton.js +17 -10
  356. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  357. package/node/Tooltip/Tooltip.js +5 -5
  358. package/node/className/index.js +2 -2
  359. package/node/index.js +1 -1
  360. package/node/locale/index.js +23 -23
  361. package/node/styles/createMixins.js +1 -1
  362. package/node/styles/createPalette.js +2 -1
  363. package/node/styles/createTheme.js +1 -1
  364. package/node/styles/experimental_extendTheme.js +57 -47
  365. package/package.json +5 -5
  366. package/styles/ThemeProvider.d.ts +1 -1
  367. package/styles/createMixins.d.ts +2 -6
  368. package/styles/createMixins.js +1 -1
  369. package/styles/createPalette.d.ts +9 -2
  370. package/styles/createPalette.js +2 -1
  371. package/styles/createTheme.js +1 -1
  372. package/styles/experimental_extendTheme.d.ts +13 -16
  373. package/styles/experimental_extendTheme.js +57 -46
  374. package/transitions/index.d.ts +1 -1
  375. package/transitions/transition.d.ts +13 -13
  376. package/transitions/utils.d.ts +23 -23
  377. package/umd/material-ui.development.js +915 -767
  378. package/umd/material-ui.production.min.js +19 -19
  379. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  380. package/useTouchRipple/index.d.ts +1 -1
  381. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  382. package/utils/getScrollbarSize.d.ts +2 -2
  383. package/utils/ownerDocument.d.ts +2 -2
  384. package/utils/ownerWindow.d.ts +2 -2
  385. package/utils/setRef.d.ts +2 -2
@@ -30,7 +30,7 @@ const TablePaginationRoot = styled(TableCell, {
30
30
  theme
31
31
  }) => ({
32
32
  overflow: 'auto',
33
- color: theme.palette.text.primary,
33
+ color: (theme.vars || theme).palette.text.primary,
34
34
  fontSize: theme.typography.pxToRem(14),
35
35
  // Increase the specificity to override TableCell.
36
36
  '&:last-child': {
@@ -44,12 +44,12 @@ const TableRowRoot = styled('tr', {
44
44
  // We disable the focus ring for mouse, touch and keyboard users.
45
45
  outline: 0,
46
46
  [`&.${tableRowClasses.hover}:hover`]: {
47
- backgroundColor: theme.palette.action.hover
47
+ backgroundColor: (theme.vars || theme).palette.action.hover
48
48
  },
49
49
  [`&.${tableRowClasses.selected}`]: {
50
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
50
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
51
51
  '&:hover': {
52
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
52
+ 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)
53
53
  }
54
54
  }
55
55
  }));
@@ -45,19 +45,19 @@ const TableSortLabelRoot = styled(ButtonBase, {
45
45
  flexDirection: 'inherit',
46
46
  alignItems: 'center',
47
47
  '&:focus': {
48
- color: theme.palette.text.secondary
48
+ color: (theme.vars || theme).palette.text.secondary
49
49
  },
50
50
  '&:hover': {
51
- color: theme.palette.text.secondary,
51
+ color: (theme.vars || theme).palette.text.secondary,
52
52
  [`& .${tableSortLabelClasses.icon}`]: {
53
53
  opacity: 0.5
54
54
  }
55
55
  },
56
56
  [`&.${tableSortLabelClasses.active}`]: {
57
- color: theme.palette.text.primary,
57
+ color: (theme.vars || theme).palette.text.primary,
58
58
  [`& .${tableSortLabelClasses.icon}`]: {
59
59
  opacity: 1,
60
- color: theme.palette.text.secondary
60
+ color: (theme.vars || theme).palette.text.secondary
61
61
  }
62
62
  }
63
63
  }));
@@ -193,9 +193,9 @@ const TabsIndicator = styled('span', {
193
193
  width: '100%',
194
194
  transition: theme.transitions.create()
195
195
  }, ownerState.indicatorColor === 'primary' && {
196
- backgroundColor: theme.palette.primary.main
196
+ backgroundColor: (theme.vars || theme).palette.primary.main
197
197
  }, ownerState.indicatorColor === 'secondary' && {
198
- backgroundColor: theme.palette.secondary.main
198
+ backgroundColor: (theme.vars || theme).palette.secondary.main
199
199
  }, ownerState.vertical && {
200
200
  height: '100%',
201
201
  width: 2,
@@ -42,35 +42,42 @@ const ToggleButtonRoot = styled(ButtonBase, {
42
42
  theme,
43
43
  ownerState
44
44
  }) => {
45
- const selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
45
+ let selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
46
+ let selectedColorChannel;
47
+
48
+ if (theme.vars) {
49
+ selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
50
+ selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
51
+ }
52
+
46
53
  return _extends({}, theme.typography.button, {
47
- borderRadius: theme.shape.borderRadius,
54
+ borderRadius: (theme.vars || theme).shape.borderRadius,
48
55
  padding: 11,
49
- border: `1px solid ${theme.palette.divider}`,
50
- color: theme.palette.action.active
56
+ border: `1px solid ${(theme.vars || theme).palette.divider}`,
57
+ color: (theme.vars || theme).palette.action.active
51
58
  }, ownerState.fullWidth && {
52
59
  width: '100%'
53
60
  }, {
54
61
  [`&.${toggleButtonClasses.disabled}`]: {
55
- color: theme.palette.action.disabled,
56
- border: `1px solid ${theme.palette.action.disabledBackground}`
62
+ color: (theme.vars || theme).palette.action.disabled,
63
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
57
64
  },
58
65
  '&:hover': {
59
66
  textDecoration: 'none',
60
67
  // Reset on mouse devices
61
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
68
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
62
69
  '@media (hover: none)': {
63
70
  backgroundColor: 'transparent'
64
71
  }
65
72
  },
66
73
  [`&.${toggleButtonClasses.selected}`]: {
67
74
  color: selectedColor,
68
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity),
75
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity),
69
76
  '&:hover': {
70
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
77
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
71
78
  // Reset on touch devices, it doesn't add specificity
72
79
  '@media (hover: none)': {
73
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity)
80
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity)
74
81
  }
75
82
  }
76
83
  }
@@ -45,7 +45,7 @@ const ToggleButtonGroupRoot = styled('div', {
45
45
  theme
46
46
  }) => _extends({
47
47
  display: 'inline-flex',
48
- borderRadius: theme.shape.borderRadius
48
+ borderRadius: (theme.vars || theme).shape.borderRadius
49
49
  }, ownerState.orientation === 'vertical' && {
50
50
  flexDirection: 'column'
51
51
  }, ownerState.fullWidth && {
@@ -56,7 +56,7 @@ const TooltipPopper = styled(Popper, {
56
56
  ownerState,
57
57
  open
58
58
  }) => _extends({
59
- zIndex: theme.zIndex.tooltip,
59
+ zIndex: (theme.vars || theme).zIndex.tooltip,
60
60
  pointerEvents: 'none'
61
61
  }, !ownerState.disableInteractive && {
62
62
  pointerEvents: 'auto'
@@ -117,9 +117,9 @@ const TooltipTooltip = styled('div', {
117
117
  theme,
118
118
  ownerState
119
119
  }) => _extends({
120
- backgroundColor: alpha(theme.palette.grey[700], 0.92),
121
- borderRadius: theme.shape.borderRadius,
122
- color: theme.palette.common.white,
120
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.92)` : alpha(theme.palette.grey[700], 0.92),
121
+ borderRadius: (theme.vars || theme).shape.borderRadius,
122
+ color: (theme.vars || theme).palette.common.white,
123
123
  fontFamily: theme.typography.fontFamily,
124
124
  padding: '4px 8px',
125
125
  fontSize: theme.typography.pxToRem(11),
@@ -185,7 +185,7 @@ const TooltipArrow = styled('span', {
185
185
  /* = width / sqrt(2) = (length of the hypotenuse) */
186
186
  ,
187
187
  boxSizing: 'border-box',
188
- color: alpha(theme.palette.grey[700], 0.9),
188
+ color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : alpha(theme.palette.grey[700], 0.9),
189
189
  '&::before': {
190
190
  content: '""',
191
191
  margin: 'auto',
@@ -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';
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.3
1
+ /** @license MUI v5.8.0
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.
@@ -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
  }
@@ -619,7 +619,7 @@ export const csCZ = {
619
619
  'aria-label': 'Navigace stránkováním',
620
620
  getItemAriaLabel: (type, page, selected) => {
621
621
  if (type === 'page') {
622
- return `${selected ? '' : 'Jít na '}${page} stránku`;
622
+ return `${selected ? '' : 'Jít na '}${page}. stránku`;
623
623
  }
624
624
 
625
625
  if (type === 'first') {
@@ -1,5 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- export default function createMixins(breakpoints, spacing, mixins) {
2
+ export default function createMixins(breakpoints, mixins) {
3
3
  return _extends({
4
4
  toolbar: {
5
5
  minHeight: 56,
@@ -278,7 +278,8 @@ const theme2 = createTheme({ palette: {
278
278
 
279
279
  const paletteOutput = deepmerge(_extends({
280
280
  // A collection of common colors.
281
- common,
281
+ common: _extends({}, common),
282
+ // prevent mutable object.
282
283
  // The palette mode, can be light or dark.
283
284
  mode,
284
285
  // The colors used to represent primary interface elements for a user.
@@ -23,7 +23,7 @@ function createTheme(options = {}, ...args) {
23
23
  const palette = createPalette(paletteInput);
24
24
  const systemTheme = systemCreateTheme(options);
25
25
  let muiTheme = deepmerge(systemTheme, {
26
- mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
26
+ mixins: createMixins(systemTheme.breakpoints, mixinsInput),
27
27
  palette,
28
28
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
29
29
  shadows: shadows.slice(),
@@ -1,34 +1,23 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["colorSchemes", "opacity"],
3
+ const _excluded = ["colorSchemes"],
4
4
  _excluded2 = ["palette"];
5
5
  import { deepmerge } from '@mui/utils';
6
6
  import { colorChannel } from '@mui/system';
7
7
  import createThemeWithoutVars from './createTheme';
8
- import createPalette from './createPalette';
9
- export const defaultOpacity = {
10
- active: 0.54,
11
- hover: 0.04,
12
- selected: 0.08,
13
- disabled: 0.26,
14
- focus: 0.12
15
- };
16
-
17
- function createTheme(options = {}, ...args) {
8
+ export default function extendTheme(options = {}, ...args) {
18
9
  const {
19
- colorSchemes: colorSchemesInput = {},
20
- opacity: opacityInput = {}
10
+ colorSchemes: colorSchemesInput = {}
21
11
  } = options,
22
- input = _objectWithoutPropertiesLoose(options, _excluded); // eslint-disable-next-line prefer-const
23
-
12
+ input = _objectWithoutPropertiesLoose(options, _excluded);
24
13
 
25
- let _createThemeWithoutVa = createThemeWithoutVars(_extends({}, input, colorSchemesInput.light && {
14
+ const _createThemeWithoutVa = createThemeWithoutVars(_extends({}, input, colorSchemesInput.light && {
26
15
  palette: colorSchemesInput.light?.palette
27
16
  })),
28
- {
17
+ {
29
18
  palette: lightPalette
30
19
  } = _createThemeWithoutVa,
31
- muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2);
20
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2);
32
21
 
33
22
  const {
34
23
  palette: darkPalette
@@ -37,17 +26,48 @@ function createTheme(options = {}, ...args) {
37
26
  mode: 'dark'
38
27
  }, colorSchemesInput.dark?.palette)
39
28
  });
40
- colorSchemesInput.light = {
41
- palette: lightPalette
42
- };
43
- colorSchemesInput.dark = {
44
- palette: darkPalette
45
- };
46
- const colorSchemes = {};
47
- Object.keys(colorSchemesInput).forEach(key => {
48
- const palette = createPalette(colorSchemesInput[key].palette);
29
+
30
+ let theme = _extends({}, muiTheme, {
31
+ colorSchemes: _extends({}, colorSchemesInput, {
32
+ light: _extends({}, colorSchemesInput.light, {
33
+ palette: lightPalette,
34
+ opacity: _extends({
35
+ placeholder: 0.42,
36
+ inputTouchBottomLine: 0.42
37
+ }, colorSchemesInput.light?.opacity)
38
+ }),
39
+ dark: _extends({}, colorSchemesInput.dark, {
40
+ palette: darkPalette,
41
+ opacity: _extends({
42
+ placeholder: 0.5,
43
+ inputTouchBottomLine: 0.7
44
+ }, colorSchemesInput.dark?.opacity)
45
+ })
46
+ })
47
+ });
48
+
49
+ Object.keys(theme.colorSchemes).forEach(key => {
50
+ const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
51
+
52
+ if (key === 'dark') {
53
+ palette.common.background = palette.common.background || '#000';
54
+ palette.common.onBackground = palette.common.onBackground || '#fff';
55
+ } else {
56
+ palette.common.background = palette.common.background || '#fff';
57
+ palette.common.onBackground = palette.common.onBackground || '#000';
58
+ }
59
+
60
+ palette.common.backgroundChannel = colorChannel(palette.common.background);
61
+ palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
62
+ palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
63
+ // TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
64
+
65
+ if (!palette.grey.dark) {
66
+ palette.grey.dark = palette.grey[700];
67
+ }
68
+
49
69
  Object.keys(palette).forEach(color => {
50
- const colors = palette[color];
70
+ const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
51
71
 
52
72
  if (colors.main) {
53
73
  palette[color].mainChannel = colorChannel(colors.main);
@@ -61,6 +81,11 @@ function createTheme(options = {}, ...args) {
61
81
  palette[color].darkChannel = colorChannel(colors.dark);
62
82
  }
63
83
 
84
+ if (colors.contrastText) {
85
+ palette[color].contrastTextChannel = colorChannel(colors.contrastText);
86
+ } // Text colors: text.primary, text.secondary
87
+
88
+
64
89
  if (colors.primary) {
65
90
  palette[color].primaryChannel = colorChannel(colors.primary);
66
91
  }
@@ -68,22 +93,8 @@ function createTheme(options = {}, ...args) {
68
93
  if (colors.secondary) {
69
94
  palette[color].secondaryChannel = colorChannel(colors.secondary);
70
95
  }
71
-
72
- if (colors.disabled) {
73
- palette[color].disabledChannel = colorChannel(colors.disabled);
74
- }
75
96
  });
76
- colorSchemes[key] = {
77
- palette
78
- };
79
97
  });
80
-
81
- const opacity = _extends({}, defaultOpacity, opacityInput);
82
-
83
- muiTheme.colorSchemes = colorSchemes;
84
- muiTheme.opacity = opacity;
85
- muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
86
- return muiTheme;
87
- }
88
-
89
- export default createTheme;
98
+ theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
99
+ return theme;
100
+ }
@@ -90,7 +90,7 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
90
90
  height: 1,
91
91
  content: '""',
92
92
  opacity: 1,
93
- backgroundColor: theme.palette.divider,
93
+ backgroundColor: (theme.vars || theme).palette.divider,
94
94
  transition: theme.transitions.create(['opacity', 'background-color'], transition)
95
95
  },
96
96
  '&:first-of-type': {
@@ -115,7 +115,7 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
115
115
  }
116
116
  },
117
117
  [`&.${_accordionClasses.default.disabled}`]: {
118
- backgroundColor: theme.palette.action.disabledBackground
118
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
119
119
  }
120
120
  };
121
121
  }, ({
@@ -124,12 +124,12 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
124
124
  }) => (0, _extends2.default)({}, !ownerState.square && {
125
125
  borderRadius: 0,
126
126
  '&:first-of-type': {
127
- borderTopLeftRadius: theme.shape.borderRadius,
128
- borderTopRightRadius: theme.shape.borderRadius
127
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
128
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius
129
129
  },
130
130
  '&:last-of-type': {
131
- borderBottomLeftRadius: theme.shape.borderRadius,
132
- borderBottomRightRadius: theme.shape.borderRadius,
131
+ borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
132
+ borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
133
133
  // Fix a rendering issue on Edge
134
134
  '@supports (-ms-ime-align: auto)': {
135
135
  borderBottomLeftRadius: 0,
@@ -70,10 +70,10 @@ const AccordionSummaryRoot = (0, _styled.default)(_ButtonBase.default, {
70
70
  padding: theme.spacing(0, 2),
71
71
  transition: theme.transitions.create(['min-height', 'background-color'], transition),
72
72
  [`&.${_accordionSummaryClasses.default.focusVisible}`]: {
73
- backgroundColor: theme.palette.action.focus
73
+ backgroundColor: (theme.vars || theme).palette.action.focus
74
74
  },
75
75
  [`&.${_accordionSummaryClasses.default.disabled}`]: {
76
- opacity: theme.palette.action.disabledOpacity
76
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
77
77
  },
78
78
  [`&:hover:not(.${_accordionSummaryClasses.default.disabled})`]: {
79
79
  cursor: 'pointer'
@@ -111,7 +111,7 @@ const AccordionSummaryExpandIconWrapper = (0, _styled.default)('div', {
111
111
  theme
112
112
  }) => ({
113
113
  display: 'flex',
114
- color: theme.palette.action.active,
114
+ color: (theme.vars || theme).palette.action.active,
115
115
  transform: 'rotate(0deg)',
116
116
  transition: theme.transitions.create('transform', {
117
117
  duration: theme.transitions.duration.shortest