@mui/material 5.14.2 → 5.14.4
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.d.ts +11 -6
- 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.d.ts +9 -7
- 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.d.ts +11 -6
- package/AppBar/AppBar.js +1 -1
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +20 -16
- package/Autocomplete/Autocomplete.js +19 -15
- package/Autocomplete/autocompleteClasses.d.ts +58 -58
- package/Avatar/Avatar.d.ts +11 -6
- package/Avatar/Avatar.js +1 -1
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/AvatarGroup/AvatarGroup.js +1 -1
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.d.ts +11 -6
- package/Backdrop/Backdrop.js +1 -1
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +11 -6
- package/Badge/Badge.js +2 -2
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.d.ts +11 -6
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.d.ts +9 -7
- package/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.d.ts +3 -3
- package/Breadcrumbs/Breadcrumbs.d.ts +11 -6
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/Button.d.ts +16 -14
- package/Button/Button.js +1 -1
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/ButtonBase.d.ts +17 -12
- package/ButtonBase/ButtonBase.js +1 -1
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.d.ts +11 -6
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +193 -5
- package/Card/Card.d.ts +13 -8
- package/Card/Card.js +1 -1
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.d.ts +11 -6
- 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.d.ts +11 -6
- 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.d.ts +9 -7
- package/CardMedia/CardMedia.js +1 -1
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/Checkbox.js +4 -3
- package/Checkbox/checkboxClasses.d.ts +22 -18
- package/Checkbox/checkboxClasses.js +1 -1
- package/Chip/Chip.d.ts +11 -6
- package/Chip/Chip.js +1 -1
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/CircularProgress.js +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +1 -2
- package/ClickAwayListener/index.js +1 -2
- package/Collapse/Collapse.js +1 -1
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/Container.d.ts +11 -6
- package/Container/containerClasses.d.ts +6 -6
- 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 +1 -1
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/DialogContentText.d.ts +9 -7
- package/DialogContentText/DialogContentText.js +1 -1
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/DialogTitle.d.ts +9 -7
- package/DialogTitle/DialogTitle.js +1 -1
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.d.ts +11 -6
- package/Divider/Divider.js +7 -1
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.d.ts +1 -1
- package/Drawer/Drawer.js +1 -1
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.d.ts +11 -6
- package/Fab/Fab.js +1 -1
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +1 -1
- package/FilledInput/filledInputClasses.d.ts +42 -42
- package/FormControl/FormControl.d.ts +11 -6
- package/FormControl/FormControl.js +1 -1
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
- package/FormGroup/FormGroup.js +1 -1
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.d.ts +11 -6
- package/FormHelperText/FormHelperText.js +1 -1
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.d.ts +14 -9
- package/FormLabel/FormLabel.js +1 -1
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/Grid.d.ts +11 -6
- package/Grid/Grid.js +1 -1
- package/Grid/gridClasses.d.ts +48 -48
- package/Hidden/HiddenCss.js +1 -1
- package/Icon/Icon.d.ts +11 -6
- package/Icon/Icon.js +1 -1
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.d.ts +9 -7
- package/IconButton/IconButton.js +1 -1
- package/IconButton/iconButtonClasses.d.ts +34 -34
- package/ImageList/ImageList.d.ts +11 -6
- package/ImageList/ImageList.js +1 -1
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/ImageListItem.d.ts +11 -6
- 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 +38 -38
- package/InputAdornment/InputAdornment.d.ts +11 -6
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/InputLabel.d.ts +9 -7
- package/InputLabel/InputLabel.js +1 -1
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/LinearProgress.js +1 -1
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.d.ts +20 -13
- package/Link/Link.js +1 -1
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/List.d.ts +17 -10
- package/List/List.js +1 -1
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.d.ts +9 -7
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/ListItemAvatar.js +1 -1
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.d.ts +9 -7
- 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.d.ts +11 -6
- package/ListSubheader/ListSubheader.js +1 -1
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/Menu.d.ts +23 -2
- package/Menu/Menu.js +49 -10
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.d.ts +11 -6
- package/MenuItem/MenuItem.js +1 -1
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MenuList/MenuList.d.ts +11 -6
- package/MobileStepper/MobileStepper.js +1 -1
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.d.ts +11 -6
- package/Modal/Modal.js +1 -1
- package/NativeSelect/NativeSelect.js +1 -1
- package/NativeSelect/NativeSelectInput.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +34 -34
- package/NoSsr/index.d.ts +1 -1
- package/NoSsr/index.js +1 -1
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
- package/OverridableComponent.d.ts +14 -14
- package/Pagination/Pagination.js +1 -1
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.d.ts +12 -7
- package/PaginationItem/PaginationItem.js +1 -1
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.d.ts +45 -38
- package/Paper/Paper.js +1 -1
- package/Paper/index.d.ts +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/Popover.d.ts +1 -1
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +65 -65
- package/Popper/Popper.js +1 -1
- package/Portal/index.d.ts +1 -1
- package/Portal/index.js +1 -1
- package/README.md +2 -2
- package/Radio/Radio.js +1 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +1 -1
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +11 -6
- package/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.d.ts +8 -8
- package/Select/Select.js +1 -1
- package/Select/SelectInput.d.ts +7 -7
- package/Select/SelectInput.js +1 -1
- package/Select/selectClasses.d.ts +32 -32
- package/Skeleton/Skeleton.d.ts +11 -6
- package/Skeleton/Skeleton.js +1 -1
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/Slider.d.ts +11 -6
- package/Slider/Slider.js +1 -1
- package/Slider/SliderValueLabel.d.ts +10 -10
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- 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.d.ts +11 -6
- package/Stack/stackClasses.d.ts +6 -6
- package/Step/Step.d.ts +11 -6
- package/Step/Step.js +1 -1
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/StepButton.d.ts +11 -6
- 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.d.ts +11 -6
- package/Stepper/Stepper.js +1 -1
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.d.ts +11 -6
- package/SvgIcon/SvgIcon.js +1 -1
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/Switch/Switch.js +1 -1
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.d.ts +11 -6
- package/Tab/Tab.js +1 -1
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.d.ts +11 -6
- package/Table/Table.js +1 -1
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/TableBody.d.ts +11 -6
- 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.d.ts +11 -6
- package/TableContainer/TableContainer.js +1 -1
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/TableFooter.d.ts +11 -6
- package/TableFooter/TableFooter.js +1 -1
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/TableHead.d.ts +11 -6
- package/TableHead/TableHead.js +1 -1
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/TablePagination.d.ts +11 -6
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.d.ts +11 -6
- package/TableRow/TableRow.js +1 -1
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.d.ts +9 -7
- package/TableSortLabel/TableSortLabel.js +1 -1
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.d.ts +11 -6
- 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 +1 -1
- package/TextareaAutosize/index.js +1 -1
- package/ToggleButton/ToggleButton.d.ts +9 -7
- 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.d.ts +11 -6
- package/Toolbar/Toolbar.js +1 -1
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/Typography.d.ts +76 -70
- package/Typography/Typography.js +5 -2
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/Unstable_TrapFocus/index.d.ts +1 -1
- package/Unstable_TrapFocus/index.js +1 -1
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.d.ts +10 -10
- package/index.js +2 -2
- package/internal/SwitchBase.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 +19 -16
- package/legacy/Avatar/Avatar.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +1 -1
- package/legacy/Backdrop/Backdrop.js +1 -1
- package/legacy/Badge/Badge.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.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 +1 -1
- package/legacy/Checkbox/Checkbox.js +4 -3
- package/legacy/Checkbox/checkboxClasses.js +1 -1
- package/legacy/Chip/Chip.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ClickAwayListener/index.js +1 -2
- package/legacy/Collapse/Collapse.js +1 -1
- package/legacy/Dialog/Dialog.js +1 -1
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/DialogContent/DialogContent.js +1 -1
- package/legacy/DialogContentText/DialogContentText.js +1 -1
- package/legacy/DialogTitle/DialogTitle.js +1 -1
- package/legacy/Divider/Divider.js +7 -1
- package/legacy/Drawer/Drawer.js +1 -1
- package/legacy/Fab/Fab.js +1 -1
- 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 +1 -1
- package/legacy/Hidden/HiddenCss.js +1 -1
- 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/InputLabel/InputLabel.js +1 -1
- package/legacy/LinearProgress/LinearProgress.js +1 -1
- package/legacy/Link/Link.js +1 -1
- package/legacy/List/List.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 +50 -9
- package/legacy/MenuItem/MenuItem.js +1 -1
- package/legacy/MobileStepper/MobileStepper.js +1 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/NativeSelect/NativeSelect.js +1 -1
- package/legacy/NativeSelect/NativeSelectInput.js +1 -1
- package/legacy/NoSsr/index.js +1 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +1 -1
- package/legacy/Paper/Paper.js +1 -1
- package/legacy/Popper/Popper.js +1 -1
- package/legacy/Portal/index.js +1 -1
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/legacy/Select/Select.js +1 -1
- package/legacy/Select/SelectInput.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- 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/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 +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/TableRow/TableRow.js +1 -1
- package/legacy/TableSortLabel/TableSortLabel.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/Typography/Typography.js +5 -2
- package/legacy/Unstable_TrapFocus/index.js +1 -1
- package/legacy/index.js +2 -2
- package/legacy/internal/SwitchBase.js +1 -1
- package/legacy/styles/createTypography.js +1 -0
- package/legacy/useAutocomplete/useAutocomplete.js +1 -1
- package/legacy/utils/index.js +1 -1
- package/locale/index.d.ts +80 -80
- 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 +16 -12
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +1 -1
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.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 +1 -1
- package/modern/Checkbox/Checkbox.js +4 -3
- package/modern/Checkbox/checkboxClasses.js +1 -1
- package/modern/Chip/Chip.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ClickAwayListener/index.js +1 -2
- package/modern/Collapse/Collapse.js +1 -1
- package/modern/Dialog/Dialog.js +1 -1
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/DialogContent/DialogContent.js +1 -1
- package/modern/DialogContentText/DialogContentText.js +1 -1
- package/modern/DialogTitle/DialogTitle.js +1 -1
- package/modern/Divider/Divider.js +7 -1
- package/modern/Drawer/Drawer.js +1 -1
- package/modern/Fab/Fab.js +1 -1
- 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 +1 -1
- package/modern/Hidden/HiddenCss.js +1 -1
- 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/InputLabel/InputLabel.js +1 -1
- package/modern/LinearProgress/LinearProgress.js +1 -1
- package/modern/Link/Link.js +1 -1
- package/modern/List/List.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 +48 -10
- package/modern/MenuItem/MenuItem.js +1 -1
- package/modern/MobileStepper/MobileStepper.js +1 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/NativeSelect/NativeSelect.js +1 -1
- package/modern/NativeSelect/NativeSelectInput.js +1 -1
- package/modern/NoSsr/index.js +1 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +1 -1
- package/modern/Paper/Paper.js +1 -1
- package/modern/Popper/Popper.js +1 -1
- package/modern/Portal/index.js +1 -1
- package/modern/Radio/Radio.js +1 -1
- package/modern/Rating/Rating.js +1 -1
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/modern/Select/Select.js +1 -1
- package/modern/Select/SelectInput.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- 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/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 +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/TableRow/TableRow.js +1 -1
- package/modern/TableSortLabel/TableSortLabel.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/Typography/Typography.js +5 -2
- package/modern/Unstable_TrapFocus/index.js +1 -1
- package/modern/index.js +2 -2
- package/modern/internal/SwitchBase.js +1 -1
- package/modern/styles/createTypography.js +1 -0
- package/modern/useAutocomplete/useAutocomplete.js +1 -1
- package/modern/utils/index.js +1 -1
- 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 +19 -15
- 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 +4 -4
- package/node/BottomNavigation/BottomNavigation.js +2 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/Button/Button.js +2 -2
- package/node/ButtonBase/ButtonBase.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 +5 -4
- package/node/Checkbox/checkboxClasses.js +1 -1
- package/node/Chip/Chip.js +2 -2
- package/node/CircularProgress/CircularProgress.js +2 -2
- package/node/ClickAwayListener/index.js +2 -16
- package/node/Collapse/Collapse.js +2 -2
- 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 +8 -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/Grid/Grid.js +2 -2
- package/node/Hidden/HiddenCss.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/Input/Input.js +2 -2
- package/node/InputAdornment/InputAdornment.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/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 +52 -13
- package/node/MenuItem/MenuItem.js +2 -2
- package/node/MobileStepper/MobileStepper.js +2 -2
- package/node/Modal/Modal.js +2 -2
- package/node/NativeSelect/NativeSelect.js +2 -2
- package/node/NativeSelect/NativeSelectInput.js +2 -2
- package/node/NoSsr/index.js +2 -3
- 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/Popper/Popper.js +2 -2
- package/node/Portal/index.js +2 -3
- package/node/Radio/Radio.js +2 -2
- package/node/Rating/Rating.js +2 -2
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/node/Select/Select.js +1 -1
- package/node/Select/SelectInput.js +2 -2
- package/node/Skeleton/Skeleton.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +4 -4
- 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 +2 -2
- package/node/SvgIcon/SvgIcon.js +2 -2
- package/node/Switch/Switch.js +2 -2
- package/node/Tab/Tab.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/TableRow/TableRow.js +2 -2
- package/node/TableSortLabel/TableSortLabel.js +2 -2
- package/node/TextField/TextField.js +2 -2
- package/node/TextareaAutosize/index.js +2 -3
- package/node/ToggleButton/ToggleButton.js +2 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/node/Toolbar/Toolbar.js +2 -2
- package/node/Typography/Typography.js +6 -3
- package/node/Unstable_TrapFocus/index.js +2 -3
- package/node/index.js +3 -3
- package/node/internal/SwitchBase.js +2 -2
- package/node/styles/createTypography.js +1 -0
- package/node/useAutocomplete/useAutocomplete.js +3 -5
- package/node/utils/index.js +2 -2
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +20 -20
- package/styles/ThemeProvider.d.ts +3 -3
- package/styles/components.d.ts +1 -0
- package/styles/createTypography.d.ts +9 -10
- package/styles/createTypography.js +1 -0
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/identifier.d.ts +2 -2
- package/styles/overrides.d.ts +2 -0
- package/styles/shouldSkipGeneratingVar.d.ts +1 -1
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +9213 -9149
- package/umd/material-ui.production.min.js +21 -21
- package/useAutocomplete/useAutocomplete.d.ts +1 -1
- package/useAutocomplete/useAutocomplete.js +1 -1
- package/useMediaQuery/useMediaQuery.d.ts +46 -46
- 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 -1
- package/utils/index.js +1 -1
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
import { isFragment } from 'react-is';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import useThemeProps from '../styles/useThemeProps';
|
|
13
13
|
import { getBottomNavigationUtilityClass } from './bottomNavigationClasses';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface BottomNavigationClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export type BottomNavigationClassKey = keyof BottomNavigationClasses;
|
|
6
|
-
export declare function getBottomNavigationUtilityClass(slot: string): string;
|
|
7
|
-
declare const bottomNavigationClasses: BottomNavigationClasses;
|
|
8
|
-
export default bottomNavigationClasses;
|
|
1
|
+
export interface BottomNavigationClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export type BottomNavigationClassKey = keyof BottomNavigationClasses;
|
|
6
|
+
export declare function getBottomNavigationUtilityClass(slot: string): string;
|
|
7
|
+
declare const bottomNavigationClasses: BottomNavigationClasses;
|
|
8
|
+
export default bottomNavigationClasses;
|
|
@@ -6,10 +6,10 @@ import { OverrideProps } from '../OverridableComponent';
|
|
|
6
6
|
import { BottomNavigationActionClasses } from './bottomNavigationActionClasses';
|
|
7
7
|
|
|
8
8
|
export type BottomNavigationActionTypeMap<
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
AdditionalProps,
|
|
10
|
+
DefaultComponent extends React.ElementType,
|
|
11
11
|
> = ExtendButtonBaseTypeMap<{
|
|
12
|
-
props:
|
|
12
|
+
props: AdditionalProps & {
|
|
13
13
|
/**
|
|
14
14
|
* This prop isn't supported.
|
|
15
15
|
* Use the `component` prop if you need to change the children structure.
|
|
@@ -44,7 +44,7 @@ export type BottomNavigationActionTypeMap<
|
|
|
44
44
|
*/
|
|
45
45
|
value?: any;
|
|
46
46
|
};
|
|
47
|
-
defaultComponent:
|
|
47
|
+
defaultComponent: DefaultComponent;
|
|
48
48
|
}>;
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -63,8 +63,10 @@ declare const BottomNavigationAction: ExtendButtonBase<
|
|
|
63
63
|
>;
|
|
64
64
|
|
|
65
65
|
export type BottomNavigationActionProps<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
> = OverrideProps<BottomNavigationActionTypeMap<
|
|
66
|
+
RootComponent extends React.ElementType = ButtonBaseTypeMap['defaultComponent'],
|
|
67
|
+
AdditionalProps = {},
|
|
68
|
+
> = OverrideProps<BottomNavigationActionTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
69
|
+
component?: React.ElementType;
|
|
70
|
+
};
|
|
69
71
|
|
|
70
72
|
export default BottomNavigationAction;
|
|
@@ -6,7 +6,7 @@ const _excluded = ["className", "icon", "label", "onChange", "onClick", "selecte
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
11
|
import useThemeProps from '../styles/useThemeProps';
|
|
12
12
|
import ButtonBase from '../ButtonBase';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface BottomNavigationActionClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if selected. */
|
|
5
|
-
selected: string;
|
|
6
|
-
/** State class applied to the root element if `showLabel={false}` and not selected. */
|
|
7
|
-
iconOnly: string;
|
|
8
|
-
/** Styles applied to the label's span element. */
|
|
9
|
-
label: string;
|
|
10
|
-
}
|
|
11
|
-
export type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
|
|
12
|
-
export declare function getBottomNavigationActionUtilityClass(slot: string): string;
|
|
13
|
-
declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
|
|
14
|
-
export default bottomNavigationActionClasses;
|
|
1
|
+
export interface BottomNavigationActionClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if selected. */
|
|
5
|
+
selected: string;
|
|
6
|
+
/** State class applied to the root element if `showLabel={false}` and not selected. */
|
|
7
|
+
iconOnly: string;
|
|
8
|
+
/** Styles applied to the label's span element. */
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
export type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
|
|
12
|
+
export declare function getBottomNavigationActionUtilityClass(slot: string): string;
|
|
13
|
+
declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
|
|
14
|
+
export default bottomNavigationActionClasses;
|
package/Box/Box.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ import { Theme as MaterialTheme } from '../styles';
|
|
|
16
16
|
declare const Box: OverridableComponent<BoxTypeMap<{}, 'div', MaterialTheme>>;
|
|
17
17
|
|
|
18
18
|
export type BoxProps<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
> = OverrideProps<BoxTypeMap<
|
|
19
|
+
RootComponent extends React.ElementType = BoxTypeMap['defaultComponent'],
|
|
20
|
+
AdditionalProps = {},
|
|
21
|
+
> = OverrideProps<BoxTypeMap<AdditionalProps, RootComponent, MaterialTheme>, RootComponent>;
|
|
22
22
|
|
|
23
23
|
export default Box;
|
|
@@ -12,8 +12,11 @@ export interface BreadcrumbsOwnerState extends BreadcrumbsProps {
|
|
|
12
12
|
expanded: boolean;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export interface BreadcrumbsTypeMap<
|
|
16
|
-
|
|
15
|
+
export interface BreadcrumbsTypeMap<
|
|
16
|
+
AdditionalProps = {},
|
|
17
|
+
DefaultComponent extends React.ElementType = 'nav',
|
|
18
|
+
> {
|
|
19
|
+
props: AdditionalProps & {
|
|
17
20
|
/**
|
|
18
21
|
* The content of the component.
|
|
19
22
|
*/
|
|
@@ -79,7 +82,7 @@ export interface BreadcrumbsTypeMap<P = {}, D extends React.ElementType = 'nav'>
|
|
|
79
82
|
*/
|
|
80
83
|
sx?: SxProps<Theme>;
|
|
81
84
|
};
|
|
82
|
-
defaultComponent:
|
|
85
|
+
defaultComponent: DefaultComponent;
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
/**
|
|
@@ -95,8 +98,10 @@ export interface BreadcrumbsTypeMap<P = {}, D extends React.ElementType = 'nav'>
|
|
|
95
98
|
declare const Breadcrumbs: OverridableComponent<BreadcrumbsTypeMap>;
|
|
96
99
|
|
|
97
100
|
export type BreadcrumbsProps<
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
> = OverrideProps<BreadcrumbsTypeMap<
|
|
101
|
+
RootComponent extends React.ElementType = BreadcrumbsTypeMap['defaultComponent'],
|
|
102
|
+
AdditionalProps = {},
|
|
103
|
+
> = OverrideProps<BreadcrumbsTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
104
|
+
component?: React.ElementType;
|
|
105
|
+
};
|
|
101
106
|
|
|
102
107
|
export default Breadcrumbs;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface BreadcrumbsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the ol element. */
|
|
5
|
-
ol: string;
|
|
6
|
-
/** Styles applied to the li element. */
|
|
7
|
-
li: string;
|
|
8
|
-
/** Styles applied to the separator element. */
|
|
9
|
-
separator: string;
|
|
10
|
-
}
|
|
11
|
-
export type BreadcrumbsClassKey = keyof BreadcrumbsClasses;
|
|
12
|
-
export declare function getBreadcrumbsUtilityClass(slot: string): string;
|
|
13
|
-
declare const breadcrumbsClasses: BreadcrumbsClasses;
|
|
14
|
-
export default breadcrumbsClasses;
|
|
1
|
+
export interface BreadcrumbsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the ol element. */
|
|
5
|
+
ol: string;
|
|
6
|
+
/** Styles applied to the li element. */
|
|
7
|
+
li: string;
|
|
8
|
+
/** Styles applied to the separator element. */
|
|
9
|
+
separator: string;
|
|
10
|
+
}
|
|
11
|
+
export type BreadcrumbsClassKey = keyof BreadcrumbsClasses;
|
|
12
|
+
export declare function getBreadcrumbsUtilityClass(slot: string): string;
|
|
13
|
+
declare const breadcrumbsClasses: BreadcrumbsClasses;
|
|
14
|
+
export default breadcrumbsClasses;
|
package/Button/Button.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export interface ButtonPropsColorOverrides {}
|
|
|
13
13
|
export interface ButtonPropsSizeOverrides {}
|
|
14
14
|
|
|
15
15
|
export type ButtonTypeMap<
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
AdditionalProps = {},
|
|
17
|
+
DefaultComponent extends React.ElementType = 'button',
|
|
18
18
|
> = ExtendButtonBaseTypeMap<{
|
|
19
|
-
props:
|
|
19
|
+
props: AdditionalProps & {
|
|
20
20
|
/**
|
|
21
21
|
* The content of the component.
|
|
22
22
|
*/
|
|
@@ -87,7 +87,7 @@ export type ButtonTypeMap<
|
|
|
87
87
|
ButtonPropsVariantOverrides
|
|
88
88
|
>;
|
|
89
89
|
};
|
|
90
|
-
defaultComponent:
|
|
90
|
+
defaultComponent: DefaultComponent;
|
|
91
91
|
}>;
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -95,18 +95,18 @@ export type ButtonTypeMap<
|
|
|
95
95
|
* This component has an additional overload if the `href` prop is set which
|
|
96
96
|
* can make extension quite tricky
|
|
97
97
|
*/
|
|
98
|
-
export interface ExtendButtonTypeMap<
|
|
99
|
-
props:
|
|
100
|
-
(
|
|
98
|
+
export interface ExtendButtonTypeMap<TypeMap extends OverridableTypeMap> {
|
|
99
|
+
props: TypeMap['props'] &
|
|
100
|
+
(TypeMap['props'] extends { classes?: Record<string, string> }
|
|
101
101
|
? DistributiveOmit<ButtonTypeMap['props'], 'classes'>
|
|
102
102
|
: ButtonTypeMap['props']);
|
|
103
|
-
defaultComponent:
|
|
103
|
+
defaultComponent: TypeMap['defaultComponent'];
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
export type ExtendButton<
|
|
107
|
-
props: { href: string } & OverrideProps<ExtendButtonBaseTypeMap<
|
|
106
|
+
export type ExtendButton<TypeMap extends OverridableTypeMap> = ((
|
|
107
|
+
props: { href: string } & OverrideProps<ExtendButtonBaseTypeMap<TypeMap>, 'a'>,
|
|
108
108
|
) => JSX.Element) &
|
|
109
|
-
OverridableComponent<ExtendButtonBaseTypeMap<
|
|
109
|
+
OverridableComponent<ExtendButtonBaseTypeMap<TypeMap>>;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
@@ -123,8 +123,10 @@ export type ExtendButton<M extends OverridableTypeMap> = ((
|
|
|
123
123
|
declare const Button: ExtendButtonBase<ButtonTypeMap>;
|
|
124
124
|
|
|
125
125
|
export type ButtonProps<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
> = OverrideProps<ButtonTypeMap<
|
|
126
|
+
RootComponent extends React.ElementType = ButtonTypeMap['defaultComponent'],
|
|
127
|
+
AdditionalProps = {},
|
|
128
|
+
> = OverrideProps<ButtonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
129
|
+
component?: React.ElementType;
|
|
130
|
+
};
|
|
129
131
|
|
|
130
132
|
export default Button;
|
package/Button/Button.js
CHANGED
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { internal_resolveProps as resolveProps } from '@mui/utils';
|
|
10
|
-
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
11
11
|
import { alpha } from '@mui/system';
|
|
12
12
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
13
13
|
import useThemeProps from '../styles/useThemeProps';
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
export interface ButtonClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="text"`. */
|
|
5
|
-
text: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="text"` and `color="inherit"`. */
|
|
7
|
-
textInherit: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
|
|
9
|
-
textPrimary: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
|
|
11
|
-
textSecondary: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="text"` and `color="success"`. */
|
|
13
|
-
textSuccess: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="text"` and `color="error"`. */
|
|
15
|
-
textError: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="text"` and `color="info"`. */
|
|
17
|
-
textInfo: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="text"` and `color="warning"`. */
|
|
19
|
-
textWarning: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
21
|
-
outlined: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
|
|
23
|
-
outlinedInherit: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
|
25
|
-
outlinedPrimary: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
|
27
|
-
outlinedSecondary: string;
|
|
28
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
|
|
29
|
-
outlinedSuccess: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
|
|
31
|
-
outlinedError: string;
|
|
32
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
|
|
33
|
-
outlinedInfo: string;
|
|
34
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
|
|
35
|
-
outlinedWarning: string;
|
|
36
|
-
/** Styles applied to the root element if `variant="contained"`. */
|
|
37
|
-
contained: string;
|
|
38
|
-
/** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
|
|
39
|
-
containedInherit: string;
|
|
40
|
-
/** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
|
|
41
|
-
containedPrimary: string;
|
|
42
|
-
/** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
|
|
43
|
-
containedSecondary: string;
|
|
44
|
-
/** Styles applied to the root element if `variant="contained"` and `color="success"`. */
|
|
45
|
-
containedSuccess: string;
|
|
46
|
-
/** Styles applied to the root element if `variant="contained"` and `color="info"`. */
|
|
47
|
-
containedInfo: string;
|
|
48
|
-
/** Styles applied to the root element if `variant="contained"` and `color="error"`. */
|
|
49
|
-
containedError: string;
|
|
50
|
-
/** Styles applied to the root element if `variant="contained"` and `color="warning"`. */
|
|
51
|
-
containedWarning: string;
|
|
52
|
-
/** Styles applied to the root element if `disableElevation={true}`. */
|
|
53
|
-
disableElevation: string;
|
|
54
|
-
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
55
|
-
focusVisible: string;
|
|
56
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
57
|
-
disabled: string;
|
|
58
|
-
/** Styles applied to the root element if `color="inherit"`. */
|
|
59
|
-
colorInherit: string;
|
|
60
|
-
/** Styles applied to the root element if `size="small"` and `variant="text"`. */
|
|
61
|
-
textSizeSmall: string;
|
|
62
|
-
/** Styles applied to the root element if `size="medium"` and `variant="text"`. */
|
|
63
|
-
textSizeMedium: string;
|
|
64
|
-
/** Styles applied to the root element if `size="large"` and `variant="text"`. */
|
|
65
|
-
textSizeLarge: string;
|
|
66
|
-
/** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
|
|
67
|
-
outlinedSizeSmall: string;
|
|
68
|
-
/** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
|
|
69
|
-
outlinedSizeMedium: string;
|
|
70
|
-
/** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
|
|
71
|
-
outlinedSizeLarge: string;
|
|
72
|
-
/** Styles applied to the root element if `size="small"` and `variant="contained"`. */
|
|
73
|
-
containedSizeSmall: string;
|
|
74
|
-
/** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
|
|
75
|
-
containedSizeMedium: string;
|
|
76
|
-
/** Styles applied to the root element if `size="large"` and `variant="contained"`. */
|
|
77
|
-
containedSizeLarge: string;
|
|
78
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
79
|
-
sizeSmall: string;
|
|
80
|
-
/** Styles applied to the root element if `size="medium"`. */
|
|
81
|
-
sizeMedium: string;
|
|
82
|
-
/** Styles applied to the root element if `size="large"`. */
|
|
83
|
-
sizeLarge: string;
|
|
84
|
-
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
85
|
-
fullWidth: string;
|
|
86
|
-
/** Styles applied to the startIcon element if supplied. */
|
|
87
|
-
startIcon: string;
|
|
88
|
-
/** Styles applied to the endIcon element if supplied. */
|
|
89
|
-
endIcon: string;
|
|
90
|
-
/** Styles applied to the icon element if supplied and `size="small"`. */
|
|
91
|
-
iconSizeSmall: string;
|
|
92
|
-
/** Styles applied to the icon element if supplied and `size="medium"`. */
|
|
93
|
-
iconSizeMedium: string;
|
|
94
|
-
/** Styles applied to the icon element if supplied and `size="large"`. */
|
|
95
|
-
iconSizeLarge: string;
|
|
96
|
-
}
|
|
97
|
-
export type ButtonClassKey = keyof ButtonClasses;
|
|
98
|
-
export declare function getButtonUtilityClass(slot: string): string;
|
|
99
|
-
declare const buttonClasses: ButtonClasses;
|
|
100
|
-
export default buttonClasses;
|
|
1
|
+
export interface ButtonClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="text"`. */
|
|
5
|
+
text: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="text"` and `color="inherit"`. */
|
|
7
|
+
textInherit: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
|
|
9
|
+
textPrimary: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
|
|
11
|
+
textSecondary: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="text"` and `color="success"`. */
|
|
13
|
+
textSuccess: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="text"` and `color="error"`. */
|
|
15
|
+
textError: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="text"` and `color="info"`. */
|
|
17
|
+
textInfo: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="text"` and `color="warning"`. */
|
|
19
|
+
textWarning: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
21
|
+
outlined: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
|
|
23
|
+
outlinedInherit: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
|
25
|
+
outlinedPrimary: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
|
27
|
+
outlinedSecondary: string;
|
|
28
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
|
|
29
|
+
outlinedSuccess: string;
|
|
30
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
|
|
31
|
+
outlinedError: string;
|
|
32
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
|
|
33
|
+
outlinedInfo: string;
|
|
34
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
|
|
35
|
+
outlinedWarning: string;
|
|
36
|
+
/** Styles applied to the root element if `variant="contained"`. */
|
|
37
|
+
contained: string;
|
|
38
|
+
/** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
|
|
39
|
+
containedInherit: string;
|
|
40
|
+
/** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
|
|
41
|
+
containedPrimary: string;
|
|
42
|
+
/** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
|
|
43
|
+
containedSecondary: string;
|
|
44
|
+
/** Styles applied to the root element if `variant="contained"` and `color="success"`. */
|
|
45
|
+
containedSuccess: string;
|
|
46
|
+
/** Styles applied to the root element if `variant="contained"` and `color="info"`. */
|
|
47
|
+
containedInfo: string;
|
|
48
|
+
/** Styles applied to the root element if `variant="contained"` and `color="error"`. */
|
|
49
|
+
containedError: string;
|
|
50
|
+
/** Styles applied to the root element if `variant="contained"` and `color="warning"`. */
|
|
51
|
+
containedWarning: string;
|
|
52
|
+
/** Styles applied to the root element if `disableElevation={true}`. */
|
|
53
|
+
disableElevation: string;
|
|
54
|
+
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
55
|
+
focusVisible: string;
|
|
56
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
57
|
+
disabled: string;
|
|
58
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
59
|
+
colorInherit: string;
|
|
60
|
+
/** Styles applied to the root element if `size="small"` and `variant="text"`. */
|
|
61
|
+
textSizeSmall: string;
|
|
62
|
+
/** Styles applied to the root element if `size="medium"` and `variant="text"`. */
|
|
63
|
+
textSizeMedium: string;
|
|
64
|
+
/** Styles applied to the root element if `size="large"` and `variant="text"`. */
|
|
65
|
+
textSizeLarge: string;
|
|
66
|
+
/** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
|
|
67
|
+
outlinedSizeSmall: string;
|
|
68
|
+
/** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
|
|
69
|
+
outlinedSizeMedium: string;
|
|
70
|
+
/** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
|
|
71
|
+
outlinedSizeLarge: string;
|
|
72
|
+
/** Styles applied to the root element if `size="small"` and `variant="contained"`. */
|
|
73
|
+
containedSizeSmall: string;
|
|
74
|
+
/** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
|
|
75
|
+
containedSizeMedium: string;
|
|
76
|
+
/** Styles applied to the root element if `size="large"` and `variant="contained"`. */
|
|
77
|
+
containedSizeLarge: string;
|
|
78
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
79
|
+
sizeSmall: string;
|
|
80
|
+
/** Styles applied to the root element if `size="medium"`. */
|
|
81
|
+
sizeMedium: string;
|
|
82
|
+
/** Styles applied to the root element if `size="large"`. */
|
|
83
|
+
sizeLarge: string;
|
|
84
|
+
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
85
|
+
fullWidth: string;
|
|
86
|
+
/** Styles applied to the startIcon element if supplied. */
|
|
87
|
+
startIcon: string;
|
|
88
|
+
/** Styles applied to the endIcon element if supplied. */
|
|
89
|
+
endIcon: string;
|
|
90
|
+
/** Styles applied to the icon element if supplied and `size="small"`. */
|
|
91
|
+
iconSizeSmall: string;
|
|
92
|
+
/** Styles applied to the icon element if supplied and `size="medium"`. */
|
|
93
|
+
iconSizeMedium: string;
|
|
94
|
+
/** Styles applied to the icon element if supplied and `size="large"`. */
|
|
95
|
+
iconSizeLarge: string;
|
|
96
|
+
}
|
|
97
|
+
export type ButtonClassKey = keyof ButtonClasses;
|
|
98
|
+
export declare function getButtonUtilityClass(slot: string): string;
|
|
99
|
+
declare const buttonClasses: ButtonClasses;
|
|
100
|
+
export default buttonClasses;
|
|
@@ -5,8 +5,11 @@ import { TouchRippleActions, TouchRippleProps } from './TouchRipple';
|
|
|
5
5
|
import { OverrideProps, OverridableComponent, OverridableTypeMap } from '../OverridableComponent';
|
|
6
6
|
import { ButtonBaseClasses } from './buttonBaseClasses';
|
|
7
7
|
|
|
8
|
-
export interface ButtonBaseTypeMap<
|
|
9
|
-
|
|
8
|
+
export interface ButtonBaseTypeMap<
|
|
9
|
+
AdditionalProps = {},
|
|
10
|
+
DefaultComponent extends React.ElementType = 'button',
|
|
11
|
+
> {
|
|
12
|
+
props: AdditionalProps & {
|
|
10
13
|
/**
|
|
11
14
|
* A ref for imperative actions.
|
|
12
15
|
* It currently only supports `focusVisible()` action.
|
|
@@ -85,7 +88,7 @@ export interface ButtonBaseTypeMap<P = {}, D extends React.ElementType = 'button
|
|
|
85
88
|
*/
|
|
86
89
|
touchRippleRef?: React.Ref<TouchRippleActions>;
|
|
87
90
|
};
|
|
88
|
-
defaultComponent:
|
|
91
|
+
defaultComponent: DefaultComponent;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
/**
|
|
@@ -93,15 +96,15 @@ export interface ButtonBaseTypeMap<P = {}, D extends React.ElementType = 'button
|
|
|
93
96
|
* This component has an additional overload if the `href` prop is set which
|
|
94
97
|
* can make extension quite tricky
|
|
95
98
|
*/
|
|
96
|
-
export interface ExtendButtonBaseTypeMap<
|
|
97
|
-
props:
|
|
98
|
-
defaultComponent:
|
|
99
|
+
export interface ExtendButtonBaseTypeMap<TypeMap extends OverridableTypeMap> {
|
|
100
|
+
props: TypeMap['props'] & Omit<ButtonBaseTypeMap['props'], 'classes'>;
|
|
101
|
+
defaultComponent: TypeMap['defaultComponent'];
|
|
99
102
|
}
|
|
100
103
|
|
|
101
|
-
export type ExtendButtonBase<
|
|
102
|
-
props: { href: string } & OverrideProps<ExtendButtonBaseTypeMap<
|
|
104
|
+
export type ExtendButtonBase<TypeMap extends OverridableTypeMap> = ((
|
|
105
|
+
props: { href: string } & OverrideProps<ExtendButtonBaseTypeMap<TypeMap>, 'a'>,
|
|
103
106
|
) => JSX.Element) &
|
|
104
|
-
OverridableComponent<ExtendButtonBaseTypeMap<
|
|
107
|
+
OverridableComponent<ExtendButtonBaseTypeMap<TypeMap>>;
|
|
105
108
|
|
|
106
109
|
/**
|
|
107
110
|
* `ButtonBase` contains as few styles as possible.
|
|
@@ -119,9 +122,11 @@ export type ExtendButtonBase<M extends OverridableTypeMap> = ((
|
|
|
119
122
|
declare const ButtonBase: ExtendButtonBase<ButtonBaseTypeMap>;
|
|
120
123
|
|
|
121
124
|
export type ButtonBaseProps<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
> = OverrideProps<ButtonBaseTypeMap<
|
|
125
|
+
RootComponent extends React.ElementType = ButtonBaseTypeMap['defaultComponent'],
|
|
126
|
+
AdditionalProps = {},
|
|
127
|
+
> = OverrideProps<ButtonBaseTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
128
|
+
component?: React.ElementType;
|
|
129
|
+
};
|
|
125
130
|
|
|
126
131
|
export interface ButtonBaseActions {
|
|
127
132
|
focusVisible(): void;
|
package/ButtonBase/ButtonBase.js
CHANGED
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { elementTypeAcceptingRef, refType } from '@mui/utils';
|
|
10
|
-
import composeClasses from '@mui/base/composeClasses';
|
|
10
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import useThemeProps from '../styles/useThemeProps';
|
|
13
13
|
import useForkRef from '../utils/useForkRef';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface ButtonBaseClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
5
|
-
disabled: string;
|
|
6
|
-
/** State class applied to the root element if keyboard focused. */
|
|
7
|
-
focusVisible: string;
|
|
8
|
-
}
|
|
9
|
-
export type ButtonBaseClassKey = keyof ButtonBaseClasses;
|
|
10
|
-
export declare function getButtonBaseUtilityClass(slot: string): string;
|
|
11
|
-
declare const buttonBaseClasses: ButtonBaseClasses;
|
|
12
|
-
export default buttonBaseClasses;
|
|
1
|
+
export interface ButtonBaseClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
5
|
+
disabled: string;
|
|
6
|
+
/** State class applied to the root element if keyboard focused. */
|
|
7
|
+
focusVisible: string;
|
|
8
|
+
}
|
|
9
|
+
export type ButtonBaseClassKey = keyof ButtonBaseClasses;
|
|
10
|
+
export declare function getButtonBaseUtilityClass(slot: string): string;
|
|
11
|
+
declare const buttonBaseClasses: ButtonBaseClasses;
|
|
12
|
+
export default buttonBaseClasses;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface TouchRippleClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the internal `Ripple` components `ripple` class. */
|
|
5
|
-
ripple: string;
|
|
6
|
-
/** Styles applied to the internal `Ripple` components `rippleVisible` class. */
|
|
7
|
-
rippleVisible: string;
|
|
8
|
-
/** Styles applied to the internal `Ripple` components `ripplePulsate` class. */
|
|
9
|
-
ripplePulsate: string;
|
|
10
|
-
/** Styles applied to the internal `Ripple` components `child` class. */
|
|
11
|
-
child: string;
|
|
12
|
-
/** Styles applied to the internal `Ripple` components `childLeaving` class. */
|
|
13
|
-
childLeaving: string;
|
|
14
|
-
/** Styles applied to the internal `Ripple` components `childPulsate` class. */
|
|
15
|
-
childPulsate: string;
|
|
16
|
-
}
|
|
17
|
-
export type TouchRippleClassKey = keyof TouchRippleClasses;
|
|
18
|
-
export declare function getTouchRippleUtilityClass(slot: string): string;
|
|
19
|
-
declare const touchRippleClasses: TouchRippleClasses;
|
|
20
|
-
export default touchRippleClasses;
|
|
1
|
+
export interface TouchRippleClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the internal `Ripple` components `ripple` class. */
|
|
5
|
+
ripple: string;
|
|
6
|
+
/** Styles applied to the internal `Ripple` components `rippleVisible` class. */
|
|
7
|
+
rippleVisible: string;
|
|
8
|
+
/** Styles applied to the internal `Ripple` components `ripplePulsate` class. */
|
|
9
|
+
ripplePulsate: string;
|
|
10
|
+
/** Styles applied to the internal `Ripple` components `child` class. */
|
|
11
|
+
child: string;
|
|
12
|
+
/** Styles applied to the internal `Ripple` components `childLeaving` class. */
|
|
13
|
+
childLeaving: string;
|
|
14
|
+
/** Styles applied to the internal `Ripple` components `childPulsate` class. */
|
|
15
|
+
childPulsate: string;
|
|
16
|
+
}
|
|
17
|
+
export type TouchRippleClassKey = keyof TouchRippleClasses;
|
|
18
|
+
export declare function getTouchRippleUtilityClass(slot: string): string;
|
|
19
|
+
declare const touchRippleClasses: TouchRippleClasses;
|
|
20
|
+
export default touchRippleClasses;
|
|
@@ -9,8 +9,11 @@ export interface ButtonGroupPropsColorOverrides {}
|
|
|
9
9
|
export interface ButtonGroupPropsVariantOverrides {}
|
|
10
10
|
export interface ButtonGroupPropsSizeOverrides {}
|
|
11
11
|
|
|
12
|
-
export interface ButtonGroupTypeMap<
|
|
13
|
-
|
|
12
|
+
export interface ButtonGroupTypeMap<
|
|
13
|
+
AdditionalProps = {},
|
|
14
|
+
DefaultComponent extends React.ElementType = 'div',
|
|
15
|
+
> {
|
|
16
|
+
props: AdditionalProps & {
|
|
14
17
|
/**
|
|
15
18
|
* The content of the component.
|
|
16
19
|
*/
|
|
@@ -78,7 +81,7 @@ export interface ButtonGroupTypeMap<P = {}, D extends React.ElementType = 'div'>
|
|
|
78
81
|
*/
|
|
79
82
|
sx?: SxProps<Theme>;
|
|
80
83
|
};
|
|
81
|
-
defaultComponent:
|
|
84
|
+
defaultComponent: DefaultComponent;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
/**
|
|
@@ -94,8 +97,10 @@ export interface ButtonGroupTypeMap<P = {}, D extends React.ElementType = 'div'>
|
|
|
94
97
|
declare const ButtonGroup: OverridableComponent<ButtonGroupTypeMap>;
|
|
95
98
|
|
|
96
99
|
export type ButtonGroupProps<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
> = OverrideProps<ButtonGroupTypeMap<
|
|
100
|
+
RootComponent extends React.ElementType = ButtonGroupTypeMap['defaultComponent'],
|
|
101
|
+
AdditionalProps = {},
|
|
102
|
+
> = OverrideProps<ButtonGroupTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
103
|
+
component?: React.ElementType;
|
|
104
|
+
};
|
|
100
105
|
|
|
101
106
|
export default ButtonGroup;
|