quirk-ui 0.1.35 → 0.1.37
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.
- package/dist/index60.css +1 -1
- package/dist/index8.css +1 -1
- package/dist/next/blocks/FeaturedDocumentsBlock/index.cjs +1 -1
- package/dist/next/blocks/FeaturedDocumentsBlock/index.mjs +59 -59
- package/dist/next/cards/BlogArticleCard/index.cjs +2 -2
- package/dist/next/cards/BlogArticleCard/index.mjs +22 -22
- package/package.json +1 -1
package/dist/index60.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_1pa3m_1{display:flex;flex-direction:column;gap:var(--spacing-md);text-decoration:none;overflow:hidden;transition:border-color .3s ease-in-out;max-width:var(--max-item-width)}._item_1pa3m_1:hover{border-color:var(--color-primary-100)}._item_1pa3m_1:hover ._itemImage_1pa3m_14 img{transform:scale(1.05)}._item_1pa3m_1:hover ._itemTitle_1pa3m_20 h3{color:var(--color-primary-100)}._item_1pa3m_1:hover ._callToAction_1pa3m_26 ._label_1pa3m_27{opacity:1;transform:translateY(0);color:#fff}._item_1pa3m_1:hover ._callToAction_1pa3m_26 ._icon_1pa3m_33{color:var(--color-primary-100)}._item_1pa3m_1._single_1pa3m_39._first_1pa3m_40 ._itemContent_1pa3m_41{flex:.5}._item_1pa3m_1._single_1pa3m_39._first_1pa3m_40 ._itemImage_1pa3m_14{min-height:350px;flex:1}._item_1pa3m_1._twoColumn_1pa3m_52 ._itemImage_1pa3m_14{flex:.5}._item_1pa3m_1._twoColumn_1pa3m_52 ._itemContent_1pa3m_41{flex:1}._item_1pa3m_1._first_1pa3m_40._featuredTop_1pa3m_63 ._itemImage_1pa3m_14{min-height:350px;flex:1}._item_1pa3m_1._first_1pa3m_40._featuredTop_1pa3m_63 ._itemContent_1pa3m_41{flex:.5}._item_1pa3m_1._first_1pa3m_40._featuredLeft_1pa3m_74 ._itemImage_1pa3m_14{min-height:350px}._item_1pa3m_1._first_1pa3m_40._featuredLeft_1pa3m_74 ._itemContent_1pa3m_41{flex:1}._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40)._featuredLeft_1pa3m_74 ._itemImage_1pa3m_14,._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40)._featuredTop_1pa3m_63 ._itemImage_1pa3m_14{flex:.5;height:auto;max-height:175px}@media (max-width: 767px){._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40)._featuredLeft_1pa3m_74 ._itemImage_1pa3m_14,._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40)._featuredTop_1pa3m_63 ._itemImage_1pa3m_14{max-height:200px}}._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40)._featuredLeft_1pa3m_74 ._itemContent_1pa3m_41,._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40)._featuredTop_1pa3m_63 ._itemContent_1pa3m_41{flex:1}._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40)._featuredTop_1pa3m_63 ._itemImage_1pa3m_14{flex:1}@media (max-width: 767px){._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40){flex-direction:column}._item_1pa3m_1:not(._item_1pa3m_1._first_1pa3m_40) ._itemExcerpt_1pa3m_113{display:block}}@media (max-width: 767px){._item_1pa3m_1 ._itemImage_1pa3m_14{flex:unset!important;max-height:200px;height:200px;min-height:unset!important}._item_1pa3m_1 ._itemContent_1pa3m_41{display:flex!important}}._itemContent_1pa3m_41{display:flex;flex-direction:column;gap:var(--spacing-sm);color:var(--color-text-primary);flex:1;width:100%}._itemContent_1pa3m_41 h3{flex:1;font-size:var(--font-size-lg);margin-bottom:0;transition:color .3s ease-in-out}._itemContent_1pa3m_41 p{text-decoration:none}._itemTitle_1pa3m_20{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-lg)}._itemImage_1pa3m_14{width:100%;aspect-ratio:16 / 9;position:relative;overflow:hidden;border-radius:var(--radius-md);line-height:0}._itemImage_1pa3m_14 img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease-in-out}._imagePlaceholder_1pa3m_180{flex:1;width:100%;aspect-ratio:16 / 9;position:relative;overflow:hidden;border-radius:var(--radius-md);background-color:var(--color-secondary-25)}._callToAction_1pa3m_26{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing-sm)}._callToAction_1pa3m_26 ._icon_1pa3m_33{display:flex;align-items:center;justify-content:center;width:25px;height:25px;background-color:transparent;color:var(--color-text-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out}._callToAction_1pa3m_26 ._label_1pa3m_27{color:var(--color-primary-100);font-weight:var(--font-weight-semibold);opacity:0;transform:translateY(10px);transition:opacity .3s ease-in-out,transform .3s ease-in-out}._category_1pa3m_229{text-transform:capitalize;position:absolute;top:.75rem;left:.75rem;height:30px;display:flex;align-items:center;color:#fff;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-full);z-index:2;font-size:var(--font-size-sm);background:#00000080;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}._itemEyebrow_1pa3m_248{width:fit-content;font-size:var(--font-size-sm);text-transform:capitalize}
|
package/dist/index8.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._featuredDocuments_3oh02_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_3oh02_7{width:100%;max-width:var(--layout-width);margin:0 auto;display:flex;flex-direction:column;gap:var(--spacing-md);padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._container_3oh02_7:has(._carousel_3oh02_17){padding-left:var(--spacing-md);padding-right:var(--spacing-md)}@media (max-width: 767px){._container_3oh02_7:has(._carousel_3oh02_17){padding-left:0;padding-right:0}}@media (max-width: 767px){._container_3oh02_7:has(._carousel_3oh02_17) ._heading_3oh02_25{padding-left:var(--spacing-md);padding-right:var(--spacing-md)}}._heading_3oh02_25{display:flex;flex-direction:column;gap:var(--spacing-md);width:100%;min-height:2.4rem}@media (max-width: 767px){._heading_3oh02_25{gap:2rem}}._eyebrow_3oh02_46{font-weight:var(--font-weight-bold)}._flex_3oh02_50{display:flex;align-items:flex-end;justify-content:space-between}@media (max-width: 767px){._flex_3oh02_50{flex-direction:column;align-items:flex-start;gap:var(--spacing-md)}}._flex_3oh02_50>div{flex:1}._flex_3oh02_50 a{display:flex;align-items:center;gap:var(--spacing-sm);color:var(--color-primary-100);font-weight:var(--font-weight-semibold);text-decoration:none;transition:color .3s ease-in-out}._flex_3oh02_50 a:hover{color:var(--color-secondary)}._title_3oh02_80{flex:1;text-wrap:balance}._text_3oh02_85{flex:1;display:flex;justify-content:center;flex-direction:column;gap:var(--spacing-lg)}@media (max-width: 767px){._text_3oh02_85{flex:1;width:100%;align-items:flex-start}}._disclaimer_3oh02_99{color:var(--color-text-primary);font-size:var(--font-size-sm)}._carousel_3oh02_17{display:block}._carousel_3oh02_17 ._document_3oh02_107{margin:0 auto;flex:0 0 300px}@media (max-width: 767px){._carousel_3oh02_17 ._document_3oh02_107{flex:0 0 100%}}._documents_3oh02_126{display:grid;gap:var(--spacing-md)}._documents_3oh02_126._col1_3oh02_130{display:block}._documents_3oh02_126._col1_3oh02_130 ._document_3oh02_107{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--spacing-lg)}@media (max-width: 767px){._documents_3oh02_126._col1_3oh02_130 ._document_3oh02_107{flex-direction:column;gap:var(--spacing-md)}}._documents_3oh02_126._col2_3oh02_147{grid-template-columns:repeat(2,1fr)}._documents_3oh02_126._col2_3oh02_147 ._document_3oh02_107{display:flex;flex-direction:column;gap:var(--spacing-md)}._documents_3oh02_126._col3_3oh02_157{grid-template-columns:repeat(3,1fr)}._documents_3oh02_126._col3_3oh02_157 ._document_3oh02_107{display:flex;flex-direction:column;gap:var(--spacing-md)}._documents_3oh02_126._col4_3oh02_167{grid-template-columns:repeat(4,1fr)}._documents_3oh02_126._col4_3oh02_167 ._document_3oh02_107{display:flex;flex-direction:column;gap:var(--spacing-md)}._documents_3oh02_126._featuredTop_3oh02_177{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);row-gap:var(--spacing-xl)}@media (max-width: 767px){._documents_3oh02_126._featuredTop_3oh02_177{row-gap:var(--spacing-xl)}}._documents_3oh02_126._featuredTop_3oh02_177 ._document_3oh02_107:not(:first-of-type) ._documentExcerpt_3oh02_187{display:none}@media (max-width: 767px){._documents_3oh02_126._featuredTop_3oh02_177 ._document_3oh02_107:not(:first-of-type) ._documentExcerpt_3oh02_187{display:block}}._documents_3oh02_126._featuredTop_3oh02_177 ._document_3oh02_107:first-of-type{grid-column:1/4;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--spacing-lg)}@media (max-width: 767px){._documents_3oh02_126._featuredTop_3oh02_177 ._document_3oh02_107:first-of-type{flex-direction:column;gap:var(--spacing-md)}}._documents_3oh02_126._featuredTop_3oh02_177 ._document_3oh02_107:first-of-type ._documentContent_3oh02_211{flex:.4}._documents_3oh02_126._featuredLeft_3oh02_217{grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(2,1fr);column-gap:var(--spacing-xl)}@media (max-width: 767px){._documents_3oh02_126._featuredLeft_3oh02_217{column-gap:var(--spacing-md)}}._documents_3oh02_126._featuredLeft_3oh02_217 ._document_3oh02_107:not(:first-of-type){flex-direction:row;gap:var(--spacing-md)}@media (max-width: 767px){._documents_3oh02_126._featuredLeft_3oh02_217 ._document_3oh02_107:not(:first-of-type){flex-direction:column}}._documents_3oh02_126._featuredLeft_3oh02_217 ._document_3oh02_107:not(:first-of-type) ._documentContent_3oh02_211{flex:1}@media (max-width: 767px){._documents_3oh02_126._featuredLeft_3oh02_217 ._document_3oh02_107:not(:first-of-type) ._documentExcerpt_3oh02_187{display:block}}._documents_3oh02_126._featuredLeft_3oh02_217 ._document_3oh02_107:first-of-type{grid-row:1/4;display:flex;flex-direction:column;align-items:center;justify-content:center}._documents_3oh02_126._featuredLeft_3oh02_217 ._document_3oh02_107:first-of-type ._documentContent_3oh02_211{flex:.4}._documents_3oh02_126._twoColumn_3oh02_258{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}._documents_3oh02_126._twoColumn_3oh02_258 ._document_3oh02_107{flex-direction:row;gap:var(--spacing-md);align-items:center}@media (max-width: 767px){._documents_3oh02_126._col1_3oh02_130,._documents_3oh02_126._col2_3oh02_147,._documents_3oh02_126._col3_3oh02_157,._documents_3oh02_126._col4_3oh02_167,._documents_3oh02_126._featuredTop_3oh02_177,._documents_3oh02_126._featuredLeft_3oh02_217,._documents_3oh02_126._twoColumn_3oh02_258{display:flex;flex-direction:column}._documents_3oh02_126._col1_3oh02_130 ._document_3oh02_107:first-of-type,._documents_3oh02_126._col1_3oh02_130 ._document_3oh02_107:not(:first-of-type),._documents_3oh02_126._col2_3oh02_147 ._document_3oh02_107:first-of-type,._documents_3oh02_126._col2_3oh02_147 ._document_3oh02_107:not(:first-of-type),._documents_3oh02_126._col3_3oh02_157 ._document_3oh02_107:first-of-type,._documents_3oh02_126._col3_3oh02_157 ._document_3oh02_107:not(:first-of-type),._documents_3oh02_126._col4_3oh02_167 ._document_3oh02_107:first-of-type,._documents_3oh02_126._col4_3oh02_167 ._document_3oh02_107:not(:first-of-type),._documents_3oh02_126._featuredTop_3oh02_177 ._document_3oh02_107:first-of-type,._documents_3oh02_126._featuredTop_3oh02_177 ._document_3oh02_107:not(:first-of-type),._documents_3oh02_126._featuredLeft_3oh02_217 ._document_3oh02_107:first-of-type,._documents_3oh02_126._featuredLeft_3oh02_217 ._document_3oh02_107:not(:first-of-type),._documents_3oh02_126._twoColumn_3oh02_258 ._document_3oh02_107:first-of-type,._documents_3oh02_126._twoColumn_3oh02_258 ._document_3oh02_107:not(:first-of-type){flex-direction:column;gap:var(--spacing-md)}}@media (max-width: 767px){._documents_3oh02_126{gap:var(--spacing-xl)}}._multiple_3oh02_293 ._documents_3oh02_126{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--spacing-md)}._multiple_3oh02_293 ._document_3oh02_107{display:flex;flex-direction:column}._document_3oh02_107{display:flex;text-decoration:none;overflow:hidden;transition:border-color .3s ease-in-out}._document_3oh02_107:hover{border-color:var(--color-primary-100)}._document_3oh02_107:hover ._documentTitle_3oh02_317 h3{color:var(--color-primary-100)}._document_3oh02_107:hover ._callToAction_3oh02_323 ._label_3oh02_324{opacity:1;transform:translateY(0);color:#fff}._document_3oh02_107:hover ._callToAction_3oh02_323 ._icon_3oh02_330{color:var(--color-primary-100)}._documentEyebrow_3oh02_337{font-size:var(--font-size-sm);color:var(--color-secondary)}._documentImage_3oh02_342{width:100%;height:100%;aspect-ratio:16/9;position:relative;overflow:hidden;border-radius:var(--radius-md);line-height:0}._documentImage_3oh02_342 img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease-in-out}._documentTitle_3oh02_317{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-lg)}._documentContent_3oh02_211{display:flex;flex-direction:column;gap:var(--spacing-sm);width:100%;color:var(--color-text-primary)}._documentContent_3oh02_211 h3{flex:1;font-size:var(--font-size-lg);margin-bottom:0;transition:color .3s ease-in-out}._documentContent_3oh02_211 p{text-decoration:none}._callToAction_3oh02_323{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing-sm)}._callToAction_3oh02_323 ._icon_3oh02_330{display:flex;align-items:center;justify-content:center;width:25px;height:25px;background-color:transparent;color:var(--color-text-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out}._callToAction_3oh02_323 ._label_3oh02_324{color:var(--color-primary-100);font-weight:var(--font-weight-semibold);opacity:0;transform:translateY(10px);transition:opacity .3s ease-in-out,transform .3s ease-in-out}.blog ._container_3oh02_7{max-width:var(--blog-width)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index8.css');const s=require("react/jsx-runtime"),$=require("react"),P=require("../../../core/components/Carousel/index.cjs"),B=require("../../hooks/useStyleClasses.cjs"),F=require("../../hooks/useMediaQuery.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index8.css');const s=require("react/jsx-runtime"),$=require("react"),P=require("../../../core/components/Carousel/index.cjs"),B=require("../../hooks/useStyleClasses.cjs"),F=require("../../hooks/useMediaQuery.cjs"),v=require("../../../arrow-right-DO6S4vfx.cjs"),z="_featuredDocuments_3oh02_1",Q="_container_3oh02_7",U="_carousel_3oh02_17",Y="_heading_3oh02_25",I="_eyebrow_3oh02_46",R="_flex_3oh02_50",E="_title_3oh02_80",G="_disclaimer_3oh02_99",H="_document_3oh02_107",J="_documents_3oh02_126",K="_col1_3oh02_130",V="_col2_3oh02_147",W="_col3_3oh02_157",X="_col4_3oh02_167",Z="_featuredTop_3oh02_177",O="_featuredLeft_3oh02_217",T="_twoColumn_3oh02_258",e={featuredDocuments:z,container:Q,carousel:U,heading:Y,eyebrow:I,flex:R,title:E,disclaimer:G,document:H,documents:J,col1:K,col2:V,col3:W,col4:X,featuredTop:Z,featuredLeft:O,twoColumn:T};function A(t,i="newest"){return[...t].sort((r,u)=>{switch(i){case"title":return(r.title??"").localeCompare(u.title??"");case"popular":return(u.helpfulYesCount??0)-(r.helpfulYesCount??0);case"newest":default:return(u.publishDate??"").localeCompare(r.publishDate??"")}})}function ee({heading:t,selectionMode:i,layout:r="default",limit:u=4,articles:D,manualArticles:_,sortBy:g,callToAction:o,styleOptions:k,id:q,renderRichText:l,renderLink:h,renderCard:p}){var C,N;const x=$.useRef(null),m=F.useMediaQuery("(max-width: 768px)"),d=i==="manual"?_:D;if(!(d!=null&&d.length))return null;const f=i==="manual"?(_==null?void 0:_.length)??1:u,S=B.useStyleClasses(k),L={featuredTop:e.featuredTop,featuredLeft:e.featuredLeft,twoColumn:e.twoColumn},M={1:e.col1,2:e.col2,3:e.col3,4:e.col4},c=o==null?void 0:o.linkOptions,j=(c==null?void 0:c.linkType)==="internal"?`/${((N=(C=c.internalUrl)==null?void 0:C.slug)==null?void 0:N.current)??""}`:(c==null?void 0:c.linkType)==="external"?c.externalUrl??"/":"/",w=A(d,g).slice(0,f),b=(n,a)=>p?p({article:n,className:e.document,index:a,layout:r,limit:f}):s.jsx("div",{className:e.document,children:s.jsx("p",{children:n.title})},n._id),y=w.map((n,a)=>b(n,a));return s.jsx("section",{id:q,className:`${e.featuredDocuments} ${S}`,children:s.jsxs("article",{className:e.container,children:[(t.title||t.description||o)&&s.jsx("div",{className:e.heading,children:s.jsxs("div",{className:e.flex,children:[s.jsxs("div",{children:[t.eyebrow&&(l?l({blocks:t.eyebrow,className:e.eyebrow}):s.jsx("div",{})),l?l({blocks:t.title,className:e.title}):s.jsx("div",{className:e.title}),t.description&&(l?l({blocks:t.description}):s.jsx("div",{}))]}),(o==null?void 0:o.label)&&(h?h({href:j,children:s.jsxs(s.Fragment,{children:[o.label,s.jsx(v.ArrowRight,{size:18})]})}):s.jsxs("a",{href:j,children:[o.label,s.jsx(v.ArrowRight,{size:18})]}))]})}),r==="carousel"&&y.length>1?s.jsx("div",{className:e.carousel,ref:x,children:s.jsx(P.Carousel,{autoplay:!1,itemsPerPage:m?1:4,itemsPerRow:m?1:4,items:y,isSplit:!1,parentRef:x},m?"mobile":"desktop")}):s.jsx("div",{className:[e.documents,L[r]??"",M[String(f)]??""].filter(Boolean).join(" "),children:w.map((n,a)=>b(n,a))}),t.disclaimer&&(l?l({blocks:t.disclaimer,className:e.disclaimer}):s.jsx("div",{className:e.disclaimer}))]})})}exports.FeaturedDocumentsBlock=ee;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as m, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as B } from "react";
|
|
3
3
|
import { Carousel as F } from "../../../core/components/Carousel/index.mjs";
|
|
4
4
|
import { useStyleClasses as U } from "../../hooks/useStyleClasses.mjs";
|
|
5
5
|
import { useMediaQuery as Y } from "../../hooks/useMediaQuery.mjs";
|
|
6
|
-
import { A as
|
|
7
|
-
import '../../../index8.css';const I = "
|
|
6
|
+
import { A as L } from "../../../arrow-right-QEwnX3Sk.js";
|
|
7
|
+
import '../../../index8.css';const I = "_featuredDocuments_3oh02_1", Q = "_container_3oh02_7", q = "_carousel_3oh02_17", E = "_heading_3oh02_25", G = "_eyebrow_3oh02_46", H = "_flex_3oh02_50", J = "_title_3oh02_80", K = "_disclaimer_3oh02_99", V = "_document_3oh02_107", W = "_documents_3oh02_126", X = "_col1_3oh02_130", Z = "_col2_3oh02_147", O = "_col3_3oh02_157", R = "_col4_3oh02_167", T = "_featuredTop_3oh02_177", A = "_featuredLeft_3oh02_217", ee = "_twoColumn_3oh02_258", e = {
|
|
8
8
|
featuredDocuments: I,
|
|
9
9
|
container: Q,
|
|
10
10
|
carousel: q,
|
|
@@ -23,38 +23,38 @@ import '../../../index8.css';const I = "_featuredDocuments_mg9ni_1", Q = "_conta
|
|
|
23
23
|
featuredLeft: A,
|
|
24
24
|
twoColumn: ee
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return [...
|
|
28
|
-
switch (
|
|
26
|
+
function oe(s, i = "newest") {
|
|
27
|
+
return [...s].sort((r, a) => {
|
|
28
|
+
switch (i) {
|
|
29
29
|
case "title":
|
|
30
|
-
return (
|
|
30
|
+
return (r.title ?? "").localeCompare(a.title ?? "");
|
|
31
31
|
case "popular":
|
|
32
|
-
return (
|
|
32
|
+
return (a.helpfulYesCount ?? 0) - (r.helpfulYesCount ?? 0);
|
|
33
33
|
case "newest":
|
|
34
34
|
default:
|
|
35
|
-
return (
|
|
35
|
+
return (a.publishDate ?? "").localeCompare(r.publishDate ?? "");
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
heading:
|
|
41
|
-
selectionMode:
|
|
42
|
-
layout:
|
|
43
|
-
limit:
|
|
44
|
-
articles:
|
|
45
|
-
manualArticles:
|
|
39
|
+
function ae({
|
|
40
|
+
heading: s,
|
|
41
|
+
selectionMode: i,
|
|
42
|
+
layout: r = "default",
|
|
43
|
+
limit: a = 4,
|
|
44
|
+
articles: g,
|
|
45
|
+
manualArticles: _,
|
|
46
46
|
sortBy: x,
|
|
47
|
-
callToAction:
|
|
47
|
+
callToAction: t,
|
|
48
48
|
styleOptions: j,
|
|
49
49
|
id: M,
|
|
50
|
-
renderRichText:
|
|
51
|
-
renderLink:
|
|
50
|
+
renderRichText: l,
|
|
51
|
+
renderLink: h,
|
|
52
52
|
renderCard: w
|
|
53
53
|
}) {
|
|
54
|
-
var
|
|
55
|
-
const b = B(null), f = Y("(max-width: 768px)"),
|
|
56
|
-
if (!(
|
|
57
|
-
const p =
|
|
54
|
+
var D, k;
|
|
55
|
+
const b = B(null), f = Y("(max-width: 768px)"), d = i === "manual" ? _ : g;
|
|
56
|
+
if (!(d != null && d.length)) return null;
|
|
57
|
+
const p = i === "manual" ? (_ == null ? void 0 : _.length) ?? 1 : a, P = U(j), S = {
|
|
58
58
|
featuredTop: e.featuredTop,
|
|
59
59
|
featuredLeft: e.featuredLeft,
|
|
60
60
|
twoColumn: e.twoColumn
|
|
@@ -63,75 +63,75 @@ function re({
|
|
|
63
63
|
2: e.col2,
|
|
64
64
|
3: e.col3,
|
|
65
65
|
4: e.col4
|
|
66
|
-
},
|
|
66
|
+
}, c = t == null ? void 0 : t.linkOptions, N = (c == null ? void 0 : c.linkType) === "internal" ? `/${((k = (D = c.internalUrl) == null ? void 0 : D.slug) == null ? void 0 : k.current) ?? ""}` : (c == null ? void 0 : c.linkType) === "external" ? c.externalUrl ?? "/" : "/", C = oe(d, x).slice(
|
|
67
67
|
0,
|
|
68
68
|
p
|
|
69
|
-
),
|
|
70
|
-
article:
|
|
69
|
+
), y = (n, u) => w ? w({
|
|
70
|
+
article: n,
|
|
71
71
|
className: e.document,
|
|
72
|
-
index:
|
|
73
|
-
layout:
|
|
72
|
+
index: u,
|
|
73
|
+
layout: r,
|
|
74
74
|
limit: p
|
|
75
75
|
}) : (
|
|
76
76
|
// Plain fallback — replace with your card component via renderCard
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
),
|
|
79
|
-
(
|
|
77
|
+
/* @__PURE__ */ o("div", { className: e.document, children: /* @__PURE__ */ o("p", { children: n.title }) }, n._id)
|
|
78
|
+
), v = C.map(
|
|
79
|
+
(n, u) => y(n, u)
|
|
80
80
|
);
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
|
|
85
|
-
blocks:
|
|
81
|
+
return /* @__PURE__ */ o("section", { id: M, className: `${e.featuredDocuments} ${P}`, children: /* @__PURE__ */ m("article", { className: e.container, children: [
|
|
82
|
+
(s.title || s.description || t) && /* @__PURE__ */ o("div", { className: e.heading, children: /* @__PURE__ */ m("div", { className: e.flex, children: [
|
|
83
|
+
/* @__PURE__ */ m("div", { children: [
|
|
84
|
+
s.eyebrow && (l ? l({
|
|
85
|
+
blocks: s.eyebrow,
|
|
86
86
|
className: e.eyebrow
|
|
87
|
-
}) : /* @__PURE__ */
|
|
88
|
-
|
|
89
|
-
blocks:
|
|
87
|
+
}) : /* @__PURE__ */ o("div", {})),
|
|
88
|
+
l ? l({
|
|
89
|
+
blocks: s.title,
|
|
90
90
|
className: e.title
|
|
91
|
-
}) : /* @__PURE__ */
|
|
92
|
-
|
|
91
|
+
}) : /* @__PURE__ */ o("div", { className: e.title }),
|
|
92
|
+
s.description && (l ? l({ blocks: s.description }) : /* @__PURE__ */ o("div", {}))
|
|
93
93
|
] }),
|
|
94
|
-
(
|
|
95
|
-
href:
|
|
96
|
-
children: /* @__PURE__ */
|
|
97
|
-
|
|
98
|
-
/* @__PURE__ */
|
|
94
|
+
(t == null ? void 0 : t.label) && (h ? h({
|
|
95
|
+
href: N,
|
|
96
|
+
children: /* @__PURE__ */ m(z, { children: [
|
|
97
|
+
t.label,
|
|
98
|
+
/* @__PURE__ */ o(L, { size: 18 })
|
|
99
99
|
] })
|
|
100
|
-
}) : /* @__PURE__ */
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */
|
|
100
|
+
}) : /* @__PURE__ */ m("a", { href: N, children: [
|
|
101
|
+
t.label,
|
|
102
|
+
/* @__PURE__ */ o(L, { size: 18 })
|
|
103
103
|
] }))
|
|
104
104
|
] }) }),
|
|
105
|
-
|
|
105
|
+
r === "carousel" && v.length > 1 ? /* @__PURE__ */ o("div", { className: e.carousel, ref: b, children: /* @__PURE__ */ o(
|
|
106
106
|
F,
|
|
107
107
|
{
|
|
108
108
|
autoplay: !1,
|
|
109
109
|
itemsPerPage: f ? 1 : 4,
|
|
110
110
|
itemsPerRow: f ? 1 : 4,
|
|
111
|
-
items:
|
|
111
|
+
items: v,
|
|
112
112
|
isSplit: !1,
|
|
113
113
|
parentRef: b
|
|
114
114
|
},
|
|
115
115
|
f ? "mobile" : "desktop"
|
|
116
|
-
) }) : /* @__PURE__ */
|
|
116
|
+
) }) : /* @__PURE__ */ o(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
119
|
className: [
|
|
120
120
|
e.documents,
|
|
121
|
-
S[
|
|
121
|
+
S[r] ?? "",
|
|
122
122
|
$[String(p)] ?? ""
|
|
123
123
|
].filter(Boolean).join(" "),
|
|
124
|
-
children:
|
|
125
|
-
(
|
|
124
|
+
children: C.map(
|
|
125
|
+
(n, u) => y(n, u)
|
|
126
126
|
)
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
|
-
|
|
130
|
-
blocks:
|
|
129
|
+
s.disclaimer && (l ? l({
|
|
130
|
+
blocks: s.disclaimer,
|
|
131
131
|
className: e.disclaimer
|
|
132
|
-
}) : /* @__PURE__ */
|
|
132
|
+
}) : /* @__PURE__ */ o("div", { className: e.disclaimer }))
|
|
133
133
|
] }) });
|
|
134
134
|
}
|
|
135
135
|
export {
|
|
136
|
-
|
|
136
|
+
ae as FeaturedDocumentsBlock
|
|
137
137
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index.css');require('../../../index60.css');const t=require("react/jsx-runtime");;/* empty css */require("react");require("../../../core/components/Avatar/index.cjs");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index.css');require('../../../index60.css');const t=require("react/jsx-runtime");;/* empty css */require("react");require("../../../core/components/Avatar/index.cjs");const j=require("../../../core/components/Badge/index.cjs");require("../../../core/components/Checkbox/index.cjs");require("react-dom");require("../../../core/components/Tabs/index.cjs");require("../../../core/tokens/theme.cjs");const v=require("../../../core/context/ThemeContext.cjs"),C=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 T=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],N=C.createLucideIcon("arrow-up-right",T),q="_item_1pa3m_1",k="_itemImage_1pa3m_14",I="_itemTitle_1pa3m_20",b="_callToAction_1pa3m_26",A="_icon_1pa3m_33",w="_single_1pa3m_39",E="_first_1pa3m_40",U="_itemContent_1pa3m_41",B="_itemExcerpt_1pa3m_113",P="_imagePlaceholder_1pa3m_180",z="_category_1pa3m_229",L="_itemEyebrow_1pa3m_248",r={item:q,itemImage:k,itemTitle:I,callToAction:b,icon:A,single:w,first:E,itemContent:U,itemExcerpt:B,imagePlaceholder:P,category:z,itemEyebrow:L};function M(e,c){var s;if(e!=null&&e.imageUrls)return c==="dark"?((s=e.imageUrls.dark)==null?void 0:s.medium)??e.imageUrls.default.medium:e.imageUrls.default.medium}function $(e,c){var a,l,n,i;const s=c==="dark"?"darkImage":"defaultImage";return((l=(a=e==null?void 0:e[s])==null?void 0:a.asset)==null?void 0:l.altText)??((i=(n=e==null?void 0:e[s])==null?void 0:n.asset)==null?void 0:i.description)??"Card image"}function F(e){var a,l;const c=((a=e.categories)==null?void 0:a.find(n=>{var i,o;return!((o=(i=n.slug)==null?void 0:i.current)!=null&&o.startsWith("library/type"))}))??null,s=((l=e.categories)==null?void 0:l.find(n=>{var i,o;return(o=(i=n.slug)==null?void 0:i.current)==null?void 0:o.startsWith("library/type")}))??null;return{mainCategory:c,typeCategory:s}}function S({href:e,className:c,children:s}){return t.jsx("a",{href:e,className:c,children:s})}function W({article:e,className:c="",index:s,layout:a,limit:l,renderImage:n,renderLink:i}){const{mode:o}=v.useTheme(),u=`/blog/articles/${e.slug.current}`,m=M(e.featuredImage,o),_=$(e.featuredImage,o),{mainCategory:p,typeCategory:g}=F(e),x=[r.item,c,s===0?r.first:"",l===1?r.single:"",a??""].filter(Boolean).join(" "),h=t.jsxs("div",{className:r.itemImage,children:[g&&t.jsx("div",{className:r.category,children:g.title}),m?n?n({src:m,alt:_,fill:!0,sizes:"(max-width: 767px) 650px, 300px",priority:!0}):t.jsx("img",{src:m,alt:_,style:{width:"100%",height:"100%",objectFit:"cover"}}):t.jsx("div",{className:r.imagePlaceholder})]}),y=t.jsxs(t.Fragment,{children:[h,t.jsxs("div",{className:r.itemContent,children:[p&&t.jsx(j.Badge,{className:r.itemEyebrow,text:p.title,variant:"muted"}),t.jsxs("div",{className:r.itemTitle,children:[t.jsx("h3",{children:e.title}),t.jsx("div",{className:r.callToAction,children:t.jsx("div",{className:r.icon,children:t.jsx(N,{size:45})})})]}),e.excerpt&&t.jsx("p",{className:r.itemExcerpt,children:e.excerpt})]})]}),f=i?({children:d})=>i({href:u,className:x,children:d}):({children:d})=>t.jsx(S,{href:u,className:x,children:d});return t.jsx(f,{children:y})}exports.BlogArticleCard=W;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as i, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import '../../../index.css';import '../../../index60.css';/* empty css */
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../../core/components/Avatar/index.mjs";
|
|
5
|
-
import { Badge as
|
|
5
|
+
import { Badge as C } from "../../../core/components/Badge/index.mjs";
|
|
6
6
|
import "../../../core/components/Checkbox/index.mjs";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
import "../../../core/components/Tabs/index.mjs";
|
|
9
9
|
import "../../../core/tokens/theme.mjs";
|
|
10
|
-
import { useTheme as
|
|
11
|
-
import { c as
|
|
10
|
+
import { useTheme as N } from "../../../core/context/ThemeContext.mjs";
|
|
11
|
+
import { c as k } from "../../../createLucideIcon-C8GTh_Qx.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v0.488.0 - ISC
|
|
14
14
|
*
|
|
@@ -18,7 +18,7 @@ import { c as N } from "../../../createLucideIcon-C8GTh_Qx.js";
|
|
|
18
18
|
const T = [
|
|
19
19
|
["path", { d: "M7 7h10v10", key: "1tivn9" }],
|
|
20
20
|
["path", { d: "M7 17 17 7", key: "1vkiza" }]
|
|
21
|
-
], I =
|
|
21
|
+
], I = k("arrow-up-right", T), b = "_item_1pa3m_1", w = "_itemImage_1pa3m_14", A = "_itemTitle_1pa3m_20", E = "_callToAction_1pa3m_26", U = "_icon_1pa3m_33", j = "_single_1pa3m_39", B = "_first_1pa3m_40", P = "_itemContent_1pa3m_41", z = "_itemExcerpt_1pa3m_113", L = "_imagePlaceholder_1pa3m_180", F = "_category_1pa3m_229", M = "_itemEyebrow_1pa3m_248", e = {
|
|
22
22
|
item: b,
|
|
23
23
|
itemImage: w,
|
|
24
24
|
itemTitle: A,
|
|
@@ -38,18 +38,18 @@ function W(t, n) {
|
|
|
38
38
|
return n === "dark" ? ((o = t.imageUrls.dark) == null ? void 0 : o.medium) ?? t.imageUrls.default.medium : t.imageUrls.default.medium;
|
|
39
39
|
}
|
|
40
40
|
function D(t, n) {
|
|
41
|
-
var
|
|
41
|
+
var a, m, s, r;
|
|
42
42
|
const o = n === "dark" ? "darkImage" : "defaultImage";
|
|
43
|
-
return ((
|
|
43
|
+
return ((m = (a = t == null ? void 0 : t[o]) == null ? void 0 : a.asset) == null ? void 0 : m.altText) ?? ((r = (s = t == null ? void 0 : t[o]) == null ? void 0 : s.asset) == null ? void 0 : r.description) ?? "Card image";
|
|
44
44
|
}
|
|
45
45
|
function R(t) {
|
|
46
|
-
var
|
|
47
|
-
const n = ((
|
|
46
|
+
var a, m;
|
|
47
|
+
const n = ((a = t.categories) == null ? void 0 : a.find(
|
|
48
48
|
(s) => {
|
|
49
49
|
var r, c;
|
|
50
50
|
return !((c = (r = s.slug) == null ? void 0 : r.current) != null && c.startsWith("library/type"));
|
|
51
51
|
}
|
|
52
|
-
)) ?? null, o = ((
|
|
52
|
+
)) ?? null, o = ((m = t.categories) == null ? void 0 : m.find(
|
|
53
53
|
(s) => {
|
|
54
54
|
var r, c;
|
|
55
55
|
return (c = (r = s.slug) == null ? void 0 : r.current) == null ? void 0 : c.startsWith("library/type");
|
|
@@ -68,18 +68,18 @@ function tt({
|
|
|
68
68
|
article: t,
|
|
69
69
|
className: n = "",
|
|
70
70
|
index: o,
|
|
71
|
-
layout:
|
|
72
|
-
limit:
|
|
71
|
+
layout: a,
|
|
72
|
+
limit: m,
|
|
73
73
|
renderImage: s,
|
|
74
74
|
renderLink: r
|
|
75
75
|
}) {
|
|
76
|
-
const { mode: c } =
|
|
76
|
+
const { mode: c } = N(), _ = `/blog/articles/${t.slug.current}`, d = W(t.featuredImage, c), u = D(t.featuredImage, c), { mainCategory: g, typeCategory: h } = R(t), f = [
|
|
77
77
|
e.item,
|
|
78
78
|
n,
|
|
79
79
|
o === 0 ? e.first : "",
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
].filter(Boolean).join(" "),
|
|
80
|
+
m === 1 ? e.single : "",
|
|
81
|
+
a ?? ""
|
|
82
|
+
].filter(Boolean).join(" "), y = /* @__PURE__ */ l("div", { className: e.itemImage, children: [
|
|
83
83
|
h && /* @__PURE__ */ i("div", { className: e.category, children: h.title }),
|
|
84
84
|
d ? s ? s({
|
|
85
85
|
src: d,
|
|
@@ -95,25 +95,25 @@ function tt({
|
|
|
95
95
|
style: { width: "100%", height: "100%", objectFit: "cover" }
|
|
96
96
|
}
|
|
97
97
|
) : /* @__PURE__ */ i("div", { className: e.imagePlaceholder })
|
|
98
|
-
] }),
|
|
99
|
-
|
|
100
|
-
/* @__PURE__ */
|
|
98
|
+
] }), v = /* @__PURE__ */ l(x, { children: [
|
|
99
|
+
y,
|
|
100
|
+
/* @__PURE__ */ l("div", { className: e.itemContent, children: [
|
|
101
101
|
g && /* @__PURE__ */ i(
|
|
102
|
-
|
|
102
|
+
C,
|
|
103
103
|
{
|
|
104
104
|
className: e.itemEyebrow,
|
|
105
105
|
text: g.title,
|
|
106
106
|
variant: "muted"
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ l("div", { className: e.itemTitle, children: [
|
|
110
110
|
/* @__PURE__ */ i("h3", { children: t.title }),
|
|
111
111
|
/* @__PURE__ */ i("div", { className: e.callToAction, children: /* @__PURE__ */ i("div", { className: e.icon, children: /* @__PURE__ */ i(I, { size: 45 }) }) })
|
|
112
112
|
] }),
|
|
113
113
|
t.excerpt && /* @__PURE__ */ i("p", { className: e.itemExcerpt, children: t.excerpt })
|
|
114
114
|
] })
|
|
115
115
|
] });
|
|
116
|
-
return /* @__PURE__ */ i(r ? ({ children:
|
|
116
|
+
return /* @__PURE__ */ i(r ? ({ children: p }) => r({ href: _, className: f, children: p }) : ({ children: p }) => /* @__PURE__ */ i($, { href: _, className: f, children: p }), { children: v });
|
|
117
117
|
}
|
|
118
118
|
export {
|
|
119
119
|
tt as BlogArticleCard
|