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"),l=require("../../ui/LocaleLink/index.cjs"),o="_additionalCategories_1wmnv_1",a="_container_1wmnv_6",c="_categories_1wmnv_12",r="_list_1wmnv_23",d="_category_1wmnv_31",n={additionalCategories:o,container:a,categories:c,list:r,category:d};function _({categories:e,type:s}){if((e==null?void 0:e.length)!==0)return i.jsx("section",{className:`${n.additionalCategories} ${s=="article"?"blog":""}`,children:i.jsx("article",{className:n.container,children:i.jsxs("div",{className:n.categories,children:[i.jsx("p",{children:"In this article:"}),i.jsx("div",{className:n.list,children:e&&e.length>0&&e.map(t=>t.slug.current.includes("keyword")&&i.jsx(l.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(t._id)}`,className:n.category,children:t.title},t._id))})]})})})}exports.AdditionalCategoriesBlock=_;
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 l } from "../../ui/LocaleLink/index.mjs";
3
- import '../../../assets/index11.css';const s = "_additionalCategories_1wmnv_1", c = "_container_1wmnv_6", r = "_categories_1wmnv_12", d = "_list_1wmnv_23", _ = "_category_1wmnv_31", e = {
4
- additionalCategories: s,
5
- container: c,
6
- categories: r,
7
- list: d,
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 g({
10
+ function v({
11
11
  categories: n,
12
12
  type: o
13
13
  }) {
14
- if ((n == null ? void 0 : n.length) !== 0)
15
- return /* @__PURE__ */ i(
16
- "section",
17
- {
18
- className: `${e.additionalCategories} ${o == "article" ? "blog" : ""}`,
19
- children: /* @__PURE__ */ i("article", { className: e.container, children: /* @__PURE__ */ a("div", { className: e.categories, children: [
20
- /* @__PURE__ */ i("p", { children: "In this article:" }),
21
- /* @__PURE__ */ i("div", { className: e.list, children: n && n.length > 0 && n.map(
22
- (t) => t.slug.current.includes("keyword") && /* @__PURE__ */ i(
23
- l,
24
- {
25
- href: `/blog/search?categories=${encodeURIComponent(
26
- t._id
27
- )}`,
28
- className: e.category,
29
- children: t.title
30
- },
31
- t._id
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
- g as AdditionalCategoriesBlock
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: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 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: 600,
61
- height: 400,
60
+ width: 400,
61
+ height: 250,
62
62
  priority: !0
63
63
  }
64
64
  ) : /* @__PURE__ */ i("div", { className: t.imagePlaceholder })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.484",
4
+ "version": "0.0.486",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {