@mui/material 5.6.4 → 5.7.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 (332) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/Autocomplete.js +15 -14
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/backdropClasses.d.ts +10 -10
  13. package/Badge/badgeClasses.d.ts +24 -24
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +76 -76
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroup.js +10 -10
  22. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  23. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  24. package/CHANGELOG.md +101 -0
  25. package/Card/cardClasses.d.ts +8 -8
  26. package/CardActionArea/CardActionArea.js +2 -2
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/chipClasses.d.ts +80 -80
  34. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  35. package/ClickAwayListener/index.d.ts +2 -2
  36. package/Collapse/collapseClasses.d.ts +18 -18
  37. package/Container/containerClasses.d.ts +22 -22
  38. package/CssBaseline/CssBaseline.js +4 -4
  39. package/Dialog/DialogContext.d.ts +6 -6
  40. package/Dialog/dialogClasses.d.ts +36 -36
  41. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  42. package/DialogContent/DialogContent.js +2 -2
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/Divider.js +4 -4
  47. package/Divider/dividerClasses.d.ts +34 -34
  48. package/Drawer/Drawer.js +6 -6
  49. package/Drawer/drawerClasses.d.ts +30 -30
  50. package/Fab/Fab.js +69 -65
  51. package/Fab/fabClasses.d.ts +26 -26
  52. package/FilledInput/filledInputClasses.d.ts +40 -40
  53. package/FormControl/formControlClasses.d.ts +14 -14
  54. package/FormControlLabel/FormControlLabel.js +1 -1
  55. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  56. package/FormGroup/formGroupClasses.d.ts +12 -12
  57. package/FormHelperText/FormHelperText.js +3 -3
  58. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  59. package/FormLabel/FormLabel.js +5 -5
  60. package/FormLabel/formLabelClasses.d.ts +22 -22
  61. package/Grid/gridClasses.d.ts +48 -48
  62. package/Icon/Icon.js +8 -8
  63. package/Icon/iconClasses.d.ts +24 -24
  64. package/IconButton/IconButton.js +5 -5
  65. package/IconButton/iconButtonClasses.d.ts +26 -26
  66. package/ImageList/imageListClasses.d.ts +16 -16
  67. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  68. package/ImageListItemBar/ImageListItemBar.js +1 -1
  69. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  70. package/Input/Input.js +9 -4
  71. package/Input/inputClasses.d.ts +34 -34
  72. package/InputAdornment/InputAdornment.js +1 -1
  73. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  74. package/InputBase/InputBase.js +16 -8
  75. package/InputBase/inputBaseClasses.d.ts +44 -44
  76. package/InputLabel/inputLabelClasses.d.ts +32 -32
  77. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  78. package/Link/Link.js +3 -8
  79. package/Link/linkClasses.d.ts +18 -18
  80. package/List/listClasses.d.ts +14 -14
  81. package/ListItem/ListItem.js +8 -8
  82. package/ListItem/listItemClasses.d.ts +30 -30
  83. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  84. package/ListItemButton/ListItemButton.js +8 -8
  85. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  86. package/ListItemIcon/ListItemIcon.js +1 -1
  87. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  88. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  89. package/ListItemText/listItemTextClasses.d.ts +18 -18
  90. package/ListSubheader/ListSubheader.js +3 -3
  91. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  92. package/Menu/menuClasses.d.ts +12 -12
  93. package/MenuItem/MenuItem.js +8 -8
  94. package/MenuItem/menuItemClasses.d.ts +20 -20
  95. package/MobileStepper/MobileStepper.js +5 -5
  96. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  97. package/Modal/Modal.js +1 -1
  98. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  99. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  100. package/Pagination/paginationClasses.d.ts +14 -14
  101. package/PaginationItem/PaginationItem.js +27 -27
  102. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  103. package/Paper/paperClasses.d.ts +39 -39
  104. package/Popover/popoverClasses.d.ts +10 -10
  105. package/Popper/Popper.d.ts +29 -29
  106. package/Radio/radioClasses.d.ts +16 -16
  107. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  108. package/RadioGroup/useRadioGroup.d.ts +4 -4
  109. package/Rating/Rating.js +2 -2
  110. package/Rating/ratingClasses.d.ts +40 -40
  111. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  112. package/Select/selectClasses.d.ts +30 -30
  113. package/Skeleton/skeletonClasses.d.ts +24 -24
  114. package/Snackbar/Snackbar.js +1 -1
  115. package/Snackbar/snackbarClasses.d.ts +20 -20
  116. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  117. package/SpeedDial/SpeedDial.js +1 -1
  118. package/SpeedDial/speedDialClasses.d.ts +22 -22
  119. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  120. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  121. package/Step/StepContext.d.ts +20 -20
  122. package/Step/stepClasses.d.ts +16 -16
  123. package/StepButton/stepButtonClasses.d.ts +14 -14
  124. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  125. package/StepContent/stepContentClasses.d.ts +12 -12
  126. package/StepIcon/StepIcon.js +5 -5
  127. package/StepIcon/stepIconClasses.d.ts +16 -16
  128. package/StepLabel/StepLabel.js +4 -4
  129. package/StepLabel/stepLabelClasses.d.ts +28 -28
  130. package/Stepper/StepperContext.d.ts +18 -0
  131. package/Stepper/StepperContext.js +10 -2
  132. package/Stepper/index.d.ts +3 -0
  133. package/Stepper/index.js +3 -1
  134. package/Stepper/stepperClasses.d.ts +14 -14
  135. package/SvgIcon/SvgIcon.js +4 -4
  136. package/SvgIcon/svgIconClasses.d.ts +24 -24
  137. package/Switch/switchClasses.d.ts +32 -32
  138. package/Tab/Tab.js +7 -7
  139. package/Tab/tabClasses.d.ts +26 -26
  140. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  141. package/Table/Table.js +1 -1
  142. package/Table/tableClasses.d.ts +10 -10
  143. package/TableBody/tableBodyClasses.d.ts +8 -8
  144. package/TableCell/tableCellClasses.d.ts +32 -32
  145. package/TableContainer/tableContainerClasses.d.ts +8 -8
  146. package/TableFooter/tableFooterClasses.d.ts +8 -8
  147. package/TableHead/tableHeadClasses.d.ts +8 -8
  148. package/TablePagination/TablePagination.js +1 -1
  149. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  150. package/TableRow/TableRow.js +3 -3
  151. package/TableRow/tableRowClasses.d.ts +16 -16
  152. package/TableSortLabel/TableSortLabel.js +4 -4
  153. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  154. package/Tabs/Tabs.js +2 -2
  155. package/Tabs/tabsClasses.d.ts +32 -32
  156. package/TextField/textFieldClasses.d.ts +8 -8
  157. package/ToggleButton/ToggleButton.js +17 -10
  158. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  159. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  160. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  161. package/Toolbar/toolbarClasses.d.ts +14 -14
  162. package/Tooltip/Tooltip.js +5 -5
  163. package/Tooltip/tooltipClasses.d.ts +30 -30
  164. package/Typography/typographyClasses.d.ts +50 -50
  165. package/className/index.d.ts +1 -8
  166. package/className/index.js +1 -8
  167. package/darkScrollbar/index.d.ts +28 -28
  168. package/index.js +1 -1
  169. package/internal/switchBaseClasses.d.ts +12 -12
  170. package/legacy/Autocomplete/Autocomplete.js +15 -14
  171. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  172. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  173. package/legacy/CardActionArea/CardActionArea.js +2 -2
  174. package/legacy/CssBaseline/CssBaseline.js +4 -4
  175. package/legacy/DialogContent/DialogContent.js +2 -2
  176. package/legacy/Divider/Divider.js +4 -4
  177. package/legacy/Drawer/Drawer.js +6 -6
  178. package/legacy/Fab/Fab.js +17 -17
  179. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  180. package/legacy/FormHelperText/FormHelperText.js +3 -3
  181. package/legacy/FormLabel/FormLabel.js +5 -5
  182. package/legacy/Icon/Icon.js +8 -8
  183. package/legacy/IconButton/IconButton.js +5 -5
  184. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  185. package/legacy/Input/Input.js +8 -3
  186. package/legacy/InputAdornment/InputAdornment.js +1 -1
  187. package/legacy/InputBase/InputBase.js +16 -8
  188. package/legacy/Link/Link.js +3 -9
  189. package/legacy/ListItem/ListItem.js +8 -8
  190. package/legacy/ListItemButton/ListItemButton.js +8 -8
  191. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  192. package/legacy/ListSubheader/ListSubheader.js +3 -3
  193. package/legacy/MenuItem/MenuItem.js +8 -8
  194. package/legacy/MobileStepper/MobileStepper.js +5 -5
  195. package/legacy/Modal/Modal.js +1 -1
  196. package/legacy/PaginationItem/PaginationItem.js +27 -27
  197. package/legacy/Rating/Rating.js +2 -2
  198. package/legacy/Snackbar/Snackbar.js +1 -1
  199. package/legacy/SpeedDial/SpeedDial.js +1 -1
  200. package/legacy/StepIcon/StepIcon.js +5 -5
  201. package/legacy/StepLabel/StepLabel.js +4 -4
  202. package/legacy/Stepper/StepperContext.js +10 -2
  203. package/legacy/Stepper/index.js +3 -1
  204. package/legacy/SvgIcon/SvgIcon.js +4 -4
  205. package/legacy/Tab/Tab.js +7 -7
  206. package/legacy/Table/Table.js +1 -1
  207. package/legacy/TablePagination/TablePagination.js +1 -1
  208. package/legacy/TableRow/TableRow.js +3 -3
  209. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  210. package/legacy/Tabs/Tabs.js +2 -2
  211. package/legacy/ToggleButton/ToggleButton.js +16 -9
  212. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  213. package/legacy/Tooltip/Tooltip.js +5 -5
  214. package/legacy/className/index.js +1 -8
  215. package/legacy/index.js +1 -1
  216. package/legacy/styles/createPalette.js +2 -1
  217. package/legacy/styles/experimental_extendTheme.js +52 -43
  218. package/locale/index.d.ts +71 -71
  219. package/modern/Autocomplete/Autocomplete.js +15 -14
  220. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  221. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  222. package/modern/CardActionArea/CardActionArea.js +2 -2
  223. package/modern/CssBaseline/CssBaseline.js +4 -4
  224. package/modern/DialogContent/DialogContent.js +2 -2
  225. package/modern/Divider/Divider.js +4 -4
  226. package/modern/Drawer/Drawer.js +6 -6
  227. package/modern/Fab/Fab.js +16 -16
  228. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  229. package/modern/FormHelperText/FormHelperText.js +3 -3
  230. package/modern/FormLabel/FormLabel.js +5 -5
  231. package/modern/Icon/Icon.js +8 -8
  232. package/modern/IconButton/IconButton.js +5 -5
  233. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  234. package/modern/Input/Input.js +9 -4
  235. package/modern/InputAdornment/InputAdornment.js +1 -1
  236. package/modern/InputBase/InputBase.js +16 -8
  237. package/modern/Link/Link.js +3 -8
  238. package/modern/ListItem/ListItem.js +8 -8
  239. package/modern/ListItemButton/ListItemButton.js +8 -8
  240. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  241. package/modern/ListSubheader/ListSubheader.js +3 -3
  242. package/modern/MenuItem/MenuItem.js +8 -8
  243. package/modern/MobileStepper/MobileStepper.js +5 -5
  244. package/modern/Modal/Modal.js +1 -1
  245. package/modern/PaginationItem/PaginationItem.js +27 -27
  246. package/modern/Rating/Rating.js +2 -2
  247. package/modern/Snackbar/Snackbar.js +1 -1
  248. package/modern/SpeedDial/SpeedDial.js +1 -1
  249. package/modern/StepIcon/StepIcon.js +5 -5
  250. package/modern/StepLabel/StepLabel.js +4 -4
  251. package/modern/Stepper/StepperContext.js +10 -2
  252. package/modern/Stepper/index.js +3 -1
  253. package/modern/SvgIcon/SvgIcon.js +3 -3
  254. package/modern/Tab/Tab.js +7 -7
  255. package/modern/Table/Table.js +1 -1
  256. package/modern/TablePagination/TablePagination.js +1 -1
  257. package/modern/TableRow/TableRow.js +3 -3
  258. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  259. package/modern/Tabs/Tabs.js +2 -2
  260. package/modern/ToggleButton/ToggleButton.js +17 -10
  261. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  262. package/modern/Tooltip/Tooltip.js +5 -5
  263. package/modern/className/index.js +1 -8
  264. package/modern/index.js +1 -1
  265. package/modern/styles/createPalette.js +2 -1
  266. package/modern/styles/experimental_extendTheme.js +56 -45
  267. package/node/Autocomplete/Autocomplete.js +15 -14
  268. package/node/BottomNavigation/BottomNavigation.js +0 -0
  269. package/node/ButtonGroup/ButtonGroup.js +10 -10
  270. package/node/CardActionArea/CardActionArea.js +2 -2
  271. package/node/CssBaseline/CssBaseline.js +4 -4
  272. package/node/DialogContent/DialogContent.js +2 -2
  273. package/node/Divider/Divider.js +4 -4
  274. package/node/Drawer/Drawer.js +6 -6
  275. package/node/Fab/Fab.js +69 -65
  276. package/node/FormControlLabel/FormControlLabel.js +1 -1
  277. package/node/FormHelperText/FormHelperText.js +3 -3
  278. package/node/FormLabel/FormLabel.js +5 -5
  279. package/node/Icon/Icon.js +8 -8
  280. package/node/IconButton/IconButton.js +5 -5
  281. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  282. package/node/Input/Input.js +9 -4
  283. package/node/InputAdornment/InputAdornment.js +1 -1
  284. package/node/InputBase/InputBase.js +14 -8
  285. package/node/Link/Link.js +3 -9
  286. package/node/ListItem/ListItem.js +8 -8
  287. package/node/ListItemButton/ListItemButton.js +8 -8
  288. package/node/ListItemIcon/ListItemIcon.js +1 -1
  289. package/node/ListSubheader/ListSubheader.js +3 -3
  290. package/node/MenuItem/MenuItem.js +8 -8
  291. package/node/MobileStepper/MobileStepper.js +5 -5
  292. package/node/Modal/Modal.js +1 -1
  293. package/node/PaginationItem/PaginationItem.js +27 -27
  294. package/node/Rating/Rating.js +2 -2
  295. package/node/Snackbar/Snackbar.js +1 -1
  296. package/node/SpeedDial/SpeedDial.js +1 -1
  297. package/node/StepIcon/StepIcon.js +5 -5
  298. package/node/StepLabel/StepLabel.js +4 -4
  299. package/node/Stepper/StepperContext.js +11 -1
  300. package/node/Stepper/index.js +22 -1
  301. package/node/SvgIcon/SvgIcon.js +4 -4
  302. package/node/Tab/Tab.js +7 -7
  303. package/node/Table/Table.js +1 -1
  304. package/node/TablePagination/TablePagination.js +1 -1
  305. package/node/TableRow/TableRow.js +3 -3
  306. package/node/TableSortLabel/TableSortLabel.js +4 -4
  307. package/node/Tabs/Tabs.js +2 -2
  308. package/node/ToggleButton/ToggleButton.js +17 -10
  309. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  310. package/node/Tooltip/Tooltip.js +5 -5
  311. package/node/className/index.js +2 -2
  312. package/node/index.js +1 -1
  313. package/node/styles/createPalette.js +2 -1
  314. package/node/styles/experimental_extendTheme.js +57 -47
  315. package/package.json +6 -5
  316. package/styles/ThemeProvider.d.ts +1 -1
  317. package/styles/createPalette.d.ts +9 -2
  318. package/styles/createPalette.js +2 -1
  319. package/styles/experimental_extendTheme.d.ts +13 -16
  320. package/styles/experimental_extendTheme.js +57 -46
  321. package/transitions/index.d.ts +1 -1
  322. package/transitions/transition.d.ts +13 -13
  323. package/transitions/utils.d.ts +23 -23
  324. package/umd/material-ui.development.js +477 -385
  325. package/umd/material-ui.production.min.js +21 -21
  326. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  327. package/useTouchRipple/index.d.ts +1 -1
  328. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  329. package/utils/getScrollbarSize.d.ts +2 -2
  330. package/utils/ownerDocument.d.ts +2 -2
  331. package/utils/ownerWindow.d.ts +2 -2
  332. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.4
