@riverbankcms/sdk 0.166.0 → 0.167.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/CHANGELOG.md +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
- package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bs3WxFgr.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +2 -2
- package/dist/_dts/{client-D4BXQEZc.d.ts → client-CwsI23pj.d.ts} +9 -1
- package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-CAeP_-cV.d.ts} +2 -2
- package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
- package/dist/_dts/{index-ahxQCUc7.d.ts → index-5_jf52sZ.d.ts} +2 -2
- package/dist/_dts/{index-Bmboeb49.d.ts → index-C20yUyob.d.ts} +1 -1
- package/dist/_dts/{index-DdcwPqQN.d.ts → index-CS6b1B-c.d.ts} +4 -4
- package/dist/_dts/{index-wbBZ0awa.d.ts → index-ChpjHK0U.d.ts} +498 -74
- package/dist/_dts/{index-kQ5xkM6X.d.ts → index-D7EbliE3.d.ts} +1 -1
- package/dist/_dts/{index--qflsCiy.d.ts → index-DeHDwMfu.d.ts} +3 -3
- package/dist/_dts/{index-mMMvLLAJ.d.ts → index-RugyUnqR.d.ts} +207 -11
- package/dist/_dts/{index-BgJ2aU5c.d.ts → index-bDln38Hm.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-CTqcL7CS.d.ts} +7 -7
- package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-C3s9WMPs.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-JPwgRxwh.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/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +6 -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/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +8 -5
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DuiHLiPo.d.ts → types-BlaCuPLr.d.ts} +2 -2
- package/dist/_dts/{types-BX3Y-EW3.d.ts → types-CwtTcaQP.d.ts} +3 -3
- package/dist/_dts/{types-DF54stxv.d.ts → types-D-WElMCy.d.ts} +7 -7
- package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-DOWOZYlK.mjs → BookingMailingListNote-CCVXX1LN.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +165 -16
- package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +3 -3
- package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-DAeQPV76.mjs} +10 -29
- package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-Bus9R0bj.mjs} +136 -60
- package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-DPBLjGwj.mjs} +53 -6
- package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
- package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
- package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-CEumpN7i.mjs} +13 -40
- package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +13 -8
- package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-BVO-qx4q.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
- package/dist/client/{Page-DNDZLRlB.mjs → Page-D4_H_u9V.mjs} +22658 -21604
- package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-Dptantmg.mjs} +1 -1
- package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-BxEGsKUx.mjs} +18 -18
- package/dist/client/{accordion-uVqNowRX.mjs → accordion--EUHmEGa.mjs} +1 -1
- package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-BCXwOnhc.mjs} +9 -9
- package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-sHHcdism.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-Cp9xPBFZ.mjs} +1 -1
- package/dist/client/{cart-DCxjE3Is.mjs → cart-CCZZC-Lq.mjs} +3 -3
- package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-B7JfA19I.mjs} +1 -1
- package/dist/client/{checkout-B0EKbeVv.mjs → checkout-CipmYL4A.mjs} +3 -3
- package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DraalWdH.mjs} +1 -1
- package/dist/client/client.mjs +89 -6
- package/dist/client/{context-n6IZigd3.mjs → context-Cv3QHjAF.mjs} +4 -1
- package/dist/client/{cta-CDeAwYoN.mjs → cta-P2vJVTEn.mjs} +1 -1
- package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +3 -3
- package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-dLmyuPap.mjs} +1 -1
- package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-BEhC2_-Y.mjs} +11 -14
- package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
- package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
- package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
- package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-Bih-BgQM.mjs} +4 -4
- package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
- package/dist/client/{form-BeNQiZ2V.mjs → form-Bw1uuiUs.mjs} +3 -3
- package/dist/client/{form.client-BFdCKlp7.mjs → form.client-pZ-9gN33.mjs} +3 -3
- package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-PXlu6XQO.mjs} +1 -1
- package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DI3DP48e.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-CalNAShx.mjs → headerSection-BpJYUMd6.mjs} +2 -2
- package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-CSoP0cGR.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +1 -1
- package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
- package/dist/client/{noop-D-RG9eR3.mjs → noop-ByVtIWf4.mjs} +28 -4
- package/dist/client/portal/client.mjs +8 -8
- package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
- package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DEad-Pma.mjs} +1 -1
- package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-G1SMXG13.mjs} +3 -3
- package/dist/client/{productList-DjGrjOwD.mjs → productList-B21TGdpT.mjs} +3 -3
- package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-B3vIBkex.mjs} +3 -4
- package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-B8aQhJpO.mjs} +205 -178
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
- package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-B2UmrQg_.mjs} +9 -9
- package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
- package/dist/client/{shop-DLufMauE.mjs → shop-mqyoOvOK.mjs} +3 -3
- package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-BH-BBnA9.mjs} +10 -10
- package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-mdM3UMWG.mjs} +30 -6
- package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-CXF5wxdg.mjs} +2 -2
- package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
- package/dist/client/{site-styles-DELkUk9s.mjs → site-styles-D56hT2u1.mjs} +1637 -406
- package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-CrC80EOG.mjs} +11 -156
- package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-C4LOaI_Z.mjs} +2 -2
- package/dist/client/{useBookingNowIso-Da-f9iHw.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
- package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-6Q0nToVA.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
- package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-Bcs89BR5.mjs} +5 -5
- package/dist/client/{view-DAVEoe8A.mjs → view-BN-fxyfq.mjs} +16 -11
- package/dist/client/{view-8w4GA8rf.mjs → view-Dh2tGoS0.mjs} +3 -3
- package/dist/client/{wizardSteps-DNpajrAH.mjs → wizardSteps-DtkhwKXK.mjs} +17 -10
- package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-D4VjPs-r.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-Ckr2zk_L.mjs} +309 -111
- package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-KOZgw_gS.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-CyO2V4kB.mjs} +58 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-DW3uKvNF.mjs} +7 -7
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-CU9VD-7O.mjs} +17439 -16381
- package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-DBi-WybM.mjs} +2014 -381
- package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-BhkUJst9.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-BjCb6lOn.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-CKxTaC3j.mjs} +1 -1
- package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-B7MLTjBX.mjs} +1 -92
- package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-BTUc0g9X.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-Bv3nkdpV.mjs} +83 -0
- package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-4fMqzltx.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-C72VC_lR.mjs} +756 -64
- package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-B_Y_dA20.mjs} +300 -97
- package/dist/server/{bindings-DjdUq9FR.mjs → bindings-ConMYJ2U.mjs} +1 -1
- package/dist/server/{client-07UeMDzA.mjs → client-Cot-H5fQ.mjs} +88 -5
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-BkaWYEwt.mjs} +4 -4
- package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-kviUdH8c.mjs} +2 -2
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BTnS09GS.mjs} +2 -2
- package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-itXZCXs7.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-CDyn7iLy.mjs} +132 -25
- package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +2 -2
- package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Q_Vij87H.mjs} +11752 -11549
- package/dist/server/{parseThemeForPersistence-CJMrEkze.mjs → parseThemeForPersistence-CDrF51tJ.mjs} +2 -2
- package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-DOG4MkOy.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-DlprLLsc.mjs} +3 -33
- package/dist/server/{registry-TFPJdGQi.mjs → registry-BPFcpn6k.mjs} +1326 -181
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-BHvfGD4y.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-OXFRGn5M.mjs} +15 -5
- package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
- package/dist/server/{schema-C2PqHrMo.mjs → schema-DEizlyi4.mjs} +4 -3
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-DIBFZeMB.mjs → validation-bl6WcAi_.mjs} +6 -6
- package/dist/server/{version-DZWZM1H6.mjs → version-BLXZ31S-.mjs} +1 -1
- package/dist/styles/index.css +696 -25
- package/package.json +1 -1
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
- package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
|
@@ -1655,6 +1655,102 @@ function familyOf(seed) {
|
|
|
1655
1655
|
return family;
|
|
1656
1656
|
}
|
|
1657
1657
|
//#endregion
|
|
1658
|
+
//#region ../theme-core/src/surfaces/inkCertificate.ts
|
|
1659
|
+
const contrastThresholdByPolicy = {
|
|
1660
|
+
"body-aa": 4.5,
|
|
1661
|
+
"large-text-aa": 3,
|
|
1662
|
+
decorative: 1
|
|
1663
|
+
};
|
|
1664
|
+
/** Headings are large text; every other foreground role is ordinary text. */
|
|
1665
|
+
const surfaceTextPolicy = Object.freeze({
|
|
1666
|
+
heading: "large-text-aa",
|
|
1667
|
+
text: "body-aa",
|
|
1668
|
+
link: "body-aa",
|
|
1669
|
+
linkHover: "body-aa",
|
|
1670
|
+
supporting: "body-aa",
|
|
1671
|
+
muted: "body-aa"
|
|
1672
|
+
});
|
|
1673
|
+
/**
|
|
1674
|
+
* Text shown only while a pointer hovers needs 3:1: the reader has already
|
|
1675
|
+
* found it at rest, where it holds 4.5:1. States that stay on screen (open,
|
|
1676
|
+
* the current-page link) keep the text threshold.
|
|
1677
|
+
*/
|
|
1678
|
+
const HOVER_TEXT_THRESHOLD = contrastThresholdByPolicy["large-text-aa"];
|
|
1679
|
+
const FALLBACK_INKS = ["#000000", "#FFFFFF"];
|
|
1680
|
+
const isFallbackInk = (ink) => FALLBACK_INKS.includes(ink);
|
|
1681
|
+
function inkReference(ink) {
|
|
1682
|
+
return isFallbackInk(ink) ? `raw:${ink}` : ink;
|
|
1683
|
+
}
|
|
1684
|
+
/** A token, `rgba()` or literal, composited over each backdrop, clears the threshold on all of them. */
|
|
1685
|
+
function inkClearsBackdrops(ink, threshold, backdrops, measurement) {
|
|
1686
|
+
return backdrops.every((backdrop) => {
|
|
1687
|
+
const hex = resolveOpaqueSurfaceHex(ink, measurement.palette, backdrop);
|
|
1688
|
+
return hex !== null && contrastRatio(hex, backdrop, measurement.colourIndex) >= threshold;
|
|
1689
|
+
});
|
|
1690
|
+
}
|
|
1691
|
+
/** The black/white ink that clears every backdrop at ordinary-text contrast, preferring the best one for the painted end. */
|
|
1692
|
+
function fallbackInk(backdrops, measurement) {
|
|
1693
|
+
const [endpoint] = backdrops.slice(-1);
|
|
1694
|
+
return [...endpoint ? [pickBlackOrWhiteTextColor(endpoint)] : [], ...FALLBACK_INKS].find((candidate) => inkClearsBackdrops(candidate, contrastThresholdByPolicy["body-aa"], backdrops, measurement)) ?? null;
|
|
1695
|
+
}
|
|
1696
|
+
function failingInks(inks, backdrops, measurement) {
|
|
1697
|
+
return {
|
|
1698
|
+
roles: Object.keys(inks.foreground).filter((role) => !inkClearsBackdrops(inks.foreground[role], contrastThresholdByPolicy[surfaceTextPolicy[role]], backdrops, measurement)),
|
|
1699
|
+
mark: inks.mark !== void 0 && !inkClearsBackdrops(inks.mark, 3, backdrops, measurement) ? ["mark"] : []
|
|
1700
|
+
};
|
|
1701
|
+
}
|
|
1702
|
+
function replaceFailing(inks, failing, ink) {
|
|
1703
|
+
return {
|
|
1704
|
+
foreground: {
|
|
1705
|
+
...inks.foreground,
|
|
1706
|
+
...Object.fromEntries(failing.roles.map((role) => [role, ink]))
|
|
1707
|
+
},
|
|
1708
|
+
...inks.mark === void 0 ? {} : { mark: failing.mark.length > 0 ? ink : inks.mark },
|
|
1709
|
+
fallback: [...failing.roles, ...failing.mark]
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* Hold every role to its text policy and the mark to 3:1 on every backdrop.
|
|
1714
|
+
* Null only when neither black nor white clears every backdrop, which only a
|
|
1715
|
+
* radial tint's samples can do: `certifySolidSurfaceInks` is the total form for
|
|
1716
|
+
* one solid backdrop.
|
|
1717
|
+
*/
|
|
1718
|
+
function certifySurfaceInks(inks, backdrops, measurement) {
|
|
1719
|
+
const failing = failingInks(inks, backdrops, measurement);
|
|
1720
|
+
if (failing.roles.length === 0 && failing.mark.length === 0) return {
|
|
1721
|
+
...inks,
|
|
1722
|
+
fallback: []
|
|
1723
|
+
};
|
|
1724
|
+
const ink = fallbackInk(backdrops, measurement);
|
|
1725
|
+
return ink ? replaceFailing(inks, failing, ink) : null;
|
|
1726
|
+
}
|
|
1727
|
+
/** One solid backdrop: black or white always reaches 4.58:1 on it, so certification always succeeds. */
|
|
1728
|
+
function certifySolidSurfaceInks(inks, backdrop, measurement) {
|
|
1729
|
+
const failing = failingInks(inks, [backdrop], measurement);
|
|
1730
|
+
if (failing.roles.length === 0 && failing.mark.length === 0) return {
|
|
1731
|
+
...inks,
|
|
1732
|
+
fallback: []
|
|
1733
|
+
};
|
|
1734
|
+
return replaceFailing(inks, failing, pickBlackOrWhiteTextColor(backdrop));
|
|
1735
|
+
}
|
|
1736
|
+
/** Kept when the ink clears the threshold, otherwise the black/white ink, which always clears a solid backdrop. */
|
|
1737
|
+
function certifyPaint(place, ink, threshold, backdrop, measurement) {
|
|
1738
|
+
return inkClearsBackdrops(ink, threshold, [backdrop], measurement) ? {
|
|
1739
|
+
place,
|
|
1740
|
+
ink,
|
|
1741
|
+
backdrop,
|
|
1742
|
+
threshold,
|
|
1743
|
+
fallback: false
|
|
1744
|
+
} : {
|
|
1745
|
+
place,
|
|
1746
|
+
ink: pickBlackOrWhiteTextColor(backdrop),
|
|
1747
|
+
backdrop,
|
|
1748
|
+
threshold,
|
|
1749
|
+
fallback: true,
|
|
1750
|
+
declared: ink
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
//#endregion
|
|
1658
1754
|
//#region ../theme-core/src/surfaces/resolveSurfaceForeground.ts
|
|
1659
1755
|
const FALLBACK_TEXT_TOKENS = [
|
|
1660
1756
|
"text",
|
|
@@ -1719,7 +1815,7 @@ function resolveMeasuredForeground(backgroundReference, backgroundHex, candidate
|
|
|
1719
1815
|
derivedOnToken,
|
|
1720
1816
|
...FALLBACK_TEXT_TOKENS
|
|
1721
1817
|
], backgroundHex, palette, derivedOnToken ? [derivedOnToken] : []) ?? pickBlackOrWhiteTextColor(backgroundHex);
|
|
1722
|
-
return knownForeground({
|
|
1818
|
+
return certifiedForeground(knownForeground({
|
|
1723
1819
|
text,
|
|
1724
1820
|
heading: safeTokenOr(candidates.heading, text, backgroundHex, palette),
|
|
1725
1821
|
link: safeTokenOr(candidates.link, text, backgroundHex, palette),
|
|
@@ -1728,7 +1824,28 @@ function resolveMeasuredForeground(backgroundReference, backgroundHex, candidate
|
|
|
1728
1824
|
kind: "measured",
|
|
1729
1825
|
backdropHex: backgroundHex,
|
|
1730
1826
|
inks: solveSurfaceInks(backgroundHex, text, palette)
|
|
1731
|
-
}, candidates.linkHover, palette);
|
|
1827
|
+
}, candidates.linkHover, palette), palette);
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Every measured foreground goes through the ink certificate, whoever paints it
|
|
1831
|
+
* (sections, cards, header, footer, accordions). The candidates above are chosen
|
|
1832
|
+
* to pass, so the certificate is normally a no-op and the foreground is returned
|
|
1833
|
+
* as it was; an ink that misses takes black/white, and the solved inks follow
|
|
1834
|
+
* the certified text.
|
|
1835
|
+
*/
|
|
1836
|
+
function certifiedForeground(foreground, palette) {
|
|
1837
|
+
const { backdropHex } = foreground.provenance;
|
|
1838
|
+
const certified = certifySolidSurfaceInks({ foreground: foreground.roles }, backdropHex, { palette });
|
|
1839
|
+
if (certified.fallback.length === 0) return foreground;
|
|
1840
|
+
return {
|
|
1841
|
+
...foreground,
|
|
1842
|
+
roles: certified.foreground,
|
|
1843
|
+
provenance: {
|
|
1844
|
+
...foreground.provenance,
|
|
1845
|
+
inks: solveSurfaceInks(backdropHex, certified.foreground.text, palette),
|
|
1846
|
+
fallback: certified.fallback
|
|
1847
|
+
}
|
|
1848
|
+
};
|
|
1732
1849
|
}
|
|
1733
1850
|
function resolveTrustedTreatmentForeground(candidates, palette) {
|
|
1734
1851
|
const text = canonicalToken(candidates.text, palette);
|
|
@@ -2417,8 +2534,12 @@ function buttonFillSeparation(fill, ground) {
|
|
|
2417
2534
|
const buttonSurfaceGrounds = (surface) => [surface.backgroundHex, ...surface.backgroundSamples ?? []];
|
|
2418
2535
|
/** A filled state clears each ground by its fill OR a declared edge at 3:1. */
|
|
2419
2536
|
function buttonSurfaceSeparation(fill, surface, edge) {
|
|
2537
|
+
return buttonGroundSeparation(fill, buttonSurfaceGrounds(surface), edge);
|
|
2538
|
+
}
|
|
2539
|
+
/** The worst ground for a fill: the first it fails to stand out from, otherwise the closest. */
|
|
2540
|
+
function buttonGroundSeparation(fill, grounds, edge) {
|
|
2420
2541
|
const ink = edge?.border?.marksBoundary ? edge.border.boundaryInk ? edge.palette[edge.border.boundaryInk] : edge.labelInk : void 0;
|
|
2421
|
-
return
|
|
2542
|
+
return grounds.map((ground) => {
|
|
2422
2543
|
const separation = buttonFillSeparation(fill, ground);
|
|
2423
2544
|
const distinct = separation.distinct || ink !== void 0 && contrastRatio(ink, ground) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio;
|
|
2424
2545
|
return {
|
|
@@ -2642,6 +2763,12 @@ function mapVisualStates(value) {
|
|
|
2642
2763
|
disabled: value("disabled")
|
|
2643
2764
|
};
|
|
2644
2765
|
}
|
|
2766
|
+
/** The border a state draws: its declared appearance's, otherwise the variant's. */
|
|
2767
|
+
function buttonStateBorder(variant, state) {
|
|
2768
|
+
const appearance = variant.visualStates?.[state];
|
|
2769
|
+
if (!appearance) return variant.border;
|
|
2770
|
+
return appearance.border === "none" ? void 0 : appearance.border;
|
|
2771
|
+
}
|
|
2645
2772
|
function compileButtonColourStates(input) {
|
|
2646
2773
|
if (input.variant.visualStates) return compileDeclaredVisualStates(input, input.variant.visualStates);
|
|
2647
2774
|
const base = applyColourEffects({
|
|
@@ -2672,7 +2799,7 @@ function compileDeclaredVisualStates(input, states) {
|
|
|
2672
2799
|
variant: {
|
|
2673
2800
|
...input.variant,
|
|
2674
2801
|
contextualHover: states.hover.contextualHover,
|
|
2675
|
-
border:
|
|
2802
|
+
border: buttonStateBorder(input.variant, "hover"),
|
|
2676
2803
|
hoverBackgroundToken: void 0
|
|
2677
2804
|
},
|
|
2678
2805
|
global: {
|
|
@@ -2710,7 +2837,7 @@ function compileDeclaredVisualState(input, states, state, treatment) {
|
|
|
2710
2837
|
variantId: input.variant.id,
|
|
2711
2838
|
state,
|
|
2712
2839
|
treatment: transition.treatment,
|
|
2713
|
-
border:
|
|
2840
|
+
border: buttonStateBorder(input.variant, state),
|
|
2714
2841
|
palette: input.palette,
|
|
2715
2842
|
surface: input.surface,
|
|
2716
2843
|
colourIndex: input.colourIndex
|
|
@@ -2740,7 +2867,7 @@ function compileVisualState(input, state, treatment, baseEffects) {
|
|
|
2740
2867
|
palette: input.palette,
|
|
2741
2868
|
surface: input.surface,
|
|
2742
2869
|
colourIndex: input.colourIndex,
|
|
2743
|
-
border: input.variant
|
|
2870
|
+
border: buttonStateBorder(input.variant, state)
|
|
2744
2871
|
});
|
|
2745
2872
|
return resolved.ok ? {
|
|
2746
2873
|
...resolved,
|
|
@@ -3109,15 +3236,15 @@ function preferredButtonResolution(requested, compiled, role) {
|
|
|
3109
3236
|
focusIndicator: compiled.focusIndicator,
|
|
3110
3237
|
boundary: boundaryForVariant(requested)
|
|
3111
3238
|
};
|
|
3112
|
-
return compiled.contextualHoverRepair ? {
|
|
3239
|
+
return compiled.contextualHoverRepair ? withBorderEvidence({
|
|
3113
3240
|
...appearance,
|
|
3114
3241
|
kind: "repaired",
|
|
3115
3242
|
candidate: "contextual-hover",
|
|
3116
3243
|
rejectedCandidates: []
|
|
3117
|
-
} : {
|
|
3244
|
+
}, requested) : withBorderEvidence({
|
|
3118
3245
|
...appearance,
|
|
3119
3246
|
kind: "preferred"
|
|
3120
|
-
};
|
|
3247
|
+
}, requested);
|
|
3121
3248
|
}
|
|
3122
3249
|
/** Ordered, lazy fallback selection; the rejected evidence belongs to this decision. */
|
|
3123
3250
|
function resolveFallbackButtonRole(input, requested, fallbacks, rejected) {
|
|
@@ -3130,7 +3257,7 @@ function resolveFallbackButtonRole(input, requested, fallbacks, rejected) {
|
|
|
3130
3257
|
const candidate = candidateVariant(fallback, requested, input.buttonSystem);
|
|
3131
3258
|
if (!candidate) return resolveFallbackButtonRole(input, requested, remaining, rejected);
|
|
3132
3259
|
const compiled = compileCandidate(candidate.variant, input);
|
|
3133
|
-
return compiled.ok ? {
|
|
3260
|
+
return compiled.ok ? withBorderEvidence({
|
|
3134
3261
|
kind: "repaired",
|
|
3135
3262
|
requestedRole: input.role,
|
|
3136
3263
|
candidate: candidate.name,
|
|
@@ -3138,7 +3265,7 @@ function resolveFallbackButtonRole(input, requested, fallbacks, rejected) {
|
|
|
3138
3265
|
focusIndicator: compiled.focusIndicator,
|
|
3139
3266
|
boundary: candidate.boundary,
|
|
3140
3267
|
rejectedCandidates: rejected
|
|
3141
|
-
} : resolveFallbackButtonRole(input, requested, remaining, [...rejected, {
|
|
3268
|
+
}, candidate.variant) : resolveFallbackButtonRole(input, requested, remaining, [...rejected, {
|
|
3142
3269
|
candidate: candidate.name,
|
|
3143
3270
|
error: compiled.error
|
|
3144
3271
|
}]);
|
|
@@ -3245,6 +3372,14 @@ function candidateVariant(fallback, requested, system) {
|
|
|
3245
3372
|
}
|
|
3246
3373
|
};
|
|
3247
3374
|
}
|
|
3375
|
+
/** Each state's border travels with the decision, copied so freezing it never touches the caller's variant. */
|
|
3376
|
+
function withBorderEvidence(value, variant) {
|
|
3377
|
+
const borders = freezeOwnedThemeValue(ownedThemeSnapshot(Object.fromEntries(BUTTON_VISUAL_STATES.map((state) => [state, buttonStateBorder(variant, state)]))));
|
|
3378
|
+
return {
|
|
3379
|
+
...value,
|
|
3380
|
+
borders
|
|
3381
|
+
};
|
|
3382
|
+
}
|
|
3248
3383
|
function boundaryForVariant(variant) {
|
|
3249
3384
|
if (!variant.border) return null;
|
|
3250
3385
|
return {
|
|
@@ -3406,11 +3541,6 @@ function scrimTone(samples) {
|
|
|
3406
3541
|
//#endregion
|
|
3407
3542
|
//#region ../theme-core/src/site-styles/accessibleSurfaces.ts
|
|
3408
3543
|
const ON_BACKGROUND = { kind: "on-background" };
|
|
3409
|
-
const contrastThresholdByPolicy = {
|
|
3410
|
-
"body-aa": 4.5,
|
|
3411
|
-
"large-text-aa": 3,
|
|
3412
|
-
decorative: 1
|
|
3413
|
-
};
|
|
3414
3544
|
const surfaceRecipes = {
|
|
3415
3545
|
base: {
|
|
3416
3546
|
backgroundCandidates: ["background", "surface"],
|
|
@@ -3798,14 +3928,6 @@ const surfaceTransports = /* @__PURE__ */ new WeakMap();
|
|
|
3798
3928
|
const ownedRevisionInputs = /* @__PURE__ */ new WeakMap();
|
|
3799
3929
|
const revisionOwners = /* @__PURE__ */ new WeakMap();
|
|
3800
3930
|
const surfaceRevisionOwners = /* @__PURE__ */ new WeakMap();
|
|
3801
|
-
const surfaceTextPolicy = Object.freeze({
|
|
3802
|
-
heading: "large-text-aa",
|
|
3803
|
-
text: "body-aa",
|
|
3804
|
-
link: "body-aa",
|
|
3805
|
-
linkHover: "body-aa",
|
|
3806
|
-
supporting: "body-aa",
|
|
3807
|
-
muted: "body-aa"
|
|
3808
|
-
});
|
|
3809
3931
|
function ownSurfaceRevision(context) {
|
|
3810
3932
|
if (!ownedRevisionInputs.get(context.palette)?.has(context.buttonSystem)) {
|
|
3811
3933
|
const revision = ownedThemeSnapshot({
|
|
@@ -3892,7 +4014,7 @@ function resolveSurfaceSpec(spec, context) {
|
|
|
3892
4014
|
token: spec.token
|
|
3893
4015
|
}, {
|
|
3894
4016
|
...context,
|
|
3895
|
-
buttonContext: spec
|
|
4017
|
+
buttonContext: surfaceButtonRequest(spec, context),
|
|
3896
4018
|
...spec.foreground ? { foreground: {
|
|
3897
4019
|
...context.foreground,
|
|
3898
4020
|
...spec.foreground
|
|
@@ -3931,68 +4053,63 @@ function recipeForegroundCandidates(recipe, context) {
|
|
|
3931
4053
|
};
|
|
3932
4054
|
}
|
|
3933
4055
|
/** Declared grounds are parsed once; legacy stored paints use the unmeasured value arm. */
|
|
3934
|
-
function resolveDeclaredSolidSurface(paint, context
|
|
3935
|
-
return resolveOwnedSurface(paint, context, hexColorSchema.parse(resolveOpaqueSurfaceHex(paint.token, context.palette, context.compositeBase))
|
|
4056
|
+
function resolveDeclaredSolidSurface(paint, context) {
|
|
4057
|
+
return resolveOwnedSurface(paint, context, hexColorSchema.parse(resolveOpaqueSurfaceHex(paint.token, context.palette, context.compositeBase)));
|
|
3936
4058
|
}
|
|
3937
|
-
function resolveOwnedSurface(paint, context, measuredBackdrop
|
|
3938
|
-
const
|
|
3939
|
-
const
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
textColor: text
|
|
3946
|
-
};
|
|
3947
|
-
const candidates = {
|
|
3948
|
-
linkHover: context.linkHoverToken,
|
|
3949
|
-
...context.foreground
|
|
4059
|
+
function resolveOwnedSurface(paint, context, measuredBackdrop) {
|
|
4060
|
+
const resolved = resolveOwnedForeground(paint, context, measuredBackdrop);
|
|
4061
|
+
const decision = {
|
|
4062
|
+
kind: "owned",
|
|
4063
|
+
foreground: ownedForegroundRoles(resolved, paint.foregroundToken ?? "text", context.foreground),
|
|
4064
|
+
inks: ownedInkPublication(resolved, context),
|
|
4065
|
+
decorations: surfaceDecorationColors(resolved, context.palette),
|
|
4066
|
+
hoverDecoration: resolved.kind === "known" ? resolved.hoverDecoration : "underline"
|
|
3950
4067
|
};
|
|
3951
|
-
const
|
|
3952
|
-
|
|
3953
|
-
paint
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
tintBase
|
|
3957
|
-
});
|
|
3958
|
-
if (paint.kind === "gradient") return {
|
|
4068
|
+
const primaryButton = surfaceButtonRequest({
|
|
4069
|
+
kind: "paint",
|
|
4070
|
+
paint
|
|
4071
|
+
}, context)?.primary;
|
|
4072
|
+
if (paint.kind === "solid" && resolved.kind === "known" && resolved.provenance.kind === "measured") return {
|
|
3959
4073
|
...decision,
|
|
3960
4074
|
paint,
|
|
3961
|
-
|
|
4075
|
+
foreground: resolved.roles,
|
|
4076
|
+
...primaryButton ? { primaryButton } : {},
|
|
4077
|
+
contrast: surfaceContrast(resolved.roles, resolved.provenance.backdropHex, context.palette, context.colourIndex)
|
|
3962
4078
|
};
|
|
3963
|
-
|
|
4079
|
+
const buttonContext = surfaceButtons(paint, resolved.kind === "known" ? resolved.roles.link : void 0, primaryButton, context);
|
|
4080
|
+
return paint.kind === "gradient" ? {
|
|
4081
|
+
...decision,
|
|
4082
|
+
paint,
|
|
4083
|
+
contrast: { kind: "unmeasured" },
|
|
4084
|
+
buttonContext
|
|
4085
|
+
} : {
|
|
3964
4086
|
...decision,
|
|
3965
4087
|
paint,
|
|
3966
4088
|
contrast: {
|
|
3967
4089
|
kind: "unmeasured",
|
|
3968
4090
|
reason: "legacy-unresolvable-solid",
|
|
3969
4091
|
source: "paint"
|
|
3970
|
-
}
|
|
3971
|
-
|
|
3972
|
-
return {
|
|
3973
|
-
...decision,
|
|
3974
|
-
paint,
|
|
3975
|
-
foreground: resolved.roles,
|
|
3976
|
-
contrast: surfaceContrast(resolved.roles, resolved.provenance.backdropHex, context.palette, context.colourIndex)
|
|
4092
|
+
},
|
|
4093
|
+
buttonContext
|
|
3977
4094
|
};
|
|
3978
4095
|
}
|
|
3979
|
-
/**
|
|
3980
|
-
function
|
|
3981
|
-
const
|
|
3982
|
-
const
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
buttonContext: resolveSurfaceButtons(paint, resolved.kind === "known" ? resolved.roles : void 0, context, samples)
|
|
4096
|
+
/** A solid paint is measured against its own backdrop when it's known, otherwise over the composite base. */
|
|
4097
|
+
function resolveOwnedForeground(paint, context, measuredBackdrop) {
|
|
4098
|
+
const textColor = paint.foregroundToken ?? "text";
|
|
4099
|
+
const candidates = {
|
|
4100
|
+
linkHover: context.linkHoverToken,
|
|
4101
|
+
...context.foreground
|
|
4102
|
+
};
|
|
4103
|
+
if (paint.kind === "gradient") return resolveSurfaceForeground({
|
|
4104
|
+
type: "gradient",
|
|
4105
|
+
textColor
|
|
4106
|
+
}, context.palette, candidates, { compositeBase: context.compositeBase });
|
|
4107
|
+
const background = {
|
|
4108
|
+
type: "color",
|
|
4109
|
+
color: paint.token,
|
|
4110
|
+
textColor
|
|
3995
4111
|
};
|
|
4112
|
+
return measuredBackdrop ? resolveSurfaceForeground(background, context.palette, candidates, { measuredBackdrop }) : resolveSurfaceForeground(background, context.palette, candidates, { compositeBase: context.compositeBase });
|
|
3996
4113
|
}
|
|
3997
4114
|
/** A paint the element owns but that resolves as inherited (an empty token) still blocks outer inks. */
|
|
3998
4115
|
function ownedInkPublication(resolved, context) {
|
|
@@ -4012,23 +4129,37 @@ function ownedForegroundRoles(resolved, text, candidates) {
|
|
|
4012
4129
|
muted: fallback
|
|
4013
4130
|
});
|
|
4014
4131
|
}
|
|
4015
|
-
function
|
|
4132
|
+
function surfaceButtons(paint, link, primaryToken, context, backgroundSamples) {
|
|
4016
4133
|
return resolveSurfaceButtonContext({
|
|
4017
4134
|
surface: paint.kind === "solid" ? {
|
|
4018
4135
|
kind: "solid",
|
|
4019
4136
|
color: paint.token,
|
|
4020
4137
|
composited: false,
|
|
4021
|
-
foreground:
|
|
4138
|
+
foreground: link,
|
|
4022
4139
|
...backgroundSamples ? { backgroundSamples } : {}
|
|
4023
4140
|
} : { kind: "gradient" },
|
|
4024
4141
|
palette: context.palette,
|
|
4025
4142
|
colourIndex: context.colourIndex,
|
|
4026
4143
|
buttonSystem: context.buttonSystem,
|
|
4027
4144
|
fallbackToken: context.compositeBase,
|
|
4028
|
-
primaryToken
|
|
4145
|
+
primaryToken,
|
|
4029
4146
|
withoutButtonSystem: "reset"
|
|
4030
4147
|
});
|
|
4031
4148
|
}
|
|
4149
|
+
/** Buttons on a certified paint use the link ink the certificate kept, which may be the black/white fallback. */
|
|
4150
|
+
function withCertifiedButtons(decision, context) {
|
|
4151
|
+
const { primaryButton, ...certified } = decision;
|
|
4152
|
+
return {
|
|
4153
|
+
...certified,
|
|
4154
|
+
buttonContext: surfaceButtons(decision.paint, decision.foreground.link, primaryButton, context, tintGroundSamples(decision, context))
|
|
4155
|
+
};
|
|
4156
|
+
}
|
|
4157
|
+
/** A radial tint's grounds besides its painted end, so its buttons are judged on every sample. */
|
|
4158
|
+
function tintGroundSamples(decision, context) {
|
|
4159
|
+
if (decision.tintBase === void 0) return void 0;
|
|
4160
|
+
const [first, ...rest] = surfaceBackdrops(decision, context).slice(0, -1);
|
|
4161
|
+
return first === void 0 ? void 0 : [first, ...rest];
|
|
4162
|
+
}
|
|
4032
4163
|
function surfaceContrast(roles, backdrop, palette, colourIndex) {
|
|
4033
4164
|
const ratio = (token) => contrastRatio(resolveOpaqueSurfaceHex(token, palette, backdrop) ?? backdrop, backdrop, colourIndex);
|
|
4034
4165
|
return {
|
|
@@ -4099,36 +4230,49 @@ function resolveTintSurface(spec, context) {
|
|
|
4099
4230
|
kind: "token",
|
|
4100
4231
|
token: spec.base
|
|
4101
4232
|
}, context);
|
|
4102
|
-
const source = spec.source
|
|
4233
|
+
const source = tintSource(spec.source, base, context.palette);
|
|
4103
4234
|
const token = source ? resolveOpaqueSurfaceHex(`${source}/${spec.opacity}`, context.palette, spec.base) : null;
|
|
4104
4235
|
const hex = source ? resolveConcreteColorHex(source, context.palette) : null;
|
|
4105
4236
|
const tinted = token ?? (hex ? resolveOpaqueSurfaceHex(hexToRgba(hex, spec.opacity / 100), context.palette, spec.base) : null);
|
|
4106
4237
|
if (!tinted) throw new Error(`Cannot derive tint on ${spec.base}`);
|
|
4107
|
-
|
|
4238
|
+
const solid = resolveDeclaredSolidSurface({
|
|
4108
4239
|
kind: "solid",
|
|
4109
4240
|
token: tinted
|
|
4110
4241
|
}, {
|
|
4111
4242
|
...context,
|
|
4243
|
+
buttonContext: surfaceButtonRequest(spec, context),
|
|
4112
4244
|
foreground: base.foreground
|
|
4113
|
-
}, spec.gradient === "radial" ? spec.base : void 0);
|
|
4114
|
-
}
|
|
4115
|
-
/** A sampled gradient may never borrow a proof for just its painted endpoint. */
|
|
4116
|
-
function checkedTintSamples(surface, base, palette) {
|
|
4117
|
-
const paint = resolveOpaqueSurfaceHex(surface.paint.token, palette, base);
|
|
4118
|
-
const underlay = resolveOpaqueSurfaceHex(base, palette, "background");
|
|
4119
|
-
if (!paint || !underlay) throw new Error("Tint needs a measurable underlay");
|
|
4120
|
-
const samples = [underlay, ...[
|
|
4121
|
-
.25,
|
|
4122
|
-
.5,
|
|
4123
|
-
.75
|
|
4124
|
-
].map((alpha) => compositeHex(paint, alpha, underlay))];
|
|
4125
|
-
Object.entries(surface.foreground).forEach(([role, token]) => {
|
|
4126
|
-
if (![paint, ...samples].every((sample) => {
|
|
4127
|
-
const ink = resolveOpaqueSurfaceHex(token, palette, sample);
|
|
4128
|
-
return ink !== null && contrastRatio(ink, sample) >= (role === "heading" ? 3 : 4.5);
|
|
4129
|
-
})) throw new RangeError(`No checked tint gradient for ${role} on ${base}`);
|
|
4130
4245
|
});
|
|
4131
|
-
return
|
|
4246
|
+
return spec.gradient === "radial" ? {
|
|
4247
|
+
...solid,
|
|
4248
|
+
inks: { kind: "reset" },
|
|
4249
|
+
tintBase: spec.base
|
|
4250
|
+
} : solid;
|
|
4251
|
+
}
|
|
4252
|
+
/**
|
|
4253
|
+
* The button colour a surface asks for, which it also hands to what is painted on it. An explicit request
|
|
4254
|
+
* wins; otherwise a paint asks for its own button context, and a shade for the context of the paint it shades.
|
|
4255
|
+
* The request is checked anew on every surface that receives it.
|
|
4256
|
+
*/
|
|
4257
|
+
function surfaceButtonRequest(spec, context) {
|
|
4258
|
+
const forToken = (token) => context.buttonContext ?? context.buttonSystem?.surfaceContexts?.[token];
|
|
4259
|
+
switch (spec.kind) {
|
|
4260
|
+
case "token": return spec.buttonContext ?? forToken(spec.token);
|
|
4261
|
+
case "tint": return spec.source === "shade" ? forToken(spec.base) : context.buttonContext;
|
|
4262
|
+
case "paint": return spec.paint.kind === "solid" ? forToken(spec.paint.token) : context.buttonContext;
|
|
4263
|
+
case "recipe": return context.buttonContext;
|
|
4264
|
+
}
|
|
4265
|
+
}
|
|
4266
|
+
/** Shade direction belongs to the palette, while the tint's base is the actual paint. */
|
|
4267
|
+
function tintSource(source, base, palette) {
|
|
4268
|
+
switch (source) {
|
|
4269
|
+
case "text": return base.foreground.text;
|
|
4270
|
+
case "mark": return base.decorations?.mark;
|
|
4271
|
+
case "shade": {
|
|
4272
|
+
const background = resolveOpaqueSurfaceHex("background", palette, "background");
|
|
4273
|
+
return background && featuresFromHex(background).Y < .5 ? "#ffffff" : "#000000";
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4132
4276
|
}
|
|
4133
4277
|
function hexToRgba(hex, alpha) {
|
|
4134
4278
|
const { r, g, b } = hexToRgb(hex);
|
|
@@ -4178,7 +4322,11 @@ const surfaceSpecSchema = z.discriminatedUnion("kind", [
|
|
|
4178
4322
|
z.object({
|
|
4179
4323
|
kind: z.literal("tint"),
|
|
4180
4324
|
base: z.string(),
|
|
4181
|
-
source: z.enum([
|
|
4325
|
+
source: z.enum([
|
|
4326
|
+
"text",
|
|
4327
|
+
"mark",
|
|
4328
|
+
"shade"
|
|
4329
|
+
]),
|
|
4182
4330
|
opacity: z.number().finite(),
|
|
4183
4331
|
gradient: z.literal("radial").optional()
|
|
4184
4332
|
})
|
|
@@ -4230,7 +4378,7 @@ function certifySurface(spec, context) {
|
|
|
4230
4378
|
})
|
|
4231
4379
|
})
|
|
4232
4380
|
};
|
|
4233
|
-
const decision = resolveSurfaceSpec(inputs.spec, inputs.context);
|
|
4381
|
+
const decision = certifyThresholds(resolveSurfaceSpec(inputs.spec, inputs.context), inputs.context);
|
|
4234
4382
|
const result = Object.assign(surfaceProof(decision, spec), {
|
|
4235
4383
|
[resolvedSurfaceBrand]: true,
|
|
4236
4384
|
revision,
|
|
@@ -4249,6 +4397,71 @@ function certifySurface(spec, context) {
|
|
|
4249
4397
|
function isSolidSurfaceDecision(decision) {
|
|
4250
4398
|
return decision.kind === "owned" && decision.contrast.kind === "measured";
|
|
4251
4399
|
}
|
|
4400
|
+
function isSolidInkDecision(decision) {
|
|
4401
|
+
return decision.kind === "owned" && decision.contrast.kind === "measured";
|
|
4402
|
+
}
|
|
4403
|
+
const TINT_SAMPLE_ALPHAS = [
|
|
4404
|
+
0,
|
|
4405
|
+
.25,
|
|
4406
|
+
.5,
|
|
4407
|
+
.75,
|
|
4408
|
+
1
|
|
4409
|
+
];
|
|
4410
|
+
/**
|
|
4411
|
+
* The certificate asserts every threshold it measures, on every backdrop the
|
|
4412
|
+
* paint shows (each sample of a radial tint). It never throws, because owner
|
|
4413
|
+
* palettes are arbitrary: an ink that misses takes the black/white ink, and a
|
|
4414
|
+
* radial tint that no ink can clear paints flat. Buttons are derived from the
|
|
4415
|
+
* certified inks, so they never keep a link ink the certificate replaced, and
|
|
4416
|
+
* the button resolver judges them on every sample of a radial tint.
|
|
4417
|
+
*/
|
|
4418
|
+
function certifyThresholds(decision, context) {
|
|
4419
|
+
if (!isSolidInkDecision(decision)) return decision;
|
|
4420
|
+
const inks = withFallbackInks(decision, context);
|
|
4421
|
+
if (inks) return withCertifiedButtons(inks, context);
|
|
4422
|
+
const { tintBase: _flattened, ...flatTint } = decision;
|
|
4423
|
+
const flat = withFallbackInks(flatTint, context) ?? flatTint;
|
|
4424
|
+
return withCertifiedButtons({
|
|
4425
|
+
...flat,
|
|
4426
|
+
contrast: {
|
|
4427
|
+
...flat.contrast,
|
|
4428
|
+
fallback: ["radial-tint", ...flat.contrast.fallback ?? []]
|
|
4429
|
+
}
|
|
4430
|
+
}, context);
|
|
4431
|
+
}
|
|
4432
|
+
/** Every backdrop a solid paint shows: its colour, or each sample from a radial tint's base to its paint. */
|
|
4433
|
+
function surfaceBackdrops(decision, context) {
|
|
4434
|
+
const paint = resolveOpaqueSurfaceHex(decision.paint.token, context.palette, decision.tintBase ?? context.compositeBase);
|
|
4435
|
+
if (!paint) return [];
|
|
4436
|
+
const underlay = decision.tintBase ? resolveOpaqueSurfaceHex(decision.tintBase, context.palette, "background") : null;
|
|
4437
|
+
return underlay ? TINT_SAMPLE_ALPHAS.map((alpha) => compositeHex(paint, alpha, underlay)) : [paint];
|
|
4438
|
+
}
|
|
4439
|
+
/** Null only when no black/white ink clears every backdrop of a radial tint. */
|
|
4440
|
+
function withFallbackInks(decision, context) {
|
|
4441
|
+
const backdrops = surfaceBackdrops(decision, context);
|
|
4442
|
+
const [endpoint] = backdrops.slice(-1);
|
|
4443
|
+
if (!endpoint) return decision;
|
|
4444
|
+
const certified = certifySurfaceInks({
|
|
4445
|
+
foreground: decision.foreground,
|
|
4446
|
+
mark: decision.decorations?.mark
|
|
4447
|
+
}, backdrops, context);
|
|
4448
|
+
if (!certified) return null;
|
|
4449
|
+
if (certified.fallback.length === 0) return decision;
|
|
4450
|
+
const decorations = decision.decorations && certified.mark !== void 0 ? {
|
|
4451
|
+
...decision.decorations,
|
|
4452
|
+
mark: certified.mark
|
|
4453
|
+
} : decision.decorations;
|
|
4454
|
+
const contrast = surfaceContrast(certified.foreground, endpoint, context.palette, context.colourIndex);
|
|
4455
|
+
return {
|
|
4456
|
+
...decision,
|
|
4457
|
+
foreground: certified.foreground,
|
|
4458
|
+
decorations,
|
|
4459
|
+
contrast: {
|
|
4460
|
+
...contrast,
|
|
4461
|
+
fallback: certified.fallback
|
|
4462
|
+
}
|
|
4463
|
+
};
|
|
4464
|
+
}
|
|
4252
4465
|
function surfaceProof(decision, spec) {
|
|
4253
4466
|
if (decision.kind === "inherit") return {
|
|
4254
4467
|
...decision,
|
|
@@ -4258,7 +4471,7 @@ function surfaceProof(decision, spec) {
|
|
|
4258
4471
|
...decision,
|
|
4259
4472
|
proof: "unproven-media"
|
|
4260
4473
|
};
|
|
4261
|
-
const proof =
|
|
4474
|
+
const proof = decision.tintBase !== void 0 ? "checked-gradient-or-scrim" : spec.kind === "tint" || /\/|rgba\(/.test(decision.paint.token) ? "checked-composited" : "checked-solid";
|
|
4262
4475
|
return {
|
|
4263
4476
|
...decision,
|
|
4264
4477
|
proof
|
|
@@ -4384,10 +4597,11 @@ function mapSurfaceTreeChildren(value, map) {
|
|
|
4384
4597
|
const arrangementModes = [
|
|
4385
4598
|
"list",
|
|
4386
4599
|
"calendar",
|
|
4387
|
-
"week"
|
|
4600
|
+
"week",
|
|
4601
|
+
"combined"
|
|
4388
4602
|
];
|
|
4389
4603
|
function isArrangementMode(value) {
|
|
4390
|
-
return value === "list" || value === "calendar" || value === "week";
|
|
4604
|
+
return value === "list" || value === "calendar" || value === "week" || value === "combined";
|
|
4391
4605
|
}
|
|
4392
4606
|
/**
|
|
4393
4607
|
* Defines a literal-preserving catalog while rejecting top-level extra keys on
|
|
@@ -4620,6 +4834,7 @@ const lookKnobBlocks = {
|
|
|
4620
4834
|
aspectRatio: "block.media-text",
|
|
4621
4835
|
stickerLine: "block.hero",
|
|
4622
4836
|
smallCaption: "block.hero",
|
|
4837
|
+
photoTint: "block.hero",
|
|
4623
4838
|
candleGlow: "block.hero",
|
|
4624
4839
|
columnGuides: "block.hero",
|
|
4625
4840
|
showPhotos: cardListKnobBlocks,
|
|
@@ -4972,6 +5187,12 @@ const heroKnobs = [
|
|
|
4972
5187
|
"stickerLine"
|
|
4973
5188
|
];
|
|
4974
5189
|
const id$1 = asAppearancePresetId;
|
|
5190
|
+
const calendarRuledRows = defineArrangementLook("event-calendar-ruled-rows", "event-calendar", "Ruled rows", "ledger", ["showCapacity"], { thumbnail: sketch.band([sketch.title(.4), sketch.panel([sketch.down(3, [sketch.row(sketch.weight(1, [sketch.title(.6, "small")]), sketch.weight(3, [sketch.text(2, .8)]), sketch.weight(1, [sketch.link]))], { ruled: true })])]) });
|
|
5191
|
+
const calendarRuledRowsPanel = defineArrangementLook("event-calendar-ruled-rows-panel", "event-calendar", "Ruled rows on a panel", "ledger", ["showCapacity"], {
|
|
5192
|
+
thumbnail: sketch.page([sketch.panel([sketch.title(.4), sketch.down(3, [sketch.row(sketch.weight(1, [sketch.title(.6, "small")]), sketch.weight(3, [sketch.text(2, .8)]), sketch.weight(1, [sketch.button]))], { ruled: true })])]),
|
|
5193
|
+
slotRoles: { layout: "card" },
|
|
5194
|
+
styleFallback: [id$1("event-calendar-ruled-rows")]
|
|
5195
|
+
});
|
|
4975
5196
|
const blockAppearancePresets = [
|
|
4976
5197
|
defineBlockAppearancePreset({
|
|
4977
5198
|
structure: {
|
|
@@ -5900,6 +6121,11 @@ const blockAppearancePresets = [
|
|
|
5900
6121
|
slotRoles: { sticker: "highlight" },
|
|
5901
6122
|
styleFallback: [id$1("hero-photo-beside-text")]
|
|
5902
6123
|
}),
|
|
6124
|
+
defineArrangementLook("hero-photo-then-text", "hero", "Photo, then text below", "split", ["titleSize"], {
|
|
6125
|
+
photoUse: "beside",
|
|
6126
|
+
thumbnail: sketch.page([sketch.photo("medium"), sketch.row([sketch.title(.95, "large"), sketch.title(.6, "large")], [sketch.text(2), sketch.button])]),
|
|
6127
|
+
styleFallback: [id$1("hero-photo-beside-text")]
|
|
6128
|
+
}),
|
|
5903
6129
|
defineArrangementLook("hero-copy-over-gallery", "hero", "Title over a row of photos", "copy-over-gallery", ["titleSize", "stickerLine"], {
|
|
5904
6130
|
photoUse: "beside",
|
|
5905
6131
|
thumbnail: sketch.page([
|
|
@@ -5912,6 +6138,7 @@ const blockAppearancePresets = [
|
|
|
5912
6138
|
}),
|
|
5913
6139
|
defineArrangementLook("hero-photo-behind-text", "hero", "Photo behind the text", "classic", ["titleSize", "smallCaption"], {
|
|
5914
6140
|
photoUse: "behind",
|
|
6141
|
+
photoTreatment: "photo-only",
|
|
5915
6142
|
thumbnail: sketch.page([sketch.over("full", [
|
|
5916
6143
|
sketch.title(.7, "large"),
|
|
5917
6144
|
sketch.text(2, .7),
|
|
@@ -5936,6 +6163,7 @@ const blockAppearancePresets = [
|
|
|
5936
6163
|
}),
|
|
5937
6164
|
defineArrangementLook("hero-short-photo-banner", "hero", "Short photo banner", "classic", [], {
|
|
5938
6165
|
photoUse: "behind",
|
|
6166
|
+
photoTreatment: "photo-only",
|
|
5939
6167
|
thumbnail: sketch.page([sketch.over("banner", [sketch.title(.6)], { panel: true })]),
|
|
5940
6168
|
slotRoles: { copy: "card" },
|
|
5941
6169
|
styleFallback: [id$1("hero-page-head")]
|
|
@@ -6048,11 +6276,29 @@ const blockAppearancePresets = [
|
|
|
6048
6276
|
},
|
|
6049
6277
|
styleFallback: [id$1("feature-cards-cards")]
|
|
6050
6278
|
}),
|
|
6051
|
-
|
|
6279
|
+
calendarRuledRows,
|
|
6280
|
+
calendarRuledRowsPanel,
|
|
6052
6281
|
defineArrangementLook("event-calendar-grouped-by-day", "event-calendar", "Grouped by day", "day-groups", ["showCapacity"], {
|
|
6053
6282
|
thumbnail: sketch.band([sketch.title(.4), sketch.down(2, [sketch.title(.2, "small"), sketch.panel([sketch.down(2, [sketch.row(sketch.weight(3, [sketch.text(1)]), sketch.weight(1, [sketch.link]))], { ruled: true })])])]),
|
|
6054
6283
|
styleFallback: [id$1("event-calendar-ruled-rows")]
|
|
6055
6284
|
}),
|
|
6285
|
+
{
|
|
6286
|
+
...calendarRuledRowsPanel,
|
|
6287
|
+
id: id$1("event-calendar-combined-panel"),
|
|
6288
|
+
structure: {
|
|
6289
|
+
...calendarRuledRowsPanel.structure,
|
|
6290
|
+
byMode: { combined: "ledger" },
|
|
6291
|
+
styleFallback: [id$1("event-calendar-combined-rows")]
|
|
6292
|
+
}
|
|
6293
|
+
},
|
|
6294
|
+
{
|
|
6295
|
+
...calendarRuledRows,
|
|
6296
|
+
id: id$1("event-calendar-combined-rows"),
|
|
6297
|
+
structure: {
|
|
6298
|
+
...calendarRuledRows.structure,
|
|
6299
|
+
byMode: { combined: "ledger" }
|
|
6300
|
+
}
|
|
6301
|
+
},
|
|
6056
6302
|
{
|
|
6057
6303
|
...defineArrangementLook("event-calendar-week-columns", "event-calendar", "The week in columns", "week-columns", [], { thumbnail: sketch.band([sketch.title(.4), sketch.across(5, [sketch.title(.5, "small"), sketch.down(2, [sketch.card([sketch.text(1)])])])]) }),
|
|
6058
6304
|
structure: {
|
|
@@ -6215,6 +6461,14 @@ const blockAppearancePresets = [
|
|
|
6215
6461
|
sketch.title(.8),
|
|
6216
6462
|
sketch.text(3)
|
|
6217
6463
|
])]) }),
|
|
6464
|
+
defineArrangementLook("media-text-photo-to-edge", "media-text", "Photo to the edge", "default", ["imagePosition"], {
|
|
6465
|
+
thumbnail: sketch.page([sketch.row(sketch.weight(1, [
|
|
6466
|
+
sketch.rule,
|
|
6467
|
+
sketch.title(.8),
|
|
6468
|
+
sketch.text(3)
|
|
6469
|
+
]), sketch.weight(1, [sketch.photo("tall")]))]),
|
|
6470
|
+
styleFallback: [id$1("media-text-photo-beside-text")]
|
|
6471
|
+
}),
|
|
6218
6472
|
defineArrangementLook("newsletter-signup-one-row", "newsletter-signup", "Signup in one row", "inline", [], {
|
|
6219
6473
|
thumbnail: sketch.band([
|
|
6220
6474
|
sketch.title(.6),
|
|
@@ -6299,6 +6553,11 @@ const blockAppearancePresets = [
|
|
|
6299
6553
|
styleFallback: [id$1("body-text-reading-column")]
|
|
6300
6554
|
}),
|
|
6301
6555
|
defineArrangementLook("faq-questions-under-title", "faq", "Questions under the title", "default", [], { thumbnail: sketch.page([sketch.title(.4), sketch.down(4, [sketch.text(1, .7)], { ruled: true })]) }),
|
|
6556
|
+
defineArrangementLook("faq-questions-in-panel", "faq", "Questions in a panel", "default", [], {
|
|
6557
|
+
thumbnail: sketch.page([sketch.panel([sketch.title(.4), sketch.down(4, [sketch.text(1, .7)], { ruled: true })])], { align: "center" }),
|
|
6558
|
+
slotRoles: { layout: "card" },
|
|
6559
|
+
styleFallback: [id$1("faq-questions-under-title")]
|
|
6560
|
+
}),
|
|
6302
6561
|
defineArrangementLook("faq-title-beside-questions", "faq", "Title beside the questions", "two-column", [], {
|
|
6303
6562
|
thumbnail: sketch.page([sketch.row(sketch.weight(1, [sketch.rule, sketch.title(.9)]), sketch.weight(2, [sketch.down(4, [sketch.text(1, .8)], { ruled: true })]))]),
|
|
6304
6563
|
styleFallback: [id$1("faq-questions-under-title")]
|
|
@@ -6340,6 +6599,15 @@ const blockAppearancePresets = [
|
|
|
6340
6599
|
}],
|
|
6341
6600
|
styleFallback: [id$1("cta-centred")]
|
|
6342
6601
|
}),
|
|
6602
|
+
defineArrangementLook("cta-text-in-panel", "cta-full", "Text in a panel", "default", [], {
|
|
6603
|
+
thumbnail: sketch.page([sketch.panel([
|
|
6604
|
+
sketch.title(.5),
|
|
6605
|
+
sketch.text(2),
|
|
6606
|
+
sketch.button
|
|
6607
|
+
])]),
|
|
6608
|
+
slotRoles: { copy: "card" },
|
|
6609
|
+
styleFallback: [id$1("cta-centred")]
|
|
6610
|
+
}),
|
|
6343
6611
|
defineArrangementLook("location-map-above-details", "location-map", "Map above the details", "default", [], { thumbnail: sketch.page([sketch.map, sketch.row([sketch.text(2)], [sketch.text(2)])]) }),
|
|
6344
6612
|
defineArrangementLook("location-map-beside-address", "location-map", "Map beside the address", "map-and-details", [], {
|
|
6345
6613
|
thumbnail: sketch.page([sketch.middle(sketch.weight(2, [sketch.map]), sketch.weight(1, [sketch.title(.7, "small"), sketch.text(3)]))]),
|
|
@@ -6651,6 +6919,49 @@ function isRecord(value) {
|
|
|
6651
6919
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6652
6920
|
}
|
|
6653
6921
|
//#endregion
|
|
6922
|
+
//#region ../theme-core/src/site-styles/imageSurfaceBackground.ts
|
|
6923
|
+
/** The brand tint older photo heroes use, shared with the Look photo treatment's brand arm. */
|
|
6924
|
+
function brandScrimOverlay(token) {
|
|
6925
|
+
return {
|
|
6926
|
+
type: "color",
|
|
6927
|
+
color: darkenedThemeToken(token),
|
|
6928
|
+
opacity: imageSurfaceTreatmentOpacity("brand-scrim", void 0)
|
|
6929
|
+
};
|
|
6930
|
+
}
|
|
6931
|
+
const opacityByKind = {
|
|
6932
|
+
"brand-scrim": {
|
|
6933
|
+
soft: .26,
|
|
6934
|
+
balanced: .35,
|
|
6935
|
+
strong: .52
|
|
6936
|
+
},
|
|
6937
|
+
"brand-wash": {
|
|
6938
|
+
soft: .24,
|
|
6939
|
+
balanced: .34,
|
|
6940
|
+
strong: .46
|
|
6941
|
+
},
|
|
6942
|
+
"neutral-scrim": {
|
|
6943
|
+
soft: .42,
|
|
6944
|
+
balanced: .58,
|
|
6945
|
+
strong: .72
|
|
6946
|
+
},
|
|
6947
|
+
"neutral-wash": {
|
|
6948
|
+
soft: 1,
|
|
6949
|
+
balanced: 1,
|
|
6950
|
+
strong: 1
|
|
6951
|
+
},
|
|
6952
|
+
"solid-panel": {
|
|
6953
|
+
soft: .78,
|
|
6954
|
+
balanced: .88,
|
|
6955
|
+
strong: .94
|
|
6956
|
+
}
|
|
6957
|
+
};
|
|
6958
|
+
function imageSurfaceTreatmentOpacity(kind, intensity) {
|
|
6959
|
+
return opacityByKind[kind][intensity ?? "balanced"];
|
|
6960
|
+
}
|
|
6961
|
+
function darkenedThemeToken(token) {
|
|
6962
|
+
return `color-mix(in oklab, rgb(var(--tb-${token})), black 28%)`;
|
|
6963
|
+
}
|
|
6964
|
+
//#endregion
|
|
6654
6965
|
//#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
|
|
6655
6966
|
function parseCanonicalRuntimeBackground(content) {
|
|
6656
6967
|
const background = readRecord$1(readRecord$1(content._sectionStyles)?.background);
|
|
@@ -6665,9 +6976,15 @@ function parseCanonicalRuntimeBackground(content) {
|
|
|
6665
6976
|
background: parsed.data
|
|
6666
6977
|
};
|
|
6667
6978
|
}
|
|
6668
|
-
/** The Look owns shading
|
|
6669
|
-
function applyLookPhotoTreatment(background, treatment) {
|
|
6670
|
-
if (background.type !== "image" || treatment
|
|
6979
|
+
/** The Look owns photo shading; copy panels keep their independently solved ink. */
|
|
6980
|
+
function applyLookPhotoTreatment(background, treatment, palette, tint = "dark") {
|
|
6981
|
+
if (background.type !== "image" || !treatment) return background;
|
|
6982
|
+
if (tint === "brand") return brandPhotoTreatment(background, treatment, palette);
|
|
6983
|
+
if (treatment === "photo-only") return background;
|
|
6984
|
+
return darkPhotoTreatment(background, palette);
|
|
6985
|
+
}
|
|
6986
|
+
function darkPhotoTreatment(background, palette) {
|
|
6987
|
+
const ink = lightPhotoInk(palette);
|
|
6671
6988
|
return {
|
|
6672
6989
|
...background,
|
|
6673
6990
|
overlay: {
|
|
@@ -6675,10 +6992,40 @@ function applyLookPhotoTreatment(background, treatment) {
|
|
|
6675
6992
|
opacity: 1,
|
|
6676
6993
|
gradient: "var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.76) 25%, rgba(0,0,0,0.4) 46%, transparent 72%)"
|
|
6677
6994
|
},
|
|
6678
|
-
textColor:
|
|
6679
|
-
headingColor:
|
|
6680
|
-
linkColor:
|
|
6681
|
-
supportingColor:
|
|
6995
|
+
textColor: ink,
|
|
6996
|
+
headingColor: ink,
|
|
6997
|
+
linkColor: ink,
|
|
6998
|
+
supportingColor: ink
|
|
6999
|
+
};
|
|
7000
|
+
}
|
|
7001
|
+
/** Neutral scales follow the ground: their physical light end reverses on dark palettes. */
|
|
7002
|
+
function lightPhotoInk(palette) {
|
|
7003
|
+
return ["neutral-50", "neutral-950"].find((token) => surfaceToneFromForegroundToken(palette, token) === "dark") ?? "#fafafa";
|
|
7004
|
+
}
|
|
7005
|
+
/** A light brand's dark ink cannot sit on unknown pixels: give light ink a dark backing. */
|
|
7006
|
+
function brandPhotoTreatment(background, treatment, palette) {
|
|
7007
|
+
const brand = brandScrimOverlay("primary");
|
|
7008
|
+
if (treatment === "photo-only") return {
|
|
7009
|
+
...background,
|
|
7010
|
+
overlay: brand
|
|
7011
|
+
};
|
|
7012
|
+
if (surfaceToneFromForegroundToken(palette, "primaryForeground") === "dark") return {
|
|
7013
|
+
...background,
|
|
7014
|
+
overlay: brand,
|
|
7015
|
+
textColor: "primaryForeground",
|
|
7016
|
+
headingColor: "primaryForeground",
|
|
7017
|
+
linkColor: "primaryForeground",
|
|
7018
|
+
supportingColor: "primaryForeground"
|
|
7019
|
+
};
|
|
7020
|
+
const shade = darkPhotoTreatment(background, palette);
|
|
7021
|
+
const wash = `color-mix(in srgb, ${brand.color} ${brand.opacity * 100}%, transparent)`;
|
|
7022
|
+
return {
|
|
7023
|
+
...shade,
|
|
7024
|
+
overlay: {
|
|
7025
|
+
type: "gradient",
|
|
7026
|
+
opacity: 1,
|
|
7027
|
+
gradient: `linear-gradient(${wash}, ${wash}), linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8))`
|
|
7028
|
+
}
|
|
6682
7029
|
};
|
|
6683
7030
|
}
|
|
6684
7031
|
function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
|
|
@@ -6786,6 +7133,35 @@ function deriveSectionGround(resolved, palette) {
|
|
|
6786
7133
|
if (solid) return solid;
|
|
6787
7134
|
return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
|
|
6788
7135
|
}
|
|
7136
|
+
/** Content media sits beside the text, so its slots sit on the colour ground, as deriveSectionGround reads it. */
|
|
7137
|
+
function sectionSurfaceBase(resolved, palette) {
|
|
7138
|
+
if (resolved.kind === "base") return {
|
|
7139
|
+
kind: "measured",
|
|
7140
|
+
token: "background"
|
|
7141
|
+
};
|
|
7142
|
+
const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
|
|
7143
|
+
switch (background.type) {
|
|
7144
|
+
case "image":
|
|
7145
|
+
case "video": return {
|
|
7146
|
+
kind: "unmeasured",
|
|
7147
|
+
paint: "media"
|
|
7148
|
+
};
|
|
7149
|
+
case "gradient": return {
|
|
7150
|
+
kind: "unmeasured",
|
|
7151
|
+
paint: "gradient"
|
|
7152
|
+
};
|
|
7153
|
+
case "color": {
|
|
7154
|
+
const colour = background.color ?? "background";
|
|
7155
|
+
return resolveConcreteColorHex(colour, palette) ? {
|
|
7156
|
+
kind: "measured",
|
|
7157
|
+
token: colour
|
|
7158
|
+
} : {
|
|
7159
|
+
kind: "unmeasured",
|
|
7160
|
+
paint: "colour"
|
|
7161
|
+
};
|
|
7162
|
+
}
|
|
7163
|
+
}
|
|
7164
|
+
}
|
|
6789
7165
|
function solidSectionGround(background) {
|
|
6790
7166
|
if (background.type !== "color") return null;
|
|
6791
7167
|
return solidTokenGround(background.color ?? "background");
|
|
@@ -8285,10 +8661,7 @@ const defaultFooterLookRecipes = {
|
|
|
8285
8661
|
hoverColorToken: "primary",
|
|
8286
8662
|
typography: "body"
|
|
8287
8663
|
},
|
|
8288
|
-
legal: {
|
|
8289
|
-
kind: "separate",
|
|
8290
|
-
bar: null
|
|
8291
|
-
},
|
|
8664
|
+
legal: { bar: null },
|
|
8292
8665
|
brandAlign: "center"
|
|
8293
8666
|
},
|
|
8294
8667
|
"footer-links-row": {
|
|
@@ -8303,7 +8676,7 @@ const defaultFooterLookRecipes = {
|
|
|
8303
8676
|
hoverColorToken: "primary",
|
|
8304
8677
|
typography: "body"
|
|
8305
8678
|
},
|
|
8306
|
-
legal: {
|
|
8679
|
+
legal: { bar: null },
|
|
8307
8680
|
brandAlign: "start"
|
|
8308
8681
|
}
|
|
8309
8682
|
};
|
|
@@ -8904,11 +9277,13 @@ const backgroundOnHoverAlphaEffect = {
|
|
|
8904
9277
|
const { themeId, variantId, stateGroup, options } = ctx;
|
|
8905
9278
|
const rawOpacity = options.opacity;
|
|
8906
9279
|
const clampedOpacity = Math.max(0, Math.min(100, typeof rawOpacity === "number" && !Number.isNaN(rawOpacity) ? rawOpacity : 50));
|
|
8907
|
-
const
|
|
9280
|
+
const colorToken = options.colorToken || "neutral-800";
|
|
9281
|
+
const parts = parseColorTokenParts(colorToken);
|
|
9282
|
+
const background = parts.kind === "raw" ? `color-mix(in srgb, ${parts.value} ${clampedOpacity}%, transparent)` : `rgb(var(--tb-${colorToken}) / ${clampedOpacity}%)`;
|
|
8908
9283
|
return `
|
|
8909
9284
|
/* Add semi-transparent background (${stateGroup}) */
|
|
8910
9285
|
:where([data-theme-scope="${themeId}"]) .${variantId}${stateGroup === "base" ? "" : `:${stateGroup}`} {
|
|
8911
|
-
background-color:
|
|
9286
|
+
background-color: ${background};
|
|
8912
9287
|
}
|
|
8913
9288
|
`;
|
|
8914
9289
|
}
|
|
@@ -9662,12 +10037,13 @@ const EFFECT_PRESETS = [
|
|
|
9662
10037
|
]
|
|
9663
10038
|
},
|
|
9664
10039
|
generateCSS: (ctx) => {
|
|
9665
|
-
const { themeId, variantId, options, tokens } = ctx;
|
|
10040
|
+
const { themeId, variantId, stateGroup, options, tokens } = ctx;
|
|
9666
10041
|
const hoverColorToken = options.hoverColorToken ?? options.colorToken ?? "neutral-50";
|
|
10042
|
+
const hoverColor = tokens.getColor(hoverColorToken);
|
|
9667
10043
|
return `
|
|
9668
|
-
/* Change text color on
|
|
9669
|
-
:where([data-theme-scope="${themeId}"]) .${variantId}:
|
|
9670
|
-
color: ${
|
|
10044
|
+
/* Change text color on ${stateGroup} */
|
|
10045
|
+
:where([data-theme-scope="${themeId}"]) .${variantId}${stateGroup === "base" ? "" : `:${stateGroup}`} {
|
|
10046
|
+
color: ${hoverColor};
|
|
9671
10047
|
}
|
|
9672
10048
|
`;
|
|
9673
10049
|
}
|
|
@@ -10392,7 +10768,7 @@ function generateFooterBottomTextLinkStyles(footer, themeId, tokens) {
|
|
|
10392
10768
|
//#region ../theme-core/src/site-styles/footerLookRecipe.ts
|
|
10393
10769
|
/** Reject undeclared references when the curated catalogue is loaded, before rendering. */
|
|
10394
10770
|
function validateFooterRecipeSurfaces(style, recipe) {
|
|
10395
|
-
[recipe.ground, ...recipe.legal.
|
|
10771
|
+
[recipe.ground, ...recipe.legal.bar ? [recipe.legal.bar.background] : []].forEach((ground) => {
|
|
10396
10772
|
if (ground.kind === "style-surface" && (style.looks.kind !== "offers" || !style.looks.surfaces[ground.surface])) throw new Error(`Undeclared footer surface: ${ground.surface}`);
|
|
10397
10773
|
});
|
|
10398
10774
|
}
|
|
@@ -18098,59 +18474,254 @@ const havenPlum = defineCuratedPalette({
|
|
|
18098
18474
|
}
|
|
18099
18475
|
]
|
|
18100
18476
|
});
|
|
18101
|
-
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
|
|
18106
|
-
|
|
18107
|
-
|
|
18108
|
-
|
|
18109
|
-
const curatedPalettes = [
|
|
18110
|
-
admitCuratedPaletteDefinition(brandLedCool),
|
|
18111
|
-
admitCuratedPaletteDefinition(brandLedWarm),
|
|
18112
|
-
admitCuratedPaletteDefinition(brandLedJewel),
|
|
18113
|
-
admitCuratedPaletteDefinition(brandLedBurgundyGold),
|
|
18114
|
-
admitCuratedPaletteDefinition(brandLedSpruce),
|
|
18115
|
-
admitCuratedPaletteDefinition(warmNeutralClay),
|
|
18116
|
-
admitCuratedPaletteDefinition(warmNeutralCream),
|
|
18117
|
-
admitCuratedPaletteDefinition(warmNeutralSoftEarth),
|
|
18118
|
-
admitCuratedPaletteDefinition(warmNeutralForest),
|
|
18119
|
-
admitCuratedPaletteDefinition(highContrastInk),
|
|
18120
|
-
admitCuratedPaletteDefinition(highContrastCharcoal),
|
|
18121
|
-
admitCuratedPaletteDefinition(highContrastMonochrome),
|
|
18122
|
-
admitCuratedPaletteDefinition(softNaturalSage),
|
|
18123
|
-
admitCuratedPaletteDefinition(softNaturalStone),
|
|
18124
|
-
admitCuratedPaletteDefinition(softNaturalWatercolor),
|
|
18125
|
-
admitCuratedPaletteDefinition(softNaturalLilac),
|
|
18126
|
-
admitCuratedPaletteDefinition(warmDarkEmber),
|
|
18127
|
-
admitCuratedPaletteDefinition(warmDarkKirtanGold)
|
|
18128
|
-
];
|
|
18129
|
-
/** Style-owned suggestions are readable for compilation, never globally offered. */
|
|
18130
|
-
const styleSuggestedPalettes = [
|
|
18131
|
-
{
|
|
18132
|
-
...admitCuratedPaletteDefinition(loomHearth),
|
|
18133
|
-
ownerStyleId: "site-style:loom"
|
|
18134
|
-
},
|
|
18135
|
-
{
|
|
18136
|
-
...admitCuratedPaletteDefinition(loomFlax),
|
|
18137
|
-
ownerStyleId: "site-style:loom"
|
|
18138
|
-
},
|
|
18139
|
-
{
|
|
18140
|
-
...admitCuratedPaletteDefinition(loomEmber),
|
|
18141
|
-
ownerStyleId: "site-style:loom"
|
|
18142
|
-
},
|
|
18143
|
-
{
|
|
18144
|
-
...admitCuratedPaletteDefinition(poiseButter),
|
|
18145
|
-
ownerStyleId: "site-style:poise"
|
|
18146
|
-
},
|
|
18147
|
-
{
|
|
18148
|
-
...admitCuratedPaletteDefinition(poiseEmber),
|
|
18149
|
-
ownerStyleId: "site-style:poise"
|
|
18477
|
+
const brookTerracotta = defineCuratedPalette({
|
|
18478
|
+
authoringKey: "brook-terracotta",
|
|
18479
|
+
name: "Brook — Terracotta",
|
|
18480
|
+
description: "Warm cream and sand, terracotta for buttons and squiggles, and an olive band.",
|
|
18481
|
+
tags: {
|
|
18482
|
+
tone: "classic",
|
|
18483
|
+
energy: "calm",
|
|
18484
|
+
era: "organic"
|
|
18150
18485
|
},
|
|
18151
|
-
|
|
18152
|
-
|
|
18153
|
-
|
|
18486
|
+
mode: "light",
|
|
18487
|
+
colors: [
|
|
18488
|
+
{
|
|
18489
|
+
name: "primary",
|
|
18490
|
+
hex: "#a8573d"
|
|
18491
|
+
},
|
|
18492
|
+
{
|
|
18493
|
+
name: "secondary",
|
|
18494
|
+
hex: "#72765c"
|
|
18495
|
+
},
|
|
18496
|
+
{
|
|
18497
|
+
name: "accent",
|
|
18498
|
+
hex: "#b0624a"
|
|
18499
|
+
},
|
|
18500
|
+
{
|
|
18501
|
+
name: "success",
|
|
18502
|
+
hex: "#4e7a4f"
|
|
18503
|
+
},
|
|
18504
|
+
{
|
|
18505
|
+
name: "warning",
|
|
18506
|
+
hex: "#b7791f"
|
|
18507
|
+
},
|
|
18508
|
+
{
|
|
18509
|
+
name: "destructive",
|
|
18510
|
+
hex: "#b3402f"
|
|
18511
|
+
},
|
|
18512
|
+
{
|
|
18513
|
+
name: "background",
|
|
18514
|
+
hex: "#fbf6eb"
|
|
18515
|
+
},
|
|
18516
|
+
{
|
|
18517
|
+
name: "surface",
|
|
18518
|
+
hex: "#fffdf7"
|
|
18519
|
+
},
|
|
18520
|
+
{
|
|
18521
|
+
name: "surfaceAlt",
|
|
18522
|
+
hex: "#f0e4d3"
|
|
18523
|
+
},
|
|
18524
|
+
{
|
|
18525
|
+
name: "muted",
|
|
18526
|
+
hex: "#5f564b"
|
|
18527
|
+
},
|
|
18528
|
+
{
|
|
18529
|
+
name: "text",
|
|
18530
|
+
hex: "#30281f"
|
|
18531
|
+
},
|
|
18532
|
+
{
|
|
18533
|
+
name: "primaryForeground",
|
|
18534
|
+
hex: "#ffffff"
|
|
18535
|
+
},
|
|
18536
|
+
{
|
|
18537
|
+
name: "border",
|
|
18538
|
+
hex: "#dccdb8"
|
|
18539
|
+
}
|
|
18540
|
+
]
|
|
18541
|
+
});
|
|
18542
|
+
const brookFell = defineCuratedPalette({
|
|
18543
|
+
authoringKey: "brook-fell",
|
|
18544
|
+
name: "Brook — Fell",
|
|
18545
|
+
description: "Stone white with slate buttons, a fell green band and heather squiggles.",
|
|
18546
|
+
tags: {
|
|
18547
|
+
tone: "classic",
|
|
18548
|
+
energy: "calm",
|
|
18549
|
+
era: "organic"
|
|
18550
|
+
},
|
|
18551
|
+
mode: "light",
|
|
18552
|
+
colors: [
|
|
18553
|
+
{
|
|
18554
|
+
name: "primary",
|
|
18555
|
+
hex: "#2c4a55"
|
|
18556
|
+
},
|
|
18557
|
+
{
|
|
18558
|
+
name: "secondary",
|
|
18559
|
+
hex: "#33463c"
|
|
18560
|
+
},
|
|
18561
|
+
{
|
|
18562
|
+
name: "accent",
|
|
18563
|
+
hex: "#94669a"
|
|
18564
|
+
},
|
|
18565
|
+
{
|
|
18566
|
+
name: "success",
|
|
18567
|
+
hex: "#3e7a55"
|
|
18568
|
+
},
|
|
18569
|
+
{
|
|
18570
|
+
name: "warning",
|
|
18571
|
+
hex: "#b7791f"
|
|
18572
|
+
},
|
|
18573
|
+
{
|
|
18574
|
+
name: "destructive",
|
|
18575
|
+
hex: "#b3402f"
|
|
18576
|
+
},
|
|
18577
|
+
{
|
|
18578
|
+
name: "background",
|
|
18579
|
+
hex: "#f2f1eb"
|
|
18580
|
+
},
|
|
18581
|
+
{
|
|
18582
|
+
name: "surface",
|
|
18583
|
+
hex: "#ffffff"
|
|
18584
|
+
},
|
|
18585
|
+
{
|
|
18586
|
+
name: "surfaceAlt",
|
|
18587
|
+
hex: "#e3e5dd"
|
|
18588
|
+
},
|
|
18589
|
+
{
|
|
18590
|
+
name: "muted",
|
|
18591
|
+
hex: "#545c57"
|
|
18592
|
+
},
|
|
18593
|
+
{
|
|
18594
|
+
name: "text",
|
|
18595
|
+
hex: "#1d2522"
|
|
18596
|
+
},
|
|
18597
|
+
{
|
|
18598
|
+
name: "primaryForeground",
|
|
18599
|
+
hex: "#ffffff"
|
|
18600
|
+
},
|
|
18601
|
+
{
|
|
18602
|
+
name: "border",
|
|
18603
|
+
hex: "#cbd0c6"
|
|
18604
|
+
}
|
|
18605
|
+
]
|
|
18606
|
+
});
|
|
18607
|
+
const brookDusk = defineCuratedPalette({
|
|
18608
|
+
authoringKey: "brook-dusk",
|
|
18609
|
+
name: "Brook — Dusk",
|
|
18610
|
+
description: "Dark plum and dusk violet, with pale brass for buttons and squiggles.",
|
|
18611
|
+
tags: {
|
|
18612
|
+
tone: "classic",
|
|
18613
|
+
energy: "calm",
|
|
18614
|
+
era: "organic"
|
|
18615
|
+
},
|
|
18616
|
+
mode: "dark",
|
|
18617
|
+
colors: [
|
|
18618
|
+
{
|
|
18619
|
+
name: "primary",
|
|
18620
|
+
hex: "#d8c29e"
|
|
18621
|
+
},
|
|
18622
|
+
{
|
|
18623
|
+
name: "secondary",
|
|
18624
|
+
hex: "#3a2f4b"
|
|
18625
|
+
},
|
|
18626
|
+
{
|
|
18627
|
+
name: "accent",
|
|
18628
|
+
hex: "#c9a66a"
|
|
18629
|
+
},
|
|
18630
|
+
{
|
|
18631
|
+
name: "success",
|
|
18632
|
+
hex: "#8fc7a0"
|
|
18633
|
+
},
|
|
18634
|
+
{
|
|
18635
|
+
name: "warning",
|
|
18636
|
+
hex: "#e3b25c"
|
|
18637
|
+
},
|
|
18638
|
+
{
|
|
18639
|
+
name: "destructive",
|
|
18640
|
+
hex: "#e58a7a"
|
|
18641
|
+
},
|
|
18642
|
+
{
|
|
18643
|
+
name: "background",
|
|
18644
|
+
hex: "#1c1824"
|
|
18645
|
+
},
|
|
18646
|
+
{
|
|
18647
|
+
name: "surface",
|
|
18648
|
+
hex: "#2b2535"
|
|
18649
|
+
},
|
|
18650
|
+
{
|
|
18651
|
+
name: "surfaceAlt",
|
|
18652
|
+
hex: "#241f2e"
|
|
18653
|
+
},
|
|
18654
|
+
{
|
|
18655
|
+
name: "muted",
|
|
18656
|
+
hex: "#b6acc1"
|
|
18657
|
+
},
|
|
18658
|
+
{
|
|
18659
|
+
name: "text",
|
|
18660
|
+
hex: "#eee8f2"
|
|
18661
|
+
},
|
|
18662
|
+
{
|
|
18663
|
+
name: "primaryForeground",
|
|
18664
|
+
hex: "#1c1824"
|
|
18665
|
+
},
|
|
18666
|
+
{
|
|
18667
|
+
name: "border",
|
|
18668
|
+
hex: "#433a50"
|
|
18669
|
+
}
|
|
18670
|
+
]
|
|
18671
|
+
});
|
|
18672
|
+
//#endregion
|
|
18673
|
+
//#region ../theme-core/src/palette/curated/index.ts
|
|
18674
|
+
function admitCuratedPaletteDefinition(definition) {
|
|
18675
|
+
return {
|
|
18676
|
+
...definition,
|
|
18677
|
+
valueKey: definition.valueKey
|
|
18678
|
+
};
|
|
18679
|
+
}
|
|
18680
|
+
const curatedPalettes = [
|
|
18681
|
+
admitCuratedPaletteDefinition(brandLedCool),
|
|
18682
|
+
admitCuratedPaletteDefinition(brandLedWarm),
|
|
18683
|
+
admitCuratedPaletteDefinition(brandLedJewel),
|
|
18684
|
+
admitCuratedPaletteDefinition(brandLedBurgundyGold),
|
|
18685
|
+
admitCuratedPaletteDefinition(brandLedSpruce),
|
|
18686
|
+
admitCuratedPaletteDefinition(warmNeutralClay),
|
|
18687
|
+
admitCuratedPaletteDefinition(warmNeutralCream),
|
|
18688
|
+
admitCuratedPaletteDefinition(warmNeutralSoftEarth),
|
|
18689
|
+
admitCuratedPaletteDefinition(warmNeutralForest),
|
|
18690
|
+
admitCuratedPaletteDefinition(highContrastInk),
|
|
18691
|
+
admitCuratedPaletteDefinition(highContrastCharcoal),
|
|
18692
|
+
admitCuratedPaletteDefinition(highContrastMonochrome),
|
|
18693
|
+
admitCuratedPaletteDefinition(softNaturalSage),
|
|
18694
|
+
admitCuratedPaletteDefinition(softNaturalStone),
|
|
18695
|
+
admitCuratedPaletteDefinition(softNaturalWatercolor),
|
|
18696
|
+
admitCuratedPaletteDefinition(softNaturalLilac),
|
|
18697
|
+
admitCuratedPaletteDefinition(warmDarkEmber),
|
|
18698
|
+
admitCuratedPaletteDefinition(warmDarkKirtanGold)
|
|
18699
|
+
];
|
|
18700
|
+
/** Style-owned suggestions are readable for compilation, never globally offered. */
|
|
18701
|
+
const styleSuggestedPalettes = [
|
|
18702
|
+
{
|
|
18703
|
+
...admitCuratedPaletteDefinition(loomHearth),
|
|
18704
|
+
ownerStyleId: "site-style:loom"
|
|
18705
|
+
},
|
|
18706
|
+
{
|
|
18707
|
+
...admitCuratedPaletteDefinition(loomFlax),
|
|
18708
|
+
ownerStyleId: "site-style:loom"
|
|
18709
|
+
},
|
|
18710
|
+
{
|
|
18711
|
+
...admitCuratedPaletteDefinition(loomEmber),
|
|
18712
|
+
ownerStyleId: "site-style:loom"
|
|
18713
|
+
},
|
|
18714
|
+
{
|
|
18715
|
+
...admitCuratedPaletteDefinition(poiseButter),
|
|
18716
|
+
ownerStyleId: "site-style:poise"
|
|
18717
|
+
},
|
|
18718
|
+
{
|
|
18719
|
+
...admitCuratedPaletteDefinition(poiseEmber),
|
|
18720
|
+
ownerStyleId: "site-style:poise"
|
|
18721
|
+
},
|
|
18722
|
+
{
|
|
18723
|
+
...admitCuratedPaletteDefinition(poiseNight),
|
|
18724
|
+
ownerStyleId: "site-style:poise"
|
|
18154
18725
|
},
|
|
18155
18726
|
{
|
|
18156
18727
|
...admitCuratedPaletteDefinition(havenBlush),
|
|
@@ -18164,6 +18735,18 @@ const styleSuggestedPalettes = [
|
|
|
18164
18735
|
...admitCuratedPaletteDefinition(havenPlum),
|
|
18165
18736
|
ownerStyleId: "site-style:haven"
|
|
18166
18737
|
},
|
|
18738
|
+
{
|
|
18739
|
+
...admitCuratedPaletteDefinition(brookTerracotta),
|
|
18740
|
+
ownerStyleId: "site-style:brook"
|
|
18741
|
+
},
|
|
18742
|
+
{
|
|
18743
|
+
...admitCuratedPaletteDefinition(brookFell),
|
|
18744
|
+
ownerStyleId: "site-style:brook"
|
|
18745
|
+
},
|
|
18746
|
+
{
|
|
18747
|
+
...admitCuratedPaletteDefinition(brookDusk),
|
|
18748
|
+
ownerStyleId: "site-style:brook"
|
|
18749
|
+
},
|
|
18167
18750
|
{
|
|
18168
18751
|
...admitCuratedPaletteDefinition(fulcrumDeepGreen),
|
|
18169
18752
|
ownerStyleId: "site-style:fulcrum"
|
|
@@ -19696,43 +20279,116 @@ const havenTypography = {
|
|
|
19696
20279
|
},
|
|
19697
20280
|
scale: "spacious"
|
|
19698
20281
|
};
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
-
|
|
19707
|
-
}];
|
|
19708
|
-
const folioFontPairings = [{
|
|
19709
|
-
id: "folio-playfair",
|
|
19710
|
-
heading: "\"Playfair Display\", Georgia, serif",
|
|
19711
|
-
body: "Lato, system-ui, sans-serif"
|
|
19712
|
-
}, {
|
|
19713
|
-
id: "folio-garamond",
|
|
19714
|
-
heading: "\"EB Garamond\", Georgia, serif",
|
|
19715
|
-
body: "\"Nunito Sans\", system-ui, sans-serif"
|
|
19716
|
-
}];
|
|
19717
|
-
const measureFontPairings = [
|
|
19718
|
-
{
|
|
19719
|
-
id: "measure-inter",
|
|
19720
|
-
heading: "Inter, system-ui, sans-serif",
|
|
19721
|
-
body: "Inter, system-ui, sans-serif"
|
|
20282
|
+
/** Brook: Cormorant Garamond at 400 for headings (an uploaded display face may only have 400); Inter to read. */
|
|
20283
|
+
const brookTypography = {
|
|
20284
|
+
body: {
|
|
20285
|
+
family: "Inter, system-ui, sans-serif",
|
|
20286
|
+
size: "md",
|
|
20287
|
+
weight: "regular",
|
|
20288
|
+
lineHeight: "relaxed",
|
|
20289
|
+
letterSpacing: "normal"
|
|
19722
20290
|
},
|
|
19723
|
-
{
|
|
19724
|
-
|
|
19725
|
-
|
|
19726
|
-
body: "\"DM Sans\", system-ui, sans-serif"
|
|
20291
|
+
smallHeading: {
|
|
20292
|
+
family: "Inter, system-ui, sans-serif",
|
|
20293
|
+
weight: "semibold"
|
|
19727
20294
|
},
|
|
19728
|
-
{
|
|
19729
|
-
|
|
19730
|
-
|
|
19731
|
-
|
|
19732
|
-
|
|
19733
|
-
|
|
19734
|
-
|
|
19735
|
-
|
|
20295
|
+
headings: {
|
|
20296
|
+
default: {
|
|
20297
|
+
family: "\"Cormorant Garamond\", Georgia, serif",
|
|
20298
|
+
weight: "regular",
|
|
20299
|
+
lineHeight: "normal",
|
|
20300
|
+
letterSpacing: "normal",
|
|
20301
|
+
italic: null,
|
|
20302
|
+
case: null
|
|
20303
|
+
},
|
|
20304
|
+
h1: {
|
|
20305
|
+
size: "2xl",
|
|
20306
|
+
weight: "regular",
|
|
20307
|
+
lineHeight: "tight",
|
|
20308
|
+
letterSpacing: "normal",
|
|
20309
|
+
italic: null
|
|
20310
|
+
},
|
|
20311
|
+
h2: {
|
|
20312
|
+
size: "xl",
|
|
20313
|
+
weight: "regular",
|
|
20314
|
+
lineHeight: "tight",
|
|
20315
|
+
letterSpacing: "normal",
|
|
20316
|
+
italic: null
|
|
20317
|
+
},
|
|
20318
|
+
h3: {
|
|
20319
|
+
size: "md",
|
|
20320
|
+
weight: "regular",
|
|
20321
|
+
lineHeight: "snug",
|
|
20322
|
+
letterSpacing: "normal",
|
|
20323
|
+
italic: null
|
|
20324
|
+
}
|
|
20325
|
+
},
|
|
20326
|
+
scale: "balanced"
|
|
20327
|
+
};
|
|
20328
|
+
const brookFontPairings = [
|
|
20329
|
+
{
|
|
20330
|
+
id: "brook-cormorant",
|
|
20331
|
+
heading: "\"Cormorant Garamond\", Georgia, serif",
|
|
20332
|
+
body: "Inter, system-ui, sans-serif"
|
|
20333
|
+
},
|
|
20334
|
+
{
|
|
20335
|
+
id: "brook-hanken",
|
|
20336
|
+
heading: "\"Hanken Grotesk\", system-ui, sans-serif",
|
|
20337
|
+
body: "\"Source Serif 4\", Georgia, serif",
|
|
20338
|
+
headingTreatment: {
|
|
20339
|
+
weight: "semibold",
|
|
20340
|
+
letterSpacing: "tight",
|
|
20341
|
+
lineHeight: "tight"
|
|
20342
|
+
}
|
|
20343
|
+
},
|
|
20344
|
+
{
|
|
20345
|
+
id: "brook-jost",
|
|
20346
|
+
heading: "Jost, system-ui, sans-serif",
|
|
20347
|
+
body: "Jost, system-ui, sans-serif",
|
|
20348
|
+
headingTreatment: {
|
|
20349
|
+
weight: "light",
|
|
20350
|
+
letterSpacing: "normal",
|
|
20351
|
+
lineHeight: "snug"
|
|
20352
|
+
}
|
|
20353
|
+
}
|
|
20354
|
+
];
|
|
20355
|
+
const fulcrumFontPairings = [{
|
|
20356
|
+
id: "fulcrum-source",
|
|
20357
|
+
heading: "\"Source Serif 4\", Georgia, serif",
|
|
20358
|
+
body: "\"Source Sans 3\", system-ui, sans-serif"
|
|
20359
|
+
}, {
|
|
20360
|
+
id: "fulcrum-lora",
|
|
20361
|
+
heading: "Lora, Georgia, serif",
|
|
20362
|
+
body: "\"Work Sans\", system-ui, sans-serif"
|
|
20363
|
+
}];
|
|
20364
|
+
const folioFontPairings = [{
|
|
20365
|
+
id: "folio-playfair",
|
|
20366
|
+
heading: "\"Playfair Display\", Georgia, serif",
|
|
20367
|
+
body: "Lato, system-ui, sans-serif"
|
|
20368
|
+
}, {
|
|
20369
|
+
id: "folio-garamond",
|
|
20370
|
+
heading: "\"EB Garamond\", Georgia, serif",
|
|
20371
|
+
body: "\"Nunito Sans\", system-ui, sans-serif"
|
|
20372
|
+
}];
|
|
20373
|
+
const measureFontPairings = [
|
|
20374
|
+
{
|
|
20375
|
+
id: "measure-inter",
|
|
20376
|
+
heading: "Inter, system-ui, sans-serif",
|
|
20377
|
+
body: "Inter, system-ui, sans-serif"
|
|
20378
|
+
},
|
|
20379
|
+
{
|
|
20380
|
+
id: "measure-dm-sans",
|
|
20381
|
+
heading: "\"DM Sans\", system-ui, sans-serif",
|
|
20382
|
+
body: "\"DM Sans\", system-ui, sans-serif"
|
|
20383
|
+
},
|
|
20384
|
+
{
|
|
20385
|
+
id: "measure-plex",
|
|
20386
|
+
heading: "\"IBM Plex Sans\", system-ui, sans-serif",
|
|
20387
|
+
body: "\"IBM Plex Sans\", system-ui, sans-serif"
|
|
20388
|
+
}
|
|
20389
|
+
];
|
|
20390
|
+
const lanternFontPairings = [{
|
|
20391
|
+
id: "lantern-dm-serif",
|
|
19736
20392
|
heading: "\"DM Serif Display\", Georgia, serif",
|
|
19737
20393
|
body: "\"DM Sans\", system-ui, sans-serif"
|
|
19738
20394
|
}, {
|
|
@@ -21898,6 +22554,15 @@ const headerCurationBySiteStyle = {
|
|
|
21898
22554
|
layoutId: "classic",
|
|
21899
22555
|
styleIds: ["fine-line"]
|
|
21900
22556
|
}]),
|
|
22557
|
+
"site-style:brook": defineHeaderCuration([{
|
|
22558
|
+
layoutId: "classic",
|
|
22559
|
+
styleIds: [
|
|
22560
|
+
"serif-line",
|
|
22561
|
+
"brand-underline",
|
|
22562
|
+
"fine-line",
|
|
22563
|
+
"minimal"
|
|
22564
|
+
]
|
|
22565
|
+
}]),
|
|
21901
22566
|
"site-style:clarity-zen-blue": defineHeaderCuration([{
|
|
21902
22567
|
layoutId: "centered",
|
|
21903
22568
|
styleIds: [
|
|
@@ -23168,256 +23833,712 @@ const havenOffers = [
|
|
|
23168
23833
|
},
|
|
23169
23834
|
{
|
|
23170
23835
|
id: id("events-recurring-week"),
|
|
23171
|
-
visibleMarks: ["date"],
|
|
23836
|
+
visibleMarks: ["date"],
|
|
23837
|
+
treatment: "week-list",
|
|
23838
|
+
roleMap: havenRoles,
|
|
23839
|
+
itemRoles: { items: "card" },
|
|
23840
|
+
slotRoles: { date: "highlight" }
|
|
23841
|
+
},
|
|
23842
|
+
{
|
|
23843
|
+
id: id("event-calendar-month-grid"),
|
|
23844
|
+
treatment: "month-grid",
|
|
23845
|
+
roleMap: havenRoles,
|
|
23846
|
+
itemRoles: { container: "card" }
|
|
23847
|
+
},
|
|
23848
|
+
{
|
|
23849
|
+
id: id("event-calendar-month-day"),
|
|
23850
|
+
treatment: "month-day",
|
|
23851
|
+
roleMap: havenRoles
|
|
23852
|
+
},
|
|
23853
|
+
{
|
|
23854
|
+
id: id("event-details-header"),
|
|
23855
|
+
treatment: "event-header",
|
|
23856
|
+
roleMap: havenRoles,
|
|
23857
|
+
slotRoles: { panel: "card" }
|
|
23858
|
+
},
|
|
23859
|
+
{
|
|
23860
|
+
id: id("event-details-panel"),
|
|
23861
|
+
treatment: "details-panel",
|
|
23862
|
+
roleMap: havenRoles
|
|
23863
|
+
},
|
|
23864
|
+
{
|
|
23865
|
+
id: id("testimonials-lead-quote"),
|
|
23866
|
+
treatment: "quote-lead",
|
|
23867
|
+
roleMap: {
|
|
23868
|
+
...havenRoles,
|
|
23869
|
+
highlight: "section"
|
|
23870
|
+
},
|
|
23871
|
+
itemRoles: {
|
|
23872
|
+
items: "card",
|
|
23873
|
+
at: { first: "highlight" }
|
|
23874
|
+
}
|
|
23875
|
+
},
|
|
23876
|
+
{
|
|
23877
|
+
id: id("testimonials-quote-cards"),
|
|
23878
|
+
treatment: "quote-cards",
|
|
23879
|
+
roleMap: havenRoles
|
|
23880
|
+
},
|
|
23881
|
+
{
|
|
23882
|
+
id: id("testimonials-quote-columns"),
|
|
23883
|
+
treatment: "quote-columns",
|
|
23884
|
+
roleMap: havenRoles
|
|
23885
|
+
},
|
|
23886
|
+
{
|
|
23887
|
+
id: id("testimonials-one-quote"),
|
|
23888
|
+
treatment: "quote-single",
|
|
23889
|
+
roleMap: havenRoles
|
|
23890
|
+
},
|
|
23891
|
+
{
|
|
23892
|
+
id: id("testimonials-one-at-a-time"),
|
|
23893
|
+
treatment: "quote-slides",
|
|
23894
|
+
roleMap: havenRoles
|
|
23895
|
+
},
|
|
23896
|
+
{
|
|
23897
|
+
id: id("faq-title-beside-questions"),
|
|
23898
|
+
treatment: "faq-beside",
|
|
23899
|
+
itemRoles: { items: "card" },
|
|
23900
|
+
roleMap: havenRoles
|
|
23901
|
+
},
|
|
23902
|
+
{
|
|
23903
|
+
id: id("faq-questions-under-title"),
|
|
23904
|
+
treatment: "faq-under",
|
|
23905
|
+
itemRoles: { items: "card" },
|
|
23906
|
+
roleMap: havenRoles
|
|
23907
|
+
},
|
|
23908
|
+
{
|
|
23909
|
+
id: id("faq-questions-two-columns"),
|
|
23910
|
+
treatment: "faq-columns",
|
|
23911
|
+
itemRoles: { items: "card" },
|
|
23912
|
+
roleMap: havenRoles
|
|
23913
|
+
},
|
|
23914
|
+
{
|
|
23915
|
+
id: id("faq-all-answers-showing"),
|
|
23916
|
+
treatment: "faq-open",
|
|
23917
|
+
roleMap: havenRoles
|
|
23918
|
+
},
|
|
23919
|
+
{
|
|
23920
|
+
id: id("cta-centred"),
|
|
23921
|
+
treatment: "cta-centred",
|
|
23922
|
+
roleMap: havenRoles
|
|
23923
|
+
},
|
|
23924
|
+
{
|
|
23925
|
+
id: id("cta-title-beside-buttons"),
|
|
23926
|
+
treatment: "cta-beside",
|
|
23927
|
+
roleMap: havenRoles
|
|
23928
|
+
},
|
|
23929
|
+
{
|
|
23930
|
+
id: id("cta-figure-beside-offer"),
|
|
23931
|
+
treatment: "cta-figure",
|
|
23932
|
+
roleMap: havenRoles
|
|
23933
|
+
},
|
|
23934
|
+
{
|
|
23935
|
+
id: id("newsletter-signup-text-beside"),
|
|
23936
|
+
treatment: "signup-beside",
|
|
23937
|
+
roleMap: havenRoles
|
|
23938
|
+
},
|
|
23939
|
+
{
|
|
23940
|
+
id: id("newsletter-signup-one-row"),
|
|
23941
|
+
treatment: "signup-row",
|
|
23942
|
+
roleMap: havenRoles
|
|
23943
|
+
},
|
|
23944
|
+
{
|
|
23945
|
+
id: id("newsletter-signup-in-arch"),
|
|
23946
|
+
treatment: "signup-frame",
|
|
23947
|
+
roleMap: havenRoles,
|
|
23948
|
+
slotRoles: { frame: "card" }
|
|
23949
|
+
},
|
|
23950
|
+
{
|
|
23951
|
+
id: id("form-beside-introduction-arched-panel"),
|
|
23952
|
+
treatment: "form-beside",
|
|
23953
|
+
roleMap: havenRoles
|
|
23954
|
+
},
|
|
23955
|
+
{
|
|
23956
|
+
id: id("form-below-introduction"),
|
|
23957
|
+
treatment: "form-below",
|
|
23958
|
+
roleMap: havenRoles
|
|
23959
|
+
},
|
|
23960
|
+
{
|
|
23961
|
+
id: id("body-text-reading-column"),
|
|
23962
|
+
treatment: "body-reading",
|
|
23963
|
+
roleMap: havenRoles
|
|
23964
|
+
},
|
|
23965
|
+
{
|
|
23966
|
+
id: id("body-text-title-beside"),
|
|
23967
|
+
treatment: "body-beside",
|
|
23968
|
+
roleMap: havenRoles
|
|
23969
|
+
},
|
|
23970
|
+
{
|
|
23971
|
+
id: id("body-text-large-opening"),
|
|
23972
|
+
treatment: "body-opening",
|
|
23973
|
+
roleMap: havenRoles
|
|
23974
|
+
},
|
|
23975
|
+
{
|
|
23976
|
+
id: id("image-gallery-captions-under"),
|
|
23977
|
+
treatment: "gallery-captions",
|
|
23978
|
+
roleMap: havenRoles
|
|
23979
|
+
},
|
|
23980
|
+
{
|
|
23981
|
+
id: id("image-gallery-square-tiles"),
|
|
23982
|
+
treatment: "gallery-tiles",
|
|
23983
|
+
roleMap: havenRoles
|
|
23984
|
+
},
|
|
23985
|
+
{
|
|
23986
|
+
id: id("image-gallery-lead-photo"),
|
|
23987
|
+
treatment: "gallery-lead",
|
|
23988
|
+
roleMap: havenRoles
|
|
23989
|
+
},
|
|
23990
|
+
{
|
|
23991
|
+
id: id("location-map-beside-address"),
|
|
23992
|
+
treatment: "map-beside",
|
|
23993
|
+
roleMap: havenRoles,
|
|
23994
|
+
slotRoles: { panel: "card" }
|
|
23995
|
+
},
|
|
23996
|
+
{
|
|
23997
|
+
id: id("location-map-above-details"),
|
|
23998
|
+
treatment: "map-above",
|
|
23999
|
+
roleMap: havenRoles
|
|
24000
|
+
},
|
|
24001
|
+
{
|
|
24002
|
+
id: id("location-map-address-over-wide-map"),
|
|
24003
|
+
treatment: "map-wide",
|
|
24004
|
+
roleMap: havenRoles
|
|
24005
|
+
},
|
|
24006
|
+
{
|
|
24007
|
+
id: id("location-map-entrance-photo"),
|
|
24008
|
+
treatment: "map-entrance",
|
|
24009
|
+
roleMap: havenRoles
|
|
24010
|
+
}
|
|
24011
|
+
];
|
|
24012
|
+
const havenLooks = {
|
|
24013
|
+
kind: "offers",
|
|
24014
|
+
skin: "haven",
|
|
24015
|
+
skinTokens: {
|
|
24016
|
+
radius: "30px",
|
|
24017
|
+
rule: "1.5px",
|
|
24018
|
+
"mark-length": "14px",
|
|
24019
|
+
"mark-weight": "12px",
|
|
24020
|
+
plate: "1.25rem",
|
|
24021
|
+
gutter: "32px",
|
|
24022
|
+
"copy-gap": "1.25rem",
|
|
24023
|
+
"stack-gap": "3rem",
|
|
24024
|
+
"shadow-offset": "0",
|
|
24025
|
+
rotation: "0deg",
|
|
24026
|
+
wrap: "1200px"
|
|
24027
|
+
},
|
|
24028
|
+
fontLoading: {
|
|
24029
|
+
extraHeadingFontWeights: [750],
|
|
24030
|
+
extraBodyFontWeights: [600, 700]
|
|
24031
|
+
},
|
|
24032
|
+
surfaces: {
|
|
24033
|
+
base: {
|
|
24034
|
+
kind: "token",
|
|
24035
|
+
token: "background"
|
|
24036
|
+
},
|
|
24037
|
+
sheet: {
|
|
24038
|
+
kind: "token",
|
|
24039
|
+
token: "surface"
|
|
24040
|
+
},
|
|
24041
|
+
band: {
|
|
24042
|
+
kind: "token",
|
|
24043
|
+
token: "surfaceAlt"
|
|
24044
|
+
},
|
|
24045
|
+
deep: {
|
|
24046
|
+
kind: "token",
|
|
24047
|
+
token: "secondary",
|
|
24048
|
+
roleOnly: true
|
|
24049
|
+
},
|
|
24050
|
+
brand: {
|
|
24051
|
+
kind: "token",
|
|
24052
|
+
token: "primary",
|
|
24053
|
+
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
|
|
24054
|
+
}
|
|
24055
|
+
},
|
|
24056
|
+
rhythm: {
|
|
24057
|
+
"flow:quiet": [
|
|
24058
|
+
"base",
|
|
24059
|
+
"band",
|
|
24060
|
+
"base",
|
|
24061
|
+
"sheet"
|
|
24062
|
+
],
|
|
24063
|
+
"flow:balanced": [
|
|
24064
|
+
"base",
|
|
24065
|
+
"band",
|
|
24066
|
+
"base",
|
|
24067
|
+
"sheet",
|
|
24068
|
+
"base",
|
|
24069
|
+
"band",
|
|
24070
|
+
"brand",
|
|
24071
|
+
"sheet"
|
|
24072
|
+
],
|
|
24073
|
+
"flow:expressive": [
|
|
24074
|
+
"base",
|
|
24075
|
+
"band",
|
|
24076
|
+
"base",
|
|
24077
|
+
"brand",
|
|
24078
|
+
"sheet",
|
|
24079
|
+
"band",
|
|
24080
|
+
"base",
|
|
24081
|
+
"sheet"
|
|
24082
|
+
]
|
|
24083
|
+
},
|
|
24084
|
+
defaultJoin: noneBoundaryOption.id,
|
|
24085
|
+
offers: havenOffers
|
|
24086
|
+
};
|
|
24087
|
+
/**
|
|
24088
|
+
* Brook (issue 1682): paper panels, hairline rules and a hand-drawn squiggle under each section
|
|
24089
|
+
* heading. The mockup names its grounds base, quiet, surface, band, brand and inverse; in code
|
|
24090
|
+
* they are base (background), band (surfaceAlt, the quiet ground), sheet (surface), deep
|
|
24091
|
+
* (secondary, the coloured band), brand (primary) and inverse (text). Panels take the quiet
|
|
24092
|
+
* colour on light grounds. On coloured grounds they shade the enclosing paint,
|
|
24093
|
+
* with contrast checked against the resulting panel.
|
|
24094
|
+
*/
|
|
24095
|
+
const brookRoles = {
|
|
24096
|
+
card: {
|
|
24097
|
+
default: "band",
|
|
24098
|
+
brand: {
|
|
24099
|
+
source: "shade",
|
|
24100
|
+
opacity: 12
|
|
24101
|
+
},
|
|
24102
|
+
deep: {
|
|
24103
|
+
source: "shade",
|
|
24104
|
+
opacity: 12
|
|
24105
|
+
}
|
|
24106
|
+
},
|
|
24107
|
+
statement: {
|
|
24108
|
+
default: "brand",
|
|
24109
|
+
brand: "sheet"
|
|
24110
|
+
},
|
|
24111
|
+
highlight: "sheet"
|
|
24112
|
+
};
|
|
24113
|
+
const brookLinks = { link: "primary" };
|
|
24114
|
+
/**
|
|
24115
|
+
* Looks drawn as one panel holding a white list (Questions in a panel, Ruled rows on a panel)
|
|
24116
|
+
* put the list on `highlight`: the sheet on light grounds, and on coloured grounds a lighter
|
|
24117
|
+
* shade of the same paint than the panel around it.
|
|
24118
|
+
*/
|
|
24119
|
+
const brookPanelListRoles = {
|
|
24120
|
+
...brookRoles,
|
|
24121
|
+
highlight: {
|
|
24122
|
+
default: "sheet",
|
|
24123
|
+
brand: {
|
|
24124
|
+
source: "shade",
|
|
24125
|
+
opacity: 7
|
|
24126
|
+
},
|
|
24127
|
+
deep: {
|
|
24128
|
+
source: "shade",
|
|
24129
|
+
opacity: 7
|
|
24130
|
+
}
|
|
24131
|
+
}
|
|
24132
|
+
};
|
|
24133
|
+
const brookOffers = [
|
|
24134
|
+
{
|
|
24135
|
+
id: id("event-calendar-combined-panel"),
|
|
24136
|
+
treatment: "rows-panel",
|
|
24137
|
+
itemRoles: { container: "highlight" },
|
|
24138
|
+
roleMap: brookPanelListRoles
|
|
24139
|
+
},
|
|
24140
|
+
{
|
|
24141
|
+
id: id("event-calendar-combined-rows"),
|
|
24142
|
+
treatment: "rows",
|
|
24143
|
+
roleMap: brookRoles
|
|
24144
|
+
},
|
|
24145
|
+
{
|
|
24146
|
+
id: id("team-members-portrait-bio"),
|
|
24147
|
+
treatment: "team-bio",
|
|
24148
|
+
roleMap: brookRoles
|
|
24149
|
+
},
|
|
24150
|
+
{
|
|
24151
|
+
id: id("team-members-tall-portraits"),
|
|
24152
|
+
treatment: "team-portraits",
|
|
24153
|
+
roleMap: brookRoles
|
|
24154
|
+
},
|
|
24155
|
+
{
|
|
24156
|
+
id: id("team-members-ruled-names"),
|
|
24157
|
+
treatment: "team-names",
|
|
24158
|
+
roleMap: brookRoles
|
|
24159
|
+
},
|
|
24160
|
+
{
|
|
24161
|
+
id: id("shop-price-cards"),
|
|
24162
|
+
treatment: "prices",
|
|
24163
|
+
roleMap: brookRoles
|
|
24164
|
+
},
|
|
24165
|
+
{
|
|
24166
|
+
id: id("shop-price-cards-featured"),
|
|
24167
|
+
treatment: "prices-featured",
|
|
24168
|
+
roleMap: brookRoles
|
|
24169
|
+
},
|
|
24170
|
+
{
|
|
24171
|
+
id: id("shop-ruled-prices"),
|
|
24172
|
+
treatment: "price-rows",
|
|
24173
|
+
roleMap: brookRoles
|
|
24174
|
+
},
|
|
24175
|
+
{
|
|
24176
|
+
id: id("card-list-photos-on-top"),
|
|
24177
|
+
treatment: "photos-on-top",
|
|
24178
|
+
roleMap: brookRoles
|
|
24179
|
+
},
|
|
24180
|
+
{
|
|
24181
|
+
id: id("hero-photo-behind-text"),
|
|
24182
|
+
treatment: "hero-panel",
|
|
24183
|
+
addKnobs: ["photoTint"],
|
|
24184
|
+
roleMap: brookRoles
|
|
24185
|
+
},
|
|
24186
|
+
{
|
|
24187
|
+
id: id("hero-text-over-photo"),
|
|
24188
|
+
treatment: "hero-cover",
|
|
24189
|
+
addKnobs: ["photoTint"],
|
|
24190
|
+
roleMap: brookRoles
|
|
24191
|
+
},
|
|
24192
|
+
{
|
|
24193
|
+
id: id("hero-photo-beside-text"),
|
|
24194
|
+
visibleMarks: ["sticker"],
|
|
24195
|
+
treatment: "hero-split",
|
|
24196
|
+
roleMap: brookRoles
|
|
24197
|
+
},
|
|
24198
|
+
{
|
|
24199
|
+
id: id("hero-photo-then-text"),
|
|
24200
|
+
treatment: "hero-photo-then",
|
|
24201
|
+
roleMap: brookRoles
|
|
24202
|
+
},
|
|
24203
|
+
{
|
|
24204
|
+
id: id("hero-short-photo-banner"),
|
|
24205
|
+
treatment: "hero-banner",
|
|
24206
|
+
addKnobs: ["photoTint"],
|
|
24207
|
+
roleMap: brookRoles
|
|
24208
|
+
},
|
|
24209
|
+
{
|
|
24210
|
+
id: id("hero-page-head"),
|
|
24211
|
+
treatment: "hero-page-head",
|
|
24212
|
+
roleMap: brookRoles
|
|
24213
|
+
},
|
|
24214
|
+
{
|
|
24215
|
+
id: id("intro-photo-beside-text"),
|
|
24216
|
+
treatment: "intro-photo",
|
|
24217
|
+
roleMap: brookRoles
|
|
24218
|
+
},
|
|
24219
|
+
{
|
|
24220
|
+
id: id("intro-statement-beside-text"),
|
|
24221
|
+
treatment: "intro-statement",
|
|
24222
|
+
roleMap: brookRoles
|
|
24223
|
+
},
|
|
24224
|
+
{
|
|
24225
|
+
id: id("media-text-photo-beside-text"),
|
|
24226
|
+
treatment: "media-beside",
|
|
24227
|
+
roleMap: brookRoles
|
|
24228
|
+
},
|
|
24229
|
+
{
|
|
24230
|
+
id: id("media-text-photo-to-edge"),
|
|
24231
|
+
treatment: "media-edge",
|
|
24232
|
+
roleMap: brookRoles
|
|
24233
|
+
},
|
|
24234
|
+
{
|
|
24235
|
+
id: id("feature-cards-open-columns"),
|
|
24236
|
+
treatment: "open-columns",
|
|
24237
|
+
roleMap: brookRoles
|
|
24238
|
+
},
|
|
24239
|
+
{
|
|
24240
|
+
id: id("feature-cards-sequence"),
|
|
24241
|
+
treatment: "steps",
|
|
24242
|
+
roleMap: brookRoles
|
|
24243
|
+
},
|
|
24244
|
+
{
|
|
24245
|
+
id: id("feature-cards-cards"),
|
|
24246
|
+
treatment: "cards",
|
|
24247
|
+
roleMap: brookRoles
|
|
24248
|
+
},
|
|
24249
|
+
{
|
|
24250
|
+
id: id("feature-cards-index"),
|
|
24251
|
+
treatment: "index",
|
|
24252
|
+
roleMap: brookRoles
|
|
24253
|
+
},
|
|
24254
|
+
{
|
|
24255
|
+
id: id("card-list-scroll-row"),
|
|
24256
|
+
treatment: "card-row",
|
|
24257
|
+
roleMap: brookRoles
|
|
24258
|
+
},
|
|
24259
|
+
{
|
|
24260
|
+
id: id("event-calendar-ruled-rows-panel"),
|
|
24261
|
+
treatment: "rows-panel",
|
|
24262
|
+
itemRoles: { container: "highlight" },
|
|
24263
|
+
roleMap: brookPanelListRoles
|
|
24264
|
+
},
|
|
24265
|
+
{
|
|
24266
|
+
id: id("event-calendar-ruled-rows"),
|
|
24267
|
+
treatment: "rows",
|
|
24268
|
+
roleMap: brookRoles
|
|
24269
|
+
},
|
|
24270
|
+
{
|
|
24271
|
+
id: id("event-calendar-session-cards"),
|
|
24272
|
+
treatment: "session-cards",
|
|
24273
|
+
roleMap: brookRoles
|
|
24274
|
+
},
|
|
24275
|
+
{
|
|
24276
|
+
id: id("event-calendar-grouped-by-day"),
|
|
24277
|
+
treatment: "day-groups",
|
|
24278
|
+
roleMap: brookRoles
|
|
24279
|
+
},
|
|
24280
|
+
{
|
|
24281
|
+
id: id("event-calendar-next-three"),
|
|
24282
|
+
treatment: "compact",
|
|
24283
|
+
roleMap: brookRoles
|
|
24284
|
+
},
|
|
24285
|
+
{
|
|
24286
|
+
id: id("events-spotlight"),
|
|
24287
|
+
treatment: "spotlight",
|
|
24288
|
+
roleMap: brookRoles
|
|
24289
|
+
},
|
|
24290
|
+
{
|
|
24291
|
+
id: id("events-recurring-week"),
|
|
23172
24292
|
treatment: "week-list",
|
|
23173
|
-
roleMap:
|
|
23174
|
-
itemRoles: { items: "card" },
|
|
23175
|
-
slotRoles: { date: "highlight" }
|
|
24293
|
+
roleMap: brookRoles
|
|
23176
24294
|
},
|
|
23177
24295
|
{
|
|
23178
24296
|
id: id("event-calendar-month-grid"),
|
|
23179
24297
|
treatment: "month-grid",
|
|
23180
|
-
roleMap:
|
|
24298
|
+
roleMap: brookRoles,
|
|
23181
24299
|
itemRoles: { container: "card" }
|
|
23182
24300
|
},
|
|
23183
24301
|
{
|
|
23184
24302
|
id: id("event-calendar-month-day"),
|
|
23185
24303
|
treatment: "month-day",
|
|
23186
|
-
roleMap:
|
|
24304
|
+
roleMap: brookRoles
|
|
24305
|
+
},
|
|
24306
|
+
{
|
|
24307
|
+
id: id("event-details-panel"),
|
|
24308
|
+
treatment: "details-panel",
|
|
24309
|
+
roleMap: brookRoles
|
|
23187
24310
|
},
|
|
23188
24311
|
{
|
|
23189
24312
|
id: id("event-details-header"),
|
|
23190
24313
|
treatment: "event-header",
|
|
23191
|
-
roleMap:
|
|
24314
|
+
roleMap: brookRoles,
|
|
23192
24315
|
slotRoles: { panel: "card" }
|
|
23193
24316
|
},
|
|
23194
24317
|
{
|
|
23195
|
-
id: id("
|
|
23196
|
-
treatment: "
|
|
23197
|
-
roleMap:
|
|
23198
|
-
},
|
|
23199
|
-
{
|
|
23200
|
-
id: id("testimonials-lead-quote"),
|
|
23201
|
-
treatment: "quote-lead",
|
|
23202
|
-
roleMap: {
|
|
23203
|
-
...havenRoles,
|
|
23204
|
-
highlight: "section"
|
|
23205
|
-
},
|
|
23206
|
-
itemRoles: {
|
|
23207
|
-
items: "card",
|
|
23208
|
-
at: { first: "highlight" }
|
|
23209
|
-
}
|
|
24318
|
+
id: id("testimonials-quote-columns"),
|
|
24319
|
+
treatment: "quote-columns",
|
|
24320
|
+
roleMap: brookRoles
|
|
23210
24321
|
},
|
|
23211
24322
|
{
|
|
23212
24323
|
id: id("testimonials-quote-cards"),
|
|
23213
24324
|
treatment: "quote-cards",
|
|
23214
|
-
roleMap:
|
|
24325
|
+
roleMap: brookRoles
|
|
23215
24326
|
},
|
|
23216
24327
|
{
|
|
23217
|
-
id: id("testimonials-quote
|
|
23218
|
-
treatment: "quote-
|
|
23219
|
-
roleMap:
|
|
24328
|
+
id: id("testimonials-lead-quote"),
|
|
24329
|
+
treatment: "quote-lead",
|
|
24330
|
+
roleMap: brookRoles
|
|
23220
24331
|
},
|
|
23221
24332
|
{
|
|
23222
24333
|
id: id("testimonials-one-quote"),
|
|
23223
24334
|
treatment: "quote-single",
|
|
23224
|
-
roleMap:
|
|
24335
|
+
roleMap: brookRoles
|
|
24336
|
+
},
|
|
24337
|
+
{
|
|
24338
|
+
id: id("testimonials-scroll-row"),
|
|
24339
|
+
treatment: "quote-row",
|
|
24340
|
+
roleMap: brookRoles
|
|
23225
24341
|
},
|
|
23226
24342
|
{
|
|
23227
24343
|
id: id("testimonials-one-at-a-time"),
|
|
23228
24344
|
treatment: "quote-slides",
|
|
23229
|
-
roleMap:
|
|
24345
|
+
roleMap: brookRoles
|
|
23230
24346
|
},
|
|
23231
24347
|
{
|
|
23232
|
-
id: id("faq-
|
|
23233
|
-
treatment: "faq-
|
|
23234
|
-
itemRoles: {
|
|
23235
|
-
roleMap:
|
|
24348
|
+
id: id("faq-questions-in-panel"),
|
|
24349
|
+
treatment: "faq-panel",
|
|
24350
|
+
itemRoles: { container: "highlight" },
|
|
24351
|
+
roleMap: brookPanelListRoles
|
|
23236
24352
|
},
|
|
23237
24353
|
{
|
|
23238
24354
|
id: id("faq-questions-under-title"),
|
|
23239
24355
|
treatment: "faq-under",
|
|
23240
|
-
|
|
23241
|
-
|
|
24356
|
+
roleMap: brookRoles
|
|
24357
|
+
},
|
|
24358
|
+
{
|
|
24359
|
+
id: id("faq-title-beside-questions"),
|
|
24360
|
+
treatment: "faq-beside",
|
|
24361
|
+
roleMap: brookRoles
|
|
23242
24362
|
},
|
|
23243
24363
|
{
|
|
23244
24364
|
id: id("faq-questions-two-columns"),
|
|
23245
24365
|
treatment: "faq-columns",
|
|
23246
|
-
|
|
23247
|
-
roleMap: havenRoles
|
|
24366
|
+
roleMap: brookRoles
|
|
23248
24367
|
},
|
|
23249
24368
|
{
|
|
23250
24369
|
id: id("faq-all-answers-showing"),
|
|
23251
24370
|
treatment: "faq-open",
|
|
23252
|
-
roleMap:
|
|
24371
|
+
roleMap: brookRoles
|
|
24372
|
+
},
|
|
24373
|
+
{
|
|
24374
|
+
id: id("cta-text-in-panel"),
|
|
24375
|
+
treatment: "cta-panel",
|
|
24376
|
+
roleMap: brookRoles
|
|
23253
24377
|
},
|
|
23254
24378
|
{
|
|
23255
24379
|
id: id("cta-centred"),
|
|
23256
24380
|
treatment: "cta-centred",
|
|
23257
|
-
roleMap:
|
|
24381
|
+
roleMap: brookRoles
|
|
23258
24382
|
},
|
|
23259
24383
|
{
|
|
23260
24384
|
id: id("cta-title-beside-buttons"),
|
|
23261
24385
|
treatment: "cta-beside",
|
|
23262
|
-
roleMap:
|
|
24386
|
+
roleMap: brookRoles
|
|
23263
24387
|
},
|
|
23264
24388
|
{
|
|
23265
24389
|
id: id("cta-figure-beside-offer"),
|
|
23266
24390
|
treatment: "cta-figure",
|
|
23267
|
-
roleMap:
|
|
24391
|
+
roleMap: brookRoles
|
|
23268
24392
|
},
|
|
23269
24393
|
{
|
|
23270
24394
|
id: id("newsletter-signup-text-beside"),
|
|
23271
24395
|
treatment: "signup-beside",
|
|
23272
|
-
roleMap:
|
|
24396
|
+
roleMap: brookRoles
|
|
23273
24397
|
},
|
|
23274
24398
|
{
|
|
23275
24399
|
id: id("newsletter-signup-one-row"),
|
|
23276
24400
|
treatment: "signup-row",
|
|
23277
|
-
roleMap:
|
|
24401
|
+
roleMap: brookRoles
|
|
23278
24402
|
},
|
|
23279
24403
|
{
|
|
23280
|
-
id: id("
|
|
23281
|
-
treatment: "
|
|
23282
|
-
roleMap:
|
|
23283
|
-
slotRoles: { frame: "card" }
|
|
24404
|
+
id: id("form-below-introduction"),
|
|
24405
|
+
treatment: "form-below",
|
|
24406
|
+
roleMap: brookRoles
|
|
23284
24407
|
},
|
|
23285
24408
|
{
|
|
23286
24409
|
id: id("form-beside-introduction-arched-panel"),
|
|
23287
24410
|
treatment: "form-beside",
|
|
23288
|
-
roleMap:
|
|
23289
|
-
},
|
|
23290
|
-
{
|
|
23291
|
-
id: id("form-below-introduction"),
|
|
23292
|
-
treatment: "form-below",
|
|
23293
|
-
roleMap: havenRoles
|
|
24411
|
+
roleMap: brookRoles
|
|
23294
24412
|
},
|
|
23295
24413
|
{
|
|
23296
24414
|
id: id("body-text-reading-column"),
|
|
23297
24415
|
treatment: "body-reading",
|
|
23298
|
-
roleMap:
|
|
24416
|
+
roleMap: brookRoles
|
|
23299
24417
|
},
|
|
23300
24418
|
{
|
|
23301
24419
|
id: id("body-text-title-beside"),
|
|
23302
24420
|
treatment: "body-beside",
|
|
23303
|
-
roleMap:
|
|
24421
|
+
roleMap: brookRoles
|
|
23304
24422
|
},
|
|
23305
24423
|
{
|
|
23306
24424
|
id: id("body-text-large-opening"),
|
|
23307
24425
|
treatment: "body-opening",
|
|
23308
|
-
roleMap:
|
|
23309
|
-
},
|
|
23310
|
-
{
|
|
23311
|
-
id: id("image-gallery-captions-under"),
|
|
23312
|
-
treatment: "gallery-captions",
|
|
23313
|
-
roleMap: havenRoles
|
|
24426
|
+
roleMap: brookRoles
|
|
23314
24427
|
},
|
|
23315
24428
|
{
|
|
23316
24429
|
id: id("image-gallery-square-tiles"),
|
|
23317
24430
|
treatment: "gallery-tiles",
|
|
23318
|
-
roleMap:
|
|
24431
|
+
roleMap: brookRoles
|
|
24432
|
+
},
|
|
24433
|
+
{
|
|
24434
|
+
id: id("image-gallery-captions-under"),
|
|
24435
|
+
treatment: "gallery-captions",
|
|
24436
|
+
roleMap: brookRoles
|
|
23319
24437
|
},
|
|
23320
24438
|
{
|
|
23321
24439
|
id: id("image-gallery-lead-photo"),
|
|
23322
24440
|
treatment: "gallery-lead",
|
|
23323
|
-
roleMap:
|
|
24441
|
+
roleMap: brookRoles
|
|
23324
24442
|
},
|
|
23325
24443
|
{
|
|
23326
24444
|
id: id("location-map-beside-address"),
|
|
23327
24445
|
treatment: "map-beside",
|
|
23328
|
-
roleMap:
|
|
24446
|
+
roleMap: brookRoles,
|
|
23329
24447
|
slotRoles: { panel: "card" }
|
|
23330
24448
|
},
|
|
23331
24449
|
{
|
|
23332
24450
|
id: id("location-map-above-details"),
|
|
23333
24451
|
treatment: "map-above",
|
|
23334
|
-
roleMap:
|
|
24452
|
+
roleMap: brookRoles
|
|
23335
24453
|
},
|
|
23336
24454
|
{
|
|
23337
24455
|
id: id("location-map-address-over-wide-map"),
|
|
23338
24456
|
treatment: "map-wide",
|
|
23339
|
-
roleMap:
|
|
24457
|
+
roleMap: brookRoles
|
|
23340
24458
|
},
|
|
23341
24459
|
{
|
|
23342
24460
|
id: id("location-map-entrance-photo"),
|
|
23343
24461
|
treatment: "map-entrance",
|
|
23344
|
-
roleMap:
|
|
24462
|
+
roleMap: brookRoles
|
|
23345
24463
|
}
|
|
23346
24464
|
];
|
|
23347
|
-
const
|
|
24465
|
+
const brookLooks = {
|
|
23348
24466
|
kind: "offers",
|
|
23349
|
-
skin: "
|
|
24467
|
+
skin: "brook",
|
|
23350
24468
|
skinTokens: {
|
|
23351
|
-
radius: "
|
|
23352
|
-
rule: "
|
|
23353
|
-
"mark-length": "
|
|
23354
|
-
"mark-weight": "
|
|
23355
|
-
plate: "1.25rem",
|
|
24469
|
+
radius: "8px",
|
|
24470
|
+
rule: "1px",
|
|
24471
|
+
"mark-length": "134px",
|
|
24472
|
+
"mark-weight": "16px",
|
|
23356
24473
|
gutter: "32px",
|
|
23357
24474
|
"copy-gap": "1.25rem",
|
|
23358
|
-
"stack-gap": "
|
|
24475
|
+
"stack-gap": "2.5rem",
|
|
23359
24476
|
"shadow-offset": "0",
|
|
23360
24477
|
rotation: "0deg",
|
|
23361
|
-
wrap: "
|
|
23362
|
-
},
|
|
23363
|
-
fontLoading: {
|
|
23364
|
-
extraHeadingFontWeights: [750],
|
|
23365
|
-
extraBodyFontWeights: [600, 700]
|
|
24478
|
+
wrap: "1232px"
|
|
23366
24479
|
},
|
|
24480
|
+
fontLoading: { extraBodyFontWeights: [500, 600] },
|
|
23367
24481
|
surfaces: {
|
|
23368
24482
|
base: {
|
|
23369
24483
|
kind: "token",
|
|
23370
|
-
token: "background"
|
|
24484
|
+
token: "background",
|
|
24485
|
+
foreground: brookLinks
|
|
23371
24486
|
},
|
|
23372
|
-
|
|
24487
|
+
band: {
|
|
23373
24488
|
kind: "token",
|
|
23374
|
-
token: "
|
|
24489
|
+
token: "surfaceAlt",
|
|
24490
|
+
foreground: brookLinks
|
|
23375
24491
|
},
|
|
23376
|
-
|
|
24492
|
+
sheet: {
|
|
23377
24493
|
kind: "token",
|
|
23378
|
-
token: "
|
|
24494
|
+
token: "surface",
|
|
24495
|
+
foreground: brookLinks
|
|
23379
24496
|
},
|
|
23380
24497
|
deep: {
|
|
23381
24498
|
kind: "token",
|
|
23382
|
-
token: "secondary"
|
|
23383
|
-
roleOnly: true
|
|
24499
|
+
token: "secondary"
|
|
23384
24500
|
},
|
|
23385
24501
|
brand: {
|
|
23386
24502
|
kind: "token",
|
|
23387
24503
|
token: "primary",
|
|
23388
24504
|
buttonContext: { primary: unsafeAsOpaqueButtonColourToken("primaryForeground") }
|
|
24505
|
+
},
|
|
24506
|
+
inverse: {
|
|
24507
|
+
kind: "token",
|
|
24508
|
+
token: "text"
|
|
23389
24509
|
}
|
|
23390
24510
|
},
|
|
23391
24511
|
rhythm: {
|
|
23392
24512
|
"flow:quiet": [
|
|
23393
24513
|
"base",
|
|
23394
|
-
"band",
|
|
23395
24514
|
"base",
|
|
23396
|
-
"
|
|
24515
|
+
"band",
|
|
24516
|
+
"base"
|
|
23397
24517
|
],
|
|
23398
24518
|
"flow:balanced": [
|
|
23399
24519
|
"base",
|
|
23400
|
-
"band",
|
|
23401
24520
|
"base",
|
|
23402
|
-
"
|
|
24521
|
+
"base",
|
|
24522
|
+
"deep",
|
|
24523
|
+
"band",
|
|
23403
24524
|
"base",
|
|
23404
24525
|
"band",
|
|
23405
|
-
"
|
|
23406
|
-
"sheet"
|
|
24526
|
+
"base"
|
|
23407
24527
|
],
|
|
23408
24528
|
"flow:expressive": [
|
|
23409
24529
|
"base",
|
|
23410
|
-
"band",
|
|
23411
24530
|
"base",
|
|
23412
|
-
"
|
|
23413
|
-
"
|
|
24531
|
+
"deep",
|
|
24532
|
+
"base",
|
|
23414
24533
|
"band",
|
|
24534
|
+
"brand",
|
|
23415
24535
|
"base",
|
|
23416
|
-
"
|
|
24536
|
+
"band",
|
|
24537
|
+
"inverse"
|
|
23417
24538
|
]
|
|
23418
24539
|
},
|
|
23419
24540
|
defaultJoin: noneBoundaryOption.id,
|
|
23420
|
-
offers:
|
|
24541
|
+
offers: brookOffers
|
|
23421
24542
|
};
|
|
23422
24543
|
/** Folio: quiet sheets and band-coloured statements. */
|
|
23423
24544
|
const folioRoles = {
|
|
@@ -25511,7 +26632,6 @@ const curatedSiteStyles = [
|
|
|
25511
26632
|
typography: "body"
|
|
25512
26633
|
},
|
|
25513
26634
|
legal: {
|
|
25514
|
-
kind: "separate",
|
|
25515
26635
|
bar: {
|
|
25516
26636
|
fullBleed: true,
|
|
25517
26637
|
background: {
|
|
@@ -25662,7 +26782,7 @@ const curatedSiteStyles = [
|
|
|
25662
26782
|
hoverColorToken: "primary",
|
|
25663
26783
|
typography: "body"
|
|
25664
26784
|
},
|
|
25665
|
-
legal: {
|
|
26785
|
+
legal: { bar: null },
|
|
25666
26786
|
brandAlign: "start"
|
|
25667
26787
|
} },
|
|
25668
26788
|
recommendedFooterLookIds: ["footer-links-row"],
|
|
@@ -25776,7 +26896,7 @@ const curatedSiteStyles = [
|
|
|
25776
26896
|
hoverColorToken: "primary",
|
|
25777
26897
|
typography: "body"
|
|
25778
26898
|
},
|
|
25779
|
-
legal: {
|
|
26899
|
+
legal: { bar: null },
|
|
25780
26900
|
brandAlign: "start"
|
|
25781
26901
|
} },
|
|
25782
26902
|
recommendedFooterLookIds: ["footer-links-row"],
|
|
@@ -25831,10 +26951,7 @@ const curatedSiteStyles = [
|
|
|
25831
26951
|
hoverColorToken: "primary",
|
|
25832
26952
|
typography: "heading"
|
|
25833
26953
|
},
|
|
25834
|
-
legal: {
|
|
25835
|
-
kind: "separate",
|
|
25836
|
-
bar: null
|
|
25837
|
-
},
|
|
26954
|
+
legal: { bar: null },
|
|
25838
26955
|
brandAlign: "center"
|
|
25839
26956
|
} },
|
|
25840
26957
|
recommendedFooterLookIds: ["footer-centred-name", "footer-links-row"],
|
|
@@ -25960,21 +27077,18 @@ const curatedSiteStyles = [
|
|
|
25960
27077
|
hoverColorToken: "primary",
|
|
25961
27078
|
typography: "body"
|
|
25962
27079
|
},
|
|
25963
|
-
legal: {
|
|
25964
|
-
|
|
25965
|
-
|
|
25966
|
-
|
|
25967
|
-
|
|
25968
|
-
|
|
25969
|
-
|
|
25970
|
-
|
|
25971
|
-
|
|
25972
|
-
|
|
25973
|
-
|
|
25974
|
-
|
|
25975
|
-
borderTop: { width: "none" }
|
|
25976
|
-
}
|
|
25977
|
-
},
|
|
27080
|
+
legal: { bar: {
|
|
27081
|
+
fullBleed: false,
|
|
27082
|
+
background: {
|
|
27083
|
+
kind: "token",
|
|
27084
|
+
token: "surface"
|
|
27085
|
+
},
|
|
27086
|
+
textColor: "text",
|
|
27087
|
+
textAlign: "left",
|
|
27088
|
+
paddingY: "tight",
|
|
27089
|
+
paddingX: "none",
|
|
27090
|
+
borderTop: { width: "none" }
|
|
27091
|
+
} },
|
|
25978
27092
|
brandAlign: "start",
|
|
25979
27093
|
brandLogoSize: "md"
|
|
25980
27094
|
} },
|
|
@@ -26060,24 +27174,21 @@ const curatedSiteStyles = [
|
|
|
26060
27174
|
hoverColorToken: "primaryForeground",
|
|
26061
27175
|
typography: "body"
|
|
26062
27176
|
},
|
|
26063
|
-
legal: {
|
|
26064
|
-
|
|
26065
|
-
|
|
26066
|
-
|
|
26067
|
-
|
|
26068
|
-
|
|
26069
|
-
|
|
26070
|
-
|
|
26071
|
-
|
|
26072
|
-
|
|
26073
|
-
|
|
26074
|
-
|
|
26075
|
-
|
|
26076
|
-
width: "medium",
|
|
26077
|
-
colorToken: "primaryForeground"
|
|
26078
|
-
}
|
|
27177
|
+
legal: { bar: {
|
|
27178
|
+
fullBleed: false,
|
|
27179
|
+
background: {
|
|
27180
|
+
kind: "style-surface",
|
|
27181
|
+
surface: "deep"
|
|
27182
|
+
},
|
|
27183
|
+
textColor: "primaryForeground",
|
|
27184
|
+
textAlign: "left",
|
|
27185
|
+
paddingY: "compact",
|
|
27186
|
+
paddingX: "none",
|
|
27187
|
+
borderTop: {
|
|
27188
|
+
width: "medium",
|
|
27189
|
+
colorToken: "primaryForeground"
|
|
26079
27190
|
}
|
|
26080
|
-
},
|
|
27191
|
+
} },
|
|
26081
27192
|
brandAlign: "start",
|
|
26082
27193
|
brandLogoSize: "md"
|
|
26083
27194
|
} },
|
|
@@ -26161,24 +27272,21 @@ const curatedSiteStyles = [
|
|
|
26161
27272
|
hoverColorToken: "background",
|
|
26162
27273
|
typography: "body"
|
|
26163
27274
|
},
|
|
26164
|
-
legal: {
|
|
26165
|
-
|
|
26166
|
-
|
|
26167
|
-
|
|
26168
|
-
|
|
26169
|
-
|
|
26170
|
-
|
|
26171
|
-
|
|
26172
|
-
|
|
26173
|
-
|
|
26174
|
-
|
|
26175
|
-
|
|
26176
|
-
|
|
26177
|
-
width: "thin",
|
|
26178
|
-
colorToken: "background"
|
|
26179
|
-
}
|
|
27275
|
+
legal: { bar: {
|
|
27276
|
+
fullBleed: false,
|
|
27277
|
+
background: {
|
|
27278
|
+
kind: "style-surface",
|
|
27279
|
+
surface: "inverse"
|
|
27280
|
+
},
|
|
27281
|
+
textColor: "background",
|
|
27282
|
+
textAlign: "left",
|
|
27283
|
+
paddingY: "compact",
|
|
27284
|
+
paddingX: "none",
|
|
27285
|
+
borderTop: {
|
|
27286
|
+
width: "thin",
|
|
27287
|
+
colorToken: "background"
|
|
26180
27288
|
}
|
|
26181
|
-
},
|
|
27289
|
+
} },
|
|
26182
27290
|
brandAlign: "start",
|
|
26183
27291
|
brandLogoSize: "md"
|
|
26184
27292
|
} },
|
|
@@ -26233,24 +27341,21 @@ const curatedSiteStyles = [
|
|
|
26233
27341
|
hoverColorToken: "text",
|
|
26234
27342
|
typography: "body"
|
|
26235
27343
|
},
|
|
26236
|
-
legal: {
|
|
26237
|
-
|
|
26238
|
-
|
|
26239
|
-
|
|
26240
|
-
|
|
26241
|
-
|
|
26242
|
-
|
|
26243
|
-
|
|
26244
|
-
|
|
26245
|
-
|
|
26246
|
-
|
|
26247
|
-
|
|
26248
|
-
|
|
26249
|
-
width: "thin",
|
|
26250
|
-
colorToken: "border"
|
|
26251
|
-
}
|
|
27344
|
+
legal: { bar: {
|
|
27345
|
+
fullBleed: false,
|
|
27346
|
+
background: {
|
|
27347
|
+
kind: "style-surface",
|
|
27348
|
+
surface: "band"
|
|
27349
|
+
},
|
|
27350
|
+
textColor: "text",
|
|
27351
|
+
textAlign: "left",
|
|
27352
|
+
paddingY: "compact",
|
|
27353
|
+
paddingX: "none",
|
|
27354
|
+
borderTop: {
|
|
27355
|
+
width: "thin",
|
|
27356
|
+
colorToken: "border"
|
|
26252
27357
|
}
|
|
26253
|
-
},
|
|
27358
|
+
} },
|
|
26254
27359
|
brandAlign: "start",
|
|
26255
27360
|
brandLogoSize: "md"
|
|
26256
27361
|
} },
|
|
@@ -26265,6 +27370,75 @@ const curatedSiteStyles = [
|
|
|
26265
27370
|
paletteRecommendation("haven-sage"),
|
|
26266
27371
|
paletteRecommendation("haven-plum")
|
|
26267
27372
|
]
|
|
27373
|
+
}),
|
|
27374
|
+
defineCuratedSiteStyle({
|
|
27375
|
+
id: "site-style:brook",
|
|
27376
|
+
name: "Brook",
|
|
27377
|
+
offering: {
|
|
27378
|
+
kind: "public",
|
|
27379
|
+
generation: { kind: "explicit_only" }
|
|
27380
|
+
},
|
|
27381
|
+
description: "Soft waves where your photos and colour bands meet, hand-drawn squiggles under headings, and calm panels for your classes. For yoga teachers, retreats and wellbeing practices.",
|
|
27382
|
+
generationBrief: "Use calm, warm words in sentence case. Say plainly what happens in a class or retreat, who it suits and what to bring, give real times, prices and places, and avoid wellness cliches and health claims.",
|
|
27383
|
+
headingDecoration: noHeadingDecoration,
|
|
27384
|
+
tokenRecipes: {
|
|
27385
|
+
palette: "warm-neutral",
|
|
27386
|
+
contrast: "standard",
|
|
27387
|
+
radius: "soft",
|
|
27388
|
+
shadow: "none",
|
|
27389
|
+
typography: "classic-serif",
|
|
27390
|
+
spacing: "airy",
|
|
27391
|
+
motion: "subtle"
|
|
27392
|
+
},
|
|
27393
|
+
compositionBudget: balancedBudget,
|
|
27394
|
+
typography: brookTypography,
|
|
27395
|
+
fontPairings: brookFontPairings,
|
|
27396
|
+
looks: brookLooks,
|
|
27397
|
+
themeOverrides: {
|
|
27398
|
+
accordions: editorialDividedAccordionSystem,
|
|
27399
|
+
testimonialQuote: serifDisplayQuote
|
|
27400
|
+
},
|
|
27401
|
+
footerLookRecipes: { "footer-links-row": {
|
|
27402
|
+
arrangement: "simple",
|
|
27403
|
+
ground: {
|
|
27404
|
+
kind: "style-surface",
|
|
27405
|
+
surface: "base"
|
|
27406
|
+
},
|
|
27407
|
+
nav: {
|
|
27408
|
+
weight: "regular",
|
|
27409
|
+
colorToken: "text",
|
|
27410
|
+
hoverColorToken: "primary",
|
|
27411
|
+
typography: "body"
|
|
27412
|
+
},
|
|
27413
|
+
legal: { bar: {
|
|
27414
|
+
fullBleed: false,
|
|
27415
|
+
background: {
|
|
27416
|
+
kind: "style-surface",
|
|
27417
|
+
surface: "base"
|
|
27418
|
+
},
|
|
27419
|
+
textColor: "text",
|
|
27420
|
+
textAlign: "left",
|
|
27421
|
+
paddingY: "compact",
|
|
27422
|
+
paddingX: "none",
|
|
27423
|
+
borderTop: {
|
|
27424
|
+
width: "thin",
|
|
27425
|
+
colorToken: "border"
|
|
27426
|
+
}
|
|
27427
|
+
} },
|
|
27428
|
+
brandAlign: "start",
|
|
27429
|
+
brandLogoSize: "md"
|
|
27430
|
+
} },
|
|
27431
|
+
recommendedFooterLookIds: ["footer-links-row"],
|
|
27432
|
+
buttonStyleChoices: [
|
|
27433
|
+
buttonChoice("pebble"),
|
|
27434
|
+
buttonChoice("showtime-pill"),
|
|
27435
|
+
buttonChoice("flat-ink")
|
|
27436
|
+
],
|
|
27437
|
+
paletteRecommendations: [
|
|
27438
|
+
paletteRecommendation("brook-terracotta"),
|
|
27439
|
+
paletteRecommendation("brook-fell"),
|
|
27440
|
+
paletteRecommendation("brook-dusk")
|
|
27441
|
+
]
|
|
26268
27442
|
})
|
|
26269
27443
|
];
|
|
26270
27444
|
const curatedSiteStylesById = new Map(curatedSiteStyles.map((style) => [style.id, style]));
|
|
@@ -26496,7 +27670,7 @@ function validateLookFallbacks(style, catalogue = appearancePresets.filter(isArr
|
|
|
26496
27670
|
/** Every admitted calendar mode needs an automatic Look before a style can load. */
|
|
26497
27671
|
function validateCalendarModeOffers(style, catalogue = appearancePresets.filter(isArrangementAppearancePreset)) {
|
|
26498
27672
|
const calendarLooks = catalogue.filter((look) => look.blockKinds.includes("block.event-calendar"));
|
|
26499
|
-
arrangementModes.forEach((mode) => {
|
|
27673
|
+
arrangementModes.filter((mode) => mode !== "combined").forEach((mode) => {
|
|
26500
27674
|
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}`);
|
|
26501
27675
|
});
|
|
26502
27676
|
}
|
|
@@ -26633,14 +27807,23 @@ function validateOfferKnobs(style, catalogue) {
|
|
|
26633
27807
|
});
|
|
26634
27808
|
});
|
|
26635
27809
|
}
|
|
26636
|
-
/**
|
|
26637
|
-
function
|
|
26638
|
-
|
|
27810
|
+
/** Ground-keyed shades use their default surface when the section has no measurable paint. */
|
|
27811
|
+
function pickRoleSurface(mapped, ground, base) {
|
|
27812
|
+
if (typeof mapped === "string" || "source" in mapped) return mapped;
|
|
27813
|
+
const picked = mapped[ground] ?? mapped.default;
|
|
27814
|
+
return typeof picked !== "string" && base.kind === "unmeasured" ? mapped.default : picked;
|
|
26639
27815
|
}
|
|
26640
27816
|
/** The declaration selected by a role/ground mapping; shared by preparation and checks. */
|
|
26641
|
-
function itemSurfaceSpec(role, ground, style) {
|
|
26642
|
-
const
|
|
26643
|
-
|
|
27817
|
+
function itemSurfaceSpec(role, ground, style, base) {
|
|
27818
|
+
const name = pickRoleSurface(style.roleMap[role], ground, base);
|
|
27819
|
+
if (typeof name !== "string") {
|
|
27820
|
+
if (base.kind === "unmeasured") throw new Error(`A ${role} shade has no paint to shade on a ${base.paint} section`);
|
|
27821
|
+
return {
|
|
27822
|
+
kind: "tint",
|
|
27823
|
+
base: base.token,
|
|
27824
|
+
...name
|
|
27825
|
+
};
|
|
27826
|
+
}
|
|
26644
27827
|
if (name === "section") return {
|
|
26645
27828
|
kind: "paint",
|
|
26646
27829
|
paint: { kind: "transparent" }
|
|
@@ -26712,6 +27895,26 @@ function selectItemSurfacePresentation(presentation, role) {
|
|
|
26712
27895
|
...presentation.items[role]
|
|
26713
27896
|
} : presentation;
|
|
26714
27897
|
}
|
|
27898
|
+
function lookPresentationSurfaces(presentation) {
|
|
27899
|
+
const branch = (value) => [...Object.values(value.slots), ...Object.values(value.states).flatMap((states) => Object.values(states))];
|
|
27900
|
+
return [...branch(presentation), ...Object.values(presentation.items).flatMap(branch)];
|
|
27901
|
+
}
|
|
27902
|
+
/**
|
|
27903
|
+
* Every surface in the presentation was decided against this palette. Colours are
|
|
27904
|
+
* compared by value, so a transported or re-parsed copy of the same theme still matches.
|
|
27905
|
+
*/
|
|
27906
|
+
function lookPresentationOnPalette(presentation, palette) {
|
|
27907
|
+
return lookPresentationSurfaces(presentation).every((surface) => samePalette(surface.revision.palette, palette));
|
|
27908
|
+
}
|
|
27909
|
+
function samePalette(decided, expected) {
|
|
27910
|
+
return decided === expected || [.../* @__PURE__ */ new Set([...Object.keys(decided), ...Object.keys(expected)])].every((key) => decided[key] === expected[key]);
|
|
27911
|
+
}
|
|
27912
|
+
/** Transport re-certifies from the inputs; a slot that comes back as media was never an arrangement slot. */
|
|
27913
|
+
const parseArrangementSlotSurface = (value) => requireArrangementSlotSurface(parseResolvedSurface(value));
|
|
27914
|
+
function requireArrangementSlotSurface(surface) {
|
|
27915
|
+
if (surface.proof === "unproven-media") throw new Error("Arrangement slot surfaces never paint media");
|
|
27916
|
+
return surface;
|
|
27917
|
+
}
|
|
26715
27918
|
/** Solid tokens retain section semantics; literals/gradients use the solved ink. */
|
|
26716
27919
|
function resolvedSurfaceGround(surface, inherited) {
|
|
26717
27920
|
if (!surface || surface.kind === "inherit") return inherited;
|
|
@@ -26755,7 +27958,7 @@ function resolveSlotBranch(input) {
|
|
|
26755
27958
|
}));
|
|
26756
27959
|
const today = input.look.slotRoles.today;
|
|
26757
27960
|
const under = resolveSlot(input, "group-date");
|
|
26758
|
-
const surface = today ?
|
|
27961
|
+
const surface = today ? applySlotTint(input, "today", today, under).surface : void 0;
|
|
26759
27962
|
return {
|
|
26760
27963
|
slots,
|
|
26761
27964
|
states: surface ? { "group-date": { today: surface } } : {}
|
|
@@ -26766,40 +27969,68 @@ function resolveSlot(input, slot, visiting = []) {
|
|
|
26766
27969
|
const parent = input.parents[slot];
|
|
26767
27970
|
const under = parent ? resolveSlot(input, parent, [...visiting, slot]) : {
|
|
26768
27971
|
ground: input.ground,
|
|
26769
|
-
base: input.base
|
|
27972
|
+
base: input.base,
|
|
27973
|
+
buttonContext: input.style.context.buttonContext
|
|
26770
27974
|
};
|
|
26771
|
-
const
|
|
26772
|
-
const decided = applySlotTint(input, slot, role ? resolveItemSurface(role, under.ground, input.style) : void 0, under);
|
|
27975
|
+
const decided = applySlotTint(input, slot, input.itemRole && itemSlots.includes(slot) ? input.itemRole : input.roles[slot], under);
|
|
26773
27976
|
return {
|
|
26774
27977
|
...decided,
|
|
26775
27978
|
base: surfaceBase(decided.surface, under.base)
|
|
26776
27979
|
};
|
|
26777
27980
|
}
|
|
26778
27981
|
function surfaceBase(surface, inherited) {
|
|
26779
|
-
return surface?.kind === "owned"
|
|
26780
|
-
|
|
26781
|
-
|
|
26782
|
-
|
|
26783
|
-
|
|
27982
|
+
return surface?.kind === "owned" ? {
|
|
27983
|
+
kind: "measured",
|
|
27984
|
+
token: surface.tintBase ?? surface.paint.token
|
|
27985
|
+
} : inherited;
|
|
27986
|
+
}
|
|
27987
|
+
/** Slot tints need a measured paint; shades inherit their enclosing button request and ground. */
|
|
27988
|
+
function applySlotTint(input, slot, role, under) {
|
|
27989
|
+
const spec = role ? itemSurfaceSpec(role, under.ground, input.style, under.base) : void 0;
|
|
27990
|
+
const owned = spec ? resolveSurface(spec, slotContext(spec, under, input.style.context)) : void 0;
|
|
27991
|
+
const tint = activeSlotTint(input, slot, spec);
|
|
27992
|
+
const base = tint?.source === "shade" ? under.base : surfaceBase(owned, under.base);
|
|
27993
|
+
if (!tint || base.kind === "unmeasured") return {
|
|
26784
27994
|
surface: owned,
|
|
26785
|
-
ground: resolvedSurfaceGround(owned, under.ground)
|
|
27995
|
+
ground: resolvedSurfaceGround(owned, under.ground),
|
|
27996
|
+
buttonContext: slotButtonRequest(spec, under, input.style.context)
|
|
26786
27997
|
};
|
|
26787
|
-
const base = owned?.kind === "owned" && owned.paint.kind === "solid" ? owned.paint.token : under.base;
|
|
26788
27998
|
const baseSurface = resolveSurface({
|
|
26789
27999
|
kind: "token",
|
|
26790
|
-
token: base
|
|
28000
|
+
token: base.token
|
|
26791
28001
|
}, input.style.context);
|
|
28002
|
+
const tintSpec = {
|
|
28003
|
+
kind: "tint",
|
|
28004
|
+
base: base.token,
|
|
28005
|
+
source: tint.source,
|
|
28006
|
+
opacity: tint.opacity,
|
|
28007
|
+
gradient: tint.gradient
|
|
28008
|
+
};
|
|
26792
28009
|
return {
|
|
26793
|
-
surface: resolveSurface(
|
|
26794
|
-
|
|
26795
|
-
|
|
26796
|
-
source: tint.source,
|
|
26797
|
-
opacity: tint.opacity,
|
|
26798
|
-
gradient: tint.gradient
|
|
26799
|
-
}, input.style.context),
|
|
26800
|
-
ground: resolvedSurfaceGround(baseSurface, under.ground)
|
|
28010
|
+
surface: resolveSurface(tintSpec, slotContext(tintSpec, under, input.style.context)),
|
|
28011
|
+
buttonContext: slotButtonRequest(tintSpec, under, input.style.context),
|
|
28012
|
+
ground: tint.source === "shade" ? under.ground : resolvedSurfaceGround(baseSurface, under.ground)
|
|
26801
28013
|
};
|
|
26802
28014
|
}
|
|
28015
|
+
/** Only a shade owns paint derived from its ancestor; transparent surfaces keep their canonical inherited decision. */
|
|
28016
|
+
function slotContext(spec, under, context) {
|
|
28017
|
+
return spec.kind === "tint" && spec.source === "shade" ? {
|
|
28018
|
+
...context,
|
|
28019
|
+
buttonContext: under.buttonContext
|
|
28020
|
+
} : context;
|
|
28021
|
+
}
|
|
28022
|
+
/** What a slot hands its descendants: the resolver's request, never its already-checked button styles. */
|
|
28023
|
+
function slotButtonRequest(spec, under, context) {
|
|
28024
|
+
if (!spec || spec.kind === "paint" && spec.paint.kind === "transparent") return under.buttonContext;
|
|
28025
|
+
return surfaceButtonRequest(spec, slotContext(spec, under, context));
|
|
28026
|
+
}
|
|
28027
|
+
/** Explicit enabled slot tints override the role's default paint. */
|
|
28028
|
+
function activeSlotTint(input, slot, spec) {
|
|
28029
|
+
const tint = input.look.surfaceTints?.[slot];
|
|
28030
|
+
if (!tint) return spec?.kind === "tint" ? spec : void 0;
|
|
28031
|
+
if (tint.knob && input.content?.[tint.knob] !== true) return void 0;
|
|
28032
|
+
return tint;
|
|
28033
|
+
}
|
|
26803
28034
|
const itemSlots = [
|
|
26804
28035
|
"item",
|
|
26805
28036
|
"lead",
|
|
@@ -26817,4 +28048,4 @@ function slotAssignments({ look, slotRoles, itemRoles }) {
|
|
|
26817
28048
|
};
|
|
26818
28049
|
}
|
|
26819
28050
|
//#endregion
|
|
26820
|
-
export {
|
|
28051
|
+
export { parseCustomCssRules as $, DEFAULT_SURFACE_TEXT_COLOR as $i, boxBackgroundSchema as $n, offeringsPreviewCompositionTreatmentValues as $r, logoDensityValues as $t, curatedSiteStylesById as A, PUBLIC_BUTTON_ROLES as Aa, mergeStyles as Ai, fieldGroundTokens as An, arrangementModes as Ar, loomTypography as At, generateHeaderScrollTreatmentStyles as B, safeTokenOr as Bi, sectionTransitionFamilies as Bn, defineBlockDesignCapability as Br, generatedDesignOptionCatalog as Bt, resolvePublishedLook as C, buttonTypographyDeclarations as Ca, isCssColorLiteral as Ci, resolveCardRole as Cn, isLookSettingFact as Cr, groundedSerifTypography as Ct, SOFT_EARTH_SITE_STYLE_ID_VALUE as D, DEFAULT_BUTTON_SIZES as Da, backgroundColorStyle as Di, composeBoundary as Dn, accordionIconColorTokenValues as Dr, lanternFontPairings as Dt, normalizeLayoutVariantForPolicy as E, BORDER_WIDTH_MAP as Ea, resolveTokenOrCssColorValue as Ei, boundaryLayout as En, lookSettingFacts as Er, kirtanOrnateTypography as Et, defaultDesignRuntimeRules as F, persistableMediaSchema as Fa, opaqueSurfaceContextFromTheme as Fi, validateSectionSurfaces as Fn, asDesignSystemTemplateId as Fr, originalJoyTypography as Ft, MQ_MD_DOWN as G, inkReference as Gi, deriveSectionGround as Gn, featureCardCompositionTreatmentValues as Gr, surfaceCardRoleValues as Gt, getHeaderPaintTargets as H, HOVER_TEXT_THRESHOLD as Hi, transitionCatalogueEntries as Hn, defineFrameCapability as Hr, cardRoleSchema as Ht, defineComponentRuntimeRules as I, runtimeMediaSchema as Ia, opaqueSurfaceDeclarations as Ii, boundaryOptionForTransitionIntent as In, asLayoutVariantKey as Ir, poiseTypography as It, MQ_TABLET_ONLY as J, _classPrivateFieldSet2 as Ji, resolveSectionForeground as Jn, headingDecorationOverrideValues as Jr, brandDisplayModeValues as Jt, MQ_SM_DOWN as K, solveSurfaceInks as Ki, parseCanonicalRuntimeBackground as Kn, flushPanelFrame as Kr, asFooterLookId as Kt, defineDesignRuntimeRules as L, selectLogoVariant as Li, boundaryOptions as Ln, asPageFlowPresetId as Lr, posterFontPairings as Lt, requireCuratedSiteStyle as M, freezeOwnedThemeValue as Ma, surfaceRoleForTextToken as Mi, sectionShapeFromContent as Mn, asBoundaryOptionId as Mr, measureTypography as Mt, compiledRuntimeStyleFieldNames as N, ownedThemeSnapshot as Na, textColorStyle as Ni, sectionShapeHook as Nn, asDesignBlockId as Nr, modernSansTypography as Nt, UnavailableSiteStyleError as O, FONT_SIZE_MAP as Oa, borderColorStyle as Oi, frameNotShownReason as On, accordionIconMotionValues as Or, lanternTypography as Ot, defaultComponentRuntimeRules as P, mediaSchema as Pa, textColorValue as Pi, validateBookingBarSurface as Pn, asDesignBoundaryId as Pr, originalJoyHeroTypography as Pt, parseBlockCustomCssRules as Q, TokenResolver as Qi, boxBackgroundOverlaySchema as Qn, noHeadingDecoration as Qr, logoContainsTextSchema as Qt, defineSectionForegroundRuntimeTokens as R, surfaceToneFromForegroundToken as Ri, boundaryRuntimeMetricsForDecorativeTransition as Rn, asSiteStyleId as Rr, posterTypography as Rt, resolveModeArrangement as S, buttonStateAppearanceDeclarations as Sa, formatButtonColourContractError as Si, bookingPageLookIdValues as Sn, isArrangementAppearancePreset as Sr, groundedSerifHeroTypography as St, isLayoutVariantAllowedByPolicy as T, paddingDeclarations as Ta, resolveThemeColorReferenceValue as Ti, boundaryEndpointForSectionContent as Tn, lookModes as Tr, kirtanOrnateHeroTypography as Tt, renderHeaderPaintTargetRules as U, certifyPaint as Ui, transitionCatalogueFamilies as Un, eventListTreatmentValues as Ur, cardVariantRoleValues as Ut, generateMobileOverlayBackdropFilterFix as V, surfaceInkPublication as Vi, anglePolygonCss as Vn, defineExactCatalog as Vr, userDesignOptionCatalog as Vt, MQ_LG_UP as W, contrastThresholdByPolicy as Wi, applyLookPhotoTreatment as Wn, eyebrowTreatmentValues as Wr, normalizeCardRole as Wt, getComponentBorderWidthPx as X, getTextColorForBackground as Xi, sectionSurfaceBase as Xn, isArrangementMode as Xr, logoAnalysisSourceSchema as Xt, headerVariantValues as Y, expandPalette as Yi, sectionForegroundBackground as Yn, introCompositionTreatmentValues as Yr, logoAccommodationPatternValues as Yt, getComponentShadowVar as Z, planForegroundHover as Zi, solidTokenGround as Zn, makeBoundaryId as Zr, logoAssetShapeValues as Zt, validateCalendarModeOffers as _, rgbToHex as _a, surfaceTransportContext as _i, navLinkOwnsUnderline as _n, cardListFamilyBlocks as _r, editorialSerifTypography as _t, resolvedSurfaceGround as a, surfaceForegroundValue as aa, tileTreatmentValues as ai, STYLE_AXIS_VALUES as an, themeV2BlockSpecificRawStyleFieldNames as ar, ACCORDION_SPACING_MAP as at, readStoredMode as b, buttonRadius as ba, compileButtonColourStates as bi, bookingLookColourSpecs as bn, defineArrangementLook as br, fulcrumFontPairings as bt, heroPhotoPaintsGround as c, surfaceInkStyle as ca, isResolvedSurface as ci, generateFooterCss as cn, themeV2RuntimeStyleFieldNames as cr, ICON_CONFIG as ct, storedSectionPhoto as d, contrastRatio as da, requireResolvedSurface as di, buildTextContrastShadow as dn, blockAppearancePresets as dr, boldDisplayHeroTypography as dt, SURFACE_FOREGROUND_CSS_VARS as ea, panelFrame as ei, logoKindValues as en, runtimeBoxBackgroundSchema as er, FONT_WEIGHT_MAP as et, arrangementAppearancePresets as f, _classPrivateFieldInitSpec as fa, resolveSurface as fi, generateNavLinkCSS as fn, defineBlockAppearancePreset as fr, boldDisplayTypography as ft, lookDefinitionForId as g, oklchToHexGamut as ga, surfaceDecorationColors as gi, navLinkOwnsHoverForeground as gn, cardListBlockParts as gr, defaultTypographyForRecipe as gt, itemSurfaceSpec as h, oklabToSrgb as ha, surfaceButtonRequest as hi, navLinkHoverColorCandidate as hn, sketch as hr, classicSerifTypography as ht, resolveLookSurfacePresentation as i, surfaceForegroundStyle as ia, testimonialsCompositionTreatmentValues as ii, asHeaderStyleId as in, stripStaleTransitionStyleGroup as ir, ACCORDION_OPEN_ACCENT_THICKNESS as it, getCuratedSiteStyle as j, mapButtonVisualAppearances as ja, rgbColorValue as ji, sectionShapeForGround as jn, asAppearancePresetId as jr, measureFontPairings as jt, curatedSiteStyles as k, generateShadowValue as ka, cssVarValue as ki, sectionFactsForContent as kn, accordionIconSetValues as kr, loomFontPairings as kt, mergeHeaderNavTypographyPreference as l, resolveConcreteColorHex as la, parseResolvedSurface as li, footerForegroundCandidates as ln, defineBlockDesignMetadata as lr, ICON_SIZE_PX as lt, arrangementSlotNames as m, oklabToOklch as ma, serializeSurfaceTree as mi, generateInteractiveChildInheritanceCSS as mn, resolveEffectiveKnobs as mr, brookTypography as mt, lookPresentationSurfaces as n, surfaceForegroundDeclarations as na, requireNonEmptyReadonlyArray as ni, logoTextConfidenceValues as nn, pageDesignEditorBackgroundOverrideOwner as nr, INPUT_SPACING_MAP as nt, selectItemSurfacePresentation as o, surfaceForegroundValueWithOpacity as oa, toNonEmptyReadonlyArray as oi, styleTagsSchema as on, themeV2CompilerOwnedFieldNames as or, ACCORDION_TRIGGER_FONT_SCALE as ot, arrangementLookHooks as p, hexToRgb as pa, serializeResolvedSurface as pi, generateEffectsCSS as pn, defineLookOptionGroup as pr, brookFontPairings as pt, MQ_SM_UP as q, _classPrivateFieldGet2 as qi, resolveSectionBackground as qn, headingDecorationColorTokenValues as qr, footerLookCatalog as qt, parseArrangementSlotSurface as r, surfaceForegroundInputFromResolved as ra, sectionBackgroundPaintValues as ri, asHeaderLayoutId as rn, siteChromeBackgroundOverrideOwner as rr, LABEL_FONT_SIZE_MAP as rt, arrangementPhotoUse as s, surfaceInkDeclarations as sa, visibleHeadingDecorationFamilyValues as si, validateFooterRecipeSurfaces as sn, themeV2NormalEditorRawStyleFieldNames as sr, ACCORDION_TRIGGER_LETTER_SPACING as st, lookPresentationOnPalette as t, SURFACE_INK_CSS_VARS as ta, plainFrame as ti, logoSizePolicyValues as tn, isStaleTransitionStyleGroup as tr, INPUT_FONT_SIZE_MAP as tt, readHeaderNavFontSizePreference as u, resolveOpaqueSurfaceHex as ua, parseSurfaceTree as ui, getNavLinkPreset as un, appearancePresets as ur, skinTokenCssVars as ut, validateLookFallbacks as v, srgbToOklab as va, compositeHex as vi, defaultFooterLookRecipes as vn, cardListKnobBlocks as vr, folioFontPairings as vt, deriveSiteStyleBlockPolicy as w, materializeRuntimeButtonAppearance as wa, resolveOnColorForThemeToken as wi, generateDefaultCardSystem as wn, lookKnobBlocks as wr, havenTypography as wt, resolveEffectiveArrangement as x, buttonShadow as xa, BUTTON_CONTRAST_POLICY as xi, bookingLookGroundLimits as xn, defineCardListLook as xr, fulcrumTypography as xt, arrangementManifestFromVariants as y, buttonBorder as ya, actionVariableFallback as yi, resolveFooterLookRecipe as yn, cardListKnobDefaults as yr, folioTypography as yt, themeSchema as z, resolveSurfaceForeground as zi, noneBoundaryOption as zn, assertNever as zr, warmRoundedTypography as zt };
|