@mui/material 9.0.0-beta.0 → 9.0.0
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.d.mts +4 -4
- package/Accordion/Accordion.d.ts +4 -4
- package/AccordionActions/AccordionActions.d.mts +2 -2
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.d.mts +2 -2
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.mts +3 -3
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/AccordionSummary/AccordionSummary.js +1 -0
- package/AccordionSummary/AccordionSummary.mjs +1 -0
- package/Alert/Alert.d.mts +3 -3
- package/Alert/Alert.d.ts +3 -3
- package/AlertTitle/AlertTitle.d.mts +3 -3
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AppBar/AppBar.d.mts +3 -3
- package/AppBar/AppBar.d.ts +3 -3
- package/Autocomplete/Autocomplete.d.mts +2 -2
- package/Autocomplete/Autocomplete.d.ts +2 -2
- package/Avatar/Avatar.d.mts +2 -2
- package/Avatar/Avatar.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.d.mts +2 -2
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/Backdrop/Backdrop.d.mts +4 -4
- package/Backdrop/Backdrop.d.ts +4 -4
- package/Badge/Badge.d.mts +3 -3
- package/Badge/Badge.d.ts +3 -3
- package/BottomNavigation/BottomNavigation.d.mts +2 -2
- package/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/BottomNavigationAction/BottomNavigationAction.d.mts +3 -3
- package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
- package/BottomNavigationAction/BottomNavigationAction.js +1 -0
- package/BottomNavigationAction/BottomNavigationAction.mjs +1 -0
- package/Box/Box.d.mts +3 -3
- package/Box/Box.d.ts +3 -3
- package/Breadcrumbs/BreadcrumbCollapsed.js +5 -1
- package/Breadcrumbs/BreadcrumbCollapsed.mjs +5 -1
- package/Breadcrumbs/Breadcrumbs.d.mts +3 -3
- package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/Button/Button.d.mts +6 -6
- package/Button/Button.d.ts +6 -6
- package/Button/Button.js +1 -0
- package/Button/Button.mjs +1 -0
- package/ButtonBase/ButtonBase.d.mts +7 -2
- package/ButtonBase/ButtonBase.d.ts +7 -2
- package/ButtonBase/ButtonBase.js +84 -85
- package/ButtonBase/ButtonBase.mjs +84 -85
- package/ButtonBase/useButtonBase.d.mts +91 -0
- package/ButtonBase/useButtonBase.d.ts +91 -0
- package/ButtonBase/useButtonBase.js +174 -0
- package/ButtonBase/useButtonBase.mjs +167 -0
- package/ButtonGroup/ButtonGroup.d.mts +2 -2
- package/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/CHANGELOG.md +76 -0
- package/Card/Card.d.mts +3 -3
- package/Card/Card.d.ts +3 -3
- package/CardActionArea/CardActionArea.d.mts +3 -3
- package/CardActionArea/CardActionArea.d.ts +3 -3
- package/CardActionArea/CardActionArea.js +1 -0
- package/CardActionArea/CardActionArea.mjs +1 -0
- package/CardActions/CardActions.d.mts +2 -2
- package/CardActions/CardActions.d.ts +2 -2
- package/CardContent/CardContent.d.mts +2 -2
- package/CardContent/CardContent.d.ts +2 -2
- package/CardHeader/CardHeader.d.mts +2 -2
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardMedia/CardMedia.d.mts +2 -2
- package/CardMedia/CardMedia.d.ts +2 -2
- package/Checkbox/Checkbox.d.mts +4 -4
- package/Checkbox/Checkbox.d.ts +4 -4
- package/Chip/Chip.d.mts +9 -2
- package/Chip/Chip.d.ts +9 -2
- package/Chip/Chip.js +18 -1
- package/Chip/Chip.mjs +18 -1
- package/CircularProgress/CircularProgress.d.mts +2 -2
- package/CircularProgress/CircularProgress.d.ts +2 -2
- package/ClickAwayListener/ClickAwayListener.d.mts +3 -3
- package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/ClickAwayListener/ClickAwayListener.js +3 -3
- package/ClickAwayListener/ClickAwayListener.mjs +3 -3
- package/Collapse/Collapse.d.mts +5 -5
- package/Collapse/Collapse.d.ts +5 -5
- package/Collapse/Collapse.js +6 -18
- package/Collapse/Collapse.mjs +7 -19
- package/Container/Container.d.mts +2 -2
- package/Container/Container.d.ts +2 -2
- package/CssBaseline/CssBaseline.d.mts +2 -2
- package/CssBaseline/CssBaseline.d.ts +2 -2
- package/Dialog/Dialog.d.mts +11 -4
- package/Dialog/Dialog.d.ts +11 -4
- package/Dialog/Dialog.js +9 -1
- package/Dialog/Dialog.mjs +9 -1
- package/DialogActions/DialogActions.d.mts +2 -2
- package/DialogActions/DialogActions.d.ts +2 -2
- package/DialogContent/DialogContent.d.mts +2 -2
- package/DialogContent/DialogContent.d.ts +2 -2
- package/DialogContentText/DialogContentText.d.mts +3 -3
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogTitle/DialogTitle.d.mts +3 -3
- package/DialogTitle/DialogTitle.d.ts +3 -3
- package/Divider/Divider.d.mts +4 -4
- package/Divider/Divider.d.ts +4 -4
- package/Divider/Divider.js +0 -8
- package/Divider/Divider.mjs +0 -8
- package/Drawer/Drawer.d.mts +4 -4
- package/Drawer/Drawer.d.ts +4 -4
- package/Drawer/Drawer.js +1 -4
- package/Drawer/Drawer.mjs +1 -4
- package/Fab/Fab.d.mts +3 -3
- package/Fab/Fab.d.ts +3 -3
- package/Fab/Fab.js +1 -0
- package/Fab/Fab.mjs +1 -0
- package/Fade/Fade.d.mts +3 -3
- package/Fade/Fade.d.ts +3 -3
- package/Fade/Fade.js +28 -32
- package/Fade/Fade.mjs +29 -33
- package/FilledInput/FilledInput.d.mts +3 -3
- package/FilledInput/FilledInput.d.ts +3 -3
- package/FilledInput/FilledInput.js +1 -1
- package/FilledInput/FilledInput.mjs +1 -1
- package/FormControl/FormControl.d.mts +7 -7
- package/FormControl/FormControl.d.ts +7 -7
- package/FormControlLabel/FormControlLabel.d.mts +4 -4
- package/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/FormGroup/FormGroup.d.mts +3 -3
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormHelperText/FormHelperText.d.mts +3 -3
- package/FormHelperText/FormHelperText.d.ts +3 -3
- package/FormLabel/FormLabel.d.mts +5 -5
- package/FormLabel/FormLabel.d.ts +5 -5
- package/GlobalStyles/GlobalStyles.d.mts +2 -2
- package/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/Grid/Grid.d.mts +10 -5
- package/Grid/Grid.d.ts +10 -5
- package/Grid/Grid.js +10 -5
- package/Grid/Grid.mjs +10 -5
- package/Grid/gridClasses.js +1 -1
- package/Grid/gridClasses.mjs +1 -1
- package/Grow/Grow.d.mts +5 -5
- package/Grow/Grow.d.ts +5 -5
- package/Grow/Grow.js +30 -38
- package/Grow/Grow.mjs +31 -39
- package/Icon/Icon.d.mts +3 -3
- package/Icon/Icon.d.ts +3 -3
- package/IconButton/IconButton.d.mts +5 -5
- package/IconButton/IconButton.d.ts +5 -5
- package/IconButton/IconButton.js +1 -0
- package/IconButton/IconButton.mjs +1 -0
- package/ImageList/ImageList.d.mts +2 -2
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageListItem/ImageListItem.d.mts +2 -2
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItemBar/ImageListItemBar.d.mts +2 -2
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.d.mts +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.js +2 -2
- package/InitColorSchemeScript/InitColorSchemeScript.mjs +2 -2
- package/Input/Input.d.mts +3 -3
- package/Input/Input.d.ts +3 -3
- package/Input/Input.js +1 -1
- package/Input/Input.mjs +1 -1
- package/InputAdornment/InputAdornment.d.mts +2 -2
- package/InputAdornment/InputAdornment.d.ts +2 -2
- package/InputAdornment/inputAdornmentClasses.d.mts +2 -2
- package/InputAdornment/inputAdornmentClasses.d.ts +2 -2
- package/InputBase/InputBase.d.mts +2 -2
- package/InputBase/InputBase.d.ts +2 -2
- package/InputLabel/InputLabel.d.mts +4 -4
- package/InputLabel/InputLabel.d.ts +4 -4
- package/LinearProgress/LinearProgress.d.mts +2 -2
- package/LinearProgress/LinearProgress.d.ts +2 -2
- package/Link/Link.d.mts +4 -4
- package/Link/Link.d.ts +4 -4
- package/List/List.d.mts +4 -4
- package/List/List.d.ts +4 -4
- package/ListItem/ListItem.d.mts +3 -3
- package/ListItem/ListItem.d.ts +3 -3
- package/ListItem/ListItem.js +1 -2
- package/ListItem/ListItem.mjs +1 -2
- package/ListItemAvatar/ListItemAvatar.d.mts +2 -2
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemButton/ListItemButton.d.mts +4 -4
- package/ListItemButton/ListItemButton.d.ts +4 -4
- package/ListItemButton/ListItemButton.js +1 -0
- package/ListItemButton/ListItemButton.mjs +1 -0
- package/ListItemIcon/ListItemIcon.d.mts +3 -3
- package/ListItemIcon/ListItemIcon.d.ts +3 -3
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/ListItemIcon.mjs +1 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemText/ListItemText.d.mts +3 -3
- package/ListItemText/ListItemText.d.ts +3 -3
- package/ListSubheader/ListSubheader.d.mts +3 -3
- package/ListSubheader/ListSubheader.d.ts +3 -3
- package/ListSubheader/ListSubheader.js +0 -3
- package/ListSubheader/ListSubheader.mjs +0 -3
- package/Menu/Menu.d.mts +5 -5
- package/Menu/Menu.d.ts +5 -5
- package/Menu/Menu.js +15 -32
- package/Menu/Menu.mjs +15 -32
- package/MenuItem/MenuItem.d.mts +3 -3
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuItem/MenuItem.js +36 -26
- package/MenuItem/MenuItem.mjs +34 -26
- package/MenuList/MenuList.d.mts +4 -4
- package/MenuList/MenuList.d.ts +4 -4
- package/MenuList/MenuList.js +136 -101
- package/MenuList/MenuList.mjs +135 -100
- package/MenuList/MenuListContext.d.mts +11 -0
- package/MenuList/MenuListContext.d.ts +11 -0
- package/MenuList/MenuListContext.js +25 -0
- package/MenuList/MenuListContext.mjs +19 -0
- package/MobileStepper/MobileStepper.d.mts +3 -3
- package/MobileStepper/MobileStepper.d.ts +3 -3
- package/Modal/Modal.d.mts +7 -7
- package/Modal/Modal.d.ts +7 -7
- package/NativeSelect/NativeSelect.d.mts +3 -3
- package/NativeSelect/NativeSelect.d.ts +3 -3
- package/NoSsr/NoSsr.d.mts +2 -2
- package/NoSsr/NoSsr.d.ts +2 -2
- package/NoSsr/NoSsr.js +2 -2
- package/NoSsr/NoSsr.mjs +2 -2
- package/OutlinedInput/OutlinedInput.d.mts +4 -4
- package/OutlinedInput/OutlinedInput.d.ts +4 -4
- package/Pagination/Pagination.d.mts +2 -2
- package/Pagination/Pagination.d.ts +2 -2
- package/PaginationItem/PaginationItem.d.mts +8 -3
- package/PaginationItem/PaginationItem.d.ts +8 -3
- package/PaginationItem/PaginationItem.js +6 -0
- package/PaginationItem/PaginationItem.mjs +6 -0
- package/Paper/Paper.d.mts +4 -4
- package/Paper/Paper.d.ts +4 -4
- package/PigmentContainer/PigmentContainer.d.mts +2 -2
- package/PigmentContainer/PigmentContainer.d.ts +2 -2
- package/PigmentContainer/PigmentContainer.js +2 -2
- package/PigmentContainer/PigmentContainer.mjs +2 -2
- package/PigmentGrid/PigmentGrid.d.mts +3 -3
- package/PigmentGrid/PigmentGrid.d.ts +3 -3
- package/PigmentGrid/PigmentGrid.js +3 -3
- package/PigmentGrid/PigmentGrid.mjs +3 -3
- package/PigmentStack/PigmentStack.d.mts +2 -2
- package/PigmentStack/PigmentStack.d.ts +2 -2
- package/PigmentStack/PigmentStack.js +2 -2
- package/PigmentStack/PigmentStack.mjs +2 -2
- package/Popover/Popover.d.mts +5 -5
- package/Popover/Popover.d.ts +5 -5
- package/Popover/Popover.js +19 -7
- package/Popover/Popover.mjs +18 -6
- package/Popper/Popper.d.mts +4 -4
- package/Popper/Popper.d.ts +4 -4
- package/Popper/Popper.js +4 -4
- package/Popper/Popper.mjs +4 -4
- package/Portal/Portal.d.mts +2 -2
- package/Portal/Portal.d.ts +2 -2
- package/Portal/Portal.js +2 -2
- package/Portal/Portal.mjs +2 -2
- package/README.md +3 -3
- package/Radio/Radio.d.mts +3 -3
- package/Radio/Radio.d.ts +3 -3
- package/RadioGroup/RadioGroup.d.mts +3 -3
- package/RadioGroup/RadioGroup.d.ts +3 -3
- package/Rating/Rating.d.mts +2 -2
- package/Rating/Rating.d.ts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.mts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
- package/Select/Select.d.mts +3 -3
- package/Select/Select.d.ts +3 -3
- package/Skeleton/Skeleton.d.mts +2 -2
- package/Skeleton/Skeleton.d.ts +2 -2
- package/Slide/Slide.d.mts +4 -4
- package/Slide/Slide.d.ts +4 -4
- package/Slide/Slide.js +43 -42
- package/Slide/Slide.mjs +44 -44
- package/Slider/Slider.d.mts +4 -4
- package/Slider/Slider.d.ts +4 -4
- package/Slider/Slider.js +1 -1
- package/Slider/Slider.mjs +1 -1
- package/Slider/useSlider.d.mts +1 -1
- package/Slider/useSlider.d.ts +1 -1
- package/Slider/useSlider.js +235 -209
- package/Slider/useSlider.mjs +235 -209
- package/Slider/useSlider.types.d.mts +2 -2
- package/Slider/useSlider.types.d.ts +2 -2
- package/Snackbar/Snackbar.d.mts +3 -3
- package/Snackbar/Snackbar.d.ts +3 -3
- package/SnackbarContent/SnackbarContent.d.mts +3 -3
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.mts +3 -3
- package/SpeedDial/SpeedDial.d.ts +3 -3
- package/SpeedDialAction/SpeedDialAction.d.mts +3 -3
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.mts +2 -2
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/Stack/Stack.d.mts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/Step/Step.d.mts +2 -2
- package/Step/Step.d.ts +2 -2
- package/StepButton/StepButton.d.mts +3 -3
- package/StepButton/StepButton.d.ts +3 -3
- package/StepButton/StepButton.js +44 -14
- package/StepButton/StepButton.mjs +44 -14
- package/StepConnector/StepConnector.d.mts +2 -2
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepConnector/StepConnector.js +1 -2
- package/StepConnector/StepConnector.mjs +1 -2
- package/StepContent/StepContent.d.mts +3 -3
- package/StepContent/StepContent.d.ts +3 -3
- package/StepIcon/StepIcon.d.mts +3 -3
- package/StepIcon/StepIcon.d.ts +3 -3
- package/StepLabel/StepLabel.d.mts +2 -2
- package/StepLabel/StepLabel.d.ts +2 -2
- package/Stepper/Stepper.d.mts +2 -2
- package/Stepper/Stepper.d.ts +2 -2
- package/Stepper/Stepper.js +54 -22
- package/Stepper/Stepper.mjs +54 -22
- package/Stepper/StepperContext.d.mts +0 -5
- package/Stepper/StepperContext.d.ts +0 -5
- package/Stepper/StepperContext.js +1 -2
- package/Stepper/StepperContext.mjs +0 -1
- package/SvgIcon/SvgIcon.d.mts +3 -3
- package/SvgIcon/SvgIcon.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.mts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.js +0 -3
- package/SwipeableDrawer/SwipeableDrawer.mjs +0 -3
- package/Switch/Switch.d.mts +4 -4
- package/Switch/Switch.d.ts +4 -4
- package/Switch/Switch.js +4 -0
- package/Switch/Switch.mjs +4 -0
- package/Tab/Tab.d.mts +3 -3
- package/Tab/Tab.d.ts +3 -3
- package/Tab/Tab.js +17 -1
- package/Tab/Tab.mjs +17 -1
- package/TabScrollButton/TabScrollButton.d.mts +3 -3
- package/TabScrollButton/TabScrollButton.d.ts +3 -3
- package/TabScrollButton/TabScrollButton.js +6 -2
- package/TabScrollButton/TabScrollButton.mjs +6 -2
- package/Table/Table.d.mts +2 -2
- package/Table/Table.d.ts +2 -2
- package/TableBody/TableBody.d.mts +2 -2
- package/TableBody/TableBody.d.ts +2 -2
- package/TableCell/TableCell.d.mts +2 -2
- package/TableCell/TableCell.d.ts +2 -2
- package/TableContainer/TableContainer.d.mts +2 -2
- package/TableContainer/TableContainer.d.ts +2 -2
- package/TableFooter/TableFooter.d.mts +2 -2
- package/TableFooter/TableFooter.d.ts +2 -2
- package/TableHead/TableHead.d.mts +2 -2
- package/TableHead/TableHead.d.ts +2 -2
- package/TablePagination/TablePagination.d.mts +4 -4
- package/TablePagination/TablePagination.d.ts +4 -4
- package/TablePaginationActions/TablePaginationActions.d.mts +2 -2
- package/TablePaginationActions/TablePaginationActions.d.ts +2 -2
- package/TableRow/TableRow.d.mts +2 -2
- package/TableRow/TableRow.d.ts +2 -2
- package/TableSortLabel/TableSortLabel.d.mts +3 -3
- package/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/TableSortLabel/TableSortLabel.js +5 -3
- package/TableSortLabel/TableSortLabel.mjs +5 -3
- package/Tabs/Tabs.d.mts +2 -2
- package/Tabs/Tabs.d.ts +2 -2
- package/Tabs/Tabs.js +30 -21
- package/Tabs/Tabs.mjs +29 -20
- package/TextField/TextField.d.mts +10 -10
- package/TextField/TextField.d.ts +10 -10
- package/TextareaAutosize/TextareaAutosize.d.mts +2 -2
- package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
- package/TextareaAutosize/TextareaAutosize.js +2 -2
- package/TextareaAutosize/TextareaAutosize.mjs +2 -2
- package/ToggleButton/ToggleButton.d.mts +3 -3
- package/ToggleButton/ToggleButton.d.ts +3 -3
- package/ToggleButton/ToggleButton.js +1 -0
- package/ToggleButton/ToggleButton.mjs +1 -0
- package/ToggleButtonGroup/ToggleButtonGroup.d.mts +2 -2
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/Toolbar/Toolbar.d.mts +2 -2
- package/Toolbar/Toolbar.d.ts +2 -2
- package/Tooltip/Tooltip.d.mts +3 -3
- package/Tooltip/Tooltip.d.ts +3 -3
- package/Typography/Typography.d.mts +4 -4
- package/Typography/Typography.d.ts +4 -4
- package/Zoom/Zoom.d.mts +3 -3
- package/Zoom/Zoom.d.ts +3 -3
- package/Zoom/Zoom.js +24 -30
- package/Zoom/Zoom.mjs +25 -31
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internal/SwitchBase.d.mts +2 -2
- package/internal/SwitchBase.d.ts +2 -2
- package/internal/SwitchBase.js +5 -1
- package/internal/SwitchBase.mjs +5 -1
- package/locale/psAF.js +1 -1
- package/locale/psAF.mjs +1 -1
- package/package.json +51 -51
- package/styles/createThemeNoVars.js +1 -1
- package/styles/createThemeNoVars.mjs +1 -1
- package/styles/createThemeWithVars.js +9 -9
- package/styles/createThemeWithVars.mjs +9 -9
- package/transitions/utils.d.mts +7 -0
- package/transitions/utils.d.ts +7 -0
- package/transitions/utils.js +27 -0
- package/transitions/utils.mjs +25 -0
- package/useAutocomplete/useAutocomplete.js +8 -0
- package/useAutocomplete/useAutocomplete.mjs +8 -0
- package/utils/focusWithVisible.js +24 -0
- package/utils/focusWithVisible.mjs +19 -0
- package/utils/index.d.mts +0 -1
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -7
- package/utils/index.mjs +0 -1
- package/utils/useFocusableWhenDisabled.d.mts +30 -0
- package/utils/useFocusableWhenDisabled.d.ts +30 -0
- package/utils/useFocusableWhenDisabled.js +47 -0
- package/utils/useFocusableWhenDisabled.mjs +41 -0
- package/utils/useRovingTabIndex.d.mts +1 -2
- package/utils/useRovingTabIndex.d.ts +1 -2
- package/utils/useRovingTabIndex.js +25 -4
- package/utils/useRovingTabIndex.mjs +1 -2
- package/version/index.js +2 -2
- package/version/index.mjs +2 -2
package/Slide/Slide.d.ts
CHANGED
|
@@ -47,17 +47,17 @@ export interface SlideProps extends TransitionProps {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* The Slide transition is used by the [Drawer](https://
|
|
50
|
+
* The Slide transition is used by the [Drawer](https://mui.com/material-ui/react-drawer/) component.
|
|
51
51
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
52
52
|
*
|
|
53
53
|
* Demos:
|
|
54
54
|
*
|
|
55
|
-
* - [Dialog](https://
|
|
56
|
-
* - [Transitions](https://
|
|
55
|
+
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
56
|
+
* - [Transitions](https://mui.com/material-ui/transitions/)
|
|
57
57
|
*
|
|
58
58
|
* API:
|
|
59
59
|
*
|
|
60
|
-
* - [Slide API](https://
|
|
60
|
+
* - [Slide API](https://mui.com/material-ui/api/slide/)
|
|
61
61
|
* - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
|
|
62
62
|
*/
|
|
63
63
|
export default function Slide(props: SlideProps): React.JSX.Element;
|
package/Slide/Slide.js
CHANGED
|
@@ -22,19 +22,30 @@ var _zeroStyled = require("../zero-styled");
|
|
|
22
22
|
var _utils = require("../transitions/utils");
|
|
23
23
|
var _utils2 = require("../utils");
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
const hiddenStyles = {
|
|
26
|
+
visibility: 'hidden'
|
|
27
|
+
};
|
|
28
|
+
|
|
25
29
|
// Translate the node so it can't be seen on the screen.
|
|
26
30
|
// Later, we're going to translate the node back to its original location with `none`.
|
|
27
31
|
function getTranslateValue(direction, node, resolvedContainer) {
|
|
28
|
-
const rect = node.getBoundingClientRect();
|
|
29
32
|
const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();
|
|
30
33
|
const containerWindow = (0, _utils2.ownerWindow)(node);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
|
|
35
|
+
// Clear the inline transform and transition before reading layout and computed
|
|
36
|
+
// style so we compute from the element's natural position, not its previous
|
|
37
|
+
// off-screen translation. The transition must also be cleared, otherwise the
|
|
38
|
+
// browser may report an animated intermediate value from a still-running
|
|
39
|
+
// enter transition when reading getComputedStyle during exit.
|
|
40
|
+
const previousTransform = node.style.transform;
|
|
41
|
+
const previousTransition = node.style.transition;
|
|
42
|
+
node.style.transition = '';
|
|
43
|
+
node.style.transform = '';
|
|
44
|
+
const rect = node.getBoundingClientRect();
|
|
45
|
+
const computedStyle = containerWindow.getComputedStyle(node);
|
|
46
|
+
const transform = computedStyle.getPropertyValue('transform');
|
|
47
|
+
node.style.transform = previousTransform;
|
|
48
|
+
node.style.transition = previousTransition;
|
|
38
49
|
let offsetX = 0;
|
|
39
50
|
let offsetY = 0;
|
|
40
51
|
if (transform && transform !== 'none' && typeof transform === 'string') {
|
|
@@ -74,7 +85,6 @@ function setTranslateValue(direction, node, containerProp) {
|
|
|
74
85
|
const resolvedContainer = resolveContainer(containerProp);
|
|
75
86
|
const transform = getTranslateValue(direction, node, resolvedContainer);
|
|
76
87
|
if (transform) {
|
|
77
|
-
node.style.webkitTransform = transform;
|
|
78
88
|
node.style.transform = transform;
|
|
79
89
|
}
|
|
80
90
|
}
|
|
@@ -109,30 +119,18 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
109
119
|
onExiting,
|
|
110
120
|
style,
|
|
111
121
|
timeout = defaultTimeout,
|
|
112
|
-
// eslint-disable-next-line react/prop-types
|
|
113
|
-
TransitionComponent = _reactTransitionGroup.Transition,
|
|
114
122
|
...other
|
|
115
123
|
} = props;
|
|
116
124
|
const childrenRef = React.useRef(null);
|
|
117
125
|
const handleRef = (0, _useForkRef.default)((0, _getReactElementRef.default)(children), childrenRef, ref);
|
|
118
|
-
const
|
|
119
|
-
if (callback) {
|
|
120
|
-
// onEnterXxx and onExitXxx callbacks have a different arguments.length value.
|
|
121
|
-
if (isAppearing === undefined) {
|
|
122
|
-
callback(childrenRef.current);
|
|
123
|
-
} else {
|
|
124
|
-
callback(childrenRef.current, isAppearing);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
|
|
126
|
+
const handleEnter = (0, _utils.normalizedTransitionCallback)(childrenRef, (node, isAppearing) => {
|
|
129
127
|
setTranslateValue(direction, node, containerProp);
|
|
130
128
|
(0, _utils.reflow)(node);
|
|
131
129
|
if (onEnter) {
|
|
132
130
|
onEnter(node, isAppearing);
|
|
133
131
|
}
|
|
134
132
|
});
|
|
135
|
-
const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
|
|
133
|
+
const handleEntering = (0, _utils.normalizedTransitionCallback)(childrenRef, (node, isAppearing) => {
|
|
136
134
|
const transitionProps = (0, _utils.getTransitionProps)({
|
|
137
135
|
timeout,
|
|
138
136
|
style,
|
|
@@ -140,21 +138,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
140
138
|
}, {
|
|
141
139
|
mode: 'enter'
|
|
142
140
|
});
|
|
143
|
-
node.style.
|
|
144
|
-
...transitionProps
|
|
145
|
-
});
|
|
146
|
-
node.style.transition = theme.transitions.create('transform', {
|
|
147
|
-
...transitionProps
|
|
148
|
-
});
|
|
149
|
-
node.style.webkitTransform = 'none';
|
|
141
|
+
node.style.transition = theme.transitions.create('transform', transitionProps);
|
|
150
142
|
node.style.transform = 'none';
|
|
151
143
|
if (onEntering) {
|
|
152
144
|
onEntering(node, isAppearing);
|
|
153
145
|
}
|
|
154
146
|
});
|
|
155
|
-
const handleEntered = normalizedTransitionCallback(onEntered);
|
|
156
|
-
const handleExiting = normalizedTransitionCallback(onExiting);
|
|
157
|
-
const handleExit = normalizedTransitionCallback(node => {
|
|
147
|
+
const handleEntered = (0, _utils.normalizedTransitionCallback)(childrenRef, onEntered);
|
|
148
|
+
const handleExiting = (0, _utils.normalizedTransitionCallback)(childrenRef, onExiting);
|
|
149
|
+
const handleExit = (0, _utils.normalizedTransitionCallback)(childrenRef, node => {
|
|
158
150
|
const transitionProps = (0, _utils.getTransitionProps)({
|
|
159
151
|
timeout,
|
|
160
152
|
style,
|
|
@@ -162,16 +154,14 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
162
154
|
}, {
|
|
163
155
|
mode: 'exit'
|
|
164
156
|
});
|
|
165
|
-
node.style.webkitTransition = theme.transitions.create('-webkit-transform', transitionProps);
|
|
166
157
|
node.style.transition = theme.transitions.create('transform', transitionProps);
|
|
167
158
|
setTranslateValue(direction, node, containerProp);
|
|
168
159
|
if (onExit) {
|
|
169
160
|
onExit(node);
|
|
170
161
|
}
|
|
171
162
|
});
|
|
172
|
-
const handleExited = normalizedTransitionCallback(node => {
|
|
163
|
+
const handleExited = (0, _utils.normalizedTransitionCallback)(childrenRef, node => {
|
|
173
164
|
// No need for transitions when the component is hidden
|
|
174
|
-
node.style.webkitTransition = '';
|
|
175
165
|
node.style.transition = '';
|
|
176
166
|
if (onExited) {
|
|
177
167
|
onExited(node);
|
|
@@ -212,7 +202,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
212
202
|
updatePosition();
|
|
213
203
|
}
|
|
214
204
|
}, [inProp, updatePosition]);
|
|
215
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
205
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.Transition, {
|
|
216
206
|
nodeRef: childrenRef,
|
|
217
207
|
onEnter: handleEnter,
|
|
218
208
|
onEntered: handleEntered,
|
|
@@ -229,13 +219,24 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
229
219
|
ownerState,
|
|
230
220
|
...restChildProps
|
|
231
221
|
}) => {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
style
|
|
235
|
-
visibility:
|
|
222
|
+
let childStyle;
|
|
223
|
+
if (state === 'exited' && !inProp) {
|
|
224
|
+
childStyle = style || children.props.style ? {
|
|
225
|
+
visibility: 'hidden',
|
|
226
|
+
...style,
|
|
227
|
+
...children.props.style
|
|
228
|
+
} : hiddenStyles;
|
|
229
|
+
} else if (style && children.props.style) {
|
|
230
|
+
childStyle = {
|
|
236
231
|
...style,
|
|
237
232
|
...children.props.style
|
|
238
|
-
}
|
|
233
|
+
};
|
|
234
|
+
} else {
|
|
235
|
+
childStyle = style || children.props.style;
|
|
236
|
+
}
|
|
237
|
+
return /*#__PURE__*/React.cloneElement(children, {
|
|
238
|
+
ref: handleRef,
|
|
239
|
+
style: childStyle,
|
|
239
240
|
...restChildProps
|
|
240
241
|
});
|
|
241
242
|
}
|
package/Slide/Slide.mjs
CHANGED
|
@@ -11,23 +11,33 @@ import isLayoutSupported from "../utils/isLayoutSupported.mjs";
|
|
|
11
11
|
import debounce from "../utils/debounce.mjs";
|
|
12
12
|
import useForkRef from "../utils/useForkRef.mjs";
|
|
13
13
|
import { useTheme } from "../zero-styled/index.mjs";
|
|
14
|
-
import { reflow, getTransitionProps } from "../transitions/utils.mjs";
|
|
14
|
+
import { normalizedTransitionCallback, reflow, getTransitionProps } from "../transitions/utils.mjs";
|
|
15
15
|
import { ownerWindow } from "../utils/index.mjs";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
const hiddenStyles = {
|
|
18
|
+
visibility: 'hidden'
|
|
19
|
+
};
|
|
16
20
|
|
|
17
21
|
// Translate the node so it can't be seen on the screen.
|
|
18
22
|
// Later, we're going to translate the node back to its original location with `none`.
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
23
|
function getTranslateValue(direction, node, resolvedContainer) {
|
|
21
|
-
const rect = node.getBoundingClientRect();
|
|
22
24
|
const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();
|
|
23
25
|
const containerWindow = ownerWindow(node);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
|
|
27
|
+
// Clear the inline transform and transition before reading layout and computed
|
|
28
|
+
// style so we compute from the element's natural position, not its previous
|
|
29
|
+
// off-screen translation. The transition must also be cleared, otherwise the
|
|
30
|
+
// browser may report an animated intermediate value from a still-running
|
|
31
|
+
// enter transition when reading getComputedStyle during exit.
|
|
32
|
+
const previousTransform = node.style.transform;
|
|
33
|
+
const previousTransition = node.style.transition;
|
|
34
|
+
node.style.transition = '';
|
|
35
|
+
node.style.transform = '';
|
|
36
|
+
const rect = node.getBoundingClientRect();
|
|
37
|
+
const computedStyle = containerWindow.getComputedStyle(node);
|
|
38
|
+
const transform = computedStyle.getPropertyValue('transform');
|
|
39
|
+
node.style.transform = previousTransform;
|
|
40
|
+
node.style.transition = previousTransition;
|
|
31
41
|
let offsetX = 0;
|
|
32
42
|
let offsetY = 0;
|
|
33
43
|
if (transform && transform !== 'none' && typeof transform === 'string') {
|
|
@@ -67,7 +77,6 @@ export function setTranslateValue(direction, node, containerProp) {
|
|
|
67
77
|
const resolvedContainer = resolveContainer(containerProp);
|
|
68
78
|
const transform = getTranslateValue(direction, node, resolvedContainer);
|
|
69
79
|
if (transform) {
|
|
70
|
-
node.style.webkitTransform = transform;
|
|
71
80
|
node.style.transform = transform;
|
|
72
81
|
}
|
|
73
82
|
}
|
|
@@ -102,30 +111,18 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
102
111
|
onExiting,
|
|
103
112
|
style,
|
|
104
113
|
timeout = defaultTimeout,
|
|
105
|
-
// eslint-disable-next-line react/prop-types
|
|
106
|
-
TransitionComponent = Transition,
|
|
107
114
|
...other
|
|
108
115
|
} = props;
|
|
109
116
|
const childrenRef = React.useRef(null);
|
|
110
117
|
const handleRef = useForkRef(getReactElementRef(children), childrenRef, ref);
|
|
111
|
-
const
|
|
112
|
-
if (callback) {
|
|
113
|
-
// onEnterXxx and onExitXxx callbacks have a different arguments.length value.
|
|
114
|
-
if (isAppearing === undefined) {
|
|
115
|
-
callback(childrenRef.current);
|
|
116
|
-
} else {
|
|
117
|
-
callback(childrenRef.current, isAppearing);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
|
|
118
|
+
const handleEnter = normalizedTransitionCallback(childrenRef, (node, isAppearing) => {
|
|
122
119
|
setTranslateValue(direction, node, containerProp);
|
|
123
120
|
reflow(node);
|
|
124
121
|
if (onEnter) {
|
|
125
122
|
onEnter(node, isAppearing);
|
|
126
123
|
}
|
|
127
124
|
});
|
|
128
|
-
const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
|
|
125
|
+
const handleEntering = normalizedTransitionCallback(childrenRef, (node, isAppearing) => {
|
|
129
126
|
const transitionProps = getTransitionProps({
|
|
130
127
|
timeout,
|
|
131
128
|
style,
|
|
@@ -133,21 +130,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
133
130
|
}, {
|
|
134
131
|
mode: 'enter'
|
|
135
132
|
});
|
|
136
|
-
node.style.
|
|
137
|
-
...transitionProps
|
|
138
|
-
});
|
|
139
|
-
node.style.transition = theme.transitions.create('transform', {
|
|
140
|
-
...transitionProps
|
|
141
|
-
});
|
|
142
|
-
node.style.webkitTransform = 'none';
|
|
133
|
+
node.style.transition = theme.transitions.create('transform', transitionProps);
|
|
143
134
|
node.style.transform = 'none';
|
|
144
135
|
if (onEntering) {
|
|
145
136
|
onEntering(node, isAppearing);
|
|
146
137
|
}
|
|
147
138
|
});
|
|
148
|
-
const handleEntered = normalizedTransitionCallback(onEntered);
|
|
149
|
-
const handleExiting = normalizedTransitionCallback(onExiting);
|
|
150
|
-
const handleExit = normalizedTransitionCallback(node => {
|
|
139
|
+
const handleEntered = normalizedTransitionCallback(childrenRef, onEntered);
|
|
140
|
+
const handleExiting = normalizedTransitionCallback(childrenRef, onExiting);
|
|
141
|
+
const handleExit = normalizedTransitionCallback(childrenRef, node => {
|
|
151
142
|
const transitionProps = getTransitionProps({
|
|
152
143
|
timeout,
|
|
153
144
|
style,
|
|
@@ -155,16 +146,14 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
155
146
|
}, {
|
|
156
147
|
mode: 'exit'
|
|
157
148
|
});
|
|
158
|
-
node.style.webkitTransition = theme.transitions.create('-webkit-transform', transitionProps);
|
|
159
149
|
node.style.transition = theme.transitions.create('transform', transitionProps);
|
|
160
150
|
setTranslateValue(direction, node, containerProp);
|
|
161
151
|
if (onExit) {
|
|
162
152
|
onExit(node);
|
|
163
153
|
}
|
|
164
154
|
});
|
|
165
|
-
const handleExited = normalizedTransitionCallback(node => {
|
|
155
|
+
const handleExited = normalizedTransitionCallback(childrenRef, node => {
|
|
166
156
|
// No need for transitions when the component is hidden
|
|
167
|
-
node.style.webkitTransition = '';
|
|
168
157
|
node.style.transition = '';
|
|
169
158
|
if (onExited) {
|
|
170
159
|
onExited(node);
|
|
@@ -205,7 +194,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
205
194
|
updatePosition();
|
|
206
195
|
}
|
|
207
196
|
}, [inProp, updatePosition]);
|
|
208
|
-
return /*#__PURE__*/_jsx(
|
|
197
|
+
return /*#__PURE__*/_jsx(Transition, {
|
|
209
198
|
nodeRef: childrenRef,
|
|
210
199
|
onEnter: handleEnter,
|
|
211
200
|
onEntered: handleEntered,
|
|
@@ -222,13 +211,24 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
222
211
|
ownerState,
|
|
223
212
|
...restChildProps
|
|
224
213
|
}) => {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
style
|
|
228
|
-
visibility:
|
|
214
|
+
let childStyle;
|
|
215
|
+
if (state === 'exited' && !inProp) {
|
|
216
|
+
childStyle = style || children.props.style ? {
|
|
217
|
+
visibility: 'hidden',
|
|
218
|
+
...style,
|
|
219
|
+
...children.props.style
|
|
220
|
+
} : hiddenStyles;
|
|
221
|
+
} else if (style && children.props.style) {
|
|
222
|
+
childStyle = {
|
|
229
223
|
...style,
|
|
230
224
|
...children.props.style
|
|
231
|
-
}
|
|
225
|
+
};
|
|
226
|
+
} else {
|
|
227
|
+
childStyle = style || children.props.style;
|
|
228
|
+
}
|
|
229
|
+
return /*#__PURE__*/React.cloneElement(children, {
|
|
230
|
+
ref: handleRef,
|
|
231
|
+
style: childStyle,
|
|
232
232
|
...restChildProps
|
|
233
233
|
});
|
|
234
234
|
}
|
package/Slider/Slider.d.mts
CHANGED
|
@@ -92,7 +92,7 @@ export type SliderSlotsAndSlotProps = CreateSlotsAndSlotProps<SliderSlots, {
|
|
|
92
92
|
markLabel: SlotProps<'span', SliderMarkLabelSlotPropsOverrides, SliderOwnerState>;
|
|
93
93
|
/**
|
|
94
94
|
* Props forwarded to the value label slot.
|
|
95
|
-
* By default, the available props are based on the [SliderValueLabel](https://
|
|
95
|
+
* By default, the available props are based on the [SliderValueLabel](https://mui.com/material-ui/api/slider/) component.
|
|
96
96
|
*/
|
|
97
97
|
valueLabel: SlotComponentProps<typeof SliderValueLabelComponent, SliderValueLabelSlotPropsOverrides, SliderOwnerState>;
|
|
98
98
|
/**
|
|
@@ -197,7 +197,7 @@ export interface SliderOwnProps<Value extends number | readonly number[]> {
|
|
|
197
197
|
*/
|
|
198
198
|
onChange?: ((event: Event, value: Value, activeThumb: number) => void) | undefined;
|
|
199
199
|
/**
|
|
200
|
-
* Callback function that is fired when the
|
|
200
|
+
* Callback function that is fired when the pointer or touch interaction ends.
|
|
201
201
|
*
|
|
202
202
|
* @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
203
203
|
* @param {Value} value The new value.
|
|
@@ -312,11 +312,11 @@ export declare const SliderValueLabel: React.FC<SliderValueLabelProps>;
|
|
|
312
312
|
*
|
|
313
313
|
* Demos:
|
|
314
314
|
*
|
|
315
|
-
* - [Slider](https://
|
|
315
|
+
* - [Slider](https://mui.com/material-ui/react-slider/)
|
|
316
316
|
*
|
|
317
317
|
* API:
|
|
318
318
|
*
|
|
319
|
-
* - [Slider API](https://
|
|
319
|
+
* - [Slider API](https://mui.com/material-ui/api/slider/)
|
|
320
320
|
*/
|
|
321
321
|
declare const Slider: SliderType;
|
|
322
322
|
export type SliderProps<RootComponent extends React.ElementType = SliderTypeMap['defaultComponent'], AdditionalProps = {}, Value extends number | readonly number[] = number | number[]> = OverrideProps<SliderTypeMap<RootComponent, AdditionalProps, Value>, RootComponent> & {
|
package/Slider/Slider.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export type SliderSlotsAndSlotProps = CreateSlotsAndSlotProps<SliderSlots, {
|
|
|
92
92
|
markLabel: SlotProps<'span', SliderMarkLabelSlotPropsOverrides, SliderOwnerState>;
|
|
93
93
|
/**
|
|
94
94
|
* Props forwarded to the value label slot.
|
|
95
|
-
* By default, the available props are based on the [SliderValueLabel](https://
|
|
95
|
+
* By default, the available props are based on the [SliderValueLabel](https://mui.com/material-ui/api/slider/) component.
|
|
96
96
|
*/
|
|
97
97
|
valueLabel: SlotComponentProps<typeof SliderValueLabelComponent, SliderValueLabelSlotPropsOverrides, SliderOwnerState>;
|
|
98
98
|
/**
|
|
@@ -197,7 +197,7 @@ export interface SliderOwnProps<Value extends number | readonly number[]> {
|
|
|
197
197
|
*/
|
|
198
198
|
onChange?: ((event: Event, value: Value, activeThumb: number) => void) | undefined;
|
|
199
199
|
/**
|
|
200
|
-
* Callback function that is fired when the
|
|
200
|
+
* Callback function that is fired when the pointer or touch interaction ends.
|
|
201
201
|
*
|
|
202
202
|
* @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
203
203
|
* @param {Value} value The new value.
|
|
@@ -312,11 +312,11 @@ export declare const SliderValueLabel: React.FC<SliderValueLabelProps>;
|
|
|
312
312
|
*
|
|
313
313
|
* Demos:
|
|
314
314
|
*
|
|
315
|
-
* - [Slider](https://
|
|
315
|
+
* - [Slider](https://mui.com/material-ui/react-slider/)
|
|
316
316
|
*
|
|
317
317
|
* API:
|
|
318
318
|
*
|
|
319
|
-
* - [Slider API](https://
|
|
319
|
+
* - [Slider API](https://mui.com/material-ui/api/slider/)
|
|
320
320
|
*/
|
|
321
321
|
declare const Slider: SliderType;
|
|
322
322
|
export type SliderProps<RootComponent extends React.ElementType = SliderTypeMap['defaultComponent'], AdditionalProps = {}, Value extends number | readonly number[] = number | number[]> = OverrideProps<SliderTypeMap<RootComponent, AdditionalProps, Value>, RootComponent> & {
|
package/Slider/Slider.js
CHANGED
|
@@ -882,7 +882,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
|
|
|
882
882
|
*/
|
|
883
883
|
onChange: _propTypes.default.func,
|
|
884
884
|
/**
|
|
885
|
-
* Callback function that is fired when the
|
|
885
|
+
* Callback function that is fired when the pointer or touch interaction ends.
|
|
886
886
|
*
|
|
887
887
|
* @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
888
888
|
* @param {Value} value The new value.
|
package/Slider/Slider.mjs
CHANGED
|
@@ -876,7 +876,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
|
|
|
876
876
|
*/
|
|
877
877
|
onChange: PropTypes.func,
|
|
878
878
|
/**
|
|
879
|
-
* Callback function that is fired when the
|
|
879
|
+
* Callback function that is fired when the pointer or touch interaction ends.
|
|
880
880
|
*
|
|
881
881
|
* @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
882
882
|
* @param {Value} value The new value.
|
package/Slider/useSlider.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UseSliderParameters, UseSliderReturnValue } from "./useSlider.types.mjs";
|
|
2
2
|
export declare function valueToPercent(value: number, min: number, max: number): number;
|
|
3
|
-
export declare const Identity: (x:
|
|
3
|
+
export declare const Identity: (x: number) => number;
|
|
4
4
|
export declare function useSlider(parameters: UseSliderParameters): UseSliderReturnValue;
|
package/Slider/useSlider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UseSliderParameters, UseSliderReturnValue } from "./useSlider.types.js";
|
|
2
2
|
export declare function valueToPercent(value: number, min: number, max: number): number;
|
|
3
|
-
export declare const Identity: (x:
|
|
3
|
+
export declare const Identity: (x: number) => number;
|
|
4
4
|
export declare function useSlider(parameters: UseSliderParameters): UseSliderReturnValue;
|