@mui/material 5.14.7 → 5.14.9
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/AccordionSummary/AccordionSummary.d.ts +22 -20
- package/AlertTitle/AlertTitle.d.ts +1 -0
- package/AppBar/AppBar.d.ts +33 -31
- package/Avatar/Avatar.d.ts +49 -50
- package/Backdrop/Backdrop.d.ts +87 -85
- package/Badge/Badge.d.ts +2 -2
- package/BottomNavigation/BottomNavigation.d.ts +35 -33
- package/BottomNavigationAction/BottomNavigationAction.d.ts +39 -37
- package/Breadcrumbs/Breadcrumbs.d.ts +70 -67
- package/Button/Button.d.ts +72 -73
- package/Button/Button.js +4 -1
- package/ButtonBase/ButtonBase.d.ts +83 -81
- package/ButtonGroup/ButtonGroup.d.ts +72 -70
- package/ButtonGroup/ButtonGroup.js +86 -54
- package/ButtonGroup/ButtonGroupButtonContext.d.ts +6 -0
- package/ButtonGroup/ButtonGroupButtonContext.js +9 -0
- package/ButtonGroup/buttonGroupClasses.d.ts +6 -0
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/CHANGELOG.md +235 -38
- package/Card/Card.d.ts +19 -18
- package/CardActionArea/CardActionArea.d.ts +15 -13
- package/CardContent/CardContent.d.ts +18 -16
- package/CardHeader/CardHeader.d.ts +77 -67
- package/CardMedia/CardMedia.d.ts +30 -28
- package/Chip/Chip.d.ts +84 -82
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Container/Container.d.ts +35 -33
- package/DialogContentText/DialogContentText.d.ts +14 -12
- package/DialogTitle/DialogTitle.d.ts +19 -16
- package/Divider/Divider.d.ts +49 -50
- package/Fab/Fab.d.ts +59 -56
- package/FormControl/FormControl.d.ts +74 -72
- package/FormHelperText/FormHelperText.d.ts +52 -50
- package/FormLabel/FormLabel.d.ts +7 -4
- package/Grid/Grid.d.ts +69 -68
- package/Hidden/Hidden.d.ts +10 -10
- package/Icon/Icon.d.ts +50 -48
- package/IconButton/IconButton.d.ts +52 -50
- package/ImageList/ImageList.d.ts +41 -39
- package/ImageListItem/ImageListItem.d.ts +28 -26
- package/ImageListItem/ImageListItem.js +2 -1
- package/InputAdornment/InputAdornment.d.ts +39 -37
- package/InputBase/InputBase.js +1 -1
- package/InputLabel/InputLabel.d.ts +58 -56
- package/InputLabel/InputLabel.js +2 -1
- package/Link/Link.d.ts +37 -39
- package/List/List.d.ts +34 -35
- package/ListItem/ListItem.d.ts +53 -49
- package/ListItemButton/ListItemButton.d.ts +9 -3
- package/ListSubheader/ListSubheader.d.ts +38 -36
- package/MenuItem/MenuItem.d.ts +47 -44
- package/MenuList/MenuList.d.ts +37 -35
- package/Modal/Modal.d.ts +172 -178
- package/Modal/Modal.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +85 -83
- package/Paper/Paper.d.ts +2 -2
- package/README.md +9 -198
- package/Radio/Radio.js +3 -2
- package/Radio/radioClasses.d.ts +2 -0
- package/Radio/radioClasses.js +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +25 -23
- package/Select/SelectInput.js +9 -5
- package/Skeleton/Skeleton.d.ts +42 -40
- package/Slider/Slider.d.ts +249 -247
- package/Slider/Slider.js +9 -86
- package/Stack/Stack.d.ts +39 -38
- package/Step/Step.d.ts +46 -44
- package/StepButton/StepButton.d.ts +27 -25
- package/Stepper/Stepper.d.ts +45 -44
- package/SvgIcon/SvgIcon.d.ts +77 -75
- package/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/Tab/Tab.d.ts +52 -50
- package/TabScrollButton/TabScrollButton.d.ts +3 -2
- package/Table/Table.d.ts +35 -33
- package/TableBody/TableBody.d.ts +18 -16
- package/TableContainer/TableContainer.d.ts +18 -16
- package/TableFooter/TableFooter.d.ts +18 -16
- package/TableHead/TableHead.d.ts +18 -16
- package/TablePagination/TablePagination.d.ts +113 -112
- package/TableRow/TableRow.d.ts +28 -26
- package/TableSortLabel/TableSortLabel.d.ts +40 -36
- package/Tabs/Tabs.d.ts +153 -150
- package/Tabs/Tabs.js +1 -4
- package/ToggleButton/ToggleButton.d.ts +72 -70
- package/Toolbar/Toolbar.d.ts +29 -27
- package/Typography/Typography.d.ts +2 -2
- package/index.js +1 -1
- package/legacy/Button/Button.js +4 -1
- package/legacy/ButtonGroup/ButtonGroup.js +81 -56
- package/legacy/ButtonGroup/ButtonGroupButtonContext.js +9 -0
- package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +2 -1
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/InputLabel/InputLabel.js +2 -1
- package/legacy/Modal/Modal.js +3 -1
- package/legacy/Radio/Radio.js +3 -2
- package/legacy/Radio/radioClasses.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- package/legacy/Slider/Slider.js +9 -86
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/Tabs/Tabs.js +1 -4
- package/legacy/index.js +1 -1
- package/legacy/useTouchRipple/useTouchRipple.js +4 -4
- package/modern/Button/Button.js +4 -1
- package/modern/ButtonGroup/ButtonGroup.js +86 -54
- package/modern/ButtonGroup/ButtonGroupButtonContext.js +9 -0
- package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +2 -1
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/InputLabel/InputLabel.js +2 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/Radio/Radio.js +3 -2
- package/modern/Radio/radioClasses.js +1 -1
- package/modern/Select/SelectInput.js +8 -5
- package/modern/Slider/Slider.js +9 -86
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/Tabs/Tabs.js +1 -4
- package/modern/index.js +1 -1
- package/node/Button/Button.js +4 -1
- package/node/ButtonGroup/ButtonGroup.js +86 -54
- package/node/ButtonGroup/ButtonGroupButtonContext.js +18 -0
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/ImageListItem/ImageListItem.js +2 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputLabel/InputLabel.js +2 -1
- package/node/Modal/Modal.js +1 -1
- package/node/Radio/Radio.js +3 -2
- package/node/Radio/radioClasses.js +1 -1
- package/node/Select/SelectInput.js +9 -5
- package/node/Slider/Slider.js +3 -73
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/Tabs/Tabs.js +1 -4
- package/node/index.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +4 -4
- package/package.json +16 -16
- package/umd/material-ui.development.js +258 -254
- package/umd/material-ui.production.min.js +18 -18
- package/useTouchRipple/useTouchRipple.js +4 -4
|
@@ -5,63 +5,73 @@ import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
|
5
5
|
import { Theme } from '..';
|
|
6
6
|
import { CardHeaderClasses } from './cardHeaderClasses';
|
|
7
7
|
|
|
8
|
+
export interface CardHeaderOwnProps<
|
|
9
|
+
TitleTypographyComponent extends React.ElementType = 'span',
|
|
10
|
+
SubheaderTypographyComponent extends React.ElementType = 'span',
|
|
11
|
+
> {
|
|
12
|
+
/**
|
|
13
|
+
* The action to display in the card header.
|
|
14
|
+
*/
|
|
15
|
+
action?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The Avatar element to display.
|
|
18
|
+
*/
|
|
19
|
+
avatar?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Override or extend the styles applied to the component.
|
|
22
|
+
*/
|
|
23
|
+
classes?: Partial<CardHeaderClasses>;
|
|
24
|
+
/**
|
|
25
|
+
* If `true`, `subheader` and `title` won't be wrapped by a Typography component.
|
|
26
|
+
* This can be useful to render an alternative Typography variant by wrapping
|
|
27
|
+
* the `title` text, and optional `subheader` text
|
|
28
|
+
* with the Typography component.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
disableTypography?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The content of the component.
|
|
34
|
+
*/
|
|
35
|
+
subheader?: React.ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* These props will be forwarded to the subheader
|
|
38
|
+
* (as long as disableTypography is not `true`).
|
|
39
|
+
*/
|
|
40
|
+
subheaderTypographyProps?: TypographyProps<
|
|
41
|
+
SubheaderTypographyComponent,
|
|
42
|
+
{
|
|
43
|
+
component?: SubheaderTypographyComponent;
|
|
44
|
+
}
|
|
45
|
+
>;
|
|
46
|
+
/**
|
|
47
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48
|
+
*/
|
|
49
|
+
sx?: SxProps<Theme>;
|
|
50
|
+
/**
|
|
51
|
+
* The content of the component.
|
|
52
|
+
*/
|
|
53
|
+
title?: React.ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* These props will be forwarded to the title
|
|
56
|
+
* (as long as disableTypography is not `true`).
|
|
57
|
+
*/
|
|
58
|
+
titleTypographyProps?: TypographyProps<
|
|
59
|
+
TitleTypographyComponent,
|
|
60
|
+
{
|
|
61
|
+
component?: TitleTypographyComponent;
|
|
62
|
+
}
|
|
63
|
+
>;
|
|
64
|
+
}
|
|
65
|
+
|
|
8
66
|
export interface CardHeaderTypeMap<
|
|
9
|
-
|
|
10
|
-
|
|
67
|
+
AdditionalProps = {},
|
|
68
|
+
RootComponent extends React.ElementType = 'div',
|
|
11
69
|
TitleTypographyComponent extends React.ElementType = 'span',
|
|
12
70
|
SubheaderTypographyComponent extends React.ElementType = 'span',
|
|
13
71
|
> {
|
|
14
|
-
props:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
action?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* The Avatar element to display.
|
|
21
|
-
*/
|
|
22
|
-
avatar?: React.ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* Override or extend the styles applied to the component.
|
|
25
|
-
*/
|
|
26
|
-
classes?: Partial<CardHeaderClasses>;
|
|
27
|
-
/**
|
|
28
|
-
* If `true`, `subheader` and `title` won't be wrapped by a Typography component.
|
|
29
|
-
* This can be useful to render an alternative Typography variant by wrapping
|
|
30
|
-
* the `title` text, and optional `subheader` text
|
|
31
|
-
* with the Typography component.
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
disableTypography?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The content of the component.
|
|
37
|
-
*/
|
|
38
|
-
subheader?: React.ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* These props will be forwarded to the subheader
|
|
41
|
-
* (as long as disableTypography is not `true`).
|
|
42
|
-
*/
|
|
43
|
-
subheaderTypographyProps?: TypographyProps<
|
|
44
|
-
SubheaderTypographyComponent,
|
|
45
|
-
{ component?: SubheaderTypographyComponent }
|
|
46
|
-
>;
|
|
47
|
-
/**
|
|
48
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49
|
-
*/
|
|
50
|
-
sx?: SxProps<Theme>;
|
|
51
|
-
/**
|
|
52
|
-
* The content of the component.
|
|
53
|
-
*/
|
|
54
|
-
title?: React.ReactNode;
|
|
55
|
-
/**
|
|
56
|
-
* These props will be forwarded to the title
|
|
57
|
-
* (as long as disableTypography is not `true`).
|
|
58
|
-
*/
|
|
59
|
-
titleTypographyProps?: TypographyProps<
|
|
60
|
-
TitleTypographyComponent,
|
|
61
|
-
{ component?: TitleTypographyComponent }
|
|
62
|
-
>;
|
|
63
|
-
};
|
|
64
|
-
defaultComponent: DefaultComponent;
|
|
72
|
+
props: AdditionalProps &
|
|
73
|
+
CardHeaderOwnProps<TitleTypographyComponent, SubheaderTypographyComponent>;
|
|
74
|
+
defaultComponent: RootComponent;
|
|
65
75
|
}
|
|
66
76
|
/**
|
|
67
77
|
*
|
|
@@ -77,14 +87,14 @@ declare const CardHeader: OverridableCardHeader;
|
|
|
77
87
|
|
|
78
88
|
export interface OverridableCardHeader extends OverridableComponent<CardHeaderTypeMap> {
|
|
79
89
|
<
|
|
80
|
-
|
|
81
|
-
|
|
90
|
+
RootComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
|
|
91
|
+
AdditionalProps = {},
|
|
82
92
|
TitleTypographyComponent extends React.ElementType = 'span',
|
|
83
93
|
SubheaderTypographyComponent extends React.ElementType = 'span',
|
|
84
94
|
>(
|
|
85
95
|
props: CardHeaderPropsWithComponent<
|
|
86
|
-
|
|
87
|
-
|
|
96
|
+
RootComponent,
|
|
97
|
+
AdditionalProps,
|
|
88
98
|
TitleTypographyComponent,
|
|
89
99
|
SubheaderTypographyComponent
|
|
90
100
|
>,
|
|
@@ -92,23 +102,23 @@ export interface OverridableCardHeader extends OverridableComponent<CardHeaderTy
|
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
export type CardHeaderProps<
|
|
95
|
-
|
|
96
|
-
|
|
105
|
+
RootComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
|
|
106
|
+
AdditionalProps = {},
|
|
97
107
|
TitleTypographyComponent extends React.ElementType = 'span',
|
|
98
108
|
SubheaderTypographyComponent extends React.ElementType = 'span',
|
|
99
109
|
> = OverrideProps<
|
|
100
110
|
CardHeaderTypeMap<
|
|
101
|
-
|
|
102
|
-
|
|
111
|
+
AdditionalProps,
|
|
112
|
+
RootComponent,
|
|
103
113
|
TitleTypographyComponent,
|
|
104
114
|
SubheaderTypographyComponent
|
|
105
115
|
>,
|
|
106
|
-
|
|
116
|
+
RootComponent
|
|
107
117
|
>;
|
|
108
118
|
|
|
109
119
|
export type CardHeaderPropsWithComponent<
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
RootComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
|
|
121
|
+
AdditionalProps = {},
|
|
112
122
|
TitleTypographyComponent extends React.ElementType = 'span',
|
|
113
123
|
SubheaderTypographyComponent extends React.ElementType = 'span',
|
|
114
124
|
> = {
|
|
@@ -116,10 +126,10 @@ export type CardHeaderPropsWithComponent<
|
|
|
116
126
|
* The component used for the root node.
|
|
117
127
|
* Either a string to use a HTML element or a component.
|
|
118
128
|
*/
|
|
119
|
-
component?:
|
|
129
|
+
component?: RootComponent;
|
|
120
130
|
} & CardHeaderProps<
|
|
121
|
-
|
|
122
|
-
|
|
131
|
+
RootComponent,
|
|
132
|
+
AdditionalProps,
|
|
123
133
|
TitleTypographyComponent,
|
|
124
134
|
SubheaderTypographyComponent
|
|
125
135
|
>;
|
package/CardMedia/CardMedia.d.ts
CHANGED
|
@@ -4,34 +4,36 @@ import { Theme } from '..';
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { CardMediaClasses } from './cardMediaClasses';
|
|
6
6
|
|
|
7
|
-
export interface
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
export interface CardMediaOwnProps {
|
|
8
|
+
/**
|
|
9
|
+
* The content of the component.
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Override or extend the styles applied to the component.
|
|
14
|
+
*/
|
|
15
|
+
classes?: Partial<CardMediaClasses>;
|
|
16
|
+
/**
|
|
17
|
+
* Image to be displayed as a background image.
|
|
18
|
+
* Either `image` or `src` prop must be specified.
|
|
19
|
+
* Note that caller must specify height otherwise the image will not be visible.
|
|
20
|
+
*/
|
|
21
|
+
image?: string;
|
|
22
|
+
/**
|
|
23
|
+
* An alias for `image` property.
|
|
24
|
+
* Available only with media components.
|
|
25
|
+
* Media components: `video`, `audio`, `picture`, `iframe`, `img`.
|
|
26
|
+
*/
|
|
27
|
+
src?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30
|
+
*/
|
|
31
|
+
sx?: SxProps<Theme>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface CardMediaTypeMap<AdditionalProps, RootComponent extends React.ElementType> {
|
|
35
|
+
props: AdditionalProps & CardMediaOwnProps;
|
|
36
|
+
defaultComponent: RootComponent;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
/**
|
package/Chip/Chip.d.ts
CHANGED
|
@@ -11,91 +11,93 @@ export interface ChipPropsSizeOverrides {}
|
|
|
11
11
|
|
|
12
12
|
export interface ChipPropsColorOverrides {}
|
|
13
13
|
|
|
14
|
+
export interface ChipOwnProps {
|
|
15
|
+
/**
|
|
16
|
+
* The Avatar element to display.
|
|
17
|
+
*/
|
|
18
|
+
avatar?: React.ReactElement;
|
|
19
|
+
/**
|
|
20
|
+
* This prop isn't supported.
|
|
21
|
+
* Use the `component` prop if you need to change the children structure.
|
|
22
|
+
*/
|
|
23
|
+
children?: null;
|
|
24
|
+
/**
|
|
25
|
+
* Override or extend the styles applied to the component.
|
|
26
|
+
*/
|
|
27
|
+
classes?: Partial<ChipClasses>;
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, the chip will appear clickable, and will raise when pressed,
|
|
30
|
+
* even if the onClick prop is not defined.
|
|
31
|
+
* If `false`, the chip will not appear clickable, even if onClick prop is defined.
|
|
32
|
+
* This can be used, for example,
|
|
33
|
+
* along with the component prop to indicate an anchor Chip is clickable.
|
|
34
|
+
* Note: this controls the UI and does not affect the onClick event.
|
|
35
|
+
*/
|
|
36
|
+
clickable?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The color of the component.
|
|
39
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
40
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
41
|
+
* @default 'default'
|
|
42
|
+
*/
|
|
43
|
+
color?: OverridableStringUnion<
|
|
44
|
+
'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning',
|
|
45
|
+
ChipPropsColorOverrides
|
|
46
|
+
>;
|
|
47
|
+
/**
|
|
48
|
+
* Override the default delete icon element. Shown only if `onDelete` is set.
|
|
49
|
+
*/
|
|
50
|
+
deleteIcon?: React.ReactElement;
|
|
51
|
+
/**
|
|
52
|
+
* If `true`, the component is disabled.
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Icon element.
|
|
58
|
+
*/
|
|
59
|
+
icon?: React.ReactElement;
|
|
60
|
+
/**
|
|
61
|
+
* The content of the component.
|
|
62
|
+
*/
|
|
63
|
+
label?: React.ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* Callback fired when the delete icon is clicked.
|
|
66
|
+
* If set, the delete icon will be shown.
|
|
67
|
+
*/
|
|
68
|
+
onDelete?: React.EventHandler<any>;
|
|
69
|
+
/**
|
|
70
|
+
* The size of the component.
|
|
71
|
+
* @default 'medium'
|
|
72
|
+
*/
|
|
73
|
+
size?: OverridableStringUnion<'small' | 'medium', ChipPropsSizeOverrides>;
|
|
74
|
+
/**
|
|
75
|
+
* If `true`, allows the disabled chip to escape focus.
|
|
76
|
+
* If `false`, allows the disabled chip to receive focus.
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
skipFocusWhenDisabled?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
82
|
+
*/
|
|
83
|
+
sx?: SxProps<Theme>;
|
|
84
|
+
/**
|
|
85
|
+
* @ignore
|
|
86
|
+
*/
|
|
87
|
+
tabIndex?: number;
|
|
88
|
+
/**
|
|
89
|
+
* The variant to use.
|
|
90
|
+
* @default 'filled'
|
|
91
|
+
*/
|
|
92
|
+
variant?: OverridableStringUnion<'filled' | 'outlined', ChipPropsVariantOverrides>;
|
|
93
|
+
}
|
|
94
|
+
|
|
14
95
|
export interface ChipTypeMap<
|
|
15
96
|
AdditionalProps = {},
|
|
16
|
-
|
|
97
|
+
RootComponent extends React.ElementType = 'div',
|
|
17
98
|
> {
|
|
18
|
-
props: AdditionalProps &
|
|
19
|
-
|
|
20
|
-
* The Avatar element to display.
|
|
21
|
-
*/
|
|
22
|
-
avatar?: React.ReactElement;
|
|
23
|
-
/**
|
|
24
|
-
* This prop isn't supported.
|
|
25
|
-
* Use the `component` prop if you need to change the children structure.
|
|
26
|
-
*/
|
|
27
|
-
children?: null;
|
|
28
|
-
/**
|
|
29
|
-
* Override or extend the styles applied to the component.
|
|
30
|
-
*/
|
|
31
|
-
classes?: Partial<ChipClasses>;
|
|
32
|
-
/**
|
|
33
|
-
* If `true`, the chip will appear clickable, and will raise when pressed,
|
|
34
|
-
* even if the onClick prop is not defined.
|
|
35
|
-
* If `false`, the chip will not appear clickable, even if onClick prop is defined.
|
|
36
|
-
* This can be used, for example,
|
|
37
|
-
* along with the component prop to indicate an anchor Chip is clickable.
|
|
38
|
-
* Note: this controls the UI and does not affect the onClick event.
|
|
39
|
-
*/
|
|
40
|
-
clickable?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* The color of the component.
|
|
43
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
44
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
45
|
-
* @default 'default'
|
|
46
|
-
*/
|
|
47
|
-
color?: OverridableStringUnion<
|
|
48
|
-
'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning',
|
|
49
|
-
ChipPropsColorOverrides
|
|
50
|
-
>;
|
|
51
|
-
/**
|
|
52
|
-
* Override the default delete icon element. Shown only if `onDelete` is set.
|
|
53
|
-
*/
|
|
54
|
-
deleteIcon?: React.ReactElement;
|
|
55
|
-
/**
|
|
56
|
-
* If `true`, the component is disabled.
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
disabled?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Icon element.
|
|
62
|
-
*/
|
|
63
|
-
icon?: React.ReactElement;
|
|
64
|
-
/**
|
|
65
|
-
* The content of the component.
|
|
66
|
-
*/
|
|
67
|
-
label?: React.ReactNode;
|
|
68
|
-
/**
|
|
69
|
-
* Callback fired when the delete icon is clicked.
|
|
70
|
-
* If set, the delete icon will be shown.
|
|
71
|
-
*/
|
|
72
|
-
onDelete?: React.EventHandler<any>;
|
|
73
|
-
/**
|
|
74
|
-
* The size of the component.
|
|
75
|
-
* @default 'medium'
|
|
76
|
-
*/
|
|
77
|
-
size?: OverridableStringUnion<'small' | 'medium', ChipPropsSizeOverrides>;
|
|
78
|
-
/**
|
|
79
|
-
* If `true`, allows the disabled chip to escape focus.
|
|
80
|
-
* If `false`, allows the disabled chip to receive focus.
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
skipFocusWhenDisabled?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
86
|
-
*/
|
|
87
|
-
sx?: SxProps<Theme>;
|
|
88
|
-
/**
|
|
89
|
-
* @ignore
|
|
90
|
-
*/
|
|
91
|
-
tabIndex?: number;
|
|
92
|
-
/**
|
|
93
|
-
* The variant to use.
|
|
94
|
-
* @default 'filled'
|
|
95
|
-
*/
|
|
96
|
-
variant?: OverridableStringUnion<'filled' | 'outlined', ChipPropsVariantOverrides>;
|
|
97
|
-
};
|
|
98
|
-
defaultComponent: DefaultComponent;
|
|
99
|
+
props: AdditionalProps & ChipOwnProps;
|
|
100
|
+
defaultComponent: RootComponent;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
/**
|
|
@@ -31,7 +31,7 @@ export interface CircularProgressProps
|
|
|
31
31
|
/**
|
|
32
32
|
* The size of the component.
|
|
33
33
|
* If using a number, the pixel unit is assumed.
|
|
34
|
-
* If using a string, you need to provide the CSS unit, e.g '3rem'.
|
|
34
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
35
35
|
* @default 40
|
|
36
36
|
*/
|
|
37
37
|
size?: number | string;
|
|
@@ -219,7 +219,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
|
|
|
219
219
|
/**
|
|
220
220
|
* The size of the component.
|
|
221
221
|
* If using a number, the pixel unit is assumed.
|
|
222
|
-
* If using a string, you need to provide the CSS unit, e.g '3rem'.
|
|
222
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
223
223
|
* @default 40
|
|
224
224
|
*/
|
|
225
225
|
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
package/Container/Container.d.ts
CHANGED
|
@@ -4,42 +4,44 @@ import { Theme } from '../styles';
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { ContainerClasses } from './containerClasses';
|
|
6
6
|
|
|
7
|
+
export interface ContainerOwnProps {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Override or extend the styles applied to the component.
|
|
11
|
+
*/
|
|
12
|
+
classes?: Partial<ContainerClasses>;
|
|
13
|
+
/**
|
|
14
|
+
* If `true`, the left and right padding is removed.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
disableGutters?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Set the max-width to match the min-width of the current breakpoint.
|
|
20
|
+
* This is useful if you'd prefer to design for a fixed set of sizes
|
|
21
|
+
* instead of trying to accommodate a fully fluid viewport.
|
|
22
|
+
* It's fluid by default.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
fixed?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Determine the max-width of the container.
|
|
28
|
+
* The container width grows with the size of the screen.
|
|
29
|
+
* Set to `false` to disable `maxWidth`.
|
|
30
|
+
* @default 'lg'
|
|
31
|
+
*/
|
|
32
|
+
maxWidth?: Breakpoint | false;
|
|
33
|
+
/**
|
|
34
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35
|
+
*/
|
|
36
|
+
sx?: SxProps<Theme>;
|
|
37
|
+
}
|
|
38
|
+
|
|
7
39
|
export interface ContainerTypeMap<
|
|
8
40
|
AdditionalProps = {},
|
|
9
|
-
|
|
41
|
+
RootComponent extends React.ElementType = 'div',
|
|
10
42
|
> {
|
|
11
|
-
props: AdditionalProps &
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Override or extend the styles applied to the component.
|
|
15
|
-
*/
|
|
16
|
-
classes?: Partial<ContainerClasses>;
|
|
17
|
-
/**
|
|
18
|
-
* If `true`, the left and right padding is removed.
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
disableGutters?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Set the max-width to match the min-width of the current breakpoint.
|
|
24
|
-
* This is useful if you'd prefer to design for a fixed set of sizes
|
|
25
|
-
* instead of trying to accommodate a fully fluid viewport.
|
|
26
|
-
* It's fluid by default.
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
fixed?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Determine the max-width of the container.
|
|
32
|
-
* The container width grows with the size of the screen.
|
|
33
|
-
* Set to `false` to disable `maxWidth`.
|
|
34
|
-
* @default 'lg'
|
|
35
|
-
*/
|
|
36
|
-
maxWidth?: Breakpoint | false;
|
|
37
|
-
/**
|
|
38
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
39
|
-
*/
|
|
40
|
-
sx?: SxProps<Theme>;
|
|
41
|
-
};
|
|
42
|
-
defaultComponent: DefaultComponent;
|
|
43
|
+
props: AdditionalProps & ContainerOwnProps;
|
|
44
|
+
defaultComponent: RootComponent;
|
|
43
45
|
}
|
|
44
46
|
/**
|
|
45
47
|
*
|
|
@@ -5,21 +5,23 @@ import { OverrideProps, OverridableComponent } from '../OverridableComponent';
|
|
|
5
5
|
import { Theme } from '../styles';
|
|
6
6
|
import { DialogContentTextClasses } from './dialogContentTextClasses';
|
|
7
7
|
|
|
8
|
+
export interface DialogContentTextOwnProps extends Omit<TypographyTypeMap['props'], 'classes'> {
|
|
9
|
+
/**
|
|
10
|
+
* Override or extend the styles applied to the component.
|
|
11
|
+
*/
|
|
12
|
+
classes?: Partial<DialogContentTextClasses>;
|
|
13
|
+
/**
|
|
14
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
15
|
+
*/
|
|
16
|
+
sx?: SxProps<Theme>;
|
|
17
|
+
}
|
|
18
|
+
|
|
8
19
|
export interface DialogContentTextTypeMap<
|
|
9
20
|
AdditionalProps = {},
|
|
10
|
-
|
|
21
|
+
RootComponent extends React.ElementType = TypographyTypeMap['defaultComponent'],
|
|
11
22
|
> {
|
|
12
|
-
props: AdditionalProps &
|
|
13
|
-
|
|
14
|
-
* Override or extend the styles applied to the component.
|
|
15
|
-
*/
|
|
16
|
-
classes?: Partial<DialogContentTextClasses>;
|
|
17
|
-
/**
|
|
18
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
19
|
-
*/
|
|
20
|
-
sx?: SxProps<Theme>;
|
|
21
|
-
} & Omit<TypographyTypeMap['props'], 'classes'>;
|
|
22
|
-
defaultComponent: DefaultComponent;
|
|
23
|
+
props: AdditionalProps & DialogContentTextOwnProps;
|
|
24
|
+
defaultComponent: RootComponent;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
/**
|
|
@@ -5,25 +5,27 @@ import { Theme } from '../styles';
|
|
|
5
5
|
import { TypographyTypeMap } from '../Typography';
|
|
6
6
|
import { DialogTitleClasses } from './dialogTitleClasses';
|
|
7
7
|
|
|
8
|
+
export interface DialogTitleOwnProps extends Omit<TypographyTypeMap['props'], 'classes'> {
|
|
9
|
+
/**
|
|
10
|
+
* The content of the component.
|
|
11
|
+
*/
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Override or extend the styles applied to the component.
|
|
15
|
+
*/
|
|
16
|
+
classes?: Partial<DialogTitleClasses>;
|
|
17
|
+
/**
|
|
18
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
19
|
+
*/
|
|
20
|
+
sx?: SxProps<Theme>;
|
|
21
|
+
}
|
|
22
|
+
|
|
8
23
|
export interface DialogTitleTypeMap<
|
|
9
24
|
AdditionalProps = {},
|
|
10
|
-
|
|
25
|
+
RootComponent extends React.ElementType = TypographyTypeMap['defaultComponent'],
|
|
11
26
|
> {
|
|
12
|
-
props: AdditionalProps &
|
|
13
|
-
|
|
14
|
-
* The content of the component.
|
|
15
|
-
*/
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Override or extend the styles applied to the component.
|
|
19
|
-
*/
|
|
20
|
-
classes?: Partial<DialogTitleClasses>;
|
|
21
|
-
/**
|
|
22
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23
|
-
*/
|
|
24
|
-
sx?: SxProps<Theme>;
|
|
25
|
-
} & Omit<TypographyTypeMap['props'], 'classes'>;
|
|
26
|
-
defaultComponent: DefaultComponent;
|
|
27
|
+
props: AdditionalProps & DialogTitleOwnProps;
|
|
28
|
+
defaultComponent: RootComponent;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -35,6 +37,7 @@ export interface DialogTitleTypeMap<
|
|
|
35
37
|
* API:
|
|
36
38
|
*
|
|
37
39
|
* - [DialogTitle API](https://mui.com/material-ui/api/dialog-title/)
|
|
40
|
+
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
38
41
|
*/
|
|
39
42
|
declare const DialogTitle: OverridableComponent<DialogTitleTypeMap>;
|
|
40
43
|
|