@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/Accordion/Accordion.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export type AccordionTypeMap<AdditionalProps = {}, RootComponent extends React.E
|
|
|
88
88
|
/**
|
|
89
89
|
* The component used for the transition.
|
|
90
90
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
91
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
91
|
+
* @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.
|
|
92
92
|
*/
|
|
93
93
|
TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
|
|
94
94
|
children?: React.ReactElement<unknown, any>;
|
|
@@ -96,7 +96,7 @@ export type AccordionTypeMap<AdditionalProps = {}, RootComponent extends React.E
|
|
|
96
96
|
/**
|
|
97
97
|
* Props applied to the transition element.
|
|
98
98
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
99
|
-
* @deprecated Use `slotProps.transition` instead. This prop will be removed in
|
|
99
|
+
* @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.
|
|
100
100
|
*/
|
|
101
101
|
TransitionProps?: TransitionProps;
|
|
102
102
|
} & AccordionSlotsAndSlotProps;
|
package/Accordion/Accordion.js
CHANGED
|
@@ -322,13 +322,13 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
322
322
|
/**
|
|
323
323
|
* The component used for the transition.
|
|
324
324
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
325
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
325
|
+
* @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.
|
|
326
326
|
*/
|
|
327
327
|
TransitionComponent: _propTypes.default.elementType,
|
|
328
328
|
/**
|
|
329
329
|
* Props applied to the transition element.
|
|
330
330
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
331
|
-
* @deprecated Use `slotProps.transition` instead. This prop will be removed in
|
|
331
|
+
* @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.
|
|
332
332
|
*/
|
|
333
333
|
TransitionProps: _propTypes.default.object
|
|
334
334
|
} : void 0;
|
package/Alert/Alert.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'>, AlertS
|
|
|
103
103
|
/**
|
|
104
104
|
* The components used for each slot inside.
|
|
105
105
|
*
|
|
106
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
106
|
+
* @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.
|
|
107
107
|
*
|
|
108
108
|
* @default {}
|
|
109
109
|
*/
|
|
@@ -115,7 +115,7 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'>, AlertS
|
|
|
115
115
|
* The extra props for the slot components.
|
|
116
116
|
* You can override the existing props or add new ones.
|
|
117
117
|
*
|
|
118
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
118
|
+
* @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.
|
|
119
119
|
*
|
|
120
120
|
* @default {}
|
|
121
121
|
*/
|
package/Alert/Alert.js
CHANGED
|
@@ -302,7 +302,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
|
|
|
302
302
|
/**
|
|
303
303
|
* The components used for each slot inside.
|
|
304
304
|
*
|
|
305
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
305
|
+
* @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.
|
|
306
306
|
*
|
|
307
307
|
* @default {}
|
|
308
308
|
*/
|
|
@@ -314,7 +314,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
|
|
|
314
314
|
* The extra props for the slot components.
|
|
315
315
|
* You can override the existing props or add new ones.
|
|
316
316
|
*
|
|
317
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
317
|
+
* @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.
|
|
318
318
|
*
|
|
319
319
|
* @default {}
|
|
320
320
|
*/
|
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
4
|
import { IconButtonProps, InternalStandardProps as StandardProps, Theme } from '@mui/material';
|
|
5
|
-
import { ChipProps, ChipTypeMap } from
|
|
6
|
-
import { PaperProps } from
|
|
7
|
-
import { PopperProps } from
|
|
5
|
+
import { ChipProps, ChipTypeMap } from "../Chip/index.js";
|
|
6
|
+
import { PaperProps } from "../Paper/index.js";
|
|
7
|
+
import { PopperProps } from "../Popper/index.js";
|
|
8
8
|
import useAutocomplete, { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteCloseReason, AutocompleteInputChangeReason, AutocompleteValue, createFilterOptions, UseAutocompleteProps, AutocompleteFreeSoloValueMapping } from "../useAutocomplete/index.js";
|
|
9
9
|
import { AutocompleteClasses } from "./autocompleteClasses.js";
|
|
10
10
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
@@ -95,7 +95,7 @@ export type AutocompleteSlotsAndSlotProps<Value, Multiple extends boolean | unde
|
|
|
95
95
|
export interface AutocompleteProps<Value, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']> extends UseAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo>, StandardProps<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange' | 'children'>, AutocompleteSlotsAndSlotProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent> {
|
|
96
96
|
/**
|
|
97
97
|
* Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.
|
|
98
|
-
* @deprecated Use `slotProps.chip` instead. This prop will be removed in
|
|
98
|
+
* @deprecated Use `slotProps.chip` 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.
|
|
99
99
|
*/
|
|
100
100
|
ChipProps?: ChipProps<ChipComponent>;
|
|
101
101
|
/**
|
|
@@ -123,7 +123,7 @@ export interface AutocompleteProps<Value, Multiple extends boolean | undefined,
|
|
|
123
123
|
closeText?: string;
|
|
124
124
|
/**
|
|
125
125
|
* The props used for each slot inside.
|
|
126
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
126
|
+
* @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.
|
|
127
127
|
*/
|
|
128
128
|
componentsProps?: {
|
|
129
129
|
clearIndicator?: Partial<IconButtonProps>;
|
|
@@ -162,12 +162,12 @@ export interface AutocompleteProps<Value, Multiple extends boolean | undefined,
|
|
|
162
162
|
/**
|
|
163
163
|
* The component used to render the listbox.
|
|
164
164
|
* @default 'ul'
|
|
165
|
-
* @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in
|
|
165
|
+
* @deprecated Use `slotProps.listbox.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.
|
|
166
166
|
*/
|
|
167
167
|
ListboxComponent?: React.JSXElementConstructor<React.HTMLAttributes<HTMLElement>>;
|
|
168
168
|
/**
|
|
169
169
|
* Props applied to the Listbox element.
|
|
170
|
-
* @deprecated Use `slotProps.listbox` instead. This prop will be removed in
|
|
170
|
+
* @deprecated Use `slotProps.listbox` 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.
|
|
171
171
|
*/
|
|
172
172
|
ListboxProps?: ReturnType<ReturnType<typeof useAutocomplete>['getListboxProps']> & {
|
|
173
173
|
sx?: SxProps<Theme>;
|
|
@@ -212,13 +212,13 @@ export interface AutocompleteProps<Value, Multiple extends boolean | undefined,
|
|
|
212
212
|
/**
|
|
213
213
|
* The component used to render the body of the popup.
|
|
214
214
|
* @default Paper
|
|
215
|
-
* @deprecated Use `slots.paper` instead. This prop will be removed in
|
|
215
|
+
* @deprecated Use `slots.paper` 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.
|
|
216
216
|
*/
|
|
217
217
|
PaperComponent?: React.JSXElementConstructor<React.HTMLAttributes<HTMLElement>>;
|
|
218
218
|
/**
|
|
219
219
|
* The component used to position the popup.
|
|
220
220
|
* @default Popper
|
|
221
|
-
* @deprecated Use `slots.popper` instead. This prop will be removed in
|
|
221
|
+
* @deprecated Use `slots.popper` 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.
|
|
222
222
|
*/
|
|
223
223
|
PopperComponent?: React.JSXElementConstructor<PopperProps>;
|
|
224
224
|
/**
|
|
@@ -791,7 +791,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
791
791
|
blurOnSelect: _propTypes.default.oneOfType([_propTypes.default.oneOf(['mouse', 'touch']), _propTypes.default.bool]),
|
|
792
792
|
/**
|
|
793
793
|
* Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.
|
|
794
|
-
* @deprecated Use `slotProps.chip` instead. This prop will be removed in
|
|
794
|
+
* @deprecated Use `slotProps.chip` 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.
|
|
795
795
|
*/
|
|
796
796
|
ChipProps: _propTypes.default.object,
|
|
797
797
|
/**
|
|
@@ -836,7 +836,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
836
836
|
closeText: _propTypes.default.string,
|
|
837
837
|
/**
|
|
838
838
|
* The props used for each slot inside.
|
|
839
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
839
|
+
* @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.
|
|
840
840
|
*/
|
|
841
841
|
componentsProps: _propTypes.default.shape({
|
|
842
842
|
clearIndicator: _propTypes.default.object,
|
|
@@ -994,12 +994,12 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
994
994
|
/**
|
|
995
995
|
* The component used to render the listbox.
|
|
996
996
|
* @default 'ul'
|
|
997
|
-
* @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in
|
|
997
|
+
* @deprecated Use `slotProps.listbox.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.
|
|
998
998
|
*/
|
|
999
999
|
ListboxComponent: _propTypes.default.elementType,
|
|
1000
1000
|
/**
|
|
1001
1001
|
* Props applied to the Listbox element.
|
|
1002
|
-
* @deprecated Use `slotProps.listbox` instead. This prop will be removed in
|
|
1002
|
+
* @deprecated Use `slotProps.listbox` 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.
|
|
1003
1003
|
*/
|
|
1004
1004
|
ListboxProps: _propTypes.default.object,
|
|
1005
1005
|
/**
|
|
@@ -1094,13 +1094,13 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
1094
1094
|
/**
|
|
1095
1095
|
* The component used to render the body of the popup.
|
|
1096
1096
|
* @default Paper
|
|
1097
|
-
* @deprecated Use `slots.paper` instead. This prop will be removed in
|
|
1097
|
+
* @deprecated Use `slots.paper` 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.
|
|
1098
1098
|
*/
|
|
1099
1099
|
PaperComponent: _propTypes.default.elementType,
|
|
1100
1100
|
/**
|
|
1101
1101
|
* The component used to position the popup.
|
|
1102
1102
|
* @default Popper
|
|
1103
|
-
* @deprecated Use `slots.popper` instead. This prop will be removed in
|
|
1103
|
+
* @deprecated Use `slots.popper` 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.
|
|
1104
1104
|
*/
|
|
1105
1105
|
PopperComponent: _propTypes.default.elementType,
|
|
1106
1106
|
/**
|
package/Avatar/Avatar.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface AvatarOwnProps {
|
|
|
35
35
|
/**
|
|
36
36
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
37
37
|
* It can be used to listen for the loading error event.
|
|
38
|
-
* @deprecated Use `slotProps.img` instead. This prop will be removed in
|
|
38
|
+
* @deprecated Use `slotProps.img` 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.
|
|
39
39
|
*/
|
|
40
40
|
imgProps?: React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
41
41
|
sx?: SxProps<Theme>;
|
package/Avatar/Avatar.js
CHANGED
|
@@ -263,7 +263,7 @@ process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */
|
|
|
263
263
|
/**
|
|
264
264
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
265
265
|
* It can be used to listen for the loading error event.
|
|
266
|
-
* @deprecated Use `slotProps.img` instead. This prop will be removed in
|
|
266
|
+
* @deprecated Use `slotProps.img` 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.
|
|
267
267
|
*/
|
|
268
268
|
imgProps: _propTypes.default.object,
|
|
269
269
|
/**
|
|
@@ -12,7 +12,7 @@ export interface AvatarGroupSlots {
|
|
|
12
12
|
}
|
|
13
13
|
export type AvatarGroupSlotsAndSlotProps = CreateSlotsAndSlotProps<AvatarGroupSlots, {
|
|
14
14
|
/**
|
|
15
|
-
* @deprecated use `slotProps.surplus` instead. This prop will be removed in
|
|
15
|
+
* @deprecated use `slotProps.surplus` 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.
|
|
16
16
|
* */
|
|
17
17
|
additionalAvatar: React.ComponentPropsWithRef<typeof Avatar> & AvatarGroupComponentsPropsOverrides;
|
|
18
18
|
surplus: SlotProps<React.ElementType<React.ComponentPropsWithRef<typeof Avatar>>, AvatarGroupComponentsPropsOverrides, AvatarGroupOwnerState>;
|
|
@@ -37,7 +37,7 @@ export interface AvatarGroupOwnProps extends AvatarGroupSlotsAndSlotProps {
|
|
|
37
37
|
*
|
|
38
38
|
* This prop is an alias for the `slotProps` prop.
|
|
39
39
|
*
|
|
40
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
40
|
+
* @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.
|
|
41
41
|
*/
|
|
42
42
|
componentsProps?: {
|
|
43
43
|
additionalAvatar?: React.ComponentPropsWithRef<typeof Avatar> & AvatarGroupComponentsPropsOverrides;
|
|
@@ -167,7 +167,7 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
167
167
|
*
|
|
168
168
|
* This prop is an alias for the `slotProps` prop.
|
|
169
169
|
*
|
|
170
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
170
|
+
* @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.
|
|
171
171
|
*/
|
|
172
172
|
componentsProps: _propTypes.default.shape({
|
|
173
173
|
additionalAvatar: _propTypes.default.object
|
package/Backdrop/Backdrop.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
|
|
|
41
41
|
/**
|
|
42
42
|
* The components used for each slot inside.
|
|
43
43
|
*
|
|
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
|
* @default {}
|
|
47
47
|
*/
|
|
@@ -52,7 +52,7 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
|
|
|
52
52
|
* The extra props for the slot components.
|
|
53
53
|
* You can override the existing props or add new ones.
|
|
54
54
|
*
|
|
55
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
55
|
+
* @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.
|
|
56
56
|
*
|
|
57
57
|
* @default {}
|
|
58
58
|
*/
|
|
@@ -86,7 +86,7 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
|
|
|
86
86
|
* The component used for the transition.
|
|
87
87
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
88
88
|
* @default Fade
|
|
89
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
89
|
+
* @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.
|
|
90
90
|
*/
|
|
91
91
|
TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
|
|
92
92
|
children: React.ReactElement<unknown, any>;
|
package/Backdrop/Backdrop.js
CHANGED
|
@@ -144,7 +144,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
144
144
|
/**
|
|
145
145
|
* The components used for each slot inside.
|
|
146
146
|
*
|
|
147
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in
|
|
147
|
+
* @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.
|
|
148
148
|
*
|
|
149
149
|
* @default {}
|
|
150
150
|
*/
|
|
@@ -155,7 +155,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
155
155
|
* The extra props for the slot components.
|
|
156
156
|
* You can override the existing props or add new ones.
|
|
157
157
|
*
|
|
158
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
158
|
+
* @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.
|
|
159
159
|
*
|
|
160
160
|
* @default {}
|
|
161
161
|
*/
|
|
@@ -196,7 +196,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
196
196
|
* The component used for the transition.
|
|
197
197
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
198
198
|
* @default Fade
|
|
199
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
199
|
+
* @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.
|
|
200
200
|
*/
|
|
201
201
|
TransitionComponent: _propTypes.default.elementType,
|
|
202
202
|
/**
|
package/Badge/Badge.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export interface BadgeOwnProps {
|
|
|
60
60
|
* The extra props for the slot components.
|
|
61
61
|
* You can override the existing props or add new ones.
|
|
62
62
|
*
|
|
63
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
63
|
+
* @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.
|
|
64
64
|
*
|
|
65
65
|
* @default {}
|
|
66
66
|
*/
|
|
@@ -68,7 +68,7 @@ export interface BadgeOwnProps {
|
|
|
68
68
|
/**
|
|
69
69
|
* The components used for each slot inside.
|
|
70
70
|
*
|
|
71
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
71
|
+
* @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.
|
|
72
72
|
*
|
|
73
73
|
* @default {}
|
|
74
74
|
*/
|
package/Badge/Badge.js
CHANGED
|
@@ -365,7 +365,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
|
|
|
365
365
|
/**
|
|
366
366
|
* The components used for each slot inside.
|
|
367
367
|
*
|
|
368
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
368
|
+
* @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.
|
|
369
369
|
*
|
|
370
370
|
* @default {}
|
|
371
371
|
*/
|
|
@@ -377,7 +377,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
|
|
|
377
377
|
* The extra props for the slot components.
|
|
378
378
|
* You can override the existing props or add new ones.
|
|
379
379
|
*
|
|
380
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
380
|
+
* @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.
|
|
381
381
|
*
|
|
382
382
|
* @default {}
|
|
383
383
|
*/
|
package/Button/Button.js
CHANGED
|
@@ -13,7 +13,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
13
13
|
var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
16
|
-
var _utils = require("
|
|
16
|
+
var _utils = require("../utils");
|
|
17
17
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
18
18
|
var _zeroStyled = require("../zero-styled");
|
|
19
19
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 7.0.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v7.0.0..master -->
|
|
6
|
+
|
|
7
|
+
_Mar 28, 2025_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 7 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@7.0.1`
|
|
12
|
+
|
|
13
|
+
- Export ThemeProviderProps (#45701) @aarongarciah
|
|
14
|
+
- [Fab] Fix default variant text color when using CSS vars (#45714) @aarongarciah
|
|
15
|
+
- Remove mention of v7 in deprecation messages (#45708) @DiegoAndai
|
|
16
|
+
- [Popover] Allow `null` in `anchorEl` function return type (#45045) @eduter
|
|
17
|
+
- Fix missing CSSProperties/MixinOptions types (#45706) @Janpot
|
|
18
|
+
|
|
19
|
+
### `@mui/icons-material@7.0.1`
|
|
20
|
+
|
|
21
|
+
- [code-infra] Fix icon-material type resolution under `moduleResolution: "node"` (#45704) @Janpot
|
|
22
|
+
- Bring back individual icon dts (#45711) @Janpot
|
|
23
|
+
|
|
24
|
+
### Core
|
|
25
|
+
|
|
26
|
+
- Improve the release instructions (#45688) @mnajdova
|
|
27
|
+
|
|
28
|
+
### Docs
|
|
29
|
+
|
|
30
|
+
- Fix Masonry and Toolpad dark mode demos (#45721) @siriwatknp
|
|
31
|
+
- Update v7 related copy (#45716) @aarongarciah
|
|
32
|
+
- Avoid unwanted undefined in page title (#45718) @aarongarciah
|
|
33
|
+
- Fix joy templates error (#45715) @siriwatknp
|
|
34
|
+
- Rename GitHub icon import (#45709) @micttyoid
|
|
35
|
+
- Fix Safari issue in dark mode (#45696) @mnajdova
|
|
36
|
+
- Fix `Grid`, `GridLegacy`, `Stack`, `Badge`, `Select`, `Autocomplete` demos CSS variables (#45693) @DiegoAndai
|
|
37
|
+
- Add "Material UI v7 is here" to the notifications (#45694) @DiegoAndai
|
|
38
|
+
- Fix `Breadcrumbs`, `List`, `Divider`, and `Typography` dark mode demos (#45692) @siriwatknp
|
|
39
|
+
- Fix Material Icons page in dark mode (#45691) @mnajdova
|
|
40
|
+
|
|
41
|
+
All contributors of this release in alphabetical order: @aarongarciah, @DiegoAndai, @eduter, @Janpot, @micttyoid, @mnajdova, @siriwatknp
|
|
42
|
+
|
|
3
43
|
## 7.0.0
|
|
4
44
|
|
|
5
45
|
<!-- generated comparing v7.0.0-rc.0..master -->
|
|
@@ -105,7 +105,7 @@ export interface CardHeaderOwnProps<TitleTypographyComponent extends React.Eleme
|
|
|
105
105
|
/**
|
|
106
106
|
* These props will be forwarded to the subheader
|
|
107
107
|
* (as long as disableTypography is not `true`).
|
|
108
|
-
* @deprecated Use `slotProps.subheader` instead. This prop will be removed in
|
|
108
|
+
* @deprecated Use `slotProps.subheader` 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.
|
|
109
109
|
*/
|
|
110
110
|
subheaderTypographyProps?: TypographyProps<SubheaderTypographyComponent, {
|
|
111
111
|
component?: SubheaderTypographyComponent;
|
|
@@ -121,7 +121,7 @@ export interface CardHeaderOwnProps<TitleTypographyComponent extends React.Eleme
|
|
|
121
121
|
/**
|
|
122
122
|
* These props will be forwarded to the title
|
|
123
123
|
* (as long as disableTypography is not `true`).
|
|
124
|
-
* @deprecated Use `slotProps.title` instead. This prop will be removed in
|
|
124
|
+
* @deprecated Use `slotProps.title` 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.
|
|
125
125
|
*/
|
|
126
126
|
titleTypographyProps?: TypographyProps<TitleTypographyComponent, {
|
|
127
127
|
component?: TitleTypographyComponent;
|
package/CardHeader/CardHeader.js
CHANGED
|
@@ -253,7 +253,7 @@ process.env.NODE_ENV !== "production" ? CardHeader.propTypes /* remove-proptypes
|
|
|
253
253
|
/**
|
|
254
254
|
* These props will be forwarded to the subheader
|
|
255
255
|
* (as long as disableTypography is not `true`).
|
|
256
|
-
* @deprecated Use `slotProps.subheader` instead. This prop will be removed in
|
|
256
|
+
* @deprecated Use `slotProps.subheader` 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.
|
|
257
257
|
*/
|
|
258
258
|
subheaderTypographyProps: _propTypes.default.object,
|
|
259
259
|
/**
|
|
@@ -267,7 +267,7 @@ process.env.NODE_ENV !== "production" ? CardHeader.propTypes /* remove-proptypes
|
|
|
267
267
|
/**
|
|
268
268
|
* These props will be forwarded to the title
|
|
269
269
|
* (as long as disableTypography is not `true`).
|
|
270
|
-
* @deprecated Use `slotProps.title` instead. This prop will be removed in
|
|
270
|
+
* @deprecated Use `slotProps.title` 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.
|
|
271
271
|
*/
|
|
272
272
|
titleTypographyProps: _propTypes.default.object
|
|
273
273
|
} : void 0;
|
package/Checkbox/Checkbox.js
CHANGED
|
@@ -237,7 +237,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
237
237
|
indeterminateIcon: _propTypes.default.node,
|
|
238
238
|
/**
|
|
239
239
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
240
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
240
|
+
* @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.
|
|
241
241
|
*/
|
|
242
242
|
inputProps: _propTypes.default.object,
|
|
243
243
|
/**
|
package/Dialog/Dialog.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
|
|
|
130
130
|
/**
|
|
131
131
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
132
132
|
* @default {}
|
|
133
|
-
* @deprecated Use `slotProps.paper` instead. This prop will be removed in
|
|
133
|
+
* @deprecated Use `slotProps.paper` 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.
|
|
134
134
|
*/
|
|
135
135
|
PaperProps?: Partial<PaperProps<React.ElementType>>;
|
|
136
136
|
/**
|
|
@@ -146,7 +146,7 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
|
|
|
146
146
|
* The component used for the transition.
|
|
147
147
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
148
148
|
* @default Fade
|
|
149
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
149
|
+
* @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.
|
|
150
150
|
*/
|
|
151
151
|
TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
|
|
152
152
|
children: React.ReactElement<unknown, any>;
|
|
@@ -163,7 +163,7 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
|
|
|
163
163
|
/**
|
|
164
164
|
* Props applied to the transition element.
|
|
165
165
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
166
|
-
* @deprecated Use `slotProps.transition` instead. This prop will be removed in
|
|
166
|
+
* @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.
|
|
167
167
|
*/
|
|
168
168
|
TransitionProps?: TransitionProps;
|
|
169
169
|
}
|
package/Dialog/Dialog.js
CHANGED
|
@@ -456,7 +456,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
456
456
|
/**
|
|
457
457
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
458
458
|
* @default {}
|
|
459
|
-
* @deprecated Use `slotProps.paper` instead. This prop will be removed in
|
|
459
|
+
* @deprecated Use `slotProps.paper` 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.
|
|
460
460
|
*/
|
|
461
461
|
PaperProps: _propTypes.default.object,
|
|
462
462
|
/**
|
|
@@ -494,7 +494,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
494
494
|
* The component used for the transition.
|
|
495
495
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
496
496
|
* @default Fade
|
|
497
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
497
|
+
* @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.
|
|
498
498
|
*/
|
|
499
499
|
TransitionComponent: _propTypes.default.elementType,
|
|
500
500
|
/**
|
|
@@ -513,7 +513,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
513
513
|
/**
|
|
514
514
|
* Props applied to the transition element.
|
|
515
515
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
516
|
-
* @deprecated Use `slotProps.transition` instead. This prop will be removed in
|
|
516
|
+
* @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.
|
|
517
517
|
*/
|
|
518
518
|
TransitionProps: _propTypes.default.object
|
|
519
519
|
} : void 0;
|
package/Drawer/Drawer.d.ts
CHANGED
|
@@ -107,13 +107,13 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
|
|
|
107
107
|
open?: boolean;
|
|
108
108
|
/**
|
|
109
109
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
110
|
-
* @deprecated use the `slotProps.paper` prop instead. This prop will be removed in
|
|
110
|
+
* @deprecated use the `slotProps.paper` 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.
|
|
111
111
|
* @default {}
|
|
112
112
|
*/
|
|
113
113
|
PaperProps?: Partial<PaperProps<React.ElementType>>;
|
|
114
114
|
/**
|
|
115
115
|
* Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
|
|
116
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in
|
|
116
|
+
* @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.
|
|
117
117
|
*/
|
|
118
118
|
SlideProps?: Partial<SlideProps>;
|
|
119
119
|
/**
|
package/Drawer/Drawer.js
CHANGED
|
@@ -386,13 +386,13 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes /* remove-proptypes */
|
|
|
386
386
|
open: _propTypes.default.bool,
|
|
387
387
|
/**
|
|
388
388
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
389
|
-
* @deprecated use the `slotProps.paper` prop instead. This prop will be removed in
|
|
389
|
+
* @deprecated use the `slotProps.paper` 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.
|
|
390
390
|
* @default {}
|
|
391
391
|
*/
|
|
392
392
|
PaperProps: _propTypes.default.object,
|
|
393
393
|
/**
|
|
394
394
|
* Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
|
|
395
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in
|
|
395
|
+
* @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.
|
|
396
396
|
*/
|
|
397
397
|
SlideProps: _propTypes.default.object,
|
|
398
398
|
/**
|
package/Fab/Fab.js
CHANGED
|
@@ -65,7 +65,7 @@ const FabRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
65
65
|
'&:active': {
|
|
66
66
|
boxShadow: (theme.vars || theme).shadows[12]
|
|
67
67
|
},
|
|
68
|
-
color: theme.vars ? theme.vars.palette.
|
|
68
|
+
color: theme.vars ? theme.vars.palette.grey[900] : theme.palette.getContrastText?.(theme.palette.grey[300]),
|
|
69
69
|
backgroundColor: (theme.vars || theme).palette.grey[300],
|
|
70
70
|
'&:hover': {
|
|
71
71
|
backgroundColor: (theme.vars || theme).palette.grey.A100,
|
|
@@ -356,7 +356,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
356
356
|
/**
|
|
357
357
|
* The components used for each slot inside.
|
|
358
358
|
*
|
|
359
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
359
|
+
* @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.
|
|
360
360
|
*
|
|
361
361
|
* @default {}
|
|
362
362
|
*/
|
|
@@ -368,7 +368,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
368
368
|
* The extra props for the slot components.
|
|
369
369
|
* You can override the existing props or add new ones.
|
|
370
370
|
*
|
|
371
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
371
|
+
* @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.
|
|
372
372
|
*
|
|
373
373
|
* @default {}
|
|
374
374
|
*/
|
|
@@ -27,7 +27,7 @@ export interface FormControlLabelProps extends StandardProps<React.LabelHTMLAttr
|
|
|
27
27
|
/**
|
|
28
28
|
* The props used for each slot inside.
|
|
29
29
|
* @default {}
|
|
30
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
30
|
+
* @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.
|
|
31
31
|
*/
|
|
32
32
|
componentsProps?: {
|
|
33
33
|
/**
|
|
@@ -219,7 +219,7 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-pro
|
|
|
219
219
|
/**
|
|
220
220
|
* The props used for each slot inside.
|
|
221
221
|
* @default {}
|
|
222
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
222
|
+
* @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.
|
|
223
223
|
*/
|
|
224
224
|
componentsProps: _propTypes.default.shape({
|
|
225
225
|
typography: _propTypes.default.object
|
package/IconButton/IconButton.js
CHANGED
|
@@ -12,8 +12,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
-
var _utils = require("@mui/material/utils");
|
|
16
15
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
16
|
+
var _utils = require("../utils");
|
|
17
17
|
var _zeroStyled = require("../zero-styled");
|
|
18
18
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
19
19
|
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|