@riverbankcms/sdk 0.160.0 → 0.162.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/dist/_dts/{BlocksIslandsHydrator-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
- package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
- package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
- package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
- package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
- package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
- package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
- package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
- package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
- package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
- package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
- package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
- package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
- package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
- package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
- package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
- package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
- package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
- package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-DWbrtKf8.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 +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/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 +2 -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 +1 -1
- 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/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- 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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
- package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
- package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
- package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
- package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
- package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
- package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
- package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
- package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
- package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
- package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
- package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
- package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
- package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
- package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
- package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
- package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
- package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
- package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
- package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
- package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
- package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
- package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
- package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
- package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
- package/dist/client/client.mjs +37 -71
- package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
- package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
- package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
- package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
- package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
- package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
- package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
- package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
- package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
- package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
- package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
- package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
- package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
- package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
- package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
- package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
- package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
- package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
- package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
- package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
- package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
- package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
- package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
- package/dist/client/rendering/client.mjs +28 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +18 -9
- package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
- package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
- package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
- package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
- package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
- package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
- package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
- package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
- package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
- package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
- package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
- package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
- package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
- package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
- package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
- package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
- package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
- package/dist/preview-next/before-render.mjs +7 -6
- package/dist/preview-next/chrome.css +2 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
- package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
- package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
- package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
- package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
- package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
- package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
- package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
- package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
- package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
- package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
- package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
- package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
- package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
- package/dist/preview-next/editor-base.css +2 -2
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +7 -3
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
- package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
- package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
- package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
- package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
- package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
- package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
- package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
- package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
- package/dist/server/server.mjs +3 -3
- package/dist/server/site-styles-DrkprQPL.mjs +755 -0
- package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
- package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
- package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
- package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
- package/dist/styles/index.css +1029 -41
- package/package.json +1 -1
- package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
- package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
- package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
- package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
- package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
- package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
- package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
- package/dist/server/loadPage-DUPP51C-.mjs +0 -2
- package/dist/server/media-CcHwZkdJ.mjs +0 -243
package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as defaultButtonStyleSelectionFor, $t as makeBoundaryId, At as arrangementModes, Bt as asPageFlowPresetId, Ft as asDesignBlockId, Gn as surfaceForegroundValue, Ht as assertNever, It as asDesignBoundaryId, K as cardRoleValues, Pt as asBoundaryOptionId, Qt as isArrangementMode, Rt as asDesignSystemTemplateId, Sn as rgbColorValue, Un as surfaceForegroundInputFromResolved, Vt as asSiteStyleId, Wt as defineExactCatalog, X as headerInteractionQuietPalette, Yt as flushPanelFrame, _n as TokenResolver, _t as siteChromeBackgroundOverrideOwner, ar as paletteModeSchema, at as NAV_LINK_LETTER_SPACING_MAP, cr as requirePaletteColorsFromEntries, ct as NAV_LINK_TEXT_SIZE_MAP, dn as resolveSurface, dr as parseThemeColorToken, dt as navLinkOwnsUnderline, en as noHeadingDecoration, et as buttonStyleSelectionSchema, ft as navEffectPolicy, gn as planForegroundHover, in as requireNonEmptyReadonlyArray, ir as paletteColorsSchema, it as NAV_LINK_BORDER_RADIUS_MAP, jt as asAppearancePresetId, lt as navLinkHoverColorCandidate, nn as panelFrame, nt as generateBaseInteractiveCSS, or as paletteValueKey, ot as NAV_LINK_PADDING_MAP, qn as expandPalette, rn as plainFrame, rr as hexColorSchema, rt as generateInteractiveChildInheritanceCSS, sr as paletteValueKeySchema, st as NAV_LINK_PADDING_X_MAP, tr as featuresFromHex, tt as generateEffectsCSS, ur as unsafeAsOpaqueButtonColourToken, ut as navLinkOwnsHoverForeground, yt as themeV2RuntimeStyleFieldNames, zt as asLayoutVariantKey } from "./schema-BiqpDRwB.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region ../theme-core/src/site-styles/appearancePresetTypes.ts
|
|
4
4
|
/** Block supply is capability, never a second Look catalogue. */
|
|
@@ -76,7 +76,7 @@ function isArrangementAppearancePreset(preset) {
|
|
|
76
76
|
return preset.structure.kind === "arrangement";
|
|
77
77
|
}
|
|
78
78
|
function lookModes(look) {
|
|
79
|
-
return Object.keys(look.structure.byMode).map((mode) => mode
|
|
79
|
+
return Object.keys(look.structure.byMode).map((mode) => isArrangementMode(mode) ? mode : null);
|
|
80
80
|
}
|
|
81
81
|
function cardListKnobDefaults(block, arrangement, knobs, defaults) {
|
|
82
82
|
if (!cardListKnobBlocks.some((kind) => kind === `block.${block}`)) return {};
|
|
@@ -109,7 +109,8 @@ const arrangementLookTargets = {
|
|
|
109
109
|
form: "contact-form",
|
|
110
110
|
"body-text": "body-text",
|
|
111
111
|
faq: "faq",
|
|
112
|
-
"cta-full": "cta"
|
|
112
|
+
"cta-full": "cta",
|
|
113
|
+
"location-map": "location"
|
|
113
114
|
};
|
|
114
115
|
function defineArrangementLook(id, block, name, arrangement, knobs, input = {}) {
|
|
115
116
|
const mode = block === "event-calendar" ? "list" : null;
|
|
@@ -260,18 +261,18 @@ function defineBlockAppearancePreset(preset) {
|
|
|
260
261
|
*/
|
|
261
262
|
const brandScrimOptionGroups = [{
|
|
262
263
|
id: "image-surface-treatment",
|
|
263
|
-
label: "
|
|
264
|
+
label: "Photo tint",
|
|
264
265
|
defaultOptionId: "brand-scrim-primary",
|
|
265
266
|
options: [{
|
|
266
267
|
id: "brand-scrim-primary",
|
|
267
|
-
label: "Brand
|
|
268
|
+
label: "Brand tint",
|
|
268
269
|
designPatch: { imageSurfaceTreatment: {
|
|
269
270
|
kind: "brand-scrim",
|
|
270
271
|
token: "primary"
|
|
271
272
|
} }
|
|
272
273
|
}, {
|
|
273
274
|
id: "neutral-scrim",
|
|
274
|
-
label: "
|
|
275
|
+
label: "Dark tint",
|
|
275
276
|
designPatch: { imageSurfaceTreatment: { kind: "neutral-scrim" } }
|
|
276
277
|
}]
|
|
277
278
|
}];
|
|
@@ -290,12 +291,13 @@ const id$1 = asAppearancePresetId;
|
|
|
290
291
|
const appearancePresets = [
|
|
291
292
|
defineBlockAppearancePreset({
|
|
292
293
|
structure: {
|
|
293
|
-
kind: "
|
|
294
|
+
kind: "recipe",
|
|
294
295
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
295
296
|
},
|
|
296
297
|
id: "hero-immersive-image",
|
|
298
|
+
carry: { kind: "by-layout" },
|
|
297
299
|
target: "hero",
|
|
298
|
-
label: "
|
|
300
|
+
label: "Photo behind centred text",
|
|
299
301
|
blockKinds: ["block.hero"],
|
|
300
302
|
layoutPatches: [{
|
|
301
303
|
constraints: { layoutVariantKeys: ["micro"] },
|
|
@@ -315,27 +317,28 @@ const appearancePresets = [
|
|
|
315
317
|
}),
|
|
316
318
|
defineBlockAppearancePreset({
|
|
317
319
|
structure: {
|
|
318
|
-
kind: "
|
|
320
|
+
kind: "recipe",
|
|
319
321
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
320
322
|
},
|
|
321
323
|
id: "hero-bottom-left-panel",
|
|
324
|
+
carry: { kind: "by-layout" },
|
|
322
325
|
target: "hero",
|
|
323
|
-
label: "
|
|
326
|
+
label: "Text panel, bottom left of photo",
|
|
324
327
|
blockKinds: ["block.hero"],
|
|
325
328
|
optionGroups: [{
|
|
326
329
|
id: "image-surface-treatment",
|
|
327
|
-
label: "
|
|
330
|
+
label: "Photo tint",
|
|
328
331
|
defaultOptionId: "neutral-scrim",
|
|
329
332
|
options: [{
|
|
330
333
|
id: "neutral-scrim",
|
|
331
|
-
label: "
|
|
334
|
+
label: "Dark tint",
|
|
332
335
|
designPatch: { imageSurfaceTreatment: {
|
|
333
336
|
kind: "neutral-scrim",
|
|
334
337
|
intensity: "balanced"
|
|
335
338
|
} }
|
|
336
339
|
}, {
|
|
337
340
|
id: "brand-scrim-primary",
|
|
338
|
-
label: "Brand
|
|
341
|
+
label: "Brand tint",
|
|
339
342
|
designPatch: { imageSurfaceTreatment: {
|
|
340
343
|
kind: "brand-scrim",
|
|
341
344
|
token: "primary",
|
|
@@ -364,12 +367,13 @@ const appearancePresets = [
|
|
|
364
367
|
}),
|
|
365
368
|
defineBlockAppearancePreset({
|
|
366
369
|
structure: {
|
|
367
|
-
kind: "
|
|
370
|
+
kind: "recipe",
|
|
368
371
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
369
372
|
},
|
|
370
373
|
id: "hero-poster-image",
|
|
374
|
+
carry: { kind: "by-layout" },
|
|
371
375
|
target: "hero",
|
|
372
|
-
label: "
|
|
376
|
+
label: "Strong brand tint, big title",
|
|
373
377
|
blockKinds: ["block.hero"],
|
|
374
378
|
layoutPatches: [{
|
|
375
379
|
constraints: { layoutVariantKeys: ["micro"] },
|
|
@@ -393,12 +397,13 @@ const appearancePresets = [
|
|
|
393
397
|
}),
|
|
394
398
|
defineBlockAppearancePreset({
|
|
395
399
|
structure: {
|
|
396
|
-
kind: "
|
|
400
|
+
kind: "recipe",
|
|
397
401
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
398
402
|
},
|
|
399
403
|
id: "hero-brand-scrim",
|
|
404
|
+
carry: { kind: "by-layout" },
|
|
400
405
|
target: "hero",
|
|
401
|
-
label: "
|
|
406
|
+
label: "Photo with a brand tint",
|
|
402
407
|
blockKinds: ["block.hero"],
|
|
403
408
|
optionGroups: brandScrimOptionGroups,
|
|
404
409
|
layoutPatches: microBannerLayoutPatches,
|
|
@@ -416,12 +421,13 @@ const appearancePresets = [
|
|
|
416
421
|
}),
|
|
417
422
|
defineBlockAppearancePreset({
|
|
418
423
|
structure: {
|
|
419
|
-
kind: "
|
|
424
|
+
kind: "recipe",
|
|
420
425
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
421
426
|
},
|
|
422
427
|
id: "hero-brand-scrim-fixed-frame",
|
|
428
|
+
carry: { kind: "by-layout" },
|
|
423
429
|
target: "hero",
|
|
424
|
-
label: "Fixed
|
|
430
|
+
label: "Fixed photo with a brand tint",
|
|
425
431
|
blockKinds: ["block.hero"],
|
|
426
432
|
optionGroups: brandScrimOptionGroups,
|
|
427
433
|
layoutPatches: microBannerLayoutPatches,
|
|
@@ -441,12 +447,16 @@ const appearancePresets = [
|
|
|
441
447
|
}),
|
|
442
448
|
defineBlockAppearancePreset({
|
|
443
449
|
structure: {
|
|
444
|
-
kind: "
|
|
450
|
+
kind: "recipe",
|
|
445
451
|
constraints: { layoutFamilies: ["centered", "compact"] }
|
|
446
452
|
},
|
|
447
453
|
id: "hero-brand-depth-expressive",
|
|
454
|
+
carry: {
|
|
455
|
+
kind: "look",
|
|
456
|
+
look: "hero-page-head"
|
|
457
|
+
},
|
|
448
458
|
target: "hero",
|
|
449
|
-
label: "
|
|
459
|
+
label: "Brand colour, no photo",
|
|
450
460
|
blockKinds: ["block.hero"],
|
|
451
461
|
design: {
|
|
452
462
|
sectionSurface: "brand-depth-band",
|
|
@@ -457,10 +467,24 @@ const appearancePresets = [
|
|
|
457
467
|
}
|
|
458
468
|
}),
|
|
459
469
|
defineBlockAppearancePreset({
|
|
460
|
-
structure: { kind: "
|
|
470
|
+
structure: { kind: "recipe" },
|
|
461
471
|
id: "hero-contained-intro",
|
|
472
|
+
carry: {
|
|
473
|
+
kind: "look",
|
|
474
|
+
look: "hero-page-head",
|
|
475
|
+
layouts: {
|
|
476
|
+
split: {
|
|
477
|
+
kind: "look",
|
|
478
|
+
look: "hero-photo-beside-text"
|
|
479
|
+
},
|
|
480
|
+
splitReverse: {
|
|
481
|
+
kind: "look",
|
|
482
|
+
look: "hero-photo-beside-text"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
462
486
|
target: "hero",
|
|
463
|
-
label: "
|
|
487
|
+
label: "Text in a panel on a soft band",
|
|
464
488
|
blockKinds: ["block.hero"],
|
|
465
489
|
design: {
|
|
466
490
|
sectionSurface: "muted-band",
|
|
@@ -471,12 +495,16 @@ const appearancePresets = [
|
|
|
471
495
|
}),
|
|
472
496
|
defineBlockAppearancePreset({
|
|
473
497
|
structure: {
|
|
474
|
-
kind: "
|
|
498
|
+
kind: "recipe",
|
|
475
499
|
constraints: { layoutFamilies: ["split"] }
|
|
476
500
|
},
|
|
477
501
|
id: "hero-split-editorial",
|
|
502
|
+
carry: {
|
|
503
|
+
kind: "look",
|
|
504
|
+
look: "hero-photo-beside-text"
|
|
505
|
+
},
|
|
478
506
|
target: "hero",
|
|
479
|
-
label: "
|
|
507
|
+
label: "Split on the page background",
|
|
480
508
|
blockKinds: ["block.hero"],
|
|
481
509
|
design: {
|
|
482
510
|
sectionSurface: "base",
|
|
@@ -486,12 +514,16 @@ const appearancePresets = [
|
|
|
486
514
|
}),
|
|
487
515
|
defineBlockAppearancePreset({
|
|
488
516
|
structure: {
|
|
489
|
-
kind: "
|
|
517
|
+
kind: "recipe",
|
|
490
518
|
constraints: { layoutFamilies: ["split"] }
|
|
491
519
|
},
|
|
492
520
|
id: "hero-split-brand",
|
|
521
|
+
carry: {
|
|
522
|
+
kind: "look",
|
|
523
|
+
look: "hero-photo-beside-text"
|
|
524
|
+
},
|
|
493
525
|
target: "hero",
|
|
494
|
-
label: "
|
|
526
|
+
label: "Split on brand colour",
|
|
495
527
|
blockKinds: ["block.hero"],
|
|
496
528
|
design: {
|
|
497
529
|
sectionSurface: "brand-depth-band",
|
|
@@ -502,12 +534,16 @@ const appearancePresets = [
|
|
|
502
534
|
}),
|
|
503
535
|
defineBlockAppearancePreset({
|
|
504
536
|
structure: {
|
|
505
|
-
kind: "
|
|
537
|
+
kind: "recipe",
|
|
506
538
|
constraints: { layoutFamilies: ["split"] }
|
|
507
539
|
},
|
|
508
540
|
id: "hero-split-soft-panel",
|
|
541
|
+
carry: {
|
|
542
|
+
kind: "look",
|
|
543
|
+
look: "hero-photo-beside-text"
|
|
544
|
+
},
|
|
509
545
|
target: "hero",
|
|
510
|
-
label: "
|
|
546
|
+
label: "Split, panel on a soft band",
|
|
511
547
|
blockKinds: ["block.hero"],
|
|
512
548
|
design: {
|
|
513
549
|
sectionSurface: "muted-band",
|
|
@@ -517,12 +553,16 @@ const appearancePresets = [
|
|
|
517
553
|
}),
|
|
518
554
|
defineBlockAppearancePreset({
|
|
519
555
|
structure: {
|
|
520
|
-
kind: "
|
|
556
|
+
kind: "recipe",
|
|
521
557
|
constraints: { layoutFamilies: ["split"] }
|
|
522
558
|
},
|
|
523
559
|
id: "hero-split-accent",
|
|
560
|
+
carry: {
|
|
561
|
+
kind: "look",
|
|
562
|
+
look: "hero-photo-beside-text"
|
|
563
|
+
},
|
|
524
564
|
target: "hero",
|
|
525
|
-
label: "
|
|
565
|
+
label: "Split, panel on accent colour",
|
|
526
566
|
blockKinds: ["block.hero"],
|
|
527
567
|
design: {
|
|
528
568
|
sectionSurface: "accent-band",
|
|
@@ -532,7 +572,7 @@ const appearancePresets = [
|
|
|
532
572
|
}),
|
|
533
573
|
defineBlockAppearancePreset({
|
|
534
574
|
structure: {
|
|
535
|
-
kind: "
|
|
575
|
+
kind: "recipe",
|
|
536
576
|
composition: {
|
|
537
577
|
kind: "intro",
|
|
538
578
|
treatment: "editorial-statement"
|
|
@@ -540,8 +580,9 @@ const appearancePresets = [
|
|
|
540
580
|
constraints: { layoutVariantKeys: ["centered-copy", "statement-copy"] }
|
|
541
581
|
},
|
|
542
582
|
id: "intro-editorial-statement",
|
|
583
|
+
carry: { kind: "by-layout" },
|
|
543
584
|
target: "intro",
|
|
544
|
-
label: "
|
|
585
|
+
label: "Large statement",
|
|
545
586
|
blockKinds: ["block.intro"],
|
|
546
587
|
design: {
|
|
547
588
|
sectionSurface: "base",
|
|
@@ -550,7 +591,7 @@ const appearancePresets = [
|
|
|
550
591
|
}),
|
|
551
592
|
defineBlockAppearancePreset({
|
|
552
593
|
structure: {
|
|
553
|
-
kind: "
|
|
594
|
+
kind: "recipe",
|
|
554
595
|
composition: {
|
|
555
596
|
kind: "intro",
|
|
556
597
|
treatment: "portrait-bio"
|
|
@@ -558,6 +599,10 @@ const appearancePresets = [
|
|
|
558
599
|
constraints: { layoutVariantKeys: ["media-copy"] }
|
|
559
600
|
},
|
|
560
601
|
id: "intro-portrait-bio",
|
|
602
|
+
carry: {
|
|
603
|
+
kind: "look",
|
|
604
|
+
look: "intro-photo-beside-text"
|
|
605
|
+
},
|
|
561
606
|
target: "intro",
|
|
562
607
|
label: "Portrait and bio",
|
|
563
608
|
blockKinds: ["block.intro"],
|
|
@@ -567,10 +612,14 @@ const appearancePresets = [
|
|
|
567
612
|
}
|
|
568
613
|
}),
|
|
569
614
|
defineBlockAppearancePreset({
|
|
570
|
-
structure: { kind: "
|
|
615
|
+
structure: { kind: "recipe" },
|
|
571
616
|
id: "offerings-preview-default-cards",
|
|
617
|
+
carry: {
|
|
618
|
+
kind: "look",
|
|
619
|
+
look: "feature-cards-cards"
|
|
620
|
+
},
|
|
572
621
|
target: "offerings",
|
|
573
|
-
label: "
|
|
622
|
+
label: "Cards",
|
|
574
623
|
blockKinds: ["block.offerings-preview"],
|
|
575
624
|
design: {
|
|
576
625
|
sectionSurface: "base",
|
|
@@ -579,10 +628,14 @@ const appearancePresets = [
|
|
|
579
628
|
}
|
|
580
629
|
}),
|
|
581
630
|
defineBlockAppearancePreset({
|
|
582
|
-
structure: { kind: "
|
|
631
|
+
structure: { kind: "recipe" },
|
|
583
632
|
id: "offerings-preview-secondary-cards",
|
|
633
|
+
carry: {
|
|
634
|
+
kind: "look",
|
|
635
|
+
look: "feature-cards-cards"
|
|
636
|
+
},
|
|
584
637
|
target: "offerings",
|
|
585
|
-
label: "
|
|
638
|
+
label: "Cards on a soft band",
|
|
586
639
|
blockKinds: ["block.offerings-preview"],
|
|
587
640
|
design: {
|
|
588
641
|
sectionSurface: "muted-band",
|
|
@@ -591,10 +644,14 @@ const appearancePresets = [
|
|
|
591
644
|
}
|
|
592
645
|
}),
|
|
593
646
|
defineBlockAppearancePreset({
|
|
594
|
-
structure: { kind: "
|
|
647
|
+
structure: { kind: "recipe" },
|
|
595
648
|
id: "offerings-preview-non-carded",
|
|
649
|
+
carry: {
|
|
650
|
+
kind: "look",
|
|
651
|
+
look: "feature-cards-open-columns"
|
|
652
|
+
},
|
|
596
653
|
target: "offerings",
|
|
597
|
-
label: "
|
|
654
|
+
label: "No cards",
|
|
598
655
|
blockKinds: ["block.offerings-preview"],
|
|
599
656
|
design: {
|
|
600
657
|
sectionSurface: "muted-band",
|
|
@@ -604,7 +661,7 @@ const appearancePresets = [
|
|
|
604
661
|
}),
|
|
605
662
|
defineBlockAppearancePreset({
|
|
606
663
|
structure: {
|
|
607
|
-
kind: "
|
|
664
|
+
kind: "recipe",
|
|
608
665
|
composition: {
|
|
609
666
|
kind: "offerings-preview",
|
|
610
667
|
treatment: "paired-feature-cards"
|
|
@@ -612,8 +669,12 @@ const appearancePresets = [
|
|
|
612
669
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
613
670
|
},
|
|
614
671
|
id: "offerings-preview-paired-feature-cards",
|
|
672
|
+
carry: {
|
|
673
|
+
kind: "look",
|
|
674
|
+
look: "feature-cards-lead-support"
|
|
675
|
+
},
|
|
615
676
|
target: "offerings",
|
|
616
|
-
label: "
|
|
677
|
+
label: "One large card, one smaller",
|
|
617
678
|
blockKinds: ["block.offerings-preview"],
|
|
618
679
|
design: {
|
|
619
680
|
sectionSurface: "base",
|
|
@@ -623,7 +684,7 @@ const appearancePresets = [
|
|
|
623
684
|
}),
|
|
624
685
|
defineBlockAppearancePreset({
|
|
625
686
|
structure: {
|
|
626
|
-
kind: "
|
|
687
|
+
kind: "recipe",
|
|
627
688
|
composition: {
|
|
628
689
|
kind: "offerings-preview",
|
|
629
690
|
treatment: "open-editorial-columns"
|
|
@@ -631,8 +692,12 @@ const appearancePresets = [
|
|
|
631
692
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
632
693
|
},
|
|
633
694
|
id: "offerings-preview-open-editorial-columns",
|
|
695
|
+
carry: {
|
|
696
|
+
kind: "look",
|
|
697
|
+
look: "feature-cards-open-columns"
|
|
698
|
+
},
|
|
634
699
|
target: "offerings",
|
|
635
|
-
label: "Open
|
|
700
|
+
label: "Open columns",
|
|
636
701
|
blockKinds: ["block.offerings-preview"],
|
|
637
702
|
design: {
|
|
638
703
|
sectionSurface: "base",
|
|
@@ -642,7 +707,7 @@ const appearancePresets = [
|
|
|
642
707
|
}),
|
|
643
708
|
defineBlockAppearancePreset({
|
|
644
709
|
structure: {
|
|
645
|
-
kind: "
|
|
710
|
+
kind: "recipe",
|
|
646
711
|
composition: {
|
|
647
712
|
kind: "offerings-preview",
|
|
648
713
|
treatment: "joined-programme-panel"
|
|
@@ -650,8 +715,12 @@ const appearancePresets = [
|
|
|
650
715
|
constraints: { layoutVariantKeys: ["cards"] }
|
|
651
716
|
},
|
|
652
717
|
id: "offerings-preview-joined-programme-panel",
|
|
718
|
+
carry: {
|
|
719
|
+
kind: "look",
|
|
720
|
+
look: "feature-cards-index"
|
|
721
|
+
},
|
|
653
722
|
target: "offerings",
|
|
654
|
-
label: "
|
|
723
|
+
label: "Rows joined in one panel",
|
|
655
724
|
blockKinds: ["block.offerings-preview"],
|
|
656
725
|
design: {
|
|
657
726
|
sectionSurface: "base",
|
|
@@ -660,10 +729,14 @@ const appearancePresets = [
|
|
|
660
729
|
}
|
|
661
730
|
}),
|
|
662
731
|
defineBlockAppearancePreset({
|
|
663
|
-
structure: { kind: "
|
|
732
|
+
structure: { kind: "recipe" },
|
|
664
733
|
id: "feature-cards-raised-rule",
|
|
734
|
+
carry: {
|
|
735
|
+
kind: "look",
|
|
736
|
+
look: "feature-cards-cards"
|
|
737
|
+
},
|
|
665
738
|
target: "feature-cards",
|
|
666
|
-
label: "Raised cards with
|
|
739
|
+
label: "Raised cards with a line",
|
|
667
740
|
blockKinds: ["block.feature-cards"],
|
|
668
741
|
design: {
|
|
669
742
|
sectionSurface: "base",
|
|
@@ -672,10 +745,14 @@ const appearancePresets = [
|
|
|
672
745
|
}
|
|
673
746
|
}),
|
|
674
747
|
defineBlockAppearancePreset({
|
|
675
|
-
structure: { kind: "
|
|
748
|
+
structure: { kind: "recipe" },
|
|
676
749
|
id: "feature-cards-bold-colors",
|
|
750
|
+
carry: {
|
|
751
|
+
kind: "look",
|
|
752
|
+
look: "feature-cards-cards"
|
|
753
|
+
},
|
|
677
754
|
target: "feature-cards",
|
|
678
|
-
label: "
|
|
755
|
+
label: "Colour-filled cards",
|
|
679
756
|
blockKinds: ["block.feature-cards"],
|
|
680
757
|
design: {
|
|
681
758
|
sectionSurface: "base",
|
|
@@ -684,10 +761,14 @@ const appearancePresets = [
|
|
|
684
761
|
}
|
|
685
762
|
}),
|
|
686
763
|
defineBlockAppearancePreset({
|
|
687
|
-
structure: { kind: "
|
|
764
|
+
structure: { kind: "recipe" },
|
|
688
765
|
id: "feature-cards-editorial-columns",
|
|
766
|
+
carry: {
|
|
767
|
+
kind: "look",
|
|
768
|
+
look: "card-list-accent-edged-cards"
|
|
769
|
+
},
|
|
689
770
|
target: "feature-cards",
|
|
690
|
-
label: "
|
|
771
|
+
label: "Open columns on a soft band",
|
|
691
772
|
blockKinds: ["block.feature-cards"],
|
|
692
773
|
design: {
|
|
693
774
|
sectionSurface: "muted-band",
|
|
@@ -697,7 +778,7 @@ const appearancePresets = [
|
|
|
697
778
|
}),
|
|
698
779
|
defineBlockAppearancePreset({
|
|
699
780
|
structure: {
|
|
700
|
-
kind: "
|
|
781
|
+
kind: "recipe",
|
|
701
782
|
composition: {
|
|
702
783
|
kind: "feature-cards",
|
|
703
784
|
treatment: "asymmetric-emphasis"
|
|
@@ -705,8 +786,12 @@ const appearancePresets = [
|
|
|
705
786
|
constraints: { layoutFamilies: ["grid"] }
|
|
706
787
|
},
|
|
707
788
|
id: "feature-cards-asymmetric-emphasis",
|
|
789
|
+
carry: {
|
|
790
|
+
kind: "no-equivalent",
|
|
791
|
+
because: "No shared Look lays cards out in uneven pairs."
|
|
792
|
+
},
|
|
708
793
|
target: "feature-cards",
|
|
709
|
-
label: "
|
|
794
|
+
label: "Cards in uneven pairs",
|
|
710
795
|
blockKinds: ["block.feature-cards"],
|
|
711
796
|
design: {
|
|
712
797
|
sectionSurface: "base",
|
|
@@ -715,7 +800,7 @@ const appearancePresets = [
|
|
|
715
800
|
}),
|
|
716
801
|
defineBlockAppearancePreset({
|
|
717
802
|
structure: {
|
|
718
|
-
kind: "
|
|
803
|
+
kind: "recipe",
|
|
719
804
|
composition: {
|
|
720
805
|
kind: "feature-cards",
|
|
721
806
|
treatment: "framed-programme"
|
|
@@ -723,8 +808,12 @@ const appearancePresets = [
|
|
|
723
808
|
constraints: { layoutFamilies: ["grid"] }
|
|
724
809
|
},
|
|
725
810
|
id: "feature-cards-framed-programme",
|
|
811
|
+
carry: {
|
|
812
|
+
kind: "look",
|
|
813
|
+
look: "feature-cards-cards"
|
|
814
|
+
},
|
|
726
815
|
target: "feature-cards",
|
|
727
|
-
label: "
|
|
816
|
+
label: "Close-set cards on brand colour",
|
|
728
817
|
blockKinds: ["block.feature-cards"],
|
|
729
818
|
design: {
|
|
730
819
|
sectionSurface: "brand-depth-band",
|
|
@@ -734,12 +823,16 @@ const appearancePresets = [
|
|
|
734
823
|
}),
|
|
735
824
|
defineBlockAppearancePreset({
|
|
736
825
|
structure: {
|
|
737
|
-
kind: "
|
|
826
|
+
kind: "recipe",
|
|
738
827
|
constraints: { layoutVariantKeys: ["editorial-diptych"] }
|
|
739
828
|
},
|
|
740
829
|
id: "feature-cards-editorial-diptych",
|
|
830
|
+
carry: {
|
|
831
|
+
kind: "look",
|
|
832
|
+
look: "feature-cards-cards"
|
|
833
|
+
},
|
|
741
834
|
target: "feature-cards",
|
|
742
|
-
label: "
|
|
835
|
+
label: "Two large cards side by side",
|
|
743
836
|
blockKinds: ["block.feature-cards"],
|
|
744
837
|
design: {
|
|
745
838
|
sectionSurface: "base",
|
|
@@ -748,10 +841,11 @@ const appearancePresets = [
|
|
|
748
841
|
}
|
|
749
842
|
}),
|
|
750
843
|
defineBlockAppearancePreset({
|
|
751
|
-
structure: { kind: "
|
|
844
|
+
structure: { kind: "recipe" },
|
|
752
845
|
id: "events-lined-panel",
|
|
846
|
+
carry: { kind: "by-layout" },
|
|
753
847
|
target: "events",
|
|
754
|
-
label: "
|
|
848
|
+
label: "Cards on a panel",
|
|
755
849
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
756
850
|
design: {
|
|
757
851
|
sectionSurface: "base",
|
|
@@ -759,10 +853,14 @@ const appearancePresets = [
|
|
|
759
853
|
}
|
|
760
854
|
}),
|
|
761
855
|
defineBlockAppearancePreset({
|
|
762
|
-
structure: { kind: "
|
|
856
|
+
structure: { kind: "recipe" },
|
|
763
857
|
id: "events-ruled-register",
|
|
858
|
+
carry: {
|
|
859
|
+
kind: "look",
|
|
860
|
+
look: "event-calendar-ruled-rows"
|
|
861
|
+
},
|
|
764
862
|
target: "events",
|
|
765
|
-
label: "Ruled
|
|
863
|
+
label: "Ruled list",
|
|
766
864
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
767
865
|
design: {
|
|
768
866
|
sectionSurface: "brand-depth-band",
|
|
@@ -771,10 +869,14 @@ const appearancePresets = [
|
|
|
771
869
|
}
|
|
772
870
|
}),
|
|
773
871
|
defineBlockAppearancePreset({
|
|
774
|
-
structure: { kind: "
|
|
872
|
+
structure: { kind: "recipe" },
|
|
775
873
|
id: "events-editorial-register",
|
|
874
|
+
carry: {
|
|
875
|
+
kind: "look",
|
|
876
|
+
look: "event-calendar-ruled-rows"
|
|
877
|
+
},
|
|
776
878
|
target: "events",
|
|
777
|
-
label: "Editorial
|
|
879
|
+
label: "Editorial list",
|
|
778
880
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
779
881
|
design: {
|
|
780
882
|
sectionSurface: "base",
|
|
@@ -783,10 +885,14 @@ const appearancePresets = [
|
|
|
783
885
|
}
|
|
784
886
|
}),
|
|
785
887
|
defineBlockAppearancePreset({
|
|
786
|
-
structure: { kind: "
|
|
888
|
+
structure: { kind: "recipe" },
|
|
787
889
|
id: "events-dense-index",
|
|
890
|
+
carry: {
|
|
891
|
+
kind: "look",
|
|
892
|
+
look: "event-calendar-ruled-rows"
|
|
893
|
+
},
|
|
788
894
|
target: "events",
|
|
789
|
-
label: "
|
|
895
|
+
label: "Compact list",
|
|
790
896
|
blockKinds: ["block.event-calendar", "block.event-listing"],
|
|
791
897
|
design: {
|
|
792
898
|
sectionSurface: "accent-band",
|
|
@@ -795,10 +901,14 @@ const appearancePresets = [
|
|
|
795
901
|
}
|
|
796
902
|
}),
|
|
797
903
|
defineBlockAppearancePreset({
|
|
798
|
-
structure: { kind: "
|
|
904
|
+
structure: { kind: "recipe" },
|
|
799
905
|
id: "schedule-details-brand-depth",
|
|
906
|
+
carry: {
|
|
907
|
+
kind: "look",
|
|
908
|
+
look: "event-details-panel"
|
|
909
|
+
},
|
|
800
910
|
target: "events",
|
|
801
|
-
label: "
|
|
911
|
+
label: "Details on brand colour",
|
|
802
912
|
blockKinds: ["block.event-details"],
|
|
803
913
|
design: {
|
|
804
914
|
sectionSurface: "brand-depth-band",
|
|
@@ -807,10 +917,14 @@ const appearancePresets = [
|
|
|
807
917
|
}
|
|
808
918
|
}),
|
|
809
919
|
defineBlockAppearancePreset({
|
|
810
|
-
structure: { kind: "
|
|
920
|
+
structure: { kind: "recipe" },
|
|
811
921
|
id: "media-text-flush-feature",
|
|
922
|
+
carry: {
|
|
923
|
+
kind: "look",
|
|
924
|
+
look: "media-text-photo-beside-text"
|
|
925
|
+
},
|
|
812
926
|
target: "media-text",
|
|
813
|
-
label: "
|
|
927
|
+
label: "Photo to the edge, on a soft band",
|
|
814
928
|
blockKinds: ["block.media-text"],
|
|
815
929
|
design: {
|
|
816
930
|
sectionSurface: "muted-band",
|
|
@@ -818,10 +932,11 @@ const appearancePresets = [
|
|
|
818
932
|
}
|
|
819
933
|
}),
|
|
820
934
|
defineBlockAppearancePreset({
|
|
821
|
-
structure: { kind: "
|
|
935
|
+
structure: { kind: "recipe" },
|
|
822
936
|
id: "testimonials-simple-cards",
|
|
937
|
+
carry: { kind: "by-layout" },
|
|
823
938
|
target: "testimonials",
|
|
824
|
-
label: "
|
|
939
|
+
label: "Quote cards",
|
|
825
940
|
blockKinds: ["block.testimonials"],
|
|
826
941
|
design: {
|
|
827
942
|
sectionSurface: "base",
|
|
@@ -830,10 +945,11 @@ const appearancePresets = [
|
|
|
830
945
|
}
|
|
831
946
|
}),
|
|
832
947
|
defineBlockAppearancePreset({
|
|
833
|
-
structure: { kind: "
|
|
948
|
+
structure: { kind: "recipe" },
|
|
834
949
|
id: "testimonials-raised-panel",
|
|
950
|
+
carry: { kind: "by-layout" },
|
|
835
951
|
target: "testimonials",
|
|
836
|
-
label: "
|
|
952
|
+
label: "Quotes on a panel",
|
|
837
953
|
blockKinds: ["block.testimonials"],
|
|
838
954
|
design: {
|
|
839
955
|
sectionSurface: "muted-band",
|
|
@@ -842,10 +958,11 @@ const appearancePresets = [
|
|
|
842
958
|
}
|
|
843
959
|
}),
|
|
844
960
|
defineBlockAppearancePreset({
|
|
845
|
-
structure: { kind: "
|
|
961
|
+
structure: { kind: "recipe" },
|
|
846
962
|
id: "testimonials-accent-panel",
|
|
963
|
+
carry: { kind: "by-layout" },
|
|
847
964
|
target: "testimonials",
|
|
848
|
-
label: "
|
|
965
|
+
label: "Quotes on an accent panel",
|
|
849
966
|
blockKinds: ["block.testimonials"],
|
|
850
967
|
design: {
|
|
851
968
|
sectionSurface: "accent-band",
|
|
@@ -854,10 +971,11 @@ const appearancePresets = [
|
|
|
854
971
|
}
|
|
855
972
|
}),
|
|
856
973
|
defineBlockAppearancePreset({
|
|
857
|
-
structure: { kind: "
|
|
974
|
+
structure: { kind: "recipe" },
|
|
858
975
|
id: "testimonials-statement-cards",
|
|
976
|
+
carry: { kind: "by-layout" },
|
|
859
977
|
target: "testimonials",
|
|
860
|
-
label: "
|
|
978
|
+
label: "Cards on accent colour",
|
|
861
979
|
blockKinds: ["block.testimonials"],
|
|
862
980
|
design: {
|
|
863
981
|
sectionSurface: "accent-band",
|
|
@@ -866,10 +984,11 @@ const appearancePresets = [
|
|
|
866
984
|
}
|
|
867
985
|
}),
|
|
868
986
|
defineBlockAppearancePreset({
|
|
869
|
-
structure: { kind: "
|
|
987
|
+
structure: { kind: "recipe" },
|
|
870
988
|
id: "testimonials-brand-statement-cards",
|
|
989
|
+
carry: { kind: "by-layout" },
|
|
871
990
|
target: "testimonials",
|
|
872
|
-
label: "
|
|
991
|
+
label: "Cards on brand colour",
|
|
873
992
|
blockKinds: ["block.testimonials"],
|
|
874
993
|
design: {
|
|
875
994
|
sectionSurface: "brand-depth-band",
|
|
@@ -879,15 +998,23 @@ const appearancePresets = [
|
|
|
879
998
|
}),
|
|
880
999
|
defineBlockAppearancePreset({
|
|
881
1000
|
structure: {
|
|
882
|
-
kind: "
|
|
1001
|
+
kind: "recipe",
|
|
883
1002
|
composition: {
|
|
884
1003
|
kind: "testimonials",
|
|
885
1004
|
treatment: "open-editorial"
|
|
886
1005
|
}
|
|
887
1006
|
},
|
|
888
1007
|
id: "testimonials-non-carded",
|
|
1008
|
+
carry: {
|
|
1009
|
+
kind: "by-layout",
|
|
1010
|
+
layouts: { grid: {
|
|
1011
|
+
kind: "look",
|
|
1012
|
+
look: "testimonials-quote-columns",
|
|
1013
|
+
knobs: { quoteCount: "all" }
|
|
1014
|
+
} }
|
|
1015
|
+
},
|
|
889
1016
|
target: "testimonials",
|
|
890
|
-
label: "
|
|
1017
|
+
label: "No cards",
|
|
891
1018
|
blockKinds: ["block.testimonials"],
|
|
892
1019
|
design: {
|
|
893
1020
|
sectionSurface: "muted-band",
|
|
@@ -896,7 +1023,7 @@ const appearancePresets = [
|
|
|
896
1023
|
}),
|
|
897
1024
|
defineBlockAppearancePreset({
|
|
898
1025
|
structure: {
|
|
899
|
-
kind: "
|
|
1026
|
+
kind: "recipe",
|
|
900
1027
|
composition: {
|
|
901
1028
|
kind: "testimonials",
|
|
902
1029
|
treatment: "evergreen-lead"
|
|
@@ -904,8 +1031,12 @@ const appearancePresets = [
|
|
|
904
1031
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
905
1032
|
},
|
|
906
1033
|
id: "testimonials-evergreen-lead",
|
|
1034
|
+
carry: {
|
|
1035
|
+
kind: "look",
|
|
1036
|
+
look: "testimonials-lead-quote"
|
|
1037
|
+
},
|
|
907
1038
|
target: "testimonials",
|
|
908
|
-
label: "
|
|
1039
|
+
label: "Lead quote, others in two columns",
|
|
909
1040
|
blockKinds: ["block.testimonials"],
|
|
910
1041
|
design: {
|
|
911
1042
|
sectionSurface: "base",
|
|
@@ -914,7 +1045,7 @@ const appearancePresets = [
|
|
|
914
1045
|
}),
|
|
915
1046
|
defineBlockAppearancePreset({
|
|
916
1047
|
structure: {
|
|
917
|
-
kind: "
|
|
1048
|
+
kind: "recipe",
|
|
918
1049
|
composition: {
|
|
919
1050
|
kind: "testimonials",
|
|
920
1051
|
treatment: "room-and-response"
|
|
@@ -922,8 +1053,12 @@ const appearancePresets = [
|
|
|
922
1053
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
923
1054
|
},
|
|
924
1055
|
id: "testimonials-room-and-response",
|
|
1056
|
+
carry: {
|
|
1057
|
+
kind: "look",
|
|
1058
|
+
look: "testimonials-lead-quote"
|
|
1059
|
+
},
|
|
925
1060
|
target: "testimonials",
|
|
926
|
-
label: "
|
|
1061
|
+
label: "Tall lead quote, others beside",
|
|
927
1062
|
blockKinds: ["block.testimonials"],
|
|
928
1063
|
design: {
|
|
929
1064
|
sectionSurface: "base",
|
|
@@ -932,7 +1067,7 @@ const appearancePresets = [
|
|
|
932
1067
|
}),
|
|
933
1068
|
defineBlockAppearancePreset({
|
|
934
1069
|
structure: {
|
|
935
|
-
kind: "
|
|
1070
|
+
kind: "recipe",
|
|
936
1071
|
composition: {
|
|
937
1072
|
kind: "testimonials",
|
|
938
1073
|
treatment: "open-floor"
|
|
@@ -940,8 +1075,12 @@ const appearancePresets = [
|
|
|
940
1075
|
constraints: { layoutVariantKeys: ["featured-editorial"] }
|
|
941
1076
|
},
|
|
942
1077
|
id: "testimonials-open-floor",
|
|
1078
|
+
carry: {
|
|
1079
|
+
kind: "look",
|
|
1080
|
+
look: "testimonials-lead-quote"
|
|
1081
|
+
},
|
|
943
1082
|
target: "testimonials",
|
|
944
|
-
label: "
|
|
1083
|
+
label: "Title beside, lead quote on top",
|
|
945
1084
|
blockKinds: ["block.testimonials"],
|
|
946
1085
|
design: {
|
|
947
1086
|
sectionSurface: "base",
|
|
@@ -949,10 +1088,11 @@ const appearancePresets = [
|
|
|
949
1088
|
}
|
|
950
1089
|
}),
|
|
951
1090
|
defineBlockAppearancePreset({
|
|
952
|
-
structure: { kind: "
|
|
1091
|
+
structure: { kind: "recipe" },
|
|
953
1092
|
id: "faq-base-accordion",
|
|
1093
|
+
carry: { kind: "by-layout" },
|
|
954
1094
|
target: "faq",
|
|
955
|
-
label: "
|
|
1095
|
+
label: "Plain list of questions",
|
|
956
1096
|
blockKinds: ["block.faq"],
|
|
957
1097
|
design: {
|
|
958
1098
|
sectionSurface: "base",
|
|
@@ -961,10 +1101,11 @@ const appearancePresets = [
|
|
|
961
1101
|
}
|
|
962
1102
|
}),
|
|
963
1103
|
defineBlockAppearancePreset({
|
|
964
|
-
structure: { kind: "
|
|
1104
|
+
structure: { kind: "recipe" },
|
|
965
1105
|
id: "faq-contained-help",
|
|
1106
|
+
carry: { kind: "by-layout" },
|
|
966
1107
|
target: "faq",
|
|
967
|
-
label: "
|
|
1108
|
+
label: "Questions in a panel",
|
|
968
1109
|
blockKinds: ["block.faq"],
|
|
969
1110
|
design: {
|
|
970
1111
|
sectionSurface: "muted-band",
|
|
@@ -973,10 +1114,11 @@ const appearancePresets = [
|
|
|
973
1114
|
}
|
|
974
1115
|
}),
|
|
975
1116
|
defineBlockAppearancePreset({
|
|
976
|
-
structure: { kind: "
|
|
1117
|
+
structure: { kind: "recipe" },
|
|
977
1118
|
id: "contact-form-panel",
|
|
1119
|
+
carry: { kind: "by-layout" },
|
|
978
1120
|
target: "contact-form",
|
|
979
|
-
label: "
|
|
1121
|
+
label: "Form on a panel",
|
|
980
1122
|
blockKinds: ["block.form"],
|
|
981
1123
|
design: {
|
|
982
1124
|
sectionSurface: "muted-band",
|
|
@@ -984,10 +1126,14 @@ const appearancePresets = [
|
|
|
984
1126
|
}
|
|
985
1127
|
}),
|
|
986
1128
|
defineBlockAppearancePreset({
|
|
987
|
-
structure: { kind: "
|
|
1129
|
+
structure: { kind: "recipe" },
|
|
988
1130
|
id: "booking-brand-band",
|
|
1131
|
+
carry: {
|
|
1132
|
+
kind: "no-equivalent",
|
|
1133
|
+
because: "Appointment booking has no shared Looks."
|
|
1134
|
+
},
|
|
989
1135
|
target: "contact-form",
|
|
990
|
-
label: "
|
|
1136
|
+
label: "Booking form on brand colour",
|
|
991
1137
|
blockKinds: ["block.appointment-booking"],
|
|
992
1138
|
design: {
|
|
993
1139
|
sectionSurface: "brand-depth-band",
|
|
@@ -995,10 +1141,14 @@ const appearancePresets = [
|
|
|
995
1141
|
}
|
|
996
1142
|
}),
|
|
997
1143
|
defineBlockAppearancePreset({
|
|
998
|
-
structure: { kind: "
|
|
1144
|
+
structure: { kind: "recipe" },
|
|
999
1145
|
id: "cta-accent-band",
|
|
1146
|
+
carry: {
|
|
1147
|
+
kind: "look",
|
|
1148
|
+
look: "cta-centred"
|
|
1149
|
+
},
|
|
1000
1150
|
target: "cta",
|
|
1001
|
-
label: "Accent
|
|
1151
|
+
label: "Accent colour band",
|
|
1002
1152
|
blockKinds: ["block.cta-full"],
|
|
1003
1153
|
design: {
|
|
1004
1154
|
sectionSurface: "accent-band",
|
|
@@ -1007,11 +1157,11 @@ const appearancePresets = [
|
|
|
1007
1157
|
}
|
|
1008
1158
|
}),
|
|
1009
1159
|
defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", []),
|
|
1010
|
-
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside
|
|
1160
|
+
defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside a framed form", "two-column", [], {
|
|
1011
1161
|
slotRoles: { panel: "card" },
|
|
1012
1162
|
styleFallback: [id$1("form-below-introduction")]
|
|
1013
1163
|
}),
|
|
1014
|
-
defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in
|
|
1164
|
+
defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in a frame", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
|
|
1015
1165
|
defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", []),
|
|
1016
1166
|
defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", [], { styleFallback: [id$1("image-gallery-square-tiles")] }),
|
|
1017
1167
|
defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
|
|
@@ -1034,6 +1184,10 @@ const appearancePresets = [
|
|
|
1034
1184
|
slotRoles: { copy: "card" },
|
|
1035
1185
|
styleFallback: [id$1("hero-photo-beside-text")]
|
|
1036
1186
|
}),
|
|
1187
|
+
defineArrangementLook("hero-short-photo-banner", "hero", "Short photo banner", "classic", [], {
|
|
1188
|
+
slotRoles: { copy: "card" },
|
|
1189
|
+
styleFallback: [id$1("hero-page-head")]
|
|
1190
|
+
}),
|
|
1037
1191
|
defineArrangementLook("hero-page-head", "hero", "Title and facts, no photo", "page-head", ["titleSize", "smallCaption"], { styleFallback: [id$1("hero-photo-beside-text")] }),
|
|
1038
1192
|
defineCardListLook("feature-cards-cards", "Cards", "cards", [
|
|
1039
1193
|
"media",
|
|
@@ -1106,7 +1260,7 @@ const appearancePresets = [
|
|
|
1106
1260
|
slotRoles: { date: "highlight" },
|
|
1107
1261
|
styleFallback: [id$1("event-calendar-ruled-rows")]
|
|
1108
1262
|
}),
|
|
1109
|
-
defineArrangementLook("event-calendar-next-three", "event-calendar", "
|
|
1263
|
+
defineArrangementLook("event-calendar-next-three", "event-calendar", "Compact rows", "compact", ["showCapacity"], {
|
|
1110
1264
|
itemRoles: { container: "card" },
|
|
1111
1265
|
styleFallback: [id$1("event-calendar-ruled-rows")]
|
|
1112
1266
|
}),
|
|
@@ -1240,6 +1394,19 @@ const appearancePresets = [
|
|
|
1240
1394
|
}],
|
|
1241
1395
|
styleFallback: [id$1("cta-centred")]
|
|
1242
1396
|
}),
|
|
1397
|
+
defineArrangementLook("location-map-above-details", "location-map", "Map above the details", "default", []),
|
|
1398
|
+
defineArrangementLook("location-map-beside-address", "location-map", "Map beside the address", "map-and-details", [], { styleFallback: [id$1("location-map-above-details")] }),
|
|
1399
|
+
defineArrangementLook("location-map-address-over-wide-map", "location-map", "Address over a wide map", "map-and-details", [], {
|
|
1400
|
+
slotRoles: { panel: "card" },
|
|
1401
|
+
styleFallback: [id$1("location-map-beside-address")]
|
|
1402
|
+
}),
|
|
1403
|
+
defineArrangementLook("location-map-entrance-photo", "location-map", "Entrance photo beside the details", "photo-and-details", [], {
|
|
1404
|
+
whenMissing: [{
|
|
1405
|
+
fact: "entrance",
|
|
1406
|
+
look: id$1("location-map-beside-address")
|
|
1407
|
+
}],
|
|
1408
|
+
styleFallback: [id$1("location-map-beside-address")]
|
|
1409
|
+
}),
|
|
1243
1410
|
{
|
|
1244
1411
|
...defineCardListLook("team-members-tall-portraits", "Tall portraits in a row", "cards", [
|
|
1245
1412
|
"media",
|
|
@@ -1342,64 +1509,6 @@ const appearancePresets = [
|
|
|
1342
1509
|
}
|
|
1343
1510
|
];
|
|
1344
1511
|
//#endregion
|
|
1345
|
-
//#region ../theme-core/src/palette/utils/scrimContrast.ts
|
|
1346
|
-
const WHITE = "#ffffff";
|
|
1347
|
-
const BLACK = "#000000";
|
|
1348
|
-
/** `top` at `alpha` over opaque `bottom`, blended as CSS paints an overlay. */
|
|
1349
|
-
function compositeHex(topHex, alpha, bottomHex) {
|
|
1350
|
-
const top = hexToRgb(topHex);
|
|
1351
|
-
const bottom = hexToRgb(bottomHex);
|
|
1352
|
-
const mix = (a, b) => Math.round(alpha * a + (1 - alpha) * b);
|
|
1353
|
-
return rgbToHex(mix(top.r, bottom.r), mix(top.g, bottom.g), mix(top.b, bottom.b));
|
|
1354
|
-
}
|
|
1355
|
-
/**
|
|
1356
|
-
* The lowest contrast `foreground` can reach over `scrim` at `alpha` laid on
|
|
1357
|
-
* any pixel. A foreground whose luminance falls inside the range the
|
|
1358
|
-
* composites can take has a worst case of 1:1.
|
|
1359
|
-
*/
|
|
1360
|
-
function worstCaseScrimContrast(input) {
|
|
1361
|
-
const overWhite = compositeHex(input.scrimHex, input.alpha, WHITE);
|
|
1362
|
-
const overBlack = compositeHex(input.scrimHex, input.alpha, BLACK);
|
|
1363
|
-
const luminance = (hex) => {
|
|
1364
|
-
const { r, g, b } = hexToRgb(hex);
|
|
1365
|
-
return relativeLuminance(r, g, b);
|
|
1366
|
-
};
|
|
1367
|
-
const foreground = luminance(input.foregroundHex);
|
|
1368
|
-
const low = luminance(overBlack);
|
|
1369
|
-
const high = luminance(overWhite);
|
|
1370
|
-
if (foreground >= low && foreground <= high) return 1;
|
|
1371
|
-
return Math.min(contrastRatio(input.foregroundHex, overWhite), contrastRatio(input.foregroundHex, overBlack));
|
|
1372
|
-
}
|
|
1373
|
-
/** Shared samples for literal RGB washes and palette-token gradient veils. */
|
|
1374
|
-
function gradientScrimSamples(gradient, alpha, palette) {
|
|
1375
|
-
const literal = [...gradient.matchAll(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/g)].map((stop) => ({
|
|
1376
|
-
hex: rgbToHex(Number(stop[1]), Number(stop[2]), Number(stop[3])),
|
|
1377
|
-
alpha: alpha * (stop[4] === void 0 ? 1 : Number(stop[4]))
|
|
1378
|
-
}));
|
|
1379
|
-
const tokens = [...gradient.matchAll(/var\(--tb-([\w-]+)\)/g)].flatMap((stop) => {
|
|
1380
|
-
const hex = stop[1] ? resolveConcreteColorHex(stop[1], palette) : null;
|
|
1381
|
-
return hex ? [{
|
|
1382
|
-
hex,
|
|
1383
|
-
alpha
|
|
1384
|
-
}] : [];
|
|
1385
|
-
});
|
|
1386
|
-
return [...literal, ...tokens];
|
|
1387
|
-
}
|
|
1388
|
-
/** The ink with the stronger worst-pixel guarantee identifies the veil tone.
|
|
1389
|
-
* No readable samples (or a tie) leaves classification to the foreground owner.
|
|
1390
|
-
*/
|
|
1391
|
-
function scrimTone(samples) {
|
|
1392
|
-
if (samples.length === 0) return null;
|
|
1393
|
-
const worst = (foregroundHex) => Math.min(...samples.map((sample) => worstCaseScrimContrast({
|
|
1394
|
-
foregroundHex,
|
|
1395
|
-
scrimHex: sample.hex,
|
|
1396
|
-
alpha: sample.alpha
|
|
1397
|
-
})));
|
|
1398
|
-
const white = worst(WHITE);
|
|
1399
|
-
const black = worst(BLACK);
|
|
1400
|
-
return white === black ? null : white > black ? "dark" : "light";
|
|
1401
|
-
}
|
|
1402
|
-
//#endregion
|
|
1403
1512
|
//#region ../theme-core/src/site-styles/transitionCatalogue.ts
|
|
1404
1513
|
/**
|
|
1405
1514
|
* Family order for pickers. Entries below are listed family by family in this
|
|
@@ -1735,16 +1844,10 @@ const sectionTransitionFamilies = [{
|
|
|
1735
1844
|
label: family.label,
|
|
1736
1845
|
variants: requireNonEmptyReadonlyArray(transitionCatalogueEntries.filter((entry) => entry.family === family.id).map(transitionVariantForEntry), `Transition family ${family.id} has no catalogue entries.`)
|
|
1737
1846
|
}))];
|
|
1738
|
-
|
|
1847
|
+
new Map(boundaryOptions.map((option) => [option.id, option]));
|
|
1739
1848
|
new Map(boundaryOptions.map((option) => [stableTreatmentKey(option.treatment), option]));
|
|
1740
1849
|
new Map(sectionTransitionFamilies.flatMap((family) => family.variants.map((variant) => [variant.boundaryOption.id, variant])));
|
|
1741
1850
|
new Map(sectionTransitionFamilies.map((family) => [family.id, family]));
|
|
1742
|
-
function boundaryTreatmentForBoundaryOptionId(boundaryOptionId) {
|
|
1743
|
-
return boundaryOptionById.get(boundaryOptionId)?.treatment ?? {
|
|
1744
|
-
kind: "legacy-unsupported",
|
|
1745
|
-
boundaryOptionId
|
|
1746
|
-
};
|
|
1747
|
-
}
|
|
1748
1851
|
function stableTreatmentKey(treatment) {
|
|
1749
1852
|
switch (treatment.kind) {
|
|
1750
1853
|
case "none": return "none";
|
|
@@ -1762,7 +1865,6 @@ function stableTreatmentKey(treatment) {
|
|
|
1762
1865
|
treatment.slope,
|
|
1763
1866
|
treatment.direction
|
|
1764
1867
|
].join(":");
|
|
1765
|
-
case "legacy-unsupported": return `${treatment.kind}:${treatment.boundaryOptionId}`;
|
|
1766
1868
|
}
|
|
1767
1869
|
}
|
|
1768
1870
|
//#endregion
|
|
@@ -1778,7 +1880,7 @@ const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
|
|
|
1778
1880
|
kind: z.literal("user-pinned"),
|
|
1779
1881
|
value: z.string().min(1).transform(asAppearancePresetId)
|
|
1780
1882
|
}).strict();
|
|
1781
|
-
|
|
1883
|
+
z.object({
|
|
1782
1884
|
kind: z.literal("user-pinned"),
|
|
1783
1885
|
value: z.string().min(1).transform(asBoundaryOptionId)
|
|
1784
1886
|
}).strict();
|
|
@@ -1830,10 +1932,6 @@ const pageDesignBoundaryTreatmentSchema = z.discriminatedUnion("kind", [
|
|
|
1830
1932
|
"steep"
|
|
1831
1933
|
]),
|
|
1832
1934
|
direction: z.enum(["forward", "reverse"])
|
|
1833
|
-
}).strict(),
|
|
1834
|
-
z.object({
|
|
1835
|
-
kind: z.literal("legacy-unsupported"),
|
|
1836
|
-
boundaryOptionId: z.string().min(1).transform(asBoundaryOptionId)
|
|
1837
1935
|
}).strict()
|
|
1838
1936
|
]);
|
|
1839
1937
|
const pageDesignUserPinnedBoundaryTreatmentChoiceSchema = z.object({
|
|
@@ -1851,51 +1949,13 @@ const pageDesignBoundaryPinSchema = z.object({
|
|
|
1851
1949
|
nextBlockId: z.string().min(1).transform(asDesignBlockId),
|
|
1852
1950
|
choice: pageDesignUserPinnedBoundaryTreatmentChoiceSchema
|
|
1853
1951
|
}).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
|
|
1854
|
-
const legacyPageDesignBoundaryPinSchema = z.object({
|
|
1855
|
-
boundaryId: z.string().min(1).startsWith("boundary:", { error: "DesignBoundaryId must start with \"boundary:\"." }).transform(asDesignBoundaryId),
|
|
1856
|
-
previousBlockId: z.string().min(1).transform(asDesignBlockId),
|
|
1857
|
-
nextBlockId: z.string().min(1).transform(asDesignBlockId),
|
|
1858
|
-
choice: pageDesignUserPinnedBoundaryChoiceSchema
|
|
1859
|
-
}).strict().superRefine(validateBoundaryPinIdMatchesBlocks);
|
|
1860
|
-
/**
|
|
1861
|
-
* Persisted editor intent stores only user-pinned block Looks and boundary choices.
|
|
1862
|
-
* Missing pins mean `auto`; block-kind/preset compatibility is enforced by resolution,
|
|
1863
|
-
* not by this JSON parse boundary.
|
|
1864
|
-
*/
|
|
1865
|
-
const pageDesignIntentV1Schema = z.object({
|
|
1866
|
-
schemaVersion: z.literal(1),
|
|
1867
|
-
siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId),
|
|
1868
|
-
pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
|
|
1869
|
-
blockLookPins: z.array(pageDesignBlockLookPinSchema),
|
|
1870
|
-
boundaryPins: z.array(legacyPageDesignBoundaryPinSchema)
|
|
1871
|
-
}).strict().superRefine(validateUniquePageDesignPins);
|
|
1872
1952
|
const pageDesignDecisionsV2Schema = z.object({
|
|
1873
1953
|
schemaVersion: z.literal(2),
|
|
1874
1954
|
pageFlowPresetId: z.string().min(1).transform(asPageFlowPresetId),
|
|
1875
1955
|
blockLookPins: z.array(pageDesignBlockLookPinSchema),
|
|
1876
1956
|
boundaryPins: z.array(pageDesignBoundaryPinSchema)
|
|
1877
1957
|
}).strict().superRefine(validateUniquePageDesignPins);
|
|
1878
|
-
|
|
1879
|
-
function normalizeLegacyPageDesignIntent(intent) {
|
|
1880
|
-
return {
|
|
1881
|
-
schemaVersion: 2,
|
|
1882
|
-
siteStyleId: intent.siteStyleId,
|
|
1883
|
-
pageFlowPresetId: intent.pageFlowPresetId,
|
|
1884
|
-
blockLookPins: intent.blockLookPins,
|
|
1885
|
-
boundaryPins: intent.boundaryPins.map((pin) => ({
|
|
1886
|
-
boundaryId: pin.boundaryId,
|
|
1887
|
-
previousBlockId: pin.previousBlockId,
|
|
1888
|
-
nextBlockId: pin.nextBlockId,
|
|
1889
|
-
choice: userPinnedDesignChoice(boundaryTreatmentForBoundaryOptionId(pin.choice.value))
|
|
1890
|
-
}))
|
|
1891
|
-
};
|
|
1892
|
-
}
|
|
1893
|
-
function userPinnedDesignChoice(value) {
|
|
1894
|
-
return {
|
|
1895
|
-
kind: "user-pinned",
|
|
1896
|
-
value
|
|
1897
|
-
};
|
|
1898
|
-
}
|
|
1958
|
+
pageDesignDecisionsV2Schema.safeExtend({ siteStyleId: z.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId) });
|
|
1899
1959
|
function addDuplicateStringIssues(ctx, input) {
|
|
1900
1960
|
const seen = /* @__PURE__ */ new Set();
|
|
1901
1961
|
const duplicates = /* @__PURE__ */ new Set();
|
|
@@ -1930,172 +1990,6 @@ function validateUniquePageDesignPins(intent, ctx) {
|
|
|
1930
1990
|
});
|
|
1931
1991
|
}
|
|
1932
1992
|
//#endregion
|
|
1933
|
-
//#region ../theme-core/src/site-styles/lookResolution.ts
|
|
1934
|
-
function lookDefinitionForId(lookId, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
|
|
1935
|
-
return catalogue.find((entry) => entry.id === lookId) ?? null;
|
|
1936
|
-
}
|
|
1937
|
-
/** Validates destination data independently of manifest rollout availability. */
|
|
1938
|
-
function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
|
|
1939
|
-
validateOfferKnobs(style, catalogue);
|
|
1940
|
-
catalogue.forEach((entry) => lookModes(entry).forEach((mode) => {
|
|
1941
|
-
if (style.offers.some((offer) => catalogue.some((candidate) => candidate.id === offer.id && candidate.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && lookModes(candidate).includes(mode))) && !fallbackEndsAtOffer(entry, mode, style, catalogue, /* @__PURE__ */ new Set())) throw new Error(`Invalid Look fallback for ${style.skin}: ${entry.id} (${mode ?? "default"})`);
|
|
1942
|
-
}));
|
|
1943
|
-
}
|
|
1944
|
-
function fallbackEndsAtOffer(entry, mode, style, catalogue, visited) {
|
|
1945
|
-
if (visited.has(entry.id) || !lookModes(entry).includes(mode)) return false;
|
|
1946
|
-
if (style.offers.some((offer) => offer.id === entry.id)) return true;
|
|
1947
|
-
const nextVisited = /* @__PURE__ */ new Set([...visited, entry.id]);
|
|
1948
|
-
return entry.structure.styleFallback.length > 0 && entry.structure.styleFallback.every((fallback) => {
|
|
1949
|
-
const next = lookDefinitionForId(fallback, catalogue);
|
|
1950
|
-
return next !== null && next.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && fallbackEndsAtOffer(next, mode, style, catalogue, nextVisited);
|
|
1951
|
-
});
|
|
1952
|
-
}
|
|
1953
|
-
const arrangementLookHooks = [
|
|
1954
|
-
"data-fact",
|
|
1955
|
-
"data-card-list",
|
|
1956
|
-
"data-card-list-item",
|
|
1957
|
-
"data-availability",
|
|
1958
|
-
"data-event-places",
|
|
1959
|
-
"data-today",
|
|
1960
|
-
"data-other-month",
|
|
1961
|
-
"data-current",
|
|
1962
|
-
"data-skin",
|
|
1963
|
-
"data-look",
|
|
1964
|
-
"data-arrangement",
|
|
1965
|
-
"data-treat",
|
|
1966
|
-
"data-surface",
|
|
1967
|
-
"data-length",
|
|
1968
|
-
"data-knob-*",
|
|
1969
|
-
"data-mode",
|
|
1970
|
-
"data-has-*",
|
|
1971
|
-
"data-photo-count",
|
|
1972
|
-
"data-slot",
|
|
1973
|
-
"data-control",
|
|
1974
|
-
"data-placeholder-field"
|
|
1975
|
-
];
|
|
1976
|
-
appearancePresets.filter(isArrangementAppearancePreset);
|
|
1977
|
-
/** Closed structural hooks shared by block arrangements and bounded skins. */
|
|
1978
|
-
const arrangementSlotNames = [
|
|
1979
|
-
"contact",
|
|
1980
|
-
"social",
|
|
1981
|
-
"base",
|
|
1982
|
-
"section",
|
|
1983
|
-
"background",
|
|
1984
|
-
"schedule-section",
|
|
1985
|
-
"shop-section",
|
|
1986
|
-
"stack",
|
|
1987
|
-
"inline",
|
|
1988
|
-
"grid",
|
|
1989
|
-
"head",
|
|
1990
|
-
"eyebrow",
|
|
1991
|
-
"heading",
|
|
1992
|
-
"intro",
|
|
1993
|
-
"frame",
|
|
1994
|
-
"copy",
|
|
1995
|
-
"caption",
|
|
1996
|
-
"headline",
|
|
1997
|
-
"lede",
|
|
1998
|
-
"actions",
|
|
1999
|
-
"media",
|
|
2000
|
-
"photo",
|
|
2001
|
-
"gallery",
|
|
2002
|
-
"sticker",
|
|
2003
|
-
"facts",
|
|
2004
|
-
"fact-label",
|
|
2005
|
-
"fact-value",
|
|
2006
|
-
"chips",
|
|
2007
|
-
"chip",
|
|
2008
|
-
"figure",
|
|
2009
|
-
"figure-value",
|
|
2010
|
-
"figure-label",
|
|
2011
|
-
"schedule",
|
|
2012
|
-
"dates",
|
|
2013
|
-
"date-places",
|
|
2014
|
-
"availability",
|
|
2015
|
-
"layout",
|
|
2016
|
-
"items",
|
|
2017
|
-
"item",
|
|
2018
|
-
"lead",
|
|
2019
|
-
"item-media",
|
|
2020
|
-
"item-body",
|
|
2021
|
-
"icon",
|
|
2022
|
-
"numeral",
|
|
2023
|
-
"item-title",
|
|
2024
|
-
"item-text",
|
|
2025
|
-
"item-actions",
|
|
2026
|
-
"list",
|
|
2027
|
-
"row",
|
|
2028
|
-
"row-continued",
|
|
2029
|
-
"group",
|
|
2030
|
-
"group-label",
|
|
2031
|
-
"group-day",
|
|
2032
|
-
"group-date",
|
|
2033
|
-
"date",
|
|
2034
|
-
"weekday",
|
|
2035
|
-
"day",
|
|
2036
|
-
"month",
|
|
2037
|
-
"date-label",
|
|
2038
|
-
"time",
|
|
2039
|
-
"price",
|
|
2040
|
-
"price-amount",
|
|
2041
|
-
"price-unit",
|
|
2042
|
-
"price-note",
|
|
2043
|
-
"mark",
|
|
2044
|
-
"navigation",
|
|
2045
|
-
"time-start",
|
|
2046
|
-
"time-length",
|
|
2047
|
-
"what",
|
|
2048
|
-
"item-meta",
|
|
2049
|
-
"places",
|
|
2050
|
-
"places-low",
|
|
2051
|
-
"places-full",
|
|
2052
|
-
"action",
|
|
2053
|
-
"panel",
|
|
2054
|
-
"panel-heading",
|
|
2055
|
-
"more",
|
|
2056
|
-
"quote",
|
|
2057
|
-
"attribution",
|
|
2058
|
-
"outcome",
|
|
2059
|
-
"controls",
|
|
2060
|
-
"control",
|
|
2061
|
-
"counter"
|
|
2062
|
-
];
|
|
2063
|
-
/** A style cannot add a detail from another block that would silently do nothing. */
|
|
2064
|
-
function validateOfferKnobs(style, catalogue) {
|
|
2065
|
-
style.offers.forEach((offer) => {
|
|
2066
|
-
const look = lookDefinitionForId(offer.id, catalogue);
|
|
2067
|
-
if (!look) return;
|
|
2068
|
-
[...offer.addKnobs ?? [], ...Object.values(offer.surfaceTints ?? {}).flatMap((tint) => tint?.knob ? [tint.knob] : [])].forEach((knob) => {
|
|
2069
|
-
if (!look.blockKinds.some((block) => Array.isArray(lookKnobBlocks[knob]) ? lookKnobBlocks[knob].includes(block) : block === lookKnobBlocks[knob])) throw new Error(`Invalid knob ${knob} on ${look.id}`);
|
|
2070
|
-
});
|
|
2071
|
-
});
|
|
2072
|
-
}
|
|
2073
|
-
/** One role resolver, including section inheritance and ground-specific overrides. */
|
|
2074
|
-
function resolveItemSurface(role, ground, style) {
|
|
2075
|
-
const mapped = style.roleMap[role];
|
|
2076
|
-
const name = typeof mapped === "string" ? mapped : mapped[ground] ?? mapped.default;
|
|
2077
|
-
if (name === "section") return { kind: "inherit" };
|
|
2078
|
-
const spec = style.surfaces[name];
|
|
2079
|
-
if (!spec) throw new Error(`Undeclared item surface ${name}`);
|
|
2080
|
-
return resolveSurface(spec, style.context);
|
|
2081
|
-
}
|
|
2082
|
-
/** Fixed standalone slots and collection slots share the role resolver. */
|
|
2083
|
-
function resolveLookSlotSurfaces(look, roles, surfaces) {
|
|
2084
|
-
const arrangement = Object.values(look.structure.byMode)[0];
|
|
2085
|
-
const container = arrangement === "compact" ? "panel" : look.target === "events" ? "list" : "items";
|
|
2086
|
-
const entries = [
|
|
2087
|
-
...Object.entries(look.structure.slotRoles ?? {}).map(([slot, role]) => [slot, surfaces[role]]),
|
|
2088
|
-
...roles.container ? [[container, surfaces[roles.container]]] : [],
|
|
2089
|
-
...roles.items ? [
|
|
2090
|
-
["item", surfaces[roles.items]],
|
|
2091
|
-
["row", surfaces[roles.items]],
|
|
2092
|
-
["row-continued", surfaces[roles.items]]
|
|
2093
|
-
] : [],
|
|
2094
|
-
...roles.at?.first && arrangement === "lead-support" ? [["lead", surfaces[roles.at.first]]] : []
|
|
2095
|
-
];
|
|
2096
|
-
return Object.fromEntries(entries);
|
|
2097
|
-
}
|
|
2098
|
-
//#endregion
|
|
2099
1993
|
//#region ../theme-core/src/site-styles/footerLookDefaults.ts
|
|
2100
1994
|
const defaultFooterLookRecipes = {
|
|
2101
1995
|
"footer-centred-name": {
|
|
@@ -4647,26 +4541,221 @@ const measureNight = defineCuratedPalette({
|
|
|
4647
4541
|
}
|
|
4648
4542
|
]
|
|
4649
4543
|
});
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4544
|
+
const loomHearth = defineCuratedPalette({
|
|
4545
|
+
authoringKey: "loom-hearth",
|
|
4546
|
+
name: "Loom — Hearth",
|
|
4547
|
+
description: "Warm paper, espresso ink and a rust patch.",
|
|
4548
|
+
tags: {
|
|
4549
|
+
tone: "classic",
|
|
4550
|
+
energy: "calm",
|
|
4551
|
+
era: "organic"
|
|
4552
|
+
},
|
|
4553
|
+
mode: "light",
|
|
4554
|
+
colors: [
|
|
4555
|
+
{
|
|
4556
|
+
name: "primary",
|
|
4557
|
+
hex: "#a2471f"
|
|
4558
|
+
},
|
|
4559
|
+
{
|
|
4560
|
+
name: "secondary",
|
|
4561
|
+
hex: "#33261d"
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
name: "accent",
|
|
4565
|
+
hex: "#7f5f0e"
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
name: "success",
|
|
4569
|
+
hex: "#2c7a45"
|
|
4570
|
+
},
|
|
4571
|
+
{
|
|
4572
|
+
name: "warning",
|
|
4573
|
+
hex: "#8a5a00"
|
|
4574
|
+
},
|
|
4575
|
+
{
|
|
4576
|
+
name: "destructive",
|
|
4577
|
+
hex: "#b3261e"
|
|
4578
|
+
},
|
|
4579
|
+
{
|
|
4580
|
+
name: "background",
|
|
4581
|
+
hex: "#faf5ec"
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
name: "surface",
|
|
4585
|
+
hex: "#fffdf7"
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
name: "surfaceAlt",
|
|
4589
|
+
hex: "#f0e7d5"
|
|
4590
|
+
},
|
|
4591
|
+
{
|
|
4592
|
+
name: "muted",
|
|
4593
|
+
hex: "#61544a"
|
|
4594
|
+
},
|
|
4595
|
+
{
|
|
4596
|
+
name: "text",
|
|
4597
|
+
hex: "#2c211a"
|
|
4598
|
+
},
|
|
4599
|
+
{
|
|
4600
|
+
name: "primaryForeground",
|
|
4601
|
+
hex: "#fff6e8"
|
|
4602
|
+
},
|
|
4603
|
+
{
|
|
4604
|
+
name: "border",
|
|
4605
|
+
hex: "#8a7660"
|
|
4606
|
+
}
|
|
4607
|
+
]
|
|
4608
|
+
});
|
|
4609
|
+
const loomFlax = defineCuratedPalette({
|
|
4610
|
+
authoringKey: "loom-flax",
|
|
4611
|
+
name: "Loom — Flax",
|
|
4612
|
+
description: "Pale sage, pine ink and a deep green patch.",
|
|
4613
|
+
tags: {
|
|
4614
|
+
tone: "classic",
|
|
4615
|
+
energy: "calm",
|
|
4616
|
+
era: "organic"
|
|
4617
|
+
},
|
|
4618
|
+
mode: "light",
|
|
4619
|
+
colors: [
|
|
4620
|
+
{
|
|
4621
|
+
name: "primary",
|
|
4622
|
+
hex: "#33695a"
|
|
4623
|
+
},
|
|
4624
|
+
{
|
|
4625
|
+
name: "secondary",
|
|
4626
|
+
hex: "#222b26"
|
|
4627
|
+
},
|
|
4628
|
+
{
|
|
4629
|
+
name: "accent",
|
|
4630
|
+
hex: "#a34d22"
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
name: "success",
|
|
4634
|
+
hex: "#2c7a45"
|
|
4635
|
+
},
|
|
4636
|
+
{
|
|
4637
|
+
name: "warning",
|
|
4638
|
+
hex: "#7a5200"
|
|
4639
|
+
},
|
|
4640
|
+
{
|
|
4641
|
+
name: "destructive",
|
|
4642
|
+
hex: "#a93226"
|
|
4643
|
+
},
|
|
4644
|
+
{
|
|
4645
|
+
name: "background",
|
|
4646
|
+
hex: "#eef1ea"
|
|
4647
|
+
},
|
|
4648
|
+
{
|
|
4649
|
+
name: "surface",
|
|
4650
|
+
hex: "#f9faf6"
|
|
4651
|
+
},
|
|
4652
|
+
{
|
|
4653
|
+
name: "surfaceAlt",
|
|
4654
|
+
hex: "#dfe4d6"
|
|
4655
|
+
},
|
|
4656
|
+
{
|
|
4657
|
+
name: "muted",
|
|
4658
|
+
hex: "#4c5a51"
|
|
4659
|
+
},
|
|
4660
|
+
{
|
|
4661
|
+
name: "text",
|
|
4662
|
+
hex: "#222c27"
|
|
4663
|
+
},
|
|
4664
|
+
{
|
|
4665
|
+
name: "primaryForeground",
|
|
4666
|
+
hex: "#f2f6ec"
|
|
4667
|
+
},
|
|
4668
|
+
{
|
|
4669
|
+
name: "border",
|
|
4670
|
+
hex: "#68776d"
|
|
4671
|
+
}
|
|
4672
|
+
]
|
|
4673
|
+
});
|
|
4674
|
+
const loomEmber = defineCuratedPalette({
|
|
4675
|
+
authoringKey: "loom-ember",
|
|
4676
|
+
name: "Loom — Ember",
|
|
4677
|
+
description: "Deep espresso, cream ink and a terracotta patch.",
|
|
4678
|
+
tags: {
|
|
4679
|
+
tone: "classic",
|
|
4680
|
+
energy: "calm",
|
|
4681
|
+
era: "organic"
|
|
4682
|
+
},
|
|
4683
|
+
mode: "dark",
|
|
4684
|
+
colors: [
|
|
4685
|
+
{
|
|
4686
|
+
name: "primary",
|
|
4687
|
+
hex: "#a95224"
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
name: "secondary",
|
|
4691
|
+
hex: "#140d0a"
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
name: "accent",
|
|
4695
|
+
hex: "#e0a83c"
|
|
4696
|
+
},
|
|
4697
|
+
{
|
|
4698
|
+
name: "success",
|
|
4699
|
+
hex: "#7cc79b"
|
|
4700
|
+
},
|
|
4701
|
+
{
|
|
4702
|
+
name: "warning",
|
|
4703
|
+
hex: "#e3b25c"
|
|
4704
|
+
},
|
|
4705
|
+
{
|
|
4706
|
+
name: "destructive",
|
|
4707
|
+
hex: "#ec8d80"
|
|
4708
|
+
},
|
|
4709
|
+
{
|
|
4710
|
+
name: "background",
|
|
4711
|
+
hex: "#201512"
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
name: "surface",
|
|
4715
|
+
hex: "#2b1e19"
|
|
4716
|
+
},
|
|
4717
|
+
{
|
|
4718
|
+
name: "surfaceAlt",
|
|
4719
|
+
hex: "#170f0c"
|
|
4720
|
+
},
|
|
4721
|
+
{
|
|
4722
|
+
name: "muted",
|
|
4723
|
+
hex: "#c9b29a"
|
|
4724
|
+
},
|
|
4725
|
+
{
|
|
4726
|
+
name: "text",
|
|
4727
|
+
hex: "#f4e8d4"
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
name: "primaryForeground",
|
|
4731
|
+
hex: "#fff6e8"
|
|
4732
|
+
},
|
|
4733
|
+
{
|
|
4734
|
+
name: "border",
|
|
4735
|
+
hex: "#9a8264"
|
|
4736
|
+
}
|
|
4737
|
+
]
|
|
4738
|
+
});
|
|
4739
|
+
//#endregion
|
|
4740
|
+
//#region ../theme-core/src/palette/curated/index.ts
|
|
4741
|
+
function admitCuratedPaletteDefinition(definition) {
|
|
4742
|
+
return {
|
|
4743
|
+
...definition,
|
|
4744
|
+
valueKey: definition.valueKey
|
|
4745
|
+
};
|
|
4746
|
+
}
|
|
4747
|
+
const curatedPalettes = [
|
|
4748
|
+
admitCuratedPaletteDefinition(brandLedCool),
|
|
4749
|
+
admitCuratedPaletteDefinition(brandLedWarm),
|
|
4750
|
+
admitCuratedPaletteDefinition(brandLedJewel),
|
|
4751
|
+
admitCuratedPaletteDefinition(brandLedBurgundyGold),
|
|
4752
|
+
admitCuratedPaletteDefinition(brandLedSpruce),
|
|
4753
|
+
admitCuratedPaletteDefinition(warmNeutralClay),
|
|
4754
|
+
admitCuratedPaletteDefinition(warmNeutralCream),
|
|
4755
|
+
admitCuratedPaletteDefinition(warmNeutralSoftEarth),
|
|
4756
|
+
admitCuratedPaletteDefinition(warmNeutralForest),
|
|
4757
|
+
admitCuratedPaletteDefinition(highContrastInk),
|
|
4758
|
+
admitCuratedPaletteDefinition(highContrastCharcoal),
|
|
4670
4759
|
admitCuratedPaletteDefinition(highContrastMonochrome),
|
|
4671
4760
|
admitCuratedPaletteDefinition(softNaturalSage),
|
|
4672
4761
|
admitCuratedPaletteDefinition(softNaturalStone),
|
|
@@ -4677,6 +4766,18 @@ const curatedPalettes = [
|
|
|
4677
4766
|
];
|
|
4678
4767
|
/** Style-owned suggestions are readable for compilation, never globally offered. */
|
|
4679
4768
|
const styleSuggestedPalettes = [
|
|
4769
|
+
{
|
|
4770
|
+
...admitCuratedPaletteDefinition(loomHearth),
|
|
4771
|
+
ownerStyleId: "site-style:loom"
|
|
4772
|
+
},
|
|
4773
|
+
{
|
|
4774
|
+
...admitCuratedPaletteDefinition(loomFlax),
|
|
4775
|
+
ownerStyleId: "site-style:loom"
|
|
4776
|
+
},
|
|
4777
|
+
{
|
|
4778
|
+
...admitCuratedPaletteDefinition(loomEmber),
|
|
4779
|
+
ownerStyleId: "site-style:loom"
|
|
4780
|
+
},
|
|
4680
4781
|
{
|
|
4681
4782
|
...admitCuratedPaletteDefinition(fulcrumDeepGreen),
|
|
4682
4783
|
ownerStyleId: "site-style:fulcrum"
|
|
@@ -6145,6 +6246,52 @@ function defaultTypographyForRecipe(recipe) {
|
|
|
6145
6246
|
case "classic-serif": return classicSerifTypography;
|
|
6146
6247
|
}
|
|
6147
6248
|
}
|
|
6249
|
+
/** Loom: the working face is Figtree; Fraunces owns display and quote copy. */
|
|
6250
|
+
const loomTypography = {
|
|
6251
|
+
body: {
|
|
6252
|
+
family: "Figtree, system-ui, sans-serif",
|
|
6253
|
+
size: "lg",
|
|
6254
|
+
weight: "regular",
|
|
6255
|
+
lineHeight: "relaxed",
|
|
6256
|
+
letterSpacing: "normal"
|
|
6257
|
+
},
|
|
6258
|
+
smallHeading: {
|
|
6259
|
+
family: "Figtree, system-ui, sans-serif",
|
|
6260
|
+
weight: "semibold"
|
|
6261
|
+
},
|
|
6262
|
+
headings: {
|
|
6263
|
+
default: {
|
|
6264
|
+
family: "Fraunces, Georgia, serif",
|
|
6265
|
+
weight: "semibold",
|
|
6266
|
+
lineHeight: "normal",
|
|
6267
|
+
letterSpacing: "tight",
|
|
6268
|
+
italic: null,
|
|
6269
|
+
case: null
|
|
6270
|
+
},
|
|
6271
|
+
h1: {
|
|
6272
|
+
size: "2xl",
|
|
6273
|
+
weight: "semibold",
|
|
6274
|
+
lineHeight: "tight",
|
|
6275
|
+
letterSpacing: "tight",
|
|
6276
|
+
italic: null
|
|
6277
|
+
},
|
|
6278
|
+
h2: {
|
|
6279
|
+
size: "xl",
|
|
6280
|
+
weight: "semibold",
|
|
6281
|
+
lineHeight: "snug",
|
|
6282
|
+
letterSpacing: "tight",
|
|
6283
|
+
italic: null
|
|
6284
|
+
},
|
|
6285
|
+
h3: {
|
|
6286
|
+
size: "md",
|
|
6287
|
+
weight: "semibold",
|
|
6288
|
+
lineHeight: "snug",
|
|
6289
|
+
letterSpacing: "normal",
|
|
6290
|
+
italic: null
|
|
6291
|
+
}
|
|
6292
|
+
},
|
|
6293
|
+
scale: "spacious"
|
|
6294
|
+
};
|
|
6148
6295
|
//#endregion
|
|
6149
6296
|
//#region ../theme-core/src/site-styles/designState.ts
|
|
6150
6297
|
const designResolutionPolicySchema = z.enum([
|
|
@@ -6155,24 +6302,17 @@ const designResolutionPolicySchema = z.enum([
|
|
|
6155
6302
|
]);
|
|
6156
6303
|
const runtimeStyleFieldNameSchema = z.enum(themeV2RuntimeStyleFieldNames);
|
|
6157
6304
|
const nonEmptyRuntimeStyleFieldNamesSchema = z.array(runtimeStyleFieldNameSchema).min(1).transform((fields) => [fields[0], ...fields.slice(1)]);
|
|
6158
|
-
const styleAuthoritySchema = z.discriminatedUnion("kind", [
|
|
6159
|
-
z.
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
z.
|
|
6168
|
-
|
|
6169
|
-
reason: z.enum(["pre-theme-v2", "manual-runtime-fields"])
|
|
6170
|
-
}).strict(),
|
|
6171
|
-
z.object({
|
|
6172
|
-
kind: z.literal("advanced-detached"),
|
|
6173
|
-
reason: z.literal("detached-custom-runtime-fields")
|
|
6174
|
-
}).strict()
|
|
6175
|
-
]);
|
|
6305
|
+
const styleAuthoritySchema = z.discriminatedUnion("kind", [z.object({
|
|
6306
|
+
kind: z.literal("theme-v2"),
|
|
6307
|
+
source: designResolutionPolicySchema,
|
|
6308
|
+
siteStyleId: z.string().min(1).transform(asSiteStyleId),
|
|
6309
|
+
templateId: z.string().min(1).transform(asDesignSystemTemplateId),
|
|
6310
|
+
templateVersion: z.number().int().nonnegative(),
|
|
6311
|
+
resolverVersion: z.number().int().nonnegative()
|
|
6312
|
+
}).strict(), z.object({
|
|
6313
|
+
kind: z.literal("advanced-detached"),
|
|
6314
|
+
reason: z.literal("detached-custom-runtime-fields")
|
|
6315
|
+
}).strict()]);
|
|
6176
6316
|
z.object({
|
|
6177
6317
|
unit: z.literal("block-runtime-fields"),
|
|
6178
6318
|
blockId: z.string().min(1).transform(asDesignBlockId),
|
|
@@ -6180,63 +6320,24 @@ z.object({
|
|
|
6180
6320
|
authority: styleAuthoritySchema
|
|
6181
6321
|
}).strict();
|
|
6182
6322
|
asPageFlowPresetId("flow:quiet"), noneBoundaryOption.id, asPageFlowPresetId("flow:balanced"), softBoundaryOption.id, asPageFlowPresetId("flow:expressive"), spaciousBoundaryOption.id;
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
const
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
hideDisallowedLooks: true,
|
|
6202
|
-
hideDisallowedLayouts: true
|
|
6203
|
-
}
|
|
6204
|
-
}];
|
|
6205
|
-
function deriveSiteStyleBlockPolicy(input) {
|
|
6206
|
-
return registeredSiteStyleBlockPolicies.find((policy) => policy.siteStyleId === input.siteStyleId && policy.blockKind === input.blockKind) ?? { kind: "open" };
|
|
6207
|
-
}
|
|
6208
|
-
function isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) {
|
|
6209
|
-
switch (policy.kind) {
|
|
6210
|
-
case "open": return true;
|
|
6211
|
-
case "locked-look-and-layouts": return policy.allowedLayoutVariantKeys.includes(layoutVariantKey);
|
|
6212
|
-
default: return assertNever(policy, "Unhandled site style block policy");
|
|
6213
|
-
}
|
|
6214
|
-
}
|
|
6215
|
-
function normalizeLayoutVariantForPolicy(policy, layoutVariantKey) {
|
|
6216
|
-
switch (policy.kind) {
|
|
6217
|
-
case "open": return layoutVariantKey ?? null;
|
|
6218
|
-
case "locked-look-and-layouts": return layoutVariantKey && isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) ? layoutVariantKey : policy.defaultLayoutVariantKey;
|
|
6219
|
-
default: return assertNever(policy, "Unhandled site style block policy");
|
|
6220
|
-
}
|
|
6221
|
-
}
|
|
6222
|
-
/**
|
|
6223
|
-
* Curated library of gradient presets.
|
|
6224
|
-
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
6225
|
-
*/
|
|
6226
|
-
const GRADIENT_PRESETS = [
|
|
6227
|
-
{
|
|
6228
|
-
id: "primary-secondary",
|
|
6229
|
-
name: "Primary to Secondary",
|
|
6230
|
-
description: "Blend your primary and secondary brand colors",
|
|
6231
|
-
type: "linear",
|
|
6232
|
-
angle: 135,
|
|
6233
|
-
stops: [{
|
|
6234
|
-
color: "primary-500",
|
|
6235
|
-
position: 0
|
|
6236
|
-
}, {
|
|
6237
|
-
color: "secondary-500",
|
|
6238
|
-
position: 100
|
|
6239
|
-
}]
|
|
6323
|
+
/**
|
|
6324
|
+
* Curated library of gradient presets.
|
|
6325
|
+
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
6326
|
+
*/
|
|
6327
|
+
const GRADIENT_PRESETS = [
|
|
6328
|
+
{
|
|
6329
|
+
id: "primary-secondary",
|
|
6330
|
+
name: "Primary to Secondary",
|
|
6331
|
+
description: "Blend your primary and secondary brand colors",
|
|
6332
|
+
type: "linear",
|
|
6333
|
+
angle: 135,
|
|
6334
|
+
stops: [{
|
|
6335
|
+
color: "primary-500",
|
|
6336
|
+
position: 0
|
|
6337
|
+
}, {
|
|
6338
|
+
color: "secondary-500",
|
|
6339
|
+
position: 100
|
|
6340
|
+
}]
|
|
6240
6341
|
},
|
|
6241
6342
|
{
|
|
6242
6343
|
id: "primary-accent",
|
|
@@ -6592,8 +6693,39 @@ const curatedSiteStyleIdValues = [
|
|
|
6592
6693
|
"site-style:poster",
|
|
6593
6694
|
"site-style:lantern",
|
|
6594
6695
|
"site-style:measure",
|
|
6595
|
-
"site-style:folio"
|
|
6696
|
+
"site-style:folio",
|
|
6697
|
+
"site-style:loom"
|
|
6596
6698
|
];
|
|
6699
|
+
/** Keyed by the offered looks, so adding a look without its hero Look doesn't compile. */
|
|
6700
|
+
const bookingPageNoPhotoHeroLookIds = {
|
|
6701
|
+
"site-style:fulcrum": "hero-photo-beside-text",
|
|
6702
|
+
"site-style:folio": "hero-page-head",
|
|
6703
|
+
"site-style:measure": "hero-page-head",
|
|
6704
|
+
"site-style:grounded-practice": "hero-contained-intro",
|
|
6705
|
+
"site-style:lantern": "hero-framed-title",
|
|
6706
|
+
"site-style:poster": "hero-page-head"
|
|
6707
|
+
};
|
|
6708
|
+
function bookingPageOfferingFor(siteStyleId) {
|
|
6709
|
+
const entry = Object.entries(bookingPageNoPhotoHeroLookIds).find(([id]) => id === siteStyleId);
|
|
6710
|
+
return entry ? { noPhotoHeroLookId: asAppearancePresetId(entry[1]) } : void 0;
|
|
6711
|
+
}
|
|
6712
|
+
function clientStyleMatchesSite(siteSlugs, target) {
|
|
6713
|
+
if (target.audience !== "site-picker" && target.audience !== "local-demo") return false;
|
|
6714
|
+
return target.siteSlug != null && siteSlugs.includes(target.siteSlug);
|
|
6715
|
+
}
|
|
6716
|
+
/** The same eligibility decision governs offering and the apply write boundary. */
|
|
6717
|
+
function siteStyleOfferingDecision(offering, target) {
|
|
6718
|
+
if (target.audience === "lab") return { kind: "offered" };
|
|
6719
|
+
const localDemo = target.audience === "local-demo" && target.environment === "local-development";
|
|
6720
|
+
switch (offering.kind) {
|
|
6721
|
+
case "public": return target.audience === "booking-page" && !offering.bookingPage ? { kind: "audience-mismatch" } : { kind: "offered" };
|
|
6722
|
+
case "lab": return localDemo ? { kind: "offered" } : { kind: "lab" };
|
|
6723
|
+
case "client": return localDemo || clientStyleMatchesSite(offering.siteSlugs, target) ? { kind: "offered" } : { kind: "client-site-mismatch" };
|
|
6724
|
+
}
|
|
6725
|
+
}
|
|
6726
|
+
function offeredSiteStyles(target, catalogue = curatedSiteStyles) {
|
|
6727
|
+
return catalogue.filter((style) => siteStyleOfferingDecision(style.offering, target).kind === "offered");
|
|
6728
|
+
}
|
|
6597
6729
|
const quietBudget = {
|
|
6598
6730
|
accentDensity: "low",
|
|
6599
6731
|
panelDensity: "medium",
|
|
@@ -6789,6 +6921,10 @@ function defineHeaderCuration(input) {
|
|
|
6789
6921
|
return [toEntry(first), ...remaining.map(toEntry)];
|
|
6790
6922
|
}
|
|
6791
6923
|
const headerCurationBySiteStyle = {
|
|
6924
|
+
"site-style:loom": defineHeaderCuration([{
|
|
6925
|
+
layoutId: "classic",
|
|
6926
|
+
styleIds: ["serif-line"]
|
|
6927
|
+
}]),
|
|
6792
6928
|
"site-style:clarity-zen-blue": defineHeaderCuration([{
|
|
6793
6929
|
layoutId: "centered",
|
|
6794
6930
|
styleIds: [
|
|
@@ -6950,7 +7086,37 @@ const headerCurationBySiteStyle = {
|
|
|
6950
7086
|
styleIds: ["fine-line", "minimal"]
|
|
6951
7087
|
}])
|
|
6952
7088
|
};
|
|
7089
|
+
/** Optional authored overrides remain absent when the catalogue did not supply them. */
|
|
7090
|
+
function authoredSiteStyleOverrides(input) {
|
|
7091
|
+
return {
|
|
7092
|
+
...input.themeOverrides ? { themeOverrides: input.themeOverrides } : {},
|
|
7093
|
+
...input.designRuntimeRules ? { designRuntimeRules: input.designRuntimeRules } : {},
|
|
7094
|
+
...input.defaultBlockVariants ? { defaultBlockVariants: input.defaultBlockVariants } : {},
|
|
7095
|
+
...input.heroTypography ? { heroTypography: input.heroTypography } : {}
|
|
7096
|
+
};
|
|
7097
|
+
}
|
|
7098
|
+
function siteStyleFontDefaults(input) {
|
|
7099
|
+
const typography = input.typography ?? defaultTypographyForRecipe(input.tokenRecipes.typography);
|
|
7100
|
+
return {
|
|
7101
|
+
typography,
|
|
7102
|
+
fontPairings: input.fontPairings ?? [{
|
|
7103
|
+
id: "look-default",
|
|
7104
|
+
heading: typography.headings.default.family,
|
|
7105
|
+
body: typography.body.family
|
|
7106
|
+
}]
|
|
7107
|
+
};
|
|
7108
|
+
}
|
|
7109
|
+
function withBookingPageOffering(offering, bookingPage) {
|
|
7110
|
+
return bookingPage ? {
|
|
7111
|
+
...offering,
|
|
7112
|
+
bookingPage
|
|
7113
|
+
} : offering;
|
|
7114
|
+
}
|
|
6953
7115
|
function defineCuratedSiteStyle(input) {
|
|
7116
|
+
const offering = input.offering ?? {
|
|
7117
|
+
kind: "public",
|
|
7118
|
+
generation: { kind: "explicit_only" }
|
|
7119
|
+
};
|
|
6954
7120
|
const recommendedAppearancePresetIds = (input.recommendedAppearancePresetIds ?? []).map(asAppearancePresetId);
|
|
6955
7121
|
return {
|
|
6956
7122
|
id: asSiteStyleId(input.id),
|
|
@@ -6958,19 +7124,14 @@ function defineCuratedSiteStyle(input) {
|
|
|
6958
7124
|
description: input.description,
|
|
6959
7125
|
generationBrief: input.generationBrief,
|
|
6960
7126
|
selectionKeywordRules: input.selectionKeywordRules ?? [],
|
|
6961
|
-
offering:
|
|
6962
|
-
kind: "public",
|
|
6963
|
-
generation: { kind: "explicit_only" }
|
|
6964
|
-
},
|
|
7127
|
+
offering: offering.kind === "public" ? withBookingPageOffering(offering, bookingPageOfferingFor(input.id)) : offering,
|
|
6965
7128
|
template: curatedStyleTemplate(input),
|
|
6966
7129
|
contentTemplateDefaults: input.contentTemplateDefaults,
|
|
6967
7130
|
headingDecoration: input.headingDecoration ?? noHeadingDecoration,
|
|
6968
|
-
...input
|
|
6969
|
-
...input.designRuntimeRules ? { designRuntimeRules: input.designRuntimeRules } : {},
|
|
7131
|
+
...authoredSiteStyleOverrides(input),
|
|
6970
7132
|
componentRuntimeRules: input.componentRuntimeRules ?? componentRuntimeRulesForTokenRecipes(input.tokenRecipes),
|
|
6971
|
-
...input.defaultBlockVariants ? { defaultBlockVariants: input.defaultBlockVariants } : {},
|
|
6972
7133
|
looks: input.looks ?? {
|
|
6973
|
-
kind: "
|
|
7134
|
+
kind: "recipe",
|
|
6974
7135
|
recommendedAppearancePresetIds
|
|
6975
7136
|
},
|
|
6976
7137
|
headerCuration: headerCurationBySiteStyle[input.id],
|
|
@@ -6979,8 +7140,7 @@ function defineCuratedSiteStyle(input) {
|
|
|
6979
7140
|
recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
|
|
6980
7141
|
buttonStyleChoices: input.buttonStyleChoices,
|
|
6981
7142
|
paletteRecommendations: input.paletteRecommendations,
|
|
6982
|
-
|
|
6983
|
-
...input.heroTypography ? { heroTypography: input.heroTypography } : {}
|
|
7143
|
+
...siteStyleFontDefaults(input)
|
|
6984
7144
|
};
|
|
6985
7145
|
}
|
|
6986
7146
|
function buttonChoice(styleId, note, parameters) {
|
|
@@ -7007,66 +7167,82 @@ function paletteRecommendation(authoringKey, note) {
|
|
|
7007
7167
|
*/
|
|
7008
7168
|
const id = asAppearancePresetId;
|
|
7009
7169
|
const quieterOrStandard = { titleSize: ["quiet", "auto"] };
|
|
7010
|
-
/**
|
|
7011
|
-
const
|
|
7170
|
+
/** Loom: sheets for cards, a ground-aware statement, and highlights on the section. */
|
|
7171
|
+
const loomRoles = {
|
|
7012
7172
|
card: "sheet",
|
|
7013
7173
|
statement: {
|
|
7014
|
-
default: "
|
|
7015
|
-
|
|
7174
|
+
default: "brand",
|
|
7175
|
+
brand: "deep",
|
|
7176
|
+
deep: "inverse"
|
|
7016
7177
|
},
|
|
7017
|
-
highlight: "
|
|
7178
|
+
highlight: "section"
|
|
7018
7179
|
};
|
|
7019
|
-
const
|
|
7020
|
-
const folioLooks = {
|
|
7180
|
+
const loomLooks = {
|
|
7021
7181
|
kind: "offers",
|
|
7022
|
-
skin: "
|
|
7182
|
+
skin: "loom",
|
|
7023
7183
|
skinTokens: {
|
|
7024
|
-
radius: "
|
|
7025
|
-
rule: "
|
|
7026
|
-
"mark-length": "
|
|
7027
|
-
"mark-weight": "
|
|
7028
|
-
|
|
7184
|
+
radius: "14px",
|
|
7185
|
+
rule: "2px",
|
|
7186
|
+
"mark-length": "30px",
|
|
7187
|
+
"mark-weight": "4px",
|
|
7188
|
+
plate: "10px",
|
|
7189
|
+
gutter: "24px",
|
|
7029
7190
|
"copy-gap": "1.25rem",
|
|
7030
|
-
"stack-gap": "2.5rem"
|
|
7191
|
+
"stack-gap": "2.5rem",
|
|
7192
|
+
"shadow-offset": "3px",
|
|
7193
|
+
wrap: "1140px",
|
|
7194
|
+
margin: "2.5rem"
|
|
7031
7195
|
},
|
|
7032
7196
|
fontLoading: {
|
|
7033
|
-
extraHeadingFontWeights: [
|
|
7034
|
-
|
|
7197
|
+
extraHeadingFontWeights: [
|
|
7198
|
+
560,
|
|
7199
|
+
600,
|
|
7200
|
+
640
|
|
7201
|
+
],
|
|
7202
|
+
italicHeadingFontWeights: [400, 480],
|
|
7203
|
+
extraBodyFontWeights: [
|
|
7204
|
+
400,
|
|
7205
|
+
600,
|
|
7206
|
+
700
|
|
7207
|
+
]
|
|
7035
7208
|
},
|
|
7036
7209
|
surfaces: {
|
|
7037
7210
|
base: {
|
|
7038
7211
|
kind: "token",
|
|
7039
|
-
token: "background"
|
|
7040
|
-
foreground: folioLinks
|
|
7041
|
-
},
|
|
7042
|
-
sheet: {
|
|
7043
|
-
kind: "token",
|
|
7044
|
-
token: "surface",
|
|
7045
|
-
roleOnly: true,
|
|
7046
|
-
foreground: folioLinks
|
|
7212
|
+
token: "background"
|
|
7047
7213
|
},
|
|
7048
7214
|
band: {
|
|
7049
7215
|
kind: "token",
|
|
7050
|
-
token: "
|
|
7051
|
-
foreground: folioLinks
|
|
7216
|
+
token: "surfaceAlt"
|
|
7052
7217
|
},
|
|
7053
7218
|
brand: {
|
|
7054
7219
|
kind: "token",
|
|
7055
7220
|
token: "primary",
|
|
7056
|
-
|
|
7221
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
|
|
7057
7222
|
},
|
|
7058
7223
|
deep: {
|
|
7059
7224
|
kind: "token",
|
|
7060
|
-
token: "
|
|
7061
|
-
|
|
7225
|
+
token: "secondary",
|
|
7226
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
|
|
7227
|
+
},
|
|
7228
|
+
sheet: {
|
|
7229
|
+
kind: "token",
|
|
7230
|
+
token: "surface",
|
|
7231
|
+
roleOnly: true
|
|
7232
|
+
},
|
|
7233
|
+
inverse: {
|
|
7234
|
+
kind: "token",
|
|
7235
|
+
token: "text",
|
|
7236
|
+
roleOnly: true,
|
|
7237
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("background") }
|
|
7062
7238
|
}
|
|
7063
7239
|
},
|
|
7064
7240
|
rhythm: {
|
|
7065
7241
|
"flow:quiet": [
|
|
7066
|
-
"base",
|
|
7067
7242
|
"base",
|
|
7068
7243
|
"band",
|
|
7069
7244
|
"base",
|
|
7245
|
+
"base",
|
|
7070
7246
|
"band",
|
|
7071
7247
|
"base"
|
|
7072
7248
|
],
|
|
@@ -7074,298 +7250,417 @@ const folioLooks = {
|
|
|
7074
7250
|
"base",
|
|
7075
7251
|
"band",
|
|
7076
7252
|
"base",
|
|
7077
|
-
"
|
|
7078
|
-
"
|
|
7079
|
-
"
|
|
7253
|
+
"band",
|
|
7254
|
+
"brand",
|
|
7255
|
+
"base"
|
|
7080
7256
|
],
|
|
7081
7257
|
"flow:expressive": [
|
|
7082
7258
|
"base",
|
|
7083
|
-
"
|
|
7084
|
-
"deep",
|
|
7259
|
+
"brand",
|
|
7085
7260
|
"base",
|
|
7086
7261
|
"band",
|
|
7087
|
-
"
|
|
7262
|
+
"base",
|
|
7263
|
+
"band"
|
|
7088
7264
|
]
|
|
7089
7265
|
},
|
|
7090
7266
|
offers: [
|
|
7267
|
+
{
|
|
7268
|
+
id: id("event-details-panel"),
|
|
7269
|
+
treatment: "details-panel",
|
|
7270
|
+
roleMap: loomRoles
|
|
7271
|
+
},
|
|
7272
|
+
{
|
|
7273
|
+
id: id("event-details-header"),
|
|
7274
|
+
treatment: "details-header",
|
|
7275
|
+
roleMap: loomRoles
|
|
7276
|
+
},
|
|
7091
7277
|
{
|
|
7092
7278
|
id: id("hero-photo-beside-text"),
|
|
7093
7279
|
treatment: "hero-framed",
|
|
7094
|
-
|
|
7095
|
-
|
|
7280
|
+
roleMap: {
|
|
7281
|
+
...loomRoles,
|
|
7282
|
+
highlight: "deep"
|
|
7283
|
+
}
|
|
7096
7284
|
},
|
|
7097
7285
|
{
|
|
7098
|
-
id: id("
|
|
7099
|
-
treatment: "
|
|
7100
|
-
|
|
7101
|
-
roleMap: folioRoles
|
|
7286
|
+
id: id("intro-statement-beside-text"),
|
|
7287
|
+
treatment: "intro-statement",
|
|
7288
|
+
roleMap: loomRoles
|
|
7102
7289
|
},
|
|
7103
7290
|
{
|
|
7104
|
-
id: id("
|
|
7105
|
-
treatment: "
|
|
7106
|
-
|
|
7107
|
-
roleMap: folioRoles
|
|
7291
|
+
id: id("team-members-tall-portraits"),
|
|
7292
|
+
treatment: "team-tall-portraits",
|
|
7293
|
+
roleMap: loomRoles
|
|
7108
7294
|
},
|
|
7109
7295
|
{
|
|
7110
|
-
id: id("
|
|
7111
|
-
treatment: "
|
|
7112
|
-
roleMap:
|
|
7296
|
+
id: id("shop-price-cards-featured"),
|
|
7297
|
+
treatment: "shop-price-cards-featured",
|
|
7298
|
+
roleMap: loomRoles
|
|
7113
7299
|
},
|
|
7114
7300
|
{
|
|
7115
|
-
id: id("
|
|
7116
|
-
treatment: "
|
|
7117
|
-
roleMap:
|
|
7301
|
+
id: id("card-list-plates"),
|
|
7302
|
+
treatment: "items-plates",
|
|
7303
|
+
roleMap: loomRoles,
|
|
7304
|
+
removeKnobs: ["showPhotos"],
|
|
7305
|
+
knobValues: { dates: ["next-dates"] },
|
|
7306
|
+
itemRoles: { items: "card" }
|
|
7307
|
+
},
|
|
7308
|
+
{
|
|
7309
|
+
id: id("feature-cards-cards"),
|
|
7310
|
+
treatment: "cards-sewn",
|
|
7311
|
+
roleMap: loomRoles,
|
|
7312
|
+
removeKnobs: ["showPhotos"],
|
|
7313
|
+
knobValues: {
|
|
7314
|
+
cardMarker: ["none"],
|
|
7315
|
+
actionStyle: ["link"]
|
|
7316
|
+
}
|
|
7118
7317
|
},
|
|
7119
7318
|
{
|
|
7120
7319
|
id: id("media-text-photo-beside-text"),
|
|
7121
|
-
treatment: "media-
|
|
7122
|
-
roleMap:
|
|
7320
|
+
treatment: "media-framed",
|
|
7321
|
+
roleMap: loomRoles
|
|
7123
7322
|
},
|
|
7124
7323
|
{
|
|
7125
|
-
id: id("
|
|
7126
|
-
treatment: "
|
|
7127
|
-
roleMap:
|
|
7324
|
+
id: id("event-calendar-session-cards"),
|
|
7325
|
+
treatment: "calendar-session-cards",
|
|
7326
|
+
roleMap: loomRoles,
|
|
7327
|
+
removeKnobs: ["showPhotos"]
|
|
7128
7328
|
},
|
|
7129
7329
|
{
|
|
7130
|
-
id: id("
|
|
7131
|
-
treatment: "
|
|
7132
|
-
roleMap:
|
|
7330
|
+
id: id("testimonials-lead-quote"),
|
|
7331
|
+
treatment: "quote-lead",
|
|
7332
|
+
roleMap: loomRoles,
|
|
7333
|
+
itemRoles: {
|
|
7334
|
+
items: "card",
|
|
7335
|
+
at: { first: "highlight" }
|
|
7336
|
+
}
|
|
7133
7337
|
},
|
|
7134
7338
|
{
|
|
7135
|
-
id: id("
|
|
7136
|
-
treatment: "
|
|
7137
|
-
roleMap:
|
|
7339
|
+
id: id("faq-questions-under-title"),
|
|
7340
|
+
treatment: "faq-under",
|
|
7341
|
+
roleMap: loomRoles
|
|
7138
7342
|
},
|
|
7139
7343
|
{
|
|
7140
|
-
id: id("
|
|
7141
|
-
treatment: "
|
|
7142
|
-
roleMap:
|
|
7344
|
+
id: id("cta-centred"),
|
|
7345
|
+
treatment: "cta-centred",
|
|
7346
|
+
roleMap: loomRoles
|
|
7347
|
+
},
|
|
7348
|
+
{
|
|
7349
|
+
id: id("newsletter-signup-text-beside"),
|
|
7350
|
+
treatment: "signup-text-beside",
|
|
7351
|
+
roleMap: loomRoles
|
|
7143
7352
|
},
|
|
7144
7353
|
{
|
|
7145
7354
|
id: id("body-text-reading-column"),
|
|
7146
7355
|
treatment: "body-reading",
|
|
7147
|
-
roleMap:
|
|
7356
|
+
roleMap: loomRoles
|
|
7148
7357
|
},
|
|
7149
7358
|
{
|
|
7150
|
-
id: id("
|
|
7151
|
-
treatment: "
|
|
7152
|
-
|
|
7153
|
-
surfaceTints: { date: {
|
|
7154
|
-
source: "text",
|
|
7155
|
-
opacity: 8
|
|
7156
|
-
} },
|
|
7157
|
-
roleMap: folioRoles
|
|
7359
|
+
id: id("image-gallery-captions-under"),
|
|
7360
|
+
treatment: "gallery-captions-under",
|
|
7361
|
+
roleMap: loomRoles
|
|
7158
7362
|
},
|
|
7159
7363
|
{
|
|
7160
|
-
id: id("
|
|
7161
|
-
treatment: "
|
|
7162
|
-
roleMap:
|
|
7364
|
+
id: id("form-below-introduction"),
|
|
7365
|
+
treatment: "form-below",
|
|
7366
|
+
roleMap: loomRoles
|
|
7163
7367
|
},
|
|
7164
7368
|
{
|
|
7165
|
-
id: id("
|
|
7166
|
-
treatment: "
|
|
7167
|
-
roleMap:
|
|
7369
|
+
id: id("location-map-beside-address"),
|
|
7370
|
+
treatment: "map-beside-address",
|
|
7371
|
+
roleMap: loomRoles
|
|
7168
7372
|
},
|
|
7169
7373
|
{
|
|
7170
|
-
id: id("
|
|
7171
|
-
treatment: "calendar-
|
|
7172
|
-
roleMap:
|
|
7374
|
+
id: id("event-calendar-month-grid"),
|
|
7375
|
+
treatment: "calendar-month-grid",
|
|
7376
|
+
roleMap: loomRoles
|
|
7173
7377
|
},
|
|
7174
7378
|
{
|
|
7175
|
-
id: id("
|
|
7176
|
-
treatment: "
|
|
7177
|
-
roleMap:
|
|
7379
|
+
id: id("form-beside-introduction-arched-panel"),
|
|
7380
|
+
treatment: "form-beside",
|
|
7381
|
+
roleMap: loomRoles
|
|
7178
7382
|
},
|
|
7179
7383
|
{
|
|
7180
|
-
id: id("
|
|
7181
|
-
treatment: "
|
|
7182
|
-
roleMap:
|
|
7384
|
+
id: id("newsletter-signup-in-arch"),
|
|
7385
|
+
treatment: "signup-frame",
|
|
7386
|
+
roleMap: loomRoles
|
|
7183
7387
|
},
|
|
7184
7388
|
{
|
|
7185
|
-
id: id("
|
|
7186
|
-
treatment: "
|
|
7187
|
-
roleMap:
|
|
7188
|
-
...folioRoles,
|
|
7189
|
-
card: "section"
|
|
7190
|
-
}
|
|
7389
|
+
id: id("image-gallery-square-tiles"),
|
|
7390
|
+
treatment: "gallery-square-tiles",
|
|
7391
|
+
roleMap: loomRoles
|
|
7191
7392
|
},
|
|
7192
7393
|
{
|
|
7193
|
-
id: id("
|
|
7194
|
-
treatment: "
|
|
7195
|
-
roleMap:
|
|
7394
|
+
id: id("media-text-circle-beside-text"),
|
|
7395
|
+
treatment: "media-circle",
|
|
7396
|
+
roleMap: loomRoles
|
|
7196
7397
|
},
|
|
7197
7398
|
{
|
|
7198
|
-
id: id("
|
|
7199
|
-
treatment: "
|
|
7399
|
+
id: id("hero-headline-row"),
|
|
7400
|
+
treatment: "hero-headline-row",
|
|
7200
7401
|
roleMap: {
|
|
7201
|
-
...
|
|
7202
|
-
|
|
7402
|
+
...loomRoles,
|
|
7403
|
+
highlight: "deep"
|
|
7203
7404
|
}
|
|
7204
7405
|
},
|
|
7205
7406
|
{
|
|
7206
|
-
id: id("
|
|
7207
|
-
treatment: "
|
|
7407
|
+
id: id("hero-copy-over-gallery"),
|
|
7408
|
+
treatment: "hero-copy-over-gallery",
|
|
7208
7409
|
roleMap: {
|
|
7209
|
-
...
|
|
7210
|
-
|
|
7410
|
+
...loomRoles,
|
|
7411
|
+
highlight: "deep"
|
|
7211
7412
|
}
|
|
7212
7413
|
},
|
|
7213
7414
|
{
|
|
7214
|
-
id: id("
|
|
7215
|
-
treatment: "
|
|
7415
|
+
id: id("hero-page-head"),
|
|
7416
|
+
treatment: "hero-page-head",
|
|
7216
7417
|
roleMap: {
|
|
7217
|
-
...
|
|
7218
|
-
|
|
7418
|
+
...loomRoles,
|
|
7419
|
+
highlight: "deep"
|
|
7219
7420
|
}
|
|
7220
7421
|
},
|
|
7221
7422
|
{
|
|
7222
|
-
id: id("
|
|
7223
|
-
treatment: "
|
|
7224
|
-
roleMap:
|
|
7423
|
+
id: id("card-list-accent-edged-cards"),
|
|
7424
|
+
treatment: "items-accent-edged-cards",
|
|
7425
|
+
roleMap: loomRoles
|
|
7225
7426
|
},
|
|
7226
7427
|
{
|
|
7227
|
-
id: id("
|
|
7228
|
-
treatment: "
|
|
7229
|
-
roleMap:
|
|
7428
|
+
id: id("feature-cards-open-columns"),
|
|
7429
|
+
treatment: "cards-open-columns",
|
|
7430
|
+
roleMap: loomRoles
|
|
7230
7431
|
},
|
|
7231
7432
|
{
|
|
7232
|
-
id: id("
|
|
7233
|
-
treatment: "cards-
|
|
7234
|
-
roleMap:
|
|
7433
|
+
id: id("feature-cards-lead-support"),
|
|
7434
|
+
treatment: "cards-lead-support",
|
|
7435
|
+
roleMap: loomRoles
|
|
7436
|
+
},
|
|
7437
|
+
{
|
|
7438
|
+
id: id("feature-cards-index"),
|
|
7439
|
+
treatment: "cards-index",
|
|
7440
|
+
roleMap: loomRoles
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
id: id("feature-cards-sequence"),
|
|
7444
|
+
treatment: "cards-sequence",
|
|
7445
|
+
roleMap: loomRoles
|
|
7446
|
+
},
|
|
7447
|
+
{
|
|
7448
|
+
id: id("event-calendar-ruled-rows"),
|
|
7449
|
+
treatment: "calendar-ruled-rows",
|
|
7450
|
+
roleMap: loomRoles
|
|
7451
|
+
},
|
|
7452
|
+
{
|
|
7453
|
+
id: id("event-calendar-grouped-by-day"),
|
|
7454
|
+
treatment: "calendar-grouped-by-day",
|
|
7455
|
+
roleMap: loomRoles
|
|
7456
|
+
},
|
|
7457
|
+
{
|
|
7458
|
+
id: id("event-calendar-next-three"),
|
|
7459
|
+
treatment: "calendar-next-three",
|
|
7460
|
+
roleMap: loomRoles
|
|
7461
|
+
},
|
|
7462
|
+
{
|
|
7463
|
+
id: id("events-spotlight"),
|
|
7464
|
+
treatment: "events-spotlight",
|
|
7465
|
+
roleMap: loomRoles
|
|
7466
|
+
},
|
|
7467
|
+
{
|
|
7468
|
+
id: id("events-recurring-week"),
|
|
7469
|
+
treatment: "events-recurring-week",
|
|
7470
|
+
roleMap: loomRoles
|
|
7471
|
+
},
|
|
7472
|
+
{
|
|
7473
|
+
id: id("hero-framed-title"),
|
|
7474
|
+
treatment: "hero-framed-title",
|
|
7475
|
+
roleMap: {
|
|
7476
|
+
...loomRoles,
|
|
7477
|
+
highlight: "deep"
|
|
7478
|
+
}
|
|
7479
|
+
},
|
|
7480
|
+
{
|
|
7481
|
+
id: id("testimonials-quote-cards"),
|
|
7482
|
+
treatment: "quote-cards",
|
|
7483
|
+
roleMap: loomRoles
|
|
7484
|
+
},
|
|
7485
|
+
{
|
|
7486
|
+
id: id("testimonials-quote-columns"),
|
|
7487
|
+
treatment: "quote-columns",
|
|
7488
|
+
roleMap: loomRoles
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
id: id("testimonials-one-quote"),
|
|
7492
|
+
treatment: "quote-single",
|
|
7493
|
+
roleMap: loomRoles
|
|
7494
|
+
},
|
|
7495
|
+
{
|
|
7496
|
+
id: id("testimonials-one-at-a-time"),
|
|
7497
|
+
treatment: "quote-one-at-a-time",
|
|
7498
|
+
roleMap: loomRoles
|
|
7499
|
+
},
|
|
7500
|
+
{
|
|
7501
|
+
id: id("testimonials-scroll-row"),
|
|
7502
|
+
treatment: "quote-scroll-row",
|
|
7503
|
+
roleMap: loomRoles
|
|
7504
|
+
},
|
|
7505
|
+
{
|
|
7506
|
+
id: id("event-calendar-month-day"),
|
|
7507
|
+
treatment: "calendar-month-day",
|
|
7508
|
+
roleMap: loomRoles
|
|
7509
|
+
},
|
|
7510
|
+
{
|
|
7511
|
+
id: id("intro-photo-beside-text"),
|
|
7512
|
+
treatment: "intro-photo-beside-text",
|
|
7513
|
+
roleMap: loomRoles
|
|
7514
|
+
},
|
|
7515
|
+
{
|
|
7516
|
+
id: id("newsletter-signup-one-row"),
|
|
7517
|
+
treatment: "signup-one-row",
|
|
7518
|
+
roleMap: loomRoles
|
|
7235
7519
|
},
|
|
7236
7520
|
{
|
|
7237
7521
|
id: id("card-list-wide-slides"),
|
|
7238
|
-
treatment: "
|
|
7239
|
-
roleMap:
|
|
7522
|
+
treatment: "items-wide-slides",
|
|
7523
|
+
roleMap: loomRoles
|
|
7240
7524
|
},
|
|
7241
7525
|
{
|
|
7242
7526
|
id: id("card-list-scroll-row"),
|
|
7243
|
-
treatment: "
|
|
7244
|
-
roleMap:
|
|
7527
|
+
treatment: "items-scroll-row",
|
|
7528
|
+
roleMap: loomRoles
|
|
7245
7529
|
},
|
|
7246
7530
|
{
|
|
7247
7531
|
id: id("body-text-title-beside"),
|
|
7248
7532
|
treatment: "body-beside",
|
|
7249
|
-
roleMap:
|
|
7533
|
+
roleMap: loomRoles
|
|
7250
7534
|
},
|
|
7251
7535
|
{
|
|
7252
7536
|
id: id("body-text-large-opening"),
|
|
7253
7537
|
treatment: "body-opening",
|
|
7254
|
-
roleMap:
|
|
7255
|
-
},
|
|
7256
|
-
{
|
|
7257
|
-
id: id("faq-questions-under-title"),
|
|
7258
|
-
treatment: "faq-under",
|
|
7259
|
-
itemRoles: { items: "card" },
|
|
7260
|
-
roleMap: folioRoles
|
|
7538
|
+
roleMap: loomRoles
|
|
7261
7539
|
},
|
|
7262
7540
|
{
|
|
7263
7541
|
id: id("faq-title-beside-questions"),
|
|
7264
7542
|
treatment: "faq-beside",
|
|
7265
|
-
|
|
7266
|
-
roleMap: folioRoles
|
|
7543
|
+
roleMap: loomRoles
|
|
7267
7544
|
},
|
|
7268
7545
|
{
|
|
7269
7546
|
id: id("faq-questions-two-columns"),
|
|
7270
7547
|
treatment: "faq-columns",
|
|
7271
|
-
|
|
7272
|
-
roleMap: folioRoles
|
|
7548
|
+
roleMap: loomRoles
|
|
7273
7549
|
},
|
|
7274
7550
|
{
|
|
7275
7551
|
id: id("faq-all-answers-showing"),
|
|
7276
7552
|
treatment: "faq-open",
|
|
7277
|
-
roleMap:
|
|
7553
|
+
roleMap: loomRoles
|
|
7278
7554
|
},
|
|
7279
7555
|
{
|
|
7280
|
-
id: id("image-gallery-
|
|
7281
|
-
treatment: "gallery-
|
|
7282
|
-
roleMap:
|
|
7556
|
+
id: id("image-gallery-lead-photo"),
|
|
7557
|
+
treatment: "gallery-lead-photo",
|
|
7558
|
+
roleMap: loomRoles
|
|
7283
7559
|
},
|
|
7284
7560
|
{
|
|
7285
|
-
id: id("
|
|
7286
|
-
treatment: "
|
|
7287
|
-
roleMap:
|
|
7561
|
+
id: id("cta-title-beside-buttons"),
|
|
7562
|
+
treatment: "cta-title-beside-buttons",
|
|
7563
|
+
roleMap: loomRoles
|
|
7288
7564
|
},
|
|
7289
7565
|
{
|
|
7290
|
-
id: id("
|
|
7291
|
-
treatment: "
|
|
7292
|
-
roleMap:
|
|
7566
|
+
id: id("cta-figure-beside-offer"),
|
|
7567
|
+
treatment: "cta-figure-beside-offer",
|
|
7568
|
+
roleMap: loomRoles
|
|
7293
7569
|
},
|
|
7294
7570
|
{
|
|
7295
|
-
id: id("
|
|
7296
|
-
treatment: "
|
|
7297
|
-
roleMap:
|
|
7571
|
+
id: id("location-map-above-details"),
|
|
7572
|
+
treatment: "map-above-details",
|
|
7573
|
+
roleMap: loomRoles
|
|
7298
7574
|
},
|
|
7299
7575
|
{
|
|
7300
|
-
id: id("
|
|
7301
|
-
treatment: "
|
|
7302
|
-
roleMap:
|
|
7576
|
+
id: id("location-map-address-over-wide-map"),
|
|
7577
|
+
treatment: "map-address-over-wide-map",
|
|
7578
|
+
roleMap: loomRoles
|
|
7303
7579
|
},
|
|
7304
7580
|
{
|
|
7305
|
-
id: id("
|
|
7306
|
-
treatment: "
|
|
7307
|
-
roleMap:
|
|
7581
|
+
id: id("location-map-entrance-photo"),
|
|
7582
|
+
treatment: "map-entrance-photo",
|
|
7583
|
+
roleMap: loomRoles
|
|
7584
|
+
},
|
|
7585
|
+
{
|
|
7586
|
+
id: id("team-members-portrait-bio"),
|
|
7587
|
+
treatment: "team-portrait-bio",
|
|
7588
|
+
roleMap: loomRoles
|
|
7589
|
+
},
|
|
7590
|
+
{
|
|
7591
|
+
id: id("team-members-ruled-names"),
|
|
7592
|
+
treatment: "team-ruled-names",
|
|
7593
|
+
roleMap: loomRoles
|
|
7594
|
+
},
|
|
7595
|
+
{
|
|
7596
|
+
id: id("shop-price-cards"),
|
|
7597
|
+
treatment: "shop-price-cards",
|
|
7598
|
+
roleMap: loomRoles
|
|
7599
|
+
},
|
|
7600
|
+
{
|
|
7601
|
+
id: id("shop-ruled-prices"),
|
|
7602
|
+
treatment: "shop-ruled-prices",
|
|
7603
|
+
roleMap: loomRoles
|
|
7308
7604
|
},
|
|
7309
7605
|
{
|
|
7310
7606
|
id: id("card-list-photos-on-top"),
|
|
7311
|
-
treatment: "photos-on-top",
|
|
7312
|
-
roleMap:
|
|
7607
|
+
treatment: "items-photos-on-top",
|
|
7608
|
+
roleMap: loomRoles
|
|
7313
7609
|
}
|
|
7314
7610
|
]
|
|
7315
7611
|
};
|
|
7316
|
-
|
|
7612
|
+
/** Folio: quiet sheets and band-coloured statements. */
|
|
7613
|
+
const folioRoles = {
|
|
7317
7614
|
card: "sheet",
|
|
7318
7615
|
statement: {
|
|
7319
|
-
default: "
|
|
7320
|
-
|
|
7321
|
-
deep: "inverse"
|
|
7616
|
+
default: "band",
|
|
7617
|
+
band: "sheet"
|
|
7322
7618
|
},
|
|
7323
|
-
highlight: "
|
|
7619
|
+
highlight: "band"
|
|
7324
7620
|
};
|
|
7325
|
-
const
|
|
7621
|
+
const folioLinks = { link: "primary" };
|
|
7622
|
+
const folioLooks = {
|
|
7326
7623
|
kind: "offers",
|
|
7327
|
-
skin: "
|
|
7624
|
+
skin: "folio",
|
|
7328
7625
|
skinTokens: {
|
|
7329
|
-
radius: "
|
|
7626
|
+
radius: "10px",
|
|
7330
7627
|
rule: "1px",
|
|
7331
7628
|
"mark-length": "44px",
|
|
7332
7629
|
"mark-weight": "2px",
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
"copy-gap": "1.5rem",
|
|
7630
|
+
gutter: "32px",
|
|
7631
|
+
"copy-gap": "1.25rem",
|
|
7336
7632
|
"stack-gap": "2.5rem"
|
|
7337
7633
|
},
|
|
7338
7634
|
fontLoading: {
|
|
7339
|
-
extraHeadingFontWeights: [
|
|
7340
|
-
italicHeadingFontWeights: [
|
|
7341
|
-
extraBodyFontWeights: [500]
|
|
7635
|
+
extraHeadingFontWeights: [600],
|
|
7636
|
+
italicHeadingFontWeights: [500]
|
|
7342
7637
|
},
|
|
7343
7638
|
surfaces: {
|
|
7344
|
-
|
|
7639
|
+
base: {
|
|
7345
7640
|
kind: "token",
|
|
7346
|
-
token: "
|
|
7347
|
-
|
|
7641
|
+
token: "background",
|
|
7642
|
+
foreground: folioLinks
|
|
7348
7643
|
},
|
|
7349
|
-
|
|
7644
|
+
sheet: {
|
|
7350
7645
|
kind: "token",
|
|
7351
|
-
token: "
|
|
7646
|
+
token: "surface",
|
|
7647
|
+
roleOnly: true,
|
|
7648
|
+
foreground: folioLinks
|
|
7352
7649
|
},
|
|
7353
7650
|
band: {
|
|
7354
7651
|
kind: "token",
|
|
7355
|
-
token: "muted"
|
|
7652
|
+
token: "muted",
|
|
7653
|
+
foreground: folioLinks
|
|
7356
7654
|
},
|
|
7357
7655
|
brand: {
|
|
7358
7656
|
kind: "token",
|
|
7359
|
-
token: "
|
|
7657
|
+
token: "primary",
|
|
7658
|
+
foreground: folioLinks
|
|
7360
7659
|
},
|
|
7361
7660
|
deep: {
|
|
7362
7661
|
kind: "token",
|
|
7363
|
-
token: "primary-
|
|
7364
|
-
|
|
7365
|
-
inverse: {
|
|
7366
|
-
kind: "token",
|
|
7367
|
-
token: "text",
|
|
7368
|
-
roleOnly: true
|
|
7662
|
+
token: "primary-800",
|
|
7663
|
+
foreground: folioLinks
|
|
7369
7664
|
}
|
|
7370
7665
|
},
|
|
7371
7666
|
rhythm: {
|
|
@@ -7373,352 +7668,716 @@ const fulcrumLooks = {
|
|
|
7373
7668
|
"base",
|
|
7374
7669
|
"base",
|
|
7375
7670
|
"band",
|
|
7671
|
+
"base",
|
|
7672
|
+
"band",
|
|
7376
7673
|
"base"
|
|
7377
7674
|
],
|
|
7378
7675
|
"flow:balanced": [
|
|
7379
7676
|
"base",
|
|
7380
7677
|
"band",
|
|
7381
7678
|
"base",
|
|
7382
|
-
"
|
|
7679
|
+
"deep",
|
|
7383
7680
|
"base",
|
|
7384
7681
|
"band"
|
|
7385
7682
|
],
|
|
7386
7683
|
"flow:expressive": [
|
|
7387
7684
|
"base",
|
|
7388
7685
|
"band",
|
|
7389
|
-
"
|
|
7686
|
+
"deep",
|
|
7390
7687
|
"base",
|
|
7391
7688
|
"band",
|
|
7392
|
-
"
|
|
7689
|
+
"brand"
|
|
7393
7690
|
]
|
|
7394
7691
|
},
|
|
7395
7692
|
offers: [
|
|
7396
|
-
{
|
|
7397
|
-
id: id("event-details-panel"),
|
|
7398
|
-
treatment: "quiet",
|
|
7399
|
-
roleMap: fulcrumRoles
|
|
7400
|
-
},
|
|
7401
|
-
{
|
|
7402
|
-
id: id("event-details-header"),
|
|
7403
|
-
treatment: "ruled",
|
|
7404
|
-
roleMap: fulcrumRoles
|
|
7405
|
-
},
|
|
7406
7693
|
{
|
|
7407
7694
|
id: id("hero-photo-beside-text"),
|
|
7408
|
-
treatment: "
|
|
7695
|
+
treatment: "hero-framed",
|
|
7409
7696
|
knobValues: quieterOrStandard,
|
|
7410
|
-
roleMap:
|
|
7697
|
+
roleMap: folioRoles
|
|
7411
7698
|
},
|
|
7412
7699
|
{
|
|
7413
|
-
id: id("hero-
|
|
7414
|
-
treatment: "
|
|
7700
|
+
id: id("hero-photo-behind-text"),
|
|
7701
|
+
treatment: "hero-panel",
|
|
7415
7702
|
knobValues: quieterOrStandard,
|
|
7416
|
-
roleMap:
|
|
7703
|
+
roleMap: folioRoles
|
|
7417
7704
|
},
|
|
7418
7705
|
{
|
|
7419
|
-
id: id("hero-
|
|
7420
|
-
treatment: "
|
|
7421
|
-
|
|
7422
|
-
roleMap: fulcrumRoles
|
|
7706
|
+
id: id("hero-short-photo-banner"),
|
|
7707
|
+
treatment: "hero-short-panel",
|
|
7708
|
+
roleMap: folioRoles
|
|
7423
7709
|
},
|
|
7424
7710
|
{
|
|
7425
|
-
id: id("hero-
|
|
7426
|
-
treatment: "
|
|
7711
|
+
id: id("hero-page-head"),
|
|
7712
|
+
treatment: "hero-ruled",
|
|
7427
7713
|
knobValues: quieterOrStandard,
|
|
7428
|
-
roleMap:
|
|
7714
|
+
roleMap: folioRoles
|
|
7429
7715
|
},
|
|
7430
7716
|
{
|
|
7431
|
-
id: id("
|
|
7432
|
-
treatment: "
|
|
7433
|
-
|
|
7434
|
-
roleMap: fulcrumRoles
|
|
7717
|
+
id: id("intro-photo-beside-text"),
|
|
7718
|
+
treatment: "intro-keyline",
|
|
7719
|
+
roleMap: folioRoles
|
|
7435
7720
|
},
|
|
7436
7721
|
{
|
|
7437
|
-
id: id("
|
|
7438
|
-
treatment: "
|
|
7439
|
-
roleMap:
|
|
7722
|
+
id: id("intro-statement-beside-text"),
|
|
7723
|
+
treatment: "intro-ruled-split",
|
|
7724
|
+
roleMap: folioRoles
|
|
7440
7725
|
},
|
|
7441
7726
|
{
|
|
7442
|
-
id: id("
|
|
7443
|
-
treatment: "
|
|
7444
|
-
|
|
7445
|
-
roleMap: fulcrumRoles
|
|
7727
|
+
id: id("media-text-photo-beside-text"),
|
|
7728
|
+
treatment: "media-mount",
|
|
7729
|
+
roleMap: folioRoles
|
|
7446
7730
|
},
|
|
7447
7731
|
{
|
|
7448
|
-
id: id("
|
|
7449
|
-
treatment: "
|
|
7450
|
-
roleMap:
|
|
7732
|
+
id: id("media-text-circle-beside-text"),
|
|
7733
|
+
treatment: "media-circle",
|
|
7734
|
+
roleMap: folioRoles
|
|
7451
7735
|
},
|
|
7452
7736
|
{
|
|
7453
|
-
id: id("feature-cards-
|
|
7454
|
-
treatment: "
|
|
7455
|
-
roleMap:
|
|
7737
|
+
id: id("feature-cards-cards"),
|
|
7738
|
+
treatment: "cards-sheet",
|
|
7739
|
+
roleMap: folioRoles
|
|
7740
|
+
},
|
|
7741
|
+
{
|
|
7742
|
+
id: id("feature-cards-open-columns"),
|
|
7743
|
+
treatment: "cards-open",
|
|
7744
|
+
roleMap: folioRoles
|
|
7456
7745
|
},
|
|
7457
7746
|
{
|
|
7458
7747
|
id: id("feature-cards-index"),
|
|
7459
|
-
treatment: "register",
|
|
7460
|
-
roleMap:
|
|
7748
|
+
treatment: "cards-register",
|
|
7749
|
+
roleMap: folioRoles
|
|
7461
7750
|
},
|
|
7462
7751
|
{
|
|
7463
|
-
id: id("
|
|
7464
|
-
treatment: "
|
|
7465
|
-
roleMap:
|
|
7752
|
+
id: id("body-text-reading-column"),
|
|
7753
|
+
treatment: "body-reading",
|
|
7754
|
+
roleMap: folioRoles
|
|
7466
7755
|
},
|
|
7467
7756
|
{
|
|
7468
7757
|
id: id("event-calendar-ruled-rows"),
|
|
7469
|
-
treatment: "card",
|
|
7758
|
+
treatment: "calendar-card",
|
|
7470
7759
|
itemRoles: { container: "card" },
|
|
7471
|
-
|
|
7760
|
+
surfaceTints: { date: {
|
|
7761
|
+
source: "text",
|
|
7762
|
+
opacity: 8
|
|
7763
|
+
} },
|
|
7764
|
+
roleMap: folioRoles
|
|
7472
7765
|
},
|
|
7473
7766
|
{
|
|
7474
|
-
id: id("event-calendar-
|
|
7475
|
-
treatment: "
|
|
7476
|
-
roleMap:
|
|
7767
|
+
id: id("event-calendar-session-cards"),
|
|
7768
|
+
treatment: "calendar-sheets",
|
|
7769
|
+
roleMap: folioRoles
|
|
7477
7770
|
},
|
|
7478
7771
|
{
|
|
7479
7772
|
id: id("event-calendar-next-three"),
|
|
7480
|
-
treatment: "compact",
|
|
7481
|
-
roleMap:
|
|
7773
|
+
treatment: "calendar-compact",
|
|
7774
|
+
roleMap: folioRoles
|
|
7482
7775
|
},
|
|
7483
7776
|
{
|
|
7484
7777
|
id: id("events-spotlight"),
|
|
7485
7778
|
treatment: "calendar-spotlight",
|
|
7486
|
-
roleMap:
|
|
7779
|
+
roleMap: folioRoles
|
|
7487
7780
|
},
|
|
7488
7781
|
{
|
|
7489
7782
|
id: id("events-recurring-week"),
|
|
7490
7783
|
treatment: "calendar-recurring-week",
|
|
7491
|
-
roleMap:
|
|
7784
|
+
roleMap: folioRoles
|
|
7492
7785
|
},
|
|
7493
7786
|
{
|
|
7494
7787
|
id: id("event-calendar-month-grid"),
|
|
7495
|
-
treatment: "
|
|
7496
|
-
roleMap:
|
|
7497
|
-
},
|
|
7498
|
-
{
|
|
7499
|
-
id: id("event-calendar-month-day"),
|
|
7500
|
-
treatment: "ruled",
|
|
7501
|
-
roleMap: fulcrumRoles
|
|
7502
|
-
},
|
|
7503
|
-
{
|
|
7504
|
-
id: id("testimonials-lead-quote"),
|
|
7505
|
-
treatment: "hung",
|
|
7506
|
-
roleMap: fulcrumRoles
|
|
7507
|
-
},
|
|
7508
|
-
{
|
|
7509
|
-
id: id("testimonials-quote-cards"),
|
|
7510
|
-
treatment: "cases",
|
|
7511
|
-
roleMap: fulcrumRoles
|
|
7512
|
-
},
|
|
7513
|
-
{
|
|
7514
|
-
id: id("testimonials-quote-columns"),
|
|
7515
|
-
treatment: "ruled",
|
|
7516
|
-
roleMap: fulcrumRoles
|
|
7517
|
-
},
|
|
7518
|
-
{
|
|
7519
|
-
id: id("testimonials-one-quote"),
|
|
7520
|
-
treatment: "hung",
|
|
7521
|
-
roleMap: fulcrumRoles
|
|
7522
|
-
},
|
|
7523
|
-
{
|
|
7524
|
-
id: id("testimonials-one-at-a-time"),
|
|
7525
|
-
treatment: "hung",
|
|
7526
|
-
roleMap: fulcrumRoles
|
|
7527
|
-
},
|
|
7528
|
-
{
|
|
7529
|
-
id: id("testimonials-scroll-row"),
|
|
7530
|
-
treatment: "cards",
|
|
7531
|
-
roleMap: fulcrumRoles
|
|
7788
|
+
treatment: "calendar-month",
|
|
7789
|
+
roleMap: folioRoles
|
|
7532
7790
|
},
|
|
7533
7791
|
{
|
|
7534
|
-
id: id("
|
|
7535
|
-
treatment: "
|
|
7536
|
-
roleMap:
|
|
7792
|
+
id: id("event-details-panel"),
|
|
7793
|
+
treatment: "details-sheet",
|
|
7794
|
+
roleMap: {
|
|
7795
|
+
...folioRoles,
|
|
7796
|
+
card: "section"
|
|
7797
|
+
}
|
|
7537
7798
|
},
|
|
7538
7799
|
{
|
|
7539
|
-
id: id("
|
|
7540
|
-
treatment: "
|
|
7541
|
-
roleMap:
|
|
7800
|
+
id: id("event-details-header"),
|
|
7801
|
+
treatment: "details-ruled",
|
|
7802
|
+
roleMap: folioRoles
|
|
7542
7803
|
},
|
|
7543
7804
|
{
|
|
7544
|
-
id: id("
|
|
7545
|
-
treatment: "
|
|
7546
|
-
roleMap:
|
|
7805
|
+
id: id("newsletter-signup-text-beside"),
|
|
7806
|
+
treatment: "signup-sheet",
|
|
7807
|
+
roleMap: {
|
|
7808
|
+
...folioRoles,
|
|
7809
|
+
card: "section"
|
|
7810
|
+
}
|
|
7547
7811
|
},
|
|
7548
7812
|
{
|
|
7549
7813
|
id: id("newsletter-signup-one-row"),
|
|
7550
|
-
treatment: "signup-
|
|
7814
|
+
treatment: "signup-row",
|
|
7551
7815
|
roleMap: {
|
|
7552
|
-
...
|
|
7816
|
+
...folioRoles,
|
|
7553
7817
|
card: "section"
|
|
7554
7818
|
}
|
|
7555
7819
|
},
|
|
7556
|
-
{
|
|
7557
|
-
id: id("newsletter-signup-text-beside"),
|
|
7558
|
-
treatment: "signup-beside-panel",
|
|
7559
|
-
roleMap: fulcrumRoles
|
|
7560
|
-
},
|
|
7561
7820
|
{
|
|
7562
7821
|
id: id("form-below-introduction"),
|
|
7563
|
-
treatment: "form-sheet",
|
|
7564
|
-
roleMap:
|
|
7822
|
+
treatment: "form-sheet-below",
|
|
7823
|
+
roleMap: {
|
|
7824
|
+
...folioRoles,
|
|
7825
|
+
card: "section"
|
|
7826
|
+
}
|
|
7565
7827
|
},
|
|
7566
7828
|
{
|
|
7567
|
-
id: id("
|
|
7568
|
-
treatment: "
|
|
7569
|
-
roleMap:
|
|
7570
|
-
knobValues: { actionStyle: ["link"] }
|
|
7829
|
+
id: id("testimonials-lead-quote"),
|
|
7830
|
+
treatment: "quote-lead",
|
|
7831
|
+
roleMap: folioRoles
|
|
7571
7832
|
},
|
|
7572
7833
|
{
|
|
7573
|
-
id: id("
|
|
7574
|
-
treatment: "
|
|
7575
|
-
roleMap:
|
|
7834
|
+
id: id("testimonials-quote-cards"),
|
|
7835
|
+
treatment: "quote-sheets",
|
|
7836
|
+
roleMap: folioRoles
|
|
7576
7837
|
},
|
|
7577
7838
|
{
|
|
7578
7839
|
id: id("card-list-accent-edged-cards"),
|
|
7579
7840
|
treatment: "cards-accent-edged",
|
|
7580
|
-
roleMap:
|
|
7841
|
+
roleMap: folioRoles
|
|
7581
7842
|
},
|
|
7582
7843
|
{
|
|
7583
|
-
id: id("
|
|
7584
|
-
treatment: "
|
|
7585
|
-
roleMap:
|
|
7844
|
+
id: id("card-list-wide-slides"),
|
|
7845
|
+
treatment: "carousel-wide-sheet",
|
|
7846
|
+
roleMap: folioRoles
|
|
7847
|
+
},
|
|
7848
|
+
{
|
|
7849
|
+
id: id("card-list-scroll-row"),
|
|
7850
|
+
treatment: "carousel-row-sheet",
|
|
7851
|
+
roleMap: folioRoles
|
|
7586
7852
|
},
|
|
7587
7853
|
{
|
|
7588
7854
|
id: id("body-text-title-beside"),
|
|
7589
7855
|
treatment: "body-beside",
|
|
7590
|
-
roleMap:
|
|
7856
|
+
roleMap: folioRoles
|
|
7591
7857
|
},
|
|
7592
7858
|
{
|
|
7593
7859
|
id: id("body-text-large-opening"),
|
|
7594
7860
|
treatment: "body-opening",
|
|
7595
|
-
roleMap:
|
|
7861
|
+
roleMap: folioRoles
|
|
7596
7862
|
},
|
|
7597
7863
|
{
|
|
7598
7864
|
id: id("faq-questions-under-title"),
|
|
7599
7865
|
treatment: "faq-under",
|
|
7600
|
-
|
|
7866
|
+
itemRoles: { items: "card" },
|
|
7867
|
+
roleMap: folioRoles
|
|
7601
7868
|
},
|
|
7602
7869
|
{
|
|
7603
7870
|
id: id("faq-title-beside-questions"),
|
|
7604
7871
|
treatment: "faq-beside",
|
|
7605
|
-
|
|
7872
|
+
itemRoles: { items: "card" },
|
|
7873
|
+
roleMap: folioRoles
|
|
7606
7874
|
},
|
|
7607
7875
|
{
|
|
7608
7876
|
id: id("faq-questions-two-columns"),
|
|
7609
7877
|
treatment: "faq-columns",
|
|
7610
|
-
|
|
7878
|
+
itemRoles: { items: "card" },
|
|
7879
|
+
roleMap: folioRoles
|
|
7611
7880
|
},
|
|
7612
7881
|
{
|
|
7613
7882
|
id: id("faq-all-answers-showing"),
|
|
7614
7883
|
treatment: "faq-open",
|
|
7615
|
-
roleMap:
|
|
7884
|
+
roleMap: folioRoles
|
|
7616
7885
|
},
|
|
7617
7886
|
{
|
|
7618
7887
|
id: id("image-gallery-square-tiles"),
|
|
7619
7888
|
treatment: "gallery-tiles",
|
|
7620
|
-
roleMap:
|
|
7889
|
+
roleMap: folioRoles
|
|
7621
7890
|
},
|
|
7622
7891
|
{
|
|
7623
7892
|
id: id("image-gallery-lead-photo"),
|
|
7624
7893
|
treatment: "gallery-lead",
|
|
7625
|
-
roleMap:
|
|
7894
|
+
roleMap: folioRoles
|
|
7626
7895
|
},
|
|
7627
7896
|
{
|
|
7628
7897
|
id: id("image-gallery-captions-under"),
|
|
7629
7898
|
treatment: "gallery-captions",
|
|
7630
|
-
roleMap:
|
|
7899
|
+
roleMap: folioRoles
|
|
7631
7900
|
},
|
|
7632
7901
|
{
|
|
7633
7902
|
id: id("cta-centred"),
|
|
7634
7903
|
treatment: "cta-centred",
|
|
7635
|
-
roleMap:
|
|
7904
|
+
roleMap: folioRoles
|
|
7636
7905
|
},
|
|
7637
7906
|
{
|
|
7638
7907
|
id: id("cta-title-beside-buttons"),
|
|
7639
7908
|
treatment: "cta-beside",
|
|
7640
|
-
roleMap:
|
|
7909
|
+
roleMap: folioRoles
|
|
7641
7910
|
},
|
|
7642
7911
|
{
|
|
7643
7912
|
id: id("cta-figure-beside-offer"),
|
|
7644
7913
|
treatment: "cta-figure",
|
|
7645
|
-
roleMap:
|
|
7914
|
+
roleMap: folioRoles
|
|
7915
|
+
},
|
|
7916
|
+
{
|
|
7917
|
+
id: id("location-map-above-details"),
|
|
7918
|
+
treatment: "map-above",
|
|
7919
|
+
roleMap: folioRoles
|
|
7920
|
+
},
|
|
7921
|
+
{
|
|
7922
|
+
id: id("location-map-beside-address"),
|
|
7923
|
+
treatment: "map-beside",
|
|
7924
|
+
roleMap: folioRoles
|
|
7925
|
+
},
|
|
7926
|
+
{
|
|
7927
|
+
id: id("location-map-address-over-wide-map"),
|
|
7928
|
+
treatment: "map-wide",
|
|
7929
|
+
roleMap: folioRoles
|
|
7930
|
+
},
|
|
7931
|
+
{
|
|
7932
|
+
id: id("location-map-entrance-photo"),
|
|
7933
|
+
treatment: "map-entrance",
|
|
7934
|
+
roleMap: folioRoles
|
|
7646
7935
|
},
|
|
7647
7936
|
{
|
|
7648
7937
|
id: id("card-list-photos-on-top"),
|
|
7649
7938
|
treatment: "photos-on-top",
|
|
7650
|
-
roleMap:
|
|
7939
|
+
roleMap: folioRoles
|
|
7651
7940
|
}
|
|
7652
7941
|
]
|
|
7653
7942
|
};
|
|
7654
|
-
|
|
7655
|
-
const posterRoles = {
|
|
7943
|
+
const fulcrumRoles = {
|
|
7656
7944
|
card: "sheet",
|
|
7657
|
-
statement:
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
{
|
|
7662
|
-
id: id("event-details-panel"),
|
|
7663
|
-
treatment: "quiet",
|
|
7664
|
-
roleMap: posterRoles
|
|
7665
|
-
},
|
|
7666
|
-
{
|
|
7667
|
-
id: id("event-details-header"),
|
|
7668
|
-
treatment: "numeral",
|
|
7669
|
-
roleMap: posterRoles
|
|
7670
|
-
},
|
|
7671
|
-
{
|
|
7672
|
-
id: id("hero-headline-row"),
|
|
7673
|
-
treatment: "slab",
|
|
7674
|
-
roleMap: posterRoles
|
|
7945
|
+
statement: {
|
|
7946
|
+
default: "brand",
|
|
7947
|
+
brand: "inverse",
|
|
7948
|
+
deep: "inverse"
|
|
7675
7949
|
},
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7950
|
+
highlight: "sheet"
|
|
7951
|
+
};
|
|
7952
|
+
const fulcrumLooks = {
|
|
7953
|
+
kind: "offers",
|
|
7954
|
+
skin: "fulcrum",
|
|
7955
|
+
skinTokens: {
|
|
7956
|
+
radius: "3px",
|
|
7957
|
+
rule: "1px",
|
|
7958
|
+
"mark-length": "44px",
|
|
7959
|
+
"mark-weight": "2px",
|
|
7960
|
+
plate: "16px",
|
|
7961
|
+
gutter: "28px",
|
|
7962
|
+
"copy-gap": "1.5rem",
|
|
7963
|
+
"stack-gap": "2.5rem"
|
|
7680
7964
|
},
|
|
7681
|
-
{
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7965
|
+
fontLoading: {
|
|
7966
|
+
extraHeadingFontWeights: [300],
|
|
7967
|
+
italicHeadingFontWeights: [400],
|
|
7968
|
+
extraBodyFontWeights: [500]
|
|
7685
7969
|
},
|
|
7686
|
-
{
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7970
|
+
surfaces: {
|
|
7971
|
+
sheet: {
|
|
7972
|
+
kind: "token",
|
|
7973
|
+
token: "surface",
|
|
7974
|
+
roleOnly: true
|
|
7975
|
+
},
|
|
7976
|
+
base: {
|
|
7977
|
+
kind: "token",
|
|
7978
|
+
token: "background"
|
|
7979
|
+
},
|
|
7980
|
+
band: {
|
|
7981
|
+
kind: "token",
|
|
7982
|
+
token: "muted"
|
|
7983
|
+
},
|
|
7984
|
+
brand: {
|
|
7985
|
+
kind: "token",
|
|
7986
|
+
token: "secondary"
|
|
7987
|
+
},
|
|
7988
|
+
deep: {
|
|
7989
|
+
kind: "token",
|
|
7990
|
+
token: "primary-900"
|
|
7991
|
+
},
|
|
7992
|
+
inverse: {
|
|
7993
|
+
kind: "token",
|
|
7994
|
+
token: "text",
|
|
7995
|
+
roleOnly: true
|
|
7695
7996
|
}
|
|
7696
7997
|
},
|
|
7697
|
-
{
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7998
|
+
rhythm: {
|
|
7999
|
+
"flow:quiet": [
|
|
8000
|
+
"base",
|
|
8001
|
+
"base",
|
|
8002
|
+
"band",
|
|
8003
|
+
"base"
|
|
8004
|
+
],
|
|
8005
|
+
"flow:balanced": [
|
|
8006
|
+
"base",
|
|
8007
|
+
"band",
|
|
8008
|
+
"base",
|
|
8009
|
+
"brand",
|
|
8010
|
+
"base",
|
|
8011
|
+
"band"
|
|
8012
|
+
],
|
|
8013
|
+
"flow:expressive": [
|
|
8014
|
+
"base",
|
|
8015
|
+
"band",
|
|
8016
|
+
"brand",
|
|
8017
|
+
"base",
|
|
8018
|
+
"band",
|
|
8019
|
+
"deep"
|
|
8020
|
+
]
|
|
8021
|
+
},
|
|
8022
|
+
offers: [
|
|
8023
|
+
{
|
|
8024
|
+
id: id("event-details-panel"),
|
|
8025
|
+
treatment: "quiet",
|
|
8026
|
+
roleMap: fulcrumRoles
|
|
8027
|
+
},
|
|
8028
|
+
{
|
|
8029
|
+
id: id("event-details-header"),
|
|
8030
|
+
treatment: "ruled",
|
|
8031
|
+
roleMap: fulcrumRoles
|
|
8032
|
+
},
|
|
8033
|
+
{
|
|
8034
|
+
id: id("hero-photo-beside-text"),
|
|
8035
|
+
treatment: "plate",
|
|
8036
|
+
knobValues: quieterOrStandard,
|
|
8037
|
+
roleMap: fulcrumRoles
|
|
8038
|
+
},
|
|
8039
|
+
{
|
|
8040
|
+
id: id("hero-headline-row"),
|
|
8041
|
+
treatment: "quiet",
|
|
8042
|
+
knobValues: quieterOrStandard,
|
|
8043
|
+
roleMap: fulcrumRoles
|
|
8044
|
+
},
|
|
8045
|
+
{
|
|
8046
|
+
id: id("hero-copy-over-gallery"),
|
|
8047
|
+
treatment: "plates",
|
|
8048
|
+
knobValues: quieterOrStandard,
|
|
8049
|
+
roleMap: fulcrumRoles
|
|
8050
|
+
},
|
|
8051
|
+
{
|
|
8052
|
+
id: id("hero-photo-behind-text"),
|
|
8053
|
+
treatment: "panel",
|
|
8054
|
+
knobValues: quieterOrStandard,
|
|
8055
|
+
roleMap: fulcrumRoles
|
|
8056
|
+
},
|
|
8057
|
+
{
|
|
8058
|
+
id: id("hero-short-photo-banner"),
|
|
8059
|
+
treatment: "short-panel",
|
|
8060
|
+
roleMap: fulcrumRoles
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
id: id("hero-page-head"),
|
|
8064
|
+
treatment: "ruled",
|
|
8065
|
+
knobValues: quieterOrStandard,
|
|
8066
|
+
roleMap: fulcrumRoles
|
|
8067
|
+
},
|
|
8068
|
+
{
|
|
8069
|
+
id: id("feature-cards-cards"),
|
|
8070
|
+
treatment: "cards",
|
|
8071
|
+
roleMap: fulcrumRoles
|
|
8072
|
+
},
|
|
8073
|
+
{
|
|
8074
|
+
id: id("card-list-plates"),
|
|
8075
|
+
treatment: "type-plates",
|
|
8076
|
+
itemRoles: { items: "card" },
|
|
8077
|
+
roleMap: fulcrumRoles
|
|
8078
|
+
},
|
|
8079
|
+
{
|
|
8080
|
+
id: id("feature-cards-open-columns"),
|
|
8081
|
+
treatment: "open",
|
|
8082
|
+
roleMap: fulcrumRoles
|
|
8083
|
+
},
|
|
8084
|
+
{
|
|
8085
|
+
id: id("feature-cards-lead-support"),
|
|
8086
|
+
treatment: "pathway",
|
|
8087
|
+
roleMap: fulcrumRoles
|
|
8088
|
+
},
|
|
8089
|
+
{
|
|
8090
|
+
id: id("feature-cards-index"),
|
|
8091
|
+
treatment: "register",
|
|
8092
|
+
roleMap: fulcrumRoles
|
|
8093
|
+
},
|
|
8094
|
+
{
|
|
8095
|
+
id: id("feature-cards-sequence"),
|
|
8096
|
+
treatment: "rail-steps",
|
|
8097
|
+
roleMap: fulcrumRoles
|
|
8098
|
+
},
|
|
8099
|
+
{
|
|
8100
|
+
id: id("event-calendar-ruled-rows"),
|
|
8101
|
+
treatment: "card",
|
|
8102
|
+
itemRoles: { container: "card" },
|
|
8103
|
+
roleMap: fulcrumRoles
|
|
8104
|
+
},
|
|
8105
|
+
{
|
|
8106
|
+
id: id("event-calendar-grouped-by-day"),
|
|
8107
|
+
treatment: "rail",
|
|
8108
|
+
roleMap: fulcrumRoles
|
|
8109
|
+
},
|
|
8110
|
+
{
|
|
8111
|
+
id: id("event-calendar-next-three"),
|
|
8112
|
+
treatment: "compact",
|
|
8113
|
+
roleMap: fulcrumRoles
|
|
8114
|
+
},
|
|
8115
|
+
{
|
|
8116
|
+
id: id("events-spotlight"),
|
|
8117
|
+
treatment: "calendar-spotlight",
|
|
8118
|
+
roleMap: fulcrumRoles
|
|
8119
|
+
},
|
|
8120
|
+
{
|
|
8121
|
+
id: id("events-recurring-week"),
|
|
8122
|
+
treatment: "calendar-recurring-week",
|
|
8123
|
+
roleMap: fulcrumRoles
|
|
8124
|
+
},
|
|
8125
|
+
{
|
|
8126
|
+
id: id("event-calendar-month-grid"),
|
|
8127
|
+
treatment: "sheet",
|
|
8128
|
+
roleMap: fulcrumRoles
|
|
8129
|
+
},
|
|
8130
|
+
{
|
|
8131
|
+
id: id("event-calendar-month-day"),
|
|
8132
|
+
treatment: "ruled",
|
|
8133
|
+
roleMap: fulcrumRoles
|
|
8134
|
+
},
|
|
8135
|
+
{
|
|
8136
|
+
id: id("testimonials-lead-quote"),
|
|
8137
|
+
treatment: "hung",
|
|
8138
|
+
roleMap: fulcrumRoles
|
|
8139
|
+
},
|
|
8140
|
+
{
|
|
8141
|
+
id: id("testimonials-quote-cards"),
|
|
8142
|
+
treatment: "cases",
|
|
8143
|
+
roleMap: fulcrumRoles
|
|
8144
|
+
},
|
|
8145
|
+
{
|
|
8146
|
+
id: id("testimonials-quote-columns"),
|
|
8147
|
+
treatment: "ruled",
|
|
8148
|
+
roleMap: fulcrumRoles
|
|
8149
|
+
},
|
|
8150
|
+
{
|
|
8151
|
+
id: id("testimonials-one-quote"),
|
|
8152
|
+
treatment: "hung",
|
|
8153
|
+
roleMap: fulcrumRoles
|
|
8154
|
+
},
|
|
8155
|
+
{
|
|
8156
|
+
id: id("testimonials-one-at-a-time"),
|
|
8157
|
+
treatment: "hung",
|
|
8158
|
+
roleMap: fulcrumRoles
|
|
8159
|
+
},
|
|
8160
|
+
{
|
|
8161
|
+
id: id("testimonials-scroll-row"),
|
|
8162
|
+
treatment: "cards",
|
|
8163
|
+
roleMap: fulcrumRoles
|
|
8164
|
+
},
|
|
8165
|
+
{
|
|
8166
|
+
id: id("intro-photo-beside-text"),
|
|
8167
|
+
treatment: "intro-plate",
|
|
8168
|
+
roleMap: fulcrumRoles
|
|
8169
|
+
},
|
|
8170
|
+
{
|
|
8171
|
+
id: id("intro-statement-beside-text"),
|
|
8172
|
+
treatment: "lintel",
|
|
8173
|
+
roleMap: fulcrumRoles
|
|
8174
|
+
},
|
|
8175
|
+
{
|
|
8176
|
+
id: id("media-text-photo-beside-text"),
|
|
8177
|
+
treatment: "beside-plate",
|
|
8178
|
+
roleMap: fulcrumRoles
|
|
8179
|
+
},
|
|
8180
|
+
{
|
|
8181
|
+
id: id("newsletter-signup-one-row"),
|
|
8182
|
+
treatment: "signup-strip",
|
|
8183
|
+
roleMap: {
|
|
8184
|
+
...fulcrumRoles,
|
|
8185
|
+
card: "section"
|
|
8186
|
+
}
|
|
8187
|
+
},
|
|
8188
|
+
{
|
|
8189
|
+
id: id("newsletter-signup-text-beside"),
|
|
8190
|
+
treatment: "signup-beside-panel",
|
|
8191
|
+
roleMap: fulcrumRoles
|
|
8192
|
+
},
|
|
8193
|
+
{
|
|
8194
|
+
id: id("form-below-introduction"),
|
|
8195
|
+
treatment: "form-sheet",
|
|
8196
|
+
roleMap: fulcrumRoles
|
|
8197
|
+
},
|
|
8198
|
+
{
|
|
8199
|
+
id: id("card-list-wide-slides"),
|
|
8200
|
+
treatment: "carousel-wide-plate",
|
|
8201
|
+
roleMap: fulcrumRoles,
|
|
8202
|
+
knobValues: { actionStyle: ["link"] }
|
|
8203
|
+
},
|
|
8204
|
+
{
|
|
8205
|
+
id: id("card-list-scroll-row"),
|
|
8206
|
+
treatment: "carousel-row-cards",
|
|
8207
|
+
roleMap: fulcrumRoles
|
|
8208
|
+
},
|
|
8209
|
+
{
|
|
8210
|
+
id: id("card-list-accent-edged-cards"),
|
|
8211
|
+
treatment: "cards-accent-edged",
|
|
8212
|
+
roleMap: fulcrumRoles
|
|
8213
|
+
},
|
|
8214
|
+
{
|
|
8215
|
+
id: id("body-text-reading-column"),
|
|
8216
|
+
treatment: "body-column",
|
|
8217
|
+
roleMap: fulcrumRoles
|
|
8218
|
+
},
|
|
8219
|
+
{
|
|
8220
|
+
id: id("body-text-title-beside"),
|
|
8221
|
+
treatment: "body-beside",
|
|
8222
|
+
roleMap: fulcrumRoles
|
|
8223
|
+
},
|
|
8224
|
+
{
|
|
8225
|
+
id: id("body-text-large-opening"),
|
|
8226
|
+
treatment: "body-opening",
|
|
8227
|
+
roleMap: fulcrumRoles
|
|
8228
|
+
},
|
|
8229
|
+
{
|
|
8230
|
+
id: id("faq-questions-under-title"),
|
|
8231
|
+
treatment: "faq-under",
|
|
8232
|
+
roleMap: fulcrumRoles
|
|
8233
|
+
},
|
|
8234
|
+
{
|
|
8235
|
+
id: id("faq-title-beside-questions"),
|
|
8236
|
+
treatment: "faq-beside",
|
|
8237
|
+
roleMap: fulcrumRoles
|
|
8238
|
+
},
|
|
8239
|
+
{
|
|
8240
|
+
id: id("faq-questions-two-columns"),
|
|
8241
|
+
treatment: "faq-columns",
|
|
8242
|
+
roleMap: fulcrumRoles
|
|
8243
|
+
},
|
|
8244
|
+
{
|
|
8245
|
+
id: id("faq-all-answers-showing"),
|
|
8246
|
+
treatment: "faq-open",
|
|
8247
|
+
roleMap: fulcrumRoles
|
|
8248
|
+
},
|
|
8249
|
+
{
|
|
8250
|
+
id: id("image-gallery-square-tiles"),
|
|
8251
|
+
treatment: "gallery-tiles",
|
|
8252
|
+
roleMap: fulcrumRoles
|
|
8253
|
+
},
|
|
8254
|
+
{
|
|
8255
|
+
id: id("image-gallery-lead-photo"),
|
|
8256
|
+
treatment: "gallery-lead",
|
|
8257
|
+
roleMap: fulcrumRoles
|
|
8258
|
+
},
|
|
8259
|
+
{
|
|
8260
|
+
id: id("image-gallery-captions-under"),
|
|
8261
|
+
treatment: "gallery-captions",
|
|
8262
|
+
roleMap: fulcrumRoles
|
|
8263
|
+
},
|
|
8264
|
+
{
|
|
8265
|
+
id: id("cta-centred"),
|
|
8266
|
+
treatment: "cta-centred",
|
|
8267
|
+
roleMap: fulcrumRoles
|
|
8268
|
+
},
|
|
8269
|
+
{
|
|
8270
|
+
id: id("cta-title-beside-buttons"),
|
|
8271
|
+
treatment: "cta-beside",
|
|
8272
|
+
roleMap: fulcrumRoles
|
|
8273
|
+
},
|
|
8274
|
+
{
|
|
8275
|
+
id: id("cta-figure-beside-offer"),
|
|
8276
|
+
treatment: "cta-figure",
|
|
8277
|
+
roleMap: fulcrumRoles
|
|
8278
|
+
},
|
|
8279
|
+
{
|
|
8280
|
+
id: id("location-map-above-details"),
|
|
8281
|
+
treatment: "map-above",
|
|
8282
|
+
roleMap: fulcrumRoles
|
|
8283
|
+
},
|
|
8284
|
+
{
|
|
8285
|
+
id: id("location-map-beside-address"),
|
|
8286
|
+
treatment: "map-beside",
|
|
8287
|
+
roleMap: fulcrumRoles
|
|
8288
|
+
},
|
|
8289
|
+
{
|
|
8290
|
+
id: id("location-map-address-over-wide-map"),
|
|
8291
|
+
treatment: "map-wide",
|
|
8292
|
+
roleMap: fulcrumRoles
|
|
8293
|
+
},
|
|
8294
|
+
{
|
|
8295
|
+
id: id("location-map-entrance-photo"),
|
|
8296
|
+
treatment: "map-entrance",
|
|
8297
|
+
roleMap: fulcrumRoles
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
id: id("card-list-photos-on-top"),
|
|
8301
|
+
treatment: "photos-on-top",
|
|
8302
|
+
roleMap: fulcrumRoles
|
|
8303
|
+
}
|
|
8304
|
+
]
|
|
8305
|
+
};
|
|
8306
|
+
/** Poster: cards are white sheets, the statement is the brand block, highlights are the pop colour. */
|
|
8307
|
+
const posterRoles = {
|
|
8308
|
+
card: "sheet",
|
|
8309
|
+
statement: "brand",
|
|
8310
|
+
highlight: "pop"
|
|
8311
|
+
};
|
|
8312
|
+
/** The classic hero Looks: the copy block is a sheet, and joins a brand ground it would vanish on. */
|
|
8313
|
+
const posterPhotoGroundRoles = {
|
|
8314
|
+
...posterRoles,
|
|
8315
|
+
card: {
|
|
8316
|
+
default: "sheet",
|
|
8317
|
+
brand: "section"
|
|
8318
|
+
}
|
|
8319
|
+
};
|
|
8320
|
+
const posterOffers = [
|
|
8321
|
+
{
|
|
8322
|
+
id: id("event-details-panel"),
|
|
8323
|
+
treatment: "quiet",
|
|
8324
|
+
roleMap: posterRoles
|
|
8325
|
+
},
|
|
8326
|
+
{
|
|
8327
|
+
id: id("event-details-header"),
|
|
8328
|
+
treatment: "numeral",
|
|
8329
|
+
roleMap: posterRoles
|
|
8330
|
+
},
|
|
8331
|
+
{
|
|
8332
|
+
id: id("hero-headline-row"),
|
|
8333
|
+
treatment: "slab",
|
|
8334
|
+
roleMap: posterRoles
|
|
8335
|
+
},
|
|
8336
|
+
{
|
|
8337
|
+
id: id("hero-photo-beside-text"),
|
|
8338
|
+
treatment: "slab",
|
|
8339
|
+
roleMap: posterRoles
|
|
8340
|
+
},
|
|
8341
|
+
{
|
|
8342
|
+
id: id("hero-copy-over-gallery"),
|
|
8343
|
+
treatment: "strip",
|
|
8344
|
+
roleMap: posterRoles
|
|
8345
|
+
},
|
|
8346
|
+
{
|
|
8347
|
+
id: id("hero-photo-behind-text"),
|
|
8348
|
+
treatment: "band",
|
|
8349
|
+
roleMap: posterPhotoGroundRoles
|
|
8350
|
+
},
|
|
8351
|
+
{
|
|
8352
|
+
id: id("hero-short-photo-banner"),
|
|
8353
|
+
treatment: "short-band",
|
|
8354
|
+
roleMap: posterPhotoGroundRoles
|
|
8355
|
+
},
|
|
8356
|
+
{
|
|
8357
|
+
id: id("hero-page-head"),
|
|
8358
|
+
treatment: "numeral",
|
|
8359
|
+
roleMap: posterRoles
|
|
8360
|
+
},
|
|
8361
|
+
{
|
|
8362
|
+
id: id("feature-cards-cards"),
|
|
8363
|
+
treatment: "punchy",
|
|
8364
|
+
roleMap: posterRoles
|
|
8365
|
+
},
|
|
8366
|
+
{
|
|
8367
|
+
id: id("feature-cards-open-columns"),
|
|
8368
|
+
treatment: "open-heavy",
|
|
8369
|
+
removeKnobs: ["showPhotos"],
|
|
8370
|
+
roleMap: posterRoles
|
|
8371
|
+
},
|
|
8372
|
+
{
|
|
8373
|
+
id: id("feature-cards-lead-support"),
|
|
8374
|
+
treatment: "duotone-lead",
|
|
8375
|
+
roleMap: posterRoles
|
|
8376
|
+
},
|
|
8377
|
+
{
|
|
8378
|
+
id: id("feature-cards-index"),
|
|
8379
|
+
treatment: "loud",
|
|
8380
|
+
roleMap: posterRoles
|
|
7722
8381
|
},
|
|
7723
8382
|
{
|
|
7724
8383
|
id: id("feature-cards-sequence"),
|
|
@@ -7898,6 +8557,26 @@ const posterOffers = [
|
|
|
7898
8557
|
treatment: "cta-figure",
|
|
7899
8558
|
roleMap: posterRoles
|
|
7900
8559
|
},
|
|
8560
|
+
{
|
|
8561
|
+
id: id("location-map-above-details"),
|
|
8562
|
+
treatment: "map-above",
|
|
8563
|
+
roleMap: posterRoles
|
|
8564
|
+
},
|
|
8565
|
+
{
|
|
8566
|
+
id: id("location-map-beside-address"),
|
|
8567
|
+
treatment: "map-beside",
|
|
8568
|
+
roleMap: posterRoles
|
|
8569
|
+
},
|
|
8570
|
+
{
|
|
8571
|
+
id: id("location-map-address-over-wide-map"),
|
|
8572
|
+
treatment: "map-wide",
|
|
8573
|
+
roleMap: posterRoles
|
|
8574
|
+
},
|
|
8575
|
+
{
|
|
8576
|
+
id: id("location-map-entrance-photo"),
|
|
8577
|
+
treatment: "map-entrance",
|
|
8578
|
+
roleMap: posterRoles
|
|
8579
|
+
},
|
|
7901
8580
|
{
|
|
7902
8581
|
id: id("card-list-photos-on-top"),
|
|
7903
8582
|
treatment: "photos-on-top",
|
|
@@ -8153,6 +8832,11 @@ const lanternLooks = {
|
|
|
8153
8832
|
knobValues: quieterOrStandard,
|
|
8154
8833
|
roleMap: lanternVeilRoles
|
|
8155
8834
|
},
|
|
8835
|
+
{
|
|
8836
|
+
id: id("hero-short-photo-banner"),
|
|
8837
|
+
treatment: "short-veil",
|
|
8838
|
+
roleMap: lanternVeilRoles
|
|
8839
|
+
},
|
|
8156
8840
|
{
|
|
8157
8841
|
id: id("hero-page-head"),
|
|
8158
8842
|
treatment: "centred",
|
|
@@ -8353,6 +9037,26 @@ const lanternLooks = {
|
|
|
8353
9037
|
treatment: "cta-figure",
|
|
8354
9038
|
roleMap: lanternRoles
|
|
8355
9039
|
},
|
|
9040
|
+
{
|
|
9041
|
+
id: id("location-map-above-details"),
|
|
9042
|
+
treatment: "map-above",
|
|
9043
|
+
roleMap: lanternRoles
|
|
9044
|
+
},
|
|
9045
|
+
{
|
|
9046
|
+
id: id("location-map-beside-address"),
|
|
9047
|
+
treatment: "map-beside",
|
|
9048
|
+
roleMap: lanternRoles
|
|
9049
|
+
},
|
|
9050
|
+
{
|
|
9051
|
+
id: id("location-map-address-over-wide-map"),
|
|
9052
|
+
treatment: "map-wide",
|
|
9053
|
+
roleMap: lanternRoles
|
|
9054
|
+
},
|
|
9055
|
+
{
|
|
9056
|
+
id: id("location-map-entrance-photo"),
|
|
9057
|
+
treatment: "map-entrance",
|
|
9058
|
+
roleMap: lanternRoles
|
|
9059
|
+
},
|
|
8356
9060
|
{
|
|
8357
9061
|
id: id("card-list-photos-on-top"),
|
|
8358
9062
|
treatment: "photos-on-top",
|
|
@@ -8666,6 +9370,26 @@ const measureLooks = {
|
|
|
8666
9370
|
treatment: "cta-figure",
|
|
8667
9371
|
roleMap: measureRoles
|
|
8668
9372
|
},
|
|
9373
|
+
{
|
|
9374
|
+
id: id("location-map-above-details"),
|
|
9375
|
+
treatment: "map-above",
|
|
9376
|
+
roleMap: measureRoles
|
|
9377
|
+
},
|
|
9378
|
+
{
|
|
9379
|
+
id: id("location-map-beside-address"),
|
|
9380
|
+
treatment: "map-beside",
|
|
9381
|
+
roleMap: measureRoles
|
|
9382
|
+
},
|
|
9383
|
+
{
|
|
9384
|
+
id: id("location-map-address-over-wide-map"),
|
|
9385
|
+
treatment: "map-wide",
|
|
9386
|
+
roleMap: measureRoles
|
|
9387
|
+
},
|
|
9388
|
+
{
|
|
9389
|
+
id: id("location-map-entrance-photo"),
|
|
9390
|
+
treatment: "map-entrance",
|
|
9391
|
+
roleMap: measureRoles
|
|
9392
|
+
},
|
|
8669
9393
|
{
|
|
8670
9394
|
id: id("card-list-photos-on-top"),
|
|
8671
9395
|
treatment: "photos-on-top",
|
|
@@ -9497,7 +10221,105 @@ const curatedSiteStyles = [
|
|
|
9497
10221
|
textAlign: "left",
|
|
9498
10222
|
paddingY: "tight",
|
|
9499
10223
|
paddingX: "none",
|
|
9500
|
-
borderTop: { width: "none" }
|
|
10224
|
+
borderTop: { width: "none" }
|
|
10225
|
+
}
|
|
10226
|
+
},
|
|
10227
|
+
brandAlign: "start",
|
|
10228
|
+
brandLogoSize: "md"
|
|
10229
|
+
} },
|
|
10230
|
+
recommendedFooterLookIds: ["footer-links-row"],
|
|
10231
|
+
buttonStyleChoices: [
|
|
10232
|
+
buttonChoice("quiet-arrow", void 0, {
|
|
10233
|
+
secondaryTreatment: "solid-accent",
|
|
10234
|
+
size: "comfortable",
|
|
10235
|
+
hoverTreatment: "deep-and-sheet"
|
|
10236
|
+
}),
|
|
10237
|
+
buttonChoice("flat-ink"),
|
|
10238
|
+
buttonChoice("editorial-link")
|
|
10239
|
+
],
|
|
10240
|
+
paletteRecommendations: [
|
|
10241
|
+
paletteRecommendation("warm-neutral-forest"),
|
|
10242
|
+
paletteRecommendation("soft-natural-sage"),
|
|
10243
|
+
paletteRecommendation("soft-natural-stone")
|
|
10244
|
+
]
|
|
10245
|
+
}),
|
|
10246
|
+
defineCuratedSiteStyle({
|
|
10247
|
+
id: "site-style:loom",
|
|
10248
|
+
name: "Loom",
|
|
10249
|
+
offering: { kind: "lab" },
|
|
10250
|
+
description: "Stitched seams, sewn-label buttons and one strong patch of colour on each page. Warm and handmade, for studios and makers who teach.",
|
|
10251
|
+
generationBrief: "Use warm serif headings, clear working copy, flat grounds and one strong patch of colour. Keep workshop details and booking actions easy to find.",
|
|
10252
|
+
headingDecoration: noHeadingDecoration,
|
|
10253
|
+
tokenRecipes: {
|
|
10254
|
+
palette: "warm-neutral",
|
|
10255
|
+
contrast: "strong",
|
|
10256
|
+
radius: "soft",
|
|
10257
|
+
shadow: "none",
|
|
10258
|
+
typography: "classic-serif",
|
|
10259
|
+
spacing: "airy",
|
|
10260
|
+
motion: "subtle"
|
|
10261
|
+
},
|
|
10262
|
+
compositionBudget: accentLedQuietBudget,
|
|
10263
|
+
typography: loomTypography,
|
|
10264
|
+
heroTypography: groundedSerifHeroTypography,
|
|
10265
|
+
looks: loomLooks,
|
|
10266
|
+
contentTemplateDefaults: { event: "event-header" },
|
|
10267
|
+
themeOverrides: {
|
|
10268
|
+
accordions: editorialDividedAccordionSystem,
|
|
10269
|
+
testimonialQuote: serifDisplayQuote
|
|
10270
|
+
},
|
|
10271
|
+
headerStyleRecipes: { "serif-line": {
|
|
10272
|
+
tone: "neutral",
|
|
10273
|
+
background: {
|
|
10274
|
+
kind: "token",
|
|
10275
|
+
token: "background"
|
|
10276
|
+
},
|
|
10277
|
+
nav: {
|
|
10278
|
+
kind: "underline",
|
|
10279
|
+
hover: "underline",
|
|
10280
|
+
underlineColorToken: "accent"
|
|
10281
|
+
},
|
|
10282
|
+
navWeight: "semibold",
|
|
10283
|
+
navLinkWeight: "semibold",
|
|
10284
|
+
navTypography: "plain",
|
|
10285
|
+
border: "bottom",
|
|
10286
|
+
shadow: { kind: "explicit-none" },
|
|
10287
|
+
frame: { kind: "none" },
|
|
10288
|
+
logo: {
|
|
10289
|
+
fontFamily: "heading",
|
|
10290
|
+
letterSpacing: "normal",
|
|
10291
|
+
gradient: false
|
|
10292
|
+
},
|
|
10293
|
+
cta: { treatment: "primary" }
|
|
10294
|
+
} },
|
|
10295
|
+
footerLookRecipes: { "footer-links-row": {
|
|
10296
|
+
arrangement: "simple",
|
|
10297
|
+
ground: {
|
|
10298
|
+
kind: "style-surface",
|
|
10299
|
+
surface: "deep"
|
|
10300
|
+
},
|
|
10301
|
+
nav: {
|
|
10302
|
+
weight: "regular",
|
|
10303
|
+
colorToken: "primaryForeground",
|
|
10304
|
+
hoverColorToken: "primaryForeground",
|
|
10305
|
+
typography: "body"
|
|
10306
|
+
},
|
|
10307
|
+
legal: {
|
|
10308
|
+
kind: "separate",
|
|
10309
|
+
bar: {
|
|
10310
|
+
fullBleed: false,
|
|
10311
|
+
background: {
|
|
10312
|
+
kind: "style-surface",
|
|
10313
|
+
surface: "deep"
|
|
10314
|
+
},
|
|
10315
|
+
textColor: "primaryForeground",
|
|
10316
|
+
textAlign: "left",
|
|
10317
|
+
paddingY: "compact",
|
|
10318
|
+
paddingX: "none",
|
|
10319
|
+
borderTop: {
|
|
10320
|
+
width: "medium",
|
|
10321
|
+
colorToken: "primaryForeground"
|
|
10322
|
+
}
|
|
9501
10323
|
}
|
|
9502
10324
|
},
|
|
9503
10325
|
brandAlign: "start",
|
|
@@ -9505,18 +10327,17 @@ const curatedSiteStyles = [
|
|
|
9505
10327
|
} },
|
|
9506
10328
|
recommendedFooterLookIds: ["footer-links-row"],
|
|
9507
10329
|
buttonStyleChoices: [
|
|
9508
|
-
buttonChoice("
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
10330
|
+
buttonChoice("sewn-label"),
|
|
10331
|
+
buttonChoice("square-outline", void 0, {
|
|
10332
|
+
corners: "soft",
|
|
10333
|
+
lineWeight: "heavy"
|
|
9512
10334
|
}),
|
|
9513
|
-
buttonChoice("
|
|
9514
|
-
buttonChoice("editorial-link")
|
|
10335
|
+
buttonChoice("editorial-link", void 0, { underline: "persistent-mark" })
|
|
9515
10336
|
],
|
|
9516
10337
|
paletteRecommendations: [
|
|
9517
|
-
paletteRecommendation("
|
|
9518
|
-
paletteRecommendation("
|
|
9519
|
-
paletteRecommendation("
|
|
10338
|
+
paletteRecommendation("loom-hearth"),
|
|
10339
|
+
paletteRecommendation("loom-flax"),
|
|
10340
|
+
paletteRecommendation("loom-ember")
|
|
9520
10341
|
]
|
|
9521
10342
|
})
|
|
9522
10343
|
];
|
|
@@ -9538,67 +10359,373 @@ function requireCuratedSiteStyle(id) {
|
|
|
9538
10359
|
if (!style) throw new UnavailableSiteStyleError(id);
|
|
9539
10360
|
return style;
|
|
9540
10361
|
}
|
|
9541
|
-
function curatedStyleTemplate(input) {
|
|
9542
|
-
return {
|
|
9543
|
-
id: asDesignSystemTemplateId(`template:${input.id.replace("site-style:", "")}`),
|
|
9544
|
-
name: input.name,
|
|
9545
|
-
version: 1,
|
|
9546
|
-
tokenRecipes: input.tokenRecipes,
|
|
9547
|
-
compositionBudget: input.compositionBudget,
|
|
9548
|
-
supportedSectionSurfaces: generatedDesignOptionCatalog.sectionSurfaces,
|
|
9549
|
-
supportedContentFrames: input.supportedContentFrames ?? generatedContentFrameKinds,
|
|
9550
|
-
supportedTransitions: generatedDesignOptionCatalog.transitions
|
|
9551
|
-
};
|
|
10362
|
+
function curatedStyleTemplate(input) {
|
|
10363
|
+
return {
|
|
10364
|
+
id: asDesignSystemTemplateId(`template:${input.id.replace("site-style:", "")}`),
|
|
10365
|
+
name: input.name,
|
|
10366
|
+
version: 1,
|
|
10367
|
+
tokenRecipes: input.tokenRecipes,
|
|
10368
|
+
compositionBudget: input.compositionBudget,
|
|
10369
|
+
supportedSectionSurfaces: generatedDesignOptionCatalog.sectionSurfaces,
|
|
10370
|
+
supportedContentFrames: input.supportedContentFrames ?? generatedContentFrameKinds,
|
|
10371
|
+
supportedTransitions: generatedDesignOptionCatalog.transitions
|
|
10372
|
+
};
|
|
10373
|
+
}
|
|
10374
|
+
curatedSiteStyles.forEach((style) => {
|
|
10375
|
+
if (style.looks.kind === "offers") {
|
|
10376
|
+
validateLookFallbacks(style.looks);
|
|
10377
|
+
validateCalendarModeOffers(style.looks);
|
|
10378
|
+
}
|
|
10379
|
+
(/* @__PURE__ */ new Set([...Object.values(style.footerLookRecipes ?? {}), ...style.recommendedFooterLookIds.map((id) => resolveFooterLookRecipe(style, id))])).forEach((recipe) => validateFooterRecipeSurfaces(style, recipe));
|
|
10380
|
+
});
|
|
10381
|
+
function withTeamLooks(looks, roleMap) {
|
|
10382
|
+
return {
|
|
10383
|
+
...looks,
|
|
10384
|
+
offers: [
|
|
10385
|
+
{
|
|
10386
|
+
id: id("team-members-tall-portraits"),
|
|
10387
|
+
treatment: "team-portraits",
|
|
10388
|
+
roleMap
|
|
10389
|
+
},
|
|
10390
|
+
{
|
|
10391
|
+
id: id("team-members-portrait-bio"),
|
|
10392
|
+
treatment: "team-bio",
|
|
10393
|
+
roleMap
|
|
10394
|
+
},
|
|
10395
|
+
{
|
|
10396
|
+
id: id("team-members-ruled-names"),
|
|
10397
|
+
treatment: "team-names",
|
|
10398
|
+
roleMap
|
|
10399
|
+
},
|
|
10400
|
+
...looks.offers
|
|
10401
|
+
]
|
|
10402
|
+
};
|
|
10403
|
+
}
|
|
10404
|
+
function withPriceLooks(looks, roleMap, featuredRoleMap = roleMap) {
|
|
10405
|
+
return {
|
|
10406
|
+
...looks,
|
|
10407
|
+
offers: [
|
|
10408
|
+
{
|
|
10409
|
+
id: id("shop-price-cards"),
|
|
10410
|
+
treatment: "shop-prices",
|
|
10411
|
+
roleMap
|
|
10412
|
+
},
|
|
10413
|
+
{
|
|
10414
|
+
id: id("shop-price-cards-featured"),
|
|
10415
|
+
treatment: "shop-prices-featured",
|
|
10416
|
+
roleMap: featuredRoleMap
|
|
10417
|
+
},
|
|
10418
|
+
{
|
|
10419
|
+
id: id("shop-ruled-prices"),
|
|
10420
|
+
treatment: "shop-price-list",
|
|
10421
|
+
roleMap
|
|
10422
|
+
},
|
|
10423
|
+
...looks.offers
|
|
10424
|
+
]
|
|
10425
|
+
};
|
|
10426
|
+
}
|
|
10427
|
+
asPageFlowPresetId("generated-default");
|
|
10428
|
+
const southWestTwerkSchoolSiteStyleId = asSiteStyleId("site-style:south-west-twerk-school");
|
|
10429
|
+
const heroBrandScrimFixedFrameLookId = asAppearancePresetId("hero-brand-scrim-fixed-frame");
|
|
10430
|
+
const classicHeroLayoutVariantKey = asLayoutVariantKey("classic");
|
|
10431
|
+
const microHeroLayoutVariantKey = asLayoutVariantKey("micro");
|
|
10432
|
+
const waveBoundaryOptionId = asBoundaryOptionId("break:wave");
|
|
10433
|
+
const registeredSiteStyleBlockPolicies = [{
|
|
10434
|
+
siteStyleId: southWestTwerkSchoolSiteStyleId,
|
|
10435
|
+
kind: "locked-look-and-layouts",
|
|
10436
|
+
blockKind: "block.hero",
|
|
10437
|
+
lookId: heroBrandScrimFixedFrameLookId,
|
|
10438
|
+
allowedLayoutVariantKeys: [classicHeroLayoutVariantKey, microHeroLayoutVariantKey],
|
|
10439
|
+
defaultLayoutVariantKey: classicHeroLayoutVariantKey,
|
|
10440
|
+
defaultBoundaryAfter: {
|
|
10441
|
+
optionId: waveBoundaryOptionId,
|
|
10442
|
+
mode: "default-only"
|
|
10443
|
+
},
|
|
10444
|
+
customize: {
|
|
10445
|
+
hideDisallowedLooks: true,
|
|
10446
|
+
hideDisallowedLayouts: true
|
|
10447
|
+
}
|
|
10448
|
+
}];
|
|
10449
|
+
function deriveSiteStyleBlockPolicy(input) {
|
|
10450
|
+
return registeredSiteStyleBlockPolicies.find((policy) => policy.siteStyleId === input.siteStyleId && policy.blockKind === input.blockKind) ?? { kind: "open" };
|
|
10451
|
+
}
|
|
10452
|
+
function isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) {
|
|
10453
|
+
switch (policy.kind) {
|
|
10454
|
+
case "open": return true;
|
|
10455
|
+
case "locked-look-and-layouts": return policy.allowedLayoutVariantKeys.includes(layoutVariantKey);
|
|
10456
|
+
default: return assertNever(policy, "Unhandled site style block policy");
|
|
10457
|
+
}
|
|
10458
|
+
}
|
|
10459
|
+
function normalizeLayoutVariantForPolicy(policy, layoutVariantKey) {
|
|
10460
|
+
switch (policy.kind) {
|
|
10461
|
+
case "open": return layoutVariantKey ?? null;
|
|
10462
|
+
case "locked-look-and-layouts": return layoutVariantKey && isLayoutVariantAllowedByPolicy(policy, layoutVariantKey) ? layoutVariantKey : policy.defaultLayoutVariantKey;
|
|
10463
|
+
default: return assertNever(policy, "Unhandled site style block policy");
|
|
10464
|
+
}
|
|
10465
|
+
}
|
|
10466
|
+
//#endregion
|
|
10467
|
+
//#region ../theme-core/src/site-styles/effectiveArrangement.ts
|
|
10468
|
+
/** Content stage: legacy Looks leave arrangement to stored intent and defaults. */
|
|
10469
|
+
function resolveEffectiveArrangement(input) {
|
|
10470
|
+
const arrangement = input.look?.structure.byMode[input.mode ?? "default"];
|
|
10471
|
+
if (arrangement !== void 0 && input.manifest.keys.includes(arrangement)) return {
|
|
10472
|
+
kind: "resolved",
|
|
10473
|
+
key: asLayoutVariantKey(arrangement),
|
|
10474
|
+
source: "look"
|
|
10475
|
+
};
|
|
10476
|
+
const stored = validStoredVariant(input.manifest, input.storedVariant);
|
|
10477
|
+
const policyKey = input.policy ? normalizeLayoutVariantForPolicy(input.policy, stored) : stored;
|
|
10478
|
+
if (policyKey && policyKey !== stored) return {
|
|
10479
|
+
kind: "resolved",
|
|
10480
|
+
key: policyKey,
|
|
10481
|
+
source: "policy"
|
|
10482
|
+
};
|
|
10483
|
+
if (stored) return {
|
|
10484
|
+
kind: "resolved",
|
|
10485
|
+
key: stored,
|
|
10486
|
+
source: "stored"
|
|
10487
|
+
};
|
|
10488
|
+
const key = manifestDefaultArrangement(input.manifest);
|
|
10489
|
+
return key === null ? {
|
|
10490
|
+
kind: "none",
|
|
10491
|
+
key: null
|
|
10492
|
+
} : {
|
|
10493
|
+
kind: "resolved",
|
|
10494
|
+
key,
|
|
10495
|
+
source: "manifest-default"
|
|
10496
|
+
};
|
|
10497
|
+
}
|
|
10498
|
+
function validStoredVariant(manifest, stored) {
|
|
10499
|
+
if (stored.kind === "absent") return null;
|
|
10500
|
+
return manifest.keys.includes(stored.key) && !manifest.lookOnlyKeys?.includes(stored.key) ? stored.key : null;
|
|
10501
|
+
}
|
|
10502
|
+
function arrangementManifestFromVariants(manifest) {
|
|
10503
|
+
return {
|
|
10504
|
+
keys: Object.keys(manifest.variants ?? {}),
|
|
10505
|
+
defaultKey: manifest.defaultVariant ?? null,
|
|
10506
|
+
lookOnlyKeys: manifest.variantMeaning?.lookOnlyKeys
|
|
10507
|
+
};
|
|
10508
|
+
}
|
|
10509
|
+
/** A Look-only arrangement is never a default: a block whose only variants are Look-only keeps its plain layout. */
|
|
10510
|
+
function manifestDefaultArrangement(manifest) {
|
|
10511
|
+
const defaults = manifest.keys.filter((key) => !manifest.lookOnlyKeys?.includes(key));
|
|
10512
|
+
const key = manifest.defaultKey !== null && defaults.includes(manifest.defaultKey) ? manifest.defaultKey : defaults[0];
|
|
10513
|
+
return key === void 0 ? null : asLayoutVariantKey(key);
|
|
10514
|
+
}
|
|
10515
|
+
/** A declared secondary axis shares the arrangement rule, without rewriting content. */
|
|
10516
|
+
function resolveModeArrangement(input) {
|
|
10517
|
+
const key = [input.content[input.declaration.arrangementField], input.content.layout].find((value) => typeof value === "string" && input.declaration.keys.includes(value));
|
|
10518
|
+
return resolveEffectiveArrangement({
|
|
10519
|
+
look: input.look,
|
|
10520
|
+
mode: input.mode,
|
|
10521
|
+
storedVariant: key === void 0 ? { kind: "absent" } : {
|
|
10522
|
+
kind: "explicit",
|
|
10523
|
+
key: asLayoutVariantKey(key)
|
|
10524
|
+
},
|
|
10525
|
+
manifest: {
|
|
10526
|
+
keys: [...input.declaration.keys, ...input.declaration.lookOnlyKeys ?? []],
|
|
10527
|
+
defaultKey: input.declaration.defaultKey,
|
|
10528
|
+
lookOnlyKeys: input.declaration.lookOnlyKeys
|
|
10529
|
+
}
|
|
10530
|
+
});
|
|
10531
|
+
}
|
|
10532
|
+
/** Mode is content-owned and independent of the selected Look. */
|
|
10533
|
+
function readStoredMode(manifest, content) {
|
|
10534
|
+
const meaning = manifest.variantMeaning;
|
|
10535
|
+
if (meaning.kind !== "mode") return null;
|
|
10536
|
+
const stored = content.variant;
|
|
10537
|
+
return isArrangementMode(stored) && meaning.modes.includes(stored) ? stored : meaning.defaultMode;
|
|
10538
|
+
}
|
|
10539
|
+
function resolvePublishedLook(input, visited = /* @__PURE__ */ new Set()) {
|
|
10540
|
+
if (input.audience === "authoring" || visited.has(input.look.id)) return input.look;
|
|
10541
|
+
const fallback = input.look.structure.whenMissing.find((rule) => !input.contentFacts[rule.fact]);
|
|
10542
|
+
const next = input.catalogue.find((entry) => entry.id === fallback?.look && entry.blockKinds.some((kind) => input.look.blockKinds.includes(kind)));
|
|
10543
|
+
return next === void 0 ? input.look : resolvePublishedLook({
|
|
10544
|
+
...input,
|
|
10545
|
+
look: next
|
|
10546
|
+
}, /* @__PURE__ */ new Set([...visited, input.look.id]));
|
|
10547
|
+
}
|
|
10548
|
+
//#endregion
|
|
10549
|
+
//#region ../theme-core/src/site-styles/lookResolution.ts
|
|
10550
|
+
function lookDefinitionForId(lookId, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
|
|
10551
|
+
return catalogue.find((entry) => entry.id === lookId) ?? null;
|
|
10552
|
+
}
|
|
10553
|
+
/** Validates destination data independently of manifest rollout availability. */
|
|
10554
|
+
function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
|
|
10555
|
+
validateOfferKnobs(style, catalogue);
|
|
10556
|
+
catalogue.forEach((entry) => lookModes(entry).forEach((mode) => {
|
|
10557
|
+
if (style.offers.some((offer) => catalogue.some((candidate) => candidate.id === offer.id && candidate.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && lookModes(candidate).includes(mode))) && !fallbackEndsAtOffer(entry, mode, style, catalogue, /* @__PURE__ */ new Set())) throw new Error(`Invalid Look fallback for ${style.skin}: ${entry.id} (${mode ?? "default"})`);
|
|
10558
|
+
}));
|
|
10559
|
+
}
|
|
10560
|
+
/** Every admitted calendar mode needs an automatic Look before a style can load. */
|
|
10561
|
+
function validateCalendarModeOffers(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
|
|
10562
|
+
const calendarLooks = catalogue.filter((look) => look.blockKinds.includes("block.event-calendar"));
|
|
10563
|
+
arrangementModes.forEach((mode) => {
|
|
10564
|
+
if (!calendarLooks.some((look) => lookModes(look).includes(mode) && style.offers.some((offer) => offer.id === look.id))) throw new Error(`Missing automatic calendar Look for ${style.skin}: ${mode}`);
|
|
10565
|
+
});
|
|
10566
|
+
}
|
|
10567
|
+
function fallbackEndsAtOffer(entry, mode, style, catalogue, visited) {
|
|
10568
|
+
if (visited.has(entry.id) || !lookModes(entry).includes(mode)) return false;
|
|
10569
|
+
if (style.offers.some((offer) => offer.id === entry.id)) return true;
|
|
10570
|
+
const nextVisited = /* @__PURE__ */ new Set([...visited, entry.id]);
|
|
10571
|
+
return entry.structure.styleFallback.length > 0 && entry.structure.styleFallback.every((fallback) => {
|
|
10572
|
+
const next = lookDefinitionForId(fallback, catalogue);
|
|
10573
|
+
return next !== null && next.blockKinds.some((kind) => entry.blockKinds.includes(kind)) && fallbackEndsAtOffer(next, mode, style, catalogue, nextVisited);
|
|
10574
|
+
});
|
|
10575
|
+
}
|
|
10576
|
+
const arrangementLookHooks = [
|
|
10577
|
+
"data-fact",
|
|
10578
|
+
"data-card-list",
|
|
10579
|
+
"data-card-list-item",
|
|
10580
|
+
"data-availability",
|
|
10581
|
+
"data-event-places",
|
|
10582
|
+
"data-today",
|
|
10583
|
+
"data-other-month",
|
|
10584
|
+
"data-current",
|
|
10585
|
+
"data-skin",
|
|
10586
|
+
"data-look",
|
|
10587
|
+
"data-arrangement",
|
|
10588
|
+
"data-treat",
|
|
10589
|
+
"data-surface",
|
|
10590
|
+
"data-length",
|
|
10591
|
+
"data-knob-*",
|
|
10592
|
+
"data-mode",
|
|
10593
|
+
"data-has-*",
|
|
10594
|
+
"data-photo-count",
|
|
10595
|
+
"data-slot",
|
|
10596
|
+
"data-control",
|
|
10597
|
+
"data-placeholder-field",
|
|
10598
|
+
"data-one-person",
|
|
10599
|
+
"data-team-about"
|
|
10600
|
+
];
|
|
10601
|
+
appearancePresets.filter(isArrangementAppearancePreset);
|
|
10602
|
+
/** Closed structural hooks shared by block arrangements and bounded skins. */
|
|
10603
|
+
const arrangementSlotNames = [
|
|
10604
|
+
"contact",
|
|
10605
|
+
"social",
|
|
10606
|
+
"base",
|
|
10607
|
+
"section",
|
|
10608
|
+
"background",
|
|
10609
|
+
"schedule-section",
|
|
10610
|
+
"shop-section",
|
|
10611
|
+
"stack",
|
|
10612
|
+
"inline",
|
|
10613
|
+
"grid",
|
|
10614
|
+
"head",
|
|
10615
|
+
"eyebrow",
|
|
10616
|
+
"heading",
|
|
10617
|
+
"intro",
|
|
10618
|
+
"frame",
|
|
10619
|
+
"copy",
|
|
10620
|
+
"caption",
|
|
10621
|
+
"headline",
|
|
10622
|
+
"lede",
|
|
10623
|
+
"actions",
|
|
10624
|
+
"media",
|
|
10625
|
+
"photo",
|
|
10626
|
+
"gallery",
|
|
10627
|
+
"sticker",
|
|
10628
|
+
"facts",
|
|
10629
|
+
"fact-label",
|
|
10630
|
+
"fact-value",
|
|
10631
|
+
"chips",
|
|
10632
|
+
"chip",
|
|
10633
|
+
"figure",
|
|
10634
|
+
"figure-value",
|
|
10635
|
+
"figure-label",
|
|
10636
|
+
"schedule",
|
|
10637
|
+
"dates",
|
|
10638
|
+
"date-places",
|
|
10639
|
+
"availability",
|
|
10640
|
+
"layout",
|
|
10641
|
+
"items",
|
|
10642
|
+
"item",
|
|
10643
|
+
"lead",
|
|
10644
|
+
"item-media",
|
|
10645
|
+
"item-body",
|
|
10646
|
+
"icon",
|
|
10647
|
+
"numeral",
|
|
10648
|
+
"item-title",
|
|
10649
|
+
"item-text",
|
|
10650
|
+
"item-actions",
|
|
10651
|
+
"list",
|
|
10652
|
+
"row",
|
|
10653
|
+
"row-continued",
|
|
10654
|
+
"group",
|
|
10655
|
+
"group-label",
|
|
10656
|
+
"group-day",
|
|
10657
|
+
"group-date",
|
|
10658
|
+
"date",
|
|
10659
|
+
"weekday",
|
|
10660
|
+
"day",
|
|
10661
|
+
"month",
|
|
10662
|
+
"date-label",
|
|
10663
|
+
"time",
|
|
10664
|
+
"price",
|
|
10665
|
+
"price-amount",
|
|
10666
|
+
"price-unit",
|
|
10667
|
+
"price-note",
|
|
10668
|
+
"mark",
|
|
10669
|
+
"navigation",
|
|
10670
|
+
"time-start",
|
|
10671
|
+
"time-length",
|
|
10672
|
+
"what",
|
|
10673
|
+
"item-meta",
|
|
10674
|
+
"places",
|
|
10675
|
+
"places-low",
|
|
10676
|
+
"places-full",
|
|
10677
|
+
"action",
|
|
10678
|
+
"panel",
|
|
10679
|
+
"panel-heading",
|
|
10680
|
+
"more",
|
|
10681
|
+
"quote",
|
|
10682
|
+
"attribution",
|
|
10683
|
+
"outcome",
|
|
10684
|
+
"controls",
|
|
10685
|
+
"control",
|
|
10686
|
+
"counter"
|
|
10687
|
+
];
|
|
10688
|
+
/** A style cannot add a detail from another block that would silently do nothing. */
|
|
10689
|
+
function validateOfferKnobs(style, catalogue) {
|
|
10690
|
+
style.offers.forEach((offer) => {
|
|
10691
|
+
const look = lookDefinitionForId(offer.id, catalogue);
|
|
10692
|
+
if (!look) return;
|
|
10693
|
+
[...offer.addKnobs ?? [], ...Object.values(offer.surfaceTints ?? {}).flatMap((tint) => tint?.knob ? [tint.knob] : [])].forEach((knob) => {
|
|
10694
|
+
if (!look.blockKinds.some((block) => Array.isArray(lookKnobBlocks[knob]) ? lookKnobBlocks[knob].includes(block) : block === lookKnobBlocks[knob])) throw new Error(`Invalid knob ${knob} on ${look.id}`);
|
|
10695
|
+
});
|
|
10696
|
+
});
|
|
10697
|
+
}
|
|
10698
|
+
/** One role resolver, including section inheritance and ground-specific overrides. */
|
|
10699
|
+
function resolveItemSurface(role, ground, style) {
|
|
10700
|
+
return resolveSurface(itemSurfaceSpec(role, ground, style), style.context);
|
|
9552
10701
|
}
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
offers: [
|
|
9561
|
-
{
|
|
9562
|
-
id: id("team-members-tall-portraits"),
|
|
9563
|
-
treatment: "team-portraits",
|
|
9564
|
-
roleMap
|
|
9565
|
-
},
|
|
9566
|
-
{
|
|
9567
|
-
id: id("team-members-portrait-bio"),
|
|
9568
|
-
treatment: "team-bio",
|
|
9569
|
-
roleMap
|
|
9570
|
-
},
|
|
9571
|
-
{
|
|
9572
|
-
id: id("team-members-ruled-names"),
|
|
9573
|
-
treatment: "team-names",
|
|
9574
|
-
roleMap
|
|
9575
|
-
},
|
|
9576
|
-
...looks.offers
|
|
9577
|
-
]
|
|
10702
|
+
/** The declaration selected by a role/ground mapping; shared by preparation and checks. */
|
|
10703
|
+
function itemSurfaceSpec(role, ground, style) {
|
|
10704
|
+
const mapped = style.roleMap[role];
|
|
10705
|
+
const name = typeof mapped === "string" ? mapped : mapped[ground] ?? mapped.default;
|
|
10706
|
+
if (name === "section") return {
|
|
10707
|
+
kind: "paint",
|
|
10708
|
+
paint: { kind: "transparent" }
|
|
9578
10709
|
};
|
|
10710
|
+
const spec = style.surfaces[name];
|
|
10711
|
+
if (!spec) throw new Error(`Undeclared item surface ${name}`);
|
|
10712
|
+
return spec;
|
|
9579
10713
|
}
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
id: id("shop-ruled-prices"),
|
|
9596
|
-
treatment: "shop-price-list",
|
|
9597
|
-
roleMap
|
|
9598
|
-
},
|
|
9599
|
-
...looks.offers
|
|
9600
|
-
]
|
|
9601
|
-
};
|
|
10714
|
+
/** Fixed standalone slots and collection slots share the role resolver. */
|
|
10715
|
+
function resolveLookSlotSurfaces(look, roles, surfaces) {
|
|
10716
|
+
const arrangement = Object.values(look.structure.byMode)[0];
|
|
10717
|
+
const container = arrangement === "compact" ? "panel" : look.target === "events" ? "list" : "items";
|
|
10718
|
+
const entries = [
|
|
10719
|
+
...Object.entries(look.structure.slotRoles ?? {}).map(([slot, role]) => [slot, surfaces[role]]),
|
|
10720
|
+
...roles.container ? [[container, surfaces[roles.container]]] : [],
|
|
10721
|
+
...roles.items ? [
|
|
10722
|
+
["item", surfaces[roles.items]],
|
|
10723
|
+
["row", surfaces[roles.items]],
|
|
10724
|
+
["row-continued", surfaces[roles.items]]
|
|
10725
|
+
] : [],
|
|
10726
|
+
...roles.at?.first && arrangement === "lead-support" ? [["lead", surfaces[roles.at.first]]] : []
|
|
10727
|
+
];
|
|
10728
|
+
return Object.fromEntries(entries);
|
|
9602
10729
|
}
|
|
9603
10730
|
//#endregion
|
|
9604
10731
|
//#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
|
|
@@ -9737,751 +10864,4 @@ function authoredTransparentHeaderForegroundInput(header, palette) {
|
|
|
9737
10864
|
};
|
|
9738
10865
|
}
|
|
9739
10866
|
//#endregion
|
|
9740
|
-
|
|
9741
|
-
/**
|
|
9742
|
-
* Convert familiar viewport media queries to container queries when safe.
|
|
9743
|
-
* v1 supports simple width-based min/max clauses joined by `and`.
|
|
9744
|
-
*/
|
|
9745
|
-
function convertMediaQueryToContainerQuery(query) {
|
|
9746
|
-
const normalized = normalizeMediaQueryPrelude(query);
|
|
9747
|
-
if (!normalized) return null;
|
|
9748
|
-
if (normalized.includes(",")) return null;
|
|
9749
|
-
if (/\bor\b/i.test(normalized)) return null;
|
|
9750
|
-
const clauses = splitTopLevelAnd(normalized);
|
|
9751
|
-
if (clauses.length === 0) return null;
|
|
9752
|
-
const convertedClauses = clauses.map(convertWidthClause);
|
|
9753
|
-
if (convertedClauses.some((clause) => clause === null)) return null;
|
|
9754
|
-
return convertedClauses.join(" and ");
|
|
9755
|
-
}
|
|
9756
|
-
function normalizeMediaQueryPrelude(query) {
|
|
9757
|
-
let normalized = query.trim();
|
|
9758
|
-
if (!normalized) return "";
|
|
9759
|
-
normalized = normalized.replace(/^only\s+/i, "").trim();
|
|
9760
|
-
if (/^screen\b/i.test(normalized)) {
|
|
9761
|
-
normalized = normalized.replace(/^screen\b/i, "").trim();
|
|
9762
|
-
normalized = normalized.replace(/^and\b/i, "").trim();
|
|
9763
|
-
}
|
|
9764
|
-
if (/^all\b/i.test(normalized)) {
|
|
9765
|
-
normalized = normalized.replace(/^all\b/i, "").trim();
|
|
9766
|
-
normalized = normalized.replace(/^and\b/i, "").trim();
|
|
9767
|
-
}
|
|
9768
|
-
return normalized;
|
|
9769
|
-
}
|
|
9770
|
-
function splitTopLevelAnd(input) {
|
|
9771
|
-
const parts = [];
|
|
9772
|
-
let depth = 0;
|
|
9773
|
-
let quote = null;
|
|
9774
|
-
let current = "";
|
|
9775
|
-
for (let i = 0; i < input.length; i++) {
|
|
9776
|
-
const ch = input[i];
|
|
9777
|
-
if (quote) {
|
|
9778
|
-
current += ch;
|
|
9779
|
-
if (ch === quote && input[i - 1] !== "\\") quote = null;
|
|
9780
|
-
continue;
|
|
9781
|
-
}
|
|
9782
|
-
if (ch === "\"" || ch === "'") {
|
|
9783
|
-
quote = ch;
|
|
9784
|
-
current += ch;
|
|
9785
|
-
continue;
|
|
9786
|
-
}
|
|
9787
|
-
if (ch === "(") {
|
|
9788
|
-
depth++;
|
|
9789
|
-
current += ch;
|
|
9790
|
-
continue;
|
|
9791
|
-
}
|
|
9792
|
-
if (ch === ")") {
|
|
9793
|
-
depth = Math.max(0, depth - 1);
|
|
9794
|
-
current += ch;
|
|
9795
|
-
continue;
|
|
9796
|
-
}
|
|
9797
|
-
if (depth === 0 && isAndBoundary(input, i)) {
|
|
9798
|
-
const trimmed = current.trim();
|
|
9799
|
-
if (trimmed) parts.push(trimmed);
|
|
9800
|
-
current = "";
|
|
9801
|
-
i += 2;
|
|
9802
|
-
continue;
|
|
9803
|
-
}
|
|
9804
|
-
current += ch;
|
|
9805
|
-
}
|
|
9806
|
-
const trimmed = current.trim();
|
|
9807
|
-
if (trimmed) parts.push(trimmed);
|
|
9808
|
-
return parts;
|
|
9809
|
-
}
|
|
9810
|
-
function isAndBoundary(input, index) {
|
|
9811
|
-
if (!input.slice(index, index + 3).match(/^and$/i)) return false;
|
|
9812
|
-
const prev = input[index - 1] ?? " ";
|
|
9813
|
-
const next = input[index + 3] ?? " ";
|
|
9814
|
-
return /\s/.test(prev) && /\s/.test(next);
|
|
9815
|
-
}
|
|
9816
|
-
function convertWidthClause(clause) {
|
|
9817
|
-
const match = clause.match(/^\(\s*(min|max)-width\s*:\s*([^\)]+?)\s*\)$/i);
|
|
9818
|
-
if (!match) return null;
|
|
9819
|
-
const kindRaw = match[1];
|
|
9820
|
-
const valueRaw = match[2];
|
|
9821
|
-
if (!kindRaw || !valueRaw) return null;
|
|
9822
|
-
const kind = kindRaw.toLowerCase();
|
|
9823
|
-
const value = valueRaw.trim();
|
|
9824
|
-
if (!value) return null;
|
|
9825
|
-
return `(${kind}-width: ${value})`;
|
|
9826
|
-
}
|
|
9827
|
-
//#endregion
|
|
9828
|
-
//#region ../theme-core/src/responsiveMode.ts
|
|
9829
|
-
const DEFAULT_THEME_RESPONSIVE_MODE = "viewport";
|
|
9830
|
-
const THEME_RESPONSIVE_CONTAINER_NAME = "rb-site";
|
|
9831
|
-
const THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
|
|
9832
|
-
function getResponsiveScopeSpec(mode = DEFAULT_THEME_RESPONSIVE_MODE) {
|
|
9833
|
-
if (mode === "container") return {
|
|
9834
|
-
kind: "container",
|
|
9835
|
-
selector: `[${THEME_RESPONSIVE_MODE_ATTR}="container"]`,
|
|
9836
|
-
containerName: THEME_RESPONSIVE_CONTAINER_NAME
|
|
9837
|
-
};
|
|
9838
|
-
return {
|
|
9839
|
-
kind: "viewport",
|
|
9840
|
-
selector: `[${THEME_RESPONSIVE_MODE_ATTR}="viewport"]`
|
|
9841
|
-
};
|
|
9842
|
-
}
|
|
9843
|
-
function escapeRegExp(value) {
|
|
9844
|
-
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
9845
|
-
}
|
|
9846
|
-
new RegExp(buildResponsiveScopeRulePatternSource(), "g");
|
|
9847
|
-
new RegExp(buildResponsiveScopeRulePatternSource(), "y");
|
|
9848
|
-
function buildResponsiveScopeRulePatternSource() {
|
|
9849
|
-
return [
|
|
9850
|
-
"@scope",
|
|
9851
|
-
"\\(\\[",
|
|
9852
|
-
escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
|
|
9853
|
-
"=\"(?:viewport|container)\"\\]\\)",
|
|
9854
|
-
"to",
|
|
9855
|
-
"\\((?::scope )?\\[",
|
|
9856
|
-
escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
|
|
9857
|
-
"\\]\\)",
|
|
9858
|
-
"\\{"
|
|
9859
|
-
].join("\\s*");
|
|
9860
|
-
}
|
|
9861
|
-
const NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES = [
|
|
9862
|
-
`min-width: 12rem;`,
|
|
9863
|
-
`width: max-content;`,
|
|
9864
|
-
`max-width: min(22rem, calc(100vw - 2rem));`,
|
|
9865
|
-
`transform: translateX(var(--nav-dropdown-shift-x, 0px));`
|
|
9866
|
-
];
|
|
9867
|
-
//#endregion
|
|
9868
|
-
//#region ../theme-core/src/header/surfaceRules.ts
|
|
9869
|
-
/** Compile the at-rest surface independently of scroll treatment and paint geometry. */
|
|
9870
|
-
function buildHeaderSurfaceRules(header, tokens) {
|
|
9871
|
-
const base = [];
|
|
9872
|
-
const background = header.background;
|
|
9873
|
-
if (background.type === "color") base.push(`background-color: ${tokens.getColor(background.color || "surface")};`);
|
|
9874
|
-
else if (background.type === "gradient" && background.gradient) {
|
|
9875
|
-
const stops = background.gradient.stops.map((stop) => tokens.getColor(stop.color)).join(", ");
|
|
9876
|
-
base.push(`background-image: linear-gradient(${background.gradient.angle ?? 180}deg, ${stops});`);
|
|
9877
|
-
}
|
|
9878
|
-
const borderWidth = getComponentBorderWidthPx(header.border?.width ?? "none");
|
|
9879
|
-
if (!header.border || borderWidth === "0") return {
|
|
9880
|
-
base,
|
|
9881
|
-
border: []
|
|
9882
|
-
};
|
|
9883
|
-
const color = rgbColorValue(header.border.colorToken?.trim() || "border");
|
|
9884
|
-
const style = header.border.style === "dashed" ? "dashed" : "solid";
|
|
9885
|
-
return {
|
|
9886
|
-
base,
|
|
9887
|
-
border: header.border.position === "both" ? [`border-top: ${borderWidth} ${style} ${color};`, `border-bottom: ${borderWidth} ${style} ${color};`] : [`border-${header.border.position}: ${borderWidth} ${style} ${color};`]
|
|
9888
|
-
};
|
|
9889
|
-
}
|
|
9890
|
-
//#endregion
|
|
9891
|
-
//#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
|
|
9892
|
-
function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
|
|
9893
|
-
const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
|
|
9894
|
-
if (!style) {
|
|
9895
|
-
console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
|
|
9896
|
-
return "";
|
|
9897
|
-
}
|
|
9898
|
-
return generateNavLinkCSS({
|
|
9899
|
-
themeId,
|
|
9900
|
-
tokens,
|
|
9901
|
-
theme,
|
|
9902
|
-
style: mergeHeaderNavTypographyPreference(style, {
|
|
9903
|
-
typography: header.navFontRole ?? "inherit",
|
|
9904
|
-
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
9905
|
-
interactionPalette: header.interactionPalette ?? "recommended"
|
|
9906
|
-
}),
|
|
9907
|
-
className: "header-nav-link",
|
|
9908
|
-
surfaceDependent: true,
|
|
9909
|
-
surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
|
|
9910
|
-
});
|
|
9911
|
-
}
|
|
9912
|
-
//#endregion
|
|
9913
|
-
//#region ../theme-core/src/header/generateHeaderLogoStyles.ts
|
|
9914
|
-
function generateHeaderLogoStyles(input) {
|
|
9915
|
-
const { logo, themeId, tokens } = input;
|
|
9916
|
-
return `\n${`:where([data-theme-scope="${themeId}"]) .header-logo-text`} {\n ${[
|
|
9917
|
-
...logoTextColorRules(input),
|
|
9918
|
-
logo?.fontFamily === "body" ? "font-family: var(--font-body);" : "font-family: var(--font-heading);",
|
|
9919
|
-
...logoLetterSpacingRules(logo),
|
|
9920
|
-
...logoGradientRules(logo, tokens),
|
|
9921
|
-
...logoContrastRules(input)
|
|
9922
|
-
].join("\n ")}\n}\n${mobilePanelLogoColor(input)}`;
|
|
9923
|
-
}
|
|
9924
|
-
function mobilePanelLogoColor(input) {
|
|
9925
|
-
if (input.logo?.gradient) return "";
|
|
9926
|
-
const { themeId, tokens, textColor, fallbackTextColor } = input;
|
|
9927
|
-
const fallback = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
|
|
9928
|
-
return `\n${`:where([data-theme-scope="${themeId}"]) .nav-mobile-panel .header-logo-text`},\n${`:where(.nav-mobile-panel[data-theme-scope="${themeId}"]) .header-logo-text`} {\n color: ${surfaceForegroundValue("text", fallback)};\n}\n`;
|
|
9929
|
-
}
|
|
9930
|
-
function logoTextColorRules(input) {
|
|
9931
|
-
const { logo, textColor, fallbackTextColor, tokens, useSurfaceTextColor } = input;
|
|
9932
|
-
if (logo?.gradient || !textColor && !useSurfaceTextColor) return [];
|
|
9933
|
-
const authoredColor = tokens.getColor(textColor ?? fallbackTextColor ?? "text");
|
|
9934
|
-
return [`color: ${useSurfaceTextColor ? surfaceForegroundValue("text", authoredColor) : authoredColor};`];
|
|
9935
|
-
}
|
|
9936
|
-
function logoLetterSpacingRules(logo) {
|
|
9937
|
-
const spacing = logo?.letterSpacing;
|
|
9938
|
-
if (!spacing || spacing === "normal") return [];
|
|
9939
|
-
return [`letter-spacing: ${{
|
|
9940
|
-
wide: "0.05em",
|
|
9941
|
-
wider: "0.1em",
|
|
9942
|
-
widest: "0.15em"
|
|
9943
|
-
}[spacing]};`];
|
|
9944
|
-
}
|
|
9945
|
-
function logoGradientRules(logo, tokens) {
|
|
9946
|
-
if (!logo?.gradient) return [];
|
|
9947
|
-
return [
|
|
9948
|
-
`background: linear-gradient(to right, ${tokens.getColor("primary")}, ${tokens.getColor("accent")});`,
|
|
9949
|
-
"-webkit-background-clip: text;",
|
|
9950
|
-
"-webkit-text-fill-color: transparent;",
|
|
9951
|
-
"background-clip: text;",
|
|
9952
|
-
"color: transparent;"
|
|
9953
|
-
];
|
|
9954
|
-
}
|
|
9955
|
-
function logoContrastRules(input) {
|
|
9956
|
-
if (input.logo?.gradient || input.useSurfaceTextColor) return [];
|
|
9957
|
-
const colorToken = input.textColor?.trim() || input.fallbackTextColor?.trim() || "text";
|
|
9958
|
-
const shadow = buildTextContrastShadow({
|
|
9959
|
-
theme: input.theme,
|
|
9960
|
-
colorToken,
|
|
9961
|
-
treatment: input.contrastTreatment
|
|
9962
|
-
});
|
|
9963
|
-
return shadow ? [`text-shadow: ${shadow};`] : [];
|
|
9964
|
-
}
|
|
9965
|
-
//#endregion
|
|
9966
|
-
//#region ../theme-core/src/header/generateHeaderCss.ts
|
|
9967
|
-
const HEADER_BLUR = "blur(12px)";
|
|
9968
|
-
const FLOATING_BLUR = "blur(16px)";
|
|
9969
|
-
/**
|
|
9970
|
-
* Generate complete CSS for header system from theme config
|
|
9971
|
-
*
|
|
9972
|
-
* Similar to button system - generates theme-scoped CSS using [data-theme-scope] selector
|
|
9973
|
-
*/
|
|
9974
|
-
function generateHeaderCss(options) {
|
|
9975
|
-
const { themeId, theme, responsiveMode = DEFAULT_THEME_RESPONSIVE_MODE } = options;
|
|
9976
|
-
const tokens = new TokenResolver(theme);
|
|
9977
|
-
const header = theme.header;
|
|
9978
|
-
const cssChunks = [];
|
|
9979
|
-
const headerContrastTreatment = resolveHeaderContrastTreatment(header);
|
|
9980
|
-
const headerNavTextSize = resolveHeaderNavTextSize(header);
|
|
9981
|
-
cssChunks.push(generateHeaderRootStyles(header, themeId, tokens));
|
|
9982
|
-
cssChunks.push(generateMobileOverlayBackdropFilterFix(themeId, header.variant));
|
|
9983
|
-
cssChunks.push(generateHeaderLogoStyles({
|
|
9984
|
-
logo: header.logo,
|
|
9985
|
-
themeId,
|
|
9986
|
-
tokens,
|
|
9987
|
-
theme,
|
|
9988
|
-
textColor: header.textColor,
|
|
9989
|
-
fallbackTextColor: header.navLinkStyle?.colorToken,
|
|
9990
|
-
contrastTreatment: headerContrastTreatment ?? void 0,
|
|
9991
|
-
useSurfaceTextColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
|
|
9992
|
-
}));
|
|
9993
|
-
cssChunks.push(generateLogoTextBehaviorStyles(header.logoText, themeId));
|
|
9994
|
-
cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
|
|
9995
|
-
cssChunks.push(generateDropdownContainerStyles(header, themeId, tokens, theme));
|
|
9996
|
-
cssChunks.push(generateDropdownLinkStyles(header, themeId, tokens, theme));
|
|
9997
|
-
cssChunks.push(generateDropdownCaretStyles(themeId));
|
|
9998
|
-
cssChunks.push(generateDropdownTriggerOverrides(header, themeId));
|
|
9999
|
-
cssChunks.push(generateMobilePanelStyles(header, themeId, tokens, theme));
|
|
10000
|
-
if (header.variant === "floating" && header.container) cssChunks.push(generateFloatingContainerStyles(header, themeId, tokens, responsiveMode));
|
|
10001
|
-
cssChunks.push(generateNavContainerStyles(header, themeId, tokens));
|
|
10002
|
-
cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens));
|
|
10003
|
-
cssChunks.push(generateCtaGapStyles(header, themeId));
|
|
10004
|
-
return cssChunks.filter(Boolean).join("\n\n");
|
|
10005
|
-
}
|
|
10006
|
-
function resolveHeaderContrastTreatment(header) {
|
|
10007
|
-
if (header.navLinkStyle?.contrastTreatment) return header.navLinkStyle.contrastTreatment;
|
|
10008
|
-
return isClearSplitHeaderShape(header) ? "soft-glow" : null;
|
|
10009
|
-
}
|
|
10010
|
-
function resolveHeaderNavTextSize(header) {
|
|
10011
|
-
if (header.navLinkStyle?.textSize) return header.navLinkStyle.textSize;
|
|
10012
|
-
return isClearSplitHeaderShape(header) ? "lg" : null;
|
|
10013
|
-
}
|
|
10014
|
-
function isClearSplitHeaderShape(header) {
|
|
10015
|
-
const hasSharedFloatingSurface = Boolean(header.container);
|
|
10016
|
-
return header.variant === "floating" && (header.navStyle ?? "minimal") === "minimal" && !hasSharedFloatingSurface;
|
|
10017
|
-
}
|
|
10018
|
-
function isDetachedFloatingHeaderShape(header) {
|
|
10019
|
-
return header.variant === "floating" && !header.container;
|
|
10020
|
-
}
|
|
10021
|
-
/**
|
|
10022
|
-
* Generate root header container styles
|
|
10023
|
-
*/
|
|
10024
|
-
function generateHeaderRootStyles(header, themeId, tokens) {
|
|
10025
|
-
const selector = `:where([data-theme-scope="${themeId}"]) .header-root`;
|
|
10026
|
-
const rules = [];
|
|
10027
|
-
const isContainedNav = headerRootPaint(header) === "contained-nav";
|
|
10028
|
-
rules.push("position: relative;");
|
|
10029
|
-
rules.push("isolation: isolate;");
|
|
10030
|
-
const surfaceRules = isContainedNav ? {
|
|
10031
|
-
base: [],
|
|
10032
|
-
border: []
|
|
10033
|
-
} : buildHeaderSurfaceRules(header, tokens);
|
|
10034
|
-
const floatingSurfaceBorder = header.variant === "floating";
|
|
10035
|
-
if (!floatingSurfaceBorder) rules.push(...surfaceRules.border);
|
|
10036
|
-
const basePaintRules = floatingSurfaceBorder ? [...surfaceRules.base, ...surfaceRules.border] : surfaceRules.base;
|
|
10037
|
-
const scrolledPaintRules = floatingSurfaceBorder ? surfaceRules.border : [];
|
|
10038
|
-
if (header.positioning === "sticky" || header.positioning === "fixed") {
|
|
10039
|
-
const shadowVar = getComponentShadowVar(header.shadow?.elevation ?? "none");
|
|
10040
|
-
if (shadowVar) rules.push(`box-shadow: ${shadowVar};`);
|
|
10041
|
-
}
|
|
10042
|
-
const baseBlock = `\n${selector} {\n ${rules.join("\n ")}\n}\n`;
|
|
10043
|
-
const overlayFix = `\n${`${selector}:has([data-nav-mobile-overlay][aria-hidden="false"])`} {\n backdrop-filter: none !important;\n -webkit-backdrop-filter: none !important;\n}\n`;
|
|
10044
|
-
const scrollTreatmentStyles = generateHeaderScrollTreatmentStyles(header.scrollTreatment, themeId, header.variant, scrolledPaintRules);
|
|
10045
|
-
if (isContainedNav || basePaintRules.length === 0) return `${baseBlock}\n${overlayFix}${scrollTreatmentStyles}`;
|
|
10046
|
-
return `${baseBlock}\n${renderHeaderPaintTargetRules(getHeaderPaintTargets(header.variant, themeId), basePaintRules)}\n${overlayFix}${scrollTreatmentStyles}`;
|
|
10047
|
-
}
|
|
10048
|
-
function generateLogoTextBehaviorStyles(logoText, themeId) {
|
|
10049
|
-
if (!logoText) return "";
|
|
10050
|
-
const selector = `:where([data-theme-scope="${themeId}"]) .header-logo-text`;
|
|
10051
|
-
const cssChunks = [];
|
|
10052
|
-
const mobileRules = [];
|
|
10053
|
-
if (logoText.mobileWrapLines === 1) {
|
|
10054
|
-
mobileRules.push("display: block;");
|
|
10055
|
-
mobileRules.push("white-space: nowrap;");
|
|
10056
|
-
mobileRules.push("overflow: hidden;");
|
|
10057
|
-
mobileRules.push("text-overflow: ellipsis;");
|
|
10058
|
-
}
|
|
10059
|
-
if (logoText.mobileWrapLines === 2) {
|
|
10060
|
-
mobileRules.push("display: -webkit-box;");
|
|
10061
|
-
mobileRules.push("-webkit-box-orient: vertical;");
|
|
10062
|
-
mobileRules.push("-webkit-line-clamp: 2;");
|
|
10063
|
-
mobileRules.push("white-space: normal;");
|
|
10064
|
-
mobileRules.push("overflow: hidden;");
|
|
10065
|
-
mobileRules.push("text-overflow: ellipsis;");
|
|
10066
|
-
}
|
|
10067
|
-
if (logoText.mobileMaxWidth) mobileRules.push(`max-width: ${{
|
|
10068
|
-
xs: "8rem",
|
|
10069
|
-
sm: "10rem",
|
|
10070
|
-
md: "12rem"
|
|
10071
|
-
}[logoText.mobileMaxWidth]};`);
|
|
10072
|
-
if (mobileRules.length > 0) cssChunks.push(`@media ${MQ_MD_DOWN} {\n ${selector} {\n ${mobileRules.join("\n ")}\n }\n}`);
|
|
10073
|
-
if (logoText.hideOnShrink) {
|
|
10074
|
-
const shrinkSelector = `:where([data-theme-scope="${themeId}"]) .rb-header-shrink.header-scrolled .header-logo-text`;
|
|
10075
|
-
cssChunks.push(`\n${shrinkSelector} {\n display: none;\n}\n`);
|
|
10076
|
-
}
|
|
10077
|
-
return cssChunks.join("\n\n");
|
|
10078
|
-
}
|
|
10079
|
-
/**
|
|
10080
|
-
* Generate dropdown menu container styles
|
|
10081
|
-
*/
|
|
10082
|
-
function generateDropdownContainerStyles(header, themeId, tokens, theme) {
|
|
10083
|
-
const selector = `:where([data-theme-scope="${themeId}"]) .nav-dropdown-menu`;
|
|
10084
|
-
const rules = [];
|
|
10085
|
-
const dropdownStyle = header.dropdownStyle;
|
|
10086
|
-
rules.push(...NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES);
|
|
10087
|
-
const surface = resolveDropdownSurface(header, theme);
|
|
10088
|
-
rules.push(`background-color: ${tokens.getColor(surface.backgroundToken)};`);
|
|
10089
|
-
rules.push(...surface.declarations(tokens));
|
|
10090
|
-
const borderToken = dropdownStyle?.borderColor;
|
|
10091
|
-
if (borderToken === null) rules.push(`border: none;`);
|
|
10092
|
-
else rules.push(`border: 1px solid ${tokens.getColor(borderToken ?? "border")};`);
|
|
10093
|
-
const shadowVar = getComponentShadowVar(dropdownStyle?.shadow ?? "md");
|
|
10094
|
-
if (shadowVar) rules.push(`box-shadow: ${shadowVar};`);
|
|
10095
|
-
const borderRadius = dropdownStyle?.borderRadius ?? "md";
|
|
10096
|
-
rules.push(`border-radius: ${{
|
|
10097
|
-
none: "0",
|
|
10098
|
-
sm: "0.25rem",
|
|
10099
|
-
md: "0.5rem",
|
|
10100
|
-
lg: "0.75rem"
|
|
10101
|
-
}[borderRadius]};`);
|
|
10102
|
-
rules.push(`padding: 0.5rem 0;`);
|
|
10103
|
-
return `\n${selector} {\n ${rules.join("\n ")}\n}\n`;
|
|
10104
|
-
}
|
|
10105
|
-
function generateDropdownLinkStyles(header, themeId, tokens, theme) {
|
|
10106
|
-
const configuredDropdownStyle = header.dropdownStyle;
|
|
10107
|
-
const textColorToken = resolveDropdownSurface(header, theme).textToken;
|
|
10108
|
-
const hoverBgToken = configuredDropdownStyle?.hoverBackground ?? textColorToken;
|
|
10109
|
-
const hoverEffects = {
|
|
10110
|
-
hover: hoverBgToken === null ? [] : [{
|
|
10111
|
-
effectId: "background-on-hover-alpha",
|
|
10112
|
-
options: {
|
|
10113
|
-
colorToken: hoverBgToken,
|
|
10114
|
-
opacity: 12
|
|
10115
|
-
}
|
|
10116
|
-
}],
|
|
10117
|
-
active: hoverBgToken === null ? [] : [{
|
|
10118
|
-
effectId: "background-on-hover-alpha",
|
|
10119
|
-
options: {
|
|
10120
|
-
colorToken: hoverBgToken,
|
|
10121
|
-
opacity: 18
|
|
10122
|
-
}
|
|
10123
|
-
}]
|
|
10124
|
-
};
|
|
10125
|
-
if (configuredDropdownStyle?.hoverTextColor) {
|
|
10126
|
-
hoverEffects.hover?.push({
|
|
10127
|
-
effectId: "text-color-change",
|
|
10128
|
-
options: { hoverColorToken: configuredDropdownStyle.hoverTextColor }
|
|
10129
|
-
});
|
|
10130
|
-
hoverEffects.active?.push({
|
|
10131
|
-
effectId: "text-color-change",
|
|
10132
|
-
options: { hoverColorToken: configuredDropdownStyle.hoverTextColor }
|
|
10133
|
-
});
|
|
10134
|
-
}
|
|
10135
|
-
const baseCSS = generateNavLinkCSS({
|
|
10136
|
-
themeId,
|
|
10137
|
-
tokens,
|
|
10138
|
-
theme,
|
|
10139
|
-
style: {
|
|
10140
|
-
name: "Dropdown",
|
|
10141
|
-
typography: "body",
|
|
10142
|
-
fontWeight: configuredDropdownStyle?.fontWeight ?? header.navWeight ?? "medium",
|
|
10143
|
-
textTransform: configuredDropdownStyle?.textTransform ?? "none",
|
|
10144
|
-
italic: false,
|
|
10145
|
-
colorToken: textColorToken,
|
|
10146
|
-
padding: "compact",
|
|
10147
|
-
borderRadius: "sm",
|
|
10148
|
-
effects: hoverEffects
|
|
10149
|
-
},
|
|
10150
|
-
className: "nav-dropdown-link"
|
|
10151
|
-
});
|
|
10152
|
-
const additionalRules = [];
|
|
10153
|
-
const letterSpacing = configuredDropdownStyle?.letterSpacing ?? "normal";
|
|
10154
|
-
if (letterSpacing !== "normal") additionalRules.push(`letter-spacing: ${{
|
|
10155
|
-
normal: "0em",
|
|
10156
|
-
wide: "0.05em",
|
|
10157
|
-
wider: "0.1em"
|
|
10158
|
-
}[letterSpacing]};`);
|
|
10159
|
-
const textSize = configuredDropdownStyle?.textSize ?? "sm";
|
|
10160
|
-
additionalRules.push(`font-size: ${{
|
|
10161
|
-
xs: "0.75rem",
|
|
10162
|
-
sm: "0.875rem",
|
|
10163
|
-
base: "1rem",
|
|
10164
|
-
lg: "1.125rem"
|
|
10165
|
-
}[textSize]};`);
|
|
10166
|
-
if (additionalRules.length > 0) return baseCSS + `\n${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-link`} {\n ${additionalRules.join("\n ")}\n}\n`;
|
|
10167
|
-
return baseCSS;
|
|
10168
|
-
}
|
|
10169
|
-
function generateDropdownCaretStyles(themeId) {
|
|
10170
|
-
return `
|
|
10171
|
-
${`:where([data-theme-scope="${themeId}"]) .nav-caret`} {
|
|
10172
|
-
width: 0.45rem;
|
|
10173
|
-
height: 0.45rem;
|
|
10174
|
-
margin-left: 0.5rem;
|
|
10175
|
-
border-right: 2px solid currentColor;
|
|
10176
|
-
border-bottom: 2px solid currentColor;
|
|
10177
|
-
transform: rotate(45deg) translateY(-1px);
|
|
10178
|
-
transition: transform 150ms ease;
|
|
10179
|
-
}
|
|
10180
|
-
|
|
10181
|
-
${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-trigger[aria-expanded="true"] .nav-caret, :where([data-theme-scope="${themeId}"]) .nav-mobile-trigger[aria-expanded="true"] .nav-caret`} {
|
|
10182
|
-
transform: rotate(-135deg) translateY(1px);
|
|
10183
|
-
}
|
|
10184
|
-
`.trim();
|
|
10185
|
-
}
|
|
10186
|
-
function generateDropdownTriggerOverrides(header, themeId) {
|
|
10187
|
-
const navStyle = header.navStyle ?? "minimal";
|
|
10188
|
-
if (navStyle !== "underline" && navStyle !== "underline-grow") return "";
|
|
10189
|
-
return `
|
|
10190
|
-
${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-trigger.header-nav-link::after`} {
|
|
10191
|
-
content: none;
|
|
10192
|
-
}
|
|
10193
|
-
`.trim();
|
|
10194
|
-
}
|
|
10195
|
-
/**
|
|
10196
|
-
* The dropdown menu and mobile panel share one surface: `dropdownStyle`'s
|
|
10197
|
-
* background, with the text candidate (the dropdown's own colour, then the
|
|
10198
|
-
* header's nav colour) validated against it through the surface contract. The
|
|
10199
|
-
* nav colour is chosen for the header bar, which can be dark or transparent,
|
|
10200
|
-
* so it only carries over when it is legible on the menu too.
|
|
10201
|
-
*/
|
|
10202
|
-
function resolveDropdownSurface(header, theme) {
|
|
10203
|
-
const backgroundToken = header.dropdownStyle?.background ?? "surface";
|
|
10204
|
-
const candidate = header.dropdownStyle?.textColor ?? ((header.navColor ?? header.textColor)?.trim() || "text");
|
|
10205
|
-
const foreground = resolveSurfaceForeground({
|
|
10206
|
-
type: "color",
|
|
10207
|
-
color: backgroundToken,
|
|
10208
|
-
textColor: candidate
|
|
10209
|
-
}, expandPalette(theme.palette));
|
|
10210
|
-
return {
|
|
10211
|
-
backgroundToken,
|
|
10212
|
-
textToken: foreground.kind === "known" ? foreground.roles.text : candidate,
|
|
10213
|
-
declarations: (tokens) => foreground.kind === "known" ? surfaceForegroundDeclarations(surfaceForegroundInputFromResolved(foreground, (token) => tokens.getColor(token))) : [`color: ${tokens.getColor(candidate)};`]
|
|
10214
|
-
};
|
|
10215
|
-
}
|
|
10216
|
-
/**
|
|
10217
|
-
* Generate mobile navigation panel styles
|
|
10218
|
-
* Uses the same dropdownStyle settings as the desktop dropdown menus
|
|
10219
|
-
*/
|
|
10220
|
-
function generateMobilePanelStyles(header, themeId, tokens, theme) {
|
|
10221
|
-
const selector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-panel`;
|
|
10222
|
-
const selfSelector = `:where(.nav-mobile-panel[data-theme-scope="${themeId}"])`;
|
|
10223
|
-
const surface = resolveDropdownSurface(header, theme);
|
|
10224
|
-
const body = renderCssDeclarations([`background-color: ${tokens.getColor(surface.backgroundToken)};`, ...surface.declarations(tokens)]);
|
|
10225
|
-
return `\n${selector} {\n ${body}\n}\n\n${selfSelector} {\n ${body}\n}\n`;
|
|
10226
|
-
}
|
|
10227
|
-
/**
|
|
10228
|
-
* Generate nav container styles (pill/glass)
|
|
10229
|
-
*/
|
|
10230
|
-
function generateNavContainerStyles(header, themeId, tokens) {
|
|
10231
|
-
const navContainer = header.navContainer;
|
|
10232
|
-
const navContainerType = navContainer?.type ?? "none";
|
|
10233
|
-
if (!navContainer || navContainerType === "none") return "";
|
|
10234
|
-
const selector = `:where([data-theme-scope="${themeId}"]) .header-nav-row`;
|
|
10235
|
-
const rules = [];
|
|
10236
|
-
if (navContainerType === "pill" || navContainerType === "glass") {
|
|
10237
|
-
rules.push("padding: 0.5rem 0.75rem;");
|
|
10238
|
-
rules.push("border-radius: 9999px;");
|
|
10239
|
-
rules.push("display: inline-flex;");
|
|
10240
|
-
rules.push("align-items: center;");
|
|
10241
|
-
rules.push("gap: 1.5rem;");
|
|
10242
|
-
if (isDetachedFloatingHeaderShape(header)) rules.push("align-self: flex-start;");
|
|
10243
|
-
}
|
|
10244
|
-
if (navContainerType === "glass") {
|
|
10245
|
-
const opacity = resolveFloatingGlassOpacity(header, navContainer.opacity, .15);
|
|
10246
|
-
const background = navContainer.tint ? buildTint(tokens.getColor(navContainer.tint), opacity) : buildRgbWhite(opacity);
|
|
10247
|
-
rules.push(`background-color: ${background};`);
|
|
10248
|
-
rules.push(`backdrop-filter: ${HEADER_BLUR};`);
|
|
10249
|
-
rules.push(`-webkit-backdrop-filter: ${HEADER_BLUR};`);
|
|
10250
|
-
rules.push("border: 1px solid rgba(255, 255, 255, 0.2);");
|
|
10251
|
-
rules.push("box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);");
|
|
10252
|
-
} else if (navContainerType === "pill") {
|
|
10253
|
-
const opacity = clampOpacity(navContainer.opacity, .15);
|
|
10254
|
-
if (navContainer.tint) rules.push(`background-color: ${buildTint(tokens.getColor(navContainer.tint), opacity)};`);
|
|
10255
|
-
else rules.push(`background-color: ${tokens.getColor("surface")};`);
|
|
10256
|
-
rules.push(`border: 1px solid ${tokens.getColor("border")};`);
|
|
10257
|
-
}
|
|
10258
|
-
if (rules.length > 0) return `${selector} { ${rules.join(" ")} }`;
|
|
10259
|
-
return "";
|
|
10260
|
-
}
|
|
10261
|
-
/**
|
|
10262
|
-
* Generate floating container styles
|
|
10263
|
-
*/
|
|
10264
|
-
function generateFloatingContainerStyles(header, themeId, tokens, responsiveMode) {
|
|
10265
|
-
const container = header.container;
|
|
10266
|
-
if (!container) return "";
|
|
10267
|
-
const selector = `:where([data-theme-scope="${themeId}"]) .header-floating-container`;
|
|
10268
|
-
const rules = [];
|
|
10269
|
-
const opacity = container.tint === "surface" ? resolveFloatingGlassOpacity(header, container.opacity, .12) : clampOpacity(container.opacity, .12);
|
|
10270
|
-
if (container.tint) rules.push(`background-color: ${buildTint(tokens.getColor(container.tint), opacity)};`);
|
|
10271
|
-
else rules.push(`background-color: ${buildRgbWhite(opacity)};`);
|
|
10272
|
-
rules.push(`backdrop-filter: ${FLOATING_BLUR};`);
|
|
10273
|
-
rules.push(`-webkit-backdrop-filter: ${FLOATING_BLUR};`);
|
|
10274
|
-
if (container.border) rules.push(`border: 1px solid rgb(255 255 255 / 0.2);`);
|
|
10275
|
-
rules.push(`border-radius: ${{
|
|
10276
|
-
none: "0",
|
|
10277
|
-
sm: "0.375rem",
|
|
10278
|
-
md: "0.5rem",
|
|
10279
|
-
lg: "0.75rem",
|
|
10280
|
-
xl: "1rem",
|
|
10281
|
-
"2xl": "1.5rem"
|
|
10282
|
-
}[container.rounded]};`);
|
|
10283
|
-
if (container.shadow) rules.push(`box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);`);
|
|
10284
|
-
rules.push(`padding: ${{
|
|
10285
|
-
sm: "1rem 1.5rem",
|
|
10286
|
-
md: "1.5rem 2rem",
|
|
10287
|
-
lg: "2rem 2.5rem"
|
|
10288
|
-
}[container.padding]};`);
|
|
10289
|
-
return `\n${selector} {\n ${rules.join("\n ")}\n}\n${generateFrameMobileSheetStyles(container, themeId, rules, responsiveMode)}`;
|
|
10290
|
-
}
|
|
10291
|
-
/** The frame owner explicitly opts into an inset sheet on phones. */
|
|
10292
|
-
function generateFrameMobileSheetStyles(container, themeId, rules, responsiveMode) {
|
|
10293
|
-
if (container.mobileSheet !== "inset") return "";
|
|
10294
|
-
return `
|
|
10295
|
-
${phoneAtRule(responsiveMode)} {
|
|
10296
|
-
:where([data-theme-scope="${themeId}"]) .header-mobile-bar {
|
|
10297
|
-
${rules.join("\n ")}
|
|
10298
|
-
box-sizing: border-box; margin: 12px; width: calc(100% - 24px); min-height: 60px; padding: 10px 16px; align-items: center;
|
|
10299
|
-
}
|
|
10300
|
-
}`;
|
|
10301
|
-
}
|
|
10302
|
-
/** The phone breakpoint as a viewport media query, or the site container query in container mode. */
|
|
10303
|
-
function phoneAtRule(responsiveMode) {
|
|
10304
|
-
const containerQuery = responsiveMode === "container" ? convertMediaQueryToContainerQuery(MQ_MD_DOWN) : null;
|
|
10305
|
-
return containerQuery ? `@container ${THEME_RESPONSIVE_CONTAINER_NAME} ${containerQuery}` : `@media ${MQ_MD_DOWN}`;
|
|
10306
|
-
}
|
|
10307
|
-
/**
|
|
10308
|
-
* CTA gap value map — controls left margin on the desktop CTA button
|
|
10309
|
-
*/
|
|
10310
|
-
const HEADER_CTA_GAP_MAP = {
|
|
10311
|
-
none: "0",
|
|
10312
|
-
tight: "0.5rem",
|
|
10313
|
-
compact: "1rem",
|
|
10314
|
-
default: "1.5rem",
|
|
10315
|
-
relaxed: "2rem",
|
|
10316
|
-
spacious: "3rem"
|
|
10317
|
-
};
|
|
10318
|
-
/**
|
|
10319
|
-
* The inverted CTA treatment is contextual to branded header surfaces. It
|
|
10320
|
-
* cannot be represented by the generic secondary button role alone because
|
|
10321
|
-
* that role is transparent and inherits the surrounding surface foreground.
|
|
10322
|
-
* Keep the shared button's structure/effects while making the header own the
|
|
10323
|
-
* palette relationship for both desktop and mobile CTAs.
|
|
10324
|
-
*/
|
|
10325
|
-
function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
|
|
10326
|
-
if (header.ctaTreatment !== "inverted") return "";
|
|
10327
|
-
const desktopSelector = `:where([data-theme-scope="${themeId}"]) .header-cta`;
|
|
10328
|
-
const mobileSelector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-cta`;
|
|
10329
|
-
const selectors = `${desktopSelector},\n${mobileSelector}`;
|
|
10330
|
-
const hoverSelectors = [
|
|
10331
|
-
`${desktopSelector}:hover`,
|
|
10332
|
-
`${desktopSelector}[data-force-hover="true"]`,
|
|
10333
|
-
`${mobileSelector}:hover`,
|
|
10334
|
-
`${mobileSelector}[data-force-hover="true"]`
|
|
10335
|
-
].join(",\n");
|
|
10336
|
-
const focusSelectors = [`${desktopSelector}:focus-visible`, `${mobileSelector}:focus-visible`].join(",\n");
|
|
10337
|
-
return `
|
|
10338
|
-
${selectors} {
|
|
10339
|
-
background-color: ${tokens.getColor("background")};
|
|
10340
|
-
background-image: none;
|
|
10341
|
-
color: ${tokens.getColor("onBackground")};
|
|
10342
|
-
border-color: currentColor;
|
|
10343
|
-
}
|
|
10344
|
-
|
|
10345
|
-
${hoverSelectors} {
|
|
10346
|
-
background-color: ${tokens.getColor("surface")};
|
|
10347
|
-
background-image: none;
|
|
10348
|
-
color: ${tokens.getColor("onSurface")};
|
|
10349
|
-
}
|
|
10350
|
-
|
|
10351
|
-
${focusSelectors} {
|
|
10352
|
-
outline: 2px solid ${tokens.getColor("onBackground")};
|
|
10353
|
-
outline-offset: 2px;
|
|
10354
|
-
box-shadow: 0 0 0 4px ${tokens.getColor("background")};
|
|
10355
|
-
}
|
|
10356
|
-
`;
|
|
10357
|
-
}
|
|
10358
|
-
/**
|
|
10359
|
-
* Generate CTA button gap styles (left margin between nav links and CTA)
|
|
10360
|
-
*/
|
|
10361
|
-
function generateCtaGapStyles(header, themeId) {
|
|
10362
|
-
if (!header.ctaGap) return "";
|
|
10363
|
-
const value = HEADER_CTA_GAP_MAP[header.ctaGap];
|
|
10364
|
-
if (!value) return "";
|
|
10365
|
-
return `\n${`:where([data-theme-scope="${themeId}"]) .header-cta`} {\n margin-left: ${value};\n}\n`;
|
|
10366
|
-
}
|
|
10367
|
-
function clampOpacity(value, fallback) {
|
|
10368
|
-
if (typeof value !== "number" || Number.isNaN(value)) return fallback;
|
|
10369
|
-
return Math.min(Math.max(value, 0), 1);
|
|
10370
|
-
}
|
|
10371
|
-
function resolveFloatingGlassOpacity(header, value, fallback) {
|
|
10372
|
-
const opacity = clampOpacity(value, fallback);
|
|
10373
|
-
return header.variant === "floating" ? Math.max(opacity, .4) : opacity;
|
|
10374
|
-
}
|
|
10375
|
-
function buildTint(color, opacity) {
|
|
10376
|
-
return applyAlpha(color, opacity);
|
|
10377
|
-
}
|
|
10378
|
-
function buildRgbWhite(opacity) {
|
|
10379
|
-
return `rgb(255 255 255 / ${clampOpacity(opacity, 1)})`;
|
|
10380
|
-
}
|
|
10381
|
-
function applyAlpha(color, opacity) {
|
|
10382
|
-
const clamped = clampOpacity(opacity, 1);
|
|
10383
|
-
if (color.startsWith("rgb(") && color.endsWith(")")) {
|
|
10384
|
-
const inner = color.slice(4, -1).trim();
|
|
10385
|
-
return `rgb(${inner.includes("/") ? (inner.split("/")[0] ?? inner).trim() : inner} / ${clamped})`;
|
|
10386
|
-
}
|
|
10387
|
-
return color;
|
|
10388
|
-
}
|
|
10389
|
-
//#endregion
|
|
10390
|
-
//#region ../theme-core/src/siteChromePlacement.ts
|
|
10391
|
-
const SITE_CHROME_PLACEMENT_CLASSES = [
|
|
10392
|
-
"rb-sticky",
|
|
10393
|
-
"rb-fixed",
|
|
10394
|
-
"rb-absolute",
|
|
10395
|
-
"rb-relative",
|
|
10396
|
-
"rb-top-0",
|
|
10397
|
-
"rb-left-0",
|
|
10398
|
-
"rb-right-0",
|
|
10399
|
-
"rb-bottom-0",
|
|
10400
|
-
"rb-z-40",
|
|
10401
|
-
"rb-z-50"
|
|
10402
|
-
];
|
|
10403
|
-
const HEADER_POSITIONINGS = [
|
|
10404
|
-
"static",
|
|
10405
|
-
"sticky",
|
|
10406
|
-
"fixed"
|
|
10407
|
-
];
|
|
10408
|
-
function parseHeaderPositioning(value) {
|
|
10409
|
-
return isHeaderPositioning(value) ? value : "static";
|
|
10410
|
-
}
|
|
10411
|
-
function isHeaderPositioning(value) {
|
|
10412
|
-
return typeof value === "string" && HEADER_POSITIONINGS.includes(value);
|
|
10413
|
-
}
|
|
10414
|
-
function planSiteChromePlacement(positioning) {
|
|
10415
|
-
switch (positioning) {
|
|
10416
|
-
case "static": return {
|
|
10417
|
-
kind: "static",
|
|
10418
|
-
headerRootClassName: null,
|
|
10419
|
-
standaloneShellClassName: null
|
|
10420
|
-
};
|
|
10421
|
-
case "sticky": return {
|
|
10422
|
-
kind: "sticky",
|
|
10423
|
-
headerRootClassName: "rb-sticky rb-top-0",
|
|
10424
|
-
standaloneShellClassName: "sticky top-0 z-40 w-full"
|
|
10425
|
-
};
|
|
10426
|
-
case "fixed": return {
|
|
10427
|
-
kind: "fixed",
|
|
10428
|
-
headerRootClassName: "rb-fixed rb-top-0 rb-left-0 rb-right-0",
|
|
10429
|
-
standaloneShellClassName: "fixed left-0 right-0 top-0 z-40 w-full"
|
|
10430
|
-
};
|
|
10431
|
-
default: return assertNever(positioning);
|
|
10432
|
-
}
|
|
10433
|
-
}
|
|
10434
|
-
function splitSiteChromePlacementClasses(className) {
|
|
10435
|
-
if (!className) return {
|
|
10436
|
-
wrapperClasses: "",
|
|
10437
|
-
sectionClasses: ""
|
|
10438
|
-
};
|
|
10439
|
-
const placementClasses = new Set(SITE_CHROME_PLACEMENT_CLASSES);
|
|
10440
|
-
const wrapperParts = [];
|
|
10441
|
-
const sectionParts = [];
|
|
10442
|
-
for (const cls of className.split(/\s+/).filter(Boolean)) if (placementClasses.has(cls)) wrapperParts.push(cls);
|
|
10443
|
-
else sectionParts.push(cls);
|
|
10444
|
-
return {
|
|
10445
|
-
wrapperClasses: wrapperParts.join(" "),
|
|
10446
|
-
sectionClasses: sectionParts.join(" ")
|
|
10447
|
-
};
|
|
10448
|
-
}
|
|
10449
|
-
//#endregion
|
|
10450
|
-
//#region ../theme-core/src/responsiveDisplay.ts
|
|
10451
|
-
const BASE_DISPLAY_CLASSES = {
|
|
10452
|
-
block: "rb-block",
|
|
10453
|
-
flex: "rb-flex",
|
|
10454
|
-
"inline-block": "rb-inline-block",
|
|
10455
|
-
"inline-flex": "rb-inline-flex",
|
|
10456
|
-
grid: "rb-grid"
|
|
10457
|
-
};
|
|
10458
|
-
const LARGE_DISPLAY_CLASSES = {
|
|
10459
|
-
block: "rb-lg-block",
|
|
10460
|
-
flex: "rb-lg-flex",
|
|
10461
|
-
"inline-block": "rb-lg-inline-block",
|
|
10462
|
-
"inline-flex": "rb-lg-inline-flex",
|
|
10463
|
-
grid: "rb-lg-grid"
|
|
10464
|
-
};
|
|
10465
|
-
/**
|
|
10466
|
-
* Build a class pair for content that should render below the large breakpoint.
|
|
10467
|
-
*
|
|
10468
|
-
* The base display class is always included so callers cannot accidentally
|
|
10469
|
-
* express "mobile-only" visibility without a display mode for the visible state.
|
|
10470
|
-
*/
|
|
10471
|
-
function mobileOnlyDisplay(display) {
|
|
10472
|
-
return `${BASE_DISPLAY_CLASSES[display]} rb-lg-hidden`;
|
|
10473
|
-
}
|
|
10474
|
-
/**
|
|
10475
|
-
* Build a class pair for content that should render from the large breakpoint up.
|
|
10476
|
-
*
|
|
10477
|
-
* The hidden base class ensures the element stays out of the mobile layout until
|
|
10478
|
-
* the large-breakpoint display class takes over.
|
|
10479
|
-
*/
|
|
10480
|
-
function desktopOnlyDisplay(display) {
|
|
10481
|
-
return `rb-hidden ${LARGE_DISPLAY_CLASSES[display]}`;
|
|
10482
|
-
}
|
|
10483
|
-
//#endregion
|
|
10484
|
-
//#region ../theme-core/src/siteChromeOverlayClearance.ts
|
|
10485
|
-
const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
|
|
10486
|
-
//#endregion
|
|
10487
|
-
export { arrangementLookHooks as A, anglePolygonCss as B, getGradientPreset as C, generatedDesignOptionCatalog as D, normalizeLayoutVariantForPolicy as E, pageDesignDecisionsV2Schema as F, cardListFamilyBlocks as G, gradientScrimSamples as H, pageDesignIntentV1Schema as I, cardListKnobBlocks as K, pageDesignIntentV2Schema as L, resolveItemSurface as M, resolveLookSlotSurfaces as N, generateFooterCss as O, normalizeLegacyPageDesignIntent as P, headerRootPaint as R, gradientToCss as S, deriveSiteStyleBlockPolicy as T, scrimTone as U, transitionCatalogueEntries as V, resolveEffectiveKnobs as W, headerNavFontSizePreferenceValues as _, planSiteChromePlacement as a, requireCuratedSiteStyle as b, DEFAULT_THEME_RESPONSIVE_MODE as c, convertMediaQueryToContainerQuery as d, headerForegroundCandidates as f, defaultHeaderNavPreferences as g, readOpeningForegroundProjection as h, parseHeaderPositioning as i, arrangementSlotNames as j, footerForegroundCandidates as k, THEME_RESPONSIVE_CONTAINER_NAME as l, transparentHeaderForegroundInput as m, desktopOnlyDisplay as n, splitSiteChromePlacementClasses as o, headerLeafTextColor as p, mobileOnlyDisplay as r, generateHeaderCss as s, SITE_CHROME_VISIBLE_HEADER_ATTR as t, getResponsiveScopeSpec as u, headerNavTypographyPreferenceValues as v, parseGradientPresetId as w, compiledRuntimeStyleFieldNames as x, curatedSiteStyleIdValues as y, boundaryRuntimeMetricsForDecorativeTransition as z };
|
|
10867
|
+
export { footerForegroundCandidates as A, cardListKnobBlocks as B, requireCuratedSiteStyle as C, parseGradientPresetId as D, getGradientPreset as E, boundaryRuntimeMetricsForDecorativeTransition as F, anglePolygonCss as I, transitionCatalogueEntries as L, generateNavLinkCSS as M, pageDesignDecisionsV2Schema as N, generatedDesignOptionCatalog as O, headerRootPaint as P, resolveEffectiveKnobs as R, offeredSiteStyles as S, gradientToCss as T, resolveEffectiveArrangement as _, readOpeningForegroundProjection as a, deriveSiteStyleBlockPolicy as b, headerNavTypographyPreferenceValues as c, arrangementLookHooks as d, arrangementSlotNames as f, readStoredMode as g, arrangementManifestFromVariants as h, transparentHeaderForegroundInput as i, buildTextContrastShadow as j, generateFooterCss as k, mergeHeaderNavTypographyPreference as l, resolveLookSlotSurfaces as m, headerForegroundCandidates as n, defaultHeaderNavPreferences as o, resolveItemSurface as p, headerLeafTextColor as r, headerNavFontSizePreferenceValues as s, effectiveHeaderNavLinkStyle as t, readHeaderNavFontSizePreference as u, resolveModeArrangement as v, compiledRuntimeStyleFieldNames as w, curatedSiteStyleIdValues as x, resolvePublishedLook as y, cardListFamilyBlocks as z };
|