@mui/material 5.9.2 → 5.10.1

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 (222) 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/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/Badge.js +1 -1
  13. package/Badge/badgeClasses.d.ts +56 -56
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/Button.js +8 -3
  19. package/Button/buttonClasses.d.ts +100 -100
  20. package/ButtonBase/TouchRipple.js +1 -1
  21. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  22. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +196 -5
  26. package/Card/cardClasses.d.ts +8 -8
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/Chip.js +5 -7
  34. package/Chip/chipClasses.d.ts +88 -80
  35. package/Chip/chipClasses.js +1 -1
  36. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  37. package/ClickAwayListener/index.d.ts +2 -2
  38. package/Collapse/collapseClasses.d.ts +18 -18
  39. package/Container/containerClasses.d.ts +6 -6
  40. package/Dialog/DialogContext.d.ts +6 -6
  41. package/Dialog/dialogClasses.d.ts +36 -36
  42. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/filledInputClasses.d.ts +40 -40
  50. package/FormControl/formControlClasses.d.ts +14 -14
  51. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  52. package/FormGroup/formGroupClasses.d.ts +12 -12
  53. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/Grid.d.ts +1 -1
  56. package/Grid/Grid.js +71 -4
  57. package/Grid/gridClasses.d.ts +48 -48
  58. package/Icon/iconClasses.d.ts +24 -24
  59. package/IconButton/iconButtonClasses.d.ts +26 -26
  60. package/ImageList/imageListClasses.d.ts +16 -16
  61. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  62. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  63. package/Input/inputClasses.d.ts +34 -34
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/InputBase.js +3 -2
  66. package/InputBase/inputBaseClasses.d.ts +46 -44
  67. package/InputBase/inputBaseClasses.js +1 -1
  68. package/InputLabel/inputLabelClasses.d.ts +32 -32
  69. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  70. package/Link/getTextDecoration.d.ts +15 -15
  71. package/Link/linkClasses.d.ts +18 -18
  72. package/List/listClasses.d.ts +14 -14
  73. package/ListItem/listItemClasses.d.ts +30 -30
  74. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  75. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  76. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  77. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  78. package/ListItemText/listItemTextClasses.d.ts +18 -18
  79. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  80. package/Menu/menuClasses.d.ts +12 -12
  81. package/MenuItem/menuItemClasses.d.ts +20 -20
  82. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  83. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  84. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  85. package/Pagination/paginationClasses.d.ts +14 -14
  86. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  87. package/Paper/paperClasses.d.ts +39 -39
  88. package/Popover/popoverClasses.d.ts +10 -10
  89. package/Popper/Popper.d.ts +24 -24
  90. package/README.md +8 -8
  91. package/Radio/radioClasses.d.ts +16 -16
  92. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  93. package/RadioGroup/useRadioGroup.d.ts +4 -4
  94. package/Rating/ratingClasses.d.ts +40 -40
  95. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  96. package/Select/SelectInput.js +1 -1
  97. package/Select/selectClasses.d.ts +30 -30
  98. package/Skeleton/Skeleton.d.ts +1 -1
  99. package/Skeleton/Skeleton.js +3 -1
  100. package/Skeleton/skeletonClasses.d.ts +26 -24
  101. package/Skeleton/skeletonClasses.js +1 -1
  102. package/Snackbar/snackbarClasses.d.ts +20 -20
  103. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  104. package/SpeedDial/speedDialClasses.d.ts +22 -22
  105. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  106. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  107. package/Stack/Stack.js +2 -1
  108. package/Step/StepContext.d.ts +20 -20
  109. package/Step/stepClasses.d.ts +16 -16
  110. package/StepButton/stepButtonClasses.d.ts +14 -14
  111. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  112. package/StepContent/stepContentClasses.d.ts +12 -12
  113. package/StepIcon/stepIconClasses.d.ts +16 -16
  114. package/StepLabel/StepLabel.js +1 -1
  115. package/StepLabel/stepLabelClasses.d.ts +28 -28
  116. package/Stepper/StepperContext.d.ts +18 -18
  117. package/Stepper/stepperClasses.d.ts +14 -14
  118. package/SvgIcon/svgIconClasses.d.ts +24 -24
  119. package/Switch/switchClasses.d.ts +32 -32
  120. package/Tab/tabClasses.d.ts +26 -26
  121. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  122. package/Table/tableClasses.d.ts +10 -10
  123. package/TableBody/tableBodyClasses.d.ts +8 -8
  124. package/TableCell/TableCell.d.ts +6 -2
  125. package/TableCell/TableCell.js +6 -2
  126. package/TableCell/tableCellClasses.d.ts +32 -32
  127. package/TableContainer/tableContainerClasses.d.ts +8 -8
  128. package/TableFooter/tableFooterClasses.d.ts +8 -8
  129. package/TableHead/tableHeadClasses.d.ts +8 -8
  130. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  131. package/TableRow/tableRowClasses.d.ts +16 -16
  132. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  133. package/Tabs/tabsClasses.d.ts +32 -32
  134. package/TextField/textFieldClasses.d.ts +8 -8
  135. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  136. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  137. package/Toolbar/toolbarClasses.d.ts +14 -14
  138. package/Tooltip/Tooltip.js +1 -1
  139. package/Tooltip/tooltipClasses.d.ts +30 -30
  140. package/Typography/typographyClasses.d.ts +50 -50
  141. package/Unstable_Grid2/Grid2.d.ts +4 -4
  142. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  143. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  144. package/Unstable_Grid2/index.d.ts +4 -4
  145. package/className/index.d.ts +1 -1
  146. package/darkScrollbar/index.d.ts +28 -28
  147. package/index.js +1 -1
  148. package/internal/switchBaseClasses.d.ts +12 -12
  149. package/legacy/Badge/Badge.js +1 -1
  150. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  151. package/legacy/Button/Button.js +4 -2
  152. package/legacy/ButtonBase/TouchRipple.js +1 -1
  153. package/legacy/Chip/Chip.js +4 -6
  154. package/legacy/Chip/chipClasses.js +1 -1
  155. package/legacy/Grid/Grid.js +76 -12
  156. package/legacy/InputBase/InputBase.js +3 -2
  157. package/legacy/InputBase/inputBaseClasses.js +1 -1
  158. package/legacy/Select/SelectInput.js +1 -1
  159. package/legacy/Skeleton/Skeleton.js +3 -1
  160. package/legacy/Skeleton/skeletonClasses.js +1 -1
  161. package/legacy/Stack/Stack.js +2 -1
  162. package/legacy/StepLabel/StepLabel.js +1 -1
  163. package/legacy/TableCell/TableCell.js +6 -2
  164. package/legacy/Tooltip/Tooltip.js +1 -1
  165. package/legacy/index.js +1 -1
  166. package/legacy/styles/createTheme.js +5 -0
  167. package/legacy/useScrollTrigger/useScrollTrigger.js +6 -2
  168. package/locale/index.d.ts +71 -71
  169. package/modern/Badge/Badge.js +1 -1
  170. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  171. package/modern/Button/Button.js +8 -3
  172. package/modern/ButtonBase/TouchRipple.js +1 -1
  173. package/modern/Chip/Chip.js +5 -7
  174. package/modern/Chip/chipClasses.js +1 -1
  175. package/modern/Grid/Grid.js +67 -4
  176. package/modern/InputBase/InputBase.js +3 -2
  177. package/modern/InputBase/inputBaseClasses.js +1 -1
  178. package/modern/Select/SelectInput.js +1 -1
  179. package/modern/Skeleton/Skeleton.js +3 -1
  180. package/modern/Skeleton/skeletonClasses.js +1 -1
  181. package/modern/Stack/Stack.js +2 -1
  182. package/modern/StepLabel/StepLabel.js +1 -1
  183. package/modern/TableCell/TableCell.js +6 -2
  184. package/modern/Tooltip/Tooltip.js +1 -1
  185. package/modern/index.js +1 -1
  186. package/modern/styles/createTheme.js +6 -0
  187. package/modern/useScrollTrigger/useScrollTrigger.js +6 -2
  188. package/node/Badge/Badge.js +1 -1
  189. package/node/BottomNavigation/BottomNavigation.js +0 -0
  190. package/node/Button/Button.js +10 -3
  191. package/node/ButtonBase/TouchRipple.js +1 -1
  192. package/node/Chip/Chip.js +5 -7
  193. package/node/Chip/chipClasses.js +1 -1
  194. package/node/Grid/Grid.js +71 -4
  195. package/node/InputBase/InputBase.js +3 -2
  196. package/node/InputBase/inputBaseClasses.js +1 -1
  197. package/node/Select/SelectInput.js +1 -1
  198. package/node/Skeleton/Skeleton.js +3 -1
  199. package/node/Skeleton/skeletonClasses.js +1 -1
  200. package/node/Stack/Stack.js +1 -0
  201. package/node/StepLabel/StepLabel.js +1 -1
  202. package/node/TableCell/TableCell.js +6 -2
  203. package/node/Tooltip/Tooltip.js +1 -1
  204. package/node/index.js +1 -1
  205. package/node/styles/createTheme.js +6 -0
  206. package/node/useScrollTrigger/useScrollTrigger.js +6 -2
  207. package/package.json +6 -5
  208. package/styles/CssVarsProvider.d.ts +14 -14
  209. package/styles/createTheme.js +6 -0
  210. package/transitions/index.d.ts +1 -1
  211. package/transitions/transition.d.ts +13 -13
  212. package/transitions/utils.d.ts +23 -23
  213. package/umd/material-ui.development.js +245 -104
  214. package/umd/material-ui.production.min.js +20 -20
  215. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  216. package/useScrollTrigger/useScrollTrigger.js +6 -2
  217. package/useTouchRipple/index.d.ts +1 -1
  218. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  219. package/utils/getScrollbarSize.d.ts +2 -2
  220. package/utils/ownerDocument.d.ts +2 -2
  221. package/utils/ownerWindow.d.ts +2 -2
  222. package/utils/setRef.d.ts +2 -2
