@mui/material 6.0.0-dev.240424162023-9968b4889d → 6.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.ts +13 -4
- package/Accordion/Accordion.js +73 -54
- package/Accordion/accordionClasses.d.ts +2 -0
- package/Accordion/accordionClasses.js +1 -1
- package/Accordion/index.js +3 -3
- package/AccordionActions/AccordionActions.d.ts +1 -1
- package/AccordionActions/AccordionActions.js +15 -16
- package/AccordionActions/index.js +3 -3
- package/AccordionDetails/AccordionDetails.d.ts +1 -1
- package/AccordionDetails/AccordionDetails.js +14 -15
- package/AccordionDetails/index.js +3 -3
- package/AccordionSummary/AccordionSummary.js +27 -28
- package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/AccordionSummary/index.js +3 -3
- package/Alert/Alert.d.ts +15 -6
- package/Alert/Alert.js +74 -68
- package/Alert/alertClasses.d.ts +12 -12
- package/Alert/index.js +3 -3
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AlertTitle/AlertTitle.js +15 -16
- package/AlertTitle/index.js +3 -3
- package/AppBar/AppBar.js +45 -46
- package/AppBar/index.js +3 -3
- package/Autocomplete/Autocomplete.d.ts +81 -21
- package/Autocomplete/Autocomplete.js +261 -184
- package/Autocomplete/index.js +3 -3
- package/Avatar/Avatar.d.ts +0 -1
- package/Avatar/Avatar.js +53 -45
- package/Avatar/index.js +3 -3
- package/AvatarGroup/AvatarGroup.d.ts +51 -18
- package/AvatarGroup/AvatarGroup.js +68 -48
- package/AvatarGroup/index.js +3 -3
- package/Backdrop/Backdrop.d.ts +4 -7
- package/Backdrop/Backdrop.js +41 -41
- package/Backdrop/index.js +3 -3
- package/Badge/Badge.d.ts +3 -3
- package/Badge/Badge.js +43 -41
- package/Badge/index.js +3 -3
- package/Badge/useBadge.d.ts +13 -0
- package/Badge/useBadge.js +41 -0
- package/Badge/useBadge.types.d.ts +39 -0
- package/BottomNavigation/BottomNavigation.js +22 -23
- package/BottomNavigation/index.js +3 -3
- package/BottomNavigationAction/BottomNavigationAction.js +26 -28
- package/BottomNavigationAction/index.js +3 -3
- package/Box/Box.js +4 -4
- package/Box/index.js +3 -3
- package/Breadcrumbs/BreadcrumbCollapsed.js +41 -39
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/Breadcrumbs/Breadcrumbs.js +27 -29
- package/Breadcrumbs/index.js +3 -3
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js +48 -44
- package/Button/buttonClasses.d.ts +33 -33
- package/Button/index.js +3 -3
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/ButtonBase.js +69 -97
- package/ButtonBase/TouchRipple.js +14 -17
- package/ButtonBase/index.js +5 -5
- package/ButtonGroup/ButtonGroup.js +33 -34
- package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
- package/ButtonGroup/index.js +5 -5
- package/CHANGELOG.md +1367 -22
- package/Card/Card.js +16 -17
- package/Card/index.js +3 -3
- package/CardActionArea/CardActionArea.js +19 -21
- package/CardActionArea/index.js +3 -3
- package/CardActions/CardActions.d.ts +1 -1
- package/CardActions/CardActions.js +15 -16
- package/CardActions/index.js +3 -3
- package/CardContent/CardContent.js +15 -16
- package/CardContent/index.js +3 -3
- package/CardHeader/CardHeader.d.ts +1 -1
- package/CardHeader/CardHeader.js +41 -38
- package/CardHeader/index.js +3 -3
- package/CardMedia/CardMedia.js +25 -26
- package/CardMedia/index.js +3 -3
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.js +43 -37
- package/Checkbox/index.js +3 -3
- package/Chip/Chip.d.ts +3 -3
- package/Chip/Chip.js +50 -50
- package/Chip/chipClasses.d.ts +28 -26
- package/Chip/chipClasses.js +1 -1
- package/Chip/index.js +3 -3
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +34 -32
- package/CircularProgress/circularProgressClasses.d.ts +6 -2
- package/CircularProgress/index.js +3 -3
- package/ClickAwayListener/ClickAwayListener.d.ts +47 -0
- package/ClickAwayListener/ClickAwayListener.js +177 -0
- package/ClickAwayListener/index.d.ts +2 -2
- package/ClickAwayListener/index.js +1 -1
- package/Collapse/Collapse.d.ts +1 -1
- package/Collapse/Collapse.js +117 -84
- package/Collapse/index.js +3 -3
- package/Container/Container.js +3 -3
- package/Container/index.js +3 -3
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/CssBaseline/CssBaseline.js +84 -23
- package/CssBaseline/index.js +1 -1
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +15 -0
- package/{Unstable_Grid2/Grid2.js → DefaultPropsProvider/DefaultPropsProvider.js} +15 -18
- package/DefaultPropsProvider/index.d.ts +1 -0
- package/DefaultPropsProvider/index.js +1 -0
- package/DefaultPropsProvider/package.json +6 -0
- package/Dialog/Dialog.d.ts +2 -2
- package/Dialog/Dialog.js +156 -115
- package/Dialog/index.js +3 -3
- package/DialogActions/DialogActions.d.ts +1 -1
- package/DialogActions/DialogActions.js +28 -25
- package/DialogActions/index.js +3 -3
- package/DialogContent/DialogContent.d.ts +1 -1
- package/DialogContent/DialogContent.js +41 -31
- package/DialogContent/index.js +3 -3
- package/DialogContentText/DialogContentText.js +20 -17
- package/DialogContentText/index.js +3 -3
- package/DialogTitle/DialogTitle.js +14 -16
- package/DialogTitle/index.js +3 -3
- package/Divider/Divider.d.ts +1 -1
- package/Divider/Divider.js +36 -32
- package/Divider/index.js +3 -3
- package/Drawer/Drawer.d.ts +1 -1
- package/Drawer/Drawer.js +134 -92
- package/Drawer/index.js +3 -3
- package/Fab/Fab.js +38 -34
- package/Fab/index.js +3 -3
- package/Fade/Fade.d.ts +2 -2
- package/Fade/Fade.js +36 -34
- package/Fade/index.js +1 -1
- package/FilledInput/FilledInput.d.ts +2 -1
- package/FilledInput/FilledInput.js +231 -141
- package/FilledInput/filledInputClasses.d.ts +1 -13
- package/FilledInput/filledInputClasses.js +5 -3
- package/FilledInput/index.js +3 -3
- package/FormControl/FormControl.js +35 -33
- package/FormControl/index.js +4 -4
- package/FormControl/useFormControl.js +1 -1
- package/FormControlLabel/FormControlLabel.d.ts +23 -16
- package/FormControlLabel/FormControlLabel.js +64 -41
- package/FormControlLabel/index.js +3 -3
- package/FormGroup/FormGroup.d.ts +1 -1
- package/FormGroup/FormGroup.js +17 -18
- package/FormGroup/index.js +3 -3
- package/FormHelperText/FormHelperText.js +36 -27
- package/FormHelperText/index.js +3 -3
- package/FormLabel/FormLabel.js +59 -40
- package/FormLabel/index.js +4 -4
- package/GlobalStyles/GlobalStyles.d.ts +1 -1
- package/GlobalStyles/GlobalStyles.js +5 -5
- package/GlobalStyles/index.js +1 -1
- package/Grid/Grid.d.ts +3 -0
- package/Grid/Grid.js +71 -62
- package/Grid/index.js +3 -3
- package/Grid2/Grid2.d.ts +109 -0
- package/Grid2/Grid2.js +112 -0
- package/{Unstable_Grid2 → Grid2}/grid2Classes.d.ts +1 -1
- package/{Unstable_Grid2 → Grid2}/index.d.ts +1 -1
- package/Grid2/index.js +6 -0
- package/{Unstable_Grid2 → Grid2}/package.json +1 -1
- package/Grow/Grow.d.ts +2 -2
- package/Grow/Grow.js +39 -35
- package/Grow/index.js +1 -1
- package/Hidden/Hidden.d.ts +2 -0
- package/Hidden/Hidden.js +25 -24
- package/Hidden/HiddenCss.js +35 -33
- package/Hidden/HiddenJs.js +2 -2
- package/Hidden/hiddenCssClasses.d.ts +3 -0
- package/Hidden/index.js +1 -1
- package/Hidden/withWidth.js +22 -22
- package/Icon/Icon.js +83 -43
- package/Icon/index.js +3 -3
- package/IconButton/IconButton.js +78 -80
- package/IconButton/index.js +3 -3
- package/ImageList/ImageList.js +29 -37
- package/ImageList/index.js +3 -3
- package/ImageListItem/ImageListItem.js +25 -26
- package/ImageListItem/index.js +3 -3
- package/ImageListItemBar/ImageListItemBar.d.ts +1 -1
- package/ImageListItemBar/ImageListItemBar.js +30 -31
- package/ImageListItemBar/imageListItemBarClasses.d.ts +16 -4
- package/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/ImageListItemBar/index.js +3 -3
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +10 -0
- package/InitColorSchemeScript/InitColorSchemeScript.js +16 -0
- package/InitColorSchemeScript/index.d.ts +1 -0
- package/InitColorSchemeScript/index.js +1 -0
- package/InitColorSchemeScript/package.json +6 -0
- package/Input/Input.d.ts +2 -1
- package/Input/Input.js +109 -88
- package/Input/index.js +3 -3
- package/Input/inputClasses.js +5 -3
- package/InputAdornment/InputAdornment.js +62 -49
- package/InputAdornment/index.js +3 -3
- package/InputBase/InputBase.d.ts +3 -5
- package/InputBase/InputBase.js +187 -148
- package/InputBase/index.js +3 -3
- package/InputLabel/InputLabel.js +147 -80
- package/InputLabel/index.js +3 -3
- package/LinearProgress/LinearProgress.d.ts +1 -1
- package/LinearProgress/LinearProgress.js +35 -36
- package/LinearProgress/index.js +3 -3
- package/Link/Link.js +162 -91
- package/Link/getTextDecoration.d.ts +0 -7
- package/Link/getTextDecoration.js +2 -12
- package/Link/index.js +3 -3
- package/List/List.js +39 -32
- package/List/index.js +3 -3
- package/ListItem/ListItem.d.ts +5 -61
- package/ListItem/ListItem.js +75 -152
- package/ListItem/index.js +3 -3
- package/ListItem/listItemClasses.d.ts +0 -8
- package/ListItem/listItemClasses.js +1 -1
- package/ListItemAvatar/ListItemAvatar.d.ts +1 -1
- package/ListItemAvatar/ListItemAvatar.js +15 -16
- package/ListItemAvatar/index.js +3 -3
- package/ListItemButton/ListItemButton.js +35 -32
- package/ListItemButton/index.js +3 -3
- package/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/ListItemIcon/ListItemIcon.js +29 -24
- package/ListItemIcon/index.js +3 -3
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +5 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +17 -16
- package/ListItemSecondaryAction/index.js +3 -3
- package/ListItemText/ListItemText.d.ts +3 -1
- package/ListItemText/ListItemText.js +36 -34
- package/ListItemText/index.js +3 -3
- package/ListSubheader/ListSubheader.js +26 -24
- package/ListSubheader/index.js +3 -3
- package/Menu/Menu.d.ts +1 -1
- package/Menu/Menu.js +43 -47
- package/Menu/index.js +3 -3
- package/MenuItem/MenuItem.js +81 -58
- package/MenuItem/index.js +3 -3
- package/MenuList/MenuList.js +23 -26
- package/MenuList/index.js +1 -1
- package/MobileStepper/MobileStepper.d.ts +1 -1
- package/MobileStepper/MobileStepper.js +34 -34
- package/MobileStepper/index.js +3 -3
- package/Modal/Modal.d.ts +4 -6
- package/Modal/Modal.js +84 -66
- package/Modal/ModalManager.d.ts +25 -0
- package/Modal/ModalManager.js +211 -0
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +4 -4
- package/Modal/useModal.d.ts +13 -0
- package/Modal/useModal.js +195 -0
- package/Modal/useModal.types.d.ts +114 -0
- package/NativeSelect/NativeSelect.d.ts +2 -2
- package/NativeSelect/NativeSelect.js +33 -29
- package/NativeSelect/NativeSelectInput.js +93 -69
- package/NativeSelect/index.js +3 -3
- package/NoSsr/NoSsr.d.ts +25 -0
- package/NoSsr/NoSsr.js +73 -0
- package/NoSsr/NoSsr.types.d.ts +18 -0
- package/NoSsr/NoSsr.types.js +1 -0
- package/NoSsr/index.d.ts +3 -2
- package/NoSsr/index.js +1 -1
- package/OutlinedInput/NotchedOutline.js +74 -56
- package/OutlinedInput/OutlinedInput.d.ts +3 -1
- package/OutlinedInput/OutlinedInput.js +154 -92
- package/OutlinedInput/index.js +3 -3
- package/OutlinedInput/outlinedInputClasses.js +5 -3
- package/OverridableComponent.d.ts +2 -2
- package/Pagination/Pagination.d.ts +8 -4
- package/Pagination/Pagination.js +44 -40
- package/Pagination/index.js +3 -3
- package/PaginationItem/PaginationItem.d.ts +26 -14
- package/PaginationItem/PaginationItem.js +107 -61
- package/PaginationItem/index.js +3 -3
- package/PaginationItem/paginationItemClasses.d.ts +4 -4
- package/Paper/Paper.js +64 -38
- package/Paper/index.js +3 -3
- package/PigmentContainer/PigmentContainer.d.ts +55 -0
- package/PigmentContainer/PigmentContainer.js +98 -0
- package/PigmentContainer/index.d.ts +3 -0
- package/PigmentContainer/index.js +3 -0
- package/PigmentContainer/package.json +6 -0
- package/PigmentGrid/PigmentGrid.d.ts +108 -0
- package/PigmentGrid/PigmentGrid.js +149 -0
- package/PigmentGrid/index.d.ts +3 -0
- package/PigmentGrid/index.js +3 -0
- package/{useTouchRipple → PigmentGrid}/package.json +1 -1
- package/PigmentHidden/PigmentHidden.d.ts +97 -0
- package/PigmentHidden/PigmentHidden.js +278 -0
- package/PigmentHidden/index.d.ts +2 -0
- package/PigmentHidden/index.js +2 -0
- package/PigmentHidden/package.json +6 -0
- package/PigmentStack/PigmentStack.d.ts +51 -0
- package/PigmentStack/PigmentStack.js +81 -0
- package/PigmentStack/index.d.ts +3 -0
- package/PigmentStack/index.js +3 -0
- package/PigmentStack/package.json +6 -0
- package/Popover/Popover.d.ts +18 -23
- package/Popover/Popover.js +97 -96
- package/Popover/index.js +4 -4
- package/Popper/BasePopper.d.ts +7 -0
- package/Popper/BasePopper.js +370 -0
- package/Popper/BasePopper.types.d.ts +130 -0
- package/Popper/BasePopper.types.js +1 -0
- package/Popper/Popper.d.ts +5 -1
- package/Popper/Popper.js +36 -33
- package/Popper/index.d.ts +2 -1
- package/Popper/index.js +2 -1
- package/Popper/popperClasses.d.ts +8 -0
- package/Popper/popperClasses.js +7 -0
- package/Portal/Portal.d.ts +16 -0
- package/Portal/Portal.js +91 -0
- package/Portal/Portal.types.d.ts +23 -0
- package/Portal/Portal.types.js +1 -0
- package/Portal/index.d.ts +3 -2
- package/Portal/index.js +1 -1
- package/README.md +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Radio/Radio.js +38 -33
- package/Radio/RadioButtonIcon.js +10 -9
- package/Radio/index.js +3 -3
- package/RadioGroup/RadioGroup.d.ts +1 -1
- package/RadioGroup/RadioGroup.js +21 -24
- package/RadioGroup/index.js +4 -4
- package/RadioGroup/useRadioGroup.js +1 -1
- package/Rating/Rating.d.ts +2 -2
- package/Rating/Rating.js +73 -71
- package/Rating/index.js +3 -3
- package/ScopedCssBaseline/ScopedCssBaseline.js +45 -28
- package/ScopedCssBaseline/index.js +3 -3
- package/Select/Select.d.ts +2 -2
- package/Select/Select.js +77 -69
- package/Select/SelectInput.js +80 -73
- package/Select/index.js +3 -3
- package/Select/selectClasses.d.ts +2 -0
- package/Skeleton/Skeleton.js +133 -85
- package/Skeleton/index.js +3 -3
- package/Slide/Slide.d.ts +2 -2
- package/Slide/Slide.js +44 -39
- package/Slide/index.js +1 -1
- package/Slider/Slider.d.ts +5 -5
- package/Slider/Slider.js +182 -131
- package/Slider/SliderValueLabel.js +1 -1
- package/Slider/SliderValueLabel.types.d.ts +1 -2
- package/Slider/index.js +4 -4
- package/Slider/useSlider.d.ts +14 -0
- package/Slider/useSlider.js +647 -0
- package/Slider/useSlider.types.d.ts +228 -0
- package/Slider/useSlider.types.js +1 -0
- package/Snackbar/Snackbar.d.ts +4 -4
- package/Snackbar/Snackbar.js +127 -94
- package/Snackbar/index.js +3 -3
- package/Snackbar/useSnackbar.d.ts +14 -0
- package/Snackbar/useSnackbar.js +133 -0
- package/Snackbar/useSnackbar.types.d.ts +59 -0
- package/Snackbar/useSnackbar.types.js +1 -0
- package/SnackbarContent/SnackbarContent.d.ts +1 -1
- package/SnackbarContent/SnackbarContent.js +21 -22
- package/SnackbarContent/index.js +3 -3
- package/SpeedDial/SpeedDial.d.ts +27 -2
- package/SpeedDial/SpeedDial.js +162 -107
- package/SpeedDial/index.js +3 -3
- package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
- package/SpeedDialAction/SpeedDialAction.js +96 -68
- package/SpeedDialAction/index.js +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.ts +3 -1
- package/SpeedDialIcon/SpeedDialIcon.js +52 -32
- package/SpeedDialIcon/index.js +3 -3
- package/Stack/Stack.js +2 -2
- package/Stack/index.js +2 -2
- package/Step/Step.js +24 -26
- package/Step/index.js +5 -5
- package/StepButton/StepButton.js +25 -26
- package/StepButton/index.js +3 -3
- package/StepConnector/StepConnector.d.ts +2 -2
- package/StepConnector/StepConnector.js +20 -21
- package/StepConnector/index.js +3 -3
- package/StepConnector/stepConnectorClasses.d.ts +2 -2
- package/StepContent/StepContent.d.ts +2 -2
- package/StepContent/StepContent.js +28 -29
- package/StepContent/index.js +3 -3
- package/StepIcon/StepIcon.d.ts +1 -1
- package/StepIcon/StepIcon.js +34 -33
- package/StepIcon/index.js +3 -3
- package/StepLabel/StepLabel.d.ts +2 -4
- package/StepLabel/StepLabel.js +47 -46
- package/StepLabel/index.js +3 -3
- package/Stepper/Stepper.d.ts +1 -1
- package/Stepper/Stepper.js +31 -30
- package/Stepper/index.js +5 -5
- package/Stepper/stepperClasses.d.ts +2 -0
- package/Stepper/stepperClasses.js +1 -1
- package/SvgIcon/SvgIcon.js +99 -46
- package/SvgIcon/index.js +3 -3
- package/SwipeableDrawer/SwipeArea.js +58 -37
- package/SwipeableDrawer/SwipeableDrawer.js +62 -56
- package/SwipeableDrawer/index.js +1 -1
- package/Switch/Switch.d.ts +1 -1
- package/Switch/Switch.js +37 -33
- package/Switch/index.js +3 -3
- package/Tab/Tab.d.ts +1 -1
- package/Tab/Tab.js +174 -98
- package/Tab/index.js +3 -3
- package/Tab/tabClasses.d.ts +5 -1
- package/Tab/tabClasses.js +1 -1
- package/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/TabScrollButton/TabScrollButton.js +54 -36
- package/TabScrollButton/index.js +3 -3
- package/Table/Table.js +25 -24
- package/Table/index.js +3 -3
- package/TableBody/TableBody.js +16 -17
- package/TableBody/index.js +3 -3
- package/TableCell/TableCell.d.ts +1 -1
- package/TableCell/TableCell.js +29 -28
- package/TableCell/index.js +3 -3
- package/TableContainer/TableContainer.js +15 -16
- package/TableContainer/index.js +3 -3
- package/TableFooter/TableFooter.js +16 -17
- package/TableFooter/index.js +3 -3
- package/TableHead/TableHead.js +16 -17
- package/TableHead/index.js +3 -3
- package/TablePagination/TablePagination.js +77 -72
- package/TablePagination/TablePaginationActions.js +56 -43
- package/TablePagination/index.js +3 -3
- package/TableRow/TableRow.js +21 -21
- package/TableRow/index.js +3 -3
- package/TableSortLabel/TableSortLabel.js +28 -29
- package/TableSortLabel/index.js +3 -3
- package/TableSortLabel/tableSortLabelClasses.d.ts +10 -2
- package/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/Tabs/ScrollbarSize.js +9 -11
- package/Tabs/Tabs.d.ts +1 -1
- package/Tabs/Tabs.js +175 -127
- package/Tabs/index.js +3 -3
- package/TextField/TextField.d.ts +59 -4
- package/TextField/TextField.js +148 -78
- package/TextField/index.js +3 -3
- package/TextareaAutosize/TextareaAutosize.d.ts +14 -0
- package/TextareaAutosize/TextareaAutosize.js +222 -0
- package/TextareaAutosize/TextareaAutosize.types.d.ts +13 -0
- package/TextareaAutosize/TextareaAutosize.types.js +1 -0
- package/TextareaAutosize/index.d.ts +3 -2
- package/TextareaAutosize/index.js +1 -1
- package/ToggleButton/ToggleButton.js +42 -43
- package/ToggleButton/index.js +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +30 -31
- package/ToggleButtonGroup/index.js +3 -3
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +4 -2
- package/Toolbar/Toolbar.js +21 -25
- package/Toolbar/index.js +3 -3
- package/Tooltip/Tooltip.d.ts +5 -7
- package/Tooltip/Tooltip.js +283 -182
- package/Tooltip/index.js +3 -3
- package/Typography/Typography.d.ts +22 -2
- package/Typography/Typography.js +129 -63
- package/Typography/index.js +3 -3
- package/Typography/typographyClasses.d.ts +4 -1
- package/Unstable_TrapFocus/FocusTrap.d.ts +10 -0
- package/Unstable_TrapFocus/FocusTrap.js +329 -0
- package/Unstable_TrapFocus/FocusTrap.types.d.ts +51 -0
- package/Unstable_TrapFocus/FocusTrap.types.js +1 -0
- package/Unstable_TrapFocus/index.d.ts +2 -2
- package/Unstable_TrapFocus/index.js +1 -1
- package/Zoom/Zoom.d.ts +2 -2
- package/Zoom/Zoom.js +36 -34
- package/Zoom/index.js +1 -1
- package/colors/index.js +20 -20
- package/index.d.ts +6 -23
- package/index.js +276 -276
- package/internal/SwitchBase.js +80 -52
- package/internal/svg-icons/Add.js +1 -1
- package/internal/svg-icons/ArrowDownward.js +1 -1
- package/internal/svg-icons/ArrowDropDown.js +1 -1
- package/internal/svg-icons/Cancel.js +1 -1
- package/internal/svg-icons/CheckBox.js +1 -1
- package/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/internal/svg-icons/CheckCircle.js +1 -1
- package/internal/svg-icons/Close.js +1 -1
- package/internal/svg-icons/ErrorOutline.js +1 -1
- package/internal/svg-icons/FirstPage.js +1 -1
- package/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/internal/svg-icons/InfoOutlined.js +1 -1
- package/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/internal/svg-icons/LastPage.js +1 -1
- package/internal/svg-icons/MoreHoriz.js +1 -1
- package/internal/svg-icons/NavigateBefore.js +1 -1
- package/internal/svg-icons/NavigateNext.js +1 -1
- package/internal/svg-icons/Person.js +1 -1
- package/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/internal/svg-icons/Star.js +1 -1
- package/internal/svg-icons/StarBorder.js +1 -1
- package/internal/svg-icons/SuccessOutlined.js +1 -1
- package/internal/svg-icons/Warning.js +1 -1
- package/locale/index.d.ts +1 -0
- package/locale/index.js +74 -1
- package/modern/Accordion/Accordion.js +73 -54
- package/modern/Accordion/accordionClasses.js +1 -1
- package/modern/Accordion/index.js +3 -3
- package/modern/AccordionActions/AccordionActions.js +15 -16
- package/modern/AccordionActions/index.js +3 -3
- package/modern/AccordionDetails/AccordionDetails.js +14 -15
- package/modern/AccordionDetails/index.js +3 -3
- package/modern/AccordionSummary/AccordionSummary.js +27 -28
- package/modern/AccordionSummary/index.js +3 -3
- package/modern/Alert/Alert.js +74 -68
- package/modern/Alert/index.js +3 -3
- package/modern/AlertTitle/AlertTitle.js +15 -16
- package/modern/AlertTitle/index.js +3 -3
- package/modern/AppBar/AppBar.js +45 -46
- package/modern/AppBar/index.js +3 -3
- package/modern/Autocomplete/Autocomplete.js +261 -184
- package/modern/Autocomplete/index.js +3 -3
- package/modern/Avatar/Avatar.js +53 -45
- package/modern/Avatar/index.js +3 -3
- package/modern/AvatarGroup/AvatarGroup.js +68 -48
- package/modern/AvatarGroup/index.js +3 -3
- package/modern/Backdrop/Backdrop.js +41 -41
- package/modern/Backdrop/index.js +3 -3
- package/modern/Badge/Badge.js +43 -41
- package/modern/Badge/index.js +3 -3
- package/modern/Badge/useBadge.js +41 -0
- package/modern/Badge/useBadge.types.js +1 -0
- package/modern/BottomNavigation/BottomNavigation.js +22 -23
- package/modern/BottomNavigation/index.js +3 -3
- package/modern/BottomNavigationAction/BottomNavigationAction.js +26 -28
- package/modern/BottomNavigationAction/index.js +3 -3
- package/modern/Box/Box.js +4 -4
- package/modern/Box/index.js +3 -3
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +41 -39
- package/modern/Breadcrumbs/Breadcrumbs.js +27 -29
- package/modern/Breadcrumbs/index.js +3 -3
- package/modern/Button/Button.js +48 -44
- package/modern/Button/index.js +3 -3
- package/modern/ButtonBase/ButtonBase.js +69 -97
- package/modern/ButtonBase/TouchRipple.js +14 -17
- package/modern/ButtonBase/index.js +5 -5
- package/modern/ButtonGroup/ButtonGroup.js +33 -34
- package/modern/ButtonGroup/index.js +5 -5
- package/modern/Card/Card.js +16 -17
- package/modern/Card/index.js +3 -3
- package/modern/CardActionArea/CardActionArea.js +19 -21
- package/modern/CardActionArea/index.js +3 -3
- package/modern/CardActions/CardActions.js +15 -16
- package/modern/CardActions/index.js +3 -3
- package/modern/CardContent/CardContent.js +15 -16
- package/modern/CardContent/index.js +3 -3
- package/modern/CardHeader/CardHeader.js +41 -38
- package/modern/CardHeader/index.js +3 -3
- package/modern/CardMedia/CardMedia.js +25 -26
- package/modern/CardMedia/index.js +3 -3
- package/modern/Checkbox/Checkbox.js +43 -37
- package/modern/Checkbox/index.js +3 -3
- package/modern/Chip/Chip.js +50 -50
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/Chip/index.js +3 -3
- package/modern/CircularProgress/CircularProgress.js +34 -32
- package/modern/CircularProgress/index.js +3 -3
- package/modern/ClickAwayListener/ClickAwayListener.js +177 -0
- package/modern/ClickAwayListener/index.js +1 -1
- package/modern/Collapse/Collapse.js +117 -84
- package/modern/Collapse/index.js +3 -3
- package/modern/Container/Container.js +3 -3
- package/modern/Container/index.js +3 -3
- package/modern/CssBaseline/CssBaseline.js +84 -23
- package/modern/CssBaseline/index.js +1 -1
- package/modern/{Unstable_Grid2/Grid2.js → DefaultPropsProvider/DefaultPropsProvider.js} +15 -18
- package/modern/DefaultPropsProvider/index.js +1 -0
- package/modern/Dialog/Dialog.js +156 -115
- package/modern/Dialog/index.js +3 -3
- package/modern/DialogActions/DialogActions.js +28 -25
- package/modern/DialogActions/index.js +3 -3
- package/modern/DialogContent/DialogContent.js +41 -31
- package/modern/DialogContent/index.js +3 -3
- package/modern/DialogContentText/DialogContentText.js +20 -17
- package/modern/DialogContentText/index.js +3 -3
- package/modern/DialogTitle/DialogTitle.js +14 -16
- package/modern/DialogTitle/index.js +3 -3
- package/modern/Divider/Divider.js +36 -32
- package/modern/Divider/index.js +3 -3
- package/modern/Drawer/Drawer.js +134 -92
- package/modern/Drawer/index.js +3 -3
- package/modern/Fab/Fab.js +38 -34
- package/modern/Fab/index.js +3 -3
- package/modern/Fade/Fade.js +36 -34
- package/modern/Fade/index.js +1 -1
- package/modern/FilledInput/FilledInput.js +231 -141
- package/modern/FilledInput/filledInputClasses.js +5 -3
- package/modern/FilledInput/index.js +3 -3
- package/modern/FormControl/FormControl.js +35 -33
- package/modern/FormControl/index.js +4 -4
- package/modern/FormControl/useFormControl.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +64 -41
- package/modern/FormControlLabel/index.js +3 -3
- package/modern/FormGroup/FormGroup.js +17 -18
- package/modern/FormGroup/index.js +3 -3
- package/modern/FormHelperText/FormHelperText.js +36 -27
- package/modern/FormHelperText/index.js +3 -3
- package/modern/FormLabel/FormLabel.js +59 -40
- package/modern/FormLabel/index.js +4 -4
- package/modern/GlobalStyles/GlobalStyles.js +5 -5
- package/modern/GlobalStyles/index.js +1 -1
- package/modern/Grid/Grid.js +71 -62
- package/modern/Grid/index.js +3 -3
- package/modern/Grid2/Grid2.js +112 -0
- package/modern/Grid2/index.js +6 -0
- package/modern/Grow/Grow.js +39 -35
- package/modern/Grow/index.js +1 -1
- package/modern/Hidden/Hidden.js +25 -24
- package/modern/Hidden/HiddenCss.js +35 -33
- package/modern/Hidden/HiddenJs.js +2 -2
- package/modern/Hidden/index.js +1 -1
- package/modern/Hidden/withWidth.js +22 -22
- package/modern/Icon/Icon.js +83 -43
- package/modern/Icon/index.js +3 -3
- package/modern/IconButton/IconButton.js +78 -80
- package/modern/IconButton/index.js +3 -3
- package/modern/ImageList/ImageList.js +29 -37
- package/modern/ImageList/index.js +3 -3
- package/modern/ImageListItem/ImageListItem.js +25 -26
- package/modern/ImageListItem/index.js +3 -3
- package/modern/ImageListItemBar/ImageListItemBar.js +30 -31
- package/modern/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/modern/ImageListItemBar/index.js +3 -3
- package/modern/InitColorSchemeScript/InitColorSchemeScript.js +16 -0
- package/modern/InitColorSchemeScript/index.js +1 -0
- package/modern/Input/Input.js +109 -88
- package/modern/Input/index.js +3 -3
- package/modern/Input/inputClasses.js +5 -3
- package/modern/InputAdornment/InputAdornment.js +62 -49
- package/modern/InputAdornment/index.js +3 -3
- package/modern/InputBase/InputBase.js +187 -148
- package/modern/InputBase/index.js +3 -3
- package/modern/InputLabel/InputLabel.js +147 -80
- package/modern/InputLabel/index.js +3 -3
- package/modern/LinearProgress/LinearProgress.js +35 -36
- package/modern/LinearProgress/index.js +3 -3
- package/modern/Link/Link.js +162 -91
- package/modern/Link/getTextDecoration.js +2 -12
- package/modern/Link/index.js +3 -3
- package/modern/List/List.js +39 -32
- package/modern/List/index.js +3 -3
- package/modern/ListItem/ListItem.js +75 -152
- package/modern/ListItem/index.js +3 -3
- package/modern/ListItem/listItemClasses.js +1 -1
- package/modern/ListItemAvatar/ListItemAvatar.js +15 -16
- package/modern/ListItemAvatar/index.js +3 -3
- package/modern/ListItemButton/ListItemButton.js +35 -32
- package/modern/ListItemButton/index.js +3 -3
- package/modern/ListItemIcon/ListItemIcon.js +29 -24
- package/modern/ListItemIcon/index.js +3 -3
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +17 -16
- package/modern/ListItemSecondaryAction/index.js +3 -3
- package/modern/ListItemText/ListItemText.js +36 -34
- package/modern/ListItemText/index.js +3 -3
- package/modern/ListSubheader/ListSubheader.js +26 -24
- package/modern/ListSubheader/index.js +3 -3
- package/modern/Menu/Menu.js +43 -47
- package/modern/Menu/index.js +3 -3
- package/modern/MenuItem/MenuItem.js +81 -58
- package/modern/MenuItem/index.js +3 -3
- package/modern/MenuList/MenuList.js +23 -26
- package/modern/MenuList/index.js +1 -1
- package/modern/MobileStepper/MobileStepper.js +34 -34
- package/modern/MobileStepper/index.js +3 -3
- package/modern/Modal/Modal.js +84 -66
- package/modern/Modal/ModalManager.js +211 -0
- package/modern/Modal/index.js +4 -4
- package/modern/Modal/useModal.js +195 -0
- package/modern/Modal/useModal.types.js +1 -0
- package/modern/NativeSelect/NativeSelect.js +33 -29
- package/modern/NativeSelect/NativeSelectInput.js +93 -69
- package/modern/NativeSelect/index.js +3 -3
- package/modern/NoSsr/NoSsr.js +73 -0
- package/modern/NoSsr/NoSsr.types.js +1 -0
- package/modern/NoSsr/index.js +1 -1
- package/modern/OutlinedInput/NotchedOutline.js +74 -56
- package/modern/OutlinedInput/OutlinedInput.js +154 -92
- package/modern/OutlinedInput/index.js +3 -3
- package/modern/OutlinedInput/outlinedInputClasses.js +5 -3
- package/modern/Pagination/Pagination.js +44 -40
- package/modern/Pagination/index.js +3 -3
- package/modern/PaginationItem/PaginationItem.js +107 -61
- package/modern/PaginationItem/index.js +3 -3
- package/modern/Paper/Paper.js +64 -38
- package/modern/Paper/index.js +3 -3
- package/modern/PigmentContainer/PigmentContainer.js +98 -0
- package/modern/PigmentContainer/index.js +3 -0
- package/modern/PigmentGrid/PigmentGrid.js +149 -0
- package/modern/PigmentGrid/index.js +3 -0
- package/modern/PigmentHidden/PigmentHidden.js +278 -0
- package/modern/PigmentHidden/index.js +2 -0
- package/modern/PigmentStack/PigmentStack.js +81 -0
- package/modern/PigmentStack/index.js +3 -0
- package/modern/Popover/Popover.js +97 -96
- package/modern/Popover/index.js +4 -4
- package/modern/Popper/BasePopper.js +370 -0
- package/modern/Popper/BasePopper.types.js +1 -0
- package/modern/Popper/Popper.js +36 -33
- package/modern/Popper/index.js +2 -1
- package/modern/Popper/popperClasses.js +7 -0
- package/modern/Portal/Portal.js +91 -0
- package/modern/Portal/Portal.types.js +1 -0
- package/modern/Portal/index.js +1 -1
- package/modern/Radio/Radio.js +38 -33
- package/modern/Radio/RadioButtonIcon.js +10 -9
- package/modern/Radio/index.js +3 -3
- package/modern/RadioGroup/RadioGroup.js +21 -24
- package/modern/RadioGroup/index.js +4 -4
- package/modern/RadioGroup/useRadioGroup.js +1 -1
- package/modern/Rating/Rating.js +73 -71
- package/modern/Rating/index.js +3 -3
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +45 -28
- package/modern/ScopedCssBaseline/index.js +3 -3
- package/modern/Select/Select.js +77 -69
- package/modern/Select/SelectInput.js +80 -73
- package/modern/Select/index.js +3 -3
- package/modern/Skeleton/Skeleton.js +133 -85
- package/modern/Skeleton/index.js +3 -3
- package/modern/Slide/Slide.js +44 -39
- package/modern/Slide/index.js +1 -1
- package/modern/Slider/Slider.js +182 -131
- package/modern/Slider/SliderValueLabel.js +1 -1
- package/modern/Slider/index.js +4 -4
- package/modern/Slider/useSlider.js +647 -0
- package/modern/Slider/useSlider.types.js +1 -0
- package/modern/Snackbar/Snackbar.js +127 -94
- package/modern/Snackbar/index.js +3 -3
- package/modern/Snackbar/useSnackbar.js +133 -0
- package/modern/Snackbar/useSnackbar.types.js +1 -0
- package/modern/SnackbarContent/SnackbarContent.js +21 -22
- package/modern/SnackbarContent/index.js +3 -3
- package/modern/SpeedDial/SpeedDial.js +162 -107
- package/modern/SpeedDial/index.js +3 -3
- package/modern/SpeedDialAction/SpeedDialAction.js +96 -68
- package/modern/SpeedDialAction/index.js +3 -3
- package/modern/SpeedDialIcon/SpeedDialIcon.js +52 -32
- package/modern/SpeedDialIcon/index.js +3 -3
- package/modern/Stack/Stack.js +2 -2
- package/modern/Stack/index.js +2 -2
- package/modern/Step/Step.js +24 -26
- package/modern/Step/index.js +5 -5
- package/modern/StepButton/StepButton.js +25 -26
- package/modern/StepButton/index.js +3 -3
- package/modern/StepConnector/StepConnector.js +20 -21
- package/modern/StepConnector/index.js +3 -3
- package/modern/StepContent/StepContent.js +28 -29
- package/modern/StepContent/index.js +3 -3
- package/modern/StepIcon/StepIcon.js +34 -33
- package/modern/StepIcon/index.js +3 -3
- package/modern/StepLabel/StepLabel.js +47 -46
- package/modern/StepLabel/index.js +3 -3
- package/modern/Stepper/Stepper.js +31 -30
- package/modern/Stepper/index.js +5 -5
- package/modern/Stepper/stepperClasses.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +99 -46
- package/modern/SvgIcon/index.js +3 -3
- package/modern/SwipeableDrawer/SwipeArea.js +58 -37
- package/modern/SwipeableDrawer/SwipeableDrawer.js +62 -56
- package/modern/SwipeableDrawer/index.js +1 -1
- package/modern/Switch/Switch.js +37 -33
- package/modern/Switch/index.js +3 -3
- package/modern/Tab/Tab.js +174 -98
- package/modern/Tab/index.js +3 -3
- package/modern/Tab/tabClasses.js +1 -1
- package/modern/TabScrollButton/TabScrollButton.js +54 -36
- package/modern/TabScrollButton/index.js +3 -3
- package/modern/Table/Table.js +25 -24
- package/modern/Table/index.js +3 -3
- package/modern/TableBody/TableBody.js +16 -17
- package/modern/TableBody/index.js +3 -3
- package/modern/TableCell/TableCell.js +29 -28
- package/modern/TableCell/index.js +3 -3
- package/modern/TableContainer/TableContainer.js +15 -16
- package/modern/TableContainer/index.js +3 -3
- package/modern/TableFooter/TableFooter.js +16 -17
- package/modern/TableFooter/index.js +3 -3
- package/modern/TableHead/TableHead.js +16 -17
- package/modern/TableHead/index.js +3 -3
- package/modern/TablePagination/TablePagination.js +77 -72
- package/modern/TablePagination/TablePaginationActions.js +56 -43
- package/modern/TablePagination/index.js +3 -3
- package/modern/TableRow/TableRow.js +21 -21
- package/modern/TableRow/index.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +28 -29
- package/modern/TableSortLabel/index.js +3 -3
- package/modern/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/modern/Tabs/ScrollbarSize.js +9 -11
- package/modern/Tabs/Tabs.js +175 -127
- package/modern/Tabs/index.js +3 -3
- package/modern/TextField/TextField.js +148 -78
- package/modern/TextField/index.js +3 -3
- package/modern/TextareaAutosize/TextareaAutosize.js +222 -0
- package/modern/TextareaAutosize/TextareaAutosize.types.js +1 -0
- package/modern/TextareaAutosize/index.js +1 -1
- package/modern/ToggleButton/ToggleButton.js +42 -43
- package/modern/ToggleButton/index.js +3 -3
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +30 -31
- package/modern/ToggleButtonGroup/index.js +3 -3
- package/modern/Toolbar/Toolbar.js +21 -25
- package/modern/Toolbar/index.js +3 -3
- package/modern/Tooltip/Tooltip.js +283 -182
- package/modern/Tooltip/index.js +3 -3
- package/modern/Typography/Typography.js +129 -63
- package/modern/Typography/index.js +3 -3
- package/modern/Unstable_TrapFocus/FocusTrap.js +329 -0
- package/modern/Unstable_TrapFocus/FocusTrap.types.js +1 -0
- package/modern/Unstable_TrapFocus/index.js +1 -1
- package/modern/Zoom/Zoom.js +36 -34
- package/modern/Zoom/index.js +1 -1
- package/modern/colors/index.js +20 -20
- package/modern/index.js +276 -276
- package/modern/internal/SwitchBase.js +80 -52
- package/modern/internal/svg-icons/Add.js +1 -1
- package/modern/internal/svg-icons/ArrowDownward.js +1 -1
- package/modern/internal/svg-icons/ArrowDropDown.js +1 -1
- package/modern/internal/svg-icons/Cancel.js +1 -1
- package/modern/internal/svg-icons/CheckBox.js +1 -1
- package/modern/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/modern/internal/svg-icons/CheckCircle.js +1 -1
- package/modern/internal/svg-icons/Close.js +1 -1
- package/modern/internal/svg-icons/ErrorOutline.js +1 -1
- package/modern/internal/svg-icons/FirstPage.js +1 -1
- package/modern/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/modern/internal/svg-icons/InfoOutlined.js +1 -1
- package/modern/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/modern/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/modern/internal/svg-icons/LastPage.js +1 -1
- package/modern/internal/svg-icons/MoreHoriz.js +1 -1
- package/modern/internal/svg-icons/NavigateBefore.js +1 -1
- package/modern/internal/svg-icons/NavigateNext.js +1 -1
- package/modern/internal/svg-icons/Person.js +1 -1
- package/modern/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/modern/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/modern/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/modern/internal/svg-icons/Star.js +1 -1
- package/modern/internal/svg-icons/StarBorder.js +1 -1
- package/modern/internal/svg-icons/SuccessOutlined.js +1 -1
- package/modern/internal/svg-icons/Warning.js +1 -1
- package/modern/locale/index.js +74 -1
- package/modern/styles/ThemeProvider.js +25 -27
- package/modern/styles/ThemeProviderNoVars.js +17 -0
- package/modern/styles/ThemeProviderWithVars.js +89 -0
- package/modern/styles/adaptV4Theme.js +31 -31
- package/modern/styles/createColorScheme.js +41 -0
- package/modern/styles/createGetSelector.js +46 -8
- package/modern/styles/createMixins.js +4 -4
- package/modern/styles/createMuiStrictModeTheme.js +1 -1
- package/modern/styles/createPalette.js +24 -21
- package/modern/styles/createTheme.js +71 -83
- package/modern/styles/createThemeNoVars.js +94 -0
- package/modern/styles/createThemeWithVars.js +384 -0
- package/modern/styles/createTransitions.js +19 -16
- package/modern/styles/createTypography.js +31 -29
- package/modern/styles/defaultTheme.js +1 -1
- package/modern/styles/excludeVariablesFromRoot.js +1 -1
- package/modern/styles/experimental_extendTheme.js +8 -344
- package/modern/styles/index.js +27 -24
- package/modern/styles/responsiveFontSizes.js +21 -12
- package/modern/styles/rootShouldForwardProp.js +1 -1
- package/modern/styles/shouldSkipGeneratingVar.js +1 -1
- package/modern/styles/stringifyTheme.js +54 -0
- package/modern/styles/styled.js +5 -5
- package/modern/styles/useTheme.js +2 -2
- package/modern/styles/useThemeProps.js +2 -2
- package/modern/transitions/index.js +1 -1
- package/modern/useAutocomplete/index.js +1 -1
- package/modern/useAutocomplete/useAutocomplete.js +969 -2
- package/modern/useLazyRipple/index.js +3 -0
- package/modern/useLazyRipple/useLazyRipple.js +85 -0
- package/modern/usePagination/index.js +1 -1
- package/modern/usePagination/usePagination.js +20 -22
- package/modern/useScrollTrigger/index.js +1 -1
- package/modern/useScrollTrigger/useScrollTrigger.js +8 -10
- package/modern/utils/PolymorphicComponent.js +1 -0
- package/modern/utils/areArraysEqual.js +4 -0
- package/modern/utils/createSvgIcon.js +5 -6
- package/modern/utils/index.js +18 -18
- package/modern/utils/isHostComponent.js +7 -0
- package/modern/utils/memoTheme.js +24 -0
- package/modern/utils/omitEventHandlers.js +18 -0
- package/modern/utils/shouldSpreadAdditionalProps.js +1 -1
- package/modern/utils/useSlot.js +44 -41
- package/modern/version/index.js +7 -0
- package/modern/zero-styled/index.js +25 -6
- package/node/Accordion/Accordion.js +66 -47
- package/node/Accordion/accordionClasses.js +1 -1
- package/node/AccordionActions/AccordionActions.js +13 -14
- package/node/AccordionDetails/AccordionDetails.js +12 -13
- package/node/AccordionSummary/AccordionSummary.js +23 -24
- package/node/Alert/Alert.js +63 -57
- package/node/AlertTitle/AlertTitle.js +12 -13
- package/node/AppBar/AppBar.js +127 -137
- package/node/Autocomplete/Autocomplete.js +250 -177
- package/node/Avatar/Avatar.js +49 -41
- package/node/AvatarGroup/AvatarGroup.js +65 -46
- package/node/Backdrop/Backdrop.js +37 -37
- package/node/Badge/Badge.js +196 -201
- package/node/Badge/useBadge.js +46 -0
- package/node/BottomNavigation/BottomNavigation.js +20 -21
- package/node/BottomNavigationAction/BottomNavigationAction.js +22 -24
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +40 -38
- package/node/Breadcrumbs/Breadcrumbs.js +24 -26
- package/node/Button/Button.js +44 -41
- package/node/ButtonBase/ButtonBase.js +64 -92
- package/node/ButtonBase/TouchRipple.js +15 -18
- package/node/ButtonGroup/ButtonGroup.js +28 -29
- package/node/Card/Card.js +13 -14
- package/node/CardActionArea/CardActionArea.js +16 -18
- package/node/CardActions/CardActions.js +13 -14
- package/node/CardContent/CardContent.js +13 -14
- package/node/CardHeader/CardHeader.js +39 -36
- package/node/CardMedia/CardMedia.js +23 -24
- package/node/Checkbox/Checkbox.js +37 -32
- package/node/Chip/Chip.js +43 -43
- package/node/Chip/chipClasses.js +1 -1
- package/node/CircularProgress/CircularProgress.js +31 -29
- package/node/ClickAwayListener/ClickAwayListener.js +183 -0
- package/node/ClickAwayListener/index.js +1 -1
- package/node/Collapse/Collapse.js +117 -84
- package/node/CssBaseline/CssBaseline.js +85 -27
- package/node/DefaultPropsProvider/DefaultPropsProvider.js +38 -0
- package/node/DefaultPropsProvider/index.js +20 -0
- package/node/Dialog/Dialog.js +154 -113
- package/node/DialogActions/DialogActions.js +28 -25
- package/node/DialogContent/DialogContent.js +40 -30
- package/node/DialogContentText/DialogContentText.js +20 -17
- package/node/DialogTitle/DialogTitle.js +12 -14
- package/node/Divider/Divider.js +34 -30
- package/node/Drawer/Drawer.js +134 -92
- package/node/Fab/Fab.js +119 -118
- package/node/Fade/Fade.js +35 -33
- package/node/FilledInput/FilledInput.js +234 -146
- package/node/FilledInput/filledInputClasses.js +4 -2
- package/node/FormControl/FormControl.js +29 -27
- package/node/FormControlLabel/FormControlLabel.js +61 -39
- package/node/FormGroup/FormGroup.js +13 -14
- package/node/FormHelperText/FormHelperText.js +33 -24
- package/node/FormLabel/FormLabel.js +57 -38
- package/node/GlobalStyles/GlobalStyles.js +3 -3
- package/node/Grid/Grid.js +67 -60
- package/node/Grid2/Grid2.js +118 -0
- package/node/{Unstable_Grid2 → Grid2}/index.js +4 -6
- package/node/Grow/Grow.js +38 -34
- package/node/Hidden/Hidden.js +26 -26
- package/node/Hidden/HiddenCss.js +31 -29
- package/node/Hidden/withWidth.js +19 -19
- package/node/Icon/Icon.js +82 -42
- package/node/IconButton/IconButton.js +74 -76
- package/node/ImageList/ImageList.js +28 -36
- package/node/ImageListItem/ImageListItem.js +23 -24
- package/node/ImageListItemBar/ImageListItemBar.js +33 -34
- package/node/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/node/InitColorSchemeScript/InitColorSchemeScript.js +25 -0
- package/node/InitColorSchemeScript/index.js +13 -0
- package/node/Input/Input.js +112 -92
- package/node/Input/inputClasses.js +4 -2
- package/node/InputAdornment/InputAdornment.js +58 -45
- package/node/InputBase/InputBase.js +184 -146
- package/node/InputLabel/InputLabel.js +144 -77
- package/node/LinearProgress/LinearProgress.js +32 -33
- package/node/Link/Link.js +160 -89
- package/node/Link/getTextDecoration.js +5 -15
- package/node/List/List.js +38 -31
- package/node/ListItem/ListItem.js +72 -149
- package/node/ListItem/listItemClasses.js +1 -1
- package/node/ListItemAvatar/ListItemAvatar.js +14 -15
- package/node/ListItemButton/ListItemButton.js +32 -29
- package/node/ListItemIcon/ListItemIcon.js +28 -23
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +16 -15
- package/node/ListItemText/ListItemText.js +36 -34
- package/node/ListSubheader/ListSubheader.js +25 -23
- package/node/Menu/Menu.js +48 -53
- package/node/MenuItem/MenuItem.js +75 -52
- package/node/MenuList/MenuList.js +18 -21
- package/node/MobileStepper/MobileStepper.js +28 -28
- package/node/Modal/Modal.js +80 -63
- package/node/Modal/ModalManager.js +219 -0
- package/node/Modal/index.js +2 -2
- package/node/Modal/useModal.js +203 -0
- package/node/Modal/useModal.types.js +5 -0
- package/node/NativeSelect/NativeSelect.js +26 -22
- package/node/NativeSelect/NativeSelectInput.js +93 -71
- package/node/NoSsr/NoSsr.js +81 -0
- package/node/NoSsr/NoSsr.types.js +5 -0
- package/node/NoSsr/index.js +3 -2
- package/node/OutlinedInput/NotchedOutline.js +78 -60
- package/node/OutlinedInput/OutlinedInput.js +156 -94
- package/node/OutlinedInput/outlinedInputClasses.js +4 -2
- package/node/Pagination/Pagination.js +43 -39
- package/node/PaginationItem/PaginationItem.js +99 -53
- package/node/Paper/Paper.js +66 -43
- package/node/PigmentContainer/PigmentContainer.js +108 -0
- package/node/PigmentContainer/index.js +36 -0
- package/node/PigmentGrid/PigmentGrid.js +159 -0
- package/node/PigmentGrid/index.js +36 -0
- package/node/PigmentHidden/PigmentHidden.js +287 -0
- package/node/PigmentHidden/index.js +26 -0
- package/node/PigmentStack/PigmentStack.js +91 -0
- package/node/PigmentStack/index.js +36 -0
- package/node/Popover/Popover.js +89 -89
- package/node/Popper/BasePopper.js +378 -0
- package/node/Popper/BasePopper.types.js +5 -0
- package/node/Popper/Popper.js +38 -36
- package/node/Popper/index.js +14 -1
- package/node/Popper/popperClasses.js +15 -0
- package/node/Portal/Portal.js +99 -0
- package/node/Portal/Portal.types.js +5 -0
- package/node/Portal/index.js +3 -2
- package/node/Radio/Radio.js +34 -30
- package/node/Radio/RadioButtonIcon.js +8 -7
- package/node/RadioGroup/RadioGroup.js +15 -18
- package/node/Rating/Rating.js +74 -72
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +44 -28
- package/node/Select/Select.js +71 -63
- package/node/Select/SelectInput.js +75 -69
- package/node/Skeleton/Skeleton.js +134 -86
- package/node/Slide/Slide.js +43 -37
- package/node/Slider/Slider.js +342 -308
- package/node/Slider/useSlider.js +658 -0
- package/node/Slider/useSlider.types.js +5 -0
- package/node/Snackbar/Snackbar.js +126 -93
- package/node/Snackbar/useSnackbar.js +141 -0
- package/node/Snackbar/useSnackbar.types.js +5 -0
- package/node/SnackbarContent/SnackbarContent.js +22 -23
- package/node/SpeedDial/SpeedDial.js +159 -104
- package/node/SpeedDialAction/SpeedDialAction.js +95 -67
- package/node/SpeedDialIcon/SpeedDialIcon.js +51 -31
- package/node/Step/Step.js +20 -22
- package/node/StepButton/StepButton.js +18 -19
- package/node/StepConnector/StepConnector.js +15 -16
- package/node/StepContent/StepContent.js +23 -24
- package/node/StepIcon/StepIcon.js +29 -28
- package/node/StepLabel/StepLabel.js +42 -41
- package/node/Stepper/Stepper.js +27 -26
- package/node/Stepper/stepperClasses.js +1 -1
- package/node/SvgIcon/SvgIcon.js +106 -56
- package/node/SwipeableDrawer/SwipeArea.js +58 -37
- package/node/SwipeableDrawer/SwipeableDrawer.js +58 -52
- package/node/Switch/Switch.js +33 -29
- package/node/Tab/Tab.js +171 -95
- package/node/Tab/tabClasses.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +55 -38
- package/node/Table/Table.js +24 -23
- package/node/TableBody/TableBody.js +15 -16
- package/node/TableCell/TableCell.js +26 -25
- package/node/TableContainer/TableContainer.js +15 -16
- package/node/TableFooter/TableFooter.js +15 -16
- package/node/TableHead/TableHead.js +15 -16
- package/node/TablePagination/TablePagination.js +77 -73
- package/node/TablePagination/TablePaginationActions.js +62 -51
- package/node/TableRow/TableRow.js +20 -20
- package/node/TableSortLabel/TableSortLabel.js +26 -27
- package/node/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/node/Tabs/ScrollbarSize.js +7 -9
- package/node/Tabs/Tabs.js +180 -135
- package/node/TextField/TextField.js +141 -71
- package/node/TextareaAutosize/TextareaAutosize.js +230 -0
- package/node/TextareaAutosize/TextareaAutosize.types.js +5 -0
- package/node/TextareaAutosize/index.js +3 -2
- package/node/ToggleButton/ToggleButton.js +35 -36
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +24 -25
- package/node/Toolbar/Toolbar.js +21 -25
- package/node/Tooltip/Tooltip.js +289 -190
- package/node/Typography/Typography.js +128 -62
- package/node/Unstable_TrapFocus/FocusTrap.js +337 -0
- package/node/Unstable_TrapFocus/FocusTrap.types.js +5 -0
- package/node/Unstable_TrapFocus/index.js +3 -2
- package/node/Zoom/Zoom.js +35 -33
- package/node/index.js +27 -26
- package/node/internal/SwitchBase.js +77 -49
- package/node/locale/index.js +75 -2
- package/node/styles/ThemeProvider.js +24 -26
- package/node/styles/ThemeProviderNoVars.js +25 -0
- package/node/styles/ThemeProviderWithVars.js +100 -0
- package/node/styles/adaptV4Theme.js +31 -32
- package/node/styles/createColorScheme.js +50 -0
- package/node/styles/createGetSelector.js +45 -7
- package/node/styles/createMixins.js +4 -5
- package/node/styles/createPalette.js +16 -13
- package/node/styles/createTheme.js +76 -84
- package/node/styles/createThemeNoVars.js +104 -0
- package/node/styles/createThemeWithVars.js +395 -0
- package/node/styles/createTransitions.js +19 -17
- package/node/styles/createTypography.js +31 -29
- package/node/styles/excludeVariablesFromRoot.js +1 -1
- package/node/styles/experimental_extendTheme.js +9 -350
- package/node/styles/index.js +39 -6
- package/node/styles/responsiveFontSizes.js +20 -11
- package/node/styles/shouldSkipGeneratingVar.js +2 -3
- package/node/styles/stringifyTheme.js +61 -0
- package/node/transitions/utils.js +2 -3
- package/node/useAutocomplete/useAutocomplete.js +971 -18
- package/node/{useTouchRipple → useLazyRipple}/index.js +2 -2
- package/node/useLazyRipple/useLazyRipple.js +95 -0
- package/node/usePagination/usePagination.js +20 -22
- package/node/useScrollTrigger/useScrollTrigger.js +8 -11
- package/node/utils/PolymorphicComponent.js +5 -0
- package/node/utils/areArraysEqual.js +10 -0
- package/node/utils/createSvgIcon.js +4 -5
- package/node/utils/index.js +9 -9
- package/node/utils/isHostComponent.js +13 -0
- package/node/utils/memoTheme.js +30 -0
- package/node/utils/omitEventHandlers.js +24 -0
- package/node/utils/shouldSpreadAdditionalProps.js +3 -2
- package/node/utils/useSlot.js +46 -43
- package/node/version/index.js +13 -0
- package/node/zero-styled/index.js +33 -5
- package/package.json +30 -14
- package/styles/ThemeProvider.d.ts +52 -15
- package/styles/ThemeProvider.js +25 -27
- package/styles/ThemeProviderNoVars.d.ts +7 -0
- package/styles/ThemeProviderNoVars.js +17 -0
- package/styles/ThemeProviderWithVars.d.ts +49 -0
- package/styles/ThemeProviderWithVars.js +89 -0
- package/styles/adaptV4Theme.js +31 -31
- package/styles/createColorScheme.d.ts +9 -0
- package/styles/createColorScheme.js +41 -0
- package/styles/createGetSelector.d.ts +17 -6
- package/styles/createGetSelector.js +46 -8
- package/styles/createMixins.js +4 -4
- package/styles/createMuiStrictModeTheme.js +1 -1
- package/styles/createPalette.d.ts +17 -1
- package/styles/createPalette.js +24 -21
- package/styles/createTheme.d.ts +8 -56
- package/styles/createTheme.js +71 -83
- package/styles/createThemeNoVars.d.ts +100 -0
- package/styles/createThemeNoVars.js +94 -0
- package/styles/{experimental_extendTheme.d.ts → createThemeWithVars.d.ts} +25 -21
- package/styles/createThemeWithVars.js +384 -0
- package/styles/createTransitions.d.ts +2 -0
- package/styles/createTransitions.js +19 -16
- package/styles/createTypography.js +31 -29
- package/styles/defaultTheme.js +1 -1
- package/styles/excludeVariablesFromRoot.d.ts +1 -1
- package/styles/excludeVariablesFromRoot.js +1 -1
- package/styles/experimental_extendTheme.js +8 -344
- package/styles/index.d.ts +9 -3
- package/styles/index.js +27 -24
- package/styles/overrides.d.ts +2 -2
- package/styles/props.d.ts +1 -1
- package/styles/responsiveFontSizes.d.ts +3 -4
- package/styles/responsiveFontSizes.js +21 -12
- package/styles/rootShouldForwardProp.js +1 -1
- package/styles/shouldSkipGeneratingVar.js +1 -1
- package/styles/stringifyTheme.d.ts +20 -0
- package/styles/stringifyTheme.js +54 -0
- package/styles/styled.js +5 -5
- package/styles/useTheme.js +2 -2
- package/styles/useThemeProps.js +2 -2
- package/themeCssVarsAugmentation/index.d.ts +4 -22
- package/transitions/index.js +1 -1
- package/types/OverridableComponentAugmentation.d.ts +2 -2
- package/useAutocomplete/index.js +1 -1
- package/useAutocomplete/useAutocomplete.d.ts +468 -2
- package/useAutocomplete/useAutocomplete.js +969 -2
- package/useLazyRipple/index.d.ts +1 -0
- package/useLazyRipple/index.js +3 -0
- package/useLazyRipple/package.json +6 -0
- package/useLazyRipple/useLazyRipple.d.ts +32 -0
- package/useLazyRipple/useLazyRipple.js +85 -0
- package/usePagination/index.js +1 -1
- package/usePagination/usePagination.d.ts +1 -1
- package/usePagination/usePagination.js +20 -22
- package/useScrollTrigger/index.js +1 -1
- package/useScrollTrigger/useScrollTrigger.js +8 -10
- package/utils/PolymorphicComponent.d.ts +17 -0
- package/utils/PolymorphicComponent.js +1 -0
- package/utils/areArraysEqual.d.ts +3 -0
- package/utils/areArraysEqual.js +4 -0
- package/utils/createSvgIcon.js +5 -6
- package/utils/index.d.ts +3 -2
- package/utils/index.js +18 -18
- package/utils/isHostComponent.d.ts +6 -0
- package/utils/isHostComponent.js +7 -0
- package/utils/memoTheme.d.ts +13 -0
- package/utils/memoTheme.js +24 -0
- package/utils/omitEventHandlers.d.ts +9 -0
- package/utils/omitEventHandlers.js +18 -0
- package/utils/shouldSpreadAdditionalProps.js +1 -1
- package/utils/types.d.ts +2 -2
- package/utils/useSlot.js +44 -41
- package/version/index.d.ts +7 -0
- package/version/index.js +7 -0
- package/version/package.json +6 -0
- package/zero-styled/index.d.ts +10 -2
- package/zero-styled/index.js +25 -6
- package/Unstable_Grid2/Grid2.d.ts +0 -4
- package/Unstable_Grid2/Grid2Props.d.ts +0 -15
- package/Unstable_Grid2/index.js +0 -6
- package/modern/Unstable_Grid2/index.js +0 -6
- package/modern/styles/CssVarsProvider.js +0 -40
- package/modern/useMediaQuery/useMediaQueryTheme.js +0 -8
- package/modern/useTouchRipple/index.js +0 -3
- package/modern/useTouchRipple/useTouchRipple.js +0 -94
- package/modern/utils/scrollLeft.js +0 -1
- package/modern/utils/useIsFocusVisible.js +0 -4
- package/node/Unstable_Grid2/Grid2.js +0 -38
- package/node/styles/CssVarsProvider.js +0 -48
- package/node/useMediaQuery/useMediaQueryTheme.js +0 -13
- package/node/useTouchRipple/useTouchRipple.js +0 -105
- package/node/utils/scrollLeft.js +0 -18
- package/node/utils/useIsFocusVisible.js +0 -10
- package/styles/CssVarsProvider.d.ts +0 -20
- package/styles/CssVarsProvider.js +0 -40
- package/umd/material-ui.development.js +0 -52729
- package/umd/material-ui.production.min.js +0 -25
- package/useMediaQuery/useMediaQueryTheme.d.ts +0 -3
- package/useMediaQuery/useMediaQueryTheme.js +0 -8
- package/useTouchRipple/index.d.ts +0 -1
- package/useTouchRipple/index.js +0 -3
- package/useTouchRipple/useTouchRipple.d.ts +0 -28
- package/useTouchRipple/useTouchRipple.js +0 -94
- package/utils/scrollLeft.js +0 -1
- package/utils/useIsFocusVisible.d.ts +0 -3
- package/utils/useIsFocusVisible.js +0 -4
- /package/{Unstable_Grid2/Grid2Props.js → Badge/useBadge.types.js} +0 -0
- /package/{Unstable_Grid2 → Grid2}/grid2Classes.js +0 -0
- /package/{modern/Unstable_Grid2/Grid2Props.js → Modal/useModal.types.js} +0 -0
- /package/modern/{Unstable_Grid2 → Grid2}/grid2Classes.js +0 -0
- /package/node/{Unstable_Grid2/Grid2Props.js → Badge/useBadge.types.js} +0 -0
- /package/node/{Unstable_Grid2 → Grid2}/grid2Classes.js +0 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface UseSliderParameters {
|
|
3
|
+
/**
|
|
4
|
+
* The id of the element containing a label for the slider.
|
|
5
|
+
*/
|
|
6
|
+
'aria-labelledby'?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The default value. Use when the component is not controlled.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: number | ReadonlyArray<number>;
|
|
11
|
+
/**
|
|
12
|
+
* If `true`, the component is disabled.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* If `true`, the active thumb doesn't swap when moving pointer over a thumb while dragging another thumb.
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
disableSwap?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If `true` the Slider will be rendered right-to-left (with the lowest value on the right-hand side).
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
isRtl?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Marks indicate predetermined values to which the user can move the slider.
|
|
28
|
+
* If `true` the marks are spaced according the value of the `step` prop.
|
|
29
|
+
* If an array, it should contain objects with `value` and an optional `label` keys.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
marks?: boolean | ReadonlyArray<Mark>;
|
|
33
|
+
/**
|
|
34
|
+
* The maximum allowed value of the slider.
|
|
35
|
+
* Should not be equal to min.
|
|
36
|
+
* @default 100
|
|
37
|
+
*/
|
|
38
|
+
max?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The minimum allowed value of the slider.
|
|
41
|
+
* Should not be equal to max.
|
|
42
|
+
* @default 0
|
|
43
|
+
*/
|
|
44
|
+
min?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Name attribute of the hidden `input` element.
|
|
47
|
+
*/
|
|
48
|
+
name?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Callback function that is fired when the slider's value changed.
|
|
51
|
+
*
|
|
52
|
+
* @param {Event} event The event source of the callback.
|
|
53
|
+
* You can pull out the new value by accessing `event.target.value` (any).
|
|
54
|
+
* **Warning**: This is a generic event not a change event.
|
|
55
|
+
* @param {number | number[]} value The new value.
|
|
56
|
+
* @param {number} activeThumb Index of the currently moved thumb.
|
|
57
|
+
*/
|
|
58
|
+
onChange?: (event: Event, value: number | number[], activeThumb: number) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Callback function that is fired when the `mouseup` is triggered.
|
|
61
|
+
*
|
|
62
|
+
* @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
63
|
+
* @param {number | number[]} value The new value.
|
|
64
|
+
*/
|
|
65
|
+
onChangeCommitted?: (event: React.SyntheticEvent | Event, value: number | number[]) => void;
|
|
66
|
+
/**
|
|
67
|
+
* The component orientation.
|
|
68
|
+
* @default 'horizontal'
|
|
69
|
+
*/
|
|
70
|
+
orientation?: 'horizontal' | 'vertical';
|
|
71
|
+
/**
|
|
72
|
+
* The ref attached to the root of the Slider.
|
|
73
|
+
*/
|
|
74
|
+
rootRef?: React.Ref<Element>;
|
|
75
|
+
/**
|
|
76
|
+
* A transformation function, to change the scale of the slider.
|
|
77
|
+
* @param {any} x
|
|
78
|
+
* @returns {any}
|
|
79
|
+
* @default function Identity(x) {
|
|
80
|
+
* return x;
|
|
81
|
+
* }
|
|
82
|
+
*/
|
|
83
|
+
scale?: (value: number) => number;
|
|
84
|
+
/**
|
|
85
|
+
* The granularity with which the slider can step through values when using Page Up/Page Down or Shift + Arrow Up/Arrow Down.
|
|
86
|
+
* @default 10
|
|
87
|
+
*/
|
|
88
|
+
shiftStep?: number;
|
|
89
|
+
/**
|
|
90
|
+
* The granularity with which the slider can step through values. (A "discrete" slider.)
|
|
91
|
+
* The `min` prop serves as the origin for the valid values.
|
|
92
|
+
* We recommend (max - min) to be evenly divisible by the step.
|
|
93
|
+
*
|
|
94
|
+
* When step is `null`, the thumb can only be slid onto marks provided with the `marks` prop.
|
|
95
|
+
* @default 1
|
|
96
|
+
*/
|
|
97
|
+
step?: number | null;
|
|
98
|
+
/**
|
|
99
|
+
* Tab index attribute of the hidden `input` element.
|
|
100
|
+
*/
|
|
101
|
+
tabIndex?: number;
|
|
102
|
+
/**
|
|
103
|
+
* The value of the slider.
|
|
104
|
+
* For ranged sliders, provide an array with two values.
|
|
105
|
+
*/
|
|
106
|
+
value?: number | ReadonlyArray<number>;
|
|
107
|
+
}
|
|
108
|
+
export interface Mark {
|
|
109
|
+
value: number;
|
|
110
|
+
label?: React.ReactNode;
|
|
111
|
+
}
|
|
112
|
+
export type UseSliderRootSlotOwnProps = {
|
|
113
|
+
onMouseDown: React.MouseEventHandler;
|
|
114
|
+
ref: React.RefCallback<Element> | null;
|
|
115
|
+
};
|
|
116
|
+
export type UseSliderRootSlotProps<ExternalProps = {}> = Omit<ExternalProps, keyof UseSliderRootSlotOwnProps> & UseSliderRootSlotOwnProps;
|
|
117
|
+
export type UseSliderThumbSlotOwnProps = {
|
|
118
|
+
onMouseLeave: React.MouseEventHandler;
|
|
119
|
+
onMouseOver: React.MouseEventHandler;
|
|
120
|
+
};
|
|
121
|
+
export type UseSliderThumbSlotProps<ExternalProps = {}> = Omit<ExternalProps, keyof UseSliderThumbSlotOwnProps> & UseSliderThumbSlotOwnProps;
|
|
122
|
+
export type UseSliderHiddenInputOwnProps = {
|
|
123
|
+
'aria-labelledby'?: string;
|
|
124
|
+
'aria-orientation'?: React.AriaAttributes['aria-orientation'];
|
|
125
|
+
'aria-valuemax'?: React.AriaAttributes['aria-valuemax'];
|
|
126
|
+
'aria-valuemin'?: React.AriaAttributes['aria-valuemin'];
|
|
127
|
+
disabled: boolean;
|
|
128
|
+
name?: string;
|
|
129
|
+
onBlur: React.FocusEventHandler;
|
|
130
|
+
onChange: React.ChangeEventHandler;
|
|
131
|
+
onFocus: React.FocusEventHandler;
|
|
132
|
+
step?: number | 'any';
|
|
133
|
+
style: React.CSSProperties;
|
|
134
|
+
tabIndex?: number;
|
|
135
|
+
type?: React.InputHTMLAttributes<HTMLInputElement>['type'];
|
|
136
|
+
};
|
|
137
|
+
export type UseSliderHiddenInputProps<ExternalProps = {}> = Omit<ExternalProps, keyof UseSliderHiddenInputOwnProps> & UseSliderHiddenInputOwnProps;
|
|
138
|
+
export type Axis = 'horizontal' | 'vertical' | 'horizontal-reverse';
|
|
139
|
+
export interface AxisProps<T extends Axis> {
|
|
140
|
+
offset: (percent: number) => T extends 'horizontal' ? {
|
|
141
|
+
left: string;
|
|
142
|
+
} : T extends 'vertical' ? {
|
|
143
|
+
bottom: string;
|
|
144
|
+
} : T extends 'horizontal-reverse' ? {
|
|
145
|
+
right: string;
|
|
146
|
+
} : never;
|
|
147
|
+
leap: (percent: number) => T extends 'horizontal' | 'horizontal-reverse' ? {
|
|
148
|
+
width: string;
|
|
149
|
+
} : T extends 'vertical' ? {
|
|
150
|
+
height: string;
|
|
151
|
+
} : never;
|
|
152
|
+
}
|
|
153
|
+
export interface UseSliderReturnValue {
|
|
154
|
+
/**
|
|
155
|
+
* The active index of the slider.
|
|
156
|
+
*/
|
|
157
|
+
active: number;
|
|
158
|
+
/**
|
|
159
|
+
* The orientation of the slider.
|
|
160
|
+
*/
|
|
161
|
+
axis: Axis;
|
|
162
|
+
/**
|
|
163
|
+
* Returns the `offset` and `leap` methods to calculate the positioning styles based on the slider axis.
|
|
164
|
+
*/
|
|
165
|
+
axisProps: {
|
|
166
|
+
[key in Axis]: AxisProps<key>;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* If `true`, the slider is being dragged.
|
|
170
|
+
*/
|
|
171
|
+
dragging: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* The index of the thumb which is focused on the slider.
|
|
174
|
+
*/
|
|
175
|
+
focusedThumbIndex: number;
|
|
176
|
+
/**
|
|
177
|
+
* Resolver for the hidden input slot's props.
|
|
178
|
+
* @param externalProps props for the hidden input slot
|
|
179
|
+
* @returns props that should be spread on the hidden input slot
|
|
180
|
+
*/
|
|
181
|
+
getHiddenInputProps: <ExternalProps extends Record<string, unknown> = {}>(externalProps?: ExternalProps) => UseSliderHiddenInputProps<ExternalProps>;
|
|
182
|
+
/**
|
|
183
|
+
* Resolver for the root slot's props.
|
|
184
|
+
* @param externalProps props for the root slot
|
|
185
|
+
* @returns props that should be spread on the root slot
|
|
186
|
+
*/
|
|
187
|
+
getRootProps: <ExternalProps extends Record<string, unknown> = {}>(externalProps?: ExternalProps) => UseSliderRootSlotProps<ExternalProps>;
|
|
188
|
+
/**
|
|
189
|
+
* Resolver for the thumb slot's props.
|
|
190
|
+
* @param externalProps props for the thumb slot
|
|
191
|
+
* @returns props that should be spread on the thumb slot
|
|
192
|
+
*/
|
|
193
|
+
getThumbProps: <ExternalProps extends Record<string, unknown> = {}>(externalProps?: ExternalProps) => UseSliderThumbSlotProps<ExternalProps>;
|
|
194
|
+
/**
|
|
195
|
+
* Resolver for the thumb slot's style prop.
|
|
196
|
+
* @param index of the currently moved thumb
|
|
197
|
+
* @returns props that should be spread on the style prop of thumb slot
|
|
198
|
+
*/
|
|
199
|
+
getThumbStyle: (index: number) => object;
|
|
200
|
+
/**
|
|
201
|
+
* The marks of the slider. Marks indicate predetermined values to which the user can move the slider.
|
|
202
|
+
*/
|
|
203
|
+
marks: Mark[];
|
|
204
|
+
/**
|
|
205
|
+
* The thumb index for the current value when in hover state.
|
|
206
|
+
*/
|
|
207
|
+
open: number;
|
|
208
|
+
/**
|
|
209
|
+
* If `true`, the slider is a range slider when the `value` prop passed is an array.
|
|
210
|
+
*/
|
|
211
|
+
range: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Ref to the root slot's DOM node.
|
|
214
|
+
*/
|
|
215
|
+
rootRef: React.RefCallback<Element> | null;
|
|
216
|
+
/**
|
|
217
|
+
* The track leap for the current value of the slider.
|
|
218
|
+
*/
|
|
219
|
+
trackLeap: number;
|
|
220
|
+
/**
|
|
221
|
+
* The track offset for the current value of the slider.
|
|
222
|
+
*/
|
|
223
|
+
trackOffset: number;
|
|
224
|
+
/**
|
|
225
|
+
* The possible values of the slider.
|
|
226
|
+
*/
|
|
227
|
+
values: number[];
|
|
228
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/Snackbar/Snackbar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { ClickAwayListenerProps } from '
|
|
3
|
+
import { ClickAwayListenerProps } from '../ClickAwayListener';
|
|
4
4
|
import { Theme } from '../styles';
|
|
5
5
|
import { InternalStandardProps as StandardProps } from '..';
|
|
6
6
|
import { SnackbarContentProps } from '../SnackbarContent';
|
|
@@ -37,7 +37,7 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
|
|
|
37
37
|
/**
|
|
38
38
|
* Replace the `SnackbarContent` component.
|
|
39
39
|
*/
|
|
40
|
-
children?: React.ReactElement<
|
|
40
|
+
children?: React.ReactElement<unknown, any>;
|
|
41
41
|
/**
|
|
42
42
|
* Override or extend the styles applied to the component.
|
|
43
43
|
*/
|
|
@@ -98,7 +98,7 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
|
|
|
98
98
|
* @default Grow
|
|
99
99
|
*/
|
|
100
100
|
TransitionComponent?: React.JSXElementConstructor<
|
|
101
|
-
TransitionProps & { children: React.ReactElement<
|
|
101
|
+
TransitionProps & { children: React.ReactElement<unknown, any> }
|
|
102
102
|
>;
|
|
103
103
|
/**
|
|
104
104
|
* The duration for the transition, in milliseconds.
|
|
@@ -127,4 +127,4 @@ export interface SnackbarProps extends StandardProps<React.HTMLAttributes<HTMLDi
|
|
|
127
127
|
*
|
|
128
128
|
* - [Snackbar API](https://mui.com/material-ui/api/snackbar/)
|
|
129
129
|
*/
|
|
130
|
-
export default function Snackbar(props: SnackbarProps): JSX.Element;
|
|
130
|
+
export default function Snackbar(props: SnackbarProps): React.JSX.Element;
|
package/Snackbar/Snackbar.js
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
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 = ["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
|
-
import { useSlotProps } from '@mui/base/utils';
|
|
10
5
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import useTheme from
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
6
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
7
|
+
import useSnackbar from "./useSnackbar.js";
|
|
8
|
+
import ClickAwayListener from "../ClickAwayListener/index.js";
|
|
9
|
+
import { styled, useTheme } from "../zero-styled/index.js";
|
|
10
|
+
import memoTheme from "../utils/memoTheme.js";
|
|
11
|
+
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
12
|
+
import capitalize from "../utils/capitalize.js";
|
|
13
|
+
import Grow from "../Grow/index.js";
|
|
14
|
+
import SnackbarContent from "../SnackbarContent/index.js";
|
|
15
|
+
import { getSnackbarUtilityClass } from "./snackbarClasses.js";
|
|
20
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
17
|
const useUtilityClasses = ownerState => {
|
|
22
18
|
const {
|
|
@@ -37,47 +33,73 @@ const SnackbarRoot = styled('div', {
|
|
|
37
33
|
} = props;
|
|
38
34
|
return [styles.root, styles[`anchorOrigin${capitalize(ownerState.anchorOrigin.vertical)}${capitalize(ownerState.anchorOrigin.horizontal)}`]];
|
|
39
35
|
}
|
|
40
|
-
})(({
|
|
41
|
-
theme
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
bottom: 8
|
|
61
|
-
}, ownerState.anchorOrigin.horizontal === 'left' && {
|
|
62
|
-
justifyContent: 'flex-start'
|
|
63
|
-
}, ownerState.anchorOrigin.horizontal === 'right' && {
|
|
64
|
-
justifyContent: 'flex-end'
|
|
36
|
+
})(memoTheme(({
|
|
37
|
+
theme
|
|
38
|
+
}) => ({
|
|
39
|
+
zIndex: (theme.vars || theme).zIndex.snackbar,
|
|
40
|
+
position: 'fixed',
|
|
41
|
+
display: 'flex',
|
|
42
|
+
left: 8,
|
|
43
|
+
right: 8,
|
|
44
|
+
justifyContent: 'center',
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
variants: [{
|
|
47
|
+
props: ({
|
|
48
|
+
ownerState
|
|
49
|
+
}) => ownerState.anchorOrigin.vertical === 'top',
|
|
50
|
+
style: {
|
|
51
|
+
top: 8,
|
|
52
|
+
[theme.breakpoints.up('sm')]: {
|
|
53
|
+
top: 24
|
|
54
|
+
}
|
|
55
|
+
}
|
|
65
56
|
}, {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
})
|
|
57
|
+
props: ({
|
|
58
|
+
ownerState
|
|
59
|
+
}) => ownerState.anchorOrigin.vertical !== 'top',
|
|
60
|
+
style: {
|
|
61
|
+
bottom: 8,
|
|
62
|
+
[theme.breakpoints.up('sm')]: {
|
|
63
|
+
bottom: 24
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
props: ({
|
|
68
|
+
ownerState
|
|
69
|
+
}) => ownerState.anchorOrigin.horizontal === 'left',
|
|
70
|
+
style: {
|
|
71
|
+
justifyContent: 'flex-start',
|
|
72
|
+
[theme.breakpoints.up('sm')]: {
|
|
73
|
+
left: 24,
|
|
74
|
+
right: 'auto'
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
props: ({
|
|
79
|
+
ownerState
|
|
80
|
+
}) => ownerState.anchorOrigin.horizontal === 'right',
|
|
81
|
+
style: {
|
|
82
|
+
justifyContent: 'flex-end',
|
|
83
|
+
[theme.breakpoints.up('sm')]: {
|
|
84
|
+
right: 24,
|
|
85
|
+
left: 'auto'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
props: ({
|
|
90
|
+
ownerState
|
|
91
|
+
}) => ownerState.anchorOrigin.horizontal === 'center',
|
|
92
|
+
style: {
|
|
93
|
+
[theme.breakpoints.up('sm')]: {
|
|
94
|
+
left: '50%',
|
|
95
|
+
right: 'auto',
|
|
96
|
+
transform: 'translateX(-50%)'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}]
|
|
100
|
+
})));
|
|
79
101
|
const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
80
|
-
const props =
|
|
102
|
+
const props = useDefaultProps({
|
|
81
103
|
props: inProps,
|
|
82
104
|
name: 'MuiSnackbar'
|
|
83
105
|
});
|
|
@@ -87,32 +109,39 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
87
109
|
exit: theme.transitions.duration.leavingScreen
|
|
88
110
|
};
|
|
89
111
|
const {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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,
|
|
116
145
|
anchorOrigin: {
|
|
117
146
|
vertical,
|
|
118
147
|
horizontal
|
|
@@ -121,12 +150,14 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
121
150
|
disableWindowBlurListener,
|
|
122
151
|
TransitionComponent,
|
|
123
152
|
transitionDuration
|
|
124
|
-
}
|
|
153
|
+
};
|
|
125
154
|
const classes = useUtilityClasses(ownerState);
|
|
126
155
|
const {
|
|
127
156
|
getRootProps,
|
|
128
157
|
onClickAway
|
|
129
|
-
} = useSnackbar(
|
|
158
|
+
} = useSnackbar({
|
|
159
|
+
...ownerState
|
|
160
|
+
});
|
|
130
161
|
const [exited, setExited] = React.useState(true);
|
|
131
162
|
const rootProps = useSlotProps({
|
|
132
163
|
elementType: SnackbarRoot,
|
|
@@ -155,25 +186,27 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
155
186
|
if (!open && exited) {
|
|
156
187
|
return null;
|
|
157
188
|
}
|
|
158
|
-
return /*#__PURE__*/_jsx(ClickAwayListener,
|
|
159
|
-
onClickAway: onClickAway
|
|
160
|
-
|
|
161
|
-
children: /*#__PURE__*/_jsx(SnackbarRoot,
|
|
162
|
-
|
|
189
|
+
return /*#__PURE__*/_jsx(ClickAwayListener, {
|
|
190
|
+
onClickAway: onClickAway,
|
|
191
|
+
...ClickAwayListenerProps,
|
|
192
|
+
children: /*#__PURE__*/_jsx(SnackbarRoot, {
|
|
193
|
+
...rootProps,
|
|
194
|
+
children: /*#__PURE__*/_jsx(TransitionComponent, {
|
|
163
195
|
appear: true,
|
|
164
196
|
in: open,
|
|
165
197
|
timeout: transitionDuration,
|
|
166
198
|
direction: vertical === 'top' ? 'down' : 'up',
|
|
167
199
|
onEnter: handleEnter,
|
|
168
|
-
onExited: handleExited
|
|
169
|
-
|
|
170
|
-
children: children || /*#__PURE__*/_jsx(SnackbarContent,
|
|
200
|
+
onExited: handleExited,
|
|
201
|
+
...TransitionProps,
|
|
202
|
+
children: children || /*#__PURE__*/_jsx(SnackbarContent, {
|
|
171
203
|
message: message,
|
|
172
|
-
action: action
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
204
|
+
action: action,
|
|
205
|
+
...ContentProps
|
|
206
|
+
})
|
|
207
|
+
})
|
|
208
|
+
})
|
|
209
|
+
});
|
|
177
210
|
});
|
|
178
211
|
process.env.NODE_ENV !== "production" ? Snackbar.propTypes /* remove-proptypes */ = {
|
|
179
212
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
package/Snackbar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export { default } from
|
|
4
|
-
export { default as snackbarClasses } from
|
|
5
|
-
export * from
|
|
3
|
+
export { default } from "./Snackbar.js";
|
|
4
|
+
export { default as snackbarClasses } from "./snackbarClasses.js";
|
|
5
|
+
export * from "./snackbarClasses.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UseSnackbarParameters, UseSnackbarReturnValue } from './useSnackbar.types';
|
|
2
|
+
/**
|
|
3
|
+
* The basic building block for creating custom snackbar.
|
|
4
|
+
*
|
|
5
|
+
* Demos:
|
|
6
|
+
*
|
|
7
|
+
* - [Snackbar](https://mui.com/base-ui/react-snackbar/#hook)
|
|
8
|
+
*
|
|
9
|
+
* API:
|
|
10
|
+
*
|
|
11
|
+
* - [useSnackbar API](https://mui.com/base-ui/react-snackbar/hooks-api/#use-snackbar)
|
|
12
|
+
*/
|
|
13
|
+
declare function useSnackbar(parameters?: UseSnackbarParameters): UseSnackbarReturnValue;
|
|
14
|
+
export default useSnackbar;
|