@mui/material 5.6.1 → 5.6.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 (207) 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/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/AppBar.d.ts +1 -1
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/Autocomplete.js +2 -0
  10. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/Backdrop/backdropClasses.d.ts +10 -10
  14. package/Badge/Badge.js +7 -5
  15. package/Badge/badgeClasses.d.ts +24 -24
  16. package/BottomNavigation/BottomNavigation.d.ts +1 -1
  17. package/BottomNavigation/BottomNavigation.js +0 -0
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/BottomNavigationAction.d.ts +1 -1
  20. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  21. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  22. package/Button/Button.d.ts +1 -1
  23. package/Button/buttonClasses.d.ts +76 -76
  24. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  25. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  26. package/ButtonGroup/ButtonGroup.d.ts +1 -1
  27. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  28. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  29. package/CHANGELOG.md +61 -2
  30. package/Card/cardClasses.d.ts +8 -8
  31. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  32. package/CardActions/cardActionsClasses.d.ts +10 -10
  33. package/CardContent/cardContentClasses.d.ts +8 -8
  34. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  35. package/CardMedia/cardMediaClasses.d.ts +12 -12
  36. package/Checkbox/Checkbox.d.ts +1 -1
  37. package/Checkbox/checkboxClasses.d.ts +18 -18
  38. package/Chip/chipClasses.d.ts +80 -80
  39. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  40. package/ClickAwayListener/index.d.ts +2 -2
  41. package/Collapse/collapseClasses.d.ts +18 -18
  42. package/Container/containerClasses.d.ts +22 -22
  43. package/CssBaseline/CssBaseline.d.ts +1 -1
  44. package/Dialog/Dialog.d.ts +1 -0
  45. package/Dialog/Dialog.js +1 -0
  46. package/Dialog/DialogContext.d.ts +6 -6
  47. package/Dialog/dialogClasses.d.ts +36 -36
  48. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  49. package/DialogContent/dialogContentClasses.d.ts +10 -10
  50. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  51. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  52. package/Divider/dividerClasses.d.ts +34 -34
  53. package/Drawer/drawerClasses.d.ts +30 -30
  54. package/Fab/Fab.d.ts +1 -1
  55. package/Fab/fabClasses.d.ts +26 -26
  56. package/FilledInput/FilledInput.d.ts +1 -1
  57. package/FilledInput/FilledInput.js +3 -1
  58. package/FilledInput/filledInputClasses.d.ts +40 -40
  59. package/FormControl/FormControl.d.ts +2 -2
  60. package/FormControl/formControlClasses.d.ts +14 -14
  61. package/FormControlLabel/FormControlLabel.d.ts +1 -1
  62. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  63. package/FormGroup/formGroupClasses.d.ts +12 -12
  64. package/FormHelperText/FormHelperText.d.ts +1 -1
  65. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  66. package/FormLabel/FormLabel.d.ts +1 -1
  67. package/FormLabel/formLabelClasses.d.ts +22 -22
  68. package/GlobalStyles/GlobalStyles.d.ts +1 -1
  69. package/Grid/gridClasses.d.ts +48 -48
  70. package/Icon/Icon.d.ts +1 -1
  71. package/Icon/iconClasses.d.ts +24 -24
  72. package/IconButton/iconButtonClasses.d.ts +26 -26
  73. package/ImageList/ImageList.d.ts +1 -1
  74. package/ImageList/imageListClasses.d.ts +16 -16
  75. package/ImageListItem/ImageListItem.d.ts +1 -1
  76. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  77. package/ImageListItemBar/ImageListItemBar.d.ts +1 -1
  78. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  79. package/Input/Input.d.ts +1 -1
  80. package/Input/Input.js +3 -1
  81. package/Input/inputClasses.d.ts +34 -34
  82. package/InputAdornment/InputAdornment.d.ts +1 -1
  83. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  84. package/InputBase/InputBase.d.ts +1 -1
  85. package/InputBase/inputBaseClasses.d.ts +44 -44
  86. package/InputLabel/InputLabel.d.ts +1 -1
  87. package/InputLabel/inputLabelClasses.d.ts +32 -32
  88. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  89. package/Link/linkClasses.d.ts +18 -18
  90. package/List/List.d.ts +1 -1
  91. package/List/listClasses.d.ts +14 -14
  92. package/ListItem/ListItem.d.ts +1 -1
  93. package/ListItem/listItemClasses.d.ts +30 -30
  94. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  95. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  96. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  97. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  98. package/ListItemText/listItemTextClasses.d.ts +18 -18
  99. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  100. package/Menu/Menu.d.ts +1 -1
  101. package/Menu/menuClasses.d.ts +12 -12
  102. package/MenuItem/menuItemClasses.d.ts +20 -20
  103. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  104. package/Modal/Modal.js +1 -0
  105. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  106. package/OutlinedInput/OutlinedInput.d.ts +1 -1
  107. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  108. package/Pagination/paginationClasses.d.ts +14 -14
  109. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  110. package/Paper/paperClasses.d.ts +39 -39
  111. package/Popover/popoverClasses.d.ts +10 -10
  112. package/Popper/Popper.d.ts +29 -29
  113. package/README.md +0 -1
  114. package/Radio/Radio.d.ts +1 -1
  115. package/Radio/radioClasses.d.ts +16 -16
  116. package/RadioGroup/RadioGroup.d.ts +1 -1
  117. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  118. package/RadioGroup/useRadioGroup.d.ts +4 -4
  119. package/Rating/ratingClasses.d.ts +40 -40
  120. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
  121. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  122. package/Select/selectClasses.d.ts +30 -30
  123. package/Skeleton/skeletonClasses.d.ts +24 -24
  124. package/Snackbar/snackbarClasses.d.ts +20 -20
  125. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  126. package/SpeedDial/SpeedDial.d.ts +1 -1
  127. package/SpeedDial/speedDialClasses.d.ts +22 -22
  128. package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
  129. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  130. package/SpeedDialIcon/SpeedDialIcon.d.ts +1 -1
  131. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  132. package/Step/StepContext.d.ts +20 -20
  133. package/Step/stepClasses.d.ts +16 -16
  134. package/StepButton/stepButtonClasses.d.ts +14 -14
  135. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  136. package/StepContent/stepContentClasses.d.ts +12 -12
  137. package/StepIcon/stepIconClasses.d.ts +16 -16
  138. package/StepLabel/stepLabelClasses.d.ts +28 -28
  139. package/Stepper/stepperClasses.d.ts +14 -14
  140. package/SvgIcon/SvgIcon.d.ts +1 -1
  141. package/SvgIcon/svgIconClasses.d.ts +24 -24
  142. package/Switch/Switch.d.ts +1 -1
  143. package/Switch/switchClasses.d.ts +32 -32
  144. package/Tab/tabClasses.d.ts +26 -26
  145. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  146. package/Table/tableClasses.d.ts +10 -10
  147. package/TableBody/tableBodyClasses.d.ts +8 -8
  148. package/TableCell/tableCellClasses.d.ts +32 -32
  149. package/TableContainer/tableContainerClasses.d.ts +8 -8
  150. package/TableFooter/tableFooterClasses.d.ts +8 -8
  151. package/TableHead/tableHeadClasses.d.ts +8 -8
  152. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  153. package/TableRow/tableRowClasses.d.ts +16 -16
  154. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  155. package/Tabs/tabsClasses.d.ts +32 -32
  156. package/TextField/TextField.d.ts +1 -1
  157. package/TextField/textFieldClasses.d.ts +8 -8
  158. package/ToggleButton/ToggleButton.d.ts +1 -1
  159. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  160. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  161. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  162. package/Toolbar/Toolbar.d.ts +1 -1
  163. package/Toolbar/toolbarClasses.d.ts +14 -14
  164. package/Tooltip/tooltipClasses.d.ts +30 -30
  165. package/Typography/typographyClasses.d.ts +50 -50
  166. package/className/index.d.ts +8 -8
  167. package/darkScrollbar/index.d.ts +28 -28
  168. package/index.js +1 -1
  169. package/internal/switchBaseClasses.d.ts +12 -12
  170. package/legacy/Autocomplete/Autocomplete.js +2 -0
  171. package/legacy/Badge/Badge.js +7 -5
  172. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  173. package/legacy/Dialog/Dialog.js +1 -0
  174. package/legacy/FilledInput/FilledInput.js +3 -1
  175. package/legacy/Input/Input.js +3 -1
  176. package/legacy/Modal/Modal.js +1 -0
  177. package/legacy/index.js +1 -1
  178. package/locale/index.d.ts +71 -71
  179. package/modern/Autocomplete/Autocomplete.js +2 -0
  180. package/modern/Badge/Badge.js +7 -5
  181. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  182. package/modern/Dialog/Dialog.js +1 -0
  183. package/modern/FilledInput/FilledInput.js +3 -1
  184. package/modern/Input/Input.js +3 -1
  185. package/modern/Modal/Modal.js +1 -0
  186. package/modern/index.js +1 -1
  187. package/node/Autocomplete/Autocomplete.js +2 -0
  188. package/node/Badge/Badge.js +8 -5
  189. package/node/BottomNavigation/BottomNavigation.js +0 -0
  190. package/node/Dialog/Dialog.js +1 -0
  191. package/node/FilledInput/FilledInput.js +3 -1
  192. package/node/Input/Input.js +3 -1
  193. package/node/Modal/Modal.js +1 -0
  194. package/node/index.js +1 -1
  195. package/package.json +4 -4
  196. package/transitions/index.d.ts +1 -1
  197. package/transitions/transition.d.ts +13 -13
  198. package/transitions/utils.d.ts +23 -23
  199. package/umd/material-ui.development.js +76 -57
  200. package/umd/material-ui.production.min.js +4 -4
  201. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  202. package/useTouchRipple/index.d.ts +1 -1
  203. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  204. package/utils/getScrollbarSize.d.ts +2 -2
  205. package/utils/ownerDocument.d.ts +2 -2
  206. package/utils/ownerWindow.d.ts +2 -2
  207. package/utils/setRef.d.ts +2 -2
