@mui/material 5.13.0 → 5.13.1
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 +44 -43
- package/AccordionActions/AccordionActions.js +18 -18
- package/AccordionDetails/AccordionDetails.js +7 -9
- package/AccordionSummary/AccordionSummary.js +32 -32
- package/Alert/Alert.js +64 -60
- package/AlertTitle/AlertTitle.js +7 -9
- package/AppBar/AppBar.js +89 -73
- package/Autocomplete/Autocomplete.js +172 -141
- package/Avatar/Avatar.js +42 -38
- package/AvatarGroup/AvatarGroup.js +34 -33
- package/Backdrop/Backdrop.js +33 -31
- package/Badge/Badge.js +119 -107
- package/BottomNavigation/BottomNavigation.js +15 -17
- package/BottomNavigationAction/BottomNavigationAction.js +29 -31
- package/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/Breadcrumbs/Breadcrumbs.js +19 -21
- package/Button/Button.js +168 -133
- package/ButtonBase/ButtonBase.js +43 -42
- package/ButtonBase/TouchRipple.js +9 -12
- package/ButtonGroup/ButtonGroup.js +111 -89
- package/CHANGELOG.md +62 -0
- package/Card/Card.js +11 -12
- package/CardActionArea/CardActionArea.js +9 -12
- package/CardActions/CardActions.js +18 -18
- package/CardContent/CardContent.js +11 -12
- package/CardHeader/CardHeader.js +30 -31
- package/CardMedia/CardMedia.js +28 -27
- package/Checkbox/Checkbox.js +44 -39
- package/Chip/Chip.js +146 -129
- package/CircularProgress/CircularProgress.js +43 -36
- package/Collapse/Collapse.js +73 -65
- package/CssBaseline/CssBaseline.js +17 -14
- package/Dialog/Dialog.js +103 -94
- package/DialogActions/DialogActions.js +18 -18
- package/DialogContent/DialogContent.js +22 -22
- package/DialogContentText/DialogContentText.js +13 -11
- package/DialogTitle/DialogTitle.js +8 -10
- package/Divider/Divider.js +99 -84
- package/Drawer/Drawer.js +85 -76
- package/Fab/Fab.js +71 -60
- package/Fade/Fade.js +31 -30
- package/FilledInput/FilledInput.js +135 -117
- package/FilledInput/filledInputClasses.js +4 -2
- package/FormControl/FormControl.js +41 -35
- package/FormControlLabel/FormControlLabel.js +43 -38
- package/FormGroup/FormGroup.js +16 -16
- package/FormHelperText/FormHelperText.js +30 -23
- package/FormLabel/FormLabel.js +26 -18
- package/GlobalStyles/GlobalStyles.js +3 -3
- package/Grid/Grid.js +50 -41
- package/Grow/Grow.js +31 -30
- package/Hidden/Hidden.js +21 -22
- package/Hidden/HiddenCss.js +29 -29
- package/Hidden/withWidth.js +19 -19
- package/Icon/Icon.js +14 -15
- package/IconButton/IconButton.js +59 -52
- package/ImageList/ImageList.js +30 -29
- package/ImageListItem/ImageListItem.js +40 -39
- package/ImageListItemBar/ImageListItemBar.js +47 -41
- package/Input/Input.js +77 -74
- package/Input/inputClasses.js +4 -2
- package/InputAdornment/InputAdornment.js +36 -34
- package/InputBase/InputBase.js +116 -92
- package/InputLabel/InputLabel.js +83 -68
- package/LinearProgress/LinearProgress.js +64 -58
- package/Link/Link.js +69 -64
- package/List/List.js +24 -24
- package/ListItem/ListItem.js +113 -96
- package/ListItemAvatar/ListItemAvatar.js +15 -15
- package/ListItemButton/ListItemButton.js +40 -35
- package/ListItemIcon/ListItemIcon.js +15 -15
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +15 -15
- package/ListItemText/ListItemText.js +34 -34
- package/ListSubheader/ListSubheader.js +36 -32
- package/Menu/Menu.js +38 -39
- package/MenuItem/MenuItem.js +50 -45
- package/MenuList/MenuList.js +17 -20
- package/MobileStepper/MobileStepper.js +61 -53
- package/Modal/Modal.js +50 -45
- package/NativeSelect/NativeSelect.js +26 -22
- package/NativeSelect/NativeSelectInput.js +50 -43
- package/OutlinedInput/NotchedOutline.js +55 -51
- package/OutlinedInput/OutlinedInput.js +72 -59
- package/OutlinedInput/outlinedInputClasses.js +4 -2
- package/Pagination/Pagination.js +35 -31
- package/PaginationItem/PaginationItem.js +105 -93
- package/Paper/Paper.js +32 -28
- package/Popover/Popover.js +49 -51
- package/Popper/Popper.js +25 -27
- package/README.md +1 -1
- package/Radio/Radio.js +36 -33
- package/Radio/RadioButtonIcon.js +11 -10
- package/RadioGroup/RadioGroup.js +14 -17
- package/Rating/Rating.js +88 -73
- package/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/Select/Select.js +59 -55
- package/Select/SelectInput.js +58 -57
- package/Skeleton/Skeleton.js +51 -46
- package/Slide/Slide.js +37 -33
- package/Slider/Slider.js +281 -216
- package/Snackbar/Snackbar.js +81 -67
- package/SnackbarContent/SnackbarContent.js +13 -15
- package/SpeedDial/SpeedDial.js +85 -83
- package/SpeedDialAction/SpeedDialAction.js +57 -52
- package/SpeedDialIcon/SpeedDialIcon.js +25 -24
- package/Step/Step.js +27 -26
- package/StepButton/StepButton.js +23 -24
- package/StepConnector/StepConnector.js +34 -31
- package/StepContent/StepContent.js +23 -24
- package/StepIcon/StepIcon.js +22 -22
- package/StepLabel/StepLabel.js +34 -33
- package/Stepper/Stepper.js +33 -31
- package/SvgIcon/SvgIcon.js +19 -20
- package/SwipeableDrawer/SwipeArea.js +33 -30
- package/SwipeableDrawer/SwipeableDrawer.js +49 -43
- package/Switch/Switch.js +59 -52
- package/Tab/Tab.js +93 -83
- package/TabScrollButton/TabScrollButton.js +30 -25
- package/Table/Table.js +20 -19
- package/TableBody/TableBody.js +11 -12
- package/TableCell/TableCell.js +70 -59
- package/TableContainer/TableContainer.js +11 -12
- package/TableFooter/TableFooter.js +11 -12
- package/TableHead/TableHead.js +11 -12
- package/TablePagination/TablePagination.js +53 -49
- package/TablePagination/TablePaginationActions.js +22 -25
- package/TableRow/TableRow.js +13 -14
- package/TableSortLabel/TableSortLabel.js +23 -23
- package/Tabs/ScrollbarSize.js +7 -9
- package/Tabs/Tabs.js +107 -92
- package/TextField/TextField.js +57 -57
- package/ToggleButton/ToggleButton.js +36 -35
- package/ToggleButtonGroup/ToggleButtonGroup.js +60 -59
- package/Toolbar/Toolbar.js +26 -25
- package/Tooltip/Tooltip.js +177 -147
- package/Typography/Typography.js +37 -32
- package/Zoom/Zoom.js +31 -30
- package/index.js +1 -1
- package/internal/SwitchBase.js +45 -43
- package/legacy/Accordion/Accordion.js +9 -8
- package/legacy/AccordionActions/AccordionActions.js +6 -4
- package/legacy/AccordionDetails/AccordionDetails.js +4 -2
- package/legacy/AccordionSummary/AccordionSummary.js +12 -11
- package/legacy/Alert/Alert.js +11 -10
- package/legacy/AlertTitle/AlertTitle.js +4 -2
- package/legacy/AppBar/AppBar.js +18 -16
- package/legacy/Autocomplete/Autocomplete.js +45 -43
- package/legacy/Avatar/Avatar.js +11 -9
- package/legacy/AvatarGroup/AvatarGroup.js +10 -9
- package/legacy/Backdrop/Backdrop.js +10 -8
- package/legacy/Badge/Badge.js +16 -15
- package/legacy/BottomNavigation/BottomNavigation.js +6 -4
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +9 -8
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +10 -8
- package/legacy/Breadcrumbs/Breadcrumbs.js +5 -4
- package/legacy/Button/Button.js +37 -36
- package/legacy/ButtonBase/ButtonBase.js +6 -5
- package/legacy/ButtonBase/TouchRipple.js +5 -3
- package/legacy/ButtonGroup/ButtonGroup.js +28 -27
- package/legacy/Card/Card.js +5 -3
- package/legacy/CardActionArea/CardActionArea.js +4 -3
- package/legacy/CardActions/CardActions.js +6 -4
- package/legacy/CardContent/CardContent.js +5 -3
- package/legacy/CardHeader/CardHeader.js +11 -10
- package/legacy/CardMedia/CardMedia.js +9 -7
- package/legacy/Checkbox/Checkbox.js +9 -8
- package/legacy/Chip/Chip.js +26 -25
- package/legacy/CircularProgress/CircularProgress.js +12 -10
- package/legacy/Collapse/Collapse.js +17 -16
- package/legacy/CssBaseline/CssBaseline.js +9 -7
- package/legacy/Dialog/Dialog.js +20 -19
- package/legacy/DialogActions/DialogActions.js +6 -4
- package/legacy/DialogContent/DialogContent.js +5 -4
- package/legacy/DialogContentText/DialogContentText.js +6 -4
- package/legacy/DialogTitle/DialogTitle.js +4 -2
- package/legacy/Divider/Divider.js +19 -17
- package/legacy/Drawer/Drawer.js +23 -21
- package/legacy/Fab/Fab.js +13 -12
- package/legacy/Fade/Fade.js +8 -6
- package/legacy/FilledInput/FilledInput.js +24 -23
- package/legacy/FilledInput/filledInputClasses.js +4 -2
- package/legacy/FormControl/FormControl.js +10 -8
- package/legacy/FormControlLabel/FormControlLabel.js +11 -10
- package/legacy/FormGroup/FormGroup.js +6 -4
- package/legacy/FormHelperText/FormHelperText.js +12 -11
- package/legacy/FormLabel/FormLabel.js +13 -12
- package/legacy/GlobalStyles/GlobalStyles.js +4 -2
- package/legacy/Grid/Grid.js +13 -11
- package/legacy/Grow/Grow.js +8 -6
- package/legacy/Hidden/Hidden.js +5 -3
- package/legacy/Hidden/HiddenCss.js +4 -3
- package/legacy/Hidden/withWidth.js +6 -4
- package/legacy/Icon/Icon.js +5 -3
- package/legacy/IconButton/IconButton.js +15 -14
- package/legacy/ImageList/ImageList.js +9 -7
- package/legacy/ImageListItem/ImageListItem.js +9 -8
- package/legacy/ImageListItemBar/ImageListItemBar.js +13 -11
- package/legacy/Input/Input.js +8 -7
- package/legacy/Input/inputClasses.js +4 -2
- package/legacy/InputAdornment/InputAdornment.js +9 -8
- package/legacy/InputBase/InputBase.js +28 -27
- package/legacy/InputLabel/InputLabel.js +14 -13
- package/legacy/LinearProgress/LinearProgress.js +17 -15
- package/legacy/Link/Link.js +9 -8
- package/legacy/List/List.js +8 -6
- package/legacy/ListItem/ListItem.js +25 -24
- package/legacy/ListItemAvatar/ListItemAvatar.js +6 -4
- package/legacy/ListItemButton/ListItemButton.js +16 -15
- package/legacy/ListItemIcon/ListItemIcon.js +6 -4
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +6 -4
- package/legacy/ListItemText/ListItemText.js +11 -10
- package/legacy/ListSubheader/ListSubheader.js +10 -8
- package/legacy/Menu/Menu.js +12 -10
- package/legacy/MenuItem/MenuItem.js +22 -21
- package/legacy/MenuList/MenuList.js +5 -3
- package/legacy/MobileStepper/MobileStepper.js +12 -10
- package/legacy/Modal/Modal.js +10 -8
- package/legacy/NativeSelect/NativeSelect.js +8 -6
- package/legacy/NativeSelect/NativeSelectInput.js +17 -16
- package/legacy/OutlinedInput/NotchedOutline.js +8 -6
- package/legacy/OutlinedInput/OutlinedInput.js +23 -22
- package/legacy/OutlinedInput/outlinedInputClasses.js +4 -2
- package/legacy/Pagination/Pagination.js +9 -7
- package/legacy/PaginationItem/PaginationItem.js +24 -23
- package/legacy/Paper/Paper.js +9 -7
- package/legacy/Popover/Popover.js +12 -10
- package/legacy/Popper/Popper.js +6 -4
- package/legacy/Radio/Radio.js +8 -7
- package/legacy/Radio/RadioButtonIcon.js +5 -3
- package/legacy/RadioGroup/RadioGroup.js +5 -3
- package/legacy/Rating/Rating.js +24 -23
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +6 -4
- package/legacy/Select/Select.js +10 -8
- package/legacy/Select/SelectInput.js +11 -10
- package/legacy/Skeleton/Skeleton.js +13 -11
- package/legacy/Slide/Slide.js +10 -8
- package/legacy/Slider/Slider.js +65 -64
- package/legacy/Snackbar/Snackbar.js +16 -15
- package/legacy/SnackbarContent/SnackbarContent.js +5 -4
- package/legacy/SpeedDial/SpeedDial.js +15 -14
- package/legacy/SpeedDialAction/SpeedDialAction.js +16 -15
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +7 -6
- package/legacy/Step/Step.js +8 -6
- package/legacy/StepButton/StepButton.js +8 -7
- package/legacy/StepConnector/StepConnector.js +10 -8
- package/legacy/StepContent/StepContent.js +9 -7
- package/legacy/StepIcon/StepIcon.js +7 -6
- package/legacy/StepLabel/StepLabel.js +20 -19
- package/legacy/Stepper/Stepper.js +10 -8
- package/legacy/SvgIcon/SvgIcon.js +6 -4
- package/legacy/SwipeableDrawer/SwipeArea.js +9 -8
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +10 -8
- package/legacy/Switch/Switch.js +11 -10
- package/legacy/Tab/Tab.js +16 -15
- package/legacy/TabScrollButton/TabScrollButton.js +7 -6
- package/legacy/Table/Table.js +7 -5
- package/legacy/TableBody/TableBody.js +5 -3
- package/legacy/TableCell/TableCell.js +15 -14
- package/legacy/TableContainer/TableContainer.js +5 -3
- package/legacy/TableFooter/TableFooter.js +5 -3
- package/legacy/TableHead/TableHead.js +5 -3
- package/legacy/TablePagination/TablePagination.js +15 -14
- package/legacy/TablePagination/TablePaginationActions.js +9 -7
- package/legacy/TableRow/TableRow.js +4 -3
- package/legacy/TableSortLabel/TableSortLabel.js +7 -6
- package/legacy/Tabs/ScrollbarSize.js +4 -2
- package/legacy/Tabs/Tabs.js +23 -22
- package/legacy/TextField/TextField.js +14 -12
- package/legacy/ToggleButton/ToggleButton.js +12 -11
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +8 -7
- package/legacy/Toolbar/Toolbar.js +6 -5
- package/legacy/Tooltip/Tooltip.js +34 -33
- package/legacy/Typography/Typography.js +11 -9
- package/legacy/Zoom/Zoom.js +8 -6
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +10 -8
- package/legacy/locale/index.js +383 -68
- package/legacy/styles/CssVarsProvider.js +4 -2
- package/legacy/styles/ThemeProvider.js +4 -2
- package/legacy/styles/adaptV4Theme.js +7 -6
- package/legacy/styles/createMixins.js +3 -2
- package/legacy/styles/createPalette.js +6 -4
- package/legacy/styles/createTheme.js +4 -3
- package/legacy/styles/createTransitions.js +7 -5
- package/legacy/styles/createTypography.js +6 -4
- package/legacy/styles/experimental_extendTheme.js +12 -10
- package/legacy/styles/responsiveFontSizes.js +6 -4
- package/legacy/usePagination/usePagination.js +4 -2
- package/legacy/useScrollTrigger/useScrollTrigger.js +4 -2
- package/legacy/utils/createSvgIcon.js +5 -3
- package/locale/index.d.ts +4 -0
- package/locale/index.js +309 -0
- package/modern/Accordion/Accordion.js +44 -43
- package/modern/AccordionActions/AccordionActions.js +18 -18
- package/modern/AccordionDetails/AccordionDetails.js +7 -9
- package/modern/AccordionSummary/AccordionSummary.js +32 -32
- package/modern/Alert/Alert.js +64 -60
- package/modern/AlertTitle/AlertTitle.js +7 -9
- package/modern/AppBar/AppBar.js +89 -73
- package/modern/Autocomplete/Autocomplete.js +169 -138
- package/modern/Avatar/Avatar.js +42 -38
- package/modern/AvatarGroup/AvatarGroup.js +34 -33
- package/modern/Backdrop/Backdrop.js +33 -31
- package/modern/Badge/Badge.js +119 -107
- package/modern/BottomNavigation/BottomNavigation.js +15 -17
- package/modern/BottomNavigationAction/BottomNavigationAction.js +29 -31
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/modern/Breadcrumbs/Breadcrumbs.js +19 -21
- package/modern/Button/Button.js +168 -133
- package/modern/ButtonBase/ButtonBase.js +43 -42
- package/modern/ButtonBase/TouchRipple.js +9 -12
- package/modern/ButtonGroup/ButtonGroup.js +111 -89
- package/modern/Card/Card.js +11 -12
- package/modern/CardActionArea/CardActionArea.js +9 -12
- package/modern/CardActions/CardActions.js +18 -18
- package/modern/CardContent/CardContent.js +11 -12
- package/modern/CardHeader/CardHeader.js +30 -31
- package/modern/CardMedia/CardMedia.js +28 -27
- package/modern/Checkbox/Checkbox.js +44 -39
- package/modern/Chip/Chip.js +146 -129
- package/modern/CircularProgress/CircularProgress.js +43 -36
- package/modern/Collapse/Collapse.js +73 -65
- package/modern/CssBaseline/CssBaseline.js +17 -14
- package/modern/Dialog/Dialog.js +103 -94
- package/modern/DialogActions/DialogActions.js +18 -18
- package/modern/DialogContent/DialogContent.js +22 -22
- package/modern/DialogContentText/DialogContentText.js +13 -11
- package/modern/DialogTitle/DialogTitle.js +8 -10
- package/modern/Divider/Divider.js +99 -84
- package/modern/Drawer/Drawer.js +85 -76
- package/modern/Fab/Fab.js +70 -59
- package/modern/Fade/Fade.js +31 -30
- package/modern/FilledInput/FilledInput.js +135 -117
- package/modern/FilledInput/filledInputClasses.js +4 -2
- package/modern/FormControl/FormControl.js +41 -35
- package/modern/FormControlLabel/FormControlLabel.js +43 -38
- package/modern/FormGroup/FormGroup.js +16 -16
- package/modern/FormHelperText/FormHelperText.js +30 -23
- package/modern/FormLabel/FormLabel.js +26 -18
- package/modern/GlobalStyles/GlobalStyles.js +3 -3
- package/modern/Grid/Grid.js +50 -41
- package/modern/Grow/Grow.js +31 -30
- package/modern/Hidden/Hidden.js +21 -22
- package/modern/Hidden/HiddenCss.js +29 -29
- package/modern/Hidden/withWidth.js +19 -19
- package/modern/Icon/Icon.js +14 -15
- package/modern/IconButton/IconButton.js +59 -52
- package/modern/ImageList/ImageList.js +30 -29
- package/modern/ImageListItem/ImageListItem.js +40 -39
- package/modern/ImageListItemBar/ImageListItemBar.js +47 -41
- package/modern/Input/Input.js +77 -74
- package/modern/Input/inputClasses.js +4 -2
- package/modern/InputAdornment/InputAdornment.js +36 -34
- package/modern/InputBase/InputBase.js +116 -92
- package/modern/InputLabel/InputLabel.js +83 -68
- package/modern/LinearProgress/LinearProgress.js +64 -58
- package/modern/Link/Link.js +69 -64
- package/modern/List/List.js +24 -24
- package/modern/ListItem/ListItem.js +113 -96
- package/modern/ListItemAvatar/ListItemAvatar.js +15 -15
- package/modern/ListItemButton/ListItemButton.js +40 -35
- 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 +36 -32
- package/modern/Menu/Menu.js +38 -39
- package/modern/MenuItem/MenuItem.js +50 -45
- package/modern/MenuList/MenuList.js +17 -20
- package/modern/MobileStepper/MobileStepper.js +61 -53
- package/modern/Modal/Modal.js +50 -45
- package/modern/NativeSelect/NativeSelect.js +26 -22
- package/modern/NativeSelect/NativeSelectInput.js +50 -43
- package/modern/OutlinedInput/NotchedOutline.js +55 -51
- package/modern/OutlinedInput/OutlinedInput.js +72 -59
- package/modern/OutlinedInput/outlinedInputClasses.js +4 -2
- package/modern/Pagination/Pagination.js +35 -31
- package/modern/PaginationItem/PaginationItem.js +105 -93
- package/modern/Paper/Paper.js +32 -28
- package/modern/Popover/Popover.js +49 -51
- package/modern/Popper/Popper.js +25 -27
- package/modern/Radio/Radio.js +36 -33
- package/modern/Radio/RadioButtonIcon.js +11 -10
- package/modern/RadioGroup/RadioGroup.js +14 -17
- package/modern/Rating/Rating.js +88 -73
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/modern/Select/Select.js +59 -55
- package/modern/Select/SelectInput.js +58 -57
- package/modern/Skeleton/Skeleton.js +51 -46
- package/modern/Slide/Slide.js +37 -33
- package/modern/Slider/Slider.js +281 -216
- package/modern/Snackbar/Snackbar.js +81 -67
- package/modern/SnackbarContent/SnackbarContent.js +13 -15
- package/modern/SpeedDial/SpeedDial.js +85 -83
- package/modern/SpeedDialAction/SpeedDialAction.js +57 -52
- package/modern/SpeedDialIcon/SpeedDialIcon.js +25 -24
- package/modern/Step/Step.js +27 -26
- package/modern/StepButton/StepButton.js +23 -24
- package/modern/StepConnector/StepConnector.js +34 -31
- package/modern/StepContent/StepContent.js +23 -24
- package/modern/StepIcon/StepIcon.js +22 -22
- package/modern/StepLabel/StepLabel.js +34 -33
- package/modern/Stepper/Stepper.js +33 -31
- package/modern/SvgIcon/SvgIcon.js +19 -20
- package/modern/SwipeableDrawer/SwipeArea.js +33 -30
- package/modern/SwipeableDrawer/SwipeableDrawer.js +49 -43
- package/modern/Switch/Switch.js +59 -52
- package/modern/Tab/Tab.js +93 -83
- package/modern/TabScrollButton/TabScrollButton.js +30 -25
- package/modern/Table/Table.js +20 -19
- package/modern/TableBody/TableBody.js +11 -12
- package/modern/TableCell/TableCell.js +70 -59
- package/modern/TableContainer/TableContainer.js +11 -12
- package/modern/TableFooter/TableFooter.js +11 -12
- package/modern/TableHead/TableHead.js +11 -12
- package/modern/TablePagination/TablePagination.js +53 -49
- package/modern/TablePagination/TablePaginationActions.js +22 -25
- package/modern/TableRow/TableRow.js +13 -14
- package/modern/TableSortLabel/TableSortLabel.js +23 -23
- package/modern/Tabs/ScrollbarSize.js +7 -9
- package/modern/Tabs/Tabs.js +107 -92
- package/modern/TextField/TextField.js +57 -57
- package/modern/ToggleButton/ToggleButton.js +36 -35
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +60 -59
- package/modern/Toolbar/Toolbar.js +26 -25
- package/modern/Tooltip/Tooltip.js +177 -147
- package/modern/Typography/Typography.js +37 -32
- package/modern/Zoom/Zoom.js +31 -30
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +45 -43
- package/modern/locale/index.js +309 -0
- package/modern/styles/CssVarsProvider.js +3 -3
- package/modern/styles/ThemeProvider.js +7 -10
- package/modern/styles/adaptV4Theme.js +31 -31
- package/modern/styles/createMixins.js +4 -4
- package/modern/styles/createPalette.js +16 -13
- package/modern/styles/createTheme.js +16 -11
- package/modern/styles/createTransitions.js +17 -14
- package/modern/styles/createTypography.js +31 -29
- package/modern/styles/experimental_extendTheme.js +41 -33
- package/modern/styles/responsiveFontSizes.js +17 -11
- package/modern/usePagination/usePagination.js +18 -20
- package/modern/useScrollTrigger/useScrollTrigger.js +8 -10
- package/modern/utils/createSvgIcon.js +4 -5
- package/node/Accordion/Accordion.js +44 -43
- package/node/AccordionActions/AccordionActions.js +18 -18
- package/node/AccordionDetails/AccordionDetails.js +7 -9
- package/node/AccordionSummary/AccordionSummary.js +32 -32
- package/node/Alert/Alert.js +64 -60
- package/node/AlertTitle/AlertTitle.js +7 -9
- package/node/AppBar/AppBar.js +89 -73
- package/node/Autocomplete/Autocomplete.js +172 -141
- package/node/Avatar/Avatar.js +42 -38
- package/node/AvatarGroup/AvatarGroup.js +34 -33
- package/node/Backdrop/Backdrop.js +33 -31
- package/node/Badge/Badge.js +119 -107
- package/node/BottomNavigation/BottomNavigation.js +15 -17
- package/node/BottomNavigationAction/BottomNavigationAction.js +29 -31
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/node/Breadcrumbs/Breadcrumbs.js +19 -21
- package/node/Button/Button.js +168 -133
- package/node/ButtonBase/ButtonBase.js +43 -42
- package/node/ButtonBase/TouchRipple.js +9 -12
- package/node/ButtonGroup/ButtonGroup.js +111 -89
- package/node/Card/Card.js +11 -12
- package/node/CardActionArea/CardActionArea.js +9 -12
- package/node/CardActions/CardActions.js +18 -18
- package/node/CardContent/CardContent.js +11 -12
- package/node/CardHeader/CardHeader.js +30 -31
- package/node/CardMedia/CardMedia.js +28 -27
- package/node/Checkbox/Checkbox.js +44 -39
- package/node/Chip/Chip.js +146 -129
- package/node/CircularProgress/CircularProgress.js +43 -36
- package/node/Collapse/Collapse.js +73 -65
- package/node/CssBaseline/CssBaseline.js +17 -14
- package/node/Dialog/Dialog.js +103 -94
- package/node/DialogActions/DialogActions.js +18 -18
- package/node/DialogContent/DialogContent.js +22 -22
- package/node/DialogContentText/DialogContentText.js +13 -11
- package/node/DialogTitle/DialogTitle.js +8 -10
- package/node/Divider/Divider.js +99 -84
- package/node/Drawer/Drawer.js +85 -76
- package/node/Fab/Fab.js +71 -60
- package/node/Fade/Fade.js +31 -30
- package/node/FilledInput/FilledInput.js +135 -117
- package/node/FilledInput/filledInputClasses.js +4 -2
- package/node/FormControl/FormControl.js +41 -35
- package/node/FormControlLabel/FormControlLabel.js +43 -38
- package/node/FormGroup/FormGroup.js +16 -16
- package/node/FormHelperText/FormHelperText.js +30 -23
- package/node/FormLabel/FormLabel.js +26 -18
- package/node/GlobalStyles/GlobalStyles.js +3 -3
- package/node/Grid/Grid.js +54 -43
- package/node/Grow/Grow.js +31 -30
- package/node/Hidden/Hidden.js +24 -26
- package/node/Hidden/HiddenCss.js +29 -29
- package/node/Hidden/withWidth.js +19 -19
- package/node/Icon/Icon.js +14 -15
- package/node/IconButton/IconButton.js +59 -52
- package/node/ImageList/ImageList.js +30 -29
- package/node/ImageListItem/ImageListItem.js +40 -39
- package/node/ImageListItemBar/ImageListItemBar.js +47 -41
- package/node/Input/Input.js +77 -74
- package/node/Input/inputClasses.js +4 -2
- package/node/InputAdornment/InputAdornment.js +36 -34
- package/node/InputBase/InputBase.js +116 -92
- package/node/InputLabel/InputLabel.js +83 -68
- package/node/LinearProgress/LinearProgress.js +64 -58
- package/node/Link/Link.js +69 -64
- package/node/List/List.js +24 -24
- package/node/ListItem/ListItem.js +113 -96
- package/node/ListItemAvatar/ListItemAvatar.js +15 -15
- package/node/ListItemButton/ListItemButton.js +40 -35
- 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 +36 -32
- package/node/Menu/Menu.js +38 -39
- package/node/MenuItem/MenuItem.js +50 -45
- package/node/MenuList/MenuList.js +17 -20
- package/node/MobileStepper/MobileStepper.js +61 -53
- package/node/Modal/Modal.js +50 -45
- package/node/NativeSelect/NativeSelect.js +26 -22
- package/node/NativeSelect/NativeSelectInput.js +50 -43
- package/node/OutlinedInput/NotchedOutline.js +55 -51
- package/node/OutlinedInput/OutlinedInput.js +72 -59
- package/node/OutlinedInput/outlinedInputClasses.js +4 -2
- package/node/Pagination/Pagination.js +35 -31
- package/node/PaginationItem/PaginationItem.js +105 -93
- package/node/Paper/Paper.js +32 -28
- package/node/Popover/Popover.js +49 -51
- package/node/Popper/Popper.js +25 -27
- package/node/Radio/Radio.js +36 -33
- package/node/Radio/RadioButtonIcon.js +11 -10
- package/node/RadioGroup/RadioGroup.js +14 -17
- package/node/Rating/Rating.js +88 -73
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/node/Select/Select.js +59 -55
- package/node/Select/SelectInput.js +58 -57
- package/node/Skeleton/Skeleton.js +51 -46
- package/node/Slide/Slide.js +39 -34
- package/node/Slider/Slider.js +281 -216
- package/node/Snackbar/Snackbar.js +81 -67
- package/node/SnackbarContent/SnackbarContent.js +13 -15
- package/node/SpeedDial/SpeedDial.js +85 -83
- package/node/SpeedDialAction/SpeedDialAction.js +59 -52
- package/node/SpeedDialIcon/SpeedDialIcon.js +25 -24
- package/node/Step/Step.js +27 -26
- package/node/StepButton/StepButton.js +23 -24
- package/node/StepConnector/StepConnector.js +34 -31
- package/node/StepContent/StepContent.js +23 -24
- package/node/StepIcon/StepIcon.js +22 -22
- package/node/StepLabel/StepLabel.js +34 -33
- package/node/Stepper/Stepper.js +33 -31
- package/node/SvgIcon/SvgIcon.js +19 -20
- package/node/SwipeableDrawer/SwipeArea.js +33 -30
- package/node/SwipeableDrawer/SwipeableDrawer.js +51 -44
- package/node/Switch/Switch.js +61 -52
- package/node/Tab/Tab.js +93 -83
- package/node/TabScrollButton/TabScrollButton.js +32 -26
- package/node/Table/Table.js +20 -19
- package/node/TableBody/TableBody.js +11 -12
- package/node/TableCell/TableCell.js +70 -59
- package/node/TableContainer/TableContainer.js +11 -12
- package/node/TableFooter/TableFooter.js +11 -12
- package/node/TableHead/TableHead.js +11 -12
- package/node/TablePagination/TablePagination.js +53 -49
- package/node/TablePagination/TablePaginationActions.js +22 -25
- package/node/TableRow/TableRow.js +13 -14
- package/node/TableSortLabel/TableSortLabel.js +23 -23
- package/node/Tabs/ScrollbarSize.js +7 -9
- package/node/Tabs/Tabs.js +107 -92
- package/node/TextField/TextField.js +57 -57
- package/node/ToggleButton/ToggleButton.js +38 -35
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +60 -59
- package/node/Toolbar/Toolbar.js +26 -25
- package/node/Tooltip/Tooltip.js +177 -147
- package/node/Typography/Typography.js +37 -32
- package/node/Zoom/Zoom.js +31 -30
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +45 -43
- package/node/locale/index.js +314 -1
- package/node/styles/CssVarsProvider.js +3 -3
- package/node/styles/ThemeProvider.js +7 -10
- package/node/styles/adaptV4Theme.js +31 -32
- package/node/styles/createMixins.js +4 -5
- package/node/styles/createPalette.js +16 -13
- package/node/styles/createTheme.js +16 -11
- package/node/styles/createTransitions.js +17 -15
- package/node/styles/createTypography.js +31 -30
- package/node/styles/experimental_extendTheme.js +41 -33
- package/node/styles/responsiveFontSizes.js +17 -12
- package/node/usePagination/usePagination.js +18 -21
- package/node/useScrollTrigger/useScrollTrigger.js +8 -11
- package/node/utils/createSvgIcon.js +4 -5
- package/package.json +5 -5
- package/styles/CssVarsProvider.js +3 -3
- package/styles/ThemeProvider.js +7 -10
- package/styles/adaptV4Theme.js +31 -31
- package/styles/createMixins.js +4 -4
- package/styles/createPalette.js +16 -13
- package/styles/createTheme.js +16 -11
- package/styles/createTransitions.js +17 -14
- package/styles/createTypography.js +31 -29
- package/styles/experimental_extendTheme.js +41 -33
- package/styles/responsiveFontSizes.js +17 -11
- package/umd/material-ui.development.js +7513 -6042
- package/umd/material-ui.production.min.js +21 -21
- package/usePagination/usePagination.js +18 -20
- package/useScrollTrigger/useScrollTrigger.js +8 -10
- package/utils/createSvgIcon.js +4 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
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; }
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
import PropTypes from 'prop-types';
|
|
7
8
|
import clsx from 'clsx';
|
|
@@ -56,7 +57,7 @@ export var InputBaseRoot = styled('div', {
|
|
|
56
57
|
})(function (_ref) {
|
|
57
58
|
var theme = _ref.theme,
|
|
58
59
|
ownerState = _ref.ownerState;
|
|
59
|
-
return
|
|
60
|
+
return _objectSpread(_objectSpread(_objectSpread({}, theme.typography.body1), {}, _defineProperty({
|
|
60
61
|
color: (theme.vars || theme).palette.text.primary,
|
|
61
62
|
lineHeight: '1.4375em',
|
|
62
63
|
// 23px
|
|
@@ -69,11 +70,11 @@ export var InputBaseRoot = styled('div', {
|
|
|
69
70
|
}, "&.".concat(inputBaseClasses.disabled), {
|
|
70
71
|
color: (theme.vars || theme).palette.text.disabled,
|
|
71
72
|
cursor: 'default'
|
|
72
|
-
}), ownerState.multiline &&
|
|
73
|
+
}), ownerState.multiline && _objectSpread({
|
|
73
74
|
padding: '4px 0 5px'
|
|
74
75
|
}, ownerState.size === 'small' && {
|
|
75
76
|
paddingTop: 1
|
|
76
|
-
}), ownerState.fullWidth && {
|
|
77
|
+
})), ownerState.fullWidth && {
|
|
77
78
|
width: '100%'
|
|
78
79
|
});
|
|
79
80
|
});
|
|
@@ -82,17 +83,17 @@ export var InputBaseComponent = styled('input', {
|
|
|
82
83
|
slot: 'Input',
|
|
83
84
|
overridesResolver: inputOverridesResolver
|
|
84
85
|
})(function (_ref2) {
|
|
85
|
-
var
|
|
86
|
+
var _objectSpread3;
|
|
86
87
|
var theme = _ref2.theme,
|
|
87
88
|
ownerState = _ref2.ownerState;
|
|
88
89
|
var light = theme.palette.mode === 'light';
|
|
89
|
-
var placeholder =
|
|
90
|
+
var placeholder = _objectSpread(_objectSpread({
|
|
90
91
|
color: 'currentColor'
|
|
91
92
|
}, theme.vars ? {
|
|
92
93
|
opacity: theme.vars.opacity.inputPlaceholder
|
|
93
94
|
} : {
|
|
94
95
|
opacity: light ? 0.42 : 0.5
|
|
95
|
-
}, {
|
|
96
|
+
}), {}, {
|
|
96
97
|
transition: theme.transitions.create('opacity', {
|
|
97
98
|
duration: theme.transitions.duration.shorter
|
|
98
99
|
})
|
|
@@ -105,7 +106,7 @@ export var InputBaseComponent = styled('input', {
|
|
|
105
106
|
} : {
|
|
106
107
|
opacity: light ? 0.42 : 0.5
|
|
107
108
|
};
|
|
108
|
-
return
|
|
109
|
+
return _objectSpread(_objectSpread(_objectSpread((_objectSpread3 = {
|
|
109
110
|
font: 'inherit',
|
|
110
111
|
letterSpacing: 'inherit',
|
|
111
112
|
color: 'currentColor',
|
|
@@ -143,7 +144,7 @@ export var InputBaseComponent = styled('input', {
|
|
|
143
144
|
// Remove the padding when type=search.
|
|
144
145
|
WebkitAppearance: 'none'
|
|
145
146
|
}
|
|
146
|
-
}, _defineProperty(
|
|
147
|
+
}, _defineProperty(_objectSpread3, "label[data-shrink=false] + .".concat(inputBaseClasses.formControl, " &"), {
|
|
147
148
|
'&::-webkit-input-placeholder': placeholderHidden,
|
|
148
149
|
'&::-moz-placeholder': placeholderHidden,
|
|
149
150
|
// Firefox 19+
|
|
@@ -157,21 +158,21 @@ export var InputBaseComponent = styled('input', {
|
|
|
157
158
|
'&:focus:-ms-input-placeholder': placeholderVisible,
|
|
158
159
|
// IE11
|
|
159
160
|
'&:focus::-ms-input-placeholder': placeholderVisible // Edge
|
|
160
|
-
}), _defineProperty(
|
|
161
|
+
}), _defineProperty(_objectSpread3, "&.".concat(inputBaseClasses.disabled), {
|
|
161
162
|
opacity: 1,
|
|
162
163
|
// Reset iOS opacity
|
|
163
164
|
WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
|
|
164
|
-
}), _defineProperty(
|
|
165
|
+
}), _defineProperty(_objectSpread3, '&:-webkit-autofill', {
|
|
165
166
|
animationDuration: '5000s',
|
|
166
167
|
animationName: 'mui-auto-fill'
|
|
167
|
-
}),
|
|
168
|
+
}), _objectSpread3), ownerState.size === 'small' && {
|
|
168
169
|
paddingTop: 1
|
|
169
|
-
}, ownerState.multiline && {
|
|
170
|
+
}), ownerState.multiline && {
|
|
170
171
|
height: 'auto',
|
|
171
172
|
resize: 'none',
|
|
172
173
|
padding: 0,
|
|
173
174
|
paddingTop: 0
|
|
174
|
-
}, ownerState.type === 'search' && {
|
|
175
|
+
}), ownerState.type === 'search' && {
|
|
175
176
|
// Improve type search style.
|
|
176
177
|
MozAppearance: 'textfield'
|
|
177
178
|
});
|
|
@@ -388,13 +389,13 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
|
388
389
|
console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
|
|
389
390
|
}
|
|
390
391
|
}
|
|
391
|
-
inputProps =
|
|
392
|
+
inputProps = _objectSpread({
|
|
392
393
|
type: undefined,
|
|
393
394
|
minRows: rows,
|
|
394
395
|
maxRows: rows
|
|
395
396
|
}, inputProps);
|
|
396
397
|
} else {
|
|
397
|
-
inputProps =
|
|
398
|
+
inputProps = _objectSpread({
|
|
398
399
|
type: undefined,
|
|
399
400
|
maxRows: maxRows,
|
|
400
401
|
minRows: minRows
|
|
@@ -413,7 +414,7 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
|
413
414
|
muiFormControl.setAdornedStart(Boolean(startAdornment));
|
|
414
415
|
}
|
|
415
416
|
}, [muiFormControl, startAdornment]);
|
|
416
|
-
var ownerState =
|
|
417
|
+
var ownerState = _objectSpread(_objectSpread({}, props), {}, {
|
|
417
418
|
color: fcs.color || 'primary',
|
|
418
419
|
disabled: fcs.disabled,
|
|
419
420
|
endAdornment: endAdornment,
|
|
@@ -431,18 +432,18 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
|
431
432
|
var Root = slots.root || components.Root || InputBaseRoot;
|
|
432
433
|
var rootProps = slotProps.root || componentsProps.root || {};
|
|
433
434
|
var Input = slots.input || components.Input || InputBaseComponent;
|
|
434
|
-
inputProps =
|
|
435
|
+
inputProps = _objectSpread(_objectSpread({}, inputProps), (_slotProps$input = slotProps.input) != null ? _slotProps$input : componentsProps.input);
|
|
435
436
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
436
|
-
children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/_jsxs(Root,
|
|
437
|
-
ownerState:
|
|
438
|
-
}, {
|
|
437
|
+
children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/_jsxs(Root, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, rootProps), !isHostComponent(Root) && {
|
|
438
|
+
ownerState: _objectSpread(_objectSpread({}, ownerState), rootProps.ownerState)
|
|
439
|
+
}), {}, {
|
|
439
440
|
ref: ref,
|
|
440
441
|
onClick: handleClick
|
|
441
|
-
}, other, {
|
|
442
|
+
}, other), {}, {
|
|
442
443
|
className: clsx(classes.root, rootProps.className, className, readOnly && 'MuiInputBase-readOnly'),
|
|
443
444
|
children: [startAdornment, /*#__PURE__*/_jsx(FormControlContext.Provider, {
|
|
444
445
|
value: null,
|
|
445
|
-
children: /*#__PURE__*/_jsx(Input,
|
|
446
|
+
children: /*#__PURE__*/_jsx(Input, _objectSpread(_objectSpread(_objectSpread({
|
|
446
447
|
ownerState: ownerState,
|
|
447
448
|
"aria-invalid": fcs.error,
|
|
448
449
|
"aria-describedby": ariaDescribedby,
|
|
@@ -461,17 +462,17 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
|
|
|
461
462
|
onKeyDown: onKeyDown,
|
|
462
463
|
onKeyUp: onKeyUp,
|
|
463
464
|
type: type
|
|
464
|
-
}, inputProps, !isHostComponent(Input) && {
|
|
465
|
+
}, inputProps), !isHostComponent(Input) && {
|
|
465
466
|
as: InputComponent,
|
|
466
|
-
ownerState:
|
|
467
|
-
}, {
|
|
467
|
+
ownerState: _objectSpread(_objectSpread({}, ownerState), inputProps.ownerState)
|
|
468
|
+
}), {}, {
|
|
468
469
|
ref: handleInputRef,
|
|
469
470
|
className: clsx(classes.input, inputProps.className, readOnly && 'MuiInputBase-readOnly'),
|
|
470
471
|
onBlur: handleBlur,
|
|
471
472
|
onChange: handleChange,
|
|
472
473
|
onFocus: handleFocus
|
|
473
474
|
}))
|
|
474
|
-
}), endAdornment, renderSuffix ? renderSuffix(
|
|
475
|
+
}), endAdornment, renderSuffix ? renderSuffix(_objectSpread(_objectSpread({}, fcs), {}, {
|
|
475
476
|
startAdornment: startAdornment
|
|
476
477
|
})) : null]
|
|
477
478
|
}))]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
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; }
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import PropTypes from 'prop-types';
|
|
6
7
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
@@ -25,7 +26,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
25
26
|
asterisk: [required && 'asterisk']
|
|
26
27
|
};
|
|
27
28
|
var composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);
|
|
28
|
-
return
|
|
29
|
+
return _objectSpread(_objectSpread({}, classes), composedClasses);
|
|
29
30
|
};
|
|
30
31
|
var InputLabelRoot = styled(FormLabel, {
|
|
31
32
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -40,7 +41,7 @@ var InputLabelRoot = styled(FormLabel, {
|
|
|
40
41
|
})(function (_ref2) {
|
|
41
42
|
var theme = _ref2.theme,
|
|
42
43
|
ownerState = _ref2.ownerState;
|
|
43
|
-
return
|
|
44
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
44
45
|
display: 'block',
|
|
45
46
|
transformOrigin: 'top left',
|
|
46
47
|
whiteSpace: 'nowrap',
|
|
@@ -53,19 +54,19 @@ var InputLabelRoot = styled(FormLabel, {
|
|
|
53
54
|
top: 0,
|
|
54
55
|
// slight alteration to spec spacing to match visual spec result
|
|
55
56
|
transform: 'translate(0, 20px) scale(1)'
|
|
56
|
-
}, ownerState.size === 'small' && {
|
|
57
|
+
}), ownerState.size === 'small' && {
|
|
57
58
|
// Compensation for the `Input.inputSizeSmall` style.
|
|
58
59
|
transform: 'translate(0, 17px) scale(1)'
|
|
59
|
-
}, ownerState.shrink && {
|
|
60
|
+
}), ownerState.shrink && {
|
|
60
61
|
transform: 'translate(0, -1.5px) scale(0.75)',
|
|
61
62
|
transformOrigin: 'top left',
|
|
62
63
|
maxWidth: '133%'
|
|
63
|
-
}, !ownerState.disableAnimation && {
|
|
64
|
+
}), !ownerState.disableAnimation && {
|
|
64
65
|
transition: theme.transitions.create(['color', 'transform', 'max-width'], {
|
|
65
66
|
duration: theme.transitions.duration.shorter,
|
|
66
67
|
easing: theme.transitions.easing.easeOut
|
|
67
68
|
})
|
|
68
|
-
}, ownerState.variant === 'filled' &&
|
|
69
|
+
}), ownerState.variant === 'filled' && _objectSpread(_objectSpread({
|
|
69
70
|
// Chrome's autofill feature gives the input field a yellow background.
|
|
70
71
|
// Since the input field is behind the label in the HTML tree,
|
|
71
72
|
// the input field is drawn last and hides the label with an opaque background color.
|
|
@@ -76,14 +77,14 @@ var InputLabelRoot = styled(FormLabel, {
|
|
|
76
77
|
maxWidth: 'calc(100% - 24px)'
|
|
77
78
|
}, ownerState.size === 'small' && {
|
|
78
79
|
transform: 'translate(12px, 13px) scale(1)'
|
|
79
|
-
}, ownerState.shrink &&
|
|
80
|
+
}), ownerState.shrink && _objectSpread({
|
|
80
81
|
userSelect: 'none',
|
|
81
82
|
pointerEvents: 'auto',
|
|
82
83
|
transform: 'translate(12px, 7px) scale(0.75)',
|
|
83
84
|
maxWidth: 'calc(133% - 24px)'
|
|
84
85
|
}, ownerState.size === 'small' && {
|
|
85
86
|
transform: 'translate(12px, 4px) scale(0.75)'
|
|
86
|
-
})), ownerState.variant === 'outlined' &&
|
|
87
|
+
}))), ownerState.variant === 'outlined' && _objectSpread(_objectSpread({
|
|
87
88
|
// see comment above on filled.zIndex
|
|
88
89
|
zIndex: 1,
|
|
89
90
|
pointerEvents: 'none',
|
|
@@ -91,7 +92,7 @@ var InputLabelRoot = styled(FormLabel, {
|
|
|
91
92
|
maxWidth: 'calc(100% - 24px)'
|
|
92
93
|
}, ownerState.size === 'small' && {
|
|
93
94
|
transform: 'translate(14px, 9px) scale(1)'
|
|
94
|
-
}, ownerState.shrink && {
|
|
95
|
+
}), ownerState.shrink && {
|
|
95
96
|
userSelect: 'none',
|
|
96
97
|
pointerEvents: 'auto',
|
|
97
98
|
// Theoretically, we should have (8+5)*2/0.75 = 34px
|
|
@@ -122,7 +123,7 @@ var InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref)
|
|
|
122
123
|
muiFormControl: muiFormControl,
|
|
123
124
|
states: ['size', 'variant', 'required']
|
|
124
125
|
});
|
|
125
|
-
var ownerState =
|
|
126
|
+
var ownerState = _objectSpread(_objectSpread({}, props), {}, {
|
|
126
127
|
disableAnimation: disableAnimation,
|
|
127
128
|
formControl: muiFormControl,
|
|
128
129
|
shrink: shrink,
|
|
@@ -131,12 +132,12 @@ var InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref)
|
|
|
131
132
|
required: fcs.required
|
|
132
133
|
});
|
|
133
134
|
var classes = useUtilityClasses(ownerState);
|
|
134
|
-
return /*#__PURE__*/_jsx(InputLabelRoot,
|
|
135
|
+
return /*#__PURE__*/_jsx(InputLabelRoot, _objectSpread(_objectSpread({
|
|
135
136
|
"data-shrink": shrink,
|
|
136
137
|
ownerState: ownerState,
|
|
137
138
|
ref: ref,
|
|
138
139
|
className: clsx(classes.root, className)
|
|
139
|
-
}, other, {
|
|
140
|
+
}, other), {}, {
|
|
140
141
|
classes: classes
|
|
141
142
|
}));
|
|
142
143
|
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
-
import
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
5
|
+
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; }
|
|
6
|
+
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
7
|
import * as React from 'react';
|
|
6
8
|
import PropTypes from 'prop-types';
|
|
7
9
|
import clsx from 'clsx';
|
|
@@ -49,7 +51,7 @@ var LinearProgressRoot = styled('span', {
|
|
|
49
51
|
})(function (_ref) {
|
|
50
52
|
var ownerState = _ref.ownerState,
|
|
51
53
|
theme = _ref.theme;
|
|
52
|
-
return
|
|
54
|
+
return _objectSpread(_objectSpread(_objectSpread({
|
|
53
55
|
position: 'relative',
|
|
54
56
|
overflow: 'hidden',
|
|
55
57
|
display: 'block',
|
|
@@ -72,9 +74,9 @@ var LinearProgressRoot = styled('span', {
|
|
|
72
74
|
backgroundColor: 'currentColor',
|
|
73
75
|
opacity: 0.3
|
|
74
76
|
}
|
|
75
|
-
}, ownerState.variant === 'buffer' && {
|
|
77
|
+
}), ownerState.variant === 'buffer' && {
|
|
76
78
|
backgroundColor: 'transparent'
|
|
77
|
-
}, ownerState.variant === 'query' && {
|
|
79
|
+
}), ownerState.variant === 'query' && {
|
|
78
80
|
transform: 'rotate(180deg)'
|
|
79
81
|
});
|
|
80
82
|
});
|
|
@@ -89,14 +91,14 @@ var LinearProgressDashed = styled('span', {
|
|
|
89
91
|
var ownerState = _ref2.ownerState,
|
|
90
92
|
theme = _ref2.theme;
|
|
91
93
|
var backgroundColor = getColorShade(theme, ownerState.color);
|
|
92
|
-
return
|
|
94
|
+
return _objectSpread(_objectSpread({
|
|
93
95
|
position: 'absolute',
|
|
94
96
|
marginTop: 0,
|
|
95
97
|
height: '100%',
|
|
96
98
|
width: '100%'
|
|
97
99
|
}, ownerState.color === 'inherit' && {
|
|
98
100
|
opacity: 0.3
|
|
99
|
-
}, {
|
|
101
|
+
}), {}, {
|
|
100
102
|
backgroundImage: "radial-gradient(".concat(backgroundColor, " 0%, ").concat(backgroundColor, " 16%, transparent 42%)"),
|
|
101
103
|
backgroundSize: '10px 10px',
|
|
102
104
|
backgroundPosition: '0 -23px'
|
|
@@ -112,7 +114,7 @@ var LinearProgressBar1 = styled('span', {
|
|
|
112
114
|
})(function (_ref3) {
|
|
113
115
|
var ownerState = _ref3.ownerState,
|
|
114
116
|
theme = _ref3.theme;
|
|
115
|
-
return
|
|
117
|
+
return _objectSpread(_objectSpread({
|
|
116
118
|
width: '100%',
|
|
117
119
|
position: 'absolute',
|
|
118
120
|
left: 0,
|
|
@@ -123,7 +125,7 @@ var LinearProgressBar1 = styled('span', {
|
|
|
123
125
|
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
|
|
124
126
|
}, ownerState.variant === 'determinate' && {
|
|
125
127
|
transition: "transform .".concat(TRANSITION_DURATION, "s linear")
|
|
126
|
-
}, ownerState.variant === 'buffer' && {
|
|
128
|
+
}), ownerState.variant === 'buffer' && {
|
|
127
129
|
zIndex: 1,
|
|
128
130
|
transition: "transform .".concat(TRANSITION_DURATION, "s linear")
|
|
129
131
|
});
|
|
@@ -141,7 +143,7 @@ var LinearProgressBar2 = styled('span', {
|
|
|
141
143
|
})(function (_ref5) {
|
|
142
144
|
var ownerState = _ref5.ownerState,
|
|
143
145
|
theme = _ref5.theme;
|
|
144
|
-
return
|
|
146
|
+
return _objectSpread(_objectSpread(_objectSpread({
|
|
145
147
|
width: '100%',
|
|
146
148
|
position: 'absolute',
|
|
147
149
|
left: 0,
|
|
@@ -151,9 +153,9 @@ var LinearProgressBar2 = styled('span', {
|
|
|
151
153
|
transformOrigin: 'left'
|
|
152
154
|
}, ownerState.variant !== 'buffer' && {
|
|
153
155
|
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
|
|
154
|
-
}, ownerState.color === 'inherit' && {
|
|
156
|
+
}), ownerState.color === 'inherit' && {
|
|
155
157
|
opacity: 0.3
|
|
156
|
-
}, ownerState.variant === 'buffer' && {
|
|
158
|
+
}), ownerState.variant === 'buffer' && {
|
|
157
159
|
backgroundColor: getColorShade(theme, ownerState.color),
|
|
158
160
|
transition: "transform .".concat(TRANSITION_DURATION, "s linear")
|
|
159
161
|
});
|
|
@@ -182,7 +184,7 @@ var LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inPro
|
|
|
182
184
|
_props$variant = props.variant,
|
|
183
185
|
variant = _props$variant === void 0 ? 'indeterminate' : _props$variant,
|
|
184
186
|
other = _objectWithoutProperties(props, ["className", "color", "value", "valueBuffer", "variant"]);
|
|
185
|
-
var ownerState =
|
|
187
|
+
var ownerState = _objectSpread(_objectSpread({}, props), {}, {
|
|
186
188
|
color: color,
|
|
187
189
|
variant: variant
|
|
188
190
|
});
|
|
@@ -218,13 +220,13 @@ var LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inPro
|
|
|
218
220
|
console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
|
-
return /*#__PURE__*/_jsxs(LinearProgressRoot,
|
|
223
|
+
return /*#__PURE__*/_jsxs(LinearProgressRoot, _objectSpread(_objectSpread(_objectSpread({
|
|
222
224
|
className: clsx(classes.root, className),
|
|
223
225
|
ownerState: ownerState,
|
|
224
226
|
role: "progressbar"
|
|
225
|
-
}, rootProps, {
|
|
227
|
+
}, rootProps), {}, {
|
|
226
228
|
ref: ref
|
|
227
|
-
}, other, {
|
|
229
|
+
}, other), {}, {
|
|
228
230
|
children: [variant === 'buffer' ? /*#__PURE__*/_jsx(LinearProgressDashed, {
|
|
229
231
|
className: classes.dashed,
|
|
230
232
|
ownerState: ownerState
|
package/legacy/Link/Link.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
|
|
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; }
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
import PropTypes from 'prop-types';
|
|
7
8
|
import clsx from 'clsx';
|
|
@@ -36,25 +37,25 @@ var LinkRoot = styled(Typography, {
|
|
|
36
37
|
})(function (_ref) {
|
|
37
38
|
var theme = _ref.theme,
|
|
38
39
|
ownerState = _ref.ownerState;
|
|
39
|
-
return
|
|
40
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, ownerState.underline === 'none' && {
|
|
40
41
|
textDecoration: 'none'
|
|
41
|
-
}, ownerState.underline === 'hover' && {
|
|
42
|
+
}), ownerState.underline === 'hover' && {
|
|
42
43
|
textDecoration: 'none',
|
|
43
44
|
'&:hover': {
|
|
44
45
|
textDecoration: 'underline'
|
|
45
46
|
}
|
|
46
|
-
}, ownerState.underline === 'always' &&
|
|
47
|
+
}), ownerState.underline === 'always' && _objectSpread(_objectSpread({
|
|
47
48
|
textDecoration: 'underline'
|
|
48
49
|
}, ownerState.color !== 'inherit' && {
|
|
49
50
|
textDecorationColor: getTextDecoration({
|
|
50
51
|
theme: theme,
|
|
51
52
|
ownerState: ownerState
|
|
52
53
|
})
|
|
53
|
-
}, {
|
|
54
|
+
}), {}, {
|
|
54
55
|
'&:hover': {
|
|
55
56
|
textDecorationColor: 'inherit'
|
|
56
57
|
}
|
|
57
|
-
}), ownerState.component === 'button' && _defineProperty({
|
|
58
|
+
})), ownerState.component === 'button' && _defineProperty({
|
|
58
59
|
position: 'relative',
|
|
59
60
|
WebkitTapHighlightColor: 'transparent',
|
|
60
61
|
backgroundColor: 'transparent',
|
|
@@ -127,7 +128,7 @@ var Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
|
127
128
|
onFocus(event);
|
|
128
129
|
}
|
|
129
130
|
};
|
|
130
|
-
var ownerState =
|
|
131
|
+
var ownerState = _objectSpread(_objectSpread({}, props), {}, {
|
|
131
132
|
color: color,
|
|
132
133
|
component: component,
|
|
133
134
|
focusVisible: focusVisible,
|
|
@@ -135,7 +136,7 @@ var Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
|
135
136
|
variant: variant
|
|
136
137
|
});
|
|
137
138
|
var classes = useUtilityClasses(ownerState);
|
|
138
|
-
return /*#__PURE__*/_jsx(LinkRoot,
|
|
139
|
+
return /*#__PURE__*/_jsx(LinkRoot, _objectSpread({
|
|
139
140
|
color: color,
|
|
140
141
|
className: clsx(classes.root, className),
|
|
141
142
|
classes: TypographyClasses,
|
package/legacy/List/List.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
-
import
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
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; }
|
|
3
5
|
import * as React from 'react';
|
|
4
6
|
import PropTypes from 'prop-types';
|
|
5
7
|
import clsx from 'clsx';
|
|
@@ -29,7 +31,7 @@ var ListRoot = styled('ul', {
|
|
|
29
31
|
}
|
|
30
32
|
})(function (_ref) {
|
|
31
33
|
var ownerState = _ref.ownerState;
|
|
32
|
-
return
|
|
34
|
+
return _objectSpread(_objectSpread({
|
|
33
35
|
listStyle: 'none',
|
|
34
36
|
margin: 0,
|
|
35
37
|
padding: 0,
|
|
@@ -37,7 +39,7 @@ var ListRoot = styled('ul', {
|
|
|
37
39
|
}, !ownerState.disablePadding && {
|
|
38
40
|
paddingTop: 8,
|
|
39
41
|
paddingBottom: 8
|
|
40
|
-
}, ownerState.subheader && {
|
|
42
|
+
}), ownerState.subheader && {
|
|
41
43
|
paddingTop: 0
|
|
42
44
|
});
|
|
43
45
|
});
|
|
@@ -61,7 +63,7 @@ var List = /*#__PURE__*/React.forwardRef(function List(inProps, ref) {
|
|
|
61
63
|
dense: dense
|
|
62
64
|
};
|
|
63
65
|
}, [dense]);
|
|
64
|
-
var ownerState =
|
|
66
|
+
var ownerState = _objectSpread(_objectSpread({}, props), {}, {
|
|
65
67
|
component: component,
|
|
66
68
|
dense: dense,
|
|
67
69
|
disablePadding: disablePadding
|
|
@@ -69,12 +71,12 @@ var List = /*#__PURE__*/React.forwardRef(function List(inProps, ref) {
|
|
|
69
71
|
var classes = useUtilityClasses(ownerState);
|
|
70
72
|
return /*#__PURE__*/_jsx(ListContext.Provider, {
|
|
71
73
|
value: context,
|
|
72
|
-
children: /*#__PURE__*/_jsxs(ListRoot,
|
|
74
|
+
children: /*#__PURE__*/_jsxs(ListRoot, _objectSpread(_objectSpread({
|
|
73
75
|
as: component,
|
|
74
76
|
className: clsx(classes.root, className),
|
|
75
77
|
ref: ref,
|
|
76
78
|
ownerState: ownerState
|
|
77
|
-
}, other, {
|
|
79
|
+
}, other), {}, {
|
|
78
80
|
children: [subheader, children]
|
|
79
81
|
}))
|
|
80
82
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
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; }
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import PropTypes from 'prop-types';
|
|
6
7
|
import clsx from 'clsx';
|
|
@@ -45,10 +46,10 @@ export var ListItemRoot = styled('div', {
|
|
|
45
46
|
slot: 'Root',
|
|
46
47
|
overridesResolver: overridesResolver
|
|
47
48
|
})(function (_ref) {
|
|
48
|
-
var
|
|
49
|
+
var _objectSpread2;
|
|
49
50
|
var theme = _ref.theme,
|
|
50
51
|
ownerState = _ref.ownerState;
|
|
51
|
-
return
|
|
52
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
52
53
|
display: 'flex',
|
|
53
54
|
justifyContent: 'flex-start',
|
|
54
55
|
alignItems: 'center',
|
|
@@ -57,35 +58,35 @@ export var ListItemRoot = styled('div', {
|
|
|
57
58
|
width: '100%',
|
|
58
59
|
boxSizing: 'border-box',
|
|
59
60
|
textAlign: 'left'
|
|
60
|
-
}, !ownerState.disablePadding &&
|
|
61
|
+
}, !ownerState.disablePadding && _objectSpread(_objectSpread(_objectSpread({
|
|
61
62
|
paddingTop: 8,
|
|
62
63
|
paddingBottom: 8
|
|
63
64
|
}, ownerState.dense && {
|
|
64
65
|
paddingTop: 4,
|
|
65
66
|
paddingBottom: 4
|
|
66
|
-
}, !ownerState.disableGutters && {
|
|
67
|
+
}), !ownerState.disableGutters && {
|
|
67
68
|
paddingLeft: 16,
|
|
68
69
|
paddingRight: 16
|
|
69
|
-
}, !!ownerState.secondaryAction && {
|
|
70
|
+
}), !!ownerState.secondaryAction && {
|
|
70
71
|
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
71
72
|
// is absolutely positioned.
|
|
72
73
|
paddingRight: 48
|
|
73
|
-
}), !!ownerState.secondaryAction && _defineProperty({}, "& > .".concat(listItemButtonClasses.root), {
|
|
74
|
+
})), !!ownerState.secondaryAction && _defineProperty({}, "& > .".concat(listItemButtonClasses.root), {
|
|
74
75
|
paddingRight: 48
|
|
75
|
-
}), (
|
|
76
|
+
})), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, "&.".concat(listItemClasses.focusVisible), {
|
|
76
77
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
77
|
-
}), _defineProperty(
|
|
78
|
+
}), _defineProperty(_objectSpread2, "&.".concat(listItemClasses.selected), _defineProperty({
|
|
78
79
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
79
80
|
}, "&.".concat(listItemClasses.focusVisible), {
|
|
80
81
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
81
|
-
})), _defineProperty(
|
|
82
|
+
})), _defineProperty(_objectSpread2, "&.".concat(listItemClasses.disabled), {
|
|
82
83
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
83
|
-
}),
|
|
84
|
+
}), _objectSpread2), ownerState.alignItems === 'flex-start' && {
|
|
84
85
|
alignItems: 'flex-start'
|
|
85
|
-
}, ownerState.divider && {
|
|
86
|
+
}), ownerState.divider && {
|
|
86
87
|
borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
|
|
87
88
|
backgroundClip: 'padding-box'
|
|
88
|
-
}, ownerState.button && _defineProperty({
|
|
89
|
+
}), ownerState.button && _defineProperty({
|
|
89
90
|
transition: theme.transitions.create('background-color', {
|
|
90
91
|
duration: theme.transitions.duration.shortest
|
|
91
92
|
}),
|
|
@@ -103,7 +104,7 @@ export var ListItemRoot = styled('div', {
|
|
|
103
104
|
'@media (hover: none)': {
|
|
104
105
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
105
106
|
}
|
|
106
|
-
}), ownerState.hasSecondaryAction && {
|
|
107
|
+
})), ownerState.hasSecondaryAction && {
|
|
107
108
|
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
108
109
|
// is absolutely positioned.
|
|
109
110
|
paddingRight: 48
|
|
@@ -187,7 +188,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
187
188
|
|
|
188
189
|
// v4 implementation, deprecated in v5, will be removed in v6
|
|
189
190
|
var hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);
|
|
190
|
-
var ownerState =
|
|
191
|
+
var ownerState = _objectSpread(_objectSpread({}, props), {}, {
|
|
191
192
|
alignItems: alignItems,
|
|
192
193
|
autoFocus: autoFocus,
|
|
193
194
|
button: button,
|
|
@@ -203,7 +204,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
203
204
|
var handleRef = useForkRef(listItemRef, ref);
|
|
204
205
|
var Root = slots.root || components.Root || ListItemRoot;
|
|
205
206
|
var rootProps = slotProps.root || componentsProps.root || {};
|
|
206
|
-
var componentProps =
|
|
207
|
+
var componentProps = _objectSpread({
|
|
207
208
|
className: clsx(classes.root, rootProps.className, className),
|
|
208
209
|
disabled: disabled
|
|
209
210
|
}, other);
|
|
@@ -229,16 +230,16 @@ var ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
229
230
|
}
|
|
230
231
|
return /*#__PURE__*/_jsx(ListContext.Provider, {
|
|
231
232
|
value: childContext,
|
|
232
|
-
children: /*#__PURE__*/_jsxs(ListItemContainer,
|
|
233
|
+
children: /*#__PURE__*/_jsxs(ListItemContainer, _objectSpread(_objectSpread({
|
|
233
234
|
as: ContainerComponent,
|
|
234
235
|
className: clsx(classes.container, ContainerClassName),
|
|
235
236
|
ref: handleRef,
|
|
236
237
|
ownerState: ownerState
|
|
237
|
-
}, ContainerProps, {
|
|
238
|
-
children: [/*#__PURE__*/_jsx(Root,
|
|
238
|
+
}, ContainerProps), {}, {
|
|
239
|
+
children: [/*#__PURE__*/_jsx(Root, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, rootProps), !isHostComponent(Root) && {
|
|
239
240
|
as: Component,
|
|
240
|
-
ownerState:
|
|
241
|
-
}, componentProps, {
|
|
241
|
+
ownerState: _objectSpread(_objectSpread({}, ownerState), rootProps.ownerState)
|
|
242
|
+
}), componentProps), {}, {
|
|
242
243
|
children: children
|
|
243
244
|
})), children.pop()]
|
|
244
245
|
}))
|
|
@@ -246,12 +247,12 @@ var ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
246
247
|
}
|
|
247
248
|
return /*#__PURE__*/_jsx(ListContext.Provider, {
|
|
248
249
|
value: childContext,
|
|
249
|
-
children: /*#__PURE__*/_jsxs(Root,
|
|
250
|
+
children: /*#__PURE__*/_jsxs(Root, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, rootProps), {}, {
|
|
250
251
|
as: Component,
|
|
251
252
|
ref: handleRef
|
|
252
253
|
}, !isHostComponent(Root) && {
|
|
253
|
-
ownerState:
|
|
254
|
-
}, componentProps, {
|
|
254
|
+
ownerState: _objectSpread(_objectSpread({}, ownerState), rootProps.ownerState)
|
|
255
|
+
}), componentProps), {}, {
|
|
255
256
|
children: [children, secondaryAction && /*#__PURE__*/_jsx(ListItemSecondaryAction, {
|
|
256
257
|
children: secondaryAction
|
|
257
258
|
})]
|