@mui/material 6.0.0-alpha.4 → 6.0.0-alpha.6

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 (272) hide show
  1. package/Accordion/Accordion.d.ts +2 -2
  2. package/Accordion/Accordion.js +2 -2
  3. package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  4. package/Alert/Alert.d.ts +2 -2
  5. package/Alert/Alert.js +2 -2
  6. package/Alert/alertClasses.d.ts +12 -12
  7. package/Avatar/Avatar.d.ts +1 -1
  8. package/Avatar/Avatar.js +1 -1
  9. package/Backdrop/Backdrop.d.ts +1 -1
  10. package/Backdrop/Backdrop.js +1 -1
  11. package/Badge/Badge.d.ts +2 -2
  12. package/Badge/Badge.js +2 -2
  13. package/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  14. package/Button/Button.js +1 -1
  15. package/Button/buttonClasses.d.ts +33 -33
  16. package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
  17. package/CHANGELOG.md +86 -0
  18. package/Checkbox/Checkbox.js +3 -1
  19. package/Chip/chipClasses.d.ts +28 -26
  20. package/Chip/chipClasses.js +1 -1
  21. package/Collapse/Collapse.js +66 -35
  22. package/Dialog/Dialog.js +105 -61
  23. package/DialogActions/DialogActions.js +16 -12
  24. package/DialogContent/DialogContent.js +25 -15
  25. package/DialogContentText/DialogContentText.js +3 -2
  26. package/DialogTitle/DialogTitle.js +2 -2
  27. package/Divider/Divider.d.ts +1 -1
  28. package/Divider/Divider.js +1 -1
  29. package/Drawer/Drawer.js +73 -32
  30. package/Fab/Fab.js +1 -1
  31. package/FilledInput/FilledInput.d.ts +1 -0
  32. package/FilledInput/FilledInput.js +170 -87
  33. package/FormControlLabel/FormControlLabel.d.ts +21 -14
  34. package/FormControlLabel/FormControlLabel.js +22 -4
  35. package/FormHelperText/FormHelperText.js +2 -2
  36. package/FormLabel/FormLabel.js +23 -13
  37. package/Grow/Grow.js +3 -1
  38. package/Icon/Icon.js +63 -23
  39. package/ImageList/ImageList.js +2 -2
  40. package/ImageListItem/ImageListItem.js +2 -2
  41. package/ImageListItemBar/ImageListItemBar.js +2 -2
  42. package/Input/Input.d.ts +1 -0
  43. package/Input/Input.js +84 -61
  44. package/InputAdornment/InputAdornment.js +37 -21
  45. package/InputBase/InputBase.js +58 -28
  46. package/InputLabel/InputLabel.js +120 -58
  47. package/Link/Link.js +99 -54
  48. package/Link/getTextDecoration.d.ts +2 -8
  49. package/Link/getTextDecoration.js +16 -8
  50. package/List/List.js +22 -13
  51. package/ListItem/ListItem.js +2 -2
  52. package/ListItemAvatar/ListItemAvatar.js +2 -2
  53. package/ListItemButton/ListItemButton.js +3 -2
  54. package/ListItemIcon/ListItemIcon.js +14 -9
  55. package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  56. package/ListItemText/ListItemText.js +2 -2
  57. package/ListSubheader/ListSubheader.js +5 -3
  58. package/Menu/Menu.js +3 -2
  59. package/MenuItem/MenuItem.js +47 -27
  60. package/NativeSelect/NativeSelectInput.js +78 -49
  61. package/OutlinedInput/NotchedOutline.js +60 -43
  62. package/OutlinedInput/OutlinedInput.js +97 -39
  63. package/Pagination/Pagination.js +2 -2
  64. package/PaginationItem/PaginationItem.d.ts +26 -14
  65. package/PaginationItem/PaginationItem.js +64 -20
  66. package/PaginationItem/paginationItemClasses.d.ts +4 -4
  67. package/Paper/Paper.js +44 -21
  68. package/Radio/Radio.js +5 -3
  69. package/Radio/RadioButtonIcon.js +1 -1
  70. package/Rating/Rating.js +3 -2
  71. package/Select/Select.js +2 -1
  72. package/Select/SelectInput.js +8 -6
  73. package/Skeleton/Skeleton.js +109 -61
  74. package/Slider/Slider.d.ts +2 -2
  75. package/Slider/Slider.js +2 -2
  76. package/Snackbar/Snackbar.js +66 -40
  77. package/SnackbarContent/SnackbarContent.js +2 -2
  78. package/SpeedDial/SpeedDial.d.ts +28 -1
  79. package/SpeedDial/SpeedDial.js +107 -49
  80. package/SpeedDialAction/SpeedDialAction.js +50 -24
  81. package/SpeedDialIcon/SpeedDialIcon.js +37 -16
  82. package/StepConnector/stepConnectorClasses.d.ts +2 -2
  83. package/StepLabel/StepLabel.d.ts +3 -3
  84. package/StepLabel/StepLabel.js +3 -3
  85. package/SvgIcon/SvgIcon.js +73 -21
  86. package/SwipeableDrawer/SwipeArea.js +39 -18
  87. package/Tab/Tab.js +127 -55
  88. package/TabScrollButton/TabScrollButton.js +27 -15
  89. package/Table/Table.js +2 -2
  90. package/TableBody/TableBody.js +2 -2
  91. package/TableCell/TableCell.js +2 -2
  92. package/TableContainer/TableContainer.js +2 -2
  93. package/TableFooter/TableFooter.js +2 -2
  94. package/TableHead/TableHead.js +2 -2
  95. package/TablePagination/TablePagination.js +2 -2
  96. package/TableRow/TableRow.js +2 -2
  97. package/TableSortLabel/TableSortLabel.js +2 -2
  98. package/Tabs/Tabs.js +107 -54
  99. package/TextField/TextField.js +2 -2
  100. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
  101. package/Toolbar/Toolbar.js +3 -7
  102. package/Tooltip/Tooltip.js +185 -88
  103. package/Typography/Typography.js +89 -39
  104. package/index.js +1 -1
  105. package/internal/SwitchBase.js +39 -11
  106. package/modern/Accordion/Accordion.js +2 -2
  107. package/modern/Alert/Alert.js +2 -2
  108. package/modern/Avatar/Avatar.js +1 -1
  109. package/modern/Backdrop/Backdrop.js +1 -1
  110. package/modern/Badge/Badge.js +2 -2
  111. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  112. package/modern/Button/Button.js +1 -1
  113. package/modern/Checkbox/Checkbox.js +3 -1
  114. package/modern/Chip/chipClasses.js +1 -1
  115. package/modern/Collapse/Collapse.js +66 -35
  116. package/modern/Dialog/Dialog.js +105 -61
  117. package/modern/DialogActions/DialogActions.js +16 -12
  118. package/modern/DialogContent/DialogContent.js +25 -15
  119. package/modern/DialogContentText/DialogContentText.js +3 -2
  120. package/modern/DialogTitle/DialogTitle.js +2 -2
  121. package/modern/Divider/Divider.js +1 -1
  122. package/modern/Drawer/Drawer.js +73 -32
  123. package/modern/Fab/Fab.js +1 -1
  124. package/modern/FilledInput/FilledInput.js +170 -87
  125. package/modern/FormControlLabel/FormControlLabel.js +22 -4
  126. package/modern/FormHelperText/FormHelperText.js +2 -2
  127. package/modern/FormLabel/FormLabel.js +23 -13
  128. package/modern/Grow/Grow.js +3 -1
  129. package/modern/Icon/Icon.js +63 -23
  130. package/modern/ImageList/ImageList.js +2 -2
  131. package/modern/ImageListItem/ImageListItem.js +2 -2
  132. package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
  133. package/modern/Input/Input.js +84 -61
  134. package/modern/InputAdornment/InputAdornment.js +37 -21
  135. package/modern/InputBase/InputBase.js +58 -28
  136. package/modern/InputLabel/InputLabel.js +120 -58
  137. package/modern/Link/Link.js +99 -54
  138. package/modern/Link/getTextDecoration.js +16 -8
  139. package/modern/List/List.js +22 -13
  140. package/modern/ListItem/ListItem.js +2 -2
  141. package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
  142. package/modern/ListItemButton/ListItemButton.js +3 -2
  143. package/modern/ListItemIcon/ListItemIcon.js +14 -9
  144. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  145. package/modern/ListItemText/ListItemText.js +2 -2
  146. package/modern/ListSubheader/ListSubheader.js +5 -3
  147. package/modern/Menu/Menu.js +3 -2
  148. package/modern/MenuItem/MenuItem.js +47 -27
  149. package/modern/NativeSelect/NativeSelectInput.js +78 -49
  150. package/modern/OutlinedInput/NotchedOutline.js +60 -43
  151. package/modern/OutlinedInput/OutlinedInput.js +97 -39
  152. package/modern/Pagination/Pagination.js +2 -2
  153. package/modern/PaginationItem/PaginationItem.js +64 -20
  154. package/modern/Paper/Paper.js +44 -21
  155. package/modern/Radio/Radio.js +5 -3
  156. package/modern/Radio/RadioButtonIcon.js +1 -1
  157. package/modern/Rating/Rating.js +3 -2
  158. package/modern/Select/Select.js +2 -1
  159. package/modern/Select/SelectInput.js +8 -6
  160. package/modern/Skeleton/Skeleton.js +109 -61
  161. package/modern/Slider/Slider.js +2 -2
  162. package/modern/Snackbar/Snackbar.js +66 -40
  163. package/modern/SnackbarContent/SnackbarContent.js +2 -2
  164. package/modern/SpeedDial/SpeedDial.js +107 -49
  165. package/modern/SpeedDialAction/SpeedDialAction.js +50 -24
  166. package/modern/SpeedDialIcon/SpeedDialIcon.js +37 -16
  167. package/modern/StepLabel/StepLabel.js +3 -3
  168. package/modern/SvgIcon/SvgIcon.js +73 -21
  169. package/modern/SwipeableDrawer/SwipeArea.js +39 -18
  170. package/modern/Tab/Tab.js +127 -55
  171. package/modern/TabScrollButton/TabScrollButton.js +27 -15
  172. package/modern/Table/Table.js +2 -2
  173. package/modern/TableBody/TableBody.js +2 -2
  174. package/modern/TableCell/TableCell.js +2 -2
  175. package/modern/TableContainer/TableContainer.js +2 -2
  176. package/modern/TableFooter/TableFooter.js +2 -2
  177. package/modern/TableHead/TableHead.js +2 -2
  178. package/modern/TablePagination/TablePagination.js +2 -2
  179. package/modern/TableRow/TableRow.js +2 -2
  180. package/modern/TableSortLabel/TableSortLabel.js +2 -2
  181. package/modern/Tabs/Tabs.js +107 -54
  182. package/modern/TextField/TextField.js +2 -2
  183. package/modern/Toolbar/Toolbar.js +3 -7
  184. package/modern/Tooltip/Tooltip.js +185 -88
  185. package/modern/Typography/Typography.js +89 -39
  186. package/modern/index.js +1 -1
  187. package/modern/internal/SwitchBase.js +39 -11
  188. package/node/Accordion/Accordion.js +2 -2
  189. package/node/Alert/Alert.js +2 -2
  190. package/node/Avatar/Avatar.js +1 -1
  191. package/node/Backdrop/Backdrop.js +1 -1
  192. package/node/Badge/Badge.js +2 -2
  193. package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -3
  194. package/node/Button/Button.js +2 -2
  195. package/node/Checkbox/Checkbox.js +3 -1
  196. package/node/Chip/chipClasses.js +1 -1
  197. package/node/Collapse/Collapse.js +70 -39
  198. package/node/Dialog/Dialog.js +110 -66
  199. package/node/DialogActions/DialogActions.js +18 -14
  200. package/node/DialogContent/DialogContent.js +27 -17
  201. package/node/DialogContentText/DialogContentText.js +6 -5
  202. package/node/DialogTitle/DialogTitle.js +4 -4
  203. package/node/Divider/Divider.js +1 -1
  204. package/node/Drawer/Drawer.js +78 -37
  205. package/node/Fab/Fab.js +2 -2
  206. package/node/FilledInput/FilledInput.js +176 -91
  207. package/node/FormControlLabel/FormControlLabel.js +23 -5
  208. package/node/FormHelperText/FormHelperText.js +4 -4
  209. package/node/FormLabel/FormLabel.js +26 -16
  210. package/node/Grow/Grow.js +3 -1
  211. package/node/Icon/Icon.js +65 -25
  212. package/node/ImageList/ImageList.js +4 -4
  213. package/node/ImageListItem/ImageListItem.js +4 -4
  214. package/node/ImageListItemBar/ImageListItemBar.js +8 -8
  215. package/node/Input/Input.js +87 -64
  216. package/node/InputAdornment/InputAdornment.js +39 -23
  217. package/node/InputBase/InputBase.js +61 -31
  218. package/node/InputLabel/InputLabel.js +123 -61
  219. package/node/Link/Link.js +101 -56
  220. package/node/Link/getTextDecoration.js +18 -10
  221. package/node/List/List.js +24 -15
  222. package/node/ListItem/ListItem.js +5 -5
  223. package/node/ListItemAvatar/ListItemAvatar.js +4 -4
  224. package/node/ListItemButton/ListItemButton.js +6 -5
  225. package/node/ListItemIcon/ListItemIcon.js +16 -11
  226. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  227. package/node/ListItemText/ListItemText.js +4 -4
  228. package/node/ListSubheader/ListSubheader.js +7 -5
  229. package/node/Menu/Menu.js +8 -7
  230. package/node/MenuItem/MenuItem.js +50 -30
  231. package/node/NativeSelect/NativeSelectInput.js +80 -53
  232. package/node/OutlinedInput/NotchedOutline.js +64 -47
  233. package/node/OutlinedInput/OutlinedInput.js +101 -43
  234. package/node/Pagination/Pagination.js +5 -5
  235. package/node/PaginationItem/PaginationItem.js +65 -20
  236. package/node/Paper/Paper.js +49 -28
  237. package/node/Radio/Radio.js +6 -4
  238. package/node/Radio/RadioButtonIcon.js +2 -2
  239. package/node/Rating/Rating.js +9 -8
  240. package/node/Select/Select.js +6 -5
  241. package/node/Select/SelectInput.js +9 -7
  242. package/node/Skeleton/Skeleton.js +113 -65
  243. package/node/Slider/Slider.js +2 -2
  244. package/node/Snackbar/Snackbar.js +68 -42
  245. package/node/SnackbarContent/SnackbarContent.js +6 -6
  246. package/node/SpeedDial/SpeedDial.js +111 -53
  247. package/node/SpeedDialAction/SpeedDialAction.js +54 -28
  248. package/node/SpeedDialIcon/SpeedDialIcon.js +39 -18
  249. package/node/StepLabel/StepLabel.js +3 -3
  250. package/node/SvgIcon/SvgIcon.js +79 -24
  251. package/node/SwipeableDrawer/SwipeArea.js +41 -20
  252. package/node/Tab/Tab.js +129 -57
  253. package/node/TabScrollButton/TabScrollButton.js +29 -17
  254. package/node/Table/Table.js +4 -4
  255. package/node/TableBody/TableBody.js +4 -4
  256. package/node/TableCell/TableCell.js +4 -4
  257. package/node/TableContainer/TableContainer.js +4 -4
  258. package/node/TableFooter/TableFooter.js +4 -4
  259. package/node/TableHead/TableHead.js +4 -4
  260. package/node/TablePagination/TablePagination.js +10 -10
  261. package/node/TableRow/TableRow.js +4 -4
  262. package/node/TableSortLabel/TableSortLabel.js +5 -5
  263. package/node/Tabs/Tabs.js +113 -60
  264. package/node/TextField/TextField.js +4 -4
  265. package/node/Toolbar/Toolbar.js +5 -9
  266. package/node/Tooltip/Tooltip.js +189 -92
  267. package/node/Typography/Typography.js +90 -40
  268. package/node/index.js +1 -1
  269. package/node/internal/SwitchBase.js +41 -13
  270. package/package.json +6 -6
  271. package/umd/material-ui.development.js +2777 -1334
  272. package/umd/material-ui.production.min.js +4 -4
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"];
5
+ const _excluded = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "slotProps", "type", "variant"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
@@ -16,6 +16,7 @@ import FirstPageIcon from '../internal/svg-icons/FirstPage';
16
16
  import LastPageIcon from '../internal/svg-icons/LastPage';
