@mui/material 5.9.3 → 5.10.0

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/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +65 -4
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/chipClasses.d.ts +88 -88
  31. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  32. package/ClickAwayListener/index.d.ts +2 -2
  33. package/Collapse/collapseClasses.d.ts +18 -18
  34. package/Container/containerClasses.d.ts +6 -6
  35. package/Dialog/DialogContext.d.ts +6 -6
  36. package/Dialog/dialogClasses.d.ts +36 -36
  37. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  38. package/DialogContent/dialogContentClasses.d.ts +10 -10
  39. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  40. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  41. package/Divider/dividerClasses.d.ts +34 -34
  42. package/Drawer/drawerClasses.d.ts +30 -30
  43. package/Fab/fabClasses.d.ts +26 -26
  44. package/FilledInput/filledInputClasses.d.ts +40 -40
  45. package/FormControl/formControlClasses.d.ts +14 -14
  46. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  47. package/FormGroup/formGroupClasses.d.ts +12 -12
  48. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  49. package/FormLabel/formLabelClasses.d.ts +22 -22
  50. package/Grid/Grid.d.ts +1 -1
  51. package/Grid/Grid.js +6 -2
  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/inputClasses.d.ts +34 -34
  59. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  60. package/InputBase/inputBaseClasses.d.ts +46 -46
  61. package/InputLabel/inputLabelClasses.d.ts +32 -32
  62. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  63. package/Link/getTextDecoration.d.ts +15 -15
  64. package/Link/linkClasses.d.ts +18 -18
  65. package/List/listClasses.d.ts +14 -14
  66. package/ListItem/listItemClasses.d.ts +30 -30
  67. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  68. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  69. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  70. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  71. package/ListItemText/listItemTextClasses.d.ts +18 -18
  72. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  73. package/Menu/menuClasses.d.ts +12 -12
  74. package/MenuItem/menuItemClasses.d.ts +20 -20
  75. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  76. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  77. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  78. package/Pagination/paginationClasses.d.ts +14 -14
  79. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  80. package/Paper/paperClasses.d.ts +39 -39
  81. package/Popover/popoverClasses.d.ts +10 -10
  82. package/Popper/Popper.d.ts +24 -24
  83. package/README.md +2 -2
  84. package/Radio/radioClasses.d.ts +16 -16
  85. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  86. package/RadioGroup/useRadioGroup.d.ts +4 -4
  87. package/Rating/ratingClasses.d.ts +40 -40
  88. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  89. package/Select/selectClasses.d.ts +30 -30
  90. package/Skeleton/Skeleton.d.ts +1 -1
  91. package/Skeleton/Skeleton.js +3 -1
  92. package/Skeleton/skeletonClasses.d.ts +26 -24
  93. package/Skeleton/skeletonClasses.js +1 -1
  94. package/Snackbar/snackbarClasses.d.ts +20 -20
  95. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  96. package/SpeedDial/speedDialClasses.d.ts +22 -22
  97. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  98. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  99. package/Step/StepContext.d.ts +20 -20
  100. package/Step/stepClasses.d.ts +16 -16
  101. package/StepButton/stepButtonClasses.d.ts +14 -14
  102. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  103. package/StepContent/stepContentClasses.d.ts +12 -12
  104. package/StepIcon/stepIconClasses.d.ts +16 -16
  105. package/StepLabel/StepLabel.js +1 -1
  106. package/StepLabel/stepLabelClasses.d.ts +28 -28
  107. package/Stepper/StepperContext.d.ts +18 -18
  108. package/Stepper/stepperClasses.d.ts +14 -14
  109. package/SvgIcon/svgIconClasses.d.ts +24 -24
  110. package/Switch/switchClasses.d.ts +32 -32
  111. package/Tab/tabClasses.d.ts +26 -26
  112. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  113. package/Table/tableClasses.d.ts +10 -10
  114. package/TableBody/tableBodyClasses.d.ts +8 -8
  115. package/TableCell/TableCell.d.ts +4 -1
  116. package/TableCell/TableCell.js +3 -1
  117. package/TableCell/tableCellClasses.d.ts +32 -32
  118. package/TableContainer/tableContainerClasses.d.ts +8 -8
  119. package/TableFooter/tableFooterClasses.d.ts +8 -8
  120. package/TableHead/tableHeadClasses.d.ts +8 -8
  121. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  122. package/TableRow/tableRowClasses.d.ts +16 -16
  123. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  124. package/Tabs/tabsClasses.d.ts +32 -32
  125. package/TextField/textFieldClasses.d.ts +8 -8
  126. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  127. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  128. package/Toolbar/toolbarClasses.d.ts +14 -14
  129. package/Tooltip/Tooltip.js +1 -1
  130. package/Tooltip/tooltipClasses.d.ts +30 -30
  131. package/Typography/typographyClasses.d.ts +50 -50
  132. package/Unstable_Grid2/Grid2.d.ts +4 -4
  133. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  134. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  135. package/Unstable_Grid2/index.d.ts +4 -4
  136. package/className/index.d.ts +1 -1
  137. package/darkScrollbar/index.d.ts +28 -28
  138. package/index.js +1 -1
  139. package/internal/switchBaseClasses.d.ts +12 -12
  140. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  141. package/legacy/Grid/Grid.js +6 -2
  142. package/legacy/Skeleton/Skeleton.js +3 -1
  143. package/legacy/Skeleton/skeletonClasses.js +1 -1
  144. package/legacy/StepLabel/StepLabel.js +1 -1
  145. package/legacy/TableCell/TableCell.js +3 -1
  146. package/legacy/Tooltip/Tooltip.js +1 -1
  147. package/legacy/index.js +1 -1
  148. package/legacy/useScrollTrigger/useScrollTrigger.js +6 -2
  149. package/locale/index.d.ts +71 -71
  150. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  151. package/modern/Grid/Grid.js +2 -2
  152. package/modern/Skeleton/Skeleton.js +3 -1
  153. package/modern/Skeleton/skeletonClasses.js +1 -1
  154. package/modern/StepLabel/StepLabel.js +1 -1
  155. package/modern/TableCell/TableCell.js +3 -1
  156. package/modern/Tooltip/Tooltip.js +1 -1
  157. package/modern/index.js +1 -1
  158. package/modern/useScrollTrigger/useScrollTrigger.js +6 -2
  159. package/node/BottomNavigation/BottomNavigation.js +0 -0
  160. package/node/Grid/Grid.js +6 -2
  161. package/node/Skeleton/Skeleton.js +3 -1
  162. package/node/Skeleton/skeletonClasses.js +1 -1
  163. package/node/StepLabel/StepLabel.js +1 -1
  164. package/node/TableCell/TableCell.js +3 -1
  165. package/node/Tooltip/Tooltip.js +1 -1
  166. package/node/index.js +1 -1
  167. package/node/useScrollTrigger/useScrollTrigger.js +6 -2
  168. package/package.json +2 -2
  169. package/styles/CssVarsProvider.d.ts +14 -14
  170. package/transitions/index.d.ts +1 -1
  171. package/transitions/transition.d.ts +13 -13
  172. package/transitions/utils.d.ts +23 -23
  173. package/umd/material-ui.development.js +58 -20
  174. package/umd/material-ui.production.min.js +7 -7
  175. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  176. package/useScrollTrigger/useScrollTrigger.js +6 -2
  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,14 +1,14 @@
