@mui/material 5.14.6 → 5.14.8
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/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 +69 -67
- package/Button/Button.d.ts +72 -73
- package/ButtonBase/ButtonBase.d.ts +83 -81
- package/ButtonGroup/ButtonGroup.d.ts +72 -70
- package/CHANGELOG.md +136 -2
- 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 +18 -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/PaginationItem/PaginationItem.d.ts +85 -83
- package/Paper/Paper.d.ts +2 -2
- package/Popover/Popover.d.ts +2 -1
- package/Popover/Popover.js +20 -6
- 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/Snackbar/Snackbar.d.ts +4 -4
- package/Snackbar/Snackbar.js +4 -4
- 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/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/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/Popover/Popover.js +22 -5
- package/legacy/Radio/Radio.js +3 -2
- package/legacy/Radio/radioClasses.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- package/legacy/Snackbar/Snackbar.js +4 -4
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/index.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/Popover/Popover.js +20 -6
- package/modern/Radio/Radio.js +3 -2
- package/modern/Radio/radioClasses.js +1 -1
- package/modern/Select/SelectInput.js +8 -5
- package/modern/Snackbar/Snackbar.js +4 -4
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/index.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/Popover/Popover.js +20 -6
- package/node/Radio/Radio.js +3 -2
- package/node/Radio/radioClasses.js +1 -1
- package/node/Select/SelectInput.js +9 -5
- package/node/Snackbar/Snackbar.js +4 -4
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/umd/material-ui.development.js +75 -34
- package/umd/material-ui.production.min.js +7 -7
|
@@ -8,81 +8,83 @@ import { FormControlClasses } from './formControlClasses';
|
|
|
8
8
|
export interface FormControlPropsSizeOverrides {}
|
|
9
9
|
export interface FormControlPropsColorOverrides {}
|
|
10
10
|
|
|
11
|
+
export interface FormControlOwnProps {
|
|
12
|
+
/**
|
|
13
|
+
* The content of the component.
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Override or extend the styles applied to the component.
|
|
18
|
+
*/
|
|
19
|
+
classes?: Partial<FormControlClasses>;
|
|
20
|
+
/**
|
|
21
|
+
* The color of the component.
|
|
22
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
23
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
24
|
+
* @default 'primary'
|
|
25
|
+
*/
|
|
26
|
+
color?: OverridableStringUnion<
|
|
27
|
+
'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning',
|
|
28
|
+
FormControlPropsColorOverrides
|
|
29
|
+
>;
|
|
30
|
+
/**
|
|
31
|
+
* If `true`, the label, input and helper text should be displayed in a disabled state.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* If `true`, the label is displayed in an error state.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
error?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* If `true`, the component will take up the full width of its container.
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
fullWidth?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* If `true`, the component is displayed in focused state.
|
|
47
|
+
*/
|
|
48
|
+
focused?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If `true`, the label is hidden.
|
|
51
|
+
* This is used to increase density for a `FilledInput`.
|
|
52
|
+
* Be sure to add `aria-label` to the `input` element.
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
hiddenLabel?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* If `dense` or `normal`, will adjust vertical spacing of this and contained components.
|
|
58
|
+
* @default 'none'
|
|
59
|
+
*/
|
|
60
|
+
margin?: 'dense' | 'normal' | 'none';
|
|
61
|
+
/**
|
|
62
|
+
* If `true`, the label will indicate that the `input` is required.
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
required?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The size of the component.
|
|
68
|
+
* @default 'medium'
|
|
69
|
+
*/
|
|
70
|
+
size?: OverridableStringUnion<'small' | 'medium', FormControlPropsSizeOverrides>;
|
|
71
|
+
/**
|
|
72
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
73
|
+
*/
|
|
74
|
+
sx?: SxProps<Theme>;
|
|
75
|
+
/**
|
|
76
|
+
* The variant to use.
|
|
77
|
+
* @default 'outlined'
|
|
78
|
+
*/
|
|
79
|
+
variant?: 'standard' | 'outlined' | 'filled';
|
|
80
|
+
}
|
|
81
|
+
|
|
11
82
|
export interface FormControlTypeMap<
|
|
12
83
|
AdditionalProps = {},
|
|
13
|
-
|
|
84
|
+
RootComponent extends React.ElementType = 'div',
|
|
14
85
|
> {
|
|
15
|
-
props: AdditionalProps &
|
|
16
|
-
|
|
17
|
-
* The content of the component.
|
|
18
|
-
*/
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Override or extend the styles applied to the component.
|
|
22
|
-
*/
|
|
23
|
-
classes?: Partial<FormControlClasses>;
|
|
24
|
-
/**
|
|
25
|
-
* The color of the component.
|
|
26
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
27
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
28
|
-
* @default 'primary'
|
|
29
|
-
*/
|
|
30
|
-
color?: OverridableStringUnion<
|
|
31
|
-
'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning',
|
|
32
|
-
FormControlPropsColorOverrides
|
|
33
|
-
>;
|
|
34
|
-
/**
|
|
35
|
-
* If `true`, the label, input and helper text should be displayed in a disabled state.
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
disabled?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* If `true`, the label is displayed in an error state.
|
|
41
|
-
* @default false
|
|
42
|
-
*/
|
|
43
|
-
error?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* If `true`, the component will take up the full width of its container.
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
fullWidth?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* If `true`, the component is displayed in focused state.
|
|
51
|
-
*/
|
|
52
|
-
focused?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* If `true`, the label is hidden.
|
|
55
|
-
* This is used to increase density for a `FilledInput`.
|
|
56
|
-
* Be sure to add `aria-label` to the `input` element.
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
hiddenLabel?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* If `dense` or `normal`, will adjust vertical spacing of this and contained components.
|
|
62
|
-
* @default 'none'
|
|
63
|
-
*/
|
|
64
|
-
margin?: 'dense' | 'normal' | 'none';
|
|
65
|
-
/**
|
|
66
|
-
* If `true`, the label will indicate that the `input` is required.
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
required?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* The size of the component.
|
|
72
|
-
* @default 'medium'
|
|
73
|
-
*/
|
|
74
|
-
size?: OverridableStringUnion<'small' | 'medium', FormControlPropsSizeOverrides>;
|
|
75
|
-
/**
|
|
76
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
77
|
-
*/
|
|
78
|
-
sx?: SxProps<Theme>;
|
|
79
|
-
/**
|
|
80
|
-
* The variant to use.
|
|
81
|
-
* @default 'outlined'
|
|
82
|
-
*/
|
|
83
|
-
variant?: 'standard' | 'outlined' | 'filled';
|
|
84
|
-
};
|
|
85
|
-
defaultComponent: DefaultComponent;
|
|
86
|
+
props: AdditionalProps & FormControlOwnProps;
|
|
87
|
+
defaultComponent: RootComponent;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
/**
|
|
@@ -7,59 +7,61 @@ import { FormHelperTextClasses } from './formHelperTextClasses';
|
|
|
7
7
|
|
|
8
8
|
export interface FormHelperTextPropsVariantOverrides {}
|
|
9
9
|
|
|
10
|
+
export interface FormHelperTextOwnProps {
|
|
11
|
+
/**
|
|
12
|
+
* The content of the component.
|
|
13
|
+
*
|
|
14
|
+
* If `' '` is provided, the component reserves one line height for displaying a future message.
|
|
15
|
+
*/
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Override or extend the styles applied to the component.
|
|
19
|
+
*/
|
|
20
|
+
classes?: Partial<FormHelperTextClasses>;
|
|
21
|
+
/**
|
|
22
|
+
* If `true`, the helper text should be displayed in a disabled state.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, helper text should be displayed in an error state.
|
|
27
|
+
*/
|
|
28
|
+
error?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* If `true`, the helper text should use filled classes key.
|
|
31
|
+
*/
|
|
32
|
+
filled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* If `true`, the helper text should use focused classes key.
|
|
35
|
+
*/
|
|
36
|
+
focused?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
39
|
+
* FormControl.
|
|
40
|
+
*/
|
|
41
|
+
margin?: 'dense';
|
|
42
|
+
/**
|
|
43
|
+
* If `true`, the helper text should use required classes key.
|
|
44
|
+
*/
|
|
45
|
+
required?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48
|
+
*/
|
|
49
|
+
sx?: SxProps<Theme>;
|
|
50
|
+
/**
|
|
51
|
+
* The variant to use.
|
|
52
|
+
*/
|
|
53
|
+
variant?: OverridableStringUnion<
|
|
54
|
+
'standard' | 'outlined' | 'filled',
|
|
55
|
+
FormHelperTextPropsVariantOverrides
|
|
56
|
+
>;
|
|
57
|
+
}
|
|
58
|
+
|
|
10
59
|
export interface FormHelperTextTypeMap<
|
|
11
60
|
AdditionalProps = {},
|
|
12
|
-
|
|
61
|
+
RootComponent extends React.ElementType = 'p',
|
|
13
62
|
> {
|
|
14
|
-
props: AdditionalProps &
|
|
15
|
-
|
|
16
|
-
* The content of the component.
|
|
17
|
-
*
|
|
18
|
-
* If `' '` is provided, the component reserves one line height for displaying a future message.
|
|
19
|
-
*/
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Override or extend the styles applied to the component.
|
|
23
|
-
*/
|
|
24
|
-
classes?: Partial<FormHelperTextClasses>;
|
|
25
|
-
/**
|
|
26
|
-
* If `true`, the helper text should be displayed in a disabled state.
|
|
27
|
-
*/
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* If `true`, helper text should be displayed in an error state.
|
|
31
|
-
*/
|
|
32
|
-
error?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* If `true`, the helper text should use filled classes key.
|
|
35
|
-
*/
|
|
36
|
-
filled?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* If `true`, the helper text should use focused classes key.
|
|
39
|
-
*/
|
|
40
|
-
focused?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
43
|
-
* FormControl.
|
|
44
|
-
*/
|
|
45
|
-
margin?: 'dense';
|
|
46
|
-
/**
|
|
47
|
-
* If `true`, the helper text should use required classes key.
|
|
48
|
-
*/
|
|
49
|
-
required?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
52
|
-
*/
|
|
53
|
-
sx?: SxProps<Theme>;
|
|
54
|
-
/**
|
|
55
|
-
* The variant to use.
|
|
56
|
-
*/
|
|
57
|
-
variant?: OverridableStringUnion<
|
|
58
|
-
'standard' | 'outlined' | 'filled',
|
|
59
|
-
FormHelperTextPropsVariantOverrides
|
|
60
|
-
>;
|
|
61
|
-
};
|
|
62
|
-
defaultComponent: DefaultComponent;
|
|
63
|
+
props: AdditionalProps & FormHelperTextOwnProps;
|
|
64
|
+
defaultComponent: RootComponent;
|
|
63
65
|
}
|
|
64
66
|
/**
|
|
65
67
|
*
|
package/FormLabel/FormLabel.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ import { FormLabelClasses } from './formLabelClasses';
|
|
|
7
7
|
|
|
8
8
|
export interface FormLabelPropsColorOverrides {}
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* This type is kept for compatibility. Use `FormLabelOwnProps` instead.
|
|
12
|
+
*/
|
|
13
|
+
export type FormLabelBaseProps = React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
14
|
+
|
|
10
15
|
export interface FormLabelOwnProps {
|
|
11
16
|
/**
|
|
12
17
|
* The content of the component.
|
|
@@ -53,10 +58,10 @@ export interface FormLabelOwnProps {
|
|
|
53
58
|
|
|
54
59
|
export interface FormLabelTypeMap<
|
|
55
60
|
AdditionalProps = {},
|
|
56
|
-
|
|
61
|
+
RootComponent extends React.ElementType = 'label',
|
|
57
62
|
> {
|
|
58
63
|
props: AdditionalProps & FormLabelBaseProps & FormLabelOwnProps;
|
|
59
|
-
defaultComponent:
|
|
64
|
+
defaultComponent: RootComponent;
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
/**
|
|
@@ -73,8 +78,6 @@ export interface FormLabelTypeMap<
|
|
|
73
78
|
*/
|
|
74
79
|
declare const FormLabel: OverridableComponent<FormLabelTypeMap>;
|
|
75
80
|
|
|
76
|
-
export type FormLabelBaseProps = React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
77
|
-
|
|
78
81
|
export interface ExtendFormLabelTypeMap<TypeMap extends OverridableTypeMap> {
|
|
79
82
|
props: TypeMap['props'] & Pick<FormLabelOwnProps, 'filled' | 'color'>;
|
|
80
83
|
defaultComponent: TypeMap['defaultComponent'];
|
package/Grid/Grid.d.ts
CHANGED
|
@@ -83,77 +83,78 @@ type Breakpoints = IfEquals<
|
|
|
83
83
|
CustomBreakpoints
|
|
84
84
|
>;
|
|
85
85
|
|
|
86
|
+
export interface GridOwnProps extends SystemProps<Theme>, Breakpoints {
|
|
87
|
+
/**
|
|
88
|
+
* The content of the component.
|
|
89
|
+
*/
|
|
90
|
+
children?: React.ReactNode;
|
|
91
|
+
/**
|
|
92
|
+
* Override or extend the styles applied to the component.
|
|
93
|
+
*/
|
|
94
|
+
classes?: Partial<GridClasses>;
|
|
95
|
+
/**
|
|
96
|
+
* The number of columns.
|
|
97
|
+
* @default 12
|
|
98
|
+
*/
|
|
99
|
+
columns?: ResponsiveStyleValue<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Defines the horizontal space between the type `item` components.
|
|
102
|
+
* It overrides the value of the `spacing` prop.
|
|
103
|
+
*/
|
|
104
|
+
columnSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
105
|
+
/**
|
|
106
|
+
* If `true`, the component will have the flex *container* behavior.
|
|
107
|
+
* You should be wrapping *items* with a *container*.
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
container?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Defines the `flex-direction` style property.
|
|
113
|
+
* It is applied for all screen sizes.
|
|
114
|
+
* @default 'row'
|
|
115
|
+
*/
|
|
116
|
+
direction?: ResponsiveStyleValue<GridDirection>;
|
|
117
|
+
/**
|
|
118
|
+
* If `true`, the component will have the flex *item* behavior.
|
|
119
|
+
* You should be wrapping *items* with a *container*.
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
item?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Defines the vertical space between the type `item` components.
|
|
125
|
+
* It overrides the value of the `spacing` prop.
|
|
126
|
+
*/
|
|
127
|
+
rowSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
128
|
+
/**
|
|
129
|
+
* Defines the space between the type `item` components.
|
|
130
|
+
* It can only be used on a type `container` component.
|
|
131
|
+
* @default 0
|
|
132
|
+
*/
|
|
133
|
+
spacing?: ResponsiveStyleValue<GridSpacing>;
|
|
134
|
+
/**
|
|
135
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
136
|
+
*/
|
|
137
|
+
sx?: SxProps<Theme>;
|
|
138
|
+
/**
|
|
139
|
+
* Defines the `flex-wrap` style property.
|
|
140
|
+
* It's applied for all screen sizes.
|
|
141
|
+
* @default 'wrap'
|
|
142
|
+
*/
|
|
143
|
+
wrap?: GridWrap;
|
|
144
|
+
/**
|
|
145
|
+
* If `true`, it sets `min-width: 0` on the item.
|
|
146
|
+
* Refer to the limitations section of the documentation to better understand the use case.
|
|
147
|
+
* @default false
|
|
148
|
+
*/
|
|
149
|
+
zeroMinWidth?: boolean;
|
|
150
|
+
}
|
|
151
|
+
|
|
86
152
|
export interface GridTypeMap<
|
|
87
153
|
AdditionalProps = {},
|
|
88
|
-
|
|
154
|
+
RootComponent extends React.ElementType = 'div',
|
|
89
155
|
> {
|
|
90
|
-
props: AdditionalProps &
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* The content of the component.
|
|
94
|
-
*/
|
|
95
|
-
children?: React.ReactNode;
|
|
96
|
-
/**
|
|
97
|
-
* Override or extend the styles applied to the component.
|
|
98
|
-
*/
|
|
99
|
-
classes?: Partial<GridClasses>;
|
|
100
|
-
/**
|
|
101
|
-
* The number of columns.
|
|
102
|
-
* @default 12
|
|
103
|
-
*/
|
|
104
|
-
columns?: ResponsiveStyleValue<number>;
|
|
105
|
-
/**
|
|
106
|
-
* Defines the horizontal space between the type `item` components.
|
|
107
|
-
* It overrides the value of the `spacing` prop.
|
|
108
|
-
*/
|
|
109
|
-
columnSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
110
|
-
/**
|
|
111
|
-
* If `true`, the component will have the flex *container* behavior.
|
|
112
|
-
* You should be wrapping *items* with a *container*.
|
|
113
|
-
* @default false
|
|
114
|
-
*/
|
|
115
|
-
container?: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Defines the `flex-direction` style property.
|
|
118
|
-
* It is applied for all screen sizes.
|
|
119
|
-
* @default 'row'
|
|
120
|
-
*/
|
|
121
|
-
direction?: ResponsiveStyleValue<GridDirection>;
|
|
122
|
-
/**
|
|
123
|
-
* If `true`, the component will have the flex *item* behavior.
|
|
124
|
-
* You should be wrapping *items* with a *container*.
|
|
125
|
-
* @default false
|
|
126
|
-
*/
|
|
127
|
-
item?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Defines the vertical space between the type `item` components.
|
|
130
|
-
* It overrides the value of the `spacing` prop.
|
|
131
|
-
*/
|
|
132
|
-
rowSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
133
|
-
/**
|
|
134
|
-
* Defines the space between the type `item` components.
|
|
135
|
-
* It can only be used on a type `container` component.
|
|
136
|
-
* @default 0
|
|
137
|
-
*/
|
|
138
|
-
spacing?: ResponsiveStyleValue<GridSpacing>;
|
|
139
|
-
/**
|
|
140
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
141
|
-
*/
|
|
142
|
-
sx?: SxProps<Theme>;
|
|
143
|
-
/**
|
|
144
|
-
* Defines the `flex-wrap` style property.
|
|
145
|
-
* It's applied for all screen sizes.
|
|
146
|
-
* @default 'wrap'
|
|
147
|
-
*/
|
|
148
|
-
wrap?: GridWrap;
|
|
149
|
-
/**
|
|
150
|
-
* If `true`, it sets `min-width: 0` on the item.
|
|
151
|
-
* Refer to the limitations section of the documentation to better understand the use case.
|
|
152
|
-
* @default false
|
|
153
|
-
*/
|
|
154
|
-
zeroMinWidth?: boolean;
|
|
155
|
-
} & Breakpoints;
|
|
156
|
-
defaultComponent: DefaultComponent;
|
|
156
|
+
props: AdditionalProps & GridOwnProps;
|
|
157
|
+
defaultComponent: RootComponent;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
/**
|
package/Hidden/Hidden.d.ts
CHANGED
|
@@ -25,22 +25,22 @@ export interface HiddenProps {
|
|
|
25
25
|
*/
|
|
26
26
|
initialWidth?: Breakpoint;
|
|
27
27
|
/**
|
|
28
|
-
* If `true`, screens
|
|
28
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
29
29
|
* @default false
|
|
30
30
|
*/
|
|
31
31
|
lgDown?: boolean;
|
|
32
32
|
/**
|
|
33
|
-
* If `true`, screens this size and
|
|
33
|
+
* If `true`, component is hidden on screens this size and above.
|
|
34
34
|
* @default false
|
|
35
35
|
*/
|
|
36
36
|
lgUp?: boolean;
|
|
37
37
|
/**
|
|
38
|
-
* If `true`, screens
|
|
38
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
39
39
|
* @default false
|
|
40
40
|
*/
|
|
41
41
|
mdDown?: boolean;
|
|
42
42
|
/**
|
|
43
|
-
* If `true`, screens this size and
|
|
43
|
+
* If `true`, component is hidden on screens this size and above.
|
|
44
44
|
* @default false
|
|
45
45
|
*/
|
|
46
46
|
mdUp?: boolean;
|
|
@@ -49,32 +49,32 @@ export interface HiddenProps {
|
|
|
49
49
|
*/
|
|
50
50
|
only?: Breakpoint | Breakpoint[];
|
|
51
51
|
/**
|
|
52
|
-
* If `true`, screens
|
|
52
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
53
53
|
* @default false
|
|
54
54
|
*/
|
|
55
55
|
smDown?: boolean;
|
|
56
56
|
/**
|
|
57
|
-
* If `true`, screens this size and
|
|
57
|
+
* If `true`, component is hidden on screens this size and above.
|
|
58
58
|
* @default false
|
|
59
59
|
*/
|
|
60
60
|
smUp?: boolean;
|
|
61
61
|
/**
|
|
62
|
-
* If `true`, screens
|
|
62
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
63
63
|
* @default false
|
|
64
64
|
*/
|
|
65
65
|
xlDown?: boolean;
|
|
66
66
|
/**
|
|
67
|
-
* If `true`, screens this size and
|
|
67
|
+
* If `true`, component is hidden on screens this size and above.
|
|
68
68
|
* @default false
|
|
69
69
|
*/
|
|
70
70
|
xlUp?: boolean;
|
|
71
71
|
/**
|
|
72
|
-
* If `true`, screens
|
|
72
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
73
73
|
* @default false
|
|
74
74
|
*/
|
|
75
75
|
xsDown?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
* If `true`, screens this size and
|
|
77
|
+
* If `true`, component is hidden on screens this size and above.
|
|
78
78
|
* @default false
|
|
79
79
|
*/
|
|
80
80
|
xsUp?: boolean;
|
package/Icon/Icon.d.ts
CHANGED
|
@@ -9,57 +9,59 @@ export interface IconPropsSizeOverrides {}
|
|
|
9
9
|
|
|
10
10
|
export interface IconPropsColorOverrides {}
|
|
11
11
|
|
|
12
|
+
export interface IconOwnProps {
|
|
13
|
+
/**
|
|
14
|
+
* The base class applied to the icon. Defaults to 'material-icons', but can be changed to any
|
|
15
|
+
* other base class that suits the icon font you're using (e.g. material-icons-rounded, fas, etc).
|
|
16
|
+
* @default 'material-icons'
|
|
17
|
+
*/
|
|
18
|
+
baseClassName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the icon font ligature.
|
|
21
|
+
*/
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Override or extend the styles applied to the component.
|
|
25
|
+
*/
|
|
26
|
+
classes?: Partial<IconClasses>;
|
|
27
|
+
/**
|
|
28
|
+
* The color of the component.
|
|
29
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
30
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
31
|
+
* @default 'inherit'
|
|
32
|
+
*/
|
|
33
|
+
color?: OverridableStringUnion<
|
|
34
|
+
| 'inherit'
|
|
35
|
+
| 'action'
|
|
36
|
+
| 'disabled'
|
|
37
|
+
| 'primary'
|
|
38
|
+
| 'secondary'
|
|
39
|
+
| 'error'
|
|
40
|
+
| 'info'
|
|
41
|
+
| 'success'
|
|
42
|
+
| 'warning',
|
|
43
|
+
IconPropsColorOverrides
|
|
44
|
+
>;
|
|
45
|
+
/**
|
|
46
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
47
|
+
* @default 'medium'
|
|
48
|
+
*/
|
|
49
|
+
fontSize?: OverridableStringUnion<
|
|
50
|
+
'inherit' | 'large' | 'medium' | 'small',
|
|
51
|
+
IconPropsSizeOverrides
|
|
52
|
+
>;
|
|
53
|
+
/**
|
|
54
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
55
|
+
*/
|
|
56
|
+
sx?: SxProps<Theme>;
|
|
57
|
+
}
|
|
58
|
+
|
|
12
59
|
export interface IconTypeMap<
|
|
13
60
|
AdditionalProps = {},
|
|
14
|
-
|
|
61
|
+
RootComponent extends React.ElementType = 'span',
|
|
15
62
|
> {
|
|
16
|
-
props: AdditionalProps &
|
|
17
|
-
|
|
18
|
-
* The base class applied to the icon. Defaults to 'material-icons', but can be changed to any
|
|
19
|
-
* other base class that suits the icon font you're using (e.g. material-icons-rounded, fas, etc).
|
|
20
|
-
* @default 'material-icons'
|
|
21
|
-
*/
|
|
22
|
-
baseClassName?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The name of the icon font ligature.
|
|
25
|
-
*/
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Override or extend the styles applied to the component.
|
|
29
|
-
*/
|
|
30
|
-
classes?: Partial<IconClasses>;
|
|
31
|
-
/**
|
|
32
|
-
* The color of the component.
|
|
33
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
34
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
35
|
-
* @default 'inherit'
|
|
36
|
-
*/
|
|
37
|
-
color?: OverridableStringUnion<
|
|
38
|
-
| 'inherit'
|
|
39
|
-
| 'action'
|
|
40
|
-
| 'disabled'
|
|
41
|
-
| 'primary'
|
|
42
|
-
| 'secondary'
|
|
43
|
-
| 'error'
|
|
44
|
-
| 'info'
|
|
45
|
-
| 'success'
|
|
46
|
-
| 'warning',
|
|
47
|
-
IconPropsColorOverrides
|
|
48
|
-
>;
|
|
49
|
-
/**
|
|
50
|
-
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
51
|
-
* @default 'medium'
|
|
52
|
-
*/
|
|
53
|
-
fontSize?: OverridableStringUnion<
|
|
54
|
-
'inherit' | 'large' | 'medium' | 'small',
|
|
55
|
-
IconPropsSizeOverrides
|
|
56
|
-
>;
|
|
57
|
-
/**
|
|
58
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
59
|
-
*/
|
|
60
|
-
sx?: SxProps<Theme>;
|
|
61
|
-
};
|
|
62
|
-
defaultComponent: DefaultComponent;
|
|
63
|
+
props: AdditionalProps & IconOwnProps;
|
|
64
|
+
defaultComponent: RootComponent;
|
|
63
65
|
}
|
|
64
66
|
/**
|
|
65
67
|
*
|