@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
|
@@ -66,10 +66,10 @@ const PaginationItemEllipsis = styled('div', {
|
|
|
66
66
|
minWidth: 32,
|
|
67
67
|
padding: '0 6px',
|
|
68
68
|
margin: '0 3px',
|
|
69
|
-
color: theme.palette.text.primary,
|
|
69
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
70
70
|
height: 'auto',
|
|
71
71
|
[`&.${paginationItemClasses.disabled}`]: {
|
|
72
|
-
opacity: theme.palette.action.disabledOpacity
|
|
72
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
73
73
|
}
|
|
74
74
|
}, ownerState.size === 'small' && {
|
|
75
75
|
minWidth: 26,
|
|
@@ -97,39 +97,39 @@ const PaginationItemPage = styled(ButtonBase, {
|
|
|
97
97
|
height: 32,
|
|
98
98
|
padding: '0 6px',
|
|
99
99
|
margin: '0 3px',
|
|
100
|
-
color: theme.palette.text.primary,
|
|
100
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
101
101
|
[`&.${paginationItemClasses.focusVisible}`]: {
|
|
102
|
-
backgroundColor: theme.palette.action.focus
|
|
102
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
103
103
|
},
|
|
104
104
|
[`&.${paginationItemClasses.disabled}`]: {
|
|
105
|
-
opacity: theme.palette.action.disabledOpacity
|
|
105
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
106
106
|
},
|
|
107
107
|
transition: theme.transitions.create(['color', 'background-color'], {
|
|
108
108
|
duration: theme.transitions.duration.short
|
|
109
109
|
}),
|
|
110
110
|
'&:hover': {
|
|
111
|
-
backgroundColor: theme.palette.action.hover,
|
|
111
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
112
112
|
// Reset on touch devices, it doesn't add specificity
|
|
113
113
|
'@media (hover: none)': {
|
|
114
114
|
backgroundColor: 'transparent'
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
[`&.${paginationItemClasses.selected}`]: {
|
|
118
|
-
backgroundColor: theme.palette.action.selected,
|
|
118
|
+
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
119
119
|
'&:hover': {
|
|
120
|
-
backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
120
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
121
121
|
// Reset on touch devices, it doesn't add specificity
|
|
122
122
|
'@media (hover: none)': {
|
|
123
|
-
backgroundColor: theme.palette.action.selected
|
|
123
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
[`&.${paginationItemClasses.focusVisible}`]: {
|
|
127
|
-
backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
127
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
128
128
|
},
|
|
129
129
|
[`&.${paginationItemClasses.disabled}`]: {
|
|
130
130
|
opacity: 1,
|
|
131
|
-
color: theme.palette.action.disabled,
|
|
132
|
-
backgroundColor: theme.palette.action.selected
|
|
131
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
132
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}, ownerState.size === 'small' && {
|
|
@@ -145,49 +145,49 @@ const PaginationItemPage = styled(ButtonBase, {
|
|
|
145
145
|
padding: '0 10px',
|
|
146
146
|
fontSize: theme.typography.pxToRem(15)
|
|
147
147
|
}, ownerState.shape === 'rounded' && {
|
|
148
|
-
borderRadius: theme.shape.borderRadius
|
|
148
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
149
149
|
}), ({
|
|
150
150
|
theme,
|
|
151
151
|
ownerState
|
|
152
152
|
}) => _extends({}, ownerState.variant === 'text' && {
|
|
153
153
|
[`&.${paginationItemClasses.selected}`]: _extends({}, ownerState.color !== 'standard' && {
|
|
154
|
-
color: theme.palette[ownerState.color].contrastText,
|
|
155
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
154
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
155
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
156
156
|
'&:hover': {
|
|
157
|
-
backgroundColor: theme.palette[ownerState.color].dark,
|
|
157
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
158
158
|
// Reset on touch devices, it doesn't add specificity
|
|
159
159
|
'@media (hover: none)': {
|
|
160
|
-
backgroundColor: theme.palette[ownerState.color].main
|
|
160
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
[`&.${paginationItemClasses.focusVisible}`]: {
|
|
164
|
-
backgroundColor: theme.palette[ownerState.color].dark
|
|
164
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
165
165
|
}
|
|
166
166
|
}, {
|
|
167
167
|
[`&.${paginationItemClasses.disabled}`]: {
|
|
168
|
-
color: theme.palette.action.disabled
|
|
168
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
169
169
|
}
|
|
170
170
|
})
|
|
171
171
|
}, ownerState.variant === 'outlined' && {
|
|
172
|
-
border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
172
|
+
border: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
173
173
|
[`&.${paginationItemClasses.selected}`]: _extends({}, ownerState.color !== 'standard' && {
|
|
174
|
-
color: theme.palette[ownerState.color].main,
|
|
175
|
-
border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`,
|
|
176
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
|
|
174
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
175
|
+
border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)}`,
|
|
176
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
|
|
177
177
|
'&:hover': {
|
|
178
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
178
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
179
179
|
// Reset on touch devices, it doesn't add specificity
|
|
180
180
|
'@media (hover: none)': {
|
|
181
181
|
backgroundColor: 'transparent'
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
[`&.${paginationItemClasses.focusVisible}`]: {
|
|
185
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
|
|
185
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
|
|
186
186
|
}
|
|
187
187
|
}, {
|
|
188
188
|
[`&.${paginationItemClasses.disabled}`]: {
|
|
189
|
-
borderColor: theme.palette.action.disabledBackground,
|
|
190
|
-
color: theme.palette.action.disabled
|
|
189
|
+
borderColor: (theme.vars || theme).palette.action.disabledBackground,
|
|
190
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
191
191
|
}
|
|
192
192
|
})
|
|
193
193
|
}));
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export interface PaginationItemClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `type="page"`. */
|
|
5
|
-
page: string;
|
|
6
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
7
|
-
sizeSmall: string;
|
|
8
|
-
/** Styles applied to the root element if `size="large"`. */
|
|
9
|
-
sizeLarge: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="text"`. */
|
|
11
|
-
text: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
|
|
13
|
-
textPrimary: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
|
|
15
|
-
textSecondary: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
17
|
-
outlined: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
|
19
|
-
outlinedPrimary: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
|
21
|
-
outlinedSecondary: string;
|
|
22
|
-
/** Styles applied to the root element if `rounded="true"`. */
|
|
23
|
-
rounded: string;
|
|
24
|
-
/** Styles applied to the root element if `type="start-ellipsis"` or `type="end-ellipsis"`. */
|
|
25
|
-
ellipsis: string;
|
|
26
|
-
/** Styles applyed to the root element if `type="first"` or type="last". */
|
|
27
|
-
firstLast: string;
|
|
28
|
-
/** Styles applyed to the root element if `type="previous"` or type="next". */
|
|
29
|
-
previousNext: string;
|
|
30
|
-
/** State class applied to the root element if keyboard focused. */
|
|
31
|
-
focusVisible: string;
|
|
32
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
33
|
-
disabled: string;
|
|
34
|
-
/** State class applied to the root element if `selected={true}`. */
|
|
35
|
-
selected: string;
|
|
36
|
-
/** Styles applied to the icon to display. */
|
|
37
|
-
icon: string;
|
|
38
|
-
}
|
|
39
|
-
export declare type PaginationItemClassKey = keyof PaginationItemClasses;
|
|
40
|
-
export declare function getPaginationItemUtilityClass(slot: string): string;
|
|
41
|
-
declare const paginationItemClasses: PaginationItemClasses;
|
|
42
|
-
export default paginationItemClasses;
|
|
1
|
+
export interface PaginationItemClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `type="page"`. */
|
|
5
|
+
page: string;
|
|
6
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
7
|
+
sizeSmall: string;
|
|
8
|
+
/** Styles applied to the root element if `size="large"`. */
|
|
9
|
+
sizeLarge: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="text"`. */
|
|
11
|
+
text: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
|
|
13
|
+
textPrimary: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
|
|
15
|
+
textSecondary: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
17
|
+
outlined: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
|
19
|
+
outlinedPrimary: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
|
21
|
+
outlinedSecondary: string;
|
|
22
|
+
/** Styles applied to the root element if `rounded="true"`. */
|
|
23
|
+
rounded: string;
|
|
24
|
+
/** Styles applied to the root element if `type="start-ellipsis"` or `type="end-ellipsis"`. */
|
|
25
|
+
ellipsis: string;
|
|
26
|
+
/** Styles applyed to the root element if `type="first"` or type="last". */
|
|
27
|
+
firstLast: string;
|
|
28
|
+
/** Styles applyed to the root element if `type="previous"` or type="next". */
|
|
29
|
+
previousNext: string;
|
|
30
|
+
/** State class applied to the root element if keyboard focused. */
|
|
31
|
+
focusVisible: string;
|
|
32
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
33
|
+
disabled: string;
|
|
34
|
+
/** State class applied to the root element if `selected={true}`. */
|
|
35
|
+
selected: string;
|
|
36
|
+
/** Styles applied to the icon to display. */
|
|
37
|
+
icon: string;
|
|
38
|
+
}
|
|
39
|
+
export declare type PaginationItemClassKey = keyof PaginationItemClasses;
|
|
40
|
+
export declare function getPaginationItemUtilityClass(slot: string): string;
|
|
41
|
+
declare const paginationItemClasses: PaginationItemClasses;
|
|
42
|
+
export default paginationItemClasses;
|
package/Paper/paperClasses.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export interface PaperClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `square={true}`. */
|
|
5
|
-
rounded: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
-
outlined: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="elevation"`. */
|
|
9
|
-
elevation: string;
|
|
10
|
-
elevation0: string;
|
|
11
|
-
elevation1: string;
|
|
12
|
-
elevation2: string;
|
|
13
|
-
elevation3: string;
|
|
14
|
-
elevation4: string;
|
|
15
|
-
elevation5: string;
|
|
16
|
-
elevation6: string;
|
|
17
|
-
elevation7: string;
|
|
18
|
-
elevation8: string;
|
|
19
|
-
elevation9: string;
|
|
20
|
-
elevation10: string;
|
|
21
|
-
elevation11: string;
|
|
22
|
-
elevation12: string;
|
|
23
|
-
elevation13: string;
|
|
24
|
-
elevation14: string;
|
|
25
|
-
elevation15: string;
|
|
26
|
-
elevation16: string;
|
|
27
|
-
elevation17: string;
|
|
28
|
-
elevation18: string;
|
|
29
|
-
elevation19: string;
|
|
30
|
-
elevation20: string;
|
|
31
|
-
elevation21: string;
|
|
32
|
-
elevation22: string;
|
|
33
|
-
elevation23: string;
|
|
34
|
-
elevation24: string;
|
|
35
|
-
}
|
|
36
|
-
export declare type PaperClassKey = keyof PaperClasses;
|
|
37
|
-
export declare function getPaperUtilityClass(slot: string): string;
|
|
38
|
-
declare const paperClasses: PaperClasses;
|
|
39
|
-
export default paperClasses;
|
|
1
|
+
export interface PaperClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `square={true}`. */
|
|
5
|
+
rounded: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
+
outlined: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="elevation"`. */
|
|
9
|
+
elevation: string;
|
|
10
|
+
elevation0: string;
|
|
11
|
+
elevation1: string;
|
|
12
|
+
elevation2: string;
|
|
13
|
+
elevation3: string;
|
|
14
|
+
elevation4: string;
|
|
15
|
+
elevation5: string;
|
|
16
|
+
elevation6: string;
|
|
17
|
+
elevation7: string;
|
|
18
|
+
elevation8: string;
|
|
19
|
+
elevation9: string;
|
|
20
|
+
elevation10: string;
|
|
21
|
+
elevation11: string;
|
|
22
|
+
elevation12: string;
|
|
23
|
+
elevation13: string;
|
|
24
|
+
elevation14: string;
|
|
25
|
+
elevation15: string;
|
|
26
|
+
elevation16: string;
|
|
27
|
+
elevation17: string;
|
|
28
|
+
elevation18: string;
|
|
29
|
+
elevation19: string;
|
|
30
|
+
elevation20: string;
|
|
31
|
+
elevation21: string;
|
|
32
|
+
elevation22: string;
|
|
33
|
+
elevation23: string;
|
|
34
|
+
elevation24: string;
|
|
35
|
+
}
|
|
36
|
+
export declare type PaperClassKey = keyof PaperClasses;
|
|
37
|
+
export declare function getPaperUtilityClass(slot: string): string;
|
|
38
|
+
declare const paperClasses: PaperClasses;
|
|
39
|
+
export default paperClasses;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface PopoverClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the Paper component. */
|
|
5
|
-
paper: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type PopoverClassKey = keyof PopoverClasses;
|
|
8
|
-
export declare function getPopoverUtilityClass(slot: string): string;
|
|
9
|
-
declare const popoverClasses: PopoverClasses;
|
|
10
|
-
export default popoverClasses;
|
|
1
|
+
export interface PopoverClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the Paper component. */
|
|
5
|
+
paper: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type PopoverClassKey = keyof PopoverClasses;
|
|
8
|
+
export declare function getPopoverUtilityClass(slot: string): string;
|
|
9
|
+
declare const popoverClasses: PopoverClasses;
|
|
10
|
+
export default popoverClasses;
|
package/Popper/Popper.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { PopperUnstyledProps } from '@mui/base/PopperUnstyled';
|
|
2
|
-
import { SxProps } from '@mui/system';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Theme } from '../styles';
|
|
5
|
-
export declare type PopperProps = Omit<PopperUnstyledProps, 'direction'> & {
|
|
6
|
-
/**
|
|
7
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
8
|
-
*/
|
|
9
|
-
sx?: SxProps<Theme>;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* Demos:
|
|
14
|
-
*
|
|
15
|
-
* - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
|
|
16
|
-
* - [Menus](https://mui.com/material-ui/react-menu/)
|
|
17
|
-
* - [Popper](https://mui.com/material-ui/react-popper/)
|
|
18
|
-
*
|
|
19
|
-
* API:
|
|
20
|
-
*
|
|
21
|
-
* - [Popper API](https://mui.com/material-ui/api/popper/)
|
|
22
|
-
*/
|
|
23
|
-
declare const Popper: React.ForwardRefExoticComponent<Pick<Omit<PopperUnstyledProps, "direction"> & {
|
|
24
|
-
/**
|
|
25
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
26
|
-
*/
|
|
27
|
-
sx?: SxProps<Theme> | undefined;
|
|
28
|
-
}, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "placement" | "anchorEl" | "container" | "disablePortal" | "keepMounted" | "modifiers" | "popperOptions" | "popperRef"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
export default Popper;
|
|
1
|
+
import { PopperUnstyledProps } from '@mui/base/PopperUnstyled';
|
|
2
|
+
import { SxProps } from '@mui/system';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Theme } from '../styles';
|
|
5
|
+
export declare type PopperProps = Omit<PopperUnstyledProps, 'direction'> & {
|
|
6
|
+
/**
|
|
7
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
8
|
+
*/
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* Demos:
|
|
14
|
+
*
|
|
15
|
+
* - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
|
|
16
|
+
* - [Menus](https://mui.com/material-ui/react-menu/)
|
|
17
|
+
* - [Popper](https://mui.com/material-ui/react-popper/)
|
|
18
|
+
*
|
|
19
|
+
* API:
|
|
20
|
+
*
|
|
21
|
+
* - [Popper API](https://mui.com/material-ui/api/popper/)
|
|
22
|
+
*/
|
|
23
|
+
declare const Popper: React.ForwardRefExoticComponent<Pick<Omit<PopperUnstyledProps, "direction"> & {
|
|
24
|
+
/**
|
|
25
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
26
|
+
*/
|
|
27
|
+
sx?: SxProps<Theme> | undefined;
|
|
28
|
+
}, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "placement" | "anchorEl" | "container" | "disablePortal" | "keepMounted" | "modifiers" | "popperOptions" | "popperRef"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export default Popper;
|
package/README.md
CHANGED
|
@@ -3,11 +3,19 @@
|
|
|
3
3
|
<a href="https://mui.com/" rel="noopener" target="_blank"><img width="150" src="https://mui.com/static/logo.svg" alt="MUI logo"></a>
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
|
-
<h1 align="center">MUI</h1>
|
|
6
|
+
<h1 align="center">MUI Core</h1>
|
|
7
|
+
|
|
8
|
+
**MUI Core** contains foundational React UI component libraries for shipping new features faster.
|
|
9
|
+
|
|
10
|
+
- _Material UI_ is a comprehensive library of components that features our implementation of Google's [Material Design](https://material.io/design/introduction/) system.
|
|
11
|
+
|
|
12
|
+
- _MUI Base_ is our library of "unstyled" components and low-level hooks. With Base, you gain complete control over your app's CSS and accessibility features.
|
|
13
|
+
|
|
14
|
+
- _MUI System_ is a collection of CSS utilities to help you rapidly lay out custom designs.
|
|
7
15
|
|
|
8
16
|
<div align="center">
|
|
9
17
|
|
|
10
|
-
|
|
18
|
+
**[Stable channel v5](https://mui.com/)**
|
|
11
19
|
|
|
12
20
|
[](https://github.com/mui/material-ui/blob/HEAD/LICENSE)
|
|
13
21
|
[](https://www.npmjs.com/package/@mui/material)
|
|
@@ -25,9 +33,9 @@ Quickly build beautiful [React](https://reactjs.org/) apps. MUI is a simple and
|
|
|
25
33
|
|
|
26
34
|
## Installation
|
|
27
35
|
|
|
28
|
-
|
|
36
|
+
### Material UI
|
|
29
37
|
|
|
30
|
-
|
|
38
|
+
Material UI is available as an [npm package](https://www.npmjs.com/package/@mui/material).
|
|
31
39
|
|
|
32
40
|
```sh
|
|
33
41
|
// with npm
|
|
@@ -46,16 +54,55 @@ yarn add @mui/material @emotion/react @emotion/styled
|
|
|
46
54
|
|
|
47
55
|
</details>
|
|
48
56
|
|
|
49
|
-
|
|
57
|
+
**Note:** `@next` only points to pre-releases.
|
|
58
|
+
Use `@latest` for the latest stable release.
|
|
59
|
+
|
|
60
|
+
### MUI Base
|
|
61
|
+
|
|
62
|
+
MUI Base is available as an [npm package](https://www.npmjs.com/package/@mui/base).
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
// with npm
|
|
66
|
+
npm install @mui/base
|
|
67
|
+
|
|
68
|
+
// with yarn
|
|
69
|
+
yarn add @mui/base
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Note**: MUI Base is still in alpha.
|
|
73
|
+
We are adding new components regularly and you're welcome to contribute!
|
|
74
|
+
|
|
75
|
+
### MUI System
|
|
50
76
|
|
|
51
|
-
|
|
77
|
+
MUI System is available as an [npm package](https://www.npmjs.com/package/@mui/system).
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
// with npm
|
|
81
|
+
npm install @mui/system @emotion/react @emotion/styled
|
|
82
|
+
|
|
83
|
+
// with yarn
|
|
84
|
+
yarn add @mui/system @emotion/react @emotion/styled
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Or if you want to use `styled-components` as a styling engine:
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
// with npm
|
|
91
|
+
npm install @mui/system @mui/styled-engine-sc styled-components
|
|
92
|
+
|
|
93
|
+
// with yarn
|
|
94
|
+
yarn add @mui/system @mui/styled-engine-sc styled-components
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Visit our [`styled-engine` guide](https://mui.com/material-ui/guides/styled-engine/) for more information about how to configure `styled-components` as the style engine.
|
|
98
|
+
|
|
99
|
+
## Sponsors
|
|
52
100
|
|
|
53
101
|
### Diamond 💎
|
|
54
102
|
|
|
55
103
|
<p align="center">
|
|
56
104
|
<a href="https://octopus.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="128" width="128" src="https://avatars3.githubusercontent.com/u/1287123?s=256" alt="octopus" title="Repeatable, reliable deployments" loading="lazy" /></a>
|
|
57
105
|
<a href="https://www.doit-intl.com/flexsave/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="128" width="128" src="https://avatars3.githubusercontent.com/u/8424863?s=256" alt="doit-intl" title="Management Platform for Google Cloud and AWS" loading="lazy" /></a>
|
|
58
|
-
<a href="https://www.aptugo.com/?utm_source=MUI&utm_medium=referral&utm_content=readme" rel="noopener sponsored" target="_blank"><img height="128" width="128" src="https://www.aptugo.com/img/favicon.png" alt="aptugo" title="Augmented Software Development Platform" loading="lazy" /></a>
|
|
59
106
|
</p>
|
|
60
107
|
|
|
61
108
|
Diamond Sponsors are those who have pledged \$1,500/month or more to MUI.
|
|
@@ -76,16 +123,16 @@ via [OpenCollective](https://opencollective.com/mui) or via [Patreon](https://ww
|
|
|
76
123
|
|
|
77
124
|
Gold Sponsors are those who have pledged \$500/month or more to MUI.
|
|
78
125
|
|
|
79
|
-
###
|
|
126
|
+
### More backers
|
|
80
127
|
|
|
81
128
|
See the full list of [our backers](https://mui.com/material-ui/discover-more/backers/).
|
|
82
129
|
|
|
83
|
-
##
|
|
130
|
+
## Getting started with Material UI
|
|
84
131
|
|
|
85
|
-
Here is
|
|
132
|
+
Here is an example of a basic app using Material UI's `Button` component:
|
|
86
133
|
|
|
87
134
|
```jsx
|
|
88
|
-
import React from 'react';
|
|
135
|
+
import * as React from 'react';
|
|
89
136
|
import ReactDOM from 'react-dom';
|
|
90
137
|
import Button from '@mui/material/Button';
|
|
91
138
|
|
|
@@ -96,47 +143,47 @@ function App() {
|
|
|
96
143
|
</Button>
|
|
97
144
|
);
|
|
98
145
|
}
|
|
99
|
-
|
|
100
|
-
ReactDOM.render(<App />, document.querySelector('#app'));
|
|
101
146
|
```
|
|
102
147
|
|
|
103
|
-
|
|
148
|
+
In the interactive demo below, try changing the code and see how it affects the output.
|
|
149
|
+
(Hint: change `variant` to `"outlined"` and `color` to `"secondary"`.
|
|
150
|
+
For more options, see the [`Button` component page](https://mui.com/material-ui/react-button/) in our docs.)
|
|
104
151
|
|
|
105
152
|
[](https://codesandbox.io/s/4j7m47vlm4)
|
|
106
153
|
|
|
107
154
|
## Questions
|
|
108
155
|
|
|
109
|
-
For
|
|
110
|
-
|
|
111
|
-
There is a StackOverflow tag called "material-ui" that you can use to tag your questions.
|
|
156
|
+
For how-to questions that don't involve making changes to the code base, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/mui) instead of GitHub issues.
|
|
157
|
+
Use the "mui" tag on Stack Overflow to make it easier for the community to find your question.
|
|
112
158
|
|
|
113
159
|
## Examples
|
|
114
160
|
|
|
115
|
-
|
|
116
|
-
[We host some](https://mui.com/material-ui/getting-started/example-projects/).
|
|
161
|
+
Our documentation features [a collection of example projects using Material UI](https://mui.com/material-ui/getting-started/example-projects/).
|
|
117
162
|
|
|
118
163
|
## Documentation
|
|
119
164
|
|
|
120
|
-
|
|
165
|
+
- [Material UI](https://mui.com/material-ui/getting-started/installation/)
|
|
166
|
+
- [MUI Base](https://mui.com/base/getting-started/installation/)
|
|
167
|
+
- [MUI System](https://mui.com/system/basics/)
|
|
121
168
|
|
|
122
|
-
## Premium
|
|
169
|
+
## Premium themes
|
|
123
170
|
|
|
124
|
-
You can find complete templates
|
|
171
|
+
You can find complete templates and themes in the [MUI Store](https://mui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=readme-store).
|
|
125
172
|
|
|
126
173
|
## Contributing
|
|
127
174
|
|
|
128
|
-
Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, how to propose
|
|
175
|
+
Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.
|
|
129
176
|
|
|
130
|
-
|
|
131
|
-
|
|
177
|
+
Contributing to MUI Core is about more than just issues and pull requests!
|
|
178
|
+
There are many other ways to [support MUI](https://mui.com/material-ui/getting-started/faq/#mui-is-awesome-how-can-i-support-the-project) beyond contributing to the code base.
|
|
132
179
|
|
|
133
180
|
## Changelog
|
|
134
181
|
|
|
135
|
-
|
|
182
|
+
The [changelog](https://github.com/mui/material-ui/releases) is regularly updated to reflect what's changed in each new release.
|
|
136
183
|
|
|
137
184
|
## Roadmap
|
|
138
185
|
|
|
139
|
-
|
|
186
|
+
Future plans and high-priority features and enhancements can be found in our [roadmap](https://mui.com/material-ui/discover-more/roadmap/).
|
|
140
187
|
|
|
141
188
|
## License
|
|
142
189
|
|
|
@@ -149,20 +196,20 @@ These great services sponsor MUI's core infrastructure:
|
|
|
149
196
|
|
|
150
197
|
[<img loading="lazy" alt="GitHub" src="https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png" height="25">](https://github.com/)
|
|
151
198
|
|
|
152
|
-
GitHub
|
|
199
|
+
GitHub lets us host the Git repository and coordinate contributions.
|
|
153
200
|
|
|
154
201
|
[<img loading="lazy" alt="Netlify" src="https://cdn.netlify.com/15ecf59b59c9d04b88097c6b5d2c7e8a7d1302d0/1b6d6/img/press/logos/full-logo-light.svg" height="30">](https://www.netlify.com/)
|
|
155
202
|
|
|
156
|
-
Netlify
|
|
203
|
+
Netlify lets us distribute the documentation.
|
|
157
204
|
|
|
158
205
|
[<img loading="lazy" alt="CrowdIn" src="https://support.crowdin.com/assets/logos/crowdin-logo1-small.png" height="30">](https://crowdin.com/)
|
|
159
206
|
|
|
160
|
-
|
|
207
|
+
Crowdin lets us translate the documentation.
|
|
161
208
|
|
|
162
209
|
[<img loading="lazy" alt="BrowserStack" src="https://www.browserstack.com/images/mail/browserstack-logo-footer.png" height="30">](https://www.browserstack.com/)
|
|
163
210
|
|
|
164
|
-
BrowserStack
|
|
211
|
+
BrowserStack lets us test in real browsers.
|
|
165
212
|
|
|
166
213
|
[<img loading="lazy" alt="CodeCov" src="https://github.com/codecov.png?size=70" width="35" height="35">](https://codecov.io/)
|
|
167
214
|
|
|
168
|
-
CodeCov
|
|
215
|
+
CodeCov lets us monitor test coverage.
|