@mui/material 6.0.0-alpha.3 → 6.0.0-alpha.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 (86) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/Checkbox/Checkbox.js +51 -20
  3. package/FormControlLabel/FormControlLabel.d.ts +21 -14
  4. package/FormControlLabel/FormControlLabel.js +22 -4
  5. package/FormHelperText/FormHelperText.js +18 -8
  6. package/IconButton/IconButton.js +97 -40
  7. package/ImageList/ImageList.js +16 -14
  8. package/ImageListItem/ImageListItem.js +37 -22
  9. package/ImageListItemBar/ImageListItemBar.js +65 -32
  10. package/ListItem/ListItem.js +94 -50
  11. package/ListItemAvatar/ListItemAvatar.js +12 -8
  12. package/ListItemButton/ListItemButton.js +35 -15
  13. package/ListItemSecondaryAction/ListItemSecondaryAction.js +12 -8
  14. package/ListItemText/ListItemText.js +20 -11
  15. package/ListSubheader/ListSubheader.js +44 -19
  16. package/PaginationItem/PaginationItem.d.ts +26 -14
  17. package/PaginationItem/PaginationItem.js +64 -20
  18. package/Radio/Radio.js +50 -20
  19. package/Radio/RadioButtonIcon.js +18 -12
  20. package/Rating/Rating.js +71 -37
  21. package/SvgIcon/SvgIcon.js +73 -21
  22. package/Table/Table.js +11 -6
  23. package/TableCell/TableCell.js +96 -41
  24. package/TableSortLabel/TableSortLabel.js +19 -9
  25. package/Toolbar/Toolbar.js +33 -17
  26. package/Typography/Typography.js +3 -2
  27. package/index.js +1 -1
  28. package/modern/Checkbox/Checkbox.js +51 -20
  29. package/modern/FormControlLabel/FormControlLabel.js +22 -4
  30. package/modern/FormHelperText/FormHelperText.js +18 -8
  31. package/modern/IconButton/IconButton.js +97 -40
  32. package/modern/ImageList/ImageList.js +16 -14
  33. package/modern/ImageListItem/ImageListItem.js +37 -22
  34. package/modern/ImageListItemBar/ImageListItemBar.js +65 -32
  35. package/modern/ListItem/ListItem.js +94 -50
  36. package/modern/ListItemAvatar/ListItemAvatar.js +12 -8
  37. package/modern/ListItemButton/ListItemButton.js +35 -15
  38. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +12 -8
  39. package/modern/ListItemText/ListItemText.js +20 -11
  40. package/modern/ListSubheader/ListSubheader.js +44 -19
  41. package/modern/PaginationItem/PaginationItem.js +64 -20
  42. package/modern/Radio/Radio.js +50 -20
  43. package/modern/Radio/RadioButtonIcon.js +18 -12
  44. package/modern/Rating/Rating.js +71 -37
  45. package/modern/SvgIcon/SvgIcon.js +73 -21
  46. package/modern/Table/Table.js +11 -6
  47. package/modern/TableCell/TableCell.js +96 -41
  48. package/modern/TableSortLabel/TableSortLabel.js +19 -9
  49. package/modern/Toolbar/Toolbar.js +33 -17
  50. package/modern/Typography/Typography.js +3 -2
  51. package/modern/index.js +1 -1
  52. package/modern/styles/experimental_extendTheme.js +2 -1
  53. package/modern/styles/getOverlayAlpha.js +3 -4
  54. package/node/Checkbox/Checkbox.js +54 -23
  55. package/node/FormControlLabel/FormControlLabel.js +23 -5
  56. package/node/FormHelperText/FormHelperText.js +18 -8
  57. package/node/IconButton/IconButton.js +99 -43
  58. package/node/ImageList/ImageList.js +16 -14
  59. package/node/ImageListItem/ImageListItem.js +37 -22
  60. package/node/ImageListItemBar/ImageListItemBar.js +65 -32
  61. package/node/ListItem/ListItem.js +94 -50
  62. package/node/ListItemAvatar/ListItemAvatar.js +12 -8
  63. package/node/ListItemButton/ListItemButton.js +35 -15
  64. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +12 -8
  65. package/node/ListItemText/ListItemText.js +20 -11
  66. package/node/ListSubheader/ListSubheader.js +44 -19
  67. package/node/PaginationItem/PaginationItem.js +65 -20
  68. package/node/Radio/Radio.js +52 -22
  69. package/node/Radio/RadioButtonIcon.js +21 -15
  70. package/node/Rating/Rating.js +71 -37
  71. package/node/SvgIcon/SvgIcon.js +79 -24
  72. package/node/Table/Table.js +11 -6
  73. package/node/TableCell/TableCell.js +96 -41
  74. package/node/TableSortLabel/TableSortLabel.js +19 -9
  75. package/node/Toolbar/Toolbar.js +33 -17
  76. package/node/Typography/Typography.js +3 -2
  77. package/node/index.js +1 -1
  78. package/node/styles/experimental_extendTheme.js +1 -0
  79. package/node/styles/getOverlayAlpha.js +4 -5
  80. package/package.json +6 -6
  81. package/styles/experimental_extendTheme.d.ts +2 -0
  82. package/styles/experimental_extendTheme.js +2 -1
  83. package/styles/getOverlayAlpha.d.ts +1 -2
  84. package/styles/getOverlayAlpha.js +3 -4
  85. package/umd/material-ui.development.js +1223 -583
  86. package/umd/material-ui.production.min.js +4 -4
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.0.0-alpha.3
2
+ * @mui/material v6.0.0-alpha.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -6266,6 +6266,9 @@
6266
6266
  },
6267
6267
  boxSizing: {},
6268
6268
  // typography
6269
+ font: {
6270
+ themeKey: 'font'
6271
+ },
6269
6272
  fontFamily: {
6270
6273
  themeKey: 'typography'
6271
6274
  },
@@ -7267,7 +7270,7 @@
7267
7270
  return resolveProps(theme.components[name].defaultProps, props);
7268
7271
  }
7269
7272
 
7270
- function useThemeProps$N(_ref) {
7273
+ function useThemeProps$R(_ref) {
7271
7274
  var props = _ref.props,
7272
7275
  name = _ref.name,
7273
7276
  defaultTheme = _ref.defaultTheme,
@@ -9569,7 +9572,7 @@
9569
9572
  }
9570
9573
  });
