@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
@@ -5,63 +5,73 @@ import { OverridableComponent, OverrideProps } from '../OverridableComponent';
5
5
  import { Theme } from '..';
6
6
  import { CardHeaderClasses } from './cardHeaderClasses';
7
7
 
8
+ export interface CardHeaderOwnProps<
9
+ TitleTypographyComponent extends React.ElementType = 'span',
10
+ SubheaderTypographyComponent extends React.ElementType = 'span',
11
+ > {
12
+ /**
13
+ * The action to display in the card header.
14
+ */
15
+ action?: React.ReactNode;
16
+ /**
17
+ * The Avatar element to display.
18
+ */
19
+ avatar?: React.ReactNode;
20
+ /**
21
+ * Override or extend the styles applied to the component.
22
+ */
23
+ classes?: Partial<CardHeaderClasses>;
24
+ /**
25
+ * If `true`, `subheader` and `title` won't be wrapped by a Typography component.
26
+ * This can be useful to render an alternative Typography variant by wrapping
27
+ * the `title` text, and optional `subheader` text
28
+ * with the Typography component.
29
+ * @default false
30
+ */
31
+ disableTypography?: boolean;
32
+ /**
33
+ * The content of the component.
34
+ */
35
+ subheader?: React.ReactNode;
36
+ /**
37
+ * These props will be forwarded to the subheader
38
+ * (as long as disableTypography is not `true`).
39
+ */
40
+ subheaderTypographyProps?: TypographyProps<
41
+ SubheaderTypographyComponent,
42
+ {
43
+ component?: SubheaderTypographyComponent;
44
+ }
45
+ >;
46
+ /**
47
+ * The system prop that allows defining system overrides as well as additional CSS styles.
48
+ */
49
+ sx?: SxProps<Theme>;
50
+ /**
51
+ * The content of the component.
52
+ */
53
+ title?: React.ReactNode;
54
+ /**
55
+ * These props will be forwarded to the title
56
+ * (as long as disableTypography is not `true`).
57
+ */
58
+ titleTypographyProps?: TypographyProps<
59
+ TitleTypographyComponent,
60
+ {
61
+ component?: TitleTypographyComponent;
62
+ }
63
+ >;
64
+ }
65
+
8
66
  export interface CardHeaderTypeMap<
9
- Props = {},
10
- DefaultComponent extends React.ElementType = 'div',
67
+ AdditionalProps = {},
68
+ RootComponent extends React.ElementType = 'div',
11
69
  TitleTypographyComponent extends React.ElementType = 'span',
12
70
  SubheaderTypographyComponent extends React.ElementType = 'span',
13
71
  > {
14
- props: Props & {
15
- /**
16
- * The action to display in the card header.
17
- */
18
- action?: React.ReactNode;
19
- /**
20
- * The Avatar element to display.
21
- */
22
- avatar?: React.ReactNode;
23
- /**
24
- * Override or extend the styles applied to the component.
25
- */
26
- classes?: Partial<CardHeaderClasses>;
27
- /**
28
- * If `true`, `subheader` and `title` won't be wrapped by a Typography component.
29
- * This can be useful to render an alternative Typography variant by wrapping
30
- * the `title` text, and optional `subheader` text
31
- * with the Typography component.
32
- * @default false
33
- */
34
- disableTypography?: boolean;
35
- /**
36
- * The content of the component.
37
- */
38
- subheader?: React.ReactNode;
39
- /**
40
- * These props will be forwarded to the subheader
41
- * (as long as disableTypography is not `true`).
42
- */
43
- subheaderTypographyProps?: TypographyProps<
44
- SubheaderTypographyComponent,
45
- { component?: SubheaderTypographyComponent }
46
- >;
47
- /**
48
- * The system prop that allows defining system overrides as well as additional CSS styles.
49
- */
50
- sx?: SxProps<Theme>;
51
- /**
52
- * The content of the component.
53
- */
54
- title?: React.ReactNode;
55
- /**
56
- * These props will be forwarded to the title
57
- * (as long as disableTypography is not `true`).
58
- */
59
- titleTypographyProps?: TypographyProps<
60
- TitleTypographyComponent,
61
- { component?: TitleTypographyComponent }
62
- >;
63
- };
64
- defaultComponent: DefaultComponent;
72
+ props: AdditionalProps &
73
+ CardHeaderOwnProps<TitleTypographyComponent, SubheaderTypographyComponent>;
74
+ defaultComponent: RootComponent;
65
75
  }
