@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
@@ -62,10 +62,10 @@ var PaginationItemEllipsis = styled('div', {
62
62
  minWidth: 32,
63
63
  padding: '0 6px',
64
64
  margin: '0 3px',
65
- color: theme.palette.text.primary,
65
+ color: (theme.vars || theme).palette.text.primary,
66
66
  height: 'auto'
67
67
  }, "&.".concat(paginationItemClasses.disabled), {
68
- opacity: theme.palette.action.disabledOpacity
68
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
69
69
  }), ownerState.size === 'small' && {
70
70
  minWidth: 26,
71
71
  borderRadius: 26 / 2,
@@ -95,34 +95,34 @@ var PaginationItemPage = styled(ButtonBase, {
95
95
  height: 32,
96
96
  padding: '0 6px',
97
97
  margin: '0 3px',
98
- color: theme.palette.text.primary
98
+ color: (theme.vars || theme).palette.text.primary
99
99
  }, _defineProperty(_extends3, "&.".concat(paginationItemClasses.focusVisible), {
100
- backgroundColor: theme.palette.action.focus
100
+ backgroundColor: (theme.vars || theme).palette.action.focus
101
101
  }), _defineProperty(_extends3, "&.".concat(paginationItemClasses.disabled), {
102
- opacity: theme.palette.action.disabledOpacity
102
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
103
103
  }), _defineProperty(_extends3, "transition", theme.transitions.create(['color', 'background-color'], {
104
104
  duration: theme.transitions.duration.short
105
105
  })), _defineProperty(_extends3, '&:hover', {
106
- backgroundColor: theme.palette.action.hover,
106
+ backgroundColor: (theme.vars || theme).palette.action.hover,
107
107
  // Reset on touch devices, it doesn't add specificity
108
108
  '@media (hover: none)': {
109
109
  backgroundColor: 'transparent'
110
110
  }
111
111
  }), _defineProperty(_extends3, "&.".concat(paginationItemClasses.selected), (_$concat = {
112
- backgroundColor: theme.palette.action.selected,
112
+ backgroundColor: (theme.vars || theme).palette.action.selected,
113
113
  '&:hover': {
114
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
114
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selected, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
115
115
  // Reset on touch devices, it doesn't add specificity
116
116
  '@media (hover: none)': {
117
- backgroundColor: theme.palette.action.selected
117
+ backgroundColor: (theme.vars || theme).palette.action.selected
118
118
  }
119
119
  }
120
120
  }, _defineProperty(_$concat, "&.".concat(paginationItemClasses.focusVisible), {
121
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
121
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selected, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
122
122
  }), _defineProperty(_$concat, "&.".concat(paginationItemClasses.disabled), {
123
123
  opacity: 1,
124
- color: theme.palette.action.disabled,
125
- backgroundColor: theme.palette.action.selected
124
+ color: (theme.vars || theme).palette.action.disabled,
125
+ backgroundColor: (theme.vars || theme).palette.action.selected
126
126
  }), _$concat)), _extends3), ownerState.size === 'small' && {
127
127
  minWidth: 26,
128
128
  height: 26,
@@ -136,43 +136,43 @@ var PaginationItemPage = styled(ButtonBase, {
136
136
  padding: '0 10px',
137
137
  fontSize: theme.typography.pxToRem(15)
138
138
  }, ownerState.shape === 'rounded' && {
139
- borderRadius: theme.shape.borderRadius
139
+ borderRadius: (theme.vars || theme).shape.borderRadius
140
140
  });
141
141
  }, function (_ref3) {
142
142
  var theme = _ref3.theme,
143
143
  ownerState = _ref3.ownerState;
144
144
  return _extends({}, ownerState.variant === 'text' && _defineProperty({}, "&.".concat(paginationItemClasses.selected), _extends({}, ownerState.color !== 'standard' && _defineProperty({
145
- color: theme.palette[ownerState.color].contrastText,
146
- backgroundColor: theme.palette[ownerState.color].main,
145
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
146
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
147
147
  '&:hover': {
148
- backgroundColor: theme.palette[ownerState.color].dark,
148
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
149
149
  // Reset on touch devices, it doesn't add specificity
150
150
  '@media (hover: none)': {
151
- backgroundColor: theme.palette[ownerState.color].main
151
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
152
152
  }
153
153
  }
154
154
  }, "&.".concat(paginationItemClasses.focusVisible), {
155
- backgroundColor: theme.palette[ownerState.color].dark
155
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
156
156
  }), _defineProperty({}, "&.".concat(paginationItemClasses.disabled), {
157
- color: theme.palette.action.disabled
157
+ color: (theme.vars || theme).palette.action.disabled
158
158
  }))), ownerState.variant === 'outlined' && _defineProperty({
159
- border: "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
159
+ border: 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)')
160
160
  }, "&.".concat(paginationItemClasses.selected), _extends({}, ownerState.color !== 'standard' && _defineProperty({
161
- color: theme.palette[ownerState.color].main,
162
- border: "1px solid ".concat(alpha(theme.palette[ownerState.color].main, 0.5)),
163
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
161
+ color: (theme.vars || theme).palette[ownerState.color].main,
162
+ border: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.5)") : alpha(theme.palette[ownerState.color].main, 0.5)),
163
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.activatedOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
164
164
  '&:hover': {
165
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
165
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / calc(").concat(theme.vars.palette.action.activatedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
166
166
  // Reset on touch devices, it doesn't add specificity
167
167
  '@media (hover: none)': {
168
168
  backgroundColor: 'transparent'
169
169
  }
170
170
  }
171
171
  }, "&.".concat(paginationItemClasses.focusVisible), {
172
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
172
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / calc(").concat(theme.vars.palette.action.activatedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
173
173
  }), _defineProperty({}, "&.".concat(paginationItemClasses.disabled), {
174
- borderColor: theme.palette.action.disabledBackground,
175
- color: theme.palette.action.disabled
174
+ borderColor: (theme.vars || theme).palette.action.disabledBackground,
175
+ color: (theme.vars || theme).palette.action.disabled
176
176
  }))));
177
177
  });
