efficient-web-builder 47.1.0 → 47.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +34 -1
  2. package/dist/editor/components/BlockGapField.d.ts +15 -1
  3. package/dist/editor/components/BlockGapField.js +1 -1
  4. package/dist/editor/components/DuplicateToPageMenu.d.ts +2 -0
  5. package/dist/editor/components/DuplicateToPageMenu.js +1 -1
  6. package/dist/editor/components/SideSpaceField.d.ts +31 -1
  7. package/dist/editor/components/SideSpaceField.js +1 -1
  8. package/dist/editor/components/SiteFields.js +1 -1
  9. package/dist/editor/components/StandaloneSectionEditor.js +1 -1
  10. package/dist/editor/components/StorefrontEditor.js +1 -1
  11. package/dist/editor/components/WebsiteSettingsPanel.d.ts +10 -0
  12. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  13. package/dist/editor/lib/animation/AnimationDurationRow.d.ts +4 -0
  14. package/dist/editor/lib/animation/AnimationDurationRow.js +1 -1
  15. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  16. package/dist/editor/lib/animation/fields.js +1 -1
  17. package/dist/editor/lib/animation/loop-fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  20. package/dist/editor/lib/document/canvas-typing.js +1 -1
  21. package/dist/editor/lib/document/card-display-chips.d.ts +33 -0
  22. package/dist/editor/lib/document/card-display-chips.js +1 -0
  23. package/dist/editor/lib/document/controls.d.ts +13 -0
  24. package/dist/editor/lib/document/controls.js +1 -1
  25. package/dist/editor/lib/document/field-groups.js +1 -1
  26. package/dist/editor/lib/document/live-number-field.d.ts +12 -0
  27. package/dist/editor/lib/document/live-number-field.js +1 -0
  28. package/dist/editor/lib/document/page-root.js +2 -2
  29. package/dist/editor/lib/editor-document-adapter.d.ts +5 -1
  30. package/dist/editor/lib/editor-document-adapter.js +1 -1
  31. package/dist/editor/lib/sections/section-dry-run.d.ts +34 -0
  32. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  33. package/dist/format/lib/animation/index.d.ts +1 -0
  34. package/dist/format/lib/animation/index.js +1 -1
  35. package/dist/format/lib/content/block-sources.d.ts +9 -0
  36. package/dist/format/lib/content/block-sources.js +1 -1
  37. package/dist/format/lib/content/box-layout.d.ts +12 -1
  38. package/dist/format/lib/content/box-layout.js +1 -1
  39. package/dist/format/lib/content/box-separator.js +1 -1
  40. package/dist/format/lib/content/card-template.d.ts +1 -0
  41. package/dist/format/lib/content/card-template.js +1 -1
  42. package/dist/format/lib/content/container-gap.d.ts +9 -1
  43. package/dist/format/lib/content/container-gap.js +1 -1
  44. package/dist/format/lib/content/count-numbers.d.ts +7 -0
  45. package/dist/format/lib/content/count-numbers.js +1 -0
  46. package/dist/format/lib/content/page-width.d.ts +11 -0
  47. package/dist/format/lib/content/page-width.js +1 -1
  48. package/dist/format/lib/content/section-sticky.d.ts +1 -0
  49. package/dist/format/lib/content/section-sticky.js +1 -1
  50. package/dist/format/lib/content/site-gutter.d.ts +6 -0
  51. package/dist/format/lib/content/site-gutter.js +1 -1
  52. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  53. package/dist/format/lib/document/easel-row-words.js +1 -1
  54. package/dist/format/lib/document/panel-bands.d.ts +1 -0
  55. package/dist/format/lib/document/panel-bands.js +1 -1
  56. package/dist/format/lib/document/passes/settings-groups.js +1 -1
  57. package/dist/format/lib/document/site-gap-fields.d.ts +1 -1
  58. package/dist/format/lib/document/site-gap-fields.js +1 -1
  59. package/dist/format/lib/editor-words-catalogue.d.ts +5 -0
  60. package/dist/format/lib/editor-words-catalogue.js +3 -3
  61. package/dist/format/lib/fit-words.js +4 -3
  62. package/dist/format/lib/sections/strip-shape.d.ts +1 -0
  63. package/dist/format/lib/sections/strip-shape.js +1 -1
  64. package/dist/format/lib/site-theme-row.d.ts +2 -0
  65. package/dist/format/lib/site-twin-row.d.ts +5 -0
  66. package/dist/format/lib/site-twin-row.js +1 -0
  67. package/dist/format/lib/source-rules/flat-theme-palette.js +1 -1
  68. package/dist/format/lib/source-rules/one-loop-module.js +3 -3
  69. package/dist/render/components/BlockFrame.d.ts +2 -1
  70. package/dist/render/components/BlockFrame.js +1 -1
  71. package/dist/render/components/Btn.js +1 -1
  72. package/dist/render/components/CountRowsContext.d.ts +8 -0
  73. package/dist/render/components/CountRowsContext.js +1 -0
  74. package/dist/render/components/Flex.d.ts +3 -1
  75. package/dist/render/components/Flex.js +1 -1
  76. package/dist/render/components/ImageBlock.d.ts +4 -1
  77. package/dist/render/components/ImageBlock.js +1 -1
  78. package/dist/render/components/InBoxContext.d.ts +1 -0
  79. package/dist/render/components/InBoxContext.js +1 -1
  80. package/dist/render/components/IntroBleed.js +1 -1
  81. package/dist/render/components/LocationMap.js +1 -1
  82. package/dist/render/components/PreviewHeaderContext.d.ts +9 -1
  83. package/dist/render/components/PreviewHeaderContext.js +1 -1
  84. package/dist/render/components/SiteGutterFrame.d.ts +7 -1
  85. package/dist/render/components/SiteGutterFrame.js +1 -1
  86. package/dist/render/lib/animation/LoopTrack.d.ts +2 -2
  87. package/dist/render/lib/animation/LoopTrack.js +1 -1
  88. package/dist/render/lib/content/block-size.js +1 -1
  89. package/dist/render/lib/content/section-edge.d.ts +10 -0
  90. package/dist/render/lib/content/section-edge.js +1 -0
  91. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  92. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  93. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  94. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  95. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  96. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +5 -0
  97. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  98. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +1 -1
  99. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  100. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  101. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  102. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
  103. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  104. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  105. package/dist/render/lib/document/passes/block-size.js +1 -1
  106. package/dist/render/lib/document/passes/section-anchor.js +1 -1
  107. package/dist/render/lib/document/passes/section-padding.js +1 -1
  108. package/dist/render/lib/document/passes/slots-start-afresh.js +1 -1
  109. package/dist/render/lib/sections/section-to-box.d.ts +5 -1
  110. package/dist/render/lib/sections/section-to-box.js +1 -1
  111. package/package.json +2 -2
