@mui/material 5.14.4 → 5.14.5

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 (173) 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 +58 -58
  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.d.ts +135 -67
  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/buttonClasses.d.ts +100 -100
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +74 -4
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  26. package/CardActions/cardActionsClasses.d.ts +10 -10
  27. package/CardContent/cardContentClasses.d.ts +8 -8
  28. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  29. package/CardMedia/cardMediaClasses.d.ts +12 -12
  30. package/Checkbox/checkboxClasses.d.ts +22 -22
  31. package/Chip/chipClasses.d.ts +96 -96
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +1 -1
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +6 -6
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/filledInputClasses.d.ts +42 -42
  46. package/FormControl/FormControlContext.d.ts +17 -17
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControl/useFormControl.d.ts +2 -2
  49. package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
  50. package/FormGroup/formGroupClasses.d.ts +12 -12
  51. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  52. package/FormLabel/formLabelClasses.d.ts +22 -22
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/iconButtonClasses.d.ts +34 -34
  56. package/ImageList/imageListClasses.d.ts +16 -16
  57. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  59. package/Input/inputClasses.d.ts +38 -38
  60. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  61. package/InputBase/inputBaseClasses.d.ts +46 -46
  62. package/InputLabel/inputLabelClasses.d.ts +32 -32
  63. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  64. package/Link/getTextDecoration.d.ts +15 -15
  65. package/Link/linkClasses.d.ts +18 -18
  66. package/List/listClasses.d.ts +14 -14
  67. package/ListItem/listItemClasses.d.ts +30 -30
  68. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  69. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  70. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  71. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  72. package/ListItemText/listItemTextClasses.d.ts +18 -18
  73. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  74. package/Menu/menuClasses.d.ts +12 -12
  75. package/MenuItem/menuItemClasses.d.ts +20 -20
  76. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  77. package/Modal/index.d.ts +1 -1
  78. package/Modal/index.js +1 -1
  79. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  80. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  81. package/Pagination/paginationClasses.d.ts +14 -14
  82. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  83. package/Paper/paperClasses.d.ts +39 -39
  84. package/Popover/popoverClasses.d.ts +10 -10
  85. package/Popper/Popper.d.ts +65 -65
  86. package/Radio/radioClasses.d.ts +16 -16
  87. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  88. package/RadioGroup/useRadioGroup.d.ts +4 -4
  89. package/Rating/ratingClasses.d.ts +40 -40
  90. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  91. package/Select/selectClasses.d.ts +32 -32
  92. package/Skeleton/skeletonClasses.d.ts +26 -26
  93. package/Slider/SliderValueLabel.d.ts +10 -10
  94. package/Slider/SliderValueLabel.types.d.ts +24 -24
  95. package/Slider/sliderClasses.d.ts +58 -58
  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/Stack/stackClasses.d.ts +6 -6
  102. package/Step/StepContext.d.ts +20 -20
  103. package/Step/stepClasses.d.ts +16 -16
  104. package/StepButton/stepButtonClasses.d.ts +14 -14
  105. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  106. package/StepContent/stepContentClasses.d.ts +12 -12
  107. package/StepIcon/stepIconClasses.d.ts +16 -16
  108. package/StepLabel/stepLabelClasses.d.ts +28 -28
  109. package/Stepper/StepperContext.d.ts +18 -18
  110. package/Stepper/stepperClasses.d.ts +14 -14
  111. package/SvgIcon/svgIconClasses.d.ts +26 -26
  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/TextField.js +11 -2
  126. package/TextField/textFieldClasses.d.ts +8 -8
  127. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  128. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  129. package/Toolbar/toolbarClasses.d.ts +14 -14
  130. package/Tooltip/tooltipClasses.d.ts +30 -30
  131. package/Typography/typographyClasses.d.ts +50 -50
  132. package/Unstable_Grid2/Grid2.d.ts +4 -4
  133. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  134. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  135. package/Unstable_Grid2/index.d.ts +4 -4
  136. package/className/index.d.ts +1 -1
  137. package/darkScrollbar/index.d.ts +28 -28
  138. package/generateUtilityClass/index.d.ts +2 -2
  139. package/generateUtilityClasses/index.d.ts +1 -1
  140. package/index.js +1 -1
  141. package/internal/switchBaseClasses.d.ts +12 -12
  142. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  143. package/legacy/Modal/index.js +1 -1
  144. package/legacy/TextField/TextField.js +11 -2
  145. package/legacy/index.js +1 -1
  146. package/locale/index.d.ts +80 -80
  147. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  148. package/modern/Modal/index.js +1 -1
  149. package/modern/TextField/TextField.js +11 -2
  150. package/modern/index.js +1 -1
  151. package/node/BottomNavigation/BottomNavigation.js +0 -0
  152. package/node/Modal/index.js +7 -7
  153. package/node/TextField/TextField.js +11 -2
  154. package/node/index.js +1 -1
  155. package/package.json +5 -5
  156. package/styles/CssVarsProvider.d.ts +20 -20
  157. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  158. package/styles/getOverlayAlpha.d.ts +2 -2
  159. package/styles/identifier.d.ts +2 -2
  160. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  161. package/transitions/index.d.ts +1 -1
  162. package/transitions/transition.d.ts +13 -13
  163. package/transitions/utils.d.ts +23 -23
  164. package/types/OverridableComponentAugmentation.d.ts +31 -31
  165. package/umd/material-ui.development.js +217 -127
  166. package/umd/material-ui.production.min.js +18 -18
  167. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  168. package/useTouchRipple/index.d.ts +1 -1
  169. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  170. package/utils/getScrollbarSize.d.ts +2 -2
  171. package/utils/ownerDocument.d.ts +2 -2
  172. package/utils/ownerWindow.d.ts +2 -2
  173. package/utils/setRef.d.ts +2 -2
