@mui/material 5.10.3 → 5.10.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 (256) 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/Avatar.d.ts +1 -1
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/AvatarGroup.d.ts +6 -1
  12. package/AvatarGroup/AvatarGroup.js +10 -1
  13. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  14. package/Backdrop/backdropClasses.d.ts +10 -10
  15. package/Badge/Badge.d.ts +2 -2
  16. package/Badge/badgeClasses.d.ts +56 -56
  17. package/BottomNavigation/BottomNavigation.js +0 -0
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  20. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  21. package/Button/Button.d.ts +2 -2
  22. package/Button/buttonClasses.d.ts +100 -100
  23. package/ButtonBase/ButtonBase.d.ts +1 -1
  24. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  25. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  26. package/ButtonGroup/ButtonGroup.d.ts +1 -1
  27. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  28. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  29. package/CHANGELOG.md +51 -0
  30. package/Card/Card.d.ts +1 -1
  31. package/Card/cardClasses.d.ts +8 -8
  32. package/CardActionArea/CardActionArea.d.ts +1 -1
  33. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  34. package/CardActions/CardActions.d.ts +1 -1
  35. package/CardActions/cardActionsClasses.d.ts +10 -10
  36. package/CardContent/CardContent.d.ts +1 -1
  37. package/CardContent/cardContentClasses.d.ts +8 -8
  38. package/CardHeader/CardHeader.d.ts +1 -1
  39. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  40. package/CardMedia/CardMedia.d.ts +1 -1
  41. package/CardMedia/cardMediaClasses.d.ts +12 -12
  42. package/Checkbox/Checkbox.d.ts +1 -1
  43. package/Checkbox/checkboxClasses.d.ts +18 -18
  44. package/Chip/Chip.d.ts +1 -1
  45. package/Chip/chipClasses.d.ts +88 -88
  46. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  47. package/ClickAwayListener/index.d.ts +2 -2
  48. package/Collapse/Collapse.d.ts +1 -1
  49. package/Collapse/collapseClasses.d.ts +18 -18
  50. package/Container/containerClasses.d.ts +6 -6
  51. package/CssBaseline/CssBaseline.d.ts +1 -1
  52. package/Dialog/Dialog.d.ts +1 -1
  53. package/Dialog/DialogContext.d.ts +6 -6
  54. package/Dialog/dialogClasses.d.ts +36 -36
  55. package/DialogActions/DialogActions.d.ts +1 -1
  56. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  57. package/DialogContent/DialogContent.d.ts +1 -1
  58. package/DialogContent/dialogContentClasses.d.ts +10 -10
  59. package/DialogContentText/DialogContentText.d.ts +1 -1
  60. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  61. package/DialogTitle/DialogTitle.d.ts +1 -1
  62. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  63. package/Divider/Divider.d.ts +1 -1
  64. package/Divider/dividerClasses.d.ts +34 -34
  65. package/Drawer/Drawer.d.ts +1 -1
  66. package/Drawer/drawerClasses.d.ts +30 -30
  67. package/Fab/Fab.d.ts +1 -1
  68. package/Fab/fabClasses.d.ts +26 -26
  69. package/FilledInput/FilledInput.d.ts +1 -1
  70. package/FilledInput/filledInputClasses.d.ts +40 -40
  71. package/FormControl/FormControl.d.ts +4 -4
  72. package/FormControl/formControlClasses.d.ts +14 -14
  73. package/FormControlLabel/FormControlLabel.d.ts +3 -3
  74. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  75. package/FormGroup/FormGroup.d.ts +2 -2
  76. package/FormGroup/formGroupClasses.d.ts +12 -12
  77. package/FormHelperText/FormHelperText.d.ts +1 -1
  78. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  79. package/FormLabel/FormLabel.d.ts +3 -3
  80. package/FormLabel/formLabelClasses.d.ts +22 -22
  81. package/Grid/gridClasses.d.ts +48 -48
  82. package/Hidden/HiddenJs.d.ts +1 -1
  83. package/Hidden/HiddenJs.js +20 -28
  84. package/Icon/Icon.d.ts +1 -1
  85. package/Icon/iconClasses.d.ts +24 -24
  86. package/IconButton/IconButton.d.ts +1 -1
  87. package/IconButton/iconButtonClasses.d.ts +26 -26
  88. package/ImageList/imageListClasses.d.ts +16 -16
  89. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  90. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  91. package/Input/Input.d.ts +1 -1
  92. package/Input/inputClasses.d.ts +34 -34
  93. package/InputAdornment/InputAdornment.d.ts +1 -1
  94. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  95. package/InputBase/InputBase.d.ts +1 -1
  96. package/InputBase/inputBaseClasses.d.ts +46 -46
  97. package/InputLabel/InputLabel.d.ts +1 -1
  98. package/InputLabel/inputLabelClasses.d.ts +32 -32
  99. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  100. package/Link/getTextDecoration.d.ts +15 -15
  101. package/Link/linkClasses.d.ts +18 -18
  102. package/List/listClasses.d.ts +14 -14
  103. package/ListItem/listItemClasses.d.ts +30 -30
  104. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  105. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  106. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  107. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  108. package/ListItemText/listItemTextClasses.d.ts +18 -18
  109. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  110. package/Menu/Menu.d.ts +1 -1
  111. package/Menu/menuClasses.d.ts +12 -12
  112. package/MenuItem/MenuItem.d.ts +1 -1
  113. package/MenuItem/menuItemClasses.d.ts +20 -20
  114. package/MenuList/MenuList.d.ts +1 -1
  115. package/MobileStepper/MobileStepper.d.ts +1 -1
  116. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  117. package/NativeSelect/NativeSelect.d.ts +1 -1
  118. package/NativeSelect/NativeSelect.js +17 -15
  119. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  120. package/OutlinedInput/OutlinedInput.d.ts +1 -1
  121. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  122. package/OverridableComponentAugmentation.d.ts +31 -31
  123. package/Pagination/paginationClasses.d.ts +14 -14
  124. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  125. package/Paper/Paper.d.ts +1 -1
  126. package/Paper/paperClasses.d.ts +39 -39
  127. package/Popover/Popover.d.ts +1 -1
  128. package/Popover/popoverClasses.d.ts +10 -10
  129. package/Popper/Popper.d.ts +24 -24
  130. package/Popper/Popper.js +1 -1
  131. package/README.md +1 -2
  132. package/Radio/Radio.d.ts +1 -1
  133. package/Radio/radioClasses.d.ts +16 -16
  134. package/RadioGroup/RadioGroup.d.ts +1 -1
  135. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  136. package/RadioGroup/useRadioGroup.d.ts +4 -4
  137. package/Rating/ratingClasses.d.ts +40 -40
  138. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
  139. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  140. package/Select/Select.d.ts +1 -1
  141. package/Select/Select.js +38 -36
  142. package/Select/selectClasses.d.ts +30 -30
  143. package/Skeleton/skeletonClasses.d.ts +26 -26
  144. package/Slide/Slide.d.ts +1 -1
  145. package/Snackbar/Snackbar.d.ts +1 -1
  146. package/Snackbar/snackbarClasses.d.ts +20 -20
  147. package/SnackbarContent/SnackbarContent.d.ts +1 -1
  148. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  149. package/SpeedDial/speedDialClasses.d.ts +22 -22
  150. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  151. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  152. package/Step/Step.d.ts +55 -44
  153. package/Step/Step.js +11 -2
  154. package/Step/StepContext.d.ts +20 -20
  155. package/Step/stepClasses.d.ts +16 -16
  156. package/StepButton/StepButton.d.ts +1 -1
  157. package/StepButton/stepButtonClasses.d.ts +14 -14
  158. package/StepConnector/StepConnector.d.ts +1 -1
  159. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  160. package/StepContent/StepContent.d.ts +1 -1
  161. package/StepContent/stepContentClasses.d.ts +12 -12
  162. package/StepIcon/StepIcon.d.ts +1 -1
  163. package/StepIcon/stepIconClasses.d.ts +16 -16
  164. package/StepLabel/StepLabel.d.ts +1 -1
  165. package/StepLabel/stepLabelClasses.d.ts +28 -28
  166. package/Stepper/Stepper.d.ts +54 -43
  167. package/Stepper/Stepper.js +11 -2
  168. package/Stepper/StepperContext.d.ts +18 -18
  169. package/Stepper/stepperClasses.d.ts +14 -14
  170. package/SvgIcon/SvgIcon.d.ts +1 -1
  171. package/SvgIcon/svgIconClasses.d.ts +24 -24
  172. package/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
  173. package/Switch/Switch.d.ts +1 -1
  174. package/Switch/switchClasses.d.ts +32 -32
  175. package/Tab/tabClasses.d.ts +26 -26
  176. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  177. package/Table/Table.d.ts +1 -1
  178. package/Table/tableClasses.d.ts +10 -10
  179. package/TableBody/TableBody.d.ts +1 -1
  180. package/TableBody/tableBodyClasses.d.ts +8 -8
  181. package/TableCell/TableCell.d.ts +1 -1
  182. package/TableCell/tableCellClasses.d.ts +32 -32
  183. package/TableContainer/TableContainer.d.ts +1 -1
  184. package/TableContainer/tableContainerClasses.d.ts +8 -8
  185. package/TableFooter/TableFooter.d.ts +1 -1
  186. package/TableFooter/tableFooterClasses.d.ts +8 -8
  187. package/TableHead/TableHead.d.ts +1 -1
  188. package/TableHead/tableHeadClasses.d.ts +8 -8
  189. package/TablePagination/TablePagination.d.ts +1 -1
  190. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  191. package/TableRow/TableRow.d.ts +1 -1
  192. package/TableRow/tableRowClasses.d.ts +16 -16
  193. package/TableSortLabel/TableSortLabel.d.ts +1 -1
  194. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  195. package/Tabs/tabsClasses.d.ts +32 -32
  196. package/TextField/TextField.d.ts +1 -1
  197. package/TextField/textFieldClasses.d.ts +8 -8
  198. package/ToggleButton/ToggleButton.js +3 -1
  199. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  200. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  201. package/Toolbar/toolbarClasses.d.ts +14 -14
  202. package/Tooltip/Tooltip.d.ts +1 -1
  203. package/Tooltip/tooltipClasses.d.ts +30 -30
  204. package/Typography/typographyClasses.d.ts +50 -50
  205. package/Unstable_Grid2/Grid2.d.ts +4 -4
  206. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  207. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  208. package/Unstable_Grid2/index.d.ts +4 -4
  209. package/className/index.d.ts +1 -1
  210. package/darkScrollbar/index.d.ts +28 -28
  211. package/esm/AvatarGroup/AvatarGroup.js +10 -1
  212. package/esm/BottomNavigation/BottomNavigation.js +0 -0
  213. package/esm/Hidden/HiddenJs.js +19 -28
  214. package/esm/NativeSelect/NativeSelect.js +17 -15
  215. package/esm/Popper/Popper.js +1 -1
  216. package/esm/Select/Select.js +38 -36
  217. package/esm/Step/Step.js +11 -2
  218. package/esm/Stepper/Stepper.js +11 -2
  219. package/esm/ToggleButton/ToggleButton.js +3 -1
  220. package/index.js +1 -1
  221. package/internal/switchBaseClasses.d.ts +12 -12
  222. package/legacy/AvatarGroup/AvatarGroup.js +11 -1
  223. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  224. package/legacy/Hidden/HiddenJs.js +19 -28
  225. package/legacy/NativeSelect/NativeSelect.js +17 -15
  226. package/legacy/Popper/Popper.js +1 -1
  227. package/legacy/Select/Select.js +38 -36
  228. package/legacy/Step/Step.js +12 -2
  229. package/legacy/Stepper/Stepper.js +12 -2
  230. package/legacy/ToggleButton/ToggleButton.js +3 -1
  231. package/legacy/index.js +1 -1
  232. package/locale/index.d.ts +71 -71
  233. package/modern/AvatarGroup/AvatarGroup.js +10 -1
  234. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  235. package/modern/Hidden/HiddenJs.js +19 -28
  236. package/modern/NativeSelect/NativeSelect.js +17 -15
  237. package/modern/Popper/Popper.js +1 -1
  238. package/modern/Select/Select.js +38 -36
  239. package/modern/Step/Step.js +11 -2
  240. package/modern/Stepper/Stepper.js +11 -2
  241. package/modern/ToggleButton/ToggleButton.js +3 -1
  242. package/modern/index.js +1 -1
  243. package/package.json +4 -4
  244. package/styles/CssVarsProvider.d.ts +14 -14
  245. package/transitions/index.d.ts +1 -1
  246. package/transitions/transition.d.ts +13 -13
  247. package/transitions/utils.d.ts +23 -23
  248. package/umd/material-ui.development.js +112 -93
  249. package/umd/material-ui.production.min.js +20 -20
  250. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  251. package/useTouchRipple/index.d.ts +1 -1
  252. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  253. package/utils/getScrollbarSize.d.ts +2 -2
  254. package/utils/ownerDocument.d.ts +2 -2
  255. package/utils/ownerWindow.d.ts +2 -2
  256. package/utils/setRef.d.ts +2 -2
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
3
+ const _excluded = ["children", "className", "component", "componentsProps", "max", "spacing", "total", "variant"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { isFragment } from 'react-is';
@@ -73,6 +73,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
73
73
  const {
74
74
  children: childrenProp,
75
75
  className,
76
+ component = 'div',
76
77
  componentsProps = {},
77
78
  max = 5,
78
79
  spacing = 'medium',
@@ -86,6 +87,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
86
87
  const ownerState = _extends({}, props, {
87
88
  max,
88
89
  spacing,
90
+ component,
89
91
  variant
90
92
  });
91
93
 
@@ -110,6 +112,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
110
112
  const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
111
113
  const marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
112
114
  return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
115
+ as: component,
113
116
  ownerState: ownerState,
114
117
  className: clsx(classes.root, className),
115
118
  ref: ref
@@ -159,6 +162,12 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
159
162
  */
160
163
  className: PropTypes.string,
161
164
 
165
+ /**
166
+ * The component used for the root node.
167
+ * Either a string to use a HTML element or a component.
168
+ */
169
+ component: PropTypes.elementType,
170
+
162
171
  /**
163
172
  * The props used for each slot inside the AvatarGroup.
164
173
  * @default {}
File without changes
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import PropTypes from 'prop-types';
2
3
  import { exactProp } from '@mui/utils';
3
4
  import withWidth, { isWidthDown, isWidthUp } from './withWidth';
@@ -6,6 +7,8 @@ import useTheme from '../styles/useTheme';
6
7
  * @ignore - internal component.
7
8
  */
8
9
 
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+
9
12
  function HiddenJs(props) {
10
13
  const {
11
14
  children,
@@ -49,57 +52,39 @@ function HiddenJs(props) {
49
52
  return null;
50
53
  }
51
54
 
52
- return children;
55
+ return /*#__PURE__*/_jsx(React.Fragment, {
56
+ children: children
57
+ });
53
58
  }
54
59
 
55
- HiddenJs.propTypes = {
60
+ process.env.NODE_ENV !== "production" ? HiddenJs.propTypes = {
56
61
  /**
57
62
  * The content of the component.
58
63
  */
59
64
  children: PropTypes.node,
60
65
 
61
- /**
62
- * @ignore
63
- */
64
- className: PropTypes.string,
65
-
66
- /**
67
- * Specify which implementation to use. 'js' is the default, 'css' works better for
68
- * server-side rendering.
69
- */
70
- implementation: PropTypes.oneOf(['js', 'css']),
71
-
72
- /**
73
- * You can use this prop when choosing the `js` implementation with server-side rendering.
74
- *
75
- * As `window.innerWidth` is unavailable on the server,
76
- * we default to rendering an empty component during the first mount.
77
- * You might want to use a heuristic to approximate
78
- * the screen width of the client browser screen width.
79
- *
80
- * For instance, you could be using the user-agent or the client-hints.
81
- * https://caniuse.com/#search=client%20hint
82
- */
83
- initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
84
-
85
66
  /**
86
67
  * If `true`, screens this size and down are hidden.
87
68
  */
69
+ // eslint-disable-next-line react/no-unused-prop-types
88
70
  lgDown: PropTypes.bool,
89
71
 
90
72
  /**
91
73
  * If `true`, screens this size and up are hidden.
92
74
  */
75
+ // eslint-disable-next-line react/no-unused-prop-types
93
76
  lgUp: PropTypes.bool,
94
77
 
95
78
  /**
96
79
  * If `true`, screens this size and down are hidden.
97
80
  */
81
+ // eslint-disable-next-line react/no-unused-prop-types
98
82
  mdDown: PropTypes.bool,
99
83
 
100
84
  /**
101
85
  * If `true`, screens this size and up are hidden.
102
86
  */
87
+ // eslint-disable-next-line react/no-unused-prop-types
103
88
  mdUp: PropTypes.bool,
104
89
 
105
90
  /**
@@ -110,11 +95,13 @@ HiddenJs.propTypes = {
110
95
  /**
111
96
  * If `true`, screens this size and down are hidden.
112
97
  */
98
+ // eslint-disable-next-line react/no-unused-prop-types
113
99
  smDown: PropTypes.bool,
114
100
 
115
101
  /**
116
102
  * If `true`, screens this size and up are hidden.
117
103
  */
104
+ // eslint-disable-next-line react/no-unused-prop-types
118
105
  smUp: PropTypes.bool,
119
106
 
120
107
  /**
@@ -126,26 +113,30 @@ HiddenJs.propTypes = {
126
113
  /**
127
114
  * If `true`, screens this size and down are hidden.
128
115
  */
116
+ // eslint-disable-next-line react/no-unused-prop-types
129
117
  xlDown: PropTypes.bool,
130
118
 
131
119
  /**
132
120
  * If `true`, screens this size and up are hidden.
133
121
  */
122
+ // eslint-disable-next-line react/no-unused-prop-types
134
123
  xlUp: PropTypes.bool,
135
124
 
136
125
  /**
137
126
  * If `true`, screens this size and down are hidden.
138
127
  */
128
+ // eslint-disable-next-line react/no-unused-prop-types
139
129
  xsDown: PropTypes.bool,
140
130
 
141
131
  /**
142
132
  * If `true`, screens this size and up are hidden.
143
133
  */
134
+ // eslint-disable-next-line react/no-unused-prop-types
144
135
  xsUp: PropTypes.bool
145
- };
136
+ } : void 0;
146
137
 
147
138
  if (process.env.NODE_ENV !== 'production') {
148
- HiddenJs.propTypes = exactProp(HiddenJs.propTypes);
139
+ process.env.NODE_ENV !== "production" ? HiddenJs.propTypes = exactProp(HiddenJs.propTypes) : void 0;
149
140
  }
150
141
 
151
142
  export default withWidth()(HiddenJs);
@@ -62,21 +62,23 @@ const NativeSelect = /*#__PURE__*/React.forwardRef(function NativeSelect(inProps
62
62
 
63
63
  const otherClasses = _objectWithoutPropertiesLoose(classesProp, _excluded2);
64
64
 
65
- return /*#__PURE__*/React.cloneElement(input, _extends({
66
- // Most of the logic is implemented in `NativeSelectInput`.
67
- // The `Select` component is a simple API wrapper to expose something better to play with.
68
- inputComponent: NativeSelectInput,
69
- inputProps: _extends({
70
- children,
71
- classes: otherClasses,
72
- IconComponent,
73
- variant: fcs.variant,
74
- type: undefined
75
- }, inputProps, input ? input.props.inputProps : {}),
76
- ref
77
- }, other, {
78
- className: clsx(classes.root, input.props.className, className)
79
- }));
65
+ return /*#__PURE__*/_jsx(React.Fragment, {
66
+ children: /*#__PURE__*/React.cloneElement(input, _extends({
67
+ // Most of the logic is implemented in `NativeSelectInput`.
68
+ // The `Select` component is a simple API wrapper to expose something better to play with.
69
+ inputComponent: NativeSelectInput,
70
+ inputProps: _extends({
71
+ children,
72
+ classes: otherClasses,
73
+ IconComponent,
74
+ variant: fcs.variant,
75
+ type: undefined
76
+ }, inputProps, input ? input.props.inputProps : {}),
77
+ ref
78
+ }, other, {
79
+ className: clsx(classes.root, input.props.className, className)
80
+ }))
81
+ });
80
82
  });
81
83
  process.env.NODE_ENV !== "production" ? NativeSelect.propTypes
82
84
  /* remove-proptypes */
@@ -16,7 +16,7 @@ const PopperRoot = styled(PopperUnstyled, {
16
16
  * Demos:
17
17
  *
18
18
  * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
19
- * - [Menus](https://mui.com/material-ui/react-menu/)
19
+ * - [Menu](https://mui.com/material-ui/react-menu/)
20
20
  * - [Popper](https://mui.com/material-ui/react-popper/)
21
21
  *
22
22
  * API:
@@ -91,43 +91,45 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
91
91
 
92
92
  const classes = useUtilityClasses(ownerState);
93
93
  const inputComponentRef = useForkRef(ref, InputComponent.ref);
94
- return /*#__PURE__*/React.cloneElement(InputComponent, _extends({
95
- // Most of the logic is implemented in `SelectInput`.
96
- // The `Select` component is a simple API wrapper to expose something better to play with.
97
- inputComponent,
98
- inputProps: _extends({
99
- children,
100
- IconComponent,
101
- variant,
102
- type: undefined,
103
- // We render a select. We can ignore the type provided by the `Input`.
104
- multiple
105
- }, native ? {
106
- id
107
- } : {
108
- autoWidth,
109
- defaultOpen,
110
- displayEmpty,
111
- labelId,
112
- MenuProps,
113
- onClose,
114
- onOpen,
115
- open,
116
- renderValue,
117
- SelectDisplayProps: _extends({
94
+ return /*#__PURE__*/_jsx(React.Fragment, {
95
+ children: /*#__PURE__*/React.cloneElement(InputComponent, _extends({
96
+ // Most of the logic is implemented in `SelectInput`.
97
+ // The `Select` component is a simple API wrapper to expose something better to play with.
98
+ inputComponent,
99
+ inputProps: _extends({
100
+ children,
101
+ IconComponent,
102
+ variant,
103
+ type: undefined,
104
+ // We render a select. We can ignore the type provided by the `Input`.
105
+ multiple
106
+ }, native ? {
118
107
  id
119
- }, SelectDisplayProps)
120
- }, inputProps, {
121
- classes: inputProps ? deepmerge(classes, inputProps.classes) : classes
122
- }, input ? input.props.inputProps : {})
123
- }, multiple && native && variant === 'outlined' ? {
124
- notched: true
125
- } : {}, {
126
- ref: inputComponentRef,
127
- className: clsx(InputComponent.props.className, className)
128
- }, !input && {
129
- variant
130
- }, other));
108
+ } : {
109
+ autoWidth,
110
+ defaultOpen,
111
+ displayEmpty,
112
+ labelId,
113
+ MenuProps,
114
+ onClose,
115
+ onOpen,
116
+ open,
117
+ renderValue,
118
+ SelectDisplayProps: _extends({
119
+ id
120
+ }, SelectDisplayProps)
121
+ }, inputProps, {
122
+ classes: inputProps ? deepmerge(classes, inputProps.classes) : classes
123
+ }, input ? input.props.inputProps : {})
124
+ }, multiple && native && variant === 'outlined' ? {
125
+ notched: true
126
+ } : {}, {
127
+ ref: inputComponentRef,
128
+ className: clsx(InputComponent.props.className, className)
129
+ }, !input && {
130
+ variant
131
+ }, other))
132
+ });
131
133
  });
132
134
  process.env.NODE_ENV !== "production" ? Select.propTypes
133
135
  /* remove-proptypes */
package/esm/Step/Step.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["active", "children", "className", "completed", "disabled", "expanded", "index", "last"];
3
+ const _excluded = ["active", "children", "className", "component", "completed", "disabled", "expanded", "index", "last"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -55,6 +55,7 @@ const Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
55
55
  active: activeProp,
56
56
  children,
57
57
  className,
58
+ component = 'div',
58
59
  completed: completedProp,
59
60
  disabled: disabledProp,
60
61
  expanded = false,
@@ -96,12 +97,14 @@ const Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
96
97
  alternativeLabel,
97
98
  completed,
98
99
  disabled,
99
- expanded
100
+ expanded,
101
+ component
100
102
  });
101
103
 
102
104
  const classes = useUtilityClasses(ownerState);
103
105
 
104
106
  const newChildren = /*#__PURE__*/_jsxs(StepRoot, _extends({
107
+ as: component,
105
108
  className: clsx(classes.root, className),
106
109
  ref: ref,
107
110
  ownerState: ownerState
@@ -149,6 +152,12 @@ process.env.NODE_ENV !== "production" ? Step.propTypes
149
152
  */
150
153
  completed: PropTypes.bool,
151
154
 
155
+ /**
156
+ * The component used for the root node.
157
+ * Either a string to use a HTML element or a component.
158
+ */
159
+ component: PropTypes.elementType,
160
+
152
161
  /**
153
162
  * If `true`, the step is disabled, will also disable the button if
154
163
  * `StepButton` is a child of `Step`. Is passed to child components.
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["activeStep", "alternativeLabel", "children", "className", "connector", "nonLinear", "orientation"];
3
+ const _excluded = ["activeStep", "alternativeLabel", "children", "className", "component", "connector", "nonLinear", "orientation"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -60,6 +60,7 @@ const Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
60
60
  alternativeLabel = false,
61
61
  children,
62
62
  className,
63
+ component = 'div',
63
64
  connector = defaultConnector,
64
65
  nonLinear = false,
65
66
  orientation = 'horizontal'
@@ -68,7 +69,8 @@ const Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
68
69
 
69
70
  const ownerState = _extends({}, props, {
70
71
  alternativeLabel,
71
- orientation
72
+ orientation,
73
+ component
72
74
  });
73
75
 
74
76
  const classes = useUtilityClasses(ownerState);
@@ -89,6 +91,7 @@ const Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
89
91
  return /*#__PURE__*/_jsx(StepperContext.Provider, {
90
92
  value: contextValue,
91
93
  children: /*#__PURE__*/_jsx(StepperRoot, _extends({
94
+ as: component,
92
95
  ownerState: ownerState,
93
96
  className: clsx(classes.root, className),
94
97
  ref: ref
@@ -134,6 +137,12 @@ process.env.NODE_ENV !== "production" ? Stepper.propTypes
134
137
  */
135
138
  className: PropTypes.string,
136
139
 
140
+ /**
141
+ * The component used for the root node.
142
+ * Either a string to use a HTML element or a component.
143
+ */
144
+ component: PropTypes.elementType,
145
+
137
146
  /**
138
147
  * An element to be placed between each step.
139
148
  * @default <StepConnector />
@@ -247,6 +247,8 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes
247
247
  * The value to associate with the button when selected in a
248
248
  * ToggleButtonGroup.
249
249
  */
250
- value: PropTypes.any.isRequired
250
+ value: PropTypes
251
+ /* @typescript-to-proptypes-ignore */
252
+ .any.isRequired
251
253
  } : void 0;
252
254
  export default ToggleButton;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.3
1
+ /** @license MUI v5.10.4
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
@@ -72,6 +72,8 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
72
72
 
73
73
  var childrenProp = props.children,
74
74
  className = props.className,
75
+ _props$component = props.component,
76
+ component = _props$component === void 0 ? 'div' : _props$component,
75
77
  _props$componentsProp = props.componentsProps,
76
78
  componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
77
79
  _props$max = props.max,
@@ -81,13 +83,14 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
81
83
  total = props.total,
82
84
  _props$variant = props.variant,
83
85
  variant = _props$variant === void 0 ? 'circular' : _props$variant,
84
- other = _objectWithoutProperties(props, ["children", "className", "componentsProps", "max", "spacing", "total", "variant"]);
86
+ other = _objectWithoutProperties(props, ["children", "className", "component", "componentsProps", "max", "spacing", "total", "variant"]);
85
87
 
86
88
  var clampedMax = max < 2 ? 2 : max;
87
89
 
88
90
  var ownerState = _extends({}, props, {
89
91
  max: max,
90
92
  spacing: spacing,
93
+ component: component,
91
94
  variant: variant
92
95
  });
93
96
 
@@ -112,6 +115,7 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
112
115
  var extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
113
116
  var marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
114
117
  return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
118
+ as: component,
115
119
  ownerState: ownerState,
116
120
  className: clsx(classes.root, className),
117
121
  ref: ref
@@ -161,6 +165,12 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
161
165
  */
162
166
  className: PropTypes.string,
163
167
 
168
+ /**
169
+ * The component used for the root node.
170
+ * Either a string to use a HTML element or a component.
171
+ */
172
+ component: PropTypes.elementType,
173
+
164
174
  /**
165
175
  * The props used for each slot inside the AvatarGroup.
166
176
  * @default {}
File without changes
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import PropTypes from 'prop-types';
2
3
  import { exactProp } from '@mui/utils';
3
4
  import withWidth, { isWidthDown, isWidthUp } from './withWidth';
@@ -6,6 +7,8 @@ import useTheme from '../styles/useTheme';
6
7
  * @ignore - internal component.
7
8
  */
8
9
 
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+
9
12
  function HiddenJs(props) {
10
13
  var children = props.children,
11
14
  only = props.only,
@@ -47,57 +50,39 @@ function HiddenJs(props) {
47
50
  return null;
48
51
  }
49
52
 
50
- return children;
53
+ return /*#__PURE__*/_jsx(React.Fragment, {
54
+ children: children
55
+ });
51
56
  }
52
57
 
53
- HiddenJs.propTypes = {
58
+ process.env.NODE_ENV !== "production" ? HiddenJs.propTypes = {
54
59
  /**
55
60
  * The content of the component.
56
61
  */
57
62
  children: PropTypes.node,
58
63
 
59
- /**
60
- * @ignore
61
- */
62
- className: PropTypes.string,
63
-
64
- /**
65
- * Specify which implementation to use. 'js' is the default, 'css' works better for
66
- * server-side rendering.
67
- */
68
- implementation: PropTypes.oneOf(['js', 'css']),
69
-
70
- /**
71
- * You can use this prop when choosing the `js` implementation with server-side rendering.
72
- *
73
- * As `window.innerWidth` is unavailable on the server,
74
- * we default to rendering an empty component during the first mount.
75
- * You might want to use a heuristic to approximate
76
- * the screen width of the client browser screen width.
77
- *
78
- * For instance, you could be using the user-agent or the client-hints.
79
- * https://caniuse.com/#search=client%20hint
80
- */
81
- initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
82
-
83
64
  /**
84
65
  * If `true`, screens this size and down are hidden.
85
66
  */
67
+ // eslint-disable-next-line react/no-unused-prop-types
86
68
  lgDown: PropTypes.bool,
87
69
 
88
70
  /**
89
71
  * If `true`, screens this size and up are hidden.
90
72
  */
73
+ // eslint-disable-next-line react/no-unused-prop-types
91
74
  lgUp: PropTypes.bool,
92
75
 
93
76
  /**
94
77
  * If `true`, screens this size and down are hidden.
95
78
  */
79
+ // eslint-disable-next-line react/no-unused-prop-types
96
80
  mdDown: PropTypes.bool,
97
81
 
98
82
  /**
99
83
  * If `true`, screens this size and up are hidden.
100
84
  */
85
+ // eslint-disable-next-line react/no-unused-prop-types
101
86
  mdUp: PropTypes.bool,
102
87
 
103
88
  /**
@@ -108,11 +93,13 @@ HiddenJs.propTypes = {
108
93
  /**
109
94
  * If `true`, screens this size and down are hidden.
110
95
  */
96
+ // eslint-disable-next-line react/no-unused-prop-types
111
97
  smDown: PropTypes.bool,
112
98
 
113
99
  /**
114
100
  * If `true`, screens this size and up are hidden.
115
101
  */
102
+ // eslint-disable-next-line react/no-unused-prop-types
116
103
  smUp: PropTypes.bool,
117
104
 
118
105
  /**
@@ -124,26 +111,30 @@ HiddenJs.propTypes = {
124
111
  /**
125
112
  * If `true`, screens this size and down are hidden.
126
113
  */
114
+ // eslint-disable-next-line react/no-unused-prop-types
127
115
  xlDown: PropTypes.bool,
128
116
 
129
117
  /**
130
118
  * If `true`, screens this size and up are hidden.
131
119
  */
120
+ // eslint-disable-next-line react/no-unused-prop-types
132
121
  xlUp: PropTypes.bool,
133
122
 
134
123
  /**
135
124
  * If `true`, screens this size and down are hidden.
136
125
  */
126
+ // eslint-disable-next-line react/no-unused-prop-types
137
127
  xsDown: PropTypes.bool,
138
128
 
139
129
  /**
140
130
  * If `true`, screens this size and up are hidden.
141
131
  */
132
+ // eslint-disable-next-line react/no-unused-prop-types
142
133
  xsUp: PropTypes.bool
143
- };
134
+ } : void 0;
144
135
 
145
136
  if (process.env.NODE_ENV !== 'production') {
146
- HiddenJs.propTypes = exactProp(HiddenJs.propTypes);
137
+ process.env.NODE_ENV !== "production" ? HiddenJs.propTypes = exactProp(HiddenJs.propTypes) : void 0;
147
138
  }
148
139
 
149
140
  export default withWidth()(HiddenJs);
@@ -61,21 +61,23 @@ var NativeSelect = /*#__PURE__*/React.forwardRef(function NativeSelect(inProps,
61
61
  var root = classesProp.root,
62
62
  otherClasses = _objectWithoutProperties(classesProp, ["root"]);
63
63
 
64
- return /*#__PURE__*/React.cloneElement(input, _extends({
65
- // Most of the logic is implemented in `NativeSelectInput`.
66
- // The `Select` component is a simple API wrapper to expose something better to play with.
67
- inputComponent: NativeSelectInput,
68
- inputProps: _extends({
69
- children: children,
70
- classes: otherClasses,
71
- IconComponent: IconComponent,
72
- variant: fcs.variant,
73
- type: undefined
74
- }, inputProps, input ? input.props.inputProps : {}),
75
- ref: ref
76
- }, other, {
77
- className: clsx(classes.root, input.props.className, className)
78
- }));
64
+ return /*#__PURE__*/_jsx(React.Fragment, {
65
+ children: /*#__PURE__*/React.cloneElement(input, _extends({
66
+ // Most of the logic is implemented in `NativeSelectInput`.
67
+ // The `Select` component is a simple API wrapper to expose something better to play with.
68
+ inputComponent: NativeSelectInput,
69
+ inputProps: _extends({
70
+ children: children,
71
+ classes: otherClasses,
72
+ IconComponent: IconComponent,
73
+ variant: fcs.variant,
74
+ type: undefined
75
+ }, inputProps, input ? input.props.inputProps : {}),
76
+ ref: ref
77
+ }, other, {
78
+ className: clsx(classes.root, input.props.className, className)
79
+ }))
80
+ });
79
81
  });
80
82
  process.env.NODE_ENV !== "production" ? NativeSelect.propTypes
81
83
  /* remove-proptypes */
@@ -18,7 +18,7 @@ var PopperRoot = styled(PopperUnstyled, {
18
18
  * Demos:
19
19
  *
20
20
  * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
21
- * - [Menus](https://mui.com/material-ui/react-menu/)
21
+ * - [Menu](https://mui.com/material-ui/react-menu/)
22
22
  * - [Popper](https://mui.com/material-ui/react-popper/)
23
23
  *
24
24
  * API: