@mui/material 5.8.4 → 5.8.5

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 (235) 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/AppBar.js +22 -5
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/Avatar.js +7 -4
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/Backdrop/backdropClasses.d.ts +10 -10
  14. package/Badge/Badge.js +2 -2
  15. package/Badge/badgeClasses.d.ts +56 -56
  16. package/BottomNavigation/BottomNavigation.js +0 -0
  17. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  18. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  19. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  20. package/Button/buttonClasses.d.ts +100 -100
  21. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  22. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +69 -4
  26. package/Card/cardClasses.d.ts +8 -8
  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/Chip.js +31 -30
  34. package/Chip/chipClasses.d.ts +80 -80
  35. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  36. package/ClickAwayListener/index.d.ts +2 -2
  37. package/Collapse/collapseClasses.d.ts +18 -18
  38. package/Container/containerClasses.d.ts +6 -6
  39. package/Dialog/Dialog.js +11 -6
  40. package/Dialog/DialogContext.d.ts +6 -6
  41. package/Dialog/dialogClasses.d.ts +36 -36
  42. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  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/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/FilledInput.js +28 -13
  50. package/FilledInput/filledInputClasses.d.ts +40 -40
  51. package/FormControl/formControlClasses.d.ts +14 -14
  52. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  53. package/FormGroup/formGroupClasses.d.ts +12 -12
  54. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  55. package/FormLabel/formLabelClasses.d.ts +22 -22
  56. package/Grid/gridClasses.d.ts +48 -48
  57. package/Icon/iconClasses.d.ts +24 -24
  58. package/IconButton/iconButtonClasses.d.ts +26 -26
  59. package/ImageList/imageListClasses.d.ts +16 -16
  60. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  61. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  62. package/Input/inputClasses.d.ts +34 -34
  63. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  64. package/InputBase/InputBase.js +2 -2
  65. package/InputBase/inputBaseClasses.d.ts +44 -44
  66. package/InputLabel/inputLabelClasses.d.ts +32 -32
  67. package/LinearProgress/LinearProgress.js +6 -2
  68. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  69. package/Link/getTextDecoration.d.ts +15 -15
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/Modal/Modal.d.ts +2 -0
  83. package/Modal/Modal.js +25 -8
  84. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  85. package/OutlinedInput/OutlinedInput.js +25 -10
  86. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  87. package/Pagination/paginationClasses.d.ts +14 -14
  88. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  89. package/Paper/paperClasses.d.ts +39 -39
  90. package/Popover/popoverClasses.d.ts +10 -10
  91. package/Popper/Popper.d.ts +29 -29
  92. package/Radio/radioClasses.d.ts +16 -16
  93. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  94. package/RadioGroup/useRadioGroup.d.ts +4 -4
  95. package/Rating/ratingClasses.d.ts +40 -40
  96. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  97. package/Select/selectClasses.d.ts +30 -30
  98. package/Skeleton/Skeleton.js +8 -3
  99. package/Skeleton/skeletonClasses.d.ts +24 -24
  100. package/Slider/Slider.js +12 -12
  101. package/Snackbar/snackbarClasses.d.ts +20 -20
  102. package/SnackbarContent/SnackbarContent.js +3 -3
  103. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  104. package/SpeedDial/speedDialClasses.d.ts +22 -22
  105. package/SpeedDialAction/SpeedDialAction.js +7 -7
  106. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  107. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  108. package/Step/StepContext.d.ts +20 -20
  109. package/Step/stepClasses.d.ts +16 -16
  110. package/StepButton/stepButtonClasses.d.ts +14 -14
  111. package/StepConnector/StepConnector.js +14 -11
  112. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  113. package/StepContent/StepContent.js +1 -1
  114. package/StepContent/stepContentClasses.d.ts +12 -12
  115. package/StepIcon/stepIconClasses.d.ts +16 -16
  116. package/StepLabel/stepLabelClasses.d.ts +28 -28
  117. package/Stepper/StepperContext.d.ts +18 -18
  118. package/Stepper/stepperClasses.d.ts +14 -14
  119. package/SvgIcon/svgIconClasses.d.ts +24 -24
  120. package/Switch/Switch.js +11 -11
  121. package/Switch/switchClasses.d.ts +32 -32
  122. package/Tab/tabClasses.d.ts +26 -26
  123. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  124. package/Table/tableClasses.d.ts +10 -10
  125. package/TableBody/tableBodyClasses.d.ts +8 -8
  126. package/TableCell/TableCell.js +5 -5
  127. package/TableCell/tableCellClasses.d.ts +32 -32
  128. package/TableContainer/tableContainerClasses.d.ts +8 -8
  129. package/TableFooter/tableFooterClasses.d.ts +8 -8
  130. package/TableHead/tableHeadClasses.d.ts +8 -8
  131. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  132. package/TableRow/tableRowClasses.d.ts +16 -16
  133. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  134. package/Tabs/Tabs.js +6 -16
  135. package/Tabs/tabsClasses.d.ts +32 -32
  136. package/TextField/textFieldClasses.d.ts +8 -8
  137. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  138. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  139. package/Toolbar/toolbarClasses.d.ts +14 -14
  140. package/Tooltip/Tooltip.js +1 -1
  141. package/Tooltip/tooltipClasses.d.ts +30 -30
  142. package/Typography/typographyClasses.d.ts +50 -50
  143. package/className/index.d.ts +1 -1
  144. package/darkScrollbar/index.d.ts +28 -28
  145. package/index.js +1 -1
  146. package/internal/switchBaseClasses.d.ts +12 -12
  147. package/legacy/AppBar/AppBar.js +23 -4
  148. package/legacy/Avatar/Avatar.js +7 -4
  149. package/legacy/Badge/Badge.js +2 -2
  150. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  151. package/legacy/Chip/Chip.js +31 -30
  152. package/legacy/Dialog/Dialog.js +11 -6
  153. package/legacy/FilledInput/FilledInput.js +28 -14
  154. package/legacy/InputBase/InputBase.js +2 -2
  155. package/legacy/LinearProgress/LinearProgress.js +6 -2
  156. package/legacy/Modal/Modal.js +23 -7
  157. package/legacy/OutlinedInput/OutlinedInput.js +21 -9
  158. package/legacy/Skeleton/Skeleton.js +2 -2
  159. package/legacy/Slider/Slider.js +12 -12
  160. package/legacy/SnackbarContent/SnackbarContent.js +3 -3
  161. package/legacy/SpeedDialAction/SpeedDialAction.js +7 -7
  162. package/legacy/StepConnector/StepConnector.js +2 -1
  163. package/legacy/StepContent/StepContent.js +1 -1
  164. package/legacy/Switch/Switch.js +11 -11
  165. package/legacy/TableCell/TableCell.js +5 -5
  166. package/legacy/Tabs/Tabs.js +6 -16
  167. package/legacy/Tooltip/Tooltip.js +1 -1
  168. package/legacy/index.js +1 -1
  169. package/legacy/styles/CssVarsProvider.js +1 -1
  170. package/legacy/styles/experimental_extendTheme.js +113 -18
  171. package/locale/index.d.ts +71 -71
  172. package/modern/AppBar/AppBar.js +22 -5
  173. package/modern/Avatar/Avatar.js +7 -4
  174. package/modern/Badge/Badge.js +2 -2
  175. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  176. package/modern/Chip/Chip.js +31 -30
  177. package/modern/Dialog/Dialog.js +11 -6
  178. package/modern/FilledInput/FilledInput.js +27 -12
  179. package/modern/InputBase/InputBase.js +2 -2
  180. package/modern/LinearProgress/LinearProgress.js +6 -2
  181. package/modern/Modal/Modal.js +24 -7
  182. package/modern/OutlinedInput/OutlinedInput.js +25 -10
  183. package/modern/Skeleton/Skeleton.js +7 -2
  184. package/modern/Slider/Slider.js +12 -12
  185. package/modern/SnackbarContent/SnackbarContent.js +3 -3
  186. package/modern/SpeedDialAction/SpeedDialAction.js +7 -7
  187. package/modern/StepConnector/StepConnector.js +14 -11
  188. package/modern/StepContent/StepContent.js +1 -1
  189. package/modern/Switch/Switch.js +11 -11
  190. package/modern/TableCell/TableCell.js +5 -5
  191. package/modern/Tabs/Tabs.js +6 -16
  192. package/modern/Tooltip/Tooltip.js +1 -1
  193. package/modern/index.js +1 -1
  194. package/modern/styles/CssVarsProvider.js +1 -1
  195. package/modern/styles/experimental_extendTheme.js +114 -18
  196. package/node/AppBar/AppBar.js +22 -5
  197. package/node/Avatar/Avatar.js +7 -4
  198. package/node/Badge/Badge.js +2 -2
  199. package/node/BottomNavigation/BottomNavigation.js +0 -0
  200. package/node/Chip/Chip.js +31 -30
  201. package/node/Dialog/Dialog.js +11 -6
  202. package/node/FilledInput/FilledInput.js +28 -13
  203. package/node/InputBase/InputBase.js +2 -2
  204. package/node/LinearProgress/LinearProgress.js +6 -2
  205. package/node/Modal/Modal.js +25 -8
  206. package/node/OutlinedInput/OutlinedInput.js +25 -10
  207. package/node/Skeleton/Skeleton.js +7 -2
  208. package/node/Slider/Slider.js +12 -12
  209. package/node/SnackbarContent/SnackbarContent.js +3 -3
  210. package/node/SpeedDialAction/SpeedDialAction.js +7 -7
  211. package/node/StepConnector/StepConnector.js +14 -11
  212. package/node/StepContent/StepContent.js +1 -1
  213. package/node/Switch/Switch.js +11 -11
  214. package/node/TableCell/TableCell.js +5 -5
  215. package/node/Tabs/Tabs.js +6 -16
  216. package/node/Tooltip/Tooltip.js +1 -1
  217. package/node/index.js +1 -1
  218. package/node/styles/CssVarsProvider.js +1 -1
  219. package/node/styles/experimental_extendTheme.js +112 -17
  220. package/package.json +4 -4
  221. package/styles/CssVarsProvider.js +1 -1
  222. package/styles/createPalette.d.ts +65 -2
  223. package/styles/experimental_extendTheme.js +114 -18
  224. package/transitions/index.d.ts +1 -1
  225. package/transitions/transition.d.ts +13 -13
  226. package/transitions/utils.d.ts +23 -23
  227. package/umd/material-ui.development.js +548 -240
  228. package/umd/material-ui.production.min.js +27 -22
  229. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  230. package/useTouchRipple/index.d.ts +1 -1
  231. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  232. package/utils/getScrollbarSize.d.ts +2 -2
  233. package/utils/ownerDocument.d.ts +2 -2
  234. package/utils/ownerWindow.d.ts +2 -2
  235. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.8.4