@@ -1 +1 @@
1
- import{Fragment as O,jsx as e,jsxs as eo}from"react/jsx-runtime";import{useId as Ko}from"react";import{parseHexColor as Yo}from"efficient-shell/format";import qo from"./BoxTabs.js";import{BoxTabPaneContext as Qo,useIsTabPane as Vo}from"./BoxTabPaneContext.js";import{CellFillContext as Zo,InBoxContext as oe,useFillsCell as ee}from"./InBoxContext.js";import se from"./SiteGutterFrame.js";import{BoxSurfaceProvider as te}from"./BoxSurfaceContext.js";import{BoxCellWidthContext as re}from"./BoxCellWidthContext.js";import{useInSiteHeader as le}from"./PhoneMenuTools.js";import{FRAME_BASE as so,FRAME_GUTTER as to}from"./BlockFrame.js";import{containerGapProps as ne}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ae,boxBlockSpacingClass as ie,boxFitContentClass as ce,boxPhoneRowClasses as T,boxPhoneRowFits as me,boxShareClasses as ro,boxWrapClass as fe}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as ue,boxSeparatorSeamClass as de,boxSeparatorStyle as be,isStripBox as pe}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as xe,DEFAULT_LOOP_DIRECTION as Se,DEFAULT_LOOP_SECONDS as he}from"../../format/lib/animation/index.js";import{LoopTrack as Ce}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as n,BOX_OWNS_SIDES_CLASS as $e,boxDarkenStyle as _e,boxPlacementClasses as Pe,CARD_SHADOW_CLASS as Le,isBackgroundBox as lo}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as ye}from"../../format/lib/content/box-shadow.js";import{boxShapeClass as Ae,boxShapeClasses as Be}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Oe,BOX_LINK_ATTR as no,BOX_LINK_CLASS as ao,BOX_LINKED_CLASS as Te,boxJumpBlocksClass as ge,boxJumpCss as ve,boxJumpSlug as Ne,boxLinkOf as Ee}from"../../format/lib/content/box-link.js";import{SiteLink as Re}from"../lib/site-runtime.js";import{sectionBorderStyle as we}from"../../format/lib/content/borders.js";import{finiteNumber as a}from"../../format/lib/finite-number.js";import{sectionPadAttrs as Fe}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as io}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as De}from"../../format/lib/content/ink.js";import{sizedBackground as g}from"../../format/lib/sized-image.js";import{BoxRail as ke,BoxRailStop as Ie,RAIL_STOPS_CLASS as je,useTimelineRail as Ue}from"./TimelineRail.js";const co={"--sf-site-gutter":"0px"},We="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-[720px]:bg-[image:var(--sf-box-bg-p)]";function Xe({children:s}){return e(O,{children:s(Ko())})}function He({direction:s,label:mo,tabShape:fo,gap:uo,gapPhone:bo,justify:po,align:f,wrap:xo,share:h,sharePhone:v,phoneRow:C,separator:p,blockSpacing:So,bgImage:$,bgImagePhone:N,darken:ho,darkenStyle:Co,placement:$o,padV2:_o=!1,border:Po,borderPhone:Lo,pad:t={},contained:yo=!0,fillHeight:u=!1,shadow:Ao,loop:Bo,scrollDirection:Oo=Se,loopSeconds:To=he,loopDelay:go=xe,editing:E=!1,fillColor:R,line:vo,upcoming:No,link:Eo,boxShape:w,boxShapePhone:Ro,jumpHighlight:wo,anchor:Fo,content:F}){const d=E?"":Ee(Eo),i=u?"":Be(w,Ro),Do=!u&&Ae(w)!=="",c=Ne(wo,Fo),D=typeof R=="string"?Yo(R.trim()):null,k=D?{backgroundColor:D}:void 0,I=Ue(),j=vo===!0&&s!=="tabs",r=lo($),U=le(),W=Vo(),_=ee(),X=pe(s,p),x=Bo==="scroll"&&s!=="tabs",H=[ro(h),s==="row"?ce(h):"",ie(So),ue(s,p)].filter(Boolean).join(" "),ko=H?` ${H}`:"",M=["flex",s==="row"?X||x?"flex-row":`flex-row ${T(C,v)}`:"flex-col",fe(x?!1:xo),r?Pe($o??"center",s):ae(x?void 0:po,f)].join(" ")+ko,m=u||r||i||_?` ${io}`:"",P=Do?` ${i}`:i?`${m} ${i}`:m,L=d?` ${Te}`:"",y=r||U||_o?"":" py-6",Io=`${so}${y} ${to}${P}${L}`,jo=U?`${P}${L}`.trim():`w-full${y}${P}${L}`,b=ne("Flex",uo,s==="row"?"inline":"block",bo),Uo=X?{...b.style,...be(s,p)}:b.style,z=(o="")=>e(F,{className:`${M}${b.className}${m}${o?` ${o}`:""}${j?` ${je}`:""}${c?` ${ge(c)}`:""}`,style:Uo,minEmptyHeight:120}),G=de(s,p),J=x?e(Ce,{direction:Oo,seconds:To,delay:go,editing:E,copy:o=>z(o&&G?`${o} ${G}`:o)}):z(),K=s==="tabs"?e(qo,{className:`${M}${b.className}${_&&!u&&!r&&!i?"":m}`,style:b.style,shape:fo,children:J}):J,Wo=W?e(Qo.Provider,{value:!1,children:K}):K,Xo={stretchedRow:s==="row"&&!r&&(f===void 0||f==="stretch"),fillingColumn:s==="column"&&_},Y=e(oe.Provider,{value:Xo,children:e(Zo.Provider,{value:!1,children:Wo})}),A=j?e(ke,{row:s==="row",stops:F.blockCount??0,children:Y}):Y,Ho=mo?.trim()||(W?"":void 0),Mo={values:t,frame:y?24:0},zo=o=>I?e(Ie,{on:I,future:No===!0,children:o}):o,Go=o=>d.startsWith("/")?e(Re,{href:d,className:ao,"aria-labelledby":o,[no]:""}):e("a",{href:d,className:ao,"aria-labelledby":o,[no]:""}),q=c?e("style",{dangerouslySetInnerHTML:{__html:ve(c)}}):null,Jo=o=>({...r?null:ye(Ao),...c?{[Oe]:c}:null,...o?{id:o}:null}),Q=(o,l)=>zo(e(se,{contained:yo,framedClass:Io,fillClass:jo,columnClass:`${so} ${to}${m}`,tabLabel:Ho,pad:r?void 0:Mo,border:we(Po,Lo),outerAttrs:Jo(l),box:!0,outerStyle:r?void 0:k,children:q||l?eo(O,{children:[q,l?Go(l):null,o]}):o})),V=o=>d?e(Xe,{children:l=>Q(o,l)}):Q(o);if(!r){const o=f===void 0||f==="stretch",l=ro(h)!==""&&!me(C,v)&&(o||T(C)!==T(void 0));return V((s==="row"?l:s==="column"&&o)?e(re.Provider,{value:!0,children:A}):A)}const S=_e(ho,Co),Z=lo(N),B=Fe({...t,top:a(t.top)??n.desktop,bottom:a(t.bottom)??n.desktop,topPhone:a(t.topPhone)??n.phone,bottomPhone:a(t.bottomPhone)??n.phone,left:a(t.left)??n.side,right:a(t.right)??n.side,leftPhone:a(t.leftPhone)??n.sidePhone,rightPhone:a(t.rightPhone)??n.sidePhone}),oo=e("div",{className:`relative z-[1] ${$e} ${B?.className??""}${u||i?` ${io}`:""}`.trimEnd(),style:S?{...B?.style,...co,...De}:{...B?.style,...co},children:A});return V(e(O,{children:eo("div",{className:`relative isolate overflow-hidden ${Le}${m}${Z?` ${We}`:""}`,style:{...k,...Z?{"--sf-box-bg":g($??""),"--sf-box-bg-p":g(N??"")}:{backgroundImage:g($??""),backgroundSize:"cover",backgroundPosition:"center"}},children:[S&&e("div",{className:"absolute inset-0 z-0",style:S,"aria-hidden":!0}),S?e(te,{children:oo}):oo]})}))}export{He as default};
1
+ import{Fragment as D,jsx as s,jsxs as po}from"react/jsx-runtime";import{useId as re}from"react";import{parseHexColor as le}from"efficient-shell/format";import ae from"./BoxTabs.js";import{BoxTabPaneContext as me,useIsTabPane as ce}from"./BoxTabPaneContext.js";import{CellFillContext as ie,InBoxContext as fe,useCellOfStretchedRow as ue,useFillsCell as de}from"./InBoxContext.js";import be,{InsideSiteColumn as xo}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as pe}from"./BoxSurfaceContext.js";import{BoxCellWidthContext as xe}from"./BoxCellWidthContext.js";import{useInSiteHeader as Se}from"./PhoneMenuTools.js";import{FRAME_BASE as So,FRAME_GUTTER as Co}from"./BlockFrame.js";import{containerGapProps as Ce}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as he,boxBlockSpacingClass as $e,boxFitContentClass as _e,boxRowColumnsClass as Pe,boxPhoneRowClasses as S,boxPhoneRowFits as Le,boxShareClasses as I,boxWrapClass as ye}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Ae,boxSeparatorSeamClass as Be,boxSeparatorStyle as ge,isStripBox as Te}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Oe,DEFAULT_LOOP_DIRECTION as Ee,DEFAULT_LOOP_SECONDS as Ne}from"../../format/lib/animation/index.js";import{LoopTrack as Re}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as l,BOX_OWNS_SIDES_CLASS as ve,boxDarkenStyle as we,boxPlacementClasses as Fe,CARD_SHADOW_CLASS as ke,isBackgroundBox as ho}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as De}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Ie}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Ue,boxShapeClasses as We}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Xe,BOX_LINK_ATTR as $o,BOX_LINK_CLASS as _o,BOX_LINKED_CLASS as je,boxJumpBlocksClass as He,boxJumpCss as Me,boxJumpSlug as ze,boxLinkOf as Ge}from"../../format/lib/content/box-link.js";import{SiteLink as Je}from"../lib/site-runtime.js";import{sectionBorderStyle as Ke}from"../../format/lib/content/borders.js";import{finiteNumber as a}from"../../format/lib/finite-number.js";import{sectionPadAttrs as Ye}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as U}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as qe}from"../../format/lib/content/ink.js";import{sizedBackground as W}from"../../format/lib/sized-image.js";import{BoxRail as Qe,BoxRailStop as Ve,RAIL_STOPS_CLASS as Ze,useTimelineRail as os}from"./TimelineRail.js";const X={"--sf-site-gutter":"0px"},es="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-[720px]:bg-[image:var(--sf-box-bg-p)]";function ss({children:e}){return s(D,{children:e(re())})}function ts({direction:e,label:Po,tabShape:Lo,gap:yo,gapPhone:Ao,justify:y,align:f,wrap:Bo,share:C,sharePhone:A,wrapPhone:go,phoneRow:h,columns:j,separator:u,blockSpacing:To,bgImage:$,bgImagePhone:H,darken:Oo,darkenStyle:Eo,placement:No,padV2:Ro=!1,border:vo,borderPhone:wo,pad:n={},contained:Fo=!0,fillHeight:d=!1,shadow:ko,loop:B,scrollDirection:M=Ee,loopSeconds:Do=Ne,loopDelay:Io=Oe,editing:z=!1,fillColor:G,line:J,upcoming:Uo,link:Wo,boxShape:K,boxShapePhone:Xo,jumpHighlight:jo,anchor:Ho,content:g}){const b=z?"":Ge(Wo),m=d?"":We(K,Xo),Mo=!d&&Ue(K)!=="",c=ze(jo,Ho),Y=typeof G=="string"?le(G.trim()):null,q=Y?{backgroundColor:Y}:void 0,Q=os(),T=J===!0&&e!=="tabs",t=ho($),O=Se(),V=ce(),E=de(),zo=ue(),N=Te(e,u),i=B==="scroll"&&e!=="tabs",_=Pe({direction:e,separator:u,loop:B,line:J,columns:j}),Z=[I(C),e==="row"?_e(C):"",_,$e(To),Ae(e,u)].filter(Boolean).join(" "),Go=Z?` ${Z}`:"",oo=["flex",e==="row"?N||i?"flex-row":`flex-row ${S(h,A,go)}`:"flex-col",ye(i?!1:Bo),t?Fe(No??"center",e):he(i?void 0:y,f)].join(" ")+Go,p=d||t||m||E?` ${U}`:"",R=Mo?` ${m}`:m?`${p} ${m}`:p,eo=zo&&e==="column"&&!t&&!i&&I(C)===""&&typeof y=="string"&&y!=="start",so=p||(eo?` ${U}`:""),v=b?` ${je}`:"",w=t||O||Ro?"":" py-6",Jo=`${So}${w} ${Co}${R}${v}`,Ko=O?`${R}${v}`.trim():`w-full${w}${R}${v}`,x=Ce("Flex",yo,e==="row"?"inline":"block",Ao),Yo=N?{...x.style,...ge(e,u)}:x.style,to=(o="")=>s(g,{className:`${oo}${x.className}${so}${o?` ${o}`:""}${T?` ${Ze}`:""}${c?` ${He(c)}`:""}`,style:Yo,minEmptyHeight:120}),no=Be(e,u),ro=i?s(Re,{direction:M,seconds:Do,delay:Io,editing:z,copy:o=>to(o&&no?`${o} ${no}`:o)}):to(),lo=e==="tabs"?s(ae,{className:`${oo}${x.className}${E&&!d&&!t&&!m?"":p}`,style:x.style,shape:Lo,children:ro}):ro,qo=V?s(me.Provider,{value:!1,children:lo}):lo,Qo={stretchedRow:e==="row"&&!t&&(f===void 0||f==="stretch"),fillingColumn:e==="column"&&(E||eo),columnsRow:_!==""},ao=s(fe.Provider,{value:Qo,children:s(ie.Provider,{value:!1,children:qo})}),F=T?s(Qe,{row:e==="row",stops:g.blockCount??0,children:ao}):ao,Vo=Po?.trim()||(V?"":void 0),Zo={values:n,frame:w?24:0},oe=o=>Q?s(Ve,{on:Q,future:Uo===!0,children:o}):o,ee=o=>b.startsWith("/")?s(Je,{href:b,className:_o,"aria-labelledby":o,[$o]:""}):s("a",{href:b,className:_o,"aria-labelledby":o,[$o]:""}),mo=c?s("style",{dangerouslySetInnerHTML:{__html:Me(c)}}):null,se=o=>({...t?null:De(ko),...c?{[Xe]:c}:null,...o?{id:o}:null}),co=_!==""?Number(j):0,te=S(h,A)===S(void 0),ne=(e==="column"||e==="row"&&!N&&!i&&(co===1&&te||co===0&&g.blockCount===1))&&!t&&!T&&!O,P=Ie({loop:B,direction:e,scrollDirection:M,bgImage:$}),io=(o,r)=>oe(s(be,{contained:Fo&&!P,style:P?X:void 0,framedClass:Jo,fillClass:Ko,columnClass:`${So} ${Co}${so}`,tabLabel:Vo,pad:t?void 0:Zo,border:Ke(vo,wo),outerAttrs:se(r),box:!0,edge:ne,outerStyle:t?void 0:q,children:mo||r?po(D,{children:[mo,r?ee(r):null,P?s(xo,{children:o}):o]}):P?s(xo,{children:o}):o})),fo=o=>b?s(ss,{children:r=>io(o,r)}):io(o);if(!t){const o=f===void 0||f==="stretch",r=(I(C)!==""||_!=="")&&!Le(h,A)&&(o||S(h)!==S(void 0));return fo((e==="row"?r:e==="column"&&o)?s(xe.Provider,{value:!0,children:F}):F)}const L=we(Oo,Eo),uo=ho(H),k=Ye({...n,top:a(n.top)??l.desktop,bottom:a(n.bottom)??l.desktop,topPhone:a(n.topPhone)??l.phone,bottomPhone:a(n.bottomPhone)??l.phone,left:a(n.left)??l.side,right:a(n.right)??l.side,leftPhone:a(n.leftPhone)??l.sidePhone,rightPhone:a(n.rightPhone)??l.sidePhone}),bo=s("div",{className:`relative z-[1] ${ve} ${k?.className??""}${d||m?` ${U}`:""}`.trimEnd(),style:L?{...k?.style,...X,...qe}:{...k?.style,...X},children:F});return fo(s(D,{children:po("div",{className:`relative isolate overflow-hidden ${ke}${p}${uo?` ${es}`:""}`,style:{...q,...uo?{"--sf-box-bg":W($??""),"--sf-box-bg-p":W(H??"")}:{backgroundImage:W($??""),backgroundSize:"cover",backgroundPosition:"center"}},children:[L&&s("div",{className:"absolute inset-0 z-0",style:L,"aria-hidden":!0}),L?s(pe,{children:bo}):bo]})}))}export{ts as default};
@@ -1,4 +1,5 @@
1
1
  import { type ImageFit } from "../../format/lib/content/image-fit.js";
2
+ import type { PadValues } from "../lib/content/section-padding.js";
2
3
  type Aspect = "auto" | "21/9" | "16/9" | "4/3" | "1/1";
