efficient-web-builder 55.1.0 → 55.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -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/Footprint/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/field-groups.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-anchors.js +1 -1
- package/dist/editor/lib/document/part-panel-rows.js +1 -1
- package/dist/editor/lib/host-document-bridge.d.ts +4 -1
- package/dist/editor/lib/host-document-bridge.js +1 -1
- package/dist/editor/lib/sections/text-layouts.d.ts +2 -1
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +18 -2
- 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/box-shape.d.ts +1 -1
- package/dist/format/lib/content/card-state.d.ts +6 -0
- package/dist/format/lib/content/card-state.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +14 -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/footprint.d.ts +1 -0
- package/dist/format/lib/content/footprint.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/content/view-lines.d.ts +1 -1
- package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Footprint/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
- 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 +11 -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 +20 -2
- 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.d.ts +1 -0
- package/dist/format/lib/editor-words-kept.js +1 -0
- package/dist/format/lib/fonts.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 +8 -2
- 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 +3 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.d.ts +4 -1
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/HeroPictures.d.ts +2 -2
- 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/PartStyledKind.d.ts +2 -1
- package/dist/render/components/PartStyledKind.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/Text.d.ts +3 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/lib/content/box-shared-columns.d.ts +6 -0
- package/dist/render/lib/content/box-shared-columns.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/Footprint/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-fitment.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -0
- 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-logos.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-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/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/head-core-boxes.js +1 -1
- package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
- package/dist/render/lib/document/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/clickable-parts.js +1 -1
- 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/document/text-parts.d.ts +2 -1
- package/dist/render/lib/document/text-parts.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 +3 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{REPEAT_ATTRIBUTE as
|
|
1
|
+
import{REPEAT_ATTRIBUTE as l,phoneKey as x,tabletKey as A}from"efficient-easel/draw";import{parseLoop as c}from"../../../format/lib/animation/loop.js";import{finiteNumber as E}from"../../../format/lib/finite-number.js";import{isBackgroundBox as $}from"../../../format/lib/content/box-background.js";import{isStripBox as O}from"../../../format/lib/content/box-separator.js";import{CARD_STATE_ATTR as y}from"../../../format/lib/content/card-state.js";import{BOX_ALIGN_CLASS as u,boxRowColumnsClass as N,boxRowTabletColumnsClass as T}from"../../../format/lib/content/box-layout.js";const d="sharedColumns",m="shared",h="own",f="scroll",X="Row columns",q=[{value:h,label:"Each row"},{value:m,label:"Shared"}],z=[{value:h,label:"Each row"},{value:f,label:"Shared, scroll"}],w="(width >= 800px)",D="(width < 800px)";function L(t){const n={direction:t.direction,separator:t.separator,loop:c(t.loop),line:t.line};return n.direction==="row"&&!O(n.direction,n.separator)&&n.loop!=="scroll"&&n.line!==!0&&!$(typeof t.bgImage=="string"?t.bgImage:void 0)&&N({...n,columns:t.columns})===""&&T({...n,columnsTablet:t[A("columns")]})===""}function p(t){return Array.isArray(t)?t.filter(n=>typeof n?.type=="string").length:E(t?.blockCount)??0}function J(t){return L(t)&&a(p(t.content))>0?H(t[d],t[x(d)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,S=(t,n)=>`sf-shared-cols-${t}${n===void 0?"":`-from-${n}`}`,g=t=>`sf-shared-cols-phone-${t}`;function H(t,n){return{desktop:t===m,phone:n===f}}function Q(t,n,e){const o=a(n);return o?`${t.desktop?` ${S(o,e)}`:""}${t.phone?` ${g(o)}`:""}`:""}function R(t){const n=`[${l}]`;return`:has(> ${n} ${t}):not(:has(> ${n} ${n} ${t}))`}function _(t,n,e=""){const o=R(t);return`${o}{display:grid;grid-template-columns:${n};column-gap:0${e}}${o}>:not(:has(${t})):not(${t}){grid-column:1/-1}${o} :has(${t}),${o} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const I="data-sf-shared-plain";function P(t){const n=`[${l}]`,e=`[${I}]`,o=R(t)+`:not(:has(> :not(${n}) > :not(${e}) ${t})):not(:has(> ${n} > * > :not(${e}) ${t})):not(:has(:not(${e}) > :not(${e}) > ${t})):not(:has(> ${n}[${y}]))`,s=`${o}>:not(style):not(:has(${t})):not(${t})`;return`${o}{display:table;width:100%;border-collapse:collapse}${o}>:has(${t}),${o}>${n}>:has(${t}),${o} ${e}:has(${t}),${o} ${e}>:has(${t}){display:contents}${o} ${t}{display:table-row}${o} ${t}>*{display:table-cell;width:auto;vertical-align:top}${o} ${t}.${u.center}>*{vertical-align:middle}${o} ${t}.${u.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${n}){caption-side:top}`}function V(t,n,e){const o=a(n);if(!o)return"";let s="";if(t.desktop){const r=`.${S(o,e)}`;s+=`@media ${e===void 0?w:`(width >= ${e}px)`}{${_(r,`repeat(${o},auto)`)}${P(r)}}`}return t.phone&&(s+=`@media ${D}{${_(`.${g(o)}`,`repeat(${o},minmax(max-content,auto))`,";overflow-x:auto")}}`),s}const k="sharedRows",v="shared",U="sf-shared-rows-list";function M(t){const n=t.direction;return(n===void 0||n==="column")&&c(t.loop)!=="scroll"&&t.line!==!0&&!$(typeof t.bgImage=="string"?t.bgImage:void 0)}function Z(t){return t[k]===v&&M(t)&&a(p(t.content))>0}const b=t=>`sf-shared-rows-${t}`;function tt(t,n){const e=a(n);return t&&e?` ${b(e)}`:""}function nt(t,n){const e=a(n);if(!t||!e)return"";const o=`.${b(e)}`,s=`.${U}`,r=`display:grid;grid-template-rows:subgrid;grid-row:span ${e};min-height:0;grid-template-columns:minmax(0,1fr)`,C=["start","center","end"].map(i=>`${s} ${o}.items-${i}{justify-items:${i}}`).join("");return`${s} :has(${o}){${r};row-gap:0}${s} ${o}{${r};justify-content:normal;align-items:stretch}${C}`}export{d as SHARED_COLUMNS_KEY,X as SHARED_COLUMNS_LABEL,h as SHARED_COLUMNS_OFF,z as SHARED_COLUMNS_PHONE_POINTS,q as SHARED_COLUMNS_POINTS,I as SHARED_PLAIN_ATTR,k as SHARED_ROWS_KEY,U as SHARED_ROWS_LIST_CLASS,Q as sharedColumnsClasses,V as sharedColumnsCss,J as sharedColumnsDrawn,L as sharedColumnsFits,tt as sharedRowsClasses,nt as sharedRowsCss,Z as sharedRowsDrawn,M as sharedRowsFits};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,Fragment as O}from"react/jsx-runtime";import{CardRowDrawn as T}from"../../../../../components/CardRowContext.js";import j from"../../../../../components/ButtonBlock.js";import{CARD_ROW_LINK_PROP as y,namedRowField as a}from"../../../../../../format/lib/content/card-template.js";import{namedLinkHrefRewrite as k}from"../../../../../../format/lib/links/link-href-rewrites.js";import{CTA_PH as v}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as A}from"../../scaffold.js";import{phoneKey as D}from"efficient-easel/draw";import{ButtonBlockMeta as E}from"../../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";const z={...E,render:o=>{const{label:m,href:c,variant:b,align:d,alignTablet:f,alignPhone:s,contained:h,arrow:u,icon:g,iconPosition:w,widthFit:P,buttonColor:B,buttonTextColor:C,editor:r}=o,F=Object.fromEntries(Object.entries(o).filter(([t])=>t==="buttonFillOpacity"||t==="buttonBorder"||t==="buttonCorners"||t==="buttonCornerSides"||t.startsWith("buttonPadding"))),i=k(o),R=i?{hrefRewrite:i}:{},e=(t,l)=>n(j,{label:A(t,v.text,r)??"",href:l,variant:b,align:d,alignTablet:f,alignPhone:s,contained:h,arrow:u,icon:g,iconPosition:w,widthFit:P,widthFitPhone:o[D("widthFit")],buttonColor:B,buttonTextColor:C,...F,...R}),_=a(o),x=a(o,y);return!_&&!x?e(m,c):n(T,{type:"ButtonBlock",props:o,children:(t,l,p)=>p&&!r?.isEditing&&!(typeof t.label=="string"&&t.label.trim())?n(O,{}):e(t.label,t.href)})}};export{z as ButtonBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{CardTemplateRows as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{CardTemplateRows as y,useCardRow as h}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as T}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as S}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as p,CARD_LIST_TYPE as _,cardListShows as L,cardRow as R}from"../../../../../../format/lib/content/card-template.js";import{CardListMeta as g}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function x(e){const o=e&&typeof e=="object"?e.state:void 0;return o&&typeof o=="object"?o:void 0}const A="[&>*]:flex [&>*]:flex-col [&>*>:only-child]:grow [&>*>:only-child]:flex [&>*>:only-child]:flex-col [&>*>*>:only-child]:grow [&>*>*>:only-child]:flex [&>*>*>:only-child]:flex-col [&>*>*>*>:only-child]:grow",C=[{}];function I({id:e,own:o,Template:f,editing:d,dragRef:m}){const t=h(),l=t?L(o,t.ownerType):"",s=t?l&&t.item&&typeof t.item=="object"?t.item[l]:void 0:o[p],r=Array.isArray(s)?s:[],n=r.length?r:d?C:r;if(!n.length)return null;const u=n.map(R),c=n.map(x),a=d?[]:n.map(S);return i(y,{ownerId:e,ownerType:_,Template:f,rows:u,items:n,states:c.some(Boolean)?c:void 0,actions:a.some(Boolean)?a:void 0,fallback:null,children:w=>i("div",{ref:m,className:t?"contents":`contents ${A}`,[T]:"",children:w})})}const O={...g,render:e=>i(I,{id:String(e.id??""),own:e,Template:e.template,editing:e.editor?.isEditing===!0,dragRef:e.editor?.dragRef??void 0})};export{O as CardListRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as n,jsx as o}from"react/jsx-runtime";import p from"../../../../../components/Eyebrow.js";import{hidableText as f,readHidable as l}from"efficient-easel/draw";import{parseEyebrowBlockLook as b}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as s}from"../../scaffold.js";import{EyebrowMeta as g}from"../../../../../../format/lib/document/blocks/general/Eyebrow/meta.js";const c={...g,render:({eyebrow:r,align:e,alignTablet:t,alignPhone:m,eyebrowLook:i,editor:a})=>l(r).hidden?o(n,{}):o(p,{text:s(f(r),d.eyebrow,a)??"",align:e,alignTablet:t,alignPhone:m,look:b(i)})};export{c as EyebrowRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{phoneKey as a,tabletKey as n}from"efficient-easel/draw";import{BOX_SWATCH_PROP as c}from"../../../../../../format/lib/content/box-background.js";import{sharedColumnsDrawn as h,sharedRowsDrawn as m}from"../../../../content/box-shared-columns.js";import{CountRowsContext as b,NO_COUNTS as g}from"../../../../../components/CountRowsContext.js";import{RowEmptyGate as f}from"../../../../../components/CardRowContext.js";import{BOX_HIDE_WHEN_ROW_EMPTY as u}from"../../../../../../format/lib/content/card-template.js";import S from"../../../../../components/Flex.js";import{loopDelayOf as w,loopSecondsOf as k,parseLoop as y,parseLoopDirection as P}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as T,declaredBlockSource as x,servedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as O}from"../../../../content/section-padding.js";import{sectionFillsHeight as D}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as R}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as j}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const X={...j,render:e=>{const t=!!e.editor?.isEditing,d=l(S,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[n("gap")],justify:e.justify,justifyTablet:e[n("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[n("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[n("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[n("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[n("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[n("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:R(e),darken:e.darken,darkenStyle:e.darkenStyle,darkenTablet:e[n("darken")],darkenPhone:e[a("darken")],darkenStyleTablet:e[n("darkenStyle")],darkenStylePhone:e[a("darkenStyle")],placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:O(e),contained:e.contained,fillHeight:D(e),shadow:e.shadow,shadowTablet:e[n("shadow")],shadowPhone:e[a("shadow")],loop:y(e.loop),scrollDirection:P(e.scrollDirection),loopSeconds:k({loopDuration:e.loopDuration}),loopDelay:w({loopDelay:e.loopDelay}),editing:t,fillColor:e.fillColor,fillColorTablet:e[n("fillColor")],fillColorPhone:e[a("fillColor")],swatch:e[c],line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[n("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:h(e),sharedRows:m(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content,rowTitle:e.rowTitle,startsOpen:e.startsOpen}),o=x(e),r=o?o===T?C(e):g:null,i=l(b.Provider,{value:r,children:d});return e[u]===void 0?i:l(f,{props:e,editing:t,children:i})}};export{X as FlexRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as f}from"react/jsx-runtime";import u from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as l,footprintOfficeOfRow as h}from"../../../../../../format/lib/content/footprint.js";import{declaredBlockSource as d,sourcedRows as y}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as g,parseFootprintSource as T}from"../../../../dealer-source.js";import{hidableText as c}from"efficient-easel/draw";import{parseSectionHeadPlacement as S}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as w,phHide as n}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{FootprintMeta as O,FOOTPRINT_PH as a}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const x=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!0},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address"),lat:0,lng:0,hq:!1}],C=()=>[{role:t("Headquarters"),city:t("City"),country:t("Country"),address:t("Street address"),hq:"true"},{role:t("Office"),city:t("City"),country:t("Country"),address:t("Street address")}];function H(e){const o=()=>w(e.offices,x(),e.editor);if(!d(e))return o();const i=e.editor?.isEditing===!0,r=y(e,i,C());return!r.sample&&!r.rows.length?o():r.rows.map(h)}const M={...O,render:e=>{const o=S(e.headPlacement)==="own-box",i=m=>o?void 0:m,r=H(e),s=d(e)?"typed":T(e.source);return f(u,{sectionNumber:i(n(e.sectionNumber,a.sectionNumber,e.editor)),heading:i(n(e.heading,a.heading,e.editor)),tagline:i(n(e.tagline,a.tagline,e.editor)),omitHead:o,offices:r,mapTheme:e.mapTheme??l.mapTheme,padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.editor?.isEditing,source:s,search:e.search===!0,searchHint:c(e.searchHint),noMatchText:c(e.noMatchText),listPosition:g(e.listPosition),showDistance:e.showDistance!==!1,template:e.template,ownerId:String(e.id??"")})}};export{M as FootprintRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import a from"../../../../../components/LogoBlock.js";import{CardRowDrawn as s}from"../../../../../components/CardRowContext.js";import{readHidable as g}from"efficient-easel/draw";import{readLogoColor as h}from"../../../../../../format/lib/logo/logo-color.js";import{LogoBlockMeta as u}from"../../../../../../format/lib/document/blocks/general/LogoBlock/meta.js";const j={...u,render:t=>e(s,{type:"LogoBlock",props:t,children:({src:n,alt:d,href:i,heightPx:l,reverse:f,customColor:m,align:o,alignTablet:c,alignPhone:p})=>{const r=h(f,m);return e(a,{src:n||void 0,alt:g(d).text||void 0,href:i||void 0,heightPx:l,reverse:r.reverse,color:r.color,align:o==="left"||o==="center"||o==="right"?o:void 0,alignTablet:c,alignPhone:p})}})};export{j as LogoBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as m,Fragment as k}from"react/jsx-runtime";import y from"../../../../../components/Logos.js";import{CardTemplateRows as L}from"../../../../../components/CardRowContext.js";import{declaredBlockSource as c,sourcedRows as H}from"../../../../../../format/lib/content/block-sources.js";import{phRows as P,phHide as R}from"../../scaffold.js";import{parseLogoLook as x}from"../../../../../../format/lib/sections/logo-look.js";import{isPaymentMethodSource as M,paymentMarkRows as T}from"../../../../sections/payment-rows.js";import{parseSectionHeadPlacement as _}from"../../../../../../format/lib/sections/section-head-placement.js";import{LOGOS_PH as j,LogosMeta as A,logosScaffoldItems as g}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const B=()=>g().map(o=>({label:o.alt}));function C(o,e){const t=H(o,e,B()).rows.filter(n=>n.label);return M(c(o))?T(t):t}const K={...A,render:o=>{const{items:e,contained:t,heading:n,columns:f,logoHeight:u,bandPadding:w,grayscale:p,logos:h,look:S,headPlacement:b,editor:a}=o,r=_(b)==="own-box",i=l=>m(y,{items:r?Array.isArray(e)?e:[]:P(e,g(),a),contained:t,heading:r?void 0:R(n,j.heading,a),columns:f,logoHeight:u,bandPadding:w,grayscale:p,logos:r?h:void 0,look:x(S),omitHead:r,cards:l});if(c(o)==="")return i();const s=a?.isEditing===!0,d=(o.template?.blockCount??0)>0?C(o,s):[];return!s&&!d.length?m(k,{}):m(L,{ownerId:String(o.id??""),ownerType:"Logos",Template:o.template,rows:d,fallback:i([]),children:l=>i(l)})}};export{K as LogosRender};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { type SourceRow } from "../../../../../../format/lib/content/block-sources.js";
|
|
1
2
|
import type { BlockRender } from "../../../../../../format/lib/document/blocks/block-types.js";
|
|
3
|
+
export declare function imageTextSourceRows(props: Record<string, unknown>, editing: boolean): {
|
|
4
|
+
client: string | null;
|
|
5
|
+
rows: SourceRow[];
|
|
6
|
+
};
|
|
2
7
|
export declare const ProcessStepsRender: BlockRender;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,Fragment as g}from"react/jsx-runtime";import h from"../../../../../components/ProcessSteps.js";import{CardTemplateRows as x}from"../../../../../components/CardRowContext.js";import{ClientRowsReader as R,clientRowsKey as T}from"../../../../../components/ClientRows.js";import{blockSourceSpec as y,declaredBlockSource as b,sourcedRows as P}from"../../../../../../format/lib/content/block-sources.js";import{imageTextRowsHand as H}from"../../../../../../format/lib/content/image-text-rows.js";import{parseSectionHeadPlacement as B}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as C,phHide as s,ctaHide as k}from"../../scaffold.js";import{say as l}from"../../../../../../format/lib/editor-words.js";import{ProcessStepsMeta as p,PROCESS_PH as v}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const D=()=>[{image:"",tag:l("{letter} · Step",{letter:"A"}),meta:l("Short detail line"),title:l("Step *one*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]},{image:"",tag:l("{letter} · Step",{letter:"B"}),meta:l("Short detail line"),title:l("Step *two*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]},{image:"",tag:l("{letter} · Step",{letter:"C"}),meta:l("Short detail line"),title:l("Step *three*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]}];function E(e,o){const i=b(e);return!o&&y(i)?.useRows?{client:i,rows:[]}:{client:null,rows:[...P(e,o).rows]}}const J={...p,render:e=>{const o=B(e.headPlacement)==="own-box",i=a=>o?void 0:a,u=e.editor?.isEditing===!0,w=H(e),n=a=>r(h,{rows:w,...a!==void 0?{copies:a}:{},num:i(s(e.num,v.num,e.editor)),title:i(s(e.title,v.title,e.editor)),description:i(s(e.description,t.body,e.editor)),omitHead:o,boxes:e.boxes,steps:C(e.steps,D(),e.editor),columns:typeof e.columns=="number"?e.columns:3,cta:k(e.ctaText,e.ctaHref),padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,cardImage:e.cardImage,cardText:e.cardText,editing:e.editor?.isEditing});if(!b(e))return n();const m=(a,d)=>a.length?r(x,{ownerId:String(e.id??""),ownerType:"ProcessSteps",Template:e.template,rows:a,...d?{items:d}:{},fallback:n(null),children:S=>n(S)}):u?n(null):r(g,{}),{client:c,rows:f}=E(e,u);return c?r(R,{source:c,props:e,children:a=>m(a?.rows??[],a?.items)},T(c)):m(f)}};export{J as ProcessStepsRender,E as imageTextSourceRows};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import{pictureHoverOf as d}from"../../../../../../format/lib/animation/hover.js";import m from"../../../../../components/Split.js";import{sectionFillsHeight as
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{pictureHoverOf as d}from"../../../../../../format/lib/animation/hover.js";import m from"../../../../../components/Split.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{hidableText as f}from"efficient-easel/draw";import{phHide as t,ctaHide as c}from"../../scaffold.js";import{SplitMeta as x,SPLIT_PH as i,IMGBTN_PH as o}from"../../../../../../format/lib/document/blocks/general/Split/meta.js";function u(e,l,r){const n=t(e,o.text,r);if(n!==void 0)return{text:n,href:l||"#"}}const v={...x,render:e=>a(m,{eyebrow:t(e.eyebrow,i.eyebrow,e.editor),title:t(e.title,i.title,e.editor),body:t(e.body,i.body,e.editor),imageLabel:f(e.title)||i.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,textAlignTablet:e.textAlignTablet,textAlignPhone:e.textAlignPhone,cta:c(e.ctaText,e.ctaHref,e.editor),imageButton:u(e.imageBtnText,e.imageBtnHref,e.editor),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale,pictureHover:d(e,"Split"),fillHeight:g(e)})};export{v as SplitRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as y}from"../../../../../components/CardRowContext.js";import{CountDrawn as T}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as O}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as k}from"../../../../content/page-contents.js";import{namedRowField as A,rowPartByKey as D}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as F,TOP_LINE_CLASS as L,cardPlaceOf as B,framesItsCards as W}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as j,blockSizeValuesOf as v}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as H}from"../../../../content/section-padding.js";import M from"../../../../../components/Text.js";import{hidableText as d,readHidable as U}from"efficient-easel/draw";import{PH as b}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as V}from"../../scaffold.js";import{readPartStyle as z}from"../../../part-styles.js";import{TextMeta as q}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const ct={...q,render:t=>{const{text:a,align:P,alignTablet:p,alignPhone:K,tone:_,tag:C,contained:E,editor:m}=t;if(U(a).hidden)return r(c,{});const{textStyle:f,align:R}=z(t,"text"),S=f?.startsWith("heading-")?b.heading:b.body,I=D("Text",t,"text")?{partKey:"text",partDeclare:!!m?.isEditing}:{},o=(e,n,i)=>r(M,{...I,text:V(e,S,m)??"",number:n,align:P,alignTablet:p,alignPhone:K,tone:_,tag:C,textStyle:f,partAlign:R,ownWidth:j(v(t)),contained:E,pad:H(t),onLine:i}),s=e=>!e?.trim()&&!m?.isEditing,u=A(t),g=w(t);if(g)return r(T,{countKey:g,children:e=>o(e??d(a))});const h=()=>{if(!u){const e=t[k];return typeof e=="string"?o(d(a),e):r(O,{id:t.id,children:n=>o(d(a),n)})}return r(y,{type:"Text",props:t,children:(e,n,i)=>{const l=d(e.text),x=w(t,i);return x?r(T,{countKey:x,children:N=>o(N??l)}):i&&s(l)?r(c,{}):o(l)}})};return B(t)!=="top-line"?h():r(y,{type:"Text",props:t,children:(e,n)=>{if(!n||!W(n.ownerType))return h();const i=d(u?e.text:a);return s(i)?r(c,{}):r("div",{className:L,[F]:"",children:o(i,void 0,!0)})}})}};export{ct as TextRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as p}from"react/jsx-runtime";import u from"../../../../../components/TitleWithButtons.js";import{readHidable as d}from"efficient-easel/draw";import{CTA_PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as b,phHide as _}from"../../scaffold.js";import{TitleWithButtonsMeta as c,TITLE_WITH_BUTTONS_PH as g}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const x=[{label:t.text,href:t.href,variant:"primary"},{label:t.text,href:t.href,variant:"outline"}],S={...c,render:({title:o,buttons:l,padTop:r,padBottom:i,buttonsAlign:T,buttonsAlignTablet:m,buttonsAlignPhone:f,editor:e})=>{const n=T,a=n==="center"||n==="left",s=d(o),h=s.hidden?"":s.text.trim();return p(u,{title:a&&!h?void 0:_(o,g.title,e),buttons:b(l,x,e),padTop:typeof r=="number"?r:140,padBottom:typeof i=="number"?i:140,buttonsAlign:n,buttonsAlignTablet:m,buttonsAlignPhone:f,editing:e?.isEditing})}};export{S as TitleWithButtonsRender};
|
|
@@ -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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DROP_COMMON as n,DROP_SIDE_PADDING as r,SAME_KEYS as i,SECTION_BOX as a,wrapperPad as s,wrapperPadKeys as d}from"./section-to-box-row-parts.js";import{HEAD_BELOW as p,headLookOf as h,headReads as c,headTree as m}from"./section-head-looks.js";const o={top:80,bottom:80,topPhone:60,bottomPhone:60},k=()=>{const t=c("FitmentFinder");return{name:"Fitment Form",boxProps:e=>({...a,direction:"column",gap:p[h("FitmentFinder")],...s(e,o)}),box:[...i,...d(o)],parts:[m("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:e=>e.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(t).length?{reads:t}:{},drop:{...n,...r,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},b={FitmentFinder:k()};export{b as FITMENT_SECTION_TO_BOX};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DIM as m,DROP_COMMON as t,DROP_SIDE_PADDING as e,SAME_KEYS as r,SECTION_BOX as n,TEXT as b,smallText as h,wrapperPad as s,wrapperPadKeys as i}from"./section-to-box-row-parts.js";const a={headPlacement:void 0},p={top:0,bottom:0,topPhone:0,bottomPhone:0},l=()=>({name:"Form",boxProps:o=>({...n,direction:"column",...s(o,p)}),box:[...r,...i(p)],parts:[{kind:"core",keep:"rest",props:a}],drop:{...t,...e}}),d={top:120,bottom:120,topPhone:60,bottomPhone:60},u=()=>({name:"Photo Submission Form",boxProps:o=>({...n,direction:"column",gap:24,...s(o,d)}),box:[...r,...i(d)],parts:[h("eyebrow"),{kind:"text",key:"title",role:"heading",props:b,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:m},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:a}],skip:o=>o.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...t,...e,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),x={Form:l(),SubmitBuild:u()};export{x as FORMS_SECTION_TO_BOX};
|
|
@@ -5,6 +5,8 @@ export type HeadOnlyRowExtension = {
|
|
|
5
5
|
slots?: Readonly<Record<string, readonly SlotFill[]>>;
|
|
6
6
|
partsAfter?: readonly PartRow[];
|
|
7
7
|
drop?: Readonly<Record<string, string>>;
|
|
8
|
+
pressHeading?: boolean;
|
|
8
9
|
};
|
|
9
10
|
export declare function headOnlyRow(type: string, ext?: HeadOnlyRowExtension): SectionToBoxRow;
|
|
11
|
+
export declare const HEAD_ONLY_CARD_SEEDS: Readonly<Record<string, HeadOnlyRowExtension>>;
|
|
10
12
|
export declare const HEAD_ONLY_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SPLITTABLE_SECTIONS as
|
|
1
|
+
import{SPLITTABLE_SECTIONS as E}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as T}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as O,SECTION_BOX as P,innerPad as S}from"./section-to-box-row-parts.js";import{HEAD_BELOW as _,headLookOf as h,headReads as f,headTree as u}from"./section-head-looks.js";import{finiteNumber as A}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as b}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as g}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";const L=["Collections","Events","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","ProductGrid","RelatedProducts"],Y=["FitmentTable","SpecTable"],n=(o,t)=>()=>({top:o,topPhone:t}),c=o=>t=>{const e=S(t,o).sectionPaddingTop;return{top:e,topPhone:e}},R={Collections:n(120,70),Events:n(120,70),FAQ:n(120,70),GalleryB:n(120,70),FitmentTable:n(120,80),SpecTable:n(120,80),LongRead:n(120,80),RelatedProducts:n(0,0),Footprint:c("Footprint"),ProcessSteps:c("ProcessSteps"),ProductGrid:o=>({top:A(o.padTop)??120,topPhone:0})};function H(o,t={}){const e=E[o],d=R[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=u(o),a=f(o),m=e.headRows.filter(r=>![e.num,e.title,e.description,"linkText","linkHref"].includes(r)),p={...Object.fromEntries(m.filter(r=>!(r in a)).map(r=>[r,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...t.drop};return{name:T[o]??o,boxProps:r=>{const i=d(r);return{...P,direction:"column",gap:_[h(o)],sectionPaddingTop:i.top,sectionPaddingTopPhone:i.topPhone}},box:[...O,...s?[[s,"sectionPaddingTop",(r,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(p).length?{drop:p}:{},...t.pressHeading?{pressKeepsEmpty:[e.title]}:{}}}const k={Footprint:{slots:{[b]:[g()]},pressHeading:!0}},I=Object.fromEntries(L.map(o=>[o,H(o,k[o])]));export{k as HEAD_ONLY_CARD_SEEDS,I as HEAD_ONLY_SECTION_TO_BOX,L as HEAD_ONLY_TYPES,Y as HOST_ROW_HEAD_TYPES,H as headOnlyRow};
|