efficient-web-builder 49.0.0 → 50.0.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 +28 -0
- package/dist/editor/components/EditorPagePathProvider.d.ts +4 -0
- package/dist/editor/components/EditorPagePathProvider.js +1 -0
- package/dist/editor/components/PagesPanel.js +1 -1
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/components/PreviewPartAnchors.d.ts +2 -2
- package/dist/editor/components/PreviewPartAnchors.js +1 -1
- package/dist/editor/components/SectionTextPartBridge.d.ts +3 -1
- package/dist/editor/components/SectionTextPartBridge.js +1 -1
- package/dist/editor/components/SourceStatus.d.ts +3 -3
- package/dist/editor/components/SourceStatus.js +1 -1
- package/dist/editor/components/StorefrontEditor.js +1 -1
- package/dist/editor/components/WebsiteScreenParts.js +1 -1
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/add-target.js +1 -1
- package/dist/editor/lib/document/block-source-fields.d.ts +6 -0
- package/dist/editor/lib/document/block-source-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/PaymentBadges/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/card-display-chips.d.ts +9 -3
- package/dist/editor/lib/document/card-display-chips.js +1 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.d.ts +20 -0
- package/dist/editor/lib/document/mirror-cards-field.js +1 -0
- package/dist/editor/lib/document/slot-new-children.d.ts +2 -0
- package/dist/editor/lib/document/slot-new-children.js +1 -0
- package/dist/editor/lib/sections/hero-ticker-to-strip.js +1 -1
- package/dist/editor/lib/sections/new-section-node.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +11 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +2 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/card-place.d.ts +8 -0
- package/dist/format/lib/content/card-place.js +1 -0
- package/dist/format/lib/content/card-template.d.ts +16 -2
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/mirror-cards.d.ts +32 -0
- package/dist/format/lib/content/mirror-cards.js +1 -0
- package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +15 -0
- package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Cards/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/Cards/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/text-part-shapes.json +8 -0
- package/dist/format/lib/document/cards-template-on-read.d.ts +4 -0
- package/dist/format/lib/document/cards-template-on-read.js +1 -0
- package/dist/format/lib/document/editor-page-context.js +1 -1
- package/dist/format/lib/document/renamed-props.js +1 -1
- package/dist/format/lib/document/section-catalog.js +22 -2
- package/dist/format/lib/document/seed-parts.d.ts +18 -0
- package/dist/format/lib/document/seed-parts.js +1 -0
- package/dist/format/lib/editor-page-rows.d.ts +2 -0
- package/dist/format/lib/editor-page-rows.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +20 -4
- package/dist/format/lib/editor-words-catalogue.js +4 -4
- package/dist/format/lib/hero-ticker.d.ts +4 -0
- package/dist/format/lib/hero-ticker.js +1 -1
- package/dist/format/lib/page-at-own-slug.d.ts +9 -0
- package/dist/format/lib/page-at-own-slug.js +1 -0
- package/dist/format/lib/popup/new-popup.js +1 -1
- package/dist/format/lib/sections/faq-text-regions.js +1 -1
- package/dist/format/lib/sections/section-text-regions.d.ts +1 -0
- package/dist/format/lib/sections/section-text-regions.js +1 -1
- package/dist/format/lib/sections/text-regions.d.ts +2 -0
- package/dist/format/lib/sections/text-regions.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +1 -0
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Cards.d.ts +4 -2
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/Flex.d.ts +6 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/MirrorContext.d.ts +3 -0
- package/dist/render/components/MirrorContext.js +1 -0
- package/dist/render/components/SiteGutterFrame.d.ts +1 -0
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Text.d.ts +3 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/TextRegionRun.d.ts +7 -0
- package/dist/render/components/TextRegionRun.js +1 -0
- package/dist/render/lib/content/box-shared-columns.d.ts +31 -0
- package/dist/render/lib/content/box-shared-columns.js +1 -0
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -2
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -5
- 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.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-timeline.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/editing-bridges.d.ts +2 -0
- package/dist/render/lib/document/part-styles.d.ts +26 -0
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +7 -7
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/dist/render/lib/site-runtime.d.ts +2 -0
- package/dist/render/lib/site-runtime.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as Y,jsx as e,jsxs as Uo}from"react/jsx-runtime";import{useId as Es}from"react";import{parseHexColor as vs}from"efficient-shell/format";import Ns from"./BoxTabs.js";import{BoxTabPaneContext as Ts,useIsTabPane as ks}from"./BoxTabPaneContext.js";import{CellFillContext as gs,InBoxContext as Fs,useCellOfStretchedRow as Ds,useFillsCell as Is}from"./InBoxContext.js";import Ms,{InsideSiteColumn as Wo,useInsideSiteGutter as js,useSectionRoot as Us}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Ws}from"./BoxSurfaceContext.js";import{BoxCellWidthContext as Xs}from"./BoxCellWidthContext.js";import{useInSiteHeader as Gs}from"./PhoneMenuTools.js";import{useCardRow as zs}from"./CardRowContext.js";import{framesItsCards as Hs}from"../../format/lib/content/card-place.js";import{MirrorContext as Js,useMirroredCopy as Ks,useUnderCardBox as Ys}from"./MirrorContext.js";import{isMirroredCopy as qs,mirrorCardsActs as Qs,mirroredBoxClass as Vs,MIRROR_ROW_CLASS as Zs,ownsCard as oe}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as q,FRAME_GUTTER as Q}from"./BlockFrame.js";import{containerGapProps as se}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ee,boxBlockSpacingClass as te,boxFitContentClass as re,boxRowColumnsClass as ne,boxRowTabletColumnsClass as le,boxPhoneRowClasses as R,boxPhoneRowFits as ae,boxShareClasses as V,boxWrapClass as ce}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as me,boxSeparatorSeamClass as ie,boxSeparatorStyle as ue,isStripBox as de}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as fe,DEFAULT_LOOP_DIRECTION as Ce,DEFAULT_LOOP_SECONDS as pe,isVerticalLoop as be}from"../../format/lib/animation/index.js";import{LoopTrack as xe}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as c,BOX_OWNS_SIDES_CLASS as Se,boxDarkenStyle as $e,boxPlacementClasses as he,CARD_SHADOW_CLASS as _e,isBackgroundBox as Xo}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as Go}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Pe,drawsSiteGutter as Re}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Le,boxShapeClasses as ye}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Ae,BOX_LINK_ATTR as zo,BOX_LINK_CLASS as Ho,BOX_LINKED_CLASS as Be,boxJumpBlocksClass as we,boxJumpCss as Oe,boxJumpSlug as Ee,boxLinkOf as ve}from"../../format/lib/content/box-link.js";import{SiteLink as Ne}from"../lib/site-runtime.js";import{sectionBorderStyle as Jo}from"../../format/lib/content/borders.js";import{finiteNumber as m}from"../../format/lib/finite-number.js";import{sectionPadAttrs as Te}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as k}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as ke}from"../../format/lib/content/ink.js";import{sizedBackground as Z}from"../../format/lib/sized-image.js";import{BoxRail as ge,BoxRailStop as Fe,RAIL_STOPS_CLASS as De,useTimelineRail as Ie}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Me,sharedColumnsClasses as je,sharedColumnsCss as Ue}from"../lib/content/box-shared-columns.js";const oo={"--sf-site-gutter":"0px"},We={overflowX:"clip",overflowY:"visible"},Xe={desktop:!1,phone:!1},Ge="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",so=o=>o==null||o==="",eo=o=>!so(o)&&Number(o)===0;function ze({children:o}){return e(Y,{children:o(Es())})}function He({direction:o,label:Ko,tabShape:Yo,gap:to,gapPhone:qo,gapTablet:g,justify:L,align:f,wrap:ro,share:b,sharePhone:F,wrapPhone:Qo,phoneRow:y,columns:D,columnsTablet:no,separator:i,blockSpacing:Vo,bgImage:x,bgImagePhone:lo,darken:Zo,darkenStyle:os,placement:ss,padV2:ao=!1,border:co,borderPhone:mo,pad:r={},contained:I=!0,fillHeight:u=!1,shadow:io,loop:S,scrollDirection:M=Ce,loopSeconds:es=pe,loopDelay:ts=fe,editing:uo=!1,fillColor:fo,line:A,upcoming:rs,link:ns,boxShape:Co,boxShapePhone:ls,jumpHighlight:as,anchor:cs,sharedSides:B=Xe,boxId:po,mirrorCards:ms,content:$}){const C=uo?"":ve(ns),n=u?"":ye(Co,ls),is=!u&&Le(Co)!=="",d=Ee(as,cs),j=typeof fo=="string"?vs(fo.trim()):null,bo=j?{backgroundColor:j}:void 0,xo=Ie(),U=A===!0&&o!=="tabs",t=Xo(x),w=Gs(),us=Us(),So=ks(),W=Is(),ds=Ds(),O=de(o,i),l=S==="scroll"&&o!=="tabs",p=zs(),fs=Ks(),Cs=Ys(),E=oe({inCopy:p!==null,nestedCopy:p?.nested===!0,underBox:Cs}),$o=E&&Hs(p?.ownerType),ho=Qs({direction:o,separator:i,loop:S,line:A,bgImage:x,columns:D,columnsTablet:no,share:b,wrap:ro},E,B.desktop)&&qs(ms,p?.index),_o=t||E?"":Vs(fs,o,l?void 0:L,f),v=ne({direction:o,separator:i,loop:S,line:A,columns:D}),X=le({direction:o,separator:i,loop:S,line:A,columnsTablet:no}),ps=js(),N=je(B,$.blockCount??0),bs=N&&(!p||p.index===0)?Ue(B,$.blockCount??0):"",Po=[V(b),o==="row"?re(b):"",v,X,te(Vo),me(o,i)].filter(Boolean).join(" "),xs=Po?` ${Po}`:"",Ro=["flex",o==="row"?O||l?"flex-row":`flex-row ${R(y,F,Qo)}`:"flex-col",ce(l?!1:ro),t?he(ss??"center",o):ee(l?void 0:L,f)+(_o?` ${_o}`:"")].join(" ")+xs,h=u||t||n||W?` ${k}`:"",G=is?` ${n}`:n?`${h} ${n}`:h,Lo=ds&&o==="column"&&!t&&!l&&V(b)===""&&typeof L=="string"&&L!=="start",yo=h||(Lo?` ${k}`:""),z=C?` ${Be}`:"",H=t||w||ao?"":" py-6",Ss=`${q}${H} ${Q}${G}${z}`,$s=w?`${G}${z}`.trim():`w-full${H}${G}${z}`,_=se("Flex",to,o==="row"?"inline":"block",qo,O||l?void 0:g),hs=O?{..._.style,...ue(o,i)}:_.style,Ao=(s="")=>e($,{className:`${Ro}${ho?` ${Zs}`:""}${_.className}${yo}${s?` ${s}`:""}${U?` ${De}`:""}${d?` ${we(d)}`:""}${N}`,style:hs,minEmptyHeight:120}),Bo=be(M)?"":ie(o,i),wo=l?e(xe,{direction:M,seconds:es,delay:ts,editing:uo,copy:s=>Ao(s&&Bo?`${s} ${Bo}`:s)}):Ao(),Oo=o==="tabs"?e(Ns,{className:`${Ro}${_.className}${W&&!u&&!t&&!n?"":h}`,style:_.style,shape:Yo,children:wo}):wo,Eo=So?e(Ts.Provider,{value:!1,children:Oo}):Oo,_s={stretchedRow:o==="row"&&!t&&(f===void 0||f==="stretch"),fillingColumn:o==="column"&&(W||Lo),columnsRow:v!==""||X!==""||N!=="",...po?{id:po}:null},vo=e(Fs.Provider,{value:_s,children:e(gs.Provider,{value:!1,children:E?e(Js.Provider,{value:ho,children:Eo}):Eo})}),J=U?e(ge,{row:o==="row",stops:$.blockCount??0,children:vo}):vo,Ps=Ko?.trim()||(So?"":void 0),Rs={values:r,frame:H?24:0},Ls=s=>xo?e(Fe,{on:xo,future:rs===!0,children:s}):s,ys=s=>C.startsWith("/")?e(Ne,{href:C,className:Ho,"aria-labelledby":s,[zo]:""}):e("a",{href:C,className:Ho,"aria-labelledby":s,[zo]:""}),No=(d?Oe(d):"")+bs,To=No?e("style",{dangerouslySetInnerHTML:{__html:No}}):null,P=Pe({loop:S,direction:o,scrollDirection:M,bgImage:x}),As=B.desktop&&N!==""&&!j&&!Jo(co,mo)&&Object.keys(Go(io)).length===0&&!C&&!n&&!u&&!d&&!Re(I&&!P,ps)&&eo(to)&&(so(g)||eo(g))&&ao&&Object.values(r).every(s=>so(s)||eo(s)),Bs=s=>({...As?{[Me]:""}:null,...t?null:Go(io),...d?{[Ae]:d}:null,...s?{id:s}:null}),ko=v!==""?Number(D):0,ws=R(y,F)===R(void 0),Os=(o==="column"||o==="row"&&!O&&!l&&(ko===1&&ws||ko===0&&$.blockCount===1))&&!t&&!U&&!w,go=t&&us&&!w,Fo=(s,a)=>Ls(e(Ms,{contained:I&&!P,style:P?oo:void 0,framedClass:Ss,fillClass:$s,columnClass:`${q} ${Q}${yo}`,tabLabel:Ps,pad:t?void 0:Rs,border:Jo(co,mo),outerAttrs:Bs(a),box:!0,edge:Os,outerStyle:t?void 0:bo,bleed:go,children:To||a?Uo(Y,{children:[To,a?ys(a):null,P?e(Wo,{children:s}):s]}):P?e(Wo,{children:s}):s})),Do=s=>C?e(ze,{children:a=>Fo(s,a)}):Fo(s);if(!t){const s=f===void 0||f==="stretch",a=(V(b)!==""||v!==""||X!=="")&&!ae(y,F)&&(s||R(y)!==R(void 0));return Do((o==="row"?a:o==="column"&&s)?e(Xs.Provider,{value:!0,children:J}):J)}const T=$e(Zo,os),Io=Xo(lo),K=Te({...r,top:m(r.top)??c.desktop,bottom:m(r.bottom)??c.desktop,topPhone:m(r.topPhone)??c.phone,bottomPhone:m(r.bottomPhone)??c.phone,left:m(r.left)??c.side,right:m(r.right)??c.side,leftPhone:m(r.leftPhone)??c.sidePhone,rightPhone:m(r.rightPhone)??c.sidePhone}),Mo=e("div",{className:`relative z-[1] ${Se} ${K?.className??""}${u||n?` ${k}`:""}`.trimEnd(),style:T?{...K?.style,...oo,...ke}:{...K?.style,...oo},children:J}),jo=go&&I?e("div",{className:`${q} ${Q}${u||n?` ${k}`:""}`,children:Mo}):Mo;return Do(e(Y,{children:Uo("div",{className:`relative isolate overflow-hidden ${_e}${h}${Io?` ${Ge}`:""}`,style:{...$o?We:{},...bo,...Io?{"--sf-box-bg":Z(x??""),"--sf-box-bg-p":Z(lo??"")}:{backgroundImage:Z(x??""),backgroundSize:"cover",backgroundPosition:"center"}},children:[T&&e("div",{className:$o?"absolute inset-0 z-0 rounded-[inherit]":"absolute inset-0 z-0",style:T,"aria-hidden":!0}),T?e(Ws,{children:jo}):jo]})}))}export{He as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{createContext as t,useContext as r}from"react";const e=t(null);function n(){return r(e)===!0}function u(){return r(e)!==null}export{e as MirrorContext,n as useMirroredCopy,u as useUnderCardBox};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode } from "react";
|
|
2
2
|
import { type PadValues } from "../lib/content/section-padding.js";
|
|
3
3
|
import type { SectionEdge } from "../lib/content/section-edge.js";
|
|
4
|
+
export declare function useInsideSiteGutter(): boolean;
|
|
4
5
|
export declare function InsideSiteColumn({ children }: {
|
|
5
6
|
children?: ReactNode;
|
|
6
7
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,Fragment as T}from"react/jsx-runtime";import{createContext as
|
|
1
|
+
"use client";import{jsx as e,Fragment as T}from"react/jsx-runtime";import{createContext as f,useContext as t}from"react";import{rootPadAttrs as k,wrapperPadAttrs as q}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as z,SECTION_BORDER_SELF_CLASS as H}from"../../format/lib/content/borders.js";import{drawsSiteGutter as J}from"../../format/lib/content/site-gutter.js";const i=f(!1);function Y(){return t(i)}function Z({children:n}){return e(i.Provider,{value:!0,children:n})}const S=f(!1);function $({children:n}){return e(S.Provider,{value:!0,children:n})}const x=f(!1);function b({atTop:n,nested:r}){return e(T,{children:t(x)?r:n})}const c=f(void 0);function ee({children:n}){return e(c.Provider,{value:null,children:n})}function ne(){return t(c)===void 0&&!t(x)&&!t(i)}function te(){return t(c)??null}function K({contained:n,framedClass:r,fillClass:j,columnClass:w,style:C,tabLabel:y,pad:o,border:u,outerAttrs:m,box:g=!1,edge:A=!1,outerStyle:a,bleed:N=!1,children:P}){const F=t(i),B=t(S),d=J(n,F),s=d&&!B,v=o&&!s?k(o.values,o.frame):null,p=u&&!s?u:null,G=[s?r:j,v?.className,p?H:null].filter(Boolean).join(" "),E=M(N&&s,v||p?{...C,...v?.style,...p}:C),L=t(c),D=g&&A&&L===void 0?{gutter:d,...o?{pad:o.values}:{}}:null,R=g?e(x.Provider,{value:!0,children:e(c.Provider,{value:D,children:P})}):P,h=d?e(i.Provider,{value:!0,children:R}):R,l=o&&s?q(o.values):null,I=m&&Object.keys(m).length>0?m:null,O=e("div",{...l?null:I,className:G,style:l||!a?E:{...E,...a},"data-tab-label":y,children:B?e(S.Provider,{value:!1,children:d&&!N?e("div",{className:w,children:h}):h}):h}),_=l?e("div",{...I,className:l.className,style:a?{...l.style,...a}:l.style,children:O}):O;return u&&s?e("div",{className:z,style:{display:"contents",...u},children:_}):_}function M(n,r){return n?{...r,paddingLeft:0,paddingRight:0}:r}export{Z as InsideSiteColumn,b as NestedBoxChoice,ee as NotASectionEdge,$ as SplitBandAndColumn,K as default,Y as useInsideSiteGutter,te as useSectionEdge,ne as useSectionRoot};
|
|
@@ -14,7 +14,9 @@ interface TextProps {
|
|
|
14
14
|
textStyle?: string;
|
|
15
15
|
contained: boolean;
|
|
16
16
|
hero?: boolean;
|
|
17
|
+
partAlign?: unknown;
|
|
18
|
+
onLine?: boolean;
|
|
17
19
|
}
|
|
18
20
|
export declare function headingLevelOfStyle(id: string): HeadingLevel;
|
|
19
|
-
export default function Text({ text, number, align, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth }: TextProps): import("react").JSX.Element;
|
|
21
|
+
export default function Text({ text, number, align, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine }: TextProps): import("react").JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as _}from"react/jsx-runtime";import y from"./BlockFrame.js";import{renderGold as f,renderHeadline as k,splitParagraphs as w}from"./goldPhrases.js";import{headingLook as O}from"./Heading.js";import{alignPhoneClass as j}from"../../format/lib/content/block-align.js";import{textTagOf as z}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as I,kickerLead as L}from"../lib/content/page-contents.js";import{isTextStyleId as R}from"../lib/document/part-styles.js";import{faceClassOf as $}from"../../format/lib/text-style-face.js";import{useMirroredCopy as A}from"./MirrorContext.js";import{mirroredTextClasses as b}from"../../format/lib/content/mirror-cards.js";const i={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)]"},T=e=>e?` ${e}`:"";function M(e,o){const t=j("place",e,o);return t?` ${t}`:""}const U={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},B=`max-w-[380px] ${i.bodySmall} leading-[1.5] opacity-80 ${i.bodyUpTo800}`,G={default:"text-fg",dim:"text-fg-dim"};function H(e){return String(Math.min(Number(e.slice(8)),6))}function K({text:e,number:o,align:t,alignPhone:N,tone:v,contained:p,hero:C=!1,pad:l,tag:S,textStyle:x,ownWidth:E=!1,partAlign:h,onLine:n=!1}){const u=A();if(C)return r("p",{className:B,children:f(e)});const d=o?r("span",{[I]:"",children:L(o)}):void 0,a=R(x)?x:void 0,g=`${a?`${$({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?i.label:i.bodyLarge} leading-[1.7] ${U[t]}${M(t,N)} ${G[v]}${T(b(u,t,h))}`,m=z(S);if(a?.startsWith("heading-")){const c=H(a),s=O(c,$({id:a}));return r(y,{contained:p,className:n?"":"py-6",pad:l?{values:l,frame:n?0:24}:void 0,children:_(m,{className:`${s.className}${T(b(u,void 0,h))}`,style:s.style,children:[d,k(e.trim(),!1)]})})}return r(y,{contained:p,className:n?"":"py-4",pad:l?{values:l,frame:n?0:16}:void 0,children:m==="p"?w(e).map((c,s)=>r("p",{className:g,children:f(c,!1,s===0?d:void 0)},s)):r(m,{className:g,children:f(e.trim(),!1,d)})})}export{K as default,H as headingLevelOfStyle};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type PartStyles } from "../lib/document/part-styles.js";
|
|
3
|
+
export default function TextRegionRun({ region, partStyles, children, }: {
|
|
4
|
+
region: string;
|
|
5
|
+
partStyles: PartStyles | undefined;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as o,jsx as r}from"react/jsx-runtime";import m from"./PartStyledKind.js";import{regionSheetStyle as a}from"../lib/document/part-styles.js";import{textRegionPartKey as f}from"../../format/lib/sections/text-regions.js";function d({region:n,partStyles:i,children:t}){const e=f(n);return a(i?.[e])?r(m,{kind:e,children:t}):r(o,{children:t})}export{d as default};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const SHARED_COLUMNS_KEY = "sharedColumns";
|
|
2
|
+
export declare const SHARED_COLUMNS_OFF = "own";
|
|
3
|
+
export declare const SHARED_COLUMNS_LABEL = "Row columns";
|
|
4
|
+
export declare const SHARED_COLUMNS_POINTS: readonly [{
|
|
5
|
+
readonly value: "own";
|
|
6
|
+
readonly label: "Each row";
|
|
7
|
+
}, {
|
|
8
|
+
readonly value: "shared";
|
|
9
|
+
readonly label: "Shared";
|
|
10
|
+
}];
|
|
11
|
+
export declare const SHARED_COLUMNS_PHONE_POINTS: readonly [{
|
|
12
|
+
readonly value: "own";
|
|
13
|
+
readonly label: "Each row";
|
|
14
|
+
}, {
|
|
15
|
+
readonly value: "scroll";
|
|
16
|
+
readonly label: "Shared, scroll";
|
|
17
|
+
}];
|
|
18
|
+
export declare function sharedColumnsFits(props: Record<string, unknown>): boolean;
|
|
19
|
+
export declare function sharedColumnsDrawn(props: Record<string, unknown>): {
|
|
20
|
+
desktop: boolean;
|
|
21
|
+
phone: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare function sharedColumnsClasses(sides: {
|
|
24
|
+
desktop: boolean;
|
|
25
|
+
phone: boolean;
|
|
26
|
+
}, n: number): string;
|
|
27
|
+
export declare const SHARED_PLAIN_ATTR = "data-sf-shared-plain";
|
|
28
|
+
export declare function sharedColumnsCss(sides: {
|
|
29
|
+
desktop: boolean;
|
|
30
|
+
phone: boolean;
|
|
31
|
+
}, n: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{REPEAT_ATTRIBUTE as l,phoneKey as f,tabletKey as b}from"efficient-easel/draw";import{parseLoop as C}from"../../../format/lib/animation/loop.js";import{finiteNumber as S}from"../../../format/lib/finite-number.js";import{isBackgroundBox as _}from"../../../format/lib/content/box-background.js";import{isStripBox as g}from"../../../format/lib/content/box-separator.js";import{BOX_ALIGN_CLASS as r,boxRowColumnsClass as x,boxRowTabletColumnsClass as E}from"../../../format/lib/content/box-layout.js";const i="sharedColumns",c="shared",$="own",u="scroll",U="Row columns",M=[{value:$,label:"Each row"},{value:c,label:"Shared"}],B=[{value:$,label:"Each row"},{value:u,label:"Shared, scroll"}],O="(width >= 800px)",N="(width < 800px)";function A(t){const o={direction:t.direction,separator:t.separator,loop:C(t.loop),line:t.line};return o.direction==="row"&&!g(o.direction,o.separator)&&o.loop!=="scroll"&&o.line!==!0&&!_(typeof t.bgImage=="string"?t.bgImage:void 0)&&x({...o,columns:t.columns})===""&&E({...o,columnsTablet:t[b("columns")]})===""}function R(t){return Array.isArray(t)?t.filter(o=>typeof o?.type=="string").length:S(t?.blockCount)??0}function K(t){return A(t)&&a(R(t.content))>0?y(t[i],t[f(i)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,d=t=>`sf-shared-cols-${t}`,m=t=>`sf-shared-cols-phone-${t}`;function y(t,o){return{desktop:t===c,phone:o===u}}function F(t,o){const n=a(o);return n?`${t.desktop?` ${d(n)}`:""}${t.phone?` ${m(n)}`:""}`:""}function p(t){const o=`[${l}]`;return`:has(> ${o} ${t}):not(:has(> ${o} ${o} ${t}))`}function h(t,o,n=""){const e=p(t);return`${e}{display:grid;grid-template-columns:${o};column-gap:0${n}}${e}>:not(:has(${t})):not(${t}){grid-column:1/-1}${e} :has(${t}),${e} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const L="data-sf-shared-plain";function H(t){const o=`[${l}]`,n=`[${L}]`,e=p(t)+`:not(:has(> :not(${o}) > :not(${n}) ${t})):not(:has(> ${o} > * > :not(${n}) ${t})):not(:has(:not(${n}) > :not(${n}) > ${t}))`,s=`${e}>:not(style):not(:has(${t})):not(${t})`;return`${e}{display:table;width:100%;border-collapse:collapse}${e}>:has(${t}),${e}>${o}>:has(${t}),${e} ${n}:has(${t}),${e} ${n}>:has(${t}){display:contents}${e} ${t}{display:table-row}${e} ${t}>*{display:table-cell;width:auto;vertical-align:top}${e} ${t}.${r.center}>*{vertical-align:middle}${e} ${t}.${r.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${o}){caption-side:top}`}function w(t,o){const n=a(o);if(!n)return"";let e="";if(t.desktop){const s=`.${d(n)}`;e+=`@media ${O}{${h(s,`repeat(${n},auto)`)}${H(s)}}`}return t.phone&&(e+=`@media ${N}{${h(`.${m(n)}`,`repeat(${n},minmax(max-content,auto))`,";overflow-x:auto")}}`),e}export{i as SHARED_COLUMNS_KEY,U as SHARED_COLUMNS_LABEL,$ as SHARED_COLUMNS_OFF,B as SHARED_COLUMNS_PHONE_POINTS,M as SHARED_COLUMNS_POINTS,L as SHARED_PLAIN_ATTR,F as sharedColumnsClasses,w as sharedColumnsCss,K as sharedColumnsDrawn,A as sharedColumnsFits};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as s,jsxs as j,Fragment as u}from"react/jsx-runtime";import v,{cardGridCornerClasses as H}from"../../../../../components/Cards.js";import{CardTemplateRows as I}from"../../../../../components/CardRowContext.js";import{cardKeyOf as K,cardRow as T}from"../../../../../../format/lib/content/card-template.js";import B from"../../../../../components/KeyFeatures.js";import{hidableText as D}from"efficient-easel/draw";import{declaredBlockSource as w,sourceChoices as L,sourcedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{KEY_FEATURES_PH as k,keyFeaturesScaffoldItems as N}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{parseSectionHeadPlacement as P}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as S}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as E,phHide as y}from"../../scaffold.js";import{say as m}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as h}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as O,CARDS_PH as R}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const x=()=>[{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.")}],A=()=>x().map(e=>({[h.title]:e.title??"",[h.body]:e.body??""}));function W(e){return w(e)?C(e,e.editor?.isEditing===!0,A()).rows.filter(i=>i[h.title]||i[h.body]).map(i=>({title:i[h.title]??"",body:i[h.body]??""})):null}const G=e=>typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",_=e=>Object.entries(e).some(([i,r])=>i!=="key"&&i!=="badge"&&typeof r=="string"&&r.trim()!==""),F=new WeakSet;function M(e){const i=e.editor?.isEditing===!0,r=w(e),d=G(e),n=typeof e.highlightBadge=="string"?e.highlightBadge:"",c=(t,g=[])=>t.map((l,f)=>({...l,key:l.key||g[f]?.key||K(l,f)})),a=t=>{const g=d?t.findIndex(l=>l.key===d):-1;return t.map((l,f)=>{const b={...l,badge:f===g?n:""};return f===g&&F.add(b),b})};if(r){const t=C(e,i,A());return a(c(t.rows,t.sample?L(r):[]).filter(_))}const o=E(e.items,x(),e.editor).map(T);return a(c(o).filter(t=>i||_(t)))}function U(e,i,r){const d=r?`relative bg-bg ${r}`:"relative bg-bg";return F.has(i)?j("div",{className:d,"data-sf-card-highlighted":"",children:[e,s("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 border border-accent"})]}):s("div",{className:d,children:e})}const oe={...O,render:e=>{const i=P(e.headPlacement)==="own-box",r=o=>i?void 0:o,d=(e.template?.blockCount??0)>0,n=W(e);if((!d||e.cardStyle==="label-only")&&n&&!n.length)return s(u,{});if(e.cardStyle==="label-only"){const o=n?n.map(t=>({label:t.title??"",href:void 0})):Array.isArray(e.items)?e.items.map(t=>({label:D(t.title)??"",href:typeof t.href=="string"?t.href:void 0})):[];return s(B,{look:S(e.eyebrowLook,"KeyFeatures"),eyebrow:r(y(e.eyebrow,k.eyebrow,e.editor)),title:r(y(e.title,k.title,e.editor)),items:n?o:E(o,N(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}const c=o=>s(v,{look:S(e.eyebrowLook,"Cards"),eyebrow:r(y(e.eyebrow,R.eyebrow,e.editor)),title:r(y(e.title,R.title,e.editor)),omitHead:i,editing:e.editor?.isEditing,cards:o}),a=d?M(e):[];return d&&n&&!a.length?s(u,{}):s(I,{ownerId:String(e.id??""),ownerType:"Cards",Template:e.template,rows:a,fallback:c(),wrapCopy:(o,t)=>U(o,t.row,H(t.index,a.length,e.columns)),children:o=>a.length?c(o):c()})}};export{oe as CardsRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{phoneKey as o,tabletKey as l}from"efficient-easel/draw";import{sharedColumnsDrawn as c}from"../../../../content/box-shared-columns.js";import{CountRowsContext as d,NO_COUNTS as r}from"../../../../../components/CountRowsContext.js";import m from"../../../../../components/Flex.js";import{loopDelayOf as h,loopSecondsOf as g,parseLoop as u,parseLoopDirection as b}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as w}from"../../../../content/section-padding.js";import{sectionFillsHeight as y}from"../../../../../../format/lib/content/section-min-height.js";import{FlexMeta as C}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const T={...C,render:e=>{const i=n(m,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[o("gap")],gapTablet:e[l("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[o("share")],wrapPhone:e[o("wrap")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[l("columns")],separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:w(e),contained:e.contained,fillHeight:y(e),shadow:e.shadow,loop:u(e.loop),scrollDirection:b(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:h({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[o("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:c(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content}),a=S(e),t=a?a===f?x(e):r:null;return n(d.Provider,{value:t,children:i})}};export{T as FlexRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as u,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as h}from"../../../../../components/CardRowContext.js";import{CountDrawn as b}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as R}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as S}from"../../../../content/page-contents.js";import{namedRowField as C}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as E,TOP_LINE_CLASS as I,cardPlaceOf as O,framesItsCards as N}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as k,blockSizeValuesOf as A}from"../../../../content/block-size.js";import{linkedCount as F}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as K}from"../../../../content/section-padding.js";import L from"../../../../../components/Text.js";import{hidableText as a,readHidable as D}from"efficient-easel/draw";import{PH as x}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as W}from"../../scaffold.js";import{readPartStyle as j}from"../../../part-styles.js";import{TextMeta as v}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const rt={...v,render:t=>{const{text:i,align:g,alignPhone:p,tone:T,tag:w,contained:P,editor:m}=t;if(D(i).hidden)return r(u,{});const{textStyle:f,align:y}=j(t,"text"),_=f?.startsWith("heading-")?x.heading:x.body,o=(e,n,d)=>r(L,{text:W(e,_,m)??"",number:n,align:g,alignPhone:p,tone:T,tag:w,textStyle:f,partAlign:y,ownWidth:k(A(t)),contained:P,pad:K(t),onLine:d}),l=C(t),c=F(t);if(c)return r(b,{countKey:c,children:e=>o(e??a(i))});const s=()=>{if(!l){const e=t[S];return typeof e=="string"?o(a(i),e):r(R,{id:t.id,children:n=>o(a(i),n)})}return r(h,{type:"Text",props:t,children:e=>o(a(e.text))})};return O(t)!=="top-line"?s():r(h,{type:"Text",props:t,children:(e,n)=>{if(!n||!N(n.ownerType))return s();const d=a(l?e.text:i);return!d?.trim()&&!m?.isEditing?r(u,{}):r("div",{className:I,[E]:"",children:o(d,void 0,!0)})}})}};export{rt as TextRender};
|
|
@@ -4,7 +4,6 @@ export type HeadLook = "standard" | "editorial" | "simple" | "essay" | "shelf";
|
|
|
4
4
|
export declare function headLookOf(type: string): HeadLook;
|
|
5
5
|
export declare const HEAD_BELOW: Readonly<Record<HeadLook, number>>;
|
|
6
6
|
export declare function editorialHeadTree(num: string, title: string, description: string): PartRow;
|
|
7
|
-
export
|
|
7
|
+
export { token } from "../../../../../format/lib/document/seed-parts.js";
|
|
8
8
|
export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
|
|
9
9
|
export declare function headTree(type: string): PartRow;
|
|
10
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{readHidable as N}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as B,DIM as E,INNER_BOX as o,SH_LINK as L,TEXT as
|
|
2
|
-
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...d,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},c(e.title,{...
|
|
1
|
+
import{readHidable as N}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as B,DIM as E,INNER_BOX as o,SH_LINK as L,TEXT as P,smallText as _}from"./section-to-box-row-parts.js";import{labelTextSeed as O}from"../../../../../format/lib/document/text-seeds.js";import{token as a}from"../../../../../format/lib/document/seed-parts.js";function M(e){if(e==="ProductGrid")return"shelf";const t=T[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const U={standard:64,editorial:60,simple:36,essay:28,shelf:20},I={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=T[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function X(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=H({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const h={top:0,right:0,bottom:1,left:0};import{token as q}from"../../../../../format/lib/document/seed-parts.js";const k=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>_(e,{...a("label",t),...n}),A=(e,t)=>{const n=N(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},c=(e,t)=>({kind:"text",key:e,role:"heading",props:P,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...E,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),b={...B,align:"right",alignPhone:"left",...L,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),w=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...P,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?C(O()):{},...n.style}}}}},C=e=>e._partStyles.text??{},d={widthFitPhone:"fill"};function F(e,t){const n=I[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=c(t.title,i?{...k("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:h,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...d,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...d,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[w(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...d},parts:[S,...g?[w(t.title,`Three ranges,
|
|
2
|
+
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...d,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},c(e.title,{...k("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:u},parts:e.description?[m(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function x(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],R=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function j(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:h,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>R(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[m(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[f(13)]:[]]}]}}const p=new Map;function G(e){const t=p.get(e);if(t)return t;const n=W(e),i=M(e),r=i==="editorial"?H(n):i==="simple"?x(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?x(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?j(n):F(e,n);return p.set(e,r),r}export{U as HEAD_BELOW,X as editorialHeadTree,k as fluidToken,M as headLookOf,G as headTree,q as token};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { SECTION_PAD_INNER_DEFAULTS } from "../../passes/section-padding.js";
|
|
2
2
|
import { type BoxEntry, type ConvertContext, type OwnProps, type PartRow, type SiteWrite } from "../../../sections/section-to-box.js";
|
|
3
3
|
type Props = Record<string, unknown>;
|
|
4
|
-
export
|
|
4
|
+
export { BOX, DIM, INNER_BOX, TEXT } from "../../../../../format/lib/document/seed-parts.js";
|
|
5
5
|
export declare const NUMBER_TEXT: Props;
|
|
6
|
-
export declare const DIM: Props;
|
|
7
6
|
export declare const BUTTON: Props;
|
|
8
7
|
export declare const SH_LINK: Props;
|
|
9
|
-
export declare const BOX: Props;
|
|
10
|
-
export declare const INNER_BOX: Props;
|
|
11
8
|
export declare const SECTION_BOX: Props;
|
|
12
9
|
export declare const SAME_KEYS: readonly BoxEntry[];
|
|
13
10
|
export declare const DROP_COMMON: Readonly<Record<string, string>>;
|
|
@@ -50,4 +47,3 @@ export declare const lineSides: (sides: {
|
|
|
50
47
|
left?: number;
|
|
51
48
|
}) => Props;
|
|
52
49
|
export declare const pictureCell: (name: string, key: string, props: OwnProps, parts?: readonly PartRow[]) => PartRow;
|
|
53
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as b}from"efficient-easel/draw";import{
|
|
1
|
+
import{phoneKey as b}from"efficient-easel/draw";import{BOX as u,INNER_BOX as T,TEXT as P}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as f}from"../../../animation/entrance.js";import{COUNT_KEY_PROP as x}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as B}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as _}from"../../../content/section-padding.js";import{ButtonBlockMeta as E}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as O}from"../../passes/section-padding.js";import{finiteNumber as s}from"../../../../../format/lib/finite-number.js";import{convertTheme as a,hasWords as N}from"../../../sections/section-to-box.js";import{bandPresetIndex as S}from"../../../../../format/lib/theme.js";import{BOX as mt,DIM as lt,INNER_BOX as bt,TEXT as ut}from"../../../../../format/lib/document/seed-parts.js";const A={...P,[x]:""},{label:j,href:Y,...I}=E.defaultProps,J=I,V={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},z={...u,sectionAccent:0},q=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(f).flatMap(t=>[t,b(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],r="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",Q={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:r,fullWidth:r,pageWidth:r,backgroundWidth:r,contentWidth:r,contentMax:r},Z=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 R(t,o){const e=s(t.sectionPaddingTop)??0,n=s(t.sectionPaddingBottom)??0,i=s(t.sectionPaddingTopTablet),d=s(t.sectionPaddingBottomTablet);return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,...i===void 0?{}:{sectionPaddingTopTablet:i+o.top},...d===void 0?{}:{sectionPaddingBottomTablet:d+o.bottom},sectionPaddingTopPhone:(s(t.sectionPaddingTopPhone)??i??e)+o.topPhone,sectionPaddingBottomPhone:(s(t.sectionPaddingBottomPhone)??d??n)+o.bottomPhone}}const tt=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>R(n,typeof t=="function"?t(n):t)[o]]);function c(t,o){const e=_(t,O[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const ot=t=>[["padTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>c(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>c(e,t).sectionPaddingBottom]],y={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},et=t=>o=>N(o.props[t])?[y]:[],nt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:P,...o?{style:o}:{}}),h=t=>t.background!=="transparent",D=(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},m={align:"right",alignPhone:"left"},k=(t,o,e)=>{const n=i=>D(i[t],i[o]);return{kind:"block",type:"Text",when:(i,d)=>d!==void 0&&n(d)!=="",box:[[t,"text",(i,d)=>n(d)],[o,"text",(i,d)=>n(d)]],props:e}},it=(t,o,e,n={})=>k(t,o,{...A,...m,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...m}}}),p=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:a(o)?.selected??0,l=(t,o)=>a(o)?.themes[p(t.sectionAccent??0,o)],v=t=>(o,e)=>{const n=l(o,e)?.[t];return n?{fillColor:n}:{}},dt=(t,o)=>{const e=l(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},g=(t,o)=>{const e=a(o)?.themes;return e&&h(t)?S(e,p(t.sectionAccent,o)):-1},st=(t,o,e)=>{const n=g(o,e);return n>=0?n:t},rt=(t,o)=>{const e=g(t,o);return e>=0?{sectionAccent:e}:{}},ct=(t,o)=>h(t.props)&&g(t.props,o)<0?[{kind:"band-preset",page:p(t.props.sectionAccent,o)}]:[],at=t=>B(t.site?.siteGutter),C=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),pt=t=>({top:0,right:0,bottom:0,left:0,...t}),gt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,d)=>({...T,...C,...v("surface")(i,d),...typeof e=="function"?e(i,d):e}),box:[[o,"bgImage"]],parts:n});export{mt as BOX,J as BUTTON,lt as DIM,Q as DROP_COMMON,Z as DROP_SIDE_PADDING,y as HEADING_CASE_UPPER,bt as INNER_BOX,C as NO_PAD,A as NUMBER_TEXT,m as RIGHT_WORDS,q as SAME_KEYS,z as SECTION_BOX,V as SH_LINK,ut as TEXT,st as bandAccent,g as bandIndex,p as bandPage,rt as bandProps,ct as bandWrites,v as fillFrom,et as headingCaseOf,c as innerPad,ot as innerPadKeys,it as leadLine,k as leadText,dt as lineBorder,pt as lineSides,D as numberAndUnit,gt as pictureCell,l as sectionPage,at as siteGutterOf,nt as smallText,R as wrapperPad,tt as wrapperPadKeys};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as M,readHidable as f}from"efficient-easel/draw";import{parseHexColor as X}from"efficient-shell/format";import{cardColumns as j}from"../../../../components/Cards.js";import{resolveSectionBackground as G,THEME_SECTION_BG as S}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as J}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as q}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as x}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as U}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as V}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as Y}from"../../../sections/section-to-box.js";import{BOX_TYPE as l,CONTAINER_BLOCKS_SLOT as p}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as z}from"../../../../../format/lib/document/text-seeds.js";import{CARDS_BODY_LOOK as Q,CARDS_CARD as Z,CARDS_TITLE_LOOK as $,rowFieldTextSeed as a}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{bandAccent as ee,bandProps as oe,bandWrites as te,BUTTON as re,DIM as h,DROP_COMMON as m,DROP_SIDE_PADDING as g,INNER_BOX as t,SAME_KEYS as w,SECTION_BOX as u,fillFrom as c,SH_LINK as ne,TEXT as n,smallText as se,wrapperPad as y,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{headTree as k,token as i}from"./section-head-looks.js";import{boxPadding as ae}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as ie}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const d=(e,o,r,W)=>({sectionBorder:{top:e,right:o,bottom:r,left:W}}),O=e=>o=>j(x(o.columns)??x(e.columns)),_=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...d(1,0,0,1)},parts:[e]}),C={...t,direction:"row",gap:0,share:"equal"},R="its head sits in a Box of its own above it (own-box): the row draws the head inline",T=e=>V(e.headPlacement)==="own-box",E="inline is the head the row draws; an own-box node is skipped (`skip`)",de=e=>({kind:"group",name:"Heading",props:e,parts:[se("eyebrow"),{kind:"text",key:"title",role:"heading",props:n,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),B={top:72,bottom:72,topPhone:72,bottomPhone:72},le={...Z,...d(0,1,1,0)},pe={name:"Cards",boxProps:(e,o)=>({...u,direction:"column",gap:36,gapPhone:28,...c("surface")(e,o),...y(e,B)}),box:[...w,...b(B)],skip:e=>T(e)?R:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: they are drawn from the card template on Cards":e.template!==void 0?"its cards are drawn from its own card template (an emptied one draws none): the shape the other rows land on":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:[k("Cards"),_({kind:"list",key:"items",name:"Card",perRow:O(J.defaultProps),rowName:"Row",rowProps:C,props:(e,o)=>({...le,...c("background")(e,o)}),parts:[{kind:"text",key:"title",props:n,style:$},{kind:"text",key:"body",props:h,style:Q}]})],drop:{...m,...g,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",template:"an empty card template is typed cards, what the row draws; a node with a template is skipped",highlightedCard:"read only with a card template; a node with a template is skipped",highlightBadge:"read only with a card template; a node with a template is skipped",headPlacement:E,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 (JJ's export, 2026-10-24)"}},N={top:76,bottom:76,topPhone:76,bottomPhone:76},ce={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...d(0,1,1,0)},L={textStyle:"body-1",color:"text"},A=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",he={name:"Key Features",boxProps:e=>({...u,direction:"column",gap:44,...d(1,0,1,0),...y(e,N)}),box:[...w,...b(N)],parts:[de({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),_({kind:"list",key:"items",name:"Feature",perRow:O(q.defaultProps),rowName:"Row",rowProps:C,props:ce,parts:[{kind:"button",key:"label",href:"href",when:A,variant:"ghost",props:{...re,...ne,icon:"none"},style:L},{kind:"text",key:"label",when:(e,o)=>!A(e,o),props:n,style:L,was:{size:17}}]})],drop:{...m,...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 (JJ's export, 2026-10-24)"}},D={top:120,bottom:120,topPhone:80,bottomPhone:80},F=e=>{const o=G(typeof e.background=="string"?e.background:void 0,ie.Series);return o&&o!=="transparent"?o:void 0},P=e=>F(e)===S,me=(e,o)=>{const r=F(e);return!r||r===S?{}:r==="var(--site-surface)"?c("surface")(e,o):X(r.trim())?{fillColor:r.trim()}:{}},ge={...t,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},I={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[M("share")]:"content"},v={textStyle:"body-5",...i("label",12),letterSpacing:.22,case:"upper",lineHeight:1.5},we=e=>Y(e.viewLabel)&&!f(e.viewLabel).hidden,s=e=>f(e).text?.trim?.()??"",H=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>U(o)!==void 0)),ue={name:"Recurring Columns",boxProps:(e,o)=>({...u,direction:"column",gap:60,gapPhone:60,...d(0,0,1,0),...P(e)?oe(e,o):{},...me(e,o),...y(e,D)}),box:[...w.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,r)=>P(o)?ee(e,o,r):e],...b(D)],skip:e=>T(e)?R:void 0,site:(e,o)=>P(e.props)?te(e,o):[],parts:[k("Series"),{kind:"core",as:"Cards",keep:[],props:{columns:4},derive:{reads:["cards"],props:e=>({items:(Array.isArray(e.cards)?e.cards:[]).map(o=>H({num:s(o.num),since:s(o.since),title:s(o.title),body:s(o.desc),count:[s(o.entries),s(o.entriesLabel)].filter(Boolean).join(" ")}))})},slots:(e,o)=>({template:[{type:l,props:{...ge,...c("background")(e,o),name:"Card"},slots:{[p]:[{type:l,props:{...t,name:"Words",gap:16,gapPhone:16},slots:{[p]:[{type:l,props:{...I,name:"Top"},slots:{[p]:[a("num",n,i("label",13),!0),a("since",n,i("label",13),!0)]}},a("title",{...n,tag:"h3"},{textStyle:"heading-3",...i("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),a("body",h,{textStyle:"body-5",fontRole:"heading",...i("body",14),lineHeight:1.6})]}},{type:l,props:{...I,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...d(1,0,0,0)},slots:{[p]:[a("count",h,v),...we(e)?[{type:l,props:{...t,name:"View",maxWidthPhone:266},slots:{[p]:[{type:"Text",props:{...n,text:f(e.viewLabel).text,_partStyles:{text:{...z()._partStyles.text,...v}}}}]}}]:[]]}}]}}]})}],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:{...m,...g,headPlacement:E}},K={top:60,bottom:60,topPhone:40,bottomPhone:40},ye={...t,gap:8,gapPhone:8,...ae(24),...d(1,1,1,1)},be={name:"Document Detail Cards",boxProps:e=>({...u,direction:"column",gap:40,gapPhone:16,...d(0,0,1,0),...y(e,K)}),box:[...w,...b(K)],parts:[{kind:"core",as:"Cards",keep:[],props:{columns:3},derive:{reads:["cards"],props:e=>({items:(Array.isArray(e.cards)?e.cards:[]).map(o=>H({label:s(o.label),value:s(o.value),body:s(o.desc)}))})},slots:(e,o)=>({template:[{type:l,props:{...ye,...c("surface")(e,o),name:"Card"},slots:{[p]:[a("label",n,{...i("label",12),lineHeight:1.5},!0),{type:l,props:{...t,name:"Words",gap:14,gapPhone:14},slots:{[p]:[a("value",n,{textStyle:"heading-3",...i("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),a("body",h,{textStyle:"body-5",fontRole:"accent",...i("body",14),italic:!0,lineHeight:1.5})]}}]}}]})}],drop:{...m,...g}},Ie={Cards:pe,KeyFeatures:he,Series:ue,DocMetaCards:be};export{Ie as CARDS_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tabletKey as
|
|
1
|
+
import{tabletKey as R}from"efficient-easel/draw";import{SECTION_BOX_SLOT as G,SECTION_BOX_TYPE as j}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as D,DROP_SIDE_PADDING as W,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as v,bandIndex as K,bandPage as $,bandProps as P,bandWrites as z,smallText as l,wrapperPad as d}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as c}from"./section-head-looks.js";import{boxPadding as m}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as Y}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as F,splitLegacyRegion as w}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as q}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as V}from"../../../../../format/lib/map-styles.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,T=e=>r(e.state).trim()||w(r(e.region)).state,O=e=>r(e.country).trim()||w(r(e.region)).country,_=e=>[T(e),O(e)].filter(Boolean).join(" · "),J=e=>h(e).some(t=>r(t.photo).trim()!==""),Q=e=>h(e).some(t=>V(Number(t.lat),Number(t.lng))),Z=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,ee=(e,t)=>Z(e,t)===1?"wide":F(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},te=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},oe={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:J,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[l("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo)}:{},link:`#${B(t)}`,boxShape:ee(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[l("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:te(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ne={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>_(n)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>q(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},re={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>T(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ae={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[re]},ie={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:K(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[ne,ae],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[l("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[R("columns")]:1})}},C=a(10,{letterSpacing:.25}),se={kind:"block",type:j,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Q,slot:G,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},M=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),E=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,L)=>d(L,y)[t]]),I=["sectionAccent","sectionAccent",v],pe=["gridSpan","_hidden"],ce={name:"City pictures",skip:e=>x(e)?`fed by the data source "${x(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...M(d(e,y),E),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),I,["anchor","anchor",e=>Y(e).trim()?e:"studios"],...A(E)],parts:[U("sectionNumber","heading","tagline"),oe],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...M(d(e,y),H),...P(e,t)}),box:[...pe,I,...A(H)],parts:[ie,se]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...D,...W,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},Pe={ContactLocations:ce};export{Pe as LOCATIONS_SECTION_TO_BOX};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{BUTTON as g,DIM as s,bandAccent as
|
|
1
|
+
import{BUTTON as g,DIM as s,bandAccent as S,bandIndex as _,bandWrites as P,DROP_COMMON as h,DROP_SIDE_PADDING as m,INNER_BOX as o,SAME_KEYS as b,SECTION_BOX as y,lineBorder as u,TEXT as l,innerPad as x,innerPadKeys as k}from"./section-to-box-row-parts.js";import{splitParagraphs as E}from"../../../../components/goldPhrases.js";import{TIMELINE_YEAR_BOX as I,TIMELINE_YEAR_HEAD as w}from"../../../../../format/lib/sections/timeline-year-shape.js";import{boxPadding as O}from"../../../../../format/lib/document/seed-parts.js";const A="jetbrains-mono",T="space-grotesk",i=(e,t,r={})=>({textStyle:"body-5",font:A,size:e,sizePhone:e,letterSpacing:t,lineHeight:1.5,weight:400,...r}),p=(e,t,r,d)=>({font:T,size:e,sizePhone:t,case:"upper",weight:500,letterSpacing:r,lineHeight:d}),a=(e,t,r,d={})=>({textStyle:"body-1",font:T,size:e,sizePhone:t,weight:400,case:"none",lineHeight:r,...d}),n=(e,t,r={})=>({kind:"text",key:e,props:l,style:t,...r}),f=(e,t)=>t?.future===!0,c=e=>E(typeof e?.body=="string"?e.body:""),H={name:"Milestone Timeline",boxProps:(e,t)=>{const r=_(e,t);return{...y,direction:"column",gap:60,sectionBorder:{bottom:1},...x(e,"TimelineTrack"),...r>=0?{sectionAccent:r}:{}}},box:[...b.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",S],...k("TimelineTrack")],parts:[{kind:"group",name:"Heading",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionPaddingBottom:32,sectionBorder:{bottom:1}},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[n("eyebrow",i(13,.3,{case:"upper",color:"accent",padding:8}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(79,40,-.03,1)},{role:"heading"})]},n("intro",a(14,14,1.5),{props:{...s,align:"right",maxWidth:360}})]},{kind:"group",name:"Years",props:{...o,direction:"row",share:"equal",gap:0,line:!0},parts:[{kind:"list",key:"entries",name:"Year",props:{...o,...I},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:w.name,props:{...o,...w},parts:[n("date",i(13,.22,{color:"accent"}),{when:(e,t)=>!f(e,t)}),n("date",i(13,.22,{color:"labels"}),{when:f}),n("title",{textStyle:"heading-3",...p(20,20,-.02,1.1)},{role:"heading"})]},n("blurb",a(13,13,1.55),{props:s})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,align:"right",...u(e,t)}),style:i(13,.3,{case:"upper"})}],site:P,drop:{...h,...m,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},M={name:"Story Timeline",skip:e=>{const t=typeof e.layout=="string"?e.layout:"split";return t==="split"?void 0:`display "${t}": not converted (0 live pages; Spine and Alternating are not offered, a Track story is not stored anywhere)`},boxProps:e=>({...y,direction:"row",share:"twoThree",gap:80,align:"start",...x(e,"Timeline")}),box:[...b,...k("Timeline")],parts:[{kind:"group",name:"Heading",props:{...o,gap:24},parts:[n("eyebrow",i(12,.3,{case:"upper",color:"accent"}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(72,40,-.03,.94)},{role:"heading"}),n("intro",a(14,14,1.6),{props:{...s,maxWidth:360}}),{kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...o,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:667,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:419,sectionHeightUnitPhone:"px",...O(12,16)},when:e=>typeof e.imageSrc=="string"&&e.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...o,direction:"row",justify:"between",align:"center",gap:12,share:"content",phoneRow:2},parts:[n("imageCaption",i(11,.24,{case:"upper",color:"text"})),n("imageMeta",i(11,.24,{case:"upper",color:"accent"}),{props:{...l,align:"right"}})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,...u(e,t)}),style:i(13,.3,{case:"upper"})}]},{kind:"group",name:"Chapters",props:{...o,gap:48,line:!1},parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,direction:"row",gap:24,share:"biggerRight",align:"start"},parts:[n("date",i(13,.24,{color:"accent"})),{kind:"group",name:"Words",props:{...o,gap:14},parts:[n("title",{textStyle:"heading-3",...p(24,20,-.02,1.5)},{role:"heading"}),{kind:"block",type:"Text",props:{...l,_partStyles:{text:a(17,16,1.6)}},box:[["body","text",(e,t)=>c(t)[0]??""]],when:(e,t)=>c(t).length>0},{kind:"block",type:"Text",props:{...s,_partStyles:{text:a(17,16,1.6,{paragraphSpacing:14})}},box:[["body","text",(e,t)=>c(t).slice(1).join(`
|
|
2
2
|
|
|
3
|
-
`)]],when:(e,t)=>
|
|
3
|
+
`)]],when:(e,t)=>c(t).length>1}]}]}]}],drop:{...h,...m,layout:"Split is the only display converted (see skip); the Box's own arrangement replaces it"}},D={TimelineTrack:H,Timeline:M};export{D as TIMELINE_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasWords as v,registerSectionToBox as o}from"../../../sections/section-to-box.js";import{BUTTON as g,DIM as m,DROP_COMMON as s,DROP_SIDE_PADDING as c,INNER_BOX as t,leadLine as A,SAME_KEYS as d,SECTION_BOX as p,lineBorder as H,TEXT as l,innerPad as f,siteGutterOf as
|
|
1
|
+
import{hasWords as v,registerSectionToBox as o}from"../../../sections/section-to-box.js";import{BUTTON as g,DIM as m,DROP_COMMON as s,DROP_SIDE_PADDING as c,INNER_BOX as t,leadLine as A,SAME_KEYS as d,SECTION_BOX as p,lineBorder as H,TEXT as l,innerPad as f,siteGutterOf as C,innerPadKeys as S,smallText as u,wrapperPad as P,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as R}from"./section-to-box-rows-cards.js";import{normalizeSiteGutterPhone as L,siteGutterPhoneFollows as D}from"../../../../../format/lib/content/page-width.js";import{finiteNumber as W}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as X}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as G}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as M}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as F}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as z}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as K}from"./section-to-box-rows-head.js";import{PAGE_HEADER_SECTION_TO_BOX as Y}from"./section-to-box-rows-pageheader.js";import{DOCBODY_SECTION_TO_BOX as j}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as U}from"./section-to-box-rows-editorial.js";import{fluidToken as q,headTree as O,token as r}from"./section-head-looks.js";import{boxPadding as J}from"../../../../../format/lib/document/seed-parts.js";const w={top:72,bottom:72,topPhone:72,bottomPhone:72},Q={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...P(e,w)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...b(w)],parts:[O("Prose"),{kind:"text",key:"body",props:m,style:{textStyle:"body-1",...r("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,...c,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},T={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},k=(e,n)=>n?.variant==="primary",_=(e,n)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:k,variant:"primary",style:{letterSpacing:.3},props:{...g,...T,...n}},{kind:"button",key:"label",href:"href",when:(i,a)=>!k(i,a),variant:"ghost",style:{letterSpacing:.3},props:(i,a)=>({...g,...T,...n,...H(i,a)})}]}),h=e=>v(e.title),V={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:h(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...f(e,"TitleWithButtons")}),box:[...d,...S("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...t,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-1",...q("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035}}]},{kind:"group",name:"Buttons",props:e=>({...t,gap:14,gapPhone:14,widthFitPhone:"fill",...h(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[_(h,{widthFit:"fill",iconPosition:"end"}),_(e=>!h(e),{})]}],drop:{...s,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves"}};function Z(e){const{siteGutter:n,siteGutterPhone:i}=e.site??{},a=C(e),y=Math.min(20,L(i)??D(n));return{sectionPaddingLeft:a,sectionPaddingRight:a,sectionPaddingLeftPhone:y,sectionPaddingRightPhone:y}}const x={top:40,bottom:64,topPhone:24,bottomPhone:36},$={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,...P(e,x),...Z(n)}),box:[...d,...b(x)],parts:[O("SectionHeader")],drop:{...s,...c,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},B={...t,direction:"row",share:"bigLeft",gap:30},E={...t,sectionPaddingLeft:30,sectionPaddingLeftPhone:0},N=(e,n,i)=>({kind:"group",name:e,props:n,parts:[i]}),ee={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...f(e,"ParagraphsA")}),box:[...d,...S("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...B,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...t,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[u("eyebrow",{color:"labels",...r("label",12),letterSpacing:.24})]},N("Stats column",t,{kind:"group",name:"Stats",props:{...E,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[A("value","label",{...r("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...B,gapPhone:28},parts:[{kind:"group",name:"Lead",props:t,parts:[{kind:"group",name:"Measure",props:{...t,maxWidth:780},parts:[{kind:"text",key:"lead",props:l,style:{textStyle:"heading-3",...r("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},N("Note column",{...t,justify:"end",widthFit:"fill"},{kind:"group",name:"Founders",props:{...E,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...t,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:l,style:{textStyle:"body-1",fontRole:"heading",...r("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:m,style:{textStyle:"body-5",fontRole:"heading",...r("body",14,12),lineHeight:1.7}}]},u("attribution",{...r("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},I={top:24,bottom:24,topPhone:24,bottomPhone:24},te={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,...P(e,I)}),box:[...d,"contained",...b(I)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...t,gap:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...J(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(W(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...t,gap:20},parts:[u("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none"}},{kind:"text",key:"body",props:{...m,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6},was:{size:16}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],drop:{...s,...c}},oe={Prose:Q,TitleWithButtons:V,SectionHeader:$,ParagraphsA:ee,Banner:te};function fe(){o(oe),o(X),o(G),o(R),o(M),o(F),o(z),o(K),o(Y),o(j),o(U)}export{oe as GENERAL_SECTION_TO_BOX,fe as registerGeneralSectionRows};
|