@riverbankcms/sdk 0.183.0 → 0.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
- package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.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 +10 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +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 +36 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +19 -8
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
- package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
- package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
- package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
- package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
- package/dist/client/client.mjs +61 -48
- package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
- package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
- package/dist/client/gifting/client.mjs +8 -8
- package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
- package/dist/client/portal/client.mjs +999 -81
- package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
- package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
- package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
- package/dist/client/src-CXOxpNtj.mjs +3 -0
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
- package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
- package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
- package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +158 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
- package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
- 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 +9 -9
- package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
- package/dist/styles/index.css +684 -181
- package/package.json +1 -1
- package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/client/src-DqMbCjI1.mjs +0 -3
- package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,75 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { A as
|
|
1
|
+
import { $ as parseColorTokenParts, K as hexColorSchema, L as rgbColorValue, W as absoluteInkColors, _ as isFreeButtonRadius, a as createStandardButtonSurfacePolicy, b as VARIANT_ROLES, et as parseThemeColorToken, h as BUTTON_PART_NAMES, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, u as buttonSystemSchema, v as parseButtonPartValue, w as completeSurfaceForegrounds } from "./types-CcKy8_tj.mjs";
|
|
2
|
+
import { A as deriveSurfaceDecorationColors, H as resolveConcreteColorHex, I as onColorTokenName, J as paletteInkRoles, K as paletteInk, L as pickBlackOrWhiteTextColor, M as deriveSurfaceMutedColor, N as expandPalette, R as compositeHex, U as resolveOpaqueSurfaceHex, W as inkFrom, X as colourFamily, Y as paletteInkToken, at as solidPaint, ct as hexToRgb, d as generateShadowValue, dt as oklabToSrgb, et as ORDINARY_TEXT_MIN_CONTRAST_RATIO, it as preparePaletteColourIndex, j as deriveSurfaceLineColor, l as ELEVATION_OFFSET, mt as rgbToHex, n as compileButtonColourStates, nt as hexLuminance, o as BORDER_RADIUS_MAP, ot as worstContrast, pt as oklchToOklab, q as paletteInkOnSolid, rt as luminanceInterval, s as BORDER_WIDTH_MAP, st as featuresFromHex, t as buttonStateBorder, tt as contrastRatio, u as FONT_SIZE_MAP } from "./resolveButtonColourStates-ChlP4NJ9.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
/**
|
|
5
|
-
* Derive the hover foreground that belongs with a resolved resting foreground.
|
|
6
|
-
*
|
|
7
|
-
* A resting foreground is chosen to be legible against a known surface. A hover
|
|
8
|
-
* state derived from it stays within a bounded distance of that colour, so it
|
|
9
|
-
* inherits most of the resting colour's contrast margin instead of asserting
|
|
10
|
-
* an unrelated brand colour that no one checked against the surface.
|
|
11
|
-
*
|
|
12
|
-
* That bounded-distance property is what lets this be used on a transparent
|
|
13
|
-
* overlay header, where the backdrop is only partly knowable: the scrolled
|
|
14
|
-
* state composites a 60% glass tint over arbitrary page content, so no
|
|
15
|
-
* compile-time contrast proof is available there. Staying near a colour that
|
|
16
|
-
* is already trusted in both states is a weaker claim than a contrast proof,
|
|
17
|
-
* and it is one this function can actually keep.
|
|
18
|
-
*
|
|
19
|
-
* Returns `null` when the resting token is not a plain palette token — an
|
|
20
|
-
* already-faded or raw value has no well-defined softening, and the caller
|
|
21
|
-
* should leave hover alone rather than guess.
|
|
22
|
-
*/
|
|
23
|
-
function deriveForegroundHoverToken(restingToken) {
|
|
24
|
-
const parts = parseColorTokenParts(restingToken);
|
|
25
|
-
if (parts.kind !== "token") return null;
|
|
26
|
-
if (parts.opacityPercent !== null) return null;
|
|
27
|
-
return parseThemeColorToken(`${parts.token}/85`);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Prefer an authored hover that survives every measured backdrop, then a
|
|
31
|
-
* checked softening of the resting colour. A null backdrop set represents a
|
|
32
|
-
* trusted treatment: only an explicit authored hover may change the colour.
|
|
33
|
-
* When neither option works, retain the resting colour and underline it.
|
|
34
|
-
*/
|
|
35
|
-
function planForegroundHover(input) {
|
|
36
|
-
const { restingToken, candidate, palette, backdrops } = input;
|
|
37
|
-
if (candidate && String(candidate) !== String(restingToken)) {
|
|
38
|
-
if (backdrops === null || survivesEveryBackdrop(candidate, palette, backdrops)) return {
|
|
39
|
-
kind: "candidate",
|
|
40
|
-
token: candidate,
|
|
41
|
-
decoration: "initial"
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
const resting = parseThemeColorToken(restingToken);
|
|
45
|
-
const softened = resting ? deriveForegroundHoverToken(resting) : null;
|
|
46
|
-
if (softened && backdrops && survivesEveryBackdrop(softened, palette, backdrops)) return {
|
|
47
|
-
kind: "softened",
|
|
48
|
-
token: softened,
|
|
49
|
-
decoration: "initial"
|
|
50
|
-
};
|
|
51
|
-
return {
|
|
52
|
-
kind: "resting",
|
|
53
|
-
token: restingToken,
|
|
54
|
-
decoration: "underline"
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function survivesEveryBackdrop(token, palette, backdrops) {
|
|
58
|
-
return backdrops.length > 0 && backdrops.every((backdrop) => {
|
|
59
|
-
const foreground = resolveOpaqueSurfaceHex(token, palette, backdrop);
|
|
60
|
-
return foreground !== null && contrastRatio(foreground, backdrop) >= 4.5;
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region ../site-contracts/src/renderResults/buttonTypes.ts
|
|
65
|
-
const BUTTON_VISUAL_STATES = [
|
|
66
|
-
"base",
|
|
67
|
-
"hover",
|
|
68
|
-
"focus",
|
|
69
|
-
"active",
|
|
70
|
-
"disabled"
|
|
71
|
-
];
|
|
72
|
-
//#endregion
|
|
73
4
|
//#region ../theme-core/src/surfaces/inkCertificate.ts
|
|
74
5
|
/**
|
|
75
6
|
* The ink certificate: every colour the site paints text or a mark on is held to
|
|
@@ -102,17 +33,20 @@ const surfaceTextPolicy = Object.freeze({
|
|
|
102
33
|
* the current-page link) keep the text threshold.
|
|
103
34
|
*/
|
|
104
35
|
const HOVER_TEXT_THRESHOLD = contrastThresholdByPolicy["large-text-aa"];
|
|
105
|
-
|
|
106
|
-
const isFallbackInk = (ink) => FALLBACK_INKS.includes(ink);
|
|
107
|
-
function inkReference(ink) {
|
|
108
|
-
return isFallbackInk(ink) ? `raw:${ink}` : ink;
|
|
109
|
-
}
|
|
110
|
-
/** A token, `rgba()` or literal, composited over each backdrop, clears the threshold on all of them. */
|
|
36
|
+
/** A sampled paint is continuous: also reject an ink whose luminance lies between its bounds. */
|
|
111
37
|
function inkClearsBackdrops(ink, threshold, backdrops, measurement) {
|
|
112
|
-
|
|
38
|
+
if (backdrops.length === 0) return true;
|
|
39
|
+
const readings = backdrops.flatMap((backdrop) => {
|
|
113
40
|
const hex = resolveOpaqueSurfaceHex(ink, measurement.palette, backdrop);
|
|
114
|
-
return hex
|
|
41
|
+
return hex === null ? [] : [{
|
|
42
|
+
ink: hexLuminance(hex, measurement.colourIndex),
|
|
43
|
+
ground: hexLuminance(backdrop, measurement.colourIndex)
|
|
44
|
+
}];
|
|
115
45
|
});
|
|
46
|
+
if (readings.length !== backdrops.length) return false;
|
|
47
|
+
const ground = luminanceInterval(Math.min(...readings.map((value) => value.ground)), Math.max(...readings.map((value) => value.ground)));
|
|
48
|
+
const inks = luminanceInterval(Math.min(...readings.map((value) => value.ink)), Math.max(...readings.map((value) => value.ink)));
|
|
49
|
+
return (inks.hi < ground.lo ? worstContrast(inks.hi, ground) : inks.lo > ground.hi ? worstContrast(inks.lo, ground) : 1) >= threshold;
|
|
116
50
|
}
|
|
117
51
|
/** The palette ink that clears every backdrop at ordinary-text contrast, or null when not even black or white does. */
|
|
118
52
|
function fallbackInk(backdrops, measurement) {
|
|
@@ -182,6 +116,72 @@ function certifyPaint(place, ink, threshold, backdrop, measurement) {
|
|
|
182
116
|
declared: ink
|
|
183
117
|
};
|
|
184
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Derive the hover foreground that belongs with a resolved resting foreground.
|
|
121
|
+
*
|
|
122
|
+
* A resting foreground is chosen to be legible against a known surface. A hover
|
|
123
|
+
* state derived from it stays within a bounded distance of that colour, so it
|
|
124
|
+
* inherits most of the resting colour's contrast margin instead of asserting
|
|
125
|
+
* an unrelated brand colour that no one checked against the surface.
|
|
126
|
+
*
|
|
127
|
+
* That bounded-distance property is what lets this be used on a transparent
|
|
128
|
+
* overlay header, where the backdrop is only partly knowable: the scrolled
|
|
129
|
+
* state composites a 60% glass tint over arbitrary page content, so no
|
|
130
|
+
* compile-time contrast proof is available there. Staying near a colour that
|
|
131
|
+
* is already trusted in both states is a weaker claim than a contrast proof,
|
|
132
|
+
* and it is one this function can actually keep.
|
|
133
|
+
*
|
|
134
|
+
* Returns `null` when the resting token is not a plain palette token — an
|
|
135
|
+
* already-faded or raw value has no well-defined softening, and the caller
|
|
136
|
+
* should leave hover alone rather than guess.
|
|
137
|
+
*/
|
|
138
|
+
function deriveForegroundHoverToken(restingToken) {
|
|
139
|
+
const parts = parseColorTokenParts(restingToken);
|
|
140
|
+
if (parts.kind !== "token") return null;
|
|
141
|
+
if (parts.opacityPercent !== null) return null;
|
|
142
|
+
if (parts.token === "absoluteBlack" || parts.token === "absoluteWhite") return null;
|
|
143
|
+
return parseThemeColorToken(`${parts.token}/85`);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Prefer an authored hover that survives every measured backdrop, then a
|
|
147
|
+
* checked softening of the resting colour. A null backdrop set represents a
|
|
148
|
+
* trusted treatment: only an explicit authored hover may change the colour.
|
|
149
|
+
* When neither option works, retain the resting colour and underline it.
|
|
150
|
+
*/
|
|
151
|
+
function planForegroundHover(input) {
|
|
152
|
+
const { restingToken, candidate, palette, backdrops } = input;
|
|
153
|
+
if (candidate && String(candidate) !== String(restingToken)) {
|
|
154
|
+
if (backdrops === null || survivesEveryBackdrop(candidate, palette, backdrops)) return {
|
|
155
|
+
kind: "candidate",
|
|
156
|
+
token: candidate,
|
|
157
|
+
decoration: "initial"
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
const resting = parseThemeColorToken(restingToken);
|
|
161
|
+
const softened = resting ? deriveForegroundHoverToken(resting) : null;
|
|
162
|
+
if (softened && backdrops && survivesEveryBackdrop(softened, palette, backdrops)) return {
|
|
163
|
+
kind: "softened",
|
|
164
|
+
token: softened,
|
|
165
|
+
decoration: "initial"
|
|
166
|
+
};
|
|
167
|
+
return {
|
|
168
|
+
kind: "resting",
|
|
169
|
+
token: restingToken,
|
|
170
|
+
decoration: "underline"
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function survivesEveryBackdrop(token, palette, backdrops) {
|
|
174
|
+
return backdrops.length > 0 && inkClearsBackdrops(token, 4.5, backdrops, { palette });
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region ../site-contracts/src/renderResults/buttonTypes.ts
|
|
178
|
+
const BUTTON_VISUAL_STATES = [
|
|
179
|
+
"base",
|
|
180
|
+
"hover",
|
|
181
|
+
"focus",
|
|
182
|
+
"active",
|
|
183
|
+
"disabled"
|
|
184
|
+
];
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region ../theme-core/src/surfaces/surfaceInks.ts
|
|
187
187
|
/** Lines and focus rings are graphics: WCAG non-text contrast. */
|
|
@@ -217,9 +217,10 @@ const INK_SEEDS = {
|
|
|
217
217
|
* missing, or can only clear the paint by drifting too far from itself.
|
|
218
218
|
* A block owner can supply an authored shade candidate for a local ink.
|
|
219
219
|
*/
|
|
220
|
-
function solveSurfaceInks(
|
|
221
|
-
const
|
|
222
|
-
const
|
|
220
|
+
function solveSurfaceInks(backdrop, textInk, palette, candidates = {}) {
|
|
221
|
+
const [backdropHex] = typeof backdrop === "string" ? [backdrop] : backdrop;
|
|
222
|
+
const paint = typeof backdrop === "string" ? solidPaint(backdrop) : sampledInkPaint(backdrop);
|
|
223
|
+
const fallback = literalInk(resolveConcreteColorHex(textInk, palette) ?? pickBlackOrWhiteTextColor(backdropHex));
|
|
223
224
|
return {
|
|
224
225
|
brand: solveInk({
|
|
225
226
|
...INK_SEEDS.brand,
|
|
@@ -245,12 +246,12 @@ function solveInk(seed, paint, palette, fallback) {
|
|
|
245
246
|
if (!token || !seedHex.success) return fallback;
|
|
246
247
|
const solved = inkFrom(familyOf(seedHex.data), paint, seed.ratio, seed.maxDistance);
|
|
247
248
|
switch (solved.kind) {
|
|
248
|
-
case "ink": return solved.source === "exact" ? token : literalInk
|
|
249
|
+
case "ink": return solved.source === "exact" ? token : literalInk(solved.hex);
|
|
249
250
|
case "too-far":
|
|
250
251
|
case "unpaintable": return fallback;
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
|
-
function literalInk
|
|
254
|
+
function literalInk(hex) {
|
|
254
255
|
return hexColorSchema.parse(hex.toLowerCase());
|
|
255
256
|
}
|
|
256
257
|
const FAMILY_CACHE_LIMIT = 64;
|
|
@@ -263,6 +264,11 @@ function familyOf(seed) {
|
|
|
263
264
|
families.set(seed, family);
|
|
264
265
|
return family;
|
|
265
266
|
}
|
|
267
|
+
/** The same solver holds local inks against the whole finished ground's luminance range. */
|
|
268
|
+
function sampledInkPaint(backdrops) {
|
|
269
|
+
const luminances = backdrops.map((colour) => hexLuminance(colour));
|
|
270
|
+
return luminanceInterval(Math.min(...luminances), Math.max(...luminances));
|
|
271
|
+
}
|
|
266
272
|
//#endregion
|
|
267
273
|
//#region ../theme-core/src/surfaces/resolveSurfaceForeground.ts
|
|
268
274
|
const CANONICAL_EQUIVALENT_TOKEN_ORDER = [
|
|
@@ -363,19 +369,33 @@ function resolveTrustedTreatmentForeground(candidates, palette) {
|
|
|
363
369
|
}, { kind: "trusted-treatment" }, candidates.linkHover, palette);
|
|
364
370
|
}
|
|
365
371
|
function knownForeground(roles, provenance, hoverCandidate, palette) {
|
|
372
|
+
return {
|
|
373
|
+
kind: "known",
|
|
374
|
+
provenance,
|
|
375
|
+
...deriveSurfaceForegroundDetails(roles, {
|
|
376
|
+
palette,
|
|
377
|
+
hoverCandidate,
|
|
378
|
+
ground: provenance.kind === "measured" ? provenance.backdropHex : void 0,
|
|
379
|
+
backdrops: provenance.kind === "measured" ? provenance.backdropSamples ?? [provenance.backdropHex] : null
|
|
380
|
+
})
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
/** Normal muted and hover derivation, using all of a sampled paint rather than one stop. */
|
|
384
|
+
function deriveSurfaceForegroundDetails(roles, input) {
|
|
385
|
+
const { palette, ground, backdrops } = input;
|
|
366
386
|
const hover = planForegroundHover({
|
|
367
387
|
restingToken: roles.link,
|
|
368
|
-
candidate: canonicalHoverToken(hoverCandidate, palette),
|
|
388
|
+
candidate: canonicalHoverToken(input.hoverCandidate ?? null, palette),
|
|
369
389
|
palette,
|
|
370
|
-
backdrops
|
|
390
|
+
backdrops
|
|
371
391
|
});
|
|
392
|
+
const text = resolveConcreteColorHex(roles.text, palette);
|
|
393
|
+
const muted = ground && backdrops ? deriveSurfaceMutedColor(ground, text, backdrops, paletteInkRoles(palette)) : roles.text;
|
|
372
394
|
return {
|
|
373
|
-
kind: "known",
|
|
374
|
-
provenance,
|
|
375
395
|
roles: {
|
|
376
396
|
...roles,
|
|
377
397
|
linkHover: hover.token,
|
|
378
|
-
muted
|
|
398
|
+
muted
|
|
379
399
|
},
|
|
380
400
|
hoverDecoration: hover.decoration
|
|
381
401
|
};
|
|
@@ -420,18 +440,17 @@ function firstSafeToken(candidates, backgroundHex, palette, preferredEquivalentT
|
|
|
420
440
|
}
|
|
421
441
|
/**
|
|
422
442
|
* A media treatment's ink as the resolved contract spells it. Nothing measures
|
|
423
|
-
* the paint, so
|
|
424
|
-
*
|
|
425
|
-
* today, or being dropped when none does. Any other reference is a palette token.
|
|
443
|
+
* the paint, so black or white (the photo tint's fallback) uses its fixed token
|
|
444
|
+
* rather than borrowing a palette role with the same value today. Any other reference is a palette token.
|
|
426
445
|
* Measured solids keep `firstSafeToken`, whose equivalent on-colour carries the
|
|
427
446
|
* ground's own hover softening.
|
|
428
447
|
*/
|
|
429
448
|
function canonicalInk(reference, palette) {
|
|
430
|
-
return
|
|
449
|
+
return absoluteInk(reference) ?? canonicalToken(reference, palette);
|
|
431
450
|
}
|
|
432
|
-
function
|
|
451
|
+
function absoluteInk(reference) {
|
|
433
452
|
const normalized = normalizedReference(reference)?.toUpperCase();
|
|
434
|
-
return normalized === "#000000"
|
|
453
|
+
return parseThemeColorToken(normalized === "#000000" ? "absoluteBlack" : normalized === "#FFFFFF" ? "absoluteWhite" : null);
|
|
435
454
|
}
|
|
436
455
|
function canonicalToken(reference, palette, preferredEquivalentTokens = []) {
|
|
437
456
|
const normalized = normalizedReference(reference);
|
|
@@ -1553,8 +1572,7 @@ function resolveKnownColour(value, palette) {
|
|
|
1553
1572
|
const reference = parseThemeColorReference(value, { palette });
|
|
1554
1573
|
if (reference.kind !== "literal-css") {
|
|
1555
1574
|
const token = String(reference.token);
|
|
1556
|
-
const
|
|
1557
|
-
const hex = paletteHex ? normalizeOpaqueHex(paletteHex) : null;
|
|
1575
|
+
const hex = resolveConcreteColorHex(token, palette);
|
|
1558
1576
|
if (hex) return {
|
|
1559
1577
|
hex,
|
|
1560
1578
|
css: resolveThemeColorReferenceValue(value, { palette }),
|
|
@@ -1752,8 +1770,8 @@ const surfaceRecipes = {
|
|
|
1752
1770
|
}
|
|
1753
1771
|
};
|
|
1754
1772
|
const missingBackgroundTokens = {
|
|
1755
|
-
background: "
|
|
1756
|
-
foreground: "
|
|
1773
|
+
background: "absoluteWhite",
|
|
1774
|
+
foreground: "absoluteBlack"
|
|
1757
1775
|
};
|
|
1758
1776
|
function toAccessibleColorSurfaceIntent(surface) {
|
|
1759
1777
|
switch (surface) {
|
|
@@ -1972,8 +1990,7 @@ function expandForegroundCandidate(candidate, backgroundToken) {
|
|
|
1972
1990
|
}
|
|
1973
1991
|
}
|
|
1974
1992
|
function readPaletteHex(palette, token) {
|
|
1975
|
-
|
|
1976
|
-
return typeof value === "string" && value.trim().length > 0 ? value : null;
|
|
1993
|
+
return resolveConcreteColorHex(token, palette);
|
|
1977
1994
|
}
|
|
1978
1995
|
function asAccessibleSurfaceToken(token) {
|
|
1979
1996
|
if (token.length === 0) throw new Error("AccessibleSurfaceToken must be non-empty.");
|
|
@@ -1983,11 +2000,11 @@ function surfaceResolutionFailureReason(rejectedCandidates) {
|
|
|
1983
2000
|
return rejectedCandidates.some((candidate) => candidate.kind === "foreground-candidate") ? "no-safe-foreground-candidate" : "no-background-candidate";
|
|
1984
2001
|
}
|
|
1985
2002
|
function missingBackgroundSurface(input) {
|
|
1986
|
-
const contrast = contrastRatio(missingBackgroundTokens.foreground, missingBackgroundTokens.background);
|
|
2003
|
+
const contrast = contrastRatio(absoluteInkColors[missingBackgroundTokens.foreground], absoluteInkColors[missingBackgroundTokens.background]);
|
|
1987
2004
|
const foreground = {
|
|
1988
2005
|
kind: "safe-token",
|
|
1989
2006
|
token: asAccessibleSurfaceToken(missingBackgroundTokens.foreground),
|
|
1990
|
-
hex: missingBackgroundTokens.foreground,
|
|
2007
|
+
hex: absoluteInkColors[missingBackgroundTokens.foreground],
|
|
1991
2008
|
contrastRatio: contrast
|
|
1992
2009
|
};
|
|
1993
2010
|
return {
|
|
@@ -1995,7 +2012,7 @@ function missingBackgroundSurface(input) {
|
|
|
1995
2012
|
surface: input.surface,
|
|
1996
2013
|
background: {
|
|
1997
2014
|
token: asAccessibleSurfaceToken(missingBackgroundTokens.background),
|
|
1998
|
-
hex: missingBackgroundTokens.background,
|
|
2015
|
+
hex: absoluteInkColors[missingBackgroundTokens.background],
|
|
1999
2016
|
inherited: false
|
|
2000
2017
|
},
|
|
2001
2018
|
heading: {
|
|
@@ -2098,6 +2115,7 @@ function prepareSurfaceIndex(specs, context) {
|
|
|
2098
2115
|
colourIndex: context.colourIndex,
|
|
2099
2116
|
linkHoverToken: context.linkHoverToken,
|
|
2100
2117
|
foreground: context.foreground,
|
|
2118
|
+
backdropSamples: context.backdropSamples,
|
|
2101
2119
|
compositeBase: context.compositeBase,
|
|
2102
2120
|
buttonContext: context.buttonContext,
|
|
2103
2121
|
solvedInks: context.solvedInks
|
|
@@ -2150,6 +2168,7 @@ function surfaceResolutionKey(spec, context) {
|
|
|
2150
2168
|
declaration,
|
|
2151
2169
|
context.linkHoverToken,
|
|
2152
2170
|
context.foreground,
|
|
2171
|
+
context.backdropSamples,
|
|
2153
2172
|
context.compositeBase,
|
|
2154
2173
|
context.buttonContext,
|
|
2155
2174
|
context.solvedInks
|
|
@@ -2306,7 +2325,7 @@ function withCertifiedButtons(decision, context) {
|
|
|
2306
2325
|
}
|
|
2307
2326
|
/** A radial tint's grounds besides its painted end, so its buttons are judged on every sample. */
|
|
2308
2327
|
function tintGroundSamples(decision, context) {
|
|
2309
|
-
if (decision.tintBase === void 0) return void 0;
|
|
2328
|
+
if (decision.tintBase === void 0 && !decision.backdropSamples) return void 0;
|
|
2310
2329
|
const [first, ...rest] = surfaceBackdrops(decision, context).slice(0, -1);
|
|
2311
2330
|
return first === void 0 ? void 0 : [first, ...rest];
|
|
2312
2331
|
}
|
|
@@ -2326,15 +2345,13 @@ function surfaceContrast(roles, backdrop, palette, colourIndex) {
|
|
|
2326
2345
|
}
|
|
2327
2346
|
/** Runtime backgrounds retain authored media, compositing and unknown foregrounds. */
|
|
2328
2347
|
function resolveSectionSurface(background, context) {
|
|
2329
|
-
const foreground =
|
|
2330
|
-
linkHover: context.linkHoverToken,
|
|
2331
|
-
...context.foreground
|
|
2332
|
-
}, { compositeBase: context.compositeBase });
|
|
2348
|
+
const foreground = sectionSurfaceForeground(background, context);
|
|
2333
2349
|
const surface = background === null ? { kind: "inherit" } : background.type === "color" ? {
|
|
2334
2350
|
kind: "solid",
|
|
2335
2351
|
color: background.color,
|
|
2336
2352
|
composited: false,
|
|
2337
|
-
foreground: foreground.kind === "known" ? foreground.roles.link : void 0
|
|
2353
|
+
foreground: foreground.kind === "known" ? foreground.roles.link : void 0,
|
|
2354
|
+
backgroundSamples: nonemptySamples(context.backdropSamples)
|
|
2338
2355
|
} : background.type === "gradient" ? { kind: "gradient" } : { kind: "image" };
|
|
2339
2356
|
const revision = ownSurfaceRevision(context);
|
|
2340
2357
|
const buttonContext = resolveSurfaceButtonContext({
|
|
@@ -2371,7 +2388,14 @@ function surfaceDecorationColors(foreground, palette) {
|
|
|
2371
2388
|
if (foreground.kind !== "known" || foreground.provenance.kind !== "measured") return void 0;
|
|
2372
2389
|
const text = resolveConcreteColorHex(foreground.roles.text, palette);
|
|
2373
2390
|
if (text === null) return void 0;
|
|
2374
|
-
|
|
2391
|
+
const decorations = deriveSurfaceDecorationColors(foreground.provenance.backdropHex, text, palette.markSource ?? palette.accent ?? text);
|
|
2392
|
+
if (!foreground.provenance.backdropSamples) return decorations;
|
|
2393
|
+
const samples = foreground.provenance.backdropSamples;
|
|
2394
|
+
const line = deriveSurfaceLineColor(samples[samples.length - 1] ?? foreground.provenance.backdropHex, text, samples);
|
|
2395
|
+
return {
|
|
2396
|
+
...decorations,
|
|
2397
|
+
line
|
|
2398
|
+
};
|
|
2375
2399
|
}
|
|
2376
2400
|
/** Composite the declared palette tint before checking every foreground role. */
|
|
2377
2401
|
function resolveTintSurface(spec, context) {
|
|
@@ -2379,12 +2403,8 @@ function resolveTintSurface(spec, context) {
|
|
|
2379
2403
|
kind: "token",
|
|
2380
2404
|
token: spec.base
|
|
2381
2405
|
}, context);
|
|
2382
|
-
const
|
|
2383
|
-
|
|
2384
|
-
const hex = source ? resolveConcreteColorHex(source, context.palette) : null;
|
|
2385
|
-
const tinted = token ?? (hex ? resolveOpaqueSurfaceHex(hexToRgba(hex, spec.opacity / 100), context.palette, spec.base) : null);
|
|
2386
|
-
if (!tinted) throw new Error(`Cannot derive tint on ${spec.base}`);
|
|
2387
|
-
const solid = resolveDeclaredSolidSurface({
|
|
2406
|
+
const { hex, tinted } = tintColour(spec, tintSource(spec.source, base, context.palette), context);
|
|
2407
|
+
if (spec.gradient !== "radial" && !context.backdropSamples) return resolveDeclaredSolidSurface({
|
|
2388
2408
|
kind: "solid",
|
|
2389
2409
|
token: tinted
|
|
2390
2410
|
}, {
|
|
@@ -2392,11 +2412,64 @@ function resolveTintSurface(spec, context) {
|
|
|
2392
2412
|
buttonContext: surfaceButtonRequest(spec, context),
|
|
2393
2413
|
foreground: base.foreground
|
|
2394
2414
|
});
|
|
2395
|
-
|
|
2415
|
+
const solid = {
|
|
2416
|
+
kind: "owned",
|
|
2417
|
+
paint: {
|
|
2418
|
+
kind: "solid",
|
|
2419
|
+
token: tinted
|
|
2420
|
+
},
|
|
2421
|
+
foreground: base.foreground,
|
|
2422
|
+
decorations: tintDecorations(spec, base, tinted, context),
|
|
2423
|
+
inks: base.inks,
|
|
2424
|
+
hoverDecoration: base.hoverDecoration,
|
|
2425
|
+
contrast: surfaceContrast(base.foreground, tinted, context.palette, context.colourIndex),
|
|
2426
|
+
primaryButton: surfaceButtonRequest(spec, context)
|
|
2427
|
+
};
|
|
2428
|
+
const samples = context.backdropSamples ? tintSamples(spec, hex, tinted, context.backdropSamples) : void 0;
|
|
2429
|
+
const sampled = samples ? {
|
|
2396
2430
|
...solid,
|
|
2397
|
-
|
|
2398
|
-
tintBase: spec.base
|
|
2431
|
+
backdropSamples: samples
|
|
2399
2432
|
} : solid;
|
|
2433
|
+
return {
|
|
2434
|
+
kind: "tint",
|
|
2435
|
+
painted: spec.gradient === "radial" ? {
|
|
2436
|
+
...sampled,
|
|
2437
|
+
inks: { kind: "reset" },
|
|
2438
|
+
tintBase: spec.base
|
|
2439
|
+
} : sampled,
|
|
2440
|
+
original: base
|
|
2441
|
+
};
|
|
2442
|
+
}
|
|
2443
|
+
/**
|
|
2444
|
+
* Decoration colours (mark, line) are chosen against the paint they sit on. A radial glow fades from
|
|
2445
|
+
* the tint back to its base, so its decorations must clear both ends; a mark that does keeps the glow.
|
|
2446
|
+
*/
|
|
2447
|
+
function tintDecorations(spec, base, tinted, context) {
|
|
2448
|
+
const { palette } = context;
|
|
2449
|
+
const tintHex = resolveOpaqueSurfaceHex(tinted, palette, context.compositeBase);
|
|
2450
|
+
const baseHex = resolveOpaqueSurfaceHex(base.paint.token, palette, context.compositeBase);
|
|
2451
|
+
const text = resolveConcreteColorHex(base.foreground.text, palette);
|
|
2452
|
+
if (tintHex === null || baseHex === null || text === null || !base.decorations) return base.decorations;
|
|
2453
|
+
const backdrops = spec.gradient === "radial" ? [tintHex, baseHex] : [tintHex];
|
|
2454
|
+
return deriveSurfaceDecorationColors(tintHex, text, palette.markSource ?? palette.accent ?? text, backdrops);
|
|
2455
|
+
}
|
|
2456
|
+
/** The tint's opaque paint, and its source as a concrete hex when it has one. */
|
|
2457
|
+
function tintColour(spec, source, context) {
|
|
2458
|
+
const token = source ? resolveOpaqueSurfaceHex(`${source}/${spec.opacity}`, context.palette, spec.base) : null;
|
|
2459
|
+
const hex = source ? resolveConcreteColorHex(source, context.palette) : null;
|
|
2460
|
+
const tinted = token ?? (hex ? resolveOpaqueSurfaceHex(hexToRgba(hex, spec.opacity / 100), context.palette, spec.base) : null);
|
|
2461
|
+
if (!tinted) throw new Error(`Cannot derive tint on ${spec.base}`);
|
|
2462
|
+
return {
|
|
2463
|
+
hex,
|
|
2464
|
+
tinted
|
|
2465
|
+
};
|
|
2466
|
+
}
|
|
2467
|
+
/** Every colour a tint shows over each backdrop: its end, or each step of a radial. */
|
|
2468
|
+
function tintSamples(spec, hex, tinted, backdrops) {
|
|
2469
|
+
return backdrops.flatMap((backdrop) => {
|
|
2470
|
+
const end = hex ? compositeHex(hex, spec.opacity / 100, backdrop) : tinted;
|
|
2471
|
+
return spec.gradient === "radial" ? TINT_SAMPLE_ALPHAS.map((alpha) => compositeHex(end, alpha, backdrop)) : [end];
|
|
2472
|
+
});
|
|
2400
2473
|
}
|
|
2401
2474
|
/**
|
|
2402
2475
|
* The button colour a surface asks for, which it also hands to what is painted on it. An explicit request
|
|
@@ -2419,7 +2492,7 @@ function tintSource(source, base, palette) {
|
|
|
2419
2492
|
case "mark": return base.decorations?.mark;
|
|
2420
2493
|
case "shade": {
|
|
2421
2494
|
const background = resolveOpaqueSurfaceHex("background", palette, "background");
|
|
2422
|
-
return background && featuresFromHex(background).Y < .5 ? "
|
|
2495
|
+
return background && featuresFromHex(background).Y < .5 ? "absoluteWhite" : "absoluteBlack";
|
|
2423
2496
|
}
|
|
2424
2497
|
}
|
|
2425
2498
|
}
|
|
@@ -2487,6 +2560,7 @@ const surfaceTransportSchema = z.object({ $surface: z.object({
|
|
|
2487
2560
|
buttonSystem: buttonSystemSchema.optional(),
|
|
2488
2561
|
foreground: foregroundInputSchema.optional(),
|
|
2489
2562
|
linkHoverToken: z.string().optional(),
|
|
2563
|
+
backdropSamples: z.array(z.string()).optional(),
|
|
2490
2564
|
compositeBase: z.string().optional(),
|
|
2491
2565
|
buttonContext: buttonInputSchema.optional(),
|
|
2492
2566
|
solvedInks: solvedInksSchema.optional()
|
|
@@ -2521,6 +2595,7 @@ function certifySurface(spec, context) {
|
|
|
2521
2595
|
...ownedThemeSnapshot({
|
|
2522
2596
|
foreground: context.foreground,
|
|
2523
2597
|
linkHoverToken: context.linkHoverToken,
|
|
2598
|
+
backdropSamples: context.backdropSamples,
|
|
2524
2599
|
compositeBase: context.compositeBase,
|
|
2525
2600
|
buttonContext: context.buttonContext,
|
|
2526
2601
|
solvedInks: context.solvedInks
|
|
@@ -2557,59 +2632,97 @@ const TINT_SAMPLE_ALPHAS = [
|
|
|
2557
2632
|
];
|
|
2558
2633
|
/**
|
|
2559
2634
|
* The certificate asserts every threshold it measures, on every backdrop the
|
|
2560
|
-
* paint shows
|
|
2561
|
-
*
|
|
2562
|
-
*
|
|
2563
|
-
* certified inks, so they never keep a link ink the certificate replaced, and
|
|
2635
|
+
* paint shows. A sampled tint keeps its original declared inks and mark or
|
|
2636
|
+
* returns to its original ground. Solid paints retain black/white fallback.
|
|
2637
|
+
* Buttons are derived from the certified inks, so they never keep a link ink the certificate replaced, and
|
|
2564
2638
|
* the button resolver judges them on every sample of a radial tint.
|
|
2565
2639
|
*/
|
|
2566
2640
|
function certifyThresholds(decision, context) {
|
|
2641
|
+
if (decision.kind === "tint") return certifyTintPaint(decision, context);
|
|
2567
2642
|
if (!isSolidInkDecision(decision)) return decision;
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2643
|
+
return withCertifiedButtons(withFallbackInks(decision, context) ?? decision, context);
|
|
2644
|
+
}
|
|
2645
|
+
/** One drop-or-keep decision, before any declared ink or mark can be replaced. */
|
|
2646
|
+
function certifyTintPaint(decision, context) {
|
|
2647
|
+
const certified = withFallbackInks(decision.painted, context);
|
|
2648
|
+
if (certified) return withCertifiedButtons(certified, context);
|
|
2649
|
+
const original = decision.original;
|
|
2650
|
+
return {
|
|
2651
|
+
...original,
|
|
2574
2652
|
contrast: {
|
|
2575
|
-
...
|
|
2576
|
-
fallback: ["radial-tint", ...
|
|
2653
|
+
...original.contrast,
|
|
2654
|
+
fallback: ["radial-tint", ...original.contrast.fallback ?? []]
|
|
2577
2655
|
}
|
|
2578
|
-
}
|
|
2656
|
+
};
|
|
2579
2657
|
}
|
|
2580
2658
|
/** Every backdrop a solid paint shows: its colour, or each sample from a radial tint's base to its paint. */
|
|
2581
2659
|
function surfaceBackdrops(decision, context) {
|
|
2660
|
+
if (decision.backdropSamples) return decision.backdropSamples;
|
|
2582
2661
|
const paint = resolveOpaqueSurfaceHex(decision.paint.token, context.palette, decision.tintBase ?? context.compositeBase);
|
|
2583
2662
|
if (!paint) return [];
|
|
2584
2663
|
const underlay = decision.tintBase ? resolveOpaqueSurfaceHex(decision.tintBase, context.palette, "background") : null;
|
|
2585
2664
|
return underlay ? TINT_SAMPLE_ALPHAS.map((alpha) => compositeHex(paint, alpha, underlay)) : [paint];
|
|
2586
2665
|
}
|
|
2587
|
-
/**
|
|
2666
|
+
/** A sampled finish may re-solve derived inks, but never replace a declared role or mark. */
|
|
2588
2667
|
function withFallbackInks(decision, context) {
|
|
2589
2668
|
const backdrops = surfaceBackdrops(decision, context);
|
|
2590
|
-
|
|
2591
|
-
|
|
2669
|
+
if (backdrops.length === 0) return decision;
|
|
2670
|
+
const derived = sampledPaint(decision) ? sampledPaintDetails(decision, backdrops, context) : decision;
|
|
2592
2671
|
const certified = certifySurfaceInks({
|
|
2593
|
-
foreground:
|
|
2594
|
-
mark:
|
|
2672
|
+
foreground: derived.foreground,
|
|
2673
|
+
mark: derived.decorations?.mark
|
|
2595
2674
|
}, backdrops, context);
|
|
2596
|
-
if (!certified) return null;
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2675
|
+
if (!certified || sampledPaint(decision) && requiresDeclaredInkFallback(certified)) return null;
|
|
2676
|
+
return applyPaintInkCertificate(derived, certified, backdrops, context);
|
|
2677
|
+
}
|
|
2678
|
+
function sampledPaint(decision) {
|
|
2679
|
+
return decision.tintBase !== void 0 || decision.backdropSamples !== void 0;
|
|
2680
|
+
}
|
|
2681
|
+
/** Muted and hover are derived; text, heading, link, supporting and mark decide drop-or-keep. */
|
|
2682
|
+
function requiresDeclaredInkFallback(certificate) {
|
|
2683
|
+
return certificate.fallback.some((role) => role !== "muted" && role !== "linkHover");
|
|
2684
|
+
}
|
|
2685
|
+
/** Keep the certificate and derived local inks on the exact samples the paint draws. */
|
|
2686
|
+
function applyPaintInkCertificate(decision, certified, backdrops, context) {
|
|
2687
|
+
const samples = nonemptySamples(backdrops);
|
|
2688
|
+
if (!samples || !sampledPaint(decision) && certified.fallback.length === 0) return decision;
|
|
2689
|
+
const endpoint = samples[samples.length - 1] ?? samples[0];
|
|
2690
|
+
const decorations = decision.decorations;
|
|
2691
|
+
const inks = decision.inks.kind === "solved" ? {
|
|
2692
|
+
kind: "solved",
|
|
2693
|
+
inks: solveSurfaceInks(samples, certified.foreground.text, context.palette)
|
|
2694
|
+
} : decision.inks;
|
|
2603
2695
|
return {
|
|
2604
2696
|
...decision,
|
|
2697
|
+
inks,
|
|
2605
2698
|
foreground: certified.foreground,
|
|
2606
2699
|
decorations,
|
|
2607
2700
|
contrast: {
|
|
2608
|
-
...
|
|
2701
|
+
...surfaceContrast(certified.foreground, endpoint, context.palette, context.colourIndex),
|
|
2609
2702
|
fallback: certified.fallback
|
|
2610
2703
|
}
|
|
2611
2704
|
};
|
|
2612
2705
|
}
|
|
2706
|
+
function sampledPaintDetails(decision, samples, context) {
|
|
2707
|
+
const ground = resolveOpaqueSurfaceHex(decision.paint.token, context.palette, decision.tintBase ?? context.compositeBase);
|
|
2708
|
+
const derived = deriveSurfaceForegroundDetails(decision.foreground, {
|
|
2709
|
+
palette: context.palette,
|
|
2710
|
+
ground: ground ?? void 0,
|
|
2711
|
+
backdrops: samples,
|
|
2712
|
+
hoverCandidate: context.foreground?.linkHover ?? context.linkHoverToken ?? decision.foreground.linkHover
|
|
2713
|
+
});
|
|
2714
|
+
const text = resolveConcreteColorHex(decision.foreground.text, context.palette);
|
|
2715
|
+
const decorations = decision.decorations && ground && text ? {
|
|
2716
|
+
...decision.decorations,
|
|
2717
|
+
line: deriveSurfaceLineColor(ground, text, samples)
|
|
2718
|
+
} : decision.decorations;
|
|
2719
|
+
return {
|
|
2720
|
+
...decision,
|
|
2721
|
+
foreground: derived.roles,
|
|
2722
|
+
hoverDecoration: derived.hoverDecoration,
|
|
2723
|
+
decorations
|
|
2724
|
+
};
|
|
2725
|
+
}
|
|
2613
2726
|
function surfaceProof(decision, spec) {
|
|
2614
2727
|
if (decision.kind === "inherit") return {
|
|
2615
2728
|
...decision,
|
|
@@ -2697,6 +2810,7 @@ const surfaceReferenceSchema = z.object({ $surface: z.object({
|
|
|
2697
2810
|
context: z.object({
|
|
2698
2811
|
foreground: foregroundInputSchema.optional(),
|
|
2699
2812
|
linkHoverToken: z.string().optional(),
|
|
2813
|
+
backdropSamples: z.array(z.string()).optional(),
|
|
2700
2814
|
compositeBase: z.string().optional(),
|
|
2701
2815
|
buttonContext: buttonInputSchema.optional(),
|
|
2702
2816
|
solvedInks: solvedInksSchema.optional()
|
|
@@ -2756,5 +2870,60 @@ function mapSurfaceTreeChildren(value, map) {
|
|
|
2756
2870
|
if (value instanceof Date) return value;
|
|
2757
2871
|
return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
|
|
2758
2872
|
}
|
|
2873
|
+
/** Section grounds and slot tints share the same all-samples ink certificate. */
|
|
2874
|
+
function certifyFinishedGround(finish, foreground, context) {
|
|
2875
|
+
const certified = certifySampledForeground(foreground, finish.samples, context);
|
|
2876
|
+
return certified ? {
|
|
2877
|
+
kind: "certified",
|
|
2878
|
+
finish,
|
|
2879
|
+
foreground: certified
|
|
2880
|
+
} : {
|
|
2881
|
+
kind: "dropped",
|
|
2882
|
+
reason: "unreadable-finish"
|
|
2883
|
+
};
|
|
2884
|
+
}
|
|
2885
|
+
function nonemptySamples(samples) {
|
|
2886
|
+
const [first, ...rest] = samples ?? [];
|
|
2887
|
+
return first === void 0 ? void 0 : [first, ...rest];
|
|
2888
|
+
}
|
|
2889
|
+
/** Certify section inks against the finish rather than just its base colour. */
|
|
2890
|
+
function sectionSurfaceForeground(background, context) {
|
|
2891
|
+
if (background === null) return { kind: "inherits" };
|
|
2892
|
+
const foreground = resolveSurfaceForeground(background, context.palette, {
|
|
2893
|
+
linkHover: context.linkHoverToken,
|
|
2894
|
+
...context.foreground
|
|
2895
|
+
}, { compositeBase: context.compositeBase });
|
|
2896
|
+
if (foreground.kind !== "known" || !context.backdropSamples) return foreground;
|
|
2897
|
+
return certifySampledForeground(foreground, context.backdropSamples, context) ?? foreground;
|
|
2898
|
+
}
|
|
2899
|
+
/** Foreground roles and published local inks must agree on the full sampled backing. */
|
|
2900
|
+
function certifySampledForeground(foreground, backdrops, context) {
|
|
2901
|
+
if (foreground.kind !== "known" || foreground.provenance.kind !== "measured") return null;
|
|
2902
|
+
const samples = nonemptySamples(backdrops);
|
|
2903
|
+
if (!samples) return null;
|
|
2904
|
+
const decorations = surfaceDecorationColors(foreground, context.palette);
|
|
2905
|
+
const derived = deriveSurfaceForegroundDetails(foreground.roles, {
|
|
2906
|
+
palette: context.palette,
|
|
2907
|
+
ground: samples[samples.length - 1],
|
|
2908
|
+
backdrops: samples,
|
|
2909
|
+
hoverCandidate: foreground.roles.linkHover
|
|
2910
|
+
});
|
|
2911
|
+
const certified = certifySurfaceInks({
|
|
2912
|
+
foreground: derived.roles,
|
|
2913
|
+
mark: decorations?.mark
|
|
2914
|
+
}, samples, context);
|
|
2915
|
+
if (!certified || requiresDeclaredInkFallback(certified)) return null;
|
|
2916
|
+
return {
|
|
2917
|
+
...foreground,
|
|
2918
|
+
hoverDecoration: derived.hoverDecoration,
|
|
2919
|
+
roles: certified.foreground,
|
|
2920
|
+
provenance: {
|
|
2921
|
+
...foreground.provenance,
|
|
2922
|
+
backdropSamples: samples,
|
|
2923
|
+
inks: solveSurfaceInks(samples, certified.foreground.text, context.palette),
|
|
2924
|
+
fallback: certified.fallback
|
|
2925
|
+
}
|
|
2926
|
+
};
|
|
2927
|
+
}
|
|
2759
2928
|
//#endregion
|
|
2760
|
-
export {
|
|
2929
|
+
export { mapButtonVisualAppearances as A, surfaceInkPublication as B, buttonPartsCss as C, PUBLIC_BUTTON_ROLES as D, affordanceIconMaskUrl as E, resolveTokenOrCssColorValue as F, certifyPaint as G, solveSurfaceInks as H, freezeOwnedThemeValue as I, contrastThresholdByPolicy as K, ownedThemeSnapshot as L, isCssColorLiteral as M, resolveOnColorForThemeToken as N, defineButtonStyleRecipe as O, resolveThemeColorReferenceValue as P, resolveSurfaceForeground as R, BUTTON_LABEL_CLASS as S, partOwnedPseudoElements as T, planForegroundHover as U, CONTROL_EDGE_SEED_TOKEN as V, HOVER_TEXT_THRESHOLD as W, buttonStateShadow as _, prepareThemeSurfaceRevision as a, paddingDeclarations as b, serializeSurfaceTree as c, surfaceTransportContext as d, toAccessibleColorSurfaceIntent as f, buttonStateAppearanceDeclarations as g, buttonRadius as h, prepareSurfaceIndex as i, actionVariableFallback as j, mapButtonRoleAppearances as k, surfaceButtonRequest as l, buttonBorder as m, parseResolvedSurface as n, requireResolvedSurface as o, contextualButtonSurfaceResetStyles as p, parseSurfaceTree as r, resolveSurface as s, certifyFinishedGround as t, surfaceDecorationColors as u, buttonTypographyDeclarations as v, buttonShadowLayersValue as w, BUTTON_LABEL_ATTRIBUTE as x, materializeRuntimeButtonAppearance as y, safeTokenOr as z };
|