@mui/material 5.8.2 → 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 (154) hide show
  1. package/Alert/Alert.js +3 -1
  2. package/AppBar/AppBar.js +22 -5
  3. package/Autocomplete/autocompleteClasses.d.ts +1 -1
  4. package/Avatar/Avatar.js +7 -4
  5. package/Badge/Badge.js +2 -2
  6. package/Button/buttonClasses.d.ts +24 -0
  7. package/Button/buttonClasses.js +1 -1
  8. package/CHANGELOG.md +225 -8
  9. package/Checkbox/Checkbox.js +4 -4
  10. package/Chip/Chip.js +31 -30
  11. package/Dialog/Dialog.js +11 -6
  12. package/FilledInput/FilledInput.js +28 -13
  13. package/Grid/Grid.d.ts +73 -52
  14. package/Grid/Grid.js +94 -40
  15. package/Grow/Grow.js +1 -2
  16. package/Hidden/withWidth.js +0 -2
  17. package/InputBase/InputBase.js +2 -2
  18. package/LinearProgress/LinearProgress.js +6 -2
  19. package/Link/Link.js +10 -17
  20. package/Link/getTextDecoration.d.ts +15 -0
  21. package/Link/getTextDecoration.js +29 -0
  22. package/Modal/Modal.d.ts +2 -0
  23. package/Modal/Modal.js +25 -8
  24. package/OutlinedInput/OutlinedInput.js +25 -10
  25. package/Popover/Popover.d.ts +7 -0
  26. package/Popover/index.js +1 -0
  27. package/README.md +13 -12
  28. package/Skeleton/Skeleton.js +8 -3
  29. package/Slider/Slider.d.ts +3 -1
  30. package/Slider/Slider.js +35 -20
  31. package/Snackbar/Snackbar.js +6 -20
  32. package/SnackbarContent/SnackbarContent.js +3 -3
  33. package/SpeedDialAction/SpeedDialAction.js +7 -7
  34. package/Stack/Stack.js +1 -1
  35. package/StepConnector/StepConnector.js +14 -11
  36. package/StepContent/StepContent.js +1 -1
  37. package/StepIcon/StepIcon.js +2 -1
  38. package/Switch/Switch.js +11 -11
  39. package/Tab/Tab.d.ts +0 -1
  40. package/TableCell/TableCell.js +5 -5
  41. package/Tabs/Tabs.js +6 -0
  42. package/Tooltip/Tooltip.js +1 -1
  43. package/index.js +1 -1
  44. package/legacy/Alert/Alert.js +3 -1
  45. package/legacy/AppBar/AppBar.js +23 -4
  46. package/legacy/Avatar/Avatar.js +7 -4
  47. package/legacy/Badge/Badge.js +2 -2
  48. package/legacy/Button/buttonClasses.js +1 -1
  49. package/legacy/Checkbox/Checkbox.js +4 -4
  50. package/legacy/Chip/Chip.js +31 -30
  51. package/legacy/Dialog/Dialog.js +11 -6
  52. package/legacy/FilledInput/FilledInput.js +28 -14
  53. package/legacy/Grid/Grid.js +97 -48
  54. package/legacy/Grow/Grow.js +1 -2
  55. package/legacy/Hidden/withWidth.js +0 -2
  56. package/legacy/InputBase/InputBase.js +2 -2
  57. package/legacy/LinearProgress/LinearProgress.js +6 -2
  58. package/legacy/Link/Link.js +10 -17
  59. package/legacy/Link/getTextDecoration.js +28 -0
  60. package/legacy/Modal/Modal.js +23 -7
  61. package/legacy/OutlinedInput/OutlinedInput.js +21 -9
  62. package/legacy/Popover/index.js +1 -0
  63. package/legacy/Skeleton/Skeleton.js +2 -2
  64. package/legacy/Slider/Slider.js +35 -20
  65. package/legacy/Snackbar/Snackbar.js +6 -21
  66. package/legacy/SnackbarContent/SnackbarContent.js +3 -3
  67. package/legacy/SpeedDialAction/SpeedDialAction.js +7 -7
  68. package/legacy/Stack/Stack.js +2 -1
  69. package/legacy/StepConnector/StepConnector.js +2 -1
  70. package/legacy/StepContent/StepContent.js +1 -1
  71. package/legacy/StepIcon/StepIcon.js +2 -1
  72. package/legacy/Switch/Switch.js +11 -11
  73. package/legacy/TableCell/TableCell.js +5 -5
  74. package/legacy/Tabs/Tabs.js +6 -0
  75. package/legacy/Tooltip/Tooltip.js +1 -1
  76. package/legacy/index.js +1 -1
  77. package/legacy/styles/CssVarsProvider.js +4 -1
  78. package/legacy/styles/experimental_extendTheme.js +113 -18
  79. package/modern/Alert/Alert.js +3 -1
  80. package/modern/AppBar/AppBar.js +22 -5
  81. package/modern/Avatar/Avatar.js +7 -4
  82. package/modern/Badge/Badge.js +2 -2
  83. package/modern/Button/buttonClasses.js +1 -1
  84. package/modern/Checkbox/Checkbox.js +4 -4
  85. package/modern/Chip/Chip.js +31 -30
  86. package/modern/Dialog/Dialog.js +11 -6
  87. package/modern/FilledInput/FilledInput.js +27 -12
  88. package/modern/Grid/Grid.js +94 -40
  89. package/modern/Grow/Grow.js +1 -2
  90. package/modern/Hidden/withWidth.js +0 -2
  91. package/modern/InputBase/InputBase.js +2 -2
  92. package/modern/LinearProgress/LinearProgress.js +6 -2
  93. package/modern/Link/Link.js +10 -17
  94. package/modern/Link/getTextDecoration.js +29 -0
  95. package/modern/Modal/Modal.js +24 -7
  96. package/modern/OutlinedInput/OutlinedInput.js +25 -10
  97. package/modern/Popover/index.js +1 -0
  98. package/modern/Skeleton/Skeleton.js +7 -2
  99. package/modern/Slider/Slider.js +35 -20
  100. package/modern/Snackbar/Snackbar.js +6 -20
  101. package/modern/SnackbarContent/SnackbarContent.js +3 -3
  102. package/modern/SpeedDialAction/SpeedDialAction.js +7 -7
  103. package/modern/Stack/Stack.js +1 -1
  104. package/modern/StepConnector/StepConnector.js +14 -11
  105. package/modern/StepContent/StepContent.js +1 -1
  106. package/modern/StepIcon/StepIcon.js +2 -1
  107. package/modern/Switch/Switch.js +11 -11
  108. package/modern/TableCell/TableCell.js +5 -5
  109. package/modern/Tabs/Tabs.js +6 -0
  110. package/modern/Tooltip/Tooltip.js +1 -1
  111. package/modern/index.js +1 -1
  112. package/modern/styles/CssVarsProvider.js +4 -1
  113. package/modern/styles/experimental_extendTheme.js +114 -18
  114. package/node/Alert/Alert.js +3 -1
  115. package/node/AppBar/AppBar.js +22 -5
  116. package/node/Avatar/Avatar.js +7 -4
  117. package/node/Badge/Badge.js +2 -2
  118. package/node/Button/buttonClasses.js +1 -1
  119. package/node/Checkbox/Checkbox.js +4 -4
  120. package/node/Chip/Chip.js +31 -30
  121. package/node/Dialog/Dialog.js +11 -6
  122. package/node/FilledInput/FilledInput.js +28 -13
  123. package/node/Grid/Grid.js +95 -40
  124. package/node/Grow/Grow.js +1 -2
  125. package/node/Hidden/withWidth.js +0 -3
  126. package/node/InputBase/InputBase.js +2 -2
  127. package/node/LinearProgress/LinearProgress.js +6 -2
  128. package/node/Link/Link.js +12 -20
  129. package/node/Link/getTextDecoration.js +39 -0
  130. package/node/Modal/Modal.js +25 -8
  131. package/node/OutlinedInput/OutlinedInput.js +25 -10
  132. package/node/Popover/index.js +13 -3
  133. package/node/Skeleton/Skeleton.js +7 -2
  134. package/node/Slider/Slider.js +35 -20
  135. package/node/Snackbar/Snackbar.js +6 -18
  136. package/node/SnackbarContent/SnackbarContent.js +3 -3
  137. package/node/SpeedDialAction/SpeedDialAction.js +7 -7
  138. package/node/Stack/Stack.js +1 -1
  139. package/node/StepConnector/StepConnector.js +14 -11
  140. package/node/StepContent/StepContent.js +1 -1
  141. package/node/StepIcon/StepIcon.js +2 -1
  142. package/node/Switch/Switch.js +11 -11
  143. package/node/TableCell/TableCell.js +5 -5
  144. package/node/Tabs/Tabs.js +6 -0
  145. package/node/Tooltip/Tooltip.js +1 -1
  146. package/node/index.js +1 -1
  147. package/node/styles/CssVarsProvider.js +4 -1
  148. package/node/styles/experimental_extendTheme.js +112 -17
  149. package/package.json +6 -7
  150. package/styles/CssVarsProvider.js +4 -1
  151. package/styles/createPalette.d.ts +65 -2
  152. package/styles/experimental_extendTheme.js +114 -18
  153. package/umd/material-ui.development.js +767 -414
  154. package/umd/material-ui.production.min.js +27 -22
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.8.2
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.
@@ -1330,32 +1330,6 @@
1330
1330
  var reactIs_5 = reactIs.Memo;
1331
1331
  reactIs.isValidElementType;
1332
1332
 
1333
- /**
1334
- * Copyright 2015, Yahoo! Inc.
1335
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
1336
- */
1337
- var REACT_STATICS = {
1338
- childContextTypes: true,
1339
- contextType: true,
1340
- contextTypes: true,
1341
- defaultProps: true,
1342
- displayName: true,
1343
- getDefaultProps: true,
1344
- getDerivedStateFromError: true,
1345
- getDerivedStateFromProps: true,
1346
- mixins: true,
1347
- propTypes: true,
1348
- type: true
1349
- };
1350
- var KNOWN_STATICS = {
1351
- name: true,
1352
- length: true,
1353
- prototype: true,
1354
- caller: true,
1355
- callee: true,
1356
- arguments: true,
1357
- arity: true
1358
- };
1359
1333
  var FORWARD_REF_STATICS = {
1360
1334
  '$$typeof': true,
1361
1335
  render: true,
@@ -1375,61 +1349,6 @@
1375
1349
  TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1376
1350
  TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1377
1351
 
1378
- function getStatics(component) {
1379
- // React v16.11 and below
1380
- if (reactIs.isMemo(component)) {
1381
- return MEMO_STATICS;
1382
- } // React v16.12 and above
1383
-
1384
-
1385
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
1386
- }
1387
-
1388
- var defineProperty = Object.defineProperty;
1389
- var getOwnPropertyNames = Object.getOwnPropertyNames;
1390
- var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
1391
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1392
- var getPrototypeOf = Object.getPrototypeOf;
1393
- var objectPrototype = Object.prototype;
1394
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
1395
- if (typeof sourceComponent !== 'string') {
1396
- // don't hoist over string (html) components
1397
- if (objectPrototype) {
1398
- var inheritedComponent = getPrototypeOf(sourceComponent);
1399
-
1400
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
1401
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
1402
- }
1403
- }
1404
-
1405
- var keys = getOwnPropertyNames(sourceComponent);
1406
-
1407
- if (getOwnPropertySymbols$1) {
1408
- keys = keys.concat(getOwnPropertySymbols$1(sourceComponent));
1409
- }
1410
-
1411
- var targetStatics = getStatics(targetComponent);
1412
- var sourceStatics = getStatics(sourceComponent);
1413
-
1414
- for (var i = 0; i < keys.length; ++i) {
1415
- var key = keys[i];
1416
-
1417
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
1418
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
1419
-
1420
- try {
1421
- // Avoid failures from read-only properties
1422
- defineProperty(targetComponent, key, descriptor);
1423
- } catch (e) {}
1424
- }
1425
- }
1426
- }
1427
-
1428
- return targetComponent;
1429
- }
1430
-
1431
- var hoistNonReactStatics_cjs = hoistNonReactStatics;
1432
-
1433
1352
  var isBrowser$4 = typeof document !== 'undefined';