178
178
  var PaginationItemPageIcon = styled('div', {
@@ -88,7 +88,7 @@ var RatingRoot = styled('span', {
88
88
  textAlign: 'left',
89
89
  WebkitTapHighlightColor: 'transparent'
90
90
  }, _defineProperty(_extends2, "&.".concat(ratingClasses.disabled), {
91
- opacity: theme.palette.action.disabledOpacity,
91
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
92
92
  pointerEvents: 'none'
93
93
  }), _defineProperty(_extends2, "&.".concat(ratingClasses.focusVisible, " .").concat(ratingClasses.iconActive), {
94
94
  outline: '1px solid #999'
@@ -140,7 +140,7 @@ var RatingIcon = styled('span', {
140
140
  }, ownerState.iconActive && {
141
141
  transform: 'scale(1.2)'
142
142
  }, ownerState.iconEmpty && {
143
- color: theme.palette.action.disabled
143
+ color: (theme.vars || theme).palette.action.disabled
144
144
  });
145
145
  });
146
146
  var RatingDecimal = styled('span', {
@@ -47,7 +47,7 @@ var SnackbarRoot = styled('div', {
47
47
  });
48
48
 
49
49
  return _extends({
50
- zIndex: theme.zIndex.snackbar,
50
+ zIndex: (theme.vars || theme).zIndex.snackbar,
51
51
  position: 'fixed',
52
52
  display: 'flex',
53
53
  left: 8,
@@ -69,7 +69,7 @@ var SpeedDialRoot = styled('div', {
69
69
  var theme = _ref.theme,
70
70
  ownerState = _ref.ownerState;
71
71
  return _extends({
72
- zIndex: theme.zIndex.speedDial,
72
+ zIndex: (theme.vars || theme).zIndex.speedDial,
73
73
  display: 'flex',
74
74
  alignItems: 'center',
75
75
  pointerEvents: 'none'
@@ -44,13 +44,13 @@ var StepIconRoot = styled(SvgIcon, {
44
44
  transition: theme.transitions.create('color', {
45
45
  duration: theme.transitions.duration.shortest
46
46
  }),
47
- color: theme.palette.text.disabled
47
+ color: (theme.vars || theme).palette.text.disabled
48
48
  }, _defineProperty(_ref2, "&.".concat(stepIconClasses.completed), {
49
- color: theme.palette.primary.main
49
+ color: (theme.vars || theme).palette.primary.main
50
50
  }), _defineProperty(_ref2, "&.".concat(stepIconClasses.active), {
51
- color: theme.palette.primary.main
51
+ color: (theme.vars || theme).palette.primary.main
52
52
  }), _defineProperty(_ref2, "&.".concat(stepIconClasses.error), {
53
- color: theme.palette.error.main
53
+ color: (theme.vars || theme).palette.error.main
54
54
  }), _ref2;
55
55
  });
56
56
  var StepIconText = styled('text', {
@@ -62,7 +62,7 @@ var StepIconText = styled('text', {
62
62
  })(function (_ref3) {
63
63
  var theme = _ref3.theme;
64
64
  return {
65
- fill: theme.palette.primary.contrastText,
65
+ fill: (theme.vars || theme).palette.primary.contrastText,
66
66
  fontSize: theme.typography.caption.fontSize,
67
67
  fontFamily: theme.typography.fontFamily
68
68
  };
@@ -70,16 +70,16 @@ var StepLabelLabel = styled('span', {
70
70
  duration: theme.transitions.duration.shortest
71
71
  })
72
72
  }, _defineProperty(_extends3, "&.".concat(stepLabelClasses.active), {
73
- color: theme.palette.text.primary,
73
+ color: (theme.vars || theme).palette.text.primary,
74
74
  fontWeight: 500
75
75
  }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.completed), {
76
- color: theme.palette.text.primary,
76
+ color: (theme.vars || theme).palette.text.primary,
77
77
  fontWeight: 500
78
78
  }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.alternativeLabel), {
79
79
  textAlign: 'center',
80
80
  marginTop: 16
81
81
  }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.error), {
82
- color: theme.palette.error.main
82
+ color: (theme.vars || theme).palette.error.main
83
83
  }), _extends3));
84
84
  });
85
85
  var StepLabelIconContainer = styled('span', {
@@ -108,7 +108,7 @@ var StepLabelLabelContainer = styled('span', {
108
108
  var theme = _ref4.theme;
109
109
  return {
110
110
  width: '100%',
111
- color: theme.palette.text.secondary
111
+ color: (theme.vars || theme).palette.text.secondary
112
112
  };
113
113
  });
114
114
  var StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
@@ -1,12 +1,20 @@
1
1
  import * as React from 'react';
2
+
2
3
  /**
3
- * @ignore - internal component.
4
+ * Provides information about the current step in Stepper.
4
5
  */
5
-
6
6
  var StepperContext = /*#__PURE__*/React.createContext({});
7
7
 
8
8
  if (process.env.NODE_ENV !== 'production') {
9
9
  StepperContext.displayName = 'StepperContext';
10
10
  }
11
+ /**
12
+ * Returns the current StepperContext or an empty object if no StepperContext
13
+ * has been defined in the component tree.
14
+ */
15
+
11
16
 
17
+ export function useStepperContext() {
18
+ return React.useContext(StepperContext);
19
+ }
12
20
  export default StepperContext;
@@ -1,3 +1,5 @@
1
1
  export { default } from './Stepper';
2
2
  export { default as stepperClasses } from './stepperClasses';
3
- export * from './stepperClasses';
3
+ export * from './stepperClasses';
4
+ export { default as StepperContext } from './StepperContext';
5
+ export * from './StepperContext';
@@ -29,7 +29,7 @@ var SvgIconRoot = styled('svg', {
29
29
  return [styles.root, ownerState.color !== 'inherit' && styles["color".concat(capitalize(ownerState.color))], styles["fontSize".concat(capitalize(ownerState.fontSize))]];
30
30
  }
31
31
  })(function (_ref) {
32
- var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$palette$ownerS, _theme$palette, _theme$palette$ownerS2, _theme$palette2, _theme$palette2$actio, _theme$palette3, _theme$palette3$actio;
32
+ var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
33
33
 
34
34
  var theme = _ref.theme,
35
35
  ownerState = _ref.ownerState;
@@ -50,9 +50,9 @@ var SvgIconRoot = styled('svg', {
50
50
  large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875'
51
51
  }[ownerState.fontSize],
52
52
  // TODO v5 deprecate, v6 remove for sx
53
- color: (_theme$palette$ownerS = (_theme$palette = theme.palette) == null ? void 0 : (_theme$palette$ownerS2 = _theme$palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
54
- action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
55
- disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
53
+ color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
54
+ action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
55
+ disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
56
56
  inherit: undefined
57
57
  }[ownerState.color]
58
58
  };
package/legacy/Tab/Tab.js CHANGED
@@ -73,19 +73,19 @@ var TabRoot = styled(ButtonBase, {
73
73
  }, _defineProperty(_ref3, "&.".concat(tabClasses.selected), {
74
74
  opacity: 1
75
75
  }), _defineProperty(_ref3, "&.".concat(tabClasses.disabled), {
76
- opacity: theme.palette.action.disabledOpacity
76
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
77
77
  }), _ref3), ownerState.textColor === 'primary' && (_ref4 = {
78
- color: theme.palette.text.secondary
78
+ color: (theme.vars || theme).palette.text.secondary
79
79
  }, _defineProperty(_ref4, "&.".concat(tabClasses.selected), {
80
- color: theme.palette.primary.main
80
+ color: (theme.vars || theme).palette.primary.main
81
81
  }), _defineProperty(_ref4, "&.".concat(tabClasses.disabled), {
82
- color: theme.palette.text.disabled
82
+ color: (theme.vars || theme).palette.text.disabled
83
83
  }), _ref4), ownerState.textColor === 'secondary' && (_ref5 = {
84
- color: theme.palette.text.secondary
84
+ color: (theme.vars || theme).palette.text.secondary
85
85
  }, _defineProperty(_ref5, "&.".concat(tabClasses.selected), {
86
- color: theme.palette.secondary.main
86
+ color: (theme.vars || theme).palette.secondary.main
87
87
  }), _defineProperty(_ref5, "&.".concat(tabClasses.disabled), {
88
- color: theme.palette.text.disabled
88
+ color: (theme.vars || theme).palette.text.disabled
89
89
  }), _ref5), ownerState.fullWidth && {
90
90
  flexShrink: 1,
91
91
  flexGrow: 1,
@@ -36,7 +36,7 @@ var TableRoot = styled('table', {
36
36
  borderSpacing: 0,
37
37
  '& caption': _extends({}, theme.typography.body2, {
38
38
  padding: theme.spacing(2),
39
- color: theme.palette.text.secondary,
39
+ color: (theme.vars || theme).palette.text.secondary,
40
40
  textAlign: 'left',
41
41
  captionSide: 'bottom'
42
42
  })
@@ -32,7 +32,7 @@ var TablePaginationRoot = styled(TableCell, {
32
32
  var theme = _ref.theme;
33
33
  return {
34
34
  overflow: 'auto',
35
- color: theme.palette.text.primary,
35
+ color: (theme.vars || theme).palette.text.primary,
36
36
  fontSize: theme.typography.pxToRem(14),
37
37
  // Increase the specificity to override TableCell.
38
38
  '&:last-child': {
@@ -42,11 +42,11 @@ var TableRowRoot = styled('tr', {
42
42
  // We disable the focus ring for mouse, touch and keyboard users.
43
43
  outline: 0
44
44
  }, _defineProperty(_ref2, "&.".concat(tableRowClasses.hover, ":hover"), {
45
- backgroundColor: theme.palette.action.hover
45
+ backgroundColor: (theme.vars || theme).palette.action.hover
46
46
  }), _defineProperty(_ref2, "&.".concat(tableRowClasses.selected), {
47
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
47
+ 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),
48
48
  '&:hover': {
49
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
49
+ 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)
50
50
  }
51
51
  }), _ref2;
52
52
  });
@@ -41,18 +41,18 @@ var TableSortLabelRoot = styled(ButtonBase, {
41
41
  flexDirection: 'inherit',
42
42
  alignItems: 'center',
43
43
  '&:focus': {
44
- color: theme.palette.text.secondary
44
+ color: (theme.vars || theme).palette.text.secondary
45
45
  },
46
46
  '&:hover': _defineProperty({
47
- color: theme.palette.text.secondary
47
+ color: (theme.vars || theme).palette.text.secondary
48
48
  }, "& .".concat(tableSortLabelClasses.icon), {
49
49
  opacity: 0.5
50
50
  })
51
51
  }, "&.".concat(tableSortLabelClasses.active), _defineProperty({
52
- color: theme.palette.text.primary
52
+ color: (theme.vars || theme).palette.text.primary
53
53
  }, "& .".concat(tableSortLabelClasses.icon), {
54
54
  opacity: 1,
55
- color: theme.palette.text.secondary
55
+ color: (theme.vars || theme).palette.text.secondary
56
56
  }));
57
57
  });
58
58
  var TableSortLabelIcon = styled('span', {
@@ -182,9 +182,9 @@ var TabsIndicator = styled('span', {
182
182
  width: '100%',
183
183
  transition: theme.transitions.create()
184
184
  }, ownerState.indicatorColor === 'primary' && {
185
- backgroundColor: theme.palette.primary.main
185
+ backgroundColor: (theme.vars || theme).palette.primary.main
186
186
  }, ownerState.indicatorColor === 'secondary' && {
187
- backgroundColor: theme.palette.secondary.main
187
+ backgroundColor: (theme.vars || theme).palette.secondary.main
188
188
  }, ownerState.vertical && {
189
189
  height: '100%',
190
190
  width: 2,
@@ -40,31 +40,38 @@ var ToggleButtonRoot = styled(ButtonBase, {
40
40
  var theme = _ref.theme,
41
41
  ownerState = _ref.ownerState;
42
42
  var selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
43
+ var selectedColorChannel;
44
+
45
+ if (theme.vars) {
46
+ selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
47
+ selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
48
+ }
49
+
43
50
  return _extends({}, theme.typography.button, {
44
- borderRadius: theme.shape.borderRadius,
51
+ borderRadius: (theme.vars || theme).shape.borderRadius,
45
52
  padding: 11,
46
- border: "1px solid ".concat(theme.palette.divider),
47
- color: theme.palette.action.active
53
+ border: "1px solid ".concat((theme.vars || theme).palette.divider),
54
+ color: (theme.vars || theme).palette.action.active
48
55
  }, ownerState.fullWidth && {
49
56
  width: '100%'
50
57
  }, (_extends2 = {}, _defineProperty(_extends2, "&.".concat(toggleButtonClasses.disabled), {
51
- color: theme.palette.action.disabled,
52
- border: "1px solid ".concat(theme.palette.action.disabledBackground)
58
+ color: (theme.vars || theme).palette.action.disabled,
59
+ border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
53
60
  }), _defineProperty(_extends2, '&:hover', {
54
61
  textDecoration: 'none',
55
62
  // Reset on mouse devices
56
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
63
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
57
64
  '@media (hover: none)': {
58
65
  backgroundColor: 'transparent'
59
66
  }
60
67
  }), _defineProperty(_extends2, "&.".concat(toggleButtonClasses.selected), {
61
68
  color: selectedColor,
62
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity),
69
+ backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity),
63
70
  '&:hover': {
64
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
71
+ backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
65
72
  // Reset on touch devices, it doesn't add specificity
66
73
  '@media (hover: none)': {
67
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity)
74
+ backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity)
68
75
  }
69
76
  }
70
77
  }), _extends2), ownerState.size === 'small' && {
@@ -37,7 +37,7 @@ var ToggleButtonGroupRoot = styled('div', {
37
37
  theme = _ref3.theme;
38
38
  return _extends({
39
39
  display: 'inline-flex',
40
- borderRadius: theme.shape.borderRadius
40
+ borderRadius: (theme.vars || theme).shape.borderRadius
41
41
  }, ownerState.orientation === 'vertical' && {
42
42
  flexDirection: 'column'
43
43
  }, ownerState.fullWidth && {
@@ -55,7 +55,7 @@ var TooltipPopper = styled(Popper, {
55
55
  ownerState = _ref.ownerState,
56
56
  open = _ref.open;
57
57
  return _extends({
58
- zIndex: theme.zIndex.tooltip,
58
+ zIndex: (theme.vars || theme).zIndex.tooltip,
59
59
  pointerEvents: 'none'
60
60
  }, !ownerState.disableInteractive && {
61
61
  pointerEvents: 'auto'
@@ -112,9 +112,9 @@ var TooltipTooltip = styled('div', {
112
112
  var theme = _ref3.theme,
113
113
  ownerState = _ref3.ownerState;
114
114
  return _extends({
115
- backgroundColor: alpha(theme.palette.grey[700], 0.92),
116
- borderRadius: theme.shape.borderRadius,
117
- color: theme.palette.common.white,
115
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.grey.darkChannel, " / 0.92)") : alpha(theme.palette.grey[700], 0.92),
116
+ borderRadius: (theme.vars || theme).shape.borderRadius,
117
+ color: (theme.vars || theme).palette.common.white,
118
118
  fontFamily: theme.typography.fontFamily,
119
119
  padding: '4px 8px',
120
120
  fontSize: theme.typography.pxToRem(11),
@@ -178,7 +178,7 @@ var TooltipArrow = styled('span', {
178
178
  /* = width / sqrt(2) = (length of the hypotenuse) */
179
179
  ,
180
180
  boxSizing: 'border-box',
181
- color: alpha(theme.palette.grey[700], 0.9),
181
+ color: theme.vars ? "rgba(".concat(theme.vars.palette.grey.darkChannel, " / 0.9)") : alpha(theme.palette.grey[700], 0.9),
182
182
  '&::before': {
183
183
  content: '""',
184
184
  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/legacy/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.
@@ -85,26 +85,26 @@ export var arEG = {
85
85
  components: {
86
86
  MuiBreadcrumbs: {
87
87
  defaultProps: {
88
- expandText: 'ظهر العنوان'
88
+ expandText: 'إظهار المسار'
89
89
  }
90
90
  },
91
91
  MuiTablePagination: {
92
92
  defaultProps: {
93
93
  getItemAriaLabel: function getItemAriaLabel(type) {
94
94
  if (type === 'first') {
95
- return 'امش للصفحة الأولى';
95
+ return 'انتقل إلى الصفحة الأولى';
96
96
  }
97
97
 
98
98
  if (type === 'last') {
99
- return 'امش للصفحة الأخيرة';
99
+ return 'انتقل إلى الصفحة الأخيرة';
100
100
  }
101
101
 
102
102
  if (type === 'next') {
103
- return 'امش للصفحة التالية';
103
+ return 'انتقل إلى الصفحة التالية';
104
104
  } // if (type === 'previous') {
105
105
 
106
106
 
107
- return 'امش للصفحة السابقة';
107
+ return 'انتقل إلى الصفحة السابقة';
108
108
  },
109
109
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
110
110
  labelDisplayedRows: function labelDisplayedRows(_ref2) {
@@ -127,7 +127,7 @@ export var arEG = {
127
127
  defaultProps: {
128
128
  clearText: 'مسح',
129
129
  closeText: 'إغلاق',
130
- loadingText: 'يتم التحميل…',
130
+ loadingText: 'جار التحميل...',
131
131
  noOptionsText: 'لا يوجد خيارات',
132
132
  openText: 'فتح'
133
133
  }
@@ -142,23 +142,23 @@ export var arEG = {
142
142
  'aria-label': 'التنقل عبر الصفحات',
143
143
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
144
144
  if (type === 'page') {
145
- return "".concat(selected ? '' : 'امش إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
145
+ return "".concat(selected ? '' : 'انتقل إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
146
146
  }
147
147
 
148
148
  if (type === 'first') {
149
- return 'امش للصفحة الأولى';
149
+ return 'انتقل إلى الصفحة الأولى';
150
150
  }
151
151
 
152
152
  if (type === 'last') {
153
- return 'امش للصفحة الأخيرة';
153
+ return 'انتقل إلى الصفحة الأخيرة';
154
154
  }
155
155
 
156
156
  if (type === 'next') {
157
- return 'امش للصفحة التالية';
157
+ return 'انتقل إلى الصفحة التالية';
158
158
  } // if (type === 'previous') {
159
159
 
160
160
 
161
- return 'امش للصفحة السابقة';
161
+ return 'انتقل إلى الصفحة السابقة';
162
162
  }
163
163
  }
164
164
  }
@@ -168,26 +168,26 @@ export var arSD = {
168
168
  components: {
169
169
  MuiBreadcrumbs: {
170
170
  defaultProps: {
171
- expandText: 'إظهر العنوان'
171
+ expandText: 'إظهار المسار'
172
172
  }
173
173
  },
174
174
  MuiTablePagination: {
175
175
  defaultProps: {
176
176
  getItemAriaLabel: function getItemAriaLabel(type) {
177
177
  if (type === 'first') {
178
- return 'إذهب الى الصفحة الأولى';
178
+ return 'انتقل إلى الصفحة الأولى';
179
179
  }
180
180
 
181
181
  if (type === 'last') {
182
- return 'إذهب الي الصفحة الأخيرة';
182
+ return 'انتقل إلى الصفحة الأخيرة';
183
183
  }
184
184
 
185
185
  if (type === 'next') {
186
- return 'إذهب الى الصفحة التالية';
186
+ return 'انتقل إلى الصفحة التالية';
187
187
  } // if (type === 'previous') {
188
188
 
189
189
 
190
- return 'إذهب الى الصفحة السابقة';
190
+ return 'انتقل إلى الصفحة السابقة';
191
191
  },
192
192
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
193
193
  labelDisplayedRows: function labelDisplayedRows(_ref3) {
@@ -210,7 +210,7 @@ export var arSD = {
210
210
  defaultProps: {
211
211
  clearText: 'مسح',
212
212
  closeText: 'إغلاق',
213
- loadingText: 'يتم التحميل…',
213
+ loadingText: 'جار التحميل...',
214
214
  noOptionsText: 'لا يوجد خيارات',
215
215
  openText: 'فتح'
216
216
  }
@@ -225,23 +225,23 @@ export var arSD = {
225
225
  'aria-label': 'التنقل عبر الصفحات',
226
226
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
227
227
  if (type === 'page') {
228
- return "".concat(selected ? '' : 'إذهب إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
228
+ return "".concat(selected ? '' : 'انتقل إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
229
229
  }
230
230
 
231
231
  if (type === 'first') {
232
- return 'إذهب الى الصفحة الأولى';
232
+ return 'انتقل إلى الصفحة الأولى';
233
233
  }
234
234
 
235
235
  if (type === 'last') {
236
- return 'إذهب الي الصفحة الأخيرة';
236
+ return 'انتقل الي الصفحة الأخيرة';
237
237
  }
238
238
 
239
239
  if (type === 'next') {
240
- return 'إذهب الى الصفحة التالية';
240
+ return 'انتقل إلى الصفحة التالية';
241
241
  } // if (type === 'previous') {
242
242
 
243
243
 
244
- return 'إذهب الى الصفحة السابقة';
244
+ return 'انتقل إلى الصفحة السابقة';
245
245
  }
246
246
  }
247
247
  }
@@ -636,7 +636,7 @@ export var csCZ = {
636
636
  'aria-label': 'Navigace stránkováním',
637
637
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
638
638
  if (type === 'page') {
639
- return "".concat(selected ? '' : 'Jít na ').concat(page, " str\xE1nku");
639
+ return "".concat(selected ? '' : 'Jít na ').concat(page, ". str\xE1nku");
640
640
  }
641
641
 
642
642
  if (type === 'first') {