@mui/material 5.10.15 → 5.10.16

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 (175) 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/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +47 -1
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/Chip.d.ts +10 -0
  31. package/Chip/Chip.js +15 -2
  32. package/Chip/chipClasses.d.ts +96 -96
  33. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  34. package/ClickAwayListener/index.d.ts +2 -2
  35. package/Collapse/collapseClasses.d.ts +18 -18
  36. package/Container/containerClasses.d.ts +6 -6
  37. package/Dialog/DialogContext.d.ts +6 -6
  38. package/Dialog/dialogClasses.d.ts +36 -36
  39. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  40. package/DialogContent/dialogContentClasses.d.ts +10 -10
  41. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  42. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  43. package/Divider/dividerClasses.d.ts +34 -34
  44. package/Drawer/drawerClasses.d.ts +30 -30
  45. package/Fab/fabClasses.d.ts +26 -26
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/FormControlContext.d.ts +17 -0
  48. package/FormControl/FormControlContext.js +1 -1
  49. package/FormControl/formControlClasses.d.ts +14 -14
  50. package/FormControl/index.d.ts +3 -1
  51. package/FormControl/useFormControl.d.ts +2 -25
  52. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  53. package/FormGroup/formGroupClasses.d.ts +12 -12
  54. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  55. package/FormLabel/formLabelClasses.d.ts +22 -22
  56. package/Grid/gridClasses.d.ts +48 -48
  57. package/Icon/iconClasses.d.ts +24 -24
  58. package/IconButton/iconButtonClasses.d.ts +34 -26
  59. package/IconButton/iconButtonClasses.js +1 -1
  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/inputBaseClasses.d.ts +46 -46
  66. package/InputLabel/inputLabelClasses.d.ts +32 -32
  67. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  68. package/Link/getTextDecoration.d.ts +15 -15
  69. package/Link/linkClasses.d.ts +18 -18
  70. package/List/listClasses.d.ts +14 -14
  71. package/ListItem/listItemClasses.d.ts +30 -30
  72. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  73. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  74. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  75. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  76. package/ListItemText/listItemTextClasses.d.ts +18 -18
  77. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  78. package/Menu/menuClasses.d.ts +12 -12
  79. package/MenuItem/menuItemClasses.d.ts +20 -20
  80. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  81. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  82. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  83. package/OverridableComponentAugmentation.d.ts +31 -31
  84. package/Pagination/paginationClasses.d.ts +14 -14
  85. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  86. package/Paper/paperClasses.d.ts +39 -39
  87. package/Popover/popoverClasses.d.ts +10 -10
  88. package/Popper/Popper.d.ts +37 -37
  89. package/Radio/radioClasses.d.ts +16 -16
  90. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  91. package/RadioGroup/useRadioGroup.d.ts +4 -4
  92. package/Rating/ratingClasses.d.ts +40 -40
  93. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  94. package/Select/selectClasses.d.ts +30 -30
  95. package/Skeleton/skeletonClasses.d.ts +26 -26
  96. package/Snackbar/snackbarClasses.d.ts +20 -20
  97. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  98. package/SpeedDial/speedDialClasses.d.ts +22 -22
  99. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  100. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  101. package/Step/StepContext.d.ts +20 -20
  102. package/Step/stepClasses.d.ts +16 -16
  103. package/StepButton/stepButtonClasses.d.ts +14 -14
  104. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  105. package/StepContent/stepContentClasses.d.ts +12 -12
  106. package/StepIcon/stepIconClasses.d.ts +16 -16
  107. package/StepLabel/stepLabelClasses.d.ts +28 -28
  108. package/Stepper/StepperContext.d.ts +18 -18
  109. package/Stepper/stepperClasses.d.ts +14 -14
  110. package/SvgIcon/svgIconClasses.d.ts +26 -26
  111. package/SwipeableDrawer/SwipeableDrawer.js +3 -1
  112. package/Switch/switchClasses.d.ts +32 -32
  113. package/Tab/tabClasses.d.ts +26 -26
  114. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  115. package/Table/tableClasses.d.ts +10 -10
  116. package/TableBody/tableBodyClasses.d.ts +8 -8
  117. package/TableCell/tableCellClasses.d.ts +32 -32
  118. package/TableContainer/tableContainerClasses.d.ts +8 -8
  119. package/TableFooter/tableFooterClasses.d.ts +8 -8
  120. package/TableHead/tableHeadClasses.d.ts +8 -8
  121. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  122. package/TableRow/tableRowClasses.d.ts +16 -16
  123. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  124. package/Tabs/tabsClasses.d.ts +32 -32
  125. package/TextField/textFieldClasses.d.ts +8 -8
  126. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  127. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  128. package/Toolbar/toolbarClasses.d.ts +14 -14
  129. package/Tooltip/tooltipClasses.d.ts +30 -30
  130. package/Typography/typographyClasses.d.ts +50 -50
  131. package/Unstable_Grid2/Grid2.d.ts +4 -4
  132. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  133. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  134. package/Unstable_Grid2/index.d.ts +4 -4
  135. package/className/index.d.ts +1 -1
  136. package/darkScrollbar/index.d.ts +28 -28
  137. package/esm/BottomNavigation/BottomNavigation.js +0 -0
  138. package/esm/Chip/Chip.js +15 -2
  139. package/esm/FormControl/FormControlContext.js +1 -2
  140. package/esm/IconButton/iconButtonClasses.js +1 -1
  141. package/esm/SwipeableDrawer/SwipeableDrawer.js +3 -1
  142. package/generateUtilityClass/index.d.ts +2 -2
  143. package/generateUtilityClasses/index.d.ts +1 -1
  144. package/index.js +1 -1
  145. package/internal/switchBaseClasses.d.ts +12 -12
  146. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  147. package/legacy/Chip/Chip.js +15 -1
  148. package/legacy/FormControl/FormControlContext.js +1 -2
  149. package/legacy/IconButton/iconButtonClasses.js +1 -1
  150. package/legacy/SwipeableDrawer/SwipeableDrawer.js +3 -1
  151. package/legacy/index.js +1 -1
  152. package/locale/index.d.ts +73 -73
  153. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  154. package/modern/Chip/Chip.js +15 -2
  155. package/modern/FormControl/FormControlContext.js +1 -2
  156. package/modern/IconButton/iconButtonClasses.js +1 -1
  157. package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -1
  158. package/modern/index.js +1 -1
  159. package/package.json +6 -6
  160. package/styles/CssVarsProvider.d.ts +14 -14
  161. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  162. package/styles/getOverlayAlpha.d.ts +2 -2
  163. package/styles/responsiveFontSizes.d.ts +2 -2
  164. package/transitions/index.d.ts +1 -1
  165. package/transitions/transition.d.ts +13 -13
  166. package/transitions/utils.d.ts +23 -23
  167. package/umd/material-ui.development.js +32 -24
  168. package/umd/material-ui.production.min.js +20 -20
  169. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  170. package/useTouchRipple/index.d.ts +1 -1
  171. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  172. package/utils/getScrollbarSize.d.ts +2 -2
  173. package/utils/ownerDocument.d.ts +2 -2
  174. package/utils/ownerWindow.d.ts +2 -2
  175. package/utils/setRef.d.ts +2 -2
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.15
1
+ /** @license MUI v5.10.16
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,73 +1,73 @@
1
- import { ComponentsPropsList } from '../styles/props';
2
- export interface Localization {
3
- components?: {
4
- MuiAlert?: {
5
- defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
- };
7
- MuiBreadcrumbs?: {
8
- defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
- };
10
- MuiTablePagination?: {
11
- defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
- };
13
- MuiRating?: {
14
- defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
- };
16
- MuiAutocomplete?: {
17
- defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
- };
19
- MuiPagination?: {
20
- defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
- };
22
- };
23
- }
24
- export declare const amET: Localization;
25
- export declare const arEG: Localization;
26
- export declare const arSA: Localization;
27
- export declare const arSD: Localization;
28
- export declare const azAZ: Localization;
29
- export declare const bnBD: Localization;
30
- export declare const bgBG: Localization;
31
- export declare const caES: Localization;
32
- export declare const csCZ: Localization;
33
- export declare const daDK: Localization;
34
- export declare const deDE: Localization;
35
- export declare const elGR: Localization;
36
- export declare const enUS: Localization;
37
- export declare const esES: Localization;
38
- export declare const etEE: Localization;
39
- export declare const faIR: Localization;
40
- export declare const fiFI: Localization;
41
- export declare const frFR: Localization;
42
- export declare const heIL: Localization;
43
- export declare const hiIN: Localization;
44
- export declare const hrHR: Localization;
45
- export declare const huHU: Localization;
46
- export declare const hyAM: Localization;
47
- export declare const idID: Localization;
48
- export declare const isIS: Localization;
49
- export declare const itIT: Localization;
50
- export declare const jaJP: Localization;
51
- export declare const khKH: Localization;
52
- export declare const koKR: Localization;
53
- export declare const kzKZ: Localization;
54
- export declare const mkMK: Localization;
55
- export declare const nbNO: Localization;
56
- export declare const nlNL: Localization;
57
- export declare const plPL: Localization;
58
- export declare const ptBR: Localization;
59
- export declare const ptPT: Localization;
60
- export declare const roRO: Localization;
61
- export declare const srRS: Localization;
62
- export declare const ruRU: Localization;
63
- export declare const siLK: Localization;
64
- export declare const skSK: Localization;
65
- export declare const svSE: Localization;
66
- export declare const thTH: Localization;
67
- export declare const trTR: Localization;
68
- export declare const ukUA: Localization;
69
- export declare const urPK: Localization;
70
- export declare const viVN: Localization;
71
- export declare const zhCN: Localization;
72
- export declare const zhHK: Localization;
73
- export declare const zhTW: Localization;
1
+ import { ComponentsPropsList } from '../styles/props';
2
+ export interface Localization {
3
+ components?: {
4
+ MuiAlert?: {
5
+ defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
+ };
7
+ MuiBreadcrumbs?: {
8
+ defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
+ };
10
+ MuiTablePagination?: {
11
+ defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
+ };
13
+ MuiRating?: {
14
+ defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
+ };
16
+ MuiAutocomplete?: {
17
+ defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
+ };
19
+ MuiPagination?: {
20
+ defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
+ };
22
+ };
23
+ }
24
+ export declare const amET: Localization;
25
+ export declare const arEG: Localization;
26
+ export declare const arSA: Localization;
27
+ export declare const arSD: Localization;
28
+ export declare const azAZ: Localization;
29
+ export declare const bnBD: Localization;
30
+ export declare const bgBG: Localization;
31
+ export declare const caES: Localization;
32
+ export declare const csCZ: Localization;
33
+ export declare const daDK: Localization;
34
+ export declare const deDE: Localization;
35
+ export declare const elGR: Localization;
36
+ export declare const enUS: Localization;
37
+ export declare const esES: Localization;
38
+ export declare const etEE: Localization;
39
+ export declare const faIR: Localization;
40
+ export declare const fiFI: Localization;
41
+ export declare const frFR: Localization;
42
+ export declare const heIL: Localization;
43
+ export declare const hiIN: Localization;
44
+ export declare const hrHR: Localization;
45
+ export declare const huHU: Localization;
46
+ export declare const hyAM: Localization;
47
+ export declare const idID: Localization;
48
+ export declare const isIS: Localization;
49
+ export declare const itIT: Localization;
50
+ export declare const jaJP: Localization;
51
+ export declare const khKH: Localization;
52
+ export declare const koKR: Localization;
53
+ export declare const kzKZ: Localization;
54
+ export declare const mkMK: Localization;
55
+ export declare const nbNO: Localization;
56
+ export declare const nlNL: Localization;
57
+ export declare const plPL: Localization;
58
+ export declare const ptBR: Localization;
59
+ export declare const ptPT: Localization;
60
+ export declare const roRO: Localization;
61
+ export declare const srRS: Localization;
62
+ export declare const ruRU: Localization;
63
+ export declare const siLK: Localization;
64
+ export declare const skSK: Localization;
65
+ export declare const svSE: Localization;
66
+ export declare const thTH: Localization;
67
+ export declare const trTR: Localization;
68
+ export declare const ukUA: Localization;
69
+ export declare const urPK: Localization;
70
+ export declare const viVN: Localization;
71
+ export declare const zhCN: Localization;
72
+ export declare const zhHK: Localization;
73
+ export declare const zhTW: Localization;
File without changes
@@ -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 = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
3
+ const _excluded = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -292,7 +292,9 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
292
292
  onKeyDown,
293
293
  onKeyUp,
294
294
  size = 'medium',
295
- variant = 'filled'
295
+ variant = 'filled',
296
+ tabIndex,
297
+ skipFocusWhenDisabled = false
296
298
  } = props,
297
299
  other = _objectWithoutPropertiesLoose(props, _excluded);
298
300
  const chipRef = React.useRef(null);
@@ -382,6 +384,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
382
384
  onKeyDown: handleKeyDown,
383
385
  onKeyUp: handleKeyUp,
384
386
  ref: handleRef,
387
+ tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
385
388
  ownerState: ownerState
386
389
  }, moreProps, other, {
387
390
  children: [avatar || icon, /*#__PURE__*/_jsx(ChipLabel, {
@@ -473,10 +476,20 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
473
476
  * @default 'medium'
474
477
  */
475
478
  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
479
+ /**
480
+ * If `true`, allows the disabled chip to escape focus.
481
+ * If `false`, allows the disabled chip to receive focus.
482
+ * @default false
483
+ */
484
+ skipFocusWhenDisabled: PropTypes.bool,
476
485
  /**
477
486
  * The system prop that allows defining system overrides as well as additional CSS styles.
478
487
  */
479
488
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
489
+ /**
490
+ * @ignore
491
+ */
492
+ tabIndex: PropTypes.number,
480
493
  /**
481
494
  * The variant to use.
482
495
  * @default 'filled'
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
-
3
2
  /**
4
3
  * @ignore - internal component.
5
4
  */
6
- const FormControlContext = /*#__PURE__*/React.createContext();
5
+ const FormControlContext = /*#__PURE__*/React.createContext(undefined);
7
6
  if (process.env.NODE_ENV !== 'production') {
8
7
  FormControlContext.displayName = 'FormControlContext';
9
8
  }
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
3
3
  export function getIconButtonUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiIconButton', slot);
5
5
  }
6
- const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
6
+ const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
7
7
  export default iconButtonClasses;
@@ -9,6 +9,7 @@ import { elementTypeAcceptingRef } from '@mui/utils';
9
9
  import { useThemeProps } from '@mui/system';
10
10
  import { NoSsr } from '@mui/base';
11
11
  import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
12
+ import useForkRef from '../utils/useForkRef';
12
13
  import ownerDocument from '../utils/ownerDocument';
13
14
  import ownerWindow from '../utils/ownerWindow';
14
15
  import useEventCallback from '../utils/useEventCallback';
@@ -154,6 +155,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
154
155
  const swipeAreaRef = React.useRef();
155
156
  const backdropRef = React.useRef();
156
157
  const paperRef = React.useRef();
158
+ const handleRef = useForkRef(PaperProps.ref, paperRef);
157
159
  const touchDetected = React.useRef(false);
158
160
 
159
161
  // Ref for transition duration based on / to match swipe speed
@@ -448,7 +450,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
448
450
  style: _extends({
449
451
  pointerEvents: variant === 'temporary' && !open ? 'none' : ''
450
452
  }, PaperProps.style),
451
- ref: paperRef
453
+ ref: handleRef
452
454
  }),