1434
1353
  function getRegisteredStyles(registered, registeredStyles, classNames) {
1435
1354
  var rawClassName = '';
@@ -4793,7 +4712,7 @@
4793
4712
 
4794
4713
  if (element == null || // When server-side rendering React doesn't warn either.
4795
4714
  // This is not an accurate check for SSR.
4796
- // This is only in place for emotion compat.
4715
+ // This is only in place for Emotion compat.
4797
4716
  // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
4798
4717
  typeof window === 'undefined') {
4799
4718
  return null;
@@ -5762,9 +5681,11 @@
5762
5681
  if (Array.isArray(breakpointValues)) {
5763
5682
  acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];
5764
5683
  previous = i;
5765
- } else {
5766
- acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous] || breakpointValues;
5684
+ } else if (typeof breakpointValues === 'object') {
5685
+ acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];
5767
5686
  previous = breakpoint;
5687
+ } else {
5688
+ acc[breakpoint] = breakpointValues;
5768
5689
  }
5769
5690
 
5770
5691
  return acc;
@@ -6468,7 +6389,7 @@
6468
6389
  } = props || {};
6469
6390
 
6470
6391
  if (!sx) {
6471
- return null; // emotion & styled-components will neglect null
6392
+ return null; // Emotion & styled-components will neglect null
6472
6393
  }
6473
6394
  /*
6474
6395
  * Receive `sxInput` as object or callback
@@ -6534,7 +6455,7 @@
6534
6455
  styleFunctionSx.filterProps = ['sx'];
6535
6456
  var defaultStyleFunctionSx = styleFunctionSx;
6536
6457
 
6537
- const _excluded$2l = ["sx"];
6458
+ const _excluded$2m = ["sx"];
6538
6459
 
6539
6460
  const splitProps = props => {
6540
6461
  const result = {
@@ -6555,7 +6476,7 @@
6555
6476
  const {
6556
6477
  sx: inSx
6557
6478
  } = props,
6558
- other = _objectWithoutPropertiesLoose(props, _excluded$2l);
6479
+ other = _objectWithoutPropertiesLoose(props, _excluded$2m);
6559
6480
 
6560
6481
  const {
6561
6482
  systemProps,
@@ -6634,7 +6555,7 @@
6634
6555
  return str;
6635
6556
  }
6636
6557
 
6637
- const _excluded$2k = ["values", "unit", "step"];
6558
+ const _excluded$2l = ["values", "unit", "step"];
6638
6559
 
6639
6560
  const sortBreakpointsValues = values => {
6640
6561
  const breakpointsAsArray = Object.keys(values).map(key => ({
@@ -6670,7 +6591,7 @@
6670
6591
  unit = 'px',
6671
6592
  step = 5
6672
6593
  } = breakpoints,
6673
- other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2k);
6594
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2l);
6674
6595
 
6675
6596
  const sortedValues = sortBreakpointsValues(values);
6676
6597
  const keys = Object.keys(sortedValues);
@@ -6762,7 +6683,7 @@
6762
6683
  return spacing;
6763
6684
  }
6764
6685
 
6765
- const _excluded$2j = ["breakpoints", "palette", "spacing", "shape"];
6686
+ const _excluded$2k = ["breakpoints", "palette", "spacing", "shape"];
6766
6687
 
6767
6688
  function createTheme$1(options = {}, ...args) {
6768
6689
  const {
@@ -6771,7 +6692,7 @@
6771
6692
  spacing: spacingInput,
6772
6693
  shape: shapeInput = {}
6773
6694
  } = options,
6774
- other = _objectWithoutPropertiesLoose(options, _excluded$2j);
6695
+ other = _objectWithoutPropertiesLoose(options, _excluded$2k);
6775
6696
 
6776
6697
  const breakpoints = createBreakpoints(breakpointsInput);
6777
6698
  const spacing = createSpacing(spacingInput);
@@ -6893,7 +6814,7 @@
6893
6814
  return useTheme$2(defaultTheme);
6894
6815
  }
6895
6816
 
6896
- const _excluded$2i = ["className", "component"];
6817
+ const _excluded$2j = ["className", "component"];
6897
6818
  function createBox(options = {}) {
6898
6819
  const {
6899
6820
  defaultTheme,
@@ -6910,7 +6831,7 @@
6910
6831
  className,
6911
6832
  component = 'div'
6912
6833
  } = _extendSxProp,
6913
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2i);
6834
+ other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2j);
6914
6835
 
6915
6836
  return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
6916
6837
  as: component,
@@ -6922,7 +6843,7 @@
6922
6843
  return Box;
6923
6844
  }
6924
6845
 
6925
- const _excluded$2h = ["variant"];
6846
+ const _excluded$2i = ["variant"];
6926
6847
 
6927
6848
  function isEmpty$2(string) {
6928
6849
  return string.length === 0;
@@ -6938,7 +6859,7 @@
6938
6859
  const {
6939
6860
  variant
6940
6861
  } = props,
6941
- other = _objectWithoutPropertiesLoose(props, _excluded$2h);
6862
+ other = _objectWithoutPropertiesLoose(props, _excluded$2i);
6942
6863
 
6943
6864
  let classKey = variant || '';
6944
6865
  Object.keys(other).sort().forEach(key => {
@@ -6951,7 +6872,7 @@
6951
6872
  return classKey;
6952
6873
  }
6953
6874
 
6954
- const _excluded$2g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6875
+ const _excluded$2h = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6955
6876
  _excluded2$c = ["theme"],
6956
6877
  _excluded3$1 = ["theme"];
6957
6878
 
@@ -7034,7 +6955,7 @@
7034
6955
  skipSx: inputSkipSx,
7035
6956
  overridesResolver
7036
6957
  } = inputOptions,
7037
- 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.
7038
6959
 
7039
6960
 
7040
6961
  const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
@@ -7063,7 +6984,7 @@
7063
6984
 
7064
6985
  const muiStyledResolver = (styleArg, ...expressions) => {
7065
6986
  const expressionsWithDefaultTheme = expressions ? expressions.map(stylesArg => {
7066
- // On the server emotion doesn't use React.forwardRef for creating components, so the created
6987
+ // On the server Emotion doesn't use React.forwardRef for creating components, so the created
7067
6988
  // component stays as a function. This condition makes sure that we do not interpolate functions
7068
6989
  // which are basically components used as a selectors.
7069
6990
  // eslint-disable-next-line no-underscore-dangle
@@ -7122,7 +7043,7 @@
7122
7043
 
7123
7044
  transformedStyleArg = [...styleArg, ...placeholders];
7124
7045
  transformedStyleArg.raw = [...styleArg.raw, ...placeholders];
7125
- } else if (typeof styleArg === 'function' && // On the server emotion doesn't use React.forwardRef for creating components, so the created
7046
+ } else if (typeof styleArg === 'function' && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
7126
7047
  // component stays as a function. This condition makes sure that we do not interpolate functions
7127
7048
  // which are basically components used as a selectors.
7128
7049
  // eslint-disable-next-line no-underscore-dangle
@@ -7243,7 +7164,7 @@
7243
7164
  * Returns an object with the type and values of a color.
7244
7165
  *
7245
7166
  * Note: Does not support rgb % values.
7246
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
7167
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
7247
7168
  * @returns {object} - A MUI color object: {type: string, values: number[]}
7248
7169
  */
7249
7170
 
@@ -7295,7 +7216,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7295
7216
  /**
7296
7217
  * Returns a channel created from the input color.
7297
7218
  *
7298
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
7219
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
7299
7220
  * @returns {string} - The channel for the color, that can be used in rgba or hsla colors
7300
7221
  */
7301
7222
 
@@ -7306,7 +7227,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7306
7227
  /**
7307
7228
  * Converts a color object with type and values to a string.
7308
7229
  * @param {object} color - Decomposed color
7309
- * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
7230
+ * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'
7310
7231
  * @param {array} color.values - [n,n,n] or [n,n,n,n]
7311
7232
  * @returns {string} A CSS color string
7312
7233
  */
@@ -7711,9 +7632,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7711
7632
  };
7712
7633
  }
7713
7634
 
7714
- const DEFAULT_MODE_STORAGE_KEY = 'mui-mode';
7715
- const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'mui-color-scheme';
7716
- const DEFAULT_ATTRIBUTE = 'data-mui-color-scheme';
7635
+ const DEFAULT_MODE_STORAGE_KEY = 'mode';
7636
+ const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';
7637
+ const DEFAULT_ATTRIBUTE = 'data-color-scheme';
7717
7638
  function getInitColorSchemeScript$1(options) {
7718
7639
  const {
7719
7640
  enableSystem = false,
@@ -8005,11 +7926,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8005
7926
  return getCssVar;
8006
7927
  }
8007
7928
 
8008
- const _excluded$2f = ["colorSchemes", "components"];
7929
+ const _excluded$2g = ["colorSchemes", "components"];
8009
7930
  const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
8010
7931
  function createCssVarsProvider(options) {
8011
7932
  const {
8012
7933
  theme: defaultTheme = {},
7934
+ attribute: defaultAttribute = DEFAULT_ATTRIBUTE,
7935
+ modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7936
+ colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
8013
7937
  defaultMode: desisgnSystemMode = 'light',
8014
7938
  defaultColorScheme: designSystemColorScheme,
8015
7939
  disableTransitionOnChange: designSystemTransitionOnChange = false,
@@ -8039,9 +7963,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8039
7963
  children,
8040
7964
  theme: themeProp = defaultTheme,
8041
7965
  prefix = designSystemPrefix,
8042
- modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
8043
- colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
8044
- attribute = DEFAULT_ATTRIBUTE,
7966
+ modeStorageKey = defaultModeStorageKey,
7967
+ colorSchemeStorageKey = defaultColorSchemeStorageKey,
7968
+ attribute = defaultAttribute,
8045
7969
  defaultMode = desisgnSystemMode,
8046
7970
  defaultColorScheme = designSystemColorScheme,
8047
7971
  disableTransitionOnChange = designSystemTransitionOnChange,
@@ -8057,7 +7981,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8057
7981
  colorSchemes = {},
8058
7982
  components = {}
8059
7983
  } = themeProp,
8060
- restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2f);
7984
+ restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2g);
8061
7985
 
8062
7986
  const allColorSchemes = Object.keys(colorSchemes);
8063
7987
  const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
@@ -8300,14 +8224,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8300
8224
  */
8301
8225
  theme: PropTypes.object
8302
8226
  } ;
8227
+
8228
+ const getInitColorSchemeScript = params => getInitColorSchemeScript$1(_extends({
8229
+ attribute: defaultAttribute,
8230
+ colorSchemeStorageKey: defaultColorSchemeStorageKey,
8231
+ modeStorageKey: defaultModeStorageKey
8232
+ }, params));
8233
+
8303
8234
  return {
8304
8235
  CssVarsProvider,
8305
8236
  useColorScheme,
8306
- getInitColorSchemeScript: getInitColorSchemeScript$1
8237
+ getInitColorSchemeScript
8307
8238
  };
8308
8239
  }
8309
8240
 
8310
- const _excluded$2e = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
8241
+ const _excluded$2f = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
8311
8242
  const defaultTheme$4 = createTheme$1();
8312
8243
  const defaultCreateStyledComponent = systemStyled('div', {
8313
8244
  name: 'MuiContainer',
@@ -8409,7 +8340,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8409
8340
  fixed = false,
8410
8341
  maxWidth = 'lg'
8411
8342
  } = props,
8412
- other = _objectWithoutPropertiesLoose(props, _excluded$2e);
8343
+ other = _objectWithoutPropertiesLoose(props, _excluded$2f);
8413
8344
 
8414
8345
  const ownerState = _extends({}, props, {
8415
8346
  component,
@@ -8449,7 +8380,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8449
8380
  return Container;
8450
8381
  }
8451
8382
 
8452
- const _excluded$2d = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8383
+ const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8453
8384
  _excluded2$b = ["type", "mode"];
8454
8385
  function adaptV4Theme(inputTheme) {
8455
8386
  {
@@ -8464,7 +8395,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8464
8395
  props = {},
8465
8396
  styleOverrides = {}
8466
8397
  } = inputTheme,
8467
- other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2d);
8398
+ other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2e);
8468
8399
 
8469
8400
  const theme = _extends({}, other, {
8470
8401
  components: {}
@@ -8554,6 +8485,154 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8554
8485
  });
8555
8486
  }
8556
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
+
8557
8636
  // Give up on IE11 support for this feature
8558
8637
 
8559
8638
  function stripDiacritics(string) {
@@ -9627,7 +9706,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9627
9706
  }
