luna-one 3.1.418 → 3.1.421
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/application/components/NavBarHandler/NavBarHandler.js +6 -2
- package/dist/luna/components/MegaMenu/MegaMenu.scss +6 -10
- package/dist/luna/components/MobileNav/MobileNav.js +1 -1
- package/dist/luna/components/NavBarTop/NavBarTop.js +5 -2
- package/dist/luna/other-organisms/Flyout/Flyout.js +12 -5
- package/dist/luna/other-organisms/Flyout/Flyout.scss +46 -19
- package/dist/luna/other-organisms/NavBar/NavBar.js +9 -3
- package/dist/luna/other-organisms/NavBar/NavMiniMenu.js +1 -0
- package/package.json +1 -1
|
@@ -31,7 +31,9 @@ var NavBarHandler = function NavBarHandler(_ref) {
|
|
|
31
31
|
searchComponent = _ref.searchComponent,
|
|
32
32
|
searchDeployed = _ref.searchDeployed,
|
|
33
33
|
setSearchDeployed = _ref.setSearchDeployed,
|
|
34
|
-
navigate = _ref.navigate
|
|
34
|
+
navigate = _ref.navigate,
|
|
35
|
+
globalSearch = _ref.globalSearch,
|
|
36
|
+
setGlobalSearch = _ref.setGlobalSearch;
|
|
35
37
|
|
|
36
38
|
var _useState = (0, _react.useState)(false),
|
|
37
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -118,7 +120,9 @@ var NavBarHandler = function NavBarHandler(_ref) {
|
|
|
118
120
|
menuBarTheme: data === null || data === void 0 ? void 0 : data.menuBarTheme,
|
|
119
121
|
topNavTheme: data === null || data === void 0 ? void 0 : data.topNavTheme,
|
|
120
122
|
navigate: navigate,
|
|
121
|
-
authLabels: data === null || data === void 0 ? void 0 : data.authLabels
|
|
123
|
+
authLabels: data === null || data === void 0 ? void 0 : data.authLabels,
|
|
124
|
+
setGlobalSearch: setGlobalSearch,
|
|
125
|
+
globalSearch: globalSearch
|
|
122
126
|
});
|
|
123
127
|
};
|
|
124
128
|
|
|
@@ -520,11 +520,11 @@
|
|
|
520
520
|
overflow: hidden;
|
|
521
521
|
white-space: nowrap;
|
|
522
522
|
font-family: $header-font-family;
|
|
523
|
-
background-color:
|
|
523
|
+
background-color: #DCEDF9;
|
|
524
524
|
visibility: hidden;
|
|
525
525
|
|
|
526
526
|
&--is-open {
|
|
527
|
-
padding:
|
|
527
|
+
padding: 20px 0px;
|
|
528
528
|
opacity: 1;
|
|
529
529
|
height: auto;
|
|
530
530
|
min-height: auto;
|
|
@@ -536,7 +536,7 @@
|
|
|
536
536
|
font-size: $large-body-font-size;
|
|
537
537
|
line-height: 16.6px;
|
|
538
538
|
color: $trimble-blue;
|
|
539
|
-
padding:
|
|
539
|
+
padding: 4px 20px 16px 20px;
|
|
540
540
|
margin: 0;
|
|
541
541
|
-webkit-transition: 0.2s;
|
|
542
542
|
-o-transition: 0.2s;
|
|
@@ -545,22 +545,18 @@
|
|
|
545
545
|
z-index: 2;
|
|
546
546
|
text-decoration: none !important;
|
|
547
547
|
visibility: inherit;
|
|
548
|
-
|
|
549
548
|
&--underline {
|
|
550
549
|
color: $trimble-blue;
|
|
551
550
|
margin: 0;
|
|
552
551
|
font-size: $large-body-font-size;
|
|
553
552
|
display: inline;
|
|
554
|
-
-
|
|
555
|
-
-o-transition: 0.2s;
|
|
556
|
-
transition: 0.2s;
|
|
557
|
-
box-shadow: 0 5px $concrete-gray-1, 0 8px $concrete-gray-1;
|
|
553
|
+
box-shadow: none;
|
|
558
554
|
visibility: visible;
|
|
559
|
-
|
|
560
555
|
&--is-open {
|
|
561
556
|
color: $trimble-blue;
|
|
562
|
-
box-shadow:
|
|
557
|
+
box-shadow: none;
|
|
563
558
|
visibility: visible;
|
|
559
|
+
border-bottom: 2px solid $trimble-blue;
|
|
564
560
|
}
|
|
565
561
|
}
|
|
566
562
|
}
|
|
@@ -138,7 +138,7 @@ var MobileNav = function MobileNav(props) {
|
|
|
138
138
|
var _navOptions$filter, _navOptions$filter$fi;
|
|
139
139
|
|
|
140
140
|
return navOptions === null || navOptions === void 0 ? void 0 : (_navOptions$filter = navOptions.filter(function (option) {
|
|
141
|
-
return publicOnly ? option.isPublicPage : option;
|
|
141
|
+
return publicOnly ? option.isPublicPage ? option.isPublicPage : option : option;
|
|
142
142
|
})) === null || _navOptions$filter === void 0 ? void 0 : (_navOptions$filter$fi = _navOptions$filter.filter(function (option) {
|
|
143
143
|
// filter out unusable options
|
|
144
144
|
return option.type === "category" || option.type === "links" || option.type === "link" || option.type === "page";
|
|
@@ -76,7 +76,9 @@ var NavBarTop = function NavBarTop(props) {
|
|
|
76
76
|
displaySectorName = props.displaySectorName,
|
|
77
77
|
theme = props.theme,
|
|
78
78
|
setDesktopSearchDeployed = props.setDesktopSearchDeployed,
|
|
79
|
-
desktopSearchDeployed = props.desktopSearchDeployed
|
|
79
|
+
desktopSearchDeployed = props.desktopSearchDeployed,
|
|
80
|
+
globalSearch = props.globalSearch,
|
|
81
|
+
setGlobalSearch = props.setGlobalSearch;
|
|
80
82
|
var inputFocus = (0, _utilizeFocus.utilizeFocus)();
|
|
81
83
|
|
|
82
84
|
var _useContext = (0, _react.useContext)(_NavBar.NavBarContext),
|
|
@@ -92,6 +94,7 @@ var NavBarTop = function NavBarTop(props) {
|
|
|
92
94
|
var toggleDesktopSearch = function toggleDesktopSearch(isDesktop) {
|
|
93
95
|
if (!desktopSearchDeployed) {
|
|
94
96
|
setSearchDeployed(true);
|
|
97
|
+
setGlobalSearch(false);
|
|
95
98
|
setDesktopSearchDeployed(true);
|
|
96
99
|
|
|
97
100
|
if (!mouse) {
|
|
@@ -170,7 +173,7 @@ var NavBarTop = function NavBarTop(props) {
|
|
|
170
173
|
}
|
|
171
174
|
};
|
|
172
175
|
|
|
173
|
-
var logoElement = document.querySelector(
|
|
176
|
+
var logoElement = document.querySelector(".ter-navbar-top__logo");
|
|
174
177
|
|
|
175
178
|
var handleToggleWithKeyBoard = function handleToggleWithKeyBoard(event) {
|
|
176
179
|
if (!mouse) {
|
|
@@ -84,7 +84,9 @@ var Flyout = function Flyout(_ref) {
|
|
|
84
84
|
desktopSearchDeployed = _ref.desktopSearchDeployed,
|
|
85
85
|
languageSelectorDeployed = _ref.languageSelectorDeployed,
|
|
86
86
|
handleLanguageSelectorDeployed = _ref.handleLanguageSelectorDeployed,
|
|
87
|
-
closeHamburger = _ref.closeHamburger
|
|
87
|
+
closeHamburger = _ref.closeHamburger,
|
|
88
|
+
globalSearch = _ref.globalSearch,
|
|
89
|
+
setGlobalSearch = _ref.setGlobalSearch;
|
|
88
90
|
|
|
89
91
|
var _useState = (0, _react.useState)(""),
|
|
90
92
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -108,6 +110,7 @@ var Flyout = function Flyout(_ref) {
|
|
|
108
110
|
setDesktopSearchDeployed(true);
|
|
109
111
|
close();
|
|
110
112
|
closeHamburger();
|
|
113
|
+
setGlobalSearch(true);
|
|
111
114
|
};
|
|
112
115
|
|
|
113
116
|
var generateFlyoutLinks = function generateFlyoutLinks(links) {
|
|
@@ -137,8 +140,8 @@ var Flyout = function Flyout(_ref) {
|
|
|
137
140
|
className: "flyout-links__link-icon"
|
|
138
141
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
139
142
|
style: {
|
|
140
|
-
height: "
|
|
141
|
-
width: "
|
|
143
|
+
height: "20px",
|
|
144
|
+
width: "20px"
|
|
142
145
|
},
|
|
143
146
|
id: _lodash.default.uniqueId("id-"),
|
|
144
147
|
src: _externalArrowWhiteTheme.default,
|
|
@@ -197,12 +200,16 @@ var Flyout = function Flyout(_ref) {
|
|
|
197
200
|
className: "ter-flyout__divider ter-flyout__divider-logo"
|
|
198
201
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
199
202
|
className: "ter-flyout__links"
|
|
200
|
-
}, links && generateFlyoutLinks(links)), !disableSearch && /*#__PURE__*/_react.default.createElement(
|
|
203
|
+
}, links && generateFlyoutLinks(links)), !disableSearch && /*#__PURE__*/_react.default.createElement("div", {
|
|
204
|
+
className: "ter-flyout__search"
|
|
205
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
201
206
|
className: "ter-flyout__search-icon",
|
|
202
207
|
onClick: function onClick() {
|
|
203
208
|
return openSearchComponent();
|
|
204
209
|
}
|
|
205
|
-
}, /*#__PURE__*/_react.default.createElement("
|
|
210
|
+
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
211
|
+
className: "ter-flyout__search-text"
|
|
212
|
+
}, searchPlaceholder), /*#__PURE__*/_react.default.createElement("img", {
|
|
206
213
|
id: _lodash.default.uniqueId("id-"),
|
|
207
214
|
src: _searchHighlighted.default,
|
|
208
215
|
alt: "Search"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
&__menu {
|
|
95
95
|
list-style-type: none;
|
|
96
96
|
padding: 0 0 0 7px;
|
|
97
|
-
font-size: $
|
|
97
|
+
font-size: $subheading-size-mobile;
|
|
98
98
|
display: inline-block;
|
|
99
99
|
margin-top: 0;
|
|
100
100
|
margin-bottom: 0;
|
|
@@ -151,45 +151,63 @@
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
+
|
|
155
|
+
&__link:hover > .flyout-links__link-text:before {
|
|
156
|
+
border-bottom: 2px solid $trimble-gold;
|
|
157
|
+
}
|
|
154
158
|
}
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
&__search {
|
|
158
|
-
height: 30px;
|
|
159
162
|
display: flex;
|
|
160
|
-
flex-direction: row;
|
|
161
|
-
align-items: center;
|
|
162
|
-
border-color: rgba(255, 255, 255, 0.5);
|
|
163
|
-
margin-top: 15px;
|
|
164
|
-
padding-bottom: 5px;
|
|
165
|
-
|
|
166
163
|
@media screen and (max-width: $breakpoint-sm) {
|
|
167
|
-
border: none
|
|
164
|
+
border: none;
|
|
168
165
|
height: 60px;
|
|
169
166
|
margin: 0;
|
|
170
167
|
padding: 0 0 0 7px;
|
|
171
168
|
}
|
|
172
169
|
|
|
173
170
|
&-icon {
|
|
174
|
-
|
|
175
|
-
width:
|
|
176
|
-
|
|
171
|
+
justify-content: space-between;
|
|
172
|
+
width: 251px;
|
|
173
|
+
padding: 0 0 0 6px;
|
|
174
|
+
margin-top: 15px;
|
|
175
|
+
display: flex;
|
|
176
|
+
|
|
177
|
+
img {
|
|
178
|
+
position: relative;
|
|
179
|
+
left: 8px;
|
|
180
|
+
margin-top: 3px;
|
|
181
|
+
height: 20px;
|
|
182
|
+
width: 20px;
|
|
183
|
+
|
|
184
|
+
@media screen and (max-width: $breakpoint-sm) {
|
|
185
|
+
left: -3px;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media screen and (max-width: $breakpoint-sm) {
|
|
190
|
+
width: 100%;
|
|
191
|
+
}
|
|
177
192
|
}
|
|
178
193
|
|
|
179
|
-
&-
|
|
180
|
-
|
|
181
|
-
font-size: $large-body-font-size;
|
|
194
|
+
&-text {
|
|
195
|
+
font-size: $subheading-size-mobile;
|
|
182
196
|
color: $white;
|
|
197
|
+
line-height: 25px;
|
|
183
198
|
background: transparent;
|
|
184
199
|
border: none;
|
|
185
200
|
|
|
186
|
-
&:focus {
|
|
187
|
-
outline: none;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
201
|
&::placeholder {
|
|
191
202
|
color: $white;
|
|
192
203
|
}
|
|
204
|
+
@media screen and (max-width: $breakpoint-sm) {
|
|
205
|
+
padding-bottom: 25px;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&-text:hover {
|
|
210
|
+
border-bottom: 2px solid $trimble-gold;
|
|
193
211
|
}
|
|
194
212
|
|
|
195
213
|
&-btn {
|
|
@@ -201,8 +219,17 @@
|
|
|
201
219
|
|
|
202
220
|
@media screen and (max-width: $breakpoint-sm) {
|
|
203
221
|
display: block;
|
|
222
|
+
|
|
204
223
|
}
|
|
205
224
|
}
|
|
225
|
+
|
|
226
|
+
&-icon:hover > &-text {
|
|
227
|
+
border-bottom: 2px solid $trimble-gold;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&__search:hover > p:before {
|
|
232
|
+
border-bottom: 2px solid $trimble-gold;
|
|
206
233
|
}
|
|
207
234
|
|
|
208
235
|
&__divider {
|
|
@@ -156,7 +156,9 @@ var NavBar = function NavBar(props) {
|
|
|
156
156
|
topNavTheme = props.topNavTheme,
|
|
157
157
|
menuBarTheme = props.menuBarTheme,
|
|
158
158
|
navigate = props.navigate,
|
|
159
|
-
authLabels = props.authLabels
|
|
159
|
+
authLabels = props.authLabels,
|
|
160
|
+
setGlobalSearch = props.setGlobalSearch,
|
|
161
|
+
globalSearch = props.globalSearch;
|
|
160
162
|
|
|
161
163
|
var _useState = (0, _react.useState)(null),
|
|
162
164
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -484,7 +486,9 @@ var NavBar = function NavBar(props) {
|
|
|
484
486
|
displaySectorName: displaySectorName,
|
|
485
487
|
theme: topNavTheme,
|
|
486
488
|
desktopSearchDeployed: desktopSearchDeployed,
|
|
487
|
-
setDesktopSearchDeployed: setDesktopSearchDeployed
|
|
489
|
+
setDesktopSearchDeployed: setDesktopSearchDeployed,
|
|
490
|
+
globalSearch: globalSearch,
|
|
491
|
+
setGlobalSearch: setGlobalSearch
|
|
488
492
|
}, !disableLogin && /*#__PURE__*/_react.default.createElement(Login, {
|
|
489
493
|
loginPage: loginPage,
|
|
490
494
|
login: login,
|
|
@@ -557,7 +561,9 @@ var NavBar = function NavBar(props) {
|
|
|
557
561
|
setSearchDeployed: setSearchDeployed,
|
|
558
562
|
desktopSearchDeployed: desktopSearchDeployed,
|
|
559
563
|
setDesktopSearchDeployed: setDesktopSearchDeployed,
|
|
560
|
-
closeHamburger: closeHamburger
|
|
564
|
+
closeHamburger: closeHamburger,
|
|
565
|
+
globalSearch: globalSearch,
|
|
566
|
+
setGlobalSearch: setGlobalSearch
|
|
561
567
|
}));
|
|
562
568
|
};
|
|
563
569
|
|
|
@@ -54,6 +54,7 @@ var NavMiniMenu = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
54
54
|
displayIcons = props.displayIcons,
|
|
55
55
|
theme = props.theme,
|
|
56
56
|
active = props.active;
|
|
57
|
+
var isCollapsed = (links === null || links === void 0 ? void 0 : links.length) > 4 ? true : false;
|
|
57
58
|
(0, _react.useImperativeHandle)(ref, function (e) {
|
|
58
59
|
return {
|
|
59
60
|
handleClick: function handleClick() {
|