@mui/material 5.7.0 → 5.8.2

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 (234) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/Alert.js +1 -0
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/Autocomplete.d.ts +23 -1
  10. package/Autocomplete/Autocomplete.js +3 -2
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  14. package/Backdrop/backdropClasses.d.ts +10 -10
  15. package/Badge/Badge.d.ts +1 -34
  16. package/Badge/badgeClasses.d.ts +56 -24
  17. package/BottomNavigation/BottomNavigation.js +0 -0
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  20. package/Box/Box.js +1 -1
  21. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  22. package/Button/buttonClasses.d.ts +76 -76
  23. package/ButtonBase/TouchRipple.js +5 -5
  24. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  25. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  26. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  27. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  28. package/CHANGELOG.md +201 -4
  29. package/Card/cardClasses.d.ts +8 -8
  30. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  31. package/CardActions/cardActionsClasses.d.ts +10 -10
  32. package/CardContent/cardContentClasses.d.ts +8 -8
  33. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  34. package/CardMedia/cardMediaClasses.d.ts +12 -12
  35. package/Checkbox/checkboxClasses.d.ts +18 -18
  36. package/Chip/chipClasses.d.ts +80 -80
  37. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  38. package/ClickAwayListener/index.d.ts +2 -2
  39. package/Collapse/collapseClasses.d.ts +18 -18
  40. package/Container/Container.js +17 -106
  41. package/Container/containerClasses.d.ts +6 -22
  42. package/Dialog/DialogContext.d.ts +6 -6
  43. package/Dialog/dialogClasses.d.ts +36 -36
  44. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  45. package/DialogContent/dialogContentClasses.d.ts +10 -10
  46. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  47. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  48. package/Divider/dividerClasses.d.ts +34 -34
  49. package/Drawer/drawerClasses.d.ts +30 -30
  50. package/Fab/Fab.js +3 -1
  51. package/Fab/fabClasses.d.ts +26 -26
  52. package/FilledInput/filledInputClasses.d.ts +40 -40
  53. package/FormControl/formControlClasses.d.ts +14 -14
  54. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  55. package/FormGroup/formGroupClasses.d.ts +12 -12
  56. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  57. package/FormLabel/formLabelClasses.d.ts +22 -22
  58. package/Grid/gridClasses.d.ts +48 -48
  59. package/Grow/Grow.js +4 -3
  60. package/Icon/iconClasses.d.ts +24 -24
  61. package/IconButton/iconButtonClasses.d.ts +26 -26
  62. package/ImageList/imageListClasses.d.ts +16 -16
  63. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  64. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  65. package/Input/inputClasses.d.ts +34 -34
  66. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  67. package/InputBase/inputBaseClasses.d.ts +44 -44
  68. package/InputLabel/InputLabel.d.ts +5 -0
  69. package/InputLabel/InputLabel.js +6 -0
  70. package/InputLabel/inputLabelClasses.d.ts +32 -32
  71. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  72. package/Link/linkClasses.d.ts +18 -18
  73. package/List/listClasses.d.ts +14 -14
  74. package/ListItem/listItemClasses.d.ts +30 -30
  75. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  76. package/ListItemButton/ListItemButton.js +7 -1
  77. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  78. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  79. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  80. package/ListItemText/listItemTextClasses.d.ts +18 -18
  81. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  82. package/Menu/menuClasses.d.ts +12 -12
  83. package/MenuItem/menuItemClasses.d.ts +20 -20
  84. package/MenuList/MenuList.d.ts +1 -1
  85. package/MenuList/MenuList.js +1 -1
  86. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  87. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  88. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  89. package/Pagination/paginationClasses.d.ts +14 -14
  90. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  91. package/Paper/Paper.js +20 -15
  92. package/Paper/index.d.ts +1 -1
  93. package/Paper/paperClasses.d.ts +39 -39
  94. package/Popover/popoverClasses.d.ts +10 -10
  95. package/Popper/Popper.d.ts +29 -29
  96. package/README.md +2 -1
  97. package/Radio/Radio.js +4 -4
  98. package/Radio/radioClasses.d.ts +16 -16
  99. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  100. package/RadioGroup/useRadioGroup.d.ts +4 -4
  101. package/Rating/ratingClasses.d.ts +40 -40
  102. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  103. package/Select/SelectInput.js +2 -2
  104. package/Select/selectClasses.d.ts +30 -30
  105. package/Skeleton/skeletonClasses.d.ts +24 -24
  106. package/Slider/Slider.js +1 -5
  107. package/Snackbar/snackbarClasses.d.ts +20 -20
  108. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  109. package/SpeedDial/speedDialClasses.d.ts +22 -22
  110. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  111. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  112. package/Step/StepContext.d.ts +20 -20
  113. package/Step/stepClasses.d.ts +16 -16
  114. package/StepButton/stepButtonClasses.d.ts +14 -14
  115. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  116. package/StepContent/stepContentClasses.d.ts +12 -12
  117. package/StepIcon/stepIconClasses.d.ts +16 -16
  118. package/StepLabel/stepLabelClasses.d.ts +28 -28
  119. package/Stepper/StepperContext.d.ts +18 -18
  120. package/Stepper/stepperClasses.d.ts +14 -14
  121. package/SvgIcon/svgIconClasses.d.ts +24 -24
  122. package/Switch/switchClasses.d.ts +32 -32
  123. package/Tab/tabClasses.d.ts +26 -26
  124. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  125. package/Table/tableClasses.d.ts +10 -10
  126. package/TableBody/tableBodyClasses.d.ts +8 -8
  127. package/TableCell/tableCellClasses.d.ts +32 -32
  128. package/TableContainer/tableContainerClasses.d.ts +8 -8
  129. package/TableFooter/tableFooterClasses.d.ts +8 -8
  130. package/TableHead/tableHeadClasses.d.ts +8 -8
  131. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  132. package/TableRow/tableRowClasses.d.ts +16 -16
  133. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  134. package/Tabs/Tabs.js +2 -2
  135. package/Tabs/tabsClasses.d.ts +32 -32
  136. package/TextField/textFieldClasses.d.ts +8 -8
  137. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  138. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  139. package/Toolbar/toolbarClasses.d.ts +14 -14
  140. package/Tooltip/tooltipClasses.d.ts +30 -30
  141. package/Typography/typographyClasses.d.ts +50 -50
  142. package/className/index.d.ts +1 -1
  143. package/className/index.js +1 -1
  144. package/darkScrollbar/index.d.ts +28 -28
  145. package/index.js +1 -1
  146. package/internal/switchBaseClasses.d.ts +12 -12
  147. package/legacy/Alert/Alert.js +1 -0
  148. package/legacy/Autocomplete/Autocomplete.js +3 -2
  149. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  150. package/legacy/Box/Box.js +1 -1
  151. package/legacy/ButtonBase/TouchRipple.js +5 -5
  152. package/legacy/Container/Container.js +18 -103
  153. package/legacy/Fab/Fab.js +3 -1
  154. package/legacy/Grow/Grow.js +4 -3
  155. package/legacy/InputLabel/InputLabel.js +6 -0
  156. package/legacy/ListItemButton/ListItemButton.js +7 -1
  157. package/legacy/MenuList/MenuList.js +1 -1
  158. package/legacy/Paper/Paper.js +10 -7
  159. package/legacy/Radio/Radio.js +4 -4
  160. package/legacy/Select/SelectInput.js +2 -2
  161. package/legacy/Slider/Slider.js +1 -10
  162. package/legacy/Tabs/Tabs.js +2 -2
  163. package/legacy/className/index.js +1 -1
  164. package/legacy/index.js +1 -1
  165. package/legacy/locale/index.js +22 -22
  166. package/legacy/styles/createMixins.js +5 -3
  167. package/legacy/styles/createTheme.js +1 -1
  168. package/legacy/styles/experimental_extendTheme.js +22 -3
  169. package/locale/index.d.ts +71 -71
  170. package/locale/index.js +22 -22
  171. package/modern/Alert/Alert.js +1 -0
  172. package/modern/Autocomplete/Autocomplete.js +3 -2
  173. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  174. package/modern/Box/Box.js +1 -1
  175. package/modern/ButtonBase/TouchRipple.js +5 -5
  176. package/modern/Container/Container.js +17 -106
  177. package/modern/Fab/Fab.js +3 -1
  178. package/modern/Grow/Grow.js +4 -3
  179. package/modern/InputLabel/InputLabel.js +6 -0
  180. package/modern/ListItemButton/ListItemButton.js +7 -1
  181. package/modern/MenuList/MenuList.js +1 -1
  182. package/modern/Paper/Paper.js +8 -7
  183. package/modern/Radio/Radio.js +4 -4
  184. package/modern/Select/SelectInput.js +2 -2
  185. package/modern/Slider/Slider.js +1 -5
  186. package/modern/Tabs/Tabs.js +2 -2
  187. package/modern/className/index.js +1 -1
  188. package/modern/index.js +1 -1
  189. package/modern/locale/index.js +22 -22
  190. package/modern/styles/createMixins.js +5 -3
  191. package/modern/styles/createTheme.js +1 -1
  192. package/modern/styles/experimental_extendTheme.js +18 -2
  193. package/node/Alert/Alert.js +1 -0
  194. package/node/Autocomplete/Autocomplete.js +4 -2
  195. package/node/BottomNavigation/BottomNavigation.js +0 -0
  196. package/node/Box/Box.js +2 -2
  197. package/node/ButtonBase/TouchRipple.js +5 -5
  198. package/node/Container/Container.js +17 -113
  199. package/node/Fab/Fab.js +3 -1
  200. package/node/Grow/Grow.js +4 -3
  201. package/node/InputLabel/InputLabel.js +6 -0
  202. package/node/ListItemButton/ListItemButton.js +7 -1
  203. package/node/MenuList/MenuList.js +1 -1
  204. package/node/Paper/Paper.js +22 -14
  205. package/node/Radio/Radio.js +4 -4
  206. package/node/Select/SelectInput.js +2 -2
  207. package/node/Slider/Slider.js +1 -5
  208. package/node/Tabs/Tabs.js +2 -2
  209. package/node/className/index.js +2 -2
  210. package/node/index.js +1 -1
  211. package/node/locale/index.js +22 -22
  212. package/node/styles/createMixins.js +5 -3
  213. package/node/styles/createTheme.js +1 -1
  214. package/node/styles/experimental_extendTheme.js +20 -3
  215. package/package.json +5 -6
  216. package/styles/createMixins.d.ts +2 -6
  217. package/styles/createMixins.js +5 -3
  218. package/styles/createPalette.d.ts +1 -1
  219. package/styles/createTheme.js +1 -1
  220. package/styles/experimental_extendTheme.d.ts +30 -0
  221. package/styles/experimental_extendTheme.js +19 -3
  222. package/styles/index.d.ts +1 -0
  223. package/transitions/index.d.ts +1 -1
  224. package/transitions/transition.d.ts +13 -13
  225. package/transitions/utils.d.ts +23 -23
  226. package/umd/material-ui.development.js +697 -585
  227. package/umd/material-ui.production.min.js +20 -20
  228. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  229. package/useTouchRipple/index.d.ts +1 -1
  230. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  231. package/utils/getScrollbarSize.d.ts +2 -2
  232. package/utils/ownerDocument.d.ts +2 -2
  233. package/utils/ownerWindow.d.ts +2 -2
  234. package/utils/setRef.d.ts +2 -2
