@mui/material 5.2.8 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/Autocomplete.d.ts +2 -0
  9. package/Autocomplete/Autocomplete.js +8 -6
  10. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/Badge/Badge.js +2 -6
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +76 -76
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +73 -0
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  26. package/CardActions/cardActionsClasses.d.ts +10 -10
  27. package/CardContent/cardContentClasses.d.ts +8 -8
  28. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  29. package/CardMedia/cardMediaClasses.d.ts +12 -12
  30. package/Checkbox/checkboxClasses.d.ts +18 -18
  31. package/Chip/chipClasses.d.ts +80 -80
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +2 -2
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +22 -22
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/filledInputClasses.d.ts +40 -40
  46. package/FormControl/formControlClasses.d.ts +14 -14
  47. package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
  48. package/FormGroup/formGroupClasses.d.ts +10 -10
  49. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  50. package/FormLabel/formLabelClasses.d.ts +22 -22
  51. package/Grid/gridClasses.d.ts +48 -48
  52. package/Icon/iconClasses.d.ts +24 -24
  53. package/IconButton/iconButtonClasses.d.ts +26 -26
  54. package/ImageList/imageListClasses.d.ts +16 -16
  55. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  56. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  57. package/Input/inputClasses.d.ts +34 -34
  58. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  59. package/InputBase/inputBaseClasses.d.ts +44 -44
  60. package/InputLabel/inputLabelClasses.d.ts +32 -32
  61. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  62. package/Link/linkClasses.d.ts +18 -18
  63. package/List/listClasses.d.ts +14 -14
  64. package/ListItem/listItemClasses.d.ts +30 -30
  65. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  66. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  67. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  68. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  69. package/ListItemText/listItemTextClasses.d.ts +18 -18
  70. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  71. package/Menu/menuClasses.d.ts +12 -12
  72. package/MenuItem/menuItemClasses.d.ts +20 -20
  73. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  74. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  75. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  76. package/Pagination/paginationClasses.d.ts +14 -14
  77. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  78. package/Paper/paperClasses.d.ts +39 -39
  79. package/Popover/popoverClasses.d.ts +10 -10
  80. package/Popper/Popper.d.ts +17 -17
  81. package/README.md +3 -3
  82. package/Radio/radioClasses.d.ts +16 -16
  83. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  84. package/RadioGroup/useRadioGroup.d.ts +4 -4
  85. package/Rating/ratingClasses.d.ts +40 -40
  86. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  87. package/Select/Select.d.ts +9 -1
  88. package/Select/Select.js +10 -1
  89. package/Select/SelectInput.d.ts +1 -0
  90. package/Select/SelectInput.js +25 -4
  91. package/Select/selectClasses.d.ts +30 -30
  92. package/Skeleton/skeletonClasses.d.ts +24 -24
  93. package/Slider/Slider.js +109 -54
  94. package/Snackbar/snackbarClasses.d.ts +20 -20
  95. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  96. package/SpeedDial/speedDialClasses.d.ts +22 -22
  97. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  98. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  99. package/Step/stepClasses.d.ts +16 -16
  100. package/StepButton/stepButtonClasses.d.ts +14 -14
  101. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  102. package/StepContent/stepContentClasses.d.ts +12 -12
  103. package/StepIcon/stepIconClasses.d.ts +16 -16
  104. package/StepLabel/stepLabelClasses.d.ts +28 -28
  105. package/Stepper/stepperClasses.d.ts +14 -14
  106. package/SvgIcon/svgIconClasses.d.ts +24 -24
  107. package/Switch/switchClasses.d.ts +32 -32
  108. package/Tab/tabClasses.d.ts +26 -26
  109. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  110. package/Table/tableClasses.d.ts +10 -10
  111. package/TableBody/tableBodyClasses.d.ts +8 -8
  112. package/TableCell/tableCellClasses.d.ts +32 -32
  113. package/TableContainer/tableContainerClasses.d.ts +8 -8
  114. package/TableFooter/tableFooterClasses.d.ts +8 -8
  115. package/TableHead/tableHeadClasses.d.ts +8 -8
  116. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  117. package/TableRow/tableRowClasses.d.ts +16 -16
  118. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  119. package/Tabs/tabsClasses.d.ts +32 -32
  120. package/TextField/textFieldClasses.d.ts +8 -8
  121. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  122. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  123. package/Toolbar/toolbarClasses.d.ts +14 -14
  124. package/Tooltip/tooltipClasses.d.ts +30 -30
  125. package/Typography/typographyClasses.d.ts +50 -50
  126. package/darkScrollbar/index.d.ts +28 -28
  127. package/index.js +1 -1
  128. package/internal/switchBaseClasses.d.ts +12 -12
  129. package/legacy/Autocomplete/Autocomplete.js +8 -6
  130. package/legacy/Badge/Badge.js +2 -6
  131. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  132. package/legacy/Select/Select.js +11 -1
  133. package/legacy/Select/SelectInput.js +29 -7
  134. package/legacy/Slider/Slider.js +110 -55
  135. package/legacy/index.js +1 -1
  136. package/legacy/utils/shouldSpreadAdditionalProps.js +7 -0
  137. package/locale/index.d.ts +68 -68
  138. package/modern/Autocomplete/Autocomplete.js +7 -5
  139. package/modern/Badge/Badge.js +2 -6
  140. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  141. package/modern/Select/Select.js +10 -1
  142. package/modern/Select/SelectInput.js +25 -4
  143. package/modern/Slider/Slider.js +109 -54
  144. package/modern/index.js +1 -1
  145. package/modern/utils/shouldSpreadAdditionalProps.js +7 -0
  146. package/node/Autocomplete/Autocomplete.js +8 -6
  147. package/node/Badge/Badge.js +4 -7
  148. package/node/BottomNavigation/BottomNavigation.js +0 -0
  149. package/node/Select/Select.js +10 -1
  150. package/node/Select/SelectInput.js +25 -4
  151. package/node/Slider/Slider.js +95 -46
  152. package/node/index.js +1 -1
  153. package/node/utils/shouldSpreadAdditionalProps.js +15 -0
  154. package/package.json +7 -7
  155. package/styles/components.d.ts +452 -113
  156. package/styles/createTheme.d.ts +12 -6
  157. package/styles/overrides.d.ts +16 -4
  158. package/styles/useThemeProps.d.ts +2 -1
  159. package/transitions/index.d.ts +1 -1
  160. package/transitions/transition.d.ts +13 -13
  161. package/transitions/utils.d.ts +23 -23
  162. package/umd/material-ui.development.js +464 -255
  163. package/umd/material-ui.production.min.js +21 -21
  164. package/useMediaQuery/useMediaQuery.d.ts +27 -27
  165. package/useTouchRipple/index.d.ts +1 -1
  166. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  167. package/utils/getScrollbarSize.d.ts +2 -2
  168. package/utils/ownerDocument.d.ts +2 -2
  169. package/utils/ownerWindow.d.ts +2 -2
  170. package/utils/setRef.d.ts +2 -2
  171. package/utils/shouldSpreadAdditionalProps.js +7 -0
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.8
1
+ /** @license MUI v5.3.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -477,14 +477,11 @@
477
477
  }
478
478
 
479
479
  return target;
480
- };
481
-
482
- module.exports["default"] = module.exports, module.exports.__esModule = true;
480
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
483
481
  return _extends.apply(this, arguments);
484
482
  }
485
483
 
486
- module.exports = _extends;
487
- module.exports["default"] = module.exports, module.exports.__esModule = true;
484
+ module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
488
485
  });
489
486
 
490
487
  unwrapExports(_extends_1);
@@ -6185,6 +6182,9 @@
6185
6182
  const letterSpacing = style$2({
6186
6183
  prop: 'letterSpacing'
6187
6184
  });
6185
+ const textTransform = style$2({
6186
+ prop: 'textTransform'
6187
+ });
6188
6188
  const lineHeight = style$2({
6189
6189
  prop: 'lineHeight'
6190
6190
  });
@@ -6196,7 +6196,7 @@
6196
6196
  cssProperty: false,
6197
6197
  themeKey: 'typography'
6198
6198
  });
6199
- const typography = compose(typographyVariant, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);
6199
+ const typography = compose(typographyVariant, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, textTransform);
6200
6200
  var typography$1 = typography;
6201
6201
 
6202
6202
  const filterPropsMapping = {
@@ -6873,7 +6873,11 @@
6873
6873
  const styleOverrides = getStyleOverrides(componentName, theme);
6874
6874
 
6875
6875
  if (styleOverrides) {
6876
- return overridesResolver(props, styleOverrides);
6876
+ const resolvedStyleOverrides = {};
6877
+ Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
6878
+ resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(props) : slotStyle;
6879
+ });
6880
+ return overridesResolver(props, resolvedStyleOverrides);
6877
6881
  }
6878
6882
 
6879
6883
  return null;
@@ -6936,6 +6940,10 @@
6936
6940
  return Component;
6937
6941
  };
6938
6942
 
6943
+ if (defaultStyledResolver.withConfig) {
6944
+ muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
6945
+ }
6946
+
6939
6947
  return muiStyledResolver;
6940
6948
  };
6941
6949
  }
@@ -13504,7 +13512,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13504
13512
  value: propTypes.node
13505
13513
  } ;
13506
13514
 
13507
- const _excluded$2f = ["aria-label", "aria-labelledby", "aria-valuetext", "className", "component", "classes", "defaultValue", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
13508
13515
  const INTENTIONAL_DRAG_COUNT_THRESHOLD = 2;
13509
13516
 
13510
13517
  function asc(a, b) {
@@ -13520,9 +13527,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13520
13527
  }
13521
13528
 
13522
13529
  function findClosest(values, currentValue) {
13530
+ var _values$reduce;
13531
+
13523
13532
  const {
13524
13533
  index: closestIndex
13525
- } = values.reduce((acc, value, index) => {
13534
+ } = (_values$reduce = values.reduce((acc, value, index) => {
13526
13535
  const distance = Math.abs(currentValue - value);
13527
13536
 
13528
13537
  if (acc === null || distance < acc.distance || distance === acc.distance) {
@@ -13533,9 +13542,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13533
13542
  }
13534
13543
 
13535
13544
  return acc;
13536
- }, null);
13545
+ }, null)) != null ? _values$reduce : {};
13537
13546
  return closestIndex;
13538
- }
13547
+ } // TODO: Set the correct event type
13548
+
13539
13549
 
13540
13550
  function trackFinger(event, touchId) {
13541
13551
  if (touchId.current !== undefined && event.changedTouches) {
@@ -13600,10 +13610,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13600
13610
  activeIndex,
13601
13611
  setActive
13602
13612
  }) {
13613
+ var _sliderRef$current, _doc$activeElement;
13614
+
13603
13615
  const doc = ownerDocument(sliderRef.current);
13604
13616
 
13605
- if (!sliderRef.current.contains(doc.activeElement) || Number(doc.activeElement.getAttribute('data-index')) !== activeIndex) {
13606
- sliderRef.current.querySelector(`[type="range"][data-index="${activeIndex}"]`).focus();
13617
+ 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) {
13618
+ var _sliderRef$current2;
13619
+
13620
+ // @ts-ignore TODO: Property focus does not exists on type string
13621
+ (_sliderRef$current2 = sliderRef.current) == null ? void 0 : _sliderRef$current2.querySelector(`[type="range"][data-index="${activeIndex}"]`).focus();
13607
13622
  }
13608
13623
 
13609
13624
  if (setActive) {
@@ -13637,8 +13652,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13637
13652
  })
13638
13653
  }
13639
13654
  };
13640
-
13641
- const Identity = x => x; // TODO: remove support for Safari < 13.
13655
+ const Identity$1 = x => x; // TODO: remove support for Safari < 13.
13642
13656
  // https://caniuse.com/#search=touch-action
13643
13657
  //
13644
13658
  // Safari, on iOS, supports touch action since v13.
@@ -13649,7 +13663,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13649
13663
  // is supported on both Edge@12 and IE if CSS.supports is not available that means that
13650
13664
  // touch-action will be supported
13651
13665
 
13652
-
13653
13666
  let cachedSupportsTouchActionNone;
13654
13667
 
13655
13668
  function doesSupportTouchActionNone() {
@@ -13664,70 +13677,26 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13664
13677
  return cachedSupportsTouchActionNone;
13665
13678
  }
13666
13679
 
13667
- const useUtilityClasses$1P = ownerState => {
13668
- const {
13669
- disabled,
13670
- dragging,
13671
- marked,
13672
- orientation,
13673
- track,
13674
- classes
13675
- } = ownerState;
13676
- const slots = {
13677
- root: ['root', disabled && 'disabled', dragging && 'dragging', marked && 'marked', orientation === 'vertical' && 'vertical', track === 'inverted' && 'trackInverted', track === false && 'trackFalse'],
13678
- rail: ['rail'],
13679
- track: ['track'],
13680
- mark: ['mark'],
13681
- markActive: ['markActive'],
13682
- markLabel: ['markLabel'],
13683
- markLabelActive: ['markLabelActive'],
13684
- valueLabel: ['valueLabel'],
13685
- thumb: ['thumb', disabled && 'disabled'],
13686
- active: ['active'],
13687
- disabled: ['disabled'],
13688
- focusVisible: ['focusVisible']
13689
- };
13690
- return composeClasses(slots, getSliderUtilityClass, classes);
13691
- };
13692
-
13693
- const Forward = ({
13694
- children
13695
- }) => children;
13696
-
13697
- const SliderUnstyled = /*#__PURE__*/React__namespace.forwardRef(function SliderUnstyled(props, ref) {
13680
+ function useSlider(props) {
13698
13681
  const {
13699
- 'aria-label': ariaLabel,
13682
+ ref,
13700
13683
  'aria-labelledby': ariaLabelledby,
13701
- 'aria-valuetext': ariaValuetext,
13702
- className,
13703
- component = 'span',
13704
- classes: classesProp,
13705
13684
  defaultValue,
13706
13685
  disableSwap = false,
13707
13686
  disabled = false,
13708
- getAriaLabel,
13709
- getAriaValueText,
13710
13687
  marks: marksProp = false,
13711
13688
  max = 100,
13712
13689
  min = 0,
13713
13690
  name,
13714
13691
  onChange,
13715
13692
  onChangeCommitted,
13716
- onMouseDown,
13717
13693
  orientation = 'horizontal',
13718
- scale = Identity,
13694
+ scale = Identity$1,
13719
13695
  step = 1,
13720
13696
  tabIndex,
13721
- track = 'normal',
13722
13697
  value: valueProp,
13723
- valueLabelDisplay = 'off',
13724
- valueLabelFormat = Identity,
13725
- isRtl = false,
13726
- components = {},
13727
- componentsProps = {}
13728
- } = props,
13729
- other = _objectWithoutPropertiesLoose(props, _excluded$2f);
13730
-
13698
+ isRtl = false
13699
+ } = props;
13731
13700
  const touchId = React__namespace.useRef(); // We can't use the :active browser pseudo-classes.
13732
13701
  // - The active state isn't triggered when clicking on the rail.
13733
13702
  // - The active state isn't transferred when inversing a range slider.
@@ -13747,7 +13716,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13747
13716
  // This allows seamless integration with the most popular form libraries.
13748
13717
  // https://github.com/mui-org/material-ui/issues/13485#issuecomment-676048492
13749
13718
  // Clone the event to not override `target` of the original event.
13750
- const nativeEvent = event.nativeEvent || event;
13719
+ // @ts-ignore nativeEvent does not exists on Event
13720
+ const nativeEvent = event.nativeEvent || event; // @ts-ignore TODO: check this again
13721
+
13751
13722
  const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
13752
13723
  Object.defineProperty(clonedEvent, 'target', {
13753
13724
  writable: true,
@@ -13755,7 +13726,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13755
13726
  value,
13756
13727
  name
13757
13728
  }
13758
- });
13729
+ }); // @ts-ignore TODO: value could be undefined?
13730
+
13759
13731
  onChange(clonedEvent, value, thumbIndex);
