@learningpool/ui 1.15.5 → 1.16.0

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 (84) hide show
  1. package/assets/Images.js +7 -18
  2. package/components/atoms/Autocomplete/Autocomplete.js +3 -14
  3. package/components/atoms/Button/Button.js +2 -13
  4. package/components/atoms/Checkbox/Checkbox.js +3 -26
  5. package/components/atoms/IconButton/IconButton.js +2 -13
  6. package/components/atoms/Radio/Radio.js +3 -26
  7. package/components/atoms/Select/Select.js +3 -26
  8. package/components/atoms/Slider/Slider.js +3 -26
  9. package/components/atoms/Switch/Switch.js +3 -26
  10. package/components/atoms/TextField/TextField.js +2 -13
  11. package/components/atoms/ToggleButton/ToggleButton.js +3 -26
  12. package/components/datadisplay/Avatar/Avatar.js +13 -28
  13. package/components/datadisplay/Chip/Chip.js +3 -26
  14. package/components/datadisplay/List/List.js +2 -13
  15. package/components/feedback/Alert/Alert.js +3 -26
  16. package/components/landmarks/Header/Header.js +15 -41
  17. package/components/landmarks/Header/HeaderActionButtons.d.ts +1 -2
  18. package/components/landmarks/Header/HeaderActionButtons.js +22 -33
  19. package/components/landmarks/Header/HeaderStyles.js +54 -11
  20. package/components/navigation/Drawer/Drawer.js +5 -31
  21. package/components/navigation/MobileNavigation/MobileNavigation.js +70 -82
  22. package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +75 -83
  23. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +102 -52
  24. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +71 -13
  25. package/components/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +1 -1
  26. package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +41 -68
  27. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +34 -18
  28. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +133 -20
  29. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +22 -45
  30. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +8 -19
  31. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +151 -52
  32. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +171 -50
  33. package/components/navigation/MobileNavigation/MobileNavigationMotion.js +11 -11
  34. package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +11 -15
  35. package/components/navigation/MobileNavigation/MobileNavigationSearch.d.ts +1 -2
  36. package/components/navigation/MobileNavigation/MobileNavigationSearch.js +25 -34
  37. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +34 -18
  38. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.js +47 -9
  39. package/components/navigation/MobileNavigation/MobileNavigationStyles.js +262 -66
  40. package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +21 -20
  41. package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +21 -20
  42. package/components/navigation/VerticalNavigation/VerticalNavigation.js +150 -185
  43. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +50 -61
  44. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +102 -52
  45. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +86 -14
  46. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +27 -51
  47. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +15 -28
  48. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +135 -39
  49. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +167 -29
  50. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.js +11 -11
  51. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +34 -18
  52. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +236 -42
  53. package/components/navigation/helpers.d.ts +1 -2
  54. package/components/navigation/helpers.js +28 -32
  55. package/components/pages/ErrorPage/ErrorPage.js +6 -17
  56. package/components/pages/ErrorPage/ErrorPageStyles.js +13 -18
  57. package/components/pages/SideInSide/SideInSide.js +12 -23
  58. package/components/pages/SideInSide/SideInSideStyles.js +6 -6
  59. package/components/stream/AppHub/AppHub.js +13 -42
  60. package/components/stream/AppHub/AppHubAdvertStyles.js +24 -8
  61. package/components/stream/AppHub/AppHubBannerAdvert.d.ts +1 -2
  62. package/components/stream/AppHub/AppHubBannerAdvert.js +9 -20
  63. package/components/stream/AppHub/AppHubCustom.js +8 -19
  64. package/components/stream/AppHub/AppHubCustomStyles.d.ts +1 -1
  65. package/components/stream/AppHub/AppHubCustomStyles.js +78 -18
  66. package/components/stream/AppHub/AppHubProduct.js +26 -48
  67. package/components/stream/AppHub/AppHubProductStyles.js +104 -19
  68. package/components/stream/AppHub/AppHubStyles.js +31 -11
  69. package/components/stream/AppHub/constants.d.ts +1 -2
  70. package/components/stream/AppHub/constants.js +14 -14
  71. package/components/stream/AppSwitcher/AppSwitcher.js +225 -316
  72. package/components/stream/AppSwitcher/AppSwitcherItem.js +11 -22
  73. package/components/stream/AppSwitcher/AppSwitcherStyles.js +337 -42
  74. package/components/stream/AppSwitcher/AppSwitcherStylesStandalone.js +255 -21
  75. package/components/stream/AppSwitcher/PromotionalCampaignItem.js +7 -19
  76. package/components/stream/AppSwitcher/constants.js +3 -3
  77. package/lang/en-us.js +1 -1
  78. package/package.json +7 -2
  79. package/utils/constants.d.ts +7 -0
  80. package/utils/constants.js +11 -4
  81. package/utils/dataAttributes.js +1 -1
  82. package/utils/helpers.js +33 -40
  83. package/utils/hooks.js +10 -11
  84. package/utils/theme.js +26 -19
@@ -1,26 +1,15 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
13
2
  import React from 'react';
14
3
  import { Link, ListItemText } from '../../../../index';
15
4
  import { FlyoutMenuPaper, FlyoutMenuWrap, FlyoutMenuList, FlyoutMenuButton, FlyoutMenuItem } from './MobileNavigationItemFlyoutMenuStyles';
16
- var MobileNavigationItemFlyoutMenu = function (props) {
17
- var label = props.label, children = props.children, isDrawerOpen = props.isDrawerOpen, anchorEl = props.anchorEl;
18
- var _a = React.useState(false), flyoutHovered = _a[0], setFlyoutHovered = _a[1];
19
- var open = flyoutHovered || (props === null || props === void 0 ? void 0 : props.open);
20
- 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: _jsx(FlyoutMenuWrap, __assign({ open: open }, { children: _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
5
+ const MobileNavigationItemFlyoutMenu = (props) => {
6
+ const { label, children, isDrawerOpen, anchorEl } = props;
7
+ const [flyoutHovered, setFlyoutHovered] = React.useState(false);
8
+ const open = flyoutHovered || props?.open;
9
+ return (_jsx(FlyoutMenuPaper, { isDrawerOpen: isDrawerOpen, open: open, anchorEl: anchorEl ?? undefined, onMouseEnter: () => setFlyoutHovered(true), onMouseLeave: () => setFlyoutHovered(false), onFocus: () => setFlyoutHovered(true), onBlur: () => setFlyoutHovered(false), children: _jsx(FlyoutMenuWrap, { open: open, children: _jsx(FlyoutMenuList, { "aria-label": label, open: open, children: children?.map(childItem => (_jsx(FlyoutMenuItem, { children: _jsx(FlyoutMenuButton
21
10
  // @ts-expect-error
22
- , __assign({
11
+ , {
23
12
  // @ts-expect-error
24
- component: Link, onClick: childItem.onClick, role: 'link' }, { children: _jsx(ListItemText, { primary: childItem.label }) }), childItem.label) })); }) })) })) })));
13
+ component: Link, onClick: childItem.onClick, role: 'link', children: _jsx(ListItemText, { primary: childItem.label }) }, childItem.label) }))) }) }) }));
25
14
  };
26
15
  export default MobileNavigationItemFlyoutMenu;
@@ -1,66 +1,165 @@
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
1
  import { List, ListItem, ListItemButton as SSListItemButton, Paper, Typography } from '../../../../index';
6
2
  import { styled } from '@mui/material/styles';
7
3
  import { motion } from '../../../../utils/theme';
8
4
  import { NotchMiniSVG } from '../../../../assets/Images';
