@erpsquad/common 1.8.37 → 1.8.39
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/_virtual/index/index.esm10.js +2 -4
- package/dist/_virtual/index/index.esm10.js.map +1 -1
- package/dist/_virtual/index/index.esm11.js +3 -3
- package/dist/_virtual/index/index.esm2.js +3 -3
- package/dist/_virtual/index/index.esm3.js +4 -2
- package/dist/_virtual/index/index.esm3.js.map +1 -1
- package/dist/_virtual/index/index.esm4.js +3 -3
- package/dist/_virtual/index/index.esm5.js +3 -3
- package/dist/_virtual/index/index.esm6.js +3 -3
- package/dist/_virtual/index/index.esm7.js +3 -3
- package/dist/_virtual/index/index.esm8.js +3 -3
- package/dist/_virtual/index/index.esm9.js +3 -3
- package/dist/_virtual/index/index10.js +1 -1
- package/dist/_virtual/index/index11.js +1 -1
- package/dist/_virtual/index/index2.js +1 -1
- package/dist/_virtual/index/index3.js +1 -1
- package/dist/_virtual/index/index4.js +1 -1
- package/dist/_virtual/index/index5.js +1 -1
- package/dist/_virtual/index/index6.js +1 -1
- package/dist/_virtual/index/index7.js +1 -1
- package/dist/_virtual/index/index8.js +1 -1
- package/dist/_virtual/index/index9.js +1 -1
- package/dist/contexts/AuthContext/index.esm.js +1 -1
- package/dist/contexts/AuthContext/index.esm.js.map +1 -1
- package/dist/contexts/AuthContext/index.js +1 -1
- package/dist/contexts/AuthContext/index.js.map +1 -1
- package/dist/hooks/use-material-calculations/index.esm.js +1 -2
- package/dist/hooks/use-material-calculations/index.esm.js.map +1 -1
- package/dist/hooks/use-material-calculations/index.js +1 -1
- package/dist/hooks/use-material-calculations/index.js.map +1 -1
- package/dist/hooks/useLangauge/index.esm.js +1 -2
- package/dist/hooks/useLangauge/index.esm.js.map +1 -1
- package/dist/hooks/useLangauge/index.js +1 -1
- package/dist/hooks/useLangauge/index.js.map +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js.map +1 -1
- package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.esm.js +14 -15
- package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.esm.js.map +1 -1
- package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.js +1 -1
- package/dist/node_modules/@hookform/resolvers/yup/dist/yup/index.js.map +1 -1
- package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.esm.js +2 -3
- package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.js +1 -1
- package/dist/node_modules/@mui/base/TextareaAutosize/TextareaAutosize/index.js.map +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/TabContext/TabContext/index.esm.js +2 -3
- package/dist/node_modules/@mui/lab/TabContext/TabContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/TabContext/TabContext/index.js +2 -2
- package/dist/node_modules/@mui/lab/TabContext/TabContext/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/TabList/TabList/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/TabList/TabList/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/TabList/TabList/index.js +1 -1
- package/dist/node_modules/@mui/lab/TabList/TabList/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.js +2 -2
- package/dist/node_modules/@mui/lab/TabPanel/TabPanel/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +2 -2
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +1 -1
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +2 -2
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +1 -1
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +2 -2
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +2 -2
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +1 -2
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +2 -2
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Accordion/Accordion/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion/index.js +2 -2
- package/dist/node_modules/@mui/material/Accordion/Accordion/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.js +1 -1
- package/dist/node_modules/@mui/material/Accordion/AccordionContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +1 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.js +2 -2
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails/index.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.js +2 -2
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Alert/Alert/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Alert/Alert/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Alert/Alert/index.js +1 -1
- package/dist/node_modules/@mui/material/Alert/Alert/index.js.map +1 -1
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.js +1 -1
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle/index.js.map +1 -1
- package/dist/node_modules/@mui/material/AppBar/AppBar/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/AppBar/AppBar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/AppBar/AppBar/index.js +1 -1
- package/dist/node_modules/@mui/material/AppBar/AppBar/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.js +1 -1
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Avatar/Avatar/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Avatar/Avatar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Avatar/Avatar/index.js +1 -1
- package/dist/node_modules/@mui/material/Avatar/Avatar/index.js.map +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +2 -2
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.js +1 -1
- package/dist/node_modules/@mui/material/Backdrop/Backdrop/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Badge/Badge/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Badge/Badge/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Badge/Badge/index.js +1 -1
- package/dist/node_modules/@mui/material/Badge/Badge/index.js.map +1 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +3 -3
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +1 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +2 -2
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Box/Box/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Box/Box/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Box/Box/index.js +1 -1
- package/dist/node_modules/@mui/material/Box/Box/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.js +2 -2
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.esm.js +3 -4
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.js +2 -2
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Button/Button/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Button/Button/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Button/Button/index.js +1 -1
- package/dist/node_modules/@mui/material/Button/Button/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.js +3 -3
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/Ripple/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.js +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.js +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.js +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroupContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Card/Card/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Card/Card/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Card/Card/index.js +1 -1
- package/dist/node_modules/@mui/material/Card/Card/index.js.map +1 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +2 -2
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +1 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +2 -2
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +1 -1
- package/dist/node_modules/@mui/material/CardContent/CardContent/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/CardContent/CardContent/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/CardContent/CardContent/index.js +1 -1
- package/dist/node_modules/@mui/material/CardContent/CardContent/index.js.map +1 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +1 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +1 -1
- package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.js +2 -2
- package/dist/node_modules/@mui/material/CardMedia/CardMedia/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.js +1 -1
- package/dist/node_modules/@mui/material/Checkbox/Checkbox/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Chip/Chip/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Chip/Chip/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Chip/Chip/index.js +1 -1
- package/dist/node_modules/@mui/material/Chip/Chip/index.js.map +1 -1
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.js +6 -6
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.js +1 -1
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Collapse/Collapse/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Collapse/Collapse/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Collapse/Collapse/index.js +1 -1
- package/dist/node_modules/@mui/material/Collapse/Collapse/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Container/Container/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Container/Container/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Container/Container/index.js +1 -1
- package/dist/node_modules/@mui/material/Container/Container/index.js.map +1 -1
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.js +2 -2
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Dialog/Dialog/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Dialog/Dialog/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Dialog/Dialog/index.js +1 -1
- package/dist/node_modules/@mui/material/Dialog/Dialog/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Dialog/DialogContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Dialog/DialogContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Dialog/DialogContext/index.js +1 -1
- package/dist/node_modules/@mui/material/Dialog/DialogContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.js +1 -1
- package/dist/node_modules/@mui/material/DialogActions/DialogActions/index.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.js +2 -2
- package/dist/node_modules/@mui/material/DialogContent/DialogContent/index.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +1 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.js +1 -1
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Divider/Divider/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Divider/Divider/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Divider/Divider/index.js +1 -1
- package/dist/node_modules/@mui/material/Divider/Divider/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Drawer/Drawer/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer/index.js +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Fab/Fab/index.js +2 -2
- package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Fade/Fade/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Fade/Fade/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Fade/Fade/index.js +1 -1
- package/dist/node_modules/@mui/material/Fade/Fade/index.js.map +1 -1
- package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.js +1 -1
- package/dist/node_modules/@mui/material/FilledInput/FilledInput/index.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/FormControl/FormControl/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl/index.js +2 -2
- package/dist/node_modules/@mui/material/FormControl/FormControl/index.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.js +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControlContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.js +1 -1
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel/index.js.map +1 -1
- package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.js +1 -1
- package/dist/node_modules/@mui/material/FormGroup/FormGroup/index.js.map +1 -1
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.js +2 -2
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText/index.js.map +1 -1
- package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.js +1 -1
- package/dist/node_modules/@mui/material/FormLabel/FormLabel/index.js.map +1 -1
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.js +2 -2
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Grid/Grid/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Grid/Grid/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Grid/Grid/index.js +2 -2
- package/dist/node_modules/@mui/material/Grid/Grid/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Grid/GridContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Grid/GridContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Grid/GridContext/index.js +1 -1
- package/dist/node_modules/@mui/material/Grid/GridContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Grow/Grow/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow/index.js +2 -2
- package/dist/node_modules/@mui/material/Grow/Grow/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +2 -2
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +3 -4
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Icon/Icon/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Icon/Icon/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Icon/Icon/index.js +2 -2
- package/dist/node_modules/@mui/material/Icon/Icon/index.js.map +1 -1
- package/dist/node_modules/@mui/material/IconButton/IconButton/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/IconButton/IconButton/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/IconButton/IconButton/index.js +1 -1
- package/dist/node_modules/@mui/material/IconButton/IconButton/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +2 -2
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +2 -2
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +1 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Input/Input/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Input/Input/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Input/Input/index.js +2 -2
- package/dist/node_modules/@mui/material/Input/Input/index.js.map +1 -1
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.js +2 -2
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment/index.js.map +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase/index.esm.js +5 -6
- package/dist/node_modules/@mui/material/InputBase/InputBase/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase/index.js +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase/index.js.map +1 -1
- package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.js +1 -1
- package/dist/node_modules/@mui/material/InputLabel/InputLabel/index.js.map +1 -1
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.esm.js +3 -4
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.js +5 -5
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Link/Link/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Link/Link/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Link/Link/index.js +1 -1
- package/dist/node_modules/@mui/material/Link/Link/index.js.map +1 -1
- package/dist/node_modules/@mui/material/List/List/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/List/List/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/List/List/index.js +2 -2
- package/dist/node_modules/@mui/material/List/List/index.js.map +1 -1
- package/dist/node_modules/@mui/material/List/ListContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/List/ListContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/List/ListContext/index.js +1 -1
- package/dist/node_modules/@mui/material/List/ListContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItem/ListItem/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/ListItem/ListItem/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItem/ListItem/index.js +1 -1
- package/dist/node_modules/@mui/material/ListItem/ListItem/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js +1 -1
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.js +2 -2
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.js +2 -2
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.js +2 -2
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.js +1 -1
- package/dist/node_modules/@mui/material/ListItemText/ListItemText/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.js +2 -2
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Menu/Menu/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu/index.js +2 -2
- package/dist/node_modules/@mui/material/Menu/Menu/index.js.map +1 -1
- package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.js +1 -1
- package/dist/node_modules/@mui/material/MenuItem/MenuItem/index.js.map +1 -1
- package/dist/node_modules/@mui/material/MenuList/MenuList/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/MenuList/MenuList/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/MenuList/MenuList/index.js +2 -2
- package/dist/node_modules/@mui/material/MenuList/MenuList/index.js.map +1 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +1 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Modal/Modal/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Modal/Modal/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Modal/Modal/index.js +1 -1
- package/dist/node_modules/@mui/material/Modal/Modal/index.js.map +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +2 -2
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput/index.js.map +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline/index.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.js +2 -2
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Pagination/Pagination/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Pagination/Pagination/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Pagination/Pagination/index.js +1 -1
- package/dist/node_modules/@mui/material/Pagination/Pagination/index.js.map +1 -1
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.js +1 -1
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Paper/Paper/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper/index.js +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +6 -7
- package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover/index.js +2 -2
- package/dist/node_modules/@mui/material/Popover/Popover/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Popper/BasePopper/index.esm.js +4 -5
- package/dist/node_modules/@mui/material/Popper/BasePopper/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Popper/BasePopper/index.js +3 -3
- package/dist/node_modules/@mui/material/Popper/BasePopper/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Popper/Popper/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Popper/Popper/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Popper/Popper/index.js +1 -1
- package/dist/node_modules/@mui/material/Popper/Popper/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Portal/Portal/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Portal/Portal/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Portal/Portal/index.js +4 -4
- package/dist/node_modules/@mui/material/Portal/Portal/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Radio/Radio/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Radio/Radio/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Radio/Radio/index.js +1 -1
- package/dist/node_modules/@mui/material/Radio/Radio/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.js +2 -2
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.js +2 -2
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup/index.js.map +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.js +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroupContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +3 -4
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating/index.js +6 -6
- package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +2 -2
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Select/Select/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Select/Select/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Select/Select/index.js +1 -1
- package/dist/node_modules/@mui/material/Select/Select/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Select/SelectInput/index.esm.js +4 -5
- package/dist/node_modules/@mui/material/Select/SelectInput/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Select/SelectInput/index.js +2 -2
- package/dist/node_modules/@mui/material/Select/SelectInput/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.js +1 -1
- package/dist/node_modules/@mui/material/Skeleton/Skeleton/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Slide/Slide/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/Slide/Slide/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Slide/Slide/index.js +1 -1
- package/dist/node_modules/@mui/material/Slide/Slide/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/Slider/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Slider/Slider/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/Slider/index.js +1 -1
- package/dist/node_modules/@mui/material/Slider/Slider/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.js +1 -1
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js.map +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.js +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent/index.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +3 -3
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +2 -2
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Stack/Stack/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Stack/Stack/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Stack/Stack/index.js +1 -1
- package/dist/node_modules/@mui/material/Stack/Stack/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Step/Step/index.js +1 -1
- package/dist/node_modules/@mui/material/Step/Step/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Step/StepContext/index.js +1 -1
- package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +1 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +1 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +1 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +1 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +1 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +1 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +1 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +2 -2
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +2 -2
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +1 -1
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.js +2 -2
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +2 -2
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Switch/Switch/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Switch/Switch/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Switch/Switch/index.js +2 -2
- package/dist/node_modules/@mui/material/Switch/Switch/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Tab/Tab/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Tab/Tab/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Tab/Tab/index.js +1 -1
- package/dist/node_modules/@mui/material/Tab/Tab/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.js +2 -2
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Table/Table/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Table/Table/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Table/Table/index.js +2 -2
- package/dist/node_modules/@mui/material/Table/Table/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Table/TableContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Table/TableContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Table/TableContext/index.js +1 -1
- package/dist/node_modules/@mui/material/Table/TableContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.js +1 -1
- package/dist/node_modules/@mui/material/Table/Tablelvl2Context/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TableBody/TableBody/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TableBody/TableBody/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TableBody/TableBody/index.js +1 -1
- package/dist/node_modules/@mui/material/TableBody/TableBody/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TableCell/TableCell/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TableCell/TableCell/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TableCell/TableCell/index.js +1 -1
- package/dist/node_modules/@mui/material/TableCell/TableCell/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.js +2 -2
- package/dist/node_modules/@mui/material/TableContainer/TableContainer/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.js +1 -1
- package/dist/node_modules/@mui/material/TableFooter/TableFooter/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TableHead/TableHead/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TableHead/TableHead/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TableHead/TableHead/index.js +1 -1
- package/dist/node_modules/@mui/material/TableHead/TableHead/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +2 -2
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +2 -2
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TableRow/TableRow/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TableRow/TableRow/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TableRow/TableRow/index.js +1 -1
- package/dist/node_modules/@mui/material/TableRow/TableRow/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.js +1 -1
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +6 -7
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +2 -2
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TextField/TextField/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/TextField/TextField/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TextField/TextField/index.js +2 -2
- package/dist/node_modules/@mui/material/TextField/TextField/index.js.map +1 -1
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.js +1 -1
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.esm.js +2 -3
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.js +2 -2
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.js +2 -2
- package/dist/node_modules/@mui/material/Toolbar/Toolbar/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.esm.js +4 -5
- package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.js +2 -2
- package/dist/node_modules/@mui/material/Tooltip/Tooltip/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Typography/Typography/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Typography/Typography/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Typography/Typography/index.js +2 -2
- package/dist/node_modules/@mui/material/Typography/Typography/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.esm.js +3 -4
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.js +2 -2
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap/index.js.map +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +1 -1
- package/dist/node_modules/@mui/material/internal/SwitchBase/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/internal/SwitchBase/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/internal/SwitchBase/index.js +2 -2
- package/dist/node_modules/@mui/material/internal/SwitchBase/index.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/styles/ThemeProvider/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider/index.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/createPalette/index.esm.js +4 -5
- package/dist/node_modules/@mui/material/styles/createPalette/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/createPalette/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/createPalette/index.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/createTheme/index.esm.js +3 -4
- package/dist/node_modules/@mui/material/styles/createTheme/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/createTheme/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/createTheme/index.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/createTransitions/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/styles/createTransitions/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/createTransitions/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/createTransitions/index.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/createTypography/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/styles/createTypography/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/createTypography/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/createTypography/index.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/useTheme/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/styles/useTheme/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/useTheme/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/useTheme/index.js.map +1 -1
- package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.esm.js +5 -6
- package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.js +1 -1
- package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete/index.js.map +1 -1
- package/dist/node_modules/@mui/material/utils/createSvgIcon/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/utils/createSvgIcon/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/utils/createSvgIcon/index.js +2 -2
- package/dist/node_modules/@mui/material/utils/createSvgIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/material/utils/index/index.esm.js +1 -2
- package/dist/node_modules/@mui/material/utils/index/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/utils/index/index.js +1 -1
- package/dist/node_modules/@mui/material/utils/index/index.js.map +1 -1
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.esm.js +5 -6
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.js +2 -2
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider/index.js.map +1 -1
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.esm.js +1 -2
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.js +1 -1
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext/index.js.map +1 -1
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.esm.js +1 -2
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.js +1 -1
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme/index.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.esm.js +1 -2
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.js +1 -1
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles/index.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.esm.js +1 -2
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.js +1 -1
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider/index.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/index/index.esm.js +8 -2
- package/dist/node_modules/@mui/styled-engine/index/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/index/index.js +1 -1
- package/dist/node_modules/@mui/styled-engine/index/index.js.map +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +10 -11
- package/dist/node_modules/@mui/system/colorManipulator/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.esm.js +8 -9
- package/dist/node_modules/@mui/system/createStyled/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js +2 -2
- package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.js +2 -2
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/RtlProvider/index/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.esm.js +4 -5
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.js +2 -2
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/borders/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/borders/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/borders/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/borders/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/breakpoints/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/breakpoints/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/colorManipulator/index.esm.js +3 -4
- package/dist/node_modules/@mui/system/esm/colorManipulator/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/colorManipulator/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/colorManipulator/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/compose/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/compose/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/compose/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/compose/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/createStyled/index.esm.js +2 -3
- package/dist/node_modules/@mui/system/esm/createStyled/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/createStyled/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/createStyled/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/createTheme/createSpacing/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/cssGrid/index.esm.js +3 -4
- package/dist/node_modules/@mui/system/esm/cssGrid/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/cssGrid/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/cssGrid/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/responsivePropType/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/spacing/index.esm.js +6 -7
- package/dist/node_modules/@mui/system/esm/spacing/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/spacing/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/spacing/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/style/index.esm.js +1 -2
- package/dist/node_modules/@mui/system/esm/style/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/style/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/style/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.esm.js +2 -3
- package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.js.map +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType/index.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/capitalize/capitalize/index.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes/index.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType/index.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/exactProp/exactProp/index.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/integerPropType/integerPropType/index.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory/index.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp/index.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.esm.js +1 -2
- package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.js +1 -1
- package/dist/node_modules/@mui/utils/esm/useControlled/useControlled/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.js +2 -2
- package/dist/node_modules/@mui/x-date-pickers/DateField/DateField/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePicker/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.js +2 -2
- package/dist/node_modules/@mui/x-date-pickers/DateTimeField/DateTimeField/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerTabs/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePickerToolbar/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.esm.js +2 -3
- package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.js +2 -2
- package/dist/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.js +4 -4
- package/dist/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.esm.js +4 -5
- package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersDay/PickersDay/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.js +2 -2
- package/dist/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.js +2 -2
- package/dist/node_modules/@mui/x-date-pickers/TimeClock/TimeClock/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimeField/TimeField/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePicker/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.js +2 -2
- package/dist/node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.js +2 -2
- package/dist/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.esm.js +3 -4
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.esm.js +1 -2
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.js +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/hooks/useViews/index.js.map +1 -1
- package/dist/node_modules/@mui/x-date-pickers/internals/utils/warning/index.esm.js.map +1 -1
- package/dist/node_modules/@react-querybuilder/material/dist/react-querybuilder_material/index.esm.js.map +1 -1
- package/dist/node_modules/@react-querybuilder/material/dist/react-querybuilder_material/index.js.map +1 -1
- package/dist/node_modules/@tanstack/table-core/build/lib/index/index.esm.js +20 -11
- package/dist/node_modules/@tanstack/table-core/build/lib/index/index.esm.js.map +1 -1
- package/dist/node_modules/@tanstack/table-core/build/lib/index/index.js +1 -1
- package/dist/node_modules/@tanstack/table-core/build/lib/index/index.js.map +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.esm.js +6 -7
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.esm.js.map +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.js +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index/index.js.map +1 -1
- package/dist/node_modules/notistack/notistack.esm/index.esm.js +2 -3
- package/dist/node_modules/notistack/notistack.esm/index.esm.js.map +1 -1
- package/dist/node_modules/notistack/notistack.esm/index.js +1 -1
- package/dist/node_modules/notistack/notistack.esm/index.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.esm.js +3 -4
- package/dist/node_modules/prop-types/checkPropTypes/index.esm.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.js +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js +5 -6
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js.map +1 -1
- package/dist/node_modules/prop-types/index/index.esm.js +1 -2
- package/dist/node_modules/prop-types/index/index.esm.js.map +1 -1
- package/dist/node_modules/prop-types/index/index.js +1 -1
- package/dist/node_modules/prop-types/index/index.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../../../node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"BackdropProps\"],\n _excluded2 = [\"anchor\", \"disableBackdropTransition\", \"disableDiscovery\", \"disableSwipeToOpen\", \"hideBackdrop\", \"hysteresis\", \"allowSwipeInChildren\", \"minFlingVelocity\", \"ModalProps\", \"onClose\", \"onOpen\", \"open\", \"PaperProps\", \"SwipeAreaProps\", \"swipeAreaWidth\", \"transitionDuration\", \"variant\"];\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport NoSsr from '../NoSsr';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';\nimport useForkRef from '../utils/useForkRef';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport useEventCallback from '../utils/useEventCallback';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps } from '../transitions/utils';\nimport SwipeArea from './SwipeArea';\n\n// This value is closed to what browsers are using internally to\n// trigger a native scroll.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UNCERTAINTY_THRESHOLD = 3; // px\n\n// This is the part of the drawer displayed on touch start.\nconst DRAG_STARTED_SIGNAL = 20; // px\n\n// We can only have one instance at the time claiming ownership for handling the swipe.\n// Otherwise, the UX would be confusing.\n// That's why we use a singleton here.\nlet claimedSwipeInstance = null;\n\n// Exported for test purposes.\nexport function reset() {\n claimedSwipeInstance = null;\n}\nfunction calculateCurrentX(anchor, touches, doc) {\n return anchor === 'right' ? doc.body.offsetWidth - touches[0].pageX : touches[0].pageX;\n}\nfunction calculateCurrentY(anchor, touches, containerWindow) {\n return anchor === 'bottom' ? containerWindow.innerHeight - touches[0].clientY : touches[0].clientY;\n}\nfunction getMaxTranslate(horizontalSwipe, paperInstance) {\n return horizontalSwipe ? paperInstance.clientWidth : paperInstance.clientHeight;\n}\nfunction getTranslate(currentTranslate, startLocation, open, maxTranslate) {\n return Math.min(Math.max(open ? startLocation - currentTranslate : maxTranslate + startLocation - currentTranslate, 0), maxTranslate);\n}\n\n/**\n * @param {Element | null} element\n * @param {Element} rootNode\n */\nfunction getDomTreeShapes(element, rootNode) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L129\n const domTreeShapes = [];\n while (element && element !== rootNode.parentElement) {\n const style = ownerWindow(rootNode).getComputedStyle(element);\n if (\n // Ignore the scroll children if the element is absolute positioned.\n style.getPropertyValue('position') === 'absolute' ||\n // Ignore the scroll children if the element has an overflowX hidden\n style.getPropertyValue('overflow-x') === 'hidden') {\n // noop\n } else if (element.clientWidth > 0 && element.scrollWidth > element.clientWidth || element.clientHeight > 0 && element.scrollHeight > element.clientHeight) {\n // Ignore the nodes that have no width.\n // Keep elements with a scroll\n domTreeShapes.push(element);\n }\n element = element.parentElement;\n }\n return domTreeShapes;\n}\n\n/**\n * @param {object} param0\n * @param {ReturnType<getDomTreeShapes>} param0.domTreeShapes\n */\nfunction computeHasNativeHandler({\n domTreeShapes,\n start,\n current,\n anchor\n}) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L175\n const axisProperties = {\n scrollPosition: {\n x: 'scrollLeft',\n y: 'scrollTop'\n },\n scrollLength: {\n x: 'scrollWidth',\n y: 'scrollHeight'\n },\n clientLength: {\n x: 'clientWidth',\n y: 'clientHeight'\n }\n };\n return domTreeShapes.some(shape => {\n // Determine if we are going backward or forward.\n let goingForward = current >= start;\n if (anchor === 'top' || anchor === 'left') {\n goingForward = !goingForward;\n }\n const axis = anchor === 'left' || anchor === 'right' ? 'x' : 'y';\n const scrollPosition = Math.round(shape[axisProperties.scrollPosition[axis]]);\n const areNotAtStart = scrollPosition > 0;\n const areNotAtEnd = scrollPosition + shape[axisProperties.clientLength[axis]] < shape[axisProperties.scrollLength[axis]];\n if (goingForward && areNotAtEnd || !goingForward && areNotAtStart) {\n return true;\n }\n return false;\n });\n}\nconst iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);\nconst SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiSwipeableDrawer',\n props: inProps\n });\n const theme = useTheme();\n const transitionDurationDefault = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n anchor = 'left',\n disableBackdropTransition = false,\n disableDiscovery = false,\n disableSwipeToOpen = iOS,\n hideBackdrop,\n hysteresis = 0.52,\n allowSwipeInChildren = false,\n minFlingVelocity = 450,\n ModalProps: {\n BackdropProps\n } = {},\n onClose,\n onOpen,\n open = false,\n PaperProps = {},\n SwipeAreaProps,\n swipeAreaWidth = 20,\n transitionDuration = transitionDurationDefault,\n variant = 'temporary' // Mobile first.\n } = props,\n ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [maybeSwiping, setMaybeSwiping] = React.useState(false);\n const swipeInstance = React.useRef({\n isSwiping: null\n });\n const swipeAreaRef = React.useRef();\n const backdropRef = React.useRef();\n const paperRef = React.useRef();\n const handleRef = useForkRef(PaperProps.ref, paperRef);\n const touchDetected = React.useRef(false);\n\n // Ref for transition duration based on / to match swipe speed\n const calculatedDurationRef = React.useRef();\n\n // Use a ref so the open value used is always up to date inside useCallback.\n useEnhancedEffect(() => {\n calculatedDurationRef.current = null;\n }, [open]);\n const setPosition = React.useCallback((translate, options = {}) => {\n const {\n mode = null,\n changeTransition = true\n } = options;\n const anchorRtl = getAnchor(theme, anchor);\n const rtlTranslateMultiplier = ['right', 'bottom'].indexOf(anchorRtl) !== -1 ? 1 : -1;\n const horizontalSwipe = isHorizontal(anchor);\n const transform = horizontalSwipe ? `translate(${rtlTranslateMultiplier * translate}px, 0)` : `translate(0, ${rtlTranslateMultiplier * translate}px)`;\n const drawerStyle = paperRef.current.style;\n drawerStyle.webkitTransform = transform;\n drawerStyle.transform = transform;\n let transition = '';\n if (mode) {\n transition = theme.transitions.create('all', getTransitionProps({\n easing: undefined,\n style: undefined,\n timeout: transitionDuration\n }, {\n mode\n }));\n }\n if (changeTransition) {\n drawerStyle.webkitTransition = transition;\n drawerStyle.transition = transition;\n }\n if (!disableBackdropTransition && !hideBackdrop) {\n const backdropStyle = backdropRef.current.style;\n backdropStyle.opacity = 1 - translate / getMaxTranslate(horizontalSwipe, paperRef.current);\n if (changeTransition) {\n backdropStyle.webkitTransition = transition;\n backdropStyle.transition = transition;\n }\n }\n }, [anchor, disableBackdropTransition, hideBackdrop, theme, transitionDuration]);\n const handleBodyTouchEnd = useEventCallback(nativeEvent => {\n if (!touchDetected.current) {\n return;\n }\n claimedSwipeInstance = null;\n touchDetected.current = false;\n ReactDOM.flushSync(() => {\n setMaybeSwiping(false);\n });\n\n // The swipe wasn't started.\n if (!swipeInstance.current.isSwiping) {\n swipeInstance.current.isSwiping = null;\n return;\n }\n swipeInstance.current.isSwiping = null;\n const anchorRtl = getAnchor(theme, anchor);\n const horizontal = isHorizontal(anchor);\n let current;\n if (horizontal) {\n current = calculateCurrentX(anchorRtl, nativeEvent.changedTouches, ownerDocument(nativeEvent.currentTarget));\n } else {\n current = calculateCurrentY(anchorRtl, nativeEvent.changedTouches, ownerWindow(nativeEvent.currentTarget));\n }\n const startLocation = horizontal ? swipeInstance.current.startX : swipeInstance.current.startY;\n const maxTranslate = getMaxTranslate(horizontal, paperRef.current);\n const currentTranslate = getTranslate(current, startLocation, open, maxTranslate);\n const translateRatio = currentTranslate / maxTranslate;\n if (Math.abs(swipeInstance.current.velocity) > minFlingVelocity) {\n // Calculate transition duration to match swipe speed\n calculatedDurationRef.current = Math.abs((maxTranslate - currentTranslate) / swipeInstance.current.velocity) * 1000;\n }\n if (open) {\n if (swipeInstance.current.velocity > minFlingVelocity || translateRatio > hysteresis) {\n onClose();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(0, {\n mode: 'exit'\n });\n }\n return;\n }\n if (swipeInstance.current.velocity < -minFlingVelocity || 1 - translateRatio > hysteresis) {\n onOpen();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(getMaxTranslate(horizontal, paperRef.current), {\n mode: 'enter'\n });\n }\n });\n const startMaybeSwiping = (force = false) => {\n if (!maybeSwiping) {\n // on Safari Mobile, if you want to be able to have the 'click' event fired on child elements, nothing in the DOM can be changed.\n // this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.\n // so do this change on first touchmove instead of touchstart\n if (force || !(disableDiscovery && allowSwipeInChildren)) {\n ReactDOM.flushSync(() => {\n setMaybeSwiping(true);\n });\n }\n const horizontalSwipe = isHorizontal(anchor);\n if (!open && paperRef.current) {\n // The ref may be null when a parent component updates while swiping.\n setPosition(getMaxTranslate(horizontalSwipe, paperRef.current) + (disableDiscovery ? 15 : -DRAG_STARTED_SIGNAL), {\n changeTransition: false\n });\n }\n swipeInstance.current.velocity = 0;\n swipeInstance.current.lastTime = null;\n swipeInstance.current.lastTranslate = null;\n swipeInstance.current.paperHit = false;\n touchDetected.current = true;\n }\n };\n const handleBodyTouchMove = useEventCallback(nativeEvent => {\n // the ref may be null when a parent component updates while swiping\n if (!paperRef.current || !touchDetected.current) {\n return;\n }\n\n // We are not supposed to handle this touch move because the swipe was started in a scrollable container in the drawer\n if (claimedSwipeInstance !== null && claimedSwipeInstance !== swipeInstance.current) {\n return;\n }\n startMaybeSwiping(true);\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (open && paperRef.current.contains(nativeEvent.target) && claimedSwipeInstance === null) {\n const domTreeShapes = getDomTreeShapes(nativeEvent.target, paperRef.current);\n const hasNativeHandler = computeHasNativeHandler({\n domTreeShapes,\n start: horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY,\n current: horizontalSwipe ? currentX : currentY,\n anchor\n });\n if (hasNativeHandler) {\n claimedSwipeInstance = true;\n return;\n }\n claimedSwipeInstance = swipeInstance.current;\n }\n\n // We don't know yet.\n if (swipeInstance.current.isSwiping == null) {\n const dx = Math.abs(currentX - swipeInstance.current.startX);\n const dy = Math.abs(currentY - swipeInstance.current.startY);\n const definitelySwiping = horizontalSwipe ? dx > dy && dx > UNCERTAINTY_THRESHOLD : dy > dx && dy > UNCERTAINTY_THRESHOLD;\n if (definitelySwiping && nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n if (definitelySwiping === true || (horizontalSwipe ? dy > UNCERTAINTY_THRESHOLD : dx > UNCERTAINTY_THRESHOLD)) {\n swipeInstance.current.isSwiping = definitelySwiping;\n if (!definitelySwiping) {\n handleBodyTouchEnd(nativeEvent);\n return;\n }\n\n // Shift the starting point.\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n\n // Compensate for the part of the drawer displayed on touch start.\n if (!disableDiscovery && !open) {\n if (horizontalSwipe) {\n swipeInstance.current.startX -= DRAG_STARTED_SIGNAL;\n } else {\n swipeInstance.current.startY -= DRAG_STARTED_SIGNAL;\n }\n }\n }\n }\n if (!swipeInstance.current.isSwiping) {\n return;\n }\n const maxTranslate = getMaxTranslate(horizontalSwipe, paperRef.current);\n let startLocation = horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY;\n if (open && !swipeInstance.current.paperHit) {\n startLocation = Math.min(startLocation, maxTranslate);\n }\n const translate = getTranslate(horizontalSwipe ? currentX : currentY, startLocation, open, maxTranslate);\n if (open) {\n if (!swipeInstance.current.paperHit) {\n const paperHit = horizontalSwipe ? currentX < maxTranslate : currentY < maxTranslate;\n if (paperHit) {\n swipeInstance.current.paperHit = true;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n } else {\n return;\n }\n } else if (translate === 0) {\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n }\n }\n if (swipeInstance.current.lastTranslate === null) {\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now() + 1;\n }\n const velocity = (translate - swipeInstance.current.lastTranslate) / (performance.now() - swipeInstance.current.lastTime) * 1e3;\n\n // Low Pass filter.\n swipeInstance.current.velocity = swipeInstance.current.velocity * 0.4 + velocity * 0.6;\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now();\n\n // We are swiping, let's prevent the scroll event on iOS.\n if (nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n setPosition(translate);\n });\n const handleBodyTouchStart = useEventCallback(nativeEvent => {\n // We are not supposed to handle this touch move.\n // Example of use case: ignore the event if there is a Slider.\n if (nativeEvent.defaultPrevented) {\n return;\n }\n\n // We can only have one node at the time claiming ownership for handling the swipe.\n if (nativeEvent.defaultMuiPrevented) {\n return;\n }\n\n // At least one element clogs the drawer interaction zone.\n if (open && (hideBackdrop || !backdropRef.current.contains(nativeEvent.target)) && !paperRef.current.contains(nativeEvent.target)) {\n return;\n }\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (!open) {\n var _paperRef$current;\n // logic for if swipe should be ignored:\n // if disableSwipeToOpen\n // if target != swipeArea, and target is not a child of paper ref\n // if is a child of paper ref, and `allowSwipeInChildren` does not allow it\n if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current || (_paperRef$current = paperRef.current) != null && _paperRef$current.contains(nativeEvent.target) && (typeof allowSwipeInChildren === 'function' ? allowSwipeInChildren(nativeEvent, swipeAreaRef.current, paperRef.current) : allowSwipeInChildren))) {\n return;\n }\n if (horizontalSwipe) {\n if (currentX > swipeAreaWidth) {\n return;\n }\n } else if (currentY > swipeAreaWidth) {\n return;\n }\n }\n nativeEvent.defaultMuiPrevented = true;\n claimedSwipeInstance = null;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n startMaybeSwiping();\n });\n React.useEffect(() => {\n if (variant === 'temporary') {\n const doc = ownerDocument(paperRef.current);\n doc.addEventListener('touchstart', handleBodyTouchStart);\n // A blocking listener prevents Firefox's navbar to auto-hide on scroll.\n // It only needs to prevent scrolling on the drawer's content when open.\n // When closed, the overlay prevents scrolling.\n doc.addEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.addEventListener('touchend', handleBodyTouchEnd);\n return () => {\n doc.removeEventListener('touchstart', handleBodyTouchStart);\n doc.removeEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.removeEventListener('touchend', handleBodyTouchEnd);\n };\n }\n return undefined;\n }, [variant, open, handleBodyTouchStart, handleBodyTouchMove, handleBodyTouchEnd]);\n React.useEffect(() => () => {\n // We need to release the lock.\n if (claimedSwipeInstance === swipeInstance.current) {\n claimedSwipeInstance = null;\n }\n }, []);\n React.useEffect(() => {\n if (!open) {\n setMaybeSwiping(false);\n }\n }, [open]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(Drawer, _extends({\n open: variant === 'temporary' && maybeSwiping ? true : open,\n variant: variant,\n ModalProps: _extends({\n BackdropProps: _extends({}, BackdropProps, {\n ref: backdropRef\n })\n }, variant === 'temporary' && {\n keepMounted: true\n }, ModalPropsProp),\n hideBackdrop: hideBackdrop,\n PaperProps: _extends({}, PaperProps, {\n style: _extends({\n pointerEvents: variant === 'temporary' && !open && !allowSwipeInChildren ? 'none' : ''\n }, PaperProps.style),\n ref: handleRef\n }),\n anchor: anchor,\n transitionDuration: calculatedDurationRef.current || transitionDuration,\n onClose: onClose,\n ref: ref\n }, other)), !disableSwipeToOpen && variant === 'temporary' && /*#__PURE__*/_jsx(NoSsr, {\n children: /*#__PURE__*/_jsx(SwipeArea, _extends({\n anchor: anchor,\n ref: swipeAreaRef,\n width: swipeAreaWidth\n }, SwipeAreaProps))\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SwipeableDrawer.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children.\n * This can be useful in scenarios where the drawer is partially visible.\n * You can customize it further with a callback that determines which children the user can drag over to open the drawer\n * (for example, to ignore other elements that handle touch move events, like sliders).\n *\n * @param {TouchEvent} event The 'touchstart' event\n * @param {HTMLDivElement} swipeArea The swipe area element\n * @param {HTMLDivElement} paper The drawer's paper element\n *\n * @default false\n */\n allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),\n /**\n * @ignore\n */\n anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Disable the backdrop transition.\n * This can improve the FPS on low-end devices.\n * @default false\n */\n disableBackdropTransition: PropTypes.bool,\n /**\n * If `true`, touching the screen near the edge of the drawer will not slide in the drawer a bit\n * to promote accidental discovery of the swipe gesture.\n * @default false\n */\n disableDiscovery: PropTypes.bool,\n /**\n * If `true`, swipe to open is disabled. This is useful in browsers where swiping triggers\n * navigation actions. Swipe to open is disabled on iOS browsers by default.\n * @default typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent)\n */\n disableSwipeToOpen: PropTypes.bool,\n /**\n * @ignore\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Affects how far the drawer must be opened/closed to change its state.\n * Specified as percent (0-1) of the width of the drawer\n * @default 0.52\n */\n hysteresis: PropTypes.number,\n /**\n * Defines, from which (average) velocity on, the swipe is\n * defined as complete although hysteresis isn't reached.\n * Good threshold is between 250 - 1000 px/s\n * @default 450\n */\n minFlingVelocity: PropTypes.number,\n /**\n * @ignore\n */\n ModalProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n BackdropProps: PropTypes.shape({\n component: elementTypeAcceptingRef\n })\n }),\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Callback fired when the component requests to be opened.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onOpen: PropTypes.func.isRequired,\n /**\n * If `true`, the component is shown.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n component: elementTypeAcceptingRef,\n style: PropTypes.object\n }),\n /**\n * The element is used to intercept the touch events on the edge.\n */\n SwipeAreaProps: PropTypes.object,\n /**\n * The width of the left most (or right most) area in `px` that\n * the drawer can be swiped open from.\n * @default 20\n */\n swipeAreaWidth: PropTypes.number,\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 * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * @ignore\n */\n variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default SwipeableDrawer;"],"names":["SwipeableDrawer","_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;AAIA,MAAM,YAAY,CAAC,eAAe,GAChC,aAAa,CAAC,UAAU,6BAA6B,oBAAoB,sBAAsB,gBAAgB,cAAc,wBAAwB,oBAAoB,cAAc,WAAW,UAAU,QAAQ,cAAc,kBAAkB,kBAAkB,sBAAsB,SAAS;AAqBvS,MAAM,wBAAwB;AAG9B,MAAM,sBAAsB;AAK5B,IAAI,uBAAuB;AAM3B,SAA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AAA;AAAA;AAAA,EAMrC,kBAAkB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM5B,oBAAoB,UAAU;AAAA;AAAA;AAAA;AAAA,EAI9B,cAAc,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOtB,kBAAkB,UAAU;AAAA;AAAA;AAAA;AAAA,EAI5B,YAAY,UAAgD,MAAM;AAAA,IAChE,eAAe,UAAU,MAAM;AAAA,MAC7B,WAAW;AAAA,IAAA,CACZ;AAAA,EAAA,CACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMD,SAAS,UAAU,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,QAAQ,UAAU,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvB,MAAM,UAAU;AAAA;AAAA;AAAA;AAAA,EAIhB,YAAY,UAAgD,MAAM;AAAA,IAChE,WAAW;AAAA,IACX,OAAO,UAAU;AAAA,EAAA,CAClB;AAAA;AAAA;AAAA;AAAA,EAID,gBAAgB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM1B,gBAAgB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS1B,oBAAoB,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM;AAAA,IACzE,QAAQ,UAAU;AAAA,IAClB,OAAO,UAAU;AAAA,IACjB,MAAM,UAAU;AAAA,EAAA,CACjB,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,EAIH,SAAS,UAAU,MAAM,CAAC,aAAa,cAAc,WAAW,CAAC;AACnE,IAAI;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../../node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"BackdropProps\"],\n _excluded2 = [\"anchor\", \"disableBackdropTransition\", \"disableDiscovery\", \"disableSwipeToOpen\", \"hideBackdrop\", \"hysteresis\", \"allowSwipeInChildren\", \"minFlingVelocity\", \"ModalProps\", \"onClose\", \"onOpen\", \"open\", \"PaperProps\", \"SwipeAreaProps\", \"swipeAreaWidth\", \"transitionDuration\", \"variant\"];\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport NoSsr from '../NoSsr';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';\nimport useForkRef from '../utils/useForkRef';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport useEventCallback from '../utils/useEventCallback';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps } from '../transitions/utils';\nimport SwipeArea from './SwipeArea';\n\n// This value is closed to what browsers are using internally to\n// trigger a native scroll.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UNCERTAINTY_THRESHOLD = 3; // px\n\n// This is the part of the drawer displayed on touch start.\nconst DRAG_STARTED_SIGNAL = 20; // px\n\n// We can only have one instance at the time claiming ownership for handling the swipe.\n// Otherwise, the UX would be confusing.\n// That's why we use a singleton here.\nlet claimedSwipeInstance = null;\n\n// Exported for test purposes.\nexport function reset() {\n claimedSwipeInstance = null;\n}\nfunction calculateCurrentX(anchor, touches, doc) {\n return anchor === 'right' ? doc.body.offsetWidth - touches[0].pageX : touches[0].pageX;\n}\nfunction calculateCurrentY(anchor, touches, containerWindow) {\n return anchor === 'bottom' ? containerWindow.innerHeight - touches[0].clientY : touches[0].clientY;\n}\nfunction getMaxTranslate(horizontalSwipe, paperInstance) {\n return horizontalSwipe ? paperInstance.clientWidth : paperInstance.clientHeight;\n}\nfunction getTranslate(currentTranslate, startLocation, open, maxTranslate) {\n return Math.min(Math.max(open ? startLocation - currentTranslate : maxTranslate + startLocation - currentTranslate, 0), maxTranslate);\n}\n\n/**\n * @param {Element | null} element\n * @param {Element} rootNode\n */\nfunction getDomTreeShapes(element, rootNode) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L129\n const domTreeShapes = [];\n while (element && element !== rootNode.parentElement) {\n const style = ownerWindow(rootNode).getComputedStyle(element);\n if (\n // Ignore the scroll children if the element is absolute positioned.\n style.getPropertyValue('position') === 'absolute' ||\n // Ignore the scroll children if the element has an overflowX hidden\n style.getPropertyValue('overflow-x') === 'hidden') {\n // noop\n } else if (element.clientWidth > 0 && element.scrollWidth > element.clientWidth || element.clientHeight > 0 && element.scrollHeight > element.clientHeight) {\n // Ignore the nodes that have no width.\n // Keep elements with a scroll\n domTreeShapes.push(element);\n }\n element = element.parentElement;\n }\n return domTreeShapes;\n}\n\n/**\n * @param {object} param0\n * @param {ReturnType<getDomTreeShapes>} param0.domTreeShapes\n */\nfunction computeHasNativeHandler({\n domTreeShapes,\n start,\n current,\n anchor\n}) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L175\n const axisProperties = {\n scrollPosition: {\n x: 'scrollLeft',\n y: 'scrollTop'\n },\n scrollLength: {\n x: 'scrollWidth',\n y: 'scrollHeight'\n },\n clientLength: {\n x: 'clientWidth',\n y: 'clientHeight'\n }\n };\n return domTreeShapes.some(shape => {\n // Determine if we are going backward or forward.\n let goingForward = current >= start;\n if (anchor === 'top' || anchor === 'left') {\n goingForward = !goingForward;\n }\n const axis = anchor === 'left' || anchor === 'right' ? 'x' : 'y';\n const scrollPosition = Math.round(shape[axisProperties.scrollPosition[axis]]);\n const areNotAtStart = scrollPosition > 0;\n const areNotAtEnd = scrollPosition + shape[axisProperties.clientLength[axis]] < shape[axisProperties.scrollLength[axis]];\n if (goingForward && areNotAtEnd || !goingForward && areNotAtStart) {\n return true;\n }\n return false;\n });\n}\nconst iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);\nconst SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiSwipeableDrawer',\n props: inProps\n });\n const theme = useTheme();\n const transitionDurationDefault = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n anchor = 'left',\n disableBackdropTransition = false,\n disableDiscovery = false,\n disableSwipeToOpen = iOS,\n hideBackdrop,\n hysteresis = 0.52,\n allowSwipeInChildren = false,\n minFlingVelocity = 450,\n ModalProps: {\n BackdropProps\n } = {},\n onClose,\n onOpen,\n open = false,\n PaperProps = {},\n SwipeAreaProps,\n swipeAreaWidth = 20,\n transitionDuration = transitionDurationDefault,\n variant = 'temporary' // Mobile first.\n } = props,\n ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [maybeSwiping, setMaybeSwiping] = React.useState(false);\n const swipeInstance = React.useRef({\n isSwiping: null\n });\n const swipeAreaRef = React.useRef();\n const backdropRef = React.useRef();\n const paperRef = React.useRef();\n const handleRef = useForkRef(PaperProps.ref, paperRef);\n const touchDetected = React.useRef(false);\n\n // Ref for transition duration based on / to match swipe speed\n const calculatedDurationRef = React.useRef();\n\n // Use a ref so the open value used is always up to date inside useCallback.\n useEnhancedEffect(() => {\n calculatedDurationRef.current = null;\n }, [open]);\n const setPosition = React.useCallback((translate, options = {}) => {\n const {\n mode = null,\n changeTransition = true\n } = options;\n const anchorRtl = getAnchor(theme, anchor);\n const rtlTranslateMultiplier = ['right', 'bottom'].indexOf(anchorRtl) !== -1 ? 1 : -1;\n const horizontalSwipe = isHorizontal(anchor);\n const transform = horizontalSwipe ? `translate(${rtlTranslateMultiplier * translate}px, 0)` : `translate(0, ${rtlTranslateMultiplier * translate}px)`;\n const drawerStyle = paperRef.current.style;\n drawerStyle.webkitTransform = transform;\n drawerStyle.transform = transform;\n let transition = '';\n if (mode) {\n transition = theme.transitions.create('all', getTransitionProps({\n easing: undefined,\n style: undefined,\n timeout: transitionDuration\n }, {\n mode\n }));\n }\n if (changeTransition) {\n drawerStyle.webkitTransition = transition;\n drawerStyle.transition = transition;\n }\n if (!disableBackdropTransition && !hideBackdrop) {\n const backdropStyle = backdropRef.current.style;\n backdropStyle.opacity = 1 - translate / getMaxTranslate(horizontalSwipe, paperRef.current);\n if (changeTransition) {\n backdropStyle.webkitTransition = transition;\n backdropStyle.transition = transition;\n }\n }\n }, [anchor, disableBackdropTransition, hideBackdrop, theme, transitionDuration]);\n const handleBodyTouchEnd = useEventCallback(nativeEvent => {\n if (!touchDetected.current) {\n return;\n }\n claimedSwipeInstance = null;\n touchDetected.current = false;\n ReactDOM.flushSync(() => {\n setMaybeSwiping(false);\n });\n\n // The swipe wasn't started.\n if (!swipeInstance.current.isSwiping) {\n swipeInstance.current.isSwiping = null;\n return;\n }\n swipeInstance.current.isSwiping = null;\n const anchorRtl = getAnchor(theme, anchor);\n const horizontal = isHorizontal(anchor);\n let current;\n if (horizontal) {\n current = calculateCurrentX(anchorRtl, nativeEvent.changedTouches, ownerDocument(nativeEvent.currentTarget));\n } else {\n current = calculateCurrentY(anchorRtl, nativeEvent.changedTouches, ownerWindow(nativeEvent.currentTarget));\n }\n const startLocation = horizontal ? swipeInstance.current.startX : swipeInstance.current.startY;\n const maxTranslate = getMaxTranslate(horizontal, paperRef.current);\n const currentTranslate = getTranslate(current, startLocation, open, maxTranslate);\n const translateRatio = currentTranslate / maxTranslate;\n if (Math.abs(swipeInstance.current.velocity) > minFlingVelocity) {\n // Calculate transition duration to match swipe speed\n calculatedDurationRef.current = Math.abs((maxTranslate - currentTranslate) / swipeInstance.current.velocity) * 1000;\n }\n if (open) {\n if (swipeInstance.current.velocity > minFlingVelocity || translateRatio > hysteresis) {\n onClose();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(0, {\n mode: 'exit'\n });\n }\n return;\n }\n if (swipeInstance.current.velocity < -minFlingVelocity || 1 - translateRatio > hysteresis) {\n onOpen();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(getMaxTranslate(horizontal, paperRef.current), {\n mode: 'enter'\n });\n }\n });\n const startMaybeSwiping = (force = false) => {\n if (!maybeSwiping) {\n // on Safari Mobile, if you want to be able to have the 'click' event fired on child elements, nothing in the DOM can be changed.\n // this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.\n // so do this change on first touchmove instead of touchstart\n if (force || !(disableDiscovery && allowSwipeInChildren)) {\n ReactDOM.flushSync(() => {\n setMaybeSwiping(true);\n });\n }\n const horizontalSwipe = isHorizontal(anchor);\n if (!open && paperRef.current) {\n // The ref may be null when a parent component updates while swiping.\n setPosition(getMaxTranslate(horizontalSwipe, paperRef.current) + (disableDiscovery ? 15 : -DRAG_STARTED_SIGNAL), {\n changeTransition: false\n });\n }\n swipeInstance.current.velocity = 0;\n swipeInstance.current.lastTime = null;\n swipeInstance.current.lastTranslate = null;\n swipeInstance.current.paperHit = false;\n touchDetected.current = true;\n }\n };\n const handleBodyTouchMove = useEventCallback(nativeEvent => {\n // the ref may be null when a parent component updates while swiping\n if (!paperRef.current || !touchDetected.current) {\n return;\n }\n\n // We are not supposed to handle this touch move because the swipe was started in a scrollable container in the drawer\n if (claimedSwipeInstance !== null && claimedSwipeInstance !== swipeInstance.current) {\n return;\n }\n startMaybeSwiping(true);\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (open && paperRef.current.contains(nativeEvent.target) && claimedSwipeInstance === null) {\n const domTreeShapes = getDomTreeShapes(nativeEvent.target, paperRef.current);\n const hasNativeHandler = computeHasNativeHandler({\n domTreeShapes,\n start: horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY,\n current: horizontalSwipe ? currentX : currentY,\n anchor\n });\n if (hasNativeHandler) {\n claimedSwipeInstance = true;\n return;\n }\n claimedSwipeInstance = swipeInstance.current;\n }\n\n // We don't know yet.\n if (swipeInstance.current.isSwiping == null) {\n const dx = Math.abs(currentX - swipeInstance.current.startX);\n const dy = Math.abs(currentY - swipeInstance.current.startY);\n const definitelySwiping = horizontalSwipe ? dx > dy && dx > UNCERTAINTY_THRESHOLD : dy > dx && dy > UNCERTAINTY_THRESHOLD;\n if (definitelySwiping && nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n if (definitelySwiping === true || (horizontalSwipe ? dy > UNCERTAINTY_THRESHOLD : dx > UNCERTAINTY_THRESHOLD)) {\n swipeInstance.current.isSwiping = definitelySwiping;\n if (!definitelySwiping) {\n handleBodyTouchEnd(nativeEvent);\n return;\n }\n\n // Shift the starting point.\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n\n // Compensate for the part of the drawer displayed on touch start.\n if (!disableDiscovery && !open) {\n if (horizontalSwipe) {\n swipeInstance.current.startX -= DRAG_STARTED_SIGNAL;\n } else {\n swipeInstance.current.startY -= DRAG_STARTED_SIGNAL;\n }\n }\n }\n }\n if (!swipeInstance.current.isSwiping) {\n return;\n }\n const maxTranslate = getMaxTranslate(horizontalSwipe, paperRef.current);\n let startLocation = horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY;\n if (open && !swipeInstance.current.paperHit) {\n startLocation = Math.min(startLocation, maxTranslate);\n }\n const translate = getTranslate(horizontalSwipe ? currentX : currentY, startLocation, open, maxTranslate);\n if (open) {\n if (!swipeInstance.current.paperHit) {\n const paperHit = horizontalSwipe ? currentX < maxTranslate : currentY < maxTranslate;\n if (paperHit) {\n swipeInstance.current.paperHit = true;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n } else {\n return;\n }\n } else if (translate === 0) {\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n }\n }\n if (swipeInstance.current.lastTranslate === null) {\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now() + 1;\n }\n const velocity = (translate - swipeInstance.current.lastTranslate) / (performance.now() - swipeInstance.current.lastTime) * 1e3;\n\n // Low Pass filter.\n swipeInstance.current.velocity = swipeInstance.current.velocity * 0.4 + velocity * 0.6;\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now();\n\n // We are swiping, let's prevent the scroll event on iOS.\n if (nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n setPosition(translate);\n });\n const handleBodyTouchStart = useEventCallback(nativeEvent => {\n // We are not supposed to handle this touch move.\n // Example of use case: ignore the event if there is a Slider.\n if (nativeEvent.defaultPrevented) {\n return;\n }\n\n // We can only have one node at the time claiming ownership for handling the swipe.\n if (nativeEvent.defaultMuiPrevented) {\n return;\n }\n\n // At least one element clogs the drawer interaction zone.\n if (open && (hideBackdrop || !backdropRef.current.contains(nativeEvent.target)) && !paperRef.current.contains(nativeEvent.target)) {\n return;\n }\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (!open) {\n var _paperRef$current;\n // logic for if swipe should be ignored:\n // if disableSwipeToOpen\n // if target != swipeArea, and target is not a child of paper ref\n // if is a child of paper ref, and `allowSwipeInChildren` does not allow it\n if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current || (_paperRef$current = paperRef.current) != null && _paperRef$current.contains(nativeEvent.target) && (typeof allowSwipeInChildren === 'function' ? allowSwipeInChildren(nativeEvent, swipeAreaRef.current, paperRef.current) : allowSwipeInChildren))) {\n return;\n }\n if (horizontalSwipe) {\n if (currentX > swipeAreaWidth) {\n return;\n }\n } else if (currentY > swipeAreaWidth) {\n return;\n }\n }\n nativeEvent.defaultMuiPrevented = true;\n claimedSwipeInstance = null;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n startMaybeSwiping();\n });\n React.useEffect(() => {\n if (variant === 'temporary') {\n const doc = ownerDocument(paperRef.current);\n doc.addEventListener('touchstart', handleBodyTouchStart);\n // A blocking listener prevents Firefox's navbar to auto-hide on scroll.\n // It only needs to prevent scrolling on the drawer's content when open.\n // When closed, the overlay prevents scrolling.\n doc.addEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.addEventListener('touchend', handleBodyTouchEnd);\n return () => {\n doc.removeEventListener('touchstart', handleBodyTouchStart);\n doc.removeEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.removeEventListener('touchend', handleBodyTouchEnd);\n };\n }\n return undefined;\n }, [variant, open, handleBodyTouchStart, handleBodyTouchMove, handleBodyTouchEnd]);\n React.useEffect(() => () => {\n // We need to release the lock.\n if (claimedSwipeInstance === swipeInstance.current) {\n claimedSwipeInstance = null;\n }\n }, []);\n React.useEffect(() => {\n if (!open) {\n setMaybeSwiping(false);\n }\n }, [open]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(Drawer, _extends({\n open: variant === 'temporary' && maybeSwiping ? true : open,\n variant: variant,\n ModalProps: _extends({\n BackdropProps: _extends({}, BackdropProps, {\n ref: backdropRef\n })\n }, variant === 'temporary' && {\n keepMounted: true\n }, ModalPropsProp),\n hideBackdrop: hideBackdrop,\n PaperProps: _extends({}, PaperProps, {\n style: _extends({\n pointerEvents: variant === 'temporary' && !open && !allowSwipeInChildren ? 'none' : ''\n }, PaperProps.style),\n ref: handleRef\n }),\n anchor: anchor,\n transitionDuration: calculatedDurationRef.current || transitionDuration,\n onClose: onClose,\n ref: ref\n }, other)), !disableSwipeToOpen && variant === 'temporary' && /*#__PURE__*/_jsx(NoSsr, {\n children: /*#__PURE__*/_jsx(SwipeArea, _extends({\n anchor: anchor,\n ref: swipeAreaRef,\n width: swipeAreaWidth\n }, SwipeAreaProps))\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SwipeableDrawer.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children.\n * This can be useful in scenarios where the drawer is partially visible.\n * You can customize it further with a callback that determines which children the user can drag over to open the drawer\n * (for example, to ignore other elements that handle touch move events, like sliders).\n *\n * @param {TouchEvent} event The 'touchstart' event\n * @param {HTMLDivElement} swipeArea The swipe area element\n * @param {HTMLDivElement} paper The drawer's paper element\n *\n * @default false\n */\n allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),\n /**\n * @ignore\n */\n anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Disable the backdrop transition.\n * This can improve the FPS on low-end devices.\n * @default false\n */\n disableBackdropTransition: PropTypes.bool,\n /**\n * If `true`, touching the screen near the edge of the drawer will not slide in the drawer a bit\n * to promote accidental discovery of the swipe gesture.\n * @default false\n */\n disableDiscovery: PropTypes.bool,\n /**\n * If `true`, swipe to open is disabled. This is useful in browsers where swiping triggers\n * navigation actions. Swipe to open is disabled on iOS browsers by default.\n * @default typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent)\n */\n disableSwipeToOpen: PropTypes.bool,\n /**\n * @ignore\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Affects how far the drawer must be opened/closed to change its state.\n * Specified as percent (0-1) of the width of the drawer\n * @default 0.52\n */\n hysteresis: PropTypes.number,\n /**\n * Defines, from which (average) velocity on, the swipe is\n * defined as complete although hysteresis isn't reached.\n * Good threshold is between 250 - 1000 px/s\n * @default 450\n */\n minFlingVelocity: PropTypes.number,\n /**\n * @ignore\n */\n ModalProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n BackdropProps: PropTypes.shape({\n component: elementTypeAcceptingRef\n })\n }),\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Callback fired when the component requests to be opened.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onOpen: PropTypes.func.isRequired,\n /**\n * If `true`, the component is shown.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n component: elementTypeAcceptingRef,\n style: PropTypes.object\n }),\n /**\n * The element is used to intercept the touch events on the edge.\n */\n SwipeAreaProps: PropTypes.object,\n /**\n * The width of the left most (or right most) area in `px` that\n * the drawer can be swiped open from.\n * @default 20\n */\n swipeAreaWidth: PropTypes.number,\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 * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * @ignore\n */\n variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default SwipeableDrawer;"],"names":["SwipeableDrawer","_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;AAIA,MAAM,YAAY,CAAC,e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H,SAAS,UAAU,MAAM,CAAC,aAAa,cAAc,WAAW,CAAC;AACnE,IAAI;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../@babel/runtime/helpers/esm/extends/index.js"),t=require("../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose/index.js"),r=require("react"),n=require("react-dom"),i=require("../../../../prop-types/index/index.js"),a=require("../../Drawer/Drawer/index.js"),u=require("../../styles/useTheme/index.js"),o=require("../../transitions/utils/index.js"),s=require("../SwipeArea/index.js"),l=require("react/jsx-runtime"),c=require("../../DefaultPropsProvider/DefaultPropsProvider/index.js"),d=require("../../../utils/esm/useForkRef/useForkRef/index.js"),f=require("../../../utils/esm/useEnhancedEffect/useEnhancedEffect/index.js"),p=require("../../../utils/esm/useEventCallback/useEventCallback/index.js"),h=require("../../../utils/esm/ownerDocument/ownerDocument/index.js"),m=require("../../NoSsr/NoSsr/index.js"),g=require("../../../utils/esm/ownerWindow/ownerWindow/index.js"),b=require("../../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef/index.js");function y(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=/* @__PURE__ */Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,t}var v=/* @__PURE__ */y(r),w=/* @__PURE__ */y(n);const P=["BackdropProps"],T=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let x=null;function j(e,t,r){return"right"===e?r.body.offsetWidth-t[0].pageX:t[0].pageX}function S(e,t,r){return"bottom"===e?r.innerHeight-t[0].clientY:t[0].clientY}function k(e,t){return e?t.clientWidth:t.clientHeight}function E(e,t,r,n){return Math.min(Math.max(r?t-e:n+t-e,0),n)}const q="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),D=/* @__PURE__ */v.forwardRef(function(r,n){const i=c.useDefaultProps({name:"MuiSwipeableDrawer",props:r}),b=u.default(),y={enter:b.transitions.duration.enteringScreen,exit:b.transitions.duration.leavingScreen},{anchor:D="left",disableBackdropTransition:M=!1,disableDiscovery:O=!1,disableSwipeToOpen:H=q,hideBackdrop:A,hysteresis:R=.52,allowSwipeInChildren:W=!1,minFlingVelocity:B=450,ModalProps:{BackdropProps:C}={},onClose:X,onOpen:Y,open:L=!1,PaperProps:F={},SwipeAreaProps:V,swipeAreaWidth:z=20,transitionDuration:N=y,variant:I="temporary"}=i,_=t.default(i.ModalProps,P),$=t.default(i,T),[G,J]=v.useState(!1),K=v.useRef({isSwiping:null}),Q=v.useRef(),U=v.useRef(),Z=v.useRef(),ee=d.default(F.ref,Z),te=v.useRef(!1),re=v.useRef();f.default(()=>{re.current=null},[L]);const ne=v.useCallback((e,t={})=>{const{mode:r=null,changeTransition:n=!0}=t,i=a.getAnchor(b,D),u=-1!==["right","bottom"].indexOf(i)?1:-1,s=a.isHorizontal(D),l=s?`translate(${u*e}px, 0)`:`translate(0, ${u*e}px)`,c=Z.current.style;c.webkitTransform=l,c.transform=l;let d="";if(r&&(d=b.transitions.create("all",o.getTransitionProps({easing:void 0,style:void 0,timeout:N},{mode:r}))),n&&(c.webkitTransition=d,c.transition=d),!M&&!A){const t=U.current.style;t.opacity=1-e/k(s,Z.current),n&&(t.webkitTransition=d,t.transition=d)}},[D,M,A,b,N]),ie=p.default(e=>{if(!te.current)return;if(x=null,te.current=!1,w.flushSync(()=>{J(!1)}),!K.current.isSwiping)return void(K.current.isSwiping=null);K.current.isSwiping=null;const t=a.getAnchor(b,D),r=a.isHorizontal(D);let n;n=r?j(t,e.changedTouches,h.default(e.currentTarget)):S(t,e.changedTouches,g.default(e.currentTarget));const i=r?K.current.startX:K.current.startY,u=k(r,Z.current),o=E(n,i,L,u),s=o/u;Math.abs(K.current.velocity)>B&&(re.current=1e3*Math.abs((u-o)/K.current.velocity)),L?K.current.velocity>B||s>R?X():ne(0,{mode:"exit"}):K.current.velocity<-B||1-s>R?Y():ne(k(r,Z.current),{mode:"enter"})}),ae=(e=!1)=>{if(!G){!e&&O&&W||w.flushSync(()=>{J(!0)});const t=a.isHorizontal(D);!L&&Z.current&&ne(k(t,Z.current)+(O?15:-20),{changeTransition:!1}),K.current.velocity=0,K.current.lastTime=null,K.current.lastTranslate=null,K.current.paperHit=!1,te.current=!0}},ue=p.default(e=>{if(!Z.current||!te.current)return;if(null!==x&&x!==K.current)return;ae(!0);const t=a.getAnchor(b,D),r=a.isHorizontal(D),n=j(t,e.touches,h.default(e.currentTarget)),i=S(t,e.touches,g.default(e.currentTarget));if(L&&Z.current.contains(e.target)&&null===x){const t=function({domTreeShapes:e,start:t,current:r,anchor:n}){const i={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},u={x:"clientWidth",y:"clientHeight"};return e.some(e=>{let o=r>=t;"top"!==n&&"left"!==n||(o=!o);const s="left"===n||"right"===n?"x":"y",l=Math.round(e[i[s]]),c=l>0,d=l+e[u[s]]<e[a[s]];return!!(o&&d||!o&&c)})}({domTreeShapes:function(e,t){const r=[];for(;e&&e!==t.parentElement;){const n=g.default(t).getComputedStyle(e);"absolute"===n.getPropertyValue("position")||"hidden"===n.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&r.push(e),e=e.parentElement}return r}(e.target,Z.current),start:r?K.current.startX:K.current.startY,current:r?n:i,anchor:D});if(t)return void(x=!0);x=K.current}if(null==K.current.isSwiping){const t=Math.abs(n-K.current.startX),a=Math.abs(i-K.current.startY),u=r?t>a&&t>3:a>t&&a>3;if(u&&e.cancelable&&e.preventDefault(),!0===u||(r?a>3:t>3)){if(K.current.isSwiping=u,!u)return void ie(e);K.current.startX=n,K.current.startY=i,O||L||(r?K.current.startX-=20:K.current.startY-=20)}}if(!K.current.isSwiping)return;const u=k(r,Z.current);let o=r?K.current.startX:K.current.startY;L&&!K.current.paperHit&&(o=Math.min(o,u));const s=E(r?n:i,o,L,u);if(L)if(K.current.paperHit)0===s&&(K.current.startX=n,K.current.startY=i);else{if(!(r?n<u:i<u))return;K.current.paperHit=!0,K.current.startX=n,K.current.startY=i}null===K.current.lastTranslate&&(K.current.lastTranslate=s,K.current.lastTime=performance.now()+1);const l=(s-K.current.lastTranslate)/(performance.now()-K.current.lastTime)*1e3;K.current.velocity=.4*K.current.velocity+.6*l,K.current.lastTranslate=s,K.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),ne(s)}),oe=p.default(e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(L&&(A||!U.current.contains(e.target))&&!Z.current.contains(e.target))return;const t=a.getAnchor(b,D),r=a.isHorizontal(D),n=j(t,e.touches,h.default(e.currentTarget)),i=S(t,e.touches,g.default(e.currentTarget));if(!L){var u;if(H||!(e.target===Q.current||null!=(u=Z.current)&&u.contains(e.target)&&("function"==typeof W?W(e,Q.current,Z.current):W)))return;if(r){if(n>z)return}else if(i>z)return}e.defaultMuiPrevented=!0,x=null,K.current.startX=n,K.current.startY=i,ae()});return v.useEffect(()=>{if("temporary"===I){const e=h.default(Z.current);return e.addEventListener("touchstart",oe),e.addEventListener("touchmove",ue,{passive:!L}),e.addEventListener("touchend",ie),()=>{e.removeEventListener("touchstart",oe),e.removeEventListener("touchmove",ue,{passive:!L}),e.removeEventListener("touchend",ie)}}},[I,L,oe,ue,ie]),v.useEffect(()=>()=>{x===K.current&&(x=null)},[]),v.useEffect(()=>{L||J(!1)},[L]),/* @__PURE__ */l.jsxs(v.Fragment,{children:[/* @__PURE__ */l.jsx(a.default,e.default({open:!("temporary"!==I||!G)||L,variant:I,ModalProps:e.default({BackdropProps:e.default({},C,{ref:U})},"temporary"===I&&{keepMounted:!0},_),hideBackdrop:A,PaperProps:e.default({},F,{style:e.default({pointerEvents:"temporary"!==I||L||W?"":"none"},F.style),ref:ee}),anchor:D,transitionDuration:re.current||N,onClose:X,ref:n},$)),!H&&"temporary"===I&&/* @__PURE__ */l.jsx(m.default,{children:/* @__PURE__ */l.jsx(s.default,e.default({anchor:D,ref:Q,width:z},V))})]})});"production"!==
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../@babel/runtime/helpers/esm/extends/index.js"),t=require("../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose/index.js"),r=require("react"),n=require("react-dom"),i=require("../../../../prop-types/index/index.js"),a=require("../../Drawer/Drawer/index.js"),u=require("../../styles/useTheme/index.js"),o=require("../../transitions/utils/index.js"),s=require("../SwipeArea/index.js"),l=require("react/jsx-runtime"),c=require("../../DefaultPropsProvider/DefaultPropsProvider/index.js"),d=require("../../../utils/esm/useForkRef/useForkRef/index.js"),f=require("../../../utils/esm/useEnhancedEffect/useEnhancedEffect/index.js"),p=require("../../../utils/esm/useEventCallback/useEventCallback/index.js"),h=require("../../../utils/esm/ownerDocument/ownerDocument/index.js"),m=require("../../NoSsr/NoSsr/index.js"),g=require("../../../utils/esm/ownerWindow/ownerWindow/index.js"),b=require("../../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef/index.js");function y(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=/* @__PURE__ */Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,t}var v=/* @__PURE__ */y(r),w=/* @__PURE__ */y(n);const P=["BackdropProps"],T=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let x=null;function j(e,t,r){return"right"===e?r.body.offsetWidth-t[0].pageX:t[0].pageX}function S(e,t,r){return"bottom"===e?r.innerHeight-t[0].clientY:t[0].clientY}function k(e,t){return e?t.clientWidth:t.clientHeight}function E(e,t,r,n){return Math.min(Math.max(r?t-e:n+t-e,0),n)}const q="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),D=/* @__PURE__ */v.forwardRef(function(r,n){const i=c.useDefaultProps({name:"MuiSwipeableDrawer",props:r}),b=u.default(),y={enter:b.transitions.duration.enteringScreen,exit:b.transitions.duration.leavingScreen},{anchor:D="left",disableBackdropTransition:M=!1,disableDiscovery:O=!1,disableSwipeToOpen:H=q,hideBackdrop:A,hysteresis:R=.52,allowSwipeInChildren:W=!1,minFlingVelocity:B=450,ModalProps:{BackdropProps:C}={},onClose:X,onOpen:Y,open:L=!1,PaperProps:F={},SwipeAreaProps:V,swipeAreaWidth:z=20,transitionDuration:N=y,variant:I="temporary"}=i,_=t.default(i.ModalProps,P),$=t.default(i,T),[G,J]=v.useState(!1),K=v.useRef({isSwiping:null}),Q=v.useRef(),U=v.useRef(),Z=v.useRef(),ee=d.default(F.ref,Z),te=v.useRef(!1),re=v.useRef();f.default(()=>{re.current=null},[L]);const ne=v.useCallback((e,t={})=>{const{mode:r=null,changeTransition:n=!0}=t,i=a.getAnchor(b,D),u=-1!==["right","bottom"].indexOf(i)?1:-1,s=a.isHorizontal(D),l=s?`translate(${u*e}px, 0)`:`translate(0, ${u*e}px)`,c=Z.current.style;c.webkitTransform=l,c.transform=l;let d="";if(r&&(d=b.transitions.create("all",o.getTransitionProps({easing:void 0,style:void 0,timeout:N},{mode:r}))),n&&(c.webkitTransition=d,c.transition=d),!M&&!A){const t=U.current.style;t.opacity=1-e/k(s,Z.current),n&&(t.webkitTransition=d,t.transition=d)}},[D,M,A,b,N]),ie=p.default(e=>{if(!te.current)return;if(x=null,te.current=!1,w.flushSync(()=>{J(!1)}),!K.current.isSwiping)return void(K.current.isSwiping=null);K.current.isSwiping=null;const t=a.getAnchor(b,D),r=a.isHorizontal(D);let n;n=r?j(t,e.changedTouches,h.default(e.currentTarget)):S(t,e.changedTouches,g.default(e.currentTarget));const i=r?K.current.startX:K.current.startY,u=k(r,Z.current),o=E(n,i,L,u),s=o/u;Math.abs(K.current.velocity)>B&&(re.current=1e3*Math.abs((u-o)/K.current.velocity)),L?K.current.velocity>B||s>R?X():ne(0,{mode:"exit"}):K.current.velocity<-B||1-s>R?Y():ne(k(r,Z.current),{mode:"enter"})}),ae=(e=!1)=>{if(!G){!e&&O&&W||w.flushSync(()=>{J(!0)});const t=a.isHorizontal(D);!L&&Z.current&&ne(k(t,Z.current)+(O?15:-20),{changeTransition:!1}),K.current.velocity=0,K.current.lastTime=null,K.current.lastTranslate=null,K.current.paperHit=!1,te.current=!0}},ue=p.default(e=>{if(!Z.current||!te.current)return;if(null!==x&&x!==K.current)return;ae(!0);const t=a.getAnchor(b,D),r=a.isHorizontal(D),n=j(t,e.touches,h.default(e.currentTarget)),i=S(t,e.touches,g.default(e.currentTarget));if(L&&Z.current.contains(e.target)&&null===x){const t=function({domTreeShapes:e,start:t,current:r,anchor:n}){const i={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},u={x:"clientWidth",y:"clientHeight"};return e.some(e=>{let o=r>=t;"top"!==n&&"left"!==n||(o=!o);const s="left"===n||"right"===n?"x":"y",l=Math.round(e[i[s]]),c=l>0,d=l+e[u[s]]<e[a[s]];return!!(o&&d||!o&&c)})}({domTreeShapes:function(e,t){const r=[];for(;e&&e!==t.parentElement;){const n=g.default(t).getComputedStyle(e);"absolute"===n.getPropertyValue("position")||"hidden"===n.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&r.push(e),e=e.parentElement}return r}(e.target,Z.current),start:r?K.current.startX:K.current.startY,current:r?n:i,anchor:D});if(t)return void(x=!0);x=K.current}if(null==K.current.isSwiping){const t=Math.abs(n-K.current.startX),a=Math.abs(i-K.current.startY),u=r?t>a&&t>3:a>t&&a>3;if(u&&e.cancelable&&e.preventDefault(),!0===u||(r?a>3:t>3)){if(K.current.isSwiping=u,!u)return void ie(e);K.current.startX=n,K.current.startY=i,O||L||(r?K.current.startX-=20:K.current.startY-=20)}}if(!K.current.isSwiping)return;const u=k(r,Z.current);let o=r?K.current.startX:K.current.startY;L&&!K.current.paperHit&&(o=Math.min(o,u));const s=E(r?n:i,o,L,u);if(L)if(K.current.paperHit)0===s&&(K.current.startX=n,K.current.startY=i);else{if(!(r?n<u:i<u))return;K.current.paperHit=!0,K.current.startX=n,K.current.startY=i}null===K.current.lastTranslate&&(K.current.lastTranslate=s,K.current.lastTime=performance.now()+1);const l=(s-K.current.lastTranslate)/(performance.now()-K.current.lastTime)*1e3;K.current.velocity=.4*K.current.velocity+.6*l,K.current.lastTranslate=s,K.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),ne(s)}),oe=p.default(e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(L&&(A||!U.current.contains(e.target))&&!Z.current.contains(e.target))return;const t=a.getAnchor(b,D),r=a.isHorizontal(D),n=j(t,e.touches,h.default(e.currentTarget)),i=S(t,e.touches,g.default(e.currentTarget));if(!L){var u;if(H||!(e.target===Q.current||null!=(u=Z.current)&&u.contains(e.target)&&("function"==typeof W?W(e,Q.current,Z.current):W)))return;if(r){if(n>z)return}else if(i>z)return}e.defaultMuiPrevented=!0,x=null,K.current.startX=n,K.current.startY=i,ae()});return v.useEffect(()=>{if("temporary"===I){const e=h.default(Z.current);return e.addEventListener("touchstart",oe),e.addEventListener("touchmove",ue,{passive:!L}),e.addEventListener("touchend",ie),()=>{e.removeEventListener("touchstart",oe),e.removeEventListener("touchmove",ue,{passive:!L}),e.removeEventListener("touchend",ie)}}},[I,L,oe,ue,ie]),v.useEffect(()=>()=>{x===K.current&&(x=null)},[]),v.useEffect(()=>{L||J(!1)},[L]),/* @__PURE__ */l.jsxs(v.Fragment,{children:[/* @__PURE__ */l.jsx(a.default,e.default({open:!("temporary"!==I||!G)||L,variant:I,ModalProps:e.default({BackdropProps:e.default({},C,{ref:U})},"temporary"===I&&{keepMounted:!0},_),hideBackdrop:A,PaperProps:e.default({},F,{style:e.default({pointerEvents:"temporary"!==I||L||W?"":"none"},F.style),ref:ee}),anchor:D,transitionDuration:re.current||N,onClose:X,ref:n},$)),!H&&"temporary"===I&&/* @__PURE__ */l.jsx(m.default,{children:/* @__PURE__ */l.jsx(s.default,e.default({anchor:D,ref:Q,width:z},V))})]})});"production"!==process.env.NODE_ENV&&(D.propTypes={allowSwipeInChildren:i.default.oneOfType([i.default.func,i.default.bool]),anchor:i.default.oneOf(["bottom","left","right","top"]),children:i.default.node,disableBackdropTransition:i.default.bool,disableDiscovery:i.default.bool,disableSwipeToOpen:i.default.bool,hideBackdrop:i.default.bool,hysteresis:i.default.number,minFlingVelocity:i.default.number,ModalProps:i.default.shape({BackdropProps:i.default.shape({component:b.default})}),onClose:i.default.func.isRequired,onOpen:i.default.func.isRequired,open:i.default.bool,PaperProps:i.default.shape({component:b.default,style:i.default.object}),SwipeAreaProps:i.default.object,swipeAreaWidth:i.default.number,transitionDuration:i.default.oneOfType([i.default.number,i.default.shape({appear:i.default.number,enter:i.default.number,exit:i.default.number})]),variant:i.default.oneOf(["permanent","persistent","temporary"])}),exports.default=D;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"BackdropProps\"],\n _excluded2 = [\"anchor\", \"disableBackdropTransition\", \"disableDiscovery\", \"disableSwipeToOpen\", \"hideBackdrop\", \"hysteresis\", \"allowSwipeInChildren\", \"minFlingVelocity\", \"ModalProps\", \"onClose\", \"onOpen\", \"open\", \"PaperProps\", \"SwipeAreaProps\", \"swipeAreaWidth\", \"transitionDuration\", \"variant\"];\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport NoSsr from '../NoSsr';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';\nimport useForkRef from '../utils/useForkRef';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport useEventCallback from '../utils/useEventCallback';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps } from '../transitions/utils';\nimport SwipeArea from './SwipeArea';\n\n// This value is closed to what browsers are using internally to\n// trigger a native scroll.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UNCERTAINTY_THRESHOLD = 3; // px\n\n// This is the part of the drawer displayed on touch start.\nconst DRAG_STARTED_SIGNAL = 20; // px\n\n// We can only have one instance at the time claiming ownership for handling the swipe.\n// Otherwise, the UX would be confusing.\n// That's why we use a singleton here.\nlet claimedSwipeInstance = null;\n\n// Exported for test purposes.\nexport function reset() {\n claimedSwipeInstance = null;\n}\nfunction calculateCurrentX(anchor, touches, doc) {\n return anchor === 'right' ? doc.body.offsetWidth - touches[0].pageX : touches[0].pageX;\n}\nfunction calculateCurrentY(anchor, touches, containerWindow) {\n return anchor === 'bottom' ? containerWindow.innerHeight - touches[0].clientY : touches[0].clientY;\n}\nfunction getMaxTranslate(horizontalSwipe, paperInstance) {\n return horizontalSwipe ? paperInstance.clientWidth : paperInstance.clientHeight;\n}\nfunction getTranslate(currentTranslate, startLocation, open, maxTranslate) {\n return Math.min(Math.max(open ? startLocation - currentTranslate : maxTranslate + startLocation - currentTranslate, 0), maxTranslate);\n}\n\n/**\n * @param {Element | null} element\n * @param {Element} rootNode\n */\nfunction getDomTreeShapes(element, rootNode) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L129\n const domTreeShapes = [];\n while (element && element !== rootNode.parentElement) {\n const style = ownerWindow(rootNode).getComputedStyle(element);\n if (\n // Ignore the scroll children if the element is absolute positioned.\n style.getPropertyValue('position') === 'absolute' ||\n // Ignore the scroll children if the element has an overflowX hidden\n style.getPropertyValue('overflow-x') === 'hidden') {\n // noop\n } else if (element.clientWidth > 0 && element.scrollWidth > element.clientWidth || element.clientHeight > 0 && element.scrollHeight > element.clientHeight) {\n // Ignore the nodes that have no width.\n // Keep elements with a scroll\n domTreeShapes.push(element);\n }\n element = element.parentElement;\n }\n return domTreeShapes;\n}\n\n/**\n * @param {object} param0\n * @param {ReturnType<getDomTreeShapes>} param0.domTreeShapes\n */\nfunction computeHasNativeHandler({\n domTreeShapes,\n start,\n current,\n anchor\n}) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L175\n const axisProperties = {\n scrollPosition: {\n x: 'scrollLeft',\n y: 'scrollTop'\n },\n scrollLength: {\n x: 'scrollWidth',\n y: 'scrollHeight'\n },\n clientLength: {\n x: 'clientWidth',\n y: 'clientHeight'\n }\n };\n return domTreeShapes.some(shape => {\n // Determine if we are going backward or forward.\n let goingForward = current >= start;\n if (anchor === 'top' || anchor === 'left') {\n goingForward = !goingForward;\n }\n const axis = anchor === 'left' || anchor === 'right' ? 'x' : 'y';\n const scrollPosition = Math.round(shape[axisProperties.scrollPosition[axis]]);\n const areNotAtStart = scrollPosition > 0;\n const areNotAtEnd = scrollPosition + shape[axisProperties.clientLength[axis]] < shape[axisProperties.scrollLength[axis]];\n if (goingForward && areNotAtEnd || !goingForward && areNotAtStart) {\n return true;\n }\n return false;\n });\n}\nconst iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);\nconst SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiSwipeableDrawer',\n props: inProps\n });\n const theme = useTheme();\n const transitionDurationDefault = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n anchor = 'left',\n disableBackdropTransition = false,\n disableDiscovery = false,\n disableSwipeToOpen = iOS,\n hideBackdrop,\n hysteresis = 0.52,\n allowSwipeInChildren = false,\n minFlingVelocity = 450,\n ModalProps: {\n BackdropProps\n } = {},\n onClose,\n onOpen,\n open = false,\n PaperProps = {},\n SwipeAreaProps,\n swipeAreaWidth = 20,\n transitionDuration = transitionDurationDefault,\n variant = 'temporary' // Mobile first.\n } = props,\n ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [maybeSwiping, setMaybeSwiping] = React.useState(false);\n const swipeInstance = React.useRef({\n isSwiping: null\n });\n const swipeAreaRef = React.useRef();\n const backdropRef = React.useRef();\n const paperRef = React.useRef();\n const handleRef = useForkRef(PaperProps.ref, paperRef);\n const touchDetected = React.useRef(false);\n\n // Ref for transition duration based on / to match swipe speed\n const calculatedDurationRef = React.useRef();\n\n // Use a ref so the open value used is always up to date inside useCallback.\n useEnhancedEffect(() => {\n calculatedDurationRef.current = null;\n }, [open]);\n const setPosition = React.useCallback((translate, options = {}) => {\n const {\n mode = null,\n changeTransition = true\n } = options;\n const anchorRtl = getAnchor(theme, anchor);\n const rtlTranslateMultiplier = ['right', 'bottom'].indexOf(anchorRtl) !== -1 ? 1 : -1;\n const horizontalSwipe = isHorizontal(anchor);\n const transform = horizontalSwipe ? `translate(${rtlTranslateMultiplier * translate}px, 0)` : `translate(0, ${rtlTranslateMultiplier * translate}px)`;\n const drawerStyle = paperRef.current.style;\n drawerStyle.webkitTransform = transform;\n drawerStyle.transform = transform;\n let transition = '';\n if (mode) {\n transition = theme.transitions.create('all', getTransitionProps({\n easing: undefined,\n style: undefined,\n timeout: transitionDuration\n }, {\n mode\n }));\n }\n if (changeTransition) {\n drawerStyle.webkitTransition = transition;\n drawerStyle.transition = transition;\n }\n if (!disableBackdropTransition && !hideBackdrop) {\n const backdropStyle = backdropRef.current.style;\n backdropStyle.opacity = 1 - translate / getMaxTranslate(horizontalSwipe, paperRef.current);\n if (changeTransition) {\n backdropStyle.webkitTransition = transition;\n backdropStyle.transition = transition;\n }\n }\n }, [anchor, disableBackdropTransition, hideBackdrop, theme, transitionDuration]);\n const handleBodyTouchEnd = useEventCallback(nativeEvent => {\n if (!touchDetected.current) {\n return;\n }\n claimedSwipeInstance = null;\n touchDetected.current = false;\n ReactDOM.flushSync(() => {\n setMaybeSwiping(false);\n });\n\n // The swipe wasn't started.\n if (!swipeInstance.current.isSwiping) {\n swipeInstance.current.isSwiping = null;\n return;\n }\n swipeInstance.current.isSwiping = null;\n const anchorRtl = getAnchor(theme, anchor);\n const horizontal = isHorizontal(anchor);\n let current;\n if (horizontal) {\n current = calculateCurrentX(anchorRtl, nativeEvent.changedTouches, ownerDocument(nativeEvent.currentTarget));\n } else {\n current = calculateCurrentY(anchorRtl, nativeEvent.changedTouches, ownerWindow(nativeEvent.currentTarget));\n }\n const startLocation = horizontal ? swipeInstance.current.startX : swipeInstance.current.startY;\n const maxTranslate = getMaxTranslate(horizontal, paperRef.current);\n const currentTranslate = getTranslate(current, startLocation, open, maxTranslate);\n const translateRatio = currentTranslate / maxTranslate;\n if (Math.abs(swipeInstance.current.velocity) > minFlingVelocity) {\n // Calculate transition duration to match swipe speed\n calculatedDurationRef.current = Math.abs((maxTranslate - currentTranslate) / swipeInstance.current.velocity) * 1000;\n }\n if (open) {\n if (swipeInstance.current.velocity > minFlingVelocity || translateRatio > hysteresis) {\n onClose();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(0, {\n mode: 'exit'\n });\n }\n return;\n }\n if (swipeInstance.current.velocity < -minFlingVelocity || 1 - translateRatio > hysteresis) {\n onOpen();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(getMaxTranslate(horizontal, paperRef.current), {\n mode: 'enter'\n });\n }\n });\n const startMaybeSwiping = (force = false) => {\n if (!maybeSwiping) {\n // on Safari Mobile, if you want to be able to have the 'click' event fired on child elements, nothing in the DOM can be changed.\n // this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.\n // so do this change on first touchmove instead of touchstart\n if (force || !(disableDiscovery && allowSwipeInChildren)) {\n ReactDOM.flushSync(() => {\n setMaybeSwiping(true);\n });\n }\n const horizontalSwipe = isHorizontal(anchor);\n if (!open && paperRef.current) {\n // The ref may be null when a parent component updates while swiping.\n setPosition(getMaxTranslate(horizontalSwipe, paperRef.current) + (disableDiscovery ? 15 : -DRAG_STARTED_SIGNAL), {\n changeTransition: false\n });\n }\n swipeInstance.current.velocity = 0;\n swipeInstance.current.lastTime = null;\n swipeInstance.current.lastTranslate = null;\n swipeInstance.current.paperHit = false;\n touchDetected.current = true;\n }\n };\n const handleBodyTouchMove = useEventCallback(nativeEvent => {\n // the ref may be null when a parent component updates while swiping\n if (!paperRef.current || !touchDetected.current) {\n return;\n }\n\n // We are not supposed to handle this touch move because the swipe was started in a scrollable container in the drawer\n if (claimedSwipeInstance !== null && claimedSwipeInstance !== swipeInstance.current) {\n return;\n }\n startMaybeSwiping(true);\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (open && paperRef.current.contains(nativeEvent.target) && claimedSwipeInstance === null) {\n const domTreeShapes = getDomTreeShapes(nativeEvent.target, paperRef.current);\n const hasNativeHandler = computeHasNativeHandler({\n domTreeShapes,\n start: horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY,\n current: horizontalSwipe ? currentX : currentY,\n anchor\n });\n if (hasNativeHandler) {\n claimedSwipeInstance = true;\n return;\n }\n claimedSwipeInstance = swipeInstance.current;\n }\n\n // We don't know yet.\n if (swipeInstance.current.isSwiping == null) {\n const dx = Math.abs(currentX - swipeInstance.current.startX);\n const dy = Math.abs(currentY - swipeInstance.current.startY);\n const definitelySwiping = horizontalSwipe ? dx > dy && dx > UNCERTAINTY_THRESHOLD : dy > dx && dy > UNCERTAINTY_THRESHOLD;\n if (definitelySwiping && nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n if (definitelySwiping === true || (horizontalSwipe ? dy > UNCERTAINTY_THRESHOLD : dx > UNCERTAINTY_THRESHOLD)) {\n swipeInstance.current.isSwiping = definitelySwiping;\n if (!definitelySwiping) {\n handleBodyTouchEnd(nativeEvent);\n return;\n }\n\n // Shift the starting point.\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n\n // Compensate for the part of the drawer displayed on touch start.\n if (!disableDiscovery && !open) {\n if (horizontalSwipe) {\n swipeInstance.current.startX -= DRAG_STARTED_SIGNAL;\n } else {\n swipeInstance.current.startY -= DRAG_STARTED_SIGNAL;\n }\n }\n }\n }\n if (!swipeInstance.current.isSwiping) {\n return;\n }\n const maxTranslate = getMaxTranslate(horizontalSwipe, paperRef.current);\n let startLocation = horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY;\n if (open && !swipeInstance.current.paperHit) {\n startLocation = Math.min(startLocation, maxTranslate);\n }\n const translate = getTranslate(horizontalSwipe ? currentX : currentY, startLocation, open, maxTranslate);\n if (open) {\n if (!swipeInstance.current.paperHit) {\n const paperHit = horizontalSwipe ? currentX < maxTranslate : currentY < maxTranslate;\n if (paperHit) {\n swipeInstance.current.paperHit = true;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n } else {\n return;\n }\n } else if (translate === 0) {\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n }\n }\n if (swipeInstance.current.lastTranslate === null) {\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now() + 1;\n }\n const velocity = (translate - swipeInstance.current.lastTranslate) / (performance.now() - swipeInstance.current.lastTime) * 1e3;\n\n // Low Pass filter.\n swipeInstance.current.velocity = swipeInstance.current.velocity * 0.4 + velocity * 0.6;\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now();\n\n // We are swiping, let's prevent the scroll event on iOS.\n if (nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n setPosition(translate);\n });\n const handleBodyTouchStart = useEventCallback(nativeEvent => {\n // We are not supposed to handle this touch move.\n // Example of use case: ignore the event if there is a Slider.\n if (nativeEvent.defaultPrevented) {\n return;\n }\n\n // We can only have one node at the time claiming ownership for handling the swipe.\n if (nativeEvent.defaultMuiPrevented) {\n return;\n }\n\n // At least one element clogs the drawer interaction zone.\n if (open && (hideBackdrop || !backdropRef.current.contains(nativeEvent.target)) && !paperRef.current.contains(nativeEvent.target)) {\n return;\n }\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (!open) {\n var _paperRef$current;\n // logic for if swipe should be ignored:\n // if disableSwipeToOpen\n // if target != swipeArea, and target is not a child of paper ref\n // if is a child of paper ref, and `allowSwipeInChildren` does not allow it\n if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current || (_paperRef$current = paperRef.current) != null && _paperRef$current.contains(nativeEvent.target) && (typeof allowSwipeInChildren === 'function' ? allowSwipeInChildren(nativeEvent, swipeAreaRef.current, paperRef.current) : allowSwipeInChildren))) {\n return;\n }\n if (horizontalSwipe) {\n if (currentX > swipeAreaWidth) {\n return;\n }\n } else if (currentY > swipeAreaWidth) {\n return;\n }\n }\n nativeEvent.defaultMuiPrevented = true;\n claimedSwipeInstance = null;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n startMaybeSwiping();\n });\n React.useEffect(() => {\n if (variant === 'temporary') {\n const doc = ownerDocument(paperRef.current);\n doc.addEventListener('touchstart', handleBodyTouchStart);\n // A blocking listener prevents Firefox's navbar to auto-hide on scroll.\n // It only needs to prevent scrolling on the drawer's content when open.\n // When closed, the overlay prevents scrolling.\n doc.addEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.addEventListener('touchend', handleBodyTouchEnd);\n return () => {\n doc.removeEventListener('touchstart', handleBodyTouchStart);\n doc.removeEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.removeEventListener('touchend', handleBodyTouchEnd);\n };\n }\n return undefined;\n }, [variant, open, handleBodyTouchStart, handleBodyTouchMove, handleBodyTouchEnd]);\n React.useEffect(() => () => {\n // We need to release the lock.\n if (claimedSwipeInstance === swipeInstance.current) {\n claimedSwipeInstance = null;\n }\n }, []);\n React.useEffect(() => {\n if (!open) {\n setMaybeSwiping(false);\n }\n }, [open]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(Drawer, _extends({\n open: variant === 'temporary' && maybeSwiping ? true : open,\n variant: variant,\n ModalProps: _extends({\n BackdropProps: _extends({}, BackdropProps, {\n ref: backdropRef\n })\n }, variant === 'temporary' && {\n keepMounted: true\n }, ModalPropsProp),\n hideBackdrop: hideBackdrop,\n PaperProps: _extends({}, PaperProps, {\n style: _extends({\n pointerEvents: variant === 'temporary' && !open && !allowSwipeInChildren ? 'none' : ''\n }, PaperProps.style),\n ref: handleRef\n }),\n anchor: anchor,\n transitionDuration: calculatedDurationRef.current || transitionDuration,\n onClose: onClose,\n ref: ref\n }, other)), !disableSwipeToOpen && variant === 'temporary' && /*#__PURE__*/_jsx(NoSsr, {\n children: /*#__PURE__*/_jsx(SwipeArea, _extends({\n anchor: anchor,\n ref: swipeAreaRef,\n width: swipeAreaWidth\n }, SwipeAreaProps))\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SwipeableDrawer.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children.\n * This can be useful in scenarios where the drawer is partially visible.\n * You can customize it further with a callback that determines which children the user can drag over to open the drawer\n * (for example, to ignore other elements that handle touch move events, like sliders).\n *\n * @param {TouchEvent} event The 'touchstart' event\n * @param {HTMLDivElement} swipeArea The swipe area element\n * @param {HTMLDivElement} paper The drawer's paper element\n *\n * @default false\n */\n allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),\n /**\n * @ignore\n */\n anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Disable the backdrop transition.\n * This can improve the FPS on low-end devices.\n * @default false\n */\n disableBackdropTransition: PropTypes.bool,\n /**\n * If `true`, touching the screen near the edge of the drawer will not slide in the drawer a bit\n * to promote accidental discovery of the swipe gesture.\n * @default false\n */\n disableDiscovery: PropTypes.bool,\n /**\n * If `true`, swipe to open is disabled. This is useful in browsers where swiping triggers\n * navigation actions. Swipe to open is disabled on iOS browsers by default.\n * @default typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent)\n */\n disableSwipeToOpen: PropTypes.bool,\n /**\n * @ignore\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Affects how far the drawer must be opened/closed to change its state.\n * Specified as percent (0-1) of the width of the drawer\n * @default 0.52\n */\n hysteresis: PropTypes.number,\n /**\n * Defines, from which (average) velocity on, the swipe is\n * defined as complete although hysteresis isn't reached.\n * Good threshold is between 250 - 1000 px/s\n * @default 450\n */\n minFlingVelocity: PropTypes.number,\n /**\n * @ignore\n */\n ModalProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n BackdropProps: PropTypes.shape({\n component: elementTypeAcceptingRef\n })\n }),\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Callback fired when the component requests to be opened.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onOpen: PropTypes.func.isRequired,\n /**\n * If `true`, the component is shown.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n component: elementTypeAcceptingRef,\n style: PropTypes.object\n }),\n /**\n * The element is used to intercept the touch events on the edge.\n */\n SwipeAreaProps: PropTypes.object,\n /**\n * The width of the left most (or right most) area in `px` that\n * the drawer can be swiped open from.\n * @default 20\n */\n swipeAreaWidth: PropTypes.number,\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 * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * @ignore\n */\n variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default SwipeableDrawer;"],"names":["_excluded","_excluded2","claimedSwipeInstance","calculateCurrentX","anchor","touches","doc","body","offsetWidth","pageX","calculateCurrentY","containerWindow","innerHeight","clientY","getMaxTranslate","horizontalSwipe","paperInstance","clientWidth","clientHeight","getTranslate","currentTranslate","startLocation","open","maxTranslate","Math","min","max","iOS","navigator","test","userAgent","SwipeableDrawer","React","forwardRef","inProps","ref","props","useDefaultProps","name","theme","useTheme","transitionDurationDefault","enter","transitions","duration","enteringScreen","exit","leavingScreen","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","BackdropProps","onClose","onOpen","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant","ModalPropsProp","_objectWithoutPropertiesLoose","other","maybeSwiping","setMaybeSwiping","useState","swipeInstance","useRef","isSwiping","swipeAreaRef","backdropRef","paperRef","handleRef","useForkRef","touchDetected","calculatedDurationRef","useEnhancedEffect","current","setPosition","useCallback","translate","options","mode","changeTransition","anchorRtl","getAnchor","rtlTranslateMultiplier","indexOf","isHorizontal","transform","drawerStyle","style","webkitTransform","transition","create","getTransitionProps","easing","timeout","webkitTransition","backdropStyle","opacity","handleBodyTouchEnd","useEventCallback","nativeEvent","ReactDOM","flushSync","horizontal","changedTouches","ownerDocument","currentTarget","ownerWindow","startX","startY","translateRatio","abs","velocity","startMaybeSwiping","force","lastTime","lastTranslate","paperHit","handleBodyTouchMove","currentX","currentY","contains","target","hasNativeHandler","domTreeShapes","start","axisProperties","x","y","some","shape","goingForward","axis","scrollPosition","round","areNotAtStart","areNotAtEnd","computeHasNativeHandler","element","rootNode","parentElement","getComputedStyle","getPropertyValue","scrollWidth","scrollHeight","push","getDomTreeShapes","dx","dy","definitelySwiping","cancelable","preventDefault","performance","now","handleBodyTouchStart","defaultPrevented","defaultMuiPrevented","_paperRef$current","useEffect","addEventListener","passive","removeEventListener","_jsxs","Fragment","children","_jsx","Drawer","_extends","keepMounted","pointerEvents","NoSsr","SwipeArea","width","NODE_ENV","propTypes","PropTypes","oneOfType","func","bool","oneOf","node","number","component","elementTypeAcceptingRef","isRequired","object","appear"],"mappings":"g5CAIA,MAAMA,EAAY,CAAC,iBACjBC,EAAa,CAAC,SAAU,4BAA6B,mBAAoB,qBAAsB,eAAgB,aAAc,uBAAwB,mBAAoB,aAAc,UAAW,SAAU,OAAQ,aAAc,iBAAkB,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H,EAAAA,QAAUM,OAS1B9H,mBAAoBwH,EAAAA,QAAUC,UAAU,CAACD,EAAAA,QAAUM,OAAQN,EAAAA,QAAU7C,MAAM,CACzEwD,OAAQX,EAAAA,QAAUM,OAClBlJ,MAAO4I,EAAAA,QAAUM,OACjB9I,KAAMwI,EAAAA,QAAUM,WAKlB7H,QAASuH,EAAAA,QAAUI,MAAM,CAAC,YAAa,aAAc","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"BackdropProps\"],\n _excluded2 = [\"anchor\", \"disableBackdropTransition\", \"disableDiscovery\", \"disableSwipeToOpen\", \"hideBackdrop\", \"hysteresis\", \"allowSwipeInChildren\", \"minFlingVelocity\", \"ModalProps\", \"onClose\", \"onOpen\", \"open\", \"PaperProps\", \"SwipeAreaProps\", \"swipeAreaWidth\", \"transitionDuration\", \"variant\"];\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport NoSsr from '../NoSsr';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';\nimport useForkRef from '../utils/useForkRef';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport useEventCallback from '../utils/useEventCallback';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps } from '../transitions/utils';\nimport SwipeArea from './SwipeArea';\n\n// This value is closed to what browsers are using internally to\n// trigger a native scroll.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UNCERTAINTY_THRESHOLD = 3; // px\n\n// This is the part of the drawer displayed on touch start.\nconst DRAG_STARTED_SIGNAL = 20; // px\n\n// We can only have one instance at the time claiming ownership for handling the swipe.\n// Otherwise, the UX would be confusing.\n// That's why we use a singleton here.\nlet claimedSwipeInstance = null;\n\n// Exported for test purposes.\nexport function reset() {\n claimedSwipeInstance = null;\n}\nfunction calculateCurrentX(anchor, touches, doc) {\n return anchor === 'right' ? doc.body.offsetWidth - touches[0].pageX : touches[0].pageX;\n}\nfunction calculateCurrentY(anchor, touches, containerWindow) {\n return anchor === 'bottom' ? containerWindow.innerHeight - touches[0].clientY : touches[0].clientY;\n}\nfunction getMaxTranslate(horizontalSwipe, paperInstance) {\n return horizontalSwipe ? paperInstance.clientWidth : paperInstance.clientHeight;\n}\nfunction getTranslate(currentTranslate, startLocation, open, maxTranslate) {\n return Math.min(Math.max(open ? startLocation - currentTranslate : maxTranslate + startLocation - currentTranslate, 0), maxTranslate);\n}\n\n/**\n * @param {Element | null} element\n * @param {Element} rootNode\n */\nfunction getDomTreeShapes(element, rootNode) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L129\n const domTreeShapes = [];\n while (element && element !== rootNode.parentElement) {\n const style = ownerWindow(rootNode).getComputedStyle(element);\n if (\n // Ignore the scroll children if the element is absolute positioned.\n style.getPropertyValue('position') === 'absolute' ||\n // Ignore the scroll children if the element has an overflowX hidden\n style.getPropertyValue('overflow-x') === 'hidden') {\n // noop\n } else if (element.clientWidth > 0 && element.scrollWidth > element.clientWidth || element.clientHeight > 0 && element.scrollHeight > element.clientHeight) {\n // Ignore the nodes that have no width.\n // Keep elements with a scroll\n domTreeShapes.push(element);\n }\n element = element.parentElement;\n }\n return domTreeShapes;\n}\n\n/**\n * @param {object} param0\n * @param {ReturnType<getDomTreeShapes>} param0.domTreeShapes\n */\nfunction computeHasNativeHandler({\n domTreeShapes,\n start,\n current,\n anchor\n}) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L175\n const axisProperties = {\n scrollPosition: {\n x: 'scrollLeft',\n y: 'scrollTop'\n },\n scrollLength: {\n x: 'scrollWidth',\n y: 'scrollHeight'\n },\n clientLength: {\n x: 'clientWidth',\n y: 'clientHeight'\n }\n };\n return domTreeShapes.some(shape => {\n // Determine if we are going backward or forward.\n let goingForward = current >= start;\n if (anchor === 'top' || anchor === 'left') {\n goingForward = !goingForward;\n }\n const axis = anchor === 'left' || anchor === 'right' ? 'x' : 'y';\n const scrollPosition = Math.round(shape[axisProperties.scrollPosition[axis]]);\n const areNotAtStart = scrollPosition > 0;\n const areNotAtEnd = scrollPosition + shape[axisProperties.clientLength[axis]] < shape[axisProperties.scrollLength[axis]];\n if (goingForward && areNotAtEnd || !goingForward && areNotAtStart) {\n return true;\n }\n return false;\n });\n}\nconst iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);\nconst SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiSwipeableDrawer',\n props: inProps\n });\n const theme = useTheme();\n const transitionDurationDefault = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n anchor = 'left',\n disableBackdropTransition = false,\n disableDiscovery = false,\n disableSwipeToOpen = iOS,\n hideBackdrop,\n hysteresis = 0.52,\n allowSwipeInChildren = false,\n minFlingVelocity = 450,\n ModalProps: {\n BackdropProps\n } = {},\n onClose,\n onOpen,\n open = false,\n PaperProps = {},\n SwipeAreaProps,\n swipeAreaWidth = 20,\n transitionDuration = transitionDurationDefault,\n variant = 'temporary' // Mobile first.\n } = props,\n ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [maybeSwiping, setMaybeSwiping] = React.useState(false);\n const swipeInstance = React.useRef({\n isSwiping: null\n });\n const swipeAreaRef = React.useRef();\n const backdropRef = React.useRef();\n const paperRef = React.useRef();\n const handleRef = useForkRef(PaperProps.ref, paperRef);\n const touchDetected = React.useRef(false);\n\n // Ref for transition duration based on / to match swipe speed\n const calculatedDurationRef = React.useRef();\n\n // Use a ref so the open value used is always up to date inside useCallback.\n useEnhancedEffect(() => {\n calculatedDurationRef.current = null;\n }, [open]);\n const setPosition = React.useCallback((translate, options = {}) => {\n const {\n mode = null,\n changeTransition = true\n } = options;\n const anchorRtl = getAnchor(theme, anchor);\n const rtlTranslateMultiplier = ['right', 'bottom'].indexOf(anchorRtl) !== -1 ? 1 : -1;\n const horizontalSwipe = isHorizontal(anchor);\n const transform = horizontalSwipe ? `translate(${rtlTranslateMultiplier * translate}px, 0)` : `translate(0, ${rtlTranslateMultiplier * translate}px)`;\n const drawerStyle = paperRef.current.style;\n drawerStyle.webkitTransform = transform;\n drawerStyle.transform = transform;\n let transition = '';\n if (mode) {\n transition = theme.transitions.create('all', getTransitionProps({\n easing: undefined,\n style: undefined,\n timeout: transitionDuration\n }, {\n mode\n }));\n }\n if (changeTransition) {\n drawerStyle.webkitTransition = transition;\n drawerStyle.transition = transition;\n }\n if (!disableBackdropTransition && !hideBackdrop) {\n const backdropStyle = backdropRef.current.style;\n backdropStyle.opacity = 1 - translate / getMaxTranslate(horizontalSwipe, paperRef.current);\n if (changeTransition) {\n backdropStyle.webkitTransition = transition;\n backdropStyle.transition = transition;\n }\n }\n }, [anchor, disableBackdropTransition, hideBackdrop, theme, transitionDuration]);\n const handleBodyTouchEnd = useEventCallback(nativeEvent => {\n if (!touchDetected.current) {\n return;\n }\n claimedSwipeInstance = null;\n touchDetected.current = false;\n ReactDOM.flushSync(() => {\n setMaybeSwiping(false);\n });\n\n // The swipe wasn't started.\n if (!swipeInstance.current.isSwiping) {\n swipeInstance.current.isSwiping = null;\n return;\n }\n swipeInstance.current.isSwiping = null;\n const anchorRtl = getAnchor(theme, anchor);\n const horizontal = isHorizontal(anchor);\n let current;\n if (horizontal) {\n current = calculateCurrentX(anchorRtl, nativeEvent.changedTouches, ownerDocument(nativeEvent.currentTarget));\n } else {\n current = calculateCurrentY(anchorRtl, nativeEvent.changedTouches, ownerWindow(nativeEvent.currentTarget));\n }\n const startLocation = horizontal ? swipeInstance.current.startX : swipeInstance.current.startY;\n const maxTranslate = getMaxTranslate(horizontal, paperRef.current);\n const currentTranslate = getTranslate(current, startLocation, open, maxTranslate);\n const translateRatio = currentTranslate / maxTranslate;\n if (Math.abs(swipeInstance.current.velocity) > minFlingVelocity) {\n // Calculate transition duration to match swipe speed\n calculatedDurationRef.current = Math.abs((maxTranslate - currentTranslate) / swipeInstance.current.velocity) * 1000;\n }\n if (open) {\n if (swipeInstance.current.velocity > minFlingVelocity || translateRatio > hysteresis) {\n onClose();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(0, {\n mode: 'exit'\n });\n }\n return;\n }\n if (swipeInstance.current.velocity < -minFlingVelocity || 1 - translateRatio > hysteresis) {\n onOpen();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(getMaxTranslate(horizontal, paperRef.current), {\n mode: 'enter'\n });\n }\n });\n const startMaybeSwiping = (force = false) => {\n if (!maybeSwiping) {\n // on Safari Mobile, if you want to be able to have the 'click' event fired on child elements, nothing in the DOM can be changed.\n // this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.\n // so do this change on first touchmove instead of touchstart\n if (force || !(disableDiscovery && allowSwipeInChildren)) {\n ReactDOM.flushSync(() => {\n setMaybeSwiping(true);\n });\n }\n const horizontalSwipe = isHorizontal(anchor);\n if (!open && paperRef.current) {\n // The ref may be null when a parent component updates while swiping.\n setPosition(getMaxTranslate(horizontalSwipe, paperRef.current) + (disableDiscovery ? 15 : -DRAG_STARTED_SIGNAL), {\n changeTransition: false\n });\n }\n swipeInstance.current.velocity = 0;\n swipeInstance.current.lastTime = null;\n swipeInstance.current.lastTranslate = null;\n swipeInstance.current.paperHit = false;\n touchDetected.current = true;\n }\n };\n const handleBodyTouchMove = useEventCallback(nativeEvent => {\n // the ref may be null when a parent component updates while swiping\n if (!paperRef.current || !touchDetected.current) {\n return;\n }\n\n // We are not supposed to handle this touch move because the swipe was started in a scrollable container in the drawer\n if (claimedSwipeInstance !== null && claimedSwipeInstance !== swipeInstance.current) {\n return;\n }\n startMaybeSwiping(true);\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (open && paperRef.current.contains(nativeEvent.target) && claimedSwipeInstance === null) {\n const domTreeShapes = getDomTreeShapes(nativeEvent.target, paperRef.current);\n const hasNativeHandler = computeHasNativeHandler({\n domTreeShapes,\n start: horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY,\n current: horizontalSwipe ? currentX : currentY,\n anchor\n });\n if (hasNativeHandler) {\n claimedSwipeInstance = true;\n return;\n }\n claimedSwipeInstance = swipeInstance.current;\n }\n\n // We don't know yet.\n if (swipeInstance.current.isSwiping == null) {\n const dx = Math.abs(currentX - swipeInstance.current.startX);\n const dy = Math.abs(currentY - swipeInstance.current.startY);\n const definitelySwiping = horizontalSwipe ? dx > dy && dx > UNCERTAINTY_THRESHOLD : dy > dx && dy > UNCERTAINTY_THRESHOLD;\n if (definitelySwiping && nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n if (definitelySwiping === true || (horizontalSwipe ? dy > UNCERTAINTY_THRESHOLD : dx > UNCERTAINTY_THRESHOLD)) {\n swipeInstance.current.isSwiping = definitelySwiping;\n if (!definitelySwiping) {\n handleBodyTouchEnd(nativeEvent);\n return;\n }\n\n // Shift the starting point.\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n\n // Compensate for the part of the drawer displayed on touch start.\n if (!disableDiscovery && !open) {\n if (horizontalSwipe) {\n swipeInstance.current.startX -= DRAG_STARTED_SIGNAL;\n } else {\n swipeInstance.current.startY -= DRAG_STARTED_SIGNAL;\n }\n }\n }\n }\n if (!swipeInstance.current.isSwiping) {\n return;\n }\n const maxTranslate = getMaxTranslate(horizontalSwipe, paperRef.current);\n let startLocation = horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY;\n if (open && !swipeInstance.current.paperHit) {\n startLocation = Math.min(startLocation, maxTranslate);\n }\n const translate = getTranslate(horizontalSwipe ? currentX : currentY, startLocation, open, maxTranslate);\n if (open) {\n if (!swipeInstance.current.paperHit) {\n const paperHit = horizontalSwipe ? currentX < maxTranslate : currentY < maxTranslate;\n if (paperHit) {\n swipeInstance.current.paperHit = true;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n } else {\n return;\n }\n } else if (translate === 0) {\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n }\n }\n if (swipeInstance.current.lastTranslate === null) {\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now() + 1;\n }\n const velocity = (translate - swipeInstance.current.lastTranslate) / (performance.now() - swipeInstance.current.lastTime) * 1e3;\n\n // Low Pass filter.\n swipeInstance.current.velocity = swipeInstance.current.velocity * 0.4 + velocity * 0.6;\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now();\n\n // We are swiping, let's prevent the scroll event on iOS.\n if (nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n setPosition(translate);\n });\n const handleBodyTouchStart = useEventCallback(nativeEvent => {\n // We are not supposed to handle this touch move.\n // Example of use case: ignore the event if there is a Slider.\n if (nativeEvent.defaultPrevented) {\n return;\n }\n\n // We can only have one node at the time claiming ownership for handling the swipe.\n if (nativeEvent.defaultMuiPrevented) {\n return;\n }\n\n // At least one element clogs the drawer interaction zone.\n if (open && (hideBackdrop || !backdropRef.current.contains(nativeEvent.target)) && !paperRef.current.contains(nativeEvent.target)) {\n return;\n }\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (!open) {\n var _paperRef$current;\n // logic for if swipe should be ignored:\n // if disableSwipeToOpen\n // if target != swipeArea, and target is not a child of paper ref\n // if is a child of paper ref, and `allowSwipeInChildren` does not allow it\n if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current || (_paperRef$current = paperRef.current) != null && _paperRef$current.contains(nativeEvent.target) && (typeof allowSwipeInChildren === 'function' ? allowSwipeInChildren(nativeEvent, swipeAreaRef.current, paperRef.current) : allowSwipeInChildren))) {\n return;\n }\n if (horizontalSwipe) {\n if (currentX > swipeAreaWidth) {\n return;\n }\n } else if (currentY > swipeAreaWidth) {\n return;\n }\n }\n nativeEvent.defaultMuiPrevented = true;\n claimedSwipeInstance = null;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n startMaybeSwiping();\n });\n React.useEffect(() => {\n if (variant === 'temporary') {\n const doc = ownerDocument(paperRef.current);\n doc.addEventListener('touchstart', handleBodyTouchStart);\n // A blocking listener prevents Firefox's navbar to auto-hide on scroll.\n // It only needs to prevent scrolling on the drawer's content when open.\n // When closed, the overlay prevents scrolling.\n doc.addEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.addEventListener('touchend', handleBodyTouchEnd);\n return () => {\n doc.removeEventListener('touchstart', handleBodyTouchStart);\n doc.removeEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.removeEventListener('touchend', handleBodyTouchEnd);\n };\n }\n return undefined;\n }, [variant, open, handleBodyTouchStart, handleBodyTouchMove, handleBodyTouchEnd]);\n React.useEffect(() => () => {\n // We need to release the lock.\n if (claimedSwipeInstance === swipeInstance.current) {\n claimedSwipeInstance = null;\n }\n }, []);\n React.useEffect(() => {\n if (!open) {\n setMaybeSwiping(false);\n }\n }, [open]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(Drawer, _extends({\n open: variant === 'temporary' && maybeSwiping ? true : open,\n variant: variant,\n ModalProps: _extends({\n BackdropProps: _extends({}, BackdropProps, {\n ref: backdropRef\n })\n }, variant === 'temporary' && {\n keepMounted: true\n }, ModalPropsProp),\n hideBackdrop: hideBackdrop,\n PaperProps: _extends({}, PaperProps, {\n style: _extends({\n pointerEvents: variant === 'temporary' && !open && !allowSwipeInChildren ? 'none' : ''\n }, PaperProps.style),\n ref: handleRef\n }),\n anchor: anchor,\n transitionDuration: calculatedDurationRef.current || transitionDuration,\n onClose: onClose,\n ref: ref\n }, other)), !disableSwipeToOpen && variant === 'temporary' && /*#__PURE__*/_jsx(NoSsr, {\n children: /*#__PURE__*/_jsx(SwipeArea, _extends({\n anchor: anchor,\n ref: swipeAreaRef,\n width: swipeAreaWidth\n }, SwipeAreaProps))\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SwipeableDrawer.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children.\n * This can be useful in scenarios where the drawer is partially visible.\n * You can customize it further with a callback that determines which children the user can drag over to open the drawer\n * (for example, to ignore other elements that handle touch move events, like sliders).\n *\n * @param {TouchEvent} event The 'touchstart' event\n * @param {HTMLDivElement} swipeArea The swipe area element\n * @param {HTMLDivElement} paper The drawer's paper element\n *\n * @default false\n */\n allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),\n /**\n * @ignore\n */\n anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Disable the backdrop transition.\n * This can improve the FPS on low-end devices.\n * @default false\n */\n disableBackdropTransition: PropTypes.bool,\n /**\n * If `true`, touching the screen near the edge of the drawer will not slide in the drawer a bit\n * to promote accidental discovery of the swipe gesture.\n * @default false\n */\n disableDiscovery: PropTypes.bool,\n /**\n * If `true`, swipe to open is disabled. This is useful in browsers where swiping triggers\n * navigation actions. Swipe to open is disabled on iOS browsers by default.\n * @default typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent)\n */\n disableSwipeToOpen: PropTypes.bool,\n /**\n * @ignore\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Affects how far the drawer must be opened/closed to change its state.\n * Specified as percent (0-1) of the width of the drawer\n * @default 0.52\n */\n hysteresis: PropTypes.number,\n /**\n * Defines, from which (average) velocity on, the swipe is\n * defined as complete although hysteresis isn't reached.\n * Good threshold is between 250 - 1000 px/s\n * @default 450\n */\n minFlingVelocity: PropTypes.number,\n /**\n * @ignore\n */\n ModalProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n BackdropProps: PropTypes.shape({\n component: elementTypeAcceptingRef\n })\n }),\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Callback fired when the component requests to be opened.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onOpen: PropTypes.func.isRequired,\n /**\n * If `true`, the component is shown.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n component: elementTypeAcceptingRef,\n style: PropTypes.object\n }),\n /**\n * The element is used to intercept the touch events on the edge.\n */\n SwipeAreaProps: PropTypes.object,\n /**\n * The width of the left most (or right most) area in `px` that\n * the drawer can be swiped open from.\n * @default 20\n */\n swipeAreaWidth: PropTypes.number,\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 * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * @ignore\n */\n variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default SwipeableDrawer;"],"names":["_excluded","_excluded2","claimedSwipeInstance","calculateCurrentX","anchor","touches","doc","body","offsetWidth","pageX","calculateCurrentY","containerWindow","innerHeight","clientY","getMaxTranslate","horizontalSwipe","paperInstance","clientWidth","clientHeight","getTranslate","currentTranslate","startLocation","open","maxTranslate","Math","min","max","iOS","navigator","test","userAgent","SwipeableDrawer","React","forwardRef","inProps","ref","props","useDefaultProps","name","theme","useTheme","transitionDurationDefault","enter","transitions","duration","enteringScreen","exit","leavingScreen","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","BackdropProps","onClose","onOpen","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant","ModalPropsProp","_objectWithoutPropertiesLoose","other","maybeSwiping","setMaybeSwiping","useState","swipeInstance","useRef","isSwiping","swipeAreaRef","backdropRef","paperRef","handleRef","useForkRef","touchDetected","calculatedDurationRef","useEnhancedEffect","current","setPosition","useCallback","translate","options","mode","changeTransition","anchorRtl","getAnchor","rtlTranslateMultiplier","indexOf","isHorizontal","transform","drawerStyle","style","webkitTransform","transition","create","getTransitionProps","easing","timeout","webkitTransition","backdropStyle","opacity","handleBodyTouchEnd","useEventCallback","nativeEvent","ReactDOM","flushSync","horizontal","changedTouches","ownerDocument","currentTarget","ownerWindow","startX","startY","translateRatio","abs","velocity","startMaybeSwiping","force","lastTime","lastTranslate","paperHit","handleBodyTouchMove","currentX","currentY","contains","target","hasNativeHandler","domTreeShapes","start","axisProperties","x","y","some","shape","goingForward","axis","scrollPosition","round","areNotAtStart","areNotAtEnd","computeHasNativeHandler","element","rootNode","parentElement","getComputedStyle","getPropertyValue","scrollWidth","scrollHeight","push","getDomTreeShapes","dx","dy","definitelySwiping","cancelable","preventDefault","performance","now","handleBodyTouchStart","defaultPrevented","defaultMuiPrevented","_paperRef$current","useEffect","addEventListener","passive","removeEventListener","_jsxs","Fragment","children","_jsx","Drawer","_extends","keepMounted","pointerEvents","NoSsr","SwipeArea","width","process","env","NODE_ENV","propTypes","PropTypes","oneOfType","func","bool","oneOf","node","number","component","elementTypeAcceptingRef","isRequired","object","appear"],"mappings":"g5CAIA,MAAMA,EAAY,CAAC,iBACjBC,EAAa,CAAC,SAAU,4BAA6B,mBAAoB,qBAAsB,eAAgB,aAAc,uBAAwB,mBAAoB,aAAc,UAAW,SAAU,OAAQ,aAAc,iBAAkB,iBAAkB,qBAAsB,WA6B9R,IAAIC,EAAuB,KAM3B,SAASC,EAAkBC,EAAQC,EAASC,GAC1C,MAAkB,UAAXF,EAAqBE,EAAIC,KAAKC,YAAcH,EAAQ,GAAGI,MAAQJ,EAAQ,GAAGI,KACnF,CACA,SAASC,EAAkBN,EAAQC,EAASM,GAC1C,MAAkB,WAAXP,EAAsBO,EAAgBC,YAAcP,EAAQ,GAAGQ,QAAUR,EAAQ,GAAGQ,OAC7F,CACA,SAASC,EAAgBC,EAAiBC,GACxC,OAAOD,EAAkBC,EAAcC,YAAcD,EAAcE,YACrE,CACA,SAASC,EAAaC,EAAkBC,EAAeC,EAAMC,GAC3D,OAAOC,KAAKC,IAAID,KAAKE,IAAIJ,EAAOD,EAAgBD,EAAmBG,EAAeF,EAAgBD,EAAkB,GAAIG,EAC1H,CAoEA,MAAMI,EAA2B,oBAAdC,WAA6B,mBAAmBC,KAAKD,UAAUE,WAC5EC,iBAA+BC,EAAMC,WAAW,SAAyBC,EAASC,GACtF,MAAMC,EAAQC,EAAAA,gBAAgB,CAC5BC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AU,OAAQ,QAAS,QAIpDjB,SAAUa,EAAAA,QAAUK,KAMpB7I,0BAA2BwI,EAAAA,QAAUG,KAMrC1I,iBAAkBuI,EAAAA,QAAUG,KAM5BzI,mBAAoBsI,EAAAA,QAAUG,KAI9BxI,aAAcqI,EAAAA,QAAUG,KAMxBvI,WAAYoI,EAAAA,QAAUM,OAOtBxI,iBAAkBkI,EAAAA,QAAUM,OAI5BvI,WAAYiI,EAAAA,QAAgD/C,MAAM,CAChEjF,cAAegI,EAAAA,QAAU/C,MAAM,CAC7BsD,UAAWC,EAAAA,YAQfvI,QAAS+H,EAAAA,QAAUE,KAAKO,WAMxBvI,OAAQ8H,EAAAA,QAAUE,KAAKO,WAKvB3K,KAAMkK,EAAAA,QAAUG,KAIhBhI,WAAY6H,EAAAA,QAAgD/C,MAAM,CAChEsD,UAAWC,EAAAA,QACXjG,MAAOyF,EAAAA,QAAUU,SAKnBtI,eAAgB4H,EAAAA,QAAUU,OAM1BrI,eAAgB2H,EAAAA,QAAUM,OAS1BhI,mBAAoB0H,EAAAA,QAAUC,UAAU,CAACD,EAAAA,QAAUM,OAAQN,EAAAA,QAAU/C,MAAM,CACzE0D,OAAQX,EAAAA,QAAUM,OAClBpJ,MAAO8I,EAAAA,QAAUM,OACjBhJ,KAAM0I,EAAAA,QAAUM,WAKlB/H,QAASyH,EAAAA,QAAUI,MAAM,CAAC,YAAa,aAAc","x_google_ignoreList":[0]}
|
|
@@ -12,7 +12,6 @@ import styled from "../../styles/styled/index.esm.js";
|
|
|
12
12
|
import capitalize from "../../../utils/esm/capitalize/capitalize/index.esm.js";
|
|
13
13
|
import composeClasses from "../../../utils/esm/composeClasses/composeClasses/index.esm.js";
|
|
14
14
|
import refType from "../../../utils/esm/refType/refType/index.esm.js";
|
|
15
|
-
var define_process_env_default = {};
|
|
16
15
|
const _excluded = ["className", "color", "edge", "size", "sx"];
|
|
17
16
|
const useUtilityClasses = (ownerState) => {
|
|
18
17
|
const {
|
|
@@ -237,7 +236,7 @@ const Switch = /* @__PURE__ */ React.forwardRef(function Switch2(inProps, ref) {
|
|
|
237
236
|
})]
|
|
238
237
|
});
|
|
239
238
|
});
|
|
240
|
-
|
|
239
|
+
process.env.NODE_ENV !== "production" ? Switch.propTypes = {
|
|
241
240
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
242
241
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
243
242
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../../../node_modules/@mui/material/Switch/Switch.js"],"sourcesContent":["'use client';\n\n// @inheritedComponent IconButton\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"color\", \"edge\", \"size\", \"sx\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha, darken, lighten } from '@mui/system/colorManipulator';\nimport capitalize from '../utils/capitalize';\nimport SwitchBase from '../internal/SwitchBase';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport switchClasses, { getSwitchUtilityClass } from './switchClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n edge,\n size,\n color,\n checked,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n switchBase: ['switchBase', `color${capitalize(color)}`, checked && 'checked', disabled && 'disabled'],\n thumb: ['thumb'],\n track: ['track'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getSwitchUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\nconst SwitchRoot = styled('span', {\n name: 'MuiSwitch',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})({\n display: 'inline-flex',\n width: 34 + 12 * 2,\n height: 14 + 12 * 2,\n overflow: 'hidden',\n padding: 12,\n boxSizing: 'border-box',\n position: 'relative',\n flexShrink: 0,\n zIndex: 0,\n // Reset the stacking context.\n verticalAlign: 'middle',\n // For correct alignment with the text.\n '@media print': {\n colorAdjust: 'exact'\n },\n variants: [{\n props: {\n edge: 'start'\n },\n style: {\n marginLeft: -8\n }\n }, {\n props: {\n edge: 'end'\n },\n style: {\n marginRight: -8\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n width: 40,\n height: 24,\n padding: 7,\n [`& .${switchClasses.thumb}`]: {\n width: 16,\n height: 16\n },\n [`& .${switchClasses.switchBase}`]: {\n padding: 4,\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(16px)'\n }\n }\n }\n }]\n});\nconst SwitchSwitchBase = styled(SwitchBase, {\n name: 'MuiSwitch',\n slot: 'SwitchBase',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.switchBase, {\n [`& .${switchClasses.input}`]: styles.input\n }, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n // Render above the focus ripple.\n color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,\n transition: theme.transitions.create(['left', 'transform'], {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(20px)'\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n opacity: 0.5\n },\n [`&.${switchClasses.disabled} + .${switchClasses.track}`]: {\n opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`\n },\n [`& .${switchClasses.input}`]: {\n left: '-100%',\n width: '300%'\n }\n}), ({\n theme\n}) => ({\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.light) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${switchClasses.checked}`]: {\n color: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.55)}`\n }\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n }\n }))]\n}));\nconst SwitchTrack = styled('span', {\n name: 'MuiSwitch',\n slot: 'Track',\n overridesResolver: (props, styles) => styles.track\n})(({\n theme\n}) => ({\n height: '100%',\n width: '100%',\n borderRadius: 14 / 2,\n zIndex: -1,\n transition: theme.transitions.create(['opacity', 'background-color'], {\n duration: theme.transitions.duration.shortest\n }),\n backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,\n opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`\n}));\nconst SwitchThumb = styled('span', {\n name: 'MuiSwitch',\n slot: 'Thumb',\n overridesResolver: (props, styles) => styles.thumb\n})(({\n theme\n}) => ({\n boxShadow: (theme.vars || theme).shadows[1],\n backgroundColor: 'currentColor',\n width: 20,\n height: 20,\n borderRadius: '50%'\n}));\nconst Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSwitch'\n });\n const {\n className,\n color = 'primary',\n edge = false,\n size = 'medium',\n sx\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n color,\n edge,\n size\n });\n const classes = useUtilityClasses(ownerState);\n const icon = /*#__PURE__*/_jsx(SwitchThumb, {\n className: classes.thumb,\n ownerState: ownerState\n });\n return /*#__PURE__*/_jsxs(SwitchRoot, {\n className: clsx(classes.root, className),\n sx: sx,\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsx(SwitchSwitchBase, _extends({\n type: \"checkbox\",\n icon: icon,\n checkedIcon: icon,\n ref: ref,\n ownerState: ownerState\n }, other, {\n classes: _extends({}, classes, {\n root: classes.switchBase\n })\n })), /*#__PURE__*/_jsx(SwitchTrack, {\n className: classes.track,\n ownerState: ownerState\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Switch.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\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 * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} 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 * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense switch styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n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;AAAA;AAAA,EAMpB,MAAM,UAAgD,UAAU,CAAC,UAAU,MAAM,CAAC,UAAU,OAAO,CAAC,GAAG,UAAU,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA,EAIxH,IAAI,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,QAAQ,UAAU,IAAI,CAAC,CAAC,GAAG,UAAU,MAAM,UAAU,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtJ,OAAO,UAAU;AACnB,IAAI;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../../node_modules/@mui/material/Switch/Switch.js"],"sourcesContent":["'use client';\n\n// @inheritedComponent IconButton\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"color\", \"edge\", \"size\", \"sx\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha, darken, lighten } from '@mui/system/colorManipulator';\nimport capitalize from '../utils/capitalize';\nimport SwitchBase from '../internal/SwitchBase';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport switchClasses, { getSwitchUtilityClass } from './switchClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n edge,\n size,\n color,\n checked,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n switchBase: ['switchBase', `color${capitalize(color)}`, checked && 'checked', disabled && 'disabled'],\n thumb: ['thumb'],\n track: ['track'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getSwitchUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\nconst SwitchRoot = styled('span', {\n name: 'MuiSwitch',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})({\n display: 'inline-flex',\n width: 34 + 12 * 2,\n height: 14 + 12 * 2,\n overflow: 'hidden',\n padding: 12,\n boxSizing: 'border-box',\n position: 'relative',\n flexShrink: 0,\n zIndex: 0,\n // Reset the stacking context.\n verticalAlign: 'middle',\n // For correct alignment with the text.\n '@media print': {\n colorAdjust: 'exact'\n },\n variants: [{\n props: {\n edge: 'start'\n },\n style: {\n marginLeft: -8\n }\n }, {\n props: {\n edge: 'end'\n },\n style: {\n marginRight: -8\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n width: 40,\n height: 24,\n padding: 7,\n [`& .${switchClasses.thumb}`]: {\n width: 16,\n height: 16\n },\n [`& .${switchClasses.switchBase}`]: {\n padding: 4,\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(16px)'\n }\n }\n }\n }]\n});\nconst SwitchSwitchBase = styled(SwitchBase, {\n name: 'MuiSwitch',\n slot: 'SwitchBase',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.switchBase, {\n [`& .${switchClasses.input}`]: styles.input\n }, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n // Render above the focus ripple.\n color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,\n transition: theme.transitions.create(['left', 'transform'], {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(20px)'\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n opacity: 0.5\n },\n [`&.${switchClasses.disabled} + .${switchClasses.track}`]: {\n opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`\n },\n [`& .${switchClasses.input}`]: {\n left: '-100%',\n width: '300%'\n }\n}), ({\n theme\n}) => ({\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.light) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${switchClasses.checked}`]: {\n color: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.55)}`\n }\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n }\n }))]\n}));\nconst SwitchTrack = styled('span', {\n name: 'MuiSwitch',\n slot: 'Track',\n overridesResolver: (props, styles) => styles.track\n})(({\n theme\n}) => ({\n height: '100%',\n width: '100%',\n borderRadius: 14 / 2,\n zIndex: -1,\n transition: theme.transitions.create(['opacity', 'background-color'], {\n duration: theme.transitions.duration.shortest\n }),\n backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,\n opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`\n}));\nconst SwitchThumb = styled('span', {\n name: 'MuiSwitch',\n slot: 'Thumb',\n overridesResolver: (props, styles) => styles.thumb\n})(({\n theme\n}) => ({\n boxShadow: (theme.vars || theme).shadows[1],\n backgroundColor: 'currentColor',\n width: 20,\n height: 20,\n borderRadius: '50%'\n}));\nconst Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSwitch'\n });\n const {\n className,\n color = 'primary',\n edge = false,\n size = 'medium',\n sx\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n color,\n edge,\n size\n });\n const classes = useUtilityClasses(ownerState);\n const icon = /*#__PURE__*/_jsx(SwitchThumb, {\n className: classes.thumb,\n ownerState: ownerState\n });\n return /*#__PURE__*/_jsxs(SwitchRoot, {\n className: clsx(classes.root, className),\n sx: sx,\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsx(SwitchSwitchBase, _extends({\n type: \"checkbox\",\n icon: icon,\n checkedIcon: icon,\n ref: ref,\n ownerState: ownerState\n }, other, {\n classes: _extends({}, classes, {\n root: classes.switchBase\n })\n })), /*#__PURE__*/_jsx(SwitchTrack, {\n className: classes.track,\n ownerState: ownerState\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Switch.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\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 * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} 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 * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense switch styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Switch;"],"names":["alpha","lighten","darken","Switch","_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;AAKA,MAAM,YAAY,CAAC,aAAa,SAAS,QAAQ,QAAQ,IAAI;AAc7D,MAAM,oBAAoB,gBAAc;AACtC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,IAAM;AACJ,QAAM,QAAQ;AAAA,IACZ,MAAM,CAAC,QAAQ,QAAQ,OAAO,WAAW,IAAI,CAAC,IAAI,OAAO,WAAW,IAAI,CAAC,EAAE;AAAA,IAC3E,YAAY,CAAC,cAAc,QAAQ,WAAW,KAAK,CAAC,IAAI,WAAW,WAAW,YAAY,UAAU;AAAA,IACpG,OAAO,CAAC,OAAO;AAAA,IACf,OAAO,CAAC,OAAO;AAAA,IACf,OAAO,CAAC,OAAO;AAAA,EACnB;AACE,QAAM,kBAAkB,eAAe,OAAO,uBAAuB,OAAO;AAC5E,SAAO,SAAS,CAAA,GAAI,SAAS,eAAe;AAC9C;AACA,MAAM,aAAa,OAAO,QAAQ;AAAA,EAChC,MAAM;AAAA,EACN,MAAM;AAAA,EACN,mBAAmB,CAAC,OAAO,WAAW;AACpC,UAAM;AAAA,MACJ;AAAA,IACN,IAAQ;AACJ,WAAO,CAAC,OAAO,MAAM,WAAW,QAAQ,OAAO,OAAO,WAAW,WAAW,IAAI,CAAC,EAAE,GAAG,OAAO,OAAO,WAAW,WAAW,IAAI,CAAC,EAAE,CAAC;AAAA,EACpI;AACF,CAAC,EAAE;AAAA,EACD,SAAS;AAAA,EACT,OAAO,KAAK,KAAK;AAAA,EACjB,QAAQ,KAAK,KAAK;AAAA,EAClB,UAAU;AAAA,EACV,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,QAAQ;AAAA;AAAA,EAER,e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A;AAAA;AAAA,EAKpB,UAAU,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMpB,MAAM,UAAgD,UAAU,CAAC,UAAU,MAAM,CAAC,UAAU,OAAO,CAAC,GAAG,UAAU,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA,EAIxH,IAAI,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,QAAQ,UAAU,IAAI,CAAC,CAAC,GAAG,UAAU,MAAM,UAAU,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtJ,OAAO,UAAU;AACnB,IAAI;","x_google_ignoreList":[0]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose/index.js"),t=require("../../../../@babel/runtime/helpers/esm/extends/index.js"),a=require("react"),r=require("../../../../prop-types/index/index.js"),o=require("../../../../clsx/dist/clsx/index.js"),l=require("../../../system/colorManipulator/index.js"),
|
|
2
|
-
return d.jsxs(g,{className:o.clsx(j.root,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose/index.js"),t=require("../../../../@babel/runtime/helpers/esm/extends/index.js"),a=require("react"),r=require("../../../../prop-types/index/index.js"),o=require("../../../../clsx/dist/clsx/index.js"),l=require("../../../system/colorManipulator/index.js"),s=require("../../internal/SwitchBase/index.js"),i=require("../switchClasses/index.js"),d=require("react/jsx-runtime"),n=require("../../DefaultPropsProvider/DefaultPropsProvider/index.js"),c=require("../../styles/styled/index.js"),u=require("../../../utils/esm/capitalize/capitalize/index.js"),f=require("../../../utils/esm/composeClasses/composeClasses/index.js"),p=require("../../../utils/esm/refType/refType/index.js");function h(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=/* @__PURE__ */Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,t}var m=/* @__PURE__ */h(a);const b=["className","color","edge","size","sx"],g=c.default("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.edge&&t[`edge${u.default(a.edge)}`],t[`size${u.default(a.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${i.default.thumb}`]:{width:16,height:16},[`& .${i.default.switchBase}`]:{padding:4,[`&.${i.default.checked}`]:{transform:"translateX(16px)"}}}}]}),v=c.default(s.default,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.switchBase,{[`& .${i.default.input}`]:t.input},"default"!==a.color&&t[`color${u.default(a.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${i.default.checked}`]:{transform:"translateX(20px)"},[`&.${i.default.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${i.default.checked} + .${i.default.track}`]:{opacity:.5},[`&.${i.default.disabled} + .${i.default.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${i.default.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:l.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([t])=>({props:{color:t},style:{[`&.${i.default.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:l.alpha(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${i.default.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?l.lighten(e.palette[t].main,.62):l.darken(e.palette[t].main,.55)}`}},[`&.${i.default.checked} + .${i.default.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),y=c.default("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)})),x=c.default("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),w=/* @__PURE__ */m.forwardRef(function(a,r){const l=n.useDefaultProps({props:a,name:"MuiSwitch"}),{className:s,color:c="primary",edge:p=!1,size:h="medium",sx:m}=l,w=e.default(l,b),k=t.default({},l,{color:c,edge:p,size:h}),j=(e=>{const{classes:a,edge:r,size:o,color:l,checked:s,disabled:d}=e,n={root:["root",r&&`edge${u.default(r)}`,`size${u.default(o)}`],switchBase:["switchBase",`color${u.default(l)}`,s&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=f.default(n,i.getSwitchUtilityClass,a);return t.default({},a,c)})(k),$=/* @__PURE__ */d.jsx(x,{className:j.thumb,ownerState:k});/* @__PURE__ */
|
|
2
|
+
return d.jsxs(g,{className:o.clsx(j.root,s),sx:m,ownerState:k,children:[/* @__PURE__ */d.jsx(v,t.default({type:"checkbox",icon:$,checkedIcon:$,ref:r,ownerState:k},w,{classes:t.default({},j,{root:j.switchBase})})),/* @__PURE__ */d.jsx(y,{className:j.track,ownerState:k})]})});"production"!==process.env.NODE_ENV&&(w.propTypes={checked:r.default.bool,checkedIcon:r.default.node,classes:r.default.object,className:r.default.string,color:r.default.oneOfType([r.default.oneOf(["default","primary","secondary","error","info","success","warning"]),r.default.string]),defaultChecked:r.default.bool,disabled:r.default.bool,disableRipple:r.default.bool,edge:r.default.oneOf(["end","start",!1]),icon:r.default.node,id:r.default.string,inputProps:r.default.object,inputRef:p.default,onChange:r.default.func,required:r.default.bool,size:r.default.oneOfType([r.default.oneOf(["medium","small"]),r.default.string]),sx:r.default.oneOfType([r.default.arrayOf(r.default.oneOfType([r.default.func,r.default.object,r.default.bool])),r.default.func,r.default.object]),value:r.default.any}),exports.default=w;
|
|
3
3
|
//# sourceMappingURL=index.js.map
|