@mui/material 5.6.2 → 5.6.3

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 (155) 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/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/badgeClasses.d.ts +24 -24
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/BottomNavigationAction.js +4 -3
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Box/Box.d.ts +9 -28
  18. package/Box/Box.js +25 -4
  19. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  20. package/Button/buttonClasses.d.ts +76 -76
  21. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  22. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +59 -0
  26. package/Card/cardClasses.d.ts +8 -8
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/chipClasses.d.ts +80 -80
  34. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  35. package/ClickAwayListener/index.d.ts +2 -2
  36. package/Collapse/collapseClasses.d.ts +18 -18
  37. package/Container/containerClasses.d.ts +22 -22
  38. package/Dialog/DialogContext.d.ts +6 -6
  39. package/Dialog/dialogClasses.d.ts +36 -36
  40. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  41. package/DialogContent/dialogContentClasses.d.ts +10 -10
  42. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  43. package/DialogTitle/DialogTitle.d.ts +30 -15
  44. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  45. package/Divider/dividerClasses.d.ts +34 -34
  46. package/Drawer/drawerClasses.d.ts +30 -30
  47. package/Fab/fabClasses.d.ts +26 -26
  48. package/FilledInput/filledInputClasses.d.ts +40 -40
  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/gridClasses.d.ts +48 -48
  55. package/Icon/iconClasses.d.ts +24 -24
  56. package/IconButton/iconButtonClasses.d.ts +26 -26
  57. package/ImageList/imageListClasses.d.ts +16 -16
  58. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  59. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  60. package/Input/inputClasses.d.ts +34 -34
  61. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  62. package/InputBase/inputBaseClasses.d.ts +44 -44
  63. package/InputLabel/inputLabelClasses.d.ts +32 -32
  64. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  65. package/Link/linkClasses.d.ts +18 -18
  66. package/List/listClasses.d.ts +14 -14
  67. package/ListItem/listItemClasses.d.ts +30 -30
  68. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  69. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  70. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  71. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  72. package/ListItemText/listItemTextClasses.d.ts +18 -18
  73. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  74. package/Menu/menuClasses.d.ts +12 -12
  75. package/MenuItem/menuItemClasses.d.ts +20 -20
  76. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  77. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  78. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  79. package/Pagination/paginationClasses.d.ts +14 -14
  80. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  81. package/Paper/paperClasses.d.ts +39 -39
  82. package/Popover/popoverClasses.d.ts +10 -10
  83. package/Popper/Popper.d.ts +29 -29
  84. package/README.md +80 -31
  85. package/Radio/radioClasses.d.ts +16 -16
  86. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  87. package/RadioGroup/useRadioGroup.d.ts +4 -4
  88. package/Rating/ratingClasses.d.ts +40 -40
  89. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  90. package/Select/selectClasses.d.ts +30 -30
  91. package/Skeleton/skeletonClasses.d.ts +24 -24
  92. package/Snackbar/snackbarClasses.d.ts +20 -20
  93. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  94. package/SpeedDial/speedDialClasses.d.ts +22 -22
  95. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  96. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  97. package/Step/StepContext.d.ts +20 -20
  98. package/Step/stepClasses.d.ts +16 -16
  99. package/StepButton/stepButtonClasses.d.ts +14 -14
  100. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  101. package/StepContent/StepContent.d.ts +3 -1
  102. package/StepContent/stepContentClasses.d.ts +12 -12
  103. package/StepIcon/stepIconClasses.d.ts +16 -16
  104. package/StepLabel/stepLabelClasses.d.ts +28 -28
  105. package/Stepper/stepperClasses.d.ts +14 -14
  106. package/SvgIcon/svgIconClasses.d.ts +24 -24
  107. package/Switch/switchClasses.d.ts +32 -32
  108. package/Tab/tabClasses.d.ts +26 -26
  109. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  110. package/Table/tableClasses.d.ts +10 -10
  111. package/TableBody/tableBodyClasses.d.ts +8 -8
  112. package/TableCell/tableCellClasses.d.ts +32 -32
  113. package/TableContainer/tableContainerClasses.d.ts +8 -8
  114. package/TableFooter/tableFooterClasses.d.ts +8 -8
  115. package/TableHead/tableHeadClasses.d.ts +8 -8
  116. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  117. package/TableRow/tableRowClasses.d.ts +16 -16
  118. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  119. package/Tabs/tabsClasses.d.ts +32 -32
  120. package/TextField/textFieldClasses.d.ts +8 -8
  121. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  122. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  123. package/Toolbar/toolbarClasses.d.ts +14 -14
  124. package/Tooltip/tooltipClasses.d.ts +30 -30
  125. package/Typography/typographyClasses.d.ts +50 -50
  126. package/className/index.d.ts +8 -8
  127. package/darkScrollbar/index.d.ts +28 -28
  128. package/index.js +1 -1
  129. package/internal/switchBaseClasses.d.ts +12 -12
  130. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  131. package/legacy/BottomNavigationAction/BottomNavigationAction.js +4 -3
  132. package/legacy/Box/Box.js +25 -4
  133. package/legacy/index.js +1 -1
  134. package/locale/index.d.ts +71 -71
  135. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  136. package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -3
  137. package/modern/Box/Box.js +25 -4
  138. package/modern/index.js +1 -1
  139. package/node/BottomNavigation/BottomNavigation.js +0 -0
  140. package/node/BottomNavigationAction/BottomNavigationAction.js +4 -3
  141. package/node/Box/Box.js +28 -4
  142. package/node/index.js +1 -1
  143. package/package.json +3 -3
  144. package/transitions/index.d.ts +1 -1
  145. package/transitions/transition.d.ts +13 -13
  146. package/transitions/utils.d.ts +23 -23
  147. package/umd/material-ui.development.js +48 -36
  148. package/umd/material-ui.production.min.js +3 -3
  149. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  150. package/useTouchRipple/index.d.ts +1 -1
  151. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  152. package/utils/getScrollbarSize.d.ts +2 -2
  153. package/utils/ownerDocument.d.ts +2 -2
  154. package/utils/ownerWindow.d.ts +2 -2
  155. package/utils/setRef.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.6.2",