1
+ /** @license MUI v5.8.5
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.
@@ -6455,7 +6455,7 @@
6455
6455
  styleFunctionSx.filterProps = ['sx'];
6456
6456
  var defaultStyleFunctionSx = styleFunctionSx;
6457
6457
 
6458
- const _excluded$2l = ["sx"];
6458
+ const _excluded$2m = ["sx"];
6459
6459
 
6460
6460
  const splitProps = props => {
6461
6461
  const result = {
@@ -6476,7 +6476,7 @@
6476
6476
  const {
6477
6477
  sx: inSx
6478
6478
  } = props,
6479
- other = _objectWithoutPropertiesLoose(props, _excluded$2l);
6479
+ other = _objectWithoutPropertiesLoose(props, _excluded$2m);
6480
6480
 
6481
6481
  const {
6482
6482
  systemProps,
@@ -6555,7 +6555,7 @@
6555
6555
  return str;
6556
6556
  }
6557
6557
 
6558
- const _excluded$2k = ["values", "unit", "step"];
6558
+ const _excluded$2l = ["values", "unit", "step"];
6559
6559
 
6560
6560
  const sortBreakpointsValues = values => {
6561
6561
  const breakpointsAsArray = Object.keys(values).map(key => ({
@@ -6591,7 +6591,7 @@
6591
6591
  unit = 'px',
6592
6592
  step = 5
6593
6593
  } = breakpoints,
6594
- other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2k);
6594
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2l);
6595
6595
 
6596
6596
  const sortedValues = sortBreakpointsValues(values);
6597
6597
  const keys = Object.keys(sortedValues);
@@ -6683,7 +6683,7 @@
6683
6683
  return spacing;
6684
6684
  }
6685
6685
 
6686
- const _excluded$2j = ["breakpoints", "palette", "spacing", "shape"];
6686
+ const _excluded$2k = ["breakpoints", "palette", "spacing", "shape"];
6687
6687
 
6688
6688
  function createTheme$1(options = {}, ...args) {
6689
6689
  const {
@@ -6692,7 +6692,7 @@
6692
6692
  spacing: spacingInput,
6693
6693
  shape: shapeInput = {}
6694
6694
  } = options,
6695
- other = _objectWithoutPropertiesLoose(options, _excluded$2j);
6695
+ other = _objectWithoutPropertiesLoose(options, _excluded$2k);
6696
6696
 
6697
6697
  const breakpoints = createBreakpoints(breakpointsInput);
6698
6698
  const spacing = createSpacing(spacingInput);
@@ -6814,7 +6814,7 @@
6814
6814
  return useTheme$2(defaultTheme);
6815
6815
  }
6816
6816
 
6817
- const _excluded$2i = ["className", "component"];
6817
+ const _excluded$2j = ["className", "component"];
6818
6818
  function createBox(options = {}) {
6819
6819
  const {
6820
6820
  defaultTheme,
@@ -6831,7 +6831,7 @@
6831
6831
  className,
6832
6832
  component = 'div'
6833
6833
  } = _extendSxProp,
6834
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2i);
6834
+ other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2j);
6835
6835
 
6836
6836
  return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
6837
6837
  as: component,
@@ -6843,7 +6843,7 @@
6843
6843
  return Box;
6844
6844
  }
6845
6845
 
6846
- const _excluded$2h = ["variant"];
6846
+ const _excluded$2i = ["variant"];
6847
6847
 
6848
6848
  function isEmpty$2(string) {
6849
6849
  return string.length === 0;
@@ -6859,7 +6859,7 @@
6859
6859
  const {
6860
6860
  variant
6861
6861
  } = props,
6862
- other = _objectWithoutPropertiesLoose(props, _excluded$2h);
6862
+ other = _objectWithoutPropertiesLoose(props, _excluded$2i);
6863
6863
 
6864
6864
  let classKey = variant || '';
6865
6865
  Object.keys(other).sort().forEach(key => {
@@ -6872,7 +6872,7 @@
6872
6872
  return classKey;
6873
6873
  }
6874
6874
 
6875
- const _excluded$2g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6875
+ const _excluded$2h = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6876
6876
  _excluded2$c = ["theme"],
6877
6877
  _excluded3$1 = ["theme"];
6878
6878
 
@@ -6955,7 +6955,7 @@
6955
6955
  skipSx: inputSkipSx,
6956
6956
  overridesResolver
6957
6957
  } = inputOptions,
6958
- options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2g); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6958
+ options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2h); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6959
6959
 
6960
6960
 
6961
6961
  const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
@@ -7926,7 +7926,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7926
7926
  return getCssVar;
7927
7927
  }
7928
7928
 
7929
- const _excluded$2f = ["colorSchemes", "components"];
7929
+ const _excluded$2g = ["colorSchemes", "components"];
7930
7930
  const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
7931
7931
  function createCssVarsProvider(options) {
7932
7932
  const {
@@ -7981,7 +7981,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7981
7981
  colorSchemes = {},
7982
7982
  components = {}
7983
7983
  } = themeProp,
7984
- restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2f);
7984
+ restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2g);
7985
7985
 
7986
7986
  const allColorSchemes = Object.keys(colorSchemes);
7987
7987
  const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
@@ -8238,7 +8238,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8238
8238
  };
8239
8239
  }
8240
8240
 
8241
- const _excluded$2e = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
8241
+ const _excluded$2f = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
8242
8242
  const defaultTheme$4 = createTheme$1();
8243
8243
  const defaultCreateStyledComponent = systemStyled('div', {
8244
8244
  name: 'MuiContainer',
@@ -8340,7 +8340,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8340
8340
  fixed = false,
8341
8341
  maxWidth = 'lg'
8342
8342
  } = props,
8343
- other = _objectWithoutPropertiesLoose(props, _excluded$2e);
8343
+ other = _objectWithoutPropertiesLoose(props, _excluded$2f);
8344
8344
 
8345
8345
  const ownerState = _extends({}, props, {
8346
8346
  component,
@@ -8380,7 +8380,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8380
8380
  return Container;
8381
8381
  }
8382
8382
 
8383
- const _excluded$2d = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8383
+ const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8384
8384
  _excluded2$b = ["type", "mode"];
8385
8385
  function adaptV4Theme(inputTheme) {
8386
8386
  {
@@ -8395,7 +8395,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8395
8395
  props = {},
8396
8396
  styleOverrides = {}
8397
8397
  } = inputTheme,
8398
- other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2d);
8398
+ other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2e);
8399
8399
 
8400
8400
  const theme = _extends({}, other, {
8401
8401
  components: {}
@@ -8485,6 +8485,154 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8485
8485
  });
8486
8486
  }
8487
8487
 
8488
+ /**
8489
+ * Extracts event handlers from a given object.
8490
+ * A prop is considered an event handler if it is a function and its name starts with `on`.
8491
+ *
8492
+ * @param object An object to extract event handlers from.
8493
+ * @param excludeKeys An array of keys to exclude from the returned object.
8494
+ */
8495
+ function extractEventHandlers(object, excludeKeys = []) {
8496
+ if (object === undefined) {
8497
+ return {};
8498
+ }
8499
+
8500
+ const result = {};
8501
+ Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {
8502
+ result[prop] = object[prop];
8503
+ });
8504
+ return result;
8505
+ }
8506
+
8507
+ /**
8508
+ * Creates a type that is T with removed properties that are functions with names beginning with `on`.
8509
+ * Note that it does not exactly follow the logic of `omitEventHandlers` as it also removes fields where
8510
+ * `on` is followed by a non-letter character,
8511
+ */
8512
+
8513
+ /**
8514
+ * Removes event handlers from the given object.
8515
+ * A field is considered an event handler if it is a function with a name beginning with `on`.
8516
+ *
8517
+ * @param object Object to remove event handlers from.
8518
+ * @returns Object with event handlers removed.
8519
+ */
8520
+ function omitEventHandlers(object) {
8521
+ if (object === undefined) {
8522
+ return {};
8523
+ }
8524
+
8525
+ const result = {};
8526
+ Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {
8527
+ result[prop] = object[prop];
8528
+ });
8529
+ return result;
8530
+ }
8531
+
8532
+ /**
8533
+ * Merges the slot component internal props (usually coming from a hook)
8534
+ * with the externally provided ones.
8535
+ *
8536
+ * The merge order is (the latter overrides the former):
8537
+ * 1. The internal props (specified as a getter function to work with get*Props hook result)
8538
+ * 2. Additional props (specified internally on an unstyled component)
8539
+ * 3. External props specified on the owner component. These should only be used on a root slot.
8540
+ * 4. External props specified in the `componentsProps.*` prop.
8541
+ * 5. The `className` prop - combined from all the above.
8542
+ * @param parameters
8543
+ * @returns
8544
+ */
8545
+ function mergeSlotProps(parameters) {
8546
+ const {
8547
+ getSlotProps,
8548
+ additionalProps,
8549
+ externalSlotProps,
8550
+ externalForwardedProps,
8551
+ className
8552
+ } = parameters;
8553
+
8554
+ if (!getSlotProps) {
8555
+ // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,
8556
+ // so we can simply merge all the props without having to worry about extracting event handlers.
8557
+ const joinedClasses = clsx(externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className, className, additionalProps == null ? void 0 : additionalProps.className);
8558
+
8559
+ const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps, {
8560
+ className: joinedClasses
8561
+ });
8562
+
8563
+ if (joinedClasses.length === 0) {
8564
+ delete props.className;
8565
+ }
8566
+
8567
+ return {
8568
+ props,
8569
+ internalRef: undefined
8570
+ };
8571
+ } // In this case, getSlotProps is responsible for calling the external event handlers.
8572
+ // We don't need to include them in the merged props because of this.
8573
+
8574
+
8575
+ const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));
8576
+ const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
8577
+ const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
8578
+ const internalSlotProps = getSlotProps(eventHandlers);
8579
+ const joinedClasses = clsx(externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className, className, additionalProps == null ? void 0 : additionalProps.className, internalSlotProps == null ? void 0 : internalSlotProps.className);
8580
+
8581
+ const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers, {
8582
+ className: joinedClasses
8583
+ });
8584
+
8585
+ if (joinedClasses.length === 0) {
8586
+ delete props.className;
8587
+ }
8588
+
8589
+ return {
8590
+ props,
8591
+ internalRef: internalSlotProps.ref
8592
+ };
8593
+ }
8594
+
8595
+ /**
8596
+ * If `componentProps` is a function, calls it with the provided `ownerState`.
8597
+ * Otherwise, just returns `componentProps`.
8598
+ */
8599
+ function resolveComponentProps(componentProps, ownerState) {
8600
+ if (typeof componentProps === 'function') {
8601
+ return componentProps(ownerState);
8602
+ }
8603
+
8604
+ return componentProps;
8605
+ }
8606
+
8607
+ const _excluded$2d = ["elementType", "externalSlotProps", "ownerState"];
8608
+
8609
+ /**
8610
+ * Builds the props to be passed into the slot of an unstyled component.
8611
+ * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
8612
+ * If the slot component is not a host component, it also merges in the `ownerState`.
8613
+ *
8614
+ * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.
8615
+ */
8616
+ function useSlotProps(parameters) {
8617
+ var _parameters$additiona;
8618
+
8619
+ const {
8620
+ elementType,
8621
+ externalSlotProps,
8622
+ ownerState
8623
+ } = parameters,
8624
+ rest = _objectWithoutPropertiesLoose(parameters, _excluded$2d);
8625
+
8626
+ const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
8627
+ const merged = mergeSlotProps(_extends({}, rest, {
8628
+ externalSlotProps: resolvedComponentsProps
8629
+ }));
8630
+ const props = appendOwnerState(elementType, _extends({}, merged.props, {
8631
+ ref: useForkRef(merged.internalRef, useForkRef(resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref))
8632
+ }), ownerState);
8633
+ return props;
8634
+ }
8635
+
8488
8636
  // Give up on IE11 support for this feature
