efficient-web-builder 65.0.0 → 67.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 +82 -0
- package/dist/editor/components/AnchorField.js +1 -1
- package/dist/editor/components/CardShadowField.js +1 -1
- package/dist/editor/components/MediaUploadField.js +1 -1
- package/dist/editor/components/PagesPanel.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/SectionEditor.js +1 -1
- package/dist/editor/components/SectionWidthRows.d.ts +3 -1
- package/dist/editor/components/SectionWidthRows.js +1 -1
- package/dist/editor/components/SiteTextStylesField.js +1 -1
- package/dist/editor/components/WebsitePreviewButton.js +1 -1
- package/dist/editor/components/storefront-editor.css +16 -24
- package/dist/editor/components/usePreviewHref.js +1 -1
- package/dist/editor/lib/animation/hover-fields.d.ts +1 -1
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +0 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/IntroBleed/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
- package/dist/editor/lib/document/box-fields.d.ts +2 -1
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/card-row-fields.d.ts +3 -0
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +31 -12
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/field-groups.d.ts +0 -3
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/document/section-own-width-fields.js +1 -1
- package/dist/editor/lib/sections/section-dry-run.d.ts +1 -20
- package/dist/editor/lib/sections/section-dry-run.js +2 -2
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/animation/views.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +3 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/borders.d.ts +12 -2
- package/dist/format/lib/content/borders.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +1 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-link.d.ts +11 -0
- package/dist/format/lib/content/box-link.js +8 -8
- package/dist/format/lib/content/box-phone-place.d.ts +0 -2
- package/dist/format/lib/content/box-phone-place.js +1 -1
- package/dist/format/lib/content/box-side-space.js +1 -1
- package/dist/format/lib/content/card-corners.d.ts +3 -1
- package/dist/format/lib/content/card-corners.js +1 -1
- package/dist/format/lib/content/card-image-shape.d.ts +5 -1
- package/dist/format/lib/content/card-image-shape.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +1 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/contact.d.ts +0 -1
- package/dist/format/lib/content/contact.js +2 -2
- package/dist/format/lib/content/css-length.d.ts +7 -0
- package/dist/format/lib/content/css-length.js +1 -0
- package/dist/format/lib/content/image-corners.d.ts +3 -1
- package/dist/format/lib/content/image-corners.js +1 -1
- package/dist/format/lib/content/page-width.d.ts +17 -1
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/content/section-corners.d.ts +3 -1
- package/dist/format/lib/content/section-corners.js +1 -1
- package/dist/format/lib/content/section-sticky.d.ts +5 -0
- package/dist/format/lib/content/section-sticky.js +1 -1
- package/dist/format/lib/content/section-type-size.d.ts +12 -1
- package/dist/format/lib/content/section-type-size.js +1 -1
- package/dist/format/lib/content/section-width.d.ts +8 -0
- package/dist/format/lib/content/section-width.js +1 -1
- package/dist/format/lib/content/view-tier.d.ts +10 -0
- package/dist/format/lib/content/view-tier.js +1 -0
- package/dist/format/lib/document/blocks/general/Banner/meta.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/Banner/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/SectionHeader/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.js +2 -2
- package/dist/format/lib/document/media-drop.js +1 -1
- package/dist/format/lib/document/one-h1.d.ts +2 -0
- package/dist/format/lib/document/one-h1.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +1 -0
- package/dist/format/lib/document/renamed-props.d.ts +1 -0
- package/dist/format/lib/document/renamed-props.js +1 -1
- package/dist/format/lib/document/section-catalog.js +10 -2
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/fit-words.js +4 -1
- package/dist/format/lib/links/page-link-rules.d.ts +0 -1
- package/dist/format/lib/links/page-link-rules.js +1 -1
- package/dist/format/lib/markup.d.ts +1 -0
- package/dist/format/lib/markup.js +2 -2
- package/dist/format/lib/post-card-layout.d.ts +3 -0
- package/dist/format/lib/post-card-layout.js +1 -1
- package/dist/format/lib/sections/divider-style.d.ts +9 -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/sections/timeline-year-shape.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +1 -1
- package/dist/format/lib/source-rules/one-length-control.d.ts +18 -0
- package/dist/format/lib/source-rules/one-length-control.js +16 -0
- package/dist/format/lib/source-rules/support/label-extraction.js +3 -3
- package/dist/format/lib/theme.d.ts +1 -2
- package/dist/format/lib/theme.js +4 -4
- package/dist/format/lib/web-runtime.d.ts +2 -0
- package/dist/format/lib/web-runtime.js +1 -1
- package/dist/render/components/BlockFrame.d.ts +3 -3
- package/dist/render/components/BlockFrame.js +1 -1
- package/dist/render/components/Breadcrumb.js +1 -1
- package/dist/render/components/Btn.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +7 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/CategoryBar.js +1 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/DealerFinder.d.ts +4 -1
- package/dist/render/components/DealerFinder.js +1 -1
- package/dist/render/components/Divider.d.ts +3 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocTabs.js +1 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.d.ts +3 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.d.ts +5 -3
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/Heading.d.ts +0 -1
- package/dist/render/components/Heading.js +1 -1
- package/dist/render/components/HeroGroup.d.ts +3 -1
- package/dist/render/components/HeroGroup.js +1 -1
- package/dist/render/components/ImageBlock.d.ts +2 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/IntroBleed.d.ts +3 -2
- package/dist/render/components/IntroBleed.js +1 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/LocationMap.js +1 -1
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.d.ts +1 -2
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/PictureHoverMove.d.ts +18 -0
- package/dist/render/components/PictureHoverMove.js +1 -0
- package/dist/render/components/PictureWash.d.ts +2 -1
- package/dist/render/components/PictureWash.js +1 -1
- package/dist/render/components/PostCard.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +2 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/SideListLayout.d.ts +4 -1
- package/dist/render/components/SideListLayout.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineRail.d.ts +11 -3
- package/dist/render/components/TimelineRail.js +1 -1
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/components/goldPhrases.js +3 -3
- package/dist/render/lib/content/block-size.d.ts +5 -1
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +1 -1
- package/dist/render/lib/content/box-stack-line.js +1 -1
- package/dist/render/lib/content/button-look.d.ts +2 -0
- package/dist/render/lib/content/button-look.js +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +5 -2
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/dealer-source.d.ts +6 -2
- package/dist/render/lib/dealer-source.js +1 -1
- package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Divider/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroGroup/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/IntroBleed/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/card-press-titles.d.ts +10 -0
- package/dist/render/lib/document/card-press-titles.js +1 -0
- package/dist/render/lib/document/part-styles.d.ts +13 -0
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/borders.js +1 -1
- package/dist/render/lib/document/passes/corners.js +1 -1
- package/dist/render/lib/document/passes/section-height.js +1 -1
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/published-passes.js +1 -1
- package/dist/render/lib/document/slot-specs.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +0 -15
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/dist/render/lib/site-runtime.d.ts +4 -1
- package/dist/render/lib/site-runtime.js +1 -1
- package/dist/render/lib/text-styles/site-text-styles.js +2 -2
- package/package.json +5 -5
- package/dist/editor/components/TemplateFieldRow.d.ts +0 -11
- package/dist/editor/components/TemplateFieldRow.js +0 -1
- package/dist/editor/lib/document/panel-heading-scope.d.ts +0 -8
- package/dist/editor/lib/document/panel-heading-scope.js +0 -1
- package/dist/editor/lib/document/template-field.d.ts +0 -13
- package/dist/editor/lib/document/template-field.js +0 -1
- package/dist/format/lib/canvas-accent.d.ts +0 -1
- package/dist/format/lib/canvas-accent.js +0 -1
- package/dist/format/lib/source-rules/padding-units-declared.d.ts +0 -2
- package/dist/format/lib/source-rules/padding-units-declared.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{AccentIcon as G,ContrastIcon as W,ExpandIcon as X,FinishIcon as z,ImagesIcon as Y,NoSymbolIcon as f,HoverLiftIcon as j,HoverNextImageIcon as Z,HoverRotateIcon as q,HoverZoomIcon as O,OpacityIcon as J}from"efficient-easel/icons";import{customize as Q,describedAs as w,group as $}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as v}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as n}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as ee,noControlField as oe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as p}from"../../../format/lib/content/box-background.js";import{cardTemplateOwner as te}from"../../../format/lib/content/card-template.js";import{angleRow as re,segmented as V,select as ne,slider as N}from"../document/box-fields.js";import{say as u}from"../../../format/lib/editor-words.js";import{withShowWhen as a}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as T,animationDurationField as D,showsWhatRuns as H}from"./AnimationDurationRow.js";import{BOX_HIGHLIGHT as S,BOX_HOVER_KINDS as A,BOX_HOVER_LABELS as C,CARD_HOVER_KEYS as c,CARD_HOVER_KINDS as se,CARD_HOVER_SECTIONS as ie,CARD_HOVER_TURN as ce,HOVER_KEY as h,HOVER_MEDIA_COVERS as ae,HOVER_MEDIA_COVER_LABELS as pe,HOVER_MEDIA_DEFAULTS as m,HOVER_MEDIA_GROUPS as he,HOVER_MEDIA_GROUP_LABELS as de,HOVER_MEDIA_KINDS as _e,HOVER_MEDIA_KIND_LABELS as le,HOVER_KIND_LABELS as k,NEXT_PICTURE_BLOCKS as x,NEXT_PICTURE_HOVER_KINDS as ue,OLD_SPIN_KEY as Ee,PART_HOVER_KINDS as g,PICTURE_HOVER_KEYS as K,PICTURE_HOVER_KINDS as Re,PICTURE_HOVER_ZOOM as d,cardHoverAngleOf as He,cardHoverKindOf as me,cardRotatesRule as Ie,cardShowsNextRule as P,HOVER_GROUP_KEY as E,pictureHoverKindOf as fe,pictureHoverMoveRule as Oe,pictureHoverRunsRule as b,pictureHoverTimedRule as we}from"../../../format/lib/animation/hover.js";const R=e=>n("desktop",$("Hover",{dot:e})),L=()=>n("desktop",Q()),ve="What this does when a shopper points at it, or taps it on a phone.",Ve="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",Ne="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.",Te="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",De="Which of the product's pictures the card shows.",Se="Same finish shows the photos of the finish the card shows, else the first group.",Ae="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",Ce={none:()=>i(f,{}),nextImage:()=>i(Z,{}),rotate:()=>i(q,{}),zoom:()=>i(O,{}),lift:()=>i(j,{}),mono:()=>i(W,{})};function I(e,o){const s=v({label:u("Hover effect"),options:e.map(
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{AccentIcon as G,ContrastIcon as W,ExpandIcon as X,FinishIcon as z,ImagesIcon as Y,NoSymbolIcon as f,HoverLiftIcon as j,HoverNextImageIcon as Z,HoverRotateIcon as q,HoverZoomIcon as O,OpacityIcon as J}from"efficient-easel/icons";import{customize as Q,describedAs as w,group as $}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as v}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as n}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as ee,noControlField as oe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as p}from"../../../format/lib/content/box-background.js";import{cardTemplateOwner as te}from"../../../format/lib/content/card-template.js";import{angleRow as re,segmented as V,select as ne,slider as N}from"../document/box-fields.js";import{say as u}from"../../../format/lib/editor-words.js";import{withShowWhen as a}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as T,animationDurationField as D,showsWhatRuns as H}from"./AnimationDurationRow.js";import{BOX_HIGHLIGHT as S,BOX_HOVER_KINDS as A,BOX_HOVER_LABELS as C,CARD_HOVER_KEYS as c,CARD_HOVER_KINDS as se,CARD_HOVER_SECTIONS as ie,CARD_HOVER_TURN as ce,HOVER_KEY as h,HOVER_MEDIA_COVERS as ae,HOVER_MEDIA_COVER_LABELS as pe,HOVER_MEDIA_DEFAULTS as m,HOVER_MEDIA_GROUPS as he,HOVER_MEDIA_GROUP_LABELS as de,HOVER_MEDIA_KINDS as _e,HOVER_MEDIA_KIND_LABELS as le,HOVER_KIND_LABELS as k,NEXT_PICTURE_BLOCKS as x,NEXT_PICTURE_HOVER_KINDS as ue,OLD_SPIN_KEY as Ee,PART_HOVER_KINDS as g,PICTURE_HOVER_KEYS as K,PICTURE_HOVER_KINDS as Re,PICTURE_HOVER_ZOOM as d,cardHoverAngleOf as He,cardHoverKindOf as me,cardRotatesRule as Ie,cardShowsNextRule as P,HOVER_GROUP_KEY as E,pictureHoverKindOf as fe,pictureHoverMoveRule as Oe,pictureHoverRunsRule as b,pictureHoverTimedRule as we}from"../../../format/lib/animation/hover.js";const R=e=>n("desktop",$("Hover",{dot:e})),L=()=>n("desktop",Q()),ve="What this does when a shopper points at it, or taps it on a phone.",Ve="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",Ne="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.",Te="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",De="Which of the product's pictures the card shows.",Se="Same finish shows the photos of the finish the card shows, else the first group.",Ae="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",Ce={none:()=>i(f,{}),nextImage:()=>i(Z,{}),rotate:()=>i(q,{}),zoom:()=>i(O,{}),lift:()=>i(j,{}),mono:()=>i(W,{})};function I(e,o){const s=v({label:u("Hover effect"),options:e.map(r=>({value:r,label:u(k[r]),picture:Ce[r]()})),fallback:o});return w(s,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:k[r]}))})}function je(){return{[E]:R({field:h,in:g.filter(e=>e!=="none")}),[h]:n("desktop",{...I(g,"none"),description:ve})}}function Ze(e){const o=Ie(e),s=P(),r=re(ce);return{[E]:R({any:[o,s]}),[c.kind]:n("desktop",{...H(I(se,e),(t,_)=>me(_??{},e)),description:Te}),...U(s),[Ee]:oe({type:"custom",render:()=>i(ee,{})},"always"),_cHover:L(),[c.angle]:n("desktop",a(H(r,t=>He(t)),o)),[c.duration]:n("desktop",a(D("hover"),o)),[c.delay]:n("desktop",a(T("hover"),o))}}function U(e){const o=ne("Type",i(Y,{}),_e.map(t=>({value:t,label:le[t]})),m.kind),s=V("Group",i(z,{}),he.map(t=>({value:t,label:de[t]})),m.group),r=V("Covers",i(X,{}),ae.map(t=>({value:t,label:pe[t]})),m.cover);return{[c.mediaKind]:n("desktop",a({...o,description:De},e)),[c.mediaGroup]:n("desktop",a({...s,description:Se},e)),[c.cover]:n("desktop",a({...r,description:Ae},e))}}function ke(e,o="",s=x.includes(o)){const r=b(e),t=we(e);return{[E]:R(r),[c.kind]:y(Re,e,Ve),...x.includes(o)?U(P()):{},_cHover:L(),...s?xe():{},[c.duration]:n("desktop",a(D("hover"),t)),[c.delay]:n("desktop",a(T("hover"),t))}}function xe(){const e=Oe(),o=N("Zoom",i(O,{}),d.min,d.max,d.step,d.min,d.unit),s=N("Darken on hover",i(J,{}),p.min,p.max,p.step,p.fallback,p.unit);return{[K.zoom]:n("desktop",a(o,e)),[K.darken]:n("desktop",a(s,e))}}function y(e,o,s){const r=n("desktop",{...H(I(e,o),t=>fe({[h]:t},o,e)),description:s});return Object.assign(r,{[B]:o})}const B="sfPictureResting",M=new WeakMap;function qe(e,o,s){const r=e[c.kind],t=r?.[B];if(!r||!t)return e;const _=o.props?.[h]==="nextImage",F=_?null:te(s.appState,o.props?.id);if(!_&&!ie.includes(String(F?.type??"")))return e;let l=M.get(e);return l||(l={...e,[c.kind]:y(ue,t,Ne)},M.set(e,l)),l}const ge="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",Ke={none:()=>i(f,{}),[S]:()=>i(G,{})},Je=n("desktop",{...w(v({label:u("Hover effect"),options:A.map(e=>({value:e,label:u(C[e]),picture:Ke[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:A.map(e=>({value:e,label:C[e]}))}),description:ge});function Qe(){const e={any:[b("none"),{field:h,is:S}]};return{...ke("none","",!0),[E]:R(e)}}export{Je as BOX_HIGHLIGHT_ROW,Qe as boxHoverFields,Ze as cardHoverFields,je as hoverFields,qe as offerNextPicture,ke as pictureHoverFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{OpacityIcon as a}from"efficient-easel/icons";import{text as i,textarea as r,upload as m}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{slider as n}from"../../../box-fields.js";import{ctaField as g}from"../../shared-fields.js";import{BANNER_PH as t}from"../../../../../../format/lib/document/blocks/general/Banner/meta.js";const s={fields:{_gContent:o("Content"),eyebrow:i("Eyebrow",t.eyebrow),title:r("Heading",t.title),body:r("Body",t.body),_gBackground:o("Background image"),imageSrc:m("Image","image/*"),overlay:n("Overlay",e(a,{}),0,100,5,60,"%"),_gButton:o("Button"),...g,_gLayout:o("Layout")}};export{s as BannerFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,jsxs as S}from"react/jsx-runtime";import{ButtonIcon as B,ButtonIconIcon as C,IconAfterTextIcon as _,IconBeforeTextIcon as w}from"efficient-easel/icons";import{SettingsField as O}from"efficient-easel/panel";import{useSelectedFields as m}from"efficient-easel/easel";import{buttonFieldSet as k}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as F}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as v,Segmented as N}from"efficient-shell/ui";import{shellGlyphOf as R}from"../../../shell-glyph.js";import{StorefrontTextLinkField as P}from"../../../../../components/StorefrontLinkField.js";import{usePreviewHeader as a}from"../../../../../../render/components/PreviewHeaderContext.js";import{BUTTON_ICONS as W,buttonIconChoice as L,buttonIconSide as E,buttonWidth as A}from"../../../../../../format/lib/content/button-icon.js";import{BUTTON_PAD_BUILT_IN as j,buttonLook as u}from"../../../../../../render/lib/content/button-look.js";import{nonEmptyString as U}from"../../../../../../format/lib/non-empty-string.js";import{selectedThemeColors as z,siteButtonPaint as p,siteButtonRadiusPx as D}from"../../../../../../format/lib/theme.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{backTo as K,buttonWordsEntryField as G,hidableText as H,inOwnBox as V,linkField as Y,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{LENGTH_UNITS_TABLE as M,pickerNoneIcon as Q,rowSay as X,ShellIconWord as b}from"../../../box-fields.js";import{CARD_ROW_FACTS as Z,cardRowField as $,cardRowFields as ee,cardRowLinkField as oe,typedLinkField as te}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as ne}from"../../../../../../format/lib/content/card-template.js";import{consentWordsKept as ie,withConsentWordsRow as re}from"../../../consent-words-field.js";const d=e=>R(e==="none"?"no-symbol":e),se=W.map(e=>({value:e,icon:e==="none"?Q(d(e),t(b,{value:e})):d(e)})),I=q("Button");function le({value:e,onChange:n}){const o=m(),i=o.values.href,s=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?t(P,{label:"Button",icon:t(B,{size:18}),text:s,onTextChange:n,link:typeof i=="string"?i:"",onLinkChange:l=>o.onChange("href",l)}):I.render({value:s,field:{label:"Button"},onChange:l=>n(H(l))})}function ce({value:e,onChange:n}){const o=m(),i=L(e,o.values.arrow),s=E(o.values.iconPosition),l=A(o.values.widthFit)==="fill",g=d("icon-at-end");return t(O,{label:r("Icon"),icon:t(C,{size:18}),value:i==="none"?void 0:t(b,{value:i}),children:S("div",{className:"flex items-center gap-2",children:[t(v,{label:r("Icon"),value:i,options:se,onChange:n}),i!=="none"&&t(N,{size:"sm",block:!0,label:r("Icon position"),value:s==="end"&&!l?"after":s,onChange:y=>o.onChange("iconPosition",y),options:[{value:"before",icon:t(w,{size:16}),label:t("span",{className:"sr-only",children:r("Icon before text")}),title:r("Icon before text")},{value:"after",icon:t(_,{size:16}),label:t("span",{className:"sr-only",children:r("Icon after text")}),title:r("Icon after text")},...l?[{value:"end",icon:g,label:t("span",{className:"sr-only",children:r("Icon at the far end")}),title:r("Icon at the far end")}]:[]]})]})})}const x=()=>p(a().theme),T=k({lengthUnits:M,follows:{useFill:()=>x().fill,useText:()=>x().ink,useBorder:()=>{const[e]=f("variant"),[n]=f("buttonColor"),{theme:o}=a(),i=u({variant:e,buttonColor:n}).border.width,s=U(n)??(e==="ghost"?z(o).text:p(o).fill);return{width:i,color:s}},useCorners:()=>D(a().cornerRadiusPx),useFillOpacity:()=>u({variant:f("variant")[0]}).fillOpacity},usePresets:J,resetTo:e=>K(e,r("Styles")),padding:{fallback:j,tablet:!0},phone:F,say:X});function ae(e,n){const o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(n)+1).map(i=>[i,e[i]]))}const Pe={fields:{label:V(I,e=>t(le,{value:e.value,onChange:e.onChange})),labelText:G("label"),href:te({...Y("Button link"),...c("label")}),consentWords:ie("label"),_gButton:h("Button"),rowField:$("Shows","text"),[ne]:oe(),...ae(T,"_dDesign"),_gStyle:h("Style"),variant:c("buttonColor"),icon:{type:"custom",render:e=>t(ce,{value:e.value,onChange:e.onChange})},iconPosition:c("icon"),arrow:c("icon"),...T},resolveFields:(e,n)=>re(ee(n.fields,e,n),e.props,"label",["href"]),showWhenFacts:Z};export{Pe as ButtonBlockFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{StylesIcon as p,WeightIcon as m,WidthIcon as a}from"efficient-easel/icons";import{swapPadding as I}from"../../../controls.js";import{keptByRow as _}from"efficient-easel/screen/lib/document/style-fields";import{iconPickerRow as D,lengthUnitFields as s,sidesPaddingFields as E,slider as o}from"../../../box-fields.js";import{LAYOUT_CELL as f,dividerPicture as g}from"../../../choice-pictures.js";import{DEFAULT_DIVIDER_STYLE as n,DIVIDER_LENGTH_ROW as r,DIVIDER_SPACE_PX as R,DIVIDER_STYLE_OPTIONS as h,DIVIDER_THICKNESS_ROW as l,parseDividerSpacing as S}from"../../../../../../format/lib/sections/divider-style.js";import{withRowRules as P}from"../../../../../../render/lib/document/show-when.js";const L={any:[{field:"style",set:!1},{field:"style",is:n}]},T={not:{field:"style",is:"none"}},N={fields:P({style:D("Style",t(p,{}),h.map(e=>({...e,picture:g(e.value)})),n,{columns:3,cell:f}),spacing:_("sectionPaddingTop"),thickness:o("Thickness",t(m,{}),1,8,1,1,l),...s(l,"thickness"),lengthPct:o("Length",t(a,{}),10,100,1,100,r),...s(r,"lengthPct")},[[["thickness"],L],[["lengthPct"],T]]),resolveFields:(e,{fields:c})=>{const i=R[S(e.props.spacing)],d=E({fallback:{top:i,bottom:i},tablet:!0,siteSide:!0});return I(c,d)}};export{N as DividerFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{phoneKey as r,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as w,BOX_SWATCH_PROP as No,boxCardProps as Do,boxIsCard as x}from"../../../../../../format/lib/content/box-background.js";import{BOX_IS_CARD_RULE as Io,BOX_IS_NOT_CARD_RULE as Lo,BOX_ROW_IMAGE_PROP as go}from"../../../../../../format/lib/content/box-card-rule.js";import{CARD_ROW_FACTS as bo,cardRowField as T,cardRowFields as Po}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as Fo,cardCopyPlace as Ho}from"../../../../../../format/lib/content/card-template.js";import{HOVER_KEY as y}from"../../../../../../format/lib/animation/hover.js";import{BOX_HIGHLIGHT_ROW as ko}from"../../../../animation/hover-fields.js";import{darkenFields as Wo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as xo,REEL_SHAPE_LABELS as yo}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as B,CARD_LIST_STYLE_PICTURES as Bo,TAB_SHAPE_PICTURES as Mo}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as A,CARD_STYLE_POINTS as Uo,applyCardStyle as Xo,isCardStyle as Ko}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as Go,ClockIcon as Yo,CropIcon as M,GapIcon as vo,MediaLayoutStackedIcon as jo,LineBetweenIcon as Vo,LineSolidIcon as Jo,ListIcon as zo,NumberedListIcon as U,ShadowIcon as qo,StylesIcon as X,TableIcon as K,TargetIcon as Qo,WrapIcon as G}from"efficient-easel/icons";import{boxBlockSpacingField as Zo,boxFillField as $o,boxColumnsFields as oe,boxShareField as ee,boxSharePhoneField as ne,boxShareTabletField as te,containerDirectionField as re,containerGapRows as ie,linkField as le,plainText as ae,swapPadding as Y,toggle as c,upload as v,withPanelOnly as se}from"../../../controls.js";import{BOX_STACK_LINE as j,BOX_STACK_RANGE as N,STACK_BELOW_PROP as V}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as J,boxShapeOf as de}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as ce}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as z}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as q}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as _e,ACCORDION_PHONE_COLUMN_COUNTS as pe,BOX_COLUMNS_MAX as D,BOX_COLUMNS_MIN as I,boxPhoneRowOneLine as Se,boxWrapWordOf as Q}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as Z}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as $,VIEW_KEY_ACCESS as s,group as f,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as Oe,boxAlignField as me,boxJustifyField as fe,boxWrapField as E,iconPickerRow as L,placementField as Re,select as g,sidesPaddingFields as oo,slider as he}from"../../../box-fields.js";import{withRowRules as ue,withShowWhen as Ae}from"../../../../../../render/lib/document/show-when.js";import{separatorField as Ce}from"../../../separator-field.js";import{LOOP_SCROLLS as we}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as Ee,TICKER_JOIN_OPTIONS as Te}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as eo}from"../../../../../../format/lib/document/passes/document-position.js";import{BOX_SIDE_SPACE_PROP as no}from"../../../../../../format/lib/content/box-side-space.js";import{boxSideSpaceField as Ne}from"../../../box-side-space-field.js";import{accordionOnSet as De}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as Ie,ACCORDION_ROW_STYLE_PROP as b}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as to}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as Le,CONTAINER_BLOCKS_SLOT as ge}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as be}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Pe,ON_A_CARD as ro,cardDisplayField as P}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Fe,MIRROR_CARDS_MIRRORS as He,mirrorCardsField as ke}from"../../../mirror-cards-field.js";import{handedRowOf as io}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as We,showForField as xe,showForFields as ye}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as R,SHARED_COLUMNS_LABEL as lo,SHARED_COLUMNS_OFF as ao,sharedColumnsDrawn as so,sharedColumnsFits as co,SHARED_COLUMNS_PHONE_POINTS as Be,SHARED_COLUMNS_POINTS as Me,sharedRowsDrawn as Ue}from"../../../../../../render/lib/content/box-shared-columns.js";const _o=Io,po={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},Xe={field:"direction",is:"tabs"},Ke={field:"line",in:[!0,!1]},Ge={field:"anchor",set:!0},F=["fixed","screen"],Ye={not:{any:[{field:"sectionHeightMode",in:F},{field:"sectionHeightModeTablet",in:F},{field:"sectionHeightModePhone",in:F}]}},ve={context:"parent.line",is:!0},_={not:{field:"direction",is:"accordion"}},So={field:"direction",is:"accordion"},Oo={any:[_,{not:{field:b,is:"numbered"}},{field:"columns",in:[..._e]},{field:"phoneRow",in:[...pe]}]},mo="notAccordionRow",je={not:{context:mo,is:!0}},Ve={[mo]:(o,e)=>e.parent?.props?.direction!=="accordion"},H={field:"direction",is:"row",default:"row"},p={not:we},S={all:[H,p,{not:{field:"separator",in:Z.map(o=>o.value)}},{not:{field:"line",is:!0}}]},fo={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:D},(e,n)=>n+I)}}))]},Je={all:[p,{not:{all:[H,{field:"separator",in:Z.map(o=>o.value)}]}}]},k={not:{all:[S,{field:"columns",in:Array.from({length:D},(o,e)=>e+I)}]}},ze="sharedColumnsFits",Ro="sharedColumnsMisfit",ho="sharedColumnsDraws",uo="sharedColumnsPhoneDraws";function O(o,e){return Do(o.props??{},Ho(e.appState,o.props?.id)?.inCopy!==!1)}const qe={[ze]:(o,e)=>co(O(o,e)),[Ro]:(o,e)=>!co(O(o,e)),[ho]:(o,e)=>so(O(o,e)).desktop,[uo]:(o,e)=>so(O(o,e)).phone};function Ao(o){return{all:[{not:{context:Ro,is:!0}},{any:[ro,{field:o,set:!0}]}]}}const m={not:{context:ho,is:!0}},h={not:{context:uo,is:!0}},Co="sharedRowsDraws",Qe={[Co]:(o,e)=>Ue(O(o,e))&&io(e.appState,o.props?.id)?.row===void 0},C={not:{context:Co,is:!0}},Ze={any:[m,h]},W=Lo,$e={not:{context:He,is:!0}},wo="rowHanded",on={not:{context:wo,is:!0}},en={[wo]:(o,e)=>{const n=io(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},Eo={all:[_,W,m,h,$e]},nn={field:"direction",is:"row"},tn={field:"align",in:["start","center","end"]},rn={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function ln(){const{darken:o,darkenStyle:e}=Wo();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const To={not:{all:[S,{field:i("columns"),in:Array.from({length:D},(o,e)=>e+I)}]}};function an(){const o=c($,!1,t(G,{})),e=n=>{const l=Q(n);return l===void 0?void 0:l==="wrap"};return{...E(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:l=>n.onChange(l===void 0?void 0:l?"wrap":"nowrap")})}}function sn(){const o=c($,!0,t(G,{})),e=n=>{const l=Q(n);return l===void 0?void 0:l==="wrap"};return{...E(),render:n=>{const l=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!Se(void 0,l?n.follows:void 0),followsNoView:!l,onChange:u=>n.onChange(u===void 0?void 0:u?"wrap":"nowrap")})}}}const $n={fields:ue({_gContent:f("Content"),rowTitle:to.rowTitle,content:to.content,_gCardDisplay:f("Display"),cardDisplay:P("desktop"),cardDisplayTablet:P("tablet"),cardDisplayPhone:P("mobile"),showFor:xe(),_gLayout:f("Layout"),direction:re("Flex"),tabShape:L("Tab shape",t(X,{}),xo.map(o=>({label:yo[o],value:o,picture:Mo[o]})),"tabs",{columns:2,cell:B}),mirrorCards:ke(),[V]:a("desktop",he("Stacks below",t(jo,{}),N.min,N.max,N.step,j,"px",{clear:{hint:j},hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[no]:Ne(),startsOpen:a("desktop",c("Starts open",!1,t(Go,{}))),[b]:a("desktop",L("Row style",t(U,{}),Ie.map(o=>({...o,picture:o.value==="numbered"?t(U,{}):t(zo,{})})),"plain",{columns:2})),label:se(ae("Tab name")),...ie("Flex"),...d("justify",fe(),s),...d("align",me(),s),...(()=>{const o=d("wrap",E(),s,{phoneRow:sn()}),e=d("wrap",E(),s,{phoneRow:an()});return{wrap:e.wrap,[i("wrap")]:e[i("wrap")],[r("wrap")]:o[r("wrap")]}})(),[r("order")]:be(),...d("boxShape",q("Box shape",t(M,{}),z(J),"shape","auto"),s,{phoneRow:q("Box shape",t(M,{}),z(J),"shape","auto",{phoneRest:o=>de(o)})}),[ce]:a("desktop",Oe(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:Ce(t(Vo,{size:18}),"none"),[A]:a("desktop",L("Card style",t(X,{}),Uo.map(o=>({...o,picture:Bo[o.value]})),"table",{columns:2,cell:B})),share:a("desktop",ee()),[i("share")]:te(),[r("share")]:ne(),[R]:a("desktop",g(lo,t(K,{}),[...Me],ao)),[r(R)]:a("mobile",g(lo,t(K,{}),[...Be],ao)),...oe(),...d("blockSpacing",Zo(),s),line:c("Line",!1,t(Jo,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,t(Yo,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:g("Join",t(vo,{}),Te,Ee),_gShadow:f("Shadow"),...d("shadow",c("Shadow",!1,t(qo,{})),s),...d("fillColor",$o(),s),[No]:T("Fill content","colour"),_gBackground:f("Background image"),bgImage:a("desktop",v("Image","image/*")),bgImagePhone:a("mobile",v("Image","image/*")),[go]:T("Image content","image",{content:!0}),...ln(),placement:Re("Content position"),_gLink:f("Link"),link:le("Link to"),[Fo]:T("Link from","link"),jumpHighlight:c("Highlight when a link jumps here",!1,t(Qo,{}),"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"],_o],[[r("share")],{all:[po,h]}],[[R],Ao(R)],[[r(R)],Ao(r(R))],[[r("wrap")],{all:[po,p,h,C]}],[[r("order")],{all:[S,h,m]}],[["phoneRow"],h],[[b],So],[["tabShape"],Xe],[["rowTitle","startsOpen"],je],[["align","blockSpacing",i("blockSpacing"),r("blockSpacing")],_],[[i("justify"),r("justify")],{all:[p,Eo,C]}],[[i("align"),r("align")],{all:[nn,tn,Eo]}],[[i("wrap")],{all:[p,k,To,m,_,C]}],[[i("shadow"),r("shadow")],W],[[i("darken"),r("darken"),i("darkenStyle"),r("darkenStyle")],{all:[_o,rn]}],[["separator"],H],[[A],{field:A,set:!0}],[["columns"],{any:[S,So]}],[[i("columns")],S],[[V],{all:[S,W,To,{not:{all:[fo,{field:i("share"),set:!0}]}}]}],[[i("gap")],{all:[Je,Oo]}],[["gap",r("gap")],Oo],[["justify"],{all:[p,Ze,_,C]}],[["wrap"],{all:[p,k,m,_,C]}],[["share"],{all:[k,m,_]}],[[i("share")],{all:[fo,m]}],[["line"],Ke],[["upcoming"],ve],[["jumpHighlight"],Ge],[["boxShape",i("boxShape"),r("boxShape")],Ye],[["direction","share",r("order")],on],[["join"],eo],[[no],eo]]),resolveData:(o,e)=>{const n=o.props,l=n[A];return e.changed?.[A]===!0&&Ko(l)?{...o,props:Xo(n,l,Le,ge)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:De(n)}:o},resolveFields:(o,e)=>cn(ye(_n(o,{...e,fields:Po(e.fields,o,e)}),o.props),O(o,e)),showWhenFacts:{...bo,...Pe,...Fe,...en,...qe,...Qe,...We,...Ve}},dn=Ae(ko,ro);function cn(o,e){const n=o;return!(y in n)||x(e)?o:{...n,[y]:dn}}function _n(...[o,e]){const{fields:n}=e;{if(x(O(o,e))){const u=oo({fallback:{top:w.desktop,bottom:w.desktop,left:w.side,right:w.side},tablet:!0});return Y(n,u)}return o.props.padV2!==!0?Y(n,oo({fallback:{top:24,bottom:24},tablet:!0})):n}}export{$n as FlexFields};
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{phoneKey as r,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as E,BOX_SWATCH_PROP as bo,boxCardProps as Po,boxIsCard as x}from"../../../../../../format/lib/content/box-background.js";import{BOX_IS_CARD_RULE as ko,BOX_IS_NOT_CARD_RULE as Fo,BOX_ROW_IMAGE_PROP as Ho}from"../../../../../../format/lib/content/box-card-rule.js";import{CARD_ROW_FACTS as Wo,cardRowField as y,cardRowFields as Bo,cardRowLinkField as xo,typedLinkField as yo}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as Mo,cardCopyPlace as Uo}from"../../../../../../format/lib/content/card-template.js";import{HOVER_KEY as M}from"../../../../../../format/lib/animation/hover.js";import{BOX_HIGHLIGHT_ROW as Ko}from"../../../../animation/hover-fields.js";import{darkenFields as Xo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as Go,REEL_SHAPE_LABELS as Yo}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as U,CARD_LIST_STYLE_PICTURES as vo,TAB_SHAPE_PICTURES as jo}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as C,CARD_STYLE_POINTS as Vo,applyCardStyle as Jo,isCardStyle as zo}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as qo,ClockIcon as Qo,CropIcon as K,GapIcon as Zo,MediaLayoutStackedIcon as X,LineBetweenIcon as $o,LineSolidIcon as oe,ListIcon as ee,NumberedListIcon as G,ShadowIcon as ne,StylesIcon as Y,TableIcon as v,TargetIcon as te,WrapIcon as j}from"efficient-easel/icons";import{boxBlockSpacingField as re,boxFillField as ie,boxColumnsFields as le,boxShareField as ae,boxSharePhoneField as se,boxShareTabletField as de,containerDirectionField as ce,containerGapRows as _e,linkField as pe,plainText as Se,swapPadding as V,toggle as c,upload as J,withPanelOnly as Oe}from"../../../controls.js";import{BOX_STACK_LINE as L,BOX_STACK_RANGE as f,STACK_BELOW_PROP as T}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as z,boxShapeOf as me}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as fe}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as q}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as Q}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as Re,ACCORDION_PHONE_COLUMN_COUNTS as he,BOX_COLUMNS_MAX as D,BOX_COLUMNS_MIN as I,boxPhoneRowOneLine as ue,boxWrapWordOf as Z}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as $}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as oo,VIEW_KEY_ACCESS as s,group as R,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as Ae,boxAlignField as Ce,boxJustifyField as we,boxWrapField as N,iconPickerRow as g,placementField as Ee,select as b,sidesPaddingFields as eo,slider as no}from"../../../box-fields.js";import{withRowRules as Te,withShowWhen as to}from"../../../../../../render/lib/document/show-when.js";import{separatorField as Ne}from"../../../separator-field.js";import{LOOP_SCROLLS as Le}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as De,TICKER_JOIN_OPTIONS as Ie}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as ro}from"../../../../../../format/lib/document/passes/document-position.js";import{BOX_SIDE_SPACE_PROP as io}from"../../../../../../format/lib/content/box-side-space.js";import{boxSideSpaceField as ge}from"../../../box-side-space-field.js";import{accordionOnSet as be}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as Pe,ACCORDION_ROW_STYLE_PROP as P}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as lo}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as ke,CONTAINER_BLOCKS_SLOT as Fe}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as He}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as We,ON_A_CARD as ao,cardDisplayField as k}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Be,MIRROR_CARDS_MIRRORS as xe,mirrorCardsField as ye}from"../../../mirror-cards-field.js";import{handedRowOf as so}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as Me,showForField as Ue,showForFields as Ke}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as h,SHARED_COLUMNS_LABEL as co,SHARED_COLUMNS_OFF as _o,sharedColumnsDrawn as po,sharedColumnsFits as So,SHARED_COLUMNS_PHONE_POINTS as Xe,SHARED_COLUMNS_POINTS as Ge,sharedRowsDrawn as Ye}from"../../../../../../render/lib/content/box-shared-columns.js";const Oo=ko,mo={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},ve={field:"direction",is:"tabs"},je={field:"line",in:[!0,!1]},Ve={field:"anchor",set:!0},F=["fixed","screen"],Je={not:{any:[{field:"sectionHeightMode",in:F},{field:"sectionHeightModeTablet",in:F},{field:"sectionHeightModePhone",in:F}]}},ze={context:"parent.line",is:!0},_={not:{field:"direction",is:"accordion"}},fo={field:"direction",is:"accordion"},Ro={any:[_,{not:{field:P,is:"numbered"}},{field:"columns",in:[...Re]},{field:"phoneRow",in:[...he]}]},ho="notAccordionRow",qe={not:{context:ho,is:!0}},Qe={[ho]:(o,e)=>e.parent?.props?.direction!=="accordion"},H={field:"direction",is:"row",default:"row"},p={not:Le},S={all:[H,p,{not:{field:"separator",in:$.map(o=>o.value)}},{not:{field:"line",is:!0}}]},Ze={field:"direction",is:"column"},uo={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:D},(e,n)=>n+I)}}))]},$e={all:[p,{not:{all:[H,{field:"separator",in:$.map(o=>o.value)}]}}]},W={not:{all:[S,{field:"columns",in:Array.from({length:D},(o,e)=>e+I)}]}},on="sharedColumnsFits",Ao="sharedColumnsMisfit",Co="sharedColumnsDraws",wo="sharedColumnsPhoneDraws";function O(o,e){return Po(o.props??{},Uo(e.appState,o.props?.id)?.inCopy!==!1)}const en={[on]:(o,e)=>So(O(o,e)),[Ao]:(o,e)=>!So(O(o,e)),[Co]:(o,e)=>po(O(o,e)).desktop,[wo]:(o,e)=>po(O(o,e)).phone};function Eo(o){return{all:[{not:{context:Ao,is:!0}},{any:[ao,{field:o,set:!0}]}]}}const m={not:{context:Co,is:!0}},u={not:{context:wo,is:!0}},To="sharedRowsDraws",nn={[To]:(o,e)=>Ye(O(o,e))&&so(e.appState,o.props?.id)?.row===void 0},w={not:{context:To,is:!0}},tn={any:[m,u]},B=Fo,rn={not:{context:xe,is:!0}},No="rowHanded",ln={not:{context:No,is:!0}},an={[No]:(o,e)=>{const n=so(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},Lo={all:[_,B,m,u,rn]},sn={field:"direction",is:"row"},dn={field:"align",in:["start","center","end"]},cn={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function _n(){const{darken:o,darkenStyle:e}=Xo();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const Do={not:{all:[S,{field:i("columns"),in:Array.from({length:D},(o,e)=>e+I)}]}};function pn(){const o=c(oo,!1,t(j,{})),e=n=>{const l=Z(n);return l===void 0?void 0:l==="wrap"};return{...N(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:l=>n.onChange(l===void 0?void 0:l?"wrap":"nowrap")})}}function Sn(){const o=c(oo,!0,t(j,{})),e=n=>{const l=Z(n);return l===void 0?void 0:l==="wrap"};return{...N(),render:n=>{const l=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!ue(void 0,l?n.follows:void 0),followsNoView:!l,onChange:A=>n.onChange(A===void 0?void 0:A?"wrap":"nowrap")})}}}const Io={hint:L},go={all:[B,{any:[Ze,{all:[S,Do,{not:{all:[uo,{field:i("share"),set:!0}]}}]}]}]},On=to(a("desktop",no("Narrows below",t(X,{}),f.min,f.max,f.step,L,{kind:"breakpoint"},{clear:Io,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),go);function mn(o,e){const n=o;return!(T in n)||e.direction!=="column"?o:{...n,[T]:On}}const lt={fields:Te({_gContent:R("Content"),rowTitle:lo.rowTitle,content:lo.content,_gCardDisplay:R("Display"),cardDisplay:k("desktop"),cardDisplayTablet:k("tablet"),cardDisplayPhone:k("mobile"),showFor:Ue(),_gLayout:R("Layout"),direction:ce("Flex"),tabShape:g("Tab shape",t(Y,{}),Go.map(o=>({label:Yo[o],value:o,picture:jo[o]})),"tabs",{columns:2,cell:U}),mirrorCards:ye(),[T]:a("desktop",no("Stacks below",t(X,{}),f.min,f.max,f.step,L,{kind:"breakpoint"},{clear:Io,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[io]:ge(),startsOpen:a("desktop",c("Starts open",!1,t(qo,{}))),[P]:a("desktop",g("Row style",t(G,{}),Pe.map(o=>({...o,picture:o.value==="numbered"?t(G,{}):t(ee,{})})),"plain",{columns:2})),label:Oe(Se("Tab name")),..._e("Flex"),...d("justify",we(),s),...d("align",Ce(),s),...(()=>{const o=d("wrap",N(),s,{phoneRow:Sn()}),e=d("wrap",N(),s,{phoneRow:pn()});return{wrap:e.wrap,[i("wrap")]:e[i("wrap")],[r("wrap")]:o[r("wrap")]}})(),[r("order")]:He(),...d("boxShape",Q("Box shape",t(K,{}),q(z),"shape","auto"),s,{phoneRow:Q("Box shape",t(K,{}),q(z),"shape","auto",{phoneRest:o=>me(o)})}),[fe]:a("desktop",Ae(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:Ne(t($o,{size:18}),"none"),[C]:a("desktop",g("Card style",t(Y,{}),Vo.map(o=>({...o,picture:vo[o.value]})),"table",{columns:2,cell:U})),share:a("desktop",ae()),[i("share")]:de(),[r("share")]:se(),[h]:a("desktop",b(co,t(v,{}),[...Ge],_o)),[r(h)]:a("mobile",b(co,t(v,{}),[...Xe],_o)),...le(),...d("blockSpacing",re(),s),line:c("Line",!1,t(oe,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,t(Qo,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:b("Join",t(Zo,{}),Ie,De),_gShadow:R("Shadow"),...d("shadow",c("Shadow",!1,t(ne,{})),s),...d("fillColor",ie(),s),[bo]:y("Fill content","colour"),_gBackground:R("Background image"),bgImage:a("desktop",J("Image","image/*")),bgImagePhone:a("mobile",J("Image","image/*")),[Ho]:y("Image content","image",{content:!0}),..._n(),placement:Ee("Content position"),_gLink:R("Link"),link:yo(pe("Link to")),[Mo]:xo(),jumpHighlight:c("Highlight when a link jumps here",!1,t(te,{}),"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"],Oo],[[r("share")],{all:[mo,u]}],[[h],Eo(h)],[[r(h)],Eo(r(h))],[[r("wrap")],{all:[mo,p,u,w]}],[[r("order")],{all:[S,u,m]}],[["phoneRow"],u],[[P],fo],[["tabShape"],ve],[["rowTitle","startsOpen"],qe],[["align","blockSpacing",i("blockSpacing"),r("blockSpacing")],_],[[i("justify"),r("justify")],{all:[p,Lo,w]}],[[i("align"),r("align")],{all:[sn,dn,Lo]}],[[i("wrap")],{all:[p,W,Do,m,_,w]}],[[i("shadow"),r("shadow")],B],[[i("darken"),r("darken"),i("darkenStyle"),r("darkenStyle")],{all:[Oo,cn]}],[["separator"],H],[[C],{field:C,set:!0}],[["columns"],{any:[S,fo]}],[[i("columns")],S],[[T],go],[[i("gap")],{all:[$e,Ro]}],[["gap",r("gap")],Ro],[["justify"],{all:[p,tn,_,w]}],[["wrap"],{all:[p,W,m,_,w]}],[["share"],{all:[W,m,_]}],[[i("share")],{all:[uo,m]}],[["line"],je],[["upcoming"],ze],[["jumpHighlight"],Ve],[["boxShape",i("boxShape"),r("boxShape")],Je],[["direction","share",r("order")],ln],[["join"],ro],[[io],ro]]),resolveData:(o,e)=>{const n=o.props,l=n[C];return e.changed?.[C]===!0&&zo(l)?{...o,props:Jo(n,l,ke,Fe)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:be(n)}:o},resolveFields:(o,e)=>mn(Rn(Ke(hn(o,{...e,fields:Bo(e.fields,o,e)}),o.props),O(o,e)),o.props),showWhenFacts:{...Wo,...We,...Be,...an,...en,...nn,...Me,...Qe}},fn=to(Ko,ao);function Rn(o,e){const n=o;return!(M in n)||x(e)?o:{...n,[M]:fn}}function hn(...[o,e]){const{fields:n}=e;{if(x(O(o,e))){const A=eo({fallback:{top:E.desktop,bottom:E.desktop,left:E.side,right:E.side},tablet:!0,siteSide:!0});return V(n,A)}return o.props.padV2!==!0?V(n,eo({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):n}}export{lt as FlexFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{FOOTPRINT_DEFAULTS as T}from"../../../../../../format/lib/content/footprint.js";import{HeadquartersIcon as R,LayoutIcon as P,LocationIcon as C,SearchIcon as _,ThemeIcon as w}from"efficient-easel/icons";import{CoordsField as I,copyText as v,plainText as r,sourceField as k,text as n,textarea as g,toggle as a,withPanelOnly as S}from"../../../controls.js";import{group as c,section as A}from"efficient-easel/screen/lib/document/box-fields";import{segmented as y}from"../../../box-fields.js";import{withShowWhen as i}from"../../../../../../render/lib/document/show-when.js";import{needsGeocodeWork as D,resolveGeocodeRows as x}from"../../../geocode-resolve.js";import{deviceField as s}from"efficient-easel/screen/lib/document/device-fields";import{SPLITTABLE_SECTIONS as B,headFieldsForPlacement as H}from"../../../../../../format/lib/sections/section-head-placement.js";import{innerSpacingFields as N}from"../../shared-fields.js";import{BLOCK_SOURCE_PROP as p,DEALERS_SOURCE as U,registerBlockSources as j}from"../../../../../../format/lib/content/block-sources.js";import{blockSourceField as q,blockSourceFields as G}from"../../../block-source-fields.js";import{DEALERS_BLOCK_SOURCE as M}from"../../../../../../render/lib/dealer-source.js";import{FOOTPRINT_PH as f,FootprintSlots as K}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";import{withFootprintListTemplate as W}from"../../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";const F={field:p,is:U,default:""},Q={field:"listPosition",in:["left","right"],default:"below"},L={any:[F,Q]},O={all:[L,{field:"search",is:!0,default:!1}]};j([M]);const ce={fields:{_gContent:c("Section"),sectionNumber:n("Section number",f.sectionNumber),heading:g("Heading",f.heading),tagline:g("Body",f.tagline),_gOffices:c("Offices"),[p]:q("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:r("Role"),city:r("City"),country:r("Region · country"),address:v("Address"),phone:r("Phone"),group:r("Group"),hq:a("HQ",!1,t(R,{})),geocode:k(I,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...K,mapTheme:y("Map theme",t(w,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],T.mapTheme),_gList:c("List"),listPosition:s("desktop",y("Position",t(P,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below")),search:s("desktop",i(a("Search",!1,t(_,{})),L)),searchHint:s("desktop",i(S(n("Hint","Type a postcode or address")),O)),noMatchText:s("desktop",i(S(n("No match","No place found. Try another postcode.")),O)),showDistance:i(a("Distance",!0,t(C,{})),F),_dLayout:A("Layout"),...N("Footprint")},resolveData:async(e,l)=>{const d=l?.changed,m=e.props;if(d?.listPosition===!0||d?.[p]===!0){const o=W(m);o!==m&&(e={...e,props:o})}const u=e.props,h=u.offices??[];if(!D(h))return e;const b=await x(h,o=>[o.address,o.city,o.country].map(E=>String(E??"").replace(/\*/g,"").trim()).filter(Boolean).join(", "));return{...e,props:{...u,offices:b}}},resolveFields:(e,{fields:l})=>H(G("Footprint",l,e.props,{hides:["offices"]}),e.props.headPlacement,B.Footprint.headRows)};export{ce as FootprintFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{HERO_GROUP_NUDGE_LIMIT as p,HERO_GROUP_WIDTH_DEFAULT as h,HERO_GROUP_WIDTH_MAX as d,HERO_GROUP_WIDTH_MIN as l,HERO_GROUP_WIDTH_NESTED_DEFAULT as c,heroGroupNestDepth as g}from"../../../../../../format/lib/hero-group-placement.js";import{WidthIcon as s}from"efficient-easel/icons";import{containerDirectionField as O,containerGapRows as G,heroGroupPlacementPoints as H,plainText as R,withIdentifier as D,withOffPage as F,withPanelOnly as x}from"../../../controls.js";import{BOX_NUDGE_ROW as m,BOX_WIDTH_ROW as e,group as t}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as P,boxJustifyField as E,boxWrapField as W,lengthUnitFields as a,placementField as w,positionFields as I,sidesPaddingFields as T,slider as u}from"../../../box-fields.js";import{PH as U}from"../../../../../../format/lib/document/blocks/placeholders.js";import{withRowRules as y}from"../../../../../../render/lib/document/show-when.js";import{HeroGroupSlots as N}from"../../../../../../format/lib/document/blocks/general/HeroGroup/meta.js";const k={fields:y({_gContent:t("Content"),name:x(D(F(R("Box name",U.boxName)))),content:N.content,_gLayout:t("Layout"),placement:w("Placement",{pointsFor:H}),width:u("Width",n(s,{}),l,d,5,h,e),...a(e,"width"),direction:O("HeroGroup"),...G("HeroGroup"),justify:E(),align:P(),wrap:W(),_gNudge:t("Nudge"),...I({keys:{x:"nudgeX",y:"nudgeY"},min:-p,max:p,label:null,length:m}),...a(m,"nudgeX"),...T({tablet:!0,siteSide:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(o,{fields:i,appState:_})=>{const f=typeof o.props.id=="string"?o.props.id:"";if(g(_?.data,f)===0)return i;const r={...i};return r.width=u("Width",n(s,{}),l,d,5,c,e),r}};export{k as HeroGroupFields};
|
|
@@ -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 n,imageFitOptions as p}from"../../../../../../format/lib/content/image-fit.js";import{FILL_ROW_OPTION as c,imageFocalPointActsIn as f,imageAspectPhoneRest as d}from"../../../../../../format/lib/content/image-aspect.js";import{phoneKey as g}from"efficient-easel/draw";import{CropIcon as m,ImageIcon as F}from"efficient-easel/icons";import{BOX_SHAPES as l}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as s}from"../../../../../../format/lib/content/gallery-card-layout.js";import{fillRowCell as h,shapePickerRow as a}from"../../../shape-picker.js";import{cornersUnitFields as R,focusKeptField as r,imageCornersField as _,linkField as I,plainText as A,cornerSidesField as O,upload as w,withPanelOnly as S}from"../../../controls.js";import{group as t,phoneTwinFields as P}from"efficient-easel/screen/lib/document/box-fields";import{select as L}from"../../../box-fields.js";import{photographyToggle as u}from"../../shared-fields.js";import{CARD_ROW_FACTS as k,cardRowField as y,cardRowFields as C,cardRowLinkField as T,typedLinkField as W}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as x}from"../../../../../../format/lib/content/card-template.js";import{IMAGE_CORNERS_ROW as E}from"../../../../../../format/lib/content/image-corners.js";import{offerNextPicture as N}from"../../../../animation/hover-fields.js";import{darkenFields as B}from"../../../darken-fields.js";const $={fields:{_gImage:t("Image"),src:w("Image","image/*",void 0,{focus:"focal",focusWhen:(e,o)=>f(o,e.fit,e.aspect,e[g("aspect")])}),alt:S(A("Alt text")),rowField:y("Shows","image"),[x]:T(),...P("aspect",a("Aspect ratio",i(m,{}),s(l),"image","16/9",{more:[h(c)]}),void 0,{phoneRow:a("Aspect ratio",i(m,{}),s(l),"image","16/9",{phoneRest:d})}),fit:L(n,i(F,{}),p(),"cover"),focal:r(),focalTablet:r(),focalPhone:r(),href:W(I("Link")),_gStyle:t("Style"),grayscale:u(),...B(),_gShape:t("Shape"),corners:_(),...R(E,"corners"),cornerSides:O()},resolveFields:(e,o)=>N(C(o.fields,e,o),e,o),showWhenFacts:k};export{$ as ImageBlockFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{keptByRow as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{keptByRow as u}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as k,OpacityIcon as T,PlacementIcon as y,TextLinesIcon as a}from"efficient-easel/icons";import{colorInput as d,sizeField as r,text as h,textarea as g,toggle as O,upload as c}from"../../../controls.js";import{group as t}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as f,lengthUnitFields as b,slider as p}from"../../../box-fields.js";import{INTRO_BLEED_PICTURES as I,LONG_WORD_CELL as S}from"../../../choice-pictures.js";import{deviceField as e,deviceNote as x}from"efficient-easel/screen/lib/document/device-fields";import{DEFAULT_INTRO_BLEED_LAYOUT as E,INTRO_BLEED_COPY_SHARE as o,INTRO_BLEED_LAYOUT_OPTIONS as B}from"../../../../../../format/lib/sections/intro-bleed-layout.js";import{INTRO_BODY_SIZE_ROW as l,INTRO_TITLE_SIZE_ROW as m}from"../../../../../../format/lib/content/section-type-size.js";import{heightField as _,ctaField as D}from"../../shared-fields.js";import{INTRO_PH as n}from"../../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";const H={fields:{_dDevice:x(),_gContent:t("Content"),eyebrow:h("Eyebrow",n.eyebrow),title:g("Heading",n.title),body:g("Subtitle",n.body),uppercase:O("Uppercase heading",!1,i(k,{})),_gBackground:t("Background images"),imageSrc:e("desktop",c("Background image","image/*")),imageSrcMobile:e("mobile",c("Background image","image/*")),_gLayout:t("Layout"),layout:f("Text position",i(y,{}),B.map(s=>({...s,picture:I[s.value]})),E,{columns:2,cell:S}),heightDesktop:_("desktop"),heightMobile:_("mobile"),copyShareDesktop:e("desktop",p("Text height",i(a,{}),o.min,o.max,o.step,o.desktop,"%")),copyShareMobile:e("mobile",p("Text height",i(a,{}),o.min,o.max,o.step,o.mobile,"%")),sticky:u("stickTop"),overlay:p("Overlay",i(T,{}),0,100,5,60,"%"),_gTextDesktop:e("desktop",t("Text style")),titleSizeDesktop:e("desktop",r("Heading font size",32,120,1,96,"heading",{row:m,view:"desktop"})),bodySizeDesktop:e("desktop",r("Subtitle font size",12,28,1,17,"body",{row:l,view:"desktop"})),_gTextMobile:e("mobile",t("Text style")),titleSizeMobile:e("mobile",r("Heading font size",24,72,1,44,"heading",{row:m,view:"phone"})),bodySizeMobile:e("mobile",r("Subtitle font size",12,22,1,16,"body",{row:l,view:"phone"})),...b(m,"titleSizeDesktop",{phone:!0}),...b(l,"bodySizeDesktop",{phone:!0}),_gButton:t("Button"),...D,buttonColor:d("Button color","#C9A461"),buttonTextColor:d("Button text color","#000000")}};export{H as IntroBleedFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{FOOTER_LOGO_PX as t,HEADER_LOGO_PX_MIN as r,LOGO_BLOCK_PX_MAX as l}from"../../../../../../render/components/Logo.js";import{HeightIcon as m}from"efficient-easel/icons";import{linkField as d,plainText as s,upload as a,withPanelOnly as n}from"../../../controls.js";import{slider as _}from"../../../box-fields.js";import{blockAlignmentFields as p}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as f,group as O}from"efficient-easel/screen/lib/document/box-fields";import{withRowRules as c}from"../../../../../../render/lib/document/show-when.js";import{LOGO_COLOR_FIELDS as R}from"../../../logo-color-fields.js";import{CARD_ROW_FACTS as F,cardRowField as L,cardRowFields as h,cardRowLinkField as g,typedLinkField as w}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as x}from"../../../../../../format/lib/content/card-template.js";const W={fields:c({src:a("Logo image","image/*"),alt:n(s("Alt text","Brand name","Read out in place of the picture, and shown if it can’t load.")),href:w(d("Link")),heightPx:_("Height",e(m,{}),r,l,1,t,"px"),...p("align",{access:f}),...R,_gText:O("Text"),rowField:L("Shows","text"),[x]:g()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(i,o)=>h(o.fields,i,o),showWhenFacts:F};export{W as LogoBlockFields};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 g}from"efficient-easel/icons";import{NOT_BOUND_TO_POST as O,linkField as d,sourceField as C,text as r,textarea as a,toggle as T,upload as f}from"../../../controls.js";import{group as R}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as u,placementField as h,slider as L}from"../../../box-fields.js";import{LONG_WORD_CELL as S,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:d("Link"),category:r("Category",t.category),date:r("Date",t.date),readLabel:r("Read time",t.readLabel),layout:u("Card layout",o(g,{}),n.map(i=>({...i,picture:x[i.value]})),c,{columns:2,cell:S}),showCover:T("Show cover image",!0,o(_,{})),placement:h("Text position"),minHeight:L("Card height",o(s,{}),e.min,e.max,e.step,e.fallback,e.length),_gTint:R("Image tint"),...l()},[[A,m],[E,D],[y,O]])};export{Y as PostCardFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{ColumnWidthsIcon as f,ColumnsIcon as _,LayoutIcon as P,MediaLayoutStackedIcon as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{ColumnWidthsIcon as f,ColumnsIcon as _,LayoutIcon as P,MediaLayoutStackedIcon as T,PlacementIcon as g}from"efficient-easel/icons";import{deviceField as E}from"efficient-easel/screen/lib/document/device-fields";import{cardImageFields as O,text as i,textarea as b}from"../../../controls.js";import{group as n,section as s}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as I,segmented as l,slider as R}from"../../../box-fields.js";import{IMAGE_TEXT_ARRANGEMENT_PICTURES as h,LAYOUT_CELL as C}from"../../../choice-pictures.js";import{BLOCK_SOURCE_EDIT_PROP as L,blockSourceEditField as x,blockSourceField as A,blockSourceFields as w}from"../../../block-source-fields.js";import{declaredBlockSource as a}from"../../../../../../format/lib/content/block-sources.js";import{ARRANGEMENT_OPTIONS as N,IMAGE_WIDTH_OPTIONS as v,PHONE_ORDER_OPTIONS as F}from"../../../../../../format/lib/content/image-text-rows.js";import{imageTextRowTemplate as y}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/row-seed.js";import{SPLITTABLE_SECTIONS as D,headFieldsForPlacement as G}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as H}from"../../../../../../format/lib/document/blocks/placeholders.js";import{innerSpacingFields as W}from"../../shared-fields.js";import{withRowRules as k}from"../../../../../../render/lib/document/show-when.js";import{isNodeList as m}from"efficient-easel/data";import{PROCESS_PH as p,ProcessStepsSlots as c}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const u={field:"arrangement",in:["rows-left","rows-right"]},d="drawsLegacySteps",S={not:{context:d,is:!0}},M={[d]:e=>{const o=e.props??{};return!a(o)&&!m(o.boxes)}},B=e=>e?.data?.root?.props??null,le={fields:k({_gSource:n("Source"),dataSource:A("Item content","Manual"),[L]:x(),_sHeader:s("Header"),_gContent:n("Content"),num:i("Number",p.num),title:i("Heading",p.title),description:b("Body",H.body),boxes:c.boxes,template:c.template,_dDesign:s("Design"),arrangement:I("Arrangement",r(P,{}),N.map(e=>({label:e.label,value:e.value,picture:h[e.value]})),"columns",{columns:3,cell:C}),imageWidth:l("Image width",r(f,{}),v.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:E("mobile",l("Order",r(T,{}),F.map(e=>({label:e.label,value:e.value})),"picture")),columns:R("Columns",r(_,{}),2,4,1,3),...O(),cardText:l("Text position",r(g,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below"),_dLayout:s("Layout"),...W("ProcessSteps")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],S],[["imageWidth","phoneOrder"],{all:[u,S]}],[["columns"],{not:u}]]),showWhenFacts:M,resolveFields:(e,o)=>w("ProcessSteps",G(o.fields,e.props.headPlacement,D.ProcessSteps.headRows),e.props,{root:B(o.appState)}),resolveData:(e,o)=>{const t=e.props;return o?.changed?.dataSource!==!0||!a(t)||m(t.template)?e:{...e,props:{...t,template:y(String(t.id??"ProcessSteps"))}}}};export{le as ProcessStepsFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{HashIcon as E,StylesIcon as i}from"efficient-easel/icons";import{linkField as n,plainText as _,text as r,textarea as l,upload as S,withPanelOnly as T}from"../../../controls.js";import{group as m}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as O,segmented as p,select as L}from"../../../box-fields.js";import{LAYOUT_CELL as s,SECTION_HEAD_PICTURES as a}from"../../../choice-pictures.js";import{DEFAULT_SECTION_NUMBER_STYLE as N,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 I,withHeadStyleRules as d}from"../../../../../../format/lib/sections/section-head-style.js";import{SECTION_EYEBROW_LOOK_OPTIONS as f,DEFAULT_SECTION_EYEBROW_LOOK as u}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{SECTION_HEADER_PH as o}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const Y={fields:d({_gContent:m("Content"),headStyle:O("Style",e(i,{}),I.map(t=>({...t,picture:a[t.value]})),g,{columns:3,cell:s}),num:r("Number",o.num),eyebrowLook:L("Eyebrow style",e(i,{}),[...f],u),numStyle:p("Number style",e(E,{}),[...c],N),title:l("Heading",o.title),description:l("Body",o.description),linkText:r("Button",o.linkText),linkHref:n("Link"),_gLogo:m("Logo"),logoSrc:S("Logo image","image/*"),logoAlt:T(_("Logo alt text","Logo description"))})};export{Y as SectionHeaderFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{BlockBadgeIcon as n,BorderTopIcon as a,MediaLayoutInsetIcon as p}from"efficient-easel/icons";import{FieldGlyph as m}from"../../../../../components/FieldGlyph.js";import{COUNT_KEY_PROP as s}from"../../../../../../format/lib/content/block-sources.js";import{CARD_PLACE_PROP as d,OUTSIDE_FRAMED_CARD as l,framesItsCards as c}from"../../../../../../format/lib/content/card-place.js";import{cardTemplateOwner as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{BlockBadgeIcon as n,BorderTopIcon as a,MediaLayoutInsetIcon as p}from"efficient-easel/icons";import{FieldGlyph as m}from"../../../../../components/FieldGlyph.js";import{COUNT_KEY_PROP as s}from"../../../../../../format/lib/content/block-sources.js";import{CARD_PLACE_PROP as d,OUTSIDE_FRAMED_CARD as l,framesItsCards as c}from"../../../../../../format/lib/content/card-place.js";import{CARD_ROW_LINK_PROP as f,cardTemplateOwner as h}from"../../../../../../format/lib/content/card-template.js";import{CARD_ROW_FACTS as u,cardRowField as g,cardRowFields as _,cardRowLinkField as w}from"../../../card-row-fields.js";import{textarea as R}from"../../../controls.js";import{group as b}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as x}from"efficient-easel/screen/lib/document/style-fields";import{segmented as F,select as P}from"../../../box-fields.js";import{withShowWhen as v}from"../../../../../../format/lib/document/show-when-attach.js";import{PH as C}from"../../../../../../format/lib/document/blocks/placeholders.js";import{toneField as T}from"../../shared-fields.js";import{blockAlignmentFields as A}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as O}from"efficient-easel/screen/lib/document/box-fields";import{consentWordsKept as y,withConsentWordsRow as H}from"../../../consent-words-field.js";import{withLiveNumberRow as I}from"../../../live-number-field.js";function W(e,o){const t=o?.textStyle;if(typeof t!="string"||!t.startsWith("heading-"))return e;const{align:S,alignTablet:E,alignPhone:B,...i}=e;return i}const ee={fields:{text:R("Body",C.body),consentWords:y("text"),[s]:x("text"),...A("align",{access:O}),tone:T(),_gText:b("Text"),rowField:g("Shows","text"),[f]:w(),[d]:v(F("Place",r(n,{}),[{label:"In the card",value:"",picture:r(p,{})},{label:"On the top line",value:"top-line",picture:r(a,{})}],""),{not:{context:l,is:!0}}),tag:P("HTML tag",r(m,{noun:"heading"}),[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],"p")},resolveFields:(e,o)=>W(I(H(_(o.fields,e,o),e.props,"text"),e.props),e.props),showWhenFacts:{...u,[l]:(e,o)=>{const t=h(o.appState,e.props?.id);return t===void 0?void 0:!c(t?.type)}}};export{ee as TextFields};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "
|
|
2
|
-
export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "
|
|
1
|
+
export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "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<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "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 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,jsxs as M,Fragment as Y}from"react/jsx-runtime";import{HeightIcon as K,PlacementIcon as R,PlayIcon as N,UploadIcon as $}from"efficient-easel/icons";import{useEasel as j,useSelectedHost as X}from"efficient-easel/easel";import{SettingsDefaultReset as G,SettingsField as q,SettingsSegmented as z}from"efficient-easel/panel";import{describedAs as J,FLAT_ACCESS as Q,iconOf as Z,onDesktopWords as ee,phoneTwinFields as C,useAccessPatch as te}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as v}from"efficient-easel/screen/lib/document/style-fields";import{colorInput as oe,edgePad as H,plainText as ne,Slider as w,useSelectedSibling as O}from"../controls.js";import{ColourRow as ie,InheritedColourRow as le}from"../ColourControl.js";import{rowSay as re,segmented as A}from"../box-fields.js";import{SHAPE_TABLE as ae}from"../../../../format/lib/content/gallery-card-layout.js";import{ShapePicker as de}from"../shape-picker.js";import{HERO_FIXED_DEFAULT as se,HERO_HEIGHT_PX as x,readHeroFixedHeight as he,SECTION_HEIGHT as u}from"../../../../format/lib/content/section-height.js";import{DEFAULT_TINT as F}from"../../../../format/lib/content/tint.js";import{editorEaselWords as ue,say as a}from"../../../../format/lib/editor-words.js";import{nonEmptyString as E}from"../../../../format/lib/non-empty-string.js";import{findParentNode as ce}from"../../../../format/lib/document/passes/document-position.js";import{DEFAULT_OVERLAY_POSITION as L,OVERLAY_POSITION_OPTIONS as I,slideOverlayState as D}from"../../../../format/lib/sections/hero-overlay.js";import{VIDEO_PLAYBACK_DEFAULT as pe,VIDEO_PLAYBACK_LABELS as fe,VIDEO_PLAYBACKS as ge,VIDEO_SOURCE_DEFAULT as be,VIDEO_SOURCE_LABELS as me,VIDEO_SOURCES as ve}from"../../../../format/lib/hero-video.js";function Oe(){return ae.filter(e=>e.ratio!==null)}const _={desktop:{number:"heightDesktop",fixed:"heightFixed"},tablet:{number:"heightTablet",fixed:"heightFixedTablet"},mobile:{number:"heightMobile",fixed:"heightFixedMobile"}},P={read:e=>e.heightMobile,write:(e,t,o)=>({heightMobile:o}),fieldKey:()=>"heightMobile",ownField:!0,tablet:{read:e=>e.heightTablet,write:(e,t,o)=>({heightTablet:o}),fieldKey:()=>"heightTablet",ownField:!0}};function k(e,{number:t,fixed:o}){const l=t===void 0?void 0:e[t];return he(e[o])??(typeof l=="number"?{unit:"vh",vh:l}:null)}const xe="On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.";function Ee({view:e,keys:t,props:o}){const l=X(),d=te(Q),{number:s}=t,p={...l?.values??{},...s?{[s]:o.value}:{}},b=k(p,t),i=e==="tablet"?k(p,_.desktop):null,h=b??i??{unit:"vh",vh:u.fallback},c=o.readOnly===!0,T=Oe(),W=r=>{if(r===h.unit)return;if(r!=="vh"){d([[t.fixed,i?.unit===r?i.value:se[r]]]);return}const B=s!==void 0&&typeof p[s]!="number"&&i!==null&&i.unit!=="vh";d([[t.fixed,void 0],...B?[[s,u.fallback]]:[]])},f=b===null&&e!=="desktop",m=s===void 0,S=m&&i!==null&&i.unit!=="vh",y=i===null?`${u.fallback} ${u.unit}`:i.unit==="vh"?`${i.vh} ${u.unit}`:i.unit==="px"?i.value:T.find(r=>r.image===i.value)?.label??i.value;return n(q,{label:a("Height"),icon:Z(n(K,{})),hint:m&&(h.unit==="vh"||S)?a(xe):void 0,action:e==="desktop"?void 0:n(G,{words:ue()?.panel,label:a("Height"),changed:b!==null||!!p[t.fixed],detail:e==="tablet"?ee(re,y):y,disabled:c,onReset:()=>d([...s?[[s,void 0]]:[],[t.fixed,void 0]])}),children:M("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-8)",flex:"1 1 auto",minWidth:0},children:[n(z,{options:[{id:"vh",label:a("vh"),disabled:S},{id:"ratio",label:a("Ratio")},{id:"px",label:a("px")}],value:h.unit,onChange:W,ariaLabel:a("Unit"),disabled:c}),h.unit==="ratio"?n(de,{label:"Height",lines:T,column:"image",value:h.value,disabled:c,onChange:r=>d([[t.fixed,r]])}):h.unit==="px"?w({...x,value:f?null:h.px,...f?{placeholder:h.px}:{},suffix:x.unit,ariaLabel:"Height",disabled:c,onChange:r=>d([[t.fixed,`${r}${x.unit}`]])}):w({min:u.min,max:u.max,step:u.step,value:f?null:h.vh,...f?{placeholder:h.vh}:{},suffix:u.unit,ariaLabel:"Height",disabled:c||m,onChange:r=>o.onChange(r)})]})})}const g=(e,t=_[e])=>({type:"custom",...J({},{type:"number",label:"Height"}),render:o=>n(Ee,{view:e,keys:t,props:o})}),_e={read:e=>e.heightFixedTablet,write:(e,t,o)=>({heightFixedTablet:o}),fieldKey:()=>"heightFixedTablet",ownField:!0};function qe({tabletNumber:e=!0}={}){const t=e?P:{...P,tablet:_e},o=g("tablet",e?void 0:{fixed:_.tablet.fixed}),l=C("heightDesktop",g("desktop"),t,{phoneRow:o}),d=C("heightDesktop",g("desktop"),t,{phoneRow:g("mobile")});return{heightDesktop:l.heightDesktop,...e?{heightTablet:l.heightTablet,heightFixedTablet:v("heightTablet")}:{heightFixedTablet:l.heightFixedTablet},heightMobile:d.heightMobile,heightFixed:v("heightDesktop"),heightFixedMobile:v("heightMobile")}}const ze={overlayColor:oe("Overlay color",F),overlayPosition:H("Overlay position",I,L,"A corner would need a diagonal ramp, which this overlay does not draw.",n(R,{}))},U="Texture",V=e=>H("Overlay position",I,e,"A corner would need a diagonal ramp, which this overlay does not draw.",n(R,{}),void 0,U);function Te(){try{const{appState:e,selectedItem:t}=j(o=>o);return Se(e,t?.props?.id)}catch{return}}function Se(e,t){return E(ce(e,t)?.props?.textureColor)}function ye({value:e,onChange:t}){const[o]=O("overlayPosition"),l=Te(),d=E(e)??"",s=D({overlayColor:d,overlayPosition:o},l);return n(le,{label:a("Overlay color"),value:d,inherited:s.color,resetTo:a(U),onChange:t,onReset:()=>t("")})}const Re=V(L),Ce=V("");function He(e){const[t]=O("overlayColor"),o=D({overlayColor:t,overlayPosition:e.value}).own?Re:Ce;return n(Y,{children:o.render(e)})}function we(e){if(!Array.isArray(e))return;const t=e.flatMap((o,l)=>E(o?.props?.overlayColor)?[l+1]:[]);if(t.length!==0)return t.length===1?a("Slide {n}: own Overlay color.",{n:t[0]}):a("Slides {n}: own Overlay color.",{n:t.join(", ")})}function Ae({value:e,onChange:t}){const[o]=O("slides");return n(ie,{label:a("Texture color"),value:e||F,onChange:t,hint:we(o)})}const Je={type:"custom",render:({value:e,onChange:t})=>n(Ae,{value:e,onChange:t})},Qe={overlayColor:{type:"custom",render:({value:e,onChange:t})=>n(ye,{value:e,onChange:t})},overlayPosition:{type:"custom",render:({value:e,onChange:t})=>n(He,{value:e,onChange:t})}},Ze={videoSource:A("Source",n($,{}),ve.map(e=>({label:me[e],value:e})),be),youtubeUrl:ne("YouTube link","https://youtu.be/…"),videoPlayback:A("Playback",n(N,{}),ge.map(e=>({label:fe[e],value:e})),pe)};export{ze as HERO_OVERLAY_ROWS,Qe as HERO_SLIDE_OVERLAY_ROWS,xe as HERO_TABLET_VH_HINT,Je as HERO_TEXTURE_COLOR_ROW,Ze as HERO_VIDEO_ROWS,qe as heroHeightFields,Oe as heroRatioLines,we as textureColorHint,Se as textureColorOfSlide};
|
|
@@ -3,7 +3,7 @@ import { boxFieldBuilders, type BoxFieldSay } from "efficient-easel/screen/lib/d
|
|
|
3
3
|
import type { ShowWhenRule } from "efficient-shell/format";
|
|
4
4
|
type Rows = ReturnType<typeof boxFieldBuilders>;
|
|
5
5
|
export declare const rowSay: BoxFieldSay;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const LENGTH_UNITS_TABLE: Readonly<Record<"size" | "spacing" | "gap" | "letterSpacing" | "fontSize" | "border" | "height" | "position" | "radius" | "breakpoint", readonly ("px" | "%" | "vw")[]>>;
|
|
7
7
|
export declare const slider: Rows["slider"];
|
|
8
8
|
export declare const select: Rows["select"];
|
|
9
9
|
export declare const Segmented: Rows["Segmented"];
|
|
@@ -21,6 +21,7 @@ export declare const placementField: Rows["placementField"];
|
|
|
21
21
|
export declare const PlacementGridView: Rows["PlacementGridView"];
|
|
22
22
|
export declare const positionFields: Rows["positionFields"];
|
|
23
23
|
export declare const sidesPaddingFields: Rows["sidesPaddingFields"];
|
|
24
|
+
export declare const lengthUnitFields: Rows["lengthUnitFields"];
|
|
24
25
|
export declare function angleRow(fallback: number, options?: Parameters<Rows["slider"]>[7]): ReturnType<Rows["slider"]>;
|
|
25
26
|
export declare function ShellIconWord({ value }: {
|
|
26
27
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createElement as l}from"react";import{SettingsDefaultReset as
|
|
1
|
+
import{createElement as l}from"react";import{SettingsDefaultReset as E,SettingsField as I}from"efficient-easel/panel";import{boxFieldBuilders as R,describedAs as W,iconOf as G,onDesktopWords as L}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as P}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as O,Tooltip as T,useShellStrings as _}from"efficient-shell/ui";import{RotateIcon as U}from"efficient-easel/icons";import{ANGLE_RANGE as f}from"../../../format/lib/content/box-angle.js";import{editorEaselWords as C,say as s}from"../../../format/lib/editor-words.js";const h=o=>s(o),V=P,t=R(h,{lengthUnits:V}),D=t.slider,ee=t.select,ne=t.Segmented,te=t.segmented,oe=t.alignmentField,le=t.alignmentFields,ie=t.blockAlignmentField,se=t.blockAlignmentFields,ce=t.boxJustifyField,de=t.boxAlignField,re=t.boxWrapField,ae=t.directionField,pe=t.gapField,fe=t.placementField,me=t.PlacementGridView,ue=t.positionFields,ge=t.sidesPaddingFields,xe=t.lengthUnitFields;function Fe(o,i){return D("Angle",l(U),f.min,f.max,f.step,o,"°",i)}const H={width:"3.5rem",height:"2.75rem"};function B({value:o}){return _().iconNames[o]??o}function J(o,i,e){return l(T,{content:e,className:"sf-pick-tip",children:l("span",{className:"sf-pick"},l("span",{className:"sf-pick-pic"},o),l("span",{className:"sf-pick-cap"},i))})}function K(o){const i=e=>e.label===void 0?l(B,{value:e.value}):s(e.label);return o.map(e=>({value:e.value,...e.label===void 0?{}:{label:s(e.hint??e.label)},icon:J(e.picture,i(e),e.hint===void 0?i(e):s(e.hint))}))}function we(o,i){return l("span",{className:"sf-pick"},l("span",{className:"sf-pick-pic"},o),l("span",{className:"sf-pick-cap sf-pick-cap-closed"},i))}function be(o,i,e,m,c={}){const k=n=>e.some(d=>d.value===n),r=n=>c.resolve?c.resolve(n):k(n)?n:void 0,u=e.map(n=>({value:n.value,...n.label===void 0?{}:{label:n.label},...n.showWhen?{showWhen:n.showWhen}:{}}));return{type:"custom",...W({},{type:"radio",label:o,options:u}),options:u,render:n=>{const{value:d,onChange:g,field:x}=n,F=x?.options,N=K(e.filter(p=>!F||F.some(y=>y.value===p.value))),w="follows"in n,a=w?r(c.phoneRest?c.phoneRest(n.follows):n.follows)??m:void 0,v=x?.currentValue,A=r(d)??a??r(v)??m,S=d!=null&&d!=="",b=a===void 0?void 0:e.find(p=>p.value===a);return l(I,{label:s(o),icon:G(i),action:w?l(E,{words:C()?.panel,label:s(o),changed:S,detail:b?.label!==void 0?L(h,s(b.label),n.followsView):void 0,disabled:n.readOnly===!0,onReset:()=>g(void 0)}):void 0},l(O,{label:s(o),value:A,options:N,onChange:g,columns:c.columns,cell:c.cell??H,tooltips:!1,disabled:n.readOnly===!0}))}}}export{V as LENGTH_UNITS_TABLE,me as PlacementGridView,ne as Segmented,B as ShellIconWord,oe as alignmentField,le as alignmentFields,Fe as angleRow,ie as blockAlignmentField,se as blockAlignmentFields,de as boxAlignField,ce as boxJustifyField,re as boxWrapField,ae as directionField,pe as gapField,be as iconPickerRow,xe as lengthUnitFields,J as pickerCellIcon,K as pickerCellsOf,we as pickerNoneIcon,fe as placementField,ue as positionFields,h as rowSay,te as segmented,ee as select,ge as sidesPaddingFields,D as slider};
|
|
@@ -8,6 +8,9 @@ export declare const CARD_ROW_FACTS: BlockShowWhenFacts;
|
|
|
8
8
|
export declare function cardRowField(label: string, kind: CardRowFieldKind, opts?: {
|
|
9
9
|
content?: boolean;
|
|
10
10
|
}): SelectField;
|
|
11
|
+
export declare function cardRowLinkField(): SelectField;
|
|
12
|
+
export declare const TYPED_LINK_SHOWN: ShowWhenRule;
|
|
13
|
+
export declare function typedLinkField<F extends object>(field: F): F;
|
|
11
14
|
export declare function cardRowItemField(f: CardRowFieldSpec): CustomField<string> | CustomField<import("efficient-easel/draw").HidableValue>;
|
|
12
15
|
export declare function cardRowFields<Fields extends Record<string, unknown>>(fields: Fields, data: {
|
|
13
16
|
props?: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as m}from"react/jsx-runtime";import{GroundIcon as L,ListIcon as $}from"efficient-easel/icons";import{FieldGlyph as G}from"../../components/FieldGlyph.js";import{BOX_IN_COPY as U,BOX_OUTSIDE_COPY as X}from"../../../format/lib/content/box-card-rule.js";import{CARD_LIST_FIELDS as H,CARD_LIST_TYPE as _,CARD_ROW_LINK_PROP as J,cardCopyPlace as F,cardListFieldsOf as q,cardListShows as z,cardTemplateFieldsOf as Q,cardTemplateOwner as x,cardTemplateSlotOf as I}from"../../../format/lib/content/card-template.js";import{copyText as V,plainText as Z,plainTextarea as tt,ThemeFillRow as et,withOffPage as ot}from"./controls.js";import{recordRowFields as A}from"../../../format/lib/content/record-row.js";import{recordTypesRevision as nt}from"../../../format/lib/content/record-types.js";import{editorRecordType as rt}from"../../../format/lib/document/editor-page-context.js";import{blockSourcesRevision as pt,declaredBlockSource as D}from"../../../format/lib/content/block-sources.js";import{select as it}from"./box-fields.js";import{withShowWhen as E}from"../../../format/lib/document/show-when-attach.js";function K(t){const o=t?.data?.root,e=rt(o?.props)??"";return e&&A(e,"text").length?e:""}const O="outsideCardTemplate",ct={not:{context:O,is:!0}},Ct={[O]:(t,o)=>{const e=x(o.appState,t.props?.id);if(e!==void 0)return e===null&&!K(o.appState)},[X]:(t,o)=>{const e=F(o.appState,t.props?.id);return e===void 0?void 0:!e.inCopy},[U]:(t,o)=>F(o.appState,t.props?.id)?.inCopy};function lt(t,o,e){const s=o==="colour"||e?.content===!0,a=o==="link"?m(G,{noun:"link"}):o==="colour"?m(L,{}):m($,{}),n={...it(t,a,[s?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:o,...s?{cardRowContent:!0}:null};return E(n,ct)}function gt(){return lt("Link from","link")}const st={any:[{field:J,set:!1},{context:O,is:!0,default:!0}]};function kt(t){return E(t,st)}function bt(t){return t.kind==="link"?ot(Z(t.label)):t.kind==="colour"?at(t.label):t.multiline?tt(t.label):V(t.label)}function at(t){return{type:"custom",render:({value:o,onChange:e})=>m(et,{label:t,icon:m(L,{}),value:o,shown:typeof o=="string"?o:"",onChange:e})}}function dt(t){return!!(t&&typeof t=="object"&&"cardRowKind"in t)}const P=new WeakMap;function Lt(t,o,e){const s=Object.keys(t).filter(i=>dt(t[i]));if(!s.length)return t;const a=o.props??{},n=x(e.appState,a.id),r=typeof n?.type=="string"?n.type:"",h=n?I(e.appState,a.id)??"":"",d=s.map(i=>typeof a[i]=="string"?a[i].trim():""),N=D(n?.props),p=r===_?x(e.appState,n?.props?.id):null,C=p?I(e.appState,n?.props?.id)??void 0:void 0,j=p?z(n?.props,p.type,C):"",v=p?D(p.props):"",M=p?`${String(p.type??"")}\0${v}\0${C??""}`:"",W=r===_&&!p?JSON.stringify(n?.props?.[H]??null):"",y=n?"":K(e.appState),g=[r,h,N,j,M,W,pt(),y,nt(),...d].join("\0");let w=P.get(t);w||P.set(t,w=new Map);const k=w.get(g);if(k)return k;const R={...t};return s.forEach((i,u)=>{const c=t[i],f=r===_?q(e.appState,n,c.cardRowKind):r?Q(n,c.cardRowKind,h||void 0):A(y,c.cardRowKind),B=c.cardRowKind==="link"&&!!r&&!f.length;if(!d[u]&&(B||(c.cardRowContent?!r||!f.length:!f.length&&!r&&y))){delete R[i];return}const S=d[u]&&!f.some(l=>l.key===d[u])?d[u]:"",b=c.cardRowKind==="list",Y=(l,T)=>b&&T===0&&l.key!==d[u]?"":l.key;R[i]={...c,options:[...b?[]:c.options,...f.map((l,T)=>({label:l.label,value:Y(l,T)})),...S?[{label:S,value:S}]:[]]}}),w.set(g,R),R}export{Ct as CARD_ROW_FACTS,ct as IN_CARD_TEMPLATE,O as OUTSIDE_CARD_TEMPLATE,st as TYPED_LINK_SHOWN,lt as cardRowField,Lt as cardRowFields,bt as cardRowItemField,gt as cardRowLinkField,kt as typedLinkField};
|