9628
9707
  generateUtilityClasses('BaseBadge', ['root', 'badge', 'invisible']);
9629
9708
 
9630
- const _excluded$2c = ["badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero"];
9709
+ const _excluded$2c = ["badgeContent", "component", "children", "components", "componentsProps", "invisible", "max", "showZero"];
9631
9710
 
9632
9711
  const useUtilityClasses$1O = ownerState => {
9633
9712
  const {
@@ -9652,12 +9731,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9652
9731
 
9653
9732
 
9654
9733
  const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
9655
- var _componentsProps$root, _componentsProps$badg;
9656
-
9657
9734
  const {
9658
9735
  component,
9659
9736
  children,
9660
- className,
9661
9737
  components = {},
9662
9738
  componentsProps = {},
9663
9739
  max: maxProp = 99,
@@ -9683,14 +9759,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9683
9759
 
9684
9760
  const classes = useUtilityClasses$1O(ownerState);
9685
9761
  const Root = component || components.Root || 'span';
9686
- const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root, {
9687
- ref,
9688
- className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className)
9689
- }), 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
+ });
9690
9772
  const Badge = components.Badge || 'span';
9691
- const badgeProps = appendOwnerState(Badge, _extends({}, componentsProps.badge, {
9692
- className: clsx(classes.badge, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.className)
9693
- }), ownerState);
9773
+ const badgeProps = useSlotProps({
9774
+ elementType: Badge,
9775
+ externalSlotProps: componentsProps.badge,
9776
+ ownerState,
9777
+ className: classes.badge
9778
+ });
9694
9779
  return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
9695
9780
  children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
9696
9781
  children: displayValue
@@ -9715,11 +9800,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9715
9800
  */
9716
9801
  children: PropTypes.node,
9717
9802
 
9718
- /**
9719
- * @ignore
9720
- */
9721
- className: PropTypes.string,
9722
-
9723
9803
  /**
9724
9804
  * The component used for the root node.
9725
9805
  * Either a string to use a HTML element or a component.
@@ -9741,8 +9821,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9741
9821
  * @default {}
9742
9822
  */
9743
9823
  componentsProps: PropTypes.shape({
9744
- badge: PropTypes.object,
9745
- root: PropTypes.object
9824
+ badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
9825
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
9746
9826
  }),
9747
9827
 
9748
9828
  /**
@@ -12368,11 +12448,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12368
12448
  return parseInt(ownerWindow(element).getComputedStyle(element).paddingRight, 10) || 0;
12369
12449
  }
12370
12450
 
12451
+ function isAriaHiddenForbiddenOnElement(element) {
12452
+ // The forbidden HTML tags are the ones from ARIA specification that
12453
+ // can be children of body and can't have aria-hidden attribute.
12454
+ // cf. https://www.w3.org/TR/html-aria/#docconformance
12455
+ const forbiddenTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE', 'LINK', 'MAP', 'META', 'NOSCRIPT', 'PICTURE', 'COL', 'COLGROUP', 'PARAM', 'SLOT', 'SOURCE', 'TRACK'];
12456
+ const isForbiddenTagName = forbiddenTagNames.indexOf(element.tagName) !== -1;
12457
+ const isInputHidden = element.tagName === 'INPUT' && element.getAttribute('type') === 'hidden';
12458
+ return isForbiddenTagName || isInputHidden;
12459
+ }
12460
+
12371
12461
  function ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude = [], show) {
12372
12462
  const blacklist = [mountElement, currentElement, ...elementsToExclude];
12373
- const blacklistTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE'];
12374
12463
  [].forEach.call(container.children, element => {
12375
- if (blacklist.indexOf(element) === -1 && blacklistTagNames.indexOf(element.tagName) === -1) {
12464
+ const isNotExcludedElement = blacklist.indexOf(element) === -1;
12465
+ const isNotForbiddenElement = !isAriaHiddenForbiddenOnElement(element);
12466
+
12467
+ if (isNotExcludedElement && isNotForbiddenElement) {
12376
12468
  ariaHidden(element, show);
12377
12469
  }
12378
12470
  });
@@ -12524,7 +12616,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12524
12616
  }
12525
12617
  }
12526
12618
 
12527
- remove(modal) {
12619
+ remove(modal, ariaHiddenState = true) {
12528
12620
  const modalIndex = this.modals.indexOf(modal);
12529
12621
 
12530
12622
  if (modalIndex === -1) {
@@ -12544,7 +12636,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12544
12636
 
12545
12637
  if (modal.modalRef) {
12546
12638
  // In case the modal wasn't in the DOM yet.
12547
- ariaHidden(modal.modalRef, true);
12639
+ ariaHidden(modal.modalRef, ariaHiddenState);
12548
12640
  }
12549
12641
 
12550
12642
  ariaHiddenSiblings(containerInfo.container, modal.mount, modal.modalRef, containerInfo.hiddenSiblings, false);
@@ -12932,7 +13024,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12932
13024
  const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
12933
13025
  var modalUnstyledClasses$1 = modalUnstyledClasses;
12934
13026
 
12935
- 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"];
12936
13028
 
12937
13029
  const useUtilityClasses$1N = ownerState => {
12938
13030
  const {
@@ -12972,9 +13064,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12972
13064
  */
12973
13065
 
12974
13066
  const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, ref) {
13067
+ var _props$ariaHidden, _componentsProps$root;
13068
+
12975
13069
  const {
12976
- BackdropComponent,
12977
- BackdropProps,
12978
13070
  children,
12979
13071
  classes: classesProp,
12980
13072
  className,
@@ -13000,7 +13092,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13000
13092
  open,
13001
13093
 
13002
13094
  /* eslint-disable react/prop-types */
13003
- theme,
13004
13095
  onTransitionEnter,
13005
13096
  onTransitionExited
13006
13097
  } = props,
@@ -13012,6 +13103,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13012
13103
  const modalRef = React__namespace.useRef(null);
13013
13104
  const handleRef = useForkRef(modalRef, ref);
13014
13105
  const hasTransition = getHasTransition(props);
13106
+ const ariaHiddenProp = (_props$ariaHidden = props['aria-hidden']) != null ? _props$ariaHidden : true;
13015
13107
 
13016
13108
  const getDoc = () => ownerDocument(mountNodeRef.current);
13017
13109
 
@@ -13048,12 +13140,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13048
13140
  if (open && isTopModal()) {
13049
13141
  handleMounted();
13050
13142
  } else {
13051
- ariaHidden(modalRef.current, true);
13143
+ ariaHidden(modalRef.current, ariaHiddenProp);
13052
13144
  }
13053
13145
  });
13054
13146
  const handleClose = React__namespace.useCallback(() => {
13055
- manager.remove(getModal());
13056
- }, [manager]);
13147
+ manager.remove(getModal(), ariaHiddenProp);
13148
+ }, [manager, ariaHiddenProp]);
13057
13149
  React__namespace.useEffect(() => {
13058
13150
  return () => {
13059
13151
  handleClose();
@@ -13159,26 +13251,25 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13159
13251
  }
13160
13252
 
13161
13253
  const Root = components.Root || component;
13162
- 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);
13163
13267
  return /*#__PURE__*/jsxRuntime_1(Portal$1, {
13164
13268
  ref: handlePortalRef,
13165
13269
  container: container,
13166
13270
  disablePortal: disablePortal,
13167
- children: /*#__PURE__*/jsxRuntime_2(Root, _extends({
13168
- role: "presentation"
13169
- }, rootProps, !isHostComponent(Root) && {
13170
- as: component,
13171
- ownerState: _extends({}, ownerState, rootProps.ownerState),
13172
- theme
13173
- }, other, {
13174
- ref: handleRef,
13175
- onKeyDown: handleKeyDown,
13176
- className: clsx(classes.root, rootProps.className, className),
13177
- children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntime_1(BackdropComponent, _extends({
13178
- "aria-hidden": true,
13179
- open: open,
13180
- onClick: handleBackdropClick
13181
- }, 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, {
13182
13273
  disableEnforceFocus: disableEnforceFocus,
13183
13274
  disableAutoFocus: disableAutoFocus,
13184
13275
  disableRestoreFocus: disableRestoreFocus,
@@ -13197,16 +13288,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13197
13288
  // | To update them edit the d.ts file and run "yarn proptypes" |
13198
13289
  // ----------------------------------------------------------------------
13199
13290
 
13200
- /**
13201
- * A backdrop component. This prop enables custom backdrop rendering.
13202
- */
13203
- BackdropComponent: PropTypes.elementType,
13204
-
13205
- /**
13206
- * Props applied to the backdrop element.
13207
- */
13208
- BackdropProps: PropTypes.object,
13209
-
13210
13291
  /**
13211
13292
  * A single child content element.
13212
13293
  */
@@ -13240,6 +13321,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13240
13321
  * @default {}
13241
13322
  */
13242
13323
  components: PropTypes.shape({
13324
+ Backdrop: PropTypes.elementType,
13243
13325
  Root: PropTypes.elementType
13244
13326
  }),
13245
13327
 
@@ -13248,6 +13330,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13248
13330
  * @default {}
13249
13331
  */
13250
13332
  componentsProps: PropTypes.shape({
13333
+ backdrop: PropTypes.object,
13251
13334
  root: PropTypes.object
13252
13335
  }),
13253
13336
 
@@ -13450,7 +13533,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13450
13533
  })]
13451
13534
  }));
13452
13535
  }
13453
-
13454
13536
  SliderValueLabelUnstyled.propTypes = {
13455
13537
  children: PropTypes.element.isRequired,
13456
13538
  className: PropTypes.string,
@@ -14138,14 +14220,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14138
14220
 
14139
14221
  return {
14140
14222
  active,
14141
- axis,
14223
+ axis: axis,
14142
14224
  axisProps,
14143
14225
  dragging,
14144
14226
  focusVisible,
14145
14227
  getHiddenInputProps,
14146
14228
  getRootProps,
14147
14229
  getThumbProps,
14148
- marks,
14230
+ marks: marks,
14149
14231
  open,
14150
14232
  range,
14151
14233
  trackLeap,
@@ -14441,12 +14523,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14441
14523
  thumb: PropTypes.object,
14442
14524
  track: PropTypes.object,
14443
14525
  valueLabel: PropTypes.shape({
14526
+ children: PropTypes.element,
14444
14527
  className: PropTypes.string,
14445
14528
  components: PropTypes.shape({
14446
14529
  Root: PropTypes.elementType
14447
14530
  }),
14531
+ open: PropTypes.bool,
14448
14532
  style: PropTypes.object,
14449
- value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
14533
+ value: PropTypes.number,
14450
14534
  valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
14451
14535
  })
14452
14536
  }),
@@ -15889,6 +15973,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15889
15973
  const overlay = getOverlayAlpha(index);
15890
15974
  return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
15891
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
+
15892
15989
  function extendTheme(options = {}, ...args) {
15893
15990
  var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
15894
15991
 
@@ -15918,16 +16015,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15918
16015
  light: _extends({}, colorSchemesInput.light, {
15919
16016
  palette: lightPalette,
15920
16017
  opacity: _extends({
15921
- placeholder: 0.42,
15922
- inputTouchBottomLine: 0.42
16018
+ inputPlaceholder: 0.42,
16019
+ inputTouchBottomLine: 0.42,
16020
+ switchTrackDisabled: 0.12,
16021
+ switchTrack: 0.38
15923
16022
  }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
15924
16023
  overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
15925
16024
  }),
15926
16025
  dark: _extends({}, colorSchemesInput.dark, {
15927
16026
  palette: darkPalette,
15928
16027
  opacity: _extends({
15929
- placeholder: 0.5,
15930
- inputTouchBottomLine: 0.7
16028
+ inputPlaceholder: 0.5,
16029
+ inputTouchBottomLine: 0.7,
16030
+ switchTrackDisabled: 0.2,
16031
+ switchTrack: 0.3
15931
16032
  }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
15932
16033
  overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
15933
16034
  })
@@ -15937,23 +16038,98 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15937
16038
  Object.keys(theme.colorSchemes).forEach(key => {
15938
16039
  const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
15939
16040
 
15940
- if (key === 'dark') {
15941
- palette.common.background = palette.common.background || '#000';
15942
- 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));
15943
16088
  } else {
15944
- palette.common.background = palette.common.background || '#fff';
15945
- 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));
15946
16128
  }
15947
16129
 
15948
16130
  palette.common.backgroundChannel = colorChannel(palette.common.background);
15949
16131
  palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
15950
- palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
15951
- // TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
15952
-
15953
- if (!palette.grey.dark) {
15954
- palette.grey.dark = palette.grey[700];
15955
- }
15956
-
16132
+ palette.dividerChannel = colorChannel(palette.divider);
15957
16133
  Object.keys(palette).forEach(color => {
15958
16134
  const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
15959
16135
 
@@ -15980,12 +16156,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15980
16156
 
15981
16157
  if (colors.secondary) {
15982
16158
  palette[color].secondaryChannel = colorChannel(colors.secondary);
15983
- } // Action colors: action.activeChannel
16159
+ } // Action colors: action.active, action.selected
15984
16160
 
15985
16161
 
15986
16162
  if (colors.active) {
15987
16163
  palette[color].activeChannel = colorChannel(colors.active);
15988
16164
  }
16165
+
16166
+ if (colors.selected) {
16167
+ palette[color].selectedChannel = colorChannel(colors.selected);
16168
+ }
15989
16169
  });
15990
16170
  });
