@mui/material 5.4.4 → 5.5.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 (214) 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 +192 -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/chipClasses.d.ts +80 -80
  31. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  32. package/ClickAwayListener/index.d.ts +2 -2
  33. package/Collapse/collapseClasses.d.ts +18 -18
  34. package/Container/containerClasses.d.ts +22 -22
  35. package/Dialog/DialogContext.d.ts +6 -6
  36. package/Dialog/dialogClasses.d.ts +36 -36
  37. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  38. package/DialogContent/dialogContentClasses.d.ts +10 -10
  39. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  40. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  41. package/Divider/dividerClasses.d.ts +34 -34
  42. package/Drawer/drawerClasses.d.ts +30 -30
  43. package/Fab/Fab.js +1 -0
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/FilledInput.js +1 -1
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  49. package/FormGroup/formGroupClasses.d.ts +12 -12
  50. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  51. package/FormLabel/formLabelClasses.d.ts +22 -22
  52. package/Grid/Grid.js +10 -14
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/iconButtonClasses.d.ts +26 -26
  56. package/ImageList/imageListClasses.d.ts +16 -16
  57. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  59. package/Input/Input.js +1 -1
  60. package/Input/inputClasses.d.ts +34 -34
  61. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  62. package/InputBase/InputBase.d.ts +1 -1
  63. package/InputBase/InputBase.js +1 -1
  64. package/InputBase/inputBaseClasses.d.ts +44 -44
  65. package/InputLabel/inputLabelClasses.d.ts +32 -32
  66. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  67. package/Link/linkClasses.d.ts +18 -18
  68. package/List/listClasses.d.ts +14 -14
  69. package/ListItem/listItemClasses.d.ts +30 -30
  70. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  71. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  72. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  73. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  74. package/ListItemText/listItemTextClasses.d.ts +18 -18
  75. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  76. package/Menu/menuClasses.d.ts +12 -12
  77. package/MenuItem/menuItemClasses.d.ts +20 -20
  78. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  79. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  80. package/OutlinedInput/NotchedOutline.js +3 -1
  81. package/OutlinedInput/OutlinedInput.js +1 -1
  82. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  83. package/Pagination/paginationClasses.d.ts +14 -14
  84. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  85. package/Paper/paperClasses.d.ts +39 -39
  86. package/Popover/popoverClasses.d.ts +10 -10
  87. package/Popper/Popper.d.ts +29 -17
  88. package/Popper/Popper.js +21 -6
  89. package/README.md +1 -0
  90. package/Radio/radioClasses.d.ts +16 -16
  91. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  92. package/RadioGroup/useRadioGroup.d.ts +4 -4
  93. package/Rating/ratingClasses.d.ts +40 -40
  94. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  95. package/Select/Select.d.ts +2 -0
  96. package/Select/selectClasses.d.ts +30 -30
  97. package/Skeleton/skeletonClasses.d.ts +24 -24
  98. package/Snackbar/Snackbar.js +1 -1
  99. package/Snackbar/snackbarClasses.d.ts +20 -20
  100. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  101. package/SpeedDial/speedDialClasses.d.ts +22 -22
  102. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  103. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  104. package/Step/StepContext.d.ts +20 -20
  105. package/Step/stepClasses.d.ts +16 -16
  106. package/StepButton/stepButtonClasses.d.ts +14 -14
  107. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  108. package/StepContent/stepContentClasses.d.ts +12 -12
  109. package/StepIcon/stepIconClasses.d.ts +16 -16
  110. package/StepLabel/stepLabelClasses.d.ts +28 -28
  111. package/Stepper/stepperClasses.d.ts +14 -14
  112. package/SvgIcon/SvgIcon.js +1 -0
  113. package/SvgIcon/svgIconClasses.d.ts +24 -24
  114. package/Switch/switchClasses.d.ts +32 -32
  115. package/Tab/tabClasses.d.ts +26 -26
  116. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  117. package/Table/tableClasses.d.ts +10 -10
  118. package/TableBody/tableBodyClasses.d.ts +8 -8
  119. package/TableCell/tableCellClasses.d.ts +32 -32
  120. package/TableContainer/tableContainerClasses.d.ts +8 -8
  121. package/TableFooter/tableFooterClasses.d.ts +8 -8
  122. package/TableHead/tableHeadClasses.d.ts +8 -8
  123. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  124. package/TableRow/tableRowClasses.d.ts +16 -16
  125. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  126. package/Tabs/tabsClasses.d.ts +32 -32
  127. package/TextField/textFieldClasses.d.ts +8 -8
  128. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  129. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  130. package/Toolbar/toolbarClasses.d.ts +14 -14
  131. package/Tooltip/tooltipClasses.d.ts +30 -30
  132. package/Typography/typographyClasses.d.ts +50 -50
  133. package/className/index.d.ts +8 -0
  134. package/className/index.js +9 -0
  135. package/className/package.json +6 -0
  136. package/darkScrollbar/index.d.ts +28 -28
  137. package/index.js +1 -1
  138. package/internal/switchBaseClasses.d.ts +12 -12
  139. package/legacy/AvatarGroup/AvatarGroup.js +4 -2
  140. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  141. package/legacy/Box/Box.js +1 -1
  142. package/legacy/Fab/Fab.js +1 -0
  143. package/legacy/FilledInput/FilledInput.js +1 -1
  144. package/legacy/Grid/Grid.js +11 -17
  145. package/legacy/Input/Input.js +1 -1
  146. package/legacy/InputBase/InputBase.js +1 -1
  147. package/legacy/OutlinedInput/NotchedOutline.js +3 -1
  148. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  149. package/legacy/Popper/Popper.js +23 -6
  150. package/legacy/Snackbar/Snackbar.js +1 -1
  151. package/legacy/SvgIcon/SvgIcon.js +1 -0
  152. package/legacy/className/index.js +9 -0
  153. package/legacy/index.js +1 -1
  154. package/legacy/locale/index.js +347 -80
  155. package/legacy/styles/zIndex.js +1 -0
  156. package/legacy/utils/index.js +10 -2
  157. package/locale/index.d.ts +71 -68
  158. package/locale/index.js +264 -0
  159. package/modern/AvatarGroup/AvatarGroup.js +4 -2
  160. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  161. package/modern/Box/Box.js +1 -1
  162. package/modern/Fab/Fab.js +1 -0
  163. package/modern/FilledInput/FilledInput.js +1 -1
  164. package/modern/Grid/Grid.js +10 -14
  165. package/modern/Input/Input.js +1 -1
  166. package/modern/InputBase/InputBase.js +1 -1
  167. package/modern/OutlinedInput/NotchedOutline.js +3 -1
  168. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  169. package/modern/Popper/Popper.js +21 -6
  170. package/modern/Snackbar/Snackbar.js +1 -1
  171. package/modern/SvgIcon/SvgIcon.js +1 -0
  172. package/modern/className/index.js +9 -0
  173. package/modern/index.js +1 -1
  174. package/modern/locale/index.js +264 -0
  175. package/modern/styles/zIndex.js +1 -0
  176. package/modern/utils/index.js +10 -2
  177. package/node/AvatarGroup/AvatarGroup.js +4 -2
  178. package/node/BottomNavigation/BottomNavigation.js +0 -0
  179. package/node/Box/Box.js +2 -2
  180. package/node/Fab/Fab.js +1 -0
  181. package/node/FilledInput/FilledInput.js +1 -1
  182. package/node/Grid/Grid.js +10 -14
  183. package/node/Input/Input.js +1 -1
  184. package/node/InputBase/InputBase.js +1 -1
  185. package/node/OutlinedInput/NotchedOutline.js +3 -1
  186. package/node/OutlinedInput/OutlinedInput.js +1 -1
  187. package/node/Popper/Popper.js +24 -7
  188. package/node/Snackbar/Snackbar.js +1 -1
  189. package/node/SvgIcon/SvgIcon.js +1 -0
  190. package/node/className/index.js +13 -0
  191. package/node/index.js +1 -1
  192. package/node/locale/index.js +271 -4
  193. package/node/styles/zIndex.js +1 -0
  194. package/node/utils/index.js +13 -7
  195. package/package.json +5 -5
  196. package/styles/components.d.ts +3 -0
  197. package/styles/props.d.ts +2 -0
  198. package/styles/zIndex.d.ts +1 -0
  199. package/styles/zIndex.js +1 -0
  200. package/transitions/index.d.ts +1 -1
  201. package/transitions/transition.d.ts +13 -13
  202. package/transitions/utils.d.ts +23 -23
  203. package/umd/material-ui.development.js +2838 -2690
  204. package/umd/material-ui.production.min.js +21 -21
  205. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  206. package/usePagination/usePagination.d.ts +1 -1
  207. package/useTouchRipple/index.d.ts +1 -1
  208. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  209. package/utils/getScrollbarSize.d.ts +2 -2
  210. package/utils/index.d.ts +1 -1
  211. package/utils/index.js +10 -2
  212. package/utils/ownerDocument.d.ts +2 -2
  213. package/utils/ownerWindow.d.ts +2 -2
  214. package/utils/setRef.d.ts +2 -2
