@riverbankcms/sdk 0.130.0 → 0.132.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +85 -0
- package/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DiEpbOdw.mjs → PreviewEditorSidebar-DKQ5eFK9.mjs} +365 -106
- package/dist/{PreviewEditorUI-C6MvxnIa.mjs → PreviewEditorUI-CNTcOjCC.mjs} +3 -3
- package/dist/{PreviewQueryProvider-C2rnoPz6.mjs → PreviewQueryProvider-D51gQaG3.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DRXA_m5L.mjs → SdkPreviewModeRuntime-DJu3qu33.mjs} +91 -25
- package/dist/{SiteChromeCustomizeContext-BTHdv5_-.mjs → SiteChromeCustomizeContext-2TzT3vbj.mjs} +12577 -9240
- package/dist/_dts/ai/src/contracts/proposals.d.ts +991 -142
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +1092 -148
- package/dist/_dts/api/src/accountApi.d.ts +213 -0
- package/dist/_dts/api/src/accountEndpointDefinitions.d.ts +30 -0
- package/dist/_dts/api/src/accountEndpoints.d.ts +254 -0
- package/dist/_dts/api/src/apiCallParams.d.ts +60 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +18 -24
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +12 -24
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +44 -0
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +9 -0
- package/dist/_dts/api/src/bookingVerticals.d.ts +1 -140
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +47 -12
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -1
- package/dist/_dts/api/src/courses.d.ts +1 -19
- package/dist/_dts/api/src/endpoints.d.ts +885 -721
- package/dist/_dts/api/src/event-destination-policy.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +173 -7
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +58 -0
- package/dist/_dts/api/src/giftingDashboard.d.ts +117 -0
- package/dist/_dts/api/src/giftingEndpointDefinitions.d.ts +124 -0
- package/dist/_dts/api/src/index.d.ts +12 -4
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -0
- package/dist/_dts/api/src/media.d.ts +1 -0
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +3 -4
- package/dist/_dts/api/src/oauth.d.ts +8 -0
- package/dist/_dts/api/src/preview-auth.d.ts +26 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +11 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +29 -16
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +2 -0
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +3 -1
- package/dist/_dts/api/src/sdkBlockUpsertContracts.d.ts +48 -0
- package/dist/_dts/api/src/sdkBookingVerticalContracts.d.ts +29 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +14 -45
- package/dist/_dts/api/src/sdkEndpointDefinitions.d.ts +23 -0
- package/dist/_dts/api/src/sdkEventCategoryContracts.d.ts +9 -0
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +25 -0
- package/dist/_dts/api/src/sdkThemeCatalogContracts.d.ts +20 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +54 -12
- package/dist/_dts/api/src/settings/permissions.d.ts +2 -2
- package/dist/_dts/api/src/siteApiKeyEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/siteInfrastructure.d.ts +3 -3
- package/dist/_dts/api/src/siteOnboarding.d.ts +3 -3
- package/dist/_dts/api/src/siteOperations.d.ts +1 -1
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +16 -14
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +0 -3
- package/dist/_dts/api/src/types.d.ts +8 -61
- package/dist/_dts/block-form/src/client/index.d.ts +15 -23
- package/dist/_dts/block-form/src/index.d.ts +23 -22
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -13
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +9 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +26 -44
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/layout/Grid.d.ts +18 -1
- package/dist/_dts/blocks/src/subroutes/fold.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +2 -50
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +1 -929
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -97
- package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +39 -6
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -3
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +64 -3
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +26 -31
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/index.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/pricing.d.ts +50 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +135 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +81 -0
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +25 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +16 -39
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +4 -63
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +1 -3
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +13 -2
- package/dist/_dts/blocks/src/system/fields/gridLayout.d.ts +20 -0
- package/dist/_dts/blocks/src/system/node/fragments/classNameBinding.d.ts +6 -1
- package/dist/_dts/blocks/src/system/node/fragments/styledCard.d.ts +31 -0
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/blockComposition.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +45 -72
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -36
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +24 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.validationErrors.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-page-surface-scope.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.client.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +19 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +25 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +75 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/view.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SiteCreditPreviewPanel.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/siteCreditPreview.d.ts +51 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/BookingModeStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/CheckIcon.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/ErrorStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/MembershipHero.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/PaymentFailedStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/StepIndicator.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/VerifyingTimeoutStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationActiveSteps.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/CourseRegistrationErrorBoundary.d.ts → event-registration/whole-series/WholeSeriesRegistrationErrorBoundary.d.ts} +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationTerminalContent.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/WholeSeriesRegistrationWizard.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +45 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/index.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/presentation.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/pricing.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/types.d.ts +18 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/useCourseEligibility.d.ts → event-registration/whole-series/useWholeSeriesEligibility.d.ts} +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesPaymentVerification.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationActions.d.ts +35 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/useCourseRegistrationPortal.d.ts → event-registration/whole-series/useWholeSeriesRegistrationPortal.d.ts} +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationSelection.d.ts +35 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/useWholeSeriesRegistrationWizard.d.ts +185 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/useCourseWaitlistSelection.d.ts → event-registration/whole-series/useWholeSeriesWaitlistSelection.d.ts} +5 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/utils.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/whole-series-registration.headless.contract.d.ts +5 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/whole-series-registration.headless.planning.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/wholeSeriesPageSurfaceScope.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration/courseRegistrationViewState.d.ts → event-registration/whole-series/wholeSeriesRegistrationViewState.d.ts} +7 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/wizardSteps.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -54
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +12 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.server.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventSpotlight.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventDetailModal.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModalCloseButton.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +59 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.d.ts +12 -12
- package/dist/_dts/blocks/src/system/runtime/shared/components/FeedbackMessage.d.ts +17 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +1 -0
- package/dist/_dts/blocks/src/system/spacing.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/boxStyleClassNames.d.ts +109 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +4 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +40 -3
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +4 -37
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -4
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +13 -0
- package/dist/_dts/commerce/src/purchase/cancellationPolicy.d.ts +7 -0
- package/dist/_dts/commerce/src/purchase/canonicalRefundPlanner.d.ts +48 -0
- package/dist/_dts/commerce/src/purchase/checkoutCollectionPlan.d.ts +39 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +40 -0
- package/dist/_dts/commerce/src/purchase/checkoutDiscountContextPlanning.d.ts +80 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/checkoutOrderItemProjection.d.ts +22 -0
- package/dist/_dts/commerce/src/purchase/checkoutPaymentFlow.d.ts +50 -0
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +30 -0
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +53 -0
- package/dist/_dts/commerce/src/purchase/checkoutQuantity.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +76 -0
- package/dist/_dts/commerce/src/purchase/checkoutSettlement.d.ts +46 -0
- package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +12 -0
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +125 -0
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +55 -0
- package/dist/_dts/commerce/src/purchase/confirmationEmailPayment.d.ts +91 -0
- package/dist/_dts/commerce/src/purchase/discountApplication.d.ts +74 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +55 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +86 -0
- package/dist/_dts/commerce/src/purchase/order-number.d.ts +33 -0
- package/dist/_dts/commerce/src/purchase/orderCancellationPlan.d.ts +19 -0
- package/dist/_dts/commerce/src/purchase/orderCompletionEmailPlan.d.ts +71 -0
- package/dist/_dts/commerce/src/purchase/orderConfirmationPlanning.d.ts +120 -0
- package/dist/_dts/commerce/src/purchase/orderFulfillmentPlan.d.ts +81 -0
- package/dist/_dts/commerce/src/purchase/orderFulfillmentResult.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/orderHistoryLedgerFilters.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/orderHistorySource.d.ts +11 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentAdminSettlement.d.ts +43 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +29 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +44 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +24 -0
- package/dist/_dts/commerce/src/purchase/orderInstalmentPlan.d.ts +40 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +151 -0
- package/dist/_dts/commerce/src/purchase/orderItemSupport.d.ts +14 -0
- package/dist/_dts/commerce/src/purchase/orderListFilters.d.ts +3 -0
- package/dist/_dts/commerce/src/purchase/orderPaymentLinkPlanning.d.ts +60 -0
- package/dist/_dts/commerce/src/purchase/orderPaymentReceipt.d.ts +184 -0
- package/dist/_dts/commerce/src/purchase/orderPaymentState.d.ts +135 -0
- package/dist/_dts/commerce/src/purchase/orderPlanningTypes.d.ts +102 -0
- package/dist/_dts/commerce/src/purchase/orderRefundPlanning.d.ts +50 -0
- package/dist/_dts/commerce/src/purchase/orderRefundPolicy.d.ts +36 -0
- package/dist/_dts/commerce/src/purchase/orderTotals.d.ts +23 -0
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +39 -0
- package/dist/_dts/commerce/src/purchase/pendingCheckoutSessionClaim.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/persistedCheckoutLines.d.ts +27 -0
- package/dist/_dts/commerce/src/purchase/protectedDepositRefundPolicy.d.ts +86 -0
- package/dist/_dts/commerce/src/purchase/refundPolicy.d.ts +8 -0
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +40 -0
- package/dist/_dts/commerce/src/purchase/result.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/settlement.d.ts +97 -0
- package/dist/_dts/commerce/src/purchase/shopRefundPlanning.d.ts +43 -0
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +31 -0
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +10 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +168 -0
- package/dist/_dts/commerce/src/shop/shipmentEligibility.d.ts +14 -0
- package/dist/_dts/commerce/src/utils/assertNever.d.ts +1 -0
- package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +2 -2
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +10 -6
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +10 -6
- package/dist/_dts/core/src/booking-vertical-catalog.d.ts +741 -0
- package/dist/_dts/core/src/booking-vertical-config.d.ts +66 -0
- package/dist/_dts/core/src/booking-vertical-definitions.d.ts +68 -0
- package/dist/_dts/{api/src/bookingVerticalPreset.d.ts → core/src/booking-vertical-preset.d.ts} +1 -1
- package/dist/_dts/core/src/booking-verticals.d.ts +98 -0
- package/dist/_dts/core/src/branded.d.ts +4 -0
- package/dist/_dts/core/src/event-page-selection.d.ts +22 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +25 -4
- package/dist/_dts/core/src/event-pricing.d.ts +5 -0
- package/dist/_dts/core/src/event-series-behaviour.d.ts +16 -0
- package/dist/_dts/core/src/index.d.ts +6 -0
- package/dist/_dts/core/src/public-event-booking-availability.d.ts +8 -0
- package/dist/_dts/core/src/secret.d.ts +44 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +413 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/blockPayload.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/offerings-preview/OfferingsPreviewGroupOrderField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/SiteOptionPickerField.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +1 -1
- package/dist/_dts/media-core/src/fileUploadCompletion.d.ts +3 -0
- package/dist/_dts/media-core/src/fileUploadDurableFinalization.d.ts +2 -0
- package/dist/_dts/media-core/src/identifiers.d.ts +10 -0
- package/dist/_dts/media-core/src/mediaWriteNormalizer.d.ts +2 -6
- package/dist/_dts/media-core/src/types.d.ts +2 -1
- package/dist/_dts/media-editor/src/index.d.ts +2 -2
- package/dist/_dts/media-editor/src/mediaSelection.d.ts +1 -22
- package/dist/_dts/media-editor/src/useMediaSelection.d.ts +0 -9
- package/dist/_dts/preview-next/src/client/blocks/useBlockCustomizeControls.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/ButtonHoverRoleControls.d.ts +10 -0
- package/dist/_dts/preview-next/src/client/preview/ButtonStylePicker.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewSiteFontStorageContext.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfiguratorWarningNotice.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/siteFontPreview.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/sdk/contentStorage.d.ts +10 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -1
- package/dist/_dts/preview-next/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +3 -5
- package/dist/_dts/preview-next/src/refresh-contract.d.ts +1 -0
- package/dist/_dts/preview-next/src/route-contract.d.ts +7 -0
- package/dist/_dts/sdk/src/client/eventSubrouteReadOperations.d.ts +11 -0
- package/dist/_dts/sdk/src/client/types.d.ts +12 -5
- package/dist/_dts/sdk/src/components.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +2 -13
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +64 -54
- package/dist/_dts/sdk/src/next/pageMetadataProjection.d.ts +7 -0
- package/dist/_dts/sdk/src/next/resolveEventPageSubroute.d.ts +12 -0
- package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -19
- package/dist/_dts/sdk/src/public-api/eventSubrouteContracts.d.ts +12 -0
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +44 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +9 -1
- package/dist/_dts/sdk/src/routing/entrySubroutes.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/resolveOccurrence.d.ts +4 -3
- package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +7 -3
- package/dist/_dts/sdk/src/theme-bridge/types.d.ts +4 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/contextualHover.d.ts +41 -0
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +3 -0
- package/dist/_dts/theme-core/src/buttons/resolveButtonHoverTreatment.d.ts +14 -0
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +21 -4
- package/dist/_dts/theme-core/src/buttons/styles/recipes/flatInk.d.ts +92 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +10 -150
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +57 -102
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +50 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +29 -0
- package/dist/_dts/theme-core/src/cards/core.d.ts +54 -10
- package/dist/_dts/theme-core/src/cards/decorations.d.ts +33 -0
- package/dist/_dts/theme-core/src/cards/generateDefaultCardSystem.d.ts +7 -2
- package/dist/_dts/theme-core/src/cards/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/cards/openCardVariant.d.ts +24 -0
- package/dist/_dts/theme-core/src/cards/roles.d.ts +38 -0
- package/dist/_dts/theme-core/src/cards/siteStyleDefaults.d.ts +53 -8
- package/dist/_dts/theme-core/src/cards/types.d.ts +474 -28
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +59 -0
- package/dist/_dts/theme-core/src/header/paintTargets.d.ts +2 -2
- package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +3 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +30 -138
- package/dist/_dts/theme-core/src/palette/utils/contrast.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/utils/opaqueSurfaceColor.d.ts +6 -0
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +302 -107
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +111 -102
- package/dist/_dts/theme-core/src/site-styles/appearancePresetResolution.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +0 -20
- package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +111 -102
- package/dist/_dts/theme-core/src/site-styles/buttonSelectionCompiler.d.ts +18 -0
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +48 -0
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +21 -385
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +10 -18
- package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +2 -4
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +2 -9
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +0 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignAppearanceAvailability.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +22 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +9 -8
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntentEquality.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +2 -11
- package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +19 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +9 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +1 -62
- package/dist/_dts/theme-core/src/site-styles/selectionFallbackWarning.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +13 -12
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +62 -39
- package/dist/_dts/theme-core/src/siteChromePlanning.d.ts +9 -9
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +39 -0
- package/dist/_dts/ui/src/navigation-tabs.d.ts +5 -2
- package/dist/client/{DiscountCodeDisclosure-Ur-Xx1U_.mjs → DiscountCodeDisclosure-DO7llLxm.mjs} +12 -12
- package/dist/client/{EventCombined.client-EhscD4U6.mjs → EventCombined.client-xID7zN__.mjs} +38 -50
- package/dist/client/{EventListing.client-Bn26cFTY.mjs → EventListing.client-CriBslp0.mjs} +2 -2
- package/dist/client/{FeedbackMessage-ByMrs3cr.mjs → FeedbackMessage-CtLvvS_d.mjs} +15 -3
- package/dist/client/{LeafletStaticMap-BUw9Ntzr.mjs → LeafletStaticMap-DYmHnM8g.mjs} +1 -1
- package/dist/client/{StepIndicator-BfbdiVQI.mjs → StepIndicator-CGixP_LW.mjs} +3 -3
- package/dist/client/{CourseRegistrationWizard-Bvtz9G9g.mjs → WholeSeriesRegistrationWizard-BEjzSiOA.mjs} +1410 -1247
- package/dist/client/{accordion-CjIeof73.mjs → accordion-CgFbnnnQ.mjs} +1 -1
- package/dist/client/{bookingForm-DwEeovf_.mjs → bookingForm-dUyGpbxc.mjs} +56 -39
- package/dist/client/bookings.mjs +1096 -731
- package/dist/client/{carousel-BMrfgOba.mjs → carousel-BvBwkUzx.mjs} +2 -2
- package/dist/client/{carousel.client-CpwTUhIo.mjs → carousel.client-59G_WMr4.mjs} +1 -1
- package/dist/client/{cart-rXEdxTdb.mjs → cart-DiZENT2E.mjs} +3 -3
- package/dist/client/{checkout-D3JlSzh3.mjs → checkout-Dq13KIgR.mjs} +3 -3
- package/dist/client/client.mjs +10645 -6794
- package/dist/client/{colorStyles-BWpj_h4C.mjs → colorStyles-CrxJrPjJ.mjs} +277 -1
- package/dist/client/{context-CJz1Vlsz.mjs → context-B83PiNzm.mjs} +6 -21
- package/dist/client/{courseRegistration-DO5XvMAA.mjs → courseRegistration-CKC5NmyH.mjs} +11 -5
- package/dist/client/{eventCalendar-DO6rTqCn.mjs → eventCalendar-BF0Jatfw.mjs} +42 -45
- package/dist/client/{eventCombined-bJ3i_ovU.mjs → eventCombined-BuoCF8je.mjs} +3 -3
- package/dist/client/{eventDetails-CCbrXE7o.mjs → eventDetails-CKwh0S9s.mjs} +276 -94
- package/dist/client/{eventListing-Bdlt9YTm.mjs → eventListing-eUxaWFaB.mjs} +3 -3
- package/dist/client/{eventRegistration-B02lt6iY.mjs → eventRegistration-CfkNOkPb.mjs} +630 -138
- package/dist/client/{form-DrUBAAox.mjs → form-C17H1c_H.mjs} +4 -4
- package/dist/client/{headerSection-MzqvHL6T.mjs → headerSection-DEwUmrtt.mjs} +2 -2
- package/dist/client/hooks.mjs +3224 -2485
- package/dist/client/{locationMap-DG8BxTBm.mjs → locationMap-Pf2QwuvW.mjs} +3 -3
- package/dist/client/{media-CNE1Z-wb.mjs → media-BOHuueS5.mjs} +16 -4
- package/dist/client/{newsletterForm-BzO-Td3p.mjs → newsletterForm-BWQAH5Sv.mjs} +4 -4
- package/dist/client/pricing-CVdvbopJ.mjs +195 -0
- package/dist/client/{productDetail-CfQ7rhVK.mjs → productDetail-BZi1Fa_G.mjs} +3 -3
- package/dist/client/{productList-C23rOLUi.mjs → productList-qq-55DNk.mjs} +3 -3
- package/dist/client/{propsDecoder-CAZdhwjs.mjs → propsDecoder-BxmqPKdP.mjs} +859 -650
- package/dist/client/rendering/client.mjs +8658 -7862
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +11437 -7446
- package/dist/client/{scrollToBlock-DSSqVQr1.mjs → scrollToBlock-B3CcKdtG.mjs} +1 -1
- package/dist/client/{shop-BMToKLK7.mjs → shop-DNWJPut5.mjs} +7 -7
- package/dist/client/{shop-commerce-DB4JRKmp.mjs → shop-commerce-BhvQCosS.mjs} +8 -8
- package/dist/client/{shop-commerce-store-BOqSIOuc.mjs → shop-commerce-store-B04sCNnW.mjs} +1 -1
- package/dist/client/{shopShared-B6SK9DZv.mjs → shopShared-DNNgZlmW.mjs} +5 -5
- package/dist/client/{useEventFilters-CULOa4nB.mjs → useEventFilters-CUmhE24_.mjs} +329 -84
- package/dist/client/{usePolling-BGG_8-jl.mjs → usePolling-M5jG675x.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +439 -168
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +7593 -29
- package/dist/preview-next/middleware.mjs +433 -167
- package/dist/{previewAuthStore-_GXFRg2W.mjs → previewAuthStore-BFKd4LrN.mjs} +432 -167
- package/dist/{sdk-runtime-hhSOMShR.mjs → sdk-runtime-BEXb1wqo.mjs} +2 -2
- package/dist/{separator-flRaFc14.mjs → separator-DGMuip1D.mjs} +1 -1
- package/dist/server/components.mjs +9596 -6347
- package/dist/server/config-validation.mjs +3224 -2486
- package/dist/server/config.mjs +3224 -2486
- package/dist/server/data.mjs +3224 -2485
- package/dist/server/index.mjs +486 -200
- package/dist/server/manifest.mjs +0 -1
- package/dist/server/next.mjs +10343 -7188
- package/dist/server/page-converter.mjs +1828 -2094
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +6750 -4519
- package/dist/server/rendering.mjs +9591 -6342
- package/dist/server/routing.mjs +3403 -1594
- package/dist/server/server.mjs +3274 -2671
- package/dist/server/theme-bridge.mjs +2979 -1639
- package/dist/server/theme.mjs +590 -176
- package/dist/styles/index.css +1896 -1129
- package/package.json +3 -2
- package/dist/_dts/api/src/bookingVerticalCatalog.d.ts +0 -746
- package/dist/_dts/block-form/src/client/blockDraftSaveability.d.ts +0 -1
- package/dist/_dts/block-form/src/widgets/index.d.ts +0 -20
- package/dist/_dts/blocks/src/system/runtime/api/requestBody.d.ts +0 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/CourseRegistrationWizard.d.ts +0 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/StepIndicator.d.ts +0 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/components.d.ts +0 -45
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/pricing.d.ts +0 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCoursePaymentVerification.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationActions.d.ts +0 -35
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationSelection.d.ts +0 -31
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +0 -102
- package/dist/client/clsx-DgIEfj3H.mjs +0 -16
- package/dist/client/eventProductEligibility-AVxyCB1u.mjs +0 -50
- package/dist/client/pricing-NgK7ozkg.mjs +0 -174
- /package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/PortalAuthSidebar.d.ts +0 -0
- /package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/SuccessStep.d.ts +0 -0
- /package/dist/_dts/blocks/src/system/runtime/nodes/{course-registration → event-registration/whole-series}/WaitlistStep.d.ts +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ButtonSystem } from '../types';
|
|
2
|
-
import {
|
|
2
|
+
import type { VariantRole } from '../types';
|
|
3
|
+
import { type ButtonHoverTreatmentValue, type ResolveButtonStyleError } from './domain';
|
|
3
4
|
import { type ButtonStyleId, type ButtonStyleSelection, type ButtonStyleSelectionFor } from './selection';
|
|
4
5
|
export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
5
6
|
id: "soft-pill";
|
|
@@ -12,15 +13,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
12
13
|
}>>>;
|
|
13
14
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
14
15
|
defaultParameters: Readonly<Record<string, never>>;
|
|
15
|
-
controls: readonly Readonly<
|
|
16
|
-
kind: "choice";
|
|
17
|
-
parameter: string;
|
|
18
|
-
label: string;
|
|
19
|
-
options: readonly Readonly<{
|
|
20
|
-
value: never;
|
|
21
|
-
label: string;
|
|
22
|
-
}>[];
|
|
23
|
-
}>[];
|
|
16
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
24
17
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
25
18
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
26
19
|
sizes?: import("..").ButtonSizes;
|
|
@@ -71,15 +64,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
71
64
|
}>>>;
|
|
72
65
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
73
66
|
defaultParameters: Readonly<Record<string, never>>;
|
|
74
|
-
controls: readonly Readonly<
|
|
75
|
-
kind: "choice";
|
|
76
|
-
parameter: string;
|
|
77
|
-
label: string;
|
|
78
|
-
options: readonly Readonly<{
|
|
79
|
-
value: never;
|
|
80
|
-
label: string;
|
|
81
|
-
}>[];
|
|
82
|
-
}>[];
|
|
67
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
83
68
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
84
69
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
85
70
|
sizes?: import("..").ButtonSizes;
|
|
@@ -130,15 +115,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
130
115
|
}>>>;
|
|
131
116
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
132
117
|
defaultParameters: Readonly<Record<string, never>>;
|
|
133
|
-
controls: readonly Readonly<
|
|
134
|
-
kind: "choice";
|
|
135
|
-
parameter: string;
|
|
136
|
-
label: string;
|
|
137
|
-
options: readonly Readonly<{
|
|
138
|
-
value: never;
|
|
139
|
-
label: string;
|
|
140
|
-
}>[];
|
|
141
|
-
}>[];
|
|
118
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
142
119
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
143
120
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
144
121
|
sizes?: import("..").ButtonSizes;
|
|
@@ -189,15 +166,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
189
166
|
}>>>;
|
|
190
167
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
191
168
|
defaultParameters: Readonly<Record<string, never>>;
|
|
192
|
-
controls: readonly Readonly<
|
|
193
|
-
kind: "choice";
|
|
194
|
-
parameter: string;
|
|
195
|
-
label: string;
|
|
196
|
-
options: readonly Readonly<{
|
|
197
|
-
value: never;
|
|
198
|
-
label: string;
|
|
199
|
-
}>[];
|
|
200
|
-
}>[];
|
|
169
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
201
170
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
202
171
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
203
172
|
sizes?: import("..").ButtonSizes;
|
|
@@ -248,15 +217,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
248
217
|
}>>>;
|
|
249
218
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
250
219
|
defaultParameters: Readonly<Record<string, never>>;
|
|
251
|
-
controls: readonly Readonly<
|
|
252
|
-
kind: "choice";
|
|
253
|
-
parameter: string;
|
|
254
|
-
label: string;
|
|
255
|
-
options: readonly Readonly<{
|
|
256
|
-
value: never;
|
|
257
|
-
label: string;
|
|
258
|
-
}>[];
|
|
259
|
-
}>[];
|
|
220
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
260
221
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
261
222
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
262
223
|
sizes?: import("..").ButtonSizes;
|
|
@@ -307,15 +268,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
307
268
|
}>>>;
|
|
308
269
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
309
270
|
defaultParameters: Readonly<Record<string, never>>;
|
|
310
|
-
controls: readonly Readonly<
|
|
311
|
-
kind: "choice";
|
|
312
|
-
parameter: string;
|
|
313
|
-
label: string;
|
|
314
|
-
options: readonly Readonly<{
|
|
315
|
-
value: never;
|
|
316
|
-
label: string;
|
|
317
|
-
}>[];
|
|
318
|
-
}>[];
|
|
271
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
319
272
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
320
273
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
321
274
|
sizes?: import("..").ButtonSizes;
|
|
@@ -364,18 +317,50 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
364
317
|
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
365
318
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
366
319
|
}>>>;
|
|
367
|
-
parameterSchema: import("zod").ZodType<
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
320
|
+
parameterSchema: import("zod").ZodType<{
|
|
321
|
+
hoverPreferences?: {
|
|
322
|
+
outline?: "accent" | "secondary" | "contextual" | undefined;
|
|
323
|
+
accent?: "accent" | "secondary" | "contextual" | undefined;
|
|
324
|
+
primary?: "accent" | "secondary" | "contextual" | undefined;
|
|
325
|
+
secondary?: "accent" | "secondary" | "contextual" | undefined;
|
|
326
|
+
ghost?: "accent" | "secondary" | "contextual" | undefined;
|
|
327
|
+
} | undefined;
|
|
328
|
+
}, unknown, import("zod/v4/core").$ZodTypeInternals<{
|
|
329
|
+
hoverPreferences?: {
|
|
330
|
+
outline?: "accent" | "secondary" | "contextual" | undefined;
|
|
331
|
+
accent?: "accent" | "secondary" | "contextual" | undefined;
|
|
332
|
+
primary?: "accent" | "secondary" | "contextual" | undefined;
|
|
333
|
+
secondary?: "accent" | "secondary" | "contextual" | undefined;
|
|
334
|
+
ghost?: "accent" | "secondary" | "contextual" | undefined;
|
|
335
|
+
} | undefined;
|
|
336
|
+
}, unknown>>;
|
|
337
|
+
defaultParameters: {
|
|
338
|
+
hoverPreferences?: {
|
|
339
|
+
outline?: "accent" | "secondary" | "contextual" | undefined;
|
|
340
|
+
accent?: "accent" | "secondary" | "contextual" | undefined;
|
|
341
|
+
primary?: "accent" | "secondary" | "contextual" | undefined;
|
|
342
|
+
secondary?: "accent" | "secondary" | "contextual" | undefined;
|
|
343
|
+
ghost?: "accent" | "secondary" | "contextual" | undefined;
|
|
344
|
+
} | undefined;
|
|
345
|
+
};
|
|
346
|
+
controls: readonly import("./domain").ButtonStyleControl<{
|
|
347
|
+
hoverPreferences?: {
|
|
348
|
+
outline?: "accent" | "secondary" | "contextual" | undefined;
|
|
349
|
+
accent?: "accent" | "secondary" | "contextual" | undefined;
|
|
350
|
+
primary?: "accent" | "secondary" | "contextual" | undefined;
|
|
351
|
+
secondary?: "accent" | "secondary" | "contextual" | undefined;
|
|
352
|
+
ghost?: "accent" | "secondary" | "contextual" | undefined;
|
|
353
|
+
} | undefined;
|
|
377
354
|
}>[];
|
|
378
|
-
defineSystem: (parameters:
|
|
355
|
+
defineSystem: (parameters: {
|
|
356
|
+
hoverPreferences?: {
|
|
357
|
+
outline?: "accent" | "secondary" | "contextual" | undefined;
|
|
358
|
+
accent?: "accent" | "secondary" | "contextual" | undefined;
|
|
359
|
+
primary?: "accent" | "secondary" | "contextual" | undefined;
|
|
360
|
+
secondary?: "accent" | "secondary" | "contextual" | undefined;
|
|
361
|
+
ghost?: "accent" | "secondary" | "contextual" | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
}) => Readonly<{
|
|
379
364
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
380
365
|
sizes?: import("..").ButtonSizes;
|
|
381
366
|
roles: Readonly<{
|
|
@@ -425,15 +410,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
425
410
|
}>>>;
|
|
426
411
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
427
412
|
defaultParameters: Readonly<Record<string, never>>;
|
|
428
|
-
controls: readonly Readonly<
|
|
429
|
-
kind: "choice";
|
|
430
|
-
parameter: string;
|
|
431
|
-
label: string;
|
|
432
|
-
options: readonly Readonly<{
|
|
433
|
-
value: never;
|
|
434
|
-
label: string;
|
|
435
|
-
}>[];
|
|
436
|
-
}>[];
|
|
413
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
437
414
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
438
415
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
439
416
|
sizes?: import("..").ButtonSizes;
|
|
@@ -484,15 +461,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
484
461
|
}>>>;
|
|
485
462
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
486
463
|
defaultParameters: Readonly<Record<string, never>>;
|
|
487
|
-
controls: readonly Readonly<
|
|
488
|
-
kind: "choice";
|
|
489
|
-
parameter: string;
|
|
490
|
-
label: string;
|
|
491
|
-
options: readonly Readonly<{
|
|
492
|
-
value: never;
|
|
493
|
-
label: string;
|
|
494
|
-
}>[];
|
|
495
|
-
}>[];
|
|
464
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
496
465
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
497
466
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
498
467
|
sizes?: import("..").ButtonSizes;
|
|
@@ -543,15 +512,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
543
512
|
}>>>;
|
|
544
513
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
545
514
|
defaultParameters: Readonly<Record<string, never>>;
|
|
546
|
-
controls: readonly Readonly<
|
|
547
|
-
kind: "choice";
|
|
548
|
-
parameter: string;
|
|
549
|
-
label: string;
|
|
550
|
-
options: readonly Readonly<{
|
|
551
|
-
value: never;
|
|
552
|
-
label: string;
|
|
553
|
-
}>[];
|
|
554
|
-
}>[];
|
|
515
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
555
516
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
556
517
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
557
518
|
sizes?: import("..").ButtonSizes;
|
|
@@ -602,15 +563,7 @@ export declare const buttonStyleRecipes: readonly [Readonly<{
|
|
|
602
563
|
}>>>;
|
|
603
564
|
parameterSchema: import("zod").ZodType<Readonly<Record<string, never>>, unknown, import("zod/v4/core").$ZodTypeInternals<Readonly<Record<string, never>>, unknown>>;
|
|
604
565
|
defaultParameters: Readonly<Record<string, never>>;
|
|
605
|
-
controls: readonly Readonly<
|
|
606
|
-
kind: "choice";
|
|
607
|
-
parameter: string;
|
|
608
|
-
label: string;
|
|
609
|
-
options: readonly Readonly<{
|
|
610
|
-
value: never;
|
|
611
|
-
label: string;
|
|
612
|
-
}>[];
|
|
613
|
-
}>[];
|
|
566
|
+
controls: readonly import("./domain").ButtonStyleControl<Readonly<Record<string, never>>>[];
|
|
614
567
|
defineSystem: (parameters: Readonly<Record<string, never>>) => Readonly<{
|
|
615
568
|
global: import("../../../../blocks/src/index").ButtonGlobalSettings;
|
|
616
569
|
sizes?: import("..").ButtonSizes;
|
|
@@ -744,4 +697,6 @@ export type UpdateButtonStyleSelectionChoiceResult = Readonly<{
|
|
|
744
697
|
* selection. Preview controls never need recipe-specific parameter branches.
|
|
745
698
|
*/
|
|
746
699
|
export declare function updateButtonStyleSelectionChoice(selection: ButtonStyleSelection, parameter: string, value: string): UpdateButtonStyleSelectionChoiceResult;
|
|
700
|
+
export declare function buttonStyleHoverPreferenceValue(selection: ButtonStyleSelection, parameter: string, role: VariantRole): ButtonHoverTreatmentValue | null;
|
|
701
|
+
export declare function updateButtonStyleHoverPreference(selection: ButtonStyleSelection, parameter: string, role: VariantRole, value: ButtonHoverTreatmentValue | null): UpdateButtonStyleSelectionChoiceResult;
|
|
747
702
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { type VariantRole } from '../types';
|
|
2
3
|
export declare const BUTTON_STYLE_IDS: readonly ["soft-pill", "earth-pill", "confident-chip", "editorial-link", "pebble", "ink-stamp", "flat-ink", "brushed-wash", "showtime-pill", "joy-stamp", "ornate-ritual", "quiet-arrow"];
|
|
3
4
|
export type ButtonStyleId = (typeof BUTTON_STYLE_IDS)[number];
|
|
4
5
|
export declare const quietArrowParametersSchema: z.ZodObject<{
|
|
@@ -8,6 +9,38 @@ export declare const quietArrowParametersSchema: z.ZodObject<{
|
|
|
8
9
|
}>;
|
|
9
10
|
}, z.core.$strict>;
|
|
10
11
|
export type QuietArrowParameters = z.infer<typeof quietArrowParametersSchema>;
|
|
12
|
+
export declare const FLAT_INK_HOVER_TREATMENT_VALUES: readonly ["contextual", "secondary", "accent"];
|
|
13
|
+
export declare const flatInkHoverTreatmentSchema: z.ZodEnum<{
|
|
14
|
+
accent: "accent";
|
|
15
|
+
secondary: "secondary";
|
|
16
|
+
contextual: "contextual";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const flatInkHoverPreferencesSchema: z.ZodObject<Record<"outline" | "accent" | "primary" | "secondary" | "ghost", z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
accent: "accent";
|
|
20
|
+
secondary: "secondary";
|
|
21
|
+
contextual: "contextual";
|
|
22
|
+
}>>>, z.core.$strict>;
|
|
23
|
+
export declare const flatInkParametersSchema: z.ZodObject<{
|
|
24
|
+
hoverPreferences: z.ZodOptional<z.ZodObject<Record<"outline" | "accent" | "primary" | "secondary" | "ghost", z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
accent: "accent";
|
|
26
|
+
secondary: "secondary";
|
|
27
|
+
contextual: "contextual";
|
|
28
|
+
}>>>, z.core.$strict>>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export type FlatInkHoverTreatment = z.infer<typeof flatInkHoverTreatmentSchema>;
|
|
31
|
+
export type FlatInkParameters = z.infer<typeof flatInkParametersSchema>;
|
|
32
|
+
export type ButtonHoverTreatmentPreference = Readonly<{
|
|
33
|
+
kind: 'recommended';
|
|
34
|
+
}> | Readonly<{
|
|
35
|
+
kind: 'explicit';
|
|
36
|
+
treatment: Readonly<{
|
|
37
|
+
kind: 'contextual-shade-shift';
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
kind: 'palette-role';
|
|
40
|
+
role: 'secondary' | 'accent';
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
export type ButtonHoverPreferences = Readonly<Record<VariantRole, ButtonHoverTreatmentPreference>>;
|
|
11
44
|
export declare const buttonStyleSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
45
|
styleId: z.ZodLiteral<"soft-pill">;
|
|
13
46
|
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
@@ -28,7 +61,13 @@ export declare const buttonStyleSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
28
61
|
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
29
62
|
}, z.core.$strict>, z.ZodObject<{
|
|
30
63
|
styleId: z.ZodLiteral<"flat-ink">;
|
|
31
|
-
parameters: z.ZodObject<{
|
|
64
|
+
parameters: z.ZodObject<{
|
|
65
|
+
hoverPreferences: z.ZodOptional<z.ZodObject<Record<"outline" | "accent" | "primary" | "secondary" | "ghost", z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
accent: "accent";
|
|
67
|
+
secondary: "secondary";
|
|
68
|
+
contextual: "contextual";
|
|
69
|
+
}>>>, z.core.$strict>>;
|
|
70
|
+
}, z.core.$strict>;
|
|
32
71
|
}, z.core.$strict>, z.ZodObject<{
|
|
33
72
|
styleId: z.ZodLiteral<"brushed-wash">;
|
|
34
73
|
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
@@ -62,9 +101,18 @@ export declare function createDefaultButtonStyleSelection(styleId: ButtonStyleId
|
|
|
62
101
|
export declare function isButtonStyleId(value: string): value is ButtonStyleId;
|
|
63
102
|
export type PersistedButtonStyleSelectionResult = Readonly<{
|
|
64
103
|
selection: ButtonStyleSelection;
|
|
65
|
-
warning: 'invalid-persisted-button-style-selection' | null;
|
|
104
|
+
warning: 'invalid-persisted-button-style-selection' | 'repaired-persisted-button-style-selection' | null;
|
|
105
|
+
repairs: readonly ButtonStyleSelectionRepair[];
|
|
106
|
+
}>;
|
|
107
|
+
export type ButtonStyleSelectionRepair = Readonly<{
|
|
108
|
+
kind: 'repaired-option';
|
|
109
|
+
styleId: ButtonStyleId;
|
|
110
|
+
parameter: string;
|
|
111
|
+
role: VariantRole | null;
|
|
112
|
+
reason: 'invalid-option-shape' | 'unsupported-option';
|
|
66
113
|
}>;
|
|
67
114
|
export declare function parsePersistedButtonStyleSelection(value: unknown, fallback?: ButtonStyleSelection): PersistedButtonStyleSelectionResult;
|
|
115
|
+
export declare function normalizeFlatInkHoverPreferences(parameters: FlatInkParameters): ButtonHoverPreferences;
|
|
68
116
|
/**
|
|
69
117
|
* Stable identity for a validated style selection. Parsing first canonicalises
|
|
70
118
|
* parameter key order, so future recipe parameters do not require editor-core
|
|
@@ -117,6 +117,16 @@ export type ButtonColourTreatment = {
|
|
|
117
117
|
role: 'link';
|
|
118
118
|
};
|
|
119
119
|
export type ButtonBackground = ButtonColourTreatment;
|
|
120
|
+
export declare const contextualButtonHoverSchema: z.ZodObject<{
|
|
121
|
+
kind: z.ZodLiteral<"shade-shift">;
|
|
122
|
+
seedToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
123
|
+
fallbackDirection: z.ZodEnum<{
|
|
124
|
+
lighter: "lighter";
|
|
125
|
+
darker: "darker";
|
|
126
|
+
}>;
|
|
127
|
+
preferredToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
128
|
+
}, z.core.$strict>;
|
|
129
|
+
export type ContextualButtonHover = z.infer<typeof contextualButtonHoverSchema>;
|
|
120
130
|
/**
|
|
121
131
|
* The complete persisted button-effect contract.
|
|
122
132
|
*
|
|
@@ -1115,6 +1125,15 @@ export declare const buttonVariantSchema: z.ZodObject<{
|
|
|
1115
1125
|
widthClass: z.ZodString;
|
|
1116
1126
|
}, z.core.$strict>>;
|
|
1117
1127
|
hoverBackgroundToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
1128
|
+
contextualHover: z.ZodOptional<z.ZodObject<{
|
|
1129
|
+
kind: z.ZodLiteral<"shade-shift">;
|
|
1130
|
+
seedToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
1131
|
+
fallbackDirection: z.ZodEnum<{
|
|
1132
|
+
lighter: "lighter";
|
|
1133
|
+
darker: "darker";
|
|
1134
|
+
}>;
|
|
1135
|
+
preferredToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
1136
|
+
}, z.core.$strict>>;
|
|
1118
1137
|
effects: z.ZodOptional<z.ZodObject<{
|
|
1119
1138
|
base: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1120
1139
|
effectId: z.ZodLiteral<"darken-background">;
|
|
@@ -1749,6 +1768,15 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
1749
1768
|
widthClass: z.ZodString;
|
|
1750
1769
|
}, z.core.$strict>>;
|
|
1751
1770
|
hoverBackgroundToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
1771
|
+
contextualHover: z.ZodOptional<z.ZodObject<{
|
|
1772
|
+
kind: z.ZodLiteral<"shade-shift">;
|
|
1773
|
+
seedToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
1774
|
+
fallbackDirection: z.ZodEnum<{
|
|
1775
|
+
lighter: "lighter";
|
|
1776
|
+
darker: "darker";
|
|
1777
|
+
}>;
|
|
1778
|
+
preferredToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
1779
|
+
}, z.core.$strict>>;
|
|
1752
1780
|
effects: z.ZodOptional<z.ZodObject<{
|
|
1753
1781
|
base: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1754
1782
|
effectId: z.ZodLiteral<"darken-background">;
|
|
@@ -2350,6 +2378,7 @@ export interface ButtonVariant {
|
|
|
2350
2378
|
shadow?: Shadow;
|
|
2351
2379
|
border?: ButtonBorder;
|
|
2352
2380
|
hoverBackgroundToken?: OpaqueButtonColourToken;
|
|
2381
|
+
contextualHover?: ContextualButtonHover;
|
|
2353
2382
|
effects?: VariantEffects;
|
|
2354
2383
|
/** Per-variant size overrides. See VariantSizeOverrides. */
|
|
2355
2384
|
sizes?: VariantSizeOverrides;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Pure functions for generating card CSS without requiring the full Theme type.
|
|
5
5
|
* Used by both the full CMS theme system and the SDK theme bridge.
|
|
6
6
|
*/
|
|
7
|
+
import type { CardEdgeRule } from './types';
|
|
7
8
|
export type CardBackgroundType = 'solid' | 'transparent' | 'gradient';
|
|
8
9
|
export type CardSpacingCore = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
|
|
9
10
|
export type CardCornerValueCore = 'square' | 'soft' | 'rounded' | 'pill' | 'expressive';
|
|
@@ -15,14 +16,20 @@ export interface CardCornerRadiiCore {
|
|
|
15
16
|
bottomLeft?: CardCornerValueCore;
|
|
16
17
|
bottomRight?: CardCornerValueCore;
|
|
17
18
|
}
|
|
18
|
-
export interface CardAccentEdgeCore {
|
|
19
|
-
edge: CardEdgeCore;
|
|
20
|
-
colorToken: string;
|
|
21
|
-
width: CardEdgeWidthCore;
|
|
22
|
-
}
|
|
23
19
|
export interface CardVariantCore {
|
|
24
|
-
/** Unique variant identifier (e.g., 'default', '
|
|
20
|
+
/** Unique variant identifier (e.g., 'default', 'alternative') */
|
|
25
21
|
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Which card role this variant implements. Generated CSS addresses the
|
|
24
|
+
* variant by its stable `.card-role-*` alias as well as its id, so content
|
|
25
|
+
* compiled against the role contract renders on a bridge theme too.
|
|
26
|
+
*/
|
|
27
|
+
role?: CardRoleCore;
|
|
28
|
+
/**
|
|
29
|
+
* Ids this variant used to ship under. They keep emitting their `.card-{id}`
|
|
30
|
+
* class so SDK sites that address an older variant name keep their surface.
|
|
31
|
+
*/
|
|
32
|
+
legacyIds?: readonly string[];
|
|
26
33
|
/** Background style */
|
|
27
34
|
background: CardBackgroundType;
|
|
28
35
|
/** Background color token for solid backgrounds */
|
|
@@ -41,10 +48,17 @@ export interface CardVariantCore {
|
|
|
41
48
|
borderToken?: string;
|
|
42
49
|
/** Border width */
|
|
43
50
|
borderWidth?: 'none' | 'thin' | 'medium' | 'thick';
|
|
44
|
-
/**
|
|
45
|
-
|
|
51
|
+
/** Edge rules drawn on the card; coexists with the border */
|
|
52
|
+
decorations?: CardEdgeRule[];
|
|
46
53
|
/** Per-corner radius override; wins over the global corners setting */
|
|
47
54
|
cornerRadii?: CardCornerRadiiCore;
|
|
55
|
+
/**
|
|
56
|
+
* Opts a variant out of the theme's global card shadow. A boxless card has
|
|
57
|
+
* no box to cast one, so `open` sets it; every other variant inherits the
|
|
58
|
+
* setting as before. Named for what it does rather than mirroring
|
|
59
|
+
* `CardVariant.shadow`, which is an object describing a shadow.
|
|
60
|
+
*/
|
|
61
|
+
suppressShadow?: true;
|
|
48
62
|
}
|
|
49
63
|
export interface CardCoreSettings {
|
|
50
64
|
/** Corner radius style */
|
|
@@ -65,8 +79,38 @@ export interface CardCoreSettings {
|
|
|
65
79
|
* @param settings - Global card settings
|
|
66
80
|
* @returns CSS string
|
|
67
81
|
*/
|
|
68
|
-
export declare function generateCardCoreCss(scopeId: string, variants: CardVariantCore[], settings: CardCoreSettings): string;
|
|
82
|
+
export declare function generateCardCoreCss(scopeId: string, variants: CardVariantCore[], settings: CardCoreSettings, scope?: CardClassScope): string;
|
|
83
|
+
/** The roles a bridge card variant can implement. `none` is never a variant. */
|
|
84
|
+
export type CardRoleCore = 'default' | 'alternative' | 'open';
|
|
85
|
+
/**
|
|
86
|
+
* Which half of a variant's class list to address.
|
|
87
|
+
*
|
|
88
|
+
* The split exists because the two halves have different lifecycles on a
|
|
89
|
+
* bridge theme. `.card-role-*` is the *contract*: compiled content names a
|
|
90
|
+
* role and expects a surface, so the aliases are emitted unconditionally.
|
|
91
|
+
* `.card-{id}` and its legacy ids are the *catalogue*: an SDK consumer opts
|
|
92
|
+
* into those by name through `components.cards`.
|
|
93
|
+
*/
|
|
94
|
+
export type CardClassScope = 'all' | 'role-aliases' | 'named';
|
|
95
|
+
/** Every class a variant's rule is addressed by, within a scope. */
|
|
96
|
+
export declare function cardVariantClasses(variant: CardVariantCore, scope?: CardClassScope): string[];
|
|
69
97
|
/**
|
|
70
|
-
*
|
|
98
|
+
* The default card variants for SDK/bridge themes — one per surface-backed
|
|
99
|
+
* role, so a bridge theme implements the same card contract a site style does
|
|
100
|
+
* and compiled `_cardStyles.role` renders on it.
|
|
101
|
+
*
|
|
102
|
+
* Two of the pre-role trio survive as legacy ids: `.card-elevated` is the
|
|
103
|
+
* `alternative` card under its old name, and both were the same surface before
|
|
104
|
+
* the rename. `outlined` is different — a fully bordered box is not what the
|
|
105
|
+
* `open` role means (boxless but marked), so it keeps its own variant and its
|
|
106
|
+
* own declarations as a *compatibility class only*. It carries no role, which
|
|
107
|
+
* means:
|
|
108
|
+
*
|
|
109
|
+
* - `.card-outlined` renders exactly what it always did;
|
|
110
|
+
* - `role: 'open'` renders the boxless marked card on a bridge theme, the same
|
|
111
|
+
* thing it renders under a site style;
|
|
112
|
+
* - naming `outlined` in `components.cards.variants` enables the compatibility
|
|
113
|
+
* class and nothing else — it does not publish `.card-role-open`, because
|
|
114
|
+
* selecting a legacy name is not a claim on a semantic role.
|
|
71
115
|
*/
|
|
72
116
|
export declare function getDefaultCardVariants(): CardVariantCore[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { CardEdgeRule, CardEdgeRuleWidth } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Card decoration CSS — the single implementation shared by the Theme-driven
|
|
4
|
+
* generator (`generateCardCss`) and the dependency-free core generator
|
|
5
|
+
* (`core.ts`). Both used to carry their own accent-edge emitter; they now
|
|
6
|
+
* differ only in how a colour token resolves to a CSS colour.
|
|
7
|
+
*/
|
|
8
|
+
/** Resolves a palette token name to a CSS colour value. */
|
|
9
|
+
export type CardColorResolver = (token: string) => string;
|
|
10
|
+
export declare const CARD_EDGE_RULE_WIDTH_MAP: Record<CardEdgeRuleWidth, string>;
|
|
11
|
+
/**
|
|
12
|
+
* The one short-rule length in the corpus (the editorial-rule accent). A fixed
|
|
13
|
+
* constant keeps `length: 'short'` a semantic choice rather than a free number.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SHORT_CARD_EDGE_RULE_LENGTH = "2.75rem";
|
|
16
|
+
/** Apply a decoration's optional alpha to its resolved colour. */
|
|
17
|
+
export declare function cardDecorationColor(rule: CardEdgeRule, resolveColor: CardColorResolver): string;
|
|
18
|
+
/**
|
|
19
|
+
* Container border declarations for a variant's border and its full-length
|
|
20
|
+
* edge rules. The two are independent: a card may be outlined *and* carry an
|
|
21
|
+
* accent edge. A variant with edge rules and no border still zeroes the box so
|
|
22
|
+
* only the decorated sides draw.
|
|
23
|
+
*/
|
|
24
|
+
export declare function cardBorderDeclarations(borderDeclaration: string | null, decorations: readonly CardEdgeRule[] | undefined, resolveColor: CardColorResolver): string[];
|
|
25
|
+
/**
|
|
26
|
+
* Complete pseudo-element rules for a variant's short edge rules.
|
|
27
|
+
*
|
|
28
|
+
* `cardDecorationsSchema` caps the list at two, which makes the two pseudos
|
|
29
|
+
* sufficient for anything that parsed. The dependency-free core types carry a
|
|
30
|
+
* plain array with no such cap, so short rules past the second are dropped
|
|
31
|
+
* here rather than silently overwriting `::after`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function cardDecorationPseudoRules(containerSelectors: readonly string[], decorations: readonly CardEdgeRule[] | undefined, resolveColor: CardColorResolver): string[];
|
|
@@ -6,9 +6,14 @@ import type { CardSystem } from './types';
|
|
|
6
6
|
* Creates the baseline card roles that blocks can request:
|
|
7
7
|
* - `default` for everyday surfaced cards
|
|
8
8
|
* - `alternative` for emphasised cards
|
|
9
|
+
* - `open` for boxless-but-marked cards
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
11
|
+
* This is the terminal arm of the role fallback chain, so every theme
|
|
12
|
+
* implements every surface role whether or not its site style defines cards.
|
|
13
|
+
*
|
|
14
|
+
* The surfaced variants explicitly set theme.shadow and theme.corners for
|
|
15
|
+
* runtime transform access, and both use theme.border when it has meaningful
|
|
16
|
+
* width.
|
|
12
17
|
*
|
|
13
18
|
* This ensures cards have sensible defaults even when theme.cards is undefined.
|
|
14
19
|
*
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CardEdgeRuleWidth, CardVariant } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The boxless `open` card, as data.
|
|
4
|
+
*
|
|
5
|
+
* Every implementation of the role is the same shape — no fill, no box, square
|
|
6
|
+
* corners, an inline-flush content edge, a full hairline rule across the top
|
|
7
|
+
* and a short brand accent sitting on it. This absorbed the legacy
|
|
8
|
+
* `editorial-rule` treatment class, which Phase 3 deleted; the treatment's
|
|
9
|
+
* bundled `margin-top: 1rem` is deliberately absent, because outer rhythm is
|
|
10
|
+
* composition, not card identity. Pinned by `openCardVariant.test.ts`.
|
|
11
|
+
*
|
|
12
|
+
* What a site style gets to change is the *marking*: which token the accent
|
|
13
|
+
* uses and how heavy it is. Anna Raven's grounded-practice style takes her
|
|
14
|
+
* ochre `accent` where the generated baseline takes `primary`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function boxlessOpenCardVariant(marking: Readonly<{
|
|
17
|
+
/** Token for the short accent rule riding on the hairline. */
|
|
18
|
+
accentToken: string;
|
|
19
|
+
accentWidth: CardEdgeRuleWidth;
|
|
20
|
+
/** Token for the full-width hairline. Defaults to `border`. */
|
|
21
|
+
ruleToken?: string;
|
|
22
|
+
/** Opacity for the hairline, when it should sit back from the border colour. */
|
|
23
|
+
ruleAlpha?: number;
|
|
24
|
+
}>): CardVariant;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Theme } from '../schema';
|
|
2
|
+
import type { CardRole, CardSystem, CardVariant, SurfaceCardRole } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Card role resolution — the closed interface between Looks (which say *which
|
|
5
|
+
* role*) and site styles (which say *what the role looks like*).
|
|
6
|
+
*
|
|
7
|
+
* The fallback chain is total, so a Look never has to know which variants a
|
|
8
|
+
* site style happens to define.
|
|
9
|
+
*/
|
|
10
|
+
/** Where a resolved surface came from. */
|
|
11
|
+
export type CardSurfaceSource = 'site-style' | 'generated-baseline';
|
|
12
|
+
export type ResolvedCardSurface = {
|
|
13
|
+
kind: 'none';
|
|
14
|
+
requestedRole: CardRole;
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'surface';
|
|
17
|
+
requestedRole: CardRole;
|
|
18
|
+
/** The role whose variant actually supplied the surface. */
|
|
19
|
+
resolvedRole: SurfaceCardRole;
|
|
20
|
+
variant: CardVariant;
|
|
21
|
+
source: CardSurfaceSource;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Resolve a card role against a site style's card system.
|
|
25
|
+
*
|
|
26
|
+
* - `none` — terminal, no surface.
|
|
27
|
+
* - `open` — site style's `open` variant → generated baseline `open`.
|
|
28
|
+
* - `default` — site style's `default` → generated baseline `default`.
|
|
29
|
+
* - `alternative` — site style's `alternative` → site style's `default` →
|
|
30
|
+
* generated baseline `default`.
|
|
31
|
+
*
|
|
32
|
+
* The `theme` argument exists solely so the chain can reach the generated
|
|
33
|
+
* baseline without the caller synthesizing one. Pass `null` for `cardSystem`
|
|
34
|
+
* when the site style declares none — resolving against a baseline the caller
|
|
35
|
+
* synthesized would report `source: 'site-style'` for a surface no site style
|
|
36
|
+
* chose.
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveCardRole(theme: Theme, cardSystem: CardSystem | null, role: CardRole): ResolvedCardSurface;
|