15991
16171
  theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
@@ -15999,11 +16179,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15999
16179
  getInitColorSchemeScript
16000
16180
  } = createCssVarsProvider({
16001
16181
  theme: defaultTheme$1,
16182
+ attribute: 'data-mui-color-scheme',
16183
+ modeStorageKey: 'mui-mode',
16184
+ colorSchemeStorageKey: 'mui-color-scheme',
16002
16185
  defaultColorScheme: {
16003
16186
  light: 'light',
16004
16187
  dark: 'dark'
16005
16188
  },
16006
- prefix: 'md',
16189
+ prefix: 'mui',
16007
16190
  resolveTheme: theme => {
16008
16191
  const newTheme = _extends({}, theme, {
16009
16192
  typography: createTypography(theme.palette, theme.typography)
@@ -19586,7 +19769,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19586
19769
  slot: 'Message',
19587
19770
  overridesResolver: (props, styles) => styles.message
19588
19771
  })({
19589
- padding: '8px 0'
19772
+ padding: '8px 0',
19773
+ minWidth: 0,
19774
+ overflow: 'auto'
19590
19775
  });
19591
19776
  const AlertAction = styled$1('div', {
19592
19777
  name: 'MuiAlert',
@@ -20085,7 +20270,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20085
20270
  root: ['root', `color${capitalize(color)}`, `position${capitalize(position)}`]
20086
20271
  };
20087
20272
  return composeClasses(slots, getAppBarUtilityClass, classes);
20088
- };
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})`;
20089
20278
 
20090
20279
  const AppBarRoot = styled$1(Paper$1, {
20091
20280
  name: 'MuiAppBar',
@@ -20110,7 +20299,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20110
20299
  flexShrink: 0
20111
20300
  }, ownerState.position === 'fixed' && {
20112
20301
  position: 'fixed',
20113
- zIndex: theme.zIndex.appBar,
20302
+ zIndex: (theme.vars || theme).zIndex.appBar,
20114
20303
  top: 0,
20115
20304
  left: 'auto',
20116
20305
  right: 0,
@@ -20120,14 +20309,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20120
20309
  }
20121
20310
  }, ownerState.position === 'absolute' && {
20122
20311
  position: 'absolute',
20123
- zIndex: theme.zIndex.appBar,
20312
+ zIndex: (theme.vars || theme).zIndex.appBar,
20124
20313
  top: 0,
20125
20314
  left: 'auto',
20126
20315
  right: 0
20127
20316
  }, ownerState.position === 'sticky' && {
20128
20317
  // ⚠️ sticky is not supported by IE11.
20129
20318
  position: 'sticky',
20130
- zIndex: theme.zIndex.appBar,
20319
+ zIndex: (theme.vars || theme).zIndex.appBar,
20131
20320
  top: 0,
20132
20321
  left: 'auto',
20133
20322
  right: 0
@@ -20135,7 +20324,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20135
20324
  position: 'static'
20136
20325
  }, ownerState.position === 'relative' && {
20137
20326
  position: 'relative'
20138
- }, ownerState.color === 'default' && {
20327
+ }, !theme.vars && _extends({}, ownerState.color === 'default' && {
20139
20328
  backgroundColor: backgroundColorDefault,
20140
20329
  color: theme.palette.getContrastText(backgroundColorDefault)
20141
20330
  }, ownerState.color && ownerState.color !== 'default' && ownerState.color !== 'inherit' && ownerState.color !== 'transparent' && {
@@ -20151,6 +20340,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20151
20340
  color: 'inherit'
20152
20341
  }, theme.palette.mode === 'dark' && {
20153
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'
20154
20356
  }));
20155
20357
  });
20156
20358
  const AppBar = /*#__PURE__*/React__namespace.forwardRef(function AppBar(inProps, ref) {
@@ -20600,6 +20802,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20600
20802
  ownerState
20601
20803
  }) => {
20602
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];
20603
20806
  return _extends({
20604
20807
  maxWidth: '100%',
20605
20808
  fontFamily: theme.typography.fontFamily,
@@ -20608,8 +20811,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20608
20811
  alignItems: 'center',
20609
20812
  justifyContent: 'center',
20610
20813
  height: 32,
20611
- color: theme.palette.text.primary,
20612
- backgroundColor: theme.palette.action.selected,
20814
+ color: (theme.vars || theme).palette.text.primary,
20815
+ backgroundColor: (theme.vars || theme).palette.action.selected,
20613
20816
  borderRadius: 32 / 2,
20614
20817
  whiteSpace: 'nowrap',
20615
20818
  transition: theme.transitions.create(['background-color', 'box-shadow']),
@@ -20625,7 +20828,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20625
20828
  verticalAlign: 'middle',
20626
20829
  boxSizing: 'border-box',
20627
20830
  [`&.${chipClasses$1.disabled}`]: {
20628
- opacity: theme.palette.action.disabledOpacity,
20831
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
20629
20832
  pointerEvents: 'none'
20630
20833
  },
20631
20834
  [`& .${chipClasses$1.avatar}`]: {
@@ -20633,16 +20836,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20633
20836
  marginRight: -6,
20634
20837
  width: 24,
20635
20838
  height: 24,
20636
- color: theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300],
20839
+ color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
20637
20840
  fontSize: theme.typography.pxToRem(12)
20638
20841
  },
20639
20842
  [`& .${chipClasses$1.avatarColorPrimary}`]: {
20640
- color: theme.palette.primary.contrastText,
20641
- backgroundColor: theme.palette.primary.dark
20843
+ color: (theme.vars || theme).palette.primary.contrastText,
20844
+ backgroundColor: (theme.vars || theme).palette.primary.dark
20642
20845
  },
20643
20846
  [`& .${chipClasses$1.avatarColorSecondary}`]: {
20644
- color: theme.palette.secondary.contrastText,
20645
- backgroundColor: theme.palette.secondary.dark
20847
+ color: (theme.vars || theme).palette.secondary.contrastText,
20848
+ backgroundColor: (theme.vars || theme).palette.secondary.dark
20646
20849
  },
20647
20850
  [`& .${chipClasses$1.avatarSmall}`]: {
20648
20851
  marginLeft: 4,
@@ -20652,7 +20855,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20652
20855
  fontSize: theme.typography.pxToRem(10)
20653
20856
  },
20654
20857
  [`& .${chipClasses$1.icon}`]: _extends({
20655
- color: theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300],
20858
+ color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor,
20656
20859
  marginLeft: 5,
20657
20860
  marginRight: -6
20658
20861
  }, ownerState.size === 'small' && {
@@ -20664,35 +20867,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20664
20867
  }),
20665
20868
  [`& .${chipClasses$1.deleteIcon}`]: _extends({
20666
20869
  WebkitTapHighlightColor: 'transparent',
20667
- color: deleteIconColor,
20870
+ color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : deleteIconColor,
20668
20871
  fontSize: 22,
20669
20872
  cursor: 'pointer',
20670
20873
  margin: '0 5px 0 -6px',
20671
20874
  '&:hover': {
20672
- color: alpha(deleteIconColor, 0.4)
20875
+ color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.4)` : alpha(deleteIconColor, 0.4)
20673
20876
  }
20674
20877
  }, ownerState.size === 'small' && {
20675
20878
  fontSize: 16,
20676
20879
  marginRight: 4,
20677
20880
  marginLeft: -4
20678
20881
  }, ownerState.color !== 'default' && {
20679
- 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),
20680
20883
  '&:hover, &:active': {
20681
- color: theme.palette[ownerState.color].contrastText
20884
+ color: (theme.vars || theme).palette[ownerState.color].contrastText
20682
20885
  }
20683
20886
  })
20684
20887
  }, ownerState.size === 'small' && {
20685
20888
  height: 24
20686
20889
  }, ownerState.color !== 'default' && {
20687
- backgroundColor: theme.palette[ownerState.color].main,
20688
- color: theme.palette[ownerState.color].contrastText
20890
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
20891
+ color: (theme.vars || theme).palette[ownerState.color].contrastText
20689
20892
  }, ownerState.onDelete && {
20690
20893
  [`&.${chipClasses$1.focusVisible}`]: {
20691
- 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)
20692
20895
  }
20693
20896
  }, ownerState.onDelete && ownerState.color !== 'default' && {
20694
20897
  [`&.${chipClasses$1.focusVisible}`]: {
20695
- backgroundColor: theme.palette[ownerState.color].dark
20898
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
20696
20899
  }
20697
20900
  });
20698
20901
  }, ({
@@ -20703,29 +20906,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20703
20906
  WebkitTapHighlightColor: 'transparent',
20704
20907
  cursor: 'pointer',
20705
20908
  '&:hover': {
20706
- 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)
20707
20910
  },
20708
20911
  [`&.${chipClasses$1.focusVisible}`]: {
20709
- 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)
20710
20913
  },
20711
20914
  '&:active': {
20712
- boxShadow: theme.shadows[1]
20915
+ boxShadow: (theme.vars || theme).shadows[1]
20713
20916
  }
20714
20917
  }, ownerState.clickable && ownerState.color !== 'default' && {
20715
20918
  [`&:hover, &.${chipClasses$1.focusVisible}`]: {
20716
- backgroundColor: theme.palette[ownerState.color].dark
20919
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
20717
20920
  }
20718
20921
  }), ({
20719
20922
  theme,
20720
20923
  ownerState
20721
20924
  }) => _extends({}, ownerState.variant === 'outlined' && {
20722
20925
  backgroundColor: 'transparent',
20723
- 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]}`,
20724
20927
  [`&.${chipClasses$1.clickable}:hover`]: {
20725
- backgroundColor: theme.palette.action.hover
20928
+ backgroundColor: (theme.vars || theme).palette.action.hover
20726
20929
  },
20727
20930
  [`&.${chipClasses$1.focusVisible}`]: {
20728
- backgroundColor: theme.palette.action.focus
20931
+ backgroundColor: (theme.vars || theme).palette.action.focus
20729
20932
  },
20730
20933
  [`& .${chipClasses$1.avatar}`]: {
20731
20934
  marginLeft: 4
@@ -20746,18 +20949,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20746
20949
  marginRight: 3
20747
20950
  }
20748
20951
  }, ownerState.variant === 'outlined' && ownerState.color !== 'default' && {
20749
- color: theme.palette[ownerState.color].main,
20750
- 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)}`,
20751
20954
  [`&.${chipClasses$1.clickable}:hover`]: {
20752
- 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)
20753
20956
  },
20754
20957
  [`&.${chipClasses$1.focusVisible}`]: {
20755
- 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)
20756
20959
  },
20757
20960
  [`& .${chipClasses$1.deleteIcon}`]: {
20758
- 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),
20759
20962
  '&:hover, &:active': {
20760
- color: theme.palette[ownerState.color].main
20963
+ color: (theme.vars || theme).palette[ownerState.color].main
20761
20964
  }
20762
20965
  }
20763
20966
  }));
