@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 = ["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/modern/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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.10.3",
3
+ "version": "5.10.4",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -46,9 +46,9 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.18.9",
49
- "@mui/base": "5.0.0-alpha.95",
50
- "@mui/core-downloads-tracker": "^5.10.3",
51
- "@mui/system": "^5.10.3",
49
+ "@mui/base": "5.0.0-alpha.96",
50
+ "@mui/core-downloads-tracker": "^5.10.4",
51
+ "@mui/system": "^5.10.4",
52
52
  "@mui/types": "^7.2.0",
53
53
  "@mui/utils": "^5.10.3",
54
54
  "@types/react-transition-group": "^4.4.5",
@@ -1,14 +1,14 @@
1
- /// <reference types="react" />
2
- import { SupportedColorScheme } from './experimental_extendTheme';
3
- declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
4
- declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
5
- theme?: {
6
- cssVarPrefix?: string | undefined;
7
- colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
8
- } | undefined;
9
- documentNode?: Document | null | undefined;
10
- colorSchemeNode?: Document | HTMLElement | null | undefined;
11
- colorSchemeSelector?: string | undefined;
12
- storageWindow?: Window | null | undefined;
13
- }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
14
- export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
1
+ /// <reference types="react" />
2
+ import { SupportedColorScheme } from './experimental_extendTheme';
3
+ declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
4
+ declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
5
+ theme?: {
6
+ cssVarPrefix?: string | undefined;
7
+ colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
8
+ } | undefined;
9
+ documentNode?: Document | null | undefined;
10
+ colorSchemeNode?: Document | HTMLElement | null | undefined;
11
+ colorSchemeSelector?: string | undefined;
12
+ storageWindow?: Window | null | undefined;
13
+ }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
14
+ export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';
@@ -1,13 +1,13 @@
1
- import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
- import * as React from 'react';
3
- export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
- export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
- export interface EasingProps {
6
- easing: string | {
7
- enter?: string;
8
- exit?: string;
9
- };
10
- }
11
- export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
- export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
- }
1
+ import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
+ import * as React from 'react';
3
+ export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
+ export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
+ }
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,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.
@@ -10302,7 +10302,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10302
10302
  *
10303
10303
  * Demos:
10304
10304
  *
10305
- * - [Badge](https://mui.com/base/react-badge/)
10305
+ * - [Unstyled badge](https://mui.com/base/react-badge/)
10306
10306
  *
10307
10307
  * API:
10308
10308
  *
@@ -10439,7 +10439,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10439
10439
  *
10440
10440
  * Demos:
10441
10441
  *
10442
- * - [Click away listener](https://mui.com/base/react-click-away-listener/)
10442
+ * - [Click-away listener](https://mui.com/base/react-click-away-listener/)
10443
10443
  *
10444
10444
  * API:
10445
10445
  *
@@ -12627,7 +12627,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12627
12627
  return children;
12628
12628
  }
12629
12629
 
12630
- return mountNode ? /*#__PURE__*/ReactDOM__namespace.createPortal(children, mountNode) : mountNode;
12630
+ return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
12631
+ children: mountNode ? /*#__PURE__*/ReactDOM__namespace.createPortal(children, mountNode) : mountNode
12632
+ });
12631
12633
  });
12632
12634
  Portal.propTypes
12633
12635
  /* remove-proptypes */
@@ -21250,7 +21252,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21250
21252
  * Demos:
21251
21253
  *
21252
21254
  * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
