quirk-ui 0.1.38 → 0.1.40

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/index7.css CHANGED
@@ -1 +1 @@
1
- ._content_xj7w9_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_xj7w9_7{display:flex;align-items:center;justify-content:space-between;flex-direction:column;width:100%;max-width:var(--container-max-width, var(--layout-width));margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._container_xj7w9_7 h1,._container_xj7w9_7 h2,._container_xj7w9_7 h3,._container_xj7w9_7 h4,._container_xj7w9_7 h5,._container_xj7w9_7 h6{width:100%;margin-block:0}@media (max-width: 767px){._container_xj7w9_7{gap:var(--spacing-xl)}}._eyebrow_xj7w9_34{font-weight:var(--font-weight-bold)}._metrics_xj7w9_38{display:flex;align-items:flex-start;flex-wrap:wrap;gap:var(--spacing-md);padding:var(--spacing-md)}@media (max-width: 767px){._metrics_xj7w9_38{flex-direction:column}}._metric_xj7w9_38{flex:1}._metricValue_xj7w9_54{font-size:2.5rem;font-weight:var(--font-weight-bold);position:relative;z-index:1;color:var(--color-text-primary)}._metricValue_xj7w9_54:after{content:"";display:block;background-color:var(--color-primary-10);width:35px;height:35px;position:absolute;top:-3px;left:-.5rem;z-index:-1;border-radius:var(--radius-md)}._disclaimer_xj7w9_75{color:var(--color-text-primary);font-size:var(--font-size-sm)}._layoutHImageRight_xj7w9_80{flex-direction:row;gap:var(--gap, 5rem)}._layoutHImageRight_xj7w9_80 ._heading_xj7w9_84{gap:var(--spacing-md);flex:.65}._layoutHImageRight_xj7w9_80 ._image_xj7w9_89{flex:.5}@media (max-width: 768px){._layoutHImageRight_xj7w9_80{flex-direction:column-reverse;gap:var(--spacing-lg)}}._noImage_xj7w9_99{flex-direction:column}._layoutHImageLeft_xj7w9_103{flex-direction:row-reverse;gap:var(--gap, 5rem)}._layoutHImageLeft_xj7w9_103 ._heading_xj7w9_84{gap:var(--spacing-md);flex:.65}._layoutHImageLeft_xj7w9_103 ._image_xj7w9_89{flex:.5}@media (max-width: 768px){._layoutHImageLeft_xj7w9_103{flex-direction:column-reverse;gap:var(--spacing-lg)}}._layoutVImageTop_xj7w9_122{flex-direction:column-reverse;gap:var(--gap, var(--spacing-md))}._layoutVImageTop_xj7w9_122 ._heading_xj7w9_84{gap:var(--spacing-md)}@media (max-width: 768px){._layoutVImageTop_xj7w9_122{gap:var(--spacing-lg)}}._layoutVImageBottom_xj7w9_135{flex-direction:column;gap:var(--gap, var(--spacing-md))}._layoutVImageBottom_xj7w9_135 ._heading_xj7w9_84{gap:var(--spacing-md)}@media (max-width: 768px){._layoutVImageBottom_xj7w9_135{gap:var(--spacing-lg)}}._heading_xj7w9_84{display:flex;flex-direction:column;width:100%;gap:var(--spacing-md)}._heading_xj7w9_84:not(:has(._text_xj7w9_154 .portableTextContainer)){gap:var(--spacing-lg)}._title_xj7w9_159{text-wrap:pretty}._text_xj7w9_154{flex:1;display:flex;justify-content:center;flex-direction:column;gap:var(--spacing-lg)}@media (max-width: 767px){._text_xj7w9_154{flex:1;width:100%;align-items:flex-start}}._cta_xj7w9_178{width:100%}@media (max-width: 767px){._cta_xj7w9_178{justify-content:flex-start}}._headingHorizontal_xj7w9_186{flex-direction:row;justify-content:space-between;gap:5rem}@media (max-width: 767px){._headingHorizontal_xj7w9_186{gap:var(--spacing-md)}}._headingHorizontal_xj7w9_186 ._titleWrapper_xj7w9_195,._headingHorizontal_xj7w9_186 .portableTextContainer{flex:1}._headingHorizontal_xj7w9_186 ._title_xj7w9_159{margin-bottom:0}._headingHorizontal_xj7w9_186 p._title_xj7w9_159{margin-top:1rem}@media (max-width: 768px){._headingHorizontal_xj7w9_186{flex-direction:column}}._headingVertical_xj7w9_216{flex-direction:column;justify-content:flex-start}._image_xj7w9_89{display:flex;align-items:center;justify-content:center;flex:1;width:100%;margin:0 auto;line-height:0}._image_xj7w9_89 img{width:100%;height:auto}._videoWrapper_xj7w9_237{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:var(--radius-md);flex:1}._videoWrapper_xj7w9_237 iframe,._videoWrapper_xj7w9_237 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._default_xj7w9_257{display:block}._default_xj7w9_257 img{border-radius:var(--radius-md)}._maxWidth_xj7w9_265{margin:0 auto}._maxWidth_xj7w9_265 img{max-width:var(--max-width, var(--layout-width));border-radius:var(--radius-md);height:auto}._fullBleed_xj7w9_275{width:100%;max-width:unset;border-radius:var(--radius-md);overflow:hidden}.blog ._container_xj7w9_7{max-width:var(--blog-width)}.centered ._heading_xj7w9_84{gap:var(--spacing-md);align-items:center;justify-content:center}.centered ._text_xj7w9_154{align-items:center}.centered ._cta_xj7w9_178{justify-content:center}.backgroundPrimary ._text_xj7w9_154 p,.backgroundPrimary ._text_xj7w9_154 p a,.backgroundPrimary ._metricValue_xj7w9_54{color:#fff}.backgroundPrimary ._metricValue_xj7w9_54:after{background-color:var(--color-secondary-100)}.backgroundPrimary ._cta_xj7w9_178 ._secondary_xj7w9_316{background-color:#fff}.split-35-65 ._heading_xj7w9_84{flex:.35}._layoutSplitText_xj7w9_329{flex-direction:row;align-items:flex-start;gap:var(--gap, 5rem)}@media (max-width: 768px){._layoutSplitText_xj7w9_329{flex-direction:column;gap:var(--spacing-lg)}}._layoutSplitText_xj7w9_329 ._heading_xj7w9_84{flex:.5}._additionalContent_xj7w9_344{flex:.5;display:flex;flex-direction:column;gap:var(--spacing-md)}@media (max-width: 768px){._additionalContent_xj7w9_344{flex:1;width:100%}}
1
+ ._content_1v4an_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_1v4an_7{display:flex;align-items:center;justify-content:space-between;flex-direction:column;width:100%;max-width:var(--container-max-width, var(--layout-width));margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._container_1v4an_7 h1,._container_1v4an_7 h2,._container_1v4an_7 h3,._container_1v4an_7 h4,._container_1v4an_7 h5,._container_1v4an_7 h6{width:100%;margin-block:0}@media (max-width: 767px){._container_1v4an_7{gap:var(--spacing-xl)}}._eyebrow_1v4an_34{font-weight:var(--font-weight-bold)}._metrics_1v4an_38{display:flex;align-items:flex-start;flex-wrap:wrap;gap:var(--spacing-md);padding:var(--spacing-md)}@media (max-width: 767px){._metrics_1v4an_38{flex-direction:column}}._metric_1v4an_38{flex:1}._metricValue_1v4an_54{font-size:2.5rem;font-weight:var(--font-weight-bold);position:relative;z-index:1;color:var(--color-text-primary)}._metricValue_1v4an_54:after{content:"";display:block;background-color:var(--color-primary-10);width:35px;height:35px;position:absolute;top:-3px;left:-.5rem;z-index:-1;border-radius:var(--radius-md)}._disclaimer_1v4an_75{color:var(--color-text-primary);font-size:var(--font-size-sm)}._layoutHImageRight_1v4an_80{flex-direction:row;gap:var(--gap, 5rem)}._layoutHImageRight_1v4an_80 ._heading_1v4an_84{gap:var(--spacing-md);flex:.65}._layoutHImageRight_1v4an_80 ._image_1v4an_89{flex:.5}@media (max-width: 768px){._layoutHImageRight_1v4an_80{flex-direction:column-reverse;gap:var(--spacing-lg)}}._noImage_1v4an_99{flex-direction:column}._layoutHImageLeft_1v4an_103{flex-direction:row-reverse;gap:var(--gap, 5rem)}._layoutHImageLeft_1v4an_103 ._heading_1v4an_84{gap:var(--spacing-md);flex:.65}._layoutHImageLeft_1v4an_103 ._image_1v4an_89{flex:.5}@media (max-width: 768px){._layoutHImageLeft_1v4an_103{flex-direction:column-reverse;gap:var(--spacing-lg)}}._layoutVImageTop_1v4an_122{flex-direction:column-reverse;gap:var(--gap, var(--spacing-md))}._layoutVImageTop_1v4an_122 ._heading_1v4an_84{gap:var(--spacing-md)}@media (max-width: 768px){._layoutVImageTop_1v4an_122{gap:var(--spacing-lg)}}._layoutVImageBottom_1v4an_135{flex-direction:column;gap:var(--gap, var(--spacing-md))}._layoutVImageBottom_1v4an_135 ._heading_1v4an_84{gap:var(--spacing-md)}@media (max-width: 768px){._layoutVImageBottom_1v4an_135{gap:var(--spacing-lg)}}._heading_1v4an_84{display:flex;flex-direction:column;width:100%;gap:var(--spacing-md)}._heading_1v4an_84:not(:has(._text_1v4an_154 .portableTextContainer)){gap:var(--spacing-lg)}._title_1v4an_159{text-wrap:pretty}._text_1v4an_154{flex:1;display:flex;justify-content:center;flex-direction:column;gap:var(--spacing-lg)}@media (max-width: 767px){._text_1v4an_154{flex:1;width:100%;align-items:flex-start}}._cta_1v4an_178{width:100%}@media (max-width: 767px){._cta_1v4an_178{justify-content:flex-start}}._headingHorizontal_1v4an_186{flex-direction:row;justify-content:space-between;gap:5rem}@media (max-width: 767px){._headingHorizontal_1v4an_186{gap:var(--spacing-md)}}._headingHorizontal_1v4an_186 ._titleWrapper_1v4an_195,._headingHorizontal_1v4an_186 .portableTextContainer{flex:1}._headingHorizontal_1v4an_186 ._title_1v4an_159{margin-bottom:0}._headingHorizontal_1v4an_186 p._title_1v4an_159{margin-top:1rem}@media (max-width: 768px){._headingHorizontal_1v4an_186{flex-direction:column}}._headingVertical_1v4an_216{flex-direction:column;justify-content:flex-start}._image_1v4an_89{display:flex;align-items:center;justify-content:center;flex:1;width:100%;margin:0 auto;line-height:0}._image_1v4an_89 img{width:100%;height:auto}._videoWrapper_1v4an_237{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:var(--radius-md);flex:1}._videoWrapper_1v4an_237 iframe,._videoWrapper_1v4an_237 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._default_1v4an_257{display:block}._default_1v4an_257 img{border-radius:var(--radius-md)}._maxWidth_1v4an_265{margin:0 auto}._maxWidth_1v4an_265 img{max-width:var(--max-width, var(--layout-width));border-radius:var(--radius-md);height:auto}._fullBleed_1v4an_275{width:100%;max-width:unset;border-radius:var(--radius-md);overflow:hidden}.blog ._container_1v4an_7{max-width:var(--blog-width)}.centered ._heading_1v4an_84{gap:var(--spacing-md);align-items:center;justify-content:center}.centered ._text_1v4an_154{align-items:center}.centered ._cta_1v4an_178{justify-content:center}.backgroundPrimary ._text_1v4an_154 p,.backgroundPrimary ._text_1v4an_154 p a,.backgroundPrimary ._metricValue_1v4an_54{color:#fff}.backgroundPrimary ._metricValue_1v4an_54:after{background-color:var(--color-secondary-100)}.backgroundPrimary ._cta_1v4an_178 ._secondary_1v4an_316{background-color:#fff}.split-35-65 ._heading_1v4an_84{flex:.35}._layoutSplitText_1v4an_329{flex-direction:row;align-items:flex-start;gap:var(--gap, 5rem)}@media (max-width: 768px){._layoutSplitText_1v4an_329{flex-direction:column;gap:var(--spacing-lg)}}._layoutSplitText_1v4an_329 ._heading_1v4an_84{flex:.5}._additionalContent_1v4an_344{flex:.5;display:flex;flex-direction:column;gap:var(--spacing-md)}@media (max-width: 768px){._additionalContent_1v4an_344{flex:1;width:100%}}._imageRadius-sm_1v4an_356{border-radius:var(--radius-sm)}._imageRadius-md_1v4an_359{border-radius:var(--radius-md)}._imageRadius-lg_1v4an_362{border-radius:var(--radius-lg)}._imageRadius-full_1v4an_365{border-radius:var(--radius-full)}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index7.css');const e=require("react/jsx-runtime"),k=require("../../hooks/useStyleClasses.cjs"),H=require("../../../core/context/ThemeContext.cjs"),W=require("../../hooks/useMediaQuery.cjs"),g=require("../../utils/mediaUtils.cjs"),z="_content_xj7w9_1",$="_container_xj7w9_7",L="_eyebrow_xj7w9_34",B="_metrics_xj7w9_38",C="_metric_xj7w9_38",q="_metricValue_xj7w9_54",M="_disclaimer_xj7w9_75",U="_layoutHImageRight_xj7w9_80",D="_heading_xj7w9_84",E="_image_xj7w9_89",Q="_noImage_xj7w9_99",Y="_layoutHImageLeft_xj7w9_103",F="_layoutVImageTop_xj7w9_122",G="_layoutVImageBottom_xj7w9_135",P="_text_xj7w9_154",J="_title_xj7w9_159",K="_cta_xj7w9_178",X="_headingHorizontal_xj7w9_186",Z="_titleWrapper_xj7w9_195",O="_headingVertical_xj7w9_216",A="_videoWrapper_xj7w9_237",T="_layoutSplitText_xj7w9_329",R="_additionalContent_xj7w9_344",t={content:z,container:$,eyebrow:L,metrics:B,metric:C,metricValue:q,disclaimer:M,layoutHImageRight:U,heading:D,image:E,noImage:Q,layoutHImageLeft:Y,layoutVImageTop:F,layoutVImageBottom:G,text:P,title:J,cta:K,headingHorizontal:X,titleWrapper:Z,headingVertical:O,videoWrapper:A,layoutSplitText:T,additionalContent:R},tt={"no-image":t.noImage,"split-text":t.layoutSplitText,"horizontal-image-right":t.layoutHImageRight,"horizontal-image-left":t.layoutHImageLeft,"vertical-image-top":t.layoutVImageTop,"vertical-image-bottom":t.layoutVImageBottom},st={horizontal:t.headingHorizontal,vertical:t.headingVertical};function et(s,i,l){const o=s.includes("vimeo.com"),c=s.includes("youtube.com")||s.includes("youtu.be");return o||c?e.jsx("div",{style:{maxWidth:l??"unset",flex:.65},children:e.jsx("div",{className:t.videoWrapper,children:e.jsx("iframe",{src:o?`${s}?autoplay=0&muted=0&loop=0`:`${s}?autoplay=0&mute=0&loop=0`,allow:"autoplay; fullscreen",allowFullScreen:!0})})}):e.jsx("div",{style:{maxWidth:l??"unset",width:"100%",flex:.65},children:e.jsx("div",{className:t.videoWrapper,children:e.jsx("video",{src:s,controls:!0,poster:i})})})}function ot({metrics:s,renderRichText:i}){return e.jsx("div",{className:t.metrics,children:s.map(l=>e.jsxs("div",{className:t.metric,children:[e.jsx("div",{className:t.metricValue,children:l.metricValue}),l.metricDescription&&(i==null?void 0:i({blocks:l.metricDescription}))]},l._key))})}function at({layout:s,heading:i,additionalContent:l,image:o,video:c,metrics:r,callToAction:n,disclaimer:j,styleOptions:_,id:v,renderImage:p,renderRichText:a,renderCallToAction:u}){var I;const{mode:x}=H.useTheme(),N=k.useStyleClasses(_),V=W.useMediaQuery("(max-width: 768px)")??!1,m=g.resolveImageUrl(o,x),w=g.resolveAltText(o,x),d=g.resolveImageStyle(o,V),b=tt[(s==null?void 0:s.orientation)??"horizontal-image-right"],S=st[i.headingLayout??"horizontal"],f={"--container-max-width":(_==null?void 0:_.maxWidth)??"unset","--gap":s==null?void 0:s.gap,"--max-width":(o==null?void 0:o.sizing)==="inset"?o==null?void 0:o.maxWidth:"unset"},h=(s==null?void 0:s.orientation)==="split-text",y=!h&&(s==null?void 0:s.orientation)!=="no-image";return e.jsx("section",{id:v,className:`${N} ${t.content}`,children:e.jsxs("article",{className:`${t.container} ${b}`,style:f,children:[e.jsxs("div",{className:`${t.heading} ${S}`,children:[e.jsxs("div",{className:t.titleWrapper,children:[i.eyebrow&&(a==null?void 0:a({blocks:i.eyebrow,className:t.eyebrow})),i.title&&(a==null?void 0:a({blocks:i.title,className:t.title}))]}),i.description||(I=n==null?void 0:n.items)!=null&&I.length?e.jsxs("div",{className:t.text,children:[i.description&&(a==null?void 0:a({blocks:i.description})),r&&r.length>0&&e.jsx(ot,{metrics:r,renderRichText:a}),n&&(u==null?void 0:u({items:n.items,alignment:n.alignment,className:t.cta})),j&&(a==null?void 0:a({blocks:j,className:t.disclaimer}))]}):null]}),h&&l&&e.jsx("div",{className:t.additionalContent,children:a==null?void 0:a({blocks:l})}),y&&c?et(c,m,o==null?void 0:o.maxWidth):y&&o&&m?e.jsx("div",{className:t.image,children:p?p({src:m,alt:w,width:600,height:400,priority:!0,style:d}):e.jsx("img",{src:m,alt:w,width:600,height:400,style:{width:"100%",height:"auto",...d}})}):null]})})}exports.ContentBlock=at;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index7.css');const a=require("react/jsx-runtime"),k=require("../../hooks/useStyleClasses.cjs"),H=require("../../../core/context/ThemeContext.cjs"),W=require("../../hooks/useMediaQuery.cjs"),v=require("../../utils/mediaUtils.cjs"),z="_content_1v4an_1",$="_container_1v4an_7",L="_eyebrow_1v4an_34",B="_metrics_1v4an_38",C="_metric_1v4an_38",q="_metricValue_1v4an_54",M="_disclaimer_1v4an_75",U="_layoutHImageRight_1v4an_80",D="_heading_1v4an_84",E="_image_1v4an_89",Q="_noImage_1v4an_99",Y="_layoutHImageLeft_1v4an_103",F="_layoutVImageTop_1v4an_122",G="_layoutVImageBottom_1v4an_135",P="_text_1v4an_154",J="_title_1v4an_159",K="_cta_1v4an_178",X="_headingHorizontal_1v4an_186",Z="_titleWrapper_1v4an_195",O="_headingVertical_1v4an_216",A="_videoWrapper_1v4an_237",T="_layoutSplitText_1v4an_329",R="_additionalContent_1v4an_344",t={content:z,container:$,eyebrow:L,metrics:B,metric:C,metricValue:q,disclaimer:M,layoutHImageRight:U,heading:D,image:E,noImage:Q,layoutHImageLeft:Y,layoutVImageTop:F,layoutVImageBottom:G,text:P,title:J,cta:K,headingHorizontal:X,titleWrapper:Z,headingVertical:O,videoWrapper:A,layoutSplitText:T,additionalContent:R},tt={"no-image":t.noImage,"split-text":t.layoutSplitText,"horizontal-image-right":t.layoutHImageRight,"horizontal-image-left":t.layoutHImageLeft,"vertical-image-top":t.layoutVImageTop,"vertical-image-bottom":t.layoutVImageBottom},st={horizontal:t.headingHorizontal,vertical:t.headingVertical};function at(s,n,i){const e=s.includes("vimeo.com"),c=s.includes("youtube.com")||s.includes("youtu.be");return e||c?a.jsx("div",{style:{maxWidth:i??"unset",flex:.65},children:a.jsx("div",{className:t.videoWrapper,children:a.jsx("iframe",{src:e?`${s}?autoplay=0&muted=0&loop=0`:`${s}?autoplay=0&mute=0&loop=0`,allow:"autoplay; fullscreen",allowFullScreen:!0})})}):a.jsx("div",{style:{maxWidth:i??"unset",width:"100%",flex:.65},children:a.jsx("div",{className:t.videoWrapper,children:a.jsx("video",{src:s,controls:!0,poster:n})})})}function et({metrics:s,renderRichText:n}){return a.jsx("div",{className:t.metrics,children:s.map(i=>a.jsxs("div",{className:t.metric,children:[a.jsx("div",{className:t.metricValue,children:i.metricValue}),i.metricDescription&&(n==null?void 0:n({blocks:i.metricDescription}))]},i._key))})}function ot({layout:s,heading:n,additionalContent:i,image:e,video:c,metrics:r,callToAction:l,disclaimer:g,styleOptions:_,id:b,renderImage:p,renderRichText:o,renderCallToAction:u}){var V;const{mode:d}=H.useTheme(),j=k.useStyleClasses(_),x=W.useMediaQuery("(max-width: 768px)")??!1,m=v.resolveImageUrl(e,d),h=v.resolveAltText(e,d),y=v.resolveImageStyle(e,x),w=tt[(s==null?void 0:s.orientation)??"horizontal-image-right"],S=st[n.headingLayout??"horizontal"],f={"--container-max-width":(_==null?void 0:_.maxWidth)??"unset","--gap":s==null?void 0:s.gap,"--max-width":(e==null?void 0:e.sizing)==="inset"?e==null?void 0:e.maxWidth:"unset"},I=(s==null?void 0:s.orientation)==="split-text",N=!I&&(s==null?void 0:s.orientation)!=="no-image";return a.jsx("section",{id:b,className:`${j} ${t.content}`,children:a.jsxs("article",{className:`${t.container} ${w}`,style:f,children:[a.jsxs("div",{className:`${t.heading} ${S}`,children:[a.jsxs("div",{className:t.titleWrapper,children:[n.eyebrow&&(o==null?void 0:o({blocks:n.eyebrow,className:t.eyebrow})),n.title&&(o==null?void 0:o({blocks:n.title,className:t.title}))]}),n.description||(V=l==null?void 0:l.items)!=null&&V.length?a.jsxs("div",{className:t.text,children:[n.description&&(o==null?void 0:o({blocks:n.description})),r&&r.length>0&&a.jsx(et,{metrics:r,renderRichText:o}),l&&(u==null?void 0:u({items:l.items,alignment:l.alignment,className:t.cta})),g&&(o==null?void 0:o({blocks:g,className:t.disclaimer}))]}):null]}),I&&i&&a.jsx("div",{className:t.additionalContent,children:o==null?void 0:o({blocks:i})}),N&&c?at(c,m,e==null?void 0:e.maxWidth):N&&e&&m?a.jsx("div",{className:t.image,children:p?p({src:m,alt:h,width:600,height:400,priority:!0,style:y}):a.jsx("img",{src:m,alt:h,width:600,height:400,style:{width:"100%",height:"auto",...y}})}):null]})})}exports.ContentBlock=ot;
@@ -1,32 +1,32 @@
1
- import { jsx as i, jsxs as c } from "react/jsx-runtime";
2
- import { useStyleClasses as S } from "../../hooks/useStyleClasses.mjs";
3
- import { useTheme as W } from "../../../core/context/ThemeContext.mjs";
4
- import { useMediaQuery as k } from "../../hooks/useMediaQuery.mjs";
5
- import { resolveImageUrl as z, resolveAltText as L, resolveImageStyle as $ } from "../../utils/mediaUtils.mjs";
6
- import '../../../index7.css';const B = "_content_xj7w9_1", C = "_container_xj7w9_7", M = "_eyebrow_xj7w9_34", D = "_metrics_xj7w9_38", U = "_metric_xj7w9_38", E = "_metricValue_xj7w9_54", Y = "_disclaimer_xj7w9_75", F = "_layoutHImageRight_xj7w9_80", G = "_heading_xj7w9_84", Q = "_image_xj7w9_89", q = "_noImage_xj7w9_99", J = "_layoutHImageLeft_xj7w9_103", K = "_layoutVImageTop_xj7w9_122", P = "_layoutVImageBottom_xj7w9_135", X = "_text_xj7w9_154", Z = "_title_xj7w9_159", O = "_cta_xj7w9_178", A = "_headingHorizontal_xj7w9_186", R = "_titleWrapper_xj7w9_195", T = "_headingVertical_xj7w9_216", tt = "_videoWrapper_xj7w9_237", ot = "_layoutSplitText_xj7w9_329", at = "_additionalContent_xj7w9_344", t = {
7
- content: B,
8
- container: C,
9
- eyebrow: M,
10
- metrics: D,
11
- metric: U,
12
- metricValue: E,
13
- disclaimer: Y,
14
- layoutHImageRight: F,
15
- heading: G,
16
- image: Q,
17
- noImage: q,
18
- layoutHImageLeft: J,
19
- layoutVImageTop: K,
20
- layoutVImageBottom: P,
21
- text: X,
22
- title: Z,
23
- cta: O,
1
+ import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
+ import { useStyleClasses as k } from "../../hooks/useStyleClasses.mjs";
3
+ import { useTheme as z } from "../../../core/context/ThemeContext.mjs";
4
+ import { useMediaQuery as L } from "../../hooks/useMediaQuery.mjs";
5
+ import { resolveImageUrl as $, resolveAltText as B, resolveImageStyle as C } from "../../utils/mediaUtils.mjs";
6
+ import '../../../index7.css';const M = "_content_1v4an_1", D = "_container_1v4an_7", U = "_eyebrow_1v4an_34", j = "_metrics_1v4an_38", E = "_metric_1v4an_38", Y = "_metricValue_1v4an_54", F = "_disclaimer_1v4an_75", G = "_layoutHImageRight_1v4an_80", Q = "_heading_1v4an_84", q = "_image_1v4an_89", J = "_noImage_1v4an_99", K = "_layoutHImageLeft_1v4an_103", P = "_layoutVImageTop_1v4an_122", X = "_layoutVImageBottom_1v4an_135", Z = "_text_1v4an_154", O = "_title_1v4an_159", x = "_cta_1v4an_178", A = "_headingHorizontal_1v4an_186", R = "_titleWrapper_1v4an_195", T = "_headingVertical_1v4an_216", tt = "_videoWrapper_1v4an_237", at = "_layoutSplitText_1v4an_329", ot = "_additionalContent_1v4an_344", t = {
7
+ content: M,
8
+ container: D,
9
+ eyebrow: U,
10
+ metrics: j,
11
+ metric: E,
12
+ metricValue: Y,
13
+ disclaimer: F,
14
+ layoutHImageRight: G,
15
+ heading: Q,
16
+ image: q,
17
+ noImage: J,
18
+ layoutHImageLeft: K,
19
+ layoutVImageTop: P,
20
+ layoutVImageBottom: X,
21
+ text: Z,
22
+ title: O,
23
+ cta: x,
24
24
  headingHorizontal: A,
25
25
  titleWrapper: R,
26
26
  headingVertical: T,
27
27
  videoWrapper: tt,
28
- layoutSplitText: ot,
29
- additionalContent: at
28
+ layoutSplitText: at,
29
+ additionalContent: ot
30
30
  }, st = {
31
31
  "no-image": t.noImage,
32
32
  "split-text": t.layoutSplitText,
@@ -38,54 +38,54 @@ import '../../../index7.css';const B = "_content_xj7w9_1", C = "_container_xj7w9
38
38
  horizontal: t.headingHorizontal,
39
39
  vertical: t.headingVertical
40
40
  };
41
- function it(o, e, l) {
42
- const a = o.includes("vimeo.com"), m = o.includes("youtube.com") || o.includes("youtu.be");
43
- return a || m ? /* @__PURE__ */ i("div", { style: { maxWidth: l ?? "unset", flex: 0.65 }, children: /* @__PURE__ */ i("div", { className: t.videoWrapper, children: /* @__PURE__ */ i(
41
+ function nt(a, e, i) {
42
+ const o = a.includes("vimeo.com"), m = a.includes("youtube.com") || a.includes("youtu.be");
43
+ return o || m ? /* @__PURE__ */ n("div", { style: { maxWidth: i ?? "unset", flex: 0.65 }, children: /* @__PURE__ */ n("div", { className: t.videoWrapper, children: /* @__PURE__ */ n(
44
44
  "iframe",
45
45
  {
46
- src: a ? `${o}?autoplay=0&muted=0&loop=0` : `${o}?autoplay=0&mute=0&loop=0`,
46
+ src: o ? `${a}?autoplay=0&muted=0&loop=0` : `${a}?autoplay=0&mute=0&loop=0`,
47
47
  allow: "autoplay; fullscreen",
48
48
  allowFullScreen: !0
49
49
  }
50
- ) }) }) : /* @__PURE__ */ i("div", { style: { maxWidth: l ?? "unset", width: "100%", flex: 0.65 }, children: /* @__PURE__ */ i("div", { className: t.videoWrapper, children: /* @__PURE__ */ i("video", { src: o, controls: !0, poster: e }) }) });
50
+ ) }) }) : /* @__PURE__ */ n("div", { style: { maxWidth: i ?? "unset", width: "100%", flex: 0.65 }, children: /* @__PURE__ */ n("div", { className: t.videoWrapper, children: /* @__PURE__ */ n("video", { src: a, controls: !0, poster: e }) }) });
51
51
  }
52
- function lt({
53
- metrics: o,
52
+ function it({
53
+ metrics: a,
54
54
  renderRichText: e
55
55
  }) {
56
- return /* @__PURE__ */ i("div", { className: t.metrics, children: o.map((l) => /* @__PURE__ */ c("div", { className: t.metric, children: [
57
- /* @__PURE__ */ i("div", { className: t.metricValue, children: l.metricValue }),
58
- l.metricDescription && (e == null ? void 0 : e({ blocks: l.metricDescription }))
59
- ] }, l._key)) });
56
+ return /* @__PURE__ */ n("div", { className: t.metrics, children: a.map((i) => /* @__PURE__ */ c("div", { className: t.metric, children: [
57
+ /* @__PURE__ */ n("div", { className: t.metricValue, children: i.metricValue }),
58
+ i.metricDescription && (e == null ? void 0 : e({ blocks: i.metricDescription }))
59
+ ] }, i._key)) });
60
60
  }
61
61
  function pt({
62
- layout: o,
62
+ layout: a,
63
63
  heading: e,
64
- additionalContent: l,
65
- image: a,
64
+ additionalContent: i,
65
+ image: o,
66
66
  video: m,
67
67
  metrics: p,
68
- callToAction: n,
69
- disclaimer: g,
68
+ callToAction: l,
69
+ disclaimer: v,
70
70
  styleOptions: _,
71
- id: x,
72
- renderImage: w,
71
+ id: f,
72
+ renderImage: g,
73
73
  renderRichText: s,
74
74
  renderCallToAction: u
75
75
  }) {
76
- var y;
77
- const { mode: d } = W(), N = S(_), V = k("(max-width: 768px)") ?? !1, r = z(a, d), j = L(a, d), I = $(a, V), f = st[(o == null ? void 0 : o.orientation) ?? "horizontal-image-right"], b = et[e.headingLayout ?? "horizontal"], H = {
76
+ var V;
77
+ const { mode: d } = z(), b = k(_), w = L("(max-width: 768px)") ?? !1, r = $(o, d), I = B(o, d), h = C(o, w), H = st[(a == null ? void 0 : a.orientation) ?? "horizontal-image-right"], S = et[e.headingLayout ?? "horizontal"], W = {
78
78
  "--container-max-width": (_ == null ? void 0 : _.maxWidth) ?? "unset",
79
- "--gap": o == null ? void 0 : o.gap,
80
- "--max-width": (a == null ? void 0 : a.sizing) === "inset" ? a == null ? void 0 : a.maxWidth : "unset"
81
- }, h = (o == null ? void 0 : o.orientation) === "split-text", v = !h && (o == null ? void 0 : o.orientation) !== "no-image";
82
- return /* @__PURE__ */ i("section", { id: x, className: `${N} ${t.content}`, children: /* @__PURE__ */ c(
79
+ "--gap": a == null ? void 0 : a.gap,
80
+ "--max-width": (o == null ? void 0 : o.sizing) === "inset" ? o == null ? void 0 : o.maxWidth : "unset"
81
+ }, y = (a == null ? void 0 : a.orientation) === "split-text", N = !y && (a == null ? void 0 : a.orientation) !== "no-image";
82
+ return /* @__PURE__ */ n("section", { id: f, className: `${b} ${t.content}`, children: /* @__PURE__ */ c(
83
83
  "article",
84
84
  {
85
- className: `${t.container} ${f}`,
86
- style: H,
85
+ className: `${t.container} ${H}`,
86
+ style: W,
87
87
  children: [
88
- /* @__PURE__ */ c("div", { className: `${t.heading} ${b}`, children: [
88
+ /* @__PURE__ */ c("div", { className: `${t.heading} ${S}`, children: [
89
89
  /* @__PURE__ */ c("div", { className: t.titleWrapper, children: [
90
90
  e.eyebrow && (s == null ? void 0 : s({
91
91
  blocks: e.eyebrow,
@@ -96,42 +96,42 @@ function pt({
96
96
  className: t.title
97
97
  }))
98
98
  ] }),
99
- e.description || (y = n == null ? void 0 : n.items) != null && y.length ? /* @__PURE__ */ c("div", { className: t.text, children: [
99
+ e.description || (V = l == null ? void 0 : l.items) != null && V.length ? /* @__PURE__ */ c("div", { className: t.text, children: [
100
100
  e.description && (s == null ? void 0 : s({ blocks: e.description })),
101
- p && p.length > 0 && /* @__PURE__ */ i(
102
- lt,
101
+ p && p.length > 0 && /* @__PURE__ */ n(
102
+ it,
103
103
  {
104
104
  metrics: p,
105
105
  renderRichText: s
106
106
  }
107
107
  ),
108
- n && (u == null ? void 0 : u({
109
- items: n.items,
110
- alignment: n.alignment,
108
+ l && (u == null ? void 0 : u({
109
+ items: l.items,
110
+ alignment: l.alignment,
111
111
  className: t.cta
112
112
  })),
113
- g && (s == null ? void 0 : s({
114
- blocks: g,
113
+ v && (s == null ? void 0 : s({
114
+ blocks: v,
115
115
  className: t.disclaimer
116
116
  }))
117
117
  ] }) : null
118
118
  ] }),
119
- h && l && /* @__PURE__ */ i("div", { className: t.additionalContent, children: s == null ? void 0 : s({ blocks: l }) }),
120
- v && m ? it(m, r, a == null ? void 0 : a.maxWidth) : v && a && r ? /* @__PURE__ */ i("div", { className: t.image, children: w ? w({
119
+ y && i && /* @__PURE__ */ n("div", { className: t.additionalContent, children: s == null ? void 0 : s({ blocks: i }) }),
120
+ N && m ? nt(m, r, o == null ? void 0 : o.maxWidth) : N && o && r ? /* @__PURE__ */ n("div", { className: t.image, children: g ? g({
121
121
  src: r,
122
- alt: j,
122
+ alt: I,
123
123
  width: 600,
124
124
  height: 400,
125
125
  priority: !0,
126
- style: I
127
- }) : /* @__PURE__ */ i(
126
+ style: h
127
+ }) : /* @__PURE__ */ n(
128
128
  "img",
129
129
  {
130
130
  src: r,
131
- alt: j,
131
+ alt: I,
132
132
  width: 600,
133
133
  height: 400,
134
- style: { width: "100%", height: "auto", ...I }
134
+ style: { width: "100%", height: "auto", ...h }
135
135
  }
136
136
  ) }) : null
137
137
  ]
@@ -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"),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
+ "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((c,u)=>{switch(i){case"title":return(c.title??"").localeCompare(u.title??"");case"popular":return(u.helpfulYesCount??0)-(c.helpfulYesCount??0);case"newest":default:return(u.publishDate??"").localeCompare(c.publishDate??"")}})}function ee({heading:t,selectionMode:i,layout:c="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},r=o==null?void 0:o.linkOptions,j=(r==null?void 0:r.linkType)==="internal"?`/${((N=(C=r.internalUrl)==null?void 0:C.slug)==null?void 0:N.current)??""}`:(r==null?void 0:r.linkType)==="external"?r.externalUrl??"/":"/",w=A(d,g).slice(0,f),b=(n,a)=>p?p({article:n,className:e.document,index:a,layout:c,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==null?void 0:o.label))&&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})]}))]})}),c==="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[c]??"",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,4 +1,4 @@
1
- import { jsx as o, jsxs as m, Fragment as z } from "react/jsx-runtime";
1
+ import { jsx as s, 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";
@@ -23,28 +23,28 @@ import '../../../index8.css';const I = "_featuredDocuments_3oh02_1", Q = "_conta
23
23
  featuredLeft: A,
24
24
  twoColumn: ee
25
25
  };
26
- function oe(s, i = "newest") {
27
- return [...s].sort((r, a) => {
26
+ function se(t, i = "newest") {
27
+ return [...t].sort((c, a) => {
28
28
  switch (i) {
29
29
  case "title":
30
- return (r.title ?? "").localeCompare(a.title ?? "");
30
+ return (c.title ?? "").localeCompare(a.title ?? "");
31
31
  case "popular":
32
- return (a.helpfulYesCount ?? 0) - (r.helpfulYesCount ?? 0);
32
+ return (a.helpfulYesCount ?? 0) - (c.helpfulYesCount ?? 0);
33
33
  case "newest":
34
34
  default:
35
- return (a.publishDate ?? "").localeCompare(r.publishDate ?? "");
35
+ return (a.publishDate ?? "").localeCompare(c.publishDate ?? "");
36
36
  }
37
37
  });
38
38
  }
39
39
  function ae({
40
- heading: s,
40
+ heading: t,
41
41
  selectionMode: i,
42
- layout: r = "default",
42
+ layout: c = "default",
43
43
  limit: a = 4,
44
44
  articles: g,
45
45
  manualArticles: _,
46
46
  sortBy: x,
47
- callToAction: t,
47
+ callToAction: o,
48
48
  styleOptions: j,
49
49
  id: M,
50
50
  renderRichText: l,
@@ -63,46 +63,46 @@ function ae({
63
63
  2: e.col2,
64
64
  3: e.col3,
65
65
  4: e.col4
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(
66
+ }, r = o == null ? void 0 : o.linkOptions, N = (r == null ? void 0 : r.linkType) === "internal" ? `/${((k = (D = r.internalUrl) == null ? void 0 : D.slug) == null ? void 0 : k.current) ?? ""}` : (r == null ? void 0 : r.linkType) === "external" ? r.externalUrl ?? "/" : "/", C = se(d, x).slice(
67
67
  0,
68
68
  p
69
69
  ), y = (n, u) => w ? w({
70
70
  article: n,
71
71
  className: e.document,
72
72
  index: u,
73
- layout: r,
73
+ layout: c,
74
74
  limit: p
75
75
  }) : (
76
76
  // Plain fallback — replace with your card component via renderCard
77
- /* @__PURE__ */ o("div", { className: e.document, children: /* @__PURE__ */ o("p", { children: n.title }) }, n._id)
77
+ /* @__PURE__ */ s("div", { className: e.document, children: /* @__PURE__ */ s("p", { children: n.title }) }, n._id)
78
78
  ), v = C.map(
79
79
  (n, u) => y(n, u)
80
80
  );
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: [
81
+ return /* @__PURE__ */ s("section", { id: M, className: `${e.featuredDocuments} ${P}`, children: /* @__PURE__ */ m("article", { className: e.container, children: [
82
+ (t.title || t.description || (o == null ? void 0 : o.label)) && /* @__PURE__ */ s("div", { className: e.heading, children: /* @__PURE__ */ m("div", { className: e.flex, children: [
83
83
  /* @__PURE__ */ m("div", { children: [
84
- s.eyebrow && (l ? l({
85
- blocks: s.eyebrow,
84
+ t.eyebrow && (l ? l({
85
+ blocks: t.eyebrow,
86
86
  className: e.eyebrow
87
- }) : /* @__PURE__ */ o("div", {})),
87
+ }) : /* @__PURE__ */ s("div", {})),
88
88
  l ? l({
89
- blocks: s.title,
89
+ blocks: t.title,
90
90
  className: e.title
91
- }) : /* @__PURE__ */ o("div", { className: e.title }),
92
- s.description && (l ? l({ blocks: s.description }) : /* @__PURE__ */ o("div", {}))
91
+ }) : /* @__PURE__ */ s("div", { className: e.title }),
92
+ t.description && (l ? l({ blocks: t.description }) : /* @__PURE__ */ s("div", {}))
93
93
  ] }),
94
- (t == null ? void 0 : t.label) && (h ? h({
94
+ (o == null ? void 0 : o.label) && (h ? h({
95
95
  href: N,
96
96
  children: /* @__PURE__ */ m(z, { children: [
97
- t.label,
98
- /* @__PURE__ */ o(L, { size: 18 })
97
+ o.label,
98
+ /* @__PURE__ */ s(L, { size: 18 })
99
99
  ] })
100
100
  }) : /* @__PURE__ */ m("a", { href: N, children: [
101
- t.label,
102
- /* @__PURE__ */ o(L, { size: 18 })
101
+ o.label,
102
+ /* @__PURE__ */ s(L, { size: 18 })
103
103
  ] }))
104
104
  ] }) }),
105
- r === "carousel" && v.length > 1 ? /* @__PURE__ */ o("div", { className: e.carousel, ref: b, children: /* @__PURE__ */ o(
105
+ c === "carousel" && v.length > 1 ? /* @__PURE__ */ s("div", { className: e.carousel, ref: b, children: /* @__PURE__ */ s(
106
106
  F,
107
107
  {
108
108
  autoplay: !1,
@@ -113,12 +113,12 @@ function ae({
113
113
  parentRef: b
114
114
  },
115
115
  f ? "mobile" : "desktop"
116
- ) }) : /* @__PURE__ */ o(
116
+ ) }) : /* @__PURE__ */ s(
117
117
  "div",
118
118
  {
119
119
  className: [
120
120
  e.documents,
121
- S[r] ?? "",
121
+ S[c] ?? "",
122
122
  $[String(p)] ?? ""
123
123
  ].filter(Boolean).join(" "),
124
124
  children: C.map(
@@ -126,10 +126,10 @@ function ae({
126
126
  )
127
127
  }
128
128
  ),
129
- s.disclaimer && (l ? l({
130
- blocks: s.disclaimer,
129
+ t.disclaimer && (l ? l({
130
+ blocks: t.disclaimer,
131
131
  className: e.disclaimer
132
- }) : /* @__PURE__ */ o("div", { className: e.disclaimer }))
132
+ }) : /* @__PURE__ */ s("div", { className: e.disclaimer }))
133
133
  ] }) });
134
134
  }
135
135
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.1.38",
4
+ "version": "0.1.40",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {