@mui/material 5.10.9 → 5.10.10

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 (160) 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 +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  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 +91 -19
  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 +96 -96
  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 +6 -6
  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/fabClasses.d.ts +26 -26
  44. package/FilledInput/filledInputClasses.d.ts +40 -40
  45. package/FormControl/formControlClasses.d.ts +14 -14
  46. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  47. package/FormGroup/formGroupClasses.d.ts +12 -12
  48. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  49. package/FormLabel/formLabelClasses.d.ts +22 -22
  50. package/Grid/gridClasses.d.ts +48 -48
  51. package/Icon/iconClasses.d.ts +24 -24
  52. package/IconButton/iconButtonClasses.d.ts +26 -26
  53. package/ImageList/imageListClasses.d.ts +16 -16
  54. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  55. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  56. package/Input/inputClasses.d.ts +34 -34
  57. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  58. package/InputBase/inputBaseClasses.d.ts +46 -46
  59. package/InputLabel/inputLabelClasses.d.ts +32 -32
  60. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  61. package/Link/getTextDecoration.d.ts +15 -15
  62. package/Link/linkClasses.d.ts +18 -18
  63. package/List/listClasses.d.ts +14 -14
  64. package/ListItem/listItemClasses.d.ts +30 -30
  65. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  66. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  67. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  68. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  69. package/ListItemText/listItemTextClasses.d.ts +18 -18
  70. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  71. package/Menu/menuClasses.d.ts +12 -12
  72. package/MenuItem/menuItemClasses.d.ts +20 -20
  73. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  74. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  75. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  76. package/OverridableComponentAugmentation.d.ts +31 -31
  77. package/Pagination/paginationClasses.d.ts +14 -14
  78. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  79. package/Paper/paperClasses.d.ts +39 -39
  80. package/Popover/Popover.js +13 -1
  81. package/Popover/popoverClasses.d.ts +10 -10
  82. package/Popper/Popper.d.ts +24 -24
  83. package/Radio/radioClasses.d.ts +16 -16
  84. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  85. package/RadioGroup/useRadioGroup.d.ts +4 -4
  86. package/Rating/ratingClasses.d.ts +40 -40
  87. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  88. package/Select/selectClasses.d.ts +30 -30
  89. package/Skeleton/skeletonClasses.d.ts +26 -26
  90. package/Snackbar/snackbarClasses.d.ts +20 -20
  91. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  92. package/SpeedDial/speedDialClasses.d.ts +22 -22
  93. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  94. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  95. package/Step/StepContext.d.ts +20 -20
  96. package/Step/stepClasses.d.ts +16 -16
  97. package/StepButton/stepButtonClasses.d.ts +14 -14
  98. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  99. package/StepContent/stepContentClasses.d.ts +12 -12
  100. package/StepIcon/stepIconClasses.d.ts +16 -16
  101. package/StepLabel/stepLabelClasses.d.ts +28 -28
  102. package/Stepper/StepperContext.d.ts +18 -18
  103. package/Stepper/stepperClasses.d.ts +14 -14
  104. package/SvgIcon/svgIconClasses.d.ts +26 -26
  105. package/Switch/switchClasses.d.ts +32 -32
  106. package/Tab/tabClasses.d.ts +26 -26
  107. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  108. package/Table/tableClasses.d.ts +10 -10
  109. package/TableBody/tableBodyClasses.d.ts +8 -8
  110. package/TableCell/tableCellClasses.d.ts +32 -32
  111. package/TableContainer/tableContainerClasses.d.ts +8 -8
  112. package/TableFooter/tableFooterClasses.d.ts +8 -8
  113. package/TableHead/tableHeadClasses.d.ts +8 -8
  114. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  115. package/TableRow/tableRowClasses.d.ts +16 -16
  116. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  117. package/Tabs/tabsClasses.d.ts +32 -32
  118. package/TextField/textFieldClasses.d.ts +8 -8
  119. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  120. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  121. package/Toolbar/toolbarClasses.d.ts +14 -14
  122. package/Tooltip/tooltipClasses.d.ts +30 -30
  123. package/Typography/typographyClasses.d.ts +50 -50
  124. package/Unstable_Grid2/Grid2.d.ts +4 -4
  125. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  126. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  127. package/Unstable_Grid2/index.d.ts +4 -4
  128. package/className/index.d.ts +1 -1
  129. package/darkScrollbar/index.d.ts +28 -28
  130. package/esm/BottomNavigation/BottomNavigation.js +0 -0
  131. package/esm/Popover/Popover.js +13 -1
  132. package/esm/utils/createSvgIcon.js +8 -6
  133. package/index.js +1 -1
  134. package/internal/switchBaseClasses.d.ts +12 -12
  135. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  136. package/legacy/Popover/Popover.js +17 -1
  137. package/legacy/index.js +1 -1
  138. package/legacy/utils/createSvgIcon.js +2 -2
  139. package/locale/index.d.ts +72 -72
  140. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  141. package/modern/Popover/Popover.js +13 -1
  142. package/modern/index.js +1 -1
  143. package/modern/utils/createSvgIcon.js +8 -6
  144. package/package.json +4 -4
  145. package/styles/CssVarsProvider.d.ts +14 -14
  146. package/styles/components.d.ts +3 -0
  147. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  148. package/transitions/index.d.ts +1 -1
  149. package/transitions/transition.d.ts +13 -13
  150. package/transitions/utils.d.ts +23 -23
  151. package/umd/material-ui.development.js +57 -14
  152. package/umd/material-ui.production.min.js +20 -20
  153. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  154. package/useTouchRipple/index.d.ts +1 -1
  155. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  156. package/utils/createSvgIcon.js +8 -6
  157. package/utils/getScrollbarSize.d.ts +2 -2
  158. package/utils/ownerDocument.d.ts +2 -2
  159. package/utils/ownerWindow.d.ts +2 -2
  160. 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;
