@learningpool/ui 1.6.0-beta.5 → 1.6.0-beta.6

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.
@@ -0,0 +1,31 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { Avatar, Button, ListItemButton, Typography } from '../../../index';
6
+ import { Drawer } from '@mui/material';
7
+ import { styled } from '@mui/material/styles';
8
+ import { motion } from 'framer-motion';
9
+ export var StyledSwipeableAvatar = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n .MuiPaper-root {\n color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
10
+ ? props.theme.palette.primary.contrastText
11
+ : props.theme.palette.text.primary; });
12
+ export var StyledBox = styled(motion.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n overflow: auto;\n padding: 15vh ", ";\n position: relative;\n"], ["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n overflow: auto;\n padding: 15vh ", ";\n position: relative;\n"])), function (props) { return props.theme.palette.mode === 'dark'
13
+ ? props.theme.palette.primary.dark
14
+ : '#E6EAF0'; }, function (props) { return props.theme.spacing(2); });
15
+ export var StyledBoxProfile = styled(motion.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-bottom: 2rem\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-bottom: 2rem\n"])));
16
+ export var StyledBoxProfileEdit = styled(motion.div)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
17
+ export var StyledAvatarName = styled(Typography)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n font-size: 1.75rem;\n"], ["\n color: ", ";\n font-size: 1.75rem;\n"])), function (props) { return props.theme.palette.mode === 'dark'
18
+ ? props.theme.palette.primary.contrastText
19
+ : props.theme.palette.text.primary; });
20
+ export var StyledOutlineButton = styled(Button)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-color: ", ";\n color: ", ";\n"], ["\n border-color: ", ";\n color: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
21
+ ? props.theme.palette.primary.contrastText
22
+ : props.theme.palette.primary.main; }, function (props) { return props.theme.palette.mode === 'dark'
23
+ ? props.theme.palette.primary.contrastText
24
+ : props.theme.palette.primary.main; });
25
+ export var StyledAvatar = styled(Avatar)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n font-size: 0.85rem;\n"], ["\n background-color: ", ";\n color: ", ";\n font-size: 0.85rem;\n"])), function (props) { return props.theme.palette.mode === 'dark'
26
+ ? props.theme.palette.primary.contrastText
27
+ : props.theme.palette.primary.main; }, function (props) { return props.theme.palette.mode === 'dark'
28
+ ? props.theme.palette.primary.main
29
+ : props.theme.palette.primary.contrastText; });
30
+ export var StyledListItemButton = styled(ListItemButton)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border-radius: 50px;\n white-space: normal;\n"], ["\n border-radius: 50px;\n white-space: normal;\n"])));
31
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export interface IVerticalNavigationItemProps {
3
3
  label: string;
4
- icon: React.ReactElement;
4
+ icon?: React.ReactElement;
5
5
  onClick?: any;
6
6
  isActive?: boolean;
7
7
  children?: IVerticalNavigationItemProps[];
@@ -4,7 +4,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { List, ListItem, ListItemButton as SSListItemButton, Paper, Typography } from '../../../../index';
6
6
  import { styled } from '@mui/material/styles';
7
- import { motion } from '../../../../utils/theme';
8
7
  import { NotchMiniSVG } from '../../../../assets/Images';
9
8
  export var DRAWER_WIDTH = {
10
9
  Collapsed: 60,
@@ -22,8 +21,8 @@ export var FlyoutMenuWrap = styled('div', {
22
21
  : '#E6EAF0'; }, function (props) { return props.theme.palette.mode === 'dark'
23
22
  ? props.theme.palette.primary.contrastText
24
23
  : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, function (props) { return props.open ? 1 : 0; }, function (props) { return props.open ? 'visible' : 'hidden'; }, function (props) { return props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(15deg) scale(.97)'; }, function (props) { return props.open
25
- ? "all 250ms ".concat(motion.easeInOut)
26
- : "all 150ms ".concat(motion.easeOut); });
24
+ ? "all\n ".concat(props.theme.transitions.duration.enteringScreen, "ms\n ").concat(props.theme.transitions.easing.easeOut)
25
+ : "all\n ".concat(props.theme.transitions.duration.leavingScreen, "ms\n ").concat(props.theme.transitions.easing.easeIn); });
27
26
  export var FlyoutMenuList = styled(List, {
28
27
  shouldForwardProp: function (prop) { return prop !== 'open'; }
29
28
  })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: ", ";\n pointer-events: ", ";\n"], ["\n padding: ", ";\n pointer-events: ", ";\n"])), function (props) { return props.theme.spacing(1, 2); }, function (props) { return props.open ? 'auto' : 'none'; });
@@ -31,17 +30,17 @@ export var FlyoutMenuHeader = styled(Typography)(templateObject_4 || (templateOb
31
30
  export var FlyoutMenuItem = styled(ListItem)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: 14px;\n padding: 0;\n white-space: normal;\n background: transparent !important;\n"], ["\n font-size: 14px;\n padding: 0;\n white-space: normal;\n background: transparent !important;\n"])));
32
31
  export var FlyoutMenuButton = styled(SSListItemButton, {
33
32
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'isExpanded'; }
34
- })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: transparent;\n color: ", ";\n border-radius: 5px;\n display: flex;\n flex-wrap: wrap;\n text-decoration: none;\n text-transform: none;\n transition: all 225ms ", " 0;\n padding: ", ";\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 5px;\n transition: all 180ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: rgba(0, 0, 0, .05);\n }\n\n :focus {\n background-color: ", ";\n }\n"], ["\n align-items: flex-start;\n background-color: transparent;\n color: ", ";\n border-radius: 5px;\n display: flex;\n flex-wrap: wrap;\n text-decoration: none;\n text-transform: none;\n transition: all 225ms ", " 0;\n padding: ", ";\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 5px;\n transition: all 180ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: rgba(0, 0, 0, .05);\n }\n\n :focus {\n background-color: ", ";\n }\n"
33
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: transparent;\n color: ", ";\n border-radius: 5px;\n display: flex;\n flex-wrap: wrap;\n text-decoration: none;\n text-transform: none;\n transition: all\n ", "ms\n ", ";\n padding: ", ";\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 5px;\n transition: all\n ", "ms\n ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: rgba(0, 0, 0, .05);\n }\n\n :focus {\n background-color: ", ";\n }\n"], ["\n align-items: flex-start;\n background-color: transparent;\n color: ", ";\n border-radius: 5px;\n display: flex;\n flex-wrap: wrap;\n text-decoration: none;\n text-transform: none;\n transition: all\n ", "ms\n ", ";\n padding: ", ";\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 5px;\n transition: all\n ", "ms\n ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: rgba(0, 0, 0, .05);\n }\n\n :focus {\n background-color: ", ";\n }\n"
35
34
  // FullHeight
