@riverbankcms/sdk 0.162.0 → 0.163.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 +9 -0
- package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
- package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-zwnvFBPu.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +3 -3
- package/dist/_dts/{client-DGa53rjL.d.ts → client-Chh3bnXC.d.ts} +1 -1
- package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
- package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-GJ1kGBsi.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
- package/dist/_dts/{index-Wm62sXf2.d.ts → index-C3mJvn27.d.ts} +4 -4
- package/dist/_dts/{index-DI2yaSPY.d.ts → index-CaL0nKkl.d.ts} +81 -26
- package/dist/_dts/{index-DEu85xBt.d.ts → index-CdSNXLOx.d.ts} +1 -1
- package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-CyQhZuhM.d.ts} +49 -3
- package/dist/_dts/{index-C39F9KaB.d.ts → index-D2y4Iy-d.d.ts} +1 -1
- package/dist/_dts/{index-BtnsA14K.d.ts → index-DRxgeK8L.d.ts} +4 -3
- package/dist/_dts/{index-Du1IRglc.d.ts → index-FstkyqQB.d.ts} +2 -2
- package/dist/_dts/{index-Jlcq6w69.d.ts → index-G2p-HOrK.d.ts} +3 -3
- package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-rhMSu0oY.d.ts} +2 -2
- package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DiLZoInK.d.ts} +7 -7
- package/dist/_dts/{resolvePageContent-DWbrtKf8.d.ts → resolvePageContent-CWUnipv8.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 +6 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +13 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-CfNG5koF.d.ts → types-BmtrA45p.d.ts} +2 -2
- package/dist/_dts/{types-CVv2H4AT.d.ts → types-CalL7aKP.d.ts} +7 -7
- package/dist/_dts/{types-ClZ-BQL_.d.ts → types-DFOqkClJ.d.ts} +3 -3
- package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-G8MRoIhq.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
- package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-ffa6920T.mjs} +9 -9
- package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
- package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-CND3mfra.mjs} +91 -15
- package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
- package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
- package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-BfnOmxYD.mjs} +7 -56
- package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
- package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-wlyxASdT.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-B9oKSitp.mjs} +1 -1
- package/dist/client/{Page-DJBIQBOw.mjs → Page-BEF9HrAy.mjs} +584 -251
- package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
- package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
- package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-DclwabI7.mjs} +1 -1
- package/dist/client/{accordion-CtO2XF7M.mjs → accordion-lzM2nSZB.mjs} +1 -1
- package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-Bll4QwBi.mjs} +12 -12
- package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-BR-zCD3O.mjs → carousel-CxerQwIx.mjs} +2 -2
- package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
- package/dist/client/{cart-C6YpKbZZ.mjs → cart-X-m0isoI.mjs} +3 -3
- package/dist/client/{cart.client-dC938WrX.mjs → cart.client-CJbzWIl0.mjs} +1 -1
- package/dist/client/{checkout-Dy9RlREI.mjs → checkout-Gd0O_fGH.mjs} +3 -3
- package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
- package/dist/client/client.mjs +2 -2
- package/dist/client/{context-BFwxgZpB.mjs → context-Bg0SFWcM.mjs} +1 -1
- package/dist/client/{cta-DtA42Xio.mjs → cta-HffyM4MA.mjs} +1 -1
- package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-CV45BH5M.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
- package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-SFtS9OkF.mjs} +1 -1
- package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
- package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
- package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
- package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
- package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-BS0kBEgI.mjs} +4 -4
- package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
- package/dist/client/{form-XFy9uXSJ.mjs → form-DAIUrVXb.mjs} +3 -3
- package/dist/client/{form.client-B0iancFK.mjs → form.client-BoAkhoh_.mjs} +4 -4
- package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-1VnasOK8.mjs} +3 -3
- package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BKil_Psb.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
- package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
- package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-DIkX2S-X.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
- package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
- package/dist/client/{noop-B3RNPVrt.mjs → noop-4XFGzJpT.mjs} +3 -3
- package/dist/client/portal/client.mjs +12 -12
- package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
- package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
- package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BRqgcotZ.mjs} +3 -3
- package/dist/client/{productList-vqOKH2mh.mjs → productList-EK9Um-oh.mjs} +3 -3
- package/dist/client/{propsDecoder-CkSUep5a.mjs → propsDecoder-VD4arFq1.mjs} +3 -3
- package/dist/client/{registry.server-cZ24QwtW.mjs → registry.server-qYbsatxH.mjs} +19 -19
- package/dist/client/rendering/client.mjs +26 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +19 -19
- package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
- package/dist/client/{schema-DNHLlze-.mjs → schema-BFwQDvJL.mjs} +846 -497
- package/dist/client/{shop-CF0dhnfH.mjs → shop-CTUaT57E.mjs} +3 -3
- package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
- package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
- package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-UWgdmJBm.mjs} +12 -12
- package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-Cf_kASpd.mjs} +44 -26
- package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-Bi8d584P.mjs} +2 -2
- package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-dy54AUdz.mjs} +747 -32
- package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-Bi8ruFgB.mjs} +10 -10
- package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-DiLbDqM3.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
- package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
- package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
- package/dist/client/{view-BpBjo9Te.mjs → view-OvsxzgxP.mjs} +7 -7
- package/dist/client/{view-DMyTchi7.mjs → view-yUIfWX3S.mjs} +4 -4
- package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-kbONzKUv.mjs} +5 -5
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +10 -8
- package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-lndKKBtB.mjs} +151 -126
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +139 -1264
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-nUnE3iMv.mjs} +403 -66
- package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-DHtSQIBE.mjs} +12933 -11769
- package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-Chq5KKKh.mjs} +3782 -2453
- package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-CjxE3uws.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-CxCstfkP.mjs} +9 -0
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
- package/dist/server/{bindings-BuhKvYkE.mjs → bindings-S-gCHhj5.mjs} +2 -2
- package/dist/server/{client-BobW6DOz.mjs → client-C2Q56xqV.mjs} +2 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-B-MKSt0p.mjs → effectiveNavLinkStyle-DLzJPcDL.mjs} +713 -12
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-D7ItMsEl.mjs} +4 -4
- package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
- package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-DaPiPYUL.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
- package/dist/server/{overrides-DByQwIyW.mjs → overrides-W1Cc6srh.mjs} +177 -80
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-BF9yNfCS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Cn9k3DW6.mjs} +10 -6
- package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-BVcJ6TG7.mjs} +11 -2
- package/dist/server/{registry-Digv02oV.mjs → registry-4ZF3bUuJ.mjs} +97 -42
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BiqpDRwB.mjs → schema-DgrigZq9.mjs} +4118 -3769
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-CxE9F3hj.mjs} +36 -22
- package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
- package/dist/server/{src-08GY1njw.mjs → src-C44_fMy5.mjs} +291 -106
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-CVc04B9m.mjs} +2 -2
- package/dist/server/{validation-DdUTkBOZ.mjs → validation-BrbY0nxR.mjs} +2 -2
- package/dist/server/{version-DdIOqIDe.mjs → version-BBSk8uM6.mjs} +1 -1
- package/dist/styles/index.css +162 -72
- package/package.json +1 -1
- package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
- package/dist/server/loadPage-Bk9HDh9K.mjs +0 -2
|
@@ -3073,6 +3073,38 @@ function surfaceForegroundValue(role, outsideProviderFallback = DEFAULT_ROLE_FAL
|
|
|
3073
3073
|
if (role === "linkHover") return `var(${roleVariable}, ${surfaceForegroundValue("link", fallback)})`;
|
|
3074
3074
|
return `var(${roleVariable}, var(${SURFACE_FOREGROUND_CSS_VARS.text}, ${fallback}))`;
|
|
3075
3075
|
}
|
|
3076
|
+
/** The three solved inks, published beside the foreground roles by the same surfaces. */
|
|
3077
|
+
const SURFACE_INK_CSS_VARS = {
|
|
3078
|
+
brand: "--rb-surface-brand-color",
|
|
3079
|
+
accent: "--rb-surface-accent-color",
|
|
3080
|
+
focus: "--rb-surface-focus-color"
|
|
3081
|
+
};
|
|
3082
|
+
/**
|
|
3083
|
+
* The declarations for a surface's ink publication. An exact ink is a token
|
|
3084
|
+
* reference (`rgb(var(--tb-primary))`), so a site's own token value wins; a
|
|
3085
|
+
* nudged or replaced ink is a literal colour.
|
|
3086
|
+
*/
|
|
3087
|
+
function surfaceInkStyle(publication) {
|
|
3088
|
+
switch (publication.kind) {
|
|
3089
|
+
case "none": return {};
|
|
3090
|
+
case "reset": return inkVariables(() => "initial");
|
|
3091
|
+
case "solved": return inkVariables((role) => {
|
|
3092
|
+
const ink = publication.inks[role];
|
|
3093
|
+
const token = parseThemeColorToken(ink);
|
|
3094
|
+
return token ? rgbColorValue(token) : ink;
|
|
3095
|
+
});
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
function surfaceInkDeclarations(publication) {
|
|
3099
|
+
return Object.entries(surfaceInkStyle(publication)).map(([property, value]) => `${property}: ${value};`);
|
|
3100
|
+
}
|
|
3101
|
+
function inkVariables(value) {
|
|
3102
|
+
return {
|
|
3103
|
+
[SURFACE_INK_CSS_VARS.brand]: value("brand"),
|
|
3104
|
+
[SURFACE_INK_CSS_VARS.accent]: value("accent"),
|
|
3105
|
+
[SURFACE_INK_CSS_VARS.focus]: value("focus")
|
|
3106
|
+
};
|
|
3107
|
+
}
|
|
3076
3108
|
function surfaceForegroundValueWithOpacity(role, opacityPercent) {
|
|
3077
3109
|
if (!Number.isFinite(opacityPercent) || opacityPercent < 0 || opacityPercent > 100) throw new RangeError("Surface foreground opacity must be between 0 and 100.");
|
|
3078
3110
|
return `color-mix(in srgb, ${surfaceForegroundValue(role)} ${opacityPercent}%, transparent)`;
|
|
@@ -3216,6 +3248,23 @@ function oklchToOklab(L, C, h) {
|
|
|
3216
3248
|
function inSRGB(r, g, b) {
|
|
3217
3249
|
return r >= 0 && r <= 255 && g >= 0 && g <= 255 && b >= 0 && b <= 255;
|
|
3218
3250
|
}
|
|
3251
|
+
/**
|
|
3252
|
+
* OKLCH to linear sRGB with no clamping, so a gamut test can see a channel
|
|
3253
|
+
* that leaves [0, 1]. `oklabToSrgb` clamps before `inSRGB` looks, which is why
|
|
3254
|
+
* `oklchToHexGamut` can clip; that function is left alone on purpose, because
|
|
3255
|
+
* changing it would move every generated shade on live sites (issue 1633).
|
|
3256
|
+
*/
|
|
3257
|
+
function oklchToLinearSrgb(L, C, h) {
|
|
3258
|
+
const { a, b } = oklchToOklab(L, C, h);
|
|
3259
|
+
return oklabToLinearSrgb(L, a, b);
|
|
3260
|
+
}
|
|
3261
|
+
function inLinearSrgbGamut(rgb) {
|
|
3262
|
+
return [
|
|
3263
|
+
rgb.r,
|
|
3264
|
+
rgb.g,
|
|
3265
|
+
rgb.b
|
|
3266
|
+
].every((v) => v >= -1e-6 && v <= 1.000001);
|
|
3267
|
+
}
|
|
3219
3268
|
function oklchToHexGamut(L, C, h) {
|
|
3220
3269
|
let lo = 0, hi = C, best = 0;
|
|
3221
3270
|
for (let i = 0; i < 18; i++) {
|
|
@@ -3323,6 +3372,17 @@ function solidPaint(hex, index) {
|
|
|
3323
3372
|
const y = hexLuminance(hex, index);
|
|
3324
3373
|
return new Interval(y, y);
|
|
3325
3374
|
}
|
|
3375
|
+
function luminanceRatio(a, b) {
|
|
3376
|
+
return a >= b ? (a + .05) / (b + .05) : (b + .05) / (a + .05);
|
|
3377
|
+
}
|
|
3378
|
+
/** The lowest contrast an ink of luminance `ink` has against any point of `paint`. */
|
|
3379
|
+
function worstContrast(ink, paint) {
|
|
3380
|
+
if (ink >= paint.lo && ink <= paint.hi) return 1;
|
|
3381
|
+
return Math.min(luminanceRatio(ink, paint.lo), luminanceRatio(ink, paint.hi));
|
|
3382
|
+
}
|
|
3383
|
+
function assertContrastRatio(ratio) {
|
|
3384
|
+
if (!Number.isFinite(ratio) || ratio <= 1 || ratio > 21) throw new Error(`Contrast ratio must be above 1 and at most 21: ${ratio}`);
|
|
3385
|
+
}
|
|
3326
3386
|
/**
|
|
3327
3387
|
* The one black-or-white rule: literal black or white, whichever contrasts more
|
|
3328
3388
|
* with the whole paint (black on a tie). It always returns, even when neither
|
|
@@ -3884,6 +3944,214 @@ function arrangementPaletteTokens(base, options) {
|
|
|
3884
3944
|
};
|
|
3885
3945
|
}
|
|
3886
3946
|
//#endregion
|
|
3947
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/assertClassBrand.js
|
|
3948
|
+
function _assertClassBrand(e, t, n) {
|
|
3949
|
+
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
3950
|
+
throw new TypeError("Private element is not present on this object");
|
|
3951
|
+
}
|
|
3952
|
+
//#endregion
|
|
3953
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/classPrivateFieldSet2.js
|
|
3954
|
+
function _classPrivateFieldSet2(s, a, r) {
|
|
3955
|
+
return s.set(_assertClassBrand(s, a), r), r;
|
|
3956
|
+
}
|
|
3957
|
+
//#endregion
|
|
3958
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/classPrivateFieldGet2.js
|
|
3959
|
+
function _classPrivateFieldGet2(s, a) {
|
|
3960
|
+
return s.get(_assertClassBrand(s, a));
|
|
3961
|
+
}
|
|
3962
|
+
//#endregion
|
|
3963
|
+
//#region ../theme-core/src/palette/family.ts
|
|
3964
|
+
var _members = /* @__PURE__ */ new WeakMap();
|
|
3965
|
+
/**
|
|
3966
|
+
* Only `colourFamily` makes one (the class is not exported), so a caller can't
|
|
3967
|
+
* swap in its own members and still hand the solver a valid family. That
|
|
3968
|
+
* matters because `unpaintable` relies on the members running from black to
|
|
3969
|
+
* white.
|
|
3970
|
+
*/
|
|
3971
|
+
var Family = class {
|
|
3972
|
+
constructor(seed, members) {
|
|
3973
|
+
this.seed = seed;
|
|
3974
|
+
_classPrivateFieldInitSpec(this, _members, void 0);
|
|
3975
|
+
_classPrivateFieldSet2(_members, this, Object.freeze(members));
|
|
3976
|
+
}
|
|
3977
|
+
/** Unique by hex, ascending luminance. Includes the exact seed, black and white. */
|
|
3978
|
+
get members() {
|
|
3979
|
+
return _classPrivateFieldGet2(_members, this);
|
|
3980
|
+
}
|
|
3981
|
+
};
|
|
3982
|
+
const GAMUT_BISECTION_STEPS = 18;
|
|
3983
|
+
/** The highest chroma at or below `c` that stays inside sRGB at this lightness and hue. */
|
|
3984
|
+
function gamutChroma(l, c, h) {
|
|
3985
|
+
if (inLinearSrgbGamut(oklchToLinearSrgb(l, c, h))) return c;
|
|
3986
|
+
return Array.from({ length: GAMUT_BISECTION_STEPS }).reduce(({ lo, hi }) => {
|
|
3987
|
+
const mid = (lo + hi) / 2;
|
|
3988
|
+
return inLinearSrgbGamut(oklchToLinearSrgb(l, mid, h)) ? {
|
|
3989
|
+
lo: mid,
|
|
3990
|
+
hi
|
|
3991
|
+
} : {
|
|
3992
|
+
lo,
|
|
3993
|
+
hi: mid
|
|
3994
|
+
};
|
|
3995
|
+
}, {
|
|
3996
|
+
lo: 0,
|
|
3997
|
+
hi: c
|
|
3998
|
+
}).lo;
|
|
3999
|
+
}
|
|
4000
|
+
function oklabDistance(a, b) {
|
|
4001
|
+
return Math.hypot(a.L - b.L, a.a - b.a, a.b - b.b);
|
|
4002
|
+
}
|
|
4003
|
+
function colourFamily(seedHex) {
|
|
4004
|
+
if (!/^#[0-9a-f]{6}$/i.test(seedHex)) throw new Error(`Expected an opaque #rrggbb colour: ${seedHex}`);
|
|
4005
|
+
const features = featuresFromHex(seedHex.toLowerCase());
|
|
4006
|
+
const seed = member(seedHex.toLowerCase(), {
|
|
4007
|
+
l: features.okL,
|
|
4008
|
+
c: features.okC,
|
|
4009
|
+
h: features.okH
|
|
4010
|
+
});
|
|
4011
|
+
const seedTaper = Math.max(.001, Math.sin(Math.PI * seed.sample.l));
|
|
4012
|
+
const samples = Array.from({ length: 513 }, (_, i) => {
|
|
4013
|
+
const l = i / 512;
|
|
4014
|
+
return sampleMember({
|
|
4015
|
+
l,
|
|
4016
|
+
c: gamutChroma(l, seed.sample.c * Math.min(1, Math.sin(Math.PI * l) / seedTaper), seed.sample.h),
|
|
4017
|
+
h: seed.sample.h
|
|
4018
|
+
});
|
|
4019
|
+
});
|
|
4020
|
+
return new Family(seed, [...new Map([seed, ...samples].map((candidate) => [candidate.hex, candidate]).reverse()).values()].sort((a, b) => a.y - b.y || (a.hex < b.hex ? -1 : a.hex > b.hex ? 1 : 0)));
|
|
4021
|
+
}
|
|
4022
|
+
function sampleMember(sample) {
|
|
4023
|
+
const { r, g, b } = oklchToLinearSrgb(sample.l, sample.c, sample.h);
|
|
4024
|
+
return member(rgbToHex(linearToSrgb(r), linearToSrgb(g), linearToSrgb(b)), sample);
|
|
4025
|
+
}
|
|
4026
|
+
function member(hex, sample) {
|
|
4027
|
+
const { r, g, b } = hexToRgb(hex);
|
|
4028
|
+
return {
|
|
4029
|
+
hex,
|
|
4030
|
+
y: hexLuminance(hex),
|
|
4031
|
+
oklab: srgbToOklab(r, g, b),
|
|
4032
|
+
sample
|
|
4033
|
+
};
|
|
4034
|
+
}
|
|
4035
|
+
//#endregion
|
|
4036
|
+
//#region ../theme-core/src/palette/utils/inkSolver.ts
|
|
4037
|
+
/**
|
|
4038
|
+
* How far (OKLab ΔE) a brand colour drawn as ink may be nudged along its own
|
|
4039
|
+
* family before it stops reading as that colour. Past this the caller uses
|
|
4040
|
+
* neutral or palette text instead (Will, 2026-10-14).
|
|
4041
|
+
*/
|
|
4042
|
+
const BRAND_INK_MAX_DELTA_E = .08;
|
|
4043
|
+
/**
|
|
4044
|
+
* The seed itself when it clears `paint`, otherwise the family member nearest
|
|
4045
|
+
* the seed (OKLab ΔE) that clears. On a light ground that is darker, on a dark
|
|
4046
|
+
* one lighter. A passing member further than `maxDistance` from the seed is
|
|
4047
|
+
* refused as `too-far`, which is distinct from `unpaintable`: the family runs
|
|
4048
|
+
* from black to white, so if no member clears, neither does black or white.
|
|
4049
|
+
*/
|
|
4050
|
+
function inkFrom(family, paint, ratio, maxDistance = BRAND_INK_MAX_DELTA_E) {
|
|
4051
|
+
assertContrastRatio(ratio);
|
|
4052
|
+
if (!Number.isFinite(maxDistance) || maxDistance < 0) throw new RangeError(`Maximum ink distance must be finite and not negative: ${maxDistance}`);
|
|
4053
|
+
const seedRatio = worstContrast(family.seed.y, paint);
|
|
4054
|
+
if (seedRatio >= ratio) return {
|
|
4055
|
+
kind: "ink",
|
|
4056
|
+
hex: family.seed.hex,
|
|
4057
|
+
ratio: seedRatio,
|
|
4058
|
+
source: "exact"
|
|
4059
|
+
};
|
|
4060
|
+
const nearest = family.members.reduce((best, member) => {
|
|
4061
|
+
const achieved = worstContrast(member.y, paint);
|
|
4062
|
+
if (achieved < ratio) return best;
|
|
4063
|
+
const distance = oklabDistance(member.oklab, family.seed.oklab);
|
|
4064
|
+
return best === null || distance < best.distance ? {
|
|
4065
|
+
hex: member.hex,
|
|
4066
|
+
distance,
|
|
4067
|
+
ratio: achieved
|
|
4068
|
+
} : best;
|
|
4069
|
+
}, null);
|
|
4070
|
+
if (nearest === null) return {
|
|
4071
|
+
kind: "unpaintable",
|
|
4072
|
+
interval: paint,
|
|
4073
|
+
ratio
|
|
4074
|
+
};
|
|
4075
|
+
if (nearest.distance > maxDistance) return {
|
|
4076
|
+
kind: "too-far",
|
|
4077
|
+
nearest: {
|
|
4078
|
+
hex: nearest.hex,
|
|
4079
|
+
distance: nearest.distance
|
|
4080
|
+
},
|
|
4081
|
+
maxDistance
|
|
4082
|
+
};
|
|
4083
|
+
return {
|
|
4084
|
+
kind: "ink",
|
|
4085
|
+
hex: nearest.hex,
|
|
4086
|
+
ratio: nearest.ratio,
|
|
4087
|
+
source: "family"
|
|
4088
|
+
};
|
|
4089
|
+
}
|
|
4090
|
+
//#endregion
|
|
4091
|
+
//#region ../theme-core/src/surfaces/surfaceInks.ts
|
|
4092
|
+
const INK_SEEDS = {
|
|
4093
|
+
brand: {
|
|
4094
|
+
token: "primary",
|
|
4095
|
+
ratio: ORDINARY_TEXT_MIN_CONTRAST_RATIO
|
|
4096
|
+
},
|
|
4097
|
+
accent: {
|
|
4098
|
+
token: "accent",
|
|
4099
|
+
ratio: ORDINARY_TEXT_MIN_CONTRAST_RATIO
|
|
4100
|
+
},
|
|
4101
|
+
focus: {
|
|
4102
|
+
token: "primary",
|
|
4103
|
+
ratio: 3
|
|
4104
|
+
}
|
|
4105
|
+
};
|
|
4106
|
+
/**
|
|
4107
|
+
* Solve the three inks for a measured solid paint. `textInk` is the surface's
|
|
4108
|
+
* own (already certified) text ink: it stands in when the owner's colour is
|
|
4109
|
+
* missing, or can only clear the paint by drifting too far from itself.
|
|
4110
|
+
* A block owner can supply an authored shade candidate for a local ink.
|
|
4111
|
+
*/
|
|
4112
|
+
function solveSurfaceInks(backdropHex, textInk, palette, candidates = {}) {
|
|
4113
|
+
const paint = solidPaint(backdropHex);
|
|
4114
|
+
const fallback = literalInk(resolveConcreteColorHex(textInk, palette) ?? pickBlackOrWhiteTextColor(backdropHex));
|
|
4115
|
+
return {
|
|
4116
|
+
brand: solveInk({
|
|
4117
|
+
...INK_SEEDS.brand,
|
|
4118
|
+
token: candidates.brand ?? INK_SEEDS.brand.token
|
|
4119
|
+
}, paint, palette, fallback),
|
|
4120
|
+
accent: solveInk({
|
|
4121
|
+
...INK_SEEDS.accent,
|
|
4122
|
+
token: candidates.accent ?? INK_SEEDS.accent.token
|
|
4123
|
+
}, paint, palette, fallback),
|
|
4124
|
+
focus: solveInk({
|
|
4125
|
+
...INK_SEEDS.focus,
|
|
4126
|
+
token: candidates.focus ?? INK_SEEDS.focus.token
|
|
4127
|
+
}, paint, palette, fallback)
|
|
4128
|
+
};
|
|
4129
|
+
}
|
|
4130
|
+
function solveInk(seed, paint, palette, fallback) {
|
|
4131
|
+
const token = parseThemeColorToken(seed.token);
|
|
4132
|
+
const seedHex = hexColorSchema.safeParse(resolveConcreteColorHex(seed.token, palette));
|
|
4133
|
+
if (!token || !seedHex.success) return fallback;
|
|
4134
|
+
const solved = inkFrom(familyOf(seedHex.data), paint, seed.ratio);
|
|
4135
|
+
switch (solved.kind) {
|
|
4136
|
+
case "ink": return solved.source === "exact" ? token : literalInk(solved.hex);
|
|
4137
|
+
case "too-far":
|
|
4138
|
+
case "unpaintable": return fallback;
|
|
4139
|
+
}
|
|
4140
|
+
}
|
|
4141
|
+
function literalInk(hex) {
|
|
4142
|
+
return hexColorSchema.parse(hex.toLowerCase());
|
|
4143
|
+
}
|
|
4144
|
+
const FAMILY_CACHE_LIMIT = 64;
|
|
4145
|
+
const families = /* @__PURE__ */ new Map();
|
|
4146
|
+
function familyOf(seed) {
|
|
4147
|
+
const cached = families.get(seed);
|
|
4148
|
+
if (cached) return cached;
|
|
4149
|
+
if (families.size >= FAMILY_CACHE_LIMIT) families.clear();
|
|
4150
|
+
const family = colourFamily(seed);
|
|
4151
|
+
families.set(seed, family);
|
|
4152
|
+
return family;
|
|
4153
|
+
}
|
|
4154
|
+
//#endregion
|
|
3887
4155
|
//#region ../theme-core/src/surfaces/resolveSurfaceForeground.ts
|
|
3888
4156
|
const FALLBACK_TEXT_TOKENS = [
|
|
3889
4157
|
"text",
|
|
@@ -3918,7 +4186,7 @@ function resolveAuthoredBackground(background, palette, authored, options) {
|
|
|
3918
4186
|
}, palette);
|
|
3919
4187
|
if (background.type === "color") {
|
|
3920
4188
|
const backgroundReference = normalizedReference(background.color);
|
|
3921
|
-
if (!backgroundReference || backgroundReference === "transparent") return { kind: "
|
|
4189
|
+
if (!backgroundReference || backgroundReference === "transparent") return { kind: "inherits" };
|
|
3922
4190
|
return resolveDeterministicForeground(backgroundReference, authored, palette, options.compositeBase);
|
|
3923
4191
|
}
|
|
3924
4192
|
return resolveTrustedTreatmentForeground(authored, palette);
|
|
@@ -3955,12 +4223,13 @@ function resolveMeasuredForeground(backgroundReference, backgroundHex, candidate
|
|
|
3955
4223
|
supporting: safeTokenOr(candidates.supporting, text, backgroundHex, palette)
|
|
3956
4224
|
}, {
|
|
3957
4225
|
kind: "measured",
|
|
3958
|
-
backdropHex: backgroundHex
|
|
4226
|
+
backdropHex: backgroundHex,
|
|
4227
|
+
inks: solveSurfaceInks(backgroundHex, text, palette)
|
|
3959
4228
|
}, candidates.linkHover, palette);
|
|
3960
4229
|
}
|
|
3961
4230
|
function resolveTrustedTreatmentForeground(candidates, palette) {
|
|
3962
4231
|
const text = canonicalToken(candidates.text, palette);
|
|
3963
|
-
if (!text) return { kind: "
|
|
4232
|
+
if (!text) return { kind: "unmeasured-paint" };
|
|
3964
4233
|
return knownForeground({
|
|
3965
4234
|
text,
|
|
3966
4235
|
heading: canonicalToken(candidates.heading, palette) ?? text,
|
|
@@ -3994,6 +4263,21 @@ function canonicalHoverToken(reference, palette) {
|
|
|
3994
4263
|
}
|
|
3995
4264
|
return canonicalToken(reference, palette);
|
|
3996
4265
|
}
|
|
4266
|
+
/**
|
|
4267
|
+
* The one rule for what a resolved foreground publishes for the solved inks.
|
|
4268
|
+
* Only a measured paint under a publishing runtime publishes inks; any other
|
|
4269
|
+
* paint it owns resets them, and a paint it only inherits publishes nothing.
|
|
4270
|
+
*/
|
|
4271
|
+
function surfaceInkPublication(foreground, policy) {
|
|
4272
|
+
switch (foreground.kind) {
|
|
4273
|
+
case "inherits": return { kind: "none" };
|
|
4274
|
+
case "unmeasured-paint": return { kind: "reset" };
|
|
4275
|
+
case "known": return foreground.provenance.kind === "measured" && policy === "publish" ? {
|
|
4276
|
+
kind: "solved",
|
|
4277
|
+
inks: foreground.provenance.inks
|
|
4278
|
+
} : { kind: "reset" };
|
|
4279
|
+
}
|
|
4280
|
+
}
|
|
3997
4281
|
/** Keep a candidate only when it meets ordinary-text contrast on the ground. */
|
|
3998
4282
|
function safeTokenOr(candidate, fallback, backgroundHex, palette) {
|
|
3999
4283
|
return firstSafeToken([candidate], backgroundHex, palette) ?? fallback;
|
|
@@ -6364,7 +6648,8 @@ function surfaceTransportContext(context) {
|
|
|
6364
6648
|
const revision = ownSurfaceRevision(context);
|
|
6365
6649
|
const result = Object.freeze({
|
|
6366
6650
|
...revision,
|
|
6367
|
-
colourIndex: context.colourIndex
|
|
6651
|
+
colourIndex: context.colourIndex,
|
|
6652
|
+
solvedInks: context.solvedInks
|
|
6368
6653
|
});
|
|
6369
6654
|
surfaceRevisionOwners.set(result, revision);
|
|
6370
6655
|
return result;
|
|
@@ -6378,10 +6663,6 @@ function registerOwnedRevisionInputs(context) {
|
|
|
6378
6663
|
function isResolvedSurface(value) {
|
|
6379
6664
|
return typeof value === "object" && value !== null && surfaceOwners.has(value) && "kind" in value && (value.kind === "owned" || value.kind === "inherit");
|
|
6380
6665
|
}
|
|
6381
|
-
/** Opaque immutable surface/context values have no child DTOs to project. */
|
|
6382
|
-
function isSurfaceTransportLeaf(value) {
|
|
6383
|
-
return isResolvedSurface(value) || isSurfaceTreeRecord(value) && surfaceRevisionOwners.has(value);
|
|
6384
|
-
}
|
|
6385
6666
|
/** Runtime serializers reject copies and forged structural objects, too. */
|
|
6386
6667
|
function requireResolvedSurface(value) {
|
|
6387
6668
|
if (!isResolvedSurface(value)) throw new Error("Surface must be produced by resolveSurface");
|
|
@@ -6390,7 +6671,7 @@ function resolveSurface(spec, context) {
|
|
|
6390
6671
|
return spec.kind === "section" ? resolveSectionSurface(spec.background, context) : preparedSurfaceValue(spec, context) ?? certifySurface(spec, context);
|
|
6391
6672
|
}
|
|
6392
6673
|
/** Own one theme revision; derive its surface decisions without copying its inputs again. */
|
|
6393
|
-
function prepareThemeSurfaceRevision(inputTheme, selectSurfaces = () => []) {
|
|
6674
|
+
function prepareThemeSurfaceRevision(inputTheme, selectSurfaces = () => [], solvedInks) {
|
|
6394
6675
|
const theme = structuredClone(inputTheme);
|
|
6395
6676
|
const snapshot = freezeOwnedThemeValue(theme);
|
|
6396
6677
|
const declarations = ownedThemeSnapshot(selectSurfaces(snapshot));
|
|
@@ -6402,7 +6683,8 @@ function prepareThemeSurfaceRevision(inputTheme, selectSurfaces = () => []) {
|
|
|
6402
6683
|
kind: "concrete-palette",
|
|
6403
6684
|
palette,
|
|
6404
6685
|
colourIndex: preparePaletteColourIndex(palette),
|
|
6405
|
-
buttonSystem: snapshot.buttons
|
|
6686
|
+
buttonSystem: snapshot.buttons,
|
|
6687
|
+
solvedInks
|
|
6406
6688
|
});
|
|
6407
6689
|
registerOwnedRevisionInputs(context);
|
|
6408
6690
|
const preparedSurfaces = declarations.length === 0 ? void 0 : surfaceIndexFromOwnedInputs(declarations, context);
|
|
@@ -6449,7 +6731,8 @@ function surfaceResolutionKey(spec, context) {
|
|
|
6449
6731
|
context.linkHoverToken,
|
|
6450
6732
|
context.foreground,
|
|
6451
6733
|
context.compositeBase,
|
|
6452
|
-
context.buttonContext
|
|
6734
|
+
context.buttonContext,
|
|
6735
|
+
context.solvedInks
|
|
6453
6736
|
]);
|
|
6454
6737
|
}
|
|
6455
6738
|
function resolveSurfaceSpec(spec, context) {
|
|
@@ -6521,6 +6804,7 @@ function resolveOwnedSurface(paint, context, measuredBackdrop) {
|
|
|
6521
6804
|
const decision = {
|
|
6522
6805
|
kind: "owned",
|
|
6523
6806
|
foreground: ownedForegroundRoles(resolved, text, context.foreground),
|
|
6807
|
+
inks: ownedInkPublication(resolved, context),
|
|
6524
6808
|
decorations: surfaceDecorationColors(resolved, context.palette),
|
|
6525
6809
|
hoverDecoration: resolved.kind === "known" ? resolved.hoverDecoration : "underline",
|
|
6526
6810
|
buttonContext: resolveSurfaceButtons(paint, resolved, context)
|
|
@@ -6545,6 +6829,11 @@ function resolveOwnedSurface(paint, context, measuredBackdrop) {
|
|
|
6545
6829
|
}
|
|
6546
6830
|
};
|
|
6547
6831
|
}
|
|
6832
|
+
/** A paint the element owns but that resolves as inherited (an empty token) still blocks outer inks. */
|
|
6833
|
+
function ownedInkPublication(resolved, context) {
|
|
6834
|
+
const publication = surfaceInkPublication(resolved, context.solvedInks ?? "withhold");
|
|
6835
|
+
return publication.kind === "none" ? { kind: "reset" } : publication;
|
|
6836
|
+
}
|
|
6548
6837
|
/** Unprovable legacy paint retains its declared foreground instead of inventing one. */
|
|
6549
6838
|
function ownedForegroundRoles(resolved, text, candidates) {
|
|
6550
6839
|
if (resolved.kind === "known") return resolved.roles;
|
|
@@ -6592,7 +6881,7 @@ function surfaceContrast(foreground, palette, colourIndex) {
|
|
|
6592
6881
|
}
|
|
6593
6882
|
/** Runtime backgrounds retain authored media, compositing and unknown foregrounds. */
|
|
6594
6883
|
function resolveSectionSurface(background, context) {
|
|
6595
|
-
const foreground = background === null ? { kind: "
|
|
6884
|
+
const foreground = background === null ? { kind: "inherits" } : resolveSurfaceForeground(background, context.palette, {
|
|
6596
6885
|
linkHover: context.linkHoverToken,
|
|
6597
6886
|
...context.foreground
|
|
6598
6887
|
}, { compositeBase: context.compositeBase });
|
|
@@ -6606,6 +6895,7 @@ function resolveSectionSurface(background, context) {
|
|
|
6606
6895
|
const result = {
|
|
6607
6896
|
kind: "section",
|
|
6608
6897
|
foreground,
|
|
6898
|
+
inks: surfaceInkPublication(foreground, context.solvedInks ?? "withhold"),
|
|
6609
6899
|
buttonStyles: resolveSurfaceButtonContext({
|
|
6610
6900
|
surface,
|
|
6611
6901
|
palette: revision.palette,
|
|
@@ -6658,6 +6948,7 @@ function resolveTintSurface(spec, context) {
|
|
|
6658
6948
|
assertTintSamples(solid, spec.base, context.palette);
|
|
6659
6949
|
return {
|
|
6660
6950
|
...solid,
|
|
6951
|
+
inks: { kind: "reset" },
|
|
6661
6952
|
tintBase: spec.base
|
|
6662
6953
|
};
|
|
6663
6954
|
}
|
|
@@ -6704,6 +6995,7 @@ const paintInputSchema = z.discriminatedUnion("kind", [
|
|
|
6704
6995
|
z.object({ kind: z.literal("transparent") })
|
|
6705
6996
|
]);
|
|
6706
6997
|
const buttonInputSchema = z.object({ primary: opaqueButtonColourTokenSchema });
|
|
6998
|
+
const solvedInksSchema = z.enum(["publish", "withhold"]);
|
|
6707
6999
|
const surfaceSpecSchema = z.discriminatedUnion("kind", [
|
|
6708
7000
|
z.object({
|
|
6709
7001
|
kind: z.literal("recipe"),
|
|
@@ -6740,16 +7032,21 @@ const surfaceTransportSchema = z.object({ $surface: z.object({
|
|
|
6740
7032
|
foreground: foregroundInputSchema.optional(),
|
|
6741
7033
|
linkHoverToken: z.string().optional(),
|
|
6742
7034
|
compositeBase: z.string().optional(),
|
|
6743
|
-
buttonContext: buttonInputSchema.optional()
|
|
7035
|
+
buttonContext: buttonInputSchema.optional(),
|
|
7036
|
+
solvedInks: solvedInksSchema.optional()
|
|
6744
7037
|
})
|
|
6745
7038
|
}) });
|
|
6746
7039
|
/** Deserialised output is never evidence: parse the inputs and rerun their owner. */
|
|
6747
7040
|
function parseResolvedSurface(value) {
|
|
6748
|
-
|
|
6749
|
-
|
|
7041
|
+
return resolveTransportedSurface(value);
|
|
7042
|
+
}
|
|
7043
|
+
function resolveTransportedSurface(value, solvedInks) {
|
|
7044
|
+
if (isResolvedSurface(value) && solvedInks === void 0) return value;
|
|
7045
|
+
const { spec, context } = isResolvedSurface(value) ? serializeResolvedSurface(value).$surface : surfaceTransportSchema.parse(value).$surface;
|
|
6750
7046
|
return resolveSurface(spec, {
|
|
6751
7047
|
...context,
|
|
6752
|
-
buttonSystem: context.buttonSystem
|
|
7048
|
+
buttonSystem: context.buttonSystem,
|
|
7049
|
+
solvedInks: solvedInks ?? context.solvedInks
|
|
6753
7050
|
});
|
|
6754
7051
|
}
|
|
6755
7052
|
/** Wire only the owner inputs; parsed CSS/results are recomputed, never trusted. */
|
|
@@ -6769,7 +7066,8 @@ function certifySurface(spec, context) {
|
|
|
6769
7066
|
foreground: context.foreground,
|
|
6770
7067
|
linkHoverToken: context.linkHoverToken,
|
|
6771
7068
|
compositeBase: context.compositeBase,
|
|
6772
|
-
buttonContext: context.buttonContext
|
|
7069
|
+
buttonContext: context.buttonContext,
|
|
7070
|
+
solvedInks: context.solvedInks
|
|
6773
7071
|
})
|
|
6774
7072
|
})
|
|
6775
7073
|
};
|
|
@@ -6815,7 +7113,10 @@ function serializeSurfaceTree(value) {
|
|
|
6815
7113
|
};
|
|
6816
7114
|
const encode = (item) => {
|
|
6817
7115
|
const revision = isSurfaceTreeRecord(item) ? surfaceRevisionOwners.get(item) : void 0;
|
|
6818
|
-
if (revision) return {
|
|
7116
|
+
if (revision) return {
|
|
7117
|
+
$surfaceRevision: revisionIndex(revision),
|
|
7118
|
+
solvedInks: isSurfaceTreeRecord(item) ? item.solvedInks : void 0
|
|
7119
|
+
};
|
|
6819
7120
|
if (isResolvedSurface(item)) {
|
|
6820
7121
|
const input = serializeResolvedSurface(item).$surface;
|
|
6821
7122
|
const index = revisionIndex(item.revision);
|
|
@@ -6848,14 +7149,23 @@ const surfaceReferenceSchema = z.object({ $surface: z.object({
|
|
|
6848
7149
|
foreground: foregroundInputSchema.optional(),
|
|
6849
7150
|
linkHoverToken: z.string().optional(),
|
|
6850
7151
|
compositeBase: z.string().optional(),
|
|
6851
|
-
buttonContext: buttonInputSchema.optional()
|
|
7152
|
+
buttonContext: buttonInputSchema.optional(),
|
|
7153
|
+
solvedInks: solvedInksSchema.optional()
|
|
6852
7154
|
})
|
|
6853
7155
|
}) });
|
|
6854
|
-
const surfaceRevisionReferenceSchema = z.object({
|
|
7156
|
+
const surfaceRevisionReferenceSchema = z.object({
|
|
7157
|
+
$surfaceRevision: z.number().int().nonnegative(),
|
|
7158
|
+
solvedInks: solvedInksSchema.optional()
|
|
7159
|
+
});
|
|
6855
7160
|
/** Recreate owner results before any island's ordinary schema consumes them. */
|
|
6856
|
-
function parseSurfaceTree(value) {
|
|
6857
|
-
if (
|
|
6858
|
-
|
|
7161
|
+
function parseSurfaceTree(value, solvedInks) {
|
|
7162
|
+
if (isResolvedSurface(value)) return resolveTransportedSurface(value, solvedInks);
|
|
7163
|
+
const revision = isSurfaceTreeRecord(value) ? surfaceRevisionOwners.get(value) : void 0;
|
|
7164
|
+
if (revision) return solvedInks === void 0 ? value : surfaceTransportContext({
|
|
7165
|
+
...revision,
|
|
7166
|
+
solvedInks
|
|
7167
|
+
});
|
|
7168
|
+
if (!isSurfaceTreeRecord(value) || !("$surfaceTransport" in value)) return mapSurfaceTreeChildren(value, (item) => parseSurfaceTree(item, solvedInks));
|
|
6859
7169
|
const envelope = surfaceEnvelopeSchema.parse(value).$surfaceTransport;
|
|
6860
7170
|
const revisions = envelope.revisions.map((revision) => {
|
|
6861
7171
|
const owned = ownedThemeSnapshot({
|
|
@@ -6867,9 +7177,14 @@ function parseSurfaceTree(value) {
|
|
|
6867
7177
|
});
|
|
6868
7178
|
const decode = (item) => {
|
|
6869
7179
|
if (isSurfaceTreeRecord(item) && "$surfaceRevision" in item) {
|
|
6870
|
-
const
|
|
7180
|
+
const reference = surfaceRevisionReferenceSchema.parse(item);
|
|
7181
|
+
const revision = revisions[reference.$surfaceRevision];
|
|
6871
7182
|
if (!revision) throw new Error("Unknown surface revision");
|
|
6872
|
-
|
|
7183
|
+
const policy = solvedInks ?? reference.solvedInks;
|
|
7184
|
+
return policy === void 0 ? revision : surfaceTransportContext({
|
|
7185
|
+
...revision,
|
|
7186
|
+
solvedInks: policy
|
|
7187
|
+
});
|
|
6873
7188
|
}
|
|
6874
7189
|
if (isSurfaceTreeRecord(item) && "$surface" in item) {
|
|
6875
7190
|
const request = surfaceReferenceSchema.parse(item).$surface;
|
|
@@ -6878,7 +7193,8 @@ function parseSurfaceTree(value) {
|
|
|
6878
7193
|
return resolveSurface(request.spec, {
|
|
6879
7194
|
...revision,
|
|
6880
7195
|
...request.context,
|
|
6881
|
-
buttonSystem: revision.buttonSystem
|
|
7196
|
+
buttonSystem: revision.buttonSystem,
|
|
7197
|
+
solvedInks: solvedInks ?? request.context.solvedInks
|
|
6882
7198
|
});
|
|
6883
7199
|
}
|
|
6884
7200
|
return mapSurfaceTreeChildren(item, decode);
|
|
@@ -6901,7 +7217,8 @@ function opaqueSurfaceContextFromTheme(theme) {
|
|
|
6901
7217
|
palette,
|
|
6902
7218
|
colourIndex: preparePaletteColourIndex(palette),
|
|
6903
7219
|
buttonSystem: theme.buttons,
|
|
6904
|
-
linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken
|
|
7220
|
+
linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken,
|
|
7221
|
+
solvedInks: "publish"
|
|
6905
7222
|
};
|
|
6906
7223
|
}
|
|
6907
7224
|
/**
|
|
@@ -6924,6 +7241,7 @@ function opaqueSurfaceDeclarations(surface, arrangement = false) {
|
|
|
6924
7241
|
...arrangement ? { muted: colorValue(foreground.muted) } : {},
|
|
6925
7242
|
hoverDecoration: surface.hoverDecoration
|
|
6926
7243
|
}),
|
|
7244
|
+
...surfaceInkDeclarations(surface.inks),
|
|
6927
7245
|
...arrangement && surface.decorations !== void 0 ? [`${SURFACE_FOREGROUND_CSS_VARS.line}: ${surface.decorations.line};`, `${SURFACE_FOREGROUND_CSS_VARS.mark}: ${surface.decorations.mark};`] : [],
|
|
6928
7246
|
...Object.entries(surface.buttonContext.styles).map(([property, value]) => `${property}: ${value};`)
|
|
6929
7247
|
];
|
|
@@ -6937,6 +7255,7 @@ function inheritedSurfaceDeclarations(arrangement) {
|
|
|
6937
7255
|
return [
|
|
6938
7256
|
"color",
|
|
6939
7257
|
...Object.entries(SURFACE_FOREGROUND_CSS_VARS).filter(([role]) => arrangement || role !== "line" && role !== "mark" && role !== "muted").map(([, variable]) => variable),
|
|
7258
|
+
...Object.values(SURFACE_INK_CSS_VARS),
|
|
6940
7259
|
"--rb-surface-link-hover-decoration",
|
|
6941
7260
|
...Object.keys(contextualButtonSurfaceResetStyles())
|
|
6942
7261
|
].map((property) => `${property}: inherit;`);
|
|
@@ -7486,7 +7805,7 @@ function resolveCornerRadiiCss(cornerRadii, fallback) {
|
|
|
7486
7805
|
return `${at(cornerRadii.topLeft)} ${at(cornerRadii.topRight)} ${at(cornerRadii.bottomRight)} ${at(cornerRadii.bottomLeft)}`;
|
|
7487
7806
|
}
|
|
7488
7807
|
function generateCardCss(options) {
|
|
7489
|
-
const { themeId, theme, cardSystem: providedCardSystem } = options;
|
|
7808
|
+
const { themeId, theme, cardSystem: providedCardSystem, solvedInks } = options;
|
|
7490
7809
|
const tokens = new TokenResolver(theme);
|
|
7491
7810
|
const palette = expandPalette(theme.palette);
|
|
7492
7811
|
const cardSystem = providedCardSystem ?? generateDefaultCardSystem(theme);
|
|
@@ -7499,11 +7818,11 @@ function generateCardCss(options) {
|
|
|
7499
7818
|
const groupKey = roleAliasGroupKey(source, variant.id);
|
|
7500
7819
|
emittedGroupKeys.add(groupKey);
|
|
7501
7820
|
const aliasClasses = aliasGroups.get(groupKey)?.classes ?? [];
|
|
7502
|
-
cssChunks.push(generateVariantCSS(variant, themeId, [`card-${variant.id}`, ...aliasClasses], tokens, theme, palette));
|
|
7821
|
+
cssChunks.push(generateVariantCSS(variant, themeId, [`card-${variant.id}`, ...aliasClasses], tokens, theme, palette, solvedInks));
|
|
7503
7822
|
}
|
|
7504
7823
|
for (const [groupKey, group] of aliasGroups) {
|
|
7505
7824
|
if (emittedGroupKeys.has(groupKey)) continue;
|
|
7506
|
-
cssChunks.push(generateVariantCSS(group.variant, themeId, group.classes, tokens, theme, palette));
|
|
7825
|
+
cssChunks.push(generateVariantCSS(group.variant, themeId, group.classes, tokens, theme, palette, solvedInks));
|
|
7507
7826
|
}
|
|
7508
7827
|
return cssChunks.filter(Boolean).join("\n\n");
|
|
7509
7828
|
}
|
|
@@ -7566,7 +7885,7 @@ const MEDIA_CORNER_MAP = {
|
|
|
7566
7885
|
* This CSS-first approach eliminates runtime transforms for styling,
|
|
7567
7886
|
* keeping transforms only for data normalization and dynamic layout.
|
|
7568
7887
|
*/
|
|
7569
|
-
function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palette) {
|
|
7888
|
+
function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palette, solvedInks) {
|
|
7570
7889
|
const selectorsFor = (suffix) => cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}${suffix}`).join(",\n");
|
|
7571
7890
|
const containerSelectors = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}`);
|
|
7572
7891
|
const containerSelector = containerSelectors.join(",\n");
|
|
@@ -7574,7 +7893,7 @@ function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palett
|
|
|
7574
7893
|
const contentSelector = selectorsFor(" .card-content");
|
|
7575
7894
|
const fallbackBackgroundSelector = selectorsFor(" > .rb-bg-surface");
|
|
7576
7895
|
const rules = [];
|
|
7577
|
-
rules.push(...cardSurfaceRules(variant, tokens, theme, palette));
|
|
7896
|
+
rules.push(...cardSurfaceRules(variant, tokens, theme, palette, solvedInks));
|
|
7578
7897
|
const resolveColor = (token) => tokens.getColor(token);
|
|
7579
7898
|
rules.push(...cardBorderDeclarations(variant.border ? borderDeclaration(variant.border, tokens) : null, variant.decorations, resolveColor));
|
|
7580
7899
|
const corners = variant.corners ?? theme.corners;
|
|
@@ -7598,7 +7917,7 @@ function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palett
|
|
|
7598
7917
|
`${contentSelector} {\n ${contentRules.join(";\n ")};\n}`
|
|
7599
7918
|
].join("\n\n");
|
|
7600
7919
|
}
|
|
7601
|
-
function cardSurfaceRules(variant, tokens, theme, palette) {
|
|
7920
|
+
function cardSurfaceRules(variant, tokens, theme, palette, solvedInks) {
|
|
7602
7921
|
if (variant.background.type === "transparent") return ["background: transparent"];
|
|
7603
7922
|
const surface = resolveSurface({
|
|
7604
7923
|
kind: "paint",
|
|
@@ -7606,7 +7925,8 @@ function cardSurfaceRules(variant, tokens, theme, palette) {
|
|
|
7606
7925
|
}, {
|
|
7607
7926
|
palette,
|
|
7608
7927
|
buttonSystem: theme.buttons,
|
|
7609
|
-
linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken
|
|
7928
|
+
linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken,
|
|
7929
|
+
solvedInks
|
|
7610
7930
|
});
|
|
7611
7931
|
return [cardBackgroundRule(variant.background, tokens), ...opaqueSurfaceDeclarations(surface)];
|
|
7612
7932
|
}
|
|
@@ -8937,39 +9257,49 @@ function renderHeaderPaintTargetRule(target, rules) {
|
|
|
8937
9257
|
"border-radius: inherit;",
|
|
8938
9258
|
"z-index: -1;"
|
|
8939
9259
|
] : [];
|
|
8940
|
-
return `${target.selector} {\n ${[...pseudoElementSetup, ...rules].join("\n ")}\n}`;
|
|
8941
|
-
}
|
|
8942
|
-
case "viewport-band": {
|
|
8943
|
-
const { top, bottom } = target.extent;
|
|
8944
|
-
const ownerRules = [
|
|
8945
|
-
`${top.customProperty}: ${top.value};`,
|
|
8946
|
-
`${bottom.customProperty}: ${bottom.value};`,
|
|
8947
|
-
`${top.ownerProperty}: var(${top.customProperty});`,
|
|
8948
|
-
...target.ownerNeedsPositioning ? ["position: relative;"] : [],
|
|
8949
|
-
"isolation: isolate;",
|
|
8950
|
-
"background: none;",
|
|
8951
|
-
"backdrop-filter: none;",
|
|
8952
|
-
"-webkit-backdrop-filter: none;",
|
|
8953
|
-
"border: 0;",
|
|
8954
|
-
"box-shadow: none;"
|
|
8955
|
-
];
|
|
8956
|
-
const bandRules = [
|
|
8957
|
-
"content: \"\";",
|
|
8958
|
-
"position: absolute;",
|
|
8959
|
-
`top: calc(-1 * var(${top.customProperty}));`,
|
|
8960
|
-
`bottom: calc(-1 * var(${bottom.customProperty}));`,
|
|
8961
|
-
"left: 50%;",
|
|
8962
|
-
"width: 100vw;",
|
|
8963
|
-
"transform: translateX(-50%);",
|
|
8964
|
-
"pointer-events: none;",
|
|
8965
|
-
"border-radius: 0;",
|
|
8966
|
-
"z-index: -1;",
|
|
8967
|
-
...rules
|
|
8968
|
-
];
|
|
8969
|
-
return `${target.clipSelector} {\n overflow-x: clip;\n}\n${target.ownerSelector} {\n ${ownerRules.join("\n ")}\n}\n${target.selector} {\n ${bandRules.join("\n ")}\n}`;
|
|
9260
|
+
return `${target.pseudoElement === "inset" ? headerPaintOwnerInks(target.selector.replace(/::before$/, ""), rules) : ""}${target.selector} {\n ${[...pseudoElementSetup, ...rules].join("\n ")}\n}`;
|
|
8970
9261
|
}
|
|
9262
|
+
case "viewport-band": return renderViewportBandPaint(target, rules);
|
|
8971
9263
|
}
|
|
8972
9264
|
}
|
|
9265
|
+
function headerInkRules(rules) {
|
|
9266
|
+
return rules.filter((rule) => Object.values(SURFACE_INK_CSS_VARS).some((variable) => rule.startsWith(`${variable}:`)));
|
|
9267
|
+
}
|
|
9268
|
+
function headerPaintOwnerInks(selector, rules) {
|
|
9269
|
+
const inks = headerInkRules(rules);
|
|
9270
|
+
return inks.length === 0 ? "" : `${selector} {\n ${inks.join("\n ")}\n}\n`;
|
|
9271
|
+
}
|
|
9272
|
+
/** Viewport paint stays on its pseudo-element; inherited ink belongs to the content owner. */
|
|
9273
|
+
function renderViewportBandPaint(target, rules) {
|
|
9274
|
+
const { top, bottom } = target.extent;
|
|
9275
|
+
const ownerRules = [
|
|
9276
|
+
`${top.customProperty}: ${top.value};`,
|
|
9277
|
+
`${bottom.customProperty}: ${bottom.value};`,
|
|
9278
|
+
`${top.ownerProperty}: var(${top.customProperty});`,
|
|
9279
|
+
...target.ownerNeedsPositioning ? ["position: relative;"] : [],
|
|
9280
|
+
"isolation: isolate;",
|
|
9281
|
+
"background: none;",
|
|
9282
|
+
"backdrop-filter: none;",
|
|
9283
|
+
"-webkit-backdrop-filter: none;",
|
|
9284
|
+
"border: 0;",
|
|
9285
|
+
"box-shadow: none;",
|
|
9286
|
+
...headerInkRules(rules)
|
|
9287
|
+
];
|
|
9288
|
+
const bandRules = [
|
|
9289
|
+
"content: \"\";",
|
|
9290
|
+
"position: absolute;",
|
|
9291
|
+
`top: calc(-1 * var(${top.customProperty}));`,
|
|
9292
|
+
`bottom: calc(-1 * var(${bottom.customProperty}));`,
|
|
9293
|
+
"left: 50%;",
|
|
9294
|
+
"width: 100vw;",
|
|
9295
|
+
"transform: translateX(-50%);",
|
|
9296
|
+
"pointer-events: none;",
|
|
9297
|
+
"border-radius: 0;",
|
|
9298
|
+
"z-index: -1;",
|
|
9299
|
+
...rules
|
|
9300
|
+
];
|
|
9301
|
+
return `${target.clipSelector} {\n overflow-x: clip;\n}\n${target.ownerSelector} {\n ${ownerRules.join("\n ")}\n}\n${target.selector} {\n ${bandRules.join("\n ")}\n}`;
|
|
9302
|
+
}
|
|
8973
9303
|
//#endregion
|
|
8974
9304
|
//#region ../theme-core/src/header/scrollTreatment.ts
|
|
8975
9305
|
const headerScrollTreatmentSchema = z.discriminatedUnion("kind", [z.object({
|
|
@@ -8990,7 +9320,8 @@ function generateHeaderScrollTreatmentStyles(treatment, themeId, variant, surfac
|
|
|
8990
9320
|
`background-color: rgb(${backgroundChannels} / 0.60);`,
|
|
8991
9321
|
`backdrop-filter: ${CONTRAST_GLASS_BLUR};`,
|
|
8992
9322
|
`-webkit-backdrop-filter: ${CONTRAST_GLASS_BLUR};`,
|
|
8993
|
-
...surfaceRules
|
|
9323
|
+
...surfaceRules,
|
|
9324
|
+
...surfaceInkDeclarations({ kind: "reset" }).map((rule) => rule.replace(";", " !important;"))
|
|
8994
9325
|
]);
|
|
8995
9326
|
}
|
|
8996
9327
|
}
|
|
@@ -9401,6 +9732,12 @@ const dropdownStyleSchema = z.object({
|
|
|
9401
9732
|
"md",
|
|
9402
9733
|
"lg"
|
|
9403
9734
|
]).default("md"),
|
|
9735
|
+
surfaceTreatment: z.discriminatedUnion("kind", [z.object({ kind: z.literal("solid") }), z.object({
|
|
9736
|
+
kind: z.literal("frosted"),
|
|
9737
|
+
tone: z.enum(["fixed", "opening"]),
|
|
9738
|
+
opacity: z.number().min(0).max(1),
|
|
9739
|
+
blur: z.enum(["sm", "md"])
|
|
9740
|
+
})]).optional(),
|
|
9404
9741
|
hoverBackground: themeColorTokenSchema.nullable().optional(),
|
|
9405
9742
|
hoverTextColor: themeColorTokenSchema.nullable().optional(),
|
|
9406
9743
|
textTransform: z.enum([
|
|
@@ -18070,4 +18407,4 @@ function ThemedAuthoredButton({ label, href, variant, size, extraClassName, disa
|
|
|
18070
18407
|
});
|
|
18071
18408
|
}
|
|
18072
18409
|
//#endregion
|
|
18073
|
-
export { headerInteractionPalettePair as $,
|
|
18410
|
+
export { headerInteractionPalettePair as $, unsafeAsCustomerPassId as $i, surfaceForegroundValue as $n, offeringsPreviewCompositionTreatmentValues as $r, borderColorStyle as $t, resolveButtonStyleSelection as A, repriceBookingCollectionOptions as Ai, surfaceInkPublication as An, asBlockOrderIndex as Ar, NAV_LINK_LETTER_SPACING_MAP as At, generateBaseInteractiveCSS as B, parseContentVersionId as Bi, resolveOpaqueSurfaceHex as Bn, defineBlockDesignCapability as Br, INPUT_SPACING_MAP as Bt, FileTextIcon as C, parseEventRegistrationErrorReason as Ci, resolveTokenOrCssColorValue as Cn, resolveManagedMediaReference as Cr, resolveBrandDisplay as Ct, buttonStyleSelectionParameterValue as D, planCheckoutPaymentFlow as Di, surfaceToneFromForegroundToken as Dn, arrangementModes as Dr, parseBlockCustomCssRules as Dt, buttonStyleHoverPreferenceValue as E, confirmationPaymentSchema as Ei, selectLogoVariant as En, skinTokenCssVars as Er, getComponentShadowVar as Et, buttonStyleSelectionsEqual as F, getBookingInstalmentPlanIntervalCount as Fi, getTextColorForBackground as Fn, asDesignSystemTemplateId as Fr, navLinkOwnsHoverForeground as Ft, containerStylesOverrideSchema as G, parseFormId as Gi, featuresFromHex as Gn, eyebrowTreatmentValues as Gr, ACCORDION_TRIGGER_LETTER_SPACING as Gt, parseThemeButtonVariantId as H, parseEditorSessionGeneration as Hi, defaultThemeTokens as Hn, defineFrameCapability as Hr, ACCORDION_OPEN_ACCENT_THICKNESS as Ht, generateButtonActionLayoutCss as I, formatCurrencyAmount as Ii, compositeHex$1 as In, asLayoutVariantKey as Ir, navLinkOwnsUnderline as It, sectionStylesOverrideSchema as J, parseSiteId as Ji, SURFACE_FOREGROUND_CSS_VARS as Jn, headingDecorationColorTokenValues as Jr, cardSurfacePaint as Jt, corners as K, parsePageId as Ki, hexToRgb as Kn, featureCardCompositionTreatmentValues as Kr, ICON_CONFIG as Kt, generateButtonCss as L, expectParsedBrandedId as Li, planForegroundHover as Ln, asPageFlowPresetId as Lr, navEffectPolicy as Lt, updateButtonStyleSelectionChoice as M, resolveBookingCollectionOptionFacts as Mi, _classPrivateFieldGet2 as Mn, asDesignBlockId as Mr, NAV_LINK_PADDING_X_MAP as Mt, buttonStyleSelectionKey as N, getBookingLaterInstalments as Ni, _classPrivateFieldSet2 as Nn, asDesignBoundaryId as Nr, NAV_LINK_TEXT_SIZE_MAP as Nt, defaultButtonStyleSelectionFor as O, planFlexibleBalanceCreditFirst as Oi, resolveSurfaceForeground as On, asAppearancePresetId as Or, parseCustomCssRules as Ot, buttonStyleSelectionSchema as P, validateBookingPaymentOptionKinds as Pi, expandPalette as Pn, asDesignPageId as Pr, navLinkHoverColorCandidate as Pt, runtimeBoxBackgroundSchema as Q, unsafeAsAppointmentServiceId as Qi, surfaceForegroundStyle as Qn, noHeadingDecoration as Qr, backgroundColorStyle as Qt, generateDefaultButtonSystem as R, parseApiKeyId as Ri, worstCaseGlassBackdrop as Rn, asSiteStyleId as Rr, FONT_WEIGHT_MAP$1 as Rt, FileSpreadsheetIcon as S, eventRegistrationErrors as Si, resolveThemeColorReferenceValue as Sn, indexRenderableMediaAssets as Sr, logoSizePolicyValues as St, PlusIcon as T, getStripeMinimumChargeRequirement as Ti, PUBLIC_BUTTON_ROLES as Tn, parseCanonicalMediaIdentifier as Tr, getComponentBorderWidthPx as Tt, parseThemeForPersistence as U, parseEventOfferingId as Ui, ORDINARY_TEXT_MIN_CONTRAST_RATIO as Un, designIssueSeverityForPolicy as Ur, ACCORDION_SPACING_MAP as Ut, generateInteractiveChildInheritanceCSS as V, parseEditorClientId as Vi, buildThemeTokens as Vn, defineExactCatalog as Vr, LABEL_FONT_SIZE_MAP as Vt, cardStylesOverrideSchema as W, parseEventSeriesId as Wi, _classPrivateFieldInitSpec as Wn, eventListTreatmentValues as Wr, ACCORDION_TRIGGER_FONT_SCALE as Wt, boxBackgroundOverlaySchema as X, parseUserId as Xi, surfaceForegroundDeclarations as Xn, isArrangementMode as Xr, renderCssDeclarations as Xt, themeSchema as Y, parseSiteTermsVersionId as Yi, SURFACE_INK_CSS_VARS as Yn, introCompositionTreatmentValues as Yr, generateCardCss as Yt, boxBackgroundSchema as Z, unsafeAsAppointmentResourceId as Zi, surfaceForegroundInputFromResolved as Zn, makeBoundaryId as Zr, TokenResolver as Zt, CirclePlusIcon as _, parseColorTokenParts as _i, gradientScrimSamples as _n, imageMediaSchema as _r, siteChromeBackgroundOverrideOwner as _t, ThemedDownloadLink as a, unsafeAsSiteId as aa, toNonEmptyReadonlyArray as ai, mapDrawingStyle as an, cardRoleSchema as ar, renderHeaderPaintTargetRules as at, FileArchiveIcon as b, checkBrowserStripeKey as bi, isCssColorLiteral as bn, buildRenderableMediaAssetIndex as br, brandDisplayModeValues as bt, isKnownIconName as c, buildGoogleFontFamilyQuery as ci, contrastThresholdByPolicy as cn, normalizeCardRole as cr, MQ_LG_UP as ct, resolveIconPickerPreset as d, getSiteFontsStorageUrl as di, prepareThemeSurfaceRevision as dn, paletteColorsEqual as dr, MQ_SM_UP as dt, unsafeAsFormId as ea, panelFrame as ei, cssVarValue as en, surfaceForegroundValueWithOpacity as er, headerInteractionPaletteValues as et, SEMANTIC_ICON_DEFINITIONS as f, VARIANT_ROLES as fi, resolveSurface as fn, paletteColorsSchema as fr, MQ_TABLET_ONLY as ft, CircleMinusIcon as g, parseBlockColorToken as gi, toAccessibleColorSurfaceIntent as gn, requirePaletteColorsFromEntries as gr, pageDesignEditorBackgroundOverrideOwner as gt, ChevronDownIcon as h, themeColorShadeSteps as hi, surfaceTransportContext as hn, paletteValueKeySchema as hr, isThemeV2NormalEditorRawStylePath as ht, ThemedButtonSpecimen as i, unsafeAsPositiveSeconds as ia, tileTreatmentValues as ii, textColorValue as in, generateShadowValue$1 as ir, getHeaderPaintTargets as it, updateButtonStyleHoverPreference as j, resolveAvailableBookingCollectionOptions as ji, solveSurfaceInks as jn, asBoundaryOptionId as jr, NAV_LINK_PADDING_MAP as jt, findButtonStyleRecipe as k, isBookingCollectionEquivalentToUpfront as ki, safeTokenOr as kn, asBlockContentVersionId as kr, NAV_LINK_BORDER_RADIUS_MAP as kt, ICON_PICKER_PRESETS as l, generateFontFaceCss as li, parseResolvedSurface as ln, hexColorSchema as lr, MQ_MD_DOWN as lt, ArrowDownIcon as m, parseThemeColorToken as mi, surfaceDecorationColors as mn, paletteValueKey as mr, isThemeV2NormalEditorRawStyleFieldName as mt, ThemedButton as n, unsafeAsPassId as na, requireNonEmptyReadonlyArray as ni, rgbColorValue as nn, surfaceInkStyle as nr, generateHeaderScrollTreatmentStyles as nt, getIconComponent as o, unsafeAsStorageBucketName as oa, visibleHeadingDecorationFamilyValues as oi, opaqueSurfaceContextFromTheme as on, cardRoleValues as or, BREAKPOINT_LG as ot, isSemanticIconId as p, unsafeAsOpaqueButtonColourToken as pi, serializeSurfaceTree as pn, paletteModeSchema as pr, headerVariantValues as pt, headerPositioningValues as q, parsePageSurfaceId as qi, DEFAULT_SURFACE_TEXT_COLOR as qn, flushPanelFrame as qr, ICON_SIZE_PX as qt, ThemedButtonLink as r, unsafeAsPositiveByteCount as ra, testimonialsCompositionTreatmentValues as ri, textColorStyle as rn, resolveCardRole as rr, generateMobileOverlayBackdropFilterFix as rt, getIconPickerOptionsForPreset as s, unsafeAsStoragePath as sa, buildFontPreviewUrl as si, opaqueSurfaceDeclarations as sn, cardVariantRoleValues as sr, BREAKPOINT_XL as st, ThemedAuthoredButton as t, unsafeAsMediaAssetId as ta, plainFrame as ti, mergeStyles as tn, surfaceInkDeclarations as tr, headerInteractionQuietPalette as tt, isIconPickerPreset as u, getFontWidthRange as ui, parseSurfaceTree as un, paletteColorEntries as ur, MQ_SM_DOWN as ut, ClockIcon as v, SpinnerNode as vi, minimumScrimOpacity as vn, mediaSchema as vr, stripStaleTransitionStyleGroup as vt, MinusIcon as w, checkoutCopy as wi, generateShadowValue as wn, mediaIdentifierSchema as wr, selectLogoAccommodation as wt, FileAudioIcon as x, eventRegistrationErrorEndsCommand as xi, resolveOnColorForThemeToken as xn, renderableMediaAssetSchema as xr, deterministicLogoFactsForShape as xt, ExternalLinkIcon as y, clsx as yi, scrimTone as yn, runtimeMediaSchema as yr, themeV2RuntimeStyleFieldNames as yt, generateEffectsCSS as z, parseContentEntryId as zi, resolveConcreteColorHex as zn, assertNever as zr, INPUT_FONT_SIZE_MAP as zt };
|