@@ -21221,7 +21424,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21221
21424
  const placeholder = _extends({
21222
21425
  color: 'currentColor'
21223
21426
  }, theme.vars ? {
21224
- opacity: theme.vars.opacity.placeholder
21427
+ opacity: theme.vars.opacity.inputPlaceholder
21225
21428
  } : {
21226
21429
  opacity: light ? 0.42 : 0.5
21227
21430
  }, {
@@ -21234,7 +21437,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21234
21437
  opacity: '0 !important'
21235
21438
  };
21236
21439
  const placeholderVisible = theme.vars ? {
21237
- opacity: theme.vars.opacity.placeholder
21440
+ opacity: theme.vars.opacity.inputPlaceholder
21238
21441
  } : {
21239
21442
  opacity: light ? 0.42 : 0.5
21240
21443
  };
@@ -23011,13 +23214,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23011
23214
  overflow: 'hidden',
23012
23215
  userSelect: 'none'
23013
23216
  }, ownerState.variant === 'rounded' && {
23014
- borderRadius: theme.shape.borderRadius
23217
+ borderRadius: (theme.vars || theme).shape.borderRadius
23015
23218
  }, ownerState.variant === 'square' && {
23016
23219
  borderRadius: 0
23017
- }, ownerState.colorDefault && {
23018
- 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
+ } : {
23019
23225
  backgroundColor: theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
23020
- }));
23226
+ })));
23021
23227
  const AvatarImg = styled$1('img', {
23022
23228
  name: 'MuiAvatar',
23023
23229
  slot: 'Img',
@@ -24128,8 +24334,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24128
24334
  * @default {}
24129
24335
  */
24130
24336
  componentsProps: PropTypes.shape({
24131
- badge: PropTypes.object,
24132
- root: PropTypes.object
24337
+ badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
24338
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
24133
24339
  }),
24134
24340
 
24135
24341
  /**
@@ -24812,7 +25018,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24812
25018
  function getButtonUtilityClass(slot) {
24813
25019
  return generateUtilityClass('MuiButton', slot);
24814
25020
  }
24815
- const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
25021
+ const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
24816
25022
  var buttonClasses$1 = buttonClasses;
24817
25023
 
24818
25024
  /**
@@ -26605,10 +26811,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26605
26811
  theme,
26606
26812
  ownerState
26607
26813
  }) => _extends({
26608
- color: theme.palette.text.secondary
26814
+ color: (theme.vars || theme).palette.text.secondary
26609
26815
  }, !ownerState.disableRipple && {
26610
26816
  '&:hover': {
26611
- backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
26817
+ backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
26612
26818
  // Reset on touch devices, it doesn't add specificity
26613
26819
  '@media (hover: none)': {
26614
26820
  backgroundColor: 'transparent'
@@ -26616,10 +26822,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26616
26822
  }
26617
26823
  }, ownerState.color !== 'default' && {
26618
26824
  [`&.${checkboxClasses$1.checked}, &.${checkboxClasses$1.indeterminate}`]: {
26619
- color: theme.palette[ownerState.color].main
26825
+ color: (theme.vars || theme).palette[ownerState.color].main
26620
26826
  },
26621
26827
  [`&.${checkboxClasses$1.disabled}`]: {
26622
- color: theme.palette.action.disabled
26828
+ color: (theme.vars || theme).palette.action.disabled
26623
26829
  }
26624
26830
  }));
26625
26831
 
@@ -27267,7 +27473,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27267
27473
  };
27268
27474
  }
27269
27475
 
27270
- 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"];
27271
27477
  const modalClasses = modalUnstyledClasses$1;
27272
27478
 
27273
27479
  const extendUtilityClasses$1 = ownerState => {
@@ -27320,7 +27526,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27320
27526
  */
27321
27527
 
27322
27528
  const Modal = /*#__PURE__*/React__namespace.forwardRef(function Modal(inProps, ref) {
27323
- var _componentsProps$root;
27529
+ var _ref, _components$Root;
27324
27530
 
27325
27531
  const props = useThemeProps({
27326
27532
  name: 'MuiModal',
@@ -27329,8 +27535,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27329
27535
 
27330
27536
  const {
27331
27537
  BackdropComponent = ModalBackdrop,
27538
+ BackdropProps,
27332
27539
  closeAfterTransition = false,
27333
27540
  children,
27541
+ component,
27334
27542
  components = {},
27335
27543
  componentsProps = {},
27336
27544
  disableAutoFocus = false,
@@ -27340,7 +27548,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27340
27548
  disableRestoreFocus = false,
27341
27549
  disableScrollLock = false,
27342
27550
  hideBackdrop = false,
27343
- keepMounted = false
27551
+ keepMounted = false,
27552
+ // eslint-disable-next-line react/prop-types
27553
+ theme
27344
27554
  } = props,
27345
27555
  other = _objectWithoutPropertiesLoose(props, _excluded$1t);
27346
27556
 
@@ -27362,16 +27572,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27362
27572
  });
27363
27573
 
27364
27574
  const classes = extendUtilityClasses$1(ownerState);
27575
+ const Root = (_ref = (_components$Root = components.Root) != null ? _components$Root : component) != null ? _ref : ModalRoot;
27365
27576
  return /*#__PURE__*/jsxRuntime_1(ModalUnstyled$1, _extends({
27366
27577
  components: _extends({
27367
- Root: ModalRoot
27578
+ Root,
27579
+ Backdrop: BackdropComponent
27368
27580
  }, components),
27369
27581
  componentsProps: {
27370
- root: _extends({}, componentsProps.root, (!components.Root || !isHostComponent(components.Root)) && {
27371
- ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState)
27372
- })
27582
+ root: _extends({}, componentsProps.root, !isHostComponent(Root) && {
27583
+ as: component,
27584
+ theme
27585
+ }),
27586
+ backdrop: _extends({}, BackdropProps, componentsProps.backdrop)
27373
27587
  },
27374
- BackdropComponent: BackdropComponent,
27375
27588
  onTransitionEnter: () => setExited(false),
27376
27589
  onTransitionExited: () => setExited(true),
27377
27590
  ref: ref
@@ -27391,6 +27604,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27391
27604
 
27392
27605
  /**
27393
27606
  * A backdrop component. This prop enables custom backdrop rendering.
27607
+ * @deprecated Use `components.Backdrop` instead.
27394
27608
  * @default styled(Backdrop, {
27395
27609
  * name: 'MuiModal',
27396
27610
  * slot: 'Backdrop',
@@ -27405,6 +27619,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27405
27619
 
27406
27620
  /**
27407
27621
  * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
27622
+ * @deprecated Use `componentsProps.backdrop` instead.
27408
27623
  */
27409
27624
  BackdropProps: PropTypes.object,
27410
27625
 
@@ -27424,12 +27639,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27424
27639
  */
27425
27640
  closeAfterTransition: PropTypes.bool,
27426
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
+
27427
27648
  /**
27428
27649
  * The components used for each slot inside the Modal.
27429
27650
  * Either a string to use a HTML element or a component.
27430
27651
  * @default {}
27431
27652
  */
27432
27653
  components: PropTypes.shape({
27654
+ Backdrop: PropTypes.elementType,
27433
27655
  Root: PropTypes.elementType
27434
27656
  }),
27435
27657
 
@@ -27438,6 +27660,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27438
27660
  * @default {}
27439
27661
  */
27440
27662
  componentsProps: PropTypes.shape({
27663
+ backdrop: PropTypes.object,
27441
27664
  root: PropTypes.object
27442
27665
  }),
27443
27666
 
@@ -27661,7 +27884,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27661
27884
  maxWidth: 'calc(100% - 64px)'
27662
27885
  }
27663
27886
  }
27664
- }, ownerState.maxWidth !== 'xs' && {
27887
+ }, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
27665
27888
  maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`,
27666
27889
  [`&.${dialogClasses$1.paperScrollBody}`]: {
27667
27890
  [theme.breakpoints.down(theme.breakpoints.values[ownerState.maxWidth] + 32 * 2)]: {
@@ -27762,12 +27985,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27762
27985
  }, [ariaLabelledby]);
27763
27986
  return /*#__PURE__*/jsxRuntime_1(DialogRoot, _extends({
27764
27987
  className: clsx(classes.root, className),
27765
- BackdropProps: _extends({
27766
- transitionDuration,
27767
- as: BackdropComponent
27768
- }, BackdropProps),
27769
27988
  closeAfterTransition: true,
27770
- BackdropComponent: DialogBackdrop,
27989
+ components: {
27990
+ Backdrop: DialogBackdrop
27991
+ },
27992
+ componentsProps: {
27993
+ backdrop: _extends({
27994
+ transitionDuration,
27995
+ as: BackdropComponent
27996
+ }, BackdropProps)
27997
+ },
27771
27998
  disableEscapeKeyDown: disableEscapeKeyDown,
27772
27999
  onClose: onClose,
27773
28000
  open: open,
@@ -27823,6 +28050,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27823
28050
 
27824
28051
  /**
27825
28052
  * A backdrop component. This prop enables custom backdrop rendering.
28053
+ * @deprecated Use `components.Backdrop` instead.
27826
28054
  * @default styled(Backdrop, {
27827
28055
  * name: 'MuiModal',
27828
28056
  * slot: 'Backdrop',
@@ -29537,36 +29765,38 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29537
29765
  theme,
29538
29766
  ownerState
29539
29767
  }) => {
29540
- var _theme$palette;
29768
+ var _palette;
29541
29769
 
29542
29770
  const light = theme.palette.mode === 'light';
29543
29771
  const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
29544
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)';
29545
29775
  return _extends({
29546
29776
  position: 'relative',
29547
- backgroundColor,
29548
- borderTopLeftRadius: theme.shape.borderRadius,
29549
- 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,
29550
29780
  transition: theme.transitions.create('background-color', {
29551
29781
  duration: theme.transitions.duration.shorter,
29552
29782
  easing: theme.transitions.easing.easeOut
29553
29783
  }),
29554
29784
  '&:hover': {
29555
- backgroundColor: light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)',
29785
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,
29556
29786
  // Reset on touch devices, it doesn't add specificity
29557
29787
  '@media (hover: none)': {
29558
- backgroundColor
29788
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
29559
29789
  }
29560
29790
  },
29561
29791
  [`&.${filledInputClasses$1.focused}`]: {
29562
- backgroundColor
29792
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
29563
29793
  },
29564
29794
  [`&.${filledInputClasses$1.disabled}`]: {
29565
- backgroundColor: light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)'
29795
+ backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground
29566
29796
  }
29567
29797
  }, !ownerState.disableUnderline && {
29568
29798
  '&:after': {
29569
- 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}`,
29570
29800
  left: 0,
29571
29801
  bottom: 0,
29572
29802
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -29587,12 +29817,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29587
29817
  transform: 'scaleX(1) translateX(0)'
29588
29818
  },
29589
29819
  [`&.${filledInputClasses$1.error}:after`]: {
29590
- borderBottomColor: theme.palette.error.main,
29820
+ borderBottomColor: (theme.vars || theme).palette.error.main,
29591
29821
  transform: 'scaleX(1)' // error is always underlined in red
29592
29822
 
29593
29823
  },
29594
29824
  '&:before': {
29595
- borderBottom: `1px solid ${bottomLineColor}`,
29825
+ borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputTouchBottomLine})` : bottomLineColor}`,
29596
29826
  left: 0,
29597
29827
  bottom: 0,
29598
29828
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -29606,7 +29836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29606
29836
 
29607
29837
  },
29608
29838
  [`&:hover:not(.${filledInputClasses$1.disabled}):before`]: {
29609
- borderBottom: `1px solid ${theme.palette.text.primary}`
29839
+ borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
29610
29840
  },
29611
29841
  [`&.${filledInputClasses$1.disabled}:before`]: {
29612
29842
  borderBottomStyle: 'dotted'
@@ -29636,7 +29866,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29636
29866
  paddingTop: 25,
29637
29867
  paddingRight: 12,
29638
29868
  paddingBottom: 8,
29639
- paddingLeft: 12,
29869
+ paddingLeft: 12
29870
+ }, !theme.vars && {
29640
29871
  '&:-webkit-autofill': {
29641
29872
  WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
29642
29873
  WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
@@ -29644,6 +29875,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29644
29875
  borderTopLeftRadius: 'inherit',
29645
29876
  borderTopRightRadius: 'inherit'
29646
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
+ }
29647
29890
  }, ownerState.size === 'small' && {
29648
29891
  paddingTop: 21,
29649
29892
  paddingBottom: 4
@@ -30953,7 +31196,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30953
31196
  ...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);
30954
31197
  var gridClasses$1 = gridClasses;
30955
31198
 
30956
- const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "lg", "md", "rowSpacing", "sm", "spacing", "wrap", "xl", "xs", "zeroMinWidth"];
31199
+ const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
30957
31200
 
