@mui/material 5.14.0 → 5.14.1

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 (54) hide show
  1. package/Button/Button.js +1 -1
  2. package/CHANGELOG.md +94 -3
  3. package/Card/Card.d.ts +2 -2
  4. package/CssBaseline/CssBaseline.js +2 -2
  5. package/Dialog/Dialog.d.ts +1 -1
  6. package/Drawer/Drawer.d.ts +1 -1
  7. package/Fab/Fab.js +1 -1
  8. package/FormControlLabel/FormControlLabel.js +11 -6
  9. package/Link/Link.d.ts +9 -7
  10. package/ListItem/ListItem.js +1 -1
  11. package/ListItemButton/ListItemButton.js +1 -1
  12. package/MenuItem/MenuItem.js +1 -1
  13. package/OverridableComponent.d.ts +7 -0
  14. package/Paper/Paper.d.ts +32 -30
  15. package/Paper/index.d.ts +1 -1
  16. package/Popover/Popover.d.ts +1 -1
  17. package/Slider/SliderValueLabel.d.ts +1 -6
  18. package/SvgIcon/SvgIcon.js +9 -9
  19. package/Typography/Typography.d.ts +66 -65
  20. package/index.js +1 -1
  21. package/legacy/Button/Button.js +1 -1
  22. package/legacy/CssBaseline/CssBaseline.js +2 -2
  23. package/legacy/Fab/Fab.js +1 -1
  24. package/legacy/FormControlLabel/FormControlLabel.js +11 -6
  25. package/legacy/ListItem/ListItem.js +1 -1
  26. package/legacy/ListItemButton/ListItemButton.js +1 -1
  27. package/legacy/MenuItem/MenuItem.js +1 -1
  28. package/legacy/SvgIcon/SvgIcon.js +9 -9
  29. package/legacy/index.js +1 -1
  30. package/legacy/useTouchRipple/useTouchRipple.js +2 -2
  31. package/modern/Button/Button.js +1 -1
  32. package/modern/Fab/Fab.js +1 -1
  33. package/modern/FormControlLabel/FormControlLabel.js +11 -6
  34. package/modern/ListItem/ListItem.js +1 -1
  35. package/modern/ListItemButton/ListItemButton.js +1 -1
  36. package/modern/MenuItem/MenuItem.js +1 -1
  37. package/modern/index.js +1 -1
  38. package/node/Button/Button.js +1 -1
  39. package/node/CssBaseline/CssBaseline.js +2 -2
  40. package/node/Fab/Fab.js +1 -1
  41. package/node/FormControlLabel/FormControlLabel.js +11 -6
  42. package/node/ListItem/ListItem.js +1 -1
  43. package/node/ListItemButton/ListItemButton.js +1 -1
  44. package/node/MenuItem/MenuItem.js +1 -1
  45. package/node/SvgIcon/SvgIcon.js +9 -9
  46. package/node/index.js +1 -1
  47. package/node/useTouchRipple/useTouchRipple.js +2 -2
  48. package/package.json +6 -6
  49. package/styles/components.d.ts +5 -0
  50. package/styles/overrides.d.ts +2 -0
  51. package/styles/props.d.ts +1 -1
  52. package/umd/material-ui.development.js +98 -93
  53. package/umd/material-ui.production.min.js +13 -13
  54. package/useTouchRipple/useTouchRipple.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.0
2
+ * @mui/material v5.14.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -2131,6 +2131,7 @@
2131
2131
  /**
2132
2132
  * https://github.com/facebook/react/issues/14099#issuecomment-440013892
2133
2133
  */