8489
8637
 
8490
8638
  function stripDiacritics(string) {
@@ -9558,7 +9706,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9558
9706
  }
9559
9707
  generateUtilityClasses('BaseBadge', ['root', 'badge', 'invisible']);
9560
9708
 
9561
- const _excluded$2c = ["badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero"];
9709
+ const _excluded$2c = ["badgeContent", "component", "children", "components", "componentsProps", "invisible", "max", "showZero"];
9562
9710
 
9563
9711
  const useUtilityClasses$1O = ownerState => {
9564
9712
  const {
@@ -9583,12 +9731,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9583
9731
 
9584
9732
 
9585
9733
  const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
9586
- var _componentsProps$root, _componentsProps$badg;
9587
-
9588
9734
  const {
9589
9735
  component,
9590
9736
  children,
9591
- className,
9592
9737
  components = {},
9593
9738
  componentsProps = {},
9594
9739
  max: maxProp = 99,
@@ -9614,14 +9759,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9614
9759
 
9615
9760
  const classes = useUtilityClasses$1O(ownerState);
9616
9761
  const Root = component || components.Root || 'span';
9617
- const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root, {
9618
- ref,
9619
- className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className)
9620
- }), ownerState);
9762
+ const rootProps = useSlotProps({
9763
+ elementType: Root,
9764
+ externalSlotProps: componentsProps.root,
9765
+ externalForwardedProps: other,
9766
+ additionalProps: {
9767
+ ref
9768
+ },
9769
+ ownerState,
9770
+ className: classes.root
9771
+ });
9621
9772
  const Badge = components.Badge || 'span';
9622
- const badgeProps = appendOwnerState(Badge, _extends({}, componentsProps.badge, {
9623
- className: clsx(classes.badge, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.className)
9624
- }), ownerState);
9773
+ const badgeProps = useSlotProps({
9774
+ elementType: Badge,
9775
+ externalSlotProps: componentsProps.badge,
9776
+ ownerState,
9777
+ className: classes.badge
9778
+ });
9625
9779
  return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
9626
9780
  children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
9627
9781
  children: displayValue
@@ -9646,11 +9800,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9646
9800
  */
9647
9801
  children: PropTypes.node,
9648
9802
 
9649
- /**
9650
- * @ignore
9651
- */
9652
- className: PropTypes.string,
9653
-
9654
9803
  /**
9655
9804
  * The component used for the root node.
9656
9805
  * Either a string to use a HTML element or a component.
@@ -9672,8 +9821,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9672
9821
  * @default {}
9673
9822
  */
9674
9823
  componentsProps: PropTypes.shape({
9675
- badge: PropTypes.object,
9676
- root: PropTypes.object
9824
+ badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
9825
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
9677
9826
  }),
9678
9827
 
9679
9828
  /**
@@ -12875,7 +13024,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12875
13024
  const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
12876
13025
  var modalUnstyledClasses$1 = modalUnstyledClasses;
12877
13026
 
12878
- const _excluded$2a = ["BackdropComponent", "BackdropProps", "children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "theme", "onTransitionEnter", "onTransitionExited"];
13027
+ const _excluded$2a = ["children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited"];
12879
13028
 
12880
13029
  const useUtilityClasses$1N = ownerState => {
12881
13030
  const {
@@ -12915,11 +13064,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12915
13064
  */
12916
13065
 
12917
13066
  const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, ref) {
12918
- var _props$ariaHidden;
13067
+ var _props$ariaHidden, _componentsProps$root;
12919
13068
 
12920
13069
  const {
12921
- BackdropComponent,
12922
- BackdropProps,
12923
13070
  children,
12924
13071
  classes: classesProp,
12925
13072
  className,
@@ -12945,7 +13092,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12945
13092
  open,
12946
13093
 
12947
13094
  /* eslint-disable react/prop-types */
12948
- theme,
12949
13095
  onTransitionEnter,
12950
13096
  onTransitionExited
12951
13097
  } = props,
@@ -13105,26 +13251,25 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13105
13251
  }
13106
13252
 
13107
13253
  const Root = components.Root || component;
