@mui/material 5.11.6 → 5.11.7

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 (193) 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 +86 -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/Checkbox.d.ts +3 -0
  30. package/Checkbox/Checkbox.js +3 -0
  31. package/Checkbox/checkboxClasses.d.ts +18 -18
  32. package/Chip/chipClasses.d.ts +96 -96
  33. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  34. package/ClickAwayListener/index.d.ts +2 -2
  35. package/Collapse/collapseClasses.d.ts +18 -18
  36. package/Container/containerClasses.d.ts +6 -6
  37. package/Dialog/DialogContext.d.ts +6 -6
  38. package/Dialog/dialogClasses.d.ts +36 -36
  39. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  40. package/DialogContent/dialogContentClasses.d.ts +10 -10
  41. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  42. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  43. package/Divider/dividerClasses.d.ts +34 -34
  44. package/Drawer/drawerClasses.d.ts +30 -30
  45. package/Fab/fabClasses.d.ts +26 -26
  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/FormLabel.d.ts +51 -45
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/gridClasses.d.ts +48 -48
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +34 -34
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  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 +70 -57
  65. package/InputLabel/inputLabelClasses.d.ts +32 -32
  66. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  67. package/Link/getTextDecoration.d.ts +15 -15
  68. package/Link/linkClasses.d.ts +18 -18
  69. package/List/listClasses.d.ts +14 -14
  70. package/ListItem/listItemClasses.d.ts +30 -30
  71. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  72. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  73. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  74. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  75. package/ListItemText/listItemTextClasses.d.ts +18 -18
  76. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  77. package/Menu/menuClasses.d.ts +12 -12
  78. package/MenuItem/menuItemClasses.d.ts +20 -20
  79. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  80. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  81. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  82. package/Pagination/paginationClasses.d.ts +14 -14
  83. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  84. package/Paper/paperClasses.d.ts +39 -39
  85. package/Popover/popoverClasses.d.ts +10 -10
  86. package/Popper/Popper.d.ts +37 -37
  87. package/Radio/Radio.js +2 -0
  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/Slider/SliderValueLabel.d.ts +15 -15
  96. package/Slider/SliderValueLabel.types.d.ts +24 -24
  97. package/Slider/sliderClasses.d.ts +58 -58
  98. package/Snackbar/snackbarClasses.d.ts +20 -20
  99. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  100. package/SpeedDial/speedDialClasses.d.ts +22 -22
  101. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  102. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  103. package/Step/StepContext.d.ts +20 -20
  104. package/Step/stepClasses.d.ts +16 -16
  105. package/StepButton/stepButtonClasses.d.ts +14 -14
  106. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  107. package/StepContent/stepContentClasses.d.ts +12 -12
  108. package/StepIcon/stepIconClasses.d.ts +16 -16
  109. package/StepLabel/stepLabelClasses.d.ts +28 -28
  110. package/Stepper/StepperContext.d.ts +18 -18
  111. package/Stepper/stepperClasses.d.ts +14 -14
  112. package/SvgIcon/svgIconClasses.d.ts +26 -26
  113. package/Switch/Switch.js +2 -0
  114. package/Switch/switchClasses.d.ts +32 -32
  115. package/Tab/tabClasses.d.ts +26 -26
  116. package/TabScrollButton/TabScrollButton.d.ts +1 -0
  117. package/TabScrollButton/TabScrollButton.js +1 -0
  118. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  119. package/Table/tableClasses.d.ts +10 -10
  120. package/TableBody/tableBodyClasses.d.ts +8 -8
  121. package/TableCell/tableCellClasses.d.ts +32 -32
  122. package/TableContainer/tableContainerClasses.d.ts +8 -8
  123. package/TableFooter/tableFooterClasses.d.ts +8 -8
  124. package/TableHead/tableHeadClasses.d.ts +8 -8
  125. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  126. package/TableRow/tableRowClasses.d.ts +16 -16
  127. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  128. package/Tabs/tabsClasses.d.ts +32 -32
  129. package/TextField/textFieldClasses.d.ts +8 -8
  130. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  131. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  132. package/Toolbar/toolbarClasses.d.ts +14 -14
  133. package/Tooltip/Tooltip.js +9 -9
  134. package/Tooltip/tooltipClasses.d.ts +30 -30
  135. package/Typography/typographyClasses.d.ts +50 -50
  136. package/Unstable_Grid2/Grid2.d.ts +4 -4
  137. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  138. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  139. package/Unstable_Grid2/index.d.ts +4 -4
  140. package/className/index.d.ts +1 -1
  141. package/darkScrollbar/index.d.ts +28 -28
  142. package/generateUtilityClass/index.d.ts +2 -2
  143. package/generateUtilityClasses/index.d.ts +1 -1
  144. package/index.js +1 -1
  145. package/internal/SwitchBase.d.ts +5 -0
  146. package/internal/SwitchBase.js +1 -1
  147. package/internal/switchBaseClasses.d.ts +12 -12
  148. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  149. package/legacy/Checkbox/Checkbox.js +3 -0
  150. package/legacy/Radio/Radio.js +2 -0
  151. package/legacy/Switch/Switch.js +2 -0
  152. package/legacy/TabScrollButton/TabScrollButton.js +1 -0
  153. package/legacy/Tooltip/Tooltip.js +9 -9
  154. package/legacy/index.js +1 -1
  155. package/legacy/internal/SwitchBase.js +2 -1
  156. package/legacy/styles/CssVarsProvider.js +3 -1
  157. package/locale/index.d.ts +75 -75
  158. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  159. package/modern/Checkbox/Checkbox.js +3 -0
  160. package/modern/Radio/Radio.js +2 -0
  161. package/modern/Switch/Switch.js +2 -0
  162. package/modern/TabScrollButton/TabScrollButton.js +1 -0
  163. package/modern/Tooltip/Tooltip.js +9 -9
  164. package/modern/index.js +1 -1
  165. package/modern/internal/SwitchBase.js +1 -1
  166. package/modern/styles/CssVarsProvider.js +3 -1
  167. package/node/BottomNavigation/BottomNavigation.js +0 -0
  168. package/node/Checkbox/Checkbox.js +3 -0
  169. package/node/Radio/Radio.js +2 -0
  170. package/node/Switch/Switch.js +2 -0
  171. package/node/TabScrollButton/TabScrollButton.js +1 -0
  172. package/node/Tooltip/Tooltip.js +9 -9
  173. package/node/index.js +1 -1
  174. package/node/internal/SwitchBase.js +1 -1
  175. package/node/styles/CssVarsProvider.js +3 -1
  176. package/package.json +5 -5
  177. package/styles/CssVarsProvider.d.ts +16 -16
  178. package/styles/CssVarsProvider.js +3 -1
  179. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  180. package/styles/getOverlayAlpha.d.ts +2 -2
  181. package/transitions/index.d.ts +1 -1
  182. package/transitions/transition.d.ts +13 -13
  183. package/transitions/utils.d.ts +23 -23
  184. package/types/OverridableComponentAugmentation.d.ts +31 -31
  185. package/umd/material-ui.development.js +59 -26
  186. package/umd/material-ui.production.min.js +4 -4
  187. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  188. package/useTouchRipple/index.d.ts +1 -1
  189. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  190. package/utils/getScrollbarSize.d.ts +2 -2
  191. package/utils/ownerDocument.d.ts +2 -2
  192. package/utils/ownerWindow.d.ts +2 -2
  193. package/utils/setRef.d.ts +2 -2