13760
13732
  });
13761
13733
 
@@ -13765,6 +13737,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13765
13737
  const marks = marksProp === true && step !== null ? [...Array(Math.floor((max - min) / step) + 1)].map((_, index) => ({
13766
13738
  value: min + step * index
13767
13739
  })) : marksProp || [];
13740
+ const marksValues = marks.map(mark => mark.value);
13768
13741
  const {
13769
13742
  isFocusVisibleRef,
13770
13743
  onBlur: handleBlurVisible,
@@ -13776,7 +13749,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13776
13749
  const handleFocusRef = useForkRef(focusVisibleRef, sliderRef);
13777
13750
  const handleRef = useForkRef(ref, handleFocusRef);
13778
13751
 
13779
- const handleFocus = event => {
13752
+ const createHandleHiddenInputFocus = otherHandlers => event => {
13753
+ var _otherHandlers$onFocu;
13754
+
13780
13755
  const index = Number(event.currentTarget.getAttribute('data-index'));
13781
13756
  handleFocusVisible(event);
13782
13757
 
@@ -13785,9 +13760,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13785
13760
  }
13786
13761
 
13787
13762
  setOpen(index);
13763
+ otherHandlers == null ? void 0 : (_otherHandlers$onFocu = otherHandlers.onFocus) == null ? void 0 : _otherHandlers$onFocu.call(otherHandlers, event);
13788
13764
  };
13789
13765
 
13790
- const handleBlur = event => {
13766
+ const createHandleHidenInputBlur = otherHandlers => event => {
13767
+ var _otherHandlers$onBlur;
13768
+
13791
13769
  handleBlurVisible(event);
13792
13770
 
13793
13771
  if (isFocusVisibleRef.current === false) {
@@ -13795,21 +13773,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13795
13773
  }
13796
13774
 
13797
13775
  setOpen(-1);
13776
+ otherHandlers == null ? void 0 : (_otherHandlers$onBlur = otherHandlers.onBlur) == null ? void 0 : _otherHandlers$onBlur.call(otherHandlers, event);
13798
13777
  };
13799
13778
 
13800
- const handleMouseOver = useEventCallback(event => {
13801
- const index = Number(event.currentTarget.getAttribute('data-index'));
13802
- setOpen(index);
13803
- });
13804
- const handleMouseLeave = useEventCallback(() => {
13805
- setOpen(-1);
13806
- });
13807
13779
  useEnhancedEffect$1(() => {
13808
13780
  if (disabled && sliderRef.current.contains(document.activeElement)) {
13781
+ var _document$activeEleme;
13782
+
13809
13783
  // This is necessary because Firefox and Safari will keep focus
13810
13784
  // on a disabled element:
13811
13785
  // https://codesandbox.io/s/mui-pr-22247-forked-h151h?file=/src/App.js
13812
- document.activeElement.blur();
13786
+ // @ts-ignore
13787
+ (_document$activeEleme = document.activeElement) == null ? void 0 : _document$activeEleme.blur();
13813
13788
  }
13814
13789
  }, [disabled]);
13815
13790
 
@@ -13821,11 +13796,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13821
13796
  setFocusVisible(-1);
13822
13797
  }
13823
13798
 
13824
- const handleHiddenInputChange = event => {
13799
+ const createHandleHiddenInputChange = otherHandlers => event => {
13800
+ var _otherHandlers$onChan;
13801
+
13802
+ (_otherHandlers$onChan = otherHandlers.onChange) == null ? void 0 : _otherHandlers$onChan.call(otherHandlers, event);
13825
13803
  const index = Number(event.currentTarget.getAttribute('data-index'));
13826
13804
  const value = values[index];
13827
- const marksValues = marks.map(mark => mark.value);
13828
- const marksIndex = marksValues.indexOf(value);
13805
+ const marksIndex = marksValues.indexOf(value); // @ts-ignore
13806
+
13829
13807
  let newValue = event.target.valueAsNumber;
13830
13808
 
13831
13809
  if (marks && step == null) {
@@ -13835,9 +13813,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13835
13813
  newValue = clamp$2(newValue, min, max);
13836
13814
 
13837
13815
  if (marks && step == null) {
13838
- const markValues = marks.map(mark => mark.value);
13839
- const currentMarkIndex = markValues.indexOf(values[index]);
13840
- newValue = newValue < values[index] ? markValues[currentMarkIndex - 1] : markValues[currentMarkIndex + 1];
13816
+ const currentMarkIndex = marksValues.indexOf(values[index]);
13817
+ newValue = newValue < values[index] ? marksValues[currentMarkIndex - 1] : marksValues[currentMarkIndex + 1];
13841
13818
  }
13842
13819
 
13843
13820
  if (range) {
@@ -13879,7 +13856,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13879
13856
  const previousIndex = React__namespace.useRef();
13880
13857
  let axis = orientation;
13881
13858
 
13882
- if (isRtl && orientation !== "vertical") {
13859
+ if (isRtl && orientation === 'horizontal') {
13883
13860
  axis += '-reverse';
13884
13861
  }
13885
13862
 
@@ -13915,7 +13892,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13915
13892
  if (step) {
13916
13893
  newValue = roundValueToStep(newValue, step, min);
13917
13894
  } else {
13918
- const marksValues = marks.map(mark => mark.value);
13919
13895
  const closestIndex = findClosest(marksValues, newValue);
13920
13896
  newValue = marksValues[closestIndex];
13921
13897
  }
@@ -13962,6 +13938,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13962
13938
  }
13963
13939
 
13964
13940
  moveCount.current += 1; // Cancel move in case some other element consumed a mouseup event and it was not fired.
13941
+ // @ts-ignore buttons doesn't not exists on touch event
13965
13942
 
13966
13943
  if (nativeEvent.type === 'mousemove' && nativeEvent.buttons === 0) {
13967
13944
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
@@ -14034,22 +14011,25 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14034
14011
  }
14035
14012
 
14036
14013
  const finger = trackFinger(nativeEvent, touchId);
14037
- const {
14038
- newValue,
14039
- activeIndex
14040
- } = getFingerNewValue({
14041
- finger,
14042
- values
14043
- });
14044
- focusThumb({
14045
- sliderRef,
14046
- activeIndex,
14047
- setActive
14048
- });
14049
- setValueState(newValue);
14050
14014
 
14051
- if (handleChange) {
14052
- handleChange(nativeEvent, newValue, activeIndex);
14015
+ if (finger !== false) {
14016
+ const {
14017
+ newValue,
14018
+ activeIndex
14019
+ } = getFingerNewValue({
14020
+ finger,
14021
+ values
14022
+ });
14023
+ focusThumb({
14024
+ sliderRef,
14025
+ activeIndex,
14026
+ setActive
14027
+ });
14028
+ setValueState(newValue);
14029
+
14030
+ if (handleChange) {
14031
+ handleChange(nativeEvent, newValue, activeIndex);
14032
+ }
14053
14033
  }
14054
14034
 
14055
14035
  moveCount.current = 0;
@@ -14072,6 +14052,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14072
14052
  passive: doesSupportTouchActionNone()
14073
14053
  });
14074
14054
  return () => {
14055
+ // @ts-ignore
14075
14056
  slider.removeEventListener('touchstart', handleTouchStart, {
14076
14057
  passive: doesSupportTouchActionNone()
14077
14058
  });
@@ -14083,9 +14064,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14083
14064
  stopListening();
14084
14065
  }
14085
14066
  }, [disabled, stopListening]);
14086
- const handleMouseDown = useEventCallback(event => {
14087
- if (onMouseDown) {
14088
- onMouseDown(event);
14067
+
14068
+ const createHandleMouseDown = otherHandlers => event => {
14069
+ var _otherHandlers$onMous;
14070
+
14071
+ (_otherHandlers$onMous = otherHandlers.onMouseDown) == null ? void 0 : _otherHandlers$onMous.call(otherHandlers, event);
14072
+
14073
+ if (event.defaultPrevented) {
14074
+ return;
14089
14075
  } // Only handle left clicks
14090
14076
 
14091
14077
 
@@ -14096,58 +14082,193 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14096
14082
 
14097
14083
  event.preventDefault();
14098
14084
  const finger = trackFinger(event, touchId);
14099
- const {
14100
- newValue,
14101
- activeIndex
14102
- } = getFingerNewValue({
14103
- finger,
14104
- values
14105
- });
14106
- focusThumb({
14107
- sliderRef,
14108
- activeIndex,
14109
- setActive
14110
- });
14111
- setValueState(newValue);
14112
14085
 
14113
- if (handleChange) {
14114
- handleChange(event, newValue, activeIndex);
14086
+ if (finger !== false) {
14087
+ const {
14088
+ newValue,
14089
+ activeIndex
14090
+ } = getFingerNewValue({
14091
+ finger,
14092
+ values
14093
+ });
14094
+ focusThumb({
14095
+ sliderRef,
14096
+ activeIndex,
14097
+ setActive
14098
+ });
14099
+ setValueState(newValue);
14100
+
14101
+ if (handleChange) {
14102
+ handleChange(event, newValue, activeIndex);
14103
+ }
14115
14104
  }
14116
14105
 
14117
14106
  moveCount.current = 0;
14118
14107
  const doc = ownerDocument(sliderRef.current);
14119
14108
  doc.addEventListener('mousemove', handleTouchMove);
14120
14109
  doc.addEventListener('mouseup', handleTouchEnd);
14121
- });
14110
+ };
14111
+
14122
14112
  const trackOffset = valueToPercent(range ? values[0] : min, min, max);
14123
14113
  const trackLeap = valueToPercent(values[values.length - 1], min, max) - trackOffset;
14124
14114
 
14125
- const trackStyle = _extends({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap));
14115
+ const getRootProps = otherHandlers => {
14116
+ const ownEventHandlers = {
14117
+ onMouseDown: createHandleMouseDown(otherHandlers || {})
14118
+ };
14126
14119
 
14127
- const Root = components.Root || component;
14128
- const rootProps = componentsProps.root || {};
14129
- const Rail = components.Rail || 'span';
14130
- const railProps = componentsProps.rail || {};
14131
- const Track = components.Track || 'span';
14132
- const trackProps = componentsProps.track || {};
14133
- const Thumb = components.Thumb || 'span';
14134
- const thumbProps = componentsProps.thumb || {};
14135
- const ValueLabel = components.ValueLabel || SliderValueLabelUnstyled;
14136
- const valueLabelProps = componentsProps.valueLabel || {};
14137
- const Mark = components.Mark || 'span';
14138
- const markProps = componentsProps.mark || {};
14139
- const MarkLabel = components.MarkLabel || 'span';
14140
- const markLabelProps = componentsProps.markLabel || {};
14141
- const Input = components.Input || 'input';
14142
- const inputProps = componentsProps.input || {}; // all props with defaults
14120
+ const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
14121
+
14122
+ return _extends({
14123
+ ref: handleRef
14124
+ }, mergedEventHandlers);
14125
+ };
14126
+
14127
+ const createHandleMouseOver = otherHandlers => event => {
14128
+ var _otherHandlers$onMous2;
14129
+
14130
+ (_otherHandlers$onMous2 = otherHandlers.onMouseOver) == null ? void 0 : _otherHandlers$onMous2.call(otherHandlers, event);
14131
+ const index = Number(event.currentTarget.getAttribute('data-index'));
14132
+ setOpen(index);
14133
+ };
14134
+
14135
+ const createHandleMouseLeave = otherHandlers => event => {
14136
+ var _otherHandlers$onMous3;
14137
+
14138
+ (_otherHandlers$onMous3 = otherHandlers.onMouseLeave) == null ? void 0 : _otherHandlers$onMous3.call(otherHandlers, event);
14139
+ setOpen(-1);
14140
+ };
14141
+
14142
+ const getThumbProps = otherHandlers => {
14143
+ const ownEventHandlers = {
14144
+ onMouseOver: createHandleMouseOver(otherHandlers || {}),
14145
+ onMouseLeave: createHandleMouseLeave(otherHandlers || {})
14146
+ };
14147
+
14148
+ const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
14149
+
14150
+ return _extends({}, mergedEventHandlers);
14151
+ };
14152
+
14153
+ const getHiddenInputProps = otherHandlers => {
14154
+ const ownEventHandlers = {
14155
+ onChange: createHandleHiddenInputChange(otherHandlers || {}),
14156
+ onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
14157
+ onBlur: createHandleHidenInputBlur(otherHandlers || {})
14158
+ };
14159
+
14160
+ const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
14161
+
14162
+ return _extends({
14163
+ tabIndex,
14164
+ 'aria-labelledby': ariaLabelledby,
14165
+ 'aria-orientation': orientation,
14166
+ 'aria-valuemax': scale(max),
14167
+ 'aria-valuemin': scale(min),
14168
+ name,
14169
+ type: 'range',
14170
+ min: props.min,
14171
+ max: props.max,
14172
+ step: props.step,
14173
+ disabled
14174
+ }, mergedEventHandlers, {
14175
+ style: _extends({}, visuallyHidden$1, {
14176
+ direction: isRtl ? 'rtl' : 'ltr',
14177
+ // So that VoiceOver's focus indicator matches the thumb's dimensions
14178
+ width: '100%',
14179
+ height: '100%'
14180
+ })
14181
+ });
14182
+ };
14183
+
14184
+ return {
14185
+ axis,
14186
+ axisProps,
14187
+ getRootProps,
14188
+ getHiddenInputProps,
14189
+ getThumbProps,
14190
+ dragging,
14191
+ marks,
14192
+ values,
14193
+ active,
14194
+ focusVisible,
14195
+ open,
14196
+ range,
14197
+ trackOffset,
14198
+ trackLeap
14199
+ };
14200
+ }
14201
+
14202
+ const _excluded$2f = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
14203
+
14204
+ const Identity = x => x;
14205
+
14206
+ const useUtilityClasses$1P = ownerState => {
14207
+ const {
14208
+ disabled,
14209
+ dragging,
14210
+ marked,
14211
+ orientation,
14212
+ track,
14213
+ classes
14214
+ } = ownerState;
14215
+ const slots = {
14216
+ root: ['root', disabled && 'disabled', dragging && 'dragging', marked && 'marked', orientation === 'vertical' && 'vertical', track === 'inverted' && 'trackInverted', track === false && 'trackFalse'],
14217
+ rail: ['rail'],
14218
+ track: ['track'],
14219
+ mark: ['mark'],
14220
+ markActive: ['markActive'],
14221
+ markLabel: ['markLabel'],
14222
+ markLabelActive: ['markLabelActive'],
14223
+ valueLabel: ['valueLabel'],
14224
+ thumb: ['thumb', disabled && 'disabled'],
14225
+ active: ['active'],
14226
+ disabled: ['disabled'],
14227
+ focusVisible: ['focusVisible']
14228
+ };
14229
+ return composeClasses(slots, getSliderUtilityClass, classes);
14230
+ };
14231
+
14232
+ const Forward = ({
14233
+ children
14234
+ }) => children;
14235
+
14236
+ const SliderUnstyled = /*#__PURE__*/React__namespace.forwardRef(function SliderUnstyled(props, ref) {
14237
+ var _ref, _components$Rail, _components$Track, _components$Thumb, _components$ValueLabe, _components$Mark, _components$MarkLabel;
14238
+
14239
+ const {
14240
+ 'aria-label': ariaLabel,
14241
+ 'aria-valuetext': ariaValuetext,
14242
+ className,
14243
+ component,
14244
+ classes: classesProp,
14245
+ disableSwap = false,
14246
+ disabled = false,
14247
+ getAriaLabel,
14248
+ getAriaValueText,
14249
+ marks: marksProp = false,
14250
+ max = 100,
14251
+ min = 0,
14252
+ onMouseDown,
14253
+ orientation = 'horizontal',
14254
+ scale = Identity,
14255
+ step = 1,
14256
+ track = 'normal',
14257
+ valueLabelDisplay = 'off',
14258
+ valueLabelFormat = Identity,
14259
+ isRtl = false,
14260
+ components = {},
14261
+ componentsProps = {}
14262
+ } = props,
14263
+ other = _objectWithoutPropertiesLoose(props, _excluded$2f); // all props with defaults
14143
14264
  // consider extracting to hook an reusing the lint rule for the varints
14144
14265
 
14266
+
14145
14267
  const ownerState = _extends({}, props, {
14268
+ mark: marksProp,
14146
14269
  classes: classesProp,
14147
14270
  disabled,
14148
- dragging,
14149
14271
  isRtl,
14150
- marked: marks.length > 0 && marks.some(mark => mark.label),
14151
14272
  max,
14152
14273
  min,
14153
14274
  orientation,
@@ -14158,22 +14279,54 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14158
14279
  valueLabelFormat
14159
14280
  });
14160
14281
 
14282
+ const {
14283
+ axisProps,
14284
+ getRootProps,
14285
+ getHiddenInputProps,
14286
+ getThumbProps,
14287
+ open,
14288
+ active,
14289
+ axis,
14290
+ range,
14291
+ focusVisible,
14292
+ dragging,
14293
+ marks,
14294
+ values,
14295
+ trackOffset,
14296
+ trackLeap
14297
+ } = useSlider(_extends({}, ownerState, {
14298
+ ref
14299
+ }));
14300
+ ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
14301
+ ownerState.dragging = dragging;
14302
+ const Root = (_ref = component != null ? component : components.Root) != null ? _ref : 'span';
14303
+ const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
14304
+ const Rail = (_components$Rail = components.Rail) != null ? _components$Rail : 'span';
14305
+ const railProps = appendOwnerState(Rail, componentsProps.rail, ownerState);
14306
+ const Track = (_components$Track = components.Track) != null ? _components$Track : 'span';
14307
+ const trackProps = appendOwnerState(Track, componentsProps.track, ownerState);
14308
+
14309
+ const trackStyle = _extends({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap));
14310
+
14311
+ const Thumb = (_components$Thumb = components.Thumb) != null ? _components$Thumb : 'span';
14312
+ const thumbProps = appendOwnerState(Thumb, componentsProps.thumb, ownerState);
14313
+ const ValueLabel = (_components$ValueLabe = components.ValueLabel) != null ? _components$ValueLabe : SliderValueLabelUnstyled;
14314
+ const valueLabelProps = appendOwnerState(ValueLabel, componentsProps.valueLabel, ownerState);
14315
+ const Mark = (_components$Mark = components.Mark) != null ? _components$Mark : 'span';
14316
+ const markProps = appendOwnerState(Mark, componentsProps.mark, ownerState);
14317
+ const MarkLabel = (_components$MarkLabel = components.MarkLabel) != null ? _components$MarkLabel : 'span';
14318
+ const markLabelProps = appendOwnerState(MarkLabel, componentsProps.markLabel, ownerState);
14319
+ const Input = components.Input || 'input';
14320
+ const inputProps = appendOwnerState(Input, componentsProps.input, ownerState);
14321
+ const hiddenInputProps = getHiddenInputProps();
14161
14322
  const classes = useUtilityClasses$1P(ownerState);
14162
- return /*#__PURE__*/jsxRuntime_2(Root, _extends({
14163
- ref: handleRef,
14164
- onMouseDown: handleMouseDown
14165
- }, rootProps, !isHostComponent(Root) && {
14166
- as: component,
14167
- ownerState: _extends({}, ownerState, rootProps.ownerState)
14168
- }, other, {
14323
+ return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, getRootProps({
14324
+ onMouseDown
14325
+ }), {
14169
14326
  className: clsx(classes.root, rootProps.className, className),
14170
- children: [/*#__PURE__*/jsxRuntime_1(Rail, _extends({}, railProps, !isHostComponent(Rail) && {
14171
- ownerState: _extends({}, ownerState, railProps.ownerState)
14172
- }, {
14327
+ children: [/*#__PURE__*/jsxRuntime_1(Rail, _extends({}, railProps, {
14173
14328
  className: clsx(classes.rail, railProps.className)
14174
- })), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps, !isHostComponent(Track) && {
14175
- ownerState: _extends({}, ownerState, trackProps.ownerState)
14176
- }, {
14329
+ })), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps, {
14177
14330
  className: clsx(classes.track, trackProps.className),
14178
14331
  style: _extends({}, trackStyle, trackProps.style)
14179
14332
  })), marks.map((mark, index) => {
@@ -14191,7 +14344,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14191
14344
  children: [/*#__PURE__*/jsxRuntime_1(Mark, _extends({
14192
14345
  "data-index": index
14193
14346
  }, markProps, !isHostComponent(Mark) && {
14194
- ownerState: _extends({}, ownerState, markProps.ownerState),
14195
14347
  markActive
14196
14348
  }, {
14197
14349
  style: _extends({}, style, markProps.style),
@@ -14200,9 +14352,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14200
14352
  "aria-hidden": true,
14201
14353
  "data-index": index
14202
14354
  }, markLabelProps, !isHostComponent(MarkLabel) && {
14203
- ownerState: _extends({}, ownerState, markLabelProps.ownerState)
14355
+ markLabelActive: markActive
14204
14356
  }, {
14205
- markLabelActive: markActive,
14206
14357
  style: _extends({}, style, markLabelProps.style),
14207
14358
  className: clsx(classes.markLabel, markLabelProps.className, markActive && classes.markLabelActive),
14208
14359
  children: mark.label
@@ -14213,23 +14364,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14213
14364
  const style = axisProps[axis].offset(percent);
14214
14365
  const ValueLabelComponent = valueLabelDisplay === 'off' ? Forward : ValueLabel;
14215
14366
  return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
14216
- children: /*#__PURE__*/jsxRuntime_1(ValueLabelComponent, _extends({
14217
- valueLabelFormat: valueLabelFormat,
14218
- valueLabelDisplay: valueLabelDisplay,
14367
+ children: /*#__PURE__*/jsxRuntime_1(ValueLabelComponent, _extends({}, !isHostComponent(ValueLabelComponent) && {
14368
+ valueLabelFormat,
14369
+ valueLabelDisplay,
14219
14370
  value: typeof valueLabelFormat === 'function' ? valueLabelFormat(scale(value), index) : valueLabelFormat,
14220
- index: index,
14371
+ index,
14221
14372
  open: open === index || active === index || valueLabelDisplay === 'on',
14222
- disabled: disabled
14373
+ disabled
14223
14374
  }, valueLabelProps, {
14224
- className: clsx(classes.valueLabel, valueLabelProps.className)
14225
- }, !isHostComponent(ValueLabel) && {
14226
- ownerState: _extends({}, ownerState, valueLabelProps.ownerState)
14227
- }, {
14375
+ className: clsx(classes.valueLabel, valueLabelProps.className),
14228
14376
  children: /*#__PURE__*/jsxRuntime_1(Thumb, _extends({
14229
- "data-index": index,
14230
- onMouseOver: handleMouseOver,
14231
- onMouseLeave: handleMouseLeave
14232
- }, thumbProps, {
14377
+ "data-index": index
14378
+ }, thumbProps, getThumbProps(), {
14233
14379
  className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusVisible === index && classes.focusVisible)
14234
14380
  }, !isHostComponent(Thumb) && {
14235
14381
  ownerState: _extends({}, ownerState, thumbProps.ownerState)
@@ -14237,35 +14383,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14237
14383
  style: _extends({}, style, {
14238
14384
  pointerEvents: disableSwap && active !== index ? 'none' : undefined
14239
14385
  }, thumbProps.style),
14240
- children: /*#__PURE__*/jsxRuntime_1(Input, _extends({
14241
- tabIndex: tabIndex,
14386
+ children: /*#__PURE__*/jsxRuntime_1(Input, _extends({}, hiddenInputProps, {
14242
14387
  "data-index": index,
14243
14388
  "aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
14244
- "aria-labelledby": ariaLabelledby,
14245
- "aria-orientation": orientation,
14246
- "aria-valuemax": scale(max),
14247
- "aria-valuemin": scale(min),
14248
14389
  "aria-valuenow": scale(value),
14249
14390
  "aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
14250
- onFocus: handleFocus,
14251
- onBlur: handleBlur,
14252
- name: name,
14253
- type: "range",
14254
- min: props.min,
14255
- max: props.max,
14256
- step: props.step,
14257
- disabled: disabled,
14258
- value: values[index],
14259
- onChange: handleHiddenInputChange,
14260
- style: _extends({}, visuallyHidden$1, {
14261
- direction: isRtl ? 'rtl' : 'ltr',
14262
- // So that VoiceOver's focus indicator matches the thumb's dimensions
14263
- width: '100%',
14264
- height: '100%'
14265
- }, inputProps.style)
14391
+ value: values[index]
14266
14392
  }, !isHostComponent(Input) && {
14267
14393
  ownerState: _extends({}, ownerState, inputProps.ownerState)
14268
- }, inputProps))
14394
+ }, inputProps, {
14395
+ style: _extends({}, hiddenInputProps.style, inputProps.style)
14396
+ }))
14269
14397
  }))
14270
14398
  }))
14271
14399
  }, index);
@@ -22322,7 +22450,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
22322
22450
  }
22323
22451
  });
22324
22452
  const Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
22325
- var _componentsProps$clea;
22453
+ var _componentsProps$clea, _componentsProps$pape;
22326
22454
 
22327
22455
  const props = useThemeProps({
22328
22456
  props: inProps,
@@ -22543,10 +22671,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
22543
22671
  role: "presentation",
22544
22672
  anchorEl: anchorEl,
22545
22673
  open: true,
22546
- children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, {
22547
- as: PaperComponent,
22548
- className: classes.paper,
22674
+ children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, _extends({
22549
22675
  ownerState: ownerState,
22676
+ as: PaperComponent
22677
+ }, componentsProps.paper, {
22678
+ className: clsx(classes.paper, (_componentsProps$pape = componentsProps.paper) == null ? void 0 : _componentsProps$pape.className),
22550
22679
  children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/jsxRuntime_1(AutocompleteLoading, {
22551
22680
  className: classes.loading,
22552
22681
  ownerState: ownerState,
@@ -22577,7 +22706,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
22577
22706
  return renderListOption(option, index);
22578
22707
  })
22579
22708
  })) : null]
22580
- })
22709
+ }))
22581
22710
  }) : null]
22582
22711
  });
22583
22712
  });
@@ -22679,7 +22808,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
22679
22808
  * @default {}
22680
22809
  */
22681
22810
  componentsProps: propTypes.shape({
22682
- clearIndicator: propTypes.object
22811
+ clearIndicator: propTypes.object,
22812
+ paper: propTypes.object
22683
22813
  }),
22684
22814
 
22685
22815
  /**
@@ -23860,6 +23990,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
23860
23990
  } ;
23861
23991
  var Backdrop$1 = Backdrop;
23862
23992
 
23993
+ const shouldSpreadAdditionalProps = Slot => {
23994
+ return !Slot || !isHostComponent(Slot);
23995
+ };
23996
+
23997
+ var shouldSpreadAdditionalProps$1 = shouldSpreadAdditionalProps;
23998
+
23863
23999
  const _excluded$1K = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
23864
24000
  const badgeClasses = _extends({}, badgeUnstyledClasses$1, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
23865
24001
  'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
@@ -24002,11 +24138,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
24002
24138
  duration: theme.transitions.duration.leavingScreen
24003
24139
  })
24004
24140
  }));
24005
-
24006
- const shouldSpreadAdditionalProps = Slot => {
24007
- return !Slot || !isHostComponent(Slot);
24008
- };
24009
-
24010
24141
  const Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
24011
24142
  var _componentsProps$root, _componentsProps$badg;
24012
24143
 
@@ -24069,14 +24200,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
24069
24200
  Badge: BadgeBadge
24070
24201
  }, components),
24071
24202
  componentsProps: {
24072
- root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
24203
+ root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
24073
24204
  as: component,
24074
24205
  ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
24075
24206
  color,
24076
24207
  overlap
24077
24208
  })
24078
24209
  }),
24079
- badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
24210
+ badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps$1(components.Badge) && {
24080
24211
  ownerState: _extends({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
24081
24212
  color,
24082
24213
  overlap
@@ -40967,7 +41098,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
40967
41098
  const selectClasses = generateUtilityClasses('MuiSelect', ['select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput']);
40968
41099
  var selectClasses$1 = selectClasses;
40969
41100
 
40970
- const _excluded$E = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
41101
+ const _excluded$E = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
40971
41102
  const SelectSelect = styled$1('div', {
40972
41103
  name: 'MuiSelect',
40973
41104
  slot: 'Select',
@@ -41062,6 +41193,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41062
41193
  autoWidth,
41063
41194
  children,
41064
41195
  className,
41196
+ defaultOpen,
41065
41197
  defaultValue,
41066
41198
  disabled,
41067
41199
  displayEmpty,
@@ -41091,6 +41223,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41091
41223
  default: defaultValue,
41092
41224
  name: 'Select'
41093
41225
  });
41226
+ const [openState, setOpenState] = useControlled({
41227
+ controlled: openProp,
41228
+ default: defaultOpen,
41229
+ name: 'Select'
41230
+ });
41094
41231
  const inputRef = React__namespace.useRef(null);
41095
41232
  const displayRef = React__namespace.useRef(null);
41096
41233
  const [displayNode, setDisplayNode] = React__namespace.useState(null);
@@ -41098,7 +41235,6 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41098
41235
  current: isOpenControlled
41099
41236
  } = React__namespace.useRef(openProp != null);
41100
41237
  const [menuMinWidthState, setMenuMinWidthState] = React__namespace.useState();
41101
- const [openState, setOpenState] = React__namespace.useState(false);
41102
41238
  const handleRef = useForkRef(ref, inputRefProp);
41103
41239
  const handleDisplayRef = React__namespace.useCallback(node => {
41104
41240
  displayRef.current = node;
@@ -41113,7 +41249,17 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41113
41249
  },
41114
41250
  node: inputRef.current,
41115
41251
  value
41116
- }), [value]);
41252
+ }), [value]); // Resize menu on `defaultOpen` automatic toggle.
41253
+
41254
+ React__namespace.useEffect(() => {
41255
+ if (defaultOpen && openState && displayNode && !isOpenControlled) {
41256
+ setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
41257
+ displayRef.current.focus();
41258
+ } // eslint-disable-next-line react-hooks/exhaustive-deps
41259
+
41260
+ }, [displayNode, autoWidth]); // `isOpenControlled` is ignored because the component should never switch between controlled and uncontrolled modes.
41261
+ // `defaultOpen` and `openState` are ignored to avoid unnecessary callbacks.
41262
+
41117
41263
  React__namespace.useEffect(() => {
41118
41264
  if (autoFocus) {
41119
41265
  displayRef.current.focus();
@@ -41249,7 +41395,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41249
41395
  }
41250
41396
  };
41251
41397
 
41252
- const open = displayNode !== null && (isOpenControlled ? openProp : openState);
41398
+ const open = displayNode !== null && openState;
41253
41399
 
41254
41400
  const handleBlur = event => {
41255
41401
  // if open event.stopImmediatePropagation
@@ -41508,6 +41654,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41508
41654
  */
41509
41655
  className: propTypes.string,
41510
41656
 
41657
+ /**
41658
+ * If `true`, the component is toggled on mount. Use when the component open state is not controlled.
41659
+ * You can only use it when the `native` prop is `false` (default).
41660
+ */
41661
+ defaultOpen: propTypes.bool,
41662
+
41511
41663
  /**
41512
41664
  * The default value. Use when the component is not controlled.
41513
41665
  */
@@ -41637,7 +41789,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41637
41789
 
41638
41790
  var _Input, _FilledInput;
41639
41791
 
41640
- const _excluded$D = ["autoWidth", "children", "classes", "className", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
41792
+ const _excluded$D = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
41641
41793
 
41642
41794
  const useUtilityClasses$v = ownerState => {
41643
41795
  const {
@@ -41657,6 +41809,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41657
41809
  children,
41658
41810
  classes: classesProp = {},
41659
41811
  className,
41812
+ defaultOpen = false,
41660
41813
  displayEmpty = false,
41661
41814
  IconComponent = ArrowDropDownIcon,
41662
41815
  id,
@@ -41713,6 +41866,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41713
41866
  id
41714
41867
  } : {
41715
41868
  autoWidth,
41869
+ defaultOpen,
41716
41870
  displayEmpty,
41717
41871
  labelId,
41718
41872
  MenuProps,
@@ -41767,6 +41921,13 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41767
41921
  */
41768
41922
  className: propTypes.string,
41769
41923
 
41924
+ /**
41925
+ * If `true`, the component is initially open. Use when the component open state is not controlled (i.e. the `open` prop is not defined).
41926
+ * You can only use it when the `native` prop is `false` (default).
41927
+ * @default false
41928
+ */
41929
+ defaultOpen: propTypes.bool,
41930
+
41770
41931
  /**
41771
41932
  * The default value. Use when the component is not controlled.
41772
41933
  */
@@ -42131,7 +42292,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42131
42292
  } ;
42132
42293
  var Skeleton$1 = Skeleton;
42133
42294
 
42134
- const _excluded$B = ["components", "componentsProps", "color", "size"];
42295
+ const _excluded$B = ["component", "components", "componentsProps", "color", "size"];
42135
42296
  const sliderClasses = _extends({}, sliderUnstyledClasses$1, generateUtilityClasses('MuiSlider', ['colorPrimary', 'colorSecondary', 'thumbColorPrimary', 'thumbColorSecondary', 'sizeSmall', 'thumbSizeSmall']));
42136
42297
  const SliderRoot = styled$1('span', {
42137
42298
  name: 'MuiSlider',
@@ -42199,6 +42360,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42199
42360
  }
42200
42361
  }
42201
42362
  }));
42363
+ SliderRoot.propTypes
42364
+ /* remove-proptypes */
42365
+ = {
42366
+ // ----------------------------- Warning --------------------------------
42367
+ // | These PropTypes are generated from the TypeScript type definitions |
42368
+ // | To update them edit the d.ts file and run "yarn proptypes" |
42369
+ // ----------------------------------------------------------------------
42370
+
42371
+ /**
42372
+ * @ignore
42373
+ */
42374
+ children: propTypes.node
42375
+ } ;
42202
42376
  const SliderRail = styled$1('span', {
42203
42377
  name: 'MuiSlider',
42204
42378
  slot: 'Rail',
@@ -42224,6 +42398,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42224
42398
  }, ownerState.track === 'inverted' && {
42225
42399
  opacity: 1
42226
42400
  }));
