@mui/material 6.0.0-alpha.7 → 6.0.0-alpha.9
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 +33 -33
- package/AccordionActions/AccordionActions.d.ts +1 -1
- package/AccordionActions/AccordionActions.js +11 -12
- package/AccordionDetails/AccordionDetails.d.ts +1 -1
- package/AccordionDetails/AccordionDetails.js +7 -9
- package/AccordionSummary/AccordionSummary.js +14 -16
- package/Alert/Alert.d.ts +1 -1
- package/Alert/Alert.js +56 -51
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AlertTitle/AlertTitle.js +7 -9
- package/AppBar/AppBar.js +34 -32
- package/Autocomplete/Autocomplete.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +164 -136
- package/Avatar/Avatar.js +44 -36
- package/AvatarGroup/AvatarGroup.d.ts +51 -18
- package/AvatarGroup/AvatarGroup.js +60 -41
- package/Backdrop/Backdrop.js +33 -30
- package/Badge/Badge.js +31 -30
- package/BottomNavigation/BottomNavigation.js +15 -17
- package/BottomNavigationAction/BottomNavigationAction.js +15 -18
- package/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/Breadcrumbs/Breadcrumbs.js +19 -21
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js +32 -29
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/ButtonBase.js +43 -42
- package/ButtonBase/TouchRipple.js +9 -12
- package/ButtonGroup/ButtonGroup.js +23 -25
- package/CHANGELOG.md +113 -2
- package/Card/Card.js +11 -12
- package/CardActionArea/CardActionArea.js +9 -12
- package/CardActions/CardActions.d.ts +1 -1
- package/CardActions/CardActions.js +11 -12
- package/CardContent/CardContent.js +11 -12
- package/CardHeader/CardHeader.d.ts +1 -1
- package/CardHeader/CardHeader.js +30 -31
- package/CardMedia/CardMedia.js +19 -20
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.js +29 -26
- package/Chip/Chip.d.ts +3 -3
- package/Chip/Chip.js +38 -37
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +24 -23
- package/Collapse/Collapse.d.ts +1 -1
- package/Collapse/Collapse.js +44 -42
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/CssBaseline/CssBaseline.js +17 -14
- package/Dialog/Dialog.d.ts +1 -1
- package/Dialog/Dialog.js +41 -42
- package/DialogActions/DialogActions.d.ts +1 -1
- package/DialogActions/DialogActions.js +11 -12
- package/DialogContent/DialogContent.d.ts +1 -1
- package/DialogContent/DialogContent.js +11 -12
- package/DialogContentText/DialogContentText.js +13 -11
- package/DialogTitle/DialogTitle.js +8 -10
- package/Divider/Divider.js +19 -21
- package/Drawer/Drawer.d.ts +1 -1
- package/Drawer/Drawer.js +50 -49
- package/Fab/Fab.js +26 -23
- package/Fade/Fade.d.ts +1 -1
- package/Fade/Fade.js +31 -30
- package/FilledInput/FilledInput.d.ts +1 -1
- package/FilledInput/FilledInput.js +48 -44
- package/FilledInput/filledInputClasses.js +4 -2
- package/FormControl/FormControl.js +27 -25
- package/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormControlLabel/FormControlLabel.js +32 -26
- package/FormGroup/FormGroup.d.ts +1 -1
- package/FormGroup/FormGroup.js +11 -12
- package/FormHelperText/FormHelperText.js +26 -18
- package/FormLabel/FormLabel.js +27 -19
- package/GlobalStyles/GlobalStyles.d.ts +1 -1
- package/GlobalStyles/GlobalStyles.js +3 -3
- package/Grid/Grid.d.ts +1 -0
- package/Grid/Grid.js +50 -41
- package/Grow/Grow.d.ts +1 -1
- package/Grow/Grow.js +31 -30
- package/Hidden/Hidden.d.ts +2 -0
- package/Hidden/Hidden.js +23 -22
- package/Hidden/HiddenCss.js +29 -29
- package/Hidden/withWidth.js +19 -19
- package/Icon/Icon.js +15 -16
- package/IconButton/IconButton.js +18 -20
- package/ImageList/ImageList.js +24 -24
- package/ImageListItem/ImageListItem.js +19 -20
- package/ImageListItemBar/ImageListItemBar.d.ts +1 -1
- package/ImageListItemBar/ImageListItemBar.js +15 -17
- package/Input/Input.d.ts +1 -1
- package/Input/Input.js +21 -20
- package/Input/inputClasses.js +4 -2
- package/InputAdornment/InputAdornment.js +16 -18
- package/InputBase/InputBase.d.ts +1 -1
- package/InputBase/InputBase.js +90 -73
- package/InputLabel/InputLabel.js +20 -16
- package/LinearProgress/LinearProgress.d.ts +1 -1
- package/LinearProgress/LinearProgress.js +21 -23
- package/Link/Link.js +27 -26
- package/List/List.js +15 -17
- package/ListItem/ListItem.d.ts +4 -12
- package/ListItem/ListItem.js +64 -63
- package/ListItemAvatar/ListItemAvatar.d.ts +1 -1
- package/ListItemAvatar/ListItemAvatar.js +10 -11
- package/ListItemButton/ListItemButton.js +23 -22
- package/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/ListItemIcon/ListItemIcon.js +10 -11
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +5 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +12 -11
- package/ListItemText/ListItemText.d.ts +3 -1
- package/ListItemText/ListItemText.js +25 -27
- package/ListSubheader/ListSubheader.js +15 -16
- package/Menu/Menu.d.ts +1 -1
- package/Menu/Menu.js +34 -36
- package/MenuItem/MenuItem.js +28 -26
- package/MenuList/MenuList.js +17 -20
- package/MobileStepper/MobileStepper.d.ts +1 -1
- package/MobileStepper/MobileStepper.js +21 -22
- package/Modal/Modal.d.ts +1 -1
- package/Modal/Modal.js +47 -38
- package/NativeSelect/NativeSelect.d.ts +1 -1
- package/NativeSelect/NativeSelect.js +26 -22
- package/NativeSelect/NativeSelectInput.js +15 -16
- package/OutlinedInput/NotchedOutline.js +14 -14
- package/OutlinedInput/OutlinedInput.d.ts +3 -1
- package/OutlinedInput/OutlinedInput.js +46 -42
- package/OutlinedInput/outlinedInputClasses.js +4 -2
- package/OverridableComponent.d.ts +2 -2
- package/Pagination/Pagination.d.ts +1 -1
- package/Pagination/Pagination.js +36 -32
- package/PaginationItem/PaginationItem.js +31 -30
- package/Paper/Paper.js +26 -23
- package/Popover/Popover.d.ts +1 -1
- package/Popover/Popover.js +71 -71
- package/Popper/Popper.d.ts +4 -0
- package/Popper/Popper.js +29 -27
- package/Radio/Radio.d.ts +1 -1
- package/Radio/Radio.js +24 -22
- package/Radio/RadioButtonIcon.js +3 -3
- package/RadioGroup/RadioGroup.d.ts +1 -1
- package/RadioGroup/RadioGroup.js +15 -18
- package/Rating/Rating.d.ts +1 -1
- package/Rating/Rating.js +54 -47
- package/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/Select/Select.d.ts +1 -1
- package/Select/Select.js +63 -57
- package/Select/SelectInput.js +64 -59
- package/Skeleton/Skeleton.js +20 -21
- package/Slide/Slide.d.ts +1 -1
- package/Slide/Slide.js +37 -33
- package/Slider/Slider.d.ts +1 -1
- package/Slider/Slider.js +155 -106
- package/Slider/SliderValueLabel.types.d.ts +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/Snackbar/Snackbar.js +52 -45
- package/SnackbarContent/SnackbarContent.d.ts +1 -1
- package/SnackbarContent/SnackbarContent.js +13 -15
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDial/SpeedDial.js +59 -60
- package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
- package/SpeedDialAction/SpeedDialAction.js +34 -33
- package/SpeedDialIcon/SpeedDialIcon.d.ts +3 -1
- package/SpeedDialIcon/SpeedDialIcon.js +10 -12
- package/Step/Step.js +18 -20
- package/StepButton/StepButton.js +16 -17
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepConnector/StepConnector.js +10 -12
- package/StepContent/StepContent.d.ts +1 -1
- package/StepContent/StepContent.js +18 -20
- package/StepIcon/StepIcon.d.ts +1 -1
- package/StepIcon/StepIcon.js +22 -22
- package/StepLabel/StepLabel.d.ts +1 -1
- package/StepLabel/StepLabel.js +33 -30
- package/Stepper/Stepper.js +21 -22
- package/SvgIcon/SvgIcon.js +21 -21
- package/SwipeableDrawer/SwipeArea.js +15 -16
- package/SwipeableDrawer/SwipeableDrawer.js +49 -43
- package/Switch/Switch.d.ts +1 -1
- package/Switch/Switch.js +23 -20
- package/Tab/Tab.d.ts +1 -1
- package/Tab/Tab.js +32 -33
- package/TabScrollButton/TabScrollButton.d.ts +1 -1
- package/TabScrollButton/TabScrollButton.js +27 -21
- package/Table/Table.js +17 -17
- package/TableBody/TableBody.js +11 -12
- package/TableCell/TableCell.d.ts +1 -1
- package/TableCell/TableCell.js +19 -19
- package/TableContainer/TableContainer.js +11 -12
- package/TableFooter/TableFooter.js +11 -12
- package/TableHead/TableHead.js +11 -12
- package/TablePagination/TablePagination.js +56 -52
- package/TablePagination/TablePaginationActions.js +51 -38
- package/TableRow/TableRow.js +13 -14
- package/TableSortLabel/TableSortLabel.js +15 -17
- package/Tabs/ScrollbarSize.js +7 -9
- package/Tabs/Tabs.js +52 -49
- package/TextField/TextField.d.ts +59 -4
- package/TextField/TextField.js +137 -67
- package/ToggleButton/ToggleButton.js +30 -32
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
- package/Toolbar/Toolbar.js +13 -14
- package/Tooltip/Tooltip.d.ts +3 -5
- package/Tooltip/Tooltip.js +77 -64
- package/Typography/Typography.js +37 -35
- package/Zoom/Zoom.d.ts +1 -1
- package/Zoom/Zoom.js +31 -30
- package/index.js +1 -1
- package/internal/SwitchBase.js +37 -37
- package/locale/index.d.ts +1 -0
- package/locale/index.js +74 -1
- package/modern/Accordion/Accordion.js +33 -33
- package/modern/AccordionActions/AccordionActions.js +11 -12
- package/modern/AccordionDetails/AccordionDetails.js +7 -9
- package/modern/AccordionSummary/AccordionSummary.js +14 -16
- package/modern/Alert/Alert.js +56 -51
- package/modern/AlertTitle/AlertTitle.js +7 -9
- package/modern/AppBar/AppBar.js +34 -32
- package/modern/Autocomplete/Autocomplete.js +164 -136
- package/modern/Avatar/Avatar.js +44 -36
- package/modern/AvatarGroup/AvatarGroup.js +60 -41
- package/modern/Backdrop/Backdrop.js +33 -30
- package/modern/Badge/Badge.js +31 -30
- package/modern/BottomNavigation/BottomNavigation.js +15 -17
- package/modern/BottomNavigationAction/BottomNavigationAction.js +15 -18
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/modern/Breadcrumbs/Breadcrumbs.js +19 -21
- package/modern/Button/Button.js +32 -29
- package/modern/ButtonBase/ButtonBase.js +43 -42
- package/modern/ButtonBase/TouchRipple.js +9 -12
- package/modern/ButtonGroup/ButtonGroup.js +23 -25
- package/modern/Card/Card.js +11 -12
- package/modern/CardActionArea/CardActionArea.js +9 -12
- package/modern/CardActions/CardActions.js +11 -12
- package/modern/CardContent/CardContent.js +11 -12
- package/modern/CardHeader/CardHeader.js +30 -31
- package/modern/CardMedia/CardMedia.js +19 -20
- package/modern/Checkbox/Checkbox.js +29 -26
- package/modern/Chip/Chip.js +38 -37
- package/modern/CircularProgress/CircularProgress.js +24 -23
- package/modern/Collapse/Collapse.js +44 -42
- package/modern/CssBaseline/CssBaseline.js +17 -14
- package/modern/Dialog/Dialog.js +41 -42
- package/modern/DialogActions/DialogActions.js +11 -12
- package/modern/DialogContent/DialogContent.js +11 -12
- package/modern/DialogContentText/DialogContentText.js +13 -11
- package/modern/DialogTitle/DialogTitle.js +8 -10
- package/modern/Divider/Divider.js +19 -21
- package/modern/Drawer/Drawer.js +50 -49
- package/modern/Fab/Fab.js +26 -23
- package/modern/Fade/Fade.js +31 -30
- package/modern/FilledInput/FilledInput.js +48 -44
- package/modern/FilledInput/filledInputClasses.js +4 -2
- package/modern/FormControl/FormControl.js +27 -25
- package/modern/FormControlLabel/FormControlLabel.js +32 -26
- package/modern/FormGroup/FormGroup.js +11 -12
- package/modern/FormHelperText/FormHelperText.js +26 -18
- package/modern/FormLabel/FormLabel.js +27 -19
- 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 +23 -22
- package/modern/Hidden/HiddenCss.js +29 -29
- package/modern/Hidden/withWidth.js +19 -19
- package/modern/Icon/Icon.js +15 -16
- package/modern/IconButton/IconButton.js +18 -20
- package/modern/ImageList/ImageList.js +24 -24
- package/modern/ImageListItem/ImageListItem.js +19 -20
- package/modern/ImageListItemBar/ImageListItemBar.js +15 -17
- package/modern/Input/Input.js +21 -20
- package/modern/Input/inputClasses.js +4 -2
- package/modern/InputAdornment/InputAdornment.js +16 -18
- package/modern/InputBase/InputBase.js +90 -73
- package/modern/InputLabel/InputLabel.js +20 -16
- package/modern/LinearProgress/LinearProgress.js +21 -23
- package/modern/Link/Link.js +27 -26
- package/modern/List/List.js +15 -17
- package/modern/ListItem/ListItem.js +64 -63
- package/modern/ListItemAvatar/ListItemAvatar.js +10 -11
- package/modern/ListItemButton/ListItemButton.js +23 -22
- package/modern/ListItemIcon/ListItemIcon.js +10 -11
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +12 -11
- package/modern/ListItemText/ListItemText.js +25 -27
- package/modern/ListSubheader/ListSubheader.js +15 -16
- package/modern/Menu/Menu.js +34 -36
- package/modern/MenuItem/MenuItem.js +28 -26
- package/modern/MenuList/MenuList.js +17 -20
- package/modern/MobileStepper/MobileStepper.js +21 -22
- package/modern/Modal/Modal.js +47 -38
- package/modern/NativeSelect/NativeSelect.js +26 -22
- package/modern/NativeSelect/NativeSelectInput.js +15 -16
- package/modern/OutlinedInput/NotchedOutline.js +14 -14
- package/modern/OutlinedInput/OutlinedInput.js +46 -42
- package/modern/OutlinedInput/outlinedInputClasses.js +4 -2
- package/modern/Pagination/Pagination.js +36 -32
- package/modern/PaginationItem/PaginationItem.js +31 -30
- package/modern/Paper/Paper.js +26 -23
- package/modern/Popover/Popover.js +71 -71
- package/modern/Popper/Popper.js +29 -27
- package/modern/Radio/Radio.js +24 -22
- package/modern/Radio/RadioButtonIcon.js +3 -3
- package/modern/RadioGroup/RadioGroup.js +15 -18
- package/modern/Rating/Rating.js +54 -47
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/modern/Select/Select.js +63 -57
- package/modern/Select/SelectInput.js +64 -59
- package/modern/Skeleton/Skeleton.js +20 -21
- package/modern/Slide/Slide.js +37 -33
- package/modern/Slider/Slider.js +155 -106
- package/modern/Snackbar/Snackbar.js +52 -45
- package/modern/SnackbarContent/SnackbarContent.js +13 -15
- package/modern/SpeedDial/SpeedDial.js +59 -60
- package/modern/SpeedDialAction/SpeedDialAction.js +34 -33
- package/modern/SpeedDialIcon/SpeedDialIcon.js +10 -12
- package/modern/Step/Step.js +18 -20
- package/modern/StepButton/StepButton.js +16 -17
- package/modern/StepConnector/StepConnector.js +10 -12
- package/modern/StepContent/StepContent.js +18 -20
- package/modern/StepIcon/StepIcon.js +22 -22
- package/modern/StepLabel/StepLabel.js +33 -30
- package/modern/Stepper/Stepper.js +21 -22
- package/modern/SvgIcon/SvgIcon.js +21 -21
- package/modern/SwipeableDrawer/SwipeArea.js +15 -16
- package/modern/SwipeableDrawer/SwipeableDrawer.js +49 -43
- package/modern/Switch/Switch.js +23 -20
- package/modern/Tab/Tab.js +32 -33
- package/modern/TabScrollButton/TabScrollButton.js +27 -21
- package/modern/Table/Table.js +17 -17
- package/modern/TableBody/TableBody.js +11 -12
- package/modern/TableCell/TableCell.js +19 -19
- 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 +56 -52
- package/modern/TablePagination/TablePaginationActions.js +51 -38
- package/modern/TableRow/TableRow.js +13 -14
- package/modern/TableSortLabel/TableSortLabel.js +15 -17
- package/modern/Tabs/ScrollbarSize.js +7 -9
- package/modern/Tabs/Tabs.js +52 -49
- package/modern/TextField/TextField.js +137 -67
- package/modern/ToggleButton/ToggleButton.js +30 -32
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
- package/modern/Toolbar/Toolbar.js +13 -14
- package/modern/Tooltip/Tooltip.js +77 -64
- package/modern/Typography/Typography.js +37 -35
- package/modern/Zoom/Zoom.js +31 -30
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +37 -37
- package/modern/locale/index.js +74 -1
- package/modern/styles/CssVarsProvider.js +20 -9
- 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 +8 -344
- package/modern/styles/extendTheme.js +355 -0
- package/modern/styles/index.js +2 -1
- package/modern/styles/responsiveFontSizes.js +20 -11
- package/modern/usePagination/usePagination.js +18 -20
- package/modern/useScrollTrigger/useScrollTrigger.js +8 -10
- package/modern/utils/createSvgIcon.js +4 -5
- package/modern/utils/useSlot.js +41 -40
- package/node/Accordion/Accordion.js +33 -33
- package/node/AccordionActions/AccordionActions.js +11 -12
- package/node/AccordionDetails/AccordionDetails.js +7 -9
- package/node/AccordionSummary/AccordionSummary.js +14 -16
- package/node/Alert/Alert.js +56 -51
- package/node/AlertTitle/AlertTitle.js +7 -9
- package/node/AppBar/AppBar.js +125 -129
- package/node/Autocomplete/Autocomplete.js +165 -137
- package/node/Avatar/Avatar.js +44 -36
- package/node/AvatarGroup/AvatarGroup.js +60 -41
- package/node/Backdrop/Backdrop.js +33 -30
- package/node/Badge/Badge.js +179 -184
- package/node/BottomNavigation/BottomNavigation.js +15 -17
- package/node/BottomNavigationAction/BottomNavigationAction.js +15 -18
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/node/Breadcrumbs/Breadcrumbs.js +19 -21
- package/node/Button/Button.js +32 -29
- package/node/ButtonBase/ButtonBase.js +43 -42
- package/node/ButtonBase/TouchRipple.js +9 -12
- package/node/ButtonGroup/ButtonGroup.js +23 -25
- package/node/Card/Card.js +11 -12
- package/node/CardActionArea/CardActionArea.js +9 -12
- package/node/CardActions/CardActions.js +11 -12
- package/node/CardContent/CardContent.js +11 -12
- package/node/CardHeader/CardHeader.js +30 -31
- package/node/CardMedia/CardMedia.js +19 -20
- package/node/Checkbox/Checkbox.js +29 -26
- package/node/Chip/Chip.js +38 -37
- package/node/CircularProgress/CircularProgress.js +24 -23
- package/node/Collapse/Collapse.js +44 -42
- package/node/CssBaseline/CssBaseline.js +17 -14
- package/node/Dialog/Dialog.js +41 -42
- package/node/DialogActions/DialogActions.js +11 -12
- package/node/DialogContent/DialogContent.js +11 -12
- package/node/DialogContentText/DialogContentText.js +13 -11
- package/node/DialogTitle/DialogTitle.js +8 -10
- package/node/Divider/Divider.js +19 -21
- package/node/Drawer/Drawer.js +50 -49
- package/node/Fab/Fab.js +27 -24
- package/node/Fade/Fade.js +31 -30
- package/node/FilledInput/FilledInput.js +48 -44
- package/node/FilledInput/filledInputClasses.js +4 -2
- package/node/FormControl/FormControl.js +27 -25
- package/node/FormControlLabel/FormControlLabel.js +32 -26
- package/node/FormGroup/FormGroup.js +11 -12
- package/node/FormHelperText/FormHelperText.js +26 -18
- package/node/FormLabel/FormLabel.js +27 -19
- package/node/GlobalStyles/GlobalStyles.js +3 -3
- package/node/Grid/Grid.js +50 -41
- package/node/Grow/Grow.js +31 -30
- package/node/Hidden/Hidden.js +26 -26
- package/node/Hidden/HiddenCss.js +29 -29
- package/node/Hidden/withWidth.js +19 -19
- package/node/Icon/Icon.js +15 -16
- package/node/IconButton/IconButton.js +18 -20
- package/node/ImageList/ImageList.js +24 -24
- package/node/ImageListItem/ImageListItem.js +19 -20
- package/node/ImageListItemBar/ImageListItemBar.js +15 -17
- package/node/Input/Input.js +21 -20
- package/node/Input/inputClasses.js +4 -2
- package/node/InputAdornment/InputAdornment.js +16 -18
- package/node/InputBase/InputBase.js +90 -73
- package/node/InputLabel/InputLabel.js +20 -16
- package/node/LinearProgress/LinearProgress.js +21 -23
- package/node/Link/Link.js +27 -26
- package/node/List/List.js +15 -17
- package/node/ListItem/ListItem.js +64 -63
- package/node/ListItemAvatar/ListItemAvatar.js +10 -11
- package/node/ListItemButton/ListItemButton.js +23 -22
- package/node/ListItemIcon/ListItemIcon.js +10 -11
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +12 -11
- package/node/ListItemText/ListItemText.js +25 -27
- package/node/ListSubheader/ListSubheader.js +15 -16
- package/node/Menu/Menu.js +34 -36
- package/node/MenuItem/MenuItem.js +28 -26
- package/node/MenuList/MenuList.js +17 -20
- package/node/MobileStepper/MobileStepper.js +21 -22
- package/node/Modal/Modal.js +47 -38
- package/node/NativeSelect/NativeSelect.js +26 -22
- package/node/NativeSelect/NativeSelectInput.js +15 -16
- package/node/OutlinedInput/NotchedOutline.js +14 -14
- package/node/OutlinedInput/OutlinedInput.js +46 -42
- package/node/OutlinedInput/outlinedInputClasses.js +4 -2
- package/node/Pagination/Pagination.js +36 -32
- package/node/PaginationItem/PaginationItem.js +31 -30
- package/node/Paper/Paper.js +26 -23
- package/node/Popover/Popover.js +71 -71
- package/node/Popper/Popper.js +29 -27
- package/node/Radio/Radio.js +24 -22
- package/node/Radio/RadioButtonIcon.js +3 -3
- package/node/RadioGroup/RadioGroup.js +15 -18
- package/node/Rating/Rating.js +54 -47
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/node/Select/Select.js +63 -57
- package/node/Select/SelectInput.js +64 -59
- package/node/Skeleton/Skeleton.js +20 -21
- package/node/Slide/Slide.js +39 -34
- package/node/Slider/Slider.js +299 -266
- package/node/Snackbar/Snackbar.js +52 -45
- package/node/SnackbarContent/SnackbarContent.js +13 -15
- package/node/SpeedDial/SpeedDial.js +59 -60
- package/node/SpeedDialAction/SpeedDialAction.js +34 -33
- package/node/SpeedDialIcon/SpeedDialIcon.js +10 -12
- package/node/Step/Step.js +18 -20
- package/node/StepButton/StepButton.js +16 -17
- package/node/StepConnector/StepConnector.js +10 -12
- package/node/StepContent/StepContent.js +18 -20
- package/node/StepIcon/StepIcon.js +22 -22
- package/node/StepLabel/StepLabel.js +33 -30
- package/node/Stepper/Stepper.js +21 -22
- package/node/SvgIcon/SvgIcon.js +21 -21
- package/node/SwipeableDrawer/SwipeArea.js +15 -16
- package/node/SwipeableDrawer/SwipeableDrawer.js +51 -44
- package/node/Switch/Switch.js +23 -20
- package/node/Tab/Tab.js +32 -33
- package/node/TabScrollButton/TabScrollButton.js +27 -21
- package/node/Table/Table.js +17 -17
- package/node/TableBody/TableBody.js +11 -12
- package/node/TableCell/TableCell.js +19 -19
- 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 +56 -52
- package/node/TablePagination/TablePaginationActions.js +54 -42
- package/node/TableRow/TableRow.js +13 -14
- package/node/TableSortLabel/TableSortLabel.js +15 -17
- package/node/Tabs/ScrollbarSize.js +7 -9
- package/node/Tabs/Tabs.js +52 -49
- package/node/TextField/TextField.js +137 -67
- package/node/ToggleButton/ToggleButton.js +30 -32
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
- package/node/Toolbar/Toolbar.js +13 -14
- package/node/Tooltip/Tooltip.js +77 -64
- package/node/Typography/Typography.js +37 -35
- package/node/Zoom/Zoom.js +31 -30
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +37 -37
- package/node/locale/index.js +75 -2
- package/node/styles/CssVarsProvider.js +25 -10
- 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 -29
- package/node/styles/experimental_extendTheme.js +9 -350
- package/node/styles/extendTheme.js +367 -0
- package/node/styles/index.js +10 -0
- package/node/styles/responsiveFontSizes.js +20 -11
- package/node/usePagination/usePagination.js +18 -20
- package/node/useScrollTrigger/useScrollTrigger.js +8 -11
- package/node/utils/createSvgIcon.js +4 -5
- package/node/utils/useSlot.js +41 -40
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +3 -2
- package/styles/CssVarsProvider.js +20 -9
- 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 +8 -344
- package/styles/{experimental_extendTheme.d.ts → extendTheme.d.ts} +1 -2
- package/styles/extendTheme.js +355 -0
- package/styles/index.d.ts +2 -2
- package/styles/index.js +2 -1
- package/styles/responsiveFontSizes.js +20 -11
- package/themeCssVarsAugmentation/index.d.ts +1 -1
- package/types/OverridableComponentAugmentation.d.ts +2 -2
- package/usePagination/usePagination.d.ts +1 -1
- package/usePagination/usePagination.js +18 -20
- package/useScrollTrigger/useScrollTrigger.js +8 -10
- package/utils/createSvgIcon.js +4 -5
- package/utils/useSlot.js +41 -40
- package/umd/material-ui.development.js +0 -54226
- package/umd/material-ui.production.min.js +0 -25
package/modern/Slider/Slider.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
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", "shiftStep", "size", "step", "scale", "slotProps", "slots", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -55,7 +52,7 @@ export const SliderRoot = styled('span', {
|
|
|
55
52
|
transition: 'none'
|
|
56
53
|
}
|
|
57
54
|
},
|
|
58
|
-
variants: [...Object.
|
|
55
|
+
variants: [...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
|
|
59
56
|
props: {
|
|
60
57
|
color
|
|
61
58
|
},
|
|
@@ -211,22 +208,26 @@ export const SliderTrack = styled('span', {
|
|
|
211
208
|
style: {
|
|
212
209
|
display: 'none'
|
|
213
210
|
}
|
|
214
|
-
}, ...Object.
|
|
211
|
+
}, ...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
|
|
215
212
|
props: {
|
|
216
213
|
color,
|
|
217
214
|
track: 'inverted'
|
|
218
215
|
},
|
|
219
|
-
style:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
216
|
+
style: {
|
|
217
|
+
...(theme.vars ? {
|
|
218
|
+
backgroundColor: theme.vars.palette.Slider[`${color}Track`],
|
|
219
|
+
borderColor: theme.vars.palette.Slider[`${color}Track`]
|
|
220
|
+
} : {
|
|
221
|
+
backgroundColor: lighten(theme.palette[color].main, 0.62),
|
|
222
|
+
borderColor: lighten(theme.palette[color].main, 0.62),
|
|
223
|
+
...theme.applyStyles('dark', {
|
|
224
|
+
backgroundColor: darken(theme.palette[color].main, 0.5)
|
|
225
|
+
}),
|
|
226
|
+
...theme.applyStyles('dark', {
|
|
227
|
+
borderColor: darken(theme.palette[color].main, 0.5)
|
|
228
|
+
})
|
|
229
|
+
})
|
|
230
|
+
}
|
|
230
231
|
}))]
|
|
231
232
|
};
|
|
232
233
|
});
|
|
@@ -306,25 +307,28 @@ export const SliderThumb = styled('span', {
|
|
|
306
307
|
left: '50%',
|
|
307
308
|
transform: 'translate(-50%, 50%)'
|
|
308
309
|
}
|
|
309
|
-
}, ...Object.
|
|
310
|
+
}, ...Object.entries(theme.palette).filter(([, palette]) => palette && palette.main).map(([color]) => ({
|
|
310
311
|
props: {
|
|
311
312
|
color
|
|
312
313
|
},
|
|
313
314
|
style: {
|
|
314
|
-
[`&:hover, &.${sliderClasses.focusVisible}`]:
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
315
|
+
[`&:hover, &.${sliderClasses.focusVisible}`]: {
|
|
316
|
+
...(theme.vars ? {
|
|
317
|
+
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
318
|
+
} : {
|
|
319
|
+
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
|
|
320
|
+
}),
|
|
319
321
|
'@media (hover: none)': {
|
|
320
322
|
boxShadow: 'none'
|
|
321
323
|
}
|
|
322
|
-
}
|
|
323
|
-
[`&.${sliderClasses.active}`]:
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
324
|
+
},
|
|
325
|
+
[`&.${sliderClasses.active}`]: {
|
|
326
|
+
...(theme.vars ? {
|
|
327
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
328
|
+
} : {
|
|
329
|
+
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
330
|
+
})
|
|
331
|
+
}
|
|
328
332
|
}
|
|
329
333
|
}))]
|
|
330
334
|
}));
|
|
@@ -334,10 +338,10 @@ export const SliderValueLabel = styled(BaseSliderValueLabel, {
|
|
|
334
338
|
overridesResolver: (props, styles) => styles.valueLabel
|
|
335
339
|
})(({
|
|
336
340
|
theme
|
|
337
|
-
}) =>
|
|
341
|
+
}) => ({
|
|
338
342
|
zIndex: 1,
|
|
339
|
-
whiteSpace: 'nowrap'
|
|
340
|
-
|
|
343
|
+
whiteSpace: 'nowrap',
|
|
344
|
+
...theme.typography.body2,
|
|
341
345
|
fontWeight: 500,
|
|
342
346
|
transition: theme.transitions.create(['transform'], {
|
|
343
347
|
duration: theme.transitions.duration.shortest
|
|
@@ -464,7 +468,8 @@ export const SliderMarkLabel = styled('span', {
|
|
|
464
468
|
overridesResolver: (props, styles) => styles.markLabel
|
|
465
469
|
})(({
|
|
466
470
|
theme
|
|
467
|
-
}) =>
|
|
471
|
+
}) => ({
|
|
472
|
+
...theme.typography.body2,
|
|
468
473
|
color: (theme.vars || theme).palette.text.secondary,
|
|
469
474
|
position: 'absolute',
|
|
470
475
|
whiteSpace: 'nowrap',
|
|
@@ -536,36 +541,42 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
536
541
|
});
|
|
537
542
|
const isRtl = useRtl();
|
|
538
543
|
const {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
544
|
+
'aria-label': ariaLabel,
|
|
545
|
+
'aria-valuetext': ariaValuetext,
|
|
546
|
+
'aria-labelledby': ariaLabelledby,
|
|
547
|
+
// eslint-disable-next-line react/prop-types
|
|
548
|
+
component = 'span',
|
|
549
|
+
components = {},
|
|
550
|
+
componentsProps = {},
|
|
551
|
+
color = 'primary',
|
|
552
|
+
classes: classesProp,
|
|
553
|
+
className,
|
|
554
|
+
disableSwap = false,
|
|
555
|
+
disabled = false,
|
|
556
|
+
getAriaLabel,
|
|
557
|
+
getAriaValueText,
|
|
558
|
+
marks: marksProp = false,
|
|
559
|
+
max = 100,
|
|
560
|
+
min = 0,
|
|
561
|
+
name,
|
|
562
|
+
onChange,
|
|
563
|
+
onChangeCommitted,
|
|
564
|
+
orientation = 'horizontal',
|
|
565
|
+
shiftStep = 10,
|
|
566
|
+
size = 'medium',
|
|
567
|
+
step = 1,
|
|
568
|
+
scale = Identity,
|
|
569
|
+
slotProps,
|
|
570
|
+
slots,
|
|
571
|
+
tabIndex,
|
|
572
|
+
track = 'normal',
|
|
573
|
+
value: valueProp,
|
|
574
|
+
valueLabelDisplay = 'off',
|
|
575
|
+
valueLabelFormat = Identity,
|
|
576
|
+
...other
|
|
577
|
+
} = props;
|
|
578
|
+
const ownerState = {
|
|
579
|
+
...props,
|
|
569
580
|
isRtl,
|
|
570
581
|
max,
|
|
571
582
|
min,
|
|
@@ -582,7 +593,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
582
593
|
track,
|
|
583
594
|
valueLabelDisplay,
|
|
584
595
|
valueLabelFormat
|
|
585
|
-
}
|
|
596
|
+
};
|
|
586
597
|
const {
|
|
587
598
|
axisProps,
|
|
588
599
|
getRootProps,
|
|
@@ -599,9 +610,10 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
599
610
|
trackOffset,
|
|
600
611
|
trackLeap,
|
|
601
612
|
getThumbStyle
|
|
602
|
-
} = useSlider(
|
|
613
|
+
} = useSlider({
|
|
614
|
+
...ownerState,
|
|
603
615
|
rootRef: ref
|
|
604
|
-
})
|
|
616
|
+
});
|
|
605
617
|
ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
606
618
|
ownerState.dragging = dragging;
|
|
607
619
|
ownerState.focusedThumbIndex = focusedThumbIndex;
|
|
@@ -629,10 +641,15 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
629
641
|
getSlotProps: getRootProps,
|
|
630
642
|
externalSlotProps: rootSlotProps,
|
|
631
643
|
externalForwardedProps: other,
|
|
632
|
-
additionalProps:
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
644
|
+
additionalProps: {
|
|
645
|
+
...(shouldSpreadAdditionalProps(RootSlot) && {
|
|
646
|
+
as: component
|
|
647
|
+
})
|
|
648
|
+
},
|
|
649
|
+
ownerState: {
|
|
650
|
+
...ownerState,
|
|
651
|
+
...rootSlotProps?.ownerState
|
|
652
|
+
},
|
|
636
653
|
className: [classes.root, className]
|
|
637
654
|
});
|
|
638
655
|
const railProps = useSlotProps({
|
|
@@ -645,22 +662,34 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
645
662
|
elementType: TrackSlot,
|
|
646
663
|
externalSlotProps: trackSlotProps,
|
|
647
664
|
additionalProps: {
|
|
648
|
-
style:
|
|
665
|
+
style: {
|
|
666
|
+
...axisProps[axis].offset(trackOffset),
|
|
667
|
+
...axisProps[axis].leap(trackLeap)
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
ownerState: {
|
|
671
|
+
...ownerState,
|
|
672
|
+
...trackSlotProps?.ownerState
|
|
649
673
|
},
|
|
650
|
-
ownerState: _extends({}, ownerState, trackSlotProps?.ownerState),
|
|
651
674
|
className: classes.track
|
|
652
675
|
});
|
|
653
676
|
const thumbProps = useSlotProps({
|
|
654
677
|
elementType: ThumbSlot,
|
|
655
678
|
getSlotProps: getThumbProps,
|
|
656
679
|
externalSlotProps: thumbSlotProps,
|
|
657
|
-
ownerState:
|
|
680
|
+
ownerState: {
|
|
681
|
+
...ownerState,
|
|
682
|
+
...thumbSlotProps?.ownerState
|
|
683
|
+
},
|
|
658
684
|
className: classes.thumb
|
|
659
685
|
});
|
|
660
686
|
const valueLabelProps = useSlotProps({
|
|
661
687
|
elementType: ValueLabelSlot,
|
|
662
688
|
externalSlotProps: valueLabelSlotProps,
|
|
663
|
-
ownerState:
|
|
689
|
+
ownerState: {
|
|
690
|
+
...ownerState,
|
|
691
|
+
...valueLabelSlotProps?.ownerState
|
|
692
|
+
},
|
|
664
693
|
className: classes.valueLabel
|
|
665
694
|
});
|
|
666
695
|
const markProps = useSlotProps({
|
|
@@ -681,8 +710,13 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
681
710
|
externalSlotProps: inputSlotProps,
|
|
682
711
|
ownerState
|
|
683
712
|
});
|
|
684
|
-
return /*#__PURE__*/_jsxs(RootSlot,
|
|
685
|
-
|
|
713
|
+
return /*#__PURE__*/_jsxs(RootSlot, {
|
|
714
|
+
...rootProps,
|
|
715
|
+
children: [/*#__PURE__*/_jsx(RailSlot, {
|
|
716
|
+
...railProps
|
|
717
|
+
}), /*#__PURE__*/_jsx(TrackSlot, {
|
|
718
|
+
...trackProps
|
|
719
|
+
}), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
686
720
|
const percent = valueToPercent(mark.value, min, max);
|
|
687
721
|
const style = axisProps[axis].offset(percent);
|
|
688
722
|
let markActive;
|
|
@@ -692,23 +726,31 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
692
726
|
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]);
|
|
693
727
|
}
|
|
694
728
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
695
|
-
children: [/*#__PURE__*/_jsx(MarkSlot,
|
|
696
|
-
"data-index": index
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
729
|
+
children: [/*#__PURE__*/_jsx(MarkSlot, {
|
|
730
|
+
"data-index": index,
|
|
731
|
+
...markProps,
|
|
732
|
+
...(!isHostComponent(MarkSlot) && {
|
|
733
|
+
markActive
|
|
734
|
+
}),
|
|
735
|
+
style: {
|
|
736
|
+
...style,
|
|
737
|
+
...markProps.style
|
|
738
|
+
},
|
|
701
739
|
className: clsx(markProps.className, markActive && classes.markActive)
|
|
702
|
-
})
|
|
740
|
+
}), mark.label != null ? /*#__PURE__*/_jsx(MarkLabelSlot, {
|
|
703
741
|
"aria-hidden": true,
|
|
704
|
-
"data-index": index
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
742
|
+
"data-index": index,
|
|
743
|
+
...markLabelProps,
|
|
744
|
+
...(!isHostComponent(MarkLabelSlot) && {
|
|
745
|
+
markLabelActive: markActive
|
|
746
|
+
}),
|
|
747
|
+
style: {
|
|
748
|
+
...style,
|
|
749
|
+
...markLabelProps.style
|
|
750
|
+
},
|
|
709
751
|
className: clsx(classes.markLabel, markLabelProps.className, markActive && classes.markLabelActive),
|
|
710
752
|
children: mark.label
|
|
711
|
-
})
|
|
753
|
+
}) : null]
|
|
712
754
|
}, index);
|
|
713
755
|
}), values.map((value, index) => {
|
|
714
756
|
const percent = valueToPercent(value, min, max);
|
|
@@ -717,32 +759,39 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
717
759
|
return (
|
|
718
760
|
/*#__PURE__*/
|
|
719
761
|
/* 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. */
|
|
720
|
-
_jsx(ValueLabelComponent,
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
762
|
+
_jsx(ValueLabelComponent, {
|
|
763
|
+
...(!isHostComponent(ValueLabelComponent) && {
|
|
764
|
+
valueLabelFormat,
|
|
765
|
+
valueLabelDisplay,
|
|
766
|
+
value: typeof valueLabelFormat === 'function' ? valueLabelFormat(scale(value), index) : valueLabelFormat,
|
|
767
|
+
index,
|
|
768
|
+
open: open === index || active === index || valueLabelDisplay === 'on',
|
|
769
|
+
disabled
|
|
770
|
+
}),
|
|
771
|
+
...valueLabelProps,
|
|
772
|
+
children: /*#__PURE__*/_jsx(ThumbSlot, {
|
|
773
|
+
"data-index": index,
|
|
774
|
+
...thumbProps,
|
|
731
775
|
className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
|
|
732
|
-
style:
|
|
733
|
-
|
|
776
|
+
style: {
|
|
777
|
+
...style,
|
|
778
|
+
...getThumbStyle(index),
|
|
779
|
+
...thumbProps.style
|
|
780
|
+
},
|
|
781
|
+
children: /*#__PURE__*/_jsx(InputSlot, {
|
|
734
782
|
"data-index": index,
|
|
735
783
|
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|
|
736
784
|
"aria-valuenow": scale(value),
|
|
737
785
|
"aria-labelledby": ariaLabelledby,
|
|
738
786
|
"aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
|
|
739
|
-
value: values[index]
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
787
|
+
value: values[index],
|
|
788
|
+
...inputSliderProps
|
|
789
|
+
})
|
|
790
|
+
})
|
|
791
|
+
}, index)
|
|
743
792
|
);
|
|
744
793
|
})]
|
|
745
|
-
})
|
|
794
|
+
});
|
|
746
795
|
});
|
|
747
796
|
process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */ = {
|
|
748
797
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["onEnter", "onExited"],
|
|
6
|
-
_excluded2 = ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
7
3
|
import * as React from 'react';
|
|
8
4
|
import PropTypes from 'prop-types';
|
|
9
5
|
import { useSlotProps } from '@mui/base/utils';
|
|
@@ -113,32 +109,39 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
113
109
|
exit: theme.transitions.duration.leavingScreen
|
|
114
110
|
};
|
|
115
111
|
const {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
112
|
+
action,
|
|
113
|
+
anchorOrigin: {
|
|
114
|
+
vertical,
|
|
115
|
+
horizontal
|
|
116
|
+
} = {
|
|
117
|
+
vertical: 'bottom',
|
|
118
|
+
horizontal: 'left'
|
|
119
|
+
},
|
|
120
|
+
autoHideDuration = null,
|
|
121
|
+
children,
|
|
122
|
+
className,
|
|
123
|
+
ClickAwayListenerProps,
|
|
124
|
+
ContentProps,
|
|
125
|
+
disableWindowBlurListener = false,
|
|
126
|
+
message,
|
|
127
|
+
onBlur,
|
|
128
|
+
onClose,
|
|
129
|
+
onFocus,
|
|
130
|
+
onMouseEnter,
|
|
131
|
+
onMouseLeave,
|
|
132
|
+
open,
|
|
133
|
+
resumeHideDuration,
|
|
134
|
+
TransitionComponent = Grow,
|
|
135
|
+
transitionDuration = defaultTransitionDuration,
|
|
136
|
+
TransitionProps: {
|
|
137
|
+
onEnter,
|
|
138
|
+
onExited,
|
|
139
|
+
...TransitionProps
|
|
140
|
+
} = {},
|
|
141
|
+
...other
|
|
142
|
+
} = props;
|
|
143
|
+
const ownerState = {
|
|
144
|
+
...props,
|
|
142
145
|
anchorOrigin: {
|
|
143
146
|
vertical,
|
|
144
147
|
horizontal
|
|
@@ -147,12 +150,14 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
147
150
|
disableWindowBlurListener,
|
|
148
151
|
TransitionComponent,
|
|
149
152
|
transitionDuration
|
|
150
|
-
}
|
|
153
|
+
};
|
|
151
154
|
const classes = useUtilityClasses(ownerState);
|
|
152
155
|
const {
|
|
153
156
|
getRootProps,
|
|
154
157
|
onClickAway
|
|
155
|
-
} = useSnackbar(
|
|
158
|
+
} = useSnackbar({
|
|
159
|
+
...ownerState
|
|
160
|
+
});
|
|
156
161
|
const [exited, setExited] = React.useState(true);
|
|
157
162
|
const rootProps = useSlotProps({
|
|
158
163
|
elementType: SnackbarRoot,
|
|
@@ -181,25 +186,27 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
181
186
|
if (!open && exited) {
|
|
182
187
|
return null;
|
|
183
188
|
}
|
|
184
|
-
return /*#__PURE__*/_jsx(ClickAwayListener,
|
|
185
|
-
onClickAway: onClickAway
|
|
186
|
-
|
|
187
|
-
children: /*#__PURE__*/_jsx(SnackbarRoot,
|
|
188
|
-
|
|
189
|
+
return /*#__PURE__*/_jsx(ClickAwayListener, {
|
|
190
|
+
onClickAway: onClickAway,
|
|
191
|
+
...ClickAwayListenerProps,
|
|
192
|
+
children: /*#__PURE__*/_jsx(SnackbarRoot, {
|
|
193
|
+
...rootProps,
|
|
194
|
+
children: /*#__PURE__*/_jsx(TransitionComponent, {
|
|
189
195
|
appear: true,
|
|
190
196
|
in: open,
|
|
191
197
|
timeout: transitionDuration,
|
|
192
198
|
direction: vertical === 'top' ? 'down' : 'up',
|
|
193
199
|
onEnter: handleEnter,
|
|
194
|
-
onExited: handleExited
|
|
195
|
-
|
|
196
|
-
children: children || /*#__PURE__*/_jsx(SnackbarContent,
|
|
200
|
+
onExited: handleExited,
|
|
201
|
+
...TransitionProps,
|
|
202
|
+
children: children || /*#__PURE__*/_jsx(SnackbarContent, {
|
|
197
203
|
message: message,
|
|
198
|
-
action: action
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
204
|
+
action: action,
|
|
205
|
+
...ContentProps
|
|
206
|
+
})
|
|
207
|
+
})
|
|
208
|
+
})
|
|
209
|
+
});
|
|
203
210
|
});
|
|
204
211
|
process.env.NODE_ENV !== "production" ? Snackbar.propTypes /* remove-proptypes */ = {
|
|
205
212
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["action", "className", "message", "role"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -33,7 +30,8 @@ const SnackbarContentRoot = styled(Paper, {
|
|
|
33
30
|
}) => {
|
|
34
31
|
const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
|
|
35
32
|
const backgroundColor = emphasize(theme.palette.background.default, emphasis);
|
|
36
|
-
return
|
|
33
|
+
return {
|
|
34
|
+
...theme.typography.body2,
|
|
37
35
|
color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),
|
|
38
36
|
backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
|
|
39
37
|
display: 'flex',
|
|
@@ -46,7 +44,7 @@ const SnackbarContentRoot = styled(Paper, {
|
|
|
46
44
|
flexGrow: 'initial',
|
|
47
45
|
minWidth: 288
|
|
48
46
|
}
|
|
49
|
-
}
|
|
47
|
+
};
|
|
50
48
|
});
|
|
51
49
|
const SnackbarContentMessage = styled('div', {
|
|
52
50
|
name: 'MuiSnackbarContent',
|
|
@@ -72,22 +70,22 @@ const SnackbarContent = /*#__PURE__*/React.forwardRef(function SnackbarContent(i
|
|
|
72
70
|
name: 'MuiSnackbarContent'
|
|
73
71
|
});
|
|
74
72
|
const {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
action,
|
|
74
|
+
className,
|
|
75
|
+
message,
|
|
76
|
+
role = 'alert',
|
|
77
|
+
...other
|
|
78
|
+
} = props;
|
|
81
79
|
const ownerState = props;
|
|
82
80
|
const classes = useUtilityClasses(ownerState);
|
|
83
|
-
return /*#__PURE__*/_jsxs(SnackbarContentRoot,
|
|
81
|
+
return /*#__PURE__*/_jsxs(SnackbarContentRoot, {
|
|
84
82
|
role: role,
|
|
85
83
|
square: true,
|
|
86
84
|
elevation: 6,
|
|
87
85
|
className: clsx(classes.root, className),
|
|
88
86
|
ownerState: ownerState,
|
|
89
|
-
ref: ref
|
|
90
|
-
|
|
87
|
+
ref: ref,
|
|
88
|
+
...other,
|
|
91
89
|
children: [/*#__PURE__*/_jsx(SnackbarContentMessage, {
|
|
92
90
|
className: classes.message,
|
|
93
91
|
ownerState: ownerState,
|
|
@@ -97,7 +95,7 @@ const SnackbarContent = /*#__PURE__*/React.forwardRef(function SnackbarContent(i
|
|
|
97
95
|
ownerState: ownerState,
|
|
98
96
|
children: action
|
|
99
97
|
}) : null]
|
|
100
|
-
})
|
|
98
|
+
});
|
|
101
99
|
});
|
|
102
100
|
process.env.NODE_ENV !== "production" ? SnackbarContent.propTypes /* remove-proptypes */ = {
|
|
103
101
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|