@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
@@ -98,43 +98,45 @@ var Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
98
98
 
99
99
  var classes = useUtilityClasses(ownerState);
100
100
  var inputComponentRef = useForkRef(ref, InputComponent.ref);
101
- return /*#__PURE__*/React.cloneElement(InputComponent, _extends({
102
- // Most of the logic is implemented in `SelectInput`.
103
- // The `Select` component is a simple API wrapper to expose something better to play with.
104
- inputComponent: inputComponent,
105
- inputProps: _extends({
106
- children: children,
107
- IconComponent: IconComponent,
108
- variant: variant,
109
- type: undefined,
110
- // We render a select. We can ignore the type provided by the `Input`.
111
- multiple: multiple
112
- }, native ? {
113
- id: id
114
- } : {
115
- autoWidth: autoWidth,
116
- defaultOpen: defaultOpen,
117
- displayEmpty: displayEmpty,
118
- labelId: labelId,
119
- MenuProps: MenuProps,
120
- onClose: onClose,
121
- onOpen: onOpen,
122
- open: open,
123
- renderValue: renderValue,
124
- SelectDisplayProps: _extends({
101
+ return /*#__PURE__*/_jsx(React.Fragment, {
102
+ children: /*#__PURE__*/React.cloneElement(InputComponent, _extends({
103
+ // Most of the logic is implemented in `SelectInput`.
104
+ // The `Select` component is a simple API wrapper to expose something better to play with.
105
+ inputComponent: inputComponent,
106
+ inputProps: _extends({
107
+ children: children,
108
+ IconComponent: IconComponent,
109
+ variant: variant,
110
+ type: undefined,
111
+ // We render a select. We can ignore the type provided by the `Input`.
112
+ multiple: multiple
113
+ }, native ? {
125
114
  id: id
126
- }, SelectDisplayProps)
127
- }, inputProps, {
128
- classes: inputProps ? deepmerge(classes, inputProps.classes) : classes
129
- }, input ? input.props.inputProps : {})
130
- }, multiple && native && variant === 'outlined' ? {
131
- notched: true
132
- } : {}, {
133
- ref: inputComponentRef,
134
- className: clsx(InputComponent.props.className, className)
135
- }, !input && {
136
- variant: variant
137
- }, other));
115
+ } : {
116
+ autoWidth: autoWidth,
117
+ defaultOpen: defaultOpen,
118
+ displayEmpty: displayEmpty,
119
+ labelId: labelId,
120
+ MenuProps: MenuProps,
121
+ onClose: onClose,
122
+ onOpen: onOpen,
123
+ open: open,
124
+ renderValue: renderValue,
125
+ SelectDisplayProps: _extends({
126
+ id: id
127
+ }, SelectDisplayProps)
128
+ }, inputProps, {
129
+ classes: inputProps ? deepmerge(classes, inputProps.classes) : classes
130
+ }, input ? input.props.inputProps : {})
131
+ }, multiple && native && variant === 'outlined' ? {
132
+ notched: true
133
+ } : {}, {
134
+ ref: inputComponentRef,
135
+ className: clsx(InputComponent.props.className, className)
136
+ }, !input && {
137
+ variant: variant
138
+ }, other))
139
+ });
138
140
  });
139
141
  process.env.NODE_ENV !== "production" ? Select.propTypes
140
142
  /* remove-proptypes */
@@ -50,13 +50,15 @@ var Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
50
50
  var activeProp = props.active,
51
51
  children = props.children,
52
52
  className = props.className,
53
+ _props$component = props.component,
54
+ component = _props$component === void 0 ? 'div' : _props$component,
53
55
  completedProp = props.completed,
54
56
  disabledProp = props.disabled,
55
57
  _props$expanded = props.expanded,
56
58
  expanded = _props$expanded === void 0 ? false : _props$expanded,
57
59
  index = props.index,
58
60
  last = props.last,
59
- other = _objectWithoutProperties(props, ["active", "children", "className", "completed", "disabled", "expanded", "index", "last"]);
61
+ other = _objectWithoutProperties(props, ["active", "children", "className", "component", "completed", "disabled", "expanded", "index", "last"]);
60
62
 
61
63
  var _React$useContext = React.useContext(StepperContext),
62
64
  activeStep = _React$useContext.activeStep,
@@ -98,12 +100,14 @@ var Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
98
100
  alternativeLabel: alternativeLabel,
99
101
  completed: completed,
100
102
  disabled: disabled,
101
- expanded: expanded
103
+ expanded: expanded,
104
+ component: component
102
105
  });
103
106
 
104
107
  var classes = useUtilityClasses(ownerState);
105
108
 
106
109
  var newChildren = /*#__PURE__*/_jsxs(StepRoot, _extends({
110
+ as: component,
107
111
  className: clsx(classes.root, className),
108
112
  ref: ref,
109
113
  ownerState: ownerState
@@ -151,6 +155,12 @@ process.env.NODE_ENV !== "production" ? Step.propTypes
151
155
  */
152
156
  completed: PropTypes.bool,
153
157
 
158
+ /**
159
+ * The component used for the root node.
160
+ * Either a string to use a HTML element or a component.
161
+ */
162
+ component: PropTypes.elementType,
163
+
154
164
  /**
155
165
  * If `true`, the step is disabled, will also disable the button if
156
166
  * `StepButton` is a child of `Step`. Is passed to child components.
@@ -57,17 +57,20 @@ var Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
57
57
  alternativeLabel = _props$alternativeLab === void 0 ? false : _props$alternativeLab,
58
58
  children = props.children,
59
59
  className = props.className,
60
+ _props$component = props.component,
61
+ component = _props$component === void 0 ? 'div' : _props$component,
60
62
  _props$connector = props.connector,
61
63
  connector = _props$connector === void 0 ? defaultConnector : _props$connector,
62
64
  _props$nonLinear = props.nonLinear,
63
65
  nonLinear = _props$nonLinear === void 0 ? false : _props$nonLinear,
64
66
  _props$orientation = props.orientation,
65
67
  orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
66
- other = _objectWithoutProperties(props, ["activeStep", "alternativeLabel", "children", "className", "connector", "nonLinear", "orientation"]);
68
+ other = _objectWithoutProperties(props, ["activeStep", "alternativeLabel", "children", "className", "component", "connector", "nonLinear", "orientation"]);
67
69
 
68
70
  var ownerState = _extends({}, props, {
69
71
  alternativeLabel: alternativeLabel,
70
- orientation: orientation
72
+ orientation: orientation,
73
+ component: component
71
74
  });
72
75
 
73
76
  var classes = useUtilityClasses(ownerState);
@@ -90,6 +93,7 @@ var Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {
90
93
  return /*#__PURE__*/_jsx(StepperContext.Provider, {
91
94
  value: contextValue,
92
95
  children: /*#__PURE__*/_jsx(StepperRoot, _extends({
96
+ as: component,
93
97
  ownerState: ownerState,
94
98
  className: clsx(classes.root, className),
95
99
  ref: ref
@@ -135,6 +139,12 @@ process.env.NODE_ENV !== "production" ? Stepper.propTypes
135
139
  */
136
140
  className: PropTypes.string,
137
141
 
142
+ /**
143
+ * The component used for the root node.
144
+ * Either a string to use a HTML element or a component.
145
+ */
146
+ component: PropTypes.elementType,
147
+
138
148
  /**
139
149
  * An element to be placed between each step.
140
150
  * @default <StepConnector />
@@ -243,6 +243,8 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes
243
243
  * The value to associate with the button when selected in a
244
244
  * ToggleButtonGroup.
245
245
  */
246
- value: PropTypes.any.isRequired
246
+ value: PropTypes
247
+ /* @typescript-to-proptypes-ignore */
248
+ .any.isRequired
247
249
  } : void 0;
248
250
  export default ToggleButton;
package/legacy/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.
package/locale/index.d.ts CHANGED
@@ -1,71 +1,71 @@
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 arSD: Localization;
27
- export declare const azAZ: Localization;
28
- export declare const bnBD: Localization;
29
- export declare const bgBG: Localization;
30
- export declare const caES: Localization;
31
- export declare const csCZ: Localization;
32
- export declare const daDK: Localization;
33
- export declare const deDE: Localization;
34
- export declare const elGR: Localization;
35
- export declare const enUS: Localization;
36
- export declare const esES: Localization;
37
- export declare const etEE: Localization;
38
- export declare const faIR: Localization;
39
- export declare const fiFI: Localization;
40
- export declare const frFR: Localization;
41
- export declare const heIL: Localization;
42
- export declare const hiIN: Localization;
43
- export declare const hrHR: Localization;
44
- export declare const huHU: Localization;
45
- export declare const hyAM: Localization;
46
- export declare const idID: Localization;
47
- export declare const isIS: Localization;
48
- export declare const itIT: Localization;
49
- export declare const jaJP: Localization;
50
- export declare const khKH: Localization;
51
- export declare const koKR: Localization;
52
- export declare const kzKZ: Localization;
53
- export declare const mkMK: Localization;
54
- export declare const nbNO: Localization;
55
- export declare const nlNL: Localization;
56
- export declare const plPL: Localization;
57
- export declare const ptBR: Localization;
58
- export declare const ptPT: Localization;
59
- export declare const roRO: Localization;
60
- export declare const srRS: Localization;
61
- export declare const ruRU: Localization;
62
- export declare const siLK: Localization;
63
- export declare const skSK: Localization;
64
- export declare const svSE: Localization;
65
- export declare const thTH: Localization;
66
- export declare const trTR: Localization;
67
- export declare const ukUA: Localization;
68
- export declare const viVN: Localization;
69
- export declare const zhCN: Localization;
70
- export declare const zhHK: Localization;
71
- 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 arSD: Localization;
27
+ export declare const azAZ: Localization;
28
+ export declare const bnBD: Localization;
29
+ export declare const bgBG: Localization;
30
+ export declare const caES: Localization;
31
+ export declare const csCZ: Localization;
32
+ export declare const daDK: Localization;
33
+ export declare const deDE: Localization;
34
+ export declare const elGR: Localization;
35
+ export declare const enUS: Localization;
36
+ export declare const esES: Localization;
37
+ export declare const etEE: Localization;
38
+ export declare const faIR: Localization;
39
+ export declare const fiFI: Localization;
40
+ export declare const frFR: Localization;
41
+ export declare const heIL: Localization;
42
+ export declare const hiIN: Localization;
43
+ export declare const hrHR: Localization;
44
+ export declare const huHU: Localization;
45
+ export declare const hyAM: Localization;
46
+ export declare const idID: Localization;
47
+ export declare const isIS: Localization;
48
+ export declare const itIT: Localization;
49
+ export declare const jaJP: Localization;
50
+ export declare const khKH: Localization;
51
+ export declare const koKR: Localization;
52
+ export declare const kzKZ: Localization;
53
+ export declare const mkMK: Localization;
54
+ export declare const nbNO: Localization;
55
+ export declare const nlNL: Localization;
56
+ export declare const plPL: Localization;
57
+ export declare const ptBR: Localization;
58
+ export declare const ptPT: Localization;
59
+ export declare const roRO: Localization;
60
+ export declare const srRS: Localization;
61
+ export declare const ruRU: Localization;
62
+ export declare const siLK: Localization;
63
+ export declare const skSK: Localization;
64
+ export declare const svSE: Localization;
65
+ export declare const thTH: Localization;
66
+ export declare const trTR: Localization;
67
+ export declare const ukUA: Localization;
68
+ export declare const viVN: Localization;
69
+ export declare const zhCN: Localization;
70
+ export declare const zhHK: Localization;
71
+ export declare const zhTW: Localization;
@@ -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';
@@ -71,6 +71,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
71
71
  const {
72
72
  children: childrenProp,
73
73
  className,
74
+ component = 'div',
74
75
  componentsProps = {},
75
76
  max = 5,
76
77
  spacing = 'medium',
@@ -84,6 +85,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
84
85
  const ownerState = _extends({}, props, {
85
86
  max,
86
87
  spacing,
88
+ component,
87
89
  variant
88
90
  });
89
91
 
@@ -108,6 +110,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
108
110
  const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
109
111
  const marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
110
112
  return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
113
+ as: component,
111
114
  ownerState: ownerState,
112
115
  className: clsx(classes.root, className),
113
116
  ref: ref
@@ -157,6 +160,12 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
157
160
  */
158
161
  className: PropTypes.string,
159
162
 
163
+ /**
164
+ * The component used for the root node.
165
+ * Either a string to use a HTML element or a component.
166
+ */
167
+ component: PropTypes.elementType,
168
+
160
169
  /**
161
170
  * The props used for each slot inside the AvatarGroup.
162
171
  * @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 */