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