@learningpool/ui 1.5.0 → 1.6.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/assets/Images.d.ts +9 -0
  2. package/assets/Images.js +4 -1
  3. package/components/navigation/MobileNavigation/MobileNavigation.d.ts +39 -0
  4. package/components/navigation/MobileNavigation/MobileNavigation.js +183 -0
  5. package/components/navigation/MobileNavigation/MobileNavigationAvatar.d.ts +28 -0
  6. package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +122 -0
  7. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +827 -0
  8. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +33 -0
  9. package/components/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +24 -0
  10. package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +148 -0
  11. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +392 -0
  12. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +44 -0
  13. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.d.ts +19 -0
  14. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +91 -0
  15. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.d.ts +15 -0
  16. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +26 -0
  17. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.d.ts +112 -0
  18. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +66 -0
  19. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.d.ts +126 -0
  20. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +71 -0
  21. package/components/navigation/MobileNavigation/MobileNavigationMotion.d.ts +141 -0
  22. package/components/navigation/MobileNavigation/MobileNavigationMotion.js +109 -0
  23. package/components/navigation/MobileNavigation/MobileNavigationSearch.d.ts +10 -0
  24. package/components/navigation/MobileNavigation/MobileNavigationSearch.js +52 -0
  25. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +257 -0
  26. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.js +20 -0
  27. package/components/navigation/MobileNavigation/MobileNavigationStyles.d.ts +405 -0
  28. package/components/navigation/MobileNavigation/MobileNavigationStyles.js +104 -0
  29. package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.d.ts +2 -0
  30. package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +32 -0
  31. package/components/navigation/MobileNavigation/MobileNavigationToggleX.d.ts +2 -0
  32. package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +26 -0
  33. package/components/navigation/MobileNavigation/MobileNavigationToggleXStyles.d.ts +36 -0
  34. package/components/navigation/MobileNavigation/MobileNavigationToggleXStyles.js +10 -0
  35. package/components/navigation/VerticalNavigation/VerticalNavigation.d.ts +25 -10
  36. package/components/navigation/VerticalNavigation/VerticalNavigation.js +179 -92
  37. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.d.ts +4 -0
  38. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +84 -0
  39. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +827 -0
  40. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +31 -0
  41. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.d.ts +4 -0
  42. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +91 -0
  43. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.d.ts +15 -0
  44. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +29 -0
  45. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.d.ts +112 -0
  46. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +69 -0
  47. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.d.ts +126 -0
  48. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +70 -0
  49. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.d.ts +141 -0
  50. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.js +109 -0
  51. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +31 -90
  52. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +73 -259
  53. package/components/stream/AppSwitcher/AppSwitcher.d.ts +36 -0
  54. package/components/stream/AppSwitcher/AppSwitcher.js +307 -0
  55. package/components/stream/AppSwitcher/AppSwitcherItem.d.ts +16 -0
  56. package/components/stream/AppSwitcher/AppSwitcherItem.js +51 -0
  57. package/components/stream/AppSwitcher/AppSwitcherStyles.d.ts +17 -0
  58. package/components/stream/AppSwitcher/AppSwitcherStyles.js +48 -0
  59. package/components/stream/AppSwitcher/constants.d.ts +34 -0
  60. package/components/stream/AppSwitcher/constants.js +27 -0
  61. package/index.d.ts +1 -0
  62. package/index.js +1 -0
  63. package/lang/en-us.d.ts +6 -0
  64. package/lang/en-us.js +6 -0
  65. package/package.json +6 -2
  66. package/types/components/navigation/VerticalNavigation.d.ts +48 -0
  67. package/types/components/navigation/VerticalNavigation.js +1 -0
  68. package/types/components/navigation/VerticalNavigationAvatar.d.ts +22 -0
  69. package/types/components/navigation/VerticalNavigationAvatar.js +1 -0
  70. package/types/components/stream/AppSwitcher.d.ts +9 -0
  71. package/types/components/stream/AppSwitcher.js +1 -0
  72. package/types/index.d.ts +3 -0
  73. package/types/index.js +3 -0
  74. package/utils/constants.d.ts +6 -0
  75. package/utils/constants.js +6 -0
  76. package/utils/helpers.d.ts +6 -0
  77. package/utils/helpers.js +17 -0
  78. package/utils/hooks.d.ts +1 -0
  79. package/utils/hooks.js +29 -0
  80. package/utils/theme.d.ts +4 -0
  81. package/utils/theme.js +4 -0
