efficient-web-builder 67.1.0 → 67.2.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/StorefrontEditor.js +1 -1
- package/dist/editor/components/storefront-editor.css +131 -0
- package/dist/editor/lib/animation/fields.js +1 -1
- package/dist/editor/lib/animation/hover-fields.d.ts +8 -0
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/box-fields.d.ts +1 -1
- package/dist/editor/lib/document/card-display-chips.d.ts +1 -0
- package/dist/editor/lib/document/card-display-chips.js +1 -1
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/sections/section-dry-run.js +2 -2
- package/dist/format/lib/animation/hover.d.ts +3 -0
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/container-gap.d.ts +2 -2
- package/dist/format/lib/content/container-gap.js +1 -1
- package/dist/format/lib/content/css-length.d.ts +17 -1
- package/dist/format/lib/content/css-length.js +1 -1
- package/dist/format/lib/content/hover-media.d.ts +6 -1
- package/dist/format/lib/content/hover-media.js +1 -1
- package/dist/format/lib/content/image-treatment.d.ts +3 -0
- package/dist/format/lib/content/image-treatment.js +1 -1
- 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/editor-words-catalogue.d.ts +4 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/site-theme-row.d.ts +6 -0
- package/dist/format/lib/source-rules/no-hard-coded-option-rows.d.ts +1 -1
- package/dist/format/lib/source-rules/no-hard-coded-option-rows.js +1 -1
- package/dist/format/lib/source-rules/site-square-by-default.js +1 -1
- package/dist/format/lib/theme.d.ts +1 -1
- package/dist/format/lib/theme.js +4 -4
- package/dist/render/components/CardRowContext.d.ts +3 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Flex.d.ts +2 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/HoverMediaLayer.d.ts +16 -1
- package/dist/render/components/HoverMediaLayer.js +1 -1
- package/dist/render/components/ImageBlock.d.ts +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/PictureHoverMove.d.ts +1 -0
- package/dist/render/components/PictureHoverMove.js +1 -1
- package/dist/render/components/PreviewHeaderContext.d.ts +4 -1
- package/dist/render/components/PreviewHeaderContext.js +1 -1
- package/dist/render/lib/content/block-size.d.ts +6 -0
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +6 -1
- 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.js +1 -1
- package/dist/render/lib/document/passes/block-size.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{siteLengthCss as _}from"./css-length.js";const H="sf.gapContainer",r={min:-32,max:64,step:2},x={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},m={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},L=new Set(["Events","GalleryB"]);function A(t,n,o){if(typeof n=="number"&&Number.isFinite(n)&&n>=r.min)return n;if(typeof n=="string"){const e=x[t]?.[n];if(typeof e=="number")return e}return typeof o=="number"&&Number.isFinite(o)?o:m[t]}const R="sf-gap-overlap",h="--sf-gap-overlap",a="--sf-block-gap",G="--sf-block-gap-rem",s={min:0,max:r.max,step:r.step};function c(t){if(typeof t!="number"||!Number.isFinite(t))return null;const n=Math.min(Math.max(Math.round(t),s.min),s.max);return n-n%s.step}function d(t,n){const o=_(t,n,"gap",s);if(o!==null)return{[a]:o,[G]:o};const e=c(t);return e===null?{}:{[a]:`${e}px`,[G]:`${e/16}rem`}}const E="--sf-block-gap-phone",P="--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 F(t,n){const o=_(t,n,"gap",s);if(o!==null)return{[E]:o,[P]:o};const e=c(t);return e===null?{}:{[E]:`${e}px`,[P]:`${e/16}rem`}}function w(t){return c(t)===null?"":S}const N="sf-gap-zone",g="--sf-gap-len";function b(t,n){return typeof n=="number"&&Number.isFinite(n)&&n>=r.min?!0:typeof n=="string"&&typeof x[t]?.[n]=="number"}const O="--sf-gap-len-phone",I="--sf-gap-len-tablet",$={min:0,max:r.max,step:r.step};function i(t){return typeof t=="number"&&Number.isFinite(t)&&t>=$.min}function B(t){return t/2}function k(t,n,o){return i(o)&&!b(t,n)}function K(t,n,o,e,p){return i(n)?n:k(t,o,p)?p:B(A(t,o,e))}const y={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function M(t,n,o,e,p){const u={...i(e)?{[O]:`${e}px`}:null,...i(p)?{[I]:`${p}px`}:null};if(!b(t,n)){const f=`${m[t]}px`,C=L.has(t)?`var(--sf-card-gap, ${f})`:f;return{className:` ${N}`,style:{[g]:`var(${a}, ${C})`,[O]:`var(${T})`,...u}}}const l=A(t,n);return l>=0?{className:` ${N}`,style:{[g]:`${l}px`,...u}}:{className:` ${R} ${y[o]}`,style:{gap:"0px",[h]:`${-l/2}px`}}}export{L as CARD_GRID_CONTAINERS,r as CONTAINER_GAP,m as CONTAINER_GAP_BUILT_IN,x as CONTAINER_GAP_LEGACY,$ as CONTAINER_GAP_PHONE,H as GAP_FIELD_CONTAINER,g as GAP_LENGTH_VAR,R as GAP_OVERLAP_CLASS,h as GAP_OVERLAP_VAR,O as GAP_PHONE_LENGTH_VAR,I as GAP_TABLET_LENGTH_VAR,N as GAP_ZONE_CLASS,s as SITE_BLOCK_GAP,T as SITE_BLOCK_GAP_ON_PHONE_VAR,S as SITE_BLOCK_GAP_PHONE_CLASS,P as SITE_BLOCK_GAP_PHONE_REM_VAR,E as SITE_BLOCK_GAP_PHONE_VAR,G as SITE_BLOCK_GAP_REM_VAR,a as SITE_BLOCK_GAP_VAR,M as containerGapProps,k as followsSitePhoneGap,B as halfDesktopGap,b as hasOwnContainerGap,i as hasOwnPhoneGap,c as normalizeSiteBlockGap,A as resolveContainerGap,K as resolvePhoneContainerGap,w as siteBlockGapPhoneClass,F as siteBlockGapPhoneTokens,d as siteBlockGapTokens};
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
import { VIEW_ABOVE, type LengthRow, type LengthUnit } from "efficient-easel/screen/lib/content/length-units";
|
|
1
|
+
import { VIEW_ABOVE, type LengthGrid, type LengthKind, type LengthRow, type LengthUnit } from "efficient-easel/screen/lib/content/length-units";
|
|
2
2
|
type ViewTier = keyof typeof VIEW_ABOVE;
|
|
3
3
|
export declare function cssLengthOf(value: number, unit: unknown): string;
|
|
4
4
|
export declare function storedUnit(stored: unknown, base?: LengthUnit): LengthUnit;
|
|
5
5
|
export declare function ownRowUnit(props: Readonly<Record<string, unknown>>, row: LengthRow, view: ViewTier): LengthUnit;
|
|
6
6
|
export declare function rowUnitKeys(row: LengthRow, views?: readonly ViewTier[]): readonly string[];
|
|
7
|
+
export declare function siteLengthHeld(v: unknown, unit: unknown, kind: LengthKind, pxGrid: LengthGrid, { floor }?: {
|
|
8
|
+
floor?: boolean;
|
|
9
|
+
}): number | null;
|
|
10
|
+
export declare function siteLengthCss(v: unknown, unit: unknown, kind: LengthKind, pxGrid: LengthGrid, options?: {
|
|
11
|
+
floor?: boolean;
|
|
12
|
+
}): string | null;
|
|
13
|
+
export type SiteLengthUnits = Readonly<{
|
|
14
|
+
cornerRadiusUnit?: unknown;
|
|
15
|
+
siteWidthUnit?: unknown;
|
|
16
|
+
siteGutterUnit?: unknown;
|
|
17
|
+
siteGutterPhoneUnit?: unknown;
|
|
18
|
+
blockGapUnit?: unknown;
|
|
19
|
+
blockGapPhoneUnit?: unknown;
|
|
20
|
+
}>;
|
|
21
|
+
export declare function siteLengthUnitsOfRow(row: object): SiteLengthUnits;
|
|
22
|
+
export declare function siteLengthNumber<T>(v: unknown, unit: unknown, px: (v?: number | null) => T): number | T;
|
|
7
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{viewKeyAt as
|
|
1
|
+
import{viewKeyAt as f}from"efficient-easel/screen/lib/content/view-tiers";import{finiteNumber as l}from"../finite-number.js";import{VIEW_ABOVE as o,isLengthUnit as c,lengthOf as _,rowGrid as d}from"efficient-easel/screen/lib/content/length-units";const a=(()=>{const e=Object.keys(o),t=e.filter(n=>o[n]===null);for(let n=e.find(i=>o[i]===t[0]);n&&!t.includes(n);n=e.find(i=>o[i]===t[t.length-1]))t.push(n);return t})();function m(e,t){const n=_(e,p(t));return typeof n=="number"?`${n}px`:n}function p(e,t="px"){return c(e)?e:t}function L(e,t,n){return t.unitKey?p(e[f(t.unitKey,n)],t.base??"px"):t.base??"px"}function O(e,t=a){return e.unitKey?t.map(n=>f(e.unitKey,n)):[]}function x(e,t,n,i,{floor:u=!1}={}){const r=l(e);if(!c(t)||t==="px"||r===void 0)return null;const s=d({kind:n},t,i),h=Math.min(s.max,Math.max(u?s.step:s.min,r));return Math.round(h*100)/100}function E(e,t,n,i,u){const r=x(e,t,n,i,u);return r===null?null:m(r,t)}const b={cornerRadiusUnit:"corner_radius_unit",siteWidthUnit:"site_width_unit",siteGutterUnit:"site_gutter_unit",siteGutterPhoneUnit:"site_gutter_phone_unit",blockGapUnit:"block_gap_unit",blockGapPhoneUnit:"block_gap_phone_unit"};function k(e){const t=e;return Object.fromEntries(Object.entries(b).map(([n,i])=>[n,p(t[i])]))}function G(e,t,n){const i=l(e);return c(t)&&t!=="px"&&i!==void 0?i:n(i??null)}export{m as cssLengthOf,L as ownRowUnit,O as rowUnitKeys,E as siteLengthCss,x as siteLengthHeld,G as siteLengthNumber,k as siteLengthUnitsOfRow,p as storedUnit};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { HoverMediaGroup, HoverMediaKind } from "../animation/hover.js";
|
|
1
|
+
import type { HoverMediaCover, HoverMediaGroup, HoverMediaKind } from "../animation/hover.js";
|
|
2
|
+
import type { SourceRow } from "./block-sources.js";
|
|
2
3
|
export declare const HOVER_MEDIA_LIMIT = 8;
|
|
3
4
|
export type HoverMediaItem = {
|
|
4
5
|
url?: string;
|
|
@@ -32,6 +33,10 @@ export declare function cardRowHoverMedia(at: {
|
|
|
32
33
|
kind: HoverMediaKind;
|
|
33
34
|
group: HoverMediaGroup;
|
|
34
35
|
} | null | undefined): HoverMediaPick | null;
|
|
36
|
+
export declare function hoverLayerName(row: SourceRow | null | undefined, own?: string): string;
|
|
35
37
|
export declare function hoverArrowLabel(direction: "prev" | "next", name: string): string;
|
|
36
38
|
export declare function hoverMediaCount(index: number, count: number): string;
|
|
39
|
+
export declare const HOVER_LAYER_GROUND: Readonly<Record<HoverMediaCover, string>>;
|
|
40
|
+
export declare const HOVER_ARROWS_HOST_ATTR = "data-hover-media-arrows";
|
|
41
|
+
export declare const HOVER_ARROWS_HOST_CLASS = "pointer-events-none absolute inset-0 z-[2] rounded-[inherit] max-view-wide:hidden";
|
|
37
42
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{nonEmptyString as
|
|
1
|
+
import{nonEmptyString as c}from"../non-empty-string.js";import{rowFieldText as f}from"./card-template.js";const l=8,a=(n,e)=>!!n&&!!e&&n.trim().toLowerCase()===e.trim().toLowerCase(),d=(n,e,t)=>{if(t){const r=e(t);if(r.length>0)return r}for(const r of n){const o=e(r);if(o.length>0)return o}return[]},p=n=>(n.items??[]).flatMap(e=>{const t=e.kind==="image"?c(e.url):void 0;return t?[t]:[]}),h=n=>(n.angles??[]).flatMap(e=>{const t=c(e);return t?[t]:[]});function g(n,e,t){if(!n)return null;const r=e.group==="finish";let o;if(e.kind==="renderings"){const i=n.finishes??[],s=r?i.find(u=>a(u.name,t)):void 0;o=d(i,h,s)}else{const i=n.hoverMedia?.[e.kind]??[],s=r?i.find(u=>a(u.finish,t)):void 0;o=d(i,p,s)}return o.length===0?null:{kind:e.kind,fit:e.kind==="renderings"?"contain":"cover",urls:o.slice(0,l)}}function x(n,e){return!n||!e||!n.item||typeof n.item!="object"?null:g(n.item,e,n.finish)}function R(n,e=""){return f(n,"name")||f(n,"title")||e}function _(n,e){return`${n==="prev"?"Previous":"Next"} photo of ${e}`}function w(n,e){return`Photo ${n+1} of ${e}`}const O={picture:"var(--surface)",card:"var(--card-bg)"},H="data-hover-media-arrows",M="pointer-events-none absolute inset-0 z-[2] rounded-[inherit] max-view-wide:hidden";export{H as HOVER_ARROWS_HOST_ATTR,M as HOVER_ARROWS_HOST_CLASS,O as HOVER_LAYER_GROUND,l as HOVER_MEDIA_LIMIT,x as cardRowHoverMedia,_ as hoverArrowLabel,R as hoverLayerName,w as hoverMediaCount,g as pickHoverMedia};
|
|
@@ -40,3 +40,6 @@ export declare function resolvePictureMove(hover?: (PictureHoverTreatment & {
|
|
|
40
40
|
darken?: number | null;
|
|
41
41
|
}) | null): ImageTreatment | null;
|
|
42
42
|
export declare function sitePhotographyTokens(grayscale?: boolean | null): Record<string, string>;
|
|
43
|
+
export declare const BOX_REVEAL_CLASS = "sf-box-reveal";
|
|
44
|
+
export declare const BOX_REVEAL_SHEET = "sf-box-reveal";
|
|
45
|
+
export declare const BOX_REVEAL_CSS: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{MOTION_TIMING as
|
|
1
|
+
import{MOTION_TIMING as O}from"efficient-shell/format";import{PHONE_EDGE as T}from"./view-lines.js";const f="grayscale(1) contrast(1.03)",g="Black and white";function A(o){return o===!0?{filter:f}:{}}function x(o){const{filter:e}=A(o);return e?{style:{filter:e}}:{}}const t="sf-photo-grayscale",y="data-sf-photo-host",$={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},u=`@media (hover:hover){.${t}{filter:${f};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${t}:hover,[data-sf-photo-host]:hover .${t}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${t}{transition:none}}`;function _(o){const e=O.hover,r={...o.duration!==e.duration.default?{[$.duration]:`${o.duration}s`}:{},...o.delay!==e.delay.default?{[$.delay]:`${o.delay}s`}:{}};return Object.keys(r).length?r:void 0}function H(o,e,r){if(o===!0)return x(!0);if(r?.kind==="mono"){const d=_(r);return{className:t,sheet:u,...d?{style:d}:{}}}return o===!1?{}:e===!0?{className:t}:{}}const m="data-sf-repeat",p="sf-photo-zoom",R="--sf-photo-zoom",V="sf-photo-wash",a="sf-photo-wash-rest",n="sf-photo-wash-hover",s="sf-photo-frame",v=(o,e)=>`:not([${m}]:not(${e}) .${o})`,c=(o,e)=>`[${m}]${e} .${o}${v(o,e)}`,h=(o,e)=>`${e},${c(o,":hover")},[${y}]:hover .${o}${v(o,":hover")}`,E=o=>`${o} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,C=`.${n}{opacity:0}@media (hover:hover){.${a},.${n}{transition:${E("opacity")}}${h(n,`.${s}:hover .${n}`)}{opacity:1}${h(a,`.${s}:hover .${a}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${p}{transition:${E("transform")}}${h(p,`.${s}:hover .${p}`)}{transform:scale(var(${R}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${a},.${n}{transition:none}}`,M="sf-photo-move";function B(o){if(!o||!o.zoom&&!o.darken)return null;const e=_(o);return{className:s,sheet:C,...e?{style:e}:{}}}function U(o){return o===!0?{[t]:u}:{}}const i="sf-box-reveal",w="sf-box-reveal",I=8,S=.3,l=`(min-width:${T}px)`,N=`@media ${l}{.${i}{opacity:0;transform:translateY(${I}px);transition:opacity ${S}s ease-out,transform ${S}s ease-out}${c(i,":hover")},${c(i,":focus-within")}{opacity:1;transform:none}}@media ${l} and (prefers-reduced-motion:reduce){.${i}{transition:none;transform:none}}`;export{i as BOX_REVEAL_CLASS,N as BOX_REVEAL_CSS,w as BOX_REVEAL_SHEET,m as CARD_COPY_ATTR,f as IMAGE_GRAYSCALE_FILTER,g as IMAGE_GRAYSCALE_LABEL,y as PHOTO_HOST_ATTR,$ as PHOTO_HOVER_VARS,s as PICTURE_FRAME_CLASS,C as PICTURE_MOVE_CSS,M as PICTURE_MOVE_SHEET,V as PICTURE_WASH_CLASS,n as PICTURE_WASH_HOVER_CLASS,a as PICTURE_WASH_REST_CLASS,p as PICTURE_ZOOM_CLASS,R as PICTURE_ZOOM_VAR,t as SITE_PHOTO_CLASS,u as SITE_PHOTO_CSS,x as imageTreatmentProps,A as imageTreatmentStyle,H as resolveImageTreatment,B as resolvePictureMove,U as sitePhotographyTokens};
|
|
@@ -13,7 +13,7 @@ export declare const FULL_SECTION_WIDTH = "100vw";
|
|
|
13
13
|
export declare const SITE_WIDTH_CAP_CLASS: string;
|
|
14
14
|
export declare const PRE_SITE_WIDTH_CAP_CLASS: string;
|
|
15
15
|
export declare function normalizeSiteWidth(v?: number | null): number;
|
|
16
|
-
export declare function siteWidthTokens(v?: number | null): Record<string, string>;
|
|
16
|
+
export declare function siteWidthTokens(v?: number | null, unit?: unknown): Record<string, string>;
|
|
17
17
|
export declare const SITE_GUTTER: {
|
|
18
18
|
readonly min: 0;
|
|
19
19
|
readonly max: 80;
|
|
@@ -61,10 +61,10 @@ export declare const BOX_HOLDS_NO_GUTTER_CLASS = "[--sf-box-g:var(--sf-site-gutt
|
|
|
61
61
|
export declare function withoutBoxHoldsNoGutter(html: string): string;
|
|
62
62
|
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))]";
|
|
63
63
|
export declare function normalizeSiteGutter(v?: number | null): number;
|
|
64
|
-
export declare function siteGutterTokens(v?: number | null): Record<string, string>;
|
|
64
|
+
export declare function siteGutterTokens(v?: number | null, unit?: unknown): Record<string, string>;
|
|
65
65
|
export declare function normalizeSiteGutterPhone(v?: number | null): number | null;
|
|
66
66
|
export declare function normalizeSectionContentMax(v: unknown): number | null;
|
|
67
|
-
export declare function siteGutterPhoneTokens(v?: number | null): Record<string, string>;
|
|
67
|
+
export declare function siteGutterPhoneTokens(v?: number | null, unit?: unknown): Record<string, string>;
|
|
68
68
|
export declare function siteGutterPhoneClass(v?: number | null): string;
|
|
69
69
|
export declare function siteGutterPhoneFollows(gutter?: number | null): number;
|
|
70
70
|
export declare function siteHalfColumnCap(dividerPx?: number): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{siteLengthCss as u}from"./css-length.js";const x={min:1e3,max:2e3,step:50,default:1600};function m(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function W(t,e){if(t!==!1)return null;const r=typeof e=="number"?e:x.default;return m(r)}const f="--sf-site-width",s=`var(${f},${x.default}px)`,k="100vw",g=`max-w-[${s}]`,V=`max-w-[${x.default}px]`;function l(t){return typeof t!="number"||!Number.isFinite(t)?x.default:Math.round(Math.min(Math.max(t,x.min),x.max))}function B(t,e){const r=u(t,e,"size",x,{floor:!0});if(r!==null)return{[f]:r};const o=l(t);return o===x.default?{}:{[f]:`${o}px`}}const i={min:0,max:80,step:4,default:40},c="--sf-site-gutter",a={min:0,max:24,step:4},E="--sf-site-gutter-phone",v="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",n=`var(${c},${i.default}px)`,O=`px-[${n}]`,y=["px-10","px-[60px]"],p={md:`min(24px,${n})`,sm:`min(20px,${n})`,frame:`min(24px,${n})`,tabs:`min(16px,${n})`},I=[[`max-view-desktop:px-[${p.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${p.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${p.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${p.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${p.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${p.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${p.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${p.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"],[O,"px-10"]];function F(t){return I.reduce((e,[r,o])=>e.split(r).join(o),t)}const d="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function z(t){return H[t??"box"]}const T="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",S="[--sf-edge-g:var(--sf-pad-site)]",H={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:T,edge:S,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:T,edge:S,frame:d}},j=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${d}`,R="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function K(t){const e=R.replace(/&/g,"&").replace(/>/g,">");return t.split(` ${e}`).join("").split(` ${R}`).join("")}const X="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 w(t){return typeof t!="number"||!Number.isFinite(t)?i.default:Math.round(Math.min(Math.max(t,i.min),i.max))}function q(t,e){const r=u(t,e,"spacing",i);if(r!==null)return{[c]:r};const o=w(t);return o===i.default?{}:{[c]:`${o}px`}}function C(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,a.min),a.max))}function J(t){return typeof t=="number"&&Number.isFinite(t)?l(t):null}function Q(t,e){const r=u(t,e,"spacing",a);if(r!==null)return{[E]:r};const o=C(t);return o===null?{}:{[E]:`${o}px`}}function Y(t){return C(t)===null?"":v}function Z(t){return Math.min(a.max,w(t))}function b(t=0){return`calc(${s}/2 - ${n}*2 - ${t}px)`}function tt(t=0){return`max-w-[${b(t).replace(/ /g,"_")}]`}const A=s,et=`max-w-[${A}]`,rt=`max-w-[min(var(--sf-page-cap,${x.default}px),${x.default}px)]`,h="--sf-hero-cap",P=`var(${h},none)`,nt=`max-w-[${P}]`,M="--sf-hero-bleed-m",G="--sf-hero-bleed-w",D="--sf-hero-chrome-x",N="--sf-hero-chrome-cap";function ot(t){return t===!0?{[h]:A,[M]:"auto",[G]:"100%",[D]:"24px",[N]:"none"}:{}}const _=`calc(${s} - ${n}*2)`,xt=`max-w-[${_.replace(/ /g,"_")}]`,pt=g;function it(t){return t!==!1?null:m($)}const L="--sf-chrome-cap",$=`var(${L},${_})`,st="data-page-width";function at(t){return t==="full"?"full":null}function ut(t){return t==="full"?null:m(t==="content"?_:$)}function mt(t){if(t==="full")return"full";if(t==="content")return"content"}export{R as BOX_HOLDS_NO_GUTTER_CLASS,$ as CHROME_CAP_READ,L as CHROME_CAP_VAR,_ as CHROME_WIDTH_CAP,xt as CHROME_WIDTH_CAP_CLASS,X as EDITORIAL_COLUMN,k as FULL_SECTION_WIDTH,P as HERO_BACKGROUND_CAP,nt as HERO_BACKGROUND_CAP_CLASS,h as HERO_BACKGROUND_VAR,M as HERO_BLEED_MARGIN_VAR,G as HERO_BLEED_WIDTH_VAR,A as HERO_CAP,et as HERO_CAP_CLASS,N as HERO_CHROME_CAP_VAR,D as HERO_CHROME_INSET_VAR,x as PAGE_WIDTH,st as PAGE_WIDTH_ATTR,pt as PRE_CHROME_WIDTH_CAP_CLASS,rt as PRE_HERO_CAP_CLASS,y as PRE_SITE_GUTTER_CLASSES,V as PRE_SITE_WIDTH_CAP_CLASS,j as SITE_COLUMN,d as SITE_COLUMN_NARROW,i as SITE_GUTTER,n as SITE_GUTTER_CAP,O as SITE_GUTTER_CLASS,p as SITE_GUTTER_NARROW,a as SITE_GUTTER_PHONE,v as SITE_GUTTER_PHONE_CLASS,E as SITE_GUTTER_PHONE_VAR,I as SITE_GUTTER_SUBSTITUTIONS,c as SITE_GUTTER_VAR,s as SITE_WIDTH_CAP,g as SITE_WIDTH_CAP_CLASS,f as SITE_WIDTH_VAR,F as asMainGutters,m as centredCap,ut as chromeWidthStyle,ot as heroBackgroundTokens,J as normalizeSectionContentMax,w as normalizeSiteGutter,C as normalizeSiteGutterPhone,l as normalizeSiteWidth,at as pageWidthMarker,W as pageWidthStyle,mt as resolveChromeWidth,Y as siteGutterPhoneClass,Z as siteGutterPhoneFollows,Q as siteGutterPhoneTokens,q as siteGutterTokens,b as siteHalfColumnCap,tt as siteHalfColumnCapClass,z as siteSideRoom,it as siteWidthCapStyle,B as siteWidthTokens,K as withoutBoxHoldsNoGutter};
|
|
@@ -119,6 +119,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
119
119
|
readonly "Alt text": "Alt text";
|
|
120
120
|
readonly Alternating: "Alternating";
|
|
121
121
|
readonly "Alternating (zig-zag)": "Alternating (zig-zag)";
|
|
122
|
+
readonly Always: "Always";
|
|
122
123
|
readonly Amount: "Amount";
|
|
123
124
|
readonly "An editorial aside beside a rail-marked timeline of dated entries.": "An editorial aside beside a rail-marked timeline of dated entries.";
|
|
124
125
|
readonly "An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.": "An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.";
|
|
@@ -833,6 +834,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
833
834
|
readonly "On 1 page": "On 1 page";
|
|
834
835
|
readonly "On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.": "On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.";
|
|
835
836
|
readonly "On a phone": "On a phone";
|
|
837
|
+
readonly "On card hover": "On card hover";
|
|
836
838
|
readonly "On every blog post.": "On every blog post.";
|
|
837
839
|
readonly "On every page": "On every page";
|
|
838
840
|
readonly "On every page \u00B7 old style": "On every page · old style";
|
|
@@ -1379,11 +1381,13 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1379
1381
|
readonly "What this does when a shopper points at it, or taps it on a phone.": "What this does when a shopper points at it, or taps it on a phone.";
|
|
1380
1382
|
readonly "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.": "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.";
|
|
1381
1383
|
readonly "What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.": "What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.";
|
|
1384
|
+
readonly "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.": "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.";
|
|
1382
1385
|
readonly "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.": "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.";
|
|
1383
1386
|
readonly "What we count.": "What we count.";
|
|
1384
1387
|
readonly WhatsApp: "WhatsApp";
|
|
1385
1388
|
readonly "When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.": "When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.";
|
|
1386
1389
|
readonly "When the text does not fit": "When the text does not fit";
|
|
1390
|
+
readonly "When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.": "When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.";
|
|
1387
1391
|
readonly "Where this content is edited.": "Where this content is edited.";
|
|
1388
1392
|
readonly "Whether this page sits on the site's content column, or runs edge to edge.": "Whether this page sits on the site's content column, or runs edge to edge.";
|
|
1389
1393
|
readonly "Which of the product's pictures the card shows.": "Which of the product's pictures the card shows.";
|