@e-llm-studio/citation 0.0.71 → 0.0.73
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/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
- package/dist/cjs/features/Bookemon/BookPreview/BookPreview.js +1 -1
- package/dist/cjs/features/Bookemon/Bookemon.js +1 -1
- package/dist/cjs/features/CodeCitation/CodeCitation.js +1 -1
- package/dist/cjs/features/PaginatedTable/PaginatedTable.js +2 -0
- package/dist/cjs/features/PaginatedTable/PaginatedTable.js.map +1 -0
- package/dist/cjs/features/PaginatedTable/paginatedTable.module.css.js +2 -0
- package/dist/cjs/features/PaginatedTable/paginatedTable.module.css.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +2 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +2 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +2 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/AccordionActions/AccordionActions.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/AccordionActions/AccordionActions.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/AppBar/AppBar.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/AppBar/AppBar.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Avatar/Avatar.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Avatar/Avatar.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Badge/Badge.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Badge/Badge.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/BottomNavigation/BottomNavigation.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/BottomNavigation/BottomNavigation.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Box/Box.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Box/Box.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Button/Button.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Button/Button.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Card/Card.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Card/Card.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardActions/CardActions.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardActions/CardActions.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardContent/CardContent.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardContent/CardContent.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardHeader/CardHeader.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardHeader/CardHeader.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardMedia/CardMedia.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CardMedia/CardMedia.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Checkbox/Checkbox.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Checkbox/Checkbox.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Chip/Chip.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Chip/Chip.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Container/Container.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Container/Container.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/DialogActions/DialogActions.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/DialogActions/DialogActions.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Divider/Divider.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Divider/Divider.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Drawer/Drawer.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Drawer/Drawer.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanel.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanel.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanelContext.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanelContext.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelActions/ExpansionPanelActions.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelActions/ExpansionPanelActions.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelDetails/ExpansionPanelDetails.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelDetails/ExpansionPanelDetails.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelSummary/ExpansionPanelSummary.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelSummary/ExpansionPanelSummary.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Fab/Fab.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Fab/Fab.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FilledInput/FilledInput.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FilledInput/FilledInput.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/FormControl.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/FormControl.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/FormControlContext.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/FormControlContext.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/formControlState.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/formControlState.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormGroup/FormGroup.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormGroup/FormGroup.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormLabel/FormLabel.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/FormLabel/FormLabel.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Grid/Grid.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Grid/Grid.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/GridList/GridList.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/GridList/GridList.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/GridListTile/GridListTile.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/GridListTile/GridListTile.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/GridListTileBar/GridListTileBar.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/GridListTileBar/GridListTileBar.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/Hidden.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/Hidden.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/HiddenCss.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/HiddenCss.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/HiddenJs.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/HiddenJs.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Icon/Icon.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Icon/Icon.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ImageList/ImageList.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ImageList/ImageList.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ImageListItem/ImageListItem.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ImageListItem/ImageListItem.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ImageListItemBar/ImageListItemBar.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ImageListItemBar/ImageListItemBar.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Input/Input.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Input/Input.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/InputBase/InputBase.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/InputBase/InputBase.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/InputBase/utils.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/InputBase/utils.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/InputLabel/InputLabel.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/InputLabel/InputLabel.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Link/Link.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Link/Link.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/List/List.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/List/List.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/List/ListContext.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/List/ListContext.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItem/ListItem.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItem/ListItem.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItemText/ListItemText.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListItemText/ListItemText.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Menu/Menu.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Menu/Menu.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/MenuItem/MenuItem.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/MenuItem/MenuItem.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/MenuList/MenuList.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/MenuList/MenuList.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/MobileStepper/MobileStepper.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/MobileStepper/MobileStepper.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/NoSsr/NoSsr.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/NoSsr/NoSsr.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Popover/Popover.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Popover/Popover.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Radio/Radio.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Radio/Radio.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/RootRef/RootRef.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/RootRef/RootRef.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Select/Select.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Select/Select.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Select/SelectInput.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Select/SelectInput.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Slide/Slide.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Slide/Slide.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Slider/Slider.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Slider/Slider.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Slider/ValueLabel.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Slider/ValueLabel.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Snackbar/Snackbar.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Snackbar/Snackbar.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/SnackbarContent/SnackbarContent.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/SnackbarContent/SnackbarContent.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Step/Step.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Step/Step.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepButton/StepButton.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepButton/StepButton.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepConnector/StepConnector.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepConnector/StepConnector.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepContent/StepContent.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepContent/StepContent.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepIcon/StepIcon.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepIcon/StepIcon.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepLabel/StepLabel.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/StepLabel/StepLabel.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Stepper/Stepper.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Stepper/Stepper.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeArea.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeArea.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeableDrawer.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeableDrawer.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tab/Tab.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tab/Tab.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Table/Table.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Table/Table.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Table/TableContext.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Table/TableContext.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableBody/TableBody.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableBody/TableBody.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableCell/TableCell.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableCell/TableCell.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableContainer/TableContainer.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableContainer/TableContainer.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableFooter/TableFooter.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableFooter/TableFooter.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableHead/TableHead.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableHead/TableHead.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TablePagination/TablePagination.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TablePagination/TablePagination.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableRow/TableRow.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableRow/TableRow.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/TabIndicator.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/TabIndicator.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/Tabs.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/Tabs.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TextField/TextField.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TextField/TextField.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Toolbar/Toolbar.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Toolbar/Toolbar.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Zoom/Zoom.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Zoom/Zoom.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/animate.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/animate.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Person.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Person.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonUnchecked.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonUnchecked.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Warning.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Warning.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/styled.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/styled.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/utils/scrollLeft.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/utils/scrollLeft.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/withWidth/withWidth.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/withWidth/withWidth.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/styles/esm/styled/styled.js +2 -0
- package/dist/cjs/node_modules/@material-ui/styles/esm/styled/styled.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/system/esm/borders.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/borders.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/display.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/display.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/flexbox.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/flexbox.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/grid.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/grid.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/memoize.js +2 -0
- package/dist/cjs/node_modules/@material-ui/system/esm/memoize.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/system/esm/palette.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/palette.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/positions.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/positions.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/shadows.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/shadows.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/sizing.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/sizing.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/styleFunctionSx.js +2 -0
- package/dist/cjs/node_modules/@material-ui/system/esm/styleFunctionSx.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/system/esm/typography.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/typography.js.map +1 -1
- package/dist/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +2 -0
- package/dist/cjs/node_modules/memoize-one/dist/memoize-one.esm.js.map +1 -0
- package/dist/cjs/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js +2 -0
- package/dist/cjs/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js.map +1 -0
- package/dist/cjs/node_modules/react-window/dist/index.esm.js +2 -0
- package/dist/cjs/node_modules/react-window/dist/index.esm.js.map +1 -0
- package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
- package/dist/features/Bookemon/BookPreview/BookPreview.js +1 -1
- package/dist/features/Bookemon/Bookemon.js +1 -1
- package/dist/features/CodeCitation/CodeCitation.js +1 -1
- package/dist/features/PaginatedTable/PaginatedTable.js +2 -0
- package/dist/features/PaginatedTable/PaginatedTable.js.map +1 -0
- package/dist/features/PaginatedTable/paginatedTable.module.css.js +2 -0
- package/dist/features/PaginatedTable/paginatedTable.module.css.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/AccordionActions/AccordionActions.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/AccordionActions/AccordionActions.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/AppBar/AppBar.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/AppBar/AppBar.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Avatar/Avatar.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Avatar/Avatar.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Badge/Badge.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Badge/Badge.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/BottomNavigation/BottomNavigation.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/BottomNavigation/BottomNavigation.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Box/Box.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Box/Box.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Button/Button.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Button/Button.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Card/Card.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Card/Card.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/CardActions/CardActions.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/CardActions/CardActions.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/CardContent/CardContent.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/CardContent/CardContent.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/CardHeader/CardHeader.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/CardHeader/CardHeader.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/CardMedia/CardMedia.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/CardMedia/CardMedia.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Checkbox/Checkbox.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Checkbox/Checkbox.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Chip/Chip.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Chip/Chip.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Container/Container.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Container/Container.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/DialogActions/DialogActions.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/DialogActions/DialogActions.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Divider/Divider.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Divider/Divider.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Drawer/Drawer.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Drawer/Drawer.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanel.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanel.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanelContext.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanelContext.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanelActions/ExpansionPanelActions.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanelActions/ExpansionPanelActions.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanelDetails/ExpansionPanelDetails.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanelDetails/ExpansionPanelDetails.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanelSummary/ExpansionPanelSummary.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ExpansionPanelSummary/ExpansionPanelSummary.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Fab/Fab.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Fab/Fab.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/FilledInput/FilledInput.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/FilledInput/FilledInput.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/FormControl/FormControl.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/FormControl/FormControl.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/FormControl/FormControlContext.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/FormControl/FormControlContext.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/FormControl/formControlState.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/FormControl/formControlState.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/FormGroup/FormGroup.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/FormGroup/FormGroup.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/FormLabel/FormLabel.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/FormLabel/FormLabel.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Grid/Grid.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Grid/Grid.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/GridList/GridList.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/GridList/GridList.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/GridListTile/GridListTile.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/GridListTile/GridListTile.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/GridListTileBar/GridListTileBar.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/GridListTileBar/GridListTileBar.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Hidden/Hidden.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Hidden/Hidden.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Hidden/HiddenCss.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Hidden/HiddenCss.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Hidden/HiddenJs.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Hidden/HiddenJs.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Icon/Icon.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Icon/Icon.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ImageList/ImageList.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ImageList/ImageList.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ImageListItem/ImageListItem.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ImageListItem/ImageListItem.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ImageListItemBar/ImageListItemBar.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ImageListItemBar/ImageListItemBar.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Input/Input.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Input/Input.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/InputBase/InputBase.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/InputBase/InputBase.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/InputBase/utils.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/InputBase/utils.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/InputLabel/InputLabel.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/InputLabel/InputLabel.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Link/Link.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Link/Link.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/List/List.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/List/List.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/List/ListContext.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/List/ListContext.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ListItem/ListItem.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ListItem/ListItem.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ListItemText/ListItemText.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ListItemText/ListItemText.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Menu/Menu.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Menu/Menu.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/MenuItem/MenuItem.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/MenuItem/MenuItem.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/MenuList/MenuList.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/MenuList/MenuList.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/MobileStepper/MobileStepper.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/MobileStepper/MobileStepper.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/NoSsr/NoSsr.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/NoSsr/NoSsr.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Popover/Popover.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Popover/Popover.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Radio/Radio.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Radio/Radio.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/RootRef/RootRef.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/RootRef/RootRef.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Select/Select.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Select/Select.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Select/SelectInput.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Select/SelectInput.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Slide/Slide.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Slide/Slide.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Slider/Slider.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Slider/Slider.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Slider/ValueLabel.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Slider/ValueLabel.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Snackbar/Snackbar.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Snackbar/Snackbar.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/SnackbarContent/SnackbarContent.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/SnackbarContent/SnackbarContent.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Step/Step.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Step/Step.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/StepButton/StepButton.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/StepButton/StepButton.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/StepConnector/StepConnector.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/StepConnector/StepConnector.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/StepContent/StepContent.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/StepContent/StepContent.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/StepIcon/StepIcon.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/StepIcon/StepIcon.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/StepLabel/StepLabel.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/StepLabel/StepLabel.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Stepper/Stepper.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Stepper/Stepper.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeArea.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeArea.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeableDrawer.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeableDrawer.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Tab/Tab.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Tab/Tab.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Table/Table.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Table/Table.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Table/TableContext.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Table/TableContext.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TableBody/TableBody.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TableBody/TableBody.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TableCell/TableCell.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TableCell/TableCell.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TableContainer/TableContainer.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TableContainer/TableContainer.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TableFooter/TableFooter.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TableFooter/TableFooter.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TableHead/TableHead.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TableHead/TableHead.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TablePagination/TablePagination.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TablePagination/TablePagination.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TableRow/TableRow.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TableRow/TableRow.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Tabs/TabIndicator.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Tabs/TabIndicator.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Tabs/Tabs.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Tabs/Tabs.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TextField/TextField.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TextField/TextField.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Toolbar/Toolbar.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Toolbar/Toolbar.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Zoom/Zoom.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Zoom/Zoom.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/animate.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/animate.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Person.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Person.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonUnchecked.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonUnchecked.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Warning.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Warning.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/styled.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/styles/styled.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/utils/scrollLeft.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/utils/scrollLeft.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/withWidth/withWidth.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/withWidth/withWidth.js.map +1 -0
- package/dist/node_modules/@material-ui/styles/esm/styled/styled.js +2 -0
- package/dist/node_modules/@material-ui/styles/esm/styled/styled.js.map +1 -0
- package/dist/node_modules/@material-ui/system/esm/borders.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/borders.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/display.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/display.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/flexbox.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/flexbox.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/grid.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/grid.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/memoize.js +2 -0
- package/dist/node_modules/@material-ui/system/esm/memoize.js.map +1 -0
- package/dist/node_modules/@material-ui/system/esm/palette.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/palette.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/positions.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/positions.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/shadows.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/shadows.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/sizing.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/sizing.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/spacing.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/spacing.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/styleFunctionSx.js +2 -0
- package/dist/node_modules/@material-ui/system/esm/styleFunctionSx.js.map +1 -0
- package/dist/node_modules/@material-ui/system/esm/typography.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/typography.js.map +1 -1
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +2 -0
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js.map +1 -0
- package/dist/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js +2 -0
- package/dist/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js.map +1 -0
- package/dist/node_modules/react-window/dist/index.esm.js +2 -0
- package/dist/node_modules/react-window/dist/index.esm.js.map +1 -0
- package/dist/types/src/BookemonTest.d.ts.map +1 -1
- package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts +3 -0
- package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts.map +1 -0
- package/dist/types/src/PaginatedTableTest/useFetchData.d.ts +15 -0
- package/dist/types/src/PaginatedTableTest/useFetchData.d.ts.map +1 -0
- package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts +1 -0
- package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts.map +1 -1
- package/dist/types/src/features/Bookemon/Bookemon.d.ts +2 -1
- package/dist/types/src/features/Bookemon/Bookemon.d.ts.map +1 -1
- package/dist/types/src/features/CodeCitation/CodeCitation.d.ts +2 -1
- package/dist/types/src/features/CodeCitation/CodeCitation.d.ts.map +1 -1
- package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts +27 -0
- package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/types/CodeCitationTypes.d.ts +19 -0
- package/dist/types/src/types/CodeCitationTypes.d.ts.map +1 -1
- package/dist/types/src/utils/helperFunctions.d.ts +4 -0
- package/dist/types/src/utils/helperFunctions.d.ts.map +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.js","sources":["../../../../../../node_modules/@material-ui/core/esm/Popover/Popover.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport { chainPropTypes, elementTypeAcceptingRef, refType, HTMLElementType } from '@material-ui/utils';\nimport debounce from '../utils/debounce';\nimport clsx from 'clsx';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport createChainedFunction from '../utils/createChainedFunction';\nimport deprecatedPropType from '../utils/deprecatedPropType';\nimport withStyles from '../styles/withStyles';\nimport Modal from '../Modal';\nimport Grow from '../Grow';\nimport Paper from '../Paper';\nexport function getOffsetTop(rect, vertical) {\n var offset = 0;\n\n if (typeof vertical === 'number') {\n offset = vertical;\n } else if (vertical === 'center') {\n offset = rect.height / 2;\n } else if (vertical === 'bottom') {\n offset = rect.height;\n }\n\n return offset;\n}\nexport function getOffsetLeft(rect, horizontal) {\n var offset = 0;\n\n if (typeof horizontal === 'number') {\n offset = horizontal;\n } else if (horizontal === 'center') {\n offset = rect.width / 2;\n } else if (horizontal === 'right') {\n offset = rect.width;\n }\n\n return offset;\n}\n\nfunction getTransformOriginValue(transformOrigin) {\n return [transformOrigin.horizontal, transformOrigin.vertical].map(function (n) {\n return typeof n === 'number' ? \"\".concat(n, \"px\") : n;\n }).join(' ');\n} // Sum the scrollTop between two elements.\n\n\nfunction getScrollParent(parent, child) {\n var element = child;\n var scrollTop = 0;\n\n while (element && element !== parent) {\n element = element.parentElement;\n scrollTop += element.scrollTop;\n }\n\n return scrollTop;\n}\n\nfunction getAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\n\nexport var styles = {\n /* Styles applied to the root element. */\n root: {},\n\n /* Styles applied to the `Paper` component. */\n paper: {\n position: 'absolute',\n overflowY: 'auto',\n overflowX: 'hidden',\n // So we see the popover when it's empty.\n // It's most likely on issue on userland.\n minWidth: 16,\n minHeight: 16,\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0\n }\n};\nvar Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {\n var action = props.action,\n anchorEl = props.anchorEl,\n _props$anchorOrigin = props.anchorOrigin,\n anchorOrigin = _props$anchorOrigin === void 0 ? {\n vertical: 'top',\n horizontal: 'left'\n } : _props$anchorOrigin,\n anchorPosition = props.anchorPosition,\n _props$anchorReferenc = props.anchorReference,\n anchorReference = _props$anchorReferenc === void 0 ? 'anchorEl' : _props$anchorReferenc,\n children = props.children,\n classes = props.classes,\n className = props.className,\n containerProp = props.container,\n _props$elevation = props.elevation,\n elevation = _props$elevation === void 0 ? 8 : _props$elevation,\n getContentAnchorEl = props.getContentAnchorEl,\n _props$marginThreshol = props.marginThreshold,\n marginThreshold = _props$marginThreshol === void 0 ? 16 : _props$marginThreshol,\n onEnter = props.onEnter,\n onEntered = props.onEntered,\n onEntering = props.onEntering,\n onExit = props.onExit,\n onExited = props.onExited,\n onExiting = props.onExiting,\n open = props.open,\n _props$PaperProps = props.PaperProps,\n PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,\n _props$transformOrigi = props.transformOrigin,\n transformOrigin = _props$transformOrigi === void 0 ? {\n vertical: 'top',\n horizontal: 'left'\n } : _props$transformOrigi,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,\n _props$transitionDura = props.transitionDuration,\n transitionDurationProp = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,\n _props$TransitionProp = props.TransitionProps,\n TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,\n other = _objectWithoutProperties(props, [\"action\", \"anchorEl\", \"anchorOrigin\", \"anchorPosition\", \"anchorReference\", \"children\", \"classes\", \"className\", \"container\", \"elevation\", \"getContentAnchorEl\", \"marginThreshold\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"open\", \"PaperProps\", \"transformOrigin\", \"TransitionComponent\", \"transitionDuration\", \"TransitionProps\"]);\n\n var paperRef = React.useRef(); // Returns the top/left offset of the position\n // to attach to on the anchor element (or body if none is provided)\n\n var getAnchorOffset = React.useCallback(function (contentAnchorOffset) {\n if (anchorReference === 'anchorPosition') {\n if (process.env.NODE_ENV !== 'production') {\n if (!anchorPosition) {\n console.error('Material-UI: You need to provide a `anchorPosition` prop when using ' + '<Popover anchorReference=\"anchorPosition\" />.');\n }\n }\n\n return anchorPosition;\n }\n\n var resolvedAnchorEl = getAnchorEl(anchorEl); // If an anchor element wasn't provided, just use the parent body element of this Popover\n\n var anchorElement = resolvedAnchorEl && resolvedAnchorEl.nodeType === 1 ? resolvedAnchorEl : ownerDocument(paperRef.current).body;\n var anchorRect = anchorElement.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'production') {\n var box = anchorElement.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['Material-UI: 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'));\n }\n }\n\n var anchorVertical = contentAnchorOffset === 0 ? anchorOrigin.vertical : 'center';\n return {\n top: anchorRect.top + getOffsetTop(anchorRect, anchorVertical),\n left: anchorRect.left + getOffsetLeft(anchorRect, anchorOrigin.horizontal)\n };\n }, [anchorEl, anchorOrigin.horizontal, anchorOrigin.vertical, anchorPosition, anchorReference]); // Returns the vertical offset of inner content to anchor the transform on if provided\n\n var getContentAnchorOffset = React.useCallback(function (element) {\n var contentAnchorOffset = 0;\n\n if (getContentAnchorEl && anchorReference === 'anchorEl') {\n var contentAnchorEl = getContentAnchorEl(element);\n\n if (contentAnchorEl && element.contains(contentAnchorEl)) {\n var scrollTop = getScrollParent(element, contentAnchorEl);\n contentAnchorOffset = contentAnchorEl.offsetTop + contentAnchorEl.clientHeight / 2 - scrollTop || 0;\n } // != the default value\n\n\n if (process.env.NODE_ENV !== 'production') {\n if (anchorOrigin.vertical !== 'top') {\n console.error(['Material-UI: You can not change the default `anchorOrigin.vertical` value ', 'when also providing the `getContentAnchorEl` prop to the popover component.', 'Only use one of the two props.', 'Set `getContentAnchorEl` to `null | undefined`' + ' or leave `anchorOrigin.vertical` unchanged.'].join('\\n'));\n }\n }\n }\n\n return contentAnchorOffset;\n }, [anchorOrigin.vertical, anchorReference, getContentAnchorEl]); // Return the base transform origin using the element\n // and taking the content anchor offset into account if in use\n\n var getTransformOrigin = React.useCallback(function (elemRect) {\n var contentAnchorOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n return {\n vertical: getOffsetTop(elemRect, transformOrigin.vertical) + contentAnchorOffset,\n horizontal: getOffsetLeft(elemRect, transformOrigin.horizontal)\n };\n }, [transformOrigin.horizontal, transformOrigin.vertical]);\n var getPositioningStyle = React.useCallback(function (element) {\n // Check if the parent has requested anchoring on an inner content node\n var contentAnchorOffset = getContentAnchorOffset(element);\n var elemRect = {\n width: element.offsetWidth,\n height: element.offsetHeight\n }; // Get the transform origin point on the element itself\n\n var elemTransformOrigin = getTransformOrigin(elemRect, contentAnchorOffset);\n\n if (anchorReference === 'none') {\n return {\n top: null,\n left: null,\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n } // Get the offset of of the anchoring element\n\n\n var anchorOffset = getAnchorOffset(contentAnchorOffset); // Calculate element positioning\n\n var top = anchorOffset.top - elemTransformOrigin.vertical;\n var left = anchorOffset.left - elemTransformOrigin.horizontal;\n var bottom = top + elemRect.height;\n var right = left + elemRect.width; // Use the parent window of the anchorEl if provided\n\n var containerWindow = ownerWindow(getAnchorEl(anchorEl)); // Window thresholds taking required margin into account\n\n var heightThreshold = containerWindow.innerHeight - marginThreshold;\n var widthThreshold = containerWindow.innerWidth - marginThreshold; // Check if the vertical axis needs shifting\n\n if (top < marginThreshold) {\n var diff = top - marginThreshold;\n top -= diff;\n elemTransformOrigin.vertical += diff;\n } else if (bottom > heightThreshold) {\n var _diff = bottom - heightThreshold;\n\n top -= _diff;\n elemTransformOrigin.vertical += _diff;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {\n console.error(['Material-UI: The popover component is too tall.', \"Some part of it can not be seen on the screen (\".concat(elemRect.height - heightThreshold, \"px).\"), 'Please consider adding a `max-height` to improve the user-experience.'].join('\\n'));\n }\n } // Check if the horizontal axis needs shifting\n\n\n if (left < marginThreshold) {\n var _diff2 = left - marginThreshold;\n\n left -= _diff2;\n elemTransformOrigin.horizontal += _diff2;\n } else if (right > widthThreshold) {\n var _diff3 = right - widthThreshold;\n\n left -= _diff3;\n elemTransformOrigin.horizontal += _diff3;\n }\n\n return {\n top: \"\".concat(Math.round(top), \"px\"),\n left: \"\".concat(Math.round(left), \"px\"),\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n }, [anchorEl, anchorReference, getAnchorOffset, getContentAnchorOffset, getTransformOrigin, marginThreshold]);\n var setPositioningStyles = React.useCallback(function () {\n var element = paperRef.current;\n\n if (!element) {\n return;\n }\n\n var positioning = getPositioningStyle(element);\n\n if (positioning.top !== null) {\n element.style.top = positioning.top;\n }\n\n if (positioning.left !== null) {\n element.style.left = positioning.left;\n }\n\n element.style.transformOrigin = positioning.transformOrigin;\n }, [getPositioningStyle]);\n\n var handleEntering = function handleEntering(element, isAppearing) {\n if (onEntering) {\n onEntering(element, isAppearing);\n }\n\n setPositioningStyles();\n };\n\n var handlePaperRef = React.useCallback(function (instance) {\n // #StrictMode ready\n paperRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n React.useEffect(function () {\n if (open) {\n setPositioningStyles();\n }\n });\n React.useImperativeHandle(action, function () {\n return open ? {\n updatePosition: function updatePosition() {\n setPositioningStyles();\n }\n } : null;\n }, [open, setPositioningStyles]);\n React.useEffect(function () {\n if (!open) {\n return undefined;\n }\n\n var handleResize = debounce(function () {\n setPositioningStyles();\n });\n window.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n window.removeEventListener('resize', handleResize);\n };\n }, [open, setPositioningStyles]);\n var transitionDuration = transitionDurationProp;\n\n if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {\n transitionDuration = undefined;\n } // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n\n\n var container = containerProp || (anchorEl ? ownerDocument(getAnchorEl(anchorEl)).body : undefined);\n return /*#__PURE__*/React.createElement(Modal, _extends({\n container: container,\n open: open,\n ref: ref,\n BackdropProps: {\n invisible: true\n },\n className: clsx(classes.root, className)\n }, other), /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n appear: true,\n in: open,\n onEnter: onEnter,\n onEntered: onEntered,\n onExit: onExit,\n onExited: onExited,\n onExiting: onExiting,\n timeout: transitionDuration\n }, TransitionProps, {\n onEntering: createChainedFunction(handleEntering, TransitionProps.onEntering)\n }), /*#__PURE__*/React.createElement(Paper, _extends({\n elevation: elevation,\n ref: handlePaperRef\n }, PaperProps, {\n className: clsx(classes.paper, PaperProps.className)\n }), children)));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popover.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A ref for imperative actions.\n * It currently only supports updatePosition() action.\n */\n action: refType,\n\n /**\n * A HTML element, or a function that returns it.\n * It's used to set the position of the popover.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), function (props) {\n if (props.open && (!props.anchorReference || props.anchorReference === 'anchorEl')) {\n var resolvedAnchorEl = getAnchorEl(props.anchorEl);\n\n if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {\n var box = resolvedAnchorEl.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['Material-UI: 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'));\n }\n } else {\n return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', \"It should be an Element instance but it's `\".concat(resolvedAnchorEl, \"` instead.\")].join('\\n'));\n }\n }\n\n return null;\n }),\n\n /**\n * This is the point on the anchor where the popover's\n * `anchorEl` will attach to. This is not used when the\n * anchorReference is 'anchorPosition'.\n *\n * Options:\n * vertical: [top, center, bottom];\n * horizontal: [left, center, right].\n */\n anchorOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n\n /**\n * This is the position that may be used\n * to set the position of the popover.\n * The coordinates are relative to\n * the application's client area.\n */\n anchorPosition: PropTypes.shape({\n left: PropTypes.number.isRequired,\n top: PropTypes.number.isRequired\n }),\n\n /**\n * This determines which anchor prop to refer to to set\n * the position of the popover.\n */\n anchorReference: PropTypes.oneOf(['anchorEl', 'anchorPosition', 'none']),\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * A HTML element, component instance, or function that returns either.\n * The `container` will passed to the Modal component.\n *\n * By default, it uses the body of the anchorEl's top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([HTMLElementType, PropTypes.instanceOf(React.Component), PropTypes.func]),\n\n /**\n * The elevation of the popover.\n */\n elevation: PropTypes.number,\n\n /**\n * This function is called in order to retrieve the content anchor element.\n * It's the opposite of the `anchorEl` prop.\n * The content anchor element should be an element inside the popover.\n * It's used to correctly scroll and set the position of the popover.\n * The positioning strategy tries to make the content anchor element just above the\n * anchor element.\n */\n getContentAnchorEl: PropTypes.func,\n\n /**\n * Specifies how close to the edge of the window the popover can appear.\n */\n marginThreshold: PropTypes.number,\n\n /**\n * Callback fired when the component requests to be closed.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired before the component is entering.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEnter: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component has entered.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEntered: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component is entering.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEntering: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired before the component is exiting.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExit: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component has exited.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExited: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component is exiting.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExiting: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * If `true`, the popover is visible.\n */\n open: PropTypes.bool.isRequired,\n\n /**\n * Props applied to the [`Paper`](/api/paper/) element.\n */\n PaperProps: PropTypes\n /* @typescript-to-proptypes-ignore */\n .shape({\n component: elementTypeAcceptingRef\n }),\n\n /**\n * This is the point on the popover which\n * will attach to the anchor's origin.\n *\n * Options:\n * vertical: [top, center, bottom, x(px)];\n * horizontal: [left, center, right, x(px)].\n */\n transformOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n\n /**\n * The component used for the transition.\n * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n */\n TransitionComponent: PropTypes.elementType,\n\n /**\n * Set to 'auto' to automatically calculate transition time based on height.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n\n /**\n * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiPopover'\n})(Popover);"],"names":["getOffsetTop","rect","vertical","offset","height","getOffsetLeft","horizontal","width","getTransformOriginValue","transformOrigin","map","n","concat","join","getAnchorEl","anchorEl","styles","root","paper","position","overflowY","overflowX","minWidth","minHeight","maxWidth","maxHeight","outline","Popover","React","forwardRef","props","ref","action","_props$anchorOrigin","anchorOrigin","anchorPosition","_props$anchorReferenc","anchorReference","children","classes","className","containerProp","container","_props$elevation","elevation","getContentAnchorEl","_props$marginThreshol","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","_props$PaperProps","PaperProps","_props$transformOrigi","_props$TransitionComp","TransitionComponent","Grow","_props$transitionDura","transitionDuration","transitionDurationProp","_props$TransitionProp","TransitionProps","other","_objectWithoutProperties","paperRef","useRef","getAnchorOffset","useCallback","contentAnchorOffset","process","env","NODE_ENV","console","error","resolvedAnchorEl","anchorElement","nodeType","ownerDocument","current","body","anchorRect","getBoundingClientRect","box","top","left","right","bottom","warn","anchorVertical","getContentAnchorOffset","element","contentAnchorEl","contains","scrollTop","parent","child","parentElement","getScrollParent","offsetTop","clientHeight","getTransformOrigin","elemRect","arguments","length","undefined","getPositioningStyle","offsetWidth","offsetHeight","elemTransformOrigin","anchorOffset","containerWindow","ownerWindow","heightThreshold","innerHeight","widthThreshold","innerWidth","diff","_diff","_diff2","_diff3","Math","round","setPositioningStyles","positioning","style","handlePaperRef","instance","ReactDOM","findDOMNode","useEffect","useImperativeHandle","updatePosition","handleResize","debounce","window","addEventListener","clear","removeEventListener","muiSupportAuto","createElement","Modal","_extends","BackdropProps","invisible","clsx","appear","in","timeout","createChainedFunction","isAppearing","Paper","propTypes","refType","chainPropTypes","PropTypes","oneOfType","HTMLElementType","func","Error","shape","oneOf","number","isRequired","node","object","string","instanceOf","Component","onClose","deprecatedPropType","bool","component","elementTypeAcceptingRef","elementType","enter","exit","Popover$1","withStyles","name"],"mappings":"o+BAgBO,SAASA,EAAaC,EAAMC,GACjC,IAAIC,EAAS,EAUb,MARwB,iBAAbD,EACTC,EAASD,EACa,WAAbA,EACTC,EAASF,EAAKG,OAAS,EACD,WAAbF,IACTC,EAASF,EAAKG,QAGTD,CACT,CACO,SAASE,EAAcJ,EAAMK,GAClC,IAAIH,EAA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H,EAAUO,OAUrBxH,mBAAoBiH,EAAUG,KAK9BlH,gBAAiB+G,EAAUO,OAK3BO,QAASd,EAAUG,KAMnBjH,QAAS6H,EAAmBf,EAAUG,KAAM,2CAM5ChH,UAAW4H,EAAmBf,EAAUG,KAAM,2CAM9C/G,WAAY2H,EAAmBf,EAAUG,KAAM,2CAM/C9G,OAAQ0H,EAAmBf,EAAUG,KAAM,2CAM3C7G,SAAUyH,EAAmBf,EAAUG,KAAM,2CAM7C5G,UAAWwH,EAAmBf,EAAUG,KAAM,2CAK9C3G,KAAMwG,EAAUgB,KAAKR,WAKrB9G,WAAYsG,EAEXK,MAAM,CACLY,UAAWC,IAWbvK,gBAAiBqJ,EAAUK,MAAM,CAC/B7J,WAAYwJ,EAAUC,UAAU,CAACD,EAAUM,MAAM,CAAC,SAAU,OAAQ,UAAWN,EAAUO,SAASC,WAClGpK,SAAU4J,EAAUC,UAAU,CAACD,EAAUM,MAAM,CAAC,SAAU,SAAU,QAASN,EAAUO,SAASC,aAOlG3G,oBAAqBmG,EAAUmB,YAK/BnH,mBAAoBgG,EAAUC,UAAU,CAACD,EAAUM,MAAM,CAAC,SAAUN,EAAUO,OAAQP,EAAUK,MAAM,CACpGd,OAAQS,EAAUO,OAClBa,MAAOpB,EAAUO,OACjBc,KAAMrB,EAAUO,WAMlBpG,gBAAiB6F,EAAUU,SAE7B,IAAeY,EAAAC,EAAWrK,EAAQ,CAChCsK,KAAM,cADOD,CAEZ1J"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import*as r from"react";import t from"../../../../../_virtual/index2.js";import{clsx as a}from"../../../../clsx/dist/clsx.m.js";import"../../../utils/esm/elementAcceptingRef.js";import"../../../utils/esm/elementTypeAcceptingRef.js";import"../../../../../_virtual/index.js";import"../../../utils/esm/ponyfillGlobal.js";import i from"../../../utils/esm/refType.js";import l from"../internal/SwitchBase.js";import n from"./RadioButtonIcon.js";import{alpha as c}from"../styles/colorManipulator.js";import s from"../utils/capitalize.js";import m from"../utils/createChainedFunction.js";import d from"../styles/withStyles.js";import p from"../RadioGroup/useRadioGroup.js";var u=function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:c(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:c(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}},f=r.createElement(n,{checked:!0}),h=r.createElement(n,null),b=r.forwardRef((function(t,i){var n=t.checked,c=t.classes,d=t.color,u=void 0===d?"secondary":d,b=t.name,y=t.onChange,j=t.size,v=void 0===j?"medium":j,k=o(t,["checked","classes","color","name","onChange","size"]),g=p(),C=n,R=m(y,g&&g.onChange),x=b;return g&&(void 0===C&&(C=g.value===t.value),void 0===x&&(x=g.name)),r.createElement(l,e({color:u,type:"radio",icon:r.cloneElement(h,{fontSize:"small"===v?"small":"medium"}),checkedIcon:r.cloneElement(f,{fontSize:"small"===v?"small":"medium"}),classes:{root:a(c.root,c["color".concat(s(u))]),checked:c.checked,disabled:c.disabled},name:x,checked:C,onChange:R,ref:i},k))}));"production"!==process.env.NODE_ENV&&(b.propTypes={checked:t.bool,checkedIcon:t.node,classes:t.object,color:t.oneOf(["default","primary","secondary"]),disabled:t.bool,disableRipple:t.bool,icon:t.node,id:t.string,inputProps:t.object,inputRef:i,name:t.string,onChange:t.func,required:t.bool,size:t.oneOf(["medium","small"]),value:t.any}),d(u,{name:"MuiRadio"})(b);export{u as styles};
|
|
2
|
+
//# sourceMappingURL=Radio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.js","sources":["../../../../../../node_modules/@material-ui/core/esm/Radio/Radio.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { refType } from '@material-ui/utils';\nimport SwitchBase from '../internal/SwitchBase';\nimport RadioButtonIcon from './RadioButtonIcon';\nimport { alpha } from '../styles/colorManipulator';\nimport capitalize from '../utils/capitalize';\nimport createChainedFunction from '../utils/createChainedFunction';\nimport withStyles from '../styles/withStyles';\nimport useRadioGroup from '../RadioGroup/useRadioGroup';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n color: theme.palette.text.secondary\n },\n\n /* Pseudo-class applied to the root element if `checked={true}`. */\n checked: {},\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n '&$checked': {\n color: theme.palette.primary.main,\n '&:hover': {\n backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n '&$disabled': {\n color: theme.palette.action.disabled\n }\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n '&$checked': {\n color: theme.palette.secondary.main,\n '&:hover': {\n backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n '&$disabled': {\n color: theme.palette.action.disabled\n }\n }\n };\n};\nvar defaultCheckedIcon = /*#__PURE__*/React.createElement(RadioButtonIcon, {\n checked: true\n});\nvar defaultIcon = /*#__PURE__*/React.createElement(RadioButtonIcon, null);\nvar Radio = /*#__PURE__*/React.forwardRef(function Radio(props, ref) {\n var checkedProp = props.checked,\n classes = props.classes,\n _props$color = props.color,\n color = _props$color === void 0 ? 'secondary' : _props$color,\n nameProp = props.name,\n onChangeProp = props.onChange,\n _props$size = props.size,\n size = _props$size === void 0 ? 'medium' : _props$size,\n other = _objectWithoutProperties(props, [\"checked\", \"classes\", \"color\", \"name\", \"onChange\", \"size\"]);\n\n var radioGroup = useRadioGroup();\n var checked = checkedProp;\n var onChange = createChainedFunction(onChangeProp, radioGroup && radioGroup.onChange);\n var name = nameProp;\n\n if (radioGroup) {\n if (typeof checked === 'undefined') {\n checked = radioGroup.value === props.value;\n }\n\n if (typeof name === 'undefined') {\n name = radioGroup.name;\n }\n }\n\n return /*#__PURE__*/React.createElement(SwitchBase, _extends({\n color: color,\n type: \"radio\",\n icon: /*#__PURE__*/React.cloneElement(defaultIcon, {\n fontSize: size === 'small' ? 'small' : 'medium'\n }),\n checkedIcon: /*#__PURE__*/React.cloneElement(defaultCheckedIcon, {\n fontSize: size === 'small' ? 'small' : 'medium'\n }),\n classes: {\n root: clsx(classes.root, classes[\"color\".concat(capitalize(color))]),\n checked: classes.checked,\n disabled: classes.disabled\n },\n name: name,\n checked: checked,\n onChange: onChange,\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Radio.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['default', 'primary', 'secondary']),\n\n /**\n * If `true`, the radio will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the ripple effect will be disabled.\n */\n disableRipple: PropTypes.bool,\n\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node,\n\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n\n /**\n * Callback fired when the state is changed.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n\n /**\n * If `true`, the `input` element will be required.\n */\n required: PropTypes.bool,\n\n /**\n * The size of the radio.\n * `small` is equivalent to the dense radio styling.\n */\n size: PropTypes.oneOf(['medium', 'small']),\n\n /**\n * The value of the component. The DOM API casts this to a string.\n */\n value: PropTypes.any\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiRadio'\n})(Radio);"],"names":["styles","theme","root","color","palette","text","secondary","checked","disabled","colorPrimary","primary","main","backgroundColor","alpha","action","hoverOpacity","colorSecondary","defaultCheckedIcon","React","createElement","RadioButtonIcon","defaultIcon","Radio","forwardRef","props","ref","checkedProp","classes","_props$color","nameProp","name","onChangeProp","onChange","_props$size","size","other","_objectWithoutProperties","radioGroup","useRadioGroup","createChainedFunction","value","SwitchBase","_extends","type","icon","cloneElement","fontSize","checkedIcon","clsx","concat","capitalize","process","env","NODE_ENV","propTypes","PropTypes","bool","node","object","oneOf","disableRipple","id","string","inputProps","inputRef","refType","func","required","any","withStyles"],"mappings":"4yBAaU,IAACA,EAAS,SAAgBC,GAClC,MAAO,CAELC,KAAM,CACJC,MAAOF,EAAMG,QAAQC,KAAKC,WAI5BC,QAAS,CAAE,EAGXC,SAAU,CAAE,EAGZC,aAAc,CACZ,YAAa,CACXN,MAAOF,EAAMG,QAAQM,QAAQC,KAC7B,UAAW,CACTC,gBAAiBC,EAAMZ,EAAMG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AQzB,KAAMyB,EAAQ,QAAQsB,OAAOC,EAAW/C,MAC3DI,QAASoB,EAAQpB,QACjBC,SAAUmB,EAAQnB,UAEpBsB,KAAMA,EACNvB,QAASA,EACTyB,SAAUA,EACVP,IAAKA,GACJU,GACL,IACyB,eAAzBgB,QAAQC,IAAIC,WAA4B/B,EAAMgC,UAAY,CASxD/C,QAASgD,EAAUC,KAKnBT,YAAaQ,EAAUE,KAMvB9B,QAAS4B,EAAUG,OAKnBvD,MAAOoD,EAAUI,MAAM,CAAC,UAAW,UAAW,cAK9CnD,SAAU+C,EAAUC,KAKpBI,cAAeL,EAAUC,KAKzBZ,KAAMW,EAAUE,KAKhBI,GAAIN,EAAUO,OAKdC,WAAYR,EAAUG,OAKtBM,SAAUC,EAKVnC,KAAMyB,EAAUO,OAShB9B,SAAUuB,EAAUW,KAKpBC,SAAUZ,EAAUC,KAMpBtB,KAAMqB,EAAUI,MAAM,CAAC,SAAU,UAKjCnB,MAAOe,EAAUa,MAEJC,EAAWrE,EAAQ,CAChC8B,KAAM,YADOuC,CAEZ/C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"react";import t from"../../../../../_virtual/index2.js";import{clsx as s}from"../../../../clsx/dist/clsx.m.js";import o from"../internal/svg-icons/RadioButtonUnchecked.js";import r from"../internal/svg-icons/RadioButtonChecked.js";import n from"../styles/withStyles.js";var i=function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}};function a(t){var n=t.checked,i=t.classes,a=t.fontSize;return e.createElement("div",{className:s(i.root,n&&i.checked)},e.createElement(o,{fontSize:a}),e.createElement(r,{fontSize:a,className:i.layer}))}"production"!==process.env.NODE_ENV&&(a.propTypes={checked:t.bool,classes:t.object.isRequired,fontSize:t.oneOf(["small","medium"])});var c=n(i,{name:"PrivateRadioButtonIcon"})(a);export{c as default,i as styles};
|
|
2
|
+
//# sourceMappingURL=RadioButtonIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButtonIcon.js","sources":["../../../../../../node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js"],"sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport RadioButtonUncheckedIcon from '../internal/svg-icons/RadioButtonUnchecked';\nimport RadioButtonCheckedIcon from '../internal/svg-icons/RadioButtonChecked';\nimport withStyles from '../styles/withStyles';\nexport var styles = function styles(theme) {\n return {\n root: {\n position: 'relative',\n display: 'flex',\n '&$checked $layer': {\n transform: 'scale(1)',\n transition: theme.transitions.create('transform', {\n easing: theme.transitions.easing.easeOut,\n duration: theme.transitions.duration.shortest\n })\n }\n },\n layer: {\n left: 0,\n position: 'absolute',\n transform: 'scale(0)',\n transition: theme.transitions.create('transform', {\n easing: theme.transitions.easing.easeIn,\n duration: theme.transitions.duration.shortest\n })\n },\n checked: {}\n };\n};\n/**\n * @ignore - internal component.\n */\n\nfunction RadioButtonIcon(props) {\n var checked = props.checked,\n classes = props.classes,\n fontSize = props.fontSize;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.root, checked && classes.checked)\n }, /*#__PURE__*/React.createElement(RadioButtonUncheckedIcon, {\n fontSize: fontSize\n }), /*#__PURE__*/React.createElement(RadioButtonCheckedIcon, {\n fontSize: fontSize,\n className: classes.layer\n }));\n}\n\nprocess.env.NODE_ENV !== \"production\" ? RadioButtonIcon.propTypes = {\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * The size of the radio.\n * `small` is equivalent to the dense radio styling.\n */\n fontSize: PropTypes.oneOf(['small', 'medium'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'PrivateRadioButtonIcon'\n})(RadioButtonIcon);"],"names":["styles","theme","root","position","display","transform","transition","transitions","create","easing","easeOut","duration","shortest","layer","left","easeIn","checked","RadioButtonIcon","props","classes","fontSize","React","createElement","className","clsx","RadioButtonUncheckedIcon","RadioButtonCheckedIcon","process","env","NODE_ENV","propTypes","PropTypes","bool","object","isRequired","oneOf","RadioButtonIcon$1","withStyles","name"],"mappings":"+RAMU,IAACA,EAAS,SAAgBC,GAClC,MAAO,CACLC,KAAM,CACJC,SAAU,WACVC,QAAS,OACT,mBAAoB,CAClBC,UAAW,WACXC,WAAYL,EAAMM,YAAYC,OAAO,YAAa,CAChDC,OAAQR,EAAMM,YAAYE,OAAOC,QACjCC,SAAUV,EAAMM,YAAYI,SAASC,aAI3CC,MAAO,CACLC,KAAM,EACNX,SAAU,WACVE,UAAW,WACXC,WAAYL,EAAMM,YAAYC,OAAO,YAAa,CAChDC,OAAQR,EAAMM,YAAYE,OAAOM,OACjCJ,SAAUV,EAAMM,YAAYI,SAASC,YAGzCI,QAAS,CAAE,EAEf,EAKA,SAASC,EAAgBC,GACvB,IAAIF,EAAUE,EAAMF,QAChBG,EAAUD,EAAMC,QAChBC,EAAWF,EAAME,SACrB,OAAoBC,EAAMC,cAAc,MAAO,CAC7CC,UAAWC,EAAKL,EAAQjB,KAAMc,GAAWG,EAAQH,UACnCK,EAAMC,cAAcG,EAA0B,CAC5DL,SAAUA,IACKC,EAAMC,cAAcI,EAAwB,CAC3DN,SAAUA,EACVG,UAAWJ,EAAQN,QAEvB,CAEyB,eAAzBc,QAAQC,IAAIC,WAA4BZ,EAAgBa,UAAY,CAIlEd,QAASe,EAAUC,KAMnBb,QAASY,EAAUE,OAAOC,WAM1Bd,SAAUW,EAAUI,MAAM,CAAC,QAAS,aAEtC,IAAeC,EAAAC,EAAWrC,EAAQ,CAChCsC,KAAM,0BADOD,CAEZpB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../../@babel/runtime/helpers/esm/extends.js";import r from"../../../../@babel/runtime/helpers/esm/slicedToArray.js";import o from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import*as t from"react";import n from"../../../../../_virtual/index2.js";import a from"../FormGroup/FormGroup.js";import u from"../utils/useForkRef.js";import i from"../utils/useControlled.js";import l from"./RadioGroupContext.js";import s from"../utils/unstable_useId.js";var m=t.forwardRef((function(n,m){var p=n.actions,f=n.children,c=n.name,d=n.value,v=n.onChange,h=o(n,["actions","children","name","value","onChange"]),b=t.useRef(null),g=i({controlled:d,default:n.defaultValue,name:"RadioGroup"}),j=r(g,2),y=j[0],C=j[1];t.useImperativeHandle(p,(function(){return{focus:function(){var e=b.current.querySelector("input:not(:disabled):checked");e||(e=b.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var R=u(m,b),x=s(c);return t.createElement(l.Provider,{value:{name:x,onChange:function(e){C(e.target.value),v&&v(e,e.target.value)},value:y}},t.createElement(a,e({role:"radiogroup",ref:R},h),f))}));"production"!==process.env.NODE_ENV&&(m.propTypes={children:n.node,defaultValue:n.oneOfType([n.arrayOf(n.string),n.number,n.string]),name:n.string,onChange:n.func,value:n.any});export{m as default};
|
|
2
|
+
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","sources":["../../../../../../node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport FormGroup from '../FormGroup';\nimport useForkRef from '../utils/useForkRef';\nimport useControlled from '../utils/useControlled';\nimport RadioGroupContext from './RadioGroupContext';\nimport useId from '../utils/unstable_useId';\nvar RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {\n var actions = props.actions,\n children = props.children,\n nameProp = props.name,\n valueProp = props.value,\n onChange = props.onChange,\n other = _objectWithoutProperties(props, [\"actions\", \"children\", \"name\", \"value\", \"onChange\"]);\n\n var rootRef = React.useRef(null);\n\n var _useControlled = useControlled({\n controlled: valueProp,\n default: props.defaultValue,\n name: 'RadioGroup'\n }),\n _useControlled2 = _slicedToArray(_useControlled, 2),\n value = _useControlled2[0],\n setValue = _useControlled2[1];\n\n React.useImperativeHandle(actions, function () {\n return {\n focus: function focus() {\n var input = rootRef.current.querySelector('input:not(:disabled):checked');\n\n if (!input) {\n input = rootRef.current.querySelector('input:not(:disabled)');\n }\n\n if (input) {\n input.focus();\n }\n }\n };\n }, []);\n var handleRef = useForkRef(ref, rootRef);\n\n var handleChange = function handleChange(event) {\n setValue(event.target.value);\n\n if (onChange) {\n onChange(event, event.target.value);\n }\n };\n\n var name = useId(nameProp);\n return /*#__PURE__*/React.createElement(RadioGroupContext.Provider, {\n value: {\n name: name,\n onChange: handleChange,\n value: value\n }\n }, /*#__PURE__*/React.createElement(FormGroup, _extends({\n role: \"radiogroup\",\n ref: handleRef\n }, other), children));\n});\nprocess.env.NODE_ENV !== \"production\" ? RadioGroup.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * The default `input` element value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),\n\n /**\n * The name used to reference the value of the control.\n * If you don't provide this prop, it falls back to a randomly generated name.\n */\n name: PropTypes.string,\n\n /**\n * Callback fired when a radio button is selected.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n\n /**\n * Value of the selected radio button. The DOM API casts this to a string.\n */\n value: PropTypes.any\n} : void 0;\nexport default RadioGroup;"],"names":["RadioGroup","React","forwardRef","props","ref","actions","children","nameProp","name","valueProp","value","onChange","other","_objectWithoutProperties","rootRef","useRef","_useControlled","useControlled","controlled","default","defaultValue","_useControlled2","_slicedToArray","setValue","useImperativeHandle","focus","input","current","querySelector","handleRef","useForkRef","useId","createElement","RadioGroupContext","Provider","event","target","FormGroup","_extends","role","process","env","NODE_ENV","propTypes","PropTypes","node","oneOfType","arrayOf","string","number","func","any"],"mappings":"0eAUG,IAACA,EAA0BC,EAAMC,YAAW,SAAoBC,EAAOC,GACxE,IAAIC,EAAUF,EAAME,QAChBC,EAAWH,EAAMG,SACjBC,EAAWJ,EAAMK,KACjBC,EAAYN,EAAMO,MAClBC,EAAWR,EAAMQ,SACjBC,EAAQC,EAAyBV,EAAO,CAAC,UAAW,WAAY,OAAQ,QAAS,aAEjFW,EAAUb,EAAMc,OAAO,MAEvBC,EAAiBC,EAAc,CACjCC,WAAYT,EACZU,QAAShB,EAAMiB,aACfZ,KAAM,eAEJa,EAAkBC,EAAeN,EAAgB,GACjDN,EAAQW,EAAgB,GACxBE,EAAWF,EAAgB,GAE/BpB,EAAMuB,oBAAoBnB,GAAS,WACjC,MAAO,CACLoB,MAAO,WACL,IAAIC,EAAQZ,EAAQa,QAAQC,cAAc,gCAErCF,IACHA,EAAQZ,EAAQa,QAAQC,cAAc,yBAGpCF,GACFA,EAAMD,OAET,EAEJ,GAAE,IACH,IAAII,EAAYC,EAAW1B,EAAKU,GAU5BN,EAAOuB,EAAMxB,GACjB,OAAoBN,EAAM+B,cAAcC,EAAkBC,SAAU,CAClExB,MAAO,CACLF,KAAMA,EACNG,SAZe,SAAsBwB,GACvCZ,EAASY,EAAMC,OAAO1B,OAElBC,GACFA,EAASwB,EAAOA,EAAMC,OAAO1B,MAEnC,EAOMA,MAAOA,IAEKT,EAAM+B,cAAcK,EAAWC,EAAS,CACtDC,KAAM,aACNnC,IAAKyB,GACJjB,GAAQN,GACb,IACyB,eAAzBkC,QAAQC,IAAIC,WAA4B1C,EAAW2C,UAAY,CAS7DrC,SAAUsC,EAAUC,KAKpBzB,aAAcwB,EAAUE,UAAU,CAACF,EAAUG,QAAQH,EAAUI,QAASJ,EAAUK,OAAQL,EAAUI,SAMpGxC,KAAMoC,EAAUI,OAQhBrC,SAAUiC,EAAUM,KAKpBxC,MAAOkC,EAAUO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupContext.js","sources":["../../../../../../node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @ignore - internal component.\n */\n\nvar RadioGroupContext = React.createContext();\n\nif (process.env.NODE_ENV !== 'production') {\n RadioGroupContext.displayName = 'RadioGroupContext';\n}\n\nexport default RadioGroupContext;"],"names":["RadioGroupContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"wBAKG,IAACA,EAAoBC,EAAMC,gBAED,eAAzBC,QAAQC,IAAIC,WACdL,EAAkBM,YAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRadioGroup.js","sources":["../../../../../../node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js"],"sourcesContent":["import * as React from 'react';\nimport RadioGroupContext from './RadioGroupContext';\nexport default function useRadioGroup() {\n return React.useContext(RadioGroupContext);\n}"],"names":["useRadioGroup","React","useContext","RadioGroupContext"],"mappings":"8DAEe,SAASA,IACtB,OAAOC,EAAMC,WAAWC,EAC1B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../../@babel/runtime/helpers/esm/classCallCheck.js";import t from"../../../../@babel/runtime/helpers/esm/createClass.js";import r from"../../../../@babel/runtime/helpers/esm/inherits.js";import o from"../../../../@babel/runtime/helpers/esm/possibleConstructorReturn.js";import n from"../../../../@babel/runtime/helpers/esm/getPrototypeOf.js";import*as i from"react";import*as s from"react-dom";import p from"../../../../../_virtual/index2.js";import"../../../utils/esm/elementAcceptingRef.js";import"../../../utils/esm/elementTypeAcceptingRef.js";import c from"../../../utils/esm/exactProp.js";import"../../../../../_virtual/index.js";import"../../../utils/esm/ponyfillGlobal.js";import f from"../../../utils/esm/refType.js";import u from"../utils/setRef.js";function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,i=n(e);if(t){var s=n(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return o(this,r)}}var m=!1,a=function(o){r(i,o);var n=l(i);function i(){return e(this,i),n.apply(this,arguments)}return t(i,[{key:"componentDidMount",value:function(){this.ref=s.findDOMNode(this),u(this.props.rootRef,this.ref)}},{key:"componentDidUpdate",value:function(e){var t=s.findDOMNode(this);e.rootRef===this.props.rootRef&&this.ref===t||(e.rootRef!==this.props.rootRef&&u(e.rootRef,null),this.ref=t,u(this.props.rootRef,this.ref))}},{key:"componentWillUnmount",value:function(){this.ref=null,u(this.props.rootRef,null)}},{key:"render",value:function(){return"production"!==process.env.NODE_ENV&&(m||(m=!0,console.warn(["Material-UI: The RootRef component is deprecated.","The component relies on the ReactDOM.findDOMNode API which is deprecated in React.StrictMode.","Instead, you can get a reference to the underlying DOM node of the components via the `ref` prop."].join("/n")))),this.props.children}}]),i}(i.Component);"production"!==process.env.NODE_ENV&&(a.propTypes={children:p.element.isRequired,rootRef:f.isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(a.propTypes=c(a.propTypes));export{a as default};
|
|
2
|
+
//# sourceMappingURL=RootRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RootRef.js","sources":["../../../../../../node_modules/@material-ui/core/esm/RootRef/RootRef.js"],"sourcesContent":["import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/esm/getPrototypeOf\";\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, refType } from '@material-ui/utils';\nimport setRef from '../utils/setRef';\nvar warnedOnce = false;\n/**\n * ⚠️⚠️⚠️\n * If you want the DOM element of a Material-UI component check out\n * [FAQ: How can I access the DOM element?](/getting-started/faq/#how-can-i-access-the-dom-element)\n * first.\n *\n * This component uses `findDOMNode` which is deprecated in React.StrictMode.\n *\n * Helper component to allow attaching a ref to a\n * wrapped element to access the underlying DOM element.\n *\n * It's highly inspired by https://github.com/facebook/react/issues/11401#issuecomment-340543801.\n * For example:\n * ```jsx\n * import React from 'react';\n * import RootRef from '@material-ui/core/RootRef';\n *\n * function MyComponent() {\n * const domRef = React.useRef();\n *\n * React.useEffect(() => {\n * console.log(domRef.current); // DOM node\n * }, []);\n *\n * return (\n * <RootRef rootRef={domRef}>\n * <SomeChildComponent />\n * </RootRef>\n * );\n * }\n * ```\n *\n * @deprecated\n */\n\nvar RootRef = /*#__PURE__*/function (_React$Component) {\n _inherits(RootRef, _React$Component);\n\n var _super = _createSuper(RootRef);\n\n function RootRef() {\n _classCallCheck(this, RootRef);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(RootRef, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.ref = ReactDOM.findDOMNode(this);\n setRef(this.props.rootRef, this.ref);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var ref = ReactDOM.findDOMNode(this);\n\n if (prevProps.rootRef !== this.props.rootRef || this.ref !== ref) {\n if (prevProps.rootRef !== this.props.rootRef) {\n setRef(prevProps.rootRef, null);\n }\n\n this.ref = ref;\n setRef(this.props.rootRef, this.ref);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.ref = null;\n setRef(this.props.rootRef, null);\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.warn(['Material-UI: The RootRef component is deprecated.', 'The component relies on the ReactDOM.findDOMNode API which is deprecated in React.StrictMode.', 'Instead, you can get a reference to the underlying DOM node of the components via the `ref` prop.'].join('/n'));\n }\n }\n\n return this.props.children;\n }\n }]);\n\n return RootRef;\n}(React.Component);\n\nprocess.env.NODE_ENV !== \"production\" ? RootRef.propTypes = {\n /**\n * The wrapped element.\n */\n children: PropTypes.element.isRequired,\n\n /**\n * A ref that points to the first DOM node of the wrapped element.\n */\n rootRef: refType.isRequired\n} : void 0;\n\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? RootRef.propTypes = exactProp(RootRef.propTypes) : void 0;\n}\n\nexport default RootRef;"],"names":["_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","Date","prototype","toString","call","e","_isNativeReflectConstruct","result","Super","_getPrototypeOf","NewTarget","this","constructor","arguments","apply","_possibleConstructorReturn","warnedOnce","RootRef","_React$Component","_inherits","_super","_classCallCheck","_createClass","key","value","ref","ReactDOM","findDOMNode","setRef","props","rootRef","prevProps","process","env","NODE_ENV","console","warn","join","children","React","Component","propTypes","PropTypes","element","isRequired","refType","exactProp"],"mappings":"2wBAMA,SAASA,EAAaC,GAAW,IAAIC,EAErC,WAAuC,GAAuB,oBAAZC,UAA4BA,QAAQC,UAAW,OAAO,EAAO,GAAID,QAAQC,UAAUC,KAAM,OAAO,EAAO,GAAqB,mBAAVC,MAAsB,OAAO,EAAM,IAAiF,OAA3EC,KAAKC,UAAUC,SAASC,KAAKP,QAAQC,UAAUG,KAAM,IAAI,WAAc,MAAW,CAAO,CAAC,MAAOI,GAAK,OAAO,EAAU,CAFnQC,GAA6B,OAAO,WAAkC,IAAsCC,EAAlCC,EAAQC,EAAgBd,GAAkB,GAAIC,EAA2B,CAAE,IAAIc,EAAYD,EAAgBE,MAAMC,YAAaL,EAASV,QAAQC,UAAUU,EAAOK,UAAWH,QAAqBH,EAASC,EAAMM,MAAMH,KAAME,WAAc,OAAOE,EAA2BJ,KAAMJ,EAAQ,CAAK,CASza,IAAIS,GAAa,EAoCbC,EAAuB,SAAUC,GACnCC,EAAUF,EAASC,GAEnB,IAAIE,EAAS1B,EAAauB,GAE1B,SAASA,IAGP,OAFAI,EAAgBV,KAAMM,GAEfG,EAAON,MAAMH,KAAME,UAC3B,CA0CD,OAxCAS,EAAaL,EAAS,CAAC,CACrBM,IAAK,oBACLC,MAAO,WACLb,KAAKc,IAAMC,EAASC,YAAYhB,MAChCiB,EAAOjB,KAAKkB,MAAMC,QAASnB,KAAKc,IACjC,GACA,CACDF,IAAK,qBACLC,MAAO,SAA4BO,GACjC,IAAIN,EAAMC,EAASC,YAAYhB,MAE3BoB,EAAUD,UAAYnB,KAAKkB,MAAMC,SAAWnB,KAAKc,MAAQA,IACvDM,EAAUD,UAAYnB,KAAKkB,MAAMC,SACnCF,EAAOG,EAAUD,QAAS,MAG5BnB,KAAKc,IAAMA,EACXG,EAAOjB,KAAKkB,MAAMC,QAASnB,KAAKc,KAEnC,GACA,CACDF,IAAK,uBACLC,MAAO,WACLb,KAAKc,IAAM,KACXG,EAAOjB,KAAKkB,MAAMC,QAAS,KAC5B,GACA,CACDP,IAAK,SACLC,MAAO,WAQL,MAP6B,eAAzBQ,QAAQC,IAAIC,WACTlB,IACHA,GAAa,EACbmB,QAAQC,KAAK,CAAC,oDAAqD,gGAAiG,qGAAqGC,KAAK,SAI3Q1B,KAAKkB,MAAMS,QACnB,KAGIrB,CACT,CApD2B,CAoDzBsB,EAAMC,WAEiB,eAAzBR,QAAQC,IAAIC,WAA4BjB,EAAQwB,UAAY,CAI1DH,SAAUI,EAAUC,QAAQC,WAK5Bd,QAASe,EAAQD,aAGU,eAAzBZ,QAAQC,IAAIC,UACW,eAAzBF,QAAQC,IAAIC,WAA4BjB,EAAQwB,UAAYK,EAAU7B,EAAQwB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import*as t from"react";import n from"../../../../../_virtual/index2.js";import"../../../styles/esm/index.js";import l from"./SelectInput.js";import r from"../FormControl/formControlState.js";import s from"../FormControl/useFormControl.js";import i from"../styles/withStyles.js";import p from"../internal/svg-icons/ArrowDropDown.js";import a from"../Input/Input.js";import{styles as m}from"../NativeSelect/NativeSelect.js";import d from"../NativeSelect/NativeSelectInput.js";import u from"../FilledInput/FilledInput.js";import c from"../OutlinedInput/OutlinedInput.js";import f from"../../../styles/esm/mergeClasses/mergeClasses.js";var b=m,v=t.createElement(a,null),y=t.createElement(u,null),j=t.forwardRef((function n(i,a){var m=i.autoWidth,u=void 0!==m&&m,b=i.children,j=i.classes,C=i.displayEmpty,h=void 0!==C&&C,I=i.IconComponent,P=void 0===I?p:I,S=i.id,E=i.input,W=i.inputProps,O=i.label,D=i.labelId,N=i.labelWidth,g=void 0===N?0:N,F=i.MenuProps,V=i.multiple,w=void 0!==V&&V,M=i.native,x=void 0!==M&&M,T=i.onClose,_=i.onOpen,A=i.open,R=i.renderValue,k=i.SelectDisplayProps,q=i.variant,z=void 0===q?"standard":q,B=o(i,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),G=x?d:l,H=s(),J=r({props:i,muiFormControl:H,states:["variant"]}).variant||z,K=E||{standard:v,outlined:t.createElement(c,{label:O,labelWidth:g}),filled:y}[J];return t.cloneElement(K,e({inputComponent:G,inputProps:e({children:b,IconComponent:P,variant:J,type:void 0,multiple:w},x?{id:S}:{autoWidth:u,displayEmpty:h,labelId:D,MenuProps:F,onClose:T,onOpen:_,open:A,renderValue:R,SelectDisplayProps:e({id:S},k)},W,{classes:W?f({baseClasses:j,newClasses:W.classes,Component:n}):j},E?E.props.inputProps:{}),ref:a},B))}));"production"!==process.env.NODE_ENV&&(j.propTypes={autoWidth:n.bool,children:n.node,classes:n.object,defaultValue:n.any,displayEmpty:n.bool,IconComponent:n.elementType,id:n.string,input:n.element,inputProps:n.object,label:n.node,labelId:n.string,labelWidth:n.number,MenuProps:n.object,multiple:n.bool,native:n.bool,onChange:n.func,onClose:n.func,onOpen:n.func,open:n.bool,renderValue:n.func,SelectDisplayProps:n.object,value:n.any,variant:n.oneOf(["filled","outlined","standard"])}),j.muiName="Select";var C=i(b,{name:"MuiSelect"})(j);export{C as default,b as styles};
|
|
2
|
+
//# sourceMappingURL=Select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../../../../../node_modules/@material-ui/core/esm/Select/Select.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { mergeClasses } from '@material-ui/styles';\nimport SelectInput from './SelectInput';\nimport formControlState from '../FormControl/formControlState';\nimport useFormControl from '../FormControl/useFormControl';\nimport withStyles from '../styles/withStyles';\nimport ArrowDropDownIcon from '../internal/svg-icons/ArrowDropDown';\nimport Input from '../Input';\nimport { styles as nativeSelectStyles } from '../NativeSelect/NativeSelect';\nimport NativeSelectInput from '../NativeSelect/NativeSelectInput';\nimport FilledInput from '../FilledInput';\nimport OutlinedInput from '../OutlinedInput';\nexport var styles = nativeSelectStyles;\n\nvar _ref = /*#__PURE__*/React.createElement(Input, null);\n\nvar _ref2 = /*#__PURE__*/React.createElement(FilledInput, null);\n\nvar Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {\n var _props$autoWidth = props.autoWidth,\n autoWidth = _props$autoWidth === void 0 ? false : _props$autoWidth,\n children = props.children,\n classes = props.classes,\n _props$displayEmpty = props.displayEmpty,\n displayEmpty = _props$displayEmpty === void 0 ? false : _props$displayEmpty,\n _props$IconComponent = props.IconComponent,\n IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon : _props$IconComponent,\n id = props.id,\n input = props.input,\n inputProps = props.inputProps,\n label = props.label,\n labelId = props.labelId,\n _props$labelWidth = props.labelWidth,\n labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth,\n MenuProps = props.MenuProps,\n _props$multiple = props.multiple,\n multiple = _props$multiple === void 0 ? false : _props$multiple,\n _props$native = props.native,\n native = _props$native === void 0 ? false : _props$native,\n onClose = props.onClose,\n onOpen = props.onOpen,\n open = props.open,\n renderValue = props.renderValue,\n SelectDisplayProps = props.SelectDisplayProps,\n _props$variant = props.variant,\n variantProps = _props$variant === void 0 ? 'standard' : _props$variant,\n other = _objectWithoutProperties(props, [\"autoWidth\", \"children\", \"classes\", \"displayEmpty\", \"IconComponent\", \"id\", \"input\", \"inputProps\", \"label\", \"labelId\", \"labelWidth\", \"MenuProps\", \"multiple\", \"native\", \"onClose\", \"onOpen\", \"open\", \"renderValue\", \"SelectDisplayProps\", \"variant\"]);\n\n var inputComponent = native ? NativeSelectInput : SelectInput;\n var muiFormControl = useFormControl();\n var fcs = formControlState({\n props: props,\n muiFormControl: muiFormControl,\n states: ['variant']\n });\n var variant = fcs.variant || variantProps;\n var InputComponent = input || {\n standard: _ref,\n outlined: /*#__PURE__*/React.createElement(OutlinedInput, {\n label: label,\n labelWidth: labelWidth\n }),\n filled: _ref2\n }[variant];\n return /*#__PURE__*/React.cloneElement(InputComponent, _extends({\n // Most of the logic is implemented in `SelectInput`.\n // The `Select` component is a simple API wrapper to expose something better to play with.\n inputComponent: inputComponent,\n inputProps: _extends({\n children: children,\n IconComponent: IconComponent,\n variant: variant,\n type: undefined,\n // We render a select. We can ignore the type provided by the `Input`.\n multiple: multiple\n }, native ? {\n id: id\n } : {\n autoWidth: autoWidth,\n displayEmpty: displayEmpty,\n labelId: labelId,\n MenuProps: MenuProps,\n onClose: onClose,\n onOpen: onOpen,\n open: open,\n renderValue: renderValue,\n SelectDisplayProps: _extends({\n id: id\n }, SelectDisplayProps)\n }, inputProps, {\n classes: inputProps ? mergeClasses({\n baseClasses: classes,\n newClasses: inputProps.classes,\n Component: Select\n }) : classes\n }, input ? input.props.inputProps : {}),\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Select.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * If `true`, the width of the popover will automatically be set according to the items inside the\n * menu, otherwise it will be at least the width of the select input.\n */\n autoWidth: PropTypes.bool,\n\n /**\n * The option elements to populate the select with.\n * Can be some `MenuItem` when `native` is false and `option` when `native` is true.\n *\n * ⚠️The `MenuItem` elements **must** be direct descendants when `native` is false.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * The default element value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n\n /**\n * If `true`, a value is displayed even if no items are selected.\n *\n * In order to display a meaningful value, a function should be passed to the `renderValue` prop which returns the value to be displayed when no items are selected.\n * You can only use it when the `native` prop is `false` (default).\n */\n displayEmpty: PropTypes.bool,\n\n /**\n * The icon that displays the arrow.\n */\n IconComponent: PropTypes.elementType,\n\n /**\n * The `id` of the wrapper element or the `select` element when `native`.\n */\n id: PropTypes.string,\n\n /**\n * An `Input` element; does not have to be a material-ui specific `Input`.\n */\n input: PropTypes.element,\n\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * When `native` is `true`, the attributes are applied on the `select` element.\n */\n inputProps: PropTypes.object,\n\n /**\n * See [OutlinedInput#label](/api/outlined-input/#props)\n */\n label: PropTypes.node,\n\n /**\n * The ID of an element that acts as an additional label. The Select will\n * be labelled by the additional label and the selected value.\n */\n labelId: PropTypes.string,\n\n /**\n * See [OutlinedInput#label](/api/outlined-input/#props)\n */\n labelWidth: PropTypes.number,\n\n /**\n * Props applied to the [`Menu`](/api/menu/) element.\n */\n MenuProps: PropTypes.object,\n\n /**\n * If `true`, `value` must be an array and the menu will support multiple selections.\n */\n multiple: PropTypes.bool,\n\n /**\n * If `true`, the component will be using a native `select` element.\n */\n native: PropTypes.bool,\n\n /**\n * Callback function fired when a menu item is selected.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (any).\n * @param {object} [child] The react element that was selected when `native` is `false` (default).\n */\n onChange: PropTypes.func,\n\n /**\n * Callback fired when the component requests to be closed.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired when the component requests to be opened.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n\n /**\n * Control `select` open state.\n * You can only use it when the `native` prop is `false` (default).\n */\n open: PropTypes.bool,\n\n /**\n * Render the selected value.\n * You can only use it when the `native` prop is `false` (default).\n *\n * @param {any} value The `value` provided to the component.\n * @returns {ReactNode}\n */\n renderValue: PropTypes.func,\n\n /**\n * Props applied to the clickable div element.\n */\n SelectDisplayProps: PropTypes.object,\n\n /**\n * The input value. Providing an empty string will select no options.\n * This prop is required when the `native` prop is `false` (default).\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n *\n * If the value is an object it must have reference equality with the option in order to be selected.\n * If the value is not an object, the string representation must match with the string representation of the option in order to be selected.\n */\n value: PropTypes.any,\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nSelect.muiName = 'Select';\nexport default withStyles(styles, {\n name: 'MuiSelect'\n})(Select);"],"names":["styles","nativeSelectStyles","_ref","React","createElement","Input","_ref2","FilledInput","Select","forwardRef","props","ref","_props$autoWidth","autoWidth","children","classes","_props$displayEmpty","displayEmpty","_props$IconComponent","IconComponent","ArrowDropDownIcon","id","input","inputProps","label","labelId","_props$labelWidth","labelWidth","MenuProps","_props$multiple","multiple","_props$native","native","onClose","onOpen","open","renderValue","SelectDisplayProps","_props$variant","variant","variantProps","other","_objectWithoutProperties","inputComponent","NativeSelectInput","SelectInput","muiFormControl","useFormControl","formControlState","states","InputComponent","standard","outlined","OutlinedInput","filled","cloneElement","_extends","type","undefined","mergeClasses","baseClasses","newClasses","Component","process","env","NODE_ENV","propTypes","PropTypes","bool","node","object","defaultValue","any","elementType","string","element","number","onChange","func","value","oneOf","muiName","Select$1","withStyles","name"],"mappings":"2wBAeU,IAACA,EAASC,EAEhBC,EAAoBC,EAAMC,cAAcC,EAAO,MAE/CC,EAAqBH,EAAMC,cAAcG,EAAa,MAEtDC,EAAsBL,EAAMM,YAAW,SAASD,EAAOE,EAAOC,GAChE,IAAIC,EAAmBF,EAAMG,UACzBA,OAAiC,IAArBD,GAAsCA,EAClDE,EAAWJ,EAAMI,SACjBC,EAAUL,EAAMK,QAChBC,EAAsBN,EAAMO,aAC5BA,OAAuC,IAAxBD,GAAyCA,EACxDE,EAAuBR,EAAMS,cAC7BA,OAAyC,IAAzBD,EAAkCE,EAAoBF,EACtEG,EAAKX,EAAMW,GACXC,EAAQZ,EAAMY,MACdC,EAAab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AAa,CACjCC,YAAa7C,EACb8C,WAAYtC,EAAWR,QACvB+C,UAAWtD,IACRO,GACJO,EAAQA,EAAMZ,MAAMa,WAAa,CAAA,GACpCZ,IAAKA,GACJ8B,GACL,IACyB,eAAzBsB,QAAQC,IAAIC,WAA4BzD,EAAO0D,UAAY,CAUzDrD,UAAWsD,EAAUC,KAQrBtD,SAAUqD,EAAUE,KAMpBtD,QAASoD,EAAUG,OAKnBC,aAAcJ,EAAUK,IAQxBvD,aAAckD,EAAUC,KAKxBjD,cAAegD,EAAUM,YAKzBpD,GAAI8C,EAAUO,OAKdpD,MAAO6C,EAAUQ,QAMjBpD,WAAY4C,EAAUG,OAKtB9C,MAAO2C,EAAUE,KAMjB5C,QAAS0C,EAAUO,OAKnB/C,WAAYwC,EAAUS,OAKtBhD,UAAWuC,EAAUG,OAKrBxC,SAAUqC,EAAUC,KAKpBpC,OAAQmC,EAAUC,KASlBS,SAAUV,EAAUW,KAQpB7C,QAASkC,EAAUW,KAQnB5C,OAAQiC,EAAUW,KAMlB3C,KAAMgC,EAAUC,KAShBhC,YAAa+B,EAAUW,KAKvBzC,mBAAoB8B,EAAUG,OAU9BS,MAAOZ,EAAUK,IAKjBjC,QAAS4B,EAAUa,MAAM,CAAC,SAAU,WAAY,eAElDxE,EAAOyE,QAAU,SACjB,IAAeC,EAAAC,EAAWnF,EAAQ,CAChCoF,KAAM,aADOD,CAEZ3E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../../@babel/runtime/helpers/esm/extends.js";import n from"../../../../@babel/runtime/helpers/esm/slicedToArray.js";import o from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import r from"../../../../@babel/runtime/helpers/esm/typeof.js";import"../../../utils/esm/elementAcceptingRef.js";import"../../../utils/esm/elementTypeAcceptingRef.js";import t from"../../../utils/esm/formatMuiErrorMessage.js";import{r as a}from"../../../../../_virtual/index.js";import"../../../utils/esm/ponyfillGlobal.js";import l from"../../../utils/esm/refType.js";import*as i from"react";import s from"../../../../../_virtual/index2.js";import{clsx as u}from"../../../../clsx/dist/clsx.m.js";import p from"../utils/ownerDocument.js";import c from"../utils/capitalize.js";import d from"../Menu/Menu.js";import{isFilled as m}from"../InputBase/utils.js";import f from"../utils/useForkRef.js";import v from"../utils/useControlled.js";function b(e,n){return"object"===r(n)&&null!==n?e===n:String(e)===String(n)}var y=i.forwardRef((function(r,l){var s=r["aria-label"],y=r.autoFocus,h=r.autoWidth,j=r.children,E=r.classes,g=r.className,C=r.defaultValue,I=r.disabled,P=r.displayEmpty,O=r.IconComponent,x=r.inputRef,M=r.labelId,w=r.MenuProps,D=void 0===w?{}:w,N=r.multiple,S=r.name,A=r.onBlur,F=r.onChange,R=r.onClose,V=r.onFocus,T=r.onOpen,k=r.open,W=r.readOnly,_=r.renderValue,B=r.SelectDisplayProps,U=void 0===B?{}:B,L=r.tabIndex;r.type;var K=r.value,q=r.variant,H=void 0===q?"standard":q,z=o(r,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),G=v({controlled:K,default:C,name:"Select"}),Y=n(G,2),J=Y[0],Q=Y[1],X=i.useRef(null),Z=i.useState(null),$=Z[0],ee=Z[1],ne=i.useRef(null!=k).current,oe=i.useState(),re=oe[0],te=oe[1],ae=i.useState(!1),le=ae[0],ie=ae[1],se=f(l,x);i.useImperativeHandle(se,(function(){return{focus:function(){$.focus()},node:X.current,value:J}}),[$,J]),i.useEffect((function(){y&&$&&$.focus()}),[y,$]),i.useEffect((function(){if($){var e=p($).getElementById(M);if(e){var n=function(){getSelection().isCollapsed&&$.focus()};return e.addEventListener("click",n),function(){e.removeEventListener("click",n)}}}}),[M,$]);var ue,pe,ce=function(e,n){e?T&&T(n):R&&R(n),ne||(te(h?null:$.clientWidth),ie(e))},de=i.Children.toArray(j),me=function(e){return function(n){var o;if(N||ce(!1,n),N){o=Array.isArray(J)?J.slice():[];var r=J.indexOf(e.props.value);-1===r?o.push(e.props.value):o.splice(r,1)}else o=e.props.value;e.props.onClick&&e.props.onClick(n),J!==o&&(Q(o),F&&(n.persist(),Object.defineProperty(n,"target",{writable:!0,value:{value:o,name:S}}),F(n,e)))}},fe=null!==$&&(ne?k:le);delete z["aria-invalid"];var ve=[],be=!1,ye=!1;(m({value:J})||P)&&(_?ue=_(J):be=!0);var he=de.map((function(e){if(!i.isValidElement(e))return null;var n;if("production"!==process.env.NODE_ENV&&a.isFragment(e)&&console.error(["Material-UI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),N){if(!Array.isArray(J))throw new Error("production"!==process.env.NODE_ENV?"Material-UI: The `value` prop must be an array when using the `Select` component with `multiple`.":t(2));(n=J.some((function(n){return b(n,e.props.value)})))&&be&&ve.push(e.props.children)}else(n=b(J,e.props.value))&&be&&(pe=e.props.children);return n&&(ye=!0),i.cloneElement(e,{"aria-selected":n?"true":void 0,onClick:me(e),onKeyUp:function(n){" "===n.key&&n.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(n)},role:"option",selected:n,value:void 0,"data-value":e.props.value})}));"production"!==process.env.NODE_ENV&&i.useEffect((function(){if(!ye&&!N&&""!==J){var e=de.map((function(e){return e.props.value}));console.warn(["Material-UI: You have provided an out-of-range value `".concat(J,"` for the select ").concat(S?'(name="'.concat(S,'") '):"","component."),"Consider providing a value that matches one of the available options or ''.","The available values are ".concat(e.filter((function(e){return null!=e})).map((function(e){return"`".concat(e,"`")})).join(", ")||'""',".")].join("\n"))}}),[ye,de,N,S,J]),be&&(ue=N?ve.join(", "):pe);var je,Ee=re;!h&&ne&&$&&(Ee=$.clientWidth),je=void 0!==L?L:I?null:0;var ge=U.id||(S?"mui-component-select-".concat(S):void 0);return i.createElement(i.Fragment,null,i.createElement("div",e({className:u(E.root,E.select,E.selectMenu,E[H],g,I&&E.disabled),ref:ee,tabIndex:je,role:"button","aria-disabled":I?"true":void 0,"aria-expanded":fe?"true":void 0,"aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[M,ge].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!W){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ce(!0,e))}},onMouseDown:I||W?null:function(e){0===e.button&&(e.preventDefault(),$.focus(),ce(!0,e))},onBlur:function(e){!fe&&A&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:J,name:S}}),A(e))},onFocus:V},U,{id:ge}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ue)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ue),i.createElement("input",e({value:Array.isArray(J)?J.join(","):J,name:S,ref:X,"aria-hidden":!0,onChange:function(e){var n=de.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==n){var o=de[n];Q(o.props.value),F&&F(e,o)}},tabIndex:-1,className:E.nativeInput,autoFocus:y},z)),i.createElement(O,{className:u(E.icon,E["icon".concat(c(H))],fe&&E.iconOpen,I&&E.disabled)}),i.createElement(d,e({id:"menu-".concat(S||""),anchorEl:$,open:fe,onClose:function(e){ce(!1,e)}},D,{MenuListProps:e({"aria-labelledby":M,role:"listbox",disableListWrap:!0},D.MenuListProps),PaperProps:e({},D.PaperProps,{style:e({minWidth:Ee},null!=D.PaperProps?D.PaperProps.style:null)})}),he))}));"production"!==process.env.NODE_ENV&&(y.propTypes={"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object.isRequired,className:s.string,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,IconComponent:s.elementType.isRequired,inputRef:l,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});export{y as default};
|
|
2
|
+
//# sourceMappingURL=SelectInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectInput.js","sources":["../../../../../../node_modules/@material-ui/core/esm/Select/SelectInput.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@material-ui/utils\";\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport ownerDocument from '../utils/ownerDocument';\nimport capitalize from '../utils/capitalize';\nimport { refType } from '@material-ui/utils';\nimport Menu from '../Menu/Menu';\nimport { isFilled } from '../InputBase/utils';\nimport useForkRef from '../utils/useForkRef';\nimport useControlled from '../utils/useControlled';\n\nfunction areEqualValues(a, b) {\n if (_typeof(b) === 'object' && b !== null) {\n return a === b;\n }\n\n return String(a) === String(b);\n}\n\nfunction isEmpty(display) {\n return display == null || typeof display === 'string' && !display.trim();\n}\n/**\n * @ignore - internal component.\n */\n\n\nvar SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {\n var ariaLabel = props['aria-label'],\n autoFocus = props.autoFocus,\n autoWidth = props.autoWidth,\n children = props.children,\n classes = props.classes,\n className = props.className,\n defaultValue = props.defaultValue,\n disabled = props.disabled,\n displayEmpty = props.displayEmpty,\n IconComponent = props.IconComponent,\n inputRefProp = props.inputRef,\n labelId = props.labelId,\n _props$MenuProps = props.MenuProps,\n MenuProps = _props$MenuProps === void 0 ? {} : _props$MenuProps,\n multiple = props.multiple,\n name = props.name,\n onBlur = props.onBlur,\n onChange = props.onChange,\n onClose = props.onClose,\n onFocus = props.onFocus,\n onOpen = props.onOpen,\n openProp = props.open,\n readOnly = props.readOnly,\n renderValue = props.renderValue,\n _props$SelectDisplayP = props.SelectDisplayProps,\n SelectDisplayProps = _props$SelectDisplayP === void 0 ? {} : _props$SelectDisplayP,\n tabIndexProp = props.tabIndex,\n type = props.type,\n valueProp = props.value,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'standard' : _props$variant,\n other = _objectWithoutProperties(props, [\"aria-label\", \"autoFocus\", \"autoWidth\", \"children\", \"classes\", \"className\", \"defaultValue\", \"disabled\", \"displayEmpty\", \"IconComponent\", \"inputRef\", \"labelId\", \"MenuProps\", \"multiple\", \"name\", \"onBlur\", \"onChange\", \"onClose\", \"onFocus\", \"onOpen\", \"open\", \"readOnly\", \"renderValue\", \"SelectDisplayProps\", \"tabIndex\", \"type\", \"value\", \"variant\"]);\n\n var _useControlled = useControlled({\n controlled: valueProp,\n default: defaultValue,\n name: 'Select'\n }),\n _useControlled2 = _slicedToArray(_useControlled, 2),\n value = _useControlled2[0],\n setValue = _useControlled2[1];\n\n var inputRef = React.useRef(null);\n\n var _React$useState = React.useState(null),\n displayNode = _React$useState[0],\n setDisplayNode = _React$useState[1];\n\n var _React$useRef = React.useRef(openProp != null),\n isOpenControlled = _React$useRef.current;\n\n var _React$useState2 = React.useState(),\n menuMinWidthState = _React$useState2[0],\n setMenuMinWidthState = _React$useState2[1];\n\n var _React$useState3 = React.useState(false),\n openState = _React$useState3[0],\n setOpenState = _React$useState3[1];\n\n var handleRef = useForkRef(ref, inputRefProp);\n React.useImperativeHandle(handleRef, function () {\n return {\n focus: function focus() {\n displayNode.focus();\n },\n node: inputRef.current,\n value: value\n };\n }, [displayNode, value]);\n React.useEffect(function () {\n if (autoFocus && displayNode) {\n displayNode.focus();\n }\n }, [autoFocus, displayNode]);\n React.useEffect(function () {\n if (displayNode) {\n var label = ownerDocument(displayNode).getElementById(labelId);\n\n if (label) {\n var handler = function handler() {\n if (getSelection().isCollapsed) {\n displayNode.focus();\n }\n };\n\n label.addEventListener('click', handler);\n return function () {\n label.removeEventListener('click', handler);\n };\n }\n }\n\n return undefined;\n }, [labelId, displayNode]);\n\n var update = function update(open, event) {\n if (open) {\n if (onOpen) {\n onOpen(event);\n }\n } else if (onClose) {\n onClose(event);\n }\n\n if (!isOpenControlled) {\n setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);\n setOpenState(open);\n }\n };\n\n var handleMouseDown = function handleMouseDown(event) {\n // Ignore everything but left-click\n if (event.button !== 0) {\n return;\n } // Hijack the default focus behavior.\n\n\n event.preventDefault();\n displayNode.focus();\n update(true, event);\n };\n\n var handleClose = function handleClose(event) {\n update(false, event);\n };\n\n var childrenArray = React.Children.toArray(children); // Support autofill.\n\n var handleChange = function handleChange(event) {\n var index = childrenArray.map(function (child) {\n return child.props.value;\n }).indexOf(event.target.value);\n\n if (index === -1) {\n return;\n }\n\n var child = childrenArray[index];\n setValue(child.props.value);\n\n if (onChange) {\n onChange(event, child);\n }\n };\n\n var handleItemClick = function handleItemClick(child) {\n return function (event) {\n if (!multiple) {\n update(false, event);\n }\n\n var newValue;\n\n if (multiple) {\n newValue = Array.isArray(value) ? value.slice() : [];\n var itemIndex = value.indexOf(child.props.value);\n\n if (itemIndex === -1) {\n newValue.push(child.props.value);\n } else {\n newValue.splice(itemIndex, 1);\n }\n } else {\n newValue = child.props.value;\n }\n\n if (child.props.onClick) {\n child.props.onClick(event);\n }\n\n if (value === newValue) {\n return;\n }\n\n setValue(newValue);\n\n if (onChange) {\n event.persist(); // Preact support, target is read only property on a native event.\n\n Object.defineProperty(event, 'target', {\n writable: true,\n value: {\n value: newValue,\n name: name\n }\n });\n onChange(event, child);\n }\n };\n };\n\n var handleKeyDown = function handleKeyDown(event) {\n if (!readOnly) {\n var validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on MacOS, but it's recommended by\n // https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html\n 'Enter'];\n\n if (validKeys.indexOf(event.key) !== -1) {\n event.preventDefault();\n update(true, event);\n }\n }\n };\n\n var open = displayNode !== null && (isOpenControlled ? openProp : openState);\n\n var handleBlur = function handleBlur(event) {\n // if open event.stopImmediatePropagation\n if (!open && onBlur) {\n event.persist(); // Preact support, target is read only property on a native event.\n\n Object.defineProperty(event, 'target', {\n writable: true,\n value: {\n value: value,\n name: name\n }\n });\n onBlur(event);\n }\n };\n\n delete other['aria-invalid'];\n var display;\n var displaySingle;\n var displayMultiple = [];\n var computeDisplay = false;\n var foundMatch = false; // No need to display any value if the field is empty.\n\n if (isFilled({\n value: value\n }) || displayEmpty) {\n if (renderValue) {\n display = renderValue(value);\n } else {\n computeDisplay = true;\n }\n }\n\n var items = childrenArray.map(function (child) {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return null;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"Material-UI: The Select component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n\n var selected;\n\n if (multiple) {\n if (!Array.isArray(value)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: The `value` prop must be an array when using the `Select` component with `multiple`.\" : _formatMuiErrorMessage(2));\n }\n\n selected = value.some(function (v) {\n return areEqualValues(v, child.props.value);\n });\n\n if (selected && computeDisplay) {\n displayMultiple.push(child.props.children);\n }\n } else {\n selected = areEqualValues(value, child.props.value);\n\n if (selected && computeDisplay) {\n displaySingle = child.props.children;\n }\n }\n\n if (selected) {\n foundMatch = true;\n }\n\n return /*#__PURE__*/React.cloneElement(child, {\n 'aria-selected': selected ? 'true' : undefined,\n onClick: handleItemClick(child),\n onKeyUp: function onKeyUp(event) {\n if (event.key === ' ') {\n // otherwise our MenuItems dispatches a click event\n // it's not behavior of the native <option> and causes\n // the select to close immediately since we open on space keydown\n event.preventDefault();\n }\n\n if (child.props.onKeyUp) {\n child.props.onKeyUp(event);\n }\n },\n role: 'option',\n selected: selected,\n value: undefined,\n // The value is most likely not a valid HTML attribute.\n 'data-value': child.props.value // Instead, we provide it as a data attribute.\n\n });\n });\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(function () {\n if (!foundMatch && !multiple && value !== '') {\n var values = childrenArray.map(function (child) {\n return child.props.value;\n });\n console.warn([\"Material-UI: You have provided an out-of-range value `\".concat(value, \"` for the select \").concat(name ? \"(name=\\\"\".concat(name, \"\\\") \") : '', \"component.\"), \"Consider providing a value that matches one of the available options or ''.\", \"The available values are \".concat(values.filter(function (x) {\n return x != null;\n }).map(function (x) {\n return \"`\".concat(x, \"`\");\n }).join(', ') || '\"\"', \".\")].join('\\n'));\n }\n }, [foundMatch, childrenArray, multiple, name, value]);\n }\n\n if (computeDisplay) {\n display = multiple ? displayMultiple.join(', ') : displaySingle;\n } // Avoid performing a layout computation in the render method.\n\n\n var menuMinWidth = menuMinWidthState;\n\n if (!autoWidth && isOpenControlled && displayNode) {\n menuMinWidth = displayNode.clientWidth;\n }\n\n var tabIndex;\n\n if (typeof tabIndexProp !== 'undefined') {\n tabIndex = tabIndexProp;\n } else {\n tabIndex = disabled ? null : 0;\n }\n\n var buttonId = SelectDisplayProps.id || (name ? \"mui-component-select-\".concat(name) : undefined);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clsx(classes.root, // TODO v5: merge root and select\n classes.select, classes.selectMenu, classes[variant], className, disabled && classes.disabled),\n ref: setDisplayNode,\n tabIndex: tabIndex,\n role: \"button\",\n \"aria-disabled\": disabled ? 'true' : undefined,\n \"aria-expanded\": open ? 'true' : undefined,\n \"aria-haspopup\": \"listbox\",\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": [labelId, buttonId].filter(Boolean).join(' ') || undefined,\n onKeyDown: handleKeyDown,\n onMouseDown: disabled || readOnly ? null : handleMouseDown,\n onBlur: handleBlur,\n onFocus: onFocus\n }, SelectDisplayProps, {\n // The id is required for proper a11y\n id: buttonId\n }), isEmpty(display) ?\n /*#__PURE__*/\n // eslint-disable-next-line react/no-danger\n React.createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: '​'\n }\n }) : display), /*#__PURE__*/React.createElement(\"input\", _extends({\n value: Array.isArray(value) ? value.join(',') : value,\n name: name,\n ref: inputRef,\n \"aria-hidden\": true,\n onChange: handleChange,\n tabIndex: -1,\n className: classes.nativeInput,\n autoFocus: autoFocus\n }, other)), /*#__PURE__*/React.createElement(IconComponent, {\n className: clsx(classes.icon, classes[\"icon\".concat(capitalize(variant))], open && classes.iconOpen, disabled && classes.disabled)\n }), /*#__PURE__*/React.createElement(Menu, _extends({\n id: \"menu-\".concat(name || ''),\n anchorEl: displayNode,\n open: open,\n onClose: handleClose\n }, MenuProps, {\n MenuListProps: _extends({\n 'aria-labelledby': labelId,\n role: 'listbox',\n disableListWrap: true\n }, MenuProps.MenuListProps),\n PaperProps: _extends({}, MenuProps.PaperProps, {\n style: _extends({\n minWidth: menuMinWidth\n }, MenuProps.PaperProps != null ? MenuProps.PaperProps.style : null)\n })\n }), items));\n});\nprocess.env.NODE_ENV !== \"production\" ? SelectInput.propTypes = {\n /**\n * @ignore\n */\n 'aria-label': PropTypes.string,\n\n /**\n * @ignore\n */\n autoFocus: PropTypes.bool,\n\n /**\n * If `true`, the width of the popover will automatically be set according to the items inside the\n * menu, otherwise it will be at least the width of the select input.\n */\n autoWidth: PropTypes.bool,\n\n /**\n * The option elements to populate the select with.\n * Can be some `<MenuItem>` elements.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * The CSS class name of the select element.\n */\n className: PropTypes.string,\n\n /**\n * The default element value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n\n /**\n * If `true`, the select will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the selected item is displayed even if its value is empty.\n */\n displayEmpty: PropTypes.bool,\n\n /**\n * The icon that displays the arrow.\n */\n IconComponent: PropTypes.elementType.isRequired,\n\n /**\n * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`\n * Equivalent to `ref`\n */\n inputRef: refType,\n\n /**\n * The ID of an element that acts as an additional label. The Select will\n * be labelled by the additional label and the selected value.\n */\n labelId: PropTypes.string,\n\n /**\n * Props applied to the [`Menu`](/api/menu/) element.\n */\n MenuProps: PropTypes.object,\n\n /**\n * If `true`, `value` must be an array and the menu will support multiple selections.\n */\n multiple: PropTypes.bool,\n\n /**\n * Name attribute of the `select` or hidden `input` element.\n */\n name: PropTypes.string,\n\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n\n /**\n * Callback function fired when a menu item is selected.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (any).\n * @param {object} [child] The react element that was selected.\n */\n onChange: PropTypes.func,\n\n /**\n * Callback fired when the component requests to be closed.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n\n /**\n * Callback fired when the component requests to be opened.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n\n /**\n * Control `select` open state.\n */\n open: PropTypes.bool,\n\n /**\n * @ignore\n */\n readOnly: PropTypes.bool,\n\n /**\n * Render the selected value.\n *\n * @param {any} value The `value` provided to the component.\n * @returns {ReactNode}\n */\n renderValue: PropTypes.func,\n\n /**\n * Props applied to the clickable div element.\n */\n SelectDisplayProps: PropTypes.object,\n\n /**\n * @ignore\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * @ignore\n */\n type: PropTypes.any,\n\n /**\n * The input value.\n */\n value: PropTypes.any,\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['standard', 'outlined', 'filled'])\n} : void 0;\nexport default SelectInput;"],"names":["areEqualValues","a","b","_typeof","String","SelectInput","React","forwardRef","props","ref","ariaLabel","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRefProp","inputRef","labelId","_props$MenuProps","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","openProp","open","readOnly","renderValue","_props$SelectDisplayP","SelectDisplayProps","tabIndexProp","tabIndex","type","valueProp","value","_props$variant","variant","other","_objectWithoutProperties","_useControlled","useControlled","controlled","default","_useControlled2","_slicedToArray","setValue","useRef","_React$useState","useState","displayNode","setDisplayNode","isOpenControlled","current","_React$useState2","menuMinWidthState","setMenuMinWidthState","_React$useState3","openState","setOpenState","handleRef","useForkRef","useImperativeHandle","focus","node","useEffect","label","ownerDocument","getElementById","handler","getSelection","isCollapsed","addEventListener","removeEventListener","display","displaySingle","update","event","clientWidth","childrenArray","Children","toArray","handleItemClick","child","newValue","Array","isArray","slice","itemIndex","indexOf","push","splice","onClick","persist","Object","defineProperty","writable","displayMultiple","computeDisplay","foundMatch","isFilled","items","map","isValidElement","selected","process","env","NODE_ENV","isFragment","console","error","join","Error","_formatMuiErrorMessage","some","v","cloneElement","undefined","onKeyUp","key","preventDefault","role","values","warn","concat","filter","x","menuMinWidth","buttonId","id","createElement","Fragment","_extends","clsx","root","select","selectMenu","Boolean","onKeyDown","onMouseDown","button","trim","isEmpty","dangerouslySetInnerHTML","__html","index","target","nativeInput","icon","capitalize","iconOpen","Menu","anchorEl","MenuListProps","disableListWrap","PaperProps","style","minWidth","propTypes","PropTypes","string","bool","object","isRequired","any","elementType","refType","func","oneOfType","number","oneOf"],"mappings":"y7BAiBA,SAASA,EAAeC,EAAGC,GACzB,MAAmB,WAAfC,EAAQD,IAAyB,OAANA,EACtBD,IAAMC,EAGRE,OAAOH,KAAOG,OAAOF,EAC9B,CAUG,IAACG,EAA2BC,EAAMC,YAAW,SAAqBC,EAAOC,GACvE,IAACC,EAAYF,EAAM,cAClBG,EAAYH,EAAMG,UAClBC,EAAYJ,EAAMI,UAClBC,EAAWL,EAAMK,SACjBC,EAAUN,E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H,EAAUK,IAKjB/H,QAAS0H,EAAUW,MAAM,CAAC,WAAY,WAAY"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import t from"../../../../@babel/runtime/helpers/esm/extends.js";import n from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import*as e from"react";import i from"../../../../../_virtual/index2.js";import*as r from"react-dom";import o from"../utils/debounce.js";import"../../../../react-transition-group/esm/CSSTransition.js";import"../../../../react-transition-group/esm/ReplaceTransition.js";import"../../../../react-transition-group/esm/SwitchTransition.js";import"../../../../react-transition-group/esm/TransitionGroup.js";import s from"../../../../react-transition-group/esm/Transition.js";import a from"../../../utils/esm/elementAcceptingRef.js";import"../../../utils/esm/elementTypeAcceptingRef.js";import"../../../../../_virtual/index.js";import"../../../utils/esm/ponyfillGlobal.js";import"../../../utils/esm/refType.js";import u from"../utils/useForkRef.js";import c from"../styles/useTheme.js";import{duration as m}from"../styles/transitions.js";import{reflow as f,getTransitionProps as l}from"../transitions/utils.js";function p(t,n){var e=function(t,n){var e,i=n.getBoundingClientRect();if(n.fakeTransform)e=n.fakeTransform;else{var r=window.getComputedStyle(n);e=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("transform")}var o=0,s=0;if(e&&"none"!==e&&"string"==typeof e){var a=e.split("(")[1].split(")")[0].split(",");o=parseInt(a[4],10),s=parseInt(a[5],10)}return"left"===t?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-i.left,"px)"):"right"===t?"translateX(-".concat(i.left+i.width-o,"px)"):"up"===t?"translateY(".concat(window.innerHeight,"px) translateY(").concat(s-i.top,"px)"):"translateY(-".concat(i.top+i.height-s,"px)")}(t,n);e&&(n.style.webkitTransform=e,n.style.transform=e)}var d={enter:m.enteringScreen,exit:m.leavingScreen},g=e.forwardRef((function(i,a){var m=i.children,g=i.direction,E=void 0===g?"down":g,y=i.in,x=i.onEnter,b=i.onEntered,w=i.onEntering,v=i.onExit,h=i.onExited,j=i.onExiting,T=i.style,k=i.timeout,R=void 0===k?d:k,C=i.TransitionComponent,O=void 0===C?s:C,S=n(i,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),N=c(),P=e.useRef(null),V=e.useCallback((function(t){P.current=r.findDOMNode(t)}),[]),X=u(m.ref,V),Y=u(X,a),_=function(t){return function(n){t&&(void 0===n?t(P.current):t(P.current,n))}},z=_((function(t,n){p(E,t),f(t),x&&x(t,n)})),A=_((function(n,e){var i=l({timeout:R,style:T},{mode:"enter"});n.style.webkitTransition=N.transitions.create("-webkit-transform",t({},i,{easing:N.transitions.easing.easeOut})),n.style.transition=N.transitions.create("transform",t({},i,{easing:N.transitions.easing.easeOut})),n.style.webkitTransform="none",n.style.transform="none",w&&w(n,e)})),D=_(b),G=_(j),I=_((function(n){var e=l({timeout:R,style:T},{mode:"exit"});n.style.webkitTransition=N.transitions.create("-webkit-transform",t({},e,{easing:N.transitions.easing.sharp})),n.style.transition=N.transitions.create("transform",t({},e,{easing:N.transitions.easing.sharp})),p(E,n),v&&v(n)})),L=_((function(t){t.style.webkitTransition="",t.style.transition="",h&&h(t)})),W=e.useCallback((function(){P.current&&p(E,P.current)}),[E]);return e.useEffect((function(){if(!y&&"down"!==E&&"right"!==E){var t=o((function(){P.current&&p(E,P.current)}));return window.addEventListener("resize",t),function(){t.clear(),window.removeEventListener("resize",t)}}}),[E,y]),e.useEffect((function(){y||W()}),[y,W]),e.createElement(O,t({nodeRef:P,onEnter:z,onEntered:D,onEntering:A,onExit:I,onExited:L,onExiting:G,appear:!0,in:y,timeout:R},S),(function(n,i){return e.cloneElement(m,t({ref:Y,style:t({visibility:"exited"!==n||y?void 0:"hidden"},T,m.props.style)},i))}))}));"production"!==process.env.NODE_ENV&&(g.propTypes={children:a,direction:i.oneOf(["down","left","right","up"]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});export{g as default,p as setTranslateValue};
|
|
2
|
+
//# sourceMappingURL=Slide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slide.js","sources":["../../../../../../node_modules/@material-ui/core/esm/Slide/Slide.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport debounce from '../utils/debounce';\nimport { Transition } from 'react-transition-group';\nimport { elementAcceptingRef } from '@material-ui/utils';\nimport useForkRef from '../utils/useForkRef';\nimport useTheme from '../styles/useTheme';\nimport { duration } from '../styles/transitions';\nimport { reflow, getTransitionProps } from '../transitions/utils'; // Translate the node so he can't be seen on the screen.\n// Later, we gonna translate back the node to his original location\n// with `none`.`\n\nfunction getTranslateValue(direction, node) {\n var rect = node.getBoundingClientRect();\n var transform;\n\n if (node.fakeTransform) {\n transform = node.fakeTransform;\n } else {\n var computedStyle = window.getComputedStyle(node);\n transform = computedStyle.getPropertyValue('-webkit-transform') || computedStyle.getPropertyValue('transform');\n }\n\n var offsetX = 0;\n var offsetY = 0;\n\n if (transform && transform !== 'none' && typeof transform === 'string') {\n var transformValues = transform.split('(')[1].split(')')[0].split(',');\n offsetX = parseInt(transformValues[4], 10);\n offsetY = parseInt(transformValues[5], 10);\n }\n\n if (direction === 'left') {\n return \"translateX(\".concat(window.innerWidth, \"px) translateX(\").concat(offsetX - rect.left, \"px)\");\n }\n\n if (direction === 'right') {\n return \"translateX(-\".concat(rect.left + rect.width - offsetX, \"px)\");\n }\n\n if (direction === 'up') {\n return \"translateY(\".concat(window.innerHeight, \"px) translateY(\").concat(offsetY - rect.top, \"px)\");\n } // direction === 'down'\n\n\n return \"translateY(-\".concat(rect.top + rect.height - offsetY, \"px)\");\n}\n\nexport function setTranslateValue(direction, node) {\n var transform = getTranslateValue(direction, node);\n\n if (transform) {\n node.style.webkitTransform = transform;\n node.style.transform = transform;\n }\n}\nvar defaultTimeout = {\n enter: duration.enteringScreen,\n exit: duration.leavingScreen\n};\n/**\n * The Slide transition is used by the [Drawer](/components/drawers/) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\n\nvar Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {\n var children = props.children,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'down' : _props$direction,\n inProp = props.in,\n onEnter = props.onEnter,\n onEntered = props.onEntered,\n onEntering = props.onEntering,\n onExit = props.onExit,\n onExited = props.onExited,\n onExiting = props.onExiting,\n style = props.style,\n _props$timeout = props.timeout,\n timeout = _props$timeout === void 0 ? defaultTimeout : _props$timeout,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Transition : _props$TransitionComp,\n other = _objectWithoutProperties(props, [\"children\", \"direction\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"]);\n\n var theme = useTheme();\n var childrenRef = React.useRef(null);\n /**\n * used in cloneElement(children, { ref: handleRef })\n */\n\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n childrenRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n var handleRefIntermediary = useForkRef(children.ref, handleOwnRef);\n var handleRef = useForkRef(handleRefIntermediary, ref);\n\n var normalizedTransitionCallback = function normalizedTransitionCallback(callback) {\n return function (isAppearing) {\n if (callback) {\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (isAppearing === undefined) {\n callback(childrenRef.current);\n } else {\n callback(childrenRef.current, isAppearing);\n }\n }\n };\n };\n\n var handleEnter = normalizedTransitionCallback(function (node, isAppearing) {\n setTranslateValue(direction, node);\n reflow(node);\n\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n var handleEntering = normalizedTransitionCallback(function (node, isAppearing) {\n var transitionProps = getTransitionProps({\n timeout: timeout,\n style: style\n }, {\n mode: 'enter'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', _extends({}, transitionProps, {\n easing: theme.transitions.easing.easeOut\n }));\n node.style.transition = theme.transitions.create('transform', _extends({}, transitionProps, {\n easing: theme.transitions.easing.easeOut\n }));\n node.style.webkitTransform = 'none';\n node.style.transform = 'none';\n\n if (onEntering) {\n onEntering(node, isAppearing);\n }\n });\n var handleEntered = normalizedTransitionCallback(onEntered);\n var handleExiting = normalizedTransitionCallback(onExiting);\n var handleExit = normalizedTransitionCallback(function (node) {\n var transitionProps = getTransitionProps({\n timeout: timeout,\n style: style\n }, {\n mode: 'exit'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', _extends({}, transitionProps, {\n easing: theme.transitions.easing.sharp\n }));\n node.style.transition = theme.transitions.create('transform', _extends({}, transitionProps, {\n easing: theme.transitions.easing.sharp\n }));\n setTranslateValue(direction, node);\n\n if (onExit) {\n onExit(node);\n }\n });\n var handleExited = normalizedTransitionCallback(function (node) {\n // No need for transitions when the component is hidden\n node.style.webkitTransition = '';\n node.style.transition = '';\n\n if (onExited) {\n onExited(node);\n }\n });\n var updatePosition = React.useCallback(function () {\n if (childrenRef.current) {\n setTranslateValue(direction, childrenRef.current);\n }\n }, [direction]);\n React.useEffect(function () {\n // Skip configuration where the position is screen size invariant.\n if (inProp || direction === 'down' || direction === 'right') {\n return undefined;\n }\n\n var handleResize = debounce(function () {\n if (childrenRef.current) {\n setTranslateValue(direction, childrenRef.current);\n }\n });\n window.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n window.removeEventListener('resize', handleResize);\n };\n }, [direction, inProp]);\n React.useEffect(function () {\n if (!inProp) {\n // We need to update the position of the drawer when the direction change and\n // when it's hidden.\n updatePosition();\n }\n }, [inProp, updatePosition]);\n return /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n nodeRef: childrenRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n appear: true,\n in: inProp,\n timeout: timeout\n }, other), function (state, childProps) {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n ref: handleRef,\n style: _extends({\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, style, children.props.style)\n }, childProps));\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Slide.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A single child content element.\n */\n children: elementAcceptingRef,\n\n /**\n * Direction the child node will enter from.\n */\n direction: PropTypes.oneOf(['down', 'left', 'right', 'up']),\n\n /**\n * If `true`, show the component; triggers the enter or exit animation.\n */\n in: PropTypes.bool,\n\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n\n /**\n * @ignore\n */\n style: PropTypes.object,\n\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Slide;"],"names":["setTranslateValue","direction","node","transform","rect","getBoundingClientRect","fakeTransform","computedStyle","window","getComputedStyle","getPropertyValue","offsetX","offsetY","transformValues","split","parseInt","concat","innerWidth","left","width","innerHeight","top","height","getTranslateValue","style","webkitTransform","defaultTimeout","enter","duration","enteringScreen","exit","leavingScreen","Slide","React","forwardRef","props","ref","children","_props$direction","inProp","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","_props$timeout","timeout","_props$TransitionComp","TransitionComponent","Transition","other","_objectWithoutProperties","theme","useTheme","childrenRef","useRef","handleOwnRef","useCallback","instance","current","ReactDOM","findDOMNode","handleRefIntermediary","useForkRef","handleRef","normalizedTransitionCallback","callback","isAppearing","undefined","handleEnter","reflow","handleEntering","transitionProps","getTransitionProps","mode","webkitTransition","transitions","create","_extends","easing","easeOut","transition","handleEntered","handleExiting","handleExit","sharp","handleExited","updatePosition","useEffect","handleResize","debounce","addEventListener","clear","removeEventListener","createElement","nodeRef","appear","state","childProps","cloneElement","visibility","process","env","NODE_ENV","propTypes","elementAcceptingRef","PropTypes","oneOf","bool","func","object","oneOfType","number","shape"],"mappings":"2hCAmDO,SAASA,EAAkBC,EAAWC,GAC3C,IAAIC,EArCN,SAA2BF,EAAWC,GACpC,IACIC,EADAC,EAAOF,EAAKG,wBAGhB,GAAIH,EAAKI,cACPH,EAAYD,EAAKI,kBACZ,CACL,IAAIC,EAAgBC,OAAOC,iBAAiBP,GAC5CC,EAAYI,EAAcG,iBAAiB,sBAAwBH,EAAcG,iBAAiB,YACnG,CAED,IAAIC,EAAU,EACVC,EAAU,EAEd,GAAIT,GAA2B,SAAdA,GAA6C,iBAAdA,EAAwB,CACtE,IAAIU,EAAkBV,EAAUW,MAAM,KAAK,GAAGA,MAAM,KAAK,GAAGA,MAAM,KAClEH,EAAUI,SAASF,EAAgB,GAAI,IACvCD,EAAUG,SAASF,EAAgB,GAAI,GACxC,CAED,MAAkB,SAAdZ,EACK,cAAce,OAAOR,OAAOS,WAAY,mBAAmBD,OAAOL,EAAUP,EAAKc,KAAM,OAG9E,UAAdjB,EACK,eAAee,OAAOZ,EAAKc,KAAOd,EAAKe,MAAQR,EAAS,OAG/C,OAAdV,EACK,cAAce,OAAOR,OAAOY,YAAa,mBAAmBJ,OAAOJ,EAAUR,EAAKiB,IAAK,OAIzF,eAAeL,OAAOZ,EAAKiB,IAAMjB,EAAKkB,OAASV,EAAS,MACjE,CAGkBW,CAAkBtB,EAAWC,GAE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AYK,QAEjD,IAEI,OADArD,OAAOqF,iBAAiB,SAAUF,GAC3B,WACLA,EAAaG,QACbtF,OAAOuF,oBAAoB,SAAUJ,EAC3C,CAXK,CAYL,GAAK,CAAC1F,EAAWsC,IACfN,EAAMyD,WAAU,WACTnD,GAGHkD,GAEN,GAAK,CAAClD,EAAQkD,IACQxD,EAAM+D,cAAc9C,EAAqB8B,EAAS,CACpEiB,QAASzC,EACTf,QAAS8B,EACT7B,UAAW0C,EACXzC,WAAY8B,EACZ7B,OAAQ0C,EACRzC,SAAU2C,EACV1C,UAAWuC,EACXa,QAAQ,EACR1D,GAAID,EACJS,QAASA,GACRI,IAAQ,SAAU+C,EAAOC,GAC1B,OAAoBnE,EAAMoE,aAAahE,EAAU2C,EAAS,CACxD5C,IAAK8B,EACL1C,MAAOwD,EAAS,CACdsB,WAAsB,WAAVH,GAAuB5D,OAAoB+B,EAAX,UAC3C9C,EAAOa,EAASF,MAAMX,QACxB4E,GACP,GACA,IACyB,eAAzBG,QAAQC,IAAIC,WAA4BzE,EAAM0E,UAAY,CASxDrE,SAAUsE,EAKV1G,UAAW2G,EAAUC,MAAM,CAAC,OAAQ,OAAQ,QAAS,OAKrDrE,GAAIoE,EAAUE,KAKdrE,QAASmE,EAAUG,KAKnBrE,UAAWkE,EAAUG,KAKrBpE,WAAYiE,EAAUG,KAKtBnE,OAAQgE,EAAUG,KAKlBlE,SAAU+D,EAAUG,KAKpBjE,UAAW8D,EAAUG,KAKrBvF,MAAOoF,EAAUI,OAMjBhE,QAAS4D,EAAUK,UAAU,CAACL,EAAUM,OAAQN,EAAUO,MAAM,CAC9DjB,OAAQU,EAAUM,OAClBvF,MAAOiF,EAAUM,OACjBpF,KAAM8E,EAAUM"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../../@babel/runtime/helpers/esm/toConsumableArray.js";import t from"../../../../@babel/runtime/helpers/esm/slicedToArray.js";import r from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import a from"../../../../@babel/runtime/helpers/esm/extends.js";import*as n from"react";import o from"../../../../../_virtual/index2.js";import{clsx as i}from"../../../../clsx/dist/clsx.m.js";import l from"../../../utils/esm/chainPropTypes.js";import"../../../utils/esm/elementAcceptingRef.js";import"../../../utils/esm/elementTypeAcceptingRef.js";import"../../../../../_virtual/index.js";import"../../../utils/esm/ponyfillGlobal.js";import"../../../utils/esm/refType.js";import u from"../styles/withStyles.js";import s from"../styles/useTheme.js";import{lighten as c,darken as m,alpha as d}from"../styles/colorManipulator.js";import v from"../utils/useIsFocusVisible.js";import p from"../utils/ownerDocument.js";import f from"../utils/useEventCallback.js";import b from"../utils/useForkRef.js";import h from"../utils/capitalize.js";import g from"../utils/useControlled.js";import x from"./ValueLabel.js";function y(e,t){return e-t}function w(e,t,r){return Math.min(Math.max(t,e),r)}function k(e,t){return e.reduce((function(e,r,a){var n=Math.abs(t-r);return null===e||n<e.distance||n===e.distance?{distance:n,index:a}:e}),null).index}function L(e,t){if(void 0!==t.current&&e.changedTouches){for(var r=0;r<e.changedTouches.length;r+=1){var a=e.changedTouches[r];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function A(e,t,r){return 100*(e-t)/(r-t)}function C(e,t,r){var a=Math.round((e-r)/t)*t+r;return Number(a.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}var a=e.toString().split(".")[1];return a?a.length:0}(t)))}function E(e){var t=e.values,r=e.source,a=e.newValue,n=e.index;if(t[n]===a)return r;var o=t.slice();return o[n]=a,o}function T(e){var t=e.sliderRef,r=e.activeIndex,a=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===r||t.current.querySelector('[role="slider"][data-index="'.concat(r,'"]')).focus(),a&&a(r)}var V={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},j=function(e){return e},R=function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?c(e.palette.primary.main,.62):m(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(d(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(d(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(d(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(d(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:a({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}},S=n.forwardRef((function(o,l){var u=o["aria-label"],c=o["aria-labelledby"],m=o["aria-valuetext"],d=o.classes,R=o.className,S=o.color,$=void 0===S?"primary":S,O=o.component,I=void 0===O?"span":O,N=o.defaultValue,D=o.disabled,M=void 0!==D&&D,F=o.getAriaLabel,z=o.getAriaValueText,B=o.marks,P=void 0!==B&&B,Y=o.max,U=void 0===Y?100:Y,X=o.min,_=void 0===X?0:X,q=o.name,H=o.onChange,W=o.onChangeCommitted,G=o.onMouseDown,K=o.orientation,J=void 0===K?"horizontal":K,Q=o.scale,Z=void 0===Q?j:Q,ee=o.step,te=void 0===ee?1:ee,re=o.ThumbComponent,ae=void 0===re?"span":re,ne=o.track,oe=void 0===ne?"normal":ne,ie=o.value,le=o.ValueLabelComponent,ue=void 0===le?x:le,se=o.valueLabelDisplay,ce=void 0===se?"off":se,me=o.valueLabelFormat,de=void 0===me?j:me,ve=r(o,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),pe=s(),fe=n.useRef(),be=n.useState(-1),he=be[0],ge=be[1],xe=n.useState(-1),ye=xe[0],we=xe[1],ke=g({controlled:ie,default:N,name:"Slider"}),Le=t(ke,2),Ae=Le[0],Ce=Le[1],Ee=Array.isArray(Ae),Te=Ee?Ae.slice().sort(y):[Ae];Te=Te.map((function(e){return w(e,_,U)}));var Ve=!0===P&&null!==te?e(Array(Math.floor((U-_)/te)+1)).map((function(e,t){return{value:_+te*t}})):P||[],je=v(),Re=je.isFocusVisible,Se=je.onBlurVisible,$e=je.ref,Oe=n.useState(-1),Ie=Oe[0],Ne=Oe[1],De=n.useRef(),Me=b($e,De),Fe=b(l,Me),ze=f((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Re(e)&&Ne(t),we(t)})),Be=f((function(){-1!==Ie&&(Ne(-1),Se()),we(-1)})),Pe=f((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));we(t)})),Ye=f((function(){we(-1)})),Ue="rtl"===pe.direction,Xe=f((function(e){var t,r=Number(e.currentTarget.getAttribute("data-index")),a=Te[r],n=(U-_)/10,o=Ve.map((function(e){return e.value})),i=o.indexOf(a),l=Ue?"ArrowLeft":"ArrowRight",u=Ue?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=_;break;case"End":t=U;break;case"PageUp":te&&(t=a+n);break;case"PageDown":te&&(t=a-n);break;case l:case"ArrowUp":t=te?a+te:o[i+1]||o[o.length-1];break;case u:case"ArrowDown":t=te?a-te:o[i-1]||o[0];break;default:return}if(e.preventDefault(),te&&(t=C(t,te,_)),t=w(t,_,U),Ee){var s=t;t=E({values:Te,source:Ae,newValue:t,index:r}).sort(y),T({sliderRef:De,activeIndex:t.indexOf(s)})}Ce(t),Ne(r),H&&H(e,t),W&&W(e,t)})),_e=n.useRef(),qe=J;Ue&&"vertical"!==J&&(qe+="-reverse");var He=function(e){var t,r,a=e.finger,n=e.move,o=void 0!==n&&n,i=e.values,l=e.source,u=De.current.getBoundingClientRect(),s=u.width,c=u.height,m=u.bottom,d=u.left;if(t=0===qe.indexOf("vertical")?(m-a.y)/c:(a.x-d)/s,-1!==qe.indexOf("-reverse")&&(t=1-t),r=function(e,t,r){return(r-t)*e+t}(t,_,U),te)r=C(r,te,_);else{var v=Ve.map((function(e){return e.value}));r=v[k(v,r)]}r=w(r,_,U);var p=0;if(Ee){var f=r;p=(r=E({values:i,source:l,newValue:r,index:p=o?_e.current:k(i,r)}).sort(y)).indexOf(f),_e.current=p}return{newValue:r,activeIndex:p}},We=f((function(e){var t=L(e,fe);if(t){var r=He({finger:t,move:!0,values:Te,source:Ae}),a=r.newValue,n=r.activeIndex;T({sliderRef:De,activeIndex:n,setActive:ge}),Ce(a),H&&H(e,a)}})),Ge=f((function(e){var t=L(e,fe);if(t){var r=He({finger:t,values:Te,source:Ae}).newValue;ge(-1),"touchend"===e.type&&we(-1),W&&W(e,r),fe.current=void 0;var a=p(De.current);a.removeEventListener("mousemove",We),a.removeEventListener("mouseup",Ge),a.removeEventListener("touchmove",We),a.removeEventListener("touchend",Ge)}})),Ke=f((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(fe.current=t.identifier);var r=L(e,fe),a=He({finger:r,values:Te,source:Ae}),n=a.newValue,o=a.activeIndex;T({sliderRef:De,activeIndex:o,setActive:ge}),Ce(n),H&&H(e,n);var i=p(De.current);i.addEventListener("touchmove",We),i.addEventListener("touchend",Ge)}));n.useEffect((function(){var e=De.current;e.addEventListener("touchstart",Ke);var t=p(e);return function(){e.removeEventListener("touchstart",Ke),t.removeEventListener("mousemove",We),t.removeEventListener("mouseup",Ge),t.removeEventListener("touchmove",We),t.removeEventListener("touchend",Ge)}}),[Ge,We,Ke]);var Je=f((function(e){G&&G(e),e.preventDefault();var t=L(e,fe),r=He({finger:t,values:Te,source:Ae}),a=r.newValue,n=r.activeIndex;T({sliderRef:De,activeIndex:n,setActive:ge}),Ce(a),H&&H(e,a);var o=p(De.current);o.addEventListener("mousemove",We),o.addEventListener("mouseup",Ge)})),Qe=A(Ee?Te[0]:_,_,U),Ze=A(Te[Te.length-1],_,U)-Qe,et=a({},V[qe].offset(Qe),V[qe].leap(Ze));return n.createElement(I,a({ref:Fe,className:i(d.root,d["color".concat(h($))],R,M&&d.disabled,Ve.length>0&&Ve.some((function(e){return e.label}))&&d.marked,!1===oe&&d.trackFalse,"vertical"===J&&d.vertical,"inverted"===oe&&d.trackInverted),onMouseDown:Je},ve),n.createElement("span",{className:d.rail}),n.createElement("span",{className:d.track,style:et}),n.createElement("input",{value:Te.join(","),name:q,type:"hidden"}),Ve.map((function(e,t){var r,a=A(e.value,_,U),o=V[qe].offset(a);return r=!1===oe?-1!==Te.indexOf(e.value):"normal"===oe&&(Ee?e.value>=Te[0]&&e.value<=Te[Te.length-1]:e.value<=Te[0])||"inverted"===oe&&(Ee?e.value<=Te[0]||e.value>=Te[Te.length-1]:e.value>=Te[0]),n.createElement(n.Fragment,{key:e.value},n.createElement("span",{style:o,"data-index":t,className:i(d.mark,r&&d.markActive)}),null!=e.label?n.createElement("span",{"aria-hidden":!0,"data-index":t,style:o,className:i(d.markLabel,r&&d.markLabelActive)},e.label):null)})),Te.map((function(e,t){var r=A(e,_,U),a=V[qe].offset(r);return n.createElement(ue,{key:t,valueLabelFormat:de,valueLabelDisplay:ce,className:d.valueLabel,value:"function"==typeof de?de(Z(e),t):de,index:t,open:ye===t||he===t||"on"===ce,disabled:M},n.createElement(ae,{className:i(d.thumb,d["thumbColor".concat(h($))],he===t&&d.active,M&&d.disabled,Ie===t&&d.focusVisible),tabIndex:M?null:0,role:"slider",style:a,"data-index":t,"aria-label":F?F(t):u,"aria-labelledby":c,"aria-orientation":J,"aria-valuemax":Z(U),"aria-valuemin":Z(_),"aria-valuenow":Z(e),"aria-valuetext":z?z(Z(e),t):m,onKeyDown:Xe,onFocus:ze,onBlur:Be,onMouseOver:Pe,onMouseLeave:Ye}))})))}));"production"!==process.env.NODE_ENV&&(S.propTypes={"aria-label":l(o.string,(function(e){return Array.isArray(e.value||e.defaultValue)&&null!=e["aria-label"]?new Error("Material-UI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null})),"aria-labelledby":o.string,"aria-valuetext":l(o.string,(function(e){return Array.isArray(e.value||e.defaultValue)&&null!=e["aria-valuetext"]?new Error("Material-UI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null})),classes:o.object.isRequired,className:o.string,color:o.oneOf(["primary","secondary"]),component:o.elementType,defaultValue:o.oneOfType([o.number,o.arrayOf(o.number)]),disabled:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.bool,o.array]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,onMouseDown:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,step:o.number,ThumbComponent:o.elementType,track:o.oneOf(["normal",!1,"inverted"]),value:o.oneOfType([o.number,o.arrayOf(o.number)]),ValueLabelComponent:o.elementType,valueLabelDisplay:o.oneOf(["on","auto","off"]),valueLabelFormat:o.oneOfType([o.string,o.func])}),u(R,{name:"MuiSlider"})(S);export{R as styles};
|
|
2
|
+
//# sourceMappingURL=Slider.js.map
|