efficient-web-builder 55.2.0 → 55.3.1
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 +38 -0
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/lib/document/block-source-fields.d.ts +1 -0
- package/dist/editor/lib/document/block-source-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/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-row-fields.d.ts +2 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/choice-pictures.d.ts +2 -0
- package/dist/editor/lib/document/choice-pictures.js +1 -1
- package/dist/editor/lib/document/live-number-field.d.ts +5 -0
- package/dist/editor/lib/document/live-number-field.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.js +1 -1
- package/dist/editor/lib/document/part-panel-rows.js +1 -1
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +12 -1
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +3 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +6 -1
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/count-numbers.d.ts +1 -1
- package/dist/format/lib/content/count-numbers.js +1 -1
- package/dist/format/lib/content/footer.js +1 -1
- package/dist/format/lib/content/image-text-rows.d.ts +22 -0
- package/dist/format/lib/content/image-text-rows.js +1 -0
- package/dist/format/lib/content/mirror-cards.d.ts +17 -0
- package/dist/format/lib/content/mirror-cards.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/Logos/card-seed.d.ts +7 -0
- package/dist/format/lib/document/blocks/general/Logos/card-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Logos/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.d.ts +11 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.js +1 -0
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/passes/document-position.d.ts +8 -0
- package/dist/format/lib/document/passes/document-position.js +1 -1
- package/dist/format/lib/document/row-hand.d.ts +5 -0
- package/dist/format/lib/document/row-hand.js +1 -0
- package/dist/format/lib/document/section-catalog.js +17 -3
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/document/seed-parts.d.ts +3 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/document/text-seeds.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +38 -1
- package/dist/format/lib/editor-words-catalogue.js +6 -6
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/sections/strip-shape.js +1 -1
- package/dist/format/lib/sections/ticker-join.d.ts +1 -0
- package/dist/format/lib/sections/ticker-join.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +2 -2
- package/dist/format/lib/theme.d.ts +1 -0
- package/dist/format/lib/theme.js +3 -3
- package/dist/render/components/CardRowContext.d.ts +5 -0
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/ClientRows.d.ts +8 -0
- package/dist/render/components/ClientRows.js +1 -0
- package/dist/render/components/Flex.d.ts +2 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/JoinBox.d.ts +4 -0
- package/dist/render/components/JoinBox.js +1 -0
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.d.ts +4 -2
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/MirrorContext.d.ts +12 -0
- package/dist/render/components/MirrorContext.js +1 -1
- package/dist/render/components/PaymentBadges.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +5 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.d.ts +5 -0
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
- 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 +3 -0
- 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-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-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.d.ts +1 -0
- 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-stats.d.ts +5 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.d.ts +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
- package/dist/render/lib/document/head-core-boxes.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +2 -0
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/box-join.d.ts +2 -0
- package/dist/render/lib/document/passes/box-join.js +1 -0
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/sections/card-list-style.d.ts +18 -0
- package/dist/render/lib/sections/card-list-style.js +1 -0
- package/dist/render/lib/sections/payment-rows.d.ts +16 -0
- package/dist/render/lib/sections/payment-rows.js +1 -0
- package/dist/render/lib/sections/section-to-box.d.ts +1 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...
|
|
1
|
+
import{SPLITTABLE_SECTIONS as k}from"../../../../../format/lib/sections/section-head-placement.js";import{AUTO_COLUMN as E,BUTTON as O,DIM as _,INNER_BOX as o,SH_LINK as L,TEXT as h,smallText as M}from"./section-to-box-row-parts.js";import{labelTextSeed as A}from"../../../../../format/lib/document/text-seeds.js";import{labelStyle as P,token as a}from"../../../../../format/lib/document/seed-parts.js";function w(e){if(e==="ProductGrid")return"shelf";const t=k[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const v={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 C(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=k[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 K(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=y({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const u={top:0,right:0,bottom:1,left:0};import{token as q}from"../../../../../format/lib/document/seed-parts.js";const H=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>M(e,{...a("label",t),...n}),c=(e,t)=>({kind:"text",key:e,role:"heading",props:h,style:{textStyle:"heading-2",...t}}),m=800,f=(e,t,n,i)=>({kind:"text",key:e,props:{..._,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:m}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),b={...O,align:"right",alignPhone:"left",...L,icon:"arrow-right",iconPosition:"after"},T=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b,style:{...P(e),color:"labels"}}),x=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...h,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?R(A()):{},...n.style}}}}},R=e=>e._partStyles.text??{},d={widthFitPhone:"fill"};function W(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?{...H("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:u,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?[x(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...d},parts:[S,...g?[x(t.title,`Three ranges,
|
|
2
|
+
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...d,gap:12,maxWidth:340,maxWidthPhone:m},parts:[...t.description?[f(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[T(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:T(14).style}}}]:[]]}]}}function y(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:u,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:{...o,sectionPaddingBottom:8},parts:[{...l(e.num,13),props:{...h,...E}}]},c(e.title,{...H("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:m},parts:e.description?[f(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function N(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),c(e.title,t)]}}const B=[["para",{...P(13),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=>B.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:u,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}),...B.map(([t,n])=>({...c(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?[f(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[T(13)]:[]]}]}}function X(e){return w(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 G(e){const t=p.get(e);if(t)return t;const n=C(e),i=w(e),r=i==="editorial"?y(n):i==="simple"?N(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?N(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?z(n):W(e,n);return p.set(e,r),r}export{v as HEAD_BELOW,K as editorialHeadTree,H as fluidToken,w as headLookOf,X as headReads,G as headTree,q as token};
|
|
@@ -2,6 +2,7 @@ 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
4
|
export { BOX, DIM, INNER_BOX, TEXT } from "../../../../../format/lib/document/seed-parts.js";
|
|
5
|
+
export declare const AUTO_COLUMN: Readonly<Record<string, unknown>>;
|
|
5
6
|
export declare const NUMBER_TEXT: Props;
|
|
6
7
|
export declare const BUTTON: Props;
|
|
7
8
|
export declare const SH_LINK: Props;
|
|
@@ -14,6 +15,8 @@ export type OwnPad = {
|
|
|
14
15
|
bottom: number;
|
|
15
16
|
topPhone: number;
|
|
16
17
|
bottomPhone: number;
|
|
18
|
+
topTablet?: number;
|
|
19
|
+
bottomTablet?: number;
|
|
17
20
|
};
|
|
18
21
|
export declare function wrapperPad(p: Props, own: OwnPad): Props;
|
|
19
22
|
export declare const wrapperPadKeys: (own: OwnPad | ((props: Props) => OwnPad)) => BoxEntry[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SECTION_WIDTH_KEYS as
|
|
1
|
+
import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{phoneKey as v}from"efficient-easel/draw";import{BOX as L,INNER_BOX as w,LABEL_FACE as N,TEXT as A}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as M}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as T}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as y}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as F}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as K}from"../../../content/section-padding.js";import{ButtonBlockMeta as X}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as G}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as f,hasWords as Y}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as j}from"../../../../../format/lib/content/section-background.js";import{parseHexColor as V}from"efficient-shell/format";import{convertLength as $,isLengthUnit as J}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as z,surfaceTwoTone as q}from"../../../../../format/lib/theme.js";const x=t=>J(t)?t:"px",d=(t,o,e,n)=>o===e?t:$(t,o,e,n,{min:0,max:200,step:4});import{BOX as jt,DIM as Vt,INNER_BOX as $t,TEXT as Jt}from"../../../../../format/lib/document/seed-parts.js";const _t={textFit:"line",textFitPhone:"wrap"},Q={...A,[y]:""},{label:Bt,href:Et,...Z}=X.defaultProps,Ot=Z,St={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Ut={...L,sectionAccent:0},Nt=["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(M).flatMap(t=>[t,v(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(W)],c="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",At={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:c,fullWidth:c,pageWidth:c,backgroundWidth:c,contentWidth:c,contentMax:c},Ct=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 tt(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=x(t.sectionPaddingUnit),g=x(t.sectionPaddingUnitTablet),u=x(t.sectionPaddingUnitPhone),O=(h,a,b,P)=>{const r=p(h);if(r!==void 0)return r+d(P,"px",u,"mobile");const U=a===void 0?{n:b,unit:l}:{n:a,unit:g};return d(U.n,U.unit,u,"mobile")+d(P,"px",u,"mobile")},S=(h,a,b,P,r)=>a!==void 0?{[h]:a+d(r??P,"px",g,"tablet")}:r===void 0?{}:{[h]:d(b,l,g,"tablet")+d(r,"px",g,"tablet")};return{sectionPaddingTop:e+d(o.top,"px",l,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",l,"desktop"),...S("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...S("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:O(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:O(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const It=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>tt(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function m(t,o){const e=K(t,G[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Rt=t=>[["padTop","sectionPaddingTop",(o,e)=>m(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>m(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>m(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>m(e,t).sectionPaddingBottom]],ot={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},kt=t=>o=>Y(o.props[t])?[ot]:[],Ht=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:A,...o?{style:o}:{}}),C=t=>t.background!=="transparent",et=(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},I={align:"right",alignPhone:"left"},nt=(t,o,e)=>{const n=i=>et(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}},Dt=(t,o,e,n={})=>nt(t,o,{...Q,...I,...n,_partStyles:{text:{...N,color:"labels",...e,case:N.case,...I}}}),_=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:f(o)?.selected??0,R="var(--site-surface)",k="var(--site-surface-2)",B=(t,o)=>f(o)?.themes[_(t.sectionAccent??0,o)],H=t=>(o,e)=>{const n=B(o,e)?.[t];return n?{fillColor:n}:{}},D=t=>t.startsWith("#")&&V(t)!==null,Wt=(t,o,e)=>{const n=t?.trim();if(n&&D(n))return{fillColor:n};if(n===R)return H("surface")(o,e);const i=n===k?B(o,e):void 0;return i?{fillColor:q(i)}:{}},vt=t=>{const o=t?.trim();return!o||o==="transparent"||o===j||o===R||o===k||D(o)?void 0:"it paints a colour that no Box Fill can hold"},Lt=(t,o)=>{const e=B(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},E=(t,o)=>{const e=f(o)?.themes;return e&&C(t)?z(e,_(t.sectionAccent,o)):-1},wt=(t,o,e)=>{const n=E(o,e);return n>=0?n:t},Mt=(t,o)=>{const e=E(t,o);return e>=0?{sectionAccent:e}:{}},yt=(t,o)=>C(t.props)&&E(t.props,o)<0?[{kind:"band-preset",page:_(t.props.sectionAccent,o)}]:[],Ft=t=>F(t.site?.siteGutter),it=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Kt=t=>({top:0,right:0,bottom:0,left:0,...t}),Xt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...w,...it,...H("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],T.kind,T.duration,T.delay],parts:n});export{_t as AUTO_COLUMN,jt as BOX,Ot as BUTTON,Vt as DIM,At as DROP_COMMON,Ct as DROP_SIDE_PADDING,ot as HEADING_CASE_UPPER,$t as INNER_BOX,it as NO_PAD,Q as NUMBER_TEXT,I as RIGHT_WORDS,Nt as SAME_KEYS,Ut as SECTION_BOX,St as SH_LINK,Jt as TEXT,wt as bandAccent,E as bandIndex,_ as bandPage,Mt as bandProps,yt as bandWrites,H as fillFrom,vt as fillNoBoxHolds,kt as headingCaseOf,m as innerPad,Rt as innerPadKeys,Dt as leadLine,nt as leadText,Lt as lineBorder,Kt as lineSides,et as numberAndUnit,Wt as ownFill,Xt as pictureCell,B as sectionPage,Ft as siteGutterOf,Ht as smallText,tt as wrapperPad,It as wrapperPadKeys};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as k,readHidable as _}from"efficient-easel/draw";import{cardColumns as U}from"../../../../components/Cards.js";import{resolveSectionBackground as z,THEME_SECTION_BG as J}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as Q}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as Z}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as C}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as $}from"../../../../../format/lib/non-empty-string.js";import{parseSectionHeadPlacement as ee}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as oe}from"../../../sections/section-to-box.js";import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as i}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as te}from"../../../../../format/lib/document/text-seeds.js";import{CARDS_BODY_LOOK as ne,CARDS_CARD as re,CARDS_TITLE_LOOK as ae,rowFieldTextSeed as r}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as se,CARD_LIST_TYPE as ie,CARD_TEMPLATE_SLOT as de,cardListProps as le}from"../../../../../format/lib/content/card-template.js";import{bandAccent as pe,bandProps as ce,bandWrites as he,BUTTON as me,DIM as h,DROP_COMMON as m,DROP_SIDE_PADDING as u,INNER_BOX as t,SAME_KEYS as g,SECTION_BOX as b,fillFrom as w,fillNoBoxHolds as ue,ownFill as ge,SH_LINK as be,TEXT as n,smallText as we,wrapperPad as y,wrapperPadKeys as f}from"./section-to-box-row-parts.js";import{headTree as T,token as p}from"./section-head-looks.js";import{boxPadding as ye,labelStyle as fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as Pe}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const d=(e,o,l,c)=>({sectionBorder:{top:e,right:o,bottom:l,left:c}}),E=e=>o=>U(C(o.columns)??C(e.columns)),R=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...d(1,0,0,1)},parts:[e]}),L={...t,direction:"row",gap:0,share:"equal"},D="its head sits in a Box of its own above it (own-box): the row draws the head inline",N=e=>ee(e.headPlacement)==="own-box",B="inline is the head the row draws; an own-box node is skipped (`skip`)",Se=e=>({kind:"group",name:"Heading",props:e,parts:[we("eyebrow"),{kind:"text",key:"title",role:"heading",props:n,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),I={top:72,bottom:72,topPhone:72,bottomPhone:72},_e={...re,...d(0,1,1,0)},Oe={name:"Cards",boxProps:(e,o)=>({...b,direction:"column",gap:36,gapPhone:28,...w("surface")(e,o),...y(e,I)}),box:[...g,...f(I)],skip:e=>N(e)?D: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:[T("Cards"),R({kind:"list",key:"items",name:"Card",perRow:E(Q.defaultProps),rowName:"Row",rowProps:L,props:(e,o)=>({..._e,...w("background")(e,o)}),parts:[{kind:"text",key:"title",props:n,style:ae},{kind:"text",key:"body",props:h,style:ne}]})],drop:{...m,...u,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:B,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},A={top:76,bottom:76,topPhone:76,bottomPhone:76},xe={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...d(0,1,1,0)},F={textStyle:"body-1",color:"text"},H=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",ke={name:"Key Features",boxProps:e=>({...b,direction:"column",gap:44,...d(1,0,1,0),...y(e,A)}),box:[...g,...f(A)],parts:[Se({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),R({kind:"list",key:"items",name:"Feature",perRow:E(Z.defaultProps),rowName:"Row",rowProps:L,props:xe,parts:[{kind:"button",key:"label",href:"href",when:H,variant:"ghost",props:{...me,...be,icon:"none"},style:F},{kind:"text",key:"label",when:(e,o)=>!H(e,o),props:n,style:F,was:{size:17}}]})],drop:{...m,...u,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (the stored-node export, 2026-10-24)"}},v={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},P=e=>{const o=z(typeof e.background=="string"?e.background:void 0,Pe.Series);return o&&o!=="transparent"?o:void 0},O=e=>P(e)===J,Ce={...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},K={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[k("share")]:"content"},Te=e=>{const o=P(e)?1:2;return{...t,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},x={...fe(12),letterSpacing:.22,lineHeight:1.5},W=e=>oe(e.viewLabel)&&!_(e.viewLabel).hidden,a=e=>_(e).text?.trim?.()??"",M=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>$(o)!==void 0)),X=e=>e.map(([o,l,c])=>({key:o,label:l,...c?{multiline:!0}:{}})),Ee=X([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Re=X([["label","Label"],["value","Value"],["body","Card body",!0]]),G=(e,o,l,c,V)=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:ie,headless:!0,keep:[],derive:{reads:["cards"],props:S=>le(c(S),l)},slots:(S,q)=>({[de]:[V(S,q)]})}]}),Y=e=>Array.isArray(e.cards)?e.cards:[],Le={name:"Recurring Columns",boxProps:(e,o)=>({...b,direction:"column",gap:60,gapPhone:60,...d(0,0,1,0),...O(e)?ce(e,o):{},...ge(P(e),e,o),...y(e,v)}),box:[...g.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,l)=>O(o)?pe(e,o,l):e],...f(v)],skip:e=>ue(P(e))??(N(e)?D:void 0),site:(e,o)=>O(e.props)?he(e,o):[],parts:[T("Series"),G("Cards",Te,Ee,e=>Y(e).map(o=>M({num:a(o.num),since:a(o.since),title:a(o.title),body:a(o.desc),count:a(o.entries),countLabel:a(o.entriesLabel)})),(e,o)=>({type:s,props:{...Ce,...w("background")(e,o),name:"Card"},slots:{[i]:[{type:s,props:{...t,name:"Words",gap:16,gapPhone:16},slots:{[i]:[{type:s,props:{...K,name:"Top"},slots:{[i]:[r("num",n,p("label",13),!0),r("since",n,p("label",13),!0)]}},r("title",{...n,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),r("body",h,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:s,props:{...K,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...d(1,0,0,0),...W(e)?{}:{[se]:["count","countLabel"]}},slots:{[i]:[{type:s,props:{...t,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",[k("share")]:"content"},slots:{[i]:[r("count",n,x),r("countLabel",h,x)]}},...W(e)?[{type:s,props:{...t,name:"View",maxWidthPhone:266},slots:{[i]:[{type:"Text",props:{...n,text:_(e.viewLabel).text,_partStyles:{text:{...te()._partStyles.text,...x}}}}]}}]:[]]}}]}}))],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,...u,headPlacement:B}},j={top:60,bottom:60,topPhone:40,bottomPhone:40},De={...t,direction:"row",columns:3,gap:40,gapPhone:16},Ne={...t,gap:8,gapPhone:8,...ye(24),...d(1,1,1,1)},Be={name:"Document Detail Cards",boxProps:e=>({...b,direction:"column",gap:40,gapPhone:16,...d(0,0,1,0),...y(e,j)}),box:[...g,...f(j)],parts:[G("Cards",De,Re,e=>Y(e).map(o=>M({label:a(o.label),value:a(o.value),body:a(o.desc)})),(e,o)=>({type:s,props:{...Ne,...w("surface")(e,o),name:"Card"},slots:{[i]:[r("label",n,{...p("label",12),lineHeight:1.5},!0),{type:s,props:{...t,name:"Words",gap:14,gapPhone:14},slots:{[i]:[r("value",n,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),r("body",h,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...m,...u}},Qe={Cards:Oe,KeyFeatures:ke,Series:Le,DocMetaCards:Be};export{Qe as CARDS_SECTION_TO_BOX};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{parseBlocks as k,sectionAnchorIds as
|
|
2
|
-
`)}:{kind:"p",text:e.text}),s={
|
|
1
|
+
import{parseBlocks as k,sectionAnchorIds as y,shownSections as _}from"../../../../components/DocBody.js";import{SECTION_WIDTH_KEYS as P}from"../../../../../format/lib/content/section-width.js";import{STACK_BELOW_PROP as b}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as x,INNER_BOX as o,SECTION_BOX as B,TEXT as r,smallText as a,wrapperPad as O,wrapperPadKeys as T}from"./section-to-box-row-parts.js";import{fluidToken as f,token as S}from"./section-head-looks.js";import{labelStyle as u}from"../../../../../format/lib/document/seed-parts.js";const c={top:80,bottom:80,topPhone:60,bottomPhone:60},d=18,l=18,m=8,w=10,i=t=>typeof t=="string"&&t.trim()!=="",h=t=>_(t.sections),D=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={...u(12),letterSpacing:.3,color:"accent",lineHeight:1.5},g={textStyle:"body-1",fontRole:"accent",...S("body",17)},C=[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:l,sectionPaddingBottomPhone:l},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:D,parts:[{kind:"text",key:"text",props:p,style:{...g,lineHeight:1.7},when:(t,e)=>e?.kind==="p"},{kind:"text",key:"text",props:p,style:{...g,lineHeight:1.65,paragraphSpacing:w},when:(t,e)=>e?.kind==="ul"}]}],E=900,I={name:"Document Text",boxProps:t=>({...B,direction:"row",gap:80,gapPhone:40,[b]:E,sectionBorder:{bottom:1},...O(t,c)}),box:["anchor","sectionAccent","_hidden",...Object.values(P),...T(c)],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=>h(t),props:{...o,gap:d,gapPhone:d},item:(t,e,n)=>({props:{anchor:y(h(n))[e]??`section-${e+1}`}}),parts:C}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...x,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},L={DocBody:I};export{L 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
|
|
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{labelStyle as F}from"../../../../../format/lib/document/seed-parts.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 L,SAME_KEYS as u,SECTION_BOX as y,TEXT as P,fillFrom as S,lineSides as r,pictureCell as w,siteGutterOf as m,smallText as s,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}}},C=e=>R(e.layout)==="stacked",M=e=>Math.min(Math.max(a(e.overlay)??60,0),100),d=e=>a(e)??100,W={textStyle:"heading-1",sizeToken:{...U("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},V=[s("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:P,style:{...W,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)`,X=()=>({name:"Scroll-Over Text",skip:e=>C(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:V,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},j={textStyle:"body-1",...n("body",16),lineHeight:1.7},O=e=>({kind:"text",key:"body",props:{...f,maxWidth:520},style:{...j,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"},G=(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)",q=(e,t)=>({[e]:t,[`${e}Phone`]:t}),Y={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()!=="")),K=()=>({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:r({right:1}),sectionBorderPhone:r({}),...p,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:m(t)}),parts:[s("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),...q("sectionBorder",r({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:L,style:Y},s("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}},$=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",Z=e=>Math.min(Math.max(a(e.overlay)??60,0),100),N=e=>typeof e=="string"&&e.trim()!=="",J={...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:r(e?{left:1}:{right:1}),...z(e?"left":"right",m(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:J,style:{...F(13,12),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}},Q={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:$(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...G(e,72),gap:24,gapPhone:24,...N(e.textBgSrc)?{darken:Z(e),darkenStyle:"even"}:{},...p,sectionPaddingTop:100,sectionPaddingBottom:100,...z(o?"right":"left",m(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...s("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}:{}}}}]}]},ee=()=>({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),Q,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:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), 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}}),re={IntroBleed:X(),Manifesto:K(),Split:ee()};export{re as EDITORIAL_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 c,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as U,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as F}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as q}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as x}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as V,splitLegacyRegion as T}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as J}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as Q}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(" · "),Z=e=>h(e).some(t=>r(t.photo).trim()!==""),ee=e=>h(e).some(t=>Q(Number(t.lat),Number(t.lng))),te=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,oe=(e,t)=>te(e,t)===1?"wide":V(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({...F(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},ne=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},re={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:Z,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[c("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:oe(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:[c("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:ne(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},ae={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",...d("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",...d("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=>J(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},ie={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)])]},se={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[ie]},pe={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:[ae,se],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:[c("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...d("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}),ce={kind:"block",type:G,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:ee,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)=>l(L,y)[t]]),I=["sectionAccent","sectionAccent",X],le=["gridSpan","_hidden",...Object.values(j)],de={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(l(e,y),M),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...K.filter(e=>e!=="sectionAccent"&&e!=="anchor"),I,["anchor","anchor",e=>q(e).trim()?e:"studios"],...A(M)],parts:[U("sectionNumber","heading","tagline"),re],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...E(l(e,y),H),...P(e,t)}),box:[...le,I,...A(H)],parts:[pe,ce]}],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)"}},we={ContactLocations:de};export{we as LOCATIONS_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasWords as
|
|
1
|
+
import{hasWords as n}from"../../../sections/section-to-box.js";import{DROP_COMMON as l,DROP_SIDE_PADDING as p,INNER_BOX as c,SAME_KEYS as g,SECTION_BOX as m,TEXT as a,smallText as P,wrapperPad as r,wrapperPadKeys as h}from"./section-to-box-row-parts.js";import{finiteNumber as _}from"../../../../../format/lib/finite-number.js";import{LOGOS_PH as S,logosScaffoldItems as k}from"../../../../../format/lib/document/blocks/general/Logos/meta.js";import{logosCardSeed as L}from"../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{BLOCK_SOURCE_OPTIONS_PROP as s,BLOCK_SOURCE_PROP as t}from"../../../../../format/lib/content/block-sources.js";import{CARD_TEMPLATE_SLOT as u}from"../../../../../format/lib/content/card-template.js";import{phoneKey as T}from"efficient-easel/draw";const O={contained:!1},b=(o,e)=>({logos:[{kind:"list",key:o,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[e,"alt"]],when:(w,d)=>n(d?.src)||n(d?.[e])}]}]}),i=o=>{const e=_(o.bandPadding)??40;return{top:e,bottom:e,topPhone:e,bottomPhone:e}},x={...P("heading",{color:"labels",letterSpacing:.2}),props:{...a,align:"center"}},E={name:"Logos",boxProps:o=>({...m,direction:"column",gap:32,...r(o,i(o))}),box:[...g,...h(i),["bandPadding","sectionPaddingTop",(o,e)=>r(e,i(e)).sectionPaddingTop]],parts:[x,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:O,slots:b("items","alt")}],drop:{...l,...p,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},f={top:24,bottom:24,topPhone:24,bottomPhone:24},B={name:"Payment Methods",boxProps:o=>({...m,direction:"column",...r(o,f)}),box:[...g,...h(f)],parts:[{kind:"group",name:"Methods",props:{...c,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...P("heading",{color:"labels"}),props:{...a,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,s],props:o=>n(o[t])?{[t]:o[t],...o[s]!==void 0?{[s]:o[s]}:{}}:{}},props:{...O,look:"cards",grayscale:!1},slots:o=>({...b("badges","label"),...n(o[t])?{[u]:[L()]}:{}})},{kind:"group",name:"Reassurance",props:{...c,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[T("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",flat:!0,parts:[{kind:"text",key:"text",props:{...a,align:"center"},style:{size:13,color:"labels",lineHeight:1.5}}]}]}]}],drop:{...l,...p,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},K={Logos:E,PaymentBadges:B},G=()=>({heading:S.heading,items:k()});export{K as LOGOS_SECTION_TO_BOX,G as logosPressStarter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasWords as p}from"../../../sections/section-to-box.js";import{BLOCK_WIDTH_LIMIT as
|
|
1
|
+
import{hasWords as p}from"../../../sections/section-to-box.js";import{BLOCK_WIDTH_LIMIT as A}from"efficient-easel/draw";import{fluidToken as C,token as o}from"./section-head-looks.js";import{STRIP_BOX as R}from"../../../../../format/lib/sections/strip-shape.js";import{PH as i}from"../../../../../format/lib/document/blocks/placeholders.js";import{DOC_MASTHEAD_PH as d}from"../../../../../format/lib/document/blocks/general/DocMasthead/meta.js";import{AUTO_COLUMN as s,BUTTON as W,DIM as v,DROP_COMMON as c,DROP_SIDE_PADDING as g,INNER_BOX as n,leadLine as f,RIGHT_WORDS as S,SAME_KEYS as h,SECTION_BOX as m,SH_LINK as U,smallText as r,TEXT as a,wrapperPad as b,wrapperPadKeys as u}from"./section-to-box-row-parts.js";const _={minWidth:A.min},w=(e,t,l)=>({...r(e,{...t,...S}),props:{...a,align:"right",...s,...l}}),T={top:1,bottom:0},k=(e,t,l,M)=>({kind:"group",name:e,props:{...n,sectionPaddingBottom:t,sectionPaddingBottomPhone:l},parts:[M]}),I={widthFit:"fill",..._},E={top:100,bottom:60,topPhone:60,bottomPhone:40},X={...o("label",13),letterSpacing:.22,lineHeight:1.8},O={textStyle:"heading-1",...C("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},x=e=>e.titleLevel===2,G=()=>({name:"Page Header",boxProps:e=>({...m,direction:"column",gap:0,sectionBorder:{bottom:1},...b(e,E)}),box:[...h,...u(E)],parts:[{kind:"group",name:"Header",props:{...n,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[k("Eyebrow",12,0,{...r("eyebrow",o("label",13)),props:{...a,...s}}),{kind:"text",key:"title",role:"heading",props:{...a,tag:"h1",...I},style:O,mark:"accentItalic",when:e=>!x(e)},{kind:"text",key:"title",role:"heading",props:{...a,tag:"h2",...I},style:O,mark:"accentItalic",when:x},{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:[f("label","value",X,s)]}]}]},{kind:"group",name:"Deck",props:{...n,maxWidth:760,sectionBorder:T,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:v,style:{textStyle:"body-1",fontRole:"accent",...o("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...c,...g,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"}}),ee=()=>({eyebrow:d.eyebrow,title:d.title.replace(/\*([^*]+)\*/g,"==$1=="),deck:d.deck,meta:[{label:i.label,value:i.value},{label:i.label,value:i.value}]}),B={top:80,bottom:40,topPhone:60,bottomPhone:32},K={...o("label",13),letterSpacing:.18,lineHeight:1.8},H={...o("label",13),letterSpacing:.22,lineHeight:1.9},j=()=>({name:"Issue Header",boxProps:e=>({...m,direction:"column",gap:0,sectionBorder:{bottom:1},...b(e,B)}),box:[...h,...u(B)],parts:[{kind:"group",name:"Top",props:{...n,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[k("Eyebrow",14,14,r("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:[f("lead","rest",K)]}]}]},{kind:"group",name:"Bottom",props:{...n,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:T,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...a,maxWidth:720,..._},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:[k("Heading",6,6,{kind:"text",key:"issueHeading",props:{...a,align:"right",...s},style:{textStyle:"body-1",fontRole:"heading",...o("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...S}}),{kind:"group",name:"Lines",props:{...n,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[w("text",{color:"labels",...H})]}]},w("issueTotal",H)]}]}],drop:{...c,...g}}),D={top:24,bottom:24,topPhone:16,bottomPhone:16},y={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()!==""),P=(e,t)=>t!==void 0&&L(e).at(-1)===t,N=(e,t)=>t!==void 0&&L(e).includes(t),Y=(e,t)=>N(e,t)&&!P(e,t)&&p(t?.href),F=()=>({name:"Breadcrumb",skip:e=>p(e.meta)?'a trailing note after "·" needs a second mark; none live':void 0,boxProps:e=>({...m,...R,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...b(e,D)}),box:[...h,...u(D)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:Y,props:{...W,...U,icon:"none"},style:y},{...r("label",y),when:(e,t)=>N(e,t)&&!P(e,t)&&!p(t?.href)},{...r("label",{...y,color:"text"}),when:P}]}],drop:{...c,...g,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),te={DocMasthead:G(),Masthead:j(),Breadcrumb:F()};export{te as PAGE_HEADER_SECTION_TO_BOX,ee as pageHeaderPressStarter};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
|
|
2
|
+
import { type CardStyle } from "../../../sections/card-list-style.js";
|
|
3
|
+
import type { BlockSeed } from "../../../../../format/lib/document/seed-parts.js";
|
|
2
4
|
type Props = Record<string, unknown>;
|
|
3
5
|
export declare function figureWords(item: Props): string;
|
|
4
6
|
export declare const STATS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
|
|
7
|
+
export declare function statsPressSeed(): Props;
|
|
8
|
+
export declare function statsSeedRows(): Props[];
|
|
9
|
+
export declare function statsBoxSeed(rows: readonly Props[], style: CardStyle, columns?: number): BlockSeed;
|
|
5
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as D}from"efficient-easel/draw";import{newId as K}from"efficient-easel/data";import{COUNT_KEY_PROP as y}from"../../../../../format/lib/content/block-sources.js";import{resolveSectionBackground as _,THEME_SECTION_BG as M}from"../../../../../format/lib/content/section-background.js";import{finiteNumber as H}from"../../../../../format/lib/finite-number.js";import{hasWords as u}from"../../../sections/section-to-box.js";import{DROP_COMMON as k,DROP_SIDE_PADDING as x,INNER_BOX as r,NUMBER_TEXT as h,SAME_KEYS as T,SECTION_BOX as O,TEXT as i,bandAccent as Y,bandProps as U,bandWrites as W,fillFrom as G,innerPad as X,innerPadKeys as $,smallText as g,wrapperPad as q,wrapperPadKeys as j}from"./section-to-box-row-parts.js";import{fluidToken as z,headTree as V,token as n}from"./section-head-looks.js";import{SECTION_BG_BUILT_IN as P}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{CARD_STYLES as s,CARD_STYLE_KEY as m}from"../../../sections/card-list-style.js";import{CARD_LIST_TYPE as J,CARD_TEMPLATE_SLOT as Q,cardListProps as Z}from"../../../../../format/lib/content/card-template.js";import{BOX_TYPE as d,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{rowFieldTextSeed as c}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{say as o}from"../../../../../format/lib/editor-words.js";const S=e=>typeof e=="string"?e.trim():"";function E(e){const t=`${S(e.prefix)}${S(e.value)}`,a=S(e.suffix);return e.emphasizeAll===!0?t?`==_${t}_==`:"":`${t}${a?`==_${a}_==`:""}`}const A={textStyle:"heading-2",...z("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},f={kind:"block",type:"Text",props:{...h,_partStyles:{text:A}},box:[["value","text",(e,t)=>E(t)]],when:(e,t)=>t!==void 0&&typeof t.value=="string"&&E(t)!==""},B=e=>u(e?.supSuffix),R={textStyle:"body-1",fontRole:"heading",...n("body",16),lineHeight:1.5,letterSpacing:-.01},C={color:"labels",...n("label",12),lineHeight:1.5,letterSpacing:.24},L={...r,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[D("share")]:"content"},N={textStyle:"body-5",...n("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},b=e=>_(e.background,P.StatsParagraph),p=e=>b(e)===M,w=e=>({...e,sectionAccent:e.sectionAccent??0}),ee=(e,t)=>p(e)?G("background")(e,t):{},te={name:"Stats with Text",skip:e=>b(e)&&b(e)!=="transparent"&&!p(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,t)=>({...O,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...X(e,"StatsParagraph"),...p(e)?U(w(e),t):{}}),box:[...T.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,a)=>p(t)?Y(e,w(t),a):e],...$("StatsParagraph")],site:(e,t)=>p(e.props)?W({props:w(e.props)},t):[],parts:[V("StatsParagraph"),{kind:"group",name:"Stats",props:{...r,...s.table.grid,[m]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...r,direction:"row",share:"equal",phoneRow:2,...s.table.row},props:(e,t)=>({...r,...s.table.card,...ee(e,t)}),parts:[{...f,when:(e,t)=>!B(t)&&f.when(e,t)},{kind:"group",name:"Figure",props:L,when:(e,t)=>B(t),parts:[f,{kind:"text",key:"supSuffix",props:i,style:N}]},{kind:"group",name:"Words",props:{...r,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:i,style:R},g("sub",C)]}]}]}],drop:{...k,...x,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},oe=new Set(["value","label",y]),I={top:48,bottom:48,topPhone:48,bottomPhone:48},re=e=>{const t=_(typeof e.background=="string"?e.background:void 0,P.Stats);return!!t&&t!=="transparent"},ae={name:"Stats",skip:e=>re(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":u(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(t=>u(t?.[y]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(t=>Object.keys(t??{}).some(a=>!oe.has(a)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(t=>t!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...O,direction:"column",gap:24,gapPhone:24,...q(e,I)}),box:[...T,...j(I)],parts:[g("heading",{color:"labels",...n("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...r,...s.list.grid,[m]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>H(e.columns)??4,rowName:"Stats row",rowProps:{...r,direction:"row",share:"equal",phoneRow:2,...s.list.row},props:{...r,...s.list.card},parts:[{kind:"text",key:"value",props:h,style:{textStyle:"heading-2",...n("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},g("label",{color:"labels",...n("label",12),letterSpacing:.2})]}]}],drop:{...k,...x,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},_e={StatsParagraph:te,Stats:ae};function ke(){return{eyebrow:o("By the numbers"),title:o("What we count."),desc:o("A few numbers that matter to us."),stats:[],background:"transparent"}}const se=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function xe(){const e=(t,a,F,v="")=>({key:K("stat"),figure:t,superscript:v,label:a,body:F});return[e("28==_yr_==",o("Years in business"),o("Privately held since day one. Same two founders.")),e("==_8_==",o("Operating footprint"),o("Los Angeles · Fort Lauderdale · Bewdley · Drachten · Mumbai · Selangor · Ho Chi Minh · Sydney. Three continents covered from one California design studio."),o("cities")),e("−21==_%_==",o("Avg. weight saving"),o("Versus OEM equivalents, across our forged catalog.")),e("14==_×_==",o("Finish steps"),o("Specified in California to a 14-step protocol. No two sets are identical."))]}function ne(e){return{type:d,props:{...r,name:"Card",...structuredClone(s[e].listCard)},slots:{[l]:[{type:d,props:{...L,name:"Figure"},slots:{[l]:[c("figure",h,A),c("superscript",i,N)]}},{type:d,props:{...r,name:"Words",gap:4,gapPhone:4},slots:{[l]:[c("label",{...i,widthFit:"fill"},R),c("body",{...i,widthFit:"fill"},C,!0)]}}]}}}function Te(e,t,a=4){return{type:d,props:{...r,name:"Stats",direction:"row",columns:a,...structuredClone(s[t].items),[m]:t},slots:{[l]:[{type:J,props:Z(e,se),slots:{[Q]:[ne(t)]}}]}}}export{_e as STATS_SECTION_TO_BOX,E as figureWords,Te as statsBoxSeed,ke as statsPressSeed,xe as statsSeedRows};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
|
|
2
2
|
export declare const STRIP_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mixHex as u}from"efficient-shell/format";import{resolveSectionAccent as r,SECTION_ACCENT_INHERIT as
|
|
1
|
+
import{mixHex as u}from"efficient-shell/format";import{resolveSectionAccent as r,SECTION_ACCENT_INHERIT as x}from"../../../../../format/lib/content/section-surface.js";import{parseLoopDirection as E}from"../../../../../format/lib/animation/index.js";import{parseTickerSeparator as i,SEPARATOR_GLYPH as A}from"../../../../../format/lib/sections/ticker-style.js";import{tickerJoinSide as y}from"../../../../../format/lib/sections/ticker-join.js";import{convertTheme as h}from"../../../sections/section-to-box.js";import{darkPresetIndex as C}from"../../../../../format/lib/theme.js";import{DIM as s,DROP_COMMON as l,DROP_SIDE_PADDING as a,fillFrom as R,SAME_KEYS as c,sectionPage as b,SECTION_BOX as p,TEXT as O,wrapperPad as d,wrapperPadKeys as m}from"./section-to-box-row-parts.js";import{SPEC_PAD as S,SPEC_STRIP as B,SPEC_TEXT as T,STRIP_BOX as _,TICKER_BARE_GAP as N,TICKER_DISPLAY as g,TICKER_PAD as f,TICKER_SMALL as K,TICKER_STRIP as M}from"../../../../../format/lib/sections/strip-shape.js";const I=e=>e.size==="display",w=(e,t)=>{const o=b(e,t),n=e.tone!=="plain"&&o?.text&&o.background?u(o.text,o.background,.3):null;return n?{color:n}:{}},L=(e,t)=>e.tone!=="plain"&&r(e.sectionAccent)===null?R("background")(e,t):{},P=(e,t)=>({kind:"list",key:"items",name:"Item",flat:!0,when:t,parts:[{kind:"text",key:"text",props:s,style:e,styleFrom:w}]}),X={name:"Scrolling Bar",boxProps:(e,t)=>({...p,..._,...M,...A[i(e.separator)]===""?N:{},...d(e,f),...L(e,t)}),box:[["scrollDirection","scrollDirection",e=>E(e)],["speed","loopDuration",(e,t)=>t.loopDuration!=null?t.loopDuration:e],["loopDuration","loopDuration",(e,t)=>e??t.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>i(e)],["join","join",e=>y(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...c,["tone","sectionAccent",(e,t)=>r(t.sectionAccent)??x],...m(f)],parts:[P(K,e=>!I(e)),P(g,I)],drop:{...l,...a,size:"each item's Text style: Small → Body 5, Display → Heading 3"}},k=e=>e?.tone==="muted",D=e=>C(h(e)?.themes),H={name:"Spec Strip",boxProps:(e,t)=>({...p,..._,...B,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:D(t)},...d(e,S)}),box:[...c.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>t.fill==="none"?e:D(o)],...m(S)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:O,style:T,when:(e,t)=>!k(t)},{kind:"text",key:"text",props:s,style:T,when:(e,t)=>k(t)}]}],drop:{...l,...a,fill:"None → no fill and a line on top. Dark band (the default) → the Box's theme is the site's first dark preset (lib/theme `darkPresetIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},U={Ticker:X,SpecStrip:H};export{U as STRIP_SECTION_TO_BOX};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{resolveSectionBackground as
|
|
1
|
+
import{resolveSectionBackground as D,THEME_SECTION_BG as F}from"../../../../../format/lib/content/section-background.js";import{SECTION_BG_BUILT_IN as L}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{BUTTON as _,DIM as p,bandAccent as v,bandIndex as R,bandWrites as Y,fillNoBoxHolds as X,ownFill as j,DROP_COMMON as E,DROP_SIDE_PADDING as B,INNER_BOX as o,SAME_KEYS as P,SECTION_BOX as u,lineBorder as I,TEXT as c,innerPad as k,innerPadKeys as C}from"./section-to-box-row-parts.js";import{splitParagraphs as U}from"../../../../components/goldPhrases.js";import{TIMELINE_YEAR_BOX as G,TIMELINE_YEAR_HEAD as A}from"../../../../../format/lib/sections/timeline-year-shape.js";import{boxPadding as K,LABEL_FACE as V}from"../../../../../format/lib/document/seed-parts.js";const q="jetbrains-mono",H="space-grotesk",l=(e,t,n={})=>({textStyle:"body-5",font:q,size:e,sizePhone:e,letterSpacing:t,lineHeight:1.5,weight:400,...n}),i=(e,t,n={})=>({...l(e,t),...V,...n}),d=(e,t,n,s)=>({font:H,size:e,sizePhone:t,case:"upper",weight:500,letterSpacing:n,lineHeight:s}),a=(e,t,n,s={})=>({textStyle:"body-1",font:H,size:e,sizePhone:t,weight:400,case:"none",lineHeight:n,...s}),r=(e,t,n={})=>({kind:"text",key:e,props:c,style:t,...n}),N=(e,t)=>t?.future===!0,g=e=>U(typeof e?.body=="string"?e.body:""),y=e=>D(typeof e.background=="string"?e.background:void 0,L.TimelineTrack),b=e=>y(e)===F?e:{...e,background:"transparent"},z={name:"Milestone Timeline",skip:e=>X(y(e)),boxProps:(e,t)=>{const n=R(b(e),t);return{...u,direction:"column",gap:60,sectionBorder:{bottom:1},...k(e,"TimelineTrack"),...j(y(e),e,t),...n>=0?{sectionAccent:n}:{}}},box:[...P.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,n)=>v(e,b(t),n)],...C("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:[r("eyebrow",i(13,.3,{color:"accent",padding:8}),{role:"eyebrow"}),r("title",{textStyle:"heading-2",...d(79,40,-.03,1)},{role:"heading"})]},r("intro",a(14,14,1.5),{props:{...p,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,...G},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:A.name,props:{...o,...A},parts:[r("date",l(13,.22,{color:"accent"}),{when:(e,t)=>!N(e,t)}),r("date",l(13,.22,{color:"labels"}),{when:N}),r("title",{textStyle:"heading-3",...d(20,20,-.02,1.1)},{role:"heading"})]},r("blurb",a(13,13,1.55),{props:p})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({..._,align:"right",...I(e,t)}),style:i(13,.3)}],site:(e,t)=>Y({props:b(e.props)},t),drop:{...E,...B,background:"another colour is the Box's Fill, or a skip if no Fill holds it; 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"}},w=e=>typeof e.layout=="string"?e.layout:"split",h=e=>w(e)==="split",x=e=>!h(e),O=e=>w(e)==="spine",J=e=>x(e)&&!O(e),M=(e,t,n,s)=>({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:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:t,sectionHeightUnitPhone:"px",...K(12,16),...n},when:m=>s(m)&&typeof m.imageSrc=="string"&&m.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...o,direction:"row",justify:"between",align:"center",gap:12,share:"content",phoneRow:2},parts:[r("imageCaption",i(11,.24,{color:"text"})),r("imageMeta",i(11,.24,{color:"accent"}),{props:{...c,align:"right"}})]}]}),W=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(t,n)=>({..._,...e,...I(t,n)}),style:i(13,.3)}),T=()=>[r("title",{textStyle:"heading-3",...d(24,20,-.02,1.5)},{role:"heading"}),{kind:"block",type:"Text",props:{...c,_partStyles:{text:a(17,16,1.6)}},box:[["body","text",(e,t)=>g(t)[0]??""]],when:(e,t)=>g(t).length>0},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(17,16,1.6,{paragraphSpacing:14})}},box:[["body","text",(e,t)=>g(t).slice(1).join(`
|
|
2
2
|
|
|
3
|
-
`)]],when:(e,t)=>
|
|
3
|
+
`)]],when:(e,t)=>g(t).length>1}],f=()=>r("date",l(13,.24,{color:"accent"})),S=(e,t,n={})=>r(e,t,{...n,props:{...c,...n.props??{},align:"center"}}),Q={name:"Story Timeline",skip:e=>w(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>h(e)?{...u,direction:"row",share:[40],gap:80,align:"start",...k(e,"Timeline")}:{...u,direction:"column",gap:48,align:"center",...k(e,"Timeline")},box:[...P,...C("Timeline")],parts:[{kind:"group",name:"Heading",props:{...o,gap:24},when:h,parts:[r("eyebrow",i(12,.3,{color:"accent"}),{role:"eyebrow"}),r("title",{textStyle:"heading-2",...d(72,40,-.03,.94)},{role:"heading"}),r("intro",a(14,14,1.6),{props:{...p,maxWidth:360}}),M(667,419,{},()=>!0),W()]},{kind:"group",name:"Chapters",props:{...o,gap:48,line:!1},when:h,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,direction:"row",gap:24,share:[25],align:"start"},parts:[f(),{kind:"group",name:"Words",props:{...o,gap:14},parts:T()}]}]},{kind:"group",name:"Heading",props:{...o,gap:24,align:"center",maxWidth:760,widthFit:"fill"},when:x,parts:[S("eyebrow",i(12,.3,{color:"accent"}),{role:"eyebrow"}),S("title",{textStyle:"heading-2",...d(72,40,-.03,.94)},{role:"heading"}),S("intro",a(14,14,1.6),{props:{...p,maxWidth:520}}),W({align:"center"})]},M(506,192,{maxWidth:900,widthFit:"fill"},x),{kind:"group",name:"Chapters",props:{...o,gap:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:O,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,gap:8},parts:[f(),{kind:"group",name:"Words",props:{...o,gap:14},parts:T()}]}]},{kind:"group",name:"Chapters",props:{...o,gap:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:J,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,direction:"row",gap:64,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...o,gap:8},parts:[f(),{kind:"group",name:"Words",props:{...o,gap:14},parts:T()}]},{kind:"group",name:"Spacer",props:{...o},keepEmpty:!0,parts:[]}]}]}],drop:{...E,...B,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},re={TimelineTrack:z,Timeline:Q};export{re as TIMELINE_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNode as
|
|
1
|
+
import{isNode as O,isNodeList as i}from"efficient-easel/data";import{storedStepsShown as g}from"../../components/ProcessSteps.js";import{declaredBlockSource as x}from"../../../format/lib/content/block-sources.js";import{HEAD_CORE_PROP as k,HOLDS_HEAD_CORE_PROP as f}from"../content/empty-hides.js";import{parseSectionHeadPlacement as P}from"../../../format/lib/sections/section-head-placement.js";const c="Flex",E="Text",m=r=>Object.values(r??{}).filter(i),p=r=>P(r.props?.headPlacement)==="own-box",u=r=>r===void 0||Array.isArray(r)&&r.length===0;function l(r){return r.type===E?!0:r.type===c&&m(r.props).every(t=>t.every(l))}const S={ProcessSteps:r=>u(r.boxes)&&g(r.steps).length===0,Logos:r=>!x(r)&&u(r.logos)&&u(r.items)};function a(r){const t=m(r.props).flat();return t.some(p)&&t.every(o=>p(o)||l(o))}function y(r){const t={...r.props};for(const[o,s]of Object.entries(r.props??{}))!i(s)||!s.some(e=>O(e)&&p(e))||(t[o]=s.map(e=>{if(!p(e))return e;const n=S[String(e.type)]?.(e.props??{})===!0;return{...e,props:{...e.props,[k]:n?"empty":!0}}}));return{...r,props:t}}function A(r){const o=Object.entries(r.props??{}).filter(([,e])=>i(e)).filter(([,e])=>e.length>0);if(o.length!==1||o[0][1].length!==1)return null;const s=o[0][1][0];return s?.type===c&&s.props?{key:o[0][0],inner:s}:null}function B(r){if(r?.type!==c||!r.props)return r;if(a(r)){const o=y(r);return{...o,props:{...o.props,[f]:!0}}}const t=A(r);return!t||!a(t.inner)?r:{...r,props:{...r.props,[t.key]:[y(t.inner)],[f]:!0}}}function L(r){const t=r;if(!t||!Array.isArray(t.content))return r;let o=!1;const s=t.content.map(e=>{const n=B(e);return n!==e&&(o=!0),n});return o?{...t,content:s}:r}export{L as markHeadCoreBoxes};
|
|
@@ -84,6 +84,7 @@ export type PartStyle = {
|
|
|
84
84
|
italic?: boolean;
|
|
85
85
|
sizePhone?: number;
|
|
86
86
|
sizeTablet?: number;
|
|
87
|
+
alignTablet?: PartAlign;
|
|
87
88
|
alignPhone?: PartAlign;
|
|
88
89
|
};
|
|
89
90
|
export type PartStyleBase = {
|
|
@@ -124,6 +125,7 @@ export declare function partSpacingOf(style: PartStyle): {
|
|
|
124
125
|
export declare const PART_PARAGRAPH_VAR = "--sf-part-para";
|
|
125
126
|
export declare function partPhoneDeclarations(style: PartStyle): Record<string, string>;
|
|
126
127
|
export declare function partTabletDeclarations(style: PartStyle): Record<string, string>;
|
|
128
|
+
export declare function partAlignFollowed(style: PartStyle, screen: PartScreen): PartAlign | undefined;
|
|
127
129
|
export type PartScreen = "desktop" | "tablet" | "mobile";
|
|
128
130
|
export declare function partStyleForScreen(style: PartStyle, screen: PartScreen): PartStyle;
|
|
129
131
|
export declare function partCanvasDeclarations(style: PartStyle, screen: PartScreen, options?: PartDeclarationOptions): Record<string, string>;
|