efficient-web-builder 52.0.0 → 54.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.
Files changed (153) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/editor/components/ChatSettingsPanel.js +1 -1
  3. package/dist/editor/components/DuplicateToPageMenu.d.ts +2 -0
  4. package/dist/editor/components/DuplicateToPageMenu.js +1 -1
  5. package/dist/editor/components/MediaUploadField.d.ts +7 -7
  6. package/dist/editor/components/MediaUploadField.js +1 -1
  7. package/dist/editor/components/PartSettingsPanel.js +1 -1
  8. package/dist/editor/components/PartTextBox.js +1 -1
  9. package/dist/editor/components/PreviewPartAnchors.js +1 -1
  10. package/dist/editor/components/SectionTextPartBridge.js +1 -1
  11. package/dist/editor/components/SiteAccentField.js +1 -1
  12. package/dist/editor/components/SiteTextStylesField.d.ts +3 -3
  13. package/dist/editor/components/SiteTextStylesField.js +1 -1
  14. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  15. package/dist/editor/components/storefront-editor.css +70 -20
  16. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  17. package/dist/editor/lib/animation/hover-fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/Breadcrumb/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
  22. package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -1
  23. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  24. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  25. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  26. package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
  27. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  28. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  29. package/dist/editor/lib/document/blocks/general/IntroBleed/fields.js +1 -1
  30. package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
  31. package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
  32. package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
  33. package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
  34. package/dist/editor/lib/document/blocks/general/Timeline/fields.js +1 -1
  35. package/dist/editor/lib/document/blocks/shared-fields.d.ts +5 -0
  36. package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
  37. package/dist/editor/lib/document/box-fields.d.ts +23 -2
  38. package/dist/editor/lib/document/box-fields.js +1 -1
  39. package/dist/editor/lib/document/box-phone-order-field.d.ts +8 -0
  40. package/dist/editor/lib/document/box-phone-order-field.js +1 -0
  41. package/dist/editor/lib/document/card-row-fields.js +1 -1
  42. package/dist/editor/lib/document/choice-pictures.d.ts +21 -0
  43. package/dist/editor/lib/document/choice-pictures.js +1 -0
  44. package/dist/editor/lib/document/controls.d.ts +19 -5
  45. package/dist/editor/lib/document/controls.js +1 -1
  46. package/dist/editor/lib/document/hidable-rows-drawn.d.ts +1 -0
  47. package/dist/editor/lib/document/hidable-rows-drawn.js +1 -1
  48. package/dist/editor/lib/document/part-panel-rows.d.ts +1 -0
  49. package/dist/editor/lib/document/part-panel-rows.js +1 -1
  50. package/dist/editor/lib/document/separator-field.d.ts +9 -1
  51. package/dist/editor/lib/document/separator-field.js +1 -1
  52. package/dist/editor/lib/document/shape-picker.d.ts +37 -0
  53. package/dist/editor/lib/document/shape-picker.js +1 -0
  54. package/dist/editor/lib/document/show-for-field.d.ts +6 -0
  55. package/dist/editor/lib/document/show-for-field.js +1 -0
  56. package/dist/format/lib/animation/hover.d.ts +0 -2
  57. package/dist/format/lib/animation/hover.js +1 -1
  58. package/dist/format/lib/content/box-layout.d.ts +21 -6
  59. package/dist/format/lib/content/box-layout.js +1 -1
  60. package/dist/format/lib/content/box-phone-place.d.ts +11 -0
  61. package/dist/format/lib/content/box-phone-place.js +1 -0
  62. package/dist/format/lib/content/box-shape.d.ts +1 -5
  63. package/dist/format/lib/content/box-shape.js +1 -1
  64. package/dist/format/lib/content/box-show-for-choices.d.ts +9 -0
  65. package/dist/format/lib/content/box-show-for-choices.js +1 -0
  66. package/dist/format/lib/content/card-template.js +1 -1
  67. package/dist/format/lib/content/gallery-card-layout.d.ts +45 -1
  68. package/dist/format/lib/content/gallery-card-layout.js +1 -1
  69. package/dist/format/lib/content/image-aspect.d.ts +47 -0
  70. package/dist/format/lib/content/image-aspect.js +1 -0
  71. package/dist/format/lib/content/list-number.d.ts +11 -0
  72. package/dist/format/lib/content/list-number.js +1 -1
  73. package/dist/format/lib/content/phone-focus.d.ts +4 -1
  74. package/dist/format/lib/content/phone-focus.js +1 -1
  75. package/dist/format/lib/content/record-row.d.ts +14 -0
  76. package/dist/format/lib/content/record-row.js +1 -0
  77. package/dist/format/lib/content/record-types.d.ts +1 -1
  78. package/dist/format/lib/content/record-types.js +1 -1
  79. package/dist/format/lib/content/section-height.d.ts +8 -0
  80. package/dist/format/lib/content/section-height.js +1 -1
  81. package/dist/format/lib/document/blocks/block-types.d.ts +1 -1
  82. package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
  83. package/dist/format/lib/document/blocks/general/text-part-shapes.json +2 -2
  84. package/dist/format/lib/document/media-manifest.json +5 -2
  85. package/dist/format/lib/document/mockup-variant-fields.d.ts +1 -0
  86. package/dist/format/lib/document/mockup-variant-fields.js +1 -1
  87. package/dist/format/lib/document/section-catalog.js +2 -2
  88. package/dist/format/lib/document/section-descriptions.js +1 -1
  89. package/dist/format/lib/editor-words-catalogue.d.ts +26 -11
  90. package/dist/format/lib/editor-words-catalogue.js +4 -4
  91. package/dist/format/lib/fonts.js +1 -1
  92. package/dist/format/lib/sections/divider-style.d.ts +4 -0
  93. package/dist/format/lib/sections/divider-style.js +1 -1
  94. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  95. package/dist/format/lib/sections/section-presets.js +1 -1
  96. package/dist/format/lib/source-rules/editor-words.js +2 -2
  97. package/dist/format/lib/source-rules/mirrored-rows-agree.js +4 -4
  98. package/dist/format/lib/source-rules/shape-rows-use-the-picker.d.ts +7 -0
  99. package/dist/format/lib/source-rules/shape-rows-use-the-picker.js +2 -0
  100. package/dist/format/lib/text-styles/site-text-colours.d.ts +2 -9
  101. package/dist/format/lib/text-styles/site-text-colours.js +1 -1
  102. package/dist/render/components/Breadcrumb.d.ts +2 -1
  103. package/dist/render/components/Breadcrumb.js +1 -1
  104. package/dist/render/components/CardRowContext.d.ts +1 -1
  105. package/dist/render/components/CardRowContext.js +1 -1
  106. package/dist/render/components/ContentsList.d.ts +4 -1
  107. package/dist/render/components/ContentsList.js +1 -1
  108. package/dist/render/components/CurrentRecord.d.ts +23 -0
  109. package/dist/render/components/CurrentRecord.js +1 -0
  110. package/dist/render/components/Flex.d.ts +3 -2
  111. package/dist/render/components/Flex.js +1 -1
  112. package/dist/render/components/HeroPictures.d.ts +2 -0
  113. package/dist/render/components/HeroPictures.js +1 -1
  114. package/dist/render/components/HeroPoster.d.ts +2 -1
  115. package/dist/render/components/HeroPoster.js +1 -1
  116. package/dist/render/components/HeroSection.d.ts +2 -1
  117. package/dist/render/components/HeroSection.js +1 -1
  118. package/dist/render/components/HeroSingle.d.ts +3 -1
  119. package/dist/render/components/HeroSingle.js +1 -1
  120. package/dist/render/components/HeroSlide.d.ts +3 -1
  121. package/dist/render/components/HeroSlide.js +1 -1
  122. package/dist/render/components/ImageBlock.d.ts +5 -3
  123. package/dist/render/components/ImageBlock.js +1 -1
  124. package/dist/render/components/InBoxContext.d.ts +4 -0
  125. package/dist/render/components/SiteGutterFrame.d.ts +1 -0
  126. package/dist/render/components/SiteGutterFrame.js +1 -1
  127. package/dist/render/lib/content/block-size.d.ts +3 -0
  128. package/dist/render/lib/content/block-size.js +1 -1
  129. package/dist/render/lib/content/box-show-for.d.ts +14 -0
  130. package/dist/render/lib/content/box-show-for.js +1 -0
  131. package/dist/render/lib/content/page-contents.d.ts +1 -0
  132. package/dist/render/lib/content/page-contents.js +1 -1
  133. package/dist/render/lib/content/picture-focus-rows.d.ts +13 -0
  134. package/dist/render/lib/content/picture-focus-rows.js +1 -0
  135. package/dist/render/lib/document/blocks/general/Breadcrumb/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/Contents/render.js +1 -1
  137. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  138. package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
  139. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  140. package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
  141. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  142. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +1 -1
  143. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  144. package/dist/render/lib/document/part-styles.d.ts +21 -7
  145. package/dist/render/lib/document/part-styles.js +2 -2
  146. package/dist/render/lib/document/passes/block-size.js +1 -1
  147. package/dist/render/lib/document/passes/index.js +1 -1
  148. package/dist/render/lib/document/passes/show-for.d.ts +2 -0
  149. package/dist/render/lib/document/passes/show-for.js +1 -0
  150. package/dist/render/lib/document/passes/slots-start-afresh.js +1 -1
  151. package/dist/render/lib/document/show-when.js +1 -1
  152. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  153. package/package.json +3 -3
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{ContrastIcon as V,HoverIcon as D,HoverLiftIcon as K,HoverNextImageIcon as S,HoverNoneIcon as P,HoverRotateIcon as g,HoverZoomIcon as O,OpacityIcon as A,RotateIcon as y}from"efficient-easel/icons";import{group as U}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as F,noControlField as L}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as c}from"../../../format/lib/content/box-background.js";import{cardTemplateField as W,cardTemplateOwner as B,namedRowField as b}from"../../../format/lib/content/card-template.js";import{segmented as M,slider as h}from"../document/box-fields.js";import{withShowWhen as p}from"../../../format/lib/document/show-when-attach.js";import{finiteNumber as Y}from"../../../format/lib/finite-number.js";import{animationDelayField as v,animationDurationField as w,showsWhatRuns as R}from"./AnimationDurationRow.js";import{CARD_HOVER_ANGLE as l,CARD_HOVER_KEYS as i,CARD_HOVER_KINDS as X,CARD_HOVER_TURN as j,HOVER_KEY as _,HOVER_KIND_LABELS as z,NEXT_PICTURE_BLOCKS as G,NEXT_PICTURE_HOVER_KINDS as Z,OLD_SPIN_KEY as q,PART_HOVER_KINDS as J,PICTURE_HOVER_KEYS as N,PICTURE_HOVER_KINDS as Q,PICTURE_HOVER_ZOOM as d,cardHoverAngleOf as $,cardHoverKindOf as oo,cardRotatesRule as eo,HOVER_GROUP_KEY as f,pictureHoverKindOf as to,pictureHoverMovesRule as no,pictureHoverRunsRule as ro}from"../../../format/lib/animation/hover.js";const E=()=>r("desktop",U("Hover")),io="What this does when a shopper points at it, or taps it on a phone.",so="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",po="What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.",ao="What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.",co={none:()=>n(P,{}),nextImage:()=>n(S,{}),rotate:()=>n(g,{}),zoom:()=>n(O,{}),lift:()=>n(K,{}),mono:()=>n(V,{})};function H(o,e){return M("Hover effect",n(D,{}),o.map(t=>({label:z[t],value:t,picture:co[t]()})),e)}function No(){return{[f]:E(),[_]:r("desktop",{...H(J,"none"),description:io})}}function ko(o){const e=eo(o),t=h("Angle",n(y,{}),l.min,l.max,l.step,j,"°",{clear:{emptyLabel:"By spokes"}});return{[f]:E(),[i.kind]:r("desktop",{...R(H(X,o),(s,a)=>oo(a??{},o)),description:ao}),[q]:L({type:"custom",render:()=>n(F,{})},"always"),[i.angle]:r("desktop",p(R(t,s=>Y(s)===void 0?void 0:$(s)),e)),[i.duration]:r("desktop",p(w("hover"),e)),[i.delay]:r("desktop",p(v("hover"),e))}}function To(o,e=""){const t=ro(o);return{[f]:E(),[i.kind]:k(Q,o,so),...G.includes(e)?uo():{},[i.duration]:r("desktop",p(w("hover"),t)),[i.delay]:r("desktop",p(v("hover"),t))}}function uo(){const o=no(),e=h("Zoom",n(O,{}),d.min,d.max,d.step,d.min,d.unit),t=h("Darken on hover",n(A,{}),c.min,c.max,c.step,c.fallback,c.unit);return{[N.zoom]:r("desktop",p(e,o)),[N.darken]:r("desktop",p(t,o))}}function k(o,e,t){const s=r("desktop",{...R(H(o,e),a=>to({[_]:a},e,o)),description:t});return Object.assign(s,{[T]:e})}const T="sfPictureResting",C=new WeakMap;function Co(o,e,t){const s=o[i.kind],a=s?.[T];if(!s||!a)return o;const I=e.props?.[_]==="nextImage",m=I?null:B(t.appState,e.props?.id),x=m?W(String(m.type),b(e.props),m):null;if(!I&&!x?.next)return o;let u=C.get(o);return u||(u={...o,[i.kind]:k(Z,a,po)},C.set(o,u)),u}export{ko as cardHoverFields,No as hoverFields,Co as offerNextPicture,To as pictureHoverFields};
1
+ import{jsx as n}from"react/jsx-runtime";import{ContrastIcon as V,HoverIcon as D,HoverLiftIcon as K,HoverNextImageIcon as S,HoverNoneIcon as P,HoverRotateIcon as g,HoverZoomIcon as O,OpacityIcon as A,RotateIcon as U}from"efficient-easel/icons";import{group as F}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as y,noControlField as W}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as c}from"../../../format/lib/content/box-background.js";import{cardTemplateField as L,cardTemplateOwner as B,namedRowField as M}from"../../../format/lib/content/card-template.js";import{segmented as Y,slider as R}from"../document/box-fields.js";import{withShowWhen as p}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as v,animationDurationField as w,showsWhatRuns as m}from"./AnimationDurationRow.js";import{CARD_HOVER_ANGLE as _,CARD_HOVER_KEYS as i,CARD_HOVER_KINDS as X,CARD_HOVER_TURN as b,HOVER_KEY as l,HOVER_KIND_LABELS as j,NEXT_PICTURE_BLOCKS as z,NEXT_PICTURE_HOVER_KINDS as G,OLD_SPIN_KEY as Z,PART_HOVER_KINDS as q,PICTURE_HOVER_KEYS as N,PICTURE_HOVER_KINDS as J,PICTURE_HOVER_ZOOM as d,cardHoverAngleOf as Q,cardHoverKindOf as $,cardRotatesRule as oo,HOVER_GROUP_KEY as E,pictureHoverKindOf as eo,pictureHoverMovesRule as to,pictureHoverRunsRule as no}from"../../../format/lib/animation/hover.js";const H=()=>r("desktop",F("Hover")),ro="What this does when a shopper points at it, or taps it on a phone.",io="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",so="What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.",po="What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.",ao={none:()=>n(P,{}),nextImage:()=>n(S,{}),rotate:()=>n(g,{}),zoom:()=>n(O,{}),lift:()=>n(K,{}),mono:()=>n(V,{})};function f(o,e){return Y("Hover effect",n(D,{}),o.map(t=>({label:j[t],value:t,picture:ao[t]()})),e)}function vo(){return{[E]:H(),[l]:r("desktop",{...f(q,"none"),description:ro})}}function wo(o){const e=oo(o),t=R("Angle",n(U,{}),_.min,_.max,_.step,b,"°");return{[E]:H(),[i.kind]:r("desktop",{...m(f(X,o),(s,a)=>$(a??{},o)),description:po}),[Z]:W({type:"custom",render:()=>n(y,{})},"always"),[i.angle]:r("desktop",p(m(t,s=>Q(s)),e)),[i.duration]:r("desktop",p(w("hover"),e)),[i.delay]:r("desktop",p(v("hover"),e))}}function No(o,e=""){const t=no(o);return{[E]:H(),[i.kind]:T(J,o,io),...z.includes(e)?co():{},[i.duration]:r("desktop",p(w("hover"),t)),[i.delay]:r("desktop",p(v("hover"),t))}}function co(){const o=to(),e=R("Zoom",n(O,{}),d.min,d.max,d.step,d.min,d.unit),t=R("Darken on hover",n(A,{}),c.min,c.max,c.step,c.fallback,c.unit);return{[N.zoom]:r("desktop",p(e,o)),[N.darken]:r("desktop",p(t,o))}}function T(o,e,t){const s=r("desktop",{...m(f(o,e),a=>eo({[l]:a},e,o)),description:t});return Object.assign(s,{[k]:e})}const k="sfPictureResting",C=new WeakMap;function To(o,e,t){const s=o[i.kind],a=s?.[k];if(!s||!a)return o;const I=e.props?.[l]==="nextImage",h=I?null:B(t.appState,e.props?.id),x=h?L(String(h.type),M(e.props),h):null;if(!I&&!x?.next)return o;let u=C.get(o);return u||(u={...o,[i.kind]:T(G,a,so)},C.set(o,u)),u}export{wo as cardHoverFields,vo as hoverFields,To as offerNextPicture,No as pictureHoverFields};
@@ -1 +1 @@
1
- import{plainText as e,text as r,withOffPage as a}from"../../../controls.js";import{group as m}from"efficient-easel/screen/lib/document/box-fields";import{BREADCRUMB_PH as i}from"../../../../../../format/lib/document/blocks/general/Breadcrumb/meta.js";const b={fields:{_gContent:m("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:e("Label"),href:a(e("Link"))},getItemSummary:t=>t?.label||"Crumb"},meta:r("Trailing note",i.meta)}};export{b as BreadcrumbFields};
1
+ import{CARD_ROW_FACTS as i,cardRowField as l,cardRowFields as a}from"../../../card-row-fields.js";import{plainText as r,text as m,withOffPage as s}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{BREADCRUMB_PH as d}from"../../../../../../format/lib/document/blocks/general/Breadcrumb/meta.js";const p={fields:{_gContent:o("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:r("Label"),href:s(r("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:m("Trailing note",d.meta),_gText:o("Text"),rowField:l("Shows","text")},resolveFields:(e,t)=>a(t.fields,e,t),showWhenFacts:i};export{p as BreadcrumbFields};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as B}from"react/jsx-runtime";import{ButtonIcon as C,ButtonIconIcon as S,IconAfterTextIcon as T,IconBeforeTextIcon as w}from"efficient-easel/icons";import{SettingsField as k}from"efficient-easel/panel";import{useSelectedFields as m}from"efficient-easel/easel";import{buttonFieldSet as F}from"efficient-easel/screen/lib/document/button-fields";import{IconPicker as v,Segmented as O}from"efficient-shell/ui";import{shellGlyphOf as P}from"../../../shell-glyph.js";import{StorefrontTextLinkField as _}from"../../../../../components/StorefrontLinkField.js";import{usePreviewHeader as a}from"../../../../../../render/components/PreviewHeaderContext.js";import{BUTTON_ICONS as N,buttonIconChoice as R,buttonIconSide as j,buttonWidth as L}from"../../../../../../format/lib/content/button-icon.js";import{BUTTON_PAD_BUILT_IN as W,buttonLook as u}from"../../../../../../render/lib/content/button-look.js";import{nonEmptyString as z}from"../../../../../../format/lib/non-empty-string.js";import{selectedThemeColors as A,siteButtonPaint as d,siteButtonRadiusPx as E}from"../../../../../../format/lib/theme.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{backTo as D,buttonWordsEntryField as U,inOwnBox as G,linkField as H,plainText as K,useSelectedSibling as f}from"../../../controls.js";import{useThemePresets as V}from"../../../ColourControl.js";import{keptByRow as c}from"efficient-easel/screen/lib/document/style-fields";import{group as p}from"efficient-easel/screen/lib/document/box-fields";import{rowSay as q}from"../../../box-fields.js";import{CARD_ROW_FACTS as J,cardRowField as h,cardRowFields as M}from"../../../card-row-fields.js";import{consentWordsKept as Q,withConsentWordsRow as X}from"../../../consent-words-field.js";const b=o=>P(o==="none"?"no-symbol":o),Y=N.map(o=>({value:o,icon:b(o)}));function Z({value:o,onChange:n}){const t=m(),i=t.values.href,s=typeof o=="string"?o:o&&typeof o=="object"&&"text"in o?String(o.text??""):"";return e(_,{label:"Button",icon:e(C,{size:18}),text:s,onTextChange:n,link:typeof i=="string"?i:"",onLinkChange:l=>t.onChange("href",l)})}function $({value:o,onChange:n}){const t=m(),i=R(o,t.values.arrow),s=j(t.values.iconPosition),l=L(t.values.widthFit)==="fill",I=b("icon-at-end");return e(k,{label:r("Icon"),icon:e(S,{size:18}),children:B("div",{className:"flex items-center gap-2",children:[e(v,{label:r("Icon"),value:i,emptyValue:"none",options:Y,onChange:n}),i!=="none"&&e(O,{size:"sm",block:!0,label:r("Icon position"),value:s==="end"&&!l?"after":s,onChange:g=>t.onChange("iconPosition",g),options:[{value:"before",icon:e(w,{size:16}),label:e("span",{className:"sr-only",children:r("Icon before text")}),title:r("Icon before text")},{value:"after",icon:e(T,{size:16}),label:e("span",{className:"sr-only",children:r("Icon after text")}),title:r("Icon after text")},...l?[{value:"end",icon:I,label:e("span",{className:"sr-only",children:r("Icon at the far end")}),title:r("Icon at the far end")}]:[]]})]})})}const x=()=>d(a().theme),y=F({follows:{useFill:()=>x().fill,useText:()=>x().ink,useBorder:()=>{const[o]=f("variant"),[n]=f("buttonColor"),{theme:t}=a(),i=u({variant:o,buttonColor:n}).border.width,s=z(n)??(o==="ghost"?A(t).text:d(t).fill);return{width:i,color:s}},useCorners:()=>E(a().cornerRadiusPx),useFillOpacity:()=>u({variant:f("variant")[0]}).fillOpacity},usePresets:V,resetTo:o=>D(o,r("Styles")),padding:{fallback:W,tablet:!0},say:q});function oo(o,n){const t=Object.keys(o);return Object.fromEntries(t.slice(0,t.indexOf(n)+1).map(i=>[i,o[i]]))}const So={fields:{label:G(K("Button"),o=>e(Z,{value:o.value,onChange:o.onChange})),labelText:U("label"),href:{...H("Button link"),...c("label")},consentWords:Q("label"),_gButton:p("Button"),rowField:h("Shows","text"),rowLinkField:h("Link from","link"),...oo(y,"_dDesign"),_gStyle:p("Style"),variant:c("buttonColor"),icon:{type:"custom",render:o=>e($,{value:o.value,onChange:o.onChange})},iconPosition:c("icon"),arrow:c("icon"),...y},resolveFields:(o,n)=>X(M(n.fields,o,n),o.props,"label",["href"]),showWhenFacts:J};export{So as ButtonBlockFields};
1
+ import{jsx as e,jsxs as C}from"react/jsx-runtime";import{ButtonIcon as S,ButtonIconIcon as T,IconAfterTextIcon as k,IconBeforeTextIcon as w}from"efficient-easel/icons";import{SettingsField as F}from"efficient-easel/panel";import{useSelectedFields as u}from"efficient-easel/easel";import{buttonFieldSet as v}from"efficient-easel/screen/lib/document/button-fields";import{IconPicker as O,Segmented as P}from"efficient-shell/ui";import{shellGlyphOf as _}from"../../../shell-glyph.js";import{StorefrontTextLinkField as N}from"../../../../../components/StorefrontLinkField.js";import{usePreviewHeader as a}from"../../../../../../render/components/PreviewHeaderContext.js";import{BUTTON_ICONS as R,buttonIconChoice as W,buttonIconSide as j,buttonWidth as L}from"../../../../../../format/lib/content/button-icon.js";import{BUTTON_PAD_BUILT_IN as z,buttonLook as d}from"../../../../../../render/lib/content/button-look.js";import{nonEmptyString as A}from"../../../../../../format/lib/non-empty-string.js";import{selectedThemeColors as E,siteButtonPaint as p,siteButtonRadiusPx as D}from"../../../../../../format/lib/theme.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{backTo as U,buttonWordsEntryField as G,inOwnBox as H,linkField as K,plainText as q,useSelectedSibling as f}from"../../../controls.js";import{useThemePresets as J}from"../../../ColourControl.js";import{keptByRow as c}from"efficient-easel/screen/lib/document/style-fields";import{group as h}from"efficient-easel/screen/lib/document/box-fields";import{pickerNoneIcon as M,rowSay as Q,ShellIconWord as b}from"../../../box-fields.js";import{CARD_ROW_FACTS as V,cardRowField as x,cardRowFields as X}from"../../../card-row-fields.js";import{consentWordsKept as Y,withConsentWordsRow as Z}from"../../../consent-words-field.js";const m=o=>_(o==="none"?"no-symbol":o),$=R.map(o=>({value:o,icon:o==="none"?M(m(o),e(b,{value:o})):m(o)}));function oo({value:o,onChange:i}){const t=u(),n=t.values.href,s=typeof o=="string"?o:o&&typeof o=="object"&&"text"in o?String(o.text??""):"";return e(N,{label:"Button",icon:e(S,{size:18}),text:s,onTextChange:i,link:typeof n=="string"?n:"",onLinkChange:l=>t.onChange("href",l)})}function eo({value:o,onChange:i}){const t=u(),n=W(o,t.values.arrow),s=j(t.values.iconPosition),l=L(t.values.widthFit)==="fill",y=m("icon-at-end");return e(F,{label:r("Icon"),icon:e(T,{size:18}),value:n==="none"?void 0:e(b,{value:n}),children:C("div",{className:"flex items-center gap-2",children:[e(O,{label:r("Icon"),value:n,options:$,onChange:i}),n!=="none"&&e(P,{size:"sm",block:!0,label:r("Icon position"),value:s==="end"&&!l?"after":s,onChange:B=>t.onChange("iconPosition",B),options:[{value:"before",icon:e(w,{size:16}),label:e("span",{className:"sr-only",children:r("Icon before text")}),title:r("Icon before text")},{value:"after",icon:e(k,{size:16}),label:e("span",{className:"sr-only",children:r("Icon after text")}),title:r("Icon after text")},...l?[{value:"end",icon:y,label:e("span",{className:"sr-only",children:r("Icon at the far end")}),title:r("Icon at the far end")}]:[]]})]})})}const I=()=>p(a().theme),g=v({follows:{useFill:()=>I().fill,useText:()=>I().ink,useBorder:()=>{const[o]=f("variant"),[i]=f("buttonColor"),{theme:t}=a(),n=d({variant:o,buttonColor:i}).border.width,s=A(i)??(o==="ghost"?E(t).text:p(t).fill);return{width:n,color:s}},useCorners:()=>D(a().cornerRadiusPx),useFillOpacity:()=>d({variant:f("variant")[0]}).fillOpacity},usePresets:J,resetTo:o=>U(o,r("Styles")),padding:{fallback:z,tablet:!0},say:Q});function to(o,i){const t=Object.keys(o);return Object.fromEntries(t.slice(0,t.indexOf(i)+1).map(n=>[n,o[n]]))}const ko={fields:{label:H(q("Button"),o=>e(oo,{value:o.value,onChange:o.onChange})),labelText:G("label"),href:{...K("Button link"),...c("label")},consentWords:Y("label"),_gButton:h("Button"),rowField:x("Shows","text"),rowLinkField:x("Link from","link"),...to(g,"_dDesign"),_gStyle:h("Style"),variant:c("buttonColor"),icon:{type:"custom",render:o=>e(eo,{value:o.value,onChange:o.onChange})},iconPosition:c("icon"),arrow:c("icon"),...g},resolveFields:(o,i)=>Z(X(i.fields,o,i),o.props,"label",["href"]),showWhenFacts:V};export{ko as ButtonBlockFields};
@@ -1 +1 @@
1
- import{jsx as c}from"react/jsx-runtime";import{AccentIcon as v,ColumnsIcon as x,StylesIcon as f}from"efficient-easel/icons";import{copyText as b,plainText as C,plainTextarea as B,text as w,textarea as M,withOffPage as S}from"../../../controls.js";import{group as p}from"efficient-easel/screen/lib/document/box-fields";import{select as y,slider as A}from"../../../box-fields.js";import{SPLITTABLE_SECTIONS as H,headFieldsForPlacement as N}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as D,eyebrowLookFor as k}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as K,blockSourceEditField as W,blockSourceField as J,blockSourceFields as U}from"../../../block-source-fields.js";import{declaredBlockSource as E,sourceChoices as Y}from"../../../../../../format/lib/content/block-sources.js";import{cardKeyOf as q,cardRow as z,cardTemplateFields as O}from"../../../../../../format/lib/content/card-template.js";import{isNodeList as G,newId as F}from"efficient-easel/data";import{say as Q}from"../../../../../../format/lib/editor-words.js";import{cardsFieldsFollowContent as V}from"../../../../../../format/lib/document/cards-template-on-read.js";import{CARDS_PH as I,CardsSlots as X}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const Z=e=>G(e.template)&&e.template.length>0;function $(e){const r=E(e);return r?Y(r).map(t=>({label:t.label,value:t.key})):(Array.isArray(e.items)?e.items:[]).map((t,l)=>({label:typeof t?.title=="string"&&t.title.trim()||Q("Card {n}",{n:l+1}),value:q(z(t),l)}))}const ee=e=>Object.defineProperty({...e},"key",{get:()=>F("card"),enumerable:!0});function te(e,r){const o=Z(r)&&r.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([t,l])=>t==="highlightedCard"?o?[[t,re(l,$(r))]]:[]:t==="highlightBadge"?o?[[t,l]]:[]:t==="items"&&o&&l?[[t,se(l)]]:[[t,l]]))}const L=new WeakMap;function re(e,r){let o=L.get(e);o||L.set(e,o=new Map);const t=JSON.stringify(r);let l=o.get(t);return l||o.set(t,l={...e,options:[...e.options,...r]}),l}const _=e=>e.kind==="link"?S(C(e.label)):e.multiline?B(e.label):b(e.label),oe=Object.fromEntries(O("Cards").filter(e=>!e.everySource).map(e=>[e.key,_(e)])),le=Object.fromEntries(O("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,_(e)])),T=new WeakMap;function se(e){let r=T.get(e);return r||T.set(e,r={...e,arrayFields:oe}),r}const we={fields:{_gSource:p("Source"),dataSource:J("Card content","Manual"),[K]:W(),_gContent:p("Content"),eyebrow:w("Eyebrow",I.eyebrow),eyebrowLook:y("Eyebrow style",c(f,{}),[...D],k("Cards")),title:M("Heading",I.title),items:{type:"array",label:"Cards",arrayFields:le,defaultItemProps:ee({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...X,highlightedCard:y("Highlighted card",c(v,{}),[{label:"None",value:""}],""),highlightBadge:w("Highlight badge","Most popular"),_gStyle:p("Style"),cardStyle:y("Card style",c(f,{}),[{label:"Cards",value:"cards"},{label:"Label only",value:"label-only"}],"cards"),columns:A("Columns",c(x,{}),2,4,1,3)},resolveData:e=>{const r=V(e.props),o=r===e.props?e:{...e,props:r},t=o.props;if(!Array.isArray(t.items)||E(t))return o;const l=t.items,a=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",i=s=>s&&typeof s=="object"&&typeof s.key=="string"?s.key:"",P=!!a&&!l.some(s=>i(s)===a),d=new Set;let u=t.highlightedCard,h=!1;const R=l.map((s,j)=>{if(!s||typeof s!="object")return s;const n=i(s);if(n&&!d.has(n))return d.add(n),s;const g=!n&&P&&a===String(j+1);if(n||g){const m=F("card");return d.add(m),h=!0,g&&(u=m),{...s,key:m}}return s});return h?{...o,props:{...t,items:R,highlightedCard:u}}:o},resolveFields:(e,{fields:r})=>{const o=N(U("Cards",r,e.props,{hides:["items"]}),e.props.headPlacement,H.Cards.headRows),t=e.props,l=te(o,t);if(t.cardStyle!=="label-only")return l;const a=o.items,i=o.eyebrowLook;return{...l,...a?{items:{...a,arrayFields:{title:b("Feature label"),href:S(C("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:k("KeyFeatures")}}:{}}}};export{we as CardsFields};
1
+ import{jsx as c}from"react/jsx-runtime";import{AccentIcon as v,ColumnsIcon as x,StylesIcon as g}from"efficient-easel/icons";import{copyText as f,plainText as b,plainTextarea as B,text as C,textarea as M,withOffPage as w}from"../../../controls.js";import{group as p}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as D,select as S,slider as H}from"../../../box-fields.js";import{CARD_STYLE_PICTURES as k,LAYOUT_CELL as N}from"../../../choice-pictures.js";import{SPLITTABLE_SECTIONS as K,headFieldsForPlacement as U}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as W,eyebrowLookFor as E}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as Y,blockSourceEditField as J,blockSourceField as q,blockSourceFields as z}from"../../../block-source-fields.js";import{declaredBlockSource as O,sourceChoices as G}from"../../../../../../format/lib/content/block-sources.js";import{cardKeyOf as Q,cardRow as V,cardTemplateFields as L}from"../../../../../../format/lib/content/card-template.js";import{isNodeList as X,newId as F}from"efficient-easel/data";import{say as Z}from"../../../../../../format/lib/editor-words.js";import{cardsFieldsFollowContent as $}from"../../../../../../format/lib/document/cards-template-on-read.js";import{CARDS_PH as I,CardsSlots as ee}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const te=e=>X(e.template)&&e.template.length>0;function re(e){const r=O(e);return r?G(r).map(t=>({label:t.label,value:t.key})):(Array.isArray(e.items)?e.items:[]).map((t,l)=>({label:typeof t?.title=="string"&&t.title.trim()||Z("Card {n}",{n:l+1}),value:Q(V(t),l)}))}const oe=e=>Object.defineProperty({...e},"key",{get:()=>F("card"),enumerable:!0});function le(e,r){const o=te(r)&&r.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([t,l])=>t==="highlightedCard"?o?[[t,se(l,re(r))]]:[]:t==="highlightBadge"?o?[[t,l]]:[]:t==="items"&&o&&l?[[t,ne(l)]]:[[t,l]]))}const _=new WeakMap;function se(e,r){let o=_.get(e);o||_.set(e,o=new Map);const t=JSON.stringify(r);let l=o.get(t);return l||o.set(t,l={...e,options:[...e.options,...r]}),l}const T=e=>e.kind==="link"?w(b(e.label)):e.multiline?B(e.label):f(e.label),ae=Object.fromEntries(L("Cards").filter(e=>!e.everySource).map(e=>[e.key,T(e)])),ie=Object.fromEntries(L("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,T(e)])),P=new WeakMap;function ne(e){let r=P.get(e);return r||P.set(e,r={...e,arrayFields:ae}),r}const Oe={fields:{_gSource:p("Source"),dataSource:q("Card content","Manual"),[Y]:J(),_gContent:p("Content"),eyebrow:C("Eyebrow",I.eyebrow),eyebrowLook:S("Eyebrow style",c(g,{}),[...W],E("Cards")),title:M("Heading",I.title),items:{type:"array",label:"Cards",arrayFields:ie,defaultItemProps:oe({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...ee,highlightedCard:S("Highlighted card",c(v,{}),[{label:"None",value:""}],""),highlightBadge:C("Highlight badge","Most popular"),_gStyle:p("Style"),cardStyle:D("Card style",c(g,{}),[{label:"Cards",value:"cards",picture:k.cards},{label:"Label only",value:"label-only",picture:k["label-only"]}],"cards",{columns:2,cell:N}),columns:H("Columns",c(x,{}),2,4,1,3)},resolveData:e=>{const r=$(e.props),o=r===e.props?e:{...e,props:r},t=o.props;if(!Array.isArray(t.items)||O(t))return o;const l=t.items,a=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",i=s=>s&&typeof s=="object"&&typeof s.key=="string"?s.key:"",R=!!a&&!l.some(s=>i(s)===a),d=new Set;let u=t.highlightedCard,y=!1;const A=l.map((s,j)=>{if(!s||typeof s!="object")return s;const n=i(s);if(n&&!d.has(n))return d.add(n),s;const h=!n&&R&&a===String(j+1);if(n||h){const m=F("card");return d.add(m),y=!0,h&&(u=m),{...s,key:m}}return s});return y?{...o,props:{...t,items:A,highlightedCard:u}}:o},resolveFields:(e,{fields:r})=>{const o=U(z("Cards",r,e.props,{hides:["items"]}),e.props.headPlacement,K.Cards.headRows),t=e.props,l=le(o,t);if(t.cardStyle!=="label-only")return l;const a=o.items,i=o.eyebrowLook;return{...l,...a?{items:{...a,arrayFields:{title:f("Feature label"),href:w(b("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:E("KeyFeatures")}}:{}}}};export{Oe as CardsFields};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{StylesIcon as i}from"efficient-easel/icons";import{copyText as n,plainText as s,text as e,textarea as t,withPanelOnly as p}from"../../../controls.js";import{group as a}from"efficient-easel/screen/lib/document/box-fields";import{select as m}from"../../../box-fields.js";import{CHART_PH as o}from"../../../../../../format/lib/document/blocks/general/Chart/meta.js";const v={fields:{_gContent:a("Content"),eyebrow:e("Chip label",o.eyebrow),title:t("Heading",o.title),body:t("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:n("Label"),value:s("Value")},defaultItemProps:{label:"",value:""},getItemSummary:l=>[l?.label,l?.value].filter(Boolean).join(" · ")||"Point"},caption:e("Caption","Illustrative example"),_gStyle:a("Style"),chartStyle:m("Chart style",r(i,{}),[{label:"Bars (comparison / funnel)",value:"bars"},{label:"Line (trend)",value:"line"},{label:"Donut (split of a whole)",value:"donut"}],"bars"),valueSuffix:p(e("Value suffix","%"))}};export{v as ChartFields};
1
+ import{jsx as i}from"react/jsx-runtime";import{StylesIcon as n}from"efficient-easel/icons";import{copyText as u,plainText as p,text as e,textarea as a,withPanelOnly as s}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as m}from"../../../box-fields.js";import{CHART_PICTURES as t,LAYOUT_CELL as f}from"../../../choice-pictures.js";import{CHART_PH as r}from"../../../../../../format/lib/document/blocks/general/Chart/meta.js";const v={fields:{_gContent:o("Content"),eyebrow:e("Chip label",r.eyebrow),title:a("Heading",r.title),body:a("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:u("Label"),value:p("Value")},defaultItemProps:{label:"",value:""},getItemSummary:l=>[l?.label,l?.value].filter(Boolean).join(" · ")||"Point"},caption:e("Caption","Illustrative example"),_gStyle:o("Style"),chartStyle:m("Chart style",i(n,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:t.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:t.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:t.donut}],"bars",{columns:3,cell:f}),valueSuffix:s(e("Value suffix","%"))}};export{v as ChartFields};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{StickyIcon as r}from"efficient-easel/icons";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{SECTION_STICK_LABEL as t}from"../../../../../../format/lib/content/section-sticky.js";import{text as m,toggle as e}from"../../../controls.js";import{CONTENTS_PH as p}from"../../../../../../format/lib/document/blocks/general/Contents/meta.js";const S={fields:{title:m("Heading",p.title),_gStick:i(t),sticky:e(t,!0,o(r,{}))}};export{S as ContentsFields};
1
+ import{jsx as t}from"react/jsx-runtime";import{EyeIcon as m,HashIcon as p,StickyIcon as s}from"efficient-easel/icons";import{phoneKey as _}from"efficient-easel/draw";import{group as r,select as f}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as o}from"efficient-easel/screen/lib/document/device-fields";import{BLOCK_SHOW_KEY as E}from"../../../../../../render/lib/content/block-size.js";import{LIST_NUMBER_FORMS as S,LIST_NUMBER_FORM_DEFAULT as d}from"../../../../../../format/lib/content/list-number.js";import{CONTENTS_NUMBER_FORM_KEY as c}from"../../../../../../render/lib/content/page-contents.js";import{SECTION_STICK_LABEL as e}from"../../../../../../format/lib/content/section-sticky.js";import{text as N,toggle as i}from"../../../controls.js";import{CONTENTS_PH as T}from"../../../../../../format/lib/document/blocks/general/Contents/meta.js";const B={fields:{title:o("desktop",N("Heading",T.title)),_gList:o("desktop",r("List")),[c]:o("desktop",f("Number",t(p,{}),S,d)),[_(E)]:o("mobile",i("Show",!0,t(m,{}))),_gStick:o("desktop",r(e)),sticky:o("desktop",i(e,!0,t(s,{})))}};export{B as ContentsFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{EyeOffIcon as r,StylesIcon as d,WeightIcon as p,WidthIcon as c}from"efficient-easel/icons";import{deviceField as m}from"efficient-easel/screen/lib/document/device-fields";import{swapPadding as f,toggle as a}from"../../../controls.js";import{keptByRow as g}from"efficient-easel/screen/lib/document/style-fields";import{select as I,sidesPaddingFields as D,slider as t}from"../../../box-fields.js";import{DEFAULT_DIVIDER_STYLE as o,DIVIDER_SPACE_PX as E,DIVIDER_STYLE_OPTIONS as _,parseDividerSpacing as h}from"../../../../../../format/lib/sections/divider-style.js";import{withRowRules as y}from"../../../../../../render/lib/document/show-when.js";const S={any:[{field:"style",set:!1},{field:"style",is:o}]},P={not:{field:"style",is:"none"}},v={fields:y({style:I("Style",e(d,{}),_,o),spacing:g("sectionPaddingTop"),thickness:t("Thickness",e(p,{}),1,8,1,1,"px"),lengthPct:t("Length",e(c,{}),10,100,1,100,"%"),hideOnMobile:m("mobile",a("Hide",!1,e(r,{})))},[[["thickness"],S],[["lengthPct"],P]]),resolveFields:(s,{fields:n})=>{const i=E[h(s.props.spacing)],l=D({fallback:{top:i,bottom:i},tablet:!0});return f(n,l)}};export{v as DividerFields};
1
+ import{jsx as i}from"react/jsx-runtime";import{EyeOffIcon as n,StylesIcon as c,WeightIcon as d,WidthIcon as p}from"efficient-easel/icons";import{deviceField as m}from"efficient-easel/screen/lib/document/device-fields";import{swapPadding as a,toggle as f}from"../../../controls.js";import{keptByRow as g}from"efficient-easel/screen/lib/document/style-fields";import{iconPickerRow as I,sidesPaddingFields as E,slider as o}from"../../../box-fields.js";import{LAYOUT_CELL as _,dividerPicture as D}from"../../../choice-pictures.js";import{DEFAULT_DIVIDER_STYLE as s,DIVIDER_SPACE_PX as h,DIVIDER_STYLE_OPTIONS as P,parseDividerSpacing as y}from"../../../../../../format/lib/sections/divider-style.js";import{withRowRules as L}from"../../../../../../render/lib/document/show-when.js";const R={any:[{field:"style",set:!1},{field:"style",is:s}]},S={not:{field:"style",is:"none"}},O={fields:L({style:I("Style",i(c,{}),P.map(e=>({...e,picture:D(e.value)})),s,{columns:3,cell:_}),spacing:g("sectionPaddingTop"),thickness:o("Thickness",i(d,{}),1,8,1,1,"px"),lengthPct:o("Length",i(p,{}),10,100,1,100,"%"),hideOnMobile:m("mobile",f("Hide",!1,i(n,{})))},[[["thickness"],R],[["lengthPct"],S]]),resolveFields:(e,{fields:r})=>{const t=h[y(e.props.spacing)],l=E({fallback:{top:t,bottom:t},tablet:!0});return a(r,l)}};export{O as DividerFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{phoneKey as n,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as d,isBackgroundBox as W}from"../../../../../../format/lib/content/box-background.js";import{darkenFields as X}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as j,REEL_SHAPE_LABELS as K}from"../../../../../../format/lib/reel.js";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{ClockIcon as v,CropIcon as g,LineBetweenIcon as G,LineSolidIcon as Y,ShadowIcon as J,StylesIcon as V,TableIcon as A,TargetIcon as z}from"efficient-easel/icons";import{boxBlockSpacingField as q,boxFillField as Q,boxColumnsFields as Z,boxShareField as $,boxSharePhoneField as oo,boxShareTabletField as eo,containerDirectionField as to,containerGapRows as no,linkField as io,plainText as ao,swapPadding as O,toggle as c,upload as R,withPanelOnly as lo}from"../../../controls.js";import{BOX_SHAPE_OPTIONS as E,boxShapeOf as ro}from"../../../../../../format/lib/content/box-shape.js";import{BOX_COLUMNS_MAX as b,BOX_COLUMNS_MIN as C,boxPhoneRowOneLine as so}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as F}from"../../../../../../format/lib/content/box-separator.js";import{VIEW_KEY_ACCESS as po,group as a,phoneTwinFields as L}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as co,boxJustifyField as mo,boxWrapField as N,placementField as So,select as s,sidesPaddingFields as H}from"../../../box-fields.js";import{withRowRules as _o}from"../../../../../../render/lib/document/show-when.js";import{separatorField as ho}from"../../../separator-field.js";import{LOOP_SCROLLS as fo}from"../../../../../../format/lib/animation/index.js";import{FlexSlots as uo}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{CARD_BOX_FACTS as go,ON_A_CARD as Ao,cardDisplayField as Oo}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Ro,mirrorCardsField as Eo}from"../../../mirror-cards-field.js";import{SHARED_COLUMNS_KEY as l,SHARED_COLUMNS_LABEL as T,SHARED_COLUMNS_OFF as D,sharedColumnsDrawn as x,sharedColumnsFits as I,SHARED_COLUMNS_PHONE_POINTS as bo,SHARED_COLUMNS_POINTS as Co}from"../../../../../../render/lib/content/box-shared-columns.js";const Fo={field:"bgImage",set:!0},w={field:"phoneRow",in:[2,3]},Lo={field:"direction",is:"tabs"},No={field:"line",in:[!0,!1]},Ho={field:"anchor",set:!0},h=["fixed","screen"],To={not:{any:[{field:"sectionHeightMode",in:h},{field:"sectionHeightModeTablet",in:h},{field:"sectionHeightModePhone",in:h}]}},Do={context:"parent.line",is:!0},f={field:"direction",is:"row",default:"row"},p={not:fo},u={all:[f,p,{not:{field:"separator",in:F.map(o=>o.value)}},{not:{field:"line",is:!0}}]},xo={all:[u,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:b},(t,_)=>_+C)}}))]},Io={all:[p,{not:{all:[f,{field:"separator",in:F.map(o=>o.value)}]}}]},k={not:{all:[u,{field:"columns",in:Array.from({length:b},(o,t)=>t+C)}]}},wo="sharedColumnsFits",P="sharedColumnsMisfit",B="sharedColumnsDraws",M="sharedColumnsPhoneDraws",ko={[wo]:o=>I(o.props??{}),[P]:o=>!I(o.props??{}),[B]:o=>x(o.props??{}).desktop,[M]:o=>x(o.props??{}).phone};function y(o){return{all:[{not:{context:P,is:!0}},{any:[Ao,{field:o,set:!0}]}]}}const m={not:{context:B,is:!0}},S={not:{context:M,is:!0}},Po={any:[m,S]};function Bo(o){return{...o,render:t=>o.render({...t,value:so(t.value)?"nowrap":"wrap"})}}const ie={fields:_o({_gContent:a("Content"),content:uo.content,_gCardDisplay:a("Display"),cardDisplay:Oo(),_gLayout:a("Layout"),direction:to("Flex"),tabShape:s("Tab shape",e(V,{}),j.map(o=>({label:K[o],value:o})),"tabs"),mirrorCards:Eo(),label:lo(ao("Tab name")),...no("Flex"),justify:mo(),align:co(),...L("wrap",N(),void 0,{phoneRow:Bo(N())}),...L("boxShape",s("Box shape",e(g,{}),[...E],"auto"),po,{phoneRow:s("Box shape",e(g,{}),[...E],"auto",{phoneRest:o=>ro(o)})}),separator:ho(e(G,{size:18}),"none"),share:r("desktop",$()),[i("share")]:eo(),[n("share")]:oo(),[l]:r("desktop",s(T,e(A,{}),[...Co],D)),[n(l)]:r("mobile",s(T,e(A,{}),[...bo],D)),...Z(),blockSpacing:q(),line:c("Line",!1,e(Y,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,e(v,{}),"Still to come: a hollow dot, and the gold line stops before it."),_gShadow:a("Shadow"),shadow:c("Shadow",!1,e(J,{})),fillColor:Q(),_gBackground:a("Background image"),bgImage:r("desktop",R("Image","image/*")),bgImagePhone:r("mobile",R("Image","image/*")),...X(),placement:So("Content position"),_gLink:a("Link"),link:io("Link to"),jumpHighlight:c("Highlight when a link jumps here",!1,e(z,{}),"When a link lands on this Box's anchor, the Box gets an accent outline and its first block turns accent.")},[[["darken","darkenStyle","placement"],Fo],[[n("share")],{all:[w,S]}],[[l],y(l)],[[n(l)],y(n(l))],[[n("wrap")],{all:[w,p,S]}],[["phoneRow"],S],[["tabShape"],Lo],[["separator"],f],[["columns",i("columns")],u],[[i("gap")],Io],[["justify"],{all:[p,Po]}],[["wrap"],{all:[p,k,m]}],[["share"],{all:[k,m]}],[[i("share")],{all:[xo,m]}],[["line"],No],[["upcoming"],Do],[["jumpHighlight"],Ho],[["boxShape",i("boxShape"),n("boxShape")],To]]),resolveFields:(o,{fields:t})=>{const _=o.props;if(W(_.bgImage)){const U=H({fallback:{top:d.desktop,bottom:d.desktop,left:d.side,right:d.side},tablet:!0});return O(t,U)}return o.props.padV2!==!0?O(t,H({fallback:{top:24,bottom:24},tablet:!0})):t},showWhenFacts:{...go,...Ro,...ko}};export{ie as FlexFields};
1
+ import{jsx as n}from"react/jsx-runtime";import{phoneKey as t,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as m,isBackgroundBox as j}from"../../../../../../format/lib/content/box-background.js";import{darkenFields as K}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as v,REEL_SHAPE_LABELS as G}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as Y,TAB_SHAPE_PICTURES as J}from"../../../choice-pictures.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ClockIcon as V,CropIcon as u,LineBetweenIcon as z,LineSolidIcon as q,ShadowIcon as Q,StylesIcon as Z,TableIcon as A,TargetIcon as $}from"efficient-easel/icons";import{boxBlockSpacingField as oo,boxFillField as eo,boxColumnsFields as no,boxShareField as to,boxSharePhoneField as io,boxShareTabletField as ro,containerDirectionField as lo,containerGapRows as ao,linkField as so,plainText as po,swapPadding as O,toggle as c,upload as g,withPanelOnly as mo}from"../../../controls.js";import{BOX_SHAPES as R,boxShapeOf as co}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as E}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as C}from"../../../shape-picker.js";import{BOX_COLUMNS_MAX as F,BOX_COLUMNS_MIN as b,boxPhoneRowOneLine as So}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as L}from"../../../../../../format/lib/content/box-separator.js";import{VIEW_KEY_ACCESS as ho,group as r,phoneTwinFields as w}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as _o,boxJustifyField as fo,boxWrapField as T,iconPickerRow as uo,placementField as Ao,select as H,sidesPaddingFields as N}from"../../../box-fields.js";import{withRowRules as Oo}from"../../../../../../render/lib/document/show-when.js";import{separatorField as go}from"../../../separator-field.js";import{LOOP_SCROLLS as Ro}from"../../../../../../format/lib/animation/index.js";import{FlexSlots as Eo}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{boxPhoneOrderField as Co}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Fo,ON_A_CARD as bo,cardDisplayField as Lo}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as wo,mirrorCardsField as To}from"../../../mirror-cards-field.js";import{SHOW_FOR_FACTS as Ho,showForField as No,showForFields as xo}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as l,SHARED_COLUMNS_LABEL as x,SHARED_COLUMNS_OFF as D,sharedColumnsDrawn as I,sharedColumnsFits as P,SHARED_COLUMNS_PHONE_POINTS as Do,SHARED_COLUMNS_POINTS as Io}from"../../../../../../render/lib/content/box-shared-columns.js";const Po={field:"bgImage",set:!0},k={field:"phoneRow",in:[2,3]},ko={field:"direction",is:"tabs"},Bo={field:"line",in:[!0,!1]},Mo={field:"anchor",set:!0},_=["fixed","screen"],yo={not:{any:[{field:"sectionHeightMode",in:_},{field:"sectionHeightModeTablet",in:_},{field:"sectionHeightModePhone",in:_}]}},Uo={context:"parent.line",is:!0},f={field:"direction",is:"row",default:"row"},s={not:Ro},S={all:[f,s,{not:{field:"separator",in:L.map(o=>o.value)}},{not:{field:"line",is:!0}}]},Wo={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:F},(e,h)=>h+b)}}))]},Xo={all:[s,{not:{all:[f,{field:"separator",in:L.map(o=>o.value)}]}}]},B={not:{all:[S,{field:"columns",in:Array.from({length:F},(o,e)=>e+b)}]}},jo="sharedColumnsFits",M="sharedColumnsMisfit",y="sharedColumnsDraws",U="sharedColumnsPhoneDraws",Ko={[jo]:o=>P(o.props??{}),[M]:o=>!P(o.props??{}),[y]:o=>I(o.props??{}).desktop,[U]:o=>I(o.props??{}).phone};function W(o){return{all:[{not:{context:M,is:!0}},{any:[bo,{field:o,set:!0}]}]}}const p={not:{context:y,is:!0}},d={not:{context:U,is:!0}},vo={any:[p,d]};function Go(o){return{...o,render:e=>o.render({...e,value:So(e.value)?"nowrap":"wrap"})}}const Oe={fields:Oo({_gContent:r("Content"),content:Eo.content,_gCardDisplay:r("Display"),cardDisplay:Lo(),showFor:No(),_gLayout:r("Layout"),direction:lo("Flex"),tabShape:uo("Tab shape",n(Z,{}),v.map(o=>({label:G[o],value:o,picture:J[o]})),"tabs",{columns:2,cell:Y}),mirrorCards:To(),label:mo(po("Tab name")),...ao("Flex"),justify:fo(),align:_o(),...w("wrap",T(),void 0,{phoneRow:Go(T())}),[t("order")]:Co(),...w("boxShape",C("Box shape",n(u,{}),E(R),"shape","auto"),ho,{phoneRow:C("Box shape",n(u,{}),E(R),"shape","auto",{phoneRest:o=>co(o)})}),separator:go(n(z,{size:18}),"none"),share:a("desktop",to()),[i("share")]:ro(),[t("share")]:io(),[l]:a("desktop",H(x,n(A,{}),[...Io],D)),[t(l)]:a("mobile",H(x,n(A,{}),[...Do],D)),...no(),blockSpacing:oo(),line:c("Line",!1,n(q,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,n(V,{}),"Still to come: a hollow dot, and the gold line stops before it."),_gShadow:r("Shadow"),shadow:c("Shadow",!1,n(Q,{})),fillColor:eo(),_gBackground:r("Background image"),bgImage:a("desktop",g("Image","image/*")),bgImagePhone:a("mobile",g("Image","image/*")),...K(),placement:Ao("Content position"),_gLink:r("Link"),link:so("Link to"),jumpHighlight:c("Highlight when a link jumps here",!1,n($,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],Po],[[t("share")],{all:[k,d]}],[[l],W(l)],[[t(l)],W(t(l))],[[t("wrap")],{all:[k,s,d]}],[[t("order")],{all:[S,d,p]}],[["phoneRow"],d],[["tabShape"],ko],[["separator"],f],[["columns",i("columns")],S],[[i("gap")],Xo],[["justify"],{all:[s,vo]}],[["wrap"],{all:[s,B,p]}],[["share"],{all:[B,p]}],[[i("share")],{all:[Wo,p]}],[["line"],Bo],[["upcoming"],Uo],[["jumpHighlight"],Mo],[["boxShape",i("boxShape"),t("boxShape")],yo]]),resolveFields:(o,e)=>xo(Yo(o,e),o.props),showWhenFacts:{...Fo,...wo,...Ko,...Ho}};function Yo(...[o,{fields:e}]){{const h=o.props;if(j(h.bgImage)){const X=N({fallback:{top:m.desktop,bottom:m.desktop,left:m.side,right:m.side},tablet:!0});return O(e,X)}return o.props.padV2!==!0?O(e,N({fallback:{top:24,bottom:24},tablet:!0})):e}}export{Oe as FlexFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as m,REEL_SHAPE_DEFAULT as d,HERO_REEL_SHAPES as A,REEL_SHAPE_LABELS as R,REEL_SHOWN_DEFAULT as O}from"../../../../../../format/lib/reel.js";import{HERO_TEXTURE_SHOWN_DEFAULT as P}from"../../../../../../format/lib/hero-texture.js";import{HERO_ARROW_SHAPE_DEFAULT as H,HERO_ARROW_SHAPE_LABELS as L,HERO_ARROW_SHAPES as u,HERO_ARROWS_PLACEMENT_DEFAULT as h,HERO_ARROWS_SHOWN_DEFAULT as w}from"../../../../../../format/lib/hero-arrows.js";import{ClockIcon as I,EyeIcon as t,OpacityIcon as T,PhoneIcon as s,PlayIcon as k,SlideArrowsBareIcon as f,SlideArrowsRoundIcon as D,SlideArrowsSquareIcon as g,SlidePickerBarIcon as U,SlidePickerCardsIcon as y,SlidePickerDotsIcon as F,SlidePickerNumbersIcon as W,SlidePickerSquaresIcon as b,SquareIcon as E}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as N}from"efficient-shell/icons/efficient-looks";const C=N,x={cards:e(y,{}),dots:e(F,{}),numbers:e(W,{}),bar:e(U,{}),squares:e(b,{})},B={outline:e(D,{}),solid:e(C,{}),square:e(g,{}),bare:e(f,{})};import{toggle as i}from"../../../controls.js";import{HERO_TEXTURE_COLOR_ROW as q}from"../../hero-shared-fields.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{alignmentField as M,iconPickerRow as _,placementField as n,segmented as c,slider as p}from"../../../box-fields.js";import{deviceField as l,deviceNote as j}from"efficient-easel/screen/lib/document/device-fields";import{HERO_PHONE_SIDEWAYS_DEFAULT as X,HERO_PHONE_SIDEWAYS_LABEL as Y,HERO_PHONE_UPDOWN_DEFAULT as v,HERO_PHONE_UPDOWN_LABEL as K,phoneSidewaysPoints as z,phoneUpDownPoints as G}from"../../../../../../format/lib/hero-phone-stack.js";import{heightField as S}from"../../shared-fields.js";import{HeroSlots as a}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const ne={fields:{_dDevice:j(),_gContent:o("Content"),slides:a.slides,strip:a.strip,_gStyle:o("Style"),alignment:M(),_gTexture:o("Texture"),showTexture:i("Show texture",P,e(t,{})),textureColor:q,textureOpacity:p("Texture opacity",e(T,{}),0,100,1,40,"%"),_gLayout:o("Layout"),heightDesktop:S("desktop"),heightMobile:S("mobile"),_gAutoplay:o("Auto-slide"),autoplay:i("Auto-advance slides",!1,e(k,{})),autoplayInterval:p("Still time per slide",e(I,{}),2,15,1,6,"s"),_gPicker:o("Slide picker"),showPicker:i("Show slide picker",O,e(t,{})),pickerShape:_("Slide picker shape",e(E,{}),A.map(r=>({label:R[r],value:r,picture:x[r]})),d),pickerPlacement:n("Slide picker placement",{fallback:m}),_gArrows:o("Arrows"),showArrows:i("Show arrows",w,e(t,{})),arrowsShape:_("Arrows shape",e(E,{}),u.map(r=>({label:L[r],value:r,picture:B[r]})),H),arrowsPlacement:n("Arrows placement",{fallback:h}),_gPhone:l("mobile",o("On a phone")),phoneUpDown:l("mobile",c(K,e(s,{}),G(),v)),phoneSideways:l("mobile",c(Y,e(s,{}),z(),X))}};export{ne as HeroFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as a,REEL_SHAPE_DEFAULT as m,HERO_REEL_SHAPES as d,REEL_SHAPE_LABELS as A,REEL_SHOWN_DEFAULT as R}from"../../../../../../format/lib/reel.js";import{HERO_TEXTURE_SHOWN_DEFAULT as O}from"../../../../../../format/lib/hero-texture.js";import{HERO_ARROW_SHAPE_DEFAULT as P,HERO_ARROW_SHAPE_LABELS as H,HERO_ARROW_SHAPES as L,HERO_ARROWS_PLACEMENT_DEFAULT as u,HERO_ARROWS_SHOWN_DEFAULT as w}from"../../../../../../format/lib/hero-arrows.js";import{ClockIcon as I,EyeIcon as t,OpacityIcon as T,PhoneIcon as s,PlayIcon as h,SlideArrowsBareIcon as f,SlideArrowsRoundIcon as k,SlideArrowsSquareIcon as D,SlidePickerBarIcon as U,SlidePickerCardsIcon as g,SlidePickerDotsIcon as y,SlidePickerNumbersIcon as F,SlidePickerSquaresIcon as W,SquareIcon as l}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as N}from"efficient-shell/icons/efficient-looks";const b=N,C={cards:e(g,{}),dots:e(y,{}),numbers:e(F,{}),bar:e(U,{}),squares:e(W,{})},x={outline:e(k,{}),solid:e(b,{}),square:e(D,{}),bare:e(f,{})};import{toggle as i}from"../../../controls.js";import{HERO_TEXTURE_COLOR_ROW as B}from"../../hero-shared-fields.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{alignmentField as q,iconPickerRow as _,placementField as n,segmented as c,slider as p}from"../../../box-fields.js";import{deviceField as E,deviceNote as j}from"efficient-easel/screen/lib/document/device-fields";import{HERO_PHONE_SIDEWAYS_DEFAULT as M,HERO_PHONE_SIDEWAYS_LABEL as X,HERO_PHONE_UPDOWN_DEFAULT as Y,HERO_PHONE_UPDOWN_LABEL as v,phoneSidewaysPoints as K,phoneUpDownPoints as z}from"../../../../../../format/lib/hero-phone-stack.js";import{heroHeightFields as G}from"../../shared-fields.js";import{HeroSlots as S}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const ne={fields:{_dDevice:j(),_gContent:o("Content"),slides:S.slides,strip:S.strip,_gStyle:o("Style"),alignment:q(),_gTexture:o("Texture"),showTexture:i("Show texture",O,e(t,{})),textureColor:B,textureOpacity:p("Texture opacity",e(T,{}),0,100,1,40,"%"),_gLayout:o("Layout"),...G(),_gAutoplay:o("Auto-slide"),autoplay:i("Auto-advance slides",!1,e(h,{})),autoplayInterval:p("Still time per slide",e(I,{}),2,15,1,6,"s"),_gPicker:o("Slide picker"),showPicker:i("Show slide picker",R,e(t,{})),pickerShape:_("Slide picker shape",e(l,{}),d.map(r=>({label:A[r],value:r,picture:C[r]})),m),pickerPlacement:n("Slide picker placement",{fallback:a}),_gArrows:o("Arrows"),showArrows:i("Show arrows",w,e(t,{})),arrowsShape:_("Arrows shape",e(l,{}),L.map(r=>({label:H[r],value:r,picture:x[r]})),P),arrowsPlacement:n("Arrows placement",{fallback:u}),_gPhone:E("mobile",o("On a phone")),phoneUpDown:E("mobile",c(v,e(s,{}),z(),Y)),phoneSideways:E("mobile",c(X,e(s,{}),K(),M))}};export{ne as HeroFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{ImageIcon as T,ImagesIcon as c,MediaIcon as E,MediaLayoutSideBySideIcon as P,MediaLayoutStackedIcon as S,OpacityIcon as m}from"efficient-easel/icons";import{colorInput as n,focusKeptField as i,MEDIA_TYPE_OPTIONS as b,upload as a}from"../../../controls.js";import{group as t,phoneTwinFields as h}from"efficient-easel/screen/lib/document/box-fields";import{segmented as l,slider as d}from"../../../box-fields.js";import{MEDIA_LAYOUT_DEFAULT as g,MEDIA_LAYOUT_LABELS as p,MEDIA_LAYOUTS as y,resolvePhoneLayout as v}from"../../../../../../format/lib/hero-media-layout.js";import{deviceNote as U}from"efficient-easel/screen/lib/document/device-fields";import{HERO_OVERLAY_ROWS as u,HERO_VIDEO_ROWS as r}from"../../hero-shared-fields.js";import{heightField as s,slotNoticeField as A}from"../../shared-fields.js";import{forMediaType as I,heroMediaFields as D,VIDEO_FILE_LABEL as M,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{VIDEO_SOURCE_DEFAULT as L}from"../../../../../../format/lib/hero-video.js";const O=I("video","image"),_=I("image","image"),F={one:e(T,{}),side:e(P,{}),stacked:e(S,{})};import{HeroSingleSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{DEFAULT_TINT as f}from"../../../../../../format/lib/content/tint.js";const z={fields:D({_dDevice:U(),boxNotice:A("HeroSingle"),boxes:C.boxes,_gStyle:t("Style"),overlay:d("Overlay",e(m,{}),0,100,5,100,"%"),overlayColor:u.overlayColor,overlayPosition:u.overlayPosition,_gLayout:t("Layout"),heightDesktop:s("desktop"),heightMobile:s("mobile"),_gMedia:t("Media"),mediaType:l("Type",e(E,{}),b,"image"),mediaLayout:l("Layout",e(c,{}),y.map(o=>({label:p[o],value:o,picture:F[o]})),g),mediaLayoutPhone:h("mediaLayout",l("Layout",e(c,{}),y.map(o=>({label:p[o],value:o,picture:F[o]})),g,{phoneRest:o=>v(void 0,o)})).mediaLayoutPhone,mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:i(),imageFocalPhone:i(),videoSource:r.videoSource,mediaVideo:a(M,"video/*",k),youtubeUrl:r.youtubeUrl,videoPlayback:r.videoPlayback,poster:a("Video poster","image/*","Upload a poster still"),_gTint:t("Image tint"),tintColor:n("Tint color",f),tintOpacity:d("Tint opacity",e(m,{}),0,100,5,0,"%"),mediaImage2:a("Background image","image/*","Upload a background image",{focus:"imageFocal2"}),imageFocal2:i(),imageFocal2Phone:i(),tintColor2:n("Tint color",f),tintOpacity2:d("Tint opacity",e(m,{}),0,100,5,0,"%")},{parts:{media:["mediaType","mediaLayout","mediaLayoutPhone","videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:["mediaImage","imageFocal","imageFocalPhone","tintColor","tintOpacity"],image2:["mediaImage2","imageFocal2","imageFocal2Phone","tintColor2","tintOpacity2"]},onlyFor:{image:["mediaImage","imageFocal","imageFocalPhone","_gTint","tintColor","tintOpacity","mediaImage2","imageFocal2","imageFocal2Phone","tintColor2","tintOpacity2"],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[O,{field:"videoSource",is:"upload",default:L}]},youtubeUrl:{all:[O,{field:"videoSource",is:"youtube",default:L}]},mediaLayout:{all:[_,{not:{context:"device",is:"mobile"}}]},mediaLayoutPhone:{all:[_,{context:"device",is:"mobile"}]}},fallback:"image"})};export{z as HeroSingleFields};
1
+ import{jsx as o}from"react/jsx-runtime";import{ImageIcon as b,ImagesIcon as c,MediaIcon as f,MediaLayoutSideBySideIcon as E,MediaLayoutStackedIcon as P,OpacityIcon as m}from"efficient-easel/icons";import{colorInput as g,focusKeptField as i,MEDIA_TYPE_OPTIONS as S,upload as a}from"../../../controls.js";import{group as t,phoneTwinFields as h}from"efficient-easel/screen/lib/document/box-fields";import{segmented as l,slider as d}from"../../../box-fields.js";import{MEDIA_LAYOUT_DEFAULT as n,MEDIA_LAYOUT_LABELS as p,MEDIA_LAYOUTS as y,resolvePhoneLayout as v}from"../../../../../../format/lib/hero-media-layout.js";import{deviceNote as U}from"efficient-easel/screen/lib/document/device-fields";import{HERO_OVERLAY_ROWS as u,HERO_VIDEO_ROWS as r}from"../../hero-shared-fields.js";import{heightField as s,slotNoticeField as A}from"../../shared-fields.js";import{forMediaType as F,heroMediaFields as D,VIDEO_FILE_LABEL as M,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{VIDEO_SOURCE_DEFAULT as I}from"../../../../../../format/lib/hero-video.js";const L=F("video","image"),T=F("image","image"),O={one:o(b,{}),side:o(E,{}),stacked:o(P,{})};import{HeroSingleSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{DEFAULT_TINT as _}from"../../../../../../format/lib/content/tint.js";const z={fields:D({_dDevice:U(),boxNotice:A("HeroSingle"),boxes:C.boxes,_gStyle:t("Style"),overlay:d("Overlay",o(m,{}),0,100,5,100,"%"),overlayColor:u.overlayColor,overlayPosition:u.overlayPosition,_gLayout:t("Layout"),heightDesktop:s("desktop"),heightMobile:s("mobile"),_gMedia:t("Media"),mediaType:l("Type",o(f,{}),S,"image"),mediaLayout:l("Layout",o(c,{}),y.map(e=>({label:p[e],value:e,picture:O[e]})),n),mediaLayoutPhone:h("mediaLayout",l("Layout",o(c,{}),y.map(e=>({label:p[e],value:e,picture:O[e]})),n,{phoneRest:e=>v(void 0,e)})).mediaLayoutPhone,mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:i(),imageFocalTablet:i(),imageFocalPhone:i(),videoSource:r.videoSource,mediaVideo:a(M,"video/*",k),youtubeUrl:r.youtubeUrl,videoPlayback:r.videoPlayback,poster:a("Video poster","image/*","Upload a poster still"),_gTint:t("Image tint"),tintColor:g("Tint color",_),tintOpacity:d("Tint opacity",o(m,{}),0,100,5,0,"%"),mediaImage2:a("Background image","image/*","Upload a background image",{focus:"imageFocal2"}),imageFocal2:i(),imageFocal2Tablet:i(),imageFocal2Phone:i(),tintColor2:g("Tint color",_),tintOpacity2:d("Tint opacity",o(m,{}),0,100,5,0,"%")},{parts:{media:["mediaType","mediaLayout","mediaLayoutPhone","videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:["mediaImage","imageFocal","imageFocalTablet","imageFocalPhone","tintColor","tintOpacity"],image2:["mediaImage2","imageFocal2","imageFocal2Tablet","imageFocal2Phone","tintColor2","tintOpacity2"]},onlyFor:{image:["mediaImage","imageFocal","imageFocalTablet","imageFocalPhone","_gTint","tintColor","tintOpacity","mediaImage2","imageFocal2","imageFocal2Tablet","imageFocal2Phone","tintColor2","tintOpacity2"],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[L,{field:"videoSource",is:"upload",default:I}]},youtubeUrl:{all:[L,{field:"videoSource",is:"youtube",default:I}]},mediaLayout:{all:[T,{not:{context:"device",is:"mobile"}}]},mediaLayoutPhone:{all:[T,{context:"device",is:"mobile"}]}},fallback:"image"})};export{z as HeroSingleFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{BlockVideoIcon as c,ClockIcon as p,ImageIcon as g,MediaIcon as s,OpacityIcon as u,PlayIcon as v}from"efficient-easel/icons";import{colorInput as f,focusKeptField as i,loadingShowsField as I,MEDIA_TYPE_OPTIONS as y,plainText as _,text as S,upload as a,withIdentifier as O,withPanelOnly as m}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{segmented as E,slider as t}from"../../../box-fields.js";import{LOADING_SHOWS_IMAGE as F,VIDEO_PLAYBACK_DEFAULT as P,VIDEO_SOURCE_DEFAULT as l}from"../../../../../../format/lib/hero-video.js";import{HERO_SLIDE_OVERLAY_ROWS as n,HERO_VIDEO_ROWS as d}from"../../hero-shared-fields.js";import{PH as T}from"../../../../../../format/lib/document/blocks/placeholders.js";import{slotNoticeField as b}from"../../shared-fields.js";import{forMediaType as L,heroMediaFields as D,VIDEO_FILE_LABEL as h,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{DEFAULT_TINT as A}from"../../../../../../format/lib/content/tint.js";import{HeroSlideSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";const r=L("video","video"),G={fields:D({_gContent:o("Content"),name:m(O(_("Slide name",T.slideName))),process:m(S("Reel label","Label")),groupNotice:b("HeroSlide"),groups:C.groups,_gMedia:o("Media"),mediaType:E("Type",e(s,{}),y,"video"),videoSource:d.videoSource,mediaVideo:a(h,"video/*",k,{frame:"videoFrame"}),youtubeUrl:d.youtubeUrl,videoPlayback:d.videoPlayback,videoSpeed:t("Playback speed",e(v,{}),25,100,5,100,"%"),loadingShows:I("Show while loading",e(p,{}),{frame:e(c,{}),image:e(g,{})}),videoFrame:i(),mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:i(),imageFocalPhone:i(),poster:a("Image","image/*","Choose an image"),_gTint:o("Image tint"),tintColor:f("Tint color",A),overlay:t("Tint",e(u,{}),0,100,5,0,"%"),_gOverlay:o("Overlay"),overlayColor:n.overlayColor,overlayPosition:n.overlayPosition},{onlyFor:{image:["mediaImage","imageFocal","imageFocalPhone","_gTint","tintColor","overlay"],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:"video",rules:{mediaVideo:{all:[r,{field:"videoSource",is:"upload",default:l}]},youtubeUrl:{all:[r,{field:"videoSource",is:"youtube",default:l}]},videoSpeed:{all:[r,{field:"videoSource",is:"upload",default:l},{field:"videoPlayback",is:"background",default:P}]},poster:{all:[{field:"mediaType",is:"video",default:"video"},F]}}})};export{G as HeroSlideFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{BlockVideoIcon as n,ClockIcon as g,ImageIcon as p,MediaIcon as s,OpacityIcon as u,PlayIcon as v}from"efficient-easel/icons";import{colorInput as f,focusKeptField as o,loadingShowsField as I,MEDIA_TYPE_OPTIONS as y,plainText as _,text as S,upload as a,withIdentifier as O,withPanelOnly as m}from"../../../controls.js";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{segmented as F,slider as t}from"../../../box-fields.js";import{LOADING_SHOWS_IMAGE as E,VIDEO_PLAYBACK_DEFAULT as T,VIDEO_SOURCE_DEFAULT as l}from"../../../../../../format/lib/hero-video.js";import{HERO_SLIDE_OVERLAY_ROWS as c,HERO_VIDEO_ROWS as d}from"../../hero-shared-fields.js";import{PH as P}from"../../../../../../format/lib/document/blocks/placeholders.js";import{slotNoticeField as b}from"../../shared-fields.js";import{forMediaType as L,heroMediaFields as D,VIDEO_FILE_LABEL as h,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{DEFAULT_TINT as A}from"../../../../../../format/lib/content/tint.js";import{HeroSlideSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";const r=L("video","video"),G={fields:D({_gContent:i("Content"),name:m(O(_("Slide name",P.slideName))),process:m(S("Reel label","Label")),groupNotice:b("HeroSlide"),groups:C.groups,_gMedia:i("Media"),mediaType:F("Type",e(s,{}),y,"video"),videoSource:d.videoSource,mediaVideo:a(h,"video/*",k,{frame:"videoFrame"}),youtubeUrl:d.youtubeUrl,videoPlayback:d.videoPlayback,videoSpeed:t("Playback speed",e(v,{}),25,100,5,100,"%"),loadingShows:I("Show while loading",e(g,{}),{frame:e(n,{}),image:e(p,{})}),videoFrame:o(),mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:o(),imageFocalTablet:o(),imageFocalPhone:o(),poster:a("Image","image/*","Choose an image"),_gTint:i("Image tint"),tintColor:f("Tint color",A),overlay:t("Tint",e(u,{}),0,100,5,0,"%"),_gOverlay:i("Overlay"),overlayColor:c.overlayColor,overlayPosition:c.overlayPosition},{onlyFor:{image:["mediaImage","imageFocal","imageFocalTablet","imageFocalPhone","_gTint","tintColor","overlay"],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:"video",rules:{mediaVideo:{all:[r,{field:"videoSource",is:"upload",default:l}]},youtubeUrl:{all:[r,{field:"videoSource",is:"youtube",default:l}]},videoSpeed:{all:[r,{field:"videoSource",is:"upload",default:l},{field:"videoPlayback",is:"background",default:T}]},poster:{all:[{field:"mediaType",is:"video",default:"video"},E]}}})};export{G as HeroSlideFields};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{IMAGE_FIT_ROW_LABEL as t,imageFitOptions as a,imageIsCropped as m,parseImageFit as s}from"../../../../../../format/lib/content/image-fit.js";import{ImageIcon as c}from"efficient-easel/icons";import{focusKeptField as r,imageCornersField as f,linkField as p,plainText as d,cornerSidesField as g,upload as n,withPanelOnly as F}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{select as u}from"../../../box-fields.js";import{photographyToggle as h}from"../../shared-fields.js";import{CARD_ROW_FACTS as I,cardRowField as _,cardRowFields as v}from"../../../card-row-fields.js";import{offerNextPicture as S}from"../../../../animation/hover-fields.js";import{darkenFields as A}from"../../../darken-fields.js";const L={fields:{_gImage:l("Image"),src:n("Image","image/*",void 0,{focus:"focal",focusWhen:e=>m(e.aspect,s(e.fit,"cover"))}),alt:F(d("Alt text")),rowField:_("Shows","image"),aspect:{type:"select",label:"Aspect ratio",options:[{label:"Auto",value:"auto"},{label:"21 : 9",value:"21/9"},{label:"16 : 9",value:"16/9"},{label:"4 : 3",value:"4/3"},{label:"1 : 1",value:"1/1"}]},fit:u(t,i(c,{}),a(),"cover"),focal:r(),focalPhone:r(),href:p("Link"),_gStyle:l("Style"),grayscale:h(),...A(),_gShape:l("Shape"),corners:f(),cornerSides:g()},resolveFields:(e,o)=>S(v(o.fields,e,o),e,o),showWhenFacts:I};export{L as ImageBlockFields};
1
+ import{jsx as i}from"react/jsx-runtime";import{IMAGE_FIT_ROW_LABEL as f,imageFitOptions as p}from"../../../../../../format/lib/content/image-fit.js";import{FILL_ROW_OPTION as c,imageFocalPointActsIn as n,imageAspectPhoneRest as d}from"../../../../../../format/lib/content/image-aspect.js";import{phoneKey as g}from"efficient-easel/draw";import{CropIcon as m,ImageIcon as h}from"efficient-easel/icons";import{BOX_SHAPES as l}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as a}from"../../../../../../format/lib/content/gallery-card-layout.js";import{fillRowCell as F,shapePickerRow as s}from"../../../shape-picker.js";import{focusKeptField as r,imageCornersField as I,linkField as _,plainText as R,cornerSidesField as w,upload as A,withPanelOnly as S}from"../../../controls.js";import{group as t,phoneTwinFields as u}from"efficient-easel/screen/lib/document/box-fields";import{select as O}from"../../../box-fields.js";import{photographyToggle as P}from"../../shared-fields.js";import{CARD_ROW_FACTS as T,cardRowField as x,cardRowFields as y}from"../../../card-row-fields.js";import{offerNextPicture as L}from"../../../../animation/hover-fields.js";import{darkenFields as k}from"../../../darken-fields.js";const z={fields:{_gImage:t("Image"),src:A("Image","image/*",void 0,{focus:"focal",focusWhen:(e,o)=>n(o,e.fit,e.aspect,e[g("aspect")])}),alt:S(R("Alt text")),rowField:x("Shows","image"),...u("aspect",s("Aspect ratio",i(m,{}),a(l),"image","16/9",{more:[F(c)]}),void 0,{phoneRow:s("Aspect ratio",i(m,{}),a(l),"image","16/9",{phoneRest:d})}),fit:O(f,i(h,{}),p(),"cover"),focal:r(),focalTablet:r(),focalPhone:r(),href:_("Link"),_gStyle:t("Style"),grayscale:P(),...k(),_gShape:t("Shape"),corners:I(),cornerSides:w()},resolveFields:(e,o)=>L(y(o.fields,e,o),e,o),showWhenFacts:T};export{z as ImageBlockFields};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{CaseIcon as c,OpacityIcon as b,PlacementIcon as u,StickyIcon as y,TextLinesIcon as m}from"efficient-easel/icons";import{colorInput as n,sizeField as r,text as k,textarea as s,toggle as p,upload as d}from"../../../controls.js";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{select as _,slider as l}from"../../../box-fields.js";import{deviceField as e,deviceNote as x}from"efficient-easel/screen/lib/document/device-fields";import{DEFAULT_INTRO_BLEED_LAYOUT as T,INTRO_BLEED_COPY_SHARE as o,INTRO_BLEED_LAYOUT_OPTIONS as f}from"../../../../../../format/lib/sections/intro-bleed-layout.js";import{heightField as g,ctaField as h}from"../../shared-fields.js";import{INTRO_PH as a}from"../../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";const F={fields:{_dDevice:x(),_gContent:i("Content"),eyebrow:k("Eyebrow",a.eyebrow),title:s("Heading",a.title),body:s("Subtitle",a.body),uppercase:p("Uppercase heading",!1,t(c,{})),_gBackground:i("Background images"),imageSrc:e("desktop",d("Background image","image/*")),imageSrcMobile:e("mobile",d("Background image","image/*")),_gLayout:i("Layout"),layout:_("Text position",t(u,{}),f,T),heightDesktop:g("desktop"),heightMobile:g("mobile"),copyShareDesktop:e("desktop",l("Text height",t(m,{}),o.min,o.max,o.step,o.desktop,"%")),copyShareMobile:e("mobile",l("Text height",t(m,{}),o.min,o.max,o.step,o.mobile,"%")),sticky:p("Stick to top",!0,t(y,{})),overlay:l("Overlay",t(b,{}),0,100,5,60,"%"),_gTextDesktop:e("desktop",i("Text style")),titleSizeDesktop:e("desktop",r("Heading font size",32,120,1,96,"heading")),bodySizeDesktop:e("desktop",r("Subtitle font size",12,28,1,17,"body")),_gTextMobile:e("mobile",i("Text style")),titleSizeMobile:e("mobile",r("Heading font size",24,72,1,44,"heading")),bodySizeMobile:e("mobile",r("Subtitle font size",12,22,1,16,"body")),_gButton:i("Button"),...h,buttonColor:n("Button color","#C9A461"),buttonTextColor:n("Button text color","#000000")}};export{F as IntroBleedFields};
1
+ import{jsx as t}from"react/jsx-runtime";import{CaseIcon as b,OpacityIcon as u,PlacementIcon as _,StickyIcon as y,TextLinesIcon as n}from"efficient-easel/icons";import{colorInput as p,sizeField as r,text as k,textarea as s,toggle as d,upload as c}from"../../../controls.js";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as T,slider as l}from"../../../box-fields.js";import{INTRO_BLEED_PICTURES as x,LONG_WORD_CELL as f}from"../../../choice-pictures.js";import{deviceField as e,deviceNote as S}from"efficient-easel/screen/lib/document/device-fields";import{DEFAULT_INTRO_BLEED_LAYOUT as h,INTRO_BLEED_COPY_SHARE as o,INTRO_BLEED_LAYOUT_OPTIONS as I}from"../../../../../../format/lib/sections/intro-bleed-layout.js";import{heightField as g,ctaField as O}from"../../shared-fields.js";import{INTRO_PH as m}from"../../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";const M={fields:{_dDevice:S(),_gContent:i("Content"),eyebrow:k("Eyebrow",m.eyebrow),title:s("Heading",m.title),body:s("Subtitle",m.body),uppercase:d("Uppercase heading",!1,t(b,{})),_gBackground:i("Background images"),imageSrc:e("desktop",c("Background image","image/*")),imageSrcMobile:e("mobile",c("Background image","image/*")),_gLayout:i("Layout"),layout:T("Text position",t(_,{}),I.map(a=>({...a,picture:x[a.value]})),h,{columns:2,cell:f}),heightDesktop:g("desktop"),heightMobile:g("mobile"),copyShareDesktop:e("desktop",l("Text height",t(n,{}),o.min,o.max,o.step,o.desktop,"%")),copyShareMobile:e("mobile",l("Text height",t(n,{}),o.min,o.max,o.step,o.mobile,"%")),sticky:d("Stick to top",!0,t(y,{})),overlay:l("Overlay",t(u,{}),0,100,5,60,"%"),_gTextDesktop:e("desktop",i("Text style")),titleSizeDesktop:e("desktop",r("Heading font size",32,120,1,96,"heading")),bodySizeDesktop:e("desktop",r("Subtitle font size",12,28,1,17,"body")),_gTextMobile:e("mobile",i("Text style")),titleSizeMobile:e("mobile",r("Heading font size",24,72,1,44,"heading")),bodySizeMobile:e("mobile",r("Subtitle font size",12,22,1,16,"body")),_gButton:i("Button"),...O,buttonColor:p("Button color","#C9A461"),buttonTextColor:p("Button text color","#000000")}};export{M as IntroBleedFields};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{BlackAndWhiteIcon as a,ColumnsIcon as r,HeightIcon as s,PaddingYIcon as i,StylesIcon as m}from"efficient-easel/icons";import{plainText as n,textarea as g,toggle as d,upload as O,withPanelOnly as _}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{select as p,slider as t}from"../../../box-fields.js";import{DEFAULT_LOGO_LOOK as c,LOGO_LOOK_OPTIONS as S}from"../../../../../../format/lib/sections/logo-look.js";import{HEAD_ROWS_SHOW_WHEN as y,OWN_BOX_ROWS_SHOW_WHEN as L}from"../../../../../../format/lib/sections/section-head-placement.js";import{withRowRules as f}from"../../../../../../render/lib/document/show-when.js";import{LogosSlots as h}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const W=["items","heading","bandPadding"],u=["look"],k={fields:f({_gContent:l("Content"),heading:g("Heading","Trusted by *teams worldwide*"),items:{type:"array",label:"Logos",arrayFields:{src:O("Image","image/*"),alt:_(n("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:h.logos,_gStyle:l("Style"),columns:t("Columns",o(r,{}),3,6,1,5),logoHeight:t("Logo height",o(s,{}),20,72,2,28,"px"),bandPadding:t("Space above and below",o(i,{}),16,120,4,40,"px"),grayscale:d("Black and white logos",!0,o(a,{})),look:p("Logo style",o(m,{}),S,c)},[[W,y],[u,L]])};export{k as LogosFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as a,ColumnsIcon as r,HeightIcon as i,PaddingYIcon as m,StylesIcon as n}from"efficient-easel/icons";import{plainText as s,textarea as g,toggle as O,upload as d,withPanelOnly as _}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as c,slider as t}from"../../../box-fields.js";import{LAYOUT_CELL as p,LOGO_LOOK_PICTURES as L}from"../../../choice-pictures.js";import{DEFAULT_LOGO_LOOK as S,LOGO_LOOK_OPTIONS as u}from"../../../../../../format/lib/sections/logo-look.js";import{HEAD_ROWS_SHOW_WHEN as f,OWN_BOX_ROWS_SHOW_WHEN as y}from"../../../../../../format/lib/sections/section-head-placement.js";import{withRowRules as h}from"../../../../../../render/lib/document/show-when.js";import{LogosSlots as I}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const W=["items","heading","bandPadding"],H=["look"],B={fields:h({_gContent:l("Content"),heading:g("Heading","Trusted by *teams worldwide*"),items:{type:"array",label:"Logos",arrayFields:{src:d("Image","image/*"),alt:_(s("Name / alt"))},getItemSummary:o=>o.alt||o.src||"logo"},logos:I.logos,_gStyle:l("Style"),columns:t("Columns",e(r,{}),3,6,1,5),logoHeight:t("Logo height",e(i,{}),20,72,2,28,"px"),bandPadding:t("Space above and below",e(m,{}),16,120,4,40,"px"),grayscale:O("Black and white logos",!0,e(a,{})),look:c("Logo style",e(n,{}),u.map(o=>({...o,picture:L[o.value]})),S,{columns:2,cell:p})},[[W,f],[H,y]])};export{B as LogosFields};
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import{BlockColumnIcon as i,PlacementIcon as c,StateIcon as s,TemplateIcon as d,TextLinesIcon as m}from"efficient-easel/icons";import{plainText as l,text as e,textarea as u,textList as o}from"../../../controls.js";import{group as r}from"efficient-easel/screen/lib/document/box-fields";import{select as n}from"../../../box-fields.js";import{withMockupVariantRules as b,MOCKUP_DEFAULT_VARIANT as p,MOCKUP_VARIANT_OPTIONS as y}from"../../../../../../format/lib/document/mockup-variant-fields.js";const h={fields:b({_gContent:r("Content"),eyebrow:e("Chip label","In the product"),title:u("Heading",`Seen from
2
- *the counter.*`),body:u("Body",""),_gCard:r("Mockup card"),variant:n("Card type",t(d,{}),y,p),cardHeader:e("Card header strip","Product record"),badge:e("Header badge","LIVE"),cardTitle:e("Card title",""),cardSubtitle:e("Card subtitle",""),pills:{type:"array",label:"Selector pills",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:a=>[a?.label,a?.value].filter(Boolean).join(" ")||"Pill"},tiles:{type:"array",label:"Spec tiles",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:a=>[a?.label,a?.value].filter(Boolean).join(" ")||"Tile"},rows:{type:"array",label:"Result / order rows",arrayFields:{lead:l("Lead"),detail:l("Detail"),state:n("State",t(s,{}),[{label:"Match / done (green)",value:"ok"},{label:"In progress (accent)",value:"warn"},{label:"No match (gray ✕)",value:"no"}],"ok"),status:l("Status chip")},defaultItemProps:{lead:"",detail:"",state:"ok",status:""},getItemSummary:a=>[a?.lead,a?.detail].filter(Boolean).join(" · ")||"Row"},button:e("Accent button",""),footnote:e("Accent footnote",""),_gKanban:r("Kanban columns"),col1Title:e("Column 1 title",""),col1Cards:o("Column 1 cards",t(i,{}),"Job card label","verbatim"),col2Title:e("Column 2 title",""),col2Cards:o("Column 2 cards",t(i,{}),"Job card label","verbatim"),col3Title:e("Column 3 title",""),col3Cards:o("Column 3 cards",t(i,{}),"Job card label","verbatim"),col4Title:e("Column 4 title",""),col4Cards:o("Column 4 cards",t(i,{}),"Job card label","verbatim"),_gClaims:r("Claims bars"),barsHeading:e("Bars heading","Defect rate by product"),bars:{type:"array",label:"Bars",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:a=>[a?.label,a?.value].filter(Boolean).join(" · ")||"Bar"},_gTerminal:r("Terminal"),termLines:o("Terminal lines",t(m,{}),"$ efficient …","verbatim"),_gBrowser:r("Browser mock"),urlText:e("URL pill",""),heroTitle:e("Hero line",""),heroButton:e("Hero button",""),products:{type:"array",label:"Product tiles",arrayFields:{name:l("Name"),price:l("Price")},defaultItemProps:{name:"",price:""},getItemSummary:a=>[a?.name,a?.price].filter(Boolean).join(" · ")||"Tile"},_gStyle:r("Style"),align:n("Mockup position",t(c,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")})};export{h as MockupFields};
1
+ import{jsx as t}from"react/jsx-runtime";import{BlockColumnIcon as i,PlacementIcon as m,StateIcon as s,TemplateIcon as c,TextLinesIcon as d}from"efficient-easel/icons";import{plainText as l,text as a,textarea as n,textList as o}from"../../../controls.js";import{group as r}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as b,select as u}from"../../../box-fields.js";import{LAYOUT_CELL as p,MOCKUP_PICTURES as y}from"../../../choice-pictures.js";import{withMockupVariantRules as C,MOCKUP_DEFAULT_VARIANT as f,MOCKUP_VARIANT_OPTIONS as g}from"../../../../../../format/lib/document/mockup-variant-fields.js";const L={fields:C({_gContent:r("Content"),eyebrow:a("Chip label","In the product"),title:n("Heading",`Seen from
2
+ *the counter.*`),body:n("Body",""),_gCard:r("Mockup card"),variant:b("Card type",t(c,{}),g.map(e=>({...e,picture:y[e.value]})),f,{columns:3,cell:p}),cardHeader:a("Card header strip","Product record"),badge:a("Header badge","LIVE"),cardTitle:a("Card title",""),cardSubtitle:a("Card subtitle",""),pills:{type:"array",label:"Selector pills",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Pill"},tiles:{type:"array",label:"Spec tiles",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Tile"},rows:{type:"array",label:"Result / order rows",arrayFields:{lead:l("Lead"),detail:l("Detail"),state:u("State",t(s,{}),[{label:"Match / done (green)",value:"ok"},{label:"In progress (main)",value:"warn"},{label:"No match (gray ✕)",value:"no"}],"ok"),status:l("Status chip")},defaultItemProps:{lead:"",detail:"",state:"ok",status:""},getItemSummary:e=>[e?.lead,e?.detail].filter(Boolean).join(" · ")||"Row"},button:a("Button",""),footnote:a("Footnote",""),_gKanban:r("Kanban columns"),col1Title:a("Column 1 title",""),col1Cards:o("Column 1 cards",t(i,{}),"Job card label","verbatim"),col2Title:a("Column 2 title",""),col2Cards:o("Column 2 cards",t(i,{}),"Job card label","verbatim"),col3Title:a("Column 3 title",""),col3Cards:o("Column 3 cards",t(i,{}),"Job card label","verbatim"),col4Title:a("Column 4 title",""),col4Cards:o("Column 4 cards",t(i,{}),"Job card label","verbatim"),_gClaims:r("Claims bars"),barsHeading:a("Bars heading","Defect rate by product"),bars:{type:"array",label:"Bars",arrayFields:{label:l("Label"),value:l("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" · ")||"Bar"},_gTerminal:r("Terminal"),termLines:o("Terminal lines",t(d,{}),"$ efficient …","verbatim"),_gBrowser:r("Browser mock"),urlText:a("URL pill",""),heroTitle:a("Hero line",""),heroButton:a("Hero button",""),products:{type:"array",label:"Product tiles",arrayFields:{name:l("Name"),price:l("Price")},defaultItemProps:{name:"",price:""},getItemSummary:e=>[e?.name,e?.price].filter(Boolean).join(" · ")||"Tile"},_gStyle:r("Style"),align:u("Mockup position",t(m,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")})};export{L as MockupFields};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{darkenFields as m}from"../../../darken-fields.js";import{POST_CARD_HEIGHT as e,POST_CARD_LAYOUT_FALLBACK as l,POST_CARD_LAYOUTS as n}from"../../../../../../format/lib/post-card-layout.js";import c from"../../../../../components/BlogPostSource.js";import{HeightIcon as s,ImageIcon as p,LayoutIcon as d}from"efficient-easel/icons";import{NOT_BOUND_TO_POST as g,linkField as O,sourceField as _,text as r,textarea as i,toggle as C,upload as f}from"../../../controls.js";import{group as T}from"efficient-easel/screen/lib/document/box-fields";import{placementField as u,select as h,slider as x}from"../../../box-fields.js";import{withRowRules as R}from"../../../../../../render/lib/document/show-when.js";import{POSTCARD_PH as t}from"../../../../../../format/lib/document/blocks/general/PostCard/meta.js";const a={field:"layout",is:"cover"},S={not:a},L=["placement","darken","darkenStyle","minHeight","_gTint"],y=["showCover"],A=["image","title","excerpt","href"],B={fields:R({source:_(c),image:f("Cover image","image/*"),title:i("Heading",t.title),excerpt:i("Excerpt",t.excerpt),href:O("Link"),category:r("Category",t.category),date:r("Date",t.date),readLabel:r("Read time",t.readLabel),layout:h("Card layout",o(d,{}),n,l),showCover:C("Show cover image",!0,o(p,{})),placement:u("Text position"),minHeight:x("Card height",o(s,{}),e.min,e.max,e.step,e.fallback,e.unit),_gTint:T("Image tint"),...m()},[[L,a],[y,S],[A,g]])};export{B as PostCardFields};
1
+ import{jsx as o}from"react/jsx-runtime";import{darkenFields as l}from"../../../darken-fields.js";import{POST_CARD_HEIGHT as e,POST_CARD_LAYOUT_FALLBACK as c,POST_CARD_LAYOUTS as n}from"../../../../../../format/lib/post-card-layout.js";import p from"../../../../../components/BlogPostSource.js";import{HeightIcon as s,ImageIcon as _,LayoutIcon as O}from"efficient-easel/icons";import{NOT_BOUND_TO_POST as d,linkField as g,sourceField as C,text as r,textarea as a,toggle as T,upload as f}from"../../../controls.js";import{group as u}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as R,placementField as L,slider as S}from"../../../box-fields.js";import{LONG_WORD_CELL as h,POST_CARD_PICTURES as x}from"../../../choice-pictures.js";import{withRowRules as P}from"../../../../../../render/lib/document/show-when.js";import{POSTCARD_PH as t}from"../../../../../../format/lib/document/blocks/general/PostCard/meta.js";const m={field:"layout",is:"cover"},D={not:m},A=["placement","darken","darkenStyle","minHeight","_gTint"],E=["showCover"],y=["image","title","excerpt","href"],Y={fields:P({source:C(p),image:f("Cover image","image/*"),title:a("Heading",t.title),excerpt:a("Excerpt",t.excerpt),href:g("Link"),category:r("Category",t.category),date:r("Date",t.date),readLabel:r("Read time",t.readLabel),layout:R("Card layout",o(O,{}),n.map(i=>({...i,picture:x[i.value]})),c,{columns:2,cell:h}),showCover:T("Show cover image",!0,o(_,{})),placement:L("Text position"),minHeight:S("Card height",o(s,{}),e.min,e.max,e.step,e.fallback,e.unit),_gTint:u("Image tint"),...l()},[[A,m],[E,D],[y,d]])};export{Y as PostCardFields};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{HashIcon as n,StylesIcon as e}from"efficient-easel/icons";import{linkField as m,plainText as S,text as t,textarea as i,upload as E,withPanelOnly as _}from"../../../controls.js";import{group as r}from"efficient-easel/screen/lib/document/box-fields";import{segmented as O,select as l}from"../../../box-fields.js";import{DEFAULT_SECTION_NUMBER_STYLE as T,SECTION_NUMBER_STYLE_OPTIONS as p}from"../../../../../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_HEAD_STYLE as s,SECTION_HEAD_STYLE_OPTIONS as L,withHeadStyleRules as a}from"../../../../../../format/lib/sections/section-head-style.js";import{SECTION_EYEBROW_LOOK_OPTIONS as g,DEFAULT_SECTION_EYEBROW_LOOK as N}from"../../../../../../format/lib/sections/section-eyebrow-look.js";const H={fields:a({_gContent:r("Content"),headStyle:l("Style",o(e,{}),[...L],s),num:t("Number","01 / Section"),eyebrowLook:l("Eyebrow style",o(e,{}),[...g],N),numStyle:O("Number style",o(n,{}),[...p],T),title:i("Heading","Section *title*"),description:i("Body","Short supporting line"),linkText:t("Button","View all"),linkHref:m("Link"),_gLogo:r("Logo"),logoSrc:E("Logo image","image/*"),logoAlt:_(S("Logo alt text","Logo description"))})};export{H as SectionHeaderFields};
1
+ import{jsx as o}from"react/jsx-runtime";import{HashIcon as n,StylesIcon as t}from"efficient-easel/icons";import{linkField as m,plainText as E,text as i,textarea as r,upload as S,withPanelOnly as _}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as O,segmented as T,select as p}from"../../../box-fields.js";import{LAYOUT_CELL as L,SECTION_HEAD_PICTURES as a}from"../../../choice-pictures.js";import{DEFAULT_SECTION_NUMBER_STYLE as s,SECTION_NUMBER_STYLE_OPTIONS as c}from"../../../../../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_HEAD_STYLE as g,SECTION_HEAD_STYLE_OPTIONS as N,withHeadStyleRules as I}from"../../../../../../format/lib/sections/section-head-style.js";import{SECTION_EYEBROW_LOOK_OPTIONS as d,DEFAULT_SECTION_EYEBROW_LOOK as u}from"../../../../../../format/lib/sections/section-eyebrow-look.js";const k={fields:I({_gContent:l("Content"),headStyle:O("Style",o(t,{}),N.map(e=>({...e,picture:a[e.value]})),g,{columns:3,cell:L}),num:i("Number","01 / Section"),eyebrowLook:p("Eyebrow style",o(t,{}),[...d],u),numStyle:T("Number style",o(n,{}),[...c],s),title:r("Heading","Section *title*"),description:r("Body","Short supporting line"),linkText:i("Button","View all"),linkHref:m("Link"),_gLogo:l("Logo"),logoSrc:S("Logo image","image/*"),logoAlt:_(E("Logo alt text","Logo description"))})};export{k as SectionHeaderFields};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{ClockIcon as p,EyeIcon as d}from"efficient-easel/icons";import{backgroundField as c,copyText as u,plainTextarea as n,text as r,textarea as m,toggle as y,upload as T}from"../../../controls.js";import{group as s,section as a}from"efficient-easel/screen/lib/document/box-fields";import{select as b}from"../../../box-fields.js";import{ctaField as f,innerSpacingFields as I}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as _}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{withRowRules as k}from"../../../../../../render/lib/document/show-when.js";import{TIMELINE_PH as e}from"../../../../../../format/lib/document/blocks/general/Timeline/meta.js";const g={field:"layout",is:"track"},C={not:g},M={fields:k({_dLayout:a("Layout"),layout:b("Display",l(d,{}),[{label:"Split (editorial aside)",value:"split"},{label:"Spine (single rail)",value:"spine"},{label:"Alternating (zig-zag)",value:"alternating"},{label:"Track (year rail)",value:"track"}],"split"),...I("Timeline"),_dDesign:a("Design"),background:c("Background color",_.TimelineTrack),_sHeader:a("Header"),_gContent:s("Content"),eyebrow:r("Eyebrow",e.eyebrow),title:m("Heading",e.title),intro:m("Intro",e.intro),imageSrc:T("Image","image/*"),imageCaption:r("Image caption",e.imageCaption),imageMeta:r("Image meta",e.imageMeta),_gButton:s("Button"),...f,_sEntries:a("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:u("Sub-title"),title:n("Title"),body:n("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:t=>t?.date||t?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],C],[["background"],g]]),resolveFields:(t,{fields:i})=>{if(t.props.layout!=="track")return i;const o=i.entries;return{...i,entries:{...o,arrayFields:{...o?.arrayFields,future:y("Upcoming",!1,l(p,{}))}}}}};export{M as TimelineFields};
1
+ import{jsx as l}from"react/jsx-runtime";import{ClockIcon as g,EyeIcon as u}from"efficient-easel/icons";import{backgroundField as d,copyText as y,plainTextarea as m,text as o,textarea as p,toggle as T,upload as I}from"../../../controls.js";import{group as s,section as i}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as b}from"../../../box-fields.js";import{LAYOUT_CELL as f,TIMELINE_PICTURES as r}from"../../../choice-pictures.js";import{ctaField as _,innerSpacingFields as k}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as E}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{withRowRules as C}from"../../../../../../render/lib/document/show-when.js";import{TIMELINE_PH as e}from"../../../../../../format/lib/document/blocks/general/Timeline/meta.js";const c={field:"layout",is:"track"},S={not:c},N={fields:C({_dLayout:i("Layout"),layout:b("Display",l(u,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:r.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:r.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:r.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:r.track}],"split",{columns:2,cell:f}),...k("Timeline"),_dDesign:i("Design"),background:d("Background color",E.TimelineTrack),_sHeader:i("Header"),_gContent:s("Content"),eyebrow:o("Eyebrow",e.eyebrow),title:p("Heading",e.title),intro:p("Intro",e.intro),imageSrc:I("Image","image/*"),imageCaption:o("Image caption",e.imageCaption),imageMeta:o("Image meta",e.imageMeta),_gButton:s("Button"),..._,_sEntries:i("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:y("Sub-title"),title:m("Title"),body:m("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:t=>t?.date||t?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],S],[["background"],c]]),resolveFields:(t,{fields:a})=>{if(t.props.layout!=="track")return a;const n=a.entries;return{...a,entries:{...n,arrayFields:{...n?.arrayFields,future:T("Upcoming",!1,l(g,{}))}}}}};export{N as TimelineFields};
@@ -1,6 +1,11 @@
1
1
  import type { ReactElement } from "react";
2
2
  import { toggle } from "../controls.js";
3
3
  export declare const heightField: (tier: "desktop" | "mobile") => import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
4
+ export declare function heroHeightFields(): {
5
+ heightDesktop: import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
6
+ heightTablet: import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
7
+ heightMobile: import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
8
+ };
4
9
  export declare const ctaField: {
5
10
  ctaText: import("../controls.js").CustomField<import("efficient-easel/draw").HidableValue>;
6
11
  ctaHref: import("../controls.js").CustomField<import("efficient-easel/draw").HidableValue>;
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{SECTION_PAD_INNER_DEFAULTS as i}from"../../../../render/lib/document/passes/section-padding.js";import n,{SlotNoticeField as p}from"../../../components/SlotChildRows.js";import{SECTION_HEIGHT as r}from"../../../../format/lib/content/section-height.js";import{usePreviewHeader as l}from"../../../../render/components/PreviewHeaderContext.js";import{IMAGE_GRAYSCALE_LABEL as m}from"../../../../format/lib/content/image-treatment.js";import{BlackAndWhiteIcon as a,ContrastIcon as d,HeightIcon as c,TypeIcon as s}from"efficient-easel/icons";import{linkField as u,spacingFields as f,text as g,toggle as x}from"../controls.js";import{segmented as h,slider as y}from"../box-fields.js";import{deviceField as F}from"efficient-easel/screen/lib/document/device-fields";import{FieldGlyph as T}from"../../../components/FieldGlyph.js";import{fieldNoun as I}from"../../../../format/lib/document/field-noun.js";import{CTA_PH as A}from"../../../../format/lib/document/blocks/placeholders.js";const P=t=>F(t,y("Height",o(c,{}),r.min,r.max,r.step,r.fallback,r.unit)),D={ctaText:g("Button",A.text),ctaHref:u("Button link")},j=()=>h("Tone",o(d,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default"),M=t=>f({...i[t],keys:{top:"padTop",bottom:"padBottom"},group:!1}),O=(t,e)=>({type:"custom",render:()=>o(n,{parentType:t,label:e})}),K=t=>({type:"custom",render:()=>o(p,{parentType:t})});function E(t){const{photographyGrayscale:e}=l();return x(m,e===!0,o(a,{})).render(t)}function U(){return{type:"custom",render:t=>o(E,{...t})}}function W(t){const e=I(t);return e?o(T,{noun:e}):o(s,{})}export{D as ctaField,P as heightField,M as innerSpacingFields,U as photographyToggle,K as slotNoticeField,O as slotRowsField,W as textKindGlyph,j as toneField};
1
+ import{jsx as o}from"react/jsx-runtime";import{SECTION_PAD_INNER_DEFAULTS as h}from"../../../../render/lib/document/passes/section-padding.js";import s,{SlotNoticeField as a}from"../../../components/SlotChildRows.js";import{SECTION_HEIGHT as i}from"../../../../format/lib/content/section-height.js";import{usePreviewHeader as d}from"../../../../render/components/PreviewHeaderContext.js";import{IMAGE_GRAYSCALE_LABEL as m}from"../../../../format/lib/content/image-treatment.js";import{BlackAndWhiteIcon as c,ContrastIcon as g,HeightIcon as u,TypeIcon as f}from"efficient-easel/icons";import{linkField as T,spacingFields as F,text as y,toggle as b}from"../controls.js";import{segmented as x,slider as _}from"../box-fields.js";import{deviceField as w}from"efficient-easel/screen/lib/document/device-fields";import{phoneTwinFields as n}from"efficient-easel/screen/lib/document/box-fields";import{FieldGlyph as k}from"../../../components/FieldGlyph.js";import{fieldNoun as E}from"../../../../format/lib/document/field-noun.js";import{CTA_PH as H}from"../../../../format/lib/document/blocks/placeholders.js";const l=e=>_("Height",o(u,{}),i.min,i.max,i.step,i.fallback,i.unit,e),j=e=>w(e,l()),p={read:e=>e.heightMobile,write:(e,t,r)=>({heightMobile:r}),fieldKey:()=>"heightMobile",ownField:!0,tablet:{read:e=>e.heightTablet,write:(e,t,r)=>({heightTablet:r}),fieldKey:()=>"heightTablet",ownField:!0}};function U(){const e=n("heightDesktop",l(),p),t=n("heightDesktop",l({clear:{phoneFollows:!1}}),p);return{heightDesktop:e.heightDesktop,heightTablet:e.heightTablet,heightMobile:t.heightMobile}}const W={ctaText:y("Button",H.text),ctaHref:T("Button link")},Y=()=>x("Tone",o(g,{}),[{label:"Default",value:"default"},{label:"Muted",value:"dim"}],"default"),q=e=>F({...h[e],keys:{top:"padTop",bottom:"padBottom"},group:!1}),z=(e,t)=>({type:"custom",render:()=>o(s,{parentType:e,label:t})}),J=e=>({type:"custom",render:()=>o(a,{parentType:e})});function I(e){const{photographyGrayscale:t}=d();return b(m,t===!0,o(c,{})).render(e)}function Q(){return{type:"custom",render:e=>o(I,{...e})}}function V(e){const t=E(e);return t?o(k,{noun:t}):o(f,{})}export{W as ctaField,j as heightField,U as heroHeightFields,q as innerSpacingFields,Q as photographyToggle,J as slotNoticeField,z as slotRowsField,V as textKindGlyph,Y as toneField};
@@ -1,5 +1,6 @@
1
1
  import { type ReactElement, type ReactNode } from "react";
2
2
  import { boxFieldBuilders, type BoxFieldSay } from "efficient-easel/screen/lib/document/box-fields";
3
+ import type { ShowWhenRule } from "efficient-shell/format";
3
4
  type Rows = ReturnType<typeof boxFieldBuilders>;
4
5
  export declare const rowSay: BoxFieldSay;
5
6
  export declare const slider: Rows["slider"];
@@ -19,18 +20,38 @@ export declare const placementField: Rows["placementField"];
19
20
  export declare const PlacementGridView: Rows["PlacementGridView"];
20
21
  export declare const positionFields: Rows["positionFields"];
21
22
  export declare const sidesPaddingFields: Rows["sidesPaddingFields"];
23
+ export declare function ShellIconWord({ value }: {
24
+ value: string;
25
+ }): string;
26
+ export declare function pickerCellIcon(picture: ReactNode, word: ReactNode, tooltip: ReactNode): ReactElement;
27
+ export declare function pickerNoneIcon(glyph: ReactNode, word: ReactNode): ReactElement;
22
28
  export declare function iconPickerRow<V extends string>(label: string, icon: ReactElement, options: readonly {
23
29
  label?: string;
30
+ hint?: string;
24
31
  value: V;
25
32
  picture: ReactNode;
33
+ showWhen?: ShowWhenRule;
26
34
  }[], fallback: V, extra?: {
27
- emptyValue?: V;
28
35
  resolve?: (stored: unknown) => V | undefined;
36
+ phoneRest?: (follows: unknown) => V | undefined;
37
+ columns?: number;
38
+ cell?: {
39
+ width: string;
40
+ height: string;
41
+ };
29
42
  }): {
30
- render: ({ value, onChange, field }: {
43
+ options: {
44
+ showWhen?: ShowWhenRule | undefined;
45
+ label?: string | undefined;
46
+ value: V;
47
+ }[];
48
+ render: (props: {
31
49
  value?: unknown;
32
50
  onChange: (v: V) => void;
33
51
  field?: object;
52
+ readOnly?: boolean;
53
+ follows?: unknown;
54
+ followsView?: "desktop" | "tablet";
34
55
  }) => import("react").FunctionComponentElement<import("efficient-easel/panel").SettingsFieldProps>;
35
56
  type: "custom";
36
57
  };
@@ -1 +1 @@
1
- import{createElement as m}from"react";import{SettingsField as g}from"efficient-easel/panel";import{boxFieldBuilders as b,describedAs as f,iconOf as v}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as y}from"efficient-shell/ui";import{say as i}from"../../../format/lib/editor-words.js";const w=o=>i(o),e=b(w),G=e.slider,J=e.select,W=e.Segmented,h=e.segmented,B=e.alignmentField,E=e.alignmentFields,I=e.blockAlignmentField,O=e.blockAlignmentFields,R=e.boxJustifyField,j=e.boxAlignField,q=e.boxWrapField,z=e.directionField,C=e.gapField,D=e.placementField,H=e.PlacementGridView,K=e.positionFields,L=e.sidesPaddingFields;function M(o,a,l,d,s={}){const c=t=>l.some(r=>r.value===t);return{type:"custom",...f({},{type:"radio",label:o,options:l.map(t=>t.label===void 0?{value:t.value}:{value:t.value,label:t.label})}),render:({value:t,onChange:r,field:F})=>{const x=l.map(n=>({value:n.value,...n.label===void 0?{}:{label:i(n.label)},icon:n.picture})),p=F?.currentValue,u=s.resolve?s.resolve(t)??d:c(t)?t:c(p)?p:d;return m(g,{label:i(o),icon:v(a)},m(y,{label:i(o),value:u,options:x,onChange:r,emptyValue:s.emptyValue}))}}}export{H as PlacementGridView,W as Segmented,B as alignmentField,E as alignmentFields,I as blockAlignmentField,O as blockAlignmentFields,j as boxAlignField,R as boxJustifyField,q as boxWrapField,z as directionField,C as gapField,M as iconPickerRow,D as placementField,K as positionFields,w as rowSay,h as segmented,J as select,L as sidesPaddingFields,G as slider};
1
+ import{createElement as t}from"react";import{SettingsDefaultReset as A,SettingsField as P}from"efficient-easel/panel";import{boxFieldBuilders as O,describedAs as R,iconOf as I,onDesktopWords as V}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as C,Tooltip as E,useShellStrings as G}from"efficient-shell/ui";import{editorEaselWords as L,say as i}from"../../../format/lib/editor-words.js";const h=o=>i(o),l=O(h),z=l.slider,K=l.select,M=l.Segmented,Q=l.segmented,U=l.alignmentField,X=l.alignmentFields,Z=l.blockAlignmentField,$=l.blockAlignmentFields,ee=l.boxJustifyField,ne=l.boxAlignField,le=l.boxWrapField,oe=l.directionField,te=l.gapField,ie=l.placementField,se=l.PlacementGridView,ce=l.positionFields,de=l.sidesPaddingFields,D={width:"3.5rem",height:"2.75rem"};function J({value:o}){return G().iconNames[o]??o}function B(o,s,c){return t(E,{content:c,className:"sf-pick-tip",children:t("span",{className:"sf-pick"},t("span",{className:"sf-pick-pic"},o),t("span",{className:"sf-pick-cap"},s))})}function ae(o,s){return t("span",{className:"sf-pick"},t("span",{className:"sf-pick-pic"},o),t("span",{className:"sf-pick-cap sf-pick-cap-closed"},s))}function re(o,s,c,f,d={}){const k=e=>c.some(a=>a.value===e),r=e=>d.resolve?d.resolve(e):k(e)?e:void 0,u=c.map(e=>({value:e.value,...e.label===void 0?{}:{label:e.label},...e.showWhen?{showWhen:e.showWhen}:{}}));return{type:"custom",...R({},{type:"radio",label:o,options:u}),options:u,render:e=>{const{value:a,onChange:m,field:F}=e,g=n=>n.label===void 0?t(J,{value:n.value}):i(n.label),x=F?.options,v=c.filter(n=>!x||x.some(W=>W.value===n.value)).map(n=>({value:n.value,...n.label===void 0?{}:{label:i(n.hint??n.label)},icon:B(n.picture,g(n),n.hint===void 0?g(n):i(n.hint))})),b="follows"in e,p=b?r(d.phoneRest?d.phoneRest(e.follows):e.follows)??f:void 0,N=F?.currentValue,y=r(a)??p??r(N)??f,S=a!=null&&a!=="",w=p===void 0?void 0:c.find(n=>n.value===p);return t(P,{label:i(o),icon:I(s),action:b?t(A,{words:L()?.panel,label:i(o),changed:S,detail:w?.label!==void 0?V(h,i(w.label),e.followsView):void 0,disabled:e.readOnly===!0,onReset:()=>m(void 0)}):void 0},t(C,{label:i(o),value:y,options:v,onChange:m,columns:d.columns,cell:d.cell??D,tooltips:!1,disabled:e.readOnly===!0}))}}}export{se as PlacementGridView,M as Segmented,J as ShellIconWord,U as alignmentField,X as alignmentFields,Z as blockAlignmentField,$ as blockAlignmentFields,ne as boxAlignField,ee as boxJustifyField,le as boxWrapField,oe as directionField,te as gapField,re as iconPickerRow,B as pickerCellIcon,ae as pickerNoneIcon,ie as placementField,ce as positionFields,h as rowSay,Q as segmented,K as select,de as sidesPaddingFields,z as slider};
@@ -0,0 +1,8 @@
1
+ export declare function boxPhoneOrderField(): {
2
+ type: "custom";
3
+ render: ({ value, onChange, readOnly }: {
4
+ value?: unknown;
5
+ onChange: (next: string[] | undefined) => void;
6
+ readOnly?: boolean;
7
+ }) => import("react").JSX.Element;
8
+ };
@@ -0,0 +1 @@
1
+ "use client";import{jsx as i}from"react/jsx-runtime";import{isNode as c}from"efficient-easel/data";import{useEasel as d}from"efficient-easel/easel";import{PhoneOrderField as p}from"efficient-easel/fields";import{slotChildRowName as a}from"efficient-easel/draw";import{deviceField as f}from"efficient-easel/screen/lib/document/device-fields";import{say as u}from"../../../format/lib/editor-words.js";import{nonEmptyString as h}from"../../../format/lib/non-empty-string.js";import{sourceRowName as b}from"../../../format/lib/document/source-row-name.js";import{stripMarkup as k}from"../../../format/lib/markup.js";function y(){try{const o=d(e=>e),r=o.config.components??{},n=o.selectedItem?.props?.content,t=Array.isArray(n)?n.filter(e=>!c(e)||typeof r[e.type]?.render!="function"?!1:h(e.props?.id)!==void 0):[],s=t.map(e=>e.props.id);return{blocks:t,ids:s,labelOf:e=>r[e]?.label??e}}catch{return null}}function O({value:o,onChange:r,readOnly:n}){const t=y();if(!t)return null;const{blocks:s,ids:e,labelOf:l}=t;return i(p,{stored:"ids",value:o,ids:e,onChange:r,readOnly:n,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:m=>a(s[m],l,k,void 0,b)})}function A(){return f("mobile",{type:"custom",render:({value:o,onChange:r,readOnly:n})=>i(O,{value:o,onChange:r,readOnly:n})})}export{A as boxPhoneOrderField};
@@ -1 +1 @@
1
- import{jsx as T}from"react/jsx-runtime";import{ListIcon as h}from"efficient-easel/icons";import{FieldGlyph as _}from"../../components/FieldGlyph.js";import{cardTemplateFieldsOf as A,cardTemplateOwner as x}from"../../../format/lib/content/card-template.js";import{blockSourcesRevision as C,declaredBlockSource as E}from"../../../format/lib/content/block-sources.js";import{select as g}from"./box-fields.js";import{withShowWhen as j}from"../../../format/lib/document/show-when-attach.js";const b="outsideCardTemplate",F={not:{context:b,is:!0}},W={[b]:(o,e)=>{const n=x(e.appState,o.props?.id);return n===void 0?void 0:n===null}};function B(o,e){const n=e==="link"?T(_,{noun:"link"}):T(h,{}),r={...g(o,n,[{label:"Typed here",value:""}],""),cardRowKind:e};return j(r,F)}function O(o){return!!(o&&typeof o=="object"&&"cardRowKind"in o)}const k=new WeakMap;function P(o,e,n){const r=Object.keys(o).filter(t=>O(o[t]));if(!r.length)return o;const i=e.props??{},c=x(n.appState,i.id),w=typeof c?.type=="string"?c.type:"",p=r.map(t=>typeof i[t]=="string"?i[t].trim():""),S=E(c?.props),f=`${w}\0${S}\0${C()}\0${p.join("\0")}`;let s=k.get(o);s||k.set(o,s=new Map);const y=s.get(f);if(y)return y;const l={...o};return r.forEach((t,u)=>{const d=o[t],R=w?A(c,d.cardRowKind):[],m=p[u]&&!R.some(a=>a.key===p[u])?p[u]:"";l[t]={...d,options:[...d.options,...R.map(a=>({label:a.label,value:a.key})),...m?[{label:m,value:m}]:[]]}}),s.set(f,l),l}export{W as CARD_ROW_FACTS,F as IN_CARD_TEMPLATE,b as OUTSIDE_CARD_TEMPLATE,B as cardRowField,P as cardRowFields};
1
+ import{jsx as x}from"react/jsx-runtime";import{ListIcon as A}from"efficient-easel/icons";import{FieldGlyph as C}from"../../components/FieldGlyph.js";import{cardTemplateFieldsOf as E,cardTemplateOwner as S}from"../../../format/lib/content/card-template.js";import{recordRowFields as h}from"../../../format/lib/content/record-row.js";import{recordTypesRevision as F}from"../../../format/lib/content/record-types.js";import{editorRecordType as O}from"../../../format/lib/document/editor-page-context.js";import{blockSourcesRevision as $,declaredBlockSource as j}from"../../../format/lib/content/block-sources.js";import{select as v}from"./box-fields.js";import{withShowWhen as D}from"../../../format/lib/document/show-when-attach.js";function b(o){const e=o?.data?.root,t=O(e?.props)??"";return t&&h(t,"text").length?t:""}const g="outsideCardTemplate",K={not:{context:g,is:!0}},H={[g]:(o,e)=>{const t=S(e.appState,o.props?.id);if(t!==void 0)return t===null&&!b(e.appState)}};function J(o,e){const t=e==="link"?x(C,{noun:"link"}):x(A,{}),n={...v(o,t,[{label:"Typed here",value:""}],""),cardRowKind:e};return D(n,K)}function M(o){return!!(o&&typeof o=="object"&&"cardRowKind"in o)}const k=new WeakMap;function Q(o,e,t){const n=Object.keys(o).filter(r=>M(o[r]));if(!n.length)return o;const l=e.props??{},p=S(t.appState,l.id),m=typeof p?.type=="string"?p.type:"",c=n.map(r=>typeof l[r]=="string"?l[r].trim():""),_=j(p?.props),f=p?"":b(t.appState),y=`${m}\0${_}\0${$()}\0${f}\0${F()}\0${c.join("\0")}`;let s=k.get(o);s||k.set(o,s=new Map);const T=s.get(y);if(T)return T;const i={...o};return n.forEach((r,a)=>{const d=o[r],w=m?E(p,d.cardRowKind):h(f,d.cardRowKind);if(!m&&f&&!w.length&&!c[a]){delete i[r];return}const R=c[a]&&!w.some(u=>u.key===c[a])?c[a]:"";i[r]={...d,options:[...d.options,...w.map(u=>({label:u.label,value:u.key})),...R?[{label:R,value:R}]:[]]}}),s.set(y,i),i}export{H as CARD_ROW_FACTS,K as IN_CARD_TEMPLATE,g as OUTSIDE_CARD_TEMPLATE,J as cardRowField,Q as cardRowFields};
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from "react";
2
+ import type { DividerStyle } from "../../../format/lib/sections/divider-style.js";
3
+ import type { SectionHeadStyle } from "../../../format/lib/sections/section-head-style.js";
4
+ export declare const CHART_PICTURES: Record<"bars" | "line" | "donut", ReactNode>;
5
+ export declare function dividerPicture(style: DividerStyle): ReactNode;
6
+ export declare const TAB_SHAPE_PICTURES: Record<"tabs" | "largeTabs", ReactNode>;
7
+ export declare const POST_CARD_PICTURES: Record<"card" | "cover", ReactNode>;
8
+ export declare const CARD_STYLE_PICTURES: Record<"cards" | "label-only", ReactNode>;
9
+ export declare const LOGO_LOOK_PICTURES: Record<"plain" | "cards", ReactNode>;
10
+ export declare const INTRO_BLEED_PICTURES: Record<"overlay" | "stacked", ReactNode>;
11
+ export declare const TIMELINE_PICTURES: Record<"split" | "spine" | "alternating" | "track", ReactNode>;
12
+ export declare const SECTION_HEAD_PICTURES: Record<SectionHeadStyle, ReactNode>;
13
+ export declare const MOCKUP_PICTURES: Record<"spec-card" | "fitment" | "portal" | "kanban" | "claims" | "browser" | "terminal", ReactNode>;
14
+ export declare const LAYOUT_CELL: {
15
+ readonly width: "5.75rem";
16
+ readonly height: "3.75rem";
17
+ };
18
+ export declare const LONG_WORD_CELL: {
19
+ readonly width: "8.5rem";
20
+ readonly height: "3.75rem";
21
+ };
@@ -0,0 +1 @@
1
+ import{jsx as t,jsxs as y}from"react/jsx-runtime";import{NoSymbolIcon as u}from"efficient-easel/icons";import{useId as p}from"react";import{STRIPE_GEOMETRY as E}from"../../../format/lib/sections/divider-style.js";const s=44,f=28;function e({children:n}){return t("svg",{width:s,height:f,viewBox:`0 0 ${s} ${f}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:n})}const x=({x:n,y:i,w:c,t:w=2,faint:a=!1})=>t("rect",{x:n,y:i,width:c,height:w,rx:w/2,stroke:"none",opacity:a?.45:1}),r=({x:n,y:i,w:c,h:w})=>t("rect",{x:n,y:i,width:c,height:w,rx:2,fill:"none"}),h=({x:n,y:i})=>t("circle",{cx:n,cy:i,r:1.75,stroke:"none"}),o=({x1:n,y1:i,x2:c,y2:w})=>t("line",{x1:n,y1:i,x2:c,y2:w}),k={bars:y(e,{children:[t(x,{x:8,y:14,w:5,t:10}),t(x,{x:16,y:8,w:5,t:16}),t(x,{x:24,y:18,w:5,t:6}),t(x,{x:32,y:11,w:5,t:13})]}),line:y(e,{children:[t("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),t(o,{x1:6,y1:25,x2:38,y2:25})]}),donut:y(e,{children:[t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function I(n){if(n==="none")return t("span",{style:{display:"flex",width:s,height:f,alignItems:"center",justifyContent:"center"},children:t(u,{size:20})});if(n==="line")return t(e,{children:t(o,{x1:4,y1:14,x2:40,y2:14})});const{ink:i,period:c}=E[n],w=.4,a=[];for(let l=-12;l<s;l+=c*w)a.push(t("polygon",{points:`${l},22 ${l+i*w},22 ${l+i*w+10},6 ${l+10},6`,stroke:"none"},l));return t(m,{children:a})}function m({children:n}){const i=`sf-div-${p().replace(/[^\w-]/g,"")}`;return y(e,{children:[t("clipPath",{id:i,children:t("rect",{x:4,y:6,width:36,height:16,rx:2})}),t("g",{clipPath:`url(#${i})`,children:n})]})}const d=({x:n,y:i,w:c,h:w})=>t("rect",{x:n,y:i,width:c,height:w,rx:2,stroke:"none",opacity:.3}),R={tabs:y(e,{children:[t(x,{x:5,y:10,w:9}),t(x,{x:18,y:10,w:9,faint:!0}),t(x,{x:31,y:10,w:9,faint:!0}),t(o,{x1:4,y1:17,x2:40,y2:17}),t(x,{x:4,y:16,w:11,t:2})]}),largeTabs:y(e,{children:[t(o,{x1:4,y1:5,x2:40,y2:5}),t(h,{x:7,y:10}),t(x,{x:11,y:9,w:16}),t(x,{x:31,y:9,w:9,faint:!0}),t(o,{x1:4,y1:14,x2:40,y2:14}),t(h,{x:7,y:19}),t(x,{x:11,y:18,w:13,faint:!0}),t(x,{x:31,y:18,w:9,faint:!0}),t(o,{x1:4,y1:23,x2:40,y2:23})]})},S={card:y(e,{children:[t(r,{x:10,y:3,w:24,h:22}),t(d,{x:12,y:5,w:20,h:10}),t(x,{x:13,y:18,w:16}),t(x,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:y(e,{children:[t(d,{x:10,y:3,w:24,h:22}),t(r,{x:10,y:3,w:24,h:22}),t(x,{x:13,y:17,w:16}),t(x,{x:13,y:21,w:11,t:1.5})]})},g={cards:y(e,{children:[t(r,{x:3,y:5,w:11,h:18}),t(r,{x:17,y:5,w:11,h:18}),t(r,{x:31,y:5,w:11,h:18}),t(x,{x:5,y:9,w:7}),t(x,{x:19,y:9,w:7}),t(x,{x:33,y:9,w:7}),t(x,{x:5,y:13,w:5,t:1.5,faint:!0}),t(x,{x:19,y:13,w:5,t:1.5,faint:!0}),t(x,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":y(e,{children:[t("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),t(x,{x:5,y:18,w:7}),t(x,{x:19,y:18,w:7}),t(x,{x:33,y:18,w:7})]})},L={plain:y(e,{children:[t(x,{x:5,y:12,w:9,t:4}),t(x,{x:18,y:12,w:9,t:4}),t(x,{x:31,y:12,w:9,t:4})]}),cards:y(e,{children:[t(r,{x:3,y:7,w:11,h:14}),t(r,{x:17,y:7,w:11,h:14}),t(r,{x:31,y:7,w:11,h:14}),t(x,{x:5,y:13,w:7}),t(x,{x:19,y:13,w:7}),t(x,{x:33,y:13,w:7})]})},O={overlay:y(e,{children:[t(d,{x:4,y:3,w:36,h:22}),t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:15,w:18,t:3}),t(x,{x:8,y:20,w:12})]}),stacked:y(e,{children:[t(x,{x:4,y:3,w:18,t:3}),t(x,{x:4,y:8,w:12}),t(d,{x:4,y:13,w:36,h:12}),t(r,{x:4,y:13,w:36,h:12})]})},U={split:y(e,{children:[t(x,{x:4,y:6,w:12,t:3}),t(x,{x:4,y:11,w:9,faint:!0}),t(o,{x1:20,y1:4,x2:20,y2:24}),t(x,{x:24,y:6,w:16}),t(x,{x:24,y:10,w:11,faint:!0}),t(x,{x:24,y:17,w:16}),t(x,{x:24,y:21,w:11,faint:!0})]}),spine:y(e,{children:[t(o,{x1:9,y1:4,x2:9,y2:24}),t(h,{x:9,y:8}),t(x,{x:14,y:7,w:24}),t(h,{x:9,y:14}),t(x,{x:14,y:13,w:20}),t(h,{x:9,y:20}),t(x,{x:14,y:19,w:24})]}),alternating:y(e,{children:[t(o,{x1:22,y1:4,x2:22,y2:24}),t(h,{x:22,y:8}),t(x,{x:4,y:7,w:14}),t(h,{x:22,y:14}),t(x,{x:26,y:13,w:14}),t(h,{x:22,y:20}),t(x,{x:4,y:19,w:14})]}),track:y(e,{children:[t(o,{x1:4,y1:12,x2:40,y2:12}),t(h,{x:8,y:12}),t(h,{x:22,y:12}),t(h,{x:36,y:12}),t(x,{x:4,y:17,w:8}),t(x,{x:18,y:17,w:8}),t(x,{x:32,y:17,w:8}),t(x,{x:4,y:21,w:6,faint:!0}),t(x,{x:18,y:21,w:6,faint:!0}),t(x,{x:32,y:21,w:6,faint:!0})]})},$={standard:y(e,{children:[t(x,{x:4,y:5,w:10,t:1.5,faint:!0}),t(x,{x:4,y:10,w:28,t:4}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:24,faint:!0})]}),editorial:y(e,{children:[t(x,{x:4,y:5,w:5,t:1.5,faint:!0}),t(x,{x:4,y:10,w:20,t:5}),t(x,{x:28,y:11,w:12,faint:!0}),t(x,{x:28,y:15,w:9,faint:!0}),t(o,{x1:4,y1:22,x2:40,y2:22})]}),simple:y(e,{children:[t(x,{x:4,y:8,w:10,t:1.5,faint:!0}),t(x,{x:4,y:13,w:26,t:4})]}),statement:y(e,{children:[t(x,{x:4,y:6,w:36,t:7}),t(x,{x:4,y:16,w:24,t:7})]}),natural:y(e,{children:[t(x,{x:4,y:8,w:22,t:3}),t(x,{x:4,y:15,w:34,faint:!0}),t(x,{x:4,y:19,w:28,faint:!0})]}),essay:y(e,{children:[t(x,{x:4,y:5,w:24,t:4}),t(x,{x:4,y:13,w:36,faint:!0}),t(x,{x:4,y:17,w:36,faint:!0}),t(x,{x:4,y:21,w:30,faint:!0})]})},b={"spec-card":y(e,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:14}),t(r,{x:8,y:12,w:8,h:9}),t(r,{x:18,y:12,w:8,h:9}),t(r,{x:28,y:12,w:8,h:9})]}),fitment:y(e,{children:[t(r,{x:4,y:4,w:10,h:5}),t(r,{x:16,y:4,w:10,h:5}),t(r,{x:28,y:4,w:10,h:5}),t(x,{x:4,y:14,w:34,faint:!0}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:34,faint:!0})]}),portal:y(e,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:10,t:4}),t(x,{x:8,y:14,w:16,faint:!0}),t(x,{x:26,y:18,w:10,t:4})]}),kanban:y(e,{children:[t(r,{x:4,y:3,w:10,h:22}),t(r,{x:17,y:3,w:10,h:22}),t(r,{x:30,y:3,w:10,h:22}),t(x,{x:6,y:6,w:6,t:4}),t(x,{x:6,y:12,w:6,t:4}),t(x,{x:19,y:6,w:6,t:4}),t(x,{x:32,y:6,w:6,t:4}),t(x,{x:32,y:12,w:6,t:4})]}),claims:y(e,{children:[t(x,{x:4,y:5,w:12,faint:!0}),t(x,{x:20,y:4,w:18,t:4}),t(x,{x:4,y:12,w:12,faint:!0}),t(x,{x:20,y:11,w:10,t:4}),t(x,{x:4,y:19,w:12,faint:!0}),t(x,{x:20,y:18,w:14,t:4})]}),browser:y(e,{children:[t(r,{x:4,y:3,w:36,h:22}),t(o,{x1:4,y1:8,x2:40,y2:8}),t(x,{x:8,y:11,w:28,t:5,faint:!0}),t(r,{x:8,y:18,w:8,h:4}),t(r,{x:18,y:18,w:8,h:4}),t(r,{x:28,y:18,w:8,h:4})]}),terminal:y(e,{children:[t(r,{x:4,y:3,w:36,h:22}),t("polyline",{points:"8,9 11,11 8,13",fill:"none"}),t(x,{x:13,y:10,w:14}),t(x,{x:8,y:16,w:22,faint:!0}),t(x,{x:8,y:20,w:16,faint:!0})]})},A={width:"5.75rem",height:"3.75rem"},D={width:"8.5rem",height:"3.75rem"};export{g as CARD_STYLE_PICTURES,k as CHART_PICTURES,O as INTRO_BLEED_PICTURES,A as LAYOUT_CELL,L as LOGO_LOOK_PICTURES,D as LONG_WORD_CELL,b as MOCKUP_PICTURES,S as POST_CARD_PICTURES,$ as SECTION_HEAD_PICTURES,R as TAB_SHAPE_PICTURES,U as TIMELINE_PICTURES,I as dividerPicture};