36
35
  ])), function (props) {
37
36
  return props.theme.palette.mode === 'dark'
38
37
  ? props.theme.palette.primary.contrastText
39
38
  : props.theme.palette.getContrastText(props.theme.palette.background.paper);
40
- }, motion.easeInOut, function (props) { return props.theme.spacing(1, 2); }, function (props) {
39
+ }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.theme.spacing(1, 2); }, function (props) {
41
40
  return props.theme.palette.mode === 'dark'
42
41
  ? 'rgba(255, 255, 255, 0.5)'
43
42
  : props.theme.palette.primary.main;
44
- }, motion.easeInOut, function (props) {
43
+ }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) {
45
44
  return props.theme.palette.mode === 'dark'
46
45
  ? props.theme.palette.primary.dark
47
46
  : '#E6EAF0';
@@ -49,14 +48,18 @@ export var FlyoutMenuButton = styled(SSListItemButton, {
49
48
  // FullHeight
50
49
  export var FullHeightFlyoutMenuPaper = styled(Paper, {
51
50
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'open'; }
52
- })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background: transparent none;\n box-shadow: none;\n color: ", ";\n height: 100%;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n top: 0;\n z-index: 1;\n"], ["\n background: transparent none;\n box-shadow: none;\n color: ", ";\n height: 100%;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n top: 0;\n z-index: 1;\n"])), function (props) { return props.theme.palette.mode === 'dark'
51
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background: transparent none;\n box-shadow: none;\n color: ", ";\n height: 100%;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n top: 0;\n transition: ", ";\n z-index: 1;\n"], ["\n background: transparent none;\n box-shadow: none;\n color: ", ";\n height: 100%;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n top: 0;\n transition: ", ";\n z-index: 1;\n"])), function (props) { return props.theme.palette.mode === 'dark'
53
52
  ? props.theme.palette.primary.contrastText
54
- : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, function (props) { return props.isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded, "px") : "".concat(DRAWER_WIDTH.Collapsed - 3, "px"); }, function (props) { return props.open ? 'auto' : 'none'; });
53
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, function (props) { return props.isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded, "px") : "".concat(DRAWER_WIDTH.Collapsed - 3, "px"); }, function (props) { return props.open ? 'auto' : 'none'; }, function (props) { return props.open
54
+ ? "all\n ".concat(props.theme.transitions.duration.enteringScreen, "ms\n ").concat(props.theme.transitions.easing.easeOut)
55
+ : "all\n ".concat(props.theme.transitions.duration.leavingScreen, "ms\n ").concat(props.theme.transitions.easing.easeIn); });
55
56
  export var FullHeightFlyoutMenuWrapper = styled('div', {
56
57
  shouldForwardProp: function (prop) { return prop !== 'open'; }
57
58
  })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n box-shadow: 35px 0 15px 0 rgb(0 0 0 / 10%);\n height: 100%;\n max-width: 300px;\n min-width: 300px;\n opacity: ", ";\n pointer-events: ", ";\n transform: ", ";\n transform-origin: left center;\n transition: ", ";\n visibility: ", ";\n width: ", ";\n"], ["\n background-color: ", ";\n box-shadow: 35px 0 15px 0 rgb(0 0 0 / 10%);\n height: 100%;\n max-width: 300px;\n min-width: 300px;\n opacity: ", ";\n pointer-events: ", ";\n transform: ", ";\n transform-origin: left center;\n transition: ", ";\n visibility: ", ";\n width: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
58
59
  ? props.theme.palette.primary.main
59
- : props.theme.palette.background.paper; }, function (props) { return props.open ? 1 : 0; }, function (props) { return props.open ? 'auto' : 'none'; }, function (props) { return props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(8deg) scale(.98)'; }, function (props) { return props.open ? "all 150ms ".concat(motion.easeInOut) : "all 100ms ".concat(motion.easeOut); }, function (props) { return props.open ? 'visible' : 'hidden'; }, function (props) { return props.open ? '300' : 0; });
60
+ : props.theme.palette.background.paper; }, function (props) { return props.open ? 1 : 0; }, function (props) { return props.open ? 'auto' : 'none'; }, function (props) { return props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(8deg) scale(.98)'; }, function (props) { return props.open
61
+ ? "all\n ".concat(props.theme.transitions.duration.enteringScreen, "ms\n ").concat(props.theme.transitions.easing.easeOut)
62
+ : "all\n ".concat(props.theme.transitions.duration.leavingScreen, "ms\n ").concat(props.theme.transitions.easing.easeIn); }, function (props) { return props.open ? 'visible' : 'hidden'; }, function (props) { return props.open ? '300' : 0; });
60
63
  export var FlyoutNotchMask = styled('div')(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n content: '';\n display: block;\n height: 80px;\n left: -40px;\n position: absolute;\n top: 65px;\n width: 80px;\n z-index: -1;\n"], ["\n background-color: ", ";\n content: '';\n display: block;\n height: 80px;\n left: -40px;\n position: absolute;\n top: 65px;\n width: 80px;\n z-index: -1;\n"])), function (props) { return props.theme.palette.mode === 'dark'
61
64
  ? props.theme.palette.primary.dark
62
65
  : '#E6EAF0'; });
@@ -4,7 +4,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { ListItem as SSListItem, ListItemButton as SSListItemButton, ListItemText as SSListItemText, ListItemIcon as SSListItemIcon } from '../../../../index';
6
6
  import { styled } from '@mui/material/styles';
7
- import { motion } from '../../../../utils/theme';
8
7
  import { ArrowRight } from '@mui/icons-material';
