quirk-ui 0.0.480 → 0.0.481

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.
@@ -3,4 +3,4 @@
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 p=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],j=y.createLucideIcon("arrow-up-right",p),v="_item_1fhn6_1",I="_itemImage_1fhn6_14",N="_itemTitle_1fhn6_20",T="_callToAction_1fhn6_26",b="_icon_1fhn6_33",C="_single_1fhn6_39",E="_first_1fhn6_40",w="_itemContent_1fhn6_41",A="_itemExcerpt_1fhn6_88",$="_imagePlaceholder_1fhn6_179",L="_category_1fhn6_227",k="_itemEyebrow_1fhn6_246",i={item:v,itemImage:I,itemTitle:N,callToAction:T,icon:b,single:C,first:E,itemContent:w,itemExcerpt:A,imagePlaceholder:$,category:L,itemEyebrow:k};function q({article:e,className:_="",index:g,limit:h}){var a,l,m,d;const u=`/blog/articles/${e.slug.current}`,r=((a=e.categories)==null?void 0:a.find(c=>{var s,n;return!((n=(s=c.slug)==null?void 0:s.current)!=null&&n.startsWith("library/type"))}))??null,o=(l=e.categories)==null?void 0:l.find(c=>{var s,n;return(n=(s=c.slug)==null?void 0:s.current)==null?void 0:n.startsWith("library/type")});return t.jsxs(x.LocaleLink,{href:u,className:`${i.item} ${_??""} ${g===0?i.first:""} ${h===1?i.single:""}`,children:[t.jsxs("div",{className:i.itemImage,children:[o&&t.jsx("div",{className:i.category,children:o.title}),e.featuredImage&&e.featuredImage.imageUrl?t.jsx(f,{src:e.featuredImage.imageUrl??"",alt:((m=e.featuredImage)==null?void 0:m.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:[r&&t.jsx("div",{className:i.itemEyebrow,children:r.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=q;
@@ -1,60 +1,62 @@
1
1
  import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
2
  import y from "next/image";
3
3
  import { LocaleLink as u } from "../../ui/LocaleLink/index.mjs";
4
- import { c as I } from "../../../createLucideIcon-C8GTh_Qx.js";
4
+ import { c as v } 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 I = [
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
+ ], N = v("arrow-up-right", I), x = "_item_1fhn6_1", T = "_itemImage_1fhn6_14", C = "_itemTitle_1fhn6_20", E = "_callToAction_1fhn6_26", b = "_icon_1fhn6_33", w = "_single_1fhn6_39", A = "_first_1fhn6_40", $ = "_itemContent_1fhn6_41", k = "_itemExcerpt_1fhn6_88", P = "_imagePlaceholder_1fhn6_179", L = "_category_1fhn6_227", U = "_itemEyebrow_1fhn6_246", t = {
15
15
  item: x,
16
16
  itemImage: T,
17
- itemTitle: E,
18
- callToAction: C,
17
+ itemTitle: C,
18
+ callToAction: E,
19
19
  icon: b,
20
20
  single: w,
21
21
  first: A,
22
- itemContent: P,
23
- itemExcerpt: $,
24
- imagePlaceholder: k,
22
+ itemContent: $,
23
+ itemExcerpt: k,
24
+ imagePlaceholder: P,
25
25
  category: L,
26
- itemEyebrow: M
26
+ itemEyebrow: U
27
27
  };
28
28
  function B({
29
29
  article: e,
30
- className: _ = "",
30
+ className: g = "",
31
31
  index: d,
32
32
  //layout,
33
33
  limit: f
34
34
  }) {
35
- var m, l, g, h;
36
- const p = `/blog/articles/${e.slug.current}`;
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(
35
+ var m, l, h, _;
36
+ const p = `/blog/articles/${e.slug.current}`, c = ((m = e.categories) == null ? void 0 : m.find(
37
+ (r) => {
38
+ var n, o;
39
+ return !((o = (n = r.slug) == null ? void 0 : n.current) != null && o.startsWith("library/type"));
40
+ }
41
+ )) ?? null, a = (l = e.categories) == null ? void 0 : l.find(
42
+ (r) => {
43
+ var n, o;
44
+ return (o = (n = r.slug) == null ? void 0 : n.current) == null ? void 0 : o.startsWith("library/type");
45
+ }
46
+ );
47
+ return /* @__PURE__ */ s(
46
48
  u,
47
49
  {
48
50
  href: p,
49
- className: `${t.item} ${_ ?? ""} ${d === 0 ? t.first : ""} ${f === 1 ? t.single : ""}`,
51
+ className: `${t.item} ${g ?? ""} ${d === 0 ? t.first : ""} ${f === 1 ? t.single : ""}`,
50
52
  children: [
51
53
  /* @__PURE__ */ s("div", { className: t.itemImage, children: [
52
- r && /* @__PURE__ */ i("div", { className: t.category, children: r.title }),
54
+ a && /* @__PURE__ */ i("div", { className: t.category, children: a.title }),
53
55
  e.featuredImage && e.featuredImage.imageUrl ? /* @__PURE__ */ i(
54
56
  y,
55
57
  {
56
58
  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",
59
+ alt: ((h = e.featuredImage) == null ? void 0 : h.asset.altText) || ((_ = e == null ? void 0 : e.featuredImage) == null ? void 0 : _.asset.description) || "Content image",
58
60
  width: 600,
59
61
  height: 400,
60
62
  priority: !0
@@ -65,7 +67,7 @@ function B({
65
67
  c && /* @__PURE__ */ i("div", { className: t.itemEyebrow, children: c.title }),
66
68
  /* @__PURE__ */ s("div", { className: t.itemTitle, children: [
67
69
  /* @__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 }) }) })
70
+ /* @__PURE__ */ i("div", { className: t.callToAction, children: /* @__PURE__ */ i("div", { className: t.icon, children: /* @__PURE__ */ i(N, { size: 45 }) }) })
69
71
  ] }),
70
72
  e.excerpt && /* @__PURE__ */ i("p", { className: t.itemExcerpt, children: e.excerpt })
71
73
  ] })
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.481",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {