efficient-web-builder 74.1.0 → 74.3.0
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/CHANGELOG.md +42 -0
- package/dist/editor/components/PreviewFooterContext.d.ts +3 -1
- package/dist/editor/components/PreviewFooterContext.js +1 -1
- package/dist/editor/components/SectionTextPartBridge.d.ts +2 -8
- package/dist/editor/components/SectionTextPartBridge.js +1 -1
- package/dist/editor/components/StorefrontEditor.js +1 -1
- package/dist/editor/components/storefront-editor.css +7 -0
- package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +3 -0
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +1 -0
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/own-pad-fields.d.ts +4 -3
- package/dist/editor/lib/document/own-pad-fields.js +1 -1
- package/dist/editor/lib/document/page-root-fields.d.ts +4 -0
- package/dist/editor/lib/document/page-root-fields.js +1 -1
- package/dist/editor/lib/document/page-root.d.ts +3 -2
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/document/registry.js +1 -1
- package/dist/editor/lib/editor-document-adapter.d.ts +1 -0
- package/dist/editor/lib/editor-document-adapter.js +1 -1
- package/dist/editor/lib/pinned-chrome-doc.d.ts +1 -0
- package/dist/editor/lib/pinned-chrome-doc.js +1 -1
- package/dist/format/lib/build/module-specifiers.d.ts +8 -0
- package/dist/format/lib/build/module-specifiers.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +1 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +15 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/section-css.d.ts +1 -1
- package/dist/format/lib/content/section-css.js +1 -1
- package/dist/format/lib/content/site-css.d.ts +5 -0
- package/dist/format/lib/content/site-css.js +1 -0
- package/dist/format/lib/content/site-offices.d.ts +7 -0
- package/dist/format/lib/content/site-offices.js +1 -0
- package/dist/format/lib/document/passes/types.d.ts +3 -2
- package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/source-rules/panel-colour-tokens.js +7 -7
- package/dist/format/lib/source-rules/site-gutter-once.d.ts +12 -0
- package/dist/format/lib/source-rules/site-gutter-once.js +23 -0
- package/dist/render/components/Banner.d.ts +3 -1
- package/dist/render/components/Banner.js +1 -1
- package/dist/render/components/Breadcrumb.js +1 -1
- package/dist/render/components/Cards.d.ts +3 -1
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/ChartSection.d.ts +3 -1
- package/dist/render/components/ChartSection.js +1 -1
- package/dist/render/components/ContactLocations.d.ts +3 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/Countdown.d.ts +3 -1
- package/dist/render/components/Countdown.js +1 -1
- package/dist/render/components/DocBody.d.ts +3 -1
- package/dist/render/components/DocBody.js +4 -4
- package/dist/render/components/DocMasthead.d.ts +3 -1
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocMetaCards.d.ts +3 -1
- package/dist/render/components/DocMetaCards.js +1 -1
- package/dist/render/components/FAQ.d.ts +3 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/FeaturedCover.d.ts +3 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/Grid.d.ts +3 -1
- package/dist/render/components/Grid.js +1 -1
- package/dist/render/components/HeroGroup.js +1 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/IntegrationsSection.d.ts +3 -1
- package/dist/render/components/IntegrationsSection.js +1 -1
- package/dist/render/components/KeyFeatures.d.ts +3 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/Logos.d.ts +3 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/LongRead.d.ts +3 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/Manifesto.js +1 -1
- package/dist/render/components/Masthead.d.ts +3 -1
- package/dist/render/components/Masthead.js +1 -1
- package/dist/render/components/MockupSection.d.ts +3 -1
- package/dist/render/components/MockupSection.js +1 -1
- package/dist/render/components/OrderSummary.d.ts +3 -1
- package/dist/render/components/OrderSummary.js +1 -1
- package/dist/render/components/ParagraphsA.js +1 -1
- package/dist/render/components/PaymentBadges.d.ts +3 -1
- package/dist/render/components/PaymentBadges.js +1 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/Prose.d.ts +3 -1
- package/dist/render/components/Prose.js +1 -1
- package/dist/render/components/SectionHeader.d.ts +2 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/Series.d.ts +3 -1
- package/dist/render/components/Series.js +1 -1
- package/dist/render/components/SideSpaceOnce.d.ts +6 -0
- package/dist/render/components/SideSpaceOnce.js +1 -0
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/SiteOffices.d.ts +5 -0
- package/dist/render/components/SiteOffices.js +1 -0
- package/dist/render/components/SiteRootProps.d.ts +6 -0
- package/dist/render/components/SiteRootProps.js +1 -0
- package/dist/render/components/SpecStrip.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Stats.d.ts +3 -1
- package/dist/render/components/Stats.js +1 -1
- package/dist/render/components/StatsParagraph.js +1 -1
- package/dist/render/components/Testimonials.d.ts +3 -1
- package/dist/render/components/Testimonials.js +1 -1
- package/dist/render/components/TickerSection.d.ts +3 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/lib/content/section-edge.d.ts +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-own-pads.d.ts +35 -0
- package/dist/render/lib/content/section-own-pads.js +1 -0
- package/dist/render/lib/content/section-padding.d.ts +9 -3
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocBody/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocMasthead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocMetaCards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Integrations/render.js +2 -2
- package/dist/render/lib/document/blocks/general/KeyFeatures/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LongRead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Masthead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
- package/dist/render/lib/document/blocks/general/OrderSummary/render.js +1 -1
- package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Prose/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Series/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Stats/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Testimonials/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Ticker/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-integrations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/custom-css.d.ts +2 -1
- package/dist/render/lib/document/editing-bridges.d.ts +5 -1
- package/dist/render/lib/document/editing-bridges.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +3 -1
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/section-custom-css.d.ts +7 -0
- package/dist/render/lib/document/passes/section-custom-css.js +1 -1
- package/dist/render/lib/document/passes/section-padding.d.ts +3 -3
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/section-css-style.d.ts +3 -1
- package/dist/render/lib/document/section-css-style.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as I}from"react/jsx-runtime";import{HideTaker as re}from"./ViewHideRoot.js";import{renderGold as ne,renderHeadline as se}from"./goldPhrases.js";const F={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},_="#ffffff",d="#16181d",o="#5b6470",u="#9aa3ae",x="#f4f6f8",m="#e3e7ec",g="#1f9d55";function ce({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((l,c)=>{const a=l.state??"ok",s=a==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":x,borderColor:m},children:[a==="no"?e("span",{"aria-hidden":!0,className:"text-[15px] font-bold",style:{color:u},children:"✕"}):e("span",{"aria-hidden":!0,className:"h-[11px] w-[11px] flex-shrink-0 rounded-full",style:{background:a==="warn"?"var(--accent)":g}}),e("span",{className:"text-[14px] font-semibold",style:{color:s?u:d},children:l.lead}),e("span",{className:"text-[13px]",style:{color:s?u:o},children:l.detail}),(l.status??"").trim()&&e("span",{className:"ml-auto whitespace-nowrap text-[12px] font-bold",style:{color:a==="ok"?g:a==="warn"?"var(--accent)":u},children:l.status})]},c)})})}const W=["#c7cdd5","var(--accent)","#c7cdd5",g];function de({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:x,gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map((l,c)=>r("div",{className:"flex flex-col gap-2",children:[r("div",{className:"flex items-baseline justify-between px-1",children:[e("span",{className:"font-mono text-[9px] font-semibold uppercase tracking-[0.14em]",style:{color:o},children:l.title}),e("span",{className:"font-mono text-[9px] font-bold",style:{color:"var(--accent)"},children:l.cards.length})]}),l.cards.map((a,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:_,borderColor:c===n.length-1?"#bfe3ce":m},children:[e("span",{"aria-hidden":!0,className:"mb-1.5 block h-[8px] w-[8px] rounded-full",style:{background:W[c%W.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:d},children:a})]},s))]},c))})}function ie({heading:n,bars:l}){const c=Math.max(...l.map(s=>s.value),0)||1,a=l.findIndex(s=>s.value===c);return r("div",{className:"border-t pt-4",style:{borderColor:m},children:[n.trim()&&e("div",{className:"mb-3 font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:n}),e("div",{className:"flex flex-col gap-2.5",children:l.map((s,i)=>r("div",{className:"flex items-center gap-3",children:[e("span",{className:"w-[84px] flex-shrink-0 text-[12px] font-bold",style:{color:d},children:s.label}),e("span",{className:"h-[12px] rounded-full",style:{width:`${Math.max(s.value/c*60,4)}%`,background:i===a?"var(--accent)":i%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},i))})]})}function K({size:n}){const l=n/2;return r("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:[e("circle",{cx:l,cy:l,r:l*.82,fill:"none",stroke:"#9aa3ae",strokeWidth:"2.5"}),e("circle",{cx:l,cy:l,r:l*.5,fill:"none",stroke:"var(--accent)",strokeWidth:"2"}),e("circle",{cx:l,cy:l,r:l*.14,fill:"var(--accent)"})]})}function oe({header:n,lines:l}){return r("div",{style:{background:"#0c0e11"},children:[r("div",{className:"relative flex items-center gap-2 px-4 py-3",style:{background:"#161a20"},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"absolute inset-x-0 text-center font-mono text-[11px]",style:{color:"rgba(244,246,242,0.45)"},children:n})]}),r("div",{className:"flex flex-col gap-1.5 px-5 py-5 font-mono text-[13px] leading-relaxed",children:[l.map((c,a)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},a):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},a):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},a)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function me({urlText:n,heroTitle:l,heroButton:c,products:a}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:x},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"mx-auto rounded border px-6 py-1 text-[11px]",style:{background:_,borderColor:m,color:o},children:n}),e("span",{className:"w-[54px]","aria-hidden":!0})]}),r("div",{className:"relative overflow-hidden px-5 py-6",style:{background:d},children:[e("div",{className:"absolute -right-4 top-1/2 -translate-y-1/2 opacity-90",children:e(K,{size:104})}),l.trim()&&e("div",{className:"max-w-[240px] text-[15px] font-bold uppercase leading-snug tracking-wide text-white",children:l}),c.trim()&&e("div",{className:"mt-3 inline-block rounded px-3.5 py-1.5 text-[11px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:c})]}),a.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:a.map((s,i)=>r("div",{className:"overflow-hidden rounded-lg border",style:{borderColor:m},children:[e("div",{className:"flex items-center justify-center py-3",style:{background:x},children:e(K,{size:56})}),r("div",{className:"flex flex-col gap-1 p-2.5",children:[e("span",{className:"text-[10.5px] font-bold leading-tight",style:{color:d},children:s.name}),e("span",{className:"text-[11px] font-bold",style:{color:"var(--accent)"},children:s.price}),e("span",{className:"mt-0.5 rounded px-2 py-1 text-center text-[9px] font-bold text-white",style:{background:d},"aria-hidden":!0,children:"Add to cart"})]})]},i))})]})}function pe({eyebrow:n,title:l,body:c,variant:a="spec-card",cardHeader:s,badge:i,cardTitle:f,cardSubtitle:b,pills:G,tiles:L,rows:U,button:j,footnote:M,col1Title:O,col1Cards:P,col2Title:z,col2Cards:S,col3Title:X,col3Cards:Z,col4Title:q,col4Cards:J,barsHeading:Q,bars:V,termLines:Y,urlText:H,heroTitle:A,heroButton:ee,products:le,align:R="right",editing:p=!1,omitHead:$=!1}={}){const y=(G??[]).filter(t=>p||(t.value??"").trim()),v=(L??[]).filter(t=>p||(t.label??"").trim()),N=(U??[]).filter(t=>p||(t.lead??"").trim()),k=[[O,P],[z,S],[X,Z],[q,J]].map(([t,h])=>({title:(t??"").trim(),cards:(h??[]).map(ae=>(ae.text??"").trim()).filter(Boolean)})).filter(t=>t.title||t.cards.length>0),w=(V??[]).map(t=>({label:(t.label??"").trim(),value:parseFloat(t.value??"")})).filter(t=>t.label&&Number.isFinite(t.value)),T=(Y??[]).map(t=>t.text??"").filter(t=>p||t.trim()),D=(le??[]).map(t=>({name:(t.name??"").trim(),price:(t.price??"").trim()})).filter(t=>t.name),te=!$&&(!!(n??"").trim()||!!(l??"").trim()),B=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||k.length>0||w.length>0||D.length>0||T.length>0||!!(A??"").trim();if(!p&&!te&&!B)return null;const C=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${a==="kanban"||a==="browser"||a==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:_},children:[a!=="terminal"&&(s??"").trim()&&r("div",{className:"flex items-center justify-between px-6 py-4",style:{background:d},children:[e("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-white",children:s}),(i??"").trim()&&r("span",{className:"flex items-center gap-2 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-white",children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] rounded-full",style:{background:g}}),i]})]}),a==="terminal"?e(oe,{header:s??"",lines:T}):a==="browser"?e(me,{urlText:H??"",heroTitle:A??"",heroButton:ee??"",products:D}):r("div",{className:"flex flex-col gap-5 p-6",children:[((f??"").trim()||(b??"").trim())&&r("div",{children:[(f??"").trim()&&e("div",{className:"text-[22px] font-bold leading-tight",style:{color:d},children:f}),(b??"").trim()&&e("div",{className:"mt-1 text-[14px]",style:{color:o},children:b})]}),a==="fitment"&&y.length>0&&e("div",{className:"flex flex-wrap gap-2.5",children:y.map((t,h)=>r("span",{className:"flex items-baseline gap-2 rounded border px-4 py-2",style:{background:x,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:t.label}),e("span",{className:"text-[13px] font-bold",style:{color:d},children:t.value})]},h))}),a!=="fitment"&&v.length>0&&e("div",{className:"grid grid-cols-2 gap-3",children:v.map((t,h)=>r("div",{className:"rounded-lg px-4 py-3",style:{background:x},children:[e("div",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:t.label}),e("div",{className:"mt-1 text-[17px] font-bold",style:{color:d},children:t.value})]},h))}),N.length>0&&e(ce,{rows:N}),(j??"").trim()&&e("div",{className:"self-start rounded-lg px-6 py-2.5 text-[14px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:j}),a==="kanban"&&k.length>0&&e(de,{columns:k}),a==="claims"&&w.length>0&&e(ie,{heading:Q??"",bars:w}),(M??"").trim()&&e("div",{className:"border-t pt-4",style:{borderColor:m},children:e("span",{className:"text-[15px] font-bold",style:{color:"var(--accent)"},children:M})})]})]});if($)return p||B?e("div",{className:`flex justify-center ${R==="left"?"view-wide:justify-start":"view-wide:justify-end"}`,children:C}):null;const E=r("div",{children:[(n??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:ne(n??"")}),(l??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${F.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${F.headingMediumUpTo800}`,children:se(l??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(re,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:e("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:grid-cols-2 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:R==="left"?r(I,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:C}),E]}):r(I,{children:[E,e("div",{className:"flex justify-center min-[960px]:justify-end",children:C})]})})})}export{pe as default};
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as I}from"react/jsx-runtime";import{HideTaker as se}from"./ViewHideRoot.js";import{renderGold as ce,renderHeadline as ie}from"./goldPhrases.js";import{withSideOnce as de}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as oe}from"./SideSpaceOnce.js";import{withRootPad as me}from"../lib/content/section-own-pads.js";const F={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"},_="#ffffff",i="#16181d",o="#5b6470",u="#9aa3ae",x="#f4f6f8",m="#e3e7ec",g="#1f9d55";function pe({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((t,c)=>{const a=t.state??"ok",s=a==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":x,borderColor:m},children:[a==="no"?e("span",{"aria-hidden":!0,className:"text-[15px] font-bold",style:{color:u},children:"✕"}):e("span",{"aria-hidden":!0,className:"h-[11px] w-[11px] flex-shrink-0 rounded-full",style:{background:a==="warn"?"var(--accent)":g}}),e("span",{className:"text-[14px] font-semibold",style:{color:s?u:i},children:t.lead}),e("span",{className:"text-[13px]",style:{color:s?u:o},children:t.detail}),(t.status??"").trim()&&e("span",{className:"ml-auto whitespace-nowrap text-[12px] font-bold",style:{color:a==="ok"?g:a==="warn"?"var(--accent)":u},children:t.status})]},c)})})}const O=["#c7cdd5","var(--accent)","#c7cdd5",g];function xe({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:x,gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map((t,c)=>r("div",{className:"flex flex-col gap-2",children:[r("div",{className:"flex items-baseline justify-between px-1",children:[e("span",{className:"font-mono text-[9px] font-semibold uppercase tracking-[0.14em]",style:{color:o},children:t.title}),e("span",{className:"font-mono text-[9px] font-bold",style:{color:"var(--accent)"},children:t.cards.length})]}),t.cards.map((a,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:_,borderColor:c===n.length-1?"#bfe3ce":m},children:[e("span",{"aria-hidden":!0,className:"mb-1.5 block h-[8px] w-[8px] rounded-full",style:{background:O[c%O.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:i},children:a})]},s))]},c))})}function he({heading:n,bars:t}){const c=Math.max(...t.map(s=>s.value),0)||1,a=t.findIndex(s=>s.value===c);return r("div",{className:"border-t pt-4",style:{borderColor:m},children:[n.trim()&&e("div",{className:"mb-3 font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:n}),e("div",{className:"flex flex-col gap-2.5",children:t.map((s,d)=>r("div",{className:"flex items-center gap-3",children:[e("span",{className:"w-[84px] flex-shrink-0 text-[12px] font-bold",style:{color:i},children:s.label}),e("span",{className:"h-[12px] rounded-full",style:{width:`${Math.max(s.value/c*60,4)}%`,background:d===a?"var(--accent)":d%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},d))})]})}function W({size:n}){const t=n/2;return r("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:[e("circle",{cx:t,cy:t,r:t*.82,fill:"none",stroke:"#9aa3ae",strokeWidth:"2.5"}),e("circle",{cx:t,cy:t,r:t*.5,fill:"none",stroke:"var(--accent)",strokeWidth:"2"}),e("circle",{cx:t,cy:t,r:t*.14,fill:"var(--accent)"})]})}function fe({header:n,lines:t}){return r("div",{style:{background:"#0c0e11"},children:[r("div",{className:"relative flex items-center gap-2 px-4 py-3",style:{background:"#161a20"},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"absolute inset-x-0 text-center font-mono text-[11px]",style:{color:"rgba(244,246,242,0.45)"},children:n})]}),r("div",{className:"flex flex-col gap-1.5 px-5 py-5 font-mono text-[13px] leading-relaxed",children:[t.map((c,a)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},a):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},a):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},a)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function ue({urlText:n,heroTitle:t,heroButton:c,products:a}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:x},children:[e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#e85d5d"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#efc65a"}}),e("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] rounded-full",style:{background:"#6fcf7e"}}),n.trim()&&e("span",{className:"mx-auto rounded border px-6 py-1 text-[11px]",style:{background:_,borderColor:m,color:o},children:n}),e("span",{className:"w-[54px]","aria-hidden":!0})]}),r("div",{className:"relative overflow-hidden px-5 py-6",style:{background:i},children:[e("div",{className:"absolute -right-4 top-1/2 -translate-y-1/2 opacity-90",children:e(W,{size:104})}),t.trim()&&e("div",{className:"max-w-[240px] text-[15px] font-bold uppercase leading-snug tracking-wide text-white",children:t}),c.trim()&&e("div",{className:"mt-3 inline-block rounded px-3.5 py-1.5 text-[11px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:c})]}),a.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:a.map((s,d)=>r("div",{className:"overflow-hidden rounded-lg border",style:{borderColor:m},children:[e("div",{className:"flex items-center justify-center py-3",style:{background:x},children:e(W,{size:56})}),r("div",{className:"flex flex-col gap-1 p-2.5",children:[e("span",{className:"text-[10.5px] font-bold leading-tight",style:{color:i},children:s.name}),e("span",{className:"text-[11px] font-bold",style:{color:"var(--accent)"},children:s.price}),e("span",{className:"mt-0.5 rounded px-2 py-1 text-center text-[9px] font-bold text-white",style:{background:i},"aria-hidden":!0,children:"Add to cart"})]})]},d))})]})}function ge({eyebrow:n,title:t,body:c,variant:a="spec-card",cardHeader:s,badge:d,cardTitle:f,cardSubtitle:b,pills:K,tiles:S,rows:G,button:j,footnote:M,col1Title:L,col1Cards:P,col2Title:U,col2Cards:z,col3Title:X,col3Cards:Z,col4Title:q,col4Cards:J,barsHeading:Q,bars:V,termLines:Y,urlText:H,heroTitle:R,heroButton:ee,products:te,align:A="right",editing:p=!1,omitHead:$=!1,pad:le}={}){const ae=oe(),y=(K??[]).filter(l=>p||(l.value??"").trim()),v=(S??[]).filter(l=>p||(l.label??"").trim()),N=(G??[]).filter(l=>p||(l.lead??"").trim()),w=[[L,P],[U,z],[X,Z],[q,J]].map(([l,h])=>({title:(l??"").trim(),cards:(h??[]).map(ne=>(ne.text??"").trim()).filter(Boolean)})).filter(l=>l.title||l.cards.length>0),k=(V??[]).map(l=>({label:(l.label??"").trim(),value:parseFloat(l.value??"")})).filter(l=>l.label&&Number.isFinite(l.value)),T=(Y??[]).map(l=>l.text??"").filter(l=>p||l.trim()),D=(te??[]).map(l=>({name:(l.name??"").trim(),price:(l.price??"").trim()})).filter(l=>l.name),re=!$&&(!!(n??"").trim()||!!(t??"").trim()),B=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||w.length>0||k.length>0||D.length>0||T.length>0||!!(R??"").trim();if(!p&&!re&&!B)return null;const C=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${a==="kanban"||a==="browser"||a==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:_},children:[a!=="terminal"&&(s??"").trim()&&r("div",{className:"flex items-center justify-between px-6 py-4",style:{background:i},children:[e("span",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-white",children:s}),(d??"").trim()&&r("span",{className:"flex items-center gap-2 font-mono text-[11px] font-semibold uppercase tracking-[0.16em] text-white",children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] rounded-full",style:{background:g}}),d]})]}),a==="terminal"?e(fe,{header:s??"",lines:T}):a==="browser"?e(ue,{urlText:H??"",heroTitle:R??"",heroButton:ee??"",products:D}):r("div",{className:"flex flex-col gap-5 p-6",children:[((f??"").trim()||(b??"").trim())&&r("div",{children:[(f??"").trim()&&e("div",{className:"text-[22px] font-bold leading-tight",style:{color:i},children:f}),(b??"").trim()&&e("div",{className:"mt-1 text-[14px]",style:{color:o},children:b})]}),a==="fitment"&&y.length>0&&e("div",{className:"flex flex-wrap gap-2.5",children:y.map((l,h)=>r("span",{className:"flex items-baseline gap-2 rounded border px-4 py-2",style:{background:x,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:l.label}),e("span",{className:"text-[13px] font-bold",style:{color:i},children:l.value})]},h))}),a!=="fitment"&&v.length>0&&e("div",{className:"grid grid-cols-2 gap-3",children:v.map((l,h)=>r("div",{className:"rounded-lg px-4 py-3",style:{background:x},children:[e("div",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.18em]",style:{color:o},children:l.label}),e("div",{className:"mt-1 text-[17px] font-bold",style:{color:i},children:l.value})]},h))}),N.length>0&&e(pe,{rows:N}),(j??"").trim()&&e("div",{className:"self-start rounded-lg px-6 py-2.5 text-[14px] font-bold text-white",style:{background:"var(--accent)"},"aria-hidden":!0,children:j}),a==="kanban"&&w.length>0&&e(xe,{columns:w}),a==="claims"&&k.length>0&&e(he,{heading:Q??"",bars:k}),(M??"").trim()&&e("div",{className:"border-t pt-4",style:{borderColor:m},children:e("span",{className:"text-[15px] font-bold",style:{color:"var(--accent)"},children:M})})]})]});if($)return p||B?e("div",{className:`flex justify-center ${A==="left"?"view-wide:justify-start":"view-wide:justify-end"}`,children:C}):null;const E=r("div",{children:[(n??"").trim()&&e("span",{className:"inline-block bg-accent px-3.5 py-1.5 font-mono text-[12px] font-semibold uppercase tracking-[0.16em] text-bg",children:ce(n??"")}),(t??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${F.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${F.headingMediumUpTo800}`,children:ie(t??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(se,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:e("div",{...me(de("mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:grid-cols-2 max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",ae),le),children:A==="left"?r(I,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:C}),E]}):r(I,{children:[E,e("div",{className:"flex justify-center min-[960px]:justify-end",children:C})]})})})}export{ge as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
2
3
|
export interface OrderSummaryRow {
|
|
3
4
|
label?: string;
|
|
4
5
|
meta?: string;
|
|
@@ -14,6 +15,7 @@ interface OrderSummaryProps {
|
|
|
14
15
|
note?: string;
|
|
15
16
|
contained: boolean;
|
|
16
17
|
cards?: ReactNode;
|
|
18
|
+
pad?: RootPadAttrs | null;
|
|
17
19
|
}
|
|
18
|
-
export default function OrderSummary({ eyebrow, title, rows, subRows, totalLabel, totalAmount, note, contained, cards, }: OrderSummaryProps): import("react").JSX.Element;
|
|
20
|
+
export default function OrderSummary({ eyebrow, title, rows, subRows, totalLabel, totalAmount, note, contained, cards, pad, }: OrderSummaryProps): import("react").JSX.Element;
|
|
19
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as n}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{withRootPad as u}from"../lib/content/section-own-pads.js";import g from"./BlockFrame.js";import b from"./SectionEyebrow.js";import{renderGold as i,renderHeadline as N}from"./goldPhrases.js";const x={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]"};function y({eyebrow:s,title:r,rows:d,subRows:c,totalLabel:l,totalAmount:t,note:p,contained:f,cards:o,pad:h}){return e(g,{contained:f,...u("py-6",h),children:n("div",{className:"sf-card mx-auto max-w-[560px] border border-line bg-surface px-8 py-9 max-view-wide:px-5 max-view-wide:py-6",children:[s&&e(b,{text:s,scaled:!1}),r&&e("h2",{className:`mt-2 font-heading2 ${x.headingMedium} font-medium leading-[1.1] tracking-[-0.02em] ${x.headingMediumUpTo800}`,children:N(r,!1)}),o?e("div",{className:"mt-6 flex flex-col",children:o}):d.length>0&&e("ul",{className:"mt-6 flex flex-col",children:d.map((a,m)=>n("li",{className:"flex items-baseline justify-between gap-4 border-t border-line py-3 first:border-t-0",children:[n("span",{className:"min-w-0",children:[a.label&&e("span",{className:"block text-[15px]",children:i(a.label)}),a.meta&&e("span",{className:"block font-mono text-[12px] uppercase tracking-[0.12em] opacity-60",children:i(a.meta)})]}),a.amount&&e("span",{className:"text-[15px] tabular-nums",children:i(a.amount)})]},m))}),c.length>0&&e("ul",{className:"mt-1 flex flex-col border-t border-line pt-3",children:c.map((a,m)=>n("li",{className:"flex items-baseline justify-between gap-4 py-1",children:[e("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] opacity-70",children:a.label&&i(a.label)}),a.amount&&e("span",{className:"text-[14px] tabular-nums opacity-85",children:i(a.amount)})]},m))}),(l||t)&&n("div",{className:"mt-4 flex items-baseline justify-between gap-4 border-t border-line pt-4",children:[l&&e("span",{className:"font-mono text-[13px] uppercase tracking-[0.3em]",children:i(l)}),t&&e("span",{className:"font-display text-[26px] font-medium text-accent tabular-nums",children:i(t)})]}),p&&e("p",{className:"mt-4 text-[13px] leading-[1.6] opacity-60",children:i(p)})]})})}export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as
|
|
1
|
+
import{jsx as l,jsxs as i}from"react/jsx-runtime";import{HideTaker as w}from"./ViewHideRoot.js";import{bandPadAttrs as N}from"../lib/content/section-padding.js";import{innerPaddingFallback as u}from"../lib/document/passes/section-padding.js";import{renderGold as t,renderHeadline as y,splitParagraphs as T}from"./goldPhrases.js";import{withSideOnce as z}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as $}from"./SideSpaceOnce.js";const e={bodyUpTo720Small:"max-view-tablet:text-[length:var(--size-body,12px)]",bodyUpTo720Large:"max-view-tablet:text-[length:var(--size-body,16px)]",headingSmallUpTo720:"max-view-tablet:text-[length:var(--size-headingSmall,20px)]",labelUpTo720:"max-view-tablet:text-[length:var(--size-label,10px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function U({eyebrow:s,stats:g,lead:r,foundersHeading:n,foundersBody:o,attribution:m,padTop:b,padBottom:h,bandPad:v,takesViewHide:f=!1}={}){const k=$(),c=v??N({padTop:b,padBottom:h},u("ParagraphsA")),d=(g??[]).filter(a=>(a.value??"").trim()!==""||(a.label??"").trim()!==""),S=!!s||d.length>0,x=!!(n||o||m);return l(w,{as:"section",takes:f,className:"relative z-[2] bg-bg",children:i("div",{className:z(["mx-auto max-w-[var(--sf-site-width,1600px)] overflow-hidden border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",c.className].filter(Boolean).join(" "),k),style:c.style,children:[S&&i("div",{className:"mb-[40px] grid grid-cols-3 gap-[60px] border-b border-line pb-[40px] max-view-desktop:grid-cols-1 max-view-desktop:gap-6",children:[l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:s&&l("span",{className:`font-mono ${e.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:t(s)})}),d.length>0&&l("div",{className:`text-right font-mono ${e.labelLarge} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:d.map((a,p)=>i("div",{children:[a.value?l("strong",{className:"font-normal text-fg",children:t(a.value)}):null," ",a.label?t(a.label):null]},p))})]}),(r||x)&&i("div",{className:"grid grid-cols-3 gap-[60px] max-view-desktop:grid-cols-1 max-view-desktop:gap-7",children:[r&&l("div",{className:"col-span-2 max-view-desktop:col-span-1",children:T(r).map((a,p)=>l("p",{className:`max-w-[780px] font-heading3 ${e.headingSmall} leading-[1.45] tracking-[-0.005em] text-fg ${e.headingSmallUpTo720}`,children:t(a)},p))}),x&&i("div",{className:`self-end font-display ${e.bodySmall} leading-[1.7] text-fg-dim ${e.bodyUpTo720Small}`,children:[n&&l("strong",{className:`mb-1.5 block ${e.bodyLarge} font-medium tracking-[-0.01em] text-fg ${e.bodyUpTo720Large}`,children:y(n,!1)}),o?t(o):null,m&&l("span",{className:`mt-2 block font-mono ${e.labelSmall} uppercase not-italic tracking-[0.24em] text-accent ${e.labelUpTo720}`,children:t(m)})]})]})]})})}export{U as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface PaymentBadge {
|
|
2
3
|
label?: string;
|
|
3
4
|
src?: string;
|
|
@@ -11,6 +12,7 @@ interface PaymentBadgesProps {
|
|
|
11
12
|
}[];
|
|
12
13
|
contained: boolean;
|
|
13
14
|
sourced?: boolean;
|
|
15
|
+
pad?: RootPadAttrs | null;
|
|
14
16
|
}
|
|
15
|
-
export default function PaymentBadges({ heading, badges, assurances, contained, sourced }: PaymentBadgesProps): import("react").JSX.Element;
|
|
17
|
+
export default function PaymentBadges({ heading, badges, assurances, contained, sourced, pad }: PaymentBadgesProps): import("react").JSX.Element;
|
|
16
18
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as n}from"react/jsx-runtime";import{paymentMarkRows as f}from"../lib/sections/payment-rows.js";import{withRootPad as x}from"../lib/content/section-own-pads.js";import y from"./BlockFrame.js";import{LogoWallMark as c}from"./Logos.js";import{renderGold as m}from"./goldPhrases.js";function g({heading:l,badges:t,assurances:o,contained:i,sourced:p=!1,pad:d}){const s=p?f(t).map(e=>({row:e})):t.map(e=>({src:e.src,label:e.label||""}));return r(y,{contained:i,...x("py-6",d),children:n("div",{className:"flex flex-col items-center gap-5 border-y border-line py-8 text-center",children:[l&&r("span",{className:"font-mono text-[13px] uppercase tracking-[0.3em] opacity-70",children:m(l)}),s.length>0&&r("ul",{className:"flex flex-wrap items-center justify-center gap-3",children:s.map((e,a)=>r("li",{children:"row"in e?r(c,{look:"cards",alt:e.row.label,kind:e.row.kind}):r(c,{src:e.src,alt:e.label,look:"cards",grayscale:!1})},a))}),o.length>0&&r("ul",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-1",children:o.map((e,a)=>e.text&&n("li",{className:"flex items-center gap-2 text-[13px] opacity-60",children:[r("span",{className:"h-1 w-1 rounded-full bg-accent","aria-hidden":!0}),m(e.text)]},a))})]})})}export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as R,jsxs as i}from"react/jsx-runtime";import{HideTaker as Y}from"./ViewHideRoot.js";import{bandPadAttrs as X}from"../lib/content/section-padding.js";import{innerPaddingFallback as Z}from"../lib/document/passes/section-padding.js";import{RowHandContext as T}from"./MirrorContext.js";import{EDITORIAL_COLUMN as q,withSideOnce as _}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as J}from"../../format/lib/content/card-image-shape.js";import{SiteLink as K}from"../lib/site-runtime.js";import Q from"./EditorialSectionHead.js";import V from"./Placeholder.js";import{withRMark as o}from"./RMark.js";import{renderGold as s}from"./goldPhrases.js";import{say as W}from"../../format/lib/editor-words.js";import{scrim as f}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as B,EMPTY_HIDES_CLASS as C,EmptyHidesStyle as ee}from"../lib/content/empty-hides.js";import{useSideSpaceOnce as ae}from"./SideSpaceOnce.js";const t={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},I={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},S="sf-itc-boxes",te="sf-itc-steps";function le(b){return(b??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(c=>(c?.label??"").trim()||(c?.value??"").trim()))}function re({num:b,title:r,description:c,boxes:n,steps:P,columns:j=3,cta:h,padTop:A,padBottom:H,bandPad:O,editing:U=!1,omitHead:D=!1,cardImage:F,cardImageUnit:G,cardText:M,rows:y,copies:g}){const $=ae(),p=g!==void 0,m=y&&(p||(n?.blockCount??0)>0)?y:null,N=O??X({padTop:A,padBottom:H},Z("ProcessSteps")),k=p?[]:le(P),L=k.length>0?k:U&&!n&&!p?[1,2,3].map(a=>({tag:W("Column {n}",{n:a})})):[],z=I[j]??I[3],u=m?"grid-cols-1":z,w=m?"":" [&>*]:min-h-[560px]",d=M==="on-image";return e(Y,{as:"section",className:_(["relative z-[2] border-b border-line bg-bg",N.className].filter(Boolean).join(" "),$),style:{...N.style,...J(F,G)},children:i("div",{className:_(q,$),children:[D?null:e(Q,{num:b,title:r?.trim()?s(r,!0):void 0,desc:c?.trim()?s(c,!1):void 0}),n&&!p?i(R,{children:[e(ee,{}),m?e(T.Provider,{value:{hand:m,ids:n.blockIds??[],boxes:[]},children:e(n,{className:`${S} ${C} sf-card grid ${u} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,minEmptyHeight:260})}):e(n,{className:`${S} ${C} sf-card grid ${u} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,p&&g?e("div",{className:`${S} sf-card grid ${u} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,children:m?e(T.Provider,{value:{hand:m,copies:!0},children:g}):g}):null,L.length>0&&e("div",{className:`${te} ${B} sf-card grid ${z} gap-[2px] border border-line bg-line`,children:L.map((a,E)=>{const x=(a.specs??[]).filter(l=>(l?.label??"").trim()||(l?.value??"").trim());return i("article",{className:d?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:d?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(V,{label:a.tag?.trim()||a.title?.trim()||`column-${E+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...n?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${f(.55)} 0%, transparent 30%, transparent 70%, ${f(.65)} 100%)`}}),d&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${f(.73)} 55%, ${f(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.3em] text-accent`,children:o(a.tag)}),a.meta?.trim()&&e("span",{className:d?`absolute right-5 top-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${t.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:o(a.meta)}),d&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${t.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${t.headingSmallUpTo700Small}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${t.bodySmall} leading-[1.5] text-overlay-fg/85`,children:s(a.copy,!1)})]})]}),d?x.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:x.map((l,v)=>i("div",{className:"flex flex-col gap-1",children:[l.label?.trim()&&e("span",{className:`font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(l.value)})]},v))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${t.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${t.headingSmallUpTo700Large}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${t.bodySmall} leading-[1.55] text-fg-dim`,children:s(a.copy,!1)}),x.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:x.map((l,v)=>i("div",{className:"flex flex-col gap-1",children:[l.label?.trim()&&e("span",{className:`font-mono ${t.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(l.label)}),l.value?.trim()&&e("span",{className:`font-display ${t.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(l.value)})]},v))})]})]},E)})}),h?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(K,{newTab:"auto",href:h.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${t.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[o(h.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{re as default,le as storedStepsShown};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface ProseProps {
|
|
2
3
|
eyebrow?: string;
|
|
3
4
|
title?: string;
|
|
@@ -5,5 +6,6 @@ export interface ProseProps {
|
|
|
5
6
|
topBorder?: boolean;
|
|
6
7
|
omitHead?: boolean;
|
|
7
8
|
editing?: boolean;
|
|
9
|
+
pad?: RootPadAttrs | null;
|
|
8
10
|
}
|
|
9
|
-
export default function Prose({ eyebrow, title, body, topBorder, omitHead, editing, }?: ProseProps): import("react").JSX.Element | null;
|
|
11
|
+
export default function Prose({ eyebrow, title, body, topBorder, omitHead, editing, pad, }?: ProseProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as f,jsxs as n}from"react/jsx-runtime";import c from"./SectionEyebrow.js";import{HideTaker as u}from"./ViewHideRoot.js";import{renderGold as v,renderHeadline as b,splitParagraphs as w}from"./goldPhrases.js";import{withSideOnce as S}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as _}from"./SideSpaceOnce.js";import{withRootPad as N}from"../lib/content/section-own-pads.js";const i={headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",body:"text-[length:var(--size-body,16px)]"},E="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",M="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[72px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";function O({eyebrow:t,title:a,body:m,topBorder:o=!0,omitHead:r=!1,editing:p=!1,pad:x}={}){const d=_(),s=w((m??"").trim()),g=!!(t??"").trim()||!!(a??"").trim()||s.length>0;return!p&&!g?null:e(u,{as:"section",className:`relative z-[2] ${o?"border-t border-line ":""}bg-bg`,children:n("div",{...N(S(r?M:E,d),x),children:[r?null:n(f,{children:[(t??"").trim()&&e(c,{text:t??"",className:"mb-4 block"}),(a??"").trim()&&e("h2",{className:`mb-7 font-heading2 ${i.headingMedium} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${i.headingSmallUpTo800}`,children:b(a??"",!1)})]}),s.map((l,h)=>e("p",{className:`mb-[18px] max-w-[680px] ${i.body} leading-[1.7] text-fg-dim last:mb-0`,children:v(l)},h))]})})}export{O as default};
|
|
@@ -51,6 +51,7 @@ interface Props {
|
|
|
51
51
|
titleSize?: string;
|
|
52
52
|
count?: ReactNode;
|
|
53
53
|
capped?: boolean;
|
|
54
|
+
rootPadsBottom?: boolean;
|
|
54
55
|
}
|
|
55
|
-
export default function SectionHeader({ num, title, link, logo, description, accent, accentNum, numStyle, look, titleAccent, accentTracking, spaceBelow, rowGap, descriptionSize, className, eyebrowLook, titleSize, count, capped, }: Props): import("react").JSX.Element | null;
|
|
56
|
+
export default function SectionHeader({ num, title, link, logo, description, accent, accentNum, numStyle, look, titleAccent, accentTracking, spaceBelow, rowGap, descriptionSize, className, eyebrowLook, titleSize, count, capped, rootPadsBottom, }: Props): import("react").JSX.Element | null;
|
|
56
57
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as n,Fragment as
|
|
1
|
+
import{jsx as a,jsxs as n,Fragment as R}from"react/jsx-runtime";import{PagePicture as j}from"../lib/first-screen.js";import{MarkZoom as C}from"./PictureZoom.js";import{SiteLink as S}from"../lib/site-runtime.js";import{media as F}from"../lib/media.js";import{sizedImage as A}from"../../format/lib/sized-image.js";import{DEFAULT_SECTION_NUMBER_STYLE as X,OUTLINED_NUMBER_CLASS as Y,OUTLINED_NUMBER_CSS as Z,OUTLINED_NUMBER_LAYOUT as P,parseSectionNumberStyle as W}from"../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_EYEBROW_LOOK as K}from"../../format/lib/sections/section-eyebrow-look.js";import{STICKY_UNDERHEADER_CLASS as G}from"../lib/document/header-clearance.js";import{renderGold as q,renderHeadline as J}from"./goldPhrases.js";import c from"./SectionEyebrow.js";import{withSideOnce as Q}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as V}from"./SideSpaceOnce.js";const t={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},T=[{value:"para",label:"Paragraph size — 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${t.shelfLabel}`},{value:"sm",label:"Small — 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading1} ${t.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium — 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading2} ${t.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large — 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading3} ${t.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large — 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading4} ${t.shelfHeadingUpTo800Xl}`}],ee="lg";function ae(e){return(T.find(i=>i.value===e)??T.find(i=>i.value===ee)).cls}const g=(e,i=!1)=>typeof e=="string"?J(e,i):e,l=(e,i=!1)=>typeof e=="string"?q(e,i):e;function ie({num:e,title:i,link:r,logo:f,description:d,accent:w,accentNum:M,numStyle:_=X,look:m="standard",titleAccent:v,accentTracking:E="-0.02em",spaceBelow:y,rowGap:z,descriptionSize:L,className:h="",eyebrowLook:x=K,titleSize:U,count:b,capped:H=!1,rootPadsBottom:k=!1}){const I=V(),o=y??(m==="editorial"?"mb-[60px]":"");if(m==="shelf")return e||i||d||r?n("div",{className:Q(`${G} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${H?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,I),children:[n("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&a("span",{className:`font-mono ${t.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:l(e)}),i&&a("h2",{className:`${ae(U)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:g(i)})]}),(d||r||b)&&n("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[d&&a("span",{className:`max-w-[340px] truncate font-display ${t.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:l(d)}),r&&n(S,{newTab:"auto",href:r.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[l(r.text),a("span",{"aria-hidden":!0,children:"→"})]}),b&&a("span",{className:`whitespace-nowrap font-mono ${t.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:b})]})]}):null;if(m==="editorial"){const s=!!i||!!v;return n("header",{className:`${o} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?a(c,{text:e,className:"pb-2"}):a("span",{className:"pb-2",children:e})),s&&n("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[i,v&&n(R,{children:[" ",a("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:E},children:v})]})]}),d&&a("p",{className:`max-w-[360px] pb-1 text-right font-display ${t.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:d})]})}if(m==="simple"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(c,{text:e,look:x,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${t.headingMediumUpTo800Small}`,children:g(i)})]})}if(m==="statement"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(c,{text:e,look:x,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:g(i,!0)})]})}if(m==="natural"){const s=`flex max-w-[680px] flex-col ${z??"gap-5"} ${o} ${h}`.replace(/\s+/g," ").trim();return n("div",{className:s,children:[e&&(typeof e=="string"?a(c,{text:e,look:x}):a("span",{children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${t.headingMediumUpTo800Small}`,children:g(i)}),d&&a("p",{className:`${L??`${t.bodyLarge}`} leading-[1.6] opacity-85`,children:d})]})}if(m==="essay"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(c,{text:e,look:x,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${t.headingSmallUpTo800}`,children:g(i)})]})}const O=!!d||!!r,B=!!i,u=W(_)==="outlined",N=`font-mono ${t.label} uppercase tracking-[0.3em]`;let p=null;if(e)if(u)p=a("span",{className:`${P} text-fg-dim ${Y}`,children:l(e)});else if(M&&!w&&typeof e=="string"){const s=e.indexOf("/"),D=s===-1?e:e.slice(0,s),$=s===-1?"":e.slice(s);p=n("span",{className:N,children:[a("span",{className:"text-accent",children:l(D)}),$&&a("span",{className:"text-fg-dim",children:l($)})]})}else p=a("span",{className:`${N} ${w?"text-accent":"text-fg-dim"}`,children:l(e)});return n("div",{className:k?"grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5":"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[u&&e&&a("style",{children:Z}),n("div",{className:"flex flex-col items-start gap-3",children:[f?.src&&a(C,{children:a(j,{...te(F(f.src)),alt:f.alt,className:"h-8 w-auto object-contain"})}),p]}),B&&a("h2",{className:w?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${t.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${t.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:g(i)}),O&&n("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[d&&a("p",{className:`max-w-[340px] font-display ${t.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:l(d)}),r&&n(S,{newTab:"auto",href:r.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[l(r.text),a("span",{"aria-hidden":!0,children:"→"})]})]})]})}function te(e){const i=A(e,{fallbackWidth:640,maxWidth:960});return i.srcSet?{src:i.src,srcSet:i.srcSet,sizes:"240px"}:{src:e}}export{ee as DEFAULT_SHELF_TITLE_SIZE,T as SHELF_TITLE_SIZES,ie as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface SeriesCard {
|
|
2
3
|
num?: string;
|
|
3
4
|
since?: string;
|
|
@@ -15,5 +16,6 @@ export interface SeriesProps {
|
|
|
15
16
|
background?: string;
|
|
16
17
|
editing?: boolean;
|
|
17
18
|
omitHead?: boolean;
|
|
19
|
+
pad?: RootPadAttrs | null;
|
|
18
20
|
}
|
|
19
|
-
export default function Series({ headNum, headTitle, headDesc, cards, viewLabel, background, editing, omitHead, }: SeriesProps): import("react").JSX.Element;
|
|
21
|
+
export default function Series({ headNum, headTitle, headDesc, cards, viewLabel, background, editing, omitHead, pad, }: SeriesProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as i,Fragment as
|
|
1
|
+
import{jsx as t,jsxs as i,Fragment as w}from"react/jsx-runtime";import{EDITORIAL_COLUMN as k,withSideOnce as j}from"../../format/lib/content/page-width.js";import{HideTaker as E}from"./ViewHideRoot.js";import L from"./EditorialSectionHead.js";import{renderGold as r,renderHeadline as c}from"./goldPhrases.js";import{say as O}from"../../format/lib/editor-words.js";import{useSideSpaceOnce as _}from"./SideSpaceOnce.js";import{withRootPad as $}from"../lib/content/section-own-pads.js";const n={body:"text-[length:var(--size-body,14px)]",headingSmall:"text-[length:var(--size-headingSmall,28px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function z({headNum:p,headTitle:s,headDesc:g,cards:x,viewLabel:l,background:a,editing:h=!1,omitHead:m=!1,pad:f}){const b=_(),o=(x??[]).filter(e=>(e?.title??"").trim()||(e?.desc??"").trim()||(e?.num??"").trim()),u=o.length>0?o:h?[{title:O("Series title")}]:[],d=!!(a&&a!=="transparent");return t(E,{as:"section",...$(m?"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20":"border-b border-line py-[120px] max-view-desktop:py-20",f,d?{backgroundColor:a}:void 0),children:i("div",{className:j(k,b),children:[m?null:t(L,{num:p,title:s?c(s):void 0,desc:g}),t("div",{className:`grid grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1 ${d?"gap-[1px]":"gap-[2px] bg-bg"}`,children:u.map((e,S)=>{const v=!!(e.num?.trim()||e.since?.trim()),y=!!e.title?.trim(),N=!!(e.entries?.trim()||e.entriesLabel?.trim()||l);return i("article",{className:"flex min-h-[340px] flex-col gap-4 bg-bg px-7 pt-9 pb-8",children:[v&&i("div",{className:`flex items-baseline justify-between gap-3 font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[t("span",{children:e.num?r(e.num):null}),e.since?.trim()?t("span",{children:r(e.since)}):null]}),y&&t("h3",{className:`font-heading3 ${n.headingSmall} font-medium uppercase leading-[1.04] tracking-[-0.02em]`,children:c(e.title??"")}),e.desc?.trim()&&t("p",{className:`font-display ${n.body} leading-[1.6] text-fg-dim`,children:r(e.desc)}),N&&i("div",{className:`mt-auto flex items-center justify-between border-t border-line pt-4 font-mono ${n.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:[i("span",{children:[e.entries?.trim()?t("strong",{className:"font-normal text-fg",children:r(e.entries)}):null,e.entriesLabel?.trim()?i(w,{children:[e.entries?.trim()?" ":"",r(e.entriesLabel)]}):null]}),l&&t("span",{className:"text-accent",children:r(l)})]})]},S)})})]})})}export{z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as n,jsx as o}from"react/jsx-runtime";import{useSiteRootProps as i}from"./SiteRootProps.js";import{sideSpaceOnceAttr as s,SIDE_ONCE_VALUE as c,withSideOnce as m}from"../../format/lib/content/page-width.js";function p(){return s(i())===c}function d({className:e,children:t}){const r=p();return o(n,{children:t(m(e,r))})}export{d as SideOnceClass,p as useSideSpaceOnce};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,Fragment as
|
|
1
|
+
"use client";import{jsx as t,Fragment as _}from"react/jsx-runtime";import{useTakeViewHide as ne,withViewHide as X}from"./ViewHideRoot.js";import{createContext as u,useContext as o}from"react";import{framePadAttrs as oe}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as re,SECTION_BORDER_SELF_CLASS as se}from"../../format/lib/content/borders.js";import{BOX_HOLDS_NO_GUTTER_CLASS as q,sideOnceFrameHolds as ie,siteSideRoom as le,withSideOnce as z}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as ce}from"./SideSpaceOnce.js";import{drawsSiteGutter as ue}from"../../format/lib/content/site-gutter.js";import{groundBeyond as ae}from"../lib/content/section-edge.js";const m=u(!1);function Be(){return o(m)}function Ge({children:e}){return t(m.Provider,{value:!0,children:e})}const A=u(!1);function Pe({children:e}){return t(A.Provider,{value:!0,children:e})}const J=u(null);function Re({ground:e,children:n}){return t(J.Provider,{value:e,children:n})}const E=u(!1);function de(){return o(E)}function _e({atTop:e,nested:n}){return t(_,{children:de()?n:e})}const f=u(void 0);function Ae({children:e}){return t(f.Provider,{value:null,children:e})}function me(){return o(f)===void 0&&!o(E)&&!o(m)}function Ee({own:e,followed:n}){return t(_,{children:me()?e():n()})}const K=u(null);function we({value:e,children:n}){return t(K.Provider,{value:e,children:n})}function Fe({draw:e}){return t(_,{children:e(o(K))})}function ye(){return o(f)??null}function fe({contained:e,framedClass:n,fillClass:M,columnClass:w,style:F,tabLabel:Q,pad:p,border:a,outerAttrs:y,box:S=!1,edge:Y=!1,outerStyle:h,outerClass:I,bleed:v=!1,siteSide:x=!1,part:L,children:T}){const Z=o(m),N=ce(),C=N?` ${le(x?"site":"box").onceFrame}`:"",$=o(A),l=ue(e,Z),i=l&&!$,c=ne(),j=!!(a&&i),d=j?I:X(I??"",c.className)||void 0,O=j||!c.className?y:{...y,...c.attrs},s=p?oe(p,i):null,H=s&&N?{root:s.root?{...s.root,className:z(s.root.className,!0)}:null,outer:s.outer?{...s.outer,className:z(s.outer.className,!0)}:null}:s,g=H?.root??null,B=a&&!i?a:null,G=S&&!v?N?`${q} ${ie(x?"site":"box")}`:q:null,P=[i?`${n}${C}`:M,i?G:null,g?.className,B?se:null].filter(Boolean).join(" "),D=pe(v&&i,g||B?{...F,...g?.style,...B}:F),b=o(f),ee=o(J),te=S&&Y&&b===void 0?{gutter:l,...p?{pad:p.values}:{},beyond:l&&$?ae(ee):"0px",...x&&l?{site:!0}:{}}:null,k=S?t(E.Provider,{value:!0,children:t(f.Provider,{value:te,children:T})}):T,R=l?t(m.Provider,{value:!0,children:k}):k,r=H?.outer??null,V=O&&Object.keys(O).length>0?O:null,W=t("div",{...r?null:V,className:!r&&d?P?`${P} ${d}`:d:P,style:r||!h?D:{...D,...h},"data-tab-label":Q,...r?null:L,children:$?t(A.Provider,{value:!1,children:l&&!v?t("div",{className:G?`${w}${C} ${G}`:`${w}${C}`,children:R}):R}):R}),U=r?t("div",{...V,className:d?`${r.className} ${d}`:r.className,style:h?{...r.style,...h}:r.style,...L,children:W}):W;return c.scope(a&&i?t("div",{className:X(re,c.className),style:{display:"contents",...a},...c.attrs,children:U}):U)}function pe(e,n){return e?{...n,paddingLeft:0,paddingRight:0}:n}export{Re as GroundStopsAt,Ge as InsideSiteColumn,_e as NestedBoxChoice,Ae as NotASectionEdge,Fe as SectionGroupChoice,we as SectionGroupWidthsProvider,Ee as SectionRootChoice,Pe as SplitBandAndColumn,fe as default,de as useInsideBox,Be as useInsideSiteGutter,ye as useSectionEdge,me as useSectionRoot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as t,jsx as o}from"react/jsx-runtime";import{useMemo as r}from"react";import{useSiteRootProps as i}from"./SiteRootProps.js";import{siteOfficesOf as s}from"../../format/lib/content/site-offices.js";function f(){const e=i();return r(()=>s(e),[e])}function p({children:e}){return o(t,{children:e(f())})}export{p as SiteOffices};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export declare function SiteRootPropsProvider({ rootProps, children }: {
|
|
3
|
+
rootProps?: unknown;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export declare function useSiteRootProps(): Readonly<Record<string, unknown>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as e}from"react/jsx-runtime";import{createContext as c,Fragment as S,useContext as p}from"react";import{SITE_CSS_SCOPE_ATTR as u,SITE_CSS_SCOPE_ID as l,siteCssOf as m}from"../../format/lib/content/site-css.js";import{ScopedCssStyle as C}from"../lib/document/passes/section-custom-css.js";const n=c(null);function d({rootProps:t,children:i}){const o=t&&typeof t=="object"?t:null,r=m(o),s=e(S,{children:i},"page");return e(n.Provider,{value:o,children:r?[e(C,{css:r,id:l,attr:u},"css"),s]:s})}function P(){return p(n)}export{d as SiteRootPropsProvider,P as useSiteRootProps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{HideTaker as x}from"./ViewHideRoot.js";import{specStripScaffold as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{HideTaker as x}from"./ViewHideRoot.js";import{specStripScaffold as u}from"../../format/lib/document/blocks/general/SpecStrip/meta.js";import{PY_CLASS as m,SECTION_PAD_KEYS as g,framePadAttrs as h,padValuesOf as w,tierFramesOf as S}from"../lib/content/section-padding.js";import{SPEC_PAD as a}from"../../format/lib/sections/strip-shape.js";import{withSideOnce as v}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as b}from"./SideSpaceOnce.js";const C=s=>h({values:w(s,g,!0),frame:S(a),drawsFrame:!0,edge:!0},!0).root;function N({cells:s,fill:p="dark",editing:f=!1,pad:e}){const d=b(),i=(s??[]).filter(t=>(t?.text??"").trim()),n=i.length>0?i:f?u():[];if(n.length===0)return null;const l=p!=="none",o=r("div",{className:v(["mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-wrap items-baseline justify-between gap-x-8 gap-y-1 px-[var(--sf-site-gutter,40px)]",e?null:m.all[a.top],"text-[length:var(--size-label,12px)] uppercase tracking-[0.1em] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",e?e.className:m.edge[a.topPhone]].filter(Boolean).join(" "),d),style:e&&Object.keys(e.style).length?e.style:void 0,...e?.attrs,children:n.map((t,c)=>r("span",{className:l?t.tone==="muted"?"text-plate-band-fg-dim":"text-plate-band-fg":t.tone==="muted"?"text-fg-dim":"text-fg",children:t.text},c))});return r(x,{as:"section",className:"w-full",children:l?r("div",{className:"bg-plate-band",children:o}):r("div",{className:"border-t border-line",children:o})})}export{N as default,C as specPad};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as D,alignViewClasses as R,BLOCK_ALIGN_BOX_WORD as S,BLOCK_ALIGN_TEXT as x}from"../../format/lib/content/block-align.js";import{BOX_ALIGN_CLASS as T}from"../../format/lib/content/box-layout.js";import{SiteLink as $}from"../lib/site-runtime.js";import Z from"./Btn.js";import{resolveImageTreatment as W}from"../../format/lib/content/image-treatment.js";import E from"./Placeholder.js";import{useSitePhotography as Y}from"./SitePhotographyContext.js";import q from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as J,splitParagraphs as Q}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as B}from"../../format/lib/content/ink.js";import{scrim as ee}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as te}from"../../format/lib/content/section-min-height.js";import{HALF_SIZES as O}from"../../format/lib/sized-image.js";import{withSideOnce as ie}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as re}from"./SideSpaceOnce.js";const r={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},I={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function ae({imageLabel:f,imageSrc:v,imageTint:h=.4,imageObjectPosition:z,eyebrow:b,title:g,body:w,cta:c,reverse:n=!1,uppercase:C=!1,textAlign:m="left",textAlignTablet:u,textAlignPhone:_,textBgSrc:p,textBgLabel:A,textBgTint:y=.6,textBgObjectPosition:M,featureBar:a,imageButton:l,grayscale:P,pictureHover:X,fillHeight:G=!1}){const U=re(),N=W(P,Y(),X),L={left:{items:"",text:x.left,cta:"self-start"},center:{items:T[S.center],text:x.center,cta:"self-center"},right:{items:T[S.right],text:x.right,cta:"self-end"}},d=L[m]??L.left,j={left:{items:"view-tablet:max-view-desktop:items-stretch",cta:"view-tablet:max-view-desktop:self-start"},center:{items:"view-tablet:max-view-desktop:items-center",cta:"view-tablet:max-view-desktop:self-center"},right:{items:"view-tablet:max-view-desktop:items-end",cta:"view-tablet:max-view-desktop:self-end"}},k={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},t=D(m,u,_),o={text:R("text",m,u,_,{atSectionLine:!0}),items:[t.tablet&&j[t.tablet].items,t.phone&&k[t.phone].items].filter(Boolean).join(" "),cta:[t.tablet&&j[t.tablet].cta,t.phone&&k[t.phone].cta].filter(Boolean).join(" ")},F=n?"right":"left",H=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:i("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...G?[te]:[]].join(" "),children:[i("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(E,{label:f,src:v,objectPosition:z,treatment:N,sizes:O}),v&&h>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${h})`}}),(a||l)&&i("div",{className:ie(`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${I.buttons[F]}`,U),children:[a&&i($,{newTab:"auto",href:a.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:ee(.45)},children:[e("span",{children:s(a.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:s(a.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:s(a.cta??"Shop now")})]}),l&&i($,{newTab:"auto",href:l.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${r.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${r.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:s(l.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),i("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[p&&i("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(E,{label:A??f,src:p,objectPosition:M,treatment:N,sizes:O}),y>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${y})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${I.words[H]}`,style:p?B:void 0,children:i("div",{className:["flex flex-1 flex-col justify-center gap-6",d.items,d.text,o.items,o.text].filter(Boolean).join(" "),children:[b&&e(q,{text:b,size:14}),g&&e("h2",{className:[`font-heading2 ${r.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${r.headingMediumUpTo800} max-view-wide:leading-[1]`,C?"uppercase":""].join(" "),children:J(g,!1)}),w&&Q(w).map((K,V)=>e("p",{className:[`max-w-[520px] ${r.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(K)},V)),c.text&&e("div",{className:`mt-2 ${d.cta}${o.cta?` ${o.cta}`:""}`,children:e(Z,{href:c.href,variant:"primary",children:s(c.text)})})]})})]})]})})}export{ae as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
interface StatItem {
|
|
2
3
|
value: string;
|
|
3
4
|
label: string;
|
|
@@ -9,6 +10,7 @@ interface StatsProps {
|
|
|
9
10
|
columns?: 2 | 3 | 4;
|
|
10
11
|
background?: string;
|
|
11
12
|
editing?: boolean;
|
|
13
|
+
pad?: RootPadAttrs | null;
|
|
12
14
|
}
|
|
13
|
-
export default function Stats({ items, contained, heading, columns, background, editing, }: StatsProps): import("react").JSX.Element;
|
|
15
|
+
export default function Stats({ items, contained, heading, columns, background, editing, pad, }: StatsProps): import("react").JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as s}from"react/jsx-runtime";import{withRootPad as g}from"../lib/content/section-own-pads.js";import c from"./BlockFrame.js";import h from"./CountUpText.js";import{renderGold as r}from"./goldPhrases.js";const i={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",label:"text-[length:var(--size-label,12px)]"},v="grid grid-cols-4 gap-8 max-view-wide:grid-cols-2",w={2:"grid grid-cols-2 gap-8",3:"grid grid-cols-3 gap-8 max-view-wide:grid-cols-2",4:"grid grid-cols-4 gap-8 max-view-wide:grid-cols-2"};function b({items:p,contained:t,heading:d,columns:l,background:a,editing:x,pad:o}){const f=l===void 0?v:w[l],m=e("div",{className:f,children:(p??[]).map((n,u)=>s("div",{className:"border-t border-line pt-5",children:[e("div",{className:`font-heading2 ${i.headingMedium} font-medium leading-none tracking-[-0.03em] text-fg ${i.headingMediumUpTo800}`,children:x?r(n.value):e(h,{value:n.value})}),e("div",{className:`mt-2 font-mono ${i.label} uppercase tracking-[0.2em] text-fg-dim`,children:r(n.label)})]},u))});return d===void 0&&a===void 0?e(c,{contained:t,...g("py-12",o),children:m}):e(c,{contained:t,...g("py-12",o),children:s("div",{style:a?{backgroundColor:a}:void 0,children:[d?e("div",{className:`mb-6 font-mono ${i.label} uppercase tracking-[0.2em] text-fg-dim`,children:r(d)}):null,m]})})}export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsxs as t,jsx as a,Fragment as
|
|
1
|
+
"use client";import{jsxs as t,jsx as a,Fragment as w}from"react/jsx-runtime";import{bandPadAttrs as C}from"../lib/content/section-padding.js";import{innerPaddingFallback as E}from"../lib/document/passes/section-padding.js";import{HideTaker as _}from"./ViewHideRoot.js";import{EDITORIAL_COLUMN as j,withSideOnce as b}from"../../format/lib/content/page-width.js";import O from"./EditorialSectionHead.js";import{renderGold as v,renderHeadline as T}from"./goldPhrases.js";import{useCountUp as z}from"./useCountUp.js";import{say as N}from"../../format/lib/editor-words.js";import{useSideSpaceOnce as A}from"./SideSpaceOnce.js";const x={body:"text-[length:var(--size-body,16px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},S="font-normal italic text-accent";function I({value:f,prefix:c,suffix:n,supSuffix:d,emphasizeAll:r,label:l,sub:i}){const o=(f??"").trim(),p=/^\d+$/.test(o),{ref:u,value:g}=z(p?parseInt(o,10):0),s=p?String(g):o,m=c??"";return t("div",{className:"flex min-h-[240px] flex-col gap-3 bg-bg px-8 py-12",children:[t("div",{ref:u,className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(56px,7vw,96px)),var(--sf-heading-max,9999px))] font-medium leading-[0.9] tracking-[-0.04em] tabular-nums",children:[r?t("em",{className:S,children:[m,s]}):t(w,{children:[m,s,n?a("em",{className:S,children:n}):null]}),d?a("sup",{className:`ml-8 inline-block pt-[18px] align-top font-mono ${x.labelLarge} leading-none tracking-[0.18em] text-accent`,children:d}):null]}),(l||i)&&t("div",{className:`mt-auto font-mono ${x.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:[l?a("strong",{className:`mb-1 block font-display ${x.body} font-normal normal-case tracking-[-0.01em] text-fg`,children:l}):null,i?v(i):null]})]})}function L({eyebrow:f,title:c,desc:n,stats:d,background:r,padTop:l,padBottom:i,bandPad:o,editing:p=!1,omitHead:u=!1}={}){const g=A(),s=o??C({padTop:l,padBottom:i},E("StatsParagraph")),m=(d??[]).filter(e=>(e.value??"").trim()!==""||(e.label??"").trim()!==""||(e.sub??"").trim()!==""||(e.suffix??"").trim()!==""||(e.supSuffix??"").trim()!==""),h=m.length>0?m:p?[{value:"0",label:N("Stat"),sub:N("Add your numbers.")}]:[],y=!!(r&&r!=="transparent");return a(_,{as:"section",className:b(["border-b border-line",s.className].filter(Boolean).join(" "),g),style:{...s.style,...y?{backgroundColor:r}:{}},children:t("div",{className:b(j,g),children:[u?null:a(O,{num:f,title:c?T(c):void 0,desc:n?v(n):void 0}),h.length>0&&a("div",{className:"sf-card grid grid-cols-4 gap-[2px] border border-line bg-line max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1",children:h.map((e,k)=>a(I,{...e},k))})]})})}export{L as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SectionEyebrowLook } from "../../format/lib/sections/section-eyebrow-look.js";
|
|
2
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
2
3
|
export interface Testimonial {
|
|
3
4
|
quote?: string;
|
|
4
5
|
name?: string;
|
|
@@ -12,5 +13,6 @@ export interface TestimonialsProps {
|
|
|
12
13
|
columns?: number;
|
|
13
14
|
omitHead?: boolean;
|
|
14
15
|
editing?: boolean;
|
|
16
|
+
pad?: RootPadAttrs | null;
|
|
15
17
|
}
|
|
16
|
-
export default function Testimonials({ look, eyebrow, title, items, columns, omitHead, editing, }?: TestimonialsProps): import("react").JSX.Element | null;
|
|
18
|
+
export default function Testimonials({ look, eyebrow, title, items, columns, omitHead, editing, pad, }?: TestimonialsProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as v,jsxs as t}from"react/jsx-runtime";import{HideTaker as N}from"./ViewHideRoot.js";import M from"./SectionEyebrow.js";import{renderGold as w,renderHeadline as y,splitParagraphs as S}from"./goldPhrases.js";import{say as z}from"../../format/lib/editor-words.js";import{withSideOnce as _}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as k}from"./SideSpaceOnce.js";import{withRootPad as E}from"../lib/content/section-own-pads.js";const a={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,12px)]",body:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,16px)]",headingMedium2:"text-[length:var(--size-headingMedium,46px)]"},T="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",$="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-0 pb-[84px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]";function O({look:l,eyebrow:r,title:m,items:p,columns:x,omitHead:s=!1,editing:d=!1,pad:c}={}){const g=k(),h=Math.min(3,Math.max(1,x??3)),n=(p??[]).filter(i=>d||(i.quote??"").trim()),f=!!(r??"").trim()||!!(m??"").trim();return!d&&!f&&n.length===0?null:e(N,{as:"section",className:"relative z-[2] border-t border-line bg-surface",children:t("div",{...E(_(s?$:T,g),c),children:[s?null:t(v,{children:[(r??"").trim()&&e(M,{text:r??"",look:l,className:"mb-4 block"}),(m??"").trim()&&e("h2",{className:`mb-11 font-heading2 ${a.headingMedium1} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${a.headingMediumUpTo800}`,children:y(m??"",!1)})]}),n.length>0&&e("div",{className:"sf-card grid grid-cols-1 gap-px border border-line bg-line min-[700px]:[grid-template-columns:repeat(var(--tm-cols),minmax(0,1fr))]",style:{"--tm-cols":String(h)},children:n.map((i,u)=>t("figure",{className:"flex flex-col gap-5 bg-bg p-9 max-view-wide:p-7",children:[e("span",{"aria-hidden":!0,className:`font-heading2 ${a.headingMedium2} leading-none text-accent`,children:"“"}),e("blockquote",{className:`flex-1 ${a.bodyLarge} leading-[1.6] text-fg-dim`,children:S((i.quote??"").trim()||z("A short customer quote goes here.")).map((b,o)=>e("p",{className:o?"mt-3":"",children:w(b)},o))}),t("figcaption",{className:"border-t border-line pt-[18px]",children:[e("div",{className:`font-display ${a.body} font-medium uppercase tracking-[0.04em] text-fg`,children:(i.name??"").trim()||"Customer name"}),(i.role??"").trim()&&e("div",{className:`mt-1 ${a.bodySmall} text-fg-dim`,children:i.role})]})]},u))})]})})}export{O as default};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TickerSeparator, TickerSize } from "../../format/lib/sections/ticker-style.js";
|
|
2
2
|
import type { LoopDirection } from "../../format/lib/animation/index.js";
|
|
3
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
3
4
|
export type TickerSectionItem = {
|
|
4
5
|
text?: string;
|
|
5
6
|
};
|
|
@@ -14,6 +15,7 @@ interface Props {
|
|
|
14
15
|
scroll?: LoopDirection;
|
|
15
16
|
join?: string;
|
|
16
17
|
editing?: boolean;
|
|
18
|
+
pad?: RootPadAttrs | null;
|
|
17
19
|
}
|
|
18
|
-
export default function TickerSection({ items, seconds, delay, tone, borders, size, separator, scroll, join, editing, }: Props): import("react").JSX.Element | null;
|
|
20
|
+
export default function TickerSection({ items, seconds, delay, tone, borders, size, separator, scroll, join, editing, pad, }: Props): import("react").JSX.Element | null;
|
|
19
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as r}from"react/jsx-runtime";import{HideTaker as x}from"./ViewHideRoot.js";import
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";import{HideTaker as x}from"./ViewHideRoot.js";import k from"./Ticker.js";import{JoinBox as y}from"./JoinBox.js";import{tickerJoinPinClass as g,tickerJoinSide as j}from"../../format/lib/sections/ticker-join.js";import{say as v}from"../../format/lib/editor-words.js";import{withRootPad as w}from"../lib/content/section-own-pads.js";const B=()=>v("item");function J({items:l,seconds:m,delay:s,tone:c="scrim",borders:d=!0,size:a,separator:p,scroll:f,join:u,editing:b,pad:h}){const o=(l??[]).map(n=>n?.text?.trim()?n.text:b?B():"").filter(Boolean);if(o.length===0)return null;const i=c!=="plain",e=j(u),t=r(x,{...w([e?g(e):"relative z-[2]","py-3.5 max-view-wide:py-3",i?"bg-bg":"",d?"border-y border-line":""].filter(Boolean).join(" "),h),children:r(k,{items:o,seconds:m,delay:s,size:a,separator:p,scroll:f,backdrop:i?"themed-band":"themed-section"})});return e?r(y,{children:t}):t}export{J as default};
|