@mui/material 5.5.1 → 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 (145) 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/BottomNavigation/BottomNavigation.js +0 -0
  12. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  13. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  14. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  15. package/Button/buttonClasses.d.ts +76 -76
  16. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  17. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  18. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  19. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  20. package/CHANGELOG.md +43 -0
  21. package/Card/cardClasses.d.ts +8 -8
  22. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  23. package/CardActions/cardActionsClasses.d.ts +10 -10
  24. package/CardContent/cardContentClasses.d.ts +8 -8
  25. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  26. package/CardMedia/cardMediaClasses.d.ts +12 -12
  27. package/Checkbox/checkboxClasses.d.ts +18 -18
  28. package/Chip/chipClasses.d.ts +80 -80
  29. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  30. package/ClickAwayListener/index.d.ts +2 -2
  31. package/Collapse/collapseClasses.d.ts +18 -18
  32. package/Container/containerClasses.d.ts +22 -22
  33. package/Dialog/DialogContext.d.ts +6 -6
  34. package/Dialog/dialogClasses.d.ts +36 -36
  35. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  36. package/DialogContent/dialogContentClasses.d.ts +10 -10
  37. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  38. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  39. package/Divider/dividerClasses.d.ts +34 -34
  40. package/Drawer/drawerClasses.d.ts +30 -30
  41. package/Fab/fabClasses.d.ts +26 -26
  42. package/FilledInput/filledInputClasses.d.ts +40 -40
  43. package/FormControl/formControlClasses.d.ts +14 -14
  44. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  45. package/FormGroup/formGroupClasses.d.ts +12 -12
  46. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  47. package/FormLabel/formLabelClasses.d.ts +22 -22
  48. package/Grid/gridClasses.d.ts +48 -48
  49. package/Icon/iconClasses.d.ts +24 -24
  50. package/IconButton/iconButtonClasses.d.ts +26 -26
  51. package/ImageList/imageListClasses.d.ts +16 -16
  52. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  53. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  54. package/Input/inputClasses.d.ts +34 -34
  55. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  56. package/InputBase/inputBaseClasses.d.ts +44 -44
  57. package/InputLabel/inputLabelClasses.d.ts +32 -32
  58. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  59. package/Link/linkClasses.d.ts +18 -18
  60. package/List/listClasses.d.ts +14 -14
  61. package/ListItem/listItemClasses.d.ts +30 -30
  62. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  63. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  64. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  65. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  66. package/ListItemText/listItemTextClasses.d.ts +18 -18
  67. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  68. package/Menu/menuClasses.d.ts +12 -12
  69. package/MenuItem/menuItemClasses.d.ts +20 -20
  70. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  71. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  72. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  73. package/Pagination/paginationClasses.d.ts +14 -14
  74. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  75. package/Paper/paperClasses.d.ts +39 -39
  76. package/Popover/popoverClasses.d.ts +10 -10
  77. package/Popper/Popper.d.ts +29 -17
  78. package/Popper/Popper.js +16 -6
  79. package/Radio/radioClasses.d.ts +16 -16
  80. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  81. package/RadioGroup/useRadioGroup.d.ts +4 -4
  82. package/Rating/ratingClasses.d.ts +40 -40
  83. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  84. package/Select/selectClasses.d.ts +30 -30
  85. package/Skeleton/skeletonClasses.d.ts +24 -24
  86. package/Snackbar/snackbarClasses.d.ts +20 -20
  87. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  88. package/SpeedDial/speedDialClasses.d.ts +22 -22
  89. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  90. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  91. package/Step/StepContext.d.ts +20 -20
  92. package/Step/stepClasses.d.ts +16 -16
  93. package/StepButton/stepButtonClasses.d.ts +14 -14
  94. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  95. package/StepContent/stepContentClasses.d.ts +12 -12
  96. package/StepIcon/stepIconClasses.d.ts +16 -16
  97. package/StepLabel/stepLabelClasses.d.ts +28 -28
  98. package/Stepper/stepperClasses.d.ts +14 -14
  99. package/SvgIcon/svgIconClasses.d.ts +24 -24
  100. package/Switch/switchClasses.d.ts +32 -32
  101. package/Tab/tabClasses.d.ts +26 -26
  102. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  103. package/Table/tableClasses.d.ts +10 -10
  104. package/TableBody/tableBodyClasses.d.ts +8 -8
  105. package/TableCell/tableCellClasses.d.ts +32 -32
  106. package/TableContainer/tableContainerClasses.d.ts +8 -8
  107. package/TableFooter/tableFooterClasses.d.ts +8 -8
  108. package/TableHead/tableHeadClasses.d.ts +8 -8
  109. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  110. package/TableRow/tableRowClasses.d.ts +16 -16
  111. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  112. package/Tabs/tabsClasses.d.ts +32 -32
  113. package/TextField/textFieldClasses.d.ts +8 -8
  114. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  115. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  116. package/Toolbar/toolbarClasses.d.ts +14 -14
  117. package/Tooltip/tooltipClasses.d.ts +30 -30
  118. package/Typography/typographyClasses.d.ts +50 -50
  119. package/className/index.d.ts +8 -8
  120. package/darkScrollbar/index.d.ts +28 -28
  121. package/index.js +1 -1
  122. package/internal/switchBaseClasses.d.ts +12 -12
  123. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  124. package/legacy/Popper/Popper.js +18 -6
  125. package/legacy/index.js +1 -1
  126. package/locale/index.d.ts +71 -71
  127. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  128. package/modern/Popper/Popper.js +16 -6
  129. package/modern/index.js +1 -1
  130. package/node/BottomNavigation/BottomNavigation.js +0 -0
  131. package/node/Popper/Popper.js +19 -8
  132. package/node/index.js +1 -1
  133. package/package.json +3 -3
  134. package/transitions/index.d.ts +1 -1
  135. package/transitions/transition.d.ts +13 -13
  136. package/transitions/utils.d.ts +23 -23
  137. package/umd/material-ui.development.js +22 -3
  138. package/umd/material-ui.production.min.js +17 -17
  139. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  140. package/useTouchRipple/index.d.ts +1 -1
  141. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  142. package/utils/getScrollbarSize.d.ts +2 -2
  143. package/utils/ownerDocument.d.ts +2 -2
  144. package/utils/ownerWindow.d.ts +2 -2
  145. package/utils/setRef.d.ts +2 -2