21253
- * - [Menus](https://mui.com/material-ui/react-menu/)
21255
+ * - [Menu](https://mui.com/material-ui/react-menu/)
21254
21256
  * - [Popper](https://mui.com/material-ui/react-popper/)
21255
21257
  *
21256
21258
  * API:
@@ -24270,7 +24272,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24270
24272
  const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
24271
24273
  var avatarGroupClasses$1 = avatarGroupClasses;
24272
24274
 
24273
- const _excluded$1L = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
24275
+ const _excluded$1L = ["children", "className", "component", "componentsProps", "max", "spacing", "total", "variant"];
24274
24276
  const SPACINGS$2 = {
24275
24277
  small: -16,
24276
24278
  medium: null
@@ -24332,6 +24334,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24332
24334
  const {
24333
24335
  children: childrenProp,
24334
24336
  className,
24337
+ component = 'div',
24335
24338
  componentsProps = {},
24336
24339
  max = 5,
24337
24340
  spacing = 'medium',
@@ -24345,6 +24348,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24345
24348
  const ownerState = _extends({}, props, {
24346
24349
  max,
24347
24350
  spacing,
24351
+ component,
24348
24352
  variant
24349
24353
  });
24350
24354
 
@@ -24369,6 +24373,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24369
24373
  const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
24370
24374
  const marginLeft = spacing && SPACINGS$2[spacing] !== undefined ? SPACINGS$2[spacing] : -spacing;
24371
24375
  return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
24376
+ as: component,
24372
24377
  ownerState: ownerState,
24373
24378
  className: clsx(classes.root, className),
24374
24379
  ref: ref
@@ -24418,6 +24423,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24418
24423
  */
24419
24424
  className: PropTypes.string,
24420
24425
 
24426
+ /**
24427
+ * The component used for the root node.
24428
+ * Either a string to use a HTML element or a component.
24429
+ */
24430
+ component: PropTypes.elementType,
24431
+
24421
24432
  /**
24422
24433
  * The props used for each slot inside the AvatarGroup.
24423
24434
  * @default {}
@@ -33202,10 +33213,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33202
33213
 
33203
33214
  var withWidth$1 = withWidth;
33204
33215
 
33205
- /**
33206
- * @ignore - internal component.
33207
- */
33208
-
33209
33216
  function HiddenJs(props) {
33210
33217
  const {
33211
33218
  children,
@@ -33249,7 +33256,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33249
33256
  return null;
33250
33257
  }
33251
33258
 
33252
- return children;
33259
+ return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
33260
+ children: children
33261
+ });
33253
33262
  }
33254
33263
 
33255
33264
  HiddenJs.propTypes = {
@@ -33258,48 +33267,28 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33258
33267
  */
33259
33268
  children: PropTypes.node,
33260
33269
 
33261
- /**
33262
- * @ignore
33263
- */
33264
- className: PropTypes.string,
33265
-
33266
- /**
33267
- * Specify which implementation to use. 'js' is the default, 'css' works better for
33268
- * server-side rendering.
33269
- */
33270
- implementation: PropTypes.oneOf(['js', 'css']),
33271
-
33272
- /**
33273
- * You can use this prop when choosing the `js` implementation with server-side rendering.
33274
- *
33275
- * As `window.innerWidth` is unavailable on the server,
33276
- * we default to rendering an empty component during the first mount.
33277
- * You might want to use a heuristic to approximate
33278
- * the screen width of the client browser screen width.
33279
- *
33280
- * For instance, you could be using the user-agent or the client-hints.
33281
- * https://caniuse.com/#search=client%20hint
33282
- */
33283
- initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
33284
-
33285
33270
  /**
33286
33271
  * If `true`, screens this size and down are hidden.
33287
33272
  */
33273
+ // eslint-disable-next-line react/no-unused-prop-types
33288
33274
  lgDown: PropTypes.bool,
33289
33275
 
33290
33276
  /**
33291
33277
  * If `true`, screens this size and up are hidden.
33292
33278
  */
33279
+ // eslint-disable-next-line react/no-unused-prop-types
33293
33280
  lgUp: PropTypes.bool,
33294
33281
 
33295
33282
  /**
33296
33283
  * If `true`, screens this size and down are hidden.
33297
33284
  */
33285
+ // eslint-disable-next-line react/no-unused-prop-types
33298
33286
  mdDown: PropTypes.bool,
33299
33287
 
33300
33288
  /**
33301
33289
  * If `true`, screens this size and up are hidden.
33302
33290
  */
33291
+ // eslint-disable-next-line react/no-unused-prop-types
33303
33292
  mdUp: PropTypes.bool,
33304
33293
 
33305
33294
  /**
@@ -33310,11 +33299,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33310
33299
  /**
33311
33300
  * If `true`, screens this size and down are hidden.
33312
33301
  */
33302
+ // eslint-disable-next-line react/no-unused-prop-types
33313
33303
  smDown: PropTypes.bool,
33314
33304
 
33315
33305
  /**
33316
33306
  * If `true`, screens this size and up are hidden.
33317
33307
  */
33308
+ // eslint-disable-next-line react/no-unused-prop-types
33318
33309
  smUp: PropTypes.bool,
33319
33310
 
33320
33311
  /**
@@ -33326,26 +33317,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33326
33317
  /**
33327
33318
  * If `true`, screens this size and down are hidden.
33328
33319
  */
33320
+ // eslint-disable-next-line react/no-unused-prop-types
33329
33321
  xlDown: PropTypes.bool,
33330
33322
 
33331
33323
  /**
33332
33324
  * If `true`, screens this size and up are hidden.
33333
33325
  */
33326
+ // eslint-disable-next-line react/no-unused-prop-types
33334
33327
  xlUp: PropTypes.bool,
33335
33328
 
33336
33329
  /**
33337
33330
  * If `true`, screens this size and down are hidden.
33338
33331
  */
33332
+ // eslint-disable-next-line react/no-unused-prop-types
33339
33333
  xsDown: PropTypes.bool,
33340
33334
 
33341
33335
  /**
33342
33336
  * If `true`, screens this size and up are hidden.
33343
33337
  */
33338
+ // eslint-disable-next-line react/no-unused-prop-types
33344
33339
  xsUp: PropTypes.bool
33345
- };
33340
+ } ;
33346
33341
 
33347
33342
  {
33348
- HiddenJs.propTypes = exactProp(HiddenJs.propTypes);
33343
+ HiddenJs.propTypes = exactProp(HiddenJs.propTypes) ;
33349
33344
  }
33350
33345
 
33351
33346
  var HiddenJs$1 = withWidth$1()(HiddenJs);
@@ -38921,21 +38916,23 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38921
38916
 
38922
38917
  const otherClasses = _objectWithoutPropertiesLoose(classesProp, _excluded2$4);
38923
38918
 
38924
- return /*#__PURE__*/React__namespace.cloneElement(input, _extends({
38925
- // Most of the logic is implemented in `NativeSelectInput`.
38926
- // The `Select` component is a simple API wrapper to expose something better to play with.
38927
- inputComponent: NativeSelectInput$1,
38928
- inputProps: _extends({
38929
- children,
38930
- classes: otherClasses,
38931
- IconComponent,
38932
- variant: fcs.variant,
38933
- type: undefined
38934
- }, inputProps, input ? input.props.inputProps : {}),
38935
- ref
38936
- }, other, {
38937
- className: clsx(classes.root, input.props.className, className)
38938
- }));
38919
+ return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
38920
+ children: /*#__PURE__*/React__namespace.cloneElement(input, _extends({
38921
+ // Most of the logic is implemented in `NativeSelectInput`.
38922
+ // The `Select` component is a simple API wrapper to expose something better to play with.
38923
+ inputComponent: NativeSelectInput$1,
38924
+ inputProps: _extends({
38925
+ children,
38926
+ classes: otherClasses,
38927
+ IconComponent,
38928
+ variant: fcs.variant,
38929
+ type: undefined
38930
+ }, inputProps, input ? input.props.inputProps : {}),
38931
+ ref
38932
+ }, other, {
38933
+ className: clsx(classes.root, input.props.className, className)
38934
+ }))
38935
+ });
38939
38936
  });
38940
38937
  NativeSelect.propTypes
38941
38938
  /* remove-proptypes */
@@ -42295,43 +42292,45 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42295
42292
 
42296
42293
  const classes = useUtilityClasses$v(ownerState);
42297
42294
  const inputComponentRef = useForkRef(ref, InputComponent.ref);
42298
- return /*#__PURE__*/React__namespace.cloneElement(InputComponent, _extends({
42299
- // Most of the logic is implemented in `SelectInput`.
42300
- // The `Select` component is a simple API wrapper to expose something better to play with.
42301
- inputComponent,
42302
- inputProps: _extends({
42303
- children,
42304
- IconComponent,
42305
- variant,
42306
- type: undefined,
42307
- // We render a select. We can ignore the type provided by the `Input`.
42308
- multiple
42309
- }, native ? {
42310
- id
42311
- } : {
42312
- autoWidth,
42313
- defaultOpen,
42314
- displayEmpty,
42315
- labelId,
42316
- MenuProps,
42317
- onClose,
42318
- onOpen,
42319
- open,
42320
- renderValue,
42321
- SelectDisplayProps: _extends({
42295
+ return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
42296
+ children: /*#__PURE__*/React__namespace.cloneElement(InputComponent, _extends({
42297
+ // Most of the logic is implemented in `SelectInput`.
42298
+ // The `Select` component is a simple API wrapper to expose something better to play with.
42299
+ inputComponent,
42300
+ inputProps: _extends({
42301
+ children,
42302
+ IconComponent,
42303
+ variant,
42304
+ type: undefined,
42305
+ // We render a select. We can ignore the type provided by the `Input`.
42306
+ multiple
42307
+ }, native ? {
42322
42308
  id
42323
- }, SelectDisplayProps)
42324
- }, inputProps, {
42325
- classes: inputProps ? deepmerge(classes, inputProps.classes) : classes
42326
- }, input ? input.props.inputProps : {})
42327
- }, multiple && native && variant === 'outlined' ? {
42328
- notched: true
42329
- } : {}, {
42330
- ref: inputComponentRef,
42331
- className: clsx(InputComponent.props.className, className)
42332
- }, !input && {
42333
- variant
42334
- }, other));
42309
+ } : {
42310
+ autoWidth,
42311
+ defaultOpen,
42312
+ displayEmpty,
42313
+ labelId,
42314
+ MenuProps,
42315
+ onClose,
42316
+ onOpen,
42317
+ open,
42318
+ renderValue,
42319
+ SelectDisplayProps: _extends({
42320
+ id
42321
+ }, SelectDisplayProps)
42322
+ }, inputProps, {
42323
+ classes: inputProps ? deepmerge(classes, inputProps.classes) : classes
42324
+ }, input ? input.props.inputProps : {})
42325
+ }, multiple && native && variant === 'outlined' ? {
42326
+ notched: true
42327
+ } : {}, {
42328
+ ref: inputComponentRef,
42329
+ className: clsx(InputComponent.props.className, className)
42330
+ }, !input && {
42331
+ variant
42332
+ }, other))
42333
+ });
42335
42334
  });