9
8
  export var DRAWER_WIDTH = {
10
9
  Collapsed: 60,
@@ -16,12 +15,12 @@ var ICON = {
16
15
  };
17
16
  export var ListItem = styled(SSListItem, {
18
17
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
19
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n color: ", ";\n min-height: ", "px;\n padding: 0 !important;\n transition: width 225ms ", " ", ";\n width: ", "px;\n\n .MuiListItemIcon-root: {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root .MuiTypography-root: {\n white-space: normal;\n }\n"], ["\n align-items: flex-start;\n color: ", ";\n min-height: ", "px;\n padding: 0 !important;\n transition: width 225ms ", " ", ";\n width: ", "px;\n\n .MuiListItemIcon-root: {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root .MuiTypography-root: {\n white-space: normal;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
18
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n color: ", ";\n min-height: ", "px;\n padding: 0 !important;\n transition: width\n ", "ms\n ", "\n ", ";\n width: ", "px;\n\n .MuiListItemIcon-root: {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root .MuiTypography-root: {\n white-space: normal;\n }\n"], ["\n align-items: flex-start;\n color: ", ";\n min-height: ", "px;\n padding: 0 !important;\n transition: width\n ", "ms\n ", "\n ", ";\n width: ", "px;\n\n .MuiListItemIcon-root: {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root .MuiTypography-root: {\n white-space: normal;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
20
19
  ? props.theme.palette.primary.contrastText
21
- : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, ICON.Height + 8, motion.easeInOut, function (props) { return props.isDrawerOpen ? '0ms' : '250ms'; }, DRAWER_WIDTH.Expanded, function (props) { return props.theme.spacing(0.5); });
20
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, ICON.Height + 8, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.isDrawerOpen ? '0ms' : '250ms'; }, DRAWER_WIDTH.Expanded, function (props) { return props.theme.spacing(0.5); });
22
21
  export var ListItemButton = styled(SSListItemButton, {
23
22
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'isExpanded'; }
24
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-start !important;\n background-color: ", ";\n color: ", ";\n display: flex;\n flex-wrap: wrap;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-transform: none;\n transition: all 225ms ", " 0ms !important;\n padding: 0 ", " 0 0;\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 3px;\n transition: all 180ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus-visible:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: ", ";\n }\n\n :focus-visible {\n background-color: ", ";\n }\n\n :active {\n background-color: transparent\n }\n"], ["\n align-items: flex-start !important;\n background-color: ", ";\n color: ", ";\n display: flex;\n flex-wrap: wrap;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-transform: none;\n transition: all 225ms ", " 0ms !important;\n padding: 0 ", " 0 0;\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 3px;\n transition: all 180ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus-visible:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: ", ";\n }\n\n :focus-visible {\n background-color: ", ";\n }\n\n :active {\n background-color: transparent\n }\n"])), function (props) {
23
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-start !important;\n background-color: ", ";\n color: ", ";\n display: flex;\n flex-wrap: wrap;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-transform: none;\n transition: all\n ", "ms\n ", "\n 0ms !important;\n padding: 0 ", " 0 0;\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 3px;\n transition: all\n ", "ms\n ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus-visible:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: ", ";\n }\n\n :focus-visible {\n background-color: ", ";\n }\n\n :active {\n background-color: transparent\n }\n"], ["\n align-items: flex-start !important;\n background-color: ", ";\n color: ", ";\n display: flex;\n flex-wrap: wrap;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-transform: none;\n transition: all\n ", "ms\n ", "\n 0ms !important;\n padding: 0 ", " 0 0;\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 3px;\n transition: all\n ", "ms\n ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus-visible:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: ", ";\n }\n\n :focus-visible {\n background-color: ", ";\n }\n\n :active {\n background-color: transparent\n }\n"])), function (props) {
25
24
  return props.theme.palette.mode === 'dark'
26
25
  ? props.theme.palette.primary.main
27
26
  : props.theme.palette.background.paper;
@@ -33,11 +32,11 @@ export var ListItemButton = styled(SSListItemButton, {
33
32
  ? props.isExpanded
34
33
  ? 'auto'
35
34
  : '200px'
36
- : "".concat(ICON.Height + 8, "px"); }, motion.easeInOut, function (props) { return props.theme.spacing(2); }, function (props) {
35
+ : "".concat(ICON.Height + 8, "px"); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.theme.spacing(2); }, function (props) {
37
36
  return props.theme.palette.mode === 'dark'
38
37
  ? 'rgba(255, 255, 255, 0.5)'
39
38
  : props.theme.palette.primary.main;
40
- }, motion.easeInOut, function (props) {
39
+ }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) {
41
40
  return props.theme.palette.mode === 'dark'
42
41
  ? props.theme.palette.primary.main
43
42
  : props.theme.palette.background.paper;
@@ -48,24 +47,24 @@ export var ListItemButton = styled(SSListItemButton, {
48
47
  });
49
48
  export var ListItemButtonChild = styled(SSListItemButton, {
50
49
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
51
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n min-height: none;\n max-height: none;\n text-decoration: none;\n text-transform: none;\n transition: max-height 225ms ", " 0ms !important;\n padding: 0;\n width: 100%;\n\n .MuiTypography-root: {\n font-size: .9rem;\n opacity: ", ";\n transition: opacity 225ms ", " ", "s !important;\n }\n\n .MuiListItemText-root: {\n padding: .25rem .5rem;\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n min-height: none;\n max-height: none;\n text-decoration: none;\n text-transform: none;\n transition: max-height 225ms ", " 0ms !important;\n padding: 0;\n width: 100%;\n\n .MuiTypography-root: {\n font-size: .9rem;\n opacity: ", ";\n transition: opacity 225ms ", " ", "s !important;\n }\n\n .MuiListItemText-root: {\n padding: .25rem .5rem;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
50
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n display: flex;\n min-height: none;\n max-height: none;\n text-decoration: none;\n text-transform: none;\n transition: max-height\n ", "ms\n ", "\n 0ms !important;\n padding: 0;\n width: 100%;\n\n .MuiTypography-root: {\n font-size: .9rem;\n opacity: ", ";\n transition: opacity\n ", "ms\n ", "\n ", "s !important;\n }\n\n .MuiListItemText-root: {\n padding: .25rem .5rem;\n }\n"], ["\n align-items: center;\n color: ", ";\n display: flex;\n min-height: none;\n max-height: none;\n text-decoration: none;\n text-transform: none;\n transition: max-height\n ", "ms\n ", "\n 0ms !important;\n padding: 0;\n width: 100%;\n\n .MuiTypography-root: {\n font-size: .9rem;\n opacity: ", ";\n transition: opacity\n ", "ms\n ", "\n ", "s !important;\n }\n\n .MuiListItemText-root: {\n padding: .25rem .5rem;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
52
51
  ? 'rgba(255, 255, 255, 0.75)'
53
- : 'rgba(0, 0, 0, 0.75)'; }, motion.easeInOut, function (props) { return props.isDrawerOpen ? 1 : 0; }, motion.easeInOut, function (props) { return props.index !== undefined ? props.index / 50 : 0.02; });
52
+ : 'rgba(0, 0, 0, 0.75)'; }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.isDrawerOpen ? 1 : 0; }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.index !== undefined ? props.index / 50 : 0.02; });
54
53
  export var ListItemAvatar = styled(ListItemButton, {
55
54
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
56
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n min-height: 52px;\n max-height: ", ";\n transition: max-height 225ms ", " 0ms !important;\n\n .MuiListItemIcon-root {\n justify-content: center;\n margin: 0;\n min-width: 0;\n }\n\n .MuiAvatar-root {\n height: 32px;\n width: 32px;\n }\n"], ["\n align-items: center;\n min-height: 52px;\n max-height: ", ";\n transition: max-height 225ms ", " 0ms !important;\n\n .MuiListItemIcon-root {\n justify-content: center;\n margin: 0;\n min-width: 0;\n }\n\n .MuiAvatar-root {\n height: 32px;\n width: 32px;\n }\n"])), function (props) { return props.isDrawerOpen
55
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n min-height: 52px;\n max-height: ", ";\n transition: max-height\n ", "ms\n ", "\n 0ms !important;\n\n .MuiListItemIcon-root {\n justify-content: center;\n margin: 0;\n min-width: 0;\n }\n\n .MuiAvatar-root {\n height: 32px;\n width: 32px;\n }\n"], ["\n align-items: center;\n min-height: 52px;\n max-height: ", ";\n transition: max-height\n ", "ms\n ", "\n 0ms !important;\n\n .MuiListItemIcon-root {\n justify-content: center;\n margin: 0;\n min-width: 0;\n }\n\n .MuiAvatar-root {\n height: 32px;\n width: 32px;\n }\n"])), function (props) { return props.isDrawerOpen
57
56
  ? '200px'
58
- : "".concat(ICON.Height + 8, "px"); }, motion.easeInOut);
57
+ : "".concat(ICON.Height + 8, "px"); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; });
59
58
  export var ListItemIcon = styled(SSListItemIcon)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n color: ", ";\n height: ", "px;\n justify-content: center;\n margin-top: 0 !important;\n min-width: ", ";\n width: ", ";\n\n [theme.breakpoints.up('sm')] {\n min-width: ", "px;\n width: ", "px;\n }\n"], ["\n align-items: center;\n color: ", ";\n height: ", "px;\n justify-content: center;\n margin-top: 0 !important;\n min-width: ", ";\n width: ", ";\n\n [theme.breakpoints.up('sm')] {\n min-width: ", "px;\n width: ", "px;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
60
59
  ? props.theme.palette.primary.contrastText
61
60
  : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, ICON.Height + 8, ICON.Width, ICON.Width, ICON.Width + 8, ICON.Width + 8);
62
61
  export var ListItemText = styled(SSListItemText, {
63
62
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
64
- })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n max-width: 210px;\n opacity: ", ";\n padding: 0.5rem;\n transition: opacity 225ms ", " ", "s !important;\n white-space: normal;\n width: auto;\n"], ["\n max-width: 210px;\n opacity: ", ";\n padding: 0.5rem;\n transition: opacity 225ms ", " ", "s !important;\n white-space: normal;\n width: auto;\n"])), function (props) { return props.isDrawerOpen ? 1 : 0; }, motion.easeInOut, function (props) { return props.index !== undefined ? props.index / 50 : 0.02; });
63
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n max-width: 210px;\n opacity: ", ";\n padding: 0.5rem;\n transition: opacity\n ", "ms\n ", "\n ", "s !important;\n white-space: normal;\n width: auto;\n"], ["\n max-width: 210px;\n opacity: ", ";\n padding: 0.5rem;\n transition: opacity\n ", "ms\n ", "\n ", "s !important;\n white-space: normal;\n width: auto;\n"])), function (props) { return props.isDrawerOpen ? 1 : 0; }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.index !== undefined ? props.index / 50 : 0.02; });
65
64
  export var StyledExpandLess = styled(ArrowRight, {
66
65
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
67
- })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity 225ms ", " 200ms !important;\n"], ["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity 225ms ", " 200ms !important;\n"])), function (props) { return props.isDrawerOpen ? '20px' : '-40px'; }, function (props) { return props.theme.spacing(1); }, motion.easeInOut);
66
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity\n ", "ms\n ", "\n 200ms !important;\n"], ["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity\n ", "ms\n ", "\n 200ms !important;\n"])), function (props) { return props.isDrawerOpen ? '20px' : '-40px'; }, function (props) { return props.theme.spacing(1); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; });
68
67
  export var StyledExpandMore = styled(ArrowRight, {
69
68
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
70
- })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity 225ms ", " 200ms !important;\n"], ["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity 225ms ", " 200ms !important;\n"])), function (props) { return props.isDrawerOpen ? '20px' : '-40px'; }, function (props) { return props.theme.spacing(1); }, motion.easeInOut);
69
+ })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity\n ", "ms\n ", "\n 200ms !important;\n"], ["\n align-self: center;\n font-size: 1.25rem;\n left: ", ";\n margin-right: ", ";\n opacity: 1;\n position: relative;\n transition: opacity\n ", "ms\n ", "\n 200ms !important;\n"])), function (props) { return props.isDrawerOpen ? '20px' : '-40px'; }, function (props) { return props.theme.spacing(1); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; });
71
70
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -0,0 +1,141 @@
1
+ export declare const motionParent: {
2
+ open: {
3
+ transition: {
4
+ staggerChildren: number;
5
+ delayChildren: number;
6
+ };
7
+ };
8
+ closed: {
9
+ transition: {
10
+ staggerChildren: number;
11
+ staggerDirection: number;
12
+ };
13
+ };
14
+ };
15
+ export declare const motionFadeIn: {
16
+ open: {
17
+ opacity: number;
18
+ };
19
+ closed: {
20
+ opacity: number;
21
+ };
22
+ };
23
+ export declare const motionFadeInUp: {
24
+ open: {
25
+ y: number;
26
+ opacity: number;
27
+ transition: {
28
+ y: {
29
+ stiffness: number;
30
+ velocity: number;
31
+ };
32
+ };
33
+ };
34
+ closed: {
35
+ y: number;
36
+ opacity: number;
37
+ transition: {
38
+ y: {
39
+ stiffness: number;
40
+ };
41
+ };
42
+ };
43
+ };
44
+ export declare const motionWhileHover: {
45
+ scale: number;
46
+ };
47
+ export declare const motionWhileTap: {
48
+ scale: number;
49
+ };
50
+ export declare const variantsLogo: {
51
+ open: {
52
+ opacity: number;
53
+ };
54
+ closed: {
55
+ opacity: number;
56
+ };
57
+ };
58
+ export declare const variantsUl: {
59
+ open: {
60
+ transition: {
61
+ staggerChildren: number;
62
+ delayChildren: number;
63
+ };
64
+ };
65
+ closed: {
66
+ transition: {
67
+ staggerChildren: number;
68
+ staggerDirection: number;
69
+ };
70
+ };
71
+ };
72
+ export declare const variantsLi: {
73
+ open: {
74
+ y: number;
75
+ opacity: number;
76
+ transition: {
77
+ y: {
78
+ stiffness: number;
79
+ velocity: number;
80
+ };
81
+ };
82
+ };
83
+ closed: {
84
+ y: number;
85
+ opacity: number;
86
+ transition: {
87
+ y: {
88
+ stiffness: number;
89
+ };
90
+ };
91
+ };
92
+ };
93
+ export declare const variantsSecondaryUl: {
94
+ open: {
95
+ transition: {
96
+ staggerChildren: number;
97
+ delayChildren: number;
98
+ };
99
+ };
100
+ closed: {
101
+ transition: {
102
+ staggerChildren: number;
103
+ staggerDirection: number;
104
+ };
105
+ };
106
+ };
107
+ export declare const variantsSecondaryLi: {
108
+ open: {
109
+ y: number;
110
+ opacity: number;
111
+ transition: {
112
+ y: {
113
+ stiffness: number;
114
+ velocity: number;
115
+ };
116
+ };
117
+ };
118
+ closed: {
119
+ y: number;
120
+ opacity: number;
121
+ transition: {
122
+ y: {
123
+ stiffness: number;
124
+ };
125
+ };
126
+ };
127
+ };
128
+ export declare const variantsDivider: {
129
+ open: {
130
+ scaleX: number;
131
+ opacity: number;
132
+ transition: {
133
+ type: string;
134
+ delay: number;
135
+ };
136
+ };
137
+ closed: {
138
+ scaleX: number;
139
+ opacity: number;
140
+ };
141
+ };
@@ -0,0 +1,109 @@
1
+ export var motionParent = {
2
+ open: {
3
+ transition: { staggerChildren: 0.07, delayChildren: 0 }
4
+ },
5
+ closed: {
6
+ transition: { staggerChildren: 0.05, staggerDirection: -1 }
7
+ }
8
+ };
9
+ export var motionFadeIn = {
10
+ open: {
11
+ opacity: 1
12
+ },
13
+ closed: {
14
+ opacity: 0
15
+ }
16
+ };
17
+ export var motionFadeInUp = {
18
+ open: {
19
+ y: 0,
20
+ opacity: 1,
21
+ transition: {
22
+ y: { stiffness: 1000, velocity: -20 }
23
+ }
24
+ },
25
+ closed: {
26
+ y: 10,
27
+ opacity: 0,
28
+ transition: {
29
+ y: { stiffness: 1000 }
30
+ }
31
+ }
32
+ };
33
+ export var motionWhileHover = {
34
+ scale: 1.02
35
+ };
36
+ export var motionWhileTap = {
37
+ scale: 0.95
38
+ };
39
+ // Old ones...
40
+ export var variantsLogo = {
41
+ open: {
42
+ opacity: 1
43
+ },
44
+ closed: {
45
+ opacity: 0
46
+ }
47
+ };
48
+ export var variantsUl = {
49
+ open: {
50
+ transition: { staggerChildren: 0.07, delayChildren: 0.2 }
51
+ },
52
+ closed: {
53
+ transition: { staggerChildren: 0.05, staggerDirection: -1 }
54
+ }
55
+ };
56
+ export var variantsLi = {
57
+ open: {
58
+ y: 0,
59
+ opacity: 1,
60
+ transition: {
61
+ y: { stiffness: 1000, velocity: -20 }
62
+ }
63
+ },
64
+ closed: {
65
+ y: 10,
66
+ opacity: 0,
67
+ transition: {
68
+ y: { stiffness: 1000 }
69
+ }
70
+ }
71
+ };
72
+ export var variantsSecondaryUl = {
73
+ open: {
74
+ transition: { staggerChildren: 0.05, delayChildren: 0.5 }
75
+ },
76
+ closed: {
77
+ transition: { staggerChildren: 0.05, staggerDirection: -1 }
78
+ }
79
+ };
80
+ export var variantsSecondaryLi = {
81
+ open: {
82
+ y: 0,
83
+ opacity: 1,
84
+ transition: {
85
+ y: { stiffness: 500, velocity: -10 }
86
+ }
87
+ },
88
+ closed: {
89
+ y: 10,
90
+ opacity: 0,
91
+ transition: {
92
+ y: { stiffness: 500 }
93
+ }
94
+ }
95
+ };
96
+ export var variantsDivider = {
97
+ open: {
98
+ scaleX: 1,
99
+ opacity: 1,
100
+ transition: {
101
+ type: 'spring',
102
+ delay: 0.5
103
+ }
104
+ },
105
+ closed: {
106
+ scaleX: 0.25,
107
+ opacity: 0
108
+ }
109
+ };
@@ -5,7 +5,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
5
5
  import Drawer from '@mui/material/Drawer';