13108
- const rootProps = componentsProps.root || {};
13254
+ const rootProps = appendOwnerState(Root, _extends({
13255
+ role: 'presentation'
13256
+ }, other, componentsProps.root, {
13257
+ ref: handleRef,
13258
+ onKeyDown: handleKeyDown,
13259
+ className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className)
13260
+ }), ownerState);
13261
+ const BackdropComponent = components.Backdrop;
13262
+ const backdropProps = appendOwnerState(BackdropComponent, _extends({
13263
+ 'aria-hidden': true,
13264
+ open,
13265
+ onClick: handleBackdropClick
13266
+ }, componentsProps.backdrop), ownerState);
13109
13267
  return /*#__PURE__*/jsxRuntime_1(Portal$1, {
13110
13268
  ref: handlePortalRef,
13111
13269
  container: container,
13112
13270
  disablePortal: disablePortal,
13113
- children: /*#__PURE__*/jsxRuntime_2(Root, _extends({
13114
- role: "presentation"
13115
- }, rootProps, !isHostComponent(Root) && {
13116
- as: component,
13117
- ownerState: _extends({}, ownerState, rootProps.ownerState),
13118
- theme
13119
- }, other, {
13120
- ref: handleRef,
13121
- onKeyDown: handleKeyDown,
13122
- className: clsx(classes.root, rootProps.className, className),
13123
- children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntime_1(BackdropComponent, _extends({
13124
- "aria-hidden": true,
13125
- open: open,
13126
- onClick: handleBackdropClick
13127
- }, BackdropProps)) : null, /*#__PURE__*/jsxRuntime_1(TrapFocus, {
13271
+ children: /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
13272
+ children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntime_1(BackdropComponent, _extends({}, backdropProps)) : null, /*#__PURE__*/jsxRuntime_1(TrapFocus, {
13128
13273
  disableEnforceFocus: disableEnforceFocus,
13129
13274
  disableAutoFocus: disableAutoFocus,
13130
13275
  disableRestoreFocus: disableRestoreFocus,
@@ -13143,16 +13288,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13143
13288
  // | To update them edit the d.ts file and run "yarn proptypes" |
13144
13289
  // ----------------------------------------------------------------------
13145
13290
 
13146
- /**
13147
- * A backdrop component. This prop enables custom backdrop rendering.
13148
- */
13149
- BackdropComponent: PropTypes.elementType,
13150
-
13151
- /**
13152
- * Props applied to the backdrop element.
13153
- */
13154
- BackdropProps: PropTypes.object,
13155
-
13156
13291
  /**
13157
13292
  * A single child content element.
13158
13293
  */
@@ -13186,6 +13321,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13186
13321
  * @default {}
13187
13322
  */
13188
13323
  components: PropTypes.shape({
13324
+ Backdrop: PropTypes.elementType,
13189
13325
  Root: PropTypes.elementType
13190
13326
  }),
13191
13327
 
@@ -13194,6 +13330,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13194
13330
  * @default {}
13195
13331
  */
13196
13332
  componentsProps: PropTypes.shape({
13333
+ backdrop: PropTypes.object,
13197
13334
  root: PropTypes.object
13198
13335
  }),
13199
13336
 
@@ -14083,14 +14220,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14083
14220
 
14084
14221
  return {
14085
14222
  active,
14086
- axis,
14223
+ axis: axis,
14087
14224
  axisProps,
14088
14225
  dragging,
14089
14226
  focusVisible,
14090
14227
  getHiddenInputProps,
14091
14228
  getRootProps,
14092
14229
  getThumbProps,
14093
- marks,
14230
+ marks: marks,
14094
14231
  open,
14095
14232
  range,
14096
14233
  trackLeap,
@@ -15836,6 +15973,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15836
15973
  const overlay = getOverlayAlpha(index);
15837
15974
  return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
15838
15975
  });
15976
+
15977
+ function assignNode(obj, keys) {
15978
+ keys.forEach(k => {
15979
+ if (!obj[k]) {
15980
+ obj[k] = {};
15981
+ }
15982
+ });
15983
+ }
15984
+
15985
+ function setColor(obj, key, defaultValue) {
15986
+ obj[key] = obj[key] || defaultValue;
15987
+ }
15988
+
15839
15989
  function extendTheme(options = {}, ...args) {
15840
15990
  var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
15841
15991
 
@@ -15865,16 +16015,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15865
16015
  light: _extends({}, colorSchemesInput.light, {
15866
16016
  palette: lightPalette,
15867
16017
  opacity: _extends({
15868
- placeholder: 0.42,
15869
- inputTouchBottomLine: 0.42
16018
+ inputPlaceholder: 0.42,
16019
+ inputTouchBottomLine: 0.42,
16020
+ switchTrackDisabled: 0.12,
16021
+ switchTrack: 0.38
15870
16022
  }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
15871
16023
  overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
15872
16024
  }),
15873
16025
  dark: _extends({}, colorSchemesInput.dark, {
15874
16026
  palette: darkPalette,
15875
16027
  opacity: _extends({
15876
- placeholder: 0.5,
15877
- inputTouchBottomLine: 0.7
16028
+ inputPlaceholder: 0.5,
16029
+ inputTouchBottomLine: 0.7,
16030
+ switchTrackDisabled: 0.2,
16031
+ switchTrack: 0.3
15878
16032
  }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
15879
16033
  overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
15880
16034
  })
@@ -15884,23 +16038,98 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15884
16038
  Object.keys(theme.colorSchemes).forEach(key => {
15885
16039
  const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
15886
16040
 
15887
- if (key === 'dark') {
15888
- palette.common.background = palette.common.background || '#000';
15889
- palette.common.onBackground = palette.common.onBackground || '#fff';
16041
+ if (key === 'light') {
16042
+ setColor(palette.common, 'background', '#fff');
16043
+ setColor(palette.common, 'onBackground', '#000');
16044
+ } else {
16045
+ setColor(palette.common, 'background', '#000');
16046
+ setColor(palette.common, 'onBackground', '#fff');
16047
+ } // assign component variables
16048
+
16049
+
16050
+ assignNode(palette, ['AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
16051
+
16052
+ if (key === 'light') {
16053
+ setColor(palette.AppBar, 'defaultBg', 'var(--mui-palette-grey-100)');
16054
+ setColor(palette.Avatar, 'defaultBg', 'var(--mui-palette-grey-400)');
16055
+ setColor(palette.Chip, 'defaultBorder', 'var(--mui-palette-grey-400)');
16056
+ setColor(palette.Chip, 'defaultAvatarColor', 'var(--mui-palette-grey-700)');
16057
+ setColor(palette.Chip, 'defaultIconColor', 'var(--mui-palette-grey-700)');
16058
+ setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
16059
+ setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
16060
+ setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
16061
+ setColor(palette.LinearProgress, 'primaryBg', lighten(palette.primary.main, 0.62));
16062
+ setColor(palette.LinearProgress, 'secondaryBg', lighten(palette.secondary.main, 0.62));
16063
+ setColor(palette.LinearProgress, 'errorBg', lighten(palette.error.main, 0.62));
16064
+ setColor(palette.LinearProgress, 'infoBg', lighten(palette.info.main, 0.62));
16065
+ setColor(palette.LinearProgress, 'successBg', lighten(palette.success.main, 0.62));
16066
+ setColor(palette.LinearProgress, 'warningBg', lighten(palette.warning.main, 0.62));
16067
+ setColor(palette.Skeleton, 'bg', 'rgba(var(--mui-palette-text-primaryChannel) / 0.11)');
16068
+ setColor(palette.Slider, 'primaryTrack', lighten(palette.primary.main, 0.62));
16069
+ setColor(palette.Slider, 'secondaryTrack', lighten(palette.secondary.main, 0.62));
16070
+ setColor(palette.Slider, 'errorTrack', lighten(palette.error.main, 0.62));
16071
+ setColor(palette.Slider, 'infoTrack', lighten(palette.info.main, 0.62));
16072
+ setColor(palette.Slider, 'successTrack', lighten(palette.success.main, 0.62));
16073
+ setColor(palette.Slider, 'warningTrack', lighten(palette.warning.main, 0.62));
16074
+ setColor(palette.SnackbarContent, 'bg', emphasize(palette.background.default, 0.8));
16075
+ setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
16076
+ setColor(palette.StepConnector, 'border', 'var(--mui-palette-grey-400)');
16077
+ setColor(palette.StepContent, 'border', 'var(--mui-palette-grey-400)');
16078
+ setColor(palette.Switch, 'defaultColor', 'var(--mui-palette-common-white)');
16079
+ setColor(palette.Switch, 'defaultDisabledColor', 'var(--mui-palette-grey-100)');
16080
+ setColor(palette.Switch, 'primaryDisabledColor', lighten(palette.primary.main, 0.62));
16081
+ setColor(palette.Switch, 'secondaryDisabledColor', lighten(palette.secondary.main, 0.62));
16082
+ setColor(palette.Switch, 'errorDisabledColor', lighten(palette.error.main, 0.62));
16083
+ setColor(palette.Switch, 'infoDisabledColor', lighten(palette.info.main, 0.62));
16084
+ setColor(palette.Switch, 'successDisabledColor', lighten(palette.success.main, 0.62));
16085
+ setColor(palette.Switch, 'warningDisabledColor', lighten(palette.warning.main, 0.62));
16086
+ setColor(palette.TableCell, 'border', lighten(alpha(palette.divider, 1), 0.88));
16087
+ setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
15890
16088
  } else {
15891
- palette.common.background = palette.common.background || '#fff';
15892
- palette.common.onBackground = palette.common.onBackground || '#000';
16089
+ setColor(palette.AppBar, 'defaultBg', 'var(--mui-palette-grey-900)');
16090
+ setColor(palette.AppBar, 'darkBg', 'var(--mui-palette-background-paper)'); // specific for dark mode
16091
+
16092
+ setColor(palette.AppBar, 'darkColor', 'var(--mui-palette-text-primary)'); // specific for dark mode
16093
+
16094
+ setColor(palette.Avatar, 'defaultBg', 'var(--mui-palette-grey-600)');
16095
+ setColor(palette.Chip, 'defaultBorder', 'var(--mui-palette-grey-700)');
16096
+ setColor(palette.Chip, 'defaultAvatarColor', 'var(--mui-palette-grey-300)');
16097
+ setColor(palette.Chip, 'defaultIconColor', 'var(--mui-palette-grey-300)');
16098
+ setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
16099
+ setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
16100
+ setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
16101
+ setColor(palette.LinearProgress, 'primaryBg', darken(palette.primary.main, 0.5));
16102
+ setColor(palette.LinearProgress, 'secondaryBg', darken(palette.secondary.main, 0.5));
16103
+ setColor(palette.LinearProgress, 'errorBg', darken(palette.error.main, 0.5));
16104
+ setColor(palette.LinearProgress, 'infoBg', darken(palette.info.main, 0.5));
16105
+ setColor(palette.LinearProgress, 'successBg', darken(palette.success.main, 0.5));
16106
+ setColor(palette.LinearProgress, 'warningBg', darken(palette.warning.main, 0.5));
16107
+ setColor(palette.Skeleton, 'bg', 'rgba(var(--mui-palette-text-primaryChannel) / 0.13)');
16108
+ setColor(palette.Slider, 'primaryTrack', darken(palette.primary.main, 0.5));
16109
+ setColor(palette.Slider, 'secondaryTrack', darken(palette.secondary.main, 0.5));
16110
+ setColor(palette.Slider, 'errorTrack', darken(palette.error.main, 0.5));
16111
+ setColor(palette.Slider, 'infoTrack', darken(palette.info.main, 0.5));
16112
+ setColor(palette.Slider, 'successTrack', darken(palette.success.main, 0.5));
16113
+ setColor(palette.Slider, 'warningTrack', darken(palette.warning.main, 0.5));
16114
+ setColor(palette.SnackbarContent, 'bg', emphasize(palette.background.default, 0.98));
16115
+ setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
16116
+ setColor(palette.StepConnector, 'border', 'var(--mui-palette-grey-600)');
16117
+ setColor(palette.StepContent, 'border', 'var(--mui-palette-grey-600)');
16118
+ setColor(palette.Switch, 'defaultColor', 'var(--mui-palette-grey-300)');
16119
+ setColor(palette.Switch, 'defaultDisabledColor', 'var(--mui-palette-grey-600)');
16120
+ setColor(palette.Switch, 'primaryDisabledColor', darken(palette.primary.main, 0.55));
16121
+ setColor(palette.Switch, 'secondaryDisabledColor', darken(palette.secondary.main, 0.55));
16122
+ setColor(palette.Switch, 'errorDisabledColor', darken(palette.error.main, 0.55));
16123
+ setColor(palette.Switch, 'infoDisabledColor', darken(palette.info.main, 0.55));
16124
+ setColor(palette.Switch, 'successDisabledColor', darken(palette.success.main, 0.55));
16125
+ setColor(palette.Switch, 'warningDisabledColor', darken(palette.warning.main, 0.55));
16126
+ setColor(palette.TableCell, 'border', darken(alpha(palette.divider, 1), 0.68));
16127
+ setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
15893
16128
  }
15894
16129
 
15895
16130
  palette.common.backgroundChannel = colorChannel(palette.common.background);
15896
16131
  palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
15897
- palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
15898
- // TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
15899
-
15900
- if (!palette.grey.dark) {
15901
- palette.grey.dark = palette.grey[700];
15902
- }
15903
-
16132
+ palette.dividerChannel = colorChannel(palette.divider);
15904
16133
  Object.keys(palette).forEach(color => {
15905
16134
  const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
15906
16135
 
@@ -15927,12 +16156,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15927
16156
 
15928
16157
  if (colors.secondary) {
15929
16158
  palette[color].secondaryChannel = colorChannel(colors.secondary);
15930
- } // Action colors: action.activeChannel
16159
+ } // Action colors: action.active, action.selected
15931
16160
 
15932
16161
 
15933
16162
  if (colors.active) {
15934
16163
  palette[color].activeChannel = colorChannel(colors.active);
15935
16164
  }
16165
+
16166
+ if (colors.selected) {
16167
+ palette[color].selectedChannel = colorChannel(colors.selected);
16168
+ }
15936
16169
  });
15937
16170
  });
15938
16171
  theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
@@ -15953,7 +16186,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15953
16186
  light: 'light',
15954
16187
  dark: 'dark'
15955
16188
  },
15956
- prefix: 'md',
16189
+ prefix: 'mui',
15957
16190
  resolveTheme: theme => {
15958
16191
  const newTheme = _extends({}, theme, {
15959
16192
  typography: createTypography(theme.palette, theme.typography)
@@ -20037,7 +20270,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20037
20270
  root: ['root', `color${capitalize(color)}`, `position${capitalize(position)}`]
20038
20271
  };
20039
20272
  return composeClasses(slots, getAppBarUtilityClass, classes);
20040
- };
20273
+ }; // var2 is the fallback.
20274
+ // Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
20275
+
20276
+
20277
+ const joinVars = (var1, var2) => `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})`;
20041
20278
 
20042
20279
  const AppBarRoot = styled$1(Paper$1, {
20043
20280
  name: 'MuiAppBar',
@@ -20062,7 +20299,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20062
20299
  flexShrink: 0
20063
20300
  }, ownerState.position === 'fixed' && {
20064
20301
  position: 'fixed',
20065
- zIndex: theme.zIndex.appBar,
20302
+ zIndex: (theme.vars || theme).zIndex.appBar,
20066
20303
  top: 0,
20067
20304
  left: 'auto',
20068
20305
  right: 0,
@@ -20072,14 +20309,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20072
20309
  }
20073
20310
  }, ownerState.position === 'absolute' && {
20074
20311
  position: 'absolute',
20075
- zIndex: theme.zIndex.appBar,
20312
+ zIndex: (theme.vars || theme).zIndex.appBar,
20076
20313
  top: 0,
20077
20314
  left: 'auto',
20078
20315
  right: 0
20079
20316
  }, ownerState.position === 'sticky' && {
20080
20317
  // ⚠️ sticky is not supported by IE11.
20081
20318
  position: 'sticky',
20082
- zIndex: theme.zIndex.appBar,
20319
+ zIndex: (theme.vars || theme).zIndex.appBar,
20083
20320
  top: 0,
20084
20321
  left: 'auto',
20085
20322
  right: 0
@@ -20087,7 +20324,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20087
20324
  position: 'static'
20088
20325
  }, ownerState.position === 'relative' && {
20089
20326
  position: 'relative'
20090
- }, ownerState.color === 'default' && {
20327
+ }, !theme.vars && _extends({}, ownerState.color === 'default' && {
20091
20328
  backgroundColor: backgroundColorDefault,
20092
20329
  color: theme.palette.getContrastText(backgroundColorDefault)
20093
20330
  }, ownerState.color && ownerState.color !== 'default' && ownerState.color !== 'inherit' && ownerState.color !== 'transparent' && {
@@ -20103,6 +20340,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20103
20340
  color: 'inherit'
20104
20341
  }, theme.palette.mode === 'dark' && {
20105
20342
  backgroundImage: 'none'
20343
+ })), theme.vars && _extends({}, ownerState.color === 'default' && {
20344
+ '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette.AppBar.defaultBg : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette.AppBar.defaultBg),
20345
+ '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette.text.primary : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette.text.primary)
20346
+ }, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
20347
+ '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
20348
+ '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
20349
+ }, {
20350
+ backgroundColor: 'var(--AppBar-background)',
20351
+ color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
20352
+ }, ownerState.color === 'transparent' && {
20353
+ backgroundImage: 'none',
20354
+ backgroundColor: 'transparent',
20355
+ color: 'inherit'
20106
20356
  }));
20107
20357
  });
20108
20358
  const AppBar = /*#__PURE__*/React__namespace.forwardRef(function AppBar(inProps, ref) {
@@ -20552,6 +20802,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20552
20802
  ownerState
20553
20803
  }) => {
20554
20804
  const deleteIconColor = alpha(theme.palette.text.primary, 0.26);
20805
+ const textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
20555
20806
  return _extends({
20556
20807
  maxWidth: '100%',
20557
20808
  fontFamily: theme.typography.fontFamily,
@@ -20560,8 +20811,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20560
20811
  alignItems: 'center',
20561
20812
  justifyContent: 'center',
20562
20813
  height: 32,
20563
- color: theme.palette.text.primary,
20564
- backgroundColor: theme.palette.action.selected,
20814
+ color: (theme.vars || theme).palette.text.primary,
20815
+ backgroundColor: (theme.vars || theme).palette.action.selected,
20565
20816
  borderRadius: 32 / 2,
20566
20817
  whiteSpace: 'nowrap',
20567
20818
  transition: theme.transitions.create(['background-color', 'box-shadow']),
@@ -20577,7 +20828,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20577
20828
  verticalAlign: 'middle',
20578
20829
  boxSizing: 'border-box',
20579
20830
  [`&.${chipClasses$1.disabled}`]: {
20580
- opacity: theme.palette.action.disabledOpacity,
20831
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
20581
20832
  pointerEvents: 'none'
20582
20833
  },
20583
20834
  [`& .${chipClasses$1.avatar}`]: {
@@ -20585,16 +20836,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20585
20836
  marginRight: -6,
20586
20837
  width: 24,
20587
20838
  height: 24,
20588
- color: theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300],
20839
+ color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
20589
20840
  fontSize: theme.typography.pxToRem(12)
20590
20841
  },
20591
20842
  [`& .${chipClasses$1.avatarColorPrimary}`]: {
20592
- color: theme.palette.primary.contrastText,
20593
- backgroundColor: theme.palette.primary.dark
20843
+ color: (theme.vars || theme).palette.primary.contrastText,
20844
+ backgroundColor: (theme.vars || theme).palette.primary.dark
20594
20845
  },
20595
20846
  [`& .${chipClasses$1.avatarColorSecondary}`]: {
20596
- color: theme.palette.secondary.contrastText,
20597
- backgroundColor: theme.palette.secondary.dark
20847
+ color: (theme.vars || theme).palette.secondary.contrastText,
20848
+ backgroundColor: (theme.vars || theme).palette.secondary.dark
20598
20849
  },
20599
20850
  [`& .${chipClasses$1.avatarSmall}`]: {
20600
20851
  marginLeft: 4,
@@ -20604,7 +20855,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20604
20855
  fontSize: theme.typography.pxToRem(10)
20605
20856
  },
20606
20857
  [`& .${chipClasses$1.icon}`]: _extends({
20607
- color: theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300],
20858
+ color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor,
20608
20859
  marginLeft: 5,
20609
20860
  marginRight: -6
20610
20861
  }, ownerState.size === 'small' && {
@@ -20616,35 +20867,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20616
20867
  }),
20617
20868
  [`& .${chipClasses$1.deleteIcon}`]: _extends({
20618
20869
  WebkitTapHighlightColor: 'transparent',
20619
- color: deleteIconColor,
20870
+ color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : deleteIconColor,
20620
20871
  fontSize: 22,
20621
20872
  cursor: 'pointer',
20622
20873
  margin: '0 5px 0 -6px',
20623
20874
  '&:hover': {
20624
- color: alpha(deleteIconColor, 0.4)
20875
+ color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.4)` : alpha(deleteIconColor, 0.4)
20625
20876
  }
20626
20877
  }, ownerState.size === 'small' && {
20627
20878
  fontSize: 16,
20628
20879
  marginRight: 4,
20629
20880
  marginLeft: -4
20630
20881
  }, ownerState.color !== 'default' && {
20631
- color: alpha(theme.palette[ownerState.color].contrastText, 0.7),
20882
+ color: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].contrastTextChannel} / 0.7)` : alpha(theme.palette[ownerState.color].contrastText, 0.7),
20632
20883
  '&:hover, &:active': {
20633
- color: theme.palette[ownerState.color].contrastText
20884
+ color: (theme.vars || theme).palette[ownerState.color].contrastText
20634
20885
  }
20635
20886
  })
20636
20887
  }, ownerState.size === 'small' && {
20637
20888
  height: 24
20638
20889
  }, ownerState.color !== 'default' && {
20639
- backgroundColor: theme.palette[ownerState.color].main,
20640
- color: theme.palette[ownerState.color].contrastText
20890
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
20891
+ color: (theme.vars || theme).palette[ownerState.color].contrastText
20641
20892
  }, ownerState.onDelete && {
20642
20893
  [`&.${chipClasses$1.focusVisible}`]: {
20643
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
20894
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
20644
20895
  }
20645
20896
  }, ownerState.onDelete && ownerState.color !== 'default' && {
20646
20897
  [`&.${chipClasses$1.focusVisible}`]: {
20647
- backgroundColor: theme.palette[ownerState.color].dark
20898
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
20648
20899
  }
20649
20900
  });
20650
20901
  }, ({
@@ -20655,29 +20906,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20655
20906
  WebkitTapHighlightColor: 'transparent',
20656
20907
  cursor: 'pointer',
20657
20908
  '&:hover': {
20658
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
20909
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
20659
20910
  },
20660
20911
  [`&.${chipClasses$1.focusVisible}`]: {
20661
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
20912
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
20662
20913
  },
20663
20914
  '&:active': {
20664
- boxShadow: theme.shadows[1]
20915
+ boxShadow: (theme.vars || theme).shadows[1]
20665
20916
  }
20666
20917
  }, ownerState.clickable && ownerState.color !== 'default' && {
20667
20918
  [`&:hover, &.${chipClasses$1.focusVisible}`]: {
20668
- backgroundColor: theme.palette[ownerState.color].dark
20919
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
20669
20920
  }
20670
20921
  }), ({
20671
20922
  theme,
20672
20923
  ownerState
20673
20924
  }) => _extends({}, ownerState.variant === 'outlined' && {
20674
20925
  backgroundColor: 'transparent',
20675
- border: `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700]}`,
20926
+ border: theme.vars ? `1px solid ${theme.vars.palette.Chip.defaultBorder}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700]}`,
20676
20927
  [`&.${chipClasses$1.clickable}:hover`]: {
20677
- backgroundColor: theme.palette.action.hover
20928
+ backgroundColor: (theme.vars || theme).palette.action.hover
20678
20929
  },
20679
20930
  [`&.${chipClasses$1.focusVisible}`]: {
20680
- backgroundColor: theme.palette.action.focus
20931
+ backgroundColor: (theme.vars || theme).palette.action.focus
20681
20932
  },
20682
20933
  [`& .${chipClasses$1.avatar}`]: {
20683
20934
  marginLeft: 4
@@ -20698,18 +20949,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20698
20949
  marginRight: 3
20699
20950
  }
20700
20951
  }, ownerState.variant === 'outlined' && ownerState.color !== 'default' && {
20701
- color: theme.palette[ownerState.color].main,
20702
- border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.7)}`,
20952
+ color: (theme.vars || theme).palette[ownerState.color].main,
20953
+ border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.7)` : alpha(theme.palette[ownerState.color].main, 0.7)}`,
20703
20954
  [`&.${chipClasses$1.clickable}:hover`]: {
20704
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity)
20955
+ 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)
20705
20956
  },
20706
20957
  [`&.${chipClasses$1.focusVisible}`]: {
20707
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.focusOpacity)
20958
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.focusOpacity)
20708
20959
  },
20709
20960
  [`& .${chipClasses$1.deleteIcon}`]: {
20710
- color: alpha(theme.palette[ownerState.color].main, 0.7),
20961
+ color: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.7)` : alpha(theme.palette[ownerState.color].main, 0.7),
20711
20962
  '&:hover, &:active': {
20712
- color: theme.palette[ownerState.color].main
20963
+ color: (theme.vars || theme).palette[ownerState.color].main
20713
20964
  }
20714
20965
  }
20715
20966
  }));
