@mui/material 6.0.0-alpha.11 → 6.0.0-alpha.13
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 +3 -3
- package/AccordionActions/AccordionActions.js +3 -3
- package/AccordionDetails/AccordionDetails.js +3 -3
- package/AccordionSummary/AccordionSummary.js +3 -3
- package/Alert/Alert.js +3 -3
- package/AlertTitle/AlertTitle.js +3 -3
- package/AppBar/AppBar.js +3 -3
- package/Autocomplete/Autocomplete.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +3 -3
- package/Avatar/Avatar.js +3 -3
- package/AvatarGroup/AvatarGroup.js +3 -3
- package/Backdrop/Backdrop.js +3 -3
- package/Badge/Badge.js +3 -3
- package/BottomNavigation/BottomNavigation.js +3 -3
- package/BottomNavigationAction/BottomNavigationAction.js +3 -3
- package/Breadcrumbs/Breadcrumbs.js +3 -3
- package/Button/Button.js +3 -3
- package/ButtonBase/ButtonBase.js +3 -3
- package/ButtonBase/TouchRipple.js +3 -3
- package/ButtonGroup/ButtonGroup.js +3 -3
- package/CHANGELOG.md +108 -0
- package/Card/Card.js +3 -3
- package/CardActionArea/CardActionArea.js +3 -3
- package/CardActions/CardActions.js +3 -3
- package/CardContent/CardContent.js +3 -3
- package/CardHeader/CardHeader.js +3 -3
- package/CardMedia/CardMedia.js +3 -3
- package/Checkbox/Checkbox.js +3 -3
- package/Chip/Chip.js +3 -3
- package/CircularProgress/CircularProgress.js +3 -3
- package/Collapse/Collapse.js +3 -3
- package/CssBaseline/CssBaseline.js +66 -8
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +15 -0
- package/DefaultPropsProvider/DefaultPropsProvider.js +29 -0
- package/DefaultPropsProvider/index.d.ts +1 -0
- package/DefaultPropsProvider/index.js +1 -0
- package/DefaultPropsProvider/package.json +6 -0
- package/Dialog/Dialog.js +3 -3
- package/DialogActions/DialogActions.js +3 -3
- package/DialogContent/DialogContent.js +3 -3
- package/DialogContentText/DialogContentText.js +3 -3
- package/DialogTitle/DialogTitle.js +3 -3
- package/Divider/Divider.js +3 -3
- package/Drawer/Drawer.js +3 -3
- package/Fab/Fab.js +3 -3
- package/FilledInput/FilledInput.js +3 -3
- package/FormControl/FormControl.js +3 -3
- package/FormControlLabel/FormControlLabel.js +3 -3
- package/FormGroup/FormGroup.js +3 -3
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormLabel/FormLabel.js +3 -3
- package/Hidden/hiddenCssClasses.d.ts +3 -0
- package/Icon/Icon.js +3 -3
- package/IconButton/IconButton.js +3 -3
- package/ImageList/ImageList.js +3 -3
- package/ImageListItem/ImageListItem.js +3 -3
- package/ImageListItemBar/ImageListItemBar.js +3 -3
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +10 -0
- package/InitColorSchemeScript/InitColorSchemeScript.js +16 -0
- package/InitColorSchemeScript/index.d.ts +1 -0
- package/InitColorSchemeScript/index.js +1 -0
- package/InitColorSchemeScript/package.json +6 -0
- package/Input/Input.js +3 -3
- package/InputAdornment/InputAdornment.js +3 -3
- package/InputBase/InputBase.js +3 -3
- package/InputLabel/InputLabel.js +3 -3
- package/LinearProgress/LinearProgress.js +3 -3
- package/Link/Link.js +3 -3
- package/List/List.js +3 -3
- package/ListItem/ListItem.js +3 -3
- package/ListItemAvatar/ListItemAvatar.js +3 -3
- package/ListItemButton/ListItemButton.js +3 -3
- package/ListItemIcon/ListItemIcon.js +3 -3
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +3 -3
- package/ListItemText/ListItemText.js +3 -3
- package/ListSubheader/ListSubheader.js +3 -3
- package/Menu/Menu.js +3 -3
- package/MenuItem/MenuItem.js +3 -3
- package/MobileStepper/MobileStepper.js +3 -3
- package/Modal/Modal.js +30 -20
- package/OutlinedInput/OutlinedInput.js +3 -3
- package/Pagination/Pagination.js +3 -3
- package/PaginationItem/PaginationItem.js +3 -3
- package/Paper/Paper.js +3 -3
- package/PigmentContainer/PigmentContainer.d.ts +55 -0
- package/PigmentContainer/PigmentContainer.js +98 -0
- package/PigmentContainer/index.d.ts +3 -0
- package/PigmentContainer/index.js +3 -0
- package/PigmentContainer/package.json +6 -0
- package/PigmentGrid/PigmentGrid.d.ts +108 -0
- package/PigmentGrid/PigmentGrid.js +149 -0
- package/PigmentGrid/index.d.ts +3 -0
- package/PigmentGrid/index.js +3 -0
- package/PigmentGrid/package.json +6 -0
- package/PigmentHidden/PigmentHidden.d.ts +97 -0
- package/PigmentHidden/PigmentHidden.js +278 -0
- package/PigmentHidden/index.d.ts +2 -0
- package/PigmentHidden/index.js +2 -0
- package/PigmentHidden/package.json +6 -0
- package/PigmentStack/PigmentStack.d.ts +51 -0
- package/PigmentStack/PigmentStack.js +81 -0
- package/PigmentStack/index.d.ts +3 -0
- package/PigmentStack/index.js +3 -0
- package/PigmentStack/package.json +6 -0
- package/Popover/Popover.js +3 -3
- package/Popper/Popper.js +6 -5
- package/Radio/Radio.js +3 -3
- package/Rating/Rating.js +3 -3
- package/ScopedCssBaseline/ScopedCssBaseline.js +24 -11
- package/Skeleton/Skeleton.js +3 -3
- package/Slider/Slider.js +3 -3
- package/Snackbar/Snackbar.js +3 -3
- package/SnackbarContent/SnackbarContent.js +3 -3
- package/SpeedDial/SpeedDial.js +3 -3
- package/SpeedDialAction/SpeedDialAction.js +3 -3
- package/SpeedDialIcon/SpeedDialIcon.js +3 -3
- package/Step/Step.js +3 -3
- package/StepButton/StepButton.js +3 -3
- package/StepConnector/StepConnector.js +3 -3
- package/StepContent/StepContent.js +3 -3
- package/StepIcon/StepIcon.js +3 -3
- package/StepLabel/StepLabel.js +3 -3
- package/Stepper/Stepper.js +7 -5
- package/Stepper/stepperClasses.d.ts +2 -0
- package/Stepper/stepperClasses.js +1 -1
- package/SvgIcon/SvgIcon.js +3 -3
- package/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/Switch/Switch.js +3 -3
- package/Tab/Tab.js +11 -9
- package/Tab/tabClasses.d.ts +5 -1
- package/Tab/tabClasses.js +1 -1
- package/TabScrollButton/TabScrollButton.js +3 -3
- package/Table/Table.js +3 -3
- package/TableBody/TableBody.js +3 -3
- package/TableCell/TableCell.js +3 -3
- package/TableContainer/TableContainer.js +3 -3
- package/TableFooter/TableFooter.js +3 -3
- package/TableHead/TableHead.js +3 -3
- package/TablePagination/TablePagination.js +3 -3
- package/TableRow/TableRow.js +3 -3
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/TableSortLabel/tableSortLabelClasses.d.ts +10 -2
- package/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/Tabs/Tabs.js +3 -3
- package/TextField/TextField.js +3 -3
- package/ToggleButton/ToggleButton.js +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.js +3 -3
- package/Toolbar/Toolbar.js +3 -3
- package/Tooltip/Tooltip.js +3 -3
- package/Typography/Typography.js +3 -3
- package/index.js +1 -1
- package/modern/Accordion/Accordion.js +3 -3
- package/modern/AccordionActions/AccordionActions.js +3 -3
- package/modern/AccordionDetails/AccordionDetails.js +3 -3
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Alert/Alert.js +3 -3
- package/modern/AlertTitle/AlertTitle.js +3 -3
- package/modern/AppBar/AppBar.js +3 -3
- package/modern/Autocomplete/Autocomplete.js +3 -3
- package/modern/Avatar/Avatar.js +3 -3
- package/modern/AvatarGroup/AvatarGroup.js +3 -3
- package/modern/Backdrop/Backdrop.js +3 -3
- package/modern/Badge/Badge.js +3 -3
- package/modern/BottomNavigation/BottomNavigation.js +3 -3
- package/modern/BottomNavigationAction/BottomNavigationAction.js +3 -3
- package/modern/Breadcrumbs/Breadcrumbs.js +3 -3
- package/modern/Button/Button.js +3 -3
- package/modern/ButtonBase/ButtonBase.js +3 -3
- package/modern/ButtonBase/TouchRipple.js +3 -3
- package/modern/ButtonGroup/ButtonGroup.js +3 -3
- package/modern/Card/Card.js +3 -3
- package/modern/CardActionArea/CardActionArea.js +3 -3
- package/modern/CardActions/CardActions.js +3 -3
- package/modern/CardContent/CardContent.js +3 -3
- package/modern/CardHeader/CardHeader.js +3 -3
- package/modern/CardMedia/CardMedia.js +3 -3
- package/modern/Checkbox/Checkbox.js +3 -3
- package/modern/Chip/Chip.js +3 -3
- package/modern/CircularProgress/CircularProgress.js +3 -3
- package/modern/Collapse/Collapse.js +3 -3
- package/modern/CssBaseline/CssBaseline.js +66 -8
- package/modern/DefaultPropsProvider/DefaultPropsProvider.js +29 -0
- package/modern/DefaultPropsProvider/index.js +1 -0
- package/modern/Dialog/Dialog.js +3 -3
- package/modern/DialogActions/DialogActions.js +3 -3
- package/modern/DialogContent/DialogContent.js +3 -3
- package/modern/DialogContentText/DialogContentText.js +3 -3
- package/modern/DialogTitle/DialogTitle.js +3 -3
- package/modern/Divider/Divider.js +3 -3
- package/modern/Drawer/Drawer.js +3 -3
- package/modern/Fab/Fab.js +3 -3
- package/modern/FilledInput/FilledInput.js +3 -3
- package/modern/FormControl/FormControl.js +3 -3
- package/modern/FormControlLabel/FormControlLabel.js +3 -3
- package/modern/FormGroup/FormGroup.js +3 -3
- package/modern/FormHelperText/FormHelperText.js +3 -3
- package/modern/FormLabel/FormLabel.js +3 -3
- package/modern/Icon/Icon.js +3 -3
- package/modern/IconButton/IconButton.js +3 -3
- package/modern/ImageList/ImageList.js +3 -3
- package/modern/ImageListItem/ImageListItem.js +3 -3
- package/modern/ImageListItemBar/ImageListItemBar.js +3 -3
- package/modern/InitColorSchemeScript/InitColorSchemeScript.js +16 -0
- package/modern/InitColorSchemeScript/index.js +1 -0
- package/modern/Input/Input.js +3 -3
- package/modern/InputAdornment/InputAdornment.js +3 -3
- package/modern/InputBase/InputBase.js +3 -3
- package/modern/InputLabel/InputLabel.js +3 -3
- package/modern/LinearProgress/LinearProgress.js +3 -3
- package/modern/Link/Link.js +3 -3
- package/modern/List/List.js +3 -3
- package/modern/ListItem/ListItem.js +3 -3
- package/modern/ListItemAvatar/ListItemAvatar.js +3 -3
- package/modern/ListItemButton/ListItemButton.js +3 -3
- package/modern/ListItemIcon/ListItemIcon.js +3 -3
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +3 -3
- package/modern/ListItemText/ListItemText.js +3 -3
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/Menu/Menu.js +3 -3
- package/modern/MenuItem/MenuItem.js +3 -3
- package/modern/MobileStepper/MobileStepper.js +3 -3
- package/modern/Modal/Modal.js +30 -20
- package/modern/OutlinedInput/OutlinedInput.js +3 -3
- package/modern/Pagination/Pagination.js +3 -3
- package/modern/PaginationItem/PaginationItem.js +3 -3
- package/modern/Paper/Paper.js +3 -3
- package/modern/PigmentContainer/PigmentContainer.js +98 -0
- package/modern/PigmentContainer/index.js +3 -0
- package/modern/PigmentGrid/PigmentGrid.js +149 -0
- package/modern/PigmentGrid/index.js +3 -0
- package/modern/PigmentHidden/PigmentHidden.js +278 -0
- package/modern/PigmentHidden/index.js +2 -0
- package/modern/PigmentStack/PigmentStack.js +81 -0
- package/modern/PigmentStack/index.js +3 -0
- package/modern/Popover/Popover.js +3 -3
- package/modern/Popper/Popper.js +6 -5
- package/modern/Radio/Radio.js +3 -3
- package/modern/Rating/Rating.js +3 -3
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +24 -11
- package/modern/Skeleton/Skeleton.js +3 -3
- package/modern/Slider/Slider.js +3 -3
- package/modern/Snackbar/Snackbar.js +3 -3
- package/modern/SnackbarContent/SnackbarContent.js +3 -3
- package/modern/SpeedDial/SpeedDial.js +3 -3
- package/modern/SpeedDialAction/SpeedDialAction.js +3 -3
- package/modern/SpeedDialIcon/SpeedDialIcon.js +3 -3
- package/modern/Step/Step.js +3 -3
- package/modern/StepButton/StepButton.js +3 -3
- package/modern/StepConnector/StepConnector.js +3 -3
- package/modern/StepContent/StepContent.js +3 -3
- package/modern/StepIcon/StepIcon.js +3 -3
- package/modern/StepLabel/StepLabel.js +3 -3
- package/modern/Stepper/Stepper.js +7 -5
- package/modern/Stepper/stepperClasses.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +3 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/Switch/Switch.js +3 -3
- package/modern/Tab/Tab.js +11 -9
- package/modern/Tab/tabClasses.js +1 -1
- package/modern/TabScrollButton/TabScrollButton.js +3 -3
- package/modern/Table/Table.js +3 -3
- package/modern/TableBody/TableBody.js +3 -3
- package/modern/TableCell/TableCell.js +3 -3
- package/modern/TableContainer/TableContainer.js +3 -3
- package/modern/TableFooter/TableFooter.js +3 -3
- package/modern/TableHead/TableHead.js +3 -3
- package/modern/TablePagination/TablePagination.js +3 -3
- package/modern/TableRow/TableRow.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/modern/Tabs/Tabs.js +3 -3
- package/modern/TextField/TextField.js +3 -3
- package/modern/ToggleButton/ToggleButton.js +3 -3
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +3 -3
- package/modern/Toolbar/Toolbar.js +3 -3
- package/modern/Tooltip/Tooltip.js +3 -3
- package/modern/Typography/Typography.js +3 -3
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +19 -7
- package/modern/usePagination/usePagination.js +1 -1
- package/modern/zero-styled/index.js +11 -11
- package/node/Accordion/Accordion.js +2 -2
- package/node/AccordionActions/AccordionActions.js +2 -2
- package/node/AccordionDetails/AccordionDetails.js +2 -2
- package/node/AccordionSummary/AccordionSummary.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/AlertTitle/AlertTitle.js +2 -2
- package/node/AppBar/AppBar.js +2 -2
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/Avatar/Avatar.js +2 -2
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Backdrop/Backdrop.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +2 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/Breadcrumbs/Breadcrumbs.js +2 -2
- package/node/Button/Button.js +2 -2
- package/node/ButtonBase/ButtonBase.js +2 -2
- package/node/ButtonBase/TouchRipple.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/Card/Card.js +2 -2
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CardActions/CardActions.js +2 -2
- package/node/CardContent/CardContent.js +2 -2
- package/node/CardHeader/CardHeader.js +2 -2
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/Checkbox/Checkbox.js +2 -2
- package/node/Chip/Chip.js +2 -2
- package/node/CircularProgress/CircularProgress.js +2 -2
- package/node/Collapse/Collapse.js +2 -2
- package/node/CssBaseline/CssBaseline.js +70 -10
- package/node/DefaultPropsProvider/DefaultPropsProvider.js +38 -0
- package/node/DefaultPropsProvider/index.js +20 -0
- package/node/Dialog/Dialog.js +2 -2
- package/node/DialogActions/DialogActions.js +2 -2
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/DialogContentText/DialogContentText.js +2 -2
- package/node/DialogTitle/DialogTitle.js +2 -2
- package/node/Divider/Divider.js +2 -2
- package/node/Drawer/Drawer.js +2 -2
- package/node/Fab/Fab.js +2 -2
- package/node/FilledInput/FilledInput.js +2 -2
- package/node/FormControl/FormControl.js +2 -2
- package/node/FormControlLabel/FormControlLabel.js +2 -2
- package/node/FormGroup/FormGroup.js +2 -2
- package/node/FormHelperText/FormHelperText.js +2 -2
- package/node/FormLabel/FormLabel.js +2 -2
- package/node/Icon/Icon.js +2 -2
- package/node/IconButton/IconButton.js +2 -2
- package/node/ImageList/ImageList.js +2 -2
- package/node/ImageListItem/ImageListItem.js +2 -2
- package/node/ImageListItemBar/ImageListItemBar.js +2 -2
- package/node/InitColorSchemeScript/InitColorSchemeScript.js +25 -0
- package/node/InitColorSchemeScript/index.js +13 -0
- package/node/Input/Input.js +2 -2
- package/node/InputAdornment/InputAdornment.js +2 -2
- package/node/InputBase/InputBase.js +2 -2
- package/node/InputLabel/InputLabel.js +2 -2
- package/node/LinearProgress/LinearProgress.js +2 -2
- package/node/Link/Link.js +2 -2
- package/node/List/List.js +2 -2
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItemAvatar/ListItemAvatar.js +2 -2
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemIcon/ListItemIcon.js +2 -2
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/node/ListItemText/ListItemText.js +2 -2
- package/node/ListSubheader/ListSubheader.js +2 -2
- package/node/Menu/Menu.js +2 -2
- package/node/MenuItem/MenuItem.js +2 -2
- package/node/MobileStepper/MobileStepper.js +2 -2
- package/node/Modal/Modal.js +29 -20
- package/node/OutlinedInput/OutlinedInput.js +2 -2
- package/node/Pagination/Pagination.js +2 -2
- package/node/PaginationItem/PaginationItem.js +2 -2
- package/node/Paper/Paper.js +2 -2
- package/node/PigmentContainer/PigmentContainer.js +108 -0
- package/node/PigmentContainer/index.js +36 -0
- package/node/PigmentGrid/PigmentGrid.js +159 -0
- package/node/PigmentGrid/index.js +36 -0
- package/node/PigmentHidden/PigmentHidden.js +287 -0
- package/node/PigmentHidden/index.js +26 -0
- package/node/PigmentStack/PigmentStack.js +91 -0
- package/node/PigmentStack/index.js +36 -0
- package/node/Popover/Popover.js +2 -2
- package/node/Popper/Popper.js +7 -6
- package/node/Radio/Radio.js +2 -2
- package/node/Rating/Rating.js +2 -2
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +27 -13
- package/node/Skeleton/Skeleton.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +2 -2
- package/node/SnackbarContent/SnackbarContent.js +2 -2
- package/node/SpeedDial/SpeedDial.js +2 -2
- package/node/SpeedDialAction/SpeedDialAction.js +2 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/node/Step/Step.js +2 -2
- package/node/StepButton/StepButton.js +2 -2
- package/node/StepConnector/StepConnector.js +2 -2
- package/node/StepContent/StepContent.js +2 -2
- package/node/StepIcon/StepIcon.js +2 -2
- package/node/StepLabel/StepLabel.js +2 -2
- package/node/Stepper/Stepper.js +6 -4
- package/node/Stepper/stepperClasses.js +1 -1
- package/node/SvgIcon/SvgIcon.js +2 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +2 -3
- package/node/Switch/Switch.js +2 -2
- package/node/Tab/Tab.js +10 -8
- package/node/Tab/tabClasses.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +2 -2
- package/node/Table/Table.js +2 -2
- package/node/TableBody/TableBody.js +2 -2
- package/node/TableCell/TableCell.js +2 -2
- package/node/TableContainer/TableContainer.js +2 -2
- package/node/TableFooter/TableFooter.js +2 -2
- package/node/TableHead/TableHead.js +2 -2
- package/node/TablePagination/TablePagination.js +2 -2
- package/node/TableRow/TableRow.js +2 -2
- package/node/TableSortLabel/TableSortLabel.js +3 -3
- package/node/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/node/Tabs/Tabs.js +2 -2
- package/node/TextField/TextField.js +2 -2
- package/node/ToggleButton/ToggleButton.js +2 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/node/Toolbar/Toolbar.js +2 -2
- package/node/Tooltip/Tooltip.js +2 -2
- package/node/Typography/Typography.js +2 -2
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +20 -8
- package/node/usePagination/usePagination.js +1 -1
- package/node/zero-styled/index.js +12 -13
- package/package.json +10 -6
- package/styles/CssVarsProvider.d.ts +3 -2
- package/styles/CssVarsProvider.js +19 -7
- package/usePagination/usePagination.js +1 -1
- package/zero-styled/index.d.ts +5 -4
- package/zero-styled/index.js +11 -11
package/modern/Table/Table.js
CHANGED
|
@@ -5,10 +5,10 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import TableContext from './TableContext';
|
|
8
|
-
import { styled
|
|
8
|
+
import { styled } from '../zero-styled';
|
|
9
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
9
10
|
import { getTableUtilityClass } from './tableClasses';
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const useThemeProps = createUseThemeProps('MuiTable');
|
|
12
12
|
const useUtilityClasses = ownerState => {
|
|
13
13
|
const {
|
|
14
14
|
classes,
|
|
@@ -53,7 +53,7 @@ const TableRoot = styled('table', {
|
|
|
53
53
|
}));
|
|
54
54
|
const defaultComponent = 'table';
|
|
55
55
|
const Table = /*#__PURE__*/React.forwardRef(function Table(inProps, ref) {
|
|
56
|
-
const props =
|
|
56
|
+
const props = useDefaultProps({
|
|
57
57
|
props: inProps,
|
|
58
58
|
name: 'MuiTable'
|
|
59
59
|
});
|
|
@@ -5,10 +5,10 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
8
|
-
import { styled
|
|
8
|
+
import { styled } from '../zero-styled';
|
|
9
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
9
10
|
import { getTableBodyUtilityClass } from './tableBodyClasses';
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const useThemeProps = createUseThemeProps('MuiTableBody');
|
|
12
12
|
const useUtilityClasses = ownerState => {
|
|
13
13
|
const {
|
|
14
14
|
classes
|
|
@@ -30,7 +30,7 @@ const tablelvl2 = {
|
|
|
30
30
|
};
|
|
31
31
|
const defaultComponent = 'tbody';
|
|
32
32
|
const TableBody = /*#__PURE__*/React.forwardRef(function TableBody(inProps, ref) {
|
|
33
|
-
const props =
|
|
33
|
+
const props = useDefaultProps({
|
|
34
34
|
props: inProps,
|
|
35
35
|
name: 'MuiTableBody'
|
|
36
36
|
});
|
|
@@ -8,10 +8,10 @@ import { darken, alpha, lighten } from '@mui/system/colorManipulator';
|
|
|
8
8
|
import capitalize from '../utils/capitalize';
|
|
9
9
|
import TableContext from '../Table/TableContext';
|
|
10
10
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
11
|
-
import { styled
|
|
11
|
+
import { styled } from '../zero-styled';
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
13
|
import tableCellClasses, { getTableCellUtilityClass } from './tableCellClasses';
|
|
13
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
const useThemeProps = createUseThemeProps('MuiTableCell');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
classes,
|
|
@@ -150,7 +150,7 @@ const TableCellRoot = styled('td', {
|
|
|
150
150
|
* or otherwise a `<td>` element.
|
|
151
151
|
*/
|
|
152
152
|
const TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref) {
|
|
153
|
-
const props =
|
|
153
|
+
const props = useDefaultProps({
|
|
154
154
|
props: inProps,
|
|
155
155
|
name: 'MuiTableCell'
|
|
156
156
|
});
|
|
@@ -4,10 +4,10 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { styled
|
|
7
|
+
import { styled } from '../zero-styled';
|
|
8
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
8
9
|
import { getTableContainerUtilityClass } from './tableContainerClasses';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const useThemeProps = createUseThemeProps('MuiTableContainer');
|
|
11
11
|
const useUtilityClasses = ownerState => {
|
|
12
12
|
const {
|
|
13
13
|
classes
|
|
@@ -26,7 +26,7 @@ const TableContainerRoot = styled('div', {
|
|
|
26
26
|
overflowX: 'auto'
|
|
27
27
|
});
|
|
28
28
|
const TableContainer = /*#__PURE__*/React.forwardRef(function TableContainer(inProps, ref) {
|
|
29
|
-
const props =
|
|
29
|
+
const props = useDefaultProps({
|
|
30
30
|
props: inProps,
|
|
31
31
|
name: 'MuiTableContainer'
|
|
32
32
|
});
|
|
@@ -5,10 +5,10 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
8
|
-
import { styled
|
|
8
|
+
import { styled } from '../zero-styled';
|
|
9
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
9
10
|
import { getTableFooterUtilityClass } from './tableFooterClasses';
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const useThemeProps = createUseThemeProps('MuiTableFooter');
|
|
12
12
|
const useUtilityClasses = ownerState => {
|
|
13
13
|
const {
|
|
14
14
|
classes
|
|
@@ -30,7 +30,7 @@ const tablelvl2 = {
|
|
|
30
30
|
};
|
|
31
31
|
const defaultComponent = 'tfoot';
|
|
32
32
|
const TableFooter = /*#__PURE__*/React.forwardRef(function TableFooter(inProps, ref) {
|
|
33
|
-
const props =
|
|
33
|
+
const props = useDefaultProps({
|
|
34
34
|
props: inProps,
|
|
35
35
|
name: 'MuiTableFooter'
|
|
36
36
|
});
|
|
@@ -5,10 +5,10 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
8
|
-
import { styled
|
|
8
|
+
import { styled } from '../zero-styled';
|
|
9
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
9
10
|
import { getTableHeadUtilityClass } from './tableHeadClasses';
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const useThemeProps = createUseThemeProps('MuiTableHead');
|
|
12
12
|
const useUtilityClasses = ownerState => {
|
|
13
13
|
const {
|
|
14
14
|
classes
|
|
@@ -30,7 +30,7 @@ const tablelvl2 = {
|
|
|
30
30
|
};
|
|
31
31
|
const defaultComponent = 'thead';
|
|
32
32
|
const TableHead = /*#__PURE__*/React.forwardRef(function TableHead(inProps, ref) {
|
|
33
|
-
const props =
|
|
33
|
+
const props = useDefaultProps({
|
|
34
34
|
props: inProps,
|
|
35
35
|
name: 'MuiTableHead'
|
|
36
36
|
});
|
|
@@ -8,7 +8,8 @@ import integerPropType from '@mui/utils/integerPropType';
|
|
|
8
8
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
9
9
|
import { isHostComponent } from '@mui/base/utils';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
-
import { styled
|
|
11
|
+
import { styled } from '../zero-styled';
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
13
|
import InputBase from '../InputBase';
|
|
13
14
|
import MenuItem from '../MenuItem';
|
|
14
15
|
import Select from '../Select';
|
|
@@ -19,7 +20,6 @@ import useId from '../utils/useId';
|
|
|
19
20
|
import tablePaginationClasses, { getTablePaginationUtilityClass } from './tablePaginationClasses';
|
|
20
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
22
|
import { createElement as _createElement } from "react";
|
|
22
|
-
const useThemeProps = createUseThemeProps('MuiTablePagination');
|
|
23
23
|
const TablePaginationRoot = styled(TableCell, {
|
|
24
24
|
name: 'MuiTablePagination',
|
|
25
25
|
slot: 'Root',
|
|
@@ -146,7 +146,7 @@ const useUtilityClasses = ownerState => {
|
|
|
146
146
|
* A `TableCell` based component for placing inside `TableFooter` for pagination.
|
|
147
147
|
*/
|
|
148
148
|
const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(inProps, ref) {
|
|
149
|
-
const props =
|
|
149
|
+
const props = useDefaultProps({
|
|
150
150
|
props: inProps,
|
|
151
151
|
name: 'MuiTablePagination'
|
|
152
152
|
});
|
|
@@ -6,10 +6,10 @@ import clsx from 'clsx';
|
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import { alpha } from '@mui/system/colorManipulator';
|
|
8
8
|
import Tablelvl2Context from '../Table/Tablelvl2Context';
|
|
9
|
-
import { styled
|
|
9
|
+
import { styled } from '../zero-styled';
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
10
11
|
import tableRowClasses, { getTableRowUtilityClass } from './tableRowClasses';
|
|
11
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
const useThemeProps = createUseThemeProps('MuiTableRow');
|
|
13
13
|
const useUtilityClasses = ownerState => {
|
|
14
14
|
const {
|
|
15
15
|
classes,
|
|
@@ -56,7 +56,7 @@ const defaultComponent = 'tr';
|
|
|
56
56
|
* based on the material table element parent (head, body, etc).
|
|
57
57
|
*/
|
|
58
58
|
const TableRow = /*#__PURE__*/React.forwardRef(function TableRow(inProps, ref) {
|
|
59
|
-
const props =
|
|
59
|
+
const props = useDefaultProps({
|
|
60
60
|
props: inProps,
|
|
61
61
|
name: 'MuiTableRow'
|
|
62
62
|
});
|
|
@@ -6,11 +6,11 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import ButtonBase from '../ButtonBase';
|
|
8
8
|
import ArrowDownwardIcon from '../internal/svg-icons/ArrowDownward';
|
|
9
|
-
import { styled
|
|
9
|
+
import { styled } from '../zero-styled';
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
10
11
|
import capitalize from '../utils/capitalize';
|
|
11
12
|
import tableSortLabelClasses, { getTableSortLabelUtilityClass } from './tableSortLabelClasses';
|
|
12
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
const useThemeProps = createUseThemeProps('MuiTableSortLabel');
|
|
14
14
|
const useUtilityClasses = ownerState => {
|
|
15
15
|
const {
|
|
16
16
|
classes,
|
|
@@ -18,7 +18,7 @@ const useUtilityClasses = ownerState => {
|
|
|
18
18
|
active
|
|
19
19
|
} = ownerState;
|
|
20
20
|
const slots = {
|
|
21
|
-
root: ['root', active && 'active'],
|
|
21
|
+
root: ['root', active && 'active', `direction${capitalize(direction)}`],
|
|
22
22
|
icon: ['icon', `iconDirection${capitalize(direction)}`]
|
|
23
23
|
};
|
|
24
24
|
return composeClasses(slots, getTableSortLabelUtilityClass, classes);
|
|
@@ -98,7 +98,7 @@ const TableSortLabelIcon = styled('span', {
|
|
|
98
98
|
* A button based label for placing inside `TableCell` for column sorting.
|
|
99
99
|
*/
|
|
100
100
|
const TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabel(inProps, ref) {
|
|
101
|
-
const props =
|
|
101
|
+
const props = useDefaultProps({
|
|
102
102
|
props: inProps,
|
|
103
103
|
name: 'MuiTableSortLabel'
|
|
104
104
|
});
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getTableSortLabelUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiTableSortLabel', slot);
|
|
5
5
|
}
|
|
6
|
-
const tableSortLabelClasses = generateUtilityClasses('MuiTableSortLabel', ['root', 'active', 'icon', 'iconDirectionDesc', 'iconDirectionAsc']);
|
|
6
|
+
const tableSortLabelClasses = generateUtilityClasses('MuiTableSortLabel', ['root', 'active', 'icon', 'iconDirectionDesc', 'iconDirectionAsc', 'directionDesc', 'directionAsc']);
|
|
7
7
|
export default tableSortLabelClasses;
|
package/modern/Tabs/Tabs.js
CHANGED
|
@@ -8,7 +8,8 @@ import refType from '@mui/utils/refType';
|
|
|
8
8
|
import { useSlotProps } from '@mui/base/utils';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
11
|
-
import { styled,
|
|
11
|
+
import { styled, useTheme } from '../zero-styled';
|
|
12
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
12
13
|
import debounce from '../utils/debounce';
|
|
13
14
|
import animate from '../internal/animate';
|
|
14
15
|
import ScrollbarSize from './ScrollbarSize';
|
|
@@ -18,7 +19,6 @@ import tabsClasses, { getTabsUtilityClass } from './tabsClasses';
|
|
|
18
19
|
import ownerDocument from '../utils/ownerDocument';
|
|
19
20
|
import ownerWindow from '../utils/ownerWindow';
|
|
20
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
const useThemeProps = createUseThemeProps('MuiTabs');
|
|
22
22
|
const nextItem = (list, item) => {
|
|
23
23
|
if (list === item) {
|
|
24
24
|
return list.firstChild;
|
|
@@ -252,7 +252,7 @@ const TabsScrollbarSize = styled(ScrollbarSize)({
|
|
|
252
252
|
const defaultIndicatorStyle = {};
|
|
253
253
|
let warnedOnceTabPresent = false;
|
|
254
254
|
const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
255
|
-
const props =
|
|
255
|
+
const props = useDefaultProps({
|
|
256
256
|
props: inProps,
|
|
257
257
|
name: 'MuiTabs'
|
|
258
258
|
});
|
|
@@ -6,7 +6,8 @@ import clsx from 'clsx';
|
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import useId from '@mui/utils/useId';
|
|
8
8
|
import refType from '@mui/utils/refType';
|
|
9
|
-
import { styled
|
|
9
|
+
import { styled } from '../zero-styled';
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
10
11
|
import Input from '../Input';
|
|
11
12
|
import FilledInput from '../FilledInput';
|
|
12
13
|
import OutlinedInput from '../OutlinedInput';
|
|
@@ -17,7 +18,6 @@ import Select from '../Select';
|
|
|
17
18
|
import { getTextFieldUtilityClass } from './textFieldClasses';
|
|
18
19
|
import useSlot from '../utils/useSlot';
|
|
19
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
const useThemeProps = createUseThemeProps('MuiTextField');
|
|
21
21
|
const variantComponent = {
|
|
22
22
|
standard: Input,
|
|
23
23
|
filled: FilledInput,
|
|
@@ -71,7 +71,7 @@ const TextFieldRoot = styled(FormControl, {
|
|
|
71
71
|
* - using the underlying components directly as shown in the demos
|
|
72
72
|
*/
|
|
73
73
|
const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
|
|
74
|
-
const props =
|
|
74
|
+
const props = useDefaultProps({
|
|
75
75
|
props: inProps,
|
|
76
76
|
name: 'MuiTextField'
|
|
77
77
|
});
|
|
@@ -9,13 +9,13 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
9
9
|
import { alpha } from '@mui/system/colorManipulator';
|
|
10
10
|
import ButtonBase from '../ButtonBase';
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
|
-
import {
|
|
12
|
+
import { styled } from '../zero-styled';
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
14
|
import toggleButtonClasses, { getToggleButtonUtilityClass } from './toggleButtonClasses';
|
|
14
15
|
import ToggleButtonGroupContext from '../ToggleButtonGroup/ToggleButtonGroupContext';
|
|
15
16
|
import ToggleButtonGroupButtonContext from '../ToggleButtonGroup/ToggleButtonGroupButtonContext';
|
|
16
17
|
import isValueSelected from '../ToggleButtonGroup/isValueSelected';
|
|
17
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
const useThemeProps = createUseThemeProps('MuiToggleButton');
|
|
19
19
|
const useUtilityClasses = ownerState => {
|
|
20
20
|
const {
|
|
21
21
|
classes,
|
|
@@ -129,7 +129,7 @@ const ToggleButton = /*#__PURE__*/React.forwardRef(function ToggleButton(inProps
|
|
|
129
129
|
...contextProps,
|
|
130
130
|
selected: isValueSelected(inProps.value, contextValue)
|
|
131
131
|
}, inProps);
|
|
132
|
-
const props =
|
|
132
|
+
const props = useDefaultProps({
|
|
133
133
|
props: resolvedProps,
|
|
134
134
|
name: 'MuiToggleButton'
|
|
135
135
|
});
|
|
@@ -6,14 +6,14 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
8
|
import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
|
9
|
-
import { styled
|
|
9
|
+
import { styled } from '../zero-styled';
|
|
10
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
10
11
|
import capitalize from '../utils/capitalize';
|
|
11
12
|
import toggleButtonGroupClasses, { getToggleButtonGroupUtilityClass } from './toggleButtonGroupClasses';
|
|
12
13
|
import ToggleButtonGroupContext from './ToggleButtonGroupContext';
|
|
13
14
|
import ToggleButtonGroupButtonContext from './ToggleButtonGroupButtonContext';
|
|
14
15
|
import toggleButtonClasses from '../ToggleButton/toggleButtonClasses';
|
|
15
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
const useThemeProps = createUseThemeProps('MuiToggleButtonGroup');
|
|
17
17
|
const useUtilityClasses = ownerState => {
|
|
18
18
|
const {
|
|
19
19
|
classes,
|
|
@@ -115,7 +115,7 @@ const ToggleButtonGroupRoot = styled('div', {
|
|
|
115
115
|
}]
|
|
116
116
|
}));
|
|
117
117
|
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGroup(inProps, ref) {
|
|
118
|
-
const props =
|
|
118
|
+
const props = useDefaultProps({
|
|
119
119
|
props: inProps,
|
|
120
120
|
name: 'MuiToggleButtonGroup'
|
|
121
121
|
});
|
|
@@ -4,10 +4,10 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { styled
|
|
7
|
+
import { styled } from '../zero-styled';
|
|
8
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
8
9
|
import { getToolbarUtilityClass } from './toolbarClasses';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const useThemeProps = createUseThemeProps('MuiToolbar');
|
|
11
11
|
const useUtilityClasses = ownerState => {
|
|
12
12
|
const {
|
|
13
13
|
classes,
|
|
@@ -61,7 +61,7 @@ const ToolbarRoot = styled('div', {
|
|
|
61
61
|
}]
|
|
62
62
|
}));
|
|
63
63
|
const Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
|
|
64
|
-
const props =
|
|
64
|
+
const props = useDefaultProps({
|
|
65
65
|
props: inProps,
|
|
66
66
|
name: 'MuiToolbar'
|
|
67
67
|
});
|
|
@@ -9,7 +9,8 @@ import { appendOwnerState } from '@mui/base/utils';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { alpha } from '@mui/system/colorManipulator';
|
|
11
11
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
12
|
-
import { styled,
|
|
12
|
+
import { styled, useTheme } from '../zero-styled';
|
|
13
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
13
14
|
import capitalize from '../utils/capitalize';
|
|
14
15
|
import Grow from '../Grow';
|
|
15
16
|
import Popper from '../Popper';
|
|
@@ -20,7 +21,6 @@ import useIsFocusVisible from '../utils/useIsFocusVisible';
|
|
|
20
21
|
import useControlled from '../utils/useControlled';
|
|
21
22
|
import tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses';
|
|
22
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
-
const useThemeProps = createUseThemeProps('MuiTooltip');
|
|
24
24
|
function round(value) {
|
|
25
25
|
return Math.round(value * 1e5) / 1e5;
|
|
26
26
|
}
|
|
@@ -309,7 +309,7 @@ function composeEventHandler(handler, eventHandler) {
|
|
|
309
309
|
|
|
310
310
|
// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.
|
|
311
311
|
const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
312
|
-
const props =
|
|
312
|
+
const props = useDefaultProps({
|
|
313
313
|
props: inProps,
|
|
314
314
|
name: 'MuiTooltip'
|
|
315
315
|
});
|
|
@@ -4,11 +4,11 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { styled,
|
|
7
|
+
import { styled, internal_createExtendSxProp } from '../zero-styled';
|
|
8
|
+
import { useDefaultProps } from '../DefaultPropsProvider';
|
|
8
9
|
import capitalize from '../utils/capitalize';
|
|
9
10
|
import { getTypographyUtilityClass } from './typographyClasses';
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const useThemeProps = createUseThemeProps('MuiTypography');
|
|
12
12
|
const extendSxProp = internal_createExtendSxProp();
|
|
13
13
|
const useUtilityClasses = ownerState => {
|
|
14
14
|
const {
|
|
@@ -121,7 +121,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
|
121
121
|
const {
|
|
122
122
|
color,
|
|
123
123
|
...themeProps
|
|
124
|
-
} =
|
|
124
|
+
} = useDefaultProps({
|
|
125
125
|
props: inProps,
|
|
126
126
|
name: 'MuiTypography'
|
|
127
127
|
});
|
package/modern/index.js
CHANGED
|
@@ -6,21 +6,22 @@ import styleFunctionSx from '@mui/system/styleFunctionSx';
|
|
|
6
6
|
import extendTheme from './extendTheme';
|
|
7
7
|
import createTypography from './createTypography';
|
|
8
8
|
import THEME_ID from './identifier';
|
|
9
|
+
import { defaultConfig } from '../InitColorSchemeScript/InitColorSchemeScript';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
const defaultTheme = extendTheme();
|
|
11
12
|
const {
|
|
12
13
|
CssVarsProvider,
|
|
13
14
|
useColorScheme,
|
|
14
|
-
getInitColorSchemeScript
|
|
15
|
+
getInitColorSchemeScript: deprecatedGetInitColorSchemeScript
|
|
15
16
|
} = createCssVarsProvider({
|
|
16
17
|
themeId: THEME_ID,
|
|
17
18
|
theme: defaultTheme,
|
|
18
|
-
attribute:
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
attribute: defaultConfig.attribute,
|
|
20
|
+
colorSchemeStorageKey: defaultConfig.colorSchemeStorageKey,
|
|
21
|
+
modeStorageKey: defaultConfig.modeStorageKey,
|
|
21
22
|
defaultColorScheme: {
|
|
22
|
-
light:
|
|
23
|
-
dark:
|
|
23
|
+
light: defaultConfig.defaultLightColorScheme,
|
|
24
|
+
dark: defaultConfig.defaultDarkColorScheme
|
|
24
25
|
},
|
|
25
26
|
resolveTheme: theme => {
|
|
26
27
|
const newTheme = {
|
|
@@ -38,6 +39,7 @@ const {
|
|
|
38
39
|
});
|
|
39
40
|
let warnedOnce = false;
|
|
40
41
|
|
|
42
|
+
// TODO: remove in v7
|
|
41
43
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
42
44
|
function Experimental_CssVarsProvider(props) {
|
|
43
45
|
if (!warnedOnce) {
|
|
@@ -48,4 +50,14 @@ function Experimental_CssVarsProvider(props) {
|
|
|
48
50
|
...props
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
|
-
|
|
53
|
+
let warnedInitScriptOnce = false;
|
|
54
|
+
|
|
55
|
+
// TODO: remove in v7
|
|
56
|
+
const getInitColorSchemeScript = params => {
|
|
57
|
+
if (!warnedInitScriptOnce) {
|
|
58
|
+
console.warn(['MUI: The getInitColorSchemeScript function has been deprecated.', '', "You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`", 'and replace the function call with `<InitColorSchemeScript />` instead.'].join('\n'));
|
|
59
|
+
warnedInitScriptOnce = true;
|
|
60
|
+
}
|
|
61
|
+
return deprecatedGetInitColorSchemeScript(params);
|
|
62
|
+
};
|
|
63
|
+
export { useColorScheme, CssVarsProvider, getInitColorSchemeScript, Experimental_CssVarsProvider };
|
|
@@ -55,7 +55,7 @@ export default function usePagination(props = {}) {
|
|
|
55
55
|
// Upper boundary when page is low
|
|
56
56
|
boundaryCount + siblingCount * 2 + 2),
|
|
57
57
|
// Less than endPages
|
|
58
|
-
|
|
58
|
+
count - boundaryCount - 1);
|
|
59
59
|
|
|
60
60
|
// Basic list of items to render
|
|
61
61
|
// for example itemList = ['first', 'previous', 1, 'ellipsis', 4, 5, 6, 'ellipsis', 10, 'next', 'last']
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { extendSxProp } from '@mui/system/styleFunctionSx';
|
|
3
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
4
3
|
import useTheme from '../styles/useTheme';
|
|
5
4
|
import GlobalStyles from '../GlobalStyles';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
6
|
export { css, keyframes } from '@mui/system';
|
|
8
7
|
export { default as styled } from '../styles/styled';
|
|
9
8
|
export function globalCss(styles) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
return function GlobalStylesWrapper(props) {
|
|
10
|
+
return (
|
|
11
|
+
/*#__PURE__*/
|
|
12
|
+
// Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
|
|
13
|
+
_jsx(GlobalStyles, {
|
|
14
|
+
styles: typeof styles === 'function' ? theme => styles({
|
|
15
|
+
theme,
|
|
16
|
+
...props
|
|
17
|
+
}) : styles
|
|
18
|
+
})
|
|
19
|
+
);
|
|
15
20
|
};
|
|
16
21
|
}
|
|
17
22
|
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
19
|
-
export function createUseThemeProps(name) {
|
|
20
|
-
return useThemeProps;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24
24
|
export function internal_createExtendSxProp() {
|
|
25
25
|
return extendSxProp;
|
|
@@ -13,6 +13,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
13
13
|
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _zeroStyled = require("../zero-styled");
|
|
16
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
16
17
|
var _Collapse = _interopRequireDefault(require("../Collapse"));
|
|
17
18
|
var _Paper = _interopRequireDefault(require("../Paper"));
|
|
18
19
|
var _AccordionContext = _interopRequireDefault(require("./AccordionContext"));
|
|
@@ -22,7 +23,6 @@ var _accordionClasses = _interopRequireWildcard(require("./accordionClasses"));
|
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
25
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
|
-
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAccordion');
|
|
26
26
|
const useUtilityClasses = ownerState => {
|
|
27
27
|
const {
|
|
28
28
|
classes,
|
|
@@ -126,7 +126,7 @@ const AccordionRoot = (0, _zeroStyled.styled)(_Paper.default, {
|
|
|
126
126
|
}]
|
|
127
127
|
}));
|
|
128
128
|
const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {
|
|
129
|
-
const props =
|
|
129
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
130
130
|
props: inProps,
|
|
131
131
|
name: 'MuiAccordion'
|
|
132
132
|
});
|
|
@@ -11,11 +11,11 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
12
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
13
|
var _zeroStyled = require("../zero-styled");
|
|
14
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
14
15
|
var _accordionActionsClasses = require("./accordionActionsClasses");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
-
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAccordionActions');
|
|
19
19
|
const useUtilityClasses = ownerState => {
|
|
20
20
|
const {
|
|
21
21
|
classes,
|
|
@@ -50,7 +50,7 @@ const AccordionActionsRoot = (0, _zeroStyled.styled)('div', {
|
|
|
50
50
|
}]
|
|
51
51
|
});
|
|
52
52
|
const AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions(inProps, ref) {
|
|
53
|
-
const props =
|
|
53
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
54
54
|
props: inProps,
|
|
55
55
|
name: 'MuiAccordionActions'
|
|
56
56
|
});
|
|
@@ -11,11 +11,11 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
12
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
13
|
var _zeroStyled = require("../zero-styled");
|
|
14
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
14
15
|
var _accordionDetailsClasses = require("./accordionDetailsClasses");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
-
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAccordionDetails');
|
|
19
19
|
const useUtilityClasses = ownerState => {
|
|
20
20
|
const {
|
|
21
21
|
classes
|
|
@@ -35,7 +35,7 @@ const AccordionDetailsRoot = (0, _zeroStyled.styled)('div', {
|
|
|
35
35
|
padding: theme.spacing(1, 2, 2)
|
|
36
36
|
}));
|
|
37
37
|
const AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(inProps, ref) {
|
|
38
|
-
const props =
|
|
38
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
39
39
|
props: inProps,
|
|
40
40
|
name: 'MuiAccordionDetails'
|
|
41
41
|
});
|
|
@@ -11,13 +11,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
12
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
13
|
var _zeroStyled = require("../zero-styled");
|
|
14
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
14
15
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
15
16
|
var _AccordionContext = _interopRequireDefault(require("../Accordion/AccordionContext"));
|
|
16
17
|
var _accordionSummaryClasses = _interopRequireWildcard(require("./accordionSummaryClasses"));
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAccordionSummary');
|
|
21
21
|
const useUtilityClasses = ownerState => {
|
|
22
22
|
const {
|
|
23
23
|
classes,
|
|
@@ -107,7 +107,7 @@ const AccordionSummaryExpandIconWrapper = (0, _zeroStyled.styled)('div', {
|
|
|
107
107
|
}
|
|
108
108
|
}));
|
|
109
109
|
const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(inProps, ref) {
|
|
110
|
-
const props =
|
|
110
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
111
111
|
props: inProps,
|
|
112
112
|
name: 'MuiAccordionSummary'
|
|
113
113
|
});
|
package/node/Alert/Alert.js
CHANGED
|
@@ -12,6 +12,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
12
12
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
13
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
14
14
|
var _zeroStyled = require("../zero-styled");
|
|
15
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
15
16
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
16
17
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
17
18
|
var _Paper = _interopRequireDefault(require("../Paper"));
|
|
@@ -25,7 +26,6 @@ var _Close = _interopRequireDefault(require("../internal/svg-icons/Close"));
|
|
|
25
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
27
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
|
-
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAlert');
|
|
29
29
|
const useUtilityClasses = ownerState => {
|
|
30
30
|
const {
|
|
31
31
|
variant,
|
|
@@ -152,7 +152,7 @@ const defaultIconMapping = {
|
|
|
152
152
|
})
|
|
153
153
|
};
|
|
154
154
|
const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
155
|
-
const props =
|
|
155
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
156
156
|
props: inProps,
|
|
157
157
|
name: 'MuiAlert'
|
|
158
158
|
});
|