1
- export interface ToolbarClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `disableGutters={true}`. */
5
- gutters: string;
6
- /** Styles applied to the root element if `variant="regular"`. */
7
- regular: string;
8
- /** Styles applied to the root element if `variant="dense"`. */
9
- dense: string;
10
- }
11
- export declare type ToolbarClassKey = keyof ToolbarClasses;
12
- export declare function getToolbarUtilityClass(slot: string): string;
13
- declare const toolbarClasses: ToolbarClasses;
14
- export default toolbarClasses;
1
+ export interface ToolbarClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `disableGutters={true}`. */
5
+ gutters: string;
6
+ /** Styles applied to the root element if `variant="regular"`. */
7
+ regular: string;
8
+ /** Styles applied to the root element if `variant="dense"`. */
9
+ dense: string;
10
+ }
11
+ export declare type ToolbarClassKey = keyof ToolbarClasses;
12
+ export declare function getToolbarUtilityClass(slot: string): string;
13
+ declare const toolbarClasses: ToolbarClasses;
14
+ export default toolbarClasses;
@@ -185,7 +185,7 @@ const TooltipArrow = styled('span', {
185
185
  /* = width / sqrt(2) = (length of the hypotenuse) */
186
186
  ,
187
187
  boxSizing: 'border-box',
188
- color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : alpha(theme.palette.grey[700], 0.9),
188
+ color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),
189
189
  '&::before': {
190
190
  content: '""',
191
191
  margin: 'auto',
@@ -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,4 +1,4 @@
1
- import { OverridableComponent } from '@mui/types';
2
- import { Grid2TypeMap } from './Grid2Props';
3
- declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
4
- export default Grid2;
1
+ import { OverridableComponent } from '@mui/types';
2
+ import { Grid2TypeMap } from './Grid2Props';
3
+ declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
4
+ export default Grid2;
@@ -1,15 +1,15 @@
1
- import React from 'react';
2
- import { OverrideProps } from '@mui/types';
3
- import { SxProps, SystemProps } from '@mui/system';
4
- import { GridBaseProps } from '@mui/system/Unstable_Grid';
5
- import { Theme } from '../styles';
6
- export declare type Grid2Slot = 'root';
7
- export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
8
- props: P & GridBaseProps & {
9
- sx?: SxProps<Theme>;
10
- } & SystemProps<Theme>;
11
- defaultComponent: D;
12
- }
13
- export declare type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
- component?: React.ElementType;
15
- }> = OverrideProps<Grid2TypeMap<P, D>, D>;
1
+ import React from 'react';
2
+ import { OverrideProps } from '@mui/types';
3
+ import { SxProps, SystemProps } from '@mui/system';
4
+ import { GridBaseProps } from '@mui/system/Unstable_Grid';
5
+ import { Theme } from '../styles';
6
+ export declare type Grid2Slot = 'root';
7
+ export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
8
+ props: P & GridBaseProps & {
9
+ sx?: SxProps<Theme>;
10
+ } & SystemProps<Theme>;
11
+ defaultComponent: D;
12
+ }
13
+ export declare type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
+ component?: React.ElementType;
15
+ }> = OverrideProps<Grid2TypeMap<P, D>, D>;
@@ -1,5 +1,5 @@
1
- import { GridClasses } from '@mui/system/Unstable_Grid';
2
- export declare type Grid2ClassKey = keyof GridClasses;
3
- export declare function getGrid2UtilityClass(slot: string): string;
4
- declare const grid2Classes: GridClasses;
5
- export default grid2Classes;
1
+ import { GridClasses } from '@mui/system/Unstable_Grid';
2
+ export declare type Grid2ClassKey = keyof GridClasses;
3
+ export declare function getGrid2UtilityClass(slot: string): string;
4
+ declare const grid2Classes: GridClasses;
5
+ export default grid2Classes;
@@ -1,4 +1,4 @@
1
- export { default } from './Grid2';
2
- export * from './Grid2Props';
3
- export { default as grid2Classes } from './grid2Classes';
4
- export * from './grid2Classes';
1
+ export { default } from './Grid2';
2
+ export * from './Grid2Props';
3
+ export { default as grid2Classes } from './grid2Classes';
4
+ export * from './grid2Classes';
@@ -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.9.3
1
+ /** @license MUI v5.10.0
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;
File without changes
@@ -180,6 +180,8 @@ export function generateRowGap(_ref4) {
180
180
  styles = handleBreakpoints({
181
181
  theme: theme
182
182
  }, rowSpacingValues, function (propValue, breakpoint) {
183
+ var _zeroValueBreakpointK;
184
+
183
185
  var themeSpacing = theme.spacing(propValue);
184
186
 
185
187
  if (themeSpacing !== '0px') {
@@ -190,7 +192,7 @@ export function generateRowGap(_ref4) {
190
192
  });
191
193
  }
192
194
 
193
- if (zeroValueBreakpointKeys.includes(breakpoint)) {
195
+ if ((_zeroValueBreakpointK = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK.includes(breakpoint)) {
194
196
  return {};
195
197
  }
196
198
 
@@ -228,6 +230,8 @@ export function generateColumnGap(_ref7) {
228
230
  styles = handleBreakpoints({
229
231
  theme: theme
230
232
  }, columnSpacingValues, function (propValue, breakpoint) {
233
+ var _zeroValueBreakpointK2;
234
+
231
235
  var themeSpacing = theme.spacing(propValue);
232
236
 
233
237
  if (themeSpacing !== '0px') {
@@ -239,7 +243,7 @@ export function generateColumnGap(_ref7) {
239
243
  });
240
244
  }
241
245
 
242
- if (zeroValueBreakpointKeys.includes(breakpoint)) {
246
+ if ((_zeroValueBreakpointK2 = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK2.includes(breakpoint)) {
243
247
  return {};
244
248
  }
245
249
 
@@ -59,6 +59,8 @@ var SkeletonRoot = styled('span', {
59
59
  }
60
60
  }, ownerState.variant === 'circular' && {
61
61
  borderRadius: '50%'
62
+ }, ownerState.variant === 'rounded' && {
63
+ borderRadius: (theme.vars || theme).shape.borderRadius
62
64
  }, ownerState.hasChildren && {
63
65
  '& > *': {
64
66
  visibility: 'hidden'
@@ -172,7 +174,7 @@ process.env.NODE_ENV !== "production" ? Skeleton.propTypes
172
174
  */
173
175
  variant: PropTypes
174
176
  /* @typescript-to-proptypes-ignore */
175
- .oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'text']), PropTypes.string]),
177
+ .oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'rounded', 'text']), PropTypes.string]),
176
178
 
177
179
  /**
178
180
  * Width of the skeleton.
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getSkeletonUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiSkeleton', slot);
4
4
  }
5
- var skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
5
+ var skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
6
6
  export default skeletonClasses;
@@ -25,7 +25,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
25
25
  var slots = {
26
26
  root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
27
27
  label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
28
- iconContainer: ['iconContainer', alternativeLabel && 'alternativeLabel'],
28
+ iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
29
29
  labelContainer: ['labelContainer']
30
30
  };
31
31
  return composeClasses(slots, getStepLabelUtilityClass, classes);
@@ -206,7 +206,9 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
206
206
  * Specify the size of the cell.
207
207
  * The prop defaults to the value (`'medium'`) inherited from the parent Table component.
208
208
  */
209
- size: PropTypes.oneOf(['small', 'medium']),
209
+ size: PropTypes
210
+ /* @typescript-to-proptypes-ignore */
211
+ .oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
210
212
 
211
213
  /**
212
214
  * Set aria-sort direction.
@@ -178,7 +178,7 @@ var TooltipArrow = styled('span', {
178
178
  /* = width / sqrt(2) = (length of the hypotenuse) */
179
179
  ,
180
180
  boxSizing: 'border-box',
181
- color: theme.vars ? "rgba(".concat(theme.vars.palette.grey.darkChannel, " / 0.9)") : alpha(theme.palette.grey[700], 0.9),
181
+ color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),
182
182
  '&::before': {
183
183
  content: '""',
184
184
  margin: 'auto',
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.3
1
+ /** @license MUI v5.10.0
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.
@@ -51,9 +51,13 @@ export default function useScrollTrigger() {
51
51
 
52
52
  handleScroll(); // Re-evaluate trigger when dependencies change
53
53
 
54
- target.addEventListener('scroll', handleScroll);
54
+ target.addEventListener('scroll', handleScroll, {
55
+ passive: true
56
+ });
55
57
  return function () {
56
- target.removeEventListener('scroll', handleScroll);
58
+ target.removeEventListener('scroll', handleScroll, {
59
+ passive: true
60
+ });
57
61
  }; // See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
58
62
  // eslint-disable-next-line react-hooks/exhaustive-deps
59
63
  }, [target, getTrigger, JSON.stringify(other)]);
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;
File without changes