@mui/material 5.8.1 → 5.8.2

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 (153) 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 +76 -76
  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 +61 -4
  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/chipClasses.d.ts +80 -80
  31. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  32. package/ClickAwayListener/index.d.ts +2 -2
  33. package/Collapse/collapseClasses.d.ts +18 -18
  34. package/Container/containerClasses.d.ts +6 -6
  35. package/Dialog/DialogContext.d.ts +6 -6
  36. package/Dialog/dialogClasses.d.ts +36 -36
  37. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  38. package/DialogContent/dialogContentClasses.d.ts +10 -10
  39. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  40. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  41. package/Divider/dividerClasses.d.ts +34 -34
  42. package/Drawer/drawerClasses.d.ts +30 -30
  43. package/Fab/fabClasses.d.ts +26 -26
  44. package/FilledInput/filledInputClasses.d.ts +40 -40
  45. package/FormControl/formControlClasses.d.ts +14 -14
  46. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  47. package/FormGroup/formGroupClasses.d.ts +12 -12
  48. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  49. package/FormLabel/formLabelClasses.d.ts +22 -22
  50. package/Grid/gridClasses.d.ts +48 -48
  51. package/Grow/Grow.js +4 -3
  52. package/Icon/iconClasses.d.ts +24 -24
  53. package/IconButton/iconButtonClasses.d.ts +26 -26
  54. package/ImageList/imageListClasses.d.ts +16 -16
  55. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  56. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  57. package/Input/inputClasses.d.ts +34 -34
  58. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  59. package/InputBase/inputBaseClasses.d.ts +44 -44
  60. package/InputLabel/InputLabel.d.ts +5 -0
  61. package/InputLabel/InputLabel.js +6 -0
  62. package/InputLabel/inputLabelClasses.d.ts +32 -32
  63. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  64. package/Link/linkClasses.d.ts +18 -18
  65. package/List/listClasses.d.ts +14 -14
  66. package/ListItem/listItemClasses.d.ts +30 -30
  67. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  68. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  69. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  70. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  71. package/ListItemText/listItemTextClasses.d.ts +18 -18
  72. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  73. package/Menu/menuClasses.d.ts +12 -12
  74. package/MenuItem/menuItemClasses.d.ts +20 -20
  75. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  76. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  77. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  78. package/Pagination/paginationClasses.d.ts +14 -14
  79. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  80. package/Paper/paperClasses.d.ts +39 -39
  81. package/Popover/popoverClasses.d.ts +10 -10
  82. package/Popper/Popper.d.ts +29 -29
  83. package/Radio/radioClasses.d.ts +16 -16
  84. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  85. package/RadioGroup/useRadioGroup.d.ts +4 -4
  86. package/Rating/ratingClasses.d.ts +40 -40
  87. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  88. package/Select/selectClasses.d.ts +30 -30
  89. package/Skeleton/skeletonClasses.d.ts +24 -24
  90. package/Snackbar/snackbarClasses.d.ts +20 -20
  91. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  92. package/SpeedDial/speedDialClasses.d.ts +22 -22
  93. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  94. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  95. package/Step/StepContext.d.ts +20 -20
  96. package/Step/stepClasses.d.ts +16 -16
  97. package/StepButton/stepButtonClasses.d.ts +14 -14
  98. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  99. package/StepContent/stepContentClasses.d.ts +12 -12
  100. package/StepIcon/stepIconClasses.d.ts +16 -16
  101. package/StepLabel/stepLabelClasses.d.ts +28 -28
  102. package/Stepper/StepperContext.d.ts +18 -18
  103. package/Stepper/stepperClasses.d.ts +14 -14
  104. package/SvgIcon/svgIconClasses.d.ts +24 -24
  105. package/Switch/switchClasses.d.ts +32 -32
  106. package/Tab/tabClasses.d.ts +26 -26
  107. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  108. package/Table/tableClasses.d.ts +10 -10
  109. package/TableBody/tableBodyClasses.d.ts +8 -8
  110. package/TableCell/tableCellClasses.d.ts +32 -32
  111. package/TableContainer/tableContainerClasses.d.ts +8 -8
  112. package/TableFooter/tableFooterClasses.d.ts +8 -8
  113. package/TableHead/tableHeadClasses.d.ts +8 -8
  114. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  115. package/TableRow/tableRowClasses.d.ts +16 -16
  116. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  117. package/Tabs/tabsClasses.d.ts +32 -32
  118. package/TextField/textFieldClasses.d.ts +8 -8
  119. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  120. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  121. package/Toolbar/toolbarClasses.d.ts +14 -14
  122. package/Tooltip/tooltipClasses.d.ts +30 -30
  123. package/Typography/typographyClasses.d.ts +50 -50
  124. package/className/index.d.ts +1 -1
  125. package/darkScrollbar/index.d.ts +28 -28
  126. package/index.js +1 -1
  127. package/internal/switchBaseClasses.d.ts +12 -12
  128. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  129. package/legacy/Grow/Grow.js +4 -3
  130. package/legacy/InputLabel/InputLabel.js +6 -0
  131. package/legacy/index.js +1 -1
  132. package/locale/index.d.ts +71 -71
  133. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  134. package/modern/Grow/Grow.js +4 -3
  135. package/modern/InputLabel/InputLabel.js +6 -0
  136. package/modern/index.js +1 -1
  137. package/node/BottomNavigation/BottomNavigation.js +0 -0
  138. package/node/Grow/Grow.js +4 -3
  139. package/node/InputLabel/InputLabel.js +6 -0
  140. package/node/index.js +1 -1
  141. package/package.json +4 -4
  142. package/transitions/index.d.ts +1 -1
  143. package/transitions/transition.d.ts +13 -13
  144. package/transitions/utils.d.ts +23 -23
  145. package/umd/material-ui.development.js +56 -37
  146. package/umd/material-ui.production.min.js +2 -2
  147. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  148. package/useTouchRipple/index.d.ts +1 -1
  149. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  150. package/utils/getScrollbarSize.d.ts +2 -2
  151. package/utils/ownerDocument.d.ts +2 -2
  152. package/utils/ownerWindow.d.ts +2 -2
  153. package/utils/setRef.d.ts +2 -2
package/locale/index.d.ts CHANGED
@@ -1,71 +1,71 @@
1
- import { ComponentsPropsList } from '../styles/props';
2
- export interface Localization {
3
- components?: {
4
- MuiAlert?: {
5
- defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
- };
7
- MuiBreadcrumbs?: {
8
- defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
- };
10
- MuiTablePagination?: {
11
- defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
- };
13
- MuiRating?: {
14
- defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
- };
16
- MuiAutocomplete?: {
17
- defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
- };
19
- MuiPagination?: {
20
- defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
- };
22
- };
23
- }
24
- export declare const amET: Localization;
25
- export declare const arEG: Localization;
26
- export declare const arSD: Localization;
27
- export declare const azAZ: Localization;
28
- export declare const bnBD: Localization;
29
- export declare const bgBG: Localization;
30
- export declare const caES: Localization;
31
- export declare const csCZ: Localization;
32
- export declare const daDK: Localization;
33
- export declare const deDE: Localization;
34
- export declare const elGR: Localization;
35
- export declare const enUS: Localization;
36
- export declare const esES: Localization;
37
- export declare const etEE: Localization;
38
- export declare const faIR: Localization;
39
- export declare const fiFI: Localization;
40
- export declare const frFR: Localization;
41
- export declare const heIL: Localization;
42
- export declare const hiIN: Localization;
43
- export declare const hrHR: Localization;
44
- export declare const huHU: Localization;
45
- export declare const hyAM: Localization;
46
- export declare const idID: Localization;
47
- export declare const isIS: Localization;
48
- export declare const itIT: Localization;
49
- export declare const jaJP: Localization;
50
- export declare const khKH: Localization;
51
- export declare const koKR: Localization;
52
- export declare const kzKZ: Localization;
53
- export declare const mkMK: Localization;
54
- export declare const nbNO: Localization;
55
- export declare const nlNL: Localization;
56
- export declare const plPL: Localization;
57
- export declare const ptBR: Localization;
58
- export declare const ptPT: Localization;
59
- export declare const roRO: Localization;
60
- export declare const srRS: Localization;
61
- export declare const ruRU: Localization;
62
- export declare const siLK: Localization;
63
- export declare const skSK: Localization;
64
- export declare const svSE: Localization;
65
- export declare const thTH: Localization;
66
- export declare const trTR: Localization;
67
- export declare const ukUA: Localization;
68
- export declare const viVN: Localization;
69
- export declare const zhCN: Localization;
70
- export declare const zhHK: Localization;
71
- export declare const zhTW: Localization;
1
+ import { ComponentsPropsList } from '../styles/props';
2
+ export interface Localization {
3
+ components?: {
4
+ MuiAlert?: {
5
+ defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
+ };
7
+ MuiBreadcrumbs?: {
8
+ defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
+ };
10
+ MuiTablePagination?: {
11
+ defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
+ };
13
+ MuiRating?: {
14
+ defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
+ };
16
+ MuiAutocomplete?: {
17
+ defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
+ };
19
+ MuiPagination?: {
20
+ defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
+ };
22
+ };
23
+ }
24
+ export declare const amET: Localization;
25
+ export declare const arEG: Localization;
26
+ export declare const arSD: Localization;
27
+ export declare const azAZ: Localization;
28
+ export declare const bnBD: Localization;
29
+ export declare const bgBG: Localization;
30
+ export declare const caES: Localization;
31
+ export declare const csCZ: Localization;
32
+ export declare const daDK: Localization;
33
+ export declare const deDE: Localization;
34
+ export declare const elGR: Localization;
35
+ export declare const enUS: Localization;
36
+ export declare const esES: Localization;
37
+ export declare const etEE: Localization;
38
+ export declare const faIR: Localization;
39
+ export declare const fiFI: Localization;
40
+ export declare const frFR: Localization;
41
+ export declare const heIL: Localization;
42
+ export declare const hiIN: Localization;
43
+ export declare const hrHR: Localization;
44
+ export declare const huHU: Localization;
45
+ export declare const hyAM: Localization;
46
+ export declare const idID: Localization;
47
+ export declare const isIS: Localization;
48
+ export declare const itIT: Localization;
49
+ export declare const jaJP: Localization;
50
+ export declare const khKH: Localization;
51
+ export declare const koKR: Localization;
52
+ export declare const kzKZ: Localization;
53
+ export declare const mkMK: Localization;
54
+ export declare const nbNO: Localization;
55
+ export declare const nlNL: Localization;
56
+ export declare const plPL: Localization;
57
+ export declare const ptBR: Localization;
58
+ export declare const ptPT: Localization;
59
+ export declare const roRO: Localization;
60
+ export declare const srRS: Localization;
61
+ export declare const ruRU: Localization;
62
+ export declare const siLK: Localization;
63
+ export declare const skSK: Localization;
64
+ export declare const svSE: Localization;
65
+ export declare const thTH: Localization;
66
+ export declare const trTR: Localization;
67
+ export declare const ukUA: Localization;
68
+ export declare const viVN: Localization;
69
+ export declare const zhCN: Localization;
70
+ export declare const zhHK: Localization;
71
+ export declare const zhTW: Localization;
File without changes
@@ -24,9 +24,10 @@ const styles = {
24
24
  transform: 'none'
25
25
  }