30958
31201
  function getOffset(val) {
30959
31202
  const parse = parseFloat(val);
@@ -31133,26 +31376,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31133
31376
 
31134
31377
  return styles;
31135
31378
  }
31136
- function resolveSpacingClasses(spacing, container, styles = {}) {
31137
- // in case of grid item or undefined/null or `spacing` <= 0
31138
- if (!container || !spacing || spacing <= 0) {
31379
+ function resolveSpacingStyles(spacing, breakpoints, styles = {}) {
31380
+ // undefined/null or `spacing` <= 0
31381
+ if (!spacing || spacing <= 0) {
31139
31382
  return [];
31140
31383
  } // in case of string/number `spacing`
31141
31384
 
31142
31385
 
31143
31386
  if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {
31144
- return [styles[`spacing-xs-${String(spacing)}`] || `spacing-xs-${String(spacing)}`];
31387
+ return [styles[`spacing-xs-${String(spacing)}`]];
31145
31388
  } // in case of object `spacing`
31146
31389
 
31147
31390
 
31148
- const {
31149
- xs,
31150
- sm,
31151
- md,
31152
- lg,
31153
- xl
31154
- } = spacing;
31155
- return [Number(xs) > 0 && (styles[`spacing-xs-${String(xs)}`] || `spacing-xs-${String(xs)}`), Number(sm) > 0 && (styles[`spacing-sm-${String(sm)}`] || `spacing-sm-${String(sm)}`), Number(md) > 0 && (styles[`spacing-md-${String(md)}`] || `spacing-md-${String(md)}`), Number(lg) > 0 && (styles[`spacing-lg-${String(lg)}`] || `spacing-lg-${String(lg)}`), Number(xl) > 0 && (styles[`spacing-xl-${String(xl)}`] || `spacing-xl-${String(xl)}`)];
31391
+ const spacingStyles = [];
31392
+ breakpoints.forEach(breakpoint => {
31393
+ const value = spacing[breakpoint];
31394
+
31395
+ if (Number(value) > 0) {
31396
+ spacingStyles.push(styles[`spacing-${breakpoint}-${String(value)}`]);
31397
+ }
31398
+ });
31399
+ return spacingStyles;
31156
31400
  } // Default CSS values
31157
31401
  // flex: '0 1 auto',
31158
31402
  // flexDirection: 'row',
@@ -31164,20 +31408,33 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31164
31408
  name: 'MuiGrid',
31165
31409
  slot: 'Root',
31166
31410
  overridesResolver: (props, styles) => {
31411
+ const {
31412
+ ownerState
31413
+ } = props;
31167
31414
  const {
31168
31415
  container,
31169
31416
  direction,
31170
31417
  item,
31171
- lg,
31172
- md,
31173
- sm,
31174
31418
  spacing,
31175
31419
  wrap,
31176
- xl,
31177
- xs,
31178
- zeroMinWidth
31179
- } = props.ownerState;
31180
- return [styles.root, container && styles.container, item && styles.item, zeroMinWidth && styles.zeroMinWidth, ...resolveSpacingClasses(spacing, container, styles), direction !== 'row' && styles[`direction-xs-${String(direction)}`], wrap !== 'wrap' && styles[`wrap-xs-${String(wrap)}`], xs !== false && styles[`grid-xs-${String(xs)}`], sm !== false && styles[`grid-sm-${String(sm)}`], md !== false && styles[`grid-md-${String(md)}`], lg !== false && styles[`grid-lg-${String(lg)}`], xl !== false && styles[`grid-xl-${String(xl)}`]];
31420
+ zeroMinWidth,
31421
+ breakpoints
31422
+ } = ownerState;
31423
+ let spacingStyles = []; // in case of grid item
31424
+
31425
+ if (container) {
31426
+ spacingStyles = resolveSpacingStyles(spacing, breakpoints, styles);
31427
+ }
31428
+
31429
+ const breakpointsStyles = [];
31430
+ breakpoints.forEach(breakpoint => {
31431
+ const value = ownerState[breakpoint];
31432
+
31433
+ if (value) {
31434
+ breakpointsStyles.push(styles[`grid-${breakpoint}-${String(value)}`]);
31435
+ }
31436
+ });
31437
+ return [styles.root, container && styles.container, item && styles.item, zeroMinWidth && styles.zeroMinWidth, ...spacingStyles, direction !== 'row' && styles[`direction-xs-${String(direction)}`], wrap !== 'wrap' && styles[`wrap-xs-${String(wrap)}`], ...breakpointsStyles];
31181
31438
  }
31182
31439
  })(({
31183
31440
  ownerState
@@ -31195,6 +31452,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31195
31452
  }, ownerState.wrap !== 'wrap' && {
31196
31453
  flexWrap: ownerState.wrap
31197
31454
  }), generateDirection, generateRowGap, generateColumnGap, generateGrid);
31455
+ function resolveSpacingClasses(spacing, breakpoints) {
31456
+ // undefined/null or `spacing` <= 0
31457
+ if (!spacing || spacing <= 0) {
31458
+ return [];
31459
+ } // in case of string/number `spacing`
31460
+
31461
+
31462
+ if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {
31463
+ return [`spacing-xs-${String(spacing)}`];
31464
+ } // in case of object `spacing`
31465
+
31466
+
31467
+ const classes = [];
31468
+ breakpoints.forEach(breakpoint => {
31469
+ const value = spacing[breakpoint];
31470
+
31471
+ if (Number(value) > 0) {
31472
+ const className = `spacing-${breakpoint}-${String(value)}`;
31473
+ classes.push(className);
31474
+ }
31475
+ });
31476
+ return classes;
31477
+ }
31198
31478
 
31199
31479
  const useUtilityClasses$_ = ownerState => {
31200
31480
  const {
@@ -31202,17 +31482,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31202
31482
  container,
31203
31483
  direction,
31204
31484
  item,
31205
- lg,
31206
- md,
31207
- sm,
31208
31485
  spacing,
31209
31486
  wrap,
31210
- xl,
31211
- xs,
31212
- zeroMinWidth
31487
+ zeroMinWidth,
31488
+ breakpoints
31213
31489
  } = ownerState;
31490
+ let spacingClasses = []; // in case of grid item
31491
+
31492
+ if (container) {
31493
+ spacingClasses = resolveSpacingClasses(spacing, breakpoints);
31494
+ }
31495
+
31496
+ const breakpointsClasses = [];
31497
+ breakpoints.forEach(breakpoint => {
31498
+ const value = ownerState[breakpoint];
31499
+
31500
+ if (value) {
31501
+ breakpointsClasses.push(`grid-${breakpoint}-${String(value)}`);
31502
+ }
31503
+ });
31214
31504
  const slots = {
31215
- root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth', ...resolveSpacingClasses(spacing, container), direction !== 'row' && `direction-xs-${String(direction)}`, wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, xs !== false && `grid-xs-${String(xs)}`, sm !== false && `grid-sm-${String(sm)}`, md !== false && `grid-md-${String(md)}`, lg !== false && `grid-lg-${String(lg)}`, xl !== false && `grid-xl-${String(xl)}`]
31505
+ root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth', ...spacingClasses, direction !== 'row' && `direction-xs-${String(direction)}`, wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...breakpointsClasses]
31216
31506
  };
31217
31507
  return composeClasses(slots, getGridUtilityClass, classes);
31218
31508
  };
@@ -31222,6 +31512,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31222
31512
  props: inProps,
31223
31513
  name: 'MuiGrid'
31224
31514
  });
31515
+ const {
31516
+ breakpoints
31517
+ } = useTheme();
31225
31518
  const props = extendSxProp(themeProps);
31226
31519
 
31227
31520
  const {
@@ -31232,14 +31525,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31232
31525
  container = false,
31233
31526
  direction = 'row',
31234
31527
  item = false,
31235
- lg = false,
31236
- md = false,
31237
31528
  rowSpacing: rowSpacingProp,
31238
- sm = false,
31239
31529
  spacing = 0,
31240
31530
  wrap = 'wrap',
31241
- xl = false,
31242
- xs = false,
31243
31531
  zeroMinWidth = false
31244
31532
  } = props,
31245
31533
  other = _objectWithoutPropertiesLoose(props, _excluded$1d);
@@ -31249,21 +31537,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31249
31537
  const columnsContext = React__namespace.useContext(GridContext$1); // columns set with default breakpoint unit of 12
31250
31538
 
31251
31539
  const columns = container ? columnsProp || 12 : columnsContext;
31540
+ const breakpointsValues = {};
31541
+
31542
+ const otherFiltered = _extends({}, other);
31543
+
31544
+ breakpoints.keys.forEach(breakpoint => {
31545
+ if (other[breakpoint] != null) {
31546
+ breakpointsValues[breakpoint] = other[breakpoint];
31547
+ delete otherFiltered[breakpoint];
31548
+ }
31549
+ });
31252
31550
 
31253
31551
  const ownerState = _extends({}, props, {
31254
31552
  columns,
31255
31553
  container,
31256
31554
  direction,
31257
31555
  item,
31258
- lg,
31259
- md,
31260
- sm,
31261
31556
  rowSpacing,
31262
31557
  columnSpacing,
31263
31558
  wrap,
31264
- xl,
31265
- xs,
31266
- zeroMinWidth
31559
+ zeroMinWidth,
31560
+ spacing
31561
+ }, breakpointsValues, {
31562
+ breakpoints: breakpoints.keys
31267
31563
  });
31268
31564
 
31269
31565
  const classes = useUtilityClasses$_(ownerState);
@@ -31274,7 +31570,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31274
31570
  className: clsx(classes.root, className),
31275
31571
  as: component,
31276
31572
  ref: ref
31277
- }, other))
31573
+ }, otherFiltered))
31278
31574
  });
31279
31575
  });
31280
31576
  Grid.propTypes
@@ -31463,10 +31759,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31463
31759
  /*
31464
31760
  TODO v6: remove
31465
31761
  Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
31466
- Remove this workaround once the WebKit bug fix is released.
31467
31762
  */
31468
31763
 