@@ -21173,7 +21424,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21173
21424
  const placeholder = _extends({
21174
21425
  color: 'currentColor'
21175
21426
  }, theme.vars ? {
21176
- opacity: theme.vars.opacity.placeholder
21427
+ opacity: theme.vars.opacity.inputPlaceholder
21177
21428
  } : {
21178
21429
  opacity: light ? 0.42 : 0.5
21179
21430
  }, {
@@ -21186,7 +21437,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21186
21437
  opacity: '0 !important'
21187
21438
  };
21188
21439
  const placeholderVisible = theme.vars ? {
21189
- opacity: theme.vars.opacity.placeholder
21440
+ opacity: theme.vars.opacity.inputPlaceholder
21190
21441
  } : {
21191
21442
  opacity: light ? 0.42 : 0.5
21192
21443
  };
@@ -22963,13 +23214,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22963
23214
  overflow: 'hidden',
22964
23215
  userSelect: 'none'
22965
23216
  }, ownerState.variant === 'rounded' && {
22966
- borderRadius: theme.shape.borderRadius
23217
+ borderRadius: (theme.vars || theme).shape.borderRadius
22967
23218
  }, ownerState.variant === 'square' && {
22968
23219
  borderRadius: 0
22969
- }, ownerState.colorDefault && {
22970
- color: theme.palette.background.default,
23220
+ }, ownerState.colorDefault && _extends({
23221
+ color: (theme.vars || theme).palette.background.default
23222
+ }, theme.vars ? {
23223
+ backgroundColor: theme.vars.palette.Avatar.defaultBg
23224
+ } : {
22971
23225
  backgroundColor: theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
22972
- }));
23226
+ })));
22973
23227
  const AvatarImg = styled$1('img', {
22974
23228
  name: 'MuiAvatar',
22975
23229
  slot: 'Img',
@@ -24080,8 +24334,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24080
24334
  * @default {}
24081
24335
  */
24082
24336
  componentsProps: PropTypes.shape({
24083
- badge: PropTypes.object,
24084
- root: PropTypes.object
24337
+ badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
24338
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
24085
24339
  }),
24086
24340
 
24087
24341
  /**
@@ -27219,7 +27473,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27219
27473
  };
27220
27474
  }
27221
27475
 
27222
- const _excluded$1t = ["BackdropComponent", "closeAfterTransition", "children", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted"];
27476
+ const _excluded$1t = ["BackdropComponent", "BackdropProps", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "theme"];
27223
27477
  const modalClasses = modalUnstyledClasses$1;
27224
27478
 
27225
27479
  const extendUtilityClasses$1 = ownerState => {
@@ -27272,7 +27526,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27272
27526
  */
27273
27527
 
27274
27528
  const Modal = /*#__PURE__*/React__namespace.forwardRef(function Modal(inProps, ref) {
27275
- var _componentsProps$root;
27529
+ var _ref, _components$Root;
27276
27530
 
27277
27531
  const props = useThemeProps({
27278
27532
  name: 'MuiModal',
@@ -27281,8 +27535,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27281
27535
 
27282
27536
  const {
27283
27537
  BackdropComponent = ModalBackdrop,
27538
+ BackdropProps,
27284
27539
  closeAfterTransition = false,
27285
27540
  children,
27541
+ component,
27286
27542
  components = {},
27287
27543
  componentsProps = {},
27288
27544
  disableAutoFocus = false,
@@ -27292,7 +27548,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27292
27548
  disableRestoreFocus = false,
27293
27549
  disableScrollLock = false,
27294
27550
  hideBackdrop = false,
27295
- keepMounted = false
27551
+ keepMounted = false,
27552
+ // eslint-disable-next-line react/prop-types
27553
+ theme
27296
27554
  } = props,
27297
27555
  other = _objectWithoutPropertiesLoose(props, _excluded$1t);
27298
27556
 
@@ -27314,16 +27572,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27314
27572
  });
27315
27573
 
27316
27574
  const classes = extendUtilityClasses$1(ownerState);
27575
+ const Root = (_ref = (_components$Root = components.Root) != null ? _components$Root : component) != null ? _ref : ModalRoot;
27317
27576
  return /*#__PURE__*/jsxRuntime_1(ModalUnstyled$1, _extends({
27318
27577
  components: _extends({
27319
- Root: ModalRoot
27578
+ Root,
27579
+ Backdrop: BackdropComponent
27320
27580
  }, components),
27321
27581
  componentsProps: {
27322
- root: _extends({}, componentsProps.root, (!components.Root || !isHostComponent(components.Root)) && {
27323
- ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState)
27324
- })
27582
+ root: _extends({}, componentsProps.root, !isHostComponent(Root) && {
27583
+ as: component,
27584
+ theme
27585
+ }),
27586
+ backdrop: _extends({}, BackdropProps, componentsProps.backdrop)
27325
27587
  },
27326
- BackdropComponent: BackdropComponent,
27327
27588
  onTransitionEnter: () => setExited(false),
27328
27589
  onTransitionExited: () => setExited(true),
27329
27590
  ref: ref
@@ -27343,6 +27604,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27343
27604
 
27344
27605
  /**
27345
27606
  * A backdrop component. This prop enables custom backdrop rendering.
27607
+ * @deprecated Use `components.Backdrop` instead.
27346
27608
  * @default styled(Backdrop, {
27347
27609
  * name: 'MuiModal',
27348
27610
  * slot: 'Backdrop',
@@ -27357,6 +27619,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27357
27619
 
27358
27620
  /**
27359
27621
  * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
27622
+ * @deprecated Use `componentsProps.backdrop` instead.
27360
27623
  */
27361
27624
  BackdropProps: PropTypes.object,
27362
27625
 
@@ -27376,12 +27639,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27376
27639
  */
27377
27640
  closeAfterTransition: PropTypes.bool,
27378
27641
 
27642
+ /**
27643
+ * The component used for the root node.
27644
+ * Either a string to use a HTML element or a component.
27645
+ */
27646
+ component: PropTypes.elementType,
27647
+
27379
27648
  /**
27380
27649
  * The components used for each slot inside the Modal.
27381
27650
  * Either a string to use a HTML element or a component.
27382
27651
  * @default {}
27383
27652
  */
27384
27653
  components: PropTypes.shape({
27654
+ Backdrop: PropTypes.elementType,
27385
27655
  Root: PropTypes.elementType
27386
27656
  }),
27387
27657
 
@@ -27390,6 +27660,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27390
27660
  * @default {}
27391
27661
  */
27392
27662
  componentsProps: PropTypes.shape({
27663
+ backdrop: PropTypes.object,
27393
27664
  root: PropTypes.object
27394
27665
  }),
27395
27666
 
@@ -27613,7 +27884,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27613
27884
  maxWidth: 'calc(100% - 64px)'
27614
27885
  }
27615
27886
  }
27616
- }, ownerState.maxWidth !== 'xs' && {
27887
+ }, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
27617
27888
  maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`,
27618
27889
  [`&.${dialogClasses$1.paperScrollBody}`]: {
27619
27890
  [theme.breakpoints.down(theme.breakpoints.values[ownerState.maxWidth] + 32 * 2)]: {
@@ -27714,12 +27985,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27714
27985
  }, [ariaLabelledby]);
27715
27986
  return /*#__PURE__*/jsxRuntime_1(DialogRoot, _extends({
27716
27987
  className: clsx(classes.root, className),
27717
- BackdropProps: _extends({
27718
- transitionDuration,
27719
- as: BackdropComponent
27720
- }, BackdropProps),
27721
27988
  closeAfterTransition: true,
27722
- BackdropComponent: DialogBackdrop,
27989
+ components: {
27990
+ Backdrop: DialogBackdrop
27991
+ },
27992
+ componentsProps: {
27993
+ backdrop: _extends({
27994
+ transitionDuration,
27995
+ as: BackdropComponent
27996
+ }, BackdropProps)
27997
+ },
27723
27998
  disableEscapeKeyDown: disableEscapeKeyDown,
27724
27999
  onClose: onClose,
27725
28000
  open: open,
@@ -27775,6 +28050,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27775
28050
 
27776
28051
  /**
27777
28052
  * A backdrop component. This prop enables custom backdrop rendering.
28053
+ * @deprecated Use `components.Backdrop` instead.
27778
28054
  * @default styled(Backdrop, {
27779
28055
  * name: 'MuiModal',
27780
28056
  * slot: 'Backdrop',
@@ -29489,36 +29765,38 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29489
29765
  theme,
29490
29766
  ownerState
29491
29767
  }) => {
29492
- var _theme$palette;
29768
+ var _palette;
29493
29769
 
29494
29770
  const light = theme.palette.mode === 'light';
29495
29771
  const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
29496
29772
  const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
29773
+ const hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';
29774
+ const disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';
29497
29775
  return _extends({
29498
29776
  position: 'relative',
29499
- backgroundColor,
29500
- borderTopLeftRadius: theme.shape.borderRadius,
29501
- borderTopRightRadius: theme.shape.borderRadius,
29777
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,
29778
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
29779
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius,
29502
29780
  transition: theme.transitions.create('background-color', {
29503
29781
  duration: theme.transitions.duration.shorter,
29504
29782
  easing: theme.transitions.easing.easeOut
29505
29783
  }),
29506
29784
  '&:hover': {
29507
- backgroundColor: light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)',
29785
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,
29508
29786
  // Reset on touch devices, it doesn't add specificity
29509
29787
  '@media (hover: none)': {
29510
- backgroundColor
29788
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
29511
29789
  }
29512
29790
  },
29513
29791
  [`&.${filledInputClasses$1.focused}`]: {
29514
- backgroundColor
29792
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
29515
29793
  },
29516
29794
  [`&.${filledInputClasses$1.disabled}`]: {
29517
- backgroundColor: light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)'
29795
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground
29518
29796
  }
29519
29797
  }, !ownerState.disableUnderline && {
29520
29798
  '&:after': {
29521
- borderBottom: `2px solid ${(_theme$palette = theme.palette[ownerState.color || 'primary']) == null ? void 0 : _theme$palette.main}`,
29799
+ borderBottom: `2px solid ${(_palette = (theme.vars || theme).palette[ownerState.color || 'primary']) == null ? void 0 : _palette.main}`,
29522
29800
  left: 0,
29523
29801
  bottom: 0,
29524
29802
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -29539,12 +29817,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29539
29817
  transform: 'scaleX(1) translateX(0)'
29540
29818
  },
29541
29819
  [`&.${filledInputClasses$1.error}:after`]: {
29542
- borderBottomColor: theme.palette.error.main,
29820
+ borderBottomColor: (theme.vars || theme).palette.error.main,
29543
29821
  transform: 'scaleX(1)' // error is always underlined in red
29544
29822
 
29545
29823
  },
29546
29824
  '&:before': {
29547
- borderBottom: `1px solid ${bottomLineColor}`,
29825
+ borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputTouchBottomLine})` : bottomLineColor}`,
29548
29826
  left: 0,
29549
29827
  bottom: 0,
29550
29828
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -29558,7 +29836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29558
29836
 
29559
29837
  },
29560
29838
  [`&:hover:not(.${filledInputClasses$1.disabled}):before`]: {
29561
- borderBottom: `1px solid ${theme.palette.text.primary}`
29839
+ borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
29562
29840
  },
29563
29841
  [`&.${filledInputClasses$1.disabled}:before`]: {
29564
29842
  borderBottomStyle: 'dotted'
@@ -29588,7 +29866,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29588
29866
  paddingTop: 25,
29589
29867
  paddingRight: 12,
29590
29868
  paddingBottom: 8,
29591
- paddingLeft: 12,
29869
+ paddingLeft: 12
29870
+ }, !theme.vars && {
29592
29871
  '&:-webkit-autofill': {
29593
29872
  WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
29594
29873
  WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
@@ -29596,6 +29875,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29596
29875
  borderTopLeftRadius: 'inherit',
29597
29876
  borderTopRightRadius: 'inherit'
29598
29877
  }
29878
+ }, theme.vars && {
29879
+ '&:-webkit-autofill': {
29880
+ borderTopLeftRadius: 'inherit',
29881
+ borderTopRightRadius: 'inherit'
29882
+ },
29883
+ [theme.getColorSchemeSelector('dark')]: {
29884
+ '&:-webkit-autofill': {
29885
+ WebkitBoxShadow: '0 0 0 100px #266798 inset',
29886
+ WebkitTextFillColor: '#fff',
29887
+ caretColor: '#fff'
29888
+ }
29889
+ }
29599
29890
  }, ownerState.size === 'small' && {
29600
29891
  paddingTop: 21,
29601
29892
  paddingBottom: 4
@@ -34034,6 +34325,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34034
34325
  return 'currentColor';
34035
34326
  }
34036
34327
 
34328
+ if (theme.vars) {
34329
+ return theme.vars.palette.LinearProgress[`${color}Bg`];
34330
+ }
34331
+
34037
34332
  return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);
34038
34333
  };
34039
34334
 
@@ -34126,7 +34421,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34126
34421
  top: 0,
34127
34422
  transition: 'transform 0.2s linear',
34128
34423
  transformOrigin: 'left',
34129
- backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
34424
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
34130
34425
  }, ownerState.variant === 'determinate' && {
34131
34426
  transition: `transform .${TRANSITION_DURATION}s linear`
34132
34427
  }, ownerState.variant === 'buffer' && {
@@ -34159,7 +34454,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34159
34454
  transition: 'transform 0.2s linear',
34160
34455
  transformOrigin: 'left'
34161
34456
  }, ownerState.variant !== 'buffer' && {
34162
- backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
34457
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
34163
34458
  }, ownerState.color === 'inherit' && {
34164
34459
  opacity: 0.3
34165
34460
  }, ownerState.variant === 'buffer' && {
@@ -37917,25 +38212,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37917
38212
  const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
37918
38213
  return _extends({
37919
38214
  position: 'relative',
37920
- borderRadius: theme.shape.borderRadius,
38215
+ borderRadius: (theme.vars || theme).shape.borderRadius,
37921
38216
  [`&:hover .${outlinedInputClasses$1.notchedOutline}`]: {
37922
- borderColor: theme.palette.text.primary
38217
+ borderColor: (theme.vars || theme).palette.text.primary
37923
38218
  },
37924
38219
  // Reset on touch devices, it doesn't add specificity
37925
38220
  '@media (hover: none)': {
37926
38221
  [`&:hover .${outlinedInputClasses$1.notchedOutline}`]: {
37927
- borderColor
38222
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
37928
38223
  }
37929
38224
  },
37930
38225
  [`&.${outlinedInputClasses$1.focused} .${outlinedInputClasses$1.notchedOutline}`]: {
37931
- borderColor: theme.palette[ownerState.color].main,
38226
+ borderColor: (theme.vars || theme).palette[ownerState.color].main,
37932
38227
  borderWidth: 2
37933
38228
  },
37934
38229
  [`&.${outlinedInputClasses$1.error} .${outlinedInputClasses$1.notchedOutline}`]: {
37935
- borderColor: theme.palette.error.main
38230
+ borderColor: (theme.vars || theme).palette.error.main
37936
38231
  },
37937
38232
  [`&.${outlinedInputClasses$1.disabled} .${outlinedInputClasses$1.notchedOutline}`]: {
37938
- borderColor: theme.palette.action.disabled
38233
+ borderColor: (theme.vars || theme).palette.action.disabled
37939
38234
  }
37940
38235
  }, ownerState.startAdornment && {
37941
38236
  paddingLeft: 14
@@ -37953,9 +38248,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37953
38248
  overridesResolver: (props, styles) => styles.notchedOutline
37954
38249
  })(({
37955
38250
  theme
37956
- }) => ({
37957
- borderColor: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'
37958
- }));
38251
+ }) => {
38252
+ const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
38253
+ return {
38254
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
38255
+ };
38256
+ });
37959
38257
  const OutlinedInputInput = styled$1(InputBaseComponent, {
37960
38258
  name: 'MuiOutlinedInput',
37961
38259
  slot: 'Input',
@@ -37964,13 +38262,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37964
38262
  theme,
37965
38263
  ownerState
37966
38264
  }) => _extends({
37967
- padding: '16.5px 14px',
38265
+ padding: '16.5px 14px'
38266
+ }, !theme.vars && {
37968
38267
  '&:-webkit-autofill': {
37969
38268
  WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
37970
38269
  WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
37971
38270
  caretColor: theme.palette.mode === 'light' ? null : '#fff',
37972
38271
  borderRadius: 'inherit'
37973
38272
  }
38273
+ }, theme.vars && {
38274
+ '&:-webkit-autofill': {
38275
+ borderRadius: 'inherit'
38276
+ },
38277
+ [theme.getColorSchemeSelector('dark')]: {
38278
+ '&:-webkit-autofill': {
38279
+ WebkitBoxShadow: '0 0 0 100px #266798 inset',
38280
+ WebkitTextFillColor: '#fff',
38281
+ caretColor: '#fff'
38282
+ }
38283
+ }
37974
38284
  }, ownerState.size === 'small' && {
37975
38285
  padding: '8.5px 14px'
37976
38286
  }, ownerState.multiline && {
@@ -41299,7 +41609,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41299
41609
  return _extends({
41300
41610
  display: 'block',
41301
41611
  // Create a "on paper" color with sufficient contrast retaining the color
41302
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),
41612
+ backgroundColor: theme.vars ? theme.vars.palette.Skeleton.bg : alpha(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),
41303
41613
  height: '1.2em'
41304
41614
  }, ownerState.variant === 'text' && {
41305
41615
  marginTop: 0,
@@ -41338,7 +41648,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41338
41648
 
41339
41649
  &::after {
41340
41650
  animation: ${0} 1.6s linear 0.5s infinite;
41341
- background: linear-gradient(90deg, transparent, ${0}, transparent);
41651
+ background: linear-gradient(
41652
+ 90deg,
41653
+ transparent,
41654
+ ${0},
41655
+ transparent
41656
+ );
41342
41657
  content: '';
41343
41658
  position: absolute;
41344
41659
  transform: translateX(-100%); /* Avoid flash during server-side hydration */
@@ -41347,7 +41662,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41347
41662
  right: 0;
41348
41663
  top: 0;
41349
41664
  }
41350
- `), waveKeyframe, theme.palette.action.hover));
41665
+ `), waveKeyframe, (theme.vars || theme).palette.action.hover));
41351
41666
  const Skeleton = /*#__PURE__*/React__namespace.forwardRef(function Skeleton(inProps, ref) {
41352
41667
  const props = useThemeProps({
41353
41668
  props: inProps,
@@ -41474,7 +41789,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41474
41789
  position: 'relative',
41475
41790
  cursor: 'pointer',
41476
41791
  touchAction: 'none',
41477
- color: theme.palette[ownerState.color].main,
41792
+ color: (theme.vars || theme).palette[ownerState.color].main,
41478
41793
  WebkitTapHighlightColor: 'transparent'
41479
41794
  }, ownerState.orientation === 'horizontal' && _extends({
41480
41795
  height: 4,
@@ -41509,7 +41824,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41509
41824
  [`&.${sliderClasses.disabled}`]: {
41510
41825
  pointerEvents: 'none',
41511
41826
  cursor: 'default',
41512
- color: theme.palette.grey[400]
41827
+ color: (theme.vars || theme).palette.grey[400]
41513
41828
  },
41514
41829
  [`&.${sliderClasses.dragging}`]: {
41515
41830
  [`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]: {
@@ -41600,8 +41915,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41600
41915
  }, ownerState.track === false && {
41601
41916
  display: 'none'
41602
41917
  }, ownerState.track === 'inverted' && {
41603
- backgroundColor: color,
41604
- borderColor: color
41918
+ backgroundColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color,
41919
+ borderColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color
41605
41920
  });