1
+ /** @license MUI v5.7.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.
@@ -6696,7 +6696,7 @@
6696
6696
 
6697
6697
  const _excluded$2j = ["breakpoints", "palette", "spacing", "shape"];
6698
6698
 
6699
- function createTheme$2(options = {}, ...args) {
6699
+ function createTheme$1(options = {}, ...args) {
6700
6700
  const {
6701
6701
  breakpoints: breakpointsInput = {},
6702
6702
  palette: paletteInput = {},
@@ -6819,7 +6819,7 @@
6819
6819
  return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
6820
6820
  }
6821
6821
 
6822
- const systemDefaultTheme$1 = createTheme$2();
6822
+ const systemDefaultTheme$1 = createTheme$1();
6823
6823
 
6824
6824
  function useTheme$1(defaultTheme = systemDefaultTheme$1) {
6825
6825
  return useTheme$2(defaultTheme);
@@ -6945,7 +6945,7 @@
6945
6945
  function shouldForwardProp(prop) {
6946
6946
  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
6947
6947
  }
6948
- const systemDefaultTheme = createTheme$2();
6948
+ const systemDefaultTheme = createTheme$1();
6949
6949
 
6950
6950
  const lowercaseFirstLetter = string => {
6951
6951
  return string.charAt(0).toLowerCase() + string.slice(1);
@@ -7645,12 +7645,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7645
7645
  const DEFAULT_ATTRIBUTE = 'data-mui-color-scheme';
7646
7646
  function getInitColorSchemeScript$1(options) {
7647
7647
  const {
7648
- enableSystem,
7648
+ enableSystem = false,
7649
7649
  defaultLightColorScheme = 'light',
7650
7650
  defaultDarkColorScheme = 'dark',
7651
7651
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7652
7652
  colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7653
- attribute = DEFAULT_ATTRIBUTE
7653
+ attribute = DEFAULT_ATTRIBUTE,
7654
+ colorSchemeNode = 'document.documentElement'
7654
7655
  } = options || {};
7655
7656
  return /*#__PURE__*/jsxRuntime_1("script", {
7656
7657
  // eslint-disable-next-line react/no-danger
@@ -7674,7 +7675,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7674
7675
  colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
7675
7676
  }
7676
7677
  if (colorScheme) {
7677
- document.documentElement.setAttribute('${attribute}', colorScheme);
7678
+ ${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
7678
7679
  }
7679
7680
  } catch (e) {} })();`
7680
7681
  }
@@ -7743,7 +7744,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7743
7744
  defaultDarkColorScheme,
7744
7745
  supportedColorSchemes = [],
7745
7746
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7746
- colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY
7747
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7748
+ storageWindow = typeof window === 'undefined' ? undefined : window
7747
7749
  } = options;
7748
7750
  const joinedColorSchemes = supportedColorSchemes.join(',');
7749
7751
  const [state, setState] = React__namespace.useState(() => {
@@ -7760,6 +7762,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7760
7762
  setState(currentState => {
7761
7763
  const newMode = !mode ? defaultMode : mode;
7762
7764
 
7765
+ if (mode === currentState.mode) {
7766
+ return currentState;
7767
+ }
7768
+
7763
7769
  if (typeof localStorage !== 'undefined') {
7764
7770
  localStorage.setItem(modeStorageKey, newMode);
7765
7771
  }
@@ -7772,7 +7778,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7772
7778
  }, [modeStorageKey, defaultMode]);
7773
7779
  const setColorScheme = React__namespace.useCallback(value => {
7774
7780
  if (!value || typeof value === 'string') {
7775
- if (value && !supportedColorSchemes.includes(value)) {
7781
+ if (value && !joinedColorSchemes.includes(value)) {
7776
7782
  console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7777
7783
  } else {
7778
7784
  setState(currentState => {
@@ -7799,7 +7805,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7799
7805
  return newState;
7800
7806
  });
7801
7807
  }
7802
- } else if (value.light && !supportedColorSchemes.includes(value.light) || value.dark && !supportedColorSchemes.includes(value.dark)) {
7808
+ } else if (value.light && !joinedColorSchemes.includes(value.light) || value.dark && !joinedColorSchemes.includes(value.dark)) {
7803
7809
  console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7804
7810
  } else {
7805
7811
  setState(currentState => {
@@ -7824,7 +7830,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7824
7830
  localStorage.setItem(`${colorSchemeStorageKey}-dark`, value.dark);
7825
7831
  }
7826
7832
  }
7827
- }, [colorSchemeStorageKey, supportedColorSchemes, defaultLightColorScheme, defaultDarkColorScheme]);
7833
+ }, [joinedColorSchemes, colorSchemeStorageKey, defaultLightColorScheme, defaultDarkColorScheme]);
7828
7834
  const handleMediaQuery = React__namespace.useCallback(e => {
7829
7835
  if (state.mode === 'system') {
7830
7836
  setState(currentState => _extends({}, currentState, {
@@ -7886,9 +7892,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7886
7892
  }
7887
7893
  };
7888
7894
 
7889
- window.addEventListener('storage', handleStorage);
7890
- return () => window.removeEventListener('storage', handleStorage);
7891
- }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode]);
7895
+ if (storageWindow) {
7896
+ // For syncing color-scheme changes between iframes
7897
+ storageWindow.addEventListener('storage', handleStorage);
7898
+ return () => storageWindow.removeEventListener('storage', handleStorage);
7899
+ }
7900
+
7901
+ return undefined;
7902
+ }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode, storageWindow]);
7892
7903
  return _extends({}, state, {
7893
7904
  colorScheme,
7894
7905
  setMode,
@@ -7958,11 +7969,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7958
7969
  theme: themeProp = defaultTheme,
7959
7970
  prefix = designSystemPrefix,
7960
7971
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7972
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7961
7973
  attribute = DEFAULT_ATTRIBUTE,
7962
7974
  defaultMode = desisgnSystemMode,
7963
7975
  defaultColorScheme = designSystemColorScheme,
7964
7976
  disableTransitionOnChange = designSystemTransitionOnChange,
7965
- enableColorScheme = designSystemEnableColorScheme
7977
+ enableColorScheme = designSystemEnableColorScheme,
7978
+ storageWindow = typeof window === 'undefined' ? undefined : window,
7979
+ documentNode = typeof document === 'undefined' ? undefined : document,
7980
+ colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,
7981
+ colorSchemeSelector = ':root'
7966
7982
  }) {
7967
7983
  const hasMounted = React__namespace.useRef(false);
7968
7984
 
@@ -7988,7 +8004,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7988
8004
  defaultLightColorScheme,
7989
8005
  defaultDarkColorScheme,
7990
8006
  modeStorageKey,
7991
- defaultMode
8007
+ colorSchemeStorageKey,
8008
+ defaultMode,
8009
+ storageWindow
7992
8010
  });
7993
8011
 
7994
8012
  const resolvedColorScheme = (() => {
@@ -8058,54 +8076,54 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8058
8076
  })();
8059
8077
 
8060
8078
  if (key === resolvedDefaultColorScheme) {
8061
- styleSheet[':root'] = css;
8079
+ styleSheet[colorSchemeSelector] = css;
8062
8080
  } else {
8063
- styleSheet[`[${attribute}="${key}"]`] = css;
8081
+ styleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
8064
8082
  }
8065
8083
  });
8066
8084
  React__namespace.useEffect(() => {
8067
- if (colorScheme) {
8085
+ if (colorScheme && colorSchemeNode) {
8068
8086
  // attaches attribute to <html> because the css variables are attached to :root (html)
8069
- document.documentElement.setAttribute(attribute, colorScheme);
8087
+ colorSchemeNode.setAttribute(attribute, colorScheme);
8070
8088
  }
8071
- }, [colorScheme, attribute]);
8089
+ }, [colorScheme, attribute, colorSchemeNode]);
8072
8090
  useEnhancedEffect$1(() => {
8073
- if (!mode || !enableColorScheme) {
8091
+ if (!mode || !enableColorScheme || !colorSchemeNode) {
8074
8092
  return undefined;
8075
8093
  }
8076
8094
 
8077
- const priorColorScheme = document.documentElement.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
8095
+ const priorColorScheme = colorSchemeNode.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
8078
8096
 
8079
8097
  if (mode === 'system') {
8080
- document.documentElement.style.setProperty('color-scheme', systemMode);
8098
+ colorSchemeNode.style.setProperty('color-scheme', systemMode);
8081
8099
  } else {
8082
- document.documentElement.style.setProperty('color-scheme', mode);
8100
+ colorSchemeNode.style.setProperty('color-scheme', mode);
8083
8101
  }
8084
8102
 
8085
8103
  return () => {
8086
- document.documentElement.style.setProperty('color-scheme', priorColorScheme);
8104
+ colorSchemeNode.style.setProperty('color-scheme', priorColorScheme);
8087
8105
  };
8088
- }, [mode, systemMode, enableColorScheme]);
8106
+ }, [mode, systemMode, enableColorScheme, colorSchemeNode]);
8089
8107
  React__namespace.useEffect(() => {
8090
8108
  let timer;
8091
8109
 
8092
- if (disableTransitionOnChange && hasMounted.current) {
8110
+ if (disableTransitionOnChange && hasMounted.current && documentNode) {
8093
8111
  // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313
8094
- const css = document.createElement('style');
8095
- css.appendChild(document.createTextNode(DISABLE_CSS_TRANSITION));
8096
- document.head.appendChild(css); // Force browser repaint
8112
+ const css = documentNode.createElement('style');
8113
+ css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));
8114
+ documentNode.head.appendChild(css); // Force browser repaint
8097
8115
 
8098
- (() => window.getComputedStyle(document.body))();
8116
+ (() => window.getComputedStyle(documentNode.body))();
8099
8117
 
8100
8118
  timer = setTimeout(() => {
8101
- document.head.removeChild(css);
8119
+ documentNode.head.removeChild(css);
8102
8120
  }, 1);
8103
8121
  }
8104
8122
 
8105
8123
  return () => {
8106
8124
  clearTimeout(timer);
8107
8125
  };
8108
- }, [colorScheme, disableTransitionOnChange]);
8126
+ }, [colorScheme, disableTransitionOnChange, documentNode]);
8109
8127
  React__namespace.useEffect(() => {
8110
8128
  hasMounted.current = true;
8111
8129
  return () => {
@@ -8124,7 +8142,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8124
8142
  },
8125
8143
  children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8126
8144
  styles: {
8127
- ':root': rootCss
8145
+ [colorSchemeSelector]: rootCss
8128
8146
  }
8129
8147
  }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8130
8148
  styles: styleSheet
@@ -8146,6 +8164,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8146
8164
  */
8147
8165
  children: PropTypes.node,
8148
8166
 
8167
+ /**
8168
+ * The node used to attach the color-scheme attribute
8169
+ */
8170
+ colorSchemeNode: PropTypes.any,
8171
+
8172
+ /**
8173
+ * The CSS selector for attaching the generated custom properties
8174
+ */
8175
+ colorSchemeSelector: PropTypes.string,
8176
+
8177
+ /**
8178
+ * localStorage key used to store `colorScheme`
8179
+ */
8180
+ colorSchemeStorageKey: PropTypes.string,
8181
+
8149
8182
  /**
8150
8183
  * The initial color scheme used.
8151
8184
  */
@@ -8161,6 +8194,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8161
8194
  */
8162
8195
  disableTransitionOnChange: PropTypes.bool,
8163
8196
 
8197
+ /**
8198
+ * The document to attach the attribute to
8199
+ */
8200
+ documentNode: PropTypes.any,
8201
+
8164
8202
  /**
8165
8203
  * Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
8166
8204
  */
@@ -8176,6 +8214,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8176
8214
  */
8177
8215
  prefix: PropTypes.string,
8178
8216
 
8217
+ /**
8218
+ * The window that attaches the 'storage' event listener
8219
+ * @default window
8220
+ */
8221
+ storageWindow: PropTypes.any,
8222
+
8179
8223
  /**
8180
8224
  * The calculated theme object that will be passed through context.
8181
8225
  */
@@ -8809,7 +8853,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8809
8853
  };
8810
8854
 
8811
8855
  const handleValue = (event, newValue, reason, details) => {
8812
- if (Array.isArray(value)) {
8856
+ if (multiple) {
8813
8857
  if (value.length === newValue.length && value.every((val, i) => val === newValue[i])) {
8814
8858
  return;
8815
8859
  }
@@ -8893,7 +8937,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8893
8937
  return;
8894
8938
  }
8895
8939
 
8896
- handleClose(event, 'toggleInput');
8940
+ if (inputValue === '') {
8941
+ handleClose(event, 'toggleInput');
8942
+ }
8943
+
8897
8944
  let nextTag = focusedTag;
8898
8945
 
8899
8946
  if (focusedTag === -1) {
@@ -9348,36 +9395,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9348
9395
  return output;
9349
9396
  }
9350
9397
 
9351
- function useBadge(props) {
9352
- const {
9353
- badgeContent: badgeContentProp,
9354
- invisible: invisibleProp = false,
9355
- max: maxProp = 99,
9356
- showZero = false
9357
- } = props;
9358
- const prevProps = usePreviousProps$1({
9359
- badgeContent: badgeContentProp,
9360
- max: maxProp
9361
- });
9362
- let invisible = invisibleProp;
9363
-
9364
- if (invisibleProp === false && badgeContentProp === 0 && !showZero) {
9365
- invisible = true;
9366
- }
9367
-
9368
- const {
9369
- badgeContent,
9370
- max = maxProp
9371
- } = invisible ? prevProps : props;
9372
- const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
9373
- return {
9374
- badgeContent,
9375
- invisible,
9376
- max,
9377
- displayValue
9378
- };
9379
- }
9380
-
9381
9398
  const defaultGenerator = componentName => componentName;
9382
9399
 
9383
9400
  const createClassNameGenerator = () => {
@@ -9426,6 +9443,36 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9426
9443
  return result;
9427
9444
  }
9428
9445
 
9446
+ function useBadge(props) {
9447
+ const {
9448
+ badgeContent: badgeContentProp,
9449
+ invisible: invisibleProp = false,
9450
+ max: maxProp = 99,
9451
+ showZero = false
9452
+ } = props;
9453
+ const prevProps = usePreviousProps$1({
9454
+ badgeContent: badgeContentProp,
9455
+ max: maxProp
9456
+ });
9457
+ let invisible = invisibleProp;
9458
+
9459
+ if (invisibleProp === false && badgeContentProp === 0 && !showZero) {
9460
+ invisible = true;
9461
+ }
9462
+
9463
+ const {
9464
+ badgeContent,
9465
+ max = maxProp
9466
+ } = invisible ? prevProps : props;
9467
+ const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
9468
+ return {
9469
+ badgeContent,
9470
+ invisible,
9471
+ max,
9472
+ displayValue
9473
+ };
9474
+ }
9475
+
9429
9476
  function getBadgeUnstyledUtilityClass(slot) {
9430
9477
  return generateUtilityClass('BaseBadge', slot);
9431
9478
  }
@@ -9721,7 +9768,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9721
9768
  * The mouse event to listen to. You can disable the listener by providing `false`.
9722
9769
  * @default 'onClick'
9723
9770
  */
9724
- mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
9771
+ mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', 'onPointerDown', 'onPointerUp', false]),
9725
9772
 
9726
9773
  /**
9727
9774
  * Callback fired when a "click away" event is detected.
@@ -14899,7 +14946,8 @@ const theme2 = createTheme({ palette: {
14899
14946
 
14900
14947
  const paletteOutput = deepmerge(_extends({
14901
14948
  // A collection of common colors.
14902
- common: common$1,
14949
+ common: _extends({}, common$1),
14950
+ // prevent mutable object.
14903
14951
  // The palette mode, can be light or dark.
14904
14952
  mode,
14905
14953
  // The colors used to represent primary interface elements for a user.
@@ -15166,7 +15214,7 @@ const theme2 = createTheme({ palette: {
15166
15214
 
15167
15215
  const _excluded$25 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
15168
15216
 
15169
- function createTheme$1(options = {}, ...args) {
15217
+ function createTheme(options = {}, ...args) {
15170
15218
  const {
15171
15219
  mixins: mixinsInput = {},
15172
15220
  palette: paletteInput = {},
@@ -15176,7 +15224,7 @@ const theme2 = createTheme({ palette: {
15176
15224
  other = _objectWithoutPropertiesLoose(options, _excluded$25);
15177
15225
 
15178
15226
  const palette = createPalette(paletteInput);
15179
- const systemTheme = createTheme$2(options);
15227
+ const systemTheme = createTheme$1(options);
15180
15228
  let muiTheme = deepmerge(systemTheme, {
15181
15229
  mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
15182
15230
  palette,
@@ -15235,11 +15283,11 @@ const theme2 = createTheme({ palette: {
15235
15283
  }
15236
15284
  }
15237
15285
 
15238
- return createTheme$1(...args);
15286
+ return createTheme(...args);
15239
15287
  }
15240
15288
 
15241
15289
  function createMuiStrictModeTheme(options, ...args) {
15242
- return createTheme$1(deepmerge({
15290
+ return createTheme(deepmerge({
15243
15291
  unstable_strictMode: true
15244
15292
  }, options), ...args);
15245
15293
  }
@@ -15446,7 +15494,7 @@ Use unitless line heights instead.` );
15446
15494
  return theme;