31469
- const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent);
31764
+ const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent);
31470
31765
  /**
31471
31766
  * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and
31472
31767
  * [Popover](/material-ui/react-popover/) components.
@@ -31948,7 +32243,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31948
32243
  WithWidth.displayName = `WithWidth(${getDisplayName(Component)})`;
31949
32244
  }
31950
32245
 
31951
- hoistNonReactStatics_cjs(WithWidth, Component);
31952
32246
  return WithWidth;
31953
32247
  };
31954
32248
 
@@ -34031,6 +34325,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34031
34325
  return 'currentColor';
34032
34326
  }
34033
34327
 
34328
+ if (theme.vars) {
34329
+ return theme.vars.palette.LinearProgress[`${color}Bg`];
34330
+ }
34331
+
34034
34332
  return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);
34035
34333
  };
34036
34334
 
@@ -34123,7 +34421,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34123
34421
  top: 0,
34124
34422
  transition: 'transform 0.2s linear',
34125
34423
  transformOrigin: 'left',
34126
- backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
34424
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
34127
34425
  }, ownerState.variant === 'determinate' && {
34128
34426
  transition: `transform .${TRANSITION_DURATION}s linear`
34129
34427
  }, ownerState.variant === 'buffer' && {
@@ -34156,7 +34454,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34156
34454
  transition: 'transform 0.2s linear',
34157
34455
  transformOrigin: 'left'
34158
34456
  }, ownerState.variant !== 'buffer' && {
34159
- backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
34457
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
34160
34458
  }, ownerState.color === 'inherit' && {
34161
34459
  opacity: 0.3
34162
34460
  }, ownerState.variant === 'buffer' && {
@@ -34316,7 +34614,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34316
34614
  const linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);
34317
34615
  var linkClasses$1 = linkClasses;
34318
34616
 
34319
- const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
34320
34617
  const colorTransformations = {
34321
34618
  primary: 'primary.main',
34322
34619
  textPrimary: 'text.primary',
@@ -34329,6 +34626,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34329
34626
  return colorTransformations[color] || color;
34330
34627
  };
34331
34628
 
34629
+ const getTextDecoration = ({
34630
+ theme,
34631
+ ownerState
34632
+ }) => {
34633
+ const transformedColor = transformDeprecatedColors(ownerState.color);
34634
+ const color = getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;
34635
+ const channelColor = getPath(theme, `palette.${transformedColor}Channel`);
34636
+
34637
+ if ('vars' in theme && channelColor) {
34638
+ return `rgba(${channelColor} / 0.4)`;
34639
+ }
34640
+
34641
+ return alpha(color, 0.4);
34642
+ };
34643
+
34644
+ var getTextDecoration$1 = getTextDecoration;
34645
+
34646
+ const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
34647
+
34332
34648
  const useUtilityClasses$Q = ownerState => {
34333
34649
  const {
34334
34650
  classes,
@@ -34355,7 +34671,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34355
34671
  theme,
34356
34672
  ownerState
34357
34673
  }) => {
34358
- const color = getPath(theme, `palette.${transformDeprecatedColors(ownerState.color)}`) || ownerState.color;
34359
34674
  return _extends({}, ownerState.underline === 'none' && {
34360
34675
  textDecoration: 'none'
34361
34676
  }, ownerState.underline === 'hover' && {
@@ -34363,13 +34678,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34363
34678
  '&:hover': {
34364
34679
  textDecoration: 'underline'
34365
34680
  }
34366
- }, ownerState.underline === 'always' && {
34367
- textDecoration: 'underline',
34368
- textDecorationColor: color !== 'inherit' ? alpha(color, 0.4) : undefined,
34681
+ }, ownerState.underline === 'always' && _extends({
34682
+ textDecoration: 'underline'
34683
+ }, ownerState.color !== 'inherit' && {
34684
+ textDecorationColor: getTextDecoration$1({
34685
+ theme,
34686
+ ownerState
34687
+ })
34688
+ }, {
34369
34689
  '&:hover': {
34370
34690
  textDecorationColor: 'inherit'
34371
34691
  }
34372
- }, ownerState.component === 'button' && {
34692
+ }), ownerState.component === 'button' && {
34373
34693
  position: 'relative',
34374
34694
  WebkitTapHighlightColor: 'transparent',
34375
34695
  backgroundColor: 'transparent',
@@ -37892,25 +38212,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37892
38212
  const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
37893
38213
  return _extends({
37894
38214
  position: 'relative',
37895
- borderRadius: theme.shape.borderRadius,
38215
+ borderRadius: (theme.vars || theme).shape.borderRadius,
37896
38216
  [`&:hover .${outlinedInputClasses$1.notchedOutline}`]: {
37897
- borderColor: theme.palette.text.primary
38217
+ borderColor: (theme.vars || theme).palette.text.primary
37898
38218
  },
37899
38219
  // Reset on touch devices, it doesn't add specificity
37900
38220
  '@media (hover: none)': {
37901
38221
  [`&:hover .${outlinedInputClasses$1.notchedOutline}`]: {
37902
- borderColor
38222
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
37903
38223
  }
37904
38224
  },
37905
38225
  [`&.${outlinedInputClasses$1.focused} .${outlinedInputClasses$1.notchedOutline}`]: {
37906
- borderColor: theme.palette[ownerState.color].main,
38226
+ borderColor: (theme.vars || theme).palette[ownerState.color].main,
37907
38227
  borderWidth: 2
37908
38228
  },
37909
38229
  [`&.${outlinedInputClasses$1.error} .${outlinedInputClasses$1.notchedOutline}`]: {
37910
- borderColor: theme.palette.error.main
38230
+ borderColor: (theme.vars || theme).palette.error.main
37911
38231
  },
37912
38232
  [`&.${outlinedInputClasses$1.disabled} .${outlinedInputClasses$1.notchedOutline}`]: {
37913
- borderColor: theme.palette.action.disabled
38233
+ borderColor: (theme.vars || theme).palette.action.disabled
37914
38234
  }
37915
38235
  }, ownerState.startAdornment && {
37916
38236
  paddingLeft: 14
@@ -37928,9 +38248,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37928
38248
  overridesResolver: (props, styles) => styles.notchedOutline
37929
38249
  })(({
37930
38250
  theme
37931
- }) => ({
37932
- borderColor: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'
37933
- }));
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
+ });
37934
38257
  const OutlinedInputInput = styled$1(InputBaseComponent, {
37935
38258
  name: 'MuiOutlinedInput',
37936
38259
  slot: 'Input',
@@ -37939,13 +38262,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37939
38262
  theme,
37940
38263
  ownerState
37941
38264
  }) => _extends({
37942
- padding: '16.5px 14px',
38265
+ padding: '16.5px 14px'
38266
+ }, !theme.vars && {
37943
38267
  '&:-webkit-autofill': {
37944
38268
  WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
37945
38269
  WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
37946
38270
  caretColor: theme.palette.mode === 'light' ? null : '#fff',
37947
38271
  borderRadius: 'inherit'
37948
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
+ }
37949
38284
  }, ownerState.size === 'small' && {
37950
38285
  padding: '8.5px 14px'
37951
38286
  }, ownerState.multiline && {
@@ -41274,7 +41609,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41274
41609
  return _extends({
41275
41610
  display: 'block',
41276
41611
  // Create a "on paper" color with sufficient contrast retaining the color
41277
- 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),
41278
41613
  height: '1.2em'
41279
41614
  }, ownerState.variant === 'text' && {
41280
41615
  marginTop: 0,
@@ -41313,7 +41648,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41313
41648
 
41314
41649
  &::after {
41315
41650
  animation: ${0} 1.6s linear 0.5s infinite;
41316
- background: linear-gradient(90deg, transparent, ${0}, transparent);
41651
+ background: linear-gradient(
41652
+ 90deg,
41653
+ transparent,
41654
+ ${0},
41655
+ transparent
41656
+ );
41317
41657
  content: '';
41318
41658
  position: absolute;
41319
41659
  transform: translateX(-100%); /* Avoid flash during server-side hydration */
@@ -41322,7 +41662,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41322
41662
  right: 0;
41323
41663
  top: 0;
41324
41664
  }
