@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/node/Slider/Slider.js
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.SliderValueLabel = exports.SliderTrack = exports.SliderThumb = exports.SliderRoot = exports.SliderRail = exports.SliderMarkLabel = exports.SliderMark = void 0;
|
|
8
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
10
|
var React = _interopRequireWildcard(require("react"));
|
|
9
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -20,6 +22,7 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
|
20
22
|
var _SliderValueLabel = _interopRequireDefault(require("./SliderValueLabel"));
|
|
21
23
|
var _sliderClasses = _interopRequireWildcard(require("./sliderClasses"));
|
|
22
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
const _excluded = ["aria-label", "aria-valuetext", "aria-labelledby", "component", "components", "componentsProps", "color", "classes", "className", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "orientation", "size", "step", "scale", "slotProps", "slots", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat"];
|
|
23
26
|
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); }
|
|
24
27
|
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; }
|
|
25
28
|
function Identity(x) {
|
|
@@ -37,7 +40,7 @@ const SliderRoot = (0, _styled.default)('span', {
|
|
|
37
40
|
})(({
|
|
38
41
|
theme,
|
|
39
42
|
ownerState
|
|
40
|
-
}) => ({
|
|
43
|
+
}) => (0, _extends2.default)({
|
|
41
44
|
borderRadius: 12,
|
|
42
45
|
boxSizing: 'content-box',
|
|
43
46
|
display: 'inline-block',
|
|
@@ -45,39 +48,34 @@ const SliderRoot = (0, _styled.default)('span', {
|
|
|
45
48
|
cursor: 'pointer',
|
|
46
49
|
touchAction: 'none',
|
|
47
50
|
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
48
|
-
WebkitTapHighlightColor: 'transparent'
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}),
|
|
77
|
-
...(ownerState.marked && {
|
|
78
|
-
marginRight: 44
|
|
79
|
-
})
|
|
80
|
-
}),
|
|
51
|
+
WebkitTapHighlightColor: 'transparent'
|
|
52
|
+
}, ownerState.orientation === 'horizontal' && (0, _extends2.default)({
|
|
53
|
+
height: 4,
|
|
54
|
+
width: '100%',
|
|
55
|
+
padding: '13px 0',
|
|
56
|
+
// The primary input mechanism of the device includes a pointing device of limited accuracy.
|
|
57
|
+
'@media (pointer: coarse)': {
|
|
58
|
+
// Reach 42px touch target, about ~8mm on screen.
|
|
59
|
+
padding: '20px 0'
|
|
60
|
+
}
|
|
61
|
+
}, ownerState.size === 'small' && {
|
|
62
|
+
height: 2
|
|
63
|
+
}, ownerState.marked && {
|
|
64
|
+
marginBottom: 20
|
|
65
|
+
}), ownerState.orientation === 'vertical' && (0, _extends2.default)({
|
|
66
|
+
height: '100%',
|
|
67
|
+
width: 4,
|
|
68
|
+
padding: '0 13px',
|
|
69
|
+
// The primary input mechanism of the device includes a pointing device of limited accuracy.
|
|
70
|
+
'@media (pointer: coarse)': {
|
|
71
|
+
// Reach 42px touch target, about ~8mm on screen.
|
|
72
|
+
padding: '0 20px'
|
|
73
|
+
}
|
|
74
|
+
}, ownerState.size === 'small' && {
|
|
75
|
+
width: 2
|
|
76
|
+
}, ownerState.marked && {
|
|
77
|
+
marginRight: 44
|
|
78
|
+
}), {
|
|
81
79
|
'@media print': {
|
|
82
80
|
colorAdjust: 'exact'
|
|
83
81
|
},
|
|
@@ -109,27 +107,24 @@ const SliderRail = (0, _styled.default)('span', {
|
|
|
109
107
|
overridesResolver: (props, styles) => styles.rail
|
|
110
108
|
})(({
|
|
111
109
|
ownerState
|
|
112
|
-
}) => ({
|
|
110
|
+
}) => (0, _extends2.default)({
|
|
113
111
|
display: 'block',
|
|
114
112
|
position: 'absolute',
|
|
115
113
|
borderRadius: 'inherit',
|
|
116
114
|
backgroundColor: 'currentColor',
|
|
117
|
-
opacity: 0.38
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
...(ownerState.track === 'inverted' && {
|
|
131
|
-
opacity: 1
|
|
132
|
-
})
|
|
115
|
+
opacity: 0.38
|
|
116
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
117
|
+
width: '100%',
|
|
118
|
+
height: 'inherit',
|
|
119
|
+
top: '50%',
|
|
120
|
+
transform: 'translateY(-50%)'
|
|
121
|
+
}, ownerState.orientation === 'vertical' && {
|
|
122
|
+
height: '100%',
|
|
123
|
+
width: 'inherit',
|
|
124
|
+
left: '50%',
|
|
125
|
+
transform: 'translateX(-50%)'
|
|
126
|
+
}, ownerState.track === 'inverted' && {
|
|
127
|
+
opacity: 1
|
|
133
128
|
}));
|
|
134
129
|
exports.SliderRail = SliderRail;
|
|
135
130
|
process.env.NODE_ENV !== "production" ? SliderRail.propTypes /* remove-proptypes */ = {
|
|
@@ -153,7 +148,7 @@ const SliderTrack = (0, _styled.default)('span', {
|
|
|
153
148
|
const color =
|
|
154
149
|
// Same logic as the LinearProgress track color
|
|
155
150
|
theme.palette.mode === 'light' ? (0, _system.lighten)(theme.palette[ownerState.color].main, 0.62) : (0, _system.darken)(theme.palette[ownerState.color].main, 0.5);
|
|
156
|
-
return {
|
|
151
|
+
return (0, _extends2.default)({
|
|
157
152
|
display: 'block',
|
|
158
153
|
position: 'absolute',
|
|
159
154
|
borderRadius: 'inherit',
|
|
@@ -161,28 +156,23 @@ const SliderTrack = (0, _styled.default)('span', {
|
|
|
161
156
|
backgroundColor: 'currentColor',
|
|
162
157
|
transition: theme.transitions.create(['left', 'width', 'bottom', 'height'], {
|
|
163
158
|
duration: theme.transitions.duration.shortest
|
|
164
|
-
}),
|
|
165
|
-
...(ownerState.size === 'small' && {
|
|
166
|
-
border: 'none'
|
|
167
|
-
}),
|
|
168
|
-
...(ownerState.orientation === 'horizontal' && {
|
|
169
|
-
height: 'inherit',
|
|
170
|
-
top: '50%',
|
|
171
|
-
transform: 'translateY(-50%)'
|
|
172
|
-
}),
|
|
173
|
-
...(ownerState.orientation === 'vertical' && {
|
|
174
|
-
width: 'inherit',
|
|
175
|
-
left: '50%',
|
|
176
|
-
transform: 'translateX(-50%)'
|
|
177
|
-
}),
|
|
178
|
-
...(ownerState.track === false && {
|
|
179
|
-
display: 'none'
|
|
180
|
-
}),
|
|
181
|
-
...(ownerState.track === 'inverted' && {
|
|
182
|
-
backgroundColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color,
|
|
183
|
-
borderColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color
|
|
184
159
|
})
|
|
185
|
-
}
|
|
160
|
+
}, ownerState.size === 'small' && {
|
|
161
|
+
border: 'none'
|
|
162
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
163
|
+
height: 'inherit',
|
|
164
|
+
top: '50%',
|
|
165
|
+
transform: 'translateY(-50%)'
|
|
166
|
+
}, ownerState.orientation === 'vertical' && {
|
|
167
|
+
width: 'inherit',
|
|
168
|
+
left: '50%',
|
|
169
|
+
transform: 'translateX(-50%)'
|
|
170
|
+
}, ownerState.track === false && {
|
|
171
|
+
display: 'none'
|
|
172
|
+
}, ownerState.track === 'inverted' && {
|
|
173
|
+
backgroundColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color,
|
|
174
|
+
borderColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color
|
|
175
|
+
});
|
|
186
176
|
});
|
|
187
177
|
exports.SliderTrack = SliderTrack;
|
|
188
178
|
process.env.NODE_ENV !== "production" ? SliderTrack.propTypes /* remove-proptypes */ = {
|
|
@@ -207,7 +197,7 @@ const SliderThumb = (0, _styled.default)('span', {
|
|
|
207
197
|
})(({
|
|
208
198
|
theme,
|
|
209
199
|
ownerState
|
|
210
|
-
}) => ({
|
|
200
|
+
}) => (0, _extends2.default)({
|
|
211
201
|
position: 'absolute',
|
|
212
202
|
width: 20,
|
|
213
203
|
height: 20,
|
|
@@ -220,30 +210,27 @@ const SliderThumb = (0, _styled.default)('span', {
|
|
|
220
210
|
justifyContent: 'center',
|
|
221
211
|
transition: theme.transitions.create(['box-shadow', 'left', 'bottom'], {
|
|
222
212
|
duration: theme.transitions.duration.shortest
|
|
223
|
-
})
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}),
|
|
236
|
-
'&:before': {
|
|
213
|
+
})
|
|
214
|
+
}, ownerState.size === 'small' && {
|
|
215
|
+
width: 12,
|
|
216
|
+
height: 12
|
|
217
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
218
|
+
top: '50%',
|
|
219
|
+
transform: 'translate(-50%, -50%)'
|
|
220
|
+
}, ownerState.orientation === 'vertical' && {
|
|
221
|
+
left: '50%',
|
|
222
|
+
transform: 'translate(-50%, 50%)'
|
|
223
|
+
}, {
|
|
224
|
+
'&:before': (0, _extends2.default)({
|
|
237
225
|
position: 'absolute',
|
|
238
226
|
content: '""',
|
|
239
227
|
borderRadius: 'inherit',
|
|
240
228
|
width: '100%',
|
|
241
229
|
height: '100%',
|
|
242
|
-
boxShadow: (theme.vars || theme).shadows[2]
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
},
|
|
230
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
231
|
+
}, ownerState.size === 'small' && {
|
|
232
|
+
boxShadow: 'none'
|
|
233
|
+
}),
|
|
247
234
|
'&::after': {
|
|
248
235
|
position: 'absolute',
|
|
249
236
|
content: '""',
|
|
@@ -288,13 +275,13 @@ const StyledSliderValueLabel = (0, _styled.default)(_SliderValueLabel.default, {
|
|
|
288
275
|
})(({
|
|
289
276
|
theme,
|
|
290
277
|
ownerState
|
|
291
|
-
}) => ({
|
|
278
|
+
}) => (0, _extends2.default)({
|
|
292
279
|
[`&.${_sliderClasses.default.valueLabelOpen}`]: {
|
|
293
280
|
transform: `${ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)'} scale(1)`
|
|
294
281
|
},
|
|
295
282
|
zIndex: 1,
|
|
296
|
-
whiteSpace: 'nowrap'
|
|
297
|
-
|
|
283
|
+
whiteSpace: 'nowrap'
|
|
284
|
+
}, theme.typography.body2, {
|
|
298
285
|
fontWeight: 500,
|
|
299
286
|
transition: theme.transitions.create(['transform'], {
|
|
300
287
|
duration: theme.transitions.duration.shortest
|
|
@@ -307,40 +294,37 @@ const StyledSliderValueLabel = (0, _styled.default)(_SliderValueLabel.default, {
|
|
|
307
294
|
display: 'flex',
|
|
308
295
|
alignItems: 'center',
|
|
309
296
|
justifyContent: 'center',
|
|
310
|
-
padding: '0.25rem 0.75rem'
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
'
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
fontSize: theme.typography.pxToRem(12),
|
|
342
|
-
padding: '0.25rem 0.5rem'
|
|
343
|
-
})
|
|
297
|
+
padding: '0.25rem 0.75rem'
|
|
298
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
299
|
+
top: '-10px',
|
|
300
|
+
transformOrigin: 'bottom center',
|
|
301
|
+
'&:before': {
|
|
302
|
+
position: 'absolute',
|
|
303
|
+
content: '""',
|
|
304
|
+
width: 8,
|
|
305
|
+
height: 8,
|
|
306
|
+
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
307
|
+
backgroundColor: 'inherit',
|
|
308
|
+
bottom: 0,
|
|
309
|
+
left: '50%'
|
|
310
|
+
}
|
|
311
|
+
}, ownerState.orientation === 'vertical' && {
|
|
312
|
+
right: ownerState.size === 'small' ? '20px' : '30px',
|
|
313
|
+
top: '50%',
|
|
314
|
+
transformOrigin: 'right center',
|
|
315
|
+
'&:before': {
|
|
316
|
+
position: 'absolute',
|
|
317
|
+
content: '""',
|
|
318
|
+
width: 8,
|
|
319
|
+
height: 8,
|
|
320
|
+
transform: 'translate(-50%, -50%) rotate(45deg)',
|
|
321
|
+
backgroundColor: 'inherit',
|
|
322
|
+
right: -8,
|
|
323
|
+
top: '50%'
|
|
324
|
+
}
|
|
325
|
+
}, ownerState.size === 'small' && {
|
|
326
|
+
fontSize: theme.typography.pxToRem(12),
|
|
327
|
+
padding: '0.25rem 0.5rem'
|
|
344
328
|
}));
|
|
345
329
|
exports.SliderValueLabel = StyledSliderValueLabel;
|
|
346
330
|
process.env.NODE_ENV !== "production" ? StyledSliderValueLabel.propTypes /* remove-proptypes */ = {
|
|
@@ -367,24 +351,21 @@ const SliderMark = (0, _styled.default)('span', {
|
|
|
367
351
|
theme,
|
|
368
352
|
ownerState,
|
|
369
353
|
markActive
|
|
370
|
-
}) => ({
|
|
354
|
+
}) => (0, _extends2.default)({
|
|
371
355
|
position: 'absolute',
|
|
372
356
|
width: 2,
|
|
373
357
|
height: 2,
|
|
374
358
|
borderRadius: 1,
|
|
375
|
-
backgroundColor: 'currentColor'
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
386
|
-
opacity: 0.8
|
|
387
|
-
})
|
|
359
|
+
backgroundColor: 'currentColor'
|
|
360
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
361
|
+
top: '50%',
|
|
362
|
+
transform: 'translate(-1px, -50%)'
|
|
363
|
+
}, ownerState.orientation === 'vertical' && {
|
|
364
|
+
left: '50%',
|
|
365
|
+
transform: 'translate(-50%, 1px)'
|
|
366
|
+
}, markActive && {
|
|
367
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
368
|
+
opacity: 0.8
|
|
388
369
|
}));
|
|
389
370
|
exports.SliderMark = SliderMark;
|
|
390
371
|
process.env.NODE_ENV !== "production" ? SliderMark.propTypes /* remove-proptypes */ = {
|
|
@@ -406,28 +387,24 @@ const SliderMarkLabel = (0, _styled.default)('span', {
|
|
|
406
387
|
theme,
|
|
407
388
|
ownerState,
|
|
408
389
|
markLabelActive
|
|
409
|
-
}) => ({
|
|
410
|
-
...theme.typography.body2,
|
|
390
|
+
}) => (0, _extends2.default)({}, theme.typography.body2, {
|
|
411
391
|
color: (theme.vars || theme).palette.text.secondary,
|
|
412
392
|
position: 'absolute',
|
|
413
|
-
whiteSpace: 'nowrap'
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
...(markLabelActive && {
|
|
429
|
-
color: (theme.vars || theme).palette.text.primary
|
|
430
|
-
})
|
|
393
|
+
whiteSpace: 'nowrap'
|
|
394
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
395
|
+
top: 30,
|
|
396
|
+
transform: 'translateX(-50%)',
|
|
397
|
+
'@media (pointer: coarse)': {
|
|
398
|
+
top: 40
|
|
399
|
+
}
|
|
400
|
+
}, ownerState.orientation === 'vertical' && {
|
|
401
|
+
left: 36,
|
|
402
|
+
transform: 'translateY(50%)',
|
|
403
|
+
'@media (pointer: coarse)': {
|
|
404
|
+
left: 44
|
|
405
|
+
}
|
|
406
|
+
}, markLabelActive && {
|
|
407
|
+
color: (theme.vars || theme).palette.text.primary
|
|
431
408
|
}));
|
|
432
409
|
exports.SliderMarkLabel = SliderMarkLabel;
|
|
433
410
|
process.env.NODE_ENV !== "production" ? SliderMarkLabel.propTypes /* remove-proptypes */ = {
|
|
@@ -479,41 +456,35 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
479
456
|
const theme = (0, _useTheme.default)();
|
|
480
457
|
const isRtl = theme.direction === 'rtl';
|
|
481
458
|
const {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
valueLabelDisplay = 'off',
|
|
512
|
-
valueLabelFormat = Identity,
|
|
513
|
-
...other
|
|
514
|
-
} = props;
|
|
515
|
-
const ownerState = {
|
|
516
|
-
...props,
|
|
459
|
+
'aria-label': ariaLabel,
|
|
460
|
+
'aria-valuetext': ariaValuetext,
|
|
461
|
+
'aria-labelledby': ariaLabelledby,
|
|
462
|
+
// eslint-disable-next-line react/prop-types
|
|
463
|
+
component = 'span',
|
|
464
|
+
components = {},
|
|
465
|
+
componentsProps = {},
|
|
466
|
+
color = 'primary',
|
|
467
|
+
classes: classesProp,
|
|
468
|
+
className,
|
|
469
|
+
disableSwap = false,
|
|
470
|
+
disabled = false,
|
|
471
|
+
getAriaLabel,
|
|
472
|
+
getAriaValueText,
|
|
473
|
+
marks: marksProp = false,
|
|
474
|
+
max = 100,
|
|
475
|
+
min = 0,
|
|
476
|
+
orientation = 'horizontal',
|
|
477
|
+
size = 'medium',
|
|
478
|
+
step = 1,
|
|
479
|
+
scale = Identity,
|
|
480
|
+
slotProps,
|
|
481
|
+
slots,
|
|
482
|
+
track = 'normal',
|
|
483
|
+
valueLabelDisplay = 'off',
|
|
484
|
+
valueLabelFormat = Identity
|
|
485
|
+
} = props,
|
|
486
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
487
|
+
const ownerState = (0, _extends2.default)({}, props, {
|
|
517
488
|
isRtl,
|
|
518
489
|
max,
|
|
519
490
|
min,
|
|
@@ -529,7 +500,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
529
500
|
track,
|
|
530
501
|
valueLabelDisplay,
|
|
531
502
|
valueLabelFormat
|
|
532
|
-
};
|
|
503
|
+
});
|
|
533
504
|
const {
|
|
534
505
|
axisProps,
|
|
535
506
|
getRootProps,
|
|
@@ -545,10 +516,9 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
545
516
|
values,
|
|
546
517
|
trackOffset,
|
|
547
518
|
trackLeap
|
|
548
|
-
} = (0, _useSlider.default)({
|
|
549
|
-
...ownerState,
|
|
519
|
+
} = (0, _useSlider.default)((0, _extends2.default)({}, ownerState, {
|
|
550
520
|
rootRef: ref
|
|
551
|
-
});
|
|
521
|
+
}));
|
|
552
522
|
ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
553
523
|
ownerState.dragging = dragging;
|
|
554
524
|
ownerState.focusedThumbIndex = focusedThumbIndex;
|
|
@@ -576,15 +546,10 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
576
546
|
getSlotProps: getRootProps,
|
|
577
547
|
externalSlotProps: rootSlotProps,
|
|
578
548
|
externalForwardedProps: other,
|
|
579
|
-
additionalProps: {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
},
|
|
584
|
-
ownerState: {
|
|
585
|
-
...ownerState,
|
|
586
|
-
...(rootSlotProps == null ? void 0 : rootSlotProps.ownerState)
|
|
587
|
-
},
|
|
549
|
+
additionalProps: (0, _extends2.default)({}, (0, _shouldSpreadAdditionalProps.default)(RootSlot) && {
|
|
550
|
+
as: component
|
|
551
|
+
}),
|
|
552
|
+
ownerState: (0, _extends2.default)({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
|
|
588
553
|
className: [classes.root, className]
|
|
589
554
|
});
|
|
590
555
|
const railProps = (0, _base.useSlotProps)({
|
|
@@ -597,34 +562,22 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
597
562
|
elementType: TrackSlot,
|
|
598
563
|
externalSlotProps: trackSlotProps,
|
|
599
564
|
additionalProps: {
|
|
600
|
-
style: {
|
|
601
|
-
...axisProps[axis].offset(trackOffset),
|
|
602
|
-
...axisProps[axis].leap(trackLeap)
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
ownerState: {
|
|
606
|
-
...ownerState,
|
|
607
|
-
...(trackSlotProps == null ? void 0 : trackSlotProps.ownerState)
|
|
565
|
+
style: (0, _extends2.default)({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap))
|
|
608
566
|
},
|
|
567
|
+
ownerState: (0, _extends2.default)({}, ownerState, trackSlotProps == null ? void 0 : trackSlotProps.ownerState),
|
|
609
568
|
className: classes.track
|
|
610
569
|
});
|
|
611
570
|
const thumbProps = (0, _base.useSlotProps)({
|
|
612
571
|
elementType: ThumbSlot,
|
|
613
572
|
getSlotProps: getThumbProps,
|
|
614
573
|
externalSlotProps: thumbSlotProps,
|
|
615
|
-
ownerState: {
|
|
616
|
-
...ownerState,
|
|
617
|
-
...(thumbSlotProps == null ? void 0 : thumbSlotProps.ownerState)
|
|
618
|
-
},
|
|
574
|
+
ownerState: (0, _extends2.default)({}, ownerState, thumbSlotProps == null ? void 0 : thumbSlotProps.ownerState),
|
|
619
575
|
className: classes.thumb
|
|
620
576
|
});
|
|
621
577
|
const valueLabelProps = (0, _base.useSlotProps)({
|
|
622
578
|
elementType: ValueLabelSlot,
|
|
623
579
|
externalSlotProps: valueLabelSlotProps,
|
|
624
|
-
ownerState: {
|
|
625
|
-
...ownerState,
|
|
626
|
-
...(valueLabelSlotProps == null ? void 0 : valueLabelSlotProps.ownerState)
|
|
627
|
-
},
|
|
580
|
+
ownerState: (0, _extends2.default)({}, ownerState, valueLabelSlotProps == null ? void 0 : valueLabelSlotProps.ownerState),
|
|
628
581
|
className: classes.valueLabel
|
|
629
582
|
});
|
|
630
583
|
const markProps = (0, _base.useSlotProps)({
|
|
@@ -645,13 +598,8 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
645
598
|
externalSlotProps: inputSlotProps,
|
|
646
599
|
ownerState
|
|
647
600
|
});
|
|
648
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
|
|
649
|
-
|
|
650
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(RailSlot, {
|
|
651
|
-
...railProps
|
|
652
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(TrackSlot, {
|
|
653
|
-
...trackProps
|
|
654
|
-
}), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
601
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, (0, _extends2.default)({}, rootProps, {
|
|
602
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(RailSlot, (0, _extends2.default)({}, railProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(TrackSlot, (0, _extends2.default)({}, trackProps)), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
655
603
|
const percent = (0, _useSlider.valueToPercent)(mark.value, min, max);
|
|
656
604
|
const style = axisProps[axis].offset(percent);
|
|
657
605
|
let markActive;
|
|
@@ -661,31 +609,23 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
661
609
|
markActive = track === 'normal' && (range ? mark.value >= values[0] && mark.value <= values[values.length - 1] : mark.value <= values[0]) || track === 'inverted' && (range ? mark.value <= values[0] || mark.value >= values[values.length - 1] : mark.value >= values[0]);
|
|
662
610
|
}
|
|
663
611
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
664
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(MarkSlot, {
|
|
665
|
-
"data-index": index
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}),
|
|
670
|
-
style: {
|
|
671
|
-
...style,
|
|
672
|
-
...markProps.style
|
|
673
|
-
},
|
|
612
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(MarkSlot, (0, _extends2.default)({
|
|
613
|
+
"data-index": index
|
|
614
|
+
}, markProps, !(0, _base.isHostComponent)(MarkSlot) && {
|
|
615
|
+
markActive
|
|
616
|
+
}, {
|
|
617
|
+
style: (0, _extends2.default)({}, style, markProps.style),
|
|
674
618
|
className: (0, _clsx.default)(markProps.className, markActive && classes.markActive)
|
|
675
|
-
}), mark.label != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(MarkLabelSlot, {
|
|
619
|
+
})), mark.label != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(MarkLabelSlot, (0, _extends2.default)({
|
|
676
620
|
"aria-hidden": true,
|
|
677
|
-
"data-index": index
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}),
|
|
682
|
-
style: {
|
|
683
|
-
...style,
|
|
684
|
-
...markLabelProps.style
|
|
685
|
-
},
|
|
621
|
+
"data-index": index
|
|
622
|
+
}, markLabelProps, !(0, _base.isHostComponent)(MarkLabelSlot) && {
|
|
623
|
+
markLabelActive: markActive
|
|
624
|
+
}, {
|
|
625
|
+
style: (0, _extends2.default)({}, style, markLabelProps.style),
|
|
686
626
|
className: (0, _clsx.default)(classes.markLabel, markLabelProps.className, markActive && classes.markLabelActive),
|
|
687
627
|
children: mark.label
|
|
688
|
-
}) : null]
|
|
628
|
+
})) : null]
|
|
689
629
|
}, index);
|
|
690
630
|
}), values.map((value, index) => {
|
|
691
631
|
const percent = (0, _useSlider.valueToPercent)(value, min, max);
|
|
@@ -694,39 +634,34 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
694
634
|
return (
|
|
695
635
|
/*#__PURE__*/
|
|
696
636
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
697
|
-
(0, _jsxRuntime.jsx)(ValueLabelComponent, {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
"data-index": index,
|
|
709
|
-
...thumbProps,
|
|
637
|
+
(0, _jsxRuntime.jsx)(ValueLabelComponent, (0, _extends2.default)({}, !(0, _base.isHostComponent)(ValueLabelComponent) && {
|
|
638
|
+
valueLabelFormat,
|
|
639
|
+
valueLabelDisplay,
|
|
640
|
+
value: typeof valueLabelFormat === 'function' ? valueLabelFormat(scale(value), index) : valueLabelFormat,
|
|
641
|
+
index,
|
|
642
|
+
open: open === index || active === index || valueLabelDisplay === 'on',
|
|
643
|
+
disabled
|
|
644
|
+
}, valueLabelProps, {
|
|
645
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ThumbSlot, (0, _extends2.default)({
|
|
646
|
+
"data-index": index
|
|
647
|
+
}, thumbProps, {
|
|
710
648
|
className: (0, _clsx.default)(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
|
|
711
|
-
style: {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
},
|
|
716
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(InputSlot, {
|
|
649
|
+
style: (0, _extends2.default)({}, style, {
|
|
650
|
+
pointerEvents: disableSwap && active !== index ? 'none' : undefined
|
|
651
|
+
}, thumbProps.style),
|
|
652
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(InputSlot, (0, _extends2.default)({
|
|
717
653
|
"data-index": index,
|
|
718
654
|
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|
|
719
655
|
"aria-valuenow": scale(value),
|
|
720
656
|
"aria-labelledby": ariaLabelledby,
|
|
721
657
|
"aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
|
|
722
|
-
value: values[index]
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}, index)
|
|
658
|
+
value: values[index]
|
|
659
|
+
}, inputSliderProps))
|
|
660
|
+
}))
|
|
661
|
+
}), index)
|
|
727
662
|
);
|
|
728
663
|
})]
|
|
729
|
-
});
|
|
664
|
+
}));
|
|
730
665
|
});
|
|
731
666
|
process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */ = {
|
|
732
667
|
// ----------------------------- Warning --------------------------------
|