efficient-web-builder 58.0.0 → 59.1.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 +40 -0
- package/dist/editor/components/SwitchToBoxFooter.js +1 -1
- package/dist/editor/components/useCardContentSwitchPass.d.ts +1 -0
- package/dist/editor/components/useCardContentSwitchPass.js +1 -0
- package/dist/editor/components/usePinnedChromeSeed.js +1 -1
- package/dist/editor/lib/document/ColourControl.js +1 -1
- package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Countdown/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
- package/dist/editor/lib/document/box-footer-rows.d.ts +3 -0
- package/dist/editor/lib/document/box-footer-rows.js +1 -0
- package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/choice-pictures.d.ts +2 -1
- package/dist/editor/lib/document/choice-pictures.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +12 -6
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-align.d.ts +1 -0
- package/dist/format/lib/content/block-align.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/box-background.d.ts +2 -2
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/card-columns.d.ts +1 -0
- package/dist/format/lib/content/card-columns.js +1 -0
- package/dist/format/lib/content/card-place.js +1 -1
- package/dist/format/lib/content/card-state.d.ts +17 -0
- package/dist/format/lib/content/card-state.js +1 -1
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/gallery-layout.d.ts +13 -1
- package/dist/format/lib/content/gallery-layout.js +1 -1
- package/dist/format/lib/content/page-background.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +1 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/section-background.js +1 -1
- package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +17 -0
- package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Chart/meta.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/Chart/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Countdown/meta.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/Countdown/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Mockup/meta.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/Mockup/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/text-part-shapes.json +10 -0
- package/dist/format/lib/document/box-footer.d.ts +13 -2
- package/dist/format/lib/document/box-footer.js +1 -1
- package/dist/format/lib/document/card-content-switch.d.ts +21 -0
- package/dist/format/lib/document/card-content-switch.js +1 -0
- package/dist/format/lib/document/card-row-keys.d.ts +14 -0
- package/dist/format/lib/document/card-row-keys.js +1 -0
- package/dist/format/lib/document/cards-template-on-read.d.ts +1 -1
- package/dist/format/lib/document/cards-template-on-read.js +1 -1
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/neutralization-contracts.js +1 -1
- package/dist/format/lib/document/part-inks.d.ts +5 -2
- package/dist/format/lib/document/part-inks.js +1 -1
- package/dist/format/lib/document/section-catalog.js +2 -10
- package/dist/format/lib/document/seed-parts.d.ts +2 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/document/theme-slots.d.ts +20 -0
- package/dist/format/lib/document/theme-slots.js +1 -0
- package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
- package/dist/format/lib/editor-words-catalogue.js +2 -2
- package/dist/format/lib/sections/logo-look.d.ts +1 -1
- package/dist/format/lib/sections/logo-look.js +1 -1
- package/dist/format/lib/theme.d.ts +1 -0
- package/dist/format/lib/theme.js +4 -4
- package/dist/render/components/Cards.d.ts +2 -1
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/ChartSection.d.ts +2 -1
- package/dist/render/components/ChartSection.js +1 -1
- package/dist/render/components/Countdown.d.ts +2 -1
- package/dist/render/components/Countdown.js +1 -1
- package/dist/render/components/FeaturedCover.d.ts +2 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/Logos.d.ts +5 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/MockupSection.d.ts +2 -1
- package/dist/render/components/MockupSection.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +5 -1
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/lib/content/section-edge.d.ts +7 -0
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/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/Countdown/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/wall-rows.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/Logos/wall-rows.js +1 -0
- package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -1
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +3 -0
- 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-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
- 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-promo.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -0
- 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/head-core-boxes.d.ts +1 -0
- package/dist/render/lib/document/head-core-boxes.js +1 -1
- package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/wall-labels.d.ts +3 -0
- package/dist/render/lib/document/wall-labels.js +1 -0
- package/dist/render/lib/sections/section-to-box.d.ts +1 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +3 -3
- package/dist/editor/lib/document/theme-swatches.d.ts +0 -3
- package/dist/editor/lib/document/theme-swatches.js +0 -1
|
@@ -15,10 +15,14 @@ interface LogosProps {
|
|
|
15
15
|
bandPadding?: number;
|
|
16
16
|
logos?: SlotComponent;
|
|
17
17
|
look?: LogoLook;
|
|
18
|
+
align?: unknown;
|
|
19
|
+
alignTablet?: unknown;
|
|
20
|
+
alignPhone?: unknown;
|
|
21
|
+
labelledBy?: string;
|
|
18
22
|
omitHead?: boolean;
|
|
19
23
|
cards?: ReactNode;
|
|
20
24
|
}
|
|
21
|
-
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, }: LogosProps): import("react").JSX.Element;
|
|
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;
|
|
22
26
|
export declare const CARD_WORDS_CLASS = "font-mono text-[12px] uppercase tracking-[0.18em]";
|
|
23
27
|
export declare function LogoWallMark({ src, alt, look, logoHeight, grayscale, kind, mark, }: {
|
|
24
28
|
src?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,jsxs as d,Fragment as K}from"react/jsx-runtime";import{PagePicture as h}from"../lib/first-screen.js";import{PaymentMark as y,paymentMarkItems as P}from"efficient-shell/icons/payment";import D from"./BlockFrame.js";import{renderChrome as Y,renderGold as A,renderHeadline as Z}from"./goldPhrases.js";import{LogoWallProvider as M}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as U,EMPTY_HIDES_CLASS as J,EmptyHidesStyle as V}from"../lib/content/empty-hides.js";import{media as S}from"../lib/media.js";import{sizedImage as v}from"../../format/lib/sized-image.js";import{stripMarkup as _}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as X}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as W}from"../lib/sections/payment-rows.js";import{alignViewClasses as q,BLOCK_ALIGN_JUSTIFY as H,blockAlignOf as Q}from"../../format/lib/content/block-align.js";import{FOOTER_MARK_SIZES as C}from"../../format/lib/document/box-footer.js";import{say as ee}from"../../format/lib/editor-words.js";const R={label:"text-[length:var(--size-label,13px)]"},f="sf-logo-wall",te="sf-logo-items",ne="flex flex-wrap items-center",re=(t,e,s)=>{const r=Q(t)??"center";return[ne,H[r],q("justify",r,e,s)].filter(Boolean).join(" ")},$="plain",g={plain:{x:3.5,y:2},cards:{x:.75,y:.75},marks:{x:.75,y:.5}},w=t=>({columnGap:`${g[t].x}rem`,rowGap:`${g[t].y}rem`}),E=(t,e)=>`calc((100% - ${(t-1)*g[e].x}rem) / ${t})`;function se({items:t,contained:e,heading:s,columns:r,grayscale:c,logoHeight:o,bandPadding:a,logos:i,look:l=X,omitHead:m=!1,cards:p,align:u,alignTablet:j,alignPhone:k,labelledBy:G}){const x=re(u,j,k),N=l==="marks",B=r!=null?{flex:`0 0 ${E(r,$)}`}:void 0,O=!m;return d(D,{contained:e,fillWidth:N&&m?"w-auto max-w-full":void 0,className:O&&a==null?"py-10":"",style:!O||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!m&&s!=null&&s!==""?n("h2",{className:`mb-8 text-center font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Z(s,!1)}):null,d(le,{listed:N,labelledBy:G,children:[p!==void 0?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${E(r,l)}}`}):null,n("div",{className:[f,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:w(l),children:p})]}):i?d(M,{value:{look:l,logoHeight:o,grayscale:c},children:[n(V,{}),r!=null?n("style",{children:`.${f}-c${r}>*{flex:0 0 ${E(r,l)}}`}):null,n(i,{className:[f,J,r!=null?`${f}-c${r}`:"",x].filter(Boolean).join(" "),style:w(l),minEmptyHeight:80})]}):null,p!==void 0?null:n("div",{className:`${te} ${U} ${x}`,style:w($),children:(t??[]).map((b,F)=>n("div",{className:"text-center",style:B,children:n(ce,{src:b.src,alt:b.alt,look:$,logoHeight:o,grayscale:c})},F))})]})]})}function le({listed:t,labelledBy:e,children:s}){return t?n("div",{className:"contents",role:"list",...e?{"aria-labelledby":e}:{"aria-label":ee("Ways to pay")},children:s}):n(K,{children:s})}const L="font-mono text-[12px] uppercase tracking-[0.18em]";function z(t){const e=P({name:_(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?[]:e}function I(t){const e=z(t);return e.length?n("span",{className:"flex items-center gap-3",children:e.map((s,r)=>n(y,{item:s,size:20,className:L},r))}):null}const ae=C.sm.mark,ie=Object.values(C),oe=t=>ie.reduce((e,s)=>Math.abs(s.mark-t)<Math.abs(e.mark-t)?s:e).words;function ce({src:t,alt:e,look:s,logoHeight:r,grayscale:c,kind:o,mark:a}){if(s==="marks"){const i=r??ae,l=!t&&o!==void 0?W({label:e,kind:o}):null,m=l?[l]:!t&&e?z(e):[];return n("span",{role:"listitem",className:"flex items-center gap-3",style:{fontSize:`${oe(i)}px`},children:a||(m.length?m.map((p,u)=>n(y,{item:p,size:i},u)):t?n(h,{...T(S(t)),alt:_(e||""),className:"w-auto",style:{height:`${i}px`}}):e&&n("span",{children:A(e)}))})}if(s==="cards"){const i=!t&&o!==void 0?W({label:e,kind:o}):null;return n("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(i?n(y,{item:i,size:20,className:L}):!t&&e&&I(e)?I(e):t?n(h,{...T(S(t)),alt:_(e||""),className:c===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&n("span",{className:L,children:A(e)}))})}return t?n(h,{...me(S(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",c===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):n("span",{className:`font-mono ${R.label} uppercase tracking-[0.2em] text-fg-dim`,children:Y(e||"Logo")})}function T(t){const e=v(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function me(t){const e=v(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{L as CARD_WORDS_CLASS,ce as LogoWallMark,se as default};
|
|
@@ -55,5 +55,6 @@ export interface MockupSectionProps {
|
|
|
55
55
|
products?: MockupProduct[];
|
|
56
56
|
align?: "right" | "left";
|
|
57
57
|
editing?: boolean;
|
|
58
|
+
omitHead?: boolean;
|
|
58
59
|
}
|
|
59
|
-
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, }?: MockupSectionProps): import("react").JSX.Element | null;
|
|
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as D}from"react/jsx-runtime";import{HideTaker as te}from"./ViewHideRoot.js";import{renderGold as re,renderHeadline as ne}from"./goldPhrases.js";const B={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))]"},C="#ffffff",d="#16181d",o="#5b6470",u="#9aa3ae",p="#f4f6f8",m="#e3e7ec",g="#1f9d55";function se({rows:n}){return e("div",{className:"flex flex-col gap-3",children:n.map((a,c)=>{const t=a.state??"ok",s=t==="no";return r("div",{className:"flex items-center gap-3 rounded-lg border px-4 py-3",style:{background:s?"#fbfbfc":p,borderColor:m},children:[t==="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:t==="warn"?"var(--accent)":g}}),e("span",{className:"text-[14px] font-semibold",style:{color:s?u:d},children:a.lead}),e("span",{className:"text-[13px]",style:{color:s?u:o},children:a.detail}),(a.status??"").trim()&&e("span",{className:"ml-auto whitespace-nowrap text-[12px] font-bold",style:{color:t==="ok"?g:t==="warn"?"var(--accent)":u},children:a.status})]},c)})})}const E=["#c7cdd5","var(--accent)","#c7cdd5",g];function ce({columns:n}){return e("div",{className:"grid gap-2 rounded-xl p-3",style:{background:p,gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map((a,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:a.title}),e("span",{className:"font-mono text-[9px] font-bold",style:{color:"var(--accent)"},children:a.cards.length})]}),a.cards.map((t,s)=>r("div",{className:"rounded-md border px-2.5 py-2",style:{background:C,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:E[c%E.length]}}),e("span",{className:"block text-[11px] font-semibold leading-snug",style:{color:d},children:t})]},s))]},c))})}function de({heading:n,bars:a}){const c=Math.max(...a.map(s=>s.value),0)||1,t=a.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:a.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===t?"var(--accent)":i%2?"#c7cdd5":"#9aa3ae"}}),r("span",{className:"text-[12px]",style:{color:o},children:[s.value,"%"]})]},i))})]})}function I({size:n}){const a=n/2;return r("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:[e("circle",{cx:a,cy:a,r:a*.82,fill:"none",stroke:"#9aa3ae",strokeWidth:"2.5"}),e("circle",{cx:a,cy:a,r:a*.5,fill:"none",stroke:"var(--accent)",strokeWidth:"2"}),e("circle",{cx:a,cy:a,r:a*.14,fill:"var(--accent)"})]})}function ie({header:n,lines:a}){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:[a.map((c,t)=>c.startsWith("$ ")?r("div",{children:[e("span",{style:{color:"var(--accent)"},children:"$ "}),e("span",{style:{color:"#f4f6f2"},children:c.slice(2)})]},t):c.startsWith("✓")?e("div",{style:{color:"#6fcf7e"},children:c},t):e("div",{style:{color:"rgba(244,246,242,0.55)"},children:c},t)),e("div",{"aria-hidden":!0,className:"mt-1 h-[15px] w-[8px]",style:{background:"var(--accent)"}})]})]})}function oe({urlText:n,heroTitle:a,heroButton:c,products:t}){return r("div",{children:[r("div",{className:"flex items-center gap-2 px-4 py-3",style:{background:p},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:C,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(I,{size:104})}),a.trim()&&e("div",{className:"max-w-[240px] text-[15px] font-bold uppercase leading-snug tracking-wide text-white",children:a}),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})]}),t.length>0&&e("div",{className:"grid grid-cols-3 gap-3 p-4",children:t.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:p},children:e(I,{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 me({eyebrow:n,title:a,body:c,variant:t="spec-card",cardHeader:s,badge:i,cardTitle:f,cardSubtitle:b,pills:F,tiles:W,rows:K,button:_,footnote:M,col1Title:G,col1Cards:L,col2Title:U,col2Cards:O,col3Title:P,col3Cards:z,col4Title:S,col4Cards:X,barsHeading:Z,bars:q,termLines:H,urlText:J,heroTitle:j,heroButton:Q,products:V,align:Y="right",editing:x=!1}={}){const y=(F??[]).filter(l=>x||(l.value??"").trim()),v=(W??[]).filter(l=>x||(l.label??"").trim()),N=(K??[]).filter(l=>x||(l.lead??"").trim()),k=[[G,L],[U,O],[P,z],[S,X]].map(([l,h])=>({title:(l??"").trim(),cards:(h??[]).map(le=>(le.text??"").trim()).filter(Boolean)})).filter(l=>l.title||l.cards.length>0),w=(q??[]).map(l=>({label:(l.label??"").trim(),value:parseFloat(l.value??"")})).filter(l=>l.label&&Number.isFinite(l.value)),A=(H??[]).map(l=>l.text??"").filter(l=>x||l.trim()),R=(V??[]).map(l=>({name:(l.name??"").trim(),price:(l.price??"").trim()})).filter(l=>l.name),ee=!!(n??"").trim()||!!(a??"").trim(),ae=!!(s??"").trim()||!!(f??"").trim()||y.length>0||v.length>0||N.length>0||k.length>0||w.length>0||R.length>0||A.length>0||!!(j??"").trim();if(!x&&!ee&&!ae)return null;const T=r("div",{className:`w-full overflow-hidden rounded-2xl shadow-[0_24px_60px_rgba(0,0,0,0.35)] ${t==="kanban"||t==="browser"||t==="terminal"?"max-w-[600px]":"max-w-[520px]"}`,style:{background:C},children:[t!=="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]})]}),t==="terminal"?e(ie,{header:s??"",lines:A}):t==="browser"?e(oe,{urlText:J??"",heroTitle:j??"",heroButton:Q??"",products:R}):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})]}),t==="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:p,borderColor:m},children:[e("span",{className:"text-[11px]",style:{color:o},children:l.label}),e("span",{className:"text-[13px] font-bold",style:{color:d},children:l.value})]},h))}),t!=="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:p},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:d},children:l.value})]},h))}),N.length>0&&e(se,{rows:N}),(_??"").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:_}),t==="kanban"&&k.length>0&&e(ce,{columns:k}),t==="claims"&&w.length>0&&e(de,{heading:Z??"",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})})]})]}),$=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:re(n??"")}),(a??"").trim()&&e("h2",{className:`mt-5 font-heading2 ${B.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${B.headingMediumUpTo800}`,children:ne(a??"",!1)}),(c??"").trim()&&e("p",{className:"mt-5 max-w-[46ch] text-[15px] leading-relaxed text-fg/65",children:c})]});return e(te,{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:Y==="left"?r(D,{children:[e("div",{className:"flex justify-center min-[960px]:justify-start",children:T}),$]}):r(D,{children:[$,e("div",{className:"flex justify-center min-[960px]:justify-end",children:T})]})})})}export{me as default};
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import type { WidthAnswer } from "../../format/lib/content/section-width.js";
|
|
2
2
|
import { type CSSProperties, type ReactNode } from "react";
|
|
3
3
|
import { type PadValues } from "../lib/content/section-padding.js";
|
|
4
|
-
import type
|
|
4
|
+
import { type SectionEdge } from "../lib/content/section-edge.js";
|
|
5
5
|
export declare function useInsideSiteGutter(): boolean;
|
|
6
6
|
export declare function InsideSiteColumn({ children }: {
|
|
7
7
|
children?: ReactNode;
|
|
@@ -9,6 +9,10 @@ export declare function InsideSiteColumn({ children }: {
|
|
|
9
9
|
export declare function SplitBandAndColumn({ children }: {
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
}): import("react").JSX.Element;
|
|
12
|
+
export declare function GroundStopsAt({ ground, children }: {
|
|
13
|
+
ground: string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
12
16
|
export declare function useInsideBox(): boolean;
|
|
13
17
|
export declare function NestedBoxChoice({ atTop, nested }: {
|
|
14
18
|
atTop: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,Fragment as
|
|
1
|
+
"use client";import{jsx as t,Fragment as G}from"react/jsx-runtime";import{useTakeViewHide as K,withViewHide as D}from"./ViewHideRoot.js";import{createContext as u,useContext as o}from"react";import{rootPadAttrs as M,wrapperPadAttrs as Q}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as Y,SECTION_BORDER_SELF_CLASS as Z}from"../../format/lib/content/borders.js";import{BOX_HOLDS_NO_GUTTER_CLASS as b}from"../../format/lib/content/page-width.js";import{drawsSiteGutter as ee}from"../../format/lib/content/site-gutter.js";import{groundBeyond as te}from"../lib/content/section-edge.js";const f=u(!1);function pe(){return o(f)}function he({children:e}){return t(f.Provider,{value:!0,children:e})}const _=u(!1);function ve({children:e}){return t(_.Provider,{value:!0,children:e})}const H=u(null);function Se({ground:e,children:n}){return t(H.Provider,{value:e,children:n})}const O=u(!1);function ne(){return o(O)}function xe({atTop:e,nested:n}){return t(G,{children:ne()?n:e})}const m=u(void 0);function Ce({children:e}){return t(m.Provider,{value:null,children:e})}function oe(){return o(m)===void 0&&!o(O)&&!o(f)}function Ne({own:e,followed:n}){return t(G,{children:oe()?e():n()})}const k=u(null);function ge({value:e,children:n}){return t(k.Provider,{value:e,children:n})}function Be({draw:e}){return t(G,{children:e(o(k))})}function Pe(){return o(m)??null}function re({contained:e,framedClass:n,fillClass:V,columnClass:R,style:A,tabLabel:W,pad:s,border:c,outerAttrs:E,box:h=!1,edge:U=!1,outerStyle:p,outerClass:w,bleed:v=!1,children:y}){const X=o(f),S=o(_),a=ee(e,X),r=a&&!S,l=K(),I=!!(c&&r),d=I?w:D(w??"",l.className)||void 0,x=I||!l.className?E:{...E,...l.attrs},C=s&&!r?M(s.values,s.frame):null,N=c&&!r?c:null,g=h&&!v?b:null,B=[r?n:V,r?g:null,C?.className,N?Z:null].filter(Boolean).join(" "),L=ie(v&&r,C||N?{...A,...C?.style,...N}:A),q=o(m),z=o(H),J=h&&U&&q===void 0?{gutter:a,...s?{pad:s.values}:{},beyond:a&&S?te(z):"0px"}:null,$=h?t(O.Provider,{value:!0,children:t(m.Provider,{value:J,children:y})}):y,P=a?t(f.Provider,{value:!0,children:$}):$,i=s&&r?Q(s.values):null,T=x&&Object.keys(x).length>0?x:null,j=t("div",{...i?null:T,className:!i&&d?B?`${B} ${d}`:d:B,style:i||!p?L:{...L,...p},"data-tab-label":W,children:S?t(_.Provider,{value:!1,children:a&&!v?t("div",{className:g?`${R} ${g}`:R,children:P}):P}):P}),F=i?t("div",{...T,className:d?`${i.className} ${d}`:i.className,style:p?{...i.style,...p}:i.style,children:j}):j;return l.scope(c&&r?t("div",{className:D(Y,l.className),style:{display:"contents",...c},...l.attrs,children:F}):F)}function ie(e,n){return e?{...n,paddingLeft:0,paddingRight:0}:n}export{Se as GroundStopsAt,he as InsideSiteColumn,xe as NestedBoxChoice,Ce as NotASectionEdge,Be as SectionGroupChoice,ge as SectionGroupWidthsProvider,Ne as SectionRootChoice,ve as SplitBandAndColumn,re as default,ne as useInsideBox,pe as useInsideSiteGutter,Pe as useSectionEdge,oe as useSectionRoot};
|
|
@@ -6,6 +6,7 @@ interface TextProps {
|
|
|
6
6
|
pad?: PadValues;
|
|
7
7
|
ownWidth?: boolean;
|
|
8
8
|
text: string;
|
|
9
|
+
labelId?: string;
|
|
9
10
|
number?: string;
|
|
10
11
|
align?: Align;
|
|
11
12
|
alignTablet?: unknown;
|
|
@@ -21,5 +22,5 @@ interface TextProps {
|
|
|
21
22
|
partDeclare?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export declare function headingLevelOfStyle(id: string): HeadingLevel;
|
|
24
|
-
export default function Text({ text, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare }: TextProps): import("react").JSX.Element;
|
|
25
|
+
export default function Text({ text, labelId, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare }: TextProps): import("react").JSX.Element;
|
|
25
26
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as z}from"react/jsx-runtime";import v from"./BlockFrame.js";import{renderGold as h,renderHeadline as L,splitParagraphs as R}from"./goldPhrases.js";import{headingLook as A}from"./Heading.js";import{alignViewClasses as M}from"../../format/lib/content/block-align.js";import{textTagOf as U}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as B,kickerLead as G}from"../lib/content/page-contents.js";import{isTextStyleId as H}from"../lib/document/part-styles.js";import{faceClassOf as S}from"../../format/lib/text-style-face.js";import{useMirroredCopy as I}from"./MirrorContext.js";import{mirroredTextClasses as C}from"../../format/lib/content/mirror-cards.js";import K from"./PartStyledKind.js";const c={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},m=e=>e?` ${e}`:"";function P(e,o,l){const t=M("place",e,o,l);return t?` ${t}`:""}const F={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},V=`max-w-[380px] ${c.bodySmall} leading-[1.5] opacity-80 ${c.bodyUpTo800}`,W={default:"text-fg",dim:"text-fg-dim"};function X(e){return String(Math.min(Number(e.slice(8)),6))}function Z({text:e,labelId:o,number:l,align:t,alignTablet:k,alignPhone:w,tone:u,contained:g,hero:E=!1,pad:n,tag:_,textStyle:y,ownWidth:O=!1,partAlign:$,onLine:d=!1,partKey:T,partDeclare:j=!1}){const f=s=>T?r(K,{kind:T,declare:j,children:s}):s,b=I();if(E)return r("p",{className:V,children:h(e)});const p=l?r("span",{[B]:"",children:G(l)}):void 0,a=H(y)?y:void 0,N=`${a?`${S({id:a})} `:""}${O?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?c.label:c.bodyLarge} leading-[1.7]${m(t?F[t]:"")}${P(t,k,w)}${m(u?W[u]:"")}${m(C(b,t,$))}`,x=U(_);if(a?.startsWith("heading-")){const s=X(a),i=A(s,S({id:a}));return r(v,{contained:g,className:d?"":"py-6",pad:n?{values:n,frame:d?0:24}:void 0,children:z(x,{id:o,className:`${i.className}${m(C(b,void 0,$))}`,style:i.style,children:[p,f(L(e.trim(),!1))]})})}return r(v,{contained:g,className:d?"":"py-4",pad:n?{values:n,frame:d?0:16}:void 0,children:x==="p"?R(e).map((s,i)=>r("p",{id:i===0?o:void 0,className:N,children:f(h(s,!1,i===0?p:void 0))},i)):r(x,{id:o,className:N,children:f(h(e.trim(),!1,p))})})}export{Z as default,X as headingLevelOfStyle};
|
|
@@ -3,8 +3,15 @@ import { type PadValues } from "./section-padding.js";
|
|
|
3
3
|
export type SectionEdge = {
|
|
4
4
|
gutter: boolean;
|
|
5
5
|
pad?: PadValues;
|
|
6
|
+
beyond?: string;
|
|
6
7
|
};
|
|
7
8
|
export declare function sectionEdgeAttrs(edge: SectionEdge): {
|
|
8
9
|
className: string;
|
|
9
10
|
style?: CSSProperties;
|
|
10
11
|
};
|
|
12
|
+
export declare const EDGE_BEYOND_VAR = "--sf-edge-beyond";
|
|
13
|
+
export declare function groundBeyond(ground: string | null): string;
|
|
14
|
+
export declare function sectionEdgeBeyondAttrs(edge: SectionEdge): {
|
|
15
|
+
className: string;
|
|
16
|
+
style: CSSProperties;
|
|
17
|
+
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isLengthUnit as
|
|
1
|
+
import{isLengthUnit as v}from"efficient-easel/screen/lib/content/length-units";import{FULL_SECTION_WIDTH as g,SITE_WIDTH_CAP as c}from"../../../format/lib/content/page-width.js";import{sideViewLengths as _}from"./section-padding.js";import{finiteNumber as f}from"../../../format/lib/finite-number.js";const p="[--sf-edge-g:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-edge-g:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))] [--sf-edge-t:max(0px,calc(var(--sf-site-width,1600px)_-_100%_-_2_*_var(--sf-edge-g)))] [--sf-edge-al:min(var(--sf-edge-l),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-r))))] [--sf-edge-ar:min(var(--sf-edge-r),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-l))))]",x="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",m="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-view-desktop:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-view-desktop:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-view-tablet:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-view-tablet:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",u="ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] max-w-[100vw]";function E(s){const t={},e=s.pad??{};for(const[d,n,o,l]of[["l",e.left,e.leftTablet,e.leftPhone],["r",e.right,e.rightTablet,e.rightPhone]]){const a=f(n),i={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone};a!==void 0&&(t[`--sf-edge-${d}d`]=`${a}${v(e.unit)?e.unit:"px"}`);const r=_(a,f(o),f(l),i);r.tablet!==void 0&&(t[`--sf-edge-${d}t`]=r.tablet),r.phone!==void 0&&(t[`--sf-edge-${d}p`]=r.phone)}return{className:`${s.gutter?p:x} ${m} ${u}`,...Object.keys(t).length?{style:t}:{}}}const b="--sf-edge-beyond";function T(s){return`max(0px,calc((${s===null?g:`min(${g},${s})`} - ${c}) / 2))`}function N(s){const t=s.beyond;return t===void 0||t==="0px"?null:{className:"mx-[calc(-1_*_var(--sf-edge-beyond))] px-[var(--sf-edge-beyond)]",style:{[b]:t}}}export{b as EDGE_BEYOND_VAR,T as groundBeyond,E as sectionEdgeAttrs,N as sectionEdgeBeyondAttrs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as u}from"react/jsx-runtime";import{HideTaker as h}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as R,useCardRow as T}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as S}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as _,highlightOf as g,keyedRows as k,markedRows as A,rowHoldsContent as C}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as L,CARD_LIST_TYPE as x,cardListShows as I,cardRow as w}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as j,sourceChoices as E,sourcedRows as b}from"../../../../../../format/lib/content/block-sources.js";import{CardListMeta as B}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function y(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const M="[&>*]:flex [&>*]:flex-col [&>*>:only-child]:grow [&>*>:only-child]:flex [&>*>:only-child]:flex-col [&>*>*>:only-child]:grow [&>*>*>:only-child]:flex [&>*>*>:only-child]:flex-col [&>*>*>*>:only-child]:grow",p=[{}];function O(t,s){const d=j(t);let n,m=[];if(d){const e=b(t,s);n=[...e.rows],e.sample&&(m=E(d))}else{const e=t[L];n=Array.isArray(e)?e:[]}const l=k(n.map(w),m),r=n.map((e,i)=>({item:e,row:l[i]})).filter(({item:e})=>s||C(e)),a=A(r.map(e=>e.row),g(t));return{items:r.map(e=>e.item),rows:a.rows,states:r.map(({item:e},i)=>{const o={...y(e),...a.states[i]};return Object.keys(o).length?o:void 0})}}function D({id:t,own:s,Template:d,editing:n,dragRef:m}){const l=T();let r,a,e;if(l){const o=I(s,l.ownerType),c=o&&l.item&&typeof l.item=="object"?l.item[o]:void 0,f=Array.isArray(c)?c:[];r=f.length?f:n?p:f,a=r.map(w),e=r.map(y)}else{const o=O(s,n),c=!o.items.length&&n;r=c?p:o.items,a=c?p.map(w):o.rows,e=c?[]:o.states}if(!r.length)return null;const i=n?[]:r.map(_);return u(R,{ownerId:t,ownerType:x,Template:d,rows:a,items:r,states:e.some(Boolean)?e:void 0,actions:i.some(Boolean)?i:void 0,fallback:null,children:o=>u(h,{ref:m,className:l?"contents":`contents ${M}`,[S]:"",children:o})})}const $={...B,render:t=>u(D,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{$ as CardListRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as a,Fragment as u}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as x}from"../../../../../../format/lib/content/section-min-height.js";import F,{cardGridCornerClasses as H}from"../../../../../components/Cards.js";import{CardTemplateRows as I}from"../../../../../components/CardRowContext.js";import{cardRow as L}from"../../../../../../format/lib/content/card-template.js";import{highlightOf as T,keyedRows as b,markedRows as h,rowHoldsContent as y}from"../../../../../../format/lib/content/card-state.js";import D from"../../../../../components/KeyFeatures.js";import{hidableText as v}from"efficient-easel/draw";import{declaredBlockSource as g,sourceChoices as P,sourcedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{KEY_FEATURES_PH as C,keyFeaturesScaffoldItems as K}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{parseSectionHeadPlacement as N}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as S}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as R,phHide as f}from"../../scaffold.js";import{say as m}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as s}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as O,CARDS_PH as E}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const k=()=>[{title:m("Card title one"),body:m("A short line about this card.")},{title:m("Card title two"),body:m("A short line about this card.")},{title:m("Card title three"),body:m("A short line about this card.")}],_=()=>k().map(e=>({[s.title]:e.title??"",[s.body]:e.body??""}));function $(e){return g(e)?w(e,e.editor?.isEditing===!0,_()).rows.filter(t=>t[s.title]||t[s.body]).map(t=>({title:t[s.title]??"",body:t[s.body]??""})):null}function j(e){const t=e.editor?.isEditing===!0,o=g(e),i=T(e);if(o){const l=w(e,t,_());return h(b(l.rows,l.sample?P(o):[]).filter(y),i)}const d=R(e.items,k(),e.editor).map(L);return h(b(d).filter(l=>t||y(l)),i)}function B(e,t,o){const i=o?`relative grid ${x} bg-bg`:"relative bg-bg";return a("div",{className:t?`${i} ${t}`:i,children:e})}const oe={...O,render:e=>{const t=N(e.headPlacement)==="own-box",o=r=>t?void 0:r,i=(e.template?.blockCount??0)>0,d=$(e);if((!i||e.cardStyle==="label-only")&&d&&!d.length)return a(u,{});if(e.cardStyle==="label-only"){const r=d?d.map(n=>({label:n.title??"",href:void 0})):Array.isArray(e.items)?e.items.map(n=>({label:v(n.title)??"",href:typeof n.href=="string"?n.href:void 0})):[];return a(D,{look:S(e.eyebrowLook,"KeyFeatures"),eyebrow:o(f(e.eyebrow,C.eyebrow,e.editor)),title:o(f(e.title,C.title,e.editor)),items:d?r:R(r,K(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}const l=r=>a(F,{look:S(e.eyebrowLook,"Cards"),eyebrow:o(f(e.eyebrow,E.eyebrow,e.editor)),title:o(f(e.title,E.title,e.editor)),columns:e.columns,omitHead:t,editing:e.editor?.isEditing,cards:r}),{rows:c,states:A}=i?j(e):{rows:[],states:[]};return i&&d&&!c.length?a(u,{}):a(I,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:c,states:A,fallback:l(),wrapCopy:(r,n)=>B(r,H(n.index,c.length,e.columns),n.state?.highlighted===!0),children:r=>c.length?l(r):l()})}};export{oe as CardsRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as u}from"react/jsx-runtime";import w from"../../../../../components/ChartSection.js";import{phRows as x,phHide as i,hidableRow as o}from"../../scaffold.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{parseSectionHeadPlacement as y}from"../../../../../../format/lib/sections/section-head-placement.js";import{ChartMeta as H,CHART_PH as n}from"../../../../../../format/lib/document/blocks/general/Chart/meta.js";const S=()=>[{label:r("Before"),value:"9"},{label:r("After"),value:"3"},{label:r("With us"),value:"1"}],B={...H,render:({eyebrow:l,title:m,body:s,items:f,caption:c,chartStyle:p,valueSuffix:d,headPlacement:h,editor:e})=>{const a=y(h)==="own-box",t=b=>a?void 0:b;return u(w,{eyebrow:t(i(l,n.eyebrow,e)),title:t(i(m,n.title,e)),body:t(o(s)),items:x(f,S(),e),chartStyle:p,valueSuffix:o(d),caption:t(o(c)),editing:e?.isEditing,omitHead:a})}};export{B as ChartRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as m}from"react/jsx-runtime";import s from"../../../../../components/Countdown.js";import{parseSectionHeadPlacement as a}from"../../../../../../format/lib/sections/section-head-placement.js";import{CountdownMeta as p}from"../../../../../../format/lib/document/blocks/general/Countdown/meta.js";const c={...p,render:({title:t,zeroText:n,endsAt:e,showUnits:r,headPlacement:i,editor:d})=>{const o=a(i)==="own-box";return m(s,{title:o?void 0:t,zeroText:n,endsAt:e,showUnits:r,editing:d?.isEditing,omitHead:o})}};export{c as CountdownRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as u}from"react/jsx-runtime";import H from"../../../../../components/FeaturedCover.js";import{hidableText as k}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{parseSectionHeadPlacement as C}from"../../../../../../format/lib/sections/section-head-placement.js";import{FeaturedCoverMeta as F,FEATUREDCOVER_PH as t}from"../../../../../../format/lib/document/blocks/general/FeaturedCover/meta.js";const j={...F,render:({source:o,image:d,badge:i,imageDate:c,category:n,readLabel:g,date:l,title:p,dek:s,ctaText:f,ctaHref:x,headPlacement:b,editor:e})=>{const r=o,m=!!r?.slug;return u(H,{image:m?r.image:d,badge:a(i,t.badge,e),imageDate:m?r.date:a(c,t.imageDate,e),category:a(n,t.category,e),readLabel:a(g,t.readLabel,e),date:m?r.date:a(l,t.date,e),title:m?r.title:a(p,t.title,e),dek:m?r.dek:a(s,t.dek,e),ctaText:a(f,t.ctaText,e),ctaHref:m?r.href:k(x),omitHead:C(b)==="own-box"})}};export{j as FeaturedCoverRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i,Fragment as k}from"react/jsx-runtime";import B from"../../../../../components/Logos.js";import{CardTemplateRows as H}from"../../../../../components/CardRowContext.js";import{declaredBlockSource as _}from"../../../../../../format/lib/content/block-sources.js";import{phRows as x,phHide as R}from"../../scaffold.js";import{parseLogoLook as S}from"../../../../../../format/lib/sections/logo-look.js";import{parseSectionHeadPlacement as T}from"../../../../../../format/lib/sections/section-head-placement.js";import{LOGOS_PH as A,LogosMeta as E,logosScaffoldItems as O}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";import{wallRows as j}from"./wall-rows.js";import{WALL_LABELLED_BY_PROP as C}from"../../../wall-labels.js";const K={...E,render:o=>{const{items:t,contained:g,heading:s,columns:c,logoHeight:f,bandPadding:h,grayscale:L,logos:p,look:u,headPlacement:w,editor:n,align:b,alignTablet:P,alignPhone:y}=o,l=o[C],e=T(w)==="own-box",a=r=>i(B,{items:e?Array.isArray(t)?t:[]:x(t,O(),n),contained:g,heading:e?void 0:R(s,A.heading,n),columns:c,logoHeight:f,bandPadding:h,grayscale:L,logos:e?p:void 0,look:S(u),omitHead:e,cards:r,align:b,alignTablet:P,alignPhone:y,labelledBy:typeof l=="string"?l:void 0});if(_(o)==="")return a();const d=n?.isEditing===!0,m=(o.template?.blockCount??0)>0?j(o,d):[];return!d&&!m.length?i(k,{}):i(H,{ownerId:String(o.id??""),ownerType:"Logos",Template:o.template,rows:m,fallback:a([]),children:r=>a(r)})}};export{K as LogosRender};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{declaredBlockSource as t,sourcedRows as a}from"../../../../../../format/lib/content/block-sources.js";import{isPaymentMethodSource as m,paymentMarkRows as s}from"../../../../sections/payment-rows.js";import{logosScaffoldItems as c}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const f=()=>c().map(o=>({label:o.alt}));function u(o,r){const e=a(o,r,f()).rows.filter(l=>l.label);return m(t(o))?s(e):e}export{u as wallRows};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
*the counter.*`,e),body:o(l),variant:
|
|
1
|
+
import{jsx as q}from"react/jsx-runtime";import z from"../../../../../components/MockupSection.js";import{phHide as i,hidableRow as o}from"../../scaffold.js";import{parseSectionHeadPlacement as A}from"../../../../../../format/lib/sections/section-head-placement.js";import{MockupMeta as D}from"../../../../../../format/lib/document/blocks/general/Mockup/meta.js";const O={...D,render:({eyebrow:n,title:c,body:l,variant:a,cardHeader:d,badge:s,cardTitle:m,cardSubtitle:p,pills:u,tiles:b,rows:f,button:T,footnote:h,col1Title:w,col1Cards:x,col2Title:g,col2Cards:H,col3Title:C,col3Cards:M,col4Title:S,col4Cards:k,barsHeading:j,bars:y,termLines:B,urlText:R,heroTitle:v,heroButton:E,products:I,align:L,headPlacement:P,editor:e})=>{const r=A(P)==="own-box",t=_=>r?void 0:_;return q(z,{eyebrow:t(i(n,"In the product",e)),title:t(i(c,`Seen from
|
|
2
|
+
*the counter.*`,e)),body:t(o(l)),variant:a,cardHeader:o(d),badge:o(s),cardTitle:o(m),cardSubtitle:o(p),pills:u,tiles:b,rows:f,button:o(T),footnote:o(h),col1Title:o(w),col1Cards:x,col2Title:o(g),col2Cards:H,col3Title:o(C),col3Cards:M,col4Title:o(S),col4Cards:k,barsHeading:o(j),bars:y,termLines:B,urlText:o(R),heroTitle:o(v),heroButton:o(E),products:I,align:L,editing:e?.isEditing,omitHead:r})}};export{O as MockupRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as
|
|
1
|
+
import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as T}from"../../../../../components/CardRowContext.js";import{CountDrawn as b}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as N}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as k}from"../../../../content/page-contents.js";import{WALL_LABEL_ID_PROP as D}from"../../../wall-labels.js";import{namedRowField as B,rowPartByKey as F}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as W,TOP_LINE_CLASS as j,cardPlaceOf as v,framesItsCards as H}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as M,blockSizeValuesOf as U}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as V}from"../../../../content/section-padding.js";import z from"../../../../../components/Text.js";import{hidableText as d,readHidable as q}from"efficient-easel/draw";import{PH as P}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as G}from"../../scaffold.js";import{readPartStyle as J}from"../../../part-styles.js";import{TextMeta as Q}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const gt={...Q,render:t=>{const{text:a,align:_,alignTablet:p,alignPhone:I,tone:K,tag:L,contained:E,editor:m}=t;if(q(a).hidden)return r(c,{});const{textStyle:f,align:R}=J(t,"text"),C=f?.startsWith("heading-")?P.heading:P.body,O=F("Text",t,"text")?{partKey:"text",partDeclare:!!m?.isEditing}:{},s=t[D],S=typeof s=="string"?s:void 0,o=(e,n,i)=>r(z,{...O,labelId:S,text:G(e,C,m)??"",number:n,align:_,alignTablet:p,alignPhone:I,tone:K,tag:L,textStyle:f,partAlign:R,ownWidth:M(U(t)),contained:E,pad:V(t),onLine:i}),u=e=>!e?.trim()&&!m?.isEditing,g=B(t),h=w(t);if(h)return r(b,{countKey:h,children:e=>o(e??d(a))});const x=()=>{if(!g){const e=t[k];return typeof e=="string"?o(d(a),e):r(N,{id:t.id,children:n=>o(d(a),n)})}return r(T,{type:"Text",props:t,children:(e,n,i)=>{const l=d(e.text),y=w(t,i);return y?r(b,{countKey:y,children:A=>o(A??l)}):i&&u(l)?r(c,{}):o(l)}})};return v(t)!=="top-line"?x():r(T,{type:"Text",props:t,children:(e,n)=>{if(!n||!H(n.ownerType))return x();const i=d(g?e.text:a);return u(i)?r(c,{}):r("div",{className:j,[W]:"",children:o(i,void 0,!0)})}})}};export{gt as TextRender};
|
|
@@ -7,6 +7,7 @@ export declare const NUMBER_TEXT: Props;
|
|
|
7
7
|
export declare const BUTTON: Props;
|
|
8
8
|
export declare const SH_LINK: Props;
|
|
9
9
|
export declare const SECTION_BOX: Props;
|
|
10
|
+
export declare const FOLLOW_THE_BOX: Props;
|
|
10
11
|
export declare const SAME_KEYS: readonly BoxEntry[];
|
|
11
12
|
export declare const DROP_COMMON: Readonly<Record<string, string>>;
|
|
12
13
|
export declare const DROP_SIDE_PADDING: Readonly<Record<string, string>>;
|
|
@@ -33,7 +34,8 @@ export declare const leadText: (lead: string, rest: string, props: Props) => Par
|
|
|
33
34
|
export declare const leadLine: (lead: string, rest: string, run: Props, own?: Props) => PartRow;
|
|
34
35
|
export declare const bandPage: (stored: unknown, ctx: ConvertContext) => number;
|
|
35
36
|
export declare const sectionPage: (p: Props, ctx: ConvertContext) => import("../../../../../format/lib/theme.js").ThemeColors | undefined;
|
|
36
|
-
export declare const fillFrom: (colour: "surface" | "background") => (p: Props, ctx: ConvertContext) => Props;
|
|
37
|
+
export declare const fillFrom: (colour: "surface" | "background", overBand?: (p: Props, ctx: ConvertContext) => boolean) => (p: Props, ctx: ConvertContext) => Props;
|
|
38
|
+
export declare const onBandPreset: (p: Props, ctx: ConvertContext) => boolean;
|
|
37
39
|
export declare const ownFill: (painted: string | undefined, p: Props, ctx: ConvertContext) => Props;
|
|
38
40
|
export declare const fillNoBoxHolds: (painted: string | undefined) => string | undefined;
|
|
39
41
|
export declare const bandIndex: (p: Props, ctx: ConvertContext) => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{phoneKey as
|
|
1
|
+
import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{phoneKey as L}from"efficient-easel/draw";import{BOX as v,INNER_BOX as M,LABEL_FACE as U,TEXT as I,fillSlot as N}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as w}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as u}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as y}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as F}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as K}from"../../../content/section-padding.js";import{ButtonBlockMeta as X}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as G}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as x,hasWords as Y}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as V}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as A}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as j}from"efficient-shell/format";import{convertLength as $,isLengthUnit as J}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as z,surfaceTwoTone as q}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as Q}from"../../../../../format/lib/content/view-hide-class.js";const _=t=>J(t)?t:"px",d=(t,o,e,n)=>o===e?t:$(t,o,e,n,{min:0,max:200,step:4});import{BOX as qt,DIM as Qt,INNER_BOX as Zt,TEXT as to}from"../../../../../format/lib/document/seed-parts.js";const St={textFit:"line",textFitPhone:"wrap"},Z={...I,[y]:""},{label:Ut,href:It,...tt}=X.defaultProps,Nt=tt,At={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Ct={...v,sectionAccent:0},kt={sectionAccent:-1},Ht=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation",...Q,...Object.values(w).flatMap(t=>[t,L(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(W)],c="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",Rt={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:c,fullWidth:c,pageWidth:c,backgroundWidth:c,contentWidth:c,contentMax:c},Dt=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function ot(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=_(t.sectionPaddingUnit),g=_(t.sectionPaddingUnitTablet),T=_(t.sectionPaddingUnitPhone),E=(h,a,b,m)=>{const r=p(h);if(r!==void 0)return r+d(m,"px",T,"mobile");const S=a===void 0?{n:b,unit:l}:{n:a,unit:g};return d(S.n,S.unit,T,"mobile")+d(m,"px",T,"mobile")},O=(h,a,b,m,r)=>a!==void 0?{[h]:a+d(r??m,"px",g,"tablet")}:r===void 0?{}:{[h]:d(b,l,g,"tablet")+d(r,"px",g,"tablet")};return{sectionPaddingTop:e+d(o.top,"px",l,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",l,"desktop"),...O("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...O("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:E(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:E(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Wt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>ot(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function P(t,o){const e=K(t,G[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Lt=t=>[["padTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom]],et={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},vt=t=>o=>Y(o.props[t])?[et]:[],Mt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:I,...o?{style:o}:{}}),C=t=>t.background!=="transparent",nt=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},k={align:"right",alignPhone:"left"},it=(t,o,e)=>{const n=i=>nt(i[t],i[o]);return{kind:"block",type:"Text",when:(i,s)=>s!==void 0&&n(s)!=="",box:[[t,"text",(i,s)=>n(s)],[o,"text",(i,s)=>n(s)]],props:e}},wt=(t,o,e,n={})=>it(t,o,{...Z,...k,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...k}}}),B=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:x(o)?.selected??0,H="var(--site-surface-2)",R=(t,o)=>x(o)?.themes[B(t.sectionAccent??0,o)],st=(t,o)=>(e,n)=>{if(!o?.(e,n))return N(t);const i=R(e,n)?.[t];return i?{fillColor:i}:{}},yt=(t,o)=>f(t,o)>=0,D=t=>t.startsWith("#")&&j(t)!==null,Ft=(t,o,e)=>{const n=t?.trim();if(n&&D(n))return{fillColor:n};const i=A(n);if(i)return N(i);const s=n===H?R(o,e):void 0;return s?{fillColor:q(s)}:{}},Kt=t=>{const o=t?.trim();return!o||o==="transparent"||o===V||A(o)||o===H||D(o)?void 0:"it paints a colour that no Box Fill can hold"},f=(t,o)=>{const e=x(o)?.themes;return e&&C(t)?z(e,B(t.sectionAccent,o)):-1},Xt=(t,o,e)=>{const n=f(o,e);return n>=0?n:t},Gt=(t,o)=>{const e=f(t,o);return e>=0?{sectionAccent:e}:{}},Yt=(t,o)=>C(t.props)&&f(t.props,o)<0?[{kind:"band-preset",page:B(t.props.sectionAccent,o)}]:[],Vt=t=>F(t.site?.siteGutter),dt=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),jt=t=>({top:0,right:0,bottom:0,left:0,...t}),$t=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...M,...dt,...st("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],u.kind,u.duration,u.delay],parts:n});export{St as AUTO_COLUMN,qt as BOX,Nt as BUTTON,Qt as DIM,Rt as DROP_COMMON,Dt as DROP_SIDE_PADDING,kt as FOLLOW_THE_BOX,et as HEADING_CASE_UPPER,Zt as INNER_BOX,dt as NO_PAD,Z as NUMBER_TEXT,k as RIGHT_WORDS,Ht as SAME_KEYS,Ct as SECTION_BOX,At as SH_LINK,to as TEXT,Xt as bandAccent,f as bandIndex,B as bandPage,Gt as bandProps,Yt as bandWrites,st as fillFrom,Kt as fillNoBoxHolds,vt as headingCaseOf,P as innerPad,Lt as innerPadKeys,wt as leadLine,it as leadText,jt as lineSides,nt as numberAndUnit,yt as onBandPreset,Ft as ownFill,$t as pictureCell,R as sectionPage,Vt as siteGutterOf,Mt as smallText,ot as wrapperPad,Wt as wrapperPadKeys};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as T,readHidable as O}from"efficient-easel/draw";import{isNodeList as z,newId as J}from"efficient-easel/data";import{say as m}from"../../../../../format/lib/editor-words.js";import{cardColumns as Q}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as Z,THEME_SECTION_BG as $}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as ee}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as te}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as R}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as oe}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as ne}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as re}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as i}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as se}from"../../../../../format/lib/document/text-seeds.js";import{rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as ae,cardListCardSeed as ie,cardsGridLook as de}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as le,CARD_LIST_TYPE as ce,CARD_TEMPLATE_SLOT as pe,cardKeyOf as he,cardListProps as me,cardRow as be}from"../../../../../format/lib/content/card-template.js";import{bandAccent as ge,bandProps as ue,onBandPreset as ye,bandWrites as fe,BUTTON as we,DIM as x,DROP_COMMON as b,DROP_SIDE_PADDING as g,INNER_BOX as r,SAME_KEYS as u,SECTION_BOX as y,fillFrom as f,fillNoBoxHolds as Pe,ownFill as Se,SH_LINK as Ce,TEXT as l,smallText as _e,wrapperPad as w,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{headTree as A,token as c}from"./section-head-looks.js";import{boxPadding as Oe,labelStyle as xe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as ke}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const p=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),B=e=>t=>Q(R(t.columns)??R(e.columns)),Ee=e=>({kind:"group",name:"Grid",props:{...r,gap:0,...p(1,0,0,1)},parts:[e]}),Le={...r,direction:"row",gap:0,share:"equal"},Te="its head sits in a Box of its own above it (own-box): the row draws the head inline",D=e=>ne(e.headPlacement)==="own-box",Re="inline is the head the row draws; an own-box node is skipped (`skip`)",Ae=e=>({kind:"group",name:"Heading",props:e,parts:[_e("eyebrow"),{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),I={top:76,bottom:76,topPhone:76,bottomPhone:76},Be={...r,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...p(0,1,1,0)},N={textStyle:"body-1",color:"text"},F=(e,t)=>typeof t?.href=="string"&&t.href.trim()!=="",De={name:"Key Features",boxProps:e=>({...y,direction:"column",gap:44,...p(1,0,1,0),...w(e,I)}),box:[...u,...P(I)],parts:[Ae({...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),Ee({kind:"list",key:"items",name:"Feature",perRow:B(te.defaultProps),rowName:"Row",rowProps:Le,props:Be,parts:[{kind:"button",key:"label",href:"href",when:F,variant:"ghost",props:{...we,...Ce,icon:"none"},style:N},{kind:"text",key:"label",when:(e,t)=>!F(e,t),props:l,style:N,was:{size:17}}]})],drop:{...b,...g,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (the stored-node export, 2026-10-24)"}},H={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},S=e=>{const t=Z(typeof e.background=="string"?e.background:void 0,ke.Series);return t&&t!=="transparent"?t:void 0},C=e=>S(e)===$,Ie={...r,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},K={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[T("share")]:"content"},Ne=e=>{const t=S(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},k={...xe(12),letterSpacing:.22,lineHeight:1.5},W=e=>re(e.viewLabel)&&!O(e.viewLabel).hidden,s=e=>O(e).text?.trim?.()??"",v=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>oe(t)!==void 0)),E=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Fe=E([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),He=E([["label","Label"],["value","Value"],["body","Card body",!0]]),L=(e,t,o,n,h,{reads:Y=["cards"],keep:U=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:ce,headless:!0,keep:U,derive:{reads:Y,props:_=>me(n(_),o)},slots:(_,q)=>({[pe]:[h(_,q)]})}]}),M=e=>Array.isArray(e.cards)?e.cards:[],G={top:72,bottom:72,topPhone:72,bottomPhone:72},X=(e,t)=>({...ae,...f("background")(e,t)}),Ke=e=>{const t=B(ee.defaultProps)(e);return{...r,...de(t)}},We=E([["title","Card title"],["body","Card body",!0]]),ve=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:he(be(t),o),title:s(t?.title),body:s(t?.body)})),j=e=>{const t={},o={};for(const[n,h]of Object.entries(e.props??{}))n!=="id"&&(z(h)?o[n]=h.map(j):t[n]=h);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},Me=(e,t)=>{const o=Array.isArray(e.template)?e.template.map(j):[ie()],[n]=o;return o.length===1&&n.type===a?{...n,props:{...X(e,t),...n.props}}:{type:a,props:{...r,...X(e,t),name:"Card"},slots:{[i]:o}}},Ge=e=>Array.isArray(e.template)&&e.template.length===0,Xe=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function gt(){const e=o=>({key:J("card"),title:m(o),body:m("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:m("Label"),title:m("Section *heading.*"),items:t}}const je={name:"Cards",boxProps:(e,t)=>({...y,direction:"column",gap:36,gapPhone:28,...f("surface")(e,t),...w(e,G)}),box:[...u,...P(G)],skip:e=>e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[{...A("Cards"),when:e=>!D(e)},{...L("Cards",Ke,We,ve,Me,{reads:["items"],keep:Xe}),when:e=>!Ge(e)}],drop:{...b,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},Ve={name:"Recurring Columns",boxProps:(e,t)=>({...y,direction:"column",gap:60,gapPhone:60,...p(0,0,1,0),...C(e)?ue(e,t):{},...Se(S(e),e,t),...w(e,H)}),box:[...u.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>C(t)?ge(e,t,o):e],...P(H)],skip:e=>Pe(S(e))??(D(e)?Te:void 0),site:(e,t)=>C(e.props)?fe(e,t):[],parts:[A("Series"),L("Cards",Ne,Fe,e=>M(e).map(t=>v({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...Ie,...f("background",(o,n)=>C(o)&&ye(o,n))(e,t),name:"Card"},slots:{[i]:[{type:a,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[i]:[{type:a,props:{...K,name:"Top"},slots:{[i]:[d("num",l,c("label",13),!0),d("since",l,c("label",13),!0)]}},d("title",{...l,tag:"h3"},{textStyle:"heading-3",...c("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",x,{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.6})]}},{type:a,props:{...K,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...p(1,0,0,0),...W(e)?{}:{[le]:["count","countLabel"]}},slots:{[i]:[{type:a,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",[T("share")]:"content"},slots:{[i]:[d("count",l,k),d("countLabel",x,k)]}},...W(e)?[{type:a,props:{...r,name:"View",maxWidthPhone:266},slots:{[i]:[{type:"Text",props:{...l,text:O(e.viewLabel).text,_partStyles:{text:{...se()._partStyles.text,...k}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...b,...g,headPlacement:Re}},V={top:60,bottom:60,topPhone:40,bottomPhone:40},Ye={...r,direction:"row",columns:3,gap:40,gapPhone:16},Ue={...r,gap:8,gapPhone:8,...Oe(24),...p(1,1,1,1)},qe={name:"Document Detail Cards",boxProps:e=>({...y,direction:"column",gap:40,gapPhone:16,...p(0,0,1,0),...w(e,V)}),box:[...u,...P(V)],parts:[L("Cards",Ye,He,e=>M(e).map(t=>v({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Ue,...f("surface")(e,t),name:"Card"},slots:{[i]:[d("label",l,{...c("label",12),lineHeight:1.5},!0),{type:a,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[i]:[d("value",l,{textStyle:"heading-3",...c("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",x,{textStyle:"body-5",fontRole:"accent",...c("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...b,...g}},ut={Cards:je,KeyFeatures:De,Series:Ve,DocMetaCards:qe};export{ut as CARDS_SECTION_TO_BOX,gt as cardsPressStarter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SPLITTABLE_SECTIONS as O}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as T}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as _,SECTION_BOX as S,innerPad as h}from"./section-to-box-row-parts.js";import{HEAD_BELOW as f,headLookOf as b,headReads as u,headTree as B}from"./section-head-looks.js";import{finiteNumber as g}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as a}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as A}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as R}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{INNER_BOX as w}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as C}from"../../../../../format/lib/content/section-surface.js";const H=["Collections","
|
|
1
|
+
import{SPLITTABLE_SECTIONS as O}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as T}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as _,SECTION_BOX as S,innerPad as h}from"./section-to-box-row-parts.js";import{HEAD_BELOW as f,headLookOf as b,headReads as u,headTree as B}from"./section-head-looks.js";import{finiteNumber as g}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as a}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as A}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as R}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{INNER_BOX as w}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as C}from"../../../../../format/lib/content/section-surface.js";const H=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"],M=["Events","FitmentTable","ProductGrid","SpecTable"],n=(o,e)=>()=>({top:o,topPhone:e}),m=o=>e=>{const r=h(e,o).sectionPaddingTop;return{top:r,topPhone:r}},L={Collections:n(120,70),Events:n(120,70),FAQ:n(120,70),GalleryB:n(120,70),FitmentTable:n(120,80),SpecTable:n(120,80),LongRead:n(120,80),RelatedProducts:n(0,0),Footprint:m("Footprint"),ProcessSteps:m("ProcessSteps"),ProductGrid:o=>({top:g(o.padTop)??120,topPhone:0})};function N(o,e={}){const r=O[o],c=L[o];if(!r||!c)throw new Error(`section-to-box-rows-head: "${o}" has no head row or no head room`);const i=r.padKey,l=B(o),d=u(o),E=r.headRows.filter(t=>![r.num,r.title,r.description,"linkText","linkHref"].includes(t)),p={...Object.fromEntries(E.filter(t=>!(t in d)).map(t=>[t,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...e.drop};return{name:T[o]??o,boxProps:t=>{const s=c(t),P=e.roomBelow?{sectionPaddingBottom:e.roomBelow.bottom,sectionPaddingBottomPhone:e.roomBelow.bottomPhone}:{};return{...S,direction:"column",gap:f[b(o)],sectionPaddingTop:s.top,sectionPaddingTopPhone:s.topPhone,...P}},box:[..._,...i?[[i,"sectionPaddingTop",(t,s)=>c(s).top]]:[]],parts:[l,...(()=>{const t={...i?{[i]:0}:{},...e.coreProps},s={kind:"core",keep:"rest",...Object.keys(t).length?{props:t}:{},...e.slots?{slots:e.slots}:{}};return[e.coreBox?{kind:"group",name:e.coreBox.name,props:e.coreBox.props,parts:[s]}:s]})(),...e.partsAfter??[]],...Object.keys(d).length?{reads:d}:{},...Object.keys(p).length?{drop:p}:{},...e.pressHeading?{pressKeepsEmpty:[r.title]}:{}}}const k={...w,direction:"accordion",rowStyle:"numbered"},F={Footprint:{slots:{[a]:[A()]},pressHeading:!0},FAQ:{slots:{[a]:[R()]},pressHeading:!0,coreBox:{name:"Questions",props:k},coreProps:{sectionAccent:C},roomBelow:{bottom:120,bottomPhone:70}}},W=Object.fromEntries(H.map(o=>[o,N(o,F[o])]));export{k as FAQ_ROWS_BOX,F as HEAD_ONLY_CARD_SEEDS,W as HEAD_ONLY_SECTION_TO_BOX,H as HEAD_ONLY_TYPES,M as HOST_ROW_HEAD_TYPES,N as headOnlyRow};
|
|
@@ -2,3 +2,4 @@ import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
|
|
|
2
2
|
export declare const LOGOS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
|
|
3
3
|
export declare const logosPressStarter: () => Readonly<Record<string, unknown>>;
|
|
4
4
|
export declare const paymentPressStarter: () => Readonly<Record<string, unknown>>;
|
|
5
|
+
export declare const footerPaymentPressStarter: () => Readonly<Record<string, unknown>>;
|