@mui/material 5.13.2 → 5.13.3

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 (180) 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 +14 -2
  10. package/Autocomplete/autocompleteClasses.d.ts +56 -56
  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 +52 -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/filledInputClasses.d.ts +42 -42
  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 +24 -24
  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/Hidden/Hidden.js +10 -10
  56. package/Hidden/withWidth.js +1 -1
  57. package/Icon/iconClasses.d.ts +24 -24
  58. package/IconButton/iconButtonClasses.d.ts +34 -34
  59. package/ImageList/imageListClasses.d.ts +16 -16
  60. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  61. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  62. package/Input/inputClasses.d.ts +38 -38
  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/menuItemClasses.d.ts +20 -20
  79. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  80. package/Modal/Modal.js +1 -1
  81. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  82. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  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 +65 -65
  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 +32 -32
  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/Stack/stackClasses.d.ts +6 -6
  104. package/Step/StepContext.d.ts +20 -20
  105. package/Step/stepClasses.d.ts +16 -16
  106. package/StepButton/stepButtonClasses.d.ts +14 -14
  107. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  108. package/StepContent/stepContentClasses.d.ts +12 -12
  109. package/StepIcon/stepIconClasses.d.ts +16 -16
  110. package/StepLabel/stepLabelClasses.d.ts +28 -28
  111. package/Stepper/StepperContext.d.ts +18 -18
  112. package/Stepper/stepperClasses.d.ts +14 -14
  113. package/SvgIcon/svgIconClasses.d.ts +26 -26
  114. package/Switch/switchClasses.d.ts +32 -32
  115. package/Tab/tabClasses.d.ts +26 -26
  116. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  117. package/Table/tableClasses.d.ts +10 -10
  118. package/TableBody/tableBodyClasses.d.ts +8 -8
  119. package/TableCell/tableCellClasses.d.ts +32 -32
  120. package/TableContainer/tableContainerClasses.d.ts +8 -8
  121. package/TableFooter/tableFooterClasses.d.ts +8 -8
  122. package/TableHead/tableHeadClasses.d.ts +8 -8
  123. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  124. package/TableRow/tableRowClasses.d.ts +16 -16
  125. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  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/tooltipClasses.d.ts +30 -30
  132. package/Typography/typographyClasses.d.ts +50 -50
  133. package/Unstable_Grid2/Grid2.d.ts +4 -4
  134. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  135. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  136. package/Unstable_Grid2/index.d.ts +4 -4
  137. package/className/index.d.ts +1 -1
  138. package/darkScrollbar/index.d.ts +28 -28
  139. package/generateUtilityClass/index.d.ts +2 -2
  140. package/generateUtilityClasses/index.d.ts +1 -1
  141. package/index.js +1 -1
  142. package/internal/switchBaseClasses.d.ts +12 -12
  143. package/legacy/Autocomplete/Autocomplete.js +12 -2
  144. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  145. package/legacy/Hidden/Hidden.js +10 -10
  146. package/legacy/Hidden/withWidth.js +1 -1
  147. package/legacy/Modal/Modal.js +1 -1
  148. package/legacy/index.js +1 -1
  149. package/locale/index.d.ts +80 -80
  150. package/modern/Autocomplete/Autocomplete.js +14 -2
  151. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  152. package/modern/Hidden/Hidden.js +10 -10
  153. package/modern/Hidden/withWidth.js +1 -1
  154. package/modern/Modal/Modal.js +1 -1
  155. package/modern/index.js +1 -1
  156. package/node/Autocomplete/Autocomplete.js +14 -2
  157. package/node/BottomNavigation/BottomNavigation.js +0 -0
  158. package/node/Hidden/Hidden.js +10 -10
  159. package/node/Hidden/withWidth.js +1 -1
  160. package/node/Modal/Modal.js +1 -1
  161. package/node/index.js +1 -1
  162. package/package.json +3 -3
  163. package/styles/CssVarsProvider.d.ts +20 -20
  164. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  165. package/styles/getOverlayAlpha.d.ts +2 -2
  166. package/styles/identifier.d.ts +2 -2
  167. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  168. package/transitions/index.d.ts +1 -1
  169. package/transitions/transition.d.ts +13 -13
  170. package/transitions/utils.d.ts +23 -23
  171. package/types/OverridableComponentAugmentation.d.ts +31 -31
  172. package/umd/material-ui.development.js +34 -23
  173. package/umd/material-ui.production.min.js +16 -16
  174. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  175. package/useTouchRipple/index.d.ts +1 -1
  176. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  177. package/utils/getScrollbarSize.d.ts +2 -2
  178. package/utils/ownerDocument.d.ts +2 -2
  179. package/utils/ownerWindow.d.ts +2 -2
  180. package/utils/setRef.d.ts +2 -2
@@ -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.13.2
2
+ * @mui/material v5.13.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -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;
@@ -23,6 +23,7 @@ import useThemeProps from '../styles/useThemeProps';
23
23
  import styled from '../styles/styled';
24
24
  import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses';
25
25
  import capitalize from '../utils/capitalize';
26
+ import useForkRef from '../utils/useForkRef';
26
27
  import { jsx as _jsx } from "react/jsx-runtime";
27
28
  import { jsxs as _jsxs } from "react/jsx-runtime";
28
29
  var useUtilityClasses = function useUtilityClasses(ownerState) {
@@ -466,7 +467,15 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
466
467
  var hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
467
468
  var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
468
469
  var _getInputProps = getInputProps(),
469
- handleInputMouseDown = _getInputProps.onMouseDown; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
470
+ handleInputMouseDown = _getInputProps.onMouseDown;
471
+ var _ref17 = ListboxProps != null ? ListboxProps : {},
472
+ externalListboxRef = _ref17.ref;
473
+ var _getListboxProps = getListboxProps(),
474
+ listboxRef = _getListboxProps.ref,
475
+ otherListboxProps = _objectWithoutProperties(_getListboxProps, ["ref"]);
476
+ var combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
477
+
478
+ // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
470
479
  var ownerState = _extends({}, props, {
471
480
  disablePortal: disablePortal,
472
481
  expanded: expanded,
@@ -631,7 +640,8 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
631
640
  as: ListboxComponent,
632
641
  className: classes.listbox,
633
642
  ownerState: ownerState
634
- }, getListboxProps(), ListboxProps, {
643
+ }, otherListboxProps, ListboxProps, {
644
+ ref: combinedListboxRef,
635
645
  children: groupedOptions.map(function (option, index) {
636
646
  if (groupBy) {
637
647
  return renderGroup({
File without changes
@@ -88,22 +88,22 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
88
88
  */
89
89
  initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
90
90
  /**
91
- * If `true`, screens this size and down are hidden.
91
+ * If `true`, component is hidden on screens below (but not including) this size.
92
92
  * @default false
93
93
  */
94
94
  lgDown: PropTypes.bool,
95
95
  /**
96
- * If `true`, screens this size and up are hidden.
96
+ * If `true`, component is hidden on screens this size and above.
97
97
  * @default false
98
98
  */
99
99
  lgUp: PropTypes.bool,
100
100
  /**
101
- * If `true`, screens this size and down are hidden.
101
+ * If `true`, component is hidden on screens below (but not including) this size.
102
102
  * @default false
103
103
  */
104
104
  mdDown: PropTypes.bool,
105
105
  /**
106
- * If `true`, screens this size and up are hidden.
106
+ * If `true`, component is hidden on screens this size and above.
107
107
  * @default false
108
108
  */
109
109
  mdUp: PropTypes.bool,
@@ -112,32 +112,32 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
112
112
  */
113
113
  only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
114
114
  /**
115
- * If `true`, screens this size and down are hidden.
115
+ * If `true`, component is hidden on screens below (but not including) this size.
116
116
  * @default false
117
117
  */
118
118
  smDown: PropTypes.bool,
119
119
  /**
120
- * If `true`, screens this size and up are hidden.
120
+ * If `true`, component is hidden on screens this size and above.
121
121
  * @default false
122
122
  */
123
123
  smUp: PropTypes.bool,
124
124
  /**
125
- * If `true`, screens this size and down are hidden.
125
+ * If `true`, component is hidden on screens below (but not including) this size.
126
126
  * @default false
127
127
  */
128
128
  xlDown: PropTypes.bool,
129
129
  /**
130
- * If `true`, screens this size and up are hidden.
130
+ * If `true`, component is hidden on screens this size and above.
131
131
  * @default false
132
132
  */
133
133
  xlUp: PropTypes.bool,
134
134
  /**
135
- * If `true`, screens this size and down are hidden.
135
+ * If `true`, component is hidden on screens below (but not including) this size.
136
136
  * @default false
137
137
  */
138
138
  xsDown: PropTypes.bool,
139
139
  /**
140
- * If `true`, screens this size and up are hidden.
140
+ * If `true`, component is hidden on screens this size and above.
141
141
  * @default false
142
142
  */
143
143
  xsUp: PropTypes.bool
@@ -19,7 +19,7 @@ export var isWidthUp = function isWidthUp(breakpoint, width) {
19
19
  return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
20
20
  };
21
21
 
22
- // By default, returns true if screen width is the same or less than the given breakpoint.
22
+ // By default, returns true if screen width is less than the given breakpoint.
23
23
  export var isWidthDown = function isWidthDown(breakpoint, width) {
24
24
  var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
25
25
  if (inclusive) {
@@ -139,7 +139,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
139
139
  },
140
140
  backdrop: function backdrop() {
141
141
  return _extends({}, BackdropProps, resolveComponentProps(backdropSlotProps, ownerState), {
142
- className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, classes == null ? void 0 : classes.backdrop)
142
+ className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, BackdropProps == null ? void 0 : BackdropProps.className, classes == null ? void 0 : classes.backdrop)
143
143
  });
144
144
  }
145
145
  },
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.13.2
2
+ * @mui/material v5.13.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/locale/index.d.ts CHANGED
@@ -1,80 +1,80 @@
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 kuCKB: Localization;
55
- export declare const kuLatn: Localization;
56
- export declare const kkKZ: Localization;
57
- export declare const mkMK: Localization;
58
- export declare const myMY: Localization;
59
- export declare const msMS: Localization;
60
- export declare const neNP: Localization;
61
- export declare const nbNO: Localization;
62
- export declare const nlNL: Localization;
63
- export declare const plPL: Localization;
64
- export declare const ptBR: Localization;
65
- export declare const ptPT: Localization;
66
- export declare const roRO: Localization;
67
- export declare const srRS: Localization;
68
- export declare const ruRU: Localization;
69
- export declare const siLK: Localization;
70
- export declare const skSK: Localization;
71
- export declare const svSE: Localization;
72
- export declare const thTH: Localization;
73
- export declare const trTR: Localization;
74
- export declare const tlTL: Localization;
75
- export declare const ukUA: Localization;
76
- export declare const urPK: Localization;
77
- export declare const viVN: Localization;
78
- export declare const zhCN: Localization;
79
- export declare const zhHK: Localization;
80
- 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 kuCKB: Localization;
55
+ export declare const kuLatn: Localization;
56
+ export declare const kkKZ: Localization;
57
+ export declare const mkMK: Localization;
58
+ export declare const myMY: Localization;
59
+ export declare const msMS: Localization;
60
+ export declare const neNP: Localization;
61
+ export declare const nbNO: Localization;
62
+ export declare const nlNL: Localization;
63
+ export declare const plPL: Localization;
64
+ export declare const ptBR: Localization;
65
+ export declare const ptPT: Localization;
66
+ export declare const roRO: Localization;
67
+ export declare const srRS: Localization;
68
+ export declare const ruRU: Localization;
69
+ export declare const siLK: Localization;
70
+ export declare const skSK: Localization;
71
+ export declare const svSE: Localization;
72
+ export declare const thTH: Localization;
73
+ export declare const trTR: Localization;
74
+ export declare const tlTL: Localization;
75
+ export declare const ukUA: Localization;
76
+ export declare const urPK: Localization;
77
+ export declare const viVN: Localization;
78
+ export declare const zhCN: Localization;
79
+ export declare const zhHK: Localization;
80
+ export declare const zhTW: Localization;
@@ -1,7 +1,8 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  var _ClearIcon, _ArrowDropDownIcon;
4
- const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"];
4
+ const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
5
+ _excluded2 = ["ref"];
5
6
  import * as React from 'react';
6
7
  import PropTypes from 'prop-types';
7
8
  import clsx from 'clsx';
@@ -23,6 +24,7 @@ import useThemeProps from '../styles/useThemeProps';
23
24
  import styled from '../styles/styled';
24
25
  import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses';
25
26
  import capitalize from '../utils/capitalize';
27
+ import useForkRef from '../utils/useForkRef';
26
28
  import { jsx as _jsx } from "react/jsx-runtime";
27
29
  import { jsxs as _jsxs } from "react/jsx-runtime";
28
30
  const useUtilityClasses = ownerState => {
@@ -452,6 +454,15 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
452
454
  const {
453
455
  onMouseDown: handleInputMouseDown
454
456
  } = getInputProps();
457
+ const {
458
+ ref: externalListboxRef
459
+ } = ListboxProps ?? {};
460
+ const _getListboxProps = getListboxProps(),
461
+ {
462
+ ref: listboxRef
463
+ } = _getListboxProps,
464
+ otherListboxProps = _objectWithoutPropertiesLoose(_getListboxProps, _excluded2);
465
+ const combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
455
466
 
456
467
  // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
457
468
  const ownerState = _extends({}, props, {
@@ -610,7 +621,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
610
621
  as: ListboxComponent,
611
622
  className: classes.listbox,
612
623
  ownerState: ownerState
613
- }, getListboxProps(), ListboxProps, {
624
+ }, otherListboxProps, ListboxProps, {
625
+ ref: combinedListboxRef,
614
626
  children: groupedOptions.map((option, index) => {
615
627
  if (groupBy) {
616
628
  return renderGroup({
File without changes
@@ -80,22 +80,22 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
80
80
  */
81
81
  initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
82
82
  /**
83
- * If `true`, screens this size and down are hidden.
83
+ * If `true`, component is hidden on screens below (but not including) this size.
84
84
  * @default false
85
85
  */
86
86
  lgDown: PropTypes.bool,
87
87
  /**
88
- * If `true`, screens this size and up are hidden.
88
+ * If `true`, component is hidden on screens this size and above.
89
89
  * @default false
90
90
  */
91
91
  lgUp: PropTypes.bool,
92
92
  /**
93
- * If `true`, screens this size and down are hidden.
93
+ * If `true`, component is hidden on screens below (but not including) this size.
94
94
  * @default false
95
95
  */
96
96
  mdDown: PropTypes.bool,
97
97
  /**
98
- * If `true`, screens this size and up are hidden.
98
+ * If `true`, component is hidden on screens this size and above.
99
99
  * @default false
100
100
  */
101
101
  mdUp: PropTypes.bool,
@@ -104,32 +104,32 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
104
104
  */
105
105
  only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
106
106
  /**
107
- * If `true`, screens this size and down are hidden.
107
+ * If `true`, component is hidden on screens below (but not including) this size.
108
108
  * @default false
109
109
  */
110
110
  smDown: PropTypes.bool,
111
111
  /**
112
- * If `true`, screens this size and up are hidden.
112
+ * If `true`, component is hidden on screens this size and above.
113
113
  * @default false
114
114
  */
115
115
  smUp: PropTypes.bool,
116
116
  /**
117
- * If `true`, screens this size and down are hidden.
117
+ * If `true`, component is hidden on screens below (but not including) this size.
118
118
  * @default false
119
119
  */
120
120
  xlDown: PropTypes.bool,
121
121
  /**
122
- * If `true`, screens this size and up are hidden.
122
+ * If `true`, component is hidden on screens this size and above.
123
123
  * @default false
124
124
  */
125
125
  xlUp: PropTypes.bool,
126
126
  /**
127
- * If `true`, screens this size and down are hidden.
127
+ * If `true`, component is hidden on screens below (but not including) this size.
128
128
  * @default false
129
129
  */
130
130
  xsDown: PropTypes.bool,
131
131
  /**
132
- * If `true`, screens this size and up are hidden.
132
+ * If `true`, component is hidden on screens this size and above.
133
133
  * @default false
134
134
  */
135
135
  xsUp: PropTypes.bool
@@ -19,7 +19,7 @@ export const isWidthUp = (breakpoint, width, inclusive = true) => {
19
19
  return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
20
20
  };
21
21
 
22
- // By default, returns true if screen width is the same or less than the given breakpoint.
22
+ // By default, returns true if screen width is less than the given breakpoint.
23
23
  export const isWidthDown = (breakpoint, width, inclusive = false) => {
24
24
  if (inclusive) {
25
25
  return breakpointKeys.indexOf(width) <= breakpointKeys.indexOf(breakpoint);
@@ -126,7 +126,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
126
126
  className: clsx(className, rootSlotProps?.className, classes?.root, !ownerState.open && ownerState.exited && classes?.hidden)
127
127
  }),
128
128
  backdrop: () => _extends({}, BackdropProps, resolveComponentProps(backdropSlotProps, ownerState), {
129
- className: clsx(backdropSlotProps?.className, classes?.backdrop)
129
+ className: clsx(backdropSlotProps?.className, BackdropProps?.className, classes?.backdrop)
130
130
  })
131
131
  },
132
132
  onTransitionEnter: () => setExited(false),
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.13.2
2
+ * @mui/material v5.13.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the