42336
42335
  Select.propTypes
42337
42336
  /* remove-proptypes */
@@ -46278,7 +46277,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46278
46277
  const stepClasses = generateUtilityClasses('MuiStep', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'completed']);
46279
46278
  var stepClasses$1 = stepClasses;
46280
46279
 
46281
- const _excluded$s = ["active", "children", "className", "completed", "disabled", "expanded", "index", "last"];
46280
+ const _excluded$s = ["active", "children", "className", "component", "completed", "disabled", "expanded", "index", "last"];
46282
46281
 
46283
46282
  const useUtilityClasses$n = ownerState => {
46284
46283
  const {
@@ -46321,6 +46320,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46321
46320
  active: activeProp,
46322
46321
  children,
46323
46322
  className,
46323
+ component = 'div',
46324
46324
  completed: completedProp,
46325
46325
  disabled: disabledProp,
46326
46326
  expanded = false,
@@ -46362,12 +46362,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46362
46362
  alternativeLabel,
46363
46363
  completed,
46364
46364
  disabled,
46365
- expanded
46365
+ expanded,
46366
+ component
46366
46367
  });
46367
46368
 
46368
46369
  const classes = useUtilityClasses$n(ownerState);
46369
46370
 
46370
46371
  const newChildren = /*#__PURE__*/jsxRuntime_2(StepRoot, _extends({
46372
+ as: component,
46371
46373
  className: clsx(classes.root, className),
46372
46374
  ref: ref,
46373
46375
  ownerState: ownerState
@@ -46415,6 +46417,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46415
46417
  */
46416
46418
  completed: PropTypes.bool,
46417
46419
 
46420
+ /**
46421
+ * The component used for the root node.
46422
+ * Either a string to use a HTML element or a component.
46423
+ */
46424
+ component: PropTypes.elementType,
46425
+
46418
46426
  /**
46419
46427
  * If `true`, the step is disabled, will also disable the button if
46420
46428
  * `StepButton` is a child of `Step`. Is passed to child components.
@@ -47302,7 +47310,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47302
47310
  const stepperClasses = generateUtilityClasses('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
47303
47311
  var stepperClasses$1 = stepperClasses;
47304
47312
 
47305
- const _excluded$m = ["activeStep", "alternativeLabel", "children", "className", "connector", "nonLinear", "orientation"];
47313
+ const _excluded$m = ["activeStep", "alternativeLabel", "children", "className", "component", "connector", "nonLinear", "orientation"];
47306
47314
 
47307
47315
  const useUtilityClasses$h = ownerState => {
47308
47316
  const {
@@ -47351,6 +47359,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47351
47359
  alternativeLabel = false,
47352
47360
  children,
47353
47361
  className,
47362
+ component = 'div',
47354
47363
  connector = defaultConnector,
47355
47364
  nonLinear = false,
47356
47365
  orientation = 'horizontal'
@@ -47359,7 +47368,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47359
47368
 
47360
47369
  const ownerState = _extends({}, props, {
47361
47370
  alternativeLabel,
47362
- orientation
47371
+ orientation,
47372
+ component
47363
47373
  });
47364
47374
 
47365
47375
  const classes = useUtilityClasses$h(ownerState);
@@ -47380,6 +47390,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47380
47390
  return /*#__PURE__*/jsxRuntime_1(StepperContext$1.Provider, {
47381
47391
  value: contextValue,
47382
47392
  children: /*#__PURE__*/jsxRuntime_1(StepperRoot, _extends({
47393
+ as: component,
47383
47394
  ownerState: ownerState,
47384
47395
  className: clsx(classes.root, className),
47385
47396
  ref: ref
@@ -47425,6 +47436,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47425
47436
  */
47426
47437
  className: PropTypes.string,
47427
47438
 
47439
+ /**
47440
+ * The component used for the root node.
47441
+ * Either a string to use a HTML element or a component.
47442
+ */
47443
+ component: PropTypes.elementType,
47444
+
47428
47445
  /**
47429
47446
  * An element to be placed between each step.
47430
47447
  * @default <StepConnector />
@@ -52248,7 +52265,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
52248
52265
  * The value to associate with the button when selected in a
52249
52266
  * ToggleButtonGroup.
52250
52267
  */
52251
- value: PropTypes.any.isRequired
52268
+ value: PropTypes
52269
+ /* @typescript-to-proptypes-ignore */
52270
+ .any.isRequired
52252
52271
  } ;
52253
52272
  var ToggleButton$1 = ToggleButton;
52254
52273