@@ -1,18 +1,18 @@
1
- export interface AccordionClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `square={true}`. */
5
- rounded: string;
6
- /** State class applied to the root element if `expanded={true}`. */
7
- expanded: string;
8
- /** State class applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element unless `disableGutters={true}`. */
11
- gutters: string;
12
- /** Styles applied to the region element, the container of the children. */
13
- region: string;
14
- }
15
- export declare type AccordionClassKey = keyof AccordionClasses;
16
- export declare function getAccordionUtilityClass(slot: string): string;
17
- declare const accordionClasses: AccordionClasses;
18
- export default accordionClasses;
1
+ export interface AccordionClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `square={true}`. */
5
+ rounded: string;
6
+ /** State class applied to the root element if `expanded={true}`. */
7
+ expanded: string;
8
+ /** State class applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element unless `disableGutters={true}`. */
11
+ gutters: string;
12
+ /** Styles applied to the region element, the container of the children. */
13
+ region: string;
14
+ }
15
+ export declare type AccordionClassKey = keyof AccordionClasses;
16
+ export declare function getAccordionUtilityClass(slot: string): string;
17
+ declare const accordionClasses: AccordionClasses;
18
+ export default accordionClasses;
@@ -1,10 +1,10 @@
1
- export interface AccordionActionsClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `disableSpacing={true}`. */
5
- spacing: string;
6
- }
7
- export declare type AccordionActionsClassKey = keyof AccordionActionsClasses;
8
- export declare function getAccordionActionsUtilityClass(slot: string): string;
9
- declare const accordionActionsClasses: AccordionActionsClasses;
10
- export default accordionActionsClasses;
1
+ export interface AccordionActionsClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `disableSpacing={true}`. */
5
+ spacing: string;
6
+ }
7
+ export declare type AccordionActionsClassKey = keyof AccordionActionsClasses;
8
+ export declare function getAccordionActionsUtilityClass(slot: string): string;
9
+ declare const accordionActionsClasses: AccordionActionsClasses;
10
+ export default accordionActionsClasses;
@@ -1,8 +1,8 @@
1
- export interface AccordionDetailsClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type AccordionDetailsClassKey = keyof AccordionDetailsClasses;
6
- export declare function getAccordionDetailsUtilityClass(slot: string): string;
7
- declare const accordionDetailsClasses: AccordionDetailsClasses;
8
- export default accordionDetailsClasses;
1
+ export interface AccordionDetailsClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type AccordionDetailsClassKey = keyof AccordionDetailsClasses;
6
+ export declare function getAccordionDetailsUtilityClass(slot: string): string;
7
+ declare const accordionDetailsClasses: AccordionDetailsClasses;
8
+ export default accordionDetailsClasses;
@@ -1,22 +1,22 @@
1
- export interface AccordionSummaryClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
5
- expanded: string;
6
- /** State class applied to the ButtonBase root element if the button is keyboard focused. */
7
- focusVisible: string;
8
- /** State class applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element unless `disableGutters={true}`. */
11
- gutters: string;
12
- /** Styles applied to the children wrapper element unless `disableGutters={true}`. */
13
- contentGutters: string;
14
- /** Styles applied to the children wrapper element. */
15
- content: string;
16
- /** Styles applied to the `expandIcon`'s wrapper element. */
17
- expandIconWrapper: string;
18
- }
19
- export declare type AccordionSummaryClassKey = keyof AccordionSummaryClasses;
20
- export declare function getAccordionSummaryUtilityClass(slot: string): string;
21
- declare const accordionSummaryClasses: AccordionSummaryClasses;
22
- export default accordionSummaryClasses;
1
+ export interface AccordionSummaryClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
5
+ expanded: string;
6
+ /** State class applied to the ButtonBase root element if the button is keyboard focused. */
7
+ focusVisible: string;
8
+ /** State class applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element unless `disableGutters={true}`. */
11
+ gutters: string;
12
+ /** Styles applied to the children wrapper element unless `disableGutters={true}`. */
13
+ contentGutters: string;
14
+ /** Styles applied to the children wrapper element. */
15
+ content: string;
16
+ /** Styles applied to the `expandIcon`'s wrapper element. */
17
+ expandIconWrapper: string;
18
+ }
19
+ export declare type AccordionSummaryClassKey = keyof AccordionSummaryClasses;
20
+ export declare function getAccordionSummaryUtilityClass(slot: string): string;
21
+ declare const accordionSummaryClasses: AccordionSummaryClasses;
22
+ export default accordionSummaryClasses;
package/Alert/Alert.js CHANGED
@@ -164,6 +164,7 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
164
164
  className: classes.message,
