efficient-web-builder 74.2.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 +19 -0
- package/dist/editor/components/SectionTextPartBridge.d.ts +2 -8
- package/dist/editor/components/SectionTextPartBridge.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/format/lib/document/passes/types.d.ts +3 -2
- package/dist/render/components/Banner.d.ts +3 -1
- package/dist/render/components/Banner.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 +5 -5
- 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/Grid.d.ts +3 -1
- package/dist/render/components/Grid.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/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/PaymentBadges.d.ts +3 -1
- package/dist/render/components/PaymentBadges.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/Stats.d.ts +3 -1
- package/dist/render/components/Stats.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/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/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/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-padding.d.ts +3 -3
- package/dist/render/lib/document/passes/section-padding.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 x}from"react/jsx-runtime";import{HideTaker as
|
|
1
|
+
import{jsx as e,jsxs as x}from"react/jsx-runtime";import{HideTaker as u}from"./ViewHideRoot.js";import{AppChip as v}from"./Logos.js";import{renderGold as f,renderHeadline as w}from"./goldPhrases.js";import{say as N}from"../../format/lib/editor-words.js";import{withRootPad as _}from"../lib/content/section-own-pads.js";import{dealRows as k,INTEGRATION_ROWS as y,rowTurnSeconds as R}from"../../format/lib/sections/integrations-rows.js";const b=(a,t)=>k(a,t).filter(i=>i.length>0),j=({name:a})=>e(v,{alt:a});function q({names:a,reverse:t}){return e("div",{className:"overflow-hidden","aria-hidden":!1,children:e("div",{className:"flex w-max gap-3 pr-3 [animation:sf-marquee_var(--sf-marquee-t)_linear_infinite] motion-reduce:[animation:none]",style:{"--sf-marquee-t":`${R(a.length)}s`,animationDirection:t?"reverse":"normal"},children:[0,1].map(i=>e("div",{className:"flex gap-3","aria-hidden":i===1,children:a.map((n,m)=>e(j,{name:n},m))},i))})})}function T({eyebrow:a,title:t,body:i,apps:n,statValue:m,statLabel:l,note:s,editing:o=!1,pad:h}={}){const d=(n??[]).map(r=>(r.text??"").trim()).filter(r=>o||r).map(r=>r||N("App")),g=!!(a??"").trim()||!!(t??"").trim();if(!o&&!g&&d.length===0)return null;const p=b(d,y);return x(u,{as:"section",..._("relative z-[2] overflow-hidden border-y border-line bg-surface py-[76px]",h),children:[x("div",{className:"mx-auto mb-12 max-w-[860px] px-10 text-center max-[960px]:px-6",children:[(a??"").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:f(a??"")}),(t??"").trim()&&e("h2",{className:"mt-5 font-display text-[40px] font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg max-view-wide:text-[30px]",children:w(t??"",!1)}),(i??"").trim()&&e("p",{className:"mx-auto mt-5 max-w-[60ch] text-[15px] leading-relaxed text-fg/65",children:i})]}),p.length>0&&e("div",{className:"flex flex-col gap-3",children:p.map((r,c)=>e(q,{names:r,reverse:c%2===1},c))}),((m??"").trim()||(s??"").trim())&&x("div",{className:"mx-auto mt-12 max-w-[860px] px-10 text-center max-[960px]:px-6",children:[(m??"").trim()&&e("div",{className:"font-display text-[min(64px,var(--sf-heading-max,9999px))] font-medium uppercase leading-none text-accent max-view-wide:text-[min(46px,var(--sf-heading-max,9999px))]",children:m}),(l??"").trim()&&e("div",{className:"mt-2 font-display text-[18px] font-medium uppercase tracking-[0.06em] text-fg",children:f(l??"")}),(s??"").trim()&&e("p",{className:"mx-auto mt-4 max-w-[52ch] text-[13px] leading-relaxed text-fg/50",children:s})]})]})}export{T 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 KeyFeatureItem {
|
|
3
4
|
label?: string;
|
|
4
5
|
href?: string;
|
|
@@ -10,5 +11,6 @@ export interface KeyFeaturesProps {
|
|
|
10
11
|
items?: KeyFeatureItem[];
|
|
11
12
|
columns?: number;
|
|
12
13
|
editing?: boolean;
|
|
14
|
+
pad?: RootPadAttrs | null;
|
|
13
15
|
}
|
|
14
|
-
export default function KeyFeatures({ look, eyebrow, title, items, columns, editing, }?: KeyFeaturesProps): import("react").JSX.Element | null;
|
|
16
|
+
export default function KeyFeatures({ look, eyebrow, title, items, columns, editing, pad, }?: KeyFeaturesProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as l,Fragment as
|
|
1
|
+
import{jsx as e,jsxs as l,Fragment as v}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{SiteLink as w}from"../lib/site-runtime.js";import{siteLinkDraws as y}from"../../format/lib/content/box-link.js";import{cardColumns as N}from"../../format/lib/content/card-columns.js";import S from"./SectionEyebrow.js";import{renderGold as M,renderHeadline as T}from"./goldPhrases.js";import{say as j}from"../../format/lib/editor-words.js";import{withSideOnce as z}from"../../format/lib/content/page-width.js";import{withRootPad as F}from"../lib/content/section-own-pads.js";import{useSideSpaceOnce as _}from"./SideSpaceOnce.js";const d={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))]",body:"text-[length:var(--size-body,17px)]"};function E({look:f,eyebrow:i,title:t,items:x,columns:g,editing:s=!1,pad:h}={}){const u=_(),b=N(g),n=(x??[]).filter(r=>s||(r.label??"").trim()),c=!!(i??"").trim()||!!(t??"").trim();return!s&&!c&&n.length===0?null:e(k,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:l("div",{...F(z("mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] py-[76px] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",u),h),children:[c&&l("div",{className:"mb-11 flex flex-wrap items-baseline gap-5 max-view-wide:mb-8",children:[(i??"").trim()&&e(S,{text:i??"",look:f}),(t??"").trim()&&e("h2",{className:`font-heading2 ${d.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${d.headingMediumUpTo800}`,children:T(t??"",!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(--kf-cols),minmax(0,1fr))]",style:{"--kf-cols":String(b)},children:n.map((r,m)=>{const o=l(v,{children:[e("span",{"aria-hidden":!0,className:"h-[9px] w-[9px] flex-shrink-0 rotate-45 bg-accent"}),e("span",{className:`font-display ${d.body} font-medium uppercase tracking-[0.06em] text-fg transition-colors group-hover/kf:text-accent`,children:M((r.label??"").trim()||j("Feature"))})]}),a=(r.href??"").trim();if(a&&!s){const p="group/kf flex items-center gap-4 bg-bg px-7 py-[30px] transition-colors hover:bg-surface";return y(a)?e(w,{newTab:"auto",href:a,className:p,children:o},m):e("a",{href:a,className:p,children:o},m)}return e("div",{className:"flex items-center gap-4 bg-bg px-7 py-[30px]",children:o},m)})})]})})}export{E as default};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import { type LogoLook } from "../../format/lib/sections/logo-look.js";
|
|
4
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
4
5
|
interface LogoItem {
|
|
5
6
|
src: string;
|
|
6
7
|
alt: string;
|
|
@@ -21,8 +22,9 @@ interface LogosProps {
|
|
|
21
22
|
labelledBy?: string;
|
|
22
23
|
omitHead?: boolean;
|
|
23
24
|
cards?: ReactNode;
|
|
25
|
+
pad?: RootPadAttrs | null;
|
|
24
26
|
}
|
|
25
|
-
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, align, alignTablet, alignPhone, labelledBy, }: LogosProps): import("react").JSX.Element;
|
|
27
|
+
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, align, alignTablet, alignPhone, labelledBy, pad, }: LogosProps): import("react").JSX.Element;
|
|
26
28
|
export declare const CARD_WORDS_CLASS = "font-mono text-[12px] uppercase tracking-[0.18em]";
|
|
27
29
|
export declare function AppChip({ src, alt }: {
|
|
28
30
|
src?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,jsxs as f,Fragment as I}from"react/jsx-runtime";import{PagePicture as u}from"../lib/first-screen.js";import{BrandNameMark as Y}from"efficient-shell/icons/brands";import{PaymentMark as y,paymentMarkItems as Z}from"efficient-shell/icons/payment";import U from"./BlockFrame.js";import{MarkZoom as h}from"./PictureZoom.js";import{renderChrome as J,renderGold as _,renderHeadline as V}from"./goldPhrases.js";import{LogoWallProvider as R}from"./LogoWallContext.js";import{useBoxCell as X}from"./InBoxContext.js";import{EMPTY_ELSE_CLASS as q,EMPTY_HIDES_CLASS as Q,EmptyHidesStyle as ee}from"../lib/content/empty-hides.js";import{media as x}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as g}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as te}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as P}from"../lib/sections/payment-rows.js";import{alignViewClasses as ne,BLOCK_ALIGN_JUSTIFY as re,blockAlignOf as ae}from"../../format/lib/content/block-align.js";import{FOOTER_MARK_SIZES as W}from"../../format/lib/document/box-footer.js";import{say as le}from"../../format/lib/editor-words.js";import{withRootPad as se}from"../lib/content/section-own-pads.js";const w={label:"text-[length:var(--size-label,13px)]",chip:"text-[length:var(--size-label,14px)]"},p="sf-logo-wall",ie="sf-logo-items",oe="flex flex-wrap items-center",ce="flex flex-nowrap items-center",me=(t,e,r,a=!1)=>{const o=ae(t)??"center";return[a?ce:oe,re[o],ne("justify",o,e,r,{atSectionLine:!0})].filter(Boolean).join(" ")},O="plain",$={plain:{x:3.5,y:2},cards:{x:.75,y:.75},marks:{x:.75,y:.5},chips:{x:.75,y:.75}},N=t=>({columnGap:`${$[t].x}rem`,rowGap:`${$[t].y}rem`}),L=(t,e)=>`calc((100% - ${(t-1)*$[e].x}rem) / ${t})`;function de({items:t,contained:e,heading:r,columns:a,grayscale:o,logoHeight:c,bandPadding:l,logos:i,look:s=te,omitHead:m=!1,cards:d,align:T,alignTablet:G,alignPhone:D,labelledBy:F,pad:C}){const S=me(T,G,D,X()?.loops===!0),b=s==="marks",K=a!=null?{flex:`0 0 ${L(a,O)}`}:void 0,E=!m;return f(U,{contained:e,fillWidth:b&&m?"w-auto max-w-full":void 0,...se(E&&l==null?"py-10":"",C,C||!E||l==null?void 0:{paddingTop:`${l}px`,paddingBottom:`${l}px`}),children:[!m&&r!=null&&r!==""?n("h2",{className:`mb-8 text-center font-mono ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:V(r,!1)}):null,f(pe,{listed:b,labelledBy:F,children:[d!==void 0?f(R,{value:{look:s,logoHeight:c,grayscale:o},children:[a!=null?n("style",{children:`.${p}-c${a}>*{flex:0 0 ${L(a,s)}}`}):null,n("div",{className:[p,a!=null?`${p}-c${a}`:"",S].filter(Boolean).join(" "),style:N(s),children:d})]}):i?f(R,{value:{look:s,logoHeight:c,grayscale:o},children:[n(ee,{}),a!=null?n("style",{children:`.${p}-c${a}>*{flex:0 0 ${L(a,s)}}`}):null,n(i,{className:[p,Q,a!=null?`${p}-c${a}`:"",S].filter(Boolean).join(" "),style:N(s),minEmptyHeight:80})]}):null,d!==void 0?null:n("div",{className:`${ie} ${q} ${S}`,style:N(O),children:(t??[]).map((M,H)=>n("div",{className:"text-center",style:K,children:n($e,{src:M.src,alt:M.alt,look:O,logoHeight:c,grayscale:o})},H))})]})]})}function pe({listed:t,labelledBy:e,children:r}){return t?n("div",{className:"contents",role:"list",...e?{"aria-labelledby":e}:{"aria-label":le("Ways to pay")},children:r}):n(I,{children:r})}const k="font-mono text-[12px] uppercase tracking-[0.18em]";function z(t){const e=Z({name:g(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?[]:e}function fe({item:t,children:e}){return t.kind==="brand"?n(h,{children:e}):n(I,{children:e})}function ue(t){return t.length?n("span",{className:"flex items-center gap-3",children:t.map((e,r)=>n(y,{item:e,size:20,className:k},r))}):null}const he="shrink-0 gap-2 whitespace-nowrap rounded bg-bg px-5",xe=`${w.chip} font-medium tracking-wide text-fg-dim`,Se="sf-logo-chip flex h-10 items-center border border-line",ye={lead:"sf-card",tail:"bg-surface px-4"},B={lead:"",tail:he};function j({look:t,children:e}){const r=[t.lead,Se,t.tail].filter(Boolean).join(" ");return t===B?n("div",{className:r,"data-sf-chip":"",children:e}):n("div",{className:r,children:e})}function _e({src:t,alt:e}){return f(j,{look:B,children:[t?n(u,{...A(x(t)),alt:"",className:"h-4 w-auto"}):e?n(Y,{name:e,size:16,className:"shrink-0 text-fg"}):null,e?n("span",{className:xe,children:_(e)}):null]})}const ge=W.sm.mark,we=Object.values(W),Oe=t=>we.reduce((e,r)=>Math.abs(r.mark-t)<Math.abs(e.mark-t)?r:e).words;function $e({src:t,alt:e,look:r,logoHeight:a,grayscale:o,kind:c}){if(r==="marks"){const l=a??ge,i=!t&&c!==void 0?P({label:e,kind:c}):null,s=i?[i]:!t&&e?z(e):[];return n("span",{role:"listitem",className:"flex items-center gap-3",style:{fontSize:`${Oe(l)}px`},children:s.length?s.map((m,d)=>n(fe,{item:m,children:n(y,{item:m,size:l})},d)):t?n(h,{children:n(u,{...A(x(t)),alt:g(e||""),className:"w-auto",style:{height:`${l}px`}})}):e&&n("span",{children:_(e)})})}if(r==="chips")return n(_e,{src:t,alt:e});if(r==="cards"){const l=!t&&c!==void 0?P({label:e,kind:c}):null,i=!l&&!t&&e?z(e):[],s=n(j,{look:ye,children:l?n(y,{item:l,size:20,className:k}):i.length?ue(i):t?n(u,{...A(x(t)),alt:g(e||""),className:o===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&n("span",{className:k,children:_(e)})});return(t?!0:l?l.kind==="brand":i.length>0&&i.every(d=>d.kind==="brand"))?n(h,{children:s}):s}return t?n(h,{children:n(u,{...Ne(x(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",a==null?"h-7":"",o===!1?"":"grayscale"].filter(Boolean).join(" "),style:a==null?void 0:{height:`${a}px`}})}):n("span",{className:`font-mono ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:J(e||"Logo")})}function A(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function Ne(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{_e as AppChip,k as CARD_WORDS_CLASS,$e as LogoWallMark,de as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface LongReadProps {
|
|
2
3
|
omitHead?: boolean;
|
|
3
4
|
headNum?: string;
|
|
@@ -17,5 +18,6 @@ export interface LongReadProps {
|
|
|
17
18
|
metaPublished?: string;
|
|
18
19
|
metaPublishedAt?: string;
|
|
19
20
|
metaReads?: string;
|
|
21
|
+
pad?: RootPadAttrs | null;
|
|
20
22
|
}
|
|
21
|
-
export default function LongRead({ headNum, headTitle, headDesc, category, metaMiddle, readLabel, title, dek, quote, quoteAttribution, ctaText, ctaHref, image, imageLabel, metaPublished, metaPublishedAt, metaReads, omitHead, }: LongReadProps): import("react").JSX.Element;
|
|
23
|
+
export default function LongRead({ headNum, headTitle, headDesc, category, metaMiddle, readLabel, title, dek, quote, quoteAttribution, ctaText, ctaHref, image, imageLabel, metaPublished, metaPublishedAt, metaReads, omitHead, pad, }: LongReadProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as B,withSideOnce as F}from"../../format/lib/content/page-width.js";import{HideTaker as I}from"./ViewHideRoot.js";import{Fragment as N}from"react";import{SiteLink as T}from"../lib/site-runtime.js";import C from"./PostDate.js";import{stripMarkup as D}from"../../format/lib/markup.js";import H from"./EditorialSectionHead.js";import M from"./Placeholder.js";import R from"./SectionEyebrow.js";import{renderGold as n,renderHeadline as S}from"./goldPhrases.js";import{scrim as z}from"../../format/lib/content/scrim.js";import{withRootPad as G}from"../lib/content/section-own-pads.js";import{useSideSpaceOnce as U}from"./SideSpaceOnce.js";const a={bodySmall:"text-[length:var(--size-body,14px)]",body:"text-[length:var(--size-body,17px)]",bodyLarge:"text-[length:var(--size-body,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function X({headNum:L,headTitle:f,headDesc:x,category:g,metaMiddle:b,readLabel:h,title:o,dek:v,quote:i,quoteAttribution:s,ctaText:u,ctaHref:$,image:O,imageLabel:k,metaPublished:d,metaPublishedAt:l,metaReads:c,omitHead:y=!1,pad:_}){const j=U(),w=[g?e("span",{className:"text-accent",children:n(g)}):null,b?e("span",{children:n(b)}):null,h?e("span",{children:n(h)}):null].filter(Boolean),E=!!l||!!d||!!c;return e(I,{as:"section",...G(y?"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",_),children:r("div",{className:F(B,j),children:[y?null:e(H,{num:L,title:f?S(f,!0):void 0,desc:x?n(x):void 0}),r("article",{className:"sf-card grid min-h-[640px] grid-cols-[1fr_1.2fr] border border-line max-view-desktop:grid-cols-1",children:[r("div",{className:"flex flex-col justify-center gap-7 border-r border-line bg-surface px-14 py-16 max-view-desktop:border-r-0 max-view-desktop:border-b max-view-desktop:px-7 max-view-desktop:py-12",children:[w.length>0&&e("div",{className:`flex items-center gap-3.5 font-mono ${a.labelSmall} uppercase tracking-[0.3em] text-fg-dim`,children:w.map((p,t)=>r(N,{children:[t>0&&e("span",{className:"opacity-40",children:"·"}),p]},t))}),o&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,4.2vw,68px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.035em]",children:S(o,!0)}),v&&e("p",{className:`font-serif ${a.bodyLarge} italic leading-[1.45] text-fg`,children:n(v)}),(i||s)&&r("blockquote",{className:`max-w-[520px] border-l-2 border-accent py-1.5 pl-[22px] font-serif ${a.body} italic leading-[1.6] text-fg-dim`,children:[i&&r(m,{children:["“",n(i),"”"]}),s&&e("strong",{className:`mt-2.5 block font-display ${a.bodySmall} font-normal not-italic uppercase tracking-[0.22em] text-fg`,children:n(s)})]}),u&&r(T,{newTab:"auto",href:$||"#",className:`inline-flex items-center gap-3.5 self-start border border-btn px-7 py-4 font-mono ${a.labelLarge} uppercase tracking-[0.3em] text-btn transition-colors hover:bg-btn hover:text-btn-ink`,children:[n(u)," ",e("span",{children:"→"})]})]}),r("div",{className:"relative overflow-hidden bg-surface-2 max-view-desktop:aspect-[4/3]",children:[e(M,{label:"long-read",src:O||void 0,alt:D(o||"Long read"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${z(.55)} 0%, transparent 25%, transparent 60%, ${z(.7)} 100%)`}}),k&&e(R,{text:k,size:12,className:"absolute right-6 top-6 z-[2]"}),E&&e("div",{className:`absolute bottom-6 left-6 z-[2] font-mono ${a.labelSmall} uppercase leading-[1.8] tracking-[0.22em] text-overlay-fg`,children:[l||d?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Published"})," ",l?e(C,{at:l}):n(d)]}):null,c?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Reads in"})," ",n(c)]}):null].filter(Boolean).map((p,t)=>r(N,{children:[t>0&&e("br",{}),p]},t))})]})]})]})})}export{X as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export interface MastheadMetaLine {
|
|
2
3
|
lead?: string;
|
|
3
4
|
rest?: string;
|
|
@@ -12,5 +13,6 @@ export interface MastheadProps {
|
|
|
12
13
|
}[];
|
|
13
14
|
issueTotal?: string;
|
|
14
15
|
editing?: boolean;
|
|
16
|
+
pad?: RootPadAttrs | null;
|
|
15
17
|
}
|
|
16
|
-
export default function Masthead({ eyebrow, issueMeta, lead, issueHeading, issueList, issueTotal, }: MastheadProps): import("react").JSX.Element;
|
|
18
|
+
export default function Masthead({ eyebrow, issueMeta, lead, issueHeading, issueList, issueTotal, pad, }: MastheadProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,Fragment as
|
|
1
|
+
import{jsx as t,Fragment as w,jsxs as a}from"react/jsx-runtime";import{EDITORIAL_COLUMN as N,withSideOnce as S}from"../../format/lib/content/page-width.js";import{withRootPad as u}from"../lib/content/section-own-pads.js";import{HideTaker as _}from"./ViewHideRoot.js";import j from"./SectionEyebrow.js";import{renderGold as i,renderHeadline as O,splitParagraphs as y}from"./goldPhrases.js";import{useSideSpaceOnce as z}from"./SideSpaceOnce.js";const s={body:"text-[length:var(--size-body,18px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function E({eyebrow:l,issueMeta:x,lead:g,issueHeading:n,issueList:h,issueTotal:o,pad:f}){const b=z(),d=(x??[]).filter(e=>(e?.lead??"").trim()||(e?.rest??"").trim()),c=(h??[]).map(e=>e?.text??"").filter(e=>e.trim()),m=y(g??""),v=!!l||d.length>0,p=!!n||c.length>0||!!o,k=m.length>0||p;return t(_,{as:"section",...u("border-b border-line pt-20 pb-10 max-view-desktop:pt-[60px] max-view-desktop:pb-8",f),children:a("div",{className:S(N,b),children:[v&&a("div",{className:"flex items-end justify-between gap-[60px] pb-8 max-view-desktop:flex-col max-view-desktop:items-start max-view-desktop:gap-4",children:[l&&t(j,{text:l,size:14,className:"pb-3.5"}),d.length>0&&t("div",{className:`pb-3.5 text-right font-mono ${s.label} uppercase leading-[1.8] tracking-[0.18em] text-fg-dim max-view-desktop:text-left`,children:d.map((e,r)=>a("div",{children:[t("strong",{className:"font-normal text-fg",children:i(e.lead??"")}),e.rest?.trim()?a(w,{children:[" ",i(e.rest)]}):null]},r))})]}),k&&a("div",{className:"grid grid-cols-[1fr_auto] items-start gap-[60px] border-t border-line pt-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-4",children:[m.length>0&&t("div",{className:"max-w-[720px]",children:m.map((e,r)=>t("p",{className:`font-heading3 ${s.headingSmall} leading-[1.5] tracking-[-0.005em] text-fg [&:not(:first-child)]:mt-4`,children:i(e,!0)},r))}),p&&a("div",{className:`min-w-[240px] text-right font-mono ${s.label} uppercase leading-[1.9] tracking-[0.22em] text-fg-dim max-view-desktop:text-left`,children:[n&&t("strong",{className:`mb-1.5 block font-display ${s.body} font-normal tracking-[-0.01em] normal-case text-fg`,children:O(n,!1)}),c.map((e,r)=>a("span",{children:[i(e),t("br",{})]},r)),o&&t("span",{className:"text-accent",children:i(o)})]})]})]})})}export{E as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RootPadAttrs } from "../lib/content/section-padding.js";
|
|
1
2
|
export type MockupVariant = "spec-card" | "fitment" | "portal" | "kanban" | "claims" | "browser" | "terminal";
|
|
2
3
|
export interface MockupPill {
|
|
3
4
|
label?: string;
|
|
@@ -56,5 +57,6 @@ export interface MockupSectionProps {
|
|
|
56
57
|
align?: "right" | "left";
|
|
57
58
|
editing?: boolean;
|
|
58
59
|
omitHead?: boolean;
|
|
60
|
+
pad?: RootPadAttrs | null;
|
|
59
61
|
}
|
|
60
|
-
export default function MockupSection({ eyebrow, title, body, variant, cardHeader, badge, cardTitle, cardSubtitle, pills, tiles, rows, button, footnote, col1Title, col1Cards, col2Title, col2Cards, col3Title, col3Cards, col4Title, col4Cards, barsHeading, bars, termLines, urlText, heroTitle, heroButton, products, align, editing, omitHead, }?: MockupSectionProps): import("react").JSX.Element | null;
|
|
62
|
+
export default function MockupSection({ eyebrow, title, body, variant, cardHeader, badge, cardTitle, cardSubtitle, pills, tiles, rows, button, footnote, col1Title, col1Cards, col2Title, col2Cards, col3Title, col3Cards, col4Title, col4Cards, barsHeading, bars, termLines, urlText, heroTitle, heroButton, products, align, editing, omitHead, pad, }?: MockupSectionProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as I}from"react/jsx-runtime";import{HideTaker as ne}from"./ViewHideRoot.js";import{renderGold as se,renderHeadline as ce}from"./goldPhrases.js";import{withSideOnce as ie}from"../../format/lib/content/page-width.js";import{useSideSpaceOnce as de}from"./SideSpaceOnce.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 oe({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 me({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 pe({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 xe({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 he({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 fe({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:U,col2Title:P,col2Cards:z,col3Title:X,col3Cards:Z,col4Title:q,col4Cards:J,barsHeading:Q,bars:V,termLines:Y,urlText:H,heroTitle:A,heroButton:ee,products:te,align:R="right",editing:p=!1,omitHead:$=!1}={}){const le=de(),y=(K??[]).filter(l=>p||(l.value??"").trim()),v=(S??[]).filter(l=>p||(l.label??"").trim()),N=(G??[]).filter(l=>p||(l.lead??"").trim()),k=[[L,U],[P,z],[X,Z],[q,J]].map(([l,h])=>({title:(l??"").trim(),cards:(h??[]).map(re=>(re.text??"").trim()).filter(Boolean)})).filter(l=>l.title||l.cards.length>0),w=(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),ae=!$&&(!!(n??"").trim()||!!(t??"").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&&!ae&&!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(xe,{header:s??"",lines:T}):a==="browser"?e(he,{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: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(oe,{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(me,{columns:k}),a==="claims"&&w.length>0&&e(pe,{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:se(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:ce(t??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(ne,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:e("div",{className:ie("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))]",le),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{fe 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,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,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};
|
|
@@ -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,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};
|