@@ -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,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.6
2
+ * @mui/material v5.11.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -19,9 +19,13 @@ export interface SwitchBaseProps
19
19
  * The default checked state. Use when the component is not controlled.
20
20
  */
21
21
  defaultChecked?: boolean;
22
+ /**
23
+ * If `true`, the component is disabled.
24
+ */
22
25
  disabled?: boolean;
23
26
  /**
24
27
  * If `true`, the ripple effect is disabled.
28
+ * @default false
25
29
  */
26
30
  disableRipple?: boolean;
27
31
  /**
@@ -65,6 +69,7 @@ export interface SwitchBaseProps
65
69
  readOnly?: boolean;
66
70
  /**
67
71
  * If `true`, the `input` element is required.
72
+ * @default false
68
73
  */
69
74
  required?: boolean;
70
75
  tabIndex?: number;
@@ -72,7 +72,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
72
72
  onChange,
73
73
  onFocus,
74
74
  readOnly,
75
- required,
75
+ required = false,
76
76
  tabIndex,
77
77
  type,
78
78
  value
@@ -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
@@ -141,10 +141,12 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
141
141
  defaultChecked: PropTypes.bool,
142
142
  /**
143
143
  * If `true`, the component is disabled.
144
+ * @default false
144
145
  */
145
146
  disabled: PropTypes.bool,
146
147
  /**
147
148
  * If `true`, the ripple effect is disabled.
149
+ * @default false
148
150
  */
149
151
  disableRipple: PropTypes.bool,
150
152
  /**
@@ -186,6 +188,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
186
188
  onChange: PropTypes.func,
187
189
  /**
188
190
  * If `true`, the `input` element is required.
191
+ * @default false
189
192
  */
190
193
  required: PropTypes.bool,
