@learningpool/ui 1.4.0-beta.3 → 1.4.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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');
@@ -9,30 +9,46 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
- import React from 'react';
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
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 as SSDrawer, List, ListItemText } from '../../../index';
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, paperStyles, openedMixin, closedMixin, DrawerHeader, ListItem, DrawerToggle, DrawerToggleHitboxContent, ListItemButton, ListItemAvatar, ListItemIcon } from './VerticalNavigationStyles';
23
- var Drawer = styled(SSDrawer)(function (_a) {
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({ width: DRAWER_WIDTH.Expanded, flexShrink: 0, whiteSpace: 'nowrap', boxSizing: 'border-box', boxShadow: 'none' }, (open && __assign(__assign({}, openedMixin(theme)), { '& .MuiDrawer-paper': __assign(__assign({}, paperStyles(theme)), openedMixin(theme)) }))), (!open && __assign(__assign({}, closedMixin(theme)), { '& .MuiDrawer-paper': __assign(__assign({}, paperStyles(theme)), closedMixin(theme)) }))));
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 _b = React.useState(false), isDrawerOpen = _b[0], setIsDrawerOpen = _b[1];
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') {
@@ -44,151 +60,81 @@ var VerticalNavigation = function (props) {
44
60
  }; };
45
61
  var listContent = function () {
46
62
  var _a, _b, _c, _d;
47
- return (_jsxs(Box
48
- // onClick={toggleDrawer(false)}
49
- // onKeyDown={toggleDrawer(false)}
50
- , __assign({
51
- // onClick={toggleDrawer(false)}
52
- // onKeyDown={toggleDrawer(false)}
53
- sx: {
63
+ return (_jsxs(Box, __assign({ sx: {
54
64
  display: 'flex',
55
65
  flex: '1 auto',
56
66
  flexDirection: 'column',
57
67
  justifyContent: 'flex-start'
58
- } }, { children: [_jsxs(DrawerHeader, { children: [logo
59
- ? (_jsx("img", { src: logo, height: logoHeight, width: logoWidth, style: {
60
- marginRight: isMediumAndUp ? '20px' : '24px'
61
- }, alt: "Site Logo" }))
62
- : (_jsx(StreamSuiteLogo, { style: {
63
- height: logoHeight,
64
- width: logoWidth,
65
- marginRight: isMediumAndUp ? '20px' : '24px',
66
- fill: theme.palette.mode === 'dark'
67
- ? theme.palette.primary.contrastText
68
- : theme.palette.primary.main
69
- } })), _jsx(ListItemText, { primary: logoText !== null && logoText !== void 0 ? logoText : '' })] }), _jsxs("div", __assign({ style: {
70
- display: 'flex',
71
- justifyContent: 'flex-end',
72
- height: 'auto',
73
- marginTop: "-".concat(theme.spacing(0.5)),
74
- position: 'relative',
75
- transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
76
- width: '100%',
77
- zIndex: '-1'
78
- } }, { children: [_jsx("div", { style: {
79
- flex: '1',
80
- width: 'auto',
81
- height: 'auto',
82
- backgroundColor: theme.palette.mode === 'dark'
83
- ? theme.palette.primary.main
84
- : theme.palette.background.paper
85
- } }), _jsx("div", { style: {
86
- display: 'flex',
87
- width: '45px',
88
- height: '85px',
89
- clipPath: 'url("#notch")',
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: {
82
+ height: '100%',
83
+ width: DRAWER_WIDTH.Expanded,
84
+ marginTop: "-".concat(theme.spacing(0.5))
85
+ } }, { children: items && items.length > 0 && items.map(function (item, index) {
86
+ var _a;
87
+ return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
88
+ // @ts-expect-error
89
+ , __assign({
90
+ // @ts-expect-error
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) })));
92
+ }) })), _jsxs(List, __assign({ sx: {
93
+ width: DRAWER_WIDTH.Expanded,
94
+ marginTop: 'auto',
90
95
  backgroundColor: theme.palette.mode === 'dark'
91
96
  ? theme.palette.primary.main
92
97
  : theme.palette.background.paper
93
- } }), _jsx("div", { style: {
94
- backgroundColor: theme.palette.mode === 'dark'
95
- ? theme.palette.primary.main
96
- : theme.palette.background.paper,
97
- height: '90px',
98
- position: 'absolute',
99
- right: '25px',
100
- top: '-2px',
101
- width: 'calc(100% - 25px)'
102
- } })] })), _jsx("svg", __assign({ className: 'notch-svg', style: {
103
- width: '0',
104
- height: '0',
105
- position: 'absolute'
106
- } }, { 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' }) })) })), _jsx(List, __assign({ sx: {
107
- height: '100%',
108
- // padding: `${theme.spacing(0)} 10px`,
109
- backgroundColor: theme.palette.mode === 'dark'
110
- ? theme.palette.primary.main
111
- : theme.palette.background.paper,
112
- marginTop: "-".concat(theme.spacing(0.5))
113
- } }, { children: items === null || items === void 0 ? void 0 : items.map(function (item, index) {
114
- var _a;
115
- return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
116
- // @ts-expect-error
117
- , __assign({
118
- // @ts-expect-error
119
- 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) })));
120
- }) })), _jsxs(List, __assign({ sx: {
121
- marginTop: 'auto',
122
- backgroundColor: theme.palette.mode === 'dark'
123
- ? theme.palette.primary.main
124
- : theme.palette.background.paper
125
- } }, { children: [hasStreamHome
126
- ? (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ sx: {
127
- minHeight: 48,
128
- justifyContent: isDrawerOpen ? 'initial' : 'center'
129
- } }, { children: [_jsx(ListItemIcon, __assign({ sx: {
130
- minWidth: 0,
131
- mr: isDrawerOpen ? 2.5 : 'auto',
132
- justifyContent: 'center'
133
- } }, { 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', sx: { opacity: isDrawerOpen ? 1 : 0 } })] })) })))
134
- : null, secondaryItems === null || secondaryItems === void 0 ? void 0 : secondaryItems.map(function (item, index) {
135
- var _a;
136
- return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
137
- // @ts-expect-error
138
- , __assign({
139
- // @ts-expect-error
140
- 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) })));
141
- }), _jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemAvatar
142
- // @ts-expect-error
143
- , __assign({
144
- // @ts-expect-error
145
- component: Link }, { children: [_jsx(ListItemIcon, __assign({ sx: { mr: isDrawerOpen ? 3.5 : 'auto' } }, { children: _jsxs(Avatar, __assign({ sx: {
146
- bgcolor: theme.palette.mode === 'dark'
147
- ? theme.palette.primary.contrastText
148
- : theme.palette.primary.main
149
- } }, { children: [avatarName.split(' ')[0][0], avatarName.split(' ')[1][0]] })) })), _jsx(ListItemText, { primary: avatarName, sx: {
150
- opacity: isDrawerOpen ? 1 : 0,
151
- textAlign: 'left'
152
- } })] })) }))] }))] })));
98
+ } }, { children: [hasStreamHome
99
+ ? (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ sx: {
100
+ minHeight: 48,
101
+ justifyContent: isDrawerOpen ? 'initial' : 'center'
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) {
108
+ var _a;
109
+ return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
110
+ // @ts-expect-error
111
+ , __assign({
112
+ // @ts-expect-error
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] }))] })] })));
153
123
  };
