@laerdal/life-react-components 1.8.0-dev.16 → 1.8.0-dev.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Dropdown/CommonStyling.cjs +1 -1
- package/dist/Dropdown/CommonStyling.cjs.map +1 -1
- package/dist/Dropdown/CommonStyling.js +1 -1
- package/dist/Dropdown/CommonStyling.js.map +1 -1
- package/dist/Dropdown/DropdownFilter.cjs +7 -3
- package/dist/Dropdown/DropdownFilter.cjs.map +1 -1
- package/dist/Dropdown/DropdownFilter.js +7 -3
- package/dist/Dropdown/DropdownFilter.js.map +1 -1
- package/dist/GlobalNavigationBar/Actions.cjs +185 -0
- package/dist/GlobalNavigationBar/Actions.cjs.map +1 -0
- package/dist/GlobalNavigationBar/Actions.d.ts +13 -0
- package/dist/GlobalNavigationBar/Actions.js +160 -0
- package/dist/GlobalNavigationBar/Actions.js.map +1 -0
- package/dist/GlobalNavigationBar/Avatar.cjs +104 -0
- package/dist/GlobalNavigationBar/Avatar.cjs.map +1 -0
- package/dist/GlobalNavigationBar/Avatar.d.ts +15 -0
- package/dist/GlobalNavigationBar/Avatar.js +77 -0
- package/dist/GlobalNavigationBar/Avatar.js.map +1 -0
- package/dist/GlobalNavigationBar/{desktop/ExtendedMainMenu.cjs → ExtendedMainMenu.cjs} +9 -7
- package/dist/GlobalNavigationBar/ExtendedMainMenu.cjs.map +1 -0
- package/dist/GlobalNavigationBar/{desktop/ExtendedMainMenu.d.ts → ExtendedMainMenu.d.ts} +2 -2
- package/dist/GlobalNavigationBar/{desktop/ExtendedMainMenu.js → ExtendedMainMenu.js} +6 -6
- package/dist/GlobalNavigationBar/ExtendedMainMenu.js.map +1 -0
- package/dist/GlobalNavigationBar/GlobalNavigationBar.cjs +176 -107
- package/dist/GlobalNavigationBar/GlobalNavigationBar.cjs.map +1 -1
- package/dist/GlobalNavigationBar/GlobalNavigationBar.d.ts +27 -13
- package/dist/GlobalNavigationBar/GlobalNavigationBar.js +176 -106
- package/dist/GlobalNavigationBar/GlobalNavigationBar.js.map +1 -1
- package/dist/GlobalNavigationBar/Logo.cjs +5 -3
- package/dist/GlobalNavigationBar/Logo.cjs.map +1 -1
- package/dist/GlobalNavigationBar/Logo.js +1 -1
- package/dist/GlobalNavigationBar/Logo.js.map +1 -1
- package/dist/GlobalNavigationBar/{desktop/MainMenu.cjs → MainMenu.cjs} +21 -17
- package/dist/GlobalNavigationBar/MainMenu.cjs.map +1 -0
- package/dist/GlobalNavigationBar/MainMenu.d.ts +8 -0
- package/dist/GlobalNavigationBar/{desktop/MainMenu.js → MainMenu.js} +21 -17
- package/dist/GlobalNavigationBar/MainMenu.js.map +1 -0
- package/dist/GlobalNavigationBar/{desktop/RightSideNav.cjs → RightSideNav.cjs} +26 -22
- package/dist/GlobalNavigationBar/RightSideNav.cjs.map +1 -0
- package/dist/GlobalNavigationBar/RightSideNav.d.ts +8 -0
- package/dist/GlobalNavigationBar/RightSideNav.js +61 -0
- package/dist/GlobalNavigationBar/RightSideNav.js.map +1 -0
- package/dist/GlobalNavigationBar/UserMenu/MenuLink.cjs +112 -0
- package/dist/GlobalNavigationBar/UserMenu/MenuLink.cjs.map +1 -0
- package/dist/GlobalNavigationBar/UserMenu/MenuLink.d.ts +11 -0
- package/dist/GlobalNavigationBar/UserMenu/MenuLink.js +86 -0
- package/dist/GlobalNavigationBar/UserMenu/MenuLink.js.map +1 -0
- package/dist/GlobalNavigationBar/UserMenu/MobileUserMenu.cjs +178 -0
- package/dist/GlobalNavigationBar/UserMenu/MobileUserMenu.cjs.map +1 -0
- package/dist/GlobalNavigationBar/UserMenu/MobileUserMenu.d.ts +16 -0
- package/dist/GlobalNavigationBar/UserMenu/MobileUserMenu.js +146 -0
- package/dist/GlobalNavigationBar/UserMenu/MobileUserMenu.js.map +1 -0
- package/dist/GlobalNavigationBar/UserMenu/UserMenu.cjs +168 -0
- package/dist/GlobalNavigationBar/UserMenu/UserMenu.cjs.map +1 -0
- package/dist/GlobalNavigationBar/UserMenu/UserMenu.d.ts +15 -0
- package/dist/GlobalNavigationBar/UserMenu/UserMenu.js +135 -0
- package/dist/GlobalNavigationBar/UserMenu/UserMenu.js.map +1 -0
- package/dist/GlobalNavigationBar/index.cjs +18 -15
- package/dist/GlobalNavigationBar/index.cjs.map +1 -1
- package/dist/GlobalNavigationBar/index.d.ts +2 -2
- package/dist/GlobalNavigationBar/index.js +2 -2
- package/dist/GlobalNavigationBar/index.js.map +1 -1
- package/dist/GlobalNavigationBar/mobile/CommonStyles.cjs +21 -15
- package/dist/GlobalNavigationBar/mobile/CommonStyles.cjs.map +1 -1
- package/dist/GlobalNavigationBar/mobile/CommonStyles.d.ts +6 -3
- package/dist/GlobalNavigationBar/mobile/CommonStyles.js +15 -14
- package/dist/GlobalNavigationBar/mobile/CommonStyles.js.map +1 -1
- package/dist/GlobalNavigationBar/mobile/ExitMenuButton.cjs +49 -0
- package/dist/GlobalNavigationBar/mobile/ExitMenuButton.cjs.map +1 -0
- package/dist/GlobalNavigationBar/mobile/ExitMenuButton.d.ts +6 -0
- package/dist/GlobalNavigationBar/mobile/ExitMenuButton.js +27 -0
- package/dist/GlobalNavigationBar/mobile/ExitMenuButton.js.map +1 -0
- package/dist/GlobalNavigationBar/mobile/MobileActionMenu.cjs +91 -0
- package/dist/GlobalNavigationBar/mobile/MobileActionMenu.cjs.map +1 -0
- package/dist/GlobalNavigationBar/mobile/MobileActionMenu.d.ts +13 -0
- package/dist/GlobalNavigationBar/mobile/MobileActionMenu.js +70 -0
- package/dist/GlobalNavigationBar/mobile/MobileActionMenu.js.map +1 -0
- package/dist/GlobalNavigationBar/mobile/MobileMenu.cjs +221 -114
- package/dist/GlobalNavigationBar/mobile/MobileMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenu.d.ts +25 -6
- package/dist/GlobalNavigationBar/mobile/MobileMenu.js +216 -113
- package/dist/GlobalNavigationBar/mobile/MobileMenu.js.map +1 -1
- package/dist/MenuItem/MenuItem.cjs +10 -16
- package/dist/MenuItem/MenuItem.cjs.map +1 -1
- package/dist/MenuItem/MenuItem.d.ts +3 -3
- package/dist/MenuItem/MenuItem.js +8 -14
- package/dist/MenuItem/MenuItem.js.map +1 -1
- package/dist/ProfileButton/ProfileButton.cjs +11 -20
- package/dist/ProfileButton/ProfileButton.cjs.map +1 -1
- package/dist/ProfileButton/ProfileButton.d.ts +1 -3
- package/dist/ProfileButton/ProfileButton.js +10 -18
- package/dist/ProfileButton/ProfileButton.js.map +1 -1
- package/dist/Switcher/MobileSwitcherMenu.cjs +78 -24
- package/dist/Switcher/MobileSwitcherMenu.cjs.map +1 -1
- package/dist/Switcher/MobileSwitcherMenu.d.ts +5 -6
- package/dist/Switcher/MobileSwitcherMenu.js +70 -26
- package/dist/Switcher/MobileSwitcherMenu.js.map +1 -1
- package/dist/Tile/TileBody.cjs +1 -1
- package/dist/Tile/TileBody.cjs.map +1 -1
- package/dist/Tile/TileBody.js +1 -1
- package/dist/Tile/TileBody.js.map +1 -1
- package/dist/Tile/TileCommonItems.cjs +1 -1
- package/dist/Tile/TileCommonItems.cjs.map +1 -1
- package/dist/Tile/TileCommonItems.js +1 -1
- package/dist/Tile/TileCommonItems.js.map +1 -1
- package/dist/Tile/TileFooter.cjs +1 -1
- package/dist/Tile/TileFooter.cjs.map +1 -1
- package/dist/Tile/TileFooter.js +1 -1
- package/dist/Tile/TileFooter.js.map +1 -1
- package/dist/Tile/TileHeader.cjs +1 -1
- package/dist/Tile/TileHeader.cjs.map +1 -1
- package/dist/Tile/TileHeader.js +2 -2
- package/dist/Tile/TileHeader.js.map +1 -1
- package/dist/hooks/useClickOutside.cjs +2 -6
- package/dist/hooks/useClickOutside.cjs.map +1 -1
- package/dist/hooks/useClickOutside.d.ts +1 -1
- package/dist/hooks/useClickOutside.js +2 -6
- package/dist/hooks/useClickOutside.js.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.ts +32 -0
- package/dist/types.js.map +1 -1
- package/package.json +8 -10
- package/dist/GlobalNavigationBar/NavigationHelper.cjs +0 -38
- package/dist/GlobalNavigationBar/NavigationHelper.cjs.map +0 -1
- package/dist/GlobalNavigationBar/NavigationHelper.d.ts +0 -4
- package/dist/GlobalNavigationBar/NavigationHelper.js +0 -27
- package/dist/GlobalNavigationBar/NavigationHelper.js.map +0 -1
- package/dist/GlobalNavigationBar/desktop/DesktopActions.cjs +0 -127
- package/dist/GlobalNavigationBar/desktop/DesktopActions.cjs.map +0 -1
- package/dist/GlobalNavigationBar/desktop/DesktopActions.d.ts +0 -15
- package/dist/GlobalNavigationBar/desktop/DesktopActions.js +0 -98
- package/dist/GlobalNavigationBar/desktop/DesktopActions.js.map +0 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.cjs.map +0 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js.map +0 -1
- package/dist/GlobalNavigationBar/desktop/MainMenu.cjs.map +0 -1
- package/dist/GlobalNavigationBar/desktop/MainMenu.d.ts +0 -8
- package/dist/GlobalNavigationBar/desktop/MainMenu.js.map +0 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs.map +0 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.d.ts +0 -8
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js +0 -59
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js.map +0 -1
- package/dist/GlobalNavigationBar/desktop/UserMenu.cjs +0 -204
- package/dist/GlobalNavigationBar/desktop/UserMenu.cjs.map +0 -1
- package/dist/GlobalNavigationBar/desktop/UserMenu.d.ts +0 -7
- package/dist/GlobalNavigationBar/desktop/UserMenu.js +0 -163
- package/dist/GlobalNavigationBar/desktop/UserMenu.js.map +0 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenuContent.cjs +0 -221
- package/dist/GlobalNavigationBar/mobile/MobileMenuContent.cjs.map +0 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenuContent.d.ts +0 -11
- package/dist/GlobalNavigationBar/mobile/MobileMenuContent.js +0 -184
- package/dist/GlobalNavigationBar/mobile/MobileMenuContent.js.map +0 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.cjs +0 -160
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.cjs.map +0 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.d.ts +0 -12
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js +0 -139
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js.map +0 -1
- package/dist/GlobalNavigationBar/types.cjs +0 -6
- package/dist/GlobalNavigationBar/types.cjs.map +0 -1
- package/dist/GlobalNavigationBar/types.d.ts +0 -120
- package/dist/GlobalNavigationBar/types.js +0 -2
- package/dist/GlobalNavigationBar/types.js.map +0 -1
- package/dist/common/StackState.cjs +0 -47
- package/dist/common/StackState.cjs.map +0 -1
- package/dist/common/StackState.d.ts +0 -7
- package/dist/common/StackState.js +0 -30
- package/dist/common/StackState.js.map +0 -1
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.default = void 0;
|
|
11
|
+
|
|
12
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
|
+
|
|
14
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
19
|
+
|
|
20
|
+
var _Button = require("../../Button");
|
|
21
|
+
|
|
22
|
+
var _styles = require("../../styles");
|
|
23
|
+
|
|
24
|
+
var _Avatar = _interopRequireWildcard(require("../Avatar"));
|
|
25
|
+
|
|
26
|
+
var _MenuLink = _interopRequireDefault(require("./MenuLink"));
|
|
27
|
+
|
|
28
|
+
var _types = require("../../types");
|
|
29
|
+
|
|
30
|
+
var _CommonStyles = require("../mobile/CommonStyles");
|
|
31
|
+
|
|
32
|
+
var _typography = require("../../styles/typography");
|
|
33
|
+
|
|
34
|
+
var _zIndexes = require("../../styles/z-indexes");
|
|
35
|
+
|
|
36
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
|
+
|
|
38
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
39
|
+
|
|
40
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
|
+
|
|
42
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
|
+
|
|
44
|
+
var Menu = _styledComponents.default.ul(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n list-style: none;\n margin: 0;\n padding: 0;\n background-color: ", ";\n box-sizing: border-box;\n display: none;\n min-width: 312px;\n -webkit-animation: ", " 0.2s ease-in-out;\n animation: ", " 0.2s ease-in-out;\n position: absolute;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 1px solid ", ";\n z-index: ", ";\n\n .open & {\n display: block;\n }\n \n .sign-out{\n width: 90%;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 8px auto 12px auto;\n }\n"])), _styles.COLORS.white, _CommonStyles.flowDown, _CommonStyles.flowDown, _styles.COLORS.neutral_200, _zIndexes.Z_INDEXES.fixed_menu);
|
|
45
|
+
|
|
46
|
+
var MenuSection = _styledComponents.default.li(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: 8px 0;\n position: relative;\n\n &:not(:first-of-type)::before {\n content: '';\n position: absolute;\n background: ", ";\n height: 1px;\n top: 0;\n left: 16px;\n right: 16px;\n }\n\n .disabled-link {\n color: #21212150;\n pointer-events: none;\n key-events: none;\n }\n"])), _styles.COLORS.neutral_100);
|
|
47
|
+
|
|
48
|
+
var MenuSectionList = _styledComponents.default.ul(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n list-style: none;\n margin: 0;\n padding: 0;\n\n ", ";\n"])), _CommonStyles.UserMenuSectionListStyling);
|
|
49
|
+
|
|
50
|
+
var StyledAvatarContainer = (0, _styledComponents.default)(_Avatar.AvatarContainer)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin: 25px 0 0 25px;\n pointer-events: none;\n"])));
|
|
51
|
+
|
|
52
|
+
var AvatarAndName = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n\n h5 {\n margin: 28px 0 0 20px;\n ", "\n }\n span {\n margin: 0 0 0 20px;\n ", "\n }\n"])), (0, _typography.HeadlineXXSStyling)(_styles.COLORS.neutral_600), (0, _typography.ComponentXSStyling)(_styles.ComponentTextStyle.Regular, _styles.COLORS.neutral_600));
|
|
53
|
+
|
|
54
|
+
var NameAndEmail = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n"])));
|
|
55
|
+
|
|
56
|
+
var OrganizationName = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 25px;\n ", "\n"])), (0, _typography.ComponentXSStyling)(_styles.ComponentTextStyle.Bold, _styles.COLORS.neutral_600));
|
|
57
|
+
|
|
58
|
+
var UserMenu = function UserMenu(_ref) {
|
|
59
|
+
var firstName = _ref.firstName,
|
|
60
|
+
lastName = _ref.lastName,
|
|
61
|
+
email = _ref.email,
|
|
62
|
+
organizationName = _ref.organizationName,
|
|
63
|
+
clickMenuAction = _ref.clickMenuAction,
|
|
64
|
+
accountSection = _ref.accountSection,
|
|
65
|
+
organizationSection = _ref.organizationSection,
|
|
66
|
+
supportSection = _ref.supportSection,
|
|
67
|
+
signOut = _ref.signOut,
|
|
68
|
+
signOutLabel = _ref.signOutLabel;
|
|
69
|
+
React.useEffect(function () {
|
|
70
|
+
function handleKeyPress(e) {
|
|
71
|
+
if (e.keyCode === 27) {
|
|
72
|
+
clickMenuAction();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
document.addEventListener('keydown', handleKeyPress, false);
|
|
77
|
+
return function () {
|
|
78
|
+
document.removeEventListener('keydown', handleKeyPress, false);
|
|
79
|
+
};
|
|
80
|
+
}, [clickMenuAction]);
|
|
81
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Menu, {
|
|
82
|
+
onClick: clickMenuAction,
|
|
83
|
+
role: "menu",
|
|
84
|
+
"aria-labelledby": "UserMenuButton",
|
|
85
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(AvatarAndName, {
|
|
86
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StyledAvatarContainer, {
|
|
87
|
+
hidePadding: true,
|
|
88
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
89
|
+
size: 48,
|
|
90
|
+
firstName: firstName,
|
|
91
|
+
lastName: lastName,
|
|
92
|
+
color: _styles.COLORS.primary_500,
|
|
93
|
+
profileMenuLink: "#TODO"
|
|
94
|
+
})
|
|
95
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(NameAndEmail, {
|
|
96
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h5", {
|
|
97
|
+
"data-hj-suppress": true,
|
|
98
|
+
children: "".concat(firstName, " ").concat(lastName)
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
100
|
+
"data-hj-suppress": true,
|
|
101
|
+
children: email
|
|
102
|
+
})]
|
|
103
|
+
})]
|
|
104
|
+
}, "AvatarAndNameSection"), accountSection && (accountSection === null || accountSection === void 0 ? void 0 : accountSection.length) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuSection, {
|
|
105
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuSectionList, {
|
|
106
|
+
children: accountSection === null || accountSection === void 0 ? void 0 : accountSection.map(function (element) {
|
|
107
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuLink.default, {
|
|
108
|
+
to: element === null || element === void 0 ? void 0 : element.to,
|
|
109
|
+
menuText: element === null || element === void 0 ? void 0 : element.label,
|
|
110
|
+
Icon: element === null || element === void 0 ? void 0 : element.icon,
|
|
111
|
+
onClick: element === null || element === void 0 ? void 0 : element.onClick
|
|
112
|
+
}, element === null || element === void 0 ? void 0 : element.to);
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
}, "MobileAccountSection"), organizationSection && (organizationSection === null || organizationSection === void 0 ? void 0 : organizationSection.length) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(MenuSection, {
|
|
116
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(OrganizationName, {
|
|
117
|
+
children: organizationName || ''
|
|
118
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuSectionList, {
|
|
119
|
+
children: organizationSection === null || organizationSection === void 0 ? void 0 : organizationSection.map(function (element) {
|
|
120
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuLink.default, {
|
|
121
|
+
to: element === null || element === void 0 ? void 0 : element.to,
|
|
122
|
+
menuText: element === null || element === void 0 ? void 0 : element.label,
|
|
123
|
+
Icon: element === null || element === void 0 ? void 0 : element.icon,
|
|
124
|
+
onClick: element === null || element === void 0 ? void 0 : element.onClick
|
|
125
|
+
}, element === null || element === void 0 ? void 0 : element.to);
|
|
126
|
+
})
|
|
127
|
+
})]
|
|
128
|
+
}, "MobileOrganizationSection"), /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuSection, {
|
|
129
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(MenuSectionList, {
|
|
130
|
+
children: [supportSection === null || supportSection === void 0 ? void 0 : supportSection.map(function (element) {
|
|
131
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuLink.default, {
|
|
132
|
+
isExternal: element.isExternal,
|
|
133
|
+
to: element === null || element === void 0 ? void 0 : element.to,
|
|
134
|
+
menuText: element === null || element === void 0 ? void 0 : element.label,
|
|
135
|
+
Icon: element === null || element === void 0 ? void 0 : element.icon,
|
|
136
|
+
onClick: element === null || element === void 0 ? void 0 : element.onClick
|
|
137
|
+
}, element === null || element === void 0 ? void 0 : element.to);
|
|
138
|
+
}), signOut && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
139
|
+
width: "90%",
|
|
140
|
+
className: "UserMenuLink sign-out",
|
|
141
|
+
variant: "secondary",
|
|
142
|
+
size: _types.Size.Large,
|
|
143
|
+
onClick: function onClick(e) {
|
|
144
|
+
e.preventDefault();
|
|
145
|
+
signOut(e);
|
|
146
|
+
},
|
|
147
|
+
children: signOutLabel
|
|
148
|
+
})]
|
|
149
|
+
})
|
|
150
|
+
}, "MobileSupportSection")]
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
UserMenu.propTypes = {
|
|
155
|
+
firstName: _propTypes.default.string.isRequired,
|
|
156
|
+
lastName: _propTypes.default.string.isRequired,
|
|
157
|
+
email: _propTypes.default.string.isRequired,
|
|
158
|
+
organizationName: _propTypes.default.string.isRequired,
|
|
159
|
+
clickMenuAction: _propTypes.default.func.isRequired,
|
|
160
|
+
accountSection: _propTypes.default.array,
|
|
161
|
+
organizationSection: _propTypes.default.array,
|
|
162
|
+
supportSection: _propTypes.default.array,
|
|
163
|
+
signOut: _propTypes.default.func,
|
|
164
|
+
signOutLabel: _propTypes.default.string
|
|
165
|
+
};
|
|
166
|
+
var _default = UserMenu;
|
|
167
|
+
exports.default = _default;
|
|
168
|
+
//# sourceMappingURL=UserMenu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/GlobalNavigationBar/UserMenu/UserMenu.tsx"],"names":["Menu","styled","ul","COLORS","white","flowDown","neutral_200","Z_INDEXES","fixed_menu","MenuSection","li","neutral_100","MenuSectionList","UserMenuSectionListStyling","StyledAvatarContainer","AvatarContainer","AvatarAndName","div","neutral_600","ComponentTextStyle","Regular","NameAndEmail","OrganizationName","span","Bold","UserMenu","firstName","lastName","email","organizationName","clickMenuAction","accountSection","organizationSection","supportSection","signOut","signOutLabel","React","useEffect","handleKeyPress","e","keyCode","document","addEventListener","removeEventListener","primary_500","length","map","element","to","label","icon","onClick","isExternal","Size","Large","preventDefault"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,IAAI,GAAGC,0BAAOC,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CAAEC,EAAzE;AAA6E,YAAA,QAAQ,EAAED,OAAF,aAAEA,OAAF,uBAAEA,OAAO,CAAEE,KAAhG;AAAuG,YAAA,IAAI,EAAEF,OAAF,aAAEA,OAAF,uBAAEA,OAAO,CAAEG,IAAtH;AAA4H,YAAA,OAAO,EAAEH,OAAF,aAAEA,OAAF,uBAAEA,OAAO,CAAEI;AAA9I,aAAeJ,OAAf,aAAeA,OAAf,uBAAeA,OAAO,CAAEC,EAAxB,CAD0B;AAAA,SAA3B,CADH,EAIGd,OAAO,iBACN,qBAAC,cAAD;AACE,UAAA,KAAK,EAAC,KADR;AAEE,UAAA,SAAS,EAAC,uBAFZ;AAGE,UAAA,OAAO,EAAC,WAHV;AAIE,UAAA,IAAI,EAAEmB,YAAKC,KAJb;AAKE,UAAA,OAAO,EAAE,iBAAAf,CAAC,EAAI;AACZA,YAAAA,CAAC,CAACgB,cAAF;AACArB,YAAAA,OAAO,CAACK,CAAD,CAAP;AACD,WARH;AAAA,oBASGJ;AATH,UALJ;AAAA;AADF,OAAiB,sBAAjB,CA/BF;AAAA,IADF;AAsDD,CApED;;;AAZET,EAAAA,S;AACAC,EAAAA,Q;AACAC,EAAAA,K;AACAC,EAAAA,gB;AACAC,EAAAA,e;AACAC,EAAAA,c;AACAC,EAAAA,mB;AACAC,EAAAA,c;AACAC,EAAAA,O;AACAC,EAAAA,Y;;eAyEaV,Q","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport {Button} from '../../Button';\nimport {COLORS, ComponentTextStyle} from '../../styles';\nimport Avatar, {AvatarContainer} from '../Avatar';\nimport MenuLink from './MenuLink';\nimport { UserMenuItem, Size } from '../../types';\nimport {flowDown, UserMenuSectionListStyling} from '../mobile/CommonStyles';\nimport {ComponentXSStyling, HeadlineXXSStyling} from '../../styles/typography';\nimport {Z_INDEXES} from '../../styles/z-indexes';\n\nconst Menu = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n background-color: ${COLORS.white};\n box-sizing: border-box;\n display: none;\n min-width: 312px;\n -webkit-animation: ${flowDown} 0.2s ease-in-out;\n animation: ${flowDown} 0.2s ease-in-out;\n position: absolute;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 1px solid ${COLORS.neutral_200};\n z-index: ${Z_INDEXES.fixed_menu};\n\n .open & {\n display: block;\n }\n \n .sign-out{\n width: 90%;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 8px auto 12px auto;\n }\n`;\n\nconst MenuSection = styled.li`\n padding: 8px 0;\n position: relative;\n\n &:not(:first-of-type)::before {\n content: '';\n position: absolute;\n background: ${COLORS.neutral_100};\n height: 1px;\n top: 0;\n left: 16px;\n right: 16px;\n }\n\n .disabled-link {\n color: #21212150;\n pointer-events: none;\n key-events: none;\n }\n`;\n\nconst MenuSectionList = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n\n ${UserMenuSectionListStyling};\n`;\n\nconst StyledAvatarContainer = styled(AvatarContainer)`\n margin: 25px 0 0 25px;\n pointer-events: none;\n`;\n\nconst AvatarAndName = styled.div`\n display: flex;\n flex-direction: row;\n\n h5 {\n margin: 28px 0 0 20px;\n ${HeadlineXXSStyling(COLORS.neutral_600)}\n }\n span {\n margin: 0 0 0 20px;\n ${ComponentXSStyling(ComponentTextStyle.Regular, COLORS.neutral_600)}\n }\n`;\n\nconst NameAndEmail = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nconst OrganizationName = styled.span`\n margin-left: 25px;\n ${ComponentXSStyling(ComponentTextStyle.Bold, COLORS.neutral_600)}\n`;\n\ninterface Props {\n firstName: string;\n lastName: string;\n email: string;\n organizationName: string;\n clickMenuAction: () => void;\n accountSection?: UserMenuItem[];\n organizationSection?: UserMenuItem[];\n supportSection?: UserMenuItem[];\n signOut?: (e: any) => void;\n signOutLabel?: string;\n}\n\nconst UserMenu = ({ firstName, lastName, email, organizationName, clickMenuAction, accountSection, organizationSection, supportSection, signOut, signOutLabel }: Props) => {\n React.useEffect(() => {\n function handleKeyPress(e: any) {\n if (e.keyCode === 27) {\n clickMenuAction();\n }\n }\n\n document.addEventListener('keydown', handleKeyPress, false);\n return () => {\n document.removeEventListener('keydown', handleKeyPress, false);\n };\n }, [clickMenuAction]);\n\n return (\n <Menu onClick={clickMenuAction} role=\"menu\" aria-labelledby=\"UserMenuButton\">\n <AvatarAndName key=\"AvatarAndNameSection\">\n <StyledAvatarContainer hidePadding={true}>\n <Avatar size={48} firstName={firstName} lastName={lastName} color={COLORS.primary_500} profileMenuLink=\"#TODO\" />\n </StyledAvatarContainer>\n <NameAndEmail>\n <h5 data-hj-suppress>{`${firstName} ${lastName}`}</h5>\n <span data-hj-suppress>{email}</span>\n </NameAndEmail>\n </AvatarAndName>\n {accountSection && accountSection?.length > 0 && (\n <MenuSection key=\"MobileAccountSection\">\n <MenuSectionList>\n {accountSection?.map(element => (\n <MenuLink key={element?.to} to={element?.to} menuText={element?.label} Icon={element?.icon} onClick={element?.onClick} />\n ))}\n </MenuSectionList>\n </MenuSection>\n )}\n\n {organizationSection && organizationSection?.length > 0 && (\n <MenuSection key=\"MobileOrganizationSection\">\n <OrganizationName>{organizationName || ''}</OrganizationName>\n <MenuSectionList>\n {organizationSection?.map(element => (\n <MenuLink key={element?.to} to={element?.to} menuText={element?.label} Icon={element?.icon} onClick={element?.onClick} />\n ))}\n </MenuSectionList>\n </MenuSection>\n )}\n\n <MenuSection key=\"MobileSupportSection\">\n <MenuSectionList>\n {supportSection?.map(element => (\n <MenuLink key={element?.to} isExternal={element.isExternal} to={element?.to} menuText={element?.label} Icon={element?.icon} onClick={element?.onClick} />\n ))}\n {signOut && (\n <Button\n width=\"90%\"\n className=\"UserMenuLink sign-out\"\n variant=\"secondary\"\n size={Size.Large}\n onClick={e => {\n e.preventDefault();\n signOut(e);\n }}>\n {signOutLabel}\n </Button>\n )}\n </MenuSectionList>\n </MenuSection>\n </Menu>\n );\n};\n\nexport default UserMenu;\n"],"file":"UserMenu.cjs"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UserMenuItem } from '../../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
email: string;
|
|
6
|
+
organizationName: string;
|
|
7
|
+
clickMenuAction: () => void;
|
|
8
|
+
accountSection?: UserMenuItem[];
|
|
9
|
+
organizationSection?: UserMenuItem[];
|
|
10
|
+
supportSection?: UserMenuItem[];
|
|
11
|
+
signOut?: (e: any) => void;
|
|
12
|
+
signOutLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const UserMenu: ({ firstName, lastName, email, organizationName, clickMenuAction, accountSection, organizationSection, supportSection, signOut, signOutLabel }: Props) => JSX.Element;
|
|
15
|
+
export default UserMenu;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
+
import _pt from "prop-types";
|
|
3
|
+
|
|
4
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
5
|
+
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
import { Button } from '../../Button';
|
|
9
|
+
import { COLORS, ComponentTextStyle } from '../../styles';
|
|
10
|
+
import Avatar, { AvatarContainer } from '../Avatar';
|
|
11
|
+
import MenuLink from './MenuLink';
|
|
12
|
+
import { Size } from '../../types';
|
|
13
|
+
import { flowDown, UserMenuSectionListStyling } from '../mobile/CommonStyles';
|
|
14
|
+
import { ComponentXSStyling, HeadlineXXSStyling } from '../../styles/typography';
|
|
15
|
+
import { Z_INDEXES } from '../../styles/z-indexes';
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
var Menu = styled.ul(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n list-style: none;\n margin: 0;\n padding: 0;\n background-color: ", ";\n box-sizing: border-box;\n display: none;\n min-width: 312px;\n -webkit-animation: ", " 0.2s ease-in-out;\n animation: ", " 0.2s ease-in-out;\n position: absolute;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 1px solid ", ";\n z-index: ", ";\n\n .open & {\n display: block;\n }\n \n .sign-out{\n width: 90%;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 8px auto 12px auto;\n }\n"])), COLORS.white, flowDown, flowDown, COLORS.neutral_200, Z_INDEXES.fixed_menu);
|
|
19
|
+
var MenuSection = styled.li(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 0;\n position: relative;\n\n &:not(:first-of-type)::before {\n content: '';\n position: absolute;\n background: ", ";\n height: 1px;\n top: 0;\n left: 16px;\n right: 16px;\n }\n\n .disabled-link {\n color: #21212150;\n pointer-events: none;\n key-events: none;\n }\n"])), COLORS.neutral_100);
|
|
20
|
+
var MenuSectionList = styled.ul(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n list-style: none;\n margin: 0;\n padding: 0;\n\n ", ";\n"])), UserMenuSectionListStyling);
|
|
21
|
+
var StyledAvatarContainer = styled(AvatarContainer)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 25px 0 0 25px;\n pointer-events: none;\n"])));
|
|
22
|
+
var AvatarAndName = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n\n h5 {\n margin: 28px 0 0 20px;\n ", "\n }\n span {\n margin: 0 0 0 20px;\n ", "\n }\n"])), HeadlineXXSStyling(COLORS.neutral_600), ComponentXSStyling(ComponentTextStyle.Regular, COLORS.neutral_600));
|
|
23
|
+
var NameAndEmail = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n"])));
|
|
24
|
+
var OrganizationName = styled.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: 25px;\n ", "\n"])), ComponentXSStyling(ComponentTextStyle.Bold, COLORS.neutral_600));
|
|
25
|
+
|
|
26
|
+
var UserMenu = function UserMenu(_ref) {
|
|
27
|
+
var firstName = _ref.firstName,
|
|
28
|
+
lastName = _ref.lastName,
|
|
29
|
+
email = _ref.email,
|
|
30
|
+
organizationName = _ref.organizationName,
|
|
31
|
+
clickMenuAction = _ref.clickMenuAction,
|
|
32
|
+
accountSection = _ref.accountSection,
|
|
33
|
+
organizationSection = _ref.organizationSection,
|
|
34
|
+
supportSection = _ref.supportSection,
|
|
35
|
+
signOut = _ref.signOut,
|
|
36
|
+
signOutLabel = _ref.signOutLabel;
|
|
37
|
+
React.useEffect(function () {
|
|
38
|
+
function handleKeyPress(e) {
|
|
39
|
+
if (e.keyCode === 27) {
|
|
40
|
+
clickMenuAction();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
document.addEventListener('keydown', handleKeyPress, false);
|
|
45
|
+
return function () {
|
|
46
|
+
document.removeEventListener('keydown', handleKeyPress, false);
|
|
47
|
+
};
|
|
48
|
+
}, [clickMenuAction]);
|
|
49
|
+
return /*#__PURE__*/_jsxs(Menu, {
|
|
50
|
+
onClick: clickMenuAction,
|
|
51
|
+
role: "menu",
|
|
52
|
+
"aria-labelledby": "UserMenuButton",
|
|
53
|
+
children: [/*#__PURE__*/_jsxs(AvatarAndName, {
|
|
54
|
+
children: [/*#__PURE__*/_jsx(StyledAvatarContainer, {
|
|
55
|
+
hidePadding: true,
|
|
56
|
+
children: /*#__PURE__*/_jsx(Avatar, {
|
|
57
|
+
size: 48,
|
|
58
|
+
firstName: firstName,
|
|
59
|
+
lastName: lastName,
|
|
60
|
+
color: COLORS.primary_500,
|
|
61
|
+
profileMenuLink: "#TODO"
|
|
62
|
+
})
|
|
63
|
+
}), /*#__PURE__*/_jsxs(NameAndEmail, {
|
|
64
|
+
children: [/*#__PURE__*/_jsx("h5", {
|
|
65
|
+
"data-hj-suppress": true,
|
|
66
|
+
children: "".concat(firstName, " ").concat(lastName)
|
|
67
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
68
|
+
"data-hj-suppress": true,
|
|
69
|
+
children: email
|
|
70
|
+
})]
|
|
71
|
+
})]
|
|
72
|
+
}, "AvatarAndNameSection"), accountSection && (accountSection === null || accountSection === void 0 ? void 0 : accountSection.length) > 0 && /*#__PURE__*/_jsx(MenuSection, {
|
|
73
|
+
children: /*#__PURE__*/_jsx(MenuSectionList, {
|
|
74
|
+
children: accountSection === null || accountSection === void 0 ? void 0 : accountSection.map(function (element) {
|
|
75
|
+
return /*#__PURE__*/_jsx(MenuLink, {
|
|
76
|
+
to: element === null || element === void 0 ? void 0 : element.to,
|
|
77
|
+
menuText: element === null || element === void 0 ? void 0 : element.label,
|
|
78
|
+
Icon: element === null || element === void 0 ? void 0 : element.icon,
|
|
79
|
+
onClick: element === null || element === void 0 ? void 0 : element.onClick
|
|
80
|
+
}, element === null || element === void 0 ? void 0 : element.to);
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
}, "MobileAccountSection"), organizationSection && (organizationSection === null || organizationSection === void 0 ? void 0 : organizationSection.length) > 0 && /*#__PURE__*/_jsxs(MenuSection, {
|
|
84
|
+
children: [/*#__PURE__*/_jsx(OrganizationName, {
|
|
85
|
+
children: organizationName || ''
|
|
86
|
+
}), /*#__PURE__*/_jsx(MenuSectionList, {
|
|
87
|
+
children: organizationSection === null || organizationSection === void 0 ? void 0 : organizationSection.map(function (element) {
|
|
88
|
+
return /*#__PURE__*/_jsx(MenuLink, {
|
|
89
|
+
to: element === null || element === void 0 ? void 0 : element.to,
|
|
90
|
+
menuText: element === null || element === void 0 ? void 0 : element.label,
|
|
91
|
+
Icon: element === null || element === void 0 ? void 0 : element.icon,
|
|
92
|
+
onClick: element === null || element === void 0 ? void 0 : element.onClick
|
|
93
|
+
}, element === null || element === void 0 ? void 0 : element.to);
|
|
94
|
+
})
|
|
95
|
+
})]
|
|
96
|
+
}, "MobileOrganizationSection"), /*#__PURE__*/_jsx(MenuSection, {
|
|
97
|
+
children: /*#__PURE__*/_jsxs(MenuSectionList, {
|
|
98
|
+
children: [supportSection === null || supportSection === void 0 ? void 0 : supportSection.map(function (element) {
|
|
99
|
+
return /*#__PURE__*/_jsx(MenuLink, {
|
|
100
|
+
isExternal: element.isExternal,
|
|
101
|
+
to: element === null || element === void 0 ? void 0 : element.to,
|
|
102
|
+
menuText: element === null || element === void 0 ? void 0 : element.label,
|
|
103
|
+
Icon: element === null || element === void 0 ? void 0 : element.icon,
|
|
104
|
+
onClick: element === null || element === void 0 ? void 0 : element.onClick
|
|
105
|
+
}, element === null || element === void 0 ? void 0 : element.to);
|
|
106
|
+
}), signOut && /*#__PURE__*/_jsx(Button, {
|
|
107
|
+
width: "90%",
|
|
108
|
+
className: "UserMenuLink sign-out",
|
|
109
|
+
variant: "secondary",
|
|
110
|
+
size: Size.Large,
|
|
111
|
+
onClick: function onClick(e) {
|
|
112
|
+
e.preventDefault();
|
|
113
|
+
signOut(e);
|
|
114
|
+
},
|
|
115
|
+
children: signOutLabel
|
|
116
|
+
})]
|
|
117
|
+
})
|
|
118
|
+
}, "MobileSupportSection")]
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
UserMenu.propTypes = {
|
|
123
|
+
firstName: _pt.string.isRequired,
|
|
124
|
+
lastName: _pt.string.isRequired,
|
|
125
|
+
email: _pt.string.isRequired,
|
|
126
|
+
organizationName: _pt.string.isRequired,
|
|
127
|
+
clickMenuAction: _pt.func.isRequired,
|
|
128
|
+
accountSection: _pt.array,
|
|
129
|
+
organizationSection: _pt.array,
|
|
130
|
+
supportSection: _pt.array,
|
|
131
|
+
signOut: _pt.func,
|
|
132
|
+
signOutLabel: _pt.string
|
|
133
|
+
};
|
|
134
|
+
export default UserMenu;
|
|
135
|
+
//# sourceMappingURL=UserMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/GlobalNavigationBar/UserMenu/UserMenu.tsx"],"names":["React","styled","Button","COLORS","ComponentTextStyle","Avatar","AvatarContainer","MenuLink","Size","flowDown","UserMenuSectionListStyling","ComponentXSStyling","HeadlineXXSStyling","Z_INDEXES","Menu","ul","white","neutral_200","fixed_menu","MenuSection","li","neutral_100","MenuSectionList","StyledAvatarContainer","AvatarAndName","div","neutral_600","Regular","NameAndEmail","OrganizationName","span","Bold","UserMenu","firstName","lastName","email","organizationName","clickMenuAction","accountSection","organizationSection","supportSection","signOut","signOutLabel","useEffect","handleKeyPress","e","keyCode","document","addEventListener","removeEventListener","primary_500","length","map","element","to","label","icon","onClick","isExternal","Large","preventDefault"],"mappings":";;;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAAQC,MAAR,QAAqB,cAArB;AACA,SAAQC,MAAR,EAAgBC,kBAAhB,QAAyC,cAAzC;AACA,OAAOC,MAAP,IAAgBC,eAAhB,QAAsC,WAAtC;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,SAAuBC,IAAvB,QAAmC,aAAnC;AACA,SAAQC,QAAR,EAAkBC,0BAAlB,QAAmD,wBAAnD;AACA,SAAQC,kBAAR,EAA4BC,kBAA5B,QAAqD,yBAArD;AACA,SAAQC,SAAR,QAAwB,wBAAxB;;;AAEA,IAAMC,IAAI,GAAGb,MAAM,CAACc,EAAV,8oBAIYZ,MAAM,CAACa,KAJnB,EAQaP,QARb,EASKA,QATL,EAaYN,MAAM,CAACc,WAbnB,EAcGJ,SAAS,CAACK,UAdb,CAAV;AA8BA,IAAMC,WAAW,GAAGlB,MAAM,CAACmB,EAAV,sYAOCjB,MAAM,CAACkB,WAPR,CAAjB;AAqBA,IAAMC,eAAe,GAAGrB,MAAM,CAACc,EAAV,uIAKjBL,0BALiB,CAArB;AAQA,IAAMa,qBAAqB,GAAGtB,MAAM,CAACK,eAAD,CAAT,4HAA3B;AAKA,I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eA,OAAO,CAAEC,EAAxB,CAD0B;AAAA,SAA3B,CADH,EAIGb,OAAO,iBACN,KAAC,MAAD;AACE,UAAA,KAAK,EAAC,KADR;AAEE,UAAA,SAAS,EAAC,uBAFZ;AAGE,UAAA,OAAO,EAAC,WAHV;AAIE,UAAA,IAAI,EAAEjC,IAAI,CAACmD,KAJb;AAKE,UAAA,OAAO,EAAE,iBAAAd,CAAC,EAAI;AACZA,YAAAA,CAAC,CAACe,cAAF;AACAnB,YAAAA,OAAO,CAACI,CAAD,CAAP;AACD,WARH;AAAA,oBASGH;AATH,UALJ;AAAA;AADF,OAAiB,sBAAjB,CA/BF;AAAA,IADF;AAsDD,CApED;;;AAZET,EAAAA,S;AACAC,EAAAA,Q;AACAC,EAAAA,K;AACAC,EAAAA,gB;AACAC,EAAAA,e;AACAC,EAAAA,c;AACAC,EAAAA,mB;AACAC,EAAAA,c;AACAC,EAAAA,O;AACAC,EAAAA,Y;;AAyEF,eAAeV,QAAf","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport {Button} from '../../Button';\nimport {COLORS, ComponentTextStyle} from '../../styles';\nimport Avatar, {AvatarContainer} from '../Avatar';\nimport MenuLink from './MenuLink';\nimport { UserMenuItem, Size } from '../../types';\nimport {flowDown, UserMenuSectionListStyling} from '../mobile/CommonStyles';\nimport {ComponentXSStyling, HeadlineXXSStyling} from '../../styles/typography';\nimport {Z_INDEXES} from '../../styles/z-indexes';\n\nconst Menu = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n background-color: ${COLORS.white};\n box-sizing: border-box;\n display: none;\n min-width: 312px;\n -webkit-animation: ${flowDown} 0.2s ease-in-out;\n animation: ${flowDown} 0.2s ease-in-out;\n position: absolute;\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 1px solid ${COLORS.neutral_200};\n z-index: ${Z_INDEXES.fixed_menu};\n\n .open & {\n display: block;\n }\n \n .sign-out{\n width: 90%;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 8px auto 12px auto;\n }\n`;\n\nconst MenuSection = styled.li`\n padding: 8px 0;\n position: relative;\n\n &:not(:first-of-type)::before {\n content: '';\n position: absolute;\n background: ${COLORS.neutral_100};\n height: 1px;\n top: 0;\n left: 16px;\n right: 16px;\n }\n\n .disabled-link {\n color: #21212150;\n pointer-events: none;\n key-events: none;\n }\n`;\n\nconst MenuSectionList = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n\n ${UserMenuSectionListStyling};\n`;\n\nconst StyledAvatarContainer = styled(AvatarContainer)`\n margin: 25px 0 0 25px;\n pointer-events: none;\n`;\n\nconst AvatarAndName = styled.div`\n display: flex;\n flex-direction: row;\n\n h5 {\n margin: 28px 0 0 20px;\n ${HeadlineXXSStyling(COLORS.neutral_600)}\n }\n span {\n margin: 0 0 0 20px;\n ${ComponentXSStyling(ComponentTextStyle.Regular, COLORS.neutral_600)}\n }\n`;\n\nconst NameAndEmail = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nconst OrganizationName = styled.span`\n margin-left: 25px;\n ${ComponentXSStyling(ComponentTextStyle.Bold, COLORS.neutral_600)}\n`;\n\ninterface Props {\n firstName: string;\n lastName: string;\n email: string;\n organizationName: string;\n clickMenuAction: () => void;\n accountSection?: UserMenuItem[];\n organizationSection?: UserMenuItem[];\n supportSection?: UserMenuItem[];\n signOut?: (e: any) => void;\n signOutLabel?: string;\n}\n\nconst UserMenu = ({ firstName, lastName, email, organizationName, clickMenuAction, accountSection, organizationSection, supportSection, signOut, signOutLabel }: Props) => {\n React.useEffect(() => {\n function handleKeyPress(e: any) {\n if (e.keyCode === 27) {\n clickMenuAction();\n }\n }\n\n document.addEventListener('keydown', handleKeyPress, false);\n return () => {\n document.removeEventListener('keydown', handleKeyPress, false);\n };\n }, [clickMenuAction]);\n\n return (\n <Menu onClick={clickMenuAction} role=\"menu\" aria-labelledby=\"UserMenuButton\">\n <AvatarAndName key=\"AvatarAndNameSection\">\n <StyledAvatarContainer hidePadding={true}>\n <Avatar size={48} firstName={firstName} lastName={lastName} color={COLORS.primary_500} profileMenuLink=\"#TODO\" />\n </StyledAvatarContainer>\n <NameAndEmail>\n <h5 data-hj-suppress>{`${firstName} ${lastName}`}</h5>\n <span data-hj-suppress>{email}</span>\n </NameAndEmail>\n </AvatarAndName>\n {accountSection && accountSection?.length > 0 && (\n <MenuSection key=\"MobileAccountSection\">\n <MenuSectionList>\n {accountSection?.map(element => (\n <MenuLink key={element?.to} to={element?.to} menuText={element?.label} Icon={element?.icon} onClick={element?.onClick} />\n ))}\n </MenuSectionList>\n </MenuSection>\n )}\n\n {organizationSection && organizationSection?.length > 0 && (\n <MenuSection key=\"MobileOrganizationSection\">\n <OrganizationName>{organizationName || ''}</OrganizationName>\n <MenuSectionList>\n {organizationSection?.map(element => (\n <MenuLink key={element?.to} to={element?.to} menuText={element?.label} Icon={element?.icon} onClick={element?.onClick} />\n ))}\n </MenuSectionList>\n </MenuSection>\n )}\n\n <MenuSection key=\"MobileSupportSection\">\n <MenuSectionList>\n {supportSection?.map(element => (\n <MenuLink key={element?.to} isExternal={element.isExternal} to={element?.to} menuText={element?.label} Icon={element?.icon} onClick={element?.onClick} />\n ))}\n {signOut && (\n <Button\n width=\"90%\"\n className=\"UserMenuLink sign-out\"\n variant=\"secondary\"\n size={Size.Large}\n onClick={e => {\n e.preventDefault();\n signOut(e);\n }}>\n {signOutLabel}\n </Button>\n )}\n </MenuSectionList>\n </MenuSection>\n </Menu>\n );\n};\n\nexport default UserMenu;\n"],"file":"UserMenu.js"}
|
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
Object.defineProperty(exports, "Avatar", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _Avatar.default;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "AvatarContainer", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function get() {
|
|
19
|
+
return _Avatar.AvatarContainer;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
11
22
|
Object.defineProperty(exports, "GlobalNavigationBar", {
|
|
12
23
|
enumerable: true,
|
|
13
24
|
get: function get() {
|
|
@@ -17,17 +28,9 @@ Object.defineProperty(exports, "GlobalNavigationBar", {
|
|
|
17
28
|
|
|
18
29
|
var _GlobalNavigationBar = _interopRequireDefault(require("./GlobalNavigationBar"));
|
|
19
30
|
|
|
20
|
-
var
|
|
31
|
+
var _Avatar = _interopRequireWildcard(require("./Avatar"));
|
|
21
32
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
26
|
-
Object.defineProperty(exports, key, {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function get() {
|
|
29
|
-
return _types[key];
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
34
|
+
|
|
35
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
36
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/GlobalNavigationBar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/GlobalNavigationBar/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA","sourcesContent":["import GlobalNavigationBar from './GlobalNavigationBar';\nimport Avatar, { AvatarContainer } from './Avatar';\n\nexport { GlobalNavigationBar, Avatar, AvatarContainer };\n"],"file":"index.cjs"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import GlobalNavigationBar from './GlobalNavigationBar';
|
|
2
|
-
|
|
3
|
-
export { GlobalNavigationBar };
|
|
2
|
+
import Avatar, { AvatarContainer } from './Avatar';
|
|
3
|
+
export { GlobalNavigationBar, Avatar, AvatarContainer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/GlobalNavigationBar/index.tsx"],"names":["GlobalNavigationBar"],"mappings":"AAAA,OAAOA,mBAAP,MAAgC,uBAAhC;
|
|
1
|
+
{"version":3,"sources":["../../src/GlobalNavigationBar/index.tsx"],"names":["GlobalNavigationBar","Avatar","AvatarContainer"],"mappings":"AAAA,OAAOA,mBAAP,MAAgC,uBAAhC;AACA,OAAOC,MAAP,IAAiBC,eAAjB,QAAwC,UAAxC;AAEA,SAASF,mBAAT,EAA8BC,MAA9B,EAAsCC,eAAtC","sourcesContent":["import GlobalNavigationBar from './GlobalNavigationBar';\nimport Avatar, { AvatarContainer } from './Avatar';\n\nexport { GlobalNavigationBar, Avatar, AvatarContainer };\n"],"file":"index.js"}
|
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.flowDown = exports.
|
|
10
|
+
exports.flowDown = exports.UserMenuSectionListStyling = exports.SiteName = exports.RowLayout = exports.Right = exports.MenuWrapper = exports.MenuSectionList = exports.MenuSection = exports.MenuLink = exports.Menu = exports.Button = void 0;
|
|
11
11
|
|
|
12
12
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
13
|
|
|
@@ -17,7 +17,11 @@ var _styles = require("../../styles");
|
|
|
17
17
|
|
|
18
18
|
var _reactRouterDom = require("react-router-dom");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _typography = require("../../styles/typography");
|
|
21
|
+
|
|
22
|
+
var _zIndexes = require("../../styles/z-indexes");
|
|
23
|
+
|
|
24
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
21
25
|
|
|
22
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
27
|
|
|
@@ -31,35 +35,37 @@ var Button = _styledComponents.default.button(_templateObject2 || (_templateObje
|
|
|
31
35
|
|
|
32
36
|
exports.Button = Button;
|
|
33
37
|
var flowLeft = (0, _styledComponents.keyframes)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n"])));
|
|
34
|
-
var flowRight = (0, _styledComponents.keyframes)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n opacity: 1;\n transform: translateX(0);\n
|
|
35
|
-
var fadeOut = (0, _styledComponents.keyframes)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n opacity: 1;\n visibility: visible;\n }\n to {\n opacity: 0;\n visibility: hidden;\n }\n"])));
|
|
36
|
-
exports.fadeOut = fadeOut;
|
|
37
|
-
var fadeIn = (0, _styledComponents.keyframes)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n opacity: 0;\n visibility: hidden;\n }\n to {\n opacity: 1;\n visibility: visible;\n }\n"])));
|
|
38
|
-
exports.fadeIn = fadeIn;
|
|
38
|
+
var flowRight = (0, _styledComponents.keyframes)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(100%);\n }\n"])));
|
|
39
39
|
|
|
40
|
-
var Menu = _styledComponents.default.
|
|
40
|
+
var Menu = _styledComponents.default.ul(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n list-style: none;\n margin: 0 auto 0 auto;\n background-color: ", ";\n box-sizing: border-box;\n display: none;\n right: 0;\n top: 0;\n min-width: 300px;\n position: absolute;\n z-index: ", ";\n align-items: center;\n width: 320px;\n padding-inline-start: 0;\n\n ", " {\n min-width: 360px;\n }\n\n .open & {\n display: block;\n -webkit-animation: ", " 0.3s ease-in-out;\n animation: ", " 0.3s ease-in-out;\n }\n\n .closed & {\n display: block;\n -webkit-animation: ", " 0.3s ease-in-out;\n animation: ", " 0.3s ease-in-out;\n }\n"])), _styles.COLORS.white, _zIndexes.Z_INDEXES.off_canvas, _styles.BREAKPOINTS.SMALL, flowLeft, flowLeft, flowRight, flowRight);
|
|
41
41
|
|
|
42
42
|
exports.Menu = Menu;
|
|
43
43
|
|
|
44
|
-
var Right = _styledComponents.default.div(
|
|
44
|
+
var Right = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: auto;\n"])));
|
|
45
45
|
|
|
46
46
|
exports.Right = Right;
|
|
47
47
|
|
|
48
|
-
var SiteName = _styledComponents.default.span(
|
|
48
|
+
var SiteName = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n font-weight: bold;\n font-size: 14px;\n margin-left: 4px;\n"])), _styles.COLORS.neutral_600);
|
|
49
49
|
|
|
50
50
|
exports.SiteName = SiteName;
|
|
51
51
|
|
|
52
|
-
var MenuSection = _styledComponents.default.li(
|
|
52
|
+
var MenuSection = _styledComponents.default.li(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 16px;\n .disabled-link {\n color: #21212150;\n pointer-events: none;\n key-events: none;\n }\n"])));
|
|
53
53
|
|
|
54
54
|
exports.MenuSection = MenuSection;
|
|
55
55
|
|
|
56
|
-
var MenuSectionList = _styledComponents.default.ul(
|
|
56
|
+
var MenuSectionList = _styledComponents.default.ul(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n list-style: none;\n padding: 0;\n\n li {\n width: 80%;\n height: 48px;\n margin: 0 auto 0 12px;\n \n a {\n height: 100%;\n }\n }\n"])));
|
|
57
57
|
|
|
58
58
|
exports.MenuSectionList = MenuSectionList;
|
|
59
|
-
var UserMenuSectionListStyling = (0, _styledComponents.css)(
|
|
59
|
+
var UserMenuSectionListStyling = (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n li {\n position: relative;\n }\n li:hover:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n a {\n color: ", ";\n }\n svg {\n color: ", ";\n }\n }\n\n li:focus-within:not(.disabled) {\n z-index: ", ";\n ", "\n a {\n outline: none;\n }\n }\n\n li:active:not(.disabled) {\n z-index: ", ";\n background: ", ";\n a {\n color: ", ";\n }\n svg {\n color: ", ";\n }\n }\n\n .disabled {\n a {\n color: ", ";\n }\n svg {\n color: ", ";\n }\n background-color: ", ";\n }\n"])), _zIndexes.Z_INDEXES.hover, _styles.COLORS.primary_20, _styles.COLORS.primary_600, _styles.COLORS.primary_600, _zIndexes.Z_INDEXES.focus, _styles.focusStyles, _zIndexes.Z_INDEXES.active, _styles.COLORS.primary_100, _styles.COLORS.primary_800, _styles.COLORS.primary_800, _styles.COLORS.neutral_300, _styles.COLORS.neutral_300, _styles.COLORS.neutral_100);
|
|
60
60
|
exports.UserMenuSectionListStyling = UserMenuSectionListStyling;
|
|
61
|
-
var MenuLink = (0, _styledComponents.default)(_reactRouterDom.NavLink)(
|
|
61
|
+
var MenuLink = (0, _styledComponents.default)(_reactRouterDom.NavLink)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n border: none;\n background: transparent;\n margin: auto;\n\n box-sizing: border-box;\n\n ", "\n\n text-decoration: none;\n text-align: center;\n align-items: center;\n display: flex;\n"])), (0, _typography.ComponentMStyling)(_typography.ComponentTextStyle.Regular, _styles.COLORS.black));
|
|
62
62
|
exports.MenuLink = MenuLink;
|
|
63
|
-
|
|
63
|
+
|
|
64
|
+
var MenuWrapper = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n display: ", ";\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n\n &:focus-within,\n &:hover,\n &.open {\n background: ", ";\n }\n"])), _styles.COLORS.white, function (props) {
|
|
65
|
+
return props.isVisible ? 'flex' : 'none';
|
|
66
|
+
}, _styles.COLORS.white);
|
|
67
|
+
|
|
68
|
+
exports.MenuWrapper = MenuWrapper;
|
|
69
|
+
var flowDown = (0, _styledComponents.keyframes)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n opacity: 0;\n transform: translateY(-10px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n"])));
|
|
64
70
|
exports.flowDown = flowDown;
|
|
65
71
|
//# sourceMappingURL=CommonStyles.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/GlobalNavigationBar/mobile/CommonStyles.ts"],"names":["RowLayout","styled","div","Button","button","COLORS","white","flowLeft","keyframes","flowRight","
|
|
1
|
+
{"version":3,"sources":["../../../src/GlobalNavigationBar/mobile/CommonStyles.ts"],"names":["RowLayout","styled","div","Button","button","COLORS","white","flowLeft","keyframes","flowRight","Menu","ul","Z_INDEXES","off_canvas","BREAKPOINTS","SMALL","Right","SiteName","span","neutral_600","MenuSection","li","MenuSectionList","UserMenuSectionListStyling","css","hover","primary_20","primary_600","focus","focusStyles","active","primary_100","primary_800","neutral_300","neutral_100","MenuLink","NavLink","ComponentTextStyle","Regular","black","MenuWrapper","props","isVisible","flowDown"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEO,IAAMA,SAAS,GAAGC,0BAAOC,GAAV,+HAAf;;;;AAKA,IAAMC,MAAM,GAAGF,0BAAOG,MAAV,uJACGC,eAAOC,KADV,CAAZ;;;AAMP,IAAMC,QAAQ,OAAGC,2BAAH,qNAAd;AAWA,IAAMC,SAAS,OAAGD,2BAAH,qNAAf;;AAWO,IAAME,IAAI,GAAGT,0BAAOU,EAAV,mqBAIKN,eAAOC,KAJZ,EAWJM,oBAAUC,UAXN,EAgBbC,oBAAYC,KAhBC,EAsBQR,QAtBR,EAuBAA,QAvBA,EA4BQE,SA5BR,EA6BAA,SA7BA,CAAV;;;;AAiCA,IAAMO,KAAK,GAAGf,0BAAOC,GAAV,+HAAX;;;;AAKA,IAAMe,QAAQ,GAAGhB,0BAAOiB,IAAV,uKACVb,eAAOc,WADG,CAAd;;;;AAOA,IAAMC,WAAW,GAAGnB,0BAAOoB,EAAV,8MAAjB;;;;AASA,IAAMC,eAAe,GAAGrB,0BAAOU,EAAV,qPAArB;;;AAeA,IAAMY,0BAA0B,OAAGC,qBAAH,oqBAKxBZ,oBAAUa,KALc,EAMfpB,eAAOqB,UANQ,EAQxBrB,eAAOsB,WARiB,EAWxBtB,eAAOsB,WAXiB,EAgBxBf,oBAAUgB,KAhBc,EAiBjCC,mBAjBiC,EAwBxBjB,oBAAUkB,MAxBc,EAyBrBzB,eAAO0B,WAzBc,EA2BxB1B,eAAO2B,WA3BiB,EA8BxB3B,eAAO2B,WA9BiB,EAoCxB3B,eAAO4B,WApCiB,EAuCxB5B,eAAO4B,WAvCiB,EAyCf5B,eAAO6B,WAzCQ,CAAhC;;AA6CA,IAAMC,QAAQ,GAAG,+BAAOC,uBAAP,CAAH,4RAOjB,mCAAkBC,+BAAmBC,OAArC,EAA8CjC,eAAOkC,KAArD,CAPiB,CAAd;;;AAeA,IAAMC,WAAW,GAAGvC,0BAAOC,GAAV,+RACFG,eAAOC,KADL,EAEX,UAACmC,KAAD;AAAA,SAAYA,KAAK,CAACC,SAAN,GAAkB,MAAlB,GAA2B,MAAvC;AAAA,CAFW,EAYNrC,eAAOC,KAZD,CAAjB;;;AAoBA,IAAMqC,QAAQ,OAAGnC,2BAAH,wNAAd","sourcesContent":["import styled, { css, keyframes } from 'styled-components';\nimport {BREAKPOINTS, COLORS, focusStyles} from '../../styles';\nimport { NavLink } from 'react-router-dom';\nimport { ComponentMStyling, ComponentTextStyle } from '../../styles/typography';\nimport {Z_INDEXES} from '../../styles/z-indexes';\n\nexport const RowLayout = styled.div`\n display: flex;\n align-items: center;\n`;\n\nexport const Button = styled.button`\n background-color: ${COLORS.white};\n font-weight: bold;\n border: 0;\n`;\n\nconst flowLeft = keyframes`\n 0% {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n`;\n\nconst flowRight = keyframes`\n 0% {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(100%);\n }\n`;\n\nexport const Menu = styled.ul`\n height: 100%;\n list-style: none;\n margin: 0 auto 0 auto;\n background-color: ${COLORS.white};\n box-sizing: border-box;\n display: none;\n right: 0;\n top: 0;\n min-width: 300px;\n position: absolute;\n z-index: ${Z_INDEXES.off_canvas};\n align-items: center;\n width: 320px;\n padding-inline-start: 0;\n\n ${BREAKPOINTS.SMALL} {\n min-width: 360px;\n }\n\n .open & {\n display: block;\n -webkit-animation: ${flowLeft} 0.3s ease-in-out;\n animation: ${flowLeft} 0.3s ease-in-out;\n }\n\n .closed & {\n display: block;\n -webkit-animation: ${flowRight} 0.3s ease-in-out;\n animation: ${flowRight} 0.3s ease-in-out;\n }\n`;\n\nexport const Right = styled.div`\n display: flex;\n margin-left: auto;\n`;\n\nexport const SiteName = styled.span`\n color: ${COLORS.neutral_600};\n font-weight: bold;\n font-size: 14px;\n margin-left: 4px;\n`;\n\nexport const MenuSection = styled.li`\n margin-top: 16px;\n .disabled-link {\n color: #21212150;\n pointer-events: none;\n key-events: none;\n }\n`;\n\nexport const MenuSectionList = styled.ul`\n list-style: none;\n padding: 0;\n\n li {\n width: 80%;\n height: 48px;\n margin: 0 auto 0 12px;\n \n a {\n height: 100%;\n }\n }\n`;\n\nexport const UserMenuSectionListStyling = css`\n li {\n position: relative;\n }\n li:hover:not(.disabled) {\n z-index: ${Z_INDEXES.hover};\n background-color: ${COLORS.primary_20};\n a {\n color: ${COLORS.primary_600};\n }\n svg {\n color: ${COLORS.primary_600};\n }\n }\n\n li:focus-within:not(.disabled) {\n z-index: ${Z_INDEXES.focus};\n ${focusStyles}\n a {\n outline: none;\n }\n }\n\n li:active:not(.disabled) {\n z-index: ${Z_INDEXES.active};\n background: ${COLORS.primary_100};\n a {\n color: ${COLORS.primary_800};\n }\n svg {\n color: ${COLORS.primary_800};\n }\n }\n\n .disabled {\n a {\n color: ${COLORS.neutral_300};\n }\n svg {\n color: ${COLORS.neutral_300};\n }\n background-color: ${COLORS.neutral_100};\n }\n`;\n\nexport const MenuLink = styled(NavLink)`\n border: none;\n background: transparent;\n margin: auto;\n\n box-sizing: border-box;\n\n ${ComponentMStyling(ComponentTextStyle.Regular, COLORS.black)}\n\n text-decoration: none;\n text-align: center;\n align-items: center;\n display: flex;\n`;\n\nexport const MenuWrapper = styled.div<MenuWrapperProps>`\n background-color: ${COLORS.white};\n display: ${(props) => (props.isVisible ? 'flex' : 'none')};\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n\n &:focus-within,\n &:hover,\n &.open {\n background: ${COLORS.white};\n }\n`;\n\ninterface MenuWrapperProps {\n isVisible: boolean;\n}\n\nexport const flowDown = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(-10px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n`;\n"],"file":"CommonStyles.cjs"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { NavLink } from 'react-router-dom';
|
|
2
2
|
export declare const RowLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const Button: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const fadeIn: import("styled-components").Keyframes;
|
|
6
|
-
export declare const Menu: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const Menu: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
7
5
|
export declare const Right: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
6
|
export declare const SiteName: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
9
7
|
export declare const MenuSection: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
10
8
|
export declare const MenuSectionList: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
11
9
|
export declare const UserMenuSectionListStyling: import("styled-components").FlattenSimpleInterpolation;
|
|
12
10
|
export declare const MenuLink: import("styled-components").StyledComponent<typeof NavLink, any, {}, never>;
|
|
11
|
+
export declare const MenuWrapper: import("styled-components").StyledComponent<"div", any, MenuWrapperProps, never>;
|
|
12
|
+
interface MenuWrapperProps {
|
|
13
|
+
isVisible: boolean;
|
|
14
|
+
}
|
|
13
15
|
export declare const flowDown: import("styled-components").Keyframes;
|
|
16
|
+
export {};
|