@@ -0,0 +1,44 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { Box, List, ListItem, ListItemText, ListItemButton, Typography } from '../../../index';
6
+ import { Drawer } from '@mui/material';
7
+ import { styled } from '@mui/material/styles';
8
+ import { motion } from 'framer-motion';
9
+ export var StyledSwipeableDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n background-color: ", ";\n background-image: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n .MuiPaper-root {\n background-color: ", ";\n background-image: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
10
+ ? '#003366'
11
+ : props.theme.palette.background.paper; }, function (props) { return props.theme.palette.mode === 'dark'
12
+ ? 'none'
13
+ : 'radial-gradient( circle farthest-corner at 10% 20%, #fdfbfb 0.1%, #ebedee 99.8% )'; });
14
+ export var StyledBox = styled(Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n overflow: auto;\n padding-bottom: 6rem;\n"], ["\n height: 100%;\n overflow: auto;\n padding-bottom: 6rem;\n"])));
15
+ export var StyledDrawerLogo = styled(motion.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: transparent;\n display: flex;\n align-items: center;\n margin: 1.5rem 0 2.5rem 1.5rem;\n\n .MuiSvgIcon-root {\n width: 2rem;\n height: 2rem;\n }\n"], ["\n background-color: transparent;\n display: flex;\n align-items: center;\n margin: 1.5rem 0 2.5rem 1.5rem;\n\n .MuiSvgIcon-root {\n width: 2rem;\n height: 2rem;\n }\n"])));
16
+ export var StyledDrawerLogoText = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 1.2rem;\n margin-left: .5rem;\n color: ", ";\n"], ["\n font-size: 1.2rem;\n margin-left: .5rem;\n color: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
17
+ ? 'rgba(255,255,255,.9)'
18
+ : '#555'; });
19
+ export var StyledListItem = styled(ListItem)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n flex-direction: column;\n align-items: flex-start;\n margin: 0 1rem;\n max-width: calc(100% - 2rem);\n\n > .MuiListItemButton-root {\n padding: .5rem 1.5rem;\n }\n"], ["\n flex-direction: column;\n align-items: flex-start;\n margin: 0 1rem;\n max-width: calc(100% - 2rem);\n\n > .MuiListItemButton-root {\n padding: .5rem 1.5rem;\n }\n"])));
20
+ export var StyledListItemButton = styled(ListItemButton)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-radius: 50px;\n"], ["\n border-radius: 50px;\n"])));
21
+ export var StyledListItemText = styled(ListItemText)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n > .MuiTypography-root {\n font-size: 1.5rem;\n font-weight: bold;\n color: ", ";\n &:hover,\n &:focus,\n &:active {\n color: ", ";\n }\n }\n"], ["\n > .MuiTypography-root {\n font-size: 1.5rem;\n font-weight: bold;\n color: ", ";\n &:hover,\n &:focus,\n &:active {\n color: ", ";\n }\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
22
+ ? 'rgba(255,255,255,.85)'
23
+ : '#555'; }, function (props) { return props.theme.palette.mode === 'dark'
24
+ ? 'rgba(255,255,255,.97)'
25
+ : '#333'; });
26
+ export var StyledChildList = styled(List)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n margin: -.25rem 1rem 0 1.5rem;\n padding: 0;\n\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin: -.25rem 1rem 0 1.5rem;\n padding: 0;\n\n"])));
27
+ export var StyledChildListItem = styled(ListItem)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0;\n"], ["\n display: flex;\n align-items: center;\n padding: 0;\n"])));
28
+ export var StyledChildListItemText = styled(ListItemText)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n font-size: .9rem;\n color: ", ";\n"], ["\n font-size: .9rem;\n color: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
29
+ ? 'rgba(255,255,255,.75)'
30
+ : '#666'; });
31
+ export var StyledChildListItemButton = styled(ListItemButton)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-radius: 50px;\n flex-grow: 0;\n"], ["\n border-radius: 50px;\n flex-grow: 0;\n"])));
32
+ export var StyledListSecondaryList = styled(List)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n margin: 0 1rem;\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin: 0 1rem;\n"])));
33
+ export var StyledListSecondaryItem = styled(ListItem)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n flex: 1 0 50%;\n display: flex;\n align-items: center;\n"], ["\n flex: 1 0 50%;\n display: flex;\n align-items: center;\n"])));
34
+ export var StyledListSecondaryButton = styled(ListItemButton)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n color: ", ";\n margin: 0.25rem 0.25rem 0.5rem;\n padding: 0.3rem 1rem;\n background: ", ";\n border-radius: 50px;\n box-shadow: ", ";\n"], ["\n color: ", ";\n margin: 0.25rem 0.25rem 0.5rem;\n padding: 0.3rem 1rem;\n background: ", ";\n border-radius: 50px;\n box-shadow: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
35
+ ? 'rgba(255,255,255,.8)'
36
+ : '#555'; }, function (props) { return props.theme.palette.mode === 'dark'
37
+ ? 'rgba(255,255,255,.12)'
38
+ : 'rgba(255,255,255,.6)'; }, function (props) { return props.theme.palette.mode === 'dark'
39
+ ? '0 6px 15px rgb(36 37 38 / 16%)'
40
+ : '0 6px 15px rgb(36 37 38 / 8%)'; });
41
+ export var StyledDivider = styled('div')(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n background-color: ", ";\n width: 75%;\n height: 3px;\n border: none;\n border-radius: 3px;\n margin: 2rem auto;\n"], ["\n background-color: ", ";\n width: 75%;\n height: 3px;\n border: none;\n border-radius: 3px;\n margin: 2rem auto;\n"])), function (props) { return props.theme.palette.mode === 'dark'
42
+ ? 'rgba(62, 106, 179, .5)'
43
+ : 'rgba(0,0,0,.075)'; });
44
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export interface IMobileNavigationItemProps {
3
+ label: string;
4
+ icon: React.ReactElement;
5
+ selectedIcon?: React.ReactElement;
6
+ onClick?: any;
7
+ isActive?: boolean;
8
+ children?: IMobileNavigationItemProps[];
9
+ isDrawerOpen?: boolean;
10
+ index?: number;
11
+ isSecondary?: boolean;
12
+ hasFlyout?: boolean;
13
+ fullHeightFlyout?: boolean;
14
+ content?: React.ReactElement;
15
+ style?: any;
16
+ open?: boolean;
17
+ }
18
+ declare const MobileNavigationItem: (props: IMobileNavigationItemProps) => React.ReactElement;
19
+ export default MobileNavigationItem;
@@ -0,0 +1,91 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import React from 'react';
25
+ import { useTheme } from '@mui/material/styles';
26
+ import { Link, List, Tooltip, Collapse } from '../../../../index';
27
+ import MailIcon from '@mui/icons-material/Mail';
28
+ import { ListItem, ListItemButton, ListItemButtonChild, ListItemIcon, ListItemText } from './MobileNavigationItemStyles';
29
+ import { tooltipDelay } from '../../../../utils/theme';
30
+ import MobileNavigationItemFlyoutMenu from './MobileNavigationItemFlyoutMenu';
31
+ var MobileNavigationItem = function (props) {
32
+ var _a, _b, _c;
33
+ var theme = useTheme();
34
+ var label = props.label, icon = props.icon, onClick = props.onClick, isActive = props.isActive, children = props.children, isDrawerOpen = props.isDrawerOpen, index = props.index, hasFlyout = props.hasFlyout, fullHeightFlyout = props.fullHeightFlyout, isSecondary = props.isSecondary, content = props.content, style = props.style, rest = __rest(props, ["label", "icon", "onClick", "isActive", "children", "isDrawerOpen", "index", "hasFlyout", "fullHeightFlyout", "isSecondary", "content", "style"]);
35
+ var _d = React.useState(false), isExpanded = _d[0], setIsExpanded = _d[1];
36
+ var _e = React.useState(null), anchorEl = _e[0], setAnchorEl = _e[1];
37
+ var open = Boolean(anchorEl);
38
+ var handlePopoverOpen = function (event) {
39
+ if (open) {
40
+ handlePopoverClose();
41
+ return;
42
+ }
43
+ setAnchorEl(event === null || event === void 0 ? void 0 : event.currentTarget);
44
+ };
45
+ var handlePopoverClose = function () {
46
+ setAnchorEl(null);
47
+ };
48
+ var handleClick = function (event) {
49
+ if (fullHeightFlyout) {
50
+ handlePopoverOpen(event);
51
+ return;
52
+ }
53
+ if (children && children.length > 0) {
54
+ setIsExpanded(!isExpanded);
55
+ return;
56
+ }
57
+ if (onClick) {
58
+ onClick(event);
59
+ }
60
+ setAnchorEl(null);
61
+ };
62
+ return (_jsxs(ListItem, __assign({ disablePadding: true, style: style }, rest, { isDrawerOpen: isDrawerOpen }, { children: [_jsxs(ListItemButton
63
+ // @ts-expect-error
64
+ , __assign({
65
+ // @ts-expect-error
66
+ component: Link, onClick: handleClick, isActive: isActive, isDrawerOpen: isDrawerOpen, isExpanded: isExpanded, open: open, onMouseEnter: function (event) { return fullHeightFlyout
67
+ ? null
68
+ : handlePopoverOpen(event); }, onMouseLeave: function () { return fullHeightFlyout
69
+ ? null
70
+ : handlePopoverClose(); }, onFocus: function (event) { return fullHeightFlyout
71
+ ? null
72
+ : handlePopoverOpen(event); }, onBlur: function () { return fullHeightFlyout
73
+ ? null
74
+ : handlePopoverClose(); }, "aria-expanded": (children && children.length > 0) ? open : null, "aria-haspopup": (children && children.length > 0) ? 'true' : null, "aria-current": isActive ? 'page' : null, role: (children && children.length > 0) ? 'button' : 'link' }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: (_a = (children && children.length > 0)) !== null && _a !== void 0 ? _a : isDrawerOpen, disableFocusListener: (_b = (children && children.length > 0)) !== null && _b !== void 0 ? _b : isDrawerOpen, disableTouchListener: (_c = (children && children.length > 0)) !== null && _c !== void 0 ? _c : isDrawerOpen, title: label, placement: theme.direction === 'rtl' ? 'left' : 'right', enterDelay: tooltipDelay.start, leaveDelay: tooltipDelay.end }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true }, { children: icon !== null && icon !== void 0 ? icon : _jsx(MailIcon, {}) })) })), _jsx(ListItemText, { primary: label, isDrawerOpen: isDrawerOpen, index: index, sx: {
75
+ '& .MuiTypography-root': {
76
+ fontSize: isSecondary ? '14px' : 'inherit'
77
+ }
78
+ } }), children && children.length > 0 && (_jsx(Collapse, __assign({ component: 'div', in: isDrawerOpen ? isExpanded : false, timeout: "auto" }, { children: _jsx(List, __assign({ "aria-label": label, disablePadding: true }, { children: children.map(function (childItem, index) { return (_jsx(ListItem, __assign({ disablePadding: true, isDrawerOpen: isDrawerOpen }, { children: _jsxs(ListItemButtonChild
79
+ // @ts-expect-error
80
+ , __assign({
81
+ // @ts-expect-error
82
+ component: Link, index: index, isDrawerOpen: isDrawerOpen }, { children: [_jsx(ListItemIcon, { children: childItem.icon }), _jsx(ListItemText, { primary: childItem.label, isDrawerOpen: isDrawerOpen, sx: {
83
+ '& .MuiTypography-root': {
84
+ fontSize: '14px !important',
85
+ color: theme.palette.mode === 'dark'
86
+ ? theme.palette.primary.contrastText
87
+ : theme.palette.getContrastText(theme.palette.background.paper)
88
+ }
89
+ } })] }), label) }))); }) })) })))] }), label), !fullHeightFlyout && children && children.length > 0 && (!isExpanded || !isDrawerOpen) && (_jsx(MobileNavigationItemFlyoutMenu, { isDrawerOpen: isDrawerOpen, anchorEl: anchorEl, open: open, children: children, label: label })), fullHeightFlyout && content && (_jsx(MobileNavigationItemFlyoutMenu, { isDrawerOpen: isDrawerOpen, fullHeightFlyout: true, anchorEl: anchorEl, open: open, content: content }))] })));
90
+ };
91
+ export default MobileNavigationItem;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { IMobileNavigationItemProps } from './MobileNavigationItem';
3
+ export interface IMobileNavigationItemFlyoutMenuProps {
4
+ label?: string;
5
+ children?: IMobileNavigationItemProps[];
6
+ isDrawerOpen?: boolean;
7
+ hasFlyout?: boolean;
8
+ content?: React.ReactElement;
9
+ style?: any;
10
+ fullHeightFlyout?: boolean;
11
+ anchorEl?: null | HTMLElement;
12
+ open?: boolean;
13
+ }
14
+ declare const MobileNavigationItemFlyoutMenu: (props: IMobileNavigationItemFlyoutMenuProps) => React.ReactElement;
15
+ export default MobileNavigationItemFlyoutMenu;
@@ -0,0 +1,26 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import React from 'react';
14
+ import { Link, ListItemText } from '../../../../index';
15
+ import { FlyoutMenuPaper, FlyoutMenuWrap, FlyoutMenuList, FlyoutMenuButton, FlyoutMenuItem } from './MobileNavigationItemFlyoutMenuStyles';
16
+ var MobileNavigationItemFlyoutMenu = function (props) {
17
+ var label = props.label, children = props.children, isDrawerOpen = props.isDrawerOpen, anchorEl = props.anchorEl;
18
+ var _a = React.useState(false), flyoutHovered = _a[0], setFlyoutHovered = _a[1];
19
+ var open = flyoutHovered || (props === null || props === void 0 ? void 0 : props.open);
20
+ return (_jsx(FlyoutMenuPaper, __assign({ isDrawerOpen: isDrawerOpen, open: open, anchorEl: anchorEl !== null && anchorEl !== void 0 ? anchorEl : undefined, onMouseEnter: function () { return setFlyoutHovered(true); }, onMouseLeave: function () { return setFlyoutHovered(false); }, onFocus: function () { return setFlyoutHovered(true); }, onBlur: function () { return setFlyoutHovered(false); } }, { children: _jsx(FlyoutMenuWrap, __assign({ open: open }, { children: _jsx(FlyoutMenuList, __assign({ "aria-label": label, open: open }, { children: children === null || children === void 0 ? void 0 : children.map(function (childItem) { return (_jsx(FlyoutMenuItem, { children: _jsx(FlyoutMenuButton
21
+ // @ts-expect-error
22
+ , __assign({
23
+ // @ts-expect-error
24
+ component: Link, onClick: childItem.onClick, role: 'link' }, { children: _jsx(ListItemText, { primary: childItem.label }) }), childItem.label) })); }) })) })) })));
25
+ };
26
+ export default MobileNavigationItemFlyoutMenu;
@@ -0,0 +1,112 @@
1
+ /// <reference types="react" />
2
+ export declare const DRAWER_WIDTH: {
3
+ Collapsed: number;
4
+ Expanded: number;
5
+ };
6
+ export declare const FlyoutMenuPaper: import("@emotion/styled").StyledComponent<{
7
+ children?: import("react").ReactNode;
8
+ classes?: Partial<import("@mui/material").PaperClasses> | undefined;
9
+ elevation?: number | undefined;
10
+ square?: boolean | undefined;
11
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
12
+ variant?: "outlined" | "elevation" | undefined;
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
14
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "square" | "elevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
16
+ anchorEl: HTMLElement | undefined;
17
+ isDrawerOpen?: boolean | undefined;
18
+ open?: boolean | undefined;
19
+ }, {}, {}>;
20
+ export declare const FlyoutMenuWrap: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
21
+ open?: boolean | undefined;
22
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
+ export declare const FlyoutMenuList: import("@emotion/styled").StyledComponent<{
24
+ children?: import("react").ReactNode;
25
+ classes?: Partial<import("@mui/material").ListClasses> | undefined;
26
+ dense?: boolean | undefined;
27
+ disablePadding?: boolean | undefined;
28
+ subheader?: import("react").ReactNode;
29
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
30
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | keyof import("react").HTMLAttributes<HTMLUListElement>> & {
31
+ ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
32
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
33
+ open?: boolean | undefined;
34
+ }, {}, {}>;
35
+ export declare const FlyoutMenuHeader: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
36
+ align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
37
+ children?: import("react").ReactNode;
38
+ classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
39
+ gutterBottom?: boolean | undefined;
40
+ noWrap?: boolean | undefined;
41
+ paragraph?: boolean | undefined;
42
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
43
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
44
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
45
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
46
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
47
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "align" | ("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") | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
48
+ export declare const FlyoutMenuItem: import("@emotion/styled").StyledComponent<{
49
+ button?: false | undefined;
50
+ } & import("@mui/material").ListItemBaseProps & {
51
+ components?: {
52
+ Root?: import("react").ElementType<any> | undefined;
53
+ } | undefined;
54
+ componentsProps?: {
55
+ root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
56
+ } | undefined;
57
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
58
+ ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
59
+ }, "className" | "style" | "classes" | "button" | "children" | "sx" | "alignItems" | "disabled" | "autoFocus" | "selected" | "dense" | "components" | "componentsProps" | "disablePadding" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
60
+ export declare const FlyoutMenuButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
61
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
62
+ centerRipple?: boolean | undefined;
63
+ children?: import("react").ReactNode;
64
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
65
+ disabled?: boolean | undefined;
66
+ disableRipple?: boolean | undefined;
67
+ disableTouchRipple?: boolean | undefined;
68
+ focusRipple?: boolean | undefined;
69
+ focusVisibleClassName?: string | undefined;
70
+ LinkComponent?: import("react").ElementType<any> | undefined;
71
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
72
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
73
+ tabIndex?: number | undefined;
74
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
75
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
76
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
77
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
78
+ }, "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<import("@mui/material/styles").Theme> & {
79
+ isDrawerOpen?: boolean | undefined;
80
+ isExpanded?: boolean | undefined;
81
+ }, {}, {}>;
82
+ export declare const FullHeightFlyoutMenuPaper: import("@emotion/styled").StyledComponent<{
83
+ children?: import("react").ReactNode;
84
+ classes?: Partial<import("@mui/material").PaperClasses> | undefined;
85
+ elevation?: number | undefined;
86
+ square?: boolean | undefined;
87
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
88
+ variant?: "outlined" | "elevation" | undefined;
89
+ } & 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
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "square" | "elevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
92
+ isDrawerOpen?: boolean | undefined;
93
+ open?: boolean | undefined;
94
+ }, {}, {}>;
95
+ export declare const FullHeightFlyoutMenuWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
96
+ open?: boolean | undefined;
97
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
98
+ export declare const FlyoutNotchMask: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
99
+ export declare const NotchMini: import("@emotion/styled").StyledComponent<{
100
+ children?: import("react").ReactNode;
101
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
102
+ color?: "inherit" | "action" | "disabled" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
103
+ fontSize?: "small" | "inherit" | "large" | "medium" | undefined;
104
+ htmlColor?: string | undefined;
105
+ inheritViewBox?: boolean | undefined;
106
+ shapeRendering?: string | undefined;
107
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
108
+ titleAccess?: string | undefined;
109
+ viewBox?: string | undefined;
110
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cursor" | "direction" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "href" | "name" | "type" | "media" | "target" | "origin" | "max" | "method" | "min" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
111
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
112
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "children" | "sx" | "fontSize" | "shapeRendering" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,66 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { List, ListItem, ListItemButton as SSListItemButton, Paper, Typography } from '../../../../index';
6
+ import { styled } from '@mui/material/styles';
7
+ import { motion } from '../../../../utils/theme';
8
+ import { NotchMiniSVG } from '../../../../assets/Images';
9
+ export var DRAWER_WIDTH = {
10
+ Collapsed: 60,
11
+ Expanded: 300
12
+ };
13
+ export var FlyoutMenuPaper = styled(Paper, {
14
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'open' && prop !== 'anchorEl'; }
15
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: transparent none;\n box-shadow: none;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n /* Check against height of browser should be top or bottom positioned */\n top: ", ";\n width: 200px;\n z-index: 2;\n"], ["\n background: transparent none;\n box-shadow: none;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n /* Check against height of browser should be top or bottom positioned */\n top: ", ";\n width: 200px;\n z-index: 2;\n"])), function (props) { return props.isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded, "px") : "".concat(DRAWER_WIDTH.Collapsed - 3, "px"); }, function (props) { return props.open ? 'auto' : 'none'; }, function (props) { return props.anchorEl
16
+ ? "".concat(props.anchorEl.getBoundingClientRect().top, "px")
17
+ : 'auto'; });
18
+ export var FlyoutMenuWrap = styled('div', {
19
+ shouldForwardProp: function (prop) { return prop !== 'open'; }
20
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n border-radius: 0 8px 8px 0;\n box-shadow: 5px 7px 8px -10px rgb(0 0 0 / 20%), 5px 12px 17px -10px rgb(0 0 0 / 14%), 5px 5px 22px -10px rgb(0 0 0 / 12%);\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transform-origin: left center;\n transition: ", ";\n"], ["\n background-color: ", ";\n color: ", ";\n border-radius: 0 8px 8px 0;\n box-shadow: 5px 7px 8px -10px rgb(0 0 0 / 20%), 5px 12px 17px -10px rgb(0 0 0 / 14%), 5px 5px 22px -10px rgb(0 0 0 / 12%);\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transform-origin: left center;\n transition: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
21
+ ? props.theme.palette.primary.dark
22
+ : '#E6EAF0'; }, function (props) { return props.theme.palette.mode === 'dark'
23
+ ? props.theme.palette.primary.contrastText
24
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, function (props) { return props.open ? 1 : 0; }, function (props) { return props.open ? 'visible' : 'hidden'; }, function (props) { return props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(15deg) scale(.97)'; }, function (props) { return props.open
25
+ ? "all 250ms ".concat(motion.easeInOut)
26
+ : "all 150ms ".concat(motion.easeOut); });
27
+ export var FlyoutMenuList = styled(List, {
28
+ shouldForwardProp: function (prop) { return prop !== 'open'; }
29
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: ", ";\n pointer-events: ", ";\n"], ["\n padding: ", ";\n pointer-events: ", ";\n"])), function (props) { return props.theme.spacing(1, 2); }, function (props) { return props.open ? 'auto' : 'none'; });
30
+ export var FlyoutMenuHeader = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-weight: bold;\n padding: 12px ", " 0 ", ";\n"], ["\n font-weight: bold;\n padding: 12px ", " 0 ", ";\n"])), function (props) { return props.theme.spacing(2); }, function (props) { return props.theme.spacing(3); });
31
+ export var FlyoutMenuItem = styled(ListItem)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: 14px;\n padding: 0;\n white-space: normal;\n background: transparent !important;\n"], ["\n font-size: 14px;\n padding: 0;\n white-space: normal;\n background: transparent !important;\n"])));
32
+ export var FlyoutMenuButton = styled(SSListItemButton, {
33
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'isExpanded'; }
34
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: transparent;\n color: ", ";\n border-radius: 5px;\n display: flex;\n flex-wrap: wrap;\n text-decoration: none;\n text-transform: none;\n transition: all 225ms ", " 0;\n padding: ", ";\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 5px;\n transition: all 180ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: rgba(0, 0, 0, .05);\n }\n\n :focus {\n background-color: ", ";\n }\n"], ["\n align-items: flex-start;\n background-color: transparent;\n color: ", ";\n border-radius: 5px;\n display: flex;\n flex-wrap: wrap;\n text-decoration: none;\n text-transform: none;\n transition: all 225ms ", " 0;\n padding: ", ";\n width: 100%;\n\n /* Indicator */\n :before {\n background-color: ", ";\n border-radius: 50px;\n content: '';\n height: calc(100% - 10px);\n opacity: 0;\n position: absolute;\n top: 5px;\n left: 5px;\n transition: all 180ms ", ";\n width: 4px;\n transform: scale(.95);\n }\n\n :hover:before,\n :focus:before {\n opacity: 1;\n transform: scale(1);\n }\n\n :hover {\n background-color: rgba(0, 0, 0, .05);\n }\n\n :focus {\n background-color: ", ";\n }\n"
35
+ // FullHeight
36
+ ])), function (props) {
37
+ return props.theme.palette.mode === 'dark'
38
+ ? props.theme.palette.primary.contrastText
39
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper);
40
+ }, motion.easeInOut, function (props) { return props.theme.spacing(1, 2); }, function (props) {
41
+ return props.theme.palette.mode === 'dark'
42
+ ? 'rgba(255, 255, 255, 0.5)'
43
+ : props.theme.palette.primary.main;
44
+ }, motion.easeInOut, function (props) {
45
+ return props.theme.palette.mode === 'dark'
46
+ ? props.theme.palette.primary.dark
47
+ : '#E6EAF0';
48
+ });
49
+ // FullHeight
50
+ export var FullHeightFlyoutMenuPaper = styled(Paper, {
51
+ shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'open'; }
52
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background: transparent none;\n box-shadow: none;\n color: ", ";\n height: 100%;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n top: 0;\n z-index: 1;\n"], ["\n background: transparent none;\n box-shadow: none;\n color: ", ";\n height: 100%;\n left: ", ";\n perspective: 800px;\n pointer-events: ", ";\n position: fixed;\n top: 0;\n z-index: 1;\n"])), function (props) { return props.theme.palette.mode === 'dark'
53
+ ? props.theme.palette.primary.contrastText
54
+ : props.theme.palette.getContrastText(props.theme.palette.background.paper); }, function (props) { return props.isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded, "px") : "".concat(DRAWER_WIDTH.Collapsed - 3, "px"); }, function (props) { return props.open ? 'auto' : 'none'; });
55
+ export var FullHeightFlyoutMenuWrapper = styled('div', {
56
+ shouldForwardProp: function (prop) { return prop !== 'open'; }
57
+ })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n box-shadow: 35px 0 15px 0 rgb(0 0 0 / 10%);\n height: 100%;\n max-width: 300px;\n min-width: 300px;\n opacity: ", ";\n pointer-events: ", ";\n transform: ", ";\n transform-origin: left center;\n transition: ", ";\n visibility: ", ";\n width: ", ";\n"], ["\n background-color: ", ";\n box-shadow: 35px 0 15px 0 rgb(0 0 0 / 10%);\n height: 100%;\n max-width: 300px;\n min-width: 300px;\n opacity: ", ";\n pointer-events: ", ";\n transform: ", ";\n transform-origin: left center;\n transition: ", ";\n visibility: ", ";\n width: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
58
+ ? props.theme.palette.primary.main
59
+ : props.theme.palette.background.paper; }, function (props) { return props.open ? 1 : 0; }, function (props) { return props.open ? 'auto' : 'none'; }, function (props) { return props.open ? 'rotateY(0deg) scale(1)' : 'rotateY(8deg) scale(.98)'; }, function (props) { return props.open ? "all 150ms ".concat(motion.easeInOut) : "all 100ms ".concat(motion.easeOut); }, function (props) { return props.open ? 'visible' : 'hidden'; }, function (props) { return props.open ? '300' : 0; });
60
+ export var FlyoutNotchMask = styled('div')(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n content: '';\n display: block;\n height: 80px;\n left: -40px;\n position: absolute;\n top: 65px;\n width: 80px;\n z-index: -1;\n"], ["\n background-color: ", ";\n content: '';\n display: block;\n height: 80px;\n left: -40px;\n position: absolute;\n top: 65px;\n width: 80px;\n z-index: -1;\n"])), function (props) { return props.theme.palette.mode === 'dark'
61
+ ? props.theme.palette.primary.dark
62
+ : '#E6EAF0'; });
63
+ export var NotchMini = styled(NotchMiniSVG)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n fill: ", ";\n left: -12px;\n pointer-events: none;\n position: absolute;\n"], ["\n fill: ", ";\n left: -12px;\n pointer-events: none;\n position: absolute;\n"])), function (props) { return props.theme.palette.mode === 'dark'
64
+ ? props.theme.palette.primary.dark
65
+ : '#E6EAF0'; });
66
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;