@mui/material 5.5.1 → 5.5.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.
- 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/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- 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 +43 -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/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 -17
- package/Popper/Popper.js +16 -6
- 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/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/Popper/Popper.js +18 -6
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +71 -71
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Popper/Popper.js +16 -6
- package/modern/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Popper/Popper.js +19 -8
- 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 +22 -3
- package/umd/material-ui.production.min.js +17 -17
- 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/legacy/Popper/Popper.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
2
|
import PopperUnstyled from '@mui/base/PopperUnstyled';
|
|
5
|
-
import { HTMLElementType, refType } from '@mui/utils';
|
|
6
3
|
import { useThemeWithoutDefault as useTheme } from '@mui/system';
|
|
7
|
-
import
|
|
4
|
+
import { HTMLElementType, refType } from '@mui/utils';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { styled, useThemeProps } from '../styles';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
var PopperRoot = styled(PopperUnstyled, {
|
|
10
|
+
name: 'MuiPopper',
|
|
11
|
+
slot: 'Root',
|
|
12
|
+
overridesResolver: function overridesResolver(props, styles) {
|
|
13
|
+
return styles.root;
|
|
14
|
+
}
|
|
15
|
+
})({});
|
|
10
16
|
/**
|
|
11
17
|
*
|
|
12
18
|
* Demos:
|
|
@@ -19,13 +25,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
19
25
|
*
|
|
20
26
|
* - [Popper API](https://mui.com/api/popper/)
|
|
21
27
|
*/
|
|
28
|
+
|
|
22
29
|
var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
23
30
|
var theme = useTheme();
|
|
24
31
|
var props = useThemeProps({
|
|
25
32
|
props: inProps,
|
|
26
33
|
name: 'MuiPopper'
|
|
27
34
|
});
|
|
28
|
-
return /*#__PURE__*/_jsx(
|
|
35
|
+
return /*#__PURE__*/_jsx(PopperRoot, _extends({
|
|
29
36
|
direction: theme == null ? void 0 : theme.direction
|
|
30
37
|
}, props, {
|
|
31
38
|
ref: ref
|
|
@@ -129,6 +136,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
129
136
|
*/
|
|
130
137
|
popperRef: refType,
|
|
131
138
|
|
|
139
|
+
/**
|
|
140
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
141
|
+
*/
|
|
142
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
143
|
+
|
|
132
144
|
/**
|
|
133
145
|
* Help supporting a react-transition-group/Transition component.
|
|
134
146
|
* @default false
|
package/legacy/index.js
CHANGED
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
|
package/modern/Popper/Popper.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
2
|
import PopperUnstyled from '@mui/base/PopperUnstyled';
|
|
5
|
-
import { HTMLElementType, refType } from '@mui/utils';
|
|
6
3
|
import { useThemeWithoutDefault as useTheme } from '@mui/system';
|
|
7
|
-
import
|
|
4
|
+
import { HTMLElementType, refType } from '@mui/utils';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { styled, useThemeProps } from '../styles';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
const PopperRoot = styled(PopperUnstyled, {
|
|
10
|
+
name: 'MuiPopper',
|
|
11
|
+
slot: 'Root',
|
|
12
|
+
overridesResolver: (props, styles) => styles.root
|
|
13
|
+
})({});
|
|
10
14
|
/**
|
|
11
15
|
*
|
|
12
16
|
* Demos:
|
|
@@ -19,13 +23,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
19
23
|
*
|
|
20
24
|
* - [Popper API](https://mui.com/api/popper/)
|
|
21
25
|
*/
|
|
26
|
+
|
|
22
27
|
const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
23
28
|
const theme = useTheme();
|
|
24
29
|
const props = useThemeProps({
|
|
25
30
|
props: inProps,
|
|
26
31
|
name: 'MuiPopper'
|
|
27
32
|
});
|
|
28
|
-
return /*#__PURE__*/_jsx(
|
|
33
|
+
return /*#__PURE__*/_jsx(PopperRoot, _extends({
|
|
29
34
|
direction: theme?.direction
|
|
30
35
|
}, props, {
|
|
31
36
|
ref: ref
|
|
@@ -129,6 +134,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
129
134
|
*/
|
|
130
135
|
popperRef: refType,
|
|
131
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
139
|
+
*/
|
|
140
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
141
|
+
|
|
132
142
|
/**
|
|
133
143
|
* Help supporting a react-transition-group/Transition component.
|
|
134
144
|
* @default false
|
package/modern/index.js
CHANGED
|
File without changes
|
package/node/Popper/Popper.js
CHANGED
|
@@ -9,17 +9,17 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
12
|
-
var React = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
12
|
var _PopperUnstyled = _interopRequireDefault(require("@mui/base/PopperUnstyled"));
|
|
17
13
|
|
|
14
|
+
var _system = require("@mui/system");
|
|
15
|
+
|
|
18
16
|
var _utils = require("@mui/utils");
|
|
19
17
|
|
|
20
|
-
var
|
|
18
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
+
|
|
20
|
+
var React = _interopRequireWildcard(require("react"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _styles = require("../styles");
|
|
23
23
|
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
|
|
@@ -27,6 +27,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
27
27
|
|
|
28
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
29
|
|
|
30
|
+
const PopperRoot = (0, _styles.styled)(_PopperUnstyled.default, {
|
|
31
|
+
name: 'MuiPopper',
|
|
32
|
+
slot: 'Root',
|
|
33
|
+
overridesResolver: (props, styles) => styles.root
|
|
34
|
+
})({});
|
|
30
35
|
/**
|
|
31
36
|
*
|
|
32
37
|
* Demos:
|
|
@@ -39,13 +44,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
39
44
|
*
|
|
40
45
|
* - [Popper API](https://mui.com/api/popper/)
|
|
41
46
|
*/
|
|
47
|
+
|
|
42
48
|
const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
43
49
|
const theme = (0, _system.useThemeWithoutDefault)();
|
|
44
|
-
const props = (0,
|
|
50
|
+
const props = (0, _styles.useThemeProps)({
|
|
45
51
|
props: inProps,
|
|
46
52
|
name: 'MuiPopper'
|
|
47
53
|
});
|
|
48
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PopperRoot, (0, _extends2.default)({
|
|
49
55
|
direction: theme == null ? void 0 : theme.direction
|
|
50
56
|
}, props, {
|
|
51
57
|
ref: ref
|
|
@@ -149,6 +155,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
149
155
|
*/
|
|
150
156
|
popperRef: _utils.refType,
|
|
151
157
|
|
|
158
|
+
/**
|
|
159
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
160
|
+
*/
|
|
161
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
162
|
+
|
|
152
163
|
/**
|
|
153
164
|
* Help supporting a react-transition-group/Transition component.
|
|
154
165
|
* @default false
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with 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.5.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.73",
|
|
50
|
+
"@mui/system": "^5.5.2",
|
|
51
51
|
"@mui/types": "^7.1.3",
|
|
52
52
|
"@mui/utils": "^5.4.4",
|
|
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.5.
|
|
1
|
+
/** @license MUI v5.5.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.
|
|
@@ -13182,7 +13182,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13182
13182
|
stopListening();
|
|
13183
13183
|
});
|
|
13184
13184
|
const handleTouchStart = useEventCallback(nativeEvent => {
|
|
13185
|
-
|
|
13185
|
+
if (disabled) {
|
|
13186
|
+
return;
|
|
13187
|
+
} // If touch-action: none; is not supported we need to prevent the scroll manually.
|
|
13188
|
+
|
|
13189
|
+
|
|
13186
13190
|
if (!doesSupportTouchActionNone()) {
|
|
13187
13191
|
nativeEvent.preventDefault();
|
|
13188
13192
|
}
|
|
@@ -13254,6 +13258,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13254
13258
|
|
|
13255
13259
|
(_otherHandlers$onMous = otherHandlers.onMouseDown) == null ? void 0 : _otherHandlers$onMous.call(otherHandlers, event);
|
|
13256
13260
|
|
|
13261
|
+
if (disabled) {
|
|
13262
|
+
return;
|
|
13263
|
+
}
|
|
13264
|
+
|
|
13257
13265
|
if (event.defaultPrevented) {
|
|
13258
13266
|
return;
|
|
13259
13267
|
} // Only handle left clicks
|
|
@@ -19317,6 +19325,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19317
19325
|
} ;
|
|
19318
19326
|
var AppBar$1 = AppBar;
|
|
19319
19327
|
|
|
19328
|
+
const PopperRoot = styled$1(PopperUnstyled$1, {
|
|
19329
|
+
name: 'MuiPopper',
|
|
19330
|
+
slot: 'Root',
|
|
19331
|
+
overridesResolver: (props, styles) => styles.root
|
|
19332
|
+
})({});
|
|
19320
19333
|
/**
|
|
19321
19334
|
*
|
|
19322
19335
|
* Demos:
|
|
@@ -19329,13 +19342,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19329
19342
|
*
|
|
19330
19343
|
* - [Popper API](https://mui.com/api/popper/)
|
|
19331
19344
|
*/
|
|
19345
|
+
|
|
19332
19346
|
const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
|
|
19333
19347
|
const theme = useTheme$2();
|
|
19334
19348
|
const props = useThemeProps({
|
|
19335
19349
|
props: inProps,
|
|
19336
19350
|
name: 'MuiPopper'
|
|
19337
19351
|
});
|
|
19338
|
-
return /*#__PURE__*/jsxRuntime_1(
|
|
19352
|
+
return /*#__PURE__*/jsxRuntime_1(PopperRoot, _extends({
|
|
19339
19353
|
direction: theme == null ? void 0 : theme.direction
|
|
19340
19354
|
}, props, {
|
|
19341
19355
|
ref: ref
|
|
@@ -19439,6 +19453,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19439
19453
|
*/
|
|
19440
19454
|
popperRef: refType$1,
|
|
19441
19455
|
|
|
19456
|
+
/**
|
|
19457
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
19458
|
+
*/
|
|
19459
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
19460
|
+
|
|
19442
19461
|
/**
|
|
19443
19462
|
* Help supporting a react-transition-group/Transition component.
|
|
19444
19463
|
* @default false
|