@mui/material 9.0.0-alpha.4 → 9.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/ButtonGroup/ButtonGroup.js +1 -9
  2. package/ButtonGroup/ButtonGroup.mjs +1 -9
  3. package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
  4. package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
  5. package/ButtonGroup/buttonGroupClasses.js +1 -1
  6. package/ButtonGroup/buttonGroupClasses.mjs +1 -1
  7. package/CHANGELOG.md +71 -4
  8. package/CardHeader/CardHeader.d.mts +13 -21
  9. package/CardHeader/CardHeader.d.ts +13 -21
  10. package/CardHeader/CardHeader.js +3 -21
  11. package/CardHeader/CardHeader.mjs +3 -21
  12. package/Checkbox/Checkbox.js +1 -7
  13. package/Checkbox/Checkbox.mjs +1 -7
  14. package/Chip/Chip.js +48 -54
  15. package/Chip/Chip.mjs +48 -54
  16. package/Chip/chipClasses.d.mts +0 -104
  17. package/Chip/chipClasses.d.ts +0 -104
  18. package/Chip/chipClasses.js +1 -1
  19. package/Chip/chipClasses.mjs +1 -1
  20. package/Dialog/Dialog.d.mts +0 -21
  21. package/Dialog/Dialog.d.ts +0 -21
  22. package/Dialog/Dialog.js +36 -73
  23. package/Dialog/Dialog.mjs +36 -73
  24. package/Dialog/dialogClasses.d.mts +0 -8
  25. package/Dialog/dialogClasses.d.ts +0 -8
  26. package/Dialog/dialogClasses.js +1 -1
  27. package/Dialog/dialogClasses.mjs +1 -1
  28. package/Divider/Divider.js +2 -2
  29. package/Divider/Divider.mjs +2 -2
  30. package/Divider/dividerClasses.d.mts +0 -4
  31. package/Divider/dividerClasses.d.ts +0 -4
  32. package/Divider/dividerClasses.js +1 -1
  33. package/Divider/dividerClasses.mjs +1 -1
  34. package/Drawer/Drawer.d.mts +0 -12
  35. package/Drawer/Drawer.d.ts +0 -12
  36. package/Drawer/Drawer.js +6 -40
  37. package/Drawer/Drawer.mjs +6 -40
  38. package/Drawer/drawerClasses.d.mts +0 -32
  39. package/Drawer/drawerClasses.d.ts +0 -32
  40. package/Drawer/drawerClasses.js +1 -1
  41. package/Drawer/drawerClasses.mjs +1 -1
  42. package/FilledInput/FilledInput.js +3 -32
  43. package/FilledInput/FilledInput.mjs +3 -32
  44. package/ImageListItemBar/ImageListItemBar.js +4 -17
  45. package/ImageListItemBar/ImageListItemBar.mjs +4 -17
  46. package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
  47. package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
  48. package/ImageListItemBar/imageListItemBarClasses.js +1 -1
  49. package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
  50. package/Input/Input.js +3 -32
  51. package/Input/Input.mjs +3 -32
  52. package/Input/inputClasses.d.mts +0 -16
  53. package/Input/inputClasses.d.ts +0 -16
  54. package/InputBase/InputBase.d.mts +0 -27
  55. package/InputBase/InputBase.d.ts +0 -27
  56. package/InputBase/InputBase.js +6 -35
  57. package/InputBase/InputBase.mjs +6 -35
  58. package/InputBase/inputBaseClasses.d.mts +0 -20
  59. package/InputBase/inputBaseClasses.d.ts +0 -20
  60. package/InputBase/inputBaseClasses.js +1 -1
  61. package/InputBase/inputBaseClasses.mjs +1 -1
  62. package/InputLabel/InputLabel.js +1 -1
  63. package/InputLabel/InputLabel.mjs +1 -1
  64. package/LinearProgress/LinearProgress.js +6 -18
  65. package/LinearProgress/LinearProgress.mjs +6 -18
  66. package/LinearProgress/linearProgressClasses.d.mts +0 -36
  67. package/LinearProgress/linearProgressClasses.d.ts +0 -36
  68. package/LinearProgress/linearProgressClasses.js +1 -1
  69. package/LinearProgress/linearProgressClasses.mjs +1 -1
  70. package/Link/Link.d.mts +1 -1
  71. package/Link/Link.d.ts +1 -1
  72. package/ListItem/ListItem.d.mts +2 -36
  73. package/ListItem/ListItem.d.ts +2 -36
  74. package/ListItem/ListItem.js +27 -152
  75. package/ListItem/ListItem.mjs +27 -152
  76. package/ListItem/listItemClasses.d.mts +2 -4
  77. package/ListItem/listItemClasses.d.ts +2 -4
  78. package/ListItem/listItemClasses.js +1 -1
  79. package/ListItem/listItemClasses.mjs +1 -1
  80. package/ListItemButton/ListItemButton.d.mts +1 -2
  81. package/ListItemButton/ListItemButton.d.ts +1 -2
  82. package/ListItemButton/ListItemButton.js +1 -2
  83. package/ListItemButton/ListItemButton.mjs +1 -2
  84. package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
  85. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
  86. package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
  87. package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
  88. package/ListItemText/ListItemText.d.mts +12 -20
  89. package/ListItemText/ListItemText.d.ts +12 -20
  90. package/ListItemText/ListItemText.js +2 -20
  91. package/ListItemText/ListItemText.mjs +2 -20
  92. package/Modal/Modal.d.mts +1 -41
  93. package/Modal/Modal.d.ts +1 -41
  94. package/Modal/Modal.js +5 -58
  95. package/Modal/Modal.mjs +5 -58
  96. package/OutlinedInput/OutlinedInput.js +2 -14
  97. package/OutlinedInput/OutlinedInput.mjs +2 -14
  98. package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
  99. package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
  100. package/PaginationItem/PaginationItem.d.mts +0 -15
  101. package/PaginationItem/PaginationItem.d.ts +0 -15
  102. package/PaginationItem/PaginationItem.js +3 -24
  103. package/PaginationItem/PaginationItem.mjs +3 -24
  104. package/PaginationItem/paginationItemClasses.d.mts +0 -16
  105. package/PaginationItem/paginationItemClasses.d.ts +0 -16
  106. package/PaginationItem/paginationItemClasses.js +1 -1
  107. package/PaginationItem/paginationItemClasses.mjs +1 -1
  108. package/Radio/Radio.js +1 -13
  109. package/Radio/Radio.mjs +1 -13
  110. package/Rating/Rating.d.mts +0 -9
  111. package/Rating/Rating.d.ts +0 -9
  112. package/Rating/Rating.js +1 -17
  113. package/Rating/Rating.mjs +1 -17
  114. package/Select/SelectInput.js +2 -3
  115. package/Select/SelectInput.mjs +2 -3
  116. package/Select/selectClasses.d.mts +0 -12
  117. package/Select/selectClasses.d.ts +0 -12
  118. package/Select/selectClasses.js +1 -1
  119. package/Select/selectClasses.mjs +1 -1
  120. package/Slider/Slider.d.mts +0 -5
  121. package/Slider/Slider.d.ts +0 -5
  122. package/Slider/Slider.js +2 -8
  123. package/Slider/Slider.mjs +2 -8
  124. package/Slider/sliderClasses.d.mts +0 -28
  125. package/Slider/sliderClasses.d.ts +0 -28
  126. package/Slider/sliderClasses.js +1 -1
  127. package/Slider/sliderClasses.mjs +1 -1
  128. package/Stack/Stack.d.mts +2 -2
  129. package/Stack/Stack.d.ts +2 -2
  130. package/StepConnector/StepConnector.js +2 -8
  131. package/StepConnector/StepConnector.mjs +2 -8
  132. package/StepConnector/stepConnectorClasses.d.mts +0 -8
  133. package/StepConnector/stepConnectorClasses.d.ts +0 -8
  134. package/StepConnector/stepConnectorClasses.js +1 -1
  135. package/StepConnector/stepConnectorClasses.mjs +1 -1
  136. package/StepContent/StepContent.d.mts +1 -16
  137. package/StepContent/StepContent.d.ts +1 -16
  138. package/StepContent/StepContent.js +3 -22
  139. package/StepContent/StepContent.mjs +3 -22
  140. package/StepLabel/StepLabel.d.mts +0 -22
  141. package/StepLabel/StepLabel.d.ts +0 -22
  142. package/StepLabel/StepLabel.js +2 -31
  143. package/StepLabel/StepLabel.mjs +2 -31
  144. package/SvgIcon/createSvgIcon.d.mts +2 -0
  145. package/SvgIcon/createSvgIcon.d.ts +2 -0
  146. package/SvgIcon/createSvgIcon.js +31 -0
  147. package/SvgIcon/createSvgIcon.mjs +26 -0
  148. package/SvgIcon/index.d.mts +1 -0
  149. package/SvgIcon/index.d.ts +1 -0
  150. package/SvgIcon/index.js +8 -0
  151. package/SvgIcon/index.mjs +1 -0
  152. package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
  153. package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
  154. package/SwipeableDrawer/SwipeableDrawer.js +6 -37
  155. package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
  156. package/Switch/Switch.js +0 -11
  157. package/Switch/Switch.mjs +0 -11
  158. package/Tab/Tab.js +1 -3
  159. package/Tab/Tab.mjs +1 -3
  160. package/Tab/tabClasses.d.mts +0 -4
  161. package/Tab/tabClasses.d.ts +0 -4
  162. package/Tab/tabClasses.js +1 -1
  163. package/Tab/tabClasses.mjs +1 -1
  164. package/TablePagination/TablePagination.d.mts +0 -24
  165. package/TablePagination/TablePagination.d.ts +0 -24
  166. package/TablePagination/TablePagination.js +1 -29
  167. package/TablePagination/TablePagination.mjs +1 -29
  168. package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
  169. package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
  170. package/TablePaginationActions/TablePaginationActions.js +2 -14
  171. package/TablePaginationActions/TablePaginationActions.mjs +2 -14
  172. package/TableSortLabel/TableSortLabel.js +2 -7
  173. package/TableSortLabel/TableSortLabel.mjs +2 -7
  174. package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
  175. package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
  176. package/TableSortLabel/tableSortLabelClasses.js +1 -1
  177. package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
  178. package/Tabs/Tabs.js +3 -3
  179. package/Tabs/Tabs.mjs +3 -3
  180. package/Tabs/tabsClasses.d.mts +0 -6
  181. package/Tabs/tabsClasses.d.ts +0 -6
  182. package/Tabs/tabsClasses.js +1 -1
  183. package/Tabs/tabsClasses.mjs +1 -1
  184. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
  185. package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
  186. package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
  187. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
  188. package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  189. package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
  190. package/Typography/Typography.d.mts +3 -3
  191. package/Typography/Typography.d.ts +3 -3
  192. package/Typography/Typography.js +2 -24
  193. package/Typography/Typography.mjs +3 -25
  194. package/index.js +1 -1
  195. package/index.mjs +1 -1
  196. package/internal/SwitchBase.d.mts +0 -10
  197. package/internal/SwitchBase.d.ts +0 -10
  198. package/internal/SwitchBase.js +1 -16
  199. package/internal/SwitchBase.mjs +1 -16
  200. package/package.json +7 -7
  201. package/styles/createThemeWithVars.js +1 -0
  202. package/styles/createThemeWithVars.mjs +1 -0
  203. package/styles/stringifyTheme.js +1 -1
  204. package/styles/stringifyTheme.mjs +1 -1
  205. package/utils/createSvgIcon.d.mts +4 -2
  206. package/utils/createSvgIcon.d.ts +4 -2
  207. package/utils/createSvgIcon.js +6 -24
  208. package/utils/createSvgIcon.mjs +2 -24
  209. package/version/index.js +2 -2
  210. package/version/index.mjs +2 -2
