luna-one 3.1.473 → 3.1.474
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.
|
@@ -95,9 +95,11 @@ var NavMiniMenu = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
var generateLinks = function generateLinks() {
|
|
98
|
-
|
|
98
|
+
var _links$filter;
|
|
99
|
+
|
|
100
|
+
return links === null || links === void 0 ? void 0 : (_links$filter = links.filter(function (link) {
|
|
99
101
|
return link === null || link === void 0 ? void 0 : link.url;
|
|
100
|
-
}).map(function (link, index) {
|
|
102
|
+
})) === null || _links$filter === void 0 ? void 0 : _links$filter.map(function (link, index) {
|
|
101
103
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
104
|
key: link.text + " " + index,
|
|
103
105
|
onMouseOver: function onMouseOver() {
|
|
@@ -107,7 +109,7 @@ var NavMiniMenu = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
107
109
|
return mouseLeave();
|
|
108
110
|
}
|
|
109
111
|
}, /*#__PURE__*/_react["default"].createElement(LunaLink, {
|
|
110
|
-
className: "".concat(mouse ? "ter-nav-mini-menu__drop-down__link" : "ter-nav-mini-menu__drop-down__link tabFocus", " ").concat(link.text === open ? "ter-nav-mini-menu__drop-down__link--is-open" : "", " ").concat(active ? "active" : "", "\n
|
|
112
|
+
className: "".concat(mouse ? "ter-nav-mini-menu__drop-down__link" : "ter-nav-mini-menu__drop-down__link tabFocus", " ").concat(link.text === open ? "ter-nav-mini-menu__drop-down__link--is-open" : "", " ").concat(active ? "active" : "", "\n "),
|
|
111
113
|
to: link.url,
|
|
112
114
|
onClick: closeAllDropDowns,
|
|
113
115
|
target: link.external ? "_blank" : "_self",
|