@riverbankcms/sdk 0.183.0 → 0.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
- package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +36 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +19 -8
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
- package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
- package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
- package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
- package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
- package/dist/client/client.mjs +61 -48
- package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
- package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
- package/dist/client/gifting/client.mjs +8 -8
- package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
- package/dist/client/portal/client.mjs +999 -81
- package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
- package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
- package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
- package/dist/client/src-CXOxpNtj.mjs +3 -0
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
- package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
- package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
- package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +158 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
- package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +9 -9
- package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
- package/dist/styles/index.css +684 -181
- package/package.json +1 -1
- package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/client/src-DqMbCjI1.mjs +0 -3
- package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,2756 +0,0 @@
|
|
|
1
|
-
import { $ as parseThemeColorToken, A as surfaceInkDeclarations, C as SURFACE_INK_CSS_VARS, L as rgbColorValue, S as SURFACE_FOREGROUND_CSS_VARS, T as surfaceForegroundDeclarations } from "./types-vyz09w64.mjs";
|
|
2
|
-
import { B as preparePaletteColourIndex, r as expandPalette } from "./expandPalette-DxPrNOAB.mjs";
|
|
3
|
-
import { F as freezeOwnedThemeValue, I as ownedThemeSnapshot, a as requireResolvedSurface, f as contextualButtonSurfaceResetStyles } from "./accessibleSurfaces-BtPqb76u.mjs";
|
|
4
|
-
import { v as isArrangementMode, x as asAppearancePresetId } from "./customCss-rtIfEYwQ.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/lookPhotoFrames.ts
|
|
596
|
-
/** Shape knobs override the skin's ordinary photo frame. Corner choices keep its ratio. */
|
|
597
|
-
const photoShapeFrames = [{
|
|
598
|
-
knob: "imageShape",
|
|
599
|
-
values: {
|
|
600
|
-
square: {
|
|
601
|
-
kind: "corners",
|
|
602
|
-
borderRadius: "0"
|
|
603
|
-
},
|
|
604
|
-
rounded: {
|
|
605
|
-
kind: "corners",
|
|
606
|
-
borderRadius: "var(--rb-media-shape-radius, 1rem)"
|
|
607
|
-
},
|
|
608
|
-
circle: {
|
|
609
|
-
kind: "fixed",
|
|
610
|
-
aspectRatio: "1/1",
|
|
611
|
-
borderRadius: "50%"
|
|
612
|
-
},
|
|
613
|
-
arch: {
|
|
614
|
-
kind: "fixed",
|
|
615
|
-
aspectRatio: "4/5",
|
|
616
|
-
borderRadius: "9999px 9999px 0.125rem 0.125rem"
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}];
|
|
620
|
-
const naturalPhotoFrame = {
|
|
621
|
-
kind: "variable",
|
|
622
|
-
because: "The photo keeps its own proportions.",
|
|
623
|
-
aspectRatio: "auto"
|
|
624
|
-
};
|
|
625
|
-
const introPhotoFrames = {
|
|
626
|
-
default: naturalPhotoFrame,
|
|
627
|
-
bySkin: {
|
|
628
|
-
haven: {
|
|
629
|
-
kind: "fixed",
|
|
630
|
-
aspectRatio: "1/1"
|
|
631
|
-
},
|
|
632
|
-
brook: {
|
|
633
|
-
kind: "fixed",
|
|
634
|
-
aspectRatio: "4/3"
|
|
635
|
-
},
|
|
636
|
-
orbit: {
|
|
637
|
-
kind: "fixed",
|
|
638
|
-
aspectRatio: "1/1",
|
|
639
|
-
borderRadius: "50%"
|
|
640
|
-
},
|
|
641
|
-
forge: {
|
|
642
|
-
kind: "fixed",
|
|
643
|
-
aspectRatio: "1/1"
|
|
644
|
-
},
|
|
645
|
-
vista: {
|
|
646
|
-
kind: "fixed",
|
|
647
|
-
aspectRatio: "3/4"
|
|
648
|
-
}
|
|
649
|
-
},
|
|
650
|
-
byKnob: photoShapeFrames
|
|
651
|
-
};
|
|
652
|
-
const mediaTextPhotoFrames = {
|
|
653
|
-
default: naturalPhotoFrame,
|
|
654
|
-
bySkin: {
|
|
655
|
-
poster: {
|
|
656
|
-
kind: "fixed",
|
|
657
|
-
aspectRatio: "4/3"
|
|
658
|
-
},
|
|
659
|
-
poise: {
|
|
660
|
-
kind: "fixed",
|
|
661
|
-
aspectRatio: "4/5"
|
|
662
|
-
},
|
|
663
|
-
haven: {
|
|
664
|
-
kind: "fixed",
|
|
665
|
-
aspectRatio: "5/4"
|
|
666
|
-
},
|
|
667
|
-
loom: {
|
|
668
|
-
kind: "fixed",
|
|
669
|
-
aspectRatio: "3/2"
|
|
670
|
-
},
|
|
671
|
-
folio: {
|
|
672
|
-
kind: "fixed",
|
|
673
|
-
aspectRatio: "4/5"
|
|
674
|
-
},
|
|
675
|
-
brook: {
|
|
676
|
-
kind: "fixed",
|
|
677
|
-
aspectRatio: "4/3"
|
|
678
|
-
},
|
|
679
|
-
orbit: {
|
|
680
|
-
kind: "fixed",
|
|
681
|
-
aspectRatio: "4/3"
|
|
682
|
-
},
|
|
683
|
-
vista: {
|
|
684
|
-
kind: "fixed",
|
|
685
|
-
aspectRatio: "4/5"
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
byKnob: photoShapeFrames
|
|
689
|
-
};
|
|
690
|
-
//#endregion
|
|
691
|
-
//#region ../theme-core/src/site-styles/blockAppearancePresets.ts
|
|
692
|
-
/**
|
|
693
|
-
* A card Look reaches every block that supplies its parts. Some of those pairings give an owner nothing new
|
|
694
|
-
* (numbered people, a ruled list beside the team's own ruled list), so the Look names the blocks it leaves out.
|
|
695
|
-
*/
|
|
696
|
-
function notFor(look, blocks) {
|
|
697
|
-
return {
|
|
698
|
-
...look,
|
|
699
|
-
blockKinds: look.blockKinds.filter((kind) => !blocks.includes(kind))
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
/**
|
|
703
|
-
* One pin space for legacy recipes and arrangement Looks. Legacy recipes ask
|
|
704
|
-
* for a card role; the style owns its paint. Arrangement Looks own structure
|
|
705
|
-
* and never a section background. Removing an entry retires its pins to auto.
|
|
706
|
-
*/
|
|
707
|
-
const brandScrimOptionGroups = [{
|
|
708
|
-
id: "image-surface-treatment",
|
|
709
|
-
label: "Photo tint",
|
|
710
|
-
defaultOptionId: "brand-scrim-primary",
|
|
711
|
-
options: [{
|
|
712
|
-
id: "brand-scrim-primary",
|
|
713
|
-
label: "Brand tint",
|
|
714
|
-
designPatch: { imageSurfaceTreatment: {
|
|
715
|
-
kind: "brand-scrim",
|
|
716
|
-
token: "primary"
|
|
717
|
-
} }
|
|
718
|
-
}, {
|
|
719
|
-
id: "neutral-scrim",
|
|
720
|
-
label: "Dark tint",
|
|
721
|
-
designPatch: { imageSurfaceTreatment: { kind: "neutral-scrim" } }
|
|
722
|
-
}]
|
|
723
|
-
}];
|
|
724
|
-
const microBannerLayoutPatches = [{
|
|
725
|
-
constraints: { layoutVariantKeys: ["micro"] },
|
|
726
|
-
designPatch: { sectionHeight: "banner" }
|
|
727
|
-
}];
|
|
728
|
-
const brandScrimCarry = {
|
|
729
|
-
kind: "by-layout",
|
|
730
|
-
layouts: {
|
|
731
|
-
classic: {
|
|
732
|
-
kind: "look",
|
|
733
|
-
look: "hero-text-over-photo",
|
|
734
|
-
knobs: { photoTint: "brand" }
|
|
735
|
-
},
|
|
736
|
-
micro: {
|
|
737
|
-
kind: "look",
|
|
738
|
-
look: "hero-short-photo-banner",
|
|
739
|
-
knobs: { photoTint: "brand" }
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
const heroKnobs = [
|
|
744
|
-
"titleSize",
|
|
745
|
-
"imagePosition",
|
|
746
|
-
"stickerLine"
|
|
747
|
-
];
|
|
748
|
-
const id = asAppearancePresetId;
|
|
749
|
-
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 })])]) });
|
|
750
|
-
const calendarRuledRowsPanel = defineArrangementLook("event-calendar-ruled-rows-panel", "event-calendar", "Ruled rows on a panel", "ledger", ["showCapacity"], {
|
|
751
|
-
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 })])]),
|
|
752
|
-
slotRoles: { layout: "card" },
|
|
753
|
-
styleFallback: [id("event-calendar-ruled-rows")]
|
|
754
|
-
});
|
|
755
|
-
const calendarTimetableRows = defineArrangementLook("event-calendar-combined-timetable", "event-calendar", "Rows with time above the button", "timetable-rows", ["showCapacity"], {
|
|
756
|
-
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 })]),
|
|
757
|
-
styleFallback: [id("event-calendar-combined-rows")]
|
|
758
|
-
});
|
|
759
|
-
/**
|
|
760
|
-
* What a Look needs from its content to look finished, and what it would hide
|
|
761
|
-
* (see `ArrangementLookFit`). Only the style's automatic choice reads it. An
|
|
762
|
-
* intro's statement Look shows no photo, and its photo Looks are built around one.
|
|
763
|
-
*/
|
|
764
|
-
const arrangementLookFits = {
|
|
765
|
-
"intro-statement-beside-text": {
|
|
766
|
-
needs: ["statement"],
|
|
767
|
-
leavesOut: ["photo"]
|
|
768
|
-
},
|
|
769
|
-
"intro-photo-beside-text": { needs: ["photo"] },
|
|
770
|
-
"intro-large-photo-beside-text": { needs: ["photo"] }
|
|
771
|
-
};
|
|
772
|
-
const blockAppearancePresets = [
|
|
773
|
-
defineBlockAppearancePreset({
|
|
774
|
-
structure: {
|
|
775
|
-
kind: "recipe",
|
|
776
|
-
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
777
|
-
},
|
|
778
|
-
id: "hero-immersive-image",
|
|
779
|
-
carry: { kind: "by-layout" },
|
|
780
|
-
target: "hero",
|
|
781
|
-
label: "Photo behind centred text",
|
|
782
|
-
blockKinds: ["block.hero"],
|
|
783
|
-
layoutPatches: [{
|
|
784
|
-
constraints: { layoutVariantKeys: ["micro"] },
|
|
785
|
-
designPatch: {
|
|
786
|
-
sectionHeight: "banner",
|
|
787
|
-
heroTypographyScale: "display"
|
|
788
|
-
}
|
|
789
|
-
}],
|
|
790
|
-
design: {
|
|
791
|
-
sectionSurface: "hero-image",
|
|
792
|
-
contentFrame: plainFrame,
|
|
793
|
-
sectionHeight: "hero",
|
|
794
|
-
heroComposition: "center",
|
|
795
|
-
heroTypographyScale: "display",
|
|
796
|
-
imageSurfaceTreatment: { kind: "neutral-wash" }
|
|
797
|
-
}
|
|
798
|
-
}),
|
|
799
|
-
defineBlockAppearancePreset({
|
|
800
|
-
structure: {
|
|
801
|
-
kind: "recipe",
|
|
802
|
-
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
803
|
-
},
|
|
804
|
-
id: "hero-bottom-left-panel",
|
|
805
|
-
carry: { kind: "by-layout" },
|
|
806
|
-
target: "hero",
|
|
807
|
-
label: "Text panel, bottom left of photo",
|
|
808
|
-
blockKinds: ["block.hero"],
|
|
809
|
-
optionGroups: [{
|
|
810
|
-
id: "image-surface-treatment",
|
|
811
|
-
label: "Photo tint",
|
|
812
|
-
defaultOptionId: "neutral-scrim",
|
|
813
|
-
options: [{
|
|
814
|
-
id: "neutral-scrim",
|
|
815
|
-
label: "Dark tint",
|
|
816
|
-
designPatch: { imageSurfaceTreatment: {
|
|
817
|
-
kind: "neutral-scrim",
|
|
818
|
-
intensity: "balanced"
|
|
819
|
-
} }
|
|
820
|
-
}, {
|
|
821
|
-
id: "brand-scrim-primary",
|
|
822
|
-
label: "Brand tint",
|
|
823
|
-
designPatch: { imageSurfaceTreatment: {
|
|
824
|
-
kind: "brand-scrim",
|
|
825
|
-
token: "primary",
|
|
826
|
-
intensity: "balanced"
|
|
827
|
-
} }
|
|
828
|
-
}]
|
|
829
|
-
}],
|
|
830
|
-
layoutPatches: [{
|
|
831
|
-
constraints: { layoutVariantKeys: ["micro"] },
|
|
832
|
-
designPatch: {
|
|
833
|
-
sectionHeight: "banner",
|
|
834
|
-
heroTypographyScale: "editorial"
|
|
835
|
-
}
|
|
836
|
-
}],
|
|
837
|
-
design: {
|
|
838
|
-
sectionSurface: "hero-image",
|
|
839
|
-
contentFrame: panelFrame("raised"),
|
|
840
|
-
sectionHeight: "immersive",
|
|
841
|
-
heroComposition: "bottom-left",
|
|
842
|
-
heroTypographyScale: "display",
|
|
843
|
-
imageSurfaceTreatment: {
|
|
844
|
-
kind: "neutral-scrim",
|
|
845
|
-
intensity: "balanced"
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
}),
|
|
849
|
-
defineBlockAppearancePreset({
|
|
850
|
-
structure: {
|
|
851
|
-
kind: "recipe",
|
|
852
|
-
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
853
|
-
},
|
|
854
|
-
id: "hero-poster-image",
|
|
855
|
-
carry: { kind: "by-layout" },
|
|
856
|
-
target: "hero",
|
|
857
|
-
label: "Strong brand tint, big title",
|
|
858
|
-
blockKinds: ["block.hero"],
|
|
859
|
-
layoutPatches: [{
|
|
860
|
-
constraints: { layoutVariantKeys: ["micro"] },
|
|
861
|
-
designPatch: {
|
|
862
|
-
sectionHeight: "banner",
|
|
863
|
-
heroTypographyScale: "display"
|
|
864
|
-
}
|
|
865
|
-
}],
|
|
866
|
-
design: {
|
|
867
|
-
sectionSurface: "hero-image",
|
|
868
|
-
contentFrame: plainFrame,
|
|
869
|
-
sectionHeight: "immersive",
|
|
870
|
-
heroComposition: "center",
|
|
871
|
-
heroTypographyScale: "poster",
|
|
872
|
-
imageSurfaceTreatment: {
|
|
873
|
-
kind: "brand-scrim",
|
|
874
|
-
token: "primary",
|
|
875
|
-
intensity: "strong"
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
}),
|
|
879
|
-
defineBlockAppearancePreset({
|
|
880
|
-
structure: {
|
|
881
|
-
kind: "recipe",
|
|
882
|
-
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
883
|
-
},
|
|
884
|
-
id: "hero-brand-scrim",
|
|
885
|
-
carry: brandScrimCarry,
|
|
886
|
-
target: "hero",
|
|
887
|
-
label: "Photo with a brand tint",
|
|
888
|
-
blockKinds: ["block.hero"],
|
|
889
|
-
optionGroups: brandScrimOptionGroups,
|
|
890
|
-
layoutPatches: microBannerLayoutPatches,
|
|
891
|
-
design: {
|
|
892
|
-
sectionSurface: "hero-image",
|
|
893
|
-
contentFrame: plainFrame,
|
|
894
|
-
sectionHeight: "immersive",
|
|
895
|
-
heroComposition: "center",
|
|
896
|
-
heroTypographyScale: "display",
|
|
897
|
-
imageSurfaceTreatment: {
|
|
898
|
-
kind: "brand-scrim",
|
|
899
|
-
token: "primary"
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
}),
|
|
903
|
-
defineBlockAppearancePreset({
|
|
904
|
-
structure: {
|
|
905
|
-
kind: "recipe",
|
|
906
|
-
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
907
|
-
},
|
|
908
|
-
id: "hero-brand-scrim-fixed-frame",
|
|
909
|
-
carry: brandScrimCarry,
|
|
910
|
-
target: "hero",
|
|
911
|
-
label: "Fixed photo with a brand tint",
|
|
912
|
-
blockKinds: ["block.hero"],
|
|
913
|
-
optionGroups: brandScrimOptionGroups,
|
|
914
|
-
layoutPatches: microBannerLayoutPatches,
|
|
915
|
-
design: {
|
|
916
|
-
sectionSurface: "hero-image",
|
|
917
|
-
contentFrame: plainFrame,
|
|
918
|
-
sectionHeight: "immersive",
|
|
919
|
-
heroComposition: "center",
|
|
920
|
-
heroTypographyScale: "display",
|
|
921
|
-
imageSurfaceTreatment: {
|
|
922
|
-
kind: "brand-scrim",
|
|
923
|
-
token: "primary"
|
|
924
|
-
},
|
|
925
|
-
imageSurfaceMotion: "fixed-frame",
|
|
926
|
-
eyebrowTreatment: "accent-pill-bounce"
|
|
927
|
-
}
|
|
928
|
-
}),
|
|
929
|
-
defineBlockAppearancePreset({
|
|
930
|
-
structure: {
|
|
931
|
-
kind: "recipe",
|
|
932
|
-
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
933
|
-
},
|
|
934
|
-
id: "hero-brand-depth-expressive",
|
|
935
|
-
carry: {
|
|
936
|
-
kind: "look",
|
|
937
|
-
look: "hero-page-head"
|
|
938
|
-
},
|
|
939
|
-
target: "hero",
|
|
940
|
-
label: "Brand colour, no photo",
|
|
941
|
-
blockKinds: ["block.hero"],
|
|
942
|
-
design: {
|
|
943
|
-
sectionSurface: "brand-depth-band",
|
|
944
|
-
contentFrame: plainFrame,
|
|
945
|
-
heroComposition: "center",
|
|
946
|
-
heroTypographyScale: "editorial",
|
|
947
|
-
eyebrowTreatment: "accent-pill-bounce"
|
|
948
|
-
}
|
|
949
|
-
}),
|
|
950
|
-
defineBlockAppearancePreset({
|
|
951
|
-
structure: { kind: "recipe" },
|
|
952
|
-
id: "hero-contained-intro",
|
|
953
|
-
carry: {
|
|
954
|
-
kind: "look",
|
|
955
|
-
look: "hero-page-head",
|
|
956
|
-
layouts: {
|
|
957
|
-
split: {
|
|
958
|
-
kind: "look",
|
|
959
|
-
look: "hero-photo-beside-text"
|
|
960
|
-
},
|
|
961
|
-
splitReverse: {
|
|
962
|
-
kind: "look",
|
|
963
|
-
look: "hero-photo-beside-text"
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
},
|
|
967
|
-
target: "hero",
|
|
968
|
-
label: "Text in a panel on a soft band",
|
|
969
|
-
blockKinds: ["block.hero"],
|
|
970
|
-
design: {
|
|
971
|
-
sectionSurface: "muted-band",
|
|
972
|
-
contentFrame: panelFrame("inset"),
|
|
973
|
-
heroComposition: "center",
|
|
974
|
-
heroTypographyScale: "editorial"
|
|
975
|
-
}
|
|
976
|
-
}),
|
|
977
|
-
defineBlockAppearancePreset({
|
|
978
|
-
structure: {
|
|
979
|
-
kind: "recipe",
|
|
980
|
-
constraints: { layoutFamilies: ["split"] }
|
|
981
|
-
},
|
|
982
|
-
id: "hero-split-editorial",
|
|
983
|
-
carry: {
|
|
984
|
-
kind: "look",
|
|
985
|
-
look: "hero-photo-beside-text"
|
|
986
|
-
},
|
|
987
|
-
target: "hero",
|
|
988
|
-
label: "Split on the page background",
|
|
989
|
-
blockKinds: ["block.hero"],
|
|
990
|
-
design: {
|
|
991
|
-
sectionSurface: "base",
|
|
992
|
-
contentFrame: plainFrame,
|
|
993
|
-
heroTypographyScale: "editorial"
|
|
994
|
-
}
|
|
995
|
-
}),
|
|
996
|
-
defineBlockAppearancePreset({
|
|
997
|
-
structure: {
|
|
998
|
-
kind: "recipe",
|
|
999
|
-
constraints: { layoutFamilies: ["split"] }
|
|
1000
|
-
},
|
|
1001
|
-
id: "hero-split-brand",
|
|
1002
|
-
carry: {
|
|
1003
|
-
kind: "look",
|
|
1004
|
-
look: "hero-photo-beside-text"
|
|
1005
|
-
},
|
|
1006
|
-
target: "hero",
|
|
1007
|
-
label: "Split on brand colour",
|
|
1008
|
-
blockKinds: ["block.hero"],
|
|
1009
|
-
design: {
|
|
1010
|
-
sectionSurface: "brand-depth-band",
|
|
1011
|
-
contentFrame: plainFrame,
|
|
1012
|
-
heroTypographyScale: "display",
|
|
1013
|
-
eyebrowTreatment: "accent-pill-bounce"
|
|
1014
|
-
}
|
|
1015
|
-
}),
|
|
1016
|
-
defineBlockAppearancePreset({
|
|
1017
|
-
structure: {
|
|
1018
|
-
kind: "recipe",
|
|
1019
|
-
constraints: { layoutFamilies: ["split"] }
|
|
1020
|
-
},
|
|
1021
|
-
id: "hero-split-soft-panel",
|
|
1022
|
-
carry: {
|
|
1023
|
-
kind: "look",
|
|
1024
|
-
look: "hero-photo-beside-text"
|
|
1025
|
-
},
|
|
1026
|
-
target: "hero",
|
|
1027
|
-
label: "Split, panel on a soft band",
|
|
1028
|
-
blockKinds: ["block.hero"],
|
|
1029
|
-
design: {
|
|
1030
|
-
sectionSurface: "muted-band",
|
|
1031
|
-
contentFrame: panelFrame("raised"),
|
|
1032
|
-
heroTypographyScale: "editorial"
|
|
1033
|
-
}
|
|
1034
|
-
}),
|
|
1035
|
-
defineBlockAppearancePreset({
|
|
1036
|
-
structure: {
|
|
1037
|
-
kind: "recipe",
|
|
1038
|
-
constraints: { layoutFamilies: ["split"] }
|
|
1039
|
-
},
|
|
1040
|
-
id: "hero-split-accent",
|
|
1041
|
-
carry: {
|
|
1042
|
-
kind: "look",
|
|
1043
|
-
look: "hero-photo-beside-text"
|
|
1044
|
-
},
|
|
1045
|
-
target: "hero",
|
|
1046
|
-
label: "Split, panel on accent colour",
|
|
1047
|
-
blockKinds: ["block.hero"],
|
|
1048
|
-
design: {
|
|
1049
|
-
sectionSurface: "accent-band",
|
|
1050
|
-
contentFrame: panelFrame("raised"),
|
|
1051
|
-
heroTypographyScale: "display"
|
|
1052
|
-
}
|
|
1053
|
-
}),
|
|
1054
|
-
defineBlockAppearancePreset({
|
|
1055
|
-
structure: {
|
|
1056
|
-
kind: "recipe",
|
|
1057
|
-
composition: {
|
|
1058
|
-
kind: "intro",
|
|
1059
|
-
treatment: "editorial-statement"
|
|
1060
|
-
},
|
|
1061
|
-
constraints: { layoutVariantKeys: ["centered-copy", "statement-copy"] }
|
|
1062
|
-
},
|
|
1063
|
-
id: "intro-editorial-statement",
|
|
1064
|
-
carry: { kind: "by-layout" },
|
|
1065
|
-
target: "intro",
|
|
1066
|
-
label: "Large statement",
|
|
1067
|
-
blockKinds: ["block.intro"],
|
|
1068
|
-
design: {
|
|
1069
|
-
sectionSurface: "base",
|
|
1070
|
-
contentFrame: plainFrame
|
|
1071
|
-
}
|
|
1072
|
-
}),
|
|
1073
|
-
defineBlockAppearancePreset({
|
|
1074
|
-
structure: {
|
|
1075
|
-
kind: "recipe",
|
|
1076
|
-
composition: {
|
|
1077
|
-
kind: "intro",
|
|
1078
|
-
treatment: "portrait-bio"
|
|
1079
|
-
},
|
|
1080
|
-
constraints: { layoutVariantKeys: ["media-copy"] }
|
|
1081
|
-
},
|
|
1082
|
-
id: "intro-portrait-bio",
|
|
1083
|
-
carry: {
|
|
1084
|
-
kind: "look",
|
|
1085
|
-
look: "intro-photo-beside-text",
|
|
1086
|
-
knobs: { imageShape: "circle" }
|
|
1087
|
-
},
|
|
1088
|
-
target: "intro",
|
|
1089
|
-
label: "Portrait and bio",
|
|
1090
|
-
blockKinds: ["block.intro"],
|
|
1091
|
-
design: {
|
|
1092
|
-
sectionSurface: "base",
|
|
1093
|
-
contentFrame: plainFrame
|
|
1094
|
-
}
|
|
1095
|
-
}),
|
|
1096
|
-
defineBlockAppearancePreset({
|
|
1097
|
-
structure: { kind: "recipe" },
|
|
1098
|
-
id: "offerings-preview-default-cards",
|
|
1099
|
-
carry: {
|
|
1100
|
-
kind: "look",
|
|
1101
|
-
look: "offerings-type-columns"
|
|
1102
|
-
},
|
|
1103
|
-
target: "offerings",
|
|
1104
|
-
label: "Cards",
|
|
1105
|
-
blockKinds: ["block.offerings-preview"],
|
|
1106
|
-
design: {
|
|
1107
|
-
sectionSurface: "base",
|
|
1108
|
-
contentFrame: plainFrame,
|
|
1109
|
-
cardRole: "default"
|
|
1110
|
-
}
|
|
1111
|
-
}),
|
|
1112
|
-
defineBlockAppearancePreset({
|
|
1113
|
-
structure: { kind: "recipe" },
|
|
1114
|
-
id: "offerings-preview-secondary-cards",
|
|
1115
|
-
carry: {
|
|
1116
|
-
kind: "look",
|
|
1117
|
-
look: "offerings-type-columns"
|
|
1118
|
-
},
|
|
1119
|
-
target: "offerings",
|
|
1120
|
-
label: "Cards on a soft band",
|
|
1121
|
-
blockKinds: ["block.offerings-preview"],
|
|
1122
|
-
design: {
|
|
1123
|
-
sectionSurface: "muted-band",
|
|
1124
|
-
contentFrame: plainFrame,
|
|
1125
|
-
cardRole: "alternative"
|
|
1126
|
-
}
|
|
1127
|
-
}),
|
|
1128
|
-
defineBlockAppearancePreset({
|
|
1129
|
-
structure: { kind: "recipe" },
|
|
1130
|
-
id: "offerings-preview-non-carded",
|
|
1131
|
-
carry: {
|
|
1132
|
-
kind: "look",
|
|
1133
|
-
look: "feature-cards-open-columns"
|
|
1134
|
-
},
|
|
1135
|
-
target: "offerings",
|
|
1136
|
-
label: "No cards",
|
|
1137
|
-
blockKinds: ["block.offerings-preview"],
|
|
1138
|
-
design: {
|
|
1139
|
-
sectionSurface: "muted-band",
|
|
1140
|
-
contentFrame: plainFrame,
|
|
1141
|
-
cardRole: "open"
|
|
1142
|
-
}
|
|
1143
|
-
}),
|
|
1144
|
-
defineBlockAppearancePreset({
|
|
1145
|
-
structure: {
|
|
1146
|
-
kind: "recipe",
|
|
1147
|
-
composition: {
|
|
1148
|
-
kind: "offerings-preview",
|
|
1149
|
-
treatment: "paired-feature-cards"
|
|
1150
|
-
},
|
|
1151
|
-
constraints: { layoutVariantKeys: ["cards"] }
|
|
1152
|
-
},
|
|
1153
|
-
id: "offerings-preview-paired-feature-cards",
|
|
1154
|
-
carry: {
|
|
1155
|
-
kind: "look",
|
|
1156
|
-
look: "feature-cards-lead-support"
|
|
1157
|
-
},
|
|
1158
|
-
target: "offerings",
|
|
1159
|
-
label: "One large card, one smaller",
|
|
1160
|
-
blockKinds: ["block.offerings-preview"],
|
|
1161
|
-
design: {
|
|
1162
|
-
sectionSurface: "base",
|
|
1163
|
-
contentFrame: plainFrame,
|
|
1164
|
-
cardRole: "alternative"
|
|
1165
|
-
}
|
|
1166
|
-
}),
|
|
1167
|
-
defineBlockAppearancePreset({
|
|
1168
|
-
structure: {
|
|
1169
|
-
kind: "recipe",
|
|
1170
|
-
composition: {
|
|
1171
|
-
kind: "offerings-preview",
|
|
1172
|
-
treatment: "open-editorial-columns"
|
|
1173
|
-
},
|
|
1174
|
-
constraints: { layoutVariantKeys: ["cards"] }
|
|
1175
|
-
},
|
|
1176
|
-
id: "offerings-preview-open-editorial-columns",
|
|
1177
|
-
carry: {
|
|
1178
|
-
kind: "look",
|
|
1179
|
-
look: "feature-cards-open-columns"
|
|
1180
|
-
},
|
|
1181
|
-
target: "offerings",
|
|
1182
|
-
label: "Open columns",
|
|
1183
|
-
blockKinds: ["block.offerings-preview"],
|
|
1184
|
-
design: {
|
|
1185
|
-
sectionSurface: "base",
|
|
1186
|
-
contentFrame: plainFrame,
|
|
1187
|
-
cardRole: "open"
|
|
1188
|
-
}
|
|
1189
|
-
}),
|
|
1190
|
-
defineBlockAppearancePreset({
|
|
1191
|
-
structure: {
|
|
1192
|
-
kind: "recipe",
|
|
1193
|
-
composition: {
|
|
1194
|
-
kind: "offerings-preview",
|
|
1195
|
-
treatment: "joined-programme-panel"
|
|
1196
|
-
},
|
|
1197
|
-
constraints: { layoutVariantKeys: ["cards"] }
|
|
1198
|
-
},
|
|
1199
|
-
id: "offerings-preview-joined-programme-panel",
|
|
1200
|
-
carry: {
|
|
1201
|
-
kind: "look",
|
|
1202
|
-
look: "feature-cards-index"
|
|
1203
|
-
},
|
|
1204
|
-
target: "offerings",
|
|
1205
|
-
label: "Rows joined in one panel",
|
|
1206
|
-
blockKinds: ["block.offerings-preview"],
|
|
1207
|
-
design: {
|
|
1208
|
-
sectionSurface: "base",
|
|
1209
|
-
contentFrame: plainFrame,
|
|
1210
|
-
cardRole: "default"
|
|
1211
|
-
}
|
|
1212
|
-
}),
|
|
1213
|
-
defineBlockAppearancePreset({
|
|
1214
|
-
structure: { kind: "recipe" },
|
|
1215
|
-
id: "feature-cards-raised-rule",
|
|
1216
|
-
carry: {
|
|
1217
|
-
kind: "look",
|
|
1218
|
-
look: "feature-cards-cards"
|
|
1219
|
-
},
|
|
1220
|
-
target: "feature-cards",
|
|
1221
|
-
label: "Raised cards with a line",
|
|
1222
|
-
blockKinds: ["block.feature-cards"],
|
|
1223
|
-
design: {
|
|
1224
|
-
sectionSurface: "base",
|
|
1225
|
-
contentFrame: plainFrame,
|
|
1226
|
-
cardRole: "default"
|
|
1227
|
-
}
|
|
1228
|
-
}),
|
|
1229
|
-
defineBlockAppearancePreset({
|
|
1230
|
-
structure: { kind: "recipe" },
|
|
1231
|
-
id: "feature-cards-bold-colors",
|
|
1232
|
-
carry: {
|
|
1233
|
-
kind: "look",
|
|
1234
|
-
look: "feature-cards-cards"
|
|
1235
|
-
},
|
|
1236
|
-
target: "feature-cards",
|
|
1237
|
-
label: "Colour-filled cards",
|
|
1238
|
-
blockKinds: ["block.feature-cards"],
|
|
1239
|
-
design: {
|
|
1240
|
-
sectionSurface: "base",
|
|
1241
|
-
contentFrame: plainFrame,
|
|
1242
|
-
cardRole: "alternative"
|
|
1243
|
-
}
|
|
1244
|
-
}),
|
|
1245
|
-
defineBlockAppearancePreset({
|
|
1246
|
-
structure: { kind: "recipe" },
|
|
1247
|
-
id: "feature-cards-editorial-columns",
|
|
1248
|
-
carry: {
|
|
1249
|
-
kind: "look",
|
|
1250
|
-
look: "card-list-accent-edged-cards"
|
|
1251
|
-
},
|
|
1252
|
-
target: "feature-cards",
|
|
1253
|
-
label: "Open columns on a soft band",
|
|
1254
|
-
blockKinds: ["block.feature-cards"],
|
|
1255
|
-
design: {
|
|
1256
|
-
sectionSurface: "muted-band",
|
|
1257
|
-
contentFrame: plainFrame,
|
|
1258
|
-
cardRole: "open"
|
|
1259
|
-
}
|
|
1260
|
-
}),
|
|
1261
|
-
defineBlockAppearancePreset({
|
|
1262
|
-
structure: {
|
|
1263
|
-
kind: "recipe",
|
|
1264
|
-
composition: {
|
|
1265
|
-
kind: "feature-cards",
|
|
1266
|
-
treatment: "asymmetric-emphasis"
|
|
1267
|
-
},
|
|
1268
|
-
constraints: { layoutFamilies: ["grid"] }
|
|
1269
|
-
},
|
|
1270
|
-
id: "feature-cards-asymmetric-emphasis",
|
|
1271
|
-
carry: {
|
|
1272
|
-
kind: "no-equivalent",
|
|
1273
|
-
because: "No shared Look lays cards out in uneven pairs."
|
|
1274
|
-
},
|
|
1275
|
-
target: "feature-cards",
|
|
1276
|
-
label: "Cards in uneven pairs",
|
|
1277
|
-
blockKinds: ["block.feature-cards"],
|
|
1278
|
-
design: {
|
|
1279
|
-
sectionSurface: "base",
|
|
1280
|
-
contentFrame: plainFrame
|
|
1281
|
-
}
|
|
1282
|
-
}),
|
|
1283
|
-
defineBlockAppearancePreset({
|
|
1284
|
-
structure: {
|
|
1285
|
-
kind: "recipe",
|
|
1286
|
-
composition: {
|
|
1287
|
-
kind: "feature-cards",
|
|
1288
|
-
treatment: "framed-programme"
|
|
1289
|
-
},
|
|
1290
|
-
constraints: { layoutFamilies: ["grid"] }
|
|
1291
|
-
},
|
|
1292
|
-
id: "feature-cards-framed-programme",
|
|
1293
|
-
carry: {
|
|
1294
|
-
kind: "look",
|
|
1295
|
-
look: "feature-cards-cards"
|
|
1296
|
-
},
|
|
1297
|
-
target: "feature-cards",
|
|
1298
|
-
label: "Close-set cards on brand colour",
|
|
1299
|
-
blockKinds: ["block.feature-cards"],
|
|
1300
|
-
design: {
|
|
1301
|
-
sectionSurface: "brand-depth-band",
|
|
1302
|
-
contentFrame: plainFrame,
|
|
1303
|
-
cardRole: "alternative"
|
|
1304
|
-
}
|
|
1305
|
-
}),
|
|
1306
|
-
defineBlockAppearancePreset({
|
|
1307
|
-
structure: {
|
|
1308
|
-
kind: "recipe",
|
|
1309
|
-
constraints: { layoutVariantKeys: ["editorial-diptych"] }
|
|
1310
|
-
},
|
|
1311
|
-
id: "feature-cards-editorial-diptych",
|
|
1312
|
-
carry: {
|
|
1313
|
-
kind: "look",
|
|
1314
|
-
look: "feature-cards-cards"
|
|
1315
|
-
},
|
|
1316
|
-
target: "feature-cards",
|
|
1317
|
-
label: "Two large cards side by side",
|
|
1318
|
-
blockKinds: ["block.feature-cards"],
|
|
1319
|
-
design: {
|
|
1320
|
-
sectionSurface: "base",
|
|
1321
|
-
contentFrame: plainFrame,
|
|
1322
|
-
cardRole: "default"
|
|
1323
|
-
}
|
|
1324
|
-
}),
|
|
1325
|
-
defineBlockAppearancePreset({
|
|
1326
|
-
structure: { kind: "recipe" },
|
|
1327
|
-
id: "events-lined-panel",
|
|
1328
|
-
carry: {
|
|
1329
|
-
kind: "by-layout",
|
|
1330
|
-
layouts: {
|
|
1331
|
-
combined: {
|
|
1332
|
-
kind: "look",
|
|
1333
|
-
look: "event-calendar-combined-panel",
|
|
1334
|
-
knobs: { actionStyle: "button" }
|
|
1335
|
-
},
|
|
1336
|
-
stack: {
|
|
1337
|
-
kind: "look",
|
|
1338
|
-
look: "event-calendar-ruled-rows-panel",
|
|
1339
|
-
knobs: { actionStyle: "button" }
|
|
1340
|
-
},
|
|
1341
|
-
compact: {
|
|
1342
|
-
kind: "look",
|
|
1343
|
-
look: "event-calendar-ruled-rows-panel",
|
|
1344
|
-
knobs: { actionStyle: "button" }
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
},
|
|
1348
|
-
target: "events",
|
|
1349
|
-
label: "Cards on a panel",
|
|
1350
|
-
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
1351
|
-
design: {
|
|
1352
|
-
sectionSurface: "base",
|
|
1353
|
-
contentFrame: panelFrame("raised")
|
|
1354
|
-
}
|
|
1355
|
-
}),
|
|
1356
|
-
defineBlockAppearancePreset({
|
|
1357
|
-
structure: { kind: "recipe" },
|
|
1358
|
-
id: "events-ruled-register",
|
|
1359
|
-
carry: {
|
|
1360
|
-
kind: "look",
|
|
1361
|
-
look: "event-calendar-ruled-rows"
|
|
1362
|
-
},
|
|
1363
|
-
target: "events",
|
|
1364
|
-
label: "Ruled list",
|
|
1365
|
-
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
1366
|
-
design: {
|
|
1367
|
-
sectionSurface: "brand-depth-band",
|
|
1368
|
-
contentFrame: plainFrame,
|
|
1369
|
-
eventListTreatment: "ruled-register"
|
|
1370
|
-
}
|
|
1371
|
-
}),
|
|
1372
|
-
defineBlockAppearancePreset({
|
|
1373
|
-
structure: { kind: "recipe" },
|
|
1374
|
-
id: "events-editorial-register",
|
|
1375
|
-
carry: {
|
|
1376
|
-
kind: "look",
|
|
1377
|
-
look: "event-calendar-ruled-rows"
|
|
1378
|
-
},
|
|
1379
|
-
target: "events",
|
|
1380
|
-
label: "Editorial list",
|
|
1381
|
-
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
1382
|
-
design: {
|
|
1383
|
-
sectionSurface: "base",
|
|
1384
|
-
contentFrame: plainFrame,
|
|
1385
|
-
eventListTreatment: "editorial-register"
|
|
1386
|
-
}
|
|
1387
|
-
}),
|
|
1388
|
-
defineBlockAppearancePreset({
|
|
1389
|
-
structure: { kind: "recipe" },
|
|
1390
|
-
id: "events-dense-index",
|
|
1391
|
-
carry: {
|
|
1392
|
-
kind: "look",
|
|
1393
|
-
look: "event-calendar-ruled-rows"
|
|
1394
|
-
},
|
|
1395
|
-
target: "events",
|
|
1396
|
-
label: "Compact list",
|
|
1397
|
-
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
1398
|
-
design: {
|
|
1399
|
-
sectionSurface: "accent-band",
|
|
1400
|
-
contentFrame: plainFrame,
|
|
1401
|
-
eventListTreatment: "dense-index"
|
|
1402
|
-
}
|
|
1403
|
-
}),
|
|
1404
|
-
defineBlockAppearancePreset({
|
|
1405
|
-
structure: { kind: "recipe" },
|
|
1406
|
-
id: "schedule-details-brand-depth",
|
|
1407
|
-
carry: {
|
|
1408
|
-
kind: "look",
|
|
1409
|
-
look: "event-details-panel"
|
|
1410
|
-
},
|
|
1411
|
-
target: "events",
|
|
1412
|
-
label: "Details on brand colour",
|
|
1413
|
-
blockKinds: ["block.event-details"],
|
|
1414
|
-
design: {
|
|
1415
|
-
sectionSurface: "brand-depth-band",
|
|
1416
|
-
contentFrame: plainFrame,
|
|
1417
|
-
tileTreatment: "brand-depth"
|
|
1418
|
-
}
|
|
1419
|
-
}),
|
|
1420
|
-
defineBlockAppearancePreset({
|
|
1421
|
-
structure: { kind: "recipe" },
|
|
1422
|
-
id: "media-text-flush-feature",
|
|
1423
|
-
carry: {
|
|
1424
|
-
kind: "look",
|
|
1425
|
-
look: "media-text-photo-beside-text"
|
|
1426
|
-
},
|
|
1427
|
-
target: "media-text",
|
|
1428
|
-
label: "Photo to the edge, on a soft band",
|
|
1429
|
-
blockKinds: ["block.media-text"],
|
|
1430
|
-
design: {
|
|
1431
|
-
sectionSurface: "muted-band",
|
|
1432
|
-
contentFrame: flushPanelFrame({ bleed: "start" })
|
|
1433
|
-
}
|
|
1434
|
-
}),
|
|
1435
|
-
defineBlockAppearancePreset({
|
|
1436
|
-
structure: { kind: "recipe" },
|
|
1437
|
-
id: "testimonials-simple-cards",
|
|
1438
|
-
carry: { kind: "by-layout" },
|
|
1439
|
-
target: "testimonials",
|
|
1440
|
-
label: "Quote cards",
|
|
1441
|
-
blockKinds: ["block.testimonials"],
|
|
1442
|
-
design: {
|
|
1443
|
-
sectionSurface: "base",
|
|
1444
|
-
contentFrame: plainFrame,
|
|
1445
|
-
cardRole: "default"
|
|
1446
|
-
}
|
|
1447
|
-
}),
|
|
1448
|
-
defineBlockAppearancePreset({
|
|
1449
|
-
structure: { kind: "recipe" },
|
|
1450
|
-
id: "testimonials-raised-panel",
|
|
1451
|
-
carry: { kind: "by-layout" },
|
|
1452
|
-
target: "testimonials",
|
|
1453
|
-
label: "Quotes on a panel",
|
|
1454
|
-
blockKinds: ["block.testimonials"],
|
|
1455
|
-
design: {
|
|
1456
|
-
sectionSurface: "muted-band",
|
|
1457
|
-
contentFrame: panelFrame("raised"),
|
|
1458
|
-
cardRole: "default"
|
|
1459
|
-
}
|
|
1460
|
-
}),
|
|
1461
|
-
defineBlockAppearancePreset({
|
|
1462
|
-
structure: { kind: "recipe" },
|
|
1463
|
-
id: "testimonials-accent-panel",
|
|
1464
|
-
carry: { kind: "by-layout" },
|
|
1465
|
-
target: "testimonials",
|
|
1466
|
-
label: "Quotes on an accent panel",
|
|
1467
|
-
blockKinds: ["block.testimonials"],
|
|
1468
|
-
design: {
|
|
1469
|
-
sectionSurface: "accent-band",
|
|
1470
|
-
contentFrame: panelFrame("raised"),
|
|
1471
|
-
cardRole: "default"
|
|
1472
|
-
}
|
|
1473
|
-
}),
|
|
1474
|
-
defineBlockAppearancePreset({
|
|
1475
|
-
structure: { kind: "recipe" },
|
|
1476
|
-
id: "testimonials-statement-cards",
|
|
1477
|
-
carry: { kind: "by-layout" },
|
|
1478
|
-
target: "testimonials",
|
|
1479
|
-
label: "Cards on accent colour",
|
|
1480
|
-
blockKinds: ["block.testimonials"],
|
|
1481
|
-
design: {
|
|
1482
|
-
sectionSurface: "accent-band",
|
|
1483
|
-
contentFrame: plainFrame,
|
|
1484
|
-
cardRole: "alternative"
|
|
1485
|
-
}
|
|
1486
|
-
}),
|
|
1487
|
-
defineBlockAppearancePreset({
|
|
1488
|
-
structure: { kind: "recipe" },
|
|
1489
|
-
id: "testimonials-brand-statement-cards",
|
|
1490
|
-
carry: { kind: "by-layout" },
|
|
1491
|
-
target: "testimonials",
|
|
1492
|
-
label: "Cards on brand colour",
|
|
1493
|
-
blockKinds: ["block.testimonials"],
|
|
1494
|
-
design: {
|
|
1495
|
-
sectionSurface: "brand-depth-band",
|
|
1496
|
-
contentFrame: plainFrame,
|
|
1497
|
-
cardRole: "alternative"
|
|
1498
|
-
}
|
|
1499
|
-
}),
|
|
1500
|
-
defineBlockAppearancePreset({
|
|
1501
|
-
structure: {
|
|
1502
|
-
kind: "recipe",
|
|
1503
|
-
composition: {
|
|
1504
|
-
kind: "testimonials",
|
|
1505
|
-
treatment: "open-editorial"
|
|
1506
|
-
}
|
|
1507
|
-
},
|
|
1508
|
-
id: "testimonials-non-carded",
|
|
1509
|
-
carry: {
|
|
1510
|
-
kind: "by-layout",
|
|
1511
|
-
layouts: { grid: {
|
|
1512
|
-
kind: "look",
|
|
1513
|
-
look: "testimonials-quote-columns",
|
|
1514
|
-
knobs: { quoteCount: "all" }
|
|
1515
|
-
} }
|
|
1516
|
-
},
|
|
1517
|
-
target: "testimonials",
|
|
1518
|
-
label: "No cards",
|
|
1519
|
-
blockKinds: ["block.testimonials"],
|
|
1520
|
-
design: {
|
|
1521
|
-
sectionSurface: "muted-band",
|
|
1522
|
-
contentFrame: plainFrame
|
|
1523
|
-
}
|
|
1524
|
-
}),
|
|
1525
|
-
defineBlockAppearancePreset({
|
|
1526
|
-
structure: {
|
|
1527
|
-
kind: "recipe",
|
|
1528
|
-
composition: {
|
|
1529
|
-
kind: "testimonials",
|
|
1530
|
-
treatment: "evergreen-lead"
|
|
1531
|
-
},
|
|
1532
|
-
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
1533
|
-
},
|
|
1534
|
-
id: "testimonials-evergreen-lead",
|
|
1535
|
-
carry: {
|
|
1536
|
-
kind: "look",
|
|
1537
|
-
look: "testimonials-lead-quote"
|
|
1538
|
-
},
|
|
1539
|
-
target: "testimonials",
|
|
1540
|
-
label: "Lead quote, others in two columns",
|
|
1541
|
-
blockKinds: ["block.testimonials"],
|
|
1542
|
-
design: {
|
|
1543
|
-
sectionSurface: "base",
|
|
1544
|
-
contentFrame: plainFrame
|
|
1545
|
-
}
|
|
1546
|
-
}),
|
|
1547
|
-
defineBlockAppearancePreset({
|
|
1548
|
-
structure: {
|
|
1549
|
-
kind: "recipe",
|
|
1550
|
-
composition: {
|
|
1551
|
-
kind: "testimonials",
|
|
1552
|
-
treatment: "room-and-response"
|
|
1553
|
-
},
|
|
1554
|
-
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
1555
|
-
},
|
|
1556
|
-
id: "testimonials-room-and-response",
|
|
1557
|
-
carry: {
|
|
1558
|
-
kind: "look",
|
|
1559
|
-
look: "testimonials-lead-quote"
|
|
1560
|
-
},
|
|
1561
|
-
target: "testimonials",
|
|
1562
|
-
label: "Tall lead quote, others beside",
|
|
1563
|
-
blockKinds: ["block.testimonials"],
|
|
1564
|
-
design: {
|
|
1565
|
-
sectionSurface: "base",
|
|
1566
|
-
contentFrame: plainFrame
|
|
1567
|
-
}
|
|
1568
|
-
}),
|
|
1569
|
-
defineBlockAppearancePreset({
|
|
1570
|
-
structure: {
|
|
1571
|
-
kind: "recipe",
|
|
1572
|
-
composition: {
|
|
1573
|
-
kind: "testimonials",
|
|
1574
|
-
treatment: "open-floor"
|
|
1575
|
-
},
|
|
1576
|
-
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
1577
|
-
},
|
|
1578
|
-
id: "testimonials-open-floor",
|
|
1579
|
-
carry: {
|
|
1580
|
-
kind: "look",
|
|
1581
|
-
look: "testimonials-lead-quote"
|
|
1582
|
-
},
|
|
1583
|
-
target: "testimonials",
|
|
1584
|
-
label: "Title beside, lead quote on top",
|
|
1585
|
-
blockKinds: ["block.testimonials"],
|
|
1586
|
-
design: {
|
|
1587
|
-
sectionSurface: "base",
|
|
1588
|
-
contentFrame: plainFrame
|
|
1589
|
-
}
|
|
1590
|
-
}),
|
|
1591
|
-
defineBlockAppearancePreset({
|
|
1592
|
-
structure: { kind: "recipe" },
|
|
1593
|
-
id: "faq-base-accordion",
|
|
1594
|
-
carry: { kind: "by-layout" },
|
|
1595
|
-
target: "faq",
|
|
1596
|
-
label: "Plain list of questions",
|
|
1597
|
-
blockKinds: ["block.faq"],
|
|
1598
|
-
design: {
|
|
1599
|
-
sectionSurface: "base",
|
|
1600
|
-
contentFrame: plainFrame,
|
|
1601
|
-
cardRole: "default"
|
|
1602
|
-
}
|
|
1603
|
-
}),
|
|
1604
|
-
defineBlockAppearancePreset({
|
|
1605
|
-
structure: { kind: "recipe" },
|
|
1606
|
-
id: "faq-contained-help",
|
|
1607
|
-
carry: {
|
|
1608
|
-
kind: "by-layout",
|
|
1609
|
-
layouts: { default: {
|
|
1610
|
-
kind: "look",
|
|
1611
|
-
look: "faq-questions-in-panel"
|
|
1612
|
-
} }
|
|
1613
|
-
},
|
|
1614
|
-
target: "faq",
|
|
1615
|
-
label: "Questions in a panel",
|
|
1616
|
-
blockKinds: ["block.faq"],
|
|
1617
|
-
design: {
|
|
1618
|
-
sectionSurface: "muted-band",
|
|
1619
|
-
contentFrame: panelFrame("inset"),
|
|
1620
|
-
cardRole: "default"
|
|
1621
|
-
}
|
|
1622
|
-
}),
|
|
1623
|
-
defineBlockAppearancePreset({
|
|
1624
|
-
structure: { kind: "recipe" },
|
|
1625
|
-
id: "contact-form-panel",
|
|
1626
|
-
carry: { kind: "by-layout" },
|
|
1627
|
-
target: "contact-form",
|
|
1628
|
-
label: "Form on a panel",
|
|
1629
|
-
blockKinds: ["block.form"],
|
|
1630
|
-
design: {
|
|
1631
|
-
sectionSurface: "muted-band",
|
|
1632
|
-
contentFrame: panelFrame("raised")
|
|
1633
|
-
}
|
|
1634
|
-
}),
|
|
1635
|
-
defineBlockAppearancePreset({
|
|
1636
|
-
structure: { kind: "recipe" },
|
|
1637
|
-
id: "booking-brand-band",
|
|
1638
|
-
carry: {
|
|
1639
|
-
kind: "no-equivalent",
|
|
1640
|
-
because: "Appointment booking has no shared Looks."
|
|
1641
|
-
},
|
|
1642
|
-
target: "contact-form",
|
|
1643
|
-
label: "Booking form on brand colour",
|
|
1644
|
-
blockKinds: ["block.appointment-booking"],
|
|
1645
|
-
design: {
|
|
1646
|
-
sectionSurface: "brand-depth-band",
|
|
1647
|
-
contentFrame: plainFrame
|
|
1648
|
-
}
|
|
1649
|
-
}),
|
|
1650
|
-
defineBlockAppearancePreset({
|
|
1651
|
-
structure: { kind: "recipe" },
|
|
1652
|
-
id: "cta-accent-band",
|
|
1653
|
-
carry: {
|
|
1654
|
-
kind: "look",
|
|
1655
|
-
look: "cta-centred"
|
|
1656
|
-
},
|
|
1657
|
-
target: "cta",
|
|
1658
|
-
label: "Accent colour band",
|
|
1659
|
-
blockKinds: ["block.cta-full"],
|
|
1660
|
-
design: {
|
|
1661
|
-
sectionSurface: "accent-band",
|
|
1662
|
-
contentFrame: plainFrame,
|
|
1663
|
-
eyebrowTreatment: "accent"
|
|
1664
|
-
}
|
|
1665
|
-
}),
|
|
1666
|
-
defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", [], { thumbnail: sketch.page([
|
|
1667
|
-
sketch.rule,
|
|
1668
|
-
sketch.title(.5),
|
|
1669
|
-
sketch.text(4)
|
|
1670
|
-
], { align: "center" }) }),
|
|
1671
|
-
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside a framed form", "two-column", [], {
|
|
1672
|
-
thumbnail: sketch.page([sketch.middle([
|
|
1673
|
-
sketch.rule,
|
|
1674
|
-
sketch.title(.8),
|
|
1675
|
-
sketch.text(3)
|
|
1676
|
-
], [sketch.panel([
|
|
1677
|
-
sketch.field,
|
|
1678
|
-
sketch.field,
|
|
1679
|
-
sketch.button
|
|
1680
|
-
])])]),
|
|
1681
|
-
slotRoles: { panel: "card" },
|
|
1682
|
-
styleFallback: [id("form-below-introduction")]
|
|
1683
|
-
}),
|
|
1684
|
-
defineArrangementLook("form-beside-introduction-no-card", "form", "Form on the background, no card", "two-column", [], {
|
|
1685
|
-
thumbnail: sketch.page([sketch.middle([
|
|
1686
|
-
sketch.rule,
|
|
1687
|
-
sketch.title(.8),
|
|
1688
|
-
sketch.text(3)
|
|
1689
|
-
], [
|
|
1690
|
-
sketch.field,
|
|
1691
|
-
sketch.field,
|
|
1692
|
-
sketch.button
|
|
1693
|
-
])]),
|
|
1694
|
-
styleFallback: [id("form-beside-introduction-arched-panel")]
|
|
1695
|
-
}),
|
|
1696
|
-
defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in a frame", "arch", [], {
|
|
1697
|
-
thumbnail: sketch.band([sketch.panel([
|
|
1698
|
-
sketch.title(.6),
|
|
1699
|
-
sketch.text(1, .7),
|
|
1700
|
-
sketch.row(sketch.weight(3, [sketch.field]), sketch.weight(1, [sketch.button]))
|
|
1701
|
-
])], { align: "center" }),
|
|
1702
|
-
styleFallback: [id("newsletter-signup-text-beside")]
|
|
1703
|
-
}),
|
|
1704
|
-
defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", ["blackAndWhite"], {
|
|
1705
|
-
mediaFrame: { default: {
|
|
1706
|
-
kind: "fixed",
|
|
1707
|
-
aspectRatio: "1/1"
|
|
1708
|
-
} },
|
|
1709
|
-
thumbnail: sketch.page([
|
|
1710
|
-
sketch.title(.4),
|
|
1711
|
-
sketch.across(4, [sketch.photo("short")]),
|
|
1712
|
-
sketch.across(4, [sketch.photo("short")])
|
|
1713
|
-
])
|
|
1714
|
-
}),
|
|
1715
|
-
defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", ["blackAndWhite"], {
|
|
1716
|
-
mediaFrame: {
|
|
1717
|
-
default: {
|
|
1718
|
-
kind: "fixed",
|
|
1719
|
-
aspectRatio: "1/1"
|
|
1720
|
-
},
|
|
1721
|
-
bySkin: { lantern: {
|
|
1722
|
-
kind: "fixed",
|
|
1723
|
-
aspectRatio: "3/4",
|
|
1724
|
-
borderRadius: "9999px 9999px 0 0"
|
|
1725
|
-
} }
|
|
1726
|
-
},
|
|
1727
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("tall", "arch"), sketch.text(1, .7)])]),
|
|
1728
|
-
styleFallback: [id("image-gallery-square-tiles")]
|
|
1729
|
-
}),
|
|
1730
|
-
defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
|
|
1731
|
-
mediaFrame: { default: {
|
|
1732
|
-
kind: "fixed",
|
|
1733
|
-
aspectRatio: "1/1",
|
|
1734
|
-
borderRadius: "50%"
|
|
1735
|
-
} },
|
|
1736
|
-
thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [sketch.title(.8), sketch.text(3)])]),
|
|
1737
|
-
forcedKnobs: {
|
|
1738
|
-
imageShape: "circle",
|
|
1739
|
-
aspectRatio: "1/1"
|
|
1740
|
-
},
|
|
1741
|
-
styleFallback: [id("media-text-photo-beside-text")]
|
|
1742
|
-
}),
|
|
1743
|
-
defineArrangementLook("media-text-quote-beside-circle", "media-text", "Quote beside a round photo", "circle-beside", ["imagePosition"], {
|
|
1744
|
-
mediaFrame: { default: {
|
|
1745
|
-
kind: "fixed",
|
|
1746
|
-
aspectRatio: "1/1",
|
|
1747
|
-
borderRadius: "50%"
|
|
1748
|
-
} },
|
|
1749
|
-
thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [
|
|
1750
|
-
sketch.title(.6),
|
|
1751
|
-
sketch.quote("small"),
|
|
1752
|
-
sketch.text(2),
|
|
1753
|
-
sketch.text(1, .5)
|
|
1754
|
-
])]),
|
|
1755
|
-
forcedKnobs: {
|
|
1756
|
-
imageShape: "circle",
|
|
1757
|
-
aspectRatio: "1/1"
|
|
1758
|
-
},
|
|
1759
|
-
styleFallback: [id("media-text-circle-beside-text"), id("media-text-photo-beside-text")]
|
|
1760
|
-
}),
|
|
1761
|
-
defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, {
|
|
1762
|
-
photoUse: "beside",
|
|
1763
|
-
thumbnail: sketch.page([sketch.middle([
|
|
1764
|
-
sketch.rule,
|
|
1765
|
-
sketch.title(.95, "large"),
|
|
1766
|
-
sketch.title(.7, "large"),
|
|
1767
|
-
sketch.text(2),
|
|
1768
|
-
sketch.button
|
|
1769
|
-
], [sketch.photo("tall")])]),
|
|
1770
|
-
slotRoles: { sticker: "highlight" }
|
|
1771
|
-
}),
|
|
1772
|
-
defineArrangementLook("hero-headline-row", "hero", "Big headline, then text and photo", "headline-row", heroKnobs, {
|
|
1773
|
-
photoUse: "beside",
|
|
1774
|
-
thumbnail: sketch.page([sketch.title(.9, "large"), sketch.row([sketch.text(3), sketch.button], [sketch.photo("medium")])]),
|
|
1775
|
-
slotRoles: { sticker: "highlight" },
|
|
1776
|
-
styleFallback: [id("hero-photo-beside-text")]
|
|
1777
|
-
}),
|
|
1778
|
-
defineArrangementLook("hero-photo-then-text", "hero", "Photo, then text below", "split", ["titleSize"], {
|
|
1779
|
-
photoUse: "beside",
|
|
1780
|
-
thumbnail: sketch.page([sketch.photo("medium"), sketch.row([sketch.title(.95, "large"), sketch.title(.6, "large")], [sketch.text(2), sketch.button])]),
|
|
1781
|
-
styleFallback: [id("hero-photo-beside-text")]
|
|
1782
|
-
}),
|
|
1783
|
-
defineArrangementLook("hero-copy-over-gallery", "hero", "Title over a row of photos", "copy-over-gallery", ["titleSize", "stickerLine"], {
|
|
1784
|
-
photoUse: "beside",
|
|
1785
|
-
thumbnail: sketch.page([
|
|
1786
|
-
sketch.title(.6, "large"),
|
|
1787
|
-
sketch.text(1, .5),
|
|
1788
|
-
sketch.across(3, [sketch.photo("short")])
|
|
1789
|
-
], { align: "center" }),
|
|
1790
|
-
slotRoles: { sticker: "highlight" },
|
|
1791
|
-
styleFallback: [id("hero-photo-beside-text")]
|
|
1792
|
-
}),
|
|
1793
|
-
defineArrangementLook("hero-photo-behind-text", "hero", "Photo behind the text", "classic", ["titleSize", "smallCaption"], {
|
|
1794
|
-
photoUse: "behind",
|
|
1795
|
-
photoTreatment: "photo-only",
|
|
1796
|
-
thumbnail: sketch.page([sketch.over("full", [
|
|
1797
|
-
sketch.title(.7, "large"),
|
|
1798
|
-
sketch.text(2, .7),
|
|
1799
|
-
sketch.button
|
|
1800
|
-
], { panel: true })]),
|
|
1801
|
-
slotRoles: { copy: "card" },
|
|
1802
|
-
styleFallback: [id("hero-photo-beside-text")]
|
|
1803
|
-
}),
|
|
1804
|
-
defineArrangementLook("hero-text-over-photo", "hero", "Text over photo", "classic", [], {
|
|
1805
|
-
photoUse: "behind",
|
|
1806
|
-
thumbnail: sketch.page([sketch.over("full", [
|
|
1807
|
-
sketch.title(.6, "large"),
|
|
1808
|
-
sketch.text(2, .6),
|
|
1809
|
-
sketch.button
|
|
1810
|
-
])]),
|
|
1811
|
-
photoTreatment: "text-overlay",
|
|
1812
|
-
whenMissing: [{
|
|
1813
|
-
fact: "photo",
|
|
1814
|
-
look: id("hero-page-head")
|
|
1815
|
-
}],
|
|
1816
|
-
styleFallback: [id("hero-photo-behind-text")]
|
|
1817
|
-
}),
|
|
1818
|
-
defineArrangementLook("hero-short-photo-banner", "hero", "Short photo banner", "classic", [], {
|
|
1819
|
-
photoUse: "behind",
|
|
1820
|
-
photoTreatment: "photo-only",
|
|
1821
|
-
thumbnail: sketch.page([sketch.over("banner", [sketch.title(.6)], { panel: true })]),
|
|
1822
|
-
slotRoles: { copy: "card" },
|
|
1823
|
-
styleFallback: [id("hero-page-head")]
|
|
1824
|
-
}),
|
|
1825
|
-
defineArrangementLook("hero-page-head-round-photo", "hero", "Short title beside a round photo", "split", ["titleSize"], {
|
|
1826
|
-
photoUse: "beside",
|
|
1827
|
-
thumbnail: sketch.page([sketch.middle([
|
|
1828
|
-
sketch.rule,
|
|
1829
|
-
sketch.title(.7, "large"),
|
|
1830
|
-
sketch.text(1, .6)
|
|
1831
|
-
], [sketch.photo("short", "circle")])]),
|
|
1832
|
-
whenMissing: [{
|
|
1833
|
-
fact: "photo",
|
|
1834
|
-
look: id("hero-page-head")
|
|
1835
|
-
}],
|
|
1836
|
-
styleFallback: [id("hero-page-head")]
|
|
1837
|
-
}),
|
|
1838
|
-
defineArrangementLook("hero-three-round-photos", "hero", "Three round photos beside the text", "photo-trio", ["titleSize"], {
|
|
1839
|
-
photoUse: "beside",
|
|
1840
|
-
thumbnail: sketch.page([sketch.middle([
|
|
1841
|
-
sketch.rule,
|
|
1842
|
-
sketch.title(.95, "large"),
|
|
1843
|
-
sketch.title(.7, "large"),
|
|
1844
|
-
sketch.text(2),
|
|
1845
|
-
sketch.button
|
|
1846
|
-
], [sketch.photo("short", "circle"), sketch.across(2, [sketch.photo("short", "circle")])])]),
|
|
1847
|
-
styleFallback: [id("hero-photo-beside-text")]
|
|
1848
|
-
}),
|
|
1849
|
-
defineArrangementLook("hero-page-head", "hero", "Title and facts, no photo", "page-head", ["titleSize", "smallCaption"], {
|
|
1850
|
-
photoUse: "none",
|
|
1851
|
-
thumbnail: sketch.page([
|
|
1852
|
-
sketch.rule,
|
|
1853
|
-
sketch.title(.6, "large"),
|
|
1854
|
-
sketch.text(1, .5),
|
|
1855
|
-
sketch.row([sketch.text(1, .7)], [sketch.text(1, .7)], [sketch.text(1, .7)])
|
|
1856
|
-
]),
|
|
1857
|
-
styleFallback: [id("hero-photo-beside-text")]
|
|
1858
|
-
}),
|
|
1859
|
-
defineArrangementLook("class-prices-big-figures", "class-prices", "Prices as big figures", "cards", [], { thumbnail: sketch.page([sketch.across(3, [
|
|
1860
|
-
sketch.price,
|
|
1861
|
-
sketch.title(.7, "small"),
|
|
1862
|
-
sketch.text(1)
|
|
1863
|
-
])]) }),
|
|
1864
|
-
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 })]) }),
|
|
1865
|
-
defineCardListLook("feature-cards-cards", "Cards", "cards", [
|
|
1866
|
-
"media",
|
|
1867
|
-
"title",
|
|
1868
|
-
"text",
|
|
1869
|
-
"action"
|
|
1870
|
-
], [
|
|
1871
|
-
"showPhotos",
|
|
1872
|
-
"cardMarker",
|
|
1873
|
-
"columns"
|
|
1874
|
-
], {
|
|
1875
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([sketch.title(.7, "small"), sketch.text(2)])])]),
|
|
1876
|
-
itemRoles: { items: "card" }
|
|
1877
|
-
}),
|
|
1878
|
-
notFor(defineCardListLook("card-list-accent-edged-cards", "Accent-edged cards", "cards", [
|
|
1879
|
-
"media",
|
|
1880
|
-
"title",
|
|
1881
|
-
"text",
|
|
1882
|
-
"action"
|
|
1883
|
-
], [
|
|
1884
|
-
"showPhotos",
|
|
1885
|
-
"cardMarker",
|
|
1886
|
-
"columns"
|
|
1887
|
-
], {
|
|
1888
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.accentCard([sketch.title(.7, "small"), sketch.text(2)])])]),
|
|
1889
|
-
itemRoles: { items: "card" },
|
|
1890
|
-
styleFallback: [id("feature-cards-cards")]
|
|
1891
|
-
}), [
|
|
1892
|
-
"block.team-members",
|
|
1893
|
-
"block.appointment-services",
|
|
1894
|
-
"block.offerings-preview"
|
|
1895
|
-
]),
|
|
1896
|
-
notFor(defineCardListLook("feature-cards-open-columns", "Open columns", "cards", [
|
|
1897
|
-
"media",
|
|
1898
|
-
"title",
|
|
1899
|
-
"text",
|
|
1900
|
-
"action"
|
|
1901
|
-
], [
|
|
1902
|
-
"showPhotos",
|
|
1903
|
-
"cardMarker",
|
|
1904
|
-
"columns"
|
|
1905
|
-
], {
|
|
1906
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.title(.7, "small"), sketch.text(3)])]),
|
|
1907
|
-
knobDefaults: { actionStyle: "link" },
|
|
1908
|
-
styleFallback: [id("feature-cards-cards")]
|
|
1909
|
-
}), ["block.team-members"]),
|
|
1910
|
-
notFor(defineCardListLook("feature-cards-lead-support", "First item leads, the rest follow", "lead-support", [
|
|
1911
|
-
"media",
|
|
1912
|
-
"title",
|
|
1913
|
-
"text",
|
|
1914
|
-
"action"
|
|
1915
|
-
], ["showPhotos"], {
|
|
1916
|
-
thumbnail: sketch.page([sketch.row(sketch.weight(4, [sketch.featured([
|
|
1917
|
-
sketch.photo("medium"),
|
|
1918
|
-
sketch.title(.7),
|
|
1919
|
-
sketch.text(2)
|
|
1920
|
-
])]), sketch.weight(3, [sketch.down(2, [sketch.title(.7, "small"), sketch.text(2)])]))]),
|
|
1921
|
-
itemRoles: { at: { first: "statement" } },
|
|
1922
|
-
styleFallback: [id("feature-cards-cards")]
|
|
1923
|
-
}), ["block.team-members"]),
|
|
1924
|
-
notFor(defineCardListLook("feature-cards-index", "Ruled list", "index", [
|
|
1925
|
-
"title",
|
|
1926
|
-
"text",
|
|
1927
|
-
"action"
|
|
1928
|
-
], ["cardMarker"], {
|
|
1929
|
-
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 })]),
|
|
1930
|
-
knobDefaults: { cardMarker: "none" },
|
|
1931
|
-
knobValues: { cardMarker: ["numbers", "none"] },
|
|
1932
|
-
styleFallback: [id("feature-cards-cards")]
|
|
1933
|
-
}), ["block.team-members", "block.shop"]),
|
|
1934
|
-
{
|
|
1935
|
-
...defineCardListLook("feature-cards-timeline", "A timeline down the page", "index", [
|
|
1936
|
-
"title",
|
|
1937
|
-
"text",
|
|
1938
|
-
"action"
|
|
1939
|
-
], [], {
|
|
1940
|
-
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)])]))])]),
|
|
1941
|
-
forcedKnobs: { cardMarker: "none" },
|
|
1942
|
-
itemRoles: { items: "card" },
|
|
1943
|
-
styleFallback: [id("feature-cards-index")]
|
|
1944
|
-
}),
|
|
1945
|
-
blockKinds: ["block.feature-cards"]
|
|
1946
|
-
},
|
|
1947
|
-
{
|
|
1948
|
-
...defineCardListLook("feature-cards-photo-beside-cards", "Cards with a photo beside the text", "cards", [
|
|
1949
|
-
"media",
|
|
1950
|
-
"title",
|
|
1951
|
-
"text",
|
|
1952
|
-
"action"
|
|
1953
|
-
], ["showPhotos"], {
|
|
1954
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(2, [sketch.card([sketch.row([sketch.photo("short")], [
|
|
1955
|
-
sketch.title(.7, "small"),
|
|
1956
|
-
sketch.text(2),
|
|
1957
|
-
sketch.link
|
|
1958
|
-
])])])]),
|
|
1959
|
-
knobDefaults: { actionStyle: "link" },
|
|
1960
|
-
itemRoles: { items: "card" },
|
|
1961
|
-
styleFallback: [id("feature-cards-cards")]
|
|
1962
|
-
}),
|
|
1963
|
-
blockKinds: ["block.feature-cards"]
|
|
1964
|
-
},
|
|
1965
|
-
notFor(defineCardListLook("feature-cards-sequence", "Numbered steps", "sequence", [
|
|
1966
|
-
"title",
|
|
1967
|
-
"text",
|
|
1968
|
-
"action"
|
|
1969
|
-
], [], {
|
|
1970
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [
|
|
1971
|
-
sketch.number,
|
|
1972
|
-
sketch.title(.7, "small"),
|
|
1973
|
-
sketch.text(2)
|
|
1974
|
-
])]),
|
|
1975
|
-
forcedKnobs: { cardMarker: "numbers" },
|
|
1976
|
-
styleFallback: [id("feature-cards-cards")]
|
|
1977
|
-
}), [
|
|
1978
|
-
"block.team-members",
|
|
1979
|
-
"block.appointment-services",
|
|
1980
|
-
"block.offerings-preview",
|
|
1981
|
-
"block.shop"
|
|
1982
|
-
]),
|
|
1983
|
-
defineCardListLook("card-list-plates", "Plates", "plates", [
|
|
1984
|
-
"media",
|
|
1985
|
-
"title",
|
|
1986
|
-
"text",
|
|
1987
|
-
"facts",
|
|
1988
|
-
"schedule",
|
|
1989
|
-
"action"
|
|
1990
|
-
], ["showPhotos"], {
|
|
1991
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([
|
|
1992
|
-
sketch.photo("short"),
|
|
1993
|
-
sketch.title(.7, "small"),
|
|
1994
|
-
sketch.text(1),
|
|
1995
|
-
sketch.link
|
|
1996
|
-
])])]),
|
|
1997
|
-
knobDefaults: {
|
|
1998
|
-
actionStyle: "link",
|
|
1999
|
-
cardMarker: "none"
|
|
2000
|
-
},
|
|
2001
|
-
styleFallback: [id("feature-cards-cards")]
|
|
2002
|
-
}),
|
|
2003
|
-
calendarRuledRows,
|
|
2004
|
-
calendarRuledRowsPanel,
|
|
2005
|
-
{
|
|
2006
|
-
...calendarRuledRowsPanel,
|
|
2007
|
-
id: id("event-calendar-day-schedule"),
|
|
2008
|
-
label: "Sessions grouped by day",
|
|
2009
|
-
structure: {
|
|
2010
|
-
...calendarRuledRowsPanel.structure,
|
|
2011
|
-
eventRows: "day-schedule",
|
|
2012
|
-
forcedKnobs: { actionStyle: "button" }
|
|
2013
|
-
}
|
|
2014
|
-
},
|
|
2015
|
-
defineArrangementLook("event-calendar-grouped-by-day", "event-calendar", "Grouped by day", "day-groups", ["showCapacity"], {
|
|
2016
|
-
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 })])])]),
|
|
2017
|
-
styleFallback: [id("event-calendar-ruled-rows")]
|
|
2018
|
-
}),
|
|
2019
|
-
defineArrangementLook("event-calendar-grouped-by-week", "event-calendar", "Grouped by week", "week-groups", [], {
|
|
2020
|
-
thumbnail: sketch.band([sketch.title(.4), sketch.down(2, [sketch.title(.3, "small"), sketch.panel([sketch.text(2), sketch.button])])]),
|
|
2021
|
-
styleFallback: [id("event-calendar-grouped-by-day")]
|
|
2022
|
-
}),
|
|
2023
|
-
{
|
|
2024
|
-
...calendarRuledRowsPanel,
|
|
2025
|
-
id: id("event-calendar-combined-panel"),
|
|
2026
|
-
structure: {
|
|
2027
|
-
...calendarRuledRowsPanel.structure,
|
|
2028
|
-
byMode: { combined: "ledger" },
|
|
2029
|
-
styleFallback: [id("event-calendar-combined-rows")]
|
|
2030
|
-
}
|
|
2031
|
-
},
|
|
2032
|
-
{
|
|
2033
|
-
...calendarRuledRows,
|
|
2034
|
-
id: id("event-calendar-combined-rows"),
|
|
2035
|
-
structure: {
|
|
2036
|
-
...calendarRuledRows.structure,
|
|
2037
|
-
byMode: { combined: "ledger" }
|
|
2038
|
-
}
|
|
2039
|
-
},
|
|
2040
|
-
{
|
|
2041
|
-
...calendarTimetableRows,
|
|
2042
|
-
structure: {
|
|
2043
|
-
...calendarTimetableRows.structure,
|
|
2044
|
-
byMode: { combined: "timetable-rows" }
|
|
2045
|
-
}
|
|
2046
|
-
},
|
|
2047
|
-
{
|
|
2048
|
-
...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)])])])]) }),
|
|
2049
|
-
structure: {
|
|
2050
|
-
kind: "arrangement",
|
|
2051
|
-
byMode: { list: "week-columns" },
|
|
2052
|
-
knobs: ["showCapacity"],
|
|
2053
|
-
itemRoles: {},
|
|
2054
|
-
whenMissing: [{
|
|
2055
|
-
fact: "listed-by-week",
|
|
2056
|
-
look: id("event-calendar-grouped-by-day")
|
|
2057
|
-
}],
|
|
2058
|
-
styleFallback: [id("event-calendar-grouped-by-day")],
|
|
2059
|
-
photoUse: "none"
|
|
2060
|
-
}
|
|
2061
|
-
},
|
|
2062
|
-
defineArrangementLook("event-calendar-session-cards", "event-calendar", "Session cards", "grid", [
|
|
2063
|
-
"showCapacity",
|
|
2064
|
-
"showPhotos",
|
|
2065
|
-
"listColumns"
|
|
2066
|
-
], {
|
|
2067
|
-
thumbnail: sketch.band([sketch.title(.4), sketch.across(3, [sketch.card([
|
|
2068
|
-
sketch.title(.4, "small"),
|
|
2069
|
-
sketch.title(.8, "small"),
|
|
2070
|
-
sketch.text(1),
|
|
2071
|
-
sketch.button
|
|
2072
|
-
])])]),
|
|
2073
|
-
itemRoles: { items: "card" },
|
|
2074
|
-
slotRoles: { date: "highlight" },
|
|
2075
|
-
styleFallback: [id("event-calendar-ruled-rows")]
|
|
2076
|
-
}),
|
|
2077
|
-
defineArrangementLook("event-calendar-next-three", "event-calendar", "Compact rows", "compact", ["showCapacity"], {
|
|
2078
|
-
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 })])]),
|
|
2079
|
-
itemRoles: { container: "card" },
|
|
2080
|
-
styleFallback: [id("event-calendar-ruled-rows")]
|
|
2081
|
-
}),
|
|
2082
|
-
defineArrangementLook("events-spotlight", "event-calendar", "Event spotlight", "grid", [
|
|
2083
|
-
"showCapacity",
|
|
2084
|
-
"showPhotos",
|
|
2085
|
-
"listColumns"
|
|
2086
|
-
], {
|
|
2087
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([
|
|
2088
|
-
sketch.photo("short"),
|
|
2089
|
-
sketch.title(.8, "small"),
|
|
2090
|
-
sketch.text(1),
|
|
2091
|
-
sketch.button
|
|
2092
|
-
])])]),
|
|
2093
|
-
itemRoles: { items: "card" },
|
|
2094
|
-
slotRoles: { date: "highlight" },
|
|
2095
|
-
styleFallback: [id("event-calendar-session-cards")]
|
|
2096
|
-
}),
|
|
2097
|
-
{
|
|
2098
|
-
...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)])])])]) }),
|
|
2099
|
-
structure: {
|
|
2100
|
-
kind: "arrangement",
|
|
2101
|
-
byMode: { week: "ledger" },
|
|
2102
|
-
knobs: [],
|
|
2103
|
-
itemRoles: {},
|
|
2104
|
-
whenMissing: [],
|
|
2105
|
-
styleFallback: [],
|
|
2106
|
-
photoUse: "none"
|
|
2107
|
-
}
|
|
2108
|
-
},
|
|
2109
|
-
defineArrangementLook("hero-framed-title", "hero", "Title framed between two photos", "copy-over-gallery", ["titleSize", "smallCaption"], {
|
|
2110
|
-
photoUse: "beside",
|
|
2111
|
-
thumbnail: sketch.page([sketch.middle([sketch.photo("tall")], [sketch.title(.95, "large"), sketch.title(.7, "large")], [sketch.photo("tall")])]),
|
|
2112
|
-
styleFallback: [id("hero-copy-over-gallery")]
|
|
2113
|
-
}),
|
|
2114
|
-
defineArrangementLook("testimonials-lead-quote", "testimonials", "Big quote with others beside", "lead-rest", ["quoteCount"], {
|
|
2115
|
-
thumbnail: sketch.band([sketch.row(sketch.weight(3, [
|
|
2116
|
-
sketch.quote("large"),
|
|
2117
|
-
sketch.title(.95, "small"),
|
|
2118
|
-
sketch.title(.8, "small"),
|
|
2119
|
-
sketch.text(1, .3)
|
|
2120
|
-
]), sketch.weight(2, [sketch.down(2, [sketch.text(2), sketch.text(1, .3)])]))]),
|
|
2121
|
-
knobDescriptions: { quoteCount: "Shows your chosen quotes: the first one large, the rest beside it." }
|
|
2122
|
-
}),
|
|
2123
|
-
defineArrangementLook("testimonials-quote-cards", "testimonials", "Quote cards", "columns", ["quoteCount"], {
|
|
2124
|
-
thumbnail: sketch.band([sketch.title(.4), sketch.across(3, [sketch.card([sketch.quote(), sketch.text(3)])])]),
|
|
2125
|
-
knobDescriptions: { quoteCount: "Shows your chosen quotes as cards in a row." },
|
|
2126
|
-
itemRoles: { items: "card" },
|
|
2127
|
-
styleFallback: [id("testimonials-quote-columns")]
|
|
2128
|
-
}),
|
|
2129
|
-
defineArrangementLook("testimonials-quote-columns", "testimonials", "Quotes in open columns", "columns", ["quoteCount"], {
|
|
2130
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.quote(), sketch.text(3)])]),
|
|
2131
|
-
knobDescriptions: { quoteCount: "Shows your chosen quotes in columns." },
|
|
2132
|
-
styleFallback: [id("testimonials-lead-quote")]
|
|
2133
|
-
}),
|
|
2134
|
-
defineArrangementLook("testimonials-one-quote", "testimonials", "One quote", "single", [], {
|
|
2135
|
-
thumbnail: sketch.page([
|
|
2136
|
-
sketch.quote("large"),
|
|
2137
|
-
sketch.title(.8, "small"),
|
|
2138
|
-
sketch.title(.7, "small"),
|
|
2139
|
-
sketch.text(1, .3)
|
|
2140
|
-
], { align: "center" }),
|
|
2141
|
-
styleFallback: [id("testimonials-lead-quote")]
|
|
2142
|
-
}),
|
|
2143
|
-
defineArrangementLook("testimonials-one-at-a-time", "testimonials", "One at a time, with arrows", "slides", ["quoteCount"], {
|
|
2144
|
-
thumbnail: sketch.band([sketch.across(1, [sketch.card([sketch.quote(), sketch.text(3)])], { arrows: true })]),
|
|
2145
|
-
knobDescriptions: { quoteCount: "Shows your chosen quotes, one at a time." },
|
|
2146
|
-
styleFallback: [id("testimonials-one-quote")]
|
|
2147
|
-
}),
|
|
2148
|
-
defineArrangementLook("testimonials-scroll-row", "testimonials", "A row of cards you can scroll", "track", ["quoteCount", "autoAdvance"], {
|
|
2149
|
-
thumbnail: sketch.band([sketch.title(.4), sketch.across(4, [sketch.card([sketch.quote(), sketch.text(2)])], { overflow: true })]),
|
|
2150
|
-
knobDescriptions: { quoteCount: "Shows your chosen quotes in a row you can scroll." },
|
|
2151
|
-
itemRoles: { items: "card" },
|
|
2152
|
-
styleFallback: [id("testimonials-quote-cards")]
|
|
2153
|
-
}),
|
|
2154
|
-
{
|
|
2155
|
-
...defineArrangementLook("event-calendar-month-grid", "event-calendar", "Month grid", "month-grid", [], { thumbnail: sketch.page([sketch.title(.4), sketch.calendar]) }),
|
|
2156
|
-
structure: {
|
|
2157
|
-
kind: "arrangement",
|
|
2158
|
-
byMode: { calendar: "month-grid" },
|
|
2159
|
-
knobs: [],
|
|
2160
|
-
itemRoles: {},
|
|
2161
|
-
whenMissing: [],
|
|
2162
|
-
styleFallback: [],
|
|
2163
|
-
photoUse: "none"
|
|
2164
|
-
}
|
|
2165
|
-
},
|
|
2166
|
-
{
|
|
2167
|
-
...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 })]))]) }),
|
|
2168
|
-
structure: {
|
|
2169
|
-
kind: "arrangement",
|
|
2170
|
-
byMode: { calendar: "month-day" },
|
|
2171
|
-
knobs: [],
|
|
2172
|
-
itemRoles: {},
|
|
2173
|
-
whenMissing: [],
|
|
2174
|
-
styleFallback: [id("event-calendar-month-grid")],
|
|
2175
|
-
photoUse: "none"
|
|
2176
|
-
}
|
|
2177
|
-
},
|
|
2178
|
-
defineArrangementLook("event-details-header", "event-details", "Event header", "event-header", [], {
|
|
2179
|
-
thumbnail: sketch.page([
|
|
2180
|
-
sketch.rule,
|
|
2181
|
-
sketch.title(.7, "large"),
|
|
2182
|
-
sketch.text(1, .5),
|
|
2183
|
-
sketch.middle([sketch.text(1)], [sketch.text(1)], [sketch.button])
|
|
2184
|
-
]),
|
|
2185
|
-
actionSize: "lg",
|
|
2186
|
-
slotRoles: { availability: "highlight" }
|
|
2187
|
-
}),
|
|
2188
|
-
defineArrangementLook("event-details-panel", "event-details", "Details panel", "details-panel", [], {
|
|
2189
|
-
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])]))]),
|
|
2190
|
-
slotRoles: { panel: "card" },
|
|
2191
|
-
styleFallback: [id("event-details-header")]
|
|
2192
|
-
}),
|
|
2193
|
-
defineArrangementLook("intro-statement-beside-text", "intro", "Big statement beside the text", "statement-copy", [], {
|
|
2194
|
-
thumbnail: sketch.page([sketch.row([sketch.title(.95, "large"), sketch.title(.8, "large")], [sketch.text(5)])]),
|
|
2195
|
-
styleFallback: [id("intro-photo-beside-text")]
|
|
2196
|
-
}),
|
|
2197
|
-
defineArrangementLook("intro-photo-beside-text", "intro", "Small photo beside the text", "media-copy", ["imagePosition", "imageShape"], {
|
|
2198
|
-
mediaFrame: introPhotoFrames,
|
|
2199
|
-
thumbnail: sketch.page([sketch.middle(sketch.weight(1, [sketch.photo("medium")]), sketch.weight(2, [sketch.title(.7), sketch.text(3)]))]),
|
|
2200
|
-
whenMissing: [{
|
|
2201
|
-
fact: "photo",
|
|
2202
|
-
look: id("intro-statement-beside-text")
|
|
2203
|
-
}]
|
|
2204
|
-
}),
|
|
2205
|
-
defineArrangementLook("intro-large-photo-beside-text", "intro", "Large photo beside the text", "media-copy", ["imagePosition"], {
|
|
2206
|
-
mediaFrame: {
|
|
2207
|
-
default: naturalPhotoFrame,
|
|
2208
|
-
bySkin: { vista: {
|
|
2209
|
-
kind: "fixed",
|
|
2210
|
-
aspectRatio: "4/5"
|
|
2211
|
-
} }
|
|
2212
|
-
},
|
|
2213
|
-
thumbnail: sketch.page([sketch.row(sketch.weight(1, [sketch.photo("tall")]), sketch.weight(1, [sketch.title(.7), sketch.text(5)]))]),
|
|
2214
|
-
whenMissing: [{
|
|
2215
|
-
fact: "photo",
|
|
2216
|
-
look: id("intro-statement-beside-text")
|
|
2217
|
-
}],
|
|
2218
|
-
styleFallback: [id("intro-photo-beside-text")]
|
|
2219
|
-
}),
|
|
2220
|
-
defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"], {
|
|
2221
|
-
mediaFrame: mediaTextPhotoFrames,
|
|
2222
|
-
thumbnail: sketch.page([sketch.middle([sketch.photo("tall")], [
|
|
2223
|
-
sketch.rule,
|
|
2224
|
-
sketch.title(.8),
|
|
2225
|
-
sketch.text(3)
|
|
2226
|
-
])])
|
|
2227
|
-
}),
|
|
2228
|
-
defineArrangementLook("media-text-photo-to-edge", "media-text", "Photo to the edge", "default", ["imagePosition"], {
|
|
2229
|
-
mediaFrame: {
|
|
2230
|
-
default: {
|
|
2231
|
-
kind: "variable",
|
|
2232
|
-
because: "The photo fills the section height, which depends on the text and viewport.",
|
|
2233
|
-
aspectRatio: "auto"
|
|
2234
|
-
},
|
|
2235
|
-
bySkin: { vista: {
|
|
2236
|
-
kind: "variable",
|
|
2237
|
-
because: "The photo runs across the page at a wide crop, squarer on phones.",
|
|
2238
|
-
aspectRatio: "16/9",
|
|
2239
|
-
mobileAspectRatio: "4/3"
|
|
2240
|
-
} }
|
|
2241
|
-
},
|
|
2242
|
-
thumbnail: sketch.page([sketch.row(sketch.weight(1, [
|
|
2243
|
-
sketch.rule,
|
|
2244
|
-
sketch.title(.8),
|
|
2245
|
-
sketch.text(3)
|
|
2246
|
-
]), sketch.weight(1, [sketch.photo("tall")]))]),
|
|
2247
|
-
styleFallback: [id("media-text-photo-beside-text")]
|
|
2248
|
-
}),
|
|
2249
|
-
defineArrangementLook("media-text-wide-photo-above", "media-text", "Wide photo above the text", "default", [], {
|
|
2250
|
-
mediaFrame: { default: {
|
|
2251
|
-
kind: "variable",
|
|
2252
|
-
because: "The photo is a wide band on desktop and a landscape photo on phones.",
|
|
2253
|
-
aspectRatio: "21/8",
|
|
2254
|
-
mobileAspectRatio: "4/3"
|
|
2255
|
-
} },
|
|
2256
|
-
thumbnail: sketch.page([sketch.photo("short"), sketch.row(sketch.weight(1, [sketch.title(.9, "large")]), sketch.weight(1, [sketch.text(3)]))]),
|
|
2257
|
-
styleFallback: [id("media-text-photo-beside-text")]
|
|
2258
|
-
}),
|
|
2259
|
-
defineArrangementLook("newsletter-signup-one-row", "newsletter-signup", "Signup in one row", "inline", [], {
|
|
2260
|
-
thumbnail: sketch.band([
|
|
2261
|
-
sketch.title(.6),
|
|
2262
|
-
sketch.text(1, .6),
|
|
2263
|
-
sketch.row(sketch.weight(3, [sketch.field]), sketch.weight(1, [sketch.button]))
|
|
2264
|
-
]),
|
|
2265
|
-
slotRoles: { panel: "card" },
|
|
2266
|
-
styleFallback: [id("newsletter-signup-text-beside")]
|
|
2267
|
-
}),
|
|
2268
|
-
defineArrangementLook("newsletter-signup-text-beside", "newsletter-signup", "Text beside the signup", "editorial-split", [], {
|
|
2269
|
-
thumbnail: sketch.band([sketch.middle([sketch.title(.9), sketch.text(2)], [sketch.field, sketch.button])]),
|
|
2270
|
-
slotRoles: { panel: "card" },
|
|
2271
|
-
styleFallback: [id("newsletter-signup-in-arch")]
|
|
2272
|
-
}),
|
|
2273
|
-
defineArrangementLook("form-below-introduction", "form", "Form below its introduction", "default", [], {
|
|
2274
|
-
thumbnail: sketch.page([
|
|
2275
|
-
sketch.rule,
|
|
2276
|
-
sketch.title(.5),
|
|
2277
|
-
sketch.text(2, .7),
|
|
2278
|
-
sketch.panel([
|
|
2279
|
-
sketch.field,
|
|
2280
|
-
sketch.field,
|
|
2281
|
-
sketch.button
|
|
2282
|
-
])
|
|
2283
|
-
]),
|
|
2284
|
-
slotRoles: { panel: "card" },
|
|
2285
|
-
styleFallback: [id("form-beside-introduction-arched-panel")]
|
|
2286
|
-
}),
|
|
2287
|
-
notFor(defineCardListLook("card-list-wide-slides", "Wide cards, one at a time", "slides", [
|
|
2288
|
-
"media",
|
|
2289
|
-
"title",
|
|
2290
|
-
"text",
|
|
2291
|
-
"action"
|
|
2292
|
-
], ["showPhotos"], {
|
|
2293
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(1, [sketch.card([sketch.row([sketch.photo("medium")], [
|
|
2294
|
-
sketch.title(.7, "small"),
|
|
2295
|
-
sketch.text(2),
|
|
2296
|
-
sketch.button
|
|
2297
|
-
])])], { arrows: true })]),
|
|
2298
|
-
itemRoles: { items: "card" },
|
|
2299
|
-
slotRoles: { date: "highlight" },
|
|
2300
|
-
forcedKnobs: { grouping: "one-list" },
|
|
2301
|
-
knobDefaults: {
|
|
2302
|
-
actionStyle: "button",
|
|
2303
|
-
dates: "summary"
|
|
2304
|
-
},
|
|
2305
|
-
styleFallback: [id("card-list-plates"), id("feature-cards-cards")]
|
|
2306
|
-
}), ["block.team-members", "block.appointment-services"]),
|
|
2307
|
-
defineCardListLook("card-list-scroll-row", "A row of cards you can scroll", "track", [
|
|
2308
|
-
"media",
|
|
2309
|
-
"title",
|
|
2310
|
-
"text",
|
|
2311
|
-
"action"
|
|
2312
|
-
], ["showPhotos"], {
|
|
2313
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(4, [sketch.card([
|
|
2314
|
-
sketch.photo("short"),
|
|
2315
|
-
sketch.title(.7, "small"),
|
|
2316
|
-
sketch.text(1)
|
|
2317
|
-
])], { overflow: true })]),
|
|
2318
|
-
itemRoles: { items: "card" },
|
|
2319
|
-
slotRoles: { date: "highlight" },
|
|
2320
|
-
forcedKnobs: { grouping: "one-list" },
|
|
2321
|
-
knobDefaults: {
|
|
2322
|
-
actionStyle: "button",
|
|
2323
|
-
dates: "summary"
|
|
2324
|
-
},
|
|
2325
|
-
styleFallback: [id("feature-cards-cards")]
|
|
2326
|
-
}),
|
|
2327
|
-
defineArrangementLook("body-text-title-beside", "body-text", "Title beside the text", "prose", [], {
|
|
2328
|
-
thumbnail: sketch.page([sketch.row(sketch.weight(2, [
|
|
2329
|
-
sketch.rule,
|
|
2330
|
-
sketch.title(.9),
|
|
2331
|
-
sketch.title(.6)
|
|
2332
|
-
]), sketch.weight(3, [sketch.text(5)]))]),
|
|
2333
|
-
styleFallback: [id("body-text-reading-column")]
|
|
2334
|
-
}),
|
|
2335
|
-
defineArrangementLook("body-text-large-opening", "body-text", "Large opening paragraph", "prose", ["alignment"], {
|
|
2336
|
-
knobDescriptions: { alignment: "Centres a short opening statement. Longer text reads better on the left." },
|
|
2337
|
-
thumbnail: sketch.page([
|
|
2338
|
-
sketch.title(.45),
|
|
2339
|
-
sketch.title(.95, "small"),
|
|
2340
|
-
sketch.title(.8, "small"),
|
|
2341
|
-
sketch.text(2)
|
|
2342
|
-
]),
|
|
2343
|
-
styleFallback: [id("body-text-reading-column")]
|
|
2344
|
-
}),
|
|
2345
|
-
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 })]) }),
|
|
2346
|
-
defineArrangementLook("faq-questions-in-panel", "faq", "Questions in a panel", "default", [], {
|
|
2347
|
-
thumbnail: sketch.page([sketch.panel([sketch.title(.4), sketch.down(4, [sketch.text(1, .7)], { ruled: true })])], { align: "center" }),
|
|
2348
|
-
slotRoles: { layout: "card" },
|
|
2349
|
-
styleFallback: [id("faq-questions-under-title")]
|
|
2350
|
-
}),
|
|
2351
|
-
defineArrangementLook("faq-title-beside-questions", "faq", "Title beside the questions", "two-column", [], {
|
|
2352
|
-
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 })]))]),
|
|
2353
|
-
styleFallback: [id("faq-questions-under-title")]
|
|
2354
|
-
}),
|
|
2355
|
-
defineArrangementLook("faq-questions-two-columns", "faq", "Questions in two columns", "question-columns", [], {
|
|
2356
|
-
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 })])]),
|
|
2357
|
-
styleFallback: [id("faq-questions-under-title")]
|
|
2358
|
-
}),
|
|
2359
|
-
defineArrangementLook("faq-all-answers-showing", "faq", "All answers showing", "open", [], {
|
|
2360
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.down(3, [sketch.title(.5, "small"), sketch.text(2)])]),
|
|
2361
|
-
styleFallback: [id("faq-questions-two-columns")]
|
|
2362
|
-
}),
|
|
2363
|
-
defineArrangementLook("image-gallery-lead-photo", "image-gallery", "One large photo, then smaller ones", "tiles", ["blackAndWhite"], {
|
|
2364
|
-
mediaFrame: {
|
|
2365
|
-
default: {
|
|
2366
|
-
kind: "variable",
|
|
2367
|
-
because: "The lead fills two rows; on phones the lead and a trailing full-width tile are landscape.",
|
|
2368
|
-
aspectRatio: "1/1",
|
|
2369
|
-
firstAspectRatio: "auto",
|
|
2370
|
-
mobileAspectRatio: "4/3"
|
|
2371
|
-
},
|
|
2372
|
-
bySkin: { vista: {
|
|
2373
|
-
kind: "variable",
|
|
2374
|
-
because: "The lead is a panorama across the page and the rest are tall crops at one height.",
|
|
2375
|
-
aspectRatio: "4/5",
|
|
2376
|
-
firstAspectRatio: "21/9",
|
|
2377
|
-
mobileAspectRatio: "3/2"
|
|
2378
|
-
} }
|
|
2379
|
-
},
|
|
2380
|
-
thumbnail: sketch.page([sketch.row(sketch.weight(2, [sketch.photo("tall")]), sketch.weight(1, [sketch.photo("short"), sketch.photo("short")]))]),
|
|
2381
|
-
styleFallback: [id("image-gallery-square-tiles")]
|
|
2382
|
-
}),
|
|
2383
|
-
defineArrangementLook("image-gallery-captions-under", "image-gallery", "Photos with captions underneath", "tiles", ["blackAndWhite"], {
|
|
2384
|
-
mediaFrame: {
|
|
2385
|
-
default: {
|
|
2386
|
-
kind: "fixed",
|
|
2387
|
-
aspectRatio: "4/3"
|
|
2388
|
-
},
|
|
2389
|
-
bySkin: { loom: {
|
|
2390
|
-
kind: "fixed",
|
|
2391
|
-
aspectRatio: "1/1"
|
|
2392
|
-
} }
|
|
2393
|
-
},
|
|
2394
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("medium"), sketch.text(1, .8)])]),
|
|
2395
|
-
styleFallback: [id("image-gallery-arched-captions"), id("image-gallery-square-tiles")]
|
|
2396
|
-
}),
|
|
2397
|
-
defineArrangementLook("image-gallery-photo-band", "image-gallery", "One photo across the page", "tiles", ["blackAndWhite"], {
|
|
2398
|
-
mediaFrame: {
|
|
2399
|
-
default: {
|
|
2400
|
-
kind: "fixed",
|
|
2401
|
-
aspectRatio: "1/1"
|
|
2402
|
-
},
|
|
2403
|
-
bySkin: {
|
|
2404
|
-
orbit: {
|
|
2405
|
-
kind: "variable",
|
|
2406
|
-
because: "The full-width band has a clamped height and curved edges.",
|
|
2407
|
-
aspectRatio: "auto",
|
|
2408
|
-
height: "clamp(18rem, 38cqi, 36rem)"
|
|
2409
|
-
},
|
|
2410
|
-
vista: {
|
|
2411
|
-
kind: "variable",
|
|
2412
|
-
because: "A thin slice across the page, deeper on phones.",
|
|
2413
|
-
aspectRatio: "4/1",
|
|
2414
|
-
mobileAspectRatio: "2/1"
|
|
2415
|
-
}
|
|
2416
|
-
}
|
|
2417
|
-
},
|
|
2418
|
-
thumbnail: sketch.band([sketch.photo("short")]),
|
|
2419
|
-
styleFallback: [id("image-gallery-square-tiles")]
|
|
2420
|
-
}),
|
|
2421
|
-
defineArrangementLook("image-gallery-moving-row", "image-gallery", "A moving row of photos", "moving-row", ["blackAndWhite"], {
|
|
2422
|
-
mediaFrame: {
|
|
2423
|
-
default: {
|
|
2424
|
-
kind: "fixed",
|
|
2425
|
-
aspectRatio: "1/1"
|
|
2426
|
-
},
|
|
2427
|
-
bySkin: { orbit: {
|
|
2428
|
-
kind: "fixed",
|
|
2429
|
-
aspectRatio: "1/1",
|
|
2430
|
-
borderRadius: "50%"
|
|
2431
|
-
} }
|
|
2432
|
-
},
|
|
2433
|
-
thumbnail: sketch.band([sketch.across(5, [sketch.photo("short")], { overflow: true })]),
|
|
2434
|
-
styleFallback: [id("image-gallery-square-tiles")]
|
|
2435
|
-
}),
|
|
2436
|
-
defineArrangementLook("video-grid-columns", "video-grid", "Videos in columns", "default", [], { thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("short")])], { align: "center" }) }),
|
|
2437
|
-
defineArrangementLook("video-grid-tall-tiles", "video-grid", "Tall videos side by side", "tall-tiles", [], {
|
|
2438
|
-
styleFallback: [id("video-grid-columns")],
|
|
2439
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.photo("tall")])], { align: "center" })
|
|
2440
|
-
}),
|
|
2441
|
-
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)]))])]))]) }),
|
|
2442
|
-
defineArrangementLook("list-two-columns", "list", "Points in two columns", "list-columns", [], {
|
|
2443
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.row([sketch.down(3, [sketch.text(1, .8)])], [sketch.down(3, [sketch.text(1, .8)])])]),
|
|
2444
|
-
styleFallback: [id("list-ticked-points")]
|
|
2445
|
-
}),
|
|
2446
|
-
defineArrangementLook("list-headed-cards", "list", "Headed cards", "list-cards", [], {
|
|
2447
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(2, [sketch.card([sketch.title(.5, "small"), sketch.down(3, [sketch.text(1, .8)])])])], { align: "center" }),
|
|
2448
|
-
itemRoles: { items: "card" },
|
|
2449
|
-
styleFallback: [id("list-two-columns")]
|
|
2450
|
-
}),
|
|
2451
|
-
defineArrangementLook("cta-centred", "cta-full", "Centred, buttons below", "default", [], { thumbnail: sketch.band([
|
|
2452
|
-
sketch.title(.6),
|
|
2453
|
-
sketch.text(1, .5),
|
|
2454
|
-
sketch.middle([sketch.button], [sketch.link])
|
|
2455
|
-
], { align: "center" }) }),
|
|
2456
|
-
defineArrangementLook("cta-title-beside-buttons", "cta-full", "Title beside the buttons", "default", [], {
|
|
2457
|
-
thumbnail: sketch.band([sketch.middle(sketch.weight(3, [sketch.title(.9)]), sketch.weight(1, [sketch.button]))]),
|
|
2458
|
-
styleFallback: [id("cta-centred")]
|
|
2459
|
-
}),
|
|
2460
|
-
defineArrangementLook("cta-line-beside-buttons", "cta-full", "One line beside the buttons", "default", [], {
|
|
2461
|
-
thumbnail: sketch.band([sketch.middle(sketch.weight(2, [sketch.text(1)]), sketch.weight(1, [sketch.button]))], { align: "center" }),
|
|
2462
|
-
styleFallback: [id("cta-title-beside-buttons")]
|
|
2463
|
-
}),
|
|
2464
|
-
defineArrangementLook("cta-figure-beside-offer", "cta-full", "Big figure beside the offer", "figure", [], {
|
|
2465
|
-
thumbnail: sketch.band([sketch.middle(sketch.weight(1, [sketch.title(.8, "large")]), sketch.weight(2, [
|
|
2466
|
-
sketch.title(.7, "small"),
|
|
2467
|
-
sketch.text(2),
|
|
2468
|
-
sketch.button
|
|
2469
|
-
]))]),
|
|
2470
|
-
whenMissing: [{
|
|
2471
|
-
fact: "figure",
|
|
2472
|
-
look: id("cta-centred")
|
|
2473
|
-
}],
|
|
2474
|
-
styleFallback: [id("cta-centred")]
|
|
2475
|
-
}),
|
|
2476
|
-
defineArrangementLook("cta-text-in-panel", "cta-full", "Text in a panel", "default", [], {
|
|
2477
|
-
thumbnail: sketch.page([sketch.panel([
|
|
2478
|
-
sketch.title(.5),
|
|
2479
|
-
sketch.text(2),
|
|
2480
|
-
sketch.button
|
|
2481
|
-
])]),
|
|
2482
|
-
slotRoles: { copy: "card" },
|
|
2483
|
-
styleFallback: [id("cta-centred")]
|
|
2484
|
-
}),
|
|
2485
|
-
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)])]) }),
|
|
2486
|
-
defineArrangementLook("location-map-beside-address", "location-map", "Map beside the address", "map-and-details", [], {
|
|
2487
|
-
thumbnail: sketch.page([sketch.middle(sketch.weight(2, [sketch.map]), sketch.weight(1, [sketch.title(.7, "small"), sketch.text(3)]))]),
|
|
2488
|
-
styleFallback: [id("location-map-above-details")]
|
|
2489
|
-
}),
|
|
2490
|
-
defineArrangementLook("location-map-address-over-wide-map", "location-map", "Address over a wide map", "map-and-details", [], {
|
|
2491
|
-
thumbnail: sketch.page([sketch.over("map", [sketch.title(.7, "small"), sketch.text(3)], { panel: true })]),
|
|
2492
|
-
slotRoles: { panel: "card" },
|
|
2493
|
-
styleFallback: [id("location-map-beside-address")]
|
|
2494
|
-
}),
|
|
2495
|
-
defineArrangementLook("location-map-entrance-photo", "location-map", "Entrance photo beside the details", "photo-and-details", [], {
|
|
2496
|
-
thumbnail: sketch.page([sketch.middle([sketch.photo("tall")], [sketch.title(.7, "small"), sketch.text(3)])]),
|
|
2497
|
-
whenMissing: [{
|
|
2498
|
-
fact: "entrance",
|
|
2499
|
-
look: id("location-map-beside-address")
|
|
2500
|
-
}],
|
|
2501
|
-
styleFallback: [id("location-map-beside-address")]
|
|
2502
|
-
}),
|
|
2503
|
-
defineArrangementLook("gifting-panel", "gifting", "Gift cards in a panel", "default", [], {
|
|
2504
|
-
thumbnail: sketch.page([sketch.panel([sketch.middle([sketch.title(.7), sketch.text(1, .7)], [sketch.row([sketch.button], [sketch.button])])])]),
|
|
2505
|
-
slotRoles: { panel: "card" }
|
|
2506
|
-
}),
|
|
2507
|
-
{
|
|
2508
|
-
...defineCardListLook("team-members-tall-portraits", "Tall portraits in a row", "cards", [
|
|
2509
|
-
"media",
|
|
2510
|
-
"title",
|
|
2511
|
-
"text",
|
|
2512
|
-
"facts",
|
|
2513
|
-
"chips",
|
|
2514
|
-
"action"
|
|
2515
|
-
], ["showPhotos"], {
|
|
2516
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(4, [
|
|
2517
|
-
sketch.photo("tall"),
|
|
2518
|
-
sketch.title(.7, "small"),
|
|
2519
|
-
sketch.text(1, .6)
|
|
2520
|
-
])]),
|
|
2521
|
-
knobDefaults: { actionStyle: "link" },
|
|
2522
|
-
styleFallback: [id("team-members-ruled-names")]
|
|
2523
|
-
}),
|
|
2524
|
-
blockKinds: ["block.team-members"]
|
|
2525
|
-
},
|
|
2526
|
-
{
|
|
2527
|
-
...defineCardListLook("team-members-portrait-bio", "Portrait beside a longer bio", "stack", [
|
|
2528
|
-
"media",
|
|
2529
|
-
"title",
|
|
2530
|
-
"text",
|
|
2531
|
-
"facts",
|
|
2532
|
-
"chips",
|
|
2533
|
-
"action"
|
|
2534
|
-
], ["showPhotos"], {
|
|
2535
|
-
thumbnail: sketch.page([sketch.down(2, [sketch.row(sketch.weight(1, [sketch.photo("medium")]), sketch.weight(3, [sketch.title(.5, "small"), sketch.text(2)]))])]),
|
|
2536
|
-
teamBiography: "profile",
|
|
2537
|
-
knobDefaults: { actionStyle: "link" },
|
|
2538
|
-
styleFallback: [id("team-members-tall-portraits")]
|
|
2539
|
-
}),
|
|
2540
|
-
blockKinds: ["block.team-members"]
|
|
2541
|
-
},
|
|
2542
|
-
{
|
|
2543
|
-
...defineCardListLook("team-members-person-rows", "One person per row, with facts", "stack", [
|
|
2544
|
-
"media",
|
|
2545
|
-
"title",
|
|
2546
|
-
"text",
|
|
2547
|
-
"facts"
|
|
2548
|
-
], ["showPhotos"], {
|
|
2549
|
-
thumbnail: sketch.page([sketch.down(2, [sketch.row(sketch.weight(2, [sketch.photo("medium", "circle"), sketch.card([sketch.text(3, .7)])]), sketch.weight(3, [
|
|
2550
|
-
sketch.title(.4, "small"),
|
|
2551
|
-
sketch.title(.6),
|
|
2552
|
-
sketch.text(4)
|
|
2553
|
-
]))])]),
|
|
2554
|
-
teamBiography: "profile",
|
|
2555
|
-
teamFacts: "person",
|
|
2556
|
-
styleFallback: [id("team-members-portrait-bio")]
|
|
2557
|
-
}),
|
|
2558
|
-
blockKinds: ["block.team-members"]
|
|
2559
|
-
},
|
|
2560
|
-
{
|
|
2561
|
-
...defineCardListLook("team-members-ruled-names", "Names in a ruled list", "index", [
|
|
2562
|
-
"title",
|
|
2563
|
-
"text",
|
|
2564
|
-
"facts",
|
|
2565
|
-
"chips",
|
|
2566
|
-
"action"
|
|
2567
|
-
], [], {
|
|
2568
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.down(4, [sketch.row([sketch.title(.7, "small")], [sketch.text(1, .8)])], { ruled: true })]),
|
|
2569
|
-
forcedKnobs: {
|
|
2570
|
-
showPhotos: "false",
|
|
2571
|
-
cardMarker: "none"
|
|
2572
|
-
},
|
|
2573
|
-
knobDefaults: { actionStyle: "link" },
|
|
2574
|
-
styleFallback: [id("feature-cards-cards")]
|
|
2575
|
-
}),
|
|
2576
|
-
blockKinds: ["block.team-members"]
|
|
2577
|
-
},
|
|
2578
|
-
defineCardListLook("shop-price-cards", "Price cards", "cards", [
|
|
2579
|
-
"title",
|
|
2580
|
-
"text",
|
|
2581
|
-
"facts",
|
|
2582
|
-
"price",
|
|
2583
|
-
"action"
|
|
2584
|
-
], [], {
|
|
2585
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([
|
|
2586
|
-
sketch.title(.6, "small"),
|
|
2587
|
-
sketch.price,
|
|
2588
|
-
sketch.text(2),
|
|
2589
|
-
sketch.button
|
|
2590
|
-
])])]),
|
|
2591
|
-
itemRoles: { items: "card" },
|
|
2592
|
-
styleFallback: []
|
|
2593
|
-
}),
|
|
2594
|
-
defineCardListLook("shop-price-cards-featured", "Price cards, one featured", "cards", [
|
|
2595
|
-
"title",
|
|
2596
|
-
"text",
|
|
2597
|
-
"facts",
|
|
2598
|
-
"price",
|
|
2599
|
-
"action"
|
|
2600
|
-
], [], {
|
|
2601
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.row([sketch.card([
|
|
2602
|
-
sketch.title(.6, "small"),
|
|
2603
|
-
sketch.price,
|
|
2604
|
-
sketch.text(2),
|
|
2605
|
-
sketch.button
|
|
2606
|
-
])], [sketch.featured([
|
|
2607
|
-
sketch.title(.6, "small"),
|
|
2608
|
-
sketch.price,
|
|
2609
|
-
sketch.text(2),
|
|
2610
|
-
sketch.button
|
|
2611
|
-
])], [sketch.card([
|
|
2612
|
-
sketch.title(.6, "small"),
|
|
2613
|
-
sketch.price,
|
|
2614
|
-
sketch.text(2),
|
|
2615
|
-
sketch.button
|
|
2616
|
-
])])]),
|
|
2617
|
-
itemRoles: {
|
|
2618
|
-
items: "card",
|
|
2619
|
-
featured: "statement"
|
|
2620
|
-
},
|
|
2621
|
-
whenMissing: [{
|
|
2622
|
-
fact: "featured",
|
|
2623
|
-
look: id("shop-price-cards")
|
|
2624
|
-
}],
|
|
2625
|
-
styleFallback: [id("shop-price-cards")]
|
|
2626
|
-
}),
|
|
2627
|
-
defineCardListLook("shop-ruled-prices", "Prices in a ruled list", "index", [
|
|
2628
|
-
"title",
|
|
2629
|
-
"text",
|
|
2630
|
-
"facts",
|
|
2631
|
-
"price",
|
|
2632
|
-
"action"
|
|
2633
|
-
], [], {
|
|
2634
|
-
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 })]),
|
|
2635
|
-
forcedKnobs: { cardMarker: "none" },
|
|
2636
|
-
knobDefaults: { actionStyle: "link" },
|
|
2637
|
-
styleFallback: [id("shop-price-cards")]
|
|
2638
|
-
}),
|
|
2639
|
-
{
|
|
2640
|
-
...defineCardListLook("card-list-photos-on-top", "Photos on top, three across", "cards", [
|
|
2641
|
-
"media",
|
|
2642
|
-
"title",
|
|
2643
|
-
"text",
|
|
2644
|
-
"facts",
|
|
2645
|
-
"action"
|
|
2646
|
-
], ["showPhotos"], {
|
|
2647
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [
|
|
2648
|
-
sketch.photo("tall"),
|
|
2649
|
-
sketch.title(.7, "small"),
|
|
2650
|
-
sketch.text(1)
|
|
2651
|
-
])]),
|
|
2652
|
-
knobDefaults: {
|
|
2653
|
-
actionStyle: "link",
|
|
2654
|
-
dates: "summary"
|
|
2655
|
-
},
|
|
2656
|
-
styleFallback: [id("feature-cards-cards")]
|
|
2657
|
-
}),
|
|
2658
|
-
blockKinds: ["block.offerings-preview", "block.appointment-services"]
|
|
2659
|
-
},
|
|
2660
|
-
{
|
|
2661
|
-
...defineCardListLook("offerings-next-cards", "Next of each type, round photo", "next-cards", [
|
|
2662
|
-
"media",
|
|
2663
|
-
"title",
|
|
2664
|
-
"facts",
|
|
2665
|
-
"schedule",
|
|
2666
|
-
"action"
|
|
2667
|
-
], ["showPhotos"], {
|
|
2668
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.across(3, [sketch.card([
|
|
2669
|
-
sketch.photo("short", "circle"),
|
|
2670
|
-
sketch.title(.7, "small"),
|
|
2671
|
-
sketch.text(1),
|
|
2672
|
-
sketch.button
|
|
2673
|
-
])])]),
|
|
2674
|
-
knobDefaults: { actionStyle: "button" },
|
|
2675
|
-
forcedKnobs: {
|
|
2676
|
-
dates: "summary",
|
|
2677
|
-
grouping: "by-kind"
|
|
2678
|
-
},
|
|
2679
|
-
styleFallback: [id("card-list-photos-on-top")]
|
|
2680
|
-
}),
|
|
2681
|
-
blockKinds: ["block.offerings-preview"]
|
|
2682
|
-
},
|
|
2683
|
-
{
|
|
2684
|
-
...defineCardListLook("offerings-course-groups", "Runs grouped under their course", "course-groups", [
|
|
2685
|
-
"title",
|
|
2686
|
-
"schedule",
|
|
2687
|
-
"availability"
|
|
2688
|
-
], ["showPhotos"], {
|
|
2689
|
-
thumbnail: sketch.page([sketch.title(.4), sketch.down(2, [sketch.card([
|
|
2690
|
-
sketch.photo("short"),
|
|
2691
|
-
sketch.title(.7, "small"),
|
|
2692
|
-
sketch.text(2),
|
|
2693
|
-
sketch.link
|
|
2694
|
-
])])]),
|
|
2695
|
-
itemRoles: { items: "card" },
|
|
2696
|
-
forcedKnobs: { grouping: "by-kind" },
|
|
2697
|
-
styleFallback: [id("card-list-photos-on-top")]
|
|
2698
|
-
}),
|
|
2699
|
-
blockKinds: ["block.offerings-preview"]
|
|
2700
|
-
},
|
|
2701
|
-
{
|
|
2702
|
-
...defineCardListLook("offerings-type-columns", "A column per type, with dates", "type-columns", [
|
|
2703
|
-
"date-stamp",
|
|
2704
|
-
"title",
|
|
2705
|
-
"action"
|
|
2706
|
-
], [], {
|
|
2707
|
-
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 })])])]),
|
|
2708
|
-
slotRoles: { panel: "card" },
|
|
2709
|
-
forcedKnobs: { grouping: "by-kind" },
|
|
2710
|
-
knobDefaults: { dates: "summary" },
|
|
2711
|
-
styleFallback: [id("feature-cards-index")]
|
|
2712
|
-
}),
|
|
2713
|
-
blockKinds: ["block.offerings-preview"]
|
|
2714
|
-
}
|
|
2715
|
-
];
|
|
2716
|
-
//#endregion
|
|
2717
|
-
//#region ../theme-core/src/site-styles/lookMediaFrame.ts
|
|
2718
|
-
function resolveLookMediaFrame(frames, skin, knobs = {}) {
|
|
2719
|
-
if (!frames) return void 0;
|
|
2720
|
-
const base = (skin ? frames.bySkin?.[skin] : void 0) ?? frames.default;
|
|
2721
|
-
return (frames.byKnob ?? []).reduce((frame, rule) => {
|
|
2722
|
-
const value = knobs[rule.knob];
|
|
2723
|
-
const choice = typeof value === "string" ? rule.values[value] : void 0;
|
|
2724
|
-
if (choice === void 0) return frame;
|
|
2725
|
-
return choice.kind === "corners" ? {
|
|
2726
|
-
...frame,
|
|
2727
|
-
borderRadius: choice.borderRadius
|
|
2728
|
-
} : choice;
|
|
2729
|
-
}, base);
|
|
2730
|
-
}
|
|
2731
|
-
function frameVars(frame) {
|
|
2732
|
-
if (frame.kind === "corners") return `--rb-look-media-radius: ${frame.borderRadius};`;
|
|
2733
|
-
return [
|
|
2734
|
-
`--rb-look-media-ratio: ${frame.aspectRatio};`,
|
|
2735
|
-
...frame.borderRadius ? [`--rb-look-media-radius: ${frame.borderRadius};`] : [],
|
|
2736
|
-
...frame.kind === "variable" && frame.firstAspectRatio ? [`--rb-look-media-first-ratio: ${frame.firstAspectRatio};`] : [],
|
|
2737
|
-
...frame.kind === "variable" && frame.height ? [`--rb-look-media-height: ${frame.height};`] : [],
|
|
2738
|
-
...frame.kind === "variable" && frame.mobileAspectRatio ? [`--rb-look-media-mobile-ratio: ${frame.mobileAspectRatio};`] : []
|
|
2739
|
-
].join(" ");
|
|
2740
|
-
}
|
|
2741
|
-
/** The same declaration supplies the editor frame and the CSS's crop values. */
|
|
2742
|
-
function generateLookMediaFrameCss(themeId) {
|
|
2743
|
-
return blockAppearancePresets.flatMap((look) => {
|
|
2744
|
-
const frames = look.structure.kind === "arrangement" ? look.structure.mediaFrame : void 0;
|
|
2745
|
-
if (!frames) return [];
|
|
2746
|
-
const scope = `:where([data-theme-scope="${themeId}"])`;
|
|
2747
|
-
const selector = `[data-look="${look.id}"]`;
|
|
2748
|
-
return [
|
|
2749
|
-
`${scope} ${selector} { ${frameVars(frames.default)} }`,
|
|
2750
|
-
...Object.entries(frames.bySkin ?? {}).map(([skin, frame]) => `${scope} :is([data-skin="${skin}"], [data-skin="${skin}"] *)${selector} { ${frameVars(frame)} }`),
|
|
2751
|
-
...(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)} }`))
|
|
2752
|
-
];
|
|
2753
|
-
}).join("\n");
|
|
2754
|
-
}
|
|
2755
|
-
//#endregion
|
|
2756
|
-
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 };
|