@mui/material 6.4.4 → 7.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +3 -3
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.ts +3 -3
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AppBar/AppBar.d.ts +3 -3
- package/Autocomplete/Autocomplete.d.ts +2 -2
- package/Avatar/Avatar.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/Backdrop/Backdrop.d.ts +3 -3
- package/Badge/Badge.d.ts +3 -3
- package/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
- package/Box/Box.d.ts +2 -2
- package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/Button/Button.d.ts +4 -4
- package/ButtonBase/ButtonBase.d.ts +2 -2
- package/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/CHANGELOG.md +24 -2272
- package/Card/Card.d.ts +3 -3
- package/CardActionArea/CardActionArea.d.ts +3 -3
- package/CardActions/CardActions.d.ts +2 -2
- package/CardContent/CardContent.d.ts +2 -2
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardMedia/CardMedia.d.ts +2 -2
- package/Checkbox/Checkbox.d.ts +4 -4
- package/Chip/Chip.d.ts +2 -2
- package/CircularProgress/CircularProgress.d.ts +3 -7
- package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/ClickAwayListener/ClickAwayListener.js +3 -3
- package/Collapse/Collapse.d.ts +5 -5
- package/Container/Container.d.ts +2 -2
- package/CssBaseline/CssBaseline.d.ts +2 -2
- package/Dialog/Dialog.d.ts +3 -3
- package/DialogActions/DialogActions.d.ts +2 -2
- package/DialogContent/DialogContent.d.ts +2 -2
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogTitle/DialogTitle.d.ts +3 -3
- package/Divider/Divider.d.ts +3 -3
- package/Drawer/Drawer.d.ts +3 -3
- package/Fab/Fab.d.ts +3 -3
- package/Fade/Fade.d.ts +3 -3
- package/FilledInput/FilledInput.d.ts +3 -3
- package/FormControl/FormControl.d.ts +6 -6
- package/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormHelperText/FormHelperText.d.ts +2 -2
- package/FormLabel/FormLabel.d.ts +4 -4
- package/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/Grid/Grid.d.ts +2 -2
- package/Grid2/Grid2.d.ts +2 -2
- package/Grid2/Grid2.js +2 -2
- package/Grow/Grow.d.ts +5 -5
- package/Hidden/Hidden.d.ts +2 -2
- package/Icon/Icon.d.ts +3 -3
- package/IconButton/IconButton.d.ts +4 -4
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/Input/Input.d.ts +3 -3
- package/InputAdornment/InputAdornment.d.ts +2 -2
- package/InputBase/InputBase.d.ts +2 -2
- package/InputLabel/InputLabel.d.ts +3 -3
- package/LinearProgress/LinearProgress.d.ts +3 -7
- package/Link/Link.d.ts +4 -4
- package/List/List.d.ts +3 -3
- package/ListItem/ListItem.d.ts +3 -3
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemButton/ListItemButton.d.ts +3 -3
- package/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemText/ListItemText.d.ts +2 -2
- package/ListSubheader/ListSubheader.d.ts +2 -2
- package/Menu/Menu.d.ts +4 -4
- package/Menu/Menu.js +6 -2
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuList/MenuList.d.ts +4 -4
- package/MobileStepper/MobileStepper.d.ts +4 -72
- package/MobileStepper/MobileStepper.js +18 -76
- package/Modal/Modal.d.ts +7 -7
- package/Modal/Modal.js +9 -10
- package/NativeSelect/NativeSelect.d.ts +3 -3
- package/NoSsr/NoSsr.d.ts +2 -2
- package/NoSsr/NoSsr.js +2 -2
- package/OutlinedInput/OutlinedInput.d.ts +3 -3
- package/Pagination/Pagination.d.ts +2 -2
- package/PaginationItem/PaginationItem.d.ts +2 -2
- package/Paper/Paper.d.ts +3 -3
- package/PigmentContainer/PigmentContainer.d.ts +2 -2
- package/PigmentContainer/PigmentContainer.js +2 -2
- package/PigmentGrid/PigmentGrid.d.ts +2 -2
- package/PigmentGrid/PigmentGrid.js +2 -2
- package/PigmentHidden/PigmentHidden.d.ts +2 -2
- package/PigmentHidden/PigmentHidden.js +2 -2
- package/PigmentStack/PigmentStack.d.ts +2 -2
- package/PigmentStack/PigmentStack.js +2 -2
- package/Popover/Popover.d.ts +64 -10
- package/Popover/Popover.js +78 -51
- package/Popper/Popper.d.ts +4 -4
- package/Popper/Popper.js +4 -4
- package/Portal/Portal.d.ts +2 -2
- package/Portal/Portal.js +2 -2
- package/README.md +4 -3
- package/Radio/Radio.d.ts +3 -3
- package/RadioGroup/RadioGroup.d.ts +3 -3
- package/Rating/Rating.d.ts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
- package/Select/Select.d.ts +3 -3
- package/Skeleton/Skeleton.d.ts +2 -2
- package/Slide/Slide.d.ts +4 -4
- package/Slider/Slider.d.ts +20 -11
- package/Slider/Slider.js +2 -2
- package/Slider/sliderClasses.d.ts +7 -21
- package/Snackbar/Snackbar.d.ts +80 -3
- package/Snackbar/Snackbar.js +122 -32
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/Step/Step.d.ts +2 -2
- package/StepButton/StepButton.d.ts +3 -3
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepContent/StepContent.d.ts +2 -2
- package/StepIcon/StepIcon.d.ts +3 -3
- package/StepLabel/StepLabel.d.ts +2 -2
- package/Stepper/Stepper.d.ts +2 -2
- package/SvgIcon/SvgIcon.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
- package/Switch/Switch.d.ts +4 -4
- package/Tab/Tab.d.ts +3 -3
- package/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/Table/Table.d.ts +2 -2
- package/TableBody/TableBody.d.ts +2 -2
- package/TableCell/TableCell.d.ts +2 -2
- package/TableContainer/TableContainer.d.ts +2 -2
- package/TableFooter/TableFooter.d.ts +2 -2
- package/TableHead/TableHead.d.ts +2 -2
- package/TablePagination/TablePagination.d.ts +4 -4
- package/TableRow/TableRow.d.ts +2 -2
- package/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/Tabs/Tabs.d.ts +2 -2
- package/TextField/TextField.d.ts +10 -10
- package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
- package/TextareaAutosize/TextareaAutosize.js +2 -2
- package/ToggleButton/ToggleButton.d.ts +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/Toolbar/Toolbar.d.ts +2 -2
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Typography/Typography.d.ts +3 -3
- package/Zoom/Zoom.d.ts +3 -3
- package/index.js +1 -1
- package/internal/SwitchBase.d.ts +33 -1
- package/internal/SwitchBase.js +84 -30
- package/modern/ClickAwayListener/ClickAwayListener.js +3 -3
- package/modern/Grid2/Grid2.js +2 -2
- package/modern/Menu/Menu.js +6 -2
- package/modern/MobileStepper/MobileStepper.js +18 -76
- package/modern/Modal/Modal.js +9 -10
- package/modern/NoSsr/NoSsr.js +2 -2
- package/modern/PigmentContainer/PigmentContainer.js +2 -2
- package/modern/PigmentGrid/PigmentGrid.js +2 -2
- package/modern/PigmentHidden/PigmentHidden.js +2 -2
- package/modern/PigmentStack/PigmentStack.js +2 -2
- package/modern/Popover/Popover.js +78 -51
- package/modern/Popper/Popper.js +4 -4
- package/modern/Portal/Portal.js +2 -2
- package/modern/Slider/Slider.js +2 -2
- package/modern/Snackbar/Snackbar.js +122 -32
- package/modern/TextareaAutosize/TextareaAutosize.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +84 -30
- package/modern/version/index.js +5 -5
- package/node/ClickAwayListener/ClickAwayListener.js +3 -3
- package/node/Grid2/Grid2.js +2 -2
- package/node/Menu/Menu.js +6 -2
- package/node/MobileStepper/MobileStepper.js +18 -76
- package/node/Modal/Modal.js +9 -10
- package/node/NoSsr/NoSsr.js +2 -2
- package/node/PigmentContainer/PigmentContainer.js +2 -2
- package/node/PigmentGrid/PigmentGrid.js +2 -2
- package/node/PigmentHidden/PigmentHidden.js +2 -2
- package/node/PigmentStack/PigmentStack.js +2 -2
- package/node/Popover/Popover.js +78 -51
- package/node/Popper/Popper.js +4 -4
- package/node/Portal/Portal.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +122 -32
- package/node/TextareaAutosize/TextareaAutosize.js +2 -2
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +84 -30
- package/node/version/index.js +5 -5
- package/package.json +7 -7
- package/version/index.js +5 -5
|
@@ -81,17 +81,17 @@ export type IconButtonTypeMap<
|
|
|
81
81
|
}>;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Refer to the [Icons](https://mui.com/material-ui/icons/) section of the documentation
|
|
84
|
+
* Refer to the [Icons](https://next.mui.com/material-ui/icons/) section of the documentation
|
|
85
85
|
* regarding the available icon options.
|
|
86
86
|
*
|
|
87
87
|
* Demos:
|
|
88
88
|
*
|
|
89
|
-
* - [Button](https://mui.com/material-ui/react-button/)
|
|
89
|
+
* - [Button](https://next.mui.com/material-ui/react-button/)
|
|
90
90
|
*
|
|
91
91
|
* API:
|
|
92
92
|
*
|
|
93
|
-
* - [IconButton API](https://mui.com/material-ui/api/icon-button/)
|
|
94
|
-
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
|
93
|
+
* - [IconButton API](https://next.mui.com/material-ui/api/icon-button/)
|
|
94
|
+
* - inherits [ButtonBase API](https://next.mui.com/material-ui/api/button-base/)
|
|
95
95
|
*/
|
|
96
96
|
declare const IconButton: ExtendButtonBase<IconButtonTypeMap>;
|
|
97
97
|
|
package/ImageList/ImageList.d.ts
CHANGED
|
@@ -56,11 +56,11 @@ export interface ImageListTypeMap<
|
|
|
56
56
|
*
|
|
57
57
|
* Demos:
|
|
58
58
|
*
|
|
59
|
-
* - [Image List](https://mui.com/material-ui/react-image-list/)
|
|
59
|
+
* - [Image List](https://next.mui.com/material-ui/react-image-list/)
|
|
60
60
|
*
|
|
61
61
|
* API:
|
|
62
62
|
*
|
|
63
|
-
* - [ImageList API](https://mui.com/material-ui/api/image-list/)
|
|
63
|
+
* - [ImageList API](https://next.mui.com/material-ui/api/image-list/)
|
|
64
64
|
*/
|
|
65
65
|
declare const ImageList: OverridableComponent<ImageListTypeMap>;
|
|
66
66
|
|
|
@@ -40,11 +40,11 @@ export interface ImageListItemTypeMap<
|
|
|
40
40
|
*
|
|
41
41
|
* Demos:
|
|
42
42
|
*
|
|
43
|
-
* - [Image List](https://mui.com/material-ui/react-image-list/)
|
|
43
|
+
* - [Image List](https://next.mui.com/material-ui/react-image-list/)
|
|
44
44
|
*
|
|
45
45
|
* API:
|
|
46
46
|
*
|
|
47
|
-
* - [ImageListItem API](https://mui.com/material-ui/api/image-list-item/)
|
|
47
|
+
* - [ImageListItem API](https://next.mui.com/material-ui/api/image-list-item/)
|
|
48
48
|
*/
|
|
49
49
|
declare const ImageListItem: OverridableComponent<ImageListItemTypeMap>;
|
|
50
50
|
|
|
@@ -42,10 +42,10 @@ export interface ImageListItemBarProps
|
|
|
42
42
|
*
|
|
43
43
|
* Demos:
|
|
44
44
|
*
|
|
45
|
-
* - [Image List](https://mui.com/material-ui/react-image-list/)
|
|
45
|
+
* - [Image List](https://next.mui.com/material-ui/react-image-list/)
|
|
46
46
|
*
|
|
47
47
|
* API:
|
|
48
48
|
*
|
|
49
|
-
* - [ImageListItemBar API](https://mui.com/material-ui/api/image-list-item-bar/)
|
|
49
|
+
* - [ImageListItemBar API](https://next.mui.com/material-ui/api/image-list-item-bar/)
|
|
50
50
|
*/
|
|
51
51
|
export default function ImageListItemBar(props: ImageListItemBarProps): React.JSX.Element;
|
package/Input/Input.d.ts
CHANGED
|
@@ -23,12 +23,12 @@ export interface InputProps extends StandardProps<InputBaseProps> {
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Text Field](https://mui.com/material-ui/react-text-field/)
|
|
26
|
+
* - [Text Field](https://next.mui.com/material-ui/react-text-field/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [Input API](https://mui.com/material-ui/api/input/)
|
|
31
|
-
* - inherits [InputBase API](https://mui.com/material-ui/api/input-base/)
|
|
30
|
+
* - [Input API](https://next.mui.com/material-ui/api/input/)
|
|
31
|
+
* - inherits [InputBase API](https://next.mui.com/material-ui/api/input-base/)
|
|
32
32
|
*/
|
|
33
33
|
declare const Input: ((props: InputProps) => React.JSX.Element) & { muiName: string };
|
|
34
34
|
|
|
@@ -51,11 +51,11 @@ export interface InputAdornmentTypeMap<
|
|
|
51
51
|
*
|
|
52
52
|
* Demos:
|
|
53
53
|
*
|
|
54
|
-
* - [Text Field](https://mui.com/material-ui/react-text-field/)
|
|
54
|
+
* - [Text Field](https://next.mui.com/material-ui/react-text-field/)
|
|
55
55
|
*
|
|
56
56
|
* API:
|
|
57
57
|
*
|
|
58
|
-
* - [InputAdornment API](https://mui.com/material-ui/api/input-adornment/)
|
|
58
|
+
* - [InputAdornment API](https://next.mui.com/material-ui/api/input-adornment/)
|
|
59
59
|
*/
|
|
60
60
|
declare const InputAdornment: OverridableComponent<InputAdornmentTypeMap>;
|
|
61
61
|
|
package/InputBase/InputBase.d.ts
CHANGED
|
@@ -255,10 +255,10 @@ export interface InputBaseComponentProps
|
|
|
255
255
|
*
|
|
256
256
|
* Demos:
|
|
257
257
|
*
|
|
258
|
-
* - [Text Field](https://mui.com/material-ui/react-text-field/)
|
|
258
|
+
* - [Text Field](https://next.mui.com/material-ui/react-text-field/)
|
|
259
259
|
*
|
|
260
260
|
* API:
|
|
261
261
|
*
|
|
262
|
-
* - [InputBase API](https://mui.com/material-ui/api/input-base/)
|
|
262
|
+
* - [InputBase API](https://next.mui.com/material-ui/api/input-base/)
|
|
263
263
|
*/
|
|
264
264
|
export default function InputBase(props: InputBaseProps): React.JSX.Element;
|
|
@@ -71,12 +71,12 @@ export type InputLabelTypeMap<
|
|
|
71
71
|
*
|
|
72
72
|
* Demos:
|
|
73
73
|
*
|
|
74
|
-
* - [Text Field](https://mui.com/material-ui/react-text-field/)
|
|
74
|
+
* - [Text Field](https://next.mui.com/material-ui/react-text-field/)
|
|
75
75
|
*
|
|
76
76
|
* API:
|
|
77
77
|
*
|
|
78
|
-
* - [InputLabel API](https://mui.com/material-ui/api/input-label/)
|
|
79
|
-
* - inherits [FormLabel API](https://mui.com/material-ui/api/form-label/)
|
|
78
|
+
* - [InputLabel API](https://next.mui.com/material-ui/api/input-label/)
|
|
79
|
+
* - inherits [FormLabel API](https://next.mui.com/material-ui/api/form-label/)
|
|
80
80
|
*/
|
|
81
81
|
declare const InputLabel: OverridableComponent<InputLabelTypeMap>;
|
|
82
82
|
|
|
@@ -5,7 +5,6 @@ import { InternalStandardProps as StandardProps, Theme } from '..';
|
|
|
5
5
|
import { LinearProgressClasses } from './linearProgressClasses';
|
|
6
6
|
|
|
7
7
|
export interface LinearProgressPropsColorOverrides {}
|
|
8
|
-
export interface LinearProgressPropsVariantOverrides {}
|
|
9
8
|
|
|
10
9
|
export interface LinearProgressProps
|
|
11
10
|
extends StandardProps<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
@@ -42,10 +41,7 @@ export interface LinearProgressProps
|
|
|
42
41
|
* Use indeterminate or query when there is no progress value.
|
|
43
42
|
* @default 'indeterminate'
|
|
44
43
|
*/
|
|
45
|
-
variant?:
|
|
46
|
-
'determinate' | 'indeterminate' | 'buffer' | 'query',
|
|
47
|
-
LinearProgressPropsVariantOverrides
|
|
48
|
-
>;
|
|
44
|
+
variant?: 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
49
45
|
}
|
|
50
46
|
|
|
51
47
|
/**
|
|
@@ -57,10 +53,10 @@ export interface LinearProgressProps
|
|
|
57
53
|
*
|
|
58
54
|
* Demos:
|
|
59
55
|
*
|
|
60
|
-
* - [Progress](https://mui.com/material-ui/react-progress/)
|
|
56
|
+
* - [Progress](https://next.mui.com/material-ui/react-progress/)
|
|
61
57
|
*
|
|
62
58
|
* API:
|
|
63
59
|
*
|
|
64
|
-
* - [LinearProgress API](https://mui.com/material-ui/api/linear-progress/)
|
|
60
|
+
* - [LinearProgress API](https://next.mui.com/material-ui/api/linear-progress/)
|
|
65
61
|
*/
|
|
66
62
|
export default function LinearProgress(props: LinearProgressProps): React.JSX.Element;
|
package/Link/Link.d.ts
CHANGED
|
@@ -49,13 +49,13 @@ export interface LinkTypeMap<AdditionalProps = {}, RootComponent extends React.E
|
|
|
49
49
|
*
|
|
50
50
|
* Demos:
|
|
51
51
|
*
|
|
52
|
-
* - [Breadcrumbs](https://mui.com/material-ui/react-breadcrumbs/)
|
|
53
|
-
* - [Links](https://mui.com/material-ui/react-link/)
|
|
52
|
+
* - [Breadcrumbs](https://next.mui.com/material-ui/react-breadcrumbs/)
|
|
53
|
+
* - [Links](https://next.mui.com/material-ui/react-link/)
|
|
54
54
|
*
|
|
55
55
|
* API:
|
|
56
56
|
*
|
|
57
|
-
* - [Link API](https://mui.com/material-ui/api/link/)
|
|
58
|
-
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
57
|
+
* - [Link API](https://next.mui.com/material-ui/api/link/)
|
|
58
|
+
* - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
|
|
59
59
|
*/
|
|
60
60
|
declare const Link: OverridableComponent<LinkTypeMap>;
|
|
61
61
|
|
package/List/List.d.ts
CHANGED
|
@@ -56,12 +56,12 @@ export type ExtendList<TypeMap extends OverridableTypeMap> = OverridableComponen
|
|
|
56
56
|
*
|
|
57
57
|
* Demos:
|
|
58
58
|
*
|
|
59
|
-
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
60
|
-
* - [Transfer List](https://mui.com/material-ui/react-transfer-list/)
|
|
59
|
+
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
60
|
+
* - [Transfer List](https://next.mui.com/material-ui/react-transfer-list/)
|
|
61
61
|
*
|
|
62
62
|
* API:
|
|
63
63
|
*
|
|
64
|
-
* - [List API](https://mui.com/material-ui/api/list/)
|
|
64
|
+
* - [List API](https://next.mui.com/material-ui/api/list/)
|
|
65
65
|
*/
|
|
66
66
|
declare const List: ExtendList<ListTypeMap>;
|
|
67
67
|
|
package/ListItem/ListItem.d.ts
CHANGED
|
@@ -116,12 +116,12 @@ export interface ListItemTypeMap<AdditionalProps, RootComponent extends React.El
|
|
|
116
116
|
*
|
|
117
117
|
* Demos:
|
|
118
118
|
*
|
|
119
|
-
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
120
|
-
* - [Transfer List](https://mui.com/material-ui/react-transfer-list/)
|
|
119
|
+
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
120
|
+
* - [Transfer List](https://next.mui.com/material-ui/react-transfer-list/)
|
|
121
121
|
*
|
|
122
122
|
* API:
|
|
123
123
|
*
|
|
124
|
-
* - [ListItem API](https://mui.com/material-ui/api/list-item/)
|
|
124
|
+
* - [ListItem API](https://next.mui.com/material-ui/api/list-item/)
|
|
125
125
|
*/
|
|
126
126
|
declare const ListItem: OverridableComponent<ListItemTypeMap<{}, 'li'>>;
|
|
127
127
|
|
|
@@ -22,10 +22,10 @@ export interface ListItemAvatarProps extends StandardProps<React.HTMLAttributes<
|
|
|
22
22
|
*
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
25
|
-
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
25
|
+
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [ListItemAvatar API](https://mui.com/material-ui/api/list-item-avatar/)
|
|
29
|
+
* - [ListItemAvatar API](https://next.mui.com/material-ui/api/list-item-avatar/)
|
|
30
30
|
*/
|
|
31
31
|
export default function ListItemAvatar(props: ListItemAvatarProps): React.JSX.Element;
|
|
@@ -76,12 +76,12 @@ export type ListItemButtonTypeMap<
|
|
|
76
76
|
*
|
|
77
77
|
* Demos:
|
|
78
78
|
*
|
|
79
|
-
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
79
|
+
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
80
80
|
*
|
|
81
81
|
* API:
|
|
82
82
|
*
|
|
83
|
-
* - [ListItemButton API](https://mui.com/material-ui/api/list-item-button/)
|
|
84
|
-
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
|
83
|
+
* - [ListItemButton API](https://next.mui.com/material-ui/api/list-item-button/)
|
|
84
|
+
* - inherits [ButtonBase API](https://next.mui.com/material-ui/api/button-base/)
|
|
85
85
|
*/
|
|
86
86
|
declare const ListItemButton: ExtendButtonBase<ListItemButtonTypeMap>;
|
|
87
87
|
|
|
@@ -24,10 +24,10 @@ export interface ListItemIconProps extends StandardProps<React.HTMLAttributes<HT
|
|
|
24
24
|
*
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
27
|
-
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
27
|
+
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
28
28
|
*
|
|
29
29
|
* API:
|
|
30
30
|
*
|
|
31
|
-
* - [ListItemIcon API](https://mui.com/material-ui/api/list-item-icon/)
|
|
31
|
+
* - [ListItemIcon API](https://next.mui.com/material-ui/api/list-item-icon/)
|
|
32
32
|
*/
|
|
33
33
|
export default function ListItemIcon(props: ListItemIconProps): React.JSX.Element;
|
|
@@ -24,11 +24,11 @@ export interface ListItemSecondaryActionProps
|
|
|
24
24
|
*
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
27
|
-
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
27
|
+
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
28
28
|
*
|
|
29
29
|
* API:
|
|
30
30
|
*
|
|
31
|
-
* - [ListItemSecondaryAction API](https://mui.com/material-ui/api/list-item-secondary-action/)
|
|
31
|
+
* - [ListItemSecondaryAction API](https://next.mui.com/material-ui/api/list-item-secondary-action/)
|
|
32
32
|
*
|
|
33
33
|
* @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
34
34
|
*/
|
|
@@ -99,11 +99,11 @@ export interface ListItemTextProps<
|
|
|
99
99
|
*
|
|
100
100
|
* Demos:
|
|
101
101
|
*
|
|
102
|
-
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
102
|
+
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
103
103
|
*
|
|
104
104
|
* API:
|
|
105
105
|
*
|
|
106
|
-
* - [ListItemText API](https://mui.com/material-ui/api/list-item-text/)
|
|
106
|
+
* - [ListItemText API](https://next.mui.com/material-ui/api/list-item-text/)
|
|
107
107
|
*/
|
|
108
108
|
export default function ListItemText<
|
|
109
109
|
PrimaryTypographyComponent extends React.ElementType = 'span',
|
|
@@ -51,11 +51,11 @@ export interface ListSubheaderTypeMap<
|
|
|
51
51
|
*
|
|
52
52
|
* Demos:
|
|
53
53
|
*
|
|
54
|
-
* - [Lists](https://mui.com/material-ui/react-list/)
|
|
54
|
+
* - [Lists](https://next.mui.com/material-ui/react-list/)
|
|
55
55
|
*
|
|
56
56
|
* API:
|
|
57
57
|
*
|
|
58
|
-
* - [ListSubheader API](https://mui.com/material-ui/api/list-subheader/)
|
|
58
|
+
* - [ListSubheader API](https://next.mui.com/material-ui/api/list-subheader/)
|
|
59
59
|
*/
|
|
60
60
|
declare const ListSubheader: OverridableComponent<ListSubheaderTypeMap>;
|
|
61
61
|
|
package/Menu/Menu.d.ts
CHANGED
|
@@ -86,12 +86,12 @@ export declare const MenuPaper: React.FC<PaperProps>;
|
|
|
86
86
|
*
|
|
87
87
|
* Demos:
|
|
88
88
|
*
|
|
89
|
-
* - [App Bar](https://mui.com/material-ui/react-app-bar/)
|
|
90
|
-
* - [Menu](https://mui.com/material-ui/react-menu/)
|
|
89
|
+
* - [App Bar](https://next.mui.com/material-ui/react-app-bar/)
|
|
90
|
+
* - [Menu](https://next.mui.com/material-ui/react-menu/)
|
|
91
91
|
*
|
|
92
92
|
* API:
|
|
93
93
|
*
|
|
94
|
-
* - [Menu API](https://mui.com/material-ui/api/menu/)
|
|
95
|
-
* - inherits [Popover API](https://mui.com/material-ui/api/popover/)
|
|
94
|
+
* - [Menu API](https://next.mui.com/material-ui/api/menu/)
|
|
95
|
+
* - inherits [Popover API](https://next.mui.com/material-ui/api/popover/)
|
|
96
96
|
*/
|
|
97
97
|
export default function Menu(props: MenuProps): React.JSX.Element;
|
package/Menu/Menu.js
CHANGED
|
@@ -263,16 +263,20 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes /* remove-proptypes */ =
|
|
|
263
263
|
* @default {}
|
|
264
264
|
*/
|
|
265
265
|
slotProps: PropTypes.shape({
|
|
266
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
266
267
|
paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
267
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
268
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
269
|
+
transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
268
270
|
}),
|
|
269
271
|
/**
|
|
270
272
|
* The components used for each slot inside.
|
|
271
273
|
* @default {}
|
|
272
274
|
*/
|
|
273
275
|
slots: PropTypes.shape({
|
|
276
|
+
backdrop: PropTypes.elementType,
|
|
274
277
|
paper: PropTypes.elementType,
|
|
275
|
-
root: PropTypes.elementType
|
|
278
|
+
root: PropTypes.elementType,
|
|
279
|
+
transition: PropTypes.elementType
|
|
276
280
|
}),
|
|
277
281
|
/**
|
|
278
282
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
package/MenuItem/MenuItem.d.ts
CHANGED
|
@@ -60,12 +60,12 @@ export type MenuItemTypeMap<
|
|
|
60
60
|
*
|
|
61
61
|
* Demos:
|
|
62
62
|
*
|
|
63
|
-
* - [Menu](https://mui.com/material-ui/react-menu/)
|
|
63
|
+
* - [Menu](https://next.mui.com/material-ui/react-menu/)
|
|
64
64
|
*
|
|
65
65
|
* API:
|
|
66
66
|
*
|
|
67
|
-
* - [MenuItem API](https://mui.com/material-ui/api/menu-item/)
|
|
68
|
-
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
|
67
|
+
* - [MenuItem API](https://next.mui.com/material-ui/api/menu-item/)
|
|
68
|
+
* - inherits [ButtonBase API](https://next.mui.com/material-ui/api/button-base/)
|
|
69
69
|
*/
|
|
70
70
|
declare const MenuItem: ExtendButtonBase<MenuItemTypeMap>;
|
|
71
71
|
|
package/MenuList/MenuList.d.ts
CHANGED
|
@@ -48,18 +48,18 @@ export type MenuListClassKey = keyof NonNullable<MenuListTypeMap['props']['class
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
|
|
51
|
-
* It's exposed to help customization of the [`Menu`](https://mui.com/material-ui/api/menu/) component if you
|
|
51
|
+
* It's exposed to help customization of the [`Menu`](https://next.mui.com/material-ui/api/menu/) component if you
|
|
52
52
|
* use it separately you need to move focus into the component manually. Once
|
|
53
53
|
* the focus is placed inside the component it is fully keyboard accessible.
|
|
54
54
|
*
|
|
55
55
|
* Demos:
|
|
56
56
|
*
|
|
57
|
-
* - [Menu](https://mui.com/material-ui/react-menu/)
|
|
57
|
+
* - [Menu](https://next.mui.com/material-ui/react-menu/)
|
|
58
58
|
*
|
|
59
59
|
* API:
|
|
60
60
|
*
|
|
61
|
-
* - [MenuList API](https://mui.com/material-ui/api/menu-list/)
|
|
62
|
-
* - inherits [List API](https://mui.com/material-ui/api/list/)
|
|
61
|
+
* - [MenuList API](https://next.mui.com/material-ui/api/menu-list/)
|
|
62
|
+
* - inherits [List API](https://next.mui.com/material-ui/api/list/)
|
|
63
63
|
*/
|
|
64
64
|
declare const MenuList: ExtendList<MenuListTypeMap>;
|
|
65
65
|
|
|
@@ -4,73 +4,8 @@ import { InternalStandardProps as StandardProps, Theme } from '..';
|
|
|
4
4
|
import { PaperProps } from '../Paper';
|
|
5
5
|
import { LinearProgressProps } from '../LinearProgress';
|
|
6
6
|
import { MobileStepperClasses } from './mobileStepperClasses';
|
|
7
|
-
import { CreateSlotsAndSlotProps, SlotProps } from '../utils/types';
|
|
8
7
|
|
|
9
|
-
export interface
|
|
10
|
-
/**
|
|
11
|
-
* The component that renders the root slot.
|
|
12
|
-
* @default Paper
|
|
13
|
-
*/
|
|
14
|
-
root: React.ElementType;
|
|
15
|
-
/**
|
|
16
|
-
* The component that renders the progress slot.
|
|
17
|
-
* @default LinearProgress
|
|
18
|
-
*/
|
|
19
|
-
progress: React.ElementType;
|
|
20
|
-
/**
|
|
21
|
-
* The component that renders the dots slot.
|
|
22
|
-
* @default 'div'
|
|
23
|
-
*/
|
|
24
|
-
dots: React.ElementType;
|
|
25
|
-
/**
|
|
26
|
-
* The component that renders the dot slot.
|
|
27
|
-
* @default 'div'
|
|
28
|
-
*/
|
|
29
|
-
dot: React.ElementType;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface MobileStepperRootSlotPropsOverrides {}
|
|
33
|
-
export interface MobileStepperProgressSlotPropsOverrides {}
|
|
34
|
-
export interface MobileStepperDotsSlotPropsOverrides {}
|
|
35
|
-
export interface MobileStepperDotSlotPropsOverrides {}
|
|
36
|
-
|
|
37
|
-
export type MobileStepperSlotsAndSlotProps = CreateSlotsAndSlotProps<
|
|
38
|
-
MobileStepperSlots,
|
|
39
|
-
{
|
|
40
|
-
/**
|
|
41
|
-
* Props forwarded to the root slot.
|
|
42
|
-
* By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
43
|
-
*/
|
|
44
|
-
root: SlotProps<
|
|
45
|
-
React.ElementType<PaperProps>,
|
|
46
|
-
MobileStepperRootSlotPropsOverrides,
|
|
47
|
-
MobileStepperOwnerState
|
|
48
|
-
>;
|
|
49
|
-
/**
|
|
50
|
-
* Props forwarded to the progress slot.
|
|
51
|
-
* By default, the avaible props are based on the [LinearProgress](https://mui.com/material-ui/api/linear-progress/#props) component.
|
|
52
|
-
*/
|
|
53
|
-
progress: SlotProps<
|
|
54
|
-
React.ElementType<LinearProgressProps>,
|
|
55
|
-
MobileStepperProgressSlotPropsOverrides,
|
|
56
|
-
MobileStepperOwnerState
|
|
57
|
-
>;
|
|
58
|
-
/**
|
|
59
|
-
* Props forwarded to the dots slot.
|
|
60
|
-
* By default, the avaible props are based on the div element.
|
|
61
|
-
*/
|
|
62
|
-
dots: SlotProps<'div', MobileStepperDotsSlotPropsOverrides, MobileStepperOwnerState>;
|
|
63
|
-
/**
|
|
64
|
-
* Props forwarded to the dot slot.
|
|
65
|
-
* By default, the avaible props are based on the div element.
|
|
66
|
-
*/
|
|
67
|
-
dot: SlotProps<'div', MobileStepperDotSlotPropsOverrides, MobileStepperOwnerState>;
|
|
68
|
-
}
|
|
69
|
-
>;
|
|
70
|
-
|
|
71
|
-
export interface MobileStepperProps
|
|
72
|
-
extends StandardProps<PaperProps, 'children' | 'variant'>,
|
|
73
|
-
MobileStepperSlotsAndSlotProps {
|
|
8
|
+
export interface MobileStepperProps extends StandardProps<PaperProps, 'children' | 'variant'> {
|
|
74
9
|
/**
|
|
75
10
|
* Set the active step (zero based index).
|
|
76
11
|
* Defines which dot is highlighted when the variant is 'dots'.
|
|
@@ -87,7 +22,6 @@ export interface MobileStepperProps
|
|
|
87
22
|
classes?: Partial<MobileStepperClasses>;
|
|
88
23
|
/**
|
|
89
24
|
* Props applied to the `LinearProgress` element.
|
|
90
|
-
* @deprecated Use `slotProps.progress` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
91
25
|
*/
|
|
92
26
|
LinearProgressProps?: Partial<LinearProgressProps>;
|
|
93
27
|
/**
|
|
@@ -114,17 +48,15 @@ export interface MobileStepperProps
|
|
|
114
48
|
variant?: 'text' | 'dots' | 'progress';
|
|
115
49
|
}
|
|
116
50
|
|
|
117
|
-
export interface MobileStepperOwnerState extends Omit<MobileStepperProps, 'slots' | 'slotProps'> {}
|
|
118
|
-
|
|
119
51
|
/**
|
|
120
52
|
*
|
|
121
53
|
* Demos:
|
|
122
54
|
*
|
|
123
|
-
* - [Stepper](https://mui.com/material-ui/react-stepper/)
|
|
55
|
+
* - [Stepper](https://next.mui.com/material-ui/react-stepper/)
|
|
124
56
|
*
|
|
125
57
|
* API:
|
|
126
58
|
*
|
|
127
|
-
* - [MobileStepper API](https://mui.com/material-ui/api/mobile-stepper/)
|
|
128
|
-
* - inherits [Paper API](https://mui.com/material-ui/api/paper/)
|
|
59
|
+
* - [MobileStepper API](https://next.mui.com/material-ui/api/mobile-stepper/)
|
|
60
|
+
* - inherits [Paper API](https://next.mui.com/material-ui/api/paper/)
|
|
129
61
|
*/
|
|
130
62
|
export default function MobileStepper(props: MobileStepperProps): React.JSX.Element;
|
|
@@ -13,7 +13,6 @@ import memoTheme from "../utils/memoTheme.js";
|
|
|
13
13
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
14
14
|
import slotShouldForwardProp from "../styles/slotShouldForwardProp.js";
|
|
15
15
|
import { getMobileStepperUtilityClass } from "./mobileStepperClasses.js";
|
|
16
|
-
import useSlot from "../utils/useSlot.js";
|
|
17
16
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
18
17
|
const useUtilityClasses = ownerState => {
|
|
19
18
|
const {
|
|
@@ -153,8 +152,6 @@ const MobileStepper = /*#__PURE__*/React.forwardRef(function MobileStepper(inPro
|
|
|
153
152
|
position = 'bottom',
|
|
154
153
|
steps,
|
|
155
154
|
variant = 'dots',
|
|
156
|
-
slots = {},
|
|
157
|
-
slotProps = {},
|
|
158
155
|
...other
|
|
159
156
|
} = props;
|
|
160
157
|
const ownerState = {
|
|
@@ -172,63 +169,29 @@ const MobileStepper = /*#__PURE__*/React.forwardRef(function MobileStepper(inPro
|
|
|
172
169
|
}
|
|
173
170
|
}
|
|
174
171
|
const classes = useUtilityClasses(ownerState);
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
progress: LinearProgressProps,
|
|
179
|
-
...slotProps
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
const [RootSlot, rootSlotProps] = useSlot('root', {
|
|
183
|
-
ref,
|
|
184
|
-
elementType: MobileStepperRoot,
|
|
185
|
-
shouldForwardComponentProp: true,
|
|
172
|
+
return /*#__PURE__*/_jsxs(MobileStepperRoot, {
|
|
173
|
+
square: true,
|
|
174
|
+
elevation: 0,
|
|
186
175
|
className: clsx(classes.root, className),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
ownerState,
|
|
192
|
-
additionalProps: {
|
|
193
|
-
square: true,
|
|
194
|
-
elevation: 0
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
const [DotsSlot, dotsSlotProps] = useSlot('dots', {
|
|
198
|
-
className: classes.dots,
|
|
199
|
-
elementType: MobileStepperDots,
|
|
200
|
-
externalForwardedProps,
|
|
201
|
-
ownerState
|
|
202
|
-
});
|
|
203
|
-
const [DotSlot, dotSlotProps] = useSlot('dot', {
|
|
204
|
-
elementType: MobileStepperDot,
|
|
205
|
-
externalForwardedProps,
|
|
206
|
-
ownerState
|
|
207
|
-
});
|
|
208
|
-
const [ProgressSlot, progressSlotProps] = useSlot('progress', {
|
|
209
|
-
className: classes.progress,
|
|
210
|
-
elementType: MobileStepperProgress,
|
|
211
|
-
shouldForwardComponentProp: true,
|
|
212
|
-
externalForwardedProps,
|
|
213
|
-
ownerState,
|
|
214
|
-
additionalProps: {
|
|
215
|
-
value,
|
|
216
|
-
variant: 'determinate'
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
return /*#__PURE__*/_jsxs(RootSlot, {
|
|
220
|
-
...rootSlotProps,
|
|
176
|
+
ref: ref,
|
|
177
|
+
ownerState: ownerState,
|
|
178
|
+
...other,
|
|
221
179
|
children: [backButton, variant === 'text' && /*#__PURE__*/_jsxs(React.Fragment, {
|
|
222
180
|
children: [activeStep + 1, " / ", steps]
|
|
223
|
-
}), variant === 'dots' && /*#__PURE__*/_jsx(
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
className: clsx(classes.dot,
|
|
181
|
+
}), variant === 'dots' && /*#__PURE__*/_jsx(MobileStepperDots, {
|
|
182
|
+
ownerState: ownerState,
|
|
183
|
+
className: classes.dots,
|
|
184
|
+
children: [...new Array(steps)].map((_, index) => /*#__PURE__*/_jsx(MobileStepperDot, {
|
|
185
|
+
className: clsx(classes.dot, index === activeStep && classes.dotActive),
|
|
186
|
+
ownerState: ownerState,
|
|
228
187
|
dotActive: index === activeStep
|
|
229
188
|
}, index))
|
|
230
|
-
}), variant === 'progress' && /*#__PURE__*/_jsx(
|
|
231
|
-
|
|
189
|
+
}), variant === 'progress' && /*#__PURE__*/_jsx(MobileStepperProgress, {
|
|
190
|
+
ownerState: ownerState,
|
|
191
|
+
className: classes.progress,
|
|
192
|
+
variant: "determinate",
|
|
193
|
+
value: value,
|
|
194
|
+
...LinearProgressProps
|
|
232
195
|
}), nextButton]
|
|
233
196
|
});
|
|
234
197
|
});
|
|
@@ -257,7 +220,6 @@ process.env.NODE_ENV !== "production" ? MobileStepper.propTypes /* remove-propty
|
|
|
257
220
|
className: PropTypes.string,
|
|
258
221
|
/**
|
|
259
222
|
* Props applied to the `LinearProgress` element.
|
|
260
|
-
* @deprecated Use `slotProps.progress` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
261
223
|
*/
|
|
262
224
|
LinearProgressProps: PropTypes.object,
|
|
263
225
|
/**
|
|
@@ -269,26 +231,6 @@ process.env.NODE_ENV !== "production" ? MobileStepper.propTypes /* remove-propty
|
|
|
269
231
|
* @default 'bottom'
|
|
270
232
|
*/
|
|
271
233
|
position: PropTypes.oneOf(['bottom', 'static', 'top']),
|
|
272
|
-
/**
|
|
273
|
-
* The props used for each slot inside.
|
|
274
|
-
* @default {}
|
|
275
|
-
*/
|
|
276
|
-
slotProps: PropTypes.shape({
|
|
277
|
-
dot: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
278
|
-
dots: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
279
|
-
progress: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
280
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
281
|
-
}),
|
|
282
|
-
/**
|
|
283
|
-
* The components used for each slot inside.
|
|
284
|
-
* @default {}
|
|
285
|
-
*/
|
|
286
|
-
slots: PropTypes.shape({
|
|
287
|
-
dot: PropTypes.elementType,
|
|
288
|
-
dots: PropTypes.elementType,
|
|
289
|
-
progress: PropTypes.elementType,
|
|
290
|
-
root: PropTypes.elementType
|
|
291
|
-
}),
|
|
292
234
|
/**
|
|
293
235
|
* The total steps.
|
|
294
236
|
*/
|