@riverbankcms/sdk 0.181.0 → 0.182.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
- package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-B2EAT-bE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
- package/dist/_dts/{client-Chr9pNVW.d.ts → client-D6T430bk.d.ts} +1 -3
- package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-wZVWccC6.d.ts} +2 -2
- package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
- package/dist/_dts/{index-Brl6_I2j.d.ts → index-CEyYMhLJ.d.ts} +1 -1
- package/dist/_dts/{index-DG0OvBs0.d.ts → index-CQrb3Ccc.d.ts} +4 -4
- package/dist/_dts/{index-Dy50xUMK.d.ts → index-CciRW_w1.d.ts} +2 -2
- package/dist/_dts/{index-Diqt0PvG.d.ts → index-Cqxis-nv.d.ts} +1 -1
- package/dist/_dts/{index-CJkefwYh.d.ts → index-DIU-wL1M.d.ts} +2 -2
- package/dist/_dts/{index-D1WpKwQe.d.ts → index-DqPKdeTk.d.ts} +1 -1
- package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
- package/dist/_dts/{request-CA0izds5.d.ts → request-DEwxUSw8.d.ts} +130 -28
- package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +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 +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
- package/dist/_dts/{types-CgS3xLk8.d.ts → types-B3RjeBLV.d.ts} +2 -2
- package/dist/_dts/{types-CQrsP1x_.d.ts → types-BvUSGQrw.d.ts} +3 -3
- package/dist/_dts/{types-R65DKjPn.d.ts → types-CkRFtBqd.d.ts} +7 -7
- package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-7kdvuPow.mjs} +6 -6
- package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-BJI7mZuV.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +4 -4
- package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-Dhb14bcC.mjs} +9 -9
- package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-C1jEZBN9.mjs} +8 -8
- package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Bb0ppG2N.mjs} +8 -176
- package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
- package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
- package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-DsqvuulZ.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +31 -164
- package/dist/client/{Page-C7mygH_f.mjs → Page-sV6BJkXX.mjs} +172 -102
- package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +2 -2
- package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
- package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-BTqO7cJl.mjs} +220 -19
- package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-BogaGutk.mjs} +966 -693
- package/dist/client/{accordion-CsW8U3ff.mjs → accordion-6cuswD_s.mjs} +1 -1
- package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-BOMe_SKi.mjs} +15 -15
- package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
- package/dist/client/{carousel-DJoleFV3.mjs → carousel-CGyQVV1M.mjs} +1 -1
- package/dist/client/{cart-EO5o6uPH.mjs → cart-BYOe7MCh.mjs} +3 -3
- package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-BKFkaXdV.mjs} +1 -1
- package/dist/client/{checkout-NVfZW0kR.mjs → checkout-Dwd7Di77.mjs} +3 -3
- package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-C25hpi-z.mjs} +1 -1
- package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
- package/dist/client/client.mjs +25 -6
- package/dist/client/{constants-CoOkvw__.mjs → constants-DdxFG3Ic.mjs} +1 -1
- package/dist/client/{context-CRhn9qzS.mjs → context-Hi1RuYEM.mjs} +23 -5
- package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-C8vBCHuo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +3 -3
- package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-dB_Z7bb-.mjs} +12 -12
- package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
- package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
- package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-DSVmhy9n.mjs} +4 -4
- package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
- package/dist/client/{form-DM8Zbxbv.mjs → form-DWnlEVSK.mjs} +3 -3
- package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-D7zmeqNI.mjs} +4 -4
- package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-C-G6N_MK.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-DWIsqQru.mjs → gifting-Cn0jidP5.mjs} +4 -4
- package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client-DVo1YFLs.mjs} +4 -4
- package/dist/client/{gifting.parts-CedLgwa_.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
- package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-DjQuj_6v.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-rIYPziZC.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-DVt3enLr.mjs} +162 -135
- package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CH6dGfdn.mjs} +1 -1
- package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
- package/dist/client/{noop-Dl4mZ-rr.mjs → noop-jesvJXEE.mjs} +239 -229
- package/dist/client/portal/client.mjs +269 -83
- package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-oEoTvzkW.mjs} +1 -1
- package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-ByyVZfVq.mjs} +13 -2
- package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
- package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
- package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
- package/dist/client/{productList-CiRs3mNb.mjs → productList-BuLemmod.mjs} +3 -3
- package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
- package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-DzvtVVD0.mjs} +352 -166
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-Bnng7JFA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
- package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
- package/dist/client/{runtimeResponse-DL_ARBpa.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
- package/dist/client/{shop-Rx_gEMK8.mjs → shop-GuMqnDL-.mjs} +3 -3
- package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-D5bDY1o1.mjs} +12 -12
- package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-B7sHnLwI.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
- package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-uvj5GDZb.mjs} +11 -11
- package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-3giNWE3H.mjs} +2 -2
- package/dist/client/{src-ZSqRK3dD.mjs → src-CmXh3JWs.mjs} +5 -1
- package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-GA-hn1qM.mjs} +8 -15
- package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
- package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-xX8n_Tuu.mjs} +7 -7
- package/dist/client/{view-CC_yQLSA.mjs → view-DOyZc-DF.mjs} +3 -3
- package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-B952ify5.mjs} +303 -31
- package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
- package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +44 -17
- package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-BgiYk3PB.mjs} +2577 -1683
- package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-BlN0jt2c.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BVfr5P--.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-R3PcMmax.mjs → route-contract-BHTBA48n.mjs} +20 -1
- package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-BfUCTOwj.mjs} +37 -25
- package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -361
- package/dist/server/{bindings-DxojjtK3.mjs → bindings-DMJH4bvo.mjs} +4 -4
- package/dist/server/{client-CDndhbYO.mjs → client-DrwlRNAH.mjs} +22 -3
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-VyF5nEhL.mjs → constants-CeMywaiD.mjs} +11 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-ehuW8r2g.mjs} +769 -227
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-D0prFflT.mjs} +4 -4
- package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-CBLke9pJ.mjs} +3 -3
- package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-H0fi4bJk.mjs} +2 -2
- package/dist/server/{navigation-quBYlSKD.mjs → navigation-wrcuWmgp.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-BHrmogsW.mjs} +161 -244
- package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-D2-YMRei.mjs} +1 -1
- package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-CG8O31Eo.mjs} +1265 -1032
- package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +1 -1
- package/dist/server/{portal-CMW_b9mG.mjs → portal-pG_uhsI2.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-C8Amvzce.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-BxUETRIZ.mjs} +2 -2
- package/dist/server/{registry-DM9dHfDC.mjs → registry-Cc88-23f.mjs} +1173 -745
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-OG3KOkig.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-BcFuhhD7.mjs} +5 -5
- package/dist/server/theme-bridge.mjs +33 -8
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-DG5jX3jH.mjs → validation-BovmbS8N.mjs} +3 -3
- package/dist/server/{version-CipbxPHL.mjs → version-hws4hgyX.mjs} +1 -1
- package/dist/styles/index.css +86 -46
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as accordionIconColorTokenValues, G as imageMediaSchema, K as mediaSchema, U as assetMediaSchema, W as externalMediaSchema, Y as videoMediaSchema, at as eyebrowTreatmentValues, ct as isArrangementMode, et as accordionIconMotionValues, it as eventListTreatmentValues, lt as tileTreatmentValues, nt as arrangementModes, ot as headingDecorationColorTokenValues, rt as decorativeTransitionIntentValues, st as headingDecorationOverrideValues, tt as accordionIconSetValues, ut as visibleHeadingDecorationFamilyValues } from "./src-
|
|
2
|
+
import { $ as accordionIconColorTokenValues, G as imageMediaSchema, K as mediaSchema, U as assetMediaSchema, W as externalMediaSchema, Y as videoMediaSchema, at as eyebrowTreatmentValues, ct as isArrangementMode, et as accordionIconMotionValues, it as eventListTreatmentValues, lt as tileTreatmentValues, nt as arrangementModes, ot as headingDecorationColorTokenValues, rt as decorativeTransitionIntentValues, st as headingDecorationOverrideValues, tt as accordionIconSetValues, ut as visibleHeadingDecorationFamilyValues } from "./src-CmXh3JWs.mjs";
|
|
3
3
|
import { C as paletteModeSchema, E as themeColorTokenSchema, O as VARIANT_ROLES, S as paletteColorsSchema, T as parseThemeColorToken, _ as hexColorSchema, b as paletteColorEntries, c as buttonEffectApplicationSchema, f as buttonVisualStatesSchema, l as buttonPressOffsetSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, v as isThemeColorToken, w as parseColorTokenParts, x as paletteColorsFromEntries } from "./types-BEaKfam_.mjs";
|
|
4
|
-
import { Ct as
|
|
4
|
+
import { $ as resolveSurfaceForeground, Ct as resolveConcreteColorHex, D as ELEVATION_OFFSET, Dt as paletteInkRoles, Et as paletteInk, H as rgbColorValue, It as hexLuminance, J as expandPalette, Lt as luminanceInterval, M as mapButtonRoleAppearances, Mt as paletteValueKeySchema, N as mapButtonVisualAppearances, Nt as requirePaletteColorsFromEntries, Ot as paletteInkToken, Q as scrimTone, Rt as preparePaletteColourIndex, St as ownedThemeSnapshot, Vt as featuresFromHex, X as gradientScrimSamples, Y as compositeHex, Z as minimumScrimOpacity, a as requireResolvedSurface, c as surfaceButtonRequest, d as toAccessibleColorSurfaceIntent, dt as SURFACE_FOREGROUND_CSS_VARS, ft as SURFACE_INK_CSS_VARS, g as BUTTON_CONTRAST_POLICY, gt as surfaceForegroundValue, i as prepareThemeSurfaceRevision, j as defineButtonStyleRecipe, jt as paletteValueKey, o as resolveSurface, p as contextualButtonSurfaceResetStyles, pt as surfaceForegroundDeclarations, st as contrastThresholdByPolicy, t as parseResolvedSurface, u as surfaceTransportContext, vt as surfaceInkDeclarations, wt as resolveOpaqueSurfaceHex, xt as freezeOwnedThemeValue } from "./accessibleSurfaces-BogaGutk.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../site-contracts/src/identity/designIds.ts
|
|
7
7
|
function asDesignBlockId(value) {
|
|
@@ -5508,7 +5508,7 @@ function applyLookPhotoTreatment(background, treatment, palette, tint = "dark",
|
|
|
5508
5508
|
return darkPhotoTreatment(background, palette, placement);
|
|
5509
5509
|
}
|
|
5510
5510
|
function darkPhotoTreatment(background, palette, placement, brandWash) {
|
|
5511
|
-
const ink =
|
|
5511
|
+
const ink = photoCopyInk(palette);
|
|
5512
5512
|
return {
|
|
5513
5513
|
...background,
|
|
5514
5514
|
overlay: {
|
|
@@ -5522,14 +5522,24 @@ function darkPhotoTreatment(background, palette, placement, brandWash) {
|
|
|
5522
5522
|
supportingColor: ink
|
|
5523
5523
|
};
|
|
5524
5524
|
}
|
|
5525
|
+
/**
|
|
5526
|
+
* The least black any photo copy band puts behind its text: the centred band's
|
|
5527
|
+
* even 60%. The foot band is at least 76% where its copy sits and the foot
|
|
5528
|
+
* brand paint 80% (under a wash no lighter than 28% black), so 60% bounds all three.
|
|
5529
|
+
*/
|
|
5530
|
+
const PHOTO_COPY_MIN_SHADE = .6;
|
|
5525
5531
|
/** Centred copy gets an even 60% band (white text over a white photo stays above 5.5:1) that eases off at the edges; the foot keeps its original paint. */
|
|
5526
5532
|
function photoCopyShade(placement, brandWash) {
|
|
5527
5533
|
if (placement === "foot" && brandWash) return `linear-gradient(${brandWash}, ${brandWash}), linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8))`;
|
|
5528
|
-
|
|
5534
|
+
const band = `rgba(0,0,0,${PHOTO_COPY_MIN_SHADE})`;
|
|
5535
|
+
return `var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), ${placement === "centre" ? `linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, ${band} 15%, ${band} 85%, rgba(0,0,0,0.15) 100%)` : "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%)"}${brandWash ? `, linear-gradient(${brandWash}, ${brandWash})` : ""}`;
|
|
5529
5536
|
}
|
|
5530
|
-
/**
|
|
5531
|
-
|
|
5532
|
-
|
|
5537
|
+
/** Every pixel behind photo copy: anything from black up to the minimum shade over a white photo. */
|
|
5538
|
+
const PHOTO_COPY_PAINT = luminanceInterval(0, hexLuminance(compositeHex("#000000", PHOTO_COPY_MIN_SHADE, "#ffffff")));
|
|
5539
|
+
/** The palette's own light colour (its background, or its text on a dark palette) when it reads over the copy band, else white. */
|
|
5540
|
+
function photoCopyInk(palette) {
|
|
5541
|
+
const ink = paletteInk(PHOTO_COPY_PAINT, paletteInkRoles(palette));
|
|
5542
|
+
return ink.kind === "unpaintable" ? "#FFFFFF" : paletteInkToken(ink);
|
|
5533
5543
|
}
|
|
5534
5544
|
/** A light brand's dark ink cannot sit on unknown pixels: give light ink a dark backing. */
|
|
5535
5545
|
function brandPhotoTreatment(background, treatment, palette, placement) {
|
|
@@ -6202,6 +6212,227 @@ function validateBookingBarSurface(skin, bookingBar, surfaces) {
|
|
|
6202
6212
|
if (bookingBar === void 0) return;
|
|
6203
6213
|
if (surfaces[bookingBar.surface]?.kind !== "token") throw new Error(`Booking bar for ${skin} needs a declared token surface: ${bookingBar.surface}`);
|
|
6204
6214
|
}
|
|
6215
|
+
//#endregion
|
|
6216
|
+
//#region ../theme-core/src/gradients/presets.ts
|
|
6217
|
+
/**
|
|
6218
|
+
* Curated gradient presets based on theme palette
|
|
6219
|
+
*/
|
|
6220
|
+
const gradientPresetData = {
|
|
6221
|
+
"primary-secondary": {
|
|
6222
|
+
name: "Primary to Secondary",
|
|
6223
|
+
description: "Blend your primary and secondary brand colors",
|
|
6224
|
+
type: "linear",
|
|
6225
|
+
angle: 135,
|
|
6226
|
+
stops: [{
|
|
6227
|
+
color: "primary-500",
|
|
6228
|
+
position: 0
|
|
6229
|
+
}, {
|
|
6230
|
+
color: "secondary-500",
|
|
6231
|
+
position: 100
|
|
6232
|
+
}]
|
|
6233
|
+
},
|
|
6234
|
+
"primary-accent": {
|
|
6235
|
+
name: "Primary to Accent",
|
|
6236
|
+
description: "Energetic gradient from primary to accent",
|
|
6237
|
+
type: "linear",
|
|
6238
|
+
angle: 135,
|
|
6239
|
+
stops: [{
|
|
6240
|
+
color: "primary-500",
|
|
6241
|
+
position: 0
|
|
6242
|
+
}, {
|
|
6243
|
+
color: "accent-500",
|
|
6244
|
+
position: 100
|
|
6245
|
+
}]
|
|
6246
|
+
},
|
|
6247
|
+
"secondary-accent": {
|
|
6248
|
+
name: "Secondary to Accent",
|
|
6249
|
+
description: "Vibrant secondary to accent blend",
|
|
6250
|
+
type: "linear",
|
|
6251
|
+
angle: 135,
|
|
6252
|
+
stops: [{
|
|
6253
|
+
color: "secondary-500",
|
|
6254
|
+
position: 0
|
|
6255
|
+
}, {
|
|
6256
|
+
color: "accent-500",
|
|
6257
|
+
position: 100
|
|
6258
|
+
}]
|
|
6259
|
+
},
|
|
6260
|
+
"primary-light-dark": {
|
|
6261
|
+
name: "Primary Light to Dark",
|
|
6262
|
+
description: "Subtle primary color fade",
|
|
6263
|
+
type: "linear",
|
|
6264
|
+
angle: 180,
|
|
6265
|
+
stops: [{
|
|
6266
|
+
color: "primary-500",
|
|
6267
|
+
position: 0
|
|
6268
|
+
}, {
|
|
6269
|
+
color: "primary-900",
|
|
6270
|
+
position: 100
|
|
6271
|
+
}]
|
|
6272
|
+
},
|
|
6273
|
+
"primary-dark-light": {
|
|
6274
|
+
name: "Primary Dark to Light",
|
|
6275
|
+
description: "Reverse primary fade",
|
|
6276
|
+
type: "linear",
|
|
6277
|
+
angle: 180,
|
|
6278
|
+
stops: [{
|
|
6279
|
+
color: "primary-900",
|
|
6280
|
+
position: 0
|
|
6281
|
+
}, {
|
|
6282
|
+
color: "primary-50",
|
|
6283
|
+
position: 100
|
|
6284
|
+
}]
|
|
6285
|
+
},
|
|
6286
|
+
"secondary-light-dark": {
|
|
6287
|
+
name: "Secondary Light to Dark",
|
|
6288
|
+
description: "Subtle secondary color fade",
|
|
6289
|
+
type: "linear",
|
|
6290
|
+
angle: 180,
|
|
6291
|
+
stops: [{
|
|
6292
|
+
color: "secondary-500",
|
|
6293
|
+
position: 0
|
|
6294
|
+
}, {
|
|
6295
|
+
color: "secondary-900",
|
|
6296
|
+
position: 100
|
|
6297
|
+
}]
|
|
6298
|
+
},
|
|
6299
|
+
"accent-light-dark": {
|
|
6300
|
+
name: "Accent Light to Dark",
|
|
6301
|
+
description: "Accent color depth fade",
|
|
6302
|
+
type: "linear",
|
|
6303
|
+
angle: 180,
|
|
6304
|
+
stops: [{
|
|
6305
|
+
color: "accent-500",
|
|
6306
|
+
position: 0
|
|
6307
|
+
}, {
|
|
6308
|
+
color: "accent-900",
|
|
6309
|
+
position: 100
|
|
6310
|
+
}]
|
|
6311
|
+
},
|
|
6312
|
+
"background-surface": {
|
|
6313
|
+
name: "Background to Surface",
|
|
6314
|
+
description: "Subtle depth using base colors",
|
|
6315
|
+
type: "linear",
|
|
6316
|
+
angle: 180,
|
|
6317
|
+
stops: [{
|
|
6318
|
+
color: "background",
|
|
6319
|
+
position: 0
|
|
6320
|
+
}, {
|
|
6321
|
+
color: "surface",
|
|
6322
|
+
position: 100
|
|
6323
|
+
}]
|
|
6324
|
+
},
|
|
6325
|
+
"neutral-fade": {
|
|
6326
|
+
name: "Neutral Gradient",
|
|
6327
|
+
description: "Elegant neutral color fade",
|
|
6328
|
+
type: "linear",
|
|
6329
|
+
angle: 180,
|
|
6330
|
+
stops: [{
|
|
6331
|
+
color: "neutral-900",
|
|
6332
|
+
position: 0
|
|
6333
|
+
}, {
|
|
6334
|
+
color: "neutral-50",
|
|
6335
|
+
position: 100
|
|
6336
|
+
}]
|
|
6337
|
+
},
|
|
6338
|
+
"primary-glow": {
|
|
6339
|
+
name: "Primary glow",
|
|
6340
|
+
description: "A soft top-centred glow using your primary palette",
|
|
6341
|
+
type: "radial",
|
|
6342
|
+
shape: "ellipse",
|
|
6343
|
+
position: "top center",
|
|
6344
|
+
stops: [{
|
|
6345
|
+
color: "primary-900",
|
|
6346
|
+
position: 0
|
|
6347
|
+
}, {
|
|
6348
|
+
color: "primary-950",
|
|
6349
|
+
position: 100
|
|
6350
|
+
}],
|
|
6351
|
+
foreground: {
|
|
6352
|
+
textColor: "onPrimary900",
|
|
6353
|
+
headingColor: "onPrimary900",
|
|
6354
|
+
linkColor: "onPrimary900",
|
|
6355
|
+
supportingColor: "onPrimary900"
|
|
6356
|
+
}
|
|
6357
|
+
},
|
|
6358
|
+
"accent-glow": {
|
|
6359
|
+
name: "Accent glow",
|
|
6360
|
+
description: "A soft top-centred glow using your accent palette",
|
|
6361
|
+
type: "radial",
|
|
6362
|
+
shape: "ellipse",
|
|
6363
|
+
position: "top center",
|
|
6364
|
+
stops: [{
|
|
6365
|
+
color: "accent-900",
|
|
6366
|
+
position: 0
|
|
6367
|
+
}, {
|
|
6368
|
+
color: "accent-950",
|
|
6369
|
+
position: 100
|
|
6370
|
+
}],
|
|
6371
|
+
foreground: {
|
|
6372
|
+
textColor: "onAccent900",
|
|
6373
|
+
headingColor: "onAccent900",
|
|
6374
|
+
linkColor: "onAccent900",
|
|
6375
|
+
supportingColor: "onAccent900"
|
|
6376
|
+
}
|
|
6377
|
+
},
|
|
6378
|
+
"primary-secondary-accent": {
|
|
6379
|
+
name: "Brand Trio",
|
|
6380
|
+
description: "All three brand colors in harmony",
|
|
6381
|
+
type: "linear",
|
|
6382
|
+
angle: 135,
|
|
6383
|
+
stops: [
|
|
6384
|
+
{
|
|
6385
|
+
color: "primary-500",
|
|
6386
|
+
position: 0
|
|
6387
|
+
},
|
|
6388
|
+
{
|
|
6389
|
+
color: "secondary-500",
|
|
6390
|
+
position: 50
|
|
6391
|
+
},
|
|
6392
|
+
{
|
|
6393
|
+
color: "accent-500",
|
|
6394
|
+
position: 100
|
|
6395
|
+
}
|
|
6396
|
+
]
|
|
6397
|
+
}
|
|
6398
|
+
};
|
|
6399
|
+
const presetData = (id) => gradientPresetData[id];
|
|
6400
|
+
/**
|
|
6401
|
+
* Curated library of gradient presets.
|
|
6402
|
+
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
6403
|
+
*/
|
|
6404
|
+
const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
|
|
6405
|
+
id,
|
|
6406
|
+
...presetData(id)
|
|
6407
|
+
}));
|
|
6408
|
+
const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
|
|
6409
|
+
function getGradientPreset(id) {
|
|
6410
|
+
return gradientPresetById[id];
|
|
6411
|
+
}
|
|
6412
|
+
//#endregion
|
|
6413
|
+
//#region ../theme-core/src/gradients/utils.ts
|
|
6414
|
+
/**
|
|
6415
|
+
* Convert a GradientConfig to a CSS gradient string
|
|
6416
|
+
*
|
|
6417
|
+
* @param config - The gradient configuration using theme tokens
|
|
6418
|
+
* @param tokens - Map of theme color tokens to hex values
|
|
6419
|
+
* @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
|
|
6420
|
+
*/
|
|
6421
|
+
function gradientToCss(config, tokens) {
|
|
6422
|
+
const stops = config.stops.map((stop) => {
|
|
6423
|
+
return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
|
|
6424
|
+
}).join(", ");
|
|
6425
|
+
const type = config.type ?? "linear";
|
|
6426
|
+
if (type === "radial") {
|
|
6427
|
+
const position = config.position ?? "center";
|
|
6428
|
+
return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
|
|
6429
|
+
}
|
|
6430
|
+
if (type === "conic") {
|
|
6431
|
+
const position = config.position ?? "center";
|
|
6432
|
+
return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
|
|
6433
|
+
}
|
|
6434
|
+
return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
|
|
6435
|
+
}
|
|
6205
6436
|
const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
|
|
6206
6437
|
kind: z.literal("user-pinned"),
|
|
6207
6438
|
value: z.string().min(1).transform(asAppearancePresetId)
|
|
@@ -19058,227 +19289,6 @@ function toPageRuntimeJoin(join) {
|
|
|
19058
19289
|
};
|
|
19059
19290
|
}
|
|
19060
19291
|
//#endregion
|
|
19061
|
-
//#region ../theme-core/src/gradients/presets.ts
|
|
19062
|
-
/**
|
|
19063
|
-
* Curated gradient presets based on theme palette
|
|
19064
|
-
*/
|
|
19065
|
-
const gradientPresetData = {
|
|
19066
|
-
"primary-secondary": {
|
|
19067
|
-
name: "Primary to Secondary",
|
|
19068
|
-
description: "Blend your primary and secondary brand colors",
|
|
19069
|
-
type: "linear",
|
|
19070
|
-
angle: 135,
|
|
19071
|
-
stops: [{
|
|
19072
|
-
color: "primary-500",
|
|
19073
|
-
position: 0
|
|
19074
|
-
}, {
|
|
19075
|
-
color: "secondary-500",
|
|
19076
|
-
position: 100
|
|
19077
|
-
}]
|
|
19078
|
-
},
|
|
19079
|
-
"primary-accent": {
|
|
19080
|
-
name: "Primary to Accent",
|
|
19081
|
-
description: "Energetic gradient from primary to accent",
|
|
19082
|
-
type: "linear",
|
|
19083
|
-
angle: 135,
|
|
19084
|
-
stops: [{
|
|
19085
|
-
color: "primary-500",
|
|
19086
|
-
position: 0
|
|
19087
|
-
}, {
|
|
19088
|
-
color: "accent-500",
|
|
19089
|
-
position: 100
|
|
19090
|
-
}]
|
|
19091
|
-
},
|
|
19092
|
-
"secondary-accent": {
|
|
19093
|
-
name: "Secondary to Accent",
|
|
19094
|
-
description: "Vibrant secondary to accent blend",
|
|
19095
|
-
type: "linear",
|
|
19096
|
-
angle: 135,
|
|
19097
|
-
stops: [{
|
|
19098
|
-
color: "secondary-500",
|
|
19099
|
-
position: 0
|
|
19100
|
-
}, {
|
|
19101
|
-
color: "accent-500",
|
|
19102
|
-
position: 100
|
|
19103
|
-
}]
|
|
19104
|
-
},
|
|
19105
|
-
"primary-light-dark": {
|
|
19106
|
-
name: "Primary Light to Dark",
|
|
19107
|
-
description: "Subtle primary color fade",
|
|
19108
|
-
type: "linear",
|
|
19109
|
-
angle: 180,
|
|
19110
|
-
stops: [{
|
|
19111
|
-
color: "primary-500",
|
|
19112
|
-
position: 0
|
|
19113
|
-
}, {
|
|
19114
|
-
color: "primary-900",
|
|
19115
|
-
position: 100
|
|
19116
|
-
}]
|
|
19117
|
-
},
|
|
19118
|
-
"primary-dark-light": {
|
|
19119
|
-
name: "Primary Dark to Light",
|
|
19120
|
-
description: "Reverse primary fade",
|
|
19121
|
-
type: "linear",
|
|
19122
|
-
angle: 180,
|
|
19123
|
-
stops: [{
|
|
19124
|
-
color: "primary-900",
|
|
19125
|
-
position: 0
|
|
19126
|
-
}, {
|
|
19127
|
-
color: "primary-50",
|
|
19128
|
-
position: 100
|
|
19129
|
-
}]
|
|
19130
|
-
},
|
|
19131
|
-
"secondary-light-dark": {
|
|
19132
|
-
name: "Secondary Light to Dark",
|
|
19133
|
-
description: "Subtle secondary color fade",
|
|
19134
|
-
type: "linear",
|
|
19135
|
-
angle: 180,
|
|
19136
|
-
stops: [{
|
|
19137
|
-
color: "secondary-500",
|
|
19138
|
-
position: 0
|
|
19139
|
-
}, {
|
|
19140
|
-
color: "secondary-900",
|
|
19141
|
-
position: 100
|
|
19142
|
-
}]
|
|
19143
|
-
},
|
|
19144
|
-
"accent-light-dark": {
|
|
19145
|
-
name: "Accent Light to Dark",
|
|
19146
|
-
description: "Accent color depth fade",
|
|
19147
|
-
type: "linear",
|
|
19148
|
-
angle: 180,
|
|
19149
|
-
stops: [{
|
|
19150
|
-
color: "accent-500",
|
|
19151
|
-
position: 0
|
|
19152
|
-
}, {
|
|
19153
|
-
color: "accent-900",
|
|
19154
|
-
position: 100
|
|
19155
|
-
}]
|
|
19156
|
-
},
|
|
19157
|
-
"background-surface": {
|
|
19158
|
-
name: "Background to Surface",
|
|
19159
|
-
description: "Subtle depth using base colors",
|
|
19160
|
-
type: "linear",
|
|
19161
|
-
angle: 180,
|
|
19162
|
-
stops: [{
|
|
19163
|
-
color: "background",
|
|
19164
|
-
position: 0
|
|
19165
|
-
}, {
|
|
19166
|
-
color: "surface",
|
|
19167
|
-
position: 100
|
|
19168
|
-
}]
|
|
19169
|
-
},
|
|
19170
|
-
"neutral-fade": {
|
|
19171
|
-
name: "Neutral Gradient",
|
|
19172
|
-
description: "Elegant neutral color fade",
|
|
19173
|
-
type: "linear",
|
|
19174
|
-
angle: 180,
|
|
19175
|
-
stops: [{
|
|
19176
|
-
color: "neutral-900",
|
|
19177
|
-
position: 0
|
|
19178
|
-
}, {
|
|
19179
|
-
color: "neutral-50",
|
|
19180
|
-
position: 100
|
|
19181
|
-
}]
|
|
19182
|
-
},
|
|
19183
|
-
"primary-glow": {
|
|
19184
|
-
name: "Primary glow",
|
|
19185
|
-
description: "A soft top-centred glow using your primary palette",
|
|
19186
|
-
type: "radial",
|
|
19187
|
-
shape: "ellipse",
|
|
19188
|
-
position: "top center",
|
|
19189
|
-
stops: [{
|
|
19190
|
-
color: "primary-900",
|
|
19191
|
-
position: 0
|
|
19192
|
-
}, {
|
|
19193
|
-
color: "primary-950",
|
|
19194
|
-
position: 100
|
|
19195
|
-
}],
|
|
19196
|
-
foreground: {
|
|
19197
|
-
textColor: "onPrimary900",
|
|
19198
|
-
headingColor: "onPrimary900",
|
|
19199
|
-
linkColor: "onPrimary900",
|
|
19200
|
-
supportingColor: "onPrimary900"
|
|
19201
|
-
}
|
|
19202
|
-
},
|
|
19203
|
-
"accent-glow": {
|
|
19204
|
-
name: "Accent glow",
|
|
19205
|
-
description: "A soft top-centred glow using your accent palette",
|
|
19206
|
-
type: "radial",
|
|
19207
|
-
shape: "ellipse",
|
|
19208
|
-
position: "top center",
|
|
19209
|
-
stops: [{
|
|
19210
|
-
color: "accent-900",
|
|
19211
|
-
position: 0
|
|
19212
|
-
}, {
|
|
19213
|
-
color: "accent-950",
|
|
19214
|
-
position: 100
|
|
19215
|
-
}],
|
|
19216
|
-
foreground: {
|
|
19217
|
-
textColor: "onAccent900",
|
|
19218
|
-
headingColor: "onAccent900",
|
|
19219
|
-
linkColor: "onAccent900",
|
|
19220
|
-
supportingColor: "onAccent900"
|
|
19221
|
-
}
|
|
19222
|
-
},
|
|
19223
|
-
"primary-secondary-accent": {
|
|
19224
|
-
name: "Brand Trio",
|
|
19225
|
-
description: "All three brand colors in harmony",
|
|
19226
|
-
type: "linear",
|
|
19227
|
-
angle: 135,
|
|
19228
|
-
stops: [
|
|
19229
|
-
{
|
|
19230
|
-
color: "primary-500",
|
|
19231
|
-
position: 0
|
|
19232
|
-
},
|
|
19233
|
-
{
|
|
19234
|
-
color: "secondary-500",
|
|
19235
|
-
position: 50
|
|
19236
|
-
},
|
|
19237
|
-
{
|
|
19238
|
-
color: "accent-500",
|
|
19239
|
-
position: 100
|
|
19240
|
-
}
|
|
19241
|
-
]
|
|
19242
|
-
}
|
|
19243
|
-
};
|
|
19244
|
-
const presetData = (id) => gradientPresetData[id];
|
|
19245
|
-
/**
|
|
19246
|
-
* Curated library of gradient presets.
|
|
19247
|
-
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
19248
|
-
*/
|
|
19249
|
-
const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
|
|
19250
|
-
id,
|
|
19251
|
-
...presetData(id)
|
|
19252
|
-
}));
|
|
19253
|
-
const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
|
|
19254
|
-
function getGradientPreset(id) {
|
|
19255
|
-
return gradientPresetById[id];
|
|
19256
|
-
}
|
|
19257
|
-
//#endregion
|
|
19258
|
-
//#region ../theme-core/src/gradients/utils.ts
|
|
19259
|
-
/**
|
|
19260
|
-
* Convert a GradientConfig to a CSS gradient string
|
|
19261
|
-
*
|
|
19262
|
-
* @param config - The gradient configuration using theme tokens
|
|
19263
|
-
* @param tokens - Map of theme color tokens to hex values
|
|
19264
|
-
* @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
|
|
19265
|
-
*/
|
|
19266
|
-
function gradientToCss(config, tokens) {
|
|
19267
|
-
const stops = config.stops.map((stop) => {
|
|
19268
|
-
return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
|
|
19269
|
-
}).join(", ");
|
|
19270
|
-
const type = config.type ?? "linear";
|
|
19271
|
-
if (type === "radial") {
|
|
19272
|
-
const position = config.position ?? "center";
|
|
19273
|
-
return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
|
|
19274
|
-
}
|
|
19275
|
-
if (type === "conic") {
|
|
19276
|
-
const position = config.position ?? "center";
|
|
19277
|
-
return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
|
|
19278
|
-
}
|
|
19279
|
-
return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
|
|
19280
|
-
}
|
|
19281
|
-
//#endregion
|
|
19282
19292
|
//#region ../theme-core/src/site-styles/sectionSurfaceBackgrounds.ts
|
|
19283
19293
|
function compileGradientSectionBackground(background, foreground, palette) {
|
|
19284
19294
|
const preset = getGradientPreset(background.gradientPresetId);
|
|
@@ -26527,4 +26537,4 @@ const logger = {
|
|
|
26527
26537
|
withFields: (_) => logger
|
|
26528
26538
|
};
|
|
26529
26539
|
//#endregion
|
|
26530
|
-
export {
|
|
26540
|
+
export { navLinkOwnsHoverForeground as $, TokenResolver as $t, filterLookIdsForPolicy as A, themeV2CompilerOwnedFieldNames as At, surfaceResolutionContextFromTheme as B, designIssueSeverityForPolicy as Bt, resolveModeArrangement as C, asPageFlowPresetId as Cn, deriveSectionGround as Ct, buildInitialPolicyPageDesignIntent as D, sectionSurfaceBase as Dt, applySiteStyleBlockPoliciesToPageDesignIntent as E, sectionForegroundBackground as Et, getCuratedSiteStyle as F, assertNever as Ft, getNavLinkPreset as G, sectionBackgroundPaintValues as Gt, generateDefaultCardSystem as H, introCompositionTreatmentValues as Ht, requireCuratedSiteStyle as I, defineBlockDesignCapability as It, generateEffectsCSS as J, opaqueSurfaceContextFromTheme as Jt, buildTextContrastShadow as K, testimonialsCompositionTreatmentValues as Kt, compilePageRuntimeFields as L, defineExactCatalog as Lt, componentRuntimeRulesForTheme as M, blockAppearancePresets as Mt, designRuntimeRulesForSiteStyle as N, resolveEffectiveKnobs as Nt, deriveSiteStyleBlockPolicy as O, defaultHeroImageSurfaceTreatment as Ot, designRuntimeRulesForTheme as P, lookModes as Pt, navLinkHoverColorCandidate as Q, arrangementSlotNames as Qt, compiledRuntimeStyleFieldNames as R, defineFrameCapability as Rt, resolveEffectiveArrangement as S, asLayoutVariantKey as Sn, applyLookPhotoTreatment as St, applyBlockContentVariantPolicy as T, makeBoundaryId as Tn, resolveSectionBackground as Tt, generateFooterCss as U, offeringsPreviewCompositionTreatmentValues as Ut, resolveCardRole as V, featureCardCompositionTreatmentValues as Vt, footerForegroundCandidates as W, plainFrame as Wt, resolveEffectPaint as X, selectLogoVariant as Xt, resolveEffectApplications as Y, opaqueSurfaceDeclarations as Yt, generateInteractiveChildInheritanceCSS as Z, surfaceToneFromForegroundToken as Zt, resolveArrangementLookForBlock as _, asHeaderLayoutId as _n, softBoundaryOption as _t, lookListPresentationSchemaShape as a, blockCustomCssRuleSchema as an, pageDesignDecisionsV2Schema as at, arrangementManifestFromVariants as b, asAppearancePresetId as bn, anglePolygonCss as bt, lookPresentationOnPalette as c, boxBackgroundSchema as cn, sectionShapeForGround as ct, arrangementAppearancePresets as d, cardRoleSchema as dn, boundaryOptionForTransitionIntent as dt, cardListFamilyBlocks as en, navLinkOwnsUnderline as et, arrangementLookHooks as f, cardVariantRoleValues as fn, boundaryOptions as ft, getCompatibleBlockAppearancePresets as g, parseGradientPresetId as gn, noneBoundaryOption as gt, compileArrangementLookRuntime as h, surfaceCardRoleValues as hn, isDecorativeTransitionIntent as ht, listLookSlot as i, headerVariantValues as in, resolvePageDesignBoundaryChoice as it, componentRuntimeRulesForSiteStyle as j, appearancePresets as jt, filterLayoutProfilesForPolicy as k, stripStaleTransitionStyleGroup as kt, resolveLookSurfacePresentation as l, runtimeBoxBackgroundSchema as ln, sectionShapeFromContent as lt, automaticArrangementLook as m, openCardRoleValue as mn, boundaryTreatmentForBoundaryOptionId as mt, listItemPresentation as n, sectionStylesOverrideSchema as nn, rebasePageDesignIntentToSiteStyle as nt, resolvedItemSurfaceProps as o, customCssRuleSchema as on, gradientToCss as ot, arrangementStyleAvailability as p, itemRoleValues as pn, boundaryRuntimeMetricsForDecorativeTransition as pt, generateNavLinkCSS as q, toNonEmptyReadonlyArray as qt, listLookControl as r, themeSchema as rn, resolvePageDesignBlockLookChoice as rt, itemRole as s, boxBackgroundOverlaySchema as sn, getGradientPreset as st, logger as t, cardListKnobBlocks as tn, parsePageDesignIntent as tt, selectItemSurfacePresentation as u, boxlessCardVariantValue as un, sectionShapeHook as ut, resolveLookForBlock as v, asHeaderStyleId as vn, spaciousBoundaryOption as vt, resolvePublishedLook as w, asSiteStyleId as wn, parseCanonicalRuntimeBackground as wt, readStoredMode as x, asDesignBlockId as xn, transitionCatalogueEntries as xt, styleSectionBackgroundForColour as y, siteChromeBackgroundOverrideOwner as yn, transitionIntentForTreatment as yt, stripCompiledRuntimeStyleFields as z, defineNoBlockDesignCapability as zt };
|