@@ -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.4
1
+ /** @license MUI v5.5.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;
@@ -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
  /**
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,
@@ -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,
@@ -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,
@@ -57,7 +57,9 @@ var NotchedOutlineLegend = styled('legend')(function (_ref) {
57
57
  '& > span': {
58
58
  paddingLeft: 5,
59
59
  paddingRight: 5,
60
- display: 'inline-block'
60
+ display: 'inline-block',
61
+ opacity: 0,
62
+ visibility: 'visible'
61
63
  }
62
64
  }, ownerState.notched && {
63
65
  maxWidth: '100%',
@@ -272,7 +272,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes
272
272
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
273
273
 
274
274
  /**
275
- * If `true`, a `textarea` element is rendered.
275
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
276
276
  * @default false
277
277
  */
278
278
  multiline: PropTypes.bool,
@@ -1,11 +1,18 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
2
  import PopperUnstyled from '@mui/base/PopperUnstyled';
5
- import { HTMLElementType, refType } from '@mui/utils';
6
3
  import { useThemeWithoutDefault as useTheme } from '@mui/system';
4
+ import { HTMLElementType, refType } from '@mui/utils';
5
+ import PropTypes from 'prop-types';
6
+ import * as React from 'react';
7
+ import { styled, useThemeProps } from '../styles';
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
-
9
+ var PopperRoot = styled(PopperUnstyled, {
10
+ name: 'MuiPopper',
11
+ slot: 'Root',
12
+ overridesResolver: function overridesResolver(props, styles) {
13
+ return styles.root;
14
+ }
15
+ })({});
9
16
  /**
10
17
  *
11
18
  * Demos:
@@ -18,9 +25,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
18
25
  *
19
26
  * - [Popper API](https://mui.com/api/popper/)
20
27
  */
