efficient-web-builder 54.0.0 → 55.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/BlockGapField.js +1 -1
- package/dist/editor/components/CornersField.js +1 -1
- package/dist/editor/components/SectionWidthRows.d.ts +2 -1
- package/dist/editor/components/SectionWidthRows.js +1 -1
- package/dist/editor/components/SideSpaceField.js +1 -1
- package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/CardList/fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -0
- package/dist/editor/lib/document/blocks/general/Eyebrow/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Split/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/blocks/general/index.js +1 -1
- package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +29 -2
- package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
- package/dist/editor/lib/document/blocks/shared-fields.d.ts +1 -5
- package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
- package/dist/editor/lib/document/box-accordion-seed.d.ts +3 -0
- package/dist/editor/lib/document/box-accordion-seed.js +1 -0
- package/dist/editor/lib/document/box-fields.d.ts +11 -0
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +3 -1
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.d.ts +1 -0
- package/dist/editor/lib/document/mirror-cards-field.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/document/section-own-width-fields.d.ts +4 -0
- package/dist/editor/lib/document/section-own-width-fields.js +1 -0
- package/dist/editor/lib/document/shape-picker.d.ts +8 -0
- package/dist/editor/lib/document/shape-picker.js +1 -1
- package/dist/format/lib/content/block-align.d.ts +4 -1
- package/dist/format/lib/content/block-align.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +19 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +7 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-phone-place.d.ts +3 -3
- package/dist/format/lib/content/box-phone-place.js +1 -1
- package/dist/format/lib/content/box-separator.js +1 -1
- package/dist/format/lib/content/box-shadow.d.ts +4 -0
- package/dist/format/lib/content/box-shadow.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/box-shape.js +1 -1
- package/dist/format/lib/content/card-state.d.ts +2 -0
- package/dist/format/lib/content/card-state.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +11 -2
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/container-direction.d.ts +1 -1
- package/dist/format/lib/content/container-direction.js +1 -1
- package/dist/format/lib/content/gallery-card-layout.d.ts +16 -1
- package/dist/format/lib/content/gallery-card-layout.js +1 -1
- package/dist/format/lib/content/image-aspect.d.ts +2 -0
- package/dist/format/lib/content/image-aspect.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +3 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/phone-focus.js +1 -1
- package/dist/format/lib/content/picture-focus-rows.js +1 -0
- package/dist/format/lib/content/section-height.d.ts +31 -2
- package/dist/format/lib/content/section-height.js +1 -1
- package/dist/format/lib/content/section-min-height.d.ts +2 -1
- package/dist/format/lib/content/section-min-height.js +1 -1
- package/dist/format/lib/content/section-width.d.ts +38 -1
- package/dist/format/lib/content/section-width.js +1 -1
- package/dist/format/lib/content/site-gutter.d.ts +2 -0
- package/dist/format/lib/content/site-gutter.js +1 -1
- package/dist/format/lib/content/view-overrides.d.ts +7 -0
- package/dist/format/lib/content/view-overrides.js +1 -0
- package/dist/format/lib/content/view-var-split.d.ts +11 -0
- package/dist/format/lib/content/view-var-split.js +1 -0
- package/dist/format/lib/document/blocks/general/CardList/item-seed.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/CardList/item-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/CardList/meta.d.ts +8 -0
- package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -0
- package/dist/format/lib/document/blocks/general/Flex/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/metas.js +1 -1
- package/dist/format/lib/document/general-order.d.ts +1 -1
- package/dist/format/lib/document/general-order.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +3 -0
- package/dist/format/lib/document/section-catalog.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +12 -0
- package/dist/format/lib/editor-words-catalogue.js +5 -5
- package/dist/format/lib/fit-words.d.ts +8 -0
- package/dist/format/lib/fit-words.js +23 -12
- package/dist/format/lib/markup.d.ts +1 -0
- package/dist/format/lib/markup.js +2 -2
- package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
- package/dist/format/lib/sections/intro-bleed-layout.d.ts +1 -0
- package/dist/format/lib/sections/intro-bleed-layout.js +1 -1
- package/dist/format/lib/source-rules/padding-units-declared.d.ts +2 -0
- package/dist/format/lib/source-rules/padding-units-declared.js +6 -0
- package/dist/render/components/AccordionMark.d.ts +4 -0
- package/dist/render/components/AccordionMark.js +1 -0
- package/dist/render/components/BoxAccordionRow.d.ts +7 -0
- package/dist/render/components/BoxAccordionRow.js +1 -0
- package/dist/render/components/BoxTabPaneContext.d.ts +3 -1
- package/dist/render/components/BoxTabPaneContext.js +1 -1
- package/dist/render/components/BoxTabs.js +1 -1
- package/dist/render/components/ButtonBlock.d.ts +1 -0
- package/dist/render/components/ButtonBlock.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +3 -2
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/Eyebrow.d.ts +2 -1
- package/dist/render/components/Eyebrow.js +1 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/Flex.d.ts +20 -2
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/HeroSection.d.ts +4 -1
- package/dist/render/components/HeroSection.js +1 -1
- package/dist/render/components/HeroSingle.d.ts +4 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.d.ts +1 -0
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/IntroBleed.js +1 -1
- package/dist/render/components/LogoBlock.d.ts +1 -0
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +1 -0
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +18 -1
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Split.d.ts +2 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/TitleWithButtons.d.ts +2 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/lib/content/block-size.d.ts +2 -6
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/box-shared-columns.d.ts +2 -2
- package/dist/render/lib/content/box-shared-columns.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +15 -0
- package/dist/render/lib/content/box-stack-line.js +1 -0
- package/dist/render/lib/content/button-look.js +1 -1
- package/dist/render/lib/content/empty-hides.d.ts +8 -0
- package/dist/render/lib/content/empty-hides.js +1 -0
- package/dist/render/lib/content/section-edge.d.ts +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +17 -3
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/content/view-values.d.ts +1 -7
- package/dist/render/lib/content/view-values.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -0
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/renders.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
- 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.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.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-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.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 -0
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/passes/block-size.js +1 -1
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/head-core.d.ts +3 -0
- package/dist/render/lib/document/passes/head-core.js +1 -0
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-theme.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +5 -5
- package/dist/render/lib/content/picture-focus-rows.js +0 -1
- /package/dist/{render → format}/lib/content/picture-focus-rows.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as m,jsx as e}from"react/jsx-runtime";import{CardRowDrawn as x}from"../../../../../components/CardRowContext.js";import{CountDrawn as S}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as C}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as E}from"../../../../content/page-contents.js";import{namedRowField as I}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as N,TOP_LINE_CLASS as O,cardPlaceOf as k,framesItsCards as A}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as F,blockSizeValuesOf as K}from"../../../../content/block-size.js";import{linkedCount as L}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as D}from"../../../../content/section-padding.js";import W from"../../../../../components/Text.js";import{hidableText as d,readHidable as j}from"efficient-easel/draw";import{PH as p}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as v}from"../../scaffold.js";import{readPartStyle as B}from"../../../part-styles.js";import{TextMeta as H}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const it={...H,render:r=>{const{text:o,align:w,alignPhone:T,tone:P,tag:y,contained:_,editor:f}=r;if(j(o).hidden)return e(m,{});const{textStyle:l,align:b}=B(r,"text"),R=l?.startsWith("heading-")?p.heading:p.body,a=(t,n,i)=>e(W,{text:v(t,R,f)??"",number:n,align:w,alignPhone:T,tone:P,tag:y,textStyle:l,partAlign:b,ownWidth:F(K(r)),contained:_,pad:D(r),onLine:i}),c=t=>!t?.trim()&&!f?.isEditing,s=I(r),u=L(r);if(u)return e(S,{countKey:u,children:t=>a(t??d(o))});const h=()=>{if(!s){const t=r[E];return typeof t=="string"?a(d(o),t):e(C,{id:r.id,children:n=>a(d(o),n)})}return e(x,{type:"Text",props:r,children:(t,n,i)=>{const g=d(t.text);return i&&c(g)?e(m,{}):a(g)}})};return k(r)!=="top-line"?h():e(x,{type:"Text",props:r,children:(t,n)=>{if(!n||!A(n.ownerType))return h();const i=d(s?t.text:o);return c(i)?e(m,{}):e("div",{className:O,[N]:"",children:a(i,void 0,!0)})}})}};export{it as TextRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BannerRender as r}from"./Banner/render.js";import{BreadcrumbRender as e}from"./Breadcrumb/render.js";import{ButtonBlockRender as o}from"./ButtonBlock/render.js";import{CardsRender as t}from"./Cards/render.js";import{CategoryBarRender as m}from"./CategoryBar/render.js";import{ChartRender as
|
|
1
|
+
import{BannerRender as r}from"./Banner/render.js";import{BreadcrumbRender as e}from"./Breadcrumb/render.js";import{ButtonBlockRender as o}from"./ButtonBlock/render.js";import{CardsRender as t}from"./Cards/render.js";import{CategoryBarRender as m}from"./CategoryBar/render.js";import{ChartRender as i}from"./Chart/render.js";import{ContactLocationsRender as n}from"./ContactLocations/render.js";import{CustomHTMLRender as d}from"./CustomHTML/render.js";import{DividerRender as a}from"./Divider/render.js";import{ContentsRender as p}from"./Contents/render.js";import{DocBodyRender as R}from"./DocBody/render.js";import{DocMastheadRender as f}from"./DocMasthead/render.js";import{DocMetaCardsRender as s}from"./DocMetaCards/render.js";import{DocTabsRender as c}from"./DocTabs/render.js";import{EyebrowRender as S}from"./Eyebrow/render.js";import{FAQRender as l}from"./FAQ/render.js";import{FeaturedCoverRender as g}from"./FeaturedCover/render.js";import{FlexRender as B}from"./Flex/render.js";import{FootprintRender as C}from"./Footprint/render.js";import{GridRender as u}from"./Grid/render.js";import{HeadingRender as T}from"./Heading/render.js";import{HeroRender as L}from"./Hero/render.js";import{HeroGroupRender as H}from"./HeroGroup/render.js";import{HeroSingleRender as M}from"./HeroSingle/render.js";import{HeroSlideRender as h}from"./HeroSlide/render.js";import{ImageBlockRender as k}from"./ImageBlock/render.js";import{IntegrationsRender as y}from"./Integrations/render.js";import{IntroBleedRender as P}from"./IntroBleed/render.js";import{CountdownRender as D}from"./Countdown/render.js";import{KeyFeaturesRender as F}from"./KeyFeatures/render.js";import{LocationMapRender as b}from"./LocationMap/render.js";import{LogoBlockRender as E}from"./LogoBlock/render.js";import{LogosRender as I}from"./Logos/render.js";import{LongReadRender as x}from"./LongRead/render.js";import{ManifestoRender as A}from"./Manifesto/render.js";import{MastheadRender as G}from"./Masthead/render.js";import{MockupRender as v}from"./Mockup/render.js";import{OrderSummaryRender as w}from"./OrderSummary/render.js";import{CardListRender as K}from"./CardList/render.js";import{ParagraphsARender as N}from"./ParagraphsA/render.js";import{PaymentBadgesRender as O}from"./PaymentBadges/render.js";import{PostCardRender as Q}from"./PostCard/render.js";import{ProcessStepsRender as W}from"./ProcessSteps/render.js";import{ProseRender as _}from"./Prose/render.js";import{SectionHeaderRender as j}from"./SectionHeader/render.js";import{SeriesRender as q}from"./Series/render.js";import{SpacerRender as z}from"./Spacer/render.js";import{SpecStripRender as J}from"./SpecStrip/render.js";import{SplitRender as U}from"./Split/render.js";import{StatsRender as V}from"./Stats/render.js";import{StatsParagraphRender as X}from"./StatsParagraph/render.js";import{TestimonialsRender as Y}from"./Testimonials/render.js";import{TextRender as Z}from"./Text/render.js";import{TickerRender as $}from"./Ticker/render.js";import{TimelineRender as rr}from"./Timeline/render.js";import{TimelineTrackRender as er}from"./TimelineTrack/render.js";import{TitleWithButtonsRender as or}from"./TitleWithButtons/render.js";const ne={Banner:r,Breadcrumb:e,ButtonBlock:o,Cards:t,CategoryBar:m,Chart:i,ContactLocations:n,CustomHTML:d,Divider:a,Contents:p,DocBody:R,DocMasthead:f,DocMetaCards:s,DocTabs:c,Eyebrow:S,FAQ:l,FeaturedCover:g,Flex:B,Footprint:C,Grid:u,Heading:T,Hero:L,HeroGroup:H,HeroSingle:M,HeroSlide:h,ImageBlock:k,Integrations:y,IntroBleed:P,Countdown:D,KeyFeatures:F,LocationMap:b,LogoBlock:E,Logos:I,LongRead:x,Manifesto:A,Masthead:G,Mockup:v,OrderSummary:w,CardList:K,ParagraphsA:N,PaymentBadges:O,PostCard:Q,ProcessSteps:W,Prose:_,SectionHeader:j,Series:q,Spacer:z,SpecStrip:J,Split:U,Stats:V,StatsParagraph:X,Testimonials:Y,Text:Z,Ticker:$,Timeline:rr,TimelineTrack:er,TitleWithButtons:or};export{ne as GENERAL_RENDERS};
|
|
@@ -6,4 +6,5 @@ export declare const HEAD_BELOW: Readonly<Record<HeadLook, number>>;
|
|
|
6
6
|
export declare function editorialHeadTree(num: string, title: string, description: string): PartRow;
|
|
7
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
|
+
export declare function headReads(type: string): Readonly<Record<string, string>>;
|
|
9
10
|
export declare function headTree(type: string): PartRow;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{readHidable as
|
|
2
|
-
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...
|
|
1
|
+
import{readHidable as B}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as E,DIM as L,INNER_BOX as o,SH_LINK as _,TEXT as k,smallText as O}from"./section-to-box-row-parts.js";import{labelTextSeed as M}from"../../../../../format/lib/document/text-seeds.js";import{token as a}from"../../../../../format/lib/document/seed-parts.js";function P(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 J}from"../../../../../format/lib/document/seed-parts.js";const b=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>O(e,{...a("label",t),...n}),A=(e,t)=>{const n=B(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},d=(e,t)=>({kind:"text",key:e,role:"heading",props:k,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...L,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),w={...E,align:"right",alignPhone:"left",..._,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:w,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),x=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...k,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?R(M()):{},...n.style}}}}},R=e=>e._partStyles.text??{},c={widthFitPhone:"fill"};function C(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=d(t.title,i?{...b("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,...c,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...c,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[x(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...c},parts:[S,...g?[x(t.title,`Three ranges,
|
|
2
|
+
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...c,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:{...w,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)]},d(e.title,{...b("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 y(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),d(e.title,t)]}}const N=[["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}]],F=e=>N.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function z(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}),...N.map(([t,n])=>({...d(e.title,n),when:i=>F(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)]:[]]}]}}function G(e){return P(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}const p=new Map;function Q(e){const t=p.get(e);if(t)return t;const n=W(e),i=P(e),r=i==="editorial"?H(n):i==="simple"?y(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?y(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?z(n):C(e,n);return p.set(e,r),r}export{U as HEAD_BELOW,X as editorialHeadTree,b as fluidToken,P as headLookOf,G as headReads,Q as headTree,J as token};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{SECTION_WIDTH_KEYS as H}from"../../../../../format/lib/content/section-width.js";import{phoneKey as D}from"efficient-easel/draw";import{BOX as w,INNER_BOX as y,TEXT as O}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as W}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as h}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as v}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as M}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as L}from"../../../content/section-padding.js";import{ButtonBlockMeta as F}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as K}from"../../passes/section-padding.js";import{finiteNumber as c}from"../../../../../format/lib/finite-number.js";import{convertTheme as P,hasWords as X}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as G}from"../../../../../format/lib/content/section-background.js";import{parseHexColor as Y}from"efficient-shell/format";import{convertLength as j,isLengthUnit as V}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as $,surfaceTwoTone as J}from"../../../../../format/lib/theme.js";const m=t=>V(t)?t:"px",d=(t,o,e,n)=>o===e?t:j(t,o,e,n,{min:0,max:200,step:4});import{BOX as Xt,DIM as Gt,INNER_BOX as Yt,TEXT as jt}from"../../../../../format/lib/document/seed-parts.js";const z={...O,[v]:""},{label:ft,href:xt,...q}=F.defaultProps,_t=q,Bt={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Et={...w,sectionAccent:0},Ot=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(W).flatMap(t=>[t,D(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(H)],r="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",St={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},Ut=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 Q(t,o){const e=c(t.sectionPaddingTop)??0,n=c(t.sectionPaddingBottom)??0,i=c(t.sectionPaddingTopTablet),s=c(t.sectionPaddingBottomTablet),p=m(t.sectionPaddingUnit),l=m(t.sectionPaddingUnitTablet),g=m(t.sectionPaddingUnitPhone),f=(R,x,A,_)=>{const B=c(R);if(B!==void 0)return B+d(_,"px",g,"mobile");const E=x===void 0?{n:A,unit:p}:{n:x,unit:l};return d(E.n,E.unit,g,"mobile")+d(_,"px",g,"mobile")};return{sectionPaddingTop:e+d(o.top,"px",p,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",p,"desktop"),...i===void 0?{}:{sectionPaddingTopTablet:i+d(o.top,"px",l,"tablet")},...s===void 0?{}:{sectionPaddingBottomTablet:s+d(o.bottom,"px",l,"tablet")},sectionPaddingTopPhone:f(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:f(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Nt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>Q(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function a(t,o){const e=L(t,K[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const It=t=>[["padTop","sectionPaddingTop",(o,e)=>a(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>a(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>a(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>a(e,t).sectionPaddingBottom]],Z={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},kt=t=>o=>X(o.props[t])?[Z]:[],Ct=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:O,...o?{style:o}:{}}),S=t=>t.background!=="transparent",tt=(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},U={align:"right",alignPhone:"left"},ot=(t,o,e)=>{const n=i=>tt(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}},Rt=(t,o,e,n={})=>ot(t,o,{...z,...U,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...U}}}),u=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:P(o)?.selected??0,N="var(--site-surface)",I="var(--site-surface-2)",T=(t,o)=>P(o)?.themes[u(t.sectionAccent??0,o)],k=t=>(o,e)=>{const n=T(o,e)?.[t];return n?{fillColor:n}:{}},C=t=>t.startsWith("#")&&Y(t)!==null,At=(t,o,e)=>{const n=t?.trim();if(n&&C(n))return{fillColor:n};if(n===N)return k("surface")(o,e);const i=n===I?T(o,e):void 0;return i?{fillColor:J(i)}:{}},Ht=t=>{const o=t?.trim();return!o||o==="transparent"||o===G||o===N||o===I||C(o)?void 0:"it paints a colour that no Box Fill can hold"},Dt=(t,o)=>{const e=T(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},b=(t,o)=>{const e=P(o)?.themes;return e&&S(t)?$(e,u(t.sectionAccent,o)):-1},wt=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},yt=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},Wt=(t,o)=>S(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:u(t.props.sectionAccent,o)}]:[],vt=t=>M(t.site?.siteGutter),et=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Mt=t=>({top:0,right:0,bottom:0,left:0,...t}),Lt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...y,...et,...k("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],h.kind,h.duration,h.delay],parts:n});export{Xt as BOX,_t as BUTTON,Gt as DIM,St as DROP_COMMON,Ut as DROP_SIDE_PADDING,Z as HEADING_CASE_UPPER,Yt as INNER_BOX,et as NO_PAD,z as NUMBER_TEXT,U as RIGHT_WORDS,Ot as SAME_KEYS,Et as SECTION_BOX,Bt as SH_LINK,jt as TEXT,wt as bandAccent,b as bandIndex,u as bandPage,yt as bandProps,Wt as bandWrites,k as fillFrom,Ht as fillNoBoxHolds,kt as headingCaseOf,a as innerPad,It as innerPadKeys,Rt as leadLine,ot as leadText,Dt as lineBorder,Mt as lineSides,tt as numberAndUnit,At as ownFill,Lt as pictureCell,T as sectionPage,vt as siteGutterOf,Ct as smallText,Q as wrapperPad,Nt as wrapperPadKeys};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{parseBlocks as
|
|
2
|
-
`)}:{kind:"p",text:e.text}),s={textStyle:"body-5",...
|
|
1
|
+
import{parseBlocks as k,sectionAnchorIds as _,shownSections as P}from"../../../../components/DocBody.js";import{SECTION_WIDTH_KEYS as b}from"../../../../../format/lib/content/section-width.js";import{STACK_BELOW_PROP as x}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as B,INNER_BOX as o,SECTION_BOX as O,TEXT as r,smallText as a,wrapperPad as T,wrapperPadKeys as S}from"./section-to-box-row-parts.js";import{fluidToken as f,token as c}from"./section-head-looks.js";const d={top:80,bottom:80,topPhone:60,bottomPhone:60},l=18,h=18,m=8,u=10,i=t=>typeof t=="string"&&t.trim()!=="",g=t=>P(t.sections),w=t=>k(typeof t.body=="string"?t.body:"").map(e=>e.type==="ul"?{kind:"ul",text:e.items.map(n=>`- ${n}`).join(`
|
|
2
|
+
`)}:{kind:"p",text:e.text}),s={textStyle:"body-5",...c("label",12),case:"upper",letterSpacing:.3,color:"accent",lineHeight:1.5},y={textStyle:"body-1",fontRole:"accent",...c("body",17)},D=[a("label",s),{...a("title",s),when:(t,e)=>!i(e?.label)},{kind:"block",type:"Text",when:(t,e)=>!i(e?.label)&&!i(e?.title),props:{...r,text:"Section",_partStyles:{text:s}}},{kind:"group",name:"Heading",props:{...o,sectionPaddingBottom:m,sectionPaddingBottomPhone:m},parts:[{kind:"group",name:"Heading line",props:{...o,sectionBorder:{bottom:1},sectionPaddingBottom:h,sectionPaddingBottomPhone:h},parts:[{kind:"text",key:"heading",role:"heading",props:r,style:{textStyle:"heading-2",...f("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:w,parts:[{kind:"text",key:"text",props:p,style:{...y,lineHeight:1.7},when:(t,e)=>e?.kind==="p"},{kind:"text",key:"text",props:p,style:{...y,lineHeight:1.65,paragraphSpacing:u},when:(t,e)=>e?.kind==="ul"}]}],C=900,E={name:"Document Text",boxProps:t=>({...O,direction:"row",gap:80,gapPhone:40,[x]:C,sectionBorder:{bottom:1},...T(t,d)}),box:["anchor","sectionAccent","_hidden",...Object.values(b),...S(d)],parts:[{kind:"block",type:"Contents",props:t=>({title:t.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...o,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:t=>g(t),props:{...o,gap:l,gapPhone:l},item:(t,e,n)=>({props:{anchor:_(g(n))[e]??`section-${e+1}`}}),parts:D}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...B,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},K={DocBody:E};export{K as DOCBODY_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{finiteNumber as a}from"../../../../../format/lib/finite-number.js";import{parseIntroBleedLayout as R}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{fluidToken as U,token as n}from"./section-head-looks.js";import{BUTTON as g,DIM as f,DROP_COMMON as c,DROP_SIDE_PADDING as x,INNER_BOX as i,NO_PAD as p,NUMBER_TEXT as F,SAME_KEYS as u,SECTION_BOX as y,TEXT as P,fillFrom as S,lineSides as
|
|
1
|
+
import{finiteNumber as a}from"../../../../../format/lib/finite-number.js";import{parseIntroBleedLayout as R}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{fluidToken as U,token as n}from"./section-head-looks.js";import{BUTTON as g,DIM as f,DROP_COMMON as c,DROP_SIDE_PADDING as x,INNER_BOX as i,NO_PAD as p,NUMBER_TEXT as F,SAME_KEYS as u,SECTION_BOX as y,TEXT as P,fillFrom as S,lineSides as s,pictureCell as w,siteGutterOf as m,smallText as r,wrapperPad as T,wrapperPadKeys as B}from"./section-to-box-row-parts.js";const H=(e,t)=>{const o=a(e),k=a(t);return{...o===void 0?{}:{size:o},...k===void 0?{}:{sizePhone:k}}},L=e=>R(e.layout)==="stacked",M=e=>Math.min(Math.max(a(e.overlay)??60,0),100),d=e=>a(e)??100,C={textStyle:"heading-1",sizeToken:{...U("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},W=[r("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:P,style:{...C,case:e?"upper":"none"},styleFrom:t=>H(t.titleSizeDesktop,t.titleSizeMobile),when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...f,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>H(e.bodySizeDesktop,e.bodySizeMobile)},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],A=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,V=()=>({name:"Scroll-Over Text",skip:e=>L(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...p,placement:"left",darken:M(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile)}),box:[...u.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>M(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:W,drop:{uppercase:"not a value of its own: it picks the heading part — Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin never held on a live page (its theme wrapper is as tall as the section; decision 3, 2026-10-14), so the Box does not pin",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",buttonColor:A("Button color"),buttonTextColor:A("Button text color"),...c}}),v={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},X={textStyle:"body-1",...n("body",16),lineHeight:1.7},O=e=>({kind:"text",key:"body",props:{...f,maxWidth:520},style:{...X,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},b=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},j=(e,t)=>{const o=b(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},I={boxShapePhone:"landscape"},_="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",G=(e,t)=>({[e]:t,[`${e}Phone`]:t}),q={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},D=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),Y=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,...S("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...b(e,100)}),box:[...u,...B(l)],parts:[{kind:"group",name:"Words",props:(e,t)=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:s({right:1}),sectionBorderPhone:s({}),...p,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:m(t)}),parts:[r("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:P,style:{...v,case:"none"},mark:"accentItalic"},O(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(D(e).length,1),3),...G("sectionBorder",s({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:D,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:F,style:q},r("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},w("Picture","imageSrc",I)],drop:{...c,grayscale:_,...x}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},K=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",$=e=>Math.min(Math.max(a(e.overlay)??60,0),100),N=e=>typeof e=="string"&&e.trim()!=="",Z={...g,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},E=e=>({...w("Picture","imageSrc",(t,o)=>({...N(t.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...I,sectionBorder:s(e?{left:1}:{right:1}),...z(e?"left":"right",m(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Z,style:{textStyle:"body-5",...n("label",13,12),case:"upper",letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),z=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},J={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:K(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...j(e,72),gap:24,gapPhone:24,...N(e.textBgSrc)?{darken:$(e),darkenStyle:"even"}:{},...p,sectionPaddingTop:100,sectionPaddingBottom:100,...z(o?"right":"left",m(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...r("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:P,style:v,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...O(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...g,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},Q=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,...S("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...b(e,72)}),box:[...u,...B(l)],parts:[E(!1),J,E(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"a words part has no tablet Align yet (three-views follow-up); no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-05), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",grayscale:_,...c,...x}}),ie={IntroBleed:V(),Manifesto:Y(),Split:Q()};export{ie as EDITORIAL_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SPLITTABLE_SECTIONS as
|
|
1
|
+
import{SPLITTABLE_SECTIONS as h}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as P}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as E,SECTION_BOX as T,innerPad as O}from"./section-to-box-row-parts.js";import{HEAD_BELOW as S,headLookOf as f,headReads as _,headTree as b}from"./section-head-looks.js";import{finiteNumber as u}from"../../../../../format/lib/finite-number.js";const g=["Collections","Events","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","ProductGrid","RelatedProducts"],x=["FitmentFinder","FitmentTable","SpecTable"],r=(o,t)=>()=>({top:o,topPhone:t}),p=o=>t=>{const e=O(t,o).sectionPaddingTop;return{top:e,topPhone:e}},A={Collections:r(120,70),Events:r(120,70),FAQ:r(120,70),GalleryB:r(120,70),FitmentTable:r(120,80),SpecTable:r(120,80),LongRead:r(120,80),FitmentFinder:o=>o.layout==="bar"?{top:32,topPhone:20}:{top:80,topPhone:60},RelatedProducts:r(0,0),Footprint:p("Footprint"),ProcessSteps:p("ProcessSteps"),ProductGrid:o=>({top:u(o.padTop)??120,topPhone:0})};function F(o,t={}){const e=h[o],d=A[o];if(!e||!d)throw new Error(`section-to-box-rows-head: "${o}" has no head row or no head room`);const s=e.padKey,l=b(o),a=_(o),m=e.headRows.filter(n=>![e.num,e.title,e.description,"linkText","linkHref"].includes(n)),c={...Object.fromEntries(m.filter(n=>!(n in a)).map(n=>[n,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...t.drop};return{name:P[o]??o,boxProps:n=>{const i=d(n);return{...T,direction:"column",gap:S[f(o)],sectionPaddingTop:i.top,sectionPaddingTopPhone:i.topPhone}},box:[...E,...s?[[s,"sectionPaddingTop",(n,i)=>d(i).top]]:[]],parts:[l,{kind:"core",keep:"rest",...s?{props:{[s]:0}}:{},...t.slots?{slots:t.slots}:{}},...t.partsAfter??[]],...Object.keys(a).length?{reads:a}:{},...Object.keys(c).length?{drop:c}:{}}}const N=Object.fromEntries(g.map(o=>[o,F(o)]));export{N as HEAD_ONLY_SECTION_TO_BOX,g as HEAD_ONLY_TYPES,x as HOST_ROW_HEAD_TYPES,F as headOnlyRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tabletKey as R}from"efficient-easel/draw";import{SECTION_BOX_SLOT as
|
|
1
|
+
import{tabletKey as R}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as j}from"../../../../../format/lib/content/section-width.js";import{SECTION_BOX_SLOT as D,SECTION_BOX_TYPE as G}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as W,DROP_SIDE_PADDING as v,INNER_BOX as o,SAME_KEYS as K,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as X,bandIndex as $,bandPage as Y,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 F}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as q,splitLegacyRegion as T}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as V}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as J}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),w=e=>`loc-${e}`,B=e=>r(e.state).trim()||T(r(e.region)).state,O=e=>r(e.country).trim()||T(r(e.region)).country,_=e=>[B(e),O(e)].filter(Boolean).join(" · "),Q=e=>h(e).some(t=>r(t.photo).trim()!==""),Z=e=>h(e).some(t=>J(Number(t.lat),Number(t.lng))),ee=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,te=(e,t)=>ee(e,t)===1?"wide":q(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},oe=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},ne={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:Q,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),hover:"mono"}:{},link:`#${w(t)}`,boxShape:te(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:oe(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},re={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=>V(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},ae={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)=>B(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ie={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[ae]},se={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:$(e,t)>=0?Y(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:w(t)}}),parts:[re,ie],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}),pe={kind:"block",type:G,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Z,slot:D,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"}}}}]},E=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),M=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,L)=>d(L,y)[t]]),I=["sectionAccent","sectionAccent",X],ce=["gridSpan","_hidden",...Object.values(j)],le={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",...E(d(e,y),M),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...K.filter(e=>e!=="sectionAccent"&&e!=="anchor"),I,["anchor","anchor",e=>F(e).trim()?e:"studios"],...A(M)],parts:[U("sectionNumber","heading","tagline"),ne],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...E(d(e,y),H),...P(e,t)}),box:[...ce,I,...A(H)],parts:[se,pe]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:z,drop:{...W,...v,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)"}},Te={ContactLocations:le};export{Te as LOCATIONS_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasWords as p}from"../../../sections/section-to-box.js";import{BLOCK_WIDTH_LIMIT as N}from"efficient-easel/draw";import{fluidToken as M,token as o}from"./section-head-looks.js";import{STRIP_BOX as R}from"../../../../../format/lib/sections/strip-shape.js";import{BUTTON as C,DIM as A,DROP_COMMON as l,DROP_SIDE_PADDING as d,INNER_BOX as n,leadLine as k,RIGHT_WORDS as P,SAME_KEYS as g,SECTION_BOX as c,SH_LINK as W,smallText as i,TEXT as a,wrapperPad as h,wrapperPadKeys as m}from"./section-to-box-row-parts.js";const r={textFit:"line",textFitPhone:"wrap"},f={minWidth:N.min},S=(e,t,s)=>({...i(e,{...t,...P}),props:{...a,align:"right",...r,...s}}),_={top:1,bottom:0},b=(e,t,s,H)=>({kind:"group",name:e,props:{...n,sectionPaddingBottom:t,sectionPaddingBottomPhone:s},parts:[H]}),
|
|
1
|
+
import{hasWords as p}from"../../../sections/section-to-box.js";import{BLOCK_WIDTH_LIMIT as N}from"efficient-easel/draw";import{fluidToken as M,token as o}from"./section-head-looks.js";import{STRIP_BOX as R}from"../../../../../format/lib/sections/strip-shape.js";import{BUTTON as C,DIM as A,DROP_COMMON as l,DROP_SIDE_PADDING as d,INNER_BOX as n,leadLine as k,RIGHT_WORDS as P,SAME_KEYS as g,SECTION_BOX as c,SH_LINK as W,smallText as i,TEXT as a,wrapperPad as h,wrapperPadKeys as m}from"./section-to-box-row-parts.js";const r={textFit:"line",textFitPhone:"wrap"},f={minWidth:N.min},S=(e,t,s)=>({...i(e,{...t,...P}),props:{...a,align:"right",...r,...s}}),_={top:1,bottom:0},b=(e,t,s,H)=>({kind:"group",name:e,props:{...n,sectionPaddingBottom:t,sectionPaddingBottomPhone:s},parts:[H]}),w={widthFit:"fill",...f},T={top:100,bottom:60,topPhone:60,bottomPhone:40},U={...o("label",13),letterSpacing:.22,lineHeight:1.8},x={textStyle:"heading-1",...M("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},E=e=>e.titleLevel===2,v=()=>({name:"Document Header",boxProps:e=>({...c,direction:"column",gap:0,sectionBorder:{bottom:1},...h(e,T)}),box:[...g,...m(T)],parts:[{kind:"group",name:"Header",props:{...n,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[b("Eyebrow",12,0,{...i("eyebrow",o("label",13)),props:{...a,...r}}),{kind:"text",key:"title",role:"heading",props:{...a,tag:"h1",...w},style:x,when:e=>!E(e)},{kind:"text",key:"title",role:"heading",props:{...a,tag:"h2",...w},style:x,when:E},{kind:"group",name:"Details",props:{...n,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[k("label","value",U,r)]}]}]},{kind:"group",name:"Deck",props:{...n,sectionBorder:_,sectionPaddingTop:32},parts:[{kind:"text",key:"deck",props:{...A,maxWidth:760},style:{textStyle:"body-1",fontRole:"accent",...o("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...l,...d,titleLevel:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),I={top:80,bottom:40,topPhone:60,bottomPhone:32},X={...o("label",13),letterSpacing:.18,lineHeight:1.8},O={...o("label",13),letterSpacing:.22,lineHeight:1.9},G=()=>({name:"Issue Header",boxProps:e=>({...c,direction:"column",gap:0,sectionBorder:{bottom:1},...h(e,I)}),box:[...g,...m(I)],parts:[{kind:"group",name:"Top",props:{...n,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[b("Eyebrow",14,14,i("eyebrow",o("label",14))),{kind:"group",name:"Issue",props:{...n,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[k("lead","rest",X)]}]}]},{kind:"group",name:"Bottom",props:{...n,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:_,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...a,maxWidth:720,...f},style:{textStyle:"body-1",fontRole:"heading3",...o("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...n,align:"stretch",gap:0},parts:[b("Heading",6,6,{kind:"text",key:"issueHeading",props:{...a,align:"right",...r},style:{textStyle:"body-1",fontRole:"heading",...o("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...P}}),{kind:"group",name:"Lines",props:{...n,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[S("text",{color:"labels",...O})]}]},S("issueTotal",O)]}]}],drop:{...l,...d}}),B={top:24,bottom:24,topPhone:16,bottomPhone:16},u={color:"labels",...o("label",13),letterSpacing:.2},L=e=>(Array.isArray(e.items)?e.items:[]).filter(t=>t&&typeof t.label=="string"&&t.label.trim()!==""),y=(e,t)=>t!==void 0&&L(e).at(-1)===t,D=(e,t)=>t!==void 0&&L(e).includes(t),K=(e,t)=>D(e,t)&&!y(e,t)&&p(t?.href),j=()=>({name:"Breadcrumb",skip:e=>p(e.meta)?'a trailing note after "·" needs a second mark; none live':void 0,boxProps:e=>({...c,...R,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...h(e,B)}),box:[...g,...m(B)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:K,props:{...C,...W,icon:"none"},style:u},{...i("label",u),when:(e,t)=>D(e,t)&&!y(e,t)&&!p(t?.href)},{...i("label",{...u,color:"text"}),when:y}]}],drop:{...l,...d,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),J={DocMasthead:v(),Masthead:G(),Breadcrumb:j()};export{J as PAGE_HEADER_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
|
|
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 w,siteGutterOf as C,innerPadKeys as S,smallText as u,wrapperPad as b,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as R}from"./section-to-box-rows-cards.js";import{normalizeSiteGutterPhone as D,siteGutterPhoneFollows as L}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 U}from"./section-to-box-rows-pageheader.js";import{DOCBODY_SECTION_TO_BOX as Y}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as j}from"./section-to-box-rows-editorial.js";import{fluidToken as q,headTree as f,token as r}from"./section-head-looks.js";import{boxPadding as J}from"../../../../../format/lib/document/seed-parts.js";const O={top:72,bottom:72,topPhone:72,bottomPhone:72},Q={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...b(e,O)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...P(O)],parts:[f("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},...w(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",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function Z(e){const{siteGutter:n,siteGutterPhone:i}=e.site??{},a=C(e),y=Math.min(20,D(i)??L(n));return{sectionPaddingLeft:a,sectionPaddingRight:a,sectionPaddingLeftPhone:y,sectionPaddingRightPhone:y}}const B={top:40,bottom:64,topPhone:24,bottomPhone:36},$={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,...b(e,B),...Z(n)}),box:[...d,...P(B)],parts:[f("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"}},x={...t,direction:"row",share:[67],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},...w(e,"ParagraphsA")}),box:[...d,...S("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...x,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:{...x,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,...b(e,I)}),box:[...d,"contained",...P(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 we(){o(oe),o(X),o(G),o(R),o(M),o(F),o(z),o(K),o(U),o(Y),o(j)}export{oe as GENERAL_SECTION_TO_BOX,we as registerGeneralSectionRows};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function markHeadCoreBoxes<T>(data: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNode as y,isNodeList as c}from"efficient-easel/data";import{storedStepsShown as l}from"../../components/ProcessSteps.js";import{HEAD_CORE_PROP as O,HOLDS_HEAD_CORE_PROP as P}from"../content/empty-hides.js";import{parseSectionHeadPlacement as x}from"../../../format/lib/sections/section-head-placement.js";const u="Flex",E="Text",m=t=>Object.values(t??{}).filter(c),p=t=>x(t.props?.headPlacement)==="own-box",i=t=>t===void 0||Array.isArray(t)&&t.length===0;function f(t){return t.type===E?!0:t.type===u&&m(t.props).every(e=>e.every(f))}const g={ProcessSteps:t=>i(t.boxes)&&l(t.steps).length===0,Logos:t=>i(t.logos)&&i(t.items)};function A(t){if(t?.type!==u||!t.props)return t;const e=m(t.props).flat();if(!e.some(p)||!e.every(o=>p(o)||f(o)))return t;const n={...t.props,[P]:!0};for(const[o,s]of Object.entries(t.props))!c(s)||!s.some(r=>y(r)&&p(r))||(n[o]=s.map(r=>{if(!p(r))return r;const a=g[String(r.type)]?.(r.props??{})===!0;return{...r,props:{...r.props,[O]:a?"empty":!0}}}));return{...t,props:n}}function b(t){const e=t;if(!e||!Array.isArray(e.content))return t;let n=!1;const o=e.content.map(s=>{const r=A(s);return r!==s&&(n=!0),r});return n?{...e,content:o}:t}export{b as markHeadCoreBoxes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t}from"react/jsx-runtime";import{Render as m}from"efficient-easel/render";import{capHeroGroups as i}from"../../../format/lib/document/cap-hero-groups.js";import{
|
|
1
|
+
"use client";import{jsx as t}from"react/jsx-runtime";import{Render as m}from"efficient-easel/render";import{capHeroGroups as i}from"../../../format/lib/document/cap-hero-groups.js";import{markHeadCoreBoxes as a}from"./head-core-boxes.js";import{oneH1 as n}from"../../../format/lib/document/one-h1.js";import{withPageContents as f}from"../content/page-contents.js";import{migrateLegacyPageData as p}from"./migrate-legacy.js";import{migrateRenamedProps as s}from"../../../format/lib/document/renamed-props.js";import{convertSectionsInPage as g,SECTION_TO_BOX_ON as c}from"../sections/section-to-box.js";import{siteThemeOf as d}from"../../../format/lib/theme.js";import{registerGeneralSectionRows as u}from"./blocks/general/section-to-box-rows.js";function O({config:e,data:o,metadata:r}){return u(),t(m,{config:e,metadata:r,data:f(a(n(i(g(s(p(o)),c,{theme:d(r)})))))})}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as T}from"react/jsx-runtime";import{parseBlockWidthFit as K,phoneKey as l,tabletKey as o}from"efficient-easel/draw";import{blockFillInCellClass as P,blockPhoneHideClass as A,blockSizeOf as L,blockSizeValuesOf as G}from"../../content/block-size.js";import{CellWrap as X,useBoxCell as Z}from"../../../components/InBoxContext.js";import{boxPhoneRowFits as $,boxRowColumnsClass as W,boxShareClasses as g,boxShareTabletOf as v,boxTabletColumnsClass as U}from"../../../../format/lib/content/box-layout.js";import{resolveContainerDirection as M}from"../../../../format/lib/content/container-direction.js";import{containerBlocksFor as V}from"../../../../format/lib/document/container-blocks.js";import{readPartStyle as Y}from"../part-styles.js";import{addShowWhenFacts as q,withRowRules as p}from"../../../../format/lib/document/show-when-attach.js";import{BOX_BLOCK_KEYS as J}from"./cell-width.js";import{findParentNode as Q}from"../../../../format/lib/document/passes/document-position.js";const tt=new Set(["Text","Heading"]),et=new Set(["h1","h2","h3","h4","h5","h6"]);function O(t,e){return t==="Heading"?!0:t!=="Text"?!1:typeof e.tag=="string"&&et.has(e.tag)?!0:Y(e,"text").textStyle?.startsWith("heading-")===!0}const a={not:{context:"blockOutsideBox",is:!0}},B={all:[a,{not:{context:"boxSharesWidth",is:!0}}]},k={all:[a,{not:{context:"boxSharesWidthPhone",is:!0}}]},C={all:[a,{not:{context:"boxSharesWidthTablet",is:!0}}]};function H(t,e,i){return{any:[{field:o(t),is:e},{all:[{field:o(t),set:!1},i??{field:t,is:e}]}]}}function I(t,e,i){return{any:[{field:l(t),is:e},{all:[{field:l(t),set:!1},i??{field:t,is:e}]}]}}const y={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},it=[[["_gBlockSize","minWidth",o("minWidth"),l("minWidth"),"maxWidth",o("maxWidth"),l("maxWidth")],a],[["widthFit"],B],[[o("widthFit")],C],[[l("widthFit")],k],[["width"],{all:[B,{field:"widthFit",is:"fixed"}]}],[[o("width")],{all:[C,H("widthFit","fixed")]}],[[l("width")],{all:[k,I("widthFit","fixed")]}]],N=H("textFit","shrink",y),E=[[["_gText","textFit",o("textFit"),l("textFit")],a],[["minFont"],{all:[a,y]}],[[o("minFont")],{all:[a,N]}],[[l("minFont")],{all:[a,I("textFit","shrink",N)]}]],h=(t,e)=>Q(e.appState,t.props?.id),u=t=>!!t&&typeof t.type=="string"&&V(t.type)!==null,S=t=>(t.type==="Flex"||t.type==="HeroGroup")&&M(t.type,t.props?.direction)==="row",b=t=>{const e=K(t);return e!==void 0&&e!=="fit"},nt={blockOutsideBox:(t,e)=>!u(h(t,e)),boxSharesWidth:(t,e)=>{const i=h(t,e);return!u(i)||!S(i)?!1:W({...i.props,direction:"row"})!==""?!0:g(i.props?.share)!==""&&!b(t.props?.widthFit)},boxSharesWidthTablet:(t,e)=>{const i=h(t,e);if(!u(i)||!S(i))return!1;if(U(i.props?.[o("columns")])!==""||W({...i.props,direction:"row"})!=="")return!0;const n=v(i.props?.[o("share")])??i.props?.share;return g(n)!==""&&!b(t.props?.[o("widthFit")]??t.props?.widthFit)},boxSharesWidthPhone:(t,e)=>{const i=h(t,e);if(!u(i)||!S(i))return!1;const n=i.props?.phoneRow;return(Number(n)===2||Number(n)===3)&&!$(n,i.props?.[l("share")])&&!b(t.props?.[l("widthFit")]??t.props?.widthFit)}},rt=t=>/^_[gds][A-Z]/.test(t);function st(t,e,i){const n=Object.entries(t),r=n.findIndex(([c])=>c===e);if(r===-1)return null;let s=r+1;for(;s<n.length&&!rt(n[s][0]);)s++;return Object.fromEntries([...n.slice(0,s),...Object.entries(i),...n.slice(s)])}function R(t,e,i){const n=Object.entries(t);return Object.fromEntries([...n.slice(0,e),...Object.entries(i),...n.slice(e)])}function ot(t,e,i){const n=Object.keys(e);if(n.includes("_dSize")){const{_gBlockSize:r,...s}=i;return R(e,n.indexOf("_dSize")+1,s)}return lt.has(t)&&n.includes("_gSpacing")?R(e,n.indexOf("_gSpacing"),i):{...e,...i}}const lt=new Set(["Text","Heading"]);function ct(t,e){const{_gText:i,...n}=e;return st(t,"_gText",n)??{...t,...e}}function at(t){const e=new WeakMap;return i=>{if(!i||!("textFit"in i))return i;let n=e.get(i);if(!n){n={...i};for(const r of["textFit",o("textFit"),l("textFit")])r in n&&(n[r]=t[r]);e.set(i,n)}return n}}const Wt={name:"blockSize",applies:(t,e,i)=>J.includes(t)&&!!i&&typeof i.render=="function",panel(t,e,i){const n=tt.has(e),{text:r}=i.blockSizeFields(n?{tablet:!0,textFit:e==="Heading"?"shrink":"wrap"}:{}),{size:s}=i.blockSizeFields({tablet:!0});let c=ot(e,t.fields??{},p(s,it));if(n){const f=p(r,E);if(c=ct(c,f),e==="Text"){const z=p(i.blockSizeFields({tablet:!0,textFit:"shrink"}).text,E),D=at(z),w=t.resolveFields,j=(F,d)=>{const x=w?w(F,d):d.fields,m=_=>O(e,F?.props??{})?D(_??d.fields):_;return x instanceof Promise?x.then(m):m(x)};t.resolveFields=j}}t.fields=c,q(t,{...nt,textWrapsByDefault:f=>!O(e,f.props??{})})},draw(t){ht(t)}};function ht(t){const e=t.render;t.render=i=>{const n=G(i),r=L(n),s=e(i);if(r===null)return s;const c=A(i);return T(ut,{size:r,className:c?`${r.className} ${c}`:r.className,inCell:P(n),children:s})}}function ut({size:t,className:e,inCell:i,children:n}){const r=Z()?.phoneCells===!0;return T(X,{className:r&&i?`${e} ${i}`:e,...Object.keys(t.style).length?{style:t.style}:{},attrs:t.attrs,children:n})}export{Wt as blockSize,O as textShrinksByDefault};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as n}from"react/jsx-runtime";import{CardRowDrawn as f}from"../../../components/CardRowContext.js";import{PublishedPartStyles as h}from"../../../components/PublishedPartStylesContext.js";import{readPartStyles as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{CardRowDrawn as f}from"../../../components/CardRowContext.js";import{PublishedPartStyles as h}from"../../../components/PublishedPartStylesContext.js";import{readPartStyles as y}from"../part-styles.js";import{readPartMotions as p}from"../../animation/part-motion.js";import{partNeedles as P}from"../text-parts.js";import{CARD_LIST_TYPE as x}from"../../../../format/lib/content/card-template.js";const S={name:"clickableParts",applies:(o,e,s)=>typeof s?.render=="function"&&o!==x,draw(o,e,s){const r=o,d=()=>r.textParts??r.fields,i=r.render,m=s.inspector?.PartAnchors;r.render=t=>{const c=y(t),l=p(t);return t.editor?.isEditing&&m?n(f,{type:e,props:t,children:a=>n(m,{needles:P(d(),a),styles:c,motions:l,type:e,children:i(t)})}):!Object.keys(c).length&&!Object.keys(l).length?i(t):n(f,{type:e,props:t,children:a=>n(h,{needles:P(d(),a),styles:c,motions:l,type:e,children:i(t)})})}}};export{S as clickableParts};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{EmptyHidesStyle as s,HEAD_BOX_CLASS as _,HEAD_CORE_CLASS as c,HEAD_CORE_PROP as d,HOLDS_HEAD_CORE_PROP as l}from"../../content/empty-hides.js";const o="Flex",i=(e,r)=>e[r]!==void 0&&e[r]!==!1&&!e.editor?.isEditing,m={name:"headCore",applies:(e,r,n)=>typeof n?.render=="function",draw(e){const r=e.render;e.render=n=>i(n,d)?t("div",{className:c,children:n[d]==="empty"?null:r(n)}):r(n)}},E={name:"headBox",applies:(e,r,n)=>e===o&&typeof n?.render=="function",draw(e){const r=e.render;e.render=n=>i(n,l)?a("div",{className:_,children:[t(s,{}),r(n)]}):r(n)}};export{E as headBox,m as headCore};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{catalogueLabel as e}from"../../../../format/lib/document/passes/catalogue-labels.js";import{blockSize as n}from"./block-size.js";import{cardTemplateOnInsert as s}from"../../../../format/lib/document/passes/card-template-on-insert.js";import{cellWidth as p}from"./cell-width.js";import{clickableParts as c}from"./clickable-parts.js";import{cardCorners as f,sectionCorners as a}from"./corners.js";import{emptyHeadings as l}from"../../../../format/lib/document/passes/empty-headings.js";import{showWhenRows as d}from"../../../../format/lib/document/passes/show-when-rows.js";import{
|
|
1
|
+
import{catalogueLabel as e}from"../../../../format/lib/document/passes/catalogue-labels.js";import{blockSize as n}from"./block-size.js";import{cardTemplateOnInsert as s}from"../../../../format/lib/document/passes/card-template-on-insert.js";import{cellWidth as p}from"./cell-width.js";import{clickableParts as c}from"./clickable-parts.js";import{cardCorners as f,sectionCorners as a}from"./corners.js";import{emptyHeadings as l}from"../../../../format/lib/document/passes/empty-headings.js";import{showWhenRows as d}from"../../../../format/lib/document/passes/show-when-rows.js";import{headBox as h,headCore as u}from"./head-core.js";import{hiddenNodes as S}from"../../../../format/lib/document/passes/hidden-nodes.js";import{showFor as g}from"./show-for.js";import{mediaValues as w}from"../../../../format/lib/document/passes/media-values.js";import{sectionAnchor as b}from"./section-anchor.js";import{blockEntrance as A,sectionAnimation as P}from"./section-animation.js";import{sectionHeight as k}from"./section-height.js";import{cardSticky as C,sectionSticky as B}from"./section-sticky.js";import{sectionBorder as W}from"./borders.js";import{blockPadding as y,sectionPadding as G}from"./section-padding.js";import{sectionTheme as T,slideTheme as E}from"./section-theme.js";import{buttonAlignInRow as H,containedWidth as I,sectionWidth as L}from"./section-width.js";import{blockGroups as O,sectionGroups as R}from"../../../../format/lib/document/passes/settings-groups.js";import{slotsStartAfresh as x}from"./slots-start-afresh.js";import{openSlotDisallow as z,sectionGroupAllow as D}from"../../../../format/lib/document/passes/slot-rules.js";import{registryPassContext as ao}from"../../../../format/lib/document/passes/registry-context.js";const F=[x,w,u,D,z,G,a,W,f,y,A,p,L,I,H,k,b,T,P,B,C,E,n,R,O,d,l,c,h,g,S,e,s];function po(r,m,o){const t=m;for(const i of F)i.applies(r,o,t)&&(o.inspector&&i.panel?.(t,r,o.inspector,o),i.draw?.(t,r,o));return m}export{F as BLOCK_PASSES,po as applyBlockPasses,ao as registryPassContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import{CellWrap as
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{CellWrap as f}from"../../../components/InBoxContext.js";import{SectionRootChoice as T}from"../../../components/SiteGutterFrame.js";import{SITE_WIDTH_CAP as _,centredCap as h}from"../../../../format/lib/content/page-width.js";import{ownNodeWidth as L}from"../../../../format/lib/content/site-gutter.js";import{SECTION_THEME_EXCLUDED as C,SECTION_THEME_NESTED_READING as E,nestedAccentValue as l,sectionThemeWrap as N}from"../../../../format/lib/content/section-surface.js";const I={name:"sectionTheme",applies:(e,s,t)=>s.isSection(e)&&!C.has(e)&&!!t&&typeof t.render=="function",panel(e,s,t){const{sectionThemeFields:o,SECTION_THEME_FOLLOW_LABEL:n}=t,i=E.has(s);e.fields={...e.fields,...i?o(l,n):o()}},draw(e,s){const t=E.has(s),o=e.render;e.render=n=>{const i=N(t?{...n,sectionAccent:l(n.sectionAccent)}:n),d=o(n);if(!i)return d;const r=m=>a(f,{className:i.className,style:m,children:d}),c=i.style;return L(s,n).background!=="content"?r(c):a(T,{own:()=>r({...c,...h(_)}),followed:()=>r(c)})}}},W={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,s,t){const{sectionThemeFields:o,BLOCK_THEME_FOLLOW_LABEL:n}=t;e?.fields&&(e.fields={...e.fields,...o(l,n)})}};export{I as sectionTheme,W as slideTheme};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{INTRO_EDGE_CLASS as U}from"../../../../format/lib/sections/intro-bleed-layout.js";import{resolveContainerDirection as $}from"../../../../format/lib/content/container-direction.js";import{HERO_BACKGROUND_VAR as Y,HERO_CHROME_CAP_VAR as K,HERO_CHROME_INSET_VAR as j,SITE_WIDTH_CAP as h,centredCap as b,heroBackgroundTokens as X}from"../../../../format/lib/content/page-width.js";import{SECTION_WIDTH_FAMILY as B,SECTION_WIDTH_KEYS as I,hasOwnSectionWidth as q,hasWidthFamily as z,resolveWidth as g,siteWidthsOf as J}from"../../../../format/lib/content/section-width.js";import{BOX_GUTTER_KEY as Q,boxGutterOf as Z,boxPlaceOf as tt,boxRunsEdgeToEdge as nt,isFrameContainer as N,ownNodeWidth as et,siteDrawsGutter as ot}from"../../../../format/lib/content/site-gutter.js";import{getEditorSiteContentWidth as it}from"../../../../format/lib/document/editor-site-widths.js";import{NestedBoxChoice as ct,SectionGroupChoice as rt,SectionGroupWidthsProvider as lt,SectionRootChoice as dt,SplitBandAndColumn as G}from"../../../components/SiteGutterFrame.js";import{FRAME as D}from"../../../components/BlockFrame.js";import{sectionFillPassClass as F}from"../../../../format/lib/content/section-min-height.js";import{parentCapsWidth as ut}from"../../../../format/lib/sections/section-head-placement.js";import{addShowWhenFacts as w,withRowsShownWhen as E}from"../../../../format/lib/document/show-when-attach.js";import{findParentNode as H,isNestedNode as st}from"../../../../format/lib/document/passes/document-position.js";const O="--sf-sw-site",at="--sf-sw-content",ft="--sf-bg-cap",ht="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",x=({own:t,content:n,siteContent:e})=>t===!0&&n==="full"&&e!=="full",M="contents view-wide:[--sf-site-width:100vw]",R=({held:t},n,e)=>t?e:l("div",{className:n,children:e}),_t=`contents view-wide:[--sf-site-width:100vw] ${U} view-wide:[--sf-site-gutter:var(--intro-edge)]`,m=(t,n)=>n==="content"?`min(${t}px,var(${O}))`:`${t}px`;function C({content:t,contentMax:n},e){return t==="full"?e!=="content"?"100vw":null:n===null?null:m(n,e)}function T(t,n){return n===null?t:l("div",{className:"contents",style:{[O]:h},children:l("div",{className:ht,style:{[at]:n},children:t})})}const Nt="--sf-content-cap",wt="contents max-view-wide:[--sf-content-cap:none]";function Et({content:t,contentMax:n},e){return t==="full"?null:n!==null?m(n,e):e==="content"?null:`var(${O})`}function Ot(t,n){return n===null?t:l("div",{className:"contents",style:{[O]:h},children:l("div",{className:wt,style:{[Nt]:n},children:t})})}const s=(t,n,e="")=>t==="content"?l("div",{className:e||void 0,style:b(h),children:n}):n;function L(t,n,e,o,i){if(x(e))return s(o,R(e,M,l(G,{children:t({...n,contained:!0})})),i);if(e.content==="full")return s(o,t({...n,contained:!1}),i);const c=C(e,o);return o==="content"&&c===null&&!e.own?t({...n,contained:!0}):s(o,T(l(G,{children:t({...n,contained:!0})}),c),i)}function P(t,n,e,o){if(e==="hero"){const r=T(t(n),C(o,o.band));return o.band==="full"?l("div",{style:{[Y]:"none",[j]:"initial",[K]:"initial"},children:r}):o.band==="content"?l("div",{style:X(!0),children:r}):r}const i=o.band??"full",c=F(n);if(e==="rawMarkup"){if(o.content==="full")return s(i,t(n),c);const r=o.contentMax===null?h:m(o.contentMax,i);return l("div",{className:"contents",style:{[O]:h},children:s(i,l("div",{className:c||void 0,style:b(r),children:t(n)}),c)})}if(e==="scrollOver"){const r=o.content==="full",d=x(o)?R(o,_t,t({...n,fullWidth:!1})):T(t({...n,fullWidth:r}),r?null:C(o,i));return i==="content"?l("div",{className:"contents",style:{[ft]:h},children:d}):d}switch(e){case"both":return s(i,Ot(t(n),Et(o,i)),c);case"contained":return L(t,n,o,i,c);case"contentColumn":case"contentFull":case"productGrid":{const r=x(o),d=o.content==="full"&&!r?"full":"page",u=r?R(o,M,t({...n,widthMode:d})):T(t({...n,widthMode:d}),o.content==="full"?null:C(o,i));return e==="productGrid"&&!o.own?i==="content"?l("div",{className:c?`${D} ${c}`:D,children:u}):u:s(i,u,c)}default:return s(i,T(t(n),C(o,i)),c)}}function Ct(t,n){const e=B[n],o=t.render;t.render=i=>{const c=J(i),r={band:c.background,content:c.content??"content",contentMax:null},d=()=>e==="rawMarkup"?o(i):l(rt,{draw:f=>{const _=f?{...r,band:f.background==="content"?r.band:f.background??r.band,content:f.content??r.content,own:f.background==="full"||f.content!==null,held:!0,siteContent:r.content}:r,v=P(o,i,e,_);if(!N(n))return v;const A=Z(i),W=A===void 0?_.content:A?"content":"full";return W===_.content?v:l(ct,{atTop:v,nested:L(o,i,{..._,content:W,own:!1},_.band??"full",F(i))})}}),u=et(n,i);if(!q(u))return d();const a=e==="rawMarkup",S=u.background??(a?"full":c.background),V=u.content??(a?"full":r.content),p={band:S,content:S==="content"?"content":V,contentMax:u.contentMax,own:!a,siteContent:r.content};return l(dt,{own:()=>l(lt,{value:{background:p.band,content:p.content},children:P(o,i,e,p)}),followed:d})}}const k={not:{context:"heldByANode",is:!0}},Tt={all:[k,{not:{context:"runsEdgeToEdge",is:!0}}]},yt={name:"sectionWidth",applies:(t,n,e)=>z(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.sectionOwnWidthFields({drawsFullOnItsOwn:B[n]==="rawMarkup"}),i=N(n)?e.boxGutterFields():{},c={...t.fields,...i,...o},r=N(n)?y(n,t,c,[Q]):c;w(t,{heldByANode:(d,u)=>"parent"in u?u.parent!=null:!!H(u.appState,d.props?.id)}),N(n)&&w(t,{runsEdgeToEdge:d=>nt(d.props??{})}),t.fields=E(r,[I.background,I.content],N(n)?Tt:k)},draw(t,n){Ct(t,n)}};function St(t,n){if(!t||!("widthMode"in t))return t;const e={...t},o=e.widthMode;return o&&(e.widthMode={...o,currentValue:n.mode,inherited:n.inherited}),e}const pt=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),Vt={name:"containedWidth",applies:(t,n,e)=>pt.has(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.widthField;t.fields=y(n,t,{...t.fields,...o("page")});const i=t.resolveFields;t.resolveFields=(c,r)=>{const d=i?i(c,r):r.fields,u=g(c?.props??{},"page"),a=S=>St(S,u);return d&&typeof d.then=="function"?d.then(a):a(d)}},draw(t){const n=t.render;t.render=e=>{const{mode:o}=g(e,"page");return n({...e,contained:o!=="full"})}}},vt={not:{context:"inHeroGroupRow",is:!0}},Ut={name:"buttonAlignInRow",applies:t=>t==="ButtonBlock",panel(t){const n=t;n.fields=E(n.fields??{},["align"],vt),w(n,{inHeroGroupRow:(e,o)=>{const i=H(o.appState,e.props?.id);return!!i&&i.type==="HeroGroup"&&$("HeroGroup",i.props?.direction)==="row"}})}};function xt(t){return Object.values(t).some(n=>!!n&&typeof n=="object"&&n.type==="slot")}const Rt={any:[]},mt={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},At={not:{context:"widthCappedByParent",is:!0}};function y(t,n,e,o=["widthMode"]){if(t==="ButtonBlock")return E(e,["_gWidth",...o],Rt);if(xt(e)){const i=(c,r)=>tt(r.appState?.data?.content,c.props?.id,ot(it()));return w(n,{outsideBox:(c,r)=>i(c,r)?.inBox!==!0,insideSiteGutter:(c,r)=>i(c,r)?.insideGutter}),E(e,o,mt)}return w(n,{widthCappedByParent:(i,c)=>"parent"in c?ut(c.parent):st({props:i.props??{}},c)}),E(e,o,At)}export{ft as SECTION_BACKGROUND_VAR,wt as SECTION_CONTENT_CAP_CLASS,Nt as SECTION_CONTENT_CAP_VAR,ht as SECTION_CONTENT_CLASS,at as SECTION_CONTENT_VAR,O as SITE_CONTENT_VAR,Ut as buttonAlignInRow,Vt as containedWidth,yt as sectionWidth,St as widthModeFields};
|