@@ -1,4 +1,4 @@
1
- import { OverridableComponent } from '@mui/types';
2
- import { Grid2TypeMap } from './Grid2Props';
3
- declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
4
- export default Grid2;
1
+ import { OverridableComponent } from '@mui/types';
2
+ import { Grid2TypeMap } from './Grid2Props';
3
+ declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
4
+ export default Grid2;
@@ -1,15 +1,15 @@
1
- import React from 'react';
2
- import { OverrideProps } from '@mui/types';
3
- import { SxProps, SystemProps } from '@mui/system';
4
- import { GridBaseProps } from '@mui/system/Unstable_Grid';
5
- import { Theme } from '../styles';
6
- export declare type Grid2Slot = 'root';
7
- export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
8
- props: P & GridBaseProps & {
9
- sx?: SxProps<Theme>;
10
- } & SystemProps<Theme>;
11
- defaultComponent: D;
12
- }
13
- export declare type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
- component?: React.ElementType;
15
- }> = OverrideProps<Grid2TypeMap<P, D>, D>;
1
+ import React from 'react';
2
+ import { OverrideProps } from '@mui/types';
3
+ import { SxProps, SystemProps } from '@mui/system';
4
+ import { GridBaseProps } from '@mui/system/Unstable_Grid';
5
+ import { Theme } from '../styles';
6
+ export declare type Grid2Slot = 'root';
7
+ export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
8
+ props: P & GridBaseProps & {
9
+ sx?: SxProps<Theme>;
10
+ } & SystemProps<Theme>;
11
+ defaultComponent: D;
12
+ }
13
+ export declare type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
+ component?: React.ElementType;
15
+ }> = OverrideProps<Grid2TypeMap<P, D>, D>;
@@ -1,5 +1,5 @@
1
- import { GridClasses } from '@mui/system/Unstable_Grid';
2
- export declare type Grid2ClassKey = keyof GridClasses;
3
- export declare function getGrid2UtilityClass(slot: string): string;
4
- declare const grid2Classes: GridClasses;
5
- export default grid2Classes;
1
+ import { GridClasses } from '@mui/system/Unstable_Grid';
2
+ export declare type Grid2ClassKey = keyof GridClasses;
3
+ export declare function getGrid2UtilityClass(slot: string): string;
4
+ declare const grid2Classes: GridClasses;
5
+ export default grid2Classes;
@@ -1,4 +1,4 @@
1
- export { default } from './Grid2';
2
- export * from './Grid2Props';
3
- export { default as grid2Classes } from './grid2Classes';
4
- export * from './grid2Classes';
1
+ export { default } from './Grid2';
2
+ export * from './Grid2Props';
3
+ export { default as grid2Classes } from './grid2Classes';
4
+ export * from './grid2Classes';
@@ -1 +1 @@
1
- export { unstable_ClassNameGenerator } from '@mui/utils';
1
+ export { unstable_ClassNameGenerator } from '@mui/utils';
@@ -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
+ };
File without changes
@@ -237,6 +237,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
237
237
  transformOrigin: getTransformOriginValue(elemTransformOrigin)
