@mui/material 5.8.5 → 5.8.6

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 (182) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/Alert.js +19 -11
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/backdropClasses.d.ts +10 -10
  13. package/Badge/badgeClasses.d.ts +56 -56
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +100 -100
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +65 -0
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  26. package/CardActions/cardActionsClasses.d.ts +10 -10
  27. package/CardContent/cardContentClasses.d.ts +8 -8
  28. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  29. package/CardMedia/cardMediaClasses.d.ts +12 -12
  30. package/Checkbox/checkboxClasses.d.ts +18 -18
  31. package/Chip/chipClasses.d.ts +80 -80
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +2 -2
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +6 -6
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/FilledInput.js +1 -1
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  49. package/FormGroup/formGroupClasses.d.ts +12 -12
  50. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  51. package/FormLabel/formLabelClasses.d.ts +22 -22
  52. package/Grid/gridClasses.d.ts +48 -48
  53. package/Icon/iconClasses.d.ts +24 -24
  54. package/IconButton/iconButtonClasses.d.ts +26 -26
  55. package/ImageList/imageListClasses.d.ts +16 -16
  56. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  57. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  58. package/Input/Input.js +1 -1
  59. package/Input/inputClasses.d.ts +34 -34
  60. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  61. package/InputBase/inputBaseClasses.d.ts +44 -44
  62. package/InputLabel/inputLabelClasses.d.ts +32 -32
  63. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  64. package/Link/getTextDecoration.d.ts +15 -15
  65. package/Link/linkClasses.d.ts +18 -18
  66. package/List/listClasses.d.ts +14 -14
  67. package/ListItem/listItemClasses.d.ts +30 -30
  68. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  69. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  70. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  71. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  72. package/ListItemText/listItemTextClasses.d.ts +18 -18
  73. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  74. package/Menu/menuClasses.d.ts +12 -12
  75. package/MenuItem/menuItemClasses.d.ts +20 -20
  76. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  77. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  78. package/OutlinedInput/OutlinedInput.js +15 -0
  79. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  80. package/Pagination/paginationClasses.d.ts +14 -14
  81. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  82. package/Paper/paperClasses.d.ts +39 -39
  83. package/Popover/popoverClasses.d.ts +10 -10
  84. package/Popper/Popper.d.ts +29 -29
  85. package/Radio/radioClasses.d.ts +16 -16
  86. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  87. package/RadioGroup/useRadioGroup.d.ts +4 -4
  88. package/Rating/ratingClasses.d.ts +40 -40
  89. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  90. package/Select/selectClasses.d.ts +30 -30
  91. package/Skeleton/skeletonClasses.d.ts +24 -24
  92. package/Slider/Slider.js +9 -9
  93. package/Snackbar/snackbarClasses.d.ts +20 -20
  94. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  95. package/SpeedDial/speedDialClasses.d.ts +22 -22
  96. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  97. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  98. package/Step/StepContext.d.ts +20 -20
  99. package/Step/stepClasses.d.ts +16 -16
  100. package/StepButton/stepButtonClasses.d.ts +14 -14
  101. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  102. package/StepContent/stepContentClasses.d.ts +12 -12
  103. package/StepIcon/stepIconClasses.d.ts +16 -16
  104. package/StepLabel/stepLabelClasses.d.ts +28 -28
  105. package/Stepper/StepperContext.d.ts +18 -18
  106. package/Stepper/stepperClasses.d.ts +14 -14
  107. package/SvgIcon/svgIconClasses.d.ts +24 -24
  108. package/Switch/switchClasses.d.ts +32 -32
  109. package/Tab/tabClasses.d.ts +26 -26
  110. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  111. package/Table/tableClasses.d.ts +10 -10
  112. package/TableBody/tableBodyClasses.d.ts +8 -8
  113. package/TableCell/tableCellClasses.d.ts +32 -32
  114. package/TableContainer/tableContainerClasses.d.ts +8 -8
  115. package/TableFooter/tableFooterClasses.d.ts +8 -8
  116. package/TableHead/tableHeadClasses.d.ts +8 -8
  117. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  118. package/TableRow/tableRowClasses.d.ts +16 -16
  119. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  120. package/Tabs/Tabs.js +10 -2
  121. package/Tabs/tabsClasses.d.ts +32 -32
  122. package/TextField/textFieldClasses.d.ts +8 -8
  123. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  124. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  125. package/Toolbar/toolbarClasses.d.ts +14 -14
  126. package/Tooltip/tooltipClasses.d.ts +30 -30
  127. package/Typography/typographyClasses.d.ts +50 -50
  128. package/className/index.d.ts +1 -1
  129. package/darkScrollbar/index.d.ts +28 -28
  130. package/index.js +1 -1
  131. package/internal/switchBaseClasses.d.ts +12 -12
  132. package/legacy/Alert/Alert.js +19 -11
  133. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  134. package/legacy/FilledInput/FilledInput.js +1 -1
  135. package/legacy/Input/Input.js +1 -1
  136. package/legacy/OutlinedInput/OutlinedInput.js +15 -0
  137. package/legacy/Slider/Slider.js +9 -9
  138. package/legacy/Tabs/Tabs.js +10 -2
  139. package/legacy/index.js +1 -1
  140. package/legacy/styles/CssVarsProvider.js +3 -1
  141. package/legacy/styles/experimental_extendTheme.js +43 -3
  142. package/locale/index.d.ts +71 -71
  143. package/modern/Alert/Alert.js +19 -11
  144. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  145. package/modern/FilledInput/FilledInput.js +1 -1
  146. package/modern/Input/Input.js +1 -1
  147. package/modern/OutlinedInput/OutlinedInput.js +15 -0
  148. package/modern/Slider/Slider.js +9 -9
  149. package/modern/Tabs/Tabs.js +10 -2
  150. package/modern/index.js +1 -1
  151. package/modern/styles/CssVarsProvider.js +1 -1
  152. package/modern/styles/experimental_extendTheme.js +43 -3
  153. package/node/Alert/Alert.js +19 -11
  154. package/node/BottomNavigation/BottomNavigation.js +0 -0
  155. package/node/FilledInput/FilledInput.js +1 -1
  156. package/node/Input/Input.js +1 -1
  157. package/node/OutlinedInput/OutlinedInput.js +13 -0
  158. package/node/Slider/Slider.js +9 -9
  159. package/node/Tabs/Tabs.js +10 -2
  160. package/node/index.js +1 -1
  161. package/node/styles/CssVarsProvider.js +5 -1
  162. package/node/styles/experimental_extendTheme.js +43 -3
  163. package/package.json +4 -4
  164. package/styles/CssVarsProvider.d.ts +10 -28
  165. package/styles/CssVarsProvider.js +5 -1
  166. package/styles/createPalette.d.ts +0 -89
  167. package/styles/experimental_extendTheme.d.ts +225 -37
  168. package/styles/experimental_extendTheme.js +43 -3
  169. package/styles/index.d.ts +24 -1
  170. package/themeCssVarsAugmentation/index.d.ts +61 -0
  171. package/transitions/index.d.ts +1 -1
  172. package/transitions/transition.d.ts +13 -13
  173. package/transitions/utils.d.ts +23 -23
  174. package/umd/material-ui.development.js +355 -173
  175. package/umd/material-ui.production.min.js +21 -21
  176. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  177. package/useTouchRipple/index.d.ts +1 -1
  178. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  179. package/utils/getScrollbarSize.d.ts +2 -2
  180. package/utils/ownerDocument.d.ts +2 -2
  181. package/utils/ownerWindow.d.ts +2 -2
  182. package/utils/setRef.d.ts +2 -2