191
194
  /**
@@ -154,6 +154,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
154
154
  disabled: PropTypes.bool,
155
155
  /**
156
156
  * If `true`, the ripple effect is disabled.
157
+ * @default false
157
158
  */
158
159
  disableRipple: PropTypes.bool,
159
160
  /**
@@ -187,6 +188,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
187
188
  onChange: PropTypes.func,
188
189
  /**
189
190
  * If `true`, the `input` element is required.
191
+ * @default false
190
192
  */
191
193
  required: PropTypes.bool,
192
194
  /**
@@ -251,6 +251,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
251
251
  disabled: PropTypes.bool,
252
252
  /**
253
253
  * If `true`, the ripple effect is disabled.
254
+ * @default false
254
255
  */
255
256
  disableRipple: PropTypes.bool,
256
257
  /**
@@ -287,6 +288,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
287
288
  onChange: PropTypes.func,
288
289
  /**
289
290
  * If `true`, the `input` element is required.
291
+ * @default false
290
292
  */
291
293
  required: PropTypes.bool,
292
294
  /**
@@ -101,6 +101,7 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
101
101
  direction: PropTypes.oneOf(['left', 'right']).isRequired,
102
102
  /**
103
103
  * If `true`, the component is disabled.
104
+ * @default false
104
105
  */
105
106
  disabled: PropTypes.bool,