@@ -33,12 +33,10 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
33
33
  name: 'MuiTablePaginationActions'
34
34
  });
35
35
  const {
36
- backIconButtonProps,
37
36
  className,
38
37
  count,
39
38
  disabled = false,
40
39
  getItemAriaLabel,
41
- nextIconButtonProps,
42
40
  onPageChange,
43
41
  page,
44
42
  rowsPerPage,
@@ -100,7 +98,7 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
100
98
  color: "inherit",
101
99
  "aria-label": getItemAriaLabel('previous', page),
102
100
  title: getItemAriaLabel('previous', page),
103
- ...(previousButtonSlotProps ?? backIconButtonProps),
101
+ ...previousButtonSlotProps,
104
102
  children: isRtl ? /*#__PURE__*/_jsx(NextButtonIcon, {
105
103
  ...slotProps.nextButtonIcon
106
104
  }) : /*#__PURE__*/_jsx(PreviousButtonIcon, {
@@ -112,7 +110,7 @@ const TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePagin
112
110
  color: "inherit",
113
111
  "aria-label": getItemAriaLabel('next', page),
114
112
  title: getItemAriaLabel('next', page),
115
- ...(nextButtonSlotProps ?? nextIconButtonProps),
113
+ ...nextButtonSlotProps,
116
114
  children: isRtl ? /*#__PURE__*/_jsx(PreviousButtonIcon, {
117
115
  ...slotProps.previousButtonIcon
118
116
  }) : /*#__PURE__*/_jsx(NextButtonIcon, {
@@ -137,11 +135,6 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remo
137
135
  // │ These PropTypes are generated from the TypeScript type definitions. │
138
136
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
139
137
  // └─────────────────────────────────────────────────────────────────────┘
140
- /**
141
- * This prop is an alias for `slotProps.previousButton` and will be overridden by it if both are used.
142
- * @deprecated Use `slotProps.previousButton` instead.
143
- */
144
- backIconButtonProps: PropTypes.object,
145
138
  /**
146
139
  * @ignore
147
140
  */
@@ -172,11 +165,6 @@ process.env.NODE_ENV !== "production" ? TablePaginationActions.propTypes /* remo
172
165
  * @returns {string}
173
166
  */
174
167
  getItemAriaLabel: PropTypes.func.isRequired,
175
- /**
176
- * This prop is an alias for `slotProps.nextButton` and will be overridden by it if both are used.
177
- * @deprecated Use `slotProps.nextButton` instead.
178
- */
179
- nextIconButtonProps: PropTypes.object,
180
168
  /**
181
169
  * @ignore
182
170
  */
@@ -28,7 +28,7 @@ const useUtilityClasses = ownerState => {
28
28
  } = ownerState;
29
29
  const slots = {
30
30
  root: ['root', active && 'active', `direction${(0, _capitalize.default)(direction)}`],
31
- icon: ['icon', `iconDirection${(0, _capitalize.default)(direction)}`]
31
+ icon: ['icon']
32
32
  };
33
33
  return (0, _composeClasses.default)(slots, _tableSortLabelClasses.getTableSortLabelUtilityClass, classes);
34
34
  };
@@ -69,12 +69,7 @@ const TableSortLabelRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
69
69
  const TableSortLabelIcon = (0, _zeroStyled.styled)('span', {
70
70
  name: 'MuiTableSortLabel',
71
71
  slot: 'Icon',
72
- overridesResolver: (props, styles) => {
73
- const {
74
- ownerState
75
- } = props;
76
- return [styles.icon, styles[`iconDirection${(0, _capitalize.default)(ownerState.direction)}`]];
77
- }
72
+ overridesResolver: (props, styles) => styles.icon
78
73
  })((0, _memoTheme.default)(({
79
74
  theme
80
75
  }) => ({
@@ -21,7 +21,7 @@ const useUtilityClasses = ownerState => {
21
21
  } = ownerState;
22
22
  const slots = {
23
23
  root: ['root', active && 'active', `direction${capitalize(direction)}`],
24
- icon: ['icon', `iconDirection${capitalize(direction)}`]
24
+ icon: ['icon']
25
25
  };
26
26
  return composeClasses(slots, getTableSortLabelUtilityClass, classes);
27
27
  };
@@ -62,12 +62,7 @@ const TableSortLabelRoot = styled(ButtonBase, {
62
62
  const TableSortLabelIcon = styled('span', {
63
63
  name: 'MuiTableSortLabel',
64
64
  slot: 'Icon',
65
- overridesResolver: (props, styles) => {
66
- const {
67
- ownerState
68
- } = props;
69
- return [styles.icon, styles[`iconDirection${capitalize(ownerState.direction)}`]];
70
- }
65
+ overridesResolver: (props, styles) => styles.icon
71
66
  })(memoTheme(({
72
67
  theme
73
68
  }) => ({
@@ -9,14 +9,6 @@ export interface TableSortLabelClasses {
9
9
  active: string;
10
10
  /** Styles applied to the icon component. */
11
11
  icon: string;
12
- /** Styles applied to the icon component if `direction="desc"`.
13
- * @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#TableSortLabel-css-MuiTableSortLabel-icon) and [.MuiTableSortLabel-directionDesc](/material-ui/api/table-sort-label/#table-sort-label-classes-MuiTableSortLabel-directionDesc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
14
- */
15
- iconDirectionDesc: string;
16
- /** Styles applied to the icon component if `direction="asc"`.
17
- * @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#TableSortLabel-css-MuiTableSortLabel-icon) and [.MuiTableSortLabel-directionAsc](/material-ui/api/table-sort-label/#table-sort-label-classes-MuiTableSortLabel-directionAsc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
18
- */
19
- iconDirectionAsc: string;
20
12
  }
21
13
  export type TableSortLabelClassKey = keyof TableSortLabelClasses;
22
14
  export declare function getTableSortLabelUtilityClass(slot: string): string;
@@ -9,14 +9,6 @@ export interface TableSortLabelClasses {
9
9
  active: string;
10
10
  /** Styles applied to the icon component. */
11
11
  icon: string;
12
- /** Styles applied to the icon component if `direction="desc"`.
13
- * @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#TableSortLabel-css-MuiTableSortLabel-icon) and [.MuiTableSortLabel-directionDesc](/material-ui/api/table-sort-label/#table-sort-label-classes-MuiTableSortLabel-directionDesc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
14
- */
15
- iconDirectionDesc: string;
16
- /** Styles applied to the icon component if `direction="asc"`.
17
- * @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#TableSortLabel-css-MuiTableSortLabel-icon) and [.MuiTableSortLabel-directionAsc](/material-ui/api/table-sort-label/#table-sort-label-classes-MuiTableSortLabel-directionAsc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
18
- */
19
- iconDirectionAsc: string;
20
12
  }
21
13
  export type TableSortLabelClassKey = keyof TableSortLabelClasses;
22
14
  export declare function getTableSortLabelUtilityClass(slot: string): string;
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getTableSortLabelUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiTableSortLabel', slot);
13
13
  }
14
- const tableSortLabelClasses = (0, _generateUtilityClasses.default)('MuiTableSortLabel', ['root', 'active', 'icon', 'iconDirectionDesc', 'iconDirectionAsc', 'directionDesc', 'directionAsc']);
14
+ const tableSortLabelClasses = (0, _generateUtilityClasses.default)('MuiTableSortLabel', ['root', 'active', 'icon', 'directionDesc', 'directionAsc']);
15
15
  var _default = exports.default = tableSortLabelClasses;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getTableSortLabelUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiTableSortLabel', slot);
5
5
  }
6
- const tableSortLabelClasses = generateUtilityClasses('MuiTableSortLabel', ['root', 'active', 'icon', 'iconDirectionDesc', 'iconDirectionAsc', 'directionDesc', 'directionAsc']);
6
+ const tableSortLabelClasses = generateUtilityClasses('MuiTableSortLabel', ['root', 'active', 'icon', 'directionDesc', 'directionAsc']);
7
7
  export default tableSortLabelClasses;
package/Tabs/Tabs.js CHANGED
@@ -43,7 +43,7 @@ const useUtilityClasses = ownerState => {
43
43
  const slots = {
44
44
  root: ['root', vertical && 'vertical'],
45
45
  scroller: ['scroller', fixed && 'fixed', hideScrollbar && 'hideScrollbar', scrollableX && 'scrollableX', scrollableY && 'scrollableY'],
46
- list: ['list', 'flexContainer', vertical && 'flexContainerVertical', vertical && 'vertical', centered && 'centered'],
46
+ list: ['list', vertical && 'vertical', centered && 'centered'],
47
47
  indicator: ['indicator'],
48
48
  scrollButtons: ['scrollButtons', scrollButtonsHideMobile && 'scrollButtonsHideMobile'],
49
49
  scrollableX: [scrollableX && 'scrollableX'],
@@ -151,7 +151,7 @@ const List = (0, _zeroStyled.styled)('div', {
151
151
  const {
152
152
  ownerState
153
153
  } = props;
154
- return [styles.list, styles.flexContainer, ownerState.vertical && styles.flexContainerVertical, ownerState.centered && styles.centered];
154
+ return [styles.list, ownerState.centered && styles.centered];
155
155
  }
156
156
  })({
157
157
  display: 'flex',
@@ -704,7 +704,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
704
704
  };
705
705
  const [ListSlot, listSlotProps] = (0, _useSlot.default)('list', {
706
706
  ref: mergedRef,
707
- className: (0, _clsx.default)(classes.list, classes.flexContainer),
707
+ className: classes.list,
708
708
  elementType: List,
709
709
  externalForwardedProps,
710
710
  ownerState,
package/Tabs/Tabs.mjs CHANGED
@@ -36,7 +36,7 @@ const useUtilityClasses = ownerState => {
36
36
  const slots = {
37
37
  root: ['root', vertical && 'vertical'],
38
38
  scroller: ['scroller', fixed && 'fixed', hideScrollbar && 'hideScrollbar', scrollableX && 'scrollableX', scrollableY && 'scrollableY'],
39
- list: ['list', 'flexContainer', vertical && 'flexContainerVertical', vertical && 'vertical', centered && 'centered'],
39
+ list: ['list', vertical && 'vertical', centered && 'centered'],
40
40
  indicator: ['indicator'],
41
41
  scrollButtons: ['scrollButtons', scrollButtonsHideMobile && 'scrollButtonsHideMobile'],
42
42
  scrollableX: [scrollableX && 'scrollableX'],
@@ -144,7 +144,7 @@ const List = styled('div', {
144
144
  const {
145
145
  ownerState
146
146
  } = props;
147
- return [styles.list, styles.flexContainer, ownerState.vertical && styles.flexContainerVertical, ownerState.centered && styles.centered];
147
+ return [styles.list, ownerState.centered && styles.centered];
148
148
  }
149
149
  })({
150
150
  display: 'flex',
@@ -697,7 +697,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
697
697
  };
698
698
  const [ListSlot, listSlotProps] = useSlot('list', {
699
699
  ref: mergedRef,
700
- className: clsx(classes.list, classes.flexContainer),
700
+ className: classes.list,
701
701
  elementType: List,
702
702
  externalForwardedProps,
703
703
  ownerState,
@@ -3,12 +3,6 @@ export interface TabsClasses {
3
3
  root: string;
4
4
  /** Styles applied to the root element if `orientation="vertical"`. */
5
5
  vertical: string;
6
- /** Styles applied to the flex container element. */
7
- /** @deprecated use `list` instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */
8
- flexContainer: string;
9
- /** Styles applied to the flex container element if `orientation="vertical"`. */
10
- /** @deprecated use a combination of `list` and `vertical` instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */
11
- flexContainerVertical: string;
12
6
  /** Styles applied to the list element. */
13
7
  list: string;
14
8
  /** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
@@ -3,12 +3,6 @@ export interface TabsClasses {
3
3
  root: string;
4
4
  /** Styles applied to the root element if `orientation="vertical"`. */
5
5
  vertical: string;
6
- /** Styles applied to the flex container element. */
7
- /** @deprecated use `list` instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */
8
- flexContainer: string;
9
- /** Styles applied to the flex container element if `orientation="vertical"`. */
10
- /** @deprecated use a combination of `list` and `vertical` instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details. */
11
- flexContainerVertical: string;
12
6
  /** Styles applied to the list element. */
13
7
  list: string;
14
8
  /** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getTabsUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiTabs', slot);
13
13
  }
14
- const tabsClasses = (0, _generateUtilityClasses.default)('MuiTabs', ['root', 'vertical', 'list', 'flexContainer', 'flexContainerVertical', 'centered', 'scroller', 'fixed', 'scrollableX', 'scrollableY', 'hideScrollbar', 'scrollButtons', 'scrollButtonsHideMobile', 'indicator']);
14
+ const tabsClasses = (0, _generateUtilityClasses.default)('MuiTabs', ['root', 'vertical', 'list', 'centered', 'scroller', 'fixed', 'scrollableX', 'scrollableY', 'hideScrollbar', 'scrollButtons', 'scrollButtonsHideMobile', 'indicator']);
15
15
  var _default = exports.default = tabsClasses;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getTabsUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiTabs', slot);
5
5
  }
6
- const tabsClasses = generateUtilityClasses('MuiTabs', ['root', 'vertical', 'list', 'flexContainer', 'flexContainerVertical', 'centered', 'scroller', 'fixed', 'scrollableX', 'scrollableY', 'hideScrollbar', 'scrollButtons', 'scrollButtonsHideMobile', 'indicator']);
6
+ const tabsClasses = generateUtilityClasses('MuiTabs', ['root', 'vertical', 'list', 'centered', 'scroller', 'fixed', 'scrollableX', 'scrollableY', 'hideScrollbar', 'scrollButtons', 'scrollButtonsHideMobile', 'indicator']);
7
7
  export default tabsClasses;
@@ -16,7 +16,6 @@ var _getValidReactChildren = _interopRequireDefault(require("@mui/utils/getValid
16
16
  var _zeroStyled = require("../zero-styled");
17
17
  var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
18
18
  var _DefaultPropsProvider = require("../DefaultPropsProvider");
19
- var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
20
19
  var _toggleButtonGroupClasses = _interopRequireWildcard(require("./toggleButtonGroupClasses"));
21
20
  var _ToggleButtonGroupContext = _interopRequireDefault(require("./ToggleButtonGroupContext"));
22
21
  var _ToggleButtonGroupButtonContext = _interopRequireDefault(require("./ToggleButtonGroupButtonContext"));
@@ -31,7 +30,7 @@ const useUtilityClasses = ownerState => {
31
30
  } = ownerState;
32
31
  const slots = {
33
32
  root: ['root', orientation, fullWidth && 'fullWidth'],
34
- grouped: ['grouped', `grouped${(0, _capitalize.default)(orientation)}`, disabled && 'disabled'],
33
+ grouped: ['grouped', disabled && 'disabled'],
35
34
  firstButton: ['firstButton'],
36
35
  lastButton: ['lastButton'],
37
36
  middleButton: ['middleButton']
@@ -47,8 +46,6 @@ const ToggleButtonGroupRoot = (0, _zeroStyled.styled)('div', {
47
46
  } = props;
48
47
  return [{
49
48
  [`& .${_toggleButtonGroupClasses.default.grouped}`]: styles.grouped
50
- }, {
51
- [`& .${_toggleButtonGroupClasses.default.grouped}`]: styles[`grouped${(0, _capitalize.default)(ownerState.orientation)}`]
52
49
  }, {
53
50
  [`& .${_toggleButtonGroupClasses.default.firstButton}`]: styles.firstButton
54
51
  }, {
@@ -9,7 +9,6 @@ import getValidReactChildren from '@mui/utils/getValidReactChildren';
9
9
  import { styled } from "../zero-styled/index.mjs";
10
10
  import memoTheme from "../utils/memoTheme.mjs";
11
11
  import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
12
- import capitalize from "../utils/capitalize.mjs";
13
12
  import toggleButtonGroupClasses, { getToggleButtonGroupUtilityClass } from "./toggleButtonGroupClasses.mjs";
14
13
  import ToggleButtonGroupContext from "./ToggleButtonGroupContext.mjs";
15
14
  import ToggleButtonGroupButtonContext from "./ToggleButtonGroupButtonContext.mjs";
@@ -24,7 +23,7 @@ const useUtilityClasses = ownerState => {
24
23
  } = ownerState;
25
24
  const slots = {
26
25
  root: ['root', orientation, fullWidth && 'fullWidth'],
27
- grouped: ['grouped', `grouped${capitalize(orientation)}`, disabled && 'disabled'],
26
+ grouped: ['grouped', disabled && 'disabled'],
28
27
  firstButton: ['firstButton'],
29
28
  lastButton: ['lastButton'],
30
29
  middleButton: ['middleButton']
@@ -40,8 +39,6 @@ const ToggleButtonGroupRoot = styled('div', {
40
39
  } = props;
41
40
  return [{
42
41
  [`& .${toggleButtonGroupClasses.grouped}`]: styles.grouped
43
- }, {
44
- [`& .${toggleButtonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]
45
42
  }, {
46
43
  [`& .${toggleButtonGroupClasses.firstButton}`]: styles.firstButton
47
44
  }, {
@@ -11,14 +11,6 @@ export interface ToggleButtonGroupClasses {
11
11
  disabled: string;
12
12
  /** Styles applied to the children. */
13
13
  grouped: string;
14
- /** Styles applied to the children if `orientation="horizontal"`.
15
- * @deprecated Combine the [.MuiToggleButtonGroup-horizontal](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-horizontal) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
16
- */
17
- groupedHorizontal: string;
18
- /** Styles applied to the children if `orientation="vertical"`.
19
- * @deprecated Combine the [.MuiToggleButtonGroup-vertical](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-vertical) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
20
- */
21
- groupedVertical: string;
22
14
  /** Styles applied to the root element if `fullWidth={true}`. */
23
15
  fullWidth: string;
24
16
  /** Styles applied to the first button in the toggle button group. */
@@ -11,14 +11,6 @@ export interface ToggleButtonGroupClasses {
11
11
  disabled: string;
12
12
  /** Styles applied to the children. */
13
13
  grouped: string;
14
- /** Styles applied to the children if `orientation="horizontal"`.
15
- * @deprecated Combine the [.MuiToggleButtonGroup-horizontal](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-horizontal) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
16
- */
17
- groupedHorizontal: string;
18
- /** Styles applied to the children if `orientation="vertical"`.
19
- * @deprecated Combine the [.MuiToggleButtonGroup-vertical](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-vertical) and [.MuiToggleButtonGroup-grouped](/material-ui/api/toggle-button-group/#toggle-button-group-classes-MuiToggleButtonGroup-grouped) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
20
- */
21
- groupedVertical: string;
22
14
  /** Styles applied to the root element if `fullWidth={true}`. */
23
15
  fullWidth: string;
24
16
  /** Styles applied to the first button in the toggle button group. */
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getToggleButtonGroupUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiToggleButtonGroup', slot);
13
13
  }
14
- const toggleButtonGroupClasses = (0, _generateUtilityClasses.default)('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);
14
+ const toggleButtonGroupClasses = (0, _generateUtilityClasses.default)('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);
15
15
  var _default = exports.default = toggleButtonGroupClasses;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getToggleButtonGroupUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiToggleButtonGroup', slot);
5
5
  }
6
- const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);
6
+ const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);
7
7
  export default toggleButtonGroupClasses;
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { OverridableStringUnion } from '@mui/types';
3
- import { SxProps, SystemProps } from '@mui/system';
3
+ import { SxProps } from '@mui/system';
4
4
  import { Theme, TypeText } from "../styles/index.mjs";
5
5
  import { OverrideProps, OverridableComponent } from "../OverridableComponent/index.mjs";
6
6
  import { TypographyVariant } from "../styles/createTypography.mjs";
7
7
  import { TypographyClasses } from "./typographyClasses.mjs";
8
8
  export interface TypographyPropsVariantOverrides {}
9
9
  export interface TypographyPropsColorOverrides {}
10
- export interface TypographyOwnProps extends Omit<SystemProps<Theme>, 'color'> {
10
+ export interface TypographyOwnProps {
11
11
  /**
12
12
  * Set the text-align on the component.
13
13
  * @default 'inherit'
@@ -26,7 +26,7 @@ export interface TypographyOwnProps extends Omit<SystemProps<Theme>, 'color'> {
26
26
  * It supports both default and custom theme colors, which can be added as shown in the
27
27
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
28
28
  */
29
- color?: OverridableStringUnion<'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | `text${Capitalize<keyof TypeText>}`, TypographyPropsColorOverrides> | (string & {}) | undefined; // to work with v5 color prop type which allows any string
29
+ color?: OverridableStringUnion<'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | `text${Capitalize<keyof TypeText>}`, TypographyPropsColorOverrides> | (string & {}) | undefined;
30
30
  /**
31
31
  * If `true`, the text will have a bottom margin.
32
32
  * @default false
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { OverridableStringUnion } from '@mui/types';
3
- import { SxProps, SystemProps } from '@mui/system';
3
+ import { SxProps } from '@mui/system';
4
4
  import { Theme, TypeText } from "../styles/index.js";
5
5
  import { OverrideProps, OverridableComponent } from "../OverridableComponent/index.js";
6
6
  import { TypographyVariant } from "../styles/createTypography.js";
7
7
  import { TypographyClasses } from "./typographyClasses.js";
8
8
  export interface TypographyPropsVariantOverrides {}
9
9
  export interface TypographyPropsColorOverrides {}
10
- export interface TypographyOwnProps extends Omit<SystemProps<Theme>, 'color'> {
10
+ export interface TypographyOwnProps {
11
11
  /**
12
12
  * Set the text-align on the component.
13
13
  * @default 'inherit'
@@ -26,7 +26,7 @@ export interface TypographyOwnProps extends Omit<SystemProps<Theme>, 'color'> {
26
26
  * It supports both default and custom theme colors, which can be added as shown in the
27
27
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
28
28
  */
29
- color?: OverridableStringUnion<'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | `text${Capitalize<keyof TypeText>}`, TypographyPropsColorOverrides> | (string & {}) | undefined; // to work with v5 color prop type which allows any string
29
+ color?: OverridableStringUnion<'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | `text${Capitalize<keyof TypeText>}`, TypographyPropsColorOverrides> | (string & {}) | undefined;
30
30
  /**
31
31
  * If `true`, the text will have a bottom margin.
32
32
  * @default false
@@ -18,18 +18,6 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
18
18
  var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
19
19
  var _typographyClasses = require("./typographyClasses");
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
- const v6Colors = {
22
- primary: true,
23
- secondary: true,
24
- error: true,
25
- info: true,
26
- success: true,
27
- warning: true,
28
- textPrimary: true,
29
- textSecondary: true,
30
- textDisabled: true
31
- };
32
- const extendSxProp = (0, _zeroStyled.internal_createExtendSxProp)();
33
21
  const useUtilityClasses = ownerState => {
34
22
  const {
35
23
  align,
@@ -124,22 +112,12 @@ const defaultVariantMapping = {
124
112
  inherit: 'p'
125
113
  };
126
114
  const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {
127
- const {
128
- color,
129
- ...themeProps
130
- } = (0, _DefaultPropsProvider.useDefaultProps)({
115
+ const props = (0, _DefaultPropsProvider.useDefaultProps)({
131
116
  props: inProps,
132
117
  name: 'MuiTypography'
133
118
  });
134
- const isSxColor = !v6Colors[color];
135
- // TODO: Remove `extendSxProp` in v7
136
- const props = extendSxProp({
137
- ...themeProps,
138
- ...(isSxColor && {
139
- color
140
- })
141
- });
142
119
  const {
120
+ color,
143
121
  align = 'inherit',
144
122
  className,
145
123
  component,
@@ -4,25 +4,13 @@ import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import clsx from 'clsx';
6
6
  import composeClasses from '@mui/utils/composeClasses';
7
- import { styled, internal_createExtendSxProp } from "../zero-styled/index.mjs";
7
+ import { styled } from "../zero-styled/index.mjs";
8
8
  import memoTheme from "../utils/memoTheme.mjs";
9
9
  import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
10
10
  import capitalize from "../utils/capitalize.mjs";
11
11
  import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.mjs";
12
12
  import { getTypographyUtilityClass } from "./typographyClasses.mjs";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- const v6Colors = {
15
- primary: true,
16
- secondary: true,
17
- error: true,
18
- info: true,
19
- success: true,
20
- warning: true,
21
- textPrimary: true,
22
- textSecondary: true,
23
- textDisabled: true
24
- };
25
- const extendSxProp = internal_createExtendSxProp();
26
14
  const useUtilityClasses = ownerState => {
27
15
  const {
28
16
  align,
@@ -117,22 +105,12 @@ const defaultVariantMapping = {
117
105
  inherit: 'p'
118
106
  };
119
107
  const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {
120
- const {
121
- color,
122
- ...themeProps
123
- } = useDefaultProps({
108
+ const props = useDefaultProps({
124
109
  props: inProps,
125
110
  name: 'MuiTypography'
126
111
  });
127
- const isSxColor = !v6Colors[color];
128
- // TODO: Remove `extendSxProp` in v7
129
- const props = extendSxProp({
130
- ...themeProps,
131
- ...(isSxColor && {
132
- color
133
- })
134
- });
135
112
  const {
113
+ color,
136
114
  align = 'inherit',
137
115
  className,
138
116
  component,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v9.0.0-alpha.4
2
+ * @mui/material v9.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v9.0.0-alpha.4
2
+ * @mui/material v9.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -68,16 +68,6 @@ export interface SwitchBaseProps extends StandardProps<ButtonBaseProps, 'childre
68
68
  * The id of the `input` element.
69
69
  */
70
70
  id?: string | undefined;
71
- /**
72
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
73
- * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
74
- */
75
- inputProps?: React.InputHTMLAttributes<HTMLInputElement> | undefined;
76
- /**
77
- * Pass a ref to the `input` element.
78
- * @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
79
- */
80
- inputRef?: React.Ref<any> | undefined;
81
71
  /**
82
72
  * Name attribute of the `input` element.
83
73
  */
@@ -68,16 +68,6 @@ export interface SwitchBaseProps extends StandardProps<ButtonBaseProps, 'childre
68
68
  * The id of the `input` element.
69
69
  */
70
70
  id?: string | undefined;
71
- /**
72
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
73
- * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
74
- */
75
- inputProps?: React.InputHTMLAttributes<HTMLInputElement> | undefined;
76
- /**
77
- * Pass a ref to the `input` element.
78
- * @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
79
- */
80
- inputRef?: React.Ref<any> | undefined;
81
71
  /**
82
72
  * Name attribute of the `input` element.
83
73
  */
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "__esModule", {
9
9
  exports.default = void 0;
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
- var _refType = _interopRequireDefault(require("@mui/utils/refType"));
13
12
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
14
13
  var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
15
14
  var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
@@ -102,8 +101,6 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
102
101
  edge = false,
103
102
  icon,
104
103
  id,
105
- inputProps,
106
- inputRef,
107
104
  name,
108
105
  onBlur,
109
106
  onChange,
@@ -169,10 +166,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
169
166
  const classes = useUtilityClasses(ownerState);
170
167
  const externalForwardedProps = {
171
168
  slots,
172
- slotProps: {
173
- input: inputProps,
174
- ...slotProps
175
- }
169
+ slotProps
176
170
  };
177
171
  const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
178
172
  ref,
@@ -204,7 +198,6 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
204
198
  }
205
199
  });
206
200
  const [InputSlot, inputSlotProps] = (0, _useSlot.default)('input', {
207
- ref: inputRef,
208
201
  elementType: SwitchBaseInput,
209
202
  className: classes.input,
210
203
  externalForwardedProps,
@@ -292,14 +285,6 @@ process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
292
285
  * The id of the `input` element.
293
286
  */
294
287
  id: _propTypes.default.string,
295
- /**
296
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
297
- */
298
- inputProps: _propTypes.default.object,
299
- /**
300
- * Pass a ref to the `input` element.
301
- */
302
- inputRef: _refType.default,
303
288
  /*
304
289
  * @ignore
305
290
  */