@mui/material 5.14.7 → 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 +111 -19
- 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/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/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/Radio/Radio.js +3 -2
- package/legacy/Radio/radioClasses.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- 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/Radio/Radio.js +3 -2
- package/modern/Radio/radioClasses.js +1 -1
- package/modern/Select/SelectInput.js +8 -5
- 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/Radio/Radio.js +3 -2
- package/node/Radio/radioClasses.js +1 -1
- package/node/Select/SelectInput.js +9 -5
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/umd/material-ui.development.js +50 -23
- package/umd/material-ui.production.min.js +5 -5
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
|
/**
|
package/Divider/Divider.d.ts
CHANGED
|
@@ -7,59 +7,58 @@ import { DividerClasses } from './dividerClasses';
|
|
|
7
7
|
|
|
8
8
|
export interface DividerPropsVariantOverrides {}
|
|
9
9
|
|
|
10
|
+
export interface DividerOwnProps {
|
|
11
|
+
/**
|
|
12
|
+
* Absolutely position the element.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
absolute?: boolean;
|
|
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<DividerClasses>;
|
|
24
|
+
/**
|
|
25
|
+
* If `true`, a vertical divider will have the correct height when used in flex container.
|
|
26
|
+
* (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
flexItem?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If `true`, the divider will have a lighter color.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
light?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The component orientation.
|
|
37
|
+
* @default 'horizontal'
|
|
38
|
+
*/
|
|
39
|
+
orientation?: 'horizontal' | 'vertical';
|
|
40
|
+
/**
|
|
41
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
42
|
+
*/
|
|
43
|
+
sx?: SxProps<Theme>;
|
|
44
|
+
/**
|
|
45
|
+
* The text alignment.
|
|
46
|
+
* @default 'center'
|
|
47
|
+
*/
|
|
48
|
+
textAlign?: 'center' | 'right' | 'left';
|
|
49
|
+
/**
|
|
50
|
+
* The variant to use.
|
|
51
|
+
* @default 'fullWidth'
|
|
52
|
+
*/
|
|
53
|
+
variant?: OverridableStringUnion<'fullWidth' | 'inset' | 'middle', DividerPropsVariantOverrides>;
|
|
54
|
+
}
|
|
55
|
+
|
|
10
56
|
export interface DividerTypeMap<
|
|
11
57
|
AdditionalProps = {},
|
|
12
|
-
|
|
58
|
+
RootComponent extends React.ElementType = 'hr',
|
|
13
59
|
> {
|
|
14
|
-
props: AdditionalProps &
|
|
15
|
-
|
|
16
|
-
* Absolutely position the element.
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
absolute?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The content of the component.
|
|
22
|
-
*/
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* Override or extend the styles applied to the component.
|
|
26
|
-
*/
|
|
27
|
-
classes?: Partial<DividerClasses>;
|
|
28
|
-
/**
|
|
29
|
-
* If `true`, a vertical divider will have the correct height when used in flex container.
|
|
30
|
-
* (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
flexItem?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* If `true`, the divider will have a lighter color.
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
light?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* The component orientation.
|
|
41
|
-
* @default 'horizontal'
|
|
42
|
-
*/
|
|
43
|
-
orientation?: 'horizontal' | 'vertical';
|
|
44
|
-
/**
|
|
45
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
46
|
-
*/
|
|
47
|
-
sx?: SxProps<Theme>;
|
|
48
|
-
/**
|
|
49
|
-
* The text alignment.
|
|
50
|
-
* @default 'center'
|
|
51
|
-
*/
|
|
52
|
-
textAlign?: 'center' | 'right' | 'left';
|
|
53
|
-
/**
|
|
54
|
-
* The variant to use.
|
|
55
|
-
* @default 'fullWidth'
|
|
56
|
-
*/
|
|
57
|
-
variant?: OverridableStringUnion<
|
|
58
|
-
'fullWidth' | 'inset' | 'middle',
|
|
59
|
-
DividerPropsVariantOverrides
|
|
60
|
-
>;
|
|
61
|
-
};
|
|
62
|
-
defaultComponent: DefaultComponent;
|
|
60
|
+
props: AdditionalProps & DividerOwnProps;
|
|
61
|
+
defaultComponent: RootComponent;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
/**
|
package/Fab/Fab.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { OverridableStringUnion } from '@mui/types';
|
|
2
3
|
import { SxProps } from '@mui/system';
|
|
3
4
|
import { PropTypes, Theme } from '..';
|
|
@@ -11,65 +12,67 @@ export interface FabPropsSizeOverrides {}
|
|
|
11
12
|
|
|
12
13
|
export interface FabPropsColorOverrides {}
|
|
13
14
|
|
|
15
|
+
export interface FabOwnProps {
|
|
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<FabClasses>;
|
|
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 'default'
|
|
29
|
+
*/
|
|
30
|
+
color?: OverridableStringUnion<
|
|
31
|
+
PropTypes.Color | 'success' | 'error' | 'info' | 'warning',
|
|
32
|
+
FabPropsColorOverrides
|
|
33
|
+
>;
|
|
34
|
+
/**
|
|
35
|
+
* If `true`, the component is disabled.
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
disableFocusRipple?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* If `true`, the ripple effect is disabled.
|
|
46
|
+
*/
|
|
47
|
+
disableRipple?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The URL to link to when the button is clicked.
|
|
50
|
+
* If defined, an `a` element will be used as the root node.
|
|
51
|
+
*/
|
|
52
|
+
href?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The size of the component.
|
|
55
|
+
* `small` is equivalent to the dense button styling.
|
|
56
|
+
* @default 'large'
|
|
57
|
+
*/
|
|
58
|
+
size?: OverridableStringUnion<'small' | 'medium' | 'large', FabPropsSizeOverrides>;
|
|
59
|
+
/**
|
|
60
|
+
* The variant to use.
|
|
61
|
+
* @default 'circular'
|
|
62
|
+
*/
|
|
63
|
+
variant?: OverridableStringUnion<'circular' | 'extended', FabPropsVariantOverrides>;
|
|
64
|
+
/**
|
|
65
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
66
|
+
*/
|
|
67
|
+
sx?: SxProps<Theme>;
|
|
68
|
+
}
|
|
69
|
+
|
|
14
70
|
export type FabTypeMap<
|
|
15
71
|
AdditionalProps = {},
|
|
16
|
-
|
|
72
|
+
RootComponent extends React.ElementType = 'button',
|
|
17
73
|
> = ExtendButtonBaseTypeMap<{
|
|
18
|
-
props: AdditionalProps &
|
|
19
|
-
|
|
20
|
-
* The content of the component.
|
|
21
|
-
*/
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* Override or extend the styles applied to the component.
|
|
25
|
-
*/
|
|
26
|
-
classes?: Partial<FabClasses>;
|
|
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 'default'
|
|
32
|
-
*/
|
|
33
|
-
color?: OverridableStringUnion<
|
|
34
|
-
PropTypes.Color | 'success' | 'error' | 'info' | 'warning',
|
|
35
|
-
FabPropsColorOverrides
|
|
36
|
-
>;
|
|
37
|
-
/**
|
|
38
|
-
* If `true`, the component is disabled.
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
disableFocusRipple?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* If `true`, the ripple effect is disabled.
|
|
49
|
-
*/
|
|
50
|
-
disableRipple?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* The URL to link to when the button is clicked.
|
|
53
|
-
* If defined, an `a` element will be used as the root node.
|
|
54
|
-
*/
|
|
55
|
-
href?: string;
|
|
56
|
-
/**
|
|
57
|
-
* The size of the component.
|
|
58
|
-
* `small` is equivalent to the dense button styling.
|
|
59
|
-
* @default 'large'
|
|
60
|
-
*/
|
|
61
|
-
size?: OverridableStringUnion<'small' | 'medium' | 'large', FabPropsSizeOverrides>;
|
|
62
|
-
/**
|
|
63
|
-
* The variant to use.
|
|
64
|
-
* @default 'circular'
|
|
65
|
-
*/
|
|
66
|
-
variant?: OverridableStringUnion<'circular' | 'extended', FabPropsVariantOverrides>;
|
|
67
|
-
/**
|
|
68
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
69
|
-
*/
|
|
70
|
-
sx?: SxProps<Theme>;
|
|
71
|
-
};
|
|
72
|
-
defaultComponent: DefaultComponent;
|
|
74
|
+
props: AdditionalProps & FabOwnProps;
|
|
75
|
+
defaultComponent: RootComponent;
|
|
73
76
|
}>;
|
|
74
77
|
|
|
75
78
|
/**
|