@mui/material 5.9.0 → 5.9.1
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/TouchRipple.js +1 -1
- 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 +61 -1
- 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 +80 -80
- 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 +44 -44
- 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/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +24 -24
- package/README.md +2 -6
- 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 +24 -24
- package/Slider/Slider.js +3 -2
- 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 +24 -24
- 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/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/ButtonBase/TouchRipple.js +1 -1
- package/legacy/Slider/Slider.js +3 -2
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +71 -71
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/ButtonBase/TouchRipple.js +1 -1
- package/modern/Slider/Slider.js +3 -2
- package/modern/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/Slider/Slider.js +3 -2
- package/node/index.js +1 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +14 -14
- 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 +47 -15
- package/umd/material-ui.production.min.js +5 -5
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- 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
|
@@ -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/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.9.
|
|
1
|
+
/** @license MUI v5.9.1
|
|
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.
|
|
@@ -5701,7 +5701,7 @@
|
|
|
5701
5701
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
5702
5702
|
var _breakpointsInput$key;
|
|
5703
5703
|
|
|
5704
|
-
const breakpointsInOrder =
|
|
5704
|
+
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
|
|
5705
5705
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
5706
5706
|
acc[breakpointStyleKey] = {};
|
|
5707
5707
|
return acc;
|
|
@@ -8601,14 +8601,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8601
8601
|
flexWrap: ownerState.wrap
|
|
8602
8602
|
}, {
|
|
8603
8603
|
margin: `calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)`
|
|
8604
|
-
}, ownerState.
|
|
8604
|
+
}, ownerState.disableEqualOverflow && {
|
|
8605
|
+
margin: `calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)`
|
|
8606
|
+
}, ownerState.nested ? _extends({
|
|
8605
8607
|
padding: `calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)`
|
|
8606
|
-
}
|
|
8608
|
+
}, (ownerState.disableEqualOverflow || ownerState.parentDisableEqualOverflow) && {
|
|
8609
|
+
padding: `calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))`
|
|
8610
|
+
}) : {
|
|
8607
8611
|
'--Grid-nested-rowSpacing': 'var(--Grid-rowSpacing)',
|
|
8608
8612
|
'--Grid-nested-columnSpacing': 'var(--Grid-columnSpacing)'
|
|
8609
|
-
}) : {
|
|
8613
|
+
}) : _extends({
|
|
8610
8614
|
padding: `calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)`
|
|
8611
|
-
}
|
|
8615
|
+
}, ownerState.disableEqualOverflow && {
|
|
8616
|
+
padding: `calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))`
|
|
8617
|
+
}));
|
|
8612
8618
|
};
|
|
8613
8619
|
const generateSizeClassNames = gridSize => {
|
|
8614
8620
|
const classNames = [];
|
|
@@ -8645,7 +8651,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8645
8651
|
return [];
|
|
8646
8652
|
};
|
|
8647
8653
|
|
|
8648
|
-
const _excluded$2f = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing"];
|
|
8654
|
+
const _excluded$2f = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow"];
|
|
8649
8655
|
const defaultTheme$4 = createTheme$1(); // widening Theme to any so that the consumer can own the theme structure.
|
|
8650
8656
|
|
|
8651
8657
|
const defaultCreateStyledComponent = systemStyled('div', {
|
|
@@ -8670,6 +8676,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8670
8676
|
componentName = 'MuiGrid'
|
|
8671
8677
|
} = options;
|
|
8672
8678
|
const NestedContext = /*#__PURE__*/React__namespace.createContext(false);
|
|
8679
|
+
const OverflowContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
8673
8680
|
|
|
8674
8681
|
const useUtilityClasses = (ownerState, theme) => {
|
|
8675
8682
|
const {
|
|
@@ -8687,13 +8694,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8687
8694
|
|
|
8688
8695
|
const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);
|
|
8689
8696
|
const Grid = /*#__PURE__*/React__namespace.forwardRef(function Grid(inProps, ref) {
|
|
8690
|
-
var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin;
|
|
8697
|
+
var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin, _ref3, _disableEqualOverflow;
|
|
8691
8698
|
|
|
8692
8699
|
const theme = useTheme$1();
|
|
8693
8700
|
const themeProps = useThemeProps(inProps);
|
|
8694
8701
|
const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
|
|
8695
8702
|
|
|
8696
8703
|
const nested = React__namespace.useContext(NestedContext);
|
|
8704
|
+
const overflow = React__namespace.useContext(OverflowContext);
|
|
8697
8705
|
|
|
8698
8706
|
const {
|
|
8699
8707
|
className,
|
|
@@ -8704,9 +8712,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8704
8712
|
wrap = 'wrap',
|
|
8705
8713
|
spacing: spacingProp = 0,
|
|
8706
8714
|
rowSpacing: rowSpacingProp = spacingProp,
|
|
8707
|
-
columnSpacing: columnSpacingProp = spacingProp
|
|
8715
|
+
columnSpacing: columnSpacingProp = spacingProp,
|
|
8716
|
+
disableEqualOverflow: themeDisableEqualOverflow
|
|
8708
8717
|
} = props,
|
|
8709
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$2f); //
|
|
8718
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2f); // Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
|
|
8719
|
+
|
|
8720
|
+
|
|
8721
|
+
let disableEqualOverflow = themeDisableEqualOverflow;
|
|
8722
|
+
|
|
8723
|
+
if (nested && themeDisableEqualOverflow !== undefined) {
|
|
8724
|
+
disableEqualOverflow = inProps.disableEqualOverflow;
|
|
8725
|
+
} // collect breakpoints related props because they can be customized from the theme.
|
|
8710
8726
|
|
|
8711
8727
|
|
|
8712
8728
|
const gridSize = {};
|
|
@@ -8736,7 +8752,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8736
8752
|
rowSpacing,
|
|
8737
8753
|
columnSpacing,
|
|
8738
8754
|
gridSize,
|
|
8739
|
-
gridOffset
|
|
8755
|
+
gridOffset,
|
|
8756
|
+
disableEqualOverflow: (_ref3 = (_disableEqualOverflow = disableEqualOverflow) != null ? _disableEqualOverflow : overflow) != null ? _ref3 : false,
|
|
8757
|
+
// use context value if exists.
|
|
8758
|
+
parentDisableEqualOverflow: overflow // for nested grid
|
|
8759
|
+
|
|
8740
8760
|
});
|
|
8741
8761
|
|
|
8742
8762
|
const classes = useUtilityClasses(ownerState, theme);
|
|
@@ -8755,6 +8775,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8755
8775
|
});
|
|
8756
8776
|
}
|
|
8757
8777
|
|
|
8778
|
+
if (disableEqualOverflow !== undefined && disableEqualOverflow !== (overflow != null ? overflow : false)) {
|
|
8779
|
+
// There are 2 possibilities that should wrap with the OverflowContext to communicate with the nested grids:
|
|
8780
|
+
// 1. It is the root grid with `disableEqualOverflow`.
|
|
8781
|
+
// 2. It is a nested grid with different `disableEqualOverflow` from the context.
|
|
8782
|
+
result = /*#__PURE__*/jsxRuntime_1(OverflowContext.Provider, {
|
|
8783
|
+
value: disableEqualOverflow,
|
|
8784
|
+
children: result
|
|
8785
|
+
});
|
|
8786
|
+
}
|
|
8787
|
+
|
|
8758
8788
|
return result;
|
|
8759
8789
|
});
|
|
8760
8790
|
Grid.propTypes
|
|
@@ -8767,6 +8797,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8767
8797
|
component: PropTypes.elementType,
|
|
8768
8798
|
container: PropTypes.bool,
|
|
8769
8799
|
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
|
8800
|
+
disableEqualOverflow: PropTypes.bool,
|
|
8770
8801
|
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8771
8802
|
lgOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8772
8803
|
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
@@ -9616,7 +9647,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9616
9647
|
option
|
|
9617
9648
|
});
|
|
9618
9649
|
|
|
9619
|
-
if (!disableCloseOnSelect && !event.ctrlKey && !event.metaKey) {
|
|
9650
|
+
if (!disableCloseOnSelect && (!event || !event.ctrlKey && !event.metaKey)) {
|
|
9620
9651
|
handleClose(event, reason);
|
|
9621
9652
|
}
|
|
9622
9653
|
|
|
@@ -19159,7 +19190,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19159
19190
|
const {
|
|
19160
19191
|
clientX,
|
|
19161
19192
|
clientY
|
|
19162
|
-
} = event.touches ? event.touches[0] : event;
|
|
19193
|
+
} = event.touches && event.touches.length > 0 ? event.touches[0] : event;
|
|
19163
19194
|
rippleX = Math.round(clientX - rect.left);
|
|
19164
19195
|
rippleY = Math.round(clientY - rect.top);
|
|
19165
19196
|
}
|
|
@@ -42674,7 +42705,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42674
42705
|
transition: theme.transitions.create(['transform'], {
|
|
42675
42706
|
duration: theme.transitions.duration.shortest
|
|
42676
42707
|
}),
|
|
42677
|
-
transformOrigin: 'bottom center',
|
|
42678
42708
|
transform: 'translateY(-100%) scale(0)',
|
|
42679
42709
|
position: 'absolute',
|
|
42680
42710
|
backgroundColor: (theme.vars || theme).palette.grey[600],
|
|
@@ -42686,6 +42716,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42686
42716
|
padding: '0.25rem 0.75rem'
|
|
42687
42717
|
}, ownerState.orientation === 'horizontal' && {
|
|
42688
42718
|
top: '-10px',
|
|
42719
|
+
transformOrigin: 'bottom center',
|
|
42689
42720
|
'&:before': {
|
|
42690
42721
|
position: 'absolute',
|
|
42691
42722
|
content: '""',
|
|
@@ -42698,7 +42729,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42698
42729
|
}
|
|
42699
42730
|
}, ownerState.orientation === 'vertical' && {
|
|
42700
42731
|
right: '30px',
|
|
42701
|
-
top: '
|
|
42732
|
+
top: '24px',
|
|
42733
|
+
transformOrigin: 'right center',
|
|
42702
42734
|
'&:before': {
|
|
42703
42735
|
position: 'absolute',
|
|
42704
42736
|
content: '""',
|