@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
package/legacy/Hidden/Hidden.js
CHANGED
|
@@ -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 PropTypes from 'prop-types';
|
|
7
5
|
import HiddenJs from './HiddenJs';
|
|
@@ -36,7 +34,7 @@ function Hidden(props) {
|
|
|
36
34
|
xsUp = _props$xsUp === void 0 ? false : _props$xsUp,
|
|
37
35
|
other = _objectWithoutProperties(props, ["implementation", "lgDown", "lgUp", "mdDown", "mdUp", "smDown", "smUp", "xlDown", "xlUp", "xsDown", "xsUp"]);
|
|
38
36
|
if (implementation === 'js') {
|
|
39
|
-
return /*#__PURE__*/_jsx(HiddenJs,
|
|
37
|
+
return /*#__PURE__*/_jsx(HiddenJs, _extends({
|
|
40
38
|
lgDown: lgDown,
|
|
41
39
|
lgUp: lgUp,
|
|
42
40
|
mdDown: mdDown,
|
|
@@ -49,7 +47,7 @@ function Hidden(props) {
|
|
|
49
47
|
xsUp: xsUp
|
|
50
48
|
}, other));
|
|
51
49
|
}
|
|
52
|
-
return /*#__PURE__*/_jsx(HiddenCss,
|
|
50
|
+
return /*#__PURE__*/_jsx(HiddenCss, _extends({
|
|
53
51
|
lgDown: lgDown,
|
|
54
52
|
lgUp: lgUp,
|
|
55
53
|
mdDown: mdDown,
|
|
@@ -90,22 +88,22 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
|
|
|
90
88
|
*/
|
|
91
89
|
initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
92
90
|
/**
|
|
93
|
-
* If `true`, screens
|
|
91
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
94
92
|
* @default false
|
|
95
93
|
*/
|
|
96
94
|
lgDown: PropTypes.bool,
|
|
97
95
|
/**
|
|
98
|
-
* If `true`, screens this size and
|
|
96
|
+
* If `true`, component is hidden on screens this size and above.
|
|
99
97
|
* @default false
|
|
100
98
|
*/
|
|
101
99
|
lgUp: PropTypes.bool,
|
|
102
100
|
/**
|
|
103
|
-
* If `true`, screens
|
|
101
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
104
102
|
* @default false
|
|
105
103
|
*/
|
|
106
104
|
mdDown: PropTypes.bool,
|
|
107
105
|
/**
|
|
108
|
-
* If `true`, screens this size and
|
|
106
|
+
* If `true`, component is hidden on screens this size and above.
|
|
109
107
|
* @default false
|
|
110
108
|
*/
|
|
111
109
|
mdUp: PropTypes.bool,
|
|
@@ -114,32 +112,32 @@ process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */
|
|
|
114
112
|
*/
|
|
115
113
|
only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
|
|
116
114
|
/**
|
|
117
|
-
* If `true`, screens
|
|
115
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
118
116
|
* @default false
|
|
119
117
|
*/
|
|
120
118
|
smDown: PropTypes.bool,
|
|
121
119
|
/**
|
|
122
|
-
* If `true`, screens this size and
|
|
120
|
+
* If `true`, component is hidden on screens this size and above.
|
|
123
121
|
* @default false
|
|
124
122
|
*/
|
|
125
123
|
smUp: PropTypes.bool,
|
|
126
124
|
/**
|
|
127
|
-
* If `true`, screens
|
|
125
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
128
126
|
* @default false
|
|
129
127
|
*/
|
|
130
128
|
xlDown: PropTypes.bool,
|
|
131
129
|
/**
|
|
132
|
-
* If `true`, screens this size and
|
|
130
|
+
* If `true`, component is hidden on screens this size and above.
|
|
133
131
|
* @default false
|
|
134
132
|
*/
|
|
135
133
|
xlUp: PropTypes.bool,
|
|
136
134
|
/**
|
|
137
|
-
* If `true`, screens
|
|
135
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
138
136
|
* @default false
|
|
139
137
|
*/
|
|
140
138
|
xsDown: PropTypes.bool,
|
|
141
139
|
/**
|
|
142
|
-
* If `true`, screens this size and
|
|
140
|
+
* If `true`, component is hidden on screens this size and above.
|
|
143
141
|
* @default false
|
|
144
142
|
*/
|
|
145
143
|
xsUp: PropTypes.bool
|
|
@@ -1,8 +1,7 @@
|
|
|
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";
|
|
3
4
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
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 clsx from 'clsx';
|
|
8
7
|
import PropTypes from 'prop-types';
|
|
@@ -33,7 +32,7 @@ var HiddenCssRoot = styled('div', {
|
|
|
33
32
|
var hidden = {
|
|
34
33
|
display: 'none'
|
|
35
34
|
};
|
|
36
|
-
return
|
|
35
|
+
return _extends({}, ownerState.breakpoints.map(function (_ref3) {
|
|
37
36
|
var breakpoint = _ref3.breakpoint,
|
|
38
37
|
dir = _ref3.dir;
|
|
39
38
|
if (dir === 'only') {
|
|
@@ -95,7 +94,7 @@ function HiddenCss(props) {
|
|
|
95
94
|
});
|
|
96
95
|
});
|
|
97
96
|
}
|
|
98
|
-
var ownerState =
|
|
97
|
+
var ownerState = _extends({}, props, {
|
|
99
98
|
breakpoints: breakpoints
|
|
100
99
|
});
|
|
101
100
|
var classes = useUtilityClasses(ownerState);
|
|
@@ -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 PropTypes from 'prop-types';
|
|
7
5
|
import { getDisplayName } from '@mui/utils';
|
|
@@ -21,7 +19,7 @@ export var isWidthUp = function isWidthUp(breakpoint, width) {
|
|
|
21
19
|
return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
|
|
22
20
|
};
|
|
23
21
|
|
|
24
|
-
// By default, returns true if screen width is
|
|
22
|
+
// By default, returns true if screen width is less than the given breakpoint.
|
|
25
23
|
export var isWidthDown = function isWidthDown(breakpoint, width) {
|
|
26
24
|
var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
27
25
|
if (inclusive) {
|
|
@@ -66,11 +64,11 @@ var withWidth = function withWidth() {
|
|
|
66
64
|
var matches = useMediaQuery(theme.breakpoints.up(key));
|
|
67
65
|
return !output && matches ? key : output;
|
|
68
66
|
}, null);
|
|
69
|
-
var more =
|
|
67
|
+
var more = _extends({
|
|
70
68
|
width: width || (mountedState || noSSR ? widthComputed : undefined) || initialWidth || initialWidthOption
|
|
71
69
|
}, withThemeOption ? {
|
|
72
70
|
theme: theme
|
|
73
|
-
} : {}
|
|
71
|
+
} : {}, other);
|
|
74
72
|
|
|
75
73
|
// When rendering the component on the server,
|
|
76
74
|
// we have no idea about the client browser screen width.
|
|
@@ -81,7 +79,7 @@ var withWidth = function withWidth() {
|
|
|
81
79
|
if (more.width === undefined) {
|
|
82
80
|
return null;
|
|
83
81
|
}
|
|
84
|
-
return /*#__PURE__*/_jsx(Component,
|
|
82
|
+
return /*#__PURE__*/_jsx(Component, _extends({}, more));
|
|
85
83
|
}
|
|
86
84
|
process.env.NODE_ENV !== "production" ? WithWidth.propTypes = {
|
|
87
85
|
/**
|
package/legacy/Icon/Icon.js
CHANGED
|
@@ -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 PropTypes from 'prop-types';
|
|
7
5
|
import clsx from 'clsx';
|
|
@@ -77,14 +75,14 @@ var Icon = /*#__PURE__*/React.forwardRef(function Icon(inProps, ref) {
|
|
|
77
75
|
_props$fontSize = props.fontSize,
|
|
78
76
|
fontSize = _props$fontSize === void 0 ? 'medium' : _props$fontSize,
|
|
79
77
|
other = _objectWithoutProperties(props, ["baseClassName", "className", "color", "component", "fontSize"]);
|
|
80
|
-
var ownerState =
|
|
78
|
+
var ownerState = _extends({}, props, {
|
|
81
79
|
baseClassName: baseClassName,
|
|
82
80
|
color: color,
|
|
83
81
|
component: Component,
|
|
84
82
|
fontSize: fontSize
|
|
85
83
|
});
|
|
86
84
|
var classes = useUtilityClasses(ownerState);
|
|
87
|
-
return /*#__PURE__*/_jsx(IconRoot,
|
|
85
|
+
return /*#__PURE__*/_jsx(IconRoot, _extends({
|
|
88
86
|
as: Component,
|
|
89
87
|
className: clsx(baseClassName,
|
|
90
88
|
// Prevent the translation of the text content.
|
|
@@ -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';
|
|
@@ -35,7 +34,7 @@ var IconButtonRoot = styled(ButtonBase, {
|
|
|
35
34
|
})(function (_ref) {
|
|
36
35
|
var theme = _ref.theme,
|
|
37
36
|
ownerState = _ref.ownerState;
|
|
38
|
-
return
|
|
37
|
+
return _extends({
|
|
39
38
|
textAlign: 'center',
|
|
40
39
|
flex: '0 0 auto',
|
|
41
40
|
fontSize: theme.typography.pxToRem(24),
|
|
@@ -55,9 +54,9 @@ var IconButtonRoot = styled(ButtonBase, {
|
|
|
55
54
|
backgroundColor: 'transparent'
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
|
-
}
|
|
57
|
+
}, ownerState.edge === 'start' && {
|
|
59
58
|
marginLeft: ownerState.size === 'small' ? -3 : -12
|
|
60
|
-
}
|
|
59
|
+
}, ownerState.edge === 'end' && {
|
|
61
60
|
marginRight: ownerState.size === 'small' ? -3 : -12
|
|
62
61
|
});
|
|
63
62
|
}, function (_ref2) {
|
|
@@ -65,26 +64,26 @@ var IconButtonRoot = styled(ButtonBase, {
|
|
|
65
64
|
var theme = _ref2.theme,
|
|
66
65
|
ownerState = _ref2.ownerState;
|
|
67
66
|
var palette = (_palette = (theme.vars || theme).palette) == null ? void 0 : _palette[ownerState.color];
|
|
68
|
-
return
|
|
67
|
+
return _extends({}, ownerState.color === 'inherit' && {
|
|
69
68
|
color: 'inherit'
|
|
70
|
-
}
|
|
69
|
+
}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({
|
|
71
70
|
color: palette == null ? void 0 : palette.main
|
|
72
71
|
}, !ownerState.disableRipple && {
|
|
73
|
-
'&:hover':
|
|
72
|
+
'&:hover': _extends({}, palette && {
|
|
74
73
|
backgroundColor: theme.vars ? "rgba(".concat(palette.mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(palette.main, theme.palette.action.hoverOpacity)
|
|
75
|
-
}
|
|
74
|
+
}, {
|
|
76
75
|
// Reset on touch devices, it doesn't add specificity
|
|
77
76
|
'@media (hover: none)': {
|
|
78
77
|
backgroundColor: 'transparent'
|
|
79
78
|
}
|
|
80
79
|
})
|
|
81
|
-
})
|
|
80
|
+
}), ownerState.size === 'small' && {
|
|
82
81
|
padding: 5,
|
|
83
82
|
fontSize: theme.typography.pxToRem(18)
|
|
84
|
-
}
|
|
83
|
+
}, ownerState.size === 'large' && {
|
|
85
84
|
padding: 12,
|
|
86
85
|
fontSize: theme.typography.pxToRem(28)
|
|
87
|
-
}
|
|
86
|
+
}, _defineProperty({}, "&.".concat(iconButtonClasses.disabled), {
|
|
88
87
|
backgroundColor: 'transparent',
|
|
89
88
|
color: (theme.vars || theme).palette.action.disabled
|
|
90
89
|
}));
|
|
@@ -112,7 +111,7 @@ var IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, ref)
|
|
|
112
111
|
_props$size = props.size,
|
|
113
112
|
size = _props$size === void 0 ? 'medium' : _props$size,
|
|
114
113
|
other = _objectWithoutProperties(props, ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"]);
|
|
115
|
-
var ownerState =
|
|
114
|
+
var ownerState = _extends({}, props, {
|
|
116
115
|
edge: edge,
|
|
117
116
|
color: color,
|
|
118
117
|
disabled: disabled,
|
|
@@ -120,14 +119,14 @@ var IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, ref)
|
|
|
120
119
|
size: size
|
|
121
120
|
});
|
|
122
121
|
var classes = useUtilityClasses(ownerState);
|
|
123
|
-
return /*#__PURE__*/_jsx(IconButtonRoot,
|
|
122
|
+
return /*#__PURE__*/_jsx(IconButtonRoot, _extends({
|
|
124
123
|
className: clsx(classes.root, className),
|
|
125
124
|
centerRipple: true,
|
|
126
125
|
focusRipple: !disableFocusRipple,
|
|
127
126
|
disabled: disabled,
|
|
128
127
|
ref: ref,
|
|
129
128
|
ownerState: ownerState
|
|
130
|
-
}, other
|
|
129
|
+
}, other, {
|
|
131
130
|
children: children
|
|
132
131
|
}));
|
|
133
132
|
});
|
|
@@ -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 { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
6
4
|
import { integerPropType } from '@mui/utils';
|
|
7
5
|
import clsx from 'clsx';
|
|
@@ -29,7 +27,7 @@ var ImageListRoot = styled('ul', {
|
|
|
29
27
|
}
|
|
30
28
|
})(function (_ref) {
|
|
31
29
|
var ownerState = _ref.ownerState;
|
|
32
|
-
return
|
|
30
|
+
return _extends({
|
|
33
31
|
display: 'grid',
|
|
34
32
|
overflowY: 'auto',
|
|
35
33
|
listStyle: 'none',
|
|
@@ -74,27 +72,27 @@ var ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref) {
|
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
}, []);
|
|
77
|
-
var style = variant === 'masonry' ?
|
|
75
|
+
var style = variant === 'masonry' ? _extends({
|
|
78
76
|
columnCount: cols,
|
|
79
77
|
columnGap: gap
|
|
80
|
-
}, styleProp) :
|
|
78
|
+
}, styleProp) : _extends({
|
|
81
79
|
gridTemplateColumns: "repeat(".concat(cols, ", 1fr)"),
|
|
82
80
|
gap: gap
|
|
83
81
|
}, styleProp);
|
|
84
|
-
var ownerState =
|
|
82
|
+
var ownerState = _extends({}, props, {
|
|
85
83
|
component: component,
|
|
86
84
|
gap: gap,
|
|
87
85
|
rowHeight: rowHeight,
|
|
88
86
|
variant: variant
|
|
89
87
|
});
|
|
90
88
|
var classes = useUtilityClasses(ownerState);
|
|
91
|
-
return /*#__PURE__*/_jsx(ImageListRoot,
|
|
89
|
+
return /*#__PURE__*/_jsx(ImageListRoot, _extends({
|
|
92
90
|
as: component,
|
|
93
91
|
className: clsx(classes.root, classes[variant], className),
|
|
94
92
|
ref: ref,
|
|
95
93
|
style: style,
|
|
96
94
|
ownerState: ownerState
|
|
97
|
-
}, other
|
|
95
|
+
}, other, {
|
|
98
96
|
children: /*#__PURE__*/_jsx(ImageListContext.Provider, {
|
|
99
97
|
value: contextValue,
|
|
100
98
|
children: children
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
-
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
4
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
6
5
|
import { integerPropType } from '@mui/utils';
|
|
7
6
|
import clsx from 'clsx';
|
|
@@ -32,20 +31,20 @@ var ImageListItemRoot = styled('li', {
|
|
|
32
31
|
}
|
|
33
32
|
})(function (_ref2) {
|
|
34
33
|
var ownerState = _ref2.ownerState;
|
|
35
|
-
return
|
|
34
|
+
return _extends({
|
|
36
35
|
display: 'block',
|
|
37
36
|
position: 'relative'
|
|
38
37
|
}, ownerState.variant === 'standard' && {
|
|
39
38
|
// For titlebar under list item
|
|
40
39
|
display: 'flex',
|
|
41
40
|
flexDirection: 'column'
|
|
42
|
-
}
|
|
41
|
+
}, ownerState.variant === 'woven' && {
|
|
43
42
|
height: '100%',
|
|
44
43
|
alignSelf: 'center',
|
|
45
44
|
'&:nth-of-type(even)': {
|
|
46
45
|
height: '70%'
|
|
47
46
|
}
|
|
48
|
-
}
|
|
47
|
+
}, _defineProperty({}, "& .".concat(imageListItemClasses.img), _extends({
|
|
49
48
|
objectFit: 'cover',
|
|
50
49
|
width: '100%',
|
|
51
50
|
height: '100%',
|
|
@@ -83,7 +82,7 @@ var ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inProps
|
|
|
83
82
|
} else if (rowHeight !== 'auto') {
|
|
84
83
|
height = rowHeight * rows + gap * (rows - 1);
|
|
85
84
|
}
|
|
86
|
-
var ownerState =
|
|
85
|
+
var ownerState = _extends({}, props, {
|
|
87
86
|
cols: cols,
|
|
88
87
|
component: component,
|
|
89
88
|
gap: gap,
|
|
@@ -92,18 +91,18 @@ var ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inProps
|
|
|
92
91
|
variant: variant
|
|
93
92
|
});
|
|
94
93
|
var classes = useUtilityClasses(ownerState);
|
|
95
|
-
return /*#__PURE__*/_jsx(ImageListItemRoot,
|
|
94
|
+
return /*#__PURE__*/_jsx(ImageListItemRoot, _extends({
|
|
96
95
|
as: component,
|
|
97
96
|
className: clsx(classes.root, classes[variant], className),
|
|
98
97
|
ref: ref,
|
|
99
|
-
style:
|
|
98
|
+
style: _extends({
|
|
100
99
|
height: height,
|
|
101
100
|
gridColumnEnd: variant !== 'masonry' ? "span ".concat(cols) : undefined,
|
|
102
101
|
gridRowEnd: variant !== 'masonry' ? "span ".concat(rows) : undefined,
|
|
103
102
|
marginBottom: variant === 'masonry' ? gap : undefined
|
|
104
103
|
}, style),
|
|
105
104
|
ownerState: ownerState
|
|
106
|
-
}, other
|
|
105
|
+
}, other, {
|
|
107
106
|
children: React.Children.map(children, function (child) {
|
|
108
107
|
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
109
108
|
return null;
|
|
@@ -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 { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
6
4
|
import clsx from 'clsx';
|
|
7
5
|
import PropTypes from 'prop-types';
|
|
@@ -36,7 +34,7 @@ var ImageListItemBarRoot = styled('div', {
|
|
|
36
34
|
})(function (_ref) {
|
|
37
35
|
var theme = _ref.theme,
|
|
38
36
|
ownerState = _ref.ownerState;
|
|
39
|
-
return
|
|
37
|
+
return _extends({
|
|
40
38
|
position: 'absolute',
|
|
41
39
|
left: 0,
|
|
42
40
|
right: 0,
|
|
@@ -46,9 +44,9 @@ var ImageListItemBarRoot = styled('div', {
|
|
|
46
44
|
fontFamily: theme.typography.fontFamily
|
|
47
45
|
}, ownerState.position === 'bottom' && {
|
|
48
46
|
bottom: 0
|
|
49
|
-
}
|
|
47
|
+
}, ownerState.position === 'top' && {
|
|
50
48
|
top: 0
|
|
51
|
-
}
|
|
49
|
+
}, ownerState.position === 'below' && {
|
|
52
50
|
position: 'relative',
|
|
53
51
|
background: 'transparent',
|
|
54
52
|
alignItems: 'normal'
|
|
@@ -64,7 +62,7 @@ var ImageListItemBarTitleWrap = styled('div', {
|
|
|
64
62
|
})(function (_ref2) {
|
|
65
63
|
var theme = _ref2.theme,
|
|
66
64
|
ownerState = _ref2.ownerState;
|
|
67
|
-
return
|
|
65
|
+
return _extends({
|
|
68
66
|
flexGrow: 1,
|
|
69
67
|
padding: '12px 16px',
|
|
70
68
|
color: (theme.vars || theme).palette.common.white,
|
|
@@ -72,9 +70,9 @@ var ImageListItemBarTitleWrap = styled('div', {
|
|
|
72
70
|
}, ownerState.position === 'below' && {
|
|
73
71
|
padding: '6px 0 12px',
|
|
74
72
|
color: 'inherit'
|
|
75
|
-
}
|
|
73
|
+
}, ownerState.actionIcon && ownerState.actionPosition === 'left' && {
|
|
76
74
|
paddingLeft: 0
|
|
77
|
-
}
|
|
75
|
+
}, ownerState.actionIcon && ownerState.actionPosition === 'right' && {
|
|
78
76
|
paddingRight: 0
|
|
79
77
|
});
|
|
80
78
|
});
|
|
@@ -119,7 +117,7 @@ var ImageListItemBarActionIcon = styled('div', {
|
|
|
119
117
|
}
|
|
120
118
|
})(function (_ref5) {
|
|
121
119
|
var ownerState = _ref5.ownerState;
|
|
122
|
-
return
|
|
120
|
+
return _extends({}, ownerState.actionPosition === 'left' && {
|
|
123
121
|
order: -1
|
|
124
122
|
});
|
|
125
123
|
});
|
|
@@ -137,16 +135,16 @@ var ImageListItemBar = /*#__PURE__*/React.forwardRef(function ImageListItemBar(i
|
|
|
137
135
|
_props$position = props.position,
|
|
138
136
|
position = _props$position === void 0 ? 'bottom' : _props$position,
|
|
139
137
|
other = _objectWithoutProperties(props, ["actionIcon", "actionPosition", "className", "subtitle", "title", "position"]);
|
|
140
|
-
var ownerState =
|
|
138
|
+
var ownerState = _extends({}, props, {
|
|
141
139
|
position: position,
|
|
142
140
|
actionPosition: actionPosition
|
|
143
141
|
});
|
|
144
142
|
var classes = useUtilityClasses(ownerState);
|
|
145
|
-
return /*#__PURE__*/_jsxs(ImageListItemBarRoot,
|
|
143
|
+
return /*#__PURE__*/_jsxs(ImageListItemBarRoot, _extends({
|
|
146
144
|
ownerState: ownerState,
|
|
147
145
|
className: clsx(classes.root, className),
|
|
148
146
|
ref: ref
|
|
149
|
-
}, other
|
|
147
|
+
}, other, {
|
|
150
148
|
children: [/*#__PURE__*/_jsxs(ImageListItemBarTitleWrap, {
|
|
151
149
|
ownerState: ownerState,
|
|
152
150
|
className: classes.titleWrap,
|
package/legacy/Input/Input.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
6
5
|
import * as React from 'react';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
8
7
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
@@ -21,7 +20,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
21
20
|
input: ['input']
|
|
22
21
|
};
|
|
23
22
|
var composedClasses = composeClasses(slots, getInputUtilityClass, classes);
|
|
24
|
-
return
|
|
23
|
+
return _extends({}, classes, composedClasses);
|
|
25
24
|
};
|
|
26
25
|
var InputRoot = styled(InputBaseRoot, {
|
|
27
26
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -42,13 +41,13 @@ var InputRoot = styled(InputBaseRoot, {
|
|
|
42
41
|
if (theme.vars) {
|
|
43
42
|
bottomLineColor = "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputUnderline, ")");
|
|
44
43
|
}
|
|
45
|
-
return
|
|
44
|
+
return _extends({
|
|
46
45
|
position: 'relative'
|
|
47
46
|
}, ownerState.formControl && {
|
|
48
47
|
'label + &': {
|
|
49
48
|
marginTop: 16
|
|
50
49
|
}
|
|
51
|
-
}
|
|
50
|
+
}, !ownerState.disableUnderline && (_ref2 = {
|
|
52
51
|
'&:after': {
|
|
53
52
|
borderBottom: "2px solid ".concat((theme.vars || theme).palette[ownerState.color].main),
|
|
54
53
|
left: 0,
|
|
@@ -133,7 +132,7 @@ var Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
|
133
132
|
var componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(slotProps != null ? slotProps : componentsPropsProp, inputComponentsProps) : inputComponentsProps;
|
|
134
133
|
var RootSlot = (_ref3 = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref3 : InputRoot;
|
|
135
134
|
var InputSlot = (_ref4 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref4 : InputInput;
|
|
136
|
-
return /*#__PURE__*/_jsx(InputBase,
|
|
135
|
+
return /*#__PURE__*/_jsx(InputBase, _extends({
|
|
137
136
|
slots: {
|
|
138
137
|
root: RootSlot,
|
|
139
138
|
input: InputSlot
|
|
@@ -144,7 +143,7 @@ var Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
|
144
143
|
multiline: multiline,
|
|
145
144
|
ref: ref,
|
|
146
145
|
type: type
|
|
147
|
-
}, other
|
|
146
|
+
}, other, {
|
|
148
147
|
classes: classes
|
|
149
148
|
}));
|
|
150
149
|
});
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
|
|
5
3
|
import generateUtilityClass from '../generateUtilityClass';
|
|
6
4
|
import { inputBaseClasses } from '../InputBase';
|
|
7
5
|
export function getInputUtilityClass(slot) {
|
|
8
6
|
return generateUtilityClass('MuiInput', slot);
|
|
9
7
|
}
|
|
10
|
-
var inputClasses =
|
|
8
|
+
var inputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiInput', ['root', 'underline', 'input']));
|
|
11
9
|
export default inputClasses;
|
|
@@ -1,8 +1,7 @@
|
|
|
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";
|
|
3
4
|
var _span;
|
|
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';
|
|
@@ -39,7 +38,7 @@ var InputAdornmentRoot = styled('div', {
|
|
|
39
38
|
})(function (_ref) {
|
|
40
39
|
var theme = _ref.theme,
|
|
41
40
|
ownerState = _ref.ownerState;
|
|
42
|
-
return
|
|
41
|
+
return _extends({
|
|
43
42
|
display: 'flex',
|
|
44
43
|
height: '0.01em',
|
|
45
44
|
// Fix IE11 flexbox alignment. To remove at some point.
|
|
@@ -49,13 +48,13 @@ var InputAdornmentRoot = styled('div', {
|
|
|
49
48
|
color: (theme.vars || theme).palette.action.active
|
|
50
49
|
}, ownerState.variant === 'filled' && _defineProperty({}, "&.".concat(inputAdornmentClasses.positionStart, "&:not(.").concat(inputAdornmentClasses.hiddenLabel, ")"), {
|
|
51
50
|
marginTop: 16
|
|
52
|
-
})
|
|
51
|
+
}), ownerState.position === 'start' && {
|
|
53
52
|
// Styles applied to the root element if `position="start"`.
|
|
54
53
|
marginRight: 8
|
|
55
|
-
}
|
|
54
|
+
}, ownerState.position === 'end' && {
|
|
56
55
|
// Styles applied to the root element if `position="end"`.
|
|
57
56
|
marginLeft: 8
|
|
58
|
-
}
|
|
57
|
+
}, ownerState.disablePointerEvents === true && {
|
|
59
58
|
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
60
59
|
pointerEvents: 'none'
|
|
61
60
|
});
|
|
@@ -88,7 +87,7 @@ var InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inPro
|
|
|
88
87
|
if (muiFormControl && !variant) {
|
|
89
88
|
variant = muiFormControl.variant;
|
|
90
89
|
}
|
|
91
|
-
var ownerState =
|
|
90
|
+
var ownerState = _extends({}, props, {
|
|
92
91
|
hiddenLabel: muiFormControl.hiddenLabel,
|
|
93
92
|
size: muiFormControl.size,
|
|
94
93
|
disablePointerEvents: disablePointerEvents,
|
|
@@ -98,12 +97,12 @@ var InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inPro
|
|
|
98
97
|
var classes = useUtilityClasses(ownerState);
|
|
99
98
|
return /*#__PURE__*/_jsx(FormControlContext.Provider, {
|
|
100
99
|
value: null,
|
|
101
|
-
children: /*#__PURE__*/_jsx(InputAdornmentRoot,
|
|
100
|
+
children: /*#__PURE__*/_jsx(InputAdornmentRoot, _extends({
|
|
102
101
|
as: component,
|
|
103
102
|
ownerState: ownerState,
|
|
104
103
|
className: clsx(classes.root, className),
|
|
105
104
|
ref: ref
|
|
106
|
-
}, other
|
|
105
|
+
}, other, {
|
|
107
106
|
children: typeof children === 'string' && !disableTypography ? /*#__PURE__*/_jsx(Typography, {
|
|
108
107
|
color: "text.secondary",
|
|
109
108
|
children: children
|