26
26
  };
27
- /**
28
- * Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
29
- * Remove this workaround once the WebKit bug fix is released.
27
+ /*
28
+ TODO v6: remove
29
+ Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
30
+ Remove this workaround once the WebKit bug fix is released.
30
31
  */
31
32
 
32
33
  const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent);
@@ -209,6 +209,12 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes
209
209
  */
210
210
  shrink: PropTypes.bool,
211
211
 
212
+ /**
213
+ * The size of the component.
214
+ * @default 'normal'
215
+ */
216
+ size: PropTypes.oneOf(['normal', 'small']),
217
+
212
218
  /**
213
219
  * The system prop that allows defining system overrides as well as additional CSS styles.
214
220
  */
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.8.1
1
+ /** @license MUI v5.8.2
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.
File without changes
package/node/Grow/Grow.js CHANGED
@@ -47,9 +47,10 @@ const styles = {
47
47
  transform: 'none'
48
48
  }
49
49
  };
50
- /**
51
- * Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
52
- * Remove this workaround once the WebKit bug fix is released.
50
+ /*
51
+ TODO v6: remove
52
+ Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
53
+ Remove this workaround once the WebKit bug fix is released.
53
54
  */
54
55
 
55
56
  const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent);
@@ -230,6 +230,12 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes
230
230
  */