package/locale/index.d.ts CHANGED
@@ -1,80 +1,80 @@
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 beBY: Localization;
31
- export declare const bgBG: Localization;
32
- export declare const caES: Localization;
33
- export declare const csCZ: Localization;
34
- export declare const daDK: Localization;
35
- export declare const deDE: Localization;
36
- export declare const elGR: Localization;
37
- export declare const enUS: Localization;
38
- export declare const esES: Localization;
39
- export declare const etEE: Localization;
40
- export declare const faIR: Localization;
41
- export declare const fiFI: Localization;
42
- export declare const frFR: Localization;
43
- export declare const heIL: Localization;
44
- export declare const hiIN: Localization;
45
- export declare const hrHR: Localization;
46
- export declare const huHU: Localization;
47
- export declare const hyAM: Localization;
48
- export declare const idID: Localization;
49
- export declare const isIS: Localization;
50
- export declare const itIT: Localization;
51
- export declare const jaJP: Localization;
52
- export declare const khKH: Localization;
53
- export declare const koKR: Localization;
54
- export declare const kuCKB: Localization;
55
- export declare const kuLatn: Localization;
56
- export declare const kkKZ: Localization;
57
- export declare const mkMK: Localization;
58
- export declare const myMY: Localization;
59
- export declare const msMS: Localization;
60
- export declare const neNP: Localization;
61
- export declare const nbNO: Localization;
62
- export declare const nlNL: Localization;
63
- export declare const plPL: Localization;
64
- export declare const ptBR: Localization;
65
- export declare const ptPT: Localization;
66
- export declare const roRO: Localization;
67
- export declare const srRS: Localization;
68
- export declare const ruRU: Localization;
69
- export declare const siLK: Localization;
70
- export declare const skSK: Localization;
71
- export declare const svSE: Localization;
72
- export declare const thTH: Localization;
73
- export declare const trTR: Localization;
74
- export declare const tlTL: Localization;
75
- export declare const ukUA: Localization;
76
- export declare const urPK: Localization;
77
- export declare const viVN: Localization;
78
- export declare const zhCN: Localization;
79
- export declare const zhHK: Localization;
80
- 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 beBY: Localization;
31
+ export declare const bgBG: Localization;
32
+ export declare const caES: Localization;
33
+ export declare const csCZ: Localization;
34
+ export declare const daDK: Localization;
35
+ export declare const deDE: Localization;
36
+ export declare const elGR: Localization;
37
+ export declare const enUS: Localization;
38
+ export declare const esES: Localization;
39
+ export declare const etEE: Localization;
40
+ export declare const faIR: Localization;
41
+ export declare const fiFI: Localization;
42
+ export declare const frFR: Localization;
43
+ export declare const heIL: Localization;
44
+ export declare const hiIN: Localization;
45
+ export declare const hrHR: Localization;
46
+ export declare const huHU: Localization;
47
+ export declare const hyAM: Localization;
48
+ export declare const idID: Localization;
49
+ export declare const isIS: Localization;
50
+ export declare const itIT: Localization;
51
+ export declare const jaJP: Localization;
52
+ export declare const khKH: Localization;
53
+ export declare const koKR: Localization;
54
+ export declare const kuCKB: Localization;
55
+ export declare const kuLatn: Localization;
56
+ export declare const kkKZ: Localization;
57
+ export declare const mkMK: Localization;
58
+ export declare const myMY: Localization;
59
+ export declare const msMS: Localization;
60
+ export declare const neNP: Localization;
61
+ export declare const nbNO: Localization;
62
+ export declare const nlNL: Localization;
63
+ export declare const plPL: Localization;
64
+ export declare const ptBR: Localization;
65
+ export declare const ptPT: Localization;
66
+ export declare const roRO: Localization;
67
+ export declare const srRS: Localization;
68
+ export declare const ruRU: Localization;
69
+ export declare const siLK: Localization;
70
+ export declare const skSK: Localization;
71
+ export declare const svSE: Localization;
72
+ export declare const thTH: Localization;
73
+ export declare const trTR: Localization;
74
+ export declare const tlTL: Localization;
75
+ export declare const ukUA: Localization;
76
+ export declare const urPK: Localization;
77
+ export declare const viVN: Localization;
78
+ export declare const zhCN: Localization;
79
+ export declare const zhHK: Localization;
80
+ export declare const zhTW: Localization;
File without changes
@@ -1,5 +1,5 @@
1
1
  'use client';
2
2
 
3
- export { ModalManager } from '@mui/base/Modal';
3
+ export { ModalManager } from '@mui/base/unstable_useModal';
4
4
  export { default } from './Modal';
5
5
  export * from './Modal';
@@ -144,6 +144,14 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
144
144
  }
145
145
  InputMore['aria-describedby'] = undefined;
146
146
  }
147
+ const handleClick = event => {
148
+ if (!disabled && onClick) {
149
+ // The `onClick` is registered both on the root and the input elements.
150
+ // Without stopping the propagation, the event could be triggered twice.
151
+ event.stopPropagation();
152
+ onClick(event);
153
+ }
154
+ };
147
155
  const id = useId(idOverride);
148
156
  const helperTextId = helperText && id ? `${id}-helper-text` : undefined;
149
157
  const inputLabelId = label && id ? `${id}-label` : undefined;
@@ -166,7 +174,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
166
174
  onBlur: onBlur,
167
175
  onChange: onChange,
168
176
  onFocus: onFocus,
169
- onClick: onClick,
177
+ onClick: handleClick,
170
178
  placeholder: placeholder,
171
179
  inputProps: inputProps
172
180
  }, InputMore, InputProps));
@@ -179,7 +187,8 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
179
187
  required: required,
180
188
  color: color,
181
189
  variant: variant,
