efficient-web-builder 65.0.0 → 66.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/dist/editor/components/AnchorField.js +1 -1
- package/dist/editor/components/CardShadowField.js +1 -1
- package/dist/editor/components/PagesPanel.js +1 -1
- package/dist/editor/components/SectionEditor.js +1 -1
- package/dist/editor/components/WebsitePreviewButton.js +1 -1
- package/dist/editor/components/storefront-editor.css +16 -24
- package/dist/editor/components/usePreviewHref.js +1 -1
- package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Divider/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.d.ts +0 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/SectionHeader/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/box-fields.d.ts +2 -1
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/card-row-fields.d.ts +3 -0
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +11 -10
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/field-groups.d.ts +0 -3
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/sections/section-dry-run.d.ts +1 -20
- package/dist/editor/lib/sections/section-dry-run.js +2 -2
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +3 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +1 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-link.d.ts +11 -0
- package/dist/format/lib/content/box-link.js +8 -8
- package/dist/format/lib/content/box-phone-place.d.ts +0 -2
- package/dist/format/lib/content/box-phone-place.js +1 -1
- package/dist/format/lib/content/box-side-space.js +1 -1
- package/dist/format/lib/content/card-image-shape.d.ts +5 -1
- package/dist/format/lib/content/card-image-shape.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +1 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/contact.d.ts +0 -1
- package/dist/format/lib/content/contact.js +2 -2
- package/dist/format/lib/content/css-length.d.ts +1 -0
- package/dist/format/lib/content/css-length.js +1 -0
- package/dist/format/lib/content/page-width.d.ts +17 -1
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/document/blocks/general/Banner/meta.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/Banner/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 -1
- package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/SectionHeader/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.js +2 -2
- package/dist/format/lib/document/media-drop.js +1 -1
- package/dist/format/lib/document/one-h1.d.ts +2 -0
- package/dist/format/lib/document/one-h1.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +1 -0
- package/dist/format/lib/document/renamed-props.d.ts +1 -0
- package/dist/format/lib/document/renamed-props.js +1 -1
- package/dist/format/lib/document/section-catalog.js +10 -2
- package/dist/format/lib/document/section-descriptions.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.js +4 -1
- package/dist/format/lib/links/page-link-rules.d.ts +0 -1
- package/dist/format/lib/links/page-link-rules.js +1 -1
- package/dist/format/lib/markup.d.ts +1 -0
- package/dist/format/lib/markup.js +2 -2
- package/dist/format/lib/sections/section-presets.js +1 -1
- package/dist/format/lib/sections/timeline-year-shape.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +1 -1
- package/dist/format/lib/source-rules/one-length-control.d.ts +18 -0
- package/dist/format/lib/source-rules/one-length-control.js +16 -0
- package/dist/format/lib/source-rules/support/label-extraction.js +3 -3
- package/dist/format/lib/theme.d.ts +0 -1
- package/dist/format/lib/theme.js +3 -3
- package/dist/format/lib/web-runtime.d.ts +2 -0
- package/dist/format/lib/web-runtime.js +1 -1
- package/dist/render/components/BlockFrame.d.ts +3 -3
- package/dist/render/components/BlockFrame.js +1 -1
- package/dist/render/components/Breadcrumb.js +1 -1
- package/dist/render/components/Btn.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +7 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/CategoryBar.js +1 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/DealerFinder.d.ts +4 -1
- package/dist/render/components/DealerFinder.js +1 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocTabs.js +1 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.d.ts +5 -3
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/Heading.d.ts +0 -1
- package/dist/render/components/Heading.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/LocationMap.js +1 -1
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.d.ts +1 -2
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/PostCard.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +2 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/SideListLayout.d.ts +4 -1
- package/dist/render/components/SideListLayout.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineRail.d.ts +11 -3
- package/dist/render/components/TimelineRail.js +1 -1
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/components/goldPhrases.js +3 -3
- package/dist/render/lib/content/block-size.d.ts +5 -1
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +1 -1
- package/dist/render/lib/content/box-stack-line.js +1 -1
- package/dist/render/lib/content/button-look.d.ts +2 -0
- package/dist/render/lib/content/button-look.js +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +5 -2
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/dealer-source.d.ts +6 -2
- package/dist/render/lib/dealer-source.js +1 -1
- package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/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.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.js +1 -0
- 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.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/card-press-titles.d.ts +10 -0
- package/dist/render/lib/document/card-press-titles.js +1 -0
- package/dist/render/lib/document/passes/section-height.js +1 -1
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/published-passes.js +1 -1
- package/dist/render/lib/document/slot-specs.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +0 -15
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/dist/render/lib/site-runtime.d.ts +4 -1
- package/dist/render/lib/site-runtime.js +1 -1
- package/package.json +5 -5
- package/dist/editor/components/TemplateFieldRow.d.ts +0 -11
- package/dist/editor/components/TemplateFieldRow.js +0 -1
- package/dist/editor/lib/document/panel-heading-scope.d.ts +0 -8
- package/dist/editor/lib/document/panel-heading-scope.js +0 -1
- package/dist/editor/lib/document/template-field.d.ts +0 -13
- package/dist/editor/lib/document/template-field.js +0 -1
- package/dist/format/lib/canvas-accent.d.ts +0 -1
- package/dist/format/lib/canvas-accent.js +0 -1
- package/dist/format/lib/source-rules/padding-units-declared.d.ts +0 -2
- package/dist/format/lib/source-rules/padding-units-declared.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{SiteLink as T}from"../lib/site-runtime.js";import j from"./EditorialSectionHead.js";import f from"./PartStyledText.js";import{withRMark as n}from"./RMark.js";import{renderGold as
|
|
1
|
+
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{HideTaker as S}from"./ViewHideRoot.js";import{SiteLink as T}from"../lib/site-runtime.js";import j from"./EditorialSectionHead.js";import f from"./PartStyledText.js";import{withRMark as n}from"./RMark.js";import{renderGold as u,renderHeadline as B}from"./goldPhrases.js";import{railPastShare as z,railYearInkClass as R,TrackRailDot as $,TrackRailLine as C,trackStopRailClass as E}from"./TimelineRail.js";const i={body:"text-[length:var(--size-body,13px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function L({eyebrow:v,title:s,intro:d,entries:g,cta:l,padTop:m,padBottom:p,background:h,editing:b,omitHead:c=!1}={}){const k=typeof m=="number"?m:120,w=typeof p=="number"?p:120,x=h??"var(--section-bg)",y=x!=="transparent",r=(g??[]).filter(e=>(e.date??"").trim()||(e.title??"").trim()||(e.blurb??"").trim());if(r.length===0&&!b)return null;const N=z(r);return t(S,{as:"section",className:"relative z-[2]",children:t("div",{className:"border-b border-line",style:{paddingTop:k,paddingBottom:w,...y?{backgroundColor:x}:{}},children:a("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",children:[c?null:t(j,{num:v,title:s?B(s):void 0,desc:d?u(d,!0):void 0,spaceBelow:"",className:"text-fg"}),a("div",{className:c?"relative mt-0 grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-0 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0":"relative mt-[60px] grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-view-desktop:mt-9 max-view-desktop:grid-cols-1 max-view-desktop:gap-0 max-view-desktop:border-t-0 max-view-desktop:pt-0",style:{"--cols":r.length},children:[t(C,{pct:N}),r.map((e,o)=>a("div",{className:["relative flex min-h-[280px] flex-col gap-3.5 px-3.5",E(!!e.future,o===0),"max-view-desktop:min-h-0 max-view-desktop:border-t-0 max-view-desktop:py-6 max-view-desktop:pl-7 max-view-desktop:ml-1.5"].join(" "),children:[t($,{future:!!e.future,first:o===0}),t("span",{className:[`font-mono ${i.label} tracking-[0.22em]`,R(!!e.future)].join(" "),children:e.date?t(f,{value:e.date,children:n(e.date)}):""}),e.title&&t("h3",{className:`whitespace-pre-line font-heading3 ${i.headingSmall} font-medium uppercase leading-[1.1] tracking-[-0.02em] text-fg`,children:t(f,{value:e.title,children:n(e.title)})}),e.blurb&&t("p",{className:`mt-auto font-display ${i.body} leading-[1.55] text-fg-dim`,children:u(e.blurb,!0)})]},o))]}),l?.text&&t("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:a(T,{newTab:"auto",href:l.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${i.label} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[n(l.text),t("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})})}export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{alignViewClasses as y}from"../../format/lib/content/block-align.js";import{SiteLink as j}from"../lib/site-runtime.js";import{renderHeadline as N}from"./goldPhrases.js";import{say as L}from"../../format/lib/editor-words.js";function
|
|
1
|
+
import{jsx as r,jsxs as m}from"react/jsx-runtime";import{HideTaker as k}from"./ViewHideRoot.js";import{alignViewClasses as y}from"../../format/lib/content/block-align.js";import{SiteLink as j}from"../lib/site-runtime.js";import{renderHeadline as N}from"./goldPhrases.js";import{say as L}from"../../format/lib/editor-words.js";function T({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:s,buttonsAlignTablet:d,buttonsAlignPhone:f,editing:p=!1}={}){const c=typeof o=="number"?o:140,g=typeof l=="number"?l:140,i=(x??[]).filter(t=>p||(t.label??"").trim()),e=!!(n??"").trim(),a=!e&&(s==="center"||s==="left")?s:null,h=e?"":y("items",a??"right",d,f,{atSectionLine:!0});return!p&&!e&&i.length===0?null:r(k,{as:"section",className:"relative z-[2] bg-bg",children:m("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-view-desktop:grid-cols-1 max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]",h].filter(Boolean).join(" "),style:{paddingTop:c,paddingBottom:g},children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-view-desktop:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:N(n??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-view-desktop:min-w-0",children:i.map((t,v)=>{const u=(t.label??"").trim()||L("Button label"),b=t.href||"#",w=t.variant==="primary";return m(j,{newTab:"auto",href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",w?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},v)})})]})})}export{T as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsxs as a,jsx as s}from"react/jsx-runtime";import{Fragment as
|
|
2
|
-
`);return a(f,{value:
|
|
3
|
-
`);return s(f,{value:
|
|
1
|
+
import{jsxs as a,jsx as s}from"react/jsx-runtime";import{Fragment as h}from"react";import{linePrefix as _,storefrontLines as S}from"../../format/lib/markup.js";import{WORD_STYLE_ATTR as g,WORD_STYLE_BY_KIND as E}from"../../format/lib/word-styles.js";import{partInkCss as T}from"../../format/lib/document/part-inks.js";import f from"./PartStyledText.js";import{withRMark as d}from"./RMark.js";import{isWebAddress as k}from"../../format/lib/content/box-link.js";import{SiteLink as A}from"../lib/site-runtime.js";function R(r,n=!1,t){const e=x(n),c=S(r);if(c.length===1){const[l]=c,o=_(l),L=o?M(o,l.children):l.children;return a(f,{value:r,children:[t,u(L,e)]})}const i=[];return c.forEach((l,o)=>{if(l.bullet){i.push(s("span",{"data-sf-bullet":"",className:w,children:u(l.children,e)},o));return}if(l.number!=null){i.push(a("span",{"data-sf-number":l.number,className:B,children:[a("span",{className:I,children:[l.number,"."]}),u(l.children,e)]},o));return}o>0&&!C(c[o-1])&&i.push(s("br",{},`br${o}`)),i.push(s(h,{children:u(l.children,e)},o))}),a(f,{value:r,children:[t,i]})}const w="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['·']",B="relative block pl-[2em]",I="absolute left-0 w-[1.6em] text-right tabular-nums";function C(r){return r.bullet||r.number!=null}const m="text-accent underline underline-offset-[0.18em]";function M(r,n){const[t,...e]=n;return t?.kind==="text"?[{kind:"text",text:`${r}${t.text}`},...e]:[{kind:"text",text:r},...n]}function W(r){return T(r)||void 0}function u(r,n){const t=[];let e=!1;return r.forEach((c,i)=>{if(c.kind==="text"){t.push(s("span",{children:d(c.text)},i)),e=!0;return}e||t.push(s("span",{},`e${i}`)),t.push(N(c,i,n)),e=!1}),e||t.push(s("span",{},"end")),t}function p(r,n){return r.length===1&&r[0].kind==="text"?d(r[0].text):r.map((t,e)=>t.kind==="text"?s(h,{children:d(t.text)},e):N(t,e,n))}function F(r,n=!1){return u(r,x(n))}function x(r){return r?"font-normal italic text-accent":"not-italic text-accent"}function G(r){return b(r)}function b(r,n){const t=r.split(`
|
|
2
|
+
`);return a(f,{value:r,children:[n,t.map((e,c)=>a(h,{children:[c>0?s("br",{}):null,s("span",{children:e})]},c))]})}function N(r,n,t){if(r.kind==="link")return k(r.href)?s(A,{newTab:"auto",href:r.href,className:m,children:p(r.children,t)},n):s("a",{href:r.href,className:m,children:p(r.children,t)},n);const e=p(r.children,t),c=E[r.kind];if(c)return s("span",{[g]:c,children:e},n);switch(r.kind){case"underline":return s("u",{children:e},n);case"sup":return s("sup",{children:e},n);case"sub":return s("sub",{children:e},n);case"color":{const i=W(r.color);return i?s("span",{style:{color:i},children:e},n):s("span",{children:e},n)}case"accent":case"highlight":return s("em",{className:t,children:e},n);case"bold":return s("strong",{className:"font-semibold",children:e},n);case"italic":return s("em",{className:"italic",children:e},n);case"strike":return s("s",{className:"line-through",children:e},n);default:return s("span",{children:e},n)}}function H(r,n=!0,t=!1){const e=r.split(`
|
|
3
|
+
`);return s(f,{value:r,children:e.map((c,i)=>a("span",{children:[t?b(c):R(c,n),i<e.length-1?s("br",{}):null]},i))})}function q(r){return r.split(/\n\s*\n/).map(n=>n.trim()).filter(Boolean)}export{G as renderChrome,R as renderGold,H as renderHeadline,F as renderMarkupNodes,b as renderPlain,q as splitParagraphs};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { type BlockSizeKey } from "efficient-easel/draw";
|
|
2
2
|
import { TEXT_FIT_ATTR } from "../../../format/lib/fit-words.js";
|
|
3
3
|
export declare const BLOCK_SIZE_CLASS = "sf-block-size";
|
|
4
|
+
export declare const BLOCK_LENGTH_KEYS: readonly ["width", "minWidth", "maxWidth"];
|
|
5
|
+
export declare const blockLengthUnitKey: (key: string) => string;
|
|
4
6
|
export { TEXT_FIT_ATTR };
|
|
5
7
|
export type BlockSizeTwin = {
|
|
6
8
|
desktop?: unknown;
|
|
7
9
|
tablet?: unknown;
|
|
8
10
|
phone?: unknown;
|
|
9
11
|
};
|
|
10
|
-
export type BlockSizeValues = Partial<Record<BlockSizeKey, BlockSizeTwin
|
|
12
|
+
export type BlockSizeValues = Partial<Record<BlockSizeKey, BlockSizeTwin>> & {
|
|
13
|
+
units?: Partial<Record<BlockSizeKey, BlockSizeTwin>>;
|
|
14
|
+
};
|
|
11
15
|
export type BlockSize = {
|
|
12
16
|
className: string;
|
|
13
17
|
style: Record<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BLOCK_FIXED_WIDTH as
|
|
1
|
+
import{BLOCK_FIXED_WIDTH as Y,BLOCK_SIZE_KEYS as U,parseBlockWidthFit as c,phoneKey as A,parseTextFit as I,tabletKey as N}from"efficient-easel/draw";import{sideLengthAt as V,unitKeyAt as O}from"efficient-easel/screen/lib/content/length-units";import{TEXT_FIT_ATTR as m}from"../../../format/lib/fit-words.js";import{cssLengthOf as K}from"../../../format/lib/content/css-length.js";const X="sf-block-size",B=["width","minWidth","maxWidth"],D=e=>`${e}Unit`,x=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,g={desktop:"desktop",tablet:"tablet",phone:"mobile"},Z={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"}},P={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"}},$={desktop:P.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"}},G={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},q={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},J={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)]"]}},L={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)]"]}},Q={minWidth:{desktop:L.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:L.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)]"]}},ee=["widthFit",...B],H={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},y={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!"},te={desktop:y.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 we(e){const n=z(e);return n.sides.filter(o=>n.mode[o]==="fill").map(o=>G[n.three?"three":"two"][o]).filter(Boolean).join(" ")}function z(e){const n=ee.some(t=>{const s=e[t]?.tablet;return t==="widthFit"?c(s)!==void 0:x(s)!==void 0}),o=n?["desktop","tablet","phone"]:["desktop","phone"],a=(t,s)=>{const i=t(s?.desktop),p=n?t(s?.tablet)??i:i;return{desktop:i,tablet:p,phone:t(s?.phone)??p}};return{three:n,sides:o,perSide:a,lengthPerSide:t=>{const s=D(t),i={};for(const f of o)i[O(t,g[f])]=x(e[t]?.[f]),i[O(s,g[f])]=e.units?.[t]?.[f];const p=f=>V(i,{length:t},s,g[f],"length")??void 0;return{desktop:p("desktop"),tablet:p("tablet"),phone:p("phone")}},mode:a(c,e.widthFit)}}function de(e,{atSectionLine:n=!1}={}){const o=n?$:P,a=n?Q:L,l=n?te:y,t=[],s={},i={},{three:p,sides:f,lengthPerSide:C,mode:M}=z(e),W=C("width");for(const w of f){const d=M[w];!d||d==="fit"||(t.push(p?o[w][d]:Z[w][d]),d==="fixed"&&(s[q[w]]=K(W[w]?.value??Y.fallback,W[w]?.unit)))}for(const w of B.filter(d=>d!=="width")){const d=C(w);for(const h of f){const T=d[h];if(T===void 0)continue;const[j,R]=p?a[w][h]:J[w][h];s[j]=K(T.value,T.unit),t.push(R)}}const r=I(e.textFit?.desktop),v=I(e.textFit?.phone),k=w=>{const d=x(e.minFont?.[w]);return d===void 0?void 0:e.units?.minFont?.[w]==="vw"?`${d}vw`:String(d)},u=k("desktop"),_=k("phone"),E=I(e.textFit?.tablet),b=E!==r||v!==void 0?E:void 0,F=k("tablet"),S=F!==u||_!==void 0?F:void 0;return b?(r==="line"&&t.push(l.desktop),b==="line"&&t.push(l.tablet),(v??b)==="line"&&t.push(l.phone)):(r==="line"&&t.push(H.desktop),(v??r)==="line"&&t.push(H.phone)),r&&(i[m.fit]=r),b&&(i[m.fitTablet]=b),v&&(i[m.fitPhone]=v),u!==void 0&&(i[m.min]=u),S!==void 0&&(i[m.minTablet]=S),_!==void 0&&(i[m.minPhone]=_),!n&&(b||S!==void 0)&&(i[m.edge]=""),t.length===0&&Object.keys(i).length===0?null:{className:[X,...t].join(" "),style:s,attrs:i}}function ae(e){if(x(e.maxWidth?.desktop)!==void 0)return!0;const n=c(e.widthFit?.desktop);return n==="fill"||n==="fixed"}function pe(e){return["desktop","tablet","phone"].some(o=>{const a=c(e.widthFit?.[o]);return a==="fixed"||a==="fill"||x(e.minWidth?.[o])!==void 0})}function fe(e){const n={};for(const o of U){const a=e[o],l=e[N(o)],t=e[A(o)];(a!==void 0||l!==void 0||t!==void 0)&&(n[o]={desktop:a,tablet:l,phone:t});const s=D(o),i={desktop:e[s],tablet:e[N(s)],phone:e[A(s)]};(i.desktop!==void 0||i.tablet!==void 0||i.phone!==void 0)&&((n.units??={})[o]=i)}return n}export{B as BLOCK_LENGTH_KEYS,X as BLOCK_SIZE_CLASS,m as TEXT_FIT_ATTR,pe as blockCanWidenPastCell,we as blockFillInCellClass,D as blockLengthUnitKey,ae as blockSetsItsWidth,de as blockSizeOf,fe as blockSizeValuesOf};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const BOX_STACK_LINE: number;
|
|
2
|
+
export declare const BOX_DESKTOP_LINE: number;
|
|
2
3
|
export declare const BOX_GUTTER_LINE = 960;
|
|
3
4
|
export declare const BOX_PHONE_PAD_AT_EDGE: number;
|
|
4
|
-
export declare const BOX_PHONE_PAD_LINE: number;
|
|
5
5
|
export declare const BOX_STACK_RANGE: {
|
|
6
6
|
readonly min: number;
|
|
7
7
|
readonly max: 1600;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{VIEW_DESKTOP_MIN as
|
|
1
|
+
import{VIEW_DESKTOP_MIN as e}from"efficient-easel/draw";import{PHONE_EDGE as f}from"../../../format/lib/content/view-lines.js";import{SITE_GUTTER_CAP as u,SITE_GUTTER_NARROW as _}from"../../../format/lib/content/page-width.js";const p=f,b=e,d=960,$=f,m={min:p,max:1600,step:10},N="stackBelow";function g(t){if(!(typeof t!="number"||!Number.isFinite(t))&&!(t<m.min||t>m.max))return Math.round(t)}function S(t){return g(t)??p}const E=t=>`sf-stack-${t}`,w=t=>`sf-stack-${t}-gutter`,T=t=>`sf-stack-${t}-outer`,n=t=>`${t-.02}px`;function A(t,x={}){const i=x.gutter!==!1,a=`.${E(t)}`,r=`.${w(t)}`,c=`.${T(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,e);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>e&&o.push(`@media (min-width:${e}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)}){${r}${r}{padding-inline:${_.frame}}}`),i&&t<d&&o.push(`@media (min-width:${t}px) and (max-width:${n(d)}){${r}${r}{padding-inline:${u}}}`),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{b as BOX_DESKTOP_LINE,d as BOX_GUTTER_LINE,$ as BOX_PHONE_PAD_AT_EDGE,p as BOX_STACK_LINE,m as BOX_STACK_RANGE,N as STACK_BELOW_PROP,S as boxStackLine,w as stackGutterClass,A as stackLineCss,T as stackOuterClass,E as stackRowClass,g as storedStackLine};
|
|
@@ -14,6 +14,7 @@ export type ButtonLookProps = {
|
|
|
14
14
|
buttonColor?: unknown;
|
|
15
15
|
buttonFillOpacity?: unknown;
|
|
16
16
|
buttonBorder?: unknown;
|
|
17
|
+
buttonBorderUnit?: unknown;
|
|
17
18
|
};
|
|
18
19
|
export declare function buttonLook(p: ButtonLookProps): {
|
|
19
20
|
fillOpacity: number;
|
|
@@ -27,6 +28,7 @@ export declare function buttonPaint(p: ButtonLookProps): CSSProperties | null;
|
|
|
27
28
|
export declare function buttonCornersStyle(p: {
|
|
28
29
|
buttonCorners?: unknown;
|
|
29
30
|
buttonCornerSides?: unknown;
|
|
31
|
+
buttonCornersUnit?: unknown;
|
|
30
32
|
}): CSSProperties | null;
|
|
31
33
|
export declare function buttonPadAttrs(p: Record<string, unknown>): {
|
|
32
34
|
className: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BUTTON_PAD_KEYS as s,buttonBorderOf as T,buttonFillOpacityOf as
|
|
1
|
+
import{BUTTON_PAD_KEYS as s,buttonBorderOf as T,buttonFillOpacityOf as h,buttonPadSidesOf as _}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as l,isLengthUnit as O,lengthOf as y}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as x}from"../../../format/lib/finite-number.js";import{nonEmptyString as d}from"../../../format/lib/non-empty-string.js";import{padSideAttrs as N}from"./section-padding.js";import{cornerSidesShorthand as g,normalizeCornerSides as $}from"../../../format/lib/content/section-corners.js";import{cssLengthOf as U}from"../../../format/lib/content/css-length.js";const B="px-6 py-4",C=4,c=t=>{const o=new RegExp(`\\bp${t}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(B);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${t}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*C},W={top:c("y"),right:c("x"),bottom:c("y"),left:c("x")},b="var(--btn)";function I(t){const o=t.variant==="ghost",n=h(t.buttonFillOpacity),r=T(t.buttonBorder),e=d(t.buttonColor);return{fillOpacity:n??(o?0:100),border:{width:r?.width??1,color:r?.color??e??(o?"currentColor":b)},changed:n!==void 0||r!==void 0}}function j(t){const o=I(t);if(!o.changed)return null;const n=d(t.buttonColor)??b;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?n:`color-mix(in srgb, ${n} ${o.fillOpacity}%, transparent)`,borderWidth:y(o.border.width,O(t.buttonBorderUnit)?t.buttonBorderUnit:"px"),borderStyle:"solid",borderColor:o.border.color}}const P="var(--sf-button-radius, 0)";function v(t){const o=x(t.buttonCorners),n=$(t.buttonCornerSides);if(o===void 0&&n===null)return null;const r=o===void 0?P:U(Math.max(0,o),t.buttonCornersUnit);return{borderRadius:n===null?r:g(r,n)}}function F(t){const o=i=>_({top:t[`${s.top}${i}`],right:t[`${s.right}${i}`],bottom:t[`${s.bottom}${i}`],left:t[`${s.left}${i}`]})??{},n={desktop:t[l],tablet:t[`${l}Tablet`],phone:t[`${l}Phone`]},{classes:r,style:e}=N(o(""),o("Phone"),o("Tablet"),void 0,n);return Object.keys(e).length?{className:r.join(" "),style:e}:null}const f="upper";function K(t,o,n){const r=t&&typeof t=="object"?t:{},e=d(r.textStyle),i=e?d(o?.find(S=>S?.id===e)?.name):void 0,u=e?/^(heading|body)-(\d+)$/.exec(e):null,m=e?i||(u?n.styleName({kind:u[1],n:Number(u[2])}):e):n.noStyle,{cases:a}=n,p=d(r.case)??f;return`${m} · ${a[p]??a[f]}`}export{W as BUTTON_PAD_BUILT_IN,B as BUTTON_PAD_CLASSES,s as BUTTON_PAD_KEYS,f as BUTTON_WORDS_BUILT_IN_CASE,b as SITE_BUTTON_FILL,v as buttonCornersStyle,I as buttonLook,F as buttonPadAttrs,j as buttonPaint,K as buttonWordsSummary};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{FULL_SECTION_WIDTH as v,SITE_WIDTH_CAP as b,siteSideRoom as u}from"../../../format/lib/content/page-width.js";import{padSideAttrs as $}from"./section-padding.js";const y=" [--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))))]",h="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",E="[--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)))]",i="max-w-[100vw]",N=`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))] ${i}`;function _(s){const r={},e=s.pad??{},g=$({left:e.left,right:e.right},{left:e.leftPhone,right:e.rightPhone},{left:e.leftTablet,right:e.rightTablet},{left:e.left,right:e.right},{desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},0,s.site?"site":"box"),d=g.style;for(const[f,x]of[["l","paddingLeft"],["r","paddingRight"]]){const n=d[x];n!==void 0&&(r[`--sf-edge-${f}d`]=typeof n=="number"?`${n}px`:String(n));const c=d[`--sf-pad-${f}-tablet`],o=d[`--sf-pad-${f}-phone`];c!==void 0&&(r[`--sf-edge-${f}t`]=String(c)),o!==void 0&&(r[`--sf-edge-${f}p`]=String(o))}const a=u(s.site?"site":"box"),t=g.classes.includes(a.className.split(" ")[0]);return{className:`${s.gutter?`${a.className} ${a.edge}${y}`:`${h}${t?` ${a.className}`:""}`} ${E}`,style:r}}function D(s){const{className:r,style:e}=_(s);return{className:`${r} ${N}`,...Object.keys(e).length?{style:e}:{}}}const p="[--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 S(s){const r=_(s).style,e=a=>{const t=r[`--sf-edge-${a}d`]??"0px",l=r[`--sf-edge-${a}t`]??t;return[t,l,r[`--sf-edge-${a}p`]??l]},[g,d]=[e("l"),e("r")];return g.every((a,t)=>a===d[t])}const m="--sf-edge-beyond";function R(s){return`max(0px,calc((${s===null?v:`min(${v},${s})`} - ${b}) / 2))`}function B(s){const r=s.beyond;return r===void 0||r==="0px"?null:{className:S(s)?"mx-[calc(-1_*_var(--sf-edge-beyond))] px-[var(--sf-edge-beyond)]":`${p} 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:{[m]:r}}}const w=`${p} 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))] ${i}`;function I(s){const{className:r,style:e}=_(s);return{className:`${r} ${w}`,style:{...e,[m]:s.beyond??"0px"}}}export{m as EDGE_BEYOND_VAR,R as groundBeyond,D as sectionEdgeAttrs,I as sectionEdgeBandAttrs,B as sectionEdgeBeyondAttrs};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties } from "react";
|
|
2
|
+
import { type SiteSide } from "efficient-easel/screen/lib/content/length-units";
|
|
2
3
|
export declare const SECTION_PADDING: {
|
|
3
4
|
readonly min: 10;
|
|
4
5
|
readonly max: 200;
|
|
@@ -25,6 +26,7 @@ export declare function sectionPadAttrs(v: PadValues): {
|
|
|
25
26
|
className: string;
|
|
26
27
|
style: CSSProperties;
|
|
27
28
|
} | null;
|
|
29
|
+
export declare const padSideValue: (v: unknown) => number | SiteSide | undefined;
|
|
28
30
|
export type PadSides = {
|
|
29
31
|
top?: unknown;
|
|
30
32
|
right?: unknown;
|
|
@@ -37,11 +39,11 @@ export type PadUnits = {
|
|
|
37
39
|
tablet?: unknown;
|
|
38
40
|
phone?: unknown;
|
|
39
41
|
};
|
|
40
|
-
export declare function sideViewLengths(desktop: number | undefined, tablet: number | undefined, phone: number | undefined, units?: PadUnits, frame?: number): {
|
|
42
|
+
export declare function sideViewLengths(desktop: number | SiteSide | undefined, tablet: number | SiteSide | undefined, phone: number | SiteSide | undefined, units?: PadUnits, frame?: number): {
|
|
41
43
|
tablet?: string;
|
|
42
44
|
phone?: string;
|
|
43
45
|
};
|
|
44
|
-
export declare function padSideAttrs(inline: PadSides, phone: PadSides, tablet?: PadSides, desktop?: PadSides, units?: PadUnits, frame?: number): {
|
|
46
|
+
export declare function padSideAttrs(inline: PadSides, phone: PadSides, tablet?: PadSides, desktop?: PadSides, units?: PadUnits, frame?: number, sideSpace?: "box" | "site"): {
|
|
45
47
|
classes: string[];
|
|
46
48
|
style: CSSProperties;
|
|
47
49
|
};
|
|
@@ -76,6 +78,7 @@ export type PadValues = {
|
|
|
76
78
|
unitTablet?: unknown;
|
|
77
79
|
unitPhone?: unknown;
|
|
78
80
|
frame?: number;
|
|
81
|
+
sideSpace?: "box" | "site";
|
|
79
82
|
};
|
|
80
83
|
export declare const SECTION_PAD_KEYS: {
|
|
81
84
|
readonly top: "sectionPaddingTop";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as m,resolveViewValue as H,tabletKey as h}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as w,SITE_SIDE as F,convertLength as G,isLengthUnit as E,isSiteSide as L,sideLengthAt as M,sideValueAt as $,withLength as S}from"efficient-easel/screen/lib/content/length-units";import{siteSideRoom as O}from"../../../format/lib/content/page-width.js";import{viewRules as y}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as c}from"../../../format/lib/finite-number.js";const j={min:10,max:200,step:10};function U(t,o,n,e=0){const s=c(t),i=c(o);if(s===void 0&&i===void 0)return;const b=x(n),a=r=>r===void 0?void 0:b==="px"?r:S(r,b,e);return{paddingTop:a(s),paddingBottom:a(i)}}const x=t=>E(t)?t:"px",Y="sf-pad-top-phone",k="sf-pad-bottom-phone",q="--sf-pad-t-phone",z="--sf-pad-b-phone",J="sf-pad-left-phone",Q="sf-pad-right-phone",W="--sf-pad-l-phone",X="--sf-pad-r-phone",Z="sf-pad-top-tablet",K="sf-pad-bottom-tablet",v="sf-pad-left-tablet",tt="sf-pad-right-tablet",et="--sf-pad-t-tablet",ot="--sf-pad-b-tablet",nt="--sf-pad-l-tablet",st="--sf-pad-r-tablet";function D(t){const o={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},n=U(t.top,t.bottom,t.unit,t.frame),e=pt({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right},o,t.frame,t.sideSpace);return n===void 0&&!e.classes.length&&!Object.keys(e.style).length?null:{className:["sf-section-pad",...e.classes].join(" "),style:{...n,...e.style}}}const it=t=>L(t)?t:c(t),dt=[["top","paddingTop",[Z,et],[Y,q]],["bottom","paddingBottom",[K,ot],[k,z]],["left","paddingLeft",[v,nt],[J,W]],["right","paddingRight",[tt,st],[Q,X]]];function bt(t,o,n){return!E(o)||o==="px"?t:G(t,"px",o,n,{min:0,max:j.max,step:1})}function rt(t,o,n,e={},s=0){const i=(l,f)=>{if(f==="px")return`${l}px`;const p=S(l,f,s);return typeof p=="number"?`${p}px`:p},b={n:t,[h("n")]:o,[m("n")]:n,u:e.desktop,[h("u")]:e.tablet,[m("u")]:e.phone},a=H("spacing",c(t),c(o),c(n),y()),r=(l,f,p)=>{if($(b,{side:"n"},l,"side",["side"])?.value===F)return O().value;const u=M(b,{side:"n"},"u",l,"side");if(!u)return;const A=f!==null&&!p&&u.unit==="px"&&typeof a[f]=="number";return i(A?a[f]:u.value,u.unit)},_=r("desktop",null,!0),T={},P=r("tablet","tablet",o!==void 0);P!==void 0&&(o!==void 0||P!==_)&&(T.tablet=P);const d=r("mobile","phone",n!==void 0);return d!==void 0&&(n!==void 0||d!==_)&&(T.phone=d),T}function pt(t,o,n={},e=t,s={},i=0,b="box"){const a={},r={},_=[],T=O(b);let P=!1;for(const[d,l,...f]of dt){const p=d==="left"||d==="right"?it:c,u=p(t[d]),A=d==="top"||d==="bottom"?i:0;L(u)?(a[l]=T.value,P=!0):u!==void 0&&(a[l]=x(s.desktop)==="px"?u:S(u,x(s.desktop),A));const R=rt(p(e[d]),p(n[d]),p(o[d]),s,A);for(const[V,[C,I]]of[["tablet",f[0]],["phone",f[1]]]){const g=R[V];g!==void 0&&(_.push(C),r[I]=g,g===T.value&&(P=!0))}}return P&&_.push(...T.className.split(" ")),{classes:_,style:{...a,...r}}}function B(t,o,n){const e=c(t)??n,s=c(o);return e===void 0?s:s===void 0?e:e+s}function Tt(t,o={}){return{top:B(t.padTop,t.sectionPaddingTop,o.top),bottom:B(t.padBottom,t.sectionPaddingBottom,o.bottom)}}const N={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function Pt(t,o=N,n=!0,e=o===N?w:void 0){const s={};e&&(t[e]!==void 0&&(s.unit=t[e]),t[h(e)]!==void 0&&(s.unitTablet=t[h(e)]),t[m(e)]!==void 0&&(s.unitPhone=t[m(e)]));for(const i of n?["top","bottom","left","right"]:["top","bottom"])s[i]=t[o[i]],s[`${i}Tablet`]=t[h(o[i])],s[`${i}Phone`]=t[m(o[i])];return s}function _t(t){return D(t)}function mt(t,o){const n=(e,s)=>typeof e!="number"?void 0:x(s)==="px"?e+o:e;return D({...t,frame:o,top:n(t.top,t.unit),bottom:n(t.bottom,t.unit),topTablet:n(t.topTablet,t.unitTablet),bottomTablet:n(t.bottomTablet,t.unitTablet),topPhone:n(t.topPhone,t.unitPhone),bottomPhone:n(t.bottomPhone,t.unitPhone)})}export{k as PAD_BOTTOM_PHONE_CLASS,z as PAD_BOTTOM_PHONE_VAR,K as PAD_BOTTOM_TABLET_CLASS,ot as PAD_BOTTOM_TABLET_VAR,J as PAD_LEFT_PHONE_CLASS,W as PAD_LEFT_PHONE_VAR,v as PAD_LEFT_TABLET_CLASS,nt as PAD_LEFT_TABLET_VAR,Q as PAD_RIGHT_PHONE_CLASS,X as PAD_RIGHT_PHONE_VAR,tt as PAD_RIGHT_TABLET_CLASS,st as PAD_RIGHT_TABLET_VAR,Y as PAD_TOP_PHONE_CLASS,q as PAD_TOP_PHONE_VAR,Z as PAD_TOP_TABLET_CLASS,et as PAD_TOP_TABLET_VAR,j as SECTION_PADDING,N as SECTION_PAD_KEYS,bt as padDefaultIn,pt as padSideAttrs,it as padSideValue,Pt as padValuesOf,Tt as resolveSectionPadding,mt as rootPadAttrs,D as sectionPadAttrs,U as sectionPadStyle,rt as sideViewLengths,_t as wrapperPadAttrs};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { MapPin } from "efficient-shell/map";
|
|
2
2
|
import { type ListPosition } from "../../format/lib/content/list-position.js";
|
|
3
|
-
|
|
3
|
+
import { type BlockSourceSpec } from "../../format/lib/content/block-sources.js";
|
|
4
|
+
import type { CardRowFieldSpec } from "../../format/lib/content/card-template.js";
|
|
4
5
|
export type DealerListPosition = ListPosition;
|
|
5
6
|
export type DealerPlacement = "located" | "approximate" | "pending" | "not_found" | "failed" | "no_address";
|
|
6
7
|
export interface SiteDealer {
|
|
@@ -29,7 +30,10 @@ export type DealerSource = (query: {
|
|
|
29
30
|
}) => Promise<DealerList>;
|
|
30
31
|
export declare const DealerSourceProvider: import("react").Provider<DealerSource | null>;
|
|
31
32
|
export declare const useDealerSource: () => DealerSource | null;
|
|
32
|
-
export declare function parseFootprintSource(value: unknown): FootprintSource;
|
|
33
33
|
export declare const parseDealerListPosition: (value: unknown) => DealerListPosition;
|
|
34
34
|
export declare function dealerPins(dealers: SiteDealer[]): MapPin[];
|
|
35
35
|
export declare function dealerDistanceLabel(km: number | null): string;
|
|
36
|
+
export declare function dealerCardRow(dealer: SiteDealer, showDistance: boolean): Record<string, string>;
|
|
37
|
+
export declare const DEALER_FIELDS: readonly CardRowFieldSpec[];
|
|
38
|
+
export declare const DEALERS_BLOCK_SOURCE: BlockSourceSpec;
|
|
39
|
+
export declare function dealerPressLabel(dealer: SiteDealer): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{createContext as
|
|
1
|
+
"use client";import{createContext as i,useContext as l}from"react";import{parseListPosition as r}from"../../format/lib/content/list-position.js";import{DEALERS_SOURCE as s}from"../../format/lib/content/block-sources.js";const o=i(null),f=o.Provider,m=()=>l(o),d=r;function x(e){const n=[];for(const t of e)t.placement!=="located"&&t.placement!=="approximate"||t.lat===null||t.lng===null||n.push({key:t.id,label:t.name,lat:t.lat,lng:t.lng,glyph:"",tone:"",approximate:t.placement==="approximate"});return n}function a(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}function k(e,n){const t=[e.city,[e.state,e.postcode].filter(Boolean).join(" ")].filter(Boolean).join(" ");return{name:e.name,address:e.address,place:t,distance:n?a(e.distanceKm):"",phone:e.phone,phoneHref:e.phone?`tel:${e.phone.replace(/[^\d+]/g,"")}`:"",website:e.website.replace(/^https?:\/\//,"").replace(/\/$/,""),websiteHref:e.website&&!/^[a-z][a-z\d+.-]*:/i.test(e.website)?`https://${e.website}`:e.website}}const p=[{key:"name",label:"Dealer name",plain:!0},{key:"address",label:"Address"},{key:"place",label:"City · state · postcode",plain:!0},{key:"distance",label:"Distance",plain:!0},{key:"phone",label:"Phone"},{key:"phoneHref",label:"Phone link",kind:"link"},{key:"website",label:"Website",plain:!0},{key:"websiteHref",label:"Website link",kind:"link"}],h={key:s,label:"Dealers",blocks:["Footprint"],fields:p};function y(e){return[e.name,e.city].filter(Boolean).join(", ")}export{h as DEALERS_BLOCK_SOURCE,p as DEALER_FIELDS,f as DealerSourceProvider,k as dealerCardRow,a as dealerDistanceLabel,x as dealerPins,y as dealerPressLabel,d as parseDealerListPosition,m as useDealerSource};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as s}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import x from"../../../../../components/Banner.js";import{phHide as r,ctaHide as y}from"../../scaffold.js";import{BannerMeta as d,BANNER_PH as t}from"../../../../../../format/lib/document/blocks/general/Banner/meta.js";const l={...d,render:({eyebrow:a,title:m,body:c,imageSrc:f,ctaText:i,ctaHref:p,contained:b,overlay:n,editor:e})=>{const o=y(i,p,e);return s(x,{eyebrow:r(a,t.eyebrow,e),title:r(m,t.title,e),body:r(c,t.body,e),imageSrc:f,overlay:typeof n=="number"?n:60,ctaText:o.text,ctaHref:o.href,contained:b})}};export{l as BannerRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as u}from"react/jsx-runtime";import{HideTaker as h}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as S,useCardRow as A}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as k}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as C,highlightOf as L,keyedRows as _,markedRows as g,rowHoldsContent as E}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as O,CARD_LIST_TYPE as y,CARD_TEMPLATE_SLOT as j,cardListFieldsOf as I,cardListShows as b,cardRow as w,rowFieldSpec as M}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as B,sourceChoices as D,sourcedRows as P}from"../../../../../../format/lib/content/block-sources.js";import{cardPressTitlesOf as x}from"../../../card-press-titles.js";import{CardListMeta as v}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function R(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const T=[{}];function F(t,s){const c=B(t);let n,f=[];if(c){const e=P(t,s);n=[...e.rows],e.sample&&(f=D(c))}else{const e=t[O];n=Array.isArray(e)?e:[]}const a=_(n.map(w),f),o=n.map((e,i)=>({item:e,row:a[i]})).filter(({item:e})=>s||E(e)),d=g(o.map(e=>e.row),L(t));return{items:o.map(e=>e.item),rows:d.rows,states:o.map(({item:e},i)=>{const l={...R(e),...d.states[i]};return Object.keys(l).length?l:void 0})}}function H({id:t,own:s,Template:c,editing:n,dragRef:f}){const a=A();let o,d,e,i;if(a){const r=b(s,a.ownerType,a.slot);i=M(a,r)?.fields;const m=r&&a.item&&typeof a.item=="object"?a.item[r]:void 0,p=Array.isArray(m)?m:[];o=p.length?p:n?T:p,d=o.map(w),e=o.map(R)}else{const r=F(s,n);i=I(null,{type:y,props:s});const m=!r.items.length&&n;o=m?T:r.items,d=m?T.map(w):r.rows,e=m?[]:r.states}if(!o.length)return null;const l=n?[]:o.map(C);return u(S,{ownerId:t,ownerType:y,Template:c,rows:d,items:o,fields:i?.length?i:void 0,states:e.some(Boolean)?e:void 0,actions:l.some(Boolean)?l:void 0,pressTitles:x(s,j),fallback:null,children:r=>u(h,{ref:f,className:"contents",[k]:"",children:r})})}const Q={...v,render:t=>u(H,{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 f}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as f}from"react/jsx-runtime";import l from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as u,footprintOfficeOfRow as h}from"../../../../../../format/lib/content/footprint.js";import{DEALERS_SOURCE as c,declaredBlockSource as s,sourcedRows as y}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as T}from"../../../../dealer-source.js";import{hidableText as m}from"efficient-easel/draw";import{parseSectionHeadPlacement as g}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as S,phHide as a}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{CARD_TEMPLATE_SLOT as O}from"../../../../../../format/lib/content/card-template.js";import{cardPressTitlesOf as w}from"../../../card-press-titles.js";import{FootprintMeta as C,FOOTPRINT_PH as d}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const P=()=>[{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}],R=()=>[{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 x(e){const o=()=>S(e.offices,P(),e.editor),i=s(e);if(!i||i===c)return o();const n=e.editor?.isEditing===!0,r=y(e,n,R());return!r.sample&&!r.rows.length?o():r.rows.map(h)}const I={...C,render:e=>{const o=g(e.headPlacement)==="own-box",i=r=>o?void 0:r,n=x(e);return f(l,{sectionNumber:i(a(e.sectionNumber,d.sectionNumber,e.editor)),heading:i(a(e.heading,d.heading,e.editor)),tagline:i(a(e.tagline,d.tagline,e.editor)),omitHead:o,offices:n,mapTheme:e.mapTheme??u.mapTheme,padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,editing:e.editor?.isEditing,dealers:s(e)===c,search:e.search===!0,searchHint:m(e.searchHint),noMatchText:m(e.noMatchText),listPosition:T(e.listPosition),showDistance:e.showDistance!==!1,template:e.template,ownerId:String(e.id??""),pressTitles:w(e,O)})}};export{I as FootprintRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as g}from"react/jsx-runtime";import{phoneKey as I}from"efficient-easel/draw";import{CardRowDrawn as R}from"../../../../../components/CardRowContext.js";import v from"../../../../../components/ImageBlock.js";import{recordPictureAlt as O}from"../../../../../../format/lib/content/record-row.js";import{CARD_ROW_LINK_PROP as x,namedRowField as h,rowFieldSpec as B,rowFieldText as S}from"../../../../../../format/lib/content/card-template.js";import{cardRowHoverMedia as P}from"../../../../../../format/lib/content/hover-media.js";import{blockSizeOf as b,blockSizeValuesOf as F}from"../../../../content/block-size.js";import{padValuesOf as _}from"../../../../content/section-padding.js";import{pictureHoverOf as z}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as H}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as K}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const G={...K,render:e=>{const r=z(e,"ImageBlock"),o=h(e),a=h(e,x);return!o&&!a&&r.kind!=="nextImage"?w(e,e.src,e.alt,r):g(R,{type:"ImageBlock",props:e,children:(t,c,i)=>{const d=o?B(c,o):null,l=o?c?d?.alt:O(o):null,f=o?t.src:e.src,n=(l&&S(i,l))??e.alt,m=r.media?P(c,r.media):null,s=S(i,"name")??(typeof n=="string"?n:""),u=a?t.href:e.href;return w({...e,href:u},f,n,r,m&&r.media?{media:m,name:s,cover:r.media.cover}:null)}})}};function w(e,r,o,a,t=null){const{aspect:c,contained:i,grayscale:d,darken:l,darkenStyle:f,href:n,fit:m,corners:s,cornerSides:u,editor:y}=e,k=H(e,"focal");return g(v,{src:r,alt:o,aspect:c,aspectPhone:e[I("aspect")],contained:i,grayscale:d,darken:l,darkenStyle:f,pictureHover:a,...t?{hoverLayer:t}:{},href:n,fit:m,focal:k.desktop,focalPhone:k.phone,focalTablet:k.tablet,corners:s,cornerSides:u,pad:_(e),ownSize:b(F(e))!==null,editing:y?.isEditing===!0})}export{G as ImageBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{HideTaker as N}from"../../../../../components/ViewHideRoot.js";import{resolveWidth as R}from"../../../../../../format/lib/content/section-width.js";import{FRAME as T}from"../../../../../components/BlockFrame.js";import b from"../../../../../components/EditorialSectionHead.js";import{renderGold as g,renderHeadline as G}from"../../../../../components/goldPhrases.js";import s from"../../../../../components/SectionHeader.js";import{hidableText as f}from"efficient-easel/draw";import{parseNaturalDescriptionSize as _,parseNaturalRowGap as j,parseSectionHeadStyle as z}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as p}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as A,SECTION_HEADER_PH as n}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const K={...A,render:({headStyle:H,num:i,numStyle:S,eyebrowLook:l,title:o,description:c,logoSrc:d,logoAlt:x,linkText:k,linkHref:w,rowGap:h,descriptionSize:v,widthMode:y,editor:e})=>{const u=t(k,n.linkText,e),E=R({widthMode:y},"full"),a=z(H);return r(N,{as:"section",className:"px-[var(--sf-site-gutter,40px)] pt-10 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-6",children:r("div",{className:E.mode==="page"?T:void 0,children:a==="editorial"?r(b,{num:t(i,n.num,e),title:(()=>{const m=t(o,n.title,e);return m?G(m,!0):void 0})(),desc:(()=>{const m=t(c,n.description,e);return m?g(m):void 0})(),spaceBelow:""}):a==="simple"?r(s,{look:"simple",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):a==="statement"?r(s,{look:"statement",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):a==="natural"?r(s,{look:"natural",num:t(i,n.num,e),title:t(o,n.title,e),description:t(c,n.description,e),eyebrowLook:p(l,"SectionHeader"),rowGap:j(h),descriptionSize:_(v)}):a==="essay"?r(s,{look:"essay",num:t(i,n.num,e),title:t(o,n.title,e),eyebrowLook:p(l,"SectionHeader")}):r(s,{num:t(i,n.num,e),title:t(o,n.title,e),description:t(c,n.description,e),logo:d?{src:d,alt:f(x)}:void 0,link:u?{text:u,href:f(w)||"#"}:void 0,numStyle:S,accent:!0})})})}};export{K as SectionHeaderRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as h,jsx as o}from"react/jsx-runtime";import{CardPressTitled as H,CardRowDrawn as y}from"../../../../../components/CardRowContext.js";import{CountDrawn as I}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as M}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as U}from"../../../../content/page-contents.js";import{WALL_LABEL_ID_PROP as V}from"../../../wall-labels.js";import{CARD_PRESS_TITLE_PROP as z}from"../../../card-press-titles.js";import{CARD_ROW_LINK_PROP as q,namedRowField as g,rowFieldWordsArePlain as G,rowPartByKey as J}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as Q,TOP_LINE_CLASS as X,cardPlaceOf as Y,framesItsCards as Z}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as $,blockSizeValuesOf as ee}from"../../../../content/block-size.js";import{linkedCount as O}from"../../../../../../format/lib/content/count-numbers.js";import{nonEmptyString as te}from"../../../../../../format/lib/non-empty-string.js";import{padValuesOf as ne}from"../../../../content/section-padding.js";import re from"../../../../../components/Text.js";import{hidableText as c,readHidable as ie}from"efficient-easel/draw";import{PH as C}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as oe}from"../../scaffold.js";import{readPartStyle as de}from"../../../part-styles.js";import{TextMeta as ae}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const Ce={...ae,render:t=>{const{text:f,align:K,alignTablet:L,alignPhone:S,tone:A,tag:D,contained:N,editor:s}=t;if(ie(f).hidden)return o(h,{});const{textStyle:x,align:k}=de(t,"text"),F=x?.startsWith("heading-")?C.heading:C.body,W=J("Text",t,"text")?{partKey:"text",partDeclare:!!s?.isEditing}:{},T=t[V],B=typeof T=="string"?T:void 0,P=t[z]===!0?g(t):"",a=(e,n,r,i,d)=>P?o(H,{field:P,children:l=>_(e,l,n,r,i,d)}):_(e,B,n,r,i,d),_=(e,n,r,i,d,l)=>o(re,{...W,plain:d,href:l,labelId:n,text:oe(e,F,s)??"",number:r,align:K,alignTablet:L,alignPhone:S,tone:A,tag:D,textStyle:x,partAlign:k,ownWidth:$(ee(t)),contained:N,pad:ne(t),onLine:i}),R=e=>!e?.trim()&&!s?.isEditing,m=g(t),j=g(t,q),u=e=>te(e.href),b=(e,n)=>!!m&&!!n&&G(e,m),p=O(t);if(p)return o(I,{countKey:p,children:e=>a(e??c(f))});const w=()=>{if(!m){const e=t[U],n=r=>typeof e=="string"?a(c(f),e,void 0,void 0,r):o(M,{id:t.id,children:i=>a(c(f),i,void 0,void 0,r)});return j?o(y,{type:"Text",props:t,children:r=>n(u(r))}):n()}return o(y,{type:"Text",props:t,children:(e,n,r)=>{const i=c(e.text),d=O(t,r),l=b(n,r),E=u(e);return d?o(I,{countKey:d,children:v=>a(v??i,void 0,void 0,l,E)}):r&&R(i)?o(h,{}):a(i,void 0,void 0,l,E)}})};return Y(t)!=="top-line"?w():o(y,{type:"Text",props:t,children:(e,n,r)=>{if(!n||!Z(n.ownerType))return w();const i=c(m?e.text:f);return R(i)?o(h,{}):o("div",{className:X,[Q]:"",children:a(i,void 0,!0,b(n,r),u(e))})}})}};export{Ce as TextRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as p}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as p}from"react/jsx-runtime";import f from"../../../../../components/TitleWithButtons.js";import{readHidable as b}from"efficient-easel/draw";import{phRows as h,phHide as _}from"../../scaffold.js";import{TitleWithButtonsMeta as a,TITLE_WITH_BUTTONS_PH as c,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as g}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const I={...a,render:({title:n,buttons:s,padTop:o,padBottom:i,buttonsAlign:T,buttonsAlignTablet:m,buttonsAlignPhone:l,editor:t})=>{const e=T,d=e==="center"||e==="left",r=b(n),u=r.hidden?"":r.text.trim();return p(f,{title:d&&!u?void 0:_(n,c.title,t),buttons:h(s,[...g],t),padTop:typeof o=="number"?o:140,padBottom:typeof i=="number"?i:140,buttonsAlign:e,buttonsAlignTablet:m,buttonsAlignPhone:l,editing:t?.isEditing})}};export{I as TitleWithButtonsRender};
|
|
@@ -4,9 +4,11 @@ export type HeadLook = "standard" | "editorial" | "simple" | "essay" | "shelf";
|
|
|
4
4
|
export declare function headLookOf(type: string): HeadLook;
|
|
5
5
|
export declare const HEAD_BELOW: Readonly<Record<HeadLook, number>>;
|
|
6
6
|
export declare function editorialHeadTree(num: string, title: string, description: string): PartRow;
|
|
7
|
+
export declare const EDITORIAL_LINE: Readonly<Props>;
|
|
7
8
|
export { token } from "../../../../../format/lib/document/seed-parts.js";
|
|
8
9
|
export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
|
|
9
10
|
export declare function headWordsOnPhoneLine(part: PartRow): PartRow;
|
|
11
|
+
export declare function withAccentItalic(part: PartRow, keys: readonly string[]): PartRow;
|
|
10
12
|
export declare function headReads(type: string): Readonly<Record<string, string>>;
|
|
11
13
|
export declare const SIMPLE_HEADING_LOOK: Readonly<Record<string, unknown>>;
|
|
12
14
|
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:{...
|
|
1
|
+
import{SPLITTABLE_SECTIONS as k}from"../../../../../format/lib/sections/section-head-placement.js";import{AUTO_COLUMN as I,BUTTON as A,DIM as M,INNER_BOX as r,SH_LINK as W,TEXT as h,smallText as C}from"./section-to-box-row-parts.js";import{labelTextSeed as R}from"../../../../../format/lib/document/text-seeds.js";import{labelStyle as P,token as a}from"../../../../../format/lib/document/seed-parts.js";import{tabletKey as x}from"efficient-easel/draw";import{BOX_DESKTOP_LINE as H,STACK_BELOW_PROP as D}from"../../../content/box-stack-line.js";function w(e){if(e==="ProductGrid")return"shelf";const t=k[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const ee={standard:64,editorial:60,simple:36,essay:28,shelf:20},F={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function K(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 te(e,t,n){const i=`editorial:${e}|${t}|${n}`,o=p.get(i);if(o)return o;const l=L({num:e,title:t,description:n,link:!1});return p.set(i,l),l}const b={[D]:H},u={top:0,right:0,bottom:1,left:0};import{token as ae}from"../../../../../format/lib/document/seed-parts.js";const _=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),c=(e,t,n={})=>C(e,{...a("label",t),...n}),d=(e,t)=>({kind:"text",key:e,role:"heading",props:h,style:{textStyle:"heading-2",...t}}),m=800,z=H,f=(e,t,n,i,o={})=>({kind:"text",key:e,props:{...M,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:m}:{},...o},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i,...o}}),E={...A,align:"right",alignPhone:"left",...W},T=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:E,style:{...P(e),color:"labels"}}),N=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:o=>o[e]===void 0,props:{...h,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?U(R()):{},...n.style}}}}},U=e=>e._partStyles.text??{},s={widthFitPhone:"fill"};function j(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(j)}}function $(e,t){const n=F[e],i=n==="accent",o=c(t.num,14,{color:i?"accent":"labels"}),l=n==="accentNum"&&o.kind==="text"?{...o,mark:"accentLead"}:o,S=d(t.title,i?{..._("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:{...r,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:u,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...r,...s,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...r,...s,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},l,...g?[N(t.num,"==01== / Collections",l)]:[]]},{kind:"group",name:"Heading",props:{...r,...s},parts:[S,...g?[N(t.title,`Three ranges,
|
|
2
|
+
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...r,...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:{...E,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:T(14).style}}}]:[]]}]}}function O(e,t){return e.kind==="text"?t.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(n=>O(n,t))}:e}function L(e){const t=d(e.title,{..._("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...r,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:u,sectionPaddingBottom:32,...b},parts:[{kind:"group",name:"Title",props:{...r,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...b},parts:[{kind:"group",name:"Number",props:{...r,sectionPaddingBottom:8},parts:[{...c(e.num,13),props:{...h,...I}}]},O(t,[e.title])]},{kind:"group",name:"Words",props:{...r,sectionPaddingBottom:4,maxWidth:360,[x("maxWidth")]:z,maxWidthPhone:m},parts:e.description?[f(e.description,14,void 0,{lineHeight:1.5},{[x("align")]:"left"})]:[]}]}}function y(e,t){return{kind:"group",name:"Header",props:{...r,gap:16,gapPhone:16},parts:[c(e.num,13),d(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}]],v=e=>B.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function X(e){return{kind:"group",name:"Header",props:{...r,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:u,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...r,direction:"row",align:"end",gap:24,share:"content"},parts:[c(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...B.map(([t,n])=>({...d(e.title,n),when:i=>v(i)===t}))]},{kind:"group",name:"Words",props:{...r,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 ne(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,G={...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ie(e){const t=p.get(e);if(t)return t;const n=K(e),i=w(e),o=i==="editorial"?L(n):i==="simple"?y(n,G):i==="essay"?y(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?X(n):$(e,n);return p.set(e,o),o}export{b as EDITORIAL_LINE,ee as HEAD_BELOW,G as SIMPLE_HEADING_LOOK,te as editorialHeadTree,_ as fluidToken,w as headLookOf,ne as headReads,ie as headTree,j as headWordsOnPhoneLine,ae as token,O as withAccentItalic};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SECTION_WIDTH_KEYS as
|
|
1
|
+
import{SECTION_WIDTH_KEYS as y}from"../../../../../format/lib/content/section-width.js";import{BLOCK_LENGTH_KEYS as C,blockLengthUnitKey as v}from"../../../content/block-size.js";import{viewStoreKeys as M}from"../../../../../format/lib/animation/views.js";import{BOX as W,INNER_BOX as I,LABEL_FACE as U,TEXT as A,boxPadding as F,fillSlot as _,token as Y}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_STORE_KEYS as w,LEGACY_ENTRANCE_KEY as G}from"../../../animation/entrance.js";import{SCROLL_STORE_KEYS as X}from"../../../../../format/lib/animation/scroll.js";import{SECTION_PIN_KEYS as V}from"../../../../../format/lib/content/section-sticky.js";import{CARD_HOVER_KEYS as E}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as $}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as j}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as J}from"../../../content/section-padding.js";import{ButtonBlockMeta as z}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as q}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as h,hasWords as Q}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as Z}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as R}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as tt}from"efficient-shell/format";import{convertLength as ot,isLengthUnit as et}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as nt,surfacePresetIndex as it,surfaceTwoTone as rt}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as st}from"../../../../../format/lib/content/view-hide-class.js";const B=t=>et(t)?t:"px",s=(t,o,e,n)=>o===e?t:ot(t,o,e,n,{min:0,max:200,step:4});import{BOX as lo,DIM as go,INNER_BOX as mo,TEXT as Po}from"../../../../../format/lib/document/seed-parts.js";const yt={textFit:"line",textFitPhone:"wrap"},dt={...A,[$]:""},{label:vt,href:Mt,...ct}=z.defaultProps,Wt=ct,Ft={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Yt={...W,sectionAccent:0},wt={sectionAccent:-1},Gt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",...V,"anchor",G,...st,...w,...X,...M(["widthFit",...C,...C.map(v)]),...Object.values(y)],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",Xt={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 at(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),r=p(t.sectionPaddingBottomTablet),l=B(t.sectionPaddingUnit),g=B(t.sectionPaddingUnitTablet),T=B(t.sectionPaddingUnitPhone),O=(m,a,x,P)=>{const d=p(m);if(d!==void 0)return d+s(P,"px",T,"mobile");const N=a===void 0?{n:x,unit:l}:{n:a,unit:g};return s(N.n,N.unit,T,"mobile")+s(P,"px",T,"mobile")},S=(m,a,x,P,d)=>a!==void 0?{[m]:a+s(d??P,"px",g,"tablet")}:d===void 0?{}:{[m]:s(x,l,g,"tablet")+s(d,"px",g,"tablet")};return{sectionPaddingTop:e+s(o.top,"px",l,"desktop"),sectionPaddingBottom:n+s(o.bottom,"px",l,"desktop"),...S("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...S("sectionPaddingBottomTablet",r,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:O(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:O(t.sectionPaddingBottomPhone,r,n,o.bottomPhone)}}const $t=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>at(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function f(t,o){const e=J(t,q[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const jt=t=>[["padTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom]],pt={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Jt=t=>o=>Q(o.props[t])?[pt]:[],lt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:A,...o?{style:o}:{}}),zt=t=>({kind:"group",name:"Chip",props:{...I,..._("main"),...F(6,14)},parts:[lt(t,{color:"background",...Y("label",12),weight:600,letterSpacing:.16})]}),L=t=>t.background!=="transparent",gt=(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"},mt=(t,o,e)=>{const n=i=>gt(i[t],i[o]);return{kind:"block",type:"Text",when:(i,r)=>r!==void 0&&n(r)!=="",box:[[t,"text",(i,r)=>n(r)],[o,"text",(i,r)=>n(r)]],props:e}},qt=(t,o,e,n={})=>mt(t,o,{...dt,...H,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...H}}}),u=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:h(o)?.selected??0,k="var(--site-surface-2)",D=(t,o)=>h(o)?.themes[u(t.sectionAccent??0,o)],Pt=(t,o)=>(e,n)=>{if(!o?.(e,n))return _(t);const i=D(e,n)?.[t];return i?{fillColor:i}:{}},Qt=(t,o)=>b(t,o)>=0,K=t=>t.startsWith("#")&&tt(t)!==null,Zt=(t,o,e)=>{const n=t?.trim();if(n&&K(n))return{fillColor:n};const i=R(n);if(i)return _(i);const r=n===k?D(o,e):void 0;return r?{fillColor:rt(r)}:{}},to=t=>{const o=t?.trim();return!o||o==="transparent"||o===Z||R(o)||o===k||K(o)?void 0:"it paints a colour that no Box Fill can hold"},b=(t,o)=>{const e=h(o)?.themes;return e&&L(t)?nt(e,u(t.sectionAccent,o)):-1},oo=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},eo=(t,o)=>{const e=h(o)?.themes,n=e?it(e,u(t,o)):-1;return n>=0?n:t},no=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},io=(t,o)=>L(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:u(t.props.sectionAccent,o)}]:[],ro=t=>j(t.site?.siteGutter),ht=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),so=t=>({top:0,right:0,bottom:0,left:0,...t}),co=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,r)=>({...I,...ht,...Pt("surface")(i,r),...typeof e=="function"?e(i,r):e}),box:[[o,"bgImage"],E.kind,E.duration,E.delay],parts:n});export{yt as AUTO_COLUMN,lo as BOX,Wt as BUTTON,go as DIM,Xt as DROP_COMMON,Vt as DROP_SIDE_PADDING,wt as FOLLOW_THE_BOX,pt as HEADING_CASE_UPPER,mo as INNER_BOX,ht as NO_PAD,dt as NUMBER_TEXT,H as RIGHT_WORDS,Gt as SAME_KEYS,Yt as SECTION_BOX,Ft as SH_LINK,Po as TEXT,oo as bandAccent,b as bandIndex,u as bandPage,no as bandProps,io as bandWrites,Pt as fillFrom,to as fillNoBoxHolds,zt as filledChip,Jt as headingCaseOf,f as innerPad,jt as innerPadKeys,qt as leadLine,mt as leadText,so as lineSides,gt as numberAndUnit,Qt as onBandPreset,Zt as ownFill,co as pictureCell,D as sectionPage,ro as siteGutterOf,lt as smallText,eo as surfaceAccent,at as wrapperPad,$t as wrapperPadKeys};
|