15447
15495
  }
15448
15496
 
15449
- const defaultTheme$2 = createTheme$1();
15497
+ const defaultTheme$2 = createTheme();
15450
15498
  var defaultTheme$3 = defaultTheme$2;
15451
15499
 
15452
15500
  function useTheme() {
@@ -15497,52 +15545,73 @@ You have to import it from @mui/styles.
15497
15545
  See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15498
15546
  }
15499
15547
 
15500
- const _excluded$24 = ["colorSchemes", "opacity"],
15548
+ const _excluded$24 = ["colorSchemes"],
15501
15549
  _excluded2$9 = ["palette"];
15502
- const defaultOpacity = {
15503
- active: 0.54,
15504
- hover: 0.04,
15505
- selected: 0.08,
15506
- disabled: 0.26,
15507
- focus: 0.12
15508
- };
15509
-
15510
- function createTheme(options = {}, ...args) {
15511
- var _colorSchemesInput$li, _colorSchemesInput$da;
15550
+ function extendTheme(options = {}, ...args) {
15551
+ var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$da2;
15512
15552
 
15513
15553
  const {
15514
- colorSchemes: colorSchemesInput = {},
15515
- opacity: opacityInput = {}
15554
+ colorSchemes: colorSchemesInput = {}
15516
15555
  } = options,
15517
- input = _objectWithoutPropertiesLoose(options, _excluded$24); // eslint-disable-next-line prefer-const
15556
+ input = _objectWithoutPropertiesLoose(options, _excluded$24);
15518
15557
 
15519
-
15520
- let _createThemeWithoutVa = createTheme$1(_extends({}, input, colorSchemesInput.light && {
15558
+ const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
15521
15559
  palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
15522
15560
  })),
15523
- {
15561
+ {
15524
15562
  palette: lightPalette
15525
15563
  } = _createThemeWithoutVa,
15526
- muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
15564
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
15527
15565
 
15528
15566
  const {
15529
15567
  palette: darkPalette
15530
- } = createTheme$1({
15568
+ } = createTheme({
15531
15569
  palette: _extends({
15532
15570
  mode: 'dark'
15533
15571
  }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
15534
15572
  });
15535
- colorSchemesInput.light = {
15536
- palette: lightPalette
15537
- };
15538
- colorSchemesInput.dark = {
15539
- palette: darkPalette
15540
- };
15541
- const colorSchemes = {};
15542
- Object.keys(colorSchemesInput).forEach(key => {
15543
- const palette = createPalette(colorSchemesInput[key].palette);
15573
+
15574
+ let theme = _extends({}, muiTheme, {
15575
+ colorSchemes: _extends({}, colorSchemesInput, {
15576
+ light: _extends({}, colorSchemesInput.light, {
15577
+ palette: lightPalette,
15578
+ opacity: _extends({
15579
+ placeholder: 0.42,
15580
+ inputTouchBottomLine: 0.42
15581
+ }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity)
15582
+ }),
15583
+ dark: _extends({}, colorSchemesInput.dark, {
15584
+ palette: darkPalette,
15585
+ opacity: _extends({
15586
+ placeholder: 0.5,
15587
+ inputTouchBottomLine: 0.7
15588
+ }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity)
15589
+ })
15590
+ })
15591
+ });
15592
+
15593
+ Object.keys(theme.colorSchemes).forEach(key => {
15594
+ const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
15595
+
15596
+ if (key === 'dark') {
15597
+ palette.common.background = palette.common.background || '#000';
15598
+ palette.common.onBackground = palette.common.onBackground || '#fff';
15599
+ } else {
15600
+ palette.common.background = palette.common.background || '#fff';
15601
+ palette.common.onBackground = palette.common.onBackground || '#000';
15602
+ }
15603
+
15604
+ palette.common.backgroundChannel = colorChannel(palette.common.background);
15605
+ palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
15606
+ palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
15607
+ // TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
15608
+
15609
+ if (!palette.grey.dark) {
15610
+ palette.grey.dark = palette.grey[700];
15611
+ }
15612
+
15544
15613
  Object.keys(palette).forEach(color => {
15545
- const colors = palette[color];
15614
+ const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
15546
15615
 
15547
15616
  if (colors.main) {
15548
15617
  palette[color].mainChannel = colorChannel(colors.main);
@@ -15556,6 +15625,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15556
15625
  palette[color].darkChannel = colorChannel(colors.dark);
15557
15626
  }
15558
15627
 
15628
+ if (colors.contrastText) {
15629
+ palette[color].contrastTextChannel = colorChannel(colors.contrastText);
15630
+ } // Text colors: text.primary, text.secondary
15631
+
15632
+
15559
15633
  if (colors.primary) {
15560
15634
  palette[color].primaryChannel = colorChannel(colors.primary);
15561
15635
  }
@@ -15563,25 +15637,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15563
15637
  if (colors.secondary) {
15564
15638
  palette[color].secondaryChannel = colorChannel(colors.secondary);
15565
15639
  }
15566
-
15567
- if (colors.disabled) {
15568
- palette[color].disabledChannel = colorChannel(colors.disabled);
15569
- }
15570
15640
  });
15571
- colorSchemes[key] = {
15572
- palette
15573
- };
15574
15641
  });
15575
-
15576
- const opacity = _extends({}, defaultOpacity, opacityInput);
15577
-
15578
- muiTheme.colorSchemes = colorSchemes;
15579
- muiTheme.opacity = opacity;
15580
- muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
15581
- return muiTheme;
15642
+ theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
15643
+ return theme;
15582
15644
  }
15583
15645
 
15584
- const defaultTheme$1 = createTheme();
15646
+ const defaultTheme$1 = extendTheme();
15585
15647
  const {
15586
15648
  CssVarsProvider: Experimental_CssVarsProvider,
15587
15649
  useColorScheme,
@@ -15636,7 +15698,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15636
15698
  theme,
15637
15699
  ownerState
15638
15700
  }) => {
15639
- 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;
15701
+ 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;
15640
15702
 
15641
15703
  return {
15642
15704
  userSelect: 'none',
@@ -15655,9 +15717,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15655
15717
  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'
15656
15718
  }[ownerState.fontSize],
15657
15719
  // TODO v5 deprecate, v6 remove for sx
15658
- 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 : {
15659
- action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
15660
- disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
15720
+ 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 : {
15721
+ action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
15722
+ disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
15661
15723
  inherit: undefined
15662
15724
  }[ownerState.color]
15663
15725
  };
@@ -19075,13 +19137,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19075
19137
  borderRadius: '50%',
19076
19138
  overflow: 'visible',
19077
19139
  // Explicitly set the default value to solve a bug on IE11.
19078
- color: theme.palette.action.active,
19140
+ color: (theme.vars || theme).palette.action.active,
19079
19141
  transition: theme.transitions.create('background-color', {
19080
19142
  duration: theme.transitions.duration.shortest
19081
19143
  })
19082
19144
  }, !ownerState.disableRipple && {
19083
19145
  '&:hover': {
19084
- backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
19146
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.active} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
19085
19147
  // Reset on touch devices, it doesn't add specificity
19086
19148
  '@media (hover: none)': {
19087
19149
  backgroundColor: 'transparent'
@@ -19097,10 +19159,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19097
19159
  }) => _extends({}, ownerState.color === 'inherit' && {
19098
19160
  color: 'inherit'
19099
19161
  }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({
19100
- color: theme.palette[ownerState.color].main
19162
+ color: (theme.vars || theme).palette[ownerState.color].main
19101
19163
  }, !ownerState.disableRipple && {
19102
19164
  '&:hover': {
19103
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
19165
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
19104
19166
  // Reset on touch devices, it doesn't add specificity
19105
19167
  '@media (hover: none)': {
19106
19168
  backgroundColor: 'transparent'
@@ -19115,7 +19177,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19115
19177
  }, {
19116
19178
  [`&.${iconButtonClasses$1.disabled}`]: {
19117
19179
  backgroundColor: 'transparent',
19118
- color: theme.palette.action.disabled
19180
+ color: (theme.vars || theme).palette.action.disabled
19119
19181
  }
19120
19182
  }));
19121
19183
  /**
@@ -20170,12 +20232,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20170
20232
  boxSizing: 'border-box',
20171
20233
  lineHeight: '48px',
20172
20234
  listStyle: 'none',
20173
- color: theme.palette.text.secondary,
20235
+ color: (theme.vars || theme).palette.text.secondary,
20174
20236
  fontFamily: theme.typography.fontFamily,
20175
20237
  fontWeight: theme.typography.fontWeightMedium,
20176
20238
  fontSize: theme.typography.pxToRem(14)
20177
20239
  }, ownerState.color === 'primary' && {
20178
- color: theme.palette.primary.main
20240
+ color: (theme.vars || theme).palette.primary.main
20179
20241
  }, ownerState.color === 'inherit' && {
20180
20242
  color: 'inherit'
20181
20243
  }, !ownerState.disableGutters && {
@@ -20187,7 +20249,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20187
20249
  position: 'sticky',
20188
20250
  top: 0,
20189
20251
  zIndex: 1,
20190
- backgroundColor: theme.palette.background.paper
20252
+ backgroundColor: (theme.vars || theme).palette.background.paper
20191
20253
  }));
20192
20254
  const ListSubheader = /*#__PURE__*/React__namespace.forwardRef(function ListSubheader(inProps, ref) {
20193
20255
  const props = useThemeProps({
@@ -20942,7 +21004,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20942
21004
  theme,
20943
21005
  ownerState
20944
21006
  }) => _extends({}, theme.typography.body1, {
20945
- color: theme.palette.text.primary,
21007
+ color: (theme.vars || theme).palette.text.primary,
20946
21008
  lineHeight: '1.4375em',
20947
21009
  // 23px
20948
21010
  boxSizing: 'border-box',
@@ -20952,7 +21014,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20952
21014
  display: 'inline-flex',
20953
21015
  alignItems: 'center',
20954
21016
  [`&.${inputBaseClasses$1.disabled}`]: {
20955
- color: theme.palette.text.disabled,
21017
+ color: (theme.vars || theme).palette.text.disabled,
20956
21018
  cursor: 'default'
20957
21019
  }
20958
21020
  }, ownerState.multiline && _extends({
@@ -20971,17 +21033,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20971
21033
  ownerState
20972
21034
  }) => {
20973
21035
  const light = theme.palette.mode === 'light';
20974
- const placeholder = {
20975
- color: 'currentColor',
20976
- opacity: light ? 0.42 : 0.5,
21036
+
21037
+ const placeholder = _extends({
21038
+ color: 'currentColor'
21039
+ }, theme.vars ? {
21040
+ opacity: theme.vars.opacity.placeholder
21041
+ } : {
21042
+ opacity: light ? 0.42 : 0.5
21043
+ }, {
20977
21044
  transition: theme.transitions.create('opacity', {
20978
21045
  duration: theme.transitions.duration.shorter
20979
21046
  })
20980
- };
21047
+ });
21048
+
20981
21049
  const placeholderHidden = {
20982
21050
  opacity: '0 !important'
20983
21051
  };
20984
- const placeholderVisible = {
21052
+ const placeholderVisible = theme.vars ? {
21053
+ opacity: theme.vars.opacity.placeholder
21054
+ } : {
20985
21055
  opacity: light ? 0.42 : 0.5
20986
21056
  };
20987
21057
  return _extends({
@@ -21042,7 +21112,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21042
21112
  [`&.${inputBaseClasses$1.disabled}`]: {
21043
21113
  opacity: 1,
21044
21114
  // Reset iOS opacity
21045
- WebkitTextFillColor: theme.palette.text.disabled // Fix opacity Safari bug
21115
+ WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
21046
21116
 
21047
21117
  },
21048
21118
  '&:-webkit-autofill': {
@@ -21861,7 +21931,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21861
21931
  theme,
21862
21932
  ownerState
21863
21933
  }) => _extends({
21864
- zIndex: theme.zIndex.modal
21934
+ zIndex: (theme.vars || theme).zIndex.modal
21865
21935
  }, ownerState.disablePortal && {
21866
21936
  position: 'absolute'
21867
21937
  }));
@@ -21881,7 +21951,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21881
21951
  })(({
21882
21952
  theme
21883
21953
  }) => ({
21884
- color: theme.palette.text.secondary,
21954
+ color: (theme.vars || theme).palette.text.secondary,
21885
21955
  padding: '14px 16px'
21886
21956
  }));
21887
21957
  const AutocompleteNoOptions = styled$1('div', {
@@ -21891,7 +21961,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21891
21961
  })(({
21892
21962
  theme
21893
21963
  }) => ({
21894
- color: theme.palette.text.secondary,
21964
+ color: (theme.vars || theme).palette.text.secondary,
21895
21965
  padding: '14px 16px'
21896
21966
  }));
21897
21967
  const AutocompleteListbox = styled$1('div', {
@@ -21924,30 +21994,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21924
21994
  minHeight: 'auto'
21925
21995
  },
21926
21996
  [`&.${autocompleteClasses$1.focused}`]: {
21927
- backgroundColor: theme.palette.action.hover,
21997
+ backgroundColor: (theme.vars || theme).palette.action.hover,
21928
21998
  // Reset on touch devices, it doesn't add specificity
21929
21999
  '@media (hover: none)': {
21930
22000
  backgroundColor: 'transparent'
21931
22001
  }
21932
22002
  },
21933
22003
  '&[aria-disabled="true"]': {
21934
- opacity: theme.palette.action.disabledOpacity,
22004
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
21935
22005
  pointerEvents: 'none'
21936
22006
  },
21937
22007
  [`&.${autocompleteClasses$1.focusVisible}`]: {
21938
- backgroundColor: theme.palette.action.focus
22008
+ backgroundColor: (theme.vars || theme).palette.action.focus
21939
22009
  },
21940
22010
  '&[aria-selected="true"]': {
21941
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
22011
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
21942
22012
  [`&.${autocompleteClasses$1.focused}`]: {
21943
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
22013
+ 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),
21944
22014
  // Reset on touch devices, it doesn't add specificity
21945
22015
  '@media (hover: none)': {
21946
- backgroundColor: theme.palette.action.selected
22016
+ backgroundColor: (theme.vars || theme).palette.action.selected
21947
22017
  }
21948
22018
  },
21949
22019
  [`&.${autocompleteClasses$1.focusVisible}`]: {
21950
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
22020
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
21951
22021
  }
21952
22022
  }
21953
22023
  }
@@ -21959,7 +22029,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21959
22029
  })(({
21960
22030
  theme
21961
22031
  }) => ({
21962
- backgroundColor: theme.palette.background.paper,
22032
+ backgroundColor: (theme.vars || theme).palette.background.paper,
21963
22033
  top: -8
21964
22034
  }));
21965
22035
  const AutocompleteGroupUl = styled$1('ul', {
@@ -22155,10 +22225,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22155
22225
  fullWidth: true,
22156
22226
  size: size === 'small' ? 'small' : undefined,
22157
22227
  InputLabelProps: getInputLabelProps(),
22158
- InputProps: {
22228
+ InputProps: _extends({
22159
22229
  ref: setAnchorEl,
22160
22230
  className: classes.inputRoot,
22161
- startAdornment,
22231
+ startAdornment
22232
+ }, (hasClearIcon || hasPopupIcon) && {
22162
22233
  endAdornment: /*#__PURE__*/jsxRuntime_2(AutocompleteEndAdornment, {
22163
22234
  className: classes.endAdornment,
22164
22235
  ownerState: ownerState,
@@ -22178,7 +22249,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22178
22249
  children: popupIcon
22179
22250
  })) : null]
22180
22251
  })
22181
- },
22252
+ }),
22182
22253
  inputProps: _extends({
22183
22254
  className: clsx(classes.input),
22184
22255
  disabled,
@@ -24231,7 +24302,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24231
24302
  } ;
24232
24303
  var BottomNavigationAction$1 = BottomNavigationAction;
24233
24304
 
24234
- const defaultTheme = createTheme$1();
24305
+ const defaultTheme = createTheme();
24235
24306
  const Box = createBox({
24236
24307
  defaultTheme,
24237
24308
  defaultClassName: 'MuiBox-root',
@@ -25015,9 +25086,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25015
25086
  ownerState
25016
25087
  }) => _extends({
25017
25088
  display: 'inline-flex',
25018
- borderRadius: theme.shape.borderRadius
25089
+ borderRadius: (theme.vars || theme).shape.borderRadius
25019
25090
  }, ownerState.variant === 'contained' && {
25020
- boxShadow: theme.shadows[2]
25091
+ boxShadow: (theme.vars || theme).shadows[2]
25021
25092
  }, ownerState.disableElevation && {
25022
25093
  boxShadow: 'none'
25023
25094
  }, ownerState.fullWidth && {
@@ -25045,27 +25116,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25045
25116
  borderBottomRightRadius: 0,
25046
25117
  borderBottomLeftRadius: 0
25047
25118
  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
25048
- borderRight: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25119
+ borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25049
25120
  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
25050
- borderBottom: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25121
+ borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25051
25122
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
25052
- borderColor: alpha(theme.palette[ownerState.color].main, 0.5)
25123
+ borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
25053
25124
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
25054
25125
  borderRightColor: 'transparent'
25055
25126
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
25056
25127
  borderBottomColor: 'transparent'
25057
25128
  }, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
25058
- borderRight: `1px solid ${theme.palette.grey[400]}`,
25129
+ borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
25059
25130
  [`&.${buttonGroupClasses$1.disabled}`]: {
25060
- borderRight: `1px solid ${theme.palette.action.disabled}`
25131
+ borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
25061
25132
  }
25062
25133
  }, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
25063
- borderBottom: `1px solid ${theme.palette.grey[400]}`,
25134
+ borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
25064
25135
  [`&.${buttonGroupClasses$1.disabled}`]: {
25065
- borderBottom: `1px solid ${theme.palette.action.disabled}`
25136
+ borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
25066
25137
  }
25067
25138
  }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
25068
- borderColor: theme.palette[ownerState.color].dark
25139
+ borderColor: (theme.vars || theme).palette[ownerState.color].dark
25069
25140
  }, {
25070
25141
  '&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
25071
25142
  borderRightColor: 'currentColor'
@@ -25362,13 +25433,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25362
25433
  textAlign: 'inherit',
25363
25434
  width: '100%',
25364
25435
  [`&:hover .${cardActionAreaClasses$1.focusHighlight}`]: {
25365
- opacity: theme.palette.action.hoverOpacity,
25436
+ opacity: (theme.vars || theme).palette.action.hoverOpacity,
25366
25437
  '@media (hover: none)': {
25367
25438
  opacity: 0
25368
25439
  }
25369
25440
  },
25370
25441
  [`&.${cardActionAreaClasses$1.focusVisible} .${cardActionAreaClasses$1.focusHighlight}`]: {
25371
- opacity: theme.palette.action.focusOpacity
25442
+ opacity: (theme.vars || theme).palette.action.focusOpacity
25372
25443
  }
25373
25444
  }));
25374
25445
  const CardActionAreaFocusHighlight = styled$1('span', {
@@ -26983,12 +27054,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26983
27054
  colorScheme: theme.palette.mode
26984
27055
  });
26985
27056
  const body = theme => _extends({
26986
- color: theme.palette.text.primary
27057
+ color: (theme.vars || theme).palette.text.primary
26987
27058
  }, theme.typography.body1, {
26988
- backgroundColor: theme.palette.background.default,
27059
+ backgroundColor: (theme.vars || theme).palette.background.default,
26989
27060
  '@media print': {
26990
27061
  // Save printer ink.
26991
- backgroundColor: theme.palette.common.white
27062
+ backgroundColor: (theme.vars || theme).palette.common.white
26992
27063
  }
26993
27064
  });
26994
27065
  const styles$3 = (theme, enableColorScheme = false) => {
@@ -27008,7 +27079,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27008
27079
  // Add support for document.body.requestFullScreen().
27009
27080
  // Other elements, if background transparent, are not supported.
27010
27081
  '&::backdrop': {
27011
- backgroundColor: theme.palette.background.default
27082
+ backgroundColor: (theme.vars || theme).palette.background.default
27012
27083
  }
27013
27084
  })
27014
27085
  };
