@riverbankcms/sdk 0.182.0 → 0.184.0

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