@mui/material 5.0.2 → 5.0.6
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 +1 -1
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/AccordionActions.js +1 -1
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/AccordionDetails.js +1 -1
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/AccordionSummary.js +1 -1
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/Alert.js +1 -1
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/AlertTitle.js +1 -1
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/AppBar.js +1 -1
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +15 -11
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/Avatar.js +1 -1
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.js +3 -3
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.js +1 -1
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/Breadcrumbs.js +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/Button.js +1 -1
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/ButtonBase.js +1 -1
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +251 -0
- package/Card/Card.js +1 -1
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +1 -1
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/CardActions.js +1 -1
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/CardContent.js +1 -1
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/CardHeader.js +1 -1
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/CardMedia.js +2 -2
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/Checkbox.js +1 -1
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +6 -5
- 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/ClickAwayListener/index.js +2 -2
- package/Collapse/Collapse.js +17 -4
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/Container.js +1 -1
- package/Container/containerClasses.d.ts +22 -22
- package/Dialog/Dialog.d.ts +1 -1
- package/Dialog/Dialog.js +1 -1
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/DialogActions.js +1 -1
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.js +3 -2
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/DialogContentText.js +1 -1
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/DialogTitle.js +1 -1
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.js +1 -1
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.js +1 -1
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +1 -1
- package/Fab/fabClasses.d.ts +26 -26
- package/Fade/Fade.d.ts +1 -1
- package/Fade/Fade.js +19 -2
- package/FilledInput/FilledInput.js +1 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControl.js +1 -1
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
- package/FormGroup/FormGroup.js +1 -1
- package/FormGroup/formGroupClasses.d.ts +10 -10
- package/FormHelperText/FormHelperText.js +1 -1
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.js +1 -1
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/Grid.js +6 -3
- package/Grid/gridClasses.d.ts +48 -48
- package/Grow/Grow.d.ts +1 -1
- package/Grow/Grow.js +17 -4
- package/Icon/Icon.js +1 -1
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +1 -1
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/ImageList.js +1 -1
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/ImageListItem.js +1 -1
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +1 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +4 -9
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/InputLabel.js +2 -2
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LICENSE +21 -21
- package/LinearProgress/LinearProgress.js +1 -1
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +1 -1
- package/Link/linkClasses.d.ts +18 -18
- package/List/List.js +1 -1
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +1 -1
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/ListItemAvatar.js +1 -1
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +1 -1
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/ListItemText.js +1 -1
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/ListSubheader.js +1 -1
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/Menu.js +1 -1
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +5 -2
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/MobileStepper.js +1 -1
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/NativeSelect.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +30 -30
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/Pagination.js +1 -1
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.js +4 -5
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.js +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/Popover.d.ts +1 -1
- package/Popover/Popover.js +1 -1
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/index.d.ts +2 -2
- package/Popper/index.js +1 -1
- package/README.md +8 -3
- package/Radio/Radio.js +1 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/Rating/Rating.js +1 -2
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.js +1 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/Skeleton.js +1 -1
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slide/Slide.d.ts +1 -1
- package/Slide/Slide.js +19 -2
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.d.ts +2 -2
- package/Snackbar/Snackbar.js +2 -2
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Stack/Stack.js +1 -1
- package/Step/Step.js +1 -1
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/StepButton.js +1 -1
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/StepConnector.js +1 -1
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/StepContent.js +1 -1
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/StepIcon.js +1 -1
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +1 -1
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/Stepper.js +1 -1
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +1 -1
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/Switch.js +1 -1
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.d.ts +6 -0
- package/Tab/Tab.js +34 -10
- package/Tab/tabClasses.d.ts +26 -24
- package/Tab/tabClasses.js +1 -1
- package/TabScrollButton/TabScrollButton.js +1 -1
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.js +1 -1
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/TableBody.js +1 -1
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/TableCell.js +1 -1
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/TableContainer.js +1 -1
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/TableFooter.js +1 -1
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/TableHead.js +1 -1
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/TablePagination.js +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.js +1 -1
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.js +1 -1
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.js +1 -1
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/TextField.js +1 -1
- package/TextField/textFieldClasses.d.ts +8 -8
- package/TextareaAutosize/index.d.ts +2 -2
- package/TextareaAutosize/index.js +1 -1
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/Toolbar.js +1 -1
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.d.ts +30 -3
- package/Tooltip/Tooltip.js +57 -25
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/Typography.js +1 -1
- package/Typography/typographyClasses.d.ts +50 -50
- package/Zoom/Zoom.d.ts +1 -1
- package/Zoom/Zoom.js +19 -2
- package/colors/amber.d.ts +15 -15
- package/colors/blue.d.ts +15 -15
- package/colors/blueGrey.d.ts +15 -15
- package/colors/brown.d.ts +15 -15
- package/colors/common.d.ts +3 -3
- package/colors/cyan.d.ts +15 -15
- package/colors/deepOrange.d.ts +15 -15
- package/colors/deepPurple.d.ts +15 -15
- package/colors/green.d.ts +15 -15
- package/colors/grey.d.ts +15 -15
- package/colors/indigo.d.ts +15 -15
- package/colors/lightBlue.d.ts +15 -15
- package/colors/lightGreen.d.ts +15 -15
- package/colors/lime.d.ts +15 -15
- package/colors/orange.d.ts +15 -15
- package/colors/pink.d.ts +15 -15
- package/colors/purple.d.ts +15 -15
- package/colors/red.d.ts +15 -15
- package/colors/teal.d.ts +15 -15
- package/colors/yellow.d.ts +15 -15
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Accordion/Accordion.js +1 -1
- package/legacy/AccordionActions/AccordionActions.js +1 -1
- package/legacy/AccordionDetails/AccordionDetails.js +1 -1
- package/legacy/AccordionSummary/AccordionSummary.js +1 -1
- package/legacy/Alert/Alert.js +1 -1
- package/legacy/AlertTitle/AlertTitle.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +34 -33
- package/legacy/Avatar/Avatar.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +3 -3
- package/legacy/Backdrop/Backdrop.js +1 -1
- package/legacy/Badge/Badge.js +1 -1
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
- package/legacy/Button/Button.js +1 -1
- package/legacy/ButtonBase/ButtonBase.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- package/legacy/Card/Card.js +1 -1
- package/legacy/CardActionArea/CardActionArea.js +1 -1
- package/legacy/CardActions/CardActions.js +1 -1
- package/legacy/CardContent/CardContent.js +1 -1
- package/legacy/CardHeader/CardHeader.js +1 -1
- package/legacy/CardMedia/CardMedia.js +2 -2
- package/legacy/Checkbox/Checkbox.js +1 -1
- package/legacy/Chip/Chip.js +6 -5
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ClickAwayListener/index.js +2 -2
- package/legacy/Collapse/Collapse.js +18 -5
- package/legacy/Container/Container.js +1 -1
- package/legacy/Dialog/Dialog.js +1 -1
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/DialogContent/DialogContent.js +6 -6
- package/legacy/DialogContentText/DialogContentText.js +1 -1
- package/legacy/DialogTitle/DialogTitle.js +1 -1
- package/legacy/Divider/Divider.js +1 -1
- package/legacy/Drawer/Drawer.js +1 -1
- package/legacy/Fab/Fab.js +1 -1
- package/legacy/Fade/Fade.js +20 -3
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormGroup/FormGroup.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +1 -1
- package/legacy/FormLabel/FormLabel.js +1 -1
- package/legacy/Grid/Grid.js +6 -4
- package/legacy/Grow/Grow.js +18 -5
- package/legacy/Icon/Icon.js +1 -1
- package/legacy/IconButton/IconButton.js +1 -1
- package/legacy/ImageList/ImageList.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +1 -1
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +4 -9
- package/legacy/InputLabel/InputLabel.js +2 -2
- package/legacy/LinearProgress/LinearProgress.js +1 -1
- package/legacy/Link/Link.js +1 -1
- package/legacy/List/List.js +1 -1
- package/legacy/ListItem/ListItem.js +1 -1
- package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
- package/legacy/ListItemButton/ListItemButton.js +1 -1
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/legacy/ListItemText/ListItemText.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +1 -1
- package/legacy/Menu/Menu.js +1 -1
- package/legacy/MenuItem/MenuItem.js +5 -2
- package/legacy/MobileStepper/MobileStepper.js +1 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/NativeSelect/NativeSelect.js +1 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +4 -5
- package/legacy/Paper/Paper.js +1 -1
- package/legacy/Popover/Popover.js +1 -1
- package/legacy/Popper/index.js +1 -1
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Select/Select.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/Slide/Slide.js +20 -3
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/Snackbar/Snackbar.js +2 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/legacy/Stack/Stack.js +1 -1
- package/legacy/Step/Step.js +1 -1
- package/legacy/StepButton/StepButton.js +1 -1
- package/legacy/StepConnector/StepConnector.js +1 -1
- package/legacy/StepContent/StepContent.js +1 -1
- package/legacy/StepIcon/StepIcon.js +1 -1
- package/legacy/StepLabel/StepLabel.js +1 -1
- package/legacy/Stepper/Stepper.js +1 -1
- package/legacy/SvgIcon/SvgIcon.js +1 -1
- package/legacy/Switch/Switch.js +1 -1
- package/legacy/Tab/Tab.js +35 -10
- package/legacy/Tab/tabClasses.js +1 -1
- package/legacy/TabScrollButton/TabScrollButton.js +1 -1
- package/legacy/Table/Table.js +1 -1
- package/legacy/TableBody/TableBody.js +1 -1
- package/legacy/TableCell/TableCell.js +1 -1
- package/legacy/TableContainer/TableContainer.js +1 -1
- package/legacy/TableFooter/TableFooter.js +1 -1
- package/legacy/TableHead/TableHead.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +1 -1
- package/legacy/TableSortLabel/TableSortLabel.js +1 -1
- package/legacy/Tabs/Tabs.js +1 -1
- package/legacy/TextField/TextField.js +1 -1
- package/legacy/TextareaAutosize/index.js +1 -1
- package/legacy/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Toolbar/Toolbar.js +1 -1
- package/legacy/Tooltip/Tooltip.js +56 -25
- package/legacy/Typography/Typography.js +1 -1
- package/legacy/Zoom/Zoom.js +20 -3
- package/legacy/index.js +1 -1
- package/legacy/styles/index.js +1 -1
- package/legacy/utils/index.js +2 -1
- package/locale/index.d.ts +65 -65
- package/modern/Accordion/Accordion.js +1 -1
- package/modern/AccordionActions/AccordionActions.js +1 -1
- package/modern/AccordionDetails/AccordionDetails.js +1 -1
- package/modern/AccordionSummary/AccordionSummary.js +1 -1
- package/modern/Alert/Alert.js +1 -1
- package/modern/AlertTitle/AlertTitle.js +1 -1
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +15 -11
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +3 -3
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +1 -1
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
- package/modern/Button/Button.js +1 -1
- package/modern/ButtonBase/ButtonBase.js +1 -1
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- package/modern/Card/Card.js +1 -1
- package/modern/CardActionArea/CardActionArea.js +1 -1
- package/modern/CardActions/CardActions.js +1 -1
- package/modern/CardContent/CardContent.js +1 -1
- package/modern/CardHeader/CardHeader.js +1 -1
- package/modern/CardMedia/CardMedia.js +2 -2
- package/modern/Checkbox/Checkbox.js +1 -1
- package/modern/Chip/Chip.js +6 -5
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ClickAwayListener/index.js +2 -2
- package/modern/Collapse/Collapse.js +17 -4
- package/modern/Container/Container.js +1 -1
- package/modern/Dialog/Dialog.js +1 -1
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/DialogContent/DialogContent.js +3 -2
- package/modern/DialogContentText/DialogContentText.js +1 -1
- package/modern/DialogTitle/DialogTitle.js +1 -1
- package/modern/Divider/Divider.js +1 -1
- package/modern/Drawer/Drawer.js +1 -1
- package/modern/Fab/Fab.js +1 -1
- package/modern/Fade/Fade.js +19 -2
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormGroup/FormGroup.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +1 -1
- package/modern/FormLabel/FormLabel.js +1 -1
- package/modern/Grid/Grid.js +6 -3
- package/modern/Grow/Grow.js +17 -4
- package/modern/Icon/Icon.js +1 -1
- package/modern/IconButton/IconButton.js +1 -1
- package/modern/ImageList/ImageList.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +1 -1
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +1 -1
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +4 -9
- package/modern/InputLabel/InputLabel.js +2 -2
- package/modern/LinearProgress/LinearProgress.js +1 -1
- package/modern/Link/Link.js +1 -1
- package/modern/List/List.js +1 -1
- package/modern/ListItem/ListItem.js +1 -1
- package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
- package/modern/ListItemButton/ListItemButton.js +1 -1
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/modern/ListItemText/ListItemText.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +1 -1
- package/modern/Menu/Menu.js +1 -1
- package/modern/MenuItem/MenuItem.js +5 -2
- package/modern/MobileStepper/MobileStepper.js +1 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/NativeSelect/NativeSelect.js +1 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +4 -5
- package/modern/Paper/Paper.js +1 -1
- package/modern/Popover/Popover.js +1 -1
- package/modern/Popper/index.js +1 -1
- package/modern/Radio/Radio.js +1 -1
- package/modern/Rating/Rating.js +1 -2
- package/modern/Select/Select.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/Slide/Slide.js +19 -2
- package/modern/Slider/Slider.js +1 -1
- package/modern/Snackbar/Snackbar.js +2 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/Stack/Stack.js +1 -1
- package/modern/Step/Step.js +1 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/StepConnector/StepConnector.js +1 -1
- package/modern/StepContent/StepContent.js +1 -1
- package/modern/StepIcon/StepIcon.js +1 -1
- package/modern/StepLabel/StepLabel.js +1 -1
- package/modern/Stepper/Stepper.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +1 -1
- package/modern/Switch/Switch.js +1 -1
- package/modern/Tab/Tab.js +34 -10
- package/modern/Tab/tabClasses.js +1 -1
- package/modern/TabScrollButton/TabScrollButton.js +1 -1
- package/modern/Table/Table.js +1 -1
- package/modern/TableBody/TableBody.js +1 -1
- package/modern/TableCell/TableCell.js +1 -1
- package/modern/TableContainer/TableContainer.js +1 -1
- package/modern/TableFooter/TableFooter.js +1 -1
- package/modern/TableHead/TableHead.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +1 -1
- package/modern/TableSortLabel/TableSortLabel.js +1 -1
- package/modern/Tabs/Tabs.js +1 -1
- package/modern/TextField/TextField.js +1 -1
- package/modern/TextareaAutosize/index.js +1 -1
- package/modern/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Toolbar/Toolbar.js +1 -1
- package/modern/Tooltip/Tooltip.js +48 -22
- package/modern/Typography/Typography.js +1 -1
- package/modern/Zoom/Zoom.js +19 -2
- package/modern/index.js +1 -1
- package/modern/styles/index.js +1 -1
- package/modern/utils/index.js +2 -1
- package/node/Accordion/Accordion.js +1 -1
- package/node/Accordion/accordionClasses.js +1 -1
- package/node/Accordion/index.js +4 -4
- package/node/AccordionActions/AccordionActions.js +1 -1
- package/node/AccordionActions/accordionActionsClasses.js +1 -1
- package/node/AccordionActions/index.js +4 -4
- package/node/AccordionDetails/AccordionDetails.js +1 -1
- package/node/AccordionDetails/accordionDetailsClasses.js +1 -1
- package/node/AccordionDetails/index.js +4 -4
- package/node/AccordionSummary/AccordionSummary.js +1 -1
- package/node/AccordionSummary/accordionSummaryClasses.js +1 -1
- package/node/AccordionSummary/index.js +4 -4
- package/node/Alert/Alert.js +1 -1
- package/node/Alert/alertClasses.js +1 -1
- package/node/Alert/index.js +4 -4
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/AlertTitle/alertTitleClasses.js +1 -1
- package/node/AlertTitle/index.js +4 -4
- package/node/AppBar/AppBar.js +1 -1
- package/node/AppBar/appBarClasses.js +1 -1
- package/node/AppBar/index.js +4 -4
- package/node/Autocomplete/Autocomplete.js +19 -11
- package/node/Autocomplete/autocompleteClasses.js +1 -1
- package/node/Autocomplete/index.js +4 -4
- package/node/Avatar/Avatar.js +1 -1
- package/node/Avatar/avatarClasses.js +1 -1
- package/node/Avatar/index.js +4 -4
- package/node/AvatarGroup/AvatarGroup.js +3 -3
- package/node/AvatarGroup/avatarGroupClasses.js +1 -1
- package/node/AvatarGroup/index.js +4 -4
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigation/bottomNavigationClasses.js +1 -1
- package/node/BottomNavigation/index.js +4 -4
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/node/BottomNavigationAction/bottomNavigationActionClasses.js +1 -1
- package/node/BottomNavigationAction/index.js +4 -4
- package/node/Breadcrumbs/Breadcrumbs.js +1 -1
- package/node/Breadcrumbs/breadcrumbsClasses.js +1 -1
- package/node/Breadcrumbs/index.js +4 -4
- package/node/Button/Button.js +1 -1
- package/node/Button/buttonClasses.js +1 -1
- package/node/Button/index.js +4 -4
- package/node/ButtonBase/ButtonBase.js +1 -1
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/ButtonBase/buttonBaseClasses.js +1 -1
- package/node/ButtonBase/index.js +4 -4
- package/node/ButtonBase/touchRippleClasses.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +1 -1
- package/node/ButtonGroup/buttonGroupClasses.js +1 -1
- package/node/ButtonGroup/index.js +4 -4
- package/node/Card/Card.js +1 -1
- package/node/Card/cardClasses.js +1 -1
- package/node/Card/index.js +4 -4
- package/node/CardActionArea/CardActionArea.js +1 -1
- package/node/CardActionArea/cardActionAreaClasses.js +1 -1
- package/node/CardActionArea/index.js +4 -4
- package/node/CardActions/CardActions.js +1 -1
- package/node/CardActions/cardActionsClasses.js +1 -1
- package/node/CardActions/index.js +4 -4
- package/node/CardContent/CardContent.js +1 -1
- package/node/CardContent/cardContentClasses.js +1 -1
- package/node/CardContent/index.js +4 -4
- package/node/CardHeader/CardHeader.js +1 -1
- package/node/CardHeader/cardHeaderClasses.js +1 -1
- package/node/CardHeader/index.js +4 -4
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/CardMedia/cardMediaClasses.js +1 -1
- package/node/CardMedia/index.js +4 -4
- package/node/Checkbox/Checkbox.js +1 -1
- package/node/Checkbox/checkboxClasses.js +1 -1
- package/node/Checkbox/index.js +4 -4
- package/node/Chip/Chip.js +6 -5
- package/node/Chip/chipClasses.js +1 -1
- package/node/Chip/index.js +4 -4
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CircularProgress/circularProgressClasses.js +1 -1
- package/node/CircularProgress/index.js +4 -4
- package/node/ClickAwayListener/index.js +1 -1
- package/node/Collapse/Collapse.js +17 -4
- package/node/Collapse/collapseClasses.js +1 -1
- package/node/Collapse/index.js +4 -4
- package/node/Container/Container.js +1 -1
- package/node/Container/containerClasses.js +1 -1
- package/node/Container/index.js +4 -4
- package/node/CssBaseline/CssBaseline.js +1 -1
- package/node/Dialog/Dialog.js +1 -1
- package/node/Dialog/dialogClasses.js +1 -1
- package/node/DialogActions/DialogActions.js +1 -1
- package/node/DialogActions/dialogActionsClasses.js +1 -1
- package/node/DialogContent/DialogContent.js +4 -2
- package/node/DialogContent/dialogContentClasses.js +1 -1
- package/node/DialogContentText/DialogContentText.js +1 -1
- package/node/DialogContentText/dialogContentTextClasses.js +1 -1
- package/node/DialogTitle/DialogTitle.js +1 -1
- package/node/DialogTitle/dialogTitleClasses.js +1 -1
- package/node/Divider/Divider.js +1 -1
- package/node/Divider/dividerClasses.js +1 -1
- package/node/Drawer/Drawer.js +3 -3
- package/node/Drawer/drawerClasses.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/Fab/fabClasses.js +1 -1
- package/node/Fade/Fade.js +19 -2
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FilledInput/filledInputClasses.js +1 -1
- package/node/FormControl/FormControl.js +1 -1
- package/node/FormControl/formControlClasses.js +1 -1
- package/node/FormControl/index.js +4 -4
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node/FormGroup/FormGroup.js +1 -1
- package/node/FormGroup/formGroupClasses.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -1
- package/node/FormHelperText/formHelperTextClasses.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/FormLabel/formLabelClasses.js +1 -1
- package/node/Grid/Grid.js +8 -5
- package/node/Grid/gridClasses.js +1 -1
- package/node/Grow/Grow.js +17 -4
- package/node/Hidden/hiddenCssClasses.js +1 -1
- package/node/Hidden/withWidth.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Icon/iconClasses.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/IconButton/iconButtonClasses.js +1 -1
- package/node/ImageList/ImageList.js +1 -1
- package/node/ImageList/imageListClasses.js +1 -1
- package/node/ImageListItem/ImageListItem.js +1 -1
- package/node/ImageListItem/imageListItemClasses.js +1 -1
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Input/inputClasses.js +1 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputAdornment/inputAdornmentClasses.js +1 -1
- package/node/InputBase/InputBase.js +5 -12
- package/node/InputBase/inputBaseClasses.js +1 -1
- package/node/InputBase/utils.js +1 -1
- package/node/InputLabel/InputLabel.js +2 -2
- package/node/InputLabel/inputLabelClasses.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/LinearProgress/linearProgressClasses.js +1 -1
- package/node/Link/Link.js +1 -1
- package/node/Link/linkClasses.js +1 -1
- package/node/List/List.js +1 -1
- package/node/List/listClasses.js +1 -1
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItem/listItemClasses.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +1 -1
- package/node/ListItemAvatar/listItemAvatarClasses.js +1 -1
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemButton/listItemButtonClasses.js +1 -1
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListItemIcon/listItemIconClasses.js +1 -1
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js +1 -1
- package/node/ListItemText/ListItemText.js +1 -1
- package/node/ListItemText/listItemTextClasses.js +1 -1
- package/node/ListSubheader/ListSubheader.js +1 -1
- package/node/ListSubheader/listSubheaderClasses.js +1 -1
- package/node/Menu/Menu.js +1 -1
- package/node/Menu/menuClasses.js +1 -1
- package/node/MenuItem/MenuItem.js +6 -3
- package/node/MenuItem/menuItemClasses.js +1 -1
- package/node/MobileStepper/MobileStepper.js +1 -1
- package/node/MobileStepper/mobileStepperClasses.js +1 -1
- package/node/Modal/Modal.js +2 -2
- package/node/NativeSelect/NativeSelect.js +1 -1
- package/node/NativeSelect/NativeSelectInput.js +1 -1
- package/node/NativeSelect/nativeSelectClasses.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/OutlinedInput/outlinedInputClasses.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/Pagination/paginationClasses.js +1 -1
- package/node/PaginationItem/PaginationItem.js +4 -5
- package/node/PaginationItem/paginationItemClasses.js +1 -1
- package/node/Paper/Paper.js +1 -1
- package/node/Paper/paperClasses.js +1 -1
- package/node/Popover/Popover.js +3 -3
- package/node/Popover/popoverClasses.js +1 -1
- package/node/Popper/index.js +1 -1
- package/node/Radio/Radio.js +1 -1
- package/node/Radio/radioClasses.js +1 -1
- package/node/Rating/Rating.js +1 -2
- package/node/Rating/ratingClasses.js +1 -1
- package/node/ScopedCssBaseline/scopedCssBaselineClasses.js +1 -1
- package/node/Select/Select.js +1 -1
- package/node/Select/selectClasses.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/Skeleton/skeletonClasses.js +1 -1
- package/node/Slide/Slide.js +20 -3
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +3 -3
- package/node/Snackbar/snackbarClasses.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/SnackbarContent/snackbarContentClasses.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDial/speedDialClasses.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialAction/speedDialActionClasses.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/SpeedDialIcon/speedDialIconClasses.js +1 -1
- package/node/Stack/Stack.js +2 -2
- package/node/Step/Step.js +1 -1
- package/node/Step/stepClasses.js +1 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/StepButton/stepButtonClasses.js +1 -1
- package/node/StepConnector/StepConnector.js +1 -1
- package/node/StepConnector/stepConnectorClasses.js +1 -1
- package/node/StepContent/StepContent.js +1 -1
- package/node/StepContent/stepContentClasses.js +1 -1
- package/node/StepIcon/StepIcon.js +1 -1
- package/node/StepIcon/stepIconClasses.js +1 -1
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/StepLabel/stepLabelClasses.js +1 -1
- package/node/Stepper/Stepper.js +1 -1
- package/node/Stepper/stepperClasses.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/SvgIcon/svgIconClasses.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/Switch/switchClasses.js +1 -1
- package/node/Tab/Tab.js +34 -10
- package/node/Tab/tabClasses.js +2 -2
- package/node/TabScrollButton/TabScrollButton.js +1 -1
- package/node/TabScrollButton/tabScrollButtonClasses.js +1 -1
- package/node/Table/Table.js +1 -1
- package/node/Table/tableClasses.js +1 -1
- package/node/TableBody/TableBody.js +1 -1
- package/node/TableBody/tableBodyClasses.js +1 -1
- package/node/TableCell/TableCell.js +1 -1
- package/node/TableCell/tableCellClasses.js +1 -1
- package/node/TableContainer/TableContainer.js +1 -1
- package/node/TableContainer/tableContainerClasses.js +1 -1
- package/node/TableFooter/TableFooter.js +1 -1
- package/node/TableFooter/tableFooterClasses.js +1 -1
- package/node/TableHead/TableHead.js +1 -1
- package/node/TableHead/tableHeadClasses.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TablePagination/tablePaginationClasses.js +1 -1
- package/node/TableRow/TableRow.js +1 -1
- package/node/TableRow/tableRowClasses.js +1 -1
- package/node/TableSortLabel/TableSortLabel.js +1 -1
- package/node/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/node/Tabs/Tabs.js +1 -1
- package/node/Tabs/tabsClasses.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/TextField/textFieldClasses.js +1 -1
- package/node/TextareaAutosize/index.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButton/toggleButtonClasses.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/node/Toolbar/Toolbar.js +1 -1
- package/node/Toolbar/toolbarClasses.js +1 -1
- package/node/Tooltip/Tooltip.js +57 -25
- package/node/Tooltip/tooltipClasses.js +1 -1
- package/node/Typography/Typography.js +1 -1
- package/node/Typography/typographyClasses.js +1 -1
- package/node/Zoom/Zoom.js +19 -2
- package/node/colors/index.js +40 -40
- package/node/index.js +32 -32
- package/node/internal/switchBaseClasses.js +1 -1
- package/node/locale/index.js +1 -1
- package/node/styles/createPalette.js +2 -1
- package/node/styles/createTransitions.js +1 -1
- package/node/styles/cssUtils.js +4 -4
- package/node/styles/index.js +66 -54
- package/node/styles/styled.js +1 -1
- package/node/useAutocomplete/index.js +4 -4
- package/node/utils/index.js +9 -1
- package/package.json +5 -6
- package/styles/components.d.ts +4 -3
- package/styles/index.d.ts +4 -0
- package/styles/index.js +1 -1
- package/styles/props.d.ts +2 -0
- package/styles/styled.d.ts +4 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +14 -14
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +8569 -7867
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +27 -27
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/index.d.ts +1 -0
- package/utils/index.js +2 -1
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
- package/ClickAwayListener/ClickAwayListener.d.ts +0 -47
- package/ClickAwayListener/ClickAwayListener.js +0 -196
- package/Popper/Popper.d.ts +0 -97
- package/Popper/Popper.js +0 -354
- package/TextareaAutosize/TextareaAutosize.d.ts +0 -27
- package/TextareaAutosize/TextareaAutosize.js +0 -224
- package/legacy/ClickAwayListener/ClickAwayListener.js +0 -199
- package/legacy/Popper/Popper.js +0 -359
- package/legacy/TextareaAutosize/TextareaAutosize.js +0 -226
- package/modern/ClickAwayListener/ClickAwayListener.js +0 -196
- package/modern/Popper/Popper.js +0 -354
- package/modern/TextareaAutosize/TextareaAutosize.js +0 -224
- package/node/ClickAwayListener/ClickAwayListener.js +0 -216
- package/node/Popper/Popper.js +0 -378
- package/node/TextareaAutosize/TextareaAutosize.js +0 -245
|
@@ -230,7 +230,7 @@ process.env.NODE_ENV !== "production" ? Skeleton.propTypes
|
|
|
230
230
|
/**
|
|
231
231
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
232
232
|
*/
|
|
233
|
-
sx: _propTypes.default.object,
|
|
233
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* The type of content that will be rendered.
|
package/node/Slide/Slide.js
CHANGED
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.setTranslateValue = setTranslateValue;
|
|
9
8
|
exports.default = void 0;
|
|
9
|
+
exports.setTranslateValue = setTranslateValue;
|
|
10
10
|
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
|
|
@@ -34,7 +34,7 @@ var _utils3 = require("../utils");
|
|
|
34
34
|
|
|
35
35
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
36
36
|
|
|
37
|
-
const _excluded = ["appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
37
|
+
const _excluded = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
38
38
|
|
|
39
39
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
40
40
|
|
|
@@ -125,6 +125,7 @@ const defaultTimeout = {
|
|
|
125
125
|
|
|
126
126
|
const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
127
127
|
const {
|
|
128
|
+
addEndListener,
|
|
128
129
|
appear = true,
|
|
129
130
|
children,
|
|
130
131
|
container: containerProp,
|
|
@@ -211,6 +212,14 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
211
212
|
onExited(node);
|
|
212
213
|
}
|
|
213
214
|
});
|
|
215
|
+
|
|
216
|
+
const handleAddEndListener = next => {
|
|
217
|
+
if (addEndListener) {
|
|
218
|
+
// Old call signature before `react-transition-group` implemented `nodeRef`
|
|
219
|
+
addEndListener(childrenRef.current, next);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
|
|
214
223
|
const updatePosition = React.useCallback(() => {
|
|
215
224
|
if (childrenRef.current) {
|
|
216
225
|
setTranslateValue(direction, childrenRef.current, containerProp);
|
|
@@ -249,6 +258,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
249
258
|
onExit: handleExit,
|
|
250
259
|
onExited: handleExited,
|
|
251
260
|
onExiting: handleExiting,
|
|
261
|
+
addEndListener: handleAddEndListener,
|
|
252
262
|
appear: appear,
|
|
253
263
|
in: inProp,
|
|
254
264
|
timeout: timeout
|
|
@@ -271,6 +281,13 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
|
|
|
271
281
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
272
282
|
// ----------------------------------------------------------------------
|
|
273
283
|
|
|
284
|
+
/**
|
|
285
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
286
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
287
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
288
|
+
*/
|
|
289
|
+
addEndListener: _propTypes.default.func,
|
|
290
|
+
|
|
274
291
|
/**
|
|
275
292
|
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
276
293
|
* Set this to `false` to disable this behavior.
|
|
@@ -281,7 +298,7 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
|
|
|
281
298
|
/**
|
|
282
299
|
* A single child content element.
|
|
283
300
|
*/
|
|
284
|
-
children: _utils.elementAcceptingRef,
|
|
301
|
+
children: _utils.elementAcceptingRef.isRequired,
|
|
285
302
|
|
|
286
303
|
/**
|
|
287
304
|
* An HTML element, or a function that returns one.
|
package/node/Slider/Slider.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.sliderClasses = exports.default = exports.SliderValueLabel = exports.SliderTrack = exports.SliderThumb = exports.SliderRoot = exports.SliderRail = exports.SliderMarkLabel = exports.SliderMark = void 0;
|
|
9
9
|
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
|
|
@@ -666,7 +666,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
666
666
|
/**
|
|
667
667
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
668
668
|
*/
|
|
669
|
-
sx: _propTypes.default.object,
|
|
669
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
670
670
|
|
|
671
671
|
/**
|
|
672
672
|
* Tab index attribute of the hidden `input` element.
|
|
@@ -19,6 +19,8 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
19
19
|
|
|
20
20
|
var _core = require("@mui/core");
|
|
21
21
|
|
|
22
|
+
var _ClickAwayListener = _interopRequireDefault(require("@mui/core/ClickAwayListener"));
|
|
23
|
+
|
|
22
24
|
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
23
25
|
|
|
24
26
|
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
@@ -27,8 +29,6 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
|
27
29
|
|
|
28
30
|
var _createTransitions = require("../styles/createTransitions");
|
|
29
31
|
|
|
30
|
-
var _ClickAwayListener = _interopRequireDefault(require("../ClickAwayListener"));
|
|
31
|
-
|
|
32
32
|
var _useEventCallback = _interopRequireDefault(require("../utils/useEventCallback"));
|
|
33
33
|
|
|
34
34
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
@@ -402,7 +402,7 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
|
|
|
402
402
|
/**
|
|
403
403
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
404
404
|
*/
|
|
405
|
-
sx: _propTypes.default.object,
|
|
405
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
406
406
|
|
|
407
407
|
/**
|
|
408
408
|
* The component used for the transition.
|
|
@@ -163,7 +163,7 @@ process.env.NODE_ENV !== "production" ? SnackbarContent.propTypes
|
|
|
163
163
|
/**
|
|
164
164
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
165
165
|
*/
|
|
166
|
-
sx: _propTypes.default.object
|
|
166
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
167
167
|
} : void 0;
|
|
168
168
|
var _default = SnackbarContent;
|
|
169
169
|
exports.default = _default;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getSnackbarContentUtilityClass = getSnackbarContentUtilityClass;
|
|
7
6
|
exports.default = void 0;
|
|
7
|
+
exports.getSnackbarContentUtilityClass = getSnackbarContentUtilityClass;
|
|
8
8
|
|
|
9
9
|
var _core = require("@mui/core");
|
|
10
10
|
|
|
@@ -554,7 +554,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes
|
|
|
554
554
|
/**
|
|
555
555
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
556
556
|
*/
|
|
557
|
-
sx: _propTypes.default.object,
|
|
557
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
558
558
|
|
|
559
559
|
/**
|
|
560
560
|
* The component used for the transition.
|
|
@@ -264,7 +264,7 @@ process.env.NODE_ENV !== "production" ? SpeedDialAction.propTypes
|
|
|
264
264
|
/**
|
|
265
265
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
266
266
|
*/
|
|
267
|
-
sx: _propTypes.default.object,
|
|
267
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
268
268
|
|
|
269
269
|
/**
|
|
270
270
|
* `classes` prop applied to the [`Tooltip`](/api/tooltip/) element.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getSpeedDialActionUtilityClass = getSpeedDialActionUtilityClass;
|
|
7
6
|
exports.default = void 0;
|
|
7
|
+
exports.getSpeedDialActionUtilityClass = getSpeedDialActionUtilityClass;
|
|
8
8
|
|
|
9
9
|
var _core = require("@mui/core");
|
|
10
10
|
|
|
@@ -165,7 +165,7 @@ process.env.NODE_ENV !== "production" ? SpeedDialIcon.propTypes
|
|
|
165
165
|
/**
|
|
166
166
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
167
167
|
*/
|
|
168
|
-
sx: _propTypes.default.object
|
|
168
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
169
169
|
} : void 0;
|
|
170
170
|
SpeedDialIcon.muiName = 'SpeedDialIcon';
|
|
171
171
|
var _default = SpeedDialIcon;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getSpeedDialIconUtilityClass = getSpeedDialIconUtilityClass;
|
|
7
6
|
exports.default = void 0;
|
|
7
|
+
exports.getSpeedDialIconUtilityClass = getSpeedDialIconUtilityClass;
|
|
8
8
|
|
|
9
9
|
var _core = require("@mui/core");
|
|
10
10
|
|
package/node/Stack/Stack.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.style = exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
|
|
@@ -183,7 +183,7 @@ process.env.NODE_ENV !== "production" ? Stack.propTypes
|
|
|
183
183
|
/**
|
|
184
184
|
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
185
185
|
*/
|
|
186
|
-
sx: _propTypes.default.object
|
|
186
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
187
187
|
} : void 0;
|
|
188
188
|
var _default = Stack;
|
|
189
189
|
exports.default = _default;
|
package/node/Step/Step.js
CHANGED
|
@@ -195,7 +195,7 @@ process.env.NODE_ENV !== "production" ? Step.propTypes
|
|
|
195
195
|
/**
|
|
196
196
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
197
197
|
*/
|
|
198
|
-
sx: _propTypes.default.object
|
|
198
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
199
199
|
} : void 0;
|
|
200
200
|
var _default = Step;
|
|
201
201
|
exports.default = _default;
|
package/node/Step/stepClasses.js
CHANGED
|
@@ -160,7 +160,7 @@ process.env.NODE_ENV !== "production" ? StepButton.propTypes
|
|
|
160
160
|
/**
|
|
161
161
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
162
162
|
*/
|
|
163
|
-
sx: _propTypes.default.object
|
|
163
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
164
164
|
} : void 0;
|
|
165
165
|
var _default = StepButton;
|
|
166
166
|
exports.default = _default;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getStepButtonUtilityClass = getStepButtonUtilityClass;
|
|
7
6
|
exports.default = void 0;
|
|
7
|
+
exports.getStepButtonUtilityClass = getStepButtonUtilityClass;
|
|
8
8
|
|
|
9
9
|
var _core = require("@mui/core");
|
|
10
10
|
|
|
@@ -158,7 +158,7 @@ process.env.NODE_ENV !== "production" ? StepConnector.propTypes
|
|
|
158
158
|
/**
|
|
159
159
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
160
160
|
*/
|
|
161
|
-
sx: _propTypes.default.object
|
|
161
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
162
162
|
} : void 0;
|
|
163
163
|
var _default = StepConnector;
|
|
164
164
|
exports.default = _default;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getStepConnectorUtilityClass = getStepConnectorUtilityClass;
|
|
7
6
|
exports.default = void 0;
|
|
7
|
+
exports.getStepConnectorUtilityClass = getStepConnectorUtilityClass;
|
|
8
8
|
|
|
9
9
|
var _core = require("@mui/core");
|
|
10
10
|
|
|
@@ -159,7 +159,7 @@ process.env.NODE_ENV !== "production" ? StepContent.propTypes
|
|
|
159
159
|
/**
|
|
160
160
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
161
161
|
*/
|
|
162
|
-
sx: _propTypes.default.object,
|
|
162
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* The component used for the transition.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getStepContentUtilityClass = getStepContentUtilityClass;
|
|
7
6
|
exports.default = void 0;
|
|
7
|
+
exports.getStepContentUtilityClass = getStepContentUtilityClass;
|
|
8
8
|
|
|
9
9
|
var _core = require("@mui/core");
|
|
10
10
|
|
|
@@ -195,7 +195,7 @@ process.env.NODE_ENV !== "production" ? StepIcon.propTypes
|
|
|
195
195
|
/**
|
|
196
196
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
197
197
|
*/
|
|
198
|
-
sx: _propTypes.default.object
|
|
198
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
199
199
|
} : void 0;
|
|
200
200
|
var _default = StepIcon;
|
|
201
201
|
exports.default = _default;
|
|
@@ -258,7 +258,7 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes
|
|
|
258
258
|
/**
|
|
259
259
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
260
260
|
*/
|
|
261
|
-
sx: _propTypes.default.object
|
|
261
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
262
262
|
} : void 0;
|
|
263
263
|
StepLabel.muiName = 'StepLabel';
|
|
264
264
|
var _default = StepLabel;
|
package/node/Stepper/Stepper.js
CHANGED
|
@@ -176,7 +176,7 @@ process.env.NODE_ENV !== "production" ? Stepper.propTypes
|
|
|
176
176
|
/**
|
|
177
177
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
178
178
|
*/
|
|
179
|
-
sx: _propTypes.default.object
|
|
179
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
180
180
|
} : void 0;
|
|
181
181
|
var _default = Stepper;
|
|
182
182
|
exports.default = _default;
|
package/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -186,7 +186,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes
|
|
|
186
186
|
/**
|
|
187
187
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
188
188
|
*/
|
|
189
|
-
sx: _propTypes.default.object,
|
|
189
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* Provides a human-readable title for the element that contains it.
|
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.reset = reset;
|
|
9
8
|
exports.default = void 0;
|
|
9
|
+
exports.reset = reset;
|
|
10
10
|
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
|
package/node/Switch/Switch.js
CHANGED
|
@@ -353,7 +353,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes
|
|
|
353
353
|
/**
|
|
354
354
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
355
355
|
*/
|
|
356
|
-
sx: _propTypes.default.object,
|
|
356
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
357
357
|
|
|
358
358
|
/**
|
|
359
359
|
* The value of the component. The DOM API casts this to a string.
|
package/node/Tab/Tab.js
CHANGED
|
@@ -33,7 +33,7 @@ var _tabClasses = _interopRequireWildcard(require("./tabClasses"));
|
|
|
33
33
|
|
|
34
34
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
35
|
|
|
36
|
-
const _excluded = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"];
|
|
36
|
+
const _excluded = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"];
|
|
37
37
|
|
|
38
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
39
|
|
|
@@ -51,7 +51,8 @@ const useUtilityClasses = ownerState => {
|
|
|
51
51
|
disabled
|
|
52
52
|
} = ownerState;
|
|
53
53
|
const slots = {
|
|
54
|
-
root: ['root', icon && label && 'labelIcon', `textColor${(0, _capitalize.default)(textColor)}`, fullWidth && 'fullWidth', wrapped && 'wrapped', selected && 'selected', disabled && 'disabled']
|
|
54
|
+
root: ['root', icon && label && 'labelIcon', `textColor${(0, _capitalize.default)(textColor)}`, fullWidth && 'fullWidth', wrapped && 'wrapped', selected && 'selected', disabled && 'disabled'],
|
|
55
|
+
iconWrapper: ['iconWrapper']
|
|
55
56
|
};
|
|
56
57
|
return (0, _core.unstable_composeClasses)(slots, _tabClasses.getTabUtilityClass, classes);
|
|
57
58
|
};
|
|
@@ -77,16 +78,24 @@ const TabRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
77
78
|
padding: '12px 16px',
|
|
78
79
|
overflow: 'hidden',
|
|
79
80
|
whiteSpace: 'normal',
|
|
80
|
-
textAlign: 'center'
|
|
81
|
-
|
|
81
|
+
textAlign: 'center'
|
|
82
|
+
}, ownerState.label && {
|
|
83
|
+
flexDirection: ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom' ? 'column' : 'row'
|
|
84
|
+
}, {
|
|
82
85
|
lineHeight: 1.25
|
|
83
86
|
}, ownerState.icon && ownerState.label && {
|
|
84
87
|
minHeight: 72,
|
|
85
88
|
paddingTop: 9,
|
|
86
89
|
paddingBottom: 9,
|
|
87
|
-
[`& >
|
|
90
|
+
[`& > .${_tabClasses.default.iconWrapper}`]: (0, _extends2.default)({}, ownerState.iconPosition === 'top' && {
|
|
88
91
|
marginBottom: 6
|
|
89
|
-
}
|
|
92
|
+
}, ownerState.iconPosition === 'bottom' && {
|
|
93
|
+
marginTop: 6
|
|
94
|
+
}, ownerState.iconPosition === 'start' && {
|
|
95
|
+
marginRight: theme.spacing(1)
|
|
96
|
+
}, ownerState.iconPosition === 'end' && {
|
|
97
|
+
marginLeft: theme.spacing(1)
|
|
98
|
+
})
|
|
90
99
|
}, ownerState.textColor === 'inherit' && {
|
|
91
100
|
color: 'inherit',
|
|
92
101
|
opacity: 0.6,
|
|
@@ -132,7 +141,8 @@ const Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
|
|
|
132
141
|
disableFocusRipple = false,
|
|
133
142
|
// eslint-disable-next-line react/prop-types
|
|
134
143
|
fullWidth,
|
|
135
|
-
icon,
|
|
144
|
+
icon: iconProp,
|
|
145
|
+
iconPosition = 'top',
|
|
136
146
|
// eslint-disable-next-line react/prop-types
|
|
137
147
|
indicator,
|
|
138
148
|
label,
|
|
@@ -153,13 +163,17 @@ const Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
|
|
|
153
163
|
disabled,
|
|
154
164
|
disableFocusRipple,
|
|
155
165
|
selected,
|
|
156
|
-
icon: !!
|
|
166
|
+
icon: !!iconProp,
|
|
167
|
+
iconPosition,
|
|
157
168
|
label: !!label,
|
|
158
169
|
fullWidth,
|
|
159
170
|
textColor,
|
|
160
171
|
wrapped
|
|
161
172
|
});
|
|
162
173
|
const classes = useUtilityClasses(ownerState);
|
|
174
|
+
const icon = iconProp && label && /*#__PURE__*/React.isValidElement(iconProp) ? /*#__PURE__*/React.cloneElement(iconProp, {
|
|
175
|
+
className: (0, _clsx.default)(classes.iconWrapper, iconProp.props.className)
|
|
176
|
+
}) : iconProp;
|
|
163
177
|
|
|
164
178
|
const handleClick = event => {
|
|
165
179
|
if (!selected && onChange) {
|
|
@@ -193,7 +207,11 @@ const Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {
|
|
|
193
207
|
ownerState: ownerState,
|
|
194
208
|
tabIndex: selected ? 0 : -1
|
|
195
209
|
}, other, {
|
|
196
|
-
children: [
|
|
210
|
+
children: [iconPosition === 'top' || iconPosition === 'start' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
211
|
+
children: [icon, label]
|
|
212
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
213
|
+
children: [label, icon]
|
|
214
|
+
}), indicator]
|
|
197
215
|
}));
|
|
198
216
|
});
|
|
199
217
|
process.env.NODE_ENV !== "production" ? Tab.propTypes
|
|
@@ -246,6 +264,12 @@ process.env.NODE_ENV !== "production" ? Tab.propTypes
|
|
|
246
264
|
*/
|
|
247
265
|
icon: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.string]),
|
|
248
266
|
|
|
267
|
+
/**
|
|
268
|
+
* The position of the icon relative to the label.
|
|
269
|
+
* @default 'top'
|
|
270
|
+
*/
|
|
271
|
+
iconPosition: _propTypes.default.oneOf(['bottom', 'end', 'start', 'top']),
|
|
272
|
+
|
|
249
273
|
/**
|
|
250
274
|
* The label element.
|
|
251
275
|
*/
|
|
@@ -269,7 +293,7 @@ process.env.NODE_ENV !== "production" ? Tab.propTypes
|
|
|
269
293
|
/**
|
|
270
294
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
271
295
|
*/
|
|
272
|
-
sx: _propTypes.default.object,
|
|
296
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
273
297
|
|
|
274
298
|
/**
|
|
275
299
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
package/node/Tab/tabClasses.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getTabUtilityClass = getTabUtilityClass;
|
|
7
6
|
exports.default = void 0;
|
|
7
|
+
exports.getTabUtilityClass = getTabUtilityClass;
|
|
8
8
|
|
|
9
9
|
var _core = require("@mui/core");
|
|
10
10
|
|
|
@@ -12,6 +12,6 @@ function getTabUtilityClass(slot) {
|
|
|
12
12
|
return (0, _core.generateUtilityClass)('MuiTab', slot);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const tabClasses = (0, _core.generateUtilityClasses)('MuiTab', ['root', 'labelIcon', 'textColorInherit', 'textColorPrimary', 'textColorSecondary', 'selected', 'disabled', 'fullWidth', 'wrapped']);
|
|
15
|
+
const tabClasses = (0, _core.generateUtilityClasses)('MuiTab', ['root', 'labelIcon', 'textColorInherit', 'textColorPrimary', 'textColorSecondary', 'selected', 'disabled', 'fullWidth', 'wrapped', 'iconWrapper']);
|
|
16
16
|
var _default = tabClasses;
|
|
17
17
|
exports.default = _default;
|
|
@@ -152,7 +152,7 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes
|
|
|
152
152
|
/**
|
|
153
153
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
154
154
|
*/
|
|
155
|
-
sx: _propTypes.default.object
|
|
155
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
156
156
|
} : void 0;
|
|
157
157
|
var _default = TabScrollButton;
|
|
158
158
|
exports.default = _default;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getTabScrollButtonUtilityClass = getTabScrollButtonUtilityClass;
|
|
7
6
|
exports.default = void 0;
|
|
7
|
+
exports.getTabScrollButtonUtilityClass = getTabScrollButtonUtilityClass;
|
|
8
8
|
|
|
9
9
|
var _core = require("@mui/core");
|
|
10
10
|
|
package/node/Table/Table.js
CHANGED
|
@@ -163,7 +163,7 @@ process.env.NODE_ENV !== "production" ? Table.propTypes
|
|
|
163
163
|
/**
|
|
164
164
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
165
165
|
*/
|
|
166
|
-
sx: _propTypes.default.object
|
|
166
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
167
167
|
} : void 0;
|
|
168
168
|
var _default = Table;
|
|
169
169
|
exports.default = _default;
|
|
@@ -113,7 +113,7 @@ process.env.NODE_ENV !== "production" ? TableBody.propTypes
|
|
|
113
113
|
/**
|
|
114
114
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
115
115
|
*/
|
|
116
|
-
sx: _propTypes.default.object
|
|
116
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
117
117
|
} : void 0;
|
|
118
118
|
var _default = TableBody;
|
|
119
119
|
exports.default = _default;
|