@@ -27116,7 +27187,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27116
27187
  ownerState
27117
27188
  }) => _extends({
27118
27189
  position: 'fixed',
27119
- zIndex: theme.zIndex.modal,
27190
+ zIndex: (theme.vars || theme).zIndex.modal,
27120
27191
  right: 0,
27121
27192
  bottom: 0,
27122
27193
  top: 0,
@@ -27929,8 +28000,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27929
28000
  padding: '20px 24px'
27930
28001
  }, ownerState.dividers ? {
27931
28002
  padding: '16px 24px',
27932
- borderTop: `1px solid ${theme.palette.divider}`,
27933
- borderBottom: `1px solid ${theme.palette.divider}`
28003
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
28004
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
27934
28005
  } : {
27935
28006
  [`.${dialogTitleClasses$1.root} + &`]: {
27936
28007
  paddingTop: 0
@@ -28189,7 +28260,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28189
28260
  flexShrink: 0,
28190
28261
  borderWidth: 0,
28191
28262
  borderStyle: 'solid',
28192
- borderColor: theme.palette.divider,
28263
+ borderColor: (theme.vars || theme).palette.divider,
28193
28264
  borderBottomWidth: 'thin'
28194
28265
  }, ownerState.absolute && {
28195
28266
  position: 'absolute',
@@ -28197,7 +28268,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28197
28268
  left: 0,
28198
28269
  width: '100%'
28199
28270
  }, ownerState.light && {
28200
- borderColor: alpha(theme.palette.divider, 0.08)
28271
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
28201
28272
  }, ownerState.variant === 'inset' && {
28202
28273
  marginLeft: 72
28203
28274
  }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
@@ -28224,7 +28295,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28224
28295
  '&::before, &::after': {
28225
28296
  position: 'relative',
28226
28297
  width: '100%',
28227
- borderTop: `thin solid ${theme.palette.divider}`,
28298
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
28228
28299
  top: '50%',
28229
28300
  content: '""',
28230
28301
  transform: 'translateY(50%)'
@@ -28239,7 +28310,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28239
28310
  top: '0%',
28240
28311
  left: '50%',
28241
28312
  borderTop: 0,
28242
- borderLeft: `thin solid ${theme.palette.divider}`,
28313
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
28243
28314
  transform: 'translateX(0%)'
28244
28315
  }
28245
28316
  }), ({
@@ -28803,7 +28874,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28803
28874
  })(({
28804
28875
  theme
28805
28876
  }) => ({
28806
- zIndex: theme.zIndex.drawer
28877
+ zIndex: (theme.vars || theme).zIndex.drawer
28807
28878
  }));
28808
28879
  const DrawerDockedRoot = styled$1('div', {
28809
28880
  shouldForwardProp: rootShouldForwardProp,
@@ -28832,7 +28903,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28832
28903
  flexDirection: 'column',
28833
28904
  height: '100%',
28834
28905
  flex: '1 0 auto',
28835
- zIndex: theme.zIndex.drawer,
28906
+ zIndex: (theme.vars || theme).zIndex.drawer,
28836
28907
  // Add iOS momentum scrolling for iOS < 13.0
28837
28908
  WebkitOverflowScrolling: 'touch',
28838
28909
  // temporary style
@@ -28860,13 +28931,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28860
28931
  height: 'auto',
28861
28932
  maxHeight: '100%'
28862
28933
  }, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
28863
- borderRight: `1px solid ${theme.palette.divider}`
28934
+ borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
28864
28935
  }, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
28865
- borderBottom: `1px solid ${theme.palette.divider}`
28936
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
28866
28937
  }, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
28867
- borderLeft: `1px solid ${theme.palette.divider}`
28938
+ borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
28868
28939
  }, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
28869
- borderTop: `1px solid ${theme.palette.divider}`
28940
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
28870
28941
  }));
28871
28942
  const oppositeDirection = {
28872
28943
  left: 'right',
@@ -29126,77 +29197,81 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29126
29197
  })(({
29127
29198
  theme,
29128
29199
  ownerState
29129
- }) => _extends({}, theme.typography.button, {
29130
- minHeight: 36,
29131
- transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
29132
- duration: theme.transitions.duration.short
29133
- }),
29134
- borderRadius: '50%',
29135
- padding: 0,
29136
- minWidth: 0,
29137
- width: 56,
29138
- height: 56,
29139
- zIndex: theme.zIndex.fab,
29140
- boxShadow: theme.shadows[6],
29141
- '&:active': {
29142
- boxShadow: theme.shadows[12]
29143
- },
29144
- color: theme.palette.getContrastText(theme.palette.grey[300]),
29145
- backgroundColor: theme.palette.grey[300],
29146
- '&:hover': {
29147
- backgroundColor: theme.palette.grey.A100,
29148
- // Reset on touch devices, it doesn't add specificity
29149
- '@media (hover: none)': {
29150
- backgroundColor: theme.palette.grey[300]
29200
+ }) => {
29201
+ var _theme$palette$getCon, _theme$palette;
29202
+
29203
+ return _extends({}, theme.typography.button, {
29204
+ minHeight: 36,
29205
+ transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
29206
+ duration: theme.transitions.duration.short
29207
+ }),
29208
+ borderRadius: '50%',
29209
+ padding: 0,
29210
+ minWidth: 0,
29211
+ width: 56,
29212
+ height: 56,
29213
+ zIndex: (theme.vars || theme).zIndex.fab,
29214
+ boxShadow: (theme.vars || theme).shadows[6],
29215
+ '&:active': {
29216
+ boxShadow: (theme.vars || theme).shadows[12]
29151
29217
  },
29152
- textDecoration: 'none'
29153
- },
29154
- [`&.${fabClasses$1.focusVisible}`]: {
29155
- boxShadow: theme.shadows[6]
29156
- },
29157
- [`&.${fabClasses$1.disabled}`]: {
29158
- color: theme.palette.action.disabled,
29159
- boxShadow: theme.shadows[0],
29160
- backgroundColor: theme.palette.action.disabledBackground
29161
- }
29162
- }, ownerState.size === 'small' && {
29163
- width: 40,
29164
- height: 40
29165
- }, ownerState.size === 'medium' && {
29166
- width: 48,
29167
- height: 48
29168
- }, ownerState.variant === 'extended' && {
29169
- borderRadius: 48 / 2,
29170
- padding: '0 16px',
29171
- width: 'auto',
29172
- minHeight: 'auto',
29173
- minWidth: 48,
29174
- height: 48
29175
- }, ownerState.variant === 'extended' && ownerState.size === 'small' && {
29176
- width: 'auto',
29177
- padding: '0 8px',
29178
- borderRadius: 34 / 2,
29179
- minWidth: 34,
29180
- height: 34
29181
- }, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
29182
- width: 'auto',
29183
- padding: '0 16px',
29184
- borderRadius: 40 / 2,
29185
- minWidth: 40,
29186
- height: 40
29187
- }, ownerState.color === 'inherit' && {
29188
- color: 'inherit'
29189
- }), ({
29218
+ color: theme.vars ? theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
29219
+ backgroundColor: (theme.vars || theme).palette.grey[300],
29220
+ '&:hover': {
29221
+ backgroundColor: (theme.vars || theme).palette.grey.A100,
29222
+ // Reset on touch devices, it doesn't add specificity
29223
+ '@media (hover: none)': {
29224
+ backgroundColor: (theme.vars || theme).palette.grey[300]
29225
+ },
29226
+ textDecoration: 'none'
29227
+ },
29228
+ [`&.${fabClasses$1.focusVisible}`]: {
29229
+ boxShadow: (theme.vars || theme).shadows[6]
29230
+ },
29231
+ [`&.${fabClasses$1.disabled}`]: {
29232
+ color: (theme.vars || theme).palette.action.disabled,
29233
+ boxShadow: (theme.vars || theme).shadows[0],
29234
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
29235
+ }
29236
+ }, ownerState.size === 'small' && {
29237
+ width: 40,
29238
+ height: 40
29239
+ }, ownerState.size === 'medium' && {
29240
+ width: 48,
29241
+ height: 48
29242
+ }, ownerState.variant === 'extended' && {
29243
+ borderRadius: 48 / 2,
29244
+ padding: '0 16px',
29245
+ width: 'auto',
29246
+ minHeight: 'auto',
29247
+ minWidth: 48,
29248
+ height: 48
29249
+ }, ownerState.variant === 'extended' && ownerState.size === 'small' && {
29250
+ width: 'auto',
29251
+ padding: '0 8px',
29252
+ borderRadius: 34 / 2,
29253
+ minWidth: 34,
29254
+ height: 34
29255
+ }, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
29256
+ width: 'auto',
29257
+ padding: '0 16px',
29258
+ borderRadius: 40 / 2,
29259
+ minWidth: 40,
29260
+ height: 40
29261
+ }, ownerState.color === 'inherit' && {
29262
+ color: 'inherit'
29263
+ });
29264
+ }, ({
29190
29265
  theme,
29191
29266
  ownerState
29192
- }) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
29193
- color: theme.palette[ownerState.color].contrastText,
29194
- backgroundColor: theme.palette[ownerState.color].main,
29267
+ }) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
29268
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
29269
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
29195
29270
  '&:hover': {
29196
- backgroundColor: theme.palette[ownerState.color].dark,
29271
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
29197
29272
  // Reset on touch devices, it doesn't add specificity
29198
29273
  '@media (hover: none)': {
29199
- backgroundColor: theme.palette[ownerState.color].main
29274
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
29200
29275
  }
29201
29276
  }
29202
29277
  }));
@@ -30117,7 +30192,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30117
30192
  }, {
30118
30193
  [`& .${formControlLabelClasses$1.label}`]: {
30119
30194
  [`&.${formControlLabelClasses$1.disabled}`]: {
30120
- color: theme.palette.text.disabled
30195
+ color: (theme.vars || theme).palette.text.disabled
30121
30196
  }
30122
30197
  }
30123
30198
  }));
@@ -30432,7 +30507,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30432
30507
  theme,
30433
30508
  ownerState
30434
30509
  }) => _extends({
30435
- color: theme.palette.text.secondary
30510
+ color: (theme.vars || theme).palette.text.secondary
30436
30511
  }, theme.typography.caption, {
30437
30512
  textAlign: 'left',
30438
30513
  marginTop: 3,
@@ -30440,10 +30515,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30440
30515
  marginBottom: 0,
30441
30516
  marginLeft: 0,
30442
30517
  [`&.${formHelperTextClasses$1.disabled}`]: {
30443
- color: theme.palette.text.disabled
30518
+ color: (theme.vars || theme).palette.text.disabled
30444
30519
  },
30445
30520
  [`&.${formHelperTextClasses$1.error}`]: {
30446
- color: theme.palette.error.main
30521
+ color: (theme.vars || theme).palette.error.main
30447
30522
  }
30448
30523
  }, ownerState.size === 'small' && {
30449
30524
  marginTop: 4
@@ -30608,19 +30683,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30608
30683
  theme,
30609
30684
  ownerState
30610
30685
  }) => _extends({
30611
- color: theme.palette.text.secondary
30686
+ color: (theme.vars || theme).palette.text.secondary
30612
30687
  }, theme.typography.body1, {
30613
30688
  lineHeight: '1.4375em',
30614
30689
  padding: 0,
30615
30690
  position: 'relative',
30616
30691
  [`&.${formLabelClasses$1.focused}`]: {
30617
- color: theme.palette[ownerState.color].main
30692
+ color: (theme.vars || theme).palette[ownerState.color].main
30618
30693
  },
30619
30694
  [`&.${formLabelClasses$1.disabled}`]: {
30620
- color: theme.palette.text.disabled
30695
+ color: (theme.vars || theme).palette.text.disabled
30621
30696
  },
30622
30697
  [`&.${formLabelClasses$1.error}`]: {
30623
- color: theme.palette.error.main
30698
+ color: (theme.vars || theme).palette.error.main
30624
30699
  }
30625
30700
  }));
30626
30701
  const AsteriskComponent = styled$1('span', {
@@ -30631,7 +30706,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30631
30706
  theme
30632
30707
  }) => ({
30633
30708
  [`&.${formLabelClasses$1.error}`]: {
30634
- color: theme.palette.error.main
30709
+ color: (theme.vars || theme).palette.error.main
30635
30710
  }
30636
30711
  }));
30637
30712
  const FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(inProps, ref) {
@@ -32320,14 +32395,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32320
32395
  }[ownerState.fontSize],
32321
32396
  // TODO v5 deprecate, v6 remove for sx
32322
32397
  color: {
32323
- primary: theme.palette.primary.main,
32324
- secondary: theme.palette.secondary.main,
32325
- info: theme.palette.info.main,
32326
- success: theme.palette.success.main,
32327
- warning: theme.palette.warning.main,
32328
- action: theme.palette.action.active,
32329
- error: theme.palette.error.main,
32330
- disabled: theme.palette.action.disabled,
32398
+ primary: (theme.vars || theme).palette.primary.main,
32399
+ secondary: (theme.vars || theme).palette.secondary.main,
32400
+ info: (theme.vars || theme).palette.info.main,
32401
+ success: (theme.vars || theme).palette.success.main,
32402
+ warning: (theme.vars || theme).palette.warning.main,
32403
+ action: (theme.vars || theme).palette.action.active,
32404
+ error: (theme.vars || theme).palette.error.main,
32405
+ disabled: (theme.vars || theme).palette.action.disabled,
32331
32406
  inherit: undefined
32332
32407
  }[ownerState.color]
32333
32408
  }));
