@learningpool/ui 1.4.0-beta.4 → 1.4.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/Images.d.ts +3 -0
- package/assets/Images.js +1 -0
- package/components/navigation/VerticalNavigation/VerticalNavigation.js +63 -114
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +76 -22
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +184 -56
- package/package.json +15 -15
- package/utils/theme.d.ts +6 -0
- package/utils/theme.js +6 -0
package/assets/Images.d.ts
CHANGED
|
@@ -4,3 +4,6 @@ export declare const StreamSuiteLogo: import("@mui/material/OverridableComponent
|
|
|
4
4
|
export declare const LearningPoolLogo: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
5
5
|
muiName: string;
|
|
6
6
|
};
|
|
7
|
+
export declare const NotchSVG: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
package/assets/Images.js
CHANGED
|
@@ -13,3 +13,4 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { createSvgIcon } from '@mui/material/utils';
|
|
14
14
|
export var StreamSuiteLogo = createSvgIcon(_jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", "data-name": "Layer 1", viewBox: "0 0 447.9 484.8" }, { children: _jsx("path", { d: "M447.9 304.4V321l-1 5.2c-3 21.8-12.5 40.5-27.4 56.4a102.6 102.6 0 0 1-34.1 24A98 98 0 0 1 325 413c-2.2-.5-3.2 0-4 2.1a100.5 100.5 0 0 1-32.4 47.2 101.3 101.3 0 0 1-48 21l-11 1.4h-11.7a6.8 6.8 0 0 0-1.5-.4A102.5 102.5 0 0 1 172 471a96.6 96.6 0 0 1-30.8-27.6 103.7 103.7 0 0 1-14.6-28.7c-.5-1.4-.8-2.5-2.8-2a98.5 98.5 0 0 1-32.5 1.5 101 101 0 0 1-35.8-10.8 97.8 97.8 0 0 1-29.7-23A102 102 0 0 1 7 350a105.4 105.4 0 0 1-5.5-55.2 100.7 100.7 0 0 1 13-35.3c2.7-4.7 6.3-5.1 10.2-1.3l4.8 4.3a102 102 0 0 0 37.7 20.6c5.1 1.6 6.5 5 3.7 9.6a35.7 35.7 0 0 0 7.9 48.3 36.3 36.3 0 0 0 22.4 9c15.2.5 26.3-6.9 33.8-19.3 10.5-17.2 20.3-34.8 30.3-52.2.6-1 1-2 1.7-3.5l-4-.2c-22.2 0-44.5 0-66.7-.3a103 103 0 0 1-76.3-41A95.8 95.8 0 0 1 .8 161a106 106 0 0 1 33.9-66A90 90 0 0 1 54 81.4c20.6-11 42.5-13.6 65.4-10.3 7.5 1.2 5.5 2.5 8.2-4.7a99 99 0 0 1 32-44.8A102.2 102.2 0 0 1 222.4 0a106 106 0 0 1 32.2 4.5A98.4 98.4 0 0 1 293 25.8a100.2 100.2 0 0 1 28 43.5c.8 2.2 1.6 2.9 4 2.4a102 102 0 0 1 28-1.9 92.8 92.8 0 0 1 37.9 10.6q46 24.9 55.6 76.4c.6 3 1 6 1.4 9.1v14.4a23.2 23.2 0 0 0-.6 2.6 100.8 100.8 0 0 1-14.6 43c-2.3 3.6-6 4-9.1 1-2.1-2-4.1-4-6.3-5.8a97.4 97.4 0 0 0-35.4-19.1c-7-2-8-5.7-4.3-11.5a32.5 32.5 0 0 0 5.1-22.2 37.6 37.6 0 0 0-15-25.7 36.4 36.4 0 0 0-52.8 8c-3.6 4.7-6.2 10-9.2 15l-24 41.6a17 17 0 0 0-.9 2.4l3.7.2 64.2.3a86.7 86.7 0 0 1 24.3 3.4 102.6 102.6 0 0 1 50 32.1 100.7 100.7 0 0 1 23 48l1.9 10.8ZM261.5 102.9a37.2 37.2 0 0 0-4-17c-7-13.4-17.8-21.3-33.2-21.4-13.3 0-24 5.8-31.5 16.7a34.9 34.9 0 0 0-2.3 38.2c7.6 14.2 16 28 24.2 42a9.8 9.8 0 0 1 1 8.7l-12.4 37.7a9.1 9.1 0 0 0 0 2.9 9.3 9.3 0 0 0 2.2-2c2.5-4 4.8-8.2 7.2-12.4l42-72.5c3.9-6.5 7-13.2 6.8-21Zm-.2 278.7a30.6 30.6 0 0 0-4-16c-8.3-14.8-16.9-29.5-25.4-44.2a6 6 0 0 1-.5-5.5l13.1-39.5a6.6 6.6 0 0 0-.2-2.5c-.6.5-1.5.9-1.9 1.5l-20 34.5-29.6 51.2a42.3 42.3 0 0 0-6.5 19.7 35 35 0 0 0 13 29.8 37.3 37.3 0 0 0 62-29Zm-94.2-172-1.4-2.9-27.7-48a54 54 0 0 0-11.5-15.4c-20.4-17-48.8-7-58.2 13.3-12 25.8 9.4 53.5 34 53.2 20.4-.2 41 0 61.4 0l3.4-.3ZM280.7 275a22.1 22.1 0 0 0 .9 2.2c10.4 18 20.7 36 31.3 54a35.5 35.5 0 0 0 29.4 18.6 37.7 37.7 0 0 0 39.9-43.7 37.9 37.9 0 0 0-36-31.2h-65.5Z" }) })), 'StreamSuite');
|
|
15
15
|
export var LearningPoolLogo = createSvgIcon(_jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 804 174" }, { children: _jsx("path", { fill: "#0069B4", d: "M155.5 0A44 44 0 0 0 121 16.5l-1 1.2-1.2-1a72.5 72.5 0 1 0-46.4 128.1 72.8 72.8 0 0 0 70.7-56.6l.4-1.5 1.5.4a44.2 44.2 0 0 0 44.8-15 44.2 44.2 0 0 0 5.6-47 44.2 44.2 0 0 0-40-25.1zM113 115.2H72.4a42.9 42.9 0 1 1 29.2-11.5l11.4 11.5zm42.5-47.8h-22l6.1-6.2a23.2 23.2 0 1 1 15.9 6.2zm56.2-8.5h14v84h-14zm76 54.3a31.1 31.1 0 0 0-7.5-21.1 29.2 29.2 0 0 0-40.7.2 31.8 31.8 0 0 0-7.8 22 31.2 31.2 0 0 0 7.9 22.2 27.8 27.8 0 0 0 20.9 8.3c2.8 0 5.6-.3 8.4-1a24 24 0 0 0 7.3-3 28.4 28.4 0 0 0 6.3-5.1c1.7-2 3.3-4 4.7-6.2l-12.7-7a28 28 0 0 1-6 6.9 12.3 12.3 0 0 1-7.4 2.1 13 13 0 0 1-9.6-3.7 15.6 15.6 0 0 1-4-9.1v-.4h40.1v-5.1zm-41.7-5.3.3-1.1a16.8 16.8 0 0 1 2-4.6 14 14 0 0 1 3-3.5 13.3 13.3 0 0 1 4.1-2.2 14.5 14.5 0 0 1 4.8-.8c6.8-.4 12.8 4.4 14 11l.3 1.2H246zm90.4-22.4V91a24.2 24.2 0 0 0-16.9-7.2 24.9 24.9 0 0 0-19.2 8.6 30.7 30.7 0 0 0-7.7 21.2 31.7 31.7 0 0 0 7.7 21.6 25.4 25.4 0 0 0 19.6 8.5 25 25 0 0 0 16.5-6.7v5.1h14.2V85.5h-14.2zm-3.6 41a14.3 14.3 0 0 1-11.1 4.7 13.5 13.5 0 0 1-10.6-4.9 18.9 18.9 0 0 1-4.1-12.6 18 18 0 0 1 4.1-12.2 13.8 13.8 0 0 1 10.9-4.8 14 14 0 0 1 10.8 4.8A18.3 18.3 0 0 1 337 114a18.5 18.5 0 0 1-4.3 12.5zm61.7-38.9-6.3 13-.6-.4a11.3 11.3 0 0 0-6.6-2.5c-6.5 0-9.7 5-9.7 15.4v29.7h-13.7V85.5h13.7v4a23.9 23.9 0 0 1 5.3-4.1 14.6 14.6 0 0 1 6.7-1.5 20.7 20.7 0 0 1 10.7 3.4l.5.3zm53 20.2v35H433v-32a19.7 19.7 0 0 0-2.2-11 8.8 8.8 0 0 0-7.8-3 9.4 9.4 0 0 0-8.7 4 28.9 28.9 0 0 0-2.6 14.3v27.7h-14.3V85.5h14.3v4.4a21.8 21.8 0 0 1 14.9-6 20.3 20.3 0 0 1 15.8 6.4c3.3 3.6 5 9.5 5 17.5m22.9-40a8.7 8.7 0 0 1-2.7 6.4 8.5 8.5 0 0 1-6.3 2.7 9 9 0 0 1-6.4-2.6 9 9 0 0 1-2.6-6.4 8.5 8.5 0 0 1 2.7-6.3 8.6 8.6 0 0 1 6.3-2.7 8.7 8.7 0 0 1 6.3 2.7 8.5 8.5 0 0 1 2.7 6.3m-16 18h14v57h-14zm71 22v35H511v-32a19.7 19.7 0 0 0-2.2-11.1 8.8 8.8 0 0 0-7.8-3 9.4 9.4 0 0 0-8.7 4 28.9 28.9 0 0 0-2.5 14.3v27.7h-14.4V85.5h14.4v4.4a21.8 21.8 0 0 1 14.8-6 20.2 20.2 0 0 1 15.8 6.4c3.3 3.6 5 9.5 5 17.5M574 85.4v5.4a23 23 0 0 0-16.9-6.9 24.4 24.4 0 0 0-19.9 9.3 32.9 32.9 0 0 0-7 21 31.2 31.2 0 0 0 7.6 21.3 25.1 25.1 0 0 0 17.8 8.5 25.2 25.2 0 0 0 18.4-7v6.3c0 11.2-4.4 16.7-13.5 16.7a13.4 13.4 0 0 1-11.2-5 14.2 14.2 0 0 1-2.4-6v-.6h-14.2v.7a25.2 25.2 0 0 0 8.8 17.5 28.4 28.4 0 0 0 19 6.2 26.9 26.9 0 0 0 21.3-9 24.1 24.1 0 0 0 5.4-11 51.2 51.2 0 0 0 .7-5.4c.2-2 .3-4.4.3-7v-55H574zm-3.3 40.6a13.6 13.6 0 0 1-11.2 5 13.6 13.6 0 0 1-11.1-5 18.9 18.9 0 0 1-3.7-12 19.1 19.1 0 0 1 3.7-12.3 13.3 13.3 0 0 1 11-5.1 13.9 13.9 0 0 1 11 4.7 18 18 0 0 1 4.1 12.6 18.6 18.6 0 0 1-3.8 12zm73.7-33.4a24.8 24.8 0 0 0-19.5-8.7 24.4 24.4 0 0 0-16.7 6.8v-5.2h-14v87.3h14V137a24.4 24.4 0 0 0 17 7 24.9 24.9 0 0 0 19.2-8.5 30.9 30.9 0 0 0 7.7-21.3 31.3 31.3 0 0 0-7.7-21.6m-32.5 8.8a14.3 14.3 0 0 1 11-4.7 13.5 13.5 0 0 1 10.7 5 18.6 18.6 0 0 1 4.1 12.5 17.8 17.8 0 0 1-4.3 12.3 13.5 13.5 0 0 1-10.6 4.8 14 14 0 0 1-11-4.8 18.4 18.4 0 0 1-4.2-12.5 18.2 18.2 0 0 1 4.2-12.6m97.4-7.9a31.3 31.3 0 0 0-43.2 0 28.3 28.3 0 0 0-9 21 29.4 29.4 0 0 0 9 21.5 29.3 29.3 0 0 0 21.5 8.8 30.4 30.4 0 0 0 21.9-8.6A28.8 28.8 0 0 0 718 115a29 29 0 0 0-8.8-21.4m-10 34a16.9 16.9 0 0 1-23.3 0 18.1 18.1 0 0 1-4.4-12.8 17.2 17.2 0 0 1 4.5-12.3 15.1 15.1 0 0 1 11.5-4.7c4.4-.1 8.7 1.6 11.7 4.7a17.7 17.7 0 0 1 4.4 12.6 17.7 17.7 0 0 1-4.4 12.5m75-35a31.3 31.3 0 0 0-43.3 0 28.2 28.2 0 0 0-8.9 21 29.4 29.4 0 0 0 8.7 21.5 29.3 29.3 0 0 0 21.5 8.8 30.4 30.4 0 0 0 21.9-8.6 28.8 28.8 0 0 0 8.8-21.4 29 29 0 0 0-8.8-21.3m-10 34a16.8 16.8 0 0 1-23.3 0 18.2 18.2 0 0 1-4.3-12.8 17.2 17.2 0 0 1 4.5-12.3 15.1 15.1 0 0 1 11.6-4.7 15.3 15.3 0 0 1 11.6 4.7 17.7 17.7 0 0 1 4.4 12.6 17.7 17.7 0 0 1-4.4 12.5M790 59h14v84h-14z" }) })), 'LearningPool');
|
|
16
|
+
export var NotchSVG = createSvgIcon(_jsx("svg", __assign({ className: 'notch-svg' }, { children: _jsx("clipPath", __assign({ id: 'notch', clipPathUnits: 'objectBoundingBox' }, { children: _jsx("path", { d: 'M1,0 H0 v1 h1 v-0.105 c-0.017,-0.074,-0.109,-0.132,-0.168,-0.146 l-0.008,-0.002 a0.5,0.265,0,0,1,0.006,-0.493 c0.062,-0.015,0.16,-0.079,0.169,-0.158 V0' }) })) })), 'Notch');
|
|
@@ -10,29 +10,45 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import React from 'react';
|
|
13
|
+
import React, { useEffect } from 'react';
|
|
14
14
|
import { styled, useTheme } from '@mui/material/styles';
|
|
15
15
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
16
|
-
import { Avatar, Drawer
|
|
16
|
+
import { Avatar, Drawer, Modal, List, Tooltip } from '../../../index';
|
|
17
17
|
import { Box, Link } from '@mui/material';
|
|
18
18
|
import MailIcon from '@mui/icons-material/Mail';
|
|
19
|
-
import { StreamSuiteLogo } from '../../../assets/Images';
|
|
19
|
+
import { StreamSuiteLogo, NotchSVG } from '../../../assets/Images';
|
|
20
20
|
import { AppSwitcher } from '@learningpool/app-switcher';
|
|
21
21
|
import { ChevronLeft, ChevronRight } from '@mui/icons-material';
|
|
22
|
-
import { DRAWER_WIDTH,
|
|
23
|
-
var
|
|
22
|
+
import { DRAWER_WIDTH, DrawerHeader, ListItem, DrawerToggle, DrawerToggleHitboxContent, ListItemButton, ListItemAvatar, ListItemIcon, ListItemText, StyledNav, DrawerShadow, StyledAside, NotchContainer, NotchBackground, NotchBackgroundClip, NotchSeemMask, paperStyles, closedMixin, openedMixin } from './VerticalNavigationStyles';
|
|
23
|
+
var StyledDrawer = styled(Drawer)(function (_a) {
|
|
24
24
|
var theme = _a.theme, open = _a.open;
|
|
25
|
-
return (__assign(__assign({
|
|
25
|
+
return (__assign(__assign({ boxShadow: 'none', boxSizing: 'border-box', flexShrink: 0, whiteSpace: 'nowrap', width: DRAWER_WIDTH.Expanded }, (open && __assign(__assign({}, openedMixin()), { '& .MuiDrawer-paper': __assign(__assign({}, paperStyles(theme)), openedMixin()) }))), (!open && __assign(__assign({}, closedMixin(theme)), { '& .MuiDrawer-paper': __assign(__assign({}, paperStyles(theme)), closedMixin(theme)) }))));
|
|
26
26
|
});
|
|
27
27
|
var VerticalNavigation = function (props) {
|
|
28
|
-
var _a;
|
|
28
|
+
var _a, _b;
|
|
29
29
|
var theme = useTheme();
|
|
30
30
|
var items = props.items, secondaryItems = props.secondaryItems, hasStreamHome = props.hasStreamHome, logo = props.logo, logoText = props.logoText;
|
|
31
|
+
var propIsDrawerOpen = typeof (props === null || props === void 0 ? void 0 : props.isDrawerOpen) === 'boolean' ? props.isDrawerOpen : undefined;
|
|
31
32
|
var avatarName = (_a = props === null || props === void 0 ? void 0 : props.avatarName) !== null && _a !== void 0 ? _a : 'Avatar name';
|
|
32
|
-
var
|
|
33
|
+
var _c = React.useState(propIsDrawerOpen !== null && propIsDrawerOpen !== void 0 ? propIsDrawerOpen : false), isDrawerOpen = _c[0], setIsDrawerOpen = _c[1];
|
|
33
34
|
var isMediumAndUp = useMediaQuery(theme.breakpoints.up('sm'));
|
|
34
35
|
var logoHeight = isMediumAndUp ? '46px' : '38px';
|
|
35
36
|
var logoWidth = isMediumAndUp ? '46px' : '38px';
|
|
37
|
+
useEffect(function () { return setIsDrawerOpen(propIsDrawerOpen !== null && propIsDrawerOpen !== void 0 ? propIsDrawerOpen : false); }, [propIsDrawerOpen]);
|
|
38
|
+
useEffect(function () { return setAvatarInitials(handleAvatarInitials(avatarName)); }, [avatarName]);
|
|
39
|
+
var handleAvatarInitials = function (avatarName) {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
var firstInitial = avatarName.split('')[0] || '';
|
|
42
|
+
var secondInitial = '';
|
|
43
|
+
if (((_a = avatarName.split(' ')) === null || _a === void 0 ? void 0 : _a.length) > 1) {
|
|
44
|
+
firstInitial = avatarName.split(' ')[0][0];
|
|
45
|
+
if (((_b = avatarName.split(' ')[1]) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
46
|
+
secondInitial = avatarName === null || avatarName === void 0 ? void 0 : avatarName.split(' ')[1][0];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return "".concat(firstInitial).concat(secondInitial);
|
|
50
|
+
};
|
|
51
|
+
var _d = React.useState((_b = handleAvatarInitials(avatarName)) !== null && _b !== void 0 ? _b : 'AN'), avatarInitials = _d[0], setAvatarInitials = _d[1];
|
|
36
52
|
var toggleDrawer = function (open) { return function (event) {
|
|
37
53
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
38
54
|
if (event.type === 'keydown') {
|
|
@@ -49,74 +65,32 @@ var VerticalNavigation = function (props) {
|
|
|
49
65
|
flex: '1 auto',
|
|
50
66
|
flexDirection: 'column',
|
|
51
67
|
justifyContent: 'flex-start'
|
|
52
|
-
} }, { children: [_jsxs(DrawerHeader, { children: [logo
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
?
|
|
62
|
-
: theme.palette.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
height: 'auto',
|
|
67
|
-
marginTop: "-".concat(theme.spacing(0.5)),
|
|
68
|
-
position: 'relative',
|
|
69
|
-
transition: 'width 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important',
|
|
70
|
-
width: '100%',
|
|
71
|
-
zIndex: '-1'
|
|
72
|
-
} }, { children: [_jsx("div", { style: {
|
|
73
|
-
flex: '1',
|
|
74
|
-
width: 'auto',
|
|
75
|
-
height: 'auto',
|
|
76
|
-
backgroundColor: theme.palette.mode === 'dark'
|
|
77
|
-
? theme.palette.primary.main
|
|
78
|
-
: theme.palette.background.paper
|
|
79
|
-
} }), _jsx("div", { style: {
|
|
80
|
-
display: 'flex',
|
|
81
|
-
width: '45px',
|
|
82
|
-
height: '85px',
|
|
83
|
-
clipPath: 'url("#notch")',
|
|
84
|
-
backgroundColor: theme.palette.mode === 'dark'
|
|
85
|
-
? theme.palette.primary.main
|
|
86
|
-
: theme.palette.background.paper
|
|
87
|
-
} }), _jsx("div", { style: {
|
|
88
|
-
backgroundColor: theme.palette.mode === 'dark'
|
|
89
|
-
? theme.palette.primary.main
|
|
90
|
-
: theme.palette.background.paper,
|
|
91
|
-
height: '90px',
|
|
92
|
-
position: 'absolute',
|
|
93
|
-
right: '25px',
|
|
94
|
-
top: '-2px',
|
|
95
|
-
width: 'calc(100% - 25px)'
|
|
96
|
-
} })] })), _jsx("svg", __assign({ className: 'notch-svg', style: {
|
|
97
|
-
width: '0',
|
|
98
|
-
height: '0',
|
|
99
|
-
position: 'absolute'
|
|
100
|
-
} }, { children: _jsx("clipPath", __assign({ id: 'notch', clipPathUnits: 'objectBoundingBox' }, { children: _jsx("path", { d: 'M1,0 H0 v1 h1 v-0.105 c-0.017,-0.074,-0.109,-0.132,-0.168,-0.146 l-0.008,-0.002 a0.5,0.265,0,0,1,0.006,-0.493 c0.062,-0.015,0.16,-0.079,0.169,-0.158 V0' }) })) })), _jsxs("nav", __assign({ style: {
|
|
101
|
-
display: 'flex',
|
|
102
|
-
flex: '1 auto',
|
|
103
|
-
flexDirection: 'column',
|
|
104
|
-
justifyContent: 'flex-start'
|
|
105
|
-
} }, { children: [_jsx(List, __assign({ sx: {
|
|
68
|
+
} }, { children: [_jsxs(DrawerHeader, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: logoText !== null && logoText !== void 0 ? logoText : '', placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: logo
|
|
69
|
+
? typeof logo === 'string'
|
|
70
|
+
? (_jsx("img", { src: logo, height: logoHeight, width: logoWidth, style: {
|
|
71
|
+
marginRight: isMediumAndUp ? '20px' : '24px'
|
|
72
|
+
}, alt: "Site Logo" }))
|
|
73
|
+
: logo
|
|
74
|
+
: (_jsx(StreamSuiteLogo, { style: {
|
|
75
|
+
height: logoHeight,
|
|
76
|
+
width: logoWidth,
|
|
77
|
+
marginRight: isMediumAndUp ? '20px' : '24px',
|
|
78
|
+
fill: theme.palette.mode === 'dark'
|
|
79
|
+
? theme.palette.primary.contrastText
|
|
80
|
+
: theme.palette.primary.main
|
|
81
|
+
} })) })), _jsx(ListItemText, { primary: logoText !== null && logoText !== void 0 ? logoText : '', isDrawerOpen: isDrawerOpen })] }), _jsxs(NotchContainer, { children: [_jsx(NotchBackground, {}), _jsx(NotchBackgroundClip, {}), _jsx(NotchSeemMask, {})] }), _jsx(NotchSVG, { style: { height: '0', position: 'absolute', width: '0' } }), _jsxs(StyledNav, { children: [_jsx(List, __assign({ sx: {
|
|
106
82
|
height: '100%',
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
marginTop: "-".concat(theme.spacing(0.5)),
|
|
111
|
-
overflow: 'hidden'
|
|
112
|
-
} }, { children: items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
|
83
|
+
width: DRAWER_WIDTH.Expanded,
|
|
84
|
+
marginTop: "-".concat(theme.spacing(0.5))
|
|
85
|
+
} }, { children: items && items.length > 0 && items.map(function (item, index) {
|
|
113
86
|
var _a;
|
|
114
87
|
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
|
|
115
88
|
// @ts-expect-error
|
|
116
89
|
, __assign({
|
|
117
90
|
// @ts-expect-error
|
|
118
|
-
component: Link, onClick: item.onClick, isActive: item.isActive }, { children: [_jsx(ListItemIcon, { children: (_a = item.icon) !== null && _a !== void 0 ? _a : _jsx(MailIcon, {}) }), _jsx(ListItemText, { primary: item.label })] }), item.label) })));
|
|
91
|
+
component: Link, onClick: item.onClick, isActive: item.isActive, isDrawerOpen: isDrawerOpen }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: item.label, placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true }, { children: (_a = item.icon) !== null && _a !== void 0 ? _a : _jsx(MailIcon, {}) })) })), _jsx(ListItemText, { primary: item.label, isDrawerOpen: isDrawerOpen, index: index })] }), item.label) })));
|
|
119
92
|
}) })), _jsxs(List, __assign({ sx: {
|
|
93
|
+
width: DRAWER_WIDTH.Expanded,
|
|
120
94
|
marginTop: 'auto',
|
|
121
95
|
backgroundColor: theme.palette.mode === 'dark'
|
|
122
96
|
? theme.palette.primary.main
|
|
@@ -125,57 +99,32 @@ var VerticalNavigation = function (props) {
|
|
|
125
99
|
? (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ sx: {
|
|
126
100
|
minHeight: 48,
|
|
127
101
|
justifyContent: isDrawerOpen ? 'initial' : 'center'
|
|
128
|
-
} }, { children: [_jsx(ListItemIcon, __assign({ sx: {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
: null, secondaryItems
|
|
102
|
+
} }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: 'App switcher', placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: _jsx(ListItemIcon, __assign({ sx: {
|
|
103
|
+
minWidth: 0,
|
|
104
|
+
mr: isDrawerOpen ? 2.5 : 'auto',
|
|
105
|
+
justifyContent: 'center'
|
|
106
|
+
} }, { children: _jsx(AppSwitcher, { apiKey: (_b = (_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.REACT_APP_STREAM_HOME_API_KEY) !== null && _b !== void 0 ? _b : '7wxswYRq238tj65RVina32VSzmpGamju7Edvbrab', baseUrl: (_d = (_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c.REACT_APP_STREAM_HOME_API_URL) !== null && _d !== void 0 ? _d : 'https://6cqjg9ua08.execute-api.us-east-1.amazonaws.com/dev-api', token: 'hfcfgcgfcgfhcfhgcfg' }) })) })), _jsx(ListItemText, { primary: 'App switcher', isDrawerOpen: isDrawerOpen })] })) })))
|
|
107
|
+
: null, secondaryItems && secondaryItems.length > 0 && secondaryItems.map(function (item, index) {
|
|
134
108
|
var _a;
|
|
135
|
-
return (_jsx(ListItem, { children: _jsxs(ListItemButton
|
|
109
|
+
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
|
|
136
110
|
// @ts-expect-error
|
|
137
111
|
, __assign({
|
|
138
112
|
// @ts-expect-error
|
|
139
|
-
component: Link, onClick: item.onClick, isActive: item.isActive }, { children: [_jsx(ListItemIcon, { children: (_a = item.icon) !== null && _a !== void 0 ? _a : _jsx(MailIcon, {}) }), _jsx(ListItemText, { primary: item.label })] }), item.label) }));
|
|
140
|
-
}),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
: theme.palette.primary.main
|
|
150
|
-
} }, { children: [avatarName.split(' ')[0][0], avatarName.split(' ')[1][0]] })) })), _jsx(ListItemText, { primary: avatarName })] })) }))] }))] }))] })));
|
|
113
|
+
component: Link, onClick: item.onClick, isActive: item.isActive, isDrawerOpen: isDrawerOpen, index: index }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: item.label, placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true }, { children: (_a = item.icon) !== null && _a !== void 0 ? _a : _jsx(MailIcon, {}) })) })), _jsx(ListItemText, { primary: item.label, isDrawerOpen: isDrawerOpen })] }), item.label) })));
|
|
114
|
+
}), avatarName
|
|
115
|
+
? (_jsx(ListItem, __assign({ disablePadding: true, sx: {
|
|
116
|
+
overflow: 'hidden'
|
|
117
|
+
} }, { children: _jsxs(ListItemAvatar, __assign({ isDrawerOpen: isDrawerOpen, component: Link }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: avatarName, placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true, sx: { mr: 3 } }, { children: _jsx(Avatar, __assign({ sx: {
|
|
118
|
+
bgcolor: theme.palette.mode === 'dark'
|
|
119
|
+
? theme.palette.primary.contrastText
|
|
120
|
+
: theme.palette.primary.main
|
|
121
|
+
} }, { children: avatarInitials })) })) })), _jsx(ListItemText, { primary: avatarName, isDrawerOpen: isDrawerOpen })] })) })))
|
|
122
|
+
: null] }))] })] })));
|
|
151
123
|
};
|
|
152
|
-
return (_jsxs(
|
|
153
|
-
position: 'fixed',
|
|
154
|
-
top: '0',
|
|
155
|
-
left: isDrawerOpen
|
|
156
|
-
? '212px'
|
|
157
|
-
: (isMediumAndUp ? '27px' : '19px'),
|
|
158
|
-
transition: 'left 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms',
|
|
159
|
-
content: '',
|
|
160
|
-
background: 'rgba(0,0,0,0.125)',
|
|
161
|
-
height: '100%',
|
|
162
|
-
width: '40px',
|
|
163
|
-
display: 'block',
|
|
164
|
-
visibility: 'visible',
|
|
165
|
-
filter: 'blur(13px)'
|
|
166
|
-
} }), _jsx(Modal, __assign({ keepMounted: true, disablePortal: true, open: isDrawerOpen, onClose: toggleDrawer(false) }, { children: _jsxs(Drawer, __assign({ "aria-label": 'Navigation Menu', id: 'vertical-navigation', anchor: 'left', open: isDrawerOpen, onClose: toggleDrawer(false), ModalProps: {
|
|
124
|
+
return (_jsxs(StyledAside, { children: [_jsx(DrawerShadow, { className: 'drawerShadow', "aria-hidden": 'true', isDrawerOpen: isDrawerOpen }), _jsx(Modal, __assign({ "aria-hidden": false, keepMounted: true, disablePortal: true, open: isDrawerOpen, onClose: toggleDrawer(false) }, { children: _jsxs(StyledDrawer, __assign({ "aria-label": 'Navigation Menu', id: 'vertical-navigation', anchor: 'left', open: isDrawerOpen, onClose: toggleDrawer(false), ModalProps: {
|
|
167
125
|
keepMounted: true
|
|
168
|
-
}, variant: 'permanent', sx: {
|
|
169
|
-
|
|
170
|
-
background: 'transparent none',
|
|
171
|
-
boxShadow: 'none',
|
|
172
|
-
visibility: 'visible !important',
|
|
173
|
-
transform: 'translateX(0) !important',
|
|
174
|
-
overflow: 'hidden',
|
|
175
|
-
transition: 'width 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important'
|
|
176
|
-
}
|
|
177
|
-
} }, { children: [_jsx(DrawerToggle, __assign({ onClick: toggleDrawer(!isDrawerOpen), "aria-label": isDrawerOpen ? 'Close Navigation Menu' : 'Open Navigation Menu', "aria-expanded": isDrawerOpen ? 'true' : 'false', "aria-controls": "vertical-navigation", sx: {
|
|
178
|
-
left: isDrawerOpen ? '229px' : (isMediumAndUp ? '44px' : '36px')
|
|
126
|
+
}, variant: 'permanent' }, { children: [_jsx(DrawerToggle, __assign({ onClick: toggleDrawer(!isDrawerOpen), "aria-label": isDrawerOpen ? 'Close Navigation Menu' : 'Open Navigation Menu', "aria-expanded": isDrawerOpen ? 'true' : 'false', "aria-controls": "vertical-navigation", sx: {
|
|
127
|
+
left: isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded - 21, "px") : (isMediumAndUp ? '44px' : '36px')
|
|
179
128
|
} }, { children: _jsx(DrawerToggleHitboxContent, { children: isDrawerOpen
|
|
180
129
|
? (_jsx(ChevronLeft, { sx: {
|
|
181
130
|
fontSize: '1.75rem',
|
|
@@ -7,7 +7,7 @@ export declare const DRAWER_WIDTH: {
|
|
|
7
7
|
Expanded: number;
|
|
8
8
|
};
|
|
9
9
|
export declare const paperStyles: (theme: Theme) => CSSObject;
|
|
10
|
-
export declare const openedMixin: (
|
|
10
|
+
export declare const openedMixin: () => CSSObject;
|
|
11
11
|
export declare const closedMixin: (theme: Theme) => CSSObject;
|
|
12
12
|
export declare const DrawerHeader: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
13
|
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
@@ -22,16 +22,7 @@ export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
|
22
22
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
|
|
23
23
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
24
24
|
}, "className" | "style" | "classes" | "button" | "children" | "sx" | "alignItems" | "disabled" | "autoFocus" | "selected" | "dense" | "components" | "componentsProps" | "disablePadding" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
25
|
-
export declare const
|
|
26
|
-
children?: import("react").ReactNode;
|
|
27
|
-
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
28
|
-
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | "default" | undefined;
|
|
29
|
-
disabled?: boolean | undefined;
|
|
30
|
-
disableFocusRipple?: boolean | undefined;
|
|
31
|
-
edge?: false | "end" | "start" | undefined;
|
|
32
|
-
size?: "small" | "large" | "medium" | undefined;
|
|
33
|
-
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
34
|
-
} & Omit<{
|
|
25
|
+
export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
|
|
35
26
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
36
27
|
centerRipple?: boolean | undefined;
|
|
37
28
|
children?: import("react").ReactNode;
|
|
@@ -47,11 +38,12 @@ export declare const DrawerToggle: import("@emotion/styled").StyledComponent<{
|
|
|
47
38
|
tabIndex?: number | undefined;
|
|
48
39
|
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
49
40
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
50
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").
|
|
51
|
-
ref?: ((instance:
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
42
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
43
|
+
}, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
44
|
+
isDrawerOpen?: any;
|
|
45
|
+
}, {}, {}>;
|
|
46
|
+
export declare const ListItemAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
|
|
55
47
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
56
48
|
centerRipple?: boolean | undefined;
|
|
57
49
|
children?: import("react").ReactNode;
|
|
@@ -69,8 +61,28 @@ export declare const ListItemButton: import("@emotion/styled").StyledComponent<i
|
|
|
69
61
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
70
62
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
71
63
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
72
|
-
}, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<Theme
|
|
73
|
-
|
|
64
|
+
}, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
65
|
+
isDrawerOpen?: any;
|
|
66
|
+
} & {
|
|
67
|
+
children?: import("react").ReactNode;
|
|
68
|
+
} & {
|
|
69
|
+
isDrawerOpen?: any;
|
|
70
|
+
}, {}, {}>;
|
|
71
|
+
export declare const ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
72
|
+
export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
73
|
+
isDrawerOpen?: any;
|
|
74
|
+
index?: number | undefined;
|
|
75
|
+
}, {}, {}>;
|
|
76
|
+
export declare const DrawerToggle: import("@emotion/styled").StyledComponent<{
|
|
77
|
+
children?: import("react").ReactNode;
|
|
78
|
+
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
79
|
+
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | "default" | undefined;
|
|
80
|
+
disabled?: boolean | undefined;
|
|
81
|
+
disableFocusRipple?: boolean | undefined;
|
|
82
|
+
edge?: false | "end" | "start" | undefined;
|
|
83
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
84
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
85
|
+
} & Omit<{
|
|
74
86
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
75
87
|
centerRipple?: boolean | undefined;
|
|
76
88
|
children?: import("react").ReactNode;
|
|
@@ -86,9 +98,51 @@ export declare const ListItemAvatar: import("@emotion/styled").StyledComponent<i
|
|
|
86
98
|
tabIndex?: number | undefined;
|
|
87
99
|
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
88
100
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
89
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").
|
|
90
|
-
ref?: ((instance:
|
|
91
|
-
},
|
|
101
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
102
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
103
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "size" | "edge"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
104
|
+
export declare const DrawerToggleHitboxContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
105
|
+
export declare const StyledAside: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
106
|
+
export declare const StyledNav: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
107
|
+
export declare const DrawerShadow: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
92
108
|
children?: import("react").ReactNode;
|
|
109
|
+
component?: import("react").ElementType<any> | undefined;
|
|
110
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
111
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
112
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
113
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
114
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
115
|
+
isDrawerOpen?: any;
|
|
93
116
|
}, {}, {}>;
|
|
94
|
-
export declare const
|
|
117
|
+
export declare const NotchContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
118
|
+
children?: import("react").ReactNode;
|
|
119
|
+
component?: import("react").ElementType<any> | undefined;
|
|
120
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
121
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
122
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
123
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
124
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
125
|
+
export declare const NotchBackground: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
126
|
+
children?: import("react").ReactNode;
|
|
127
|
+
component?: import("react").ElementType<any> | undefined;
|
|
128
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
129
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
130
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
131
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
132
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
133
|
+
export declare const NotchBackgroundClip: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
134
|
+
children?: import("react").ReactNode;
|
|
135
|
+
component?: import("react").ElementType<any> | undefined;
|
|
136
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
137
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
138
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
139
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
140
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
141
|
+
export declare const NotchSeemMask: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
142
|
+
children?: import("react").ReactNode;
|
|
143
|
+
component?: import("react").ElementType<any> | undefined;
|
|
144
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
145
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
146
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
147
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
148
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
@@ -9,46 +9,53 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { ListItem as SSListItem, ListItemButton as SSListItemButton, ListItemIcon as SSListItemIcon, IconButton } from '../../../index';
|
|
12
|
+
import { ListItem as SSListItem, ListItemButton as SSListItemButton, ListItemText as SSListItemText, ListItemIcon as SSListItemIcon, IconButton } from '../../../index';
|
|
13
|
+
import { Box } from '@mui/material';
|
|
13
14
|
import { styled } from '@mui/material/styles';
|
|
15
|
+
import { motion } from '../../../utils/theme';
|
|
14
16
|
export var DRAWER_WIDTH = {
|
|
15
17
|
Collapsed: 60,
|
|
16
|
-
Expanded:
|
|
18
|
+
Expanded: 300
|
|
19
|
+
};
|
|
20
|
+
var ICON = {
|
|
21
|
+
Height: 40,
|
|
22
|
+
Width: 57
|
|
17
23
|
};
|
|
18
24
|
export var paperStyles = function (theme) { return ({
|
|
19
|
-
|
|
20
|
-
? theme.palette.primary.main
|
|
21
|
-
: theme.palette.background.paper,
|
|
25
|
+
background: 'transparent none',
|
|
22
26
|
border: 0,
|
|
27
|
+
boxShadow: 'none',
|
|
23
28
|
color: theme.palette.mode === 'dark'
|
|
24
29
|
? theme.palette.primary.contrastText
|
|
25
30
|
: theme.palette.getContrastText(theme.palette.background.paper),
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
overflow: 'visible !important',
|
|
32
|
+
transform: 'translateX(0) !important',
|
|
33
|
+
transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
34
|
+
visibility: 'visible'
|
|
28
35
|
}); };
|
|
29
|
-
export var openedMixin = function (
|
|
30
|
-
|
|
31
|
-
transition: 'width 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important',
|
|
36
|
+
export var openedMixin = function () { return ({
|
|
37
|
+
boxShadow: 'none',
|
|
32
38
|
overflowX: 'visible',
|
|
33
|
-
|
|
39
|
+
transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
40
|
+
width: DRAWER_WIDTH.Expanded
|
|
34
41
|
}); };
|
|
35
42
|
export var closedMixin = function (theme) {
|
|
36
43
|
var _a;
|
|
37
44
|
return (_a = {
|
|
38
|
-
|
|
45
|
+
boxShadow: theme.shadows[1],
|
|
46
|
+
overflowX: 'visible',
|
|
47
|
+
transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
39
48
|
width: "calc(".concat(theme.spacing(7), " + 1px)")
|
|
40
49
|
},
|
|
41
50
|
_a[theme.breakpoints.up('sm')] = {
|
|
42
51
|
width: "calc(".concat(theme.spacing(8), " + 1px)")
|
|
43
52
|
},
|
|
44
|
-
_a.overflowX = 'visible',
|
|
45
|
-
_a.boxShadow = theme.shadows[1],
|
|
46
53
|
_a);
|
|
47
54
|
};
|
|
48
55
|
export var DrawerHeader = styled('div')(function (_a) {
|
|
49
56
|
var _b;
|
|
50
57
|
var theme = _a.theme;
|
|
51
|
-
return (__assign(__assign({
|
|
58
|
+
return (__assign(__assign({ alignItems: 'center', display: 'flex', justifyContent: 'flex-start', overflow: 'hidden', padding: "".concat(theme.spacing(1), " 10px 0") }, theme.mixins.toolbar), (_b = { backgroundColor: theme.palette.mode === 'dark'
|
|
52
59
|
? theme.palette.primary.main
|
|
53
60
|
: theme.palette.background.paper, minHeight: '56px !important' }, _b[theme.breakpoints.up('sm')] = {
|
|
54
61
|
minHeight: '64px !important'
|
|
@@ -57,36 +64,113 @@ export var DrawerHeader = styled('div')(function (_a) {
|
|
|
57
64
|
export var ListItem = styled(SSListItem)(function (_a) {
|
|
58
65
|
var theme = _a.theme;
|
|
59
66
|
return ({
|
|
67
|
+
alignItems: 'flex-start',
|
|
60
68
|
color: theme.palette.mode === 'dark'
|
|
61
69
|
? theme.palette.primary.contrastText
|
|
62
|
-
: theme.palette.getContrastText(theme.palette.background.paper)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
: theme.palette.getContrastText(theme.palette.background.paper),
|
|
71
|
+
overflow: 'hidden',
|
|
72
|
+
minHeight: 48,
|
|
73
|
+
'& .MuiListItemIcon-root': {
|
|
74
|
+
marginTop: theme.spacing(0.5)
|
|
75
|
+
},
|
|
76
|
+
'& .MuiListItemText-root .MuiTypography-root': {
|
|
77
|
+
whiteSpace: 'normal'
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
export var ListItemButton = styled(SSListItemButton, {
|
|
82
|
+
shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
|
|
83
|
+
})(function (_a) {
|
|
84
|
+
var _b;
|
|
85
|
+
var theme = _a.theme, isDrawerOpen = _a.isDrawerOpen;
|
|
86
|
+
return (_b = {
|
|
87
|
+
alignItems: 'flex-start',
|
|
88
|
+
color: theme.palette.mode === 'dark'
|
|
89
|
+
? theme.palette.primary.contrastText
|
|
90
|
+
: theme.palette.getContrastText(theme.palette.background.paper),
|
|
91
|
+
display: 'flex',
|
|
92
|
+
minHeight: 48,
|
|
93
|
+
maxHeight: isDrawerOpen ? '200px' : ICON.Height + 8,
|
|
94
|
+
textDecoration: 'none',
|
|
95
|
+
textTransform: 'none',
|
|
96
|
+
transition: "max-height 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
97
|
+
padding: 0,
|
|
98
|
+
width: '100%'
|
|
99
|
+
},
|
|
100
|
+
_b[theme.breakpoints.up('sm')] = {
|
|
101
|
+
maxHeight: isDrawerOpen ? '200px' : ICON.Height + 8
|
|
102
|
+
},
|
|
103
|
+
_b);
|
|
104
|
+
});
|
|
105
|
+
export var ListItemAvatar = styled(ListItemButton, {
|
|
106
|
+
shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
|
|
107
|
+
})(function (_a) {
|
|
108
|
+
var isDrawerOpen = _a.isDrawerOpen;
|
|
109
|
+
return ({
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
minHeight: 52,
|
|
112
|
+
maxHeight: isDrawerOpen ? '200px' : '48px',
|
|
113
|
+
transition: "max-height 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
114
|
+
'& .MuiListItemIcon-root': {
|
|
115
|
+
justifyContent: 'center',
|
|
116
|
+
minWidth: 0,
|
|
117
|
+
margin: 0
|
|
118
|
+
},
|
|
119
|
+
'& .MuiAvatar-root': {
|
|
120
|
+
height: 32,
|
|
121
|
+
width: 32
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
export var ListItemIcon = styled(SSListItemIcon)(function (_a) {
|
|
126
|
+
var _b;
|
|
127
|
+
var theme = _a.theme;
|
|
128
|
+
return (_b = {
|
|
129
|
+
alignItems: 'center',
|
|
130
|
+
color: theme.palette.mode === 'dark'
|
|
131
|
+
? theme.palette.primary.contrastText
|
|
132
|
+
: theme.palette.getContrastText(theme.palette.background.paper),
|
|
133
|
+
height: ICON.Height + 8,
|
|
134
|
+
justifyContent: 'center',
|
|
135
|
+
marginTop: '0 !important',
|
|
136
|
+
minWidth: ICON.Width,
|
|
137
|
+
width: ICON.Width
|
|
138
|
+
},
|
|
139
|
+
_b[theme.breakpoints.up('sm')] = {
|
|
140
|
+
minWidth: ICON.Width + 8,
|
|
141
|
+
width: ICON.Width + 8
|
|
142
|
+
},
|
|
143
|
+
_b);
|
|
144
|
+
});
|
|
145
|
+
export var ListItemText = styled(SSListItemText, {
|
|
146
|
+
shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
|
|
147
|
+
})(function (_a) {
|
|
148
|
+
var isDrawerOpen = _a.isDrawerOpen, index = _a.index;
|
|
149
|
+
return ({
|
|
150
|
+
opacity: isDrawerOpen ? 1 : 0,
|
|
151
|
+
padding: '0.5rem',
|
|
152
|
+
transition: "opacity 225ms ".concat(motion.easeInOut, " ").concat(index !== undefined ? index / 50 : 0.02, "s !important")
|
|
69
153
|
});
|
|
70
154
|
});
|
|
71
155
|
export var DrawerToggle = styled(IconButton)(function (_a) {
|
|
72
156
|
var _b;
|
|
73
157
|
var theme = _a.theme;
|
|
74
158
|
return (_b = {
|
|
75
|
-
width: '44px',
|
|
76
|
-
height: '44px',
|
|
77
|
-
position: 'fixed',
|
|
78
|
-
zIndex: theme.zIndex.drawer + 1,
|
|
79
159
|
background: 'transparent',
|
|
160
|
+
height: '44px',
|
|
80
161
|
paddingLeft: theme.spacing(2),
|
|
81
162
|
paddingRight: theme.spacing(2),
|
|
82
|
-
|
|
163
|
+
position: 'fixed',
|
|
164
|
+
top: '80.5px',
|
|
165
|
+
transition: "all 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
166
|
+
width: '44px',
|
|
167
|
+
zIndex: theme.zIndex.drawer + 1
|
|
83
168
|
},
|
|
84
169
|
_b[theme.breakpoints.up('sm')] = {
|
|
85
170
|
paddingLeft: theme.spacing(2.5),
|
|
86
171
|
paddingRight: theme.spacing(2.5),
|
|
87
172
|
top: '88.5px'
|
|
88
173
|
},
|
|
89
|
-
_b.transition = 'all 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important',
|
|
90
174
|
_b);
|
|
91
175
|
});
|
|
92
176
|
export var DrawerToggleHitboxContent = styled('span')(function (_a) {
|
|
@@ -102,46 +186,90 @@ export var DrawerToggleHitboxContent = styled('span')(function (_a) {
|
|
|
102
186
|
width: '1.75rem'
|
|
103
187
|
});
|
|
104
188
|
});
|
|
105
|
-
export var
|
|
106
|
-
|
|
189
|
+
export var StyledAside = styled('aside')(function () { return ({}); });
|
|
190
|
+
export var StyledNav = styled('nav')(function (_a) {
|
|
107
191
|
var theme = _a.theme;
|
|
192
|
+
return ({
|
|
193
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
194
|
+
? theme.palette.primary.main
|
|
195
|
+
: theme.palette.background.paper,
|
|
196
|
+
display: 'flex',
|
|
197
|
+
flex: '1 auto',
|
|
198
|
+
flexDirection: 'column',
|
|
199
|
+
justifyContent: 'flex-start',
|
|
200
|
+
marginTop: '-1px',
|
|
201
|
+
overflow: 'hidden'
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
export var DrawerShadow = styled(Box, {
|
|
205
|
+
shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
|
|
206
|
+
})(function (_a) {
|
|
207
|
+
var _b;
|
|
208
|
+
var theme = _a.theme, isDrawerOpen = _a.isDrawerOpen;
|
|
108
209
|
return (_b = {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
210
|
+
background: 'rgba(0,0,0,0.125)',
|
|
211
|
+
content: '""',
|
|
212
|
+
display: 'block',
|
|
213
|
+
filter: 'blur(13px)',
|
|
214
|
+
height: '100%',
|
|
215
|
+
left: isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded - 38, "px") : "".concat(DRAWER_WIDTH.Collapsed - 41, "px"),
|
|
216
|
+
position: 'fixed',
|
|
217
|
+
top: '0',
|
|
218
|
+
transition: "left 225ms ".concat(motion.easeInOut, " 0ms"),
|
|
219
|
+
visibility: 'visible',
|
|
220
|
+
width: '40px'
|
|
117
221
|
},
|
|
118
222
|
_b[theme.breakpoints.up('sm')] = {
|
|
119
|
-
|
|
120
|
-
paddingRight: theme.spacing(2.5)
|
|
223
|
+
left: isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded - 38, "px") : "".concat(DRAWER_WIDTH.Collapsed - 33, "px")
|
|
121
224
|
},
|
|
122
|
-
_b.width = '100%',
|
|
123
225
|
_b);
|
|
124
226
|
});
|
|
125
|
-
export var
|
|
227
|
+
export var NotchContainer = styled(Box)(function (_a) {
|
|
126
228
|
var theme = _a.theme;
|
|
127
229
|
return ({
|
|
128
|
-
|
|
129
|
-
'
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
width: 32
|
|
137
|
-
}
|
|
230
|
+
display: 'flex',
|
|
231
|
+
justifyContent: 'flex-end',
|
|
232
|
+
height: 'auto',
|
|
233
|
+
marginTop: "-".concat(theme.spacing(0.5)),
|
|
234
|
+
position: 'relative',
|
|
235
|
+
transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
236
|
+
width: '100%',
|
|
237
|
+
zIndex: '-1'
|
|
138
238
|
});
|
|
139
239
|
});
|
|
140
|
-
export var
|
|
240
|
+
export var NotchBackground = styled(Box)(function (_a) {
|
|
141
241
|
var theme = _a.theme;
|
|
142
242
|
return ({
|
|
143
|
-
|
|
144
|
-
? theme.palette.primary.
|
|
145
|
-
: theme.palette.
|
|
243
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
244
|
+
? theme.palette.primary.main
|
|
245
|
+
: theme.palette.background.paper,
|
|
246
|
+
flex: '1',
|
|
247
|
+
height: 'auto',
|
|
248
|
+
width: 'auto'
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
export var NotchBackgroundClip = styled(Box)(function (_a) {
|
|
252
|
+
var theme = _a.theme;
|
|
253
|
+
return ({
|
|
254
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
255
|
+
? theme.palette.primary.main
|
|
256
|
+
: theme.palette.background.paper,
|
|
257
|
+
clipPath: 'url("#notch")',
|
|
258
|
+
display: 'flex',
|
|
259
|
+
height: '85px',
|
|
260
|
+
width: '45px'
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
export var NotchSeemMask = styled(Box)(function (_a) {
|
|
264
|
+
var theme = _a.theme;
|
|
265
|
+
return ({
|
|
266
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
267
|
+
? theme.palette.primary.main
|
|
268
|
+
: theme.palette.background.paper,
|
|
269
|
+
height: '90px',
|
|
270
|
+
position: 'absolute',
|
|
271
|
+
right: '25px',
|
|
272
|
+
top: '-2px',
|
|
273
|
+
width: 'calc(100% - 25px)'
|
|
146
274
|
});
|
|
147
275
|
});
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"components",
|
|
10
10
|
"ui"
|
|
11
11
|
],
|
|
12
|
-
"version": "1.4.0-beta.
|
|
12
|
+
"version": "1.4.0-beta.5",
|
|
13
13
|
"private": false,
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"module": "dist/index.js",
|
|
@@ -69,19 +69,19 @@
|
|
|
69
69
|
"@babel/preset-env": "7.18.2",
|
|
70
70
|
"@babel/preset-react": "7.17.12",
|
|
71
71
|
"@babel/preset-typescript": "7.17.12",
|
|
72
|
-
"@ht2-labs/semantic-release": "3.0.
|
|
73
|
-
"@storybook/addon-a11y": "6.5.
|
|
74
|
-
"@storybook/addon-actions": "6.5.
|
|
75
|
-
"@storybook/addon-essentials": "6.5.
|
|
76
|
-
"@storybook/addon-jest": "6.5.
|
|
77
|
-
"@storybook/addon-links": "6.5.
|
|
78
|
-
"@storybook/addons": "6.5.
|
|
79
|
-
"@storybook/builder-webpack5": "6.5.
|
|
80
|
-
"@storybook/manager-webpack5": "6.5.
|
|
81
|
-
"@storybook/node-logger": "6.5.
|
|
82
|
-
"@storybook/preset-create-react-app": "4.1.
|
|
83
|
-
"@storybook/react": "6.5.
|
|
84
|
-
"@storybook/theming": "6.5.
|
|
72
|
+
"@ht2-labs/semantic-release": "3.0.5",
|
|
73
|
+
"@storybook/addon-a11y": "6.5.9",
|
|
74
|
+
"@storybook/addon-actions": "6.5.9",
|
|
75
|
+
"@storybook/addon-essentials": "6.5.9",
|
|
76
|
+
"@storybook/addon-jest": "6.5.9",
|
|
77
|
+
"@storybook/addon-links": "6.5.9",
|
|
78
|
+
"@storybook/addons": "6.5.9",
|
|
79
|
+
"@storybook/builder-webpack5": "6.5.9",
|
|
80
|
+
"@storybook/manager-webpack5": "6.5.9",
|
|
81
|
+
"@storybook/node-logger": "6.5.9",
|
|
82
|
+
"@storybook/preset-create-react-app": "4.1.2",
|
|
83
|
+
"@storybook/react": "6.5.9",
|
|
84
|
+
"@storybook/theming": "6.5.9",
|
|
85
85
|
"babel-preset-minify": "0.5.2",
|
|
86
86
|
"eslint-config-standard": "16.0.3",
|
|
87
87
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"eslint-plugin-promise": "4.3.1",
|
|
90
90
|
"source-map-explorer": "2.5.2",
|
|
91
91
|
"source-map-loader": "3.0.1",
|
|
92
|
-
"ts-node": "10.8.
|
|
92
|
+
"ts-node": "10.8.1",
|
|
93
93
|
"webpack": "5.72.1"
|
|
94
94
|
},
|
|
95
95
|
"release": {
|
package/utils/theme.d.ts
CHANGED
package/utils/theme.js
CHANGED