9
- export var DRAWER_WIDTH = {
5
+ export const DRAWER_WIDTH = {
10
6
  Collapsed: 60,
11
7
  Expanded: 300
12
8
  };
13
- export var FlyoutMenuPaper = styled(Paper, {
14
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'open' && prop !== 'anchorEl'; }
15
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: transparent none;\n box-shadow: none;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n /* Check against height of browser should be top or bottom positioned */\n top: ", ";\n width: 200px;\n z-index: 2;\n"], ["\n background: transparent none;\n box-shadow: none;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n /* Check against height of browser should be top or bottom positioned */\n top: ", ";\n width: 200px;\n z-index: 2;\n"])), 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.anchorEl
16
- ? "".concat(props.anchorEl.getBoundingClientRect().top, "px")
17
- : 'auto'; });
18
- export var FlyoutMenuWrap = styled('div', {
19
- shouldForwardProp: function (prop) { return prop !== 'open'; }
20
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n border-radius: 0 8px 8px 0;\n box-shadow: 5px 7px 8px -10px rgb(0 0 0 / 20%), 5px 12px 17px -10px rgb(0 0 0 / 14%), 5px 5px 22px -10px rgb(0 0 0 / 12%);\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transform-origin: left center;\n transition: ", ";\n"], ["\n background-color: ", ";\n color: ", ";\n border-radius: 0 8px 8px 0;\n box-shadow: 5px 7px 8px -10px rgb(0 0 0 / 20%), 5px 12px 17px -10px rgb(0 0 0 / 14%), 5px 5px 22px -10px rgb(0 0 0 / 12%);\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transform-origin: left center;\n transition: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
9
+ export const FlyoutMenuPaper = styled(Paper, {
10
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'open' && prop !== 'anchorEl'
11
+ }) `
12
+ background: transparent none;
13
+ box-shadow: none;
14
+ left: ${props => props.isDrawerOpen ? `${DRAWER_WIDTH.Expanded}px` : `${DRAWER_WIDTH.Collapsed - 3}px`};
15
+ perspective: 800px;
16
+ pointer-events: ${props => props.open ? 'auto' : 'none'};
17
+ position: fixed;
18
+ /* Check against height of browser should be top or bottom positioned */
19
+ top: ${props => props.anchorEl
20
+ ? `${props.anchorEl.getBoundingClientRect().top}px`
21
+ : 'auto'};
22
+ width: 200px;
23
+ z-index: 2;
24
+ `;
25
+ export const FlyoutMenuWrap = styled('div', {
26
+ shouldForwardProp: (prop) => prop !== 'open'
27
+ }) `
28
+ background-color: ${props => props.theme.palette.mode === 'dark'
21
29
  ? props.theme.palette.primary.dark
22
- : '#E6EAF0'; }, function (props) { return props.theme.palette.mode === 'dark'
30
+ : '#E6EAF0'};
31
+ color: ${props => props.theme.palette.mode === 'dark'
32
+ ? props.theme.palette.primary.contrastText
33
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
34
+ border-radius: 0 8px 8px 0;
35
+ box-shadow: 5px 7px 8px -10px rgb(0 0 0 / 20%), 5px 12px 17px -10px rgb(0 0 0 / 14%), 5px 5px 22px -10px rgb(0 0 0 / 12%);
36
+ opacity: ${props => props.open ? 1 : 0};
37
+ visibility: ${props => props.open ? 'visible' : 'hidden'};
38
+ transform: ${props => props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(15deg) scale(.97)'};
39
+ transform-origin: left center;
40
+ transition: ${props => props.open
41
+ ? `all 250ms ${motion.easeInOut}`
42
+ : `all 150ms ${motion.easeOut}`};
43
+ `;
44
+ export const FlyoutMenuList = styled(List, {
45
+ shouldForwardProp: (prop) => prop !== 'open'
46
+ }) `
47
+ padding: ${props => props.theme.spacing(1, 2)};
48
+ pointer-events: ${props => props.open ? 'auto' : 'none'};
49
+ `;
50
+ export const FlyoutMenuHeader = styled(Typography) `
51
+ font-weight: bold;
52
+ padding: 12px ${props => props.theme.spacing(2)} 0 ${props => props.theme.spacing(3)};
53
+ `;
54
+ export const FlyoutMenuItem = styled(ListItem) `
55
+ font-size: 14px;
56
+ padding: 0;
57
+ white-space: normal;
58
+ background: transparent !important;
59
+ `;
60
+ export const FlyoutMenuButton = styled(SSListItemButton, {
61
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'isExpanded'
62
+ }) `
63
+ align-items: flex-start;
64
+ background-color: transparent;
65
+ color: ${props => props.theme.palette.mode === 'dark'
23
66
  ? props.theme.palette.primary.contrastText
24
- : 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); });
27
- export var FlyoutMenuList = styled(List, {
28
- shouldForwardProp: function (prop) { return prop !== 'open'; }
29
- })(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'; });
30
- export var FlyoutMenuHeader = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-weight: bold;\n padding: 12px ", " 0 ", ";\n"], ["\n font-weight: bold;\n padding: 12px ", " 0 ", ";\n"])), function (props) { return props.theme.spacing(2); }, function (props) { return props.theme.spacing(3); });
31
- 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
- export var FlyoutMenuButton = styled(SSListItemButton, {
33
- 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"
35
- // FullHeight
36
- ])), function (props) {
37
- return props.theme.palette.mode === 'dark'
38
- ? props.theme.palette.primary.contrastText
39
- : props.theme.palette.getContrastText(props.theme.palette.background.paper);
40
- }, motion.easeInOut, function (props) { return props.theme.spacing(1, 2); }, function (props) {
41
- return props.theme.palette.mode === 'dark'
42
- ? 'rgba(255, 255, 255, 0.5)'
43
- : props.theme.palette.primary.main;
44
- }, motion.easeInOut, function (props) {
45
- return props.theme.palette.mode === 'dark'
46
- ? props.theme.palette.primary.dark
47
- : '#E6EAF0';
48
- });
67
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
68
+ border-radius: 5px;
69
+ display: flex;
70
+ flex-wrap: wrap;
71
+ text-decoration: none;
72
+ text-transform: none;
73
+ transition: all 225ms ${motion.easeInOut} 0;
74
+ padding: ${props => props.theme.spacing(1, 2)};
75
+ width: 100%;
76
+
77
+ /* Indicator */
78
+ :before {
79
+ background-color: ${props => props.theme.palette.mode === 'dark'
80
+ ? 'rgba(255, 255, 255, 0.5)'
81
+ : props.theme.palette.primary.main};
82
+ border-radius: 50px;
83
+ content: '';
84
+ height: calc(100% - 10px);
85
+ opacity: 0;
86
+ position: absolute;
87
+ top: 5px;
88
+ left: 5px;
89
+ transition: all 180ms ${motion.easeInOut};
90
+ width: 4px;
91
+ transform: scale(.95);
92
+ }
93
+
94
+ :hover:before,
95
+ :focus:before {
96
+ opacity: 1;
97
+ transform: scale(1);
98
+ }
99
+
100
+ :hover {
101
+ background-color: rgba(0, 0, 0, .05);
102
+ }
103
+
104
+ :focus {
105
+ background-color: ${props => props.theme.palette.mode === 'dark'
106
+ ? props.theme.palette.primary.dark
107
+ : '#E6EAF0'};
108
+ }
109
+ `;
49
110
  // FullHeight
50
- export var FullHeightFlyoutMenuPaper = styled(Paper, {
51
- 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'
111
+ export const FullHeightFlyoutMenuPaper = styled(Paper, {
112
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'open'
113
+ }) `
114
+ background: transparent none;
115
+ box-shadow: none;
116
+ color: ${props => props.theme.palette.mode === 'dark'
53
117
  ? 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'; });
55
- export var FullHeightFlyoutMenuWrapper = styled('div', {
56
- shouldForwardProp: function (prop) { return prop !== 'open'; }
57
- })(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'
118
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
119
+ height: 100%;
120
+ left: ${props => props.isDrawerOpen ? `${DRAWER_WIDTH.Expanded}px` : `${DRAWER_WIDTH.Collapsed - 3}px`};
121
+ perspective: 800px;
122
+ pointer-events: ${props => props.open ? 'auto' : 'none'};
123
+ position: fixed;
124
+ top: 0;
125
+ z-index: 1;
126
+ `;
127
+ export const FullHeightFlyoutMenuWrapper = styled('div', {
128
+ shouldForwardProp: (prop) => prop !== 'open'
129
+ }) `
130
+ background-color: ${props => props.theme.palette.mode === 'dark'
58
131
  ? 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
- 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'
132
+ : props.theme.palette.background.paper};
133
+ box-shadow: 35px 0 15px 0 rgb(0 0 0 / 10%);
134
+ height: 100%;
135
+ max-width: 300px;
136
+ min-width: 300px;
137
+ opacity: ${props => props.open ? 1 : 0};
138
+ pointer-events: ${props => props.open ? 'auto' : 'none'};
139
+ transform: ${props => props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(8deg) scale(.98)'};
140
+ transform-origin: left center;
141
+ transition: ${props => props.open ? `all 150ms ${motion.easeInOut}` : `all 100ms ${motion.easeOut}`};
142
+ visibility: ${props => props.open ? 'visible' : 'hidden'};
143
+ width: ${props => props.open ? '300' : 0};
144
+ `;
145
+ export const FlyoutNotchMask = styled('div') `
146
+ background-color: ${props => props.theme.palette.mode === 'dark'
61
147
  ? props.theme.palette.primary.dark
62
- : '#E6EAF0'; });
63
- export var NotchMini = styled(NotchMiniSVG)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n fill: ", ";\n left: -12px;\n pointer-events: none;\n position: absolute;\n"], ["\n fill: ", ";\n left: -12px;\n pointer-events: none;\n position: absolute;\n"])), function (props) { return props.theme.palette.mode === 'dark'
148
+ : '#E6EAF0'};
149
+ content: '';
150
+ display: block;
151
+ height: 80px;
152
+ left: -40px;
153
+ position: absolute;
154
+ top: 65px;
155
+ width: 80px;
156
+ z-index: -1;
157
+ `;
158
+ export const NotchMini = styled(NotchMiniSVG) `
159
+ fill: ${props => props.theme.palette.mode === 'dark'
64
160
  ? props.theme.palette.primary.dark
65
- : '#E6EAF0'; });
66
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
161
+ : '#E6EAF0'};
162
+ left: -12px;
163
+ pointer-events: none;
164
+ position: absolute;
165
+ `;
@@ -1,68 +1,189 @@
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
1
  import { ListItem as SSListItem, ListItemButton as SSListItemButton, ListItemText as SSListItemText, ListItemIcon as SSListItemIcon } from '../../../../index';
6
2
  import { getNavigationContrastText } from '../../helpers';
7
3
  import { styled } from '@mui/material/styles';
8
4
  import { motion } from '../../../../utils/theme';
9
5
  import ArrowRightIcon from '@mui/icons-material/ArrowRight';
10
- export var DRAWER_WIDTH = {
6
+ export const DRAWER_WIDTH = {
11
7
  Collapsed: 60,
12
8
  Expanded: 300
13
9
  };
14
- var ICON = {
10
+ const ICON = {
15
11
  Height: 40,
16
12
  Width: 57
17
13
  };
18
- export var ListItem = styled(SSListItem, {
19
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
20
- })(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'
14
+ export const ListItem = styled(SSListItem, {
15
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
16
+ }) `
17
+ align-items: flex-start;
18
+ color: ${props => props.theme.palette.mode === 'dark'
21
19
  ? props.theme.palette.primary.contrastText
22
- : 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); });
23
- export var ListItemButton = styled(SSListItemButton, {
24
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'isExpanded'; }
25
- })(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) {
26
- return props.theme.palette.mode === 'dark'
27
- ? props.theme.palette.primary.main
28
- : props.theme.palette.background.paper;
29
- }, function (props) { return getNavigationContrastText(props.theme); }, ICON.Height + 8, function (props) { return props.isDrawerOpen
20
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
21
+ min-height: ${ICON.Height + 8}px;
22
+ padding: 0 !important;
23
+ transition: width 225ms ${motion.easeInOut} ${props => props.isDrawerOpen ? '0ms' : '250ms'};
24
+ width: ${DRAWER_WIDTH.Expanded}px;
25
+
26
+ .MuiListItemIcon-root: {
27
+ margin: ${props => props.theme.spacing(0.5)} 0 0;
28
+ }
29
+
30
+ .MuiListItemText-root .MuiTypography-root: {
31
+ white-space: normal;
32
+ }
33
+ `;
34
+ export const ListItemButton = styled(SSListItemButton, {
35
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'isExpanded'
36
+ }) `
37
+ align-items: flex-start !important;
38
+ background-color: ${props => props.theme.palette.mode === 'dark'
39
+ ? props.theme.palette.primary.main
40
+ : props.theme.palette.background.paper};
41
+ color: ${props => getNavigationContrastText(props.theme)};
42
+ display: flex;
43
+ flex-wrap: wrap;
44
+ min-height: ${ICON.Height + 8}px;
45
+ max-height: ${props => props.isDrawerOpen
30
46
  ? props.isExpanded
31
47
  ? 'auto'
32
48
  : '200px'
33
- : "".concat(ICON.Height + 8, "px"); }, motion.easeInOut, function (props) { return props.theme.spacing(2); }, function (props) {
34
- return props.theme.palette.mode === 'dark'
35
- ? 'rgba(255, 255, 255, 0.5)'
36
- : props.theme.palette.primary.main;
37
- }, motion.easeInOut, function (props) {
38
- return props.theme.palette.mode === 'dark'
39
- ? props.theme.palette.primary.main
40
- : props.theme.palette.background.paper;
41
- }, function (props) {
42
- return props.theme.palette.mode === 'dark'
43
- ? props.theme.palette.primary.dark
44
- : '#E6EAF0';
45
- });
46
- export var ListItemButtonChild = styled(SSListItemButton, {
47
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
48
- })(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'
49
+ : `${ICON.Height + 8}px`};
50
+ text-decoration: none;
51
+ text-transform: none;
52
+ transition: all 225ms ${motion.easeInOut} 0ms !important;
53
+ padding: 0 ${props => props.theme.spacing(2)} 0 0;
54
+ width: 100%;
55
+
56
+ /* Indicator */
57
+ :before {
58
+ background-color: ${props => props.theme.palette.mode === 'dark'
59
+ ? 'rgba(255, 255, 255, 0.5)'
60
+ : props.theme.palette.primary.main};
61
+ border-radius: 50px;
62
+ content: '';
63
+ height: calc(100% - 10px);
64
+ opacity: 0;
65
+ position: absolute;
66
+ top: 5px;
67
+ left: 3px;
68
+ transition: all 180ms ${motion.easeInOut};
69
+ width: 4px;
70
+ transform: scale(.95);
71
+ }
72
+
73
+ :hover:before,
74
+ :focus-visible:before {
75
+ opacity: 1;
76
+ transform: scale(1);
77
+ }
78
+
79
+ :hover {
80
+ background-color: ${props => props.theme.palette.mode === 'dark'
81
+ ? props.theme.palette.primary.main
82
+ : props.theme.palette.background.paper};
83
+ }
84
+
85
+ :focus-visible {
86
+ background-color: ${props => props.theme.palette.mode === 'dark'
87
+ ? props.theme.palette.primary.dark
88
+ : '#E6EAF0'};
89
+ }
90
+
91
+ :active {
92
+ background-color: transparent
93
+ }
94
+ `;
95
+ export const ListItemButtonChild = styled(SSListItemButton, {
96
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'index'
97
+ }) `
98
+ align-items: center;
99
+ color: ${props => props.theme.palette.mode === 'dark'
49
100
  ? 'rgba(255, 255, 255, 0.75)'
50
- : '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; });
51
- export var ListItemAvatar = styled(ListItemButton, {
52
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
53
- })(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
101
+ : 'rgba(0, 0, 0, 0.75)'};
102
+ display: flex;
103
+ min-height: none;
104
+ max-height: none;
105
+ text-decoration: none;
106
+ text-transform: none;
107
+ transition: max-height 225ms ${motion.easeInOut} 0ms !important;
108
+ padding: 0;
109
+ width: 100%;
110
+
111
+ .MuiTypography-root: {
112
+ font-size: .9rem;
113
+ opacity: ${props => props.isDrawerOpen ? 1 : 0};
114
+ transition: opacity 225ms ${motion.easeInOut} ${props => props.index !== undefined ? props.index / 50 : 0.02}s !important;
115
+ }
116
+
117
+ .MuiListItemText-root: {
118
+ padding: .25rem .5rem;
119
+ }
120
+ `;
121
+ export const ListItemAvatar = styled(ListItemButton, {
122
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
123
+ }) `
124
+ align-items: center;
125
+ min-height: 52px;
126
+ max-height: ${props => props.isDrawerOpen
54
127
  ? '200px'
55
- : "".concat(ICON.Height + 8, "px"); }, motion.easeInOut);
56
- 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'
128
+ : `${ICON.Height + 8}px`};
129
+ transition: max-height 225ms ${motion.easeInOut} 0ms !important;
130
+
131
+ .MuiListItemIcon-root {
132
+ justify-content: center;
133
+ margin: 0;
134
+ min-width: 0;
135
+ }
136
+
137
+ .MuiAvatar-root {
138
+ height: 32px;
139
+ width: 32px;
140
+ }
141
+ `;
142
+ export const ListItemIcon = styled(SSListItemIcon) `
143
+ align-items: center;
144
+ color: ${props => props.theme.palette.mode === 'dark'
57
145
  ? props.theme.palette.primary.contrastText
58
- : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, ICON.Height + 8, ICON.Width, ICON.Width, ICON.Width + 8, ICON.Width + 8);
59
- export var ListItemText = styled(SSListItemText, {
60
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
61
- })(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; });
62
- export var StyledExpandLess = styled(ArrowRightIcon, {
63
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
64
- })(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);
65
- export var StyledExpandMore = styled(ArrowRightIcon, {
66
- shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
67
- })(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);
68
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
146
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper)};
147
+ height: ${ICON.Height + 8}px;
148
+ justify-content: center;
149
+ margin-top: 0 !important;
150
+ min-width: ${ICON.Width};
151
+ width: ${ICON.Width};
152
+
153
+ [theme.breakpoints.up('sm')] {
154
+ min-width: ${ICON.Width + 8}px;
155
+ width: ${ICON.Width + 8}px;
156
+ }
157
+ `;
158
+ export const ListItemText = styled(SSListItemText, {
159
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen' && prop !== 'index'
160
+ }) `
161
+ max-width: 210px;
162
+ opacity: ${props => props.isDrawerOpen ? 1 : 0};
163
+ padding: 0.5rem;
164
+ transition: opacity 225ms ${motion.easeInOut} ${props => props.index !== undefined ? props.index / 50 : 0.02}s !important;
165
+ white-space: normal;
166
+ width: auto;
167
+ `;
168
+ export const StyledExpandLess = styled(ArrowRightIcon, {
169
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
170
+ }) `
171
+ align-self: center;
172
+ font-size: 1.25rem;
173
+ left: ${props => props.isDrawerOpen ? '20px' : '-40px'};
174
+ margin-right: ${props => props.theme.spacing(1)};
175
+ opacity: 1;
176
+ position: relative;
177
+ transition: opacity 225ms ${motion.easeInOut} 200ms !important;
178
+ `;
179
+ export const StyledExpandMore = styled(ArrowRightIcon, {
180
+ shouldForwardProp: (prop) => prop !== 'isDrawerOpen'
181
+ }) `
182
+ align-self: center;
183
+ font-size: 1.25rem;
184
+ left: ${props => props.isDrawerOpen ? '20px' : '-40px'};
185
+ margin-right: ${props => props.theme.spacing(1)};
186
+ opacity: 1;
187
+ position: relative;
188
+ transition: opacity 225ms ${motion.easeInOut} 200ms !important;
189
+ `;
@@ -1,4 +1,4 @@
1
- export var motionParent = {
1
+ export const motionParent = {
2
2
  open: {
3
3
  transition: { staggerChildren: 0.07, delayChildren: 0 }
4
4
  },
@@ -6,7 +6,7 @@ export var motionParent = {
6
6
  transition: { staggerChildren: 0.05, staggerDirection: -1 }
7
7
  }
8
8
  };
9
- export var motionFadeIn = {
9
+ export const motionFadeIn = {
10
10
  open: {
11
11
  opacity: 1
12
12
  },
@@ -14,7 +14,7 @@ export var motionFadeIn = {
14
14
  opacity: 0
15
15
  }
16
16
  };
17
- export var motionFadeInUp = {
17
+ export const motionFadeInUp = {
18
18
  open: {
19
19
  y: 0,
20
20
  opacity: 1,
@@ -30,14 +30,14 @@ export var motionFadeInUp = {
30
30
  }
31
31
  }
32
32
  };
33
- export var motionWhileHover = {
33
+ export const motionWhileHover = {
34
34
  scale: 1.02
35
35
  };
36
- export var motionWhileTap = {
36
+ export const motionWhileTap = {
37
37
  scale: 0.95
38
38
  };
39
39
  // Old ones...
40
- export var variantsLogo = {
40
+ export const variantsLogo = {
41
41
  open: {
42
42
  opacity: 1
43
43
  },
@@ -45,7 +45,7 @@ export var variantsLogo = {
45
45
  opacity: 0
46
46
  }
47
47
  };
48
- export var variantsUl = {
48
+ export const variantsUl = {
49
49
  open: {
50
50
  transition: { staggerChildren: 0.07, delayChildren: 0.2 }
51
51
  },
@@ -53,7 +53,7 @@ export var variantsUl = {
53
53
  transition: { staggerChildren: 0.05, staggerDirection: -1 }
54
54
  }
55
55
  };
56
- export var variantsLi = {
56
+ export const variantsLi = {
57
57
  open: {
58
58
  y: 0,
59
59
  opacity: 1,
@@ -69,7 +69,7 @@ export var variantsLi = {
69
69
  }
70
70
  }
71
71
  };
72
- export var variantsSecondaryUl = {
72
+ export const variantsSecondaryUl = {
73
73
  open: {
74
74
  transition: { staggerChildren: 0.05, delayChildren: 0.5 }
75
75
  },
@@ -77,7 +77,7 @@ export var variantsSecondaryUl = {
77
77
  transition: { staggerChildren: 0.05, staggerDirection: -1 }
78
78
  }
79
79
  };
80
- export var variantsSecondaryLi = {
80
+ export const variantsSecondaryLi = {
81
81
  open: {
82
82
  y: 0,
83
83
  opacity: 1,
@@ -93,7 +93,7 @@ export var variantsSecondaryLi = {
93
93
  }
94
94
  }
95
95
  };
96
- export var variantsDivider = {
96
+ export const variantsDivider = {
97
97
  open: {
98
98
  scaleX: 1,
99
99
  opacity: 1,
@@ -1,19 +1,15 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
13
2
  import { useSpring, animated } from '@react-spring/web';
14
3
  import { StyledNotchShadow, StyledNotchShadowMask, StyledNotchSVG } from './MobileNavigationStyles';
15
- var NotchIndicator = function (props) {
16
- var styles = useSpring(__assign({}, props));
17
- return (_jsxs(animated.div, __assign({ style: __assign({ bottom: '58px', position: 'fixed', zIndex: '-1' }, styles) }, { children: [_jsx(StyledNotchShadow, {}), _jsx(StyledNotchSVG, __assign({ viewBox: "0 0 22 85", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx(animated.path, { d: "M0 0V85V76.0381C0.774 69.7533 4.9101 64.7829 7.5488 63.5975C7.668 63.5518 7.7867 63.5052 7.9049 63.4576C16.1679 60.1279 22 52.035 22 42.5799C22 33.1612 16.2126 25.0941 8 21.7408C7.8723 21.6887 7.7441 21.6377 7.6153 21.5879C4.8325 20.3142 0.4173 14.8748 0 8.13255V0Z" }) })), _jsx(StyledNotchShadowMask, {})] })));
4
+ const NotchIndicator = (props) => {
5
+ const styles = useSpring({
6
+ ...props
7
+ });
8
+ return (_jsxs(animated.div, { style: {
9
+ bottom: '58px',
10
+ position: 'fixed',
11
+ zIndex: '-1',
12
+ ...styles
13
+ }, children: [_jsx(StyledNotchShadow, {}), _jsx(StyledNotchSVG, { viewBox: "0 0 22 85", xmlns: "http://www.w3.org/2000/svg", children: _jsx(animated.path, { d: "M0 0V85V76.0381C0.774 69.7533 4.9101 64.7829 7.5488 63.5975C7.668 63.5518 7.7867 63.5052 7.9049 63.4576C16.1679 60.1279 22 52.035 22 42.5799C22 33.1612 16.2126 25.0941 8 21.7408C7.8723 21.6887 7.7441 21.6377 7.6153 21.5879C4.8325 20.3142 0.4173 14.8748 0 8.13255V0Z" }) }), _jsx(StyledNotchShadowMask, {})] }));
18
14
  };
19
15
  export default NotchIndicator;