6
6
  import { Box, IconButton } from '../../../index';
7
7
  import { styled } from '@mui/material/styles';
8
- import { motion } from '../../../utils/theme';
9
8
  export var DRAWER_WIDTH = {
10
9
  Collapsed: 60,
11
10
  Expanded: 300
@@ -16,25 +15,27 @@ var ICON = {
16
15
  };
17
16
  export var DrawerHeader = styled('div', {
18
17
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
19
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex: 1 auto;\n justify-content: flex-start;\n overflow: hidden;\n min-height: 56px !important;\n padding: ", " 10px 0;\n /* necessary for content to be below app bar */\n /* ...props.theme.mixins.toolbar */\n transition: width 225ms ", " ", ";\n\n /* Testing secondary nav fix ups */\n width: ", ";\n\n @media (min-width: ", ") {\n min-height: 64px !important;\n width: ", ";\n };\n\n .MuiListItemIcon-root {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root {\n align-items: center !important;\n color: ", ";\n display: flex;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-dransform: none;\n transition: max-height 225ms ", " 0ms !important;\n padding: 0;\n width: 100%;\n\n [theme.breakpoints.up('sm')] {\n max-height: ", ";\n }\n }\n\n .MuiListItemText-root .MuiTypography-root {\n white-space: normal;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex: 1 auto;\n justify-content: flex-start;\n overflow: hidden;\n min-height: 56px !important;\n padding: ", " 10px 0;\n /* necessary for content to be below app bar */\n /* ...props.theme.mixins.toolbar */\n transition: width 225ms ", " ", ";\n\n /* Testing secondary nav fix ups */\n width: ", ";\n\n @media (min-width: ", ") {\n min-height: 64px !important;\n width: ", ";\n };\n\n .MuiListItemIcon-root {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root {\n align-items: center !important;\n color: ", ";\n display: flex;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-dransform: none;\n transition: max-height 225ms ", " 0ms !important;\n padding: 0;\n width: 100%;\n\n [theme.breakpoints.up('sm')] {\n max-height: ", ";\n }\n }\n\n .MuiListItemText-root .MuiTypography-root {\n white-space: normal;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
18
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex: 1 auto;\n justify-content: flex-start;\n overflow: hidden;\n min-height: 56px !important;\n padding: ", " 10px 0;\n transition: ", "\n 250ms;\n\n /* Testing secondary nav fix ups */\n width: ", ";\n\n @media (min-width: ", ") {\n min-height: 64px !important;\n width: ", ";\n };\n\n .MuiListItemIcon-root {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root {\n align-items: center !important;\n color: ", ";\n display: flex;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-dransform: none;\n transition: max-height\n ", "ms\n ", ";\n padding: 0;\n width: 100%;\n\n [theme.breakpoints.up('sm')] {\n max-height: ", ";\n }\n }\n\n .MuiListItemText-root .MuiTypography-root {\n white-space: normal;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex: 1 auto;\n justify-content: flex-start;\n overflow: hidden;\n min-height: 56px !important;\n padding: ", " 10px 0;\n transition: ", "\n 250ms;\n\n /* Testing secondary nav fix ups */\n width: ", ";\n\n @media (min-width: ", ") {\n min-height: 64px !important;\n width: ", ";\n };\n\n .MuiListItemIcon-root {\n margin: ", " 0 0;\n }\n\n .MuiListItemText-root {\n align-items: center !important;\n color: ", ";\n display: flex;\n min-height: ", "px;\n max-height: ", ";\n text-decoration: none;\n text-dransform: none;\n transition: max-height\n ", "ms\n ", ";\n padding: 0;\n width: 100%;\n\n [theme.breakpoints.up('sm')] {\n max-height: ", ";\n }\n }\n\n .MuiListItemText-root .MuiTypography-root {\n white-space: normal;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
20
19
  ? props.theme.palette.primary.main
21
- : props.theme.palette.background.paper; }, function (props) { return props.theme.spacing(1); }, motion.easeInOut, function (props) { return props.isDrawerOpen ? 0 : '250ms'; }, function (props) { return props.isDrawerOpen ? DRAWER_WIDTH.Expanded : "calc(".concat(props.theme.spacing(7), " + 1px)"); }, function (props) { return props.theme.breakpoints.values.sm; }, function (props) { return props.isDrawerOpen ? DRAWER_WIDTH.Expanded : "calc(".concat(props.theme.spacing(8), " + 1px)"); }, function (props) { return props.theme.spacing(0.5); }, function (props) {
20
+ : props.theme.palette.background.paper; }, function (props) { return props.theme.spacing(1); }, function (props) { return props.isDrawerOpen
21
+ ? "width\n ".concat(props.theme.transitions.duration.enteringScreen, "ms\n ").concat(props.theme.transitions.easing.easeOut, "\n 0")
22
+ : "width\n ".concat(props.theme.transitions.duration.leavingScreen, "ms\n ").concat(props.theme.transitions.easing.easeIn); }, function (props) { return props.isDrawerOpen ? DRAWER_WIDTH.Expanded : "calc(".concat(props.theme.spacing(7), " + 1px)"); }, function (props) { return props.theme.breakpoints.values.sm; }, function (props) { return props.isDrawerOpen ? DRAWER_WIDTH.Expanded : "calc(".concat(props.theme.spacing(8), " + 1px)"); }, function (props) { return props.theme.spacing(0.5); }, function (props) {
22
23
  return props.theme.palette.mode === 'dark'
23
24
  ? props.theme.palette.primary.contrastText
24
25
  : props.theme.palette.getContrastText(props.theme.palette.background.paper);
25
- }, ICON.Height + 8, function (props) { return props.isDrawerOpen ? '200px' : "".concat(ICON.Height + 8, "px"); }, motion.easeInOut, function (props) { return props.isDrawerOpen ? '200px' : "".concat(ICON.Height + 8, "px"); });
26
- export var DrawerToggle = styled(IconButton)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: transparent;\n height: 44px;\n padding: 0 ", " !important;\n position: absolute;\n transform: translate(22px, calc(50% - 5.5px));\n transition: all 225ms ", " 0ms !important;\n width: 44px;\n z-index: 10;\n\n @media (min-width: ", ") {\n padding: 0 ", " !important;\n }\n"], ["\n background: transparent;\n height: 44px;\n padding: 0 ", " !important;\n position: absolute;\n transform: translate(22px, calc(50% - 5.5px));\n transition: all 225ms ", " 0ms !important;\n width: 44px;\n z-index: 10;\n\n @media (min-width: ", ") {\n padding: 0 ", " !important;\n }\n"])), function (props) { return props.theme.spacing(2); }, motion.easeInOut, function (props) { return props.theme.breakpoints.values.sm; }, function (props) { return props.theme.spacing(2.5); });
26
+ }, ICON.Height + 8, function (props) { return props.isDrawerOpen ? '200px' : "".concat(ICON.Height + 8, "px"); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.isDrawerOpen ? '200px' : "".concat(ICON.Height + 8, "px"); });
27
+ export var DrawerToggle = styled(IconButton)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: transparent;\n height: 44px;\n padding: 0 ", " !important;\n position: absolute;\n transform: translate(22px, calc(50% - 5.5px));\n transition: all\n ", "ms\n ", ";\n width: 44px;\n z-index: 10;\n\n @media (min-width: ", ") {\n padding: 0 ", " !important;\n }\n"], ["\n background: transparent;\n height: 44px;\n padding: 0 ", " !important;\n position: absolute;\n transform: translate(22px, calc(50% - 5.5px));\n transition: all\n ", "ms\n ", ";\n width: 44px;\n z-index: 10;\n\n @media (min-width: ", ") {\n padding: 0 ", " !important;\n }\n"])), function (props) { return props.theme.spacing(2); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.theme.breakpoints.values.sm; }, function (props) { return props.theme.spacing(2.5); });
27
28
  export var DrawerToggleHitboxContent = styled('span')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 50%;\n box-shadow: 5px 0 15px 0 rgb(0 0 0 / 10%);\n box-sizing: content-box;\n height: 1.75rem;\n padding: ", ";\n width: 1.75rem;\n"], ["\n background-color: ", ";\n border-radius: 50%;\n box-shadow: 5px 0 15px 0 rgb(0 0 0 / 10%);\n box-sizing: content-box;\n height: 1.75rem;\n padding: ", ";\n width: 1.75rem;\n"])), function (props) { return props.theme.palette.mode === 'dark'
28
29
  ? props.theme.palette.primary.main
29
30
  : props.theme.palette.background.paper; }, function (props) { return props.theme.spacing(0.5); });
30
31
  export var StyledAside = styled('aside')(templateObject_4 || (templateObject_4 = __makeTemplateObject([""], [""])));
31
- export var StyledNav = styled('nav')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n flex: 1 auto;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: -1px;\n overflow-x: hidden;\n overflow-y: auto;\n\n // Firefox and future scrollbars\n * & {\n scrollbar-width: thin;\n scrollbar-color: ", ";\n transition: backgroundColor 225ms ", ";\n }\n\n * &:hover {\n scrollbar-color: ", ";\n }\n\n // Webkit and fall back scrollbars\n ::-webkit-scrollbar {\n width: 8px;\n }\n\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 55px;\n transition: background-color 225ms ", ";\n }\n\n ::-webkit-scrollbar-thumb:hover {\n background-color: ", ";\n }\n"], ["\n background-color: ", ";\n display: flex;\n flex: 1 auto;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: -1px;\n overflow-x: hidden;\n overflow-y: auto;\n\n // Firefox and future scrollbars\n * & {\n scrollbar-width: thin;\n scrollbar-color: ", ";\n transition: backgroundColor 225ms ", ";\n }\n\n * &:hover {\n scrollbar-color: ", ";\n }\n\n // Webkit and fall back scrollbars\n ::-webkit-scrollbar {\n width: 8px;\n }\n\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 55px;\n transition: background-color 225ms ", ";\n }\n\n ::-webkit-scrollbar-thumb:hover {\n background-color: ", ";\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
32
+ export var StyledNav = styled('nav')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n flex: 1 auto;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: -1px;\n overflow-x: hidden;\n overflow-y: auto;\n\n // Firefox and future scrollbars\n * & {\n scrollbar-width: thin;\n scrollbar-color: ", ";\n transition: backgroundColor\n ", "ms\n ", ";\n }\n\n * &:hover {\n scrollbar-color: ", ";\n }\n\n // Webkit and fall back scrollbars\n ::-webkit-scrollbar {\n width: 8px;\n }\n\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 55px;\n transition: backgroundColor\n ", "ms\n ", ";\n }\n\n ::-webkit-scrollbar-thumb:hover {\n background-color: ", ";\n }\n"], ["\n background-color: ", ";\n display: flex;\n flex: 1 auto;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: -1px;\n overflow-x: hidden;\n overflow-y: auto;\n\n // Firefox and future scrollbars\n * & {\n scrollbar-width: thin;\n scrollbar-color: ", ";\n transition: backgroundColor\n ", "ms\n ", ";\n }\n\n * &:hover {\n scrollbar-color: ", ";\n }\n\n // Webkit and fall back scrollbars\n ::-webkit-scrollbar {\n width: 8px;\n }\n\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 55px;\n transition: backgroundColor\n ", "ms\n ", ";\n }\n\n ::-webkit-scrollbar-thumb:hover {\n background-color: ", ";\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
32
33
  ? props.theme.palette.primary.main
33
34
  : props.theme.palette.background.paper; }, function (props) {
34
35
  return props.theme.palette.mode === 'dark'
35
36
  ? 'rgba(255, 255, 255, 0.12) transparent'
36
37
  : 'rgba(0, 0, 0, 0.12) transparent';
37
- }, motion.easeIn, function (props) {
38
+ }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) {
38
39
  return props.theme.palette.mode === 'dark'
39
40
  ? 'rgba(255, 255, 255, 0.24) transparent'
40
41
  : 'rgba(0, 0, 0, 0.24) transparent';
@@ -42,7 +43,7 @@ export var StyledNav = styled('nav')(templateObject_5 || (templateObject_5 = __m
42
43
  return props.theme.palette.mode === 'dark'
43
44
  ? 'rgba(255, 255, 255, 0.12)'
44
45
  : 'rgba(0, 0, 0, 0.12)';
45
- }, motion.easeIn, function (props) {
46
+ }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) {
46
47
  return props.theme.palette.mode === 'dark'
47
48
  ? 'rgba(255, 255, 255, 0.24)'
48
49
  : 'rgba(0, 0, 0, 0.24)';
@@ -52,23 +53,23 @@ export var StyledNavSecondary = styled('nav')(templateObject_6 || (templateObjec
52
53
  : props.theme.palette.background.paper; });
53
54
  export var StyledDivider = styled('div', {
54
55
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
55
- })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n\n :before {\n background-color: ", ";\n border-radius: 55px;\n content: '';\n display: block;\n height: 2px;\n margin: auto;\n transition: all 225ms ", ";\n width: 66%;\n }\n"], ["\n background-color: ", ";\n\n :before {\n background-color: ", ";\n border-radius: 55px;\n content: '';\n display: block;\n height: 2px;\n margin: auto;\n transition: all 225ms ", ";\n width: 66%;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
56
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n\n :before {\n background-color: ", ";\n border-radius: 55px;\n content: '';\n display: block;\n height: 2px;\n margin: auto;\n transition: all\n ", "ms\n ", ";\n width: 66%;\n }\n"], ["\n background-color: ", ";\n\n :before {\n background-color: ", ";\n border-radius: 55px;\n content: '';\n display: block;\n height: 2px;\n margin: auto;\n transition: all\n ", "ms\n ", ";\n width: 66%;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
56
57
  ? props.theme.palette.primary.main
57
58
  : props.theme.palette.background.paper; }, function (props) {
58
59
  return props.theme.palette.mode === 'dark'
59
60
  ? 'rgba(255, 255, 255, 0.075)'
60
61
  : 'rgba(0, 0, 0, 0.075)';
61
- }, motion.easeIn);
62
+ }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; });
62
63
  export var DrawerShadow = styled(Box, {
63
64
  shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
64
- })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background: rgba(0,0,0,0.125);\n content: '';\n display: block;\n filter: blur(13px);\n height: 100%;\n left: ", ";\n position: fixed;\n top: 0;\n transition: left 225ms ", " 0ms;\n visibility: visible;\n width: 40px;\n\n @media (min-width: ", ") {\n left: ", ";\n }\n"], ["\n background: rgba(0,0,0,0.125);\n content: '';\n display: block;\n filter: blur(13px);\n height: 100%;\n left: ", ";\n position: fixed;\n top: 0;\n transition: left 225ms ", " 0ms;\n visibility: visible;\n width: 40px;\n\n @media (min-width: ", ") {\n left: ", ";\n }\n"])), function (props) { return props.isDrawerOpen
65
+ })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background: rgba(0,0,0,0.125);\n content: '';\n display: block;\n filter: blur(13px);\n height: 100%;\n left: ", ";\n position: fixed;\n top: 0;\n transition: left\n ", "ms\n ", ";\n visibility: visible;\n width: 40px;\n\n @media (min-width: ", ") {\n left: ", ";\n }\n"], ["\n background: rgba(0,0,0,0.125);\n content: '';\n display: block;\n filter: blur(13px);\n height: 100%;\n left: ", ";\n position: fixed;\n top: 0;\n transition: left\n ", "ms\n ", ";\n visibility: visible;\n width: 40px;\n\n @media (min-width: ", ") {\n left: ", ";\n }\n"])), function (props) { return props.isDrawerOpen
65
66
  ? "".concat(DRAWER_WIDTH.Expanded - 38, "px")
