@mui/material 6.0.0-alpha.9 → 6.0.0-beta.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 +3 -5
- package/Accordion/Accordion.js +3 -5
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionActions/AccordionActions.js +3 -3
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.js +3 -3
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/AccordionSummary/AccordionSummary.js +3 -3
- package/Alert/Alert.d.ts +15 -6
- package/Alert/Alert.js +3 -3
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AlertTitle/AlertTitle.js +3 -3
- package/AppBar/AppBar.d.ts +3 -3
- package/AppBar/AppBar.js +5 -9
- package/Autocomplete/Autocomplete.d.ts +3 -8
- package/Autocomplete/Autocomplete.js +13 -26
- package/Avatar/Avatar.d.ts +2 -3
- package/Avatar/Avatar.js +3 -4
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.js +3 -3
- package/Backdrop/Backdrop.d.ts +5 -8
- package/Backdrop/Backdrop.js +5 -8
- package/Badge/Badge.d.ts +3 -3
- package/Badge/Badge.js +3 -3
- package/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/BottomNavigation/BottomNavigation.js +3 -3
- package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
- package/BottomNavigationAction/BottomNavigationAction.js +3 -3
- package/Box/Box.d.ts +2 -2
- package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/Breadcrumbs/Breadcrumbs.js +3 -3
- package/Button/Button.d.ts +4 -4
- package/Button/Button.js +3 -3
- package/ButtonBase/ButtonBase.d.ts +2 -2
- package/ButtonBase/ButtonBase.js +23 -52
- package/ButtonBase/TouchRipple.js +3 -3
- package/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/ButtonGroup/ButtonGroup.js +3 -3
- package/CHANGELOG.md +331 -3
- package/Card/Card.d.ts +3 -3
- package/Card/Card.js +3 -3
- package/CardActionArea/CardActionArea.d.ts +3 -3
- package/CardActionArea/CardActionArea.js +3 -3
- package/CardActions/CardActions.d.ts +2 -2
- package/CardActions/CardActions.js +3 -3
- package/CardContent/CardContent.d.ts +2 -2
- package/CardContent/CardContent.js +3 -3
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardHeader/CardHeader.js +3 -3
- package/CardMedia/CardMedia.d.ts +2 -2
- package/CardMedia/CardMedia.js +3 -3
- package/Checkbox/Checkbox.d.ts +4 -4
- package/Checkbox/Checkbox.js +3 -3
- package/Chip/Chip.d.ts +5 -5
- package/Chip/Chip.js +3 -5
- package/CircularProgress/CircularProgress.d.ts +2 -2
- package/CircularProgress/CircularProgress.js +3 -3
- package/Collapse/Collapse.d.ts +5 -5
- package/Collapse/Collapse.js +3 -4
- package/Container/Container.d.ts +2 -2
- package/CssBaseline/CssBaseline.d.ts +2 -2
- package/CssBaseline/CssBaseline.js +66 -8
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +15 -0
- package/DefaultPropsProvider/DefaultPropsProvider.js +29 -0
- package/DefaultPropsProvider/index.d.ts +1 -0
- package/DefaultPropsProvider/index.js +1 -0
- package/DefaultPropsProvider/package.json +6 -0
- package/Dialog/Dialog.d.ts +3 -3
- package/Dialog/Dialog.js +4 -7
- package/DialogActions/DialogActions.d.ts +2 -2
- package/DialogActions/DialogActions.js +3 -3
- package/DialogContent/DialogContent.d.ts +2 -2
- package/DialogContent/DialogContent.js +3 -3
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogContentText/DialogContentText.js +3 -3
- package/DialogTitle/DialogTitle.d.ts +3 -3
- package/DialogTitle/DialogTitle.js +3 -3
- package/Divider/Divider.d.ts +3 -3
- package/Divider/Divider.js +3 -3
- package/Drawer/Drawer.d.ts +3 -3
- package/Drawer/Drawer.js +3 -4
- package/Fab/Fab.d.ts +3 -3
- package/Fab/Fab.js +3 -3
- package/Fade/Fade.d.ts +3 -3
- package/Fade/Fade.js +1 -1
- package/FilledInput/FilledInput.d.ts +3 -3
- package/FilledInput/FilledInput.js +13 -11
- package/FilledInput/filledInputClasses.d.ts +1 -13
- package/FilledInput/filledInputClasses.js +1 -1
- package/FormControl/FormControl.d.ts +6 -6
- package/FormControl/FormControl.js +3 -3
- package/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/FormControlLabel/FormControlLabel.js +3 -3
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormGroup/FormGroup.js +3 -3
- package/FormHelperText/FormHelperText.d.ts +2 -2
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormLabel/FormLabel.d.ts +4 -4
- package/FormLabel/FormLabel.js +3 -3
- package/GlobalStyles/GlobalStyles.d.ts +3 -3
- package/Grid/Grid.d.ts +2 -2
- package/Grid/Grid.js +7 -13
- package/Grow/Grow.d.ts +5 -5
- package/Grow/Grow.js +1 -1
- package/Hidden/Hidden.d.ts +2 -2
- package/Hidden/hiddenCssClasses.d.ts +3 -0
- package/Icon/Icon.d.ts +3 -3
- package/Icon/Icon.js +3 -3
- package/IconButton/IconButton.d.ts +4 -4
- package/IconButton/IconButton.js +3 -5
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageList/ImageList.js +3 -11
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItem/ImageListItem.js +3 -3
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/ImageListItemBar/ImageListItemBar.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 +3 -3
- package/Input/Input.js +5 -9
- package/InputAdornment/InputAdornment.d.ts +2 -2
- package/InputAdornment/InputAdornment.js +3 -5
- package/InputBase/InputBase.d.ts +4 -6
- package/InputBase/InputBase.js +31 -40
- package/InputLabel/InputLabel.d.ts +3 -3
- package/InputLabel/InputLabel.js +3 -3
- package/LinearProgress/LinearProgress.d.ts +2 -2
- package/LinearProgress/LinearProgress.js +3 -3
- package/Link/Link.d.ts +4 -4
- package/Link/Link.js +7 -18
- package/List/List.d.ts +3 -3
- package/List/List.js +3 -3
- package/ListItem/ListItem.d.ts +3 -3
- package/ListItem/ListItem.js +3 -3
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemAvatar/ListItemAvatar.js +3 -3
- package/ListItemButton/ListItemButton.d.ts +3 -3
- package/ListItemButton/ListItemButton.js +3 -3
- package/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/ListItemIcon/ListItemIcon.js +3 -3
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +3 -3
- package/ListItemText/ListItemText.d.ts +2 -2
- package/ListItemText/ListItemText.js +3 -3
- package/ListSubheader/ListSubheader.d.ts +2 -2
- package/ListSubheader/ListSubheader.js +3 -3
- package/Menu/Menu.d.ts +4 -4
- package/Menu/Menu.js +4 -7
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuItem/MenuItem.js +3 -3
- package/MenuList/MenuList.d.ts +4 -4
- package/MobileStepper/MobileStepper.d.ts +3 -3
- package/MobileStepper/MobileStepper.js +3 -3
- package/Modal/Modal.d.ts +10 -12
- package/Modal/Modal.js +32 -24
- package/NativeSelect/NativeSelect.d.ts +3 -3
- package/NativeSelect/NativeSelectInput.js +0 -4
- package/OutlinedInput/OutlinedInput.d.ts +3 -3
- package/OutlinedInput/OutlinedInput.js +4 -5
- package/Pagination/Pagination.d.ts +2 -2
- package/Pagination/Pagination.js +3 -3
- package/PaginationItem/PaginationItem.d.ts +2 -2
- package/PaginationItem/PaginationItem.js +3 -3
- package/Paper/Paper.d.ts +3 -3
- package/Paper/Paper.js +3 -4
- 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 +20 -25
- package/Popover/Popover.js +30 -29
- package/Popper/Popper.d.ts +4 -4
- package/Popper/Popper.js +10 -9
- package/Radio/Radio.d.ts +3 -3
- package/Radio/Radio.js +3 -3
- package/RadioGroup/RadioGroup.d.ts +3 -3
- package/Rating/Rating.d.ts +2 -2
- package/Rating/Rating.js +8 -15
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.js +24 -11
- package/Select/Select.d.ts +3 -3
- package/Skeleton/Skeleton.d.ts +2 -2
- package/Skeleton/Skeleton.js +3 -3
- package/Slide/Slide.d.ts +4 -4
- package/Slide/Slide.js +1 -1
- package/Slider/Slider.d.ts +3 -3
- package/Slider/Slider.js +3 -3
- package/Snackbar/Snackbar.d.ts +2 -2
- package/Snackbar/Snackbar.js +3 -4
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SnackbarContent/SnackbarContent.js +3 -3
- package/SpeedDial/SpeedDial.d.ts +2 -4
- package/SpeedDial/SpeedDial.js +3 -6
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialAction/SpeedDialAction.js +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/SpeedDialIcon/SpeedDialIcon.js +3 -3
- package/Stack/Stack.d.ts +2 -2
- package/Step/Step.d.ts +2 -2
- package/Step/Step.js +3 -3
- package/StepButton/StepButton.d.ts +3 -3
- package/StepButton/StepButton.js +3 -3
- package/StepConnector/StepConnector.d.ts +3 -3
- package/StepConnector/StepConnector.js +3 -3
- package/StepContent/StepContent.d.ts +2 -2
- package/StepContent/StepContent.js +3 -3
- package/StepIcon/StepIcon.d.ts +2 -2
- package/StepIcon/StepIcon.js +3 -3
- package/StepLabel/StepLabel.d.ts +2 -4
- package/StepLabel/StepLabel.js +3 -7
- package/Stepper/Stepper.d.ts +2 -2
- package/Stepper/Stepper.js +7 -5
- package/Stepper/stepperClasses.d.ts +2 -0
- package/Stepper/stepperClasses.js +1 -1
- package/SvgIcon/SvgIcon.d.ts +3 -3
- package/SvgIcon/SvgIcon.js +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/Switch/Switch.d.ts +4 -4
- package/Switch/Switch.js +3 -3
- package/Tab/Tab.d.ts +4 -4
- package/Tab/Tab.js +14 -10
- package/Tab/tabClasses.d.ts +5 -1
- package/Tab/tabClasses.js +1 -1
- package/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/TabScrollButton/TabScrollButton.js +3 -3
- package/Table/Table.d.ts +2 -2
- package/Table/Table.js +3 -3
- package/TableBody/TableBody.d.ts +2 -2
- package/TableBody/TableBody.js +3 -3
- package/TableCell/TableCell.d.ts +2 -2
- package/TableCell/TableCell.js +3 -3
- package/TableContainer/TableContainer.d.ts +2 -2
- package/TableContainer/TableContainer.js +3 -3
- package/TableFooter/TableFooter.d.ts +2 -2
- package/TableFooter/TableFooter.js +3 -3
- package/TableHead/TableHead.d.ts +2 -2
- package/TableHead/TableHead.js +3 -3
- package/TablePagination/TablePagination.d.ts +4 -4
- package/TablePagination/TablePagination.js +3 -3
- package/TableRow/TableRow.d.ts +2 -2
- package/TableRow/TableRow.js +3 -3
- package/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/TableSortLabel/tableSortLabelClasses.d.ts +10 -2
- package/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/Tabs/Tabs.d.ts +2 -2
- package/Tabs/Tabs.js +5 -14
- package/TextField/TextField.d.ts +10 -10
- package/TextField/TextField.js +3 -3
- package/ToggleButton/ToggleButton.d.ts +3 -3
- package/ToggleButton/ToggleButton.js +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/ToggleButtonGroup/ToggleButtonGroup.js +3 -3
- package/Toolbar/Toolbar.d.ts +2 -2
- package/Toolbar/Toolbar.js +3 -3
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Tooltip/Tooltip.js +7 -18
- package/Typography/Typography.d.ts +3 -3
- package/Typography/Typography.js +4 -4
- package/Zoom/Zoom.d.ts +3 -3
- package/Zoom/Zoom.js +1 -1
- package/index.js +1 -1
- package/modern/Accordion/Accordion.js +3 -5
- package/modern/AccordionActions/AccordionActions.js +3 -3
- package/modern/AccordionDetails/AccordionDetails.js +3 -3
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Alert/Alert.js +3 -3
- package/modern/AlertTitle/AlertTitle.js +3 -3
- package/modern/AppBar/AppBar.js +5 -9
- package/modern/Autocomplete/Autocomplete.js +13 -26
- package/modern/Avatar/Avatar.js +3 -4
- package/modern/AvatarGroup/AvatarGroup.js +3 -3
- package/modern/Backdrop/Backdrop.js +5 -8
- package/modern/Badge/Badge.js +3 -3
- package/modern/BottomNavigation/BottomNavigation.js +3 -3
- package/modern/BottomNavigationAction/BottomNavigationAction.js +3 -3
- package/modern/Breadcrumbs/Breadcrumbs.js +3 -3
- package/modern/Button/Button.js +3 -3
- package/modern/ButtonBase/ButtonBase.js +23 -52
- package/modern/ButtonBase/TouchRipple.js +3 -3
- package/modern/ButtonGroup/ButtonGroup.js +3 -3
- package/modern/Card/Card.js +3 -3
- package/modern/CardActionArea/CardActionArea.js +3 -3
- package/modern/CardActions/CardActions.js +3 -3
- package/modern/CardContent/CardContent.js +3 -3
- package/modern/CardHeader/CardHeader.js +3 -3
- package/modern/CardMedia/CardMedia.js +3 -3
- package/modern/Checkbox/Checkbox.js +3 -3
- package/modern/Chip/Chip.js +3 -5
- package/modern/CircularProgress/CircularProgress.js +3 -3
- package/modern/Collapse/Collapse.js +3 -4
- package/modern/CssBaseline/CssBaseline.js +66 -8
- package/modern/DefaultPropsProvider/DefaultPropsProvider.js +29 -0
- package/modern/DefaultPropsProvider/index.js +1 -0
- package/modern/Dialog/Dialog.js +4 -7
- package/modern/DialogActions/DialogActions.js +3 -3
- package/modern/DialogContent/DialogContent.js +3 -3
- package/modern/DialogContentText/DialogContentText.js +3 -3
- package/modern/DialogTitle/DialogTitle.js +3 -3
- package/modern/Divider/Divider.js +3 -3
- package/modern/Drawer/Drawer.js +3 -4
- package/modern/Fab/Fab.js +3 -3
- package/modern/Fade/Fade.js +1 -1
- package/modern/FilledInput/FilledInput.js +13 -11
- package/modern/FilledInput/filledInputClasses.js +1 -1
- package/modern/FormControl/FormControl.js +3 -3
- package/modern/FormControlLabel/FormControlLabel.js +3 -3
- package/modern/FormGroup/FormGroup.js +3 -3
- package/modern/FormHelperText/FormHelperText.js +3 -3
- package/modern/FormLabel/FormLabel.js +3 -3
- package/modern/Grid/Grid.js +7 -13
- package/modern/Grow/Grow.js +1 -1
- package/modern/Icon/Icon.js +3 -3
- package/modern/IconButton/IconButton.js +3 -5
- package/modern/ImageList/ImageList.js +3 -11
- package/modern/ImageListItem/ImageListItem.js +3 -3
- package/modern/ImageListItemBar/ImageListItemBar.js +3 -3
- package/modern/InitColorSchemeScript/InitColorSchemeScript.js +16 -0
- package/modern/InitColorSchemeScript/index.js +1 -0
- package/modern/Input/Input.js +5 -9
- package/modern/InputAdornment/InputAdornment.js +3 -5
- package/modern/InputBase/InputBase.js +31 -40
- package/modern/InputLabel/InputLabel.js +3 -3
- package/modern/LinearProgress/LinearProgress.js +3 -3
- package/modern/Link/Link.js +7 -18
- package/modern/List/List.js +3 -3
- package/modern/ListItem/ListItem.js +3 -3
- package/modern/ListItemAvatar/ListItemAvatar.js +3 -3
- package/modern/ListItemButton/ListItemButton.js +3 -3
- package/modern/ListItemIcon/ListItemIcon.js +3 -3
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +3 -3
- package/modern/ListItemText/ListItemText.js +3 -3
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/Menu/Menu.js +4 -7
- package/modern/MenuItem/MenuItem.js +3 -3
- package/modern/MobileStepper/MobileStepper.js +3 -3
- package/modern/Modal/Modal.js +32 -24
- package/modern/NativeSelect/NativeSelectInput.js +0 -4
- package/modern/OutlinedInput/OutlinedInput.js +4 -5
- package/modern/Pagination/Pagination.js +3 -3
- package/modern/PaginationItem/PaginationItem.js +3 -3
- package/modern/Paper/Paper.js +3 -4
- 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 +30 -29
- package/modern/Popper/Popper.js +10 -9
- package/modern/Radio/Radio.js +3 -3
- package/modern/Rating/Rating.js +8 -15
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +24 -11
- package/modern/Skeleton/Skeleton.js +3 -3
- package/modern/Slide/Slide.js +1 -1
- package/modern/Slider/Slider.js +3 -3
- package/modern/Snackbar/Snackbar.js +3 -4
- package/modern/SnackbarContent/SnackbarContent.js +3 -3
- package/modern/SpeedDial/SpeedDial.js +3 -6
- package/modern/SpeedDialAction/SpeedDialAction.js +3 -3
- package/modern/SpeedDialIcon/SpeedDialIcon.js +3 -3
- package/modern/Step/Step.js +3 -3
- package/modern/StepButton/StepButton.js +3 -3
- package/modern/StepConnector/StepConnector.js +3 -3
- package/modern/StepContent/StepContent.js +3 -3
- package/modern/StepIcon/StepIcon.js +3 -3
- package/modern/StepLabel/StepLabel.js +3 -7
- package/modern/Stepper/Stepper.js +7 -5
- package/modern/Stepper/stepperClasses.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +3 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/modern/Switch/Switch.js +3 -3
- package/modern/Tab/Tab.js +14 -10
- package/modern/Tab/tabClasses.js +1 -1
- package/modern/TabScrollButton/TabScrollButton.js +3 -3
- package/modern/Table/Table.js +3 -3
- package/modern/TableBody/TableBody.js +3 -3
- package/modern/TableCell/TableCell.js +3 -3
- package/modern/TableContainer/TableContainer.js +3 -3
- package/modern/TableFooter/TableFooter.js +3 -3
- package/modern/TableHead/TableHead.js +3 -3
- package/modern/TablePagination/TablePagination.js +3 -3
- package/modern/TableRow/TableRow.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/modern/Tabs/Tabs.js +5 -14
- package/modern/TextField/TextField.js +3 -3
- package/modern/ToggleButton/ToggleButton.js +3 -3
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +3 -3
- package/modern/Toolbar/Toolbar.js +3 -3
- package/modern/Tooltip/Tooltip.js +7 -18
- package/modern/Typography/Typography.js +4 -4
- package/modern/Zoom/Zoom.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +19 -7
- package/modern/styles/createTheme.js +1 -1
- package/modern/styles/createTransitions.js +2 -2
- package/modern/styles/extendTheme.js +3 -0
- package/modern/styles/index.js +1 -1
- package/modern/styles/stringifyTheme.js +55 -0
- package/modern/useLazyRipple/index.js +3 -0
- package/modern/useLazyRipple/useLazyRipple.js +85 -0
- package/modern/usePagination/usePagination.js +1 -1
- package/modern/utils/index.js +0 -1
- package/modern/zero-styled/index.js +24 -5
- package/node/Accordion/Accordion.js +2 -4
- package/node/AccordionActions/AccordionActions.js +2 -2
- package/node/AccordionDetails/AccordionDetails.js +2 -2
- package/node/AccordionSummary/AccordionSummary.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/AlertTitle/AlertTitle.js +2 -2
- package/node/AppBar/AppBar.js +4 -8
- package/node/Autocomplete/Autocomplete.js +12 -25
- package/node/Avatar/Avatar.js +2 -3
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Backdrop/Backdrop.js +4 -7
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +2 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/Breadcrumbs/Breadcrumbs.js +2 -2
- package/node/Button/Button.js +2 -2
- package/node/ButtonBase/ButtonBase.js +22 -51
- package/node/ButtonBase/TouchRipple.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/Card/Card.js +2 -2
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CardActions/CardActions.js +2 -2
- package/node/CardContent/CardContent.js +2 -2
- package/node/CardHeader/CardHeader.js +2 -2
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/Checkbox/Checkbox.js +2 -2
- package/node/Chip/Chip.js +2 -4
- package/node/CircularProgress/CircularProgress.js +2 -2
- package/node/Collapse/Collapse.js +3 -4
- package/node/CssBaseline/CssBaseline.js +70 -10
- package/node/DefaultPropsProvider/DefaultPropsProvider.js +38 -0
- package/node/DefaultPropsProvider/index.js +20 -0
- package/node/Dialog/Dialog.js +4 -7
- package/node/DialogActions/DialogActions.js +2 -2
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/DialogContentText/DialogContentText.js +2 -2
- package/node/DialogTitle/DialogTitle.js +2 -2
- package/node/Divider/Divider.js +2 -2
- package/node/Drawer/Drawer.js +3 -4
- package/node/Fab/Fab.js +2 -2
- package/node/Fade/Fade.js +2 -2
- package/node/FilledInput/FilledInput.js +12 -10
- package/node/FilledInput/filledInputClasses.js +1 -1
- package/node/FormControl/FormControl.js +2 -2
- package/node/FormControlLabel/FormControlLabel.js +2 -2
- package/node/FormGroup/FormGroup.js +2 -2
- package/node/FormHelperText/FormHelperText.js +2 -2
- package/node/FormLabel/FormLabel.js +2 -2
- package/node/Grid/Grid.js +7 -13
- package/node/Grow/Grow.js +2 -2
- package/node/Icon/Icon.js +2 -2
- package/node/IconButton/IconButton.js +2 -4
- package/node/ImageList/ImageList.js +2 -10
- package/node/ImageListItem/ImageListItem.js +2 -2
- package/node/ImageListItemBar/ImageListItemBar.js +2 -2
- package/node/InitColorSchemeScript/InitColorSchemeScript.js +25 -0
- package/node/InitColorSchemeScript/index.js +13 -0
- package/node/Input/Input.js +4 -8
- package/node/InputAdornment/InputAdornment.js +2 -4
- package/node/InputBase/InputBase.js +30 -39
- package/node/InputLabel/InputLabel.js +2 -2
- package/node/LinearProgress/LinearProgress.js +2 -2
- package/node/Link/Link.js +7 -18
- package/node/List/List.js +2 -2
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItemAvatar/ListItemAvatar.js +2 -2
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemIcon/ListItemIcon.js +2 -2
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/node/ListItemText/ListItemText.js +2 -2
- package/node/ListSubheader/ListSubheader.js +2 -2
- package/node/Menu/Menu.js +3 -6
- package/node/MenuItem/MenuItem.js +2 -2
- package/node/MobileStepper/MobileStepper.js +2 -2
- package/node/Modal/Modal.js +31 -24
- package/node/NativeSelect/NativeSelectInput.js +0 -4
- package/node/OutlinedInput/OutlinedInput.js +3 -4
- package/node/Pagination/Pagination.js +2 -2
- package/node/PaginationItem/PaginationItem.js +2 -2
- package/node/Paper/Paper.js +3 -4
- 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 +29 -28
- package/node/Popper/Popper.js +11 -10
- package/node/Radio/Radio.js +2 -2
- package/node/Rating/Rating.js +6 -13
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +27 -13
- package/node/Skeleton/Skeleton.js +2 -2
- package/node/Slide/Slide.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +3 -4
- package/node/SnackbarContent/SnackbarContent.js +2 -2
- package/node/SpeedDial/SpeedDial.js +3 -6
- package/node/SpeedDialAction/SpeedDialAction.js +2 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/node/Step/Step.js +2 -2
- package/node/StepButton/StepButton.js +2 -2
- package/node/StepConnector/StepConnector.js +2 -2
- package/node/StepContent/StepContent.js +2 -2
- package/node/StepIcon/StepIcon.js +2 -2
- package/node/StepLabel/StepLabel.js +2 -6
- package/node/Stepper/Stepper.js +6 -4
- package/node/Stepper/stepperClasses.js +1 -1
- package/node/SvgIcon/SvgIcon.js +2 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/Switch/Switch.js +2 -2
- package/node/Tab/Tab.js +13 -9
- package/node/Tab/tabClasses.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +2 -2
- package/node/Table/Table.js +2 -2
- package/node/TableBody/TableBody.js +2 -2
- package/node/TableCell/TableCell.js +2 -2
- package/node/TableContainer/TableContainer.js +2 -2
- package/node/TableFooter/TableFooter.js +2 -2
- package/node/TableHead/TableHead.js +2 -2
- package/node/TablePagination/TablePagination.js +2 -2
- package/node/TableRow/TableRow.js +2 -2
- package/node/TableSortLabel/TableSortLabel.js +3 -3
- package/node/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/node/Tabs/Tabs.js +5 -14
- package/node/TextField/TextField.js +2 -2
- package/node/ToggleButton/ToggleButton.js +2 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/node/Toolbar/Toolbar.js +2 -2
- package/node/Tooltip/Tooltip.js +7 -18
- package/node/Typography/Typography.js +4 -4
- package/node/Zoom/Zoom.js +2 -2
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +20 -8
- package/node/styles/createTheme.js +1 -1
- package/node/styles/createTransitions.js +2 -2
- package/node/styles/extendTheme.js +3 -0
- package/node/styles/index.js +8 -1
- package/node/styles/stringifyTheme.js +62 -0
- package/node/{useTouchRipple → useLazyRipple}/index.js +2 -2
- package/node/useLazyRipple/useLazyRipple.js +104 -0
- package/node/usePagination/usePagination.js +1 -1
- package/node/utils/index.js +0 -7
- package/node/zero-styled/index.js +33 -5
- package/package.json +24 -8
- package/styles/CssVarsProvider.d.ts +3 -2
- package/styles/CssVarsProvider.js +19 -7
- package/styles/createTheme.js +1 -1
- package/styles/createTransitions.js +2 -2
- package/styles/extendTheme.js +3 -0
- package/styles/index.d.ts +1 -0
- package/styles/index.js +1 -1
- package/styles/responsiveFontSizes.d.ts +3 -4
- package/styles/stringifyTheme.d.ts +20 -0
- package/styles/stringifyTheme.js +55 -0
- 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/usePagination.js +1 -1
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -1
- package/zero-styled/index.d.ts +10 -2
- package/zero-styled/index.js +24 -5
- 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/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/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
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
|
+
var _Hidden = _interopRequireDefault(require("@mui/material-pigment-css/Hidden"));
|
|
13
|
+
var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
|
|
14
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
+
var _HiddenJs = _interopRequireDefault(require("../Hidden/HiddenJs"));
|
|
16
|
+
var _hiddenCssClasses = require("../Hidden/hiddenCssClasses");
|
|
17
|
+
var _zeroStyled = require("../zero-styled");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
|
|
23
|
+
const useUtilityClasses = ownerState => {
|
|
24
|
+
const {
|
|
25
|
+
classes,
|
|
26
|
+
breakpoints
|
|
27
|
+
} = ownerState;
|
|
28
|
+
const slots = {
|
|
29
|
+
root: ['root', ...breakpoints.map(({
|
|
30
|
+
breakpoint,
|
|
31
|
+
dir
|
|
32
|
+
}) => {
|
|
33
|
+
return dir === 'only' ? `${dir}${(0, _capitalize.default)(breakpoint)}` : `${breakpoint}${(0, _capitalize.default)(dir)}`;
|
|
34
|
+
})]
|
|
35
|
+
};
|
|
36
|
+
return (0, _composeClasses.default)(slots, _hiddenCssClasses.getHiddenCssUtilityClass, classes);
|
|
37
|
+
};
|
|
38
|
+
function HiddenCss(props) {
|
|
39
|
+
const theme = (0, _zeroStyled.useTheme)();
|
|
40
|
+
const {
|
|
41
|
+
children,
|
|
42
|
+
className,
|
|
43
|
+
only,
|
|
44
|
+
...other
|
|
45
|
+
} = props;
|
|
46
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
47
|
+
const unknownProps = Object.keys(other).filter(propName => {
|
|
48
|
+
const isUndeclaredBreakpoint = !theme.breakpoints.keys.some(breakpoint => {
|
|
49
|
+
return `${breakpoint}Up` === propName || `${breakpoint}Down` === propName;
|
|
50
|
+
});
|
|
51
|
+
return !['classes', 'theme', 'isRtl', 'sx'].includes(propName) && isUndeclaredBreakpoint;
|
|
52
|
+
});
|
|
53
|
+
if (unknownProps.length > 0) {
|
|
54
|
+
console.error(`MUI: Unsupported props received by \`<Hidden implementation="css" />\`: ${unknownProps.join(', ')}. Did you forget to wrap this component in a ThemeProvider declaring these breakpoints?`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const breakpoints = [];
|
|
58
|
+
for (let i = 0; i < theme.breakpoints.keys.length; i += 1) {
|
|
59
|
+
const breakpoint = theme.breakpoints.keys[i];
|
|
60
|
+
const breakpointUp = other[`${breakpoint}Up`];
|
|
61
|
+
const breakpointDown = other[`${breakpoint}Down`];
|
|
62
|
+
if (breakpointUp) {
|
|
63
|
+
breakpoints.push({
|
|
64
|
+
breakpoint,
|
|
65
|
+
dir: 'up'
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (breakpointDown) {
|
|
69
|
+
breakpoints.push({
|
|
70
|
+
breakpoint,
|
|
71
|
+
dir: 'down'
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (only) {
|
|
76
|
+
const onlyBreakpoints = Array.isArray(only) ? only : [only];
|
|
77
|
+
onlyBreakpoints.forEach(breakpoint => {
|
|
78
|
+
breakpoints.push({
|
|
79
|
+
breakpoint,
|
|
80
|
+
dir: 'only'
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
const ownerState = {
|
|
85
|
+
...props,
|
|
86
|
+
classes: {},
|
|
87
|
+
breakpoints
|
|
88
|
+
};
|
|
89
|
+
const classes = useUtilityClasses(ownerState);
|
|
90
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Hidden.default, {
|
|
91
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
92
|
+
...props
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
process.env.NODE_ENV !== "production" ? HiddenCss.propTypes /* remove-proptypes */ = {
|
|
96
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
97
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
98
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
99
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
100
|
+
/**
|
|
101
|
+
* The content of the component.
|
|
102
|
+
*/
|
|
103
|
+
children: _propTypes.default.node,
|
|
104
|
+
className: _propTypes.default.string,
|
|
105
|
+
/**
|
|
106
|
+
* Specify which implementation to use. 'js' is the default, 'css' works better for
|
|
107
|
+
* server-side rendering.
|
|
108
|
+
* @default 'js'
|
|
109
|
+
*/
|
|
110
|
+
implementation: _propTypes.default.oneOf(['css', 'js']),
|
|
111
|
+
/**
|
|
112
|
+
* You can use this prop when choosing the `js` implementation with server-side rendering.
|
|
113
|
+
*
|
|
114
|
+
* As `window.innerWidth` is unavailable on the server,
|
|
115
|
+
* we default to rendering an empty component during the first mount.
|
|
116
|
+
* You might want to use a heuristic to approximate
|
|
117
|
+
* the screen width of the client browser screen width.
|
|
118
|
+
*
|
|
119
|
+
* For instance, you could be using the user-agent or the client-hints.
|
|
120
|
+
* https://caniuse.com/#search=client%20hint
|
|
121
|
+
*/
|
|
122
|
+
initialWidth: _propTypes.default.oneOf(['lg', 'md', 'sm', 'xl', 'xs']),
|
|
123
|
+
/**
|
|
124
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
125
|
+
* @default false
|
|
126
|
+
*/
|
|
127
|
+
lgDown: _propTypes.default.bool,
|
|
128
|
+
/**
|
|
129
|
+
* If `true`, component is hidden on screens this size and above.
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
lgUp: _propTypes.default.bool,
|
|
133
|
+
/**
|
|
134
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
mdDown: _propTypes.default.bool,
|
|
138
|
+
/**
|
|
139
|
+
* If `true`, component is hidden on screens this size and above.
|
|
140
|
+
* @default false
|
|
141
|
+
*/
|
|
142
|
+
mdUp: _propTypes.default.bool,
|
|
143
|
+
/**
|
|
144
|
+
* Hide the given breakpoint(s).
|
|
145
|
+
*/
|
|
146
|
+
only: _propTypes.default.oneOfType([_propTypes.default.oneOf(['lg', 'md', 'sm', 'xl', 'xs']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['lg', 'md', 'sm', 'xl', 'xs']).isRequired)]),
|
|
147
|
+
/**
|
|
148
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
smDown: _propTypes.default.bool,
|
|
152
|
+
/**
|
|
153
|
+
* If `true`, component is hidden on screens this size and above.
|
|
154
|
+
* @default false
|
|
155
|
+
*/
|
|
156
|
+
smUp: _propTypes.default.bool,
|
|
157
|
+
/**
|
|
158
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
159
|
+
* @default false
|
|
160
|
+
*/
|
|
161
|
+
xlDown: _propTypes.default.bool,
|
|
162
|
+
/**
|
|
163
|
+
* If `true`, component is hidden on screens this size and above.
|
|
164
|
+
* @default false
|
|
165
|
+
*/
|
|
166
|
+
xlUp: _propTypes.default.bool,
|
|
167
|
+
/**
|
|
168
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
xsDown: _propTypes.default.bool,
|
|
172
|
+
/**
|
|
173
|
+
* If `true`, component is hidden on screens this size and above.
|
|
174
|
+
* @default false
|
|
175
|
+
*/
|
|
176
|
+
xsUp: _propTypes.default.bool
|
|
177
|
+
} : void 0;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* Demos:
|
|
181
|
+
*
|
|
182
|
+
* - [Hidden](https://next.mui.com/material-ui/react-hidden/)
|
|
183
|
+
*
|
|
184
|
+
* API:
|
|
185
|
+
*
|
|
186
|
+
* - [PigmentHidden API](https://next.mui.com/material-ui/api/pigment-hidden/)
|
|
187
|
+
*/
|
|
188
|
+
function PigmentHidden({
|
|
189
|
+
implementation = 'js',
|
|
190
|
+
...props
|
|
191
|
+
}) {
|
|
192
|
+
if (implementation === 'js') {
|
|
193
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HiddenJs.default, {
|
|
194
|
+
...props
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(HiddenCss, {
|
|
198
|
+
...props
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
process.env.NODE_ENV !== "production" ? PigmentHidden.propTypes /* remove-proptypes */ = {
|
|
202
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
203
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
204
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
205
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
206
|
+
/**
|
|
207
|
+
* The content of the component.
|
|
208
|
+
*/
|
|
209
|
+
children: _propTypes.default.node,
|
|
210
|
+
/**
|
|
211
|
+
* @ignore
|
|
212
|
+
*/
|
|
213
|
+
className: _propTypes.default.string,
|
|
214
|
+
/**
|
|
215
|
+
* Specify which implementation to use. 'js' is the default, 'css' works better for
|
|
216
|
+
* server-side rendering.
|
|
217
|
+
* @default 'js'
|
|
218
|
+
*/
|
|
219
|
+
implementation: _propTypes.default.oneOf(['css', 'js']),
|
|
220
|
+
/**
|
|
221
|
+
* You can use this prop when choosing the `js` implementation with server-side rendering.
|
|
222
|
+
*
|
|
223
|
+
* As `window.innerWidth` is unavailable on the server,
|
|
224
|
+
* we default to rendering an empty component during the first mount.
|
|
225
|
+
* You might want to use a heuristic to approximate
|
|
226
|
+
* the screen width of the client browser screen width.
|
|
227
|
+
*
|
|
228
|
+
* For instance, you could be using the user-agent or the client-hints.
|
|
229
|
+
* https://caniuse.com/#search=client%20hint
|
|
230
|
+
*/
|
|
231
|
+
initialWidth: _propTypes.default.oneOf(['lg', 'md', 'sm', 'xl', 'xs']),
|
|
232
|
+
/**
|
|
233
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
234
|
+
* @default false
|
|
235
|
+
*/
|
|
236
|
+
lgDown: _propTypes.default.bool,
|
|
237
|
+
/**
|
|
238
|
+
* If `true`, component is hidden on screens this size and above.
|
|
239
|
+
* @default false
|
|
240
|
+
*/
|
|
241
|
+
lgUp: _propTypes.default.bool,
|
|
242
|
+
/**
|
|
243
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
244
|
+
* @default false
|
|
245
|
+
*/
|
|
246
|
+
mdDown: _propTypes.default.bool,
|
|
247
|
+
/**
|
|
248
|
+
* If `true`, component is hidden on screens this size and above.
|
|
249
|
+
* @default false
|
|
250
|
+
*/
|
|
251
|
+
mdUp: _propTypes.default.bool,
|
|
252
|
+
/**
|
|
253
|
+
* Hide the given breakpoint(s).
|
|
254
|
+
*/
|
|
255
|
+
only: _propTypes.default.oneOfType([_propTypes.default.oneOf(['lg', 'md', 'sm', 'xl', 'xs']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['lg', 'md', 'sm', 'xl', 'xs']).isRequired)]),
|
|
256
|
+
/**
|
|
257
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
258
|
+
* @default false
|
|
259
|
+
*/
|
|
260
|
+
smDown: _propTypes.default.bool,
|
|
261
|
+
/**
|
|
262
|
+
* If `true`, component is hidden on screens this size and above.
|
|
263
|
+
* @default false
|
|
264
|
+
*/
|
|
265
|
+
smUp: _propTypes.default.bool,
|
|
266
|
+
/**
|
|
267
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
268
|
+
* @default false
|
|
269
|
+
*/
|
|
270
|
+
xlDown: _propTypes.default.bool,
|
|
271
|
+
/**
|
|
272
|
+
* If `true`, component is hidden on screens this size and above.
|
|
273
|
+
* @default false
|
|
274
|
+
*/
|
|
275
|
+
xlUp: _propTypes.default.bool,
|
|
276
|
+
/**
|
|
277
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
278
|
+
* @default false
|
|
279
|
+
*/
|
|
280
|
+
xsDown: _propTypes.default.bool,
|
|
281
|
+
/**
|
|
282
|
+
* If `true`, component is hidden on screens this size and above.
|
|
283
|
+
* @default false
|
|
284
|
+
*/
|
|
285
|
+
xsUp: _propTypes.default.bool
|
|
286
|
+
} : void 0;
|
|
287
|
+
var _default = exports.default = PigmentHidden;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {};
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _PigmentHidden.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _PigmentHidden = _interopRequireWildcard(require("./PigmentHidden"));
|
|
14
|
+
Object.keys(_PigmentHidden).forEach(function (key) {
|
|
15
|
+
if (key === "default" || key === "__esModule") return;
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
17
|
+
if (key in exports && exports[key] === _PigmentHidden[key]) return;
|
|
18
|
+
Object.defineProperty(exports, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _PigmentHidden[key];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
11
|
+
var _Stack = _interopRequireDefault(require("@mui/material-pigment-css/Stack"));
|
|
12
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
|
|
19
|
+
const useUtilityClasses = () => {
|
|
20
|
+
const slots = {
|
|
21
|
+
root: ['root']
|
|
22
|
+
};
|
|
23
|
+
return (0, _composeClasses.default)(slots, slot => (0, _generateUtilityClass.default)('MuiStack', slot), {});
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* Demos:
|
|
28
|
+
*
|
|
29
|
+
* - [Stack](https://next.mui.com/material-ui/react-stack/)
|
|
30
|
+
*
|
|
31
|
+
* API:
|
|
32
|
+
*
|
|
33
|
+
* - [PigmentStack API](https://next.mui.com/material-ui/api/pigment-stack/)
|
|
34
|
+
*/
|
|
35
|
+
const PigmentStack = /*#__PURE__*/React.forwardRef(function PigmentStack({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}, ref) {
|
|
39
|
+
const classes = useUtilityClasses();
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Stack.default, {
|
|
41
|
+
ref: ref,
|
|
42
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
process.env.NODE_ENV !== "production" ? PigmentStack.propTypes /* remove-proptypes */ = {
|
|
47
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
48
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
49
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
50
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
51
|
+
/**
|
|
52
|
+
* The content of the component.
|
|
53
|
+
*/
|
|
54
|
+
children: _propTypes.default.node,
|
|
55
|
+
/**
|
|
56
|
+
* @ignore
|
|
57
|
+
*/
|
|
58
|
+
className: _propTypes.default.string,
|
|
59
|
+
/**
|
|
60
|
+
* Defines the `flex-direction` style property.
|
|
61
|
+
* It is applied for all screen sizes.
|
|
62
|
+
* @default 'column'
|
|
63
|
+
*/
|
|
64
|
+
direction: _propTypes.default.oneOfType([_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), _propTypes.default.shape({
|
|
65
|
+
lg: _propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']),
|
|
66
|
+
md: _propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']),
|
|
67
|
+
sm: _propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']),
|
|
68
|
+
xl: _propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']),
|
|
69
|
+
xs: _propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])
|
|
70
|
+
})]),
|
|
71
|
+
/**
|
|
72
|
+
* Add an element between each child.
|
|
73
|
+
*/
|
|
74
|
+
divider: _propTypes.default.node,
|
|
75
|
+
/**
|
|
76
|
+
* Defines the space between immediate children.
|
|
77
|
+
* @default 0
|
|
78
|
+
*/
|
|
79
|
+
spacing: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])), _propTypes.default.number, _propTypes.default.shape({
|
|
80
|
+
lg: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
81
|
+
md: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
82
|
+
sm: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
83
|
+
xl: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
84
|
+
xs: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
85
|
+
}), _propTypes.default.string]),
|
|
86
|
+
/**
|
|
87
|
+
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
88
|
+
*/
|
|
89
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
90
|
+
} : void 0;
|
|
91
|
+
var _default = exports.default = PigmentStack;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
var _exportNames = {
|
|
8
|
+
stackClasses: true
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "default", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _PigmentStack.default;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "stackClasses", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return _stackClasses.default;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
var _PigmentStack = _interopRequireWildcard(require("./PigmentStack"));
|
|
23
|
+
Object.keys(_PigmentStack).forEach(function (key) {
|
|
24
|
+
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
26
|
+
if (key in exports && exports[key] === _PigmentStack[key]) return;
|
|
27
|
+
Object.defineProperty(exports, key, {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return _PigmentStack[key];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
var _stackClasses = _interopRequireDefault(require("../Stack/stackClasses"));
|
|
35
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
36
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/node/Popover/Popover.js
CHANGED
|
@@ -19,6 +19,7 @@ var _elementTypeAcceptingRef = _interopRequireDefault(require("@mui/utils/elemen
|
|
|
19
19
|
var _integerPropType = _interopRequireDefault(require("@mui/utils/integerPropType"));
|
|
20
20
|
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
|
21
21
|
var _zeroStyled = require("../zero-styled");
|
|
22
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
22
23
|
var _debounce = _interopRequireDefault(require("../utils/debounce"));
|
|
23
24
|
var _ownerDocument = _interopRequireDefault(require("../utils/ownerDocument"));
|
|
24
25
|
var _ownerWindow = _interopRequireDefault(require("../utils/ownerWindow"));
|
|
@@ -27,10 +28,10 @@ var _Grow = _interopRequireDefault(require("../Grow"));
|
|
|
27
28
|
var _Modal = _interopRequireDefault(require("../Modal"));
|
|
28
29
|
var _Paper = _interopRequireDefault(require("../Paper"));
|
|
29
30
|
var _popoverClasses = require("./popoverClasses");
|
|
31
|
+
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
30
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
33
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
32
34
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
33
|
-
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiPopover');
|
|
34
35
|
function getOffsetTop(rect, vertical) {
|
|
35
36
|
let offset = 0;
|
|
36
37
|
if (typeof vertical === 'number') {
|
|
@@ -92,8 +93,8 @@ const PopoverPaper = exports.PopoverPaper = (0, _zeroStyled.styled)(_Paper.defau
|
|
|
92
93
|
outline: 0
|
|
93
94
|
});
|
|
94
95
|
const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
95
|
-
var _slotProps$paper
|
|
96
|
-
const props =
|
|
96
|
+
var _slotProps$paper;
|
|
97
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
97
98
|
props: inProps,
|
|
98
99
|
name: 'MuiPopover'
|
|
99
100
|
});
|
|
@@ -113,8 +114,8 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
113
114
|
marginThreshold = 16,
|
|
114
115
|
open,
|
|
115
116
|
PaperProps: PaperPropsProp = {},
|
|
116
|
-
slots,
|
|
117
|
-
slotProps,
|
|
117
|
+
slots = {},
|
|
118
|
+
slotProps = {},
|
|
118
119
|
transformOrigin = {
|
|
119
120
|
vertical: 'top',
|
|
120
121
|
horizontal: 'left'
|
|
@@ -130,7 +131,6 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
130
131
|
} = props;
|
|
131
132
|
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
132
133
|
const paperRef = React.useRef();
|
|
133
|
-
const handlePaperRef = (0, _useForkRef.default)(paperRef, externalPaperSlotProps.ref);
|
|
134
134
|
const ownerState = {
|
|
135
135
|
...props,
|
|
136
136
|
anchorOrigin,
|
|
@@ -308,33 +308,33 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
308
308
|
// If the anchorEl prop is provided, use its parent body element as the container
|
|
309
309
|
// If neither are provided let the Modal take care of choosing the container
|
|
310
310
|
const container = containerProp || (anchorEl ? (0, _ownerDocument.default)(resolveAnchorEl(anchorEl)).body : undefined);
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
311
|
+
const externalForwardedProps = {
|
|
312
|
+
slots,
|
|
313
|
+
slotProps: {
|
|
314
|
+
...slotProps,
|
|
315
|
+
paper: externalPaperSlotProps
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
const [PaperSlot, paperProps] = (0, _useSlot.default)('paper', {
|
|
319
|
+
elementType: PopoverPaper,
|
|
320
|
+
externalForwardedProps,
|
|
321
|
+
additionalProps: {
|
|
322
|
+
elevation,
|
|
323
|
+
className: (0, _clsx.default)(classes.paper, externalPaperSlotProps == null ? void 0 : externalPaperSlotProps.className),
|
|
317
324
|
style: isPositioned ? externalPaperSlotProps.style : {
|
|
318
325
|
...externalPaperSlotProps.style,
|
|
319
326
|
opacity: 0
|
|
320
327
|
}
|
|
321
328
|
},
|
|
322
|
-
|
|
323
|
-
elevation,
|
|
324
|
-
ref: handlePaperRef
|
|
325
|
-
},
|
|
326
|
-
ownerState,
|
|
327
|
-
className: (0, _clsx.default)(classes.paper, externalPaperSlotProps == null ? void 0 : externalPaperSlotProps.className)
|
|
329
|
+
ownerState
|
|
328
330
|
});
|
|
329
|
-
const {
|
|
331
|
+
const [RootSlot, {
|
|
330
332
|
slotProps: rootSlotPropsProp,
|
|
331
333
|
...rootProps
|
|
332
|
-
} = (0,
|
|
333
|
-
elementType:
|
|
334
|
-
|
|
335
|
-
externalForwardedProps: other,
|
|
334
|
+
}] = (0, _useSlot.default)('root', {
|
|
335
|
+
elementType: PopoverRoot,
|
|
336
|
+
externalForwardedProps,
|
|
336
337
|
additionalProps: {
|
|
337
|
-
ref,
|
|
338
338
|
slotProps: {
|
|
339
339
|
backdrop: {
|
|
340
340
|
invisible: true
|
|
@@ -346,12 +346,15 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
346
346
|
ownerState,
|
|
347
347
|
className: (0, _clsx.default)(classes.root, className)
|
|
348
348
|
});
|
|
349
|
+
const handlePaperRef = (0, _useForkRef.default)(paperRef, paperProps.ref);
|
|
349
350
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RootSlot, {
|
|
350
351
|
...rootProps,
|
|
351
352
|
...(!(0, _utils.isHostComponent)(RootSlot) && {
|
|
352
353
|
slotProps: rootSlotPropsProp,
|
|
353
354
|
disableScrollLock
|
|
354
355
|
}),
|
|
356
|
+
...other,
|
|
357
|
+
ref: ref,
|
|
355
358
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionComponent, {
|
|
356
359
|
appear: true,
|
|
357
360
|
in: open,
|
|
@@ -361,6 +364,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
361
364
|
...TransitionProps,
|
|
362
365
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperSlot, {
|
|
363
366
|
...paperProps,
|
|
367
|
+
ref: handlePaperRef,
|
|
364
368
|
children: children
|
|
365
369
|
})
|
|
366
370
|
})
|
|
@@ -483,9 +487,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
483
487
|
component: _elementTypeAcceptingRef.default
|
|
484
488
|
}),
|
|
485
489
|
/**
|
|
486
|
-
* The
|
|
487
|
-
* You can override the existing props or add new ones.
|
|
488
|
-
*
|
|
490
|
+
* The props used for each slot inside.
|
|
489
491
|
* @default {}
|
|
490
492
|
*/
|
|
491
493
|
slotProps: _propTypes.default.shape({
|
|
@@ -494,7 +496,6 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
494
496
|
}),
|
|
495
497
|
/**
|
|
496
498
|
* The components used for each slot inside.
|
|
497
|
-
*
|
|
498
499
|
* @default {}
|
|
499
500
|
*/
|
|
500
501
|
slots: _propTypes.default.shape({
|
package/node/Popper/Popper.js
CHANGED
|
@@ -7,16 +7,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _Popper = require("@mui/base/Popper");
|
|
10
|
-
var
|
|
10
|
+
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
11
11
|
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
12
12
|
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var React = _interopRequireWildcard(require("react"));
|
|
15
|
-
var
|
|
15
|
+
var _zeroStyled = require("../zero-styled");
|
|
16
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
16
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
-
const PopperRoot = (0,
|
|
20
|
+
const PopperRoot = (0, _zeroStyled.styled)(_Popper.Popper, {
|
|
20
21
|
name: 'MuiPopper',
|
|
21
22
|
slot: 'Root',
|
|
22
23
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -26,18 +27,18 @@ const PopperRoot = (0, _styles.styled)(_Popper.Popper, {
|
|
|
26
27
|
*
|
|
27
28
|
* Demos:
|
|
28
29
|
*
|
|
29
|
-
* - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
|
|
30
|
-
* - [Menu](https://mui.com/material-ui/react-menu/)
|
|
31
|
-
* - [Popper](https://mui.com/material-ui/react-popper/)
|
|
30
|
+
* - [Autocomplete](https://next.mui.com/material-ui/react-autocomplete/)
|
|
31
|
+
* - [Menu](https://next.mui.com/material-ui/react-menu/)
|
|
32
|
+
* - [Popper](https://next.mui.com/material-ui/react-popper/)
|
|
32
33
|
*
|
|
33
34
|
* API:
|
|
34
35
|
*
|
|
35
|
-
* - [Popper API](https://mui.com/material-ui/api/popper/)
|
|
36
|
+
* - [Popper API](https://next.mui.com/material-ui/api/popper/)
|
|
36
37
|
*/
|
|
37
38
|
const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
38
39
|
var _slots$root;
|
|
39
|
-
const
|
|
40
|
-
const props = (0,
|
|
40
|
+
const isRtl = (0, _RtlProvider.useRtl)();
|
|
41
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
41
42
|
props: inProps,
|
|
42
43
|
name: 'MuiPopper'
|
|
43
44
|
});
|
|
@@ -75,7 +76,7 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
|
75
76
|
};
|
|
76
77
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PopperRoot, {
|
|
77
78
|
as: component,
|
|
78
|
-
direction:
|
|
79
|
+
direction: isRtl ? 'rtl' : 'ltr',
|
|
79
80
|
slots: {
|
|
80
81
|
root: RootComponent
|
|
81
82
|
},
|
package/node/Radio/Radio.js
CHANGED
|
@@ -20,10 +20,10 @@ var _useRadioGroup = _interopRequireDefault(require("../RadioGroup/useRadioGroup
|
|
|
20
20
|
var _radioClasses = _interopRequireWildcard(require("./radioClasses"));
|
|
21
21
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
22
22
|
var _zeroStyled = require("../zero-styled");
|
|
23
|
+
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
23
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
25
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
26
|
-
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiRadio');
|
|
27
27
|
const useUtilityClasses = ownerState => {
|
|
28
28
|
const {
|
|
29
29
|
classes,
|
|
@@ -113,7 +113,7 @@ const defaultCheckedIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadioButtonIcon.de
|
|
|
113
113
|
const defaultIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadioButtonIcon.default, {});
|
|
114
114
|
const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
115
115
|
var _defaultIcon$props$fo, _defaultCheckedIcon$p;
|
|
116
|
-
const props =
|
|
116
|
+
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
117
117
|
props: inProps,
|
|
118
118
|
name: 'MuiRadio'
|
|
119
119
|
});
|