106
107
  /**
@@ -185,6 +185,10 @@ var TooltipArrow = styled('span', {
185
185
  });
186
186
  var hystersisOpen = false;
187
187
  var hystersisTimer = null;
188
+ var cursorPosition = {
189
+ x: 0,
190
+ y: 0
191
+ };
188
192
  export function testReset() {
189
193
  hystersisOpen = false;
190
194
  clearTimeout(hystersisTimer);
@@ -447,17 +451,13 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
447
451
  if (!title && title !== 0) {
448
452
  open = false;
449
453
  }
450
- var positionRef = React.useRef({
451
- x: 0,
452
- y: 0
453
- });
454
454
  var popperRef = React.useRef();
455
455
  var handleMouseMove = function handleMouseMove(event) {
456
456
  var childrenProps = children.props;
457
457
  if (childrenProps.onMouseMove) {
458
458
  childrenProps.onMouseMove(event);
459
459
  }
460
- positionRef.current = {
460
+ cursorPosition = {
461
461
  x: event.clientX,
462
462
  y: event.clientY
463
463
  };
@@ -564,10 +564,10 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
564
564
  anchorEl: followCursor ? {
565
565
  getBoundingClientRect: function getBoundingClientRect() {
566
566
  return {
567
- top: positionRef.current.y,
568
- left: positionRef.current.x,
569
- right: positionRef.current.x,
570
- bottom: positionRef.current.y,
567
+ top: cursorPosition.y,
568
+ left: cursorPosition.x,
569
+ right: cursorPosition.x,
570
+ bottom: cursorPosition.y,
571
571
  width: 0,
572
572
  height: 0
573
573
  };
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.6
2
+ * @mui/material v5.11.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -72,7 +72,8 @@ var SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref) {
72
72
  onChange = props.onChange,
73
73
  onFocus = props.onFocus,
74
74
  readOnly = props.readOnly,
75
- required = props.required,
75
+ _props$required = props.required,
76
+ required = _props$required === void 0 ? false : _props$required,
76
77
  tabIndex = props.tabIndex,
77
78
  type = props.type,
78
79
  value = props.value,
@@ -5,7 +5,9 @@ import createTypography from './createTypography';
5
5
  import excludeVariablesFromRoot from './excludeVariablesFromRoot';
6
6
  var shouldSkipGeneratingVar = function shouldSkipGeneratingVar(keys) {
7
7
  var _keys$;
8
- return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
8
+ return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
9
+ // ends with sxConfig
10
+ keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
9
11
  };
10
12
  var defaultTheme = experimental_extendTheme();
11
13
  var _createCssVarsProvide = createCssVarsProvider({
package/locale/index.d.ts CHANGED
@@ -1,75 +1,75 @@
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 arSA: Localization;
27
- export declare const arSD: Localization;
28
- export declare const azAZ: Localization;
29
- export declare const bnBD: Localization;
30
- export declare const beBY: Localization;
31
- export declare const bgBG: Localization;
32
- export declare const caES: Localization;
33
- export declare const csCZ: Localization;
34
- export declare const daDK: Localization;
35
- export declare const deDE: Localization;
36
- export declare const elGR: Localization;
37
- export declare const enUS: Localization;
38
- export declare const esES: Localization;
39
- export declare const etEE: Localization;
40
- export declare const faIR: Localization;
41
- export declare const fiFI: Localization;
42
- export declare const frFR: Localization;
43
- export declare const heIL: Localization;
44
- export declare const hiIN: Localization;
45
- export declare const hrHR: Localization;
46
- export declare const huHU: Localization;
47
- export declare const hyAM: Localization;
48
- export declare const idID: Localization;
49
- export declare const isIS: Localization;
50
- export declare const itIT: Localization;
51
- export declare const jaJP: Localization;
52
- export declare const khKH: Localization;
53
- export declare const koKR: Localization;
54
- export declare const kuLatn: Localization;
55
- export declare const kkKZ: Localization;
56
- export declare const mkMK: Localization;
57
- export declare const nbNO: Localization;
58
- export declare const nlNL: Localization;
59
- export declare const plPL: Localization;
60
- export declare const ptBR: Localization;
61
- export declare const ptPT: Localization;
62
- export declare const roRO: Localization;
63
- export declare const srRS: Localization;
64
- export declare const ruRU: Localization;
65
- export declare const siLK: Localization;
66
- export declare const skSK: Localization;
67
- export declare const svSE: Localization;
68
- export declare const thTH: Localization;
69
- export declare const trTR: Localization;
70
- export declare const ukUA: Localization;
71
- export declare const urPK: Localization;
72
- export declare const viVN: Localization;
73
- export declare const zhCN: Localization;
74
- export declare const zhHK: Localization;
75
- 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 arSA: Localization;
27
+ export declare const arSD: Localization;
28
+ export declare const azAZ: Localization;
29
+ export declare const bnBD: Localization;
30
+ export declare const beBY: Localization;
31
+ export declare const bgBG: Localization;
32
+ export declare const caES: Localization;
33
+ export declare const csCZ: Localization;
34
+ export declare const daDK: Localization;
35
+ export declare const deDE: Localization;
36
+ export declare const elGR: Localization;
37
+ export declare const enUS: Localization;
38
+ export declare const esES: Localization;
39
+ export declare const etEE: Localization;
40
+ export declare const faIR: Localization;
41
+ export declare const fiFI: Localization;
42
+ export declare const frFR: Localization;
43
+ export declare const heIL: Localization;
44
+ export declare const hiIN: Localization;
45
+ export declare const hrHR: Localization;
46
+ export declare const huHU: Localization;
47
+ export declare const hyAM: Localization;
48
+ export declare const idID: Localization;
49
+ export declare const isIS: Localization;
50
+ export declare const itIT: Localization;
51
+ export declare const jaJP: Localization;
52
+ export declare const khKH: Localization;
53
+ export declare const koKR: Localization;
54
+ export declare const kuLatn: Localization;
55
+ export declare const kkKZ: Localization;
56
+ export declare const mkMK: Localization;
57
+ export declare const nbNO: Localization;
58
+ export declare const nlNL: Localization;
59
+ export declare const plPL: Localization;
60
+ export declare const ptBR: Localization;
61
+ export declare const ptPT: Localization;
62
+ export declare const roRO: Localization;
63
+ export declare const srRS: Localization;
64
+ export declare const ruRU: Localization;
65
+ export declare const siLK: Localization;
66
+ export declare const skSK: Localization;
67
+ export declare const svSE: Localization;
68
+ export declare const thTH: Localization;
69
+ export declare const trTR: Localization;
70
+ export declare const ukUA: Localization;
71
+ export declare const urPK: Localization;
72
+ export declare const viVN: Localization;
73
+ export declare const zhCN: Localization;
74
+ export declare const zhHK: Localization;
75
+ export declare const zhTW: Localization;
File without changes
@@ -139,10 +139,12 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
139
139
  defaultChecked: PropTypes.bool,
140
140
  /**
141
141
  * If `true`, the component is disabled.
142
+ * @default false
142
143
  */
143
144
  disabled: PropTypes.bool,
144
145
  /**
145
146
  * If `true`, the ripple effect is disabled.
147
+ * @default false
146
148
  */
147
149
  disableRipple: PropTypes.bool,
148
150
  /**
@@ -184,6 +186,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
184
186
  onChange: PropTypes.func,
185
187
  /**
186
188
  * If `true`, the `input` element is required.
189
+ * @default false
187
190
  */
188
191
  required: PropTypes.bool,
189
192
  /**
@@ -155,6 +155,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
155
155
  disabled: PropTypes.bool,
156
156
  /**
157
157
  * If `true`, the ripple effect is disabled.
158
+ * @default false
158
159
  */
159
160
  disableRipple: PropTypes.bool,
160
161
  /**
@@ -188,6 +189,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
188
189
  onChange: PropTypes.func,
189
190
  /**
190
191
  * If `true`, the `input` element is required.
192
+ * @default false
191
193
  */
192
194
  required: PropTypes.bool,
193
195
  /**