@mui/material 5.11.0 → 5.11.1

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 (183) 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 +56 -0
  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/Chip.js +3 -3
  31. package/Chip/chipClasses.d.ts +96 -96
  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 +8 -4
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/FormControlContext.d.ts +17 -17
  48. package/FormControl/formControlClasses.d.ts +14 -14
  49. package/FormControl/useFormControl.d.ts +2 -2
  50. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  51. package/FormGroup/formGroupClasses.d.ts +12 -12
  52. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  53. package/FormLabel/formLabelClasses.d.ts +22 -22
  54. package/Grid/gridClasses.d.ts +48 -48
  55. package/Icon/iconClasses.d.ts +24 -24
  56. package/IconButton/iconButtonClasses.d.ts +34 -34
  57. package/ImageList/imageListClasses.d.ts +16 -16
  58. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  59. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  60. package/Input/Input.js +9 -5
  61. package/Input/inputClasses.d.ts +34 -34
  62. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  63. package/InputBase/inputBaseClasses.d.ts +46 -46
  64. package/InputLabel/InputLabel.d.ts +4 -1
  65. package/InputLabel/InputLabel.js +1 -1
  66. package/InputLabel/inputLabelClasses.d.ts +32 -32
  67. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  68. package/Link/getTextDecoration.d.ts +15 -15
  69. package/Link/linkClasses.d.ts +18 -18
  70. package/List/listClasses.d.ts +14 -14
  71. package/ListItem/listItemClasses.d.ts +30 -30
  72. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  73. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  74. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  75. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  76. package/ListItemText/listItemTextClasses.d.ts +18 -18
  77. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  78. package/Menu/menuClasses.d.ts +12 -12
  79. package/MenuItem/menuItemClasses.d.ts +20 -20
  80. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  81. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  82. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  83. package/Pagination/paginationClasses.d.ts +14 -14
  84. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  85. package/Paper/paperClasses.d.ts +39 -39
  86. package/Popover/popoverClasses.d.ts +10 -10
  87. package/Popper/Popper.d.ts +37 -37
  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 +26 -26
  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/StepperContext.d.ts +18 -18
  108. package/Stepper/stepperClasses.d.ts +14 -14
  109. package/SvgIcon/svgIconClasses.d.ts +26 -26
  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/tableCellClasses.d.ts +32 -32
  116. package/TableContainer/tableContainerClasses.d.ts +8 -8
  117. package/TableFooter/tableFooterClasses.d.ts +8 -8
  118. package/TableHead/tableHeadClasses.d.ts +8 -8
  119. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  120. package/TableRow/tableRowClasses.d.ts +16 -16
  121. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  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/Unstable_Grid2/Grid2.d.ts +4 -4
  130. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  131. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  132. package/Unstable_Grid2/index.d.ts +4 -4
  133. package/className/index.d.ts +1 -1
  134. package/darkScrollbar/index.d.ts +28 -28
  135. package/generateUtilityClass/index.d.ts +2 -2
  136. package/generateUtilityClasses/index.d.ts +1 -1
  137. package/index.js +1 -1
  138. package/internal/switchBaseClasses.d.ts +12 -12
  139. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  140. package/legacy/Chip/Chip.js +3 -3
  141. package/legacy/FilledInput/FilledInput.js +8 -4
  142. package/legacy/Input/Input.js +9 -5
  143. package/legacy/InputLabel/InputLabel.js +1 -1
  144. package/legacy/index.js +1 -1
  145. package/legacy/locale/index.js +1 -1
  146. package/legacy/styles/index.js +6 -0
  147. package/locale/index.d.ts +73 -73
  148. package/locale/index.js +1 -1
  149. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  150. package/modern/Chip/Chip.js +3 -3
  151. package/modern/FilledInput/FilledInput.js +8 -4
  152. package/modern/Input/Input.js +9 -5
  153. package/modern/InputLabel/InputLabel.js +1 -1
  154. package/modern/index.js +1 -1
  155. package/modern/locale/index.js +1 -1
  156. package/modern/styles/index.js +6 -0
  157. package/node/BottomNavigation/BottomNavigation.js +0 -0
  158. package/node/Chip/Chip.js +3 -3
  159. package/node/FilledInput/FilledInput.js +8 -4
  160. package/node/Input/Input.js +9 -5
  161. package/node/InputLabel/InputLabel.js +1 -1
  162. package/node/index.js +1 -1
  163. package/node/locale/index.js +3 -3
  164. package/node/styles/index.js +9 -1
  165. package/package.json +5 -5
  166. package/styles/CssVarsProvider.d.ts +16 -16
  167. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  168. package/styles/getOverlayAlpha.d.ts +2 -2
  169. package/styles/index.d.ts +3 -0
  170. package/styles/index.js +6 -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/types/OverridableComponentAugmentation.d.ts +31 -31
  175. package/umd/material-ui.development.js +3897 -3865
  176. package/umd/material-ui.production.min.js +29 -20
  177. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  178. package/useTouchRipple/index.d.ts +1 -1
  179. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  180. package/utils/getScrollbarSize.d.ts +2 -2
  181. package/utils/ownerDocument.d.ts +2 -2
  182. package/utils/ownerWindow.d.ts +2 -2
  183. package/utils/setRef.d.ts +2 -2
@@ -1,18 +1,18 @@
1
- export interface ToggleButtonGroupClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="vertical"`. */
5
- vertical: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- /** Styles applied to the children. */
9
- grouped: string;
10
- /** Styles applied to the children if `orientation="horizontal"`. */
11
- groupedHorizontal: string;
12
- /** Styles applied to the children if `orientation="vertical"`. */
13
- groupedVertical: string;
14
- }
15
- export type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
16
- export declare function getToggleButtonGroupUtilityClass(slot: string): string;
17
- declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
18
- export default toggleButtonGroupClasses;
1
+ export interface ToggleButtonGroupClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="vertical"`. */
5
+ vertical: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ /** Styles applied to the children. */
9
+ grouped: string;
10
+ /** Styles applied to the children if `orientation="horizontal"`. */
11
+ groupedHorizontal: string;
12
+ /** Styles applied to the children if `orientation="vertical"`. */
13
+ groupedVertical: string;
14
+ }
15
+ export type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
16
+ export declare function getToggleButtonGroupUtilityClass(slot: string): string;
17
+ declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
18
+ export default toggleButtonGroupClasses;
@@ -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 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 type ToolbarClassKey = keyof ToolbarClasses;
12
+ export declare function getToolbarUtilityClass(slot: string): string;
13
+ declare const toolbarClasses: ToolbarClasses;
14
+ export default toolbarClasses;
@@ -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 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 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 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 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 * as 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 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 type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
- component?: React.ElementType;
15
- }> = OverrideProps<Grid2TypeMap<P, D>, D>;
1
+ import * as 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 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 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 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 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
+ };
@@ -1,2 +1,2 @@
1
- export { unstable_generateUtilityClass as default } from '@mui/utils';
2
- export type { GlobalStateSlot } from '@mui/utils';
1
+ export { unstable_generateUtilityClass as default } from '@mui/utils';
2
+ export type { GlobalStateSlot } from '@mui/utils';
@@ -1 +1 @@
1
- export { unstable_generateUtilityClasses as default } from '@mui/utils';
1
+ export { unstable_generateUtilityClasses as default } from '@mui/utils';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.0
1
+ /** @license MUI v5.11.1
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 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 type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
File without changes
@@ -134,7 +134,7 @@ var ChipRoot = styled('div', {
134
134
  backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
135
135
  color: (theme.vars || theme).palette[ownerState.color].contrastText
136
136
  }, ownerState.onDelete && _defineProperty({}, "&.".concat(chipClasses.focusVisible), {
137
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
137
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
138
138
  }), ownerState.onDelete && ownerState.color !== 'default' && _defineProperty({}, "&.".concat(chipClasses.focusVisible), {
139
139
  backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
140
140
  }));
@@ -147,10 +147,10 @@ var ChipRoot = styled('div', {
147
147
  WebkitTapHighlightColor: 'transparent',
148
148
  cursor: 'pointer',
149
149
  '&:hover': {
150
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
150
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
151
151
  }
152
152
  }, _defineProperty(_ref15, "&.".concat(chipClasses.focusVisible), {
153
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
153
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
154
154
  }), _defineProperty(_ref15, '&:active', {
155
155
  boxShadow: (theme.vars || theme).shadows[1]
156
156
  }), _ref15), ownerState.clickable && ownerState.color !== 'default' && _defineProperty({}, "&:hover, &.".concat(chipClasses.focusVisible), {
@@ -81,9 +81,13 @@ var FilledInputRoot = styled(InputBaseRoot, {
81
81
  // translateX(0) is a workaround for Safari transform scale bug
82
82
  // See https://github.com/mui/material-ui/issues/31766
83
83
  transform: 'scaleX(1) translateX(0)'
84
- }), _defineProperty(_ref2, "&.".concat(filledInputClasses.error, ":after"), {
85
- borderBottomColor: (theme.vars || theme).palette.error.main,
86
- transform: 'scaleX(1)' // error is always underlined in red
84
+ }), _defineProperty(_ref2, "&.".concat(filledInputClasses.error), {
85
+ '&:before, &:after': {
86
+ borderBottomColor: (theme.vars || theme).palette.error.main
87
+ },
88
+ '&:focus-within:after': {
89
+ transform: 'scaleX(1)' // error is always underlined in red
90
+ }
87
91
  }), _defineProperty(_ref2, '&:before', {
88
92
  borderBottom: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputUnderline, ")") : bottomLineColor),
89
93
  left: 0,
@@ -96,7 +100,7 @@ var FilledInputRoot = styled(InputBaseRoot, {
96
100
  duration: theme.transitions.duration.shorter
97
101
  }),
98
102
  pointerEvents: 'none' // Transparent to the hover style.
99
- }), _defineProperty(_ref2, "&:hover:not(.".concat(filledInputClasses.disabled, "):before"), {
103
+ }), _defineProperty(_ref2, "&:hover:not(.".concat(filledInputClasses.disabled, ", .").concat(filledInputClasses.error, "):before"), {
100
104
  borderBottom: "1px solid ".concat((theme.vars || theme).palette.text.primary)
101
105
  }), _defineProperty(_ref2, "&.".concat(filledInputClasses.disabled, ":before"), {
102
106
  borderBottomStyle: 'dotted'
@@ -67,9 +67,13 @@ var InputRoot = styled(InputBaseRoot, {
67
67
  // translateX(0) is a workaround for Safari transform scale bug
68
68
  // See https://github.com/mui/material-ui/issues/31766
69
69
  transform: 'scaleX(1) translateX(0)'
70
- }), _defineProperty(_ref2, "&.".concat(inputClasses.error, ":after"), {
71
- borderBottomColor: (theme.vars || theme).palette.error.main,
72
- transform: 'scaleX(1)' // error is always underlined in red
70
+ }), _defineProperty(_ref2, "&.".concat(inputClasses.error), {
71
+ '&:before, &:after': {
72
+ borderBottomColor: (theme.vars || theme).palette.error.main
73
+ },
74
+ '&:focus-within:after': {
75
+ transform: 'scaleX(1)' // error is always underlined in red
76
+ }
73
77
  }), _defineProperty(_ref2, '&:before', {
74
78
  borderBottom: "1px solid ".concat(bottomLineColor),
75
79
  left: 0,
@@ -82,8 +86,8 @@ var InputRoot = styled(InputBaseRoot, {
82
86
  duration: theme.transitions.duration.shorter
83
87
  }),
84
88
  pointerEvents: 'none' // Transparent to the hover style.
85
- }), _defineProperty(_ref2, "&:hover:not(.".concat(inputClasses.disabled, "):before"), {
86
- borderBottom: "2px solid ".concat((theme.vars || theme).palette.text.primary),
89
+ }), _defineProperty(_ref2, "&:hover:not(.".concat(inputClasses.disabled, ", .").concat(inputClasses.error, "):before"), {
90
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.text.primary),
87
91
  // Reset on touch devices, it doesn't add specificity
88
92
  '@media (hover: none)': {
89
93
  borderBottom: "1px solid ".concat(bottomLineColor)
@@ -195,7 +195,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes /* remove-proptypes
195
195
  * The size of the component.
196
196
  * @default 'normal'
197
197
  */
