@mui/material 5.4.3 → 5.5.1

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 (242) 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/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/AvatarGroup.js +4 -2
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/BottomNavigation/BottomNavigation.js +0 -0
  13. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  14. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  15. package/Box/Box.js +1 -1
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +76 -76
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +214 -2
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/Chip.js +1 -0
  31. package/Chip/chipClasses.d.ts +80 -80
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +2 -2
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +22 -22
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/Fab.js +1 -0
  45. package/Fab/fabClasses.d.ts +26 -26
  46. package/FilledInput/FilledInput.js +1 -1
  47. package/FilledInput/filledInputClasses.d.ts +40 -40
  48. package/FilledInput/filledInputClasses.js +5 -1
  49. package/FormControl/formControlClasses.d.ts +14 -14
  50. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  51. package/FormGroup/formGroupClasses.d.ts +12 -12
  52. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  53. package/FormLabel/formLabelClasses.d.ts +22 -22
  54. package/Grid/Grid.js +10 -14
  55. package/Grid/gridClasses.d.ts +48 -48
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +26 -26
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  61. package/Input/Input.js +1 -1
  62. package/Input/inputClasses.d.ts +34 -34
  63. package/Input/inputClasses.js +5 -1
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/InputBase.d.ts +1 -1
  66. package/InputBase/InputBase.js +1 -1
  67. package/InputBase/inputBaseClasses.d.ts +44 -44
  68. package/InputLabel/inputLabelClasses.d.ts +32 -32
  69. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  83. package/OutlinedInput/NotchedOutline.js +6 -2
  84. package/OutlinedInput/OutlinedInput.js +1 -1
  85. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  86. package/OutlinedInput/outlinedInputClasses.js +5 -1
  87. package/Pagination/paginationClasses.d.ts +14 -14
  88. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  89. package/Paper/paperClasses.d.ts +39 -39
  90. package/Popover/popoverClasses.d.ts +10 -10
  91. package/Popper/Popper.d.ts +17 -17
  92. package/Popper/Popper.js +7 -2
  93. package/README.md +2 -1
  94. package/Radio/radioClasses.d.ts +16 -16
  95. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  96. package/RadioGroup/useRadioGroup.d.ts +4 -4
  97. package/Rating/ratingClasses.d.ts +40 -40
  98. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  99. package/Select/Select.d.ts +2 -0
  100. package/Select/selectClasses.d.ts +30 -30
  101. package/Skeleton/skeletonClasses.d.ts +24 -24
  102. package/Snackbar/Snackbar.js +1 -1
  103. package/Snackbar/snackbarClasses.d.ts +20 -20
  104. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  105. package/SpeedDial/speedDialClasses.d.ts +22 -22
  106. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  107. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  108. package/Step/StepContext.d.ts +20 -20
  109. package/Step/stepClasses.d.ts +16 -16
  110. package/StepButton/stepButtonClasses.d.ts +14 -14
  111. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  112. package/StepContent/stepContentClasses.d.ts +12 -12
  113. package/StepIcon/stepIconClasses.d.ts +16 -16
  114. package/StepLabel/stepLabelClasses.d.ts +28 -28
  115. package/Stepper/stepperClasses.d.ts +14 -14
  116. package/SvgIcon/SvgIcon.js +1 -0
  117. package/SvgIcon/svgIconClasses.d.ts +24 -24
  118. package/Switch/switchClasses.d.ts +32 -32
  119. package/Tab/tabClasses.d.ts +26 -26
  120. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  121. package/Table/tableClasses.d.ts +10 -10
  122. package/TableBody/tableBodyClasses.d.ts +8 -8
  123. package/TableCell/tableCellClasses.d.ts +32 -32
  124. package/TableContainer/tableContainerClasses.d.ts +8 -8
  125. package/TableFooter/tableFooterClasses.d.ts +8 -8
  126. package/TableHead/tableHeadClasses.d.ts +8 -8
  127. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  128. package/TableRow/tableRowClasses.d.ts +16 -16
  129. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  130. package/Tabs/tabsClasses.d.ts +32 -32
  131. package/TextField/textFieldClasses.d.ts +8 -8
  132. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  133. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  134. package/Toolbar/toolbarClasses.d.ts +14 -14
  135. package/Tooltip/tooltipClasses.d.ts +30 -30
  136. package/Typography/typographyClasses.d.ts +50 -50
  137. package/className/index.d.ts +8 -0
  138. package/className/index.js +9 -0
  139. package/className/package.json +6 -0
  140. package/darkScrollbar/index.d.ts +28 -28
  141. package/index.js +1 -1
  142. package/internal/switchBaseClasses.d.ts +12 -12
  143. package/legacy/AvatarGroup/AvatarGroup.js +4 -2
  144. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  145. package/legacy/Box/Box.js +1 -1
  146. package/legacy/Chip/Chip.js +1 -0
  147. package/legacy/Fab/Fab.js +1 -0
  148. package/legacy/FilledInput/FilledInput.js +1 -1
  149. package/legacy/FilledInput/filledInputClasses.js +5 -1
  150. package/legacy/Grid/Grid.js +11 -17
  151. package/legacy/Input/Input.js +1 -1
  152. package/legacy/Input/inputClasses.js +5 -1
  153. package/legacy/InputBase/InputBase.js +1 -1
  154. package/legacy/OutlinedInput/NotchedOutline.js +6 -2
  155. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  156. package/legacy/OutlinedInput/outlinedInputClasses.js +5 -1
  157. package/legacy/Popper/Popper.js +7 -2
  158. package/legacy/Snackbar/Snackbar.js +1 -1
  159. package/legacy/SvgIcon/SvgIcon.js +1 -0
  160. package/legacy/className/index.js +9 -0
  161. package/legacy/index.js +1 -1
  162. package/legacy/locale/index.js +347 -80
  163. package/legacy/styles/makeStyles.js +1 -1
  164. package/legacy/styles/withStyles.js +1 -1
  165. package/legacy/styles/withTheme.js +1 -1
  166. package/legacy/styles/zIndex.js +1 -0
  167. package/legacy/utils/index.js +10 -2
  168. package/locale/index.d.ts +71 -68
  169. package/locale/index.js +264 -0
  170. package/modern/AvatarGroup/AvatarGroup.js +4 -2
  171. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  172. package/modern/Box/Box.js +1 -1
  173. package/modern/Chip/Chip.js +1 -0
  174. package/modern/Fab/Fab.js +1 -0
  175. package/modern/FilledInput/FilledInput.js +1 -1
  176. package/modern/FilledInput/filledInputClasses.js +5 -1
  177. package/modern/Grid/Grid.js +10 -14
  178. package/modern/Input/Input.js +1 -1
  179. package/modern/Input/inputClasses.js +5 -1
  180. package/modern/InputBase/InputBase.js +1 -1
  181. package/modern/OutlinedInput/NotchedOutline.js +6 -2
  182. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  183. package/modern/OutlinedInput/outlinedInputClasses.js +5 -1
  184. package/modern/Popper/Popper.js +7 -2
  185. package/modern/Snackbar/Snackbar.js +1 -1
  186. package/modern/SvgIcon/SvgIcon.js +1 -0
  187. package/modern/className/index.js +9 -0
  188. package/modern/index.js +1 -1
  189. package/modern/locale/index.js +264 -0
  190. package/modern/styles/makeStyles.js +1 -1
  191. package/modern/styles/withStyles.js +1 -1
  192. package/modern/styles/withTheme.js +1 -1
  193. package/modern/styles/zIndex.js +1 -0
  194. package/modern/utils/index.js +10 -2
  195. package/node/AvatarGroup/AvatarGroup.js +4 -2
  196. package/node/BottomNavigation/BottomNavigation.js +0 -0
  197. package/node/Box/Box.js +2 -2
  198. package/node/Chip/Chip.js +1 -0
  199. package/node/Fab/Fab.js +1 -0
  200. package/node/FilledInput/FilledInput.js +1 -1
  201. package/node/FilledInput/filledInputClasses.js +7 -1
  202. package/node/Grid/Grid.js +10 -14
  203. package/node/Input/Input.js +1 -1
  204. package/node/Input/inputClasses.js +7 -1
  205. package/node/InputBase/InputBase.js +1 -1
  206. package/node/OutlinedInput/NotchedOutline.js +6 -2
  207. package/node/OutlinedInput/OutlinedInput.js +1 -1
  208. package/node/OutlinedInput/outlinedInputClasses.js +7 -1
  209. package/node/Popper/Popper.js +8 -2
  210. package/node/Snackbar/Snackbar.js +1 -1
  211. package/node/SvgIcon/SvgIcon.js +1 -0
  212. package/node/className/index.js +13 -0
  213. package/node/index.js +1 -1
  214. package/node/locale/index.js +271 -4
  215. package/node/styles/makeStyles.js +1 -1
  216. package/node/styles/withStyles.js +1 -1
  217. package/node/styles/withTheme.js +1 -1
  218. package/node/styles/zIndex.js +1 -0
  219. package/node/utils/index.js +13 -7
  220. package/package.json +7 -7
  221. package/styles/components.d.ts +3 -339
  222. package/styles/makeStyles.js +1 -1
  223. package/styles/props.d.ts +2 -0
  224. package/styles/withStyles.js +1 -1
  225. package/styles/withTheme.js +1 -1
  226. package/styles/zIndex.d.ts +1 -0
  227. package/styles/zIndex.js +1 -0
  228. package/transitions/index.d.ts +1 -1
  229. package/transitions/transition.d.ts +13 -13
  230. package/transitions/utils.d.ts +23 -23
  231. package/umd/material-ui.development.js +5032 -4835
  232. package/umd/material-ui.production.min.js +21 -21
  233. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  234. package/usePagination/usePagination.d.ts +1 -1
  235. package/useTouchRipple/index.d.ts +1 -1
  236. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  237. package/utils/getScrollbarSize.d.ts +2 -2
  238. package/utils/index.d.ts +1 -1
  239. package/utils/index.js +10 -2
  240. package/utils/ownerDocument.d.ts +2 -2
  241. package/utils/ownerWindow.d.ts +2 -2
  242. package/utils/setRef.d.ts +2 -2
@@ -1,32 +1,32 @@
1
- export interface TabsClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="vertical"`. */
5
- vertical: string;
6
- /** Styles applied to the flex container element. */
7
- flexContainer: string;
8
- /** Styles applied to the flex container element if `orientation="vertical"`. */
9
- flexContainerVertical: string;
10
- /** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
11
- centered: string;
12
- /** Styles applied to the tablist element. */
13
- scroller: string;
14
- /** Styles applied to the tablist element if `!variant="scrollable"`. */
15
- fixed: string;
16
- /** Styles applied to the tablist element if `variant="scrollable"` and `orientation="horizontal"`. */
17
- scrollableX: string;
18
- /** Styles applied to the tablist element if `variant="scrollable"` and `orientation="vertical"`. */
19
- scrollableY: string;
20
- /** Styles applied to the tablist element if `variant="scrollable"` and `visibleScrollbar={false}`. */
21
- hideScrollbar: string;
22
- /** Styles applied to the ScrollButtonComponent component. */
23
- scrollButtons: string;
24
- /** Styles applied to the ScrollButtonComponent component if `allowScrollButtonsMobile={true}`. */
25
- scrollButtonsHideMobile: string;
26
- /** Styles applied to the TabIndicator component. */
27
- indicator: string;
28
- }
29
- export declare type TabsClassKey = keyof TabsClasses;
30
- export declare function getTabsUtilityClass(slot: string): string;
31
- declare const tabsClasses: TabsClasses;
32
- export default tabsClasses;
1
+ export interface TabsClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="vertical"`. */
5
+ vertical: string;
6
+ /** Styles applied to the flex container element. */
7
+ flexContainer: string;
8
+ /** Styles applied to the flex container element if `orientation="vertical"`. */
9
+ flexContainerVertical: string;
10
+ /** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
11
+ centered: string;
12
+ /** Styles applied to the tablist element. */
13
+ scroller: string;
14
+ /** Styles applied to the tablist element if `!variant="scrollable"`. */
15
+ fixed: string;
16
+ /** Styles applied to the tablist element if `variant="scrollable"` and `orientation="horizontal"`. */
17
+ scrollableX: string;
18
+ /** Styles applied to the tablist element if `variant="scrollable"` and `orientation="vertical"`. */
19
+ scrollableY: string;
20
+ /** Styles applied to the tablist element if `variant="scrollable"` and `visibleScrollbar={false}`. */
21
+ hideScrollbar: string;
22
+ /** Styles applied to the ScrollButtonComponent component. */
23
+ scrollButtons: string;
24
+ /** Styles applied to the ScrollButtonComponent component if `allowScrollButtonsMobile={true}`. */
25
+ scrollButtonsHideMobile: string;
26
+ /** Styles applied to the TabIndicator component. */
27
+ indicator: string;
28
+ }
29
+ export declare type TabsClassKey = keyof TabsClasses;
30
+ export declare function getTabsUtilityClass(slot: string): string;
31
+ declare const tabsClasses: TabsClasses;
32
+ export default tabsClasses;
@@ -1,8 +1,8 @@
1
- export interface TextFieldClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type TextFieldClassKey = keyof TextFieldClasses;
6
- export declare function getTextFieldUtilityClass(slot: string): string;
7
- declare const textFieldClasses: TextFieldClasses;
8
- export default textFieldClasses;
1
+ export interface TextFieldClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type TextFieldClassKey = keyof TextFieldClasses;
6
+ export declare function getTextFieldUtilityClass(slot: string): string;
7
+ declare const textFieldClasses: TextFieldClasses;
8
+ export default textFieldClasses;
@@ -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;
@@ -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;
@@ -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;
@@ -0,0 +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';
@@ -0,0 +1,9 @@
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
+ // eslint-disable-next-line import/prefer-default-export
9
+ export { unstable_ClassNameGenerator } from '@mui/base/className';
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/className/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -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.4.3
1
+ /** @license MUI v5.5.1
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;
@@ -125,11 +125,13 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
125
125
  marginLeft: marginLeft
126
126
  }, (_componentsProps$addi2 = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi2.style),
127
127
  children: ["+", extraAvatars]
128
- })) : null, children.slice(0, maxAvatars).reverse().map(function (child) {
128
+ })) : null, children.slice(0, maxAvatars).reverse().map(function (child, index) {
129
129
  return /*#__PURE__*/React.cloneElement(child, {
130
130
  className: clsx(child.props.className, classes.avatar),
131
131
  style: _extends({
132
- marginLeft: marginLeft
132
+ // Consistent with "&:last-child" styling for the default spacing,
133
+ // we do not apply custom marginLeft spacing on the last child
134
+ marginLeft: index === maxAvatars - 1 ? undefined : marginLeft
133
135
  }, child.props.style),
134
136
  variant: child.props.variant || variant
135
137
  });