165
165
  children: children
166
166
  }), action != null ? /*#__PURE__*/_jsx(AlertAction, {
167
+ ownerState: ownerState,
167
168
  className: classes.action,
168
169
  children: action
169
170
  }) : null, action == null && onClose ? /*#__PURE__*/_jsx(AlertAction, {
@@ -1,44 +1,44 @@
1
- export interface AlertClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="filled"`. */
5
- filled: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `variant="standard"`. */
9
- standard: string;
10
- /** Styles applied to the root element if `variant="standard"` and `color="success"`. */
11
- standardSuccess: string;
12
- /** Styles applied to the root element if `variant="standard"` and `color="info"`. */
13
- standardInfo: string;
14
- /** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
15
- standardWarning: string;
16
- /** Styles applied to the root element if `variant="standard"` and `color="error"`. */
17
- standardError: string;
18
- /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
19
- outlinedSuccess: string;
20
- /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
21
- outlinedInfo: string;
22
- /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
23
- outlinedWarning: string;
24
- /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
25
- outlinedError: string;
26
- /** Styles applied to the root element if `variant="filled"` and `color="success"`. */
27
- filledSuccess: string;
28
- /** Styles applied to the root element if `variant="filled"` and `color="info"`. */
29
- filledInfo: string;
30
- /** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
31
- filledWarning: string;
32
- /** Styles applied to the root element if `variant="filled"` and `color="error"`. */
33
- filledError: string;
34
- /** Styles applied to the icon wrapper element. */
35
- icon: string;
36
- /** Styles applied to the message wrapper element. */
37
- message: string;
38
- /** Styles applied to the action wrapper element if `action` is provided. */
39
- action: string;
40
- }
41
- export declare type AlertClassKey = keyof AlertClasses;
42
- export declare function getAlertUtilityClass(slot: string): string;
43
- declare const alertClasses: AlertClasses;
44
- export default alertClasses;
1
+ export interface AlertClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="filled"`. */
5
+ filled: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `variant="standard"`. */
9
+ standard: string;
10
+ /** Styles applied to the root element if `variant="standard"` and `color="success"`. */
11
+ standardSuccess: string;
12
+ /** Styles applied to the root element if `variant="standard"` and `color="info"`. */
13
+ standardInfo: string;
14
+ /** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
15
+ standardWarning: string;
16
+ /** Styles applied to the root element if `variant="standard"` and `color="error"`. */
17
+ standardError: string;
18
+ /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
19
+ outlinedSuccess: string;
20
+ /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
21
+ outlinedInfo: string;
22
+ /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
23
+ outlinedWarning: string;
24
+ /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
25
+ outlinedError: string;
26
+ /** Styles applied to the root element if `variant="filled"` and `color="success"`. */
27
+ filledSuccess: string;
28
+ /** Styles applied to the root element if `variant="filled"` and `color="info"`. */
29
+ filledInfo: string;
30
+ /** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
31
+ filledWarning: string;
32
+ /** Styles applied to the root element if `variant="filled"` and `color="error"`. */
33
+ filledError: string;
34
+ /** Styles applied to the icon wrapper element. */
35
+ icon: string;
36
+ /** Styles applied to the message wrapper element. */
37
+ message: string;
38
+ /** Styles applied to the action wrapper element if `action` is provided. */
39
+ action: string;
40
+ }
41
+ export declare type AlertClassKey = keyof AlertClasses;
42
+ export declare function getAlertUtilityClass(slot: string): string;
43
+ declare const alertClasses: AlertClasses;
44
+ export default alertClasses;
@@ -1,8 +1,8 @@
1
- export interface AlertTitleClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type AlertTitleClassKey = keyof AlertTitleClasses;
6
- export declare function getAlertTitleUtilityClass(slot: string): string;
7
- declare const alertTitleClasses: AlertTitleClasses;
8
- export default alertTitleClasses;
1
+ export interface AlertTitleClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type AlertTitleClassKey = keyof AlertTitleClasses;
6
+ export declare function getAlertTitleUtilityClass(slot: string): string;
7
+ declare const alertTitleClasses: AlertTitleClasses;
8
+ export default alertTitleClasses;
@@ -1,28 +1,28 @@
1
- export interface AppBarClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="fixed"`. */
5
- positionFixed: string;
6
- /** Styles applied to the root element if `position="absolute"`. */
7
- positionAbsolute: string;
8
- /** Styles applied to the root element if `position="sticky"`. */
9
- positionSticky: string;
10
- /** Styles applied to the root element if `position="static"`. */
11
- positionStatic: string;
12
- /** Styles applied to the root element if `position="relative"`. */
13
- positionRelative: string;
14
- /** Styles applied to the root element if `color="default"`. */
15
- colorDefault: string;
16
- /** Styles applied to the root element if `color="primary"`. */
17
- colorPrimary: string;
18
- /** Styles applied to the root element if `color="secondary"`. */
19
- colorSecondary: string;
20
- /** Styles applied to the root element if `color="inherit"`. */
21
- colorInherit: string;
22
- /** Styles applied to the root element if `color="transparent"`. */
23
- colorTransparent: string;
24
- }
25
- export declare type AppBarClassKey = keyof AppBarClasses;
26
- export declare function getAppBarUtilityClass(slot: string): string;
27
- declare const appBarClasses: AppBarClasses;
28
- export default appBarClasses;
1
+ export interface AppBarClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="fixed"`. */
5
+ positionFixed: string;
6
+ /** Styles applied to the root element if `position="absolute"`. */
7
+ positionAbsolute: string;
8
+ /** Styles applied to the root element if `position="sticky"`. */
9
+ positionSticky: string;
10
+ /** Styles applied to the root element if `position="static"`. */
11
+ positionStatic: string;
12
+ /** Styles applied to the root element if `position="relative"`. */
13
+ positionRelative: string;
14
+ /** Styles applied to the root element if `color="default"`. */
15
+ colorDefault: string;
16
+ /** Styles applied to the root element if `color="primary"`. */
17
+ colorPrimary: string;
18
+ /** Styles applied to the root element if `color="secondary"`. */
19
+ colorSecondary: string;
20
+ /** Styles applied to the root element if `color="inherit"`. */
21
+ colorInherit: string;
22
+ /** Styles applied to the root element if `color="transparent"`. */
23
+ colorTransparent: string;
24
+ }
25
+ export declare type AppBarClassKey = keyof AppBarClasses;
26
+ export declare function getAppBarUtilityClass(slot: string): string;
27
+ declare const appBarClasses: AppBarClasses;
28
+ export default appBarClasses;
@@ -24,6 +24,23 @@ export {
24
24
  createFilterOptions,
25
25
  };
