quirk-ui 0.0.484 → 0.0.486
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index11.css');const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index11.css');const i=require("react/jsx-runtime"),a=require("../../ui/LocaleLink/index.cjs"),c="_additionalCategories_1wmnv_1",d="_container_1wmnv_6",_="_categories_1wmnv_12",u="_list_1wmnv_23",m="_category_1wmnv_31",t={additionalCategories:c,container:d,categories:_,list:u,category:m};function g({categories:e,type:o}){if((e==null?void 0:e.length)===0)return;const s=(e==null?void 0:e.filter(n=>{var l,r;return!((r=(l=n.slug)==null?void 0:l.current)!=null&&r.startsWith("library/type"))}))??[];return i.jsx("section",{className:`${t.additionalCategories} ${o=="article"?"blog":""}`,children:i.jsx("article",{className:t.container,children:i.jsxs("div",{className:t.categories,children:[i.jsx("p",{children:"In this article:"}),i.jsx("div",{className:t.list,children:s&&s.length>0&&s.map(n=>n.slug.current.includes("keyword")&&i.jsx(a.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(n._id)}`,className:t.category,children:n.title},n._id))})]})})})}exports.AdditionalCategoriesBlock=g;
|
|
@@ -1,40 +1,46 @@
|
|
|
1
1
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { LocaleLink as
|
|
3
|
-
import '../../../assets/index11.css';const
|
|
4
|
-
additionalCategories:
|
|
5
|
-
container:
|
|
6
|
-
categories:
|
|
7
|
-
list:
|
|
8
|
-
category:
|
|
2
|
+
import { LocaleLink as c } from "../../ui/LocaleLink/index.mjs";
|
|
3
|
+
import '../../../assets/index11.css';const d = "_additionalCategories_1wmnv_1", _ = "_container_1wmnv_6", m = "_categories_1wmnv_12", h = "_list_1wmnv_23", g = "_category_1wmnv_31", e = {
|
|
4
|
+
additionalCategories: d,
|
|
5
|
+
container: _,
|
|
6
|
+
categories: m,
|
|
7
|
+
list: h,
|
|
8
|
+
category: g
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function v({
|
|
11
11
|
categories: n,
|
|
12
12
|
type: o
|
|
13
13
|
}) {
|
|
14
|
-
if ((n == null ? void 0 : n.length)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
14
|
+
if ((n == null ? void 0 : n.length) === 0) return;
|
|
15
|
+
const l = (n == null ? void 0 : n.filter(
|
|
16
|
+
(t) => {
|
|
17
|
+
var r, s;
|
|
18
|
+
return !((s = (r = t.slug) == null ? void 0 : r.current) != null && s.startsWith("library/type"));
|
|
19
|
+
}
|
|
20
|
+
)) ?? [];
|
|
21
|
+
return /* @__PURE__ */ i(
|
|
22
|
+
"section",
|
|
23
|
+
{
|
|
24
|
+
className: `${e.additionalCategories} ${o == "article" ? "blog" : ""}`,
|
|
25
|
+
children: /* @__PURE__ */ i("article", { className: e.container, children: /* @__PURE__ */ a("div", { className: e.categories, children: [
|
|
26
|
+
/* @__PURE__ */ i("p", { children: "In this article:" }),
|
|
27
|
+
/* @__PURE__ */ i("div", { className: e.list, children: l && l.length > 0 && l.map(
|
|
28
|
+
(t) => t.slug.current.includes("keyword") && /* @__PURE__ */ i(
|
|
29
|
+
c,
|
|
30
|
+
{
|
|
31
|
+
href: `/blog/search?categories=${encodeURIComponent(
|
|
32
|
+
t._id
|
|
33
|
+
)}`,
|
|
34
|
+
className: e.category,
|
|
35
|
+
children: t.title
|
|
36
|
+
},
|
|
37
|
+
t._id
|
|
38
|
+
)
|
|
39
|
+
) })
|
|
40
|
+
] }) })
|
|
41
|
+
}
|
|
42
|
+
);
|
|
37
43
|
}
|
|
38
44
|
export {
|
|
39
|
-
|
|
45
|
+
v as AdditionalCategoriesBlock
|
|
40
46
|
};
|
|
@@ -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),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 n,s;return!((s=(n=c.slug)==null?void 0:n.current)!=null&&s.startsWith("library/type"))}))??null,o=((l=e.categories)==null?void 0:l.find(c=>{var n,s;return(s=(n=c.slug)==null?void 0:n.current)==null?void 0:s.startsWith("library/type")}))??null;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:
|
|
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 n,s;return!((s=(n=c.slug)==null?void 0:n.current)!=null&&s.startsWith("library/type"))}))??null,o=((l=e.categories)==null?void 0:l.find(c=>{var n,s;return(s=(n=c.slug)==null?void 0:n.current)==null?void 0:s.startsWith("library/type")}))??null;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:400,height:250,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;
|
|
@@ -57,8 +57,8 @@ function B({
|
|
|
57
57
|
{
|
|
58
58
|
src: e.featuredImage.imageUrl ?? "",
|
|
59
59
|
alt: ((h = e.featuredImage) == null ? void 0 : h.asset.altText) || ((_ = e == null ? void 0 : e.featuredImage) == null ? void 0 : _.asset.description) || "Content image",
|
|
60
|
-
width:
|
|
61
|
-
height:
|
|
60
|
+
width: 400,
|
|
61
|
+
height: 250,
|
|
62
62
|
priority: !0
|
|
63
63
|
}
|
|
64
64
|
) : /* @__PURE__ */ i("div", { className: t.imagePlaceholder })
|