File without changes
package/legacy/Box/Box.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createBox } from '@mui/system';
2
- import { unstable_ClassNameGenerator as ClassNameGenerator } from '../utils';
2
+ import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
3
3
  import { createTheme } from '../styles';
4
4
  var defaultTheme = createTheme();
5
5
  /**
@@ -54,6 +54,7 @@ var ChipRoot = styled('div', {
54
54
  ownerState = _ref11.ownerState;
55
55
  var deleteIconColor = alpha(theme.palette.text.primary, 0.26);
56
56
  return _extends((_extends2 = {
57
+ maxWidth: '100%',
57
58
  fontFamily: theme.typography.fontFamily,
58
59
  fontSize: theme.typography.pxToRem(13),
59
60
  display: 'inline-flex',
package/legacy/Fab/Fab.js CHANGED
@@ -45,6 +45,7 @@ var FabRoot = styled(ButtonBase, {
45
45
  minWidth: 0,
46
46
  width: 56,
47
47
  height: 56,
48
+ zIndex: theme.zIndex.fab,
48
49
  boxShadow: theme.shadows[6],
49
50
  '&:active': {
50
51
  boxShadow: theme.shadows[12]
@@ -342,7 +342,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
342
342
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
343
343
 
344
344
  /**
345
- * If `true`, a `textarea` element is rendered.
345
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
346
346
  * @default false
347
347
  */