231
231
  shrink: _propTypes.default.bool,
232
232
 
233
+ /**
234
+ * The size of the component.
235
+ * @default 'normal'
236
+ */
237
+ size: _propTypes.default.oneOf(['normal', 'small']),
238
+
233
239
  /**
234
240
  * The system prop that allows defining system overrides as well as additional CSS styles.
235
241
  */
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.8.1
1
+ /** @license MUI v5.8.2
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.8.1",
3
+ "version": "5.8.2",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -46,13 +46,13 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.17.2",
49
- "@mui/base": "5.0.0-alpha.82",
50
- "@mui/system": "^5.8.1",
49
+ "@mui/base": "5.0.0-alpha.83",
50
+ "@mui/system": "^5.8.2",
51
51
  "@mui/types": "^7.1.3",
52
52
  "@mui/utils": "^5.8.0",
53
53
  "@types/react-transition-group": "^4.4.4",
54
54
  "clsx": "^1.1.1",
55
- "csstype": "^3.0.11",
55
+ "csstype": "^3.1.0",
56
56
  "hoist-non-react-statics": "^3.3.2",
57
57
  "prop-types": "^15.8.1",
58
58
  "react-is": "^17.0.2",
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';
@@ -1,13 +1,13 @@
1
- import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
- import * as React from 'react';
3
- export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
- export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
- export interface EasingProps {
6
- easing: string | {
7
- enter?: string;
8
- exit?: string;
9
- };
10
- }
11
- export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
- export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
- }
1
+ import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
+ import * as React from 'react';
3
+ export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
+ export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
+ }
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.8.1
1
+ /** @license MUI v5.8.2
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.
@@ -8109,7 +8109,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8109
8109
  colorSchemes,
8110
8110
  prefix,
8111
8111
  vars: rootVars,
8112
- getCssVar: createGetCssVar(prefix)
8112
+ getCssVar: createGetCssVar(prefix),
8113
+ getColorSchemeSelector: targetColorScheme => `[${attribute}="${targetColorScheme}"] &`
8113
8114
  });
8114
8115
  const defaultColorSchemeStyleSheet = {};
8115
8116
  const otherColorSchemesStyleSheet = {};
@@ -9591,13 +9592,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9591
9592
  };
9592
9593
  }
9593
9594
 
9594
- function useBadge(props) {
9595
+ function useBadge(parameters) {
9595
9596
  const {
9596
9597
  badgeContent: badgeContentProp,
9597
9598
  invisible: invisibleProp = false,
9598
9599
  max: maxProp = 99,
9599
9600
  showZero = false
9600
- } = props;
9601
+ } = parameters;
9601
9602
  const prevProps = usePreviousProps$1({
9602
9603
  badgeContent: badgeContentProp,
9603
9604
  max: maxProp
@@ -9611,7 +9612,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9611
9612
  const {
9612
9613
  badgeContent,
9613
9614
  max = maxProp
9614
- } = invisible ? prevProps : props;
9615
+ } = invisible ? prevProps : parameters;
9615
9616
  const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
9616
9617
  return {
9617
9618
  badgeContent,
@@ -9638,8 +9639,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9638
9639
  };
9639
9640
  return composeClasses(slots, getBadgeUnstyledUtilityClass, undefined);
9640
9641
  };
9642
+ /**
9643
+ *
9644
+ * Demos:
9645
+ *
9646
+ * - [Badge](https://mui.com/base/react-badge/)
9647
+ *
9648
+ * API:
9649
+ *
9650
+ * - [BadgeUnstyled API](https://mui.com/base/api/badge-unstyled/)
9651
+ */
9652
+
9641
9653
 