42401
+ SliderRail.propTypes
42402
+ /* remove-proptypes */
42403
+ = {
42404
+ // ----------------------------- Warning --------------------------------
42405
+ // | These PropTypes are generated from the TypeScript type definitions |
42406
+ // | To update them edit the d.ts file and run "yarn proptypes" |
42407
+ // ----------------------------------------------------------------------
42408
+
42409
+ /**
42410
+ * @ignore
42411
+ */
42412
+ children: propTypes.node
42413
+ } ;
42227
42414
  const SliderTrack = styled$1('span', {
42228
42415
  name: 'MuiSlider',
42229
42416
  slot: 'Track',
@@ -42260,6 +42447,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42260
42447
  borderColor: color
42261
42448
  });
42262
42449
  });
42450
+ SliderTrack.propTypes
42451
+ /* remove-proptypes */
42452
+ = {
42453
+ // ----------------------------- Warning --------------------------------
42454
+ // | These PropTypes are generated from the TypeScript type definitions |
42455
+ // | To update them edit the d.ts file and run "yarn proptypes" |
42456
+ // ----------------------------------------------------------------------
42457
+
42458
+ /**
42459
+ * @ignore
42460
+ */
42461
+ children: propTypes.node
42462
+ } ;
42263
42463
  const SliderThumb = styled$1('span', {
42264
42464
  name: 'MuiSlider',
42265
42465
  slot: 'Thumb',
@@ -42332,6 +42532,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42332
42532
  }
42333
42533
  }
