@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.
Files changed (143) hide show
  1. package/Accordion/Accordion.d.ts +2 -2
  2. package/AccordionSummary/AccordionSummary.d.ts +22 -20
  3. package/AlertTitle/AlertTitle.d.ts +1 -0
  4. package/AppBar/AppBar.d.ts +33 -31
  5. package/Avatar/Avatar.d.ts +49 -50
  6. package/Backdrop/Backdrop.d.ts +87 -85
  7. package/Badge/Badge.d.ts +2 -2
  8. package/BottomNavigation/BottomNavigation.d.ts +35 -33
  9. package/BottomNavigationAction/BottomNavigationAction.d.ts +39 -37
  10. package/Breadcrumbs/Breadcrumbs.d.ts +70 -67
  11. package/Button/Button.d.ts +72 -73
  12. package/Button/Button.js +4 -1
  13. package/ButtonBase/ButtonBase.d.ts +83 -81
  14. package/ButtonGroup/ButtonGroup.d.ts +72 -70
  15. package/ButtonGroup/ButtonGroup.js +86 -54
  16. package/ButtonGroup/ButtonGroupButtonContext.d.ts +6 -0
  17. package/ButtonGroup/ButtonGroupButtonContext.js +9 -0
  18. package/ButtonGroup/buttonGroupClasses.d.ts +6 -0
  19. package/ButtonGroup/buttonGroupClasses.js +1 -1
  20. package/CHANGELOG.md +235 -38
  21. package/Card/Card.d.ts +19 -18
  22. package/CardActionArea/CardActionArea.d.ts +15 -13
  23. package/CardContent/CardContent.d.ts +18 -16
  24. package/CardHeader/CardHeader.d.ts +77 -67
  25. package/CardMedia/CardMedia.d.ts +30 -28
  26. package/Chip/Chip.d.ts +84 -82
  27. package/CircularProgress/CircularProgress.d.ts +1 -1
  28. package/CircularProgress/CircularProgress.js +1 -1
  29. package/Container/Container.d.ts +35 -33
  30. package/DialogContentText/DialogContentText.d.ts +14 -12
  31. package/DialogTitle/DialogTitle.d.ts +19 -16
  32. package/Divider/Divider.d.ts +49 -50
  33. package/Fab/Fab.d.ts +59 -56
  34. package/FormControl/FormControl.d.ts +74 -72
  35. package/FormHelperText/FormHelperText.d.ts +52 -50
  36. package/FormLabel/FormLabel.d.ts +7 -4
  37. package/Grid/Grid.d.ts +69 -68
  38. package/Hidden/Hidden.d.ts +10 -10
  39. package/Icon/Icon.d.ts +50 -48
  40. package/IconButton/IconButton.d.ts +52 -50
  41. package/ImageList/ImageList.d.ts +41 -39
  42. package/ImageListItem/ImageListItem.d.ts +28 -26
  43. package/ImageListItem/ImageListItem.js +2 -1
  44. package/InputAdornment/InputAdornment.d.ts +39 -37
  45. package/InputBase/InputBase.js +1 -1
  46. package/InputLabel/InputLabel.d.ts +58 -56
  47. package/InputLabel/InputLabel.js +2 -1
  48. package/Link/Link.d.ts +37 -39
  49. package/List/List.d.ts +34 -35
  50. package/ListItem/ListItem.d.ts +53 -49
  51. package/ListItemButton/ListItemButton.d.ts +9 -3
  52. package/ListSubheader/ListSubheader.d.ts +38 -36
  53. package/MenuItem/MenuItem.d.ts +47 -44
  54. package/MenuList/MenuList.d.ts +37 -35
  55. package/Modal/Modal.d.ts +172 -178
  56. package/Modal/Modal.js +1 -1
  57. package/PaginationItem/PaginationItem.d.ts +85 -83
  58. package/Paper/Paper.d.ts +2 -2
  59. package/README.md +9 -198
  60. package/Radio/Radio.js +3 -2
  61. package/Radio/radioClasses.d.ts +2 -0
  62. package/Radio/radioClasses.js +1 -1
  63. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +25 -23
  64. package/Select/SelectInput.js +9 -5
  65. package/Skeleton/Skeleton.d.ts +42 -40
  66. package/Slider/Slider.d.ts +249 -247
  67. package/Slider/Slider.js +9 -86
  68. package/Stack/Stack.d.ts +39 -38
  69. package/Step/Step.d.ts +46 -44
  70. package/StepButton/StepButton.d.ts +27 -25
  71. package/Stepper/Stepper.d.ts +45 -44
  72. package/SvgIcon/SvgIcon.d.ts +77 -75
  73. package/SwipeableDrawer/SwipeableDrawer.js +4 -4
  74. package/Tab/Tab.d.ts +52 -50
  75. package/TabScrollButton/TabScrollButton.d.ts +3 -2
  76. package/Table/Table.d.ts +35 -33
  77. package/TableBody/TableBody.d.ts +18 -16
  78. package/TableContainer/TableContainer.d.ts +18 -16
  79. package/TableFooter/TableFooter.d.ts +18 -16
  80. package/TableHead/TableHead.d.ts +18 -16
  81. package/TablePagination/TablePagination.d.ts +113 -112
  82. package/TableRow/TableRow.d.ts +28 -26
  83. package/TableSortLabel/TableSortLabel.d.ts +40 -36
  84. package/Tabs/Tabs.d.ts +153 -150
  85. package/Tabs/Tabs.js +1 -4
  86. package/ToggleButton/ToggleButton.d.ts +72 -70
  87. package/Toolbar/Toolbar.d.ts +29 -27
  88. package/Typography/Typography.d.ts +2 -2
  89. package/index.js +1 -1
  90. package/legacy/Button/Button.js +4 -1
  91. package/legacy/ButtonGroup/ButtonGroup.js +81 -56
  92. package/legacy/ButtonGroup/ButtonGroupButtonContext.js +9 -0
  93. package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
  94. package/legacy/CircularProgress/CircularProgress.js +1 -1
  95. package/legacy/ImageListItem/ImageListItem.js +2 -1
  96. package/legacy/InputBase/InputBase.js +1 -1
  97. package/legacy/InputLabel/InputLabel.js +2 -1
  98. package/legacy/Modal/Modal.js +3 -1
  99. package/legacy/Radio/Radio.js +3 -2
  100. package/legacy/Radio/radioClasses.js +1 -1
  101. package/legacy/Select/SelectInput.js +9 -5
  102. package/legacy/Slider/Slider.js +9 -86
  103. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  104. package/legacy/Tabs/Tabs.js +1 -4
  105. package/legacy/index.js +1 -1
  106. package/legacy/useTouchRipple/useTouchRipple.js +4 -4
  107. package/modern/Button/Button.js +4 -1
  108. package/modern/ButtonGroup/ButtonGroup.js +86 -54
  109. package/modern/ButtonGroup/ButtonGroupButtonContext.js +9 -0
  110. package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
  111. package/modern/CircularProgress/CircularProgress.js +1 -1
  112. package/modern/ImageListItem/ImageListItem.js +2 -1
  113. package/modern/InputBase/InputBase.js +1 -1
  114. package/modern/InputLabel/InputLabel.js +2 -1
  115. package/modern/Modal/Modal.js +1 -1
  116. package/modern/Radio/Radio.js +3 -2
  117. package/modern/Radio/radioClasses.js +1 -1
  118. package/modern/Select/SelectInput.js +8 -5
  119. package/modern/Slider/Slider.js +9 -86
  120. package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
  121. package/modern/Tabs/Tabs.js +1 -4
  122. package/modern/index.js +1 -1
  123. package/node/Button/Button.js +4 -1
  124. package/node/ButtonGroup/ButtonGroup.js +86 -54
  125. package/node/ButtonGroup/ButtonGroupButtonContext.js +18 -0
  126. package/node/ButtonGroup/buttonGroupClasses.js +1 -1
  127. package/node/CircularProgress/CircularProgress.js +1 -1
  128. package/node/ImageListItem/ImageListItem.js +2 -1
  129. package/node/InputBase/InputBase.js +1 -1
  130. package/node/InputLabel/InputLabel.js +2 -1
  131. package/node/Modal/Modal.js +1 -1
  132. package/node/Radio/Radio.js +3 -2
  133. package/node/Radio/radioClasses.js +1 -1
  134. package/node/Select/SelectInput.js +9 -5
  135. package/node/Slider/Slider.js +3 -73
  136. package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
  137. package/node/Tabs/Tabs.js +1 -4
  138. package/node/index.js +1 -1
  139. package/node/useTouchRipple/useTouchRipple.js +4 -4
  140. package/package.json +16 -16
  141. package/umd/material-ui.development.js +258 -254
  142. package/umd/material-ui.production.min.js +18 -18
  143. package/useTouchRipple/useTouchRipple.js +4 -4
