@greghowe79/the-lib 2.12.4 → 2.12.5
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.
|
@@ -23,7 +23,6 @@ const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, a
|
|
|
23
23
|
const renderSearchIcon = (icon) => {
|
|
24
24
|
return typeof icon === "function" ? icon({}, null, 0) : icon;
|
|
25
25
|
};
|
|
26
|
-
const searchHref = searchLink?.href ?? "";
|
|
27
26
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", {
|
|
28
27
|
class: `menu ${isOpen.value ? "open" : ""}`,
|
|
29
28
|
"aria-label": ariaLabel,
|
|
@@ -110,28 +109,16 @@ const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, a
|
|
|
110
109
|
href: searchLink.href,
|
|
111
110
|
class: "search-link",
|
|
112
111
|
"aria-label": searchLink.ariaLabel ?? "Search Professional",
|
|
113
|
-
onClick$: (
|
|
114
|
-
|
|
115
|
-
e.preventDefault();
|
|
116
|
-
isOpen.value = false;
|
|
117
|
-
setTimeout(() => {
|
|
118
|
-
window.location.href = searchHref;
|
|
119
|
-
}, 400);
|
|
120
|
-
}
|
|
112
|
+
onClick$: () => {
|
|
113
|
+
isOpen.value = false;
|
|
121
114
|
},
|
|
122
115
|
children: renderSearchIcon(searchLink.icon)
|
|
123
116
|
}) : /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
|
|
124
117
|
href: searchLink.href,
|
|
125
118
|
class: "search-link",
|
|
126
119
|
"aria-label": searchLink.ariaLabel ?? "Search Professional",
|
|
127
|
-
onClick$: (
|
|
128
|
-
|
|
129
|
-
e.preventDefault();
|
|
130
|
-
isOpen.value = false;
|
|
131
|
-
setTimeout(() => {
|
|
132
|
-
window.location.href = searchHref;
|
|
133
|
-
}, 400);
|
|
134
|
-
}
|
|
120
|
+
onClick$: () => {
|
|
121
|
+
isOpen.value = false;
|
|
135
122
|
},
|
|
136
123
|
children: renderSearchIcon(searchLink.icon)
|
|
137
124
|
})),
|
|
@@ -21,7 +21,6 @@ const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, action
|
|
|
21
21
|
const renderSearchIcon = (icon) => {
|
|
22
22
|
return typeof icon === "function" ? icon({}, null, 0) : icon;
|
|
23
23
|
};
|
|
24
|
-
const searchHref = searchLink?.href ?? "";
|
|
25
24
|
return /* @__PURE__ */ jsx("nav", {
|
|
26
25
|
class: `menu ${isOpen.value ? "open" : ""}`,
|
|
27
26
|
"aria-label": ariaLabel,
|
|
@@ -108,28 +107,16 @@ const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, action
|
|
|
108
107
|
href: searchLink.href,
|
|
109
108
|
class: "search-link",
|
|
110
109
|
"aria-label": searchLink.ariaLabel ?? "Search Professional",
|
|
111
|
-
onClick$: (
|
|
112
|
-
|
|
113
|
-
e.preventDefault();
|
|
114
|
-
isOpen.value = false;
|
|
115
|
-
setTimeout(() => {
|
|
116
|
-
window.location.href = searchHref;
|
|
117
|
-
}, 400);
|
|
118
|
-
}
|
|
110
|
+
onClick$: () => {
|
|
111
|
+
isOpen.value = false;
|
|
119
112
|
},
|
|
120
113
|
children: renderSearchIcon(searchLink.icon)
|
|
121
114
|
}) : /* @__PURE__ */ jsx(Link, {
|
|
122
115
|
href: searchLink.href,
|
|
123
116
|
class: "search-link",
|
|
124
117
|
"aria-label": searchLink.ariaLabel ?? "Search Professional",
|
|
125
|
-
onClick$: (
|
|
126
|
-
|
|
127
|
-
e.preventDefault();
|
|
128
|
-
isOpen.value = false;
|
|
129
|
-
setTimeout(() => {
|
|
130
|
-
window.location.href = searchHref;
|
|
131
|
-
}, 400);
|
|
132
|
-
}
|
|
118
|
+
onClick$: () => {
|
|
119
|
+
isOpen.value = false;
|
|
133
120
|
},
|
|
134
121
|
children: renderSearchIcon(searchLink.icon)
|
|
135
122
|
})),
|