@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
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
package/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.
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
@@ -59,7 +59,7 @@ var AccordionRoot = styled(Paper, {
59
59
  height: 1,
60
60
  content: '""',
61
61
  opacity: 1,
62
- backgroundColor: theme.palette.divider,
62
+ backgroundColor: (theme.vars || theme).palette.divider,
63
63
  transition: theme.transitions.create(['opacity', 'background-color'], transition)
64
64
  },
65
65
  '&:first-of-type': {
@@ -83,7 +83,7 @@ var AccordionRoot = styled(Paper, {
83
83
  }
84
84
  }
85
85
  }), _defineProperty(_ref3, "&.".concat(accordionClasses.disabled), {
86
- backgroundColor: theme.palette.action.disabledBackground
86
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
87
87
  }), _ref3;
88
88
  }, function (_ref4) {
89
89
  var theme = _ref4.theme,
@@ -91,12 +91,12 @@ var AccordionRoot = styled(Paper, {
91
91
  return _extends({}, !ownerState.square && {
92
92
  borderRadius: 0,
93
93
  '&:first-of-type': {
94
- borderTopLeftRadius: theme.shape.borderRadius,
95
- borderTopRightRadius: theme.shape.borderRadius
94
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
95
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius
96
96
  },
97
97
  '&:last-of-type': {
98
- borderBottomLeftRadius: theme.shape.borderRadius,
99
- borderBottomRightRadius: theme.shape.borderRadius,
98
+ borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
99
+ borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
100
100
  // Fix a rendering issue on Edge
101
101
  '@supports (-ms-ime-align: auto)': {
102
102
  borderBottomLeftRadius: 0,
@@ -47,9 +47,9 @@ var AccordionSummaryRoot = styled(ButtonBase, {
47
47
  padding: theme.spacing(0, 2),
48
48
  transition: theme.transitions.create(['min-height', 'background-color'], transition)
49
49
  }, _defineProperty(_extends2, "&.".concat(accordionSummaryClasses.focusVisible), {
50
- backgroundColor: theme.palette.action.focus
50
+ backgroundColor: (theme.vars || theme).palette.action.focus
51
51
  }), _defineProperty(_extends2, "&.".concat(accordionSummaryClasses.disabled), {
52
- opacity: theme.palette.action.disabledOpacity
52
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
53
53
  }), _defineProperty(_extends2, "&:hover:not(.".concat(accordionSummaryClasses.disabled, ")"), {
54
54
  cursor: 'pointer'
55
55
  }), _extends2), !ownerState.disableGutters && _defineProperty({}, "&.".concat(accordionSummaryClasses.expanded), {
@@ -87,7 +87,7 @@ var AccordionSummaryExpandIconWrapper = styled('div', {
87
87
  var theme = _ref5.theme;
88
88
  return _defineProperty({
89
89
  display: 'flex',
90
- color: theme.palette.action.active,
90
+ color: (theme.vars || theme).palette.action.active,
91
91
  transform: 'rotate(0deg)',
92
92
  transition: theme.transitions.create('transform', {
93
93
  duration: theme.transitions.duration.shortest
@@ -37,7 +37,7 @@ var AvatarGroupRoot = styled('div', {
37
37
 
38
38
  var theme = _ref.theme;
39
39
  return _ref2 = {}, _defineProperty(_ref2, "& .".concat(avatarClasses.root), {
40
- border: "2px solid ".concat(theme.palette.background.default),
40
+ border: "2px solid ".concat((theme.vars || theme).palette.background.default),
41
41
  boxSizing: 'content-box',
42
42
  marginLeft: -8,
43
43
  '&:last-child': {
@@ -54,7 +54,7 @@ var AvatarGroupAvatar = styled(Avatar, {
54
54
  })(function (_ref3) {
55
55
  var theme = _ref3.theme;
56
56
  return {
57
- border: "2px solid ".concat(theme.palette.background.default),
57
+ border: "2px solid ".concat((theme.vars || theme).palette.background.default),
58
58
  boxSizing: 'content-box',
59
59
  marginLeft: -8,
60
60
  '&:last-child': {
@@ -78,8 +78,8 @@ var BadgeBadge = styled('span', {
78
78
  duration: theme.transitions.duration.enteringScreen
79
79
  })
80
80
  }, ownerState.color !== 'default' && {
81
- backgroundColor: theme.palette[ownerState.color].main,
82
- color: theme.palette[ownerState.color].contrastText
81
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
82
+ color: (theme.vars || theme).palette[ownerState.color].contrastText
83
83
  }, ownerState.variant === 'dot' && {
84
84
  borderRadius: RADIUS_DOT,
85
85
  height: RADIUS_DOT * 2,
@@ -30,7 +30,7 @@ var BottomNavigationRoot = styled('div', {
30
30
  display: 'flex',
31
31
  justifyContent: 'center',
32
32
  height: 56,
33
- backgroundColor: theme.palette.background.paper
33
+ backgroundColor: (theme.vars || theme).palette.background.paper
34
34
  };
35
35
  });
36
36
  var BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
@@ -41,7 +41,7 @@ var BottomNavigationActionRoot = styled(ButtonBase, {
41
41
  padding: '0px 12px',
42
42
  minWidth: 80,
43
43
  maxWidth: 168,
44
- color: theme.palette.text.secondary,
44
+ color: (theme.vars || theme).palette.text.secondary,
45
45
  flexDirection: 'column',
46
46
  flex: '1'
47
47
  }, !ownerState.showLabel && !ownerState.selected && {
@@ -49,7 +49,7 @@ var BottomNavigationActionRoot = styled(ButtonBase, {
49
49
  }, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
50
50
  paddingTop: 0
51
51
  }, _defineProperty({}, "&.".concat(bottomNavigationActionClasses.selected), {
52
- color: theme.palette.primary.main
52
+ color: (theme.vars || theme).palette.primary.main
53
53
  }));
54
54
  });
55
55
  var BottomNavigationActionLabel = styled('span', {
@@ -47,7 +47,7 @@ var CircularProgressRoot = styled('span', {
47
47
  }, ownerState.variant === 'determinate' && {
48
48
  transition: theme.transitions.create('transform')
49
49
  }, ownerState.color !== 'inherit' && {
50
- color: theme.palette[ownerState.color].main
50
+ color: (theme.vars || theme).palette[ownerState.color].main
51
51
  });
52
52
  }, function (_ref2) {
53
53
  var ownerState = _ref2.ownerState;
@@ -35,7 +35,7 @@ var FilledInputRoot = styled(InputBaseRoot, {
35
35
  return [].concat(_toConsumableArray(inputBaseRootOverridesResolver(props, styles)), [!ownerState.disableUnderline && styles.underline]);
36
36
  }
37
37
  })(function (_ref) {
38
- var _extends2, _ref2;
38
+ var _extends2, _theme$palette, _ref2;
39
39
 
40
40
  var theme = _ref.theme,
41
41
  ownerState = _ref.ownerState;
@@ -64,7 +64,7 @@ var FilledInputRoot = styled(InputBaseRoot, {
64
64
  backgroundColor: light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)'
65
65
  }), _extends2), !ownerState.disableUnderline && (_ref2 = {
66
66
  '&:after': {
67
- borderBottom: "2px solid ".concat(theme.palette[ownerState.color].main),
67
+ borderBottom: "2px solid ".concat((_theme$palette = theme.palette[ownerState.color || 'primary']) == null ? void 0 : _theme$palette.main),
68
68
  left: 0,
69
69
  bottom: 0,
70
70
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
package/legacy/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.
@@ -636,7 +636,7 @@ export var csCZ = {
636
636
  'aria-label': 'Navigace stránkováním',
637
637
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
638
638
  if (type === 'page') {
639
- return "".concat(selected ? '' : 'Jít na ').concat(page, " str\xE1nku");
639
+ return "".concat(selected ? '' : 'Jít na ').concat(page, ". str\xE1nku");
640
640
  }
641
641
 
642
642
  if (type === 'first') {
package/locale/index.d.ts CHANGED
@@ -1,71 +1,71 @@
1
- import { ComponentsPropsList } from '../styles/props';
2
- export interface Localization {
3
- components?: {
4
- MuiAlert?: {
5
- defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
- };
7
- MuiBreadcrumbs?: {
8
- defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
- };
10
- MuiTablePagination?: {
11
- defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
- };
13
- MuiRating?: {
14
- defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
- };
16
- MuiAutocomplete?: {
17
- defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
- };
19
- MuiPagination?: {
20
- defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
- };
22
- };
23
- }
24
- export declare const amET: Localization;
25
- export declare const arEG: Localization;
26
- export declare const arSD: Localization;
27
- export declare const azAZ: Localization;
28
- export declare const bnBD: Localization;
29
- export declare const bgBG: Localization;
30
- export declare const caES: Localization;
31
- export declare const csCZ: Localization;
32
- export declare const daDK: Localization;
33
- export declare const deDE: Localization;
34
- export declare const elGR: Localization;
35
- export declare const enUS: Localization;
36
- export declare const esES: Localization;
37
- export declare const etEE: Localization;
38
- export declare const faIR: Localization;
39
- export declare const fiFI: Localization;
40
- export declare const frFR: Localization;
41
- export declare const heIL: Localization;
42
- export declare const hiIN: Localization;
43
- export declare const hrHR: Localization;
44
- export declare const huHU: Localization;
45
- export declare const hyAM: Localization;
46
- export declare const idID: Localization;
47
- export declare const isIS: Localization;
48
- export declare const itIT: Localization;
49
- export declare const jaJP: Localization;
50
- export declare const khKH: Localization;
51
- export declare const koKR: Localization;
52
- export declare const kzKZ: Localization;
53
- export declare const mkMK: Localization;
54
- export declare const nbNO: Localization;
55
- export declare const nlNL: Localization;
56
- export declare const plPL: Localization;
57
- export declare const ptBR: Localization;
58
- export declare const ptPT: Localization;
59
- export declare const roRO: Localization;
60
- export declare const srRS: Localization;
61
- export declare const ruRU: Localization;
62
- export declare const siLK: Localization;
63
- export declare const skSK: Localization;
64
- export declare const svSE: Localization;
65
- export declare const thTH: Localization;
66
- export declare const trTR: Localization;
67
- export declare const ukUA: Localization;
68
- export declare const viVN: Localization;
69
- export declare const zhCN: Localization;
70
- export declare const zhHK: Localization;
71
- export declare const zhTW: Localization;
1
+ import { ComponentsPropsList } from '../styles/props';
2
+ export interface Localization {
3
+ components?: {
4
+ MuiAlert?: {
5
+ defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
+ };
7
+ MuiBreadcrumbs?: {
8
+ defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
+ };
10
+ MuiTablePagination?: {
11
+ defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
+ };
13
+ MuiRating?: {
14
+ defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
+ };
16
+ MuiAutocomplete?: {
17
+ defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
+ };
19
+ MuiPagination?: {
20
+ defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
+ };
22
+ };
23
+ }
24
+ export declare const amET: Localization;
25
+ export declare const arEG: Localization;
26
+ export declare const arSD: Localization;
27
+ export declare const azAZ: Localization;
28
+ export declare const bnBD: Localization;
29
+ export declare const bgBG: Localization;
30
+ export declare const caES: Localization;
31
+ export declare const csCZ: Localization;
32
+ export declare const daDK: Localization;
33
+ export declare const deDE: Localization;
34
+ export declare const elGR: Localization;
35
+ export declare const enUS: Localization;
36
+ export declare const esES: Localization;
37
+ export declare const etEE: Localization;
38
+ export declare const faIR: Localization;
39
+ export declare const fiFI: Localization;
40
+ export declare const frFR: Localization;
41
+ export declare const heIL: Localization;
42
+ export declare const hiIN: Localization;
43
+ export declare const hrHR: Localization;
44
+ export declare const huHU: Localization;
45
+ export declare const hyAM: Localization;
46
+ export declare const idID: Localization;
47
+ export declare const isIS: Localization;
48
+ export declare const itIT: Localization;
49
+ export declare const jaJP: Localization;
50
+ export declare const khKH: Localization;
51
+ export declare const koKR: Localization;
52
+ export declare const kzKZ: Localization;
53
+ export declare const mkMK: Localization;
54
+ export declare const nbNO: Localization;
55
+ export declare const nlNL: Localization;
56
+ export declare const plPL: Localization;
57
+ export declare const ptBR: Localization;
58
+ export declare const ptPT: Localization;
59
+ export declare const roRO: Localization;
60
+ export declare const srRS: Localization;
61
+ export declare const ruRU: Localization;
62
+ export declare const siLK: Localization;
63
+ export declare const skSK: Localization;
64
+ export declare const svSE: Localization;
65
+ export declare const thTH: Localization;
66
+ export declare const trTR: Localization;
67
+ export declare const ukUA: Localization;
68
+ export declare const viVN: Localization;
69
+ export declare const zhCN: Localization;
70
+ export declare const zhHK: Localization;
71
+ export declare const zhTW: Localization;
package/locale/index.js CHANGED
@@ -619,7 +619,7 @@ export const csCZ = {
619
619
  'aria-label': 'Navigace stránkováním',
620
620
  getItemAriaLabel: (type, page, selected) => {
621
621
  if (type === 'page') {
622
- return `${selected ? '' : 'Jít na '}${page} stránku`;
622
+ return `${selected ? '' : 'Jít na '}${page}. stránku`;
623
623
  }
624
624
 
625
625
  if (type === 'first') {
@@ -62,7 +62,7 @@ const AccordionRoot = styled(Paper, {
62
62
  height: 1,
63
63
  content: '""',
64
64
  opacity: 1,
65
- backgroundColor: theme.palette.divider,
65
+ backgroundColor: (theme.vars || theme).palette.divider,
66
66
  transition: theme.transitions.create(['opacity', 'background-color'], transition)
67
67
  },
68
68
  '&:first-of-type': {
@@ -87,7 +87,7 @@ const AccordionRoot = styled(Paper, {
87
87
  }
88
88
  },
89
89
  [`&.${accordionClasses.disabled}`]: {
90
- backgroundColor: theme.palette.action.disabledBackground
90
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
91
91
  }
92
92
  };
93
93
  }, ({
@@ -96,12 +96,12 @@ const AccordionRoot = styled(Paper, {
96
96
  }) => _extends({}, !ownerState.square && {
97
97
  borderRadius: 0,
98
98
  '&:first-of-type': {
99
- borderTopLeftRadius: theme.shape.borderRadius,
100
- borderTopRightRadius: theme.shape.borderRadius
99
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
100
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius
101
101
  },
102
102
  '&:last-of-type': {
103
- borderBottomLeftRadius: theme.shape.borderRadius,
104
- borderBottomRightRadius: theme.shape.borderRadius,
103
+ borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
104
+ borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
105
105
  // Fix a rendering issue on Edge
106
106
  '@supports (-ms-ime-align: auto)': {
107
107
  borderBottomLeftRadius: 0,
@@ -46,10 +46,10 @@ const AccordionSummaryRoot = styled(ButtonBase, {
46
46
  padding: theme.spacing(0, 2),
47
47
  transition: theme.transitions.create(['min-height', 'background-color'], transition),
48
48
  [`&.${accordionSummaryClasses.focusVisible}`]: {
49
- backgroundColor: theme.palette.action.focus
49
+ backgroundColor: (theme.vars || theme).palette.action.focus
50
50
  },
51
51
  [`&.${accordionSummaryClasses.disabled}`]: {
52
- opacity: theme.palette.action.disabledOpacity
52
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
53
53
  },
54
54
  [`&:hover:not(.${accordionSummaryClasses.disabled})`]: {
55
55
  cursor: 'pointer'
@@ -87,7 +87,7 @@ const AccordionSummaryExpandIconWrapper = styled('div', {
87
87
  theme
88
88
  }) => ({
89
89
  display: 'flex',
90
- color: theme.palette.action.active,
90
+ color: (theme.vars || theme).palette.action.active,
91
91
  transform: 'rotate(0deg)',
92
92
  transition: theme.transitions.create('transform', {
93
93
  duration: theme.transitions.duration.shortest
@@ -38,7 +38,7 @@ const AvatarGroupRoot = styled('div', {
38
38
  theme
39
39
  }) => ({
40
40
  [`& .${avatarClasses.root}`]: {
41
- border: `2px solid ${theme.palette.background.default}`,
41
+ border: `2px solid ${(theme.vars || theme).palette.background.default}`,
42
42
  boxSizing: 'content-box',
43
43
  marginLeft: -8,
44
44
  '&:last-child': {
@@ -55,7 +55,7 @@ const AvatarGroupAvatar = styled(Avatar, {
55
55
  })(({
56
56
  theme
57
57
  }) => ({
58
- border: `2px solid ${theme.palette.background.default}`,
58
+ border: `2px solid ${(theme.vars || theme).palette.background.default}`,
59
59
  boxSizing: 'content-box',
60
60
  marginLeft: -8,
61
61
  '&:last-child': {
@@ -79,8 +79,8 @@ const BadgeBadge = styled('span', {
79
79
  duration: theme.transitions.duration.enteringScreen
80
80
  })
81
81
  }, ownerState.color !== 'default' && {
82
- backgroundColor: theme.palette[ownerState.color].main,
83
- color: theme.palette[ownerState.color].contrastText
82
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
83
+ color: (theme.vars || theme).palette[ownerState.color].contrastText
84
84
  }, ownerState.variant === 'dot' && {
85
85
  borderRadius: RADIUS_DOT,
86
86
  height: RADIUS_DOT * 2,
@@ -31,7 +31,7 @@ const BottomNavigationRoot = styled('div', {
31
31
  display: 'flex',
32
32
  justifyContent: 'center',
33
33
  height: 56,
34
- backgroundColor: theme.palette.background.paper
34
+ backgroundColor: (theme.vars || theme).palette.background.paper
35
35
  }));
36
36
  const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
37
37
  const props = useThemeProps({
@@ -45,7 +45,7 @@ const BottomNavigationActionRoot = styled(ButtonBase, {
45
45
  padding: '0px 12px',
46
46
  minWidth: 80,
47
47
  maxWidth: 168,
48
- color: theme.palette.text.secondary,
48
+ color: (theme.vars || theme).palette.text.secondary,
49
49
  flexDirection: 'column',
50
50
  flex: '1'
51
51
  }, !ownerState.showLabel && !ownerState.selected && {
@@ -54,7 +54,7 @@ const BottomNavigationActionRoot = styled(ButtonBase, {
54
54
  paddingTop: 0
55
55
  }, {
56
56
  [`&.${bottomNavigationActionClasses.selected}`]: {
57
- color: theme.palette.primary.main
57
+ color: (theme.vars || theme).palette.primary.main
58
58
  }
59
59
  }));
60
60
  const BottomNavigationActionLabel = styled('span', {
@@ -71,7 +71,7 @@ const CircularProgressRoot = styled('span', {
71
71
  }, ownerState.variant === 'determinate' && {
72
72
  transition: theme.transitions.create('transform')
73
73
  }, ownerState.color !== 'inherit' && {
74
- color: theme.palette[ownerState.color].main
74
+ color: (theme.vars || theme).palette[ownerState.color].main
75
75
  }), ({
76
76
  ownerState
77
77
  }) => ownerState.variant === 'indeterminate' && css`
@@ -66,7 +66,7 @@ const FilledInputRoot = styled(InputBaseRoot, {
66
66
  }
67
67
  }, !ownerState.disableUnderline && {
68
68
  '&:after': {
69
- borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
69
+ borderBottom: `2px solid ${theme.palette[ownerState.color || 'primary']?.main}`,
70
70
  left: 0,
71
71
  bottom: 0,
72
72
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
package/modern/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.
@@ -619,7 +619,7 @@ export const csCZ = {
619
619
  'aria-label': 'Navigace stránkováním',
620
620
  getItemAriaLabel: (type, page, selected) => {
621
621
  if (type === 'page') {
622
- return `${selected ? '' : 'Jít na '}${page} stránku`;
622
+ return `${selected ? '' : 'Jít na '}${page}. stránku`;
623
623
  }
624
624
 
625
625
  if (type === 'first') {
@@ -90,7 +90,7 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
90
90
  height: 1,
91
91
  content: '""',
92
92
  opacity: 1,
93
- backgroundColor: theme.palette.divider,
93
+ backgroundColor: (theme.vars || theme).palette.divider,
94
94
  transition: theme.transitions.create(['opacity', 'background-color'], transition)
95
95
  },
96
96
  '&:first-of-type': {
@@ -115,7 +115,7 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
115
115
  }
116
116
  },
117
117
  [`&.${_accordionClasses.default.disabled}`]: {
118
- backgroundColor: theme.palette.action.disabledBackground
118
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
119
119
  }
120
120
  };
121
121
  }, ({
@@ -124,12 +124,12 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
124
124
  }) => (0, _extends2.default)({}, !ownerState.square && {
125
125
  borderRadius: 0,
126
126
  '&:first-of-type': {
127
- borderTopLeftRadius: theme.shape.borderRadius,
128
- borderTopRightRadius: theme.shape.borderRadius
127
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
128
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius
129
129
  },
130
130
  '&:last-of-type': {
131
- borderBottomLeftRadius: theme.shape.borderRadius,
132
- borderBottomRightRadius: theme.shape.borderRadius,
131
+ borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
132
+ borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
133
133
  // Fix a rendering issue on Edge
134
134
  '@supports (-ms-ime-align: auto)': {
135
135
  borderBottomLeftRadius: 0,
@@ -70,10 +70,10 @@ const AccordionSummaryRoot = (0, _styled.default)(_ButtonBase.default, {
70
70
  padding: theme.spacing(0, 2),
71
71
  transition: theme.transitions.create(['min-height', 'background-color'], transition),
72
72
  [`&.${_accordionSummaryClasses.default.focusVisible}`]: {
73
- backgroundColor: theme.palette.action.focus
73
+ backgroundColor: (theme.vars || theme).palette.action.focus
74
74
  },
75
75
  [`&.${_accordionSummaryClasses.default.disabled}`]: {
76
- opacity: theme.palette.action.disabledOpacity
76
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
77
77
  },
78
78
  [`&:hover:not(.${_accordionSummaryClasses.default.disabled})`]: {
79
79
  cursor: 'pointer'
@@ -111,7 +111,7 @@ const AccordionSummaryExpandIconWrapper = (0, _styled.default)('div', {
111
111
  theme
112
112
  }) => ({
113
113
  display: 'flex',
114
- color: theme.palette.action.active,
114
+ color: (theme.vars || theme).palette.action.active,
115
115
  transform: 'rotate(0deg)',
116
116
  transition: theme.transitions.create('transform', {
117
117
  duration: theme.transitions.duration.shortest
@@ -65,7 +65,7 @@ const AvatarGroupRoot = (0, _styled.default)('div', {
65
65
  theme
66
66
  }) => ({
67
67
  [`& .${_Avatar.avatarClasses.root}`]: {
68
- border: `2px solid ${theme.palette.background.default}`,
68
+ border: `2px solid ${(theme.vars || theme).palette.background.default}`,
69
69
  boxSizing: 'content-box',
70
70
  marginLeft: -8,
71
71
  '&:last-child': {
@@ -82,7 +82,7 @@ const AvatarGroupAvatar = (0, _styled.default)(_Avatar.default, {
82
82
  })(({
83
83
  theme
84
84
  }) => ({
85
- border: `2px solid ${theme.palette.background.default}`,
85
+ border: `2px solid ${(theme.vars || theme).palette.background.default}`,
86
86
  boxSizing: 'content-box',
87
87
  marginLeft: -8,
88
88
  '&:last-child': {