@mui/material 5.7.0 → 5.8.0

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 (176) 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/Autocomplete.d.ts +23 -1
  9. package/Autocomplete/Autocomplete.js +3 -2
  10. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/Backdrop/backdropClasses.d.ts +10 -10
  14. package/Badge/Badge.d.ts +1 -34
  15. package/Badge/badgeClasses.d.ts +56 -24
  16. package/BottomNavigation/BottomNavigation.js +0 -0
  17. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  18. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  19. package/Box/Box.js +1 -1
  20. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  21. package/Button/buttonClasses.d.ts +76 -76
  22. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  23. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  24. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  25. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  26. package/CHANGELOG.md +72 -0
  27. package/Card/cardClasses.d.ts +8 -8
  28. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  29. package/CardActions/cardActionsClasses.d.ts +10 -10
  30. package/CardContent/cardContentClasses.d.ts +8 -8
  31. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  32. package/CardMedia/cardMediaClasses.d.ts +12 -12
  33. package/Checkbox/checkboxClasses.d.ts +18 -18
  34. package/Chip/chipClasses.d.ts +80 -80
  35. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  36. package/ClickAwayListener/index.d.ts +2 -2
  37. package/Collapse/collapseClasses.d.ts +18 -18
  38. package/Container/Container.js +17 -106
  39. package/Container/containerClasses.d.ts +6 -22
  40. package/Dialog/DialogContext.d.ts +6 -6
  41. package/Dialog/dialogClasses.d.ts +36 -36
  42. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/filledInputClasses.d.ts +40 -40
  50. package/FormControl/formControlClasses.d.ts +14 -14
  51. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  52. package/FormGroup/formGroupClasses.d.ts +12 -12
  53. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/gridClasses.d.ts +48 -48
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +26 -26
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  61. package/Input/inputClasses.d.ts +34 -34
  62. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  63. package/InputBase/inputBaseClasses.d.ts +44 -44
  64. package/InputLabel/inputLabelClasses.d.ts +32 -32
  65. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  66. package/Link/linkClasses.d.ts +18 -18
  67. package/List/listClasses.d.ts +14 -14
  68. package/ListItem/listItemClasses.d.ts +30 -30
  69. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  70. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  71. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  72. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  73. package/ListItemText/listItemTextClasses.d.ts +18 -18
  74. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  75. package/Menu/menuClasses.d.ts +12 -12
  76. package/MenuItem/menuItemClasses.d.ts +20 -20
  77. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  78. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  79. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  80. package/Pagination/paginationClasses.d.ts +14 -14
  81. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  82. package/Paper/paperClasses.d.ts +39 -39
  83. package/Popover/popoverClasses.d.ts +10 -10
  84. package/Popper/Popper.d.ts +29 -29
  85. package/README.md +2 -1
  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 +30 -30
  92. package/Skeleton/skeletonClasses.d.ts +24 -24
  93. package/Snackbar/snackbarClasses.d.ts +20 -20
  94. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  95. package/SpeedDial/speedDialClasses.d.ts +22 -22
  96. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  97. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  98. package/Step/StepContext.d.ts +20 -20
  99. package/Step/stepClasses.d.ts +16 -16
  100. package/StepButton/stepButtonClasses.d.ts +14 -14
  101. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  102. package/StepContent/stepContentClasses.d.ts +12 -12
  103. package/StepIcon/stepIconClasses.d.ts +16 -16
  104. package/StepLabel/stepLabelClasses.d.ts +28 -28
  105. package/Stepper/StepperContext.d.ts +18 -18
  106. package/Stepper/stepperClasses.d.ts +14 -14
  107. package/SvgIcon/svgIconClasses.d.ts +24 -24
  108. package/Switch/switchClasses.d.ts +32 -32
  109. package/Tab/tabClasses.d.ts +26 -26
  110. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  111. package/Table/tableClasses.d.ts +10 -10
  112. package/TableBody/tableBodyClasses.d.ts +8 -8
  113. package/TableCell/tableCellClasses.d.ts +32 -32
  114. package/TableContainer/tableContainerClasses.d.ts +8 -8
  115. package/TableFooter/tableFooterClasses.d.ts +8 -8
  116. package/TableHead/tableHeadClasses.d.ts +8 -8
  117. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  118. package/TableRow/tableRowClasses.d.ts +16 -16
  119. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  120. package/Tabs/tabsClasses.d.ts +32 -32
  121. package/TextField/textFieldClasses.d.ts +8 -8
  122. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  123. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  124. package/Toolbar/toolbarClasses.d.ts +14 -14
  125. package/Tooltip/tooltipClasses.d.ts +30 -30
  126. package/Typography/typographyClasses.d.ts +50 -50
  127. package/className/index.d.ts +1 -1
  128. package/className/index.js +1 -1
  129. package/darkScrollbar/index.d.ts +28 -28
  130. package/index.js +1 -1
  131. package/internal/switchBaseClasses.d.ts +12 -12
  132. package/legacy/Autocomplete/Autocomplete.js +3 -2
  133. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  134. package/legacy/Box/Box.js +1 -1
  135. package/legacy/Container/Container.js +18 -103
  136. package/legacy/className/index.js +1 -1
  137. package/legacy/index.js +1 -1
  138. package/legacy/locale/index.js +22 -22
  139. package/legacy/styles/createMixins.js +1 -1
  140. package/legacy/styles/createTheme.js +1 -1
  141. package/locale/index.d.ts +71 -71
  142. package/locale/index.js +22 -22
  143. package/modern/Autocomplete/Autocomplete.js +3 -2
  144. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  145. package/modern/Box/Box.js +1 -1
  146. package/modern/Container/Container.js +17 -106
  147. package/modern/className/index.js +1 -1
  148. package/modern/index.js +1 -1
  149. package/modern/locale/index.js +22 -22
  150. package/modern/styles/createMixins.js +1 -1
  151. package/modern/styles/createTheme.js +1 -1
  152. package/node/Autocomplete/Autocomplete.js +4 -2
  153. package/node/BottomNavigation/BottomNavigation.js +0 -0
  154. package/node/Box/Box.js +2 -2
  155. package/node/Container/Container.js +17 -113
  156. package/node/className/index.js +2 -2
  157. package/node/index.js +1 -1
  158. package/node/locale/index.js +22 -22
  159. package/node/styles/createMixins.js +1 -1
  160. package/node/styles/createTheme.js +1 -1
  161. package/package.json +4 -5
  162. package/styles/createMixins.d.ts +2 -6
  163. package/styles/createMixins.js +1 -1
  164. package/styles/createTheme.js +1 -1
  165. package/transitions/index.d.ts +1 -1
  166. package/transitions/transition.d.ts +13 -13
  167. package/transitions/utils.d.ts +23 -23
  168. package/umd/material-ui.development.js +413 -351
  169. package/umd/material-ui.production.min.js +20 -20
  170. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  171. package/useTouchRipple/index.d.ts +1 -1
  172. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  173. package/utils/getScrollbarSize.d.ts +2 -2
  174. package/utils/ownerDocument.d.ts +2 -2
  175. package/utils/ownerWindow.d.ts +2 -2
  176. package/utils/setRef.d.ts +2 -2