238
238
  };
239
239
  }, [anchorEl, anchorReference, getAnchorOffset, getTransformOrigin, marginThreshold]);
240
+ const [isPositioned, setIsPositioned] = React.useState(open);
240
241
  const setPositioningStyles = React.useCallback(() => {
241
242
  const element = paperRef.current;
242
243
 
@@ -255,6 +256,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
255
256
  }
256
257
 
257
258
  element.style.transformOrigin = positioning.transformOrigin;
259
+ setIsPositioned(true);
258
260
  }, [getPositioningStyle]);
259
261
 
260
262
  const handleEntering = (element, isAppearing) => {
@@ -265,6 +267,10 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
265
267
  setPositioningStyles();
266
268
  };
267
269
 
270
+ const handleExited = () => {
271
+ setIsPositioned(false);
272
+ };
273
+
268
274
  React.useEffect(() => {
269
275
  if (open) {
270
276
  setPositioningStyles();
@@ -314,13 +320,19 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
314
320
  appear: true,
315
321
  in: open,
316
322
  onEntering: handleEntering,
323
+ onExited: handleExited,
317
324
  timeout: transitionDuration
318
325
  }, TransitionProps, {
319
326
  children: /*#__PURE__*/_jsx(PopoverPaper, _extends({
320
327
  elevation: elevation
321
328
  }, PaperProps, {
322
329
  ref: handlePaperRef,
323
- className: clsx(classes.paper, PaperProps.className),
330
+ className: clsx(classes.paper, PaperProps.className)
331
+ }, isPositioned ? undefined : {
332
+ style: _extends({}, PaperProps.style, {
333
+ opacity: 0
334
+ })
335
+ }, {
324
336
  ownerState: ownerState,
325
337
  children: children
326
338
  }))
@@ -7,12 +7,14 @@ import SvgIcon from '../SvgIcon';
7
7
 
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  export default function createSvgIcon(path, displayName) {
10
- const Component = (props, ref) => /*#__PURE__*/_jsx(SvgIcon, _extends({
11
- "data-testid": `${displayName}Icon`,
12
- ref: ref
13
- }, props, {
14
- children: path
15
- }));
10
+ function Component(props, ref) {
11
+ return /*#__PURE__*/_jsx(SvgIcon, _extends({
12
+ "data-testid": `${displayName}Icon`,
13
+ ref: ref
14
+ }, props, {
15
+ children: path
16
+ }));
17
+ }
16
18
 
17
19
  if (process.env.NODE_ENV !== 'production') {
18
20
  // Need to set `displayName` on the inner component for React.memo.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.9
1
+ /** @license MUI v5.10.10
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;
File without changes
@@ -248,6 +248,11 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
248
248
  transformOrigin: getTransformOriginValue(elemTransformOrigin)
249
249
  };
250
250
  }, [anchorEl, anchorReference, getAnchorOffset, getTransformOrigin, marginThreshold]);
251
+
252
+ var _React$useState = React.useState(open),
253
+ isPositioned = _React$useState[0],
254
+ setIsPositioned = _React$useState[1];
255
+
251
256
  var setPositioningStyles = React.useCallback(function () {
252
257
  var element = paperRef.current;
253
258
 
@@ -266,6 +271,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
266
271
  }
267
272
 
268
273
  element.style.transformOrigin = positioning.transformOrigin;
274
+ setIsPositioned(true);
269
275
  }, [getPositioningStyle]);
270
276
 
271
277
  var handleEntering = function handleEntering(element, isAppearing) {
@@ -276,6 +282,10 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
276
282
  setPositioningStyles();
277
283
  };
278
284
 
285
+ var handleExited = function handleExited() {
286
+ setIsPositioned(false);
287
+ };
288
+
279
289
  React.useEffect(function () {
280
290
  if (open) {
281
291
  setPositioningStyles();
@@ -327,13 +337,19 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
327
337
  appear: true,
328
338
  in: open,
329
339
  onEntering: handleEntering,
340
+ onExited: handleExited,
330
341
  timeout: transitionDuration
331
342
  }, TransitionProps, {
332
343
  children: /*#__PURE__*/_jsx(PopoverPaper, _extends({
333
344
  elevation: elevation
334
345
  }, PaperProps, {
335
346
  ref: handlePaperRef,
336
- className: clsx(classes.paper, PaperProps.className),
347
+ className: clsx(classes.paper, PaperProps.className)
348
+ }, isPositioned ? undefined : {
349
+ style: _extends({}, PaperProps.style, {
350
+ opacity: 0
351
+ })
352
+ }, {
337
353
  ownerState: ownerState,
338
354
  children: children
339
355
  }))
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.9
1
+ /** @license MUI v5.10.10
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.
@@ -7,14 +7,14 @@ import SvgIcon from '../SvgIcon';
7
7
 
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  export default function createSvgIcon(path, displayName) {
10
- var Component = function Component(props, ref) {
10
+ function Component(props, ref) {
11
11
  return /*#__PURE__*/_jsx(SvgIcon, _extends({
12
12
  "data-testid": "".concat(displayName, "Icon"),
13
13
  ref: ref
14
14
  }, props, {
15
15
  children: path
16
16
  }));
17
- };
17
+ }
18
18
 
19
19
  if (process.env.NODE_ENV !== 'production') {
20
20
  // Need to set `displayName` on the inner component for React.memo.
package/locale/index.d.ts CHANGED
@@ -1,72 +1,72 @@
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 arSA: Localization;
27
- export declare const arSD: Localization;
28
- export declare const azAZ: Localization;
29
- export declare const bnBD: Localization;
30
- export declare const bgBG: Localization;
31
- export declare const caES: Localization;
32
- export declare const csCZ: Localization;
33
- export declare const daDK: Localization;
34
- export declare const deDE: Localization;
35
- export declare const elGR: Localization;
36
- export declare const enUS: Localization;
37
- export declare const esES: Localization;
38
- export declare const etEE: Localization;
39
- export declare const faIR: Localization;
40
- export declare const fiFI: Localization;
41
- export declare const frFR: Localization;
42
- export declare const heIL: Localization;
43
- export declare const hiIN: Localization;
44
- export declare const hrHR: Localization;
45
- export declare const huHU: Localization;
46
- export declare const hyAM: Localization;
47
- export declare const idID: Localization;
48
- export declare const isIS: Localization;
49
- export declare const itIT: Localization;
50
- export declare const jaJP: Localization;
51
- export declare const khKH: Localization;
52
- export declare const koKR: Localization;
53
- export declare const kzKZ: Localization;
54
- export declare const mkMK: Localization;
55
- export declare const nbNO: Localization;
56
- export declare const nlNL: Localization;
57
- export declare const plPL: Localization;
58
- export declare const ptBR: Localization;
59
- export declare const ptPT: Localization;
60
- export declare const roRO: Localization;
61
- export declare const srRS: Localization;
62
- export declare const ruRU: Localization;
63
- export declare const siLK: Localization;
64
- export declare const skSK: Localization;
65
- export declare const svSE: Localization;
66
- export declare const thTH: Localization;
67
- export declare const trTR: Localization;
68
- export declare const ukUA: Localization;
69
- export declare const viVN: Localization;
70
- export declare const zhCN: Localization;
71
- export declare const zhHK: Localization;
72
- 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 arSA: Localization;
27
+ export declare const arSD: Localization;
28
+ export declare const azAZ: Localization;
29
+ export declare const bnBD: Localization;
30
+ export declare const bgBG: Localization;
31
+ export declare const caES: Localization;
32
+ export declare const csCZ: Localization;
33
+ export declare const daDK: Localization;
34
+ export declare const deDE: Localization;
35
+ export declare const elGR: Localization;
36
+ export declare const enUS: Localization;
37
+ export declare const esES: Localization;
38
+ export declare const etEE: Localization;
39
+ export declare const faIR: Localization;
40
+ export declare const fiFI: Localization;
41
+ export declare const frFR: Localization;
42
+ export declare const heIL: Localization;
43
+ export declare const hiIN: Localization;
44
+ export declare const hrHR: Localization;
45
+ export declare const huHU: Localization;
46
+ export declare const hyAM: Localization;
47
+ export declare const idID: Localization;
48
+ export declare const isIS: Localization;
49
+ export declare const itIT: Localization;
50
+ export declare const jaJP: Localization;
51
+ export declare const khKH: Localization;
52
+ export declare const koKR: Localization;
53
+ export declare const kzKZ: Localization;
54
+ export declare const mkMK: Localization;
55
+ export declare const nbNO: Localization;
56
+ export declare const nlNL: Localization;
57
+ export declare const plPL: Localization;
58
+ export declare const ptBR: Localization;
59
+ export declare const ptPT: Localization;
60
+ export declare const roRO: Localization;
61
+ export declare const srRS: Localization;
62
+ export declare const ruRU: Localization;
63
+ export declare const siLK: Localization;
64
+ export declare const skSK: Localization;
65
+ export declare const svSE: Localization;
66
+ export declare const thTH: Localization;
67
+ export declare const trTR: Localization;
68
+ export declare const ukUA: Localization;
69
+ export declare const viVN: Localization;
70
+ export declare const zhCN: Localization;
71
+ export declare const zhHK: Localization;
72
+ export declare const zhTW: Localization;
File without changes
@@ -237,6 +237,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
237
237
  transformOrigin: getTransformOriginValue(elemTransformOrigin)
238
238
  };
239
239
  }, [anchorEl, anchorReference, getAnchorOffset, getTransformOrigin, marginThreshold]);
240
+ const [isPositioned, setIsPositioned] = React.useState(open);
240
241
  const setPositioningStyles = React.useCallback(() => {
241
242
  const element = paperRef.current;
242
243
 
@@ -255,6 +256,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
255
256
  }
256
257
 
257
258
  element.style.transformOrigin = positioning.transformOrigin;
259
+ setIsPositioned(true);
258
260
  }, [getPositioningStyle]);
