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

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 (308) hide show
  1. package/Accordion/Accordion.d.mts +1 -1
  2. package/Accordion/Accordion.d.ts +1 -1
  3. package/AccordionSummary/AccordionSummary.js +1 -0
  4. package/AccordionSummary/AccordionSummary.mjs +1 -0
  5. package/Backdrop/Backdrop.d.mts +1 -1
  6. package/Backdrop/Backdrop.d.ts +1 -1
  7. package/BottomNavigationAction/BottomNavigationAction.js +1 -0
  8. package/BottomNavigationAction/BottomNavigationAction.mjs +1 -0
  9. package/Breadcrumbs/BreadcrumbCollapsed.js +5 -1
  10. package/Breadcrumbs/BreadcrumbCollapsed.mjs +5 -1
  11. package/Button/Button.js +1 -0
  12. package/Button/Button.mjs +1 -0
  13. package/ButtonBase/ButtonBase.d.mts +5 -0
  14. package/ButtonBase/ButtonBase.d.ts +5 -0
  15. package/ButtonBase/ButtonBase.js +84 -85
  16. package/ButtonBase/ButtonBase.mjs +84 -85
  17. package/ButtonBase/useButtonBase.d.mts +91 -0
  18. package/ButtonBase/useButtonBase.d.ts +91 -0
  19. package/ButtonBase/useButtonBase.js +174 -0
  20. package/ButtonBase/useButtonBase.mjs +167 -0
  21. package/ButtonGroup/ButtonGroup.js +1 -9
  22. package/ButtonGroup/ButtonGroup.mjs +1 -9
  23. package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
  24. package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
  25. package/ButtonGroup/buttonGroupClasses.js +1 -1
  26. package/ButtonGroup/buttonGroupClasses.mjs +1 -1
  27. package/CHANGELOG.md +119 -4
  28. package/CardActionArea/CardActionArea.js +1 -0
  29. package/CardActionArea/CardActionArea.mjs +1 -0
  30. package/CardHeader/CardHeader.d.mts +13 -21
  31. package/CardHeader/CardHeader.d.ts +13 -21
  32. package/CardHeader/CardHeader.js +3 -21
  33. package/CardHeader/CardHeader.mjs +3 -21
  34. package/Checkbox/Checkbox.js +1 -7
  35. package/Checkbox/Checkbox.mjs +1 -7
  36. package/Chip/Chip.d.mts +7 -0
  37. package/Chip/Chip.d.ts +7 -0
  38. package/Chip/Chip.js +66 -55
  39. package/Chip/Chip.mjs +66 -55
  40. package/Chip/chipClasses.d.mts +0 -104
  41. package/Chip/chipClasses.d.ts +0 -104
  42. package/Chip/chipClasses.js +1 -1
  43. package/Chip/chipClasses.mjs +1 -1
  44. package/Dialog/Dialog.d.mts +8 -22
  45. package/Dialog/Dialog.d.ts +8 -22
  46. package/Dialog/Dialog.js +43 -72
  47. package/Dialog/Dialog.mjs +43 -72
  48. package/Dialog/dialogClasses.d.mts +0 -8
  49. package/Dialog/dialogClasses.d.ts +0 -8
  50. package/Dialog/dialogClasses.js +1 -1
  51. package/Dialog/dialogClasses.mjs +1 -1
  52. package/Divider/Divider.js +2 -10
  53. package/Divider/Divider.mjs +2 -10
  54. package/Divider/dividerClasses.d.mts +0 -4
  55. package/Divider/dividerClasses.d.ts +0 -4
  56. package/Divider/dividerClasses.js +1 -1
  57. package/Divider/dividerClasses.mjs +1 -1
  58. package/Drawer/Drawer.d.mts +1 -13
  59. package/Drawer/Drawer.d.ts +1 -13
  60. package/Drawer/Drawer.js +6 -40
  61. package/Drawer/Drawer.mjs +6 -40
  62. package/Drawer/drawerClasses.d.mts +0 -32
  63. package/Drawer/drawerClasses.d.ts +0 -32
  64. package/Drawer/drawerClasses.js +1 -1
  65. package/Drawer/drawerClasses.mjs +1 -1
  66. package/Fab/Fab.js +1 -0
  67. package/Fab/Fab.mjs +1 -0
  68. package/FilledInput/FilledInput.js +4 -33
  69. package/FilledInput/FilledInput.mjs +4 -33
  70. package/Grid/Grid.d.mts +8 -3
  71. package/Grid/Grid.d.ts +8 -3
  72. package/Grid/Grid.js +8 -3
  73. package/Grid/Grid.mjs +8 -3
  74. package/Grid/gridClasses.js +1 -1
  75. package/Grid/gridClasses.mjs +1 -1
  76. package/IconButton/IconButton.js +1 -0
  77. package/IconButton/IconButton.mjs +1 -0
  78. package/ImageListItemBar/ImageListItemBar.js +4 -17
  79. package/ImageListItemBar/ImageListItemBar.mjs +4 -17
  80. package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
  81. package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
  82. package/ImageListItemBar/imageListItemBarClasses.js +1 -1
  83. package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
  84. package/Input/Input.js +4 -33
  85. package/Input/Input.mjs +4 -33
  86. package/Input/inputClasses.d.mts +0 -16
  87. package/Input/inputClasses.d.ts +0 -16
  88. package/InputAdornment/inputAdornmentClasses.d.mts +2 -2
  89. package/InputAdornment/inputAdornmentClasses.d.ts +2 -2
  90. package/InputBase/InputBase.d.mts +0 -27
  91. package/InputBase/InputBase.d.ts +0 -27
  92. package/InputBase/InputBase.js +6 -35
  93. package/InputBase/InputBase.mjs +6 -35
  94. package/InputBase/inputBaseClasses.d.mts +0 -20
  95. package/InputBase/inputBaseClasses.d.ts +0 -20
  96. package/InputBase/inputBaseClasses.js +1 -1
  97. package/InputBase/inputBaseClasses.mjs +1 -1
  98. package/InputLabel/InputLabel.js +1 -1
  99. package/InputLabel/InputLabel.mjs +1 -1
  100. package/LinearProgress/LinearProgress.js +6 -18
  101. package/LinearProgress/LinearProgress.mjs +6 -18
  102. package/LinearProgress/linearProgressClasses.d.mts +0 -36
  103. package/LinearProgress/linearProgressClasses.d.ts +0 -36
  104. package/LinearProgress/linearProgressClasses.js +1 -1
  105. package/LinearProgress/linearProgressClasses.mjs +1 -1
  106. package/Link/Link.d.mts +1 -1
  107. package/Link/Link.d.ts +1 -1
  108. package/ListItem/ListItem.d.mts +2 -36
  109. package/ListItem/ListItem.d.ts +2 -36
  110. package/ListItem/ListItem.js +27 -152
  111. package/ListItem/ListItem.mjs +27 -152
  112. package/ListItem/listItemClasses.d.mts +2 -4
  113. package/ListItem/listItemClasses.d.ts +2 -4
  114. package/ListItem/listItemClasses.js +1 -1
  115. package/ListItem/listItemClasses.mjs +1 -1
  116. package/ListItemButton/ListItemButton.d.mts +1 -2
  117. package/ListItemButton/ListItemButton.d.ts +1 -2
  118. package/ListItemButton/ListItemButton.js +2 -2
  119. package/ListItemButton/ListItemButton.mjs +2 -2
  120. package/ListItemIcon/ListItemIcon.js +1 -1
  121. package/ListItemIcon/ListItemIcon.mjs +1 -1
  122. package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
  123. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
  124. package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
  125. package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
  126. package/ListItemText/ListItemText.d.mts +12 -20
  127. package/ListItemText/ListItemText.d.ts +12 -20
  128. package/ListItemText/ListItemText.js +2 -20
  129. package/ListItemText/ListItemText.mjs +2 -20
  130. package/ListSubheader/ListSubheader.js +0 -3
  131. package/ListSubheader/ListSubheader.mjs +0 -3
  132. package/Menu/Menu.d.mts +1 -1
  133. package/Menu/Menu.d.ts +1 -1
  134. package/Menu/Menu.js +15 -32
  135. package/Menu/Menu.mjs +15 -32
  136. package/MenuItem/MenuItem.js +36 -26
  137. package/MenuItem/MenuItem.mjs +34 -26
  138. package/MenuList/MenuList.js +136 -101
  139. package/MenuList/MenuList.mjs +135 -100
  140. package/MenuList/MenuListContext.d.mts +11 -0
  141. package/MenuList/MenuListContext.d.ts +11 -0
  142. package/MenuList/MenuListContext.js +25 -0
  143. package/MenuList/MenuListContext.mjs +19 -0
  144. package/Modal/Modal.d.mts +1 -41
  145. package/Modal/Modal.d.ts +1 -41
  146. package/Modal/Modal.js +5 -58
  147. package/Modal/Modal.mjs +5 -58
  148. package/OutlinedInput/OutlinedInput.js +2 -14
  149. package/OutlinedInput/OutlinedInput.mjs +2 -14
  150. package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
  151. package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
  152. package/PaginationItem/PaginationItem.d.mts +5 -15
  153. package/PaginationItem/PaginationItem.d.ts +5 -15
  154. package/PaginationItem/PaginationItem.js +9 -24
  155. package/PaginationItem/PaginationItem.mjs +9 -24
  156. package/PaginationItem/paginationItemClasses.d.mts +0 -16
  157. package/PaginationItem/paginationItemClasses.d.ts +0 -16
  158. package/PaginationItem/paginationItemClasses.js +1 -1
  159. package/PaginationItem/paginationItemClasses.mjs +1 -1
  160. package/PigmentGrid/PigmentGrid.d.mts +1 -1
  161. package/PigmentGrid/PigmentGrid.d.ts +1 -1
  162. package/PigmentGrid/PigmentGrid.js +1 -1
  163. package/PigmentGrid/PigmentGrid.mjs +1 -1
  164. package/Popover/Popover.d.mts +1 -1
  165. package/Popover/Popover.d.ts +1 -1
  166. package/Popover/Popover.js +19 -7
  167. package/Popover/Popover.mjs +18 -6
  168. package/Radio/Radio.js +1 -13
  169. package/Radio/Radio.mjs +1 -13
  170. package/Rating/Rating.d.mts +0 -9
  171. package/Rating/Rating.d.ts +0 -9
  172. package/Rating/Rating.js +1 -17
  173. package/Rating/Rating.mjs +1 -17
  174. package/Select/SelectInput.js +2 -3
  175. package/Select/SelectInput.mjs +2 -3
  176. package/Select/selectClasses.d.mts +0 -12
  177. package/Select/selectClasses.d.ts +0 -12
  178. package/Select/selectClasses.js +1 -1
  179. package/Select/selectClasses.mjs +1 -1
  180. package/Slider/Slider.d.mts +0 -5
  181. package/Slider/Slider.d.ts +0 -5
  182. package/Slider/Slider.js +2 -8
  183. package/Slider/Slider.mjs +2 -8
  184. package/Slider/sliderClasses.d.mts +0 -28
  185. package/Slider/sliderClasses.d.ts +0 -28
  186. package/Slider/sliderClasses.js +1 -1
  187. package/Slider/sliderClasses.mjs +1 -1
  188. package/Snackbar/Snackbar.d.mts +1 -1
  189. package/Snackbar/Snackbar.d.ts +1 -1
  190. package/SpeedDial/SpeedDial.d.mts +1 -1
  191. package/SpeedDial/SpeedDial.d.ts +1 -1
  192. package/Stack/Stack.d.mts +2 -2
  193. package/Stack/Stack.d.ts +2 -2
  194. package/StepButton/StepButton.js +44 -14
  195. package/StepButton/StepButton.mjs +44 -14
  196. package/StepConnector/StepConnector.js +2 -8
  197. package/StepConnector/StepConnector.mjs +2 -8
  198. package/StepConnector/stepConnectorClasses.d.mts +0 -8
  199. package/StepConnector/stepConnectorClasses.d.ts +0 -8
  200. package/StepConnector/stepConnectorClasses.js +1 -1
  201. package/StepConnector/stepConnectorClasses.mjs +1 -1
  202. package/StepContent/StepContent.d.mts +2 -17
  203. package/StepContent/StepContent.d.ts +2 -17
  204. package/StepContent/StepContent.js +3 -22
  205. package/StepContent/StepContent.mjs +3 -22
  206. package/StepLabel/StepLabel.d.mts +0 -22
  207. package/StepLabel/StepLabel.d.ts +0 -22
  208. package/StepLabel/StepLabel.js +2 -31
  209. package/StepLabel/StepLabel.mjs +2 -31
  210. package/Stepper/Stepper.js +54 -22
  211. package/Stepper/Stepper.mjs +54 -22
  212. package/Stepper/StepperContext.d.mts +0 -5
  213. package/Stepper/StepperContext.d.ts +0 -5
  214. package/Stepper/StepperContext.js +1 -2
  215. package/Stepper/StepperContext.mjs +0 -1
  216. package/SvgIcon/createSvgIcon.d.mts +2 -0
  217. package/SvgIcon/createSvgIcon.d.ts +2 -0
  218. package/SvgIcon/createSvgIcon.js +31 -0
  219. package/SvgIcon/createSvgIcon.mjs +26 -0
  220. package/SvgIcon/index.d.mts +1 -0
  221. package/SvgIcon/index.d.ts +1 -0
  222. package/SvgIcon/index.js +8 -0
  223. package/SvgIcon/index.mjs +1 -0
  224. package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
  225. package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
  226. package/SwipeableDrawer/SwipeableDrawer.js +6 -37
  227. package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
  228. package/Switch/Switch.js +0 -11
  229. package/Switch/Switch.mjs +0 -11
  230. package/Tab/Tab.js +18 -4
  231. package/Tab/Tab.mjs +18 -4
  232. package/Tab/tabClasses.d.mts +0 -4
  233. package/Tab/tabClasses.d.ts +0 -4
  234. package/Tab/tabClasses.js +1 -1
  235. package/Tab/tabClasses.mjs +1 -1
  236. package/TabScrollButton/TabScrollButton.d.mts +1 -1
  237. package/TabScrollButton/TabScrollButton.d.ts +1 -1
  238. package/TabScrollButton/TabScrollButton.js +6 -2
  239. package/TabScrollButton/TabScrollButton.mjs +6 -2
  240. package/TablePagination/TablePagination.d.mts +0 -24
  241. package/TablePagination/TablePagination.d.ts +0 -24
  242. package/TablePagination/TablePagination.js +1 -29
  243. package/TablePagination/TablePagination.mjs +1 -29
  244. package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
  245. package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
  246. package/TablePaginationActions/TablePaginationActions.js +2 -14
  247. package/TablePaginationActions/TablePaginationActions.mjs +2 -14
  248. package/TableSortLabel/TableSortLabel.js +6 -8
  249. package/TableSortLabel/TableSortLabel.mjs +6 -8
  250. package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
  251. package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
  252. package/TableSortLabel/tableSortLabelClasses.js +1 -1
  253. package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
  254. package/Tabs/Tabs.js +33 -24
  255. package/Tabs/Tabs.mjs +32 -23
  256. package/Tabs/tabsClasses.d.mts +0 -6
  257. package/Tabs/tabsClasses.d.ts +0 -6
  258. package/Tabs/tabsClasses.js +1 -1
  259. package/Tabs/tabsClasses.mjs +1 -1
  260. package/ToggleButton/ToggleButton.js +1 -0
  261. package/ToggleButton/ToggleButton.mjs +1 -0
  262. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
  263. package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
  264. package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
  265. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
  266. package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  267. package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
  268. package/Tooltip/Tooltip.d.mts +1 -1
  269. package/Tooltip/Tooltip.d.ts +1 -1
  270. package/Typography/Typography.d.mts +3 -3
  271. package/Typography/Typography.d.ts +3 -3
  272. package/Typography/Typography.js +2 -24
  273. package/Typography/Typography.mjs +3 -25
  274. package/index.js +1 -1
  275. package/index.mjs +1 -1
  276. package/internal/SwitchBase.d.mts +2 -12
  277. package/internal/SwitchBase.d.ts +2 -12
  278. package/internal/SwitchBase.js +6 -17
  279. package/internal/SwitchBase.mjs +6 -17
  280. package/locale/psAF.js +1 -1
  281. package/locale/psAF.mjs +1 -1
  282. package/package.json +7 -7
  283. package/styles/createThemeWithVars.js +10 -9
  284. package/styles/createThemeWithVars.mjs +10 -9
  285. package/styles/stringifyTheme.js +1 -1
  286. package/styles/stringifyTheme.mjs +1 -1
  287. package/useAutocomplete/useAutocomplete.js +8 -0
  288. package/useAutocomplete/useAutocomplete.mjs +8 -0
  289. package/utils/createSvgIcon.d.mts +4 -2
  290. package/utils/createSvgIcon.d.ts +4 -2
  291. package/utils/createSvgIcon.js +6 -24
  292. package/utils/createSvgIcon.mjs +2 -24
  293. package/utils/focusWithVisible.js +24 -0
  294. package/utils/focusWithVisible.mjs +19 -0
  295. package/utils/index.d.mts +0 -1
  296. package/utils/index.d.ts +0 -1
  297. package/utils/index.js +0 -7
  298. package/utils/index.mjs +0 -1
  299. package/utils/useFocusableWhenDisabled.d.mts +30 -0
  300. package/utils/useFocusableWhenDisabled.d.ts +30 -0
  301. package/utils/useFocusableWhenDisabled.js +47 -0
  302. package/utils/useFocusableWhenDisabled.mjs +41 -0
  303. package/utils/useRovingTabIndex.d.mts +1 -2
  304. package/utils/useRovingTabIndex.d.ts +1 -2
  305. package/utils/useRovingTabIndex.js +25 -4
  306. package/utils/useRovingTabIndex.mjs +1 -2
  307. package/version/index.js +2 -2
  308. package/version/index.mjs +2 -2