41606
41921
  });
41607
41922
  SliderTrack.propTypes
@@ -41659,7 +41974,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41659
41974
  borderRadius: 'inherit',
41660
41975
  width: '100%',
41661
41976
  height: '100%',
41662
- boxShadow: theme.shadows[2]
41977
+ boxShadow: (theme.vars || theme).shadows[2]
41663
41978
  }, ownerState.size === 'small' && {
41664
41979
  boxShadow: 'none'
41665
41980
  }),
@@ -41675,13 +41990,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41675
41990
  transform: 'translate(-50%, -50%)'
41676
41991
  },
41677
41992
  [`&:hover, &.${sliderClasses.focusVisible}`]: {
41678
- boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[ownerState.color].main, 0.16)}`,
41993
+ boxShadow: `0px 0px 0px 8px ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.16)` : alpha(theme.palette[ownerState.color].main, 0.16)}`,
41679
41994
  '@media (hover: none)': {
41680
41995
  boxShadow: 'none'
41681
41996
  }
41682
41997
  },
41683
41998
  [`&.${sliderClasses.active}`]: {
41684
- boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[ownerState.color].main, 0.16)}`
41999
+ boxShadow: `0px 0px 0px 14px ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.16)` : alpha(theme.palette[ownerState.color].main, 0.16)}`
41685
42000
  },