198
- size: PropTypes.oneOf(['normal', 'small']),
198
+ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['normal', 'small']), PropTypes.string]),
199
199
  /**
200
200
  * The system prop that allows defining system overrides as well as additional CSS styles.
201
201
  */
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.0
1
+ /** @license MUI v5.11.1
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.
@@ -2194,7 +2194,7 @@ export var koKR = {
2194
2194
  }
2195
2195
  }
2196
2196
  };
2197
- export var kzKZ = {
2197
+ export var kkKZ = {
2198
2198
  components: {
2199
2199
  MuiBreadcrumbs: {
2200
2200
  defaultProps: {
@@ -1,5 +1,11 @@
1
+ import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
1
2
  export { default as adaptV4Theme } from './adaptV4Theme';
2
3
  export { hexToRgb, rgbToHex, hslToRgb, decomposeColor, recomposeColor, getContrastRatio, getLuminance, emphasize, alpha, darken, lighten, css, keyframes } from '@mui/system';
4
+ // TODO: Remove this function in v6.
5
+ // eslint-disable-next-line @typescript-eslint/naming-convention
6
+ export function experimental_sx() {
7
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.For more details, see https://github.com/mui/material-ui/pull/35150." : _formatMuiErrorMessage(20));
8
+ }
3
9
  export { default as createTheme, createMuiTheme } from './createTheme';
4
10
  export { default as unstable_createMuiStrictModeTheme } from './createMuiStrictModeTheme';
5
11
  export { default as createStyles } from './createStyles';