26
26
 
27
+ export type AutocompleteOwnerState<
28
+ T,
29
+ Multiple extends boolean | undefined,
30
+ DisableClearable extends boolean | undefined,
31
+ FreeSolo extends boolean | undefined,
32
+ ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent'],
33
+ > = AutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent> & {
34
+ disablePortal: boolean;
35
+ focused: boolean;
36
+ fullWidth: boolean;
37
+ hasClearIcon: boolean;
38
+ hasPopupIcon: boolean;
39
+ inputFocused: boolean;
40
+ popupOpen: boolean;
41
+ size: OverridableStringUnion<'small' | 'medium', AutocompletePropsSizeOverrides>;
42
+ };
43
+
27
44
  export type AutocompleteRenderGetTagProps = ({ index }: { index: number }) => {
28
45
  key: number;
29
46
  className: string;
@@ -226,9 +243,14 @@ export interface AutocompleteProps<
226
243
  *
227
244
  * @param {T[]} value The `value` provided to the component.
228
245
  * @param {function} getTagProps A tag props getter.
246
+ * @param {object} ownerState The state of the Autocomplete component.
229
247
  * @returns {ReactNode}
230
248
  */
231
- renderTags?: (value: T[], getTagProps: AutocompleteRenderGetTagProps) => React.ReactNode;
249
+ renderTags?: (
250
+ value: T[],
251
+ getTagProps: AutocompleteRenderGetTagProps,
252
+ ownerState: AutocompleteOwnerState<T, Multiple, DisableClearable, FreeSolo, ChipComponent>,
253
+ ) => React.ReactNode;
232
254
  /**
233
255
  * The size of the component.
234
256
  * @default 'medium'
@@ -439,7 +439,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
439
439
  componentName: 'Autocomplete'
440
440
  }));
441
441
  const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
442
- const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
442
+ const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
443
443
 
444
444
  const ownerState = _extends({}, props, {
445
445
  disablePortal,
@@ -462,7 +462,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
462
462
  }, getTagProps(params));
463
463
 
464
464
  if (renderTags) {
465
- startAdornment = renderTags(value, getCustomizedTagProps);
465
+ startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
466
466
  } else {
467
467
  startAdornment = value.map((option, index) => /*#__PURE__*/_jsx(Chip, _extends({
468
468
  label: getOptionLabel(option),
@@ -1039,6 +1039,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1039
1039
  *
1040
1040
  * @param {T[]} value The `value` provided to the component.
1041
1041
  * @param {function} getTagProps A tag props getter.
1042
+ * @param {object} ownerState The state of the Autocomplete component.
1042
1043
  * @returns {ReactNode}
1043
1044
  */
1044
1045
  renderTags: PropTypes.func,
@@ -1,54 +1,54 @@
1
- export interface AutocompleteClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `fullWidth={true}`. */
5
- fullWidth: string;
6
- /** State class applied to the root element if focused. */
7
- focused: string;
8
- /** Styles applied to the tag elements, e.g. the chips. */
9
- tag: string;
10
- /** Styles applied to the tag elements, e.g. the chips if `size="small"`. */
11
- tagSizeSmall: string;
12
- /** Styles applied to the tag elements, e.g. the chips if `size="medium"`. */
13
- tagSizeMedium: string;
14
- /** Styles applied when the popup icon is rendered. */
15
- hasPopupIcon: string;
16
- /** Styles applied when the clear icon is rendered. */
17
- hasClearIcon: string;
18
- /** Styles applied to the Input element. */
19
- inputRoot: string;
20
- /** Styles applied to the input element. */
21
- input: string;
22
- /** Styles applied to the input element if tag focused. */
23
- inputFocused: string;
24
- /** Styles applied to the endAdornment element. */
25
- endAdornment: string;
26
- /** Styles applied to the clear indicator. */
27
- clearIndicator: string;
28
- /** Styles applied to the popup indicator. */
29
- popupIndicator: string;
30
- /** Styles applied to the popup indicator if the popup is open. */
31
- popupIndicatorOpen: string;
32
- /** Styles applied to the popper element. */
33
- popper: string;
34
- /** Styles applied to the popper element if `disablePortal={true}`. */
35
- popperDisablePortal: string;
36
- /** Styles applied to the Paper component. */
37
- paper: string;
38
- /** Styles applied to the listbox component. */
39
- listbox: string;
40
- /** Styles applied to the loading wrapper. */
41
- loading: string;
42
- /** Styles applied to the no option wrapper. */
43
- noOptions: string;
44
- /** Styles applied to the option elements. */
45
- option: string;
46
- /** Styles applied to the group's label elements. */
47
- groupLabel: string;
48
- /** Styles applied to the group's ul elements. */
49
- groupUl: string;
50
- }
51
- export declare type AutocompleteClassKey = keyof AutocompleteClasses;
52
- export declare function getAutocompleteUtilityClass(slot: string): string;
53
- declare const autocompleteClasses: AutocompleteClasses;
54
- export default autocompleteClasses;
1
+ export interface AutocompleteClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `fullWidth={true}`. */
5
+ fullWidth: string;
6
+ /** State class applied to the root element if focused. */
7
+ focused: string;
8
+ /** Styles applied to the tag elements, e.g. the chips. */
9
+ tag: string;
10
+ /** Styles applied to the tag elements, e.g. the chips if `size="small"`. */
11
+ tagSizeSmall: string;
12
+ /** Styles applied to the tag elements, e.g. the chips if `size="medium"`. */
13
+ tagSizeMedium: string;
14
+ /** Styles applied when the popup icon is rendered. */
15
+ hasPopupIcon: string;
16
+ /** Styles applied when the clear icon is rendered. */
17
+ hasClearIcon: string;
18
+ /** Styles applied to the Input element. */
19
+ inputRoot: string;
20
+ /** Styles applied to the input element. */
21
+ input: string;
22
+ /** Styles applied to the input element if tag focused. */
23
+ inputFocused: string;
24
+ /** Styles applied to the endAdornment element. */
25
+ endAdornment: string;
26
+ /** Styles applied to the clear indicator. */
27
+ clearIndicator: string;
28
+ /** Styles applied to the popup indicator. */
29
+ popupIndicator: string;
30
+ /** Styles applied to the popup indicator if the popup is open. */
31
+ popupIndicatorOpen: string;
32
+ /** Styles applied to the popper element. */
33
+ popper: string;
34
+ /** Styles applied to the popper element if `disablePortal={true}`. */
35
+ popperDisablePortal: string;
36
+ /** Styles applied to the Paper component. */
37
+ paper: string;
38
+ /** Styles applied to the listbox component. */
39
+ listbox: string;
40
+ /** Styles applied to the loading wrapper. */
41
+ loading: string;
42
+ /** Styles applied to the no option wrapper. */
43
+ noOptions: string;
44
+ /** Styles applied to the option elements. */
45
+ option: string;
46
+ /** Styles applied to the group's label elements. */
47
+ groupLabel: string;
48
+ /** Styles applied to the group's ul elements. */
49
+ groupUl: string;
50
+ }
51
+ export declare type AutocompleteClassKey = keyof AutocompleteClasses;
52
+ export declare function getAutocompleteUtilityClass(slot: string): string;
53
+ declare const autocompleteClasses: AutocompleteClasses;
54
+ export default autocompleteClasses;
@@ -1,20 +1,20 @@
1
- export interface AvatarClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if not `src` or `srcSet`. */
5
- colorDefault: string;
6
- /** Styles applied to the root element if `variant="circular"`. */
7
- circular: string;
8
- /** Styles applied to the root element if `variant="rounded"`. */
9
- rounded: string;
10
- /** Styles applied to the root element if `variant="square"`. */
11
- square: string;
12
- /** Styles applied to the img element if either `src` or `srcSet` is defined. */
13
- img: string;
14
- /** Styles applied to the fallback icon */
15
- fallback: string;
16
- }
17
- export declare type AvatarClassKey = keyof AvatarClasses;
18
- export declare function getAvatarUtilityClass(slot: string): string;
19
- declare const avatarClasses: AvatarClasses;
20
- export default avatarClasses;
1
+ export interface AvatarClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if not `src` or `srcSet`. */
5
+ colorDefault: string;
6
+ /** Styles applied to the root element if `variant="circular"`. */
7
+ circular: string;
8
+ /** Styles applied to the root element if `variant="rounded"`. */
9
+ rounded: string;
10
+ /** Styles applied to the root element if `variant="square"`. */
11
+ square: string;
12
+ /** Styles applied to the img element if either `src` or `srcSet` is defined. */
13
+ img: string;
14
+ /** Styles applied to the fallback icon */
15
+ fallback: string;
16
+ }
17
+ export declare type AvatarClassKey = keyof AvatarClasses;
18
+ export declare function getAvatarUtilityClass(slot: string): string;
19
+ declare const avatarClasses: AvatarClasses;
20
+ export default avatarClasses;
@@ -1,10 +1,10 @@
1
- export interface AvatarGroupClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the avatar elements. */
5
- avatar: string;
6
- }
7
- export declare type AvatarGroupClassKey = keyof AvatarGroupClasses;
8
- export declare function getAvatarGroupUtilityClass(slot: string): string;
9
- declare const avatarGroupClasses: AvatarGroupClasses;
10
- export default avatarGroupClasses;
1
+ export interface AvatarGroupClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the avatar elements. */
5
+ avatar: string;
6
+ }
7
+ export declare type AvatarGroupClassKey = keyof AvatarGroupClasses;
8
+ export declare function getAvatarGroupUtilityClass(slot: string): string;
9
+ declare const avatarGroupClasses: AvatarGroupClasses;
10
+ export default avatarGroupClasses;
@@ -1,10 +1,10 @@
1
- export interface BackdropClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `invisible={true}`. */
5
- invisible: string;
6
- }
7
- export declare type BackdropClassKey = keyof BackdropClasses;
8
- export declare function getBackdropUtilityClass(slot: string): string;
9
- declare const backdropClasses: BackdropClasses;
10
- export default backdropClasses;
1
+ export interface BackdropClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `invisible={true}`. */
5
+ invisible: string;
6
+ }
7
+ export declare type BackdropClassKey = keyof BackdropClasses;
8
+ export declare function getBackdropUtilityClass(slot: string): string;
9
+ declare const backdropClasses: BackdropClasses;
10
+ export default backdropClasses;
package/Badge/Badge.d.ts CHANGED
@@ -31,40 +31,7 @@ export type BadgeTypeMap<
31
31
  /**
32
32
  * Override or extend the styles applied to the component.
33
33
  */