21
- var Popper = /*#__PURE__*/React.forwardRef(function Popper(props, ref) {
28
+
29
+ var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
22
30
  var theme = useTheme();
23
- return /*#__PURE__*/_jsx(PopperUnstyled, _extends({
31
+ var props = useThemeProps({
32
+ props: inProps,
33
+ name: 'MuiPopper'
34
+ });
35
+ return /*#__PURE__*/_jsx(PopperRoot, _extends({
24
36
  direction: theme == null ? void 0 : theme.direction
25
37
  }, props, {
26
38
  ref: ref
@@ -124,6 +136,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
124
136
  */
125
137
  popperRef: refType,
126
138
 
139
+ /**
140
+ * The system prop that allows defining system overrides as well as additional CSS styles.
141
+ */
142
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
143
+
127
144
  /**
128
145
  * Help supporting a react-transition-group/Transition component.
129
146
  * @default false
@@ -290,7 +290,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
290
290
  onMouseLeave: handleMouseLeave,
291
291
  ownerState: ownerState,
292
292
  ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
293
- // See https://github.com/mui-org/material-ui/issues/29080
293
+ // See https://github.com/mui/material-ui/issues/29080
294
294
  ,
295
295
  role: "presentation"
296
296
  }, other, {
@@ -83,6 +83,7 @@ var SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
83
83
  color: color,
84
84
  component: component,
85
85
  fontSize: fontSize,
86
+ instanceFontSize: inProps.fontSize,
86
87
  inheritViewBox: inheritViewBox,
87
88
  viewBox: viewBox
88
89
  });
@@ -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';
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.4.4
1
+ /** @license MUI v5.5.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.