@@ -1,30 +1,30 @@
1
- export interface TooltipClasses {
2
- /** Styles applied to the Popper component. */
3
- popper: string;
4
- /** Styles applied to the Popper component unless `disableInteractive={true}`. */
5
- popperInteractive: string;
6
- /** Styles applied to the Popper component if `arrow={true}`. */
7
- popperArrow: string;
8
- /** Styles applied to the Popper component unless the tooltip is open. */
9
- popperClose: string;
10
- /** Styles applied to the tooltip (label wrapper) element. */
11
- tooltip: string;
12
- /** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
13
- tooltipArrow: string;
14
- /** Styles applied to the arrow element. */
15
- arrow: string;
16
- /** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
17
- touch: string;
18
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
19
- tooltipPlacementLeft: string;
20
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
21
- tooltipPlacementRight: string;
22
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
23
- tooltipPlacementTop: string;
24
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
25
- tooltipPlacementBottom: string;
26
- }
27
- export declare type TooltipClassKey = keyof TooltipClasses;
28
- export declare function getTooltipUtilityClass(slot: string): string;
29
- declare const tooltipClasses: TooltipClasses;
30
- export default tooltipClasses;
1
+ export interface TooltipClasses {
2
+ /** Styles applied to the Popper component. */
3
+ popper: string;
4
+ /** Styles applied to the Popper component unless `disableInteractive={true}`. */
5
+ popperInteractive: string;
6
+ /** Styles applied to the Popper component if `arrow={true}`. */
7
+ popperArrow: string;
8
+ /** Styles applied to the Popper component unless the tooltip is open. */
9
+ popperClose: string;
10
+ /** Styles applied to the tooltip (label wrapper) element. */
11
+ tooltip: string;
12
+ /** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
13
+ tooltipArrow: string;
14
+ /** Styles applied to the arrow element. */
15
+ arrow: string;
16
+ /** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
17
+ touch: string;
18
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
19
+ tooltipPlacementLeft: string;
20
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
21
+ tooltipPlacementRight: string;
22
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
23
+ tooltipPlacementTop: string;
24
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
25
+ tooltipPlacementBottom: string;
26
+ }
27
+ export declare type TooltipClassKey = keyof TooltipClasses;
28
+ export declare function getTooltipUtilityClass(slot: string): string;
29
+ declare const tooltipClasses: TooltipClasses;
30
+ export default tooltipClasses;
@@ -1,50 +1,50 @@
1
- export interface TypographyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="body2"`. */
5
- body2: string;
6
- /** Styles applied to the root element if `variant="body1"`. */
7
- body1: string;
8
- /** Styles applied to the root element if `variant="caption"`. */
9
- caption: string;
10
- /** Styles applied to the root element if `variant="button"`. */
11
- button: string;
12
- /** Styles applied to the root element if `variant="h1"`. */
13
- h1: string;
14
- /** Styles applied to the root element if `variant="h2"`. */
15
- h2: string;
16
- /** Styles applied to the root element if `variant="h3"`. */
17
- h3: string;
18
- /** Styles applied to the root element if `variant="h4"`. */
19
- h4: string;
20
- /** Styles applied to the root element if `variant="h5"`. */
21
- h5: string;
22
- /** Styles applied to the root element if `variant="h6"`. */
23
- h6: string;
24
- /** Styles applied to the root element if `variant="subtitle1"`. */
25
- subtitle1: string;
26
- /** Styles applied to the root element if `variant="subtitle2"`. */
27
- subtitle2: string;
28
- /** Styles applied to the root element if `variant="overline"`. */
29
- overline: string;
30
- /** Styles applied to the root element if `variant="inherit"`. */
31
- inherit: string;
32
- /** Styles applied to the root element if `align="left"`. */
33
- alignLeft: string;
34
- /** Styles applied to the root element if `align="center"`. */
35
- alignCenter: string;
36
- /** Styles applied to the root element if `align="right"`. */
37
- alignRight: string;
38
- /** Styles applied to the root element if `align="justify"`. */
39
- alignJustify: string;
40
- /** Styles applied to the root element if `nowrap={true}`. */
41
- noWrap: string;
42
- /** Styles applied to the root element if `gutterBottom={true}`. */
43
- gutterBottom: string;
44
- /** Styles applied to the root element if `paragraph={true}`. */
45
- paragraph: string;
46
- }
47
- export declare type TypographyClassKey = keyof TypographyClasses;
48
- export declare function getTypographyUtilityClass(slot: string): string;
49
- declare const typographyClasses: TypographyClasses;
50
- export default typographyClasses;
1
+ export interface TypographyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="body2"`. */
5
+ body2: string;
6
+ /** Styles applied to the root element if `variant="body1"`. */
7
+ body1: string;
8
+ /** Styles applied to the root element if `variant="caption"`. */
9
+ caption: string;
10
+ /** Styles applied to the root element if `variant="button"`. */
11
+ button: string;
12
+ /** Styles applied to the root element if `variant="h1"`. */
13
+ h1: string;
14
+ /** Styles applied to the root element if `variant="h2"`. */
15
+ h2: string;
16
+ /** Styles applied to the root element if `variant="h3"`. */
17
+ h3: string;
18
+ /** Styles applied to the root element if `variant="h4"`. */
19
+ h4: string;
20
+ /** Styles applied to the root element if `variant="h5"`. */
21
+ h5: string;
22
+ /** Styles applied to the root element if `variant="h6"`. */
23
+ h6: string;
24
+ /** Styles applied to the root element if `variant="subtitle1"`. */
25
+ subtitle1: string;
26
+ /** Styles applied to the root element if `variant="subtitle2"`. */
27
+ subtitle2: string;
28
+ /** Styles applied to the root element if `variant="overline"`. */
29
+ overline: string;
30
+ /** Styles applied to the root element if `variant="inherit"`. */
31
+ inherit: string;
32
+ /** Styles applied to the root element if `align="left"`. */
33
+ alignLeft: string;
34
+ /** Styles applied to the root element if `align="center"`. */
35
+ alignCenter: string;
36
+ /** Styles applied to the root element if `align="right"`. */
37
+ alignRight: string;
38
+ /** Styles applied to the root element if `align="justify"`. */
39
+ alignJustify: string;
40
+ /** Styles applied to the root element if `nowrap={true}`. */
41
+ noWrap: string;
42
+ /** Styles applied to the root element if `gutterBottom={true}`. */
43
+ gutterBottom: string;
44
+ /** Styles applied to the root element if `paragraph={true}`. */
45
+ paragraph: string;
46
+ }
47
+ export declare type TypographyClassKey = keyof TypographyClasses;
48
+ export declare function getTypographyUtilityClass(slot: string): string;
49
+ declare const typographyClasses: TypographyClasses;
50
+ export default typographyClasses;
@@ -1 +1 @@
1
- export { unstable_ClassNameGenerator } from '@mui/utils';
1
+ export { unstable_ClassNameGenerator } from '@mui/utils';
@@ -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.8.5
1
+ /** @license MUI v5.8.6
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;
@@ -55,20 +55,28 @@ var AlertRoot = styled(Paper, {
55
55
  display: 'flex',
56
56
  padding: '6px 16px'
57
57
  }, color && ownerState.variant === 'standard' && _defineProperty({
58
- color: getColor(theme.palette[color].light, 0.6),
59
- backgroundColor: getBackgroundColor(theme.palette[color].light, 0.9)
60
- }, "& .".concat(alertClasses.icon), {
58
+ color: theme.vars ? theme.vars.palette.Alert["".concat(color, "Color")] : getColor(theme.palette[color].light, 0.6),
59
+ backgroundColor: theme.vars ? theme.vars.palette.Alert["".concat(color, "StandardBg")] : getBackgroundColor(theme.palette[color].light, 0.9)
60
+ }, "& .".concat(alertClasses.icon), theme.vars ? {
61
+ color: theme.vars.palette.Alert["".concat(color, "IconColor")]
62
+ } : {
61
63
  color: theme.palette.mode === 'dark' ? theme.palette[color].main : theme.palette[color].light
62
64
  }), color && ownerState.variant === 'outlined' && _defineProperty({
63
- color: getColor(theme.palette[color].light, 0.6),
64
- border: "1px solid ".concat(theme.palette[color].light)
65
- }, "& .".concat(alertClasses.icon), {
65
+ color: theme.vars ? theme.vars.palette.Alert["".concat(color, "Color")] : getColor(theme.palette[color].light, 0.6),
66
+ border: "1px solid ".concat((theme.vars || theme).palette[color].light)
67
+ }, "& .".concat(alertClasses.icon), theme.vars ? {
68
+ color: theme.vars.palette.Alert["".concat(color, "IconColor")]
69
+ } : {
66
70
  color: theme.palette.mode === 'dark' ? theme.palette[color].main : theme.palette[color].light
67
- }), color && ownerState.variant === 'filled' && {
68
- color: '#fff',
69
- fontWeight: theme.typography.fontWeightMedium,
70
- backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main
71
- });
71
+ }), color && ownerState.variant === 'filled' && _extends({
72
+ fontWeight: theme.typography.fontWeightMedium
73
+ }, theme.vars ? {
74
+ color: theme.vars.palette.Alert["".concat(color, "FilledColor")],
75
+ backgroundColor: theme.vars.palette.Alert["".concat(color, "FilledBg")]
76
+ } : {
77
+ backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,
78
+ color: theme.palette.getContrastText(theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main)
79
+ }));
72
80
  });
73
81
  var AlertIcon = styled('div', {
74
82
  name: 'MuiAlert',
File without changes
@@ -90,7 +90,7 @@ var FilledInputRoot = styled(InputBaseRoot, {
90
90
  transform: 'scaleX(1)' // error is always underlined in red
91
91
 
92
92
  }), _defineProperty(_ref2, '&:before', {
93
- borderBottom: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputTouchBottomLine, ")") : bottomLineColor),
93
+ borderBottom: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputUnderline, ")") : bottomLineColor),
94
94
  left: 0,
95
95
  bottom: 0,
96
96
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -43,7 +43,7 @@ var InputRoot = styled(InputBaseRoot, {
43
43
  var bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
44
44
 
45
45
  if (theme.vars) {
46
- bottomLineColor = "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputTouchBottomLine, ")");
46
+ bottomLineColor = "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputUnderline, ")");
47
47
  }
48
48
 
49
49
  return _extends({
@@ -141,6 +141,20 @@ var OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps
141
141
  muiFormControl: muiFormControl,
142
142
  states: ['required']
143
143
  });
144
+
145
+ var ownerState = _extends({}, props, {
146
+ color: fcs.color || 'primary',
147
+ disabled: fcs.disabled,
148
+ error: fcs.error,
149
+ focused: fcs.focused,
150
+ formControl: muiFormControl,
151
+ fullWidth: fullWidth,
152
+ hiddenLabel: fcs.hiddenLabel,
153
+ multiline: multiline,
154
+ size: fcs.size,
155
+ type: type
156
+ });
157
+
144
158
  return /*#__PURE__*/_jsx(InputBase, _extends({
145
159
  components: _extends({
146
160
  Root: OutlinedInputRoot,
@@ -148,6 +162,7 @@ var OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps
148
162
  }, components),
149
163
  renderSuffix: function renderSuffix(state) {
150
164
  return /*#__PURE__*/_jsx(NotchedOutlineRoot, {
165
+ ownerState: ownerState,
151
166
  className: classes.notchedOutline,
152
167
  label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/_jsxs(React.Fragment, {
153
168
  children: [label, "\xA0", '*']
@@ -590,14 +590,14 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
590
590
  * @default {}
591
591
  */
592
592
  componentsProps: PropTypes.shape({
593
- input: PropTypes.object,
594
- mark: PropTypes.object,
595
- markLabel: PropTypes.object,
596
- rail: PropTypes.object,
597
- root: PropTypes.object,
598
- thumb: PropTypes.object,
599
- track: PropTypes.object,
600
- valueLabel: PropTypes.shape({
593
+ input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
594
+ mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
595
+ markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
596
+ rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
597
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
598
+ thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
599
+ track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
600
+ valueLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
601
601
  children: PropTypes.element,
602
602
  className: PropTypes.string,
603
603
  components: PropTypes.shape({
@@ -607,7 +607,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
607
607
  style: PropTypes.object,
608
608
  value: PropTypes.number,
609
609
  valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
610
- })
610
+ })])
611
611
  }),
612
612
 
613
613
  /**
@@ -552,8 +552,16 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
552
552
  });
553
553
  React.useEffect(function () {
554
554
  var handleResize = debounce(function () {
555
- updateIndicatorState();
556
- updateScrollButtonState();
555
+ // If the Tabs component is replaced by Suspense with a fallback, the last
556
+ // ResizeObserver's handler that runs because of the change in the layout is trying to
557
+ // access a dom node that is no longer there (as the fallback component is being shown instead).
558
+ // See https://github.com/mui/material-ui/issues/33276
559
+ // TODO: Add tests that will ensure the component is not failing when
560
+ // replaced by Suspense with a fallback, once React is updated to version 18
561
+ if (tabsRef.current) {
562
+ updateIndicatorState();
563
+ updateScrollButtonState();
564
+ }
557
565
  });
558
566
  var win = ownerWindow(tabsRef.current);
559
567
  win.addEventListener('resize', handleResize);
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.8.5
1
+ /** @license MUI v5.8.6
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.
@@ -24,7 +24,9 @@ var _createCssVarsProvide = createCssVarsProvider({
24
24
  return newTheme;
25
25
  },
26
26
  shouldSkipGeneratingVar: function shouldSkipGeneratingVar(keys) {
27
- return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/);
27
+ var _keys$;
28
+
29
+ return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
28
30
  }
29
31
  }),
30
32
  Experimental_CssVarsProvider = _createCssVarsProvide.CssVarsProvider,
@@ -55,7 +55,7 @@ export default function extendTheme() {
55
55
  palette: lightPalette,
56
56
  opacity: _extends({
57
57
  inputPlaceholder: 0.42,
58
- inputTouchBottomLine: 0.42,
58
+ inputUnderline: 0.42,
59
59
  switchTrackDisabled: 0.12,
60
60
  switchTrack: 0.38
61
61
  }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
@@ -65,7 +65,7 @@ export default function extendTheme() {
65
65
  palette: darkPalette,
66
66
  opacity: _extends({
67
67
  inputPlaceholder: 0.5,
68
- inputTouchBottomLine: 0.7,
68
+ inputUnderline: 0.7,
69
69
  switchTrackDisabled: 0.2,
70
70
  switchTrack: 0.3
71
71
  }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
@@ -86,9 +86,29 @@ export default function extendTheme() {
86
86
  } // assign component variables
87
87
 
88
88
 
89
- assignNode(palette, ['AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
89
+ assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
90
90
 
91
91
  if (key === 'light') {
92
+ setColor(palette.Alert, 'errorColor', darken(palette.error.light, 0.6));
93
+ setColor(palette.Alert, 'infoColor', darken(palette.info.light, 0.6));
94
+ setColor(palette.Alert, 'successColor', darken(palette.success.light, 0.6));
95
+ setColor(palette.Alert, 'warningColor', darken(palette.warning.light, 0.6));
96
+ setColor(palette.Alert, 'errorFilledBg', 'var(--mui-palette-error-main)');
97
+ setColor(palette.Alert, 'infoFilledBg', 'var(--mui-palette-info-main)');
98
+ setColor(palette.Alert, 'successFilledBg', 'var(--mui-palette-success-main)');
99
+ setColor(palette.Alert, 'warningFilledBg', 'var(--mui-palette-warning-main)');
100
+ setColor(palette.Alert, 'errorFilledColor', lightPalette.getContrastText(palette.error.main));
101
+ setColor(palette.Alert, 'infoFilledColor', lightPalette.getContrastText(palette.info.main));
102
+ setColor(palette.Alert, 'successFilledColor', lightPalette.getContrastText(palette.success.main));
103
+ setColor(palette.Alert, 'warningFilledColor', lightPalette.getContrastText(palette.warning.main));
104
+ setColor(palette.Alert, 'errorStandardBg', lighten(palette.error.light, 0.9));
105
+ setColor(palette.Alert, 'infoStandardBg', lighten(palette.info.light, 0.9));
106
+ setColor(palette.Alert, 'successStandardBg', lighten(palette.success.light, 0.9));
107
+ setColor(palette.Alert, 'warningStandardBg', lighten(palette.warning.light, 0.9));
108
+ setColor(palette.Alert, 'errorIconColor', 'var(--mui-palette-error-light)');
109
+ setColor(palette.Alert, 'infoIconColor', 'var(--mui-palette-info-light)');
110
+ setColor(palette.Alert, 'successIconColor', 'var(--mui-palette-success-light)');
111
+ setColor(palette.Alert, 'warningIconColor', 'var(--mui-palette-warning-light)');
92
112
  setColor(palette.AppBar, 'defaultBg', 'var(--mui-palette-grey-100)');
93
113
  setColor(palette.Avatar, 'defaultBg', 'var(--mui-palette-grey-400)');
94
114
  setColor(palette.Chip, 'defaultBorder', 'var(--mui-palette-grey-400)');
@@ -125,6 +145,26 @@ export default function extendTheme() {
125
145
  setColor(palette.TableCell, 'border', lighten(alpha(palette.divider, 1), 0.88));
126
146
  setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
127
147
  } else {
148
+ setColor(palette.Alert, 'errorColor', lighten(palette.error.light, 0.6));
149
+ setColor(palette.Alert, 'infoColor', lighten(palette.info.light, 0.6));
150
+ setColor(palette.Alert, 'successColor', lighten(palette.success.light, 0.6));
151
+ setColor(palette.Alert, 'warningColor', lighten(palette.warning.light, 0.6));
152
+ setColor(palette.Alert, 'errorFilledBg', 'var(--mui-palette-error-dark)');
153
+ setColor(palette.Alert, 'infoFilledBg', 'var(--mui-palette-info-dark)');
154
+ setColor(palette.Alert, 'successFilledBg', 'var(--mui-palette-success-dark)');
155
+ setColor(palette.Alert, 'warningFilledBg', 'var(--mui-palette-warning-dark)');
156
+ setColor(palette.Alert, 'errorFilledColor', darkPalette.getContrastText(palette.error.dark));
157
+ setColor(palette.Alert, 'infoFilledColor', darkPalette.getContrastText(palette.info.dark));
158
+ setColor(palette.Alert, 'successFilledColor', darkPalette.getContrastText(palette.success.dark));
159
+ setColor(palette.Alert, 'warningFilledColor', darkPalette.getContrastText(palette.warning.dark));
160
+ setColor(palette.Alert, 'errorStandardBg', darken(palette.error.light, 0.9));
161
+ setColor(palette.Alert, 'infoStandardBg', darken(palette.info.light, 0.9));
162
+ setColor(palette.Alert, 'successStandardBg', darken(palette.success.light, 0.9));
163
+ setColor(palette.Alert, 'warningStandardBg', darken(palette.warning.light, 0.9));
164
+ setColor(palette.Alert, 'errorIconColor', 'var(--mui-palette-error-main)');
165
+ setColor(palette.Alert, 'infoIconColor', 'var(--mui-palette-info-main)');
166
+ setColor(palette.Alert, 'successIconColor', 'var(--mui-palette-success-main)');
167
+ setColor(palette.Alert, 'warningIconColor', 'var(--mui-palette-warning-main)');
128
168
  setColor(palette.AppBar, 'defaultBg', 'var(--mui-palette-grey-900)');
129
169
  setColor(palette.AppBar, 'darkBg', 'var(--mui-palette-background-paper)'); // specific for dark mode
130
170