efficient-web-builder 59.1.0 → 59.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 +41 -0
- package/dist/editor/components/HoverEffectField.js +1 -1
- package/dist/editor/components/SectionThumbnail.js +1 -1
- package/dist/editor/components/storefront-editor.css +21 -7
- package/dist/editor/lib/animation/fields.js +1 -1
- package/dist/editor/lib/animation/hover-fields.d.ts +10 -1
- package/dist/editor/lib/animation/hover-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/box-side-space-field.d.ts +11 -0
- package/dist/editor/lib/document/box-side-space-field.js +1 -0
- package/dist/editor/lib/document/card-row-fields.d.ts +3 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.js +1 -1
- package/dist/format/lib/animation/hover.d.ts +8 -0
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/block-align.d.ts +3 -1
- package/dist/format/lib/content/block-align.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +7 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-card-rule.d.ts +7 -0
- package/dist/format/lib/content/box-card-rule.js +1 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-phone-place.d.ts +4 -4
- package/dist/format/lib/content/box-phone-place.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/box-shape.js +1 -1
- package/dist/format/lib/content/box-side-space.d.ts +14 -0
- package/dist/format/lib/content/box-side-space.js +1 -0
- package/dist/format/lib/content/button-icon.d.ts +3 -1
- package/dist/format/lib/content/button-icon.js +1 -1
- package/dist/format/lib/content/cell-picture-sizes.js +1 -1
- package/dist/format/lib/content/gallery-card-layout.d.ts +6 -1
- package/dist/format/lib/content/gallery-card-layout.js +1 -1
- package/dist/format/lib/content/image-aspect.d.ts +3 -3
- package/dist/format/lib/content/image-aspect.js +1 -1
- package/dist/format/lib/content/mirror-cards.d.ts +3 -0
- package/dist/format/lib/content/mirror-cards.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +2 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/part-display.d.ts +2 -1
- package/dist/format/lib/content/part-display.js +1 -1
- package/dist/format/lib/content/site-gutter.d.ts +2 -0
- package/dist/format/lib/content/site-gutter.js +1 -1
- package/dist/format/lib/content/view-hide-class.d.ts +5 -2
- package/dist/format/lib/content/view-hide-class.js +1 -1
- package/dist/format/lib/content/view-lines.d.ts +2 -1
- package/dist/format/lib/content/view-lines.js +1 -1
- package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +9 -0
- package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -1
- package/dist/format/lib/document/card-content-switch.d.ts +1 -0
- package/dist/format/lib/document/card-content-switch.js +1 -1
- package/dist/format/lib/document/cards-template-on-read.js +1 -1
- package/dist/format/lib/document/row-hand.js +1 -1
- package/dist/format/lib/document/section-catalog.d.ts +2 -0
- package/dist/format/lib/document/section-catalog.js +11 -11
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/document/seed-parts.d.ts +1 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/fit-words.d.ts +1 -0
- package/dist/format/lib/fit-words.js +9 -8
- package/dist/format/lib/sized-image.js +1 -1
- package/dist/format/lib/source-rules/one-phone-edge.d.ts +13 -0
- package/dist/format/lib/source-rules/one-phone-edge.js +8 -0
- package/dist/format/lib/source-rules/one-section-edge-inset.d.ts +6 -0
- package/dist/format/lib/source-rules/one-section-edge-inset.js +2 -0
- package/dist/format/lib/source-rules/one-site-column.js +3 -3
- package/dist/format/lib/source-rules/published-mounts.d.ts +12 -0
- package/dist/format/lib/source-rules/published-mounts.js +10 -0
- package/dist/render/components/BlockFrame.d.ts +2 -0
- package/dist/render/components/BlockFrame.js +1 -1
- package/dist/render/components/ButtonBlock.js +1 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Eyebrow.js +1 -1
- package/dist/render/components/Flex.d.ts +6 -2
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/HeroPictures.js +1 -1
- package/dist/render/components/InBoxContext.d.ts +3 -0
- package/dist/render/components/InBoxContext.js +1 -1
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/PublishedPartStylesContext.d.ts +2 -1
- package/dist/render/components/PublishedPartStylesContext.js +1 -1
- package/dist/render/components/SectionAnimation.d.ts +4 -2
- package/dist/render/components/SectionAnimation.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +2 -1
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/components/ViewHideRoot.d.ts +7 -1
- package/dist/render/components/ViewHideRoot.js +1 -1
- package/dist/render/lib/content/block-size.d.ts +4 -1
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/box-cell-bound.js +1 -1
- package/dist/render/lib/content/box-shared-columns.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +4 -1
- package/dist/render/lib/content/box-stack-line.js +1 -1
- package/dist/render/lib/content/section-edge.d.ts +5 -0
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/view-values.d.ts +2 -0
- package/dist/render/lib/content/view-values.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -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-forms.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +3 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +3 -1
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/block-size.js +1 -1
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/hidden-nodes.js +1 -1
- package/dist/render/lib/document/passes/section-animation.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/published-passes.d.ts +13 -0
- package/dist/render/lib/document/published-passes.js +1 -0
- package/dist/render/lib/sections/section-to-box.d.ts +4 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BLOCK_FIXED_WIDTH as
|
|
1
|
+
import{BLOCK_FIXED_WIDTH as K,BLOCK_SIZE_KEYS as y,parseBlockWidthFit as b,phoneKey as H,parseTextFit as u,tabletKey as z}from"efficient-easel/draw";import{TEXT_FIT_ATTR as d}from"../../../format/lib/fit-words.js";const P="sf-block-size",p=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,M={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},L={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-wide:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-wide:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-wide:max-view-desktop:basis-auto! view-wide:max-view-desktop:grow-0! view-wide:max-view-desktop:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},j={desktop:L.desktop,tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},R={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},V={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},X={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},_={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Y={minWidth:{desktop:_.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:_.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},Z=["widthFit","width","minWidth","maxWidth"],F={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},E={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},$={desktop:E.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"};function J(e){const i=N(e);return i.sides.filter(o=>i.mode[o]==="fill").map(o=>R[i.three?"three":"two"][o]).filter(Boolean).join(" ")}function N(e){const i=Z.some(w=>{const t=e[w]?.tablet;return w==="widthFit"?b(t)!==void 0:p(t)!==void 0}),o=i?["desktop","tablet","phone"]:["desktop","phone"],s=(w,t)=>{const f=w(t?.desktop),n=i?w(t?.tablet)??f:f;return{desktop:f,tablet:n,phone:w(t?.phone)??n}};return{three:i,sides:o,perSide:s,mode:s(b,e.widthFit)}}function Q(e,{atSectionLine:i=!1}={}){const o=i?j:L,s=i?Y:_,w=i?$:E,t=[],f={},n={},{three:S,sides:I,perSide:T,mode:A}=N(e),O=T(p,e.width);for(const a of I){const m=A[a];!m||m==="fit"||(t.push(S?o[a][m]:M[a][m]),m==="fixed"&&(f[V[a]]=`${O[a]??K.fallback}px`))}for(const a of["minWidth","maxWidth"]){const m=T(p,e[a]);for(const k of I){const C=m[k];if(C===void 0)continue;const[B,D]=S?s[a][k]:X[a][k];f[B]=`${C}px`,t.push(D)}}const r=u(e.textFit?.desktop),x=u(e.textFit?.phone),v=p(e.minFont?.desktop),h=p(e.minFont?.phone),W=u(e.textFit?.tablet),l=W!==r||x!==void 0?W:void 0,g=p(e.minFont?.tablet),c=g!==v||h!==void 0?g:void 0;return l?(r==="line"&&t.push(w.desktop),l==="line"&&t.push(w.tablet),(x??l)==="line"&&t.push(w.phone)):(r==="line"&&t.push(F.desktop),(x??r)==="line"&&t.push(F.phone)),r&&(n[d.fit]=r),l&&(n[d.fitTablet]=l),x&&(n[d.fitPhone]=x),v!==void 0&&(n[d.min]=String(v)),c!==void 0&&(n[d.minTablet]=String(c)),h!==void 0&&(n[d.minPhone]=String(h)),!i&&(l||c!==void 0)&&(n[d.edge]=""),t.length===0&&Object.keys(n).length===0?null:{className:[P,...t].join(" "),style:f,attrs:n}}function U(e){if(p(e.maxWidth?.desktop)!==void 0)return!0;const i=b(e.widthFit?.desktop);return i==="fill"||i==="fixed"}function ee(e){return["desktop","tablet","phone"].some(o=>{const s=b(e.widthFit?.[o]);return s==="fixed"||s==="fill"||p(e.minWidth?.[o])!==void 0})}function ie(e){const i={};for(const o of y){const s=e[o],w=e[z(o)],t=e[H(o)];(s!==void 0||w!==void 0||t!==void 0)&&(i[o]={desktop:s,tablet:w,phone:t})}return i}export{P as BLOCK_SIZE_CLASS,d as TEXT_FIT_ATTR,ee as blockCanWidenPastCell,J as blockFillInCellClass,U as blockSetsItsWidth,Q as blockSizeOf,ie as blockSizeValuesOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{VIEW_DESKTOP_MIN as f
|
|
1
|
+
import{VIEW_DESKTOP_MIN as f}from"efficient-easel/draw";import{PHONE_EDGE as p}from"../../../format/lib/content/view-lines.js";import{boxPhoneRowFits as h,boxRowColumnsClass as w,boxRowTabletColumnsClass as C,boxRowTabletShareClass as O,boxShareClasses as R,boxShareTabletOf as S}from"../../../format/lib/content/box-layout.js";import{isStripBox as k}from"../../../format/lib/content/box-separator.js";import{BOX_STACK_LINE as l,storedStackLine as E}from"./box-stack-line.js";const T={phone:1,tablet:1,desktop:1},N=e=>typeof e=="number"&&Number.isInteger(e)&&e>=1?e:void 0;function M(e){if(e.direction==="column")return T;if(e.direction!=="row"||k(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||e.shared)return;const o=N(e.count),a=d=>d==="equal"&&o?1/o:1,s=w(e)!==""?1/e.columns:a(e.share),n=Number(e.phoneRow);let t=1;(n===2||n===3)&&!h(e.phoneRow,e.sharePhone)&&(t=R(e.share)!==""?o?1/(o%n||n):1:1/n);const u=C(e)!==""?e.columnsTablet:void 0,i=O(e)!==""?S(e.shareTablet):null,c=u!==void 0?1/u:i!==null?a(i):void 0,r=c===void 0?E(e.stackBelow):void 0;if(r!==void 0&&r>l)return{phone:t,tablet:1,desktop:r>f?1:s};const m=c??Math.max(t,l<f?s:0);return{phone:p<=l?t:Math.max(t,s),tablet:m,desktop:s}}export{M as boxCellFractions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{REPEAT_ATTRIBUTE as l,phoneKey as
|
|
1
|
+
import{REPEAT_ATTRIBUTE as l,phoneKey as A,tabletKey as E}from"efficient-easel/draw";import{parseLoop as c}from"../../../format/lib/animation/loop.js";import{finiteNumber as O}from"../../../format/lib/finite-number.js";import{boxIsCard as $}from"../../../format/lib/content/box-background.js";import{isStripBox as g}from"../../../format/lib/content/box-separator.js";import{CARD_STATE_ATTR as N}from"../../../format/lib/content/card-state.js";import{BOX_ALIGN_CLASS as u,boxRowColumnsClass as y,boxRowTabletColumnsClass as T}from"../../../format/lib/content/box-layout.js";const d="sharedColumns",h="shared",m="own",p="scroll",X="Row columns",q=[{value:m,label:"Each row"},{value:h,label:"Shared"}],z=[{value:m,label:"Each row"},{value:p,label:"Shared, scroll"}],w="(width >= 800px)",D="(width < 800px)";function L(t){const o={direction:t.direction,separator:t.separator,loop:c(t.loop),line:t.line};return o.direction==="row"&&!g(o.direction,o.separator)&&o.loop!=="scroll"&&o.line!==!0&&!$(t)&&y({...o,columns:t.columns})===""&&T({...o,columnsTablet:t[E("columns")]})===""}function f(t){return Array.isArray(t)?t.filter(o=>typeof o?.type=="string").length:O(t?.blockCount)??0}function J(t){return L(t)&&r(f(t.content))>0?H(t[d],t[A(d)]):{desktop:!1,phone:!1}}const r=t=>Number.isInteger(t)&&t>0?t:0,S=(t,o)=>`sf-shared-cols-${t}${o===void 0?"":`-from-${o}`}`,R=t=>`sf-shared-cols-phone-${t}`;function H(t,o){return{desktop:t===h,phone:o===p}}function Q(t,o,e){const n=r(o);return n?`${t.desktop?` ${S(n,e)}`:""}${t.phone?` ${R(n)}`:""}`:""}function C(t){const o=`[${l}]`;return`:has(> ${o} ${t}):not(:has(> ${o} ${o} ${t}))`}function _(t,o,e=""){const n=C(t);return`${n}{display:grid;grid-template-columns:${o};column-gap:0${e}}${n}>:not(:has(${t})):not(${t}){grid-column:1/-1}${n} :has(${t}),${n} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const P="data-sf-shared-plain";function v(t){const o=`[${l}]`,e=`[${P}]`,n=C(t)+`:not(:has(> :not(${o}) > :not(${e}) ${t})):not(:has(> ${o} > * > :not(${e}) ${t})):not(:has(:not(${e}) > :not(${e}) > ${t})):not(:has(> ${o}[${N}]))`,s=`${n}>:not(style):not(:has(${t})):not(${t})`;return`${n}{display:table;width:100%;border-collapse:collapse}${n}>:has(${t}),${n}>${o}>:has(${t}),${n} ${e}:has(${t}),${n} ${e}>:has(${t}){display:contents}${n} ${t}{display:table-row}${n} ${t}>*{display:table-cell;width:auto;vertical-align:top}${n} ${t}.${u.center}>*{vertical-align:middle}${n} ${t}.${u.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${o}){caption-side:top}`}function V(t,o,e){const n=r(o);if(!n)return"";let s="";if(t.desktop){const a=`.${S(n,e)}`;s+=`@media ${e===void 0?w:`(width >= ${e}px)`}{${_(a,`repeat(${n},auto)`)}${v(a)}}`}return t.phone&&(s+=`@media ${D}{${_(`.${R(n)}`,`repeat(${n},minmax(max-content,auto))`,";overflow-x:auto")}}`),s}const I="sharedRows",U="shared",k="sf-shared-rows-list";function M(t){const o=t.direction;return(o===void 0||o==="column")&&c(t.loop)!=="scroll"&&t.line!==!0&&!$(t)}function Z(t){return t[I]===U&&M(t)&&r(f(t.content))>0}const x=t=>`sf-shared-rows-${t}`;function tt(t,o){const e=r(o);return t&&e?` ${x(e)}`:""}function ot(t,o){const e=r(o);if(!t||!e)return"";const n=`.${x(e)}`,s=`.${k}`,a=`display:grid;grid-template-rows:subgrid;grid-row:span ${e};min-height:0;grid-template-columns:minmax(0,1fr)`,b=["start","center","end"].map(i=>`${s} ${n}.items-${i}{justify-items:${i}}`).join("");return`${s} :has(${n}){${a};row-gap:0}${s} ${n}{${a};justify-content:normal;align-items:stretch}${b}`}export{d as SHARED_COLUMNS_KEY,X as SHARED_COLUMNS_LABEL,m as SHARED_COLUMNS_OFF,z as SHARED_COLUMNS_PHONE_POINTS,q as SHARED_COLUMNS_POINTS,P as SHARED_PLAIN_ATTR,I as SHARED_ROWS_KEY,k as SHARED_ROWS_LIST_CLASS,Q as sharedColumnsClasses,V as sharedColumnsCss,J as sharedColumnsDrawn,L as sharedColumnsFits,tt as sharedRowsClasses,ot as sharedRowsCss,Z as sharedRowsDrawn,M as sharedRowsFits};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const BOX_STACK_LINE: number;
|
|
2
2
|
export declare const BOX_GUTTER_LINE = 960;
|
|
3
|
+
export declare const BOX_PHONE_PAD_AT_EDGE: number;
|
|
3
4
|
export declare const BOX_PHONE_PAD_LINE: number;
|
|
4
5
|
export declare const BOX_STACK_RANGE: {
|
|
5
6
|
readonly min: number;
|
|
@@ -12,4 +13,6 @@ export declare function boxStackLine(value: unknown): number;
|
|
|
12
13
|
export declare const stackRowClass: (line: number) => string;
|
|
13
14
|
export declare const stackGutterClass: (line: number) => string;
|
|
14
15
|
export declare const stackOuterClass: (line: number) => string;
|
|
15
|
-
export declare function stackLineCss(line: number
|
|
16
|
+
export declare function stackLineCss(line: number, opts?: {
|
|
17
|
+
gutter?: boolean;
|
|
18
|
+
}): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{VIEW_DESKTOP_MIN as r,VIEW_TABLET_MIN as
|
|
1
|
+
import{VIEW_DESKTOP_MIN as r,VIEW_TABLET_MIN as u}from"efficient-easel/draw";import{PHONE_EDGE as f}from"../../../format/lib/content/view-lines.js";const p=f,d=960,$=f,O=u,m={min:p,max:1600,step:10},b="stackBelow";function g(t){if(!(typeof t!="number"||!Number.isFinite(t))&&!(t<m.min||t>m.max))return Math.round(t)}function N(t){return g(t)??p}const _=t=>`sf-stack-${t}`,w=t=>`sf-stack-${t}-gutter`,E=t=>`sf-stack-${t}-outer`,n=t=>`${t-.02}px`;function T(t,x={}){const i=x.gutter!==!1,a=`.${_(t)}`,e=`.${w(t)}`,c=`.${E(t)}`,o=[];if(t>p){const s=`${a}>.sf-block-size,${a}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,h=Math.min(t,r);o.push(`@media (min-width:${p}px) and (max-width:${n(t)}){${a}${a}{flex-direction:column}.sf-gap-overlap${a}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${s}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${p}px) and (max-width:${n(h)}){.sf-gap-zone${a}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),t>r&&o.push(`@media (min-width:${r}px) and (max-width:${n(t)}){.sf-gap-zone${a}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return i&&o.push(`@media (max-width:${n(t)}){${e}${e}{padding-inline:min(24px,var(--sf-site-gutter,40px))}}`),i&&t<d&&o.push(`@media (min-width:${t}px) and (max-width:${n(d)}){${e}${e}{padding-inline:var(--sf-site-gutter,40px)}}`),t>$&&o.push(`@media (min-width:${$}px) and (max-width:${n(t)}){`+["top","bottom","left","right"].map(s=>`.sf-pad-${s}-phone:has(>${c}),.sf-pad-${s}-phone${c}{padding-${s}:var(--sf-pad-${s[0]}-phone)!important}`).join("")+"}"),o.join("")}export{d as BOX_GUTTER_LINE,$ as BOX_PHONE_PAD_AT_EDGE,O as BOX_PHONE_PAD_LINE,p as BOX_STACK_LINE,m as BOX_STACK_RANGE,b as STACK_BELOW_PROP,N as boxStackLine,w as stackGutterClass,T as stackLineCss,E as stackOuterClass,_ as stackRowClass,g as storedStackLine};
|
|
@@ -3,6 +3,7 @@ import { type PadValues } from "./section-padding.js";
|
|
|
3
3
|
export type SectionEdge = {
|
|
4
4
|
gutter: boolean;
|
|
5
5
|
pad?: PadValues;
|
|
6
|
+
site?: boolean;
|
|
6
7
|
beyond?: string;
|
|
7
8
|
};
|
|
8
9
|
export declare function sectionEdgeAttrs(edge: SectionEdge): {
|
|
@@ -15,3 +16,7 @@ export declare function sectionEdgeBeyondAttrs(edge: SectionEdge): {
|
|
|
15
16
|
className: string;
|
|
16
17
|
style: CSSProperties;
|
|
17
18
|
} | null;
|
|
19
|
+
export declare function sectionEdgeBandAttrs(edge: SectionEdge): {
|
|
20
|
+
className: string;
|
|
21
|
+
style: CSSProperties;
|
|
22
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isLengthUnit as
|
|
1
|
+
import{isLengthUnit as m}from"efficient-easel/screen/lib/content/length-units";import{FULL_SECTION_WIDTH as o,SITE_COLUMN_EDGE_NARROW as b,SITE_WIDTH_CAP as u}from"../../../format/lib/content/page-width.js";import{sideViewLengths as E}from"./section-padding.js";import{finiteNumber as n}from"../../../format/lib/finite-number.js";const l="[--sf-edge-g:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-edge-g:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))] [--sf-edge-t:max(0px,calc(var(--sf-site-width,1600px)_-_100%_-_2_*_var(--sf-edge-g)))] [--sf-edge-al:min(var(--sf-edge-l),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-r))))] [--sf-edge-ar:min(var(--sf-edge-r),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-l))))]",$=`[--sf-edge-g:var(--sf-box-g,var(--sf-site-gutter,40px))] ${b}`+l.slice(l.indexOf(" [--sf-edge-t:")),y="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",T="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-view-desktop:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-view-desktop:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-view-tablet:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-view-tablet:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",v="max-w-[100vw]",h=`ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] ${v}`;function c(r){const s={},e=r.pad??{};for(const[f,_,a,d]of[["l",e.left,e.leftTablet,e.leftPhone],["r",e.right,e.rightTablet,e.rightPhone]]){const t=n(_),x={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone};t!==void 0&&(s[`--sf-edge-${f}d`]=`${t}${m(e.unit)?e.unit:"px"}`);const g=E(t,n(a),n(d),x);g.tablet!==void 0&&(s[`--sf-edge-${f}t`]=g.tablet),g.phone!==void 0&&(s[`--sf-edge-${f}p`]=g.phone)}return{className:`${r.gutter?r.site?$:l:y} ${T}`,style:s}}function I(r){const{className:s,style:e}=c(r);return{className:`${s} ${h}`,...Object.keys(e).length?{style:e}:{}}}const i="[--sf-edge-bl:max(0px,min(calc(var(--sf-edge-beyond)_+_(var(--sf-edge-l)_-_var(--sf-edge-r))_/_2),calc(2_*_var(--sf-edge-beyond))))] [--sf-edge-br:max(0px,min(calc(var(--sf-edge-beyond)_+_(var(--sf-edge-r)_-_var(--sf-edge-l))_/_2),calc(2_*_var(--sf-edge-beyond))))]";function N(r){const s=c(r).style,e=a=>{const d=s[`--sf-edge-${a}d`]??"0px",t=s[`--sf-edge-${a}t`]??d;return[d,t,s[`--sf-edge-${a}p`]??t]},[f,_]=[e("l"),e("r")];return f.every((a,d)=>a===_[d])}const p="--sf-edge-beyond";function O(r){return`max(0px,calc((${r===null?o:`min(${o},${r})`} - ${u}) / 2))`}function B(r){const s=r.beyond;return s===void 0||s==="0px"?null:{className:N(r)?"mx-[calc(-1_*_var(--sf-edge-beyond))] px-[var(--sf-edge-beyond)]":`${i} ml-[calc(-1_*_var(--sf-edge-bl))] mr-[calc(-1_*_var(--sf-edge-br))] pl-[var(--sf-edge-bl)] pr-[var(--sf-edge-br)]`,style:{[p]:s}}}const w=`${i} ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar)_+_var(--sf-edge-bl)_+_var(--sf-edge-br))] pl-[calc(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl))] pr-[calc(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br))] ${v}`;function U(r){const{className:s,style:e}=c(r);return{className:`${s} ${w}`,style:{...e,[p]:r.beyond??"0px"}}}export{p as EDGE_BEYOND_VAR,O as groundBeyond,I as sectionEdgeAttrs,U as sectionEdgeBandAttrs,B as sectionEdgeBeyondAttrs};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { RESPONSIVE_RULES } from "../../../format/lib/content/view-lines.js";
|
|
2
2
|
export { RESPONSIVE_RULES };
|
|
3
3
|
export { type ViewOverrides, viewOverrides, viewRules } from "../../../format/lib/content/view-overrides.js";
|
|
4
|
+
export declare const EDGE_TABLET_MEDIA = "(min-width: 800px) and (max-width: 1099.98px)";
|
|
5
|
+
export declare const EDGE_PHONE_MEDIA = "(max-width: 799.98px)";
|
|
4
6
|
export declare const TABLET_MEDIA = "(min-width: 720px) and (max-width: 1099.98px)";
|
|
5
7
|
export declare const PHONE_MEDIA = "(max-width: 719.98px)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{VIEW_DESKTOP_MIN as t,VIEW_TABLET_MIN as
|
|
1
|
+
import{VIEW_DESKTOP_MIN as t,VIEW_TABLET_MIN as o}from"efficient-easel/draw";import{PHONE_EDGE as x,RESPONSIVE_RULES as p}from"../../../format/lib/content/view-lines.js";import{viewOverrides as I,viewRules as w}from"../../../format/lib/content/view-overrides.js";const E=.02,_=`(min-width: ${x}px) and (max-width: ${t-E}px)`,e=`(max-width: ${x-E}px)`,m=`(min-width: ${o}px) and (max-width: ${t-E}px)`,d=`(max-width: ${o-E}px)`;export{e as EDGE_PHONE_MEDIA,_ as EDGE_TABLET_MEDIA,d as PHONE_MEDIA,p as RESPONSIVE_RULES,m as TABLET_MEDIA,I as viewOverrides,w as viewRules};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as u}from"react/jsx-runtime";import{HideTaker as
|
|
1
|
+
import{jsx as u}from"react/jsx-runtime";import{HideTaker as R}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as T,useCardRow as h}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as k}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as S,highlightOf as A,keyedRows as C,markedRows as _,rowHoldsContent as g}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as L,CARD_LIST_TYPE as j,cardListShows as I,cardRow as p}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as b,sourceChoices as E,sourcedRows as B}from"../../../../../../format/lib/content/block-sources.js";import{CardListMeta as M}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function y(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const w=[{}];function O(t,s){const c=b(t);let n,l=[];if(c){const e=B(t,s);n=[...e.rows],e.sample&&(l=E(c))}else{const e=t[L];n=Array.isArray(e)?e:[]}const a=C(n.map(p),l),r=n.map((e,d)=>({item:e,row:a[d]})).filter(({item:e})=>s||g(e)),i=_(r.map(e=>e.row),A(t));return{items:r.map(e=>e.item),rows:i.rows,states:r.map(({item:e},d)=>{const o={...y(e),...i.states[d]};return Object.keys(o).length?o:void 0})}}function x({id:t,own:s,Template:c,editing:n,dragRef:l}){const a=h();let r,i,e;if(a){const o=I(s,a.ownerType),m=o&&a.item&&typeof a.item=="object"?a.item[o]:void 0,f=Array.isArray(m)?m:[];r=f.length?f:n?w:f,i=r.map(p),e=r.map(y)}else{const o=O(s,n),m=!o.items.length&&n;r=m?w:o.items,i=m?w.map(p):o.rows,e=m?[]:o.states}if(!r.length)return null;const d=n?[]:r.map(S);return u(T,{ownerId:t,ownerType:j,Template:c,rows:i,items:r,states:e.some(Boolean)?e:void 0,actions:d.some(Boolean)?d:void 0,fallback:null,children:o=>u(R,{ref:l,className:"contents",[k]:"",children:o})})}const q={...M,render:t=>u(x,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{q as CardListRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as s,Fragment as m}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as E}from"../../../../../../format/lib/content/section-min-height.js";import _,{cardGridCornerClasses as x}from"../../../../../components/Cards.js";import{CardTemplateRows as A}from"../../../../../components/CardRowContext.js";import{cardRow as D}from"../../../../../../format/lib/content/card-template.js";import{highlightOf as H,keyedRows as u,markedRows as f,rowHoldsContent as h}from"../../../../../../format/lib/content/card-state.js";import{declaredBlockSource as b,sourceChoices as I,sourcedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{parseSectionHeadPlacement as L}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as F}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as T,phHide as y}from"../../scaffold.js";import{say as n}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as a}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as v,CARDS_PH as C}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const g=()=>[{title:n("Card title one"),body:n("A short line about this card.")},{title:n("Card title two"),body:n("A short line about this card.")},{title:n("Card title three"),body:n("A short line about this card.")}],S=()=>g().map(t=>({[a.title]:t.title??"",[a.body]:t.body??""}));function N(t){return b(t)?w(t,t.editor?.isEditing===!0,S()).rows.filter(e=>e[a.title]||e[a.body]).map(e=>({title:e[a.title]??"",body:e[a.body]??""})):null}function O(t){const e=t.editor?.isEditing===!0,o=b(t),d=H(t);if(o){const r=w(t,e,S());return f(u(r.rows,r.sample?I(o):[]).filter(h),d)}const l=T(t.items,g(),t.editor).map(D);return f(u(l).filter(r=>e||h(r)),d)}function P(t,e){const o=`relative grid ${E} bg-bg`;return s("div",{className:e?`${o} ${e}`:o,children:t})}const X={...v,render:t=>{const e=L(t.headPlacement)==="own-box",o=i=>e?void 0:i,d=(t.template?.blockCount??0)>0,l=N(t);if(!d&&l&&!l.length)return s(m,{});const r=i=>s(_,{look:F(t.eyebrowLook,t.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(y(t.eyebrow,C.eyebrow,t.editor)),title:o(y(t.title,C.title,t.editor)),columns:t.columns,omitHead:e,editing:t.editor?.isEditing,cards:i}),{rows:c,states:R}=d?O(t):{rows:[],states:[]};return d&&l&&!c.length?s(m,{}):s(A,{ownerId:String(t.id??""),ownerType:"Cards",Template:t.template,rows:c,states:R,fallback:r(),wrapCopy:(i,k)=>P(i,x(k.index,c.length,t.columns)),children:i=>c.length?r(i):r()})}};export{X as CardsRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{BOX_ANGLE_PROP as g}from"../../../../../../format/lib/content/box-angle.js";import{BOX_SIDE_SPACE_PROP as b}from"../../../../../../format/lib/content/box-side-space.js";import{phoneKey as a,tabletKey as t}from"efficient-easel/draw";import{BOX_SWATCH_PROP as f,boxCardProps as d,boxPaintOf as S}from"../../../../../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as u}from"../../../../../../format/lib/content/box-card-rule.js";import{sharedColumnsDrawn as w,sharedRowsDrawn as P}from"../../../../content/box-shared-columns.js";import{CountRowsContext as O,NO_COUNTS as k}from"../../../../../components/CountRowsContext.js";import{RowEmptyGate as y}from"../../../../../components/CardRowContext.js";import{BOX_HIDE_WHEN_ROW_EMPTY as C,CARD_ROW_LINK_PROP as T,namedRowField as r}from"../../../../../../format/lib/content/card-template.js";import _ from"../../../../../components/Flex.js";import{loopDelayOf as R,loopSecondsOf as x,parseLoop as D,parseLoopDirection as B}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as j,declaredBlockSource as E,servedRows as H}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as I}from"../../../../content/section-padding.js";import{sectionFillsHeight as N}from"../../../../../../format/lib/content/section-min-height.js";import{boxHighlightStyle as v,pictureHoverOf as A}from"../../../../../../format/lib/animation/hover.js";import{slotCountOf as F}from"../../../slot-counts.js";import{FlexMeta as L}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const te={...L,render:e=>{const n=!!e.editor?.isEditing,h=l(_,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[t("gap")],justify:e.justify,justifyTablet:e[t("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[t("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[t("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[t("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[t("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[t("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,rowImage:r(e,u),pictureHover:A(e),darken:e.darken,darkenStyle:e.darkenStyle,darkenTablet:e[t("darken")],darkenPhone:e[a("darken")],darkenStyleTablet:e[t("darkenStyle")],darkenStylePhone:e[a("darkenStyle")],placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:I(e),contained:e.contained,fillHeight:N(e),shadow:e.shadow,shadowTablet:e[t("shadow")],shadowPhone:e[a("shadow")],loop:D(e.loop),scrollDirection:B(e.scrollDirection),loopSeconds:x({loopDuration:e.loopDuration}),loopDelay:R({loopDelay:e.loopDelay}),editing:n,fillColor:e.fillColor,fillColorTablet:e[t("fillColor")],fillColorPhone:e[a("fillColor")],swatch:e[f],line:e.line,upcoming:e.upcoming,link:e.link,rowLink:r(e,T),highlight:v(e,m=>S(m)??""),boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[t("boxShape")],angle:e[g],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:w(d(e,!1)),sharedRows:P(d(e,!1)),boxId:typeof e.id=="string"?e.id:void 0,slotCount:F(e),mirrorCards:e.mirrorCards,content:e.content,rowTitle:e.rowTitle,startsOpen:e.startsOpen,rowStyle:e.rowStyle,sideSpace:e[b]}),o=E(e),c=o?o===j?H(e):k:null,i=l(O.Provider,{value:c,children:h});return e[C]===void 0?i:l(y,{props:e,editing:n,children:i})}};export{te as FlexRender};
|
|
@@ -8,4 +8,5 @@ export { token } from "../../../../../format/lib/document/seed-parts.js";
|
|
|
8
8
|
export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
|
|
9
9
|
export declare function headWordsOnPhoneLine(part: PartRow): PartRow;
|
|
10
10
|
export declare function headReads(type: string): Readonly<Record<string, string>>;
|
|
11
|
+
export declare const SIMPLE_HEADING_LOOK: Readonly<Record<string, unknown>>;
|
|
11
12
|
export declare function headTree(type: string): PartRow;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{SPLITTABLE_SECTIONS as k}from"../../../../../format/lib/sections/section-head-placement.js";import{AUTO_COLUMN as
|
|
2
|
-
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...s,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:{...x,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:[{...
|
|
1
|
+
import{SPLITTABLE_SECTIONS as k}from"../../../../../format/lib/sections/section-head-placement.js";import{AUTO_COLUMN as O,BUTTON as B,DIM as L,INNER_BOX as o,SH_LINK as _,TEXT as h,smallText as I}from"./section-to-box-row-parts.js";import{labelTextSeed as M}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 G={standard:64,editorial:60,simple:36,essay:28,shelf:20},A={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=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 X(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const l=y({num:e,title:t,description:n,link:!1});return p.set(i,l),l}const u={top:0,right:0,bottom:1,left:0};import{token as Y}from"../../../../../format/lib/document/seed-parts.js";const H=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),c=(e,t,n={})=>I(e,{...a("label",t),...n}),d=(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:{...L,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:m}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),x={...B,align:"right",alignPhone:"left",..._,icon:"arrow-right",iconPosition:"after"},T=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:x,style:{...P(e),color:"labels"}}),b=(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"?C(M()):{},...n.style}}}}},C=e=>e._partStyles.text??{},s={widthFitPhone:"fill"};function R(e){if(e.kind!=="group")return e;if(e.name==="Words"){const t=e.props;return{...e,props:typeof t=="function"?(n,i)=>({...t(n,i),...s}):{...t,...s}}}return{...e,parts:e.parts.map(R)}}function F(e,t){const n=A[e],i=n==="accent",r=c(t.num,14,{color:i?"accent":"labels"}),l=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=d(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,...s,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...s,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},l,...g?[b(t.num,"==01== / Collections",l)]:[]]},{kind:"group",name:"Heading",props:{...o,...s},parts:[S,...g?[b(t.title,`Three ranges,
|
|
2
|
+
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...s,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:{...x,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:[{...c(e.num,13),props:{...h,...O}}]},d(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:[c(e.num,13),d(e.title,t)]}}const E=[["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}]],z=e=>E.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function D(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:[c(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...E.map(([t,n])=>({...d(e.title,n),when:i=>z(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 Q(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,U={...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function V(e){const t=p.get(e);if(t)return t;const n=W(e),i=w(e),r=i==="editorial"?y(n):i==="simple"?N(n,U):i==="essay"?N(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?D(n):F(e,n);return p.set(e,r),r}export{G as HEAD_BELOW,U as SIMPLE_HEADING_LOOK,X as editorialHeadTree,H as fluidToken,w as headLookOf,Q as headReads,V as headTree,R as headWordsOnPhoneLine,Y as token};
|
|
@@ -28,6 +28,7 @@ export declare const headingCaseOf: (key: string) => (node: {
|
|
|
28
28
|
props: Props;
|
|
29
29
|
}) => readonly SiteWrite[];
|
|
30
30
|
export declare const smallText: (key: string, style?: Props) => PartRow;
|
|
31
|
+
export declare const filledChip: (key: string) => PartRow;
|
|
31
32
|
export declare const numberAndUnit: (number: unknown, unit: unknown) => string;
|
|
32
33
|
export declare const RIGHT_WORDS: Props;
|
|
33
34
|
export declare const leadText: (lead: string, rest: string, props: Props) => PartRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SECTION_WIDTH_KEYS as
|
|
1
|
+
import{SECTION_WIDTH_KEYS as L}from"../../../../../format/lib/content/section-width.js";import{phoneKey as v}from"efficient-easel/draw";import{BOX as w,INNER_BOX as I,LABEL_FACE as N,TEXT as k,boxPadding as M,fillSlot as T,token as y}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as F}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as x}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as K}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as X}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as G}from"../../../content/section-padding.js";import{ButtonBlockMeta as Y}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as V}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as _,hasWords as j}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as $}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as C}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as J}from"efficient-shell/format";import{convertLength as z,isLengthUnit as q}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as Q,surfaceTwoTone as Z}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as tt}from"../../../../../format/lib/content/view-hide-class.js";const B=t=>q(t)?t:"px",d=(t,o,e,n)=>o===e?t:z(t,o,e,n,{min:0,max:200,step:4});import{BOX as to,DIM as oo,INNER_BOX as eo,TEXT as no}from"../../../../../format/lib/document/seed-parts.js";const Nt={textFit:"line",textFitPhone:"wrap"},ot={...k,[K]:""},{label:kt,href:Ct,...et}=Y.defaultProps,At=et,Ht={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Rt={...w,sectionAccent:0},Dt={sectionAccent:-1},Wt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation",...tt,...Object.values(F).flatMap(t=>[t,v(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(L)],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",Lt={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},vt=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 nt(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=B(t.sectionPaddingUnit),g=B(t.sectionPaddingUnitTablet),f=B(t.sectionPaddingUnitPhone),O=(h,a,u,m)=>{const r=p(h);if(r!==void 0)return r+d(m,"px",f,"mobile");const U=a===void 0?{n:u,unit:l}:{n:a,unit:g};return d(U.n,U.unit,f,"mobile")+d(m,"px",f,"mobile")},S=(h,a,u,m,r)=>a!==void 0?{[h]:a+d(r??m,"px",g,"tablet")}:r===void 0?{}:{[h]:d(u,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 wt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>nt(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function P(t,o){const e=G(t,V[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Mt=t=>[["padTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>P(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>P(e,t).sectionPaddingBottom]],it={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},yt=t=>o=>j(o.props[t])?[it]:[],st=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:k,...o?{style:o}:{}}),Ft=t=>({kind:"group",name:"Chip",props:{...I,...T("main"),...M(6,14)},parts:[st(t,{color:"background",...y("label",12),weight:600,letterSpacing:.16})]}),A=t=>t.background!=="transparent",dt=(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},H={align:"right",alignPhone:"left"},rt=(t,o,e)=>{const n=i=>dt(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}},Kt=(t,o,e,n={})=>rt(t,o,{...ot,...H,...n,_partStyles:{text:{...N,color:"labels",...e,case:N.case,...H}}}),E=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:_(o)?.selected??0,R="var(--site-surface-2)",D=(t,o)=>_(o)?.themes[E(t.sectionAccent??0,o)],ct=(t,o)=>(e,n)=>{if(!o?.(e,n))return T(t);const i=D(e,n)?.[t];return i?{fillColor:i}:{}},Xt=(t,o)=>b(t,o)>=0,W=t=>t.startsWith("#")&&J(t)!==null,Gt=(t,o,e)=>{const n=t?.trim();if(n&&W(n))return{fillColor:n};const i=C(n);if(i)return T(i);const s=n===R?D(o,e):void 0;return s?{fillColor:Z(s)}:{}},Yt=t=>{const o=t?.trim();return!o||o==="transparent"||o===$||C(o)||o===R||W(o)?void 0:"it paints a colour that no Box Fill can hold"},b=(t,o)=>{const e=_(o)?.themes;return e&&A(t)?Q(e,E(t.sectionAccent,o)):-1},Vt=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},jt=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},$t=(t,o)=>A(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:E(t.props.sectionAccent,o)}]:[],Jt=t=>X(t.site?.siteGutter),at=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),zt=t=>({top:0,right:0,bottom:0,left:0,...t}),qt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...I,...at,...ct("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],x.kind,x.duration,x.delay],parts:n});export{Nt as AUTO_COLUMN,to as BOX,At as BUTTON,oo as DIM,Lt as DROP_COMMON,vt as DROP_SIDE_PADDING,Dt as FOLLOW_THE_BOX,it as HEADING_CASE_UPPER,eo as INNER_BOX,at as NO_PAD,ot as NUMBER_TEXT,H as RIGHT_WORDS,Wt as SAME_KEYS,Rt as SECTION_BOX,Ht as SH_LINK,no as TEXT,Vt as bandAccent,b as bandIndex,E as bandPage,jt as bandProps,$t as bandWrites,ct as fillFrom,Yt as fillNoBoxHolds,Ft as filledChip,yt as headingCaseOf,P as innerPad,Mt as innerPadKeys,Kt as leadLine,rt as leadText,zt as lineSides,dt as numberAndUnit,Xt as onBandPreset,Gt as ownFill,qt as pictureCell,D as sectionPage,Jt as siteGutterOf,st as smallText,nt as wrapperPad,wt as wrapperPadKeys};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as k,readHidable as E}from"efficient-easel/draw";import{isNodeList as le,newId as de}from"efficient-easel/data";import{say as u}from"../../../../../format/lib/editor-words.js";import{cardColumns as ce}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as pe,THEME_SECTION_BG as me}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as he}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as be}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as x}from"../../../../../format/lib/non-empty-string.js";import{parseSectionEyebrowLook as ue}from"../../../../../format/lib/sections/section-eyebrow-look.js";import{hasWords as ye,headInOwnBox as ge}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as fe}from"../../../../../format/lib/document/text-seeds.js";import{LABEL_ONLY_CARD_FIELDS as B,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as Ce,cardListCardSeed as Se,cardsGridLook as N,labelOnlyListCardSeed as F}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as Pe,CARD_LIST_TYPE as we,CARD_TEMPLATE_SLOT as _e,cardKeyOf as H,cardListProps as Oe,cardRow as W}from"../../../../../format/lib/content/card-template.js";import{bandAccent as Le,bandProps as ke,onBandPreset as Ee,bandWrites as xe,DIM as T,DROP_COMMON as y,DROP_SIDE_PADDING as g,INNER_BOX as r,SAME_KEYS as f,SECTION_BOX as C,fillFrom as m,filledChip as Te,fillNoBoxHolds as Re,ownFill as Ae,TEXT as c,smallText as De,wrapperPad as S,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{headTree as M,SIMPLE_HEADING_LOOK as Ie,token as p}from"./section-head-looks.js";import{boxPadding as Be,labelStyle as Ne}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as Fe}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const h=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),v=e=>t=>ce(I(t.columns)??I(e.columns)),He="inline is the head the row draws; an own-box node is skipped (`skip`)",We={kind:"text",key:"title",role:"heading",props:c,style:{textStyle:"heading-3",...Ie}},K={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},w=e=>{const t=pe(typeof e.background=="string"?e.background:void 0,Fe.Series);return t&&t!=="transparent"?t:void 0},_=e=>w(e)===me,Me={...r,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},G={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[k("share")]:"content"},ve=e=>{const t=w(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},R={...Ne(12),letterSpacing:.22,lineHeight:1.5},j=e=>ye(e.viewLabel)&&!E(e.viewLabel).hidden,s=e=>E(e).text?.trim?.()??"",O=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>x(t)!==void 0)),A=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Ke=A([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Ge=A([["label","Label"],["value","Value"],["body","Card body",!0]]),b=(e,t,o,n,i,{reads:se=["cards"],keep:ae=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:we,headless:!0,keep:ae,derive:{reads:se,props:L=>Oe(n(L),o)},slots:(L,ie)=>({[_e]:[i(L,ie)]})}]}),X=e=>Array.isArray(e.cards)?e.cards:[],Y={top:76,bottom:76,topPhone:76,bottomPhone:76},V=e=>(Array.isArray(e.items)?e.items:[]).map(t=>O({title:s(t?.label),href:typeof t?.href=="string"?t.href.trim():""})).filter(t=>t.title!==void 0).map((t,o)=>({key:H(W(t),o),...t})),je=e=>V(e).some(t=>x(t.href)!==void 0),U=[{key:B.label,label:"Feature label"},{key:B.href,label:"Link",kind:"link"}],q=e=>ue(e.eyebrowLook,"KeyFeatures")==="filled",Xe={name:"Key Features",boxProps:(e,t)=>({...C,direction:"column",gap:44,gapPhone:32,...m("surface")(e,t),...h(1,0,1,0),...S(e,Y)}),box:[...f,...P(Y)],parts:[{kind:"group",name:"Heading",props:{...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[k("share")]:"content"},parts:[{...Te("eyebrow"),when:q},{...De("eyebrow"),when:e=>!q(e)},We]},b("Cards",e=>({...r,...N(v(be.defaultProps)(e))}),U,V,e=>F(je(e)),{reads:["items"]})],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},z={top:72,bottom:72,topPhone:72,bottomPhone:72},J=(e,t)=>({...Ce,...m("background")(e,t)}),Q=e=>{const t=v(he.defaultProps)(e);return{...r,...N(t)}},Ye=A([["title","Card title"],["body","Card body",!0]]),Z=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:H(W(t),o),title:s(t?.title),body:s(t?.body)})),$=e=>{const t={},o={};for(const[n,i]of Object.entries(e.props??{}))n!=="id"&&(le(i)?o[n]=i.map($):t[n]=i);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},ee=(e,t)=>{const o=D(e)?F(Ve(e)):Se(),n=Array.isArray(e.template)?e.template.map($):[o],[i]=n;return n.length===1&&i.type===a?{...i,props:{...J(e,t),...i.props}}:{type:a,props:{...r,...J(e,t),name:"Card"},slots:{[l]:n}}},D=e=>e.cardStyle==="label-only",te=e=>Z(e).map((t,o)=>{const n=e.items[o]?.href;return O({key:t.key,title:t.title,href:typeof n=="string"?n.trim():""})}),Ve=e=>te(e).some(t=>x(t.href)!==void 0),oe=e=>Array.isArray(e.template)&&e.template.length===0,ne=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function ft(){const e=o=>({key:de("card"),title:u(o),body:u("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:u("Label"),title:u("Section *heading.*"),items:t}}const Ue={name:"Cards",ownBoxConverts:!0,boxProps:(e,t)=>({...C,direction:"column",gap:36,gapPhone:28,...m("surface")(e,t),...S(e,z)}),box:[...f,...P(z)],parts:[{...M("Cards"),when:e=>!ge(e)},{...b("Cards",Q,Ye,Z,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&!D(e)},{...b("Cards",Q,U,te,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&D(e)}],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},qe={name:"Recurring Columns",boxProps:(e,t)=>({...C,direction:"column",gap:60,gapPhone:60,...h(0,0,1,0),..._(e)?ke(e,t):{},...Ae(w(e),e,t),...S(e,K)}),box:[...f.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>_(t)?Le(e,t,o):e],...P(K)],skip:e=>Re(w(e)),site:(e,t)=>_(e.props)?xe(e,t):[],parts:[M("Series"),b("Cards",ve,Ke,e=>X(e).map(t=>O({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...Me,...m("background",(o,n)=>_(o)&&Ee(o,n))(e,t),name:"Card"},slots:{[l]:[{type:a,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:a,props:{...G,name:"Top"},slots:{[l]:[d("num",c,p("label",13),!0),d("since",c,p("label",13),!0)]}},d("title",{...c,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",T,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:a,props:{...G,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...h(1,0,0,0),...j(e)?{}:{[Pe]:["count","countLabel"]}},slots:{[l]:[{type:a,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[k("share")]:"content"},slots:{[l]:[d("count",c,R),d("countLabel",T,R)]}},...j(e)?[{type:a,props:{...r,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...c,text:E(e.viewLabel).text,_partStyles:{text:{...fe()._partStyles.text,...R}}}}]}}]:[]]}}]}}))],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:{...y,...g,headPlacement:He}},re={top:60,bottom:60,topPhone:40,bottomPhone:40},ze={...r,direction:"row",columns:3,gap:40,gapPhone:16},Je={...r,gap:8,gapPhone:8,...Be(24),...h(1,1,1,1)},Qe={name:"Document Detail Cards",boxProps:e=>({...C,direction:"column",gap:40,gapPhone:16,...h(0,0,1,0),...S(e,re)}),box:[...f,...P(re)],parts:[b("Cards",ze,Ge,e=>X(e).map(t=>O({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Je,...m("surface")(e,t),name:"Card"},slots:{[l]:[d("label",c,{...p("label",12),lineHeight:1.5},!0),{type:a,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[l]:[d("value",c,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",T,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...y,...g}},Ct={Cards:Ue,KeyFeatures:Xe,Series:qe,DocMetaCards:Qe};export{Ct as CARDS_SECTION_TO_BOX,ft as cardsPressStarter};
|
|
@@ -1 +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},
|
|
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},u=()=>({name:"Form",ownBoxConverts:!0,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},l=()=>({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:u(),SubmitBuild:l()};export{x as FORMS_SECTION_TO_BOX};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PartRow, SectionToBoxRow, SlotFill } from "../../../sections/section-to-box.js";
|
|
1
|
+
import type { OwnProps, PartRow, SectionToBoxRow, SlotFill } from "../../../sections/section-to-box.js";
|
|
2
2
|
type Props = Record<string, unknown>;
|
|
3
3
|
export declare const HEAD_ONLY_TYPES: readonly string[];
|
|
4
4
|
export declare const HOST_ROW_HEAD_TYPES: readonly string[];
|
|
@@ -16,6 +16,8 @@ export type HeadOnlyRowExtension = {
|
|
|
16
16
|
bottom: number;
|
|
17
17
|
bottomPhone: number;
|
|
18
18
|
};
|
|
19
|
+
boxProps?: OwnProps;
|
|
20
|
+
skip?: SectionToBoxRow["skip"];
|
|
19
21
|
};
|
|
20
22
|
export declare function headOnlyRow(type: string, ext?: HeadOnlyRowExtension): SectionToBoxRow;
|
|
21
23
|
export declare const FAQ_ROWS_BOX: Props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SPLITTABLE_SECTIONS as
|
|
1
|
+
import{SPLITTABLE_SECTIONS as h}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as f}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as O,SECTION_BOX as T,innerPad as u}from"./section-to-box-row-parts.js";import{HEAD_BELOW as b,headLookOf as B,headReads as A,headTree as g}from"./section-head-looks.js";import{finiteNumber as w}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as m}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as R}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as k,faqRunStyleKeys as C}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{BOX_SIDE_SPACE_PROP as H,BOX_SIDE_SPACE_SITE as L}from"../../../../../format/lib/content/box-side-space.js";import{INNER_BOX as N}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as I}from"../../../../../format/lib/content/section-surface.js";const D=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"],J=["Events","FitmentTable","ProductGrid","SpecTable"],n=(e,o)=>()=>({top:e,topPhone:o}),l=e=>o=>{const t=u(o,e).sectionPaddingTop;return{top:t,topPhone:t}},F={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:l("Footprint"),ProcessSteps:l("ProcessSteps"),ProductGrid:e=>({top:w(e.padTop)??120,topPhone:0})};function y(e,o={}){const t=h[e],s=F[e];if(!t||!s)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);const p=t.padKey,E=g(e),c=A(e),P=t.headRows.filter(r=>![t.num,t.title,t.description,"linkText","linkHref"].includes(r)),d={...Object.fromEntries(P.filter(r=>!(r in c)).map(r=>[r,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:f[e]??e,boxProps:(r,i)=>{const a=s(r),_=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},S=typeof o.boxProps=="function"?o.boxProps(r,i):o.boxProps??{};return{...T,direction:"column",gap:b[B(e)],sectionPaddingTop:a.top,sectionPaddingTopPhone:a.topPhone,..._,...S}},box:[...O,...p?[[p,"sectionPaddingTop",(r,i)=>s(i).top]]:[]],parts:[E,...(()=>{const r={...p?{[p]:0}:{},...o.coreProps},i={kind:"core",keep:"rest",...Object.keys(r).length?{props:r}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[i]}:i]})(),...o.partsAfter??[]],...Object.keys(c).length?{reads:c}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}const j={...N,direction:"accordion",rowStyle:"numbered"},X={Footprint:{slots:{[m]:[R()]},pressHeading:!0},FAQ:{slots:{[m]:[k()]},pressHeading:!0,coreBox:{name:"Questions",props:j},coreProps:{sectionAccent:I},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[H]:L},skip:e=>{const o=e._partStyles??{},t=C().filter(s=>o[s]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(s=>`"${s}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},U=Object.fromEntries(D.map(e=>[e,y(e,X[e])]));export{j as FAQ_ROWS_BOX,X as HEAD_ONLY_CARD_SEEDS,U as HEAD_ONLY_SECTION_TO_BOX,D as HEAD_ONLY_TYPES,J as HOST_ROW_HEAD_TYPES,y as headOnlyRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasWords as s}from"../../../sections/section-to-box.js";import{DIM as x,DROP_COMMON as m,DROP_SIDE_PADDING as h,INNER_BOX as r,SAME_KEYS as
|
|
1
|
+
import{hasWords as s}from"../../../sections/section-to-box.js";import{DIM as x,DROP_COMMON as m,DROP_SIDE_PADDING as h,INNER_BOX as r,SAME_KEYS as P,SECTION_BOX as f,TEXT as a,smallText as O,wrapperPad as i,wrapperPadKeys as _}from"./section-to-box-row-parts.js";import{finiteNumber as w}from"../../../../../format/lib/finite-number.js";import{markBoxProps as R,token as L}from"../../../../../format/lib/document/seed-parts.js";import{LOGOS_PH as A,logosScaffoldItems as B}from"../../../../../format/lib/document/blocks/general/Logos/meta.js";import{logosCardSeed as b}from"../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{PAYMENT_PH as N,paymentScaffoldAssurances as C,paymentScaffoldBadges as I}from"../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";import{BLOCK_SOURCE_OPTIONS_PROP as n,BLOCK_SOURCE_PROP as t}from"../../../../../format/lib/content/block-sources.js";import{CARD_TEMPLATE_SLOT as k}from"../../../../../format/lib/content/card-template.js";import{legacyBlockAlignOf as M}from"../../../../../format/lib/content/block-align.js";import{FOOTER_PAYMENT_SEED as H}from"../../../../../format/lib/content/footer.js";import{SECTION_ACCENT_INHERIT as D}from"../../../../../format/lib/content/section-surface.js";import{FOOTER_MARK_SIZES as F,FOOTER_TEXT_PX as v}from"../../../../../format/lib/document/box-footer.js";import{phoneKey as d,readHidable as K}from"efficient-easel/draw";const l={contained:!1},p=(o,e)=>({logos:[{kind:"list",key:o,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[e,"alt"]],when:(U,g)=>s(g?.src)||s(g?.[e])}]}]}),c=o=>{const e=w(o.bandPadding)??40;return{top:e,bottom:e,topPhone:e,bottomPhone:e}},X={...O("heading",{color:"labels",letterSpacing:.2}),props:{...a,align:"center"}},z={name:"Logos",boxProps:o=>({...f,direction:"column",gap:32,...i(o,c(o))}),box:[...P,..._(c),["bandPadding","sectionPaddingTop",(o,e)=>i(e,c(e)).sectionPaddingTop]],parts:[X,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:l,slots:p("items","alt")}],drop:{...m,...h,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"}},Y={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:R(4,"main",{sectionCorners:2})},E={top:24,bottom:24,topPhone:24,bottomPhone:24},G={name:"Payment Methods",boxProps:o=>({...f,direction:"column",...i(o,E)}),box:[...P,..._(E)],parts:[{kind:"group",name:"Methods",props:{...r,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...O("heading",{color:"labels"}),props:{...a,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,n],props:o=>s(o[t])?{[t]:o[t],...o[n]!==void 0?{[n]:o[n]}:{}}:{}},props:{...l,look:"cards",grayscale:!1},slots:o=>({...p("badges","label"),...s(o[t])?{[k]:[b()]}:{}})},{kind:"group",name:"Reassurance",props:{...r,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[d("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:o=>(Array.isArray(o.assurances)?o.assurances:[]).filter(e=>s(e?.text)),props:{...r,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[d("share")]:"content"},item:o=>K(o.text).hidden?{props:{_hidden:!0}}:{},parts:[Y,{kind:"text",key:"text",props:{...a,align:"center"},style:{...L("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...m,...h,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},j={left:"start",center:"center",right:"end"},S=o=>M(o.align)??"left",T=o=>o.size==="md"?"md":"sm",y=12,u={name:"Payment logos",boxProps:o=>({...r,direction:"row",wrap:!0,align:"center",justify:j[S(o)],gap:y,gapPhone:y,phoneRow:2,[d("share")]:"content"}),parts:[{kind:"text",key:"lead",props:x,styleFrom:o=>({size:v[T(o)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,n],props:o=>({logoHeight:F[T(o)].mark,align:S(o),...s(o[t])?{[t]:o[t],...o[n]!==void 0?{[n]:o[n]}:{}}:{}})},props:{...l,look:"marks",grayscale:!1,sectionAccent:D},slots:o=>({...p("methods","label"),...s(o[t])?{[k]:[b()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},io={Logos:z,PaymentBadges:G,FooterPayment:u,PaymentLogosBlock:u},lo=()=>({heading:A.heading,items:B()}),po=()=>({heading:N.heading,badges:I(),assurances:C()}),co=()=>({...H,methods:[]});export{io as LOGOS_SECTION_TO_BOX,co as footerPaymentPressStarter,lo as logosPressStarter,po as paymentPressStarter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DIM as
|
|
1
|
+
import{DIM as _,DROP_COMMON as s,DROP_SIDE_PADDING as a,FOLLOW_THE_BOX as c,INNER_BOX as r,SAME_KEYS as k,SECTION_BOX as u,TEXT as y,bandPage as P,filledChip as b,smallText as C,wrapperPad as f,wrapperPadKeys as E}from"./section-to-box-row-parts.js";import{token as p}from"../../../../../format/lib/document/seed-parts.js";import{phoneKey as x}from"efficient-easel/draw";import{convertTheme as S}from"../../../sections/section-to-box.js";import{surfacePresetIndex as w}from"../../../../../format/lib/theme.js";import{CHART_OWN_BOX_WORDS as A}from"../../../../../format/lib/document/blocks/general/Chart/meta.js";import{MOCKUP_OWN_BOX_WORDS as N}from"../../../../../format/lib/document/blocks/general/Mockup/meta.js";const i={top:76,bottom:76,topPhone:76,bottomPhone:76},m=()=>({kind:"group",name:"Words",props:{...r,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...r,direction:"row",phoneRow:2,[x("share")]:"content"},parts:[b("eyebrow")]},{kind:"text",key:"title",role:"heading",props:y,style:{textStyle:"heading-2",...p("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{..._,maxWidth:435},style:{textStyle:"body-1",...p("body",15),lineHeight:1.625}}]}),d=(e,o)=>{const t=S(o)?.themes,n=t?w(t,P(e,o)):-1;return n>=0?n:e},h=e=>(o,t)=>({...u,sectionAccent:d(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...f(o,i)}),O=[...k.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>d(e,t)],...E(i)],B=()=>({name:"Chart",boxProps:h([42]),box:O,parts:[m(),{kind:"group",name:"Chart",props:{...r,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:c},C("caption",{color:"muted",...p("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...A],drop:{...s,...a}}),l=e=>e.align==="left",g={kind:"group",name:"Card",keepEmpty:!0,props:r,parts:[{kind:"core",keep:"rest",props:c}]},D=()=>({name:"Mockup Card",boxProps:h("equal"),box:O,parts:[{...g,when:l},m(),{...g,when:e=>!l(e)}],pressKeepsEmpty:[...N],drop:{...s,...a}}),H={Chart:B(),Mockup:D()};export{H as PROOF_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as n}from"react/jsx-runtime";import{Render as c}from"efficient-easel/render";import{BelowFirstScreen as d,LATER_SLIDES_KEY as l,firstScreenLead as f,laterSlideIdsOf as m,useLeadDrawsFirst as p}from"../first-screen.js";import{publishedPageData as u}from"./published-passes.js";import{withSlotCounts as S}from"./slot-counts.js";function g({config:o,data:s,metadata:t}){const e=u(s,t),i=p(o,f(e.content)),r=m(e.content),a=r.length>0?{...t,[l]:r}:t;return n(d,{children:n(c,{config:i,metadata:S(a,e.content),data:e})})}export{g as default};
|
|
@@ -200,6 +200,8 @@ export type PublishedPartSheet = {
|
|
|
200
200
|
export declare function publishedPartStyles(needles: readonly PartNeedle[], styles: PartStyles, scope: string, styleKeyOf?: (partKey: string) => string, drawsStyle?: (partKey: string) => boolean, motionOf?: (styleKey: string) => PublishedPartMotion | null, motionKeys?: readonly string[]): PublishedPartSheet | null;
|
|
201
201
|
export declare function isPartKindKey(key: string): boolean;
|
|
202
202
|
export declare function partRuleForKind(sheet: PublishedPartSheet | null, kind: string): PublishedPartRule | null;
|
|
203
|
-
export declare function partStyleCss(sheet: PublishedPartSheet
|
|
203
|
+
export declare function partStyleCss(sheet: PublishedPartSheet, { inBox }?: {
|
|
204
|
+
inBox?: boolean;
|
|
205
|
+
}): string;
|
|
204
206
|
export declare function paragraphRules(scope: string, paragraph: string): string[];
|
|
205
207
|
export declare function partRuleForText(sheet: PublishedPartSheet | null, value: string): PublishedPartRule | null;
|