348
348
  multiline: PropTypes.bool,
@@ -1,6 +1,10 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
3
+ import { inputBaseClasses } from '../InputBase';
2
4
  export function getFilledInputUtilityClass(slot) {
3
5
  return generateUtilityClass('MuiFilledInput', slot);
4
6
  }
5
- var filledInputClasses = generateUtilityClasses('MuiFilledInput', ['root', 'colorSecondary', 'underline', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputHiddenLabel', 'inputMultiline', 'inputAdornedStart', 'inputAdornedEnd']);
7
+
8
+ var filledInputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiFilledInput', ['root', 'underline', 'input']));
9
+
6
10
  export default filledInputClasses;
@@ -314,10 +314,9 @@ var Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
314
314
 
315
315
  var rowSpacing = rowSpacingProp || spacing;
316
316
  var columnSpacing = columnSpacingProp || spacing;
317
- var columnsContext = React.useContext(GridContext); // setting prop before context to accomodate nesting
318
- // colums set with default breakpoint unit of 12
317
+ var columnsContext = React.useContext(GridContext); // columns set with default breakpoint unit of 12
319
318
 
320
- var columns = columnsProp || columnsContext || 12;
319
+ var columns = container ? columnsProp || 12 : columnsContext;
321
320
 
322
321
  var ownerState = _extends({}, props, {
323
322
  columns: columns,
@@ -336,20 +335,15 @@ var Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
336
335
  });
337
336
 
338
337
  var classes = useUtilityClasses(ownerState);
339
-
340
- var wrapChild = function wrapChild(element) {
341
- return columns !== 12 ? /*#__PURE__*/_jsx(GridContext.Provider, {
342
- value: columns,
343
- children: element
344
- }) : element;
345
- };
346
-
347
- return wrapChild( /*#__PURE__*/_jsx(GridRoot, _extends({
348
- ownerState: ownerState,
349
- className: clsx(classes.root, className),
350
- as: component,
351
- ref: ref
352
- }, other)));
338
+ return /*#__PURE__*/_jsx(GridContext.Provider, {
339
+ value: columns,
340
+ children: /*#__PURE__*/_jsx(GridRoot, _extends({
341
+ ownerState: ownerState,
342
+ className: clsx(classes.root, className),
343
+ as: component,
344
+ ref: ref
345
+ }, other))
346
+ });
353
347
  });
354
348
  process.env.NODE_ENV !== "production" ? Grid.propTypes
355
349
  /* remove-proptypes */
@@ -269,7 +269,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
269
269
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
270
270
 
271
271
  /**
272
- * If `true`, a `textarea` element is rendered.
272
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
273
273
  * @default false
274
274
  */
275
275
  multiline: PropTypes.bool,
@@ -1,6 +1,10 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
3
+ import { inputBaseClasses } from '../InputBase';
2
4
  export function getInputUtilityClass(slot) {
3
5
  return generateUtilityClass('MuiInput', slot);
4
6
  }
5
- var inputClasses = generateUtilityClasses('MuiInput', ['root', 'formControl', 'focused', 'disabled', 'colorSecondary', 'underline', 'error', 'sizeSmall', 'multiline', 'fullWidth', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch']);
7
+
8
+ var inputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiInput', ['root', 'underline', 'input']));
9
+
6
10
  export default inputClasses;
@@ -642,7 +642,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
642
642
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
643
643
 
644
644
  /**
645
- * If `true`, a `textarea` element is rendered.
645
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
646
646
  * @default false
647
647
  */
648
648
  multiline: PropTypes.bool,