9571
9574
  var useThemePropsDefault$2 = function useThemePropsDefault(inProps) {
9572
- return useThemeProps$N({
9575
+ return useThemeProps$R({
9573
9576
  props: inProps,
9574
9577
  name: 'MuiContainer',
9575
9578
  defaultTheme: defaultTheme$6
@@ -9957,7 +9960,7 @@
9957
9960
  }
9958
9961
  });
9959
9962
  function useThemePropsDefault$1(props) {
9960
- return useThemeProps$N({
9963
+ return useThemeProps$R({
9961
9964
  props: props,
9962
9965
  name: 'MuiGrid',
9963
9966
  defaultTheme: defaultTheme$5
@@ -10124,7 +10127,7 @@
10124
10127
  }
10125
10128
  });
10126
10129
  function useThemePropsDefault(props) {
10127
- return useThemeProps$N({
10130
+ return useThemeProps$R({
10128
10131
  props: props,
10129
10132
  name: 'MuiStack',
10130
10133
  defaultTheme: defaultTheme$4
@@ -11164,10 +11167,10 @@
11164
11167
  return theme[THEME_ID] || theme;
11165
11168
  }
11166
11169
 
11167
- function useThemeProps$M(_ref) {
11170
+ function useThemeProps$Q(_ref) {
11168
11171
  var props = _ref.props,
11169
11172
  name = _ref.name;
11170
- return useThemeProps$N({
11173
+ return useThemeProps$R({
11171
11174
  props: props,
11172
11175
  name: name,
11173
11176
  defaultTheme: defaultTheme$3,
@@ -11224,6 +11227,20 @@
11224
11227
  throw new Error("MUI: withTheme is no longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details." );
11225
11228
  }
11226
11229
 
11230
+ function prepareTypographyVars(typography) {
11231
+ var vars = {};
11232
+ var entries = Object.entries(typography);
11233
+ entries.forEach(function (entry) {
11234
+ var _entry = _slicedToArray(entry, 2),
11235
+ key = _entry[0],
11236
+ value = _entry[1];
11237
+ if (_typeof(value) === 'object') {
11238
+ vars[key] = "".concat(value.fontStyle ? "".concat(value.fontStyle, " ") : '').concat(value.fontVariant ? "".concat(value.fontVariant, " ") : '').concat(value.fontWeight ? "".concat(value.fontWeight, " ") : '').concat(value.fontStretch ? "".concat(value.fontStretch, " ") : '').concat(value.fontSize || '').concat(value.lineHeight ? "/".concat(value.lineHeight, " ") : '').concat(value.fontFamily || '');
11239
+ }
11240
+ });
11241
+ return vars;
11242
+ }
11243
+
11227
11244
  function shouldSkipGeneratingVar(keys) {
11228
11245
  var _keys$;
11229
11246
  return !!keys[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
@@ -11232,16 +11249,15 @@
11232
11249
  }
11233
11250
 
11234
11251
  // Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
11235
- var getOverlayAlpha = function getOverlayAlpha(elevation) {
11252
+ function getOverlayAlpha(elevation) {
11236
11253
  var alphaValue;
11237
11254
  if (elevation < 1) {
11238
11255
  alphaValue = 5.11916 * Math.pow(elevation, 2);
11239
11256
  } else {
11240
11257
  alphaValue = 4.5 * Math.log(elevation + 1) + 2;
11241
11258
  }
11242
- return (alphaValue / 100).toFixed(2);
11243
- };
11244
- var getOverlayAlpha$1 = getOverlayAlpha;
11259
+ return Math.round(alphaValue * 10) / 1000;
11260
+ }
11245
11261
 
11246
11262
  /**
11247
11263
  * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
@@ -11277,7 +11293,7 @@
11277
11293
  if (index === 0) {
11278
11294
  return undefined;
11279
11295
  }
11280
- var overlay = getOverlayAlpha$1(index);
11296
+ var overlay = getOverlayAlpha(index);
11281
11297
  return "linear-gradient(rgba(255 255 255 / ".concat(overlay, "), rgba(255 255 255 / ").concat(overlay, "))");
11282
11298
  });
11283
11299
  function assignNode(obj, keys) {
@@ -11382,6 +11398,7 @@
11382
11398
  overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
11383
11399
  })
11384
11400
  }),
11401
+ font: _extends({}, prepareTypographyVars(muiTheme.typography), muiTheme.font),
11385
11402
  spacing: getSpacingVal(input.spacing)
11386
11403
  });
11387
11404
  Object.keys(theme.colorSchemes).forEach(function (key) {
@@ -11670,12 +11687,18 @@
11670
11687
  throw new Error("MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.For more details, see https://github.com/mui/material-ui/pull/35150." );
11671
11688
  }
11672
11689
 
11690
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
11691
+ function createUseThemeProps(name) {
11692
+ return useThemeProps$Q;
11693
+ }
11694
+
11673
11695
  function getSvgIconUtilityClass(slot) {
11674
11696
  return generateUtilityClass$1('MuiSvgIcon', slot);
11675
11697
  }
11676
11698
  var svgIconClasses = generateUtilityClasses$1('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
11677
11699
  var svgIconClasses$1 = svgIconClasses;
11678
11700
 
11701
+ var useThemeProps$P = createUseThemeProps();
11679
11702
  var useUtilityClasses$1P = function useUtilityClasses(ownerState) {
11680
11703
  var color = ownerState.color,
11681
11704
  fontSize = ownerState.fontSize,
@@ -11693,37 +11716,96 @@
11693
11716
  return [styles.root, ownerState.color !== 'inherit' && styles["color".concat(capitalize(ownerState.color))], styles["fontSize".concat(capitalize(ownerState.fontSize))]];
11694
11717
  }
11695
11718
  })(function (_ref) {
11696
- var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;
11697
- var theme = _ref.theme,
11698
- ownerState = _ref.ownerState;
11719
+ var _theme$transitions, _theme$transitions$cr, _transitions, _theme$vars, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$vars2, _palette2, _theme$vars4, _palette3, _theme$vars5;
11720
+ var theme = _ref.theme;
11699
11721
  return {
11700
11722
  userSelect: 'none',
11701
11723
  width: '1em',
11702
11724
  height: '1em',
11703
11725
  display: 'inline-block',
11704
- // the <svg> will define the property that has `currentColor`
11705
- // for example heroicons uses fill="none" and stroke="currentColor"
11706
- fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
11707
11726
  flexShrink: 0,
11708
11727
  transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
11709
- duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
11728
+ duration: (_transitions = ((_theme$vars = theme.vars) != null ? _theme$vars : theme).transitions) == null || (_transitions = _transitions.duration) == null ? void 0 : _transitions.shorter
11710
11729
  }),
11711
- fontSize: {
11712
- inherit: 'inherit',
11713
- small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
11714
- medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
11715
- large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
11716
- }[ownerState.fontSize],
11717
- // TODO v5 deprecate, v6 remove for sx
11718
- color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
11719
- action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
11720
- disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
11721
- inherit: undefined
11722
- }[ownerState.color]
11730
+ variants: [{
11731
+ props: function props(_props) {
11732
+ return !_props.hasSvgAsChild;
11733
+ },
11734
+ style: {
11735
+ // the <svg> will define the property that has `currentColor`
11736
+ // for example heroicons uses fill="none" and stroke="currentColor"
11737
+ fill: 'currentColor'
11738
+ }
11739
+ }, {
11740
+ props: {
11741
+ fontSize: 'inherit'
11742
+ },
11743
+ style: {
11744
+ fontSize: 'inherit'
11745
+ }
11746
+ }, {
11747
+ props: {
11748
+ fontSize: 'small'
11749
+ },
11750
+ style: {
11751
+ fontSize: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem'
11752
+ }
11753
+ }, {
11754
+ props: {
11755
+ fontSize: 'medium'
11756
+ },
11757
+ style: {
11758
+ fontSize: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem'
11759
+ }
11760
+ }, {
11761
+ props: {
11762
+ fontSize: 'large'
11763
+ },
11764
+ style: {
11765
+ fontSize: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
11766
+ }
11767
+ }].concat(_toConsumableArray(Object.entries(((_theme$vars2 = theme.vars) != null ? _theme$vars2 : theme).palette).filter(function (_ref2) {
11768
+ var _ref3 = _slicedToArray(_ref2, 2),
11769
+ value = _ref3[1];
11770
+ return value.main;
11771
+ }).map(function (_ref4) {
11772
+ var _palette, _theme$vars3;
11773
+ var _ref5 = _slicedToArray(_ref4, 1),
11774
+ color = _ref5[0];
11775
+ return {
11776
+ props: {
11777
+ color: color
11778
+ },
11779
+ style: {
11780
+ color: (_palette = ((_theme$vars3 = theme.vars) != null ? _theme$vars3 : theme).palette) == null || (_palette = _palette[color]) == null ? void 0 : _palette.main
11781
+ }
11782
+ };
11783
+ })), [{
11784
+ props: {
11785
+ color: 'action'
11786
+ },
11787
+ style: {
11788
+ color: (_palette2 = ((_theme$vars4 = theme.vars) != null ? _theme$vars4 : theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active
11789
+ }
11790
+ }, {
11791
+ props: {
11792
+ color: 'disabled'
11793
+ },
11794
+ style: {
11795
+ color: (_palette3 = ((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled
11796
+ }
11797
+ }, {
11798
+ props: {
11799
+ color: 'inherit'
11800
+ },
11801
+ style: {
11802
+ color: undefined
11803
+ }
11804
+ }])
11723
11805
  };
11724
11806
  });
11725
11807
  var SvgIcon = /*#__PURE__*/React__namespace.forwardRef(function SvgIcon(inProps, ref) {
11726
- var props = useThemeProps$M({
11808
+ var props = useThemeProps$P({
11727
11809
  props: inProps,
11728
11810
  name: 'MuiSvgIcon'
11729
11811
  });
@@ -11844,7 +11926,9 @@
11844
11926
  */
11845
11927
  viewBox: PropTypes.string
11846
11928
  } ;
11847
- SvgIcon.muiName = 'SvgIcon';
11929
+ if (SvgIcon) {
11930
+ SvgIcon.muiName = 'SvgIcon';
11931
+ }
11848
11932
  var SvgIcon$1 = SvgIcon;
11849
11933
 
11850
11934
  function createSvgIcon(path, displayName) {
@@ -11880,11 +11964,6 @@
11880
11964
  return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
11881
11965
  }
11882
11966
 
11883
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
11884
- function createUseThemeProps(name) {
11885
- return useThemeProps$M;
11886
- }
11887
-
11888
11967
  function _setPrototypeOf(o, p) {
11889
11968
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
11890
11969
  o.__proto__ = p;
@@ -12972,7 +13051,7 @@
12972
13051
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
12973
13052
  */
12974
13053
  var Collapse = /*#__PURE__*/React__namespace.forwardRef(function Collapse(inProps, ref) {
12975
- var props = useThemeProps$M({
13054
+ var props = useThemeProps$Q({
12976
13055
  props: inProps,
12977
13056
  name: 'MuiCollapse'
12978
13057
  });
@@ -13296,13 +13375,13 @@
13296
13375
  }, ownerState.variant === 'elevation' && _extends({
13297
13376
  boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
13298
13377
  }, !theme.vars && theme.palette.mode === 'dark' && {
13299
- backgroundImage: "linear-gradient(".concat(alpha('#fff', getOverlayAlpha$1(ownerState.elevation)), ", ").concat(alpha('#fff', getOverlayAlpha$1(ownerState.elevation)), ")")
13378
+ backgroundImage: "linear-gradient(".concat(alpha('#fff', getOverlayAlpha(ownerState.elevation)), ", ").concat(alpha('#fff', getOverlayAlpha(ownerState.elevation)), ")")
13300
13379
  }, theme.vars && {
13301
13380
  backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
13302
13381
  }));
13303
13382
  });
13304
13383
  var Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
13305
- var props = useThemeProps$M({
13384
+ var props = useThemeProps$Q({
13306
13385
  props: inProps,
13307
13386
  name: 'MuiPaper'
13308
13387
  });
@@ -13679,7 +13758,7 @@
13679
13758
  var accordionClasses = generateUtilityClasses$1('MuiAccordion', ['root', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);
13680
13759
  var accordionClasses$1 = accordionClasses;
13681
13760
 
13682
- var useThemeProps$L = createUseThemeProps();
13761
+ var useThemeProps$O = createUseThemeProps();
13683
13762
  var useUtilityClasses$1M = function useUtilityClasses(ownerState) {
13684
13763
  var classes = ownerState.classes,
13685
13764
  square = ownerState.square,
@@ -13777,7 +13856,7 @@
13777
13856
  };
13778
13857
  });
13779
13858
  var Accordion = /*#__PURE__*/React__namespace.forwardRef(function Accordion(inProps, ref) {
13780
- var props = useThemeProps$L({
13859
+ var props = useThemeProps$O({
13781
13860
  props: inProps,
13782
13861
  name: 'MuiAccordion'
13783
13862
  });
@@ -13971,7 +14050,7 @@
13971
14050
  var accordionActionsClasses = generateUtilityClasses$1('MuiAccordionActions', ['root', 'spacing']);
13972
14051
  var accordionActionsClasses$1 = accordionActionsClasses;
13973
14052
 
13974
- var useThemeProps$K = createUseThemeProps();
14053
+ var useThemeProps$N = createUseThemeProps();
13975
14054
  var useUtilityClasses$1L = function useUtilityClasses(ownerState) {
13976
14055
  var classes = ownerState.classes,
13977
14056
  disableSpacing = ownerState.disableSpacing;
@@ -14004,7 +14083,7 @@
14004
14083
  }]
14005
14084
  });
14006
14085
  var AccordionActions = /*#__PURE__*/React__namespace.forwardRef(function AccordionActions(inProps, ref) {
14007
- var props = useThemeProps$K({
14086
+ var props = useThemeProps$N({
14008
14087
  props: inProps,
14009
14088
  name: 'MuiAccordionActions'
14010
14089
  });
@@ -14057,7 +14136,7 @@
14057
14136
  var accordionDetailsClasses = generateUtilityClasses$1('MuiAccordionDetails', ['root']);
14058
14137
  var accordionDetailsClasses$1 = accordionDetailsClasses;
14059
14138
 
14060
- var useThemeProps$J = createUseThemeProps();
14139
+ var useThemeProps$M = createUseThemeProps();
14061
14140
  var useUtilityClasses$1K = function useUtilityClasses(ownerState) {
14062
14141
  var classes = ownerState.classes;
14063
14142
  var slots = {
@@ -14078,7 +14157,7 @@
14078
14157
  };
14079
14158
  });
14080
14159
  var AccordionDetails = /*#__PURE__*/React__namespace.forwardRef(function AccordionDetails(inProps, ref) {
14081
- var props = useThemeProps$J({
14160
+ var props = useThemeProps$M({
14082
14161
  props: inProps,
14083
14162
  name: 'MuiAccordionDetails'
14084
14163
  });
@@ -14213,7 +14292,7 @@
14213
14292
  var touchRippleClasses$1 = touchRippleClasses;
14214
14293
 
14215
14294
  var _templateObject$3, _templateObject2$3, _templateObject3$3, _templateObject4$3;
14216
- var useThemeProps$I = createUseThemeProps();
14295
+ var useThemeProps$L = createUseThemeProps();
14217
14296
  var DURATION = 550;
14218
14297
  var DELAY_RIPPLE = 80;
14219
14298
  var enterKeyframe = keyframes(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])));
@@ -14259,7 +14338,7 @@
14259
14338
  * TODO v5: Make private
14260
14339
  */
14261
14340
  var TouchRipple = /*#__PURE__*/React__namespace.forwardRef(function TouchRipple(inProps, ref) {
14262
- var props = useThemeProps$I({
14341
+ var props = useThemeProps$L({
14263
14342
  props: inProps,
14264
14343
  name: 'MuiTouchRipple'
14265
14344
  });
@@ -14471,7 +14550,7 @@
14471
14550
  var buttonBaseClasses = generateUtilityClasses$1('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
14472
14551
  var buttonBaseClasses$1 = buttonBaseClasses;
14473
14552
 
14474
- var useThemeProps$H = createUseThemeProps();
14553
+ var useThemeProps$K = createUseThemeProps();
14475
14554
  var useUtilityClasses$1J = function useUtilityClasses(ownerState) {
14476
14555
  var disabled = ownerState.disabled,
14477
14556
  focusVisible = ownerState.focusVisible,
@@ -14536,7 +14615,7 @@
14536
14615
  * It contains a load of style reset and some focus/ripple logic.
14537
14616
  */
14538
14617
  var ButtonBase = /*#__PURE__*/React__namespace.forwardRef(function ButtonBase(inProps, ref) {
14539
- var props = useThemeProps$H({
14618
+ var props = useThemeProps$K({
14540
14619
  props: inProps,
14541
14620
  name: 'MuiButtonBase'
14542
14621
  });
@@ -14947,7 +15026,7 @@
14947
15026
  var accordionSummaryClasses = generateUtilityClasses$1('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);
14948
15027
  var accordionSummaryClasses$1 = accordionSummaryClasses;
14949
15028
 
14950
- var useThemeProps$G = createUseThemeProps();
15029
+ var useThemeProps$J = createUseThemeProps();
14951
15030
  var useUtilityClasses$1I = function useUtilityClasses(ownerState) {
14952
15031
  var classes = ownerState.classes,
14953
15032
  expanded = ownerState.expanded,
@@ -15038,7 +15117,7 @@
15038
15117
  });
15039
15118
  });
15040
15119
  var AccordionSummary = /*#__PURE__*/React__namespace.forwardRef(function AccordionSummary(inProps, ref) {
15041
- var props = useThemeProps$G({
15120
+ var props = useThemeProps$J({
15042
15121
  props: inProps,
15043
15122
  name: 'MuiAccordionSummary'
15044
15123
  });
@@ -15144,6 +15223,7 @@
15144
15223
  var iconButtonClasses = generateUtilityClasses$1('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
15145
15224
  var iconButtonClasses$1 = iconButtonClasses;
15146
15225
 
15226
+ var useThemeProps$I = createUseThemeProps();
15147
15227
  var useUtilityClasses$1H = function useUtilityClasses(ownerState) {
15148
15228
  var classes = ownerState.classes,
15149
15229
  disabled = ownerState.disabled,
@@ -15163,9 +15243,8 @@
15163
15243
  return [styles.root, ownerState.color !== 'default' && styles["color".concat(capitalize(ownerState.color))], ownerState.edge && styles["edge".concat(capitalize(ownerState.edge))], styles["size".concat(capitalize(ownerState.size))]];
15164
15244
  }
15165
15245
  })(function (_ref) {
15166
- var theme = _ref.theme,
15167
- ownerState = _ref.ownerState;
15168
- return _extends({
15246
+ var theme = _ref.theme;
15247
+ return {
15169
15248
  textAlign: 'center',
15170
15249
  flex: '0 0 auto',
15171
15250
  fontSize: theme.typography.pxToRem(24),
@@ -15176,48 +15255,122 @@
15176
15255
  color: (theme.vars || theme).palette.action.active,
15177
15256
  transition: theme.transitions.create('background-color', {
15178
15257
  duration: theme.transitions.duration.shortest
15179
- })
15180
- }, !ownerState.disableRipple && {
15181
- '&:hover': {
15182
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.activeChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
15183
- // Reset on touch devices, it doesn't add specificity
15184
- '@media (hover: none)': {
15185
- backgroundColor: 'transparent'
15258
+ }),
15259
+ variants: [{
15260
+ props: {
15261
+ disableRipple: false
15262
+ },
15263
+ style: {
15264
+ '&:hover': {
15265
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.activeChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
15266
+ // Reset on touch devices, it doesn't add specificity
15267
+ '@media (hover: none)': {
15268
+ backgroundColor: 'transparent'
15269
+ }
15270
+ }
15186
15271
  }
15187
- }
15188
- }, ownerState.edge === 'start' && {
15189
- marginLeft: ownerState.size === 'small' ? -3 : -12
15190
- }, ownerState.edge === 'end' && {
15191
- marginRight: ownerState.size === 'small' ? -3 : -12
15192
- });
15272
+ }, {
15273
+ props: {
15274
+ edge: 'start'
15275
+ },
15276
+ style: {
15277
+ marginLeft: -12
15278
+ }
15279
+ }, {
15280
+ props: {
15281
+ edge: 'start',
15282
+ size: 'small'
15283
+ },
15284
+ style: {
15285
+ marginLeft: -3
15286
+ }
15287
+ }, {
15288
+ props: {
15289
+ edge: 'end'
15290
+ },
15291
+ style: {
15292
+ marginRight: -12
15293
+ }
15294
+ }, {
15295
+ props: {
15296
+ edge: 'end',
15297
+ size: 'small'
15298
+ },
15299
+ style: {
15300
+ marginRight: -3
15301
+ }
15302
+ }]
15303
+ };
15193
15304
  }, function (_ref2) {
15194
- var _palette;
15195
- var theme = _ref2.theme,
15196
- ownerState = _ref2.ownerState;
15197
- var palette = (_palette = (theme.vars || theme).palette) == null ? void 0 : _palette[ownerState.color];
15198
- return _extends({}, ownerState.color === 'inherit' && {
15199
- color: 'inherit'
15200
- }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({
15201
- color: palette == null ? void 0 : palette.main
15202
- }, !ownerState.disableRipple && {
15203
- '&:hover': _extends({}, palette && {
15204
- backgroundColor: theme.vars ? "rgba(".concat(palette.mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(palette.main, theme.palette.action.hoverOpacity)
15305
+ var theme = _ref2.theme;
15306
+ return _defineProperty({
15307
+ variants: [{
15308
+ props: {
15309
+ color: 'inherit'
15310
+ },
15311
+ style: {
15312
+ color: 'inherit'
15313
+ }
15314
+ }].concat(_toConsumableArray(Object.entries(theme.palette).filter(function (_ref3) {
15315
+ var _ref4 = _slicedToArray(_ref3, 2),
15316
+ value = _ref4[1];
15317
+ return value.main;
15318
+ }) // check all the used fields in the style below
15319
+ .map(function (_ref5) {
15320
+ var _ref6 = _slicedToArray(_ref5, 1),
15321
+ color = _ref6[0];
15322
+ return {
15323
+ props: {
15324
+ color: color
15325
+ },
15326
+ style: {
15327
+ color: (theme.vars || theme).palette[color].main
15328
+ }
15329
+ };
15330
+ })), _toConsumableArray(Object.entries(theme.palette).filter(function (_ref7) {
15331
+ var _ref8 = _slicedToArray(_ref7, 2),
15332
+ value = _ref8[1];
15333
+ return value.main;
15334
+ }) // check all the used fields in the style below
15335
+ .map(function (_ref9) {
15336
+ var _ref10 = _slicedToArray(_ref9, 1),
15337
+ color = _ref10[0];
15338
+ return {
15339
+ props: {
15340
+ color: color,
15341
+ disableRipple: false
15342
+ },
15343
+ style: {
15344
+ '&:hover': {
15345
+ backgroundColor: theme.vars ? "rgba(".concat((theme.vars || theme).palette[color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha((theme.vars || theme).palette[color].main, theme.palette.action.hoverOpacity),
15346
+ // Reset on touch devices, it doesn't add specificity
15347
+ '@media (hover: none)': {
15348
+ backgroundColor: 'transparent'
15349
+ }
15350
+ }
15351
+ }
15352
+ };
15353
+ })), [{
15354
+ props: {
15355
+ size: 'small'
15356
+ },
15357
+ style: {
15358
+ padding: 5,
15359
+ fontSize: theme.typography.pxToRem(18)
15360
+ }
15205
15361
  }, {
15206
- // Reset on touch devices, it doesn't add specificity
15207
- '@media (hover: none)': {
15208
- backgroundColor: 'transparent'
15362
+ props: {
15363
+ size: 'large'
15364
+ },
15365
+ style: {
15366
+ padding: 12,
15367
+ fontSize: theme.typography.pxToRem(28)
15209
15368
  }
15210
- })
15211
- }), ownerState.size === 'small' && {
15212
- padding: 5,
15213
- fontSize: theme.typography.pxToRem(18)
15214
- }, ownerState.size === 'large' && {
15215
- padding: 12,
15216
- fontSize: theme.typography.pxToRem(28)
15217
- }, _defineProperty({}, "&.".concat(iconButtonClasses$1.disabled), {
15369
+ }])
15370
+ }, "&.".concat(iconButtonClasses$1.disabled), {
15218
15371
  backgroundColor: 'transparent',
15219
15372
  color: (theme.vars || theme).palette.action.disabled
15220
- }));
15373
+ });
15221
15374
  });
15222
15375
 
15223
15376
  /**
@@ -15225,7 +15378,7 @@
15225
15378
  * regarding the available icon options.
15226
15379
  */
15227
15380
  var IconButton = /*#__PURE__*/React__namespace.forwardRef(function IconButton(inProps, ref) {
15228
- var props = useThemeProps$M({
15381
+ var props = useThemeProps$I({
15229
15382
  props: inProps,
15230
15383
  name: 'MuiIconButton'
15231
15384
  });
@@ -15352,7 +15505,7 @@
15352
15505
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
15353
15506
  }), 'Close');
15354
15507
 
15355
- var useThemeProps$F = createUseThemeProps();
15508
+ var useThemeProps$H = createUseThemeProps();
15356
15509
  var useUtilityClasses$1G = function useUtilityClasses(ownerState) {
15357
15510
  var variant = ownerState.variant,
15358
15511
  color = ownerState.color,
@@ -15500,7 +15653,7 @@
15500
15653
  })
15501
15654
  };
15502
15655
  var Alert = /*#__PURE__*/React__namespace.forwardRef(function Alert(inProps, ref) {
15503
- var props = useThemeProps$F({
15656
+ var props = useThemeProps$H({
15504
15657
  props: inProps,
15505
15658
  name: 'MuiAlert'
15506
15659
  });
@@ -15787,7 +15940,7 @@
15787
15940
  return colorTransformations$1[color] || color;
15788
15941
  };
15789
15942
  var Typography = /*#__PURE__*/React__namespace.forwardRef(function Typography(inProps, ref) {
15790
- var themeProps = useThemeProps$M({
15943
+ var themeProps = useThemeProps$Q({
15791
15944
  props: inProps,
15792
15945
  name: 'MuiTypography'
15793
15946
  });
@@ -15826,9 +15979,10 @@
15826
15979
  return /*#__PURE__*/jsxRuntime_1(TypographyRoot, _extends({
15827
15980
  as: Component,
15828
15981
  ref: ref,
15829
- ownerState: ownerState,
15830
15982
  className: clsx(classes.root, className)
15831
- }, other));
15983
+ }, other, {
15984
+ ownerState: ownerState
15985
+ }));
15832
15986
  });
15833
15987
  Typography.propTypes /* remove-proptypes */ = {
15834
15988
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -15913,7 +16067,7 @@
15913
16067
  var alertTitleClasses = generateUtilityClasses$1('MuiAlertTitle', ['root']);
15914
16068
  var alertTitleClasses$1 = alertTitleClasses;
15915
16069
 
15916
- var useThemeProps$E = createUseThemeProps();
16070
+ var useThemeProps$G = createUseThemeProps();
15917
16071
  var useUtilityClasses$1E = function useUtilityClasses(ownerState) {
15918
16072
  var classes = ownerState.classes;
15919
16073
  var slots = {
@@ -15935,7 +16089,7 @@
15935
16089
  };
15936
16090
  });
15937
16091
  var AlertTitle = /*#__PURE__*/React__namespace.forwardRef(function AlertTitle(inProps, ref) {
15938
- var props = useThemeProps$E({
16092
+ var props = useThemeProps$G({
15939
16093
  props: inProps,
15940
16094
  name: 'MuiAlertTitle'
15941
16095
  });
@@ -15981,7 +16135,7 @@
15981
16135
  var appBarClasses = generateUtilityClasses$1('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
15982
16136
  var appBarClasses$1 = appBarClasses;
15983
16137
 
15984
- var useThemeProps$D = createUseThemeProps();
16138
+ var useThemeProps$F = createUseThemeProps();
15985
16139
  var useUtilityClasses$1D = function useUtilityClasses(ownerState) {
15986
16140
  var color = ownerState.color,
15987
16141
  position = ownerState.position,
@@ -16132,7 +16286,7 @@
16132
16286
  };
16133
16287
  });
16134
16288
  var AppBar = /*#__PURE__*/React__namespace.forwardRef(function AppBar(inProps, ref) {
16135
- var props = useThemeProps$D({
16289
+ var props = useThemeProps$F({
16136
16290
  props: inProps,
16137
16291
  name: 'MuiAppBar'
16138
16292
  });
@@ -20398,6 +20552,7 @@
20398
20552
  isControlled = _React$useRef.current;
20399
20553
  var inputRef = React__namespace.useRef(null);
20400
20554
  var handleRef = useForkRef(forwardedRef, inputRef);
20555
+ var heightRef = React__namespace.useRef(null);
20401
20556
  var shadowRef = React__namespace.useRef(null);
20402
20557
  var calculateTextareaStyles = React__namespace.useCallback(function () {
20403
20558
  var input = inputRef.current;
@@ -20454,8 +20609,12 @@
20454
20609
  if (isEmpty$1(textareaStyles)) {
20455
20610
  return;
20456
20611
  }
20612
+ var outerHeightStyle = textareaStyles.outerHeightStyle;
20457
20613
  var input = inputRef.current;
20458
- input.style.height = "".concat(textareaStyles.outerHeightStyle, "px");
20614
+ if (heightRef.current !== outerHeightStyle) {
20615
+ heightRef.current = outerHeightStyle;
20616
+ input.style.height = "".concat(outerHeightStyle, "px");
20617
+ }
20459
20618
  input.style.overflow = textareaStyles.overflowing ? 'hidden' : '';
20460
20619
  }, [calculateTextareaStyles]);
20461
20620
  useEnhancedEffect$1(function () {
@@ -21636,7 +21795,7 @@
21636
21795
  var Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
21637
21796
  var _slots$root;
21638
21797
  var theme = useTheme$3();
21639
- var props = useThemeProps$M({
21798
+ var props = useThemeProps$Q({
21640
21799
  props: inProps,
21641
21800
  name: 'MuiPopper'
21642
21801
  });
@@ -21834,34 +21993,62 @@
21834
21993
  return [styles.root, ownerState.color !== 'default' && styles["color".concat(capitalize(ownerState.color))], !ownerState.disableGutters && styles.gutters, ownerState.inset && styles.inset, !ownerState.disableSticky && styles.sticky];
21835
21994
  }
21836
21995
  })(function (_ref) {
21837
- var theme = _ref.theme,
21838
- ownerState = _ref.ownerState;
21839
- return _extends({
21996
+ var theme = _ref.theme;
21997
+ return {
21840
21998
  boxSizing: 'border-box',
21841
21999
  lineHeight: '48px',
21842
22000
  listStyle: 'none',
21843
22001
  color: (theme.vars || theme).palette.text.secondary,
21844
22002
  fontFamily: theme.typography.fontFamily,
21845
22003
  fontWeight: theme.typography.fontWeightMedium,
21846
- fontSize: theme.typography.pxToRem(14)
21847
- }, ownerState.color === 'primary' && {
21848
- color: (theme.vars || theme).palette.primary.main
21849
- }, ownerState.color === 'inherit' && {
21850
- color: 'inherit'
21851
- }, !ownerState.disableGutters && {
21852
- paddingLeft: 16,
21853
- paddingRight: 16
21854
- }, ownerState.inset && {
21855
- paddingLeft: 72
21856
- }, !ownerState.disableSticky && {
21857
- position: 'sticky',
21858
- top: 0,
21859
- zIndex: 1,
21860
- backgroundColor: (theme.vars || theme).palette.background.paper
21861
- });
22004
+ fontSize: theme.typography.pxToRem(14),
22005
+ variants: [{
22006
+ props: {
22007
+ color: 'primary'
22008
+ },
22009
+ style: {
22010
+ color: (theme.vars || theme).palette.primary.main
22011
+ }
22012
+ }, {
22013
+ props: {
22014
+ color: 'inherit'
22015
+ },
22016
+ style: {
22017
+ color: 'inherit'
22018
+ }
22019
+ }, {
22020
+ props: function props(_ref2) {
22021
+ var ownerState = _ref2.ownerState;
22022
+ return !ownerState.disableGutters;
22023
+ },
22024
+ style: {
22025
+ paddingLeft: 16,
22026
+ paddingRight: 16
22027
+ }
22028
+ }, {
22029
+ props: function props(_ref3) {
22030
+ var ownerState = _ref3.ownerState;
22031
+ return ownerState.inset;
22032
+ },
22033
+ style: {
22034
+ paddingLeft: 72
22035
+ }
22036
+ }, {
22037
+ props: function props(_ref4) {
22038
+ var ownerState = _ref4.ownerState;
22039
+ return !ownerState.disableSticky;
22040
+ },
22041
+ style: {
22042
+ position: 'sticky',
22043
+ top: 0,
22044
+ zIndex: 1,
22045
+ backgroundColor: (theme.vars || theme).palette.background.paper
22046
+ }
22047
+ }]
22048
+ };
21862
22049
  });
21863
22050
  var ListSubheader = /*#__PURE__*/React__namespace.forwardRef(function ListSubheader(inProps, ref) {
21864
- var props = useThemeProps$M({
22051
+ var props = useThemeProps$Q({
21865
22052
  props: inProps,
21866
22053
  name: 'MuiListSubheader'
21867
22054
  });
@@ -21952,7 +22139,7 @@
21952
22139
  var chipClasses = generateUtilityClasses$1('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
21953
22140
  var chipClasses$1 = chipClasses;
21954
22141
 
21955
- var useThemeProps$C = createUseThemeProps();
22142
+ var useThemeProps$E = createUseThemeProps();
21956
22143
  var useUtilityClasses$1A = function useUtilityClasses(ownerState) {
21957
22144
  var classes = ownerState.classes,
21958
22145
  disabled = ownerState.disabled,
@@ -22252,7 +22439,7 @@
22252
22439
  * Chips represent complex entities in small blocks, such as a contact.
22253
22440
  */
22254
22441
  var Chip = /*#__PURE__*/React__namespace.forwardRef(function Chip(inProps, ref) {
22255
- var props = useThemeProps$C({
22442
+ var props = useThemeProps$E({
22256
22443
  props: inProps,
22257
22444
  name: 'MuiChip'
22258
22445
  });
@@ -22740,7 +22927,7 @@
22740
22927
  */
22741
22928
  var InputBase = /*#__PURE__*/React__namespace.forwardRef(function InputBase(inProps, ref) {
22742
22929
  var _slotProps$input;
22743
- var props = useThemeProps$M({
22930
+ var props = useThemeProps$Q({
22744
22931
  props: inProps,
22745
22932
  name: 'MuiInputBase'
22746
22933
  });
@@ -23280,7 +23467,7 @@
23280
23467
  var autocompleteClasses$1 = autocompleteClasses;
23281
23468
 
23282
23469
  var _styled, _ClearIcon, _ArrowDropDownIcon;
23283
- var useThemeProps$B = createUseThemeProps();
23470
+ var useThemeProps$D = createUseThemeProps();
23284
23471
  var useUtilityClasses$1y = function useUtilityClasses(ownerState) {
23285
23472
  var classes = ownerState.classes,
23286
23473
  disablePortal = ownerState.disablePortal,
@@ -23599,7 +23786,7 @@
23599
23786
  }));
23600
23787
  var Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
23601
23788
  var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
23602
- var props = useThemeProps$B({
23789
+ var props = useThemeProps$D({
23603
23790
  props: inProps,
23604
23791
  name: 'MuiAutocomplete'
23605
23792
  });
@@ -24375,7 +24562,7 @@
24375
24562
  var avatarClasses = generateUtilityClasses$1('MuiAvatar', ['root', 'colorDefault', 'circular', 'rounded', 'square', 'img', 'fallback']);
24376
24563
  var avatarClasses$1 = avatarClasses;
24377
24564
 
24378
- var useThemeProps$A = createUseThemeProps();
24565
+ var useThemeProps$C = createUseThemeProps();
24379
24566
  var useUtilityClasses$1x = function useUtilityClasses(ownerState) {
24380
24567
  var classes = ownerState.classes,
24381
24568
  variant = ownerState.variant,
@@ -24507,7 +24694,7 @@
24507
24694
  return loaded;
24508
24695
  }
24509
24696
  var Avatar = /*#__PURE__*/React__namespace.forwardRef(function Avatar(inProps, ref) {
24510
- var props = useThemeProps$A({
24697
+ var props = useThemeProps$C({
24511
24698
  props: inProps,
24512
24699
  name: 'MuiAvatar'
24513
24700
  });
@@ -24668,7 +24855,7 @@
24668
24855
  small: -16,
24669
24856
  medium: -8
24670
24857
  };
24671
- var useThemeProps$z = createUseThemeProps();
24858
+ var useThemeProps$B = createUseThemeProps();
24672
24859
  var useUtilityClasses$1w = function useUtilityClasses(ownerState) {
24673
24860
  var classes = ownerState.classes;
24674
24861
  var slots = {
@@ -24699,7 +24886,7 @@
24699
24886
  });
24700
24887
  var AvatarGroup = /*#__PURE__*/React__namespace.forwardRef(function AvatarGroup(inProps, ref) {
24701
24888
  var _slotProps$additional;
24702
- var props = useThemeProps$z({
24889
+ var props = useThemeProps$B({
24703
24890
  props: inProps,
24704
24891
  name: 'MuiAvatarGroup'
24705
24892
  });
@@ -25055,7 +25242,7 @@
25055
25242
  var backdropClasses = generateUtilityClasses$1('MuiBackdrop', ['root', 'invisible']);
25056
25243
  var backdropClasses$1 = backdropClasses;
25057
25244
 
25058
- var useThemeProps$y = createUseThemeProps();
25245
+ var useThemeProps$A = createUseThemeProps();
25059
25246
  var useUtilityClasses$1v = function useUtilityClasses(ownerState) {
25060
25247
  var classes = ownerState.classes,
25061
25248
  invisible = ownerState.invisible;
@@ -25092,7 +25279,7 @@
25092
25279
  }]
25093
25280
  });
25094
25281
  var Backdrop = /*#__PURE__*/React__namespace.forwardRef(function Backdrop(inProps, ref) {
25095
- var props = useThemeProps$y({
25282
+ var props = useThemeProps$A({
25096
25283
  props: inProps,
25097
25284
  name: 'MuiBackdrop'
25098
25285
  });
@@ -25263,7 +25450,7 @@
25263
25450
 
25264
25451
  var RADIUS_STANDARD = 10;
25265
25452
  var RADIUS_DOT = 4;
25266
- var useThemeProps$x = createUseThemeProps();
25453
+ var useThemeProps$z = createUseThemeProps();
25267
25454
  var useUtilityClasses$1u = function useUtilityClasses(ownerState) {
25268
25455
  var color = ownerState.color,
25269
25456
  anchorOrigin = ownerState.anchorOrigin,
@@ -25466,7 +25653,7 @@
25466
25653
  });
25467
25654
  var Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
25468
25655
  var _ref11, _slots$root, _ref12, _slots$badge, _slotProps$root, _slotProps$badge;
25469
- var props = useThemeProps$x({
25656
+ var props = useThemeProps$z({
25470
25657
  props: inProps,
25471
25658
  name: 'MuiBadge'
25472
25659
  });
@@ -25690,7 +25877,7 @@
25690
25877
  var bottomNavigationClasses = generateUtilityClasses$1('MuiBottomNavigation', ['root']);
25691
25878
  var bottomNavigationClasses$1 = bottomNavigationClasses;
25692
25879
 
25693
- var useThemeProps$w = createUseThemeProps();
25880
+ var useThemeProps$y = createUseThemeProps();
25694
25881
  var useUtilityClasses$1t = function useUtilityClasses(ownerState) {
25695
25882
  var classes = ownerState.classes;
25696
25883
  var slots = {
@@ -25714,7 +25901,7 @@
25714
25901
  };
25715
25902
  });
25716
25903
  var BottomNavigation = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigation(inProps, ref) {
25717
- var props = useThemeProps$w({
25904
+ var props = useThemeProps$y({
25718
25905
  props: inProps,
25719
25906
  name: 'MuiBottomNavigation'
25720
25907
  });
@@ -25809,7 +25996,7 @@
25809
25996
  var bottomNavigationActionClasses = generateUtilityClasses$1('MuiBottomNavigationAction', ['root', 'iconOnly', 'selected', 'label']);
25810
25997
  var bottomNavigationActionClasses$1 = bottomNavigationActionClasses;
25811
25998
 
25812
- var useThemeProps$v = createUseThemeProps();
25999
+ var useThemeProps$x = createUseThemeProps();
25813
26000
  var useUtilityClasses$1s = function useUtilityClasses(ownerState) {
25814
26001
  var classes = ownerState.classes,
25815
26002
  showLabel = ownerState.showLabel,
@@ -25891,7 +26078,7 @@
25891
26078
  }]);
25892
26079
  });
25893
26080
  var BottomNavigationAction = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigationAction(inProps, ref) {
25894
- var props = useThemeProps$v({
26081
+ var props = useThemeProps$x({
25895
26082
  props: inProps,
25896
26083
  name: 'MuiBottomNavigationAction'
25897
26084
  });
@@ -26099,7 +26286,7 @@
26099
26286
  var breadcrumbsClasses = generateUtilityClasses$1('MuiBreadcrumbs', ['root', 'ol', 'li', 'separator']);
26100
26287
  var breadcrumbsClasses$1 = breadcrumbsClasses;
26101
26288
 
26102
- var useThemeProps$u = createUseThemeProps();
26289
+ var useThemeProps$w = createUseThemeProps();
26103
26290
  var useUtilityClasses$1r = function useUtilityClasses(ownerState) {
26104
26291
  var classes = ownerState.classes;
26105
26292
  var slots = {
@@ -26159,7 +26346,7 @@
26159
26346
  }, []);
26160
26347
  }
26161
26348
  var Breadcrumbs = /*#__PURE__*/React__namespace.forwardRef(function Breadcrumbs(inProps, ref) {
26162
- var props = useThemeProps$u({
26349
+ var props = useThemeProps$w({
26163
26350
  props: inProps,
26164
26351
  name: 'MuiBreadcrumbs'
26165
26352
  });
@@ -26359,7 +26546,7 @@
26359
26546
  }
26360
26547
  var ButtonGroupButtonContext$1 = ButtonGroupButtonContext;
26361
26548
 
26362
- var useThemeProps$t = createUseThemeProps();
26549
+ var useThemeProps$v = createUseThemeProps();
26363
26550
  var useUtilityClasses$1q = function useUtilityClasses(ownerState) {
26364
26551
  var color = ownerState.color,
26365
26552
  disableElevation = ownerState.disableElevation,
@@ -26651,7 +26838,7 @@
26651
26838
  var contextProps = React__namespace.useContext(ButtonGroupContext$1);
26652
26839
  var buttonGroupButtonContextPositionClassName = React__namespace.useContext(ButtonGroupButtonContext$1);
26653
26840
  var resolvedProps = resolveProps(contextProps, inProps);
26654
- var props = useThemeProps$t({
26841
+ var props = useThemeProps$v({
26655
26842
  props: resolvedProps,
26656
26843
  name: 'MuiButton'
26657
26844
  });
@@ -26817,7 +27004,7 @@
26817
27004
  var buttonGroupClasses = generateUtilityClasses$1('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'horizontal', 'vertical', 'colorPrimary', 'colorSecondary', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
26818
27005
  var buttonGroupClasses$1 = buttonGroupClasses;
26819
27006
 
26820
- var useThemeProps$s = createUseThemeProps();
27007
+ var useThemeProps$u = createUseThemeProps();
26821
27008
  var overridesResolver$6 = function overridesResolver(props, styles) {
26822
27009
  var ownerState = props.ownerState;
26823
27010
  return [_defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles.grouped), _defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles["grouped".concat(capitalize(ownerState.orientation))]), _defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles["grouped".concat(capitalize(ownerState.variant))]), _defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles["grouped".concat(capitalize(ownerState.variant)).concat(capitalize(ownerState.orientation))]), _defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles["grouped".concat(capitalize(ownerState.variant)).concat(capitalize(ownerState.color))]), _defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton), styles.firstButton), _defineProperty({}, "& .".concat(buttonGroupClasses$1.lastButton), styles.lastButton), _defineProperty({}, "& .".concat(buttonGroupClasses$1.middleButton), styles.middleButton), styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];
@@ -27006,7 +27193,7 @@
27006
27193
  });
27007
27194
  });
27008
27195
  var ButtonGroup = /*#__PURE__*/React__namespace.forwardRef(function ButtonGroup(inProps, ref) {
27009
- var props = useThemeProps$s({
27196
+ var props = useThemeProps$u({
27010
27197
  props: inProps,
27011
27198
  name: 'MuiButtonGroup'
27012
27199
  });
@@ -27176,7 +27363,7 @@
27176
27363
  var cardClasses = generateUtilityClasses$1('MuiCard', ['root']);
27177
27364
  var cardClasses$1 = cardClasses;
27178
27365
 
27179
- var useThemeProps$r = createUseThemeProps();
27366
+ var useThemeProps$t = createUseThemeProps();
27180
27367
  var useUtilityClasses$1o = function useUtilityClasses(ownerState) {
27181
27368
  var classes = ownerState.classes;
27182
27369
  var slots = {
@@ -27194,7 +27381,7 @@
27194
27381
  overflow: 'hidden'
27195
27382
  });
27196
27383
  var Card = /*#__PURE__*/React__namespace.forwardRef(function Card(inProps, ref) {
27197
- var props = useThemeProps$r({
27384
+ var props = useThemeProps$t({
27198
27385
  props: inProps,
27199
27386
  name: 'MuiCard'
27200
27387
  });
@@ -27253,7 +27440,7 @@
27253
27440
  var cardActionAreaClasses = generateUtilityClasses$1('MuiCardActionArea', ['root', 'focusVisible', 'focusHighlight']);
27254
27441
  var cardActionAreaClasses$1 = cardActionAreaClasses;
27255
27442
 
27256
- var useThemeProps$q = createUseThemeProps();
27443
+ var useThemeProps$s = createUseThemeProps();
27257
27444
  var useUtilityClasses$1n = function useUtilityClasses(ownerState) {
27258
27445
  var classes = ownerState.classes;
27259
27446
  var slots = {
@@ -27310,7 +27497,7 @@
27310
27497
  };
27311
27498
  });
27312
27499
  var CardActionArea = /*#__PURE__*/React__namespace.forwardRef(function CardActionArea(inProps, ref) {
27313
- var props = useThemeProps$q({
27500
+ var props = useThemeProps$s({
27314
27501
  props: inProps,
27315
27502
  name: 'MuiCardActionArea'
27316
27503
  });
@@ -27366,7 +27553,7 @@
27366
27553
  var cardActionsClasses = generateUtilityClasses$1('MuiCardActions', ['root', 'spacing']);
27367
27554
  var cardActionsClasses$1 = cardActionsClasses;
27368
27555
 
27369
- var useThemeProps$p = createUseThemeProps();
27556
+ var useThemeProps$r = createUseThemeProps();
27370
27557
  var useUtilityClasses$1m = function useUtilityClasses(ownerState) {
27371
27558
  var classes = ownerState.classes,
27372
27559
  disableSpacing = ownerState.disableSpacing;
@@ -27398,7 +27585,7 @@
27398
27585
  }]
27399
27586
  });
27400
27587
  var CardActions = /*#__PURE__*/React__namespace.forwardRef(function CardActions(inProps, ref) {
27401
- var props = useThemeProps$p({
27588
+ var props = useThemeProps$r({
27402
27589
  props: inProps,
27403
27590
  name: 'MuiCardActions'
27404
27591
  });
@@ -27451,7 +27638,7 @@
27451
27638
  var cardContentClasses = generateUtilityClasses$1('MuiCardContent', ['root']);
27452
27639
  var cardContentClasses$1 = cardContentClasses;
27453
27640
 
27454
- var useThemeProps$o = createUseThemeProps();
27641
+ var useThemeProps$q = createUseThemeProps();
27455
27642
  var useUtilityClasses$1l = function useUtilityClasses(ownerState) {
27456
27643
  var classes = ownerState.classes;
27457
27644
  var slots = {
@@ -27472,7 +27659,7 @@
27472
27659
  }
27473
27660
  });
27474
27661
  var CardContent = /*#__PURE__*/React__namespace.forwardRef(function CardContent(inProps, ref) {
27475
- var props = useThemeProps$o({
27662
+ var props = useThemeProps$q({
27476
27663
  props: inProps,
27477
27664
  name: 'MuiCardContent'
27478
27665
  });
@@ -27526,7 +27713,7 @@
27526
27713
  var cardHeaderClasses = generateUtilityClasses$1('MuiCardHeader', ['root', 'avatar', 'action', 'content', 'title', 'subheader']);
27527
27714
  var cardHeaderClasses$1 = cardHeaderClasses;
27528
27715
 
27529
- var useThemeProps$n = createUseThemeProps();
27716
+ var useThemeProps$p = createUseThemeProps();
27530
27717
  var useUtilityClasses$1k = function useUtilityClasses(ownerState) {
27531
27718
  var classes = ownerState.classes;
27532
27719
  var slots = {
@@ -27584,7 +27771,7 @@
27584
27771
  flex: '1 1 auto'
27585
27772
  });
27586
27773
  var CardHeader = /*#__PURE__*/React__namespace.forwardRef(function CardHeader(inProps, ref) {
27587
- var props = useThemeProps$n({
27774
+ var props = useThemeProps$p({
27588
27775
  props: inProps,
27589
27776
  name: 'MuiCardHeader'
27590
27777
  });
@@ -27718,7 +27905,7 @@
27718
27905
  var cardMediaClasses = generateUtilityClasses$1('MuiCardMedia', ['root', 'media', 'img']);
27719
27906
  var cardMediaClasses$1 = cardMediaClasses;
27720
27907
 
27721
- var useThemeProps$m = createUseThemeProps();
27908
+ var useThemeProps$o = createUseThemeProps();
27722
27909
  var useUtilityClasses$1j = function useUtilityClasses(ownerState) {
27723
27910
  var classes = ownerState.classes,
27724
27911
  isMediaComponent = ownerState.isMediaComponent,
@@ -27761,7 +27948,7 @@
27761
27948
  var MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img'];
27762
27949
  var IMAGE_COMPONENTS = ['picture', 'img'];
27763
27950
  var CardMedia = /*#__PURE__*/React__namespace.forwardRef(function CardMedia(inProps, ref) {
27764
- var props = useThemeProps$m({
27951
+ var props = useThemeProps$o({
27765
27952
  props: inProps,
27766
27953
  name: 'MuiCardMedia'
27767
27954
  });
@@ -28127,6 +28314,7 @@
28127
28314
  var checkboxClasses = generateUtilityClasses$1('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);
28128
28315
  var checkboxClasses$1 = checkboxClasses;
28129
28316
 
28317
+ var useThemeProps$n = createUseThemeProps();
28130
28318
  var useUtilityClasses$1h = function useUtilityClasses(ownerState) {
28131
28319
  var classes = ownerState.classes,
28132
28320
  indeterminate = ownerState.indeterminate,
@@ -28149,30 +28337,76 @@
28149
28337
  return [styles.root, ownerState.indeterminate && styles.indeterminate, styles["size".concat(capitalize(ownerState.size))], ownerState.color !== 'default' && styles["color".concat(capitalize(ownerState.color))]];
28150
28338
  }
28151
28339
  })(function (_ref) {
28152
- var theme = _ref.theme,
28153
- ownerState = _ref.ownerState;
28154
- return _extends({
28155
- color: (theme.vars || theme).palette.text.secondary
28156
- }, !ownerState.disableRipple && {
28157
- '&:hover': {
28158
- backgroundColor: theme.vars ? "rgba(".concat(ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
28159
- // Reset on touch devices, it doesn't add specificity
28160
- '@media (hover: none)': {
28161
- backgroundColor: 'transparent'
28340
+ var theme = _ref.theme;
28341
+ return {
28342
+ color: (theme.vars || theme).palette.text.secondary,
28343
+ variants: [{
28344
+ props: {
28345
+ color: 'default',
28346
+ disableRipple: false
28347
+ },
28348
+ style: {
28349
+ '&:hover': {
28350
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.activeChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)
28351
+ }
28162
28352
  }
28163
- }
28164
- }, ownerState.color !== 'default' && _defineProperty(_defineProperty({}, "&.".concat(checkboxClasses$1.checked, ", &.").concat(checkboxClasses$1.indeterminate), {
28165
- color: (theme.vars || theme).palette[ownerState.color].main
28166
- }), "&.".concat(checkboxClasses$1.disabled), {
28167
- color: (theme.vars || theme).palette.action.disabled
28168
- }));
28353
+ }].concat(_toConsumableArray(Object.entries(theme.palette).filter(function (_ref2) {
28354
+ var _ref3 = _slicedToArray(_ref2, 2),
28355
+ palette = _ref3[1];
28356
+ return palette.main;
28357
+ }).map(function (_ref4) {
28358
+ var _ref5 = _slicedToArray(_ref4, 1),
28359
+ color = _ref5[0];
28360
+ return {
28361
+ props: {
28362
+ color: color,
28363
+ disableRipple: false
28364
+ },
28365
+ style: {
28366
+ '&:hover': {
28367
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)
28368
+ }
28369
+ }
28370
+ };
28371
+ })), _toConsumableArray(Object.entries(theme.palette).filter(function (_ref6) {
28372
+ var _ref7 = _slicedToArray(_ref6, 2),
28373
+ palette = _ref7[1];
28374
+ return palette.main;
28375
+ }).map(function (_ref8) {
28376
+ var _ref9 = _slicedToArray(_ref8, 1),
28377
+ color = _ref9[0];
28378
+ return {
28379
+ props: {
28380
+ color: color
28381
+ },
28382
+ style: _defineProperty(_defineProperty({}, "&.".concat(checkboxClasses$1.checked, ", &.").concat(checkboxClasses$1.indeterminate), {
28383
+ color: (theme.vars || theme).palette[color].main
28384
+ }), "&.".concat(checkboxClasses$1.disabled), {
28385
+ color: (theme.vars || theme).palette.action.disabled
28386
+ })
28387
+ };
28388
+ })), [{
28389
+ // Should be last to override other colors
28390
+ props: {
28391
+ disableRipple: false
28392
+ },
28393
+ style: {
28394
+ // Reset on touch devices, it doesn't add specificity
28395
+ '&:hover': {
28396
+ '@media (hover: none)': {
28397
+ backgroundColor: 'transparent'
28398
+ }
28399
+ }
28400
+ }
28401
+ }])
28402
+ };
28169
28403
  });
28170
28404
  var defaultCheckedIcon$1 = /*#__PURE__*/jsxRuntime_1(CheckBoxIcon, {});
28171
28405
  var defaultIcon$2 = /*#__PURE__*/jsxRuntime_1(CheckBoxOutlineBlankIcon, {});
28172
28406
  var defaultIndeterminateIcon = /*#__PURE__*/jsxRuntime_1(IndeterminateCheckBoxIcon, {});
28173
28407
  var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function Checkbox(inProps, ref) {
28174
28408
  var _icon$props$fontSize, _indeterminateIcon$pr;
28175
- var props = useThemeProps$M({
28409
+ var props = useThemeProps$n({
28176
28410
  props: inProps,
28177
28411
  name: 'MuiCheckbox'
28178
28412
  });
@@ -28327,7 +28561,7 @@
28327
28561
  var circularProgressClasses$1 = circularProgressClasses;
28328
28562
 
28329
28563
  var _templateObject$2, _templateObject2$2, _templateObject3$2, _templateObject4$2;
28330
- var useThemeProps$l = createUseThemeProps();
28564
+ var useThemeProps$m = createUseThemeProps();
28331
28565
  var SIZE = 44;
28332
28566
  var circularRotateKeyframe = keyframes(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])));
28333
28567
  var circularDashKeyframe = keyframes(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])));
@@ -28449,7 +28683,7 @@
28449
28683
  * attribute to `true` on that region until it has finished loading.
28450
28684
  */
28451
28685
  var CircularProgress = /*#__PURE__*/React__namespace.forwardRef(function CircularProgress(inProps, ref) {
28452
- var props = useThemeProps$l({
28686
+ var props = useThemeProps$m({
28453
28687
  props: inProps,
28454
28688
  name: 'MuiCircularProgress'
28455
28689
  });
@@ -28590,7 +28824,7 @@
28590
28824
  }
28591
28825
  }),
28592
28826
  useThemeProps: function useThemeProps(inProps) {
28593
- return useThemeProps$M({
28827
+ return useThemeProps$Q({
28594
28828
  props: inProps,
28595
28829
  name: 'MuiContainer'
28596
28830
  });
@@ -28713,7 +28947,7 @@
28713
28947
  return defaultStyles;
28714
28948
  };
28715
28949
  function CssBaseline(inProps) {
28716
- var props = useThemeProps$M({
28950
+ var props = useThemeProps$Q({
28717
28951
  props: inProps,
28718
28952
  name: 'MuiCssBaseline'
28719
28953
  });
@@ -28786,7 +29020,7 @@
28786
29020
  var modalClasses = generateUtilityClasses$1('MuiModal', ['root', 'hidden', 'backdrop']);
28787
29021
  var modalClasses$1 = modalClasses;
28788
29022
 
28789
- var useThemeProps$k = createUseThemeProps();
29023
+ var useThemeProps$l = createUseThemeProps();
28790
29024
  var useUtilityClasses$1f = function useUtilityClasses(ownerState) {
28791
29025
  var open = ownerState.open,
28792
29026
  exited = ownerState.exited,
@@ -28849,7 +29083,7 @@
28849
29083
  */
28850
29084
  var Modal = /*#__PURE__*/React__namespace.forwardRef(function Modal(inProps, ref) {
28851
29085
  var _ref3, _slots$root, _ref4, _slots$backdrop, _slotProps$root, _slotProps$backdrop;
28852
- var props = useThemeProps$k({
29086
+ var props = useThemeProps$l({
28853
29087
  name: 'MuiModal',
28854
29088
  props: inProps
28855
29089
  });
@@ -29303,7 +29537,7 @@
29303
29537
  * Dialogs are overlaid modal paper based components with a backdrop.
29304
29538
  */
29305
29539
  var Dialog = /*#__PURE__*/React__namespace.forwardRef(function Dialog(inProps, ref) {
29306
- var props = useThemeProps$M({
29540
+ var props = useThemeProps$Q({
29307
29541
  props: inProps,
29308
29542
  name: 'MuiDialog'
29309
29543
  });
@@ -29596,7 +29830,7 @@
29596
29830
  });
29597
29831
  });
29598
29832
  var DialogActions = /*#__PURE__*/React__namespace.forwardRef(function DialogActions(inProps, ref) {
29599
- var props = useThemeProps$M({
29833
+ var props = useThemeProps$Q({
29600
29834
  props: inProps,
29601
29835
  name: 'MuiDialogActions'
29602
29836
  });
@@ -29688,7 +29922,7 @@
29688
29922
  }));
29689
29923
  });
29690
29924
  var DialogContent = /*#__PURE__*/React__namespace.forwardRef(function DialogContent(inProps, ref) {
29691
- var props = useThemeProps$M({
29925
+ var props = useThemeProps$Q({
29692
29926
  props: inProps,
29693
29927
  name: 'MuiDialogContent'
29694
29928
  });
@@ -29760,7 +29994,7 @@
29760
29994
  }
29761
29995
  })({});
29762
29996
  var DialogContentText = /*#__PURE__*/React__namespace.forwardRef(function DialogContentText(inProps, ref) {
29763
- var props = useThemeProps$M({
29997
+ var props = useThemeProps$Q({
29764
29998
  props: inProps,
29765
29999
  name: 'MuiDialogContentText'
29766
30000
  });
@@ -29821,7 +30055,7 @@
29821
30055
  flex: '0 0 auto'
29822
30056
  });
29823
30057
  var DialogTitle = /*#__PURE__*/React__namespace.forwardRef(function DialogTitle(inProps, ref) {
29824
- var props = useThemeProps$M({
30058
+ var props = useThemeProps$Q({
29825
30059
  props: inProps,
29826
30060
  name: 'MuiDialogTitle'
29827
30061
  });
@@ -29876,7 +30110,7 @@
29876
30110
  var dividerClasses = generateUtilityClasses$1('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
29877
30111
  var dividerClasses$1 = dividerClasses;
29878
30112
 
29879
- var useThemeProps$j = createUseThemeProps();
30113
+ var useThemeProps$k = createUseThemeProps();
29880
30114
  var useUtilityClasses$19 = function useUtilityClasses(ownerState) {
29881
30115
  var absolute = ownerState.absolute,
29882
30116
  children = ownerState.children,
@@ -30060,7 +30294,7 @@
30060
30294
  };
30061
30295
  });
30062
30296
  var Divider = /*#__PURE__*/React__namespace.forwardRef(function Divider(inProps, ref) {
30063
- var props = useThemeProps$j({
30297
+ var props = useThemeProps$k({
30064
30298
  props: inProps,
30065
30299
  name: 'MuiDivider'
30066
30300
  });
@@ -30609,7 +30843,7 @@
30609
30843
  * when `variant="temporary"` is set.
30610
30844
  */
30611
30845
  var Drawer = /*#__PURE__*/React__namespace.forwardRef(function Drawer(inProps, ref) {
30612
- var props = useThemeProps$M({
30846
+ var props = useThemeProps$Q({
30613
30847
  props: inProps,
30614
30848
  name: 'MuiDrawer'
30615
30849
  });
@@ -30806,7 +31040,7 @@
30806
31040
  var fabClasses = generateUtilityClasses$1('MuiFab', ['root', 'primary', 'secondary', 'extended', 'circular', 'focusVisible', 'disabled', 'colorInherit', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'info', 'error', 'warning', 'success']);
30807
31041
  var fabClasses$1 = fabClasses;
30808
31042
 
30809
- var useThemeProps$i = createUseThemeProps();
31043
+ var useThemeProps$j = createUseThemeProps();
30810
31044
  var useUtilityClasses$17 = function useUtilityClasses(ownerState) {
30811
31045
  var color = ownerState.color,
30812
31046
  variant = ownerState.variant,
@@ -30956,7 +31190,7 @@
30956
31190
  });
30957
31191
  });
30958
31192
  var Fab = /*#__PURE__*/React__namespace.forwardRef(function Fab(inProps, ref) {
30959
- var props = useThemeProps$i({
31193
+ var props = useThemeProps$j({
30960
31194
  props: inProps,
30961
31195
  name: 'MuiFab'
30962
31196
  });
@@ -31227,7 +31461,7 @@
31227
31461
  });
31228
31462
  var FilledInput = /*#__PURE__*/React__namespace.forwardRef(function FilledInput(inProps, ref) {
31229
31463
  var _ref5, _slots$root, _ref6, _slots$input;
31230
- var props = useThemeProps$M({
31464
+ var props = useThemeProps$Q({
31231
31465
  props: inProps,
31232
31466
  name: 'MuiFilledInput'
31233
31467
  });
@@ -31483,7 +31717,7 @@
31483
31717
  var formControlClasses = generateUtilityClasses$1('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);
31484
31718
  var formControlClasses$1 = formControlClasses;
31485
31719
 
31486
- var useThemeProps$h = createUseThemeProps();
31720
+ var useThemeProps$i = createUseThemeProps();
31487
31721
  var useUtilityClasses$15 = function useUtilityClasses(ownerState) {
31488
31722
  var classes = ownerState.classes,
31489
31723
  margin = ownerState.margin,
@@ -31562,7 +31796,7 @@
31562
31796
  * For instance, only one input can be focused at the same time, the state shouldn't be shared.
31563
31797
  */
31564
31798
  var FormControl = /*#__PURE__*/React__namespace.forwardRef(function FormControl(inProps, ref) {
31565
- var props = useThemeProps$h({
31799
+ var props = useThemeProps$i({
31566
31800
  props: inProps,
31567
31801
  name: 'MuiFormControl'
31568
31802
  });
@@ -31793,7 +32027,7 @@
31793
32027
  }
31794
32028
  }),
31795
32029
  useThemeProps: function useThemeProps(inProps) {
31796
- return useThemeProps$M({
32030
+ return useThemeProps$Q({
31797
32031
  props: inProps,
31798
32032
  name: 'MuiStack'
31799
32033
  });
@@ -31854,7 +32088,7 @@
31854
32088
  var formControlLabelClasses = generateUtilityClasses$1('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);
31855
32089
  var formControlLabelClasses$1 = formControlLabelClasses;
31856
32090
 
31857
- var useThemeProps$g = createUseThemeProps();
32091
+ var useThemeProps$h = createUseThemeProps();
31858
32092
  var useUtilityClasses$14 = function useUtilityClasses(ownerState) {
31859
32093
  var classes = ownerState.classes,
31860
32094
  disabled = ownerState.disabled,
@@ -31940,8 +32174,8 @@
31940
32174
  * Use this component if you want to display an extra label.
31941
32175
  */
31942
32176
  var FormControlLabel = /*#__PURE__*/React__namespace.forwardRef(function FormControlLabel(inProps, ref) {
31943
- var _ref7, _slotProps$typography;
31944
- var props = useThemeProps$g({
32177
+ var _ref7;
32178
+ var props = useThemeProps$h({
31945
32179
  props: inProps,
31946
32180
  name: 'MuiFormControlLabel'
31947
32181
  });
@@ -31959,10 +32193,12 @@
31959
32193
  props.name;
31960
32194
  props.onChange;
31961
32195
  var requiredProp = props.required,
32196
+ _props$slots = props.slots,
32197
+ slots = _props$slots === void 0 ? {} : _props$slots,
31962
32198
  _props$slotProps = props.slotProps,
31963
32199
  slotProps = _props$slotProps === void 0 ? {} : _props$slotProps;
31964
32200
  props.value;
31965
- var other = _objectWithoutProperties(props, ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"]);
32201
+ var other = _objectWithoutProperties(props, ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slots", "slotProps", "value"]);
31966
32202
  var muiFormControl = useFormControl();
31967
32203
  var disabled = (_ref7 = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref7 : muiFormControl == null ? void 0 : muiFormControl.disabled;
31968
32204
  var required = requiredProp != null ? requiredProp : control.props.required;
@@ -31987,10 +32223,21 @@
31987
32223
  error: fcs.error
31988
32224
  });
31989
32225
  var classes = useUtilityClasses$14(ownerState);
31990
- var typographySlotProps = (_slotProps$typography = slotProps.typography) != null ? _slotProps$typography : componentsProps.typography;
32226
+ var externalForwardedProps = {
32227
+ slots: slots,
32228
+ slotProps: _extends({}, componentsProps, slotProps)
32229
+ };
32230
+ var _useSlot = useSlot('typography', {
32231
+ elementType: Typography$1,
32232
+ externalForwardedProps: externalForwardedProps,
32233
+ ownerState: ownerState
32234
+ }),
32235
+ _useSlot2 = _slicedToArray(_useSlot, 2),
32236
+ TypographySlot = _useSlot2[0],
32237
+ typographySlotProps = _useSlot2[1];
31991
32238
  var label = labelProp;
31992
32239
  if (label != null && label.type !== Typography$1 && !disableTypography) {
31993
- label = /*#__PURE__*/jsxRuntime_1(Typography$1, _extends({
32240
+ label = /*#__PURE__*/jsxRuntime_1(TypographySlot, _extends({
31994
32241
  component: "span"
31995
32242
  }, typographySlotProps, {
31996
32243
  className: clsx(classes.label, typographySlotProps == null ? void 0 : typographySlotProps.className),
@@ -32033,6 +32280,7 @@
32033
32280
  /**
32034
32281
  * The props used for each slot inside.
32035
32282
  * @default {}
32283
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
32036
32284
  */
32037
32285
  componentsProps: PropTypes.shape({
32038
32286
  typography: PropTypes.object
@@ -32082,7 +32330,14 @@
32082
32330
  * @default {}
32083
32331
  */
32084
32332
  slotProps: PropTypes.shape({
32085
- typography: PropTypes.object
32333
+ typography: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
32334
+ }),
32335
+ /**
32336
+ * The components used for each slot inside.
32337
+ * @default {}
32338
+ */
32339
+ slots: PropTypes.shape({
32340
+ typography: PropTypes.elementType
32086
32341
  }),
32087
32342
  /**
32088
32343
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -32101,7 +32356,7 @@
32101
32356
  var formGroupClasses = generateUtilityClasses$1('MuiFormGroup', ['root', 'row', 'error']);
32102
32357
  var formGroupClasses$1 = formGroupClasses;
32103
32358
 
32104
- var useThemeProps$f = createUseThemeProps();
32359
+ var useThemeProps$g = createUseThemeProps();
32105
32360
  var useUtilityClasses$13 = function useUtilityClasses(ownerState) {
32106
32361
  var classes = ownerState.classes,
32107
32362
  row = ownerState.row,
@@ -32138,7 +32393,7 @@
32138
32393
  * For the `Radio`, you should be using the `RadioGroup` component instead of this one.
32139
32394
  */
32140
32395
  var FormGroup = /*#__PURE__*/React__namespace.forwardRef(function FormGroup(inProps, ref) {
32141
- var props = useThemeProps$f({
32396
+ var props = useThemeProps$g({
32142
32397
  props: inProps,
32143
32398
  name: 'MuiFormGroup'
32144
32399
  });
@@ -32221,11 +32476,10 @@
32221
32476
  return [styles.root, ownerState.size && styles["size".concat(capitalize(ownerState.size))], ownerState.contained && styles.contained, ownerState.filled && styles.filled];
32222
32477
  }
32223
32478
  })(function (_ref) {
32224
- var theme = _ref.theme,
32225
- ownerState = _ref.ownerState;
32479
+ var theme = _ref.theme;
32226
32480
  return _extends({
32227
32481
  color: (theme.vars || theme).palette.text.secondary
32228
- }, theme.typography.caption, _defineProperty(_defineProperty({
32482
+ }, theme.typography.caption, _defineProperty(_defineProperty(_defineProperty({
32229
32483
  textAlign: 'left',
32230
32484
  marginTop: 3,
32231
32485
  marginRight: 0,
@@ -32235,15 +32489,26 @@
32235
32489
  color: (theme.vars || theme).palette.text.disabled
32236
32490
  }), "&.".concat(formHelperTextClasses$1.error), {
32237
32491
  color: (theme.vars || theme).palette.error.main
32238
- }), ownerState.size === 'small' && {
32239
- marginTop: 4
32240
- }, ownerState.contained && {
32241
- marginLeft: 14,
32242
- marginRight: 14
32243
- });
32492
+ }), "variants", [{
32493
+ props: {
32494
+ size: 'small'
32495
+ },
32496
+ style: {
32497
+ marginTop: 4
32498
+ }
32499
+ }, {
32500
+ props: function props(_ref2) {
32501
+ var ownerState = _ref2.ownerState;
32502
+ return ownerState.contained;
32503
+ },
32504
+ style: {
32505
+ marginLeft: 14,
32506
+ marginRight: 14
32507
+ }
32508
+ }]));
32244
32509
  });
32245
32510
  var FormHelperText = /*#__PURE__*/React__namespace.forwardRef(function FormHelperText(inProps, ref) {
32246
- var props = useThemeProps$M({
32511
+ var props = useThemeProps$Q({
32247
32512
  props: inProps,
32248
32513
  name: 'MuiFormHelperText'
32249
32514
  });
@@ -32407,7 +32672,7 @@
32407
32672
  });
32408
32673
  });
32409
32674
  var FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(inProps, ref) {
32410
- var props = useThemeProps$M({
32675
+ var props = useThemeProps$Q({
32411
32676
  props: inProps,
32412
32677
  name: 'MuiFormLabel'
32413
32678
  });
@@ -32866,7 +33131,7 @@
32866
33131
  return composeClasses(slots, getGridUtilityClass, classes);
32867
33132
  };
32868
33133
  var Grid = /*#__PURE__*/React__namespace.forwardRef(function Grid(inProps, ref) {
32869
- var themeProps = useThemeProps$M({
33134
+ var themeProps = useThemeProps$Q({
32870
33135
  props: inProps,
32871
33136
  name: 'MuiGrid'
32872
33137
  });
@@ -33084,7 +33349,7 @@
33084
33349
  }),
33085
33350
  componentName: 'MuiGrid2',
33086
33351
  useThemeProps: function useThemeProps(inProps) {
33087
- return useThemeProps$M({
33352
+ return useThemeProps$Q({
33088
33353
  props: inProps,
33089
33354
  name: 'MuiGrid2'
33090
33355
  });
@@ -33936,7 +34201,7 @@
33936
34201
  };
33937
34202
  });
33938
34203
  var Icon = /*#__PURE__*/React__namespace.forwardRef(function Icon(inProps, ref) {
33939
- var props = useThemeProps$M({
34204
+ var props = useThemeProps$Q({
33940
34205
  props: inProps,
33941
34206
  name: 'MuiIcon'
33942
34207
  });
@@ -34047,21 +34312,24 @@
34047
34312
  var ownerState = props.ownerState;
34048
34313
  return [styles.root, styles[ownerState.variant]];
34049
34314
  }
34050
- })(function (_ref) {
34051
- var ownerState = _ref.ownerState;
34052
- return _extends({
34053
- display: 'grid',
34054
- overflowY: 'auto',
34055
- listStyle: 'none',
34056
- padding: 0,
34057
- // Add iOS momentum scrolling for iOS < 13.0
34058
- WebkitOverflowScrolling: 'touch'
34059
- }, ownerState.variant === 'masonry' && {
34060
- display: 'block'
34061
- });
34315
+ })({
34316
+ display: 'grid',
34317
+ overflowY: 'auto',
34318
+ listStyle: 'none',
34319
+ padding: 0,
34320
+ // Add iOS momentum scrolling for iOS < 13.0
34321
+ WebkitOverflowScrolling: 'touch',
34322
+ variants: [{
34323
+ props: {
34324
+ variant: 'masonry'
34325
+ },
34326
+ style: {
34327
+ display: 'block'
34328
+ }
34329
+ }]
34062
34330
  });
34063
34331
  var ImageList = /*#__PURE__*/React__namespace.forwardRef(function ImageList(inProps, ref) {
34064
- var props = useThemeProps$M({
34332
+ var props = useThemeProps$Q({
34065
34333
  props: inProps,
34066
34334
  name: 'MuiImageList'
34067
34335
  });
@@ -34196,33 +34464,45 @@
34196
34464
  var ownerState = props.ownerState;
34197
34465
  return [_defineProperty({}, "& .".concat(imageListItemClasses$1.img), styles.img), styles.root, styles[ownerState.variant]];
34198
34466
  }
34199
- })(function (_ref2) {
34200
- var ownerState = _ref2.ownerState;
34201
- return _extends({
34202
- display: 'block',
34203
- position: 'relative'
34204
- }, ownerState.variant === 'standard' && {
34467
+ })(_defineProperty(_defineProperty({
34468
+ display: 'block',
34469
+ position: 'relative'
34470
+ }, "& .".concat(imageListItemClasses$1.img), {
34471
+ objectFit: 'cover',
34472
+ width: '100%',
34473
+ height: '100%',
34474
+ display: 'block'
34475
+ }), "variants", [{
34476
+ props: {
34477
+ variant: 'standard'
34478
+ },
34479
+ style: {
34205
34480
  // For titlebar under list item
34206
34481
  display: 'flex',
34207
34482
  flexDirection: 'column'
34208
- }, ownerState.variant === 'woven' && {
34483
+ }
34484
+ }, {
34485
+ props: {
34486
+ variant: 'woven'
34487
+ },
34488
+ style: {
34209
34489
  height: '100%',
34210
34490
  alignSelf: 'center',
34211
34491
  '&:nth-of-type(even)': {
34212
34492
  height: '70%'
34213
34493
  }
34214
- }, _defineProperty({}, "& .".concat(imageListItemClasses$1.img), _extends({
34215
- objectFit: 'cover',
34216
- width: '100%',
34217
- height: '100%',
34218
- display: 'block'
34219
- }, ownerState.variant === 'standard' && {
34494
+ }
34495
+ }, {
34496
+ props: {
34497
+ variant: 'standard'
34498
+ },
34499
+ style: _defineProperty({}, "& .".concat(imageListItemClasses$1.img), {
34220
34500
  height: 'auto',
34221
34501
  flexGrow: 1
34222
- })));
34223
- });
34502
+ })
34503
+ }]));
34224
34504
  var ImageListItem = /*#__PURE__*/React__namespace.forwardRef(function ImageListItem(inProps, ref) {
34225
- var props = useThemeProps$M({
34505
+ var props = useThemeProps$Q({
34226
34506
  props: inProps,
34227
34507
  name: 'MuiImageListItem'
34228
34508
  });
@@ -34360,25 +34640,40 @@
34360
34640
  return [styles.root, styles["position".concat(capitalize(ownerState.position))]];
34361
34641
  }
34362
34642
  })(function (_ref) {
34363
- var theme = _ref.theme,
34364
- ownerState = _ref.ownerState;
34365
- return _extends({
34643
+ var theme = _ref.theme;
34644
+ return {
34366
34645
  position: 'absolute',
34367
34646
  left: 0,
34368
34647
  right: 0,
34369
34648
  background: 'rgba(0, 0, 0, 0.5)',
34370
34649
  display: 'flex',
34371
34650
  alignItems: 'center',
34372
- fontFamily: theme.typography.fontFamily
34373
- }, ownerState.position === 'bottom' && {
34374
- bottom: 0
34375
- }, ownerState.position === 'top' && {
34376
- top: 0
34377
- }, ownerState.position === 'below' && {
34378
- position: 'relative',
34379
- background: 'transparent',
34380
- alignItems: 'normal'
34381
- });
34651
+ fontFamily: theme.typography.fontFamily,
34652
+ variants: [{
34653
+ props: {
34654
+ position: 'bottom'
34655
+ },
34656
+ style: {
34657
+ bottom: 0
34658
+ }
34659
+ }, {
34660
+ props: {
34661
+ position: 'top'
34662
+ },
34663
+ style: {
34664
+ top: 0
34665
+ }
34666
+ }, {
34667
+ props: {
34668
+ position: 'below'
34669
+ },
34670
+ style: {
34671
+ position: 'relative',
34672
+ background: 'transparent',
34673
+ alignItems: 'normal'
34674
+ }
34675
+ }]
34676
+ };
34382
34677
  });
34383
34678
  var ImageListItemBarTitleWrap = styled$1('div', {
34384
34679
  name: 'MuiImageListItemBar',
@@ -34388,21 +34683,38 @@
34388
34683
  return [styles.titleWrap, styles["titleWrap".concat(capitalize(ownerState.position))], ownerState.actionIcon && styles["titleWrapActionPos".concat(capitalize(ownerState.actionPosition))]];
34389
34684
  }
34390
34685
  })(function (_ref2) {
34391
- var theme = _ref2.theme,
34392
- ownerState = _ref2.ownerState;
34393
- return _extends({
34686
+ var theme = _ref2.theme;
34687
+ return {
34394
34688
  flexGrow: 1,
34395
34689
  padding: '12px 16px',
34396
34690
  color: (theme.vars || theme).palette.common.white,
34397
- overflow: 'hidden'
34398
- }, ownerState.position === 'below' && {
34399
- padding: '6px 0 12px',
34400
- color: 'inherit'
34401
- }, ownerState.actionIcon && ownerState.actionPosition === 'left' && {
34402
- paddingLeft: 0
34403
- }, ownerState.actionIcon && ownerState.actionPosition === 'right' && {
34404
- paddingRight: 0
34405
- });
34691
+ overflow: 'hidden',
34692
+ variants: [{
34693
+ props: {
34694
+ position: 'below'
34695
+ },
34696
+ style: {
34697
+ padding: '6px 0 12px',
34698
+ color: 'inherit'
34699
+ }
34700
+ }, {
34701
+ props: function props(_ref3) {
34702
+ var ownerState = _ref3.ownerState;
34703
+ return ownerState.actionIcon && ownerState.actionPosition === 'left';
34704
+ },
34705
+ style: {
34706
+ paddingLeft: 0
34707
+ }
34708
+ }, {
34709
+ props: function props(_ref4) {
34710
+ var ownerState = _ref4.ownerState;
34711
+ return ownerState.actionIcon && ownerState.actionPosition === 'right';
34712
+ },
34713
+ style: {
34714
+ paddingRight: 0
34715
+ }
34716
+ }]
34717
+ };
34406
34718
  });
34407
34719
  var ImageListItemBarTitle = styled$1('div', {
34408
34720
  name: 'MuiImageListItemBar',
@@ -34410,8 +34722,8 @@
34410
34722
  overridesResolver: function overridesResolver(props, styles) {
34411
34723
  return styles.title;
34412
34724
  }
34413
- })(function (_ref3) {
34414
- var theme = _ref3.theme;
34725
+ })(function (_ref5) {
34726
+ var theme = _ref5.theme;
34415
34727
  return {
34416
34728
  fontSize: theme.typography.pxToRem(16),
34417
34729
  lineHeight: '24px',
@@ -34426,8 +34738,8 @@
34426
34738
  overridesResolver: function overridesResolver(props, styles) {
34427
34739
  return styles.subtitle;
34428
34740
  }
34429
- })(function (_ref4) {
34430
- var theme = _ref4.theme;
34741
+ })(function (_ref6) {
34742
+ var theme = _ref6.theme;
34431
34743
  return {
34432
34744
  fontSize: theme.typography.pxToRem(12),
34433
34745
  lineHeight: 1,
@@ -34443,14 +34755,18 @@
34443
34755
  var ownerState = props.ownerState;
34444
34756
  return [styles.actionIcon, styles["actionIconActionPos".concat(capitalize(ownerState.actionPosition))]];
34445
34757
  }
34446
- })(function (_ref5) {
34447
- var ownerState = _ref5.ownerState;
34448
- return _extends({}, ownerState.actionPosition === 'left' && {
34449
- order: -1
34450
- });
34758
+ })({
34759
+ variants: [{
34760
+ props: {
34761
+ actionPosition: 'left'
34762
+ },
34763
+ style: {
34764
+ order: -1
34765
+ }
34766
+ }]
34451
34767
  });
34452
34768
  var ImageListItemBar = /*#__PURE__*/React__namespace.forwardRef(function ImageListItemBar(inProps, ref) {
34453
- var props = useThemeProps$M({
34769
+ var props = useThemeProps$Q({
34454
34770
  props: inProps,
34455
34771
  name: 'MuiImageListItemBar'
34456
34772
  });
@@ -34624,7 +34940,7 @@
34624
34940
  })({});
34625
34941
  var Input = /*#__PURE__*/React__namespace.forwardRef(function Input(inProps, ref) {
34626
34942
  var _ref3, _slots$root, _ref4, _slots$input;
34627
- var props = useThemeProps$M({
34943
+ var props = useThemeProps$Q({
34628
34944
  props: inProps,
34629
34945
  name: 'MuiInput'
34630
34946
  });
@@ -34912,7 +35228,7 @@
34912
35228
  });
34913
35229
  });
34914
35230
  var InputAdornment = /*#__PURE__*/React__namespace.forwardRef(function InputAdornment(inProps, ref) {
34915
- var props = useThemeProps$M({
35231
+ var props = useThemeProps$Q({
34916
35232
  props: inProps,
34917
35233
  name: 'MuiInputAdornment'
34918
35234
  });
@@ -35112,7 +35428,7 @@
35112
35428
  }));
35113
35429
  });
35114
35430
  var InputLabel = /*#__PURE__*/React__namespace.forwardRef(function InputLabel(inProps, ref) {
35115
- var props = useThemeProps$M({
35431
+ var props = useThemeProps$Q({
35116
35432
  name: 'MuiInputLabel',
35117
35433
  props: inProps
35118
35434
  });
@@ -35228,7 +35544,7 @@
35228
35544
  var linearProgressClasses$1 = linearProgressClasses;
35229
35545
 
35230
35546
  var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5, _templateObject6;
35231
- var useThemeProps$e = createUseThemeProps();
35547
+ var useThemeProps$f = createUseThemeProps();
35232
35548
  var TRANSITION_DURATION = 4; // seconds
35233
35549
  var indeterminate1Keyframe = keyframes(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])));
35234
35550
 
@@ -35537,7 +35853,7 @@
35537
35853
  * attribute to `true` on that region until it has finished loading.
35538
35854
  */
35539
35855
  var LinearProgress = /*#__PURE__*/React__namespace.forwardRef(function LinearProgress(inProps, ref) {
35540
- var props = useThemeProps$e({
35856
+ var props = useThemeProps$f({
35541
35857
  props: inProps,
35542
35858
  name: 'MuiLinearProgress'
35543
35859
  });
@@ -35744,7 +36060,7 @@
35744
36060
  }));
35745
36061
  });
35746
36062
  var Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
35747
- var props = useThemeProps$M({
36063
+ var props = useThemeProps$Q({
35748
36064
  props: inProps,
35749
36065
  name: 'MuiLink'
35750
36066
  });
@@ -35915,7 +36231,7 @@
35915
36231
  });
35916
36232
  });
35917
36233
  var List = /*#__PURE__*/React__namespace.forwardRef(function List(inProps, ref) {
35918
- var props = useThemeProps$M({
36234
+ var props = useThemeProps$Q({
35919
36235
  props: inProps,
35920
36236
  name: 'MuiList'
35921
36237
  });
@@ -36035,9 +36351,8 @@
36035
36351
  slot: 'Root',
36036
36352
  overridesResolver: overridesResolver$3
36037
36353
  })(function (_ref) {
36038
- var theme = _ref.theme,
36039
- ownerState = _ref.ownerState;
36040
- return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
36354
+ var theme = _ref.theme;
36355
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
36041
36356
  display: 'flex',
36042
36357
  flexGrow: 1,
36043
36358
  justifyContent: 'flex-start',
@@ -36074,21 +36389,44 @@
36074
36389
  backgroundColor: (theme.vars || theme).palette.action.focus
36075
36390
  }), "&.".concat(listItemButtonClasses$1.disabled), {
36076
36391
  opacity: (theme.vars || theme).palette.action.disabledOpacity
36077
- }), ownerState.divider && {
36078
- borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
36079
- backgroundClip: 'padding-box'
36080
- }, ownerState.alignItems === 'flex-start' && {
36081
- alignItems: 'flex-start'
36082
- }, !ownerState.disableGutters && {
36083
- paddingLeft: 16,
36084
- paddingRight: 16
36085
- }, ownerState.dense && {
36086
- paddingTop: 4,
36087
- paddingBottom: 4
36088
- });
36392
+ }), "variants", [{
36393
+ props: function props(_ref2) {
36394
+ var ownerState = _ref2.ownerState;
36395
+ return ownerState.divider;
36396
+ },
36397
+ style: {
36398
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
36399
+ backgroundClip: 'padding-box'
36400
+ }
36401
+ }, {
36402
+ props: {
36403
+ alignItems: 'flex-start'
36404
+ },
36405
+ style: {
36406
+ alignItems: 'flex-start'
36407
+ }
36408
+ }, {
36409
+ props: function props(_ref3) {
36410
+ var ownerState = _ref3.ownerState;
36411
+ return !ownerState.disableGutters;
36412
+ },
36413
+ style: {
36414
+ paddingLeft: 16,
36415
+ paddingRight: 16
36416
+ }
36417
+ }, {
36418
+ props: function props(_ref4) {
36419
+ var ownerState = _ref4.ownerState;
36420
+ return ownerState.dense;
36421
+ },
36422
+ style: {
36423
+ paddingTop: 4,
36424
+ paddingBottom: 4
36425
+ }
36426
+ }]);
36089
36427
  });
36090
36428
  var ListItemButton = /*#__PURE__*/React__namespace.forwardRef(function ListItemButton(inProps, ref) {
36091
- var props = useThemeProps$M({
36429
+ var props = useThemeProps$Q({
36092
36430
  props: inProps,
36093
36431
  name: 'MuiListItemButton'
36094
36432
  });
@@ -36255,23 +36593,27 @@
36255
36593
  var ownerState = props.ownerState;
36256
36594
  return [styles.root, ownerState.disableGutters && styles.disableGutters];
36257
36595
  }
36258
- })(function (_ref) {
36259
- var ownerState = _ref.ownerState;
36260
- return _extends({
36261
- position: 'absolute',
36262
- right: 16,
36263
- top: '50%',
36264
- transform: 'translateY(-50%)'
36265
- }, ownerState.disableGutters && {
36266
- right: 0
36267
- });
36596
+ })({
36597
+ position: 'absolute',
36598
+ right: 16,
36599
+ top: '50%',
36600
+ transform: 'translateY(-50%)',
36601
+ variants: [{
36602
+ props: function props(_ref) {
36603
+ var ownerState = _ref.ownerState;
36604
+ return ownerState.disableGutters;
36605
+ },
36606
+ style: {
36607
+ right: 0
36608
+ }
36609
+ }]
36268
36610
  });
36269
36611
 
36270
36612
  /**
36271
36613
  * Must be used as the last child of ListItem to function properly.
36272
36614
  */
36273
36615
  var ListItemSecondaryAction = /*#__PURE__*/React__namespace.forwardRef(function ListItemSecondaryAction(inProps, ref) {
36274
- var props = useThemeProps$M({
36616
+ var props = useThemeProps$Q({
36275
36617
  props: inProps,
36276
36618
  name: 'MuiListItemSecondaryAction'
36277
36619
  });
@@ -36339,9 +36681,8 @@
36339
36681
  slot: 'Root',
36340
36682
  overridesResolver: overridesResolver$2
36341
36683
  })(function (_ref) {
36342
- var theme = _ref.theme,
36343
- ownerState = _ref.ownerState;
36344
- return _extends({
36684
+ var theme = _ref.theme;
36685
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({
36345
36686
  display: 'flex',
36346
36687
  justifyContent: 'flex-start',
36347
36688
  alignItems: 'center',
@@ -36350,22 +36691,7 @@
36350
36691
  width: '100%',
36351
36692
  boxSizing: 'border-box',
36352
36693
  textAlign: 'left'
36353
- }, !ownerState.disablePadding && _extends({
36354
- paddingTop: 8,
36355
- paddingBottom: 8
36356
- }, ownerState.dense && {
36357
- paddingTop: 4,
36358
- paddingBottom: 4
36359
- }, !ownerState.disableGutters && {
36360
- paddingLeft: 16,
36361
- paddingRight: 16
36362
- }, !!ownerState.secondaryAction && {
36363
- // Add some space to avoid collision as `ListItemSecondaryAction`
36364
- // is absolutely positioned.
36365
- paddingRight: 48
36366
- }), !!ownerState.secondaryAction && _defineProperty({}, "& > .".concat(listItemButtonClasses$1.root), {
36367
- paddingRight: 48
36368
- }), _defineProperty(_defineProperty(_defineProperty({}, "&.".concat(listItemClasses$1.focusVisible), {
36694
+ }, "&.".concat(listItemClasses$1.focusVisible), {
36369
36695
  backgroundColor: (theme.vars || theme).palette.action.focus
36370
36696
  }), "&.".concat(listItemClasses$1.selected), _defineProperty({
36371
36697
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
@@ -36373,34 +36699,102 @@
36373
36699
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
36374
36700
  })), "&.".concat(listItemClasses$1.disabled), {
36375
36701
  opacity: (theme.vars || theme).palette.action.disabledOpacity
36376
- }), ownerState.alignItems === 'flex-start' && {
36377
- alignItems: 'flex-start'
36378
- }, ownerState.divider && {
36379
- borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
36380
- backgroundClip: 'padding-box'
36381
- }, ownerState.button && _defineProperty({
36382
- transition: theme.transitions.create('background-color', {
36383
- duration: theme.transitions.duration.shortest
36384
- }),
36385
- '&:hover': {
36386
- textDecoration: 'none',
36387
- backgroundColor: (theme.vars || theme).palette.action.hover,
36702
+ }), "variants", [{
36703
+ props: function props(_ref2) {
36704
+ var ownerState = _ref2.ownerState;
36705
+ return !ownerState.disablePadding;
36706
+ },
36707
+ style: {
36708
+ paddingTop: 8,
36709
+ paddingBottom: 8
36710
+ }
36711
+ }, {
36712
+ props: function props(_ref3) {
36713
+ var ownerState = _ref3.ownerState;
36714
+ return !ownerState.disablePadding && ownerState.dense;
36715
+ },
36716
+ style: {
36717
+ paddingTop: 4,
36718
+ paddingBottom: 4
36719
+ }
36720
+ }, {
36721
+ props: function props(_ref4) {
36722
+ var ownerState = _ref4.ownerState;
36723
+ return !ownerState.disablePadding && !ownerState.disableGutters;
36724
+ },
36725
+ style: {
36726
+ paddingLeft: 16,
36727
+ paddingRight: 16
36728
+ }
36729
+ }, {
36730
+ props: function props(_ref5) {
36731
+ var ownerState = _ref5.ownerState;
36732
+ return !ownerState.disablePadding && !!ownerState.secondaryAction;
36733
+ },
36734
+ style: {
36735
+ // Add some space to avoid collision as `ListItemSecondaryAction`
36736
+ // is absolutely positioned.
36737
+ paddingRight: 48
36738
+ }
36739
+ }, {
36740
+ props: function props(_ref6) {
36741
+ var ownerState = _ref6.ownerState;
36742
+ return !!ownerState.secondaryAction;
36743
+ },
36744
+ style: _defineProperty({}, "& > .".concat(listItemButtonClasses$1.root), {
36745
+ paddingRight: 48
36746
+ })
36747
+ }, {
36748
+ props: {
36749
+ alignItems: 'flex-start'
36750
+ },
36751
+ style: {
36752
+ alignItems: 'flex-start'
36753
+ }
36754
+ }, {
36755
+ props: function props(_ref7) {
36756
+ var ownerState = _ref7.ownerState;
36757
+ return ownerState.divider;
36758
+ },
36759
+ style: {
36760
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
36761
+ backgroundClip: 'padding-box'
36762
+ }
36763
+ }, {
36764
+ props: function props(_ref8) {
36765
+ var ownerState = _ref8.ownerState;
36766
+ return ownerState.button;
36767
+ },
36768
+ style: _defineProperty({
36769
+ transition: theme.transitions.create('background-color', {
36770
+ duration: theme.transitions.duration.shortest
36771
+ }),
36772
+ '&:hover': {
36773
+ textDecoration: 'none',
36774
+ backgroundColor: (theme.vars || theme).palette.action.hover,
36775
+ // Reset on touch devices, it doesn't add specificity
36776
+ '@media (hover: none)': {
36777
+ backgroundColor: 'transparent'
36778
+ }
36779
+ }
36780
+ }, "&.".concat(listItemClasses$1.selected, ":hover"), {
36781
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
36388
36782
  // Reset on touch devices, it doesn't add specificity
36389
36783
  '@media (hover: none)': {
36390
- backgroundColor: 'transparent'
36784
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
36391
36785
  }
36786
+ })
36787
+ }, {
36788
+ props: function props(_ref9) {
36789
+ var ownerState = _ref9.ownerState;
36790
+ return ownerState.hasSecondaryAction;
36791
+ },
36792
+ style: {
36793
+ // Add some space to avoid collision as `ListItemSecondaryAction`
36794
+ // is absolutely positioned.
36795
+ paddingRight: 48
36392
36796
  }
36393
- }, "&.".concat(listItemClasses$1.selected, ":hover"), {
36394
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
36395
- // Reset on touch devices, it doesn't add specificity
36396
- '@media (hover: none)': {
36397
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
36398
- }
36399
- }), ownerState.hasSecondaryAction && {
36400
- // Add some space to avoid collision as `ListItemSecondaryAction`
36401
- // is absolutely positioned.
36402
- paddingRight: 48
36403
- });
36797
+ }]);
36404
36798
  });
36405
36799
  var ListItemContainer = styled$1('li', {
36406
36800
  name: 'MuiListItem',
@@ -36416,7 +36810,7 @@
36416
36810
  * Uses an additional container component if `ListItemSecondaryAction` is the last child.
36417
36811
  */
36418
36812
  var ListItem = /*#__PURE__*/React__namespace.forwardRef(function ListItem(inProps, ref) {
36419
- var props = useThemeProps$M({
36813
+ var props = useThemeProps$Q({
36420
36814
  props: inProps,
36421
36815
  name: 'MuiListItem'
36422
36816
  });
@@ -36736,21 +37130,24 @@
36736
37130
  var ownerState = props.ownerState;
36737
37131
  return [styles.root, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart];
36738
37132
  }
36739
- })(function (_ref) {
36740
- var ownerState = _ref.ownerState;
36741
- return _extends({
36742
- minWidth: 56,
36743
- flexShrink: 0
36744
- }, ownerState.alignItems === 'flex-start' && {
36745
- marginTop: 8
36746
- });
37133
+ })({
37134
+ minWidth: 56,
37135
+ flexShrink: 0,
37136
+ variants: [{
37137
+ props: {
37138
+ alignItems: 'flex-start'
37139
+ },
37140
+ style: {
37141
+ marginTop: 8
37142
+ }
37143
+ }]
36747
37144
  });
36748
37145
 
36749
37146
  /**
36750
37147
  * A simple wrapper to apply `List` styles to an `Avatar`.
36751
37148
  */
36752
37149
  var ListItemAvatar = /*#__PURE__*/React__namespace.forwardRef(function ListItemAvatar(inProps, ref) {
36753
- var props = useThemeProps$M({
37150
+ var props = useThemeProps$Q({
36754
37151
  props: inProps,
36755
37152
  name: 'MuiListItemAvatar'
36756
37153
  });
@@ -36829,7 +37226,7 @@
36829
37226
  * A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.
36830
37227
  */
36831
37228
  var ListItemIcon = /*#__PURE__*/React__namespace.forwardRef(function ListItemIcon(inProps, ref) {
36832
- var props = useThemeProps$M({
37229
+ var props = useThemeProps$Q({
36833
37230
  props: inProps,
36834
37231
  name: 'MuiListItemIcon'
36835
37232
  });
@@ -36897,22 +37294,32 @@
36897
37294
  var ownerState = props.ownerState;
36898
37295
  return [_defineProperty({}, "& .".concat(listItemTextClasses$1.primary), styles.primary), _defineProperty({}, "& .".concat(listItemTextClasses$1.secondary), styles.secondary), styles.root, ownerState.inset && styles.inset, ownerState.primary && ownerState.secondary && styles.multiline, ownerState.dense && styles.dense];
36899
37296
  }
36900
- })(function (_ref3) {
36901
- var ownerState = _ref3.ownerState;
36902
- return _extends({
36903
- flex: '1 1 auto',
36904
- minWidth: 0,
36905
- marginTop: 4,
36906
- marginBottom: 4
36907
- }, ownerState.primary && ownerState.secondary && {
36908
- marginTop: 6,
36909
- marginBottom: 6
36910
- }, ownerState.inset && {
36911
- paddingLeft: 56
36912
- });
37297
+ })({
37298
+ flex: '1 1 auto',
37299
+ minWidth: 0,
37300
+ marginTop: 4,
37301
+ marginBottom: 4,
37302
+ variants: [{
37303
+ props: function props(_ref3) {
37304
+ var ownerState = _ref3.ownerState;
37305
+ return ownerState.primary && ownerState.secondary;
37306
+ },
37307
+ style: {
37308
+ marginTop: 6,
37309
+ marginBottom: 6
37310
+ }
37311
+ }, {
37312
+ props: function props(_ref4) {
37313
+ var ownerState = _ref4.ownerState;
37314
+ return ownerState.inset;
37315
+ },
37316
+ style: {
37317
+ paddingLeft: 56
37318
+ }
37319
+ }]
36913
37320
  });
36914
37321
  var ListItemText = /*#__PURE__*/React__namespace.forwardRef(function ListItemText(inProps, ref) {
36915
- var props = useThemeProps$M({
37322
+ var props = useThemeProps$Q({
36916
37323
  props: inProps,
36917
37324
  name: 'MuiListItemText'
36918
37325
  });
@@ -37302,7 +37709,7 @@
37302
37709
  var popoverClasses = generateUtilityClasses$1('MuiPopover', ['root', 'paper']);
37303
37710
  var popoverClasses$1 = popoverClasses;
37304
37711
 
37305
- var useThemeProps$d = createUseThemeProps();
37712
+ var useThemeProps$e = createUseThemeProps();
37306
37713
  function getOffsetTop(rect, vertical) {
37307
37714
  var offset = 0;
37308
37715
  if (typeof vertical === 'number') {
@@ -37369,7 +37776,7 @@
37369
37776
  });
37370
37777
  var Popover = /*#__PURE__*/React__namespace.forwardRef(function Popover(inProps, ref) {
37371
37778
  var _slotProps$paper, _slots$root, _slots$paper;
37372
- var props = useThemeProps$d({
37779
+ var props = useThemeProps$e({
37373
37780
  props: inProps,
37374
37781
  name: 'MuiPopover'
37375
37782
  });
@@ -37886,7 +38293,7 @@
37886
38293
  });
37887
38294
  var Menu = /*#__PURE__*/React__namespace.forwardRef(function Menu(inProps, ref) {
37888
38295
  var _slots$paper, _slotProps$paper;
37889
- var props = useThemeProps$M({
38296
+ var props = useThemeProps$Q({
37890
38297
  props: inProps,
37891
38298
  name: 'MuiMenu'
37892
38299
  });
@@ -38230,7 +38637,7 @@
38230
38637
  })));
38231
38638
  });
38232
38639
  var MenuItem = /*#__PURE__*/React__namespace.forwardRef(function MenuItem(inProps, ref) {
38233
- var props = useThemeProps$M({
38640
+ var props = useThemeProps$Q({
38234
38641
  props: inProps,
38235
38642
  name: 'MuiMenuItem'
38236
38643
  });
@@ -38376,7 +38783,7 @@
38376
38783
  var mobileStepperClasses = generateUtilityClasses$1('MuiMobileStepper', ['root', 'positionBottom', 'positionTop', 'positionStatic', 'dots', 'dot', 'dotActive', 'progress']);
38377
38784
  var mobileStepperClasses$1 = mobileStepperClasses;
38378
38785
 
38379
- var useThemeProps$c = createUseThemeProps();
38786
+ var useThemeProps$d = createUseThemeProps();
38380
38787
  var useUtilityClasses$H = function useUtilityClasses(ownerState) {
38381
38788
  var classes = ownerState.classes,
38382
38789
  position = ownerState.position;
@@ -38505,7 +38912,7 @@
38505
38912
  }]
38506
38913
  });
38507
38914
  var MobileStepper = /*#__PURE__*/React__namespace.forwardRef(function MobileStepper(inProps, ref) {
38508
- var props = useThemeProps$c({
38915
+ var props = useThemeProps$d({
38509
38916
  props: inProps,
38510
38917
  name: 'MuiMobileStepper'
38511
38918
  });
@@ -38822,7 +39229,7 @@
38822
39229
  * An alternative to `<Select native />` with a much smaller bundle size footprint.
38823
39230
  */
38824
39231
  var NativeSelect = /*#__PURE__*/React__namespace.forwardRef(function NativeSelect(inProps, ref) {
38825
- var props = useThemeProps$M({
39232
+ var props = useThemeProps$Q({
38826
39233
  name: 'MuiNativeSelect',
38827
39234
  props: inProps
38828
39235
  });
@@ -39147,7 +39554,7 @@
39147
39554
  });
39148
39555
  var OutlinedInput = /*#__PURE__*/React__namespace.forwardRef(function OutlinedInput(inProps, ref) {
39149
39556
  var _ref5, _slots$root, _ref6, _slots$input, _React$Fragment;
39150
- var props = useThemeProps$M({
39557
+ var props = useThemeProps$Q({
39151
39558
  props: inProps,
39152
39559
  name: 'MuiOutlinedInput'
39153
39560
  });
@@ -39526,7 +39933,7 @@
39526
39933
  d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
39527
39934
  }), 'NavigateNext');
39528
39935
 
39529
- var useThemeProps$b = createUseThemeProps();
39936
+ var useThemeProps$c = createUseThemeProps();
39530
39937
  var overridesResolver = function overridesResolver(props, styles) {
39531
39938
  var ownerState = props.ownerState;
39532
39939
  return [styles.root, styles[ownerState.variant], styles["size".concat(capitalize(ownerState.size))], ownerState.variant === 'text' && styles["text".concat(capitalize(ownerState.color))], ownerState.variant === 'outlined' && styles["outlined".concat(capitalize(ownerState.color))], ownerState.shape === 'rounded' && styles.rounded, ownerState.type === 'page' && styles.page, (ownerState.type === 'start-ellipsis' || ownerState.type === 'end-ellipsis') && styles.ellipsis, (ownerState.type === 'previous' || ownerState.type === 'next') && styles.previousNext, (ownerState.type === 'first' || ownerState.type === 'last') && styles.firstLast];
@@ -39767,7 +40174,8 @@
39767
40174
  };
39768
40175
  });
39769
40176
  var PaginationItem = /*#__PURE__*/React__namespace.forwardRef(function PaginationItem(inProps, ref) {
39770
- var props = useThemeProps$b({
40177
+ var _slots$previous, _slots$next, _slots$first, _slots$last;
40178
+ var props = useThemeProps$c({
39771
40179
  props: inProps,
39772
40180
  name: 'MuiPaginationItem'
39773
40181
  });
@@ -39788,11 +40196,13 @@
39788
40196
  size = _props$size === void 0 ? 'medium' : _props$size,
39789
40197
  _props$slots = props.slots,
39790
40198
  slots = _props$slots === void 0 ? {} : _props$slots,
40199
+ _props$slotProps = props.slotProps,
40200
+ slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
39791
40201
  _props$type = props.type,
39792
40202
  type = _props$type === void 0 ? 'page' : _props$type,
39793
40203
  _props$variant = props.variant,
39794
40204
  variant = _props$variant === void 0 ? 'text' : _props$variant,
39795
- other = _objectWithoutProperties(props, ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"]);
40205
+ other = _objectWithoutProperties(props, ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "slotProps", "type", "variant"]);
39796
40206
  var ownerState = _extends({}, props, {
39797
40207
  color: color,
39798
40208
  disabled: disabled,
@@ -39804,18 +40214,65 @@
39804
40214
  });
39805
40215
  var isRtl = useRtl();
39806
40216
  var classes = useUtilityClasses$D(ownerState);
39807
- var normalizedIcons = isRtl ? {
39808
- previous: slots.next || components.next || NavigateNextIcon,
39809
- next: slots.previous || components.previous || NavigateBeforeIcon,
39810
- last: slots.first || components.first || FirstPageIconDefault,
39811
- first: slots.last || components.last || LastPageIconDefault
39812
- } : {
39813
- previous: slots.previous || components.previous || NavigateBeforeIcon,
39814
- next: slots.next || components.next || NavigateNextIcon,
39815
- first: slots.first || components.first || FirstPageIconDefault,
39816
- last: slots.last || components.last || LastPageIconDefault
40217
+ var externalForwardedProps = {
40218
+ slots: {
40219
+ previous: (_slots$previous = slots.previous) != null ? _slots$previous : components.previous,
40220
+ next: (_slots$next = slots.next) != null ? _slots$next : components.next,
40221
+ first: (_slots$first = slots.first) != null ? _slots$first : components.first,
40222
+ last: (_slots$last = slots.last) != null ? _slots$last : components.last
40223
+ },
40224
+ slotProps: slotProps
39817
40225
  };
39818
- var Icon = normalizedIcons[type];
40226
+ var _useSlot = useSlot('previous', {
40227
+ elementType: NavigateBeforeIcon,
40228
+ externalForwardedProps: externalForwardedProps,
40229
+ ownerState: ownerState
40230
+ }),
40231
+ _useSlot2 = _slicedToArray(_useSlot, 2),
40232
+ PreviousSlot = _useSlot2[0],
40233
+ previousSlotProps = _useSlot2[1];
40234
+ var _useSlot3 = useSlot('next', {
40235
+ elementType: NavigateNextIcon,
40236
+ externalForwardedProps: externalForwardedProps,
40237
+ ownerState: ownerState
40238
+ }),
40239
+ _useSlot4 = _slicedToArray(_useSlot3, 2),
40240
+ NextSlot = _useSlot4[0],
40241
+ nextSlotProps = _useSlot4[1];
40242
+ var _useSlot5 = useSlot('first', {
40243
+ elementType: FirstPageIconDefault,
40244
+ externalForwardedProps: externalForwardedProps,
40245
+ ownerState: ownerState
40246
+ }),
40247
+ _useSlot6 = _slicedToArray(_useSlot5, 2),
40248
+ FirstSlot = _useSlot6[0],
40249
+ firstSlotProps = _useSlot6[1];
40250
+ var _useSlot7 = useSlot('last', {
40251
+ elementType: LastPageIconDefault,
40252
+ externalForwardedProps: externalForwardedProps,
40253
+ ownerState: ownerState
40254
+ }),
40255
+ _useSlot8 = _slicedToArray(_useSlot7, 2),
40256
+ LastSlot = _useSlot8[0],
40257
+ lastSlotProps = _useSlot8[1];
40258
+ var rtlAwareType = isRtl ? {
40259
+ previous: 'next',
40260
+ next: 'previous',
40261
+ first: 'last',
40262
+ last: 'first'
40263
+ }[type] : type;
40264
+ var IconSlot = {
40265
+ previous: PreviousSlot,
40266
+ next: NextSlot,
40267
+ first: FirstSlot,
40268
+ last: LastSlot
40269
+ }[rtlAwareType];
40270
+ var iconSlotProps = {
40271
+ previous: previousSlotProps,
40272
+ next: nextSlotProps,
40273
+ first: firstSlotProps,
40274
+ last: lastSlotProps
40275
+ }[rtlAwareType];
39819
40276
  return type === 'start-ellipsis' || type === 'end-ellipsis' ? /*#__PURE__*/jsxRuntime_1(PaginationItemEllipsis, {
39820
40277
  ref: ref,
39821
40278
  ownerState: ownerState,
@@ -39828,11 +40285,10 @@
39828
40285
  disabled: disabled,
39829
40286
  className: clsx(classes.root, className)
39830
40287
  }, other, {
39831
- children: [type === 'page' && page, Icon ? /*#__PURE__*/jsxRuntime_1(PaginationItemPageIcon, {
39832
- as: Icon,
39833
- ownerState: ownerState,
39834
- className: classes.icon
39835
- }) : null]
40288
+ children: [type === 'page' && page, IconSlot ? /*#__PURE__*/jsxRuntime_1(PaginationItemPageIcon, _extends({}, iconSlotProps, {
40289
+ className: classes.icon,
40290
+ as: IconSlot
40291
+ })) : null]
39836
40292
  }));
39837
40293
  });
39838
40294
  PaginationItem.propTypes /* remove-proptypes */ = {
@@ -39871,6 +40327,7 @@
39871
40327
  * It's recommended to use the `slots` prop instead.
39872
40328
  *
39873
40329
  * @default {}
40330
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
39874
40331
  */
39875
40332
  components: PropTypes.shape({
39876
40333
  first: PropTypes.elementType,
@@ -39902,11 +40359,18 @@
39902
40359
  * @default 'medium'
39903
40360
  */
39904
40361
  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
40362
+ /**
40363
+ * The props used for each slot inside.
40364
+ * @default {}
40365
+ */
40366
+ slotProps: PropTypes.shape({
40367
+ first: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
40368
+ last: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
40369
+ next: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
40370
+ previous: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
40371
+ }),
39905
40372
  /**
39906
40373
  * The components used for each slot inside.
39907
- *
39908
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
39909
- *
39910
40374
  * @default {}
39911
40375
  */
39912
40376
  slots: PropTypes.shape({
@@ -39970,7 +40434,7 @@
39970
40434
  return "Go to ".concat(type, " page");
39971
40435
  }
39972
40436
  var Pagination = /*#__PURE__*/React__namespace.forwardRef(function Pagination(inProps, ref) {
39973
- var props = useThemeProps$M({
40437
+ var props = useThemeProps$Q({
39974
40438
  props: inProps,
39975
40439
  name: 'MuiPagination'
39976
40440
  });
@@ -40193,23 +40657,28 @@
40193
40657
  transform: 'scale(1)'
40194
40658
  });
40195
40659
  var RadioButtonIconDot = styled$1(RadioButtonCheckedIcon)(function (_ref) {
40196
- var theme = _ref.theme,
40197
- ownerState = _ref.ownerState;
40198
- return _extends({
40660
+ var theme = _ref.theme;
40661
+ return {
40199
40662
  left: 0,
40200
40663
  position: 'absolute',
40201
40664
  transform: 'scale(0)',
40202
40665
  transition: theme.transitions.create('transform', {
40203
40666
  easing: theme.transitions.easing.easeIn,
40204
40667
  duration: theme.transitions.duration.shortest
40205
- })
40206
- }, ownerState.checked && {
40207
- transform: 'scale(1)',
40208
- transition: theme.transitions.create('transform', {
40209
- easing: theme.transitions.easing.easeOut,
40210
- duration: theme.transitions.duration.shortest
40211
- })
40212
- });
40668
+ }),
40669
+ variants: [{
40670
+ props: {
40671
+ checked: true
40672
+ },
40673
+ style: {
40674
+ transform: 'scale(1)',
40675
+ transition: theme.transitions.create('transform', {
40676
+ easing: theme.transitions.easing.easeOut,
40677
+ duration: theme.transitions.duration.shortest
40678
+ })
40679
+ }
40680
+ }]
40681
+ };
40213
40682
  });
40214
40683
 
40215
40684
  /**
@@ -40238,7 +40707,7 @@
40238
40707
  })]
40239
40708
  });
40240
40709
  }
40241
- RadioButtonIcon.propTypes = {
40710
+ RadioButtonIcon.propTypes /* remove-proptypes */ = {
40242
40711
  /**
40243
40712
  * If `true`, the component is checked.
40244
40713
  */
@@ -40273,6 +40742,7 @@
40273
40742
  var radioClasses = generateUtilityClasses$1('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
40274
40743
  var radioClasses$1 = radioClasses;
40275
40744
 
40745
+ var useThemeProps$b = createUseThemeProps();
40276
40746
  var useUtilityClasses$B = function useUtilityClasses(ownerState) {
40277
40747
  var classes = ownerState.classes,
40278
40748
  color = ownerState.color,
@@ -40293,23 +40763,68 @@
40293
40763
  return [styles.root, ownerState.size !== 'medium' && styles["size".concat(capitalize(ownerState.size))], styles["color".concat(capitalize(ownerState.color))]];
40294
40764
  }
40295
40765
  })(function (_ref) {
40296
- var theme = _ref.theme,
40297
- ownerState = _ref.ownerState;
40298
- return _extends({
40766
+ var theme = _ref.theme;
40767
+ return _defineProperty(_defineProperty({
40299
40768
  color: (theme.vars || theme).palette.text.secondary
40300
- }, !ownerState.disableRipple && {
40301
- '&:hover': {
40302
- backgroundColor: theme.vars ? "rgba(".concat(ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
40769
+ }, "&.".concat(radioClasses$1.disabled), {
40770
+ color: (theme.vars || theme).palette.action.disabled
40771
+ }), "variants", [{
40772
+ props: {
40773
+ color: 'default',
40774
+ disableRipple: false
40775
+ },
40776
+ style: {
40777
+ '&:hover': {
40778
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.activeChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)
40779
+ }
40780
+ }
40781
+ }].concat(_toConsumableArray(Object.entries(theme.palette).filter(function (_ref2) {
40782
+ var _ref3 = _slicedToArray(_ref2, 2),
40783
+ palette = _ref3[1];
40784
+ return palette.main;
40785
+ }).map(function (_ref4) {
40786
+ var _ref5 = _slicedToArray(_ref4, 1),
40787
+ color = _ref5[0];
40788
+ return {
40789
+ props: {
40790
+ color: color,
40791
+ disableRipple: false
40792
+ },
40793
+ style: {
40794
+ '&:hover': {
40795
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)
40796
+ }
40797
+ }
40798
+ };
40799
+ })), _toConsumableArray(Object.entries(theme.palette).filter(function (_ref6) {
40800
+ var _ref7 = _slicedToArray(_ref6, 2),
40801
+ palette = _ref7[1];
40802
+ return palette.main;
40803
+ }).map(function (_ref8) {
40804
+ var _ref9 = _slicedToArray(_ref8, 1),
40805
+ color = _ref9[0];
40806
+ return {
40807
+ props: {
40808
+ color: color
40809
+ },
40810
+ style: _defineProperty({}, "&.".concat(radioClasses$1.checked), {
40811
+ color: (theme.vars || theme).palette[color].main
40812
+ })
40813
+ };
40814
+ })), [{
40815
+ // Should be last to override other colors
40816
+ props: {
40817
+ disableRipple: false
40818
+ },
40819
+ style: {
40303
40820
  // Reset on touch devices, it doesn't add specificity
40304
- '@media (hover: none)': {
40305
- backgroundColor: 'transparent'
40821
+ '&:hover': {
40822
+ '@media (hover: none)': {
40823
+ backgroundColor: 'transparent'
40824
+ }
40306
40825
  }
40307
40826
  }
40308
- }, ownerState.color !== 'default' && _defineProperty({}, "&.".concat(radioClasses$1.checked), {
40309
- color: (theme.vars || theme).palette[ownerState.color].main
40310
- }), _defineProperty({}, "&.".concat(radioClasses$1.disabled), {
40311
- color: (theme.vars || theme).palette.action.disabled
40312
- }));
40827
+ }]));
40313
40828
  });
40314
40829
  function areEqualValues$1(a, b) {
40315
40830
  if (_typeof(b) === 'object' && b !== null) {
@@ -40325,7 +40840,7 @@
40325
40840
  var defaultIcon$1 = /*#__PURE__*/jsxRuntime_1(RadioButtonIcon, {});
40326
40841
  var Radio = /*#__PURE__*/React__namespace.forwardRef(function Radio(inProps, ref) {
40327
40842
  var _defaultIcon$props$fo, _defaultCheckedIcon$p;
40328
- var props = useThemeProps$M({
40843
+ var props = useThemeProps$b({
40329
40844
  props: inProps,
40330
40845
  name: 'MuiRadio'
40331
40846
  });
@@ -40629,9 +41144,8 @@
40629
41144
  return [_defineProperty({}, "& .".concat(ratingClasses$1.visuallyHidden), styles.visuallyHidden), styles.root, styles["size".concat(capitalize(ownerState.size))], ownerState.readOnly && styles.readOnly];
40630
41145
  }
40631
41146
  })(function (_ref2) {
40632
- var theme = _ref2.theme,
40633
- ownerState = _ref2.ownerState;
40634
- return _extends(_defineProperty(_defineProperty(_defineProperty({
41147
+ var theme = _ref2.theme;
41148
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({
40635
41149
  display: 'inline-flex',
40636
41150
  // Required to position the pristine input absolutely
40637
41151
  position: 'relative',
@@ -40646,32 +41160,53 @@
40646
41160
  pointerEvents: 'none'
40647
41161
  }), "&.".concat(ratingClasses$1.focusVisible, " .").concat(ratingClasses$1.iconActive), {
40648
41162
  outline: '1px solid #999'
40649
- }), "& .".concat(ratingClasses$1.visuallyHidden), visuallyHidden$1), ownerState.size === 'small' && {
40650
- fontSize: theme.typography.pxToRem(18)
40651
- }, ownerState.size === 'large' && {
40652
- fontSize: theme.typography.pxToRem(30)
40653
- }, ownerState.readOnly && {
40654
- pointerEvents: 'none'
40655
- });
41163
+ }), "& .".concat(ratingClasses$1.visuallyHidden), visuallyHidden$1), "variants", [{
41164
+ props: {
41165
+ size: 'small'
41166
+ },
41167
+ style: {
41168
+ fontSize: theme.typography.pxToRem(18)
41169
+ }
41170
+ }, {
41171
+ props: {
41172
+ size: 'large'
41173
+ },
41174
+ style: {
41175
+ fontSize: theme.typography.pxToRem(30)
41176
+ }
41177
+ }, {
41178
+ // TODO v6: use the .Mui-readOnly global state class
41179
+ props: function props(_ref3) {
41180
+ var ownerState = _ref3.ownerState;
41181
+ return ownerState.readOnly;
41182
+ },
41183
+ style: {
41184
+ pointerEvents: 'none'
41185
+ }
41186
+ }]);
40656
41187
  });
40657
41188
  var RatingLabel = styled$1('label', {
40658
41189
  name: 'MuiRating',
40659
41190
  slot: 'Label',
40660
- overridesResolver: function overridesResolver(_ref3, styles) {
40661
- var ownerState = _ref3.ownerState;
41191
+ overridesResolver: function overridesResolver(_ref5, styles) {
41192
+ var ownerState = _ref5.ownerState;
40662
41193
  return [styles.label, ownerState.emptyValueFocused && styles.labelEmptyValueActive];
40663
41194
  }
40664
- })(function (_ref4) {
40665
- var ownerState = _ref4.ownerState;
40666
- return _extends({
40667
- cursor: 'inherit'
40668
- }, ownerState.emptyValueFocused && {
40669
- top: 0,
40670
- bottom: 0,
40671
- position: 'absolute',
40672
- outline: '1px solid #999',
40673
- width: '100%'
40674
- });
41195
+ })({
41196
+ cursor: 'inherit',
41197
+ variants: [{
41198
+ props: function props(_ref6) {
41199
+ var ownerState = _ref6.ownerState;
41200
+ return ownerState.emptyValueFocused;
41201
+ },
41202
+ style: {
41203
+ top: 0,
41204
+ bottom: 0,
41205
+ position: 'absolute',
41206
+ outline: '1px solid #999',
41207
+ width: '100%'
41208
+ }
41209
+ }]
40675
41210
  });
40676
41211
  var RatingIcon = styled$1('span', {
40677
41212
  name: 'MuiRating',
@@ -40680,10 +41215,9 @@
40680
41215
  var ownerState = props.ownerState;
40681
41216
  return [styles.icon, ownerState.iconEmpty && styles.iconEmpty, ownerState.iconFilled && styles.iconFilled, ownerState.iconHover && styles.iconHover, ownerState.iconFocus && styles.iconFocus, ownerState.iconActive && styles.iconActive];
40682
41217
  }
40683
- })(function (_ref5) {
40684
- var theme = _ref5.theme,
40685
- ownerState = _ref5.ownerState;
40686
- return _extends({
41218
+ })(function (_ref7) {
41219
+ var theme = _ref7.theme;
41220
+ return {
40687
41221
  // Fit wrapper to actual icon size.
40688
41222
  display: 'flex',
40689
41223
  transition: theme.transitions.create('transform', {
@@ -40691,12 +41225,25 @@
40691
41225
  }),
40692
41226
  // Fix mouseLeave issue.
40693
41227
  // https://github.com/facebook/react/issues/4492
40694
- pointerEvents: 'none'
40695
- }, ownerState.iconActive && {
40696
- transform: 'scale(1.2)'
40697
- }, ownerState.iconEmpty && {
40698
- color: (theme.vars || theme).palette.action.disabled
40699
- });
41228
+ pointerEvents: 'none',
41229
+ variants: [{
41230
+ props: function props(_ref8) {
41231
+ var ownerState = _ref8.ownerState;
41232
+ return ownerState.iconActive;
41233
+ },
41234
+ style: {
41235
+ transform: 'scale(1.2)'
41236
+ }
41237
+ }, {
41238
+ props: function props(_ref9) {
41239
+ var ownerState = _ref9.ownerState;
41240
+ return ownerState.iconEmpty;
41241
+ },
41242
+ style: {
41243
+ color: (theme.vars || theme).palette.action.disabled
41244
+ }
41245
+ }]
41246
+ };
40700
41247
  });
40701
41248
  var RatingDecimal = styled$1('span', {
40702
41249
  name: 'MuiRating',
@@ -40708,13 +41255,17 @@
40708
41255
  var iconActive = props.iconActive;
40709
41256
  return [styles.decimal, iconActive && styles.iconActive];
40710
41257
  }
40711
- })(function (_ref6) {
40712
- var iconActive = _ref6.iconActive;
40713
- return _extends({
40714
- position: 'relative'
40715
- }, iconActive && {
40716
- transform: 'scale(1.2)'
40717
- });
41258
+ })({
41259
+ position: 'relative',
41260
+ variants: [{
41261
+ props: function props(_ref10) {
41262
+ var iconActive = _ref10.iconActive;
41263
+ return iconActive;
41264
+ },
41265
+ style: {
41266
+ transform: 'scale(1.2)'
41267
+ }
41268
+ }]
40718
41269
  });
40719
41270
  function IconContainer(props) {
40720
41271
  props.value;
@@ -40828,7 +41379,7 @@
40828
41379
  return "".concat(value, " Star").concat(value !== 1 ? 's' : '');
40829
41380
  }
40830
41381
  var Rating = /*#__PURE__*/React__namespace.forwardRef(function Rating(inProps, ref) {
40831
- var props = useThemeProps$M({
41382
+ var props = useThemeProps$Q({
40832
41383
  name: 'MuiRating',
40833
41384
  props: inProps
40834
41385
  });
@@ -41269,7 +41820,7 @@
41269
41820
  }, colorSchemeStyles);
41270
41821
  });
41271
41822
  var ScopedCssBaseline = /*#__PURE__*/React__namespace.forwardRef(function ScopedCssBaseline(inProps, ref) {
41272
- var props = useThemeProps$M({
41823
+ var props = useThemeProps$Q({
41273
41824
  props: inProps,
41274
41825
  name: 'MuiScopedCssBaseline'
41275
41826
  });
@@ -41991,7 +42542,7 @@
41991
42542
  var StyledOutlinedInput = styled$1(OutlinedInput$1, styledRootConfig)('');
41992
42543
  var StyledFilledInput = styled$1(FilledInput$1, styledRootConfig)('');
41993
42544
  var Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps, ref) {
41994
- var props = useThemeProps$M({
42545
+ var props = useThemeProps$Q({
41995
42546
  name: 'MuiSelect',
41996
42547
  props: inProps
41997
42548
  });
@@ -42314,7 +42865,7 @@
42314
42865
  return ownerState.animation === 'wave' && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: ", " 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ", ",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "])), waveKeyframe, (theme.vars || theme).palette.action.hover);
42315
42866
  });
42316
42867
  var Skeleton = /*#__PURE__*/React__namespace.forwardRef(function Skeleton(inProps, ref) {
42317
- var props = useThemeProps$M({
42868
+ var props = useThemeProps$Q({
42318
42869
  props: inProps,
42319
42870
  name: 'MuiSkeleton'
42320
42871
  });
@@ -43560,7 +44111,7 @@
43560
44111
  marginRight: -8
43561
44112
  });
43562
44113
  var SnackbarContent = /*#__PURE__*/React__namespace.forwardRef(function SnackbarContent(inProps, ref) {
43563
- var props = useThemeProps$M({
44114
+ var props = useThemeProps$Q({
43564
44115
  props: inProps,
43565
44116
  name: 'MuiSnackbarContent'
43566
44117
  });
@@ -43682,7 +44233,7 @@
43682
44233
  })));
43683
44234
  });
43684
44235
  var Snackbar = /*#__PURE__*/React__namespace.forwardRef(function Snackbar(inProps, ref) {
43685
- var props = useThemeProps$M({
44236
+ var props = useThemeProps$Q({
43686
44237
  props: inProps,
43687
44238
  name: 'MuiSnackbar'
43688
44239
  });
@@ -44217,7 +44768,7 @@
44217
44768
  });
44218
44769
  });
44219
44770
  var SpeedDial = /*#__PURE__*/React__namespace.forwardRef(function SpeedDial(inProps, ref) {
44220
- var props = useThemeProps$M({
44771
+ var props = useThemeProps$Q({
44221
44772
  props: inProps,
44222
44773
  name: 'MuiSpeedDial'
44223
44774
  });
@@ -44779,7 +45330,7 @@
44779
45330
  // TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.
44780
45331
  var Tooltip = /*#__PURE__*/React__namespace.forwardRef(function Tooltip(inProps, ref) {
44781
45332
  var _ref5, _slots$popper, _ref6, _ref7, _slots$transition, _ref8, _slots$tooltip, _ref9, _slots$arrow, _slotProps$popper, _ref10, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref11, _slotProps$tooltip2, _slotProps$arrow, _ref12, _slotProps$arrow2;
44782
- var props = useThemeProps$M({
45333
+ var props = useThemeProps$Q({
44783
45334
  props: inProps,
44784
45335
  name: 'MuiTooltip'
44785
45336
  });
@@ -45451,7 +46002,7 @@
45451
46002
  });
45452
46003
  });
45453
46004
  var SpeedDialAction = /*#__PURE__*/React__namespace.forwardRef(function SpeedDialAction(inProps, ref) {
45454
- var props = useThemeProps$M({
46005
+ var props = useThemeProps$Q({
45455
46006
  props: inProps,
45456
46007
  name: 'MuiSpeedDialAction'
45457
46008
  });
@@ -45645,7 +46196,7 @@
45645
46196
  }));
45646
46197
  });
45647
46198
  var SpeedDialIcon = /*#__PURE__*/React__namespace.forwardRef(function SpeedDialIcon(inProps, ref) {
45648
- var props = useThemeProps$M({
46199
+ var props = useThemeProps$Q({
45649
46200
  props: inProps,
45650
46201
  name: 'MuiSpeedDialIcon'
45651
46202
  });
@@ -47047,7 +47598,7 @@
47047
47598
  }
47048
47599
  var iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);
47049
47600
  var SwipeableDrawer = /*#__PURE__*/React__namespace.forwardRef(function SwipeableDrawer(inProps, ref) {
47050
- var props = useThemeProps$N({
47601
+ var props = useThemeProps$R({
47051
47602
  name: 'MuiSwipeableDrawer',
47052
47603
  props: inProps
47053
47604
  });
@@ -47963,7 +48514,7 @@
47963
48514
  });
47964
48515
  });
47965
48516
  var Tab = /*#__PURE__*/React__namespace.forwardRef(function Tab(inProps, ref) {
47966
- var props = useThemeProps$M({
48517
+ var props = useThemeProps$Q({
47967
48518
  props: inProps,
47968
48519
  name: 'MuiTab'
47969
48520
  });
@@ -48148,9 +48699,8 @@
48148
48699
  return [styles.root, ownerState.stickyHeader && styles.stickyHeader];
48149
48700
  }
48150
48701
  })(function (_ref) {
48151
- var theme = _ref.theme,
48152
- ownerState = _ref.ownerState;
48153
- return _extends({
48702
+ var theme = _ref.theme;
48703
+ return {
48154
48704
  display: 'table',
48155
48705
  width: '100%',
48156
48706
  borderCollapse: 'collapse',
@@ -48160,14 +48710,21 @@
48160
48710
  color: (theme.vars || theme).palette.text.secondary,
48161
48711
  textAlign: 'left',
48162
48712
  captionSide: 'bottom'
48163
- })
48164
- }, ownerState.stickyHeader && {
48165
- borderCollapse: 'separate'
48166
- });
48713
+ }),
48714
+ variants: [{
48715
+ props: function props(_ref2) {
48716
+ var ownerState = _ref2.ownerState;
48717
+ return ownerState.stickyHeader;
48718
+ },
48719
+ style: {
48720
+ borderCollapse: 'separate'
48721
+ }
48722
+ }]
48723
+ };
48167
48724
  });
48168
48725
  var defaultComponent$4 = 'table';
48169
48726
  var Table = /*#__PURE__*/React__namespace.forwardRef(function Table(inProps, ref) {
48170
- var props = useThemeProps$M({
48727
+ var props = useThemeProps$Q({
48171
48728
  props: inProps,
48172
48729
  name: 'MuiTable'
48173
48730
  });
@@ -48286,7 +48843,7 @@
48286
48843
  };
48287
48844
  var defaultComponent$3 = 'tbody';
48288
48845
  var TableBody = /*#__PURE__*/React__namespace.forwardRef(function TableBody(inProps, ref) {
48289
- var props = useThemeProps$M({
48846
+ var props = useThemeProps$Q({
48290
48847
  props: inProps,
48291
48848
  name: 'MuiTableBody'
48292
48849
  });
@@ -48364,8 +48921,7 @@
48364
48921
  return [styles.root, styles[ownerState.variant], styles["size".concat(capitalize(ownerState.size))], ownerState.padding !== 'normal' && styles["padding".concat(capitalize(ownerState.padding))], ownerState.align !== 'inherit' && styles["align".concat(capitalize(ownerState.align))], ownerState.stickyHeader && styles.stickyHeader];
48365
48922
  }
48366
48923
  })(function (_ref) {
48367
- var theme = _ref.theme,
48368
- ownerState = _ref.ownerState;
48924
+ var theme = _ref.theme;
48369
48925
  return _extends({}, theme.typography.body2, {
48370
48926
  display: 'table-cell',
48371
48927
  verticalAlign: 'inherit',
@@ -48373,46 +48929,103 @@
48373
48929
  // Removes the alpha (sets it to 1), and lightens or darkens the theme color.
48374
48930
  borderBottom: theme.vars ? "1px solid ".concat(theme.vars.palette.TableCell.border) : "1px solid\n ".concat(theme.palette.mode === 'light' ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68)),
48375
48931
  textAlign: 'left',
48376
- padding: 16
48377
- }, ownerState.variant === 'head' && {
48378
- color: (theme.vars || theme).palette.text.primary,
48379
- lineHeight: theme.typography.pxToRem(24),
48380
- fontWeight: theme.typography.fontWeightMedium
48381
- }, ownerState.variant === 'body' && {
48382
- color: (theme.vars || theme).palette.text.primary
48383
- }, ownerState.variant === 'footer' && {
48384
- color: (theme.vars || theme).palette.text.secondary,
48385
- lineHeight: theme.typography.pxToRem(21),
48386
- fontSize: theme.typography.pxToRem(12)
48387
- }, ownerState.size === 'small' && _defineProperty({
48388
- padding: '6px 16px'
48389
- }, "&.".concat(tableCellClasses$1.paddingCheckbox), {
48390
- width: 24,
48391
- // prevent the checkbox column from growing
48392
- padding: '0 12px 0 16px',
48393
- '& > *': {
48394
- padding: 0
48395
- }
48396
- }), ownerState.padding === 'checkbox' && {
48397
- width: 48,
48398
- // prevent the checkbox column from growing
48399
- padding: '0 0 0 4px'
48400
- }, ownerState.padding === 'none' && {
48401
- padding: 0
48402
- }, ownerState.align === 'left' && {
48403
- textAlign: 'left'
48404
- }, ownerState.align === 'center' && {
48405
- textAlign: 'center'
48406
- }, ownerState.align === 'right' && {
48407
- textAlign: 'right',
48408
- flexDirection: 'row-reverse'
48409
- }, ownerState.align === 'justify' && {
48410
- textAlign: 'justify'
48411
- }, ownerState.stickyHeader && {
48412
- position: 'sticky',
48413
- top: 0,
48414
- zIndex: 2,
48415
- backgroundColor: (theme.vars || theme).palette.background["default"]
48932
+ padding: 16,
48933
+ variants: [{
48934
+ props: {
48935
+ variant: 'head'
48936
+ },
48937
+ style: {
48938
+ color: (theme.vars || theme).palette.text.primary,
48939
+ lineHeight: theme.typography.pxToRem(24),
48940
+ fontWeight: theme.typography.fontWeightMedium
48941
+ }
48942
+ }, {
48943
+ props: {
48944
+ variant: 'body'
48945
+ },
48946
+ style: {
48947
+ color: (theme.vars || theme).palette.text.primary
48948
+ }
48949
+ }, {
48950
+ props: {
48951
+ variant: 'footer'
48952
+ },
48953
+ style: {
48954
+ color: (theme.vars || theme).palette.text.secondary,
48955
+ lineHeight: theme.typography.pxToRem(21),
48956
+ fontSize: theme.typography.pxToRem(12)
48957
+ }
48958
+ }, {
48959
+ props: {
48960
+ size: 'small'
48961
+ },
48962
+ style: _defineProperty({
48963
+ padding: '6px 16px'
48964
+ }, "&.".concat(tableCellClasses$1.paddingCheckbox), {
48965
+ width: 24,
48966
+ // prevent the checkbox column from growing
48967
+ padding: '0 12px 0 16px',
48968
+ '& > *': {
48969
+ padding: 0
48970
+ }
48971
+ })
48972
+ }, {
48973
+ props: {
48974
+ padding: 'checkbox'
48975
+ },
48976
+ style: {
48977
+ width: 48,
48978
+ // prevent the checkbox column from growing
48979
+ padding: '0 0 0 4px'
48980
+ }
48981
+ }, {
48982
+ props: {
48983
+ padding: 'none'
48984
+ },
48985
+ style: {
48986
+ padding: 0
48987
+ }
48988
+ }, {
48989
+ props: {
48990
+ align: 'left'
48991
+ },
48992
+ style: {
48993
+ textAlign: 'left'
48994
+ }
48995
+ }, {
48996
+ props: {
48997
+ align: 'center'
48998
+ },
48999
+ style: {
49000
+ textAlign: 'center'
49001
+ }
49002
+ }, {
49003
+ props: {
49004
+ align: 'right'
49005
+ },
49006
+ style: {
49007
+ textAlign: 'right',
49008
+ flexDirection: 'row-reverse'
49009
+ }
49010
+ }, {
49011
+ props: {
49012
+ align: 'justify'
49013
+ },
49014
+ style: {
49015
+ textAlign: 'justify'
49016
+ }
49017
+ }, {
49018
+ props: function props(_ref2) {
49019
+ var ownerState = _ref2.ownerState;
49020
+ return ownerState.stickyHeader;
49021
+ },
49022
+ style: {
49023
+ position: 'sticky',
49024
+ top: 0,
49025
+ zIndex: 2,
49026
+ backgroundColor: (theme.vars || theme).palette.background["default"]
49027
+ }
49028
+ }]
48416
49029
  });
48417
49030
  });
48418
49031
 
@@ -48421,7 +49034,7 @@
48421
49034
  * or otherwise a `<td>` element.
48422
49035
  */
48423
49036
  var TableCell = /*#__PURE__*/React__namespace.forwardRef(function TableCell(inProps, ref) {
48424
- var props = useThemeProps$M({
49037
+ var props = useThemeProps$Q({
48425
49038
  props: inProps,
48426
49039
  name: 'MuiTableCell'
48427
49040
  });
@@ -48560,7 +49173,7 @@
48560
49173
  overflowX: 'auto'
48561
49174
  });
48562
49175
  var TableContainer = /*#__PURE__*/React__namespace.forwardRef(function TableContainer(inProps, ref) {
48563
- var props = useThemeProps$M({
49176
+ var props = useThemeProps$Q({
48564
49177
  props: inProps,
48565
49178
  name: 'MuiTableContainer'
48566
49179
  });
@@ -48635,7 +49248,7 @@
48635
49248
  };
48636
49249
  var defaultComponent$2 = 'tfoot';
48637
49250
  var TableFooter = /*#__PURE__*/React__namespace.forwardRef(function TableFooter(inProps, ref) {
48638
- var props = useThemeProps$M({
49251
+ var props = useThemeProps$Q({
48639
49252
  props: inProps,
48640
49253
  name: 'MuiTableFooter'
48641
49254
  });
@@ -48714,7 +49327,7 @@
48714
49327
  };
48715
49328
  var defaultComponent$1 = 'thead';
48716
49329
  var TableHead = /*#__PURE__*/React__namespace.forwardRef(function TableHead(inProps, ref) {
48717
- var props = useThemeProps$M({
49330
+ var props = useThemeProps$Q({
48718
49331
  props: inProps,
48719
49332
  name: 'MuiTableHead'
48720
49333
  });
@@ -48789,28 +49402,45 @@
48789
49402
  return [styles.root, !ownerState.disableGutters && styles.gutters, styles[ownerState.variant]];
48790
49403
  }
48791
49404
  })(function (_ref) {
48792
- var theme = _ref.theme,
48793
- ownerState = _ref.ownerState;
48794
- return _extends({
49405
+ var theme = _ref.theme;
49406
+ return {
48795
49407
  position: 'relative',
48796
49408
  display: 'flex',
48797
- alignItems: 'center'
48798
- }, !ownerState.disableGutters && _defineProperty({
48799
- paddingLeft: theme.spacing(2),
48800
- paddingRight: theme.spacing(2)
48801
- }, theme.breakpoints.up('sm'), {
48802
- paddingLeft: theme.spacing(3),
48803
- paddingRight: theme.spacing(3)
48804
- }), ownerState.variant === 'dense' && {
48805
- minHeight: 48
48806
- });
49409
+ alignItems: 'center',
49410
+ variants: [{
49411
+ props: function props(_ref2) {
49412
+ var ownerState = _ref2.ownerState;
49413
+ return !ownerState.disableGutters;
49414
+ },
49415
+ style: _defineProperty({
49416
+ paddingLeft: theme.spacing(2),
49417
+ paddingRight: theme.spacing(2)
49418
+ }, theme.breakpoints.up('sm'), {
49419
+ paddingLeft: theme.spacing(3),
49420
+ paddingRight: theme.spacing(3)
49421
+ })
49422
+ }, {
49423
+ props: {
49424
+ variant: 'dense'
49425
+ },
49426
+ style: {
49427
+ minHeight: 48
49428
+ }
49429
+ }]
49430
+ };
48807
49431
  }, function (_ref3) {
48808
- var theme = _ref3.theme,
48809
- ownerState = _ref3.ownerState;
48810
- return ownerState.variant === 'regular' && theme.mixins.toolbar;
49432
+ var theme = _ref3.theme;
49433
+ return {
49434
+ variants: [{
49435
+ props: {
49436
+ variant: 'regular'
49437
+ },
49438
+ style: theme.mixins.toolbar
49439
+ }]
49440
+ };
48811
49441
  });
48812
49442
  var Toolbar = /*#__PURE__*/React__namespace.forwardRef(function Toolbar(inProps, ref) {
48813
- var props = useThemeProps$M({
49443
+ var props = useThemeProps$Q({
48814
49444
  props: inProps,
48815
49445
  name: 'MuiToolbar'
48816
49446
  });
@@ -49184,7 +49814,7 @@
49184
49814
  */
49185
49815
  var TablePagination = /*#__PURE__*/React__namespace.forwardRef(function TablePagination(inProps, ref) {
49186
49816
  var _slotProps$select;
49187
- var props = useThemeProps$M({
49817
+ var props = useThemeProps$Q({
49188
49818
  props: inProps,
49189
49819
  name: 'MuiTablePagination'
49190
49820
  });
@@ -49540,7 +50170,7 @@
49540
50170
  * based on the material table element parent (head, body, etc).
49541
50171
  */
49542
50172
  var TableRow = /*#__PURE__*/React__namespace.forwardRef(function TableRow(inProps, ref) {
49543
- var props = useThemeProps$M({
50173
+ var props = useThemeProps$Q({
49544
50174
  props: inProps,
49545
50175
  name: 'MuiTableRow'
49546
50176
  });
@@ -49666,9 +50296,8 @@
49666
50296
  return [styles.icon, styles["iconDirection".concat(capitalize(ownerState.direction))]];
49667
50297
  }
49668
50298
  })(function (_ref3) {
49669
- var theme = _ref3.theme,
49670
- ownerState = _ref3.ownerState;
49671
- return _extends({
50299
+ var theme = _ref3.theme;
50300
+ return {
49672
50301
  fontSize: 18,
49673
50302
  marginRight: 4,
49674
50303
  marginLeft: 4,
@@ -49676,19 +50305,30 @@
49676
50305
  transition: theme.transitions.create(['opacity', 'transform'], {
49677
50306
  duration: theme.transitions.duration.shorter
49678
50307
  }),
49679
- userSelect: 'none'
49680
- }, ownerState.direction === 'desc' && {
49681
- transform: 'rotate(0deg)'
49682
- }, ownerState.direction === 'asc' && {
49683
- transform: 'rotate(180deg)'
49684
- });
50308
+ userSelect: 'none',
50309
+ variants: [{
50310
+ props: {
50311
+ direction: 'desc'
50312
+ },
50313
+ style: {
50314
+ transform: 'rotate(0deg)'
50315
+ }
50316
+ }, {
50317
+ props: {
50318
+ direction: 'asc'
50319
+ },
50320
+ style: {
50321
+ transform: 'rotate(180deg)'
50322
+ }
50323
+ }]
50324
+ };
49685
50325
  });
49686
50326
 
49687
50327
  /**
49688
50328
  * A button based label for placing inside `TableCell` for column sorting.
49689
50329
  */
49690
50330
  var TableSortLabel = /*#__PURE__*/React__namespace.forwardRef(function TableSortLabel(inProps, ref) {
49691
- var props = useThemeProps$M({
50331
+ var props = useThemeProps$Q({
49692
50332
  props: inProps,
49693
50333
  name: 'MuiTableSortLabel'
49694
50334
  });
@@ -49899,7 +50539,7 @@
49899
50539
  });
49900
50540
  var TabScrollButton = /*#__PURE__*/React__namespace.forwardRef(function TabScrollButton(inProps, ref) {
49901
50541
  var _slots$StartScrollBut, _slots$EndScrollButto;
49902
- var props = useThemeProps$M({
50542
+ var props = useThemeProps$Q({
49903
50543
  props: inProps,
49904
50544
  name: 'MuiTabScrollButton'
49905
50545
  });
@@ -50176,7 +50816,7 @@
50176
50816
  var defaultIndicatorStyle = {};
50177
50817
  var warnedOnceTabPresent = false;
50178
50818
  var Tabs = /*#__PURE__*/React__namespace.forwardRef(function Tabs(inProps, ref) {
50179
- var props = useThemeProps$M({
50819
+ var props = useThemeProps$Q({
50180
50820
  props: inProps,
50181
50821
  name: 'MuiTabs'
50182
50822
  });
@@ -50887,7 +51527,7 @@
50887
51527
  * - using the underlying components directly as shown in the demos
50888
51528
  */
50889
51529
  var TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(inProps, ref) {
50890
- var props = useThemeProps$M({
51530
+ var props = useThemeProps$Q({
50891
51531
  props: inProps,
50892
51532
  name: 'MuiTextField'
50893
51533
  });
@@ -52070,7 +52710,7 @@
52070
52710
  exports.getOffsetLeft = getOffsetLeft;
52071
52711
  exports.getOffsetTop = getOffsetTop;
52072
52712
  exports.getOutlinedInputUtilityClass = getOutlinedInputUtilityClass;
52073
- exports.getOverlayAlpha = getOverlayAlpha$1;
52713
+ exports.getOverlayAlpha = getOverlayAlpha;
52074
52714
  exports.getPaginationItemUtilityClass = getPaginationItemUtilityClass;
52075
52715
  exports.getPaginationUtilityClass = getPaginationUtilityClass;
52076
52716
  exports.getPaperUtilityClass = getPaperUtilityClass;
@@ -52227,7 +52867,7 @@
52227
52867
  exports.useStepContext = useStepContext;
52228
52868
  exports.useStepperContext = useStepperContext;
52229
52869
  exports.useTheme = useTheme;
52230
- exports.useThemeProps = useThemeProps$M;
52870
+ exports.useThemeProps = useThemeProps$Q;
52231
52871
  exports.withStyles = withStyles;
52232
52872
  exports.withTheme = withTheme;
52233
52873