@mui/material 5.11.3 → 5.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) 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/Autocomplete.d.ts +1 -0
  9. package/Autocomplete/Autocomplete.js +1 -0
  10. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/Backdrop/backdropClasses.d.ts +10 -10
  14. package/Badge/badgeClasses.d.ts +56 -56
  15. package/BottomNavigation/BottomNavigation.js +0 -0
  16. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  17. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  18. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  19. package/Button/buttonClasses.d.ts +100 -100
  20. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  21. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  22. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  23. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  24. package/CHANGELOG.md +48 -0
  25. package/Card/cardClasses.d.ts +8 -8
  26. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  27. package/CardActions/cardActionsClasses.d.ts +10 -10
  28. package/CardContent/cardContentClasses.d.ts +8 -8
  29. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  30. package/CardMedia/cardMediaClasses.d.ts +12 -12
  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/FilledInput.js +0 -4
  47. package/FilledInput/filledInputClasses.d.ts +40 -40
  48. package/FormControl/FormControlContext.d.ts +17 -17
  49. package/FormControl/formControlClasses.d.ts +14 -14
  50. package/FormControl/useFormControl.d.ts +2 -2
  51. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  52. package/FormGroup/formGroupClasses.d.ts +12 -12
  53. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  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/Input.js +1 -5
  62. package/Input/inputClasses.d.ts +34 -34
  63. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  64. package/InputBase/inputBaseClasses.d.ts +46 -46
  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/MenuItem.d.ts +1 -1
  79. package/MenuItem/MenuItem.js +2 -1
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/Modal/Modal.d.ts +35 -12
  83. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  84. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  85. package/Pagination/paginationClasses.d.ts +14 -14
  86. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  87. package/Paper/paperClasses.d.ts +39 -39
  88. package/Popover/popoverClasses.d.ts +10 -10
  89. package/Popper/Popper.d.ts +37 -37
  90. package/Radio/radioClasses.d.ts +16 -16
  91. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  92. package/RadioGroup/useRadioGroup.d.ts +4 -4
  93. package/Rating/ratingClasses.d.ts +40 -40
  94. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  95. package/Select/Select.d.ts +25 -83
  96. package/Select/selectClasses.d.ts +30 -30
  97. package/Skeleton/skeletonClasses.d.ts +26 -26
  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/switchClasses.d.ts +32 -32
  114. package/Tab/tabClasses.d.ts +26 -26
  115. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  116. package/Table/tableClasses.d.ts +10 -10
  117. package/TableBody/tableBodyClasses.d.ts +8 -8
  118. package/TableCell/tableCellClasses.d.ts +32 -32
  119. package/TableContainer/tableContainerClasses.d.ts +8 -8
  120. package/TableFooter/tableFooterClasses.d.ts +8 -8
  121. package/TableHead/tableHeadClasses.d.ts +8 -8
  122. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  123. package/TableRow/tableRowClasses.d.ts +16 -16
  124. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  125. package/Tabs/Tabs.js +3 -1
  126. package/Tabs/tabsClasses.d.ts +32 -32
  127. package/TextField/textFieldClasses.d.ts +8 -8
  128. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  129. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  130. package/Toolbar/toolbarClasses.d.ts +14 -14
  131. package/Tooltip/Tooltip.js +0 -1
  132. package/Tooltip/tooltipClasses.d.ts +30 -30
  133. package/Typography/typographyClasses.d.ts +50 -50
  134. package/Unstable_Grid2/Grid2.d.ts +4 -4
  135. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  136. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  137. package/Unstable_Grid2/index.d.ts +4 -4
  138. package/className/index.d.ts +1 -1
  139. package/darkScrollbar/index.d.ts +28 -28
  140. package/generateUtilityClass/index.d.ts +2 -2
  141. package/generateUtilityClasses/index.d.ts +1 -1
  142. package/index.js +3 -1
  143. package/internal/switchBaseClasses.d.ts +12 -12
  144. package/legacy/Autocomplete/Autocomplete.js +1 -0
  145. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  146. package/legacy/FilledInput/FilledInput.js +0 -3
  147. package/legacy/Input/Input.js +1 -4
  148. package/legacy/MenuItem/MenuItem.js +2 -1
  149. package/legacy/Tabs/Tabs.js +3 -1
  150. package/legacy/Tooltip/Tooltip.js +0 -1
  151. package/legacy/index.js +3 -1
  152. package/locale/index.d.ts +74 -74
  153. package/modern/Autocomplete/Autocomplete.js +1 -0
  154. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  155. package/modern/FilledInput/FilledInput.js +0 -4
  156. package/modern/Input/Input.js +1 -5
  157. package/modern/MenuItem/MenuItem.js +2 -1
  158. package/modern/Tabs/Tabs.js +3 -1
  159. package/modern/Tooltip/Tooltip.js +0 -1
  160. package/modern/index.js +3 -1
  161. package/node/Autocomplete/Autocomplete.js +1 -0
  162. package/node/BottomNavigation/BottomNavigation.js +0 -0
  163. package/node/FilledInput/FilledInput.js +0 -4
  164. package/node/Input/Input.js +1 -5
  165. package/node/MenuItem/MenuItem.js +2 -1
  166. package/node/Tabs/Tabs.js +3 -1
  167. package/node/Tooltip/Tooltip.js +0 -1
  168. package/node/index.js +3 -1
  169. package/package.json +4 -4
  170. package/styles/CssVarsProvider.d.ts +16 -16
  171. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  172. package/styles/getOverlayAlpha.d.ts +2 -2
  173. package/transitions/index.d.ts +1 -1
  174. package/transitions/transition.d.ts +13 -13
  175. package/transitions/utils.d.ts +23 -23
  176. package/types/OverridableComponentAugmentation.d.ts +31 -31
  177. package/umd/material-ui.development.js +27 -18
  178. package/umd/material-ui.production.min.js +7 -5
  179. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  180. package/useTouchRipple/index.d.ts +1 -1
  181. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  182. package/utils/getScrollbarSize.d.ts +2 -2
  183. package/utils/ownerDocument.d.ts +2 -2
  184. package/utils/ownerWindow.d.ts +2 -2
  185. package/utils/setRef.d.ts +2 -2
