@mui/material 9.0.0-alpha.3 → 9.0.0-alpha.4

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 (302) hide show
  1. package/Accordion/Accordion.d.mts +0 -14
  2. package/Accordion/Accordion.d.ts +0 -14
  3. package/Accordion/Accordion.js +3 -25
  4. package/Accordion/Accordion.mjs +3 -25
  5. package/AccordionSummary/AccordionSummary.js +1 -1
  6. package/AccordionSummary/AccordionSummary.mjs +1 -1
  7. package/AccordionSummary/accordionSummaryClasses.d.mts +0 -5
  8. package/AccordionSummary/accordionSummaryClasses.d.ts +0 -5
  9. package/AccordionSummary/accordionSummaryClasses.js +1 -1
  10. package/AccordionSummary/accordionSummaryClasses.mjs +1 -1
  11. package/Alert/Alert.d.mts +0 -23
  12. package/Alert/Alert.d.ts +0 -23
  13. package/Alert/Alert.js +4 -36
  14. package/Alert/Alert.mjs +4 -36
  15. package/Alert/alertClasses.d.mts +0 -72
  16. package/Alert/alertClasses.d.ts +0 -72
  17. package/Alert/alertClasses.js +1 -1
  18. package/Alert/alertClasses.mjs +1 -1
  19. package/Autocomplete/Autocomplete.d.mts +10 -60
  20. package/Autocomplete/Autocomplete.d.ts +10 -60
  21. package/Autocomplete/Autocomplete.js +33 -99
  22. package/Autocomplete/Autocomplete.mjs +33 -99
  23. package/Avatar/Avatar.d.mts +0 -8
  24. package/Avatar/Avatar.d.ts +0 -8
  25. package/Avatar/Avatar.js +13 -35
  26. package/Avatar/Avatar.mjs +13 -35
  27. package/AvatarGroup/AvatarGroup.d.mts +0 -15
  28. package/AvatarGroup/AvatarGroup.d.ts +0 -15
  29. package/AvatarGroup/AvatarGroup.js +1 -18
  30. package/AvatarGroup/AvatarGroup.mjs +1 -18
  31. package/Backdrop/Backdrop.d.mts +1 -31
  32. package/Backdrop/Backdrop.d.ts +1 -31
  33. package/Backdrop/Backdrop.js +2 -42
  34. package/Backdrop/Backdrop.mjs +2 -42
  35. package/Badge/Badge.d.mts +0 -20
  36. package/Badge/Badge.d.ts +0 -20
  37. package/Badge/Badge.js +2 -35
  38. package/Badge/Badge.mjs +2 -35
  39. package/Button/Button.js +6 -6
  40. package/Button/Button.mjs +6 -6
  41. package/Button/buttonClasses.d.mts +0 -132
  42. package/Button/buttonClasses.d.ts +0 -132
  43. package/Button/buttonClasses.js +1 -1
  44. package/Button/buttonClasses.mjs +1 -1
  45. package/ButtonBase/ButtonBase.js +16 -2
  46. package/ButtonBase/ButtonBase.mjs +16 -2
  47. package/CHANGELOG.md +154 -0
  48. package/CircularProgress/CircularProgress.js +2 -2
  49. package/CircularProgress/CircularProgress.mjs +2 -2
  50. package/CircularProgress/circularProgressClasses.d.mts +0 -8
  51. package/CircularProgress/circularProgressClasses.d.ts +0 -8
  52. package/CircularProgress/circularProgressClasses.js +1 -1
  53. package/CircularProgress/circularProgressClasses.mjs +1 -1
  54. package/Divider/Divider.d.mts +0 -6
  55. package/Divider/Divider.d.ts +0 -6
  56. package/Divider/Divider.js +2 -18
  57. package/Divider/Divider.mjs +2 -18
  58. package/Divider/dividerClasses.d.mts +0 -4
  59. package/Divider/dividerClasses.d.ts +0 -4
  60. package/Divider/dividerClasses.js +1 -1
  61. package/Divider/dividerClasses.mjs +1 -1
  62. package/FormControlLabel/FormControlLabel.d.mts +1 -14
  63. package/FormControlLabel/FormControlLabel.d.ts +1 -14
  64. package/FormControlLabel/FormControlLabel.js +1 -13
  65. package/FormControlLabel/FormControlLabel.mjs +1 -13
  66. package/Input/Input.js +2 -1
  67. package/Input/Input.mjs +2 -1
  68. package/Menu/Menu.d.mts +0 -13
  69. package/Menu/Menu.d.ts +0 -13
  70. package/Menu/Menu.js +5 -44
  71. package/Menu/Menu.mjs +5 -44
  72. package/MenuItem/MenuItem.js +21 -1
  73. package/MenuItem/MenuItem.mjs +23 -1
  74. package/MenuList/MenuList.js +2 -4
  75. package/MenuList/MenuList.mjs +2 -4
  76. package/MobileStepper/MobileStepper.d.mts +0 -5
  77. package/MobileStepper/MobileStepper.d.ts +0 -5
  78. package/MobileStepper/MobileStepper.js +1 -10
  79. package/MobileStepper/MobileStepper.mjs +1 -10
  80. package/Popover/Popover.d.mts +4 -48
  81. package/Popover/Popover.d.ts +4 -48
  82. package/Popover/Popover.js +4 -64
  83. package/Popover/Popover.mjs +4 -64
  84. package/Popper/Popper.d.mts +0 -17
  85. package/Popper/Popper.d.ts +0 -17
  86. package/Popper/Popper.js +2 -26
  87. package/Popper/Popper.mjs +2 -26
  88. package/Popper/index.d.mts +1 -0
  89. package/Popper/index.d.ts +1 -0
  90. package/Popper/index.js +11 -2
  91. package/Popper/index.mjs +1 -0
  92. package/Select/SelectInput.js +50 -55
  93. package/Select/SelectInput.mjs +47 -52
  94. package/Select/index.d.mts +1 -0
  95. package/Select/index.d.ts +1 -0
  96. package/Select/index.js +12 -0
  97. package/Select/index.mjs +1 -0
  98. package/Select/utils/SelectFocusSourceContext.d.mts +4 -0
  99. package/Select/utils/SelectFocusSourceContext.d.ts +4 -0
  100. package/Select/utils/SelectFocusSourceContext.js +19 -0
  101. package/Select/utils/SelectFocusSourceContext.mjs +13 -0
  102. package/Select/utils/areEqualValues.d.mts +1 -0
  103. package/Select/utils/areEqualValues.d.ts +1 -0
  104. package/Select/utils/areEqualValues.js +14 -0
  105. package/Select/utils/areEqualValues.mjs +8 -0
  106. package/Select/utils/getOpenInteractionType.d.mts +1 -0
  107. package/Select/utils/getOpenInteractionType.d.ts +1 -0
  108. package/Select/utils/getOpenInteractionType.js +18 -0
  109. package/Select/utils/getOpenInteractionType.mjs +12 -0
  110. package/Select/utils/index.d.mts +4 -0
  111. package/Select/utils/index.d.ts +4 -0
  112. package/Select/utils/index.js +40 -0
  113. package/Select/utils/index.mjs +4 -0
  114. package/Select/utils/isEmpty.d.mts +1 -0
  115. package/Select/utils/isEmpty.d.ts +1 -0
  116. package/Select/utils/isEmpty.js +9 -0
  117. package/Select/utils/isEmpty.mjs +3 -0
  118. package/Slider/Slider.d.mts +109 -77
  119. package/Slider/Slider.d.ts +109 -77
  120. package/Slider/Slider.js +42 -119
  121. package/Slider/Slider.mjs +42 -119
  122. package/Slider/sliderClasses.d.mts +7 -7
  123. package/Slider/sliderClasses.d.ts +7 -7
  124. package/Slider/useSlider.js +50 -14
  125. package/Slider/useSlider.mjs +50 -14
  126. package/Snackbar/Snackbar.d.mts +1 -27
  127. package/Snackbar/Snackbar.d.ts +1 -27
  128. package/Snackbar/Snackbar.js +5 -58
  129. package/Snackbar/Snackbar.mjs +5 -58
  130. package/SpeedDial/SpeedDial.d.mts +0 -13
  131. package/SpeedDial/SpeedDial.d.ts +0 -13
  132. package/SpeedDial/SpeedDial.js +15 -40
  133. package/SpeedDial/SpeedDial.mjs +15 -40
  134. package/SpeedDialAction/SpeedDialAction.d.mts +0 -28
  135. package/SpeedDialAction/SpeedDialAction.d.ts +0 -28
  136. package/SpeedDialAction/SpeedDialAction.js +5 -46
  137. package/SpeedDialAction/SpeedDialAction.mjs +5 -46
  138. package/TablePagination/TablePagination.d.mts +1 -1
  139. package/TablePagination/TablePagination.d.ts +1 -1
  140. package/TablePagination/TablePagination.js +4 -2
  141. package/TablePagination/TablePagination.mjs +4 -2
  142. package/Tabs/Tabs.d.mts +2 -33
  143. package/Tabs/Tabs.d.ts +2 -33
  144. package/Tabs/Tabs.js +8 -38
  145. package/Tabs/Tabs.mjs +8 -38
  146. package/TextField/TextField.d.mts +6 -49
  147. package/TextField/TextField.d.ts +6 -49
  148. package/TextField/TextField.js +18 -53
  149. package/TextField/TextField.mjs +18 -53
  150. package/Tooltip/Tooltip.d.mts +1 -55
  151. package/Tooltip/Tooltip.d.ts +1 -55
  152. package/Tooltip/Tooltip.js +9 -87
  153. package/Tooltip/Tooltip.mjs +9 -87
  154. package/Typography/Typography.d.mts +0 -6
  155. package/Typography/Typography.d.ts +0 -6
  156. package/Typography/Typography.js +3 -19
  157. package/Typography/Typography.mjs +3 -19
  158. package/Typography/typographyClasses.d.mts +0 -5
  159. package/Typography/typographyClasses.d.ts +0 -5
  160. package/Typography/typographyClasses.js +1 -1
  161. package/Typography/typographyClasses.mjs +1 -1
  162. package/index.d.mts +0 -2
  163. package/index.d.ts +0 -2
  164. package/index.js +1 -9
  165. package/index.mjs +1 -2
  166. package/locale/amET.js +4 -1
  167. package/locale/amET.mjs +3 -1
  168. package/locale/arEG.js +4 -1
  169. package/locale/arEG.mjs +3 -1
  170. package/locale/arSA.js +4 -1
  171. package/locale/arSA.mjs +3 -1
  172. package/locale/arSD.js +4 -1
  173. package/locale/arSD.mjs +3 -1
  174. package/locale/beBY.js +4 -1
  175. package/locale/beBY.mjs +3 -1
  176. package/locale/bnBD.js +4 -1
  177. package/locale/bnBD.mjs +3 -1
  178. package/locale/caES.js +4 -1
  179. package/locale/caES.mjs +3 -1
  180. package/locale/csCZ.js +4 -1
  181. package/locale/csCZ.mjs +3 -1
  182. package/locale/daDK.js +4 -1
  183. package/locale/daDK.mjs +3 -1
  184. package/locale/deDE.js +4 -1
  185. package/locale/deDE.mjs +3 -1
  186. package/locale/elGR.js +4 -1
  187. package/locale/elGR.mjs +3 -1
  188. package/locale/esES.js +4 -1
  189. package/locale/esES.mjs +3 -1
  190. package/locale/etEE.js +4 -1
  191. package/locale/etEE.mjs +3 -1
  192. package/locale/faIR.js +4 -1
  193. package/locale/faIR.mjs +3 -1
  194. package/locale/fiFI.js +4 -1
  195. package/locale/fiFI.mjs +3 -1
  196. package/locale/frFR.js +4 -1
  197. package/locale/frFR.mjs +3 -1
  198. package/locale/heIL.js +4 -1
  199. package/locale/heIL.mjs +3 -1
  200. package/locale/hiIN.js +4 -1
  201. package/locale/hiIN.mjs +3 -1
  202. package/locale/hrHR.js +5 -1
  203. package/locale/hrHR.mjs +4 -1
  204. package/locale/isIS.js +4 -1
  205. package/locale/isIS.mjs +3 -1
  206. package/locale/itIT.js +4 -1
  207. package/locale/itIT.mjs +3 -1
  208. package/locale/jaJP.js +4 -1
  209. package/locale/jaJP.mjs +3 -1
  210. package/locale/khKH.js +4 -1
  211. package/locale/khKH.mjs +3 -1
  212. package/locale/kkKZ.js +4 -1
  213. package/locale/kkKZ.mjs +3 -1
  214. package/locale/koKR.js +4 -1
  215. package/locale/koKR.mjs +3 -1
  216. package/locale/kuCKB.js +4 -1
  217. package/locale/kuCKB.mjs +3 -1
  218. package/locale/kuLatn.js +4 -1
  219. package/locale/kuLatn.mjs +3 -1
  220. package/locale/mkMK.js +5 -1
  221. package/locale/mkMK.mjs +4 -1
  222. package/locale/msMS.js +5 -1
  223. package/locale/msMS.mjs +4 -1
  224. package/locale/myMY.js +5 -1
  225. package/locale/myMY.mjs +4 -1
  226. package/locale/nbNO.js +4 -1
  227. package/locale/nbNO.mjs +3 -1
  228. package/locale/neNP.js +5 -1
  229. package/locale/neNP.mjs +4 -1
  230. package/locale/nlNL.js +4 -1
  231. package/locale/nlNL.mjs +3 -1
  232. package/locale/nnNO.js +4 -1
  233. package/locale/nnNO.mjs +3 -1
  234. package/locale/plPL.js +4 -1
  235. package/locale/plPL.mjs +3 -1
  236. package/locale/psAF.js +4 -1
  237. package/locale/psAF.mjs +3 -1
  238. package/locale/ptBR.js +4 -1
  239. package/locale/ptBR.mjs +3 -1
  240. package/locale/ptPT.js +4 -1
  241. package/locale/ptPT.mjs +3 -1
  242. package/locale/roRO.js +4 -1
  243. package/locale/roRO.mjs +3 -1
  244. package/locale/ruRU.js +4 -1
  245. package/locale/ruRU.mjs +3 -1
  246. package/locale/siLK.js +4 -1
  247. package/locale/siLK.mjs +3 -1
  248. package/locale/skSK.js +4 -1
  249. package/locale/skSK.mjs +3 -1
  250. package/locale/srRS.js +5 -1
  251. package/locale/srRS.mjs +4 -1
  252. package/locale/svSE.js +4 -1
  253. package/locale/svSE.mjs +3 -1
  254. package/locale/thTH.js +4 -1
  255. package/locale/thTH.mjs +3 -1
  256. package/locale/tlTL.js +5 -1
  257. package/locale/tlTL.mjs +4 -1
  258. package/locale/trTR.js +4 -1
  259. package/locale/trTR.mjs +3 -1
  260. package/locale/ukUA.js +4 -1
  261. package/locale/ukUA.mjs +3 -1
  262. package/locale/urPK.js +4 -1
  263. package/locale/urPK.mjs +3 -1
  264. package/locale/utils/buildFormatNumber.d.mts +2 -0
  265. package/locale/utils/buildFormatNumber.d.ts +2 -0
  266. package/locale/utils/buildFormatNumber.js +23 -0
  267. package/locale/utils/buildFormatNumber.mjs +17 -0
  268. package/locale/viVN.js +4 -1
  269. package/locale/viVN.mjs +3 -1
  270. package/locale/zhCN.js +4 -1
  271. package/locale/zhCN.mjs +3 -1
  272. package/locale/zhHK.js +4 -1
  273. package/locale/zhHK.mjs +3 -1
  274. package/locale/zhTW.js +4 -1
  275. package/locale/zhTW.mjs +3 -1
  276. package/package.json +6 -20
  277. package/styles/components.d.mts +0 -5
  278. package/styles/components.d.ts +0 -5
  279. package/styles/overrides.d.mts +0 -2
  280. package/styles/overrides.d.ts +0 -2
  281. package/styles/props.d.mts +0 -2
  282. package/styles/props.d.ts +0 -2
  283. package/useAutocomplete/useAutocomplete.d.mts +0 -12
  284. package/useAutocomplete/useAutocomplete.d.ts +0 -12
  285. package/useAutocomplete/useAutocomplete.js +29 -28
  286. package/useAutocomplete/useAutocomplete.mjs +29 -28
  287. package/version/index.js +2 -2
  288. package/version/index.mjs +2 -2
  289. package/GridLegacy/GridLegacy.d.mts +0 -160
  290. package/GridLegacy/GridLegacy.d.ts +0 -160
  291. package/GridLegacy/GridLegacy.js +0 -601
  292. package/GridLegacy/GridLegacy.mjs +0 -588
  293. package/GridLegacy/GridLegacyContext.js +0 -17
  294. package/GridLegacy/GridLegacyContext.mjs +0 -12
  295. package/GridLegacy/gridLegacyClasses.d.mts +0 -48
  296. package/GridLegacy/gridLegacyClasses.d.ts +0 -48
  297. package/GridLegacy/gridLegacyClasses.js +0 -27
  298. package/GridLegacy/gridLegacyClasses.mjs +0 -19
  299. package/GridLegacy/index.d.mts +0 -4
  300. package/GridLegacy/index.d.ts +0 -4
  301. package/GridLegacy/index.js +0 -35
  302. package/GridLegacy/index.mjs +0 -3