453
455
  anchor: anchor,
454
456
  transitionDuration: calculatedDurationRef.current || transitionDuration,
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.15
1
+ /** @license MUI v5.10.16
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.15",
3
+ "version": "5.10.16",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -46,11 +46,11 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.20.1",
49
- "@mui/base": "5.0.0-alpha.107",
50
- "@mui/core-downloads-tracker": "^5.10.15",
51
- "@mui/system": "^5.10.15",
52
- "@mui/types": "^7.2.1",
53
- "@mui/utils": "^5.10.15",
49
+ "@mui/base": "5.0.0-alpha.108",
50
+ "@mui/core-downloads-tracker": "^5.10.16",
51
+ "@mui/system": "^5.10.16",
52
+ "@mui/types": "^7.2.2",
53
+ "@mui/utils": "^5.10.16",
54
54
  "@types/react-transition-group": "^4.4.5",
55
55
  "clsx": "^1.2.1",
56
56
  "csstype": "^3.1.1",
@@ -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,5 +1,5 @@
1
- /**
2
- * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
3
- */
4
- declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
5
- export default excludeVariablesFromRoot;
1
+ /**
2
+ * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
3
+ */
4
+ declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
5
+ export default excludeVariablesFromRoot;
@@ -1,2 +1,2 @@
1
- declare const getOverlayAlpha: (elevation: number) => string;
2
- export default getOverlayAlpha;
1
+ declare const getOverlayAlpha: (elevation: number) => string;
2
+ export default getOverlayAlpha;
@@ -1,12 +1,12 @@
1
1
  import { Breakpoint } from '@mui/system';
2
+ import { Typography } from './createTypography';
2
3
  import { Theme } from './createTheme';
3
- import { Variant } from './createTypography';
4
4
 
5
5
  export interface ResponsiveFontSizesOptions {
6
6
  breakpoints?: Breakpoint[];
7
7
  disableAlign?: boolean;
8
8
  factor?: number;
9
- variants?: Variant[];
9
+ variants?: Array<keyof Typography>;
10
10
  }
11
11
 
12
12
  export default function responsiveFontSizes(
@@ -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 type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export 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.15
1
+ /** @license MUI v5.10.16
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.
@@ -7626,10 +7626,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7626
7626
  * }} options.
7627
7627
  * `prefix`: The prefix of the generated CSS variables. This function does not change the value.
7628
7628
  *
7629
- * @returns {{ css: Object, vars: Object, parsedTheme: typeof theme }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme), and `parsedTheme` is the cloned version of theme.
7629
+ * @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).
7630
7630
  *
7631
7631
  * @example
7632
- * const { css, vars, parsedTheme } = parser({
7632
+ * const { css, vars } = parser({
7633
7633
  * fontSize: 12,
7634
7634
  * lineHeight: 1.2,
7635
7635
  * palette: { primary: { 500: 'var(--color)' } }
@@ -7637,7 +7637,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7637
7637
  *
7638
7638
  * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
7639
7639
  * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
7640
- * console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--color)' } } }
7641
7640
  */
7642
7641
  function cssVarsParser(theme, options) {
7643
7642
  const {
@@ -7646,7 +7645,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7646
7645
  } = options || {};
7647
7646
  const css = {};
7648
7647
  const vars = {};
7649
- const parsedTheme = {};
7650
7648
  walkObjectDeep(theme, (keys, value, arrayKeys) => {
7651
7649
  if (typeof value === 'string' || typeof value === 'number') {
7652
7650
  if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
@@ -7658,14 +7656,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7658
7656
  assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
7659
7657
  }
7660
7658
  }
7661
- assignNestedKeys(parsedTheme, keys, value, arrayKeys);
7662
7659
  }, keys => keys[0] === 'vars' // skip 'vars/*' paths
7663
7660
  );
7664
7661
 
7665
7662
  return {
7666
7663
  css,
7667
- vars,
7668
- parsedTheme
7664
+ vars
7669
7665
  };
7670
7666
  }