42334
42534
  }));
42535
+ SliderThumb.propTypes
42536
+ /* remove-proptypes */
42537
+ = {
42538
+ // ----------------------------- Warning --------------------------------
42539
+ // | These PropTypes are generated from the TypeScript type definitions |
42540
+ // | To update them edit the d.ts file and run "yarn proptypes" |
42541
+ // ----------------------------------------------------------------------
42542
+
42543
+ /**
42544
+ * @ignore
42545
+ */
42546
+ children: propTypes.node
42547
+ } ;
42335
42548
  const SliderValueLabel = styled$1(SliderValueLabelUnstyled, {
42336
42549
  name: 'MuiSlider',
42337
42550
  slot: 'ValueLabel',
@@ -42376,6 +42589,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42376
42589
  backgroundColor: 'inherit'
42377
42590
  }
42378
42591
  }));
42592
+ SliderValueLabel.propTypes
42593
+ /* remove-proptypes */
42594
+ = {
42595
+ // ----------------------------- Warning --------------------------------
42596
+ // | These PropTypes are generated from the TypeScript type definitions |
42597
+ // | To update them edit the d.ts file and run "yarn proptypes" |
42598
+ // ----------------------------------------------------------------------
42599
+
42600
+ /**
42601
+ * @ignore
42602
+ */
42603
+ children: propTypes.node
42604
+ } ;
42379
42605
  const SliderMark = styled$1('span', {
42380
42606
  name: 'MuiSlider',
42381
42607
  slot: 'Mark',
@@ -42401,6 +42627,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42401
42627
  backgroundColor: theme.palette.background.paper,
42402
42628
  opacity: 0.8
42403
42629
  }));
