@riverbankcms/sdk 0.153.0 → 0.155.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 +2 -0
- package/dist/{EventEmbeddedCheckoutStep-veN-QiAE.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs} +1 -1
- package/dist/{PreviewEditorSidebar-jI_4DTZY.mjs → PreviewEditorSidebar-CbSbqmz3.mjs} +219 -38
- package/dist/{PreviewEditorUI-ORkVZhfu.mjs → PreviewEditorUI-CKKnAw11.mjs} +26 -58
- package/dist/{SdkPreviewModeRuntime-DaNqevI1.mjs → SdkPreviewModeRuntime-wLkXrWy9.mjs} +177 -84
- package/dist/{SiteChromeCustomizeContext-CgNuBHC0.mjs → SiteChromeCustomizeContext-BQ8vvKb-.mjs} +9824 -5829
- package/dist/{ThemedButton-X2UxhW6F.mjs → ThemedButton-Bi0rgijy.mjs} +482 -85
- package/dist/_dts/ai/src/contracts/proposals.d.ts +42873 -16847
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +5432 -1810
- package/dist/_dts/api/src/billing.d.ts +2 -0
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +78 -0
- package/dist/_dts/api/src/bookingAdjustments.d.ts +3 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -12
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +2 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +11 -2
- package/dist/_dts/api/src/bookingPeople.d.ts +20 -1
- package/dist/_dts/api/src/bookingPeopleEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +5 -106
- package/dist/_dts/api/src/bookings.d.ts +10 -4
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -3
- package/dist/_dts/api/src/endpoints.d.ts +89 -44
- package/dist/_dts/api/src/eventManagementContracts.d.ts +20 -11
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/index.d.ts +9 -4
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/moneyPayments.d.ts +116 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +2 -0
- package/dist/_dts/api/src/privacyPolicy.d.ts +20 -2
- package/dist/_dts/api/src/public/types.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +1 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/sdk-event-management.d.ts +1 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +24 -9
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +5 -3
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +15 -4
- package/dist/_dts/api/src/sdkThemeWire.d.ts +172 -103
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +17 -16
- package/dist/_dts/api/src/siteSettings.d.ts +1 -0
- package/dist/_dts/api/src/siteTerms.d.ts +100 -0
- package/dist/_dts/api/src/stripeConnectSetup.d.ts +90 -0
- package/dist/_dts/api/src/types.d.ts +13 -32
- package/dist/_dts/api/src/webhooks.d.ts +9 -9
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -4
- package/dist/_dts/block-form/src/client/index.d.ts +2 -1
- package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +3 -1
- package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +12 -33
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +30 -118
- package/dist/_dts/blocks/src/index.d.ts +2 -2
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -1
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -0
- package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -1
- package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +1 -0
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/fields.d.ts +0 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +13 -9
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +10 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery/fields.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +6 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -45
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +7 -1
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/itemData.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +56 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/photoCount.d.ts +3 -12
- package/dist/_dts/blocks/src/system/blocks/shared/siteTerms.d.ts +17 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime-layout.d.ts +23 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime-profile.d.ts +20 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +17 -16
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +119 -9
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +24 -24
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +3 -1
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +6 -0
- package/dist/_dts/blocks/src/system/node/fragments/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +22 -3
- package/dist/_dts/blocks/src/system/node/fragments/responsiveTwoColumn.d.ts +3 -1
- package/dist/_dts/blocks/src/system/node/fragments/sectionHead.d.ts +15 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -198
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -99
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.state.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +22 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +6 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.d.ts +5 -30
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.server.d.ts +3 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +71 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +16 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/CalendarAction.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCalendar.d.ts +16 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +26 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventItem.d.ts +17 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardListContent.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +49 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/form.fields.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/form.interactive.d.ts +11 -79
- package/dist/_dts/blocks/src/system/runtime/nodes/form.parts.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/form.server.d.ts +2 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +8 -72
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.parts.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/SiteTermsAgreementField.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsAgreement.d.ts +81 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsCheckoutApi.d.ts +14 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/footerArrangement.d.ts +6 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -11
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -10
- package/dist/_dts/blocks/src/system/types/link.d.ts +2 -0
- package/dist/_dts/calendar/src/icsRenderer.d.ts +23 -0
- package/dist/_dts/calendar/src/index.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/orderConfirmationPlanning.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +5 -0
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +5 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +1 -1
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +6 -3
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -1
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/publicationDate.d.ts +5 -0
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +3 -1
- package/dist/_dts/content-editor/src/footerNavigationLayoutState.d.ts +56 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -4
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +11 -8
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +6 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -0
- package/dist/_dts/content-model/src/contentManifest.d.ts +10 -2
- package/dist/_dts/content-model/src/definitions/shared.d.ts +2 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +5 -0
- package/dist/_dts/core/src/booking-refunds.d.ts +43 -0
- package/dist/_dts/core/src/branded.d.ts +6 -0
- package/dist/_dts/core/src/date-display.d.ts +90 -0
- package/dist/_dts/core/src/date-time-formatter.d.ts +2 -0
- package/dist/_dts/core/src/footer-arrangement.d.ts +8 -1
- package/dist/_dts/core/src/footer-composition-types.d.ts +6 -1
- package/dist/_dts/core/src/footer-composition.d.ts +1 -1
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +3 -0
- package/dist/_dts/core/src/index.d.ts +4 -1
- package/dist/_dts/core/src/mailing-list-setup.d.ts +3 -0
- package/dist/_dts/core/src/mailing-list-submission.d.ts +6 -1
- package/dist/_dts/core/src/public-profile.d.ts +3 -1
- package/dist/_dts/core/src/scheduled-date-time.d.ts +69 -0
- package/dist/_dts/core/src/site-terms.d.ts +94 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +356 -9
- package/dist/_dts/db/src/schemas/forms.d.ts +32 -32
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +2 -2
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +3 -2
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +6 -1
- package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/ArrangementBlockToolbar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/arrangementControlsModel.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +27 -5
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/useConfirmedPreferenceRecord.d.ts +12 -0
- package/dist/_dts/preview-next/src/client/preview/usePersistedFooterPreferences.d.ts +26 -0
- package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +40 -2
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -0
- package/dist/_dts/sdk/src/config/typed-entry-links.test-d.d.ts +1 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -46
- package/dist/_dts/sdk/src/date-time/index.d.ts +2 -68
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -4
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/lanternRecipes.d.ts +60 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +12 -8
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +69 -8
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +22 -1
- package/dist/_dts/theme-core/src/buttons/types.d.ts +358 -46
- package/dist/_dts/theme-core/src/buttons/typography.d.ts +24 -0
- package/dist/_dts/theme-core/src/cards/types.d.ts +8 -8
- package/dist/_dts/theme-core/src/footer/effectiveNavLinkStyle.d.ts +1 -1
- package/dist/_dts/theme-core/src/footer/generateFooterCss.d.ts +4 -1
- package/dist/_dts/theme-core/src/footer/mode.d.ts +2 -11
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +1 -0
- package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/inputs/checkable.d.ts +6 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +249 -147
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/schema.d.ts +321 -192
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +24 -7
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +4 -6
- package/dist/_dts/theme-core/src/site-styles/compileFooterAgainstRow.d.ts +121 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +81 -1
- package/dist/_dts/theme-core/src/site-styles/footerLookDefaults.d.ts +45 -0
- package/dist/_dts/theme-core/src/site-styles/footerLookRecipe.d.ts +50 -0
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +9 -35
- package/dist/_dts/theme-core/src/site-styles/footerPreferences.d.ts +29 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +2 -3
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +13 -1
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +46 -0
- package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +4 -1
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +2 -0
- package/dist/_dts/theme-core/src/typography/schema.d.ts +9 -0
- package/dist/_dts/ui/src/calendar.d.ts +6 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/index.d.ts +1 -1
- package/dist/client/{BookingMailingListNote-DrchYW1m.mjs → BookingMailingListNote-CiW1dsz7.mjs} +3 -3
- package/dist/client/{CardListItem-CC_GVmF6.mjs → CardListItem-DVYTlYpS.mjs} +70 -13
- package/dist/client/CheckboxChoice-CUnPrBlC.mjs +44 -0
- package/dist/client/DemoBookingPortalAccess-DEsn5F2C.mjs +770 -0
- package/dist/client/{EventCombined.client-DyN0v0Xk.mjs → EventCombined.client-BdctbwnV.mjs} +5 -5
- package/dist/client/{EventEmbeddedCheckoutStep-CgfpKc3n.mjs → EventEmbeddedCheckoutStep-DAhQs6Jb.mjs} +2 -5
- package/dist/client/{EventListing.client-CuOuvYMz.mjs → EventListing.client-BviZXfAE.mjs} +2 -2
- package/dist/client/{mailingListSignupCopy-DZSHZrm6.mjs → FieldValidationMessage-AYanWFb-.mjs} +1 -14
- package/dist/client/{LeafletStaticMap-B0WhRr3j.mjs → LeafletStaticMap-BLTECfjU.mjs} +1 -1
- package/dist/client/{RichText-C1fIXBzA.mjs → RichText-D3oE1_pw.mjs} +77 -44
- package/dist/client/ThemedButton-Ckj0Rfr_.mjs +1256 -0
- package/dist/client/{accordion-DCDVWSye.mjs → accordion-yBx6d4O2.mjs} +1 -1
- package/dist/client/{bookingForm-BJ3C4GlM.mjs → bookingForm-CPDEsQci.mjs} +64 -35
- package/dist/client/bookings.mjs +19252 -15228
- package/dist/client/carousel-DCqjwd2s.mjs +71 -0
- package/dist/client/{carousel.client-GEtOGsxo.mjs → carousel.client-Bx7XMF8-.mjs} +114 -39
- package/dist/client/{cart-Yv-aAtck.mjs → cart-DWJXrQxs.mjs} +3 -3
- package/dist/client/{checkout-B9xDkl30.mjs → checkout-CH4ypSLS.mjs} +3 -3
- package/dist/client/client.mjs +13559 -7353
- package/dist/client/{context-BOGe3rIA.mjs → context-BOs0m_iw.mjs} +16 -12
- package/dist/client/{eventCalendar-D6M0T9hs.mjs → eventCalendar-CRylMllc.mjs} +8 -319
- package/dist/client/{eventCombined-NM4UFBq8.mjs → eventCombined-DohTS3kp.mjs} +4 -4
- package/dist/client/{eventDetails-f_FhV4O8.mjs → eventDetails-qf-u9zcF.mjs} +108 -36
- package/dist/client/{eventListing-WLkfAROh.mjs → eventListing-Cg__X2vy.mjs} +4 -4
- package/dist/client/{eventRegistration-D3ejfLvW.mjs → eventRegistration-CybWxswy.mjs} +215 -237
- package/dist/client/{form-D5Or2Jyu.mjs → form-C-SGk6nq.mjs} +115 -51
- package/dist/client/{headerSection-hWgnv27V.mjs → headerSection-BdzPaHqo.mjs} +3 -3
- package/dist/client/hooks.mjs +3280 -1362
- package/dist/client/{locationMap-Di1K0O2S.mjs → locationMap-CEwIKmMb.mjs} +3 -3
- package/dist/client/mailingListSignupCopy-DS-_ePzG.mjs +14 -0
- package/dist/client/{media-D29-F1u_.mjs → media-V_ShXXru.mjs} +3 -3
- package/dist/client/{mediaContext-CwbbimYB.mjs → mediaContext-D-0tNVxE.mjs} +1 -1
- package/dist/client/{newsletterForm-CwxcwTNO.mjs → newsletterForm-CmwTltoS.mjs} +52 -15
- package/dist/client/{productDetail-BLSnhPdA.mjs → productDetail-DjIzUwg3.mjs} +3 -3
- package/dist/client/{productList-oGytONOX.mjs → productList-D6JGFnMF.mjs} +3 -3
- package/dist/client/{propsDecoder-lf_dTeZS.mjs → propsDecoder-BRKz13eg.mjs} +17944 -14861
- package/dist/client/{renderableMediaAssetAdmission-CHkXYDC_.mjs → renderableMediaAssetAdmission-Cd3JSw2H.mjs} +3 -1
- package/dist/client/rendering/client.mjs +15893 -11685
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +14451 -8139
- package/dist/client/{routeIslandApiConfig-Bc_WVPS8.mjs → routeIslandApiConfig-slAAILQ5.mjs} +1 -1
- package/dist/client/{shop-BQ3bR7fA.mjs → shop-C45K96_0.mjs} +178 -157
- package/dist/client/{shop-commerce-DDPll6ZC.mjs → shop-commerce-oGBiKT5d.mjs} +23 -10
- package/dist/client/{shop-commerce-store-DO-e1pTe.mjs → shop-commerce-store-H_HFPFZ8.mjs} +1 -1
- package/dist/client/{shopShared-BylM9jh1.mjs → shopShared-D54T_LAV.mjs} +5 -5
- package/dist/client/{useDiscountCodeUi-B1Puub2v.mjs → useDiscountCodeUi-Dm2EUa03.mjs} +1 -1
- package/dist/client/{useEventPagination-BBhkmQaT.mjs → useEventPagination-0l_A8CxG.mjs} +62 -24
- package/dist/preview-next/before-render.mjs +134 -51
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/editor-chrome.css +5 -2
- package/dist/preview-next/keepAlive.mjs +134 -51
- package/dist/preview-next/middleware.mjs +134 -51
- package/dist/{sdk-runtime-DWCvhJGu.mjs → sdk-runtime-CjTM32Ah.mjs} +1 -1
- package/dist/server/components.mjs +15231 -10855
- package/dist/server/config-validation.mjs +3153 -1323
- package/dist/server/config.mjs +3119 -1321
- package/dist/server/data.mjs +3201 -1329
- package/dist/server/date-time.mjs +270 -117
- package/dist/server/index.mjs +137 -52
- package/dist/server/next.mjs +14713 -10388
- package/dist/server/page-converter.mjs +2642 -1073
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +14674 -10630
- package/dist/server/rendering.mjs +15055 -10670
- package/dist/server/routing.mjs +3483 -1488
- package/dist/server/server.mjs +3620 -1740
- package/dist/server/theme-bridge.mjs +2694 -189
- package/dist/server/theme.mjs +422 -67
- package/dist/{spinner-BYM-Y81w.mjs → spinner-KVVZh8jd.mjs} +1 -1
- package/dist/src-BgmWy3P1.mjs +1667 -0
- package/dist/styles/index.css +1196 -2
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/layout.d.ts +0 -12
- package/dist/client/CheckboxChoice-Dq30m3DO.mjs +0 -24
- package/dist/client/DemoBookingPortalAccess-ojwbVUmx.mjs +0 -344
- package/dist/client/ThemedButton-B7HFqFBg.mjs +0 -411
- package/dist/client/carousel-BSCBhfHY.mjs +0 -38
|
@@ -76,6 +76,7 @@ const unsafeAsPositiveSeconds = (value) => value;
|
|
|
76
76
|
const unsafeAsUserId = (id) => id;
|
|
77
77
|
const unsafeAsFormId = (id) => id;
|
|
78
78
|
const unsafeAsPassId = (id) => id;
|
|
79
|
+
const unsafeAsSiteTermsVersionId = (id) => id;
|
|
79
80
|
const unsafeAsCustomerPassId = (id) => id;
|
|
80
81
|
const unsafeAsAppointmentServiceId = (id) => id;
|
|
81
82
|
const unsafeAsAppointmentResourceId = (id) => id;
|
|
@@ -92,6 +93,7 @@ const parseMediaAssetId = (value) => parseUuidBrand(value, unsafeAsMediaAssetId)
|
|
|
92
93
|
const parseContentEntryId = (value) => parseUuidBrand(value, unsafeAsContentEntryId);
|
|
93
94
|
const parseContentVersionId = (value) => parseUuidBrand(value, unsafeAsContentVersionId);
|
|
94
95
|
const parseFormId = (value) => parseUuidBrand(value, unsafeAsFormId);
|
|
96
|
+
const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
|
|
95
97
|
const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
|
|
96
98
|
//#endregion
|
|
97
99
|
//#region ../core/src/date-math.ts
|
|
@@ -937,6 +939,29 @@ function SpinnerNode({ className, size = "md", color, strokeWidth = 3, srLabel,
|
|
|
937
939
|
});
|
|
938
940
|
}
|
|
939
941
|
//#endregion
|
|
942
|
+
//#region ../theme-core/src/buttons/typography.ts
|
|
943
|
+
const textTransformSchema = z.enum([
|
|
944
|
+
"none",
|
|
945
|
+
"uppercase",
|
|
946
|
+
"lowercase",
|
|
947
|
+
"capitalize"
|
|
948
|
+
]);
|
|
949
|
+
const fontWeightSchema = z.union([
|
|
950
|
+
z.literal(400),
|
|
951
|
+
z.literal(500),
|
|
952
|
+
z.literal(600),
|
|
953
|
+
z.literal(700),
|
|
954
|
+
z.literal(800)
|
|
955
|
+
]);
|
|
956
|
+
const buttonTypographySchema = z.enum(["body", "heading"]);
|
|
957
|
+
const letterSpacingSchema = z.enum([
|
|
958
|
+
"tight",
|
|
959
|
+
"normal",
|
|
960
|
+
"slight",
|
|
961
|
+
"loose",
|
|
962
|
+
"wide"
|
|
963
|
+
]);
|
|
964
|
+
//#endregion
|
|
940
965
|
//#region ../theme-core/src/tokens/colorTokenParts.ts
|
|
941
966
|
function parseOpacityPercent(source) {
|
|
942
967
|
const trimmed = source.trim();
|
|
@@ -1214,6 +1239,7 @@ const buttonEffectApplicationSchema = z.discriminatedUnion("effectId", [
|
|
|
1214
1239
|
z.strictObject({
|
|
1215
1240
|
effectId: z.literal("lift"),
|
|
1216
1241
|
options: z.strictObject({ amount: z.enum([
|
|
1242
|
+
"0.125",
|
|
1217
1243
|
"0.25",
|
|
1218
1244
|
"0.5",
|
|
1219
1245
|
"1"
|
|
@@ -1260,24 +1286,6 @@ const shadowSizeSchema = z.enum([
|
|
|
1260
1286
|
"medium",
|
|
1261
1287
|
"high"
|
|
1262
1288
|
]);
|
|
1263
|
-
const textTransformSchema = z.enum([
|
|
1264
|
-
"none",
|
|
1265
|
-
"uppercase",
|
|
1266
|
-
"lowercase",
|
|
1267
|
-
"capitalize"
|
|
1268
|
-
]);
|
|
1269
|
-
const fontWeightSchema = z.union([
|
|
1270
|
-
z.literal(500),
|
|
1271
|
-
z.literal(600),
|
|
1272
|
-
z.literal(700),
|
|
1273
|
-
z.literal(800)
|
|
1274
|
-
]);
|
|
1275
|
-
const buttonTypographySchema = z.enum(["body", "heading"]);
|
|
1276
|
-
const letterSpacingSchema = z.enum([
|
|
1277
|
-
"tight",
|
|
1278
|
-
"normal",
|
|
1279
|
-
"loose"
|
|
1280
|
-
]);
|
|
1281
1289
|
const hoverTransformSchema = z.enum([
|
|
1282
1290
|
"none",
|
|
1283
1291
|
"lift",
|
|
@@ -1349,7 +1357,8 @@ const paddingShorthandSchema = z.string().refine((value) => {
|
|
|
1349
1357
|
}, { message: "Padding must be two space-separated CSS length tokens (e.g. \"0.5rem 1rem\"). Use `0` for zero." });
|
|
1350
1358
|
const buttonSizeConfigSchema = z.object({
|
|
1351
1359
|
padding: paddingShorthandSchema,
|
|
1352
|
-
fontSize: z.string().optional()
|
|
1360
|
+
fontSize: z.string().optional(),
|
|
1361
|
+
borderRadius: z.string().optional()
|
|
1353
1362
|
});
|
|
1354
1363
|
/**
|
|
1355
1364
|
* `xl` is optional on the wire so themes persisted before the `xl` size was
|
|
@@ -1472,12 +1481,20 @@ const buttonVisualAppearanceSchema = z.strictObject({
|
|
|
1472
1481
|
textTransform: textTransformSchema
|
|
1473
1482
|
}),
|
|
1474
1483
|
effects: z.array(buttonEffectApplicationSchema),
|
|
1484
|
+
transform: z.literal("none").optional(),
|
|
1475
1485
|
contextualHover: contextualButtonHoverSchema.optional()
|
|
1476
1486
|
});
|
|
1477
1487
|
const buttonVisualStatesSchema = z.strictObject({
|
|
1478
1488
|
base: buttonVisualAppearanceSchema.extend({ shadow: variantShadowSchema }),
|
|
1479
1489
|
hover: buttonVisualAppearanceSchema.extend({ shadow: variantShadowSchema }),
|
|
1480
|
-
focus: buttonVisualAppearanceSchema.extend({
|
|
1490
|
+
focus: buttonVisualAppearanceSchema.extend({
|
|
1491
|
+
shadow: z.literal("focus-indicator"),
|
|
1492
|
+
indicator: z.strictObject({
|
|
1493
|
+
kind: z.literal("surface-ink"),
|
|
1494
|
+
width: z.union([z.literal(2), z.literal(3)]),
|
|
1495
|
+
offset: z.union([z.literal(3), z.literal(4)])
|
|
1496
|
+
}).optional()
|
|
1497
|
+
}),
|
|
1481
1498
|
active: buttonVisualAppearanceSchema.extend({ shadow: variantShadowSchema }),
|
|
1482
1499
|
disabled: buttonVisualAppearanceSchema.extend({ shadow: variantShadowSchema })
|
|
1483
1500
|
});
|
|
@@ -1794,6 +1811,15 @@ const eyebrowTypographyStyleSchema = z.object({
|
|
|
1794
1811
|
});
|
|
1795
1812
|
const typographySchema = z.object({
|
|
1796
1813
|
body: bodyTypographyStyleSchema,
|
|
1814
|
+
smallHeading: z.object({
|
|
1815
|
+
family: z.string().min(1),
|
|
1816
|
+
weight: z.enum([
|
|
1817
|
+
"regular",
|
|
1818
|
+
"medium",
|
|
1819
|
+
"semibold",
|
|
1820
|
+
"bold"
|
|
1821
|
+
])
|
|
1822
|
+
}).optional(),
|
|
1797
1823
|
headings: z.object({
|
|
1798
1824
|
default: headingTypographyStyleSchema,
|
|
1799
1825
|
h1: headingTypographyOverridesSchema,
|
|
@@ -2088,19 +2114,6 @@ const themeLookMetadataSchema = z.object({
|
|
|
2088
2114
|
skinMarks: skinMarksSchema.optional()
|
|
2089
2115
|
});
|
|
2090
2116
|
//#endregion
|
|
2091
|
-
//#region ../theme-core/src/footer/mode.ts
|
|
2092
|
-
const footerModeSchema = z.enum([
|
|
2093
|
-
"default",
|
|
2094
|
-
"blocks",
|
|
2095
|
-
"default+blocks",
|
|
2096
|
-
"none"
|
|
2097
|
-
]);
|
|
2098
|
-
/** Reads only SDK footer intent; unrelated config and theme fields are not authorities. */
|
|
2099
|
-
function resolveSdkFooterMode(config) {
|
|
2100
|
-
const parsed = z.object({ layout: z.object({ footerMode: footerModeSchema.optional() }).optional() }).safeParse(config);
|
|
2101
|
-
return parsed.success ? parsed.data.layout?.footerMode ?? "default" : "default";
|
|
2102
|
-
}
|
|
2103
|
-
//#endregion
|
|
2104
2117
|
//#region ../media-core/src/identifiers.ts
|
|
2105
2118
|
function slugifyMediaIdentifier(value) {
|
|
2106
2119
|
return value.toLowerCase().trim().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-");
|
|
@@ -3953,6 +3966,7 @@ function canonicalHoverToken(reference, palette) {
|
|
|
3953
3966
|
}
|
|
3954
3967
|
return canonicalToken(reference, palette);
|
|
3955
3968
|
}
|
|
3969
|
+
/** Keep a candidate only when it meets ordinary-text contrast on the ground. */
|
|
3956
3970
|
function safeTokenOr(candidate, fallback, backgroundHex, palette) {
|
|
3957
3971
|
return firstSafeToken([candidate], backgroundHex, palette) ?? fallback;
|
|
3958
3972
|
}
|
|
@@ -4165,6 +4179,8 @@ const GRADIENT_DIRECTION_MAP = {
|
|
|
4165
4179
|
*/
|
|
4166
4180
|
const BORDER_RADIUS_MAP = {
|
|
4167
4181
|
"rounded-none": "0",
|
|
4182
|
+
"rounded-3px": "3px",
|
|
4183
|
+
"rounded-10px": "10px",
|
|
4168
4184
|
"rounded-sm": "0.125rem",
|
|
4169
4185
|
"rounded": "0.25rem",
|
|
4170
4186
|
"rounded-md": "0.375rem",
|
|
@@ -4238,6 +4254,10 @@ const BORDER_WIDTH_MAP = {
|
|
|
4238
4254
|
*/
|
|
4239
4255
|
const FONT_SIZE_MAP = {
|
|
4240
4256
|
"text-xs": "0.75rem",
|
|
4257
|
+
"text-13px": "0.8125rem",
|
|
4258
|
+
"text-15px": "0.9375rem",
|
|
4259
|
+
"text-17px": "1.0625rem",
|
|
4260
|
+
"text-19px": "1.1875rem",
|
|
4241
4261
|
"text-sm": "0.875rem",
|
|
4242
4262
|
"text-base": "1rem",
|
|
4243
4263
|
"text-lg": "1.125rem",
|
|
@@ -4373,7 +4393,9 @@ function buttonTypographyDeclarations(type) {
|
|
|
4373
4393
|
const spacing = type.letterSpacing === null ? null : type.letterSpacing === "heading" ? "var(--ls-heading)" : {
|
|
4374
4394
|
tight: "-0.025em",
|
|
4375
4395
|
normal: "0",
|
|
4376
|
-
|
|
4396
|
+
slight: "0.01em",
|
|
4397
|
+
loose: "0.05em",
|
|
4398
|
+
wide: "0.125em"
|
|
4377
4399
|
}[type.letterSpacing];
|
|
4378
4400
|
return [
|
|
4379
4401
|
["font-weight", String(type.fontWeight)],
|
|
@@ -4393,21 +4415,23 @@ function buttonShadow(shadow, tokens) {
|
|
|
4393
4415
|
function buttonBorder(border, tokens) {
|
|
4394
4416
|
return border === "none" ? null : `${BORDER_WIDTH_MAP[border.widthClass] || "1px"} solid ${border.boundaryInk ? tokens.getColor(border.boundaryInk) : "currentColor"}`;
|
|
4395
4417
|
}
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
const
|
|
4399
|
-
const declared = new Map(buttonTypographyDeclarations(state.typography));
|
|
4418
|
+
function buttonTypographyChanges(base, state) {
|
|
4419
|
+
const original = new Map(buttonTypographyDeclarations(base));
|
|
4420
|
+
const declared = new Map(buttonTypographyDeclarations(state));
|
|
4400
4421
|
const resets = [
|
|
4401
4422
|
["font-style", "normal"],
|
|
4402
4423
|
["text-transform", "none"],
|
|
4403
4424
|
["letter-spacing", "normal"]
|
|
4404
4425
|
].filter(([property]) => original.has(property) && !declared.has(property));
|
|
4405
|
-
|
|
4426
|
+
return [...declared, ...resets].filter(([property, value]) => original.get(property) !== value);
|
|
4427
|
+
}
|
|
4428
|
+
/** Emit only changed declarations; identical states keep historical CSS bytes. */
|
|
4429
|
+
function buttonStateAppearanceDeclarations(base, state, tokens, disabled = false) {
|
|
4406
4430
|
const border = buttonBorder(state.border, tokens);
|
|
4407
4431
|
const radius = buttonRadius(state.borderRadius);
|
|
4408
4432
|
const shadow = !disabled && state.shadow !== "focus-indicator" ? buttonShadow(state.shadow, tokens) : null;
|
|
4409
4433
|
return [
|
|
4410
|
-
...
|
|
4434
|
+
...buttonTypographyChanges(base.typography, state.typography),
|
|
4411
4435
|
...buttonRadius(base.borderRadius) === radius ? [] : [["border-radius", radius]],
|
|
4412
4436
|
...buttonBorder(base.border, tokens) === border ? [] : [["border", border ?? "none"]],
|
|
4413
4437
|
...shadow === null || base.shadow === "focus-indicator" || buttonShadow(base.shadow, tokens) === shadow ? [] : [["box-shadow", shadow]]
|
|
@@ -4868,6 +4892,10 @@ function validateButtonTextContrast(input) {
|
|
|
4868
4892
|
}
|
|
4869
4893
|
};
|
|
4870
4894
|
}
|
|
4895
|
+
/** A text-token slab inverts the palette's text/background pair, including text shades. */
|
|
4896
|
+
function solidForegroundToken(backgroundToken) {
|
|
4897
|
+
return /^text(?:-\d+)?$/.test(backgroundToken) ? "background" : onColorTokenName(backgroundToken);
|
|
4898
|
+
}
|
|
4871
4899
|
//#endregion
|
|
4872
4900
|
//#region ../theme-core/src/buttons/contextualHover.ts
|
|
4873
4901
|
function resolveContextualHoverPreference(input) {
|
|
@@ -4965,7 +4993,7 @@ function candidate(family, shade, currentShade, direction, seedHex, palette) {
|
|
|
4965
4993
|
}
|
|
4966
4994
|
function hasSafeTextContrast(token, palette) {
|
|
4967
4995
|
const background = palette[token];
|
|
4968
|
-
const foreground = palette[
|
|
4996
|
+
const foreground = palette[solidForegroundToken(token)];
|
|
4969
4997
|
return typeof background === "string" && typeof foreground === "string" && contrastRatio(background, foreground) >= BUTTON_CONTRAST_POLICY.textMinimumRatio;
|
|
4970
4998
|
}
|
|
4971
4999
|
function isSafeCandidate(token, palette, surface) {
|
|
@@ -5060,6 +5088,13 @@ function compileDeclaredVisualStates(input, states) {
|
|
|
5060
5088
|
const colours = collectStateColours(mapVisualStates((state) => compileDeclaredVisualState(input, states, state, state === "hover" ? hover.treatment : states[state].background)));
|
|
5061
5089
|
return colours.ok ? {
|
|
5062
5090
|
...colours,
|
|
5091
|
+
focusIndicator: states.focus.indicator ? {
|
|
5092
|
+
kind: "surface-role",
|
|
5093
|
+
colorCss: input.surface?.foregroundCss ?? surfaceForegroundValue("text"),
|
|
5094
|
+
width: states.focus.indicator.width,
|
|
5095
|
+
offset: states.focus.indicator.offset,
|
|
5096
|
+
minimumSurfaceContrast: BUTTON_CONTRAST_POLICY.nonTextMinimumRatio
|
|
5097
|
+
} : colours.focusIndicator,
|
|
5063
5098
|
contextualHoverRepair: hover.repair
|
|
5064
5099
|
} : colours;
|
|
5065
5100
|
}
|
|
@@ -5197,7 +5232,7 @@ function resolveFocusIndicator(colour) {
|
|
|
5197
5232
|
function resolveSolid(input, backgroundToken, edge) {
|
|
5198
5233
|
const backgroundHex = paletteHex(input, backgroundToken);
|
|
5199
5234
|
if (!backgroundHex.ok) return backgroundHex;
|
|
5200
|
-
const foregroundToken = unsafeAsOpaqueButtonColourToken(
|
|
5235
|
+
const foregroundToken = unsafeAsOpaqueButtonColourToken(solidForegroundToken(backgroundToken));
|
|
5201
5236
|
const foregroundHex = input.palette[foregroundToken];
|
|
5202
5237
|
if (typeof foregroundHex !== "string") return {
|
|
5203
5238
|
ok: false,
|
|
@@ -6323,7 +6358,11 @@ function resolveSurface(spec, context) {
|
|
|
6323
6358
|
token: spec.token
|
|
6324
6359
|
}, {
|
|
6325
6360
|
...context,
|
|
6326
|
-
buttonContext: spec.buttonContext ?? context.buttonContext
|
|
6361
|
+
buttonContext: spec.buttonContext ?? context.buttonContext,
|
|
6362
|
+
...spec.foreground ? { foreground: {
|
|
6363
|
+
...context.foreground,
|
|
6364
|
+
...spec.foreground
|
|
6365
|
+
} } : {}
|
|
6327
6366
|
});
|
|
6328
6367
|
case "tint": return resolveTintSurface(spec, context);
|
|
6329
6368
|
}
|
|
@@ -8045,6 +8084,7 @@ const headerContainerSchema = z.object({
|
|
|
8045
8084
|
"lg"
|
|
8046
8085
|
]).default("md"),
|
|
8047
8086
|
tint: z.string().nullable().optional(),
|
|
8087
|
+
mobileSheet: z.literal("inset").optional(),
|
|
8048
8088
|
opacity: z.number().min(0).max(1).default(.12)
|
|
8049
8089
|
}).optional();
|
|
8050
8090
|
//#endregion
|
|
@@ -8533,20 +8573,15 @@ const headerSchema = z.object({
|
|
|
8533
8573
|
const footerVariant = z.enum([
|
|
8534
8574
|
"simple",
|
|
8535
8575
|
"columns",
|
|
8536
|
-
"split"
|
|
8537
|
-
|
|
8576
|
+
"split",
|
|
8577
|
+
"centred"
|
|
8578
|
+
]).transform((value) => value === "columns" ? "simple" : value);
|
|
8538
8579
|
const footerMaxWidth = z.enum(["container", "full"]);
|
|
8539
8580
|
const footerNavLayoutMode = z.enum([
|
|
8540
8581
|
"stack",
|
|
8541
8582
|
"inline",
|
|
8542
8583
|
"inline-wrap"
|
|
8543
8584
|
]);
|
|
8544
|
-
const footerNavLayoutAlign = z.enum([
|
|
8545
|
-
"start",
|
|
8546
|
-
"center",
|
|
8547
|
-
"end",
|
|
8548
|
-
"space-between"
|
|
8549
|
-
]);
|
|
8550
8585
|
const footerSpacing = z.enum([
|
|
8551
8586
|
"none",
|
|
8552
8587
|
"tight",
|
|
@@ -8555,12 +8590,6 @@ const footerSpacing = z.enum([
|
|
|
8555
8590
|
"relaxed",
|
|
8556
8591
|
"spacious"
|
|
8557
8592
|
]);
|
|
8558
|
-
const footerLogoPlacement = z.enum([
|
|
8559
|
-
"left",
|
|
8560
|
-
"right",
|
|
8561
|
-
"above",
|
|
8562
|
-
"below"
|
|
8563
|
-
]);
|
|
8564
8593
|
const footerLogoSize = z.enum([
|
|
8565
8594
|
"sm",
|
|
8566
8595
|
"md",
|
|
@@ -8601,17 +8630,8 @@ const footerBottomBarSchema = z.object({
|
|
|
8601
8630
|
]).optional()
|
|
8602
8631
|
}).optional()
|
|
8603
8632
|
});
|
|
8604
|
-
const footerNavLayoutSchema = z.object({
|
|
8605
|
-
layout: footerNavLayoutMode.optional(),
|
|
8606
|
-
align: footerNavLayoutAlign.optional(),
|
|
8607
|
-
gapX: footerSpacing.optional(),
|
|
8608
|
-
gapY: footerSpacing.optional(),
|
|
8609
|
-
columns: z.number().int().min(1).max(6).optional()
|
|
8610
|
-
});
|
|
8633
|
+
const footerNavLayoutSchema = z.object({ layout: footerNavLayoutMode.optional() });
|
|
8611
8634
|
const footerLogoSchema = z.object({
|
|
8612
|
-
showLogo: z.boolean().default(true),
|
|
8613
|
-
showLogoText: z.boolean().optional(),
|
|
8614
|
-
placement: footerLogoPlacement.optional(),
|
|
8615
8635
|
size: footerLogoSize.optional(),
|
|
8616
8636
|
maxHeight: footerLogoMaxHeight.optional(),
|
|
8617
8637
|
align: z.enum([
|
|
@@ -8621,15 +8641,8 @@ const footerLogoSchema = z.object({
|
|
|
8621
8641
|
]).optional()
|
|
8622
8642
|
});
|
|
8623
8643
|
const footerSchema = z.object({
|
|
8624
|
-
/**
|
|
8625
|
-
* SDK-only footer rendering mode.
|
|
8626
|
-
*
|
|
8627
|
-
* Historical persisted field; SDK rendering mode now lives in layout.footerMode.
|
|
8628
|
-
*/
|
|
8629
|
-
mode: footerModeSchema.optional(),
|
|
8630
8644
|
variant: footerVariant,
|
|
8631
8645
|
maxWidth: footerMaxWidth,
|
|
8632
|
-
showLogoText: z.boolean().optional(),
|
|
8633
8646
|
background: headerBackgroundSchema.default({
|
|
8634
8647
|
type: "color",
|
|
8635
8648
|
color: "surface"
|
|
@@ -9510,6 +9523,7 @@ const liftEffect = {
|
|
|
9510
9523
|
label: "Lift Amount",
|
|
9511
9524
|
default: "0.5",
|
|
9512
9525
|
options: [
|
|
9526
|
+
"0.125",
|
|
9513
9527
|
"0.25",
|
|
9514
9528
|
"0.5",
|
|
9515
9529
|
"1"
|
|
@@ -10475,7 +10489,7 @@ function resolvedButtonFocusDeclarations(indicator, role) {
|
|
|
10475
10489
|
["outline", value("outline", `2px solid ${indicator.innerCss}`)],
|
|
10476
10490
|
["outline-offset", value("outline-offset", "2px")],
|
|
10477
10491
|
["box-shadow", value("box-shadow", `0 0 0 4px ${indicator.outerCss}`)]
|
|
10478
|
-
] : [["outline", value("outline",
|
|
10492
|
+
] : [["outline", value("outline", `${indicator.width ?? 3}px solid ${indicator.colorCss}`)], ["outline-offset", value("outline-offset", `${indicator.offset ?? 3}px`)]];
|
|
10479
10493
|
}
|
|
10480
10494
|
/**
|
|
10481
10495
|
* Disabled buttons are deliberately muted as unavailable controls. Native
|
|
@@ -10646,6 +10660,7 @@ function variantChunks(variant, global, themeSizes, themeId, tokens, theme, colo
|
|
|
10646
10660
|
]) out.push(variantStateColourRule(variant, variantId, themeId, state, colours[state], tokens));
|
|
10647
10661
|
const effects = variantEffectsCss(variant, nonColourEffects, themeId, tokens, theme);
|
|
10648
10662
|
if (effects) out.push({ raw: effects });
|
|
10663
|
+
out.push(...variantStateTransformRules(variant, selector));
|
|
10649
10664
|
out.push(variantFocusVisibleRule(variantId, themeId, focusIndicator));
|
|
10650
10665
|
const affordance = variantAffordanceRule(variant, selector);
|
|
10651
10666
|
if (affordance) out.push(affordance);
|
|
@@ -10759,12 +10774,27 @@ function variantDisabledRules(variant, variantId, themeId, colour, tokens) {
|
|
|
10759
10774
|
["pointer-events", "none"]
|
|
10760
10775
|
])];
|
|
10761
10776
|
}
|
|
10777
|
+
/** Explicit rest transforms follow hover effects so :active can return to rest. */
|
|
10778
|
+
function variantStateTransformRules(variant, selector) {
|
|
10779
|
+
return [
|
|
10780
|
+
"hover",
|
|
10781
|
+
"focus",
|
|
10782
|
+
"active"
|
|
10783
|
+
].flatMap((state) => {
|
|
10784
|
+
const transform = variant.visualStates?.[state].transform;
|
|
10785
|
+
return transform ? [rule(`${selector}:${state}`, [["transform", transform]])] : [];
|
|
10786
|
+
});
|
|
10787
|
+
}
|
|
10762
10788
|
function variantSizeRules(variant, variantId, themeSizes, themeId) {
|
|
10763
10789
|
const border = variant.visualStates?.base.border ?? variant.border;
|
|
10764
10790
|
const borderWidth = border && border !== "none" ? BORDER_WIDTH_MAP[border.widthClass] || "1px" : "0px";
|
|
10765
10791
|
return BUTTON_SIZE_NAMES.map((sizeName) => {
|
|
10766
10792
|
const config = resolveSizeConfig(variant, sizeName, themeSizes);
|
|
10767
|
-
return rule(`:where([data-theme-scope="${themeId}"]) ${themeButtonSelector(variantId, sizeName)}`, [
|
|
10793
|
+
return rule(`:where([data-theme-scope="${themeId}"]) ${themeButtonSelector(variantId, sizeName)}`, [
|
|
10794
|
+
...paddingDeclarations(config.padding, borderWidth),
|
|
10795
|
+
...config.fontSize ? [["font-size", FONT_SIZE_MAP[config.fontSize] || "1rem"]] : [],
|
|
10796
|
+
...config.borderRadius ? [["border-radius", buttonRadius(config.borderRadius)]] : []
|
|
10797
|
+
]);
|
|
10768
10798
|
});
|
|
10769
10799
|
}
|
|
10770
10800
|
function variantStateSizeRules(variant, variantId, themeId) {
|
|
@@ -10779,11 +10809,24 @@ function variantStateSizeRules(variant, variantId, themeId) {
|
|
|
10779
10809
|
].flatMap((state) => BUTTON_SIZE_NAMES.flatMap((size) => {
|
|
10780
10810
|
const base = states.base.sizes[size];
|
|
10781
10811
|
const target = states[state].sizes[size];
|
|
10782
|
-
|
|
10812
|
+
const declarations = stateSizeDeclarations(base, target, width(states.base.border), width(states[state].border), states.base.borderRadius, states[state].borderRadius);
|
|
10813
|
+
if (declarations.length === 0) return [];
|
|
10783
10814
|
const selector = `:where([data-theme-scope="${themeId}"]) ${themeButtonSelector(variantId, size)}`;
|
|
10784
|
-
return [rule(state === "hover" ? [`${selector}:hover`, `${selector}[data-force-hover="true"]`] : `${selector}:${state}`,
|
|
10815
|
+
return [rule(state === "hover" ? [`${selector}:hover`, `${selector}[data-force-hover="true"]`] : `${selector}:${state}`, declarations)];
|
|
10785
10816
|
}));
|
|
10786
10817
|
}
|
|
10818
|
+
/** Size radius overrides remain owned by each state, just like padding and type. */
|
|
10819
|
+
function stateSizeDeclarations(base, target, baseWidth, targetWidth, baseRadius, targetRadius) {
|
|
10820
|
+
const originalRadius = buttonRadius(base.borderRadius ?? baseRadius);
|
|
10821
|
+
const radius = buttonRadius(target.borderRadius ?? targetRadius);
|
|
10822
|
+
const radiusChanges = originalRadius === radius ? [] : [["border-radius", radius]];
|
|
10823
|
+
if (base.padding === target.padding && base.fontSize === target.fontSize && baseWidth === targetWidth) return radiusChanges;
|
|
10824
|
+
return [
|
|
10825
|
+
...paddingDeclarations(target.padding, targetWidth),
|
|
10826
|
+
...target.fontSize ? [["font-size", FONT_SIZE_MAP[target.fontSize] || "1rem"]] : [],
|
|
10827
|
+
...radiusChanges
|
|
10828
|
+
];
|
|
10829
|
+
}
|
|
10787
10830
|
/** Layout contexts do not change a recipe: grouped actions share its ordinary box. */
|
|
10788
10831
|
function generateButtonActionLayoutCss(options) {
|
|
10789
10832
|
const system = options.buttonSystem ?? generateDefaultButtonSystem(options.theme);
|
|
@@ -10866,6 +10909,287 @@ function normalizeAppearance(appearance) {
|
|
|
10866
10909
|
};
|
|
10867
10910
|
}
|
|
10868
10911
|
//#endregion
|
|
10912
|
+
//#region ../theme-core/src/buttons/styles/recipes/lanternRecipes.ts
|
|
10913
|
+
const flatShadow = {
|
|
10914
|
+
elevation: "none",
|
|
10915
|
+
softness: null,
|
|
10916
|
+
position: "bottom"
|
|
10917
|
+
};
|
|
10918
|
+
const lift$1 = {
|
|
10919
|
+
effectId: "lift",
|
|
10920
|
+
options: { amount: "0.125" }
|
|
10921
|
+
};
|
|
10922
|
+
const tags = {
|
|
10923
|
+
tone: "classic",
|
|
10924
|
+
energy: "calm",
|
|
10925
|
+
motion: "subtle",
|
|
10926
|
+
era: "editorial"
|
|
10927
|
+
};
|
|
10928
|
+
/** Each role supplies complete states, including a flat surface-ink focus ring. */
|
|
10929
|
+
function states(base, hover, offset = 4, width = 2) {
|
|
10930
|
+
return {
|
|
10931
|
+
base,
|
|
10932
|
+
hover,
|
|
10933
|
+
focus: {
|
|
10934
|
+
...base,
|
|
10935
|
+
shadow: "focus-indicator",
|
|
10936
|
+
indicator: {
|
|
10937
|
+
kind: "surface-ink",
|
|
10938
|
+
width,
|
|
10939
|
+
offset
|
|
10940
|
+
}
|
|
10941
|
+
},
|
|
10942
|
+
active: {
|
|
10943
|
+
...base,
|
|
10944
|
+
transform: "none"
|
|
10945
|
+
},
|
|
10946
|
+
disabled: {
|
|
10947
|
+
...base,
|
|
10948
|
+
effects: []
|
|
10949
|
+
}
|
|
10950
|
+
};
|
|
10951
|
+
}
|
|
10952
|
+
const gilt = {
|
|
10953
|
+
text: "treatment",
|
|
10954
|
+
border: "none",
|
|
10955
|
+
borderRadius: "rounded-10px",
|
|
10956
|
+
shadow: flatShadow,
|
|
10957
|
+
sizes: {
|
|
10958
|
+
sm: {
|
|
10959
|
+
padding: "10px 20px",
|
|
10960
|
+
fontSize: "text-base",
|
|
10961
|
+
borderRadius: "rounded-lg"
|
|
10962
|
+
},
|
|
10963
|
+
md: {
|
|
10964
|
+
padding: "18px 36px",
|
|
10965
|
+
fontSize: "text-19px"
|
|
10966
|
+
},
|
|
10967
|
+
lg: {
|
|
10968
|
+
padding: "18px 36px",
|
|
10969
|
+
fontSize: "text-19px"
|
|
10970
|
+
},
|
|
10971
|
+
xl: {
|
|
10972
|
+
padding: "18px 36px",
|
|
10973
|
+
fontSize: "text-19px"
|
|
10974
|
+
}
|
|
10975
|
+
},
|
|
10976
|
+
typography: {
|
|
10977
|
+
fontWeight: 400,
|
|
10978
|
+
typography: "heading",
|
|
10979
|
+
fontSize: "text-19px",
|
|
10980
|
+
letterSpacing: "slight",
|
|
10981
|
+
italic: false,
|
|
10982
|
+
textTransform: "none"
|
|
10983
|
+
},
|
|
10984
|
+
effects: []
|
|
10985
|
+
};
|
|
10986
|
+
const giltPrimary = {
|
|
10987
|
+
...gilt,
|
|
10988
|
+
background: {
|
|
10989
|
+
type: "gradient",
|
|
10990
|
+
stops: ["accent", "primary"],
|
|
10991
|
+
direction: "to-br",
|
|
10992
|
+
foregroundToken: "onAccent"
|
|
10993
|
+
}
|
|
10994
|
+
};
|
|
10995
|
+
const giltPrimaryHover = {
|
|
10996
|
+
...giltPrimary,
|
|
10997
|
+
background: {
|
|
10998
|
+
...giltPrimary.background,
|
|
10999
|
+
stops: ["accent-400", "primary-400"],
|
|
11000
|
+
foregroundToken: "secondary-950"
|
|
11001
|
+
},
|
|
11002
|
+
effects: [lift$1]
|
|
11003
|
+
};
|
|
11004
|
+
const giltSecondary = {
|
|
11005
|
+
...gilt,
|
|
11006
|
+
background: {
|
|
11007
|
+
type: "solid",
|
|
11008
|
+
colorToken: "text"
|
|
11009
|
+
}
|
|
11010
|
+
};
|
|
11011
|
+
const giltSecondaryHover = {
|
|
11012
|
+
...giltSecondary,
|
|
11013
|
+
effects: [lift$1],
|
|
11014
|
+
contextualHover: {
|
|
11015
|
+
kind: "shade-shift",
|
|
11016
|
+
seedToken: unsafeAsOpaqueButtonColourToken("text"),
|
|
11017
|
+
fallbackDirection: "lighter"
|
|
11018
|
+
}
|
|
11019
|
+
};
|
|
11020
|
+
const giltPrimaryStates = states(giltPrimary, giltPrimaryHover);
|
|
11021
|
+
const giltSecondaryStates = states(giltSecondary, giltSecondaryHover);
|
|
11022
|
+
const giltSlabRecipe = defineStaticButtonStyleRecipe({
|
|
11023
|
+
id: "gilt-slab",
|
|
11024
|
+
accessibilityLabel: "Gilt slab",
|
|
11025
|
+
tags,
|
|
11026
|
+
system: { roles: {
|
|
11027
|
+
primary: { states: giltPrimaryStates },
|
|
11028
|
+
secondary: { states: giltSecondaryStates },
|
|
11029
|
+
outline: { states: giltSecondaryStates },
|
|
11030
|
+
ghost: { states: giltSecondaryStates },
|
|
11031
|
+
accent: { states: giltPrimaryStates }
|
|
11032
|
+
} }
|
|
11033
|
+
});
|
|
11034
|
+
const hairline = {
|
|
11035
|
+
text: "treatment",
|
|
11036
|
+
borderRadius: "rounded-3px",
|
|
11037
|
+
shadow: flatShadow,
|
|
11038
|
+
sizes: {
|
|
11039
|
+
sm: {
|
|
11040
|
+
padding: "9px 16px",
|
|
11041
|
+
fontSize: "text-xs"
|
|
11042
|
+
},
|
|
11043
|
+
md: {
|
|
11044
|
+
padding: "15px 28px",
|
|
11045
|
+
fontSize: "text-13px"
|
|
11046
|
+
},
|
|
11047
|
+
lg: {
|
|
11048
|
+
padding: "15px 28px",
|
|
11049
|
+
fontSize: "text-13px"
|
|
11050
|
+
},
|
|
11051
|
+
xl: {
|
|
11052
|
+
padding: "15px 28px",
|
|
11053
|
+
fontSize: "text-13px"
|
|
11054
|
+
}
|
|
11055
|
+
},
|
|
11056
|
+
typography: {
|
|
11057
|
+
fontWeight: 700,
|
|
11058
|
+
typography: "body",
|
|
11059
|
+
fontSize: "text-13px",
|
|
11060
|
+
letterSpacing: "wide",
|
|
11061
|
+
italic: false,
|
|
11062
|
+
textTransform: "uppercase"
|
|
11063
|
+
},
|
|
11064
|
+
effects: []
|
|
11065
|
+
};
|
|
11066
|
+
const hairlinePrimary = {
|
|
11067
|
+
...hairline,
|
|
11068
|
+
background: {
|
|
11069
|
+
type: "solid",
|
|
11070
|
+
colorToken: "primary"
|
|
11071
|
+
},
|
|
11072
|
+
border: {
|
|
11073
|
+
widthClass: "border",
|
|
11074
|
+
boundaryInk: unsafeAsOpaqueButtonColourToken("primary")
|
|
11075
|
+
}
|
|
11076
|
+
};
|
|
11077
|
+
const hairlineOutline = {
|
|
11078
|
+
...hairline,
|
|
11079
|
+
background: {
|
|
11080
|
+
type: "surface",
|
|
11081
|
+
role: "link"
|
|
11082
|
+
},
|
|
11083
|
+
border: {
|
|
11084
|
+
widthClass: "border",
|
|
11085
|
+
boundaryInk: unsafeAsOpaqueButtonColourToken("primary")
|
|
11086
|
+
}
|
|
11087
|
+
};
|
|
11088
|
+
const hairlineSecondary = {
|
|
11089
|
+
...hairlineOutline,
|
|
11090
|
+
border: {
|
|
11091
|
+
widthClass: "border",
|
|
11092
|
+
boundaryInk: unsafeAsOpaqueButtonColourToken("accent")
|
|
11093
|
+
}
|
|
11094
|
+
};
|
|
11095
|
+
const hairlineFilled = {
|
|
11096
|
+
...hairlineSecondary,
|
|
11097
|
+
background: {
|
|
11098
|
+
type: "solid",
|
|
11099
|
+
colorToken: "accent"
|
|
11100
|
+
}
|
|
11101
|
+
};
|
|
11102
|
+
const hairlinePrimaryStates = states(hairlinePrimary, hairlineOutline, 3);
|
|
11103
|
+
const hairlineSecondaryStates = states(hairlineSecondary, hairlineFilled, 3);
|
|
11104
|
+
const hairlineTabRecipe = defineStaticButtonStyleRecipe({
|
|
11105
|
+
id: "hairline-tab",
|
|
11106
|
+
accessibilityLabel: "Hairline tab",
|
|
11107
|
+
tags,
|
|
11108
|
+
system: { roles: {
|
|
11109
|
+
primary: { states: hairlinePrimaryStates },
|
|
11110
|
+
secondary: { states: hairlineSecondaryStates },
|
|
11111
|
+
outline: { states: hairlineSecondaryStates },
|
|
11112
|
+
ghost: { states: hairlineSecondaryStates },
|
|
11113
|
+
accent: { states: states(hairlineFilled, hairlineSecondary, 3) }
|
|
11114
|
+
} }
|
|
11115
|
+
});
|
|
11116
|
+
const marqueeAccent = {
|
|
11117
|
+
text: "treatment",
|
|
11118
|
+
borderRadius: "rounded-none",
|
|
11119
|
+
shadow: flatShadow,
|
|
11120
|
+
sizes: {
|
|
11121
|
+
sm: {
|
|
11122
|
+
padding: "8px 17px",
|
|
11123
|
+
fontSize: "text-15px"
|
|
11124
|
+
},
|
|
11125
|
+
md: {
|
|
11126
|
+
padding: "14px 25px",
|
|
11127
|
+
fontSize: "text-17px"
|
|
11128
|
+
},
|
|
11129
|
+
lg: {
|
|
11130
|
+
padding: "14px 25px",
|
|
11131
|
+
fontSize: "text-17px"
|
|
11132
|
+
},
|
|
11133
|
+
xl: {
|
|
11134
|
+
padding: "14px 25px",
|
|
11135
|
+
fontSize: "text-17px"
|
|
11136
|
+
}
|
|
11137
|
+
},
|
|
11138
|
+
typography: {
|
|
11139
|
+
fontWeight: 800,
|
|
11140
|
+
typography: "body",
|
|
11141
|
+
fontSize: "text-17px",
|
|
11142
|
+
letterSpacing: "loose",
|
|
11143
|
+
italic: false,
|
|
11144
|
+
textTransform: "uppercase"
|
|
11145
|
+
},
|
|
11146
|
+
effects: [],
|
|
11147
|
+
background: {
|
|
11148
|
+
type: "solid",
|
|
11149
|
+
colorToken: "accent"
|
|
11150
|
+
},
|
|
11151
|
+
border: {
|
|
11152
|
+
widthClass: "border-2",
|
|
11153
|
+
boundaryInk: unsafeAsOpaqueButtonColourToken("accent")
|
|
11154
|
+
}
|
|
11155
|
+
};
|
|
11156
|
+
const marqueePrimary = {
|
|
11157
|
+
...marqueeAccent,
|
|
11158
|
+
background: {
|
|
11159
|
+
type: "solid",
|
|
11160
|
+
colorToken: "primary"
|
|
11161
|
+
},
|
|
11162
|
+
border: {
|
|
11163
|
+
widthClass: "border-2",
|
|
11164
|
+
boundaryInk: unsafeAsOpaqueButtonColourToken("primary")
|
|
11165
|
+
}
|
|
11166
|
+
};
|
|
11167
|
+
const marqueeSecondary = {
|
|
11168
|
+
...marqueeAccent,
|
|
11169
|
+
background: {
|
|
11170
|
+
type: "solid",
|
|
11171
|
+
colorToken: "text"
|
|
11172
|
+
},
|
|
11173
|
+
border: {
|
|
11174
|
+
widthClass: "border-2",
|
|
11175
|
+
boundaryInk: unsafeAsOpaqueButtonColourToken("text")
|
|
11176
|
+
}
|
|
11177
|
+
};
|
|
11178
|
+
const marqueePrimaryStates = states(marqueeAccent, marqueePrimary, 4, 3);
|
|
11179
|
+
const marqueeSecondaryStates = states(marqueeSecondary, marqueeAccent, 4, 3);
|
|
11180
|
+
const marqueeRecipe = defineStaticButtonStyleRecipe({
|
|
11181
|
+
id: "marquee",
|
|
11182
|
+
accessibilityLabel: "Marquee",
|
|
11183
|
+
tags,
|
|
11184
|
+
system: { roles: {
|
|
11185
|
+
primary: { states: marqueePrimaryStates },
|
|
11186
|
+
secondary: { states: marqueeSecondaryStates },
|
|
11187
|
+
outline: { states: marqueeSecondaryStates },
|
|
11188
|
+
ghost: { states: marqueeSecondaryStates },
|
|
11189
|
+
accent: { states: marqueePrimaryStates }
|
|
11190
|
+
} }
|
|
11191
|
+
});
|
|
11192
|
+
//#endregion
|
|
10869
11193
|
//#region ../theme-core/src/buttons/styles/recipes/fulcrumRecipe.ts
|
|
10870
11194
|
const fulcrumSizes = {
|
|
10871
11195
|
sm: {
|
|
@@ -11607,9 +11931,16 @@ const BUTTON_STYLE_IDS = [
|
|
|
11607
11931
|
"offset-block",
|
|
11608
11932
|
"ringed-pill",
|
|
11609
11933
|
"square-outline",
|
|
11610
|
-
"fulcrum"
|
|
11934
|
+
"fulcrum",
|
|
11935
|
+
"gilt-slab",
|
|
11936
|
+
"hairline-tab",
|
|
11937
|
+
"marquee"
|
|
11611
11938
|
];
|
|
11612
|
-
const quietArrowParametersSchema = z.object({
|
|
11939
|
+
const quietArrowParametersSchema = z.object({
|
|
11940
|
+
secondaryTreatment: z.enum(["outlined", "solid-accent"]),
|
|
11941
|
+
size: z.enum(["comfortable"]).optional(),
|
|
11942
|
+
hoverTreatment: z.enum(["deep-and-sheet"]).optional()
|
|
11943
|
+
}).strict();
|
|
11613
11944
|
const flatInkHoverTreatmentSchema = z.enum([
|
|
11614
11945
|
"contextual",
|
|
11615
11946
|
"secondary",
|
|
@@ -11644,7 +11975,10 @@ const buttonStyleSelectionSchema = z.discriminatedUnion("styleId", [
|
|
|
11644
11975
|
selectionBranch("offset-block", emptyParametersSchema),
|
|
11645
11976
|
selectionBranch("ringed-pill", emptyParametersSchema),
|
|
11646
11977
|
selectionBranch("square-outline", emptyParametersSchema),
|
|
11647
|
-
selectionBranch("fulcrum", emptyParametersSchema)
|
|
11978
|
+
selectionBranch("fulcrum", emptyParametersSchema),
|
|
11979
|
+
selectionBranch("gilt-slab", emptyParametersSchema),
|
|
11980
|
+
selectionBranch("hairline-tab", emptyParametersSchema),
|
|
11981
|
+
selectionBranch("marquee", emptyParametersSchema)
|
|
11648
11982
|
]);
|
|
11649
11983
|
/**
|
|
11650
11984
|
* Stable identity for a validated style selection. Parsing first canonicalises
|
|
@@ -12074,6 +12408,63 @@ const solidAccentSecondary = {
|
|
|
12074
12408
|
},
|
|
12075
12409
|
affordance: { iconId: "ArrowRight" }
|
|
12076
12410
|
};
|
|
12411
|
+
/** Selection-owned sizing leaves historical recipe output unchanged when absent. */
|
|
12412
|
+
function sizedQuietArrowRoles(roles, size) {
|
|
12413
|
+
if (size === void 0) return roles;
|
|
12414
|
+
return mapButtonRoleAppearances(roles, (appearance) => ({
|
|
12415
|
+
...appearance,
|
|
12416
|
+
states: mapButtonVisualAppearances(appearance.states, (state) => ({
|
|
12417
|
+
...state,
|
|
12418
|
+
sizes: {
|
|
12419
|
+
sm: {
|
|
12420
|
+
padding: "0.875rem 1.125rem",
|
|
12421
|
+
fontSize: "text-xs"
|
|
12422
|
+
},
|
|
12423
|
+
md: {
|
|
12424
|
+
padding: "0.75rem 1.375rem",
|
|
12425
|
+
fontSize: "text-sm"
|
|
12426
|
+
},
|
|
12427
|
+
lg: {
|
|
12428
|
+
padding: "0.875rem 1.75rem",
|
|
12429
|
+
fontSize: "text-sm"
|
|
12430
|
+
},
|
|
12431
|
+
xl: {
|
|
12432
|
+
padding: "1rem 2rem",
|
|
12433
|
+
fontSize: "text-base"
|
|
12434
|
+
}
|
|
12435
|
+
}
|
|
12436
|
+
}))
|
|
12437
|
+
}));
|
|
12438
|
+
}
|
|
12439
|
+
/** Forward sheet interaction is explicit selection data; absent preserves the captured recipe. */
|
|
12440
|
+
function quietArrowHoverRoles(roles, treatment) {
|
|
12441
|
+
if (treatment === void 0) return roles;
|
|
12442
|
+
const hover = (role, colour) => ({
|
|
12443
|
+
...roles[role],
|
|
12444
|
+
states: {
|
|
12445
|
+
...roles[role].states,
|
|
12446
|
+
hover: {
|
|
12447
|
+
...roles[role].states.hover,
|
|
12448
|
+
background: {
|
|
12449
|
+
type: "solid",
|
|
12450
|
+
colorToken: unsafeAsOpaqueButtonColourToken(colour)
|
|
12451
|
+
},
|
|
12452
|
+
text: "treatment",
|
|
12453
|
+
effects: [],
|
|
12454
|
+
...role === "secondary" ? { border: {
|
|
12455
|
+
widthClass: "border",
|
|
12456
|
+
marksBoundary: true,
|
|
12457
|
+
boundaryInk: unsafeAsOpaqueButtonColourToken("text")
|
|
12458
|
+
} } : {}
|
|
12459
|
+
}
|
|
12460
|
+
}
|
|
12461
|
+
});
|
|
12462
|
+
return {
|
|
12463
|
+
...roles,
|
|
12464
|
+
primary: hover("primary", "primary-800"),
|
|
12465
|
+
secondary: hover("secondary", "surface")
|
|
12466
|
+
};
|
|
12467
|
+
}
|
|
12077
12468
|
const quietArrowRecipe = defineButtonStyleRecipe({
|
|
12078
12469
|
id: "quiet-arrow",
|
|
12079
12470
|
accessibilityLabel: "Wide uppercase buttons with trailing arrows",
|
|
@@ -12097,10 +12488,10 @@ const quietArrowRecipe = defineButtonStyleRecipe({
|
|
|
12097
12488
|
label: "Solid accent"
|
|
12098
12489
|
}]
|
|
12099
12490
|
}],
|
|
12100
|
-
defineSystem: (parameters) => ({ roles: {
|
|
12491
|
+
defineSystem: (parameters) => ({ roles: quietArrowHoverRoles(sizedQuietArrowRoles({
|
|
12101
12492
|
...quietArrowSystem.roles,
|
|
12102
12493
|
secondary: parameters.secondaryTreatment === "solid-accent" ? solidAccentSecondary : quietArrowSystem.roles.secondary
|
|
12103
|
-
} })
|
|
12494
|
+
}, parameters.size), parameters.hoverTreatment) })
|
|
12104
12495
|
});
|
|
12105
12496
|
//#endregion
|
|
12106
12497
|
//#region ../theme-core/src/buttons/styles/recipes/flatInk.ts
|
|
@@ -15171,7 +15562,10 @@ const buttonStyleRecipes = [
|
|
|
15171
15562
|
offsetBlockRecipe,
|
|
15172
15563
|
ringedPillRecipe,
|
|
15173
15564
|
squareOutlineRecipe,
|
|
15174
|
-
fulcrumRecipe
|
|
15565
|
+
fulcrumRecipe,
|
|
15566
|
+
giltSlabRecipe,
|
|
15567
|
+
hairlineTabRecipe,
|
|
15568
|
+
marqueeRecipe
|
|
15175
15569
|
];
|
|
15176
15570
|
const recipesById = new Map(buttonStyleRecipes.map((recipe) => [recipe.id, recipe]));
|
|
15177
15571
|
function findButtonStyleRecipe(id) {
|
|
@@ -15187,6 +15581,9 @@ function resolveButtonStyleSelection(selection) {
|
|
|
15187
15581
|
case "editorial-link": return resolveButtonStyleRecipe(editorialLinkRecipe, selection.parameters);
|
|
15188
15582
|
case "pebble": return resolveButtonStyleRecipe(pebbleRecipe, selection.parameters);
|
|
15189
15583
|
case "ink-stamp": return resolveButtonStyleRecipe(inkStampRecipe, selection.parameters);
|
|
15584
|
+
case "gilt-slab": return resolveButtonStyleRecipe(giltSlabRecipe, selection.parameters);
|
|
15585
|
+
case "hairline-tab": return resolveButtonStyleRecipe(hairlineTabRecipe, selection.parameters);
|
|
15586
|
+
case "marquee": return resolveButtonStyleRecipe(marqueeRecipe, selection.parameters);
|
|
15190
15587
|
case "fulcrum": return resolveButtonStyleRecipe(fulcrumRecipe, selection.parameters);
|
|
15191
15588
|
case "flat-ink": return resolveButtonStyleRecipe(flatInkRecipe, selection.parameters);
|
|
15192
15589
|
case "brushed-wash": return resolveButtonStyleRecipe(brushedWashRecipe, selection.parameters);
|
|
@@ -16522,4 +16919,4 @@ function ThemedAuthoredButton({ label, href, variant, size, extraClassName, disa
|
|
|
16522
16919
|
});
|
|
16523
16920
|
}
|
|
16524
16921
|
//#endregion
|
|
16525
|
-
export {
|
|
16922
|
+
export { headerInteractionPalettePair as $, imageMediaSchema as $n, clsx as $r, toAccessibleColorSurfaceIntent as $t, resolveButtonStyleSelection as A, unsafeAsAppointmentServiceId as Ai, featuresFromHex as An, flushPanelFrame as Ar, NAV_LINK_LETTER_SPACING_MAP as At, generateBaseInteractiveCSS as B, err as Bi, generateShadowValue$1 as Bn, tileTreatmentValues as Br, INPUT_SPACING_MAP as Bt, FileTextIcon as C, parseFormId as Ci, resolveConcreteColorHex as Cn, defineBlockDesignCapability as Cr, resolveBrandDisplay as Ct, buttonStyleSelectionParameterValue as D, parseSiteTermsVersionId as Di, ORDINARY_TEXT_MIN_CONTRAST_RATIO as Dn, eventListTreatmentValues as Dr, parseBlockCustomCssRules as Dt, buttonStyleHoverPreferenceValue as E, parseSiteId as Ei, defaultThemeTokens as En, designIssueSeverityForPolicy as Er, getComponentShadowVar as Et, buttonStyleSelectionsEqual as F, unsafeAsPositiveByteCount as Fi, surfaceForegroundDeclarations as Fn, offeringsPreviewCompositionTreatmentValues as Fr, navLinkOwnsHoverForeground as Ft, containerStylesOverrideSchema as G, hexColorSchema as Gn, getSiteFontsStorageUrl as Gr, ACCORDION_TRIGGER_LETTER_SPACING as Gt, parseThemeButtonVariantId as H, __commonJSMin as Hi, cardRoleValues as Hn, visibleHeadingDecorationFamilyValues as Hr, ACCORDION_OPEN_ACCENT_THICKNESS as Ht, generateButtonActionLayoutCss as I, unsafeAsPositiveSeconds as Ii, surfaceForegroundInputFromResolved as In, panelFrame as Ir, navLinkOwnsUnderline as It, sectionStylesOverrideSchema as J, paletteColorsSchema as Jn, parseThemeColorToken as Jr, generateCardCss as Jt, corners as K, paletteColorEntries as Kn, VARIANT_ROLES as Kr, ICON_CONFIG as Kt, generateButtonCss as L, unsafeAsSiteId as Li, surfaceForegroundStyle as Ln, plainFrame as Lr, navEffectPolicy as Lt, updateButtonStyleSelectionChoice as M, unsafeAsFormId as Mi, rgbToHex as Mn, introCompositionTreatmentValues as Mr, NAV_LINK_PADDING_X_MAP as Mt, buttonStyleSelectionKey as N, unsafeAsMediaAssetId as Ni, DEFAULT_SURFACE_TEXT_COLOR as Nn, makeBoundaryId as Nr, NAV_LINK_TEXT_SIZE_MAP as Nt, defaultButtonStyleSelectionFor as O, parseUserId as Oi, contrastRatio as On, eyebrowTreatmentValues as Or, parseCustomCssRules as Ot, buttonStyleSelectionSchema as P, unsafeAsPassId as Pi, SURFACE_FOREGROUND_CSS_VARS as Pn, noHeadingDecoration as Pr, navLinkHoverColorCandidate as Pt, runtimeBoxBackgroundSchema as Q, requirePaletteColorsFromEntries as Qn, SpinnerNode as Qr, surfaceDecorationColors as Qt, generateDefaultButtonSystem as R, unsafeAsStorageBucketName as Ri, surfaceForegroundValue as Rn, requireNonEmptyReadonlyArray as Rr, FONT_WEIGHT_MAP$1 as Rt, FileSpreadsheetIcon as S, parseEventSeriesId as Si, planForegroundHover as Sn, assertNever as Sr, logoSizePolicyValues as St, PlusIcon as T, parsePageSurfaceId as Ti, buildThemeTokens as Tn, defineFrameCapability as Tr, getComponentBorderWidthPx as Tt, parseThemeForPersistence as U, __exportAll as Ui, cardVariantRoleValues as Un, buildFontPreviewUrl as Ur, ACCORDION_SPACING_MAP as Ut, generateInteractiveChildInheritanceCSS as V, ok as Vi, cardRoleSchema as Vn, toNonEmptyReadonlyArray as Vr, LABEL_FONT_SIZE_MAP as Vt, cardStylesOverrideSchema as W, __toESM as Wi, normalizeCardRole as Wn, generateFontFaceCss as Wr, ACCORDION_TRIGGER_FONT_SCALE as Wt, boxBackgroundOverlaySchema as X, paletteValueKey as Xn, parseBlockColorToken as Xr, contrastThresholdByPolicy as Xt, themeSchema as Y, paletteModeSchema as Yn, themeColorShadeSteps as Yr, renderCssDeclarations as Yt, boxBackgroundSchema as Z, paletteValueKeySchema as Zn, parseColorTokenParts as Zr, resolveSurface as Zt, CirclePlusIcon as _, parseApiKeyId as _i, surfaceToneFromForegroundToken as _n, asDesignPageId as _r, siteChromeBackgroundOverrideOwner as _t, ThemedDownloadLink as a, confirmationPaymentSchema as ai, rgbColorValue as an, indexRenderableMediaAssets as ar, renderHeaderPaintTargetRules as at, FileArchiveIcon as b, parseEditorClientId as bi, expandPalette as bn, asPageFlowPresetId as br, brandDisplayModeValues as bt, isKnownIconName as c, isBookingCollectionEquivalentToUpfront as ci, opaqueSurfaceContextFromTheme as cn, parseCanonicalMediaIdentifier as cr, MQ_LG_UP as ct, resolveIconPickerPreset as d, resolveBookingCollectionOptionFacts as di, resolveOnColorForThemeToken as dn, asBlockContentVersionId as dr, MQ_SM_UP as dt, checkBrowserStripeKey as ei, TokenResolver as en, mediaPosterSchema as er, headerInteractionPaletteValues as et, SEMANTIC_ICON_DEFINITIONS as f, getBookingLaterInstalments as fi, resolveThemeColorReferenceValue as fn, asBlockOrderIndex as fr, MQ_TABLET_ONLY as ft, CircleMinusIcon as g, expectParsedBrandedId as gi, selectLogoVariant as gn, asDesignEntryId as gr, pageDesignEditorBackgroundOverrideOwner as gt, ChevronDownIcon as h, formatCurrencyAmount as hi, PUBLIC_BUTTON_ROLES as hn, asDesignBoundaryId as hr, isThemeV2NormalEditorRawStylePath as ht, ThemedButtonSpecimen as i, getStripeMinimumChargeRequirement as ii, mergeStyles as in, renderableMediaAssetSchema as ir, getHeaderPaintTargets as it, updateButtonStyleHoverPreference as j, unsafeAsCustomerPassId as ji, hexToRgb as jn, headingDecorationColorTokenValues as jr, NAV_LINK_PADDING_MAP as jt, findButtonStyleRecipe as k, unsafeAsAppointmentResourceId as ki, relativeLuminance as kn, featureCardCompositionTreatmentValues as kr, NAV_LINK_BORDER_RADIUS_MAP as kt, ICON_PICKER_PRESETS as l, repriceBookingCollectionOptions as li, opaqueSurfaceDeclarations as ln, skinTokenCssVars as lr, MQ_MD_DOWN as lt, ArrowDownIcon as m, getBookingInstalmentPlanIntervalCount as mi, generateShadowValue as mn, asDesignBlockId as mr, isThemeV2NormalEditorRawStyleFieldName as mt, ThemedButton as n, parseEventRegistrationErrorReason as ni, borderColorStyle as nn, runtimeMediaSchema as nr, generateHeaderScrollTreatmentStyles as nt, getIconComponent as o, planCheckoutPaymentFlow as oi, textColorStyle as on, resolveManagedMediaReference as or, BREAKPOINT_LG as ot, isSemanticIconId as p, validateBookingPaymentOptionKinds as pi, resolveTokenOrCssColorValue as pn, asBoundaryOptionId as pr, headerVariantValues as pt, headerPositioningValues as q, paletteColorsEqual as qn, unsafeAsOpaqueButtonColourToken as qr, ICON_SIZE_PX as qt, ThemedButtonLink as r, checkoutCopy as ri, cssVarValue as rn, buildRenderableMediaAssetIndex as rr, generateMobileOverlayBackdropFilterFix as rt, getIconPickerOptionsForPreset as s, planFlexibleBalanceCreditFirst as si, textColorValue as sn, mediaIdentifierSchema as sr, BREAKPOINT_XL as st, ThemedAuthoredButton as t, eventRegistrationErrors as ti, backgroundColorStyle as tn, mediaSchema as tr, headerInteractionQuietPalette as tt, isIconPickerPreset as u, resolveAvailableBookingCollectionOptions as ui, isCssColorLiteral as un, asAppearancePresetId as ur, MQ_SM_DOWN as ut, ClockIcon as v, parseContentEntryId as vi, resolveSurfaceForeground as vn, asDesignSystemTemplateId as vr, stripStaleTransitionStyleGroup as vt, MinusIcon as w, parsePageId as wi, resolveOpaqueSurfaceHex as wn, defineExactCatalog as wr, selectLogoAccommodation as wt, FileAudioIcon as x, parseEventOfferingId as xi, getTextColorForBackground as xn, asSiteStyleId as xr, deterministicLogoFactsForShape as xt, ExternalLinkIcon as y, parseContentVersionId as yi, safeTokenOr as yn, asLayoutVariantKey as yr, themeV2RuntimeStyleFieldNames as yt, generateEffectsCSS as z, unsafeAsStoragePath as zi, surfaceForegroundValueWithOpacity as zn, testimonialsCompositionTreatmentValues as zr, INPUT_FONT_SIZE_MAP as zt };
|