@greghowe79/the-lib 2.6.7 → 2.6.8

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.
@@ -5,7 +5,7 @@ const qwik = require("@builder.io/qwik");
5
5
  const qwikCity = require("@builder.io/qwik-city");
6
6
  const styles = require("./styles.css.qwik.cjs");
7
7
  const button = require("../button/button.qwik.cjs");
8
- const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, actions, locale, isLoading, logoReload }) => {
8
+ const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, actions, locale, isLoading }) => {
9
9
  const location = qwikCity.useLocation();
10
10
  const isOpen = qwik.useSignal(false);
11
11
  qwik.useStyles$(styles);
@@ -25,12 +25,7 @@ const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, a
25
25
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
26
26
  class: "menu-left",
27
27
  children: [
28
- logoReload ? /* @__PURE__ */ jsxRuntime.jsx("a", {
29
- href: `/${locale}`,
30
- "aria-label": "Homepage",
31
- onClick$: () => isOpen.value = false,
32
- children: logoComponent && logoComponent({}, null, 0)
33
- }) : /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
28
+ /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
34
29
  href: `/${locale}`,
35
30
  "aria-label": "Homepage",
36
31
  onClick$: () => isOpen.value = false,
@@ -68,16 +63,6 @@ const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, a
68
63
  })
69
64
  }, item.label);
70
65
  }
71
- if (item.reload === true) {
72
- return /* @__PURE__ */ jsxRuntime.jsx("li", {
73
- children: /* @__PURE__ */ jsxRuntime.jsx("a", {
74
- href: item.href,
75
- class: location.url.pathname === item.href ? "active" : "menu-link",
76
- onClick$: () => isOpen.value = false,
77
- children: item.label
78
- })
79
- }, item.label);
80
- }
81
66
  return /* @__PURE__ */ jsxRuntime.jsx("li", {
82
67
  children: /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
83
68
  href: item.href,
@@ -3,7 +3,7 @@ import { component$, useSignal, useStyles$, useOnWindow, $ } from "@builder.io/q
3
3
  import { useLocation, Link } from "@builder.io/qwik-city";
4
4
  import styles from "./styles.css.qwik.mjs";
5
5
  import { Button } from "../button/button.qwik.mjs";
6
- const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, actions, locale, isLoading, logoReload }) => {
6
+ const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, actions, locale, isLoading }) => {
7
7
  const location = useLocation();
8
8
  const isOpen = useSignal(false);
9
9
  useStyles$(styles);
@@ -23,12 +23,7 @@ const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, action
23
23
  /* @__PURE__ */ jsxs("div", {
24
24
  class: "menu-left",
25
25
  children: [
26
- logoReload ? /* @__PURE__ */ jsx("a", {
27
- href: `/${locale}`,
28
- "aria-label": "Homepage",
29
- onClick$: () => isOpen.value = false,
30
- children: logoComponent && logoComponent({}, null, 0)
31
- }) : /* @__PURE__ */ jsx(Link, {
26
+ /* @__PURE__ */ jsx(Link, {
32
27
  href: `/${locale}`,
33
28
  "aria-label": "Homepage",
34
29
  onClick$: () => isOpen.value = false,
@@ -66,16 +61,6 @@ const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, action
66
61
  })
67
62
  }, item.label);
68
63
  }
69
- if (item.reload === true) {
70
- return /* @__PURE__ */ jsx("li", {
71
- children: /* @__PURE__ */ jsx("a", {
72
- href: item.href,
73
- class: location.url.pathname === item.href ? "active" : "menu-link",
74
- onClick$: () => isOpen.value = false,
75
- children: item.label
76
- })
77
- }, item.label);
78
- }
79
64
  return /* @__PURE__ */ jsx("li", {
80
65
  children: /* @__PURE__ */ jsx(Link, {
81
66
  href: item.href,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "2.6.7",
3
+ "version": "2.6.8",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",