17
17
  import NavigateBeforeIcon from '../internal/svg-icons/NavigateBefore';
18
18
  import NavigateNextIcon from '../internal/svg-icons/NavigateNext';
19
+ import useSlot from '../utils/useSlot';
19
20
  import { styled, createUseThemeProps } from '../zero-styled';
20
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
22
  const useThemeProps = createUseThemeProps('MuiPaginationItem');
@@ -281,6 +282,7 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
281
282
  shape = 'circular',
282
283
  size = 'medium',
283
284
  slots = {},
285
+ slotProps = {},
284
286
  type = 'page',
285
287
  variant = 'text'
286
288
  } = props,
@@ -296,18 +298,53 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
296
298
  });
297
299
  const isRtl = useRtl();
298
300
  const classes = useUtilityClasses(ownerState);
299
- const normalizedIcons = isRtl ? {
300
- previous: slots.next || components.next || NavigateNextIcon,
301
- next: slots.previous || components.previous || NavigateBeforeIcon,
302
- last: slots.first || components.first || FirstPageIcon,
303
- first: slots.last || components.last || LastPageIcon
304
- } : {
305
- previous: slots.previous || components.previous || NavigateBeforeIcon,
306
- next: slots.next || components.next || NavigateNextIcon,
307
- first: slots.first || components.first || FirstPageIcon,
308
- last: slots.last || components.last || LastPageIcon
301
+ const externalForwardedProps = {
302
+ slots: {
303
+ previous: slots.previous ?? components.previous,
304
+ next: slots.next ?? components.next,
305
+ first: slots.first ?? components.first,
306
+ last: slots.last ?? components.last
307
+ },
308
+ slotProps
309
309
  };
310
- const Icon = normalizedIcons[type];
310
+ const [PreviousSlot, previousSlotProps] = useSlot('previous', {
311
+ elementType: NavigateBeforeIcon,
312
+ externalForwardedProps,
313
+ ownerState
314
+ });
315
+ const [NextSlot, nextSlotProps] = useSlot('next', {
316
+ elementType: NavigateNextIcon,
317
+ externalForwardedProps,
318
+ ownerState
319
+ });
320
+ const [FirstSlot, firstSlotProps] = useSlot('first', {
321
+ elementType: FirstPageIcon,
322
+ externalForwardedProps,
323
+ ownerState
324
+ });
325
+ const [LastSlot, lastSlotProps] = useSlot('last', {
326
+ elementType: LastPageIcon,
327
+ externalForwardedProps,
328
+ ownerState
329
+ });
330
+ const rtlAwareType = isRtl ? {
331
+ previous: 'next',
332
+ next: 'previous',
333
+ first: 'last',
334
+ last: 'first'
335
+ }[type] : type;
336
+ const IconSlot = {
337
+ previous: PreviousSlot,
338
+ next: NextSlot,
339
+ first: FirstSlot,
340
+ last: LastSlot
341
+ }[rtlAwareType];
342
+ const iconSlotProps = {
343
+ previous: previousSlotProps,
344
+ next: nextSlotProps,
345
+ first: firstSlotProps,
346
+ last: lastSlotProps
347
+ }[rtlAwareType];
311
348
  return type === 'start-ellipsis' || type === 'end-ellipsis' ? /*#__PURE__*/_jsx(PaginationItemEllipsis, {
312
349
  ref: ref,
313
350
  ownerState: ownerState,
@@ -320,11 +357,10 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
320
357
  disabled: disabled,
321
358
  className: clsx(classes.root, className)
322
359
  }, other, {
323
- children: [type === 'page' && page, Icon ? /*#__PURE__*/_jsx(PaginationItemPageIcon, {
324
- as: Icon,
325
- ownerState: ownerState,
326
- className: classes.icon
327
- }) : null]
360
+ children: [type === 'page' && page, IconSlot ? /*#__PURE__*/_jsx(PaginationItemPageIcon, _extends({}, iconSlotProps, {
361
+ className: classes.icon,
362
+ as: IconSlot
363
+ })) : null]
328
364
  }));