3
+ "version": "5.6.3",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.17.2",
49
- "@mui/base": "5.0.0-alpha.77",
50
- "@mui/system": "^5.6.2",
49
+ "@mui/base": "5.0.0-alpha.78",
50
+ "@mui/system": "^5.6.3",
51
51
  "@mui/types": "^7.1.3",
52
52
  "@mui/utils": "^5.6.1",
53
53
  "@types/react-transition-group": "^4.4.4",
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';
@@ -1,13 +1,13 @@
1
- import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
- import * as React from 'react';
3
- export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
- export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
- export interface EasingProps {
6
- easing: string | {
7
- enter?: string;
8
- exit?: string;
9
- };
10
- }
11
- export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
- export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
- }
1
+ import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
+ import * as React from 'react';
3
+ export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
+ export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
+ }
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.2
1
+ /** @license MUI v5.6.3
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.
@@ -5717,7 +5717,13 @@
5717
5717
  }
5718
5718
  }
5719
5719
 
5720
- return path.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
5720
+ return path.split('.').reduce((acc, item) => {
5721
+ if (acc && acc[item] != null) {
5722
+ return acc[item];
5723
+ }
5724
+
5725
+ return null;
5726
+ }, obj);
5721
5727
  }
5722
5728
 
5723
5729
  function getValue$1(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
@@ -5856,7 +5862,9 @@
5856
5862
  const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
5857
5863
  const spacingKeys = [...marginKeys, ...paddingKeys];
5858
5864
  function createUnaryUnit(theme, themeKey, defaultValue, propName) {
5859
- const themeSpacing = getPath(theme, themeKey) || defaultValue;
5865
+ var _getPath;
5866
+
5867
+ const themeSpacing = (_getPath = getPath(theme, themeKey)) != null ? _getPath : defaultValue;
5860
5868
 
5861
5869
  if (typeof themeSpacing === 'number') {
5862
5870
  return abs => {
@@ -6843,30 +6851,6 @@
6843
6851
  theme: theme
6844
6852
  }, other));
6845
6853
  });
6846
- Box.propTypes
6847
- /* remove-proptypes */
6848
- = {
6849
- // ----------------------------- Warning --------------------------------
6850
- // | These PropTypes are generated from the TypeScript type definitions |
6851
- // | To update them edit the d.ts file and run "yarn proptypes" |
6852
- // ----------------------------------------------------------------------
6853
-
6854
- /**
6855
- * @ignore
6856
- */
6857
- children: PropTypes.node,
6858
-
6859
- /**
6860
- * The component used for the root node.
6861
- * Either a string to use a HTML element or a component.
6862
- */
6863
- component: PropTypes.elementType,
6864
-
6865
- /**
6866
- * @ignore
6867
- */
6868
- sx: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.func])
6869
- } ;
6870
6854
  return Box;