66
76
  /**
67
77
  *
@@ -77,14 +87,14 @@ declare const CardHeader: OverridableCardHeader;
77
87
 
78
88
  export interface OverridableCardHeader extends OverridableComponent<CardHeaderTypeMap> {
79
89
  <
80
- DefaultComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
81
- Props = {},
90
+ RootComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
91
+ AdditionalProps = {},
82
92
  TitleTypographyComponent extends React.ElementType = 'span',
83
93
  SubheaderTypographyComponent extends React.ElementType = 'span',
84
94
  >(
85
95
  props: CardHeaderPropsWithComponent<
86
- DefaultComponent,
87
- Props,
96
+ RootComponent,
97
+ AdditionalProps,
88
98
  TitleTypographyComponent,
89
99
  SubheaderTypographyComponent
90
100
  >,
@@ -92,23 +102,23 @@ export interface OverridableCardHeader extends OverridableComponent<CardHeaderTy
92
102
  }
93
103
 
94
104
  export type CardHeaderProps<
95
- DefaultComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
96
- Props = {},
105
+ RootComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
106
+ AdditionalProps = {},
97
107
  TitleTypographyComponent extends React.ElementType = 'span',
98
108
  SubheaderTypographyComponent extends React.ElementType = 'span',
99
109
  > = OverrideProps<
100
110
  CardHeaderTypeMap<
101
- Props,
102
- DefaultComponent,
111
+ AdditionalProps,
112
+ RootComponent,
103
113
  TitleTypographyComponent,
104
114
  SubheaderTypographyComponent
105
115
  >,
106
- DefaultComponent
116
+ RootComponent
107
117
  >;
108
118
 
109
119
  export type CardHeaderPropsWithComponent<
110
- DefaultComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
111
- Props = {},
120
+ RootComponent extends React.ElementType = CardHeaderTypeMap['defaultComponent'],
121
+ AdditionalProps = {},
112
122
  TitleTypographyComponent extends React.ElementType = 'span',
113
123
  SubheaderTypographyComponent extends React.ElementType = 'span',
114
124
  > = {
@@ -116,10 +126,10 @@ export type CardHeaderPropsWithComponent<
116
126
  * The component used for the root node.
117
127
  * Either a string to use a HTML element or a component.
118
128
  */
119
- component?: DefaultComponent;
129
+ component?: RootComponent;
120
130
  } & CardHeaderProps<
121
- DefaultComponent,
122
- Props,
131
+ RootComponent,
132
+ AdditionalProps,
123
133
  TitleTypographyComponent,
124
134
  SubheaderTypographyComponent
125
135
  >;
@@ -4,34 +4,36 @@ import { Theme } from '..';
4
4
  import { OverridableComponent, OverrideProps } from '../OverridableComponent';
5
5
  import { CardMediaClasses } from './cardMediaClasses';
6
6
 
