@acuteinfo/common-screens 1.0.30 → 1.0.31

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/index.js CHANGED
@@ -2549,32 +2549,29 @@ const checkDateAndDisplay = (dateStr) => {
2549
2549
  };
2550
2550
 
2551
2551
  const drawerWidth = 227;
2552
- const drawerWidthClosed = 65;
2553
2552
  const useStyles = makeStyles((theme) => {
2554
2553
  return {
2555
2554
  drawerPaper: {
2556
2555
  position: "relative",
2557
2556
  whiteSpace: "nowrap",
2558
2557
  width: drawerWidth,
2559
- // transition: theme.transitions.create("width", {
2560
- // easing: theme.transitions.easing.sharp,
2561
- // duration: theme.transitions.duration.enteringScreen,
2562
- // }),
2563
- transition: ".5s ease",
2558
+ transition: theme.transitions.create("width", {
2559
+ easing: theme.transitions.easing.sharp,
2560
+ duration: theme.transitions.duration.enteringScreen,
2561
+ }),
2564
2562
  border: "none",
2565
2563
  overflow: "hidden",
2566
2564
  zIndex: 120,
2567
2565
  },
2568
2566
  drawerPaperClose: {
2569
2567
  overflowX: "hidden",
2570
- // transition: theme.transitions.create("width", {
2571
- // easing: theme.transitions.easing.sharp,
2572
- // duration: theme.transitions.duration.leavingScreen,
2573
- // }),
2574
- transition: ".5s ease",
2575
- width: drawerWidthClosed,
2568
+ transition: theme.transitions.create("width", {
2569
+ easing: theme.transitions.easing.sharp,
2570
+ duration: theme.transitions.duration.leavingScreen,
2571
+ }),
2572
+ width: theme.spacing(8),
2576
2573
  [theme.breakpoints.up("sm")]: {
2577
- width: drawerWidthClosed,
2574
+ width: theme.spacing(8),
2578
2575
  },
2579
2576
  },
2580
2577
  toolbarIcon: {
@@ -3195,7 +3192,7 @@ const SideBar = ({ authState, handleDrawerOpen, open, rootUrl, dashboardUrl = "d
3195
3192
  const SidebarWrapper = (props) => {
3196
3193
  const classes = useStyles();
3197
3194
  return (jsxs(Drawer, { variant: "permanent", classes: {
3198
- paper: clsx(classes.drawerPaper, !open && classes.drawerPaperClose),
3195
+ paper: clsx(classes.drawerPaper, !props.open && classes.drawerPaperClose),
3199
3196
  }, open: props.open, children: [jsx("div", { className: classes.toolbarIcon }), jsx(SideBar, { ...props })] }));
3200
3197
  };
3201
3198