@mui/material 7.0.0 → 7.0.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.
- package/Accordion/Accordion.d.ts +2 -2
- package/Accordion/Accordion.js +2 -2
- package/Alert/Alert.d.ts +2 -2
- package/Alert/Alert.js +2 -2
- package/Autocomplete/Autocomplete.d.ts +9 -9
- package/Autocomplete/Autocomplete.js +6 -6
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/Avatar.js +1 -1
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.js +1 -1
- package/Backdrop/Backdrop.d.ts +3 -3
- package/Backdrop/Backdrop.js +3 -3
- package/Badge/Badge.d.ts +2 -2
- package/Badge/Badge.js +2 -2
- package/Button/Button.js +1 -1
- package/CHANGELOG.md +40 -0
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardHeader/CardHeader.js +2 -2
- package/Checkbox/Checkbox.js +1 -1
- package/Dialog/Dialog.d.ts +3 -3
- package/Dialog/Dialog.js +3 -3
- package/Drawer/Drawer.d.ts +2 -2
- package/Drawer/Drawer.js +2 -2
- package/Fab/Fab.js +1 -1
- package/FilledInput/FilledInput.js +2 -2
- package/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/IconButton/IconButton.js +1 -1
- package/Input/Input.js +2 -2
- package/InputBase/InputBase.d.ts +2 -2
- package/InputBase/InputBase.js +2 -2
- package/ListItem/ListItem.d.ts +4 -4
- package/ListItem/ListItem.js +6 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +1 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/ListItemText/ListItemText.d.ts +2 -2
- package/ListItemText/ListItemText.js +2 -2
- package/Menu/Menu.d.ts +2 -2
- package/Menu/Menu.js +2 -2
- package/MobileStepper/MobileStepper.d.ts +1 -1
- package/MobileStepper/MobileStepper.js +1 -1
- package/Modal/Modal.d.ts +2 -2
- package/Modal/Modal.js +2 -2
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +1 -1
- package/PaginationItem/PaginationItem.js +1 -1
- package/Popover/Popover.d.ts +5 -5
- package/Popover/Popover.js +5 -5
- package/Popper/Popper.d.ts +2 -2
- package/Popper/Popper.js +2 -2
- package/Radio/Radio.js +2 -2
- package/Rating/Rating.d.ts +1 -1
- package/Rating/Rating.js +1 -1
- package/Slider/Slider.d.ts +2 -2
- package/Slider/Slider.js +2 -2
- package/Snackbar/Snackbar.d.ts +4 -4
- package/Snackbar/Snackbar.js +4 -4
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDial/SpeedDial.js +2 -2
- package/SpeedDialAction/SpeedDialAction.d.ts +5 -5
- package/SpeedDialAction/SpeedDialAction.js +5 -5
- package/StepContent/StepContent.d.ts +2 -2
- package/StepContent/StepContent.js +2 -2
- package/StepLabel/StepLabel.d.ts +3 -3
- package/StepLabel/StepLabel.js +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/Switch/Switch.js +2 -2
- package/Tabs/Tabs.d.ts +3 -3
- package/Tabs/Tabs.js +3 -3
- package/TextField/TextField.d.ts +7 -7
- package/TextField/TextField.js +5 -5
- package/Tooltip/Tooltip.d.ts +7 -7
- package/Tooltip/Tooltip.js +6 -6
- package/Typography/Typography.d.ts +1 -1
- package/Typography/Typography.js +1 -1
- package/esm/Accordion/Accordion.d.ts +2 -2
- package/esm/Accordion/Accordion.js +2 -2
- package/esm/Alert/Alert.d.ts +2 -2
- package/esm/Alert/Alert.js +2 -2
- package/esm/Autocomplete/Autocomplete.d.ts +9 -9
- package/esm/Autocomplete/Autocomplete.js +6 -6
- package/esm/Avatar/Avatar.d.ts +1 -1
- package/esm/Avatar/Avatar.js +1 -1
- package/esm/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/esm/AvatarGroup/AvatarGroup.js +1 -1
- package/esm/Backdrop/Backdrop.d.ts +3 -3
- package/esm/Backdrop/Backdrop.js +3 -3
- package/esm/Badge/Badge.d.ts +2 -2
- package/esm/Badge/Badge.js +2 -2
- package/esm/Button/Button.js +1 -1
- package/esm/CardHeader/CardHeader.d.ts +2 -2
- package/esm/CardHeader/CardHeader.js +2 -2
- package/esm/Checkbox/Checkbox.js +1 -1
- package/esm/Dialog/Dialog.d.ts +3 -3
- package/esm/Dialog/Dialog.js +3 -3
- package/esm/Drawer/Drawer.d.ts +2 -2
- package/esm/Drawer/Drawer.js +2 -2
- package/esm/Fab/Fab.js +1 -1
- package/esm/FilledInput/FilledInput.js +2 -2
- package/esm/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/esm/FormControlLabel/FormControlLabel.js +1 -1
- package/esm/IconButton/IconButton.js +1 -1
- package/esm/Input/Input.js +2 -2
- package/esm/InputBase/InputBase.d.ts +2 -2
- package/esm/InputBase/InputBase.js +2 -2
- package/esm/ListItem/ListItem.d.ts +4 -4
- package/esm/ListItem/ListItem.js +6 -6
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +1 -1
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/esm/ListItemText/ListItemText.d.ts +2 -2
- package/esm/ListItemText/ListItemText.js +2 -2
- package/esm/Menu/Menu.d.ts +2 -2
- package/esm/Menu/Menu.js +2 -2
- package/esm/MobileStepper/MobileStepper.d.ts +1 -1
- package/esm/MobileStepper/MobileStepper.js +1 -1
- package/esm/Modal/Modal.d.ts +2 -2
- package/esm/Modal/Modal.js +2 -2
- package/esm/OutlinedInput/OutlinedInput.js +1 -1
- package/esm/PaginationItem/PaginationItem.d.ts +1 -1
- package/esm/PaginationItem/PaginationItem.js +1 -1
- package/esm/Popover/Popover.d.ts +5 -5
- package/esm/Popover/Popover.js +5 -5
- package/esm/Popper/Popper.d.ts +2 -2
- package/esm/Popper/Popper.js +2 -2
- package/esm/Radio/Radio.js +2 -2
- package/esm/Rating/Rating.d.ts +1 -1
- package/esm/Rating/Rating.js +1 -1
- package/esm/Slider/Slider.d.ts +2 -2
- package/esm/Slider/Slider.js +2 -2
- package/esm/Snackbar/Snackbar.d.ts +4 -4
- package/esm/Snackbar/Snackbar.js +4 -4
- package/esm/SpeedDial/SpeedDial.d.ts +2 -2
- package/esm/SpeedDial/SpeedDial.js +2 -2
- package/esm/SpeedDialAction/SpeedDialAction.d.ts +5 -5
- package/esm/SpeedDialAction/SpeedDialAction.js +5 -5
- package/esm/StepContent/StepContent.d.ts +2 -2
- package/esm/StepContent/StepContent.js +2 -2
- package/esm/StepLabel/StepLabel.d.ts +3 -3
- package/esm/StepLabel/StepLabel.js +3 -3
- package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/esm/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/esm/Switch/Switch.js +2 -2
- package/esm/Tabs/Tabs.d.ts +3 -3
- package/esm/Tabs/Tabs.js +3 -3
- package/esm/TextField/TextField.d.ts +7 -7
- package/esm/TextField/TextField.js +5 -5
- package/esm/Tooltip/Tooltip.d.ts +7 -7
- package/esm/Tooltip/Tooltip.js +6 -6
- package/esm/Typography/Typography.d.ts +1 -1
- package/esm/Typography/Typography.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internal/SwitchBase.d.ts +2 -2
- package/esm/styles/createTypography.d.ts +1 -23
- package/esm/styles/cssUtils.d.ts +1 -1
- package/esm/styles/index.d.ts +2 -2
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/internal/SwitchBase.d.ts +2 -2
- package/modern/Accordion/Accordion.d.ts +2 -2
- package/modern/Accordion/Accordion.js +2 -2
- package/modern/Alert/Alert.d.ts +2 -2
- package/modern/Alert/Alert.js +2 -2
- package/modern/Autocomplete/Autocomplete.d.ts +9 -9
- package/modern/Autocomplete/Autocomplete.js +6 -6
- package/modern/Avatar/Avatar.d.ts +1 -1
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/modern/AvatarGroup/AvatarGroup.js +1 -1
- package/modern/Backdrop/Backdrop.d.ts +3 -3
- package/modern/Backdrop/Backdrop.js +3 -3
- package/modern/Badge/Badge.d.ts +2 -2
- package/modern/Badge/Badge.js +2 -2
- package/modern/Button/Button.js +1 -1
- package/modern/CardHeader/CardHeader.d.ts +2 -2
- package/modern/CardHeader/CardHeader.js +2 -2
- package/modern/Checkbox/Checkbox.js +1 -1
- package/modern/Dialog/Dialog.d.ts +3 -3
- package/modern/Dialog/Dialog.js +3 -3
- package/modern/Drawer/Drawer.d.ts +2 -2
- package/modern/Drawer/Drawer.js +2 -2
- package/modern/Fab/Fab.js +1 -1
- package/modern/FilledInput/FilledInput.js +2 -2
- package/modern/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/IconButton/IconButton.js +1 -1
- package/modern/Input/Input.js +2 -2
- package/modern/InputBase/InputBase.d.ts +2 -2
- package/modern/InputBase/InputBase.js +2 -2
- package/modern/ListItem/ListItem.d.ts +4 -4
- package/modern/ListItem/ListItem.js +6 -6
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +1 -1
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/modern/ListItemText/ListItemText.d.ts +2 -2
- package/modern/ListItemText/ListItemText.js +2 -2
- package/modern/Menu/Menu.d.ts +2 -2
- package/modern/Menu/Menu.js +2 -2
- package/modern/MobileStepper/MobileStepper.d.ts +1 -1
- package/modern/MobileStepper/MobileStepper.js +1 -1
- package/modern/Modal/Modal.d.ts +2 -2
- package/modern/Modal/Modal.js +2 -2
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/PaginationItem/PaginationItem.d.ts +1 -1
- package/modern/PaginationItem/PaginationItem.js +1 -1
- package/modern/Popover/Popover.d.ts +5 -5
- package/modern/Popover/Popover.js +5 -5
- package/modern/Popper/Popper.d.ts +2 -2
- package/modern/Popper/Popper.js +2 -2
- package/modern/Radio/Radio.js +2 -2
- package/modern/Rating/Rating.d.ts +1 -1
- package/modern/Rating/Rating.js +1 -1
- package/modern/Slider/Slider.d.ts +2 -2
- package/modern/Slider/Slider.js +2 -2
- package/modern/Snackbar/Snackbar.d.ts +4 -4
- package/modern/Snackbar/Snackbar.js +4 -4
- package/modern/SpeedDial/SpeedDial.d.ts +2 -2
- package/modern/SpeedDial/SpeedDial.js +2 -2
- package/modern/SpeedDialAction/SpeedDialAction.d.ts +5 -5
- package/modern/SpeedDialAction/SpeedDialAction.js +5 -5
- package/modern/StepContent/StepContent.d.ts +2 -2
- package/modern/StepContent/StepContent.js +2 -2
- package/modern/StepLabel/StepLabel.d.ts +3 -3
- package/modern/StepLabel/StepLabel.js +3 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/modern/Switch/Switch.js +2 -2
- package/modern/Tabs/Tabs.d.ts +3 -3
- package/modern/Tabs/Tabs.js +3 -3
- package/modern/TextField/TextField.d.ts +7 -7
- package/modern/TextField/TextField.js +5 -5
- package/modern/Tooltip/Tooltip.d.ts +7 -7
- package/modern/Tooltip/Tooltip.js +6 -6
- package/modern/Typography/Typography.d.ts +1 -1
- package/modern/Typography/Typography.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.d.ts +2 -2
- package/modern/styles/createTypography.d.ts +1 -23
- package/modern/styles/cssUtils.d.ts +1 -1
- package/modern/styles/index.d.ts +2 -2
- package/modern/version/index.js +2 -2
- package/package.json +5 -5
- package/styles/createTypography.d.ts +1 -23
- package/styles/cssUtils.d.ts +1 -1
- package/styles/index.d.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/version/index.js +2 -2
package/Input/Input.js
CHANGED
|
@@ -208,7 +208,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
|
|
|
208
208
|
/**
|
|
209
209
|
* The components used for each slot inside.
|
|
210
210
|
*
|
|
211
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
211
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
212
212
|
*
|
|
213
213
|
* @default {}
|
|
214
214
|
*/
|
|
@@ -220,7 +220,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
|
|
|
220
220
|
* The extra props for the slot components.
|
|
221
221
|
* You can override the existing props or add new ones.
|
|
222
222
|
*
|
|
223
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
223
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
224
224
|
*
|
|
225
225
|
* @default {}
|
|
226
226
|
*/
|
package/InputBase/InputBase.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface InputBaseProps extends StandardProps<React.HTMLAttributes<HTMLD
|
|
|
39
39
|
/**
|
|
40
40
|
* The components used for each slot inside.
|
|
41
41
|
*
|
|
42
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
42
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
43
43
|
*
|
|
44
44
|
* @default {}
|
|
45
45
|
*/
|
|
@@ -51,7 +51,7 @@ export interface InputBaseProps extends StandardProps<React.HTMLAttributes<HTMLD
|
|
|
51
51
|
* The extra props for the slot components.
|
|
52
52
|
* You can override the existing props or add new ones.
|
|
53
53
|
*
|
|
54
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
54
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
55
55
|
*
|
|
56
56
|
* @default {}
|
|
57
57
|
*/
|
package/InputBase/InputBase.js
CHANGED
|
@@ -564,7 +564,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes
|
|
|
564
564
|
/**
|
|
565
565
|
* The components used for each slot inside.
|
|
566
566
|
*
|
|
567
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
567
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
568
568
|
*
|
|
569
569
|
* @default {}
|
|
570
570
|
*/
|
|
@@ -576,7 +576,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes
|
|
|
576
576
|
* The extra props for the slot components.
|
|
577
577
|
* You can override the existing props or add new ones.
|
|
578
578
|
*
|
|
579
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
579
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
580
580
|
*
|
|
581
581
|
* @default {}
|
|
582
582
|
*/
|
package/ListItem/ListItem.d.ts
CHANGED
|
@@ -26,13 +26,13 @@ export interface ListItemBaseProps {
|
|
|
26
26
|
/**
|
|
27
27
|
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
28
28
|
* @default 'li'
|
|
29
|
-
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in
|
|
29
|
+
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
30
30
|
*/
|
|
31
31
|
ContainerComponent?: React.ElementType<React.HTMLAttributes<HTMLDivElement>>;
|
|
32
32
|
/**
|
|
33
33
|
* Props applied to the container component if used.
|
|
34
34
|
* @default {}
|
|
35
|
-
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in
|
|
35
|
+
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
36
36
|
*/
|
|
37
37
|
ContainerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
38
38
|
/**
|
|
@@ -69,7 +69,7 @@ export interface ListItemOwnProps extends ListItemBaseProps {
|
|
|
69
69
|
/**
|
|
70
70
|
* The components used for each slot inside.
|
|
71
71
|
*
|
|
72
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in
|
|
72
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
73
73
|
* @default {}
|
|
74
74
|
*/
|
|
75
75
|
components?: {
|
|
@@ -79,7 +79,7 @@ export interface ListItemOwnProps extends ListItemBaseProps {
|
|
|
79
79
|
* The extra props for the slot components.
|
|
80
80
|
* You can override the existing props or add new ones.
|
|
81
81
|
*
|
|
82
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
82
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
83
83
|
* @default {}
|
|
84
84
|
*/
|
|
85
85
|
componentsProps?: {
|
package/ListItem/ListItem.js
CHANGED
|
@@ -193,7 +193,7 @@ const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
193
193
|
const listItemRef = React.useRef(null);
|
|
194
194
|
const children = React.Children.toArray(childrenProp);
|
|
195
195
|
|
|
196
|
-
// v4 implementation, deprecated in v6, will be removed in
|
|
196
|
+
// v4 implementation, deprecated in v6, will be removed in a future major release
|
|
197
197
|
const hasSecondaryAction = children.length && (0, _isMuiElement.default)(children[children.length - 1], ['ListItemSecondaryAction']);
|
|
198
198
|
const ownerState = {
|
|
199
199
|
...props,
|
|
@@ -214,7 +214,7 @@ const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
214
214
|
};
|
|
215
215
|
let Component = componentProp || 'li';
|
|
216
216
|
|
|
217
|
-
// v4 implementation, deprecated in v6, will be removed in
|
|
217
|
+
// v4 implementation, deprecated in v6, will be removed in a future major release
|
|
218
218
|
if (hasSecondaryAction) {
|
|
219
219
|
// Use div by default.
|
|
220
220
|
Component = !componentProps.component && !componentProp ? 'div' : Component;
|
|
@@ -318,7 +318,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
318
318
|
/**
|
|
319
319
|
* The components used for each slot inside.
|
|
320
320
|
*
|
|
321
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in
|
|
321
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
322
322
|
* @default {}
|
|
323
323
|
*/
|
|
324
324
|
components: _propTypes.default.shape({
|
|
@@ -328,7 +328,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
328
328
|
* The extra props for the slot components.
|
|
329
329
|
* You can override the existing props or add new ones.
|
|
330
330
|
*
|
|
331
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
331
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
332
332
|
* @default {}
|
|
333
333
|
*/
|
|
334
334
|
componentsProps: _propTypes.default.shape({
|
|
@@ -337,13 +337,13 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
337
337
|
/**
|
|
338
338
|
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
339
339
|
* @default 'li'
|
|
340
|
-
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in
|
|
340
|
+
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
341
341
|
*/
|
|
342
342
|
ContainerComponent: _elementTypeAcceptingRef.default,
|
|
343
343
|
/**
|
|
344
344
|
* Props applied to the container component if used.
|
|
345
345
|
* @default {}
|
|
346
|
-
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in
|
|
346
|
+
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
347
347
|
*/
|
|
348
348
|
ContainerProps: _propTypes.default.object,
|
|
349
349
|
/**
|
|
@@ -28,7 +28,7 @@ export interface ListItemSecondaryActionProps extends StandardProps<React.HTMLAt
|
|
|
28
28
|
*
|
|
29
29
|
* - [ListItemSecondaryAction API](https://mui.com/material-ui/api/list-item-secondary-action/)
|
|
30
30
|
*
|
|
31
|
-
* @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in
|
|
31
|
+
* @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
32
|
*/
|
|
33
33
|
declare const ListItemSecondaryAction: ((props: ListItemSecondaryActionProps) => React.JSX.Element) & {
|
|
34
34
|
muiName: string;
|
|
@@ -53,7 +53,7 @@ const ListItemSecondaryActionRoot = (0, _zeroStyled.styled)('div', {
|
|
|
53
53
|
/**
|
|
54
54
|
* Must be used as the last child of ListItem to function properly.
|
|
55
55
|
*
|
|
56
|
-
* @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in
|
|
56
|
+
* @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
57
57
|
*/
|
|
58
58
|
const ListItemSecondaryAction = /*#__PURE__*/React.forwardRef(function ListItemSecondaryAction(inProps, ref) {
|
|
59
59
|
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
@@ -69,7 +69,7 @@ export interface ListItemTextProps<PrimaryTypographyComponent extends React.Elem
|
|
|
69
69
|
/**
|
|
70
70
|
* These props will be forwarded to the primary typography component
|
|
71
71
|
* (as long as disableTypography is not `true`).
|
|
72
|
-
* @deprecated Use `slotProps.primary` instead. This prop will be removed in
|
|
72
|
+
* @deprecated Use `slotProps.primary` 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.
|
|
73
73
|
*/
|
|
74
74
|
primaryTypographyProps?: TypographyProps<PrimaryTypographyComponent, {
|
|
75
75
|
component?: PrimaryTypographyComponent;
|
|
@@ -81,7 +81,7 @@ export interface ListItemTextProps<PrimaryTypographyComponent extends React.Elem
|
|
|
81
81
|
/**
|
|
82
82
|
* These props will be forwarded to the secondary typography component
|
|
83
83
|
* (as long as disableTypography is not `true`).
|
|
84
|
-
* @deprecated Use `slotProps.secondary` instead. This prop will be removed in
|
|
84
|
+
* @deprecated Use `slotProps.secondary` 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.
|
|
85
85
|
*/
|
|
86
86
|
secondaryTypographyProps?: TypographyProps<SecondaryTypographyComponent, {
|
|
87
87
|
component?: SecondaryTypographyComponent;
|
|
@@ -195,7 +195,7 @@ process.env.NODE_ENV !== "production" ? ListItemText.propTypes /* remove-proptyp
|
|
|
195
195
|
/**
|
|
196
196
|
* These props will be forwarded to the primary typography component
|
|
197
197
|
* (as long as disableTypography is not `true`).
|
|
198
|
-
* @deprecated Use `slotProps.primary` instead. This prop will be removed in
|
|
198
|
+
* @deprecated Use `slotProps.primary` 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.
|
|
199
199
|
*/
|
|
200
200
|
primaryTypographyProps: _propTypes.default.object,
|
|
201
201
|
/**
|
|
@@ -205,7 +205,7 @@ process.env.NODE_ENV !== "production" ? ListItemText.propTypes /* remove-proptyp
|
|
|
205
205
|
/**
|
|
206
206
|
* These props will be forwarded to the secondary typography component
|
|
207
207
|
* (as long as disableTypography is not `true`).
|
|
208
|
-
* @deprecated Use `slotProps.secondary` instead. This prop will be removed in
|
|
208
|
+
* @deprecated Use `slotProps.secondary` 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.
|
|
209
209
|
*/
|
|
210
210
|
secondaryTypographyProps: _propTypes.default.object,
|
|
211
211
|
/**
|
package/Menu/Menu.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export interface MenuProps extends StandardProps<Omit<PopoverProps, 'slots' | 's
|
|
|
103
103
|
disableAutoFocusItem?: boolean;
|
|
104
104
|
/**
|
|
105
105
|
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
106
|
-
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in
|
|
106
|
+
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
107
107
|
* @default {}
|
|
108
108
|
*/
|
|
109
109
|
MenuListProps?: Partial<MenuListProps>;
|
|
@@ -134,7 +134,7 @@ export interface MenuProps extends StandardProps<Omit<PopoverProps, 'slots' | 's
|
|
|
134
134
|
/**
|
|
135
135
|
* Props applied to the transition element.
|
|
136
136
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
137
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in
|
|
137
|
+
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
138
138
|
* @default {}
|
|
139
139
|
*/
|
|
140
140
|
TransitionProps?: TransitionProps;
|
package/Menu/Menu.js
CHANGED
|
@@ -274,7 +274,7 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes /* remove-proptypes */ =
|
|
|
274
274
|
disableAutoFocusItem: _propTypes.default.bool,
|
|
275
275
|
/**
|
|
276
276
|
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
277
|
-
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in
|
|
277
|
+
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
278
278
|
* @default {}
|
|
279
279
|
*/
|
|
280
280
|
MenuListProps: _propTypes.default.object,
|
|
@@ -335,7 +335,7 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes /* remove-proptypes */ =
|
|
|
335
335
|
/**
|
|
336
336
|
* Props applied to the transition element.
|
|
337
337
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
338
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in
|
|
338
|
+
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
339
339
|
* @default {}
|
|
340
340
|
*/
|
|
341
341
|
TransitionProps: _propTypes.default.object,
|
|
@@ -70,7 +70,7 @@ export interface MobileStepperProps extends StandardProps<PaperProps, 'children'
|
|
|
70
70
|
classes?: Partial<MobileStepperClasses>;
|
|
71
71
|
/**
|
|
72
72
|
* Props applied to the `LinearProgress` element.
|
|
73
|
-
* @deprecated Use `slotProps.progress` instead. This prop will be removed in
|
|
73
|
+
* @deprecated Use `slotProps.progress` 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
74
|
*/
|
|
75
75
|
LinearProgressProps?: Partial<LinearProgressProps>;
|
|
76
76
|
/**
|
|
@@ -264,7 +264,7 @@ process.env.NODE_ENV !== "production" ? MobileStepper.propTypes /* remove-propty
|
|
|
264
264
|
className: _propTypes.default.string,
|
|
265
265
|
/**
|
|
266
266
|
* Props applied to the `LinearProgress` element.
|
|
267
|
-
* @deprecated Use `slotProps.progress` instead. This prop will be removed in
|
|
267
|
+
* @deprecated Use `slotProps.progress` 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.
|
|
268
268
|
*/
|
|
269
269
|
LinearProgressProps: _propTypes.default.object,
|
|
270
270
|
/**
|
package/Modal/Modal.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export interface ModalOwnProps {
|
|
|
63
63
|
/**
|
|
64
64
|
* The components used for each slot inside.
|
|
65
65
|
*
|
|
66
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in
|
|
66
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
67
67
|
*
|
|
68
68
|
* @default {}
|
|
69
69
|
*/
|
|
@@ -75,7 +75,7 @@ export interface ModalOwnProps {
|
|
|
75
75
|
* The extra props for the slot components.
|
|
76
76
|
* You can override the existing props or add new ones.
|
|
77
77
|
*
|
|
78
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
78
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
79
79
|
*
|
|
80
80
|
* @default {}
|
|
81
81
|
*/
|
package/Modal/Modal.js
CHANGED
|
@@ -276,7 +276,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
276
276
|
/**
|
|
277
277
|
* The components used for each slot inside.
|
|
278
278
|
*
|
|
279
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in
|
|
279
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
280
280
|
*
|
|
281
281
|
* @default {}
|
|
282
282
|
*/
|
|
@@ -288,7 +288,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
288
288
|
* The extra props for the slot components.
|
|
289
289
|
* You can override the existing props or add new ones.
|
|
290
290
|
*
|
|
291
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
291
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
292
292
|
*
|
|
293
293
|
* @default {}
|
|
294
294
|
*/
|
|
@@ -277,7 +277,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
|
277
277
|
/**
|
|
278
278
|
* The components used for each slot inside.
|
|
279
279
|
*
|
|
280
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
280
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
281
281
|
*
|
|
282
282
|
* @default {}
|
|
283
283
|
*/
|
|
@@ -41,7 +41,7 @@ export interface PaginationItemOwnProps extends PaginationItemSlotsAndSlotProps
|
|
|
41
41
|
* It's recommended to use the `slots` prop instead.
|
|
42
42
|
*
|
|
43
43
|
* @default {}
|
|
44
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
44
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
45
45
|
*/
|
|
46
46
|
components?: {
|
|
47
47
|
first?: React.ElementType;
|
|
@@ -409,7 +409,7 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
|
|
|
409
409
|
* It's recommended to use the `slots` prop instead.
|
|
410
410
|
*
|
|
411
411
|
* @default {}
|
|
412
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
412
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
413
413
|
*/
|
|
414
414
|
components: _propTypes.default.shape({
|
|
415
415
|
first: _propTypes.default.elementType,
|
package/Popover/Popover.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export interface PopoverProps extends StandardProps<Omit<ModalProps, 'slots' | '
|
|
|
82
82
|
* or a function that returns either.
|
|
83
83
|
* It's used to set the position of the popover.
|
|
84
84
|
*/
|
|
85
|
-
anchorEl?: null | Element | (() => Element
|
|
85
|
+
anchorEl?: null | Element | PopoverVirtualElement | (() => Element | PopoverVirtualElement | null);
|
|
86
86
|
/**
|
|
87
87
|
* This is the point on the anchor where the popover's
|
|
88
88
|
* `anchorEl` will attach to. This is not used when the
|
|
@@ -110,7 +110,7 @@ export interface PopoverProps extends StandardProps<Omit<ModalProps, 'slots' | '
|
|
|
110
110
|
anchorReference?: PopoverReference;
|
|
111
111
|
/**
|
|
112
112
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
113
|
-
* @deprecated Use `slots.backdrop` instead. This prop will be removed in
|
|
113
|
+
* @deprecated Use `slots.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
114
114
|
* @default styled(Backdrop, {
|
|
115
115
|
* name: 'MuiModal',
|
|
116
116
|
* slot: 'Backdrop',
|
|
@@ -124,7 +124,7 @@ export interface PopoverProps extends StandardProps<Omit<ModalProps, 'slots' | '
|
|
|
124
124
|
BackdropComponent?: React.ElementType<BackdropProps>;
|
|
125
125
|
/**
|
|
126
126
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
127
|
-
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in
|
|
127
|
+
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
128
128
|
*/
|
|
129
129
|
BackdropProps?: Partial<BackdropProps>;
|
|
130
130
|
/**
|
|
@@ -188,7 +188,7 @@ export interface PopoverProps extends StandardProps<Omit<ModalProps, 'slots' | '
|
|
|
188
188
|
/**
|
|
189
189
|
* The component used for the transition.
|
|
190
190
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
191
|
-
* @deprecated use the `slots.transition` prop instead. This prop will be removed in
|
|
191
|
+
* @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
192
192
|
* @default Grow
|
|
193
193
|
*/
|
|
194
194
|
TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
|
|
@@ -202,7 +202,7 @@ export interface PopoverProps extends StandardProps<Omit<ModalProps, 'slots' | '
|
|
|
202
202
|
/**
|
|
203
203
|
* Props applied to the transition element.
|
|
204
204
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
205
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in
|
|
205
|
+
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
206
206
|
* @default {}
|
|
207
207
|
*/
|
|
208
208
|
TransitionProps?: TransitionProps;
|
package/Popover/Popover.js
CHANGED
|
@@ -285,7 +285,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
285
285
|
const handleResize = (0, _debounce.default)(() => {
|
|
286
286
|
setPositioningStyles();
|
|
287
287
|
});
|
|
288
|
-
const containerWindow = (0, _ownerWindow.default)(anchorEl);
|
|
288
|
+
const containerWindow = (0, _ownerWindow.default)(resolveAnchorEl(anchorEl));
|
|
289
289
|
containerWindow.addEventListener('resize', handleResize);
|
|
290
290
|
return () => {
|
|
291
291
|
handleResize.clear();
|
|
@@ -452,7 +452,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
452
452
|
anchorReference: _propTypes.default.oneOf(['anchorEl', 'anchorPosition', 'none']),
|
|
453
453
|
/**
|
|
454
454
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
455
|
-
* @deprecated Use `slots.backdrop` instead. This prop will be removed in
|
|
455
|
+
* @deprecated Use `slots.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
456
456
|
* @default styled(Backdrop, {
|
|
457
457
|
* name: 'MuiModal',
|
|
458
458
|
* slot: 'Backdrop',
|
|
@@ -466,7 +466,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
466
466
|
BackdropComponent: _propTypes.default.elementType,
|
|
467
467
|
/**
|
|
468
468
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
469
|
-
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in
|
|
469
|
+
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
470
470
|
*/
|
|
471
471
|
BackdropProps: _propTypes.default.object,
|
|
472
472
|
/**
|
|
@@ -568,7 +568,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
568
568
|
/**
|
|
569
569
|
* The component used for the transition.
|
|
570
570
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
571
|
-
* @deprecated use the `slots.transition` prop instead. This prop will be removed in
|
|
571
|
+
* @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
572
572
|
* @default Grow
|
|
573
573
|
*/
|
|
574
574
|
TransitionComponent: _propTypes.default.elementType,
|
|
@@ -584,7 +584,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
584
584
|
/**
|
|
585
585
|
* Props applied to the transition element.
|
|
586
586
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
587
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in
|
|
587
|
+
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
588
588
|
* @default {}
|
|
589
589
|
*/
|
|
590
590
|
TransitionProps: _propTypes.default.object
|
package/Popper/Popper.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface PopperProps extends Omit<BasePopperProps, 'direction'> {
|
|
|
12
12
|
* The components used for each slot inside the Popper.
|
|
13
13
|
* Either a string to use a HTML element or a component.
|
|
14
14
|
*
|
|
15
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
15
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
16
16
|
* @default {}
|
|
17
17
|
*/
|
|
18
18
|
components?: {
|
|
@@ -21,7 +21,7 @@ export interface PopperProps extends Omit<BasePopperProps, 'direction'> {
|
|
|
21
21
|
/**
|
|
22
22
|
* The props used for each slot inside the Popper.
|
|
23
23
|
*
|
|
24
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
24
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
25
25
|
* @default {}
|
|
26
26
|
*/
|
|
27
27
|
componentsProps?: BasePopperProps['slotProps'];
|
package/Popper/Popper.js
CHANGED
|
@@ -108,7 +108,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
108
108
|
* The components used for each slot inside the Popper.
|
|
109
109
|
* Either a string to use a HTML element or a component.
|
|
110
110
|
*
|
|
111
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
111
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
112
112
|
* @default {}
|
|
113
113
|
*/
|
|
114
114
|
components: _propTypes.default.shape({
|
|
@@ -117,7 +117,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
117
117
|
/**
|
|
118
118
|
* The props used for each slot inside the Popper.
|
|
119
119
|
*
|
|
120
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
120
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
121
121
|
* @default {}
|
|
122
122
|
*/
|
|
123
123
|
componentsProps: _propTypes.default.shape({
|
package/Radio/Radio.js
CHANGED
|
@@ -257,12 +257,12 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
257
257
|
id: _propTypes.default.string,
|
|
258
258
|
/**
|
|
259
259
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
260
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
260
|
+
* @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.
|
|
261
261
|
*/
|
|
262
262
|
inputProps: _propTypes.default.object,
|
|
263
263
|
/**
|
|
264
264
|
* Pass a ref to the `input` element.
|
|
265
|
-
* @deprecated Use `slotProps.input.ref` instead. This prop will be removed in
|
|
265
|
+
* @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.
|
|
266
266
|
*/
|
|
267
267
|
inputRef: _refType.default,
|
|
268
268
|
/**
|
package/Rating/Rating.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export interface RatingOwnProps extends RatingSlotsAndSlotProps {
|
|
|
106
106
|
icon?: React.ReactNode;
|
|
107
107
|
/**
|
|
108
108
|
* The component containing the icon.
|
|
109
|
-
* @deprecated Use `slotProps.icon.component` instead. This prop will be removed in
|
|
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
110
|
* @default function IconContainer(props) {
|
|
111
111
|
* const { value, ...other } = props;
|
|
112
112
|
* return <span {...other} />;
|
package/Rating/Rating.js
CHANGED
|
@@ -694,7 +694,7 @@ process.env.NODE_ENV !== "production" ? Rating.propTypes /* remove-proptypes */
|
|
|
694
694
|
icon: _propTypes.default.node,
|
|
695
695
|
/**
|
|
696
696
|
* The component containing the icon.
|
|
697
|
-
* @deprecated Use `slotProps.icon.component` instead. This prop will be removed in
|
|
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
698
|
* @default function IconContainer(props) {
|
|
699
699
|
* const { value, ...other } = props;
|
|
700
700
|
* return <span {...other} />;
|
package/Slider/Slider.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface SliderOwnProps<Value extends number | number[]> {
|
|
|
38
38
|
/**
|
|
39
39
|
* The components used for each slot inside.
|
|
40
40
|
*
|
|
41
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
41
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
42
42
|
*
|
|
43
43
|
* @default {}
|
|
44
44
|
*/
|
|
@@ -56,7 +56,7 @@ export interface SliderOwnProps<Value extends number | number[]> {
|
|
|
56
56
|
* The extra props for the slot components.
|
|
57
57
|
* You can override the existing props or add new ones.
|
|
58
58
|
*
|
|
59
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
59
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
60
60
|
*
|
|
61
61
|
* @default {}
|
|
62
62
|
*/
|
package/Slider/Slider.js
CHANGED
|
@@ -872,7 +872,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
|
|
|
872
872
|
/**
|
|
873
873
|
* The components used for each slot inside.
|
|
874
874
|
*
|
|
875
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
875
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
876
876
|
*
|
|
877
877
|
* @default {}
|
|
878
878
|
*/
|
|
@@ -890,7 +890,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
|
|
|
890
890
|
* The extra props for the slot components.
|
|
891
891
|
* You can override the existing props or add new ones.
|
|
892
892
|
*
|
|
893
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
893
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
894
894
|
*
|
|
895
895
|
* @default {}
|
|
896
896
|
*/
|
package/Snackbar/Snackbar.d.ts
CHANGED
|
@@ -91,12 +91,12 @@ export interface SnackbarProps extends Omit<StandardProps<React.HTMLAttributes<H
|
|
|
91
91
|
classes?: Partial<SnackbarClasses>;
|
|
92
92
|
/**
|
|
93
93
|
* Props applied to the `ClickAwayListener` element.
|
|
94
|
-
* @deprecated Use `slotProps.clickAwayListener` instead. This prop will be removed in
|
|
94
|
+
* @deprecated Use `slotProps.clickAwayListener` 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.
|
|
95
95
|
*/
|
|
96
96
|
ClickAwayListenerProps?: Partial<ClickAwayListenerProps>;
|
|
97
97
|
/**
|
|
98
98
|
* Props applied to the [`SnackbarContent`](https://mui.com/material-ui/api/snackbar-content/) element.
|
|
99
|
-
* @deprecated Use `slotProps.content` instead. This prop will be removed in
|
|
99
|
+
* @deprecated Use `slotProps.content` 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.
|
|
100
100
|
*/
|
|
101
101
|
ContentProps?: Partial<SnackbarContentProps>;
|
|
102
102
|
/**
|
|
@@ -144,7 +144,7 @@ export interface SnackbarProps extends Omit<StandardProps<React.HTMLAttributes<H
|
|
|
144
144
|
/**
|
|
145
145
|
* The component used for the transition.
|
|
146
146
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
147
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
147
|
+
* @deprecated Use `slots.transition` 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.
|
|
148
148
|
* @default Grow
|
|
149
149
|
*/
|
|
150
150
|
TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
|
|
@@ -162,7 +162,7 @@ export interface SnackbarProps extends Omit<StandardProps<React.HTMLAttributes<H
|
|
|
162
162
|
/**
|
|
163
163
|
* Props applied to the transition element.
|
|
164
164
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
165
|
-
* @deprecated Use `slotProps.transition` instead. This prop will be removed in
|
|
165
|
+
* @deprecated Use `slotProps.transition` 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.
|
|
166
166
|
* @default {}
|
|
167
167
|
*/
|
|
168
168
|
TransitionProps?: TransitionProps;
|