efficient-web-builder 48.3.0 → 49.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/components/PreviewPartAnchors.d.ts +2 -2
- package/dist/editor/components/PreviewPartAnchors.js +1 -1
- package/dist/editor/components/SectionTextPartBridge.d.ts +3 -1
- package/dist/editor/components/SectionTextPartBridge.js +1 -1
- package/dist/editor/components/WebsiteScreenParts.js +1 -1
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/add-target.d.ts +1 -1
- package/dist/editor/lib/document/add-target.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/HeroGroup/fields.js +1 -1
- package/dist/editor/lib/document/card-display-chips.d.ts +2 -1
- package/dist/editor/lib/document/card-display-chips.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.d.ts +20 -0
- package/dist/editor/lib/document/mirror-cards-field.js +1 -0
- package/dist/editor/lib/sections/hero-ticker-to-strip.d.ts +7 -0
- package/dist/editor/lib/sections/hero-ticker-to-strip.js +1 -0
- package/dist/editor/lib/sections/section-dry-run.d.ts +5 -0
- package/dist/editor/lib/sections/section-dry-run.js +2 -2
- package/dist/format/lib/content/block-align.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +2 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-separator.js +1 -1
- package/dist/format/lib/content/box-shape.js +1 -1
- package/dist/format/lib/content/button-icon.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +2 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/container-gap.d.ts +1 -1
- package/dist/format/lib/content/container-gap.js +1 -1
- package/dist/format/lib/content/mirror-cards.d.ts +32 -0
- package/dist/format/lib/content/mirror-cards.js +1 -0
- package/dist/format/lib/content/page-width.d.ts +3 -3
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/part-display.js +1 -1
- package/dist/format/lib/content/section-min-height.d.ts +1 -1
- package/dist/format/lib/content/section-min-height.js +1 -1
- package/dist/format/lib/content/view-lines.d.ts +11 -0
- package/dist/format/lib/content/view-lines.js +1 -0
- package/dist/format/lib/document/blocks/general/Hero/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +8 -0
- package/dist/format/lib/editor-words-catalogue.js +4 -4
- package/dist/format/lib/hero-ticker.d.ts +6 -0
- package/dist/format/lib/hero-ticker.js +1 -1
- package/dist/format/lib/sections/collection-card-text-regions.d.ts +1 -1
- package/dist/format/lib/sections/collection-card-text-regions.js +1 -1
- package/dist/format/lib/sections/faq-text-regions.js +1 -1
- package/dist/format/lib/sections/hero-single-to-hero.d.ts +1 -0
- package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
- package/dist/format/lib/sections/section-text-regions.d.ts +1 -0
- package/dist/format/lib/sections/section-text-regions.js +1 -1
- package/dist/format/lib/sections/text-regions.d.ts +2 -0
- package/dist/format/lib/sections/text-regions.js +1 -1
- package/dist/format/lib/sections/ticker-style.js +1 -1
- package/dist/format/lib/source-rules/heading-ceiling-sweep.js +7 -7
- package/dist/format/lib/source-rules/view-breakpoint-names.d.ts +6 -0
- package/dist/format/lib/source-rules/view-breakpoint-names.js +4 -0
- package/dist/render/components/Banner.js +1 -1
- package/dist/render/components/Breadcrumb.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +1 -0
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/CategoryBar.js +1 -1
- package/dist/render/components/ChartSection.js +1 -1
- package/dist/render/components/ContactLocations.js +1 -1
- package/dist/render/components/DealerFinder.js +1 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.d.ts +6 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/Heading.js +1 -1
- package/dist/render/components/HeroPictures.js +1 -1
- package/dist/render/components/HeroSection.d.ts +2 -1
- package/dist/render/components/HeroSection.js +1 -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/IntegrationsSection.js +1 -1
- package/dist/render/components/IntroBleed.js +1 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/LocationMap.d.ts +1 -1
- package/dist/render/components/LocationMap.js +1 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/Manifesto.js +1 -1
- package/dist/render/components/Masthead.js +1 -1
- package/dist/render/components/MirrorContext.d.ts +3 -0
- package/dist/render/components/MirrorContext.js +1 -0
- package/dist/render/components/MockupSection.js +1 -1
- package/dist/render/components/OrderSummary.js +1 -1
- package/dist/render/components/ParagraphsA.js +1 -1
- package/dist/render/components/PostCard.js +1 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/Prose.js +1 -1
- package/dist/render/components/Reel.js +1 -1
- package/dist/render/components/SectionEyebrow.js +1 -1
- package/dist/render/components/SectionHeader.d.ts +4 -4
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/Series.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +1 -0
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/SpecStrip.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Stats.js +1 -1
- package/dist/render/components/StatsParagraph.js +1 -1
- package/dist/render/components/Testimonials.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/TextRegionRun.d.ts +7 -0
- package/dist/render/components/TextRegionRun.js +1 -0
- package/dist/render/components/Ticker.js +1 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineRail.d.ts +4 -4
- 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/lib/animation/LoopTrack.d.ts +2 -2
- package/dist/render/lib/animation/LoopTrack.js +1 -1
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/box-shared-columns.d.ts +31 -0
- package/dist/render/lib/content/box-shared-columns.js +1 -0
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/view-values.d.ts +2 -1
- 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/LocationMap/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/editing-bridges.d.ts +2 -0
- package/dist/render/lib/document/part-styles.d.ts +26 -0
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/section-width.d.ts +2 -2
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/slot-specs.d.ts +3 -0
- package/dist/render/lib/document/slot-specs.js +1 -1
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isStripBox as
|
|
1
|
+
import{isStripBox as s}from"./box-separator.js";const k={sectionPaddingTop:0,sectionPaddingBottom:0},o={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},r={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function A(e,t){const w=typeof e=="string"&&e in o?o[e]:"",n=typeof t=="string"&&t in r?r[t]:"";return[w,n].filter(Boolean).join(" ")}function B(e){return e===!0||e==="wrap"?"flex-wrap":""}const N="Block widths",c=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]},{label:"2 : 3",value:"twoThree",weights:[2,3]}],i="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",p={equal:i,bigLeft:`${i} [&>*:first-child]:view-wide:grow-[2]`,bigRight:`${i} [&>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${i} [&>*:first-child]:view-wide:grow-[3]`,biggerRight:`${i} [&>*:last-child]:view-wide:grow-[3]`,twoThree:`${i} [&>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3]`};function x(e){return typeof e=="string"?p[e]??"":""}const _="[&>*]:view-wide:basis-[content]";function E(e){return x(e)===""?_:""}const P="Columns",R=1,T=3,v={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},X=c.filter(e=>e.value==="content"||e.value==="equal"),H="equal",I=1,$=6,a="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0!",d={1:`${a} [&>*]:view-wide:basis-[calc(100%/1)]!`,2:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function b(e){return typeof e=="number"?d[e]??"":""}const f={1:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc(100%/1)]!",2:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function m(e){return typeof e=="number"?f[e]??"":""}function y(e){return e.direction!=="row"||s(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":m(e.columnsTablet)}function W(e){return e.direction!=="row"||s(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":b(e.columns)}const g="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content]",h={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},u="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content]";function O(e){return e===!1||e==="nowrap"}function M(e,t,w){const n=v[Number(e)];if(!n)return"max-view-wide:flex-col";const l=O(w);return S(e,t)?l?u:g:l?h[Number(e)]:n}function S(e,t){return Number(e)in v&&t==="content"}const F="Block spacing",U=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],C="sf-box-gap-only";function G(e){return e==="gap"?C:""}export{r as BOX_ALIGN_CLASS,F as BOX_BLOCK_SPACING_LABEL,U as BOX_BLOCK_SPACING_POINTS,$ as BOX_COLUMNS_MAX,I as BOX_COLUMNS_MIN,C as BOX_GAP_ONLY_CLASS,P as BOX_PHONE_ROW_LABEL,T as BOX_PHONE_ROW_MAX,R as BOX_PHONE_ROW_MIN,N as BOX_SHARE_LABEL,H as BOX_SHARE_PHONE_DEFAULT,X as BOX_SHARE_PHONE_POINTS,c as BOX_SHARE_POINTS,k as NESTED_BOX_PADDING,G as boxBlockSpacingClass,b as boxColumnsClass,E as boxFitContentClass,A as boxLayoutClasses,M as boxPhoneRowClasses,S as boxPhoneRowFits,O as boxPhoneRowOneLine,W as boxRowColumnsClass,y as boxRowTabletColumnsClass,x as boxShareClasses,m as boxTabletColumnsClass,B as boxWrapClass};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parseTickerSeparator as r,SEPARATOR_GLYPH as c,separatorScaleClass as f,TICKER_SEPARATOR_OPTIONS as n}from"../sections/ticker-style.js";const d=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function o(h){return n.some(t=>t.value===h)?r(h):void 0}const a="overflow-x-clip [&>*]:shrink-0 [&>*]:max-
|
|
1
|
+
import{parseTickerSeparator as r,SEPARATOR_GLYPH as c,separatorScaleClass as f,TICKER_SEPARATOR_OPTIONS as n}from"../sections/ticker-style.js";const d=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function o(h){return n.some(t=>t.value===h)?r(h):void 0}const a="overflow-x-clip [&>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function i(h,t){return h==="row"&&o(t)!==void 0}function v(h,t){return i(h,t)?a:""}const p="[&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:inline-flex [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:items-center [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:align-top [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:h-[calc(1lh/var(--sf-sep-k,1))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:ml-[var(--sf-gap-len,0px)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:after:ml-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-accent [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-[var(--sf-sep-mark)]";function u(h,t){return i(h,t)?p:""}function k(h,t){if(!i(h,t))return{};const s=o(t),e=/^text-\[([\d.]+)em\]$/.exec(f("small",s))?.[1],l=c[s];return{"--sf-sep-mark":l===""?"none":JSON.stringify(l),...e?{"--sf-sep-k":e}:{}}}export{d as BOX_SEPARATOR_POINTS,v as boxSeparatorClasses,o as boxSeparatorOf,u as boxSeparatorSeamClass,k as boxSeparatorStyle,i as isStripBox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{galleryCardRatioClass as o}from"./gallery-card-layout.js";const u=["auto","tall","square","landscape","wide"],
|
|
1
|
+
import{galleryCardRatioClass as o}from"./gallery-card-layout.js";const u=["auto","tall","square","landscape","wide"],d=[{label:"Auto",value:"auto"},{label:"Tall (3:4)",value:"tall"},{label:"Square (1:1)",value:"square"},{label:"Landscape (4:3)",value:"landscape"},{label:"Wide (2:1)",value:"wide"}];function t(e){return u.includes(String(e??""))?e:"auto"}function n(e){const a=t(e);return a==="auto"?"":o(a)}const s={tall:"view-wide:aspect-[3/4]",square:"view-wide:aspect-square",landscape:"view-wide:aspect-[4/3]",wide:"view-wide:aspect-[2/1]"},r={auto:"max-view-wide:aspect-auto",tall:"max-view-wide:h-auto max-view-wide:aspect-[3/4]",square:"max-view-wide:h-auto max-view-wide:aspect-square",landscape:"max-view-wide:h-auto max-view-wide:aspect-[4/3]",wide:"max-view-wide:h-auto max-view-wide:aspect-[2/1]"};function w(e,a){return u.includes(String(a??""))?a===t(e)?null:a:null}function p(e,a){const i=w(e,a);if(i===null)return n(e);const l=t(e);return[l==="auto"?"":s[l],r[i]].filter(Boolean).join(" ")}export{u as BOX_SHAPES,d as BOX_SHAPE_OPTIONS,n as boxShapeClass,p as boxShapeClasses,t as boxShapeOf,w as boxShapePhoneOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buttonArrowShown as f}from"./button-arrow.js";import{nonEmptyString as u}from"../non-empty-string.js";const c=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car"];function l(t){return typeof t=="string"&&c.includes(t)?t:void 0}function
|
|
1
|
+
import{buttonArrowShown as f}from"./button-arrow.js";import{nonEmptyString as u}from"../non-empty-string.js";const c=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car"];function l(t){return typeof t=="string"&&c.includes(t)?t:void 0}function w(t,o){return l(t)??(f(o)?"arrow-right":"none")}function d(t){return t==="before"?"before":t==="end"?"end":"after"}function h(t,o){return d(t)==="end"&&n(o)==="fill"}function n(t){return t==="fill"||t==="fixed"?"fill":"fit"}function s(t,o){const r=n(t),e=r==="fill"?["w-full"]:[];if(u(o)){const i=n(o);i!==r&&e.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return e.join(" ")}export{c as BUTTON_ICONS,h as buttonIconAtEnd,w as buttonIconChoice,d as buttonIconSide,n as buttonWidth,s as buttonWidthClass,l as storedButtonIcon};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SourceRow } from "./block-sources.js";
|
|
2
|
+
import type { CardCopyPlace } from "./mirror-cards.js";
|
|
2
3
|
export declare const CARD_TEMPLATE_SLOT = "template";
|
|
3
4
|
export declare const CARD_TEMPLATE_LABEL = "Card template";
|
|
4
5
|
export declare const CARD_TEMPLATE_BLOCKS: readonly ["Text", "ImageBlock", "ButtonBlock", "Flex"];
|
|
@@ -42,4 +43,5 @@ type DocNode = {
|
|
|
42
43
|
};
|
|
43
44
|
export declare function cardTemplateOwner(appState: unknown, id: unknown): DocNode | null | undefined;
|
|
44
45
|
export declare function cardTemplateCardOwner(appState: unknown, id: unknown): DocNode | null | undefined;
|
|
46
|
+
export declare function cardCopyPlace(appState: unknown, id: unknown): CardCopyPlace | undefined;
|
|
45
47
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNodeList as
|
|
1
|
+
import{isNodeList as b}from"efficient-easel/data";import{BOX_TYPE as k}from"../document/container-blocks.js";import{globalRegistry as T}from"../global-registry.js";const B="template",L="Card template",w=["Text","ImageBlock","ButtonBlock","Flex"],f="rowField",A="rowLinkField";function P(){return{type:"slot",allow:[...w]}}const C=[{block:"OrderSummary",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]}];function l(){return T("efficient.card-templates",()=>new Map(C.map(e=>[e.block,e])))}function h(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const n=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);n.some(c=>c.type===o.type)||n.push({type:o.type,label:o.label||o.type})}l().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:n})}}function F(){for(const e of l().values())if(e.blocks?.length)return!0;return!1}function D(e){return l().get(e)?.blocks??[]}function I(e){for(const t of l().values())if(t.blocks?.some(n=>n.type===e))return!0;return!1}function g(e){return typeof e=="string"&&l().has(e)}function M(e,t){const n=l().get(e)?.fields??[];return t?n.filter(o=>(o.kind??"text")===t):n}function S(e,t){return e?l().get(e)?.fields.find(n=>n.key===t)??null:null}function d(e,t=f){const n=e?.[t];return typeof n=="string"?n.trim():""}function j(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[n,o]of Object.entries(e))typeof o=="string"&&(t[n]=o);return t}const m={Text:{text:f},ImageBlock:{src:f},ButtonBlock:{label:f,href:A}};function N(e,t,n){const o=m[e]?.[n];return!!(o&&d(t,o))}function O(e,t){return!t||!e?null:e[t]??""}function W(e,t,n){if(!n)return t;let o=null;for(const[c,i]of Object.entries(m[e]??{})){const r=O(n,d(t,i));r!==null&&(o??={...t},o[c]=r)}return o??t}function u(e,t){const n=e?.data?.content;if(!Array.isArray(n)||typeof t!="string")return;const o=(i,r)=>{for(const s of i){if(s?.props?.id===t)return r;for(const[x,a]of Object.entries(s?.props??{})){if(!b(a))continue;const y=x===B&&g(s.type)?{owner:s,direct:!0,nested:r!==null,underBox:!1}:r&&{owner:r.owner,direct:!1,nested:r.nested,underBox:r.underBox||s.type===k},p=o(a,y);if(p!==void 0)return p}}},c=o(n,null);return c===void 0?null:c}function v(e,t){const n=u(e,t);return n&&n.owner}function K(e,t){const n=u(e,t);return n&&(n.direct?n.owner:null)}function U(e,t){const n=u(e,t);if(n!==void 0)return n===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:n.nested,underBox:n.underBox}}export{f as CARD_ROW_FIELD_PROP,A as CARD_ROW_LINK_PROP,w as CARD_TEMPLATE_BLOCKS,L as CARD_TEMPLATE_LABEL,B as CARD_TEMPLATE_SLOT,U as cardCopyPlace,j as cardRow,D as cardTemplateBlocks,K as cardTemplateCardOwner,S as cardTemplateField,M as cardTemplateFields,v as cardTemplateOwner,P as cardTemplateSlot,F as cardTemplatesNameBlocks,g as hasCardTemplate,I as isCardTemplateBlock,d as namedRowField,h as registerCardTemplates,N as rowBound,O as rowFieldText,W as rowFilledProps};
|
|
@@ -25,7 +25,7 @@ export declare function siteBlockGapTokens(v?: number | null): Record<string, st
|
|
|
25
25
|
export declare const SITE_BLOCK_GAP_PHONE_VAR = "--sf-block-gap-phone";
|
|
26
26
|
export declare const SITE_BLOCK_GAP_PHONE_REM_VAR = "--sf-block-gap-phone-rem";
|
|
27
27
|
export declare const SITE_BLOCK_GAP_ON_PHONE_VAR = "--sf-block-gap-on-phone";
|
|
28
|
-
export declare const SITE_BLOCK_GAP_PHONE_CLASS = "max-
|
|
28
|
+
export declare const SITE_BLOCK_GAP_PHONE_CLASS = "max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";
|
|
29
29
|
export declare function siteBlockGapPhoneTokens(v?: number | null): Record<string, string>;
|
|
30
30
|
export declare function siteBlockGapPhoneClass(v?: number | null): string;
|
|
31
31
|
export declare const GAP_ZONE_CLASS = "sf-gap-zone";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const y="sf.gapContainer",r={min:-32,max:64,step:2},f={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},u={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},g=new Set(["Events","GalleryB"]);function x(t,
|
|
1
|
+
const y="sf.gapContainer",r={min:-32,max:64,step:2},f={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},u={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},g=new Set(["Events","GalleryB"]);function x(n,t,o){if(typeof t=="number"&&Number.isFinite(t)&&t>=r.min)return t;if(typeof t=="string"){const e=f[n]?.[t];if(typeof e=="number")return e}return typeof o=="number"&&Number.isFinite(o)?o:u[n]}const b="sf-gap-overlap",O="--sf-gap-overlap",A="--sf-block-gap",C="--sf-block-gap-rem",l={min:0,max:r.max,step:r.step};function a(n){if(typeof n!="number"||!Number.isFinite(n))return null;const t=Math.min(Math.max(Math.round(n),l.min),l.max);return t-t%l.step}function V(n){const t=a(n);return t===null?{}:{[A]:`${t}px`,[C]:`${t/16}rem`}}const L="--sf-block-gap-phone",R="--sf-block-gap-phone-rem",T="--sf-block-gap-on-phone",S="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function H(n){const t=a(n);return t===null?{}:{[L]:`${t}px`,[R]:`${t/16}rem`}}function d(n){return a(n)===null?"":S}const G="sf-gap-zone",m="--sf-gap-len";function E(n,t){return typeof t=="number"&&Number.isFinite(t)&&t>=r.min?!0:typeof t=="string"&&typeof f[n]?.[t]=="number"}const P="--sf-gap-len-phone",I="--sf-gap-len-tablet",h={min:0,max:r.max,step:r.step};function s(n){return typeof n=="number"&&Number.isFinite(n)&&n>=h.min}function $(n){return n/2}function B(n,t,o){return s(o)&&!E(n,t)}function F(n,t,o,e,p){return s(t)?t:B(n,o,p)?p:$(x(n,o,e))}const k={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function w(n,t,o,e,p){const _={...s(e)?{[P]:`${e}px`}:null,...s(p)?{[I]:`${p}px`}:null};if(!E(n,t)){const c=`${u[n]}px`,N=g.has(n)?`var(--sf-card-gap, ${c})`:c;return{className:` ${G}`,style:{[m]:`var(${A}, ${N})`,[P]:`var(${T})`,..._}}}const i=x(n,t);return i>=0?{className:` ${G}`,style:{[m]:`${i}px`,..._}}:{className:` ${b} ${k[o]}`,style:{gap:"0px",[O]:`${-i/2}px`}}}export{g as CARD_GRID_CONTAINERS,r as CONTAINER_GAP,u as CONTAINER_GAP_BUILT_IN,f as CONTAINER_GAP_LEGACY,h as CONTAINER_GAP_PHONE,y as GAP_FIELD_CONTAINER,m as GAP_LENGTH_VAR,b as GAP_OVERLAP_CLASS,O as GAP_OVERLAP_VAR,P as GAP_PHONE_LENGTH_VAR,I as GAP_TABLET_LENGTH_VAR,G as GAP_ZONE_CLASS,l as SITE_BLOCK_GAP,T as SITE_BLOCK_GAP_ON_PHONE_VAR,S as SITE_BLOCK_GAP_PHONE_CLASS,R as SITE_BLOCK_GAP_PHONE_REM_VAR,L as SITE_BLOCK_GAP_PHONE_VAR,C as SITE_BLOCK_GAP_REM_VAR,A as SITE_BLOCK_GAP_VAR,w as containerGapProps,B as followsSitePhoneGap,$ as halfDesktopGap,E as hasOwnContainerGap,s as hasOwnPhoneGap,a as normalizeSiteBlockGap,x as resolveContainerGap,F as resolvePhoneContainerGap,d as siteBlockGapPhoneClass,H as siteBlockGapPhoneTokens,V as siteBlockGapTokens};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type MirrorCards = "even" | "odd";
|
|
2
|
+
export declare const MIRROR_CARDS_LABEL = "Mirror cards";
|
|
3
|
+
export declare const MIRROR_CARDS_OFF = "off";
|
|
4
|
+
export declare const MIRROR_CARDS_OPTIONS: readonly {
|
|
5
|
+
value: MirrorCards | typeof MIRROR_CARDS_OFF;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const MIRROR_CARDS_TITLES: Readonly<Record<MirrorCards, string>>;
|
|
9
|
+
export declare function mirrorCardsOf(value: unknown): MirrorCards | null;
|
|
10
|
+
export declare function mirrorCardsWrite(answer: unknown): MirrorCards | undefined;
|
|
11
|
+
export type MirrorCardsBox = {
|
|
12
|
+
direction?: unknown;
|
|
13
|
+
separator?: unknown;
|
|
14
|
+
loop?: unknown;
|
|
15
|
+
line?: unknown;
|
|
16
|
+
bgImage?: unknown;
|
|
17
|
+
columns?: unknown;
|
|
18
|
+
columnsTablet?: unknown;
|
|
19
|
+
share?: unknown;
|
|
20
|
+
wrap?: unknown;
|
|
21
|
+
};
|
|
22
|
+
export type CardCopyPlace = {
|
|
23
|
+
inCopy: boolean;
|
|
24
|
+
nestedCopy: boolean;
|
|
25
|
+
underBox: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare function ownsCard(place: CardCopyPlace): boolean;
|
|
28
|
+
export declare function mirrorCardsActs(box: MirrorCardsBox, ownsCard: boolean, sharedColumns: boolean): boolean;
|
|
29
|
+
export declare function isMirroredCopy(value: unknown, index: number | undefined): boolean;
|
|
30
|
+
export declare const MIRROR_ROW_CLASS = "view-wide:flex-row-reverse";
|
|
31
|
+
export declare function mirroredTextClasses(mirrored: boolean, align: unknown, partAlign: unknown): string;
|
|
32
|
+
export declare function mirroredBoxClass(mirrored: boolean, direction: unknown, justify: unknown, align: unknown): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isBackgroundBox as i}from"./box-background.js";import{boxColumnsClass as a,boxShareClasses as d,boxTabletColumnsClass as f,boxWrapClass as u}from"./box-layout.js";import{isStripBox as l}from"./box-separator.js";const v="Mirror cards",w="off",A=[{value:w,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],I={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function n(r){return r==="even"||r==="odd"?r:null}function O(r){return n(r)??void 0}function y(r){return r.inCopy&&!r.nestedCopy&&!r.underBox}function g(r,e,t){return!e||r.direction!=="row"||t||l("row",r.separator)||r.loop==="scroll"||r.line===!0||i(typeof r.bgImage=="string"?r.bgImage:void 0)||a(r.columns)!==""||f(r.columnsTablet)!==""?!1:!(d(r.share)===""&&u(r.wrap)!=="")}function x(r,e){const t=n(r);return!t||typeof e!="number"||!Number.isInteger(e)||e<0?!1:t==="even"?e%2===1:e%2===0}const h="view-wide:flex-row-reverse",c={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},p={left:"view-wide:text-right!",right:"view-wide:text-left!"},m={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},C={start:"view-wide:items-end!",end:"view-wide:items-start!"},o=(r,e)=>typeof e=="string"&&Object.prototype.hasOwnProperty.call(r,e)?r[e]:"";function T(r,e,t){return r?[o(c,e),o(p,t)].filter(Boolean).join(" "):""}function M(r,e,t,s){return r?e==="row"?o(m,t):e==="column"?o(C,s):"":""}export{v as MIRROR_CARDS_LABEL,w as MIRROR_CARDS_OFF,A as MIRROR_CARDS_OPTIONS,I as MIRROR_CARDS_TITLES,h as MIRROR_ROW_CLASS,x as isMirroredCopy,g as mirrorCardsActs,n as mirrorCardsOf,O as mirrorCardsWrite,M as mirroredBoxClass,T as mirroredTextClasses,y as ownsCard};
|
|
@@ -26,7 +26,7 @@ export declare const SITE_GUTTER_PHONE: {
|
|
|
26
26
|
readonly step: 4;
|
|
27
27
|
};
|
|
28
28
|
export declare const SITE_GUTTER_PHONE_VAR = "--sf-site-gutter-phone";
|
|
29
|
-
export declare const SITE_GUTTER_PHONE_CLASS = "max-
|
|
29
|
+
export declare const SITE_GUTTER_PHONE_CLASS = "max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!";
|
|
30
30
|
export declare const SITE_GUTTER_CAP: string;
|
|
31
31
|
export declare const SITE_GUTTER_CLASS: string;
|
|
32
32
|
export declare const PRE_SITE_GUTTER_CLASSES: readonly ["px-10", "px-[60px]"];
|
|
@@ -38,8 +38,8 @@ export declare const SITE_GUTTER_NARROW: {
|
|
|
38
38
|
};
|
|
39
39
|
export declare const SITE_GUTTER_SUBSTITUTIONS: ReadonlyArray<readonly [string, string]>;
|
|
40
40
|
export declare function asMainGutters(html: string): string;
|
|
41
|
-
export declare const SITE_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-
|
|
42
|
-
export declare const EDITORIAL_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-
|
|
41
|
+
export declare const SITE_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
|
|
42
|
+
export declare const EDITORIAL_COLUMN = "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))]";
|
|
43
43
|
export declare function normalizeSiteGutter(v?: number | null): number;
|
|
44
44
|
export declare function siteGutterTokens(v?: number | null): Record<string, string>;
|
|
45
45
|
export declare function normalizeSiteGutterPhone(v?: number | null): number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function M(t,e){if(t!==!1)return null;const i=typeof e=="number"?e:r.default;return a(i)}const m="--sf-site-width",p=`var(${m},${r.default}px)`,R=`max-w-[${p}]`,b=`max-w-[${r.default}px]`;function w(t){return typeof t!="number"||!Number.isFinite(t)?r.default:Math.round(Math.min(Math.max(t,r.min),r.max))}function g(t){const e=w(t);return e===r.default?{}:{[m]:`${e}px`}}const o={min:0,max:80,step:4,default:40},_="--sf-site-gutter",u={min:0,max:24,step:4},C="--sf-site-gutter-phone",S="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",n=`var(${_},${o.default}px)`,A=`px-[${n}]`,D=["px-10","px-[60px]"],x={md:`min(24px,${n})`,sm:`min(20px,${n})`,frame:`min(24px,${n})`,tabs:`min(16px,${n})`},h=[[`max-view-desktop:px-[${x.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${x.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${x.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${x.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${x.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${x.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${x.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${x.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${n}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${n})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${n})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${n})]`,"max-view-tablet:-mx-5"],[`-mx-[${n}]`,"-mx-10"],[A,"px-10"]];function U(t){return h.reduce((e,[i,d])=>e.split(i).join(d),t)}const W="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",L="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))]";function c(t){return typeof t!="number"||!Number.isFinite(t)?o.default:Math.round(Math.min(Math.max(t,o.min),o.max))}function N(t){const e=c(t);return e===o.default?{}:{[_]:`${e}px`}}function f(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,u.min),u.max))}function k(t){const e=f(t);return e===null?{}:{[C]:`${e}px`}}function V(t){return f(t)===null?"":S}function y(t){return Math.min(u.max,c(t))}function $(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function B(t=0){return`max-w-[${$(t).replace(/ /g,"_")}]`}const l=p,F=`max-w-[${l}]`,z=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,E="--sf-hero-cap",H=`var(${E},none)`,K=`max-w-[${H}]`,I="--sf-hero-bleed-m",v="--sf-hero-bleed-w",O="--sf-hero-chrome-x",P="--sf-hero-chrome-cap";function j(t){return t===!0?{[E]:l,[I]:"auto",[v]:"100%",[O]:"24px",[P]:"none"}:{}}const s=`calc(${p} - ${n}*2)`,q=`max-w-[${s.replace(/ /g,"_")}]`,J=R;function Q(t){return t!==!1?null:a(T)}const G="--sf-chrome-cap",T=`var(${G},${s})`,X="data-page-width";function Y(t){return t==="full"?"full":null}function Z(t){return t==="full"?null:a(t==="content"?s:T)}function tt(t){if(t==="full")return"full";if(t==="content")return"content"}export{T as CHROME_CAP_READ,G as CHROME_CAP_VAR,s as CHROME_WIDTH_CAP,q as CHROME_WIDTH_CAP_CLASS,L as EDITORIAL_COLUMN,H as HERO_BACKGROUND_CAP,K as HERO_BACKGROUND_CAP_CLASS,E as HERO_BACKGROUND_VAR,I as HERO_BLEED_MARGIN_VAR,v as HERO_BLEED_WIDTH_VAR,l as HERO_CAP,F as HERO_CAP_CLASS,P as HERO_CHROME_CAP_VAR,O as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,X as PAGE_WIDTH_ATTR,J as PRE_CHROME_WIDTH_CAP_CLASS,z as PRE_HERO_CAP_CLASS,D as PRE_SITE_GUTTER_CLASSES,b as PRE_SITE_WIDTH_CAP_CLASS,W as SITE_COLUMN,o as SITE_GUTTER,n as SITE_GUTTER_CAP,A as SITE_GUTTER_CLASS,x as SITE_GUTTER_NARROW,u as SITE_GUTTER_PHONE,S as SITE_GUTTER_PHONE_CLASS,C as SITE_GUTTER_PHONE_VAR,h as SITE_GUTTER_SUBSTITUTIONS,_ as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,R as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,U as asMainGutters,a as centredCap,Z as chromeWidthStyle,j as heroBackgroundTokens,c as normalizeSiteGutter,f as normalizeSiteGutterPhone,w as normalizeSiteWidth,Y as pageWidthMarker,M as pageWidthStyle,tt as resolveChromeWidth,V as siteGutterPhoneClass,y as siteGutterPhoneFollows,k as siteGutterPhoneTokens,N as siteGutterTokens,$ as siteHalfColumnCap,B as siteHalfColumnCapClass,Q as siteWidthCapStyle,g as siteWidthTokens};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function r(e){if(!e||typeof e!="object"||Array.isArray(e))return{};const
|
|
1
|
+
function r(e){if(!e||typeof e!="object"||Array.isArray(e))return{};const t={};for(const[o,n]of Object.entries(e))typeof n=="boolean"&&(t[o]=n);return t}function s(e,t){return r(e)[t]!==!1}function f(e,t,o){const n=r(t)[o];return typeof n=="boolean"?n:s(e,o)}function c(e){return Object.values(r(e)).some(t=>t===!1)}function p(e){return Object.keys(r(e)).length>0}function u(e,t,o){const n={...r(e)};return o?delete n[t]:n[t]=!1,Object.keys(n).length?n:void 0}function a(e,t,o){return{...r(e),[t]:o}}function h(e,t,o){const n=s(e,o),i=f(e,t,o);return n&&i?"":!n&&!i?"hidden":n?"max-view-tablet:hidden":"view-tablet:hidden"}export{c as desktopDisplayChanged,h as partDisplayClass,s as partShownOnDesktop,f as partShownOnPhone,p as phoneDisplayChanged,r as readPartDisplay,u as withDesktopPart,a as withPhonePart};
|
|
@@ -61,5 +61,5 @@ export declare function sectionMinHeightAttrs(props: SectionMinHeightProps & Sec
|
|
|
61
61
|
export declare function sectionFillsHeight(props: Record<string, unknown>): boolean;
|
|
62
62
|
export declare const SECTION_FILL_PASS_CLASS = "grid grid-cols-[minmax(0,1fr)]";
|
|
63
63
|
export declare const SECTION_FILL_CLASS = "h-full";
|
|
64
|
-
export declare const SECTION_FILL_PASS_PHONE_CLASS = "max-
|
|
64
|
+
export declare const SECTION_FILL_PASS_PHONE_CLASS = "max-view-tablet:grid grid-cols-[minmax(0,1fr)]";
|
|
65
65
|
export declare function sectionFillPassClass(props: Record<string, unknown>): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const I=["auto","fixed","screen"],f=["px","%"],M="svh",P="vh",E="var(--sf-header-h, 88px)",S={min:40,max:2e3,step:10,fallback:600},g={min:10,max:200,step:5,fallback:100},x="sf-section-minh",s="grid-cols-[minmax(0,1fr)]",l={base:"--sf-section-minh",small:"--sf-section-minh-s"},h=e=>typeof e=="string"&&I.includes(e),T=e=>typeof e=="string"&&f.includes(e);function H(e){const t=h(e.sectionHeightMode)?e.sectionHeightMode:"auto",n=t==="screen"?"%":T(e.sectionHeightUnit)?e.sectionHeightUnit:"px",o=t==="screen"?g.fallback:S.fallback,i=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:o;return{mode:t,value:i,unit:n}}function a(e){const{mode:t,value:n,unit:o}=H(e);if(t==="auto")return;if(t==="fixed"&&o==="px")return[`${n}px`,null];const i=n/100,c=r=>t==="screen"?`(100${r} - ${E})`:`100${r}`;return[`calc(${c("vh")} * ${i})`,`calc(${c("svh")} * ${i})`]}function _(e){const t=a(e);if(!t)return;const[n,o]=t;return{display:"grid",[l.base]:n,...o?{[l.small]:o}:{}}}const p=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),A="Height",N="sf-section-minh-phone",u={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function d(e){return h(e.sectionHeightModePhone)}function U(e){return H({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function C(e){const t=_(e),n=d(e)?a({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})??(t?["auto",null]:void 0):void 0;if(!t&&!n)return null;const o=[x,s],i={...t??{}};return n&&(o.push(N),i[u.base]=n[0],n[1]&&(i[u.small]=n[1])),{className:o.join(" "),style:i}}function O(e){return C(e)!==null}const m=`grid ${s}`,
|
|
1
|
+
const I=["auto","fixed","screen"],f=["px","%"],M="svh",P="vh",E="var(--sf-header-h, 88px)",S={min:40,max:2e3,step:10,fallback:600},g={min:10,max:200,step:5,fallback:100},x="sf-section-minh",s="grid-cols-[minmax(0,1fr)]",l={base:"--sf-section-minh",small:"--sf-section-minh-s"},h=e=>typeof e=="string"&&I.includes(e),T=e=>typeof e=="string"&&f.includes(e);function H(e){const t=h(e.sectionHeightMode)?e.sectionHeightMode:"auto",n=t==="screen"?"%":T(e.sectionHeightUnit)?e.sectionHeightUnit:"px",o=t==="screen"?g.fallback:S.fallback,i=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:o;return{mode:t,value:i,unit:n}}function a(e){const{mode:t,value:n,unit:o}=H(e);if(t==="auto")return;if(t==="fixed"&&o==="px")return[`${n}px`,null];const i=n/100,c=r=>t==="screen"?`(100${r} - ${E})`:`100${r}`;return[`calc(${c("vh")} * ${i})`,`calc(${c("svh")} * ${i})`]}function _(e){const t=a(e);if(!t)return;const[n,o]=t;return{display:"grid",[l.base]:n,...o?{[l.small]:o}:{}}}const p=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),A="Height",N="sf-section-minh-phone",u={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function d(e){return h(e.sectionHeightModePhone)}function U(e){return H({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function C(e){const t=_(e),n=d(e)?a({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})??(t?["auto",null]:void 0):void 0;if(!t&&!n)return null;const o=[x,s],i={...t??{}};return n&&(o.push(N),i[u.base]=n[0],n[1]&&(i[u.small]=n[1])),{className:o.join(" "),style:i}}function O(e){return C(e)!==null}const m=`grid ${s}`,b="h-full",L=`max-view-tablet:grid ${s}`;function V(e){return O(e)?_(e)?m:L:""}export{E as HEADER_HEIGHT_VAR,b as SECTION_FILL_CLASS,m as SECTION_FILL_PASS_CLASS,L as SECTION_FILL_PASS_PHONE_CLASS,s as SECTION_GRID_COLUMN_CLASS,I as SECTION_HEIGHT_MODES,f as SECTION_HEIGHT_UNITS,S as SECTION_MIN_HEIGHT,x as SECTION_MIN_HEIGHT_CLASS,p as SECTION_MIN_HEIGHT_EXCLUDED,A as SECTION_MIN_HEIGHT_GROUP_LABEL,N as SECTION_MIN_HEIGHT_PHONE_CLASS,u as SECTION_MIN_HEIGHT_PHONE_VARS,l as SECTION_MIN_HEIGHT_VARS,g as SECTION_SCREEN_PCT,M as VIEWPORT_UNIT,P as VIEWPORT_UNIT_FALLBACK,d as hasPhoneHeight,U as resolvePhoneHeight,H as resolveSectionMinHeight,V as sectionFillPassClass,O as sectionFillsHeight,C as sectionMinHeightAttrs,a as sectionMinHeightLengths,_ as sectionMinHeightStyle};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RESPONSIVE_RULES: "v1" | "v2";
|
|
2
|
+
export declare const VIEW_LINE_PX: {
|
|
3
|
+
readonly "view-tablet": 720;
|
|
4
|
+
readonly "view-desktop": 1100;
|
|
5
|
+
readonly "view-wide": 800 | 720;
|
|
6
|
+
};
|
|
7
|
+
export type ViewLine = keyof typeof VIEW_LINE_PX;
|
|
8
|
+
export declare function breakpointOf(variant: string): {
|
|
9
|
+
px: number;
|
|
10
|
+
max: boolean;
|
|
11
|
+
} | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VIEW_DESKTOP_MIN as r,VIEW_TABLET_MIN as i}from"efficient-easel/screen/lib/content/view-tiers";const s="v1",c=e=>e==="v2"?i:800,x={"view-tablet":i,"view-desktop":r,"view-wide":c(s)};function p(e){const n=e.startsWith("max-"),o=n?e.slice(4):e;if(o in x)return{px:x[o],max:n};const t=/^(max|min)-\[(\d+)px\]$/.exec(e);return t?{px:Number(t[2]),max:t[1]==="max"}:void 0}export{s as RESPONSIVE_RULES,x as VIEW_LINE_PX,p as breakpointOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={slides:{type:"slot"},strip:{type:"slot",allow:["Flex"]}},t={label:"Hero Slideshow",fields:e,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};export{t as HeroMeta,e as HeroSlots};
|
|
@@ -249,6 +249,8 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
249
249
|
readonly "Card title two": "Card title two";
|
|
250
250
|
readonly "Card type": "Card type";
|
|
251
251
|
readonly Cards: "Cards";
|
|
252
|
+
readonly "Cards 1, 3, 5 draw the other way round": "Cards 1, 3, 5 draw the other way round";
|
|
253
|
+
readonly "Cards 2, 4, 6 draw the other way round": "Cards 2, 4, 6 draw the other way round";
|
|
252
254
|
readonly "Cards from": "Cards from";
|
|
253
255
|
readonly Cart: "Cart";
|
|
254
256
|
readonly Cash: "Cash";
|
|
@@ -400,6 +402,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
400
402
|
readonly "Dynamic Pages": "Dynamic Pages";
|
|
401
403
|
readonly "EU Tyre Label": "EU Tyre Label";
|
|
402
404
|
readonly "Each block": "Each block";
|
|
405
|
+
readonly "Each row": "Each row";
|
|
403
406
|
readonly "Each side": "Each side";
|
|
404
407
|
readonly "Each website created from this template sets its own appearance afterwards.": "Each website created from this template sets its own appearance afterwards.";
|
|
405
408
|
readonly "Each website created from this template sets its own header afterwards.": "Each website created from this template sets its own header afterwards.";
|
|
@@ -429,6 +432,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
429
432
|
readonly Equal: "Equal";
|
|
430
433
|
readonly Essay: "Essay";
|
|
431
434
|
readonly Even: "Even";
|
|
435
|
+
readonly "Even cards": "Even cards";
|
|
432
436
|
readonly "Every Publish keeps a copy of the whole website: pages, menus and site styles.": "Every Publish keeps a copy of the whole website: pages, menus and site styles.";
|
|
433
437
|
readonly "Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.": "Every text on the site that follows {style} changes to look like this one. This text’s own changes are cleared, and it keeps following {style}.";
|
|
434
438
|
readonly "Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.": "Every {part} in this section follows it. The face and the size change; the letter case is the section’s own and stays as it is.";
|
|
@@ -716,6 +720,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
716
720
|
readonly "Milestone Timeline": "Milestone Timeline";
|
|
717
721
|
readonly "Milestone title.": "Milestone title.";
|
|
718
722
|
readonly Milestones: "Milestones";
|
|
723
|
+
readonly "Mirror cards": "Mirror cards";
|
|
719
724
|
readonly Mixed: "Mixed";
|
|
720
725
|
readonly "Mockup Card": "Mockup Card";
|
|
721
726
|
readonly "Mockup card": "Mockup card";
|
|
@@ -766,6 +771,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
766
771
|
readonly "Number style": "Number style";
|
|
767
772
|
readonly Numbers: "Numbers";
|
|
768
773
|
readonly "N\u00B001, N\u00B002": "N°01, N°02";
|
|
774
|
+
readonly "Odd cards": "Odd cards";
|
|
769
775
|
readonly Off: "Off";
|
|
770
776
|
readonly Office: "Office";
|
|
771
777
|
readonly Offices: "Offices";
|
|
@@ -916,6 +922,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
916
922
|
readonly Rotate: "Rotate";
|
|
917
923
|
readonly "Rounds the picture. Left alone it stays square.": "Rounds the picture. Left alone it stays square.";
|
|
918
924
|
readonly "Rounds the picture. The card's own corner is in Styles.": "Rounds the picture. The card's own corner is in Styles.";
|
|
925
|
+
readonly "Row columns": "Row columns";
|
|
919
926
|
readonly Sans: "Sans";
|
|
920
927
|
readonly Save: "Save";
|
|
921
928
|
readonly "Save as Template": "Save as Template";
|
|
@@ -967,6 +974,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
967
974
|
readonly Shape: "Shape";
|
|
968
975
|
readonly "Share button": "Share button";
|
|
969
976
|
readonly Shared: "Shared";
|
|
977
|
+
readonly "Shared, scroll": "Shared, scroll";
|
|
970
978
|
readonly "Shop & galleries": "Shop & galleries";
|
|
971
979
|
readonly "Short description of this figure.": "Short description of this figure.";
|
|
972
980
|
readonly "Short detail line": "Short detail line";
|