efficient-web-builder 51.0.0 → 53.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/dist/editor/components/ChatSettingsPanel.js +1 -1
- package/dist/editor/components/MediaUploadField.d.ts +7 -7
- package/dist/editor/components/MediaUploadField.js +1 -1
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/components/PartTextBox.js +1 -1
- package/dist/editor/components/PreviewPartAnchors.js +1 -1
- package/dist/editor/components/PreviewPartStyleContext.d.ts +2 -2
- package/dist/editor/components/SectionTextPartBridge.js +1 -1
- package/dist/editor/components/SiteAccentField.js +1 -1
- package/dist/editor/components/SiteTextStylesField.d.ts +3 -2
- package/dist/editor/components/SiteTextStylesField.js +1 -1
- package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
- package/dist/editor/components/storefront-editor.css +82 -64
- package/dist/editor/lib/animation/entrance-fields.js +1 -1
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/ColourControl.d.ts +11 -8
- package/dist/editor/lib/document/ColourControl.js +1 -1
- package/dist/editor/lib/document/blocks/general/Breadcrumb/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/IntroBleed/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
- package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Series/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/StatsParagraph/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Timeline/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/blocks/shared-fields.d.ts +5 -0
- package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
- package/dist/editor/lib/document/box-fields.d.ts +23 -2
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/choice-pictures.d.ts +21 -0
- package/dist/editor/lib/document/choice-pictures.js +1 -0
- package/dist/editor/lib/document/controls.d.ts +33 -9
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/hidable-rows-drawn.d.ts +1 -0
- package/dist/editor/lib/document/hidable-rows-drawn.js +1 -1
- package/dist/editor/lib/document/overrides.js +1 -1
- package/dist/editor/lib/document/part-panel-rows.d.ts +1 -0
- package/dist/editor/lib/document/part-panel-rows.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/document/separator-field.d.ts +9 -1
- package/dist/editor/lib/document/separator-field.js +1 -1
- package/dist/editor/lib/document/shape-picker.d.ts +37 -0
- package/dist/editor/lib/document/shape-picker.js +1 -0
- package/dist/editor/lib/document/show-for-field.d.ts +6 -0
- package/dist/editor/lib/document/show-for-field.js +1 -0
- package/dist/format/lib/animation/hover.d.ts +0 -2
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/borders.d.ts +4 -2
- package/dist/format/lib/content/borders.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +21 -6
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -5
- package/dist/format/lib/content/box-shape.js +1 -1
- package/dist/format/lib/content/box-show-for-choices.d.ts +9 -0
- package/dist/format/lib/content/box-show-for-choices.js +1 -0
- package/dist/format/lib/content/button-icon.d.ts +1 -1
- package/dist/format/lib/content/button-icon.js +1 -1
- package/dist/format/lib/content/card-state.d.ts +8 -0
- package/dist/format/lib/content/card-state.js +1 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/gallery-card-layout.d.ts +45 -1
- package/dist/format/lib/content/gallery-card-layout.js +1 -1
- package/dist/format/lib/content/image-aspect.d.ts +47 -0
- package/dist/format/lib/content/image-aspect.js +1 -0
- package/dist/format/lib/content/list-number.d.ts +11 -0
- package/dist/format/lib/content/list-number.js +1 -1
- package/dist/format/lib/content/phone-focus.d.ts +4 -1
- package/dist/format/lib/content/phone-focus.js +1 -1
- package/dist/format/lib/content/record-row.d.ts +14 -0
- package/dist/format/lib/content/record-row.js +1 -0
- package/dist/format/lib/content/record-types.d.ts +1 -1
- package/dist/format/lib/content/record-types.js +1 -1
- package/dist/format/lib/content/section-background.d.ts +10 -3
- package/dist/format/lib/content/section-background.js +1 -1
- package/dist/format/lib/content/section-height.d.ts +8 -0
- package/dist/format/lib/content/section-height.js +1 -1
- package/dist/format/lib/content/section-min-height.d.ts +17 -1
- package/dist/format/lib/content/section-min-height.js +1 -1
- package/dist/format/lib/content/section-sticky.d.ts +9 -0
- package/dist/format/lib/content/section-sticky.js +1 -1
- package/dist/format/lib/document/blocks/general/text-part-shapes.json +2 -2
- package/dist/format/lib/document/card-template-layers.d.ts +1 -1
- package/dist/format/lib/document/card-template-layers.js +1 -1
- package/dist/format/lib/document/media-manifest.json +5 -2
- package/dist/format/lib/document/mockup-variant-fields.d.ts +1 -0
- package/dist/format/lib/document/mockup-variant-fields.js +1 -1
- package/dist/format/lib/document/part-inks.d.ts +5 -10
- package/dist/format/lib/document/part-inks.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +1 -0
- package/dist/format/lib/document/section-catalog.js +2 -2
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/document/show-when-attach.d.ts +2 -1
- package/dist/format/lib/document/show-when-attach.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +25 -14
- package/dist/format/lib/editor-words-catalogue.js +4 -4
- package/dist/format/lib/fonts.js +1 -1
- package/dist/format/lib/sections/divider-style.d.ts +4 -0
- package/dist/format/lib/sections/divider-style.js +1 -1
- package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
- package/dist/format/lib/sections/section-presets.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +2 -2
- package/dist/format/lib/source-rules/mirrored-rows-agree.js +4 -4
- package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.d.ts +4 -0
- package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.js +37 -20
- package/dist/format/lib/source-rules/shape-rows-use-the-picker.d.ts +7 -0
- package/dist/format/lib/source-rules/shape-rows-use-the-picker.js +2 -0
- package/dist/format/lib/source-rules/support/part-slider-call-sites.d.ts +0 -1
- package/dist/format/lib/source-rules/support/part-slider-call-sites.js +6 -6
- package/dist/format/lib/text-styles/site-text-colours.d.ts +4 -0
- package/dist/format/lib/text-styles/site-text-colours.js +1 -0
- package/dist/format/lib/theme.d.ts +1 -0
- package/dist/format/lib/theme.js +3 -3
- package/dist/format/lib/word-styles.d.ts +0 -1
- package/dist/format/lib/word-styles.js +1 -1
- package/dist/render/components/Breadcrumb.d.ts +2 -1
- package/dist/render/components/Breadcrumb.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.d.ts +6 -3
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/ContentsList.d.ts +4 -1
- package/dist/render/components/ContentsList.js +1 -1
- package/dist/render/components/CurrentRecord.d.ts +23 -0
- package/dist/render/components/CurrentRecord.js +1 -0
- package/dist/render/components/Flex.d.ts +3 -2
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/HeroPictures.d.ts +2 -0
- package/dist/render/components/HeroPictures.js +1 -1
- package/dist/render/components/HeroPoster.d.ts +2 -1
- package/dist/render/components/HeroPoster.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.d.ts +3 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.d.ts +3 -1
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/ImageBlock.d.ts +5 -3
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/InBoxContext.d.ts +3 -0
- package/dist/render/components/SiteGutterFrame.d.ts +1 -0
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/goldPhrases.js +2 -2
- package/dist/render/lib/content/block-size.d.ts +3 -0
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/box-shared-columns.js +1 -1
- package/dist/render/lib/content/box-show-for.d.ts +14 -0
- package/dist/render/lib/content/box-show-for.js +1 -0
- package/dist/render/lib/content/page-contents.d.ts +1 -0
- package/dist/render/lib/content/page-contents.js +1 -1
- package/dist/render/lib/content/picture-focus-rows.d.ts +13 -0
- package/dist/render/lib/content/picture-focus-rows.js +1 -0
- package/dist/render/lib/document/blocks/general/Breadcrumb/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Contents/render.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/section-to-box-row-parts.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +21 -7
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/block-size.js +1 -1
- package/dist/render/lib/document/passes/borders.js +1 -1
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-height.js +1 -1
- package/dist/render/lib/document/passes/section-sticky.js +1 -1
- package/dist/render/lib/document/passes/show-for.d.ts +2 -0
- package/dist/render/lib/document/passes/show-for.js +1 -0
- package/dist/render/lib/document/show-when.d.ts +1 -1
- package/dist/render/lib/document/show-when.js +1 -1
- package/dist/render/lib/text-styles/site-text-styles.js +2 -2
- package/package.json +3 -3
- package/dist/editor/components/PartInkControl.d.ts +0 -7
- package/dist/editor/components/PartInkControl.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{phoneKey as
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{phoneKey as l}from"efficient-easel/draw";import{SettingsDefaultReset as O,SettingsField as R}from"efficient-easel/panel";import{AnimationIcon as N,ClockIcon as w,DirectionDownIcon as A,DirectionIcon as T,DirectionLeftIcon as L,DirectionRightIcon as S,DirectionUpIcon as P,DurationIcon as B,NoSymbolIcon as G}from"efficient-easel/icons";import{deviceField as d}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as U,noControlField as W}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{describedAs as k,group as j,onDesktopWords as Y,phoneTwinFields as z}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as H,ENTRANCE_FROM_DEFAULT as I,ENTRANCE_KINDS as m,ENTRANCE_KINDS_WITH_FROM as g,MOTION_TIMING as q,entranceAttrs as V,playEntrance as J,readEntrance as Q}from"efficient-shell/format";import{IconPicker as X}from"efficient-shell/ui";import{pickerCellIcon as Z}from"../document/box-fields.js";import{segmented as $}from"../document/box-fields.js";import{phoneOverrideField as _,useSelectedProps as D}from"../document/controls.js";import{withRowRules as ee}from"../../../format/lib/document/show-when-attach.js";import{editorEaselWords as oe,say as c}from"../../../format/lib/editor-words.js";import{animationDelayField as ne,animationDurationField as te}from"./AnimationDurationRow.js";import{ENTRANCE_KEYS as t,LEGACY_ENTRANCE_KEY as C,entranceOf as b}from"../../../render/lib/animation/entrance.js";import{ENTRANCE_GROUP_KEY as ie}from"../../../format/lib/animation/index.js";const h={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},re={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},ae={top:()=>e(A,{}),bottom:()=>e(P,{}),left:()=>e(S,{}),right:()=>e(L,{})},f="Entrance",x=m.filter(o=>o!=="none"),u=o=>({any:[{field:t.kind,in:o},{all:[{field:t.kind,set:!1},{field:C,in:o}]}]}),v=o=>({any:[{field:l(t.kind),in:o},{all:[{field:l(t.kind),set:!1},u(o)]}]}),le=[[[t.from],u(g)],[[l(t.from)],v(g)],[[t.duration,t.delay],u(x)],[[l(t.duration),l(t.delay)],v(x)]],s=({children:o})=>e("svg",{viewBox:"0 0 40 40",width:"40",height:"40",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:o}),r=({x:o=12,y:n=12,o:i=1})=>e("rect",{x:o,y:n,width:"16",height:"16",rx:"2",opacity:i}),ce={none:e(G,{size:20}),fade:a(s,{children:[e(r,{x:6,o:.3}),e(r,{x:18})]}),rise:a(s,{children:[e(r,{y:20,o:.3}),e(r,{y:8}),e("path",{d:"M20 36v-5m-2 2 2-2 2 2"})]}),scale:a(s,{children:[e("rect",{x:"16",y:"16",width:"8",height:"8",rx:"1",opacity:".35"}),e(r,{}),e("path",{d:"M6 6l4 4M34 34l-4-4"})]}),glide:a(s,{children:[e(r,{x:2,o:.3}),e(r,{x:20}),e("path",{d:"M4 33h12m-2-2 2 2-2 2"})]}),bounce:a(s,{children:[e(r,{y:6}),e("path",{d:"M8 34c3-6 5-6 8 0s5 6 8 0 5-6 8 0"})]}),flip:a(s,{children:[e("path",{d:"M12 12l16 4v8l-16 4z",opacity:".35"}),e(r,{}),e("path",{d:"M20 4v32",strokeDasharray:"2 2"})]}),reveal:a(s,{children:[e("rect",{x:"12",y:"12",width:"16",height:"16",rx:"2",strokeDasharray:"2 2",opacity:".5"}),e("path",{d:"M12 22h16v4a2 2 0 0 1-2 2H14a2 2 0 0 1-2-2z",fill:"currentColor",opacity:".35"}),e("path",{d:"M20 36v-5m-2 2 2-2 2 2"})]}),spin:a(s,{children:[e(r,{}),e("path",{d:"M33 14a14 14 0 0 1 0 12m0 0-3-1m3 1 1-3"})]})};function se({kind:o}){const{attrs:n}=V(Q(o,I)),i=c(h[o]);return Z(e("span",{className:"sf-entrance-stage",children:e("i",{...n,children:ce[o]})}),i,i)}const de=(o,n)=>{const i=n.querySelector(".sf-entrance-stage > i");i&&J(i)},pe={width:"3.5rem",height:"4.25rem"};function F({value:o,onChange:n}){return e(X,{label:c(f),value:o,columns:3,cell:pe,onChange:n,onPreview:de,tooltips:!1,options:m.map(i=>({value:i,label:c(h[i]),icon:e(se,{kind:i})}))})}const y="Effect";function me({value:o,onChange:n}){const i=D(),p=b({...i,[t.kind]:o},"desktop").kind;return e(R,{label:c(y),icon:e(N,{}),children:e(F,{value:p,onChange:n})})}function he({value:o,onChange:n}){const i=D(),p=typeof o=="string"&&m.includes(o),E=b(i,"desktop").kind;return e(R,{label:c(y),icon:e(N,{}),changed:p,action:e(O,{words:oe()?.panel,label:c(y),changed:p,detail:Y(K=>c(K),c(h[E])),onReset:()=>n(void 0)}),children:e(F,{value:p?o:E,onChange:n})})}const M={type:"select",label:f,options:m.map(o=>({value:o,label:h[o]}))},fe=()=>k({type:"custom",render:({value:o,onChange:n})=>e(me,{value:o,onChange:n})},M),ue=()=>k({type:"custom",render:({value:o,onChange:n})=>e(he,{value:o,onChange:n})},M),ye=H.map(o=>({label:re[o],value:o,picture:ae[o]()}));function Ae(){const{duration:o,delay:n}=q.entrance,i={[ie]:j(f),[t.kind]:d("desktop",fe()),[C]:W({type:"custom",render:()=>e(U,{})},"always"),[l(t.kind)]:d("mobile",ue()),...z(t.from,$("From",e(T,{}),ye,I)),[t.duration]:d("desktop",te("entrance")),[l(t.duration)]:d("mobile",_({label:"Duration",desktopKey:t.duration,icon:e(B,{}),min:o.min,max:o.max,step:o.step,fallback:o.default,unit:"s"})),[t.delay]:d("desktop",ne("entrance")),[l(t.delay)]:d("mobile",_({label:"Delay",desktopKey:t.delay,icon:e(w,{}),min:n.min,max:n.max,step:n.step,fallback:n.default,unit:"s"}))};return ee(i,le)}export{ce as ENTRANCE_PICTURE,Ae as entranceFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as n}from"react/jsx-runtime";import{ContrastIcon as V,HoverIcon as D,HoverLiftIcon as K,HoverNextImageIcon as S,HoverNoneIcon as P,HoverRotateIcon as g,HoverZoomIcon as O,OpacityIcon as A,RotateIcon as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{ContrastIcon as V,HoverIcon as D,HoverLiftIcon as K,HoverNextImageIcon as S,HoverNoneIcon as P,HoverRotateIcon as g,HoverZoomIcon as O,OpacityIcon as A,RotateIcon as U}from"efficient-easel/icons";import{group as F}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as y,noControlField as W}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as c}from"../../../format/lib/content/box-background.js";import{cardTemplateField as L,cardTemplateOwner as B,namedRowField as M}from"../../../format/lib/content/card-template.js";import{segmented as Y,slider as R}from"../document/box-fields.js";import{withShowWhen as p}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as v,animationDurationField as w,showsWhatRuns as m}from"./AnimationDurationRow.js";import{CARD_HOVER_ANGLE as _,CARD_HOVER_KEYS as i,CARD_HOVER_KINDS as X,CARD_HOVER_TURN as b,HOVER_KEY as l,HOVER_KIND_LABELS as j,NEXT_PICTURE_BLOCKS as z,NEXT_PICTURE_HOVER_KINDS as G,OLD_SPIN_KEY as Z,PART_HOVER_KINDS as q,PICTURE_HOVER_KEYS as N,PICTURE_HOVER_KINDS as J,PICTURE_HOVER_ZOOM as d,cardHoverAngleOf as Q,cardHoverKindOf as $,cardRotatesRule as oo,HOVER_GROUP_KEY as E,pictureHoverKindOf as eo,pictureHoverMovesRule as to,pictureHoverRunsRule as no}from"../../../format/lib/animation/hover.js";const H=()=>r("desktop",F("Hover")),ro="What this does when a shopper points at it, or taps it on a phone.",io="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",so="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.",po="What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.",ao={none:()=>n(P,{}),nextImage:()=>n(S,{}),rotate:()=>n(g,{}),zoom:()=>n(O,{}),lift:()=>n(K,{}),mono:()=>n(V,{})};function f(o,e){return Y("Hover effect",n(D,{}),o.map(t=>({label:j[t],value:t,picture:ao[t]()})),e)}function vo(){return{[E]:H(),[l]:r("desktop",{...f(q,"none"),description:ro})}}function wo(o){const e=oo(o),t=R("Angle",n(U,{}),_.min,_.max,_.step,b,"°");return{[E]:H(),[i.kind]:r("desktop",{...m(f(X,o),(s,a)=>$(a??{},o)),description:po}),[Z]:W({type:"custom",render:()=>n(y,{})},"always"),[i.angle]:r("desktop",p(m(t,s=>Q(s)),e)),[i.duration]:r("desktop",p(w("hover"),e)),[i.delay]:r("desktop",p(v("hover"),e))}}function No(o,e=""){const t=no(o);return{[E]:H(),[i.kind]:T(J,o,io),...z.includes(e)?co():{},[i.duration]:r("desktop",p(w("hover"),t)),[i.delay]:r("desktop",p(v("hover"),t))}}function co(){const o=to(),e=R("Zoom",n(O,{}),d.min,d.max,d.step,d.min,d.unit),t=R("Darken on hover",n(A,{}),c.min,c.max,c.step,c.fallback,c.unit);return{[N.zoom]:r("desktop",p(e,o)),[N.darken]:r("desktop",p(t,o))}}function T(o,e,t){const s=r("desktop",{...m(f(o,e),a=>eo({[l]:a},e,o)),description:t});return Object.assign(s,{[k]:e})}const k="sfPictureResting",C=new WeakMap;function To(o,e,t){const s=o[i.kind],a=s?.[k];if(!s||!a)return o;const I=e.props?.[l]==="nextImage",h=I?null:B(t.appState,e.props?.id),x=h?L(String(h.type),M(e.props),h):null;if(!I&&!x?.next)return o;let u=C.get(o);return u||(u={...o,[i.kind]:T(G,a,so)},C.set(o,u)),u}export{wo as cardHoverFields,vo as hoverFields,To as offerNextPicture,No as pictureHoverFields};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import { type ColorPreset } from "efficient-shell/ui";
|
|
3
|
-
export declare function ColourControl({ value, onChange, label, id, caption, inherited, ariaLabel, }: {
|
|
3
|
+
export declare function ColourControl({ value, onChange, label, id, caption, inherited, ariaLabel, choices, }: {
|
|
4
4
|
value: string;
|
|
5
5
|
onChange: (next: string) => void;
|
|
6
6
|
label: string;
|
|
@@ -8,13 +8,15 @@ export declare function ColourControl({ value, onChange, label, id, caption, inh
|
|
|
8
8
|
caption?: string;
|
|
9
9
|
inherited?: string;
|
|
10
10
|
ariaLabel?: string;
|
|
11
|
+
choices?: readonly ColourChoice[];
|
|
11
12
|
}): import("react").JSX.Element;
|
|
12
|
-
export
|
|
13
|
-
export declare function AnyColourSwatch({ value, onChange, label, }: {
|
|
14
|
-
value: string;
|
|
15
|
-
onChange: (next: string) => void;
|
|
13
|
+
export interface ColourChoice {
|
|
16
14
|
label: string;
|
|
17
|
-
|
|
15
|
+
color: string;
|
|
16
|
+
selected: boolean;
|
|
17
|
+
onPick: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare function useThemePresets(): ColorPreset[];
|
|
18
20
|
export declare function ColourRow({ label, icon, changed, hint, onReset, resetTo, children, ...control }: Parameters<typeof ColourControl>[0] & {
|
|
19
21
|
icon?: ReactNode;
|
|
20
22
|
changed?: boolean;
|
|
@@ -23,7 +25,7 @@ export declare function ColourRow({ label, icon, changed, hint, onReset, resetTo
|
|
|
23
25
|
resetTo?: string;
|
|
24
26
|
children?: ReactNode;
|
|
25
27
|
}): import("react").JSX.Element;
|
|
26
|
-
export declare function InheritedColourRow({ label, icon, value, inherited, resetTo, onChange, onReset, hint, }: {
|
|
28
|
+
export declare function InheritedColourRow({ label, icon, value, inherited, resetTo, onChange, onReset, hint, choices, }: {
|
|
27
29
|
label: string;
|
|
28
30
|
icon?: ReactElement;
|
|
29
31
|
value: string;
|
|
@@ -32,4 +34,5 @@ export declare function InheritedColourRow({ label, icon, value, inherited, rese
|
|
|
32
34
|
onChange: (hex: string) => void;
|
|
33
35
|
onReset: () => void;
|
|
34
36
|
hint?: ReactNode;
|
|
37
|
+
choices?: readonly ColourChoice[];
|
|
35
38
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as r,jsxs as h}from"react/jsx-runtime";import{useRef as C}from"react";import{ColorPicker as w,ColorPickerPanel as x,ColorSwatch as b,HexInput as S,Popover as N,Tooltip as P,colorFill as k,colorSwatchClasses as T,useShellStrings as E}from"efficient-shell/ui";import{SettingsDefaultReset as R,SettingsField as _}from"efficient-easel/panel";import{typedHex as p}from"efficient-easel/pick";import{usePreviewHeader as j}from"../../../render/components/PreviewHeaderContext.js";import{editorEaselWords as v,say as g}from"../../../format/lib/editor-words.js";import{themeSwatches as F}from"./theme-swatches.js";import{SITE_STYLE_UNSET_LABEL as I}from"../../../format/components/SiteStyleUnset.js";function L({value:e,onChange:n,label:o,id:a,caption:s,inherited:c,ariaLabel:t,choices:l}){return r(z,{value:e,onChange:n,label:g(t??o),id:a,caption:s,inherited:c,choices:l})}function y(){const{theme:e}=j();return F(e).map(n=>({value:n.value,label:n.name}))}function z({value:e,onChange:n,label:o,id:a,caption:s,inherited:c,choices:t}){const l=y(),i=e?null:p(c??""),d=s!==void 0&&(!e||p(s)!==p(e))?s:null,f=m=>{m!==e&&n(m)};return h("div",{className:"sf-colour",children:[t?r(B,{id:a,value:e,onChange:n,label:o,presets:l,follows:i,choices:t}):r(w,{id:a,value:e,onChange:f,label:o,presets:l,fallback:i??void 0,size:"md",align:"start"}),d!==null?r("span",{className:"sf-colour-caption",children:d}):r("span",{className:"sf-colour-hexwrap",children:r(S,{value:e||i||"",onChange:f,label:g("{label} hex code",{label:o}),placeholder:e||i?void 0:g(I),className:i?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function B({value:e,onChange:n,label:o,id:a,presets:s,follows:c,choices:t}){const l=E().color,i=e||c||"",d=t.findIndex(u=>u.selected),f=d>=0,m=C(d);return f&&(m.current=d),r(N,{id:a,trigger:r("span",{"aria-hidden":"true",className:"absolute inset-0",style:k(i)}),triggerLabel:l.swatch(o,i.toUpperCase()||l.none),triggerClassName:T({size:"md"}),"aria-label":l.panel(o),align:"start",children:h("div",{className:"sf-colour-window",children:[r("div",{role:"group","aria-label":o,className:"sf-colour-choices",children:t.map(u=>r(P,{content:u.label,children:r(b,{color:u.color,"aria-label":u.label,selected:u.selected,onClick:()=>{u.selected||u.onPick()}})},u.label))}),r(x,{value:f?"":e,onChange:n,label:o,presets:s,fallback:(f?i:c)??void 0},m.current)]})})}function H({label:e,icon:n,changed:o,hint:a,onReset:s,resetTo:c,children:t,...l}){return h(_,{label:e,icon:n,htmlFor:l.id,changed:o,hint:a,action:s?r(R,{words:v()?.panel,label:e,changed:!!o,detail:c,onReset:s}):void 0,children:[L({...l,label:e}),t]})}function M({label:e,icon:n,value:o,inherited:a,resetTo:s,onChange:c,onReset:t,hint:l,choices:i}){const d=!!o;return r(H,{label:e,icon:n,value:o,inherited:d?void 0:a,onChange:c,changed:d,onReset:t,resetTo:s,hint:l,choices:i})}export{L as ColourControl,H as ColourRow,M as InheritedColourRow,y as useThemePresets};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plainText as
|
|
1
|
+
import{CARD_ROW_FACTS as i,cardRowField as l,cardRowFields as a}from"../../../card-row-fields.js";import{plainText as r,text as m,withOffPage as s}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{BREADCRUMB_PH as d}from"../../../../../../format/lib/document/blocks/general/Breadcrumb/meta.js";const p={fields:{_gContent:o("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:r("Label"),href:s(r("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:m("Trailing note",d.meta),_gText:o("Text"),rowField:l("Shows","text")},resolveFields:(e,t)=>a(t.fields,e,t),showWhenFacts:i};export{p as BreadcrumbFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as C}from"react/jsx-runtime";import{ButtonIcon as S,ButtonIconIcon as T,IconAfterTextIcon as k,IconBeforeTextIcon as w}from"efficient-easel/icons";import{SettingsField as F}from"efficient-easel/panel";import{useSelectedFields as u}from"efficient-easel/easel";import{buttonFieldSet as v}from"efficient-easel/screen/lib/document/button-fields";import{IconPicker as O,Segmented as P}from"efficient-shell/ui";import{shellGlyphOf as _}from"../../../shell-glyph.js";import{StorefrontTextLinkField as N}from"../../../../../components/StorefrontLinkField.js";import{usePreviewHeader as a}from"../../../../../../render/components/PreviewHeaderContext.js";import{BUTTON_ICONS as R,buttonIconChoice as W,buttonIconSide as j,buttonWidth as L}from"../../../../../../format/lib/content/button-icon.js";import{BUTTON_PAD_BUILT_IN as z,buttonLook as d}from"../../../../../../render/lib/content/button-look.js";import{nonEmptyString as A}from"../../../../../../format/lib/non-empty-string.js";import{selectedThemeColors as E,siteButtonPaint as p,siteButtonRadiusPx as D}from"../../../../../../format/lib/theme.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{backTo as U,buttonWordsEntryField as G,inOwnBox as H,linkField as K,plainText as q,useSelectedSibling as f}from"../../../controls.js";import{useThemePresets as J}from"../../../ColourControl.js";import{keptByRow as c}from"efficient-easel/screen/lib/document/style-fields";import{group as h}from"efficient-easel/screen/lib/document/box-fields";import{pickerNoneIcon as M,rowSay as Q,ShellIconWord as b}from"../../../box-fields.js";import{CARD_ROW_FACTS as V,cardRowField as x,cardRowFields as X}from"../../../card-row-fields.js";import{consentWordsKept as Y,withConsentWordsRow as Z}from"../../../consent-words-field.js";const m=o=>_(o==="none"?"no-symbol":o),$=R.map(o=>({value:o,icon:o==="none"?M(m(o),e(b,{value:o})):m(o)}));function oo({value:o,onChange:i}){const t=u(),n=t.values.href,s=typeof o=="string"?o:o&&typeof o=="object"&&"text"in o?String(o.text??""):"";return e(N,{label:"Button",icon:e(S,{size:18}),text:s,onTextChange:i,link:typeof n=="string"?n:"",onLinkChange:l=>t.onChange("href",l)})}function eo({value:o,onChange:i}){const t=u(),n=W(o,t.values.arrow),s=j(t.values.iconPosition),l=L(t.values.widthFit)==="fill",y=m("icon-at-end");return e(F,{label:r("Icon"),icon:e(T,{size:18}),value:n==="none"?void 0:e(b,{value:n}),children:C("div",{className:"flex items-center gap-2",children:[e(O,{label:r("Icon"),value:n,options:$,onChange:i}),n!=="none"&&e(P,{size:"sm",block:!0,label:r("Icon position"),value:s==="end"&&!l?"after":s,onChange:B=>t.onChange("iconPosition",B),options:[{value:"before",icon:e(w,{size:16}),label:e("span",{className:"sr-only",children:r("Icon before text")}),title:r("Icon before text")},{value:"after",icon:e(k,{size:16}),label:e("span",{className:"sr-only",children:r("Icon after text")}),title:r("Icon after text")},...l?[{value:"end",icon:y,label:e("span",{className:"sr-only",children:r("Icon at the far end")}),title:r("Icon at the far end")}]:[]]})]})})}const I=()=>p(a().theme),g=v({follows:{useFill:()=>I().fill,useText:()=>I().ink,useBorder:()=>{const[o]=f("variant"),[i]=f("buttonColor"),{theme:t}=a(),n=d({variant:o,buttonColor:i}).border.width,s=A(i)??(o==="ghost"?E(t).text:p(t).fill);return{width:n,color:s}},useCorners:()=>D(a().cornerRadiusPx),useFillOpacity:()=>d({variant:f("variant")[0]}).fillOpacity},usePresets:J,resetTo:o=>U(o,r("Styles")),padding:{fallback:z,tablet:!0},say:Q});function to(o,i){const t=Object.keys(o);return Object.fromEntries(t.slice(0,t.indexOf(i)+1).map(n=>[n,o[n]]))}const ko={fields:{label:H(q("Button"),o=>e(oo,{value:o.value,onChange:o.onChange})),labelText:G("label"),href:{...K("Button link"),...c("label")},consentWords:Y("label"),_gButton:h("Button"),rowField:x("Shows","text"),rowLinkField:x("Link from","link"),...to(g,"_dDesign"),_gStyle:h("Style"),variant:c("buttonColor"),icon:{type:"custom",render:o=>e(eo,{value:o.value,onChange:o.onChange})},iconPosition:c("icon"),arrow:c("icon"),...g},resolveFields:(o,i)=>Z(X(i.fields,o,i),o.props,"label",["href"]),showWhenFacts:V};export{ko as ButtonBlockFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as c}from"react/jsx-runtime";import{AccentIcon as v,ColumnsIcon as x,StylesIcon as
|
|
1
|
+
import{jsx as c}from"react/jsx-runtime";import{AccentIcon as v,ColumnsIcon as x,StylesIcon as g}from"efficient-easel/icons";import{copyText as f,plainText as b,plainTextarea as B,text as C,textarea as M,withOffPage as w}from"../../../controls.js";import{group as p}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as D,select as S,slider as H}from"../../../box-fields.js";import{CARD_STYLE_PICTURES as k,LAYOUT_CELL as N}from"../../../choice-pictures.js";import{SPLITTABLE_SECTIONS as K,headFieldsForPlacement as U}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as W,eyebrowLookFor as E}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as Y,blockSourceEditField as J,blockSourceField as q,blockSourceFields as z}from"../../../block-source-fields.js";import{declaredBlockSource as O,sourceChoices as G}from"../../../../../../format/lib/content/block-sources.js";import{cardKeyOf as Q,cardRow as V,cardTemplateFields as L}from"../../../../../../format/lib/content/card-template.js";import{isNodeList as X,newId as F}from"efficient-easel/data";import{say as Z}from"../../../../../../format/lib/editor-words.js";import{cardsFieldsFollowContent as $}from"../../../../../../format/lib/document/cards-template-on-read.js";import{CARDS_PH as I,CardsSlots as ee}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const te=e=>X(e.template)&&e.template.length>0;function re(e){const r=O(e);return r?G(r).map(t=>({label:t.label,value:t.key})):(Array.isArray(e.items)?e.items:[]).map((t,l)=>({label:typeof t?.title=="string"&&t.title.trim()||Z("Card {n}",{n:l+1}),value:Q(V(t),l)}))}const oe=e=>Object.defineProperty({...e},"key",{get:()=>F("card"),enumerable:!0});function le(e,r){const o=te(r)&&r.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([t,l])=>t==="highlightedCard"?o?[[t,se(l,re(r))]]:[]:t==="highlightBadge"?o?[[t,l]]:[]:t==="items"&&o&&l?[[t,ne(l)]]:[[t,l]]))}const _=new WeakMap;function se(e,r){let o=_.get(e);o||_.set(e,o=new Map);const t=JSON.stringify(r);let l=o.get(t);return l||o.set(t,l={...e,options:[...e.options,...r]}),l}const T=e=>e.kind==="link"?w(b(e.label)):e.multiline?B(e.label):f(e.label),ae=Object.fromEntries(L("Cards").filter(e=>!e.everySource).map(e=>[e.key,T(e)])),ie=Object.fromEntries(L("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,T(e)])),P=new WeakMap;function ne(e){let r=P.get(e);return r||P.set(e,r={...e,arrayFields:ae}),r}const Oe={fields:{_gSource:p("Source"),dataSource:q("Card content","Manual"),[Y]:J(),_gContent:p("Content"),eyebrow:C("Eyebrow",I.eyebrow),eyebrowLook:S("Eyebrow style",c(g,{}),[...W],E("Cards")),title:M("Heading",I.title),items:{type:"array",label:"Cards",arrayFields:ie,defaultItemProps:oe({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...ee,highlightedCard:S("Highlighted card",c(v,{}),[{label:"None",value:""}],""),highlightBadge:C("Highlight badge","Most popular"),_gStyle:p("Style"),cardStyle:D("Card style",c(g,{}),[{label:"Cards",value:"cards",picture:k.cards},{label:"Label only",value:"label-only",picture:k["label-only"]}],"cards",{columns:2,cell:N}),columns:H("Columns",c(x,{}),2,4,1,3)},resolveData:e=>{const r=$(e.props),o=r===e.props?e:{...e,props:r},t=o.props;if(!Array.isArray(t.items)||O(t))return o;const l=t.items,a=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",i=s=>s&&typeof s=="object"&&typeof s.key=="string"?s.key:"",R=!!a&&!l.some(s=>i(s)===a),d=new Set;let u=t.highlightedCard,y=!1;const A=l.map((s,j)=>{if(!s||typeof s!="object")return s;const n=i(s);if(n&&!d.has(n))return d.add(n),s;const h=!n&&R&&a===String(j+1);if(n||h){const m=F("card");return d.add(m),y=!0,h&&(u=m),{...s,key:m}}return s});return y?{...o,props:{...t,items:A,highlightedCard:u}}:o},resolveFields:(e,{fields:r})=>{const o=U(z("Cards",r,e.props,{hides:["items"]}),e.props.headPlacement,K.Cards.headRows),t=e.props,l=le(o,t);if(t.cardStyle!=="label-only")return l;const a=o.items,i=o.eyebrowLook;return{...l,...a?{items:{...a,arrayFields:{title:f("Feature label"),href:w(b("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:E("KeyFeatures")}}:{}}}};export{Oe as CardsFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{StylesIcon as n}from"efficient-easel/icons";import{copyText as u,plainText as p,text as e,textarea as a,withPanelOnly as s}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as m}from"../../../box-fields.js";import{CHART_PICTURES as t,LAYOUT_CELL as f}from"../../../choice-pictures.js";import{CHART_PH as r}from"../../../../../../format/lib/document/blocks/general/Chart/meta.js";const v={fields:{_gContent:o("Content"),eyebrow:e("Chip label",r.eyebrow),title:a("Heading",r.title),body:a("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:u("Label"),value:p("Value")},defaultItemProps:{label:"",value:""},getItemSummary:l=>[l?.label,l?.value].filter(Boolean).join(" · ")||"Point"},caption:e("Caption","Illustrative example"),_gStyle:o("Style"),chartStyle:m("Chart style",i(n,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:t.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:t.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:t.donut}],"bars",{columns:3,cell:f}),valueSuffix:s(e("Value suffix","%"))}};export{v as ChartFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{EyeIcon as m,HashIcon as p,StickyIcon as s}from"efficient-easel/icons";import{phoneKey as _}from"efficient-easel/draw";import{group as r,select as f}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as o}from"efficient-easel/screen/lib/document/device-fields";import{BLOCK_SHOW_KEY as E}from"../../../../../../render/lib/content/block-size.js";import{LIST_NUMBER_FORMS as S,LIST_NUMBER_FORM_DEFAULT as d}from"../../../../../../format/lib/content/list-number.js";import{CONTENTS_NUMBER_FORM_KEY as c}from"../../../../../../render/lib/content/page-contents.js";import{SECTION_STICK_LABEL as e}from"../../../../../../format/lib/content/section-sticky.js";import{text as N,toggle as i}from"../../../controls.js";import{CONTENTS_PH as T}from"../../../../../../format/lib/document/blocks/general/Contents/meta.js";const B={fields:{title:o("desktop",N("Heading",T.title)),_gList:o("desktop",r("List")),[c]:o("desktop",f("Number",t(p,{}),S,d)),[_(E)]:o("mobile",i("Show",!0,t(m,{}))),_gStick:o("desktop",r(e)),sticky:o("desktop",i(e,!0,t(s,{})))}};export{B as ContentsFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{EyeOffIcon as n,StylesIcon as c,WeightIcon as d,WidthIcon as p}from"efficient-easel/icons";import{deviceField as m}from"efficient-easel/screen/lib/document/device-fields";import{swapPadding as a,toggle as f}from"../../../controls.js";import{keptByRow as g}from"efficient-easel/screen/lib/document/style-fields";import{iconPickerRow as I,sidesPaddingFields as E,slider as o}from"../../../box-fields.js";import{LAYOUT_CELL as _,dividerPicture as D}from"../../../choice-pictures.js";import{DEFAULT_DIVIDER_STYLE as s,DIVIDER_SPACE_PX as h,DIVIDER_STYLE_OPTIONS as P,parseDividerSpacing as y}from"../../../../../../format/lib/sections/divider-style.js";import{withRowRules as L}from"../../../../../../render/lib/document/show-when.js";const R={any:[{field:"style",set:!1},{field:"style",is:s}]},S={not:{field:"style",is:"none"}},O={fields:L({style:I("Style",i(c,{}),P.map(e=>({...e,picture:D(e.value)})),s,{columns:3,cell:_}),spacing:g("sectionPaddingTop"),thickness:o("Thickness",i(d,{}),1,8,1,1,"px"),lengthPct:o("Length",i(p,{}),10,100,1,100,"%"),hideOnMobile:m("mobile",f("Hide",!1,i(n,{})))},[[["thickness"],R],[["lengthPct"],S]]),resolveFields:(e,{fields:r})=>{const t=h[y(e.props.spacing)],l=E({fallback:{top:t,bottom:t},tablet:!0});return a(r,l)}};export{O as DividerFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{phoneKey as t,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as p,isBackgroundBox as j}from"../../../../../../format/lib/content/box-background.js";import{darkenFields as K}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as v,REEL_SHAPE_LABELS as G}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as Y,TAB_SHAPE_PICTURES as J}from"../../../choice-pictures.js";import{deviceField as l}from"efficient-easel/screen/lib/document/device-fields";import{ClockIcon as V,CropIcon as u,LineBetweenIcon as z,LineSolidIcon as q,ShadowIcon as Q,StylesIcon as Z,TableIcon as A,TargetIcon as $}from"efficient-easel/icons";import{boxBlockSpacingField as oo,boxFillField as eo,boxColumnsFields as no,boxShareField as to,boxSharePhoneField as io,boxShareTabletField as ro,containerDirectionField as ao,containerGapRows as lo,linkField as so,plainText as po,swapPadding as O,toggle as c,upload as g,withPanelOnly as co}from"../../../controls.js";import{BOX_SHAPES as R,boxShapeOf as mo}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as E}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as C}from"../../../shape-picker.js";import{BOX_COLUMNS_MAX as F,BOX_COLUMNS_MIN as b,boxPhoneRowOneLine as So}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as L}from"../../../../../../format/lib/content/box-separator.js";import{VIEW_KEY_ACCESS as _o,group as r,phoneTwinFields as w}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as ho,boxJustifyField as fo,boxWrapField as T,iconPickerRow as uo,placementField as Ao,select as H,sidesPaddingFields as N}from"../../../box-fields.js";import{withRowRules as Oo}from"../../../../../../render/lib/document/show-when.js";import{separatorField as go}from"../../../separator-field.js";import{LOOP_SCROLLS as Ro}from"../../../../../../format/lib/animation/index.js";import{FlexSlots as Eo}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{CARD_BOX_FACTS as Co,ON_A_CARD as Fo,cardDisplayField as bo}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Lo,mirrorCardsField as wo}from"../../../mirror-cards-field.js";import{SHOW_FOR_FACTS as To,showForField as Ho,showForFields as No}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as a,SHARED_COLUMNS_LABEL as D,SHARED_COLUMNS_OFF as x,sharedColumnsDrawn as I,sharedColumnsFits as k,SHARED_COLUMNS_PHONE_POINTS as Do,SHARED_COLUMNS_POINTS as xo}from"../../../../../../render/lib/content/box-shared-columns.js";const Io={field:"bgImage",set:!0},P={field:"phoneRow",in:[2,3]},ko={field:"direction",is:"tabs"},Po={field:"line",in:[!0,!1]},Bo={field:"anchor",set:!0},_=["fixed","screen"],Mo={not:{any:[{field:"sectionHeightMode",in:_},{field:"sectionHeightModeTablet",in:_},{field:"sectionHeightModePhone",in:_}]}},yo={context:"parent.line",is:!0},h={field:"direction",is:"row",default:"row"},s={not:Ro},f={all:[h,s,{not:{field:"separator",in:L.map(o=>o.value)}},{not:{field:"line",is:!0}}]},Uo={all:[f,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:F},(e,S)=>S+b)}}))]},Wo={all:[s,{not:{all:[h,{field:"separator",in:L.map(o=>o.value)}]}}]},B={not:{all:[f,{field:"columns",in:Array.from({length:F},(o,e)=>e+b)}]}},Xo="sharedColumnsFits",M="sharedColumnsMisfit",y="sharedColumnsDraws",U="sharedColumnsPhoneDraws",jo={[Xo]:o=>k(o.props??{}),[M]:o=>!k(o.props??{}),[y]:o=>I(o.props??{}).desktop,[U]:o=>I(o.props??{}).phone};function W(o){return{all:[{not:{context:M,is:!0}},{any:[Fo,{field:o,set:!0}]}]}}const m={not:{context:y,is:!0}},d={not:{context:U,is:!0}},Ko={any:[m,d]};function vo(o){return{...o,render:e=>o.render({...e,value:So(e.value)?"nowrap":"wrap"})}}const ue={fields:Oo({_gContent:r("Content"),content:Eo.content,_gCardDisplay:r("Display"),cardDisplay:bo(),showFor:Ho(),_gLayout:r("Layout"),direction:ao("Flex"),tabShape:uo("Tab shape",n(Z,{}),v.map(o=>({label:G[o],value:o,picture:J[o]})),"tabs",{columns:2,cell:Y}),mirrorCards:wo(),label:co(po("Tab name")),...lo("Flex"),justify:fo(),align:ho(),...w("wrap",T(),void 0,{phoneRow:vo(T())}),...w("boxShape",C("Box shape",n(u,{}),E(R),"shape","auto"),_o,{phoneRow:C("Box shape",n(u,{}),E(R),"shape","auto",{phoneRest:o=>mo(o)})}),separator:go(n(z,{size:18}),"none"),share:l("desktop",to()),[i("share")]:ro(),[t("share")]:io(),[a]:l("desktop",H(D,n(A,{}),[...xo],x)),[t(a)]:l("mobile",H(D,n(A,{}),[...Do],x)),...no(),blockSpacing:oo(),line:c("Line",!1,n(q,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,n(V,{}),"Still to come: a hollow dot, and the gold line stops before it."),_gShadow:r("Shadow"),shadow:c("Shadow",!1,n(Q,{})),fillColor:eo(),_gBackground:r("Background image"),bgImage:l("desktop",g("Image","image/*")),bgImagePhone:l("mobile",g("Image","image/*")),...K(),placement:Ao("Content position"),_gLink:r("Link"),link:so("Link to"),jumpHighlight:c("Highlight when a link jumps here",!1,n($,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],Io],[[t("share")],{all:[P,d]}],[[a],W(a)],[[t(a)],W(t(a))],[[t("wrap")],{all:[P,s,d]}],[["phoneRow"],d],[["tabShape"],ko],[["separator"],h],[["columns",i("columns")],f],[[i("gap")],Wo],[["justify"],{all:[s,Ko]}],[["wrap"],{all:[s,B,m]}],[["share"],{all:[B,m]}],[[i("share")],{all:[Uo,m]}],[["line"],Po],[["upcoming"],yo],[["jumpHighlight"],Bo],[["boxShape",i("boxShape"),t("boxShape")],Mo]]),resolveFields:(o,e)=>No(Go(o,e),o.props),showWhenFacts:{...Co,...Lo,...jo,...To}};function Go(...[o,{fields:e}]){{const S=o.props;if(j(S.bgImage)){const X=N({fallback:{top:p.desktop,bottom:p.desktop,left:p.side,right:p.side},tablet:!0});return O(e,X)}return o.props.padV2!==!0?O(e,N({fallback:{top:24,bottom:24},tablet:!0})):e}}export{ue as FlexFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as a,REEL_SHAPE_DEFAULT as m,HERO_REEL_SHAPES as d,REEL_SHAPE_LABELS as A,REEL_SHOWN_DEFAULT as R}from"../../../../../../format/lib/reel.js";import{HERO_TEXTURE_SHOWN_DEFAULT as O}from"../../../../../../format/lib/hero-texture.js";import{HERO_ARROW_SHAPE_DEFAULT as P,HERO_ARROW_SHAPE_LABELS as H,HERO_ARROW_SHAPES as L,HERO_ARROWS_PLACEMENT_DEFAULT as u,HERO_ARROWS_SHOWN_DEFAULT as w}from"../../../../../../format/lib/hero-arrows.js";import{ClockIcon as I,EyeIcon as t,OpacityIcon as T,PhoneIcon as s,PlayIcon as h,SlideArrowsBareIcon as f,SlideArrowsRoundIcon as k,SlideArrowsSquareIcon as D,SlidePickerBarIcon as U,SlidePickerCardsIcon as g,SlidePickerDotsIcon as y,SlidePickerNumbersIcon as F,SlidePickerSquaresIcon as W,SquareIcon as l}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as N}from"efficient-shell/icons/efficient-looks";const b=N,C={cards:e(g,{}),dots:e(y,{}),numbers:e(F,{}),bar:e(U,{}),squares:e(W,{})},x={outline:e(k,{}),solid:e(b,{}),square:e(D,{}),bare:e(f,{})};import{toggle as i}from"../../../controls.js";import{HERO_TEXTURE_COLOR_ROW as B}from"../../hero-shared-fields.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{alignmentField as q,iconPickerRow as _,placementField as n,segmented as c,slider as p}from"../../../box-fields.js";import{deviceField as E,deviceNote as j}from"efficient-easel/screen/lib/document/device-fields";import{HERO_PHONE_SIDEWAYS_DEFAULT as M,HERO_PHONE_SIDEWAYS_LABEL as X,HERO_PHONE_UPDOWN_DEFAULT as Y,HERO_PHONE_UPDOWN_LABEL as v,phoneSidewaysPoints as K,phoneUpDownPoints as z}from"../../../../../../format/lib/hero-phone-stack.js";import{heroHeightFields as G}from"../../shared-fields.js";import{HeroSlots as S}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const ne={fields:{_dDevice:j(),_gContent:o("Content"),slides:S.slides,strip:S.strip,_gStyle:o("Style"),alignment:q(),_gTexture:o("Texture"),showTexture:i("Show texture",O,e(t,{})),textureColor:B,textureOpacity:p("Texture opacity",e(T,{}),0,100,1,40,"%"),_gLayout:o("Layout"),...G(),_gAutoplay:o("Auto-slide"),autoplay:i("Auto-advance slides",!1,e(h,{})),autoplayInterval:p("Still time per slide",e(I,{}),2,15,1,6,"s"),_gPicker:o("Slide picker"),showPicker:i("Show slide picker",R,e(t,{})),pickerShape:_("Slide picker shape",e(l,{}),d.map(r=>({label:A[r],value:r,picture:C[r]})),m),pickerPlacement:n("Slide picker placement",{fallback:a}),_gArrows:o("Arrows"),showArrows:i("Show arrows",w,e(t,{})),arrowsShape:_("Arrows shape",e(l,{}),L.map(r=>({label:H[r],value:r,picture:x[r]})),P),arrowsPlacement:n("Arrows placement",{fallback:u}),_gPhone:E("mobile",o("On a phone")),phoneUpDown:E("mobile",c(v,e(s,{}),z(),Y)),phoneSideways:E("mobile",c(X,e(s,{}),K(),M))}};export{ne as HeroFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{ImageIcon as b,ImagesIcon as c,MediaIcon as f,MediaLayoutSideBySideIcon as E,MediaLayoutStackedIcon as P,OpacityIcon as m}from"efficient-easel/icons";import{colorInput as g,focusKeptField as i,MEDIA_TYPE_OPTIONS as S,upload as a}from"../../../controls.js";import{group as t,phoneTwinFields as h}from"efficient-easel/screen/lib/document/box-fields";import{segmented as l,slider as d}from"../../../box-fields.js";import{MEDIA_LAYOUT_DEFAULT as n,MEDIA_LAYOUT_LABELS as p,MEDIA_LAYOUTS as y,resolvePhoneLayout as v}from"../../../../../../format/lib/hero-media-layout.js";import{deviceNote as U}from"efficient-easel/screen/lib/document/device-fields";import{HERO_OVERLAY_ROWS as u,HERO_VIDEO_ROWS as r}from"../../hero-shared-fields.js";import{heightField as s,slotNoticeField as A}from"../../shared-fields.js";import{forMediaType as F,heroMediaFields as D,VIDEO_FILE_LABEL as M,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{VIDEO_SOURCE_DEFAULT as I}from"../../../../../../format/lib/hero-video.js";const L=F("video","image"),T=F("image","image"),O={one:o(b,{}),side:o(E,{}),stacked:o(P,{})};import{HeroSingleSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{DEFAULT_TINT as _}from"../../../../../../format/lib/content/tint.js";const z={fields:D({_dDevice:U(),boxNotice:A("HeroSingle"),boxes:C.boxes,_gStyle:t("Style"),overlay:d("Overlay",o(m,{}),0,100,5,100,"%"),overlayColor:u.overlayColor,overlayPosition:u.overlayPosition,_gLayout:t("Layout"),heightDesktop:s("desktop"),heightMobile:s("mobile"),_gMedia:t("Media"),mediaType:l("Type",o(f,{}),S,"image"),mediaLayout:l("Layout",o(c,{}),y.map(e=>({label:p[e],value:e,picture:O[e]})),n),mediaLayoutPhone:h("mediaLayout",l("Layout",o(c,{}),y.map(e=>({label:p[e],value:e,picture:O[e]})),n,{phoneRest:e=>v(void 0,e)})).mediaLayoutPhone,mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:i(),imageFocalTablet:i(),imageFocalPhone:i(),videoSource:r.videoSource,mediaVideo:a(M,"video/*",k),youtubeUrl:r.youtubeUrl,videoPlayback:r.videoPlayback,poster:a("Video poster","image/*","Upload a poster still"),_gTint:t("Image tint"),tintColor:g("Tint color",_),tintOpacity:d("Tint opacity",o(m,{}),0,100,5,0,"%"),mediaImage2:a("Background image","image/*","Upload a background image",{focus:"imageFocal2"}),imageFocal2:i(),imageFocal2Tablet:i(),imageFocal2Phone:i(),tintColor2:g("Tint color",_),tintOpacity2:d("Tint opacity",o(m,{}),0,100,5,0,"%")},{parts:{media:["mediaType","mediaLayout","mediaLayoutPhone","videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:["mediaImage","imageFocal","imageFocalTablet","imageFocalPhone","tintColor","tintOpacity"],image2:["mediaImage2","imageFocal2","imageFocal2Tablet","imageFocal2Phone","tintColor2","tintOpacity2"]},onlyFor:{image:["mediaImage","imageFocal","imageFocalTablet","imageFocalPhone","_gTint","tintColor","tintOpacity","mediaImage2","imageFocal2","imageFocal2Tablet","imageFocal2Phone","tintColor2","tintOpacity2"],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[L,{field:"videoSource",is:"upload",default:I}]},youtubeUrl:{all:[L,{field:"videoSource",is:"youtube",default:I}]},mediaLayout:{all:[T,{not:{context:"device",is:"mobile"}}]},mediaLayoutPhone:{all:[T,{context:"device",is:"mobile"}]}},fallback:"image"})};export{z as HeroSingleFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{BlockVideoIcon as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{BlockVideoIcon as n,ClockIcon as g,ImageIcon as p,MediaIcon as s,OpacityIcon as u,PlayIcon as v}from"efficient-easel/icons";import{colorInput as f,focusKeptField as o,loadingShowsField as I,MEDIA_TYPE_OPTIONS as y,plainText as _,text as S,upload as a,withIdentifier as O,withPanelOnly as m}from"../../../controls.js";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{segmented as F,slider as t}from"../../../box-fields.js";import{LOADING_SHOWS_IMAGE as E,VIDEO_PLAYBACK_DEFAULT as T,VIDEO_SOURCE_DEFAULT as l}from"../../../../../../format/lib/hero-video.js";import{HERO_SLIDE_OVERLAY_ROWS as c,HERO_VIDEO_ROWS as d}from"../../hero-shared-fields.js";import{PH as P}from"../../../../../../format/lib/document/blocks/placeholders.js";import{slotNoticeField as b}from"../../shared-fields.js";import{forMediaType as L,heroMediaFields as D,VIDEO_FILE_LABEL as h,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{DEFAULT_TINT as A}from"../../../../../../format/lib/content/tint.js";import{HeroSlideSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";const r=L("video","video"),G={fields:D({_gContent:i("Content"),name:m(O(_("Slide name",P.slideName))),process:m(S("Reel label","Label")),groupNotice:b("HeroSlide"),groups:C.groups,_gMedia:i("Media"),mediaType:F("Type",e(s,{}),y,"video"),videoSource:d.videoSource,mediaVideo:a(h,"video/*",k,{frame:"videoFrame"}),youtubeUrl:d.youtubeUrl,videoPlayback:d.videoPlayback,videoSpeed:t("Playback speed",e(v,{}),25,100,5,100,"%"),loadingShows:I("Show while loading",e(g,{}),{frame:e(n,{}),image:e(p,{})}),videoFrame:o(),mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:o(),imageFocalTablet:o(),imageFocalPhone:o(),poster:a("Image","image/*","Choose an image"),_gTint:i("Image tint"),tintColor:f("Tint color",A),overlay:t("Tint",e(u,{}),0,100,5,0,"%"),_gOverlay:i("Overlay"),overlayColor:c.overlayColor,overlayPosition:c.overlayPosition},{onlyFor:{image:["mediaImage","imageFocal","imageFocalTablet","imageFocalPhone","_gTint","tintColor","overlay"],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:"video",rules:{mediaVideo:{all:[r,{field:"videoSource",is:"upload",default:l}]},youtubeUrl:{all:[r,{field:"videoSource",is:"youtube",default:l}]},videoSpeed:{all:[r,{field:"videoSource",is:"upload",default:l},{field:"videoPlayback",is:"background",default:T}]},poster:{all:[{field:"mediaType",is:"video",default:"video"},E]}}})};export{G as HeroSlideFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{IMAGE_FIT_ROW_LABEL as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{IMAGE_FIT_ROW_LABEL as f,imageFitOptions as p}from"../../../../../../format/lib/content/image-fit.js";import{FILL_ROW_OPTION as c,imageFocalPointActsIn as n,imageAspectPhoneRest as d}from"../../../../../../format/lib/content/image-aspect.js";import{phoneKey as g}from"efficient-easel/draw";import{CropIcon as m,ImageIcon as h}from"efficient-easel/icons";import{BOX_SHAPES as l}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as a}from"../../../../../../format/lib/content/gallery-card-layout.js";import{fillRowCell as F,shapePickerRow as s}from"../../../shape-picker.js";import{focusKeptField as r,imageCornersField as I,linkField as _,plainText as R,cornerSidesField as w,upload as A,withPanelOnly as S}from"../../../controls.js";import{group as t,phoneTwinFields as u}from"efficient-easel/screen/lib/document/box-fields";import{select as O}from"../../../box-fields.js";import{photographyToggle as P}from"../../shared-fields.js";import{CARD_ROW_FACTS as T,cardRowField as x,cardRowFields as y}from"../../../card-row-fields.js";import{offerNextPicture as L}from"../../../../animation/hover-fields.js";import{darkenFields as k}from"../../../darken-fields.js";const z={fields:{_gImage:t("Image"),src:A("Image","image/*",void 0,{focus:"focal",focusWhen:(e,o)=>n(o,e.fit,e.aspect,e[g("aspect")])}),alt:S(R("Alt text")),rowField:x("Shows","image"),...u("aspect",s("Aspect ratio",i(m,{}),a(l),"image","16/9",{more:[F(c)]}),void 0,{phoneRow:s("Aspect ratio",i(m,{}),a(l),"image","16/9",{phoneRest:d})}),fit:O(f,i(h,{}),p(),"cover"),focal:r(),focalTablet:r(),focalPhone:r(),href:_("Link"),_gStyle:t("Style"),grayscale:P(),...k(),_gShape:t("Shape"),corners:I(),cornerSides:w()},resolveFields:(e,o)=>L(y(o.fields,e,o),e,o),showWhenFacts:T};export{z as ImageBlockFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{CaseIcon as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{CaseIcon as b,OpacityIcon as u,PlacementIcon as _,StickyIcon as y,TextLinesIcon as n}from"efficient-easel/icons";import{colorInput as p,sizeField as r,text as k,textarea as s,toggle as d,upload as c}from"../../../controls.js";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as T,slider as l}from"../../../box-fields.js";import{INTRO_BLEED_PICTURES as x,LONG_WORD_CELL as f}from"../../../choice-pictures.js";import{deviceField as e,deviceNote as S}from"efficient-easel/screen/lib/document/device-fields";import{DEFAULT_INTRO_BLEED_LAYOUT as h,INTRO_BLEED_COPY_SHARE as o,INTRO_BLEED_LAYOUT_OPTIONS as I}from"../../../../../../format/lib/sections/intro-bleed-layout.js";import{heightField as g,ctaField as O}from"../../shared-fields.js";import{INTRO_PH as m}from"../../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";const M={fields:{_dDevice:S(),_gContent:i("Content"),eyebrow:k("Eyebrow",m.eyebrow),title:s("Heading",m.title),body:s("Subtitle",m.body),uppercase:d("Uppercase heading",!1,t(b,{})),_gBackground:i("Background images"),imageSrc:e("desktop",c("Background image","image/*")),imageSrcMobile:e("mobile",c("Background image","image/*")),_gLayout:i("Layout"),layout:T("Text position",t(_,{}),I.map(a=>({...a,picture:x[a.value]})),h,{columns:2,cell:f}),heightDesktop:g("desktop"),heightMobile:g("mobile"),copyShareDesktop:e("desktop",l("Text height",t(n,{}),o.min,o.max,o.step,o.desktop,"%")),copyShareMobile:e("mobile",l("Text height",t(n,{}),o.min,o.max,o.step,o.mobile,"%")),sticky:d("Stick to top",!0,t(y,{})),overlay:l("Overlay",t(u,{}),0,100,5,60,"%"),_gTextDesktop:e("desktop",i("Text style")),titleSizeDesktop:e("desktop",r("Heading font size",32,120,1,96,"heading")),bodySizeDesktop:e("desktop",r("Subtitle font size",12,28,1,17,"body")),_gTextMobile:e("mobile",i("Text style")),titleSizeMobile:e("mobile",r("Heading font size",24,72,1,44,"heading")),bodySizeMobile:e("mobile",r("Subtitle font size",12,22,1,16,"body")),_gButton:i("Button"),...O,buttonColor:p("Button color","#C9A461"),buttonTextColor:p("Button text color","#000000")}};export{M as IntroBleedFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as a,ColumnsIcon as r,HeightIcon as i,PaddingYIcon as m,StylesIcon as n}from"efficient-easel/icons";import{plainText as s,textarea as g,toggle as O,upload as d,withPanelOnly as _}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as c,slider as t}from"../../../box-fields.js";import{LAYOUT_CELL as p,LOGO_LOOK_PICTURES as L}from"../../../choice-pictures.js";import{DEFAULT_LOGO_LOOK as S,LOGO_LOOK_OPTIONS as u}from"../../../../../../format/lib/sections/logo-look.js";import{HEAD_ROWS_SHOW_WHEN as f,OWN_BOX_ROWS_SHOW_WHEN as y}from"../../../../../../format/lib/sections/section-head-placement.js";import{withRowRules as h}from"../../../../../../render/lib/document/show-when.js";import{LogosSlots as I}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const W=["items","heading","bandPadding"],H=["look"],B={fields:h({_gContent:l("Content"),heading:g("Heading","Trusted by *teams worldwide*"),items:{type:"array",label:"Logos",arrayFields:{src:d("Image","image/*"),alt:_(s("Name / alt"))},getItemSummary:o=>o.alt||o.src||"logo"},logos:I.logos,_gStyle:l("Style"),columns:t("Columns",e(r,{}),3,6,1,5),logoHeight:t("Logo height",e(i,{}),20,72,2,28,"px"),bandPadding:t("Space above and below",e(m,{}),16,120,4,40,"px"),grayscale:O("Black and white logos",!0,e(a,{})),look:c("Logo style",e(n,{}),u.map(o=>({...o,picture:L[o.value]})),S,{columns:2,cell:p})},[[W,f],[H,y]])};export{B as LogosFields};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{BlockColumnIcon as i,PlacementIcon as
|
|
2
|
-
*the counter.*`),body:
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{BlockColumnIcon as i,PlacementIcon as m,StateIcon as s,TemplateIcon as c,TextLinesIcon as d}from"efficient-easel/icons";import{plainText as l,text as a,textarea as n,textList as o}from"../../../controls.js";import{group as r}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as b,select as u}from"../../../box-fields.js";import{LAYOUT_CELL as p,MOCKUP_PICTURES as y}from"../../../choice-pictures.js";import{withMockupVariantRules as C,MOCKUP_DEFAULT_VARIANT as f,MOCKUP_VARIANT_OPTIONS as g}from"../../../../../../format/lib/document/mockup-variant-fields.js";const L={fields:C({_gContent:r("Content"),eyebrow:a("Chip label","In the product"),title:n("Heading",`Seen from
|
|
2
|
+
*the counter.*`),body:n("Body",""),_gCard:r("Mockup card"),variant:b("Card type",t(c,{}),g.map(e=>({...e,picture:y[e.value]})),f,{columns:3,cell:p}),cardHeader:a("Card header strip","Product record"),badge:a("Header badge","LIVE"),cardTitle:a("Card title",""),cardSubtitle:a("Card subtitle",""),pills:{type:"array",label:"Selector pills",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Pill"},tiles:{type:"array",label:"Spec tiles",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Tile"},rows:{type:"array",label:"Result / order rows",arrayFields:{lead:l("Lead"),detail:l("Detail"),state:u("State",t(s,{}),[{label:"Match / done (green)",value:"ok"},{label:"In progress (main)",value:"warn"},{label:"No match (gray ✕)",value:"no"}],"ok"),status:l("Status chip")},defaultItemProps:{lead:"",detail:"",state:"ok",status:""},getItemSummary:e=>[e?.lead,e?.detail].filter(Boolean).join(" · ")||"Row"},button:a("Button",""),footnote:a("Footnote",""),_gKanban:r("Kanban columns"),col1Title:a("Column 1 title",""),col1Cards:o("Column 1 cards",t(i,{}),"Job card label","verbatim"),col2Title:a("Column 2 title",""),col2Cards:o("Column 2 cards",t(i,{}),"Job card label","verbatim"),col3Title:a("Column 3 title",""),col3Cards:o("Column 3 cards",t(i,{}),"Job card label","verbatim"),col4Title:a("Column 4 title",""),col4Cards:o("Column 4 cards",t(i,{}),"Job card label","verbatim"),_gClaims:r("Claims bars"),barsHeading:a("Bars heading","Defect rate by product"),bars:{type:"array",label:"Bars",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" · ")||"Bar"},_gTerminal:r("Terminal"),termLines:o("Terminal lines",t(d,{}),"$ efficient …","verbatim"),_gBrowser:r("Browser mock"),urlText:a("URL pill",""),heroTitle:a("Hero line",""),heroButton:a("Hero button",""),products:{type:"array",label:"Product tiles",arrayFields:{name:l("Name"),price:l("Price")},defaultItemProps:{name:"",price:""},getItemSummary:e=>[e?.name,e?.price].filter(Boolean).join(" · ")||"Tile"},_gStyle:r("Style"),align:u("Mockup position",t(m,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")})};export{L as MockupFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{darkenFields as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{darkenFields as l}from"../../../darken-fields.js";import{POST_CARD_HEIGHT as e,POST_CARD_LAYOUT_FALLBACK as c,POST_CARD_LAYOUTS as n}from"../../../../../../format/lib/post-card-layout.js";import p from"../../../../../components/BlogPostSource.js";import{HeightIcon as s,ImageIcon as _,LayoutIcon as O}from"efficient-easel/icons";import{NOT_BOUND_TO_POST as d,linkField as g,sourceField as C,text as r,textarea as a,toggle as T,upload as f}from"../../../controls.js";import{group as u}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as R,placementField as L,slider as S}from"../../../box-fields.js";import{LONG_WORD_CELL as h,POST_CARD_PICTURES as x}from"../../../choice-pictures.js";import{withRowRules as P}from"../../../../../../render/lib/document/show-when.js";import{POSTCARD_PH as t}from"../../../../../../format/lib/document/blocks/general/PostCard/meta.js";const m={field:"layout",is:"cover"},D={not:m},A=["placement","darken","darkenStyle","minHeight","_gTint"],E=["showCover"],y=["image","title","excerpt","href"],Y={fields:P({source:C(p),image:f("Cover image","image/*"),title:a("Heading",t.title),excerpt:a("Excerpt",t.excerpt),href:g("Link"),category:r("Category",t.category),date:r("Date",t.date),readLabel:r("Read time",t.readLabel),layout:R("Card layout",o(O,{}),n.map(i=>({...i,picture:x[i.value]})),c,{columns:2,cell:h}),showCover:T("Show cover image",!0,o(_,{})),placement:L("Text position"),minHeight:S("Card height",o(s,{}),e.min,e.max,e.step,e.fallback,e.unit),_gTint:u("Image tint"),...l()},[[A,m],[E,D],[y,d]])};export{Y as PostCardFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{HashIcon as n,StylesIcon as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{HashIcon as n,StylesIcon as t}from"efficient-easel/icons";import{linkField as m,plainText as E,text as i,textarea as r,upload as S,withPanelOnly as _}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as O,segmented as T,select as p}from"../../../box-fields.js";import{LAYOUT_CELL as L,SECTION_HEAD_PICTURES as a}from"../../../choice-pictures.js";import{DEFAULT_SECTION_NUMBER_STYLE as s,SECTION_NUMBER_STYLE_OPTIONS as c}from"../../../../../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_HEAD_STYLE as g,SECTION_HEAD_STYLE_OPTIONS as N,withHeadStyleRules as I}from"../../../../../../format/lib/sections/section-head-style.js";import{SECTION_EYEBROW_LOOK_OPTIONS as d,DEFAULT_SECTION_EYEBROW_LOOK as u}from"../../../../../../format/lib/sections/section-eyebrow-look.js";const k={fields:I({_gContent:l("Content"),headStyle:O("Style",o(t,{}),N.map(e=>({...e,picture:a[e.value]})),g,{columns:3,cell:L}),num:i("Number","01 / Section"),eyebrowLook:p("Eyebrow style",o(t,{}),[...d],u),numStyle:T("Number style",o(n,{}),[...c],s),title:r("Heading","Section *title*"),description:r("Body","Short supporting line"),linkText:i("Button","View all"),linkHref:m("Link"),_gLogo:l("Logo"),logoSrc:S("Logo image","image/*"),logoAlt:_(E("Logo alt text","Logo description"))})};export{k as SectionHeaderFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{backgroundField as s,copyText as r,plainTextarea as o,text as d,textarea as i}from"../../../controls.js";import{group as
|
|
1
|
+
import{backgroundField as s,copyText as r,plainTextarea as o,text as d,textarea as i}from"../../../controls.js";import{group as t}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as m,headFieldsForPlacement as n}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_BG_BUILT_IN as u}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{SERIES_PH as a}from"../../../../../../format/lib/document/blocks/general/Series/meta.js";const h={fields:{_gHead:t("Section header"),headNum:d("Number",a.headNum),headTitle:i("Heading",a.headTitle),headDesc:i("Body",a.headDesc),_gCards:t("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:r("Number"),since:r("Right Top Text"),title:o("Title"),desc:o("Body"),entries:r("Entries count"),entriesLabel:r("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:t("Card link"),viewLabel:d("Card button",a.viewLabel),_gStyle:t("Style"),background:s("Background color",u.Series,!0)},resolveFields:(e,{fields:l})=>n(l,e.props.headPlacement,m.Series.headRows)};export{h as SeriesFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as s}from"react/jsx-runtime";import{AccentIcon as i}from"efficient-easel/icons";import{backgroundField as p,plainText as e,plainTextarea as m,text as f,textarea as t,toggle as
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{AccentIcon as i}from"efficient-easel/icons";import{backgroundField as p,plainText as e,plainTextarea as m,text as f,textarea as t,toggle as u}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as d,headFieldsForPlacement as n}from"../../../../../../format/lib/sections/section-head-placement.js";import{innerSpacingFields as S}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as g}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{STATS_PARAGRAPH_PH as r}from"../../../../../../format/lib/document/blocks/general/StatsParagraph/meta.js";const A={fields:{_gContent:o("Content"),eyebrow:f("Eyebrow",r.eyebrow),title:t("Heading",r.title),desc:t("Body",r.desc),stats:{type:"array",label:"Stats",arrayFields:{value:e("Number"),prefix:e("Prefix"),suffix:e("Unit"),supSuffix:e("Superscript"),emphasizeAll:u("Whole number Theme Color",!1,s(i,{})),label:e("Label"),sub:m("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:a=>a.label||a.value||"Stat"},_gStyle:o("Style"),background:p("Background color",g.StatsParagraph,!0),...S("StatsParagraph")},resolveFields:(a,{fields:l})=>n(l,a.props.headPlacement,d.StatsParagraph.headRows)};export{A as StatsParagraphFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l}from"react/jsx-runtime";import{ClockIcon as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{ClockIcon as g,EyeIcon as u}from"efficient-easel/icons";import{backgroundField as d,copyText as y,plainTextarea as m,text as o,textarea as p,toggle as T,upload as I}from"../../../controls.js";import{group as s,section as i}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as b}from"../../../box-fields.js";import{LAYOUT_CELL as f,TIMELINE_PICTURES as r}from"../../../choice-pictures.js";import{ctaField as _,innerSpacingFields as k}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as E}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{withRowRules as C}from"../../../../../../render/lib/document/show-when.js";import{TIMELINE_PH as e}from"../../../../../../format/lib/document/blocks/general/Timeline/meta.js";const c={field:"layout",is:"track"},S={not:c},N={fields:C({_dLayout:i("Layout"),layout:b("Display",l(u,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:r.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:r.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:r.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:r.track}],"split",{columns:2,cell:f}),...k("Timeline"),_dDesign:i("Design"),background:d("Background color",E.TimelineTrack),_sHeader:i("Header"),_gContent:s("Content"),eyebrow:o("Eyebrow",e.eyebrow),title:p("Heading",e.title),intro:p("Intro",e.intro),imageSrc:I("Image","image/*"),imageCaption:o("Image caption",e.imageCaption),imageMeta:o("Image meta",e.imageMeta),_gButton:s("Button"),..._,_sEntries:i("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:y("Sub-title"),title:m("Title"),body:m("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:t=>t?.date||t?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],S],[["background"],c]]),resolveFields:(t,{fields:a})=>{if(t.props.layout!=="track")return a;const n=a.entries;return{...a,entries:{...n,arrayFields:{...n?.arrayFields,future:T("Upcoming",!1,l(g,{}))}}}}};export{N as TimelineFields};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const assembleGeneralBlocks: () => Record<"ImageBlock" | "Manifesto" | "Split" | "ContactLocations" | "Grid" | "HeroGroup" | "HeroSlide" | "
|
|
2
|
-
export declare const generalBlocks: Record<"ImageBlock" | "Manifesto" | "Split" | "ContactLocations" | "Grid" | "HeroGroup" | "HeroSlide" | "
|
|
1
|
+
export declare const assembleGeneralBlocks: () => Record<"ImageBlock" | "Manifesto" | "Split" | "ContactLocations" | "Grid" | "HeroGroup" | "HeroSlide" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "FAQ" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "Heading" | "Text" | "Eyebrow" | "LogoBlock" | "LocationMap" | "Contents" | "ButtonBlock" | "PostCard" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
2
|
+
export declare const generalBlocks: Record<"ImageBlock" | "Manifesto" | "Split" | "ContactLocations" | "Grid" | "HeroGroup" | "HeroSlide" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "FAQ" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "Heading" | "Text" | "Eyebrow" | "LogoBlock" | "LocationMap" | "Contents" | "ButtonBlock" | "PostCard" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import { toggle } from "../controls.js";
|
|
3
3
|
export declare const heightField: (tier: "desktop" | "mobile") => import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
|
|
4
|
+
export declare function heroHeightFields(): {
|
|
5
|
+
heightDesktop: import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
|
|
6
|
+
heightTablet: import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
|
|
7
|
+
heightMobile: import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
|
|
8
|
+
};
|
|
4
9
|
export declare const ctaField: {
|
|
5
10
|
ctaText: import("../controls.js").CustomField<import("efficient-easel/draw").HidableValue>;
|
|
6
11
|
ctaHref: import("../controls.js").CustomField<import("efficient-easel/draw").HidableValue>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{SECTION_PAD_INNER_DEFAULTS as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{SECTION_PAD_INNER_DEFAULTS as h}from"../../../../render/lib/document/passes/section-padding.js";import s,{SlotNoticeField as a}from"../../../components/SlotChildRows.js";import{SECTION_HEIGHT as i}from"../../../../format/lib/content/section-height.js";import{usePreviewHeader as d}from"../../../../render/components/PreviewHeaderContext.js";import{IMAGE_GRAYSCALE_LABEL as m}from"../../../../format/lib/content/image-treatment.js";import{BlackAndWhiteIcon as c,ContrastIcon as g,HeightIcon as u,TypeIcon as f}from"efficient-easel/icons";import{linkField as T,spacingFields as F,text as y,toggle as b}from"../controls.js";import{segmented as x,slider as _}from"../box-fields.js";import{deviceField as w}from"efficient-easel/screen/lib/document/device-fields";import{phoneTwinFields as n}from"efficient-easel/screen/lib/document/box-fields";import{FieldGlyph as k}from"../../../components/FieldGlyph.js";import{fieldNoun as E}from"../../../../format/lib/document/field-noun.js";import{CTA_PH as H}from"../../../../format/lib/document/blocks/placeholders.js";const l=e=>_("Height",o(u,{}),i.min,i.max,i.step,i.fallback,i.unit,e),j=e=>w(e,l()),p={read:e=>e.heightMobile,write:(e,t,r)=>({heightMobile:r}),fieldKey:()=>"heightMobile",ownField:!0,tablet:{read:e=>e.heightTablet,write:(e,t,r)=>({heightTablet:r}),fieldKey:()=>"heightTablet",ownField:!0}};function U(){const e=n("heightDesktop",l(),p),t=n("heightDesktop",l({clear:{phoneFollows:!1}}),p);return{heightDesktop:e.heightDesktop,heightTablet:e.heightTablet,heightMobile:t.heightMobile}}const W={ctaText:y("Button",H.text),ctaHref:T("Button link")},Y=()=>x("Tone",o(g,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default"),q=e=>F({...h[e],keys:{top:"padTop",bottom:"padBottom"},group:!1}),z=(e,t)=>({type:"custom",render:()=>o(s,{parentType:e,label:t})}),J=e=>({type:"custom",render:()=>o(a,{parentType:e})});function I(e){const{photographyGrayscale:t}=d();return b(m,t===!0,o(c,{})).render(e)}function Q(){return{type:"custom",render:e=>o(I,{...e})}}function V(e){const t=E(e);return t?o(k,{noun:t}):o(f,{})}export{W as ctaField,j as heightField,U as heroHeightFields,q as innerSpacingFields,Q as photographyToggle,J as slotNoticeField,z as slotRowsField,V as textKindGlyph,Y as toneField};
|