efficient-web-builder 54.0.0 → 55.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 +24 -0
- package/dist/editor/components/BlockGapField.js +1 -1
- package/dist/editor/components/CornersField.js +1 -1
- package/dist/editor/components/SectionWidthRows.d.ts +2 -1
- package/dist/editor/components/SectionWidthRows.js +1 -1
- package/dist/editor/components/SideSpaceField.js +1 -1
- package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Eyebrow/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Split/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
- package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +29 -2
- package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
- package/dist/editor/lib/document/blocks/shared-fields.d.ts +1 -5
- package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
- package/dist/editor/lib/document/box-accordion-seed.d.ts +3 -0
- package/dist/editor/lib/document/box-accordion-seed.js +1 -0
- package/dist/editor/lib/document/box-fields.d.ts +11 -0
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +3 -1
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.d.ts +1 -0
- package/dist/editor/lib/document/mirror-cards-field.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/document/section-own-width-fields.d.ts +4 -0
- package/dist/editor/lib/document/section-own-width-fields.js +1 -0
- package/dist/editor/lib/document/shape-picker.d.ts +8 -0
- package/dist/editor/lib/document/shape-picker.js +1 -1
- package/dist/format/lib/content/block-align.d.ts +4 -1
- package/dist/format/lib/content/block-align.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +5 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-shadow.d.ts +4 -0
- package/dist/format/lib/content/box-shadow.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/box-shape.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +2 -1
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/container-direction.d.ts +1 -1
- package/dist/format/lib/content/container-direction.js +1 -1
- package/dist/format/lib/content/gallery-card-layout.d.ts +16 -1
- package/dist/format/lib/content/gallery-card-layout.js +1 -1
- package/dist/format/lib/content/image-aspect.d.ts +2 -0
- package/dist/format/lib/content/image-aspect.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +3 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/picture-focus-rows.js +1 -0
- package/dist/format/lib/content/section-height.d.ts +31 -2
- package/dist/format/lib/content/section-height.js +1 -1
- package/dist/format/lib/content/section-min-height.d.ts +2 -1
- package/dist/format/lib/content/section-min-height.js +1 -1
- package/dist/format/lib/content/section-width.d.ts +38 -1
- package/dist/format/lib/content/section-width.js +1 -1
- package/dist/format/lib/content/site-gutter.d.ts +2 -0
- package/dist/format/lib/content/site-gutter.js +1 -1
- package/dist/format/lib/content/view-overrides.d.ts +7 -0
- package/dist/format/lib/content/view-overrides.js +1 -0
- package/dist/format/lib/document/blocks/general/Flex/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +3 -0
- package/dist/format/lib/document/section-catalog.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +11 -0
- package/dist/format/lib/editor-words-catalogue.js +5 -5
- package/dist/format/lib/markup.d.ts +1 -0
- package/dist/format/lib/markup.js +2 -2
- package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
- package/dist/format/lib/sections/intro-bleed-layout.d.ts +1 -0
- package/dist/format/lib/sections/intro-bleed-layout.js +1 -1
- package/dist/format/lib/source-rules/padding-units-declared.d.ts +2 -0
- package/dist/format/lib/source-rules/padding-units-declared.js +6 -0
- package/dist/render/components/AccordionMark.d.ts +4 -0
- package/dist/render/components/AccordionMark.js +1 -0
- package/dist/render/components/BoxAccordionRow.d.ts +7 -0
- package/dist/render/components/BoxAccordionRow.js +1 -0
- package/dist/render/components/BoxTabPaneContext.d.ts +3 -1
- package/dist/render/components/BoxTabPaneContext.js +1 -1
- package/dist/render/components/BoxTabs.js +1 -1
- package/dist/render/components/ButtonBlock.d.ts +1 -0
- package/dist/render/components/ButtonBlock.js +1 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/Eyebrow.d.ts +2 -1
- package/dist/render/components/Eyebrow.js +1 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/Flex.d.ts +14 -2
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/HeroSection.d.ts +4 -1
- package/dist/render/components/HeroSection.js +1 -1
- package/dist/render/components/HeroSingle.d.ts +4 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.d.ts +1 -0
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/IntroBleed.js +1 -1
- package/dist/render/components/LogoBlock.d.ts +1 -0
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +1 -0
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +16 -0
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Split.d.ts +2 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/TitleWithButtons.d.ts +2 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/lib/content/box-shared-columns.d.ts +2 -2
- package/dist/render/lib/content/box-shared-columns.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +15 -0
- package/dist/render/lib/content/box-stack-line.js +1 -0
- package/dist/render/lib/content/button-look.js +1 -1
- package/dist/render/lib/content/empty-hides.d.ts +8 -0
- package/dist/render/lib/content/empty-hides.js +1 -0
- package/dist/render/lib/content/section-edge.d.ts +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +17 -3
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/content/view-values.d.ts +1 -7
- package/dist/render/lib/content/view-values.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
- package/dist/render/lib/document/head-core-boxes.js +1 -0
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/passes/head-core.d.ts +3 -0
- package/dist/render/lib/document/passes/head-core.js +1 -0
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-theme.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +5 -5
- package/dist/render/lib/content/picture-focus-rows.js +0 -1
- /package/dist/{render → format}/lib/content/picture-focus-rows.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{alignViewAnswers as X,alignViewClasses as A}from"../../format/lib/content/block-align.js";import{SiteLink as $}from"../lib/site-runtime.js";import G from"./Btn.js";import{resolveImageTreatment as H}from"../../format/lib/content/image-treatment.js";import E from"./Placeholder.js";import{useSitePhotography as D}from"./SitePhotographyContext.js";import K from"./SectionEyebrow.js";import{renderGold as s,renderHeadline as R,splitParagraphs as Y}from"./goldPhrases.js";import{ON_MEDIA_INK_STYLE as Z}from"../../format/lib/content/ink.js";import{scrim as q}from"../../format/lib/content/scrim.js";import{SECTION_FILL_CLASS as J}from"../../format/lib/content/section-min-height.js";const a={headingMediumUpTo800:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",headingMedium:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,13px)]"},L={words:{left:"min-[961px]:pl-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]",right:"min-[961px]:pr-[max(60px,calc(100%_-_var(--sf-content-cap,200%)/2_+_60px))]"},buttons:{left:"min-[961px]:pl-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]",right:"min-[961px]:pr-[max(var(--sf-site-gutter,40px),calc(100%_-_var(--sf-content-cap,200%)/2_+_var(--sf-site-gutter,40px)))]"}};function Q({imageLabel:x,imageSrc:f,imageTint:v=.4,imageObjectPosition:T,eyebrow:h,title:b,body:g,cta:c,reverse:n=!1,uppercase:z=!1,textAlign:m="left",textAlignTablet:w,textAlignPhone:u,textBgSrc:p,textBgLabel:I,textBgTint:y=.6,textBgObjectPosition:S,featureBar:r,imageButton:l,grayscale:M,pictureHover:C,fillHeight:P=!1}){const _=H(M,D(),C),N={left:{items:"",text:"",cta:"self-start"},center:{items:"items-center",text:"text-center",cta:"self-center"},right:{items:"items-end",text:"text-right",cta:"self-end"}},d=N[m]??N.left,j={left:{items:"view-tablet:max-view-desktop:items-stretch",cta:"view-tablet:max-view-desktop:self-start"},center:{items:"view-tablet:max-view-desktop:items-center",cta:"view-tablet:max-view-desktop:self-center"},right:{items:"view-tablet:max-view-desktop:items-end",cta:"view-tablet:max-view-desktop:self-end"}},k={left:{items:"max-view-tablet:items-stretch",cta:"max-view-tablet:self-start"},center:{items:"max-view-tablet:items-center",cta:"max-view-tablet:self-center"},right:{items:"max-view-tablet:items-end",cta:"max-view-tablet:self-end"}},t=X(m,w,u),o={text:A("text",m,w,u),items:[t.tablet&&j[t.tablet].items,t.phone&&k[t.phone].items].filter(Boolean).join(" "),cta:[t.tablet&&j[t.tablet].cta,t.phone&&k[t.phone].cta].filter(Boolean).join(" ")},O=n?"right":"left",U=n?"left":"right";return e("section",{className:"relative z-[2] bg-bg p-0",children:i("div",{className:["grid min-h-[72vh] grid-cols-2 border-t border-b border-line","max-[960px]:grid-cols-1","max-[960px]:min-h-0",n?"min-[961px]:[direction:rtl]":"",...P?[J]:[]].join(" "),children:[i("div",{className:"sf-card relative flex items-center justify-center overflow-hidden bg-surface [direction:ltr] max-[960px]:aspect-[4/3] max-[960px]:order-2",style:n?{borderLeft:"1px solid var(--site-line)"}:{borderRight:"1px solid var(--site-line)"},children:[e(E,{label:x,src:f,objectPosition:T,treatment:_}),f&&v>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${v})`}}),(r||l)&&i("div",{className:`pointer-events-none absolute inset-0 z-[3] flex flex-col items-center justify-center gap-4 px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] ${L.buttons[O]}`,children:[r&&i($,{href:r.href,className:`pointer-events-auto inline-flex items-center justify-center gap-3 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 30%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 85%, transparent)",background:q(.45)},children:[e("span",{children:s(r.wheel)}),e("span",{"aria-hidden":!0,style:{opacity:.55},children:"·"}),e("span",{children:s(r.category)}),e("span",{"aria-hidden":!0,children:"→"}),e("span",{children:s(r.cta??"Shop now")})]}),l&&i($,{href:l.href,className:`pointer-events-auto inline-flex items-center justify-center gap-2 border px-7 py-4 font-mono ${a.label} uppercase tracking-[0.18em] backdrop-blur-sm transition-colors hover:bg-[color-mix(in_srgb,var(--overlay-fg)_10%,transparent)] max-view-wide:gap-2 max-view-wide:px-5 max-view-wide:py-3 ${a.labelUpTo800}`,style:{borderColor:"color-mix(in srgb, var(--overlay-fg) 50%, transparent)",color:"color-mix(in srgb, var(--overlay-fg) 95%, transparent)",background:"transparent"},children:[e("span",{children:s(l.text??"Learn more")}),e("span",{"aria-hidden":!0,children:"→"})]})]})]}),i("div",{className:"relative overflow-hidden [direction:ltr] max-[960px]:order-1",children:[p&&i("div",{className:"absolute inset-0","aria-hidden":!0,children:[e(E,{label:I??x,src:p,objectPosition:S,treatment:_}),y>0&&e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${y})`}})]}),e("div",{className:`relative z-[2] flex h-full min-h-full flex-col px-[60px] py-[100px] max-[960px]:px-6 max-[960px]:py-[60px] ${L.words[U]}`,style:p?Z:void 0,children:i("div",{className:["flex flex-1 flex-col justify-center gap-6",d.items,d.text,o.items,o.text].filter(Boolean).join(" "),children:[h&&e(K,{text:h,size:14}),b&&e("h2",{className:[`font-heading2 ${a.headingMedium} font-normal leading-[1.05] tracking-[-0.03em]`,`${a.headingMediumUpTo800} max-view-wide:leading-[1]`,z?"uppercase":""].join(" "),children:R(b,!1)}),g&&Y(g).map((F,V)=>e("p",{className:[`max-w-[520px] ${a.body} leading-[1.7]`,"text-fg-dim"].join(" "),children:s(F)},V)),c.text&&e("div",{className:`mt-2 ${d.cta}${o.cta?` ${o.cta}`:""}`,children:e(G,{href:c.href,variant:"primary",children:s(c.text)})})]})})]})]})})}export{Q as default};
|
|
@@ -8,6 +8,7 @@ interface TextProps {
|
|
|
8
8
|
text: string;
|
|
9
9
|
number?: string;
|
|
10
10
|
align?: Align;
|
|
11
|
+
alignTablet?: unknown;
|
|
11
12
|
alignPhone?: unknown;
|
|
12
13
|
tone?: Tone;
|
|
13
14
|
tag?: string;
|
|
@@ -18,5 +19,5 @@ interface TextProps {
|
|
|
18
19
|
onLine?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare function headingLevelOfStyle(id: string): HeadingLevel;
|
|
21
|
-
export default function Text({ text, number, align, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine }: TextProps): import("react").JSX.Element;
|
|
22
|
+
export default function Text({ text, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine }: TextProps): import("react").JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as _}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as r,jsxs as _}from"react/jsx-runtime";import T from"./BlockFrame.js";import{renderGold as x,renderHeadline as k,splitParagraphs as O}from"./goldPhrases.js";import{headingLook as j}from"./Heading.js";import{alignViewClasses as z}from"../../format/lib/content/block-align.js";import{textTagOf as I}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as L,kickerLead as R}from"../lib/content/page-contents.js";import{isTextStyleId as A}from"../lib/document/part-styles.js";import{faceClassOf as N}from"../../format/lib/text-style-face.js";import{useMirroredCopy as M}from"./MirrorContext.js";import{mirroredTextClasses as v}from"../../format/lib/content/mirror-cards.js";const d={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},m=e=>e?` ${e}`:"";function U(e,l,t){const o=z("place",e,l,t);return o?` ${o}`:""}const B={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},G=`max-w-[380px] ${d.bodySmall} leading-[1.5] opacity-80 ${d.bodyUpTo800}`,H={default:"text-fg",dim:"text-fg-dim"};function K(e){return String(Math.min(Number(e.slice(8)),6))}function F({text:e,number:l,align:t,alignTablet:o,alignPhone:w,tone:h,contained:u,hero:C=!1,pad:i,tag:S,textStyle:g,ownWidth:E=!1,partAlign:y,onLine:n=!1}){const $=M();if(C)return r("p",{className:G,children:x(e)});const c=l?r("span",{[L]:"",children:R(l)}):void 0,a=A(g)?g:void 0,b=`${a?`${N({id:a})} `:""}${E?"":"max-w-[680px] "}whitespace-pre-line ${a==="body-5"?d.label:d.bodyLarge} leading-[1.7]${m(t?B[t]:"")}${U(t,o,w)}${m(h?H[h]:"")}${m(v($,t,y))}`,f=I(S);if(a?.startsWith("heading-")){const p=K(a),s=j(p,N({id:a}));return r(T,{contained:u,className:n?"":"py-6",pad:i?{values:i,frame:n?0:24}:void 0,children:_(f,{className:`${s.className}${m(v($,void 0,y))}`,style:s.style,children:[c,k(e.trim(),!1)]})})}return r(T,{contained:u,className:n?"":"py-4",pad:i?{values:i,frame:n?0:16}:void 0,children:f==="p"?O(e).map((p,s)=>r("p",{className:b,children:x(p,!1,s===0?c:void 0)},s)):r(f,{className:b,children:x(e.trim(),!1,c)})})}export{F as default,K as headingLevelOfStyle};
|
|
@@ -9,7 +9,8 @@ export interface TitleWithButtonsProps {
|
|
|
9
9
|
padTop?: number;
|
|
10
10
|
padBottom?: number;
|
|
11
11
|
buttonsAlign?: "left" | "center" | "right";
|
|
12
|
+
buttonsAlignTablet?: unknown;
|
|
12
13
|
buttonsAlignPhone?: unknown;
|
|
13
14
|
editing?: boolean;
|
|
14
15
|
}
|
|
15
|
-
export default function TitleWithButtons({ title, buttons, padTop, padBottom, buttonsAlign, buttonsAlignPhone, editing, }?: TitleWithButtonsProps): import("react").JSX.Element | null;
|
|
16
|
+
export default function TitleWithButtons({ title, buttons, padTop, padBottom, buttonsAlign, buttonsAlignTablet, buttonsAlignPhone, editing, }?: TitleWithButtonsProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as m}from"react/jsx-runtime";import{
|
|
1
|
+
import{jsx as r,jsxs as m}from"react/jsx-runtime";import{alignViewClasses as k}from"../../format/lib/content/block-align.js";import{SiteLink as y}from"../lib/site-runtime.js";import{renderHeadline as j}from"./goldPhrases.js";import{say as N}from"../../format/lib/editor-words.js";function _({title:n,buttons:x,padTop:o,padBottom:l,buttonsAlign:a,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(),s=!e&&(a==="center"||a==="left")?a:null,h=e?"":k("items",s??"right",d,f);return!p&&!e&&i.length===0?null:r("section",{className:"relative z-[2] bg-bg",children:m("div",{className:[s==="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))]":s==="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:[s===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:j(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()||N("Button label"),b=t.href||"#",w=t.variant==="primary";return m(y,{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{_ as default};
|
|
@@ -23,9 +23,9 @@ export declare function sharedColumnsDrawn(props: Record<string, unknown>): {
|
|
|
23
23
|
export declare function sharedColumnsClasses(sides: {
|
|
24
24
|
desktop: boolean;
|
|
25
25
|
phone: boolean;
|
|
26
|
-
}, n: number): string;
|
|
26
|
+
}, n: number, from?: number): string;
|
|
27
27
|
export declare const SHARED_PLAIN_ATTR = "data-sf-shared-plain";
|
|
28
28
|
export declare function sharedColumnsCss(sides: {
|
|
29
29
|
desktop: boolean;
|
|
30
30
|
phone: boolean;
|
|
31
|
-
}, n: number): string;
|
|
31
|
+
}, n: number, from?: number): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{REPEAT_ATTRIBUTE as
|
|
1
|
+
import{REPEAT_ATTRIBUTE as i,phoneKey as b,tabletKey as C}from"efficient-easel/draw";import{parseLoop as S}from"../../../format/lib/animation/loop.js";import{finiteNumber as _}from"../../../format/lib/finite-number.js";import{isBackgroundBox as g}from"../../../format/lib/content/box-background.js";import{isStripBox as x}from"../../../format/lib/content/box-separator.js";import{CARD_STATE_ATTR as A}from"../../../format/lib/content/card-state.js";import{BOX_ALIGN_CLASS as r,boxRowColumnsClass as E,boxRowTabletColumnsClass as O}from"../../../format/lib/content/box-layout.js";const $="sharedColumns",c="shared",u="own",d="scroll",K="Row columns",F=[{value:u,label:"Each row"},{value:c,label:"Shared"}],w=[{value:u,label:"Each row"},{value:d,label:"Shared, scroll"}],R="(width >= 800px)",N="(width < 800px)";function y(t){const o={direction:t.direction,separator:t.separator,loop:S(t.loop),line:t.line};return o.direction==="row"&&!x(o.direction,o.separator)&&o.loop!=="scroll"&&o.line!==!0&&!g(typeof t.bgImage=="string"?t.bgImage:void 0)&&E({...o,columns:t.columns})===""&&O({...o,columnsTablet:t[C("columns")]})===""}function T(t){return Array.isArray(t)?t.filter(o=>typeof o?.type=="string").length:_(t?.blockCount)??0}function G(t){return y(t)&&a(T(t.content))>0?L(t[$],t[b($)]):{desktop:!1,phone:!1}}const a=t=>Number.isInteger(t)&&t>0?t:0,m=(t,o)=>`sf-shared-cols-${t}${o===void 0?"":`-from-${o}`}`,p=t=>`sf-shared-cols-phone-${t}`;function L(t,o){return{desktop:t===c,phone:o===d}}function X(t,o,n){const e=a(o);return e?`${t.desktop?` ${m(e,n)}`:""}${t.phone?` ${p(e)}`:""}`:""}function h(t){const o=`[${i}]`;return`:has(> ${o} ${t}):not(:has(> ${o} ${o} ${t}))`}function f(t,o,n=""){const e=h(t);return`${e}{display:grid;grid-template-columns:${o};column-gap:0${n}}${e}>:not(:has(${t})):not(${t}){grid-column:1/-1}${e} :has(${t}),${e} ${t}{display:grid;grid-template-columns:subgrid;grid-column:1/-1;min-width:0}`}const D="data-sf-shared-plain";function H(t){const o=`[${i}]`,n=`[${D}]`,e=h(t)+`:not(:has(> :not(${o}) > :not(${n}) ${t})):not(:has(> ${o} > * > :not(${n}) ${t})):not(:has(:not(${n}) > :not(${n}) > ${t})):not(:has(> ${o}[${A}]))`,s=`${e}>:not(style):not(:has(${t})):not(${t})`;return`${e}{display:table;width:100%;border-collapse:collapse}${e}>:has(${t}),${e}>${o}>:has(${t}),${e} ${n}:has(${t}),${e} ${n}>:has(${t}){display:contents}${e} ${t}{display:table-row}${e} ${t}>*{display:table-cell;width:auto;vertical-align:top}${e} ${t}.${r.center}>*{vertical-align:middle}${e} ${t}.${r.end}>*{vertical-align:bottom}${s}{display:table-caption;caption-side:bottom}${s}:has(~ ${o}){caption-side:top}`}function Y(t,o,n){const e=a(o);if(!e)return"";let s="";if(t.desktop){const l=`.${m(e,n)}`;s+=`@media ${n===void 0?R:`(width >= ${n}px)`}{${f(l,`repeat(${e},auto)`)}${H(l)}}`}return t.phone&&(s+=`@media ${N}{${f(`.${p(e)}`,`repeat(${e},minmax(max-content,auto))`,";overflow-x:auto")}}`),s}export{$ as SHARED_COLUMNS_KEY,K as SHARED_COLUMNS_LABEL,u as SHARED_COLUMNS_OFF,w as SHARED_COLUMNS_PHONE_POINTS,F as SHARED_COLUMNS_POINTS,D as SHARED_PLAIN_ATTR,X as sharedColumnsClasses,Y as sharedColumnsCss,G as sharedColumnsDrawn,y as sharedColumnsFits};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const BOX_STACK_LINE: number;
|
|
2
|
+
export declare const BOX_GUTTER_LINE = 960;
|
|
3
|
+
export declare const BOX_PHONE_PAD_LINE: number;
|
|
4
|
+
export declare const BOX_STACK_RANGE: {
|
|
5
|
+
readonly min: number;
|
|
6
|
+
readonly max: 1600;
|
|
7
|
+
readonly step: 10;
|
|
8
|
+
};
|
|
9
|
+
export declare const STACK_BELOW_PROP = "stackBelow";
|
|
10
|
+
export declare function storedStackLine(value: unknown): number | undefined;
|
|
11
|
+
export declare function boxStackLine(value: unknown): number;
|
|
12
|
+
export declare const stackRowClass: (line: number) => string;
|
|
13
|
+
export declare const stackGutterClass: (line: number) => string;
|
|
14
|
+
export declare const stackOuterClass: (line: number) => string;
|
|
15
|
+
export declare function stackLineCss(line: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VIEW_DESKTOP_MIN as r,VIEW_TABLET_MIN as $}from"efficient-easel/draw";import{VIEW_LINE_PX as m}from"../../../format/lib/content/view-lines.js";const p=m["view-wide"],c=960,x=$,d={min:p,max:1600,step:10},l="stackBelow";function h(t){if(!(typeof t!="number"||!Number.isFinite(t))&&!(t<d.min||t>d.max))return Math.round(t)}function E(t){return h(t)??p}const u=t=>`sf-stack-${t}`,g=t=>`sf-stack-${t}-gutter`,w=t=>`sf-stack-${t}-outer`,n=t=>`${t-.02}px`;function b(t){const a=`.${u(t)}`,e=`.${g(t)}`,i=`.${w(t)}`,o=[];if(t>p){const s=`${a}>.sf-block-size,${a}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,f=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(f)}){.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 o.push(`@media (max-width:${n(t)}){${e}${e}{padding-inline:min(24px,var(--sf-site-gutter,40px))}}`),t<c&&o.push(`@media (min-width:${t}px) and (max-width:${n(c)}){${e}${e}{padding-inline:var(--sf-site-gutter,40px)}}`),o.push(`@media (min-width:${x}px) and (max-width:${n(t)}){`+["top","bottom","left","right"].map(s=>`.sf-pad-${s}-phone:has(>${i}),.sf-pad-${s}-phone${i}{padding-${s}:var(--sf-pad-${s[0]}-phone)!important}`).join("")+"}"),o.join("")}export{c as BOX_GUTTER_LINE,x as BOX_PHONE_PAD_LINE,p as BOX_STACK_LINE,d as BOX_STACK_RANGE,l as STACK_BELOW_PROP,E as boxStackLine,g as stackGutterClass,b as stackLineCss,w as stackOuterClass,u as stackRowClass,h as storedStackLine};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BUTTON_PAD_KEYS as
|
|
1
|
+
import{BUTTON_PAD_KEYS as s,buttonBorderOf as T,buttonFillOpacityOf as _,buttonPadSidesOf as h}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as u}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as y}from"../../../format/lib/finite-number.js";import{nonEmptyString as c}from"../../../format/lib/non-empty-string.js";import{padSideAttrs as O}from"./section-padding.js";import{cornerSidesShorthand as x,normalizeCornerSides as N}from"../../../format/lib/content/section-corners.js";const $="px-6 py-4",g=4,d=t=>{const o=new RegExp(`\\bp${t}-(?:\\[(\\d+)px\\]|(\\d+))`).exec($);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${t}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*g},L={top:d("y"),right:d("x"),bottom:d("y"),left:d("x")},b="var(--btn)";function I(t){const o=t.variant==="ghost",n=_(t.buttonFillOpacity),r=T(t.buttonBorder),e=c(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 k(t){const o=I(t);if(!o.changed)return null;const n=c(t.buttonColor)??b;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?n:`color-mix(in srgb, ${n} ${o.fillOpacity}%, transparent)`,borderWidth:o.border.width,borderStyle:"solid",borderColor:o.border.color}}const P="var(--sf-button-radius, 0)";function w(t){const o=y(t.buttonCorners),n=N(t.buttonCornerSides);if(o===void 0&&n===null)return null;const r=o===void 0?P:`${Math.max(0,o)}px`;return{borderRadius:n===null?r:x(r,n)}}function R(t){const o=i=>h({top:t[`${s.top}${i}`],right:t[`${s.right}${i}`],bottom:t[`${s.bottom}${i}`],left:t[`${s.left}${i}`]})??{},n={desktop:t[u],tablet:t[`${u}Tablet`],phone:t[`${u}Phone`]},{classes:r,style:e}=O(o(""),o("Phone"),o("Tablet"),void 0,n);return Object.keys(e).length?{className:r.join(" "),style:e}:null}const p="upper";function W(t,o,n){const r=t&&typeof t=="object"?t:{},e=c(r.textStyle),i=e?c(o?.find(S=>S?.id===e)?.name):void 0,l=e?/^(heading|body)-(\d+)$/.exec(e):null,m=e?i||(l?n.styleName({kind:l[1],n:Number(l[2])}):e):n.noStyle,{cases:a}=n,f=c(r.case)??p;return`${m} · ${a[f]??a[p]}`}export{L as BUTTON_PAD_BUILT_IN,$ as BUTTON_PAD_CLASSES,s as BUTTON_PAD_KEYS,p as BUTTON_WORDS_BUILT_IN_CASE,b as SITE_BUTTON_FILL,w as buttonCornersStyle,I as buttonLook,R as buttonPadAttrs,k as buttonPaint,W as buttonWordsSummary};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const EMPTY_HIDES_CLASS = "sf-empty-hides";
|
|
2
|
+
export declare const EMPTY_ELSE_CLASS = "sf-empty-else";
|
|
3
|
+
export declare const HEAD_CORE_CLASS = "sf-head-core";
|
|
4
|
+
export declare const HEAD_BOX_CLASS = "sf-head-box";
|
|
5
|
+
export declare const HOLDS_HEAD_CORE_PROP = "holdsHeadCore";
|
|
6
|
+
export declare const HEAD_CORE_PROP = "isHeadCore";
|
|
7
|
+
export declare const EMPTY_HIDES_CSS: string;
|
|
8
|
+
export declare function EmptyHidesStyle(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";const e="sf-empty-hides",n="sf-empty-else",t="sf-head-core",o="sf-head-box",_="holdsHeadCore",E="isHeadCore",p=`.${e}:empty{display:none}.${e}:not(:empty)~.${n}{display:none}.${o},.${t}{display:contents}.${o}:not(:has(.${t}:not(:empty))){display:none}`;function S(){return s("style",{children:p})}export{n as EMPTY_ELSE_CLASS,e as EMPTY_HIDES_CLASS,p as EMPTY_HIDES_CSS,S as EmptyHidesStyle,o as HEAD_BOX_CLASS,t as HEAD_CORE_CLASS,E as HEAD_CORE_PROP,_ as HOLDS_HEAD_CORE_PROP};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{isLengthUnit as i}from"efficient-easel/screen/lib/content/length-units";import{sideViewLengths as o}from"./section-padding.js";import{finiteNumber as d}from"../../../format/lib/finite-number.js";const p="[--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:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",c="[--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)))]",x="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))] max-w-[100vw]";function b(f){const s={},e=f.pad??{};for(const[a,g,l,n]of[["l",e.left,e.leftTablet,e.leftPhone],["r",e.right,e.rightTablet,e.rightPhone]]){const r=d(g),v={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone};r!==void 0&&(s[`--sf-edge-${a}d`]=`${r}${i(e.unit)?e.unit:"px"}`);const t=o(r,d(l),d(n),v);t.tablet!==void 0&&(s[`--sf-edge-${a}t`]=t.tablet),t.phone!==void 0&&(s[`--sf-edge-${a}p`]=t.phone)}return{className:`${f.gutter?p:_} ${c} ${x}`,...Object.keys(s).length?{style:s}:{}}}export{b as sectionEdgeAttrs};
|
|
@@ -4,7 +4,7 @@ export declare const SECTION_PADDING: {
|
|
|
4
4
|
readonly max: 200;
|
|
5
5
|
readonly step: 10;
|
|
6
6
|
};
|
|
7
|
-
export declare function sectionPadStyle(pt: unknown, pb: unknown): CSSProperties | undefined;
|
|
7
|
+
export declare function sectionPadStyle(pt: unknown, pb: unknown, unit?: unknown, frame?: number): CSSProperties | undefined;
|
|
8
8
|
export declare const PAD_TOP_PHONE_CLASS = "sf-pad-top-phone";
|
|
9
9
|
export declare const PAD_BOTTOM_PHONE_CLASS = "sf-pad-bottom-phone";
|
|
10
10
|
export declare const PAD_TOP_PHONE_VAR = "--sf-pad-t-phone";
|
|
@@ -31,7 +31,17 @@ export type PadSides = {
|
|
|
31
31
|
bottom?: unknown;
|
|
32
32
|
left?: unknown;
|
|
33
33
|
};
|
|
34
|
-
export declare function
|
|
34
|
+
export declare function padDefaultIn(px: number, unit: unknown, tier: "desktop" | "tablet" | "mobile"): number;
|
|
35
|
+
export type PadUnits = {
|
|
36
|
+
desktop?: unknown;
|
|
37
|
+
tablet?: unknown;
|
|
38
|
+
phone?: unknown;
|
|
39
|
+
};
|
|
40
|
+
export declare function sideViewLengths(desktop: number | undefined, tablet: number | undefined, phone: number | undefined, units?: PadUnits, frame?: number): {
|
|
41
|
+
tablet?: string;
|
|
42
|
+
phone?: string;
|
|
43
|
+
};
|
|
44
|
+
export declare function padSideAttrs(inline: PadSides, phone: PadSides, tablet?: PadSides, desktop?: PadSides, units?: PadUnits, frame?: number): {
|
|
35
45
|
classes: string[];
|
|
36
46
|
style: CSSProperties;
|
|
37
47
|
};
|
|
@@ -62,6 +72,10 @@ export type PadValues = {
|
|
|
62
72
|
bottomPhone?: unknown;
|
|
63
73
|
leftPhone?: unknown;
|
|
64
74
|
rightPhone?: unknown;
|
|
75
|
+
unit?: unknown;
|
|
76
|
+
unitTablet?: unknown;
|
|
77
|
+
unitPhone?: unknown;
|
|
78
|
+
frame?: number;
|
|
65
79
|
};
|
|
66
80
|
export declare const SECTION_PAD_KEYS: {
|
|
67
81
|
readonly top: "sectionPaddingTop";
|
|
@@ -69,7 +83,7 @@ export declare const SECTION_PAD_KEYS: {
|
|
|
69
83
|
readonly left: "sectionPaddingLeft";
|
|
70
84
|
readonly right: "sectionPaddingRight";
|
|
71
85
|
};
|
|
72
|
-
export declare function padValuesOf(props: Record<string, unknown>, keys?: Record<"top" | "bottom" | "left" | "right", string>, sides?: boolean): PadValues;
|
|
86
|
+
export declare function padValuesOf(props: Record<string, unknown>, keys?: Record<"top" | "bottom" | "left" | "right", string>, sides?: boolean, unitKey?: string | undefined): PadValues;
|
|
73
87
|
export declare function wrapperPadAttrs(v: PadValues): {
|
|
74
88
|
className: string;
|
|
75
89
|
style: CSSProperties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as h,resolveViewValue as B,tabletKey as m}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as N,convertLength as R,isLengthUnit as E,sideLengthAt as C,withLength as g}from"efficient-easel/screen/lib/content/length-units";import{viewRules as V}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as a}from"../../../format/lib/finite-number.js";const H={min:10,max:200,step:10};function I(t,e,n,o=0){const s=a(t),i=a(e);if(s===void 0&&i===void 0)return;const c=A(n),p=d=>d===void 0?void 0:c==="px"?d:g(d,c,o);return{paddingTop:p(s),paddingBottom:p(i)}}const A=t=>E(t)?t:"px",w="sf-pad-top-phone",F="sf-pad-bottom-phone",G="--sf-pad-t-phone",M="--sf-pad-b-phone",$="sf-pad-left-phone",y="sf-pad-right-phone",j="--sf-pad-l-phone",U="--sf-pad-r-phone",Y="sf-pad-top-tablet",k="sf-pad-bottom-tablet",q="sf-pad-left-tablet",z="sf-pad-right-tablet",J="--sf-pad-t-tablet",Q="--sf-pad-b-tablet",W="--sf-pad-l-tablet",X="--sf-pad-r-tablet";function O(t){const e={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},n=I(t.top,t.bottom,t.unit,t.frame),o=v({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},e,t.frame);return n===void 0&&!o.classes.length&&!Object.keys(o.style).length?null:{className:["sf-section-pad",...o.classes].join(" "),style:{...n,...o.style}}}const Z=[["top","paddingTop",[Y,J],[w,G]],["bottom","paddingBottom",[k,Q],[F,M]],["left","paddingLeft",[q,W],[$,j]],["right","paddingRight",[z,X],[y,U]]];function st(t,e,n){return!E(e)||e==="px"?t:R(t,"px",e,n,{min:0,max:H.max,step:1})}function K(t,e,n,o={},s=0){const i=(l,f)=>{if(f==="px")return`${l}px`;const b=g(l,f,s);return typeof b=="number"?`${b}px`:b},c={n:t,[m("n")]:e,[h("n")]:n,u:o.desktop,[m("u")]:o.tablet,[h("u")]:o.phone},p=B("spacing",t,e,n,V()),d=(l,f,b)=>{const P=C(c,{side:"n"},"u",l,"side");if(!P)return;const x=f!==null&&!b&&P.unit==="px"&&typeof p[f]=="number";return i(x?p[f]:P.value,P.unit)},r=d("desktop",null,!0),_={},T=d("tablet","tablet",e!==void 0);T!==void 0&&(e!==void 0||T!==r)&&(_.tablet=T);const u=d("mobile","phone",n!==void 0);return u!==void 0&&(n!==void 0||u!==r)&&(_.phone=u),_}function v(t,e,n={},o=t,s={},i=0){const c={},p={},d=[];for(const[r,_,...T]of Z){const u=a(t[r]),l=r==="top"||r==="bottom"?i:0;u!==void 0&&(c[_]=A(s.desktop)==="px"?u:g(u,A(s.desktop),l));const f=K(a(o[r]),a(n[r]),a(e[r]),s,l);for(const[b,[P,x]]of[["tablet",T[0]],["phone",T[1]]]){const L=f[b];L!==void 0&&(d.push(P),p[x]=L)}}return{classes:d,style:{...c,...p}}}function S(t,e,n){const o=a(t)??n,s=a(e);return o===void 0?s:s===void 0?o:o+s}function it(t,e={}){return{top:S(t.padTop,t.sectionPaddingTop,e.top),bottom:S(t.padBottom,t.sectionPaddingBottom,e.bottom)}}const D={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function dt(t,e=D,n=!0,o=e===D?N:void 0){const s={};o&&(t[o]!==void 0&&(s.unit=t[o]),t[m(o)]!==void 0&&(s.unitTablet=t[m(o)]),t[h(o)]!==void 0&&(s.unitPhone=t[h(o)]));for(const i of n?["top","bottom","left","right"]:["top","bottom"])s[i]=t[e[i]],s[`${i}Tablet`]=t[m(e[i])],s[`${i}Phone`]=t[h(e[i])];return s}function rt(t){return O(t)}function pt(t,e){const n=(o,s)=>typeof o!="number"?void 0:A(s)==="px"?o+e:o;return O({...t,frame:e,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{F as PAD_BOTTOM_PHONE_CLASS,M as PAD_BOTTOM_PHONE_VAR,k as PAD_BOTTOM_TABLET_CLASS,Q as PAD_BOTTOM_TABLET_VAR,$ as PAD_LEFT_PHONE_CLASS,j as PAD_LEFT_PHONE_VAR,q as PAD_LEFT_TABLET_CLASS,W as PAD_LEFT_TABLET_VAR,y as PAD_RIGHT_PHONE_CLASS,U as PAD_RIGHT_PHONE_VAR,z as PAD_RIGHT_TABLET_CLASS,X as PAD_RIGHT_TABLET_VAR,w as PAD_TOP_PHONE_CLASS,G as PAD_TOP_PHONE_VAR,Y as PAD_TOP_TABLET_CLASS,J as PAD_TOP_TABLET_VAR,H as SECTION_PADDING,D as SECTION_PAD_KEYS,st as padDefaultIn,v as padSideAttrs,dt as padValuesOf,it as resolveSectionPadding,pt as rootPadAttrs,O as sectionPadAttrs,I as sectionPadStyle,K as sideViewLengths,rt as wrapperPadAttrs};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { type AutoRule, type ViewValueKind } from "efficient-easel/draw";
|
|
2
1
|
import { RESPONSIVE_RULES } from "../../../format/lib/content/view-lines.js";
|
|
3
2
|
export { RESPONSIVE_RULES };
|
|
4
|
-
export
|
|
3
|
+
export { type ViewOverrides, viewOverrides, viewRules } from "../../../format/lib/content/view-overrides.js";
|
|
5
4
|
export declare const TABLET_MEDIA = "(min-width: 720px) and (max-width: 1099.98px)";
|
|
6
5
|
export declare const PHONE_MEDIA = "(max-width: 719.98px)";
|
|
7
|
-
export interface ViewOverrides<T> {
|
|
8
|
-
tablet?: T;
|
|
9
|
-
phone?: T;
|
|
10
|
-
}
|
|
11
|
-
export declare function viewOverrides<T>(kind: ViewValueKind, desktop: T, tablet: T | null | undefined, phone: T | null | undefined, rules?: Record<ViewValueKind, AutoRule>): ViewOverrides<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{VIEW_DESKTOP_MIN as t,VIEW_TABLET_MIN as E}from"efficient-easel/draw";import{RESPONSIVE_RULES as r}from"../../../format/lib/content/view-lines.js";import{viewOverrides as _,viewRules as d}from"../../../format/lib/content/view-overrides.js";const o=.02,p=`(min-width: ${E}px) and (max-width: ${t-o}px)`,x=`(max-width: ${E-o}px)`;export{x as PHONE_MEDIA,r as RESPONSIVE_RULES,p as TABLET_MEDIA,_ as viewOverrides,d as viewRules};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l}from"react/jsx-runtime";import{phoneKey as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{phoneKey as a,tabletKey as n}from"efficient-easel/draw";import{sharedColumnsDrawn as c}from"../../../../content/box-shared-columns.js";import{CountRowsContext as d,NO_COUNTS as h}from"../../../../../components/CountRowsContext.js";import r from"../../../../../components/Flex.js";import{loopDelayOf as m,loopSecondsOf as b,parseLoop as g,parseLoopDirection as u}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as k}from"../../../../content/section-padding.js";import{sectionFillsHeight as x}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as y}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as T}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const N={...T,render:e=>{const t=l(r,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[n("gap")],justify:e.justify,justifyTablet:e[n("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[n("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[n("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[n("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[n("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[n("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:y(e),darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:k(e),contained:e.contained,fillHeight:x(e),shadow:e.shadow,shadowTablet:e[n("shadow")],shadowPhone:e[a("shadow")],loop:g(e.loop),scrollDirection:u(e.scrollDirection),loopSeconds:b({loopDuration:e.loopDuration}),loopDelay:m({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[n("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:c(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content,rowTitle:e.rowTitle,startsOpen:e.startsOpen}),o=S(e),i=o?o===f?w(e):h:null;return l(d.Provider,{value:i,children:t})}};export{N as FlexRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as H}from"react/jsx-runtime";import P from"../../../../../components/HeroSection.js";import{HeroMeta as j}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const A={...j,render:({slides:e,strip:t,alignment:i,textureOpacity:o,showTexture:r,textureColor:h,phoneUpDown:a,phoneSideways:s,autoplay:p,autoplayInterval:n,showTicker:l,tickerItems:c,heightDesktop:m,heightTablet:d,heightMobile:g,heightFixed:w,heightFixedTablet:x,heightFixedMobile:k,showPicker:u,pickerShape:b,pickerPlacement:y,showArrows:M,arrowsShape:S,arrowsPlacement:T,_partMotion:f,editor:F})=>H(P,{slides:e,strip:t,alignment:i,textureOpacity:o,showTexture:r,textureColor:h,phoneUpDown:a,phoneSideways:s,autoplay:p,autoplayInterval:n,showTicker:l,tickerItems:c,heightDesktop:m,heightTablet:d,heightMobile:g,heightFixed:w,heightFixedTablet:x,heightFixedMobile:k,showPicker:u,pickerShape:b,pickerPlacement:y,showArrows:M,arrowsShape:S,arrowsPlacement:T,editing:F?.isEditing,partMotion:f})};export{A as HeroRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as L}from"react/jsx-runtime";import O from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as H}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{viewFocusValues as a}from"../../../../../../format/lib/content/picture-focus-rows.js";const V={...H,render:o=>{const{mediaType:e,mediaImage:n,mediaVideo:d,poster:r,tintColor:l,tintOpacity:m,overlay:h,overlayColor:g,overlayPosition:s,heightDesktop:b,heightMobile:c,heightFixed:y,heightFixedTablet:u,heightFixedMobile:p,boxes:P,videoSource:v,youtubeUrl:x,videoPlayback:f,mediaLayout:F,mediaLayoutPhone:j,mediaImage2:M,tintColor2:k,tintOpacity2:C,_partMotion:S,editor:T}=o,i=a(o,"imageFocal"),t=a(o,"imageFocal2");return L(O,{mediaType:e,videoSource:v,youtubeUrl:x,videoPlayback:f,mediaLayout:F,mediaLayoutPhone:j,mediaImage2:M||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:k,tintOpacity2:C,mediaSrc:(e==="image"?n:d)||void 0,poster:r||void 0,objectPosition:e==="image"?i.desktop:void 0,objectPositionPhone:e==="image"?i.phone:void 0,objectPositionTablet:e==="image"?i.tablet:void 0,tintColor:l,tintOpacity:e==="image"?m:0,overlay:h,overlayColor:g,overlayPosition:s,heightDesktop:b,heightMobile:c,heightFixed:y,heightFixedTablet:u,heightFixedMobile:p,boxes:P,editing:T?.isEditing,partMotion:S})}};export{V as HeroSingleRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as A}from"react/jsx-runtime";import I from"../../../../../components/HeroSlide.js";import{nestedAccentValue as M,sectionThemeWrap as O}from"../../../../../../format/lib/content/section-surface.js";import{phHide as V}from"../../scaffold.js";import{HeroSlideMeta as N}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";import{loadingStill as U}from"../../../../../../format/lib/hero-video.js";import{viewFocusValues as c}from"
|
|
1
|
+
import{jsx as A}from"react/jsx-runtime";import I from"../../../../../components/HeroSlide.js";import{nestedAccentValue as M,sectionThemeWrap as O}from"../../../../../../format/lib/content/section-surface.js";import{phHide as V}from"../../scaffold.js";import{HeroSlideMeta as N}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";import{loadingStill as U}from"../../../../../../format/lib/hero-video.js";import{viewFocusValues as c}from"../../../../../../format/lib/content/picture-focus-rows.js";const D={...N,render:o=>{const{name:l,process:p,mediaType:e,mediaVideo:u,mediaImage:y,poster:f,loadingShows:g,videoFrame:b,mediaSrc:P,videoSpeed:n,tintColor:v,overlay:h,groups:S,editor:a,overlayColor:d,overlayPosition:r,mediaLayout:j,mediaLayoutPhone:C,mediaImage2:L,tintColor2:T,tintOpacity2:k,videoSource:F,youtubeUrl:H,videoPlayback:w,_partMotion:x,...m}=o,i=c(o,"imageFocal"),t=c(o,"imageFocal2"),s=O({...m,sectionAccent:M(m.sectionAccent)});return A(I,{themeClassName:s?.className,themeStyle:s?.style,name:l||void 0,process:V(p,"Label",a),mediaType:e,mediaSrc:(e==="image"?y:u||P)||void 0,videoSpeed:typeof n=="number"?n:void 0,poster:U({loadingShows:g,poster:f,videoFrame:b}),objectPosition:e==="image"?i.desktop:void 0,objectPositionPhone:e==="image"?i.phone:void 0,objectPositionTablet:e==="image"?i.tablet:void 0,tintColor:v,tintOpacity:e==="image"?h:0,groups:S,editing:a?.isEditing,overlayColor:typeof d=="string"?d:void 0,overlayPosition:typeof r=="string"?r:void 0,mediaLayout:j,mediaLayoutPhone:C,mediaImage2:L||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:T,tintOpacity2:k,videoSource:F,youtubeUrl:H,videoPlayback:w,partMotion:x})}};export{D as HeroSlideRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l}from"react/jsx-runtime";import{phoneKey as p}from"efficient-easel/draw";import{CardRowDrawn as h}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{recordPictureAlt as S}from"../../../../../../format/lib/content/record-row.js";import{cardTemplateField as x,namedRowField as B,rowFieldText as I,rowNextPicture as b}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as P}from"../../../../content/section-padding.js";import{pictureHoverOf as T}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as v}from"
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{phoneKey as p}from"efficient-easel/draw";import{CardRowDrawn as h}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{recordPictureAlt as S}from"../../../../../../format/lib/content/record-row.js";import{cardTemplateField as x,namedRowField as B,rowFieldText as I,rowNextPicture as b}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as F,blockSizeValuesOf as O}from"../../../../content/block-size.js";import{padValuesOf as P}from"../../../../content/section-padding.js";import{pictureHoverOf as T}from"../../../../../../format/lib/animation/hover.js";import{viewFocusValues as v}from"../../../../../../format/lib/content/picture-focus-rows.js";import{ImageBlockMeta as z}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const _={...z,render:e=>{const t=B(e);return t?l(h,{type:"ImageBlock",props:e,children:(o,r,a)=>{const c=r?x(r.ownerType,t):null,i=r?c?.alt:S(t);return m(e,o.src,(i&&I(a,i))??e.alt,b(r?.item,c?.next,typeof o.src=="string"?o.src:""))}}):m(e,e.src,e.alt)}};function m(e,t,o,r=""){const{aspect:a,contained:c,grayscale:i,darken:f,darkenStyle:d,href:s,fit:u,corners:k,cornerSides:g,editor:y}=e,n=v(e,"focal");return l(w,{src:t,alt:o,aspect:a,aspectPhone:e[p("aspect")],contained:c,grayscale:i,darken:f,darkenStyle:d,pictureHover:T(e,"ImageBlock"),...r?{nextSrc:r}:{},href:s,fit:u,focal:n.desktop,focalPhone:n.phone,focalTablet:n.tablet,corners:k,cornerSides:g,pad:P(e),ownSize:F(O(e))!==null,editing:y?.isEditing===!0})}export{_ as ImageBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as m,jsx as e}from"react/jsx-runtime";import{CardRowDrawn as x}from"../../../../../components/CardRowContext.js";import{CountDrawn as S}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as C}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as E}from"../../../../content/page-contents.js";import{namedRowField as I}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as N,TOP_LINE_CLASS as O,cardPlaceOf as k,framesItsCards as A}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as F,blockSizeValuesOf as K}from"../../../../content/block-size.js";import{linkedCount as L}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as D}from"../../../../content/section-padding.js";import W from"../../../../../components/Text.js";import{hidableText as d,readHidable as j}from"efficient-easel/draw";import{PH as p}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as v}from"../../scaffold.js";import{readPartStyle as B}from"../../../part-styles.js";import{TextMeta as H}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const it={...H,render:r=>{const{text:o,align:w,alignPhone:T,tone:P,tag:y,contained:_,editor:f}=r;if(j(o).hidden)return e(m,{});const{textStyle:l,align:b}=B(r,"text"),R=l?.startsWith("heading-")?p.heading:p.body,a=(t,n,i)=>e(W,{text:v(t,R,f)??"",number:n,align:w,alignPhone:T,tone:P,tag:y,textStyle:l,partAlign:b,ownWidth:F(K(r)),contained:_,pad:D(r),onLine:i}),c=t=>!t?.trim()&&!f?.isEditing,s=I(r),u=L(r);if(u)return e(S,{countKey:u,children:t=>a(t??d(o))});const h=()=>{if(!s){const t=r[E];return typeof t=="string"?a(d(o),t):e(C,{id:r.id,children:n=>a(d(o),n)})}return e(x,{type:"Text",props:r,children:(t,n,i)=>{const g=d(t.text);return i&&c(g)?e(m,{}):a(g)}})};return k(r)!=="top-line"?h():e(x,{type:"Text",props:r,children:(t,n)=>{if(!n||!A(n.ownerType))return h();const i=d(s?t.text:o);return c(i)?e(m,{}):e("div",{className:O,[N]:"",children:a(i,void 0,!0)})}})}};export{it as TextRender};
|
|
@@ -6,4 +6,5 @@ export declare const HEAD_BELOW: Readonly<Record<HeadLook, number>>;
|
|
|
6
6
|
export declare function editorialHeadTree(num: string, title: string, description: string): PartRow;
|
|
7
7
|
export { token } from "../../../../../format/lib/document/seed-parts.js";
|
|
8
8
|
export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
|
|
9
|
+
export declare function headReads(type: string): Readonly<Record<string, string>>;
|
|
9
10
|
export declare function headTree(type: string): PartRow;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{readHidable as
|
|
2
|
-
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...
|
|
1
|
+
import{readHidable as B}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as E,DIM as L,INNER_BOX as o,SH_LINK as _,TEXT as k,smallText as O}from"./section-to-box-row-parts.js";import{labelTextSeed as M}from"../../../../../format/lib/document/text-seeds.js";import{token as a}from"../../../../../format/lib/document/seed-parts.js";function P(e){if(e==="ProductGrid")return"shelf";const t=T[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const U={standard:64,editorial:60,simple:36,essay:28,shelf:20},I={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=T[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function X(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=H({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const h={top:0,right:0,bottom:1,left:0};import{token as J}from"../../../../../format/lib/document/seed-parts.js";const b=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>O(e,{...a("label",t),...n}),A=(e,t)=>{const n=B(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},d=(e,t)=>({kind:"text",key:e,role:"heading",props:k,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...L,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),w={...E,align:"right",alignPhone:"left",..._,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:w,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),x=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...k,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?R(M()):{},...n.style}}}}},R=e=>e._partStyles.text??{},c={widthFitPhone:"fill"};function C(e,t){const n=I[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=d(t.title,i?{...b("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:h,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...c,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...c,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[x(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...c},parts:[S,...g?[x(t.title,`Three ranges,
|
|
2
|
+
one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...c,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...w,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},d(e.title,{...b("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:u},parts:e.description?[m(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function y(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),d(e.title,t)]}}const N=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],F=e=>N.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function z(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:h,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...N.map(([t,n])=>({...d(e.title,n),when:i=>F(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[m(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[f(13)]:[]]}]}}function G(e){return P(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}const p=new Map;function Q(e){const t=p.get(e);if(t)return t;const n=W(e),i=P(e),r=i==="editorial"?H(n):i==="simple"?y(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?y(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?z(n):C(e,n);return p.set(e,r),r}export{U as HEAD_BELOW,X as editorialHeadTree,b as fluidToken,P as headLookOf,G as headReads,Q as headTree,J as token};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{SECTION_WIDTH_KEYS as H}from"../../../../../format/lib/content/section-width.js";import{phoneKey as D}from"efficient-easel/draw";import{BOX as w,INNER_BOX as y,TEXT as O}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as W}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as h}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as v}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as M}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as L}from"../../../content/section-padding.js";import{ButtonBlockMeta as F}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as K}from"../../passes/section-padding.js";import{finiteNumber as c}from"../../../../../format/lib/finite-number.js";import{convertTheme as P,hasWords as X}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as G}from"../../../../../format/lib/content/section-background.js";import{parseHexColor as Y}from"efficient-shell/format";import{convertLength as j,isLengthUnit as V}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as $,surfaceTwoTone as J}from"../../../../../format/lib/theme.js";const m=t=>V(t)?t:"px",d=(t,o,e,n)=>o===e?t:j(t,o,e,n,{min:0,max:200,step:4});import{BOX as Xt,DIM as Gt,INNER_BOX as Yt,TEXT as jt}from"../../../../../format/lib/document/seed-parts.js";const z={...O,[v]:""},{label:ft,href:xt,...q}=F.defaultProps,_t=q,Bt={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Et={...w,sectionAccent:0},Ot=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(W).flatMap(t=>[t,D(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(H)],r="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",St={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:r,fullWidth:r,pageWidth:r,backgroundWidth:r,contentWidth:r,contentMax:r},Ut=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function Q(t,o){const e=c(t.sectionPaddingTop)??0,n=c(t.sectionPaddingBottom)??0,i=c(t.sectionPaddingTopTablet),s=c(t.sectionPaddingBottomTablet),p=m(t.sectionPaddingUnit),l=m(t.sectionPaddingUnitTablet),g=m(t.sectionPaddingUnitPhone),f=(R,x,A,_)=>{const B=c(R);if(B!==void 0)return B+d(_,"px",g,"mobile");const E=x===void 0?{n:A,unit:p}:{n:x,unit:l};return d(E.n,E.unit,g,"mobile")+d(_,"px",g,"mobile")};return{sectionPaddingTop:e+d(o.top,"px",p,"desktop"),sectionPaddingBottom:n+d(o.bottom,"px",p,"desktop"),...i===void 0?{}:{sectionPaddingTopTablet:i+d(o.top,"px",l,"tablet")},...s===void 0?{}:{sectionPaddingBottomTablet:s+d(o.bottom,"px",l,"tablet")},sectionPaddingTopPhone:f(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:f(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Nt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>Q(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function a(t,o){const e=L(t,K[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const It=t=>[["padTop","sectionPaddingTop",(o,e)=>a(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>a(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>a(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>a(e,t).sectionPaddingBottom]],Z={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},kt=t=>o=>X(o.props[t])?[Z]:[],Ct=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:O,...o?{style:o}:{}}),S=t=>t.background!=="transparent",tt=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},U={align:"right",alignPhone:"left"},ot=(t,o,e)=>{const n=i=>tt(i[t],i[o]);return{kind:"block",type:"Text",when:(i,s)=>s!==void 0&&n(s)!=="",box:[[t,"text",(i,s)=>n(s)],[o,"text",(i,s)=>n(s)]],props:e}},Rt=(t,o,e,n={})=>ot(t,o,{...z,...U,...n,_partStyles:{text:{textStyle:"body-5",color:"labels",...e,case:"upper",...U}}}),u=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:P(o)?.selected??0,N="var(--site-surface)",I="var(--site-surface-2)",T=(t,o)=>P(o)?.themes[u(t.sectionAccent??0,o)],k=t=>(o,e)=>{const n=T(o,e)?.[t];return n?{fillColor:n}:{}},C=t=>t.startsWith("#")&&Y(t)!==null,At=(t,o,e)=>{const n=t?.trim();if(n&&C(n))return{fillColor:n};if(n===N)return k("surface")(o,e);const i=n===I?T(o,e):void 0;return i?{fillColor:J(i)}:{}},Ht=t=>{const o=t?.trim();return!o||o==="transparent"||o===G||o===N||o===I||C(o)?void 0:"it paints a colour that no Box Fill can hold"},Dt=(t,o)=>{const e=T(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},b=(t,o)=>{const e=P(o)?.themes;return e&&S(t)?$(e,u(t.sectionAccent,o)):-1},wt=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},yt=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},Wt=(t,o)=>S(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:u(t.props.sectionAccent,o)}]:[],vt=t=>M(t.site?.siteGutter),et=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Mt=t=>({top:0,right:0,bottom:0,left:0,...t}),Lt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...y,...et,...k("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],h.kind,h.duration,h.delay],parts:n});export{Xt as BOX,_t as BUTTON,Gt as DIM,St as DROP_COMMON,Ut as DROP_SIDE_PADDING,Z as HEADING_CASE_UPPER,Yt as INNER_BOX,et as NO_PAD,z as NUMBER_TEXT,U as RIGHT_WORDS,Ot as SAME_KEYS,Et as SECTION_BOX,Bt as SH_LINK,jt as TEXT,wt as bandAccent,b as bandIndex,u as bandPage,yt as bandProps,Wt as bandWrites,k as fillFrom,Ht as fillNoBoxHolds,kt as headingCaseOf,a as innerPad,It as innerPadKeys,Rt as leadLine,ot as leadText,Dt as lineBorder,Mt as lineSides,tt as numberAndUnit,At as ownFill,Lt as pictureCell,T as sectionPage,vt as siteGutterOf,Ct as smallText,Q as wrapperPad,Nt as wrapperPadKeys};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{parseBlocks as
|
|
2
|
-
`)}:{kind:"p",text:e.text}),s={textStyle:"body-5",...
|
|
1
|
+
import{parseBlocks as k,sectionAnchorIds as _,shownSections as P}from"../../../../components/DocBody.js";import{SECTION_WIDTH_KEYS as b}from"../../../../../format/lib/content/section-width.js";import{STACK_BELOW_PROP as x}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as B,INNER_BOX as o,SECTION_BOX as O,TEXT as r,smallText as a,wrapperPad as T,wrapperPadKeys as S}from"./section-to-box-row-parts.js";import{fluidToken as f,token as c}from"./section-head-looks.js";const d={top:80,bottom:80,topPhone:60,bottomPhone:60},l=18,h=18,m=8,u=10,i=t=>typeof t=="string"&&t.trim()!=="",g=t=>P(t.sections),w=t=>k(typeof t.body=="string"?t.body:"").map(e=>e.type==="ul"?{kind:"ul",text:e.items.map(n=>`- ${n}`).join(`
|
|
2
|
+
`)}:{kind:"p",text:e.text}),s={textStyle:"body-5",...c("label",12),case:"upper",letterSpacing:.3,color:"accent",lineHeight:1.5},y={textStyle:"body-1",fontRole:"accent",...c("body",17)},D=[a("label",s),{...a("title",s),when:(t,e)=>!i(e?.label)},{kind:"block",type:"Text",when:(t,e)=>!i(e?.label)&&!i(e?.title),props:{...r,text:"Section",_partStyles:{text:s}}},{kind:"group",name:"Heading",props:{...o,sectionPaddingBottom:m,sectionPaddingBottomPhone:m},parts:[{kind:"group",name:"Heading line",props:{...o,sectionBorder:{bottom:1},sectionPaddingBottom:h,sectionPaddingBottomPhone:h},parts:[{kind:"text",key:"heading",role:"heading",props:r,style:{textStyle:"heading-2",...f("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:w,parts:[{kind:"text",key:"text",props:p,style:{...y,lineHeight:1.7},when:(t,e)=>e?.kind==="p"},{kind:"text",key:"text",props:p,style:{...y,lineHeight:1.65,paragraphSpacing:u},when:(t,e)=>e?.kind==="ul"}]}],C=900,E={name:"Document Text",boxProps:t=>({...O,direction:"row",gap:80,gapPhone:40,[x]:C,sectionBorder:{bottom:1},...T(t,d)}),box:["anchor","sectionAccent","_hidden",...Object.values(b),...S(d)],parts:[{kind:"block",type:"Contents",props:t=>({title:t.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...o,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:t=>g(t),props:{...o,gap:l,gapPhone:l},item:(t,e,n)=>({props:{anchor:_(g(n))[e]??`section-${e+1}`}}),parts:D}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...B,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},K={DocBody:E};export{K as DOCBODY_SECTION_TO_BOX};
|