quirk-ui 0.0.480 → 0.0.482

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.
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index68.css');const t=require("react/jsx-runtime"),f=require("next/image"),x=require("../../ui/LocaleLink/index.cjs"),y=require("../../../createLucideIcon-DpotSgUx.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index68.css');const t=require("react/jsx-runtime"),x=require("next/image"),y=require("../../ui/LocaleLink/index.cjs"),p=require("../../../createLucideIcon-DpotSgUx.cjs");/**
2
2
  * @license lucide-react v0.488.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const p=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],j=y.createLucideIcon("arrow-up-right",p),I="_item_1fhn6_1",v="_itemImage_1fhn6_14",N="_itemTitle_1fhn6_20",T="_callToAction_1fhn6_26",b="_icon_1fhn6_33",C="_single_1fhn6_39",E="_first_1fhn6_40",A="_itemContent_1fhn6_41",w="_itemExcerpt_1fhn6_88",$="_imagePlaceholder_1fhn6_179",L="_category_1fhn6_227",P="_itemEyebrow_1fhn6_246",i={item:I,itemImage:v,itemTitle:N,callToAction:T,icon:b,single:C,first:E,itemContent:A,itemExcerpt:w,imagePlaceholder:$,category:L,itemEyebrow:P};function k({article:e,className:d="",index:_,limit:h}){var a,l,m,g;const u=`/blog/articles/${e.slug.current}`;console.log(e.categories);const o=((a=e.categories)==null?void 0:a.find(r=>{var s,n;(n=(s=r.slug)==null?void 0:s.current)!=null&&n.startsWith("library/type")}))??null,c=(l=e.categories)==null?void 0:l.find(r=>{var s,n;(n=(s=r.slug)==null?void 0:s.current)==null||n.startsWith("library/type")});return console.log("TYPE",c),console.log("MAIN",o),t.jsxs(x.LocaleLink,{href:u,className:`${i.item} ${d??""} ${_===0?i.first:""} ${h===1?i.single:""}`,children:[t.jsxs("div",{className:i.itemImage,children:[c&&t.jsx("div",{className:i.category,children:c.title}),e.featuredImage&&e.featuredImage.imageUrl?t.jsx(f,{src:e.featuredImage.imageUrl??"",alt:((m=e.featuredImage)==null?void 0:m.asset.altText)||((g=e==null?void 0:e.featuredImage)==null?void 0:g.asset.description)||"Content image",width:600,height:400,priority:!0}):t.jsx("div",{className:i.imagePlaceholder})]}),t.jsxs("div",{className:i.itemContent,children:[o&&t.jsx("div",{className:i.itemEyebrow,children:o.title}),t.jsxs("div",{className:i.itemTitle,children:[t.jsx("h3",{children:e.title}),t.jsx("div",{className:i.callToAction,children:t.jsx("div",{className:i.icon,children:t.jsx(j,{size:45})})})]}),e.excerpt&&t.jsx("p",{className:i.itemExcerpt,children:e.excerpt})]})]})}exports.BlogArticleCard=k;
6
+ */const j=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],I=p.createLucideIcon("arrow-up-right",j),v="_item_1fhn6_1",N="_itemImage_1fhn6_14",T="_itemTitle_1fhn6_20",C="_callToAction_1fhn6_26",E="_icon_1fhn6_33",b="_single_1fhn6_39",A="_first_1fhn6_40",w="_itemContent_1fhn6_41",$="_itemExcerpt_1fhn6_88",L="_imagePlaceholder_1fhn6_179",P="_category_1fhn6_227",k="_itemEyebrow_1fhn6_246",i={item:v,itemImage:N,itemTitle:T,callToAction:C,icon:E,single:b,first:A,itemContent:w,itemExcerpt:$,imagePlaceholder:L,category:P,itemEyebrow:k};function q({article:e,className:_="",index:h,limit:u}){var a,l,m,g,d;const f=`/blog/articles/${e.slug.current}`;console.log(e.categories);const c=((a=e.categories)==null?void 0:a.find(n=>{var s,o;return!((o=(s=n.slug)==null?void 0:s.current)!=null&&o.startsWith("library/type"))}))??null,r=((l=e.categories)==null?void 0:l.find(n=>{var s,o;return(o=(s=n.slug)==null?void 0:s.current)==null?void 0:o.startsWith("library/type")}))??null;return console.log("TYPE",r),console.log("MAIN",c),(m=e.categories)==null||m.forEach(n=>{var s;return console.log("CAT",(s=n.slug)==null?void 0:s.current)}),console.log("================"),t.jsxs(y.LocaleLink,{href:f,className:`${i.item} ${_??""} ${h===0?i.first:""} ${u===1?i.single:""}`,children:[t.jsxs("div",{className:i.itemImage,children:[r&&t.jsx("div",{className:i.category,children:r.title}),e.featuredImage&&e.featuredImage.imageUrl?t.jsx(x,{src:e.featuredImage.imageUrl??"",alt:((g=e.featuredImage)==null?void 0:g.asset.altText)||((d=e==null?void 0:e.featuredImage)==null?void 0:d.asset.description)||"Content image",width:600,height:400,priority:!0}):t.jsx("div",{className:i.imagePlaceholder})]}),t.jsxs("div",{className:i.itemContent,children:[c&&t.jsx("div",{className:i.itemEyebrow,children:c.title}),t.jsxs("div",{className:i.itemTitle,children:[t.jsx("h3",{children:e.title}),t.jsx("div",{className:i.callToAction,children:t.jsx("div",{className:i.icon,children:t.jsx(I,{size:45})})})]}),e.excerpt&&t.jsx("p",{className:i.itemExcerpt,children:e.excerpt})]})]})}exports.BlogArticleCard=q;
@@ -1,78 +1,85 @@
1
- import { jsxs as s, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
2
  import y from "next/image";
3
- import { LocaleLink as u } from "../../ui/LocaleLink/index.mjs";
4
- import { c as I } from "../../../createLucideIcon-C8GTh_Qx.js";
3
+ import { LocaleLink as I } from "../../ui/LocaleLink/index.mjs";
4
+ import { c as N } from "../../../createLucideIcon-C8GTh_Qx.js";
5
5
  import '../../../assets/index68.css';/**
6
6
  * @license lucide-react v0.488.0 - ISC
7
7
  *
8
8
  * This source code is licensed under the ISC license.
9
9
  * See the LICENSE file in the root directory of this source tree.
10
10
  */
11
- const N = [
11
+ const v = [
12
12
  ["path", { d: "M7 7h10v10", key: "1tivn9" }],
13
13
  ["path", { d: "M7 17 17 7", key: "1vkiza" }]
14
- ], v = I("arrow-up-right", N), x = "_item_1fhn6_1", T = "_itemImage_1fhn6_14", E = "_itemTitle_1fhn6_20", C = "_callToAction_1fhn6_26", b = "_icon_1fhn6_33", w = "_single_1fhn6_39", A = "_first_1fhn6_40", P = "_itemContent_1fhn6_41", $ = "_itemExcerpt_1fhn6_88", k = "_imagePlaceholder_1fhn6_179", L = "_category_1fhn6_227", M = "_itemEyebrow_1fhn6_246", t = {
14
+ ], T = N("arrow-up-right", v), x = "_item_1fhn6_1", E = "_itemImage_1fhn6_14", C = "_itemTitle_1fhn6_20", A = "_callToAction_1fhn6_26", b = "_icon_1fhn6_33", w = "_single_1fhn6_39", P = "_first_1fhn6_40", $ = "_itemContent_1fhn6_41", k = "_itemExcerpt_1fhn6_88", L = "_imagePlaceholder_1fhn6_179", M = "_category_1fhn6_227", U = "_itemEyebrow_1fhn6_246", t = {
15
15
  item: x,
16
- itemImage: T,
17
- itemTitle: E,
18
- callToAction: C,
16
+ itemImage: E,
17
+ itemTitle: C,
18
+ callToAction: A,
19
19
  icon: b,
20
20
  single: w,
21
- first: A,
22
- itemContent: P,
23
- itemExcerpt: $,
24
- imagePlaceholder: k,
25
- category: L,
26
- itemEyebrow: M
21
+ first: P,
22
+ itemContent: $,
23
+ itemExcerpt: k,
24
+ imagePlaceholder: L,
25
+ category: M,
26
+ itemEyebrow: U
27
27
  };
28
- function B({
28
+ function R({
29
29
  article: e,
30
- className: _ = "",
31
- index: d,
30
+ className: d = "",
31
+ index: f,
32
32
  //layout,
33
- limit: f
33
+ limit: p
34
34
  }) {
35
- var m, l, g, h;
36
- const p = `/blog/articles/${e.slug.current}`;
35
+ var l, m, g, h, _;
36
+ const u = `/blog/articles/${e.slug.current}`;
37
37
  console.log(e.categories);
38
- const c = ((m = e.categories) == null ? void 0 : m.find((a) => {
39
- var o, n;
40
- (n = (o = a.slug) == null ? void 0 : o.current) != null && n.startsWith("library/type");
41
- })) ?? null, r = (l = e.categories) == null ? void 0 : l.find((a) => {
42
- var o, n;
43
- (n = (o = a.slug) == null ? void 0 : o.current) == null || n.startsWith("library/type");
44
- });
45
- return console.log("TYPE", r), console.log("MAIN", c), /* @__PURE__ */ s(
46
- u,
38
+ const r = ((l = e.categories) == null ? void 0 : l.find(
39
+ (n) => {
40
+ var i, s;
41
+ return !((s = (i = n.slug) == null ? void 0 : i.current) != null && s.startsWith("library/type"));
42
+ }
43
+ )) ?? null, a = ((m = e.categories) == null ? void 0 : m.find(
44
+ (n) => {
45
+ var i, s;
46
+ return (s = (i = n.slug) == null ? void 0 : i.current) == null ? void 0 : s.startsWith("library/type");
47
+ }
48
+ )) ?? null;
49
+ return console.log("TYPE", a), console.log("MAIN", r), (g = e.categories) == null || g.forEach((n) => {
50
+ var i;
51
+ return console.log("CAT", (i = n.slug) == null ? void 0 : i.current);
52
+ }), console.log("================"), /* @__PURE__ */ c(
53
+ I,
47
54
  {
48
- href: p,
49
- className: `${t.item} ${_ ?? ""} ${d === 0 ? t.first : ""} ${f === 1 ? t.single : ""}`,
55
+ href: u,
56
+ className: `${t.item} ${d ?? ""} ${f === 0 ? t.first : ""} ${p === 1 ? t.single : ""}`,
50
57
  children: [
51
- /* @__PURE__ */ s("div", { className: t.itemImage, children: [
52
- r && /* @__PURE__ */ i("div", { className: t.category, children: r.title }),
53
- e.featuredImage && e.featuredImage.imageUrl ? /* @__PURE__ */ i(
58
+ /* @__PURE__ */ c("div", { className: t.itemImage, children: [
59
+ a && /* @__PURE__ */ o("div", { className: t.category, children: a.title }),
60
+ e.featuredImage && e.featuredImage.imageUrl ? /* @__PURE__ */ o(
54
61
  y,
55
62
  {
56
63
  src: e.featuredImage.imageUrl ?? "",
57
- alt: ((g = e.featuredImage) == null ? void 0 : g.asset.altText) || ((h = e == null ? void 0 : e.featuredImage) == null ? void 0 : h.asset.description) || "Content image",
64
+ alt: ((h = e.featuredImage) == null ? void 0 : h.asset.altText) || ((_ = e == null ? void 0 : e.featuredImage) == null ? void 0 : _.asset.description) || "Content image",
58
65
  width: 600,
59
66
  height: 400,
60
67
  priority: !0
61
68
  }
62
- ) : /* @__PURE__ */ i("div", { className: t.imagePlaceholder })
69
+ ) : /* @__PURE__ */ o("div", { className: t.imagePlaceholder })
63
70
  ] }),
64
- /* @__PURE__ */ s("div", { className: t.itemContent, children: [
65
- c && /* @__PURE__ */ i("div", { className: t.itemEyebrow, children: c.title }),
66
- /* @__PURE__ */ s("div", { className: t.itemTitle, children: [
67
- /* @__PURE__ */ i("h3", { children: e.title }),
68
- /* @__PURE__ */ i("div", { className: t.callToAction, children: /* @__PURE__ */ i("div", { className: t.icon, children: /* @__PURE__ */ i(v, { size: 45 }) }) })
71
+ /* @__PURE__ */ c("div", { className: t.itemContent, children: [
72
+ r && /* @__PURE__ */ o("div", { className: t.itemEyebrow, children: r.title }),
73
+ /* @__PURE__ */ c("div", { className: t.itemTitle, children: [
74
+ /* @__PURE__ */ o("h3", { children: e.title }),
75
+ /* @__PURE__ */ o("div", { className: t.callToAction, children: /* @__PURE__ */ o("div", { className: t.icon, children: /* @__PURE__ */ o(T, { size: 45 }) }) })
69
76
  ] }),
70
- e.excerpt && /* @__PURE__ */ i("p", { className: t.itemExcerpt, children: e.excerpt })
77
+ e.excerpt && /* @__PURE__ */ o("p", { className: t.itemExcerpt, children: e.excerpt })
71
78
  ] })
72
79
  ]
73
80
  }
74
81
  );
75
82
  }
76
83
  export {
77
- B as BlogArticleCard
84
+ R as BlogArticleCard
78
85
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.480",
4
+ "version": "0.0.482",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {