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"),
|
|
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
|
|
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
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import y from "next/image";
|
|
3
|
-
import { LocaleLink as
|
|
4
|
-
import { c as
|
|
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
|
|
11
|
+
const v = [
|
|
12
12
|
["path", { d: "M7 7h10v10", key: "1tivn9" }],
|
|
13
13
|
["path", { d: "M7 17 17 7", key: "1vkiza" }]
|
|
14
|
-
],
|
|
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:
|
|
17
|
-
itemTitle:
|
|
18
|
-
callToAction:
|
|
16
|
+
itemImage: E,
|
|
17
|
+
itemTitle: C,
|
|
18
|
+
callToAction: A,
|
|
19
19
|
icon: b,
|
|
20
20
|
single: w,
|
|
21
|
-
first:
|
|
22
|
-
itemContent:
|
|
23
|
-
itemExcerpt:
|
|
24
|
-
imagePlaceholder:
|
|
25
|
-
category:
|
|
26
|
-
itemEyebrow:
|
|
21
|
+
first: P,
|
|
22
|
+
itemContent: $,
|
|
23
|
+
itemExcerpt: k,
|
|
24
|
+
imagePlaceholder: L,
|
|
25
|
+
category: M,
|
|
26
|
+
itemEyebrow: U
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function R({
|
|
29
29
|
article: e,
|
|
30
|
-
className:
|
|
31
|
-
index:
|
|
30
|
+
className: d = "",
|
|
31
|
+
index: f,
|
|
32
32
|
//layout,
|
|
33
|
-
limit:
|
|
33
|
+
limit: p
|
|
34
34
|
}) {
|
|
35
|
-
var
|
|
36
|
-
const
|
|
35
|
+
var l, m, g, h, _;
|
|
36
|
+
const u = `/blog/articles/${e.slug.current}`;
|
|
37
37
|
console.log(e.categories);
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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:
|
|
49
|
-
className: `${t.item} ${
|
|
55
|
+
href: u,
|
|
56
|
+
className: `${t.item} ${d ?? ""} ${f === 0 ? t.first : ""} ${p === 1 ? t.single : ""}`,
|
|
50
57
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
53
|
-
e.featuredImage && e.featuredImage.imageUrl ? /* @__PURE__ */
|
|
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: ((
|
|
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__ */
|
|
69
|
+
) : /* @__PURE__ */ o("div", { className: t.imagePlaceholder })
|
|
63
70
|
] }),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
84
|
+
R as BlogArticleCard
|
|
78
85
|
};
|