7671
7667
 
@@ -8023,15 +8019,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8023
8019
  // 2. Create CSS variables and store them in objects (to be generated in stylesheets in the final step)
8024
8020
  const {
8025
8021
  css: rootCss,
8026
- vars: rootVars,
8027
- parsedTheme
8022
+ vars: rootVars
8028
8023
  } = cssVarsParser(restThemeProp, {
8029
8024
  prefix: cssVarPrefix,
8030
8025
  shouldSkipGeneratingVar
8031
8026
  });
8032
8027
 
8033
8028
  // 3. Start composing the theme object
8034
- const theme = _extends({}, parsedTheme, {
8029
+ const theme = _extends({}, restThemeProp, {
8035
8030
  components,
8036
8031
  colorSchemes,
8037
8032
  cssVarPrefix,
@@ -8047,8 +8042,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8047
8042
  Object.entries(colorSchemes).forEach(([key, scheme]) => {
8048
8043
  const {
8049
8044
  css,
8050
- vars,
8051
- parsedTheme: parsedScheme
8045
+ vars
8052
8046
  } = cssVarsParser(scheme, {
8053
8047
  prefix: cssVarPrefix,
8054
8048
  shouldSkipGeneratingVar
@@ -8056,12 +8050,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8056
8050
  theme.vars = deepmerge(theme.vars, vars);
8057
8051
  if (key === calculatedColorScheme) {
8058
8052
  // 4.1 Merge the selected color scheme to the theme
8059
- Object.keys(parsedScheme).forEach(schemeKey => {
8060
- if (parsedScheme[schemeKey] && typeof parsedScheme[schemeKey] === 'object') {
8053
+ Object.keys(scheme).forEach(schemeKey => {
8054
+ if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {
8061
8055
  // shallow merge the 1st level structure of the theme.
8062
- theme[schemeKey] = _extends({}, theme[schemeKey], parsedScheme[schemeKey]);
8056
+ theme[schemeKey] = _extends({}, theme[schemeKey], scheme[schemeKey]);
8063
8057
  } else {
8064
- theme[schemeKey] = parsedScheme[schemeKey];
8058
+ theme[schemeKey] = scheme[schemeKey];
8065
8059
  }
8066
8060
  });
8067
8061
  if (theme.palette) {
@@ -9956,12 +9950,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
9956
9950
  /**
9957
9951
  * Appends the ownerState object to the props, merging with the existing one if necessary.
9958
9952
  *
9959
- * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` is not applied.
9953
+ * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.
9960
9954
  * @param otherProps Props of the element.
9961
9955
  * @param ownerState
9962
9956
  */
9963
9957
  function appendOwnerState(elementType, otherProps, ownerState) {
9964
- if (isHostComponent(elementType)) {
9958
+ if (elementType === undefined || isHostComponent(elementType)) {
9965
9959
  return otherProps;
9966
9960
  }
9967
9961
  return _extends({}, otherProps, {
@@ -19213,7 +19207,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19213
19207
  function getIconButtonUtilityClass(slot) {
19214
19208
  return generateUtilityClass('MuiIconButton', slot);
19215
19209
  }
19216
- const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
19210
+ const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
19217
19211
  var iconButtonClasses$1 = iconButtonClasses;
19218
19212
 
19219
19213
  const _excluded$1W = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
@@ -20473,7 +20467,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20473
20467
  const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', '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']);
20474
20468
  var chipClasses$1 = chipClasses;
20475
20469
 
20476
- const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
20470
+ const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
20477
20471
  const useUtilityClasses$1x = ownerState => {
20478
20472
  const {
20479
20473
  classes,
@@ -20750,7 +20744,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20750
20744
  onKeyDown,
20751
20745
  onKeyUp,
20752
20746
  size = 'medium',
20753
- variant = 'filled'
20747
+ variant = 'filled',
20748
+ tabIndex,
20749
+ skipFocusWhenDisabled = false
20754
20750
  } = props,
20755
20751
  other = _objectWithoutPropertiesLoose(props, _excluded$1P);
20756
20752
  const chipRef = React__namespace.useRef(null);
@@ -20840,6 +20836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20840
20836
  onKeyDown: handleKeyDown,
20841
20837
  onKeyUp: handleKeyUp,
20842
20838
  ref: handleRef,
20839
+ tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
20843
20840
  ownerState: ownerState
20844
20841
  }, moreProps, other, {
20845
20842
  children: [avatar || icon, /*#__PURE__*/jsxRuntime_1(ChipLabel, {
@@ -20931,10 +20928,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20931
20928
  * @default 'medium'
20932
20929
  */
20933
20930
  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
20931
+ /**
20932
+ * If `true`, allows the disabled chip to escape focus.
20933
+ * If `false`, allows the disabled chip to receive focus.
20934
+ * @default false
20935
+ */
20936
+ skipFocusWhenDisabled: PropTypes.bool,
20934
20937
  /**
20935
20938
  * The system prop that allows defining system overrides as well as additional CSS styles.
20936
20939
  */
20937
20940
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
20941
+ /**
20942
+ * @ignore
20943
+ */
20944
+ tabIndex: PropTypes.number,
20938
20945
  /**
20939
20946
  * The variant to use.
20940
20947
  * @default 'filled'
@@ -20962,7 +20969,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20962
20969
  /**
20963
20970
  * @ignore - internal component.
20964
20971
  */
20965
- const FormControlContext = /*#__PURE__*/React__namespace.createContext();
20972
+ const FormControlContext = /*#__PURE__*/React__namespace.createContext(undefined);
20966
20973
  {
20967
20974
  FormControlContext.displayName = 'FormControlContext';
20968
20975
  }
@@ -44344,6 +44351,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44344
44351
  const swipeAreaRef = React__namespace.useRef();
44345
44352
  const backdropRef = React__namespace.useRef();
44346
44353
  const paperRef = React__namespace.useRef();
44354
+ const handleRef = useForkRef(PaperProps.ref, paperRef);
44347
44355
  const touchDetected = React__namespace.useRef(false);
44348
44356
 
44349
44357
  // Ref for transition duration based on / to match swipe speed
@@ -44638,7 +44646,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44638
44646
  style: _extends({
44639
44647
  pointerEvents: variant === 'temporary' && !open ? 'none' : ''
44640
44648
  }, PaperProps.style),
44641
- ref: paperRef
44649
+ ref: handleRef
44642
44650
  }),
44643
44651
  anchor: anchor,
44644
44652
  transitionDuration: calculatedDurationRef.current || transitionDuration,