@@ -1,12 +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';
7
- import useThemeProps from '../styles/useThemeProps';
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';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
-
9
+ var PopperRoot = styled(PopperUnstyled, {
10
+ name: 'MuiPopper',
11
+ slot: 'Root',
12
+ overridesResolver: function overridesResolver(props, styles) {
13
+ return styles.root;
14
+ }
15
+ })({});
10
16
  /**
11
17
  *
12
18
  * Demos:
@@ -19,13 +25,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
19
25
  *
20
26
  * - [Popper API](https://mui.com/api/popper/)
21
27
  */
28
+
22
29
  var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
23
30
  var theme = useTheme();
24
31
  var props = useThemeProps({
25
32
  props: inProps,
26
33
  name: 'MuiPopper'
27
34
  });
28
- return /*#__PURE__*/_jsx(PopperUnstyled, _extends({
35
+ return /*#__PURE__*/_jsx(PopperRoot, _extends({
29
36
  direction: theme == null ? void 0 : theme.direction
30
37
  }, props, {
31
38
  ref: ref
@@ -129,6 +136,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
129
136
  */
130
137
  popperRef: refType,
131
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
+
132
144
  /**
133
145
  * Help supporting a react-transition-group/Transition component.
134
146
  * @default false
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.5.1
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.
package/locale/index.d.ts CHANGED
@@ -1,71 +1,71 @@
1
- import { ComponentsPropsList } from '../styles/props';
2
- export interface Localization {
3
- components?: {
4
- MuiAlert?: {
5
- defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
- };
7
- MuiBreadcrumbs?: {
8
- defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
- };
10
- MuiTablePagination?: {
11
- defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
- };
13
- MuiRating?: {
14
- defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
- };
16
- MuiAutocomplete?: {
17
- defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
- };
19
- MuiPagination?: {
20
- defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
- };
22
- };
23
- }
24
- export declare const amET: Localization;
25
- export declare const arEG: Localization;
26
- export declare const arSD: Localization;
27
- export declare const azAZ: Localization;
28
- export declare const bnBD: Localization;
29
- export declare const bgBG: Localization;
30
- export declare const caES: Localization;
31
- export declare const csCZ: Localization;
32
- export declare const daDK: Localization;
33
- export declare const deDE: Localization;
34
- export declare const elGR: Localization;
35
- export declare const enUS: Localization;
36
- export declare const esES: Localization;
37
- export declare const etEE: Localization;
38
- export declare const faIR: Localization;
39
- export declare const fiFI: Localization;
40
- export declare const frFR: Localization;
41
- export declare const heIL: Localization;
42
- export declare const hiIN: Localization;
43
- export declare const hrHR: Localization;
44
- export declare const huHU: Localization;
45
- export declare const hyAM: Localization;
46
- export declare const idID: Localization;
47
- export declare const isIS: Localization;
48
- export declare const itIT: Localization;
49
- export declare const jaJP: Localization;
50
- export declare const khKH: Localization;
51
- export declare const koKR: Localization;
52
- export declare const kzKZ: Localization;
53
- export declare const mkMK: Localization;
54
- export declare const nbNO: Localization;
55
- export declare const nlNL: Localization;
56
- export declare const plPL: Localization;
57
- export declare const ptBR: Localization;
58
- export declare const ptPT: Localization;
59
- export declare const roRO: Localization;
60
- export declare const srRS: Localization;
61
- export declare const ruRU: Localization;
62
- export declare const siLK: Localization;
63
- export declare const skSK: Localization;
64
- export declare const svSE: Localization;
65
- export declare const thTH: Localization;
66
- export declare const trTR: Localization;
67
- export declare const ukUA: Localization;
68
- export declare const viVN: Localization;
69
- export declare const zhCN: Localization;
70
- export declare const zhHK: Localization;
71
- export declare const zhTW: Localization;
1
+ import { ComponentsPropsList } from '../styles/props';
2
+ export interface Localization {
3
+ components?: {
4
+ MuiAlert?: {
5
+ defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
+ };
7
+ MuiBreadcrumbs?: {
8
+ defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
+ };
10
+ MuiTablePagination?: {
11
+ defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
+ };
13
+ MuiRating?: {
14
+ defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
+ };
16
+ MuiAutocomplete?: {
17
+ defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
+ };
19
+ MuiPagination?: {
20
+ defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
+ };
22
+ };
23
+ }
24
+ export declare const amET: Localization;
25
+ export declare const arEG: Localization;
26
+ export declare const arSD: Localization;
27
+ export declare const azAZ: Localization;
28
+ export declare const bnBD: Localization;
29
+ export declare const bgBG: Localization;
30
+ export declare const caES: Localization;
31
+ export declare const csCZ: Localization;
32
+ export declare const daDK: Localization;
33
+ export declare const deDE: Localization;
34
+ export declare const elGR: Localization;
35
+ export declare const enUS: Localization;
36
+ export declare const esES: Localization;
37
+ export declare const etEE: Localization;
38
+ export declare const faIR: Localization;
39
+ export declare const fiFI: Localization;
40
+ export declare const frFR: Localization;
41
+ export declare const heIL: Localization;
42
+ export declare const hiIN: Localization;
43
+ export declare const hrHR: Localization;
44
+ export declare const huHU: Localization;
45
+ export declare const hyAM: Localization;
46
+ export declare const idID: Localization;
47
+ export declare const isIS: Localization;
48
+ export declare const itIT: Localization;
49
+ export declare const jaJP: Localization;
50
+ export declare const khKH: Localization;
51
+ export declare const koKR: Localization;
52
+ export declare const kzKZ: Localization;
53
+ export declare const mkMK: Localization;
54
+ export declare const nbNO: Localization;
55
+ export declare const nlNL: Localization;
56
+ export declare const plPL: Localization;
57
+ export declare const ptBR: Localization;
58
+ export declare const ptPT: Localization;
59
+ export declare const roRO: Localization;
60
+ export declare const srRS: Localization;
61
+ export declare const ruRU: Localization;
62
+ export declare const siLK: Localization;
63
+ export declare const skSK: Localization;
64
+ export declare const svSE: Localization;
65
+ export declare const thTH: Localization;
66
+ export declare const trTR: Localization;
67
+ export declare const ukUA: Localization;
68
+ export declare const viVN: Localization;
69
+ export declare const zhCN: Localization;
70
+ export declare const zhHK: Localization;
71
+ export declare const zhTW: Localization;
File without changes
@@ -1,12 +1,16 @@
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';
7
- import useThemeProps from '../styles/useThemeProps';
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';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
-
9
+ const PopperRoot = styled(PopperUnstyled, {
10
+ name: 'MuiPopper',
11
+ slot: 'Root',
12
+ overridesResolver: (props, styles) => styles.root
13
+ })({});
10
14
  /**
11
15
  *
12
16
  * Demos:
@@ -19,13 +23,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
19
23
  *
20
24
  * - [Popper API](https://mui.com/api/popper/)
21
25
  */
26
+
22
27
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
23
28
  const theme = useTheme();
24
29
  const props = useThemeProps({
25
30
  props: inProps,
26
31
  name: 'MuiPopper'
27
32
  });
28
- return /*#__PURE__*/_jsx(PopperUnstyled, _extends({
33
+ return /*#__PURE__*/_jsx(PopperRoot, _extends({
29
34
  direction: theme?.direction
30
35
  }, props, {
31
36
  ref: ref
@@ -129,6 +134,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
129
134
  */
130
135
  popperRef: refType,
131
136
 
137
+ /**
138
+ * The system prop that allows defining system overrides as well as additional CSS styles.
139
+ */
140
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
141
+
132
142
  /**
133
143
  * Help supporting a react-transition-group/Transition component.
134
144
  * @default false
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.5.1
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.
File without changes
@@ -9,17 +9,17 @@ exports.default = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
12
- var React = _interopRequireWildcard(require("react"));
13
-
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
15
-
16
12
  var _PopperUnstyled = _interopRequireDefault(require("@mui/base/PopperUnstyled"));
17
13
 
14
+ var _system = require("@mui/system");
15
+
18
16
  var _utils = require("@mui/utils");
19
17
 
20
- var _system = require("@mui/system");
18
+ var _propTypes = _interopRequireDefault(require("prop-types"));
19
+
20
+ var React = _interopRequireWildcard(require("react"));
21
21
 
22
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
22
+ var _styles = require("../styles");
23
23
 
24
24
  var _jsxRuntime = require("react/jsx-runtime");
25
25
 
@@ -27,6 +27,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
27
 
28
28
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
29
 
30
+ const PopperRoot = (0, _styles.styled)(_PopperUnstyled.default, {
31
+ name: 'MuiPopper',
32
+ slot: 'Root',
33
+ overridesResolver: (props, styles) => styles.root
34
+ })({});
30
35
  /**
31
36
  *
32
37
  * Demos:
@@ -39,13 +44,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
39
44
  *
40
45
  * - [Popper API](https://mui.com/api/popper/)
41
46
  */
47
+
42
48
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
43
49
  const theme = (0, _system.useThemeWithoutDefault)();
44
- const props = (0, _useThemeProps.default)({
50
+ const props = (0, _styles.useThemeProps)({
45
51
  props: inProps,
46
52
  name: 'MuiPopper'
47
53
  });
48
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PopperUnstyled.default, (0, _extends2.default)({
54
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(PopperRoot, (0, _extends2.default)({
49
55
  direction: theme == null ? void 0 : theme.direction
50
56
  }, props, {
51
57
  ref: ref
@@ -149,6 +155,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
149
155
  */
150
156
  popperRef: _utils.refType,
151
157
 
158
+ /**
159
+ * The system prop that allows defining system overrides as well as additional CSS styles.
160
+ */
161
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
162
+
152
163
  /**
153
164
  * Help supporting a react-transition-group/Transition component.
154
165
  * @default false
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.5.1
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with 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.72",
50
- "@mui/system": "^5.5.1",
49
+ "@mui/base": "5.0.0-alpha.73",
50
+ "@mui/system": "^5.5.2",
51
51
  "@mui/types": "^7.1.3",
52
52
  "@mui/utils": "^5.4.4",
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.5.1
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.
@@ -13182,7 +13182,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13182
13182
  stopListening();
13183
13183
  });
13184
13184
  const handleTouchStart = useEventCallback(nativeEvent => {
13185
- // If touch-action: none; is not supported we need to prevent the scroll manually.
13185
+ if (disabled) {
13186
+ return;
13187
+ } // If touch-action: none; is not supported we need to prevent the scroll manually.
13188
+
13189
+
13186
13190
  if (!doesSupportTouchActionNone()) {
13187
13191
  nativeEvent.preventDefault();
13188
13192
  }
@@ -13254,6 +13258,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13254
13258
 
13255
13259
  (_otherHandlers$onMous = otherHandlers.onMouseDown) == null ? void 0 : _otherHandlers$onMous.call(otherHandlers, event);
13256
13260
 
13261
+ if (disabled) {
13262
+ return;
13263
+ }
13264
+
13257
13265
  if (event.defaultPrevented) {
13258
13266
  return;
13259
13267
  } // Only handle left clicks
@@ -19317,6 +19325,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19317
19325
  } ;
19318
19326
  var AppBar$1 = AppBar;
19319
19327
 
19328
+ const PopperRoot = styled$1(PopperUnstyled$1, {
19329
+ name: 'MuiPopper',
19330
+ slot: 'Root',
19331
+ overridesResolver: (props, styles) => styles.root
19332
+ })({});
19320
19333
  /**
19321
19334
  *
19322
19335
  * Demos:
@@ -19329,13 +19342,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19329
19342
  *
19330
19343
  * - [Popper API](https://mui.com/api/popper/)
19331
19344
  */
19345
+
19332
19346
  const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
19333
19347
  const theme = useTheme$2();
19334
19348
  const props = useThemeProps({
19335
19349
  props: inProps,
19336
19350
  name: 'MuiPopper'
19337
19351
  });
19338
- return /*#__PURE__*/jsxRuntime_1(PopperUnstyled$1, _extends({
19352
+ return /*#__PURE__*/jsxRuntime_1(PopperRoot, _extends({
19339
19353
  direction: theme == null ? void 0 : theme.direction
19340
19354
  }, props, {
19341
19355
  ref: ref
@@ -19439,6 +19453,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19439
19453
  */
19440
19454
  popperRef: refType$1,
19441
19455
 
19456
+ /**
19457
+ * The system prop that allows defining system overrides as well as additional CSS styles.
19458
+ */
19459
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
19460
+
19442
19461
  /**
19443
19462
  * Help supporting a react-transition-group/Transition component.
19444
19463
  * @default false