@mui/material 6.0.0-alpha.10 → 6.0.0-alpha.11

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 (208) hide show
  1. package/Accordion/Accordion.d.ts +3 -3
  2. package/AccordionActions/AccordionActions.d.ts +2 -2
  3. package/AccordionDetails/AccordionDetails.d.ts +2 -2
  4. package/AccordionSummary/AccordionSummary.d.ts +3 -3
  5. package/Alert/Alert.d.ts +3 -3
  6. package/AlertTitle/AlertTitle.d.ts +3 -3
  7. package/AppBar/AppBar.d.ts +3 -3
  8. package/Autocomplete/Autocomplete.d.ts +2 -2
  9. package/Autocomplete/Autocomplete.js +9 -17
  10. package/Avatar/Avatar.d.ts +2 -2
  11. package/AvatarGroup/AvatarGroup.d.ts +2 -2
  12. package/Backdrop/Backdrop.d.ts +3 -3
  13. package/Badge/Badge.d.ts +3 -3
  14. package/BottomNavigation/BottomNavigation.d.ts +2 -2
  15. package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
  16. package/Box/Box.d.ts +2 -2
  17. package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  18. package/Button/Button.d.ts +4 -4
  19. package/ButtonBase/ButtonBase.d.ts +2 -2
  20. package/ButtonGroup/ButtonGroup.d.ts +2 -2
  21. package/CHANGELOG.md +76 -0
  22. package/Card/Card.d.ts +3 -3
  23. package/CardActionArea/CardActionArea.d.ts +3 -3
  24. package/CardActions/CardActions.d.ts +2 -2
  25. package/CardContent/CardContent.d.ts +2 -2
  26. package/CardHeader/CardHeader.d.ts +2 -2
  27. package/CardMedia/CardMedia.d.ts +2 -2
  28. package/Checkbox/Checkbox.d.ts +4 -4
  29. package/Chip/Chip.d.ts +5 -5
  30. package/Chip/Chip.js +0 -2
  31. package/CircularProgress/CircularProgress.d.ts +2 -2
  32. package/Collapse/Collapse.d.ts +5 -5
  33. package/Collapse/Collapse.js +1 -2
  34. package/Container/Container.d.ts +2 -2
  35. package/CssBaseline/CssBaseline.d.ts +2 -2
  36. package/Dialog/Dialog.d.ts +3 -3
  37. package/Dialog/Dialog.js +1 -2
  38. package/DialogActions/DialogActions.d.ts +2 -2
  39. package/DialogContent/DialogContent.d.ts +2 -2
  40. package/DialogContentText/DialogContentText.d.ts +3 -3
  41. package/DialogTitle/DialogTitle.d.ts +3 -3
  42. package/Divider/Divider.d.ts +3 -3
  43. package/Drawer/Drawer.d.ts +3 -3
  44. package/Drawer/Drawer.js +1 -2
  45. package/Fab/Fab.d.ts +3 -3
  46. package/Fade/Fade.d.ts +3 -3
  47. package/Fade/Fade.js +1 -1
  48. package/FilledInput/FilledInput.d.ts +3 -3
  49. package/FormControl/FormControl.d.ts +6 -6
  50. package/FormControlLabel/FormControlLabel.d.ts +4 -4
  51. package/FormGroup/FormGroup.d.ts +3 -3
  52. package/FormHelperText/FormHelperText.d.ts +2 -2
  53. package/FormLabel/FormLabel.d.ts +4 -4
  54. package/GlobalStyles/GlobalStyles.d.ts +3 -3
  55. package/Grid/Grid.d.ts +2 -2
  56. package/Grid/Grid.js +7 -13
  57. package/Grow/Grow.d.ts +5 -5
  58. package/Grow/Grow.js +1 -1
  59. package/Hidden/Hidden.d.ts +2 -2
  60. package/Icon/Icon.d.ts +3 -3
  61. package/IconButton/IconButton.d.ts +4 -4
  62. package/ImageList/ImageList.d.ts +2 -2
  63. package/ImageListItem/ImageListItem.d.ts +2 -2
  64. package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
  65. package/Input/Input.d.ts +3 -3
  66. package/InputAdornment/InputAdornment.d.ts +2 -2
  67. package/InputBase/InputBase.d.ts +2 -2
  68. package/InputBase/InputBase.js +26 -20
  69. package/InputLabel/InputLabel.d.ts +3 -3
  70. package/LinearProgress/LinearProgress.d.ts +2 -2
  71. package/Link/Link.d.ts +4 -4
  72. package/Link/Link.js +1 -2
  73. package/List/List.d.ts +3 -3
  74. package/ListItem/ListItem.d.ts +3 -3
  75. package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  76. package/ListItemButton/ListItemButton.d.ts +3 -3
  77. package/ListItemIcon/ListItemIcon.d.ts +2 -2
  78. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  79. package/ListItemText/ListItemText.d.ts +2 -2
  80. package/ListSubheader/ListSubheader.d.ts +2 -2
  81. package/Menu/Menu.d.ts +4 -4
  82. package/MenuItem/MenuItem.d.ts +3 -3
  83. package/MenuList/MenuList.d.ts +4 -4
  84. package/MobileStepper/MobileStepper.d.ts +3 -3
  85. package/Modal/Modal.d.ts +8 -8
  86. package/NativeSelect/NativeSelect.d.ts +3 -3
  87. package/OutlinedInput/OutlinedInput.d.ts +3 -3
  88. package/Pagination/Pagination.d.ts +2 -2
  89. package/PaginationItem/PaginationItem.d.ts +2 -2
  90. package/Paper/Paper.d.ts +3 -3
  91. package/Paper/Paper.js +1 -2
  92. package/Popover/Popover.d.ts +4 -4
  93. package/Popper/Popper.d.ts +4 -4
  94. package/Popper/Popper.js +4 -4
  95. package/Radio/Radio.d.ts +3 -3
  96. package/RadioGroup/RadioGroup.d.ts +3 -3
  97. package/Rating/Rating.d.ts +2 -2
  98. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  99. package/Select/Select.d.ts +3 -3
  100. package/Skeleton/Skeleton.d.ts +2 -2
  101. package/Slide/Slide.d.ts +4 -4
  102. package/Slide/Slide.js +1 -1
  103. package/Slider/Slider.d.ts +3 -3
  104. package/Snackbar/Snackbar.d.ts +2 -2
  105. package/Snackbar/Snackbar.js +1 -2
  106. package/SnackbarContent/SnackbarContent.d.ts +3 -3
  107. package/SpeedDial/SpeedDial.d.ts +2 -2
  108. package/SpeedDial/SpeedDial.js +1 -2
  109. package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
  110. package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
  111. package/Stack/Stack.d.ts +2 -2
  112. package/Step/Step.d.ts +2 -2
  113. package/StepButton/StepButton.d.ts +3 -3
  114. package/StepConnector/StepConnector.d.ts +3 -3
  115. package/StepContent/StepContent.d.ts +2 -2
  116. package/StepIcon/StepIcon.d.ts +2 -2
  117. package/StepLabel/StepLabel.d.ts +2 -2
  118. package/Stepper/Stepper.d.ts +2 -2
  119. package/SvgIcon/SvgIcon.d.ts +3 -3
  120. package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
  121. package/SwipeableDrawer/SwipeableDrawer.js +3 -3
  122. package/Switch/Switch.d.ts +4 -4
  123. package/Tab/Tab.d.ts +4 -4
  124. package/Tab/Tab.js +3 -1
  125. package/Tab/tabClasses.d.ts +1 -1
  126. package/TabScrollButton/TabScrollButton.d.ts +2 -2
  127. package/Table/Table.d.ts +2 -2
  128. package/TableBody/TableBody.d.ts +2 -2
  129. package/TableCell/TableCell.d.ts +2 -2
  130. package/TableContainer/TableContainer.d.ts +2 -2
  131. package/TableFooter/TableFooter.d.ts +2 -2
  132. package/TableHead/TableHead.d.ts +2 -2
  133. package/TablePagination/TablePagination.d.ts +4 -4
  134. package/TableRow/TableRow.d.ts +2 -2
  135. package/TableSortLabel/TableSortLabel.d.ts +3 -3
  136. package/Tabs/Tabs.d.ts +2 -2
  137. package/Tabs/Tabs.js +1 -2
  138. package/TextField/TextField.d.ts +10 -10
  139. package/ToggleButton/ToggleButton.d.ts +3 -3
  140. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
  141. package/Toolbar/Toolbar.d.ts +2 -2
  142. package/Tooltip/Tooltip.d.ts +2 -2
  143. package/Tooltip/Tooltip.js +1 -2
  144. package/Typography/Typography.d.ts +3 -3
  145. package/Typography/Typography.js +2 -2
  146. package/Zoom/Zoom.d.ts +3 -3
  147. package/Zoom/Zoom.js +1 -1
  148. package/index.js +1 -1
  149. package/modern/Autocomplete/Autocomplete.js +9 -17
  150. package/modern/Chip/Chip.js +0 -2
  151. package/modern/Collapse/Collapse.js +1 -2
  152. package/modern/Dialog/Dialog.js +1 -2
  153. package/modern/Drawer/Drawer.js +1 -2
  154. package/modern/Fade/Fade.js +1 -1
  155. package/modern/Grid/Grid.js +7 -13
  156. package/modern/Grow/Grow.js +1 -1
  157. package/modern/InputBase/InputBase.js +26 -20
  158. package/modern/Link/Link.js +1 -2
  159. package/modern/Paper/Paper.js +1 -2
  160. package/modern/Popper/Popper.js +4 -4
  161. package/modern/Slide/Slide.js +1 -1
  162. package/modern/Snackbar/Snackbar.js +1 -2
  163. package/modern/SpeedDial/SpeedDial.js +1 -2
  164. package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -3
  165. package/modern/Tab/Tab.js +3 -1
  166. package/modern/Tabs/Tabs.js +1 -2
  167. package/modern/Tooltip/Tooltip.js +1 -2
  168. package/modern/Typography/Typography.js +2 -2
  169. package/modern/Zoom/Zoom.js +1 -1
  170. package/modern/index.js +1 -1
  171. package/modern/styles/createTheme.js +1 -1
  172. package/modern/styles/index.js +2 -1
  173. package/modern/styles/stringifyTheme.js +55 -0
  174. package/modern/zero-styled/index.js +20 -1
  175. package/node/Autocomplete/Autocomplete.js +9 -17
  176. package/node/Chip/Chip.js +0 -2
  177. package/node/Collapse/Collapse.js +1 -2
  178. package/node/Dialog/Dialog.js +1 -2
  179. package/node/Drawer/Drawer.js +1 -2
  180. package/node/Fade/Fade.js +2 -2
  181. package/node/Grid/Grid.js +7 -13
  182. package/node/Grow/Grow.js +2 -2
  183. package/node/InputBase/InputBase.js +25 -19
  184. package/node/Link/Link.js +1 -2
  185. package/node/Paper/Paper.js +1 -2
  186. package/node/Popper/Popper.js +4 -4
  187. package/node/Slide/Slide.js +2 -2
  188. package/node/Snackbar/Snackbar.js +1 -2
  189. package/node/SpeedDial/SpeedDial.js +1 -2
  190. package/node/SwipeableDrawer/SwipeableDrawer.js +5 -4
  191. package/node/Tab/Tab.js +3 -1
  192. package/node/Tabs/Tabs.js +1 -2
  193. package/node/Tooltip/Tooltip.js +1 -2
  194. package/node/Typography/Typography.js +2 -2
  195. package/node/Zoom/Zoom.js +2 -2
  196. package/node/index.js +1 -1
  197. package/node/styles/createTheme.js +1 -1
  198. package/node/styles/index.js +20 -1
  199. package/node/styles/stringifyTheme.js +62 -0
  200. package/node/zero-styled/index.js +29 -0
  201. package/package.json +6 -6
  202. package/styles/createTheme.js +1 -1
  203. package/styles/index.d.ts +3 -0
  204. package/styles/index.js +2 -1
  205. package/styles/stringifyTheme.d.ts +20 -0
  206. package/styles/stringifyTheme.js +55 -0
  207. package/zero-styled/index.d.ts +7 -0
  208. package/zero-styled/index.js +20 -1