66
- : "".concat(DRAWER_WIDTH.Collapsed - 41, "px"); }, motion.easeInOut, function (props) { return props.theme.breakpoints.values.sm; }, function (props) {
67
+ : "".concat(DRAWER_WIDTH.Collapsed - 41, "px"); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.theme.breakpoints.values.sm; }, function (props) {
67
68
  return props.isDrawerOpen
68
69
  ? "".concat(DRAWER_WIDTH.Expanded - 38, "px")
69
70
  : "".concat(DRAWER_WIDTH.Collapsed - 33, "px");
70
71
  });
71
- export var NotchContainer = styled(Box)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n height: auto;\n margin-top: -", ";\n position: relative;\n transition: width 225ms ", " 0ms !important;\n width: 100%;\n z-index: 9;\n"], ["\n display: flex;\n justify-content: flex-end;\n height: auto;\n margin-top: -", ";\n position: relative;\n transition: width 225ms ", " 0ms !important;\n width: 100%;\n z-index: 9;\n"])), function (props) { return props.theme.spacing(0.5); }, motion.easeInOut);
72
+ export var NotchContainer = styled(Box)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n height: auto;\n margin-top: -", ";\n position: relative;\n transition: width\n ", "ms\n ", ";\n width: 100%;\n z-index: 9;\n"], ["\n display: flex;\n justify-content: flex-end;\n height: auto;\n margin-top: -", ";\n position: relative;\n transition: width\n ", "ms\n ", ";\n width: 100%;\n z-index: 9;\n"])), function (props) { return props.theme.spacing(0.5); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; });
72
73
  export var NotchBackground = styled(Box)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n flex: 1;\n height: auto;\n width: auto;\n"], ["\n background-color: ", ";\n flex: 1;\n height: auto;\n width: auto;\n"])), function (props) { return props.theme.palette.mode === 'dark'