154
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: 'drawerShadow', style: {
155
- position: 'fixed',
156
- top: '0',
157
- left: '27px',
158
- content: '',
159
- background: 'rgba(0,0,0,0.125)',
160
- height: '100%',
161
- width: '40px',
162
- display: 'block',
163
- visibility: 'visible',
164
- filter: 'blur(13px)'
165
- } }), _jsx(DrawerToggle, __assign({ onClick: toggleDrawer(!isDrawerOpen), "aria-label": isDrawerOpen ? 'Close drawer' : 'Open drawer', "aria-expanded": isDrawerOpen ? 'true' : 'false', "aria-controls": "vertical-navigation", sx: {
166
- left: isDrawerOpen ? '229px' : (isMediumAndUp ? '44px' : '36px')
167
- } }, { children: _jsx(DrawerToggleHitboxContent, { children: isDrawerOpen
168
- ? (_jsx(ChevronLeft, { sx: {
169
- fontSize: '1.75rem',
170
- height: '1.75rem',
171
- width: '1.75rem'
172
- } }))
173
- : (_jsx(ChevronRight, { sx: {
174
- fontSize: '1.75rem',
175
- height: '1.75rem',
176
- width: '1.75rem'
177
- } })) }) })), _jsx(Drawer, __assign({ "aria-label": "Navigation menu", id: "vertical-navigation", component: 'aside', role: "complementary", anchor: 'left', open: isDrawerOpen, onClose: toggleDrawer(false), ModalProps: {
178
- keepMounted: true
179
- }, sx: {
180
- '.MuiDrawer-paper': {
181
- background: 'transparent none',
182
- boxShadow: 'none',
183
- visibility: 'visible !important',
184
- transform: 'translateX(0) !important',
185
- // width: isDrawerOpen
186
- // ? `${DRAWER_WIDTH.Expanded}px`
187
- // : `${DRAWER_WIDTH.Collapsed}px`,
188
- // boxShadow: 'none',
189
- overflow: 'hidden',
190
- transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important'
191
- }
192
- } }, { children: listContent() }))] }));
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: {
125
+ keepMounted: true
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')
128
+ } }, { children: _jsx(DrawerToggleHitboxContent, { children: isDrawerOpen
129
+ ? (_jsx(ChevronLeft, { sx: {
130
+ fontSize: '1.75rem',
131
+ height: '1.75rem',
132
+ width: '1.75rem'
133
+ } }))
134
+ : (_jsx(ChevronRight, { sx: {
135
+ fontSize: '1.75rem',
136
+ height: '1.75rem',
137
+ width: '1.75rem'
138
+ } })) }) })), listContent()] })) }))] }));
193
139
  };
194
140
  export default VerticalNavigation;
@@ -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: (theme: Theme) => CSSObject;
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 DrawerToggle: import("@emotion/styled").StyledComponent<{
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").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
51
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
52
- }, 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>, {}, {}>;
53
- export declare const DrawerToggleHitboxContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
54
- export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
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
- export declare const ListItemAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
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").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
90
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
91
- }, "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> & {
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 ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
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,45 +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: 250
18
+ Expanded: 300
19
+ };
20
+ var ICON = {
21
+ Height: 40,
22
+ Width: 57
17
23
  };