@@ -234,7 +234,8 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
234
234
  */
235
235
  role: PropTypes /* @typescript-to-proptypes-ignore */.string,
236
236
  /**
237
- * @ignore
237
+ * If `true`, the component is selected.
238
+ * @default false
238
239
  */
239
240
  selected: PropTypes.bool,
240
241
  /**
@@ -315,7 +315,9 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
315
315
  }
316
316
  tabMeta = tab ? tab.getBoundingClientRect() : null;
317
317
  if (process.env.NODE_ENV !== 'production') {
318
- if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0) {
318
+ if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&
319
+ // if the whole Tabs component is hidden, don't warn
320
+ tabsMeta.clientWidth !== 0) {
319
321
  tabsMeta = null;
320
322
  console.error(['MUI: The `value` provided to the Tabs component is invalid.', "The Tab with this `value` (\"".concat(value, "\") is not part of the document layout."), "Make sure the tab item is present in the document or that it's not `display: none`."].join('\n'));
321
323
  warnedOnceTabPresent = true;
@@ -584,7 +584,6 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
584
584
  return /*#__PURE__*/_jsx(TransitionComponent, _extends({
585
585
  timeout: theme.transitions.duration.shorter
586
586
  }, TransitionPropsInner, transitionProps, {
587
- "data-foo": "bar",
588
587
  children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {
589
588
  children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {
590
589
  ref: setArrowRef
package/legacy/index.js CHANGED
@@ -1,5 +1,7 @@
1
- /** @license MUI v5.11.3
1
+ /**
2
+ * @mui/material v5.11.4
2
3
  *
4
+ * @license MIT
3
5
  * This source code is licensed under the MIT license found in the
4
6
  * LICENSE file in the root directory of this source tree.
5
7
  */
package/locale/index.d.ts CHANGED
@@ -1,74 +1,74 @@
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 bgBG: Localization;
31
- export declare const caES: Localization;
32
- export declare const csCZ: Localization;
33
- export declare const daDK: Localization;
34
- export declare const deDE: Localization;
35
- export declare const elGR: Localization;
36
- export declare const enUS: Localization;
37
- export declare const esES: Localization;
38
- export declare const etEE: Localization;
39
- export declare const faIR: Localization;
40
- export declare const fiFI: Localization;
41
- export declare const frFR: Localization;
42
- export declare const heIL: Localization;
43
- export declare const hiIN: Localization;
44
- export declare const hrHR: Localization;
45
- export declare const huHU: Localization;
46
- export declare const hyAM: Localization;
47
- export declare const idID: Localization;
48
- export declare const isIS: Localization;
49
- export declare const itIT: Localization;
50
- export declare const jaJP: Localization;
51
- export declare const khKH: Localization;
52
- export declare const koKR: Localization;
53
- export declare const kuLatn: Localization;
54
- export declare const kkKZ: Localization;
55
- export declare const mkMK: Localization;
56
- export declare const nbNO: Localization;
57
- export declare const nlNL: Localization;
58
- export declare const plPL: Localization;
59
- export declare const ptBR: Localization;
60
- export declare const ptPT: Localization;
61
- export declare const roRO: Localization;
62
- export declare const srRS: Localization;
63
- export declare const ruRU: Localization;
64
- export declare const siLK: Localization;
65
- export declare const skSK: Localization;
66
- export declare const svSE: Localization;
67
- export declare const thTH: Localization;
68
- export declare const trTR: Localization;
69
- export declare const ukUA: Localization;
70
- export declare const urPK: Localization;
71
- export declare const viVN: Localization;
72
- export declare const zhCN: Localization;
73
- export declare const zhHK: Localization;
74
- 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 bgBG: Localization;
31
+ export declare const caES: Localization;
32
+ export declare const csCZ: Localization;
33
+ export declare const daDK: Localization;
34
+ export declare const deDE: Localization;
35
+ export declare const elGR: Localization;
36
+ export declare const enUS: Localization;
37
+ export declare const esES: Localization;
38
+ export declare const etEE: Localization;
39
+ export declare const faIR: Localization;
40
+ export declare const fiFI: Localization;
41
+ export declare const frFR: Localization;
42
+ export declare const heIL: Localization;
43
+ export declare const hiIN: Localization;
44
+ export declare const hrHR: Localization;
45
+ export declare const huHU: Localization;
46
+ export declare const hyAM: Localization;
47
+ export declare const idID: Localization;
48
+ export declare const isIS: Localization;
49
+ export declare const itIT: Localization;
50
+ export declare const jaJP: Localization;
51
+ export declare const khKH: Localization;
52
+ export declare const koKR: Localization;
53
+ export declare const kuLatn: Localization;
54
+ export declare const kkKZ: Localization;
55
+ export declare const mkMK: Localization;
56
+ export declare const nbNO: Localization;
57
+ export declare const nlNL: Localization;
58
+ export declare const plPL: Localization;
59
+ export declare const ptBR: Localization;
60
+ export declare const ptPT: Localization;
61
+ export declare const roRO: Localization;
62
+ export declare const srRS: Localization;
63
+ export declare const ruRU: Localization;
64
+ export declare const siLK: Localization;
65
+ export declare const skSK: Localization;
66
+ export declare const svSE: Localization;
67
+ export declare const thTH: Localization;
68
+ export declare const trTR: Localization;
69
+ export declare const ukUA: Localization;
70
+ export declare const urPK: Localization;
71
+ export declare const viVN: Localization;
72
+ export declare const zhCN: Localization;
73
+ export declare const zhHK: Localization;
74
+ export declare const zhTW: Localization;
@@ -499,6 +499,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
499
499
  className: classes.option
500
500
  }), option, {
501
501
  selected: optionProps['aria-selected'],
502
+ index,
502
503
  inputValue
503
504
  });
504
505
  };
File without changes
@@ -89,12 +89,8 @@ const FilledInputRoot = styled(InputBaseRoot, {
89
89
  [`&.${filledInputClasses.error}`]: {
90
90
  '&:before, &:after': {
91
91
  borderBottomColor: (theme.vars || theme).palette.error.main
92
- },
93
- '&:focus-within:after': {
94
- transform: 'scaleX(1)' // error is always underlined in red
95
92
  }
96
93
  },
97
-
98
94
  '&:before': {
99
95
  borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
100
96
  left: 0,
@@ -73,12 +73,8 @@ const InputRoot = styled(InputBaseRoot, {
73
73
  [`&.${inputClasses.error}`]: {
74
74
  '&:before, &:after': {
75
75
  borderBottomColor: (theme.vars || theme).palette.error.main
76
- },
77
- '&:focus-within:after': {
78
- transform: 'scaleX(1)' // error is always underlined in red
79
76
  }
80
77
  },
81
-
82
78
  '&:before': {
83
79
  borderBottom: `1px solid ${bottomLineColor}`,
84
80
  left: 0,
@@ -94,7 +90,7 @@ const InputRoot = styled(InputBaseRoot, {
94
90
  },
95
91
 
96
92
  [`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {
97
- borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`,
93
+ borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
98
94
  // Reset on touch devices, it doesn't add specificity
99
95
  '@media (hover: none)': {
100
96
  borderBottom: `1px solid ${bottomLineColor}`
@@ -242,7 +242,8 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
242
242
  */
243
243
  role: PropTypes /* @typescript-to-proptypes-ignore */.string,
244
244
  /**
245
- * @ignore
245
+ * If `true`, the component is selected.
246
+ * @default false
246
247
  */
247
248
  selected: PropTypes.bool,
248
249
  /**
@@ -307,7 +307,9 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
307
307
  }
308
308
  tabMeta = tab ? tab.getBoundingClientRect() : null;
309
309
  if (process.env.NODE_ENV !== 'production') {
310
- if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0) {
310
+ if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&
311
+ // if the whole Tabs component is hidden, don't warn
312
+ tabsMeta.clientWidth !== 0) {
311
313
  tabsMeta = null;
312
314
  console.error(['MUI: The `value` provided to the Tabs component is invalid.', `The Tab with this \`value\` ("${value}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join('\n'));
313
315
  warnedOnceTabPresent = true;
@@ -567,7 +567,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
567
567
  }) => /*#__PURE__*/_jsx(TransitionComponent, _extends({
568
568
  timeout: theme.transitions.duration.shorter
569
569
  }, TransitionPropsInner, transitionProps, {
570
- "data-foo": "bar",
571
570
  children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {
572
571
  children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {
573
572
  ref: setArrowRef
package/modern/index.js CHANGED
@@ -1,5 +1,7 @@
1
- /** @license MUI v5.11.3
1
+ /**
2
+ * @mui/material v5.11.4
2
3
  *
4
+ * @license MIT
3
5
  * This source code is licensed under the MIT license found in the
4
6
  * LICENSE file in the root directory of this source tree.
5
7
  */
@@ -516,6 +516,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
516
516
  className: classes.option
517
517
  }), option, {
518
518
  selected: optionProps['aria-selected'],
519
+ index,
519
520
  inputValue
520
521
  });
521
522
  };
File without changes
@@ -99,12 +99,8 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
99
99
  [`&.${_filledInputClasses.default.error}`]: {
100
100
  '&:before, &:after': {
101
101
  borderBottomColor: (theme.vars || theme).palette.error.main
102
- },
103
- '&:focus-within:after': {
104
- transform: 'scaleX(1)' // error is always underlined in red
105
102
  }
106
103
  },
107
-
108
104
  '&:before': {
109
105
  borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
110
106
  left: 0,
@@ -82,12 +82,8 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
82
82
  [`&.${_inputClasses.default.error}`]: {
83
83
  '&:before, &:after': {
84
84
  borderBottomColor: (theme.vars || theme).palette.error.main
85
- },
86
- '&:focus-within:after': {
87
- transform: 'scaleX(1)' // error is always underlined in red
88
85
  }
89
86
  },
90
-
91
87
  '&:before': {
92
88
  borderBottom: `1px solid ${bottomLineColor}`,
93
89
  left: 0,
@@ -103,7 +99,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
103
99
  },
104
100
 
105
101
  [`&:hover:not(.${_inputClasses.default.disabled}, .${_inputClasses.default.error}):before`]: {
106
- borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`,
102
+ borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
107
103
  // Reset on touch devices, it doesn't add specificity
108
104
  '@media (hover: none)': {
109
105
  borderBottom: `1px solid ${bottomLineColor}`
@@ -252,7 +252,8 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
252
252
  */
253
253
  role: _propTypes.default /* @typescript-to-proptypes-ignore */.string,
254
254
  /**
255
- * @ignore
255
+ * If `true`, the component is selected.
256
+ * @default false
256
257
  */
257
258
  selected: _propTypes.default.bool,
258
259
  /**
package/node/Tabs/Tabs.js CHANGED
@@ -315,7 +315,9 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
315
315
  }
316
316
  tabMeta = tab ? tab.getBoundingClientRect() : null;
317
317
  if (process.env.NODE_ENV !== 'production') {
318
- if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0) {
318
+ if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&
319
+ // if the whole Tabs component is hidden, don't warn
320
+ tabsMeta.clientWidth !== 0) {
319
321
  tabsMeta = null;
320
322
  console.error(['MUI: The `value` provided to the Tabs component is invalid.', `The Tab with this \`value\` ("${value}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join('\n'));
321
323
  warnedOnceTabPresent = true;
@@ -578,7 +578,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
578
578
  }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionComponent, (0, _extends2.default)({
579
579
  timeout: theme.transitions.duration.shorter
580
580
  }, TransitionPropsInner, transitionProps, {
581
- "data-foo": "bar",
582
581
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(TooltipComponent, (0, _extends2.default)({}, tooltipProps, {
583
582
  children: [title, arrow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ArrowComponent, (0, _extends2.default)({}, tooltipArrowProps, {
584
583
  ref: setArrowRef
package/node/index.js CHANGED
@@ -1,5 +1,7 @@
1
- /** @license MUI v5.11.3
1
+ /**
2
+ * @mui/material v5.11.4
2
3
  *
4
+ * @license MIT
3
5
  * This source code is licensed under the MIT license found in the
4
6
  * LICENSE file in the root directory of this source tree.
5
7
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.11.3",
3
+ "version": "5.11.4",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -46,9 +46,9 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.20.7",
49
- "@mui/base": "5.0.0-alpha.112",
50
- "@mui/core-downloads-tracker": "^5.11.3",
51
- "@mui/system": "^5.11.2",
49
+ "@mui/base": "5.0.0-alpha.113",
50
+ "@mui/core-downloads-tracker": "^5.11.4",
51
+ "@mui/system": "^5.11.4",
52
52
  "@mui/types": "^7.2.3",
53
53
  "@mui/utils": "^5.11.2",
54
54
  "@types/react-transition-group": "^4.4.5",
@@ -1,16 +1,16 @@
1
- /// <reference types="react" />
2
- import { SupportedColorScheme } from './experimental_extendTheme';
3
- declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
4
- declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
5
- theme?: {
6
- cssVarPrefix?: string | undefined;
7
- colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
8
- } | undefined;
9
- documentNode?: Document | null | undefined;
10
- colorSchemeNode?: Element | null | undefined;
11
- colorSchemeSelector?: string | undefined;
12
- storageWindow?: Window | null | undefined;
13
- disableNestedContext?: boolean | undefined;
14
- disableStyleSheetGeneration?: boolean | undefined;
15
- }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
16
- export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
1
+ /// <reference types="react" />
2
+ import { SupportedColorScheme } from './experimental_extendTheme';
3
+ declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
4
+ declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
5
+ theme?: {
6
+ cssVarPrefix?: string | undefined;
7
+ colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
8
+ } | undefined;
9
+ documentNode?: Document | null | undefined;
10
+ colorSchemeNode?: Element | null | undefined;
11
+ colorSchemeSelector?: string | undefined;
12
+ storageWindow?: Window | null | undefined;
13
+ disableNestedContext?: boolean | undefined;
14
+ disableStyleSheetGeneration?: boolean | undefined;
15
+ }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
16
+ export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
@@ -1,5 +1,5 @@
1
- /**
2
- * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
3
- */
4
- declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
5
- export default excludeVariablesFromRoot;
1
+ /**
2
+ * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
3
+ */
4
+ declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
5
+ export default excludeVariablesFromRoot;
@@ -1,2 +1,2 @@
1
- declare const getOverlayAlpha: (elevation: number) => string;
2
- export default getOverlayAlpha;
1
+ declare const getOverlayAlpha: (elevation: number) => string;
2
+ export default getOverlayAlpha;
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';
@@ -1,13 +1,13 @@
1
- import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
- import * as React from 'react';
3
- export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
- export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
- export interface EasingProps {
6
- easing: string | {
7
- enter?: string;
8
- exit?: string;
9
- };
10
- }
11
- export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
- export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
- }
1
+ import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
+ import * as React from 'react';
3
+ export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
+ export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
+ }
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,31 +1,31 @@
1
- import * as React from 'react';
2
- import { DistributiveOmit } from '@mui/types';
3
- declare module '@mui/material/OverridableComponent' {
4
- /**
5
- * A component whose root component can be controlled via a `component` prop.
6
- *
7
- * Adjusts valid props based on the type of `component`.
8
- */
9
- interface OverridableComponent<M extends OverridableTypeMap> {
10
- <C extends React.ElementType>(props: {
11
- /**
12
- * The component used for the root node.
13
- * Either a string to use a HTML element or a component.
14
- */
15
- component: C;
16
- } & OverridePropsVer2<M, C>): JSX.Element;
17
- (props: DefaultComponentPropsVer2<M>): JSX.Element;
18
- }
19
- /**
20
- * Props of the component if `component={Component}` is used.
21
- */
22
- type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
23
- ref?: React.Ref<Element>;
24
- });
25
- /**
26
- * Props if `component={Component}` is NOT used.
27
- */
28
- type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
29
- ref?: React.Ref<Element>;
30
- };
31
- }
1
+ import * as React from 'react';
2
+ import { DistributiveOmit } from '@mui/types';
3
+ declare module '@mui/material/OverridableComponent' {
4
+ /**
5
+ * A component whose root component can be controlled via a `component` prop.
6
+ *
7
+ * Adjusts valid props based on the type of `component`.
8
+ */
9
+ interface OverridableComponent<M extends OverridableTypeMap> {
10
+ <C extends React.ElementType>(props: {
11
+ /**
12
+ * The component used for the root node.
13
+ * Either a string to use a HTML element or a component.
14
+ */
15
+ component: C;
16
+ } & OverridePropsVer2<M, C>): JSX.Element;
17
+ (props: DefaultComponentPropsVer2<M>): JSX.Element;
18
+ }
19
+ /**
20
+ * Props of the component if `component={Component}` is used.
21
+ */
22
+ type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
23
+ ref?: React.Ref<Element>;
24
+ });
25
+ /**
26
+ * Props if `component={Component}` is NOT used.
27
+ */
28
+ type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
29
+ ref?: React.Ref<Element>;
30
+ };
31
+ }