@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.
Files changed (177) hide show
  1. package/Accordion/Accordion.js +6 -6
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/AccordionSummary.js +3 -3
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/appBarClasses.d.ts +28 -28
  10. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/AvatarGroup.js +2 -2
  13. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  14. package/Backdrop/backdropClasses.d.ts +10 -10
  15. package/Badge/Badge.js +2 -2
  16. package/Badge/badgeClasses.d.ts +24 -24
  17. package/BottomNavigation/BottomNavigation.js +1 -1
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/BottomNavigationAction.js +2 -2
  20. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  21. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  22. package/Button/buttonClasses.d.ts +76 -76
  23. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  24. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  25. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  26. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  27. package/CHANGELOG.md +65 -0
  28. package/Card/cardClasses.d.ts +8 -8
  29. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  30. package/CardActions/cardActionsClasses.d.ts +10 -10
  31. package/CardContent/cardContentClasses.d.ts +8 -8
  32. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  33. package/CardMedia/cardMediaClasses.d.ts +12 -12
  34. package/Checkbox/checkboxClasses.d.ts +18 -18
  35. package/Chip/chipClasses.d.ts +80 -80
  36. package/CircularProgress/CircularProgress.js +1 -1
  37. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  38. package/ClickAwayListener/index.d.ts +2 -2
  39. package/Collapse/collapseClasses.d.ts +18 -18
  40. package/Container/containerClasses.d.ts +22 -22
  41. package/Dialog/DialogContext.d.ts +6 -6
  42. package/Dialog/dialogClasses.d.ts +36 -36
  43. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  44. package/DialogContent/dialogContentClasses.d.ts +10 -10
  45. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  46. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  47. package/Divider/dividerClasses.d.ts +34 -34
  48. package/Drawer/drawerClasses.d.ts +30 -30
  49. package/Fab/fabClasses.d.ts +26 -26
  50. package/FilledInput/FilledInput.js +3 -1
  51. package/FilledInput/filledInputClasses.d.ts +40 -40
  52. package/FormControl/formControlClasses.d.ts +14 -14
  53. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  54. package/FormGroup/formGroupClasses.d.ts +12 -12
  55. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  56. package/FormLabel/formLabelClasses.d.ts +22 -22
  57. package/Grid/gridClasses.d.ts +48 -48
  58. package/Icon/iconClasses.d.ts +24 -24
  59. package/IconButton/iconButtonClasses.d.ts +26 -26
  60. package/ImageList/imageListClasses.d.ts +16 -16
  61. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  62. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  63. package/Input/inputClasses.d.ts +34 -34
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/inputBaseClasses.d.ts +44 -44
  66. package/InputLabel/inputLabelClasses.d.ts +32 -32
  67. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  68. package/Link/linkClasses.d.ts +18 -18
  69. package/List/listClasses.d.ts +14 -14
  70. package/ListItem/listItemClasses.d.ts +30 -30
  71. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  72. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  73. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  74. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  75. package/ListItemText/listItemTextClasses.d.ts +18 -18
  76. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  77. package/Menu/menuClasses.d.ts +12 -12
  78. package/MenuItem/menuItemClasses.d.ts +20 -20
  79. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  80. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  81. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  82. package/Pagination/paginationClasses.d.ts +14 -14
  83. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  84. package/Paper/paperClasses.d.ts +39 -39
  85. package/Popover/popoverClasses.d.ts +10 -10
  86. package/Popper/Popper.d.ts +29 -29
  87. package/README.md +0 -2
  88. package/Radio/radioClasses.d.ts +16 -16
  89. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  90. package/RadioGroup/useRadioGroup.d.ts +4 -4
  91. package/Rating/ratingClasses.d.ts +40 -40
  92. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  93. package/Select/selectClasses.d.ts +30 -30
  94. package/Skeleton/skeletonClasses.d.ts +24 -24
  95. package/Snackbar/snackbarClasses.d.ts +20 -20
  96. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  97. package/SpeedDial/speedDialClasses.d.ts +22 -22
  98. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  99. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  100. package/Step/StepContext.d.ts +20 -20
  101. package/Step/stepClasses.d.ts +16 -16
  102. package/StepButton/stepButtonClasses.d.ts +14 -14
  103. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  104. package/StepContent/stepContentClasses.d.ts +12 -12
  105. package/StepIcon/stepIconClasses.d.ts +16 -16
  106. package/StepLabel/stepLabelClasses.d.ts +28 -28
  107. package/Stepper/stepperClasses.d.ts +14 -14
  108. package/SvgIcon/svgIconClasses.d.ts +24 -24
  109. package/Switch/switchClasses.d.ts +32 -32
  110. package/Tab/tabClasses.d.ts +26 -26
  111. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  112. package/Table/tableClasses.d.ts +10 -10
  113. package/TableBody/tableBodyClasses.d.ts +8 -8
  114. package/TableCell/tableCellClasses.d.ts +32 -32
  115. package/TableContainer/tableContainerClasses.d.ts +8 -8
  116. package/TableFooter/tableFooterClasses.d.ts +8 -8
  117. package/TableHead/tableHeadClasses.d.ts +8 -8
  118. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  119. package/TableRow/tableRowClasses.d.ts +16 -16
  120. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  121. package/Tabs/Tabs.d.ts +1 -1
  122. package/Tabs/tabsClasses.d.ts +32 -32
  123. package/TextField/textFieldClasses.d.ts +8 -8
  124. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  125. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  126. package/Toolbar/toolbarClasses.d.ts +14 -14
  127. package/Tooltip/tooltipClasses.d.ts +30 -30
  128. package/Typography/typographyClasses.d.ts +50 -50
  129. package/className/index.d.ts +8 -8
  130. package/darkScrollbar/index.d.ts +28 -28
  131. package/index.js +1 -1
  132. package/internal/switchBaseClasses.d.ts +12 -12
  133. package/legacy/Accordion/Accordion.js +6 -6
  134. package/legacy/AccordionSummary/AccordionSummary.js +3 -3
  135. package/legacy/AvatarGroup/AvatarGroup.js +2 -2
  136. package/legacy/Badge/Badge.js +2 -2
  137. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  138. package/legacy/BottomNavigationAction/BottomNavigationAction.js +2 -2
  139. package/legacy/CircularProgress/CircularProgress.js +1 -1
  140. package/legacy/FilledInput/FilledInput.js +2 -2
  141. package/legacy/index.js +1 -1
  142. package/legacy/locale/index.js +1 -1
  143. package/locale/index.d.ts +71 -71
  144. package/locale/index.js +1 -1
  145. package/modern/Accordion/Accordion.js +6 -6
  146. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  147. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  148. package/modern/Badge/Badge.js +2 -2
  149. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  150. package/modern/BottomNavigationAction/BottomNavigationAction.js +2 -2
  151. package/modern/CircularProgress/CircularProgress.js +1 -1
  152. package/modern/FilledInput/FilledInput.js +1 -1
  153. package/modern/index.js +1 -1
  154. package/modern/locale/index.js +1 -1
  155. package/node/Accordion/Accordion.js +6 -6
  156. package/node/AccordionSummary/AccordionSummary.js +3 -3
  157. package/node/AvatarGroup/AvatarGroup.js +2 -2
  158. package/node/Badge/Badge.js +2 -2
  159. package/node/BottomNavigation/BottomNavigation.js +1 -1
  160. package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
  161. package/node/CircularProgress/CircularProgress.js +1 -1
  162. package/node/FilledInput/FilledInput.js +3 -1
  163. package/node/index.js +1 -1
  164. package/node/locale/index.js +1 -1
  165. package/package.json +3 -3
  166. package/transitions/index.d.ts +1 -1
  167. package/transitions/transition.d.ts +13 -13
  168. package/transitions/utils.d.ts +23 -23
  169. package/umd/material-ui.development.js +59 -65
  170. package/umd/material-ui.production.min.js +20 -20
  171. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  172. package/useTouchRipple/index.d.ts +1 -1
  173. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  174. package/utils/getScrollbarSize.d.ts +2 -2
  175. package/utils/ownerDocument.d.ts +2 -2
  176. package/utils/ownerWindow.d.ts +2 -2
  177. package/utils/setRef.d.ts +2 -2
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.3
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.
@@ -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",
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.78",
50
- "@mui/system": "^5.6.3",
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",
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';
@@ -1,13 +1,13 @@
1
- import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
- import * as React from 'react';
3
- export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
- export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
- export interface EasingProps {
6
- easing: string | {
7
- enter?: string;
8
- exit?: string;
9
- };
10
- }
11
- export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
- export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
- }
1
+ import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
+ import * as React from 'react';
3
+ export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
+ export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
+ }
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.3
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$d = ["theme"],
6888
- _excluded3$2 = ["theme"];
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$d);
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) : slotStyle;
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$2);
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 && typeof temp === 'object') {
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, object);
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: baseTheme = {},
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 (!baseTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !baseTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
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: colorSchemesProp = {}
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
- } = _deepmerge,
7985
- mergedTheme = _objectWithoutPropertiesLoose(_deepmerge, _excluded3$1);
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(mergedTheme, {
8013
+ } = cssVarsParser(theme, {
8026
8014
  prefix,
8027
8015
  basePrefix: designSystemPrefix,
8028
8016
  shouldSkipGeneratingVar
8029
8017
  });
8030
- mergedTheme = _extends({}, parsedTheme, {
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
- mergedTheme.vars = deepmerge(mergedTheme.vars, vars);
8036
+ theme.vars = deepmerge(theme.vars, vars);
8051
8037
 
8052
8038
  if (key === resolvedColorScheme) {
8053
- mergedTheme = _extends({}, mergedTheme, parsedScheme);
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(mergedTheme) : mergedTheme,
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