34
- classes?: Partial<BadgeClasses> & {
35
- /** Styles applied to the badge `span` element if `color="primary"`. */
36
- colorPrimary?: string;
37
- /** Styles applied to the badge `span` element if `color="secondary"`. */
38
- colorSecondary?: string;
39
- /** Styles applied to the badge `span` element if `color="error"`. */
40
- colorError?: string;
41
- /** Styles applied to the badge `span` element if `color="info"`. */
42
- colorInfo?: string;
43
- /** Styles applied to the badge `span` element if `color="success"`. */
44
- colorSuccess?: string;
45
- /** Styles applied to the badge `span` element if `color="warning"`. */
46
- colorWarning?: string;
47
- /** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangular"`. */
48
- anchorOriginTopRightRectangular?: string;
49
- /** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangular"`. */
50
- anchorOriginBottomRightRectangular?: string;
51
- /** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangular"`. */
52
- anchorOriginTopLeftRectangular?: string;
53
- /** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangular"`. */
54
- anchorOriginBottomLeftRectangular?: string;
55
- /** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="circular"`. */
56
- anchorOriginTopRightCircular?: string;
57
- /** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circular"`. */
58
- anchorOriginBottomRightCircular?: string;
59
- /** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="circular"`. */
60
- anchorOriginTopLeftCircular?: string;
61
- /** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circular"`. */
62
- anchorOriginBottomLeftCircular?: string;
63
- /** Class name applied to the badge `span` element if `overlap="rectangular"`. */
64
- overlapRectangular?: string;
65
- /** Class name applied to the badge `span` element if `overlap="circular"`. */
66
- overlapCircular?: string;
67
- };
34
+ classes?: Partial<BadgeClasses>;
68
35
  /**
69
36
  * @ignore
70
37
  */