@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
package/Accordion/Accordion.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ExtendPaperTypeMap } from '../Paper/Paper';
|
|
|
8
8
|
|
|
9
9
|
export type AccordionTypeMap<
|
|
10
10
|
AdditionalProps = {},
|
|
11
|
-
|
|
11
|
+
RootComponent extends React.ElementType = 'div',
|
|
12
12
|
> = ExtendPaperTypeMap<
|
|
13
13
|
{
|
|
14
14
|
props: AdditionalProps & {
|
|
@@ -65,7 +65,7 @@ export type AccordionTypeMap<
|
|
|
65
65
|
*/
|
|
66
66
|
TransitionProps?: TransitionProps;
|
|
67
67
|
};
|
|
68
|
-
defaultComponent:
|
|
68
|
+
defaultComponent: RootComponent;
|
|
69
69
|
},
|
|
70
70
|
'onChange' | 'classes'
|
|
71
71
|
>;
|
|
@@ -5,29 +5,31 @@ import { OverrideProps } from '../OverridableComponent';
|
|
|
5
5
|
import { Theme } from '..';
|
|
6
6
|
import { AccordionSummaryClasses } from './accordionSummaryClasses';
|
|
7
7
|
|
|
8
|
+
export interface AccordionSummaryOwnProps {
|
|
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<AccordionSummaryClasses>;
|
|
17
|
+
/**
|
|
18
|
+
* The icon to display as the expand indicator.
|
|
19
|
+
*/
|
|
20
|
+
expandIcon?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23
|
+
*/
|
|
24
|
+
sx?: SxProps<Theme>;
|
|
25
|
+
}
|
|
26
|
+
|
|
8
27
|
export type AccordionSummaryTypeMap<
|
|
9
28
|
AdditionalProps = {},
|
|
10
|
-
|
|
29
|
+
RootComponent extends React.ElementType = 'div',
|
|
11
30
|
> = ExtendButtonBaseTypeMap<{
|
|
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<AccordionSummaryClasses>;
|
|
21
|
-
/**
|
|
22
|
-
* The icon to display as the expand indicator.
|
|
23
|
-
*/
|
|
24
|
-
expandIcon?: React.ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
27
|
-
*/
|
|
28
|
-
sx?: SxProps<Theme>;
|
|
29
|
-
};
|
|
30
|
-
defaultComponent: DefaultComponent;
|
|
31
|
+
props: AdditionalProps & AccordionSummaryOwnProps;
|
|
32
|
+
defaultComponent: RootComponent;
|
|
31
33
|
}>;
|
|
32
34
|
|
|
33
35
|
/**
|
package/AppBar/AppBar.d.ts
CHANGED
|
@@ -8,41 +8,43 @@ import { ExtendPaperTypeMap } from '../Paper/Paper';
|
|
|
8
8
|
|
|
9
9
|
export interface AppBarPropsColorOverrides {}
|
|
10
10
|
|
|
11
|
+
export interface AppBarOwnProps {
|
|
12
|
+
/**
|
|
13
|
+
* Override or extend the styles applied to the component.
|
|
14
|
+
*/
|
|
15
|
+
classes?: Partial<AppBarClasses>;
|
|
16
|
+
/**
|
|
17
|
+
* The color of the component.
|
|
18
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
19
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
20
|
+
* @default 'primary'
|
|
21
|
+
*/
|
|
22
|
+
color?: OverridableStringUnion<PropTypes.Color | 'transparent', AppBarPropsColorOverrides>;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the `color` prop is applied in dark mode.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
enableColorOnDark?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The positioning type. The behavior of the different options is described
|
|
30
|
+
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
|
31
|
+
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
|
32
|
+
* @default 'fixed'
|
|
33
|
+
*/
|
|
34
|
+
position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';
|
|
35
|
+
/**
|
|
36
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37
|
+
*/
|
|
38
|
+
sx?: SxProps<Theme>;
|
|
39
|
+
}
|
|
40
|
+
|
|
11
41
|
export type AppBarTypeMap<
|
|
12
42
|
AdditionalProps = {},
|
|
13
|
-
|
|
43
|
+
RootComponent extends React.ElementType = 'header',
|
|
14
44
|
> = ExtendPaperTypeMap<
|
|
15
45
|
{
|
|
16
|
-
props: AdditionalProps &
|
|
17
|
-
|
|
18
|
-
* Override or extend the styles applied to the component.
|
|
19
|
-
*/
|
|
20
|
-
classes?: Partial<AppBarClasses>;
|
|
21
|
-
/**
|
|
22
|
-
* The color of the component.
|
|
23
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
24
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
25
|
-
* @default 'primary'
|
|
26
|
-
*/
|
|
27
|
-
color?: OverridableStringUnion<PropTypes.Color | 'transparent', AppBarPropsColorOverrides>;
|
|
28
|
-
/**
|
|
29
|
-
* If true, the `color` prop is applied in dark mode.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
enableColorOnDark?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* The positioning type. The behavior of the different options is described
|
|
35
|
-
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
|
36
|
-
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
|
37
|
-
* @default 'fixed'
|
|
38
|
-
*/
|
|
39
|
-
position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';
|
|
40
|
-
/**
|
|
41
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
42
|
-
*/
|
|
43
|
-
sx?: SxProps<Theme>;
|
|
44
|
-
};
|
|
45
|
-
defaultComponent: DefaultComponent;
|
|
46
|
+
props: AdditionalProps & AppBarOwnProps;
|
|
47
|
+
defaultComponent: RootComponent;
|
|
46
48
|
},
|
|
47
49
|
'position' | 'color' | 'classes'
|
|
48
50
|
>;
|
package/Avatar/Avatar.d.ts
CHANGED
|
@@ -7,59 +7,58 @@ import { AvatarClasses } from './avatarClasses';
|
|
|
7
7
|
|
|
8
8
|
export interface AvatarPropsVariantOverrides {}
|
|
9
9
|
|
|
10
|
+
export interface AvatarOwnProps {
|
|
11
|
+
/**
|
|
12
|
+
* Used in combination with `src` or `srcSet` to
|
|
13
|
+
* provide an alt attribute for the rendered `img` element.
|
|
14
|
+
*/
|
|
15
|
+
alt?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
|
18
|
+
* This can be an element, or just a string.
|
|
19
|
+
*/
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Override or extend the styles applied to the component.
|
|
23
|
+
*/
|
|
24
|
+
classes?: Partial<AvatarClasses>;
|
|
25
|
+
/**
|
|
26
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
27
|
+
* It can be used to listen for the loading error event.
|
|
28
|
+
*/
|
|
29
|
+
imgProps?: React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
30
|
+
sx?: SxProps<Theme>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The `sizes` attribute for the `img` element.
|
|
34
|
+
*/
|
|
35
|
+
sizes?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The `src` attribute for the `img` element.
|
|
38
|
+
*/
|
|
39
|
+
src?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The `srcSet` attribute for the `img` element.
|
|
42
|
+
* Use this attribute for responsive image display.
|
|
43
|
+
*/
|
|
44
|
+
srcSet?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47
|
+
*/
|
|
48
|
+
sx?: SxProps<Theme>;
|
|
49
|
+
/**
|
|
50
|
+
* The shape of the avatar.
|
|
51
|
+
* @default 'circular'
|
|
52
|
+
*/
|
|
53
|
+
variant?: OverridableStringUnion<'circular' | 'rounded' | 'square', AvatarPropsVariantOverrides>;
|
|
54
|
+
}
|
|
55
|
+
|
|
10
56
|
export interface AvatarTypeMap<
|
|
11
57
|
AdditionalProps = {},
|
|
12
|
-
|
|
58
|
+
RootComponent extends React.ElementType = 'div',
|
|
13
59
|
> {
|
|
14
|
-
props: AdditionalProps &
|
|
15
|
-
|
|
16
|
-
* Used in combination with `src` or `srcSet` to
|
|
17
|
-
* provide an alt attribute for the rendered `img` element.
|
|
18
|
-
*/
|
|
19
|
-
alt?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
|
22
|
-
* This can be an element, or just a string.
|
|
23
|
-
*/
|
|
24
|
-
children?: React.ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* Override or extend the styles applied to the component.
|
|
27
|
-
*/
|
|
28
|
-
classes?: Partial<AvatarClasses>;
|
|
29
|
-
/**
|
|
30
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
31
|
-
* It can be used to listen for the loading error event.
|
|
32
|
-
*/
|
|
33
|
-
imgProps?: React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
34
|
-
sx?: SxProps<Theme>;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* The `sizes` attribute for the `img` element.
|
|
38
|
-
*/
|
|
39
|
-
sizes?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The `src` attribute for the `img` element.
|
|
42
|
-
*/
|
|
43
|
-
src?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The `srcSet` attribute for the `img` element.
|
|
46
|
-
* Use this attribute for responsive image display.
|
|
47
|
-
*/
|
|
48
|
-
srcSet?: string;
|
|
49
|
-
/**
|
|
50
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
51
|
-
*/
|
|
52
|
-
sx?: SxProps<Theme>;
|
|
53
|
-
/**
|
|
54
|
-
* The shape of the avatar.
|
|
55
|
-
* @default 'circular'
|
|
56
|
-
*/
|
|
57
|
-
variant?: OverridableStringUnion<
|
|
58
|
-
'circular' | 'rounded' | 'square',
|
|
59
|
-
AvatarPropsVariantOverrides
|
|
60
|
-
>;
|
|
61
|
-
};
|
|
62
|
-
defaultComponent: DefaultComponent;
|
|
60
|
+
props: AdditionalProps & AvatarOwnProps;
|
|
61
|
+
defaultComponent: RootComponent;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
/**
|
package/Backdrop/Backdrop.d.ts
CHANGED
|
@@ -8,94 +8,96 @@ import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
|
8
8
|
|
|
9
9
|
export interface BackdropComponentsPropsOverrides {}
|
|
10
10
|
|
|
11
|
+
export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>> {
|
|
12
|
+
/**
|
|
13
|
+
* The content of the component.
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The components used for each slot inside.
|
|
18
|
+
*
|
|
19
|
+
* This prop is an alias for the `slots` prop.
|
|
20
|
+
* It's recommended to use the `slots` prop instead.
|
|
21
|
+
*
|
|
22
|
+
* @default {}
|
|
23
|
+
*/
|
|
24
|
+
components?: {
|
|
25
|
+
Root?: React.ElementType;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The extra props for the slot components.
|
|
29
|
+
* You can override the existing props or add new ones.
|
|
30
|
+
*
|
|
31
|
+
* This prop is an alias for the `slotProps` prop.
|
|
32
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
33
|
+
*
|
|
34
|
+
* @default {}
|
|
35
|
+
*/
|
|
36
|
+
componentsProps?: {
|
|
37
|
+
root?: React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Override or extend the styles applied to the component.
|
|
41
|
+
*/
|
|
42
|
+
classes?: Partial<BackdropClasses>;
|
|
43
|
+
/**
|
|
44
|
+
* If `true`, the backdrop is invisible.
|
|
45
|
+
* It can be used when rendering a popover or a custom select component.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
invisible?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If `true`, the component is shown.
|
|
51
|
+
*/
|
|
52
|
+
open: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The extra props for the slot components.
|
|
55
|
+
* You can override the existing props or add new ones.
|
|
56
|
+
*
|
|
57
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
58
|
+
*
|
|
59
|
+
* @default {}
|
|
60
|
+
*/
|
|
61
|
+
slotProps?: {
|
|
62
|
+
root?: React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The components used for each slot inside.
|
|
66
|
+
*
|
|
67
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
68
|
+
*
|
|
69
|
+
* @default {}
|
|
70
|
+
*/
|
|
71
|
+
slots?: {
|
|
72
|
+
root?: React.ElementType;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
76
|
+
*/
|
|
77
|
+
sx?: SxProps<Theme>;
|
|
78
|
+
/**
|
|
79
|
+
* The duration for the transition, in milliseconds.
|
|
80
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
81
|
+
*/
|
|
82
|
+
transitionDuration?: TransitionProps['timeout'];
|
|
83
|
+
/**
|
|
84
|
+
* The component used for the transition.
|
|
85
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
86
|
+
* @default Fade
|
|
87
|
+
*/
|
|
88
|
+
TransitionComponent?: React.JSXElementConstructor<
|
|
89
|
+
TransitionProps & {
|
|
90
|
+
children: React.ReactElement<any, any>;
|
|
91
|
+
}
|
|
92
|
+
>;
|
|
93
|
+
}
|
|
94
|
+
|
|
11
95
|
export interface BackdropTypeMap<
|
|
12
96
|
AdditionalProps = {},
|
|
13
|
-
|
|
97
|
+
RootComponent extends React.ElementType = 'div',
|
|
14
98
|
> {
|
|
15
|
-
props: AdditionalProps &
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The content of the component.
|
|
19
|
-
*/
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* The components used for each slot inside.
|
|
23
|
-
*
|
|
24
|
-
* This prop is an alias for the `slots` prop.
|
|
25
|
-
* It's recommended to use the `slots` prop instead.
|
|
26
|
-
*
|
|
27
|
-
* @default {}
|
|
28
|
-
*/
|
|
29
|
-
components?: {
|
|
30
|
-
Root?: React.ElementType;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* The extra props for the slot components.
|
|
34
|
-
* You can override the existing props or add new ones.
|
|
35
|
-
*
|
|
36
|
-
* This prop is an alias for the `slotProps` prop.
|
|
37
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
38
|
-
*
|
|
39
|
-
* @default {}
|
|
40
|
-
*/
|
|
41
|
-
componentsProps?: {
|
|
42
|
-
root?: React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Override or extend the styles applied to the component.
|
|
46
|
-
*/
|
|
47
|
-
classes?: Partial<BackdropClasses>;
|
|
48
|
-
/**
|
|
49
|
-
* If `true`, the backdrop is invisible.
|
|
50
|
-
* It can be used when rendering a popover or a custom select component.
|
|
51
|
-
* @default false
|
|
52
|
-
*/
|
|
53
|
-
invisible?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* If `true`, the component is shown.
|
|
56
|
-
*/
|
|
57
|
-
open: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* The extra props for the slot components.
|
|
60
|
-
* You can override the existing props or add new ones.
|
|
61
|
-
*
|
|
62
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
63
|
-
*
|
|
64
|
-
* @default {}
|
|
65
|
-
*/
|
|
66
|
-
slotProps?: {
|
|
67
|
-
root?: React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* The components used for each slot inside.
|
|
71
|
-
*
|
|
72
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
73
|
-
*
|
|
74
|
-
* @default {}
|
|
75
|
-
*/
|
|
76
|
-
slots?: {
|
|
77
|
-
root?: React.ElementType;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
82
|
-
*/
|
|
83
|
-
sx?: SxProps<Theme>;
|
|
84
|
-
/**
|
|
85
|
-
* The duration for the transition, in milliseconds.
|
|
86
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
87
|
-
*/
|
|
88
|
-
transitionDuration?: TransitionProps['timeout'];
|
|
89
|
-
/**
|
|
90
|
-
* The component used for the transition.
|
|
91
|
-
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
92
|
-
* @default Fade
|
|
93
|
-
*/
|
|
94
|
-
TransitionComponent?: React.JSXElementConstructor<
|
|
95
|
-
TransitionProps & { children: React.ReactElement<any, any> }
|
|
96
|
-
>;
|
|
97
|
-
};
|
|
98
|
-
defaultComponent: DefaultComponent;
|
|
99
|
+
props: AdditionalProps & BackdropOwnProps;
|
|
100
|
+
defaultComponent: RootComponent;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
type BackdropRootProps = NonNullable<BackdropTypeMap['props']['componentsProps']>['root'];
|
package/Badge/Badge.d.ts
CHANGED
|
@@ -147,11 +147,11 @@ export interface BadgeOwnProps {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export interface BadgeTypeMap<
|
|
150
|
-
|
|
150
|
+
RootComponent extends React.ElementType = 'span',
|
|
151
151
|
AdditionalProps = {},
|
|
152
152
|
> {
|
|
153
153
|
props: AdditionalProps & BadgeOwnProps;
|
|
154
|
-
defaultComponent:
|
|
154
|
+
defaultComponent: RootComponent;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
type BadgeRootProps = NonNullable<BadgeTypeMap['props']['slotProps']>['root'];
|
|
@@ -4,42 +4,44 @@ import { Theme } from '..';
|
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
5
5
|
import { BottomNavigationClasses } from './bottomNavigationClasses';
|
|
6
6
|
|
|
7
|
+
export interface BottomNavigationOwnProps {
|
|
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<BottomNavigationClasses>;
|
|
16
|
+
/**
|
|
17
|
+
* Callback fired when the value changes.
|
|
18
|
+
*
|
|
19
|
+
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
20
|
+
* @param {any} value We default to the index of the child.
|
|
21
|
+
*/
|
|
22
|
+
onChange?: (event: React.SyntheticEvent, value: any) => void;
|
|
23
|
+
/**
|
|
24
|
+
* If `true`, all `BottomNavigationAction`s will show their labels.
|
|
25
|
+
* By default, only the selected `BottomNavigationAction` will show its label.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
showLabels?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
31
|
+
*/
|
|
32
|
+
sx?: SxProps<Theme>;
|
|
33
|
+
/**
|
|
34
|
+
* The value of the currently selected `BottomNavigationAction`.
|
|
35
|
+
*/
|
|
36
|
+
value?: any;
|
|
37
|
+
}
|
|
38
|
+
|
|
7
39
|
export interface BottomNavigationTypeMap<
|
|
8
40
|
AdditionalProps = {},
|
|
9
|
-
|
|
41
|
+
RootComponent extends React.ElementType = 'div',
|
|
10
42
|
> {
|
|
11
|
-
props: AdditionalProps &
|
|
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<BottomNavigationClasses>;
|
|
20
|
-
/**
|
|
21
|
-
* Callback fired when the value changes.
|
|
22
|
-
*
|
|
23
|
-
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
24
|
-
* @param {any} value We default to the index of the child.
|
|
25
|
-
*/
|
|
26
|
-
onChange?: (event: React.SyntheticEvent, value: any) => void;
|
|
27
|
-
/**
|
|
28
|
-
* If `true`, all `BottomNavigationAction`s will show their labels.
|
|
29
|
-
* By default, only the selected `BottomNavigationAction` will show its label.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
showLabels?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35
|
-
*/
|
|
36
|
-
sx?: SxProps<Theme>;
|
|
37
|
-
/**
|
|
38
|
-
* The value of the currently selected `BottomNavigationAction`.
|
|
39
|
-
*/
|
|
40
|
-
value?: any;
|
|
41
|
-
};
|
|
42
|
-
defaultComponent: DefaultComponent;
|
|
43
|
+
props: AdditionalProps & BottomNavigationOwnProps;
|
|
44
|
+
defaultComponent: RootComponent;
|
|
43
45
|
}
|
|
44
46
|
/**
|
|
45
47
|
*
|
|
@@ -5,46 +5,48 @@ import { ButtonBaseTypeMap, ExtendButtonBase, ExtendButtonBaseTypeMap } from '..
|
|
|
5
5
|
import { OverrideProps } from '../OverridableComponent';
|
|
6
6
|
import { BottomNavigationActionClasses } from './bottomNavigationActionClasses';
|
|
7
7
|
|
|
8
|
+
export interface BottomNavigationActionOwnProps {
|
|
9
|
+
/**
|
|
10
|
+
* This prop isn't supported.
|
|
11
|
+
* Use the `component` prop if you need to change the children structure.
|
|
12
|
+
*/
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Override or extend the styles applied to the component.
|
|
16
|
+
*/
|
|
17
|
+
classes?: Partial<BottomNavigationActionClasses>;
|
|
18
|
+
/**
|
|
19
|
+
* The icon to display.
|
|
20
|
+
*/
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* The label element.
|
|
24
|
+
*/
|
|
25
|
+
label?: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* If `true`, the `BottomNavigationAction` will show its label.
|
|
28
|
+
* By default, only the selected `BottomNavigationAction`
|
|
29
|
+
* inside `BottomNavigation` will show its label.
|
|
30
|
+
*
|
|
31
|
+
* The prop defaults to the value (`false`) inherited from the parent BottomNavigation component.
|
|
32
|
+
*/
|
|
33
|
+
showLabel?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36
|
+
*/
|
|
37
|
+
sx?: SxProps<Theme>;
|
|
38
|
+
/**
|
|
39
|
+
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
40
|
+
*/
|
|
41
|
+
value?: any;
|
|
42
|
+
}
|
|
43
|
+
|
|
8
44
|
export type BottomNavigationActionTypeMap<
|
|
9
45
|
AdditionalProps,
|
|
10
|
-
|
|
46
|
+
RootComponent extends React.ElementType,
|
|
11
47
|
> = ExtendButtonBaseTypeMap<{
|
|
12
|
-
props: AdditionalProps &
|
|
13
|
-
|
|
14
|
-
* This prop isn't supported.
|
|
15
|
-
* Use the `component` prop if you need to change the children structure.
|
|
16
|
-
*/
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Override or extend the styles applied to the component.
|
|
20
|
-
*/
|
|
21
|
-
classes?: Partial<BottomNavigationActionClasses>;
|
|
22
|
-
/**
|
|
23
|
-
* The icon to display.
|
|
24
|
-
*/
|
|
25
|
-
icon?: React.ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* The label element.
|
|
28
|
-
*/
|
|
29
|
-
label?: React.ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* If `true`, the `BottomNavigationAction` will show its label.
|
|
32
|
-
* By default, only the selected `BottomNavigationAction`
|
|
33
|
-
* inside `BottomNavigation` will show its label.
|
|
34
|
-
*
|
|
35
|
-
* The prop defaults to the value (`false`) inherited from the parent BottomNavigation component.
|
|
36
|
-
*/
|
|
37
|
-
showLabel?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
40
|
-
*/
|
|
41
|
-
sx?: SxProps<Theme>;
|
|
42
|
-
/**
|
|
43
|
-
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
44
|
-
*/
|
|
45
|
-
value?: any;
|
|
46
|
-
};
|
|
47
|
-
defaultComponent: DefaultComponent;
|
|
48
|
+
props: AdditionalProps & BottomNavigationActionOwnProps;
|
|
49
|
+
defaultComponent: RootComponent;
|
|
48
50
|
}>;
|
|
49
51
|
|
|
50
52
|
/**
|