6871
6855
  }
6872
6856
 
@@ -7477,7 +7461,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7477
7461
  });
7478
7462
  }
7479
7463
 
7480
- ThemeProvider.propTypes = {
7464
+ ThemeProvider.propTypes
7465
+ /* remove-proptypes */
7466
+ = {
7467
+ // ----------------------------- Warning --------------------------------
7468
+ // | These PropTypes are generated from the TypeScript type definitions |
7469
+ // | To update them edit the d.ts file and run "yarn proptypes" |
7470
+ // ----------------------------------------------------------------------
7471
+
7481
7472
  /**
7482
7473
  * Your component tree.
7483
7474
  */
@@ -7486,7 +7477,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7486
7477
  /**
7487
7478
  * A theme object. You can provide a function to extend the outer theme.
7488
7479
  */
7489
- theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
7480
+ theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired
7490
7481
  } ;
7491
7482
 
7492
7483
  {
@@ -24104,17 +24095,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24104
24095
  transition: theme.transitions.create(['color', 'padding-top'], {
24105
24096
  duration: theme.transitions.duration.short
24106
24097
  }),
24107
- padding: '6px 12px 8px',
24098
+ padding: '0px 12px',
24108
24099
  minWidth: 80,
24109
24100
  maxWidth: 168,
24110
24101
  color: theme.palette.text.secondary,
24111
24102
  flexDirection: 'column',
24112
24103
  flex: '1'
24113
24104
  }, !ownerState.showLabel && !ownerState.selected && {
24114
- paddingTop: 16
24105
+ paddingTop: 14
24106
+ }, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
24107
+ paddingTop: 0
24115
24108
  }, {
24116
24109
  [`&.${bottomNavigationActionClasses$1.selected}`]: {
24117
- paddingTop: 6,
24118
24110
  color: theme.palette.primary.main
24119
24111
  }
24120
24112
  }));
@@ -24248,15 +24240,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24248
24240
  var BottomNavigationAction$1 = BottomNavigationAction;
24249
24241
 
24250
24242
  const defaultTheme = createTheme$1();
24251
- /**
24252
- * @ignore - do not document.
24253
- */
24254
-
24255
24243
  const Box = createBox({
24256
24244
  defaultTheme,
24257
24245
  defaultClassName: 'MuiBox-root',
24258
24246
  generateClassName: ClassNameGenerator$1.generate
24259
24247
  });
24248
+ Box.propTypes
24249
+ /* remove-proptypes */
24250
+ = {
24251
+ // ----------------------------- Warning --------------------------------
24252
+ // | These PropTypes are generated from the TypeScript type definitions |
24253
+ // | To update them edit the d.ts file and run "yarn proptypes" |
24254
+ // ----------------------------------------------------------------------
24255
+
24256
+ /**
24257
+ * @ignore
24258
+ */
24259
+ children: PropTypes.node,
24260
+
24261
+ /**
24262
+ * The component used for the root node.
24263
+ * Either a string to use a HTML element or a component.
24264
+ */
24265
+ component: PropTypes.elementType,
24266
+
24267
+ /**
24268
+ * The system prop that allows defining system overrides as well as additional CSS styles.
24269
+ */
24270
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
24271
+ } ;
24260
24272
  var Box$1 = Box;
24261
24273
 
24262
24274
  var MoreHorizIcon = createSvgIcon( /*#__PURE__*/jsxRuntime_1("path", {