3
4
  interface ImageBlockProps {
4
5
  editing?: boolean;
@@ -14,6 +15,8 @@ interface ImageBlockProps {
14
15
  focalPhone?: string;
15
16
  corners?: number;
16
17
  cornerSides?: string[] | null;
18
+ pad?: PadValues;
19
+ ownSize?: boolean;
17
20
  }
18
- export default function ImageBlock({ src, alt, aspect, contained, grayscale, href, fit, focal, focalPhone, corners, cornerSides, editing, }: ImageBlockProps): import("react").JSX.Element | null;
21
+ export default function ImageBlock({ src, alt, aspect, contained, grayscale, href, fit, focal, focalPhone, corners, cornerSides, pad, ownSize, editing, }: ImageBlockProps): import("react").JSX.Element | null;
19
22
  export {};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{SiteLink as x}from"../lib/site-runtime.js";import I from"./BlockFrame.js";import{useSitePhotography as $}from"./SitePhotographyContext.js";import{media as j}from"../lib/media.js";import{CONTENT_SIZES as w,sizedImage as C}from"../../format/lib/sized-image.js";import{imageCornerStyle as F}from"../../format/lib/content/image-corners.js";import{imageFitClass as z,imageIsCropped as T,parseImageFit as E}from"../../format/lib/content/image-fit.js";import{resolveImageTreatment as P}from"../../format/lib/content/image-treatment.js";import{phoneFocus as B}from"../../format/lib/content/phone-focus.js";import{say as L}from"../../format/lib/editor-words.js";const O={auto:"","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","1/1":"aspect-square"};function _({src:t,alt:d,aspect:o,contained:u,grayscale:h,href:g,fit:y,focal:m,focalPhone:N,corners:S,cornerSides:b,editing:k=!1}){const a=P(h,$()),c=E(y,"cover"),n=F(S,b),f=T(o,c),l=B(f?N:void 0),p={...a.style??{},...m&&f?{objectPosition:m}:{},...l.style},r=t?C(j(t)):null,i=t&&r?e("img",{src:r.src,...r.srcSet?{srcSet:r.srcSet,sizes:w}:{},alt:d,className:`h-full w-full ${o==="auto"?"":z(c)}${a.className?` ${a.className}`:""}${l.className?` ${l.className}`:""}`,...Object.keys(p).length?{style:p}:{}}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:L("Image — set a path")}),s=(g??"").trim(),v=s&&t?s.startsWith("/")?e(x,{href:s,className:"block h-full w-full",children:i}):e("a",{href:s,className:"block h-full w-full",children:i}):i;return!t&&!k?null:e(I,{contained:u,className:"py-6",children:e("figure",{children:e("div",{className:`relative w-full overflow-hidden bg-surface ${O[o]}`,...n?{style:n}:{},children:v})})})}export{_ as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{SiteLink as C}from"../lib/site-runtime.js";import E from"./BlockFrame.js";import{useSectionEdge as F}from"./SiteGutterFrame.js";import{useSitePhotography as z}from"./SitePhotographyContext.js";import{media as P}from"../lib/media.js";import{CONTENT_SIZES as T,sizedImage as A}from"../../format/lib/sized-image.js";import{imageCornerStyle as B}from"../../format/lib/content/image-corners.js";import{imageFitClass as L,imageIsCropped as O,parseImageFit as W}from"../../format/lib/content/image-fit.js";import{resolveImageTreatment as _}from"../../format/lib/content/image-treatment.js";import{phoneFocus as q}from"../../format/lib/content/phone-focus.js";import{say as Z}from"../../format/lib/editor-words.js";import{sectionEdgeAttrs as D}from"../lib/content/section-edge.js";const G={auto:"","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","1/1":"aspect-square"};function H({src:t,alt:g,aspect:l,contained:y,grayscale:N,href:S,fit:b,focal:c,focalPhone:k,corners:v,cornerSides:x,pad:n,ownSize:I=!1,editing:$=!1}){const a=_(N,z()),f=W(b,"cover"),d=B(v,x),p=O(l,f),i=q(p?k:void 0),u={...a.style??{},...c&&p?{objectPosition:c}:{},...i.style},s=t?A(P(t)):null,m=t&&s?e("img",{src:s.src,...s.srcSet?{srcSet:s.srcSet,sizes:T}:{},alt:g,className:`h-full w-full ${l==="auto"?"":L(f)}${a.className?` ${a.className}`:""}${i.className?` ${i.className}`:""}`,...Object.keys(u).length?{style:u}:{}}):e("div",{className:"flex aspect-[16/9] items-center justify-center border border-dashed border-line font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim",children:Z("Image — set a path")}),r=(S??"").trim(),j=r&&t?r.startsWith("/")?e(C,{href:r,className:"block h-full w-full",children:m}):e("a",{href:r,className:"block h-full w-full",children:m}):m,h=F(),o=h&&!I?D(h):null,w=n?{values:n,frame:24}:void 0;return!t&&!$?null:e(E,{contained:o?!1:y,className:"py-6",pad:w,...o?{fillWidth:o.className,style:o.style}:{},children:e("figure",{children:e("div",{className:`relative w-full overflow-hidden bg-surface ${G[l]}`,...d?{style:d}:{},children:j})})})}export{H as default};
@@ -2,6 +2,7 @@ import { type CSSProperties, type ReactNode } from "react";
2
2
  export type BoxCell = {
3
3
  stretchedRow: boolean;
4
4
  fillingColumn: boolean;
5
+ columnsRow?: boolean;
5
6
  };
6
7
  export declare const InBoxContext: import("react").Context<BoxCell | null>;
7
8
  export declare const useInBox: () => boolean;
@@ -1 +1 @@
1
- "use client";import{jsx as n}from"react/jsx-runtime";import{createContext as i,useContext as o}from"react";import{SECTION_FILL_CLASS as f}from"../../format/lib/content/section-min-height.js";const a={stretchedRow:!1,fillingColumn:!1},r=i(null),C=()=>o(r)!==null,w=()=>o(r),s=i(!1);function p(){const t=o(r)?.stretchedRow===!0,e=o(s);return t&&!e}const d=()=>o(s);function m(){const t=p(),e=d();return{fill:e?` ${f}`:"",inner:l=>t||e?n(s.Provider,{value:!0,children:l}):l}}function B({className:t,style:e,attrs:l,children:c}){const{fill:u,inner:x}=m();return n("div",{className:`${t}${u}`,...e?{style:e}:{},...l,children:x(c)})}function F({children:t}){const e=C();return n(r.Provider,{value:e?a:null,children:n(s.Provider,{value:!1,children:t})})}export{s as CellFillContext,B as CellWrap,r as InBoxContext,F as SlotsStartAfresh,w as useBoxCell,m as useCellLayer,p as useCellOfStretchedRow,d as useFillsCell,C as useInBox};
1
+ "use client";import{jsx as n}from"react/jsx-runtime";import{createContext as u,useContext as t}from"react";import{SECTION_FILL_CLASS as f}from"../../format/lib/content/section-min-height.js";const a={stretchedRow:!1,fillingColumn:!1},l=u(null),d=()=>t(l)!==null,w=()=>t(l),c=u(!1);function C(){const e=t(l)?.stretchedRow===!0,o=t(c);return e&&!o}const p=()=>t(c);function m(){const e=t(l),o=C(),r=p();return{fill:r?` ${f}`:"",inner:s=>{const i=o||r?n(c.Provider,{value:!0,children:s}):s;return e?.columnsRow?n(l.Provider,{value:{...e,columnsRow:!1},children:i}):i}}}function R({className:e,style:o,attrs:r,children:s}){const{fill:i,inner:x}=m();return n("div",{className:`${e}${i}`,...o?{style:o}:{},...r,children:x(s)})}function B({children:e}){const o=d();return n(l.Provider,{value:o?a:null,children:n(c.Provider,{value:!1,children:e})})}export{c as CellFillContext,R as CellWrap,l as InBoxContext,B as SlotsStartAfresh,w as useBoxCell,m as useCellLayer,C as useCellOfStretchedRow,p as useFillsCell,d as useInBox};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t,Fragment as Q}from"react/jsx-runtime";import U from"./Btn.js";import u from"./Placeholder.js";import V from"./SectionEyebrow.js";import{renderGold as N,renderHeadline as W,splitParagraphs as X}from"./goldPhrases.js";import{resolveTypeSize as o}from"../../format/lib/content/section-type-size.js";import{HEADER_HEIGHT_CSS as j}from"../lib/document/header-clearance.js";import{resolveSectionHeight as k}from"../../format/lib/content/section-height.js";import{INTRO_BLEED_COPY_SHARE as _,parseIntroBleedLayout as Z,resolveCopyShare as E}from"../../format/lib/sections/intro-bleed-layout.js";import{ON_MEDIA_INK_STYLE as ee}from"../../format/lib/content/ink.js";function te({eyebrow:a,title:l,body:s,cta:i,imageLabel:d,imageSrc:c,imageSrcMobile:w,layout:I,copyShareDesktop:z,copyShareMobile:D,sticky:m=!0,heightDesktop:H,heightMobile:S,overlay:p,titleSizeDesktop:B,titleSizeMobile:T,bodySizeDesktop:C,bodySizeMobile:L,buttonColor:M,buttonTextColor:A,uppercase:F=!1,capStyle:h}){const r=Z(I)==="stacked",x=n=>r?`calc(${k(n)} - ${j})`:k(n),O=x(H),P=x(S),R=o(B,"clamp(48px,7vw,96px)","heading","headingLarge"),$=o(T,"clamp(36px,7vw,96px)","heading","headingLarge"),G=o(C,"17px","body","body"),Y=o(L,"16px","body","body"),K=p!=null?p/100:r?0:.6,v=M||"var(--btn)",q=A||"var(--btn-ink)",f={"--intro-h-d":O,"--intro-h-m":P,"--intro-title-d":R,"--intro-title-m":$,"--intro-body-d":G,"--intro-body-m":Y,...r?{"--intro-copy-d":E(z,_.desktop),"--intro-copy-m":E(D,_.mobile),marginTop:j}:{}},g=h?"px-[var(--sf-site-gutter,40px)] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]":"px-[60px] max-[960px]:px-6",b=t(Q,{children:[t("div",{className:"absolute inset-0",children:[e("div",{className:"absolute inset-0 hidden min-[960px]:block",children:e(u,{label:d,src:c})}),e("div",{className:"absolute inset-0 min-[960px]:hidden",children:e(u,{label:d,src:w||c})}),e("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent 0 80px, rgba(201,164,97,.04) 80px 81px)"}})]}),e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${K})`}})]}),y=t("div",{style:h,className:"flex flex-col gap-6",children:[a&&e(V,{text:a,size:14}),l&&e("h2",{className:["font-display font-medium leading-[0.95] tracking-[-0.03em]","text-[length:var(--intro-title-m)] min-[960px]:text-[length:var(--intro-title-d)]",F?"uppercase":""].join(" "),children:W(l,!1)}),s&&X(s).map((n,J)=>e("p",{className:"max-w-[560px] leading-[1.6] opacity-85 text-[length:var(--intro-body-m)] min-[960px]:text-[length:var(--intro-body-d)]",children:N(n)},J)),i.text&&e("div",{className:"mt-2 self-start",children:e(U,{href:i.href,variant:"ghost",style:{background:v,color:q,borderColor:v},children:N(i.text)})})]});return r?t("section",{style:f,className:[m?"sticky top-0":"relative","flex flex-col","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]"].join(" "),children:[e("div",{className:["relative z-[2] flex shrink-0 flex-col justify-center bg-bg py-10","min-h-[var(--intro-copy-m)] min-[960px]:min-h-[var(--intro-copy-d)]",g].join(" "),style:{color:"var(--fg)"},children:y}),e("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:b})]}):t("section",{style:f,className:[m?"sticky top-0":"relative","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]","mx-auto w-full max-w-[var(--sf-bg-cap,none)]"].join(" "),children:[b,e("div",{className:["relative z-[2] flex h-full flex-col justify-center",g].join(" "),style:ee,children:y})]})}export{te as default};
1
+ import{jsx as e,jsxs as t,Fragment as Q}from"react/jsx-runtime";import U from"./Btn.js";import u from"./Placeholder.js";import W from"./SectionEyebrow.js";import{renderGold as N,renderHeadline as X,splitParagraphs as Z}from"./goldPhrases.js";import{resolveTypeSize as o}from"../../format/lib/content/section-type-size.js";import{HEADER_HEIGHT_CSS as _}from"../lib/document/header-clearance.js";import{resolveSectionHeight as j}from"../../format/lib/content/section-height.js";import{INTRO_BLEED_COPY_SHARE as k,parseIntroBleedLayout as ee,resolveCopyShare as E}from"../../format/lib/sections/intro-bleed-layout.js";import{ON_MEDIA_INK_STYLE as te}from"../../format/lib/content/ink.js";import{SCROLL_OVER_CLASS as S}from"../../format/lib/content/section-sticky.js";function re({eyebrow:a,title:l,body:s,cta:i,imageLabel:d,imageSrc:c,imageSrcMobile:w,layout:I,copyShareDesktop:L,copyShareMobile:z,sticky:m=!0,heightDesktop:C,heightMobile:D,overlay:p,titleSizeDesktop:H,titleSizeMobile:B,bodySizeDesktop:O,bodySizeMobile:R,buttonColor:T,buttonTextColor:$,uppercase:A=!1,capStyle:h}){const r=ee(I)==="stacked",x=n=>r?`calc(${j(n)} - ${_})`:j(n),M=x(C),F=x(D),P=o(H,"clamp(48px,7vw,96px)","heading","headingLarge"),G=o(B,"clamp(36px,7vw,96px)","heading","headingLarge"),Y=o(O,"17px","body","body"),K=o(R,"16px","body","body"),V=p!=null?p/100:r?0:.6,v=T||"var(--btn)",q=$||"var(--btn-ink)",f={"--intro-h-d":M,"--intro-h-m":F,"--intro-title-d":P,"--intro-title-m":G,"--intro-body-d":Y,"--intro-body-m":K,...r?{"--intro-copy-d":E(L,k.desktop),"--intro-copy-m":E(z,k.mobile),marginTop:_}:{}},g=h?"px-[var(--sf-site-gutter,40px)] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]":"px-[60px] max-[960px]:px-6",b=t(Q,{children:[t("div",{className:"absolute inset-0",children:[e("div",{className:"absolute inset-0 hidden min-[960px]:block",children:e(u,{label:d,src:c})}),e("div",{className:"absolute inset-0 min-[960px]:hidden",children:e(u,{label:d,src:w||c})}),e("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent 0 80px, rgba(201,164,97,.04) 80px 81px)"}})]}),e("div",{className:"absolute inset-0",style:{background:`rgba(0,0,0,${V})`}})]}),y=t("div",{style:h,className:"flex flex-col gap-6",children:[a&&e(W,{text:a,size:14}),l&&e("h2",{className:["font-display font-medium leading-[0.95] tracking-[-0.03em]","text-[length:var(--intro-title-m)] min-[960px]:text-[length:var(--intro-title-d)]",A?"uppercase":""].join(" "),children:X(l,!1)}),s&&Z(s).map((n,J)=>e("p",{className:"max-w-[560px] leading-[1.6] opacity-85 text-[length:var(--intro-body-m)] min-[960px]:text-[length:var(--intro-body-d)]",children:N(n)},J)),i.text&&e("div",{className:"mt-2 self-start",children:e(U,{href:i.href,variant:"ghost",style:{background:v,color:q,borderColor:v},children:N(i.text)})})]});return r?t("section",{style:f,className:[m?`sticky top-0 ${S}`:"relative","flex flex-col","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]"].join(" "),children:[e("div",{className:["relative z-[2] flex shrink-0 flex-col justify-center bg-bg py-10","min-h-[var(--intro-copy-m)] min-[960px]:min-h-[var(--intro-copy-d)]",g].join(" "),style:{color:"var(--fg)"},children:y}),e("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:b})]}):t("section",{style:f,className:[m?`sticky top-0 ${S}`:"relative","h-[var(--intro-h-m)] min-[960px]:h-[var(--intro-h-d)] min-h-[420px]","overflow-hidden p-0 z-[1]","mx-auto w-full max-w-[var(--sf-bg-cap,none)]"].join(" "),children:[b,e("div",{className:["relative z-[2] flex h-full flex-col justify-center",g].join(" "),style:te,children:y})]})}export{re as default};
@@ -1 +1 @@
1
- "use client";import{jsx as n,jsxs as s}from"react/jsx-runtime";import{useMemo as v}from"react";import{hasMapCoords as m}from"../../format/lib/map-styles.js";import _ from"./SiteMap.js";const y="relative overflow-hidden max-[1100px]:aspect-square";function k(e,r,t){return m(r,t)?[{key:"place",label:e,lat:r,lng:t,glyph:"",tone:""}]:[]}function N(e,r,t,a){return e||(r?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([r,t,a].filter(Boolean).join(" "))}`:"")}function j({href:e}){return n("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent transition-colors hover:text-fg",children:"Get directions ↗"})}function w({name:e,state:r,country:t,lat:a,lng:i,mapsUrl:f,mapTheme:u="auto",pick:c,editing:g,boxClass:l=y}){const h=m(a,i),p=r,o=e||"Location",b=v(()=>k(o,a,i),[o,a,i]),d=N(f,e,r,t),x=s("div",{className:"absolute left-5 top-5 z-10 flex max-w-[64%] flex-col gap-1.5 border border-line bg-bg p-3.5 shadow-[0_8px_24px_color-mix(in_srgb,var(--overlay-scrim)_40%,transparent)]",children:[s("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[o,p?`, ${p}`:""]}),d&&n(j,{href:d})]});return h?n("div",{"data-loc-pick":c,className:l,children:n(_,{pins:b,mapTheme:u,ariaLabel:o,className:"absolute inset-0",children:x})}):s("div",{"data-loc-pick":c,className:`${l} bg-bg`,style:{backgroundImage:"repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:[x,g&&n("div",{className:"absolute inset-0 flex items-center justify-center px-6 text-center font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim/40",children:"Add latitude & longitude"})]})}export{j as DirectionsLink,y as LOCATION_MAP_BOX,w as default,N as directionsHref,k as locationMapPins};
1
+ "use client";import{jsx as n,jsxs as s}from"react/jsx-runtime";import{useMemo as v}from"react";import{hasMapCoords as m}from"../../format/lib/map-styles.js";import _ from"./SiteMap.js";const y="relative overflow-hidden max-[1100px]:aspect-square";function k(e,r,t){return m(r,t)?[{key:"place",label:e,lat:r,lng:t,glyph:"",tone:""}]:[]}function N(e,r,t,a){return e||(r?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([r,t,a].filter(Boolean).join(" "))}`:"")}function j({href:e}){return n("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent transition-colors hover:text-fg",children:"Get directions ↗"})}function w({name:e,state:r,country:t,lat:a,lng:i,mapsUrl:u,mapTheme:f="auto",pick:c,editing:g,boxClass:l=y}){const h=m(a,i),p=r,o=e||"Location",b=v(()=>k(o,a,i),[o,a,i]),d=N(u,e,r,t),x=s("div",{className:"absolute left-5 top-5 z-10 flex max-w-[64%] flex-col gap-1.5 border border-line bg-bg p-3.5 shadow-[0_8px_24px_color-mix(in_srgb,var(--overlay-scrim)_40%,transparent)]",children:[s("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[o,p?`, ${p}`:""]}),d&&n(j,{href:d})]});return h?n("div",{"data-loc-pick":c,className:l,children:n(_,{pins:b,mapTheme:f,ariaLabel:o,className:"absolute inset-0",children:x})}):s("div",{"data-loc-pick":c,className:`${l} bg-bg`,style:{backgroundImage:"repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:[x,g&&n("div",{className:"absolute inset-0 flex items-center justify-center px-6 text-center font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim/40",children:"Add latitude & longitude"})]})}export{j as DirectionsLink,y as LOCATION_MAP_BOX,w as default,N as directionsHref,k as locationMapPins};
@@ -43,9 +43,13 @@ type Ctx = {
43
43
  siteWidth: number | null;
44
44
  setSiteWidth: (v: number | null) => void;
45
45
  siteGutter: number | null;
46
+ siteGutterPhone: number | null;
46
47
  blockGap: number | null;
48
+ blockGapPhone: number | null;
47
49
  setSiteGutter: (v: number | null) => void;
50
+ setSiteGutterPhone: (v: number | null) => void;
48
51
  setBlockGap: (v: number | null) => void;
52
+ setBlockGapPhone: (v: number | null) => void;
49
53
  heroBackgroundFollowsWidth: boolean | null;
50
54
  setHeroBackgroundFollowsWidth: (v: boolean | null) => void;
51
55
  sectionBackgroundWidth: "full" | "content" | null;
@@ -59,7 +63,7 @@ type Ctx = {
59
63
  themeFromDocument: boolean;
60
64
  };
61
65
  export declare const PreviewHeaderContext: import("react").Context<Ctx>;
62
- export declare function PreviewHeaderProvider({ children, websiteName, templateChrome, templateName, chromePlaceholder, themeMode, onThemeModeChange, themeSwitchShown, onThemeSwitchShownChange, theme, themeRow, onThemeChange, fonts, onFontsChange, sizes, onSizesChange, cornerRadiusPx, onCornerRadiusPxChange, cardShadow, onCardShadowChange, shadowColor, onShadowColorChange, cardGap, onCardGapChange, hoverEffect, onHoverEffectChange, headingCompression, onHeadingCompressionChange, siteWidth, onSiteWidthChange, siteGutter, blockGap, onSiteGutterChange, onBlockGapChange, headingTypography, onHeadingTypographyChange, textStyles, onTextStylesChange, wordStyles, heroBackgroundFollowsWidth, onHeroBackgroundFollowsWidthChange, sectionBackgroundWidth, onSectionBackgroundWidthChange, sectionContentWidth, onSectionContentWidthChange, photographyGrayscale, onPhotographyGrayscaleChange, shareButtonOnPosts, onShareButtonOnPostsChange, themeFromDocument, }: {
66
+ export declare function PreviewHeaderProvider({ children, websiteName, templateChrome, templateName, chromePlaceholder, themeMode, onThemeModeChange, themeSwitchShown, onThemeSwitchShownChange, theme, themeRow, onThemeChange, fonts, onFontsChange, sizes, onSizesChange, cornerRadiusPx, onCornerRadiusPxChange, cardShadow, onCardShadowChange, shadowColor, onShadowColorChange, cardGap, onCardGapChange, hoverEffect, onHoverEffectChange, headingCompression, onHeadingCompressionChange, siteWidth, onSiteWidthChange, siteGutter, siteGutterPhone, blockGap, blockGapPhone, onSiteGutterChange, onSiteGutterPhoneChange, onBlockGapChange, onBlockGapPhoneChange, headingTypography, onHeadingTypographyChange, textStyles, onTextStylesChange, wordStyles, heroBackgroundFollowsWidth, onHeroBackgroundFollowsWidthChange, sectionBackgroundWidth, onSectionBackgroundWidthChange, sectionContentWidth, onSectionContentWidthChange, photographyGrayscale, onPhotographyGrayscaleChange, shareButtonOnPosts, onShareButtonOnPostsChange, themeFromDocument, }: {
63
67
  children: ReactNode;
64
68
  websiteName?: string | null;
65
69
  templateChrome?: boolean;
@@ -91,8 +95,12 @@ export declare function PreviewHeaderProvider({ children, websiteName, templateC
91
95
  siteWidth?: number | null;
92
96
  siteGutter?: number | null;
93
97
  blockGap?: number | null;
98
+ blockGapPhone?: number | null;
94
99
  onSiteGutterChange?: (v: number | null) => void;
100
+ siteGutterPhone?: number | null;
101
+ onSiteGutterPhoneChange?: (v: number | null) => void;
95
102
  onBlockGapChange?: (v: number | null) => void;
103
+ onBlockGapPhoneChange?: (v: number | null) => void;
96
104
  onSiteWidthChange?: (v: number | null) => void;
97
105
  textStyles?: unknown;
98
106
  onTextStylesChange?: (v: unknown) => void;
@@ -1 +1 @@
1
- "use client";import{jsx as U}from"react/jsx-runtime";import{createContext as Bt,useCallback as e,useContext as Mt,useMemo as Nt,useState as Yt}from"react";import{EditorSiteLogoContext as jt}from"./SiteLogoContext.js";import{IDENTITY_CARD_GAP as R,DEFAULT_HEADING_COMPRESSION as O,DEFAULT_HEADING_TYPOGRAPHY as g,DEFAULT_SIZES as B,DEFAULT_SWITCH_SHOWN as M,DEFAULT_THEME_MODE as N,DEFAULT_THEME_VALUE as Y}from"../../format/lib/theme.js";import{DEFAULT_FONTS as j}from"../../format/lib/fonts.js";const z=Bt({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:N,setThemeMode:()=>{},themeSwitchShown:M,setThemeSwitchShown:()=>{},theme:Y,themeRow:"none",setTheme:()=>{},fonts:j,setFonts:()=>{},sizes:B,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:R,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:O,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,blockGap:null,setSiteGutter:()=>{},setBlockGap:()=>{},headingTypography:g,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function Kt({children:o,websiteName:s=null,templateChrome:l=!1,templateName:r=null,chromePlaceholder:u=!1,themeMode:b=N,onThemeModeChange:i,themeSwitchShown:V=M,onThemeSwitchShownChange:c,theme:Z=Y,themeRow:q="none",onThemeChange:d,fonts:J=j,onFontsChange:S,sizes:K=B,onSizesChange:a,cornerRadiusPx:Q=null,onCornerRadiusPxChange:p,cardShadow:X=null,onCardShadowChange:m,shadowColor:$=null,onShadowColorChange:f,cardGap:C=R,onCardGapChange:E,hoverEffect:tt=null,onHoverEffectChange:h,headingCompression:et=O,onHeadingCompressionChange:T,siteWidth:st=null,onSiteWidthChange:x,siteGutter:ot=null,blockGap:lt=null,onSiteGutterChange:w,onBlockGapChange:D,headingTypography:nt=g,onHeadingTypographyChange:F,textStyles:rt=null,onTextStylesChange:_,wordStyles:ut=null,heroBackgroundFollowsWidth:it=null,onHeroBackgroundFollowsWidthChange:H,sectionBackgroundWidth:ct=null,onSectionBackgroundWidthChange:P,sectionContentWidth:dt=null,onSectionContentWidthChange:A,photographyGrayscale:St=null,onPhotographyGrayscaleChange:k,shareButtonOnPosts:at=null,onShareButtonOnPostsChange:v,themeFromDocument:pt=!1}){const[n,G]=Yt(null),mt=e(t=>G(gt=>gt??t),[]),ft=e(t=>i?.(t),[i]),Et=e(t=>c?.(t),[c]),ht=e(t=>d?.(t),[d]),Tt=e(t=>S?.(t),[S]),xt=e(t=>a?.(t),[a]),wt=e(t=>x?.(t),[x]),Dt=e(t=>w?.(t),[w]),Ft=e(t=>D?.(t),[D]),_t=e(t=>H?.(t),[H]),Ht=e(t=>P?.(t),[P]),Pt=e(t=>A?.(t),[A]),At=e(t=>k?.(t),[k]),kt=e(t=>v?.(t),[v]),vt=e(t=>p?.(t),[p]),Gt=e(t=>m?.(t),[m]),Wt=e(t=>f?.(t),[f]),yt=e(t=>E?.(t),[E]),It=e(t=>h?.(t),[h]),Lt=e(t=>T?.(t),[T]),Ut=e(t=>F?.(t),[F]),Rt=e(t=>_?.(t),[_]),W=n?.logoUrl,y=n?.logoReversed,I=n?.logoInkIsDark,L=n!==null,Ot=Nt(()=>({logo:L?{logoUrl:W,logoReversed:y,logoInkIsDark:I}:null,placeholder:l||u,wordmark:l?r:s}),[L,W,y,I,l,u,r,s]);return U(jt.Provider,{value:Ot,children:U(z.Provider,{value:{settings:n,setSettings:G,primeSettings:mt,websiteName:s,templateChrome:l,templateName:r,chromePlaceholder:u,themeMode:b,setThemeMode:ft,themeSwitchShown:V,setThemeSwitchShown:Et,theme:Z,themeRow:q,setTheme:ht,fonts:J,setFonts:Tt,sizes:K,setSizes:xt,cornerRadiusPx:Q,setCornerRadiusPx:vt,cardShadow:X,setCardShadow:Gt,shadowColor:$,setShadowColor:Wt,cardGap:C,setCardGap:yt,hoverEffect:tt,setHoverEffect:It,headingCompression:et,setHeadingCompression:Lt,siteWidth:st,setSiteWidth:wt,siteGutter:ot,blockGap:lt,setSiteGutter:Dt,setBlockGap:Ft,headingTypography:nt,setHeadingTypography:Ut,textStyles:rt,setTextStyles:Rt,wordStyles:ut,heroBackgroundFollowsWidth:it,setHeroBackgroundFollowsWidth:_t,sectionBackgroundWidth:ct,setSectionBackgroundWidth:Ht,sectionContentWidth:dt,setSectionContentWidth:Pt,photographyGrayscale:St,setPhotographyGrayscale:At,shareButtonOnPosts:at,setShareButtonOnPosts:kt,themeFromDocument:pt},children:o})})}const zt=()=>Mt(z);function Qt(o,s,l){return o?s===l?"read":"loading":"none"}function Xt(o,s){return{value:o,readFor:s}}function $t(o,s,l){return{value:s,readFor:o.readFor===l?l:null}}function Ct(){const{sectionContentWidth:o,themeFromDocument:s}=zt();return s?null:o}export{z as PreviewHeaderContext,Kt as PreviewHeaderProvider,Qt as siteThemeRow,$t as themeEdited,Xt as themeSeeded,zt as usePreviewHeader,Ct as useSiteContentWidth};
1
+ "use client";import{jsx as B}from"react/jsx-runtime";import{createContext as zt,useCallback as e,useContext as Vt,useMemo as Zt,useState as qt}from"react";import{EditorSiteLogoContext as Jt}from"./SiteLogoContext.js";import{IDENTITY_CARD_GAP as O,DEFAULT_HEADING_COMPRESSION as M,DEFAULT_HEADING_TYPOGRAPHY as g,DEFAULT_SIZES as N,DEFAULT_SWITCH_SHOWN as Y,DEFAULT_THEME_MODE as b,DEFAULT_THEME_VALUE as j}from"../../format/lib/theme.js";import{DEFAULT_FONTS as z}from"../../format/lib/fonts.js";const V=zt({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:b,setThemeMode:()=>{},themeSwitchShown:Y,setThemeSwitchShown:()=>{},theme:j,themeRow:"none",setTheme:()=>{},fonts:z,setFonts:()=>{},sizes:N,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:O,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:M,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:g,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function ee({children:o,websiteName:s=null,templateChrome:l=!1,templateName:r=null,chromePlaceholder:u=!1,themeMode:Z=b,onThemeModeChange:i,themeSwitchShown:q=Y,onThemeSwitchShownChange:c,theme:J=j,themeRow:K="none",onThemeChange:d,fonts:Q=z,onFontsChange:S,sizes:X=N,onSizesChange:a,cornerRadiusPx:$=null,onCornerRadiusPxChange:p,cardShadow:C=null,onCardShadowChange:m,shadowColor:tt=null,onShadowColorChange:h,cardGap:et=O,onCardGapChange:f,hoverEffect:st=null,onHoverEffectChange:E,headingCompression:ot=M,onHeadingCompressionChange:T,siteWidth:lt=null,onSiteWidthChange:P,siteGutter:nt=null,siteGutterPhone:rt=null,blockGap:ut=null,blockGapPhone:it=null,onSiteGutterChange:x,onSiteGutterPhoneChange:w,onBlockGapChange:D,onBlockGapPhoneChange:F,headingTypography:ct=g,onHeadingTypographyChange:G,textStyles:dt=null,onTextStylesChange:_,wordStyles:St=null,heroBackgroundFollowsWidth:at=null,onHeroBackgroundFollowsWidthChange:k,sectionBackgroundWidth:pt=null,onSectionBackgroundWidthChange:H,sectionContentWidth:mt=null,onSectionContentWidthChange:A,photographyGrayscale:ht=null,onPhotographyGrayscaleChange:v,shareButtonOnPosts:ft=null,onShareButtonOnPostsChange:W,themeFromDocument:Et=!1}){const[n,y]=qt(null),Tt=e(t=>y(jt=>jt??t),[]),Pt=e(t=>i?.(t),[i]),xt=e(t=>c?.(t),[c]),wt=e(t=>d?.(t),[d]),Dt=e(t=>S?.(t),[S]),Ft=e(t=>a?.(t),[a]),Gt=e(t=>P?.(t),[P]),_t=e(t=>x?.(t),[x]),kt=e(t=>w?.(t),[w]),Ht=e(t=>D?.(t),[D]),At=e(t=>F?.(t),[F]),vt=e(t=>k?.(t),[k]),Wt=e(t=>H?.(t),[H]),yt=e(t=>A?.(t),[A]),It=e(t=>v?.(t),[v]),Lt=e(t=>W?.(t),[W]),Ut=e(t=>p?.(t),[p]),Rt=e(t=>m?.(t),[m]),Bt=e(t=>h?.(t),[h]),Ot=e(t=>f?.(t),[f]),Mt=e(t=>E?.(t),[E]),gt=e(t=>T?.(t),[T]),Nt=e(t=>G?.(t),[G]),Yt=e(t=>_?.(t),[_]),I=n?.logoUrl,L=n?.logoReversed,U=n?.logoInkIsDark,R=n!==null,bt=Zt(()=>({logo:R?{logoUrl:I,logoReversed:L,logoInkIsDark:U}:null,placeholder:l||u,wordmark:l?r:s}),[R,I,L,U,l,u,r,s]);return B(Jt.Provider,{value:bt,children:B(V.Provider,{value:{settings:n,setSettings:y,primeSettings:Tt,websiteName:s,templateChrome:l,templateName:r,chromePlaceholder:u,themeMode:Z,setThemeMode:Pt,themeSwitchShown:q,setThemeSwitchShown:xt,theme:J,themeRow:K,setTheme:wt,fonts:Q,setFonts:Dt,sizes:X,setSizes:Ft,cornerRadiusPx:$,setCornerRadiusPx:Ut,cardShadow:C,setCardShadow:Rt,shadowColor:tt,setShadowColor:Bt,cardGap:et,setCardGap:Ot,hoverEffect:st,setHoverEffect:Mt,headingCompression:ot,setHeadingCompression:gt,siteWidth:lt,setSiteWidth:Gt,siteGutter:nt,siteGutterPhone:rt,blockGap:ut,blockGapPhone:it,setSiteGutter:_t,setSiteGutterPhone:kt,setBlockGap:Ht,setBlockGapPhone:At,headingTypography:ct,setHeadingTypography:Nt,textStyles:dt,setTextStyles:Yt,wordStyles:St,heroBackgroundFollowsWidth:at,setHeroBackgroundFollowsWidth:vt,sectionBackgroundWidth:pt,setSectionBackgroundWidth:Wt,sectionContentWidth:mt,setSectionContentWidth:yt,photographyGrayscale:ht,setPhotographyGrayscale:It,shareButtonOnPosts:ft,setShareButtonOnPosts:Lt,themeFromDocument:Et},children:o})})}const Kt=()=>Vt(V);function se(o,s,l){return o?s===l?"read":"loading":"none"}function oe(o,s){return{value:o,readFor:s}}function le(o,s,l){return{value:s,readFor:o.readFor===l?l:null}}function ne(){const{sectionContentWidth:o,themeFromDocument:s}=Kt();return s?null:o}export{V as PreviewHeaderContext,ee as PreviewHeaderProvider,se as siteThemeRow,le as themeEdited,oe as themeSeeded,Kt as usePreviewHeader,ne as useSiteContentWidth};
@@ -1,5 +1,6 @@
1
1
  import { type CSSProperties, type ReactNode } from "react";
2
2
  import { type PadValues } from "../lib/content/section-padding.js";
3
+ import type { SectionEdge } from "../lib/content/section-edge.js";
3
4
  export declare function InsideSiteColumn({ children }: {
4
5
  children?: ReactNode;
5
6
  }): import("react").JSX.Element;
@@ -10,7 +11,11 @@ export declare function NestedBoxChoice({ atTop, nested }: {
10
11
  atTop: ReactNode;
11
12
  nested: ReactNode;
12
13
  }): import("react").JSX.Element;
13
- export default function SiteGutterFrame({ contained, framedClass, fillClass, columnClass, style, tabLabel, pad, border, outerAttrs, box, outerStyle, children, }: {
14
+ export declare function NotASectionEdge({ children }: {
15
+ children?: ReactNode;
16
+ }): import("react").JSX.Element;
17
+ export declare function useSectionEdge(): SectionEdge | null;
18
+ export default function SiteGutterFrame({ contained, framedClass, fillClass, columnClass, style, tabLabel, pad, border, outerAttrs, box, edge, outerStyle, children, }: {
14
19
  contained: boolean;
15
20
  framedClass: string;
16
21
  fillClass: string;
@@ -24,6 +29,7 @@ export default function SiteGutterFrame({ contained, framedClass, fillClass, col
24
29
  border?: CSSProperties;
25
30
  outerAttrs?: Record<string, string>;
26
31
  box?: boolean;
32
+ edge?: boolean;
27
33
  outerStyle?: CSSProperties;
28
34
  children?: ReactNode;
29
35
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as e,Fragment as w}from"react/jsx-runtime";import{createContext as f,useContext as v}from"react";import{rootPadAttrs as A,wrapperPadAttrs as G}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as L,SECTION_BORDER_SELF_CLASS as D}from"../../format/lib/content/borders.js";import{drawsSiteGutter as T}from"../../format/lib/content/site-gutter.js";const h=f(!1);function K({children:t}){return e(h.Provider,{value:!0,children:t})}const p=f(!1);function M({children:t}){return e(p.Provider,{value:!0,children:t})}const I=f(!1);function Q({atTop:t,nested:i}){return e(w,{children:v(I)?i:t})}function k({contained:t,framedClass:i,fillClass:R,columnClass:y,style:x,tabLabel:E,pad:s,border:l,outerAttrs:a,box:g=!1,outerStyle:r,children:C}){const j=v(h),S=v(p),c=T(t,j),o=c&&!S,u=s&&!o?A(s.values,s.frame):null,d=l&&!o?l:null,F=[o?i:R,u?.className,d?D:null].filter(Boolean).join(" "),N=u||d?{...x,...u?.style,...d}:x,B=g?e(I.Provider,{value:!0,children:C}):C,m=c?e(h.Provider,{value:!0,children:B}):B,n=s&&o?G(s.values):null,O=a&&Object.keys(a).length>0?a:null,P=e("div",{...n?null:O,className:F,style:n||!r?N:{...N,...r},"data-tab-label":E,children:S?e(p.Provider,{value:!1,children:c?e("div",{className:y,children:m}):m}):m}),_=n?e("div",{...O,className:n.className,style:r?{...n.style,...r}:n.style,children:P}):P;return l&&o?e("div",{className:L,style:{display:"contents",...l},children:_}):_}export{K as InsideSiteColumn,Q as NestedBoxChoice,M as SplitBandAndColumn,k as default};
1
+ "use client";import{jsx as e,Fragment as D}from"react/jsx-runtime";import{createContext as a,useContext as s}from"react";import{rootPadAttrs as T,wrapperPadAttrs as k}from"../lib/content/section-padding.js";import{SECTION_BORDER_CLASS as b,SECTION_BORDER_SELF_CLASS as q}from"../../format/lib/content/borders.js";import{drawsSiteGutter as z}from"../../format/lib/content/site-gutter.js";const p=a(!1);function V({children:n}){return e(p.Provider,{value:!0,children:n})}const x=a(!1);function W({children:n}){return e(x.Provider,{value:!0,children:n})}const I=a(!1);function X({atTop:n,nested:d}){return e(D,{children:s(I)?d:n})}const u=a(void 0);function Y({children:n}){return e(u.Provider,{value:null,children:n})}function Z(){return s(u)??null}function H({contained:n,framedClass:d,fillClass:R,columnClass:y,style:S,tabLabel:j,pad:t,border:r,outerAttrs:m,box:C=!1,edge:A=!1,outerStyle:i,children:N}){const F=s(p),P=s(x),c=z(n,F),l=c&&!P,f=t&&!l?T(t.values,t.frame):null,v=r&&!l?r:null,w=[l?d:R,f?.className,v?q:null].filter(Boolean).join(" "),B=f||v?{...S,...f?.style,...v}:S,G=s(u),L=C&&A&&G===void 0?{gutter:c,...t?{pad:t.values}:{}}:null,E=C?e(I.Provider,{value:!0,children:e(u.Provider,{value:L,children:N})}):N,h=c?e(p.Provider,{value:!0,children:E}):E,o=t&&l?k(t.values):null,g=m&&Object.keys(m).length>0?m:null,O=e("div",{...o?null:g,className:w,style:o||!i?B:{...B,...i},"data-tab-label":j,children:P?e(x.Provider,{value:!1,children:c?e("div",{className:y,children:h}):h}):h}),_=o?e("div",{...g,className:o.className,style:i?{...o.style,...i}:o.style,children:O}):O;return r&&l?e("div",{className:b,style:{display:"contents",...r},children:_}):_}export{V as InsideSiteColumn,X as NestedBoxChoice,Y as NotASectionEdge,W as SplitBandAndColumn,H as default,Z as useSectionEdge};
@@ -1,8 +1,8 @@
1
1
  import type { ReactNode } from "react";
2
2
  import { type LoopDirection } from "../../../format/lib/animation/loop.js";
3
3
  export declare const LOOP_COPY_CLASS: {
4
- readonly across: "pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[calc(var(--sf-gap-len,0px)/2)]";
5
- readonly down: "pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[calc(var(--sf-gap-len,0px)/2)]";
4
+ readonly across: "pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))]";
5
+ readonly down: "pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))]";
6
6
  };
7
7
  export declare function loopCopyClass(direction: LoopDirection): string;
8
8
  export declare function LoopTrack({ direction, seconds, delay, editing, copy, }: {
@@ -1 +1 @@
1
- import{Fragment as c,jsx as s,jsxs as i}from"react/jsx-runtime";import{isVerticalLoop as e,loopAnimation as m}from"../../../format/lib/animation/loop.js";const n={across:"pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[calc(var(--sf-gap-len,0px)/2)]",down:"pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[calc(var(--sf-gap-len,0px)/2)]"};function o(a){return e(a)?n.down:n.across}function v({direction:a,seconds:l,delay:p,editing:t,copy:r}){if(t)return s(c,{children:r("")});const x=e(a);return s("div",{className:"overflow-hidden",children:i("div",{className:x?"flex flex-col":"flex w-max",style:{animation:m(a,l,p)},children:[r(o(a)),s("div",{className:"contents","aria-hidden":!0,inert:!0,children:r(o(a))})]})})}export{n as LOOP_COPY_CLASS,v as LoopTrack,o as loopCopyClass};
1
+ import{Fragment as c,jsx as e,jsxs as i}from"react/jsx-runtime";import{isVerticalLoop as n,loopAnimation as f}from"../../../format/lib/animation/loop.js";const s={across:"pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))]",down:"pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))]"};function o(a){return n(a)?s.down:s.across}function v({direction:a,seconds:p,delay:l,editing:t,copy:r}){if(t)return e(c,{children:r("")});const x=n(a);return e("div",{className:"overflow-hidden",children:i("div",{className:x?"flex flex-col":"flex w-max",style:{animation:f(a,p,l)},children:[r(o(a)),e("div",{className:"contents","aria-hidden":!0,inert:!0,children:r(o(a))})]})})}export{s as LOOP_COPY_CLASS,v as LoopTrack,o as loopCopyClass};
@@ -1 +1 @@
1
- import{BLOCK_FIXED_WIDTH as I,BLOCK_SIZE_KEYS as T,parseBlockWidthFit as x,phoneKey as _,parseTextFit as w}from"efficient-easel/draw";const g="sf-block-size",d={fit:"data-fit",fitPhone:"data-fit-phone",min:"data-fit-min",minPhone:"data-fit-min-phone"},s=n=>typeof n=="number"&&Number.isFinite(n)&&n>=0?n:void 0,y={desktop:{fill:"min-[800px]:w-full min-[800px]:[.flex-row>&]:grow",fixed:"min-[800px]:w-[min(var(--sf-bw),100%)] min-[800px]:basis-auto! min-[800px]:grow-0! min-[800px]:shrink-0"},phone:{fill:"max-[800px]:w-full",fixed:"max-[800px]:w-[min(var(--sf-bw-p),100%)] max-[800px]:basis-auto! max-[800px]:grow-0! max-[800px]:shrink-0"}},L={desktop:"--sf-bw",phone:"--sf-bw-p"},O={minWidth:{desktop:["--sf-bmin","min-[800px]:min-w-[var(--sf-bmin)]"],phone:["--sf-bmin-p","max-[800px]:min-w-[var(--sf-bmin-p)]"]},maxWidth:{desktop:["--sf-bmax","min-[800px]:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-[800px]:max-w-[var(--sf-bmax-p)]"]}};function C(n){const t=[],i={},o={},f=x(n.widthFit?.desktop),u=x(n.widthFit?.phone)??f,h=s(n.width?.desktop),l=s(n.width?.phone)??h;for(const[p,e,m]of[["desktop",f,h],["phone",u,l]])!e||e==="fit"||(t.push(y[p][e]),e==="fixed"&&(i[L[p]]=`${m??I.fallback}px`));for(const p of["minWidth","maxWidth"]){const e=s(n[p]?.desktop),m=s(n[p]?.phone)??e;for(const[F,b]of[["desktop",e],["phone",m]]){if(b===void 0)continue;const[S,W]=O[p][F];i[S]=`${b}px`,t.push(W)}}const c=w(n.textFit?.desktop),r=w(n.textFit?.phone),a=s(n.minFont?.desktop),k=s(n.minFont?.phone);return c&&(o[d.fit]=c),r&&(o[d.fitPhone]=r),a!==void 0&&(o[d.min]=String(a)),k!==void 0&&(o[d.minPhone]=String(k)),t.length===0&&Object.keys(o).length===0?null:{className:[g,...t].join(" "),style:i,attrs:o}}function E(n){if(s(n.maxWidth?.desktop)!==void 0)return!0;const t=x(n.widthFit?.desktop);return t==="fill"||t==="fixed"}function K(n){const t={};for(const i of T){const o=n[i],f=n[_(i)];(o!==void 0||f!==void 0)&&(t[i]={desktop:o,phone:f})}return t}export{g as BLOCK_SIZE_CLASS,d as TEXT_FIT_ATTR,E as blockSetsItsWidth,C as blockSizeOf,K as blockSizeValuesOf};
1
+ import{BLOCK_FIXED_WIDTH as I,BLOCK_SIZE_KEYS as T,parseBlockWidthFit as c,phoneKey as L,parseTextFit as b}from"efficient-easel/draw";const g="sf-block-size",m={fit:"data-fit",fitPhone:"data-fit-phone",min:"data-fit-min",minPhone:"data-fit-min-phone"},p=n=>typeof n=="number"&&Number.isFinite(n)&&n>=0?n:void 0,E={desktop:{fill:"min-[800px]:w-full min-[800px]:[.flex-row>&]:grow",fixed:"min-[800px]:w-[min(var(--sf-bw),100%)] min-[800px]:basis-auto! min-[800px]:grow-0! min-[800px]:shrink-0"},phone:{fill:"max-[800px]:w-full",fixed:"max-[800px]:w-[min(var(--sf-bw-p),100%)] max-[800px]:basis-auto! max-[800px]:grow-0! max-[800px]:shrink-0"}},O={desktop:"--sf-bw",phone:"--sf-bw-p"},y={minWidth:{desktop:["--sf-bmin","min-[800px]:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-[800px]:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","min-[800px]:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-[800px]:max-w-[var(--sf-bmax-p)]"]}},u={desktop:"min-[800px]:whitespace-nowrap min-[800px]:[&_*]:whitespace-nowrap!",phone:"max-[800px]:whitespace-nowrap max-[800px]:[&_*]:whitespace-nowrap!"};function P(n){const t=[],o={},i={},f=c(n.widthFit?.desktop),l=c(n.widthFit?.phone)??f,r=p(n.width?.desktop),S=p(n.width?.phone)??r;for(const[s,e,x]of[["desktop",f,r],["phone",l,S]])!e||e==="fit"||(t.push(E[s][e]),e==="fixed"&&(o[O[s]]=`${x??I.fallback}px`));for(const s of["minWidth","maxWidth"]){const e=p(n[s]?.desktop),x=p(n[s]?.phone)??e;for(const[_,w]of[["desktop",e],["phone",x]]){if(w===void 0)continue;const[F,W]=y[s][_];o[F]=`${w}px`,t.push(W)}}const d=b(n.textFit?.desktop),h=b(n.textFit?.phone),a=p(n.minFont?.desktop),k=p(n.minFont?.phone);return d==="line"&&t.push(u.desktop),(h??d)==="line"&&t.push(u.phone),d&&(i[m.fit]=d),h&&(i[m.fitPhone]=h),a!==void 0&&(i[m.min]=String(a)),k!==void 0&&(i[m.minPhone]=String(k)),t.length===0&&Object.keys(i).length===0?null:{className:[g,...t].join(" "),style:o,attrs:i}}function A(n){if(p(n.maxWidth?.desktop)!==void 0)return!0;const t=c(n.widthFit?.desktop);return t==="fill"||t==="fixed"}function K(n){const t={};for(const o of T){const i=n[o],f=n[L(o)];(i!==void 0||f!==void 0)&&(t[o]={desktop:i,phone:f})}return t}export{g as BLOCK_SIZE_CLASS,m as TEXT_FIT_ATTR,A as blockSetsItsWidth,P as blockSizeOf,K as blockSizeValuesOf};
@@ -0,0 +1,10 @@
1
+ import type { CSSProperties } from "react";
2
+ import type { PadValues } from "./section-padding.js";
3
+ export type SectionEdge = {
4
+ gutter: boolean;
5
+ pad?: PadValues;
6
+ };
7
+ export declare function sectionEdgeAttrs(edge: SectionEdge): {
8
+ className: string;
9
+ style?: CSSProperties;
10
+ };
@@ -0,0 +1 @@
1
+ import{viewOverrides as p}from"./view-values.js";import{finiteNumber as d}from"../../../format/lib/finite-number.js";const _="[--sf-edge-g:var(--sf-site-gutter,40px)] max-[960px]:[--sf-edge-g:min(24px,var(--sf-site-gutter,40px))] [--sf-edge-t:max(0px,calc(var(--sf-site-width,1600px)_-_100%_-_2_*_var(--sf-edge-g)))] [--sf-edge-al:min(var(--sf-edge-l),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-r))))] [--sf-edge-ar:min(var(--sf-edge-r),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-l))))]",c="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",x="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-[1100px]:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-[1100px]:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-[720px]:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-[720px]:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",n="ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] max-w-[100vw]";function m(g){const s={},e=g.pad??{};for(const[a,t,l,v]of[["l",e.left,e.leftTablet,e.leftPhone],["r",e.right,e.rightTablet,e.rightPhone]]){const f=d(t);f!==void 0&&(s[`--sf-edge-${a}d`]=`${f}px`);const r=p("spacing",f,d(l),d(v));typeof r.tablet=="number"&&(s[`--sf-edge-${a}t`]=`${r.tablet}px`),typeof r.phone=="number"&&(s[`--sf-edge-${a}p`]=`${r.phone}px`)}return{className:`${g.gutter?_:c} ${x} ${n}`,...Object.keys(s).length?{style:s}:{}}}export{m as sectionEdgeAttrs};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{phoneKey as a}from"efficient-easel/draw";import n from"../../../../../components/Flex.js";import{loopDelayOf as i,loopSecondsOf as l,parseLoop as t,parseLoopDirection as h}from"../../../../../../format/lib/animation/index.js";import{padValuesOf as c}from"../../../../content/section-padding.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{FlexMeta as d}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const y={...d,render:e=>o(n,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[a("share")],phoneRow:e.phoneRow,separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:c(e),contained:e.contained,fillHeight:g(e),shadow:e.shadow,loop:t(e.loop),scrollDirection:h(e.scrollDirection),loopSeconds:l({loopDuration:e.loopDuration}),loopDelay:i({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,content:e.content})};export{y as FlexRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{phoneKey as o}from"efficient-easel/draw";import{CountRowsContext as t,NO_COUNTS as c}from"../../../../../components/CountRowsContext.js";import h from"../../../../../components/Flex.js";import{loopDelayOf as d,loopSecondsOf as m,parseLoop as r,parseLoopDirection as g}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as u,declaredBlockSource as b,servedRows as f}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as S}from"../../../../content/section-padding.js";import{sectionFillsHeight as x}from"../../../../../../format/lib/content/section-min-height.js";import{FlexMeta as w}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const F={...w,render:e=>{const l=a(h,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[o("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[o("share")],wrapPhone:e[o("wrap")],phoneRow:e.phoneRow,columns:e.columns,separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:S(e),contained:e.contained,fillHeight:x(e),shadow:e.shadow,loop:r(e.loop),scrollDirection:g(e.scrollDirection),loopSeconds:m({loopDuration:e.loopDuration}),loopDelay:d({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[o("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,content:e.content}),n=b(e),i=n?n===u?f(e):c:null;return a(t.Provider,{value:i,children:l})}};export{F as FlexRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as u}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{cardTemplateField as y,namedRowField as k,rowFieldText as x}from"../../../../../../format/lib/content/card-template.js";import{ImageBlockMeta as B}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const j={...B,render:e=>{const t=k(e);return t?a(u,{type:"ImageBlock",props:e,children:(o,r)=>{const n=r?y(r.ownerType,t)?.alt:void 0;return c(e,o.src,(n&&x(r?.row,n))??e.alt)}}):c(e,e.src,e.alt)}};function c({aspect:e,contained:t,grayscale:o,href:r,fit:n,focal:d,focalPhone:i,corners:l,cornerSides:m,editor:f},s,g){return a(w,{src:s,alt:g,aspect:e,contained:t,grayscale:o,href:r,fit:n,focal:d,focalPhone:typeof i=="string"?i:void 0,corners:l,cornerSides:m,editing:f?.isEditing===!0})}export{j as ImageBlockRender};
1
+ import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as w}from"../../../../../components/CardRowContext.js";import k from"../../../../../components/ImageBlock.js";import{cardTemplateField as y,namedRowField as h,rowFieldText as S}from"../../../../../../format/lib/content/card-template.js";import{blockSizeOf as x,blockSizeValuesOf as B}from"../../../../content/block-size.js";import{padValuesOf as I}from"../../../../content/section-padding.js";import{ImageBlockMeta as z}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const P={...z,render:e=>{const o=h(e);return o?a(w,{type:"ImageBlock",props:e,children:(n,r)=>{const t=r?y(r.ownerType,o)?.alt:void 0;return c(e,n.src,(t&&S(r?.row,t))??e.alt)}}):c(e,e.src,e.alt)}};function c(e,o,n){const{aspect:r,contained:t,grayscale:l,href:d,fit:f,focal:m,focalPhone:i,corners:s,cornerSides:u,editor:g}=e;return a(k,{src:o,alt:n,aspect:r,contained:t,grayscale:l,href:d,fit:f,focal:m,focalPhone:typeof i=="string"?i:void 0,corners:s,cornerSides:u,pad:I(e),ownSize:x(B(e))!==null,editing:g?.isEditing===!0})}export{P as ImageBlockRender};
@@ -1 +1 @@
1
- import{Fragment as g,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as p}from"../../../../../components/CardRowContext.js";import{namedRowField as y}from"../../../../../../format/lib/content/card-template.js";import{blockSetsItsWidth as S,blockSizeValuesOf as b}from"../../../../content/block-size.js";import{padValuesOf as u}from"../../../../content/section-padding.js";import w from"../../../../../components/Text.js";import{hidableText as a,readHidable as P}from"efficient-easel/draw";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as T}from"../../scaffold.js";import{readPartStyle as F}from"../../../part-styles.js";import{TextMeta as R}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const M={...R,render:t=>{const{text:o,align:m,alignPhone:l,tone:f,tag:x,contained:c,editor:h}=t;if(P(o).hidden)return r(g,{});const i=F(t,"text").textStyle,s=i?.startsWith("heading-")?d.heading:d.body,n=e=>r(w,{text:T(e,s,h)??"",align:m,alignPhone:l,tone:f,tag:x,textStyle:i,ownWidth:S(b(t)),contained:c,pad:u(t)});return y(t)?r(p,{type:"Text",props:t,children:e=>n(a(e.text))}):n(a(o))}};export{M as TextRender};
1
+ import{Fragment as p,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as y}from"../../../../../components/CardRowContext.js";import{CountDrawn as w}from"../../../../../components/CountRowsContext.js";import{namedRowField as S}from"../../../../../../format/lib/content/card-template.js";import{blockSetsItsWidth as b,blockSizeValuesOf as P}from"../../../../content/block-size.js";import{linkedCount as T}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as k}from"../../../../content/section-padding.js";import C from"../../../../../components/Text.js";import{hidableText as i,readHidable as F}from"efficient-easel/draw";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as R}from"../../scaffold.js";import{readPartStyle as W}from"../../../part-styles.js";import{TextMeta as j}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const E={...j,render:t=>{const{text:o,align:l,alignPhone:f,tone:c,tag:x,contained:h,editor:s}=t;if(F(o).hidden)return r(p,{});const a=W(t,"text").textStyle,g=a?.startsWith("heading-")?d.heading:d.body,n=e=>r(C,{text:R(e,g,s)??"",align:l,alignPhone:f,tone:c,tag:x,textStyle:a,ownWidth:b(P(t)),contained:h,pad:k(t)}),u=S(t),m=T(t);return m?r(w,{countKey:m,children:e=>n(e??i(o))}):u?r(y,{type:"Text",props:t,children:e=>n(i(e.text))}):n(i(o))}};export{E as TextRender};
@@ -5,5 +5,6 @@ export declare function headLookOf(type: string): HeadLook;
5
5
  export declare const HEAD_BELOW: Readonly<Record<HeadLook, number>>;
6
6
  export declare function editorialHeadTree(num: string, title: string, description: string): PartRow;
7
7
  export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
8
+ export declare const fluidToken: (step: string, minPx: number, vw: number, px: number) => Props;
8
9
  export declare function headTree(type: string): PartRow;
9
10
  export {};
@@ -1,2 +1,2 @@
1
- import{SPLITTABLE_SECTIONS as f}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as x,DIM as B,INNER_BOX as o,SH_LINK as E,TEXT as S,smallText as N}from"./section-to-box-row-parts.js";import{labelTextSeed as P}from"../../../../../format/lib/document/text-seeds.js";function L(e){if(e==="ProductGrid")return"shelf";const t=f[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const W={standard:64,editorial:60,simple:36,essay:28,shelf:20},_={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function I(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=f[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function j(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=d.get(i);if(r)return r;const s=w({num:e,title:t,description:n,link:!1});return d.set(i,s),s}const g={top:0,right:0,bottom:1,left:0},a=(e,t,n,i)=>({sizeToken:{step:e,px:t,...i?{stepPhone:i}:{},...n?{pxPhone:n}:{}}}),T=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>N(e,{...a("label",t),...n}),c=(e,t)=>({kind:"text",key:e,role:"heading",props:S,style:{textStyle:"heading-2",...t}}),u=(e,t,n,i)=>({kind:"text",key:e,props:{...B,align:"right",maxWidth:n},style:{textStyle:"body-5",fontRole:"heading",...a("body",t),...i}}),k={...x,align:"right",...E,icon:"arrow-right",iconPosition:"after"},h=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:k,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),b=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...S,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?M(P()):{},...n.style}}}}},M=e=>e._partStyles.text??{};function O(e,t){const n=_[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,m=c(t.title,i?{...T("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),p=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionBorder:g,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...p?[b(t.num,"==01== / Collections",s)]:[]]},m,...p?[b(t.title,`Three ranges,
2
- one standard.`,m)]:[]]},{kind:"group",name:"Words",props:{...o,align:"end",gap:12},parts:[...t.description?[u(t.description,14,340,{lineHeight:1.5})]:[],...t.link?[h(14)]:[],...p?[{kind:"block",type:"ButtonBlock",props:{...k,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:h(14).style}}}]:[]]}]}}function w(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionBorder:g,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,sectionPaddingBottom:8},parts:[l(e.num,13)]},c(e.title,{...T("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,align:"end",sectionPaddingBottom:4},parts:e.description?[u(e.description,14,360,{lineHeight:1.5})]:[]}]}}function H(e,t){return{kind:"group",name:"Header",props:{...o,gap:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],A=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function R(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:g,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>A(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[u(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[h(13)]:[]]}]}}const d=new Map;function D(e){const t=d.get(e);if(t)return t;const n=I(e),i=L(e),r=i==="editorial"?w(n):i==="simple"?H(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?H(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?R(n):O(e,n);return d.set(e,r),r}export{W as HEAD_BELOW,j as editorialHeadTree,L as headLookOf,D as headTree,a as token};
1
+ import{readHidable as N}from"efficient-easel/draw";import{SPLITTABLE_SECTIONS as T}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as B,DIM as E,INNER_BOX as o,SH_LINK as L,TEXT as k,smallText as _}from"./section-to-box-row-parts.js";import{labelTextSeed as O}from"../../../../../format/lib/document/text-seeds.js";function M(e){if(e==="ProductGrid")return"shelf";const t=T[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const K={standard:64,editorial:60,simple:36,essay:28,shelf:20},I={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function W(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=T[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function U(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=p.get(i);if(r)return r;const s=H({num:e,title:t,description:n,link:!1});return p.set(i,s),s}const h={top:0,right:0,bottom:1,left:0},a=(e,t,n,i)=>({sizeToken:{step:e,px:t,...i?{stepPhone:i}:{},...n?{pxPhone:n}:{}}}),P=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>_(e,{...a("label",t),...n}),A=(e,t)=>{const n=N(e).text.trim();return/\s/.test(n)?{minWidth:Math.ceil(n.length*t*.9),minWidthPhone:0,widthFitPhone:"fill"}:{}},c=(e,t)=>({kind:"text",key:e,role:"heading",props:k,style:{textStyle:"heading-2",...t}}),u=800,m=(e,t,n,i)=>({kind:"text",key:e,props:{...E,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:u}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i}}),b={...B,align:"right",alignPhone:"left",...L,icon:"arrow-right",iconPosition:"after"},f=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),w=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...k,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?C(O()):{},...n.style}}}}},C=e=>e._partStyles.text??{},d={widthFitPhone:"fill"};function F(e,t){const n=I[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,S=c(t.title,i?{...P("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:h,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,...d,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,...d,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...g?[w(t.num,"==01== / Collections",s)]:[]]},{kind:"group",name:"Heading",props:{...o,...d},parts:[S,...g?[w(t.title,`Three ranges,
2
+ one standard.`,S)]:[]]}]},{kind:"group",name:"Words",props:{...o,...d,gap:12,maxWidth:340,maxWidthPhone:u},parts:[...t.description?[m(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[f(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:f(14).style}}}]:[]]}]}}function H(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:h,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:t=>({...o,sectionPaddingBottom:8,...A(t[e.num],13)}),parts:[l(e.num,13)]},c(e.title,{...P("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:u},parts:e.description?[m(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function x(e,t){return{kind:"group",name:"Header",props:{...o,gap:16,gapPhone:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],R=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function z(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:h,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>R(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[m(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[f(13)]:[]]}]}}const p=new Map;function X(e){const t=p.get(e);if(t)return t;const n=W(e),i=M(e),r=i==="editorial"?H(n):i==="simple"?x(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?x(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?z(n):F(e,n);return p.set(e,r),r}export{K as HEAD_BELOW,U as editorialHeadTree,P as fluidToken,M as headLookOf,X as headTree,a as token};
@@ -2,6 +2,7 @@ import { SECTION_PAD_INNER_DEFAULTS } from "../../passes/section-padding.js";
2
2
  import { type BoxEntry, type ConvertContext, type PartRow, type SiteWrite } from "../../../sections/section-to-box.js";
3
3
  type Props = Record<string, unknown>;
4
4
  export declare const TEXT: Props;
5
+ export declare const NUMBER_TEXT: Props;
5
6
  export declare const DIM: Props;
6
7
  export declare const BUTTON: Props;
7
8
  export declare const SH_LINK: Props;
@@ -26,7 +27,11 @@ export declare const headingCaseOf: (key: string) => (node: {
26
27
  props: Props;
27
28
  }) => readonly SiteWrite[];
28
29
  export declare const smallText: (key: string, style?: Props) => PartRow;
30
+ export declare const numberAndUnit: (number: unknown, unit: unknown) => string;
29
31
  export declare const bandPage: (stored: unknown, ctx: ConvertContext) => number;
32
+ export declare const sectionPage: (p: Props, ctx: ConvertContext) => import("../../../../../format/lib/theme.js").ThemeColors | undefined;
33
+ export declare const fillFrom: (colour: "surface" | "background") => (p: Props, ctx: ConvertContext) => Props;
34
+ export declare const lineBorder: (p: Props, ctx: ConvertContext) => Props;
30
35
  export declare const bandIndex: (p: Props, ctx: ConvertContext) => number;
31
36
  export declare const bandAccent: (stored: unknown, p: Props, ctx: ConvertContext) => unknown;
32
37
  export declare const bandProps: (p: Props, ctx: ConvertContext) => Props;
@@ -1 +1 @@
1
- import{phoneKey as P}from"efficient-easel/draw";import{ENTRANCE_KEYS as m}from"../../../animation/entrance.js";import{NESTED_BOX_PADDING as u}from"../../../../../format/lib/content/box-layout.js";import{resolveSectionPadding as f}from"../../../content/section-padding.js";import{ButtonBlockMeta as x}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{TextMeta as b}from"../../../../../format/lib/document/blocks/general/Text/meta.js";import{SECTION_PAD_INNER_DEFAULTS as l}from"../../passes/section-padding.js";import{finiteNumber as d}from"../../../../../format/lib/finite-number.js";import{convertTheme as r,hasWords as T}from"../../../sections/section-to-box.js";import{bandPresetIndex as B}from"../../../../../format/lib/theme.js";const{text:C,tag:H,..._}=b.defaultProps,a=_,R={...a,tone:"dim"},{label:L,href:K,...E}=x.defaultProps,U=E,X={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},p={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},F={...p,direction:"column",...u},j={...p,sectionAccent:0},G=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(m).flatMap(t=>[t,P(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],i="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",V={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:i,fullWidth:i,pageWidth:i,backgroundWidth:i,contentWidth:i,contentMax:i},J=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function S(t,o){const e=d(t.sectionPaddingTop)??0,n=d(t.sectionPaddingBottom)??0;return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,sectionPaddingTopPhone:(d(t.sectionPaddingTopPhone)??e)+o.topPhone,sectionPaddingBottomPhone:(d(t.sectionPaddingBottomPhone)??n)+o.bottomPhone}}const Y=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>S(n,typeof t=="function"?t(n):t)[o]]);function s(t,o){const e=f(t,l[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const q=t=>[["padTop","sectionPaddingTop",(o,e)=>s(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>s(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>s(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>s(e,t).sectionPaddingBottom]],N={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},z=t=>o=>T(o.props[t])?[N]:[],Q=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:a,...o?{style:o}:{}}),g=t=>t.background!=="transparent",h=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:r(o)?.selected??0,c=(t,o)=>{const e=r(o)?.themes;return e&&g(t)?B(e,h(t.sectionAccent,o)):-1},Z=(t,o,e)=>{const n=c(o,e);return n>=0?n:t},$=(t,o)=>{const e=c(t,o);return e>=0?{sectionAccent:e}:{}},tt=(t,o)=>g(t.props)&&c(t.props,o)<0?[{kind:"band-preset",page:h(t.props.sectionAccent,o)}]:[];export{p as BOX,U as BUTTON,R as DIM,V as DROP_COMMON,J as DROP_SIDE_PADDING,N as HEADING_CASE_UPPER,F as INNER_BOX,G as SAME_KEYS,j as SECTION_BOX,X as SH_LINK,a as TEXT,Z as bandAccent,c as bandIndex,h as bandPage,$ as bandProps,tt as bandWrites,z as headingCaseOf,s as innerPad,q as innerPadKeys,Q as smallText,S as wrapperPad,Y as wrapperPadKeys};
1
+ import{phoneKey as l}from"efficient-easel/draw";import{ENTRANCE_KEYS as u}from"../../../animation/entrance.js";import{COUNT_KEY_PROP as f}from"../../../../../format/lib/content/block-sources.js";import{NESTED_BOX_PADDING as x}from"../../../../../format/lib/content/box-layout.js";import{resolveSectionPadding as b}from"../../../content/section-padding.js";import{ButtonBlockMeta as T}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{TextMeta as B}from"../../../../../format/lib/document/blocks/general/Text/meta.js";import{SECTION_PAD_INNER_DEFAULTS as _}from"../../passes/section-padding.js";import{finiteNumber as s}from"../../../../../format/lib/finite-number.js";import{convertTheme as r,hasWords as E}from"../../../sections/section-to-box.js";import{bandPresetIndex as N}from"../../../../../format/lib/theme.js";const{text:K,tag:L,...O}=B.defaultProps,c=O,X={...c,[f]:""},F={...c,tone:"dim"},{label:j,href:G,...S}=T.defaultProps,V=S,Y={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},P={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},$={...P,direction:"column",...x},J={...P,sectionAccent:0},q=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(u).flatMap(t=>[t,l(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],i="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",z={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:i,fullWidth:i,pageWidth:i,backgroundWidth:i,contentWidth:i,contentMax:i},Q=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function A(t,o){const e=s(t.sectionPaddingTop)??0,n=s(t.sectionPaddingBottom)??0;return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,sectionPaddingTopPhone:(s(t.sectionPaddingTopPhone)??e)+o.topPhone,sectionPaddingBottomPhone:(s(t.sectionPaddingBottomPhone)??n)+o.bottomPhone}}const Z=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>A(n,typeof t=="function"?t(n):t)[o]]);function d(t,o){const e=b(t,_[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const tt=t=>[["padTop","sectionPaddingTop",(o,e)=>d(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>d(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>d(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>d(e,t).sectionPaddingBottom]],D={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},ot=t=>o=>E(o.props[t])?[D]:[],et=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:c,...o?{style:o}:{}}),h=t=>t.background!=="transparent",nt=(t,o)=>{const[e,n]=[t,o].map(g=>typeof g=="string"?g.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},a=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:r(o)?.selected??0,m=(t,o)=>r(o)?.themes[a(t.sectionAccent??0,o)],it=t=>(o,e)=>{const n=m(o,e)?.[t];return n?{fillColor:n}:{}},st=(t,o)=>{const e=m(t,o)?.line;return e?{buttonBorder:{width:1,color:e}}:{}},p=(t,o)=>{const e=r(o)?.themes;return e&&h(t)?N(e,a(t.sectionAccent,o)):-1},dt=(t,o,e)=>{const n=p(o,e);return n>=0?n:t},rt=(t,o)=>{const e=p(t,o);return e>=0?{sectionAccent:e}:{}},ct=(t,o)=>h(t.props)&&p(t.props,o)<0?[{kind:"band-preset",page:a(t.props.sectionAccent,o)}]:[];export{P as BOX,V as BUTTON,F as DIM,z as DROP_COMMON,Q as DROP_SIDE_PADDING,D as HEADING_CASE_UPPER,$ as INNER_BOX,X as NUMBER_TEXT,q as SAME_KEYS,J as SECTION_BOX,Y as SH_LINK,c as TEXT,dt as bandAccent,p as bandIndex,a as bandPage,rt as bandProps,ct as bandWrites,it as fillFrom,ot as headingCaseOf,d as innerPad,tt as innerPadKeys,st as lineBorder,nt as numberAndUnit,m as sectionPage,et as smallText,A as wrapperPad,Z as wrapperPadKeys};
@@ -1,2 +1,2 @@
1
- import type { SectionToBoxRow } from "../../../sections/section-to-box.js";
1
+ import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
2
2
  export declare const CARDS_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
@@ -1 +1 @@
1
- import{cardColumns as D}from"../../../../components/Cards.js";import{CardsMeta as L}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as v}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as g}from"../../../../../format/lib/finite-number.js";import{parseSectionHeadPlacement as F}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as K,DIM as h,DROP_COMMON as a,DROP_SIDE_PADDING as i,INNER_BOX as s,SAME_KEYS as d,SECTION_BOX as p,SH_LINK as I,TEXT as r,headingCaseOf as m,smallText as n,wrapperPad as l,wrapperPadKeys as c}from"./section-to-box-row-parts.js";import{headTree as b}from"./section-head-looks.js";const t=(e,o,B,T)=>({sectionBorder:{top:e,right:o,bottom:B,left:T}}),u=(e,o=e)=>({sectionPaddingTop:e,sectionPaddingRight:e,sectionPaddingBottom:e,sectionPaddingLeft:e,sectionPaddingTopPhone:o,sectionPaddingRightPhone:o,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:o}),k=e=>o=>D(g(o.columns)??g(e.columns)),y=e=>({kind:"group",name:"Grid",props:{...s,gap:0,...t(1,0,0,1)},parts:[e]}),w={...s,direction:"row",gap:0,share:"equal"},P="its head sits in a Box of its own above it (own-box): the row draws the head inline",x=e=>F(e.headPlacement)==="own-box",f="inline is the head the row draws; an own-box node is skipped (`skip`)",A=e=>({kind:"group",name:"Heading",props:e,parts:[n("eyebrow"),{kind:"text",key:"title",role:"heading",props:r,style:{textStyle:"heading-3"},was:{size:44}}]}),S={top:72,bottom:72,topPhone:72,bottomPhone:72},z={...s,gap:12,...u(32,28),...t(0,1,1,0)},M={name:"Cards",boxProps:e=>({...p,direction:"column",gap:36,...l(e,S)}),box:[...d,...c(S)],skip:e=>x(e)?P:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: a data list, which waits for the card template on Cards":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[b("Cards"),y({kind:"list",key:"items",name:"Card",perRow:k(L.defaultProps),rowName:"Row",rowProps:w,props:z,parts:[{kind:"text",key:"title",props:r,style:{textStyle:"heading-3"},was:{size:20}},{kind:"text",key:"body",props:h,style:{textStyle:"body-1"},was:{size:15}}]})],site:m("title"),drop:{...a,...i,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",headPlacement:f,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},O={top:76,bottom:76,topPhone:76,bottomPhone:76},W={...s,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...t(0,1,1,0)},R={textStyle:"body-1",color:"text"},N=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",J={name:"Key Features",boxProps:e=>({...p,direction:"column",gap:44,...t(1,0,1,0),...l(e,O)}),box:[...d,...c(O)],parts:[A({...s,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),y({kind:"list",key:"items",name:"Feature",perRow:k(v.defaultProps),rowName:"Row",rowProps:w,props:W,parts:[{kind:"button",key:"label",href:"href",when:N,variant:"ghost",props:{...K,...I,icon:"none"},style:R},{kind:"text",key:"label",when:(e,o)=>!N(e,o),props:r,style:R,was:{size:17}}]})],site:m("title"),drop:{...a,...i,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},_={top:120,bottom:120,topPhone:80,bottomPhone:80},H={...s,gap:16,sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...t(0,1,1,0)},C={...s,direction:"row",justify:"between",gap:12,share:"content"},X={name:"Recurring Columns",boxProps:e=>({...p,direction:"column",gap:60,...t(0,0,1,0),...l(e,_)}),box:[...d,...c(_)],skip:e=>x(e)?P:void 0,parts:[b("Series"),y({kind:"list",key:"cards",name:"Column",perRow:()=>4,rowName:"Row",rowProps:w,props:H,parts:[{kind:"group",name:"Top",props:C,parts:[n("num"),n("since")]},{kind:"text",key:"title",props:{...r,tag:"h3"},style:{textStyle:"heading-3"},was:{size:28}},{kind:"text",key:"desc",props:h,style:{textStyle:"body-5"},was:{size:14}},{kind:"group",name:"Footer",props:{...C,justify:"start",align:"center",gap:8,sectionPaddingTop:16,...t(1,0,0,0)},parts:[n("entries",{color:"text"}),n("entriesLabel",{color:"labels"})]}]})],site:m("headTitle"),drop:{...a,...i,headPlacement:f,viewLabel:"the ONE label every card's footer repeated: a block per card would be N copies of one words. Empty on every live node (3 of 3 store it hidden or empty, JJ's export, 2026-10-24)",background:"needs a Box background ink (the section stores a theme token, `var(--section-bg)` on 3 of 3 live nodes): the Box's theme draws its background"}},E={top:60,bottom:60,topPhone:40,bottomPhone:40},q={...s,gap:8,...u(24),...t(1,1,1,1)},j={name:"Document Detail Cards",boxProps:e=>({...p,direction:"column",gap:40,...t(0,0,1,0),...l(e,E)}),box:[...d,...c(E)],parts:[{kind:"list",key:"cards",name:"Card",perRow:()=>3,rowName:"Row",rowProps:{...w,gap:40},props:q,parts:[n("label"),{kind:"text",key:"value",props:r,style:{textStyle:"heading-3"},was:{size:20}},{kind:"text",key:"desc",props:h,style:{textStyle:"body-5",italic:!0},was:{size:14}}]}],drop:{...a,...i}},ee={Cards:M,KeyFeatures:J,Series:X,DocMetaCards:j};export{ee as CARDS_SECTION_TO_BOX};
1
+ import{phoneKey as M,readHidable as x}from"efficient-easel/draw";import{parseHexColor as G}from"efficient-shell/format";import{cardColumns as X}from"../../../../components/Cards.js";import{resolveSectionBackground as J,THEME_SECTION_BG as S}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as U}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as q}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as _}from"../../../../../format/lib/finite-number.js";import{parseSectionHeadPlacement as V}from"../../../../../format/lib/sections/section-head-placement.js";import{hasWords as d}from"../../../sections/section-to-box.js";import{labelTextSeed as j}from"../../../../../format/lib/document/text-seeds.js";import{bandAccent as z,bandProps as Y,bandWrites as Q,BUTTON as Z,DIM as p,DROP_COMMON as l,DROP_SIDE_PADDING as c,INNER_BOX as t,numberAndUnit as $,SAME_KEYS as h,SECTION_BOX as g,fillFrom as i,SH_LINK as ee,TEXT as a,smallText as m,wrapperPad as w,wrapperPadKeys as u}from"./section-to-box-row-parts.js";import{headTree as R,token as s}from"./section-head-looks.js";import{SECTION_BG_BUILT_IN as oe}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const r=(e,o,n,y)=>({sectionBorder:{top:e,right:o,bottom:n,left:y}}),O=(e,o=e)=>({sectionPaddingTop:e,sectionPaddingRight:e,sectionPaddingBottom:e,sectionPaddingLeft:e,sectionPaddingTopPhone:o,sectionPaddingRightPhone:o,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:o}),C=e=>o=>X(_(o.columns)??_(e.columns)),T=e=>({kind:"group",name:"Grid",props:{...t,gap:0,...r(1,0,0,1)},parts:[e]}),b={...t,direction:"row",gap:0,share:"equal"},L="its head sits in a Box of its own above it (own-box): the row draws the head inline",N=e=>V(e.headPlacement)==="own-box",B="inline is the head the row draws; an own-box node is skipped (`skip`)",te=e=>({kind:"group",name:"Heading",props:e,parts:[m("eyebrow"),{kind:"text",key:"title",role:"heading",props:a,style:{textStyle:"heading-3",case:"upper"},was:{size:44}}]}),E={top:72,bottom:72,topPhone:72,bottomPhone:72},ne={...t,gap:12,gapPhone:12,...O(32,28),...r(0,1,1,0)},se={name:"Cards",boxProps:(e,o)=>({...g,direction:"column",gap:36,gapPhone:28,...i("surface")(e,o),...w(e,E)}),box:[...h,...u(E)],skip:e=>N(e)?L:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: a data list, which waits for the card template on Cards":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[R("Cards"),T({kind:"list",key:"items",name:"Card",perRow:C(U.defaultProps),rowName:"Row",rowProps:b,props:(e,o)=>({...ne,...i("background")(e,o)}),parts:[{kind:"text",key:"title",props:a,style:{textStyle:"heading-3",...s("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02}},{kind:"text",key:"body",props:p,style:{textStyle:"body-1",...s("body",15),lineHeight:1.6}}]})],drop:{...l,...c,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",headPlacement:B,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},v={top:76,bottom:76,topPhone:76,bottomPhone:76},re={...t,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...r(0,1,1,0)},F={textStyle:"body-1",color:"text"},H=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",ie={name:"Key Features",boxProps:e=>({...g,direction:"column",gap:44,...r(1,0,1,0),...w(e,v)}),box:[...h,...u(v)],parts:[te({...t,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),T({kind:"list",key:"items",name:"Feature",perRow:C(q.defaultProps),rowName:"Row",rowProps:b,props:re,parts:[{kind:"button",key:"label",href:"href",when:H,variant:"ghost",props:{...Z,...ee,icon:"none"},style:F},{kind:"text",key:"label",when:(e,o)=>!H(e,o),props:a,style:F,was:{size:17}}]})],drop:{...l,...c,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},D={top:120,bottom:120,topPhone:80,bottomPhone:80},P=e=>{const o=J(typeof e.background=="string"?e.background:void 0,oe.Series);return o&&o!=="transparent"?o:void 0},f=e=>P(e)===S,ae=(e,o)=>{const n=P(e);return!n||n===S?{}:n==="var(--site-surface)"?i("surface")(e,o):G(n.trim())?{fillColor:n.trim()}:{}},I=e=>{const o=P(e)?1:2;return{gap:o,gapPhone:o}},de={...t,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},A={...t,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[M("share")]:"content"},K={textStyle:"body-5",...s("label",12),letterSpacing:.22,case:"upper",lineHeight:1.5},k=e=>$(e.entries,e.entriesLabel),pe=e=>d(e.viewLabel)&&!x(e.viewLabel).hidden,le={name:"Recurring Columns",boxProps:(e,o)=>({...g,direction:"column",gap:60,gapPhone:60,...r(0,0,1,0),...f(e)?Y(e,o):{},...ae(e,o),...w(e,D)}),box:[...h.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,n)=>f(o)?z(e,o,n):e],...u(D)],skip:e=>N(e)?L:void 0,site:(e,o)=>f(e.props)?Q(e,o):[],parts:[R("Series"),{kind:"group",name:"Grid",props:(e,o)=>({...t,...I(e),...P(e)?{}:i("background")(e,o)}),parts:[{kind:"list",key:"cards",name:"Column",perRow:()=>4,rowName:"Row",rowProps:e=>({...b,...I(e)}),rowFiller:t,props:(e,o)=>({...de,...i("background")(e,o)}),parts:[{kind:"group",name:"Words",props:{...t,gap:16,gapPhone:16},parts:[{kind:"group",name:"Top",props:A,parts:[m("num",s("label",13)),m("since",s("label",13))]},{kind:"text",key:"title",props:{...a,tag:"h3"},style:{textStyle:"heading-3",...s("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"desc",props:p,style:{textStyle:"body-5",fontRole:"heading",...s("body",14),lineHeight:1.6}}]},{kind:"group",name:"Footer",when:(e,o)=>d(o?.entries)||d(o?.entriesLabel)||pe(e),props:{...A,align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...r(1,0,0,0)},parts:[{kind:"block",type:"Text",when:(e,o)=>o!==void 0&&k(o)!=="",box:[["entries","text",(e,o)=>k(o)],["entriesLabel","text",(e,o)=>k(o)]],props:{...p,_partStyles:{text:K}}},{kind:"group",name:"View",props:{...t,maxWidthPhone:266},parts:[{kind:"block",type:"Text",when:e=>d(e.viewLabel),props:e=>{const o=x(e.viewLabel),n=j()._partStyles,y=e._partStyles?.viewLabel;return{...a,text:o.text,_partStyles:{text:{...n.text,...K,...y}},...o.hidden?{_hidden:!0}:{}}}}]}]}]}]}],reads:{viewLabel:"a Text at the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill; the grid's gap"},drop:{...l,...c,headPlacement:B}},W={top:60,bottom:60,topPhone:40,bottomPhone:40},ce={...t,gap:8,gapPhone:8,...O(24),...r(1,1,1,1)},he={name:"Document Detail Cards",boxProps:e=>({...g,direction:"column",gap:40,gapPhone:16,...r(0,0,1,0),...w(e,W)}),box:[...h,...u(W)],parts:[{kind:"list",key:"cards",name:"Card",perRow:()=>3,rowName:"Row",rowProps:{...b,gap:40,gapPhone:16},props:(e,o)=>({...ce,...i("surface")(e,o)}),parts:[m("label",{...s("label",12),lineHeight:1.5}),{kind:"group",name:"Words",props:{...t,gap:14,gapPhone:14},parts:[{kind:"text",key:"value",props:a,style:{textStyle:"heading-3",...s("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}},{kind:"text",key:"desc",props:p,style:{textStyle:"body-5",fontRole:"accent",...s("body",14),italic:!0,lineHeight:1.5}}]}]}],drop:{...l,...c}},Oe={Cards:se,KeyFeatures:ie,Series:le,DocMetaCards:he};export{Oe as CARDS_SECTION_TO_BOX};