supernav-test 2.2.30 → 2.2.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/lsac-supernavbar/components/SidebarMainLink.js +1 -1
- package/dist/components/lsac-supernavbar/components/Topnav.js +11 -14
- package/dist/components/lsac-supernavbar/static/images/saama_logo.svg +2 -2
- package/dist/components/lsac-supernavbar/stylesheets/topnav.scss +1 -0
- package/package.json +2 -2
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
23
23
|
|
24
24
|
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; }
|
25
25
|
|
26
|
-
// import IconRight from '../static/images/sidebar-icons/rightIcon.svg';
|
26
|
+
// import {ReactComponent as IconRight} from '../static/images/sidebar-icons/rightIcon.svg';
|
27
27
|
var styles = require('../stylesheets/sidebar-main-link.scss');
|
28
28
|
|
29
29
|
function SidebarMainLink(props) {
|
@@ -11,11 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
12
12
|
var _reactRedux = require("react-redux");
|
13
13
|
|
14
|
-
var
|
15
|
-
|
16
|
-
var _closeHamburgerIcon = require("../static/images/close-hamburger-icon.svg");
|
17
|
-
|
18
|
-
var _iconUser = require("../static/images/icon-user.svg");
|
14
|
+
var _saama_logo = _interopRequireDefault(require("../static/images/saama_logo.svg"));
|
19
15
|
|
20
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
21
17
|
|
@@ -35,6 +31,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
35
31
|
|
36
32
|
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; }
|
37
33
|
|
34
|
+
// import {ReactComponent as Hamburger} from '../static/images/hamburger-icon.svg';
|
35
|
+
// import {ReactComponent as CloseHamburger} from '../static/images/close-hamburger-icon.svg'
|
36
|
+
// import {ReactComponent as UserIcon} from '../static/images/icon-user.svg';
|
38
37
|
// icon imports
|
39
38
|
require('../stylesheets/topnav.scss');
|
40
39
|
|
@@ -96,12 +95,8 @@ function TopNav(props) {
|
|
96
95
|
var showHamburger = function showHamburger() {
|
97
96
|
var menuIcon;
|
98
97
|
|
99
|
-
if (isLogoClickable) {
|
100
|
-
|
101
|
-
className: "close-hamburger-icon"
|
102
|
-
}, /*#__PURE__*/_react.default.createElement(_closeHamburgerIcon.ReactComponent, null)) : /*#__PURE__*/_react.default.createElement(_hamburgerIcon.ReactComponent, null);
|
103
|
-
} else {
|
104
|
-
menuIcon = /*#__PURE__*/_react.default.createElement(_hamburgerIcon.ReactComponent, null);
|
98
|
+
if (isLogoClickable) {// menuIcon = isMinimal || expanded ? <span className="close-hamburger-icon"><CloseHamburger /></span> : <Hamburger />
|
99
|
+
} else {// menuIcon= <Hamburger />
|
105
100
|
}
|
106
101
|
|
107
102
|
return menuIcon;
|
@@ -129,11 +124,13 @@ function TopNav(props) {
|
|
129
124
|
clickable: isLogoClickable
|
130
125
|
}),
|
131
126
|
onClick: handleToggleClick
|
132
|
-
},
|
127
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
128
|
+
src: _saama_logo.default
|
129
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
133
130
|
className: "LSAC-logo"
|
134
131
|
}, "Life Science ", /*#__PURE__*/_react.default.createElement("br", null), "Analytics Cloud"), !!applicationTitle ? /*#__PURE__*/_react.default.createElement("span", {
|
135
132
|
className: "app-name"
|
136
|
-
}, applicationTitle) : null);
|
133
|
+
}, applicationTitle) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
|
137
134
|
|
138
135
|
var content = topnavDisplayMode === _UtilityConstants.TopnavDisplayModes.MINIMAL ? /*#__PURE__*/_react.default.createElement("div", {
|
139
136
|
className: "top-nav-minimal header-logo",
|
@@ -155,7 +152,7 @@ function TopNav(props) {
|
|
155
152
|
id: "dropdown-basic"
|
156
153
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
157
154
|
className: "account-name"
|
158
|
-
}, accountName)
|
155
|
+
}, accountName)), /*#__PURE__*/_react.default.createElement("div", {
|
159
156
|
className: "user-dropdown-contents"
|
160
157
|
}, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Menu, null, /*#__PURE__*/_react.default.createElement("span", null, userName), /*#__PURE__*/_react.default.createElement("span", {
|
161
158
|
className: "switch-account-link-wrapper"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "supernav-test",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.34",
|
4
4
|
"private": false,
|
5
5
|
"dependencies": {
|
6
6
|
"@testing-library/jest-dom": "5.14.1",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
"build-dev": "webpack --mode development",
|
82
82
|
"build-prod": "webpack --mode production",
|
83
83
|
"tsc-build": "npx tsc",
|
84
|
-
"publish:npm": "set NODE_ENV=production && rm -rf dist && mkdir dist && npx babel --extensions .tsx,.jsx,.ts,.js src --out-dir dist --copy-files"
|
84
|
+
"publish:npm": "set NODE_ENV=production && rm -rf dist && mkdir dist && npx babel --extensions .tsx,.jsx,.ts,.js src --out-dir dist --copy-files && npx tsc"
|
85
85
|
},
|
86
86
|
"eslintConfig": {
|
87
87
|
"extends": [
|