@@ -1,30 +1,30 @@
1
- export interface TooltipClasses {
2
- /** Styles applied to the Popper component. */
3
- popper: string;
4
- /** Styles applied to the Popper component unless `disableInteractive={true}`. */
5
- popperInteractive: string;
6
- /** Styles applied to the Popper component if `arrow={true}`. */
7
- popperArrow: string;
8
- /** Styles applied to the Popper component unless the tooltip is open. */
9
- popperClose: string;
10
- /** Styles applied to the tooltip (label wrapper) element. */
11
- tooltip: string;
12
- /** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
13
- tooltipArrow: string;
14
- /** Styles applied to the arrow element. */
15
- arrow: string;
16
- /** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
17
- touch: string;
18
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
19
- tooltipPlacementLeft: string;
20
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
21
- tooltipPlacementRight: string;
22
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
23
- tooltipPlacementTop: string;
24
- /** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
25
- tooltipPlacementBottom: string;
26
- }
27
- export declare type TooltipClassKey = keyof TooltipClasses;
28
- export declare function getTooltipUtilityClass(slot: string): string;
29
- declare const tooltipClasses: TooltipClasses;
30
- export default tooltipClasses;
1
+ export interface TooltipClasses {
2
+ /** Styles applied to the Popper component. */
3
+ popper: string;
4
+ /** Styles applied to the Popper component unless `disableInteractive={true}`. */
5
+ popperInteractive: string;
6
+ /** Styles applied to the Popper component if `arrow={true}`. */
7
+ popperArrow: string;
8
+ /** Styles applied to the Popper component unless the tooltip is open. */
9
+ popperClose: string;
10
+ /** Styles applied to the tooltip (label wrapper) element. */
11
+ tooltip: string;
12
+ /** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
13
+ tooltipArrow: string;
14
+ /** Styles applied to the arrow element. */
15
+ arrow: string;
16
+ /** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
17
+ touch: string;
18
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
19
+ tooltipPlacementLeft: string;
20
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
21
+ tooltipPlacementRight: string;
22
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
23
+ tooltipPlacementTop: string;
24
+ /** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
25
+ tooltipPlacementBottom: string;
26
+ }
27
+ export declare type TooltipClassKey = keyof TooltipClasses;
28
+ export declare function getTooltipUtilityClass(slot: string): string;
29
+ declare const tooltipClasses: TooltipClasses;
30
+ export default tooltipClasses;
@@ -1,50 +1,50 @@
1
- export interface TypographyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="body2"`. */
5
- body2: string;
6
- /** Styles applied to the root element if `variant="body1"`. */
7
- body1: string;
8
- /** Styles applied to the root element if `variant="caption"`. */
9
- caption: string;
10
- /** Styles applied to the root element if `variant="button"`. */
11
- button: string;
12
- /** Styles applied to the root element if `variant="h1"`. */
13
- h1: string;
14
- /** Styles applied to the root element if `variant="h2"`. */
15
- h2: string;
16
- /** Styles applied to the root element if `variant="h3"`. */
17
- h3: string;
18
- /** Styles applied to the root element if `variant="h4"`. */
19
- h4: string;
20
- /** Styles applied to the root element if `variant="h5"`. */
21
- h5: string;
22
- /** Styles applied to the root element if `variant="h6"`. */
23
- h6: string;
24
- /** Styles applied to the root element if `variant="subtitle1"`. */
25
- subtitle1: string;
26
- /** Styles applied to the root element if `variant="subtitle2"`. */
27
- subtitle2: string;
28
- /** Styles applied to the root element if `variant="overline"`. */
29
- overline: string;
30
- /** Styles applied to the root element if `variant="inherit"`. */
31
- inherit: string;
32
- /** Styles applied to the root element if `align="left"`. */
33
- alignLeft: string;
34
- /** Styles applied to the root element if `align="center"`. */
35
- alignCenter: string;
36
- /** Styles applied to the root element if `align="right"`. */
37
- alignRight: string;
38
- /** Styles applied to the root element if `align="justify"`. */
39
- alignJustify: string;
40
- /** Styles applied to the root element if `nowrap={true}`. */
41
- noWrap: string;
42
- /** Styles applied to the root element if `gutterBottom={true}`. */
43
- gutterBottom: string;
44
- /** Styles applied to the root element if `paragraph={true}`. */
45
- paragraph: string;
46
- }
47
- export declare type TypographyClassKey = keyof TypographyClasses;
48
- export declare function getTypographyUtilityClass(slot: string): string;
49
- declare const typographyClasses: TypographyClasses;
50
- export default typographyClasses;
1
+ export interface TypographyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="body2"`. */
5
+ body2: string;
6
+ /** Styles applied to the root element if `variant="body1"`. */
7
+ body1: string;
8
+ /** Styles applied to the root element if `variant="caption"`. */
9
+ caption: string;
10
+ /** Styles applied to the root element if `variant="button"`. */
11
+ button: string;
12
+ /** Styles applied to the root element if `variant="h1"`. */
13
+ h1: string;
14
+ /** Styles applied to the root element if `variant="h2"`. */
15
+ h2: string;
16
+ /** Styles applied to the root element if `variant="h3"`. */
17
+ h3: string;
18
+ /** Styles applied to the root element if `variant="h4"`. */
19
+ h4: string;
20
+ /** Styles applied to the root element if `variant="h5"`. */
21
+ h5: string;
22
+ /** Styles applied to the root element if `variant="h6"`. */
23
+ h6: string;
24
+ /** Styles applied to the root element if `variant="subtitle1"`. */
25
+ subtitle1: string;
26
+ /** Styles applied to the root element if `variant="subtitle2"`. */
27
+ subtitle2: string;
28
+ /** Styles applied to the root element if `variant="overline"`. */
29
+ overline: string;
30
+ /** Styles applied to the root element if `variant="inherit"`. */
31
+ inherit: string;
32
+ /** Styles applied to the root element if `align="left"`. */
33
+ alignLeft: string;
34
+ /** Styles applied to the root element if `align="center"`. */
35
+ alignCenter: string;
36
+ /** Styles applied to the root element if `align="right"`. */
37
+ alignRight: string;
38
+ /** Styles applied to the root element if `align="justify"`. */
39
+ alignJustify: string;
40
+ /** Styles applied to the root element if `nowrap={true}`. */
41
+ noWrap: string;
42
+ /** Styles applied to the root element if `gutterBottom={true}`. */
43
+ gutterBottom: string;
44
+ /** Styles applied to the root element if `paragraph={true}`. */
45
+ paragraph: string;
46
+ }
47
+ export declare type TypographyClassKey = keyof TypographyClasses;
48
+ export declare function getTypographyUtilityClass(slot: string): string;
49
+ declare const typographyClasses: TypographyClasses;
50
+ export default typographyClasses;
@@ -1 +1 @@
1
- export { unstable_ClassNameGenerator } from '@mui/private-classnames';
1
+ export { unstable_ClassNameGenerator } from '@mui/utils';
@@ -1,2 +1,2 @@
1
1
  // eslint-disable-next-line import/prefer-default-export
2
- export { unstable_ClassNameGenerator } from '@mui/private-classnames';
2
+ export { unstable_ClassNameGenerator } from '@mui/utils';
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.7.0
1
+ /** @license MUI v5.8.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
@@ -458,7 +458,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
458
458
  groupedOptions = _useAutocomplete.groupedOptions;
459
459
 
460
460
  var hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
461
- var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
461
+ var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
462
462
 
463
463
  var ownerState = _extends({}, props, {
464
464
  disablePortal: disablePortal,
@@ -483,7 +483,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
483
483
  };
484
484
 
485
485
  if (renderTags) {
486
- startAdornment = renderTags(value, getCustomizedTagProps);
486
+ startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
487
487
  } else {
488
488
  startAdornment = value.map(function (option, index) {
489
489
  return /*#__PURE__*/_jsx(Chip, _extends({
@@ -1068,6 +1068,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1068
1068
  *
1069
1069
  * @param {T[]} value The `value` provided to the component.
1070
1070
  * @param {function} getTagProps A tag props getter.
1071
+ * @param {object} ownerState The state of the Autocomplete component.
1071
1072
  * @returns {ReactNode}
1072
1073
  */
1073
1074
  renderTags: PropTypes.func,
File without changes
package/legacy/Box/Box.js CHANGED
@@ -1,5 +1,5 @@
1
- import PropTypes from 'prop-types';
2
1
  import { createBox } from '@mui/system';
2
+ import PropTypes from 'prop-types';
3
3
  import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
4
4
  import { createTheme } from '../styles';
5
5
  var defaultTheme = createTheme();
@@ -1,104 +1,24 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import * as React from 'react';
1
+ /* eslint-disable material-ui/mui-name-matches-component-name */
5
2
  import PropTypes from 'prop-types';
6
- import clsx from 'clsx';
7
- import { unstable_composeClasses as composeClasses } from '@mui/base';
8
- import useThemeProps from '../styles/useThemeProps';
9
- import styled from '../styles/styled';
10
- import { getContainerUtilityClass } from './containerClasses';
3
+ import { createContainer } from '@mui/system';
11
4
  import capitalize from '../utils/capitalize';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
-
14
- var useUtilityClasses = function useUtilityClasses(ownerState) {
15
- var classes = ownerState.classes,
16
- fixed = ownerState.fixed,
17
- disableGutters = ownerState.disableGutters,
18
- maxWidth = ownerState.maxWidth;
19
- var slots = {
20
- root: ['root', maxWidth && "maxWidth".concat(capitalize(String(maxWidth))), fixed && 'fixed', disableGutters && 'disableGutters']
21
- };
22
- return composeClasses(slots, getContainerUtilityClass, classes);
23
- };
24
-
25
- var ContainerRoot = styled('div', {
26
- name: 'MuiContainer',
27
- slot: 'Root',
28
- overridesResolver: function overridesResolver(props, styles) {
29
- var ownerState = props.ownerState;
30
- return [styles.root, styles["maxWidth".concat(capitalize(String(ownerState.maxWidth)))], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
31
- }
32
- })(function (_ref) {
33
- var theme = _ref.theme,
34
- ownerState = _ref.ownerState;
35
- return _extends({
36
- width: '100%',
37
- marginLeft: 'auto',
38
- boxSizing: 'border-box',
39
- marginRight: 'auto',
40
- display: 'block'
41
- }, !ownerState.disableGutters && _defineProperty({
42
- paddingLeft: theme.spacing(2),
43
- paddingRight: theme.spacing(2)
44
- }, theme.breakpoints.up('sm'), {
45
- paddingLeft: theme.spacing(3),
46
- paddingRight: theme.spacing(3)
47
- }));
48
- }, function (_ref3) {
49
- var theme = _ref3.theme,
50
- ownerState = _ref3.ownerState;
51
- return ownerState.fixed && Object.keys(theme.breakpoints.values).reduce(function (acc, breakpoint) {
52
- var value = theme.breakpoints.values[breakpoint];
53
-
54
- if (value !== 0) {
55
- acc[theme.breakpoints.up(breakpoint)] = {
56
- maxWidth: "".concat(value).concat(theme.breakpoints.unit)
57
- };
5
+ import styled from '../styles/styled';
6
+ import _useThemeProps from '../styles/useThemeProps';
7
+ var Container = createContainer({
8
+ createStyledComponent: styled('div', {
9
+ name: 'MuiContainer',
10
+ slot: 'Root',
11
+ overridesResolver: function overridesResolver(props, styles) {
12
+ var ownerState = props.ownerState;
13
+ return [styles.root, styles["maxWidth".concat(capitalize(String(ownerState.maxWidth)))], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
58
14
  }
59
-
60
- return acc;
61
- }, {});
62
- }, function (_ref4) {
63
- var theme = _ref4.theme,
64
- ownerState = _ref4.ownerState;
65
- return _extends({}, ownerState.maxWidth === 'xs' && _defineProperty({}, theme.breakpoints.up('xs'), {
66
- maxWidth: Math.max(theme.breakpoints.values.xs, 444)
67
- }), ownerState.maxWidth && ownerState.maxWidth !== 'xs' && _defineProperty({}, theme.breakpoints.up(ownerState.maxWidth), {
68
- maxWidth: "".concat(theme.breakpoints.values[ownerState.maxWidth]).concat(theme.breakpoints.unit)
69
- }));
70
- });
71
- var Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {
72
- var props = useThemeProps({
73
- props: inProps,
74
- name: 'MuiContainer'
75
- });
76
-
77
- var className = props.className,
78
- _props$component = props.component,
79
- component = _props$component === void 0 ? 'div' : _props$component,
80
- _props$disableGutters = props.disableGutters,
81
- disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters,
82
- _props$fixed = props.fixed,
83
- fixed = _props$fixed === void 0 ? false : _props$fixed,
84
- _props$maxWidth = props.maxWidth,
85
- maxWidth = _props$maxWidth === void 0 ? 'lg' : _props$maxWidth,
86
- other = _objectWithoutProperties(props, ["className", "component", "disableGutters", "fixed", "maxWidth"]);
87
-
88
- var ownerState = _extends({}, props, {
89
- component: component,
90
- disableGutters: disableGutters,
91
- fixed: fixed,
92
- maxWidth: maxWidth
93
- });
94
-
95
- var classes = useUtilityClasses(ownerState);
96
- return /*#__PURE__*/_jsx(ContainerRoot, _extends({
97
- as: component,
98
- ownerState: ownerState,
99
- className: clsx(classes.root, className),
100
- ref: ref
101
- }, other));
15
+ }),
16
+ useThemeProps: function useThemeProps(inProps) {
17
+ return _useThemeProps({
18
+ props: inProps,
19
+ name: 'MuiContainer'
20
+ });
21
+ }
102
22
  });
103
23
  process.env.NODE_ENV !== "production" ? Container.propTypes
104
24
  /* remove-proptypes */
@@ -118,11 +38,6 @@ process.env.NODE_ENV !== "production" ? Container.propTypes
118
38
  */
119
39
  classes: PropTypes.object,
120
40
 
121
- /**
122
- * @ignore
123
- */
124
- className: PropTypes.string,
125
-
126
41
  /**
127
42
  * The component used for the root node.
128
43
  * Either a string to use a HTML element or a component.
@@ -1,2 +1,2 @@
1
1
  // eslint-disable-next-line import/prefer-default-export
2
- export { unstable_ClassNameGenerator } from '@mui/private-classnames';
2
+ export { unstable_ClassNameGenerator } from '@mui/utils';
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.7.0
1
+ /** @license MUI v5.8.0
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.
@@ -85,26 +85,26 @@ export var arEG = {
85
85
  components: {
86
86
  MuiBreadcrumbs: {
87
87
  defaultProps: {
88
- expandText: 'ظهر العنوان'
88
+ expandText: 'إظهار المسار'
89
89
  }
90
90
  },
91
91
  MuiTablePagination: {
92
92
  defaultProps: {
93
93
  getItemAriaLabel: function getItemAriaLabel(type) {
94
94
  if (type === 'first') {
95
- return 'امش للصفحة الأولى';
95
+ return 'انتقل إلى الصفحة الأولى';
96
96
  }
97
97
 
98
98
  if (type === 'last') {
99
- return 'امش للصفحة الأخيرة';
99
+ return 'انتقل إلى الصفحة الأخيرة';
100
100
  }
101
101
 
102
102
  if (type === 'next') {
103
- return 'امش للصفحة التالية';
103
+ return 'انتقل إلى الصفحة التالية';
104
104
  } // if (type === 'previous') {
105
105
 
106
106
 
107
- return 'امش للصفحة السابقة';
107
+ return 'انتقل إلى الصفحة السابقة';
108
108
  },
109
109
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
110
110
  labelDisplayedRows: function labelDisplayedRows(_ref2) {
@@ -127,7 +127,7 @@ export var arEG = {
127
127
  defaultProps: {
128
128
  clearText: 'مسح',
129
129
  closeText: 'إغلاق',
130
- loadingText: 'يتم التحميل…',
130
+ loadingText: 'جار التحميل...',
131
131
  noOptionsText: 'لا يوجد خيارات',
132
132
  openText: 'فتح'
133
133
  }
@@ -142,23 +142,23 @@ export var arEG = {
142
142
  'aria-label': 'التنقل عبر الصفحات',
143
143
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
144
144
  if (type === 'page') {
145
- return "".concat(selected ? '' : 'امش إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
145
+ return "".concat(selected ? '' : 'انتقل إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
146
146
  }
147
147
 
148
148
  if (type === 'first') {
149
- return 'امش للصفحة الأولى';
149
+ return 'انتقل إلى الصفحة الأولى';
150
150
  }
151
151
 
152
152
  if (type === 'last') {
153
- return 'امش للصفحة الأخيرة';
153
+ return 'انتقل إلى الصفحة الأخيرة';
154
154
  }
155
155
 
156
156
  if (type === 'next') {
157
- return 'امش للصفحة التالية';
157
+ return 'انتقل إلى الصفحة التالية';
158
158
  } // if (type === 'previous') {
159
159
 
160
160
 
161
- return 'امش للصفحة السابقة';
161
+ return 'انتقل إلى الصفحة السابقة';
162
162
  }
163
163
  }
164
164
  }
@@ -168,26 +168,26 @@ export var arSD = {
168
168
  components: {
169
169
  MuiBreadcrumbs: {
170
170
  defaultProps: {
171
- expandText: 'إظهر العنوان'
171
+ expandText: 'إظهار المسار'
172
172
  }
173
173
  },
174
174
  MuiTablePagination: {
175
175
  defaultProps: {
176
176
  getItemAriaLabel: function getItemAriaLabel(type) {
177
177
  if (type === 'first') {
178
- return 'إذهب الى الصفحة الأولى';
178
+ return 'انتقل إلى الصفحة الأولى';
179
179
  }
180
180
 
181
181
  if (type === 'last') {
182
- return 'إذهب الي الصفحة الأخيرة';
182
+ return 'انتقل إلى الصفحة الأخيرة';
183
183
  }
184
184
 
185
185
  if (type === 'next') {
186
- return 'إذهب الى الصفحة التالية';
186
+ return 'انتقل إلى الصفحة التالية';
187
187
  } // if (type === 'previous') {
188
188
 
189
189
 
190
- return 'إذهب الى الصفحة السابقة';
190
+ return 'انتقل إلى الصفحة السابقة';
191
191
  },
192
192
  labelRowsPerPage: 'عدد الصفوف في الصفحة:',
193
193
  labelDisplayedRows: function labelDisplayedRows(_ref3) {
@@ -210,7 +210,7 @@ export var arSD = {
210
210
  defaultProps: {
211
211
  clearText: 'مسح',
212
212
  closeText: 'إغلاق',
213
- loadingText: 'يتم التحميل…',
213
+ loadingText: 'جار التحميل...',
214
214
  noOptionsText: 'لا يوجد خيارات',
215
215
  openText: 'فتح'
216
216
  }
@@ -225,23 +225,23 @@ export var arSD = {
225
225
  'aria-label': 'التنقل عبر الصفحات',
226
226
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
227
227
  if (type === 'page') {
228
- return "".concat(selected ? '' : 'إذهب إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
228
+ return "".concat(selected ? '' : 'انتقل إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
229
229
  }
230
230
 
231
231
  if (type === 'first') {
232
- return 'إذهب الى الصفحة الأولى';
232
+ return 'انتقل إلى الصفحة الأولى';
233
233
  }
234
234
 
235
235
  if (type === 'last') {
236
- return 'إذهب الي الصفحة الأخيرة';
236
+ return 'انتقل الي الصفحة الأخيرة';
237
237
  }
238
238
 
239
239
  if (type === 'next') {
240
- return 'إذهب الى الصفحة التالية';
240
+ return 'انتقل إلى الصفحة التالية';
241
241
  } // if (type === 'previous') {
242
242
 
243
243
 
244
- return 'إذهب الى الصفحة السابقة';
244
+ return 'انتقل إلى الصفحة السابقة';
245
245
  }
246
246
  }
247
247
  }
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- export default function createMixins(breakpoints, spacing, mixins) {
3
+ export default function createMixins(breakpoints, mixins) {
4
4
  var _toolbar;
5
5
 
6
6
  return _extends({
@@ -30,7 +30,7 @@ function createTheme() {
30
30
  var palette = createPalette(paletteInput);
31
31
  var systemTheme = systemCreateTheme(options);
32
32
  var muiTheme = deepmerge(systemTheme, {
33
- mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
33
+ mixins: createMixins(systemTheme.breakpoints, mixinsInput),
34
34
  palette: palette,
35
35
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
36
36
  shadows: shadows.slice(),