@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.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +91 -19
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/Popover.js +13 -1
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +24 -24
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/Popover/Popover.js +13 -1
- package/esm/utils/createSvgIcon.js +8 -6
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Popover/Popover.js +17 -1
- package/legacy/index.js +1 -1
- package/legacy/utils/createSvgIcon.js +2 -2
- package/locale/index.d.ts +72 -72
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Popover/Popover.js +13 -1
- package/modern/index.js +1 -1
- package/modern/utils/createSvgIcon.js +8 -6
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/components.d.ts +3 -0
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +57 -14
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/createSvgIcon.js +8 -6
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- 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.10.
|
|
3
|
+
"version": "5.10.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.19.0",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.10.
|
|
51
|
-
"@mui/system": "^5.10.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.102",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.10.10",
|
|
51
|
+
"@mui/system": "^5.10.10",
|
|
52
52
|
"@mui/types": "^7.2.0",
|
|
53
53
|
"@mui/utils": "^5.10.9",
|
|
54
54
|
"@types/react-transition-group": "^4.4.5",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
-
declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
|
|
4
|
-
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
5
|
-
theme?: {
|
|
6
|
-
cssVarPrefix?: string | undefined;
|
|
7
|
-
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
8
|
-
} | undefined;
|
|
9
|
-
documentNode?: Document | null | undefined;
|
|
10
|
-
colorSchemeNode?: Document | HTMLElement | null | undefined;
|
|
11
|
-
colorSchemeSelector?: string | undefined;
|
|
12
|
-
storageWindow?: Window | null | undefined;
|
|
13
|
-
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
14
|
-
export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
+
declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
|
|
4
|
+
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
5
|
+
theme?: {
|
|
6
|
+
cssVarPrefix?: string | undefined;
|
|
7
|
+
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
8
|
+
} | undefined;
|
|
9
|
+
documentNode?: Document | null | undefined;
|
|
10
|
+
colorSchemeNode?: Document | HTMLElement | null | undefined;
|
|
11
|
+
colorSchemeSelector?: string | undefined;
|
|
12
|
+
storageWindow?: Window | null | undefined;
|
|
13
|
+
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
14
|
+
export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
|
package/styles/components.d.ts
CHANGED
|
@@ -480,6 +480,9 @@ export interface Components<Theme = unknown> {
|
|
|
480
480
|
styleOverrides?: ComponentsOverrides<Theme>['MuiSvgIcon'];
|
|
481
481
|
variants?: ComponentsVariants['MuiSvgIcon'];
|
|
482
482
|
};
|
|
483
|
+
MuiSwipeableDrawer?: {
|
|
484
|
+
defaultProps?: ComponentsProps['MuiSwipeableDrawer'];
|
|
485
|
+
};
|
|
483
486
|
MuiSwitch?: {
|
|
484
487
|
defaultProps?: ComponentsProps['MuiSwitch'];
|
|
485
488
|
styleOverrides?: ComponentsOverrides<Theme>['MuiSwitch'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
-
*/
|
|
4
|
-
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
-
export default excludeVariablesFromRoot;
|
|
1
|
+
/**
|
|
2
|
+
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
+
*/
|
|
4
|
+
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
+
export default excludeVariablesFromRoot;
|
package/transitions/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/transitions/utils.d.ts
CHANGED
|
@@ -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.10.
|
|
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.
|
|
@@ -5896,7 +5896,7 @@
|
|
|
5896
5896
|
}
|
|
5897
5897
|
|
|
5898
5898
|
if (transform) {
|
|
5899
|
-
value = transform(value);
|
|
5899
|
+
value = transform(value, userValue);
|
|
5900
5900
|
}
|
|
5901
5901
|
|
|
5902
5902
|
return value;
|
|
@@ -6354,18 +6354,29 @@
|
|
|
6354
6354
|
const grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
|
|
6355
6355
|
var grid$1 = grid;
|
|
6356
6356
|
|
|
6357
|
+
function transform$1(value, userValue) {
|
|
6358
|
+
if (userValue === 'grey') {
|
|
6359
|
+
return userValue;
|
|
6360
|
+
}
|
|
6361
|
+
|
|
6362
|
+
return value;
|
|
6363
|
+
}
|
|
6364
|
+
|
|
6357
6365
|
const color = style$2({
|
|
6358
6366
|
prop: 'color',
|
|
6359
|
-
themeKey: 'palette'
|
|
6367
|
+
themeKey: 'palette',
|
|
6368
|
+
transform: transform$1
|
|
6360
6369
|
});
|
|
6361
6370
|
const bgcolor = style$2({
|
|
6362
6371
|
prop: 'bgcolor',
|
|
6363
6372
|
cssProperty: 'backgroundColor',
|
|
6364
|
-
themeKey: 'palette'
|
|
6373
|
+
themeKey: 'palette',
|
|
6374
|
+
transform: transform$1
|
|
6365
6375
|
});
|
|
6366
6376
|
const backgroundColor = style$2({
|
|
6367
6377
|
prop: 'backgroundColor',
|
|
6368
|
-
themeKey: 'palette'
|
|
6378
|
+
themeKey: 'palette',
|
|
6379
|
+
transform: transform$1
|
|
6369
6380
|
});
|
|
6370
6381
|
const palette = compose(color, bgcolor, backgroundColor);
|
|
6371
6382
|
var palette$1 = palette;
|
|
@@ -7745,7 +7756,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7745
7756
|
const parsedTheme = {};
|
|
7746
7757
|
walkObjectDeep(theme, (keys, value, arrayKeys) => {
|
|
7747
7758
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
7748
|
-
if (!shouldSkipGeneratingVar ||
|
|
7759
|
+
if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
|
|
7749
7760
|
// only create css & var if `shouldSkipGeneratingVar` return false
|
|
7750
7761
|
const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
|
|
7751
7762
|
Object.assign(css, {
|
|
@@ -14087,6 +14098,24 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14087
14098
|
} ;
|
|
14088
14099
|
var ModalUnstyled$1 = ModalUnstyled;
|
|
14089
14100
|
|
|
14101
|
+
/**
|
|
14102
|
+
* NoSsr purposely removes components from the subject of Server Side Rendering (SSR).
|
|
14103
|
+
*
|
|
14104
|
+
* This component can be useful in a variety of situations:
|
|
14105
|
+
*
|
|
14106
|
+
* * Escape hatch for broken dependencies not supporting SSR.
|
|
14107
|
+
* * Improve the time-to-first paint on the client by only rendering above the fold.
|
|
14108
|
+
* * Reduce the rendering time on the server.
|
|
14109
|
+
* * Under too heavy server load, you can turn on service degradation.
|
|
14110
|
+
*
|
|
14111
|
+
* Demos:
|
|
14112
|
+
*
|
|
14113
|
+
* - [No SSR](https://mui.com/base/react-no-ssr/)
|
|
14114
|
+
*
|
|
14115
|
+
* API:
|
|
14116
|
+
*
|
|
14117
|
+
* - [NoSsr API](https://mui.com/base/api/no-ssr/)
|
|
14118
|
+
*/
|
|
14090
14119
|
function NoSsr(props) {
|
|
14091
14120
|
const {
|
|
14092
14121
|
children,
|
|
@@ -14115,7 +14144,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14115
14144
|
= {
|
|
14116
14145
|
// ----------------------------- Warning --------------------------------
|
|
14117
14146
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14118
|
-
// | To update them edit
|
|
14147
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
14119
14148
|
// ----------------------------------------------------------------------
|
|
14120
14149
|
|
|
14121
14150
|
/**
|
|
@@ -17191,12 +17220,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17191
17220
|
var SvgIcon$1 = SvgIcon;
|
|
17192
17221
|
|
|
17193
17222
|
function createSvgIcon(path, displayName) {
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
|
|
17199
|
-
|
|
17223
|
+
function Component(props, ref) {
|
|
17224
|
+
return /*#__PURE__*/jsxRuntime_1(SvgIcon$1, _extends({
|
|
17225
|
+
"data-testid": `${displayName}Icon`,
|
|
17226
|
+
ref: ref
|
|
17227
|
+
}, props, {
|
|
17228
|
+
children: path
|
|
17229
|
+
}));
|
|
17230
|
+
}
|
|
17200
17231
|
|
|
17201
17232
|
{
|
|
17202
17233
|
// Need to set `displayName` on the inner component for React.memo.
|
|
@@ -37657,6 +37688,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37657
37688
|
transformOrigin: getTransformOriginValue(elemTransformOrigin)
|
|
37658
37689
|
};
|
|
37659
37690
|
}, [anchorEl, anchorReference, getAnchorOffset, getTransformOrigin, marginThreshold]);
|
|
37691
|
+
const [isPositioned, setIsPositioned] = React__namespace.useState(open);
|
|
37660
37692
|
const setPositioningStyles = React__namespace.useCallback(() => {
|
|
37661
37693
|
const element = paperRef.current;
|
|
37662
37694
|
|
|
@@ -37675,6 +37707,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37675
37707
|
}
|
|
37676
37708
|
|
|
37677
37709
|
element.style.transformOrigin = positioning.transformOrigin;
|
|
37710
|
+
setIsPositioned(true);
|
|
37678
37711
|
}, [getPositioningStyle]);
|
|
37679
37712
|
|
|
37680
37713
|
const handleEntering = (element, isAppearing) => {
|
|
@@ -37685,6 +37718,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37685
37718
|
setPositioningStyles();
|
|
37686
37719
|
};
|
|
37687
37720
|
|
|
37721
|
+
const handleExited = () => {
|
|
37722
|
+
setIsPositioned(false);
|
|
37723
|
+
};
|
|
37724
|
+
|
|
37688
37725
|
React__namespace.useEffect(() => {
|
|
37689
37726
|
if (open) {
|
|
37690
37727
|
setPositioningStyles();
|
|
@@ -37734,13 +37771,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37734
37771
|
appear: true,
|
|
37735
37772
|
in: open,
|
|
37736
37773
|
onEntering: handleEntering,
|
|
37774
|
+
onExited: handleExited,
|
|
37737
37775
|
timeout: transitionDuration
|
|
37738
37776
|
}, TransitionProps, {
|
|
37739
37777
|
children: /*#__PURE__*/jsxRuntime_1(PopoverPaper, _extends({
|
|
37740
37778
|
elevation: elevation
|
|
37741
37779
|
}, PaperProps, {
|
|
37742
37780
|
ref: handlePaperRef,
|
|
37743
|
-
className: clsx(classes.paper, PaperProps.className)
|
|
37781
|
+
className: clsx(classes.paper, PaperProps.className)
|
|
37782
|
+
}, isPositioned ? undefined : {
|
|
37783
|
+
style: _extends({}, PaperProps.style, {
|
|
37784
|
+
opacity: 0
|
|
37785
|
+
})
|
|
37786
|
+
}, {
|
|
37744
37787
|
ownerState: ownerState,
|
|
37745
37788
|
children: children
|
|
37746
37789
|
}))
|