package/Slider/Slider.js CHANGED
@@ -13,14 +13,13 @@ var _clsx = _interopRequireDefault(require("clsx"));
13
13
  var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
14
14
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
15
  var _RtlProvider = require("@mui/system/RtlProvider");
16
- var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
17
16
  var _isHostComponent = _interopRequireDefault(require("@mui/utils/isHostComponent"));
18
17
  var _useSlider = require("./useSlider");
19
18
  var _zeroStyled = require("../zero-styled");
20
19
  var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
21
20
  var _DefaultPropsProvider = require("../DefaultPropsProvider");
21
+ var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
22
22
  var _slotShouldForwardProp = _interopRequireDefault(require("../styles/slotShouldForwardProp"));
23
- var _shouldSpreadAdditionalProps = _interopRequireDefault(require("../utils/shouldSpreadAdditionalProps"));
24
23
  var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
25
24
  var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
26
25
  var _SliderValueLabel = _interopRequireDefault(require("./SliderValueLabel"));
@@ -553,9 +552,9 @@ const useUtilityClasses = ownerState => {
553
552
  const Forward = ({
554
553
  children
555
554
  }) => children;
556
- const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
555
+ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inProps, ref) {
557
556
  const props = (0, _DefaultPropsProvider.useDefaultProps)({
558
- props: inputProps,
557
+ props: inProps,
559
558
  name: 'MuiSlider'
560
559
  });
561
560
  const isRtl = (0, _RtlProvider.useRtl)();
@@ -563,10 +562,6 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
563
562
  'aria-label': ariaLabel,
564
563
  'aria-valuetext': ariaValuetext,
565
564
  'aria-labelledby': ariaLabelledby,
566
- // eslint-disable-next-line react/prop-types
567
- component = 'span',
568
- components = {},
569
- componentsProps = {},
570
565
  color = 'primary',
571
566
  classes: classesProp,
572
567
  className,
@@ -585,8 +580,8 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
585
580
  size = 'medium',
586
581
  step = 1,
587
582
  scale = Identity,
588
- slotProps,
589
- slots,
583
+ slotProps = {},
584
+ slots = {},
590
585
  tabIndex,
591
586
  track = 'normal',
592
587
  value: valueProp,
@@ -637,96 +632,67 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
637
632
  ownerState.dragging = dragging;
638
633
  ownerState.focusedThumbIndex = focusedThumbIndex;
639
634
  const classes = useUtilityClasses(ownerState);
640
-
641
- // support both `slots` and `components` for backward compatibility
642
- const RootSlot = slots?.root ?? components.Root ?? SliderRoot;
643
- const RailSlot = slots?.rail ?? components.Rail ?? SliderRail;
644
- const TrackSlot = slots?.track ?? components.Track ?? SliderTrack;
645
- const ThumbSlot = slots?.thumb ?? components.Thumb ?? SliderThumb;
646
- const ValueLabelSlot = slots?.valueLabel ?? components.ValueLabel ?? SliderValueLabel;
647
- const MarkSlot = slots?.mark ?? components.Mark ?? SliderMark;
648
- const MarkLabelSlot = slots?.markLabel ?? components.MarkLabel ?? SliderMarkLabel;
649
- const InputSlot = slots?.input ?? components.Input ?? 'input';
650
- const rootSlotProps = slotProps?.root ?? componentsProps.root;
651
- const railSlotProps = slotProps?.rail ?? componentsProps.rail;
652
- const trackSlotProps = slotProps?.track ?? componentsProps.track;
653
- const thumbSlotProps = slotProps?.thumb ?? componentsProps.thumb;
654
- const valueLabelSlotProps = slotProps?.valueLabel ?? componentsProps.valueLabel;
655
- const markSlotProps = slotProps?.mark ?? componentsProps.mark;
656
- const markLabelSlotProps = slotProps?.markLabel ?? componentsProps.markLabel;
657
- const inputSlotProps = slotProps?.input ?? componentsProps.input;
658
- const rootProps = (0, _useSlotProps.default)({
659
- elementType: RootSlot,
635
+ const externalForwardedProps = {
636
+ slots,
637
+ slotProps
638
+ };
639
+ const [RootSlot, rootProps] = (0, _useSlot.default)('root', {
640
+ elementType: SliderRoot,
660
641
  getSlotProps: getRootProps,
661
- externalSlotProps: rootSlotProps,
662
- externalForwardedProps: other,
663
- additionalProps: {
664
- ...((0, _shouldSpreadAdditionalProps.default)(RootSlot) && {
665
- as: component
666
- })
667
- },
668
- ownerState: {
669
- ...ownerState,
670
- ...rootSlotProps?.ownerState
642
+ externalForwardedProps: {
643
+ ...externalForwardedProps,
644
+ ...other
671
645
  },
646
+ ownerState,
672
647
  className: [classes.root, className]
673
648
  });
674
- const railProps = (0, _useSlotProps.default)({
675
- elementType: RailSlot,
676
- externalSlotProps: railSlotProps,
649
+ const [RailSlot, railProps] = (0, _useSlot.default)('rail', {
650
+ elementType: SliderRail,
651
+ externalForwardedProps,
677
652
  ownerState,
678
653
  className: classes.rail
679
654
  });
680
- const trackProps = (0, _useSlotProps.default)({
681
- elementType: TrackSlot,
682
- externalSlotProps: trackSlotProps,
655
+ const [TrackSlot, trackProps] = (0, _useSlot.default)('track', {
656
+ elementType: SliderTrack,
657
+ externalForwardedProps,
683
658
  additionalProps: {
684
659
  style: {
685
660
  ...axisProps[axis].offset(trackOffset),
686
661
  ...axisProps[axis].leap(trackLeap)
687
662
  }
688
663
  },
689
- ownerState: {
690
- ...ownerState,
691
- ...trackSlotProps?.ownerState
692
- },
664
+ ownerState,
693
665
  className: classes.track
694
666
  });
695
- const thumbProps = (0, _useSlotProps.default)({
696
- elementType: ThumbSlot,
667
+ const [ThumbSlot, thumbProps] = (0, _useSlot.default)('thumb', {
668
+ elementType: SliderThumb,
697
669
  getSlotProps: getThumbProps,
698
- externalSlotProps: thumbSlotProps,
699
- ownerState: {
700
- ...ownerState,
701
- ...thumbSlotProps?.ownerState
702
- },
670
+ externalForwardedProps,
671
+ ownerState,
703
672
  className: classes.thumb
704
673
  });
705
- const valueLabelProps = (0, _useSlotProps.default)({
706
- elementType: ValueLabelSlot,
707
- externalSlotProps: valueLabelSlotProps,
708
- ownerState: {
709
- ...ownerState,
710
- ...valueLabelSlotProps?.ownerState
711
- },
674
+ const [ValueLabelSlot, valueLabelProps] = (0, _useSlot.default)('valueLabel', {
675
+ elementType: SliderValueLabel,
676
+ externalForwardedProps,
677
+ ownerState,
712
678
  className: classes.valueLabel
713
679
  });
714
- const markProps = (0, _useSlotProps.default)({
715
- elementType: MarkSlot,
716
- externalSlotProps: markSlotProps,
680
+ const [MarkSlot, markProps] = (0, _useSlot.default)('mark', {
681
+ elementType: SliderMark,
682
+ externalForwardedProps,
717
683
  ownerState,
718
684
  className: classes.mark
719
685
  });
720
- const markLabelProps = (0, _useSlotProps.default)({
721
- elementType: MarkLabelSlot,
722
- externalSlotProps: markLabelSlotProps,
686
+ const [MarkLabelSlot, markLabelProps] = (0, _useSlot.default)('markLabel', {
687
+ elementType: SliderMarkLabel,
688
+ externalForwardedProps,
723
689
  ownerState,
724
690
  className: classes.markLabel
725
691
  });
726
- const inputSliderProps = (0, _useSlotProps.default)({
727
- elementType: InputSlot,
692
+ const [InputSliderSlot, inputSliderProps] = (0, _useSlot.default)('input', {
693
+ elementType: 'input',
728
694
  getSlotProps: getHiddenInputProps,
729
- externalSlotProps: inputSlotProps,
695
+ externalForwardedProps,
730
696
  ownerState
731
697
  });
732
698
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
@@ -794,7 +760,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
794
760
  ...getThumbStyle(index),
795
761
  ...thumbProps.style
796
762
  },
797
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(InputSlot, {
763
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(InputSliderSlot, {
798
764
  "data-index": index,
799
765
  "aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
800
766
  "aria-valuenow": scale(value),
@@ -856,48 +822,6 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
856
822
  * @default 'primary'
857
823
  */
858
824
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
859
- /**
860
- * The components used for each slot inside.
861
- *
862
- * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
863
- *
864
- * @default {}
865
- */
866
- components: _propTypes.default.shape({
867
- Input: _propTypes.default.elementType,
868
- Mark: _propTypes.default.elementType,
869
- MarkLabel: _propTypes.default.elementType,
870
- Rail: _propTypes.default.elementType,
871
- Root: _propTypes.default.elementType,
872
- Thumb: _propTypes.default.elementType,
873
- Track: _propTypes.default.elementType,
874
- ValueLabel: _propTypes.default.elementType
875
- }),
876
- /**
877
- * The extra props for the slot components.
878
- * You can override the existing props or add new ones.
879
- *
880
- * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
881
- *
882
- * @default {}
883
- */
884
- componentsProps: _propTypes.default.shape({
885
- input: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
886
- mark: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
887
- markLabel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
888
- rail: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
889
- root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
890
- thumb: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
891
- track: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
892
- valueLabel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
893
- children: _propTypes.default.element,
894
- className: _propTypes.default.string,
895
- open: _propTypes.default.bool,
896
- style: _propTypes.default.object,
897
- value: _propTypes.default.node,
898
- valueLabelDisplay: _propTypes.default.oneOf(['auto', 'off', 'on'])
899
- })])
900
- }),
901
825
  /**
902
826
  * The default value. Use when the component is not controlled.
903
827
  */
@@ -995,7 +919,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
995
919
  */
996
920
  size: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['small', 'medium']), _propTypes.default.string]),
997
921
  /**
998
- * The props used for each slot inside the Slider.
922
+ * The props used for each slot inside.
999
923
  * @default {}
1000
924
  */
1001
925
  slotProps: _propTypes.default.shape({
@@ -1016,8 +940,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
1016
940
  })])
1017
941
  }),
1018
942
  /**
1019
- * The components used for each slot inside the Slider.
1020
- * Either a string to use a HTML element or a component.
943
+ * The components used for each slot inside.
1021
944
  * @default {}
1022
945
  */
1023
946
  slots: _propTypes.default.shape({
package/Slider/Slider.mjs CHANGED
@@ -6,14 +6,13 @@ import clsx from 'clsx';
6
6
  import chainPropTypes from '@mui/utils/chainPropTypes';
7
7
  import composeClasses from '@mui/utils/composeClasses';
8
8
  import { useRtl } from '@mui/system/RtlProvider';
9
- import useSlotProps from '@mui/utils/useSlotProps';
10
9
  import isHostComponent from '@mui/utils/isHostComponent';
11
10
  import { useSlider, valueToPercent } from "./useSlider.mjs";
12
11
  import { styled } from "../zero-styled/index.mjs";
13
12
  import memoTheme from "../utils/memoTheme.mjs";
14
13
  import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
14
+ import useSlot from "../utils/useSlot.mjs";
15
15
  import slotShouldForwardProp from "../styles/slotShouldForwardProp.mjs";
16
- import shouldSpreadAdditionalProps from "../utils/shouldSpreadAdditionalProps.mjs";
17
16
  import capitalize from "../utils/capitalize.mjs";
18
17
  import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.mjs";
19
18
  import BaseSliderValueLabel from "./SliderValueLabel.mjs";
@@ -547,9 +546,9 @@ const useUtilityClasses = ownerState => {
547
546
  const Forward = ({
548
547
  children
549
548
  }) => children;
550
- const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
549
+ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inProps, ref) {
551
550
  const props = useDefaultProps({
552
- props: inputProps,
551
+ props: inProps,
553
552
  name: 'MuiSlider'
554
553
  });
555
554
  const isRtl = useRtl();
@@ -557,10 +556,6 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
557
556
  'aria-label': ariaLabel,
558
557
  'aria-valuetext': ariaValuetext,
559
558
  'aria-labelledby': ariaLabelledby,
560
- // eslint-disable-next-line react/prop-types
561
- component = 'span',
562
- components = {},
563
- componentsProps = {},
564
559
  color = 'primary',
565
560
  classes: classesProp,
566
561
  className,
@@ -579,8 +574,8 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
579
574
  size = 'medium',
580
575
  step = 1,
581
576
  scale = Identity,
582
- slotProps,
583
- slots,
577
+ slotProps = {},
578
+ slots = {},
584
579
  tabIndex,
585
580
  track = 'normal',
586
581
  value: valueProp,
@@ -631,96 +626,67 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
631
626
  ownerState.dragging = dragging;
632
627
  ownerState.focusedThumbIndex = focusedThumbIndex;
633
628
  const classes = useUtilityClasses(ownerState);
634
-
635
- // support both `slots` and `components` for backward compatibility
636
- const RootSlot = slots?.root ?? components.Root ?? SliderRoot;
637
- const RailSlot = slots?.rail ?? components.Rail ?? SliderRail;
638
- const TrackSlot = slots?.track ?? components.Track ?? SliderTrack;
639
- const ThumbSlot = slots?.thumb ?? components.Thumb ?? SliderThumb;
640
- const ValueLabelSlot = slots?.valueLabel ?? components.ValueLabel ?? SliderValueLabel;
641
- const MarkSlot = slots?.mark ?? components.Mark ?? SliderMark;
642
- const MarkLabelSlot = slots?.markLabel ?? components.MarkLabel ?? SliderMarkLabel;
643
- const InputSlot = slots?.input ?? components.Input ?? 'input';
644
- const rootSlotProps = slotProps?.root ?? componentsProps.root;
645
- const railSlotProps = slotProps?.rail ?? componentsProps.rail;
646
- const trackSlotProps = slotProps?.track ?? componentsProps.track;
647
- const thumbSlotProps = slotProps?.thumb ?? componentsProps.thumb;
648
- const valueLabelSlotProps = slotProps?.valueLabel ?? componentsProps.valueLabel;
649
- const markSlotProps = slotProps?.mark ?? componentsProps.mark;
650
- const markLabelSlotProps = slotProps?.markLabel ?? componentsProps.markLabel;
651
- const inputSlotProps = slotProps?.input ?? componentsProps.input;
652
- const rootProps = useSlotProps({
653
- elementType: RootSlot,
629
+ const externalForwardedProps = {
630
+ slots,
631
+ slotProps
632
+ };
633
+ const [RootSlot, rootProps] = useSlot('root', {
634
+ elementType: SliderRoot,
654
635
  getSlotProps: getRootProps,
655
- externalSlotProps: rootSlotProps,
656
- externalForwardedProps: other,
657
- additionalProps: {
658
- ...(shouldSpreadAdditionalProps(RootSlot) && {
659
- as: component
660
- })
661
- },
662
- ownerState: {
663
- ...ownerState,
664
- ...rootSlotProps?.ownerState
636
+ externalForwardedProps: {
637
+ ...externalForwardedProps,
638
+ ...other
665
639
  },
640
+ ownerState,
666
641
  className: [classes.root, className]
667
642
  });
668
- const railProps = useSlotProps({
669
- elementType: RailSlot,
670
- externalSlotProps: railSlotProps,
643
+ const [RailSlot, railProps] = useSlot('rail', {
644
+ elementType: SliderRail,
645
+ externalForwardedProps,
671
646
  ownerState,
672
647
  className: classes.rail
673
648
  });
674
- const trackProps = useSlotProps({
675
- elementType: TrackSlot,
676
- externalSlotProps: trackSlotProps,
649
+ const [TrackSlot, trackProps] = useSlot('track', {
650
+ elementType: SliderTrack,
651
+ externalForwardedProps,
677
652
  additionalProps: {
678
653
  style: {
679
654
  ...axisProps[axis].offset(trackOffset),
680
655
  ...axisProps[axis].leap(trackLeap)
681
656
  }
682
657
  },
683
- ownerState: {
684
- ...ownerState,
685
- ...trackSlotProps?.ownerState
686
- },
658
+ ownerState,
687
659
  className: classes.track
688
660
  });
689
- const thumbProps = useSlotProps({
690
- elementType: ThumbSlot,
661
+ const [ThumbSlot, thumbProps] = useSlot('thumb', {
662
+ elementType: SliderThumb,
691
663
  getSlotProps: getThumbProps,
692
- externalSlotProps: thumbSlotProps,
693
- ownerState: {
694
- ...ownerState,
695
- ...thumbSlotProps?.ownerState
696
- },
664
+ externalForwardedProps,
665
+ ownerState,
697
666
  className: classes.thumb
698
667
  });
699
- const valueLabelProps = useSlotProps({
700
- elementType: ValueLabelSlot,
701
- externalSlotProps: valueLabelSlotProps,
702
- ownerState: {
703
- ...ownerState,
704
- ...valueLabelSlotProps?.ownerState
705
- },
668
+ const [ValueLabelSlot, valueLabelProps] = useSlot('valueLabel', {
669
+ elementType: SliderValueLabel,
670
+ externalForwardedProps,
671
+ ownerState,
706
672
  className: classes.valueLabel
707
673
  });
708
- const markProps = useSlotProps({
709
- elementType: MarkSlot,
710
- externalSlotProps: markSlotProps,
674
+ const [MarkSlot, markProps] = useSlot('mark', {
675
+ elementType: SliderMark,
676
+ externalForwardedProps,
711
677
  ownerState,
712
678
  className: classes.mark
713
679
  });
714
- const markLabelProps = useSlotProps({
715
- elementType: MarkLabelSlot,
716
- externalSlotProps: markLabelSlotProps,
680
+ const [MarkLabelSlot, markLabelProps] = useSlot('markLabel', {
681
+ elementType: SliderMarkLabel,
682
+ externalForwardedProps,
717
683
  ownerState,
718
684
  className: classes.markLabel
719
685
  });
720
- const inputSliderProps = useSlotProps({
721
- elementType: InputSlot,
686
+ const [InputSliderSlot, inputSliderProps] = useSlot('input', {
687
+ elementType: 'input',
722
688
  getSlotProps: getHiddenInputProps,
723
- externalSlotProps: inputSlotProps,
689
+ externalForwardedProps,
724
690
  ownerState
725
691
  });
726
692
  return /*#__PURE__*/_jsxs(RootSlot, {
@@ -788,7 +754,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
788
754
  ...getThumbStyle(index),
789
755
  ...thumbProps.style
790
756
  },
791
- children: /*#__PURE__*/_jsx(InputSlot, {
757
+ children: /*#__PURE__*/_jsx(InputSliderSlot, {
792
758
  "data-index": index,
793
759
  "aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
794
760
  "aria-valuenow": scale(value),
@@ -850,48 +816,6 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
850
816
  * @default 'primary'
851
817
  */
852
818
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
853
- /**
854
- * The components used for each slot inside.
855
- *
856
- * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
857
- *
858
- * @default {}
859
- */
860
- components: PropTypes.shape({
861
- Input: PropTypes.elementType,
862
- Mark: PropTypes.elementType,
863
- MarkLabel: PropTypes.elementType,
864
- Rail: PropTypes.elementType,
865
- Root: PropTypes.elementType,
866
- Thumb: PropTypes.elementType,
867
- Track: PropTypes.elementType,
868
- ValueLabel: PropTypes.elementType
869
- }),
870
- /**
871
- * The extra props for the slot components.
872
- * You can override the existing props or add new ones.
873
- *
874
- * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
875
- *
876
- * @default {}
877
- */
878
- componentsProps: PropTypes.shape({
879
- input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
880
- mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
881
- markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
882
- rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
883
- root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
884
- thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
885
- track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
886
- valueLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
887
- children: PropTypes.element,
888
- className: PropTypes.string,
889
- open: PropTypes.bool,
890
- style: PropTypes.object,
891
- value: PropTypes.node,
892
- valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
893
- })])
894
- }),
895
819
  /**
896
820
  * The default value. Use when the component is not controlled.
897
821
  */
@@ -989,7 +913,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
989
913
  */
990
914
  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium']), PropTypes.string]),
991
915
  /**
992
- * The props used for each slot inside the Slider.
916
+ * The props used for each slot inside.
993
917
  * @default {}
994
918
  */
995
919
  slotProps: PropTypes.shape({
@@ -1010,8 +934,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
1010
934
  })])
1011
935
  }),
1012
936
  /**
1013
- * The components used for each slot inside the Slider.
1014
- * Either a string to use a HTML element or a component.
937
+ * The components used for each slot inside.
1015
938
  * @default {}
1016
939
  */
1017
940
  slots: PropTypes.shape({
@@ -46,31 +46,31 @@ export interface SliderClasses {
46
46
  /** Styles applied to the root element if `size="small"`. */
47
47
  sizeSmall: string;
48
48
  /** Styles applied to the thumb element if `color="primary"`.
49
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorPrimary](/material-ui/api/slider/#slider-classes-MuiSlider-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
49
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorPrimary](/material-ui/api/slider/#slider-classes-MuiSlider-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
50
50
  */
51
51
  thumbColorPrimary: string;
52
52
  /** Styles applied to the thumb element if `color="secondary"`.
53
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorSecondary](/material-ui/api/slider/#slider-classes-MuiSlider-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
53
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorSecondary](/material-ui/api/slider/#slider-classes-MuiSlider-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
54
54
  */
55
55
  thumbColorSecondary: string;
56
56
  /** Styles applied to the thumb element if `color="error"`.
57
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorError](/material-ui/api/slider/#slider-classes-MuiSlider-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
57
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorError](/material-ui/api/slider/#slider-classes-MuiSlider-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
58
58
  */
59
59
  thumbColorError: string;
60
60
  /** Styles applied to the thumb element if `color="info"`.
61
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorInfo](/material-ui/api/slider/#slider-classes-MuiSlider-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
61
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorInfo](/material-ui/api/slider/#slider-classes-MuiSlider-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
62
62
  */
63
63
  thumbColorInfo: string;
64
64
  /** Styles applied to the thumb element if `color="success"`.
65
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorSuccess](/material-ui/api/slider/#slider-classes-MuiSlider-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
65
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorSuccess](/material-ui/api/slider/#slider-classes-MuiSlider-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
66
66
  */
67
67
  thumbColorSuccess: string;
68
68
  /** Styles applied to the thumb element if `color="warning"`.
69
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorWarning](/material-ui/api/slider/#slider-classes-MuiSlider-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
69
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorWarning](/material-ui/api/slider/#slider-classes-MuiSlider-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
70
70
  */
71
71
  thumbColorWarning: string;
72
72
  /** Styles applied to the thumb element if `size="small"`.
73
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-sizeSmall](/material-ui/api/slider/#slider-classes-MuiSlider-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
73
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-sizeSmall](/material-ui/api/slider/#slider-classes-MuiSlider-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
74
74
  */
75
75
  thumbSizeSmall: string;
76
76
  /** Styles applied to the thumb label element. */
@@ -46,31 +46,31 @@ export interface SliderClasses {
46
46
  /** Styles applied to the root element if `size="small"`. */
47
47
  sizeSmall: string;
48
48
  /** Styles applied to the thumb element if `color="primary"`.
49
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorPrimary](/material-ui/api/slider/#slider-classes-MuiSlider-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
49
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorPrimary](/material-ui/api/slider/#slider-classes-MuiSlider-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
50
50
  */
51
51
  thumbColorPrimary: string;
52
52
  /** Styles applied to the thumb element if `color="secondary"`.
53
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorSecondary](/material-ui/api/slider/#slider-classes-MuiSlider-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
53
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorSecondary](/material-ui/api/slider/#slider-classes-MuiSlider-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
54
54
  */
55
55
  thumbColorSecondary: string;
56
56
  /** Styles applied to the thumb element if `color="error"`.
57
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorError](/material-ui/api/slider/#slider-classes-MuiSlider-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
57
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorError](/material-ui/api/slider/#slider-classes-MuiSlider-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
58
58
  */
59
59
  thumbColorError: string;
60
60
  /** Styles applied to the thumb element if `color="info"`.
61
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorInfo](/material-ui/api/slider/#slider-classes-MuiSlider-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
61
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorInfo](/material-ui/api/slider/#slider-classes-MuiSlider-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
62
62
  */
63
63
  thumbColorInfo: string;
64
64
  /** Styles applied to the thumb element if `color="success"`.
65
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorSuccess](/material-ui/api/slider/#slider-classes-MuiSlider-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
65
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorSuccess](/material-ui/api/slider/#slider-classes-MuiSlider-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
66
66
  */
67
67
  thumbColorSuccess: string;
68
68
  /** Styles applied to the thumb element if `color="warning"`.
69
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-colorWarning](/material-ui/api/slider/#slider-classes-MuiSlider-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
69
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorWarning](/material-ui/api/slider/#slider-classes-MuiSlider-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
70
70
  */
71
71
  thumbColorWarning: string;
72
72
  /** Styles applied to the thumb element if `size="small"`.
73
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#slider-classes-MuiSlider-thumb) and [.MuiSlider-sizeSmall](/material-ui/api/slider/#slider-classes-MuiSlider-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
73
+ * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-sizeSmall](/material-ui/api/slider/#slider-classes-MuiSlider-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
74
74
  */
75
75
  thumbSizeSmall: string;
76
76
  /** Styles applied to the thumb label element. */