@learningpool/ui 1.6.0-beta.4 → 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.
Files changed (19) hide show
  1. package/components/navigation/VerticalNavigation/VerticalNavigation.d.ts +13 -0
  2. package/components/navigation/VerticalNavigation/VerticalNavigation.js +39 -14
  3. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.d.ts +24 -0
  4. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +84 -0
  5. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +827 -0
  6. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +31 -0
  7. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.d.ts +1 -1
  8. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +1 -1
  9. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +1 -1
  10. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +12 -9
  11. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +12 -13
  12. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.d.ts +141 -0
  13. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.js +109 -0
  14. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +16 -15
  15. package/package.json +2 -1
  16. package/utils/constants.d.ts +1 -0
  17. package/utils/constants.js +1 -0
  18. package/components/navigation/VerticalNavigation/AvatarPanel.d.ts +0 -8
  19. package/components/navigation/VerticalNavigation/AvatarPanel.js +0 -97
@@ -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[];
@@ -71,7 +71,7 @@ var VerticalNavigationItem = function (props) {
71
71
  ? null
72
72
  : handlePopoverOpen(event); }, onBlur: function () { return fullHeightFlyout
73
73
  ? null
74
- : handlePopoverClose(); }, "aria-expanded": (children && children.length > 0) ? open : null, "aria-haspopup": (children && children.length > 0) ? 'true' : null, "aria-current": isActive ? 'page' : null, role: (children && children.length > 0) ? 'button' : 'link' }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: (_a = (children && children.length > 0)) !== null && _a !== void 0 ? _a : isDrawerOpen, disableFocusListener: (_b = (children && children.length > 0)) !== null && _b !== void 0 ? _b : isDrawerOpen, disableTouchListener: (_c = (children && children.length > 0)) !== null && _c !== void 0 ? _c : isDrawerOpen, title: label, placement: theme.direction === 'rtl' ? 'left' : 'right', enterDelay: tooltipDelay.start, leaveDelay: tooltipDelay.end }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true }, { children: icon !== null && icon !== void 0 ? icon : _jsx(MailIcon, {}) })) })), _jsx(ListItemText, { primary: label, isDrawerOpen: isDrawerOpen, index: index, sx: {
74
+ : handlePopoverClose(); }, "aria-expanded": (children && children.length > 0) || fullHeightFlyout ? open : null, "aria-current": isActive ? 'page' : null, role: (children && children.length > 0) || fullHeightFlyout ? 'button' : 'link' }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: (_a = (children && children.length > 0)) !== null && _a !== void 0 ? _a : isDrawerOpen, disableFocusListener: (_b = (children && children.length > 0)) !== null && _b !== void 0 ? _b : isDrawerOpen, disableTouchListener: (_c = (children && children.length > 0)) !== null && _c !== void 0 ? _c : isDrawerOpen, title: label, placement: theme.direction === 'rtl' ? 'left' : 'right', enterDelay: tooltipDelay.start, leaveDelay: tooltipDelay.end }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true }, { children: icon !== null && icon !== void 0 ? icon : _jsx(MailIcon, {}) })) })), _jsx(ListItemText, { primary: label, isDrawerOpen: isDrawerOpen, index: index, sx: {
75
75
  '& .MuiTypography-root': {
76
76
  fontSize: isSecondary ? '14px' : 'inherit'
77
77
  }
@@ -18,7 +18,7 @@ var VerticalNavigationItemFlyoutMenu = function (props) {
18
18
  var _a = React.useState(false), flyoutHovered = _a[0], setFlyoutHovered = _a[1];
19
19
  var open = flyoutHovered || (props === null || props === void 0 ? void 0 : props.open);
20
20
  if (fullHeightFlyout && content) {
21
- return (_jsx(FullHeightFlyoutMenuPaper, __assign({ isDrawerOpen: isDrawerOpen, open: open }, { children: _jsxs(FullHeightFlyoutMenuWrapper, __assign({ open: open }, { children: [_jsx(FlyoutNotchMask, {}), _jsx(NotchMini, { tabIndex: -1, style: { bottom: '24px' } }), content] })) })));
21
+ return (_jsx(FullHeightFlyoutMenuPaper, __assign({ isDrawerOpen: isDrawerOpen, open: open, id: "avatar-panel" }, { children: _jsxs(FullHeightFlyoutMenuWrapper, __assign({ open: open }, { children: [_jsx(FlyoutNotchMask, {}), _jsx(NotchMini, { tabIndex: -1, style: { bottom: '24px' } }), content] })) })));
22
22
  }
23
23
  return (_jsx(FlyoutMenuPaper, __assign({ isDrawerOpen: isDrawerOpen, open: open, anchorEl: anchorEl !== null && anchorEl !== void 0 ? anchorEl : undefined, onMouseEnter: function () { return setFlyoutHovered(true); }, onMouseLeave: function () { return setFlyoutHovered(false); }, onFocus: function () { return setFlyoutHovered(true); }, onBlur: function () { return setFlyoutHovered(false); } }, { children: _jsxs(FlyoutMenuWrap, __assign({ open: open }, { children: [_jsx(NotchMini, { style: { top: '12px' } }), _jsx(FlyoutMenuHeader, { children: label }), _jsx(FlyoutMenuList, __assign({ "aria-label": label, open: open }, { children: children === null || children === void 0 ? void 0 : children.map(function (childItem) { return (_jsx(FlyoutMenuItem, { children: _jsx(FlyoutMenuButton
24
24
  // @ts-expect-error
@@ -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
+ };