@mui/material 5.6.2 → 5.7.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.
- package/Accordion/Accordion.js +6 -6
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/AccordionSummary.js +3 -3
- 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/Autocomplete.js +15 -14
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.js +2 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.js +2 -2
- package/Badge/badgeClasses.d.ts +24 -24
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +6 -5
- 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/ButtonGroup.js +10 -10
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +225 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +2 -2
- 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/CircularProgress.js +1 -1
- 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/CssBaseline/CssBaseline.js +4 -4
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.js +2 -2
- 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/Divider.js +4 -4
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.js +6 -6
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +69 -65
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +3 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.js +5 -5
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/Icon.js +8 -8
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +5 -5
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +9 -4
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +16 -8
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +3 -8
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +8 -8
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +8 -8
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/ListSubheader.js +3 -3
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +8 -8
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/MobileStepper.js +5 -5
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.js +27 -27
- 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 +79 -32
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +2 -2
- 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/Snackbar.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.js +1 -1
- 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/StepIcon.js +5 -5
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +4 -4
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -0
- package/Stepper/StepperContext.js +10 -2
- package/Stepper/index.d.ts +3 -0
- package/Stepper/index.js +3 -1
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +4 -4
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.js +7 -7
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.js +1 -1
- 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/TablePagination.js +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.js +3 -3
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.d.ts +1 -1
- package/Tabs/Tabs.js +2 -2
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +17 -10
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +5 -5
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +1 -8
- package/className/index.js +1 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Accordion/Accordion.js +6 -6
- package/legacy/AccordionSummary/AccordionSummary.js +3 -3
- package/legacy/Autocomplete/Autocomplete.js +15 -14
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/Badge/Badge.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/legacy/Box/Box.js +25 -4
- package/legacy/ButtonGroup/ButtonGroup.js +10 -10
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/CssBaseline/CssBaseline.js +4 -4
- package/legacy/DialogContent/DialogContent.js +2 -2
- package/legacy/Divider/Divider.js +4 -4
- package/legacy/Drawer/Drawer.js +6 -6
- package/legacy/Fab/Fab.js +17 -17
- package/legacy/FilledInput/FilledInput.js +2 -2
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -3
- package/legacy/FormLabel/FormLabel.js +5 -5
- package/legacy/Icon/Icon.js +8 -8
- package/legacy/IconButton/IconButton.js +5 -5
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +8 -3
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +16 -8
- package/legacy/Link/Link.js +3 -9
- package/legacy/ListItem/ListItem.js +8 -8
- package/legacy/ListItemButton/ListItemButton.js +8 -8
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +3 -3
- package/legacy/MenuItem/MenuItem.js +8 -8
- package/legacy/MobileStepper/MobileStepper.js +5 -5
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +27 -27
- package/legacy/Rating/Rating.js +2 -2
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/StepIcon/StepIcon.js +5 -5
- package/legacy/StepLabel/StepLabel.js +4 -4
- package/legacy/Stepper/StepperContext.js +10 -2
- package/legacy/Stepper/index.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +4 -4
- package/legacy/Tab/Tab.js +7 -7
- package/legacy/Table/Table.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +3 -3
- package/legacy/TableSortLabel/TableSortLabel.js +4 -4
- package/legacy/Tabs/Tabs.js +2 -2
- package/legacy/ToggleButton/ToggleButton.js +16 -9
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Tooltip/Tooltip.js +5 -5
- package/legacy/className/index.js +1 -8
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +1 -1
- package/legacy/styles/createPalette.js +2 -1
- package/legacy/styles/experimental_extendTheme.js +52 -43
- package/locale/index.d.ts +71 -71
- package/locale/index.js +1 -1
- package/modern/Accordion/Accordion.js +6 -6
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Autocomplete/Autocomplete.js +15 -14
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/Badge/Badge.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/modern/Box/Box.js +25 -4
- package/modern/ButtonGroup/ButtonGroup.js +10 -10
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/CssBaseline/CssBaseline.js +4 -4
- package/modern/DialogContent/DialogContent.js +2 -2
- package/modern/Divider/Divider.js +4 -4
- package/modern/Drawer/Drawer.js +6 -6
- package/modern/Fab/Fab.js +16 -16
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +3 -3
- package/modern/FormLabel/FormLabel.js +5 -5
- package/modern/Icon/Icon.js +8 -8
- package/modern/IconButton/IconButton.js +5 -5
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +9 -4
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +16 -8
- package/modern/Link/Link.js +3 -8
- package/modern/ListItem/ListItem.js +8 -8
- package/modern/ListItemButton/ListItemButton.js +8 -8
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/MenuItem/MenuItem.js +8 -8
- package/modern/MobileStepper/MobileStepper.js +5 -5
- package/modern/Modal/Modal.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +27 -27
- package/modern/Rating/Rating.js +2 -2
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/StepIcon/StepIcon.js +5 -5
- package/modern/StepLabel/StepLabel.js +4 -4
- package/modern/Stepper/StepperContext.js +10 -2
- package/modern/Stepper/index.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +3 -3
- package/modern/Tab/Tab.js +7 -7
- package/modern/Table/Table.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/Tabs/Tabs.js +2 -2
- package/modern/ToggleButton/ToggleButton.js +17 -10
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Tooltip/Tooltip.js +5 -5
- package/modern/className/index.js +1 -8
- package/modern/index.js +1 -1
- package/modern/locale/index.js +1 -1
- package/modern/styles/createPalette.js +2 -1
- package/modern/styles/experimental_extendTheme.js +56 -45
- package/node/Accordion/Accordion.js +6 -6
- package/node/AccordionSummary/AccordionSummary.js +3 -3
- package/node/Autocomplete/Autocomplete.js +15 -14
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/node/Box/Box.js +28 -4
- package/node/ButtonGroup/ButtonGroup.js +10 -10
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CssBaseline/CssBaseline.js +4 -4
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/Divider/Divider.js +4 -4
- package/node/Drawer/Drawer.js +6 -6
- package/node/Fab/Fab.js +69 -65
- package/node/FilledInput/FilledInput.js +3 -1
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormHelperText/FormHelperText.js +3 -3
- package/node/FormLabel/FormLabel.js +5 -5
- package/node/Icon/Icon.js +8 -8
- package/node/IconButton/IconButton.js +5 -5
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +9 -4
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +14 -8
- package/node/Link/Link.js +3 -9
- package/node/ListItem/ListItem.js +8 -8
- package/node/ListItemButton/ListItemButton.js +8 -8
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListSubheader/ListSubheader.js +3 -3
- package/node/MenuItem/MenuItem.js +8 -8
- package/node/MobileStepper/MobileStepper.js +5 -5
- package/node/Modal/Modal.js +1 -1
- package/node/PaginationItem/PaginationItem.js +27 -27
- package/node/Rating/Rating.js +2 -2
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/StepIcon/StepIcon.js +5 -5
- package/node/StepLabel/StepLabel.js +4 -4
- package/node/Stepper/StepperContext.js +11 -1
- package/node/Stepper/index.js +22 -1
- package/node/SvgIcon/SvgIcon.js +4 -4
- package/node/Tab/Tab.js +7 -7
- package/node/Table/Table.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +3 -3
- package/node/TableSortLabel/TableSortLabel.js +4 -4
- package/node/Tabs/Tabs.js +2 -2
- package/node/ToggleButton/ToggleButton.js +17 -10
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Tooltip/Tooltip.js +5 -5
- package/node/className/index.js +2 -2
- package/node/index.js +1 -1
- package/node/locale/index.js +1 -1
- package/node/styles/createPalette.js +2 -1
- package/node/styles/experimental_extendTheme.js +57 -47
- package/package.json +6 -5
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/createPalette.d.ts +9 -2
- package/styles/createPalette.js +2 -1
- package/styles/experimental_extendTheme.d.ts +13 -16
- package/styles/experimental_extendTheme.js +57 -46
- 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 +582 -484
- package/umd/material-ui.production.min.js +21 -21
- 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
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = extendTheme;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -17,35 +17,24 @@ var _system = require("@mui/system");
|
|
|
17
17
|
|
|
18
18
|
var _createTheme = _interopRequireDefault(require("./createTheme"));
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const _excluded = ["colorSchemes", "opacity"],
|
|
20
|
+
const _excluded = ["colorSchemes"],
|
|
23
21
|
_excluded2 = ["palette"];
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
selected: 0.08,
|
|
28
|
-
disabled: 0.26,
|
|
29
|
-
focus: 0.12
|
|
30
|
-
};
|
|
31
|
-
exports.defaultOpacity = defaultOpacity;
|
|
32
|
-
|
|
33
|
-
function createTheme(options = {}, ...args) {
|
|
34
|
-
var _colorSchemesInput$li, _colorSchemesInput$da;
|
|
22
|
+
|
|
23
|
+
function extendTheme(options = {}, ...args) {
|
|
24
|
+
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$da2;
|
|
35
25
|
|
|
36
26
|
const {
|
|
37
|
-
colorSchemes: colorSchemesInput = {}
|
|
38
|
-
opacity: opacityInput = {}
|
|
27
|
+
colorSchemes: colorSchemesInput = {}
|
|
39
28
|
} = options,
|
|
40
|
-
input = (0, _objectWithoutPropertiesLoose2.default)(options, _excluded);
|
|
29
|
+
input = (0, _objectWithoutPropertiesLoose2.default)(options, _excluded);
|
|
41
30
|
|
|
42
|
-
|
|
31
|
+
const _createThemeWithoutVa = (0, _createTheme.default)((0, _extends2.default)({}, input, colorSchemesInput.light && {
|
|
43
32
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
44
33
|
})),
|
|
45
|
-
|
|
34
|
+
{
|
|
46
35
|
palette: lightPalette
|
|
47
36
|
} = _createThemeWithoutVa,
|
|
48
|
-
|
|
37
|
+
muiTheme = (0, _objectWithoutPropertiesLoose2.default)(_createThemeWithoutVa, _excluded2);
|
|
49
38
|
|
|
50
39
|
const {
|
|
51
40
|
palette: darkPalette
|
|
@@ -54,17 +43,46 @@ function createTheme(options = {}, ...args) {
|
|
|
54
43
|
mode: 'dark'
|
|
55
44
|
}, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
|
|
56
45
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
46
|
+
let theme = (0, _extends2.default)({}, muiTheme, {
|
|
47
|
+
colorSchemes: (0, _extends2.default)({}, colorSchemesInput, {
|
|
48
|
+
light: (0, _extends2.default)({}, colorSchemesInput.light, {
|
|
49
|
+
palette: lightPalette,
|
|
50
|
+
opacity: (0, _extends2.default)({
|
|
51
|
+
placeholder: 0.42,
|
|
52
|
+
inputTouchBottomLine: 0.42
|
|
53
|
+
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity)
|
|
54
|
+
}),
|
|
55
|
+
dark: (0, _extends2.default)({}, colorSchemesInput.dark, {
|
|
56
|
+
palette: darkPalette,
|
|
57
|
+
opacity: (0, _extends2.default)({
|
|
58
|
+
placeholder: 0.5,
|
|
59
|
+
inputTouchBottomLine: 0.7
|
|
60
|
+
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity)
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
});
|
|
64
|
+
Object.keys(theme.colorSchemes).forEach(key => {
|
|
65
|
+
const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
|
|
66
|
+
|
|
67
|
+
if (key === 'dark') {
|
|
68
|
+
palette.common.background = palette.common.background || '#000';
|
|
69
|
+
palette.common.onBackground = palette.common.onBackground || '#fff';
|
|
70
|
+
} else {
|
|
71
|
+
palette.common.background = palette.common.background || '#fff';
|
|
72
|
+
palette.common.onBackground = palette.common.onBackground || '#000';
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
palette.common.backgroundChannel = (0, _system.colorChannel)(palette.common.background);
|
|
76
|
+
palette.common.onBackgroundChannel = (0, _system.colorChannel)(palette.common.onBackground);
|
|
77
|
+
palette.dividerChannel = (0, _system.colorChannel)(palette.divider); // special token for Tooltip
|
|
78
|
+
// TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
|
|
79
|
+
|
|
80
|
+
if (!palette.grey.dark) {
|
|
81
|
+
palette.grey.dark = palette.grey[700];
|
|
82
|
+
}
|
|
83
|
+
|
|
66
84
|
Object.keys(palette).forEach(color => {
|
|
67
|
-
const colors = palette[color];
|
|
85
|
+
const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
|
|
68
86
|
|
|
69
87
|
if (colors.main) {
|
|
70
88
|
palette[color].mainChannel = (0, _system.colorChannel)(colors.main);
|
|
@@ -78,6 +96,11 @@ function createTheme(options = {}, ...args) {
|
|
|
78
96
|
palette[color].darkChannel = (0, _system.colorChannel)(colors.dark);
|
|
79
97
|
}
|
|
80
98
|
|
|
99
|
+
if (colors.contrastText) {
|
|
100
|
+
palette[color].contrastTextChannel = (0, _system.colorChannel)(colors.contrastText);
|
|
101
|
+
} // Text colors: text.primary, text.secondary
|
|
102
|
+
|
|
103
|
+
|
|
81
104
|
if (colors.primary) {
|
|
82
105
|
palette[color].primaryChannel = (0, _system.colorChannel)(colors.primary);
|
|
83
106
|
}
|
|
@@ -85,21 +108,8 @@ function createTheme(options = {}, ...args) {
|
|
|
85
108
|
if (colors.secondary) {
|
|
86
109
|
palette[color].secondaryChannel = (0, _system.colorChannel)(colors.secondary);
|
|
87
110
|
}
|
|
88
|
-
|
|
89
|
-
if (colors.disabled) {
|
|
90
|
-
palette[color].disabledChannel = (0, _system.colorChannel)(colors.disabled);
|
|
91
|
-
}
|
|
92
111
|
});
|
|
93
|
-
colorSchemes[key] = {
|
|
94
|
-
palette
|
|
95
|
-
};
|
|
96
112
|
});
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
muiTheme = args.reduce((acc, argument) => (0, _utils.deepmerge)(acc, argument), muiTheme);
|
|
101
|
-
return muiTheme;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
var _default = createTheme;
|
|
105
|
-
exports.default = _default;
|
|
113
|
+
theme = args.reduce((acc, argument) => (0, _utils.deepmerge)(acc, argument), theme);
|
|
114
|
+
return theme;
|
|
115
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,15 +46,16 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.17.2",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/
|
|
49
|
+
"@mui/base": "5.0.0-alpha.80",
|
|
50
|
+
"@mui/private-classnames": "^5.7.0",
|
|
51
|
+
"@mui/system": "^5.7.0",
|
|
51
52
|
"@mui/types": "^7.1.3",
|
|
52
|
-
"@mui/utils": "^5.
|
|
53
|
+
"@mui/utils": "^5.7.0",
|
|
53
54
|
"@types/react-transition-group": "^4.4.4",
|
|
54
55
|
"clsx": "^1.1.1",
|
|
55
56
|
"csstype": "^3.0.11",
|
|
56
57
|
"hoist-non-react-statics": "^3.3.2",
|
|
57
|
-
"prop-types": "^15.
|
|
58
|
+
"prop-types": "^15.8.1",
|
|
58
59
|
"react-is": "^17.0.2",
|
|
59
60
|
"react-transition-group": "^4.4.2"
|
|
60
61
|
},
|
|
@@ -10,7 +10,7 @@ export interface ThemeProviderProps<Theme = DefaultTheme> {
|
|
|
10
10
|
* It should preferably be used at **the root of your component tree**.
|
|
11
11
|
* API:
|
|
12
12
|
*
|
|
13
|
-
* - [ThemeProvider API](/material-ui/customization/theming/#themeprovider)
|
|
13
|
+
* - [ThemeProvider API](https://mui.com/material-ui/customization/theming/#themeprovider)
|
|
14
14
|
*/
|
|
15
15
|
export default function ThemeProvider<T = DefaultTheme>(
|
|
16
16
|
props: ThemeProviderProps<T>,
|
|
@@ -102,10 +102,16 @@ export interface Channels {
|
|
|
102
102
|
mainChannel: string;
|
|
103
103
|
lightChannel: string;
|
|
104
104
|
darkChannel: string;
|
|
105
|
+
contrastTextChannel: string;
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
export interface PaletteWithChannels {
|
|
108
|
-
common: CommonColors
|
|
109
|
+
common: CommonColors & {
|
|
110
|
+
background: string;
|
|
111
|
+
onBackground: string;
|
|
112
|
+
backgroundChannel: string;
|
|
113
|
+
onBackgroundChannel: string;
|
|
114
|
+
};
|
|
109
115
|
mode: PaletteMode;
|
|
110
116
|
contrastThreshold: number;
|
|
111
117
|
tonalOffset: PaletteTonalOffset;
|
|
@@ -115,9 +121,10 @@ export interface PaletteWithChannels {
|
|
|
115
121
|
warning: PaletteColor & Channels;
|
|
116
122
|
info: PaletteColor & Channels;
|
|
117
123
|
success: PaletteColor & Channels;
|
|
118
|
-
grey: Color;
|
|
124
|
+
grey: Color & { darkChannel: string };
|
|
119
125
|
text: TypeText & { primaryChannel: string; secondaryChannel: string; disabledChannel: string };
|
|
120
126
|
divider: TypeDivider;
|
|
127
|
+
dividerChannel: TypeDivider;
|
|
121
128
|
action: TypeAction & { disabledChannel: string };
|
|
122
129
|
background: TypeBackground;
|
|
123
130
|
getContrastText: (background: string) => string;
|
package/styles/createPalette.js
CHANGED
|
@@ -278,7 +278,8 @@ const theme2 = createTheme({ palette: {
|
|
|
278
278
|
|
|
279
279
|
const paletteOutput = deepmerge(_extends({
|
|
280
280
|
// A collection of common colors.
|
|
281
|
-
common,
|
|
281
|
+
common: _extends({}, common),
|
|
282
|
+
// prevent mutable object.
|
|
282
283
|
// The palette mode, can be light or dark.
|
|
283
284
|
mode,
|
|
284
285
|
// The colors used to represent primary interface elements for a user.
|
|
@@ -34,41 +34,38 @@ export type ExtendedColorScheme = OverridableStringUnion<never, ColorSchemeOverr
|
|
|
34
34
|
*/
|
|
35
35
|
export type SupportedColorScheme = DefaultColorScheme | ExtendedColorScheme;
|
|
36
36
|
|
|
37
|
+
export interface Opacity {
|
|
38
|
+
placeholder: number;
|
|
39
|
+
inputTouchBottomLine: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
export interface ThemeOptions extends Omit<SystemThemeOptions, 'zIndex'> {
|
|
38
43
|
mixins?: MixinsOptions;
|
|
39
44
|
components?: Components<BaseTheme>;
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
colorSchemes?: Record<
|
|
46
|
+
SupportedColorScheme,
|
|
47
|
+
{
|
|
48
|
+
palette?: PaletteOptions;
|
|
49
|
+
opacity?: Partial<Opacity>;
|
|
50
|
+
}
|
|
51
|
+
>;
|
|
42
52
|
shadows?: Shadows;
|
|
43
53
|
transitions?: TransitionsOptions;
|
|
44
54
|
typography?: TypographyOptions | ((palette: Palette) => TypographyOptions);
|
|
45
55
|
zIndex?: ZIndexOptions;
|
|
46
56
|
unstable_strictMode?: boolean;
|
|
47
|
-
opacity?: {
|
|
48
|
-
active?: number;
|
|
49
|
-
hover?: number;
|
|
50
|
-
selected?: number;
|
|
51
|
-
disabled?: number;
|
|
52
|
-
focus?: number;
|
|
53
|
-
};
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
interface BaseTheme extends SystemTheme {
|
|
57
60
|
mixins: Mixins;
|
|
58
61
|
palette: Palette;
|
|
62
|
+
opacity: Opacity;
|
|
59
63
|
shadows: Shadows;
|
|
60
64
|
transitions: Transitions;
|
|
61
65
|
typography: Typography;
|
|
62
66
|
zIndex: ZIndex;
|
|
63
67
|
unstable_strictMode?: boolean;
|
|
64
68
|
colorSchemes: Record<string, { palette: Palette }>;
|
|
65
|
-
opacity: {
|
|
66
|
-
active: number;
|
|
67
|
-
hover: number;
|
|
68
|
-
selected: number;
|
|
69
|
-
disabled: number;
|
|
70
|
-
focus: number;
|
|
71
|
-
};
|
|
72
69
|
}
|
|
73
70
|
|
|
74
71
|
// shut off automatic exporting for the `BaseTheme` above
|
|
@@ -1,36 +1,25 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["colorSchemes"
|
|
3
|
+
const _excluded = ["colorSchemes"],
|
|
4
4
|
_excluded2 = ["palette"];
|
|
5
5
|
import { deepmerge } from '@mui/utils';
|
|
6
6
|
import { colorChannel } from '@mui/system';
|
|
7
7
|
import createThemeWithoutVars from './createTheme';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
active: 0.54,
|
|
11
|
-
hover: 0.04,
|
|
12
|
-
selected: 0.08,
|
|
13
|
-
disabled: 0.26,
|
|
14
|
-
focus: 0.12
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
function createTheme(options = {}, ...args) {
|
|
18
|
-
var _colorSchemesInput$li, _colorSchemesInput$da;
|
|
8
|
+
export default function extendTheme(options = {}, ...args) {
|
|
9
|
+
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$da2;
|
|
19
10
|
|
|
20
11
|
const {
|
|
21
|
-
colorSchemes: colorSchemesInput = {}
|
|
22
|
-
opacity: opacityInput = {}
|
|
12
|
+
colorSchemes: colorSchemesInput = {}
|
|
23
13
|
} = options,
|
|
24
|
-
input = _objectWithoutPropertiesLoose(options, _excluded);
|
|
14
|
+
input = _objectWithoutPropertiesLoose(options, _excluded);
|
|
25
15
|
|
|
26
|
-
|
|
27
|
-
let _createThemeWithoutVa = createThemeWithoutVars(_extends({}, input, colorSchemesInput.light && {
|
|
16
|
+
const _createThemeWithoutVa = createThemeWithoutVars(_extends({}, input, colorSchemesInput.light && {
|
|
28
17
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
29
18
|
})),
|
|
30
|
-
|
|
19
|
+
{
|
|
31
20
|
palette: lightPalette
|
|
32
21
|
} = _createThemeWithoutVa,
|
|
33
|
-
|
|
22
|
+
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2);
|
|
34
23
|
|
|
35
24
|
const {
|
|
36
25
|
palette: darkPalette
|
|
@@ -39,17 +28,48 @@ function createTheme(options = {}, ...args) {
|
|
|
39
28
|
mode: 'dark'
|
|
40
29
|
}, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
|
|
41
30
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
31
|
+
|
|
32
|
+
let theme = _extends({}, muiTheme, {
|
|
33
|
+
colorSchemes: _extends({}, colorSchemesInput, {
|
|
34
|
+
light: _extends({}, colorSchemesInput.light, {
|
|
35
|
+
palette: lightPalette,
|
|
36
|
+
opacity: _extends({
|
|
37
|
+
placeholder: 0.42,
|
|
38
|
+
inputTouchBottomLine: 0.42
|
|
39
|
+
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity)
|
|
40
|
+
}),
|
|
41
|
+
dark: _extends({}, colorSchemesInput.dark, {
|
|
42
|
+
palette: darkPalette,
|
|
43
|
+
opacity: _extends({
|
|
44
|
+
placeholder: 0.5,
|
|
45
|
+
inputTouchBottomLine: 0.7
|
|
46
|
+
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity)
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
Object.keys(theme.colorSchemes).forEach(key => {
|
|
52
|
+
const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
|
|
53
|
+
|
|
54
|
+
if (key === 'dark') {
|
|
55
|
+
palette.common.background = palette.common.background || '#000';
|
|
56
|
+
palette.common.onBackground = palette.common.onBackground || '#fff';
|
|
57
|
+
} else {
|
|
58
|
+
palette.common.background = palette.common.background || '#fff';
|
|
59
|
+
palette.common.onBackground = palette.common.onBackground || '#000';
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
palette.common.backgroundChannel = colorChannel(palette.common.background);
|
|
63
|
+
palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
|
|
64
|
+
palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
|
|
65
|
+
// TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
|
|
66
|
+
|
|
67
|
+
if (!palette.grey.dark) {
|
|
68
|
+
palette.grey.dark = palette.grey[700];
|
|
69
|
+
}
|
|
70
|
+
|
|
51
71
|
Object.keys(palette).forEach(color => {
|
|
52
|
-
const colors = palette[color];
|
|
72
|
+
const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
|
|
53
73
|
|
|
54
74
|
if (colors.main) {
|
|
55
75
|
palette[color].mainChannel = colorChannel(colors.main);
|
|
@@ -63,6 +83,11 @@ function createTheme(options = {}, ...args) {
|
|
|
63
83
|
palette[color].darkChannel = colorChannel(colors.dark);
|
|
64
84
|
}
|
|
65
85
|
|
|
86
|
+
if (colors.contrastText) {
|
|
87
|
+
palette[color].contrastTextChannel = colorChannel(colors.contrastText);
|
|
88
|
+
} // Text colors: text.primary, text.secondary
|
|
89
|
+
|
|
90
|
+
|
|
66
91
|
if (colors.primary) {
|
|
67
92
|
palette[color].primaryChannel = colorChannel(colors.primary);
|
|
68
93
|
}
|
|
@@ -70,22 +95,8 @@ function createTheme(options = {}, ...args) {
|
|
|
70
95
|
if (colors.secondary) {
|
|
71
96
|
palette[color].secondaryChannel = colorChannel(colors.secondary);
|
|
72
97
|
}
|
|
73
|
-
|
|
74
|
-
if (colors.disabled) {
|
|
75
|
-
palette[color].disabledChannel = colorChannel(colors.disabled);
|
|
76
|
-
}
|
|
77
98
|
});
|
|
78
|
-
colorSchemes[key] = {
|
|
79
|
-
palette
|
|
80
|
-
};
|
|
81
99
|
});
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
muiTheme.colorSchemes = colorSchemes;
|
|
86
|
-
muiTheme.opacity = opacity;
|
|
87
|
-
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
88
|
-
return muiTheme;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export default createTheme;
|
|
100
|
+
theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
|
|
101
|
+
return theme;
|
|
102
|
+
}
|
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 {};
|