@greghowe79/the-lib 2.6.3 → 2.6.4

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.
@@ -63,11 +63,20 @@ const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, a
63
63
  })
64
64
  }, item.label);
65
65
  }
66
+ if (item.reload === true) {
67
+ return /* @__PURE__ */ jsxRuntime.jsx("li", {
68
+ children: /* @__PURE__ */ jsxRuntime.jsx("a", {
69
+ href: item.href,
70
+ class: location.url.pathname === item.href ? "active" : "menu-link",
71
+ onClick$: () => isOpen.value = false,
72
+ children: item.label
73
+ })
74
+ }, item.label);
75
+ }
66
76
  return /* @__PURE__ */ jsxRuntime.jsx("li", {
67
77
  children: /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
68
78
  href: item.href,
69
- reload: item.reload,
70
- class: `${location.url.pathname === item.href ? "active" : "menu-link"}`,
79
+ class: location.url.pathname === item.href ? "active" : "menu-link",
71
80
  onClick$: () => isOpen.value = false,
72
81
  children: item.label
73
82
  })
@@ -61,11 +61,20 @@ const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, action
61
61
  })
62
62
  }, item.label);
63
63
  }
64
+ if (item.reload === true) {
65
+ return /* @__PURE__ */ jsx("li", {
66
+ children: /* @__PURE__ */ jsx("a", {
67
+ href: item.href,
68
+ class: location.url.pathname === item.href ? "active" : "menu-link",
69
+ onClick$: () => isOpen.value = false,
70
+ children: item.label
71
+ })
72
+ }, item.label);
73
+ }
64
74
  return /* @__PURE__ */ jsx("li", {
65
75
  children: /* @__PURE__ */ jsx(Link, {
66
76
  href: item.href,
67
- reload: item.reload,
68
- class: `${location.url.pathname === item.href ? "active" : "menu-link"}`,
77
+ class: location.url.pathname === item.href ? "active" : "menu-link",
69
78
  onClick$: () => isOpen.value = false,
70
79
  children: item.label
71
80
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",