18
24
  export var paperStyles = function (theme) { return ({
19
- backgroundColor: theme.palette.mode === 'dark'
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
- boxShadow: 'none'
31
+ overflow: 'visible !important',
32
+ transform: 'translateX(0) !important',
33
+ transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
34
+ visibility: 'visible'
27
35
  }); };
28
- export var openedMixin = function (theme) { return ({
29
- width: DRAWER_WIDTH.Expanded,
30
- transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
31
- overflowX: 'hidden',
32
- boxShadow: 'none'
36
+ export var openedMixin = function () { return ({
37
+ boxShadow: 'none',
38
+ overflowX: 'visible',
39
+ transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
40
+ width: DRAWER_WIDTH.Expanded
33
41
  }); };
34
42
  export var closedMixin = function (theme) {
35
43
  var _a;
36
44
  return (_a = {
37
- transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
45
+ boxShadow: theme.shadows[1],
46
+ overflowX: 'visible',
47
+ transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
38
48
  width: "calc(".concat(theme.spacing(7), " + 1px)")
39
49
  },
40
50
  _a[theme.breakpoints.up('sm')] = {
41
51
  width: "calc(".concat(theme.spacing(8), " + 1px)")
42
52
  },
43
- _a.overflowX = 'hidden',
44
- _a.boxShadow = theme.shadows[1],
45
53
  _a);
46
54
  };
47
55
  export var DrawerHeader = styled('div')(function (_a) {
48
56
  var _b;
49
57
  var theme = _a.theme;
50
- return (__assign(__assign({ display: 'flex', alignItems: 'center', justifyContent: 'flex-start', padding: "".concat(theme.spacing(1), " 10px 0") }, theme.mixins.toolbar), (_b = { backgroundColor: theme.palette.mode === 'dark'
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'
51
59
  ? theme.palette.primary.main
52
60
  : theme.palette.background.paper, minHeight: '56px !important' }, _b[theme.breakpoints.up('sm')] = {
53
61
  minHeight: '64px !important'
@@ -56,36 +64,113 @@ export var DrawerHeader = styled('div')(function (_a) {
56
64
  export var ListItem = styled(SSListItem)(function (_a) {
57
65
  var theme = _a.theme;
58
66
  return ({
67
+ alignItems: 'flex-start',
59
68
  color: theme.palette.mode === 'dark'
60
69
  ? theme.palette.primary.contrastText
61
- : theme.palette.getContrastText(theme.palette.background.paper)
62
- // paddingLeft: theme.spacing(2),
63
- // paddingRight: theme.spacing(2),
64
- // [theme.breakpoints.up('sm')]: {
65
- // paddingLeft: theme.spacing(2.5),
66
- // paddingRight: theme.spacing(2.5)
67
- // }
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")
68
153
  });
69
154
  });
70
155
  export var DrawerToggle = styled(IconButton)(function (_a) {
71
156
  var _b;
72
157
  var theme = _a.theme;
73
158
  return (_b = {
74
- width: '44px',
75
- height: '44px',
76
- position: 'fixed',
77
- zIndex: theme.zIndex.drawer + 1,
78
159
  background: 'transparent',
160
+ height: '44px',
79
161
  paddingLeft: theme.spacing(2),
80
162
  paddingRight: theme.spacing(2),
81
- top: '80.5px'
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
82
168
  },
83
169
  _b[theme.breakpoints.up('sm')] = {
84
170
  paddingLeft: theme.spacing(2.5),
85
171
  paddingRight: theme.spacing(2.5),
86
172
  top: '88.5px'
87
173
  },
88
- _b.transition = 'left 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
89
174
  _b);
90
175
  });
91
176
  export var DrawerToggleHitboxContent = styled('span')(function (_a) {
@@ -101,46 +186,90 @@ export var DrawerToggleHitboxContent = styled('span')(function (_a) {
101
186
  width: '1.75rem'
102
187
  });
103
188
  });
104
- export var ListItemButton = styled(SSListItemButton)(function (_a) {
105
- var _b;
189
+ export var StyledAside = styled('aside')(function () { return ({}); });
190
+ export var StyledNav = styled('nav')(function (_a) {
106
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;
107
209
  return (_b = {
108
- alignItems: 'center',
109
- color: theme.palette.mode === 'dark'
110
- ? theme.palette.primary.contrastText
111
- : theme.palette.getContrastText(theme.palette.background.paper),
112
- display: 'flex',
113
- textTransform: 'none',
114
- textDecoration: 'none',
115
- padding: "".concat(theme.spacing(1), " ").concat(theme.spacing(2))
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'
116
221
  },
117
222
  _b[theme.breakpoints.up('sm')] = {
118
- paddingLeft: theme.spacing(2.5),
119
- paddingRight: theme.spacing(2.5)
223
+ left: isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded - 38, "px") : "".concat(DRAWER_WIDTH.Collapsed - 33, "px")
120
224
  },
121
- _b.width = '100%',
122
225
  _b);
123
226
  });
124
- export var ListItemAvatar = styled(ListItemButton)(function (_a) {
227
+ export var NotchContainer = styled(Box)(function (_a) {
125
228
  var theme = _a.theme;
126
229
  return ({
127
- minHeight: 48,
128
- '& .MuiListItemIcon-root': {
129
- justifyContent: 'center',
130
- minWidth: 0,
131
- marginLeft: '-4px'
132
- },
133
- '& .MuiAvatar-root': {
134
- height: 32,
135
- width: 32
136
- }
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'
137
238
  });
138
239
  });
139
- export var ListItemIcon = styled(SSListItemIcon)(function (_a) {
240
+ export var NotchBackground = styled(Box)(function (_a) {
140
241
  var theme = _a.theme;
141
242
  return ({
142
- color: theme.palette.mode === 'dark'
143
- ? theme.palette.primary.contrastText
144
- : theme.palette.getContrastText(theme.palette.background.paper)
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)'
145
274
  });
146
275
  });
package/index.d.ts CHANGED
@@ -1,17 +1,60 @@
1
- export { default as Avatar } from './components/datadisplay/Avatar/Avatar';
2
- export { default as Button } from './components/atoms/Button/Button';
3
- export { default as IconButton } from './components/atoms/IconButton/IconButton';
4
- export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
5
- export { default as TextField } from './components/atoms/TextField/TextField';
6
- export { default as Drawer } from './components/navigation/Drawer/Drawer';
7
- export { default as List } from './components/datadisplay/List/List';
8
- export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
9
- export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
10
- export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
1
+ export { default as Accordion } from '@mui/material/Accordion';
2
+ export { default as AccordionActions } from '@mui/material/AccordionActions';
3
+ export { default as AccordionDetails } from '@mui/material/AccordionDetails';
4
+ export { default as AccordionSummary } from '@mui/material/AccordionSummary';
5
+ export { default as Alert } from '@mui/material/Alert';
6
+ export { default as AlertTitle } from '@mui/material/AlertTitle';
7
+ export { default as AppBar } from '@mui/material/AppBar';
8
+ export { default as Autocomplete } from '@mui/material/Autocomplete';
11
9
  export { default as AvatarGroup } from '@mui/material/AvatarGroup';
12
10
  export { default as Backdrop } from '@mui/material/Backdrop';
11
+ export { default as Badge } from '@mui/material/Badge';
12
+ export { default as BottomNavigation } from '@mui/material/BottomNavigation';
13
+ export { default as BottomNavigationAction } from '@mui/material/BottomNavigationAction';
14
+ export { default as Box } from '@mui/material/Box';
15
+ export { default as Breadcrumbs } from '@mui/material/Breadcrumbs';
16
+ export { default as ButtonBase } from '@mui/material/ButtonBase';
17
+ export { default as ButtonGroup } from '@mui/material/ButtonGroup';
18
+ export { default as Card } from '@mui/material/Card';
19
+ export { default as CardActionArea } from '@mui/material/CardActionArea';
20
+ export { default as CardActions } from '@mui/material/CardActions';
21
+ export { default as CardContent } from '@mui/material/CardContent';
22
+ export { default as CardHeader } from '@mui/material/CardHeader';
23
+ export { default as CardMedia } from '@mui/material/CardMedia';
24
+ export { default as Chip } from '@mui/material/Chip';
13
25
  export { default as CircularProgress } from '@mui/material/CircularProgress';
26
+ export { default as ClickAwayListener } from '@mui/material/ClickAwayListener';
27
+ export { default as Collapse } from '@mui/material/Collapse';
28
+ export { default as Container } from '@mui/material/Container';
29
+ export { default as CssBaseline } from '@mui/material/CssBaseline';
30
+ export { default as darkScrollbar } from '@mui/material/darkScrollbar';
31
+ export { default as Dialog } from '@mui/material/Dialog';
32
+ export { default as DialogActions } from '@mui/material/DialogActions';
33
+ export { default as DialogContent } from '@mui/material/DialogContent';
34
+ export { default as DialogContentText } from '@mui/material/DialogContentText';
35
+ export { default as DialogTitle } from '@mui/material/DialogTitle';
36
+ export { default as Divider } from '@mui/material/Divider';
37
+ export { default as Fab } from '@mui/material/Fab';
38
+ export { default as Fade } from '@mui/material/Fade';
39
+ export { default as FilledInput } from '@mui/material/FilledInput';
40
+ export { default as FormControl } from '@mui/material/FormControl';
41
+ export { default as FormControlLabel } from '@mui/material/FormControlLabel';
42
+ export { default as FormGroup } from '@mui/material/FormGroup';
43
+ export { default as FormHelperText } from '@mui/material/FormHelperText';
44
+ export { default as FormLabel } from '@mui/material/FormLabel';
45
+ export { default as Grid } from '@mui/material/Grid';
46
+ export { default as Grow } from '@mui/material/Grow';
47
+ export { default as Hidden } from '@mui/material/Hidden';
48
+ export { default as Icon } from '@mui/material/Icon';
49
+ export { default as ImageList } from '@mui/material/ImageList';
50
+ export { default as ImageListItem } from '@mui/material/ImageListItem';
51
+ export { default as ImageListItemBar } from '@mui/material/ImageListItemBar';
52
+ export { default as Input } from '@mui/material/Input';
53
+ export { default as InputAdornment } from '@mui/material/InputAdornment';
54
+ export { default as InputBase } from '@mui/material/InputBase';
55
+ export { default as InputLabel } from '@mui/material/InputLabel';
14
56
  export { default as LinearProgress } from '@mui/material/LinearProgress';
57
+ export { default as Link } from '@mui/material/Link';
15
58
  export { default as ListItem } from '@mui/material/ListItem';
16
59
  export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
17
60
  export { default as ListItemButton } from '@mui/material/ListItemButton';
@@ -19,4 +62,70 @@ export { default as ListItemIcon } from '@mui/material/ListItemIcon';
19
62
  export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
20
63
  export { default as ListItemText } from '@mui/material/ListItemText';
21
64
  export { default as ListSubheader } from '@mui/material/ListSubheader';
65
+ export { default as Menu } from '@mui/material/Menu';
66
+ export { default as MenuItem } from '@mui/material/MenuItem';
67
+ export { default as MenuList } from '@mui/material/MenuList';
68
+ export { default as MobileStepper } from '@mui/material/MobileStepper';
69
+ export { default as Modal } from '@mui/material/Modal';
70
+ export { default as NativeSelect } from '@mui/material/NativeSelect';
71
+ export { default as NoSsr } from '@mui/material/NoSsr';
72
+ export { default as OutlinedInput } from '@mui/material/OutlinedInput';
73
+ export { default as Pagination } from '@mui/material/Pagination';
74
+ export { default as PaginationItem } from '@mui/material/PaginationItem';
75
+ export { default as Paper } from '@mui/material/Paper';
76
+ export { default as Popover } from '@mui/material/Popover';
77
+ export { default as Popper } from '@mui/material/Popper';
78
+ export { default as Portal } from '@mui/material/Portal';
79
+ export { default as Radio } from '@mui/material/Radio';
80
+ export { default as RadioGroup } from '@mui/material/RadioGroup';
81
+ export { default as Rating } from '@mui/material/Rating';
82
+ export { default as ScopedCssBaseline } from '@mui/material/ScopedCssBaseline';
83
+ export { default as Select } from '@mui/material/Select';
84
+ export { default as Skeleton } from '@mui/material/Skeleton';
85
+ export { default as Slide } from '@mui/material/Slide';
86
+ export { default as Slider } from '@mui/material/Slider';
87
+ export { default as Snackbar } from '@mui/material/Snackbar';
88
+ export { default as SnackbarContent } from '@mui/material/SnackbarContent';
89
+ export { default as SpeedDial } from '@mui/material/SpeedDial';
90
+ export { default as SpeedDialAction } from '@mui/material/SpeedDialAction';
91
+ export { default as SpeedDialIcon } from '@mui/material/SpeedDialIcon';
92
+ export { default as Stack } from '@mui/material/Stack';
93
+ export { default as Step } from '@mui/material/Step';
94
+ export { default as StepButton } from '@mui/material/StepButton';
95
+ export { default as StepConnector } from '@mui/material/StepConnector';
96
+ export { default as StepContent } from '@mui/material/StepContent';
97
+ export { default as StepIcon } from '@mui/material/StepIcon';
98
+ export { default as StepLabel } from '@mui/material/StepLabel';
99
+ export { default as Stepper } from '@mui/material/Stepper';
100
+ export { default as SvgIcon } from '@mui/material/SvgIcon';
101
+ export { default as SwipeableDrawer } from '@mui/material/SwipeableDrawer';
102
+ export { default as Switch } from '@mui/material/Switch';
103
+ export { default as Tab } from '@mui/material/Tab';
104
+ export { default as Table } from '@mui/material/Table';
105
+ export { default as TableBody } from '@mui/material/TableBody';
106
+ export { default as TableCell } from '@mui/material/TableCell';
107
+ export { default as TableContainer } from '@mui/material/TableContainer';
108
+ export { default as TableFooter } from '@mui/material/TableFooter';
109
+ export { default as TableHead } from '@mui/material/TableHead';
110
+ export { default as TablePagination } from '@mui/material/TablePagination';
111
+ export { default as TableRow } from '@mui/material/TableRow';
112
+ export { default as TableSortLabel } from '@mui/material/TableSortLabel';
113
+ export { default as Tabs } from '@mui/material/Tabs';
114
+ export { default as TabScrollButton } from '@mui/material/TabScrollButton';
115
+ export { default as TextareaAutosize } from '@mui/material/TextareaAutosize';
116
+ export { default as ToggleButton } from '@mui/material/ToggleButton';
117
+ export { default as ToggleButtonGroup } from '@mui/material/ToggleButtonGroup';
118
+ export { default as Toolbar } from '@mui/material/Toolbar';
119
+ export { default as Typography } from '@mui/material/Typography';
120
+ export * from '@mui/x-data-grid';
121
+ export { default as Avatar } from './components/datadisplay/Avatar/Avatar';
122
+ export { default as Button } from './components/atoms/Button/Button';
123
+ export { default as IconButton } from './components/atoms/IconButton/IconButton';
124
+ export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
125
+ export { default as TextField } from './components/atoms/TextField/TextField';
126
+ export { default as Drawer } from './components/navigation/Drawer/Drawer';
127
+ export { default as List } from './components/datadisplay/List/List';
128
+ export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
129
+ export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
130
+ export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
22
131
  export { default as VerticalNavigation } from './components/navigation/VerticalNavigation/VerticalNavigation';
package/index.js CHANGED
@@ -1,19 +1,67 @@
1
- // Learning Pool intercepted
2
- export { default as Avatar } from './components/datadisplay/Avatar/Avatar';
3
- export { default as Button } from './components/atoms/Button/Button';
4
- export { default as IconButton } from './components/atoms/IconButton/IconButton';
5
- export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
6
- export { default as TextField } from './components/atoms/TextField/TextField';
7
- export { default as Drawer } from './components/navigation/Drawer/Drawer';
8
- export { default as List } from './components/datadisplay/List/List';
9
- export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
10
- export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
11
- export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
12
- // Straight through MUI
1
+ // Straight from @mui/material
2
+ export { default as Accordion } from '@mui/material/Accordion';
3
+ export { default as AccordionActions } from '@mui/material/AccordionActions';
4
+ export { default as AccordionDetails } from '@mui/material/AccordionDetails';
5
+ export { default as AccordionSummary } from '@mui/material/AccordionSummary';
6
+ export { default as Alert } from '@mui/material/Alert';
7
+ export { default as AlertTitle } from '@mui/material/AlertTitle';
8
+ export { default as AppBar } from '@mui/material/AppBar';
9
+ export { default as Autocomplete } from '@mui/material/Autocomplete';
10
+ // export { default as Avatar } from '@mui/material/Avatar'
13
11
  export { default as AvatarGroup } from '@mui/material/AvatarGroup';
14
12
  export { default as Backdrop } from '@mui/material/Backdrop';
13
+ export { default as Badge } from '@mui/material/Badge';
14
+ export { default as BottomNavigation } from '@mui/material/BottomNavigation';
15
+ export { default as BottomNavigationAction } from '@mui/material/BottomNavigationAction';
16
+ export { default as Box } from '@mui/material/Box';
17
+ export { default as Breadcrumbs } from '@mui/material/Breadcrumbs';
18
+ // export { default as Button } from '@mui/material/Button'
19
+ export { default as ButtonBase } from '@mui/material/ButtonBase';
20
+ export { default as ButtonGroup } from '@mui/material/ButtonGroup';
21
+ export { default as Card } from '@mui/material/Card';
22
+ export { default as CardActionArea } from '@mui/material/CardActionArea';
23
+ export { default as CardActions } from '@mui/material/CardActions';
24
+ export { default as CardContent } from '@mui/material/CardContent';
25
+ export { default as CardHeader } from '@mui/material/CardHeader';
26
+ export { default as CardMedia } from '@mui/material/CardMedia';
27
+ // export { default as Checkbox } from '@mui/material/Checkbox'
28
+ export { default as Chip } from '@mui/material/Chip';
15
29
  export { default as CircularProgress } from '@mui/material/CircularProgress';
30
+ export { default as ClickAwayListener } from '@mui/material/ClickAwayListener';
31
+ export { default as Collapse } from '@mui/material/Collapse';
32
+ export { default as Container } from '@mui/material/Container';
33
+ export { default as CssBaseline } from '@mui/material/CssBaseline';
34
+ export { default as darkScrollbar } from '@mui/material/darkScrollbar';
35
+ export { default as Dialog } from '@mui/material/Dialog';
36
+ export { default as DialogActions } from '@mui/material/DialogActions';
37
+ export { default as DialogContent } from '@mui/material/DialogContent';
38
+ export { default as DialogContentText } from '@mui/material/DialogContentText';
39
+ export { default as DialogTitle } from '@mui/material/DialogTitle';
40
+ export { default as Divider } from '@mui/material/Divider';
41
+ // export { default as Drawer } from '@mui/material/Drawer'
42
+ export { default as Fab } from '@mui/material/Fab';
43
+ export { default as Fade } from '@mui/material/Fade';
44
+ export { default as FilledInput } from '@mui/material/FilledInput';
45
+ export { default as FormControl } from '@mui/material/FormControl';
46
+ export { default as FormControlLabel } from '@mui/material/FormControlLabel';
47
+ export { default as FormGroup } from '@mui/material/FormGroup';
48
+ export { default as FormHelperText } from '@mui/material/FormHelperText';
49
+ export { default as FormLabel } from '@mui/material/FormLabel';
50
+ export { default as Grid } from '@mui/material/Grid';
51
+ export { default as Grow } from '@mui/material/Grow';
52
+ export { default as Hidden } from '@mui/material/Hidden';
53
+ export { default as Icon } from '@mui/material/Icon';
54
+ // export { default as IconButton } from '@mui/material/IconButton'
55
+ export { default as ImageList } from '@mui/material/ImageList';
56
+ export { default as ImageListItem } from '@mui/material/ImageListItem';
57
+ export { default as ImageListItemBar } from '@mui/material/ImageListItemBar';
58
+ export { default as Input } from '@mui/material/Input';
59
+ export { default as InputAdornment } from '@mui/material/InputAdornment';
60
+ export { default as InputBase } from '@mui/material/InputBase';
61
+ export { default as InputLabel } from '@mui/material/InputLabel';
16
62
  export { default as LinearProgress } from '@mui/material/LinearProgress';
63
+ export { default as Link } from '@mui/material/Link';
64
+ // export { default as List } from '@mui/material/List'
17
65
  export { default as ListItem } from '@mui/material/ListItem';
18
66
  export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
19
67
  export { default as ListItemButton } from '@mui/material/ListItemButton';
@@ -21,5 +69,75 @@ export { default as ListItemIcon } from '@mui/material/ListItemIcon';
21
69
  export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
22
70
  export { default as ListItemText } from '@mui/material/ListItemText';
23
71
  export { default as ListSubheader } from '@mui/material/ListSubheader';
72
+ export { default as Menu } from '@mui/material/Menu';
73
+ export { default as MenuItem } from '@mui/material/MenuItem';
74
+ export { default as MenuList } from '@mui/material/MenuList';
75
+ export { default as MobileStepper } from '@mui/material/MobileStepper';
76
+ export { default as Modal } from '@mui/material/Modal';
77
+ export { default as NativeSelect } from '@mui/material/NativeSelect';
78
+ export { default as NoSsr } from '@mui/material/NoSsr';
79
+ export { default as OutlinedInput } from '@mui/material/OutlinedInput';
80
+ export { default as Pagination } from '@mui/material/Pagination';
81
+ export { default as PaginationItem } from '@mui/material/PaginationItem';
82
+ export { default as Paper } from '@mui/material/Paper';
83
+ export { default as Popover } from '@mui/material/Popover';
84
+ export { default as Popper } from '@mui/material/Popper';
85
+ export { default as Portal } from '@mui/material/Portal';
86
+ export { default as Radio } from '@mui/material/Radio';
87
+ export { default as RadioGroup } from '@mui/material/RadioGroup';
88
+ export { default as Rating } from '@mui/material/Rating';
89
+ export { default as ScopedCssBaseline } from '@mui/material/ScopedCssBaseline';
90
+ export { default as Select } from '@mui/material/Select';
91
+ export { default as Skeleton } from '@mui/material/Skeleton';
92
+ export { default as Slide } from '@mui/material/Slide';
93
+ export { default as Slider } from '@mui/material/Slider';
94
+ export { default as Snackbar } from '@mui/material/Snackbar';
95
+ export { default as SnackbarContent } from '@mui/material/SnackbarContent';
96
+ export { default as SpeedDial } from '@mui/material/SpeedDial';
97
+ export { default as SpeedDialAction } from '@mui/material/SpeedDialAction';
98
+ export { default as SpeedDialIcon } from '@mui/material/SpeedDialIcon';
99
+ export { default as Stack } from '@mui/material/Stack';
100
+ export { default as Step } from '@mui/material/Step';
101
+ export { default as StepButton } from '@mui/material/StepButton';
102
+ export { default as StepConnector } from '@mui/material/StepConnector';
103
+ export { default as StepContent } from '@mui/material/StepContent';
104
+ export { default as StepIcon } from '@mui/material/StepIcon';
105
+ export { default as StepLabel } from '@mui/material/StepLabel';
106
+ export { default as Stepper } from '@mui/material/Stepper';
107
+ export { default as SvgIcon } from '@mui/material/SvgIcon';
108
+ export { default as SwipeableDrawer } from '@mui/material/SwipeableDrawer';
109
+ export { default as Switch } from '@mui/material/Switch';
110
+ export { default as Tab } from '@mui/material/Tab';
111
+ export { default as Table } from '@mui/material/Table';
112
+ export { default as TableBody } from '@mui/material/TableBody';
113
+ export { default as TableCell } from '@mui/material/TableCell';
114
+ export { default as TableContainer } from '@mui/material/TableContainer';
115
+ export { default as TableFooter } from '@mui/material/TableFooter';
116
+ export { default as TableHead } from '@mui/material/TableHead';
117
+ export { default as TablePagination } from '@mui/material/TablePagination';
118
+ export { default as TableRow } from '@mui/material/TableRow';
119
+ export { default as TableSortLabel } from '@mui/material/TableSortLabel';
120
+ export { default as Tabs } from '@mui/material/Tabs';
121
+ export { default as TabScrollButton } from '@mui/material/TabScrollButton';
122
+ // export { default as TextField } from '@mui/material/TextField'
123
+ export { default as TextareaAutosize } from '@mui/material/TextareaAutosize';
124
+ export { default as ToggleButton } from '@mui/material/ToggleButton';
125
+ export { default as ToggleButtonGroup } from '@mui/material/ToggleButtonGroup';
126
+ export { default as Toolbar } from '@mui/material/Toolbar';
127
+ // export { default as Tooltip } from '@mui/material/Tooltip'
128
+ export { default as Typography } from '@mui/material/Typography';
129
+ // Straight from @mui/x-data-grid
130
+ export * from '@mui/x-data-grid';
131
+ // Learning Pool intercepted
132
+ export { default as Avatar } from './components/datadisplay/Avatar/Avatar';
133
+ export { default as Button } from './components/atoms/Button/Button';
134
+ export { default as IconButton } from './components/atoms/IconButton/IconButton';
135
+ export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
136
+ export { default as TextField } from './components/atoms/TextField/TextField';
137
+ export { default as Drawer } from './components/navigation/Drawer/Drawer';
138
+ export { default as List } from './components/datadisplay/List/List';
139
+ export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
140
+ export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
141
+ export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
24
142
  // Stream Suite components
25
143
  export { default as VerticalNavigation } from './components/navigation/VerticalNavigation/VerticalNavigation';
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "components",
10
10
  "ui"
11
11
  ],
12
- "version": "1.4.0-beta.3",
12
+ "version": "1.4.0-beta.6",
13
13
  "private": false,
14
14
  "main": "dist/index.js",
15
15
  "module": "dist/index.js",
@@ -19,6 +19,7 @@
19
19
  "@learningpool/app-switcher": "^1.0.4",
20
20
  "@mui/icons-material": "^5.8.4",
21
21
  "@mui/material": "^5.8.5",
22
+ "@mui/x-data-grid": "^5.12.3",
22
23
  "@testing-library/jest-dom": "^5.16.1",
23
24
  "@testing-library/react": "^12.1.2",
24
25
  "@testing-library/user-event": "^13.5.0",
@@ -69,19 +70,19 @@
69
70
  "@babel/preset-env": "7.18.2",
70
71
  "@babel/preset-react": "7.17.12",
71
72
  "@babel/preset-typescript": "7.17.12",
72
- "@ht2-labs/semantic-release": "3.0.0",
73
- "@storybook/addon-a11y": "6.5.6",
74
- "@storybook/addon-actions": "6.5.6",
75
- "@storybook/addon-essentials": "6.5.6",
76
- "@storybook/addon-jest": "6.5.6",
77
- "@storybook/addon-links": "6.5.6",
78
- "@storybook/addons": "6.5.6",
79
- "@storybook/builder-webpack5": "6.5.6",
80
- "@storybook/manager-webpack5": "6.5.6",
81
- "@storybook/node-logger": "6.5.6",
82
- "@storybook/preset-create-react-app": "4.1.1",
83
- "@storybook/react": "6.5.6",
84
- "@storybook/theming": "6.5.6",
73
+ "@ht2-labs/semantic-release": "3.0.5",
74
+ "@storybook/addon-a11y": "6.5.9",
75
+ "@storybook/addon-actions": "6.5.9",
76
+ "@storybook/addon-essentials": "6.5.9",
77
+ "@storybook/addon-jest": "6.5.9",
78
+ "@storybook/addon-links": "6.5.9",
79
+ "@storybook/addons": "6.5.9",
80
+ "@storybook/builder-webpack5": "6.5.9",
81
+ "@storybook/manager-webpack5": "6.5.9",
82
+ "@storybook/node-logger": "6.5.9",
83
+ "@storybook/preset-create-react-app": "4.1.2",
84
+ "@storybook/react": "6.5.9",
85
+ "@storybook/theming": "6.5.9",
85
86
  "babel-preset-minify": "0.5.2",
86
87
  "eslint-config-standard": "16.0.3",
87
88
  "eslint-config-standard-with-typescript": "21.0.1",
@@ -89,7 +90,7 @@
89
90
  "eslint-plugin-promise": "4.3.1",
90
91
  "source-map-explorer": "2.5.2",
91
92
  "source-map-loader": "3.0.1",
92
- "ts-node": "10.8.0",
93
+ "ts-node": "10.8.1",
93
94
  "webpack": "5.72.1"
94
95
  },
95
96
  "release": {
package/utils/theme.d.ts CHANGED
@@ -81,3 +81,9 @@ export declare const darkTheme: {
81
81
  };
82
82
  };
83
83
  };
84
+ export declare const motion: {
85
+ ease: string;
86
+ easeOut: string;
87
+ easeIn: string;
88
+ easeInOut: string;
89
+ };
package/utils/theme.js CHANGED
@@ -11,10 +11,10 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { amber, blue, common } from '@mui/material/colors';
13
13
  var DEFAULT_HEADER_TYPOGRAPHY = {
14
- fontFamily: '"Montserrat", "Roboto", "Helvetica", "Arial", sans-serif'
14
+ fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif'
15
15
  };
16
16
  var DEFAULT_BODY_TYPOGRAPHY = {
17
- fontFamily: '"Source Sans Pro", "Roboto", "Helvetica", "Arial", sans-serif'
17
+ fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif'
18
18
  };
19
19
  // @TODO: Discuss this with the experience design team, according to the UUI Figma
20
20
  export var defaultTheme = {
@@ -53,3 +53,9 @@ export var darkTheme = {
53
53
  }
54
54
  }
55
55
  };
56
+ export var motion = {
57
+ ease: 'cubic-bezier(0.4, 0.0, 0.2, 1)',
58
+ easeOut: 'cubic-bezier(0.0, 0.0, 0.2, 1)',
59
+ easeIn: 'cubic-bezier(0.4, 0.0, 1, 1)',
60
+ easeInOut: 'cubic-bezier(0.4, 0.0, 0.6, 1)'
61
+ };