@mui/material 5.13.1 → 5.13.3
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 +43 -44
- package/AccordionActions/AccordionActions.js +18 -18
- package/AccordionDetails/AccordionDetails.js +9 -7
- package/AccordionSummary/AccordionSummary.js +32 -32
- package/Alert/Alert.js +60 -64
- package/AlertTitle/AlertTitle.js +9 -7
- package/AppBar/AppBar.js +73 -89
- package/Autocomplete/Autocomplete.d.ts +1 -0
- package/Autocomplete/Autocomplete.js +153 -171
- package/Avatar/Avatar.js +38 -42
- package/AvatarGroup/AvatarGroup.js +33 -34
- package/Backdrop/Backdrop.js +31 -33
- package/Badge/Badge.js +107 -119
- package/BottomNavigation/BottomNavigation.js +17 -15
- package/BottomNavigationAction/BottomNavigationAction.js +31 -29
- package/Breadcrumbs/BreadcrumbCollapsed.js +34 -35
- package/Breadcrumbs/Breadcrumbs.js +21 -19
- package/Button/Button.js +133 -168
- package/ButtonBase/ButtonBase.js +42 -43
- package/ButtonBase/TouchRipple.js +12 -9
- package/ButtonGroup/ButtonGroup.js +89 -111
- package/CHANGELOG.md +93 -0
- package/Card/Card.js +12 -11
- package/CardActionArea/CardActionArea.js +12 -9
- package/CardActions/CardActions.js +18 -18
- package/CardContent/CardContent.js +12 -11
- package/CardHeader/CardHeader.js +31 -30
- package/CardMedia/CardMedia.js +27 -28
- package/Checkbox/Checkbox.js +39 -44
- package/Chip/Chip.js +129 -146
- package/CircularProgress/CircularProgress.js +36 -43
- package/Collapse/Collapse.js +65 -73
- package/CssBaseline/CssBaseline.js +14 -17
- package/Dialog/Dialog.js +94 -103
- package/DialogActions/DialogActions.js +18 -18
- package/DialogContent/DialogContent.js +22 -22
- package/DialogContentText/DialogContentText.js +11 -13
- package/DialogTitle/DialogTitle.js +10 -8
- package/Divider/Divider.js +84 -99
- package/Drawer/Drawer.js +76 -85
- package/Fab/Fab.js +60 -71
- package/Fade/Fade.js +30 -31
- package/FilledInput/FilledInput.js +117 -135
- package/FilledInput/filledInputClasses.js +2 -4
- package/FormControl/FormControl.js +35 -41
- package/FormControlLabel/FormControlLabel.js +38 -43
- package/FormGroup/FormGroup.js +16 -16
- package/FormHelperText/FormHelperText.js +23 -30
- package/FormLabel/FormLabel.js +18 -26
- package/GlobalStyles/GlobalStyles.js +3 -3
- package/Grid/Grid.js +41 -50
- package/Grow/Grow.js +30 -31
- package/Hidden/Hidden.js +32 -31
- package/Hidden/HiddenCss.js +29 -29
- package/Hidden/withWidth.js +20 -20
- package/Icon/Icon.js +15 -14
- package/IconButton/IconButton.js +52 -59
- package/ImageList/ImageList.js +29 -30
- package/ImageListItem/ImageListItem.js +39 -40
- package/ImageListItemBar/ImageListItemBar.js +41 -47
- package/Input/Input.js +74 -77
- package/Input/inputClasses.js +2 -4
- package/InputAdornment/InputAdornment.js +34 -36
- package/InputBase/InputBase.js +92 -116
- package/InputLabel/InputLabel.js +68 -83
- package/LinearProgress/LinearProgress.js +58 -64
- package/Link/Link.js +64 -69
- package/List/List.js +24 -24
- package/ListItem/ListItem.js +96 -113
- package/ListItemAvatar/ListItemAvatar.js +15 -15
- package/ListItemButton/ListItemButton.js +35 -40
- package/ListItemIcon/ListItemIcon.js +15 -15
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +15 -15
- package/ListItemText/ListItemText.js +34 -34
- package/ListSubheader/ListSubheader.js +32 -36
- package/Menu/Menu.js +39 -38
- package/MenuItem/MenuItem.js +45 -50
- package/MenuList/MenuList.js +20 -17
- package/MobileStepper/MobileStepper.js +53 -61
- package/Modal/Modal.js +46 -51
- package/NativeSelect/NativeSelect.js +22 -26
- package/NativeSelect/NativeSelectInput.js +43 -50
- package/OutlinedInput/NotchedOutline.js +51 -55
- package/OutlinedInput/OutlinedInput.js +59 -72
- package/OutlinedInput/outlinedInputClasses.js +2 -4
- package/Pagination/Pagination.js +31 -35
- package/PaginationItem/PaginationItem.js +93 -105
- package/Paper/Paper.js +28 -32
- package/Popover/Popover.js +51 -49
- package/Popper/Popper.js +27 -25
- package/Radio/Radio.js +33 -36
- package/Radio/RadioButtonIcon.js +10 -11
- package/RadioGroup/RadioGroup.js +17 -14
- package/Rating/Rating.js +73 -88
- package/ScopedCssBaseline/ScopedCssBaseline.js +15 -18
- package/Select/Select.js +55 -59
- package/Select/SelectInput.js +57 -58
- package/Skeleton/Skeleton.js +46 -51
- package/Slide/Slide.js +33 -37
- package/Slider/Slider.js +216 -281
- package/Snackbar/Snackbar.js +67 -81
- package/SnackbarContent/SnackbarContent.js +15 -13
- package/SpeedDial/SpeedDial.js +83 -85
- package/SpeedDialAction/SpeedDialAction.js +52 -57
- package/SpeedDialIcon/SpeedDialIcon.js +24 -25
- package/Step/Step.js +26 -27
- package/StepButton/StepButton.js +24 -23
- package/StepConnector/StepConnector.js +31 -34
- package/StepContent/StepContent.js +24 -23
- package/StepIcon/StepIcon.js +22 -22
- package/StepLabel/StepLabel.js +33 -34
- package/Stepper/Stepper.js +31 -33
- package/SvgIcon/SvgIcon.js +20 -19
- package/SwipeableDrawer/SwipeArea.js +30 -33
- package/SwipeableDrawer/SwipeableDrawer.js +43 -49
- package/Switch/Switch.js +52 -59
- package/Tab/Tab.js +83 -93
- package/TabScrollButton/TabScrollButton.js +25 -30
- package/Table/Table.js +19 -20
- package/TableBody/TableBody.js +12 -11
- package/TableCell/TableCell.js +59 -70
- package/TableContainer/TableContainer.js +12 -11
- package/TableFooter/TableFooter.js +12 -11
- package/TableHead/TableHead.js +12 -11
- package/TablePagination/TablePagination.js +49 -53
- package/TablePagination/TablePaginationActions.js +25 -22
- package/TableRow/TableRow.js +14 -13
- package/TableSortLabel/TableSortLabel.js +23 -23
- package/Tabs/ScrollbarSize.js +9 -7
- package/Tabs/Tabs.js +92 -107
- package/TextField/TextField.js +57 -57
- package/ToggleButton/ToggleButton.js +35 -36
- package/ToggleButtonGroup/ToggleButtonGroup.js +59 -60
- package/Toolbar/Toolbar.js +25 -26
- package/Tooltip/Tooltip.js +147 -177
- package/Typography/Typography.js +32 -37
- package/Zoom/Zoom.js +30 -31
- package/index.js +1 -1
- package/internal/SwitchBase.js +43 -45
- package/legacy/Accordion/Accordion.js +8 -9
- package/legacy/AccordionActions/AccordionActions.js +4 -6
- package/legacy/AccordionDetails/AccordionDetails.js +2 -4
- package/legacy/AccordionSummary/AccordionSummary.js +11 -12
- package/legacy/Alert/Alert.js +10 -11
- package/legacy/AlertTitle/AlertTitle.js +2 -4
- package/legacy/AppBar/AppBar.js +16 -18
- package/legacy/Autocomplete/Autocomplete.js +54 -45
- package/legacy/Avatar/Avatar.js +9 -11
- package/legacy/AvatarGroup/AvatarGroup.js +9 -10
- package/legacy/Backdrop/Backdrop.js +8 -10
- package/legacy/Badge/Badge.js +15 -16
- package/legacy/BottomNavigation/BottomNavigation.js +4 -6
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +8 -9
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +8 -10
- package/legacy/Breadcrumbs/Breadcrumbs.js +4 -5
- package/legacy/Button/Button.js +36 -37
- package/legacy/ButtonBase/ButtonBase.js +5 -6
- package/legacy/ButtonBase/TouchRipple.js +3 -5
- package/legacy/ButtonGroup/ButtonGroup.js +27 -28
- package/legacy/Card/Card.js +3 -5
- package/legacy/CardActionArea/CardActionArea.js +3 -4
- package/legacy/CardActions/CardActions.js +4 -6
- package/legacy/CardContent/CardContent.js +3 -5
- package/legacy/CardHeader/CardHeader.js +10 -11
- package/legacy/CardMedia/CardMedia.js +7 -9
- package/legacy/Checkbox/Checkbox.js +8 -9
- package/legacy/Chip/Chip.js +25 -26
- package/legacy/CircularProgress/CircularProgress.js +10 -12
- package/legacy/Collapse/Collapse.js +16 -17
- package/legacy/CssBaseline/CssBaseline.js +7 -9
- package/legacy/Dialog/Dialog.js +18 -19
- package/legacy/DialogActions/DialogActions.js +4 -6
- package/legacy/DialogContent/DialogContent.js +4 -5
- package/legacy/DialogContentText/DialogContentText.js +4 -6
- package/legacy/DialogTitle/DialogTitle.js +2 -4
- package/legacy/Divider/Divider.js +17 -19
- package/legacy/Drawer/Drawer.js +21 -23
- package/legacy/Fab/Fab.js +12 -13
- package/legacy/Fade/Fade.js +6 -8
- package/legacy/FilledInput/FilledInput.js +23 -24
- package/legacy/FilledInput/filledInputClasses.js +2 -4
- package/legacy/FormControl/FormControl.js +8 -10
- package/legacy/FormControlLabel/FormControlLabel.js +10 -11
- package/legacy/FormGroup/FormGroup.js +4 -6
- package/legacy/FormHelperText/FormHelperText.js +11 -12
- package/legacy/FormLabel/FormLabel.js +12 -13
- package/legacy/GlobalStyles/GlobalStyles.js +2 -4
- package/legacy/Grid/Grid.js +11 -13
- package/legacy/Grow/Grow.js +6 -8
- package/legacy/Hidden/Hidden.js +13 -15
- package/legacy/Hidden/HiddenCss.js +3 -4
- package/legacy/Hidden/withWidth.js +5 -7
- package/legacy/Icon/Icon.js +3 -5
- package/legacy/IconButton/IconButton.js +14 -15
- package/legacy/ImageList/ImageList.js +7 -9
- package/legacy/ImageListItem/ImageListItem.js +8 -9
- package/legacy/ImageListItemBar/ImageListItemBar.js +11 -13
- package/legacy/Input/Input.js +7 -8
- package/legacy/Input/inputClasses.js +2 -4
- package/legacy/InputAdornment/InputAdornment.js +8 -9
- package/legacy/InputBase/InputBase.js +27 -28
- package/legacy/InputLabel/InputLabel.js +13 -14
- package/legacy/LinearProgress/LinearProgress.js +15 -17
- package/legacy/Link/Link.js +8 -9
- package/legacy/List/List.js +6 -8
- package/legacy/ListItem/ListItem.js +24 -25
- package/legacy/ListItemAvatar/ListItemAvatar.js +4 -6
- package/legacy/ListItemButton/ListItemButton.js +15 -16
- package/legacy/ListItemIcon/ListItemIcon.js +4 -6
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -6
- package/legacy/ListItemText/ListItemText.js +10 -11
- package/legacy/ListSubheader/ListSubheader.js +8 -10
- package/legacy/Menu/Menu.js +10 -12
- package/legacy/MenuItem/MenuItem.js +21 -22
- package/legacy/MenuList/MenuList.js +3 -5
- package/legacy/MobileStepper/MobileStepper.js +10 -12
- package/legacy/Modal/Modal.js +9 -11
- package/legacy/NativeSelect/NativeSelect.js +6 -8
- package/legacy/NativeSelect/NativeSelectInput.js +16 -17
- package/legacy/OutlinedInput/NotchedOutline.js +6 -8
- package/legacy/OutlinedInput/OutlinedInput.js +22 -23
- package/legacy/OutlinedInput/outlinedInputClasses.js +2 -4
- package/legacy/Pagination/Pagination.js +7 -9
- package/legacy/PaginationItem/PaginationItem.js +23 -24
- package/legacy/Paper/Paper.js +7 -9
- package/legacy/Popover/Popover.js +10 -12
- package/legacy/Popper/Popper.js +4 -6
- package/legacy/Radio/Radio.js +7 -8
- package/legacy/Radio/RadioButtonIcon.js +3 -5
- package/legacy/RadioGroup/RadioGroup.js +3 -5
- package/legacy/Rating/Rating.js +23 -24
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +4 -6
- package/legacy/Select/Select.js +8 -10
- package/legacy/Select/SelectInput.js +10 -11
- package/legacy/Skeleton/Skeleton.js +11 -13
- package/legacy/Slide/Slide.js +8 -10
- package/legacy/Slider/Slider.js +65 -66
- package/legacy/Snackbar/Snackbar.js +15 -16
- package/legacy/SnackbarContent/SnackbarContent.js +4 -5
- package/legacy/SpeedDial/SpeedDial.js +14 -15
- package/legacy/SpeedDialAction/SpeedDialAction.js +15 -16
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +6 -7
- package/legacy/Step/Step.js +6 -8
- package/legacy/StepButton/StepButton.js +7 -8
- package/legacy/StepConnector/StepConnector.js +8 -10
- package/legacy/StepContent/StepContent.js +7 -9
- package/legacy/StepIcon/StepIcon.js +6 -7
- package/legacy/StepLabel/StepLabel.js +19 -20
- package/legacy/Stepper/Stepper.js +8 -10
- package/legacy/SvgIcon/SvgIcon.js +4 -6
- package/legacy/SwipeableDrawer/SwipeArea.js +8 -9
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +8 -10
- package/legacy/Switch/Switch.js +10 -11
- package/legacy/Tab/Tab.js +15 -16
- package/legacy/TabScrollButton/TabScrollButton.js +6 -7
- package/legacy/Table/Table.js +5 -7
- package/legacy/TableBody/TableBody.js +3 -5
- package/legacy/TableCell/TableCell.js +14 -15
- package/legacy/TableContainer/TableContainer.js +3 -5
- package/legacy/TableFooter/TableFooter.js +3 -5
- package/legacy/TableHead/TableHead.js +3 -5
- package/legacy/TablePagination/TablePagination.js +14 -15
- package/legacy/TablePagination/TablePaginationActions.js +7 -9
- package/legacy/TableRow/TableRow.js +3 -4
- package/legacy/TableSortLabel/TableSortLabel.js +6 -7
- package/legacy/Tabs/ScrollbarSize.js +2 -4
- package/legacy/Tabs/Tabs.js +22 -23
- package/legacy/TextField/TextField.js +12 -14
- package/legacy/ToggleButton/ToggleButton.js +11 -12
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +7 -8
- package/legacy/Toolbar/Toolbar.js +5 -6
- package/legacy/Tooltip/Tooltip.js +33 -34
- package/legacy/Typography/Typography.js +9 -11
- package/legacy/Zoom/Zoom.js +6 -8
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +8 -10
- package/legacy/styles/CssVarsProvider.js +2 -4
- package/legacy/styles/ThemeProvider.js +2 -4
- package/legacy/styles/adaptV4Theme.js +6 -7
- package/legacy/styles/createMixins.js +2 -3
- package/legacy/styles/createPalette.js +4 -6
- package/legacy/styles/createTheme.js +3 -4
- package/legacy/styles/createTransitions.js +5 -7
- package/legacy/styles/createTypography.js +4 -6
- package/legacy/styles/experimental_extendTheme.js +10 -12
- package/legacy/styles/responsiveFontSizes.js +4 -6
- package/legacy/usePagination/usePagination.js +2 -4
- package/legacy/useScrollTrigger/useScrollTrigger.js +2 -4
- package/legacy/utils/createSvgIcon.js +3 -5
- package/modern/Accordion/Accordion.js +43 -44
- package/modern/AccordionActions/AccordionActions.js +18 -18
- package/modern/AccordionDetails/AccordionDetails.js +9 -7
- package/modern/AccordionSummary/AccordionSummary.js +32 -32
- package/modern/Alert/Alert.js +60 -64
- package/modern/AlertTitle/AlertTitle.js +9 -7
- package/modern/AppBar/AppBar.js +73 -89
- package/modern/Autocomplete/Autocomplete.js +150 -168
- package/modern/Avatar/Avatar.js +38 -42
- package/modern/AvatarGroup/AvatarGroup.js +33 -34
- package/modern/Backdrop/Backdrop.js +31 -33
- package/modern/Badge/Badge.js +107 -119
- package/modern/BottomNavigation/BottomNavigation.js +17 -15
- package/modern/BottomNavigationAction/BottomNavigationAction.js +31 -29
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +34 -35
- package/modern/Breadcrumbs/Breadcrumbs.js +21 -19
- package/modern/Button/Button.js +133 -168
- package/modern/ButtonBase/ButtonBase.js +42 -43
- package/modern/ButtonBase/TouchRipple.js +12 -9
- package/modern/ButtonGroup/ButtonGroup.js +89 -111
- package/modern/Card/Card.js +12 -11
- package/modern/CardActionArea/CardActionArea.js +12 -9
- package/modern/CardActions/CardActions.js +18 -18
- package/modern/CardContent/CardContent.js +12 -11
- package/modern/CardHeader/CardHeader.js +31 -30
- package/modern/CardMedia/CardMedia.js +27 -28
- package/modern/Checkbox/Checkbox.js +39 -44
- package/modern/Chip/Chip.js +129 -146
- package/modern/CircularProgress/CircularProgress.js +36 -43
- package/modern/Collapse/Collapse.js +65 -73
- package/modern/CssBaseline/CssBaseline.js +14 -17
- package/modern/Dialog/Dialog.js +94 -103
- package/modern/DialogActions/DialogActions.js +18 -18
- package/modern/DialogContent/DialogContent.js +22 -22
- package/modern/DialogContentText/DialogContentText.js +11 -13
- package/modern/DialogTitle/DialogTitle.js +10 -8
- package/modern/Divider/Divider.js +84 -99
- package/modern/Drawer/Drawer.js +76 -85
- package/modern/Fab/Fab.js +59 -70
- package/modern/Fade/Fade.js +30 -31
- package/modern/FilledInput/FilledInput.js +117 -135
- package/modern/FilledInput/filledInputClasses.js +2 -4
- package/modern/FormControl/FormControl.js +35 -41
- package/modern/FormControlLabel/FormControlLabel.js +38 -43
- package/modern/FormGroup/FormGroup.js +16 -16
- package/modern/FormHelperText/FormHelperText.js +23 -30
- package/modern/FormLabel/FormLabel.js +18 -26
- package/modern/GlobalStyles/GlobalStyles.js +3 -3
- package/modern/Grid/Grid.js +41 -50
- package/modern/Grow/Grow.js +30 -31
- package/modern/Hidden/Hidden.js +32 -31
- package/modern/Hidden/HiddenCss.js +29 -29
- package/modern/Hidden/withWidth.js +20 -20
- package/modern/Icon/Icon.js +15 -14
- package/modern/IconButton/IconButton.js +52 -59
- package/modern/ImageList/ImageList.js +29 -30
- package/modern/ImageListItem/ImageListItem.js +39 -40
- package/modern/ImageListItemBar/ImageListItemBar.js +41 -47
- package/modern/Input/Input.js +74 -77
- package/modern/Input/inputClasses.js +2 -4
- package/modern/InputAdornment/InputAdornment.js +34 -36
- package/modern/InputBase/InputBase.js +92 -116
- package/modern/InputLabel/InputLabel.js +68 -83
- package/modern/LinearProgress/LinearProgress.js +58 -64
- package/modern/Link/Link.js +64 -69
- package/modern/List/List.js +24 -24
- package/modern/ListItem/ListItem.js +96 -113
- package/modern/ListItemAvatar/ListItemAvatar.js +15 -15
- package/modern/ListItemButton/ListItemButton.js +35 -40
- package/modern/ListItemIcon/ListItemIcon.js +15 -15
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +15 -15
- package/modern/ListItemText/ListItemText.js +34 -34
- package/modern/ListSubheader/ListSubheader.js +32 -36
- package/modern/Menu/Menu.js +39 -38
- package/modern/MenuItem/MenuItem.js +45 -50
- package/modern/MenuList/MenuList.js +20 -17
- package/modern/MobileStepper/MobileStepper.js +53 -61
- package/modern/Modal/Modal.js +46 -51
- package/modern/NativeSelect/NativeSelect.js +22 -26
- package/modern/NativeSelect/NativeSelectInput.js +43 -50
- package/modern/OutlinedInput/NotchedOutline.js +51 -55
- package/modern/OutlinedInput/OutlinedInput.js +59 -72
- package/modern/OutlinedInput/outlinedInputClasses.js +2 -4
- package/modern/Pagination/Pagination.js +31 -35
- package/modern/PaginationItem/PaginationItem.js +93 -105
- package/modern/Paper/Paper.js +28 -32
- package/modern/Popover/Popover.js +51 -49
- package/modern/Popper/Popper.js +27 -25
- package/modern/Radio/Radio.js +33 -36
- package/modern/Radio/RadioButtonIcon.js +10 -11
- package/modern/RadioGroup/RadioGroup.js +17 -14
- package/modern/Rating/Rating.js +73 -88
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +15 -18
- package/modern/Select/Select.js +55 -59
- package/modern/Select/SelectInput.js +57 -58
- package/modern/Skeleton/Skeleton.js +46 -51
- package/modern/Slide/Slide.js +33 -37
- package/modern/Slider/Slider.js +216 -281
- package/modern/Snackbar/Snackbar.js +67 -81
- package/modern/SnackbarContent/SnackbarContent.js +15 -13
- package/modern/SpeedDial/SpeedDial.js +83 -85
- package/modern/SpeedDialAction/SpeedDialAction.js +52 -57
- package/modern/SpeedDialIcon/SpeedDialIcon.js +24 -25
- package/modern/Step/Step.js +26 -27
- package/modern/StepButton/StepButton.js +24 -23
- package/modern/StepConnector/StepConnector.js +31 -34
- package/modern/StepContent/StepContent.js +24 -23
- package/modern/StepIcon/StepIcon.js +22 -22
- package/modern/StepLabel/StepLabel.js +33 -34
- package/modern/Stepper/Stepper.js +31 -33
- package/modern/SvgIcon/SvgIcon.js +20 -19
- package/modern/SwipeableDrawer/SwipeArea.js +30 -33
- package/modern/SwipeableDrawer/SwipeableDrawer.js +43 -49
- package/modern/Switch/Switch.js +52 -59
- package/modern/Tab/Tab.js +83 -93
- package/modern/TabScrollButton/TabScrollButton.js +25 -30
- package/modern/Table/Table.js +19 -20
- package/modern/TableBody/TableBody.js +12 -11
- package/modern/TableCell/TableCell.js +59 -70
- package/modern/TableContainer/TableContainer.js +12 -11
- package/modern/TableFooter/TableFooter.js +12 -11
- package/modern/TableHead/TableHead.js +12 -11
- package/modern/TablePagination/TablePagination.js +49 -53
- package/modern/TablePagination/TablePaginationActions.js +25 -22
- package/modern/TableRow/TableRow.js +14 -13
- package/modern/TableSortLabel/TableSortLabel.js +23 -23
- package/modern/Tabs/ScrollbarSize.js +9 -7
- package/modern/Tabs/Tabs.js +92 -107
- package/modern/TextField/TextField.js +57 -57
- package/modern/ToggleButton/ToggleButton.js +35 -36
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +59 -60
- package/modern/Toolbar/Toolbar.js +25 -26
- package/modern/Tooltip/Tooltip.js +147 -177
- package/modern/Typography/Typography.js +32 -37
- package/modern/Zoom/Zoom.js +30 -31
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +43 -45
- package/modern/styles/CssVarsProvider.js +3 -3
- package/modern/styles/ThemeProvider.js +10 -7
- package/modern/styles/adaptV4Theme.js +31 -31
- package/modern/styles/createMixins.js +4 -4
- package/modern/styles/createPalette.js +13 -16
- package/modern/styles/createTheme.js +11 -16
- package/modern/styles/createTransitions.js +14 -17
- package/modern/styles/createTypography.js +29 -31
- package/modern/styles/experimental_extendTheme.js +33 -41
- package/modern/styles/responsiveFontSizes.js +11 -17
- package/modern/usePagination/usePagination.js +20 -18
- package/modern/useScrollTrigger/useScrollTrigger.js +10 -8
- package/modern/utils/createSvgIcon.js +5 -4
- package/node/Accordion/Accordion.js +43 -44
- package/node/AccordionActions/AccordionActions.js +18 -18
- package/node/AccordionDetails/AccordionDetails.js +9 -7
- package/node/AccordionSummary/AccordionSummary.js +32 -32
- package/node/Alert/Alert.js +60 -64
- package/node/AlertTitle/AlertTitle.js +9 -7
- package/node/AppBar/AppBar.js +73 -89
- package/node/Autocomplete/Autocomplete.js +153 -171
- package/node/Avatar/Avatar.js +38 -42
- package/node/AvatarGroup/AvatarGroup.js +33 -34
- package/node/Backdrop/Backdrop.js +31 -33
- package/node/Badge/Badge.js +107 -119
- package/node/BottomNavigation/BottomNavigation.js +17 -15
- package/node/BottomNavigationAction/BottomNavigationAction.js +31 -29
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +34 -35
- package/node/Breadcrumbs/Breadcrumbs.js +21 -19
- package/node/Button/Button.js +133 -168
- package/node/ButtonBase/ButtonBase.js +42 -43
- package/node/ButtonBase/TouchRipple.js +12 -9
- package/node/ButtonGroup/ButtonGroup.js +89 -111
- package/node/Card/Card.js +12 -11
- package/node/CardActionArea/CardActionArea.js +12 -9
- package/node/CardActions/CardActions.js +18 -18
- package/node/CardContent/CardContent.js +12 -11
- package/node/CardHeader/CardHeader.js +31 -30
- package/node/CardMedia/CardMedia.js +27 -28
- package/node/Checkbox/Checkbox.js +39 -44
- package/node/Chip/Chip.js +129 -146
- package/node/CircularProgress/CircularProgress.js +36 -43
- package/node/Collapse/Collapse.js +65 -73
- package/node/CssBaseline/CssBaseline.js +14 -17
- package/node/Dialog/Dialog.js +94 -103
- package/node/DialogActions/DialogActions.js +18 -18
- package/node/DialogContent/DialogContent.js +22 -22
- package/node/DialogContentText/DialogContentText.js +11 -13
- package/node/DialogTitle/DialogTitle.js +10 -8
- package/node/Divider/Divider.js +84 -99
- package/node/Drawer/Drawer.js +76 -85
- package/node/Fab/Fab.js +60 -71
- package/node/Fade/Fade.js +30 -31
- package/node/FilledInput/FilledInput.js +117 -135
- package/node/FilledInput/filledInputClasses.js +2 -4
- package/node/FormControl/FormControl.js +35 -41
- package/node/FormControlLabel/FormControlLabel.js +38 -43
- package/node/FormGroup/FormGroup.js +16 -16
- package/node/FormHelperText/FormHelperText.js +23 -30
- package/node/FormLabel/FormLabel.js +18 -26
- package/node/GlobalStyles/GlobalStyles.js +3 -3
- package/node/Grid/Grid.js +43 -54
- package/node/Grow/Grow.js +30 -31
- package/node/Hidden/Hidden.js +36 -34
- package/node/Hidden/HiddenCss.js +29 -29
- package/node/Hidden/withWidth.js +20 -20
- package/node/Icon/Icon.js +15 -14
- package/node/IconButton/IconButton.js +52 -59
- package/node/ImageList/ImageList.js +29 -30
- package/node/ImageListItem/ImageListItem.js +39 -40
- package/node/ImageListItemBar/ImageListItemBar.js +41 -47
- package/node/Input/Input.js +74 -77
- package/node/Input/inputClasses.js +2 -4
- package/node/InputAdornment/InputAdornment.js +34 -36
- package/node/InputBase/InputBase.js +92 -116
- package/node/InputLabel/InputLabel.js +68 -83
- package/node/LinearProgress/LinearProgress.js +58 -64
- package/node/Link/Link.js +64 -69
- package/node/List/List.js +24 -24
- package/node/ListItem/ListItem.js +96 -113
- package/node/ListItemAvatar/ListItemAvatar.js +15 -15
- package/node/ListItemButton/ListItemButton.js +35 -40
- package/node/ListItemIcon/ListItemIcon.js +15 -15
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +15 -15
- package/node/ListItemText/ListItemText.js +34 -34
- package/node/ListSubheader/ListSubheader.js +32 -36
- package/node/Menu/Menu.js +39 -38
- package/node/MenuItem/MenuItem.js +45 -50
- package/node/MenuList/MenuList.js +20 -17
- package/node/MobileStepper/MobileStepper.js +53 -61
- package/node/Modal/Modal.js +46 -51
- package/node/NativeSelect/NativeSelect.js +22 -26
- package/node/NativeSelect/NativeSelectInput.js +43 -50
- package/node/OutlinedInput/NotchedOutline.js +51 -55
- package/node/OutlinedInput/OutlinedInput.js +59 -72
- package/node/OutlinedInput/outlinedInputClasses.js +2 -4
- package/node/Pagination/Pagination.js +31 -35
- package/node/PaginationItem/PaginationItem.js +93 -105
- package/node/Paper/Paper.js +28 -32
- package/node/Popover/Popover.js +51 -49
- package/node/Popper/Popper.js +27 -25
- package/node/Radio/Radio.js +33 -36
- package/node/Radio/RadioButtonIcon.js +10 -11
- package/node/RadioGroup/RadioGroup.js +17 -14
- package/node/Rating/Rating.js +73 -88
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +15 -18
- package/node/Select/Select.js +55 -59
- package/node/Select/SelectInput.js +57 -58
- package/node/Skeleton/Skeleton.js +46 -51
- package/node/Slide/Slide.js +34 -39
- package/node/Slider/Slider.js +216 -281
- package/node/Snackbar/Snackbar.js +67 -81
- package/node/SnackbarContent/SnackbarContent.js +15 -13
- package/node/SpeedDial/SpeedDial.js +83 -85
- package/node/SpeedDialAction/SpeedDialAction.js +52 -59
- package/node/SpeedDialIcon/SpeedDialIcon.js +24 -25
- package/node/Step/Step.js +26 -27
- package/node/StepButton/StepButton.js +24 -23
- package/node/StepConnector/StepConnector.js +31 -34
- package/node/StepContent/StepContent.js +24 -23
- package/node/StepIcon/StepIcon.js +22 -22
- package/node/StepLabel/StepLabel.js +33 -34
- package/node/Stepper/Stepper.js +31 -33
- package/node/SvgIcon/SvgIcon.js +20 -19
- package/node/SwipeableDrawer/SwipeArea.js +30 -33
- package/node/SwipeableDrawer/SwipeableDrawer.js +44 -51
- package/node/Switch/Switch.js +52 -61
- package/node/Tab/Tab.js +83 -93
- package/node/TabScrollButton/TabScrollButton.js +26 -32
- package/node/Table/Table.js +19 -20
- package/node/TableBody/TableBody.js +12 -11
- package/node/TableCell/TableCell.js +59 -70
- package/node/TableContainer/TableContainer.js +12 -11
- package/node/TableFooter/TableFooter.js +12 -11
- package/node/TableHead/TableHead.js +12 -11
- package/node/TablePagination/TablePagination.js +49 -53
- package/node/TablePagination/TablePaginationActions.js +25 -22
- package/node/TableRow/TableRow.js +14 -13
- package/node/TableSortLabel/TableSortLabel.js +23 -23
- package/node/Tabs/ScrollbarSize.js +9 -7
- package/node/Tabs/Tabs.js +92 -107
- package/node/TextField/TextField.js +57 -57
- package/node/ToggleButton/ToggleButton.js +35 -38
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +59 -60
- package/node/Toolbar/Toolbar.js +25 -26
- package/node/Tooltip/Tooltip.js +147 -177
- package/node/Typography/Typography.js +32 -37
- package/node/Zoom/Zoom.js +30 -31
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +43 -45
- package/node/styles/CssVarsProvider.js +3 -3
- package/node/styles/ThemeProvider.js +10 -7
- package/node/styles/adaptV4Theme.js +32 -31
- package/node/styles/createMixins.js +5 -4
- package/node/styles/createPalette.js +13 -16
- package/node/styles/createTheme.js +11 -16
- package/node/styles/createTransitions.js +15 -17
- package/node/styles/createTypography.js +30 -31
- package/node/styles/experimental_extendTheme.js +33 -41
- package/node/styles/responsiveFontSizes.js +12 -17
- package/node/usePagination/usePagination.js +21 -18
- package/node/useScrollTrigger/useScrollTrigger.js +11 -8
- package/node/utils/createSvgIcon.js +5 -4
- package/package.json +4 -4
- package/styles/CssVarsProvider.js +3 -3
- package/styles/ThemeProvider.js +10 -7
- package/styles/adaptV4Theme.js +31 -31
- package/styles/createMixins.js +4 -4
- package/styles/createPalette.js +13 -16
- package/styles/createTheme.js +11 -16
- package/styles/createTransitions.js +14 -17
- package/styles/createTypography.js +29 -31
- package/styles/experimental_extendTheme.js +33 -41
- package/styles/responsiveFontSizes.js +11 -17
- package/umd/material-ui.development.js +6066 -7085
- package/umd/material-ui.production.min.js +21 -21
- package/usePagination/usePagination.js +20 -18
- package/useScrollTrigger/useScrollTrigger.js +10 -8
- package/utils/createSvgIcon.js +5 -4
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
4
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
5
|
import * as React from 'react';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
8
7
|
import clsx from 'clsx';
|
|
@@ -24,6 +23,7 @@ import useThemeProps from '../styles/useThemeProps';
|
|
|
24
23
|
import styled from '../styles/styled';
|
|
25
24
|
import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses';
|
|
26
25
|
import capitalize from '../utils/capitalize';
|
|
26
|
+
import useForkRef from '../utils/useForkRef';
|
|
27
27
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
28
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
29
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
@@ -69,21 +69,21 @@ var AutocompleteRoot = styled('div', {
|
|
|
69
69
|
return [_defineProperty({}, "& .".concat(autocompleteClasses.tag), styles.tag), _defineProperty({}, "& .".concat(autocompleteClasses.tag), styles["tagSize".concat(capitalize(size))]), _defineProperty({}, "& .".concat(autocompleteClasses.inputRoot), styles.inputRoot), _defineProperty({}, "& .".concat(autocompleteClasses.input), styles.input), _defineProperty({}, "& .".concat(autocompleteClasses.input), inputFocused && styles.inputFocused), styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];
|
|
70
70
|
}
|
|
71
71
|
})(function (_ref6) {
|
|
72
|
-
var
|
|
72
|
+
var _extends2, _$concat, _$concat2, _$concat3, _extends3;
|
|
73
73
|
var ownerState = _ref6.ownerState;
|
|
74
|
-
return
|
|
74
|
+
return _extends((_extends2 = {}, _defineProperty(_extends2, "&.".concat(autocompleteClasses.focused, " .").concat(autocompleteClasses.clearIndicator), {
|
|
75
75
|
visibility: 'visible'
|
|
76
|
-
}), _defineProperty(
|
|
76
|
+
}), _defineProperty(_extends2, '@media (pointer: fine)', _defineProperty({}, "&:hover .".concat(autocompleteClasses.clearIndicator), {
|
|
77
77
|
visibility: 'visible'
|
|
78
|
-
})),
|
|
78
|
+
})), _extends2), ownerState.fullWidth && {
|
|
79
79
|
width: '100%'
|
|
80
|
-
}
|
|
80
|
+
}, (_extends3 = {}, _defineProperty(_extends3, "& .".concat(autocompleteClasses.tag), _extends({
|
|
81
81
|
margin: 3,
|
|
82
82
|
maxWidth: 'calc(100% - 6px)'
|
|
83
83
|
}, ownerState.size === 'small' && {
|
|
84
84
|
margin: 2,
|
|
85
85
|
maxWidth: 'calc(100% - 4px)'
|
|
86
|
-
})), _defineProperty(
|
|
86
|
+
})), _defineProperty(_extends3, "& .".concat(autocompleteClasses.inputRoot), (_$concat = {
|
|
87
87
|
flexWrap: 'wrap'
|
|
88
88
|
}, _defineProperty(_$concat, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
89
89
|
paddingRight: 26 + 4
|
|
@@ -92,14 +92,14 @@ var AutocompleteRoot = styled('div', {
|
|
|
92
92
|
}), _defineProperty(_$concat, "& .".concat(autocompleteClasses.input), {
|
|
93
93
|
width: 0,
|
|
94
94
|
minWidth: 30
|
|
95
|
-
}), _$concat)), _defineProperty(
|
|
95
|
+
}), _$concat)), _defineProperty(_extends3, "& .".concat(inputClasses.root), {
|
|
96
96
|
paddingBottom: 1,
|
|
97
97
|
'& .MuiInput-input': {
|
|
98
98
|
padding: '4px 4px 4px 0px'
|
|
99
99
|
}
|
|
100
|
-
}), _defineProperty(
|
|
100
|
+
}), _defineProperty(_extends3, "& .".concat(inputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(inputClasses.input), {
|
|
101
101
|
padding: '2px 4px 3px 0'
|
|
102
|
-
})), _defineProperty(
|
|
102
|
+
})), _defineProperty(_extends3, "& .".concat(outlinedInputClasses.root), (_$concat2 = {
|
|
103
103
|
padding: 9
|
|
104
104
|
}, _defineProperty(_$concat2, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
105
105
|
paddingRight: 26 + 4 + 9
|
|
@@ -109,7 +109,7 @@ var AutocompleteRoot = styled('div', {
|
|
|
109
109
|
padding: '7.5px 4px 7.5px 5px'
|
|
110
110
|
}), _defineProperty(_$concat2, "& .".concat(autocompleteClasses.endAdornment), {
|
|
111
111
|
right: 9
|
|
112
|
-
}), _$concat2)), _defineProperty(
|
|
112
|
+
}), _$concat2)), _defineProperty(_extends3, "& .".concat(outlinedInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
|
|
113
113
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
114
114
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
115
115
|
paddingTop: 6,
|
|
@@ -117,7 +117,7 @@ var AutocompleteRoot = styled('div', {
|
|
|
117
117
|
paddingLeft: 6
|
|
118
118
|
}, "& .".concat(autocompleteClasses.input), {
|
|
119
119
|
padding: '2.5px 4px 2.5px 8px'
|
|
120
|
-
})), _defineProperty(
|
|
120
|
+
})), _defineProperty(_extends3, "& .".concat(filledInputClasses.root), (_$concat3 = {
|
|
121
121
|
paddingTop: 19,
|
|
122
122
|
paddingLeft: 8
|
|
123
123
|
}, _defineProperty(_$concat3, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
@@ -128,28 +128,28 @@ var AutocompleteRoot = styled('div', {
|
|
|
128
128
|
padding: '7px 4px'
|
|
129
129
|
}), _defineProperty(_$concat3, "& .".concat(autocompleteClasses.endAdornment), {
|
|
130
130
|
right: 9
|
|
131
|
-
}), _$concat3)), _defineProperty(
|
|
131
|
+
}), _$concat3)), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
|
|
132
132
|
paddingBottom: 1
|
|
133
133
|
}, "& .".concat(filledInputClasses.input), {
|
|
134
134
|
padding: '2.5px 4px'
|
|
135
|
-
})), _defineProperty(
|
|
135
|
+
})), _defineProperty(_extends3, "& .".concat(inputBaseClasses.hiddenLabel), {
|
|
136
136
|
paddingTop: 8
|
|
137
|
-
}), _defineProperty(
|
|
137
|
+
}), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel), _defineProperty({
|
|
138
138
|
paddingTop: 0,
|
|
139
139
|
paddingBottom: 0
|
|
140
140
|
}, "& .".concat(autocompleteClasses.input), {
|
|
141
141
|
paddingTop: 16,
|
|
142
142
|
paddingBottom: 17
|
|
143
|
-
})), _defineProperty(
|
|
143
|
+
})), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
|
|
144
144
|
paddingTop: 8,
|
|
145
145
|
paddingBottom: 9
|
|
146
|
-
})), _defineProperty(
|
|
146
|
+
})), _defineProperty(_extends3, "& .".concat(autocompleteClasses.input), _extends({
|
|
147
147
|
flexGrow: 1,
|
|
148
148
|
textOverflow: 'ellipsis',
|
|
149
149
|
opacity: 0
|
|
150
150
|
}, ownerState.inputFocused && {
|
|
151
151
|
opacity: 1
|
|
152
|
-
})),
|
|
152
|
+
})), _extends3));
|
|
153
153
|
});
|
|
154
154
|
var AutocompleteEndAdornment = styled('div', {
|
|
155
155
|
name: 'MuiAutocomplete',
|
|
@@ -180,11 +180,11 @@ var AutocompletePopupIndicator = styled(IconButton, {
|
|
|
180
180
|
slot: 'PopupIndicator',
|
|
181
181
|
overridesResolver: function overridesResolver(_ref7, styles) {
|
|
182
182
|
var ownerState = _ref7.ownerState;
|
|
183
|
-
return
|
|
183
|
+
return _extends({}, styles.popupIndicator, ownerState.popupOpen && styles.popupIndicatorOpen);
|
|
184
184
|
}
|
|
185
185
|
})(function (_ref8) {
|
|
186
186
|
var ownerState = _ref8.ownerState;
|
|
187
|
-
return
|
|
187
|
+
return _extends({
|
|
188
188
|
padding: 2,
|
|
189
189
|
marginRight: -2
|
|
190
190
|
}, ownerState.popupOpen && {
|
|
@@ -201,7 +201,7 @@ var AutocompletePopper = styled(Popper, {
|
|
|
201
201
|
})(function (_ref10) {
|
|
202
202
|
var theme = _ref10.theme,
|
|
203
203
|
ownerState = _ref10.ownerState;
|
|
204
|
-
return
|
|
204
|
+
return _extends({
|
|
205
205
|
zIndex: (theme.vars || theme).zIndex.modal
|
|
206
206
|
}, ownerState.disablePortal && {
|
|
207
207
|
position: 'absolute'
|
|
@@ -215,7 +215,7 @@ var AutocompletePaper = styled(Paper, {
|
|
|
215
215
|
}
|
|
216
216
|
})(function (_ref11) {
|
|
217
217
|
var theme = _ref11.theme;
|
|
218
|
-
return
|
|
218
|
+
return _extends({}, theme.typography.body1, {
|
|
219
219
|
overflow: 'auto'
|
|
220
220
|
});
|
|
221
221
|
});
|
|
@@ -442,7 +442,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
442
442
|
valueProp = props.value,
|
|
443
443
|
other = _objectWithoutProperties(props, ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]);
|
|
444
444
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
445
|
-
var _useAutocomplete = useAutocomplete(
|
|
445
|
+
var _useAutocomplete = useAutocomplete(_extends({}, props, {
|
|
446
446
|
componentName: 'Autocomplete'
|
|
447
447
|
})),
|
|
448
448
|
getRootProps = _useAutocomplete.getRootProps,
|
|
@@ -467,8 +467,16 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
467
467
|
var hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
|
|
468
468
|
var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
|
|
469
469
|
var _getInputProps = getInputProps(),
|
|
470
|
-
handleInputMouseDown = _getInputProps.onMouseDown;
|
|
471
|
-
var
|
|
470
|
+
handleInputMouseDown = _getInputProps.onMouseDown;
|
|
471
|
+
var _ref17 = ListboxProps != null ? ListboxProps : {},
|
|
472
|
+
externalListboxRef = _ref17.ref;
|
|
473
|
+
var _getListboxProps = getListboxProps(),
|
|
474
|
+
listboxRef = _getListboxProps.ref,
|
|
475
|
+
otherListboxProps = _objectWithoutProperties(_getListboxProps, ["ref"]);
|
|
476
|
+
var combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
|
|
477
|
+
|
|
478
|
+
// If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
479
|
+
var ownerState = _extends({}, props, {
|
|
472
480
|
disablePortal: disablePortal,
|
|
473
481
|
expanded: expanded,
|
|
474
482
|
focused: focused,
|
|
@@ -483,7 +491,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
483
491
|
var startAdornment;
|
|
484
492
|
if (multiple && value.length > 0) {
|
|
485
493
|
var getCustomizedTagProps = function getCustomizedTagProps(params) {
|
|
486
|
-
return
|
|
494
|
+
return _extends({
|
|
487
495
|
className: classes.tag,
|
|
488
496
|
disabled: disabled
|
|
489
497
|
}, getTagProps(params));
|
|
@@ -492,12 +500,12 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
492
500
|
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
493
501
|
} else {
|
|
494
502
|
startAdornment = value.map(function (option, index) {
|
|
495
|
-
return /*#__PURE__*/_jsx(Chip,
|
|
503
|
+
return /*#__PURE__*/_jsx(Chip, _extends({
|
|
496
504
|
label: getOptionLabel(option),
|
|
497
505
|
size: size
|
|
498
506
|
}, getCustomizedTagProps({
|
|
499
507
|
index: index
|
|
500
|
-
})
|
|
508
|
+
}), ChipProps));
|
|
501
509
|
});
|
|
502
510
|
}
|
|
503
511
|
}
|
|
@@ -527,7 +535,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
527
535
|
};
|
|
528
536
|
var renderGroup = renderGroupProp || defaultRenderGroup;
|
|
529
537
|
var defaultRenderOption = function defaultRenderOption(props2, option) {
|
|
530
|
-
return /*#__PURE__*/_jsx("li",
|
|
538
|
+
return /*#__PURE__*/_jsx("li", _extends({}, props2, {
|
|
531
539
|
children: getOptionLabel(option)
|
|
532
540
|
}));
|
|
533
541
|
};
|
|
@@ -537,7 +545,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
537
545
|
option: option,
|
|
538
546
|
index: index
|
|
539
547
|
});
|
|
540
|
-
return renderOption(
|
|
548
|
+
return renderOption(_extends({}, optionProps, {
|
|
541
549
|
className: classes.option
|
|
542
550
|
}), option, {
|
|
543
551
|
selected: optionProps['aria-selected'],
|
|
@@ -550,18 +558,18 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
550
558
|
var popperSlotProps = (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper;
|
|
551
559
|
var popupIndicatorSlotProps = (_slotProps$popupIndic = slotProps.popupIndicator) != null ? _slotProps$popupIndic : componentsProps.popupIndicator;
|
|
552
560
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
553
|
-
children: [/*#__PURE__*/_jsx(AutocompleteRoot,
|
|
561
|
+
children: [/*#__PURE__*/_jsx(AutocompleteRoot, _extends({
|
|
554
562
|
ref: ref,
|
|
555
563
|
className: clsx(classes.root, className),
|
|
556
564
|
ownerState: ownerState
|
|
557
|
-
}, getRootProps(other)
|
|
565
|
+
}, getRootProps(other), {
|
|
558
566
|
children: renderInput({
|
|
559
567
|
id: id,
|
|
560
568
|
disabled: disabled,
|
|
561
569
|
fullWidth: true,
|
|
562
570
|
size: size === 'small' ? 'small' : undefined,
|
|
563
571
|
InputLabelProps: getInputLabelProps(),
|
|
564
|
-
InputProps:
|
|
572
|
+
InputProps: _extends({
|
|
565
573
|
ref: setAnchorEl,
|
|
566
574
|
className: classes.inputRoot,
|
|
567
575
|
startAdornment: startAdornment,
|
|
@@ -574,31 +582,31 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
574
582
|
endAdornment: /*#__PURE__*/_jsxs(AutocompleteEndAdornment, {
|
|
575
583
|
className: classes.endAdornment,
|
|
576
584
|
ownerState: ownerState,
|
|
577
|
-
children: [hasClearIcon ? /*#__PURE__*/_jsx(AutocompleteClearIndicator,
|
|
585
|
+
children: [hasClearIcon ? /*#__PURE__*/_jsx(AutocompleteClearIndicator, _extends({}, getClearProps(), {
|
|
578
586
|
"aria-label": clearText,
|
|
579
587
|
title: clearText,
|
|
580
588
|
ownerState: ownerState
|
|
581
|
-
}, clearIndicatorSlotProps
|
|
589
|
+
}, clearIndicatorSlotProps, {
|
|
582
590
|
className: clsx(classes.clearIndicator, clearIndicatorSlotProps == null ? void 0 : clearIndicatorSlotProps.className),
|
|
583
591
|
children: clearIcon
|
|
584
|
-
})) : null, hasPopupIcon ? /*#__PURE__*/_jsx(AutocompletePopupIndicator,
|
|
592
|
+
})) : null, hasPopupIcon ? /*#__PURE__*/_jsx(AutocompletePopupIndicator, _extends({}, getPopupIndicatorProps(), {
|
|
585
593
|
disabled: disabled,
|
|
586
594
|
"aria-label": popupOpen ? closeText : openText,
|
|
587
595
|
title: popupOpen ? closeText : openText,
|
|
588
596
|
ownerState: ownerState
|
|
589
|
-
}, popupIndicatorSlotProps
|
|
597
|
+
}, popupIndicatorSlotProps, {
|
|
590
598
|
className: clsx(classes.popupIndicator, popupIndicatorSlotProps == null ? void 0 : popupIndicatorSlotProps.className),
|
|
591
599
|
children: popupIcon
|
|
592
600
|
})) : null]
|
|
593
601
|
})
|
|
594
602
|
}),
|
|
595
|
-
inputProps:
|
|
603
|
+
inputProps: _extends({
|
|
596
604
|
className: classes.input,
|
|
597
605
|
disabled: disabled,
|
|
598
606
|
readOnly: readOnly
|
|
599
607
|
}, getInputProps())
|
|
600
608
|
})
|
|
601
|
-
})), anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper,
|
|
609
|
+
})), anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper, _extends({
|
|
602
610
|
as: PopperComponent,
|
|
603
611
|
disablePortal: disablePortal,
|
|
604
612
|
style: {
|
|
@@ -608,12 +616,12 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
608
616
|
role: "presentation",
|
|
609
617
|
anchorEl: anchorEl,
|
|
610
618
|
open: popupOpen
|
|
611
|
-
}, popperSlotProps
|
|
619
|
+
}, popperSlotProps, {
|
|
612
620
|
className: clsx(classes.popper, popperSlotProps == null ? void 0 : popperSlotProps.className),
|
|
613
|
-
children: /*#__PURE__*/_jsxs(AutocompletePaper,
|
|
621
|
+
children: /*#__PURE__*/_jsxs(AutocompletePaper, _extends({
|
|
614
622
|
ownerState: ownerState,
|
|
615
623
|
as: PaperComponent
|
|
616
|
-
}, paperSlotProps
|
|
624
|
+
}, paperSlotProps, {
|
|
617
625
|
className: clsx(classes.paper, paperSlotProps == null ? void 0 : paperSlotProps.className),
|
|
618
626
|
children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/_jsx(AutocompleteLoading, {
|
|
619
627
|
className: classes.loading,
|
|
@@ -628,11 +636,12 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
628
636
|
event.preventDefault();
|
|
629
637
|
},
|
|
630
638
|
children: noOptionsText
|
|
631
|
-
}) : null, groupedOptions.length > 0 ? /*#__PURE__*/_jsx(AutocompleteListbox,
|
|
639
|
+
}) : null, groupedOptions.length > 0 ? /*#__PURE__*/_jsx(AutocompleteListbox, _extends({
|
|
632
640
|
as: ListboxComponent,
|
|
633
641
|
className: classes.listbox,
|
|
634
642
|
ownerState: ownerState
|
|
635
|
-
},
|
|
643
|
+
}, otherListboxProps, ListboxProps, {
|
|
644
|
+
ref: combinedListboxRef,
|
|
636
645
|
children: groupedOptions.map(function (option, index) {
|
|
637
646
|
if (groupBy) {
|
|
638
647
|
return renderGroup({
|
package/legacy/Avatar/Avatar.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
-
import
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
3
|
import * as React from 'react';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
7
5
|
import clsx from 'clsx';
|
|
@@ -32,7 +30,7 @@ var AvatarRoot = styled('div', {
|
|
|
32
30
|
})(function (_ref) {
|
|
33
31
|
var theme = _ref.theme,
|
|
34
32
|
ownerState = _ref.ownerState;
|
|
35
|
-
return
|
|
33
|
+
return _extends({
|
|
36
34
|
position: 'relative',
|
|
37
35
|
display: 'flex',
|
|
38
36
|
alignItems: 'center',
|
|
@@ -48,9 +46,9 @@ var AvatarRoot = styled('div', {
|
|
|
48
46
|
userSelect: 'none'
|
|
49
47
|
}, ownerState.variant === 'rounded' && {
|
|
50
48
|
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
51
|
-
}
|
|
49
|
+
}, ownerState.variant === 'square' && {
|
|
52
50
|
borderRadius: 0
|
|
53
|
-
}
|
|
51
|
+
}, ownerState.colorDefault && _extends({
|
|
54
52
|
color: (theme.vars || theme).palette.background.default
|
|
55
53
|
}, theme.vars ? {
|
|
56
54
|
backgroundColor: theme.vars.palette.Avatar.defaultBg
|
|
@@ -144,20 +142,20 @@ var Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
|
144
142
|
var children = null;
|
|
145
143
|
|
|
146
144
|
// Use a hook instead of onError on the img element to support server-side rendering.
|
|
147
|
-
var loaded = useLoaded(
|
|
145
|
+
var loaded = useLoaded(_extends({}, imgProps, {
|
|
148
146
|
src: src,
|
|
149
147
|
srcSet: srcSet
|
|
150
148
|
}));
|
|
151
149
|
var hasImg = src || srcSet;
|
|
152
150
|
var hasImgNotFailing = hasImg && loaded !== 'error';
|
|
153
|
-
var ownerState =
|
|
151
|
+
var ownerState = _extends({}, props, {
|
|
154
152
|
colorDefault: !hasImgNotFailing,
|
|
155
153
|
component: component,
|
|
156
154
|
variant: variant
|
|
157
155
|
});
|
|
158
156
|
var classes = useUtilityClasses(ownerState);
|
|
159
157
|
if (hasImgNotFailing) {
|
|
160
|
-
children = /*#__PURE__*/_jsx(AvatarImg,
|
|
158
|
+
children = /*#__PURE__*/_jsx(AvatarImg, _extends({
|
|
161
159
|
alt: alt,
|
|
162
160
|
src: src,
|
|
163
161
|
srcSet: srcSet,
|
|
@@ -175,12 +173,12 @@ var Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
|
175
173
|
className: classes.fallback
|
|
176
174
|
});
|
|
177
175
|
}
|
|
178
|
-
return /*#__PURE__*/_jsx(AvatarRoot,
|
|
176
|
+
return /*#__PURE__*/_jsx(AvatarRoot, _extends({
|
|
179
177
|
as: component,
|
|
180
178
|
ownerState: ownerState,
|
|
181
179
|
className: clsx(classes.root, className),
|
|
182
180
|
ref: ref
|
|
183
|
-
}, other
|
|
181
|
+
}, other, {
|
|
184
182
|
children: children
|
|
185
183
|
}));
|
|
186
184
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
4
|
import * as React from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import { isFragment } from 'react-is';
|
|
@@ -29,7 +28,7 @@ var AvatarGroupRoot = styled('div', {
|
|
|
29
28
|
name: 'MuiAvatarGroup',
|
|
30
29
|
slot: 'Root',
|
|
31
30
|
overridesResolver: function overridesResolver(props, styles) {
|
|
32
|
-
return
|
|
31
|
+
return _extends(_defineProperty({}, "& .".concat(avatarGroupClasses.avatar), styles.avatar), styles.root);
|
|
33
32
|
}
|
|
34
33
|
})(function (_ref) {
|
|
35
34
|
var _ref2;
|
|
@@ -83,7 +82,7 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
|
|
|
83
82
|
variant = _props$variant === void 0 ? 'circular' : _props$variant,
|
|
84
83
|
other = _objectWithoutProperties(props, ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"]);
|
|
85
84
|
var clampedMax = max < 2 ? 2 : max;
|
|
86
|
-
var ownerState =
|
|
85
|
+
var ownerState = _extends({}, props, {
|
|
87
86
|
max: max,
|
|
88
87
|
spacing: spacing,
|
|
89
88
|
component: component,
|
|
@@ -107,25 +106,25 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
|
|
|
107
106
|
var extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
108
107
|
var marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
|
|
109
108
|
var additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
|
|
110
|
-
return /*#__PURE__*/_jsxs(AvatarGroupRoot,
|
|
109
|
+
return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
|
|
111
110
|
as: component,
|
|
112
111
|
ownerState: ownerState,
|
|
113
112
|
className: clsx(classes.root, className),
|
|
114
113
|
ref: ref
|
|
115
|
-
}, other
|
|
116
|
-
children: [extraAvatars ? /*#__PURE__*/_jsxs(AvatarGroupAvatar,
|
|
114
|
+
}, other, {
|
|
115
|
+
children: [extraAvatars ? /*#__PURE__*/_jsxs(AvatarGroupAvatar, _extends({
|
|
117
116
|
ownerState: ownerState,
|
|
118
117
|
variant: variant
|
|
119
|
-
}, additionalAvatarSlotProps
|
|
118
|
+
}, additionalAvatarSlotProps, {
|
|
120
119
|
className: clsx(classes.avatar, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.className),
|
|
121
|
-
style:
|
|
120
|
+
style: _extends({
|
|
122
121
|
marginLeft: marginLeft
|
|
123
122
|
}, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.style),
|
|
124
123
|
children: ["+", extraAvatars]
|
|
125
124
|
})) : null, children.slice(0, maxAvatars).reverse().map(function (child, index) {
|
|
126
125
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
127
126
|
className: clsx(child.props.className, classes.avatar),
|
|
128
|
-
style:
|
|
127
|
+
style: _extends({
|
|
129
128
|
// Consistent with "&:last-child" styling for the default spacing,
|
|
130
129
|
// we do not apply custom marginLeft spacing on the last child
|
|
131
130
|
marginLeft: index === maxAvatars - 1 ? undefined : marginLeft
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
-
import
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
3
|
import * as React from 'react';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
7
5
|
import clsx from 'clsx';
|
|
@@ -28,7 +26,7 @@ var BackdropRoot = styled('div', {
|
|
|
28
26
|
}
|
|
29
27
|
})(function (_ref) {
|
|
30
28
|
var ownerState = _ref.ownerState;
|
|
31
|
-
return
|
|
29
|
+
return _extends({
|
|
32
30
|
position: 'fixed',
|
|
33
31
|
display: 'flex',
|
|
34
32
|
alignItems: 'center',
|
|
@@ -68,22 +66,22 @@ var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
68
66
|
TransitionComponent = _props$TransitionComp === void 0 ? Fade : _props$TransitionComp,
|
|
69
67
|
transitionDuration = props.transitionDuration,
|
|
70
68
|
other = _objectWithoutProperties(props, ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"]);
|
|
71
|
-
var ownerState =
|
|
69
|
+
var ownerState = _extends({}, props, {
|
|
72
70
|
component: component,
|
|
73
71
|
invisible: invisible
|
|
74
72
|
});
|
|
75
73
|
var classes = useUtilityClasses(ownerState);
|
|
76
74
|
var rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
77
|
-
return /*#__PURE__*/_jsx(TransitionComponent,
|
|
75
|
+
return /*#__PURE__*/_jsx(TransitionComponent, _extends({
|
|
78
76
|
in: open,
|
|
79
77
|
timeout: transitionDuration
|
|
80
|
-
}, other
|
|
81
|
-
children: /*#__PURE__*/_jsx(BackdropRoot,
|
|
78
|
+
}, other, {
|
|
79
|
+
children: /*#__PURE__*/_jsx(BackdropRoot, _extends({
|
|
82
80
|
"aria-hidden": true
|
|
83
|
-
}, rootSlotProps
|
|
81
|
+
}, rootSlotProps, {
|
|
84
82
|
as: (_ref2 = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref2 : component,
|
|
85
83
|
className: clsx(classes.root, className, rootSlotProps == null ? void 0 : rootSlotProps.className),
|
|
86
|
-
ownerState:
|
|
84
|
+
ownerState: _extends({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
|
|
87
85
|
classes: classes,
|
|
88
86
|
ref: ref,
|
|
89
87
|
children: children
|
package/legacy/Badge/Badge.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
4
|
import * as React from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import clsx from 'clsx';
|
|
@@ -54,7 +53,7 @@ var BadgeBadge = styled('span', {
|
|
|
54
53
|
})(function (_ref) {
|
|
55
54
|
var theme = _ref.theme,
|
|
56
55
|
ownerState = _ref.ownerState;
|
|
57
|
-
return
|
|
56
|
+
return _extends({
|
|
58
57
|
display: 'flex',
|
|
59
58
|
flexDirection: 'row',
|
|
60
59
|
flexWrap: 'wrap',
|
|
@@ -80,68 +79,68 @@ var BadgeBadge = styled('span', {
|
|
|
80
79
|
}, ownerState.color !== 'default' && {
|
|
81
80
|
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
82
81
|
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
83
|
-
}
|
|
82
|
+
}, ownerState.variant === 'dot' && {
|
|
84
83
|
borderRadius: RADIUS_DOT,
|
|
85
84
|
height: RADIUS_DOT * 2,
|
|
86
85
|
minWidth: RADIUS_DOT * 2,
|
|
87
86
|
padding: 0
|
|
88
|
-
}
|
|
87
|
+
}, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular' && _defineProperty({
|
|
89
88
|
top: 0,
|
|
90
89
|
right: 0,
|
|
91
90
|
transform: 'scale(1) translate(50%, -50%)',
|
|
92
91
|
transformOrigin: '100% 0%'
|
|
93
92
|
}, "&.".concat(badgeClasses.invisible), {
|
|
94
93
|
transform: 'scale(0) translate(50%, -50%)'
|
|
95
|
-
})
|
|
94
|
+
}), ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular' && _defineProperty({
|
|
96
95
|
bottom: 0,
|
|
97
96
|
right: 0,
|
|
98
97
|
transform: 'scale(1) translate(50%, 50%)',
|
|
99
98
|
transformOrigin: '100% 100%'
|
|
100
99
|
}, "&.".concat(badgeClasses.invisible), {
|
|
101
100
|
transform: 'scale(0) translate(50%, 50%)'
|
|
102
|
-
})
|
|
101
|
+
}), ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular' && _defineProperty({
|
|
103
102
|
top: 0,
|
|
104
103
|
left: 0,
|
|
105
104
|
transform: 'scale(1) translate(-50%, -50%)',
|
|
106
105
|
transformOrigin: '0% 0%'
|
|
107
106
|
}, "&.".concat(badgeClasses.invisible), {
|
|
108
107
|
transform: 'scale(0) translate(-50%, -50%)'
|
|
109
|
-
})
|
|
108
|
+
}), ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular' && _defineProperty({
|
|
110
109
|
bottom: 0,
|
|
111
110
|
left: 0,
|
|
112
111
|
transform: 'scale(1) translate(-50%, 50%)',
|
|
113
112
|
transformOrigin: '0% 100%'
|
|
114
113
|
}, "&.".concat(badgeClasses.invisible), {
|
|
115
114
|
transform: 'scale(0) translate(-50%, 50%)'
|
|
116
|
-
})
|
|
115
|
+
}), ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular' && _defineProperty({
|
|
117
116
|
top: '14%',
|
|
118
117
|
right: '14%',
|
|
119
118
|
transform: 'scale(1) translate(50%, -50%)',
|
|
120
119
|
transformOrigin: '100% 0%'
|
|
121
120
|
}, "&.".concat(badgeClasses.invisible), {
|
|
122
121
|
transform: 'scale(0) translate(50%, -50%)'
|
|
123
|
-
})
|
|
122
|
+
}), ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular' && _defineProperty({
|
|
124
123
|
bottom: '14%',
|
|
125
124
|
right: '14%',
|
|
126
125
|
transform: 'scale(1) translate(50%, 50%)',
|
|
127
126
|
transformOrigin: '100% 100%'
|
|
128
127
|
}, "&.".concat(badgeClasses.invisible), {
|
|
129
128
|
transform: 'scale(0) translate(50%, 50%)'
|
|
130
|
-
})
|
|
129
|
+
}), ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular' && _defineProperty({
|
|
131
130
|
top: '14%',
|
|
132
131
|
left: '14%',
|
|
133
132
|
transform: 'scale(1) translate(-50%, -50%)',
|
|
134
133
|
transformOrigin: '0% 0%'
|
|
135
134
|
}, "&.".concat(badgeClasses.invisible), {
|
|
136
135
|
transform: 'scale(0) translate(-50%, -50%)'
|
|
137
|
-
})
|
|
136
|
+
}), ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular' && _defineProperty({
|
|
138
137
|
bottom: '14%',
|
|
139
138
|
left: '14%',
|
|
140
139
|
transform: 'scale(1) translate(-50%, 50%)',
|
|
141
140
|
transformOrigin: '0% 100%'
|
|
142
141
|
}, "&.".concat(badgeClasses.invisible), {
|
|
143
142
|
transform: 'scale(0) translate(-50%, 50%)'
|
|
144
|
-
})
|
|
143
|
+
}), ownerState.invisible && {
|
|
145
144
|
transition: theme.transitions.create('transform', {
|
|
146
145
|
easing: theme.transitions.easing.easeInOut,
|
|
147
146
|
duration: theme.transitions.duration.leavingScreen
|
|
@@ -211,7 +210,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
211
210
|
_ref10$variant = _ref10.variant,
|
|
212
211
|
variant = _ref10$variant === void 0 ? variantProp : _ref10$variant;
|
|
213
212
|
var displayValue = variant !== 'dot' ? displayValueFromHook : undefined;
|
|
214
|
-
var ownerState =
|
|
213
|
+
var ownerState = _extends({}, props, {
|
|
215
214
|
badgeContent: badgeContent,
|
|
216
215
|
invisible: invisible,
|
|
217
216
|
max: max,
|
|
@@ -246,8 +245,8 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
246
245
|
ownerState: ownerState,
|
|
247
246
|
className: clsx(classes.badge, badgeSlotProps == null ? void 0 : badgeSlotProps.className)
|
|
248
247
|
});
|
|
249
|
-
return /*#__PURE__*/_jsxs(RootSlot,
|
|
250
|
-
children: [children, /*#__PURE__*/_jsx(BadgeSlot,
|
|
248
|
+
return /*#__PURE__*/_jsxs(RootSlot, _extends({}, rootProps, {
|
|
249
|
+
children: [children, /*#__PURE__*/_jsx(BadgeSlot, _extends({}, badgeProps, {
|
|
251
250
|
children: displayValue
|
|
252
251
|
}))]
|
|
253
252
|
}));
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
3
|
import * as React from 'react';
|
|
6
4
|
import { isFragment } from 'react-is';
|
|
7
5
|
import PropTypes from 'prop-types';
|
|
@@ -47,17 +45,17 @@ var BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(i
|
|
|
47
45
|
showLabels = _props$showLabels === void 0 ? false : _props$showLabels,
|
|
48
46
|
value = props.value,
|
|
49
47
|
other = _objectWithoutProperties(props, ["children", "className", "component", "onChange", "showLabels", "value"]);
|
|
50
|
-
var ownerState =
|
|
48
|
+
var ownerState = _extends({}, props, {
|
|
51
49
|
component: component,
|
|
52
50
|
showLabels: showLabels
|
|
53
51
|
});
|
|
54
52
|
var classes = useUtilityClasses(ownerState);
|
|
55
|
-
return /*#__PURE__*/_jsx(BottomNavigationRoot,
|
|
53
|
+
return /*#__PURE__*/_jsx(BottomNavigationRoot, _extends({
|
|
56
54
|
as: component,
|
|
57
55
|
className: clsx(classes.root, className),
|
|
58
56
|
ref: ref,
|
|
59
57
|
ownerState: ownerState
|
|
60
|
-
}, other
|
|
58
|
+
}, other, {
|
|
61
59
|
children: React.Children.map(children, function (child, childIndex) {
|
|
62
60
|
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
63
61
|
return null;
|