259
261
 
260
262
  const handleEntering = (element, isAppearing) => {
@@ -265,6 +267,10 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
265
267
  setPositioningStyles();
266
268
  };
267
269
 
270
+ const handleExited = () => {
271
+ setIsPositioned(false);
272
+ };
273
+
268
274
  React.useEffect(() => {
269
275
  if (open) {
270
276
  setPositioningStyles();
@@ -314,13 +320,19 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
314
320
  appear: true,
315
321
  in: open,
316
322
  onEntering: handleEntering,
323
+ onExited: handleExited,
317
324
  timeout: transitionDuration
318
325
  }, TransitionProps, {
319
326
  children: /*#__PURE__*/_jsx(PopoverPaper, _extends({
320
327
  elevation: elevation
321
328
  }, PaperProps, {
322
329
  ref: handlePaperRef,
323
- className: clsx(classes.paper, PaperProps.className),
330
+ className: clsx(classes.paper, PaperProps.className)
331
+ }, isPositioned ? undefined : {
332
+ style: _extends({}, PaperProps.style, {
333
+ opacity: 0
334
+ })
335
+ }, {
324
336
  ownerState: ownerState,
325
337
  children: children
326
338
  }))
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.9
1
+ /** @license MUI v5.10.10
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.
@@ -7,12 +7,14 @@ import SvgIcon from '../SvgIcon';
7
7
 
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  export default function createSvgIcon(path, displayName) {
10
- const Component = (props, ref) => /*#__PURE__*/_jsx(SvgIcon, _extends({
11
- "data-testid": `${displayName}Icon`,
12
- ref: ref
13
- }, props, {
14
- children: path
15
- }));
10
+ function Component(props, ref) {
11
+ return /*#__PURE__*/_jsx(SvgIcon, _extends({
12
+ "data-testid": `${displayName}Icon`,
13
+ ref: ref
14
+ }, props, {
15
+ children: path
16
+ }));
17
+ }
16
18
 
17
19
  if (process.env.NODE_ENV !== 'production') {
18
20
  // Need to set `displayName` on the inner component for React.memo.