@@ -29,7 +29,7 @@ var _Modal = _interopRequireDefault(require("../Modal"));
29
29
  var _Paper = _interopRequireDefault(require("../Paper"));
30
30
  var _popoverClasses = require("./popoverClasses");
31
31
  var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
32
- var _utils = require("../utils");
32
+ var _mergeSlotProps = _interopRequireDefault(require("../utils/mergeSlotProps"));
33
33
  var _jsxRuntime = require("react/jsx-runtime");
34
34
  function getOffsetTop(rect, vertical) {
35
35
  let offset = 0;
@@ -106,6 +106,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
106
106
  children,
107
107
  className,
108
108
  container: containerProp,
109
+ disableAutoFocus = false,
109
110
  elevation = 8,
110
111
  marginThreshold = 16,
111
112
  open,
@@ -199,11 +200,11 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
199
200
  const widthThreshold = containerWindow.innerWidth - marginThreshold;
200
201
 
201
202
  // Check if the vertical axis needs shifting
202
- if (marginThreshold !== null && top < marginThreshold) {
203
+ if (marginThreshold != null && top < marginThreshold) {
203
204
  const diff = top - marginThreshold;
204
205
  top -= diff;
205
206
  elemTransformOrigin.vertical += diff;
206
- } else if (marginThreshold !== null && bottom > heightThreshold) {
207
+ } else if (marginThreshold != null && bottom > heightThreshold) {
207
208
  const diff = bottom - heightThreshold;
208
209
  top -= diff;
209
210
  elemTransformOrigin.vertical += diff;
@@ -215,7 +216,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
215
216
  }
216
217
 
217
218
  // Check if the horizontal axis needs shifting
218
- if (marginThreshold !== null && left < marginThreshold) {
219
+ if (marginThreshold != null && left < marginThreshold) {
219
220
  const diff = left - marginThreshold;
220
221
  left -= diff;
221
222
  elemTransformOrigin.horizontal += diff;
@@ -237,10 +238,10 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
237
238
  return;
238
239
  }
239
240
  const positioning = getPositioningStyle(element);
240
- if (positioning.top !== null) {
241
+ if (positioning.top != null) {
241
242
  element.style.setProperty('top', positioning.top);
242
243
  }
243
- if (positioning.left !== null) {
244
+ if (positioning.left != null) {
244
245
  element.style.left = positioning.left;
245
246
  }
246
247
  element.style.transformOrigin = positioning.transformOrigin;
@@ -332,7 +333,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
332
333
  backdrop: slots.backdrop
333
334
  },
334
335
  slotProps: {
335
- backdrop: (0, _utils.mergeSlotProps)(typeof slotProps.backdrop === 'function' ? slotProps.backdrop(ownerState) : slotProps.backdrop, {
336
+ backdrop: (0, _mergeSlotProps.default)(typeof slotProps.backdrop === 'function' ? slotProps.backdrop(ownerState) : slotProps.backdrop, {
336
337
  invisible: true
337
338
  })
338
339
  },
@@ -361,6 +362,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
361
362
  ...(!(0, _isHostComponent.default)(RootSlot) && {
362
363
  slots: rootSlotsProp,
363
364
  slotProps: rootSlotPropsProp,
365
+ disableAutoFocus,
364
366
  disableScrollLock
365
367
  }),
366
368
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, {
@@ -455,6 +457,16 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
455
457
  * so it's simply `document.body` most of the time.
456
458
  */
457
459
  container: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_HTMLElementType.default, _propTypes.default.func]),
460
+ /**
461
+ * If `true`, the modal will not automatically shift focus to itself when it opens, and
462
+ * replace it to the last focused element when it closes.
463
+ * This also works correctly with any modal children that have the `disableAutoFocus` prop.
464
+ *
465
+ * Generally this should never be set to `true` as it makes the modal less
466
+ * accessible to assistive technologies, like screen readers.
467
+ * @default false
468
+ */
469
+ disableAutoFocus: _propTypes.default.bool,
458
470
  /**
459
471
  * Disable the scroll lock behavior.
460
472
  * @default false
@@ -20,7 +20,7 @@ import Modal from "../Modal/index.mjs";
20
20
  import PaperBase from "../Paper/index.mjs";
21
21
  import { getPopoverUtilityClass } from "./popoverClasses.mjs";
22
22
  import useSlot from "../utils/useSlot.mjs";
23
- import { mergeSlotProps } from "../utils/index.mjs";
23
+ import mergeSlotProps from "../utils/mergeSlotProps.mjs";
24
24
  import { jsx as _jsx } from "react/jsx-runtime";
25
25
  export function getOffsetTop(rect, vertical) {
26
26
  let offset = 0;
@@ -97,6 +97,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
97
97
  children,
98
98
  className,
99
99
  container: containerProp,
100
+ disableAutoFocus = false,
100
101
  elevation = 8,
101
102
  marginThreshold = 16,
102
103
  open,
@@ -190,11 +191,11 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
190
191
  const widthThreshold = containerWindow.innerWidth - marginThreshold;
191
192
 
192
193
  // Check if the vertical axis needs shifting
193
- if (marginThreshold !== null && top < marginThreshold) {
194
+ if (marginThreshold != null && top < marginThreshold) {
194
195
  const diff = top - marginThreshold;
195
196
  top -= diff;
196
197
  elemTransformOrigin.vertical += diff;
197
- } else if (marginThreshold !== null && bottom > heightThreshold) {
198
+ } else if (marginThreshold != null && bottom > heightThreshold) {
198
199
  const diff = bottom - heightThreshold;
199
200
  top -= diff;
200
201
  elemTransformOrigin.vertical += diff;
@@ -206,7 +207,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
206
207
  }
207
208
 
208
209
  // Check if the horizontal axis needs shifting
209
- if (marginThreshold !== null && left < marginThreshold) {
210
+ if (marginThreshold != null && left < marginThreshold) {
210
211
  const diff = left - marginThreshold;
211
212
  left -= diff;
212
213
  elemTransformOrigin.horizontal += diff;
@@ -228,10 +229,10 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
228
229
  return;
229
230
  }
230
231
  const positioning = getPositioningStyle(element);
231
- if (positioning.top !== null) {
232
+ if (positioning.top != null) {
232
233
  element.style.setProperty('top', positioning.top);
233
234
  }
234
- if (positioning.left !== null) {
235
+ if (positioning.left != null) {
235
236
  element.style.left = positioning.left;
236
237
  }
237
238
  element.style.transformOrigin = positioning.transformOrigin;
@@ -352,6 +353,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
352
353
  ...(!isHostComponent(RootSlot) && {
353
354
  slots: rootSlotsProp,
354
355
  slotProps: rootSlotPropsProp,
356
+ disableAutoFocus,
355
357
  disableScrollLock
356
358
  }),
357
359
  children: /*#__PURE__*/_jsx(TransitionSlot, {
@@ -446,6 +448,16 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
446
448
  * so it's simply `document.body` most of the time.
447
449
  */
448
450
  container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),
451
+ /**
452
+ * If `true`, the modal will not automatically shift focus to itself when it opens, and
453
+ * replace it to the last focused element when it closes.
454
+ * This also works correctly with any modal children that have the `disableAutoFocus` prop.
455
+ *
456
+ * Generally this should never be set to `true` as it makes the modal less
457
+ * accessible to assistive technologies, like screen readers.
458
+ * @default false
459
+ */
460
+ disableAutoFocus: PropTypes.bool,
449
461
  /**
450
462
  * Disable the scroll lock behavior.
451
463
  * @default false
package/Radio/Radio.js CHANGED
@@ -10,7 +10,6 @@ exports.default = void 0;
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
12
  var _clsx = _interopRequireDefault(require("clsx"));
13
- var _refType = _interopRequireDefault(require("@mui/utils/refType"));
14
13
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
14
  var _SwitchBase = _interopRequireDefault(require("../internal/SwitchBase"));
16
15
  var _RadioButtonIcon = _interopRequireDefault(require("./RadioButtonIcon"));
@@ -134,7 +133,6 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
134
133
  disableRipple = false,
135
134
  slots = {},
136
135
  slotProps = {},
137
- inputProps,
138
136
  ...other
139
137
  } = props;
140
138
  const muiFormControl = (0, _useFormControl.default)();
@@ -165,7 +163,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
165
163
  name = radioGroup.name;
166
164
  }
167
165
  }
168
- const externalInputProps = slotProps.input ?? inputProps;
166
+ const externalInputProps = slotProps.input;
169
167
  const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
170
168
  ref,
171
169
  elementType: RadioRoot,
@@ -254,16 +252,6 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
254
252
  * The id of the `input` element.
255
253
  */
256
254
  id: _propTypes.default.string,
257
- /**
258
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
259
- * @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.
260
- */
261
- inputProps: _propTypes.default.object,
262
- /**
263
- * Pass a ref to the `input` element.
264
- * @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.
265
- */
266
- inputRef: _refType.default,
267
255
  /**
268
256
  * Name attribute of the `input` element.
269
257
  */
package/Radio/Radio.mjs CHANGED
@@ -3,7 +3,6 @@
3
3
  import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import clsx from 'clsx';
6
- import refType from '@mui/utils/refType';
7
6
  import composeClasses from '@mui/utils/composeClasses';
8
7
  import SwitchBase from "../internal/SwitchBase.mjs";
9
8
  import RadioButtonIcon from "./RadioButtonIcon.mjs";
@@ -127,7 +126,6 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
127
126
  disableRipple = false,
128
127
  slots = {},
129
128
  slotProps = {},
130
- inputProps,
131
129
  ...other
132
130
  } = props;
133
131
  const muiFormControl = useFormControl();
@@ -158,7 +156,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
158
156
  name = radioGroup.name;
159
157
  }
160
158
  }
161
- const externalInputProps = slotProps.input ?? inputProps;
159
+ const externalInputProps = slotProps.input;
162
160
  const [RootSlot, rootSlotProps] = useSlot('root', {
163
161
  ref,
164
162
  elementType: RadioRoot,
@@ -247,16 +245,6 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
247
245
  * The id of the `input` element.
248
246
  */
249
247
  id: PropTypes.string,
250
- /**
251
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
252
- * @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.
253
- */
254
- inputProps: PropTypes.object,
255
- /**
256
- * Pass a ref to the `input` element.
257
- * @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.
258
- */
259
- inputRef: refType,
260
248
  /**
261
249
  * Name attribute of the `input` element.
262
250
  */
@@ -104,15 +104,6 @@ export interface RatingOwnProps extends RatingSlotsAndSlotProps {
104
104
  * @default <Star fontSize="inherit" />
105
105
  */
106
106
  icon?: React.ReactNode;
107
- /**
108
- * The component containing the icon.
109
- * @deprecated Use `slotProps.icon.component` 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.
110
- * @default function IconContainer(props) {
111
- * const { value, ...other } = props;
112
- * return <span {...other} />;
113
- * }
114
- */
115
- IconContainerComponent?: React.ElementType<IconContainerProps> | undefined;
116
107
  /**
117
108
  * Maximum rating.
118
109
  * @default 5
@@ -104,15 +104,6 @@ export interface RatingOwnProps extends RatingSlotsAndSlotProps {
104
104
  * @default <Star fontSize="inherit" />
105
105
  */
106
106
  icon?: React.ReactNode;
107
- /**
108
- * The component containing the icon.
109
- * @deprecated Use `slotProps.icon.component` 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.
110
- * @default function IconContainer(props) {
111
- * const { value, ...other } = props;
112
- * return <span {...other} />;
113
- * }
114
- */
115
- IconContainerComponent?: React.ElementType<IconContainerProps> | undefined;
116
107
  /**
117
108
  * Maximum rating.
118
109
  * @default 5
package/Rating/Rating.js CHANGED
@@ -217,7 +217,6 @@ function RatingItem(props) {
217
217
  highlightSelectedOnly,
218
218
  hover,
219
219
  icon,
220
- IconContainerComponent,
221
220
  isActive,
222
221
  itemValue,
223
222
  labelProps,
@@ -263,9 +262,7 @@ function RatingItem(props) {
263
262
  value: itemValue
264
263
  },
265
264
  internalForwardedProps: {
266
- // TODO: remove this in v7 because `IconContainerComponent` is deprecated
267
- // only forward if `slots.icon` is NOT provided
268
- as: IconContainerComponent
265
+ as: IconContainer
269
266
  }
270
267
  });
271
268
  const [LabelSlot, labelSlotProps] = (0, _useSlot.default)('label', {
@@ -321,7 +318,6 @@ process.env.NODE_ENV !== "production" ? RatingItem.propTypes = {
321
318
  highlightSelectedOnly: _propTypes.default.bool.isRequired,
322
319
  hover: _propTypes.default.number.isRequired,
323
320
  icon: _propTypes.default.node,
324
- IconContainerComponent: _propTypes.default.elementType.isRequired,
325
321
  isActive: _propTypes.default.bool.isRequired,
326
322
  itemValue: _propTypes.default.number.isRequired,
327
323
  labelProps: _propTypes.default.object,
@@ -361,7 +357,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
361
357
  getLabelText = defaultLabelText,
362
358
  highlightSelectedOnly = false,
363
359
  icon = defaultIcon,
364
- IconContainerComponent = IconContainer,
365
360
  max = 5,
366
361
  name: nameProp,
367
362
  onChange,
@@ -504,7 +499,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
504
499
  focusVisible,
505
500
  getLabelText,
506
501
  icon,
507
- IconContainerComponent,
508
502
  max,
509
503
  precision,
510
504
  readOnly,
@@ -566,7 +560,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
566
560
  highlightSelectedOnly,
567
561
  hover,
568
562
  icon,
569
- IconContainerComponent,
570
563
  name,
571
564
  onBlur: handleBlur,
572
565
  onChange: handleChange,
@@ -692,15 +685,6 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes /* remove-proptypes */
692
685
  * @default <Star fontSize="inherit" />
693
686
  */
694
687
  icon: _propTypes.default.node,
695
- /**
696
- * The component containing the icon.
697
- * @deprecated Use `slotProps.icon.component` 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.
698
- * @default function IconContainer(props) {
699
- * const { value, ...other } = props;
700
- * return <span {...other} />;
701
- * }
702
- */
703
- IconContainerComponent: _propTypes.default.elementType,
704
688
  /**
705
689
  * Maximum rating.
706
690
  * @default 5
package/Rating/Rating.mjs CHANGED
@@ -210,7 +210,6 @@ function RatingItem(props) {
210
210
  highlightSelectedOnly,
211
211
  hover,
212
212
  icon,
213
- IconContainerComponent,
214
213
  isActive,
215
214
  itemValue,
216
215
  labelProps,
@@ -256,9 +255,7 @@ function RatingItem(props) {
256
255
  value: itemValue
257
256
  },
258
257
  internalForwardedProps: {
259
- // TODO: remove this in v7 because `IconContainerComponent` is deprecated
260
- // only forward if `slots.icon` is NOT provided
261
- as: IconContainerComponent
258
+ as: IconContainer
262
259
  }
263
260
  });
264
261
  const [LabelSlot, labelSlotProps] = useSlot('label', {
@@ -314,7 +311,6 @@ process.env.NODE_ENV !== "production" ? RatingItem.propTypes = {
314
311
  highlightSelectedOnly: PropTypes.bool.isRequired,
315
312
  hover: PropTypes.number.isRequired,
316
313
  icon: PropTypes.node,
317
- IconContainerComponent: PropTypes.elementType.isRequired,
318
314
  isActive: PropTypes.bool.isRequired,
319
315
  itemValue: PropTypes.number.isRequired,
320
316
  labelProps: PropTypes.object,
@@ -354,7 +350,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
354
350
  getLabelText = defaultLabelText,
355
351
  highlightSelectedOnly = false,
356
352
  icon = defaultIcon,
357
- IconContainerComponent = IconContainer,
358
353
  max = 5,
359
354
  name: nameProp,
360
355
  onChange,
@@ -497,7 +492,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
497
492
  focusVisible,
498
493
  getLabelText,
499
494
  icon,
500
- IconContainerComponent,
501
495
  max,
502
496
  precision,
503
497
  readOnly,
@@ -559,7 +553,6 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
559
553
  highlightSelectedOnly,
560
554
  hover,
561
555
  icon,
562
- IconContainerComponent,
563
556
  name,
564
557
  onBlur: handleBlur,
565
558
  onChange: handleChange,
@@ -685,15 +678,6 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes /* remove-proptypes */
685
678
  * @default <Star fontSize="inherit" />
686
679
  */
687
680
  icon: PropTypes.node,
688
- /**
689
- * The component containing the icon.
690
- * @deprecated Use `slotProps.icon.component` 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.
691
- * @default function IconContainer(props) {
692
- * const { value, ...other } = props;
693
- * return <span {...other} />;
694
- * }
695
- */
696
- IconContainerComponent: PropTypes.elementType,
697
681
  /**
698
682
  * Maximum rating.
699
683
  * @default 5
@@ -16,7 +16,6 @@ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"
16
16
  var _useId = _interopRequireDefault(require("@mui/utils/useId"));
17
17
  var _refType = _interopRequireDefault(require("@mui/utils/refType"));
18
18
  var _ownerDocument = _interopRequireDefault(require("../utils/ownerDocument"));
19
- var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
20
19
  var _Menu = _interopRequireDefault(require("../Menu/Menu"));
21
20
  var _NativeSelectInput = require("../NativeSelect/NativeSelectInput");
22
21
  var _utils = require("../InputBase/utils");
@@ -67,7 +66,7 @@ const SelectIcon = (0, _zeroStyled.styled)(_NativeSelectInput.StyledSelectIcon,
67
66
  const {
68
67
  ownerState
69
68
  } = props;
70
- return [styles.icon, ownerState.variant && styles[`icon${(0, _capitalize.default)(ownerState.variant)}`], ownerState.open && styles.iconOpen];
69
+ return [styles.icon, ownerState.open && styles.iconOpen];
71
70
  }
72
71
  })({});
73
72
  const SelectNativeInput = (0, _zeroStyled.styled)('input', {
@@ -94,7 +93,7 @@ const useUtilityClasses = ownerState => {
94
93
  } = ownerState;
95
94
  const slots = {
96
95
  select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],
97
- icon: ['icon', `icon${(0, _capitalize.default)(variant)}`, open && 'iconOpen', disabled && 'disabled'],
96
+ icon: ['icon', open && 'iconOpen', disabled && 'disabled'],
98
97
  nativeInput: ['nativeInput']
99
98
  };
100
99
  return (0, _composeClasses.default)(slots, _selectClasses.getSelectUtilityClasses, classes);
@@ -10,7 +10,6 @@ import composeClasses from '@mui/utils/composeClasses';
10
10
  import useId from '@mui/utils/useId';
11
11
  import refType from '@mui/utils/refType';
12
12
  import ownerDocument from "../utils/ownerDocument.mjs";
13
- import capitalize from "../utils/capitalize.mjs";
14
13
  import Menu from "../Menu/Menu.mjs";
15
14
  import { StyledSelectSelect, StyledSelectIcon } from "../NativeSelect/NativeSelectInput.mjs";
16
15
  import { isFilled } from "../InputBase/utils.mjs";
@@ -60,7 +59,7 @@ const SelectIcon = styled(StyledSelectIcon, {
60
59
  const {
61
60
  ownerState
62
61
  } = props;
63
- return [styles.icon, ownerState.variant && styles[`icon${capitalize(ownerState.variant)}`], ownerState.open && styles.iconOpen];
62
+ return [styles.icon, ownerState.open && styles.iconOpen];
64
63
  }
65
64
  })({});
66
65
  const SelectNativeInput = styled('input', {
@@ -87,7 +86,7 @@ const useUtilityClasses = ownerState => {
87
86
  } = ownerState;
88
87
  const slots = {
89
88
  select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],
90
- icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled'],
89
+ icon: ['icon', open && 'iconOpen', disabled && 'disabled'],
91
90
  nativeInput: ['nativeInput']
92
91
  };
93
92
  return composeClasses(slots, getSelectUtilityClasses, classes);
@@ -19,18 +19,6 @@ export interface SelectClasses {
19
19
  icon: string;
20
20
  /** Styles applied to the icon component if the popup is open. */
21
21
  iconOpen: string;
22
- /** Styles applied to the icon component if `variant="filled"`.
23
- * @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-filled](/material-ui/api/select/#select-classes-MuiSelect-filled) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
24
- */
25
- iconFilled: string;
26
- /** Styles applied to the icon component if `variant="outlined"`.
27
- * @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-outlined](/material-ui/api/select/#select-classes-MuiSelect-outlined) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
28
- */
29
- iconOutlined: string;
30
- /** Styles applied to the icon component if `variant="standard"`.
31
- * @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-standard](/material-ui/api/select/#select-classes-MuiSelect-standard) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
32
- */
33
- iconStandard: string;
34
22
  /** Styles applied to the underlying native input component. */
35
23
  nativeInput: string;
36
24
  /** State class applied to the root element if `error={true}`. */
@@ -19,18 +19,6 @@ export interface SelectClasses {
19
19
  icon: string;
20
20
  /** Styles applied to the icon component if the popup is open. */
21
21
  iconOpen: string;
22
- /** Styles applied to the icon component if `variant="filled"`.
23
- * @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-filled](/material-ui/api/select/#select-classes-MuiSelect-filled) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
24
- */
25
- iconFilled: string;
26
- /** Styles applied to the icon component if `variant="outlined"`.
27
- * @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-outlined](/material-ui/api/select/#select-classes-MuiSelect-outlined) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
28
- */
29
- iconOutlined: string;
30
- /** Styles applied to the icon component if `variant="standard"`.
31
- * @deprecated Combine the [.MuiSelect-icon](/material-ui/api/select/#select-classes-MuiSelect-icon) and [.MuiSelect-standard](/material-ui/api/select/#select-classes-MuiSelect-standard) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
32
- */
33
- iconStandard: string;
34
22
  /** Styles applied to the underlying native input component. */
35
23
  nativeInput: string;
36
24
  /** State class applied to the root element if `error={true}`. */
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getSelectUtilityClasses(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiSelect', slot);
13
13
  }
14
- const selectClasses = (0, _generateUtilityClasses.default)('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
14
+ const selectClasses = (0, _generateUtilityClasses.default)('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'nativeInput', 'error']);
15
15
  var _default = exports.default = selectClasses;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getSelectUtilityClasses(slot) {
4
4
  return generateUtilityClass('MuiSelect', slot);
5
5
  }
6
- const selectClasses = generateUtilityClasses('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
6
+ const selectClasses = generateUtilityClasses('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'nativeInput', 'error']);
7
7
  export default selectClasses;
@@ -101,11 +101,6 @@ export type SliderSlotsAndSlotProps = CreateSlotsAndSlotProps<SliderSlots, {
101
101
  */
102
102
  input: SlotProps<'input', SliderInputSlotPropsOverrides, SliderOwnerState>;
103
103
  }>;
104
-
105
- /**
106
- * @deprecated Use `SliderRootSlotPropsOverrides` instead.
107
- */
108
- export interface SliderComponentsPropsOverrides {}
109
104
  export interface SliderOwnerState extends SliderProps {
110
105
  dragging: boolean;
111
106
  marked: boolean;
@@ -101,11 +101,6 @@ export type SliderSlotsAndSlotProps = CreateSlotsAndSlotProps<SliderSlots, {
101
101
  */
102
102
  input: SlotProps<'input', SliderInputSlotPropsOverrides, SliderOwnerState>;
103
103
  }>;
104
-
105
- /**
106
- * @deprecated Use `SliderRootSlotPropsOverrides` instead.
107
- */
108
- export interface SliderComponentsPropsOverrides {}
109
104
  export interface SliderOwnerState extends SliderProps {
110
105
  dragging: boolean;
111
106
  marked: boolean;
package/Slider/Slider.js CHANGED
@@ -239,13 +239,7 @@ const SliderTrack = exports.SliderTrack = (0, _zeroStyled.styled)('span', {
239
239
  }));
240
240
  const SliderThumb = exports.SliderThumb = (0, _zeroStyled.styled)('span', {
241
241
  name: 'MuiSlider',
242
- slot: 'Thumb',
243
- overridesResolver: (props, styles) => {
244
- const {
245
- ownerState
246
- } = props;
247
- return [styles.thumb, styles[`thumbColor${(0, _capitalize.default)(ownerState.color)}`], ownerState.size !== 'medium' && styles[`thumbSize${(0, _capitalize.default)(ownerState.size)}`]];
248
- }
242
+ slot: 'Thumb'
249
243
  })((0, _memoTheme.default)(({
250
244
  theme
251
245
  }) => ({
@@ -542,7 +536,7 @@ const useUtilityClasses = ownerState => {
542
536
  markLabel: ['markLabel'],
543
537
  markLabelActive: ['markLabelActive'],
544
538
  valueLabel: ['valueLabel'],
545
- thumb: ['thumb', disabled && 'disabled', size && `thumbSize${(0, _capitalize.default)(size)}`, color && `thumbColor${(0, _capitalize.default)(color)}`],
539
+ thumb: ['thumb', disabled && 'disabled'],
546
540
  active: ['active'],
547
541
  disabled: ['disabled'],
548
542
  focusVisible: ['focusVisible']
package/Slider/Slider.mjs CHANGED
@@ -232,13 +232,7 @@ export const SliderTrack = styled('span', {
232
232
  }));
233
233
  export const SliderThumb = styled('span', {
234
234
  name: 'MuiSlider',
235
- slot: 'Thumb',
236
- overridesResolver: (props, styles) => {
237
- const {
238
- ownerState
239
- } = props;
240
- return [styles.thumb, styles[`thumbColor${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`thumbSize${capitalize(ownerState.size)}`]];
241
- }
235
+ slot: 'Thumb'
242
236
  })(memoTheme(({
243
237
  theme
244
238
  }) => ({
@@ -536,7 +530,7 @@ const useUtilityClasses = ownerState => {
536
530
  markLabel: ['markLabel'],
537
531
  markLabelActive: ['markLabelActive'],
538
532
  valueLabel: ['valueLabel'],
539
- thumb: ['thumb', disabled && 'disabled', size && `thumbSize${capitalize(size)}`, color && `thumbColor${capitalize(color)}`],
533
+ thumb: ['thumb', disabled && 'disabled'],
540
534
  active: ['active'],
541
535
  disabled: ['disabled'],
542
536
  focusVisible: ['focusVisible']
@@ -45,34 +45,6 @@ export interface SliderClasses {
45
45
  markLabelActive: string;
46
46
  /** Styles applied to the root element if `size="small"`. */
47
47
  sizeSmall: string;
48
- /** Styles applied to the thumb element if `color="primary"`.
49
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorPrimary](/material-ui/api/slider/#slider-classes-MuiSlider-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
50
- */
51
- thumbColorPrimary: string;
52
- /** Styles applied to the thumb element if `color="secondary"`.
53
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorSecondary](/material-ui/api/slider/#slider-classes-MuiSlider-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
54
- */
55
- thumbColorSecondary: string;
56
- /** Styles applied to the thumb element if `color="error"`.
57
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorError](/material-ui/api/slider/#slider-classes-MuiSlider-colorError) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
58
- */
59
- thumbColorError: string;
60
- /** Styles applied to the thumb element if `color="info"`.
61
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorInfo](/material-ui/api/slider/#slider-classes-MuiSlider-colorInfo) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
62
- */
63
- thumbColorInfo: string;
64
- /** Styles applied to the thumb element if `color="success"`.
65
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorSuccess](/material-ui/api/slider/#slider-classes-MuiSlider-colorSuccess) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
66
- */
67
- thumbColorSuccess: string;
68
- /** Styles applied to the thumb element if `color="warning"`.
69
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-colorWarning](/material-ui/api/slider/#slider-classes-MuiSlider-colorWarning) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
70
- */
71
- thumbColorWarning: string;
72
- /** Styles applied to the thumb element if `size="small"`.
73
- * @deprecated Combine the [.MuiSlider-thumb](/material-ui/api/slider/#Slider-css-MuiSlider-thumb) and [.MuiSlider-sizeSmall](/material-ui/api/slider/#slider-classes-MuiSlider-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
74
- */
75
- thumbSizeSmall: string;
76
48
  /** Styles applied to the thumb label element. */
77
49
  valueLabel: string;
78
50
  /** Styles applied to the thumb label element if it's open. */