@riverbankcms/sdk 0.163.0 → 0.165.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 +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
- package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-D6gp2Ipb.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -72
- package/dist/_dts/{client-Chh3bnXC.d.ts → client-BkkExozE.d.ts} +13 -41
- package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
- package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-XRXhbLWP.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
- package/dist/_dts/{index-CyQhZuhM.d.ts → index-B4ozSzFP.d.ts} +48377 -47862
- package/dist/_dts/{index-DRxgeK8L.d.ts → index-BdkHhyf8.d.ts} +2 -2
- package/dist/_dts/{index-CdSNXLOx.d.ts → index-CQfJhOEA.d.ts} +2 -2
- package/dist/_dts/{index-C3mJvn27.d.ts → index-CRRiddNp.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-rhMSu0oY.d.ts → index-C_3kdrUb.d.ts} +2 -2
- package/dist/_dts/{index-CaL0nKkl.d.ts → index-DAPTSmBM.d.ts} +31097 -31047
- package/dist/_dts/{index-FstkyqQB.d.ts → index-DKNEgSOS.d.ts} +2 -2
- package/dist/_dts/{index-G2p-HOrK.d.ts → index-RXkE3a7M.d.ts} +3 -3
- package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-B9vJMq3s.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
- 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 +7 -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/spam-protection/index.d.ts +32 -52
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BmtrA45p.d.ts → types-BDF73NzM.d.ts} +3 -2
- package/dist/_dts/{types-DFOqkClJ.d.ts → types-Cl0nP6al.d.ts} +3 -3
- package/dist/_dts/{types-CalL7aKP.d.ts → types-mstFvhK4.d.ts} +7 -7
- package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-DVWqSvjK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
- package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
- package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -1
- package/dist/client/{EventItem-CND3mfra.mjs → EventItem-dILw2PN_.mjs} +27 -17
- package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
- package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
- package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
- package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +18 -22
- package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
- package/dist/client/{Page-BEF9HrAy.mjs → Page-DUr2YhFR.mjs} +1949 -418
- package/dist/client/ProtectedSubmitButton-2fJqT_NR.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CCF6YLUX.mjs +141 -0
- package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
- package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
- package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-Cfbo1bfh.mjs} +2 -898
- package/dist/client/{accordion-lzM2nSZB.mjs → accordion-3CYNWzTS.mjs} +1 -1
- package/dist/client/altchaProtection-DjIV9A5n.mjs +12 -0
- package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-BSbWgLyx.mjs} +23 -56
- package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-CxerQwIx.mjs → carousel-Cu5mcpO-.mjs} +2 -2
- package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
- package/dist/client/{cart-X-m0isoI.mjs → cart-CDc6x9cR.mjs} +3 -3
- package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
- package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-CkxPqSwD.mjs} +3 -3
- package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-DJfomKQc.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-Bg0SFWcM.mjs → context-CBV21-9L.mjs} +17 -3
- package/dist/client/{cta-HffyM4MA.mjs → cta-Bw-al3cs.mjs} +26 -2
- package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
- package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
- package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-QMqtIywj.mjs} +47 -56
- package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
- package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BC7a709c.mjs} +4 -4
- package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-DL08GpUc.mjs} +2 -2
- package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-BfzuEQp_.mjs} +4 -4
- package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
- package/dist/client/{form-DAIUrVXb.mjs → form-L-xZOBUS.mjs} +3 -3
- package/dist/client/{form.client-BoAkhoh_.mjs → form.client-BtpK3TZW.mjs} +33 -24
- package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-Djos5Un4.mjs} +6 -5
- package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-DGmrm7YB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -4
- package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-f16OGkz-.mjs} +2 -2
- package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
- package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-DpHNZc7k.mjs} +100 -85
- package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-CLGH20PL.mjs} +11 -7
- package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
- package/dist/client/{noop-4XFGzJpT.mjs → noop-CQU7tiMg.mjs} +8 -4
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
- package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
- package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BD42UOmG.mjs} +3 -3
- package/dist/client/{productList-EK9Um-oh.mjs → productList-CSk8sXCl.mjs} +3 -3
- package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BV5xfaZH.mjs +894 -0
- package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-CIKtTsCl.mjs} +197 -167
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +11 -7
- package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-spWtx86G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
- package/dist/client/{schema-BFwQDvJL.mjs → schema-BdSglH2X.mjs} +2690 -2500
- package/dist/client/{shop-CTUaT57E.mjs → shop-DscvMz86.mjs} +3 -3
- package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
- package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
- package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-M3kNsVPi.mjs} +12 -12
- package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BGmkdIAZ.mjs} +268 -31
- package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-BdWp6LHa.mjs} +2 -2
- package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-CWHmlVT5.mjs} +2630 -461
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
- package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
- package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
- package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
- package/dist/client/{view-yUIfWX3S.mjs → view-DXOuduIr.mjs} +4 -4
- package/dist/client/{view-OvsxzgxP.mjs → view-DlkCDfuN.mjs} +45 -32
- package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-DManVJpc.mjs} +57 -47
- package/dist/preview-next/before-render.mjs +2 -2
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3478 -3109
- package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3761 -4769
- package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +3862 -8657
- package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-Dc6aJ34Z.mjs} +274 -68
- package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
- package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
- package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +186449 -173608
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-BBAJjFIz.mjs} +42 -50
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-ClFI3qpX.mjs} +5 -4
- package/dist/server/{bindings-S-gCHhj5.mjs → bindings-Bi8EoRZD.mjs} +2 -2
- package/dist/server/{client-C2Q56xqV.mjs → client-DfMDbZ41.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2362 -217
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-dEEhQxL7.mjs} +6 -4
- package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
- package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-DBFBad8A.mjs} +3 -2
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +11 -11
- package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
- package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DhF87Vsd.mjs} +352 -141
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DaemmWQL.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-FwcsT5H2.mjs} +334 -110
- package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-Bz8loTRn.mjs} +87 -78
- package/dist/server/{registry-4ZF3bUuJ.mjs → registry-Cdvz1OtL.mjs} +539 -401
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-DgrigZq9.mjs → schema-uSA_x1Zh.mjs} +247 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-CntHn2KI.mjs} +61 -37
- package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +32 -36
- package/dist/server/{src-C44_fMy5.mjs → src-DsYPhTbs.mjs} +1289 -90
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-CSknYpxk.mjs} +3 -2
- package/dist/server/{validation-BrbY0nxR.mjs → validation-DYxhLzqQ.mjs} +2 -2
- package/dist/server/{version-BBSk8uM6.mjs → version-Beu4q-Gv.mjs} +1 -1
- package/dist/styles/index.css +1173 -72
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/preview-next/client/spinner-CjxE3uws.mjs +0 -67
- package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
|
@@ -807,11 +807,6 @@ const eventRegistrationErrors = {
|
|
|
807
807
|
message: "The payment options for this event have changed. Please check the latest options before continuing.",
|
|
808
808
|
action: "payment-options"
|
|
809
809
|
},
|
|
810
|
-
verificationFailed: {
|
|
811
|
-
endsCommand: false,
|
|
812
|
-
message: "We couldn’t confirm this request came from a person. Please refresh the page and try again.",
|
|
813
|
-
action: "none"
|
|
814
|
-
},
|
|
815
810
|
idempotencyConflict: {
|
|
816
811
|
endsCommand: false,
|
|
817
812
|
message: "You’ve already started booking this event. Please finish in the other tab if it’s still open, or check your booking status before starting again.",
|
|
@@ -2082,6 +2077,12 @@ function defineBlockDesignCapability(capability) {
|
|
|
2082
2077
|
function admittedSectionBackgroundPaints(paints) {
|
|
2083
2078
|
return paints ?? sectionBackgroundPaintValues;
|
|
2084
2079
|
}
|
|
2080
|
+
function defineNoBlockDesignCapability(reason) {
|
|
2081
|
+
return {
|
|
2082
|
+
kind: "not-designed",
|
|
2083
|
+
reason
|
|
2084
|
+
};
|
|
2085
|
+
}
|
|
2085
2086
|
const skinTokensSchema = z.partialRecord(z.enum([
|
|
2086
2087
|
"radius",
|
|
2087
2088
|
"rule",
|
|
@@ -2110,6 +2111,14 @@ function skinTokenCssVars(tokens) {
|
|
|
2110
2111
|
return Object.fromEntries(Object.entries(tokens ?? {}).map(([name, value]) => [`--rb-skin-${name}`, value]));
|
|
2111
2112
|
}
|
|
2112
2113
|
const skinMarksSchema = z.enum(["primary"]);
|
|
2114
|
+
/** The booking bar's paint and shape as applied from an arrangement style (issue 1659); the plain bar when absent. */
|
|
2115
|
+
const skinBookingBarSchema = z.object({
|
|
2116
|
+
token: z.string().refine((value) => {
|
|
2117
|
+
const parts = parseColorTokenParts(value);
|
|
2118
|
+
return parts.kind === "token" && parts.opacityPercent === null && parts.token === value && isThemeColorToken(value);
|
|
2119
|
+
}, "Expected a plain Theme V2 colour token, without spaces or opacity"),
|
|
2120
|
+
shape: z.enum(["edge-to-edge", "field"])
|
|
2121
|
+
});
|
|
2113
2122
|
const themeLookMetadataSchema = z.object({
|
|
2114
2123
|
name: z.string().min(1).max(30),
|
|
2115
2124
|
description: z.string().min(1).max(400),
|
|
@@ -2119,7 +2128,8 @@ const themeLookMetadataSchema = z.object({
|
|
|
2119
2128
|
skinTokens: skinTokensSchema.optional(),
|
|
2120
2129
|
fontLoading: fontLoadingSchema.optional(),
|
|
2121
2130
|
/** Which palette colour an arrangement style derives its graphic marks from (D9); accent when absent. */
|
|
2122
|
-
skinMarks: skinMarksSchema.optional()
|
|
2131
|
+
skinMarks: skinMarksSchema.optional(),
|
|
2132
|
+
skinBookingBar: skinBookingBarSchema.optional()
|
|
2123
2133
|
});
|
|
2124
2134
|
//#endregion
|
|
2125
2135
|
//#region ../media-core/src/identifiers.ts
|
|
@@ -2421,9 +2431,6 @@ function paletteColorEntries(colors) {
|
|
|
2421
2431
|
hex: colors[name]
|
|
2422
2432
|
}));
|
|
2423
2433
|
}
|
|
2424
|
-
function paletteColorsEqual(left, right) {
|
|
2425
|
-
return PALETTE_TOKEN_NAMES.every((name) => left[name] === right[name]);
|
|
2426
|
-
}
|
|
2427
2434
|
function paletteColorFingerprint(colors) {
|
|
2428
2435
|
return PALETTE_TOKEN_NAMES.map((name) => `${name}:${colors[name]}`).join("|");
|
|
2429
2436
|
}
|
|
@@ -2466,13 +2473,20 @@ const paletteValueKeySchema = z.string().transform((value, ctx) => {
|
|
|
2466
2473
|
return z.NEVER;
|
|
2467
2474
|
});
|
|
2468
2475
|
//#endregion
|
|
2476
|
+
//#region ../theme-core/src/palette/colourSeeds.ts
|
|
2477
|
+
/** Owner colours in priority order, validated once at the input boundary. */
|
|
2478
|
+
const colourSeedsSchema = z.union([z.tuple([hexColorSchema]), z.tuple([hexColorSchema, hexColorSchema])]).refine((seeds) => seeds.length === 1 || seeds[0] !== seeds[1], { message: "Choose distinct colours" });
|
|
2479
|
+
//#endregion
|
|
2469
2480
|
//#region ../theme-core/src/palette/schema.ts
|
|
2470
2481
|
const colourHexString = z.string().regex(/^#([0-9A-Fa-f]{3}){1,2}$/);
|
|
2471
2482
|
const paletteColorSchema = z.object({
|
|
2472
2483
|
name: z.string().min(1),
|
|
2473
2484
|
hex: colourHexString
|
|
2474
2485
|
});
|
|
2475
|
-
const paletteMetaSchema = z.object({
|
|
2486
|
+
const paletteMetaSchema = z.object({
|
|
2487
|
+
mode: z.enum(["light", "dark"]),
|
|
2488
|
+
seeds: colourSeedsSchema.optional()
|
|
2489
|
+
});
|
|
2476
2490
|
const paletteSchema = z.object({
|
|
2477
2491
|
colors: z.array(paletteColorSchema),
|
|
2478
2492
|
meta: paletteMetaSchema
|
|
@@ -2989,6 +3003,25 @@ function baselineSurface(requestedRole, resolvedRole, theme) {
|
|
|
2989
3003
|
};
|
|
2990
3004
|
}
|
|
2991
3005
|
/**
|
|
3006
|
+
* Whether a card system gives `role` a surface of its own, rather than one
|
|
3007
|
+
* borrowed through the fallback chain below.
|
|
3008
|
+
*
|
|
3009
|
+
* `none` asks for no surface and `default` is every card system's everyday
|
|
3010
|
+
* card (the generated baseline stands in for it by design), so both always
|
|
3011
|
+
* hold. `alternative` and `open` hold only when the site style declares an
|
|
3012
|
+
* enabled variant for them: otherwise `alternative` quietly renders the
|
|
3013
|
+
* default card and `open` the generated baseline, and a Look asking for either
|
|
3014
|
+
* would look like some other Look. Look availability is derived from this.
|
|
3015
|
+
*/
|
|
3016
|
+
function cardSystemDefinesRole(cardSystem, role) {
|
|
3017
|
+
switch (role) {
|
|
3018
|
+
case "none":
|
|
3019
|
+
case "default": return true;
|
|
3020
|
+
case "alternative":
|
|
3021
|
+
case "open": return findEnabledVariantForRole(cardSystem, role) !== null;
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
/**
|
|
2992
3025
|
* Resolve a card role against a site style's card system.
|
|
2993
3026
|
*
|
|
2994
3027
|
* - `none` — terminal, no surface.
|
|
@@ -6627,7 +6660,7 @@ function ownSurfaceRevision(context) {
|
|
|
6627
6660
|
buttonSystem: context.buttonSystem
|
|
6628
6661
|
});
|
|
6629
6662
|
registerOwnedRevisionInputs(revision);
|
|
6630
|
-
surfaceRevisionOwners.set(revision, revision);
|
|
6663
|
+
surfaceRevisionOwners.set(revision, { revision });
|
|
6631
6664
|
revisionOwners.set(revision.palette, /* @__PURE__ */ new Map([[revision.buttonSystem, revision]]));
|
|
6632
6665
|
return revision;
|
|
6633
6666
|
}
|
|
@@ -6638,7 +6671,7 @@ function ownSurfaceRevision(context) {
|
|
|
6638
6671
|
palette: context.palette,
|
|
6639
6672
|
buttonSystem: context.buttonSystem
|
|
6640
6673
|
});
|
|
6641
|
-
surfaceRevisionOwners.set(revision, revision);
|
|
6674
|
+
surfaceRevisionOwners.set(revision, { revision });
|
|
6642
6675
|
revisions.set(context.buttonSystem, revision);
|
|
6643
6676
|
revisionOwners.set(context.palette, revisions);
|
|
6644
6677
|
return revision;
|
|
@@ -6651,7 +6684,11 @@ function surfaceTransportContext(context) {
|
|
|
6651
6684
|
colourIndex: context.colourIndex,
|
|
6652
6685
|
solvedInks: context.solvedInks
|
|
6653
6686
|
});
|
|
6654
|
-
|
|
6687
|
+
const preparedSurfaces = matchingPreparedSurfaceIndex(preparedSurfaceIndexFor(context), result);
|
|
6688
|
+
surfaceRevisionOwners.set(result, {
|
|
6689
|
+
revision,
|
|
6690
|
+
preparedSurfaces
|
|
6691
|
+
});
|
|
6655
6692
|
return result;
|
|
6656
6693
|
}
|
|
6657
6694
|
/** Called only after copying and recursively freezing owner inputs. */
|
|
@@ -6672,8 +6709,7 @@ function resolveSurface(spec, context) {
|
|
|
6672
6709
|
}
|
|
6673
6710
|
/** Own one theme revision; derive its surface decisions without copying its inputs again. */
|
|
6674
6711
|
function prepareThemeSurfaceRevision(inputTheme, selectSurfaces = () => [], solvedInks) {
|
|
6675
|
-
const
|
|
6676
|
-
const snapshot = freezeOwnedThemeValue(theme);
|
|
6712
|
+
const snapshot = freezeOwnedThemeValue(structuredClone(inputTheme));
|
|
6677
6713
|
const declarations = ownedThemeSnapshot(selectSurfaces(snapshot));
|
|
6678
6714
|
const palette = freezeOwnedThemeValue(expandPalette(snapshot.palette, {
|
|
6679
6715
|
arrangement: snapshot.skin !== void 0,
|
|
@@ -6689,7 +6725,7 @@ function prepareThemeSurfaceRevision(inputTheme, selectSurfaces = () => [], solv
|
|
|
6689
6725
|
registerOwnedRevisionInputs(context);
|
|
6690
6726
|
const preparedSurfaces = declarations.length === 0 ? void 0 : surfaceIndexFromOwnedInputs(declarations, context);
|
|
6691
6727
|
return Object.freeze({
|
|
6692
|
-
theme,
|
|
6728
|
+
theme: snapshot,
|
|
6693
6729
|
context: Object.freeze({
|
|
6694
6730
|
...context,
|
|
6695
6731
|
preparedSurfaces
|
|
@@ -6716,10 +6752,14 @@ function preparedSurfaceEntry(key, spec, context) {
|
|
|
6716
6752
|
return [];
|
|
6717
6753
|
}
|
|
6718
6754
|
}
|
|
6755
|
+
function matchingPreparedSurfaceIndex(index, context) {
|
|
6756
|
+
return index && preparedIndexOwners.has(index) && index.palette === context.palette && index.buttonSystem === context.buttonSystem && index.colourIndex === context.colourIndex ? index : void 0;
|
|
6757
|
+
}
|
|
6758
|
+
function preparedSurfaceIndexFor(context) {
|
|
6759
|
+
return matchingPreparedSurfaceIndex(context.preparedSurfaces ?? surfaceRevisionOwners.get(context)?.preparedSurfaces, context);
|
|
6760
|
+
}
|
|
6719
6761
|
function preparedSurfaceValue(spec, context) {
|
|
6720
|
-
|
|
6721
|
-
if (!index || !preparedIndexOwners.has(index) || index.palette !== context.palette || index.buttonSystem !== context.buttonSystem || index.colourIndex !== context.colourIndex) return void 0;
|
|
6722
|
-
return index.values[surfaceResolutionKey(spec, context)];
|
|
6762
|
+
return preparedSurfaceIndexFor(context)?.values[surfaceResolutionKey(spec, context)];
|
|
6723
6763
|
}
|
|
6724
6764
|
function surfaceResolutionKey(spec, context) {
|
|
6725
6765
|
const declaration = spec.kind === "tint" ? {
|
|
@@ -6814,12 +6854,7 @@ function resolveOwnedSurface(paint, context, measuredBackdrop) {
|
|
|
6814
6854
|
paint,
|
|
6815
6855
|
contrast: { kind: "unmeasured" }
|
|
6816
6856
|
};
|
|
6817
|
-
|
|
6818
|
-
return contrast.kind === "measured" ? {
|
|
6819
|
-
...decision,
|
|
6820
|
-
paint,
|
|
6821
|
-
contrast
|
|
6822
|
-
} : {
|
|
6857
|
+
if (resolved.kind !== "known" || resolved.provenance.kind !== "measured") return {
|
|
6823
6858
|
...decision,
|
|
6824
6859
|
paint,
|
|
6825
6860
|
contrast: {
|
|
@@ -6828,6 +6863,12 @@ function resolveOwnedSurface(paint, context, measuredBackdrop) {
|
|
|
6828
6863
|
source: "paint"
|
|
6829
6864
|
}
|
|
6830
6865
|
};
|
|
6866
|
+
return {
|
|
6867
|
+
...decision,
|
|
6868
|
+
paint,
|
|
6869
|
+
foreground: resolved.roles,
|
|
6870
|
+
contrast: surfaceContrast(resolved.roles, resolved.provenance.backdropHex, context.palette, context.colourIndex)
|
|
6871
|
+
};
|
|
6831
6872
|
}
|
|
6832
6873
|
/** A paint the element owns but that resolves as inherited (an empty token) still blocks outer inks. */
|
|
6833
6874
|
function ownedInkPublication(resolved, context) {
|
|
@@ -6863,19 +6904,17 @@ function resolveSurfaceButtons(paint, foreground, context) {
|
|
|
6863
6904
|
withoutButtonSystem: "reset"
|
|
6864
6905
|
});
|
|
6865
6906
|
}
|
|
6866
|
-
function surfaceContrast(
|
|
6867
|
-
if (foreground.kind !== "known" || foreground.provenance.kind !== "measured") return { kind: "unmeasured" };
|
|
6868
|
-
const backdrop = foreground.provenance.backdropHex;
|
|
6907
|
+
function surfaceContrast(roles, backdrop, palette, colourIndex) {
|
|
6869
6908
|
const ratio = (token) => contrastRatio(resolveOpaqueSurfaceHex(token, palette, backdrop) ?? backdrop, backdrop, colourIndex);
|
|
6870
6909
|
return {
|
|
6871
6910
|
kind: "measured",
|
|
6872
6911
|
ratios: {
|
|
6873
|
-
text: ratio(
|
|
6874
|
-
heading: ratio(
|
|
6875
|
-
link: ratio(
|
|
6876
|
-
linkHover: ratio(
|
|
6877
|
-
supporting: ratio(
|
|
6878
|
-
muted: ratio(
|
|
6912
|
+
text: ratio(roles.text),
|
|
6913
|
+
heading: ratio(roles.heading),
|
|
6914
|
+
link: ratio(roles.link),
|
|
6915
|
+
linkHover: ratio(roles.linkHover),
|
|
6916
|
+
supporting: ratio(roles.supporting),
|
|
6917
|
+
muted: ratio(roles.muted)
|
|
6879
6918
|
}
|
|
6880
6919
|
};
|
|
6881
6920
|
}
|
|
@@ -6892,24 +6931,27 @@ function resolveSectionSurface(background, context) {
|
|
|
6892
6931
|
foreground: foreground.kind === "known" ? foreground.roles.link : void 0
|
|
6893
6932
|
} : background.type === "gradient" ? { kind: "gradient" } : { kind: "image" };
|
|
6894
6933
|
const revision = ownSurfaceRevision(context);
|
|
6934
|
+
const buttonContext = resolveSurfaceButtonContext({
|
|
6935
|
+
surface,
|
|
6936
|
+
palette: revision.palette,
|
|
6937
|
+
buttonSystem: revision.buttonSystem,
|
|
6938
|
+
primaryToken: sectionPrimaryButtonToken(background, context),
|
|
6939
|
+
fallbackToken: context.compositeBase,
|
|
6940
|
+
withoutButtonSystem: "inherit"
|
|
6941
|
+
});
|
|
6895
6942
|
const result = {
|
|
6896
6943
|
kind: "section",
|
|
6897
6944
|
foreground,
|
|
6898
6945
|
inks: surfaceInkPublication(foreground, context.solvedInks ?? "withhold"),
|
|
6899
|
-
buttonStyles:
|
|
6900
|
-
|
|
6901
|
-
palette: revision.palette,
|
|
6902
|
-
buttonSystem: revision.buttonSystem,
|
|
6903
|
-
primaryToken: sectionPrimaryButtonToken(background, context),
|
|
6904
|
-
fallbackToken: context.compositeBase,
|
|
6905
|
-
withoutButtonSystem: "inherit"
|
|
6906
|
-
}).styles,
|
|
6946
|
+
buttonStyles: buttonContext.styles,
|
|
6947
|
+
buttonContext,
|
|
6907
6948
|
proof: sectionProof(background, foreground),
|
|
6908
6949
|
revision,
|
|
6909
6950
|
textPolicy: surfaceTextPolicy,
|
|
6910
6951
|
[resolvedSurfaceBrand]: true
|
|
6911
6952
|
};
|
|
6912
6953
|
Object.defineProperties(result, {
|
|
6954
|
+
buttonContext: { enumerable: false },
|
|
6913
6955
|
proof: { enumerable: false },
|
|
6914
6956
|
revision: { enumerable: false },
|
|
6915
6957
|
textPolicy: { enumerable: false }
|
|
@@ -7072,9 +7114,8 @@ function certifySurface(spec, context) {
|
|
|
7072
7114
|
})
|
|
7073
7115
|
};
|
|
7074
7116
|
const decision = resolveSurfaceSpec(inputs.spec, inputs.context);
|
|
7075
|
-
const result = Object.assign(decision, {
|
|
7117
|
+
const result = Object.assign(surfaceProof(decision, spec), {
|
|
7076
7118
|
[resolvedSurfaceBrand]: true,
|
|
7077
|
-
proof: surfaceProof(decision, spec),
|
|
7078
7119
|
revision,
|
|
7079
7120
|
textPolicy: surfaceTextPolicy,
|
|
7080
7121
|
$surface: inputs
|
|
@@ -7088,11 +7129,23 @@ function certifySurface(spec, context) {
|
|
|
7088
7129
|
surfaceTransports.set(result, inputs);
|
|
7089
7130
|
return freezeOwnedThemeValue(result);
|
|
7090
7131
|
}
|
|
7132
|
+
function isSolidSurfaceDecision(decision) {
|
|
7133
|
+
return decision.kind === "owned" && decision.contrast.kind === "measured";
|
|
7134
|
+
}
|
|
7091
7135
|
function surfaceProof(decision, spec) {
|
|
7092
|
-
if (decision.kind === "inherit") return
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7136
|
+
if (decision.kind === "inherit") return {
|
|
7137
|
+
...decision,
|
|
7138
|
+
proof: "inherit"
|
|
7139
|
+
};
|
|
7140
|
+
if (!isSolidSurfaceDecision(decision)) return {
|
|
7141
|
+
...decision,
|
|
7142
|
+
proof: "unproven-media"
|
|
7143
|
+
};
|
|
7144
|
+
const proof = spec.kind === "tint" ? spec.gradient === "radial" ? "checked-gradient-or-scrim" : "checked-composited" : /\/|rgba\(/.test(decision.paint.token) ? "checked-composited" : "checked-solid";
|
|
7145
|
+
return {
|
|
7146
|
+
...decision,
|
|
7147
|
+
proof
|
|
7148
|
+
};
|
|
7096
7149
|
}
|
|
7097
7150
|
function sectionProof(background, foreground) {
|
|
7098
7151
|
if (background === null) return "inherit";
|
|
@@ -7112,7 +7165,7 @@ function serializeSurfaceTree(value) {
|
|
|
7112
7165
|
return index;
|
|
7113
7166
|
};
|
|
7114
7167
|
const encode = (item) => {
|
|
7115
|
-
const revision = isSurfaceTreeRecord(item) ? surfaceRevisionOwners.get(item) : void 0;
|
|
7168
|
+
const revision = isSurfaceTreeRecord(item) ? surfaceRevisionOwners.get(item)?.revision : void 0;
|
|
7116
7169
|
if (revision) return {
|
|
7117
7170
|
$surfaceRevision: revisionIndex(revision),
|
|
7118
7171
|
solvedInks: isSurfaceTreeRecord(item) ? item.solvedInks : void 0
|
|
@@ -7160,7 +7213,7 @@ const surfaceRevisionReferenceSchema = z.object({
|
|
|
7160
7213
|
/** Recreate owner results before any island's ordinary schema consumes them. */
|
|
7161
7214
|
function parseSurfaceTree(value, solvedInks) {
|
|
7162
7215
|
if (isResolvedSurface(value)) return resolveTransportedSurface(value, solvedInks);
|
|
7163
|
-
const revision = isSurfaceTreeRecord(value) ? surfaceRevisionOwners.get(value) : void 0;
|
|
7216
|
+
const revision = isSurfaceTreeRecord(value) ? surfaceRevisionOwners.get(value)?.revision : void 0;
|
|
7164
7217
|
if (revision) return solvedInks === void 0 ? value : surfaceTransportContext({
|
|
7165
7218
|
...revision,
|
|
7166
7219
|
solvedInks
|
|
@@ -9082,7 +9135,7 @@ const themeV2NormalEditorRawStyleFieldNames = [
|
|
|
9082
9135
|
"styleGroup"
|
|
9083
9136
|
];
|
|
9084
9137
|
const themeV2NormalEditorRawStyleFieldNameSet = new Set(themeV2NormalEditorRawStyleFieldNames);
|
|
9085
|
-
[...themeV2RuntimeStyleFieldNames, ...themeV2BlockSpecificRawStyleFieldNames];
|
|
9138
|
+
const themeV2CompilerOwnedFieldNames = [...themeV2RuntimeStyleFieldNames, ...themeV2BlockSpecificRawStyleFieldNames];
|
|
9086
9139
|
const pageDesignEditorBackgroundOverrideOwner = "page-design-editor";
|
|
9087
9140
|
const siteChromeBackgroundOverrideOwner = "site-chrome-editor";
|
|
9088
9141
|
function isThemeV2NormalEditorRawStyleFieldName(fieldName) {
|
|
@@ -12208,7 +12261,7 @@ function normalizeAppearance(appearance) {
|
|
|
12208
12261
|
}
|
|
12209
12262
|
//#endregion
|
|
12210
12263
|
//#region ../theme-core/src/buttons/styles/recipes/sewnLabel.ts
|
|
12211
|
-
const visual = {
|
|
12264
|
+
const visual$1 = {
|
|
12212
12265
|
text: "treatment",
|
|
12213
12266
|
borderRadius: "rounded-lg",
|
|
12214
12267
|
sizes: {
|
|
@@ -12248,8 +12301,8 @@ const stitch = {
|
|
|
12248
12301
|
inset: 6
|
|
12249
12302
|
}
|
|
12250
12303
|
};
|
|
12251
|
-
const filled = {
|
|
12252
|
-
...visual,
|
|
12304
|
+
const filled$1 = {
|
|
12305
|
+
...visual$1,
|
|
12253
12306
|
background: {
|
|
12254
12307
|
type: "solid",
|
|
12255
12308
|
colorToken: "primary"
|
|
@@ -12257,33 +12310,33 @@ const filled = {
|
|
|
12257
12310
|
border: "none",
|
|
12258
12311
|
effects: [stitch]
|
|
12259
12312
|
};
|
|
12260
|
-
const filledStates = {
|
|
12261
|
-
base: filled,
|
|
12313
|
+
const filledStates$1 = {
|
|
12314
|
+
base: filled$1,
|
|
12262
12315
|
hover: {
|
|
12263
|
-
...filled,
|
|
12316
|
+
...filled$1,
|
|
12264
12317
|
effects: [stitch, {
|
|
12265
12318
|
effectId: "darken-background",
|
|
12266
12319
|
options: { amount: 100 }
|
|
12267
12320
|
}]
|
|
12268
12321
|
},
|
|
12269
12322
|
focus: {
|
|
12270
|
-
...filled,
|
|
12323
|
+
...filled$1,
|
|
12271
12324
|
shadow: "focus-indicator"
|
|
12272
12325
|
},
|
|
12273
12326
|
active: {
|
|
12274
|
-
...filled,
|
|
12327
|
+
...filled$1,
|
|
12275
12328
|
effects: [stitch, {
|
|
12276
12329
|
effectId: "darken-background",
|
|
12277
12330
|
options: { amount: 100 }
|
|
12278
12331
|
}]
|
|
12279
12332
|
},
|
|
12280
12333
|
disabled: {
|
|
12281
|
-
...filled,
|
|
12334
|
+
...filled$1,
|
|
12282
12335
|
effects: []
|
|
12283
12336
|
}
|
|
12284
12337
|
};
|
|
12285
12338
|
const quiet = {
|
|
12286
|
-
...visual,
|
|
12339
|
+
...visual$1,
|
|
12287
12340
|
background: {
|
|
12288
12341
|
type: "surface",
|
|
12289
12342
|
role: "link"
|
|
@@ -12301,7 +12354,7 @@ const quietStates = {
|
|
|
12301
12354
|
active: quiet,
|
|
12302
12355
|
disabled: quiet
|
|
12303
12356
|
};
|
|
12304
|
-
const ghost = {
|
|
12357
|
+
const ghost$1 = {
|
|
12305
12358
|
...quiet,
|
|
12306
12359
|
border: "none"
|
|
12307
12360
|
};
|
|
@@ -12315,9 +12368,158 @@ const sewnLabelRecipe = defineStaticButtonStyleRecipe({
|
|
|
12315
12368
|
era: "organic"
|
|
12316
12369
|
},
|
|
12317
12370
|
system: { roles: {
|
|
12318
|
-
primary: { states: filledStates },
|
|
12371
|
+
primary: { states: filledStates$1 },
|
|
12319
12372
|
secondary: { states: quietStates },
|
|
12320
12373
|
outline: { states: quietStates },
|
|
12374
|
+
ghost: { states: {
|
|
12375
|
+
base: ghost$1,
|
|
12376
|
+
hover: ghost$1,
|
|
12377
|
+
focus: {
|
|
12378
|
+
...ghost$1,
|
|
12379
|
+
shadow: "focus-indicator"
|
|
12380
|
+
},
|
|
12381
|
+
active: ghost$1,
|
|
12382
|
+
disabled: ghost$1
|
|
12383
|
+
} },
|
|
12384
|
+
accent: { states: filledStates$1 }
|
|
12385
|
+
} }
|
|
12386
|
+
});
|
|
12387
|
+
//#endregion
|
|
12388
|
+
//#region ../theme-core/src/buttons/styles/recipes/edgedPill.ts
|
|
12389
|
+
const visual = {
|
|
12390
|
+
text: "treatment",
|
|
12391
|
+
borderRadius: "rounded-full",
|
|
12392
|
+
sizes: {
|
|
12393
|
+
sm: {
|
|
12394
|
+
padding: "0.625rem 1.125rem",
|
|
12395
|
+
fontSize: "text-sm"
|
|
12396
|
+
},
|
|
12397
|
+
md: { padding: "0.875rem 1.75rem" },
|
|
12398
|
+
lg: {
|
|
12399
|
+
padding: "1.125rem 2.25rem",
|
|
12400
|
+
fontSize: "text-lg"
|
|
12401
|
+
},
|
|
12402
|
+
xl: {
|
|
12403
|
+
padding: "1.25rem 2.5rem",
|
|
12404
|
+
fontSize: "text-xl"
|
|
12405
|
+
}
|
|
12406
|
+
},
|
|
12407
|
+
typography: {
|
|
12408
|
+
fontWeight: 700,
|
|
12409
|
+
typography: "body",
|
|
12410
|
+
fontSize: null,
|
|
12411
|
+
letterSpacing: null,
|
|
12412
|
+
italic: false,
|
|
12413
|
+
textTransform: "none"
|
|
12414
|
+
},
|
|
12415
|
+
shadow: {
|
|
12416
|
+
elevation: "none",
|
|
12417
|
+
softness: null,
|
|
12418
|
+
position: "bottom"
|
|
12419
|
+
}
|
|
12420
|
+
};
|
|
12421
|
+
/**
|
|
12422
|
+
* Poise (issue 1659): a filled pill with a thin edge drawn in its label ink, so
|
|
12423
|
+
* a light brand fill still reads against a light page. The edge is declared as
|
|
12424
|
+
* the boundary, so the contrast rule can pass the button on its edge.
|
|
12425
|
+
*/
|
|
12426
|
+
const filled = {
|
|
12427
|
+
...visual,
|
|
12428
|
+
background: {
|
|
12429
|
+
type: "solid",
|
|
12430
|
+
colorToken: "primary"
|
|
12431
|
+
},
|
|
12432
|
+
border: {
|
|
12433
|
+
widthClass: "border-2",
|
|
12434
|
+
marksBoundary: true
|
|
12435
|
+
},
|
|
12436
|
+
effects: []
|
|
12437
|
+
};
|
|
12438
|
+
const filledStates = {
|
|
12439
|
+
base: filled,
|
|
12440
|
+
hover: {
|
|
12441
|
+
...filled,
|
|
12442
|
+
effects: [{ effectId: "lift" }]
|
|
12443
|
+
},
|
|
12444
|
+
focus: {
|
|
12445
|
+
...filled,
|
|
12446
|
+
shadow: "focus-indicator"
|
|
12447
|
+
},
|
|
12448
|
+
active: {
|
|
12449
|
+
...filled,
|
|
12450
|
+
effects: [{
|
|
12451
|
+
effectId: "scale-down",
|
|
12452
|
+
options: { scale: "0.98" }
|
|
12453
|
+
}]
|
|
12454
|
+
},
|
|
12455
|
+
disabled: filled
|
|
12456
|
+
};
|
|
12457
|
+
const accent = {
|
|
12458
|
+
...filled,
|
|
12459
|
+
background: {
|
|
12460
|
+
type: "solid",
|
|
12461
|
+
colorToken: "accent"
|
|
12462
|
+
}
|
|
12463
|
+
};
|
|
12464
|
+
const accentStates = {
|
|
12465
|
+
base: accent,
|
|
12466
|
+
hover: {
|
|
12467
|
+
...accent,
|
|
12468
|
+
effects: [{ effectId: "lift" }]
|
|
12469
|
+
},
|
|
12470
|
+
focus: {
|
|
12471
|
+
...accent,
|
|
12472
|
+
shadow: "focus-indicator"
|
|
12473
|
+
},
|
|
12474
|
+
active: {
|
|
12475
|
+
...accent,
|
|
12476
|
+
effects: [{
|
|
12477
|
+
effectId: "scale-down",
|
|
12478
|
+
options: { scale: "0.98" }
|
|
12479
|
+
}]
|
|
12480
|
+
},
|
|
12481
|
+
disabled: accent
|
|
12482
|
+
};
|
|
12483
|
+
/** The quieter pill: an outline in the text colour, on whatever ground it sits. */
|
|
12484
|
+
const outlined = {
|
|
12485
|
+
...visual,
|
|
12486
|
+
background: {
|
|
12487
|
+
type: "surface",
|
|
12488
|
+
role: "link"
|
|
12489
|
+
},
|
|
12490
|
+
border: { widthClass: "border-2" },
|
|
12491
|
+
effects: []
|
|
12492
|
+
};
|
|
12493
|
+
const outlinedStates = {
|
|
12494
|
+
base: outlined,
|
|
12495
|
+
hover: {
|
|
12496
|
+
...outlined,
|
|
12497
|
+
effects: [{ effectId: "lift" }]
|
|
12498
|
+
},
|
|
12499
|
+
focus: {
|
|
12500
|
+
...outlined,
|
|
12501
|
+
shadow: "focus-indicator"
|
|
12502
|
+
},
|
|
12503
|
+
active: outlined,
|
|
12504
|
+
disabled: outlined
|
|
12505
|
+
};
|
|
12506
|
+
const ghost = {
|
|
12507
|
+
...outlined,
|
|
12508
|
+
border: "none"
|
|
12509
|
+
};
|
|
12510
|
+
const edgedPillRecipe = defineStaticButtonStyleRecipe({
|
|
12511
|
+
id: "edged-pill",
|
|
12512
|
+
accessibilityLabel: "Bold pill buttons with a thin edge",
|
|
12513
|
+
tags: {
|
|
12514
|
+
tone: "bold",
|
|
12515
|
+
energy: "vibrant",
|
|
12516
|
+
motion: "subtle",
|
|
12517
|
+
era: "modern"
|
|
12518
|
+
},
|
|
12519
|
+
system: { roles: {
|
|
12520
|
+
primary: { states: filledStates },
|
|
12521
|
+
secondary: { states: outlinedStates },
|
|
12522
|
+
outline: { states: outlinedStates },
|
|
12321
12523
|
ghost: { states: {
|
|
12322
12524
|
base: ghost,
|
|
12323
12525
|
hover: ghost,
|
|
@@ -12328,7 +12530,7 @@ const sewnLabelRecipe = defineStaticButtonStyleRecipe({
|
|
|
12328
12530
|
active: ghost,
|
|
12329
12531
|
disabled: ghost
|
|
12330
12532
|
} },
|
|
12331
|
-
accent: { states:
|
|
12533
|
+
accent: { states: accentStates }
|
|
12332
12534
|
} }
|
|
12333
12535
|
});
|
|
12334
12536
|
//#endregion
|
|
@@ -12808,7 +13010,8 @@ const BUTTON_STYLE_IDS = [
|
|
|
12808
13010
|
"gilt-slab",
|
|
12809
13011
|
"hairline-tab",
|
|
12810
13012
|
"marquee",
|
|
12811
|
-
"sewn-label"
|
|
13013
|
+
"sewn-label",
|
|
13014
|
+
"edged-pill"
|
|
12812
13015
|
];
|
|
12813
13016
|
const quietArrowParametersSchema = z.object({
|
|
12814
13017
|
secondaryTreatment: z.enum(["outlined", "solid-accent"]),
|
|
@@ -12858,7 +13061,8 @@ const buttonStyleSelectionSchema = z.discriminatedUnion("styleId", [
|
|
|
12858
13061
|
selectionBranch("gilt-slab", emptyParametersSchema),
|
|
12859
13062
|
selectionBranch("hairline-tab", emptyParametersSchema),
|
|
12860
13063
|
selectionBranch("marquee", emptyParametersSchema),
|
|
12861
|
-
selectionBranch("sewn-label", emptyParametersSchema)
|
|
13064
|
+
selectionBranch("sewn-label", emptyParametersSchema),
|
|
13065
|
+
selectionBranch("edged-pill", emptyParametersSchema)
|
|
12862
13066
|
]);
|
|
12863
13067
|
/**
|
|
12864
13068
|
* Stable identity for a validated style selection. Parsing first canonicalises
|
|
@@ -17052,7 +17256,8 @@ const buttonStyleRecipes = [
|
|
|
17052
17256
|
giltSlabRecipe,
|
|
17053
17257
|
hairlineTabRecipe,
|
|
17054
17258
|
marqueeRecipe,
|
|
17055
|
-
sewnLabelRecipe
|
|
17259
|
+
sewnLabelRecipe,
|
|
17260
|
+
edgedPillRecipe
|
|
17056
17261
|
];
|
|
17057
17262
|
const recipesById = new Map(buttonStyleRecipes.map((recipe) => [recipe.id, recipe]));
|
|
17058
17263
|
function findButtonStyleRecipe(id) {
|
|
@@ -17063,6 +17268,7 @@ function findButtonStyleRecipe(id) {
|
|
|
17063
17268
|
function resolveButtonStyleSelection(selection) {
|
|
17064
17269
|
switch (selection.styleId) {
|
|
17065
17270
|
case "sewn-label": return resolveButtonStyleRecipe(sewnLabelRecipe, selection.parameters);
|
|
17271
|
+
case "edged-pill": return resolveButtonStyleRecipe(edgedPillRecipe, selection.parameters);
|
|
17066
17272
|
case "soft-pill": return resolveButtonStyleRecipe(softPillRecipe, selection.parameters);
|
|
17067
17273
|
case "earth-pill": return resolveButtonStyleRecipe(earthPillRecipe, selection.parameters);
|
|
17068
17274
|
case "confident-chip": return resolveButtonStyleRecipe(confidentChipRecipe, selection.parameters);
|
|
@@ -18407,4 +18613,4 @@ function ThemedAuthoredButton({ label, href, variant, size, extraClassName, disa
|
|
|
18407
18613
|
});
|
|
18408
18614
|
}
|
|
18409
18615
|
//#endregion
|
|
18410
|
-
export { headerInteractionPalettePair as $,
|
|
18616
|
+
export { headerInteractionPalettePair as $, parsePageSurfaceId as $i, surfaceForegroundStyle as $n, isArrangementMode as $r, backgroundColorStyle as $t, resolveButtonStyleSelection as A, getStripeMinimumChargeRequirement as Ai, safeTokenOr as An, asAppearancePresetId as Ar, NAV_LINK_BORDER_RADIUS_MAP as At, generateBaseInteractiveCSS as B, getBookingInstalmentPlanIntervalCount as Bi, resolveConcreteColorHex as Bn, asSiteStyleId as Br, INPUT_FONT_SIZE_MAP as Bt, FileTextIcon as C, SpinnerNode as Ci, resolveThemeColorReferenceValue as Cn, indexRenderableMediaAssets as Cr, logoSizePolicyValues as Ct, buttonStyleSelectionParameterValue as D, eventRegistrationErrors as Di, selectLogoVariant as Dn, skinBookingBarSchema as Dr, getComponentShadowVar as Dt, buttonStyleHoverPreferenceValue as E, eventRegistrationErrorEndsCommand as Ei, PUBLIC_BUTTON_ROLES as En, parseCanonicalMediaIdentifier as Er, getComponentBorderWidthPx as Et, buttonStyleSelectionsEqual as F, repriceBookingCollectionOptions as Fi, expandPalette as Fn, asDesignBoundaryId as Fr, navLinkHoverColorCandidate as Ft, containerStylesOverrideSchema as G, parseContentVersionId as Gi, _classPrivateFieldInitSpec as Gn, defineNoBlockDesignCapability as Gr, ACCORDION_TRIGGER_FONT_SCALE as Gt, parseThemeButtonVariantId as H, expectParsedBrandedId as Hi, buildThemeTokens as Hn, defineBlockDesignCapability as Hr, LABEL_FONT_SIZE_MAP as Ht, generateButtonActionLayoutCss as I, resolveAvailableBookingCollectionOptions as Ii, getTextColorForBackground as In, asDesignPageId as Ir, navLinkOwnsHoverForeground as It, sectionStylesOverrideSchema as J, parseEventOfferingId as Ji, DEFAULT_SURFACE_TEXT_COLOR as Jn, eyebrowTreatmentValues as Jr, ICON_SIZE_PX as Jt, corners as K, parseEditorClientId as Ki, featuresFromHex as Kn, designIssueSeverityForPolicy as Kr, ACCORDION_TRIGGER_LETTER_SPACING as Kt, generateButtonCss as L, resolveBookingCollectionOptionFacts as Li, compositeHex$1 as Ln, asDesignSystemTemplateId as Lr, navLinkOwnsUnderline as Lt, updateButtonStyleSelectionChoice as M, planCheckoutPaymentFlow as Mi, solveSurfaceInks as Mn, asBlockOrderIndex as Mr, NAV_LINK_PADDING_MAP as Mt, buttonStyleSelectionKey as N, planFlexibleBalanceCreditFirst as Ni, _classPrivateFieldGet2 as Nn, asBoundaryOptionId as Nr, NAV_LINK_PADDING_X_MAP as Nt, defaultButtonStyleSelectionFor as O, parseEventRegistrationErrorReason as Oi, surfaceToneFromForegroundToken as On, skinTokenCssVars as Or, parseBlockCustomCssRules as Ot, buttonStyleSelectionSchema as P, isBookingCollectionEquivalentToUpfront as Pi, _classPrivateFieldSet2 as Pn, asDesignBlockId as Pr, NAV_LINK_TEXT_SIZE_MAP as Pt, runtimeBoxBackgroundSchema as Q, parsePageId as Qi, surfaceForegroundInputFromResolved as Qn, introCompositionTreatmentValues as Qr, TokenResolver as Qt, generateDefaultButtonSystem as R, getBookingLaterInstalments as Ri, planForegroundHover as Rn, asLayoutVariantKey as Rr, navEffectPolicy as Rt, FileSpreadsheetIcon as S, parseColorTokenParts as Si, resolveOnColorForThemeToken as Sn, renderableMediaAssetSchema as Sr, deterministicLogoFactsForShape as St, PlusIcon as T, checkBrowserStripeKey as Ti, generateShadowValue as Tn, mediaIdentifierSchema as Tr, selectLogoAccommodation as Tt, parseThemeForPersistence as U, parseApiKeyId as Ui, defaultThemeTokens as Un, defineExactCatalog as Ur, ACCORDION_OPEN_ACCENT_THICKNESS as Ut, generateInteractiveChildInheritanceCSS as V, formatCurrencyAmount as Vi, resolveOpaqueSurfaceHex as Vn, assertNever as Vr, INPUT_SPACING_MAP as Vt, cardStylesOverrideSchema as W, parseContentEntryId as Wi, ORDINARY_TEXT_MIN_CONTRAST_RATIO as Wn, defineFrameCapability as Wr, ACCORDION_SPACING_MAP as Wt, boxBackgroundOverlaySchema as X, parseFormId as Xi, SURFACE_INK_CSS_VARS as Xn, flushPanelFrame as Xr, generateCardCss as Xt, themeSchema as Y, parseEventSeriesId as Yi, SURFACE_FOREGROUND_CSS_VARS as Yn, featureCardCompositionTreatmentValues as Yr, cardSurfacePaint as Yt, boxBackgroundSchema as Z, parseMediaAssetId as Zi, surfaceForegroundDeclarations as Zn, headingDecorationColorTokenValues as Zr, renderCssDeclarations as Zt, CirclePlusIcon as _, unsafeAsOpaqueButtonColourToken as _i, toAccessibleColorSurfaceIntent as _n, requirePaletteColorsFromEntries as _r, siteChromeBackgroundOverrideOwner as _t, ThemedDownloadLink as a, unsafeAsCustomerPassId as aa, requireNonEmptyReadonlyArray as ai, textColorValue as an, resolveCardRole as ar, renderHeaderPaintTargetRules as at, FileArchiveIcon as b, themeColorShadeSteps as bi, scrimTone as bn, runtimeMediaSchema as br, themeV2RuntimeStyleFieldNames as bt, isKnownIconName as c, unsafeAsPassId as ca, tileTreatmentValues as ci, opaqueSurfaceDeclarations as cn, cardRoleValues as cr, MQ_LG_UP as ct, resolveIconPickerPreset as d, unsafeAsSiteId as da, buildFontPreviewUrl as di, parseSurfaceTree as dn, hexColorSchema as dr, MQ_SM_UP as dt, parseSiteId as ea, makeBoundaryId as ei, borderColorStyle as en, surfaceForegroundValue as er, headerInteractionPaletteValues as et, SEMANTIC_ICON_DEFINITIONS as f, unsafeAsStorageBucketName as fa, buildGoogleFontFamilyQuery as fi, prepareThemeSurfaceRevision as fn, paletteColorEntries as fr, MQ_TABLET_ONLY as ft, CircleMinusIcon as g, VARIANT_ROLES as gi, surfaceTransportContext as gn, paletteValueKeySchema as gr, pageDesignEditorBackgroundOverrideOwner as gt, ChevronDownIcon as h, getSiteFontsStorageUrl as hi, surfaceDecorationColors as hn, paletteValueKey as hr, isThemeV2NormalEditorRawStylePath as ht, ThemedButtonSpecimen as i, unsafeAsAppointmentServiceId as ia, plainFrame as ii, textColorStyle as in, cardSystemDefinesRole as ir, getHeaderPaintTargets as it, updateButtonStyleHoverPreference as j, confirmationPaymentSchema as ji, surfaceInkPublication as jn, asBlockContentVersionId as jr, NAV_LINK_LETTER_SPACING_MAP as jt, findButtonStyleRecipe as k, checkoutCopy as ki, resolveSurfaceForeground as kn, arrangementModes as kr, parseCustomCssRules as kt, ICON_PICKER_PRESETS as l, unsafeAsPositiveByteCount as la, toNonEmptyReadonlyArray as li, contrastThresholdByPolicy as ln, cardVariantRoleValues as lr, MQ_MD_DOWN as lt, ArrowDownIcon as m, getFontWidthRange as mi, serializeSurfaceTree as mn, paletteModeSchema as mr, isThemeV2NormalEditorRawStyleFieldName as mt, ThemedButton as n, parseUserId as na, offeringsPreviewCompositionTreatmentValues as ni, mergeStyles as nn, surfaceInkDeclarations as nr, generateHeaderScrollTreatmentStyles as nt, getIconComponent as o, unsafeAsFormId as oa, sectionBackgroundPaintValues as oi, mapDrawingStyle as on, generateShadowValue$1 as or, BREAKPOINT_LG as ot, isSemanticIconId as p, unsafeAsStoragePath as pa, generateFontFaceCss as pi, resolveSurface as pn, paletteColorsSchema as pr, headerVariantValues as pt, headerPositioningValues as q, parseEditorSessionGeneration as qi, hexToRgb as qn, eventListTreatmentValues as qr, ICON_CONFIG as qt, ThemedButtonLink as r, unsafeAsAppointmentResourceId as ra, panelFrame as ri, rgbColorValue as rn, surfaceInkStyle as rr, generateMobileOverlayBackdropFilterFix as rt, getIconPickerOptionsForPreset as s, unsafeAsMediaAssetId as sa, testimonialsCompositionTreatmentValues as si, opaqueSurfaceContextFromTheme as sn, cardRoleSchema as sr, BREAKPOINT_XL as st, ThemedAuthoredButton as t, parseSiteTermsVersionId as ta, noHeadingDecoration as ti, cssVarValue as tn, surfaceForegroundValueWithOpacity as tr, headerInteractionQuietPalette as tt, isIconPickerPreset as u, unsafeAsPositiveSeconds as ua, visibleHeadingDecorationFamilyValues as ui, parseResolvedSurface as un, normalizeCardRole as ur, MQ_SM_DOWN as ut, ClockIcon as v, paletteTokenNameSchema as vi, gradientScrimSamples as vn, imageMediaSchema as vr, stripStaleTransitionStyleGroup as vt, MinusIcon as w, clsx as wi, resolveTokenOrCssColorValue as wn, resolveManagedMediaReference as wr, resolveBrandDisplay as wt, FileAudioIcon as x, parseBlockColorToken as xi, isCssColorLiteral as xn, buildRenderableMediaAssetIndex as xr, brandDisplayModeValues as xt, ExternalLinkIcon as y, parseThemeColorToken as yi, minimumScrimOpacity as yn, mediaSchema as yr, themeV2CompilerOwnedFieldNames as yt, generateEffectsCSS as z, validateBookingPaymentOptionKinds as zi, worstCaseGlassBackdrop as zn, asPageFlowPresetId as zr, FONT_WEIGHT_MAP$1 as zt };
|