73
74
  ? props.theme.palette.primary.main
74
75
  : props.theme.palette.background.paper; });
@@ -80,9 +81,9 @@ export var NotchSeemMask = styled(Box)(templateObject_12 || (templateObject_12 =
80
81
  : props.theme.palette.background.paper; });
81
82
  export var StyledDrawer = styled(Drawer, {
82
83
  shouldForwardProp: function (prop) { return prop !== 'open'; }
83
- })(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n box-shadow: none;\n box-sizing: border-box;\n flexshrink: 0;\n overflow-x: visible;\n transition: width 225ms ", " 0ms !important;\n white-space: nowrap;\n width: ", ";\n\n @media (min-width: ", ") {\n width: ", ";\n }\n\n .MuiDrawer-paper {\n background: transparent none;\n border: 0;\n box-shadow: none;\n color: ", ";\n overflow: visible !important;\n overflow-x: visible;\n transform: translateX(0) !important;\n transition: width 225ms ", " 0ms !important;\n visibility: visible !important;\n width: ", ";\n [theme.breakpoints.up('sm')] {\n width: ", ";\n }\n }\n"], ["\n box-shadow: none;\n box-sizing: border-box;\n flexshrink: 0;\n overflow-x: visible;\n transition: width 225ms ", " 0ms !important;\n white-space: nowrap;\n width: ", ";\n\n @media (min-width: ", ") {\n width: ", ";\n }\n\n .MuiDrawer-paper {\n background: transparent none;\n border: 0;\n box-shadow: none;\n color: ", ";\n overflow: visible !important;\n overflow-x: visible;\n transform: translateX(0) !important;\n transition: width 225ms ", " 0ms !important;\n visibility: visible !important;\n width: ", ";\n [theme.breakpoints.up('sm')] {\n width: ", ";\n }\n }\n"])), motion.easeInOut, function (props) { return !props.open ? "calc(".concat(props.theme.spacing(7), " + 1px)") : "".concat(DRAWER_WIDTH.Expanded, "px"); }, function (props) { return props.theme.breakpoints.values.sm; }, function (props) { return !props.open ? "calc(".concat(props.theme.spacing(8), " + 1px)") : "".concat(DRAWER_WIDTH.Expanded, "px"); }, function (props) {
84
+ })(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n box-shadow: none;\n box-sizing: border-box;\n flexshrink: 0;\n overflow-x: visible;\n white-space: nowrap;\n width: ", ";\n transition: width\n ", "ms\n ", ";\n\n @media (min-width: ", ") {\n width: ", ";\n }\n\n .MuiDrawer-paper {\n background: transparent none;\n border: 0;\n box-shadow: none;\n color: ", ";\n overflow: visible !important;\n overflow-x: visible;\n transform: translateX(0) !important;\n transition: width\n ", "ms\n ", ";\n visibility: visible;\n width: ", ";\n [theme.breakpoints.up('sm')] {\n width: ", ";\n }\n }\n"], ["\n box-shadow: none;\n box-sizing: border-box;\n flexshrink: 0;\n overflow-x: visible;\n white-space: nowrap;\n width: ", ";\n transition: width\n ", "ms\n ", ";\n\n @media (min-width: ", ") {\n width: ", ";\n }\n\n .MuiDrawer-paper {\n background: transparent none;\n border: 0;\n box-shadow: none;\n color: ", ";\n overflow: visible !important;\n overflow-x: visible;\n transform: translateX(0) !important;\n transition: width\n ", "ms\n ", ";\n visibility: visible;\n width: ", ";\n [theme.breakpoints.up('sm')] {\n width: ", ";\n }\n }\n"])), function (props) { return !props.open ? "calc(".concat(props.theme.spacing(7), " + 1px)") : "".concat(DRAWER_WIDTH.Expanded, "px"); }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return props.theme.breakpoints.values.sm; }, function (props) { return !props.open ? "calc(".concat(props.theme.spacing(8), " + 1px)") : "".concat(DRAWER_WIDTH.Expanded, "px"); }, function (props) {
84
85
  return props.theme.palette.mode === 'dark'
85
86
  ? props.theme.palette.primary.contrastText
86
87
  : props.theme.palette.getContrastText(props.theme.palette.background.paper);
87
- }, motion.easeInOut, function (props) { return !props.open ? "calc(".concat(props.theme.spacing(7), " + 1px)") : "".concat(DRAWER_WIDTH.Expanded, "px"); }, function (props) { return !props.open ? "calc(".concat(props.theme.spacing(8), " + 1px)") : "".concat(DRAWER_WIDTH.Expanded, "px"); });
88
+ }, function (props) { return props.theme.transitions.duration.enteringScreen; }, function (props) { return props.theme.transitions.easing.easeOut; }, function (props) { return !props.open ? "calc(".concat(props.theme.spacing(7), " + 1px)") : "".concat(DRAWER_WIDTH.Expanded, "px"); }, function (props) { return !props.open ? "calc(".concat(props.theme.spacing(8), " + 1px)") : "".concat(DRAWER_WIDTH.Expanded, "px"); });
88
89
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "components",
10
10
  "ui"
11
11
  ],
12
- "version": "1.6.0-beta.5",
12
+ "version": "1.6.0-beta.6",
13
13
  "private": false,
14
14
  "main": "index.js",
15
15
  "module": "index.js",
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface IAvatarPanelProps {
3
- avatarName: string;
4
- editProfileText?: string;
5
- logoutText?: string;
6
- }
7
- declare const AvatarPanel: (props: IAvatarPanelProps) => React.ReactElement;
8
- export default AvatarPanel;