@@ -58,11 +58,11 @@ export interface SkeletonTypeMap<
58
58
  *
59
59
  * Demos:
60
60
  *
61
- * - [Skeleton](https://mui.com/material-ui/react-skeleton/)
61
+ * - [Skeleton](https://next.mui.com/material-ui/react-skeleton/)
62
62
  *
63
63
  * API:
64
64
  *
65
- * - [Skeleton API](https://mui.com/material-ui/api/skeleton/)
65
+ * - [Skeleton API](https://next.mui.com/material-ui/api/skeleton/)
66
66
  */
67
67
  declare const Skeleton: OverridableComponent<SkeletonTypeMap>;
68
68
 
package/Slide/Slide.d.ts CHANGED
@@ -48,17 +48,17 @@ export interface SlideProps extends TransitionProps {
48
48
  }
49
49
 
50
50
  /**
51
- * The Slide transition is used by the [Drawer](https://mui.com/material-ui/react-drawer/) component.
51
+ * The Slide transition is used by the [Drawer](https://next.mui.com/material-ui/react-drawer/) component.
52
52
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
53
53
  *
54
54
  * Demos:
55
55
  *
56
- * - [Dialog](https://mui.com/material-ui/react-dialog/)
57
- * - [Transitions](https://mui.com/material-ui/transitions/)
56
+ * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
57
+ * - [Transitions](https://next.mui.com/material-ui/transitions/)
58
58
  *
59
59
  * API:
60
60
  *
61
- * - [Slide API](https://mui.com/material-ui/api/slide/)
61
+ * - [Slide API](https://next.mui.com/material-ui/api/slide/)
62
62
  * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
63
63
  */
64
64
  export default function Slide(props: SlideProps): React.JSX.Element;
package/Slide/Slide.js CHANGED
@@ -8,7 +8,7 @@ import HTMLElementType from '@mui/utils/HTMLElementType';
8
8
  import elementAcceptingRef from '@mui/utils/elementAcceptingRef';
9
9
  import debounce from '../utils/debounce';
10
10
  import useForkRef from '../utils/useForkRef';
11
- import useTheme from '../styles/useTheme';
11
+ import { useTheme } from '../zero-styled';
12
12
  import { reflow, getTransitionProps } from '../transitions/utils';
13
13
  import { ownerWindow } from '../utils';
14
14
 
@@ -281,7 +281,7 @@ export interface SliderTypeMap<
281
281
  }
282
282
 
283
283
  export interface SliderValueLabelProps extends React.HTMLAttributes<HTMLSpanElement> {
284
- children: React.ReactElement<any>;
284
+ children: React.ReactElement<unknown>;
285
285
  index: number;
286
286
  open: boolean;
287
287
  value: number;
@@ -306,11 +306,11 @@ export declare const SliderValueLabel: React.FC<SliderValueLabelProps>;
306
306
  *
307
307
  * Demos:
308
308
  *
309
- * - [Slider](https://mui.com/material-ui/react-slider/)
309
+ * - [Slider](https://next.mui.com/material-ui/react-slider/)
310
310
  *
311
311
  * API:
312
312
  *
313
- * - [Slider API](https://mui.com/material-ui/api/slider/)
313
+ * - [Slider API](https://next.mui.com/material-ui/api/slider/)
314
314
  */
315
315
  declare const Slider: OverridableComponent<SliderTypeMap>;
316
316
 
@@ -121,10 +121,10 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
121
121
  *
122
122
  * Demos:
123
123
  *
124
- * - [Snackbar](https://mui.com/material-ui/react-snackbar/)
124
+ * - [Snackbar](https://next.mui.com/material-ui/react-snackbar/)
125
125
  *
126
126
  * API:
127
127
  *
128
- * - [Snackbar API](https://mui.com/material-ui/api/snackbar/)
128
+ * - [Snackbar API](https://next.mui.com/material-ui/api/snackbar/)
129
129
  */
130
130
  export default function Snackbar(props: SnackbarProps): React.JSX.Element;
@@ -6,8 +6,7 @@ import { useSlotProps } from '@mui/base/utils';
6
6
  import composeClasses from '@mui/utils/composeClasses';
7
7
  import { ClickAwayListener } from '@mui/base/ClickAwayListener';
8
8
  import { useSnackbar } from '@mui/base/useSnackbar';
9
- import { styled, createUseThemeProps } from '../zero-styled';
10
- import useTheme from '../styles/useTheme';
9
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
11
10
  import capitalize from '../utils/capitalize';
12
11
  import Grow from '../Grow';
13
12
  import SnackbarContent from '../SnackbarContent';
@@ -33,11 +33,11 @@ export interface SnackbarContentProps extends StandardProps<PaperProps, 'childre
33
33
  *
34
34
  * Demos:
35
35
  *
36
- * - [Snackbar](https://mui.com/material-ui/react-snackbar/)
36
+ * - [Snackbar](https://next.mui.com/material-ui/react-snackbar/)
37
37
  *
38
38
  * API:
39
39
  *
40
- * - [SnackbarContent API](https://mui.com/material-ui/api/snackbar-content/)
41
- * - inherits [Paper API](https://mui.com/material-ui/api/paper/)
40
+ * - [SnackbarContent API](https://next.mui.com/material-ui/api/snackbar-content/)
41
+ * - inherits [Paper API](https://next.mui.com/material-ui/api/paper/)
42
42
  */
43
43
  export default function SnackbarContent(props: SnackbarContentProps): React.JSX.Element;
@@ -123,10 +123,10 @@ export interface SpeedDialOwnerState extends SpeedDialProps {}
123
123
  *
124
124
  * Demos:
125
125
  *
126
- * - [Speed Dial](https://mui.com/material-ui/react-speed-dial/)
126
+ * - [Speed Dial](https://next.mui.com/material-ui/react-speed-dial/)
127
127
  *
128
128
  * API:
129
129
  *
130
- * - [SpeedDial API](https://mui.com/material-ui/api/speed-dial/)
130
+ * - [SpeedDial API](https://next.mui.com/material-ui/api/speed-dial/)
131
131
  */
132
132
  export default function SpeedDial(props: SpeedDialProps): React.JSX.Element;
@@ -7,8 +7,7 @@ import clsx from 'clsx';
7
7
  import composeClasses from '@mui/utils/composeClasses';
8
8
  import useTimeout from '@mui/utils/useTimeout';
9
9
  import clamp from '@mui/utils/clamp';
10
- import { styled, createUseThemeProps } from '../zero-styled';
11
- import useTheme from '../styles/useTheme';
10
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
12
11
  import Zoom from '../Zoom';
13
12
  import Fab from '../Fab';
14
13
  import capitalize from '../utils/capitalize';
@@ -53,11 +53,11 @@ export interface SpeedDialActionProps extends StandardProps<Partial<TooltipProps
53
53
  *
54
54
  * Demos:
55
55
  *
56
- * - [Speed Dial](https://mui.com/material-ui/react-speed-dial/)
56
+ * - [Speed Dial](https://next.mui.com/material-ui/react-speed-dial/)
57
57
  *
58
58
  * API:
59
59
  *
60
- * - [SpeedDialAction API](https://mui.com/material-ui/api/speed-dial-action/)
61
- * - inherits [Tooltip API](https://mui.com/material-ui/api/tooltip/)
60
+ * - [SpeedDialAction API](https://next.mui.com/material-ui/api/speed-dial-action/)
61
+ * - inherits [Tooltip API](https://next.mui.com/material-ui/api/tooltip/)
62
62
  */
63
63
  export default function SpeedDialAction(props: SpeedDialActionProps): React.JSX.Element;
@@ -33,11 +33,11 @@ export interface SpeedDialIconProps
33
33
  *
34
34
  * Demos:
35
35
  *
36
- * - [Speed Dial](https://mui.com/material-ui/react-speed-dial/)
36
+ * - [Speed Dial](https://next.mui.com/material-ui/react-speed-dial/)
37
37
  *
38
38
  * API:
39
39
  *
40
- * - [SpeedDialIcon API](https://mui.com/material-ui/api/speed-dial-icon/)
40
+ * - [SpeedDialIcon API](https://next.mui.com/material-ui/api/speed-dial-icon/)
41
41
  */
42
42
  declare const SpeedDialIcon: ((props: SpeedDialIconProps) => React.JSX.Element) & {
43
43
  muiName: string;
package/Stack/Stack.d.ts CHANGED
@@ -50,11 +50,11 @@ export interface StackTypeMap<
50
50
  *
51
51
  * Demos:
52
52
  *
53
- * - [Stack](https://mui.com/material-ui/react-stack/)
53
+ * - [Stack](https://next.mui.com/material-ui/react-stack/)
54
54
  *
55
55
  * API:
56
56
  *
57
- * - [Stack API](https://mui.com/material-ui/api/stack/)
57
+ * - [Stack API](https://next.mui.com/material-ui/api/stack/)
58
58
  */
59
59
  declare const Stack: OverridableComponent<StackTypeMap>;
60
60
 
package/Step/Step.d.ts CHANGED
@@ -68,11 +68,11 @@ export type StepClasskey = keyof NonNullable<StepProps['classes']>;
68
68
  *
69
69
  * Demos:
70
70
  *
71
- * - [Stepper](https://mui.com/material-ui/react-stepper/)
71
+ * - [Stepper](https://next.mui.com/material-ui/react-stepper/)
72
72
  *
73
73
  * API:
74
74
  *
75
- * - [Step API](https://mui.com/material-ui/api/step/)
75
+ * - [Step API](https://next.mui.com/material-ui/api/step/)
76
76
  */
77
77
  declare const Step: OverridableComponent<StepTypeMap>;
78
78
 
@@ -47,12 +47,12 @@ export type StepButtonTypeMap<
47
47
  *
48
48
  * Demos:
49
49
  *
50
- * - [Stepper](https://mui.com/material-ui/react-stepper/)
50
+ * - [Stepper](https://next.mui.com/material-ui/react-stepper/)
51
51
  *
52
52
  * API:
53
53
  *
54
- * - [StepButton API](https://mui.com/material-ui/api/step-button/)
55
- * - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
54
+ * - [StepButton API](https://next.mui.com/material-ui/api/step-button/)
55
+ * - inherits [ButtonBase API](https://next.mui.com/material-ui/api/button-base/)
56
56
  */
57
57
  declare const StepButton: ExtendButtonBase<
58
58
  StepButtonTypeMap<{}, ButtonBaseTypeMap['defaultComponent']>
@@ -4,7 +4,7 @@ import { InternalStandardProps as StandardProps } from '..';
4
4
  import { Theme } from '../styles';
5
5
  import { StepConnectorClasses } from './stepConnectorClasses';
6
6
 
7
- export type StepConnectorIcon = React.ReactElement<any> | string | number;
7
+ export type StepConnectorIcon = React.ReactElement<unknown> | string | number;
8
8
 
9
9
  export interface StepConnectorProps
10
10
  extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'children'> {
@@ -24,10 +24,10 @@ export type StepConnectorClasskey = keyof NonNullable<StepConnectorProps['classe
24
24
  *
25
25
  * Demos:
26
26
  *
27
- * - [Stepper](https://mui.com/material-ui/react-stepper/)
27
+ * - [Stepper](https://next.mui.com/material-ui/react-stepper/)
28
28
  *
29
29
  * API:
30
30
  *
31
- * - [StepConnector API](https://mui.com/material-ui/api/step-connector/)
31
+ * - [StepConnector API](https://next.mui.com/material-ui/api/step-connector/)
32
32
  */
33
33
  export default function StepConnector(props: StepConnectorProps): React.JSX.Element;
@@ -47,10 +47,10 @@ export type StepContentClasskey = keyof NonNullable<StepContentProps['classes']>
47
47
  *
48
48
  * Demos:
49
49
  *
50
- * - [Stepper](https://mui.com/material-ui/react-stepper/)
50
+ * - [Stepper](https://next.mui.com/material-ui/react-stepper/)
51
51
  *
52
52
  * API:
53
53
  *
54
- * - [StepContent API](https://mui.com/material-ui/api/step-content/)
54
+ * - [StepContent API](https://next.mui.com/material-ui/api/step-content/)
55
55
  */
56
56
  export default function StepContent(props: StepContentProps): React.JSX.Element;
@@ -41,10 +41,10 @@ export type StepIconClasskey = keyof NonNullable<StepIconProps['classes']>;
41
41
  *
42
42
  * Demos:
43
43
  *
44
- * - [Stepper](https://mui.com/material-ui/react-stepper/)
44
+ * - [Stepper](https://next.mui.com/material-ui/react-stepper/)
45
45
  *
46
46
  * API:
47
47
  *
48
- * - [StepIcon API](https://mui.com/material-ui/api/step-icon/)
48
+ * - [StepIcon API](https://next.mui.com/material-ui/api/step-icon/)
49
49
  */
50
50
  export default function StepIcon(props: StepIconProps): React.JSX.Element;
@@ -86,11 +86,11 @@ export type StepLabelClasskey = keyof NonNullable<StepLabelProps['classes']>;
86
86
  *
87
87
  * Demos:
88
88
  *
89
- * - [Stepper](https://mui.com/material-ui/react-stepper/)
89
+ * - [Stepper](https://next.mui.com/material-ui/react-stepper/)
90
90
  *
91
91
  * API:
92
92
  *
93
- * - [StepLabel API](https://mui.com/material-ui/api/step-label/)
93
+ * - [StepLabel API](https://next.mui.com/material-ui/api/step-label/)
94
94
  */
95
95
  declare const StepLabel: ((props: StepLabelProps) => React.JSX.Element) & {
96
96
  muiName: string;
@@ -70,11 +70,11 @@ export type StepperClasskey = keyof NonNullable<StepperProps['classes']>;
70
70
  *
71
71
  * Demos:
72
72
  *
73
- * - [Stepper](https://mui.com/material-ui/react-stepper/)
73
+ * - [Stepper](https://next.mui.com/material-ui/react-stepper/)
74
74
  *
75
75
  * API:
76
76
  *
77
- * - [Stepper API](https://mui.com/material-ui/api/stepper/)
77
+ * - [Stepper API](https://next.mui.com/material-ui/api/stepper/)
78
78
  */
79
79
  declare const Stepper: OverridableComponent<StepperTypeMap>;
80
80
 
@@ -94,12 +94,12 @@ export interface SvgIconTypeMap<
94
94
  *
95
95
  * Demos:
96
96
  *
97
- * - [Icons](https://mui.com/material-ui/icons/)
98
- * - [Material Icons](https://mui.com/material-ui/material-icons/)
97
+ * - [Icons](https://next.mui.com/material-ui/icons/)
98
+ * - [Material Icons](https://next.mui.com/material-ui/material-icons/)
99
99
  *
100
100
  * API:
101
101
  *
102
- * - [SvgIcon API](https://mui.com/material-ui/api/svg-icon/)
102
+ * - [SvgIcon API](https://next.mui.com/material-ui/api/svg-icon/)
103
103
  */
104
104
  declare const SvgIcon: OverridableComponent<SvgIconTypeMap> & { muiName: string };
105
105
 
@@ -81,12 +81,12 @@ export interface SwipeableDrawerProps extends Omit<DrawerProps, 'onClose' | 'ope
81
81
  *
82
82
  * Demos:
83
83
  *
84
- * - [Drawer](https://mui.com/material-ui/react-drawer/)
84
+ * - [Drawer](https://next.mui.com/material-ui/react-drawer/)
85
85
  *
86
86
  * API:
87
87
  *
88
- * - [SwipeableDrawer API](https://mui.com/material-ui/api/swipeable-drawer/)
89
- * - inherits [Drawer API](https://mui.com/material-ui/api/drawer/)
88
+ * - [SwipeableDrawer API](https://next.mui.com/material-ui/api/swipeable-drawer/)
89
+ * - inherits [Drawer API](https://next.mui.com/material-ui/api/drawer/)
90
90
  */
91
91
  declare const SwipeableDrawer: React.JSXElementConstructor<SwipeableDrawerProps>;
92
92
 
@@ -4,7 +4,6 @@ import * as React from 'react';
4
4
  import * as ReactDOM from 'react-dom';
5
5
  import PropTypes from 'prop-types';
6
6
  import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
7
- import useThemeProps from '@mui/system/useThemeProps';
8
7
  import { NoSsr } from '@mui/base';
9
8
  import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
10
9
  import useForkRef from '../utils/useForkRef';
@@ -12,13 +11,14 @@ import ownerDocument from '../utils/ownerDocument';
12
11
  import ownerWindow from '../utils/ownerWindow';
13
12
  import useEventCallback from '../utils/useEventCallback';
14
13
  import useEnhancedEffect from '../utils/useEnhancedEffect';
15
- import useTheme from '../styles/useTheme';
14
+ import { createUseThemeProps, useTheme } from '../zero-styled';
16
15
  import { getTransitionProps } from '../transitions/utils';
17
16
  import SwipeArea from './SwipeArea';
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
+ const useThemeProps = createUseThemeProps('MuiSwipeableDrawer');
18
19
 
19
20
  // This value is closed to what browsers are using internally to
20
21
  // trigger a native scroll.
21
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  const UNCERTAINTY_THRESHOLD = 3; // px
23
23
 
24
24
  // This is the part of the drawer displayed on touch start.
@@ -58,12 +58,12 @@ export interface SwitchProps
58
58
  *
59
59
  * Demos:
60
60
  *
61
- * - [Switch](https://mui.com/material-ui/react-switch/)
62
- * - [Transfer List](https://mui.com/material-ui/react-transfer-list/)
61
+ * - [Switch](https://next.mui.com/material-ui/react-switch/)
62
+ * - [Transfer List](https://next.mui.com/material-ui/react-transfer-list/)
63
63
  *
64
64
  * API:
65
65
  *
66
- * - [Switch API](https://mui.com/material-ui/api/switch/)
67
- * - inherits [IconButton API](https://mui.com/material-ui/api/icon-button/)
66
+ * - [Switch API](https://next.mui.com/material-ui/api/switch/)
67
+ * - inherits [IconButton API](https://next.mui.com/material-ui/api/icon-button/)
68
68
  */
69
69
  export default function Switch(props: SwitchProps): React.JSX.Element;
package/Tab/Tab.d.ts CHANGED
@@ -28,7 +28,7 @@ export interface TabOwnProps {
28
28
  /**
29
29
  * The icon to display.
30
30
  */
31
- icon?: string | React.ReactElement<any>;
31
+ icon?: string | React.ReactElement<unknown>;
32
32
  /**
33
33
  * The position of the icon relative to the label.
34
34
  * @default 'top'
@@ -66,12 +66,12 @@ export type TabTypeMap<
66
66
  *
67
67
  * Demos:
68
68
  *
69
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
69
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
70
70
  *
71
71
  * API:
72
72
  *
73
- * - [Tab API](https://mui.com/material-ui/api/tab/)
74
- * - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
73
+ * - [Tab API](https://next.mui.com/material-ui/api/tab/)
74
+ * - inherits [ButtonBase API](https://next.mui.com/material-ui/api/button-base/)
75
75
  */
76
76
  declare const Tab: ExtendButtonBase<TabTypeMap>;
77
77
 
package/Tab/Tab.js CHANGED
@@ -35,7 +35,9 @@ const TabRoot = styled(ButtonBase, {
35
35
  const {
36
36
  ownerState
37
37
  } = props;
38
- return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${capitalize(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped];
38
+ return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${capitalize(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped, {
39
+ [`& .${tabClasses.iconWrapper}`]: styles.iconWrapper
40
+ }];
39
41
  }
40
42
  })(({
41
43
  theme
@@ -17,7 +17,7 @@ export interface TabClasses {
17
17
  fullWidth: string;
18
18
  /** Styles applied to the root element if `wrapped={true}`. */
19
19
  wrapped: string;
20
- /** Styles applied to the wrapper element of `icon` if `icon` is provided. */
20
+ /** Styles applied to the `icon` HTML element if both `icon` and `label` are provided. */
21
21
  iconWrapper: string;
22
22
  }
23
23
  export type TabClassKey = keyof TabClasses;
@@ -69,10 +69,10 @@ export interface TabScrollButtonProps extends ButtonBaseProps {
69
69
  *
70
70
  * Demos:
71
71
  *
72
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
72
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
73
73
  *
74
74
  * API:
75
75
  *
76
- * - [TabScrollButton API](https://mui.com/material-ui/api/tab-scroll-button/)
76
+ * - [TabScrollButton API](https://next.mui.com/material-ui/api/tab-scroll-button/)
77
77
  */
78
78
  export default function TabScrollButton(props: TabScrollButtonProps): React.JSX.Element;
package/Table/Table.d.ts CHANGED
@@ -48,11 +48,11 @@ export interface TableTypeMap<
48
48
  *
49
49
  * Demos:
50
50
  *
51
- * - [Table](https://mui.com/material-ui/react-table/)
51
+ * - [Table](https://next.mui.com/material-ui/react-table/)
52
52
  *
53
53
  * API:
54
54
  *
55
- * - [Table API](https://mui.com/material-ui/api/table/)
55
+ * - [Table API](https://next.mui.com/material-ui/api/table/)
56
56
  */
57
57
  declare const Table: OverridableComponent<TableTypeMap>;
58
58
 
@@ -30,11 +30,11 @@ export interface TableBodyTypeMap<
30
30
  *
31
31
  * Demos:
32
32
  *
33
- * - [Table](https://mui.com/material-ui/react-table/)
33
+ * - [Table](https://next.mui.com/material-ui/react-table/)
34
34
  *
35
35
  * API:
36
36
  *
37
- * - [TableBody API](https://mui.com/material-ui/api/table-body/)
37
+ * - [TableBody API](https://next.mui.com/material-ui/api/table-body/)
38
38
  */
39
39
  declare const TableBody: OverridableComponent<TableBodyTypeMap>;
40
40
 
@@ -77,10 +77,10 @@ export type SortDirection = 'asc' | 'desc' | false;
77
77
  *
78
78
  * Demos:
79
79
  *
80
- * - [Table](https://mui.com/material-ui/react-table/)
80
+ * - [Table](https://next.mui.com/material-ui/react-table/)
81
81
  *
82
82
  * API:
83
83
  *
84
- * - [TableCell API](https://mui.com/material-ui/api/table-cell/)
84
+ * - [TableCell API](https://next.mui.com/material-ui/api/table-cell/)
85
85
  */
86
86
  export default function TableCell(props: TableCellProps): React.JSX.Element;
@@ -30,11 +30,11 @@ export interface TableContainerTypeMap<
30
30
  *
31
31
  * Demos:
32
32
  *
33
- * - [Table](https://mui.com/material-ui/react-table/)
33
+ * - [Table](https://next.mui.com/material-ui/react-table/)
34
34
  *
35
35
  * API:
36
36
  *
37
- * - [TableContainer API](https://mui.com/material-ui/api/table-container/)
37
+ * - [TableContainer API](https://next.mui.com/material-ui/api/table-container/)
38
38
  */
39
39
  declare const TableContainer: OverridableComponent<TableContainerTypeMap>;
40
40
 
@@ -30,11 +30,11 @@ export interface TableFooterTypeMap<
30
30
  *
31
31
  * Demos:
32
32
  *
33
- * - [Table](https://mui.com/material-ui/react-table/)
33
+ * - [Table](https://next.mui.com/material-ui/react-table/)
34
34
  *
35
35
  * API:
36
36
  *
37
- * - [TableFooter API](https://mui.com/material-ui/api/table-footer/)
37
+ * - [TableFooter API](https://next.mui.com/material-ui/api/table-footer/)
38
38
  */
39
39
  declare const TableFooter: OverridableComponent<TableFooterTypeMap>;
40
40
 
@@ -30,11 +30,11 @@ export interface TableHeadTypeMap<
30
30
  *
31
31
  * Demos:
32
32
  *
33
- * - [Table](https://mui.com/material-ui/react-table/)
33
+ * - [Table](https://next.mui.com/material-ui/react-table/)
34
34
  *
35
35
  * API:
36
36
  *
37
- * - [TableHead API](https://mui.com/material-ui/api/table-head/)
37
+ * - [TableHead API](https://next.mui.com/material-ui/api/table-head/)
38
38
  */
39
39
  declare const TableHead: OverridableComponent<TableHeadTypeMap>;
40
40
 
@@ -166,13 +166,13 @@ export interface TablePaginationTypeMap<AdditionalProps, RootComponent extends R
166
166
  *
167
167
  * Demos:
168
168
  *
169
- * - [Pagination](https://mui.com/material-ui/react-pagination/)
170
- * - [Table](https://mui.com/material-ui/react-table/)
169
+ * - [Pagination](https://next.mui.com/material-ui/react-pagination/)
170
+ * - [Table](https://next.mui.com/material-ui/react-table/)
171
171
  *
172
172
  * API:
173
173
  *
174
- * - [TablePagination API](https://mui.com/material-ui/api/table-pagination/)
175
- * - inherits [TableCell API](https://mui.com/material-ui/api/table-cell/)
174
+ * - [TablePagination API](https://next.mui.com/material-ui/api/table-pagination/)
175
+ * - inherits [TableCell API](https://next.mui.com/material-ui/api/table-cell/)
176
176
  */
177
177
  declare const TablePagination: OverridableComponent<
178
178
  TablePaginationTypeMap<{}, React.JSXElementConstructor<TablePaginationBaseProps>>
@@ -42,11 +42,11 @@ export interface TableRowTypeMap<
42
42
  *
43
43
  * Demos:
44
44
  *
45
- * - [Table](https://mui.com/material-ui/react-table/)
45
+ * - [Table](https://next.mui.com/material-ui/react-table/)
46
46
  *
47
47
  * API:
48
48
  *
49
- * - [TableRow API](https://mui.com/material-ui/api/table-row/)
49
+ * - [TableRow API](https://next.mui.com/material-ui/api/table-row/)
50
50
  */
51
51
  declare const TableRow: OverridableComponent<TableRowTypeMap>;
52
52
 
@@ -55,12 +55,12 @@ export type TableSortLabelTypeMap<
55
55
  *
56
56
  * Demos:
57
57
  *
58
- * - [Table](https://mui.com/material-ui/react-table/)
58
+ * - [Table](https://next.mui.com/material-ui/react-table/)
59
59
  *
60
60
  * API:
61
61
  *
62
- * - [TableSortLabel API](https://mui.com/material-ui/api/table-sort-label/)
63
- * - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
62
+ * - [TableSortLabel API](https://next.mui.com/material-ui/api/table-sort-label/)
63
+ * - inherits [ButtonBase API](https://next.mui.com/material-ui/api/button-base/)
64
64
  */
65
65
  declare const TableSortLabel: ExtendButtonBase<TableSortLabelTypeMap>;
66
66
 
package/Tabs/Tabs.d.ts CHANGED
@@ -185,11 +185,11 @@ export interface TabsTypeMap<
185
185
  *
186
186
  * Demos:
187
187
  *
188
- * - [Tabs](https://mui.com/material-ui/react-tabs/)
188
+ * - [Tabs](https://next.mui.com/material-ui/react-tabs/)
189
189
  *
190
190
  * API:
191
191
  *
192
- * - [Tabs API](https://mui.com/material-ui/api/tabs/)
192
+ * - [Tabs API](https://next.mui.com/material-ui/api/tabs/)
193
193
  */
194
194
  declare const Tabs: OverridableComponent<TabsTypeMap>;
195
195
 
package/Tabs/Tabs.js CHANGED
@@ -8,8 +8,7 @@ import refType from '@mui/utils/refType';
8
8
  import { useSlotProps } from '@mui/base/utils';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
10
  import { useRtl } from '@mui/system/RtlProvider';
11
- import { styled, createUseThemeProps } from '../zero-styled';
12
- import useTheme from '../styles/useTheme';
11
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
13
12
  import debounce from '../utils/debounce';
14
13
  import animate from '../internal/animate';
15
14
  import ScrollbarSize from './ScrollbarSize';