329
365
  });
330
366
  process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-proptypes */ = {
@@ -363,6 +399,7 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
363
399
  * It's recommended to use the `slots` prop instead.
364
400
  *
365
401
  * @default {}
402
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
366
403
  */
367
404
  components: PropTypes.shape({
368
405
  first: PropTypes.elementType,
@@ -394,11 +431,18 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
394
431
  * @default 'medium'
395
432
  */
396
433
  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
434
+ /**
435
+ * The props used for each slot inside.
436
+ * @default {}
437
+ */
438
+ slotProps: PropTypes.shape({
439
+ first: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
440
+ last: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
441
+ next: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
442
+ previous: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
443
+ }),
397
444
  /**
398
445
  * The components used for each slot inside.
399
- *
400
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
401
- *
402
446
  * @default {}
403
447
  */
404
448
  slots: PropTypes.shape({
@@ -10,21 +10,21 @@ export interface PaginationItemClasses {
10
10
  /** Styles applied to the root element if `variant="text"`. */
11
11
  text: string;
12
12
  /** Styles applied to the root element if `variant="text"` and `color="primary"`.
13
- * @deprecated Combine the [.MuiPaginationItem-text](/material-ui/api/pagination-item/#pagination-item-classes-text) and [.MuiPaginationItem-colorPrimary](/material-ui/api/pagination-item/#pagination-item-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
13
+ * @deprecated Combine the [.MuiPaginationItem-text](/material-ui/api/pagination-item/#pagination-item-classes-text) and [.MuiPaginationItem-colorPrimary](/material-ui/api/pagination-item/#pagination-item-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
14
14
  */
15
15
  textPrimary: string;
16
16
  /** Styles applied to the root element if `variant="text"` and `color="secondary"`.
17
- * @deprecated Combine the [.MuiPaginationItem-text](/material-ui/api/pagination-item/#pagination-item-classes-text) and [.MuiPaginationItem-colorSecondary](/material-ui/api/pagination-item/#pagination-item-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
17
+ * @deprecated Combine the [.MuiPaginationItem-text](/material-ui/api/pagination-item/#pagination-item-classes-text) and [.MuiPaginationItem-colorSecondary](/material-ui/api/pagination-item/#pagination-item-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
18
18
  */
19
19
  textSecondary: string;
20
20
  /** Styles applied to the root element if `variant="outlined"`. */
21
21
  outlined: string;
22
22
  /** Styles applied to the root element if `variant="outlined"` and `color="primary"`.
23
- * @deprecated Combine the [.MuiPaginationItem-outlined](/material-ui/api/pagination-item/#pagination-item-classes-outlined) and [.MuiPaginationItem-colorPrimary](/material-ui/api/pagination-item/#pagination-item-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
23
+ * @deprecated Combine the [.MuiPaginationItem-outlined](/material-ui/api/pagination-item/#pagination-item-classes-outlined) and [.MuiPaginationItem-colorPrimary](/material-ui/api/pagination-item/#pagination-item-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
24
24
  */
25
25
  outlinedPrimary: string;
26
26
  /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`.
27
- * @deprecated Combine the [.MuiPaginationItem-outlined](/material-ui/api/pagination-item/#pagination-item-classes-outlined) and [.MuiPaginationItem-colorSecondary](/material-ui/api/pagination-item/#pagination-item-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
27
+ * @deprecated Combine the [.MuiPaginationItem-outlined](/material-ui/api/pagination-item/#pagination-item-classes-outlined) and [.MuiPaginationItem-colorSecondary](/material-ui/api/pagination-item/#pagination-item-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
28
28
  */
29
29
  outlinedSecondary: string;
30
30
  /** Styles applied to the root element if `rounded="true"`. */
package/Paper/Paper.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className", "component", "elevation", "square", "variant"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -10,12 +10,12 @@ import integerPropType from '@mui/utils/integerPropType';
10
10
  import chainPropTypes from '@mui/utils/chainPropTypes';
11
11
  import composeClasses from '@mui/utils/composeClasses';
12
12
  import { alpha } from '@mui/system/colorManipulator';
13
- import styled from '../styles/styled';
13
+ import { styled, createUseThemeProps } from '../zero-styled';
14
14
  import getOverlayAlpha from '../styles/getOverlayAlpha';
15
- import useThemeProps from '../styles/useThemeProps';
16
15
  import useTheme from '../styles/useTheme';
17
16
  import { getPaperUtilityClass } from './paperClasses';
18
17
  import { jsx as _jsx } from "react/jsx-runtime";
18
+ const useThemeProps = createUseThemeProps('MuiPaper');
19
19
  const useUtilityClasses = ownerState => {
20
20
  const {
21
21
  square,
@@ -38,28 +38,41 @@ const PaperRoot = styled('div', {
38
38
  return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
39
39
  }
40
40
  })(({
41
- theme,
42
- ownerState
43
- }) => _extends({
41
+ theme
42
+ }) => ({
44
43
  backgroundColor: (theme.vars || theme).palette.background.paper,
45
44
  color: (theme.vars || theme).palette.text.primary,
46
- transition: theme.transitions.create('box-shadow')
47
- }, !ownerState.square && {
48
- borderRadius: theme.shape.borderRadius
49
- }, ownerState.variant === 'outlined' && {
50
- border: `1px solid ${(theme.vars || theme).palette.divider}`
51
- }, ownerState.variant === 'elevation' && _extends({
52
- boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
53
- }, !theme.vars && theme.palette.mode === 'dark' && {
54
- backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
55
- }, theme.vars && {
56
- backgroundImage: theme.vars.overlays?.[ownerState.elevation]
57
- })));
45
+ transition: theme.transitions.create('box-shadow'),
46
+ variants: [{
47
+ props: ({
48
+ ownerState
49
+ }) => !ownerState.square,
50
+ style: {
51
+ borderRadius: theme.shape.borderRadius
52
+ }
53
+ }, {
54
+ props: {
55
+ variant: 'outlined'
56
+ },
57
+ style: {
58
+ border: `1px solid ${(theme.vars || theme).palette.divider}`
59
+ }
60
+ }, {
61
+ props: {
62
+ variant: 'elevation'
63
+ },
64
+ style: {
65
+ boxShadow: 'var(--Paper-shadow)',
66
+ backgroundImage: 'var(--Paper-overlay)'
67
+ }
68
+ }]
69
+ }));
58
70
  const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
59
71
  const props = useThemeProps({
60
72
  props: inProps,
61
73
  name: 'MuiPaper'
62
74
  });
75
+ const theme = useTheme();
63
76
  const {
64
77
  className,
65
78
  component = 'div',
@@ -76,8 +89,6 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
76
89
  });
77
90
  const classes = useUtilityClasses(ownerState);
78
91
  if (process.env.NODE_ENV !== 'production') {
79
- // eslint-disable-next-line react-hooks/rules-of-hooks
80
- const theme = useTheme();
81
92
  if (theme.shadows[elevation] === undefined) {
82
93
  console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
83
94
  }
@@ -87,7 +98,15 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
87
98
  ownerState: ownerState,
88
99
  className: clsx(classes.root, className),
89
100
  ref: ref
90
- }, other));
101
+ }, other, {
102
+ style: _extends({}, variant === 'elevation' && _extends({
103
+ '--Paper-shadow': (theme.vars || theme).shadows[elevation]
104
+ }, theme.vars && {
105
+ '--Paper-overlay': theme.overlays?.[elevation]
106
+ }, !theme.vars && theme.palette.mode === 'dark' && {
107
+ '--Paper-overlay': `linear-gradient(${alpha('#fff', getOverlayAlpha(elevation))}, ${alpha('#fff', getOverlayAlpha(elevation))})`
108
+ }), other.style)
109
+ }));
91
110
  });
92
111
  process.env.NODE_ENV !== "production" ? Paper.propTypes /* remove-proptypes */ = {
93
112
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -131,6 +150,10 @@ process.env.NODE_ENV !== "production" ? Paper.propTypes /* remove-proptypes */ =
131
150
  * @default false
132
151
  */
133
152
  square: PropTypes.bool,
153
+ /**
154
+ * @ignore
155
+ */
156
+ style: PropTypes.object,
134
157
  /**
135
158
  * The system prop that allows defining system overrides as well as additional CSS styles.
136
159
  */
package/Radio/Radio.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"];
5
+ const _excluded = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className", "disableRipple"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
@@ -15,7 +15,7 @@ import capitalize from '../utils/capitalize';
15
15
  import createChainedFunction from '../utils/createChainedFunction';
16
16
  import useRadioGroup from '../RadioGroup/useRadioGroup';
17
17
  import radioClasses, { getRadioUtilityClass } from './radioClasses';
18
- import { rootShouldForwardProp } from '../styles/styled';
18
+ import rootShouldForwardProp from '../styles/rootShouldForwardProp';
19
19
  import { styled, createUseThemeProps } from '../zero-styled';
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  const useThemeProps = createUseThemeProps('MuiRadio');
@@ -116,10 +116,12 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
116
116
  name: nameProp,
117
117
  onChange: onChangeProp,
118
118
  size = 'medium',
119
- className
119
+ className,
120
+ disableRipple = false
120
121
  } = props,
121
122
  other = _objectWithoutPropertiesLoose(props, _excluded);
122
123
  const ownerState = _extends({}, props, {
124
+ disableRipple,
123
125
  color,
124
126
  size
125
127
  });
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import RadioButtonUncheckedIcon from '../internal/svg-icons/RadioButtonUnchecked';
7
7
  import RadioButtonCheckedIcon from '../internal/svg-icons/RadioButtonChecked';
8
- import { rootShouldForwardProp } from '../styles/styled';
8
+ import rootShouldForwardProp from '../styles/rootShouldForwardProp';
9
9
  import { styled } from '../zero-styled';
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  const RadioButtonIconRoot = styled('span', {
package/Rating/Rating.js CHANGED
@@ -15,10 +15,11 @@ import { useRtl } from '@mui/system/RtlProvider';
15
15
  import { capitalize, useForkRef, useIsFocusVisible, useControlled, unstable_useId as useId } from '../utils';
16
16
  import Star from '../internal/svg-icons/Star';
17
17
  import StarBorder from '../internal/svg-icons/StarBorder';
18
- import useThemeProps from '../styles/useThemeProps';
19
- import styled, { slotShouldForwardProp } from '../styles/styled';
18
+ import { styled, createUseThemeProps } from '../zero-styled';
19
+ import slotShouldForwardProp from '../styles/slotShouldForwardProp';
20
20
  import ratingClasses, { getRatingUtilityClass } from './ratingClasses';
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ const useThemeProps = createUseThemeProps('MuiRating');
22
23
  function getDecimalPrecision(num) {
23
24
  const decimalPart = num.toString().split('.')[1];
24
25
  return decimalPart ? decimalPart.length : 0;
package/Select/Select.js CHANGED
@@ -18,7 +18,8 @@ import FilledInput from '../FilledInput';
18
18
  import OutlinedInput from '../OutlinedInput';
19
19
  import useThemeProps from '../styles/useThemeProps';
20
20
  import useForkRef from '../utils/useForkRef';
21
- import styled, { rootShouldForwardProp } from '../styles/styled';
21
+ import { styled } from '../zero-styled';
22
+ import rootShouldForwardProp from '../styles/rootShouldForwardProp';
22
23
  import { jsx as _jsx } from "react/jsx-runtime";
23
24
  const useUtilityClasses = ownerState => {
24
25
  const {
@@ -15,14 +15,15 @@ import refType from '@mui/utils/refType';
15
15
  import ownerDocument from '../utils/ownerDocument';
16
16
  import capitalize from '../utils/capitalize';
17
17
  import Menu from '../Menu/Menu';
18
- import { nativeSelectSelectStyles, nativeSelectIconStyles } from '../NativeSelect/NativeSelectInput';
18
+ import { StyledSelectSelect, StyledSelectIcon } from '../NativeSelect/NativeSelectInput';
19
19
  import { isFilled } from '../InputBase/utils';
20
- import styled, { slotShouldForwardProp } from '../styles/styled';
20
+ import { styled } from '../zero-styled';
21
+ import slotShouldForwardProp from '../styles/slotShouldForwardProp';
21
22
  import useForkRef from '../utils/useForkRef';
22
23
  import useControlled from '../utils/useControlled';
23
24
  import selectClasses, { getSelectUtilityClasses } from './selectClasses';
24
25
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
- const SelectSelect = styled('div', {
26
+ const SelectSelect = styled(StyledSelectSelect, {
26
27
  name: 'MuiSelect',
27
28
  slot: 'Select',
28
29
  overridesResolver: (props, styles) => {
@@ -41,7 +42,7 @@ const SelectSelect = styled('div', {
41
42
  [`&.${selectClasses.multiple}`]: styles.multiple
42
43
  }];
43
44
  }
44
- })(nativeSelectSelectStyles, {
45
+ })({
45
46
  // Win specificity over the input base
46
47
  [`&.${selectClasses.select}`]: {
47
48
  height: 'auto',
@@ -53,7 +54,7 @@ const SelectSelect = styled('div', {
53
54
  overflow: 'hidden'
54
55
  }
55
56
  });
56
- const SelectIcon = styled('svg', {
57
+ const SelectIcon = styled(StyledSelectIcon, {
57
58
  name: 'MuiSelect',
58
59
  slot: 'Icon',
59
60
  overridesResolver: (props, styles) => {
@@ -62,7 +63,7 @@ const SelectIcon = styled('svg', {
62
63
  } = props;
63
64
  return [styles.icon, ownerState.variant && styles[`icon${capitalize(ownerState.variant)}`], ownerState.open && styles.iconOpen];
64
65
  }
65
- })(nativeSelectIconStyles);
66
+ })({});
66
67
  const SelectNativeInput = styled('input', {
67
68
  shouldForwardProp: prop => slotShouldForwardProp(prop) && prop !== 'classes',
68
69
  name: 'MuiSelect',
@@ -435,6 +436,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
435
436
  const listboxId = useId();
436
437
  return /*#__PURE__*/_jsxs(React.Fragment, {
437
438
  children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
439
+ as: "div",
438
440
  ref: handleDisplayRef,
439
441
  tabIndex: tabIndex,
440
442
  role: "combobox",
@@ -1,18 +1,17 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["animation", "className", "component", "height", "style", "variant", "width"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
8
8
  import PropTypes from 'prop-types';
9
- import { keyframes, css } from '@mui/system';
10
9
  import composeClasses from '@mui/utils/composeClasses';
11
10
  import { alpha, unstable_getUnit as getUnit, unstable_toUnitless as toUnitless } from '../styles';
12
- import styled from '../styles/styled';
13
- import useThemeProps from '../styles/useThemeProps';
11
+ import { keyframes, css, createUseThemeProps, styled } from '../zero-styled';
14
12
  import { getSkeletonUtilityClass } from './skeletonClasses';
15
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
+ const useThemeProps = createUseThemeProps('MuiSkeleton');
16
15
  const useUtilityClasses = ownerState => {
17
16
  const {
18
17
  classes,
@@ -54,6 +53,16 @@ const waveKeyframe = keyframes`
54
53
  transform: translateX(100%);
55
54
  }
56
55
  `;
56
+
57
+ // This implementation is for supporting both Styled-components v4+ and Pigment CSS.
58
+ // A global animation has to be created here for Styled-components v4+ (https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#12).
59
+ // which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).
60
+ const pulseAnimation = typeof pulseKeyframe !== 'string' ? css`
61
+ animation: ${pulseKeyframe} 2s ease-in-out 0.5s infinite;
62
+ ` : null;
63
+ const waveAnimation = typeof waveKeyframe !== 'string' ? css`
64
+ animation: ${waveKeyframe} 2s linear 0.5s infinite;
65
+ ` : null;
57
66
  const SkeletonRoot = styled('span', {
58
67
  name: 'MuiSkeleton',
59
68
  slot: 'Root',
@@ -64,70 +73,109 @@ const SkeletonRoot = styled('span', {
64
73
  return [styles.root, styles[ownerState.variant], ownerState.animation !== false && styles[ownerState.animation], ownerState.hasChildren && styles.withChildren, ownerState.hasChildren && !ownerState.width && styles.fitContent, ownerState.hasChildren && !ownerState.height && styles.heightAuto];
65
74
  }
66
75
  })(({
67
- theme,
68
- ownerState
76
+ theme
69
77
  }) => {
70
78
  const radiusUnit = getUnit(theme.shape.borderRadius) || 'px';
71
79
  const radiusValue = toUnitless(theme.shape.borderRadius);
72
- return _extends({
80
+ return {
73
81
  display: 'block',
74
82
  // Create a "on paper" color with sufficient contrast retaining the color
75
83
  backgroundColor: theme.vars ? theme.vars.palette.Skeleton.bg : alpha(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),
76
- height: '1.2em'
77
- }, ownerState.variant === 'text' && {
78
- marginTop: 0,
79
- marginBottom: 0,
80
- height: 'auto',
81
- transformOrigin: '0 55%',
82
- transform: 'scale(1, 0.60)',
83
- borderRadius: `${radiusValue}${radiusUnit}/${Math.round(radiusValue / 0.6 * 10) / 10}${radiusUnit}`,
84
- '&:empty:before': {
85
- content: '"\\00a0"'
86
- }
87
- }, ownerState.variant === 'circular' && {
88
- borderRadius: '50%'
89
- }, ownerState.variant === 'rounded' && {
90
- borderRadius: (theme.vars || theme).shape.borderRadius
91
- }, ownerState.hasChildren && {
92
- '& > *': {
93
- visibility: 'hidden'
94
- }
95
- }, ownerState.hasChildren && !ownerState.width && {
96
- maxWidth: 'fit-content'
97
- }, ownerState.hasChildren && !ownerState.height && {
98
- height: 'auto'
99
- });
100
- }, ({
101
- ownerState
102
- }) => ownerState.animation === 'pulse' && css`
103
- animation: ${pulseKeyframe} 2s ease-in-out 0.5s infinite;
104
- `, ({
105
- ownerState,
106
- theme
107
- }) => ownerState.animation === 'wave' && css`
108
- position: relative;
109
- overflow: hidden;
110
-
111
- /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
112
- -webkit-mask-image: -webkit-radial-gradient(white, black);
113
-
114
- &::after {
115
- animation: ${waveKeyframe} 2s linear 0.5s infinite;
116
- background: linear-gradient(
117
- 90deg,
118
- transparent,
119
- ${(theme.vars || theme).palette.action.hover},
120
- transparent
121
- );
122
- content: '';
123
- position: absolute;
124
- transform: translateX(-100%); /* Avoid flash during server-side hydration */
125
- bottom: 0;
126
- left: 0;
127
- right: 0;
128
- top: 0;
84
+ height: '1.2em',
85
+ variants: [{
86
+ props: {
87
+ variant: 'text'
88
+ },
89
+ style: {
90
+ marginTop: 0,
91
+ marginBottom: 0,
92
+ height: 'auto',
93
+ transformOrigin: '0 55%',
94
+ transform: 'scale(1, 0.60)',
95
+ borderRadius: `${radiusValue}${radiusUnit}/${Math.round(radiusValue / 0.6 * 10) / 10}${radiusUnit}`,
96
+ '&:empty:before': {
97
+ content: '"\\00a0"'
98
+ }
129
99
  }
130
- `);
100
+ }, {
101
+ props: {
102
+ variant: 'circular'
103
+ },
104
+ style: {
105
+ borderRadius: '50%'
106
+ }
107
+ }, {
108
+ props: {
109
+ variant: 'rounded'
110
+ },
111
+ style: {
112
+ borderRadius: (theme.vars || theme).shape.borderRadius
113
+ }
114
+ }, {
115
+ props: ({
116
+ ownerState
117
+ }) => ownerState.hasChildren,
118
+ style: {
119
+ '& > *': {
120
+ visibility: 'hidden'
121
+ }
122
+ }
123
+ }, {
124
+ props: ({
125
+ ownerState
126
+ }) => ownerState.hasChildren && !ownerState.width,
127
+ style: {
128
+ maxWidth: 'fit-content'
129
+ }
130
+ }, {
131
+ props: ({
132
+ ownerState
133
+ }) => ownerState.hasChildren && !ownerState.height,
134
+ style: {
135
+ height: 'auto'
136
+ }
137
+ }, {
138
+ props: {
139
+ animation: 'pulse'
140
+ },
141
+ style: pulseAnimation || {
142
+ animation: `${pulseKeyframe} 2s ease-in-out 0.5s infinite`
143
+ }
144
+ }, {
145
+ props: {
146
+ animation: 'wave'
147
+ },
148
+ style: {
149
+ position: 'relative',
150
+ overflow: 'hidden',
151
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
152
+ WebkitMaskImage: '-webkit-radial-gradient(white, black)',
153
+ '&::after': {
154
+ background: `linear-gradient(
155
+ 90deg,
156
+ transparent,
157
+ ${(theme.vars || theme).palette.action.hover},
158
+ transparent
159
+ )`,
160
+ content: '""',
161
+ position: 'absolute',
162
+ transform: 'translateX(-100%)' /* Avoid flash during server-side hydration */,
163
+ bottom: 0,
164
+ left: 0,
165
+ right: 0,
166
+ top: 0
167
+ }
168
+ }
169
+ }, {
170
+ props: {
171
+ animation: 'wave'
172
+ },
173
+ style: waveAnimation || {
174
+ animation: `${waveKeyframe} 2s linear 0.5s infinite`
175
+ }
176
+ }]
177
+ };
178
+ });
131
179
  const Skeleton = /*#__PURE__*/React.forwardRef(function Skeleton(inProps, ref) {
132
180
  const props = useThemeProps({
133
181
  props: inProps,
@@ -46,7 +46,7 @@ export interface SliderOwnProps {
46
46
  /**
47
47
  * The components used for each slot inside.
48
48
  *
49
- * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
49
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
50
50
  *
51
51
  * @default {}
52
52
  */
@@ -64,7 +64,7 @@ export interface SliderOwnProps {
64
64
  * The extra props for the slot components.
65
65
  * You can override the existing props or add new ones.
66
66
  *
67
- * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
67
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
68
68
  *
69
69
  * @default {}
70
70
  */
package/Slider/Slider.js CHANGED
@@ -795,7 +795,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
795
795
  /**
796
796
  * The components used for each slot inside.
797
797
  *
798
- * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
798
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
799
799
  *
800
800
  * @default {}
801
801
  */
@@ -813,7 +813,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
813
813
  * The extra props for the slot components.
814
814
  * You can override the existing props or add new ones.
815
815
  *
816
- * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
816
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
817
817
  *
818
818
  * @default {}
819
819
  */