@@ -32864,7 +32939,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32864
32939
  return _extends({
32865
32940
  flexGrow: 1,
32866
32941
  padding: '12px 16px',
32867
- color: theme.palette.common.white,
32942
+ color: (theme.vars || theme).palette.common.white,
32868
32943
  overflow: 'hidden'
32869
32944
  }, ownerState.position === 'below' && {
32870
32945
  padding: '6px 0 12px',
@@ -33053,7 +33128,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33053
33128
  ownerState
33054
33129
  }) => {
33055
33130
  const light = theme.palette.mode === 'light';
33056
- const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
33131
+ let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
33132
+
33133
+ if (theme.vars) {
33134
+ bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputTouchBottomLine})`;
33135
+ }
33136
+
33057
33137
  return _extends({
33058
33138
  position: 'relative'
33059
33139
  }, ownerState.formControl && {
@@ -33062,7 +33142,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33062
33142
  }
33063
33143
  }, !ownerState.disableUnderline && {
33064
33144
  '&:after': {
33065
- borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
33145
+ borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
33066
33146
  left: 0,
33067
33147
  bottom: 0,
33068
33148
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -33083,7 +33163,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33083
33163
  transform: 'scaleX(1) translateX(0)'
33084
33164
  },
33085
33165
  [`&.${inputClasses$1.error}:after`]: {
33086
- borderBottomColor: theme.palette.error.main,
33166
+ borderBottomColor: (theme.vars || theme).palette.error.main,
33087
33167
  transform: 'scaleX(1)' // error is always underlined in red
33088
33168
 
33089
33169
  },
@@ -33102,7 +33182,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33102
33182
 
33103
33183
  },
33104
33184
  [`&:hover:not(.${inputClasses$1.disabled}):before`]: {
33105
- borderBottom: `2px solid ${theme.palette.text.primary}`,
33185
+ borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
33106
33186
  // Reset on touch devices, it doesn't add specificity
33107
33187
  '@media (hover: none)': {
33108
33188
  borderBottom: `1px solid ${bottomLineColor}`
@@ -33398,7 +33478,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33398
33478
  maxHeight: '2em',
33399
33479
  alignItems: 'center',
33400
33480
  whiteSpace: 'nowrap',
33401
- color: theme.palette.action.active
33481
+ color: (theme.vars || theme).palette.action.active
33402
33482
  }, ownerState.variant === 'filled' && {
33403
33483
  // Styles applied to the root element if `variant="filled"`.
33404
33484
  [`&.${inputAdornmentClasses$1.positionStart}&:not(.${inputAdornmentClasses$1.hiddenLabel})`]: {
@@ -34209,7 +34289,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34209
34289
  });
34210
34290
  });
34211
34291
  const Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
34212
- const theme = useTheme();
34213
34292
  const props = useThemeProps({
34214
34293
  props: inProps,
34215
34294
  name: 'MuiLink'
@@ -34228,7 +34307,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34228
34307
  } = props,
34229
34308
  other = _objectWithoutPropertiesLoose(props, _excluded$10);
34230
34309
 
34231
- const sxColor = typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color;
34232
34310
  const {
34233
34311
  isFocusVisibleRef,
34234
34312
  onBlur: handleBlurVisible,
@@ -34263,9 +34341,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34263
34341
  };
34264
34342
 
34265
34343
  const ownerState = _extends({}, props, {
34266
- // It is too complex to support any types of `sx`.
34267
- // Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
34268
- color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
34344
+ color,
34269
34345
  component,
34270
34346
  focusVisible,
34271
34347
  underline,
@@ -34283,8 +34359,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34283
34359
  ref: handlerRef,
34284
34360
  ownerState: ownerState,
34285
34361
  variant: variant,
34286
- sx: [...(inProps.color ? [{
34287
- color: colorTransformations[color] || color
34362
+ sx: [...(!Object.keys(colorTransformations).includes(color) ? [{
34363
+ color
34288
34364
  }] : []), ...(Array.isArray(sx) ? sx : [sx])]
34289
34365
  }, other));
34290
34366
  });
@@ -34572,33 +34648,33 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34572
34648
  }),
34573
34649
  '&:hover': {
34574
34650
  textDecoration: 'none',
34575
- backgroundColor: theme.palette.action.hover,
34651
+ backgroundColor: (theme.vars || theme).palette.action.hover,
34576
34652
  // Reset on touch devices, it doesn't add specificity
34577
34653
  '@media (hover: none)': {
34578
34654
  backgroundColor: 'transparent'
34579
34655
  }
34580
34656
  },
34581
34657
  [`&.${listItemButtonClasses$1.selected}`]: {
34582
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34658
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34583
34659
  [`&.${listItemButtonClasses$1.focusVisible}`]: {
34584
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34660
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34585
34661
  }
34586
34662
  },
34587
34663
  [`&.${listItemButtonClasses$1.selected}:hover`]: {
34588
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
34664
+ 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),
34589
34665
  // Reset on touch devices, it doesn't add specificity
34590
34666
  '@media (hover: none)': {
34591
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34667
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34592
34668
  }
34593
34669
  },
34594
34670
  [`&.${listItemButtonClasses$1.focusVisible}`]: {
34595
- backgroundColor: theme.palette.action.focus
34671
+ backgroundColor: (theme.vars || theme).palette.action.focus
34596
34672
  },
34597
34673
  [`&.${listItemButtonClasses$1.disabled}`]: {
34598
- opacity: theme.palette.action.disabledOpacity
34674
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
34599
34675
  }
34600
34676
  }, ownerState.divider && {
34601
- borderBottom: `1px solid ${theme.palette.divider}`,
34677
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
34602
34678
  backgroundClip: 'padding-box'
34603
34679
  }, ownerState.alignItems === 'flex-start' && {
34604
34680
  alignItems: 'flex-start'
@@ -34915,21 +34991,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34915
34991
  }
34916
34992
  }, {
34917
34993
  [`&.${listItemClasses$1.focusVisible}`]: {
34918
- backgroundColor: theme.palette.action.focus
34994
+ backgroundColor: (theme.vars || theme).palette.action.focus
34919
34995
  },
34920
34996
  [`&.${listItemClasses$1.selected}`]: {
34921
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34997
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34922
34998
  [`&.${listItemClasses$1.focusVisible}`]: {
34923
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34999
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34924
35000
  }
34925
35001
  },
34926
35002
  [`&.${listItemClasses$1.disabled}`]: {
34927
- opacity: theme.palette.action.disabledOpacity
35003
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
34928
35004
  }
34929
35005
  }, ownerState.alignItems === 'flex-start' && {
34930
35006
  alignItems: 'flex-start'
34931
35007
  }, ownerState.divider && {
34932
- borderBottom: `1px solid ${theme.palette.divider}`,
35008
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
34933
35009
  backgroundClip: 'padding-box'
34934
35010
  }, ownerState.button && {
34935
35011
  transition: theme.transitions.create('background-color', {
@@ -34937,17 +35013,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34937
35013
  }),
34938
35014
  '&:hover': {
34939
35015
  textDecoration: 'none',
34940
- backgroundColor: theme.palette.action.hover,
35016
+ backgroundColor: (theme.vars || theme).palette.action.hover,
34941
35017
  // Reset on touch devices, it doesn't add specificity
34942
35018
  '@media (hover: none)': {
34943
35019
  backgroundColor: 'transparent'
34944
35020
  }
34945
35021
  },
34946
35022
  [`&.${listItemClasses$1.selected}:hover`]: {
34947
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
35023
+ 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),
34948
35024
  // Reset on touch devices, it doesn't add specificity
34949
35025
  '@media (hover: none)': {
34950
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
35026
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34951
35027
  }
34952
35028
  }
34953
35029
  }, ownerState.hasSecondaryAction && {
@@ -35380,7 +35456,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35380
35456
  ownerState
35381
35457
  }) => _extends({
35382
35458
  minWidth: 56,
35383
- color: theme.palette.action.active,
35459
+ color: (theme.vars || theme).palette.action.active,
35384
35460
  flexShrink: 0,
35385
35461
  display: 'inline-flex'
35386
35462
  }, ownerState.alignItems === 'flex-start' && {
@@ -36760,35 +36836,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36760
36836
  paddingLeft: 16,
36761
36837
  paddingRight: 16
36762
36838
  }, ownerState.divider && {
36763
- borderBottom: `1px solid ${theme.palette.divider}`,
36839
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
36764
36840
  backgroundClip: 'padding-box'
36765
36841
  }, {
36766
36842
  '&:hover': {
36767
36843
  textDecoration: 'none',
36768
- backgroundColor: theme.palette.action.hover,
36844
+ backgroundColor: (theme.vars || theme).palette.action.hover,
36769
36845
  // Reset on touch devices, it doesn't add specificity
36770
36846
  '@media (hover: none)': {
36771
36847
  backgroundColor: 'transparent'
36772
36848
  }
36773
36849
  },
36774
36850
  [`&.${menuItemClasses$1.selected}`]: {
36775
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
36851
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
36776
36852
  [`&.${menuItemClasses$1.focusVisible}`]: {
36777
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
36853
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
36778
36854
  }
36779
36855
  },
36780
36856
  [`&.${menuItemClasses$1.selected}:hover`]: {
36781
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
36857
+ 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),
36782
36858
  // Reset on touch devices, it doesn't add specificity
36783
36859
  '@media (hover: none)': {
36784
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
36860
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
36785
36861
  }
36786
36862
  },
36787
36863
  [`&.${menuItemClasses$1.focusVisible}`]: {
36788
- backgroundColor: theme.palette.action.focus
36864
+ backgroundColor: (theme.vars || theme).palette.action.focus
36789
36865
  },
36790
36866
  [`&.${menuItemClasses$1.disabled}`]: {
36791
- opacity: theme.palette.action.disabledOpacity
36867
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
36792
36868
  },
36793
36869
  [`& + .${dividerClasses$1.root}`]: {
36794
36870
  marginTop: theme.spacing(1),
@@ -37012,20 +37088,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37012
37088
  flexDirection: 'row',
37013
37089
  justifyContent: 'space-between',
37014
37090
  alignItems: 'center',
37015
- background: theme.palette.background.default,
37091
+ background: (theme.vars || theme).palette.background.default,
37016
37092
  padding: 8
37017
37093
  }, ownerState.position === 'bottom' && {
37018
37094
  position: 'fixed',
37019
37095
  bottom: 0,
37020
37096
  left: 0,
37021
37097
  right: 0,
37022
- zIndex: theme.zIndex.mobileStepper
37098
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
37023
37099
  }, ownerState.position === 'top' && {
37024
37100
  position: 'fixed',
37025
37101
  top: 0,
37026
37102
  left: 0,
37027
37103
  right: 0,
37028
- zIndex: theme.zIndex.mobileStepper
37104
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
37029
37105
  }));
37030
37106
  const MobileStepperDots = styled$1('div', {
37031
37107
  name: 'MuiMobileStepper',
@@ -37055,13 +37131,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37055
37131
  transition: theme.transitions.create('background-color', {
37056
37132
  duration: theme.transitions.duration.shortest
37057
37133
  }),
37058
- backgroundColor: theme.palette.action.disabled,
37134
+ backgroundColor: (theme.vars || theme).palette.action.disabled,
37059
37135
  borderRadius: '50%',
37060
37136
  width: 8,
37061
37137
  height: 8,
37062
37138
  margin: '0 2px'
37063
37139
  }, dotActive && {
37064
- backgroundColor: theme.palette.primary.main
37140
+ backgroundColor: (theme.vars || theme).palette.primary.main
37065
37141
  })));
37066
37142
  const MobileStepperProgress = styled$1(LinearProgress$1, {
37067
37143
  name: 'MuiMobileStepper',
@@ -38186,10 +38262,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38186
38262
  minWidth: 32,
38187
38263
  padding: '0 6px',
38188
38264
  margin: '0 3px',
38189
- color: theme.palette.text.primary,
38265
+ color: (theme.vars || theme).palette.text.primary,
38190
38266
  height: 'auto',
38191
38267
  [`&.${paginationItemClasses$1.disabled}`]: {
38192
- opacity: theme.palette.action.disabledOpacity
38268
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
38193
38269
  }
38194
38270
  }, ownerState.size === 'small' && {
38195
38271
  minWidth: 26,
@@ -38217,39 +38293,39 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38217
38293
  height: 32,
38218
38294
  padding: '0 6px',
38219
38295
  margin: '0 3px',
38220
- color: theme.palette.text.primary,
38296
+ color: (theme.vars || theme).palette.text.primary,
38221
38297
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38222
- backgroundColor: theme.palette.action.focus
38298
+ backgroundColor: (theme.vars || theme).palette.action.focus
38223
38299
  },
38224
38300
  [`&.${paginationItemClasses$1.disabled}`]: {
38225
- opacity: theme.palette.action.disabledOpacity
38301
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
38226
38302
  },
38227
38303
  transition: theme.transitions.create(['color', 'background-color'], {
38228
38304
  duration: theme.transitions.duration.short
38229
38305
  }),
38230
38306
  '&:hover': {
38231
- backgroundColor: theme.palette.action.hover,
38307
+ backgroundColor: (theme.vars || theme).palette.action.hover,
38232
38308
  // Reset on touch devices, it doesn't add specificity
38233
38309
  '@media (hover: none)': {
38234
38310
  backgroundColor: 'transparent'
38235
38311
  }
38236
38312
  },
38237
38313
  [`&.${paginationItemClasses$1.selected}`]: {
38238
- backgroundColor: theme.palette.action.selected,
38314
+ backgroundColor: (theme.vars || theme).palette.action.selected,
38239
38315
  '&:hover': {
38240
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
38316
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
38241
38317
  // Reset on touch devices, it doesn't add specificity
38242
38318
  '@media (hover: none)': {
38243
- backgroundColor: theme.palette.action.selected
38319
+ backgroundColor: (theme.vars || theme).palette.action.selected
38244
38320
  }
38245
38321
  },
38246
38322
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38247
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
38323
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
38248
38324
  },
38249
38325
  [`&.${paginationItemClasses$1.disabled}`]: {
38250
38326
  opacity: 1,
38251
- color: theme.palette.action.disabled,
38252
- backgroundColor: theme.palette.action.selected
38327
+ color: (theme.vars || theme).palette.action.disabled,
38328
+ backgroundColor: (theme.vars || theme).palette.action.selected
38253
38329
  }
38254
38330
  }
38255
38331
  }, ownerState.size === 'small' && {
@@ -38265,49 +38341,49 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38265
38341
  padding: '0 10px',
38266
38342
  fontSize: theme.typography.pxToRem(15)
38267
38343
  }, ownerState.shape === 'rounded' && {
38268
- borderRadius: theme.shape.borderRadius
38344
+ borderRadius: (theme.vars || theme).shape.borderRadius
38269
38345
  }), ({
38270
38346
  theme,
38271
38347
  ownerState
38272
38348
  }) => _extends({}, ownerState.variant === 'text' && {
38273
38349
  [`&.${paginationItemClasses$1.selected}`]: _extends({}, ownerState.color !== 'standard' && {
38274
- color: theme.palette[ownerState.color].contrastText,
38275
- backgroundColor: theme.palette[ownerState.color].main,
38350
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
38351
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
38276
38352
  '&:hover': {
38277
- backgroundColor: theme.palette[ownerState.color].dark,
38353
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
38278
38354
  // Reset on touch devices, it doesn't add specificity
38279
38355
  '@media (hover: none)': {
38280
- backgroundColor: theme.palette[ownerState.color].main
38356
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
38281
38357
  }
38282
38358
  },
38283
38359
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38284
- backgroundColor: theme.palette[ownerState.color].dark
38360
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
38285
38361
  }
38286
38362
  }, {
38287
38363
  [`&.${paginationItemClasses$1.disabled}`]: {
38288
- color: theme.palette.action.disabled
38364
+ color: (theme.vars || theme).palette.action.disabled
38289
38365
  }
38290
38366
  })
38291
38367
  }, ownerState.variant === 'outlined' && {
38292
- border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
38368
+ border: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
38293
38369
  [`&.${paginationItemClasses$1.selected}`]: _extends({}, ownerState.color !== 'standard' && {
38294
- color: theme.palette[ownerState.color].main,
38295
- border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`,
38296
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
38370
+ color: (theme.vars || theme).palette[ownerState.color].main,
38371
+ border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)}`,
38372
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
38297
38373
  '&:hover': {
38298
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
38374
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
38299
38375
  // Reset on touch devices, it doesn't add specificity
38300
38376
  '@media (hover: none)': {
38301
38377
  backgroundColor: 'transparent'
38302
38378
  }
38303
38379
  },
38304
38380
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38305
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
38381
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
38306
38382
  }
38307
38383
  }, {
38308
38384
  [`&.${paginationItemClasses$1.disabled}`]: {
38309
- borderColor: theme.palette.action.disabledBackground,
38310
- color: theme.palette.action.disabled
38385
+ borderColor: (theme.vars || theme).palette.action.disabledBackground,
38386
+ color: (theme.vars || theme).palette.action.disabled
38311
38387
  }
38312
38388
  })
38313
38389
  }));
@@ -39279,7 +39355,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39279
39355
  textAlign: 'left',
39280
39356
  WebkitTapHighlightColor: 'transparent',
39281
39357
  [`&.${ratingClasses$1.disabled}`]: {
39282
- opacity: theme.palette.action.disabledOpacity,
39358
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
39283
39359
  pointerEvents: 'none'
39284
39360
  },
39285
39361
  [`&.${ratingClasses$1.focusVisible} .${ratingClasses$1.iconActive}`]: {
@@ -39332,7 +39408,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39332
39408
  }, ownerState.iconActive && {
39333
39409
  transform: 'scale(1.2)'
39334
39410
  }, ownerState.iconEmpty && {
39335
- color: theme.palette.action.disabled
39411
+ color: (theme.vars || theme).palette.action.disabled
39336
39412
  }));
39337
39413
  const RatingDecimal = styled$1('span', {
39338
39414
  name: 'MuiRating',
@@ -42156,7 +42232,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42156
42232
  });
42157
42233
 
42158
42234
  return _extends({
42159
- zIndex: theme.zIndex.snackbar,
42235
+ zIndex: (theme.vars || theme).zIndex.snackbar,
42160
42236
  position: 'fixed',
42161
42237
  display: 'flex',
42162
42238
  left: 8,
@@ -42852,7 +42928,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42852
42928
  theme,
42853
42929
  ownerState
42854
42930
  }) => _extends({
42855
- zIndex: theme.zIndex.speedDial,
42931
+ zIndex: (theme.vars || theme).zIndex.speedDial,
42856
42932
  display: 'flex',
42857
42933
  alignItems: 'center',
42858
42934
  pointerEvents: 'none'
@@ -43382,7 +43458,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43382
43458
  ownerState,
43383
43459
  open
43384
43460
  }) => _extends({
43385
- zIndex: theme.zIndex.tooltip,
43461
+ zIndex: (theme.vars || theme).zIndex.tooltip,
43386
43462
  pointerEvents: 'none'
43387
43463
  }, !ownerState.disableInteractive && {
43388
43464
  pointerEvents: 'auto'
@@ -43443,9 +43519,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43443
43519
  theme,
43444
43520
  ownerState
43445
43521
  }) => _extends({
43446
- backgroundColor: alpha(theme.palette.grey[700], 0.92),
43447
- borderRadius: theme.shape.borderRadius,
43448
- color: theme.palette.common.white,
43522
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.92)` : alpha(theme.palette.grey[700], 0.92),
43523
+ borderRadius: (theme.vars || theme).shape.borderRadius,
43524
+ color: (theme.vars || theme).palette.common.white,
43449
43525
  fontFamily: theme.typography.fontFamily,
43450
43526
  padding: '4px 8px',
43451
43527
  fontSize: theme.typography.pxToRem(11),
@@ -43511,7 +43587,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43511
43587
  /* = width / sqrt(2) = (length of the hypotenuse) */
43512
43588
  ,
43513
43589
  boxSizing: 'border-box',