@@ -1,24 +1,24 @@
1
- export interface ToggleButtonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `disabled={true}`. */
5
- disabled: string;
6
- /** State class applied to the root element if `selected={true}`. */
7
- selected: string;
8
- /** State class applied to the root element if `color="standard"`. */
9
- standard: string;
10
- /** State class applied to the root element if `color="primary"`. */
11
- primary: string;
12
- /** State class applied to the root element if `color="secondary"`. */
13
- secondary: string;
14
- /** Styles applied to the root element if `size="small"`. */
15
- sizeSmall: string;
16
- /** Styles applied to the root element if `size="medium"`. */
17
- sizeMedium: string;
18
- /** Styles applied to the root element if `size="large"`. */
19
- sizeLarge: string;
20
- }
21
- export declare type ToggleButtonClassKey = keyof ToggleButtonClasses;
22
- export declare function getToggleButtonUtilityClass(slot: string): string;
23
- declare const toggleButtonClasses: ToggleButtonClasses;
24
- export default toggleButtonClasses;
1
+ export interface ToggleButtonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `disabled={true}`. */
5
+ disabled: string;
6
+ /** State class applied to the root element if `selected={true}`. */
7
+ selected: string;
8
+ /** State class applied to the root element if `color="standard"`. */
9
+ standard: string;
10
+ /** State class applied to the root element if `color="primary"`. */
11
+ primary: string;
12
+ /** State class applied to the root element if `color="secondary"`. */
13
+ secondary: string;
14
+ /** Styles applied to the root element if `size="small"`. */
15
+ sizeSmall: string;
16
+ /** Styles applied to the root element if `size="medium"`. */
17
+ sizeMedium: string;
18
+ /** Styles applied to the root element if `size="large"`. */
19
+ sizeLarge: string;
20
+ }
21
+ export declare type ToggleButtonClassKey = keyof ToggleButtonClasses;
22
+ export declare function getToggleButtonUtilityClass(slot: string): string;
23
+ declare const toggleButtonClasses: ToggleButtonClasses;
24
+ export default toggleButtonClasses;
@@ -80,7 +80,7 @@ export interface ToggleButtonGroupProps
80
80
  *