@@ -8,7 +8,7 @@ import { ExtendPaperTypeMap } from '../Paper/Paper';
8
8
 
9
9
  export type AccordionTypeMap<
10
10
  AdditionalProps = {},
11
- DefaultComponent extends React.ElementType = 'div',
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: 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
- DefaultComponent extends React.ElementType = 'div',
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
  /**
@@ -27,5 +27,6 @@ export interface AlertTitleProps extends StandardProps<React.HTMLAttributes<HTML
27
27
  * API:
28
28
  *
29
29
  * - [AlertTitle API](https://mui.com/material-ui/api/alert-title/)
30
+ * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
30
31
  */
31
32
  export default function AlertTitle(props: AlertTitleProps): JSX.Element;
@@ -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
- DefaultComponent extends React.ElementType = 'header',
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
  >;
@@ -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
- DefaultComponent extends React.ElementType = 'div',
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
  /**
@@ -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
- DefaultComponent extends React.ElementType = 'div',
97
+ RootComponent extends React.ElementType = 'div',
14
98
  > {
15
- props: AdditionalProps &
16
- Partial<Omit<FadeProps, 'children'>> & {
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
- DefaultComponent extends React.ElementType = 'span',
150
+ RootComponent extends React.ElementType = 'span',
151
151
  AdditionalProps = {},
152
152
  > {
153
153
  props: AdditionalProps & BadgeOwnProps;
154
- defaultComponent: 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
- DefaultComponent extends React.ElementType = 'div',
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
- DefaultComponent extends React.ElementType,
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
  /**