43514
- color: alpha(theme.palette.grey[700], 0.9),
43590
+ color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : alpha(theme.palette.grey[700], 0.9),
43515
43591
  '&::before': {
43516
43592
  content: '""',
43517
43593
  margin: 'auto',
@@ -44715,15 +44791,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44715
44791
  var Stack$1 = Stack;
44716
44792
 
44717
44793
  /**
44718
- * @ignore - internal component.
44794
+ * Provides information about the current step in Stepper.
44719
44795
  */
44720
-
44721
44796
  const StepperContext = /*#__PURE__*/React__namespace.createContext({});
44722
44797
 
44723
44798
  {
44724
44799
  StepperContext.displayName = 'StepperContext';
44725
44800
  }
44801
+ /**
44802
+ * Returns the current StepperContext or an empty object if no StepperContext
44803
+ * has been defined in the component tree.
44804
+ */
44805
+
44726
44806
 
44807
+ function useStepperContext() {
44808
+ return React__namespace.useContext(StepperContext);
44809
+ }
44727
44810
  var StepperContext$1 = StepperContext;
44728
44811
 
44729
44812
  /**
@@ -44962,15 +45045,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44962
45045
  transition: theme.transitions.create('color', {
44963
45046
  duration: theme.transitions.duration.shortest
44964
45047
  }),
44965
- color: theme.palette.text.disabled,
45048
+ color: (theme.vars || theme).palette.text.disabled,
44966
45049
  [`&.${stepIconClasses$1.completed}`]: {
44967
- color: theme.palette.primary.main
45050
+ color: (theme.vars || theme).palette.primary.main
44968
45051
  },
44969
45052
  [`&.${stepIconClasses$1.active}`]: {
44970
- color: theme.palette.primary.main
45053
+ color: (theme.vars || theme).palette.primary.main
44971
45054
  },
44972
45055
  [`&.${stepIconClasses$1.error}`]: {
44973
- color: theme.palette.error.main
45056
+ color: (theme.vars || theme).palette.error.main
44974
45057
  }
44975
45058
  }));
44976
45059
  const StepIconText = styled$1('text', {
@@ -44980,7 +45063,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44980
45063
  })(({
44981
45064
  theme
44982
45065
  }) => ({
44983
- fill: theme.palette.primary.contrastText,
45066
+ fill: (theme.vars || theme).palette.primary.contrastText,
44984
45067
  fontSize: theme.typography.caption.fontSize,
44985
45068
  fontFamily: theme.typography.fontFamily
44986
45069
  }));
@@ -45161,11 +45244,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45161
45244
  duration: theme.transitions.duration.shortest
45162
45245
  }),
45163
45246
  [`&.${stepLabelClasses$1.active}`]: {
45164
- color: theme.palette.text.primary,
45247
+ color: (theme.vars || theme).palette.text.primary,
45165
45248
  fontWeight: 500
45166
45249
  },
45167
45250
  [`&.${stepLabelClasses$1.completed}`]: {
45168
- color: theme.palette.text.primary,
45251
+ color: (theme.vars || theme).palette.text.primary,
45169
45252
  fontWeight: 500
45170
45253
  },
45171
45254
  [`&.${stepLabelClasses$1.alternativeLabel}`]: {
@@ -45173,7 +45256,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45173
45256
  marginTop: 16
45174
45257
  },
45175
45258
  [`&.${stepLabelClasses$1.error}`]: {
45176
- color: theme.palette.error.main
45259
+ color: (theme.vars || theme).palette.error.main
45177
45260
  }
45178
45261
  }));
45179
45262
  const StepLabelIconContainer = styled$1('span', {
@@ -45197,7 +45280,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45197
45280
  theme
45198
45281
  }) => ({
45199
45282
  width: '100%',
45200
- color: theme.palette.text.secondary
45283
+ color: (theme.vars || theme).palette.text.secondary
45201
45284
  }));
45202
45285
  const StepLabel = /*#__PURE__*/React__namespace.forwardRef(function StepLabel(inProps, ref) {
45203
45286
  const props = useThemeProps({
@@ -47012,23 +47095,23 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47012
47095
  opacity: 1
47013
47096
  },
47014
47097
  [`&.${tabClasses$1.disabled}`]: {
47015
- opacity: theme.palette.action.disabledOpacity
47098
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
47016
47099
  }
47017
47100
  }, ownerState.textColor === 'primary' && {
47018
- color: theme.palette.text.secondary,
47101
+ color: (theme.vars || theme).palette.text.secondary,
47019
47102
  [`&.${tabClasses$1.selected}`]: {
47020
- color: theme.palette.primary.main
47103
+ color: (theme.vars || theme).palette.primary.main
47021
47104
  },
47022
47105
  [`&.${tabClasses$1.disabled}`]: {
47023
- color: theme.palette.text.disabled
47106
+ color: (theme.vars || theme).palette.text.disabled
47024
47107
  }
47025
47108
  }, ownerState.textColor === 'secondary' && {
47026
- color: theme.palette.text.secondary,
47109
+ color: (theme.vars || theme).palette.text.secondary,
47027
47110
  [`&.${tabClasses$1.selected}`]: {
47028
- color: theme.palette.secondary.main
47111
+ color: (theme.vars || theme).palette.secondary.main
47029
47112
  },
47030
47113
  [`&.${tabClasses$1.disabled}`]: {
47031
- color: theme.palette.text.disabled
47114
+ color: (theme.vars || theme).palette.text.disabled
47032
47115
  }
47033
47116
  }, ownerState.fullWidth && {
47034
47117
  flexShrink: 1,
@@ -47270,7 +47353,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47270
47353
  borderSpacing: 0,
47271
47354
  '& caption': _extends({}, theme.typography.body2, {
47272
47355
  padding: theme.spacing(2),
47273
- color: theme.palette.text.secondary,
47356
+ color: (theme.vars || theme).palette.text.secondary,
47274
47357
  textAlign: 'left',
47275
47358
  captionSide: 'bottom'
47276
47359
  })
@@ -48257,7 +48340,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48257
48340
  theme
48258
48341
  }) => ({
48259
48342
  overflow: 'auto',
48260
- color: theme.palette.text.primary,
48343
+ color: (theme.vars || theme).palette.text.primary,
48261
48344
  fontSize: theme.typography.pxToRem(14),
48262
48345
  // Increase the specificity to override TableCell.
48263
48346
  '&:last-child': {
@@ -48688,12 +48771,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48688
48771
  // We disable the focus ring for mouse, touch and keyboard users.
48689
48772
  outline: 0,
48690
48773
  [`&.${tableRowClasses$1.hover}:hover`]: {
48691
- backgroundColor: theme.palette.action.hover
48774
+ backgroundColor: (theme.vars || theme).palette.action.hover
48692
48775
  },
48693
48776
  [`&.${tableRowClasses$1.selected}`]: {
48694
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
48777
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
48695
48778
  '&:hover': {
48696
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
48779
+ 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)
48697
48780
  }
48698
48781
  }
48699
48782
  }));
@@ -48827,19 +48910,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48827
48910
  flexDirection: 'inherit',
48828
48911
  alignItems: 'center',
48829
48912
  '&:focus': {
48830
- color: theme.palette.text.secondary
48913
+ color: (theme.vars || theme).palette.text.secondary
48831
48914
  },
48832
48915
  '&:hover': {
48833
- color: theme.palette.text.secondary,
48916
+ color: (theme.vars || theme).palette.text.secondary,
48834
48917
  [`& .${tableSortLabelClasses$1.icon}`]: {
48835
48918
  opacity: 0.5
48836
48919
  }
48837
48920
  },
48838
48921
  [`&.${tableSortLabelClasses$1.active}`]: {
48839
- color: theme.palette.text.primary,
48922
+ color: (theme.vars || theme).palette.text.primary,
48840
48923
  [`& .${tableSortLabelClasses$1.icon}`]: {
48841
48924
  opacity: 1,
48842
- color: theme.palette.text.secondary
48925
+ color: (theme.vars || theme).palette.text.secondary
48843
48926
  }
48844
48927
  }
48845
48928
  }));
@@ -49377,9 +49460,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49377
49460
  width: '100%',
49378
49461
  transition: theme.transitions.create()
49379
49462
  }, ownerState.indicatorColor === 'primary' && {
49380
- backgroundColor: theme.palette.primary.main
49463
+ backgroundColor: (theme.vars || theme).palette.primary.main
49381
49464
  }, ownerState.indicatorColor === 'secondary' && {
49382
- backgroundColor: theme.palette.secondary.main
49465
+ backgroundColor: (theme.vars || theme).palette.secondary.main
49383
49466
  }, ownerState.vertical && {
49384
49467
  height: '100%',
49385
49468
  width: 2,
@@ -50490,35 +50573,42 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50490
50573
  theme,
50491
50574
  ownerState
50492
50575
  }) => {
50493
- const selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
50576
+ let selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
50577
+ let selectedColorChannel;
50578
+
50579
+ if (theme.vars) {
50580
+ selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
50581
+ selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
50582
+ }
50583
+
50494
50584
  return _extends({}, theme.typography.button, {
50495
- borderRadius: theme.shape.borderRadius,
50585
+ borderRadius: (theme.vars || theme).shape.borderRadius,
50496
50586
  padding: 11,
50497
- border: `1px solid ${theme.palette.divider}`,
50498
- color: theme.palette.action.active
50587
+ border: `1px solid ${(theme.vars || theme).palette.divider}`,
50588
+ color: (theme.vars || theme).palette.action.active
50499
50589
  }, ownerState.fullWidth && {
50500
50590
  width: '100%'
50501
50591
  }, {
50502
50592
  [`&.${toggleButtonClasses$1.disabled}`]: {
50503
- color: theme.palette.action.disabled,
50504
- border: `1px solid ${theme.palette.action.disabledBackground}`
50593
+ color: (theme.vars || theme).palette.action.disabled,
50594
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
50505
50595
  },
50506
50596
  '&:hover': {
50507
50597
  textDecoration: 'none',
50508
50598
  // Reset on mouse devices
50509
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
50599
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
50510
50600
  '@media (hover: none)': {
50511
50601
  backgroundColor: 'transparent'
50512
50602
  }
50513
50603
  },
50514
50604
  [`&.${toggleButtonClasses$1.selected}`]: {
50515
50605
  color: selectedColor,
50516
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity),
50606
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity),
50517
50607
  '&:hover': {
50518
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
50608
+ 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),
50519
50609
  // Reset on touch devices, it doesn't add specificity
50520
50610
  '@media (hover: none)': {
50521
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity)
50611
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity)
50522
50612
  }
50523
50613
  }
50524
50614
  }
@@ -50746,7 +50836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50746
50836
  theme
50747
50837
  }) => _extends({
50748
50838
  display: 'inline-flex',
50749
- borderRadius: theme.shape.borderRadius
50839
+ borderRadius: (theme.vars || theme).shape.borderRadius
50750
50840
  }, ownerState.orientation === 'vertical' && {
50751
50841
  flexDirection: 'column'
50752
50842
  }, ownerState.fullWidth && {
@@ -51126,6 +51216,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51126
51216
  exports.StepIcon = StepIcon$1;
51127
51217
  exports.StepLabel = StepLabel$1;
51128
51218
  exports.Stepper = Stepper$1;
51219
+ exports.StepperContext = StepperContext$1;
51129
51220
  exports.StyledEngineProvider = StyledEngineProvider;
51130
51221
  exports.SvgIcon = SvgIcon$1;
51131
51222
  exports.SwipeableDrawer = SwipeableDrawer$1;
@@ -51189,7 +51280,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51189
51280
  exports.createMuiTheme = createMuiTheme;
51190
51281
  exports.createStyles = createStyles;
51191
51282
  exports.createSvgIcon = createSvgIcon;
51192
- exports.createTheme = createTheme$1;
51283
+ exports.createTheme = createTheme;
51193
51284
  exports.css = css;
51194
51285
  exports.darkScrollbar = darkScrollbar;
51195
51286
  exports.darken = darken;
@@ -51207,7 +51298,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51207
51298
  exports.easing = easing;
51208
51299
  exports.emphasize = emphasize;
51209
51300
  exports.experimentalStyled = styled$1;
51210
- exports.experimental_extendTheme = createTheme;
51301
+ exports.experimental_extendTheme = extendTheme;
51211
51302
  exports.experimental_sx = sx;
51212
51303
  exports.fabClasses = fabClasses$1;
51213
51304
  exports.filledInputClasses = filledInputClasses$1;
@@ -51436,6 +51527,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51436
51527
  exports.useRadioGroup = useRadioGroup;
51437
51528
  exports.useScrollTrigger = useScrollTrigger;
51438
51529
  exports.useStepContext = useStepContext;
51530
+ exports.useStepperContext = useStepperContext;
51439
51531
  exports.useTheme = useTheme;
51440
51532
  exports.useThemeProps = useThemeProps;
51441
51533
  exports.withStyles = withStyles;