@mui/material 5.6.3 → 5.6.4
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/Accordion.js +6 -6
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/AccordionSummary.js +3 -3
- 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/AvatarGroup.js +2 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.js +2 -2
- package/Badge/badgeClasses.d.ts +24 -24
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- 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 +65 -0
- 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/CircularProgress.js +1 -1
- 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 +22 -22
- 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/FilledInput.js +3 -1
- 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/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 +29 -29
- package/README.md +0 -2
- 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/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/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/Tabs.d.ts +1 -1
- 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/className/index.d.ts +8 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Accordion/Accordion.js +6 -6
- package/legacy/AccordionSummary/AccordionSummary.js +3 -3
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/Badge/Badge.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/FilledInput/FilledInput.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +1 -1
- package/locale/index.d.ts +71 -71
- package/locale/index.js +1 -1
- package/modern/Accordion/Accordion.js +6 -6
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/Badge/Badge.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +1 -1
- package/node/Accordion/Accordion.js +6 -6
- package/node/AccordionSummary/AccordionSummary.js +3 -3
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/FilledInput/FilledInput.js +3 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +1 -1
- package/package.json +3 -3
- 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 +59 -65
- 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/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/node/Badge/Badge.js
CHANGED
|
@@ -107,8 +107,8 @@ const BadgeBadge = (0, _styled.default)('span', {
|
|
|
107
107
|
duration: theme.transitions.duration.enteringScreen
|
|
108
108
|
})
|
|
109
109
|
}, ownerState.color !== 'default' && {
|
|
110
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
111
|
-
color: theme.palette[ownerState.color].contrastText
|
|
110
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
111
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
112
112
|
}, ownerState.variant === 'dot' && {
|
|
113
113
|
borderRadius: RADIUS_DOT,
|
|
114
114
|
height: RADIUS_DOT * 2,
|
|
@@ -55,7 +55,7 @@ const BottomNavigationRoot = (0, _styled.default)('div', {
|
|
|
55
55
|
display: 'flex',
|
|
56
56
|
justifyContent: 'center',
|
|
57
57
|
height: 56,
|
|
58
|
-
backgroundColor: theme.palette.background.paper
|
|
58
|
+
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
59
59
|
}));
|
|
60
60
|
const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
|
|
61
61
|
const props = (0, _useThemeProps.default)({
|
|
@@ -69,7 +69,7 @@ const BottomNavigationActionRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
69
69
|
padding: '0px 12px',
|
|
70
70
|
minWidth: 80,
|
|
71
71
|
maxWidth: 168,
|
|
72
|
-
color: theme.palette.text.secondary,
|
|
72
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
73
73
|
flexDirection: 'column',
|
|
74
74
|
flex: '1'
|
|
75
75
|
}, !ownerState.showLabel && !ownerState.selected && {
|
|
@@ -78,7 +78,7 @@ const BottomNavigationActionRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
78
78
|
paddingTop: 0
|
|
79
79
|
}, {
|
|
80
80
|
[`&.${_bottomNavigationActionClasses.default.selected}`]: {
|
|
81
|
-
color: theme.palette.primary.main
|
|
81
|
+
color: (theme.vars || theme).palette.primary.main
|
|
82
82
|
}
|
|
83
83
|
}));
|
|
84
84
|
const BottomNavigationActionLabel = (0, _styled.default)('span', {
|
|
@@ -98,7 +98,7 @@ const CircularProgressRoot = (0, _styled.default)('span', {
|
|
|
98
98
|
}, ownerState.variant === 'determinate' && {
|
|
99
99
|
transition: theme.transitions.create('transform')
|
|
100
100
|
}, ownerState.color !== 'inherit' && {
|
|
101
|
-
color: theme.palette[ownerState.color].main
|
|
101
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
102
102
|
}), ({
|
|
103
103
|
ownerState
|
|
104
104
|
}) => ownerState.variant === 'indeterminate' && (0, _system.css)`
|
|
@@ -64,6 +64,8 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
64
64
|
theme,
|
|
65
65
|
ownerState
|
|
66
66
|
}) => {
|
|
67
|
+
var _theme$palette;
|
|
68
|
+
|
|
67
69
|
const light = theme.palette.mode === 'light';
|
|
68
70
|
const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
69
71
|
const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
|
|
@@ -91,7 +93,7 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
91
93
|
}
|
|
92
94
|
}, !ownerState.disableUnderline && {
|
|
93
95
|
'&:after': {
|
|
94
|
-
borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
|
|
96
|
+
borderBottom: `2px solid ${(_theme$palette = theme.palette[ownerState.color || 'primary']) == null ? void 0 : _theme$palette.main}`,
|
|
95
97
|
left: 0,
|
|
96
98
|
bottom: 0,
|
|
97
99
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
package/node/index.js
CHANGED
package/node/locale/index.js
CHANGED
|
@@ -632,7 +632,7 @@ const csCZ = {
|
|
|
632
632
|
'aria-label': 'Navigace stránkováním',
|
|
633
633
|
getItemAriaLabel: (type, page, selected) => {
|
|
634
634
|
if (type === 'page') {
|
|
635
|
-
return `${selected ? '' : 'Jít na '}${page} stránku`;
|
|
635
|
+
return `${selected ? '' : 'Jít na '}${page}. stránku`;
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
if (type === 'first') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.17.2",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/system": "^5.6.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.79",
|
|
50
|
+
"@mui/system": "^5.6.4",
|
|
51
51
|
"@mui/types": "^7.1.3",
|
|
52
52
|
"@mui/utils": "^5.6.1",
|
|
53
53
|
"@types/react-transition-group": "^4.4.4",
|
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.6.
|
|
1
|
+
/** @license MUI v5.6.4
|
|
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.
|
|
@@ -6884,8 +6884,8 @@
|
|
|
6884
6884
|
}
|
|
6885
6885
|
|
|
6886
6886
|
const _excluded$2g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6887
|
-
_excluded2$
|
|
6888
|
-
_excluded3$
|
|
6887
|
+
_excluded2$c = ["theme"],
|
|
6888
|
+
_excluded3$1 = ["theme"];
|
|
6889
6889
|
|
|
6890
6890
|
function isEmpty$1(obj) {
|
|
6891
6891
|
return Object.keys(obj).length === 0;
|
|
@@ -7003,7 +7003,7 @@
|
|
|
7003
7003
|
let {
|
|
7004
7004
|
theme: themeInput
|
|
7005
7005
|
} = _ref,
|
|
7006
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded2$
|
|
7006
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded2$c);
|
|
7007
7007
|
|
|
7008
7008
|
return stylesArg(_extends({
|
|
7009
7009
|
theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
|
|
@@ -7020,7 +7020,9 @@
|
|
|
7020
7020
|
if (styleOverrides) {
|
|
7021
7021
|
const resolvedStyleOverrides = {};
|
|
7022
7022
|
Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
|
|
7023
|
-
resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(props
|
|
7023
|
+
resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(_extends({}, props, {
|
|
7024
|
+
theme
|
|
7025
|
+
})) : slotStyle;
|
|
7024
7026
|
});
|
|
7025
7027
|
return overridesResolver(props, resolvedStyleOverrides);
|
|
7026
7028
|
}
|
|
@@ -7062,7 +7064,7 @@
|
|
|
7062
7064
|
let {
|
|
7063
7065
|
theme: themeInput
|
|
7064
7066
|
} = _ref2,
|
|
7065
|
-
other = _objectWithoutPropertiesLoose(_ref2, _excluded3$
|
|
7067
|
+
other = _objectWithoutPropertiesLoose(_ref2, _excluded3$1);
|
|
7066
7068
|
|
|
7067
7069
|
return styleArg(_extends({
|
|
7068
7070
|
theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
|
|
@@ -7501,16 +7503,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7501
7503
|
* assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
|
|
7502
7504
|
* console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
|
|
7503
7505
|
*/
|
|
7504
|
-
const assignNestedKeys = (obj, keys, value) => {
|
|
7506
|
+
const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
|
|
7505
7507
|
let temp = obj;
|
|
7506
7508
|
keys.forEach((k, index) => {
|
|
7507
7509
|
if (index === keys.length - 1) {
|
|
7508
|
-
if (temp
|
|
7510
|
+
if (Array.isArray(temp)) {
|
|
7511
|
+
temp[Number(k)] = value;
|
|
7512
|
+
} else if (temp && typeof temp === 'object') {
|
|
7509
7513
|
temp[k] = value;
|
|
7510
7514
|
}
|
|
7511
7515
|
} else if (temp && typeof temp === 'object') {
|
|
7512
7516
|
if (!temp[k]) {
|
|
7513
|
-
temp[k] = {};
|
|
7517
|
+
temp[k] = arrayKeys.includes(k) ? [] : {};
|
|
7514
7518
|
}
|
|
7515
7519
|
|
|
7516
7520
|
temp = temp[k];
|
|
@@ -7530,14 +7534,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7530
7534
|
*/
|
|
7531
7535
|
|
|
7532
7536
|
const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
|
|
7533
|
-
function recurse(object, parentKeys = []) {
|
|
7537
|
+
function recurse(object, parentKeys = [], arrayKeys = []) {
|
|
7534
7538
|
Object.entries(object).forEach(([key, value]) => {
|
|
7535
7539
|
if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {
|
|
7536
7540
|
if (value !== undefined && value !== null) {
|
|
7537
7541
|
if (typeof value === 'object' && Object.keys(value).length > 0) {
|
|
7538
|
-
recurse(value, [...parentKeys, key]);
|
|
7542
|
+
recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);
|
|
7539
7543
|
} else {
|
|
7540
|
-
callback([...parentKeys, key], value,
|
|
7544
|
+
callback([...parentKeys, key], value, arrayKeys);
|
|
7541
7545
|
}
|
|
7542
7546
|
}
|
|
7543
7547
|
}
|
|
@@ -7604,7 +7608,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7604
7608
|
const css = {};
|
|
7605
7609
|
const vars = {};
|
|
7606
7610
|
const parsedTheme = {};
|
|
7607
|
-
walkObjectDeep(theme, (keys, value) => {
|
|
7611
|
+
walkObjectDeep(theme, (keys, value, arrayKeys) => {
|
|
7608
7612
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
7609
7613
|
if (typeof value === 'string' && value.match(/var\(\s*--/)) {
|
|
7610
7614
|
// for CSS variable, apply prefix or remove basePrefix from the variable
|
|
@@ -7622,11 +7626,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7622
7626
|
Object.assign(css, {
|
|
7623
7627
|
[cssVar]: getCssValue(keys, value)
|
|
7624
7628
|
});
|
|
7625
|
-
assignNestedKeys(vars, keys, `var(${cssVar})
|
|
7629
|
+
assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
|
|
7626
7630
|
}
|
|
7627
7631
|
}
|
|
7628
7632
|
|
|
7629
|
-
assignNestedKeys(parsedTheme, keys, value);
|
|
7633
|
+
assignNestedKeys(parsedTheme, keys, value, arrayKeys);
|
|
7630
7634
|
}, keys => keys[0] === 'vars' // skip 'vars/*' paths
|
|
7631
7635
|
);
|
|
7632
7636
|
return {
|
|
@@ -7919,15 +7923,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7919
7923
|
return getCssVar;
|
|
7920
7924
|
}
|
|
7921
7925
|
|
|
7922
|
-
const _excluded$2f = ["colorSchemes"]
|
|
7923
|
-
_excluded2$c = ["colorSchemes"],
|
|
7924
|
-
_excluded3$1 = ["components"];
|
|
7926
|
+
const _excluded$2f = ["colorSchemes", "components"];
|
|
7925
7927
|
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
7926
7928
|
function createCssVarsProvider(options) {
|
|
7927
|
-
var _baseTheme$breakpoint;
|
|
7928
|
-
|
|
7929
7929
|
const {
|
|
7930
|
-
theme:
|
|
7930
|
+
theme: defaultTheme = {},
|
|
7931
7931
|
defaultMode: desisgnSystemMode = 'light',
|
|
7932
7932
|
defaultColorScheme: designSystemColorScheme,
|
|
7933
7933
|
disableTransitionOnChange: designSystemTransitionOnChange = false,
|
|
@@ -7936,10 +7936,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7936
7936
|
shouldSkipGeneratingVar,
|
|
7937
7937
|
resolveTheme
|
|
7938
7938
|
} = options;
|
|
7939
|
-
const systemSpacing = createSpacing(baseTheme.spacing);
|
|
7940
|
-
const systemBreakpoints = createBreakpoints((_baseTheme$breakpoint = baseTheme.breakpoints) != null ? _baseTheme$breakpoint : {});
|
|
7941
7939
|
|
|
7942
|
-
if (!
|
|
7940
|
+
if (!defaultTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !defaultTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
|
|
7943
7941
|
console.error(`MUI: \`${designSystemColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
|
|
7944
7942
|
}
|
|
7945
7943
|
|
|
@@ -7957,7 +7955,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7957
7955
|
|
|
7958
7956
|
function CssVarsProvider({
|
|
7959
7957
|
children,
|
|
7960
|
-
theme: themeProp =
|
|
7958
|
+
theme: themeProp = defaultTheme,
|
|
7961
7959
|
prefix = designSystemPrefix,
|
|
7962
7960
|
modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
|
|
7963
7961
|
attribute = DEFAULT_ATTRIBUTE,
|
|
@@ -7966,25 +7964,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7966
7964
|
disableTransitionOnChange = designSystemTransitionOnChange,
|
|
7967
7965
|
enableColorScheme = designSystemEnableColorScheme
|
|
7968
7966
|
}) {
|
|
7969
|
-
const
|
|
7970
|
-
colorSchemes: baseColorSchemes = {}
|
|
7971
|
-
} = baseTheme,
|
|
7972
|
-
restBaseTheme = _objectWithoutPropertiesLoose(baseTheme, _excluded$2f);
|
|
7967
|
+
const hasMounted = React__namespace.useRef(false);
|
|
7973
7968
|
|
|
7974
7969
|
const {
|
|
7975
|
-
colorSchemes
|
|
7976
|
-
} = themeProp,
|
|
7977
|
-
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded2$c);
|
|
7978
|
-
|
|
7979
|
-
const hasMounted = React__namespace.useRef(false); // eslint-disable-next-line prefer-const
|
|
7980
|
-
|
|
7981
|
-
let _deepmerge = deepmerge(restBaseTheme, restThemeProp),
|
|
7982
|
-
{
|
|
7970
|
+
colorSchemes = {},
|
|
7983
7971
|
components = {}
|
|
7984
|
-
} =
|
|
7985
|
-
|
|
7972
|
+
} = themeProp,
|
|
7973
|
+
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2f);
|
|
7986
7974
|
|
|
7987
|
-
const colorSchemes = deepmerge(baseColorSchemes, colorSchemesProp);
|
|
7988
7975
|
const allColorSchemes = Object.keys(colorSchemes);
|
|
7989
7976
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
7990
7977
|
const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
|
|
@@ -8018,22 +8005,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8018
8005
|
return colorScheme;
|
|
8019
8006
|
})();
|
|
8020
8007
|
|
|
8008
|
+
let theme = restThemeProp;
|
|
8021
8009
|
const {
|
|
8022
8010
|
css: rootCss,
|
|
8023
8011
|
vars: rootVars,
|
|
8024
8012
|
parsedTheme
|
|
8025
|
-
} = cssVarsParser(
|
|
8013
|
+
} = cssVarsParser(theme, {
|
|
8026
8014
|
prefix,
|
|
8027
8015
|
basePrefix: designSystemPrefix,
|
|
8028
8016
|
shouldSkipGeneratingVar
|
|
8029
8017
|
});
|
|
8030
|
-
|
|
8018
|
+
theme = _extends({}, parsedTheme, {
|
|
8031
8019
|
components,
|
|
8032
8020
|
colorSchemes,
|
|
8033
8021
|
prefix,
|
|
8034
8022
|
vars: rootVars,
|
|
8035
|
-
spacing: themeProp.spacing ? createSpacing(themeProp.spacing) : systemSpacing,
|
|
8036
|
-
breakpoints: themeProp.breakpoints ? createBreakpoints(themeProp.breakpoints) : systemBreakpoints,
|
|
8037
8023
|
getCssVar: createGetCssVar(prefix)
|
|
8038
8024
|
});
|
|
8039
8025
|
const styleSheet = {};
|
|
@@ -8047,10 +8033,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8047
8033
|
basePrefix: designSystemPrefix,
|
|
8048
8034
|
shouldSkipGeneratingVar
|
|
8049
8035
|
});
|
|
8050
|
-
|
|
8036
|
+
theme.vars = deepmerge(theme.vars, vars);
|
|
8051
8037
|
|
|
8052
8038
|
if (key === resolvedColorScheme) {
|
|
8053
|
-
|
|
8039
|
+
theme = _extends({}, theme, parsedScheme);
|
|
8040
|
+
|
|
8041
|
+
if (theme.palette) {
|
|
8042
|
+
// assign runtime mode & colorScheme
|
|
8043
|
+
theme.palette.mode = mode;
|
|
8044
|
+
theme.palette.colorScheme = resolvedColorScheme;
|
|
8045
|
+
}
|
|
8054
8046
|
}
|
|
8055
8047
|
|
|
8056
8048
|
const resolvedDefaultColorScheme = (() => {
|
|
@@ -8137,7 +8129,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8137
8129
|
}), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
|
|
8138
8130
|
styles: styleSheet
|
|
8139
8131
|
}), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
|
|
8140
|
-
theme: resolveTheme ? resolveTheme(
|
|
8132
|
+
theme: resolveTheme ? resolveTheme(theme) : theme,
|
|
8141
8133
|
children: children
|
|
8142
8134
|
})]
|
|
8143
8135
|
});
|
|
@@ -17475,7 +17467,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17475
17467
|
height: 1,
|
|
17476
17468
|
content: '""',
|
|
17477
17469
|
opacity: 1,
|
|
17478
|
-
backgroundColor: theme.palette.divider,
|
|
17470
|
+
backgroundColor: (theme.vars || theme).palette.divider,
|
|
17479
17471
|
transition: theme.transitions.create(['opacity', 'background-color'], transition)
|
|
17480
17472
|
},
|
|
17481
17473
|
'&:first-of-type': {
|
|
@@ -17500,7 +17492,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17500
17492
|
}
|
|
17501
17493
|
},
|
|
17502
17494
|
[`&.${accordionClasses$1.disabled}`]: {
|
|
17503
|
-
backgroundColor: theme.palette.action.disabledBackground
|
|
17495
|
+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
17504
17496
|
}
|
|
17505
17497
|
};
|
|
17506
17498
|
}, ({
|
|
@@ -17509,12 +17501,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17509
17501
|
}) => _extends({}, !ownerState.square && {
|
|
17510
17502
|
borderRadius: 0,
|
|
17511
17503
|
'&:first-of-type': {
|
|
17512
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
17513
|
-
borderTopRightRadius: theme.shape.borderRadius
|
|
17504
|
+
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
17505
|
+
borderTopRightRadius: (theme.vars || theme).shape.borderRadius
|
|
17514
17506
|
},
|
|
17515
17507
|
'&:last-of-type': {
|
|
17516
|
-
borderBottomLeftRadius: theme.shape.borderRadius,
|
|
17517
|
-
borderBottomRightRadius: theme.shape.borderRadius,
|
|
17508
|
+
borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
17509
|
+
borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
|
|
17518
17510
|
// Fix a rendering issue on Edge
|
|
17519
17511
|
'@supports (-ms-ime-align: auto)': {
|
|
17520
17512
|
borderBottomLeftRadius: 0,
|
|
@@ -18873,10 +18865,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18873
18865
|
padding: theme.spacing(0, 2),
|
|
18874
18866
|
transition: theme.transitions.create(['min-height', 'background-color'], transition),
|
|
18875
18867
|
[`&.${accordionSummaryClasses$1.focusVisible}`]: {
|
|
18876
|
-
backgroundColor: theme.palette.action.focus
|
|
18868
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
18877
18869
|
},
|
|
18878
18870
|
[`&.${accordionSummaryClasses$1.disabled}`]: {
|
|
18879
|
-
opacity: theme.palette.action.disabledOpacity
|
|
18871
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
18880
18872
|
},
|
|
18881
18873
|
[`&:hover:not(.${accordionSummaryClasses$1.disabled})`]: {
|
|
18882
18874
|
cursor: 'pointer'
|
|
@@ -18914,7 +18906,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18914
18906
|
theme
|
|
18915
18907
|
}) => ({
|
|
18916
18908
|
display: 'flex',
|
|
18917
|
-
color: theme.palette.action.active,
|
|
18909
|
+
color: (theme.vars || theme).palette.action.active,
|
|
18918
18910
|
transform: 'rotate(0deg)',
|
|
18919
18911
|
transition: theme.transitions.create('transform', {
|
|
18920
18912
|
duration: theme.transitions.duration.shortest
|
|
@@ -23011,7 +23003,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23011
23003
|
theme
|
|
23012
23004
|
}) => ({
|
|
23013
23005
|
[`& .${avatarClasses$1.root}`]: {
|
|
23014
|
-
border: `2px solid ${theme.palette.background.default}`,
|
|
23006
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
23015
23007
|
boxSizing: 'content-box',
|
|
23016
23008
|
marginLeft: -8,
|
|
23017
23009
|
'&:last-child': {
|
|
@@ -23028,7 +23020,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23028
23020
|
})(({
|
|
23029
23021
|
theme
|
|
23030
23022
|
}) => ({
|
|
23031
|
-
border: `2px solid ${theme.palette.background.default}`,
|
|
23023
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
23032
23024
|
boxSizing: 'content-box',
|
|
23033
23025
|
marginLeft: -8,
|
|
23034
23026
|
'&:last-child': {
|
|
@@ -23636,8 +23628,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23636
23628
|
duration: theme.transitions.duration.enteringScreen
|
|
23637
23629
|
})
|
|
23638
23630
|
}, ownerState.color !== 'default' && {
|
|
23639
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
23640
|
-
color: theme.palette[ownerState.color].contrastText
|
|
23631
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
23632
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
23641
23633
|
}, ownerState.variant === 'dot' && {
|
|
23642
23634
|
borderRadius: RADIUS_DOT,
|
|
23643
23635
|
height: RADIUS_DOT * 2,
|
|
@@ -23951,7 +23943,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23951
23943
|
display: 'flex',
|
|
23952
23944
|
justifyContent: 'center',
|
|
23953
23945
|
height: 56,
|
|
23954
|
-
backgroundColor: theme.palette.background.paper
|
|
23946
|
+
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
23955
23947
|
}));
|
|
23956
23948
|
const BottomNavigation = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigation(inProps, ref) {
|
|
23957
23949
|
const props = useThemeProps({
|
|
@@ -24098,7 +24090,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24098
24090
|
padding: '0px 12px',
|
|
24099
24091
|
minWidth: 80,
|
|
24100
24092
|
maxWidth: 168,
|
|
24101
|
-
color: theme.palette.text.secondary,
|
|
24093
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
24102
24094
|
flexDirection: 'column',
|
|
24103
24095
|
flex: '1'
|
|
24104
24096
|
}, !ownerState.showLabel && !ownerState.selected && {
|
|
@@ -24107,7 +24099,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24107
24099
|
paddingTop: 0
|
|
24108
24100
|
}, {
|
|
24109
24101
|
[`&.${bottomNavigationActionClasses$1.selected}`]: {
|
|
24110
|
-
color: theme.palette.primary.main
|
|
24102
|
+
color: (theme.vars || theme).palette.primary.main
|
|
24111
24103
|
}
|
|
24112
24104
|
}));
|
|
24113
24105
|
const BottomNavigationActionLabel = styled$1('span', {
|
|
@@ -26619,7 +26611,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
26619
26611
|
}, ownerState.variant === 'determinate' && {
|
|
26620
26612
|
transition: theme.transitions.create('transform')
|
|
26621
26613
|
}, ownerState.color !== 'inherit' && {
|
|
26622
|
-
color: theme.palette[ownerState.color].main
|
|
26614
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
26623
26615
|
}), ({
|
|
26624
26616
|
ownerState
|
|
26625
26617
|
}) => ownerState.variant === 'indeterminate' && css(_t3$2 || (_t3$2 = _$2`
|
|
@@ -29367,6 +29359,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29367
29359
|
theme,
|
|
29368
29360
|
ownerState
|
|
29369
29361
|
}) => {
|
|
29362
|
+
var _theme$palette;
|
|
29363
|
+
|
|
29370
29364
|
const light = theme.palette.mode === 'light';
|
|
29371
29365
|
const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
29372
29366
|
const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
|
|
@@ -29394,7 +29388,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29394
29388
|
}
|
|
29395
29389
|
}, !ownerState.disableUnderline && {
|
|
29396
29390
|
'&:after': {
|
|
29397
|
-
borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
|
|
29391
|
+
borderBottom: `2px solid ${(_theme$palette = theme.palette[ownerState.color || 'primary']) == null ? void 0 : _theme$palette.main}`,
|
|
29398
29392
|
left: 0,
|
|
29399
29393
|
bottom: 0,
|
|
29400
29394
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|