9642
9654
  const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
9655
+ var _componentsProps$root, _componentsProps$badg;
9656
+
9643
9657
  const {
9644
9658
  component,
9645
9659
  children,
@@ -9669,15 +9683,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9669
9683
 
9670
9684
  const classes = useUtilityClasses$1O(ownerState);
9671
9685
  const Root = component || components.Root || 'span';
9672
- const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
9686
+ const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root, {
9687
+ ref,
9688
+ className: clsx(classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, className)
9689
+ }), ownerState);
9673
9690
  const Badge = components.Badge || 'span';
9674
- const badgeProps = appendOwnerState(Badge, componentsProps.badge, ownerState);
9691
+ const badgeProps = appendOwnerState(Badge, _extends({}, componentsProps.badge, {
9692
+ className: clsx(classes.badge, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.className)
9693
+ }), ownerState);
9675
9694
  return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
9676
- ref: ref
9677
- }, other, {
9678
- className: clsx(classes.root, rootProps.className, className),
9679
9695
  children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
9680
- className: clsx(classes.badge, badgeProps.className),
9681
9696
  children: displayValue
9682
9697
  }))]
9683
9698
  }));
@@ -9687,7 +9702,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9687
9702
  = {
9688
9703
  // ----------------------------- Warning --------------------------------
9689
9704
  // | These PropTypes are generated from the TypeScript type definitions |
9690
- // | To update them edit the d.ts file and run "yarn proptypes" |
9705
+ // | To update them edit TypeScript types and run "yarn proptypes" |
9691
9706
  // ----------------------------------------------------------------------
9692
9707
 
9693
9708
  /**
@@ -13610,13 +13625,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13610
13625
  return cachedSupportsTouchActionNone;
13611
13626
  }
13612
13627
 
13613
- function useSlider(props) {
13628
+ function useSlider(parameters) {
13614
13629
  const {
13615
- ref,
13616
13630
  'aria-labelledby': ariaLabelledby,
13617
13631
  defaultValue,
13618
- disableSwap = false,
13619
13632
  disabled = false,
13633
+ disableSwap = false,
13634
+ isRtl = false,
13620
13635
  marks: marksProp = false,
13621
13636
  max = 100,
13622
13637
  min = 0,
@@ -13624,12 +13639,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13624
13639
  onChange,
13625
13640
  onChangeCommitted,
13626
13641
  orientation = 'horizontal',
13642
+ ref,
13627
13643
  scale = Identity$1,
13628
13644
  step = 1,
13629
13645
  tabIndex,
13630
- value: valueProp,
13631
- isRtl = false
13632
- } = props;
13646
+ value: valueProp
13647
+ } = parameters;
13633
13648
  const touchId = React__namespace.useRef(); // We can't use the :active browser pseudo-classes.
13634
13649
  // - The active state isn't triggered when clicking on the rail.
13635
13650
  // - The active state isn't transferred when inversing a range slider.
@@ -14052,7 +14067,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14052
14067
  const trackOffset = valueToPercent(range ? values[0] : min, min, max);
14053
14068
  const trackLeap = valueToPercent(values[values.length - 1], min, max) - trackOffset;
14054
14069
 
14055
- const getRootProps = otherHandlers => {
14070
+ const getRootProps = (otherHandlers = {}) => {
14056
14071
  const ownEventHandlers = {
14057
14072
  onMouseDown: createHandleMouseDown(otherHandlers || {})
14058
14073
  };
@@ -14079,7 +14094,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14079
14094
  setOpen(-1);
14080
14095
  };
14081
14096
 
14082
- const getThumbProps = otherHandlers => {
14097
+ const getThumbProps = (otherHandlers = {}) => {
14083
14098
  const ownEventHandlers = {
14084
14099
  onMouseOver: createHandleMouseOver(otherHandlers || {}),
14085
14100
  onMouseLeave: createHandleMouseLeave(otherHandlers || {})
@@ -14090,7 +14105,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14090
14105
  return _extends({}, mergedEventHandlers);
14091
14106
  };
14092
14107
 
14093
- const getHiddenInputProps = otherHandlers => {
14108
+ const getHiddenInputProps = (otherHandlers = {}) => {
14094
14109
  const ownEventHandlers = {
14095
14110
  onChange: createHandleHiddenInputChange(otherHandlers || {}),
14096
14111
  onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
@@ -14107,9 +14122,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14107
14122
  'aria-valuemin': scale(min),
14108
14123
  name,
14109
14124
  type: 'range',
14110
- min: props.min,
14111
- max: props.max,
14112
- step: props.step,
14125
+ min: parameters.min,
14126
+ max: parameters.max,
14127
+ step: parameters.step,
14113
14128
  disabled
14114
14129
  }, mergedEventHandlers, {
14115
14130
  style: _extends({}, visuallyHidden$1, {
@@ -14122,20 +14137,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14122
14137
  };
14123
14138
 
14124
14139
  return {
14140
+ active,
14125
14141
  axis,
14126
14142
  axisProps,
14127
- getRootProps,
14143
+ dragging,
14144
+ focusVisible,
14128
14145
  getHiddenInputProps,
14146
+ getRootProps,
14129
14147
  getThumbProps,
14130
- dragging,
14131
14148
  marks,
14132
- values,
14133
- active,
14134
- focusVisible,
14135
14149
  open,
14136
14150
  range,
14151
+ trackLeap,
14137
14152
  trackOffset,
14138
- trackLeap
14153
+ values
14139
14154
  };
14140
14155
  }
14141
14156
 
@@ -14316,10 +14331,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14316
14331
  children: /*#__PURE__*/jsxRuntime_1(Thumb, _extends({
14317
14332
  "data-index": index
14318
14333
  }, thumbProps, getThumbProps(), {
14319
- className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusVisible === index && classes.focusVisible)
14320
- }, !isHostComponent(Thumb) && {
14321
- ownerState: _extends({}, ownerState, thumbProps.ownerState)
14322
- }, {
14334
+ className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusVisible === index && classes.focusVisible),
14323
14335
  style: _extends({}, style, {
14324
14336
  pointerEvents: disableSwap && active !== index ? 'none' : undefined
14325
14337
  }, thumbProps.style),
@@ -31448,9 +31460,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31448
31460
  transform: 'none'
31449
31461
  }
31450
31462
  };
31451
- /**
31452
- * Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
31453
- * Remove this workaround once the WebKit bug fix is released.
31463
+ /*
31464
+ TODO v6: remove
31465
+ Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
31466
+ Remove this workaround once the WebKit bug fix is released.
31454
31467
  */
31455
31468
 
31456
31469
  const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent);
@@ -33914,6 +33927,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33914
33927
  */
33915
33928
  shrink: PropTypes.bool,
33916
33929
 
33930
+ /**
33931
+ * The size of the component.
33932
+ * @default 'normal'
33933
+ */
33934
+ size: PropTypes.oneOf(['normal', 'small']),
33935
+
33917
33936
  /**
33918
33937
  * The system prop that allows defining system overrides as well as additional CSS styles.
33919
33938
  */