@mui/material 5.6.2 → 5.6.3
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.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +24 -24
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +4 -3
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.d.ts +9 -28
- package/Box/Box.js +25 -4
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +59 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +22 -22
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/DialogTitle.d.ts +30 -15
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/README.md +80 -31
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/StepContent.d.ts +3 -1
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +8 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +4 -3
- package/legacy/Box/Box.js +25 -4
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +71 -71
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -3
- package/modern/Box/Box.js +25 -4
- package/modern/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/BottomNavigationAction/BottomNavigationAction.js +4 -3
- package/node/Box/Box.js +28 -4
- package/node/index.js +1 -1
- package/package.json +3 -3
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +48 -36
- package/umd/material-ui.production.min.js +3 -3
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.17.2",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/system": "^5.6.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.78",
|
|
50
|
+
"@mui/system": "^5.6.3",
|
|
51
51
|
"@mui/types": "^7.1.3",
|
|
52
52
|
"@mui/utils": "^5.6.1",
|
|
53
53
|
"@types/react-transition-group": "^4.4.4",
|
package/transitions/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/transitions/utils.d.ts
CHANGED
|
@@ -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.6.
|
|
1
|
+
/** @license MUI v5.6.3
|
|
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.
|
|
@@ -5717,7 +5717,13 @@
|
|
|
5717
5717
|
}
|
|
5718
5718
|
}
|
|
5719
5719
|
|
|
5720
|
-
return path.split('.').reduce((acc, item) =>
|
|
5720
|
+
return path.split('.').reduce((acc, item) => {
|
|
5721
|
+
if (acc && acc[item] != null) {
|
|
5722
|
+
return acc[item];
|
|
5723
|
+
}
|
|
5724
|
+
|
|
5725
|
+
return null;
|
|
5726
|
+
}, obj);
|
|
5721
5727
|
}
|
|
5722
5728
|
|
|
5723
5729
|
function getValue$1(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
|
|
@@ -5856,7 +5862,9 @@
|
|
|
5856
5862
|
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
5857
5863
|
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
5858
5864
|
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
5859
|
-
|
|
5865
|
+
var _getPath;
|
|
5866
|
+
|
|
5867
|
+
const themeSpacing = (_getPath = getPath(theme, themeKey)) != null ? _getPath : defaultValue;
|
|
5860
5868
|
|
|
5861
5869
|
if (typeof themeSpacing === 'number') {
|
|
5862
5870
|
return abs => {
|
|
@@ -6843,30 +6851,6 @@
|
|
|
6843
6851
|
theme: theme
|
|
6844
6852
|
}, other));
|
|
6845
6853
|
});
|
|
6846
|
-
Box.propTypes
|
|
6847
|
-
/* remove-proptypes */
|
|
6848
|
-
= {
|
|
6849
|
-
// ----------------------------- Warning --------------------------------
|
|
6850
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
6851
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
6852
|
-
// ----------------------------------------------------------------------
|
|
6853
|
-
|
|
6854
|
-
/**
|
|
6855
|
-
* @ignore
|
|
6856
|
-
*/
|
|
6857
|
-
children: PropTypes.node,
|
|
6858
|
-
|
|
6859
|
-
/**
|
|
6860
|
-
* The component used for the root node.
|
|
6861
|
-
* Either a string to use a HTML element or a component.
|
|
6862
|
-
*/
|
|
6863
|
-
component: PropTypes.elementType,
|
|
6864
|
-
|
|
6865
|
-
/**
|
|
6866
|
-
* @ignore
|
|
6867
|
-
*/
|
|
6868
|
-
sx: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.func])
|
|
6869
|
-
} ;
|
|
6870
6854
|
return Box;
|
|
6871
6855
|
}
|
|
6872
6856
|
|
|
@@ -7477,7 +7461,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7477
7461
|
});
|
|
7478
7462
|
}
|
|
7479
7463
|
|
|
7480
|
-
ThemeProvider.propTypes
|
|
7464
|
+
ThemeProvider.propTypes
|
|
7465
|
+
/* remove-proptypes */
|
|
7466
|
+
= {
|
|
7467
|
+
// ----------------------------- Warning --------------------------------
|
|
7468
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
7469
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
7470
|
+
// ----------------------------------------------------------------------
|
|
7471
|
+
|
|
7481
7472
|
/**
|
|
7482
7473
|
* Your component tree.
|
|
7483
7474
|
*/
|
|
@@ -7486,7 +7477,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7486
7477
|
/**
|
|
7487
7478
|
* A theme object. You can provide a function to extend the outer theme.
|
|
7488
7479
|
*/
|
|
7489
|
-
theme: PropTypes.oneOfType([PropTypes.
|
|
7480
|
+
theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired
|
|
7490
7481
|
} ;
|
|
7491
7482
|
|
|
7492
7483
|
{
|
|
@@ -24104,17 +24095,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24104
24095
|
transition: theme.transitions.create(['color', 'padding-top'], {
|
|
24105
24096
|
duration: theme.transitions.duration.short
|
|
24106
24097
|
}),
|
|
24107
|
-
padding: '
|
|
24098
|
+
padding: '0px 12px',
|
|
24108
24099
|
minWidth: 80,
|
|
24109
24100
|
maxWidth: 168,
|
|
24110
24101
|
color: theme.palette.text.secondary,
|
|
24111
24102
|
flexDirection: 'column',
|
|
24112
24103
|
flex: '1'
|
|
24113
24104
|
}, !ownerState.showLabel && !ownerState.selected && {
|
|
24114
|
-
paddingTop:
|
|
24105
|
+
paddingTop: 14
|
|
24106
|
+
}, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
|
|
24107
|
+
paddingTop: 0
|
|
24115
24108
|
}, {
|
|
24116
24109
|
[`&.${bottomNavigationActionClasses$1.selected}`]: {
|
|
24117
|
-
paddingTop: 6,
|
|
24118
24110
|
color: theme.palette.primary.main
|
|
24119
24111
|
}
|
|
24120
24112
|
}));
|
|
@@ -24248,15 +24240,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24248
24240
|
var BottomNavigationAction$1 = BottomNavigationAction;
|
|
24249
24241
|
|
|
24250
24242
|
const defaultTheme = createTheme$1();
|
|
24251
|
-
/**
|
|
24252
|
-
* @ignore - do not document.
|
|
24253
|
-
*/
|
|
24254
|
-
|
|
24255
24243
|
const Box = createBox({
|
|
24256
24244
|
defaultTheme,
|
|
24257
24245
|
defaultClassName: 'MuiBox-root',
|
|
24258
24246
|
generateClassName: ClassNameGenerator$1.generate
|
|
24259
24247
|
});
|
|
24248
|
+
Box.propTypes
|
|
24249
|
+
/* remove-proptypes */
|
|
24250
|
+
= {
|
|
24251
|
+
// ----------------------------- Warning --------------------------------
|
|
24252
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
24253
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
24254
|
+
// ----------------------------------------------------------------------
|
|
24255
|
+
|
|
24256
|
+
/**
|
|
24257
|
+
* @ignore
|
|
24258
|
+
*/
|
|
24259
|
+
children: PropTypes.node,
|
|
24260
|
+
|
|
24261
|
+
/**
|
|
24262
|
+
* The component used for the root node.
|
|
24263
|
+
* Either a string to use a HTML element or a component.
|
|
24264
|
+
*/
|
|
24265
|
+
component: PropTypes.elementType,
|
|
24266
|
+
|
|
24267
|
+
/**
|
|
24268
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
24269
|
+
*/
|
|
24270
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
24271
|
+
} ;
|
|
24260
24272
|
var Box$1 = Box;
|
|
24261
24273
|
|
|
24262
24274
|
var MoreHorizIcon = createSvgIcon( /*#__PURE__*/jsxRuntime_1("path", {
|