182
- ownerState: ownerState
190
+ ownerState: ownerState,
191
+ onClick: handleClick
183
192
  }, other, {
184
193
  children: [label != null && label !== '' && /*#__PURE__*/_jsx(InputLabel, _extends({
185
194
  htmlFor: id,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.4
2
+ * @mui/material v5.14.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
File without changes
@@ -10,25 +10,25 @@ var _exportNames = {
10
10
  Object.defineProperty(exports, "ModalManager", {
11
11
  enumerable: true,
12
12
  get: function () {
13
- return _Modal.ModalManager;
13
+ return _unstable_useModal.ModalManager;
14
14
  }
15
15
  });
16
16
  Object.defineProperty(exports, "default", {
17
17
  enumerable: true,
18
18
  get: function () {
19
- return _Modal2.default;
19
+ return _Modal.default;
20
20
  }
21
21
  });
22
- var _Modal = require("@mui/base/Modal");
23
- var _Modal2 = _interopRequireWildcard(require("./Modal"));
24
- Object.keys(_Modal2).forEach(function (key) {
22
+ var _unstable_useModal = require("@mui/base/unstable_useModal");
23
+ var _Modal = _interopRequireWildcard(require("./Modal"));
24
+ Object.keys(_Modal).forEach(function (key) {
25
25
  if (key === "default" || key === "__esModule") return;
26
26
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
27
- if (key in exports && exports[key] === _Modal2[key]) return;
27
+ if (key in exports && exports[key] === _Modal[key]) return;
28
28
  Object.defineProperty(exports, key, {
29
29
  enumerable: true,
30
30
  get: function () {
31
- return _Modal2[key];
31
+ return _Modal[key];
32
32
  }
33
33
  });
34
34
  });
@@ -151,6 +151,14 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
151
151
  }
152
152
  InputMore['aria-describedby'] = undefined;
153
153
  }
154
+ const handleClick = event => {
155
+ if (!disabled && onClick) {
156
+ // The `onClick` is registered both on the root and the input elements.
157
+ // Without stopping the propagation, the event could be triggered twice.
158
+ event.stopPropagation();
159
+ onClick(event);
160
+ }
161
+ };
154
162
  const id = (0, _utils.unstable_useId)(idOverride);
155
163
  const helperTextId = helperText && id ? `${id}-helper-text` : undefined;
156
164
  const inputLabelId = label && id ? `${id}-label` : undefined;
@@ -173,7 +181,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
173
181
  onBlur: onBlur,
174
182
  onChange: onChange,
175
183
  onFocus: onFocus,
176
- onClick: onClick,
184
+ onClick: handleClick,
177
185
  placeholder: placeholder,
178
186
  inputProps: inputProps
179
187
  }, InputMore, InputProps));
@@ -186,7 +194,8 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
186
194
  required: required,
187
195
  color: color,
188
196
  variant: variant,
189
- ownerState: ownerState
197
+ ownerState: ownerState,
198
+ onClick: handleClick
190
199
  }, other, {
191
200
  children: [label != null && label !== '' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputLabel.default, (0, _extends2.default)({
192
201
  htmlFor: id,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.4
2
+ * @mui/material v5.14.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.14.4",
3
+ "version": "5.14.5",
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.22.6",
49
- "@mui/base": "5.0.0-beta.10",
50
- "@mui/core-downloads-tracker": "^5.14.4",
51
- "@mui/system": "^5.14.4",
49
+ "@mui/base": "5.0.0-beta.11",
50
+ "@mui/core-downloads-tracker": "^5.14.5",
51
+ "@mui/system": "^5.14.5",
52
52
  "@mui/types": "^7.2.4",
53
- "@mui/utils": "^5.14.4",
53
+ "@mui/utils": "^5.14.5",
54
54
  "@types/react-transition-group": "^4.4.6",
55
55
  "clsx": "^2.0.0",
56
56
  "csstype": "^3.1.2",
@@ -1,20 +1,20 @@
1
- /// <reference types="react" />
2
- import { SupportedColorScheme } from './experimental_extendTheme';
3
- declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
4
- theme?: {
5
- cssVarPrefix?: string | undefined;
6
- colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
7
- } | {
8
- $$material: {
9
- cssVarPrefix?: string | undefined;
10
- colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
11
- };
12
- } | undefined;
13
- documentNode?: Document | null | undefined;
14
- colorSchemeNode?: Element | null | undefined;
15
- colorSchemeSelector?: string | undefined;
16
- storageWindow?: Window | null | undefined;
17
- disableNestedContext?: boolean | undefined;
18
- disableStyleSheetGeneration?: boolean | undefined;
19
- }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
20
- export { useColorScheme, getInitColorSchemeScript, CssVarsProvider as Experimental_CssVarsProvider, };
1
+ /// <reference types="react" />
2
+ import { SupportedColorScheme } from './experimental_extendTheme';
3
+ declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
4
+ theme?: {
5
+ cssVarPrefix?: string | undefined;
6
+ colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
7
+ } | {
8
+ $$material: {
9
+ cssVarPrefix?: string | undefined;
10
+ colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
11
+ };
12
+ } | undefined;
13
+ documentNode?: Document | null | undefined;
14
+ colorSchemeNode?: Element | null | undefined;
15
+ colorSchemeSelector?: string | undefined;
16
+ storageWindow?: Window | null | undefined;
17
+ disableNestedContext?: boolean | undefined;
18
+ disableStyleSheetGeneration?: boolean | undefined;
19
+ }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
20
+ export { useColorScheme, getInitColorSchemeScript, 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,2 +1,2 @@
1
- declare const _default: "$$material";
2
- export default _default;
1
+ declare const _default: "$$material";
2
+ export default _default;
@@ -1 +1 @@
1
- export default function shouldSkipGeneratingVar(keys: string[]): boolean;
1
+ export default function shouldSkipGeneratingVar(keys: string[]): boolean;
@@ -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 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
+ 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,31 +1,31 @@
1
- import * as React from 'react';
2
- import { DistributiveOmit } from '@mui/types';
3
- declare module '@mui/material/OverridableComponent' {
4
- /**
5
- * A component whose root component can be controlled via a `component` prop.
6
- *
7
- * Adjusts valid props based on the type of `component`.
8
- */
9
- interface OverridableComponent<TypeMap extends OverridableTypeMap> {
10
- <DefaultComponent extends React.ElementType>(props: {
11
- /**
12
- * The component used for the root node.
13
- * Either a string to use a HTML element or a component.
14
- */
15
- component: DefaultComponent;
16
- } & OverridePropsVer2<TypeMap, DefaultComponent>): JSX.Element;
17
- (props: DefaultComponentPropsVer2<TypeMap>): JSX.Element;
18
- }
19
- /**
20
- * Props of the component if `component={Component}` is used.
21
- */
22
- type OverridePropsVer2<TypeMap extends OverridableTypeMap, RootComponent extends React.ElementType> = (BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<RootComponent>, keyof BaseProps<TypeMap>> & {
23
- ref?: React.Ref<Element>;
24
- });
25
- /**
26
- * Props if `component={Component}` is NOT used.
27
- */
28
- type DefaultComponentPropsVer2<TypeMap extends OverridableTypeMap> = BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<TypeMap['defaultComponent']>, keyof BaseProps<TypeMap>> & {
29
- ref?: React.Ref<Element>;
30
- };
31
- }
1
+ import * as React from 'react';
2
+ import { DistributiveOmit } from '@mui/types';
3
+ declare module '@mui/material/OverridableComponent' {
4
+ /**
5
+ * A component whose root component can be controlled via a `component` prop.
6
+ *
7
+ * Adjusts valid props based on the type of `component`.
8
+ */
9
+ interface OverridableComponent<TypeMap extends OverridableTypeMap> {
10
+ <DefaultComponent extends React.ElementType>(props: {
11
+ /**
12
+ * The component used for the root node.
13
+ * Either a string to use a HTML element or a component.
14
+ */
15
+ component: DefaultComponent;
16
+ } & OverridePropsVer2<TypeMap, DefaultComponent>): JSX.Element;
17
+ (props: DefaultComponentPropsVer2<TypeMap>): JSX.Element;
18
+ }
19
+ /**
20
+ * Props of the component if `component={Component}` is used.
21
+ */
22
+ type OverridePropsVer2<TypeMap extends OverridableTypeMap, RootComponent extends React.ElementType> = (BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<RootComponent>, keyof BaseProps<TypeMap>> & {
23
+ ref?: React.Ref<Element>;
24
+ });
25
+ /**
26
+ * Props if `component={Component}` is NOT used.
27
+ */
28
+ type DefaultComponentPropsVer2<TypeMap extends OverridableTypeMap> = BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<TypeMap['defaultComponent']>, keyof BaseProps<TypeMap>> & {
29
+ ref?: React.Ref<Element>;
30
+ };
31
+ }