7
- export interface CardMediaTypeMap<AdditionalProps, DefaultComponent extends React.ElementType> {
8
- props: AdditionalProps & {
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<CardMediaClasses>;
17
- /**
18
- * Image to be displayed as a background image.
19
- * Either `image` or `src` prop must be specified.
20
- * Note that caller must specify height otherwise the image will not be visible.
21
- */
22
- image?: string;
23
- /**
24
- * An alias for `image` property.
25
- * Available only with media components.
26
- * Media components: `video`, `audio`, `picture`, `iframe`, `img`.
27
- */
28
- src?: string;
29
- /**
30
- * The system prop that allows defining system overrides as well as additional CSS styles.
31
- */
32
- sx?: SxProps<Theme>;
33
- };
34
- defaultComponent: DefaultComponent;
7
+ export interface CardMediaOwnProps {
8
+ /**
9
+ * The content of the component.
10
+ */
11
+ children?: React.ReactNode;
12
+ /**
13
+ * Override or extend the styles applied to the component.
14
+ */
15
+ classes?: Partial<CardMediaClasses>;
16
+ /**
17
+ * Image to be displayed as a background image.
18
+ * Either `image` or `src` prop must be specified.
19
+ * Note that caller must specify height otherwise the image will not be visible.
20
+ */
21
+ image?: string;
22
+ /**
23
+ * An alias for `image` property.
24
+ * Available only with media components.
25
+ * Media components: `video`, `audio`, `picture`, `iframe`, `img`.
26
+ */
27
+ src?: string;
28
+ /**
29
+ * The system prop that allows defining system overrides as well as additional CSS styles.
30
+ */
31
+ sx?: SxProps<Theme>;
32
+ }
33
+
34
+ export interface CardMediaTypeMap<AdditionalProps, RootComponent extends React.ElementType> {
35
+ props: AdditionalProps & CardMediaOwnProps;
36
+ defaultComponent: RootComponent;
35
37
  }
36
38
 
37
39
  /**
package/Chip/Chip.d.ts CHANGED
@@ -11,91 +11,93 @@ export interface ChipPropsSizeOverrides {}
11
11
 
12
12
  export interface ChipPropsColorOverrides {}
13
13
 
14
+ export interface ChipOwnProps {
15
+ /**
16
+ * The Avatar element to display.
17
+ */
18
+ avatar?: React.ReactElement;
19
+ /**
20
+ * This prop isn't supported.
21
+ * Use the `component` prop if you need to change the children structure.
22
+ */
23
+ children?: null;
24
+ /**
25
+ * Override or extend the styles applied to the component.
26
+ */
27
+ classes?: Partial<ChipClasses>;
28
+ /**
29
+ * If `true`, the chip will appear clickable, and will raise when pressed,
30
+ * even if the onClick prop is not defined.
31
+ * If `false`, the chip will not appear clickable, even if onClick prop is defined.
32
+ * This can be used, for example,
33
+ * along with the component prop to indicate an anchor Chip is clickable.
34
+ * Note: this controls the UI and does not affect the onClick event.
35
+ */
36
+ clickable?: boolean;
37
+ /**
38
+ * The color of the component.
39
+ * It supports both default and custom theme colors, which can be added as shown in the
40
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
41
+ * @default 'default'
42
+ */
43
+ color?: OverridableStringUnion<
44
+ 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning',
45
+ ChipPropsColorOverrides
46
+ >;
47
+ /**
48
+ * Override the default delete icon element. Shown only if `onDelete` is set.
49
+ */
50
+ deleteIcon?: React.ReactElement;
51
+ /**
52
+ * If `true`, the component is disabled.
53
+ * @default false
54
+ */
55
+ disabled?: boolean;
56
+ /**
57
+ * Icon element.
58
+ */
59
+ icon?: React.ReactElement;
60
+ /**
61
+ * The content of the component.
62
+ */
63
+ label?: React.ReactNode;
64
+ /**
65
+ * Callback fired when the delete icon is clicked.
66
+ * If set, the delete icon will be shown.
67
+ */
68
+ onDelete?: React.EventHandler<any>;
69
+ /**
70
+ * The size of the component.
71
+ * @default 'medium'
72
+ */
73
+ size?: OverridableStringUnion<'small' | 'medium', ChipPropsSizeOverrides>;
74
+ /**
75
+ * If `true`, allows the disabled chip to escape focus.
76
+ * If `false`, allows the disabled chip to receive focus.
77
+ * @default false
78
+ */
79
+ skipFocusWhenDisabled?: boolean;
80
+ /**
81
+ * The system prop that allows defining system overrides as well as additional CSS styles.
82
+ */
83
+ sx?: SxProps<Theme>;
84
+ /**
85
+ * @ignore
86
+ */
87
+ tabIndex?: number;
88
+ /**
89
+ * The variant to use.
90
+ * @default 'filled'
91
+ */
92
+ variant?: OverridableStringUnion<'filled' | 'outlined', ChipPropsVariantOverrides>;
93
+ }
94
+
14
95
  export interface ChipTypeMap<
15
96
  AdditionalProps = {},
16
- DefaultComponent extends React.ElementType = 'div',
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]),
@@ -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
- DefaultComponent extends React.ElementType = 'div',
41
+ RootComponent extends React.ElementType = 'div',
10
42
  > {
11
- props: AdditionalProps & {
12
- children?: React.ReactNode;
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
- DefaultComponent extends React.ElementType = TypographyTypeMap['defaultComponent'],
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
- DefaultComponent extends React.ElementType = TypographyTypeMap['defaultComponent'],
25
+ RootComponent extends React.ElementType = TypographyTypeMap['defaultComponent'],
11
26
  > {
12
- props: AdditionalProps & {
13
- /**
14
- * The content of the component.
15
- */
16
- children?: React.ReactNode;
17
- /**
18
- * Override or extend the styles applied to the component.
19
- */
20
- classes?: Partial<DialogTitleClasses>;
21
- /**
22
- * The system prop that allows defining system overrides as well as additional CSS styles.
23
- */
24
- sx?: SxProps<Theme>;
25
- } & Omit<TypographyTypeMap['props'], 'classes'>;
26
- defaultComponent: DefaultComponent;
27
+ props: AdditionalProps & DialogTitleOwnProps;
28
+ defaultComponent: RootComponent;
27
29
  }
28
30
 
29
31
  /**
@@ -35,6 +37,7 @@ export interface DialogTitleTypeMap<
35
37
  * API:
36
38
  *
37
39
  * - [DialogTitle API](https://mui.com/material-ui/api/dialog-title/)
40
+ * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
38
41
  */
39
42
  declare const DialogTitle: OverridableComponent<DialogTitleTypeMap>;
40
43