luna-one 3.1.419 → 3.1.422
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.
|
@@ -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";
|
|
@@ -175,9 +175,15 @@
|
|
|
175
175
|
display: flex;
|
|
176
176
|
|
|
177
177
|
img {
|
|
178
|
+
position: relative;
|
|
179
|
+
left: 8px;
|
|
178
180
|
margin-top: 3px;
|
|
179
181
|
height: 20px;
|
|
180
182
|
width: 20px;
|
|
183
|
+
|
|
184
|
+
@media screen and (max-width: $breakpoint-sm) {
|
|
185
|
+
left: -3px;
|
|
186
|
+
}
|
|
181
187
|
}
|
|
182
188
|
|
|
183
189
|
@media screen and (max-width: $breakpoint-sm) {
|
|
@@ -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() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "luna-one",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.422",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@loadable/component": "^5.15.2",
|
|
6
6
|
"@storybook/addon-knobs": "^6.3.1",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"terra-one": "^3.0.139"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"node-sass": "^4.12.0",
|
|
32
31
|
"react": "^17.0.1",
|
|
33
32
|
"react-dom": "^17.0.1",
|
|
34
33
|
"react-scripts": "4.0.1"
|