2134
+
2134
2135
  function useEventCallback(fn) {
2135
2136
  const ref = React__namespace.useRef(fn);
2136
2137
  useEnhancedEffect$1(() => {
@@ -6957,8 +6958,8 @@
6957
6958
  const maxWidth = props => {
6958
6959
  if (props.maxWidth !== undefined && props.maxWidth !== null) {
6959
6960
  const styleFromPropValue = propValue => {
6960
- var _props$theme, _props$theme$breakpoi, _props$theme$breakpoi2;
6961
- const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || values$1[propValue];
6961
+ var _props$theme;
6962
+ const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values$1[propValue];
6962
6963
  return {
6963
6964
  maxWidth: breakpoint || sizingTransform(propValue)
6964
6965
  };
@@ -7484,7 +7485,7 @@
7484
7485
  systemProps: {},
7485
7486
  otherProps: {}
7486
7487
  };
7487
- const config = (_props$theme$unstable = props == null ? void 0 : (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig$1;
7488
+ const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig$1;
7488
7489
  Object.keys(props).forEach(prop => {
7489
7490
  if (config[prop]) {
7490
7491
  result.systemProps[prop] = props[prop];
@@ -7611,12 +7612,12 @@
7611
7612
  return variantsStyles;
7612
7613
  };
7613
7614
  const variantsResolver = (props, styles, theme, name) => {
7614
- var _theme$components, _theme$components$nam;
7615
+ var _theme$components;
7615
7616
  const {
7616
7617
  ownerState = {}
7617
7618
  } = props;
7618
7619
  const variantsStyles = [];
7619
- const themeVariants = theme == null ? void 0 : (_theme$components = theme.components) == null ? void 0 : (_theme$components$nam = _theme$components[name]) == null ? void 0 : _theme$components$nam.variants;
7620
+ const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants;
7620
7621
  if (themeVariants) {
7621
7622
  themeVariants.forEach(themeVariant => {
7622
7623
  let isMatch = true;
@@ -14805,7 +14806,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14805
14806
  }) {
14806
14807
  var _sliderRef$current, _doc$activeElement;
14807
14808
  const doc = ownerDocument(sliderRef.current);
14808
- if (!((_sliderRef$current = sliderRef.current) != null && _sliderRef$current.contains(doc.activeElement)) || Number(doc == null ? void 0 : (_doc$activeElement = doc.activeElement) == null ? void 0 : _doc$activeElement.getAttribute('data-index')) !== activeIndex) {
14809
+ if (!((_sliderRef$current = sliderRef.current) != null && _sliderRef$current.contains(doc.activeElement)) || Number(doc == null || (_doc$activeElement = doc.activeElement) == null ? void 0 : _doc$activeElement.getAttribute('data-index')) !== activeIndex) {
14809
14810
  var _sliderRef$current2;
14810
14811
  (_sliderRef$current2 = sliderRef.current) == null ? void 0 : _sliderRef$current2.querySelector(`[type="range"][data-index="${activeIndex}"]`).focus();
14811
14812
  }
@@ -14956,7 +14957,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14956
14957
  setFocusedThumbIndex(index);
14957
14958
  }
14958
14959
  setOpen(index);
14959
- otherHandlers == null ? void 0 : (_otherHandlers$onFocu = otherHandlers.onFocus) == null ? void 0 : _otherHandlers$onFocu.call(otherHandlers, event);
14960
+ otherHandlers == null || (_otherHandlers$onFocu = otherHandlers.onFocus) == null ? void 0 : _otherHandlers$onFocu.call(otherHandlers, event);
14960
14961
  };
14961
14962
  const createHandleHiddenInputBlur = otherHandlers => event => {
14962
14963
  var _otherHandlers$onBlur;
@@ -14965,7 +14966,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14965
14966
  setFocusedThumbIndex(-1);
14966
14967
  }
14967
14968
  setOpen(-1);
14968
- otherHandlers == null ? void 0 : (_otherHandlers$onBlur = otherHandlers.onBlur) == null ? void 0 : _otherHandlers$onBlur.call(otherHandlers, event);
14969
+ otherHandlers == null || (_otherHandlers$onBlur = otherHandlers.onBlur) == null ? void 0 : _otherHandlers$onBlur.call(otherHandlers, event);
14969
14970
  };
14970
14971
  useEnhancedEffect$1(() => {
14971
14972
  if (disabled && sliderRef.current.contains(document.activeElement)) {
@@ -16021,10 +16022,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16021
16022
 
16022
16023
  // Scroll active descendant into view.
16023
16024
  // Logic copied from https://www.w3.org/WAI/content-assets/wai-aria-practices/patterns/combobox/examples/js/select-only.js
16024
- //
16025
+ // In case of mouse clicks and touch (in mobile devices) we avoid scrolling the element and keep both behaviors same.
16025
16026
  // Consider this API instead once it has a better browser support:
16026
16027
  // .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' });
16027
- if (listboxNode.scrollHeight > listboxNode.clientHeight && reason !== 'mouse') {
16028
+ if (listboxNode.scrollHeight > listboxNode.clientHeight && reason !== 'mouse' && reason !== 'touch') {
16028
16029
  const element = option;
16029
16030
  const scrollBottom = listboxNode.clientHeight + listboxNode.scrollTop;
16030
16031
  const elementBottom = element.offsetTop + element.offsetHeight;
@@ -16736,7 +16737,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16736
16737
  theme,
16737
16738
  ownerState
16738
16739
  }) => {
16739
- var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
16740
+ 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;
16740
16741
  return {
16741
16742
  userSelect: 'none',
16742
16743
  width: '1em',
@@ -16746,19 +16747,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16746
16747
  // e.g. heroicons uses fill="none" and stroke="currentColor"
16747
16748
  fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
16748
16749
  flexShrink: 0,
16749
- transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
16750
- duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
16750
+ transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
16751
+ duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
16751
16752
  }),
16752
16753
  fontSize: {
16753
16754
  inherit: 'inherit',
16754
- small: ((_theme$typography = theme.typography) == null ? void 0 : (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
16755
- medium: ((_theme$typography2 = theme.typography) == null ? void 0 : (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
16756
- large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
16755
+ small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
16756
+ medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
16757
+ large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
16757
16758
  }[ownerState.fontSize],
16758
16759
  // TODO v5 deprecate, v6 remove for sx
16759
- color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
16760
- action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
16761
- disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
16760
+ color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
16761
+ action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
16762
+ disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
16762
16763
  inherit: undefined
16763
16764
  }[ownerState.color]
16764
16765
  };
@@ -25611,7 +25612,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25611
25612
  * The component used for the root node.
25612
25613
  * Either a string to use a HTML element or a component.
25613
25614
  */
25614
- component: PropTypes.elementType,
25615
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
25615
25616
  /**
25616
25617
  * If `true`, the component is disabled.
25617
25618
  * @default false
@@ -27416,7 +27417,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27416
27417
  }
27417
27418
  });
27418
27419
  const styles$3 = (theme, enableColorScheme = false) => {
27419
- var _theme$components, _theme$components$Mui;
27420
+ var _theme$components;
27420
27421
  const colorSchemeStyles = {};
27421
27422
  if (enableColorScheme && theme.colorSchemes) {
27422
27423
  Object.entries(theme.colorSchemes).forEach(([key, scheme]) => {
@@ -27444,7 +27445,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27444
27445
  }
27445
27446
  })
27446
27447
  }, colorSchemeStyles);
27447
- const themeOverrides = (_theme$components = theme.components) == null ? void 0 : (_theme$components$Mui = _theme$components.MuiCssBaseline) == null ? void 0 : _theme$components$Mui.styleOverrides;
27448
+ const themeOverrides = (_theme$components = theme.components) == null || (_theme$components = _theme$components.MuiCssBaseline) == null ? void 0 : _theme$components.styleOverrides;
27448
27449
  if (themeOverrides) {
27449
27450
  defaultStyles = [defaultStyles, themeOverrides];
27450
27451
  }
@@ -29568,7 +29569,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29568
29569
  * The component used for the root node.
29569
29570
  * Either a string to use a HTML element or a component.
29570
29571
  */
29571
- component: PropTypes.elementType,
29572
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
29572
29573
  /**
29573
29574
  * If `true`, the component is disabled.
29574
29575
  * @default false
@@ -30305,6 +30306,66 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30305
30306
  } ;
30306
30307
  var FormControl$1 = FormControl;
30307
30308
 
30309
+ const Stack = createStack({
30310
+ createStyledComponent: styled$1('div', {
30311
+ name: 'MuiStack',
30312
+ slot: 'Root',
30313
+ overridesResolver: (props, styles) => styles.root
30314
+ }),
30315
+ useThemeProps: inProps => useThemeProps({
30316
+ props: inProps,
30317
+ name: 'MuiStack'
30318
+ })
30319
+ });
30320
+ Stack.propTypes /* remove-proptypes */ = {
30321
+ // ----------------------------- Warning --------------------------------
30322
+ // | These PropTypes are generated from the TypeScript type definitions |
30323
+ // | To update them edit the d.ts file and run "yarn proptypes" |
30324
+ // ----------------------------------------------------------------------
30325
+ /**
30326
+ * The content of the component.
30327
+ */
30328
+ children: PropTypes.node,
30329
+ /**
30330
+ * The component used for the root node.
30331
+ * Either a string to use a HTML element or a component.
30332
+ */
30333
+ component: PropTypes.elementType,
30334
+ /**
30335
+ * Defines the `flex-direction` style property.
30336
+ * It is applied for all screen sizes.
30337
+ * @default 'column'
30338
+ */
30339
+ direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
30340
+ /**
30341
+ * Add an element between each child.
30342
+ */
30343
+ divider: PropTypes.node,
30344
+ /**
30345
+ * Defines the space between immediate children.
30346
+ * @default 0
30347
+ */
30348
+ spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
30349
+ /**
30350
+ * The system prop, which allows defining system overrides as well as additional CSS styles.
30351
+ */
30352
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
30353
+ /**
30354
+ * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
30355
+ *
30356
+ * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
30357
+ * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
30358
+ *
30359
+ * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
30360
+ * @default false
30361
+ */
30362
+ useFlexGap: PropTypes.bool
30363
+ } ;
30364
+ var Stack$1 = Stack;
30365
+
30366
+ const stackClasses = generateUtilityClasses('MuiStack', ['root']);
30367
+ var stackClasses$1 = stackClasses;
30368
+
30308
30369
  function getFormControlLabelUtilityClasses(slot) {
30309
30370
  return generateUtilityClass('MuiFormControlLabel', slot);
30310
30371
  }
@@ -30445,12 +30506,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30445
30506
  ownerState: ownerState,
30446
30507
  ref: ref
30447
30508
  }, other, {
30448
- children: [/*#__PURE__*/React__namespace.cloneElement(control, controlProps), label, required && /*#__PURE__*/jsxRuntime_2(AsteriskComponent$1, {
30449
- ownerState: ownerState,
30450
- "aria-hidden": true,
30451
- className: classes.asterisk,
30452
- children: ["\u2009", '*']
30453
- })]
30509
+ children: [/*#__PURE__*/React__namespace.cloneElement(control, controlProps), required ? /*#__PURE__*/jsxRuntime_2(Stack$1, {
30510
+ direction: "row",
30511
+ alignItems: "center",
30512
+ children: [label, /*#__PURE__*/jsxRuntime_2(AsteriskComponent$1, {
30513
+ ownerState: ownerState,
30514
+ "aria-hidden": true,
30515
+ className: classes.asterisk,
30516
+ children: ["\u2009", '*']
30517
+ })]
30518
+ }) : label]
30454
30519
  }));
30455
30520
  });
30456
30521
  FormControlLabel.propTypes /* remove-proptypes */ = {
@@ -34704,7 +34769,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34704
34769
  * The component used for the root node.
34705
34770
  * Either a string to use a HTML element or a component.
34706
34771
  */
34707
- component: PropTypes.elementType,
34772
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
34708
34773
  /**
34709
34774
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
34710
34775
  * The prop defaults to the value inherited from the parent List component.
@@ -35130,7 +35195,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35130
35195
  * The component used for the root node.
35131
35196
  * Either a string to use a HTML element or a component.
35132
35197
  */
35133
- component: PropTypes.elementType,
35198
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
35134
35199
  /**
35135
35200
  * The components used for each slot inside.
35136
35201
  *
@@ -36792,7 +36857,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36792
36857
  * The component used for the root node.
36793
36858
  * Either a string to use a HTML element or a component.
36794
36859
  */
36795
- component: PropTypes.elementType,
36860
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
36796
36861
  /**
36797
36862
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
36798
36863
  * The prop defaults to the value inherited from the parent Menu component.
@@ -43979,66 +44044,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43979
44044
  SpeedDialIcon.muiName = 'SpeedDialIcon';
43980
44045
  var SpeedDialIcon$1 = SpeedDialIcon;
43981
44046
 
43982
- const Stack = createStack({
43983
- createStyledComponent: styled$1('div', {
43984
- name: 'MuiStack',
43985
- slot: 'Root',
43986
- overridesResolver: (props, styles) => styles.root
43987
- }),
43988
- useThemeProps: inProps => useThemeProps({
43989
- props: inProps,
43990
- name: 'MuiStack'
43991
- })
43992
- });
43993
- Stack.propTypes /* remove-proptypes */ = {
43994
- // ----------------------------- Warning --------------------------------
43995
- // | These PropTypes are generated from the TypeScript type definitions |
43996
- // | To update them edit the d.ts file and run "yarn proptypes" |
43997
- // ----------------------------------------------------------------------
43998
- /**
43999
- * The content of the component.
44000
- */
44001
- children: PropTypes.node,
44002
- /**
44003
- * The component used for the root node.
44004
- * Either a string to use a HTML element or a component.
44005
- */
44006
- component: PropTypes.elementType,
44007
- /**
44008
- * Defines the `flex-direction` style property.
44009
- * It is applied for all screen sizes.
44010
- * @default 'column'
44011
- */
44012
- direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
44013
- /**
44014
- * Add an element between each child.
44015
- */
44016
- divider: PropTypes.node,
44017
- /**
44018
- * Defines the space between immediate children.
44019
- * @default 0
44020
- */
44021
- spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
44022
- /**
44023
- * The system prop, which allows defining system overrides as well as additional CSS styles.
44024
- */
44025
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
44026
- /**
44027
- * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
44028
- *
44029
- * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
44030
- * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
44031
- *
44032
- * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
44033
- * @default false
44034
- */
44035
- useFlexGap: PropTypes.bool
44036
- } ;
44037
- var Stack$1 = Stack;
44038
-
44039
- const stackClasses = generateUtilityClasses('MuiStack', ['root']);
44040
- var stackClasses$1 = stackClasses;
44041
-
44042
44047
  /**
44043
44048
  * Provides information about the current step in Stepper.
44044
44049
  */