@acuteinfo/common-screens 1.0.28 → 1.0.30

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,60 +2549,64 @@ const checkDateAndDisplay = (dateStr) => {
2549
2549
  };
2550
2550
 
2551
2551
  const drawerWidth = 227;
2552
- const useStyles = makeStyles((theme) => ({
2553
- drawerPaper: {
2554
- position: "relative",
2555
- whiteSpace: "nowrap",
2556
- width: drawerWidth,
2557
- background: theme.palette.info.dark,
2558
- transition: theme.transitions.create("width", {
2559
- easing: theme.transitions.easing.sharp,
2560
- duration: theme.transitions.duration.enteringScreen,
2561
- }),
2562
- border: "none",
2563
- overflow: "hidden",
2564
- zIndex: 120,
2565
- },
2566
- drawerPaperClose: {
2567
- overflowX: "hidden",
2568
- transition: theme.transitions.create("width", {
2569
- easing: theme.transitions.easing.sharp,
2570
- duration: theme.transitions.duration.leavingScreen,
2571
- }),
2572
- width: theme.spacing(8),
2573
- [theme.breakpoints.up("sm")]: {
2574
- width: theme.spacing(8),
2552
+ const drawerWidthClosed = 65;
2553
+ const useStyles = makeStyles((theme) => {
2554
+ return {
2555
+ drawerPaper: {
2556
+ position: "relative",
2557
+ whiteSpace: "nowrap",
2558
+ 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",
2564
+ border: "none",
2565
+ overflow: "hidden",
2566
+ zIndex: 120,
2575
2567
  },
2576
- },
2577
- toolbarIcon: {
2578
- display: "flex",
2579
- alignItems: "center",
2580
- zIndex: 9999,
2581
- ...theme.mixins.toolbar,
2582
- background: "var(--theme-color2)",
2583
- justifyContent: "center",
2584
- height: "80px",
2585
- // borderBottom: "1px dashed #949597",
2586
- },
2587
- hrCSS: {
2588
- zIndex: 9999,
2589
- },
2590
- buttonLink: {
2591
- backgroundColor: "transparent",
2592
- border: "none",
2593
- cursor: "pointer",
2594
- textDecoration: "underline",
2595
- display: "inline",
2596
- margin: 0,
2597
- padding: 0,
2598
- "&:focus": {
2599
- textDecoration: "none",
2568
+ drawerPaperClose: {
2569
+ 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,
2576
+ [theme.breakpoints.up("sm")]: {
2577
+ width: drawerWidthClosed,
2578
+ },
2600
2579
  },
2601
- "$:hover": {
2602
- textDecoration: "none",
2580
+ toolbarIcon: {
2581
+ display: "flex",
2582
+ alignItems: "center",
2583
+ zIndex: 9999,
2584
+ ...theme.mixins.toolbar,
2585
+ background: "var(--theme-color2)",
2586
+ justifyContent: "center",
2587
+ height: "80px",
2588
+ // borderBottom: "1px dashed #949597",
2603
2589
  },
2604
- },
2605
- }));
2590
+ hrCSS: {
2591
+ zIndex: 9999,
2592
+ },
2593
+ buttonLink: {
2594
+ backgroundColor: "transparent",
2595
+ border: "none",
2596
+ cursor: "pointer",
2597
+ textDecoration: "underline",
2598
+ display: "inline",
2599
+ margin: 0,
2600
+ padding: 0,
2601
+ "&:focus": {
2602
+ textDecoration: "none",
2603
+ },
2604
+ "$:hover": {
2605
+ textDecoration: "none",
2606
+ },
2607
+ },
2608
+ };
2609
+ });
2606
2610
  /*
2607
2611
 
2608
2612
  */