@@ -1,15 +1,15 @@
1
- import React from 'react';
2
- import { OverrideProps } from '@mui/types';
3
- import { SxProps, SystemProps } from '@mui/system';
4
- import { GridBaseProps } from '@mui/system/Unstable_Grid';
5
- import { Theme } from '../styles';
6
- export declare type Grid2Slot = 'root';
7
- export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
8
- props: P & GridBaseProps & {
9
- sx?: SxProps<Theme>;
10
- } & SystemProps<Theme>;
11
- defaultComponent: D;
12
- }
13
- export declare type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
- component?: React.ElementType;
15
- }> = OverrideProps<Grid2TypeMap<P, D>, D>;
1
+ import React from 'react';
2
+ import { OverrideProps } from '@mui/types';
3
+ import { SxProps, SystemProps } from '@mui/system';
4
+ import { GridBaseProps } from '@mui/system/Unstable_Grid';
5
+ import { Theme } from '../styles';
6
+ export declare type Grid2Slot = 'root';
7
+ export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
8
+ props: P & GridBaseProps & {
9
+ sx?: SxProps<Theme>;
10
+ } & SystemProps<Theme>;
11
+ defaultComponent: D;
12
+ }
13
+ export declare type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
14
+ component?: React.ElementType;
15
+ }> = OverrideProps<Grid2TypeMap<P, D>, D>;
@@ -1,5 +1,5 @@
1
- import { GridClasses } from '@mui/system/Unstable_Grid';
2
- export declare type Grid2ClassKey = keyof GridClasses;
3
- export declare function getGrid2UtilityClass(slot: string): string;
4
- declare const grid2Classes: GridClasses;
5
- export default grid2Classes;
1
+ import { GridClasses } from '@mui/system/Unstable_Grid';
2
+ export declare type Grid2ClassKey = keyof GridClasses;
3
+ export declare function getGrid2UtilityClass(slot: string): string;
4
+ declare const grid2Classes: GridClasses;
5
+ export default grid2Classes;
@@ -1,4 +1,4 @@
1
- export { default } from './Grid2';
2
- export * from './Grid2Props';
3
- export { default as grid2Classes } from './grid2Classes';
4
- export * from './grid2Classes';
1
+ export { default } from './Grid2';
2
+ export * from './Grid2Props';
3
+ export { default as grid2Classes } from './grid2Classes';
4
+ export * from './grid2Classes';
@@ -1 +1 @@
1
- export { unstable_ClassNameGenerator } from '@mui/utils';
1
+ export { unstable_ClassNameGenerator } from '@mui/utils';
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.2
1
+ /** @license MUI v5.10.1
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;
@@ -229,7 +229,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
229
229
  Root: BadgeRoot,
230
230
  Badge: BadgeBadge
231
231
  }, components),
232
- className: clsx(className, classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className),
232
+ className: clsx((_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, classes.root, className),
233
233
  componentsProps: {
234
234
  root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
235
235
  as: component,
File without changes
@@ -259,7 +259,9 @@ var Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
259
259
  variant: variant
260
260
  });
261
261
 
262
- var classes = useUtilityClasses(ownerState);
262
+ var _useUtilityClasses = useUtilityClasses(ownerState),
263
+ classesRoot = _useUtilityClasses.root,
264
+ classes = _objectWithoutProperties(_useUtilityClasses, ["root"]);
263
265
 
264
266
  var startIcon = startIconProp && /*#__PURE__*/_jsx(ButtonStartIcon, {
265
267
  className: classes.startIcon,
@@ -275,7 +277,7 @@ var Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
275
277
 
276
278
  return /*#__PURE__*/_jsxs(ButtonRoot, _extends({
277
279
  ownerState: ownerState,
278
- className: clsx(className, contextProps.className),
280
+ className: clsx(contextProps.className, classesRoot, className),
279
281
  component: component,
280
282
  disabled: disabled,
281
283
  focusRipple: !disableFocusRipple,
@@ -249,7 +249,7 @@ var TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, re
249
249
  };
250
250
  }, [pulsate, start, stop]);
251
251
  return /*#__PURE__*/_jsx(TouchRippleRoot, _extends({
252
- className: clsx(classes.root, touchRippleClasses.root, className),
252
+ className: clsx(touchRippleClasses.root, classes.root, className),
253
253
  ref: container
254
254
  }, other, {
255
255
  children: /*#__PURE__*/_jsx(TransitionGroup, {
@@ -30,7 +30,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
30
30
  label: ['label', "label".concat(capitalize(size))],
31
31
  avatar: ['avatar', "avatar".concat(capitalize(size)), "avatarColor".concat(capitalize(color))],
32
32
  icon: ['icon', "icon".concat(capitalize(size)), "iconColor".concat(capitalize(color))],
33
- deleteIcon: ['deleteIcon', "deleteIcon".concat(capitalize(size)), "deleteIconColor".concat(capitalize(color)), "deleteIconOutlinedColor".concat(capitalize(color))]
33
+ deleteIcon: ['deleteIcon', "deleteIcon".concat(capitalize(size)), "deleteIconColor".concat(capitalize(color)), "deleteIcon".concat(capitalize(variant), "Color").concat(capitalize(color))]
34
34
  };
35
35
  return composeClasses(slots, getChipUtilityClass, classes);
36
36
  };
@@ -45,7 +45,7 @@ var ChipRoot = styled('div', {
45
45
  onDelete = ownerState.onDelete,
46
46
  size = ownerState.size,
47
47
  variant = ownerState.variant;
48
- return [_defineProperty({}, "& .".concat(chipClasses.avatar), styles.avatar), _defineProperty({}, "& .".concat(chipClasses.avatar), styles["avatar".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.avatar), styles["avatarColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses.icon), styles.icon), _defineProperty({}, "& .".concat(chipClasses.icon), styles["icon".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.icon), styles["iconColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles.deleteIcon), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIcon".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIconColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIconOutlinedColor".concat(capitalize(color))]), styles.root, styles["size".concat(capitalize(size))], styles["color".concat(capitalize(color))], clickable && styles.clickable, clickable && color !== 'default' && styles["clickableColor".concat(capitalize(color), ")")], onDelete && styles.deletable, onDelete && color !== 'default' && styles["deletableColor".concat(capitalize(color))], styles[variant], variant === 'outlined' && styles["outlined".concat(capitalize(color))]];
48
+ return [_defineProperty({}, "& .".concat(chipClasses.avatar), styles.avatar), _defineProperty({}, "& .".concat(chipClasses.avatar), styles["avatar".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.avatar), styles["avatarColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses.icon), styles.icon), _defineProperty({}, "& .".concat(chipClasses.icon), styles["icon".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.icon), styles["iconColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles.deleteIcon), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIcon".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIconColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIcon".concat(capitalize(variant), "Color").concat(capitalize(color))]), styles.root, styles["size".concat(capitalize(size))], styles["color".concat(capitalize(color))], clickable && styles.clickable, clickable && color !== 'default' && styles["clickableColor".concat(capitalize(color), ")")], onDelete && styles.deletable, onDelete && color !== 'default' && styles["deletableColor".concat(capitalize(color))], styles[variant], styles["".concat(variant).concat(capitalize(color))]];
49
49
  }
50
50
  })(function (_ref11) {
51
51
  var _extends2;
@@ -293,7 +293,6 @@ var Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
293
293
  };
294
294
 
295
295
  var clickable = clickableProp !== false && onClick ? true : clickableProp;
296
- var small = size === 'small';
297
296
  var component = clickable || onDelete ? ButtonBase : ComponentProp || 'div';
298
297
 
299
298
  var ownerState = _extends({}, props, {
@@ -316,12 +315,11 @@ var Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
316
315
  var deleteIcon = null;
317
316
 
318
317
  if (onDelete) {
319
- var customClasses = clsx(color !== 'default' && (variant === 'outlined' ? classes["deleteIconOutlinedColor".concat(capitalize(color))] : classes["deleteIconColor".concat(capitalize(color))]), small && classes.deleteIconSmall);
320
318
  deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? /*#__PURE__*/React.cloneElement(deleteIconProp, {
321
- className: clsx(deleteIconProp.props.className, classes.deleteIcon, customClasses),
319
+ className: clsx(deleteIconProp.props.className, classes.deleteIcon),
322
320
  onClick: handleDeleteIconClick
323
321
  }) : /*#__PURE__*/_jsx(CancelIcon, {
324
- className: clsx(classes.deleteIcon, customClasses),
322
+ className: clsx(classes.deleteIcon),
325
323
  onClick: handleDeleteIconClick
326
324
  });
327
325
  }
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getChipUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiChip', slot);
4
4
  }
5
- var chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'focusVisible']);
5
+ var chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
6
6
  export default chipClasses;
@@ -131,9 +131,34 @@ export function generateDirection(_ref2) {
131
131
  return output;
132
132
  });
133
133
  }
134
- export function generateRowGap(_ref3) {
135
- var theme = _ref3.theme,
136
- ownerState = _ref3.ownerState;
134
+ /**
135
+ * Extracts zero value breakpoint keys before a non-zero value breakpoint key.
136
+ * @example { xs: 0, sm: 0, md: 2, lg: 0, xl: 0 } or [0, 0, 2, 0, 0]
137
+ * @returns [xs, sm]
138
+ */
139
+
140
+ function extractZeroValueBreakpointKeys(_ref3) {
141
+ var breakpoints = _ref3.breakpoints,
142
+ values = _ref3.values;
143
+ var nonZeroKey = '';
144
+ Object.keys(values).forEach(function (key) {
145
+ if (nonZeroKey !== '') {
146
+ return;
147
+ }
148
+
149
+ if (values[key] !== 0) {
150
+ nonZeroKey = key;
151
+ }
152
+ });
153
+ var sortedBreakpointKeysByValue = Object.keys(breakpoints).sort(function (a, b) {
154
+ return breakpoints[a] - breakpoints[b];
155
+ });
156
+ return sortedBreakpointKeysByValue.slice(0, sortedBreakpointKeysByValue.indexOf(nonZeroKey));
157
+ }
158
+
159
+ export function generateRowGap(_ref4) {
160
+ var theme = _ref4.theme,
161
+ ownerState = _ref4.ownerState;
137
162
  var container = ownerState.container,
138
163
  rowSpacing = ownerState.rowSpacing;
139
164
  var styles = {};
@@ -143,9 +168,20 @@ export function generateRowGap(_ref3) {
143
168
  values: rowSpacing,
144
169
  breakpoints: theme.breakpoints.values
145
170
  });
171
+ var zeroValueBreakpointKeys;
172
+
173
+ if (_typeof(rowSpacingValues) === 'object') {
174
+ zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
175
+ breakpoints: theme.breakpoints.values,
176
+ values: rowSpacingValues
177
+ });
178
+ }
179
+
146
180
  styles = handleBreakpoints({
147
181
  theme: theme
148
- }, rowSpacingValues, function (propValue) {
182
+ }, rowSpacingValues, function (propValue, breakpoint) {
183
+ var _zeroValueBreakpointK;
184
+
149
185
  var themeSpacing = theme.spacing(propValue);
150
186
 
151
187
  if (themeSpacing !== '0px') {
@@ -156,15 +192,23 @@ export function generateRowGap(_ref3) {
156
192
  });
157
193
  }
158
194
 
159
- return {};
195
+ if ((_zeroValueBreakpointK = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK.includes(breakpoint)) {
196
+ return {};
197
+ }
198
+
199
+ return _defineProperty({
200
+ marginTop: 0
201
+ }, "& > .".concat(gridClasses.item), {
202
+ paddingTop: 0
203
+ });
160
204
  });
161
205
  }
162
206
 
163
207
  return styles;
164
208
  }
165
- export function generateColumnGap(_ref5) {
166
- var theme = _ref5.theme,
167
- ownerState = _ref5.ownerState;
209
+ export function generateColumnGap(_ref7) {
210
+ var theme = _ref7.theme,
211
+ ownerState = _ref7.ownerState;
168
212
  var container = ownerState.container,
169
213
  columnSpacing = ownerState.columnSpacing;
170
214
  var styles = {};
@@ -174,9 +218,20 @@ export function generateColumnGap(_ref5) {
174
218
  values: columnSpacing,
175
219
  breakpoints: theme.breakpoints.values
176
220
  });
221
+ var zeroValueBreakpointKeys;
222
+
223
+ if (_typeof(columnSpacingValues) === 'object') {
224
+ zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
225
+ breakpoints: theme.breakpoints.values,
226
+ values: columnSpacingValues
227
+ });
228
+ }
229
+
177
230
  styles = handleBreakpoints({
178
231
  theme: theme
179
- }, columnSpacingValues, function (propValue) {
232
+ }, columnSpacingValues, function (propValue, breakpoint) {
233
+ var _zeroValueBreakpointK2;
234
+
180
235
  var themeSpacing = theme.spacing(propValue);
181
236
 
182
237
  if (themeSpacing !== '0px') {
@@ -188,7 +243,16 @@ export function generateColumnGap(_ref5) {
188
243
  });
189
244
  }
190
245
 
191
- return {};
246
+ if ((_zeroValueBreakpointK2 = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK2.includes(breakpoint)) {
247
+ return {};
248
+ }
249
+
250
+ return _defineProperty({
251
+ width: '100%',
252
+ marginLeft: 0
253
+ }, "& > .".concat(gridClasses.item), {
254
+ paddingLeft: 0
255
+ });
192
256
  });
193
257
  }
194
258
 
@@ -252,8 +316,8 @@ var GridRoot = styled('div', {
252
316
  });
253
317
  return [styles.root, container && styles.container, item && styles.item, zeroMinWidth && styles.zeroMinWidth].concat(_toConsumableArray(spacingStyles), [direction !== 'row' && styles["direction-xs-".concat(String(direction))], wrap !== 'wrap' && styles["wrap-xs-".concat(String(wrap))]], breakpointsStyles);
254
318
  }
255
- })(function (_ref7) {
256
- var ownerState = _ref7.ownerState;
319
+ })(function (_ref10) {
320
+ var ownerState = _ref10.ownerState;
257
321
  return _extends({
258
322
  boxSizing: 'border-box'
259
323
  }, ownerState.container && {
@@ -40,12 +40,13 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
40
40
  fullWidth = ownerState.fullWidth,
41
41
  hiddenLabel = ownerState.hiddenLabel,
42
42
  multiline = ownerState.multiline,
43
+ readOnly = ownerState.readOnly,
43
44
  size = ownerState.size,
44
45
  startAdornment = ownerState.startAdornment,
45
46
  type = ownerState.type;
46
47
  var slots = {
47
- root: ['root', "color".concat(capitalize(color)), disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel'],
48
- input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd']
48
+ root: ['root', "color".concat(capitalize(color)), disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
49
+ input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
49
50
  };
50
51
  return composeClasses(slots, getInputBaseUtilityClass, classes);
51
52
  };
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getInputBaseUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiInputBase', slot);
4
4
  }
5
- var inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
5
+ var inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
6
6
  export default inputBaseClasses;
@@ -531,7 +531,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
531
531
  onFocus: onFocus
532
532
  }, SelectDisplayProps, {
533
533
  ownerState: ownerState,
534
- className: clsx(classes.select, className, SelectDisplayProps.className) // The id is required for proper a11y
534
+ className: clsx(SelectDisplayProps.className, classes.select, className) // The id is required for proper a11y
535
535
  ,
536
536
  id: buttonId,
537
537
  children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
@@ -59,6 +59,8 @@ var SkeletonRoot = styled('span', {
59
59
  }
60
60
  }, ownerState.variant === 'circular' && {
61
61
  borderRadius: '50%'
62
+ }, ownerState.variant === 'rounded' && {
63
+ borderRadius: (theme.vars || theme).shape.borderRadius
62
64
  }, ownerState.hasChildren && {
63
65
  '& > *': {
64
66
  visibility: 'hidden'
@@ -172,7 +174,7 @@ process.env.NODE_ENV !== "production" ? Skeleton.propTypes
172
174
  */
173
175
  variant: PropTypes
174
176
  /* @typescript-to-proptypes-ignore */
175
- .oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'text']), PropTypes.string]),
177
+ .oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'rounded', 'text']), PropTypes.string]),
176
178
 
177
179
  /**
178
180
  * Width of the skeleton.
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getSkeletonUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiSkeleton', slot);
4
4
  }
5
- var skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
5
+ var skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
6
6
  export default skeletonClasses;
@@ -4,7 +4,7 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
- import { createUnarySpacing, getValue, handleBreakpoints, unstable_extendSxProp as extendSxProp, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
7
+ import { createUnarySpacing, getValue, handleBreakpoints, mergeBreakpointsInOrder, unstable_extendSxProp as extendSxProp, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
8
8
  import { deepmerge } from '@mui/utils';
9
9
  import styled from '../styles/styled';
10
10
  import useThemeProps from '../styles/useThemeProps';
@@ -102,6 +102,7 @@ export var style = function style(_ref) {
102
102
  }, spacingValues, styleFromPropValue));
103
103
  }
104
104
 
105
+ styles = mergeBreakpointsInOrder(theme.breakpoints, styles);
105
106
  return styles;
106
107
  };
107
108
  var StackRoot = styled('div', {
@@ -25,7 +25,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
25
25
  var slots = {
26
26
  root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
27
27
  label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
28
- iconContainer: ['iconContainer', alternativeLabel && 'alternativeLabel'],
28
+ iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
29
29
  labelContainer: ['labelContainer']
30
30
  };
31
31
  return composeClasses(slots, getStepLabelUtilityClass, classes);
@@ -206,7 +206,9 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
206
206
  * Specify the size of the cell.
207
207
  * The prop defaults to the value (`'medium'`) inherited from the parent Table component.
208
208
  */
209
- size: PropTypes.oneOf(['small', 'medium']),
209
+ size: PropTypes
210
+ /* @typescript-to-proptypes-ignore */
211
+ .oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
210
212
 
211
213
  /**
212
214
  * Set aria-sort direction.
@@ -222,6 +224,8 @@ process.env.NODE_ENV !== "production" ? TableCell.propTypes
222
224
  * Specify the cell type.
223
225
  * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
224
226
  */
225
- variant: PropTypes.oneOf(['body', 'footer', 'head'])
227
+ variant: PropTypes
228
+ /* @typescript-to-proptypes-ignore */
229
+ .oneOfType([PropTypes.oneOf(['body', 'footer', 'head']), PropTypes.string])
226
230
  } : void 0;
227
231
  export default TableCell;
@@ -178,7 +178,7 @@ var TooltipArrow = styled('span', {
178
178
  /* = width / sqrt(2) = (length of the hypotenuse) */
179
179
  ,
180
180
  boxSizing: 'border-box',
181
- color: theme.vars ? "rgba(".concat(theme.vars.palette.grey.darkChannel, " / 0.9)") : alpha(theme.palette.grey[700], 0.9),
181
+ color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),
182
182
  '&::before': {
183
183
  content: '""',
184
184
  margin: 'auto',
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.2
1
+ /** @license MUI v5.10.1
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,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
4
5
  import { deepmerge } from '@mui/utils';
5
6
  import { generateUtilityClass } from '@mui/base';
6
7
  import { createTheme as systemCreateTheme } from '@mui/system';
@@ -27,6 +28,10 @@ function createTheme() {
27
28
  shapeInput = options.shape,
28
29
  other = _objectWithoutProperties(options, ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]);
29
30
 
31
+ if (options.vars) {
32
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : _formatMuiErrorMessage(18));
33
+ }
34
+
30
35
  var palette = createPalette(paletteInput);
31
36
  var systemTheme = systemCreateTheme(options);
32
37
  var muiTheme = deepmerge(systemTheme, {
@@ -51,9 +51,13 @@ export default function useScrollTrigger() {
51
51
 
52
52
  handleScroll(); // Re-evaluate trigger when dependencies change
53
53
 
54
- target.addEventListener('scroll', handleScroll);
54
+ target.addEventListener('scroll', handleScroll, {
55
+ passive: true
56
+ });
55
57
  return function () {
56
- target.removeEventListener('scroll', handleScroll);
58
+ target.removeEventListener('scroll', handleScroll, {
59
+ passive: true
60
+ });
57
61
  }; // See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
58
62
  // eslint-disable-next-line react-hooks/exhaustive-deps
59
63
  }, [target, getTrigger, JSON.stringify(other)]);