41686
42001
  [`&.${sliderClasses.disabled}`]: {
41687
42002
  '&:hover': {
@@ -41723,9 +42038,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41723
42038
  transformOrigin: 'bottom center',
41724
42039
  transform: 'translateY(-100%) scale(0)',
41725
42040
  position: 'absolute',
41726
- backgroundColor: theme.palette.grey[600],
42041
+ backgroundColor: (theme.vars || theme).palette.grey[600],
41727
42042
  borderRadius: 2,
41728
- color: theme.palette.common.white,
42043
+ color: (theme.vars || theme).palette.common.white,
41729
42044
  display: 'flex',
41730
42045
  alignItems: 'center',
41731
42046
  justifyContent: 'center',
@@ -41794,7 +42109,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41794
42109
  left: '50%',
41795
42110
  transform: 'translate(-50%, 1px)'
41796
42111
  }, markActive && {
41797
- backgroundColor: theme.palette.background.paper,
42112
+ backgroundColor: (theme.vars || theme).palette.background.paper,
41798
42113
  opacity: 0.8
41799
42114
  }));
41800
42115
  SliderMark.propTypes
@@ -41820,7 +42135,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41820
42135
  ownerState,
41821
42136
  markLabelActive
41822
42137
  }) => _extends({}, theme.typography.body2, {
41823
- color: theme.palette.text.secondary,
42138
+ color: (theme.vars || theme).palette.text.secondary,
41824
42139
  position: 'absolute',
41825
42140
  whiteSpace: 'nowrap'
41826
42141
  }, ownerState.orientation === 'horizontal' && {
@@ -41836,7 +42151,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41836
42151
  left: 44
41837
42152
  }
41838
42153
  }, markLabelActive && {
41839
- color: theme.palette.text.primary
42154
+ color: (theme.vars || theme).palette.text.primary
41840
42155
  }));
41841
42156
  SliderMarkLabel.propTypes
41842
42157
  /* remove-proptypes */
@@ -42230,13 +42545,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42230
42545
  const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
42231
42546
  const backgroundColor = emphasize(theme.palette.background.default, emphasis);
42232
42547
  return _extends({}, theme.typography.body2, {
42233
- color: theme.palette.getContrastText(backgroundColor),
42234
- backgroundColor,
42548
+ color: theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(backgroundColor),
42549
+ backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
42235
42550
  display: 'flex',
42236
42551
  alignItems: 'center',
42237
42552
  flexWrap: 'wrap',
42238
42553
  padding: '6px 16px',
42239
- borderRadius: theme.shape.borderRadius,
42554
+ borderRadius: (theme.vars || theme).shape.borderRadius,
42240
42555
  flexGrow: 1,
42241
42556
  [theme.breakpoints.up('sm')]: {
42242
42557
  flexGrow: 'initial',
@@ -43657,7 +43972,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43657
43972
  theme,
43658
43973
  ownerState
43659
43974
  }) => _extends({
43660
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.92)` : alpha(theme.palette.grey[700], 0.92),
43975
+ backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),
43661
43976
  borderRadius: (theme.vars || theme).shape.borderRadius,
43662
43977
  color: (theme.vars || theme).palette.common.white,
43663
43978
  fontFamily: theme.typography.fontFamily,
@@ -44401,10 +44716,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44401
44716
  ownerState
44402
44717
  }) => _extends({
44403
44718
  margin: 8,
44404
- color: theme.palette.text.secondary,
44405
- backgroundColor: theme.palette.background.paper,
44719
+ color: (theme.vars || theme).palette.text.secondary,
44720
+ backgroundColor: (theme.vars || theme).palette.background.paper,
44406
44721
  '&:hover': {
44407
- backgroundColor: emphasize(theme.palette.background.paper, 0.15)
44722
+ backgroundColor: theme.vars ? theme.vars.palette.SpeedDialAction.fabHoverBg : emphasize(theme.palette.background.paper, 0.15)
44408
44723
  },
44409
44724
  transition: `${theme.transitions.create('transform', {
44410
44725
  duration: theme.transitions.duration.shorter
@@ -44457,10 +44772,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44457
44772
  }) => _extends({
44458
44773
  position: 'absolute'
44459
44774
  }, theme.typography.body1, {
44460
- backgroundColor: theme.palette.background.paper,
44461
- borderRadius: theme.shape.borderRadius,
44462
- boxShadow: theme.shadows[1],
44463
- color: theme.palette.text.secondary,
44775
+ backgroundColor: (theme.vars || theme).palette.background.paper,
44776
+ borderRadius: (theme.vars || theme).shape.borderRadius,
44777
+ boxShadow: (theme.vars || theme).shadows[1],
44778
+ color: (theme.vars || theme).palette.text.secondary,
44464
44779
  padding: '4px 16px',
44465
44780
  wordBreak: 'keep-all'
44466
44781
  }));
@@ -45748,17 +46063,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45748
46063
  })(({
45749
46064
  ownerState,
45750
46065
  theme
45751
- }) => _extends({
45752
- display: 'block',
45753
- borderColor: theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
45754
- }, ownerState.orientation === 'horizontal' && {
45755
- borderTopStyle: 'solid',
45756
- borderTopWidth: 1
45757
- }, ownerState.orientation === 'vertical' && {
45758
- borderLeftStyle: 'solid',
45759
- borderLeftWidth: 1,
45760
- minHeight: 24
45761
- }));
46066
+ }) => {
46067
+ const borderColor = theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600];
46068
+ return _extends({
46069
+ display: 'block',
46070
+ borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor
46071
+ }, ownerState.orientation === 'horizontal' && {
46072
+ borderTopStyle: 'solid',
46073
+ borderTopWidth: 1
46074
+ }, ownerState.orientation === 'vertical' && {
46075
+ borderLeftStyle: 'solid',
46076
+ borderLeftWidth: 1,
46077
+ minHeight: 24
46078
+ });
46079
+ });
45762
46080
  const StepConnector = /*#__PURE__*/React__namespace.forwardRef(function StepConnector(inProps, ref) {
45763
46081
  const props = useThemeProps({
45764
46082
  props: inProps,
@@ -45863,7 +46181,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45863
46181
  paddingLeft: 8 + 12,
45864
46182
  // margin + half icon
45865
46183
  paddingRight: 8,
45866
- borderLeft: `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`
46184
+ borderLeft: theme.vars ? `1px solid ${theme.vars.palette.StepContent.border}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`
45867
46185
  }, ownerState.last && {
45868
46186
  borderLeft: 'none'
45869
46187
  }));
@@ -46917,7 +47235,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46917
47235
  left: 0,
46918
47236
  zIndex: 1,
46919
47237
  // Render above the focus ripple.
46920
- color: theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300],
47238
+ color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,
46921
47239
  transition: theme.transitions.create(['left', 'transform'], {
46922
47240
  duration: theme.transitions.duration.shortest
46923
47241
  }),
@@ -46925,13 +47243,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46925
47243
  transform: 'translateX(20px)'
46926
47244
  },
46927
47245
  [`&.${switchClasses$1.disabled}`]: {
46928
- color: theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]
47246
+ color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`
46929
47247
  },
46930
47248
  [`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]: {
46931
47249
  opacity: 0.5
46932
47250
  },
46933
47251
  [`&.${switchClasses$1.disabled} + .${switchClasses$1.track}`]: {
46934
- opacity: theme.palette.mode === 'light' ? 0.12 : 0.2
47252
+ opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`
46935
47253
  },
46936
47254
  [`& .${switchClasses$1.input}`]: {
46937
47255
  left: '-100%',
@@ -46942,7 +47260,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46942
47260
  ownerState
46943
47261
  }) => _extends({
46944
47262
  '&:hover': {
46945
- backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
47263
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
46946
47264
  // Reset on touch devices, it doesn't add specificity
46947
47265
  '@media (hover: none)': {
46948
47266
  backgroundColor: 'transparent'
@@ -46950,19 +47268,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46950
47268
  }
46951
47269
  }, ownerState.color !== 'default' && {
46952
47270
  [`&.${switchClasses$1.checked}`]: {
46953
- color: theme.palette[ownerState.color].main,
47271
+ color: (theme.vars || theme).palette[ownerState.color].main,
46954
47272
  '&:hover': {
46955
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
47273
+ 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),
46956
47274
  '@media (hover: none)': {
46957
47275
  backgroundColor: 'transparent'
46958
47276
  }
46959
47277
  },
46960
47278
  [`&.${switchClasses$1.disabled}`]: {
46961
- color: theme.palette.mode === 'light' ? lighten(theme.palette[ownerState.color].main, 0.62) : darken(theme.palette[ownerState.color].main, 0.55)
47279
+ color: theme.vars ? theme.vars.palette.Switch[`${ownerState.color}DisabledColor`] : `${theme.palette.mode === 'light' ? lighten(theme.palette[ownerState.color].main, 0.62) : darken(theme.palette[ownerState.color].main, 0.55)}`
46962
47280
  }
46963
47281
  },
46964
47282
  [`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]: {
46965
- backgroundColor: theme.palette[ownerState.color].main
47283
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
46966
47284
  }
46967
47285
  }));
46968
47286
  const SwitchTrack = styled$1('span', {
@@ -46979,8 +47297,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46979
47297
  transition: theme.transitions.create(['opacity', 'background-color'], {
46980
47298
  duration: theme.transitions.duration.shortest
46981
47299
  }),
46982
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white,
46983
- opacity: theme.palette.mode === 'light' ? 0.38 : 0.3
47300
+ backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,
47301
+ opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`
46984
47302
  }));
46985
47303
  const SwitchThumb = styled$1('span', {
46986
47304
  name: 'MuiSwitch',
@@ -46989,7 +47307,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46989
47307
  })(({
46990
47308
  theme
46991
47309
  }) => ({
46992
- boxShadow: theme.shadows[1],
47310
+ boxShadow: (theme.vars || theme).shadows[1],
46993
47311
  backgroundColor: 'currentColor',
46994
47312
  width: 20,
46995
47313
  height: 20,
@@ -47742,18 +48060,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47742
48060
  verticalAlign: 'inherit',
47743
48061
  // Workaround for a rendering bug with spanned columns in Chrome 62.0.
47744
48062
  // Removes the alpha (sets it to 1), and lightens or darkens the theme color.
47745
- borderBottom: `1px solid
48063
+ borderBottom: theme.vars ? `1px solid ${theme.vars.palette.TableCell.border}` : `1px solid
47746
48064
  ${theme.palette.mode === 'light' ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68)}`,
47747
48065
  textAlign: 'left',
47748
48066
  padding: 16
47749
48067
  }, ownerState.variant === 'head' && {
47750
- color: theme.palette.text.primary,
48068
+ color: (theme.vars || theme).palette.text.primary,
47751
48069
  lineHeight: theme.typography.pxToRem(24),
47752
48070
  fontWeight: theme.typography.fontWeightMedium
47753
48071
  }, ownerState.variant === 'body' && {
47754
- color: theme.palette.text.primary
48072
+ color: (theme.vars || theme).palette.text.primary
47755
48073
  }, ownerState.variant === 'footer' && {
47756
- color: theme.palette.text.secondary,
48074
+ color: (theme.vars || theme).palette.text.secondary,
47757
48075
  lineHeight: theme.typography.pxToRem(21),
47758
48076
  fontSize: theme.typography.pxToRem(12)
47759
48077
  }, ownerState.size === 'small' && {
@@ -47785,7 +48103,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47785
48103
  position: 'sticky',
47786
48104
  top: 0,
47787
48105
  zIndex: 2,
47788
- backgroundColor: theme.palette.background.default
48106
+ backgroundColor: (theme.vars || theme).palette.background.default
47789
48107
  }));
47790
48108
  /**
47791
48109
  * The component renders a `<th>` element when the parent context is a header
@@ -49823,31 +50141,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49823
50141
  scroll(scrollValue);
49824
50142
  };
49825
50143
 
49826
- const getFirstVisibleTab = tabs => {
49827
- const containerSize = tabsRef.current[clientSize];
49828
- const containerStartBound = Math.round(tabsRef.current[scrollStart]);
49829
- const containerEndBound = Math.round(containerStartBound + containerSize);
49830
- const offset = vertical ? 'offsetTop' : 'offsetLeft';
49831
- return tabs.find(tab => {
49832
- const centerPoint = tab[offset] + tab[clientSize] / 2;
49833
- return centerPoint >= containerStartBound && centerPoint <= containerEndBound;
49834
- });
49835
- };
49836
-
49837
50144
  const getScrollSize = () => {
49838
50145
  const containerSize = tabsRef.current[clientSize];
49839
50146
  let totalSize = 0;
49840
50147
  const children = Array.from(tabListRef.current.children);
49841
- const firstVisibleTab = getFirstVisibleTab(children);
49842
-
49843
- if (firstVisibleTab && firstVisibleTab[clientSize] > containerSize) {
49844
- return firstVisibleTab[clientSize];
49845
- }
49846
50148
 
49847
50149
  for (let i = 0; i < children.length; i += 1) {
49848
50150
  const tab = children[i];
49849
50151
 
49850
50152
  if (totalSize + tab[clientSize] > containerSize) {
50153
+ // If the first item is longer than the container size, then only scroll
50154
+ // by the container size.
50155
+ if (i === 0) {
50156
+ totalSize = containerSize;
50157
+ }
50158
+
49851
50159
  break;
49852
50160
  }
49853
50161