41325
- `), waveKeyframe, theme.palette.action.hover));
41665
+ `), waveKeyframe, (theme.vars || theme).palette.action.hover));
41326
41666
  const Skeleton = /*#__PURE__*/React__namespace.forwardRef(function Skeleton(inProps, ref) {
41327
41667
  const props = useThemeProps({
41328
41668
  props: inProps,
@@ -41449,7 +41789,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41449
41789
  position: 'relative',
41450
41790
  cursor: 'pointer',
41451
41791
  touchAction: 'none',
41452
- color: theme.palette[ownerState.color].main,
41792
+ color: (theme.vars || theme).palette[ownerState.color].main,
41453
41793
  WebkitTapHighlightColor: 'transparent'
41454
41794
  }, ownerState.orientation === 'horizontal' && _extends({
41455
41795
  height: 4,
@@ -41484,7 +41824,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41484
41824
  [`&.${sliderClasses.disabled}`]: {
41485
41825
  pointerEvents: 'none',
41486
41826
  cursor: 'default',
41487
- color: theme.palette.grey[400]
41827
+ color: (theme.vars || theme).palette.grey[400]
41488
41828
  },
41489
41829
  [`&.${sliderClasses.dragging}`]: {
41490
41830
  [`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]: {
@@ -41575,8 +41915,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41575
41915
  }, ownerState.track === false && {
41576
41916
  display: 'none'
41577
41917
  }, ownerState.track === 'inverted' && {
41578
- backgroundColor: color,
41579
- 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
41580
41920
  });
41581
41921
  });
41582
41922
  SliderTrack.propTypes
@@ -41634,7 +41974,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41634
41974
  borderRadius: 'inherit',
41635
41975
  width: '100%',
41636
41976
  height: '100%',
41637
- boxShadow: theme.shadows[2]
41977
+ boxShadow: (theme.vars || theme).shadows[2]
41638
41978
  }, ownerState.size === 'small' && {
41639
41979
  boxShadow: 'none'
41640
41980
  }),
@@ -41650,13 +41990,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41650
41990
  transform: 'translate(-50%, -50%)'
41651
41991
  },
41652
41992
  [`&:hover, &.${sliderClasses.focusVisible}`]: {
41653
- 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)}`,
41654
41994
  '@media (hover: none)': {
41655
41995
  boxShadow: 'none'
41656
41996
  }
41657
41997
  },
41658
41998
  [`&.${sliderClasses.active}`]: {
41659
- 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)}`
41660
42000
  },
41661
42001
  [`&.${sliderClasses.disabled}`]: {
41662
42002
  '&:hover': {
@@ -41695,31 +42035,44 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41695
42035
  transition: theme.transitions.create(['transform'], {
41696
42036
  duration: theme.transitions.duration.shortest
41697
42037
  }),
41698
- top: -10,
41699
42038
  transformOrigin: 'bottom center',
41700
42039
  transform: 'translateY(-100%) scale(0)',
41701
42040
  position: 'absolute',
41702
- backgroundColor: theme.palette.grey[600],
42041
+ backgroundColor: (theme.vars || theme).palette.grey[600],
41703
42042
  borderRadius: 2,
41704
- color: theme.palette.common.white,
42043
+ color: (theme.vars || theme).palette.common.white,
41705
42044
  display: 'flex',
41706
42045
  alignItems: 'center',
41707
42046
  justifyContent: 'center',
41708
42047
  padding: '0.25rem 0.75rem'
41709
- }, ownerState.size === 'small' && {
41710
- fontSize: theme.typography.pxToRem(12),
41711
- padding: '0.25rem 0.5rem'
41712
- }, {
42048
+ }, ownerState.orientation === 'horizontal' && {
42049
+ top: '-10px',
41713
42050
  '&:before': {
41714
42051
  position: 'absolute',
41715
42052
  content: '""',
41716
42053
  width: 8,
41717
42054
  height: 8,
42055
+ transform: 'translate(-50%, 50%) rotate(45deg)',
42056
+ backgroundColor: 'inherit',
41718
42057
  bottom: 0,
41719
- left: '50%',
42058
+ left: '50%'
42059
+ }
42060
+ }, ownerState.orientation === 'vertical' && {
42061
+ right: '30px',
42062
+ top: '25px',
42063
+ '&:before': {
42064
+ position: 'absolute',
42065
+ content: '""',
42066
+ width: 8,
42067
+ height: 8,
41720
42068
  transform: 'translate(-50%, 50%) rotate(45deg)',
41721
- backgroundColor: 'inherit'
42069
+ backgroundColor: 'inherit',
42070
+ right: '-20%',
42071
+ top: '25%'
41722
42072
  }
42073
+ }, ownerState.size === 'small' && {
42074
+ fontSize: theme.typography.pxToRem(12),
42075
+ padding: '0.25rem 0.5rem'
41723
42076
  }));
41724
42077
  SliderValueLabel.propTypes
41725
42078
  /* remove-proptypes */
@@ -41756,7 +42109,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41756
42109
  left: '50%',
41757
42110
  transform: 'translate(-50%, 1px)'
41758
42111
  }, markActive && {
41759
- backgroundColor: theme.palette.background.paper,
42112
+ backgroundColor: (theme.vars || theme).palette.background.paper,
41760
42113
  opacity: 0.8
41761
42114
  }));
41762
42115
  SliderMark.propTypes
@@ -41782,7 +42135,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41782
42135
  ownerState,
41783
42136
  markLabelActive
41784
42137
  }) => _extends({}, theme.typography.body2, {
41785
- color: theme.palette.text.secondary,
42138
+ color: (theme.vars || theme).palette.text.secondary,
41786
42139
  position: 'absolute',
41787
42140
  whiteSpace: 'nowrap'
41788
42141
  }, ownerState.orientation === 'horizontal' && {
@@ -41798,7 +42151,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41798
42151
  left: 44
41799
42152
  }
41800
42153
  }, markLabelActive && {
41801
- color: theme.palette.text.primary
42154
+ color: (theme.vars || theme).palette.text.primary
41802
42155
  }));
41803
42156
  SliderMarkLabel.propTypes
41804
42157
  /* remove-proptypes */
@@ -41982,12 +42335,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41982
42335
  thumb: PropTypes.object,
41983
42336
  track: PropTypes.object,
41984
42337
  valueLabel: PropTypes.shape({
42338
+ children: PropTypes.element,
41985
42339
  className: PropTypes.string,
41986
42340
  components: PropTypes.shape({
41987
42341
  Root: PropTypes.elementType
41988
42342
  }),
42343
+ open: PropTypes.bool,
41989
42344
  style: PropTypes.object,
41990
- value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
42345
+ value: PropTypes.number,
41991
42346
  valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
41992
42347
  })
41993
42348
  }),
@@ -42190,13 +42545,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42190
42545
  const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
42191
42546
  const backgroundColor = emphasize(theme.palette.background.default, emphasis);
42192
42547
  return _extends({}, theme.typography.body2, {
42193
- color: theme.palette.getContrastText(backgroundColor),
42194
- backgroundColor,
42548
+ color: theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(backgroundColor),
42549
+ backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
42195
42550
  display: 'flex',
42196
42551
  alignItems: 'center',
42197
42552
  flexWrap: 'wrap',
42198
42553
  padding: '6px 16px',
42199
- borderRadius: theme.shape.borderRadius,
42554
+ borderRadius: (theme.vars || theme).shape.borderRadius,
42200
42555
  flexGrow: 1,
42201
42556
  [theme.breakpoints.up('sm')]: {
42202
42557
  flexGrow: 'initial',
@@ -42333,16 +42688,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42333
42688
  theme,
42334
42689
  ownerState
42335
42690
  }) => {
42336
- const center = _extends({}, !ownerState.isRtl && {
42691
+ const center = {
42337
42692
  left: '50%',
42338
42693
  right: 'auto',
42339
42694
  transform: 'translateX(-50%)'
42340
- }, ownerState.isRtl && {
42341
- right: '50%',
42342
- left: 'auto',
42343
- transform: 'translateX(50%)'
42344
- });
42345
-
42695
+ };
42346
42696
  return _extends({
42347
42697
  zIndex: (theme.vars || theme).zIndex.snackbar,
42348
42698
  position: 'fixed',
@@ -42364,19 +42714,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42364
42714
  top: 24
42365
42715
  } : {
42366
42716
  bottom: 24
42367
- }, ownerState.anchorOrigin.horizontal === 'center' && center, ownerState.anchorOrigin.horizontal === 'left' && _extends({}, !ownerState.isRtl && {
42717
+ }, ownerState.anchorOrigin.horizontal === 'center' && center, ownerState.anchorOrigin.horizontal === 'left' && {
42368
42718
  left: 24,
42369
42719
  right: 'auto'
42370
- }, ownerState.isRtl && {
42720
+ }, ownerState.anchorOrigin.horizontal === 'right' && {
42371
42721
  right: 24,
42372
42722
  left: 'auto'
42373
- }), ownerState.anchorOrigin.horizontal === 'right' && _extends({}, !ownerState.isRtl && {
42374
- right: 24,
42375
- left: 'auto'
42376
- }, ownerState.isRtl && {
42377
- left: 24,
42378
- right: 'auto'
42379
- }))
42723
+ })
42380
42724
  });
42381
42725
  });
42382
42726
  const Snackbar = /*#__PURE__*/React__namespace.forwardRef(function Snackbar(inProps, ref) {
@@ -42423,14 +42767,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42423
42767
  TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$z),
42424
42768
  other = _objectWithoutPropertiesLoose(props, _excluded2$2);
42425
42769
 
42426
- const isRtl = theme.direction === 'rtl';
42427
-
42428
42770
  const ownerState = _extends({}, props, {
42429
42771
  anchorOrigin: {
42430
42772
  vertical,
42431
42773
  horizontal
42432
- },
42433
- isRtl
42774
+ }
42434
42775
  });
42435
42776
 
42436
42777
  const classes = useUtilityClasses$s(ownerState);
@@ -43631,7 +43972,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43631
43972
  theme,
43632
43973
  ownerState
43633
43974
  }) => _extends({
43634
- 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),
43635
43976
  borderRadius: (theme.vars || theme).shape.borderRadius,
43636
43977
  color: (theme.vars || theme).palette.common.white,
43637
43978
  fontFamily: theme.typography.fontFamily,
@@ -44375,10 +44716,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44375
44716
  ownerState
44376
44717
  }) => _extends({
44377
44718
  margin: 8,
44378
- color: theme.palette.text.secondary,
44379
- backgroundColor: theme.palette.background.paper,
44719
+ color: (theme.vars || theme).palette.text.secondary,
44720
+ backgroundColor: (theme.vars || theme).palette.background.paper,
44380
44721
  '&:hover': {
44381
- backgroundColor: emphasize(theme.palette.background.paper, 0.15)
44722
+ backgroundColor: theme.vars ? theme.vars.palette.SpeedDialAction.fabHoverBg : emphasize(theme.palette.background.paper, 0.15)
44382
44723
  },
44383
44724
  transition: `${theme.transitions.create('transform', {
44384
44725
  duration: theme.transitions.duration.shorter
@@ -44431,10 +44772,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44431
44772
  }) => _extends({
44432
44773
  position: 'absolute'
44433
44774
  }, theme.typography.body1, {
44434
- backgroundColor: theme.palette.background.paper,
44435
- borderRadius: theme.shape.borderRadius,
44436
- boxShadow: theme.shadows[1],
44437
- 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,
44438
44779
  padding: '4px 16px',
44439
44780
  wordBreak: 'keep-all'
44440
44781
  }));
@@ -44792,7 +45133,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44792
45133
  if (ownerState.spacing) {
44793
45134
  const transformer = createUnarySpacing(theme);
44794
45135
  const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
44795
- if (ownerState.spacing[breakpoint] != null || ownerState.direction[breakpoint] != null) {
45136
+ if (typeof ownerState.spacing === 'object' && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === 'object' && ownerState.direction[breakpoint] != null) {
44796
45137
  acc[breakpoint] = true;
44797
45138
  }
44798
45139
 
@@ -45235,8 +45576,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45235
45576
  })), /*#__PURE__*/jsxRuntime_1(StepIconText, {
45236
45577
  className: classes.text,
45237
45578
  x: "12",
45238
- y: "16",
45579
+ y: "12",
45239
45580
  textAnchor: "middle",
45581
+ dominantBaseline: "central",
45240
45582
  ownerState: ownerState,
45241
45583
  children: icon
45242
45584
  })]
@@ -45721,17 +46063,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45721
46063
  })(({
45722
46064
  ownerState,
45723
46065
  theme
45724
- }) => _extends({
45725
- display: 'block',
45726
- borderColor: theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
45727
- }, ownerState.orientation === 'horizontal' && {
45728
- borderTopStyle: 'solid',
45729
- borderTopWidth: 1
45730
- }, ownerState.orientation === 'vertical' && {
45731
- borderLeftStyle: 'solid',
45732
- borderLeftWidth: 1,
45733
- minHeight: 24
45734
- }));
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
+ });
45735
46080
  const StepConnector = /*#__PURE__*/React__namespace.forwardRef(function StepConnector(inProps, ref) {
45736
46081
  const props = useThemeProps({
45737
46082
  props: inProps,
@@ -45836,7 +46181,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45836
46181
  paddingLeft: 8 + 12,
45837
46182
  // margin + half icon
45838
46183
  paddingRight: 8,
45839
- 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]}`
45840
46185
  }, ownerState.last && {
45841
46186
  borderLeft: 'none'
45842
46187
  }));
@@ -46890,7 +47235,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46890
47235
  left: 0,
46891
47236
  zIndex: 1,
46892
47237
  // Render above the focus ripple.
46893
- 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]}`,
46894
47239
  transition: theme.transitions.create(['left', 'transform'], {
46895
47240
  duration: theme.transitions.duration.shortest
46896
47241
  }),
@@ -46898,13 +47243,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46898
47243
  transform: 'translateX(20px)'
46899
47244
  },
46900
47245
  [`&.${switchClasses$1.disabled}`]: {
46901
- 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]}`
46902
47247
  },
46903
47248
  [`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]: {
46904
47249
  opacity: 0.5
46905
47250
  },
46906
47251
  [`&.${switchClasses$1.disabled} + .${switchClasses$1.track}`]: {
46907
- 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}`
46908
47253
  },
46909
47254
  [`& .${switchClasses$1.input}`]: {
46910
47255
  left: '-100%',
@@ -46915,7 +47260,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46915
47260
  ownerState
46916
47261
  }) => _extends({
46917
47262
  '&:hover': {
46918
- 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),
46919
47264
  // Reset on touch devices, it doesn't add specificity
46920
47265
  '@media (hover: none)': {
46921
47266
  backgroundColor: 'transparent'
@@ -46923,19 +47268,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46923
47268
  }
46924
47269
  }, ownerState.color !== 'default' && {
46925
47270
  [`&.${switchClasses$1.checked}`]: {
46926
- color: theme.palette[ownerState.color].main,
47271
+ color: (theme.vars || theme).palette[ownerState.color].main,
46927
47272
  '&:hover': {
46928
- 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),
46929
47274
  '@media (hover: none)': {
46930
47275
  backgroundColor: 'transparent'
46931
47276
  }
46932
47277
  },
46933
47278
  [`&.${switchClasses$1.disabled}`]: {
46934
- 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)}`
46935
47280
  }
46936
47281
  },
46937
47282
  [`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]: {
46938
- backgroundColor: theme.palette[ownerState.color].main
47283
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
46939
47284
  }
46940
47285
  }));
46941
47286
  const SwitchTrack = styled$1('span', {
@@ -46952,8 +47297,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46952
47297
  transition: theme.transitions.create(['opacity', 'background-color'], {
46953
47298
  duration: theme.transitions.duration.shortest
46954
47299
  }),
46955
- backgroundColor: theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white,
46956
- 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}`
46957
47302
  }));
46958
47303
  const SwitchThumb = styled$1('span', {
46959
47304
  name: 'MuiSwitch',
@@ -46962,7 +47307,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46962
47307
  })(({
46963
47308
  theme
46964
47309
  }) => ({
46965
- boxShadow: theme.shadows[1],
47310
+ boxShadow: (theme.vars || theme).shadows[1],
46966
47311
  backgroundColor: 'currentColor',
46967
47312
  width: 20,
46968
47313
  height: 20,
@@ -47715,18 +48060,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47715
48060
  verticalAlign: 'inherit',
47716
48061
  // Workaround for a rendering bug with spanned columns in Chrome 62.0.
47717
48062
  // Removes the alpha (sets it to 1), and lightens or darkens the theme color.
47718
- borderBottom: `1px solid
48063
+ borderBottom: theme.vars ? `1px solid ${theme.vars.palette.TableCell.border}` : `1px solid
47719
48064
  ${theme.palette.mode === 'light' ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68)}`,
47720
48065
  textAlign: 'left',
47721
48066
  padding: 16
47722
48067
  }, ownerState.variant === 'head' && {
47723
- color: theme.palette.text.primary,
48068
+ color: (theme.vars || theme).palette.text.primary,
47724
48069
  lineHeight: theme.typography.pxToRem(24),
47725
48070
  fontWeight: theme.typography.fontWeightMedium
47726
48071
  }, ownerState.variant === 'body' && {
47727
- color: theme.palette.text.primary
48072
+ color: (theme.vars || theme).palette.text.primary
47728
48073
  }, ownerState.variant === 'footer' && {
47729
- color: theme.palette.text.secondary,
48074
+ color: (theme.vars || theme).palette.text.secondary,
47730
48075
  lineHeight: theme.typography.pxToRem(21),
47731
48076
  fontSize: theme.typography.pxToRem(12)
47732
48077
  }, ownerState.size === 'small' && {
@@ -47758,7 +48103,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47758
48103
  position: 'sticky',
47759
48104
  top: 0,
47760
48105
  zIndex: 2,
47761
- backgroundColor: theme.palette.background.default
48106
+ backgroundColor: (theme.vars || theme).palette.background.default
47762
48107
  }));
47763
48108
  /**
47764
48109
  * The component renders a `<th>` element when the parent context is a header
@@ -49805,6 +50150,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49805
50150
  const tab = children[i];
49806
50151
 
49807
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
+
49808
50159
  break;
49809
50160
  }
49810
50161
 
@@ -51492,6 +51843,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51492
51843
  exports.getMobileStepperUtilityClass = getMobileStepperUtilityClass;
51493
51844
  exports.getModalUtilityClass = getModalUtilityClass;
51494
51845
  exports.getNativeSelectUtilityClasses = getNativeSelectUtilityClasses;
51846
+ exports.getOffsetLeft = getOffsetLeft;
51847
+ exports.getOffsetTop = getOffsetTop;
51495
51848
  exports.getOutlinedInputUtilityClass = getOutlinedInputUtilityClass;
51496
51849
  exports.getPaginationItemUtilityClass = getPaginationItemUtilityClass;
51497
51850
  exports.getPaginationUtilityClass = getPaginationUtilityClass;