@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
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["onEntering"],
|
|
6
|
-
_excluded2 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"],
|
|
7
|
-
_excluded3 = ["slotProps"];
|
|
8
3
|
import * as React from 'react';
|
|
9
4
|
import PropTypes from 'prop-types';
|
|
10
5
|
import clsx from 'clsx';
|
|
11
|
-
import { useSlotProps, isHostComponent } from '@mui/base/utils';
|
|
12
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
7
|
import HTMLElementType from '@mui/utils/HTMLElementType';
|
|
14
8
|
import refType from '@mui/utils/refType';
|
|
15
9
|
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
|
16
10
|
import integerPropType from '@mui/utils/integerPropType';
|
|
17
11
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
12
|
+
import isHostComponent from "../utils/isHostComponent.js";
|
|
13
|
+
import { styled } from "../zero-styled/index.js";
|
|
14
|
+
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
15
|
+
import debounce from "../utils/debounce.js";
|
|
16
|
+
import ownerDocument from "../utils/ownerDocument.js";
|
|
17
|
+
import ownerWindow from "../utils/ownerWindow.js";
|
|
18
|
+
import useForkRef from "../utils/useForkRef.js";
|
|
19
|
+
import Grow from "../Grow/index.js";
|
|
20
|
+
import Modal from "../Modal/index.js";
|
|
21
|
+
import PaperBase from "../Paper/index.js";
|
|
22
|
+
import { getPopoverUtilityClass } from "./popoverClasses.js";
|
|
23
|
+
import useSlot from "../utils/useSlot.js";
|
|
27
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
const useThemeProps = createUseThemeProps('MuiPopover');
|
|
29
25
|
export function getOffsetTop(rect, vertical) {
|
|
30
26
|
let offset = 0;
|
|
31
27
|
if (typeof vertical === 'number') {
|
|
@@ -87,45 +83,45 @@ export const PopoverPaper = styled(PaperBase, {
|
|
|
87
83
|
outline: 0
|
|
88
84
|
});
|
|
89
85
|
const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
90
|
-
const props =
|
|
86
|
+
const props = useDefaultProps({
|
|
91
87
|
props: inProps,
|
|
92
88
|
name: 'MuiPopover'
|
|
93
89
|
});
|
|
94
90
|
const {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
91
|
+
action,
|
|
92
|
+
anchorEl,
|
|
93
|
+
anchorOrigin = {
|
|
94
|
+
vertical: 'top',
|
|
95
|
+
horizontal: 'left'
|
|
96
|
+
},
|
|
97
|
+
anchorPosition,
|
|
98
|
+
anchorReference = 'anchorEl',
|
|
99
|
+
children,
|
|
100
|
+
className,
|
|
101
|
+
container: containerProp,
|
|
102
|
+
elevation = 8,
|
|
103
|
+
marginThreshold = 16,
|
|
104
|
+
open,
|
|
105
|
+
PaperProps: PaperPropsProp = {},
|
|
106
|
+
slots = {},
|
|
107
|
+
slotProps = {},
|
|
108
|
+
transformOrigin = {
|
|
109
|
+
vertical: 'top',
|
|
110
|
+
horizontal: 'left'
|
|
111
|
+
},
|
|
112
|
+
TransitionComponent = Grow,
|
|
113
|
+
transitionDuration: transitionDurationProp = 'auto',
|
|
114
|
+
TransitionProps: {
|
|
115
|
+
onEntering,
|
|
116
|
+
...TransitionProps
|
|
117
|
+
} = {},
|
|
118
|
+
disableScrollLock = false,
|
|
119
|
+
...other
|
|
120
|
+
} = props;
|
|
125
121
|
const externalPaperSlotProps = slotProps?.paper ?? PaperPropsProp;
|
|
126
122
|
const paperRef = React.useRef();
|
|
127
|
-
const
|
|
128
|
-
|
|
123
|
+
const ownerState = {
|
|
124
|
+
...props,
|
|
129
125
|
anchorOrigin,
|
|
130
126
|
anchorReference,
|
|
131
127
|
elevation,
|
|
@@ -135,7 +131,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
135
131
|
TransitionComponent,
|
|
136
132
|
transitionDuration: transitionDurationProp,
|
|
137
133
|
TransitionProps
|
|
138
|
-
}
|
|
134
|
+
};
|
|
139
135
|
const classes = useUtilityClasses(ownerState);
|
|
140
136
|
|
|
141
137
|
// Returns the top/left offset of the position
|
|
@@ -301,59 +297,67 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
301
297
|
// If the anchorEl prop is provided, use its parent body element as the container
|
|
302
298
|
// If neither are provided let the Modal take care of choosing the container
|
|
303
299
|
const container = containerProp || (anchorEl ? ownerDocument(resolveAnchorEl(anchorEl)).body : undefined);
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
300
|
+
const externalForwardedProps = {
|
|
301
|
+
slots,
|
|
302
|
+
slotProps: {
|
|
303
|
+
...slotProps,
|
|
304
|
+
paper: externalPaperSlotProps
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
const [PaperSlot, paperProps] = useSlot('paper', {
|
|
308
|
+
elementType: PopoverPaper,
|
|
309
|
+
externalForwardedProps,
|
|
313
310
|
additionalProps: {
|
|
314
311
|
elevation,
|
|
315
|
-
|
|
312
|
+
className: clsx(classes.paper, externalPaperSlotProps?.className),
|
|
313
|
+
style: isPositioned ? externalPaperSlotProps.style : {
|
|
314
|
+
...externalPaperSlotProps.style,
|
|
315
|
+
opacity: 0
|
|
316
|
+
}
|
|
316
317
|
},
|
|
317
|
-
ownerState
|
|
318
|
-
className: clsx(classes.paper, externalPaperSlotProps?.className)
|
|
318
|
+
ownerState
|
|
319
319
|
});
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
container,
|
|
332
|
-
open
|
|
320
|
+
const [RootSlot, {
|
|
321
|
+
slotProps: rootSlotPropsProp,
|
|
322
|
+
...rootProps
|
|
323
|
+
}] = useSlot('root', {
|
|
324
|
+
elementType: PopoverRoot,
|
|
325
|
+
externalForwardedProps,
|
|
326
|
+
additionalProps: {
|
|
327
|
+
slotProps: {
|
|
328
|
+
backdrop: {
|
|
329
|
+
invisible: true
|
|
330
|
+
}
|
|
333
331
|
},
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
container,
|
|
333
|
+
open
|
|
334
|
+
},
|
|
335
|
+
ownerState,
|
|
336
|
+
className: clsx(classes.root, className)
|
|
337
|
+
});
|
|
338
|
+
const handlePaperRef = useForkRef(paperRef, paperProps.ref);
|
|
339
|
+
return /*#__PURE__*/_jsx(RootSlot, {
|
|
340
|
+
...rootProps,
|
|
341
|
+
...(!isHostComponent(RootSlot) && {
|
|
342
|
+
slotProps: rootSlotPropsProp,
|
|
343
|
+
disableScrollLock
|
|
336
344
|
}),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
rootProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded3);
|
|
341
|
-
return /*#__PURE__*/_jsx(RootSlot, _extends({}, rootProps, !isHostComponent(RootSlot) && {
|
|
342
|
-
slotProps: rootSlotPropsProp,
|
|
343
|
-
disableScrollLock
|
|
344
|
-
}, {
|
|
345
|
-
children: /*#__PURE__*/_jsx(TransitionComponent, _extends({
|
|
345
|
+
...other,
|
|
346
|
+
ref: ref,
|
|
347
|
+
children: /*#__PURE__*/_jsx(TransitionComponent, {
|
|
346
348
|
appear: true,
|
|
347
349
|
in: open,
|
|
348
350
|
onEntering: handleEntering,
|
|
349
351
|
onExited: handleExited,
|
|
350
|
-
timeout: transitionDuration
|
|
351
|
-
|
|
352
|
-
children: /*#__PURE__*/_jsx(PaperSlot,
|
|
352
|
+
timeout: transitionDuration,
|
|
353
|
+
...TransitionProps,
|
|
354
|
+
children: /*#__PURE__*/_jsx(PaperSlot, {
|
|
355
|
+
...paperProps,
|
|
356
|
+
ref: handlePaperRef,
|
|
353
357
|
children: children
|
|
354
|
-
})
|
|
355
|
-
})
|
|
356
|
-
})
|
|
358
|
+
})
|
|
359
|
+
})
|
|
360
|
+
});
|
|
357
361
|
});
|
|
358
362
|
process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */ = {
|
|
359
363
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -472,9 +476,7 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
472
476
|
component: elementTypeAcceptingRef
|
|
473
477
|
}),
|
|
474
478
|
/**
|
|
475
|
-
* The
|
|
476
|
-
* You can override the existing props or add new ones.
|
|
477
|
-
*
|
|
479
|
+
* The props used for each slot inside.
|
|
478
480
|
* @default {}
|
|
479
481
|
*/
|
|
480
482
|
slotProps: PropTypes.shape({
|
|
@@ -483,7 +485,6 @@ process.env.NODE_ENV !== "production" ? Popover.propTypes /* remove-proptypes */
|
|
|
483
485
|
}),
|
|
484
486
|
/**
|
|
485
487
|
* The components used for each slot inside.
|
|
486
|
-
*
|
|
487
488
|
* @default {}
|
|
488
489
|
*/
|
|
489
490
|
slots: PropTypes.shape({
|
package/modern/Popover/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export { default } from
|
|
4
|
-
export * from
|
|
5
|
-
export { default as popoverClasses } from
|
|
6
|
-
export * from
|
|
3
|
+
export { default } from "./Popover.js";
|
|
4
|
+
export * from "./Popover.js";
|
|
5
|
+
export { default as popoverClasses } from "./popoverClasses.js";
|
|
6
|
+
export * from "./popoverClasses.js";
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { chainPropTypes, HTMLElementType, refType, unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
5
|
+
import { createPopper } from '@popperjs/core';
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
9
|
+
import Portal from "../Portal/index.js";
|
|
10
|
+
import { getPopperUtilityClass } from "./popperClasses.js";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
function flipPlacement(placement, direction) {
|
|
13
|
+
if (direction === 'ltr') {
|
|
14
|
+
return placement;
|
|
15
|
+
}
|
|
16
|
+
switch (placement) {
|
|
17
|
+
case 'bottom-end':
|
|
18
|
+
return 'bottom-start';
|
|
19
|
+
case 'bottom-start':
|
|
20
|
+
return 'bottom-end';
|
|
21
|
+
case 'top-end':
|
|
22
|
+
return 'top-start';
|
|
23
|
+
case 'top-start':
|
|
24
|
+
return 'top-end';
|
|
25
|
+
default:
|
|
26
|
+
return placement;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function resolveAnchorEl(anchorEl) {
|
|
30
|
+
return typeof anchorEl === 'function' ? anchorEl() : anchorEl;
|
|
31
|
+
}
|
|
32
|
+
function isHTMLElement(element) {
|
|
33
|
+
return element.nodeType !== undefined;
|
|
34
|
+
}
|
|
35
|
+
function isVirtualElement(element) {
|
|
36
|
+
return !isHTMLElement(element);
|
|
37
|
+
}
|
|
38
|
+
const useUtilityClasses = ownerState => {
|
|
39
|
+
const {
|
|
40
|
+
classes
|
|
41
|
+
} = ownerState;
|
|
42
|
+
const slots = {
|
|
43
|
+
root: ['root']
|
|
44
|
+
};
|
|
45
|
+
return composeClasses(slots, getPopperUtilityClass, classes);
|
|
46
|
+
};
|
|
47
|
+
const defaultPopperOptions = {};
|
|
48
|
+
const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {
|
|
49
|
+
const {
|
|
50
|
+
anchorEl,
|
|
51
|
+
children,
|
|
52
|
+
direction,
|
|
53
|
+
disablePortal,
|
|
54
|
+
modifiers,
|
|
55
|
+
open,
|
|
56
|
+
placement: initialPlacement,
|
|
57
|
+
popperOptions,
|
|
58
|
+
popperRef: popperRefProp,
|
|
59
|
+
slotProps = {},
|
|
60
|
+
slots = {},
|
|
61
|
+
TransitionProps,
|
|
62
|
+
// @ts-ignore internal logic
|
|
63
|
+
ownerState: ownerStateProp,
|
|
64
|
+
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
65
|
+
...other
|
|
66
|
+
} = props;
|
|
67
|
+
const tooltipRef = React.useRef(null);
|
|
68
|
+
const ownRef = useForkRef(tooltipRef, forwardedRef);
|
|
69
|
+
const popperRef = React.useRef(null);
|
|
70
|
+
const handlePopperRef = useForkRef(popperRef, popperRefProp);
|
|
71
|
+
const handlePopperRefRef = React.useRef(handlePopperRef);
|
|
72
|
+
useEnhancedEffect(() => {
|
|
73
|
+
handlePopperRefRef.current = handlePopperRef;
|
|
74
|
+
}, [handlePopperRef]);
|
|
75
|
+
React.useImperativeHandle(popperRefProp, () => popperRef.current, []);
|
|
76
|
+
const rtlPlacement = flipPlacement(initialPlacement, direction);
|
|
77
|
+
/**
|
|
78
|
+
* placement initialized from prop but can change during lifetime if modifiers.flip.
|
|
79
|
+
* modifiers.flip is essentially a flip for controlled/uncontrolled behavior
|
|
80
|
+
*/
|
|
81
|
+
const [placement, setPlacement] = React.useState(rtlPlacement);
|
|
82
|
+
const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));
|
|
83
|
+
React.useEffect(() => {
|
|
84
|
+
if (popperRef.current) {
|
|
85
|
+
popperRef.current.forceUpdate();
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
React.useEffect(() => {
|
|
89
|
+
if (anchorEl) {
|
|
90
|
+
setResolvedAnchorElement(resolveAnchorEl(anchorEl));
|
|
91
|
+
}
|
|
92
|
+
}, [anchorEl]);
|
|
93
|
+
useEnhancedEffect(() => {
|
|
94
|
+
if (!resolvedAnchorElement || !open) {
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
const handlePopperUpdate = data => {
|
|
98
|
+
setPlacement(data.placement);
|
|
99
|
+
};
|
|
100
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
101
|
+
if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {
|
|
102
|
+
const box = resolvedAnchorElement.getBoundingClientRect();
|
|
103
|
+
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
104
|
+
console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
let popperModifiers = [{
|
|
109
|
+
name: 'preventOverflow',
|
|
110
|
+
options: {
|
|
111
|
+
altBoundary: disablePortal
|
|
112
|
+
}
|
|
113
|
+
}, {
|
|
114
|
+
name: 'flip',
|
|
115
|
+
options: {
|
|
116
|
+
altBoundary: disablePortal
|
|
117
|
+
}
|
|
118
|
+
}, {
|
|
119
|
+
name: 'onUpdate',
|
|
120
|
+
enabled: true,
|
|
121
|
+
phase: 'afterWrite',
|
|
122
|
+
fn: ({
|
|
123
|
+
state
|
|
124
|
+
}) => {
|
|
125
|
+
handlePopperUpdate(state);
|
|
126
|
+
}
|
|
127
|
+
}];
|
|
128
|
+
if (modifiers != null) {
|
|
129
|
+
popperModifiers = popperModifiers.concat(modifiers);
|
|
130
|
+
}
|
|
131
|
+
if (popperOptions && popperOptions.modifiers != null) {
|
|
132
|
+
popperModifiers = popperModifiers.concat(popperOptions.modifiers);
|
|
133
|
+
}
|
|
134
|
+
const popper = createPopper(resolvedAnchorElement, tooltipRef.current, {
|
|
135
|
+
placement: rtlPlacement,
|
|
136
|
+
...popperOptions,
|
|
137
|
+
modifiers: popperModifiers
|
|
138
|
+
});
|
|
139
|
+
handlePopperRefRef.current(popper);
|
|
140
|
+
return () => {
|
|
141
|
+
popper.destroy();
|
|
142
|
+
handlePopperRefRef.current(null);
|
|
143
|
+
};
|
|
144
|
+
}, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);
|
|
145
|
+
const childProps = {
|
|
146
|
+
placement: placement
|
|
147
|
+
};
|
|
148
|
+
if (TransitionProps !== null) {
|
|
149
|
+
childProps.TransitionProps = TransitionProps;
|
|
150
|
+
}
|
|
151
|
+
const classes = useUtilityClasses(props);
|
|
152
|
+
const Root = slots.root ?? 'div';
|
|
153
|
+
const rootProps = useSlotProps({
|
|
154
|
+
elementType: Root,
|
|
155
|
+
externalSlotProps: slotProps.root,
|
|
156
|
+
externalForwardedProps: other,
|
|
157
|
+
additionalProps: {
|
|
158
|
+
role: 'tooltip',
|
|
159
|
+
ref: ownRef
|
|
160
|
+
},
|
|
161
|
+
ownerState: props,
|
|
162
|
+
className: classes.root
|
|
163
|
+
});
|
|
164
|
+
return /*#__PURE__*/_jsx(Root, {
|
|
165
|
+
...rootProps,
|
|
166
|
+
children: typeof children === 'function' ? children(childProps) : children
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @ignore - internal component.
|
|
172
|
+
*/
|
|
173
|
+
const Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {
|
|
174
|
+
const {
|
|
175
|
+
anchorEl,
|
|
176
|
+
children,
|
|
177
|
+
container: containerProp,
|
|
178
|
+
direction = 'ltr',
|
|
179
|
+
disablePortal = false,
|
|
180
|
+
keepMounted = false,
|
|
181
|
+
modifiers,
|
|
182
|
+
open,
|
|
183
|
+
placement = 'bottom',
|
|
184
|
+
popperOptions = defaultPopperOptions,
|
|
185
|
+
popperRef,
|
|
186
|
+
style,
|
|
187
|
+
transition = false,
|
|
188
|
+
slotProps = {},
|
|
189
|
+
slots = {},
|
|
190
|
+
...other
|
|
191
|
+
} = props;
|
|
192
|
+
const [exited, setExited] = React.useState(true);
|
|
193
|
+
const handleEnter = () => {
|
|
194
|
+
setExited(false);
|
|
195
|
+
};
|
|
196
|
+
const handleExited = () => {
|
|
197
|
+
setExited(true);
|
|
198
|
+
};
|
|
199
|
+
if (!keepMounted && !open && (!transition || exited)) {
|
|
200
|
+
return null;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// If the container prop is provided, use that
|
|
204
|
+
// If the anchorEl prop is provided, use its parent body element as the container
|
|
205
|
+
// If neither are provided let the Modal take care of choosing the container
|
|
206
|
+
let container;
|
|
207
|
+
if (containerProp) {
|
|
208
|
+
container = containerProp;
|
|
209
|
+
} else if (anchorEl) {
|
|
210
|
+
const resolvedAnchorEl = resolveAnchorEl(anchorEl);
|
|
211
|
+
container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;
|
|
212
|
+
}
|
|
213
|
+
const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;
|
|
214
|
+
const transitionProps = transition ? {
|
|
215
|
+
in: open,
|
|
216
|
+
onEnter: handleEnter,
|
|
217
|
+
onExited: handleExited
|
|
218
|
+
} : undefined;
|
|
219
|
+
return /*#__PURE__*/_jsx(Portal, {
|
|
220
|
+
disablePortal: disablePortal,
|
|
221
|
+
container: container,
|
|
222
|
+
children: /*#__PURE__*/_jsx(PopperTooltip, {
|
|
223
|
+
anchorEl: anchorEl,
|
|
224
|
+
direction: direction,
|
|
225
|
+
disablePortal: disablePortal,
|
|
226
|
+
modifiers: modifiers,
|
|
227
|
+
ref: forwardedRef,
|
|
228
|
+
open: transition ? !exited : open,
|
|
229
|
+
placement: placement,
|
|
230
|
+
popperOptions: popperOptions,
|
|
231
|
+
popperRef: popperRef,
|
|
232
|
+
slotProps: slotProps,
|
|
233
|
+
slots: slots,
|
|
234
|
+
...other,
|
|
235
|
+
style: {
|
|
236
|
+
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
237
|
+
position: 'fixed',
|
|
238
|
+
// Fix Popper.js display issue
|
|
239
|
+
top: 0,
|
|
240
|
+
left: 0,
|
|
241
|
+
display,
|
|
242
|
+
...style
|
|
243
|
+
},
|
|
244
|
+
TransitionProps: transitionProps,
|
|
245
|
+
children: children
|
|
246
|
+
})
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */ = {
|
|
250
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
251
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
252
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
253
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
254
|
+
/**
|
|
255
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
256
|
+
* or a function that returns either.
|
|
257
|
+
* It's used to set the position of the popper.
|
|
258
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
259
|
+
*/
|
|
260
|
+
anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {
|
|
261
|
+
if (props.open) {
|
|
262
|
+
const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);
|
|
263
|
+
if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {
|
|
264
|
+
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
265
|
+
if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
266
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
267
|
+
}
|
|
268
|
+
} else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {
|
|
269
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\n'));
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return null;
|
|
273
|
+
}),
|
|
274
|
+
/**
|
|
275
|
+
* Popper render function or node.
|
|
276
|
+
*/
|
|
277
|
+
children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),
|
|
278
|
+
/**
|
|
279
|
+
* An HTML element or function that returns one.
|
|
280
|
+
* The `container` will have the portal children appended to it.
|
|
281
|
+
*
|
|
282
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
283
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
284
|
+
*
|
|
285
|
+
* By default, it uses the body of the top-level document object,
|
|
286
|
+
* so it's simply `document.body` most of the time.
|
|
287
|
+
*/
|
|
288
|
+
container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),
|
|
289
|
+
/**
|
|
290
|
+
* Direction of the text.
|
|
291
|
+
* @default 'ltr'
|
|
292
|
+
*/
|
|
293
|
+
direction: PropTypes.oneOf(['ltr', 'rtl']),
|
|
294
|
+
/**
|
|
295
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
296
|
+
* @default false
|
|
297
|
+
*/
|
|
298
|
+
disablePortal: PropTypes.bool,
|
|
299
|
+
/**
|
|
300
|
+
* Always keep the children in the DOM.
|
|
301
|
+
* This prop can be useful in SEO situation or
|
|
302
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
303
|
+
* @default false
|
|
304
|
+
*/
|
|
305
|
+
keepMounted: PropTypes.bool,
|
|
306
|
+
/**
|
|
307
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
308
|
+
* most of its features are fully encapsulated "modifiers".
|
|
309
|
+
*
|
|
310
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
311
|
+
* compute the position of the popper.
|
|
312
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
313
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
314
|
+
*/
|
|
315
|
+
modifiers: PropTypes.arrayOf(PropTypes.shape({
|
|
316
|
+
data: PropTypes.object,
|
|
317
|
+
effect: PropTypes.func,
|
|
318
|
+
enabled: PropTypes.bool,
|
|
319
|
+
fn: PropTypes.func,
|
|
320
|
+
name: PropTypes.any,
|
|
321
|
+
options: PropTypes.object,
|
|
322
|
+
phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
|
|
323
|
+
requires: PropTypes.arrayOf(PropTypes.string),
|
|
324
|
+
requiresIfExists: PropTypes.arrayOf(PropTypes.string)
|
|
325
|
+
})),
|
|
326
|
+
/**
|
|
327
|
+
* If `true`, the component is shown.
|
|
328
|
+
*/
|
|
329
|
+
open: PropTypes.bool.isRequired,
|
|
330
|
+
/**
|
|
331
|
+
* Popper placement.
|
|
332
|
+
* @default 'bottom'
|
|
333
|
+
*/
|
|
334
|
+
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
335
|
+
/**
|
|
336
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
337
|
+
* @default {}
|
|
338
|
+
*/
|
|
339
|
+
popperOptions: PropTypes.shape({
|
|
340
|
+
modifiers: PropTypes.array,
|
|
341
|
+
onFirstUpdate: PropTypes.func,
|
|
342
|
+
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
343
|
+
strategy: PropTypes.oneOf(['absolute', 'fixed'])
|
|
344
|
+
}),
|
|
345
|
+
/**
|
|
346
|
+
* A ref that points to the used popper instance.
|
|
347
|
+
*/
|
|
348
|
+
popperRef: refType,
|
|
349
|
+
/**
|
|
350
|
+
* The props used for each slot inside the Popper.
|
|
351
|
+
* @default {}
|
|
352
|
+
*/
|
|
353
|
+
slotProps: PropTypes.shape({
|
|
354
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
355
|
+
}),
|
|
356
|
+
/**
|
|
357
|
+
* The components used for each slot inside the Popper.
|
|
358
|
+
* Either a string to use a HTML element or a component.
|
|
359
|
+
* @default {}
|
|
360
|
+
*/
|
|
361
|
+
slots: PropTypes.shape({
|
|
362
|
+
root: PropTypes.elementType
|
|
363
|
+
}),
|
|
364
|
+
/**
|
|
365
|
+
* Help supporting a react-transition-group/Transition component.
|
|
366
|
+
* @default false
|
|
367
|
+
*/
|
|
368
|
+
transition: PropTypes.bool
|
|
369
|
+
} : void 0;
|
|
370
|
+
export default Popper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|