@riverbankcms/sdk 0.173.0 → 0.174.1

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 (208) hide show
  1. package/README.md +6 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-O50mTMCY.d.ts → BlocksIslandsHydrator-YRmc-Yxz.d.ts} +1 -1
  3. package/dist/_dts/{Page-Bk99sJwV.d.ts → Page-Du0zX1B-.d.ts} +27 -16
  4. package/dist/_dts/{SdkPreviewMode-DzAue6Kj.d.ts → SdkPreviewMode-4L8v3FkY.d.ts} +14 -7
  5. package/dist/_dts/{client-ZlNEIvlU.d.ts → client-B1J6Akyf.d.ts} +1 -1
  6. package/dist/_dts/{content-types-DBXPNc0h.d.ts → content-types-CGGYI0u_.d.ts} +2 -2
  7. package/dist/_dts/{contracts-D9bhu0bb.d.ts → contracts-CHMlw9hT.d.ts} +5 -4
  8. package/dist/_dts/{footerPageOutline-Bfap3soN.d.ts → footerPageOutline-DIHSU1Vr.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DwCdg31h.d.ts → generatePageMetadata-JITXD6BU.d.ts} +2 -2
  10. package/dist/_dts/{index-Dq_AboWN.d.ts → index-BLEKFHt1.d.ts} +1 -1
  11. package/dist/_dts/{index-BnatulTs.d.ts → index-BgOr1Xyz.d.ts} +3 -3
  12. package/dist/_dts/{index-KXh8FQ2s.d.ts → index-CF62FntA.d.ts} +2 -2
  13. package/dist/_dts/{index-CJzs-yIJ.d.ts → index-CXZSy_9M.d.ts} +2 -2
  14. package/dist/_dts/{index-DutLU2d2.d.ts → index-D9ZYmGAJ.d.ts} +2 -1
  15. package/dist/_dts/{index-DW3eeNph.d.ts → index-DpJm0NpL.d.ts} +4 -4
  16. package/dist/_dts/{index-C611wjIL.d.ts → index-yWDbUojb.d.ts} +1 -1
  17. package/dist/_dts/{loadContent-Bde2y870.d.ts → loadContent-M-s0p0rq.d.ts} +11 -11
  18. package/dist/_dts/{request-Bysk4QPI.d.ts → request-BK-pHf0P.d.ts} +3685 -1762
  19. package/dist/_dts/{resolveBlockData-ChbNvpSF.d.ts → resolveBlockData-DZAlnhwt.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-CGa6QMgc.d.ts → resolvePageContent-DXUCWJ3y.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +9 -9
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  28. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +4 -2
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +13 -8
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +36 -204
  54. package/dist/_dts/{types-BwitGNTl.d.ts → types-CwmB2NHU.d.ts} +7 -7
  55. package/dist/_dts/{types-BoEk9ZON.d.ts → types-DjVNADXR.d.ts} +3 -3
  56. package/dist/_dts/{types-kpp8XyXv.d.ts → types-Dmow_FI6.d.ts} +2 -2
  57. package/dist/_dts/{validation-ChftKX-o.d.ts → validation-h8t1HLlL.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-BnUeSE3d.mjs → BlocksIslandsHydrator-DRVx_XLi.mjs} +17 -17
  59. package/dist/client/{BookingMailingListNote-LHQMODqB.mjs → BookingMailingListNote-CwrMzj-k.mjs} +10 -10
  60. package/dist/client/{BookingPanelArrangement-Be704P85.mjs → BookingPanelArrangement-C2_hFT6K.mjs} +1 -1
  61. package/dist/client/{BookingQuestionFields-BewbU_cV.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
  62. package/dist/client/{CalendarNavigationChevron-BMZp3RS3.mjs → CalendarNavigationChevron-Az1-TIEI.mjs} +6 -6
  63. package/dist/client/{DemoBookingPortalAccess-CARUWQ_E.mjs → DemoBookingPortalAccess-1p-pJ1lg.mjs} +5 -5
  64. package/dist/client/{EventCalendar.client-CaI6upCX.mjs → EventCalendar.client-CDkkP-Lv.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-CoRUaYHY.mjs → EventCombined.client-DK3aaz62.mjs} +7 -7
  66. package/dist/client/{EventItem-Doe4KodB.mjs → EventItem-WeUipfIP.mjs} +4 -4
  67. package/dist/client/{EventListWeekNavigation-CXWLKDfa.mjs → EventListWeekNavigation-D3sbAeDo.mjs} +1 -1
  68. package/dist/client/{EventListing.client-DvJ5tGTx.mjs → EventListing.client-DL3gGGmF.mjs} +3 -3
  69. package/dist/client/{EventListing.view-BmfyK7S5.mjs → EventListing.view-DKFImKOx.mjs} +6 -6
  70. package/dist/client/{EventRegistrationPayment-DwMlJB2V.mjs → EventRegistrationPayment-Dn9TpWyL.mjs} +45 -18
  71. package/dist/client/{LocationMapActions-CdRPU6gp.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
  72. package/dist/client/{MapDrawingSvg-DCLtxOnt.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
  73. package/dist/client/{Page-D46Dmr7b.mjs → Page-BpeP9xdt.mjs} +731 -1549
  74. package/dist/client/{StepIndicator-CrSZCZn1.mjs → StepIndicator-CP6zrwkl.mjs} +6 -242
  75. package/dist/client/{accessibleSurfaces-D4DhWo9j.mjs → accessibleSurfaces-DN8it_Cx.mjs} +35 -7
  76. package/dist/client/{accordion-P8xcfKxq.mjs → accordion-nR7D4m1a.mjs} +1 -1
  77. package/dist/client/{booking-form.client-BM2s-NqR.mjs → booking-form.client-Ce-mQZ7W.mjs} +362 -47
  78. package/dist/client/{bookingForm-JnaZPZge.mjs → bookingForm-B-qT_AQB.mjs} +4 -4
  79. package/dist/client/bookings.mjs +6 -6
  80. package/dist/client/{boxStyleClassNames-Cahps5kR.mjs → boxStyleClassNames-CrE3TDpW.mjs} +2 -29
  81. package/dist/client/{carousel-CQQ_m0KA.mjs → carousel-CVUOatsY.mjs} +1 -1
  82. package/dist/client/{cart-0Q4fjw_K.mjs → cart-DE0K6E0R.mjs} +3 -3
  83. package/dist/client/{cart.client-BI0IaHX3.mjs → cart.client-C23E6WQ5.mjs} +1 -1
  84. package/dist/client/{checkout-1J-3ftxF.mjs → checkout-76cdHyPL.mjs} +3 -3
  85. package/dist/client/{checkout.client-DOGYDlDk.mjs → checkout.client-DJOzqb26.mjs} +1 -1
  86. package/dist/client/{checkoutUrls-CwHqcqzP.mjs → checkoutUrls-CvIP5DCO.mjs} +1 -1
  87. package/dist/client/client.mjs +159 -7
  88. package/dist/client/{context-D0KCgbOq.mjs → context-CNlesLfF.mjs} +1 -1
  89. package/dist/client/{course-CmOuoZHN.mjs → course-DHIrXqNT.mjs} +2 -2
  90. package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
  91. package/dist/client/{dateFormatting-Dmfaczzq.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
  92. package/dist/client/{demoPortalMagicLink-CL7KGRta.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
  93. package/dist/client/{display-lL-YRApN.mjs → display-Cf_j5stk.mjs} +2574 -763
  94. package/dist/client/{enhanceHeaderSection-B-eLGs2C.mjs → enhanceHeaderSection-5GD5o4Mt.mjs} +3 -3
  95. package/dist/client/{event-details.client-DH1-Jxsh.mjs → event-details.client-D7Oz1q2L.mjs} +1 -1
  96. package/dist/client/{event-registration.client-GuuElczW.mjs → event-registration.client-zbuX36aA.mjs} +137 -131
  97. package/dist/client/{eventCalendar-BiCINPkV.mjs → eventCalendar-uZrksODt.mjs} +4 -4
  98. package/dist/client/{eventCombined-BtzmH6FW.mjs → eventCombined-DxhvNAx8.mjs} +4 -4
  99. package/dist/client/{eventDetails-BJpAD10-.mjs → eventDetails-DCIH4BYG.mjs} +2 -2
  100. package/dist/client/{eventListing-jLB8iRqp.mjs → eventListing-B9KrnPvc.mjs} +4 -4
  101. package/dist/client/{eventRegistration-WhtpDEbq.mjs → eventRegistration-TjnURMKl.mjs} +4 -4
  102. package/dist/client/{form-DO6qKH3M.mjs → form-CfqIAhfN.mjs} +3 -3
  103. package/dist/client/{form.client-D12ljYiX.mjs → form.client-CL6fF0cW.mjs} +6 -6
  104. package/dist/client/{form.parts-C8QHaQOI.mjs → form.parts-Bf-L66Gg.mjs} +1 -1
  105. package/dist/client/{formatDate-BnhfIpCa.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
  106. package/dist/client/gifting/client.mjs +2 -2
  107. package/dist/client/{headerSection-BtFWtoUm.mjs → headerSection-WVXtOcuW.mjs} +2 -2
  108. package/dist/client/{newsletter-form.client-oHrqM_Ao.mjs → newsletter-form.client-Bb7GAZpO.mjs} +9 -7
  109. package/dist/client/{newsletter-form.parts-D5U-FuVy.mjs → newsletter-form.parts-BqOVRdIc.mjs} +1 -1
  110. package/dist/client/{newsletterForm-CBYbFxSx.mjs → newsletterForm-DOVe-qY3.mjs} +3 -3
  111. package/dist/client/{noop-CN0o0yjH.mjs → noop-D5mFWXtN.mjs} +30 -6
  112. package/dist/client/portal/client.mjs +346 -272
  113. package/dist/client/{product-detail.client-d_sNCapC.mjs → product-detail.client-CNzeFnFf.mjs} +1 -1
  114. package/dist/client/{product-list.client-DkSpw6WQ.mjs → product-list.client-LKpzC7pj.mjs} +1 -1
  115. package/dist/client/{productDetail-DaqM-LgL.mjs → productDetail-D2JNeEgx.mjs} +3 -3
  116. package/dist/client/{productList-CMx4-XlG.mjs → productList-DTgZXOEq.mjs} +3 -3
  117. package/dist/client/{propsDecoder-BZbUKstC.mjs → propsDecoder-mpBQt2AT.mjs} +3 -3
  118. package/dist/client/{registry.server-Cdot3dMk.mjs → registry.server-DdTJyar2.mjs} +31 -47
  119. package/dist/client/rendering/client.mjs +26 -26
  120. package/dist/client/rendering/islands.mjs +1 -1
  121. package/dist/client/rendering.mjs +16 -13
  122. package/dist/client/{richText-coerce-ByApwB4q.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
  123. package/dist/client/{routeIslandApiConfig-DTET8f__.mjs → routeIslandApiConfig-8cfSgT0E.mjs} +1 -1
  124. package/dist/client/{runtimeResponse-IkOwKZD0.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
  125. package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
  126. package/dist/client/{shop-Cy6xXDM7.mjs → shop-5LBhftWx.mjs} +3 -3
  127. package/dist/client/{shop-commerce-oDR76k1q.mjs → shop-commerce-DkValjZj.mjs} +12 -12
  128. package/dist/client/{shop-commerce-store-DjoUpL3a.mjs → shop-commerce-store-BOmXFmk_.mjs} +1 -1
  129. package/dist/client/{shop-discount-apply.state-WsGb9DD8.mjs → shop-discount-apply.state-D0ifS6KX.mjs} +2 -2
  130. package/dist/client/{shop.client-Brha4BSM.mjs → shop.client-BTtZqNmv.mjs} +13 -13
  131. package/dist/client/{shop.interactive-CXhYl0DW.mjs → shop.interactive-DNRqG4aX.mjs} +18 -24
  132. package/dist/client/{shopShared-JCa_SRhP.mjs → shopShared-Nky6kPYr.mjs} +2 -2
  133. package/dist/client/{timetableModel-CZeJwMxP.mjs → timetableModel-DZArznD_.mjs} +25 -152
  134. package/dist/client/{useAvailableSlots-DfbSkWop.mjs → useAvailableSlots-CUVRD1nx.mjs} +24 -4
  135. package/dist/client/{useDiscountApply-Dq-wjb1d.mjs → useDiscountApply-BBnStWXU.mjs} +1 -1
  136. package/dist/client/{useDiscountCodeUi-Cyy0meCH.mjs → useDiscountCodeUi-d7viY_mu.mjs} +1 -1
  137. package/dist/client/{useEventPagination-CCAGQHsD.mjs → useEventPagination-Da2JqxGC.mjs} +6 -6
  138. package/dist/client/{view-Sw075FOY.mjs → view-BvuYmQJ5.mjs} +2 -2
  139. package/dist/client/{view-D6yebI4r.mjs → view-D9ObkFtz.mjs} +12 -11
  140. package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
  141. package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
  142. package/dist/preview-next/client/{PageSectionToolbar-DG2rXUmo.mjs → PageSectionToolbar-DwxHT-2k.mjs} +57 -144
  143. package/dist/preview-next/client/{PreviewEditorSidebar-BDY5vdHU.mjs → PreviewEditorSidebar-D4SBxGU6.mjs} +758 -1279
  144. package/dist/preview-next/client/{PreviewEditorUI-CqZCfOaz.mjs → PreviewEditorUI-D8mUct32.mjs} +29 -26
  145. package/dist/preview-next/client/{PreviewShell-Bv2HZ7JY.mjs → PreviewShell-L2AEdNUQ.mjs} +50 -30
  146. package/dist/preview-next/client/{SdkPreviewModeRuntime-BMTcR-MW.mjs → SdkPreviewModeRuntime-bhVAU2D2.mjs} +47 -19
  147. package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
  148. package/dist/preview-next/client/{previewAssistantSlot-La6MerV_.mjs → previewAssistantSlot-Jpj_HDra.mjs} +101003 -51855
  149. package/dist/preview-next/client/{previewChromeRoot-BcOQqJIP.mjs → previewChromeRoot-CYTDvx4u.mjs} +1 -1
  150. package/dist/preview-next/client/runtime.mjs +3 -3
  151. package/dist/preview-next/client/{sdk-runtime-BkckHox4.mjs → sdk-runtime-CZHX6J_4.mjs} +2 -2
  152. package/dist/preview-next/client/siteStyleAccess-DmGIG9Hk.mjs +9356 -0
  153. package/dist/preview-next/client/{useAutosaveStatus-CPAHgGqI.mjs → useAutosaveStatus-DQCyswQ-.mjs} +2 -2
  154. package/dist/preview-next/client/{useOpenBlockForSetup-BDkuSZxQ.mjs → useOpenBlockForSetup-LwE5yXvL.mjs} +19 -4
  155. package/dist/preview-next/container-responsive.css +117 -32
  156. package/dist/preview-next/keepAlive.mjs +1 -1
  157. package/dist/preview-next/middleware.mjs +1 -1
  158. package/dist/preview-next/{route-contract-CPV30ABr.mjs → route-contract-BOuNcOcN.mjs} +153 -2
  159. package/dist/server/{Block.shared-BaMMstO1.mjs → Block.shared-wfJfhs08.mjs} +10 -5
  160. package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-BtrJNHTB.mjs} +23 -6
  161. package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
  162. package/dist/server/{bindings-Dge4sqel.mjs → bindings-P1CF2Gm6.mjs} +6 -4
  163. package/dist/server/{client-VVIQjC4r.mjs → client-CGtU5fHI.mjs} +156 -4
  164. package/dist/server/config-validation.mjs +1 -1
  165. package/dist/server/config.mjs +2 -2
  166. package/dist/server/customCss-BGB8gMVb.mjs +210 -0
  167. package/dist/server/data/resolveBlockData.mjs +1 -1
  168. package/dist/server/index.mjs +2 -2
  169. package/dist/server/{loadContent-BIJb3WAK.mjs → loadContent-ChnkJSay.mjs} +8 -9
  170. package/dist/server/{loadPage-DjTU19y7.mjs → loadPage-DesHhgxj.mjs} +3 -3
  171. package/dist/server/lookMediaFrame-BBr0mkze.mjs +2626 -0
  172. package/dist/server/manifest.mjs +2 -2
  173. package/dist/server/next.mjs +9 -8
  174. package/dist/server/{overrideResolution-1Ru3NMQj.mjs → overrideResolution-DHEkHcZs.mjs} +3 -4
  175. package/dist/server/page-converter.mjs +2 -2
  176. package/dist/server/{pageRenderPlan-CytPhrI9.mjs → pageRenderPlan-0jvm0RBk.mjs} +29 -331
  177. package/dist/server/{pageRuntimeSupport-DWspU5EZ.mjs → pageRuntimeSupport-8-f1Zr9e.mjs} +14 -6
  178. package/dist/server/{pageShared-Bhx8bVe1.mjs → pageShared-CuVFoV4z.mjs} +370 -291
  179. package/dist/server/{parseThemeForPersistence-CtgRtvo3.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
  180. package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
  181. package/dist/server/portal.mjs +1 -1
  182. package/dist/server/{prebuild-BjvFb0CA.mjs → prebuild-Bms_Y7wQ.mjs} +1 -1
  183. package/dist/server/prebuild.mjs +1 -1
  184. package/dist/server/{prefetchBlockData-Db3stNpp.mjs → prefetchBlockData-5oC5kyHe.mjs} +2 -2
  185. package/dist/server/{registry-BMCfcev6.mjs → registry-DmqxC8th.mjs} +1258 -3166
  186. package/dist/server/rendering/components/pageShared.mjs +1 -1
  187. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  188. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -2
  189. package/dist/server/rendering/server.mjs +3 -3
  190. package/dist/server/rendering.mjs +7 -7
  191. package/dist/server/{resolveBlockData--yUbI-Ll.mjs → resolveBlockData-EYogtwQc.mjs} +1 -1
  192. package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
  193. package/dist/server/{schema-D5Vfmqzw.mjs → schema-CUDHMirj.mjs} +46 -153
  194. package/dist/server/server.mjs +3 -3
  195. package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
  196. package/dist/server/theme-bridge.mjs +21 -15
  197. package/dist/server/theme.mjs +2 -2
  198. package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
  199. package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
  200. package/dist/server/{validation-EgTtnTcY.mjs → validation-Bt_8IL1g.mjs} +4 -4
  201. package/dist/server/{version-LjgU0Cq1.mjs → version-DT_efohp.mjs} +1 -1
  202. package/dist/styles/index.css +989 -279
  203. package/package.json +1 -1
  204. package/dist/client/bookability-SargNwlO.mjs +0 -17
  205. package/dist/client/runtimeResponse-Wd6kwhE_.mjs +0 -3
  206. package/dist/preview-next/client/SiteChromeCustomizeButton-D1MGyN_Z.mjs +0 -55403
  207. package/dist/server/customCss-QymcmOZ-.mjs +0 -97
  208. package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
@@ -0,0 +1,2626 @@
1
+ import { $ as SURFACE_FOREGROUND_CSS_VARS, B as preparePaletteColourIndex, Dt as parseThemeColorToken, et as SURFACE_INK_CSS_VARS, j as expandPalette, mt as rgbColorValue, nt as surfaceForegroundDeclarations, st as surfaceInkDeclarations } from "./resolveButtonColourStates--6yJp9Tq.mjs";
2
+ import { N as freezeOwnedThemeValue, P as ownedThemeSnapshot, _ as contextualButtonSurfaceResetStyles, a as requireResolvedSurface } from "./accessibleSurfaces-CM3QANtw.mjs";
3
+ import { _ as isArrangementMode, b as asAppearancePresetId } from "./customCss-BGB8gMVb.mjs";
4
+ //#region ../theme-core/src/surfaces/opaqueSurface.ts
5
+ function opaqueSurfaceContextFromTheme(theme) {
6
+ const palette = freezeOwnedThemeValue(expandPalette(theme.palette));
7
+ return Object.freeze({
8
+ palette,
9
+ colourIndex: preparePaletteColourIndex(palette),
10
+ buttonSystem: ownedThemeSnapshot(theme.buttons),
11
+ linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken,
12
+ solvedInks: "publish"
13
+ });
14
+ }
15
+ /**
16
+ * The declarations that make an element own its surface: `color`, every
17
+ * `--rb-surface-*` role and every `--rb-action-*` variable. Card roles and
18
+ * opaque block panels both publish through this, so a nested surface can never
19
+ * inherit a band's light text or its band-resolved buttons.
20
+ */
21
+ function opaqueSurfaceDeclarations(surface, arrangement = false) {
22
+ requireResolvedSurface(surface);
23
+ if (surface.kind === "inherit") return inheritedSurfaceDeclarations(arrangement);
24
+ const foreground = surface.foreground;
25
+ return [
26
+ ...surfaceForegroundDeclarations({
27
+ text: colorValue(foreground.text),
28
+ heading: colorValue(foreground.heading),
29
+ link: colorValue(foreground.link),
30
+ linkHover: colorValue(foreground.linkHover),
31
+ supporting: colorValue(foreground.supporting),
32
+ ...arrangement ? { muted: colorValue(foreground.muted) } : {},
33
+ hoverDecoration: surface.hoverDecoration
34
+ }),
35
+ ...surfaceInkDeclarations(surface.inks),
36
+ ...arrangement && surface.decorations !== void 0 ? [`${SURFACE_FOREGROUND_CSS_VARS.line}: ${surface.decorations.line};`, `${SURFACE_FOREGROUND_CSS_VARS.mark}: ${surface.decorations.mark};`] : [],
37
+ ...Object.entries(surface.buttonContext.styles).map(([property, value]) => `${property}: ${value};`)
38
+ ];
39
+ }
40
+ function colorValue(token) {
41
+ const parsed = parseThemeColorToken(token);
42
+ return parsed ? rgbColorValue(parsed) : token;
43
+ }
44
+ /** Every property a surface publishes, set to `inherit`. */
45
+ function inheritedSurfaceDeclarations(arrangement) {
46
+ return [
47
+ "color",
48
+ ...Object.entries(SURFACE_FOREGROUND_CSS_VARS).filter(([role]) => arrangement || role !== "line" && role !== "mark" && role !== "muted").map(([, variable]) => variable),
49
+ ...Object.values(SURFACE_INK_CSS_VARS),
50
+ "--rb-surface-link-hover-decoration",
51
+ ...Object.keys(contextualButtonSurfaceResetStyles())
52
+ ].map((property) => `${property}: inherit;`);
53
+ }
54
+ //#endregion
55
+ //#region ../site-contracts/src/blocks/knobs.ts
56
+ /** Block supply is capability, never a second Look catalogue. */
57
+ const cardListBlockParts = {
58
+ "block.feature-cards": [
59
+ "media",
60
+ "title",
61
+ "text",
62
+ "action"
63
+ ],
64
+ "block.offerings-preview": [
65
+ "media",
66
+ "title",
67
+ "text",
68
+ "facts",
69
+ "chips",
70
+ "numeral",
71
+ "schedule",
72
+ "dates",
73
+ "availability",
74
+ "action",
75
+ "date-stamp"
76
+ ],
77
+ "block.appointment-services": [
78
+ "media",
79
+ "title",
80
+ "text",
81
+ "facts",
82
+ "action"
83
+ ],
84
+ "block.team-members": [
85
+ "media",
86
+ "title",
87
+ "text",
88
+ "facts",
89
+ "chips",
90
+ "action"
91
+ ],
92
+ "block.shop": [
93
+ "title",
94
+ "text",
95
+ "facts",
96
+ "price",
97
+ "action"
98
+ ]
99
+ };
100
+ const cardListFamilyBlocks = Object.keys(cardListBlockParts);
101
+ const cardListKnobBlocks = [...cardListFamilyBlocks, "block.event-calendar"];
102
+ const lookKnobBlocks = {
103
+ actionStyle: cardListKnobBlocks,
104
+ titleSize: "block.hero",
105
+ imagePosition: [
106
+ "block.hero",
107
+ "block.intro",
108
+ "block.media-text"
109
+ ],
110
+ imageShape: ["block.intro", "block.media-text"],
111
+ aspectRatio: "block.media-text",
112
+ stickerLine: "block.hero",
113
+ smallCaption: "block.hero",
114
+ photoTint: "block.hero",
115
+ candleGlow: "block.hero",
116
+ columnGuides: "block.hero",
117
+ showPhotos: cardListKnobBlocks,
118
+ cardMarker: cardListFamilyBlocks,
119
+ dates: "block.offerings-preview",
120
+ grouping: "block.offerings-preview",
121
+ columns: "block.feature-cards",
122
+ listColumns: "block.event-calendar",
123
+ blackAndWhite: "block.image-gallery",
124
+ showCapacity: "block.event-calendar",
125
+ alignment: "block.body-text",
126
+ autoAdvance: "block.testimonials",
127
+ quoteCount: "block.testimonials",
128
+ archFrame: [
129
+ "block.testimonials",
130
+ "block.newsletter-signup",
131
+ "block.form"
132
+ ],
133
+ tilt: "block.testimonials"
134
+ };
135
+ //#endregion
136
+ //#region ../theme-core/src/site-styles/types.ts
137
+ /**
138
+ * Defines a literal-preserving catalog while rejecting top-level extra keys on
139
+ * each entry: `defineExactCatalog<Entry>()([{ ... }])`.
140
+ */
141
+ function defineExactCatalog() {
142
+ return (entries) => entries;
143
+ }
144
+ function toNonEmptyReadonlyArray(values) {
145
+ const [first, ...rest] = values;
146
+ return first === void 0 ? null : [first, ...rest];
147
+ }
148
+ function requireNonEmptyReadonlyArray(values, message = "Expected a non-empty array.") {
149
+ const result = toNonEmptyReadonlyArray(values);
150
+ if (!result) throw new Error(message);
151
+ return result;
152
+ }
153
+ function assertNever(value, message = "Unhandled Theme V2 variant") {
154
+ throw new Error(`${message}: ${String(value)}`);
155
+ }
156
+ function designIssueSeverityForPolicy(policy) {
157
+ switch (policy) {
158
+ case "generated": return "repairable";
159
+ case "user":
160
+ case "admin":
161
+ case "sdk": return "advisory";
162
+ }
163
+ }
164
+ /**
165
+ * What a block's own section background field admits, read from its manifest.
166
+ * A site style's surface rule may paint a gradient or a photo; a block whose
167
+ * `_sectionStyles.background` refuses that paint would be dropped at render
168
+ * admission, so the runtime compiler paints the surface's colour equivalent
169
+ * instead (see `compileSectionBackground`).
170
+ */
171
+ const sectionBackgroundPaintValues = [
172
+ "color",
173
+ "gradient",
174
+ "image"
175
+ ];
176
+ const plainFrame = { kind: "plain" };
177
+ function panelFrame(treatment) {
178
+ return {
179
+ kind: "panel",
180
+ treatment
181
+ };
182
+ }
183
+ function flushPanelFrame(options) {
184
+ return {
185
+ kind: "flush-panel",
186
+ treatment: options.treatment ?? "media-panel",
187
+ bleed: options.bleed
188
+ };
189
+ }
190
+ function defineFrameCapability(capability) {
191
+ return capability;
192
+ }
193
+ const introCompositionTreatmentValues = ["editorial-statement", "portrait-bio"];
194
+ const featureCardCompositionTreatmentValues = ["asymmetric-emphasis", "framed-programme"];
195
+ const testimonialsCompositionTreatmentValues = [
196
+ "open-editorial",
197
+ "evergreen-lead",
198
+ "room-and-response",
199
+ "open-floor"
200
+ ];
201
+ /**
202
+ * How an offerings preview arranges its groups. Structure only — the group
203
+ * card surface is the Look's `cardRole` and the site style's card system.
204
+ */
205
+ const offeringsPreviewCompositionTreatmentValues = [
206
+ "paired-feature-cards",
207
+ "open-editorial-columns",
208
+ "joined-programme-panel"
209
+ ];
210
+ const noHeadingDecoration = { family: "none" };
211
+ function defineBlockDesignCapability(capability) {
212
+ return {
213
+ ...capability,
214
+ kind: "designed",
215
+ looks: capability.looks ?? "not-applicable",
216
+ sectionBackgroundPaints: admittedSectionBackgroundPaints(capability.sectionBackgroundPaints),
217
+ sectionHeights: capability.sectionHeights ?? ["default"],
218
+ imageSurfaceTreatments: capability.imageSurfaceTreatments ?? ["none"],
219
+ imageSurfaceMotions: capability.imageSurfaceMotions ?? ["static"],
220
+ tileTreatments: capability.tileTreatments ?? ["default"],
221
+ eventListTreatments: capability.eventListTreatments ?? ["plain"],
222
+ eyebrowTreatments: capability.eyebrowTreatments ?? ["plain"],
223
+ ...capability.headingDecorations ? { headingDecorations: capability.headingDecorations } : {},
224
+ headingDecorationCapability: capability.headingDecorationCapability ?? { kind: "unsupported" },
225
+ compositions: capability.compositions ?? { kind: "none" },
226
+ ...capability.accordionIconSets ? { accordionIconSets: capability.accordionIconSets } : {}
227
+ };
228
+ }
229
+ /** Absent means the block admits every section background paint. */
230
+ function admittedSectionBackgroundPaints(paints) {
231
+ return paints ?? sectionBackgroundPaintValues;
232
+ }
233
+ function defineNoBlockDesignCapability(reason) {
234
+ return {
235
+ kind: "not-designed",
236
+ reason
237
+ };
238
+ }
239
+ //#endregion
240
+ //#region ../theme-core/src/site-styles/appearancePresetTypes.ts
241
+ /** Facts about how the owner set the block up, rather than what they filled in. */
242
+ const lookSettingFacts = ["listed-by-week"];
243
+ function isLookSettingFact(fact) {
244
+ return lookSettingFacts.includes(fact);
245
+ }
246
+ function isRecipeAppearancePreset(preset) {
247
+ return preset.structure.kind === "recipe";
248
+ }
249
+ function isArrangementAppearancePreset(preset) {
250
+ return preset.structure.kind === "arrangement";
251
+ }
252
+ function lookModes(look) {
253
+ return Object.keys(look.structure.byMode).map((mode) => isArrangementMode(mode) ? mode : null);
254
+ }
255
+ function cardListKnobDefaults(block, arrangement, knobs, defaults) {
256
+ if (!cardListKnobBlocks.some((kind) => kind === `block.${block}`)) return {};
257
+ const actionStyle = [
258
+ "index",
259
+ "ledger",
260
+ "compact",
261
+ "day-groups",
262
+ "sequence",
263
+ "lead-support"
264
+ ].includes(arrangement) ? "link" : "button";
265
+ return {
266
+ knobs: [.../* @__PURE__ */ new Set([...["actionStyle"], ...knobs])],
267
+ knobDefaults: {
268
+ actionStyle,
269
+ ...defaults
270
+ }
271
+ };
272
+ }
273
+ const arrangementLookTargets = {
274
+ hero: "hero",
275
+ intro: "intro",
276
+ "class-prices": "feature-cards",
277
+ "feature-cards": "feature-cards",
278
+ "event-calendar": "events",
279
+ testimonials: "testimonials",
280
+ "event-details": "events",
281
+ "media-text": "media-text",
282
+ "image-gallery": "image-gallery",
283
+ "video-grid": "video-grid",
284
+ "newsletter-signup": "newsletter",
285
+ form: "contact-form",
286
+ "body-text": "body-text",
287
+ faq: "faq",
288
+ "cta-full": "cta",
289
+ "location-map": "location",
290
+ list: "list"
291
+ };
292
+ function defineArrangementLook(id, block, name, arrangement, knobs, input) {
293
+ const mode = block === "event-calendar" ? "list" : null;
294
+ const { thumbnail, ...structure } = input;
295
+ return {
296
+ id: asAppearancePresetId(id),
297
+ blockKinds: [`block.${block}`],
298
+ label: name,
299
+ target: arrangementLookTargets[block],
300
+ thumbnail,
301
+ structure: {
302
+ kind: "arrangement",
303
+ byMode: { [mode ?? "default"]: arrangement },
304
+ knobs,
305
+ itemRoles: {},
306
+ whenMissing: [],
307
+ styleFallback: [],
308
+ photoUse: "none",
309
+ ...structure,
310
+ ...cardListKnobDefaults(block, arrangement, knobs, structure.knobDefaults)
311
+ }
312
+ };
313
+ }
314
+ function defineCardListLook(id, name, arrangement, requires, knobs, input) {
315
+ const base = defineArrangementLook(id, "feature-cards", name, arrangement, knobs, input);
316
+ return {
317
+ ...base,
318
+ blockKinds: cardListFamilyBlocks.filter((block) => requires.every((part) => cardListBlockParts[block].includes(part))),
319
+ structure: {
320
+ ...base.structure,
321
+ knobs: [
322
+ ...base.structure.knobs,
323
+ "dates",
324
+ "grouping"
325
+ ],
326
+ knobDefaults: {
327
+ grouping: "by-kind",
328
+ dates: arrangement === "cards" || arrangement === "plates" ? "next-dates" : "summary",
329
+ ...base.structure.knobDefaults
330
+ },
331
+ family: {
332
+ kind: "card-list",
333
+ requires
334
+ }
335
+ }
336
+ };
337
+ }
338
+ //#endregion
339
+ //#region ../theme-core/src/site-styles/lookThumbnail.ts
340
+ /** Short builders, so each Look's drawing reads as one line in the catalogue. */
341
+ const sketch = {
342
+ page: (items, options = {}) => ({
343
+ ground: options.ground ?? "page",
344
+ align: options.align ?? "start",
345
+ items
346
+ }),
347
+ band: (items, options = {}) => ({
348
+ ground: "band",
349
+ align: options.align ?? "start",
350
+ items
351
+ }),
352
+ rule: { kind: "rule" },
353
+ title: (width = .55, size = "medium") => ({
354
+ kind: "title",
355
+ width,
356
+ size
357
+ }),
358
+ text: (lines = 3, width = 1) => ({
359
+ kind: "text",
360
+ lines,
361
+ width
362
+ }),
363
+ photo: (height = "medium", shape = "rect") => ({
364
+ kind: "photo",
365
+ shape,
366
+ height
367
+ }),
368
+ button: {
369
+ kind: "button",
370
+ style: "solid"
371
+ },
372
+ link: {
373
+ kind: "button",
374
+ style: "link"
375
+ },
376
+ field: { kind: "field" },
377
+ quote: (size = "small") => ({
378
+ kind: "quote",
379
+ size
380
+ }),
381
+ map: { kind: "map" },
382
+ calendar: { kind: "calendar" },
383
+ number: { kind: "number" },
384
+ price: { kind: "price" },
385
+ divider: { kind: "divider" },
386
+ row: (...columns) => ({
387
+ kind: "row",
388
+ align: "start",
389
+ columns: columns.map((column) => "items" in column ? column : {
390
+ weight: 1,
391
+ items: column
392
+ })
393
+ }),
394
+ middle: (...columns) => ({
395
+ kind: "row",
396
+ align: "center",
397
+ columns: columns.map((column) => "items" in column ? column : {
398
+ weight: 1,
399
+ items: column
400
+ })
401
+ }),
402
+ weight: (weight, items) => ({
403
+ weight,
404
+ items
405
+ }),
406
+ card: (items) => ({
407
+ kind: "box",
408
+ frame: "card",
409
+ items
410
+ }),
411
+ panel: (items) => ({
412
+ kind: "box",
413
+ frame: "panel",
414
+ items
415
+ }),
416
+ accentCard: (items) => ({
417
+ kind: "box",
418
+ frame: "accent",
419
+ items
420
+ }),
421
+ featured: (items) => ({
422
+ kind: "box",
423
+ frame: "featured",
424
+ items
425
+ }),
426
+ across: (count, item, options = {}) => ({
427
+ kind: "repeat",
428
+ count,
429
+ direction: "row",
430
+ item,
431
+ ruled: false,
432
+ overflow: options.overflow ?? false,
433
+ arrows: options.arrows ?? false
434
+ }),
435
+ down: (count, item, options = {}) => ({
436
+ kind: "repeat",
437
+ count,
438
+ direction: "column",
439
+ item,
440
+ ruled: options.ruled ?? false,
441
+ overflow: false,
442
+ arrows: false
443
+ }),
444
+ over: (photo, items, options = {}) => ({
445
+ kind: "overlay",
446
+ photo,
447
+ items,
448
+ panel: options.panel ?? false
449
+ })
450
+ };
451
+ //#endregion
452
+ //#region ../theme-core/src/site-styles/lookOptionGroups.ts
453
+ function defineLookOptionGroup(group) {
454
+ defaultOption(group);
455
+ return group;
456
+ }
457
+ function resolveLookOption(group, requestedOptionId) {
458
+ const fallback = defaultOption(group);
459
+ if (requestedOptionId === null || requestedOptionId === void 0) return {
460
+ kind: "defaulted",
461
+ option: fallback
462
+ };
463
+ const selected = group.options.find((option) => option.id === requestedOptionId);
464
+ return selected ? {
465
+ kind: "selected",
466
+ option: selected
467
+ } : {
468
+ kind: "repaired",
469
+ requestedOptionId,
470
+ option: fallback,
471
+ reason: "unsupported-option"
472
+ };
473
+ }
474
+ function defaultOption(group) {
475
+ const option = group.options.find((candidate) => candidate.id === group.defaultOptionId);
476
+ if (option) return option;
477
+ throw new Error(`Look option group "${group.id}" defaults to missing option "${group.defaultOptionId}".`);
478
+ }
479
+ /** The declared order owns distance; unordered choices use their default. */
480
+ function resolveEffectiveKnobs(input) {
481
+ return Object.fromEntries(input.exposure.map((entry) => [entry.definition.id, resolveEffectiveKnob(entry, input.content[entry.definition.id])]));
482
+ }
483
+ function resolveEffectiveKnob(exposure, stored) {
484
+ const { definition } = exposure;
485
+ if (exposure.forced !== void 0) return {
486
+ kind: "forced",
487
+ value: exposure.forced
488
+ };
489
+ if (!exposure.exposed) return {
490
+ kind: "kept",
491
+ stored
492
+ };
493
+ const value = typeof stored === "string" ? stored : typeof stored === "boolean" ? String(stored) : definition.defaultValue;
494
+ if (definition.textMaxLength !== void 0) return {
495
+ kind: "used",
496
+ value
497
+ };
498
+ const restrictions = [
499
+ {
500
+ reason: "look",
501
+ values: exposure.lookValues
502
+ },
503
+ {
504
+ reason: "style",
505
+ values: exposure.styleValues
506
+ },
507
+ {
508
+ reason: "length",
509
+ values: exposure.lengthValues
510
+ }
511
+ ];
512
+ const initial = definition.values.includes(value) ? {
513
+ kind: "used",
514
+ value
515
+ } : {
516
+ kind: "clamped",
517
+ value: definition.defaultValue,
518
+ stored: value,
519
+ reason: "look"
520
+ };
521
+ return restrictions.reduce((state, restriction) => {
522
+ if (restriction.values === void 0 || state.result.kind === "kept") return state;
523
+ const allowed = state.allowed.filter((option) => restriction.values?.includes(option));
524
+ if (allowed.includes(state.result.value)) return {
525
+ allowed,
526
+ result: state.result
527
+ };
528
+ return {
529
+ allowed,
530
+ result: {
531
+ kind: "clamped",
532
+ value: nearestKnobValue(definition, allowed, definition.values.includes(value) ? value : definition.defaultValue),
533
+ stored: value,
534
+ reason: restriction.reason
535
+ }
536
+ };
537
+ }, {
538
+ allowed: definition.values,
539
+ result: initial
540
+ }).result;
541
+ }
542
+ function nearestKnobValue(definition, allowed, requested) {
543
+ if (allowed.length === 0) throw new Error(`Knob ${definition.id} has no allowed value`);
544
+ if (!definition.ordered) return allowed.includes(definition.defaultValue) ? definition.defaultValue : allowed[0] ?? definition.defaultValue;
545
+ const requestedIndex = definition.values.indexOf(requested);
546
+ return [...allowed].sort((left, right) => Math.abs(definition.values.indexOf(left) - requestedIndex) - Math.abs(definition.values.indexOf(right) - requestedIndex))[0] ?? definition.defaultValue;
547
+ }
548
+ //#endregion
549
+ //#region ../theme-core/src/site-styles/appearancePresetResolution.ts
550
+ function assertValidOptionGroups(preset) {
551
+ preset.optionGroups?.forEach((group) => {
552
+ defineLookOptionGroup(group);
553
+ });
554
+ }
555
+ function selectedOptionForGroup(group) {
556
+ return resolveLookOption(group, void 0).option;
557
+ }
558
+ /**
559
+ * Every Look carries a card role. A Look that says nothing about cards renders
560
+ * none, which is the overwhelming majority of them; the card-bearing ones name
561
+ * the role they want and the site style owns how it looks.
562
+ */
563
+ function defineBlockAppearancePreset(preset) {
564
+ assertValidOptionGroups(preset);
565
+ return {
566
+ ...preset,
567
+ design: {
568
+ ...preset.design,
569
+ cardRole: preset.design.cardRole ?? "none"
570
+ }
571
+ };
572
+ }
573
+ function layoutProfileSupportsConstraints(profile, constraints) {
574
+ const supportsFamily = constraints.layoutFamilies ? constraints.layoutFamilies.includes(profile.layoutFamily) : true;
575
+ const supportsVariant = constraints.layoutVariantKeys ? constraints.layoutVariantKeys.includes(profile.variantKey) : true;
576
+ return supportsFamily && supportsVariant;
577
+ }
578
+ function resolveBlockAppearancePresetDesign(preset, layoutProfile = null) {
579
+ const designWithOptions = (preset.optionGroups ?? []).reduce((design, group) => ({
580
+ ...design,
581
+ ...selectedOptionForGroup(group).designPatch
582
+ }), {
583
+ ...preset.design,
584
+ ...preset.structure.composition ? { composition: preset.structure.composition } : {}
585
+ });
586
+ if (!layoutProfile) return designWithOptions;
587
+ return (preset.layoutPatches ?? []).reduce((design, patch) => layoutProfileSupportsConstraints(layoutProfile, patch.constraints) ? {
588
+ ...design,
589
+ ...patch.designPatch
590
+ } : design, designWithOptions);
591
+ }
592
+ //#endregion
593
+ //#region ../theme-core/src/site-styles/blockAppearancePresets.ts
594
+ /**
595
+ * One pin space for legacy recipes and arrangement Looks. Legacy recipes ask
596
+ * for a card role; the style owns its paint. Arrangement Looks own structure
597
+ * and never a section background. Removing an entry retires its pins to auto.
598
+ */
599
+ /** Shape knobs override the skin's ordinary photo frame. Corner choices keep its ratio. */
600
+ const photoShapeFrames = [{
601
+ knob: "imageShape",
602
+ values: {
603
+ circle: {
604
+ kind: "fixed",
605
+ aspectRatio: "1/1",
606
+ borderRadius: "50%"
607
+ },
608
+ arch: {
609
+ kind: "fixed",
610
+ aspectRatio: "4/5",
611
+ borderRadius: "9999px 9999px 0.125rem 0.125rem"
612
+ }
613
+ }
614
+ }];
615
+ const naturalPhotoFrame = {
616
+ kind: "variable",
617
+ because: "The photo keeps its own proportions.",
618
+ aspectRatio: "auto"
619
+ };
620
+ const introPhotoFrames = {
621
+ default: naturalPhotoFrame,
622
+ bySkin: {
623
+ haven: {
624
+ kind: "fixed",
625
+ aspectRatio: "1/1"
626
+ },
627
+ brook: {
628
+ kind: "fixed",
629
+ aspectRatio: "4/3"
630
+ },
631
+ orbit: {
632
+ kind: "fixed",
633
+ aspectRatio: "1/1",
634
+ borderRadius: "50%"
635
+ }
636
+ },
637
+ byKnob: photoShapeFrames
638
+ };
639
+ const mediaTextPhotoFrames = {
640
+ default: naturalPhotoFrame,
641
+ bySkin: {
642
+ poster: {
643
+ kind: "fixed",
644
+ aspectRatio: "4/3"
645
+ },
646
+ poise: {
647
+ kind: "fixed",
648
+ aspectRatio: "4/5"
649
+ },
650
+ haven: {
651
+ kind: "fixed",
652
+ aspectRatio: "5/4"
653
+ },
654
+ loom: {
655
+ kind: "fixed",
656
+ aspectRatio: "3/2"
657
+ },
658
+ folio: {
659
+ kind: "fixed",
660
+ aspectRatio: "4/5"
661
+ },
662
+ brook: {
663
+ kind: "fixed",
664
+ aspectRatio: "4/3"
665
+ },
666
+ orbit: {
667
+ kind: "fixed",
668
+ aspectRatio: "4/3"
669
+ }
670
+ },
671
+ byKnob: photoShapeFrames
672
+ };
673
+ const brandScrimOptionGroups = [{
674
+ id: "image-surface-treatment",
675
+ label: "Photo tint",
676
+ defaultOptionId: "brand-scrim-primary",
677
+ options: [{
678
+ id: "brand-scrim-primary",
679
+ label: "Brand tint",
680
+ designPatch: { imageSurfaceTreatment: {
681
+ kind: "brand-scrim",
682
+ token: "primary"
683
+ } }
684
+ }, {
685
+ id: "neutral-scrim",
686
+ label: "Dark tint",
687
+ designPatch: { imageSurfaceTreatment: { kind: "neutral-scrim" } }
688
+ }]
689
+ }];
690
+ const microBannerLayoutPatches = [{
691
+ constraints: { layoutVariantKeys: ["micro"] },
692
+ designPatch: { sectionHeight: "banner" }
693
+ }];
694
+ const brandScrimCarry = {
695
+ kind: "by-layout",
696
+ layouts: {
697
+ classic: {
698
+ kind: "look",
699
+ look: "hero-text-over-photo",
700
+ knobs: { photoTint: "brand" }
701
+ },
702
+ micro: {
703
+ kind: "look",
704
+ look: "hero-short-photo-banner",
705
+ knobs: { photoTint: "brand" }
706
+ }
707
+ }
708
+ };
709
+ const heroKnobs = [
710
+ "titleSize",
711
+ "imagePosition",
712
+ "stickerLine"
713
+ ];
714
+ const id = asAppearancePresetId;
715
+ const calendarRuledRows = defineArrangementLook("event-calendar-ruled-rows", "event-calendar", "Ruled rows", "ledger", ["showCapacity"], { thumbnail: sketch.band([sketch.title(.4), sketch.panel([sketch.down(3, [sketch.row(sketch.weight(1, [sketch.title(.6, "small")]), sketch.weight(3, [sketch.text(2, .8)]), sketch.weight(1, [sketch.link]))], { ruled: true })])]) });
716
+ const calendarRuledRowsPanel = defineArrangementLook("event-calendar-ruled-rows-panel", "event-calendar", "Ruled rows on a panel", "ledger", ["showCapacity"], {
717
+ thumbnail: sketch.page([sketch.panel([sketch.title(.4), sketch.down(3, [sketch.row(sketch.weight(1, [sketch.title(.6, "small")]), sketch.weight(3, [sketch.text(2, .8)]), sketch.weight(1, [sketch.button]))], { ruled: true })])]),
718
+ slotRoles: { layout: "card" },
719
+ styleFallback: [id("event-calendar-ruled-rows")]
720
+ });
721
+ const calendarTimetableRows = defineArrangementLook("event-calendar-combined-timetable", "event-calendar", "Rows with time above the button", "timetable-rows", ["showCapacity"], {
722
+ thumbnail: sketch.page([sketch.title(.4), sketch.down(3, [sketch.row(sketch.weight(1, [sketch.title(.6, "small")]), sketch.weight(3, [sketch.title(.7, "small"), sketch.text(1, .6)]), sketch.weight(1, [sketch.text(1, .6), sketch.button]))], { ruled: true })]),
723
+ styleFallback: [id("event-calendar-combined-rows")]
724
+ });
725
+ /**
726
+ * What a Look needs from its content to look finished, and what it would hide
727
+ * (see `ArrangementLookFit`). Only the style's automatic choice reads it. An
728
+ * intro's statement Look shows no photo, and its photo Looks are built around one.
729
+ */
730
+ const arrangementLookFits = {
731
+ "intro-statement-beside-text": {
732
+ needs: ["statement"],
733
+ leavesOut: ["photo"]
734
+ },
735
+ "intro-photo-beside-text": { needs: ["photo"] },
736
+ "intro-large-photo-beside-text": { needs: ["photo"] }
737
+ };
738
+ const blockAppearancePresets = [
739
+ defineBlockAppearancePreset({
740
+ structure: {
741
+ kind: "recipe",
742
+ constraints: { layoutFamilies: ["centered", "compact"] }
743
+ },
744
+ id: "hero-immersive-image",
745
+ carry: { kind: "by-layout" },
746
+ target: "hero",
747
+ label: "Photo behind centred text",
748
+ blockKinds: ["block.hero"],
749
+ layoutPatches: [{
750
+ constraints: { layoutVariantKeys: ["micro"] },
751
+ designPatch: {
752
+ sectionHeight: "banner",
753
+ heroTypographyScale: "display"
754
+ }
755
+ }],
756
+ design: {
757
+ sectionSurface: "hero-image",
758
+ contentFrame: plainFrame,
759
+ sectionHeight: "hero",
760
+ heroComposition: "center",
761
+ heroTypographyScale: "display",
762
+ imageSurfaceTreatment: { kind: "neutral-wash" }
763
+ }
764
+ }),
765
+ defineBlockAppearancePreset({
766
+ structure: {
767
+ kind: "recipe",
768
+ constraints: { layoutFamilies: ["centered", "compact"] }
769
+ },
770
+ id: "hero-bottom-left-panel",
771
+ carry: { kind: "by-layout" },
772
+ target: "hero",
773
+ label: "Text panel, bottom left of photo",
774
+ blockKinds: ["block.hero"],
775
+ optionGroups: [{
776
+ id: "image-surface-treatment",
777
+ label: "Photo tint",
778
+ defaultOptionId: "neutral-scrim",
779
+ options: [{
780
+ id: "neutral-scrim",
781
+ label: "Dark tint",
782
+ designPatch: { imageSurfaceTreatment: {
783
+ kind: "neutral-scrim",
784
+ intensity: "balanced"
785
+ } }
786
+ }, {
787
+ id: "brand-scrim-primary",
788
+ label: "Brand tint",
789
+ designPatch: { imageSurfaceTreatment: {
790
+ kind: "brand-scrim",
791
+ token: "primary",
792
+ intensity: "balanced"
793
+ } }
794
+ }]
795
+ }],
796
+ layoutPatches: [{
797
+ constraints: { layoutVariantKeys: ["micro"] },
798
+ designPatch: {
799
+ sectionHeight: "banner",
800
+ heroTypographyScale: "editorial"
801
+ }
802
+ }],
803
+ design: {
804
+ sectionSurface: "hero-image",
805
+ contentFrame: panelFrame("raised"),
806
+ sectionHeight: "immersive",
807
+ heroComposition: "bottom-left",
808
+ heroTypographyScale: "display",
809
+ imageSurfaceTreatment: {
810
+ kind: "neutral-scrim",
811
+ intensity: "balanced"
812
+ }
813
+ }
814
+ }),
815
+ defineBlockAppearancePreset({
816
+ structure: {
817
+ kind: "recipe",
818
+ constraints: { layoutFamilies: ["centered", "compact"] }
819
+ },
820
+ id: "hero-poster-image",
821
+ carry: { kind: "by-layout" },
822
+ target: "hero",
823
+ label: "Strong brand tint, big title",
824
+ blockKinds: ["block.hero"],
825
+ layoutPatches: [{
826
+ constraints: { layoutVariantKeys: ["micro"] },
827
+ designPatch: {
828
+ sectionHeight: "banner",
829
+ heroTypographyScale: "display"
830
+ }
831
+ }],
832
+ design: {
833
+ sectionSurface: "hero-image",
834
+ contentFrame: plainFrame,
835
+ sectionHeight: "immersive",
836
+ heroComposition: "center",
837
+ heroTypographyScale: "poster",
838
+ imageSurfaceTreatment: {
839
+ kind: "brand-scrim",
840
+ token: "primary",
841
+ intensity: "strong"
842
+ }
843
+ }
844
+ }),
845
+ defineBlockAppearancePreset({
846
+ structure: {
847
+ kind: "recipe",
848
+ constraints: { layoutFamilies: ["centered", "compact"] }
849
+ },
850
+ id: "hero-brand-scrim",
851
+ carry: brandScrimCarry,
852
+ target: "hero",
853
+ label: "Photo with a brand tint",
854
+ blockKinds: ["block.hero"],
855
+ optionGroups: brandScrimOptionGroups,
856
+ layoutPatches: microBannerLayoutPatches,
857
+ design: {
858
+ sectionSurface: "hero-image",
859
+ contentFrame: plainFrame,
860
+ sectionHeight: "immersive",
861
+ heroComposition: "center",
862
+ heroTypographyScale: "display",
863
+ imageSurfaceTreatment: {
864
+ kind: "brand-scrim",
865
+ token: "primary"
866
+ }
867
+ }
868
+ }),
869
+ defineBlockAppearancePreset({
870
+ structure: {
871
+ kind: "recipe",
872
+ constraints: { layoutFamilies: ["centered", "compact"] }
873
+ },
874
+ id: "hero-brand-scrim-fixed-frame",
875
+ carry: brandScrimCarry,
876
+ target: "hero",
877
+ label: "Fixed photo with a brand tint",
878
+ blockKinds: ["block.hero"],
879
+ optionGroups: brandScrimOptionGroups,
880
+ layoutPatches: microBannerLayoutPatches,
881
+ design: {
882
+ sectionSurface: "hero-image",
883
+ contentFrame: plainFrame,
884
+ sectionHeight: "immersive",
885
+ heroComposition: "center",
886
+ heroTypographyScale: "display",
887
+ imageSurfaceTreatment: {
888
+ kind: "brand-scrim",
889
+ token: "primary"
890
+ },
891
+ imageSurfaceMotion: "fixed-frame",
892
+ eyebrowTreatment: "accent-pill-bounce"
893
+ }
894
+ }),
895
+ defineBlockAppearancePreset({
896
+ structure: {
897
+ kind: "recipe",
898
+ constraints: { layoutFamilies: ["centered", "compact"] }
899
+ },
900
+ id: "hero-brand-depth-expressive",
901
+ carry: {
902
+ kind: "look",
903
+ look: "hero-page-head"
904
+ },
905
+ target: "hero",
906
+ label: "Brand colour, no photo",
907
+ blockKinds: ["block.hero"],
908
+ design: {
909
+ sectionSurface: "brand-depth-band",
910
+ contentFrame: plainFrame,
911
+ heroComposition: "center",
912
+ heroTypographyScale: "editorial",
913
+ eyebrowTreatment: "accent-pill-bounce"
914
+ }
915
+ }),
916
+ defineBlockAppearancePreset({
917
+ structure: { kind: "recipe" },
918
+ id: "hero-contained-intro",
919
+ carry: {
920
+ kind: "look",
921
+ look: "hero-page-head",
922
+ layouts: {
923
+ split: {
924
+ kind: "look",
925
+ look: "hero-photo-beside-text"
926
+ },
927
+ splitReverse: {
928
+ kind: "look",
929
+ look: "hero-photo-beside-text"
930
+ }
931
+ }
932
+ },
933
+ target: "hero",
934
+ label: "Text in a panel on a soft band",
935
+ blockKinds: ["block.hero"],
936
+ design: {
937
+ sectionSurface: "muted-band",
938
+ contentFrame: panelFrame("inset"),
939
+ heroComposition: "center",
940
+ heroTypographyScale: "editorial"
941
+ }
942
+ }),
943
+ defineBlockAppearancePreset({
944
+ structure: {
945
+ kind: "recipe",
946
+ constraints: { layoutFamilies: ["split"] }
947
+ },
948
+ id: "hero-split-editorial",
949
+ carry: {
950
+ kind: "look",
951
+ look: "hero-photo-beside-text"
952
+ },
953
+ target: "hero",
954
+ label: "Split on the page background",
955
+ blockKinds: ["block.hero"],
956
+ design: {
957
+ sectionSurface: "base",
958
+ contentFrame: plainFrame,
959
+ heroTypographyScale: "editorial"
960
+ }
961
+ }),
962
+ defineBlockAppearancePreset({
963
+ structure: {
964
+ kind: "recipe",
965
+ constraints: { layoutFamilies: ["split"] }
966
+ },
967
+ id: "hero-split-brand",
968
+ carry: {
969
+ kind: "look",
970
+ look: "hero-photo-beside-text"
971
+ },
972
+ target: "hero",
973
+ label: "Split on brand colour",
974
+ blockKinds: ["block.hero"],
975
+ design: {
976
+ sectionSurface: "brand-depth-band",
977
+ contentFrame: plainFrame,
978
+ heroTypographyScale: "display",
979
+ eyebrowTreatment: "accent-pill-bounce"
980
+ }
981
+ }),
982
+ defineBlockAppearancePreset({
983
+ structure: {
984
+ kind: "recipe",
985
+ constraints: { layoutFamilies: ["split"] }
986
+ },
987
+ id: "hero-split-soft-panel",
988
+ carry: {
989
+ kind: "look",
990
+ look: "hero-photo-beside-text"
991
+ },
992
+ target: "hero",
993
+ label: "Split, panel on a soft band",
994
+ blockKinds: ["block.hero"],
995
+ design: {
996
+ sectionSurface: "muted-band",
997
+ contentFrame: panelFrame("raised"),
998
+ heroTypographyScale: "editorial"
999
+ }
1000
+ }),
1001
+ defineBlockAppearancePreset({
1002
+ structure: {
1003
+ kind: "recipe",
1004
+ constraints: { layoutFamilies: ["split"] }
1005
+ },
1006
+ id: "hero-split-accent",
1007
+ carry: {
1008
+ kind: "look",
1009
+ look: "hero-photo-beside-text"
1010
+ },
1011
+ target: "hero",
1012
+ label: "Split, panel on accent colour",
1013
+ blockKinds: ["block.hero"],
1014
+ design: {
1015
+ sectionSurface: "accent-band",
1016
+ contentFrame: panelFrame("raised"),
1017
+ heroTypographyScale: "display"
1018
+ }
1019
+ }),
1020
+ defineBlockAppearancePreset({
1021
+ structure: {
1022
+ kind: "recipe",
1023
+ composition: {
1024
+ kind: "intro",
1025
+ treatment: "editorial-statement"
1026
+ },
1027
+ constraints: { layoutVariantKeys: ["centered-copy", "statement-copy"] }
1028
+ },
1029
+ id: "intro-editorial-statement",
1030
+ carry: { kind: "by-layout" },
1031
+ target: "intro",
1032
+ label: "Large statement",
1033
+ blockKinds: ["block.intro"],
1034
+ design: {
1035
+ sectionSurface: "base",
1036
+ contentFrame: plainFrame
1037
+ }
1038
+ }),
1039
+ defineBlockAppearancePreset({
1040
+ structure: {
1041
+ kind: "recipe",
1042
+ composition: {
1043
+ kind: "intro",
1044
+ treatment: "portrait-bio"
1045
+ },
1046
+ constraints: { layoutVariantKeys: ["media-copy"] }
1047
+ },
1048
+ id: "intro-portrait-bio",
1049
+ carry: {
1050
+ kind: "look",
1051
+ look: "intro-photo-beside-text",
1052
+ knobs: { imageShape: "circle" }
1053
+ },
1054
+ target: "intro",
1055
+ label: "Portrait and bio",
1056
+ blockKinds: ["block.intro"],
1057
+ design: {
1058
+ sectionSurface: "base",
1059
+ contentFrame: plainFrame
1060
+ }
1061
+ }),
1062
+ defineBlockAppearancePreset({
1063
+ structure: { kind: "recipe" },
1064
+ id: "offerings-preview-default-cards",
1065
+ carry: {
1066
+ kind: "look",
1067
+ look: "offerings-type-columns"
1068
+ },
1069
+ target: "offerings",
1070
+ label: "Cards",
1071
+ blockKinds: ["block.offerings-preview"],
1072
+ design: {
1073
+ sectionSurface: "base",
1074
+ contentFrame: plainFrame,
1075
+ cardRole: "default"
1076
+ }
1077
+ }),
1078
+ defineBlockAppearancePreset({
1079
+ structure: { kind: "recipe" },
1080
+ id: "offerings-preview-secondary-cards",
1081
+ carry: {
1082
+ kind: "look",
1083
+ look: "offerings-type-columns"
1084
+ },
1085
+ target: "offerings",
1086
+ label: "Cards on a soft band",
1087
+ blockKinds: ["block.offerings-preview"],
1088
+ design: {
1089
+ sectionSurface: "muted-band",
1090
+ contentFrame: plainFrame,
1091
+ cardRole: "alternative"
1092
+ }
1093
+ }),
1094
+ defineBlockAppearancePreset({
1095
+ structure: { kind: "recipe" },
1096
+ id: "offerings-preview-non-carded",
1097
+ carry: {
1098
+ kind: "look",
1099
+ look: "feature-cards-open-columns"
1100
+ },
1101
+ target: "offerings",
1102
+ label: "No cards",
1103
+ blockKinds: ["block.offerings-preview"],
1104
+ design: {
1105
+ sectionSurface: "muted-band",
1106
+ contentFrame: plainFrame,
1107
+ cardRole: "open"
1108
+ }
1109
+ }),
1110
+ defineBlockAppearancePreset({
1111
+ structure: {
1112
+ kind: "recipe",
1113
+ composition: {
1114
+ kind: "offerings-preview",
1115
+ treatment: "paired-feature-cards"
1116
+ },
1117
+ constraints: { layoutVariantKeys: ["cards"] }
1118
+ },
1119
+ id: "offerings-preview-paired-feature-cards",
1120
+ carry: {
1121
+ kind: "look",
1122
+ look: "feature-cards-lead-support"
1123
+ },
1124
+ target: "offerings",
1125
+ label: "One large card, one smaller",
1126
+ blockKinds: ["block.offerings-preview"],
1127
+ design: {
1128
+ sectionSurface: "base",
1129
+ contentFrame: plainFrame,
1130
+ cardRole: "alternative"
1131
+ }
1132
+ }),
1133
+ defineBlockAppearancePreset({
1134
+ structure: {
1135
+ kind: "recipe",
1136
+ composition: {
1137
+ kind: "offerings-preview",
1138
+ treatment: "open-editorial-columns"
1139
+ },
1140
+ constraints: { layoutVariantKeys: ["cards"] }
1141
+ },
1142
+ id: "offerings-preview-open-editorial-columns",
1143
+ carry: {
1144
+ kind: "look",
1145
+ look: "feature-cards-open-columns"
1146
+ },
1147
+ target: "offerings",
1148
+ label: "Open columns",
1149
+ blockKinds: ["block.offerings-preview"],
1150
+ design: {
1151
+ sectionSurface: "base",
1152
+ contentFrame: plainFrame,
1153
+ cardRole: "open"
1154
+ }
1155
+ }),
1156
+ defineBlockAppearancePreset({
1157
+ structure: {
1158
+ kind: "recipe",
1159
+ composition: {
1160
+ kind: "offerings-preview",
1161
+ treatment: "joined-programme-panel"
1162
+ },
1163
+ constraints: { layoutVariantKeys: ["cards"] }
1164
+ },
1165
+ id: "offerings-preview-joined-programme-panel",
1166
+ carry: {
1167
+ kind: "look",
1168
+ look: "feature-cards-index"
1169
+ },
1170
+ target: "offerings",
1171
+ label: "Rows joined in one panel",
1172
+ blockKinds: ["block.offerings-preview"],
1173
+ design: {
1174
+ sectionSurface: "base",
1175
+ contentFrame: plainFrame,
1176
+ cardRole: "default"
1177
+ }
1178
+ }),
1179
+ defineBlockAppearancePreset({
1180
+ structure: { kind: "recipe" },
1181
+ id: "feature-cards-raised-rule",
1182
+ carry: {
1183
+ kind: "look",
1184
+ look: "feature-cards-cards"
1185
+ },
1186
+ target: "feature-cards",
1187
+ label: "Raised cards with a line",
1188
+ blockKinds: ["block.feature-cards"],
1189
+ design: {
1190
+ sectionSurface: "base",
1191
+ contentFrame: plainFrame,
1192
+ cardRole: "default"
1193
+ }
1194
+ }),
1195
+ defineBlockAppearancePreset({
1196
+ structure: { kind: "recipe" },
1197
+ id: "feature-cards-bold-colors",
1198
+ carry: {
1199
+ kind: "look",
1200
+ look: "feature-cards-cards"
1201
+ },
1202
+ target: "feature-cards",
1203
+ label: "Colour-filled cards",
1204
+ blockKinds: ["block.feature-cards"],
1205
+ design: {
1206
+ sectionSurface: "base",
1207
+ contentFrame: plainFrame,
1208
+ cardRole: "alternative"
1209
+ }
1210
+ }),
1211
+ defineBlockAppearancePreset({
1212
+ structure: { kind: "recipe" },
1213
+ id: "feature-cards-editorial-columns",
1214
+ carry: {
1215
+ kind: "look",
1216
+ look: "card-list-accent-edged-cards"
1217
+ },
1218
+ target: "feature-cards",
1219
+ label: "Open columns on a soft band",
1220
+ blockKinds: ["block.feature-cards"],
1221
+ design: {
1222
+ sectionSurface: "muted-band",
1223
+ contentFrame: plainFrame,
1224
+ cardRole: "open"
1225
+ }
1226
+ }),
1227
+ defineBlockAppearancePreset({
1228
+ structure: {
1229
+ kind: "recipe",
1230
+ composition: {
1231
+ kind: "feature-cards",
1232
+ treatment: "asymmetric-emphasis"
1233
+ },
1234
+ constraints: { layoutFamilies: ["grid"] }
1235
+ },
1236
+ id: "feature-cards-asymmetric-emphasis",
1237
+ carry: {
1238
+ kind: "no-equivalent",
1239
+ because: "No shared Look lays cards out in uneven pairs."
1240
+ },
1241
+ target: "feature-cards",
1242
+ label: "Cards in uneven pairs",
1243
+ blockKinds: ["block.feature-cards"],
1244
+ design: {
1245
+ sectionSurface: "base",
1246
+ contentFrame: plainFrame
1247
+ }
1248
+ }),
1249
+ defineBlockAppearancePreset({
1250
+ structure: {
1251
+ kind: "recipe",
1252
+ composition: {
1253
+ kind: "feature-cards",
1254
+ treatment: "framed-programme"
1255
+ },
1256
+ constraints: { layoutFamilies: ["grid"] }
1257
+ },
1258
+ id: "feature-cards-framed-programme",
1259
+ carry: {
1260
+ kind: "look",
1261
+ look: "feature-cards-cards"
1262
+ },
1263
+ target: "feature-cards",
1264
+ label: "Close-set cards on brand colour",
1265
+ blockKinds: ["block.feature-cards"],
1266
+ design: {
1267
+ sectionSurface: "brand-depth-band",
1268
+ contentFrame: plainFrame,
1269
+ cardRole: "alternative"
1270
+ }
1271
+ }),
1272
+ defineBlockAppearancePreset({
1273
+ structure: {
1274
+ kind: "recipe",
1275
+ constraints: { layoutVariantKeys: ["editorial-diptych"] }
1276
+ },
1277
+ id: "feature-cards-editorial-diptych",
1278
+ carry: {
1279
+ kind: "look",
1280
+ look: "feature-cards-cards"
1281
+ },
1282
+ target: "feature-cards",
1283
+ label: "Two large cards side by side",
1284
+ blockKinds: ["block.feature-cards"],
1285
+ design: {
1286
+ sectionSurface: "base",
1287
+ contentFrame: plainFrame,
1288
+ cardRole: "default"
1289
+ }
1290
+ }),
1291
+ defineBlockAppearancePreset({
1292
+ structure: { kind: "recipe" },
1293
+ id: "events-lined-panel",
1294
+ carry: {
1295
+ kind: "by-layout",
1296
+ layouts: {
1297
+ combined: {
1298
+ kind: "look",
1299
+ look: "event-calendar-combined-panel",
1300
+ knobs: { actionStyle: "button" }
1301
+ },
1302
+ stack: {
1303
+ kind: "look",
1304
+ look: "event-calendar-ruled-rows-panel",
1305
+ knobs: { actionStyle: "button" }
1306
+ },
1307
+ compact: {
1308
+ kind: "look",
1309
+ look: "event-calendar-ruled-rows-panel",
1310
+ knobs: { actionStyle: "button" }
1311
+ }
1312
+ }
1313
+ },
1314
+ target: "events",
1315
+ label: "Cards on a panel",
1316
+ blockKinds: ["block.event-calendar", "block.event-listing"],
1317
+ design: {
1318
+ sectionSurface: "base",
1319
+ contentFrame: panelFrame("raised")
1320
+ }
1321
+ }),
1322
+ defineBlockAppearancePreset({
1323
+ structure: { kind: "recipe" },
1324
+ id: "events-ruled-register",
1325
+ carry: {
1326
+ kind: "look",
1327
+ look: "event-calendar-ruled-rows"
1328
+ },
1329
+ target: "events",
1330
+ label: "Ruled list",
1331
+ blockKinds: ["block.event-calendar", "block.event-listing"],
1332
+ design: {
1333
+ sectionSurface: "brand-depth-band",
1334
+ contentFrame: plainFrame,
1335
+ eventListTreatment: "ruled-register"
1336
+ }
1337
+ }),
1338
+ defineBlockAppearancePreset({
1339
+ structure: { kind: "recipe" },
1340
+ id: "events-editorial-register",
1341
+ carry: {
1342
+ kind: "look",
1343
+ look: "event-calendar-ruled-rows"
1344
+ },
1345
+ target: "events",
1346
+ label: "Editorial list",
1347
+ blockKinds: ["block.event-calendar", "block.event-listing"],
1348
+ design: {
1349
+ sectionSurface: "base",
1350
+ contentFrame: plainFrame,
1351
+ eventListTreatment: "editorial-register"
1352
+ }
1353
+ }),
1354
+ defineBlockAppearancePreset({
1355
+ structure: { kind: "recipe" },
1356
+ id: "events-dense-index",
1357
+ carry: {
1358
+ kind: "look",
1359
+ look: "event-calendar-ruled-rows"
1360
+ },
1361
+ target: "events",
1362
+ label: "Compact list",
1363
+ blockKinds: ["block.event-calendar", "block.event-listing"],
1364
+ design: {
1365
+ sectionSurface: "accent-band",
1366
+ contentFrame: plainFrame,
1367
+ eventListTreatment: "dense-index"
1368
+ }
1369
+ }),
1370
+ defineBlockAppearancePreset({
1371
+ structure: { kind: "recipe" },
1372
+ id: "schedule-details-brand-depth",
1373
+ carry: {
1374
+ kind: "look",
1375
+ look: "event-details-panel"
1376
+ },
1377
+ target: "events",
1378
+ label: "Details on brand colour",
1379
+ blockKinds: ["block.event-details"],
1380
+ design: {
1381
+ sectionSurface: "brand-depth-band",
1382
+ contentFrame: plainFrame,
1383
+ tileTreatment: "brand-depth"
1384
+ }
1385
+ }),
1386
+ defineBlockAppearancePreset({
1387
+ structure: { kind: "recipe" },
1388
+ id: "media-text-flush-feature",
1389
+ carry: {
1390
+ kind: "look",
1391
+ look: "media-text-photo-beside-text"
1392
+ },
1393
+ target: "media-text",
1394
+ label: "Photo to the edge, on a soft band",
1395
+ blockKinds: ["block.media-text"],
1396
+ design: {
1397
+ sectionSurface: "muted-band",
1398
+ contentFrame: flushPanelFrame({ bleed: "start" })
1399
+ }
1400
+ }),
1401
+ defineBlockAppearancePreset({
1402
+ structure: { kind: "recipe" },
1403
+ id: "testimonials-simple-cards",
1404
+ carry: { kind: "by-layout" },
1405
+ target: "testimonials",
1406
+ label: "Quote cards",
1407
+ blockKinds: ["block.testimonials"],
1408
+ design: {
1409
+ sectionSurface: "base",
1410
+ contentFrame: plainFrame,
1411
+ cardRole: "default"
1412
+ }
1413
+ }),
1414
+ defineBlockAppearancePreset({
1415
+ structure: { kind: "recipe" },
1416
+ id: "testimonials-raised-panel",
1417
+ carry: { kind: "by-layout" },
1418
+ target: "testimonials",
1419
+ label: "Quotes on a panel",
1420
+ blockKinds: ["block.testimonials"],
1421
+ design: {
1422
+ sectionSurface: "muted-band",
1423
+ contentFrame: panelFrame("raised"),
1424
+ cardRole: "default"
1425
+ }
1426
+ }),
1427
+ defineBlockAppearancePreset({
1428
+ structure: { kind: "recipe" },
1429
+ id: "testimonials-accent-panel",
1430
+ carry: { kind: "by-layout" },
1431
+ target: "testimonials",
1432
+ label: "Quotes on an accent panel",
1433
+ blockKinds: ["block.testimonials"],
1434
+ design: {
1435
+ sectionSurface: "accent-band",
1436
+ contentFrame: panelFrame("raised"),
1437
+ cardRole: "default"
1438
+ }
1439
+ }),
1440
+ defineBlockAppearancePreset({
1441
+ structure: { kind: "recipe" },
1442
+ id: "testimonials-statement-cards",
1443
+ carry: { kind: "by-layout" },
1444
+ target: "testimonials",
1445
+ label: "Cards on accent colour",
1446
+ blockKinds: ["block.testimonials"],
1447
+ design: {
1448
+ sectionSurface: "accent-band",
1449
+ contentFrame: plainFrame,
1450
+ cardRole: "alternative"
1451
+ }
1452
+ }),
1453
+ defineBlockAppearancePreset({
1454
+ structure: { kind: "recipe" },
1455
+ id: "testimonials-brand-statement-cards",
1456
+ carry: { kind: "by-layout" },
1457
+ target: "testimonials",
1458
+ label: "Cards on brand colour",
1459
+ blockKinds: ["block.testimonials"],
1460
+ design: {
1461
+ sectionSurface: "brand-depth-band",
1462
+ contentFrame: plainFrame,
1463
+ cardRole: "alternative"
1464
+ }
1465
+ }),
1466
+ defineBlockAppearancePreset({
1467
+ structure: {
1468
+ kind: "recipe",
1469
+ composition: {
1470
+ kind: "testimonials",
1471
+ treatment: "open-editorial"
1472
+ }
1473
+ },
1474
+ id: "testimonials-non-carded",
1475
+ carry: {
1476
+ kind: "by-layout",
1477
+ layouts: { grid: {
1478
+ kind: "look",
1479
+ look: "testimonials-quote-columns",
1480
+ knobs: { quoteCount: "all" }
1481
+ } }
1482
+ },
1483
+ target: "testimonials",
1484
+ label: "No cards",
1485
+ blockKinds: ["block.testimonials"],
1486
+ design: {
1487
+ sectionSurface: "muted-band",
1488
+ contentFrame: plainFrame
1489
+ }
1490
+ }),
1491
+ defineBlockAppearancePreset({
1492
+ structure: {
1493
+ kind: "recipe",
1494
+ composition: {
1495
+ kind: "testimonials",
1496
+ treatment: "evergreen-lead"
1497
+ },
1498
+ constraints: { layoutVariantKeys: ["featured-editorial"] }
1499
+ },
1500
+ id: "testimonials-evergreen-lead",
1501
+ carry: {
1502
+ kind: "look",
1503
+ look: "testimonials-lead-quote"
1504
+ },
1505
+ target: "testimonials",
1506
+ label: "Lead quote, others in two columns",
1507
+ blockKinds: ["block.testimonials"],
1508
+ design: {
1509
+ sectionSurface: "base",
1510
+ contentFrame: plainFrame
1511
+ }
1512
+ }),
1513
+ defineBlockAppearancePreset({
1514
+ structure: {
1515
+ kind: "recipe",
1516
+ composition: {
1517
+ kind: "testimonials",
1518
+ treatment: "room-and-response"
1519
+ },
1520
+ constraints: { layoutVariantKeys: ["featured-editorial"] }
1521
+ },
1522
+ id: "testimonials-room-and-response",
1523
+ carry: {
1524
+ kind: "look",
1525
+ look: "testimonials-lead-quote"
1526
+ },
1527
+ target: "testimonials",
1528
+ label: "Tall lead quote, others beside",
1529
+ blockKinds: ["block.testimonials"],
1530
+ design: {
1531
+ sectionSurface: "base",
1532
+ contentFrame: plainFrame
1533
+ }
1534
+ }),
1535
+ defineBlockAppearancePreset({
1536
+ structure: {
1537
+ kind: "recipe",
1538
+ composition: {
1539
+ kind: "testimonials",
1540
+ treatment: "open-floor"
1541
+ },
1542
+ constraints: { layoutVariantKeys: ["featured-editorial"] }
1543
+ },
1544
+ id: "testimonials-open-floor",
1545
+ carry: {
1546
+ kind: "look",
1547
+ look: "testimonials-lead-quote"
1548
+ },
1549
+ target: "testimonials",
1550
+ label: "Title beside, lead quote on top",
1551
+ blockKinds: ["block.testimonials"],
1552
+ design: {
1553
+ sectionSurface: "base",
1554
+ contentFrame: plainFrame
1555
+ }
1556
+ }),
1557
+ defineBlockAppearancePreset({
1558
+ structure: { kind: "recipe" },
1559
+ id: "faq-base-accordion",
1560
+ carry: { kind: "by-layout" },
1561
+ target: "faq",
1562
+ label: "Plain list of questions",
1563
+ blockKinds: ["block.faq"],
1564
+ design: {
1565
+ sectionSurface: "base",
1566
+ contentFrame: plainFrame,
1567
+ cardRole: "default"
1568
+ }
1569
+ }),
1570
+ defineBlockAppearancePreset({
1571
+ structure: { kind: "recipe" },
1572
+ id: "faq-contained-help",
1573
+ carry: {
1574
+ kind: "by-layout",
1575
+ layouts: { default: {
1576
+ kind: "look",
1577
+ look: "faq-questions-in-panel"
1578
+ } }
1579
+ },
1580
+ target: "faq",
1581
+ label: "Questions in a panel",
1582
+ blockKinds: ["block.faq"],
1583
+ design: {
1584
+ sectionSurface: "muted-band",
1585
+ contentFrame: panelFrame("inset"),
1586
+ cardRole: "default"
1587
+ }
1588
+ }),
1589
+ defineBlockAppearancePreset({
1590
+ structure: { kind: "recipe" },
1591
+ id: "contact-form-panel",
1592
+ carry: { kind: "by-layout" },
1593
+ target: "contact-form",
1594
+ label: "Form on a panel",
1595
+ blockKinds: ["block.form"],
1596
+ design: {
1597
+ sectionSurface: "muted-band",
1598
+ contentFrame: panelFrame("raised")
1599
+ }
1600
+ }),
1601
+ defineBlockAppearancePreset({
1602
+ structure: { kind: "recipe" },
1603
+ id: "booking-brand-band",
1604
+ carry: {
1605
+ kind: "no-equivalent",
1606
+ because: "Appointment booking has no shared Looks."
1607
+ },
1608
+ target: "contact-form",
1609
+ label: "Booking form on brand colour",
1610
+ blockKinds: ["block.appointment-booking"],
1611
+ design: {
1612
+ sectionSurface: "brand-depth-band",
1613
+ contentFrame: plainFrame
1614
+ }
1615
+ }),
1616
+ defineBlockAppearancePreset({
1617
+ structure: { kind: "recipe" },
1618
+ id: "cta-accent-band",
1619
+ carry: {
1620
+ kind: "look",
1621
+ look: "cta-centred"
1622
+ },
1623
+ target: "cta",
1624
+ label: "Accent colour band",
1625
+ blockKinds: ["block.cta-full"],
1626
+ design: {
1627
+ sectionSurface: "accent-band",
1628
+ contentFrame: plainFrame,
1629
+ eyebrowTreatment: "accent"
1630
+ }
1631
+ }),
1632
+ defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", [], { thumbnail: sketch.page([
1633
+ sketch.rule,
1634
+ sketch.title(.5),
1635
+ sketch.text(4)
1636
+ ], { align: "center" }) }),
1637
+ defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside a framed form", "two-column", [], {
1638
+ thumbnail: sketch.page([sketch.middle([
1639
+ sketch.rule,
1640
+ sketch.title(.8),
1641
+ sketch.text(3)
1642
+ ], [sketch.panel([
1643
+ sketch.field,
1644
+ sketch.field,
1645
+ sketch.button
1646
+ ])])]),
1647
+ slotRoles: { panel: "card" },
1648
+ styleFallback: [id("form-below-introduction")]
1649
+ }),
1650
+ defineArrangementLook("form-beside-introduction-no-card", "form", "Form on the background, no card", "two-column", [], {
1651
+ thumbnail: sketch.page([sketch.middle([
1652
+ sketch.rule,
1653
+ sketch.title(.8),
1654
+ sketch.text(3)
1655
+ ], [
1656
+ sketch.field,
1657
+ sketch.field,
1658
+ sketch.button
1659
+ ])]),
1660
+ styleFallback: [id("form-beside-introduction-arched-panel")]
1661
+ }),
1662
+ defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in a frame", "arch", [], {
1663
+ thumbnail: sketch.band([sketch.panel([
1664
+ sketch.title(.6),
1665
+ sketch.text(1, .7),
1666
+ sketch.row(sketch.weight(3, [sketch.field]), sketch.weight(1, [sketch.button]))
1667
+ ])], { align: "center" }),
1668
+ styleFallback: [id("newsletter-signup-text-beside")]
1669
+ }),
1670
+ defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", ["blackAndWhite"], {
1671
+ mediaFrame: { default: {
1672
+ kind: "fixed",
1673
+ aspectRatio: "1/1"
1674
+ } },
1675
+ thumbnail: sketch.page([
1676
+ sketch.title(.4),
1677
+ sketch.across(4, [sketch.photo("short")]),
1678
+ sketch.across(4, [sketch.photo("short")])
1679
+ ])
1680
+ }),
1681
+ defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", ["blackAndWhite"], {
1682
+ mediaFrame: {
1683
+ default: {
1684
+ kind: "fixed",
1685
+ aspectRatio: "1/1"
1686
+ },
1687
+ bySkin: { lantern: {
1688
+ kind: "fixed",
1689
+ aspectRatio: "3/4",
1690
+ borderRadius: "9999px 9999px 0 0"
1691
+ } }
1692
+ },
1693
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("tall", "arch"), sketch.text(1, .7)])]),
1694
+ styleFallback: [id("image-gallery-square-tiles")]
1695
+ }),
1696
+ defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
1697
+ mediaFrame: { default: {
1698
+ kind: "fixed",
1699
+ aspectRatio: "1/1",
1700
+ borderRadius: "50%"
1701
+ } },
1702
+ thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [sketch.title(.8), sketch.text(3)])]),
1703
+ forcedKnobs: {
1704
+ imageShape: "circle",
1705
+ aspectRatio: "1/1"
1706
+ },
1707
+ styleFallback: [id("media-text-photo-beside-text")]
1708
+ }),
1709
+ defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, {
1710
+ photoUse: "beside",
1711
+ thumbnail: sketch.page([sketch.middle([
1712
+ sketch.rule,
1713
+ sketch.title(.95, "large"),
1714
+ sketch.title(.7, "large"),
1715
+ sketch.text(2),
1716
+ sketch.button
1717
+ ], [sketch.photo("tall")])]),
1718
+ slotRoles: { sticker: "highlight" }
1719
+ }),
1720
+ defineArrangementLook("hero-headline-row", "hero", "Big headline, then text and photo", "headline-row", heroKnobs, {
1721
+ photoUse: "beside",
1722
+ thumbnail: sketch.page([sketch.title(.9, "large"), sketch.row([sketch.text(3), sketch.button], [sketch.photo("medium")])]),
1723
+ slotRoles: { sticker: "highlight" },
1724
+ styleFallback: [id("hero-photo-beside-text")]
1725
+ }),
1726
+ defineArrangementLook("hero-photo-then-text", "hero", "Photo, then text below", "split", ["titleSize"], {
1727
+ photoUse: "beside",
1728
+ thumbnail: sketch.page([sketch.photo("medium"), sketch.row([sketch.title(.95, "large"), sketch.title(.6, "large")], [sketch.text(2), sketch.button])]),
1729
+ styleFallback: [id("hero-photo-beside-text")]
1730
+ }),
1731
+ defineArrangementLook("hero-copy-over-gallery", "hero", "Title over a row of photos", "copy-over-gallery", ["titleSize", "stickerLine"], {
1732
+ photoUse: "beside",
1733
+ thumbnail: sketch.page([
1734
+ sketch.title(.6, "large"),
1735
+ sketch.text(1, .5),
1736
+ sketch.across(3, [sketch.photo("short")])
1737
+ ], { align: "center" }),
1738
+ slotRoles: { sticker: "highlight" },
1739
+ styleFallback: [id("hero-photo-beside-text")]
1740
+ }),
1741
+ defineArrangementLook("hero-photo-behind-text", "hero", "Photo behind the text", "classic", ["titleSize", "smallCaption"], {
1742
+ photoUse: "behind",
1743
+ photoTreatment: "photo-only",
1744
+ thumbnail: sketch.page([sketch.over("full", [
1745
+ sketch.title(.7, "large"),
1746
+ sketch.text(2, .7),
1747
+ sketch.button
1748
+ ], { panel: true })]),
1749
+ slotRoles: { copy: "card" },
1750
+ styleFallback: [id("hero-photo-beside-text")]
1751
+ }),
1752
+ defineArrangementLook("hero-text-over-photo", "hero", "Text over photo", "classic", [], {
1753
+ photoUse: "behind",
1754
+ thumbnail: sketch.page([sketch.over("full", [
1755
+ sketch.title(.6, "large"),
1756
+ sketch.text(2, .6),
1757
+ sketch.button
1758
+ ])]),
1759
+ photoTreatment: "text-overlay",
1760
+ whenMissing: [{
1761
+ fact: "photo",
1762
+ look: id("hero-page-head")
1763
+ }],
1764
+ styleFallback: [id("hero-photo-behind-text")]
1765
+ }),
1766
+ defineArrangementLook("hero-short-photo-banner", "hero", "Short photo banner", "classic", [], {
1767
+ photoUse: "behind",
1768
+ photoTreatment: "photo-only",
1769
+ thumbnail: sketch.page([sketch.over("banner", [sketch.title(.6)], { panel: true })]),
1770
+ slotRoles: { copy: "card" },
1771
+ styleFallback: [id("hero-page-head")]
1772
+ }),
1773
+ defineArrangementLook("hero-page-head-round-photo", "hero", "Short title beside a round photo", "split", ["titleSize"], {
1774
+ photoUse: "beside",
1775
+ thumbnail: sketch.page([sketch.middle([
1776
+ sketch.rule,
1777
+ sketch.title(.7, "large"),
1778
+ sketch.text(1, .6)
1779
+ ], [sketch.photo("short", "circle")])]),
1780
+ whenMissing: [{
1781
+ fact: "photo",
1782
+ look: id("hero-page-head")
1783
+ }],
1784
+ styleFallback: [id("hero-page-head")]
1785
+ }),
1786
+ defineArrangementLook("hero-three-round-photos", "hero", "Three round photos beside the text", "photo-trio", ["titleSize"], {
1787
+ photoUse: "beside",
1788
+ thumbnail: sketch.page([sketch.middle([
1789
+ sketch.rule,
1790
+ sketch.title(.95, "large"),
1791
+ sketch.title(.7, "large"),
1792
+ sketch.text(2),
1793
+ sketch.button
1794
+ ], [sketch.photo("short", "circle"), sketch.across(2, [sketch.photo("short", "circle")])])]),
1795
+ styleFallback: [id("hero-photo-beside-text")]
1796
+ }),
1797
+ defineArrangementLook("hero-page-head", "hero", "Title and facts, no photo", "page-head", ["titleSize", "smallCaption"], {
1798
+ photoUse: "none",
1799
+ thumbnail: sketch.page([
1800
+ sketch.rule,
1801
+ sketch.title(.6, "large"),
1802
+ sketch.text(1, .5),
1803
+ sketch.row([sketch.text(1, .7)], [sketch.text(1, .7)], [sketch.text(1, .7)])
1804
+ ]),
1805
+ styleFallback: [id("hero-photo-beside-text")]
1806
+ }),
1807
+ defineArrangementLook("class-prices-big-figures", "class-prices", "Prices as big figures", "cards", [], { thumbnail: sketch.page([sketch.across(3, [
1808
+ sketch.price,
1809
+ sketch.title(.7, "small"),
1810
+ sketch.text(1)
1811
+ ])]) }),
1812
+ defineArrangementLook("class-prices-rows", "class-prices", "Prices on the right of each row", "index", [], { thumbnail: sketch.page([sketch.down(3, [sketch.row([sketch.title(.7, "small"), sketch.text(1)], [sketch.price])], { ruled: true })]) }),
1813
+ defineCardListLook("feature-cards-cards", "Cards", "cards", [
1814
+ "media",
1815
+ "title",
1816
+ "text",
1817
+ "action"
1818
+ ], [
1819
+ "showPhotos",
1820
+ "cardMarker",
1821
+ "columns"
1822
+ ], {
1823
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([sketch.title(.7, "small"), sketch.text(2)])])]),
1824
+ itemRoles: { items: "card" }
1825
+ }),
1826
+ defineCardListLook("card-list-accent-edged-cards", "Accent-edged cards", "cards", [
1827
+ "media",
1828
+ "title",
1829
+ "text",
1830
+ "action"
1831
+ ], [
1832
+ "showPhotos",
1833
+ "cardMarker",
1834
+ "columns"
1835
+ ], {
1836
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.accentCard([sketch.title(.7, "small"), sketch.text(2)])])]),
1837
+ itemRoles: { items: "card" },
1838
+ styleFallback: [id("feature-cards-cards")]
1839
+ }),
1840
+ defineCardListLook("feature-cards-open-columns", "Open columns", "cards", [
1841
+ "media",
1842
+ "title",
1843
+ "text",
1844
+ "action"
1845
+ ], [
1846
+ "showPhotos",
1847
+ "cardMarker",
1848
+ "columns"
1849
+ ], {
1850
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.title(.7, "small"), sketch.text(3)])]),
1851
+ knobDefaults: { actionStyle: "link" },
1852
+ styleFallback: [id("feature-cards-cards")]
1853
+ }),
1854
+ defineCardListLook("feature-cards-lead-support", "First item leads, the rest follow", "lead-support", [
1855
+ "media",
1856
+ "title",
1857
+ "text",
1858
+ "action"
1859
+ ], ["showPhotos"], {
1860
+ thumbnail: sketch.page([sketch.row(sketch.weight(4, [sketch.featured([
1861
+ sketch.photo("medium"),
1862
+ sketch.title(.7),
1863
+ sketch.text(2)
1864
+ ])]), sketch.weight(3, [sketch.down(2, [sketch.title(.7, "small"), sketch.text(2)])]))]),
1865
+ itemRoles: { at: { first: "statement" } },
1866
+ styleFallback: [id("feature-cards-cards")]
1867
+ }),
1868
+ defineCardListLook("feature-cards-index", "Ruled list", "index", [
1869
+ "title",
1870
+ "text",
1871
+ "action"
1872
+ ], ["cardMarker"], {
1873
+ thumbnail: sketch.page([sketch.title(.4), sketch.down(3, [sketch.row(sketch.weight(1, [sketch.title(.8, "small")]), sketch.weight(2, [sketch.text(1)]))], { ruled: true })]),
1874
+ knobDefaults: { cardMarker: "none" },
1875
+ knobValues: { cardMarker: ["numbers", "none"] },
1876
+ styleFallback: [id("feature-cards-cards")]
1877
+ }),
1878
+ {
1879
+ ...defineCardListLook("feature-cards-timeline", "A timeline down the page", "index", [
1880
+ "title",
1881
+ "text",
1882
+ "action"
1883
+ ], [], {
1884
+ thumbnail: sketch.page([sketch.title(.4), sketch.down(3, [sketch.row(sketch.weight(1, [sketch.number]), sketch.weight(5, [sketch.card([sketch.title(.6, "small"), sketch.text(2)])]))])]),
1885
+ forcedKnobs: { cardMarker: "none" },
1886
+ itemRoles: { items: "card" },
1887
+ styleFallback: [id("feature-cards-index")]
1888
+ }),
1889
+ blockKinds: ["block.feature-cards"]
1890
+ },
1891
+ {
1892
+ ...defineCardListLook("feature-cards-photo-beside-cards", "Cards with a photo beside the text", "cards", [
1893
+ "media",
1894
+ "title",
1895
+ "text",
1896
+ "action"
1897
+ ], ["showPhotos"], {
1898
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(2, [sketch.card([sketch.row([sketch.photo("short")], [
1899
+ sketch.title(.7, "small"),
1900
+ sketch.text(2),
1901
+ sketch.link
1902
+ ])])])]),
1903
+ knobDefaults: { actionStyle: "link" },
1904
+ itemRoles: { items: "card" },
1905
+ styleFallback: [id("feature-cards-cards")]
1906
+ }),
1907
+ blockKinds: ["block.feature-cards"]
1908
+ },
1909
+ defineCardListLook("feature-cards-sequence", "Numbered steps", "sequence", [
1910
+ "title",
1911
+ "text",
1912
+ "action"
1913
+ ], [], {
1914
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [
1915
+ sketch.number,
1916
+ sketch.title(.7, "small"),
1917
+ sketch.text(2)
1918
+ ])]),
1919
+ forcedKnobs: { cardMarker: "numbers" },
1920
+ styleFallback: [id("feature-cards-cards")]
1921
+ }),
1922
+ defineCardListLook("card-list-plates", "Plates", "plates", [
1923
+ "media",
1924
+ "title",
1925
+ "text",
1926
+ "facts",
1927
+ "schedule",
1928
+ "action"
1929
+ ], ["showPhotos"], {
1930
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([
1931
+ sketch.photo("short"),
1932
+ sketch.title(.7, "small"),
1933
+ sketch.text(1),
1934
+ sketch.link
1935
+ ])])]),
1936
+ knobDefaults: {
1937
+ actionStyle: "link",
1938
+ cardMarker: "none"
1939
+ },
1940
+ styleFallback: [id("feature-cards-cards")]
1941
+ }),
1942
+ calendarRuledRows,
1943
+ calendarRuledRowsPanel,
1944
+ {
1945
+ ...calendarRuledRowsPanel,
1946
+ id: id("event-calendar-day-schedule"),
1947
+ label: "Sessions grouped by day",
1948
+ structure: {
1949
+ ...calendarRuledRowsPanel.structure,
1950
+ eventRows: "day-schedule",
1951
+ forcedKnobs: { actionStyle: "button" }
1952
+ }
1953
+ },
1954
+ defineArrangementLook("event-calendar-grouped-by-day", "event-calendar", "Grouped by day", "day-groups", ["showCapacity"], {
1955
+ thumbnail: sketch.band([sketch.title(.4), sketch.down(2, [sketch.title(.2, "small"), sketch.panel([sketch.down(2, [sketch.row(sketch.weight(3, [sketch.text(1)]), sketch.weight(1, [sketch.link]))], { ruled: true })])])]),
1956
+ styleFallback: [id("event-calendar-ruled-rows")]
1957
+ }),
1958
+ defineArrangementLook("event-calendar-grouped-by-week", "event-calendar", "Grouped by week", "week-groups", [], {
1959
+ thumbnail: sketch.band([sketch.title(.4), sketch.down(2, [sketch.title(.3, "small"), sketch.panel([sketch.text(2), sketch.button])])]),
1960
+ styleFallback: [id("event-calendar-grouped-by-day")]
1961
+ }),
1962
+ {
1963
+ ...calendarRuledRowsPanel,
1964
+ id: id("event-calendar-combined-panel"),
1965
+ structure: {
1966
+ ...calendarRuledRowsPanel.structure,
1967
+ byMode: { combined: "ledger" },
1968
+ styleFallback: [id("event-calendar-combined-rows")]
1969
+ }
1970
+ },
1971
+ {
1972
+ ...calendarRuledRows,
1973
+ id: id("event-calendar-combined-rows"),
1974
+ structure: {
1975
+ ...calendarRuledRows.structure,
1976
+ byMode: { combined: "ledger" }
1977
+ }
1978
+ },
1979
+ {
1980
+ ...calendarTimetableRows,
1981
+ structure: {
1982
+ ...calendarTimetableRows.structure,
1983
+ byMode: { combined: "timetable-rows" }
1984
+ }
1985
+ },
1986
+ {
1987
+ ...defineArrangementLook("event-calendar-week-columns", "event-calendar", "The week in columns", "week-columns", [], { thumbnail: sketch.band([sketch.title(.4), sketch.across(5, [sketch.title(.5, "small"), sketch.down(2, [sketch.card([sketch.text(1)])])])]) }),
1988
+ structure: {
1989
+ kind: "arrangement",
1990
+ byMode: { list: "week-columns" },
1991
+ knobs: ["showCapacity"],
1992
+ itemRoles: {},
1993
+ whenMissing: [{
1994
+ fact: "listed-by-week",
1995
+ look: id("event-calendar-grouped-by-day")
1996
+ }],
1997
+ styleFallback: [id("event-calendar-grouped-by-day")],
1998
+ photoUse: "none"
1999
+ }
2000
+ },
2001
+ defineArrangementLook("event-calendar-session-cards", "event-calendar", "Session cards", "grid", [
2002
+ "showCapacity",
2003
+ "showPhotos",
2004
+ "listColumns"
2005
+ ], {
2006
+ thumbnail: sketch.band([sketch.title(.4), sketch.across(3, [sketch.card([
2007
+ sketch.title(.4, "small"),
2008
+ sketch.title(.8, "small"),
2009
+ sketch.text(1),
2010
+ sketch.button
2011
+ ])])]),
2012
+ itemRoles: { items: "card" },
2013
+ slotRoles: { date: "highlight" },
2014
+ styleFallback: [id("event-calendar-ruled-rows")]
2015
+ }),
2016
+ defineArrangementLook("event-calendar-next-three", "event-calendar", "Compact rows", "compact", ["showCapacity"], {
2017
+ thumbnail: sketch.page([sketch.title(.4), sketch.panel([sketch.down(3, [sketch.row(sketch.weight(3, [sketch.text(1)]), sketch.weight(1, [sketch.link]))], { ruled: true })])]),
2018
+ itemRoles: { container: "card" },
2019
+ styleFallback: [id("event-calendar-ruled-rows")]
2020
+ }),
2021
+ defineArrangementLook("events-spotlight", "event-calendar", "Event spotlight", "grid", [
2022
+ "showCapacity",
2023
+ "showPhotos",
2024
+ "listColumns"
2025
+ ], {
2026
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([
2027
+ sketch.photo("short"),
2028
+ sketch.title(.8, "small"),
2029
+ sketch.text(1),
2030
+ sketch.button
2031
+ ])])]),
2032
+ itemRoles: { items: "card" },
2033
+ slotRoles: { date: "highlight" },
2034
+ styleFallback: [id("event-calendar-session-cards")]
2035
+ }),
2036
+ {
2037
+ ...defineArrangementLook("events-recurring-week", "event-calendar", "Weekly schedule", "ledger", [], { thumbnail: sketch.page([sketch.title(.4), sketch.across(5, [sketch.title(.6, "small"), sketch.down(2, [sketch.card([sketch.text(1)])])])]) }),
2038
+ structure: {
2039
+ kind: "arrangement",
2040
+ byMode: { week: "ledger" },
2041
+ knobs: [],
2042
+ itemRoles: {},
2043
+ whenMissing: [],
2044
+ styleFallback: [],
2045
+ photoUse: "none"
2046
+ }
2047
+ },
2048
+ defineArrangementLook("hero-framed-title", "hero", "Title framed between two photos", "copy-over-gallery", ["titleSize", "smallCaption"], {
2049
+ photoUse: "beside",
2050
+ thumbnail: sketch.page([sketch.middle([sketch.photo("tall")], [sketch.title(.95, "large"), sketch.title(.7, "large")], [sketch.photo("tall")])]),
2051
+ styleFallback: [id("hero-copy-over-gallery")]
2052
+ }),
2053
+ defineArrangementLook("testimonials-lead-quote", "testimonials", "Big quote with others beside", "lead-rest", ["quoteCount"], {
2054
+ thumbnail: sketch.band([sketch.row(sketch.weight(3, [
2055
+ sketch.quote("large"),
2056
+ sketch.title(.95, "small"),
2057
+ sketch.title(.8, "small"),
2058
+ sketch.text(1, .3)
2059
+ ]), sketch.weight(2, [sketch.down(2, [sketch.text(2), sketch.text(1, .3)])]))]),
2060
+ knobDescriptions: { quoteCount: "Shows your chosen quotes: the first one large, the rest beside it." }
2061
+ }),
2062
+ defineArrangementLook("testimonials-quote-cards", "testimonials", "Quote cards", "columns", ["quoteCount"], {
2063
+ thumbnail: sketch.band([sketch.title(.4), sketch.across(3, [sketch.card([sketch.quote(), sketch.text(3)])])]),
2064
+ knobDescriptions: { quoteCount: "Shows your chosen quotes as cards in a row." },
2065
+ itemRoles: { items: "card" },
2066
+ styleFallback: [id("testimonials-quote-columns")]
2067
+ }),
2068
+ defineArrangementLook("testimonials-quote-columns", "testimonials", "Quotes in open columns", "columns", ["quoteCount"], {
2069
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.quote(), sketch.text(3)])]),
2070
+ knobDescriptions: { quoteCount: "Shows your chosen quotes in columns." },
2071
+ styleFallback: [id("testimonials-lead-quote")]
2072
+ }),
2073
+ defineArrangementLook("testimonials-one-quote", "testimonials", "One quote", "single", [], {
2074
+ thumbnail: sketch.page([
2075
+ sketch.quote("large"),
2076
+ sketch.title(.8, "small"),
2077
+ sketch.title(.7, "small"),
2078
+ sketch.text(1, .3)
2079
+ ], { align: "center" }),
2080
+ styleFallback: [id("testimonials-lead-quote")]
2081
+ }),
2082
+ defineArrangementLook("testimonials-one-at-a-time", "testimonials", "One at a time, with arrows", "slides", ["quoteCount"], {
2083
+ thumbnail: sketch.band([sketch.across(1, [sketch.card([sketch.quote(), sketch.text(3)])], { arrows: true })]),
2084
+ knobDescriptions: { quoteCount: "Shows your chosen quotes, one at a time." },
2085
+ styleFallback: [id("testimonials-one-quote")]
2086
+ }),
2087
+ defineArrangementLook("testimonials-scroll-row", "testimonials", "A row of cards you can scroll", "track", ["quoteCount", "autoAdvance"], {
2088
+ thumbnail: sketch.band([sketch.title(.4), sketch.across(4, [sketch.card([sketch.quote(), sketch.text(2)])], { overflow: true })]),
2089
+ knobDescriptions: { quoteCount: "Shows your chosen quotes in a row you can scroll." },
2090
+ itemRoles: { items: "card" },
2091
+ styleFallback: [id("testimonials-quote-cards")]
2092
+ }),
2093
+ {
2094
+ ...defineArrangementLook("event-calendar-month-grid", "event-calendar", "Month grid", "month-grid", [], { thumbnail: sketch.page([sketch.title(.4), sketch.calendar]) }),
2095
+ structure: {
2096
+ kind: "arrangement",
2097
+ byMode: { calendar: "month-grid" },
2098
+ knobs: [],
2099
+ itemRoles: {},
2100
+ whenMissing: [],
2101
+ styleFallback: [],
2102
+ photoUse: "none"
2103
+ }
2104
+ },
2105
+ {
2106
+ ...defineArrangementLook("event-calendar-month-day", "event-calendar", "Calendar beside the day", "month-day", [], { thumbnail: sketch.page([sketch.row(sketch.weight(2, [sketch.calendar]), sketch.weight(1, [sketch.title(.6, "small"), sketch.down(3, [sketch.text(1)], { ruled: true })]))]) }),
2107
+ structure: {
2108
+ kind: "arrangement",
2109
+ byMode: { calendar: "month-day" },
2110
+ knobs: [],
2111
+ itemRoles: {},
2112
+ whenMissing: [],
2113
+ styleFallback: [id("event-calendar-month-grid")],
2114
+ photoUse: "none"
2115
+ }
2116
+ },
2117
+ defineArrangementLook("event-details-header", "event-details", "Event header", "event-header", [], {
2118
+ thumbnail: sketch.page([
2119
+ sketch.rule,
2120
+ sketch.title(.7, "large"),
2121
+ sketch.text(1, .5),
2122
+ sketch.middle([sketch.text(1)], [sketch.text(1)], [sketch.button])
2123
+ ]),
2124
+ actionSize: "lg",
2125
+ slotRoles: { availability: "highlight" }
2126
+ }),
2127
+ defineArrangementLook("event-details-panel", "event-details", "Details panel", "details-panel", [], {
2128
+ thumbnail: sketch.page([sketch.row(sketch.weight(2, [sketch.title(.8, "large"), sketch.text(4)]), sketch.weight(1, [sketch.panel([sketch.text(3), sketch.button])]))]),
2129
+ slotRoles: { panel: "card" },
2130
+ styleFallback: [id("event-details-header")]
2131
+ }),
2132
+ defineArrangementLook("intro-statement-beside-text", "intro", "Big statement beside the text", "statement-copy", [], {
2133
+ thumbnail: sketch.page([sketch.row([sketch.title(.95, "large"), sketch.title(.8, "large")], [sketch.text(5)])]),
2134
+ styleFallback: [id("intro-photo-beside-text")]
2135
+ }),
2136
+ defineArrangementLook("intro-photo-beside-text", "intro", "Small photo beside the text", "media-copy", ["imagePosition", "imageShape"], {
2137
+ mediaFrame: introPhotoFrames,
2138
+ thumbnail: sketch.page([sketch.middle(sketch.weight(1, [sketch.photo("medium")]), sketch.weight(2, [sketch.title(.7), sketch.text(3)]))]),
2139
+ whenMissing: [{
2140
+ fact: "photo",
2141
+ look: id("intro-statement-beside-text")
2142
+ }]
2143
+ }),
2144
+ defineArrangementLook("intro-large-photo-beside-text", "intro", "Large photo beside the text", "media-copy", ["imagePosition"], {
2145
+ mediaFrame: { default: naturalPhotoFrame },
2146
+ thumbnail: sketch.page([sketch.row(sketch.weight(1, [sketch.photo("tall")]), sketch.weight(1, [sketch.title(.7), sketch.text(5)]))]),
2147
+ whenMissing: [{
2148
+ fact: "photo",
2149
+ look: id("intro-statement-beside-text")
2150
+ }],
2151
+ styleFallback: [id("intro-photo-beside-text")]
2152
+ }),
2153
+ defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"], {
2154
+ mediaFrame: mediaTextPhotoFrames,
2155
+ thumbnail: sketch.page([sketch.middle([sketch.photo("tall")], [
2156
+ sketch.rule,
2157
+ sketch.title(.8),
2158
+ sketch.text(3)
2159
+ ])])
2160
+ }),
2161
+ defineArrangementLook("media-text-photo-to-edge", "media-text", "Photo to the edge", "default", ["imagePosition"], {
2162
+ mediaFrame: { default: {
2163
+ kind: "variable",
2164
+ because: "The photo fills the section height, which depends on the text and viewport.",
2165
+ aspectRatio: "auto"
2166
+ } },
2167
+ thumbnail: sketch.page([sketch.row(sketch.weight(1, [
2168
+ sketch.rule,
2169
+ sketch.title(.8),
2170
+ sketch.text(3)
2171
+ ]), sketch.weight(1, [sketch.photo("tall")]))]),
2172
+ styleFallback: [id("media-text-photo-beside-text")]
2173
+ }),
2174
+ defineArrangementLook("newsletter-signup-one-row", "newsletter-signup", "Signup in one row", "inline", [], {
2175
+ thumbnail: sketch.band([
2176
+ sketch.title(.6),
2177
+ sketch.text(1, .6),
2178
+ sketch.row(sketch.weight(3, [sketch.field]), sketch.weight(1, [sketch.button]))
2179
+ ]),
2180
+ slotRoles: { panel: "card" },
2181
+ styleFallback: [id("newsletter-signup-text-beside")]
2182
+ }),
2183
+ defineArrangementLook("newsletter-signup-text-beside", "newsletter-signup", "Text beside the signup", "editorial-split", [], {
2184
+ thumbnail: sketch.band([sketch.middle([sketch.title(.9), sketch.text(2)], [sketch.field, sketch.button])]),
2185
+ slotRoles: { panel: "card" },
2186
+ styleFallback: [id("newsletter-signup-in-arch")]
2187
+ }),
2188
+ defineArrangementLook("form-below-introduction", "form", "Form below its introduction", "default", [], {
2189
+ thumbnail: sketch.page([
2190
+ sketch.rule,
2191
+ sketch.title(.5),
2192
+ sketch.text(2, .7),
2193
+ sketch.panel([
2194
+ sketch.field,
2195
+ sketch.field,
2196
+ sketch.button
2197
+ ])
2198
+ ]),
2199
+ slotRoles: { panel: "card" },
2200
+ styleFallback: [id("form-beside-introduction-arched-panel")]
2201
+ }),
2202
+ defineCardListLook("card-list-wide-slides", "Wide cards, one at a time", "slides", [
2203
+ "media",
2204
+ "title",
2205
+ "text",
2206
+ "action"
2207
+ ], ["showPhotos"], {
2208
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(1, [sketch.card([sketch.row([sketch.photo("medium")], [
2209
+ sketch.title(.7, "small"),
2210
+ sketch.text(2),
2211
+ sketch.button
2212
+ ])])], { arrows: true })]),
2213
+ itemRoles: { items: "card" },
2214
+ slotRoles: { date: "highlight" },
2215
+ forcedKnobs: { grouping: "one-list" },
2216
+ knobDefaults: {
2217
+ actionStyle: "button",
2218
+ dates: "summary"
2219
+ },
2220
+ styleFallback: [id("card-list-plates"), id("feature-cards-cards")]
2221
+ }),
2222
+ defineCardListLook("card-list-scroll-row", "A row of cards you can scroll", "track", [
2223
+ "media",
2224
+ "title",
2225
+ "text",
2226
+ "action"
2227
+ ], ["showPhotos"], {
2228
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(4, [sketch.card([
2229
+ sketch.photo("short"),
2230
+ sketch.title(.7, "small"),
2231
+ sketch.text(1)
2232
+ ])], { overflow: true })]),
2233
+ itemRoles: { items: "card" },
2234
+ slotRoles: { date: "highlight" },
2235
+ forcedKnobs: { grouping: "one-list" },
2236
+ knobDefaults: {
2237
+ actionStyle: "button",
2238
+ dates: "summary"
2239
+ },
2240
+ styleFallback: [id("feature-cards-cards")]
2241
+ }),
2242
+ defineArrangementLook("body-text-title-beside", "body-text", "Title beside the text", "prose", [], {
2243
+ thumbnail: sketch.page([sketch.row(sketch.weight(2, [
2244
+ sketch.rule,
2245
+ sketch.title(.9),
2246
+ sketch.title(.6)
2247
+ ]), sketch.weight(3, [sketch.text(5)]))]),
2248
+ styleFallback: [id("body-text-reading-column")]
2249
+ }),
2250
+ defineArrangementLook("body-text-large-opening", "body-text", "Large opening paragraph", "prose", ["alignment"], {
2251
+ knobDescriptions: { alignment: "Centres a short opening statement. Longer text reads better on the left." },
2252
+ thumbnail: sketch.page([
2253
+ sketch.title(.45),
2254
+ sketch.title(.95, "small"),
2255
+ sketch.title(.8, "small"),
2256
+ sketch.text(2)
2257
+ ]),
2258
+ styleFallback: [id("body-text-reading-column")]
2259
+ }),
2260
+ defineArrangementLook("faq-questions-under-title", "faq", "Questions under the title", "default", [], { thumbnail: sketch.page([sketch.title(.4), sketch.down(4, [sketch.text(1, .7)], { ruled: true })]) }),
2261
+ defineArrangementLook("faq-questions-in-panel", "faq", "Questions in a panel", "default", [], {
2262
+ thumbnail: sketch.page([sketch.panel([sketch.title(.4), sketch.down(4, [sketch.text(1, .7)], { ruled: true })])], { align: "center" }),
2263
+ slotRoles: { layout: "card" },
2264
+ styleFallback: [id("faq-questions-under-title")]
2265
+ }),
2266
+ defineArrangementLook("faq-title-beside-questions", "faq", "Title beside the questions", "two-column", [], {
2267
+ thumbnail: sketch.page([sketch.row(sketch.weight(1, [sketch.rule, sketch.title(.9)]), sketch.weight(2, [sketch.down(4, [sketch.text(1, .8)], { ruled: true })]))]),
2268
+ styleFallback: [id("faq-questions-under-title")]
2269
+ }),
2270
+ defineArrangementLook("faq-questions-two-columns", "faq", "Questions in two columns", "question-columns", [], {
2271
+ thumbnail: sketch.page([sketch.title(.4), sketch.row([sketch.down(3, [sketch.text(1, .8)], { ruled: true })], [sketch.down(3, [sketch.text(1, .8)], { ruled: true })])]),
2272
+ styleFallback: [id("faq-questions-under-title")]
2273
+ }),
2274
+ defineArrangementLook("faq-all-answers-showing", "faq", "All answers showing", "open", [], {
2275
+ thumbnail: sketch.page([sketch.title(.4), sketch.down(3, [sketch.title(.5, "small"), sketch.text(2)])]),
2276
+ styleFallback: [id("faq-questions-two-columns")]
2277
+ }),
2278
+ defineArrangementLook("image-gallery-lead-photo", "image-gallery", "One large photo, then smaller ones", "tiles", ["blackAndWhite"], {
2279
+ mediaFrame: { default: {
2280
+ kind: "variable",
2281
+ because: "The lead fills two rows; on phones the lead and a trailing full-width tile are landscape.",
2282
+ aspectRatio: "1/1",
2283
+ firstAspectRatio: "auto",
2284
+ mobileAspectRatio: "4/3"
2285
+ } },
2286
+ thumbnail: sketch.page([sketch.row(sketch.weight(2, [sketch.photo("tall")]), sketch.weight(1, [sketch.photo("short"), sketch.photo("short")]))]),
2287
+ styleFallback: [id("image-gallery-square-tiles")]
2288
+ }),
2289
+ defineArrangementLook("image-gallery-captions-under", "image-gallery", "Photos with captions underneath", "tiles", ["blackAndWhite"], {
2290
+ mediaFrame: {
2291
+ default: {
2292
+ kind: "fixed",
2293
+ aspectRatio: "4/3"
2294
+ },
2295
+ bySkin: { loom: {
2296
+ kind: "fixed",
2297
+ aspectRatio: "1/1"
2298
+ } }
2299
+ },
2300
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("medium"), sketch.text(1, .8)])]),
2301
+ styleFallback: [id("image-gallery-arched-captions"), id("image-gallery-square-tiles")]
2302
+ }),
2303
+ defineArrangementLook("image-gallery-photo-band", "image-gallery", "One photo across the page", "tiles", ["blackAndWhite"], {
2304
+ mediaFrame: {
2305
+ default: {
2306
+ kind: "fixed",
2307
+ aspectRatio: "1/1"
2308
+ },
2309
+ bySkin: { orbit: {
2310
+ kind: "variable",
2311
+ because: "The full-width band has a clamped height and curved edges.",
2312
+ aspectRatio: "auto",
2313
+ height: "clamp(18rem, 38cqi, 36rem)"
2314
+ } }
2315
+ },
2316
+ thumbnail: sketch.band([sketch.photo("short")]),
2317
+ styleFallback: [id("image-gallery-square-tiles")]
2318
+ }),
2319
+ defineArrangementLook("image-gallery-moving-row", "image-gallery", "A moving row of photos", "moving-row", ["blackAndWhite"], {
2320
+ mediaFrame: {
2321
+ default: {
2322
+ kind: "fixed",
2323
+ aspectRatio: "1/1"
2324
+ },
2325
+ bySkin: { orbit: {
2326
+ kind: "fixed",
2327
+ aspectRatio: "1/1",
2328
+ borderRadius: "50%"
2329
+ } }
2330
+ },
2331
+ thumbnail: sketch.band([sketch.across(5, [sketch.photo("short")], { overflow: true })]),
2332
+ styleFallback: [id("image-gallery-square-tiles")]
2333
+ }),
2334
+ defineArrangementLook("video-grid-columns", "video-grid", "Videos in columns", "default", [], { thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("short")])], { align: "center" }) }),
2335
+ defineArrangementLook("video-grid-tall-tiles", "video-grid", "Tall videos side by side", "tall-tiles", [], {
2336
+ styleFallback: [id("video-grid-columns")],
2337
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("tall")])], { align: "center" })
2338
+ }),
2339
+ defineArrangementLook("list-ticked-points", "list", "Ticked points", "list-ticks", [], { thumbnail: sketch.page([sketch.row(sketch.weight(2, [sketch.rule, sketch.title(.9)]), sketch.weight(3, [sketch.down(3, [sketch.row(sketch.weight(1, [sketch.number]), sketch.weight(7, [sketch.text(1, .8)]))])]))]) }),
2340
+ defineArrangementLook("list-two-columns", "list", "Points in two columns", "list-columns", [], {
2341
+ thumbnail: sketch.page([sketch.title(.4), sketch.row([sketch.down(3, [sketch.text(1, .8)])], [sketch.down(3, [sketch.text(1, .8)])])]),
2342
+ styleFallback: [id("list-ticked-points")]
2343
+ }),
2344
+ defineArrangementLook("list-headed-cards", "list", "Headed cards", "list-cards", [], {
2345
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(2, [sketch.card([sketch.title(.5, "small"), sketch.down(3, [sketch.text(1, .8)])])])], { align: "center" }),
2346
+ itemRoles: { items: "card" },
2347
+ styleFallback: [id("list-two-columns")]
2348
+ }),
2349
+ defineArrangementLook("cta-centred", "cta-full", "Centred, buttons below", "default", [], { thumbnail: sketch.band([
2350
+ sketch.title(.6),
2351
+ sketch.text(1, .5),
2352
+ sketch.middle([sketch.button], [sketch.link])
2353
+ ], { align: "center" }) }),
2354
+ defineArrangementLook("cta-title-beside-buttons", "cta-full", "Title beside the buttons", "default", [], {
2355
+ thumbnail: sketch.band([sketch.middle(sketch.weight(3, [sketch.title(.9)]), sketch.weight(1, [sketch.button]))]),
2356
+ styleFallback: [id("cta-centred")]
2357
+ }),
2358
+ defineArrangementLook("cta-line-beside-buttons", "cta-full", "One line beside the buttons", "default", [], {
2359
+ thumbnail: sketch.band([sketch.middle(sketch.weight(2, [sketch.text(1)]), sketch.weight(1, [sketch.button]))], { align: "center" }),
2360
+ styleFallback: [id("cta-title-beside-buttons")]
2361
+ }),
2362
+ defineArrangementLook("cta-figure-beside-offer", "cta-full", "Big figure beside the offer", "figure", [], {
2363
+ thumbnail: sketch.band([sketch.middle(sketch.weight(1, [sketch.title(.8, "large")]), sketch.weight(2, [
2364
+ sketch.title(.7, "small"),
2365
+ sketch.text(2),
2366
+ sketch.button
2367
+ ]))]),
2368
+ whenMissing: [{
2369
+ fact: "figure",
2370
+ look: id("cta-centred")
2371
+ }],
2372
+ styleFallback: [id("cta-centred")]
2373
+ }),
2374
+ defineArrangementLook("cta-text-in-panel", "cta-full", "Text in a panel", "default", [], {
2375
+ thumbnail: sketch.page([sketch.panel([
2376
+ sketch.title(.5),
2377
+ sketch.text(2),
2378
+ sketch.button
2379
+ ])]),
2380
+ slotRoles: { copy: "card" },
2381
+ styleFallback: [id("cta-centred")]
2382
+ }),
2383
+ defineArrangementLook("location-map-above-details", "location-map", "Map above the details", "default", [], { thumbnail: sketch.page([sketch.map, sketch.row([sketch.text(2)], [sketch.text(2)])]) }),
2384
+ defineArrangementLook("location-map-beside-address", "location-map", "Map beside the address", "map-and-details", [], {
2385
+ thumbnail: sketch.page([sketch.middle(sketch.weight(2, [sketch.map]), sketch.weight(1, [sketch.title(.7, "small"), sketch.text(3)]))]),
2386
+ styleFallback: [id("location-map-above-details")]
2387
+ }),
2388
+ defineArrangementLook("location-map-address-over-wide-map", "location-map", "Address over a wide map", "map-and-details", [], {
2389
+ thumbnail: sketch.page([sketch.over("map", [sketch.title(.7, "small"), sketch.text(3)], { panel: true })]),
2390
+ slotRoles: { panel: "card" },
2391
+ styleFallback: [id("location-map-beside-address")]
2392
+ }),
2393
+ defineArrangementLook("location-map-entrance-photo", "location-map", "Entrance photo beside the details", "photo-and-details", [], {
2394
+ thumbnail: sketch.page([sketch.middle([sketch.photo("tall")], [sketch.title(.7, "small"), sketch.text(3)])]),
2395
+ whenMissing: [{
2396
+ fact: "entrance",
2397
+ look: id("location-map-beside-address")
2398
+ }],
2399
+ styleFallback: [id("location-map-beside-address")]
2400
+ }),
2401
+ {
2402
+ ...defineCardListLook("team-members-tall-portraits", "Tall portraits in a row", "cards", [
2403
+ "media",
2404
+ "title",
2405
+ "text",
2406
+ "facts",
2407
+ "chips",
2408
+ "action"
2409
+ ], ["showPhotos"], {
2410
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(4, [
2411
+ sketch.photo("tall"),
2412
+ sketch.title(.7, "small"),
2413
+ sketch.text(1, .6)
2414
+ ])]),
2415
+ knobDefaults: { actionStyle: "link" },
2416
+ styleFallback: [id("team-members-ruled-names")]
2417
+ }),
2418
+ blockKinds: ["block.team-members"]
2419
+ },
2420
+ {
2421
+ ...defineCardListLook("team-members-portrait-bio", "Portrait beside a longer bio", "stack", [
2422
+ "media",
2423
+ "title",
2424
+ "text",
2425
+ "facts",
2426
+ "chips",
2427
+ "action"
2428
+ ], ["showPhotos"], {
2429
+ thumbnail: sketch.page([sketch.down(2, [sketch.row(sketch.weight(1, [sketch.photo("medium")]), sketch.weight(3, [sketch.title(.5, "small"), sketch.text(2)]))])]),
2430
+ teamBiography: "profile",
2431
+ knobDefaults: { actionStyle: "link" },
2432
+ styleFallback: [id("team-members-tall-portraits")]
2433
+ }),
2434
+ blockKinds: ["block.team-members"]
2435
+ },
2436
+ {
2437
+ ...defineCardListLook("team-members-ruled-names", "Names in a ruled list", "index", [
2438
+ "title",
2439
+ "text",
2440
+ "facts",
2441
+ "chips",
2442
+ "action"
2443
+ ], [], {
2444
+ thumbnail: sketch.page([sketch.title(.4), sketch.down(4, [sketch.row([sketch.title(.7, "small")], [sketch.text(1, .8)])], { ruled: true })]),
2445
+ forcedKnobs: {
2446
+ showPhotos: "false",
2447
+ cardMarker: "none"
2448
+ },
2449
+ knobDefaults: { actionStyle: "link" },
2450
+ styleFallback: [id("feature-cards-index")]
2451
+ }),
2452
+ blockKinds: ["block.team-members"]
2453
+ },
2454
+ defineCardListLook("shop-price-cards", "Price cards", "cards", [
2455
+ "title",
2456
+ "text",
2457
+ "facts",
2458
+ "price",
2459
+ "action"
2460
+ ], [], {
2461
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([
2462
+ sketch.title(.6, "small"),
2463
+ sketch.price,
2464
+ sketch.text(2),
2465
+ sketch.button
2466
+ ])])]),
2467
+ itemRoles: { items: "card" },
2468
+ styleFallback: [id("shop-ruled-prices")]
2469
+ }),
2470
+ defineCardListLook("shop-price-cards-featured", "Price cards, one featured", "cards", [
2471
+ "title",
2472
+ "text",
2473
+ "facts",
2474
+ "price",
2475
+ "action"
2476
+ ], [], {
2477
+ thumbnail: sketch.page([sketch.title(.4), sketch.row([sketch.card([
2478
+ sketch.title(.6, "small"),
2479
+ sketch.price,
2480
+ sketch.text(2),
2481
+ sketch.button
2482
+ ])], [sketch.featured([
2483
+ sketch.title(.6, "small"),
2484
+ sketch.price,
2485
+ sketch.text(2),
2486
+ sketch.button
2487
+ ])], [sketch.card([
2488
+ sketch.title(.6, "small"),
2489
+ sketch.price,
2490
+ sketch.text(2),
2491
+ sketch.button
2492
+ ])])]),
2493
+ itemRoles: {
2494
+ items: "card",
2495
+ featured: "statement"
2496
+ },
2497
+ whenMissing: [{
2498
+ fact: "featured",
2499
+ look: id("shop-price-cards")
2500
+ }],
2501
+ styleFallback: [id("shop-price-cards")]
2502
+ }),
2503
+ defineCardListLook("shop-ruled-prices", "Prices in a ruled list", "index", [
2504
+ "title",
2505
+ "text",
2506
+ "facts",
2507
+ "price",
2508
+ "action"
2509
+ ], [], {
2510
+ thumbnail: sketch.page([sketch.title(.4), sketch.down(4, [sketch.row(sketch.weight(3, [sketch.title(.6, "small")]), sketch.weight(1, [sketch.price]))], { ruled: true })]),
2511
+ forcedKnobs: { cardMarker: "none" },
2512
+ knobDefaults: { actionStyle: "link" },
2513
+ styleFallback: [id("feature-cards-index")]
2514
+ }),
2515
+ {
2516
+ ...defineCardListLook("card-list-photos-on-top", "Photos on top, three across", "cards", [
2517
+ "media",
2518
+ "title",
2519
+ "text",
2520
+ "facts",
2521
+ "action"
2522
+ ], ["showPhotos"], {
2523
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [
2524
+ sketch.photo("tall"),
2525
+ sketch.title(.7, "small"),
2526
+ sketch.text(1)
2527
+ ])]),
2528
+ knobDefaults: {
2529
+ actionStyle: "link",
2530
+ dates: "summary"
2531
+ },
2532
+ styleFallback: [id("feature-cards-cards")]
2533
+ }),
2534
+ blockKinds: ["block.offerings-preview", "block.appointment-services"]
2535
+ },
2536
+ {
2537
+ ...defineCardListLook("offerings-next-cards", "Next of each type, round photo", "next-cards", [
2538
+ "media",
2539
+ "title",
2540
+ "facts",
2541
+ "schedule",
2542
+ "action"
2543
+ ], ["showPhotos"], {
2544
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([
2545
+ sketch.photo("short", "circle"),
2546
+ sketch.title(.7, "small"),
2547
+ sketch.text(1),
2548
+ sketch.button
2549
+ ])])]),
2550
+ knobDefaults: { actionStyle: "button" },
2551
+ forcedKnobs: {
2552
+ dates: "summary",
2553
+ grouping: "by-kind"
2554
+ },
2555
+ styleFallback: [id("card-list-photos-on-top")]
2556
+ }),
2557
+ blockKinds: ["block.offerings-preview"]
2558
+ },
2559
+ {
2560
+ ...defineCardListLook("offerings-course-groups", "Runs grouped under their course", "course-groups", [
2561
+ "title",
2562
+ "schedule",
2563
+ "availability"
2564
+ ], ["showPhotos"], {
2565
+ thumbnail: sketch.page([sketch.title(.4), sketch.down(2, [sketch.card([
2566
+ sketch.photo("short"),
2567
+ sketch.title(.7, "small"),
2568
+ sketch.text(2),
2569
+ sketch.link
2570
+ ])])]),
2571
+ itemRoles: { items: "card" },
2572
+ forcedKnobs: { grouping: "by-kind" },
2573
+ styleFallback: [id("card-list-photos-on-top")]
2574
+ }),
2575
+ blockKinds: ["block.offerings-preview"]
2576
+ },
2577
+ {
2578
+ ...defineCardListLook("offerings-type-columns", "A column per type, with dates", "type-columns", [
2579
+ "date-stamp",
2580
+ "title",
2581
+ "action"
2582
+ ], [], {
2583
+ thumbnail: sketch.page([sketch.title(.4), sketch.across(2, [sketch.panel([sketch.title(.5, "small"), sketch.down(3, [sketch.row(sketch.weight(1, [sketch.title(.6, "small")]), sketch.weight(3, [sketch.text(2, .8)]))], { ruled: true })])])]),
2584
+ slotRoles: { panel: "card" },
2585
+ forcedKnobs: { grouping: "by-kind" },
2586
+ knobDefaults: { dates: "summary" },
2587
+ styleFallback: [id("feature-cards-index")]
2588
+ }),
2589
+ blockKinds: ["block.offerings-preview"]
2590
+ }
2591
+ ];
2592
+ //#endregion
2593
+ //#region ../theme-core/src/site-styles/lookMediaFrame.ts
2594
+ function resolveLookMediaFrame(frames, skin, knobs = {}) {
2595
+ if (!frames) return void 0;
2596
+ const base = (skin ? frames.bySkin?.[skin] : void 0) ?? frames.default;
2597
+ return (frames.byKnob ?? []).reduce((frame, rule) => {
2598
+ const value = knobs[rule.knob];
2599
+ return (typeof value === "string" ? rule.values[value] : void 0) ?? frame;
2600
+ }, base);
2601
+ }
2602
+ function frameVars(frame) {
2603
+ return [
2604
+ `--rb-look-media-ratio: ${frame.aspectRatio};`,
2605
+ ...frame.kind === "fixed" && frame.borderRadius ? [`--rb-look-media-radius: ${frame.borderRadius};`] : [],
2606
+ ...frame.kind === "variable" && frame.firstAspectRatio ? [`--rb-look-media-first-ratio: ${frame.firstAspectRatio};`] : [],
2607
+ ...frame.kind === "variable" && frame.height ? [`--rb-look-media-height: ${frame.height};`] : [],
2608
+ ...frame.kind === "variable" && frame.mobileAspectRatio ? [`--rb-look-media-mobile-ratio: ${frame.mobileAspectRatio};`] : []
2609
+ ].join(" ");
2610
+ }
2611
+ /** The same declaration supplies the editor frame and the CSS's crop values. */
2612
+ function generateLookMediaFrameCss(themeId) {
2613
+ return blockAppearancePresets.flatMap((look) => {
2614
+ const frames = look.structure.kind === "arrangement" ? look.structure.mediaFrame : void 0;
2615
+ if (!frames) return [];
2616
+ const scope = `:where([data-theme-scope="${themeId}"])`;
2617
+ const selector = `[data-look="${look.id}"]`;
2618
+ return [
2619
+ `${scope} ${selector} { ${frameVars(frames.default)} }`,
2620
+ ...Object.entries(frames.bySkin ?? {}).map(([skin, frame]) => `${scope} :is([data-skin="${skin}"], [data-skin="${skin}"] *)${selector} { ${frameVars(frame)} }`),
2621
+ ...(frames.byKnob ?? []).flatMap((rule) => Object.entries(rule.values).map(([value, frame]) => `${scope} ${selector}[data-knob-${rule.knob.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}="${value}"] { ${frameVars(frame)} }`))
2622
+ ];
2623
+ }).join("\n");
2624
+ }
2625
+ //#endregion
2626
+ export { cardListFamilyBlocks as A, panelFrame as C, testimonialsCompositionTreatmentValues as D, sectionBackgroundPaintValues as E, lookKnobBlocks as M, opaqueSurfaceContextFromTheme as N, toNonEmptyReadonlyArray as O, opaqueSurfaceDeclarations as P, offeringsPreviewCompositionTreatmentValues as S, requireNonEmptyReadonlyArray as T, designIssueSeverityForPolicy as _, layoutProfileSupportsConstraints as a, introCompositionTreatmentValues as b, isArrangementAppearancePreset as c, lookModes as d, assertNever as f, defineNoBlockDesignCapability as g, defineFrameCapability as h, blockAppearancePresets as i, cardListKnobBlocks as j, cardListBlockParts as k, isLookSettingFact as l, defineExactCatalog as m, resolveLookMediaFrame as n, resolveBlockAppearancePresetDesign as o, defineBlockDesignCapability as p, arrangementLookFits as r, resolveEffectiveKnobs as s, generateLookMediaFrameCss as t, isRecipeAppearancePreset as u, featureCardCompositionTreatmentValues as v, plainFrame as w, noHeadingDecoration as x, flushPanelFrame as y };