quirk-ui 0.0.481 → 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),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;
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,58 +1,63 @@
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 v } 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 I = [
11
+ const v = [
12
12
  ["path", { d: "M7 7h10v10", key: "1tivn9" }],
13
13
  ["path", { d: "M7 17 17 7", key: "1vkiza" }]
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 = {
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,
16
+ itemImage: E,
17
17
  itemTitle: C,
18
- callToAction: E,
18
+ callToAction: A,
19
19
  icon: b,
20
20
  single: w,
21
- first: A,
21
+ first: P,
22
22
  itemContent: $,
23
23
  itemExcerpt: k,
24
- imagePlaceholder: P,
25
- category: L,
24
+ imagePlaceholder: L,
25
+ category: M,
26
26
  itemEyebrow: U
27
27
  };
28
- function B({
28
+ function R({
29
29
  article: e,
30
- className: g = "",
31
- index: d,
30
+ className: d = "",
31
+ index: f,
32
32
  //layout,
33
- limit: f
33
+ limit: p
34
34
  }) {
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"));
35
+ var l, m, g, h, _;
36
+ const u = `/blog/articles/${e.slug.current}`;
37
+ console.log(e.categories);
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"));
40
42
  }
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");
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");
45
47
  }
46
- );
47
- return /* @__PURE__ */ s(
48
- u,
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,
49
54
  {
50
- href: p,
51
- className: `${t.item} ${g ?? ""} ${d === 0 ? t.first : ""} ${f === 1 ? t.single : ""}`,
55
+ href: u,
56
+ className: `${t.item} ${d ?? ""} ${f === 0 ? t.first : ""} ${p === 1 ? t.single : ""}`,
52
57
  children: [
53
- /* @__PURE__ */ s("div", { className: t.itemImage, children: [
54
- a && /* @__PURE__ */ i("div", { className: t.category, children: a.title }),
55
- 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(
56
61
  y,
57
62
  {
58
63
  src: e.featuredImage.imageUrl ?? "",
@@ -61,20 +66,20 @@ function B({
61
66
  height: 400,
62
67
  priority: !0
63
68
  }
64
- ) : /* @__PURE__ */ i("div", { className: t.imagePlaceholder })
69
+ ) : /* @__PURE__ */ o("div", { className: t.imagePlaceholder })
65
70
  ] }),
66
- /* @__PURE__ */ s("div", { className: t.itemContent, children: [
67
- c && /* @__PURE__ */ i("div", { className: t.itemEyebrow, children: c.title }),
68
- /* @__PURE__ */ s("div", { className: t.itemTitle, children: [
69
- /* @__PURE__ */ i("h3", { children: e.title }),
70
- /* @__PURE__ */ i("div", { className: t.callToAction, children: /* @__PURE__ */ i("div", { className: t.icon, children: /* @__PURE__ */ i(N, { 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 }) }) })
71
76
  ] }),
72
- e.excerpt && /* @__PURE__ */ i("p", { className: t.itemExcerpt, children: e.excerpt })
77
+ e.excerpt && /* @__PURE__ */ o("p", { className: t.itemExcerpt, children: e.excerpt })
73
78
  ] })
74
79
  ]
75
80
  }
76
81
  );
77
82
  }
78
83
  export {
79
- B as BlogArticleCard
84
+ R as BlogArticleCard
80
85
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.481",
4
+ "version": "0.0.482",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {