@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
|
@@ -11,8 +11,6 @@ Object.defineProperty(exports, "createFilterOptions", {
|
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
exports.default = void 0;
|
|
14
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
15
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
16
14
|
var React = _interopRequireWildcard(require("react"));
|
|
17
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
18
16
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -36,7 +34,6 @@ var _autocompleteClasses = _interopRequireWildcard(require("./autocompleteClasse
|
|
|
36
34
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
37
35
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
38
36
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
39
|
-
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"];
|
|
40
37
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
42
39
|
const useUtilityClasses = ownerState => {
|
|
@@ -99,7 +96,7 @@ const AutocompleteRoot = (0, _styled.default)('div', {
|
|
|
99
96
|
}
|
|
100
97
|
})(({
|
|
101
98
|
ownerState
|
|
102
|
-
}) => (
|
|
99
|
+
}) => ({
|
|
103
100
|
[`&.${_autocompleteClasses.default.focused} .${_autocompleteClasses.default.clearIndicator}`]: {
|
|
104
101
|
visibility: 'visible'
|
|
105
102
|
},
|
|
@@ -108,17 +105,18 @@ const AutocompleteRoot = (0, _styled.default)('div', {
|
|
|
108
105
|
[`&:hover .${_autocompleteClasses.default.clearIndicator}`]: {
|
|
109
106
|
visibility: 'visible'
|
|
110
107
|
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}, {
|
|
115
|
-
[`& .${_autocompleteClasses.default.tag}`]: (0, _extends2.default)({
|
|
116
|
-
margin: 3,
|
|
117
|
-
maxWidth: 'calc(100% - 6px)'
|
|
118
|
-
}, ownerState.size === 'small' && {
|
|
119
|
-
margin: 2,
|
|
120
|
-
maxWidth: 'calc(100% - 4px)'
|
|
108
|
+
},
|
|
109
|
+
...(ownerState.fullWidth && {
|
|
110
|
+
width: '100%'
|
|
121
111
|
}),
|
|
112
|
+
[`& .${_autocompleteClasses.default.tag}`]: {
|
|
113
|
+
margin: 3,
|
|
114
|
+
maxWidth: 'calc(100% - 6px)',
|
|
115
|
+
...(ownerState.size === 'small' && {
|
|
116
|
+
margin: 2,
|
|
117
|
+
maxWidth: 'calc(100% - 4px)'
|
|
118
|
+
})
|
|
119
|
+
},
|
|
122
120
|
[`& .${_autocompleteClasses.default.inputRoot}`]: {
|
|
123
121
|
flexWrap: 'wrap',
|
|
124
122
|
[`.${_autocompleteClasses.default.hasPopupIcon}&, .${_autocompleteClasses.default.hasClearIcon}&`]: {
|
|
@@ -207,13 +205,14 @@ const AutocompleteRoot = (0, _styled.default)('div', {
|
|
|
207
205
|
paddingBottom: 9
|
|
208
206
|
}
|
|
209
207
|
},
|
|
210
|
-
[`& .${_autocompleteClasses.default.input}`]:
|
|
208
|
+
[`& .${_autocompleteClasses.default.input}`]: {
|
|
211
209
|
flexGrow: 1,
|
|
212
210
|
textOverflow: 'ellipsis',
|
|
213
|
-
opacity: 0
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
211
|
+
opacity: 0,
|
|
212
|
+
...(ownerState.inputFocused && {
|
|
213
|
+
opacity: 1
|
|
214
|
+
})
|
|
215
|
+
}
|
|
217
216
|
}));
|
|
218
217
|
const AutocompleteEndAdornment = (0, _styled.default)('div', {
|
|
219
218
|
name: 'MuiAutocomplete',
|
|
@@ -240,14 +239,18 @@ const AutocompletePopupIndicator = (0, _styled.default)(_IconButton.default, {
|
|
|
240
239
|
slot: 'PopupIndicator',
|
|
241
240
|
overridesResolver: ({
|
|
242
241
|
ownerState
|
|
243
|
-
}, styles) => (
|
|
242
|
+
}, styles) => ({
|
|
243
|
+
...styles.popupIndicator,
|
|
244
|
+
...(ownerState.popupOpen && styles.popupIndicatorOpen)
|
|
245
|
+
})
|
|
244
246
|
})(({
|
|
245
247
|
ownerState
|
|
246
|
-
}) => (
|
|
248
|
+
}) => ({
|
|
247
249
|
padding: 2,
|
|
248
|
-
marginRight: -2
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
marginRight: -2,
|
|
251
|
+
...(ownerState.popupOpen && {
|
|
252
|
+
transform: 'rotate(180deg)'
|
|
253
|
+
})
|
|
251
254
|
}));
|
|
252
255
|
const AutocompletePopper = (0, _styled.default)(_Popper.default, {
|
|
253
256
|
name: 'MuiAutocomplete',
|
|
@@ -263,10 +266,11 @@ const AutocompletePopper = (0, _styled.default)(_Popper.default, {
|
|
|
263
266
|
})(({
|
|
264
267
|
theme,
|
|
265
268
|
ownerState
|
|
266
|
-
}) => (
|
|
267
|
-
zIndex: (theme.vars || theme).zIndex.modal
|
|
268
|
-
|
|
269
|
-
|
|
269
|
+
}) => ({
|
|
270
|
+
zIndex: (theme.vars || theme).zIndex.modal,
|
|
271
|
+
...(ownerState.disablePortal && {
|
|
272
|
+
position: 'absolute'
|
|
273
|
+
})
|
|
270
274
|
}));
|
|
271
275
|
const AutocompletePaper = (0, _styled.default)(_Paper.default, {
|
|
272
276
|
name: 'MuiAutocomplete',
|
|
@@ -274,7 +278,8 @@ const AutocompletePaper = (0, _styled.default)(_Paper.default, {
|
|
|
274
278
|
overridesResolver: (props, styles) => styles.paper
|
|
275
279
|
})(({
|
|
276
280
|
theme
|
|
277
|
-
}) => (
|
|
281
|
+
}) => ({
|
|
282
|
+
...theme.typography.body1,
|
|
278
283
|
overflow: 'auto'
|
|
279
284
|
}));
|
|
280
285
|
const AutocompleteLoading = (0, _styled.default)('div', {
|
|
@@ -384,61 +389,74 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
384
389
|
});
|
|
385
390
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
386
391
|
const {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
392
|
+
autoComplete = false,
|
|
393
|
+
autoHighlight = false,
|
|
394
|
+
autoSelect = false,
|
|
395
|
+
blurOnSelect = false,
|
|
396
|
+
ChipProps,
|
|
397
|
+
className,
|
|
398
|
+
clearIcon = _ClearIcon || (_ClearIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Close.default, {
|
|
399
|
+
fontSize: "small"
|
|
400
|
+
})),
|
|
401
|
+
clearOnBlur = !props.freeSolo,
|
|
402
|
+
clearOnEscape = false,
|
|
403
|
+
clearText = 'Clear',
|
|
404
|
+
closeText = 'Close',
|
|
405
|
+
componentsProps = {},
|
|
406
|
+
defaultValue = props.multiple ? [] : null,
|
|
407
|
+
disableClearable = false,
|
|
408
|
+
disableCloseOnSelect = false,
|
|
409
|
+
disabled = false,
|
|
410
|
+
disabledItemsFocusable = false,
|
|
411
|
+
disableListWrap = false,
|
|
412
|
+
disablePortal = false,
|
|
413
|
+
filterOptions,
|
|
414
|
+
filterSelectedOptions = false,
|
|
415
|
+
forcePopupIcon = 'auto',
|
|
416
|
+
freeSolo = false,
|
|
417
|
+
fullWidth = false,
|
|
418
|
+
getLimitTagsText = more => `+${more}`,
|
|
419
|
+
getOptionDisabled,
|
|
420
|
+
getOptionLabel = option => {
|
|
421
|
+
var _option$label;
|
|
422
|
+
return (_option$label = option.label) != null ? _option$label : option;
|
|
423
|
+
},
|
|
424
|
+
isOptionEqualToValue,
|
|
425
|
+
groupBy,
|
|
426
|
+
handleHomeEndKeys = !props.freeSolo,
|
|
427
|
+
id: idProp,
|
|
428
|
+
includeInputInList = false,
|
|
429
|
+
inputValue: inputValueProp,
|
|
430
|
+
limitTags = -1,
|
|
431
|
+
ListboxComponent = 'ul',
|
|
432
|
+
ListboxProps,
|
|
433
|
+
loading = false,
|
|
434
|
+
loadingText = 'Loading…',
|
|
435
|
+
multiple = false,
|
|
436
|
+
noOptionsText = 'No options',
|
|
437
|
+
onChange,
|
|
438
|
+
onClose,
|
|
439
|
+
onHighlightChange,
|
|
440
|
+
onInputChange,
|
|
441
|
+
onOpen,
|
|
442
|
+
open,
|
|
443
|
+
openOnFocus = false,
|
|
444
|
+
openText = 'Open',
|
|
445
|
+
options,
|
|
446
|
+
PaperComponent = _Paper.default,
|
|
447
|
+
PopperComponent = _Popper.default,
|
|
448
|
+
popupIcon = _ArrowDropDownIcon || (_ArrowDropDownIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_ArrowDropDown.default, {})),
|
|
449
|
+
readOnly = false,
|
|
450
|
+
renderGroup: renderGroupProp,
|
|
451
|
+
renderInput,
|
|
452
|
+
renderOption: renderOptionProp,
|
|
453
|
+
renderTags,
|
|
454
|
+
selectOnFocus = !props.freeSolo,
|
|
455
|
+
size = 'medium',
|
|
456
|
+
slotProps = {},
|
|
457
|
+
value: valueProp,
|
|
458
|
+
...other
|
|
459
|
+
} = props;
|
|
442
460
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
443
461
|
|
|
444
462
|
const {
|
|
@@ -461,9 +479,10 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
461
479
|
setAnchorEl,
|
|
462
480
|
inputValue,
|
|
463
481
|
groupedOptions
|
|
464
|
-
} = (0, _base.useAutocomplete)(
|
|
482
|
+
} = (0, _base.useAutocomplete)({
|
|
483
|
+
...props,
|
|
465
484
|
componentName: 'Autocomplete'
|
|
466
|
-
})
|
|
485
|
+
});
|
|
467
486
|
const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
|
|
468
487
|
const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
|
|
469
488
|
const {
|
|
@@ -471,7 +490,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
471
490
|
} = getInputProps();
|
|
472
491
|
|
|
473
492
|
// If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
474
|
-
const ownerState =
|
|
493
|
+
const ownerState = {
|
|
494
|
+
...props,
|
|
475
495
|
disablePortal,
|
|
476
496
|
expanded,
|
|
477
497
|
focused,
|
|
@@ -481,23 +501,26 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
481
501
|
inputFocused: focusedTag === -1,
|
|
482
502
|
popupOpen,
|
|
483
503
|
size
|
|
484
|
-
}
|
|
504
|
+
};
|
|
485
505
|
const classes = useUtilityClasses(ownerState);
|
|
486
506
|
let startAdornment;
|
|
487
507
|
if (multiple && value.length > 0) {
|
|
488
|
-
const getCustomizedTagProps = params => (
|
|
508
|
+
const getCustomizedTagProps = params => ({
|
|
489
509
|
className: classes.tag,
|
|
490
|
-
disabled
|
|
491
|
-
|
|
510
|
+
disabled,
|
|
511
|
+
...getTagProps(params)
|
|
512
|
+
});
|
|
492
513
|
if (renderTags) {
|
|
493
514
|
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
494
515
|
} else {
|
|
495
|
-
startAdornment = value.map((option, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default,
|
|
516
|
+
startAdornment = value.map((option, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, {
|
|
496
517
|
label: getOptionLabel(option),
|
|
497
|
-
size: size
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
518
|
+
size: size,
|
|
519
|
+
...getCustomizedTagProps({
|
|
520
|
+
index
|
|
521
|
+
}),
|
|
522
|
+
...ChipProps
|
|
523
|
+
}));
|
|
501
524
|
}
|
|
502
525
|
}
|
|
503
526
|
if (limitTags > -1 && Array.isArray(startAdornment)) {
|
|
@@ -523,18 +546,20 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
523
546
|
})]
|
|
524
547
|
}, params.key);
|
|
525
548
|
const renderGroup = renderGroupProp || defaultRenderGroup;
|
|
526
|
-
const defaultRenderOption = (props2, option) => /*#__PURE__*/(0, _jsxRuntime.jsx)("li",
|
|
549
|
+
const defaultRenderOption = (props2, option) => /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
550
|
+
...props2,
|
|
527
551
|
children: getOptionLabel(option)
|
|
528
|
-
})
|
|
552
|
+
});
|
|
529
553
|
const renderOption = renderOptionProp || defaultRenderOption;
|
|
530
554
|
const renderListOption = (option, index) => {
|
|
531
555
|
const optionProps = getOptionProps({
|
|
532
556
|
option,
|
|
533
557
|
index
|
|
534
558
|
});
|
|
535
|
-
return renderOption(
|
|
559
|
+
return renderOption({
|
|
560
|
+
...optionProps,
|
|
536
561
|
className: classes.option
|
|
537
|
-
}
|
|
562
|
+
}, option, {
|
|
538
563
|
selected: optionProps['aria-selected'],
|
|
539
564
|
index,
|
|
540
565
|
inputValue
|
|
@@ -545,18 +570,18 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
545
570
|
const popperSlotProps = (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper;
|
|
546
571
|
const popupIndicatorSlotProps = (_slotProps$popupIndic = slotProps.popupIndicator) != null ? _slotProps$popupIndic : componentsProps.popupIndicator;
|
|
547
572
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
548
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteRoot,
|
|
573
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteRoot, {
|
|
549
574
|
ref: ref,
|
|
550
575
|
className: (0, _clsx.default)(classes.root, className),
|
|
551
|
-
ownerState: ownerState
|
|
552
|
-
|
|
576
|
+
ownerState: ownerState,
|
|
577
|
+
...getRootProps(other),
|
|
553
578
|
children: renderInput({
|
|
554
579
|
id,
|
|
555
580
|
disabled,
|
|
556
581
|
fullWidth: true,
|
|
557
582
|
size: size === 'small' ? 'small' : undefined,
|
|
558
583
|
InputLabelProps: getInputLabelProps(),
|
|
559
|
-
InputProps:
|
|
584
|
+
InputProps: {
|
|
560
585
|
ref: setAnchorEl,
|
|
561
586
|
className: classes.inputRoot,
|
|
562
587
|
startAdornment,
|
|
@@ -564,36 +589,40 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
564
589
|
if (event.target === event.currentTarget) {
|
|
565
590
|
handleInputMouseDown(event);
|
|
566
591
|
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
592
|
+
},
|
|
593
|
+
...((hasClearIcon || hasPopupIcon) && {
|
|
594
|
+
endAdornment: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompleteEndAdornment, {
|
|
595
|
+
className: classes.endAdornment,
|
|
596
|
+
ownerState: ownerState,
|
|
597
|
+
children: [hasClearIcon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteClearIndicator, {
|
|
598
|
+
...getClearProps(),
|
|
599
|
+
"aria-label": clearText,
|
|
600
|
+
title: clearText,
|
|
601
|
+
ownerState: ownerState,
|
|
602
|
+
...clearIndicatorSlotProps,
|
|
603
|
+
className: (0, _clsx.default)(classes.clearIndicator, clearIndicatorSlotProps == null ? void 0 : clearIndicatorSlotProps.className),
|
|
604
|
+
children: clearIcon
|
|
605
|
+
}) : null, hasPopupIcon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompletePopupIndicator, {
|
|
606
|
+
...getPopupIndicatorProps(),
|
|
607
|
+
disabled: disabled,
|
|
608
|
+
"aria-label": popupOpen ? closeText : openText,
|
|
609
|
+
title: popupOpen ? closeText : openText,
|
|
610
|
+
ownerState: ownerState,
|
|
611
|
+
...popupIndicatorSlotProps,
|
|
612
|
+
className: (0, _clsx.default)(classes.popupIndicator, popupIndicatorSlotProps == null ? void 0 : popupIndicatorSlotProps.className),
|
|
613
|
+
children: popupIcon
|
|
614
|
+
}) : null]
|
|
615
|
+
})
|
|
588
616
|
})
|
|
589
|
-
}
|
|
590
|
-
inputProps:
|
|
617
|
+
},
|
|
618
|
+
inputProps: {
|
|
591
619
|
className: classes.input,
|
|
592
620
|
disabled,
|
|
593
|
-
readOnly
|
|
594
|
-
|
|
621
|
+
readOnly,
|
|
622
|
+
...getInputProps()
|
|
623
|
+
}
|
|
595
624
|
})
|
|
596
|
-
})
|
|
625
|
+
}), anchorEl ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompletePopper, {
|
|
597
626
|
as: PopperComponent,
|
|
598
627
|
disablePortal: disablePortal,
|
|
599
628
|
style: {
|
|
@@ -602,13 +631,13 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
602
631
|
ownerState: ownerState,
|
|
603
632
|
role: "presentation",
|
|
604
633
|
anchorEl: anchorEl,
|
|
605
|
-
open: popupOpen
|
|
606
|
-
|
|
634
|
+
open: popupOpen,
|
|
635
|
+
...popperSlotProps,
|
|
607
636
|
className: (0, _clsx.default)(classes.popper, popperSlotProps == null ? void 0 : popperSlotProps.className),
|
|
608
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompletePaper,
|
|
637
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompletePaper, {
|
|
609
638
|
ownerState: ownerState,
|
|
610
|
-
as: PaperComponent
|
|
611
|
-
|
|
639
|
+
as: PaperComponent,
|
|
640
|
+
...paperSlotProps,
|
|
612
641
|
className: (0, _clsx.default)(classes.paper, paperSlotProps == null ? void 0 : paperSlotProps.className),
|
|
613
642
|
children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteLoading, {
|
|
614
643
|
className: classes.loading,
|
|
@@ -623,11 +652,12 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
623
652
|
event.preventDefault();
|
|
624
653
|
},
|
|
625
654
|
children: noOptionsText
|
|
626
|
-
}) : null, groupedOptions.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteListbox,
|
|
655
|
+
}) : null, groupedOptions.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteListbox, {
|
|
627
656
|
as: ListboxComponent,
|
|
628
657
|
className: classes.listbox,
|
|
629
|
-
ownerState: ownerState
|
|
630
|
-
|
|
658
|
+
ownerState: ownerState,
|
|
659
|
+
...getListboxProps(),
|
|
660
|
+
...ListboxProps,
|
|
631
661
|
children: groupedOptions.map((option, index) => {
|
|
632
662
|
if (groupBy) {
|
|
633
663
|
return renderGroup({
|
|
@@ -638,9 +668,9 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
638
668
|
}
|
|
639
669
|
return renderListOption(option, index);
|
|
640
670
|
})
|
|
641
|
-
})
|
|
642
|
-
})
|
|
643
|
-
})
|
|
671
|
+
}) : null]
|
|
672
|
+
})
|
|
673
|
+
}) : null]
|
|
644
674
|
});
|
|
645
675
|
});
|
|
646
676
|
process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptypes */ = {
|
|
@@ -777,6 +807,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
777
807
|
/**
|
|
778
808
|
* A function that determines the filtered options to be rendered on search.
|
|
779
809
|
*
|
|
810
|
+
* @default createFilterOptions()
|
|
780
811
|
* @param {T[]} options The options to render.
|
|
781
812
|
* @param {object} state The state of the component.
|
|
782
813
|
* @returns {T[]}
|
package/node/Avatar/Avatar.js
CHANGED
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
8
|
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
10
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -16,7 +14,6 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
|
16
14
|
var _Person = _interopRequireDefault(require("../internal/svg-icons/Person"));
|
|
17
15
|
var _avatarClasses = require("./avatarClasses");
|
|
18
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
const _excluded = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"];
|
|
20
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
19
|
const useUtilityClasses = ownerState => {
|
|
@@ -44,7 +41,7 @@ const AvatarRoot = (0, _styled.default)('div', {
|
|
|
44
41
|
})(({
|
|
45
42
|
theme,
|
|
46
43
|
ownerState
|
|
47
|
-
}) => (
|
|
44
|
+
}) => ({
|
|
48
45
|
position: 'relative',
|
|
49
46
|
display: 'flex',
|
|
50
47
|
alignItems: 'center',
|
|
@@ -57,18 +54,22 @@ const AvatarRoot = (0, _styled.default)('div', {
|
|
|
57
54
|
lineHeight: 1,
|
|
58
55
|
borderRadius: '50%',
|
|
59
56
|
overflow: 'hidden',
|
|
60
|
-
userSelect: 'none'
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
57
|
+
userSelect: 'none',
|
|
58
|
+
...(ownerState.variant === 'rounded' && {
|
|
59
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
60
|
+
}),
|
|
61
|
+
...(ownerState.variant === 'square' && {
|
|
62
|
+
borderRadius: 0
|
|
63
|
+
}),
|
|
64
|
+
...(ownerState.colorDefault && {
|
|
65
|
+
color: (theme.vars || theme).palette.background.default,
|
|
66
|
+
...(theme.vars ? {
|
|
67
|
+
backgroundColor: theme.vars.palette.Avatar.defaultBg
|
|
68
|
+
} : {
|
|
69
|
+
backgroundColor: theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
}));
|
|
72
73
|
const AvatarImg = (0, _styled.default)('img', {
|
|
73
74
|
name: 'MuiAvatar',
|
|
74
75
|
slot: 'Img',
|
|
@@ -136,41 +137,44 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
|
136
137
|
name: 'MuiAvatar'
|
|
137
138
|
});
|
|
138
139
|
const {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
alt,
|
|
141
|
+
children: childrenProp,
|
|
142
|
+
className,
|
|
143
|
+
component = 'div',
|
|
144
|
+
imgProps,
|
|
145
|
+
sizes,
|
|
146
|
+
src,
|
|
147
|
+
srcSet,
|
|
148
|
+
variant = 'circular',
|
|
149
|
+
...other
|
|
150
|
+
} = props;
|
|
150
151
|
let children = null;
|
|
151
152
|
|
|
152
153
|
// Use a hook instead of onError on the img element to support server-side rendering.
|
|
153
|
-
const loaded = useLoaded(
|
|
154
|
+
const loaded = useLoaded({
|
|
155
|
+
...imgProps,
|
|
154
156
|
src,
|
|
155
157
|
srcSet
|
|
156
|
-
})
|
|
158
|
+
});
|
|
157
159
|
const hasImg = src || srcSet;
|
|
158
160
|
const hasImgNotFailing = hasImg && loaded !== 'error';
|
|
159
|
-
const ownerState =
|
|
161
|
+
const ownerState = {
|
|
162
|
+
...props,
|
|
160
163
|
colorDefault: !hasImgNotFailing,
|
|
161
164
|
component,
|
|
162
165
|
variant
|
|
163
|
-
}
|
|
166
|
+
};
|
|
164
167
|
const classes = useUtilityClasses(ownerState);
|
|
165
168
|
if (hasImgNotFailing) {
|
|
166
|
-
children = /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarImg,
|
|
169
|
+
children = /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarImg, {
|
|
167
170
|
alt: alt,
|
|
168
171
|
src: src,
|
|
169
172
|
srcSet: srcSet,
|
|
170
173
|
sizes: sizes,
|
|
171
174
|
ownerState: ownerState,
|
|
172
|
-
className: classes.img
|
|
173
|
-
|
|
175
|
+
className: classes.img,
|
|
176
|
+
...imgProps
|
|
177
|
+
});
|
|
174
178
|
} else if (childrenProp != null) {
|
|
175
179
|
children = childrenProp;
|
|
176
180
|
} else if (hasImg && alt) {
|
|
@@ -181,14 +185,14 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
|
|
181
185
|
className: classes.fallback
|
|
182
186
|
});
|
|
183
187
|
}
|
|
184
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarRoot,
|
|
188
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarRoot, {
|
|
185
189
|
as: component,
|
|
186
190
|
ownerState: ownerState,
|
|
187
191
|
className: (0, _clsx.default)(classes.root, className),
|
|
188
|
-
ref: ref
|
|
189
|
-
|
|
192
|
+
ref: ref,
|
|
193
|
+
...other,
|
|
190
194
|
children: children
|
|
191
|
-
})
|
|
195
|
+
});
|
|
192
196
|
});
|
|
193
197
|
process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */ = {
|
|
194
198
|
// ----------------------------- Warning --------------------------------
|