@greghowe79/the-lib 2.11.9 → 2.12.0

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.
@@ -4,7 +4,7 @@ const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
4
4
  const qwik = require("@builder.io/qwik");
5
5
  const styles = require("./styles.css.qwik.cjs");
6
6
  const qwikCity = require("@builder.io/qwik-city");
7
- const Card = qwik.component$(({ item, icon, subtitle, link, path, disabled }) => {
7
+ const Card = qwik.component$(({ item, icon, subtitle, link, path, disabled, reload }) => {
8
8
  qwik.useStyles$(styles);
9
9
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
10
10
  class: "card",
@@ -67,7 +67,13 @@ const Card = qwik.component$(({ item, icon, subtitle, link, path, disabled }) =>
67
67
  class: "card-icon",
68
68
  children: typeof icon === "function" ? icon({}, null, 0) : icon
69
69
  }),
70
- /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
70
+ reload === true ? /* @__PURE__ */ jsxRuntime.jsx("a", {
71
+ href: path,
72
+ class: disabled ? "link_disabled" : "go-to-profile",
73
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
74
+ children: link
75
+ })
76
+ }) : /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
71
77
  href: path,
72
78
  class: disabled ? "link_disabled" : "go-to-profile",
73
79
  children: /* @__PURE__ */ jsxRuntime.jsx("div", {
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
2
  import { component$, useStyles$ } from "@builder.io/qwik";
3
3
  import styles from "./styles.css.qwik.mjs";
4
4
  import { Link } from "@builder.io/qwik-city";
5
- const Card = component$(({ item, icon, subtitle, link, path, disabled }) => {
5
+ const Card = component$(({ item, icon, subtitle, link, path, disabled, reload }) => {
6
6
  useStyles$(styles);
7
7
  return /* @__PURE__ */ jsxs("div", {
8
8
  class: "card",
@@ -65,7 +65,13 @@ const Card = component$(({ item, icon, subtitle, link, path, disabled }) => {
65
65
  class: "card-icon",
66
66
  children: typeof icon === "function" ? icon({}, null, 0) : icon
67
67
  }),
68
- /* @__PURE__ */ jsx(Link, {
68
+ reload === true ? /* @__PURE__ */ jsx("a", {
69
+ href: path,
70
+ class: disabled ? "link_disabled" : "go-to-profile",
71
+ children: /* @__PURE__ */ jsx("div", {
72
+ children: link
73
+ })
74
+ }) : /* @__PURE__ */ jsx(Link, {
69
75
  href: path,
70
76
  class: disabled ? "link_disabled" : "go-to-profile",
71
77
  children: /* @__PURE__ */ jsx("div", {
@@ -34,6 +34,7 @@ export interface CardProps {
34
34
  link: string;
35
35
  path: string;
36
36
  disabled?: boolean;
37
+ reload?: boolean;
37
38
  }
38
39
  export declare const Card: Component<CardProps>;
39
40
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "2.11.9",
3
+ "version": "2.12.0",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",