42630
+ SliderMark.propTypes
42631
+ /* remove-proptypes */
42632
+ = {
42633
+ // ----------------------------- Warning --------------------------------
42634
+ // | These PropTypes are generated from the TypeScript type definitions |
42635
+ // | To update them edit the d.ts file and run "yarn proptypes" |
42636
+ // ----------------------------------------------------------------------
42637
+
42638
+ /**
42639
+ * @ignore
42640
+ */
42641
+ children: propTypes.node
42642
+ } ;
42404
42643
  const SliderMarkLabel = styled$1('span', {
42405
42644
  name: 'MuiSlider',
42406
42645
  slot: 'MarkLabel',
@@ -42429,7 +42668,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42429
42668
  }, markLabelActive && {
42430
42669
  color: theme.palette.text.primary
42431
42670
  }));
42432
- SliderRoot.propTypes = {
42671
+ SliderMarkLabel.propTypes
42672
+ /* remove-proptypes */
42673
+ = {
42433
42674
  // ----------------------------- Warning --------------------------------
42434
42675
  // | These PropTypes are generated from the TypeScript type definitions |
42435
42676
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -42438,40 +42679,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42438
42679
  /**
42439
42680
  * @ignore
42440
42681
  */
42441
- children: propTypes.node,
42442
-
42443
- /**
42444
- * @ignore
42445
- */
42446
- ownerState: propTypes.shape({
42447
- 'aria-label': propTypes.string,
42448
- 'aria-labelledby': propTypes.string,
42449
- 'aria-valuetext': propTypes.string,
42450
- classes: propTypes.object,
42451
- color: propTypes.oneOf(['primary', 'secondary']),
42452
- defaultValue: propTypes.oneOfType([propTypes.arrayOf(propTypes.number), propTypes.number]),
42453
- disabled: propTypes.bool,
42454
- getAriaLabel: propTypes.func,
42455
- getAriaValueText: propTypes.func,
42456
- isRtl: propTypes.bool,
42457
- marks: propTypes.oneOfType([propTypes.arrayOf(propTypes.shape({
42458
- label: propTypes.node,
42459
- value: propTypes.number.isRequired
42460
- })), propTypes.bool]),
42461
- max: propTypes.number,
42462
- min: propTypes.number,
42463
- name: propTypes.string,
42464
- onChange: propTypes.func,
42465
- onChangeCommitted: propTypes.func,
42466
- orientation: propTypes.oneOf(['horizontal', 'vertical']),
42467
- scale: propTypes.func,
42468
- step: propTypes.number,
42469
- track: propTypes.oneOf(['inverted', 'normal', false]),
42470
- value: propTypes.oneOfType([propTypes.arrayOf(propTypes.number), propTypes.number]),
42471
- valueLabelDisplay: propTypes.oneOf(['auto', 'off', 'on']),
42472
- valueLabelFormat: propTypes.oneOfType([propTypes.func, propTypes.string])
42473
- })
42474
- };
42682
+ children: propTypes.node
42683
+ } ;
42475
42684
 