81
81
  * Demos:
82
82
  *
83
- * - [Toggle Button](https://mui.com/material-ui/react-toggle-button/)
83
+ * - [Toggle button](https://mui.com/material-ui/react-toggle-button/)
84
84
  *
85
85
  * API:
86
86
  *
@@ -1,18 +1,18 @@
1
- export interface ToggleButtonGroupClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="vertical"`. */
5
- vertical: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- /** Styles applied to the children. */
9
- grouped: string;
10
- /** Styles applied to the children if `orientation="horizontal"`. */
11
- groupedHorizontal: string;
12
- /** Styles applied to the children if `orientation="vertical"`. */
13
- groupedVertical: string;
14
- }
15
- export declare type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
16
- export declare function getToggleButtonGroupUtilityClass(slot: string): string;
17
- declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
18
- export default toggleButtonGroupClasses;
1
+ export interface ToggleButtonGroupClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="vertical"`. */
5
+ vertical: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ /** Styles applied to the children. */
9
+ grouped: string;
10
+ /** Styles applied to the children if `orientation="horizontal"`. */
11
+ groupedHorizontal: string;
12
+ /** Styles applied to the children if `orientation="vertical"`. */
13
+ groupedVertical: string;
14
+ }
15
+ export declare type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
16
+ export declare function getToggleButtonGroupUtilityClass(slot: string): string;
17
+ declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
18
+ export default toggleButtonGroupClasses;
@@ -39,7 +39,7 @@ export interface ToolbarTypeMap<P = {}, D extends React.ElementType = 'div'> {
39
39
  *
40
40
  * Demos:
41
41
  *
42
- * - [App Bar](https://mui.com/material-ui/react-app-bar/)
42
+ * - [App bar](https://mui.com/material-ui/react-app-bar/)
43
43
  *
44
44
  * API:
45
45
  *
@@ -1,14 +1,14 @@
1
- export interface ToolbarClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `disableGutters={true}`. */
5
- gutters: string;
6
- /** Styles applied to the root element if `variant="regular"`. */
7
- regular: string;
8
- /** Styles applied to the root element if `variant="dense"`. */
9
- dense: string;
10
- }
11
- export declare type ToolbarClassKey = keyof ToolbarClasses;
12
- export declare function getToolbarUtilityClass(slot: string): string;
13
- declare const toolbarClasses: ToolbarClasses;
14
- export default toolbarClasses;
1
+ export interface ToolbarClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `disableGutters={true}`. */
5
+ gutters: string;
6
+ /** Styles applied to the root element if `variant="regular"`. */
7
+ regular: string;
8
+ /** Styles applied to the root element if `variant="dense"`. */
9
+ dense: string;
10
+ }
11
+ export declare type ToolbarClassKey = keyof ToolbarClasses;
12
+ export declare function getToolbarUtilityClass(slot: string): string;
13
+ declare const toolbarClasses: ToolbarClasses;
14
+ export default toolbarClasses;
@@ -1,30 +1,30 @@
1
- export interface TooltipClasses {
2
- /** Styles applied to the Popper component. */
3
- popper: string;
4
- /** Styles applied to the Popper component unless `disableInteractive={true}`. */
5
- popperInteractive: string;
6
- /** Styles applied to the Popper component if `arrow={true}`. */
7
- popperArrow: string;
8
- /** Styles applied to the Popper component unless the tooltip is open. */
9
- popperClose: string;
10
- /** Styles applied to the tooltip (label wrapper) element. */
11
- tooltip: string;
12
- /** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
13
- tooltipArrow: string;
14
- /** Styles applied to the arrow element. */
15
- arrow: string;
16
- /** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
17
- touch: string;
18
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
19
- tooltipPlacementLeft: string;
20
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
21
- tooltipPlacementRight: string;
22
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
23
- tooltipPlacementTop: string;
24
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
25
- tooltipPlacementBottom: string;
26
- }
27
- export declare type TooltipClassKey = keyof TooltipClasses;
28
- export declare function getTooltipUtilityClass(slot: string): string;
29
- declare const tooltipClasses: TooltipClasses;
30
- export default tooltipClasses;
1
+ export interface TooltipClasses {
2
+ /** Styles applied to the Popper component. */
3
+ popper: string;
4
+ /** Styles applied to the Popper component unless `disableInteractive={true}`. */
5
+ popperInteractive: string;
6
+ /** Styles applied to the Popper component if `arrow={true}`. */
7
+ popperArrow: string;
8
+ /** Styles applied to the Popper component unless the tooltip is open. */
9
+ popperClose: string;
10
+ /** Styles applied to the tooltip (label wrapper) element. */
11
+ tooltip: string;
12
+ /** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
13
+ tooltipArrow: string;
14
+ /** Styles applied to the arrow element. */
15
+ arrow: string;
16
+ /** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
17
+ touch: string;
18
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
19
+ tooltipPlacementLeft: string;
20
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
21
+ tooltipPlacementRight: string;
22
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
23
+ tooltipPlacementTop: string;
24
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
25
+ tooltipPlacementBottom: string;
26
+ }
27
+ export declare type TooltipClassKey = keyof TooltipClasses;
28
+ export declare function getTooltipUtilityClass(slot: string): string;
29
+ declare const tooltipClasses: TooltipClasses;
30
+ export default tooltipClasses;
@@ -1,50 +1,50 @@
1
- export interface TypographyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="body2"`. */
5
- body2: string;
6
- /** Styles applied to the root element if `variant="body1"`. */
7
- body1: string;
8
- /** Styles applied to the root element if `variant="caption"`. */
9
- caption: string;
10
- /** Styles applied to the root element if `variant="button"`. */
11
- button: string;
12
- /** Styles applied to the root element if `variant="h1"`. */
13
- h1: string;
14
- /** Styles applied to the root element if `variant="h2"`. */
15
- h2: string;
16
- /** Styles applied to the root element if `variant="h3"`. */
17
- h3: string;
18
- /** Styles applied to the root element if `variant="h4"`. */
19
- h4: string;
20
- /** Styles applied to the root element if `variant="h5"`. */
21
- h5: string;
22
- /** Styles applied to the root element if `variant="h6"`. */
23
- h6: string;
24
- /** Styles applied to the root element if `variant="subtitle1"`. */
25
- subtitle1: string;
26
- /** Styles applied to the root element if `variant="subtitle2"`. */
27
- subtitle2: string;
28
- /** Styles applied to the root element if `variant="overline"`. */
29
- overline: string;
30
- /** Styles applied to the root element if `variant="inherit"`. */
31
- inherit: string;
32
- /** Styles applied to the root element if `align="left"`. */
33
- alignLeft: string;
34
- /** Styles applied to the root element if `align="center"`. */
35
- alignCenter: string;
36
- /** Styles applied to the root element if `align="right"`. */
37
- alignRight: string;
38
- /** Styles applied to the root element if `align="justify"`. */
39
- alignJustify: string;
40
- /** Styles applied to the root element if `nowrap={true}`. */
41
- noWrap: string;
42
- /** Styles applied to the root element if `gutterBottom={true}`. */
43
- gutterBottom: string;
44
- /** Styles applied to the root element if `paragraph={true}`. */
45
- paragraph: string;
46
- }
47
- export declare type TypographyClassKey = keyof TypographyClasses;
48
- export declare function getTypographyUtilityClass(slot: string): string;
49
- declare const typographyClasses: TypographyClasses;
50
- export default typographyClasses;
1
+ export interface TypographyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="body2"`. */
5
+ body2: string;
6
+ /** Styles applied to the root element if `variant="body1"`. */
7
+ body1: string;
8
+ /** Styles applied to the root element if `variant="caption"`. */
9
+ caption: string;
10
+ /** Styles applied to the root element if `variant="button"`. */
11
+ button: string;
12
+ /** Styles applied to the root element if `variant="h1"`. */
13
+ h1: string;
14
+ /** Styles applied to the root element if `variant="h2"`. */
15
+ h2: string;
16
+ /** Styles applied to the root element if `variant="h3"`. */
17
+ h3: string;
18
+ /** Styles applied to the root element if `variant="h4"`. */
19
+ h4: string;
20
+ /** Styles applied to the root element if `variant="h5"`. */
21
+ h5: string;
22
+ /** Styles applied to the root element if `variant="h6"`. */
23
+ h6: string;
24
+ /** Styles applied to the root element if `variant="subtitle1"`. */
25
+ subtitle1: string;
26
+ /** Styles applied to the root element if `variant="subtitle2"`. */
27
+ subtitle2: string;
28
+ /** Styles applied to the root element if `variant="overline"`. */
29
+ overline: string;
30
+ /** Styles applied to the root element if `variant="inherit"`. */
31
+ inherit: string;
32
+ /** Styles applied to the root element if `align="left"`. */
33
+ alignLeft: string;
34
+ /** Styles applied to the root element if `align="center"`. */
35
+ alignCenter: string;
36
+ /** Styles applied to the root element if `align="right"`. */
37
+ alignRight: string;
38
+ /** Styles applied to the root element if `align="justify"`. */
39
+ alignJustify: string;
40
+ /** Styles applied to the root element if `nowrap={true}`. */
41
+ noWrap: string;
42
+ /** Styles applied to the root element if `gutterBottom={true}`. */
43
+ gutterBottom: string;
44
+ /** Styles applied to the root element if `paragraph={true}`. */
45
+ paragraph: string;
46
+ }
47
+ export declare type TypographyClassKey = keyof TypographyClasses;
48
+ export declare function getTypographyUtilityClass(slot: string): string;
49
+ declare const typographyClasses: TypographyClasses;
50
+ export default typographyClasses;
@@ -1,8 +1,8 @@
1
- /**
2
- * Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
3
- * ❌ import { ... } from '@mui/base';
4
- * ✅ import { ... } from '@mui/base/utils'; // must be specific base module
5
- *
6
- * Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
7
- */
8
- export { unstable_ClassNameGenerator } from '@mui/base/className';
1
+ /**
2
+ * Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
3
+ * ❌ import { ... } from '@mui/base';
4
+ * ✅ import { ... } from '@mui/base/utils'; // must be specific base module
5
+ *
6
+ * Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
7
+ */
8
+ export { unstable_ClassNameGenerator } from '@mui/base/className';
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.1
1
+ /** @license MUI v5.6.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
@@ -844,6 +844,8 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
844
844
  * Used to determine the string value for a given option.
845
845
  * It's used to fill the input (and the list box options if `renderOption` is not provided).
846
846
  *
847
+ * If used in free solo mode, it must accept both the type of the options and a string.
848
+ *
847
849
  * @param {T} option
848
850
  * @returns {string}
849
851
  * @default (option) => option.label ?? option
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { usePreviousProps } from '@mui/utils';
8
+ import composeClasses from '@mui/base/composeClasses';
8
9
  import BadgeUnstyled from '@mui/base/BadgeUnstyled';
9
10
  import styled from '../styles/styled';
10
11
  import useThemeProps from '../styles/useThemeProps';
@@ -15,7 +16,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
15
16
  var RADIUS_STANDARD = 10;
16
17
  var RADIUS_DOT = 4;
17
18
 
18
- var extendUtilityClasses = function extendUtilityClasses(ownerState) {
19
+ var useUtilityClasses = function useUtilityClasses(ownerState) {
19
20
  var color = ownerState.color,
20
21
  anchorOrigin = ownerState.anchorOrigin,
21
22
  invisible = ownerState.invisible,
@@ -23,10 +24,11 @@ var extendUtilityClasses = function extendUtilityClasses(ownerState) {
23
24
  variant = ownerState.variant,
24
25
  _ownerState$classes = ownerState.classes,
25
26
  classes = _ownerState$classes === void 0 ? {} : _ownerState$classes;
26
- return {
27
- root: clsx(classes.root, 'root'),
28
- badge: clsx(classes.badge, getBadgeUtilityClass('badge'), getBadgeUtilityClass(variant), "anchorOrigin".concat(capitalize(anchorOrigin.vertical)).concat(capitalize(anchorOrigin.horizontal)), getBadgeUtilityClass("anchorOrigin".concat(capitalize(anchorOrigin.vertical)).concat(capitalize(anchorOrigin.horizontal)).concat(capitalize(overlap))), getBadgeUtilityClass("overlap".concat(capitalize(overlap))), color !== 'default' && [getBadgeUtilityClass("color".concat(capitalize(color))), classes["color".concat(capitalize(color))]], invisible && getBadgeUtilityClass('invisible'))
27
+ var slots = {
28
+ root: ['root'],
29
+ badge: ['badge', variant, invisible && 'invisible', "anchorOrigin".concat(capitalize(anchorOrigin.vertical)).concat(capitalize(anchorOrigin.horizontal)), "anchorOrigin".concat(capitalize(anchorOrigin.vertical)).concat(capitalize(anchorOrigin.horizontal)).concat(capitalize(overlap)), "overlap".concat(capitalize(overlap)), color !== 'default' && "color".concat(capitalize(color))]
29
30
  };
31
+ return composeClasses(slots, getBadgeUtilityClass, classes);
30
32
  };
31
33
 
32
34
  var BadgeRoot = styled('span', {
@@ -210,7 +212,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
210
212
  variant: variant
211
213
  });
212
214
 
213
- var classes = extendUtilityClasses(ownerState);
215
+ var classes = useUtilityClasses(ownerState);
214
216
  var displayValue;
215
217
 
216
218
  if (variant !== 'dot') {
File without changes
@@ -351,6 +351,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
351
351
 
352
352
  /**
353
353
  * Callback fired when the backdrop is clicked.
354
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
354
355
  */
355
356
  onBackdropClick: PropTypes.func,
356
357
 
@@ -80,7 +80,9 @@ var FilledInputRoot = styled(InputBaseRoot, {
80
80
 
81
81
  }
82
82
  }, _defineProperty(_ref2, "&.".concat(filledInputClasses.focused, ":after"), {
83
- transform: 'scaleX(1)'
83
+ // translateX(0) is a workaround for Safari transform scale bug
84
+ // See https://github.com/mui/material-ui/issues/31766
85
+ transform: 'scaleX(1) translateX(0)'
84
86
  }), _defineProperty(_ref2, "&.".concat(filledInputClasses.error, ":after"), {
85
87
  borderBottomColor: theme.palette.error.main,
86
88
  transform: 'scaleX(1)' // error is always underlined in red
@@ -65,7 +65,9 @@ var InputRoot = styled(InputBaseRoot, {
65
65
 
66
66
  }
67
67
  }, _defineProperty(_ref2, "&.".concat(inputClasses.focused, ":after"), {
68
- transform: 'scaleX(1)'
68
+ // translateX(0) is a workaround for Safari transform scale bug
69
+ // See https://github.com/mui/material-ui/issues/31766
70
+ transform: 'scaleX(1) translateX(0)'
69
71
  }), _defineProperty(_ref2, "&.".concat(inputClasses.error, ":after"), {
70
72
  borderBottomColor: theme.palette.error.main,
71
73
  transform: 'scaleX(1)' // error is always underlined in red
@@ -270,6 +270,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
270
270
 
271
271
  /**
272
272
  * Callback fired when the backdrop is clicked.
273
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
273
274
  */
274
275
  onBackdropClick: PropTypes.func,
275
276
 
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.1
1
+ /** @license MUI v5.6.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.