42476
42685
  const extendUtilityClasses = ownerState => {
42477
42686
  const {
@@ -42485,21 +42694,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42485
42694
  });
42486
42695
  };
42487
42696
 
42488
- const shouldSpreadOwnerState = Component => {
42489
- return !Component || !isHostComponent(Component);
42490
- };
42491
-
42492
- const Slider = /*#__PURE__*/React__namespace.forwardRef(function Slider(sliderProps, ref) {
42697
+ const Slider = /*#__PURE__*/React__namespace.forwardRef(function Slider(inputProps, ref) {
42493
42698
  var _componentsProps$root, _componentsProps$thum, _componentsProps$trac, _componentsProps$valu;
42494
42699
 
42495
42700
  const props = useThemeProps({
42496
- props: sliderProps,
42701
+ props: inputProps,
42497
42702
  name: 'MuiSlider'
42498
42703
  });
42499
42704
  const theme = useTheme();
42500
42705
  const isRtl = theme.direction === 'rtl';
42501
42706
 
42502
42707
  const {
42708
+ // eslint-disable-next-line react/prop-types
42709
+ component = 'span',
42503
42710
  components = {},
42504
42711
  componentsProps = {},
42505
42712
  color = 'primary',
@@ -42525,25 +42732,26 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42525
42732
  MarkLabel: SliderMarkLabel
42526
42733
  }, components),
42527
42734
  componentsProps: _extends({}, componentsProps, {
42528
- root: _extends({}, componentsProps.root, shouldSpreadOwnerState(components.Root) && {
42735
+ root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
42736
+ as: component,
42529
42737
  ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
42530
42738
  color,
42531
42739
  size
42532
42740
  })
42533
42741
  }),
42534
- thumb: _extends({}, componentsProps.thumb, shouldSpreadOwnerState(components.Thumb) && {
42742
+ thumb: _extends({}, componentsProps.thumb, shouldSpreadAdditionalProps$1(components.Thumb) && {
42535
42743
  ownerState: _extends({}, (_componentsProps$thum = componentsProps.thumb) == null ? void 0 : _componentsProps$thum.ownerState, {
42536
42744
  color,
42537
42745
  size
42538
42746
  })
42539
42747
  }),
42540
- track: _extends({}, componentsProps.track, shouldSpreadOwnerState(components.Track) && {
42748
+ track: _extends({}, componentsProps.track, shouldSpreadAdditionalProps$1(components.Track) && {
42541
42749
  ownerState: _extends({}, (_componentsProps$trac = componentsProps.track) == null ? void 0 : _componentsProps$trac.ownerState, {
42542
42750
  color,
42543
42751
  size
42544
42752
  })
42545
42753
  }),
42546
- valueLabel: _extends({}, componentsProps.valueLabel, shouldSpreadOwnerState(components.ValueLabel) && {
42754
+ valueLabel: _extends({}, componentsProps.valueLabel, shouldSpreadAdditionalProps$1(components.ValueLabel) && {
42547
42755
  ownerState: _extends({}, (_componentsProps$valu = componentsProps.valueLabel) == null ? void 0 : _componentsProps$valu.ownerState, {
42548
42756
  color,
42549
42757
  size
@@ -52291,6 +52499,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
52291
52499
  exports.usePagination = usePagination;
52292
52500
  exports.useRadioGroup = useRadioGroup;
52293
52501
  exports.useScrollTrigger = useScrollTrigger;
52502
+ exports.useSlider = useSlider;
52294
52503
  exports.useSwitch = useSwitch;
52295
52504
  exports.useTab = useTab$1;
52296
52505
  exports.useTabContext = useTabContext;