@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
|
@@ -14,14 +14,30 @@ export type CardSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable'
|
|
|
14
14
|
export type GradientDirection = 'to-r' | 'to-l' | 'to-t' | 'to-b' | 'to-tr' | 'to-tl' | 'to-br' | 'to-bl';
|
|
15
15
|
export declare const cardVariantRoleValues: readonly ["default", "alternative"];
|
|
16
16
|
export declare const boxlessCardVariantValue: "none";
|
|
17
|
+
export declare const openCardRoleValue: "open";
|
|
17
18
|
export type CardVariantRole = (typeof cardVariantRoleValues)[number];
|
|
18
19
|
export type BoxlessCardVariant = typeof boxlessCardVariantValue;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export type
|
|
20
|
+
/**
|
|
21
|
+
* The roles a site style implements with an actual card variant. `none` is
|
|
22
|
+
* deliberately absent: it is a role value only, never a variant.
|
|
23
|
+
*/
|
|
24
|
+
export declare const surfaceCardRoleValues: readonly ["default", "alternative", "open"];
|
|
25
|
+
export type SurfaceCardRole = (typeof surfaceCardRoleValues)[number];
|
|
26
|
+
/**
|
|
27
|
+
* The closed role vocabulary Looks and blocks use for surfaced and boxless
|
|
28
|
+
* card choices.
|
|
29
|
+
*
|
|
30
|
+
* - `none` — no site-style card surface; the block's own composition and
|
|
31
|
+
* the author's own card fields govern the item. This is *not*
|
|
32
|
+
* a promise of visible boxlessness: a block whose base class
|
|
33
|
+
* draws a border still draws one. It says the Look is not
|
|
34
|
+
* asking the site style for a card.
|
|
35
|
+
* - `open` — boxless but marked (a rule or accent edge, no enclosing box)
|
|
36
|
+
* - `default` — the site's quiet everyday card
|
|
37
|
+
* - `alternative` — the statement card carrying the site's personality
|
|
38
|
+
*/
|
|
39
|
+
export declare const cardRoleValues: readonly ["default", "alternative", "open", "none"];
|
|
40
|
+
export type CardRole = (typeof cardRoleValues)[number];
|
|
25
41
|
export type CardBackground = {
|
|
26
42
|
type: 'solid';
|
|
27
43
|
colorToken: string;
|
|
@@ -33,10 +49,10 @@ export type CardBackground = {
|
|
|
33
49
|
} | {
|
|
34
50
|
type: 'transparent';
|
|
35
51
|
};
|
|
36
|
-
export
|
|
52
|
+
export type CardBorder = {
|
|
37
53
|
widthClass: string;
|
|
38
54
|
colorToken: string;
|
|
39
|
-
}
|
|
55
|
+
};
|
|
40
56
|
export declare const cardSpacingSchema: z.ZodEnum<{
|
|
41
57
|
medium: "medium";
|
|
42
58
|
none: "none";
|
|
@@ -45,6 +61,57 @@ export declare const cardSpacingSchema: z.ZodEnum<{
|
|
|
45
61
|
spacious: "spacious";
|
|
46
62
|
cozy: "cozy";
|
|
47
63
|
}>;
|
|
64
|
+
/** Per-axis padding, for boxless cards whose inline padding differs from block. */
|
|
65
|
+
export declare const cardSpacingAxesSchema: z.ZodObject<{
|
|
66
|
+
block: z.ZodEnum<{
|
|
67
|
+
medium: "medium";
|
|
68
|
+
none: "none";
|
|
69
|
+
compact: "compact";
|
|
70
|
+
comfortable: "comfortable";
|
|
71
|
+
spacious: "spacious";
|
|
72
|
+
cozy: "cozy";
|
|
73
|
+
}>;
|
|
74
|
+
inline: z.ZodEnum<{
|
|
75
|
+
medium: "medium";
|
|
76
|
+
none: "none";
|
|
77
|
+
compact: "compact";
|
|
78
|
+
comfortable: "comfortable";
|
|
79
|
+
spacious: "spacious";
|
|
80
|
+
cozy: "cozy";
|
|
81
|
+
}>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export type CardSpacingAxes = z.infer<typeof cardSpacingAxesSchema>;
|
|
84
|
+
/**
|
|
85
|
+
* A card's content padding: one value for both axes, or one per axis. Two
|
|
86
|
+
* fields would let a variant say both and leave the reader to guess, so this is
|
|
87
|
+
* a union — the legacy `spacingAxes` key is lifted into it on parse.
|
|
88
|
+
*/
|
|
89
|
+
export declare const cardSpacingValueSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
90
|
+
medium: "medium";
|
|
91
|
+
none: "none";
|
|
92
|
+
compact: "compact";
|
|
93
|
+
comfortable: "comfortable";
|
|
94
|
+
spacious: "spacious";
|
|
95
|
+
cozy: "cozy";
|
|
96
|
+
}>, z.ZodObject<{
|
|
97
|
+
block: z.ZodEnum<{
|
|
98
|
+
medium: "medium";
|
|
99
|
+
none: "none";
|
|
100
|
+
compact: "compact";
|
|
101
|
+
comfortable: "comfortable";
|
|
102
|
+
spacious: "spacious";
|
|
103
|
+
cozy: "cozy";
|
|
104
|
+
}>;
|
|
105
|
+
inline: z.ZodEnum<{
|
|
106
|
+
medium: "medium";
|
|
107
|
+
none: "none";
|
|
108
|
+
compact: "compact";
|
|
109
|
+
comfortable: "comfortable";
|
|
110
|
+
spacious: "spacious";
|
|
111
|
+
cozy: "cozy";
|
|
112
|
+
}>;
|
|
113
|
+
}, z.core.$strip>]>;
|
|
114
|
+
export type CardSpacingValue = z.infer<typeof cardSpacingValueSchema>;
|
|
48
115
|
export declare const gradientDirectionSchema: z.ZodEnum<{
|
|
49
116
|
"to-r": "to-r";
|
|
50
117
|
"to-l": "to-l";
|
|
@@ -59,14 +126,30 @@ export declare const cardVariantRoleSchema: z.ZodEnum<{
|
|
|
59
126
|
default: "default";
|
|
60
127
|
alternative: "alternative";
|
|
61
128
|
}>;
|
|
62
|
-
export declare const
|
|
129
|
+
export declare const surfaceCardRoleSchema: z.ZodEnum<{
|
|
130
|
+
open: "open";
|
|
131
|
+
default: "default";
|
|
132
|
+
alternative: "alternative";
|
|
133
|
+
}>;
|
|
134
|
+
export declare const cardRoleSchema: z.ZodEnum<{
|
|
135
|
+
open: "open";
|
|
63
136
|
default: "default";
|
|
64
137
|
none: "none";
|
|
65
138
|
alternative: "alternative";
|
|
66
139
|
}>;
|
|
67
140
|
export declare function isCardVariantRole(value: unknown): value is CardVariantRole;
|
|
68
141
|
export declare function normalizeCardVariantRole(value: unknown): CardVariantRole | null;
|
|
69
|
-
|
|
142
|
+
/** The one untrusted-input boundary for the closed role vocabulary. */
|
|
143
|
+
export declare function normalizeCardRole(value: unknown): CardRole | null;
|
|
144
|
+
/**
|
|
145
|
+
* Role inference for legacy card systems authored before variants carried a
|
|
146
|
+
* `role`. Priority 1 is the everyday card, priority 2 the statement card —
|
|
147
|
+
* which is how variants are surfaced today. `open` is never inferred: a site
|
|
148
|
+
* style has to opt into it.
|
|
149
|
+
*/
|
|
150
|
+
export declare function inferCardVariantRoleFromPriority(priority: 1 | 2 | 3): SurfaceCardRole | null;
|
|
151
|
+
/** The role a variant implements, explicit or inferred. */
|
|
152
|
+
export declare function cardVariantRole(variant: Pick<CardVariant, 'role' | 'priority'>): SurfaceCardRole | null;
|
|
70
153
|
export declare const cardBackgroundSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
71
154
|
type: z.ZodLiteral<"solid">;
|
|
72
155
|
colorToken: z.ZodString;
|
|
@@ -100,9 +183,17 @@ export declare const cardCornerValueSchema: z.ZodEnum<{
|
|
|
100
183
|
expressive: "expressive";
|
|
101
184
|
}>;
|
|
102
185
|
export type CardCornerValue = z.infer<typeof cardCornerValueSchema>;
|
|
186
|
+
export declare const cardEdgeSchema: z.ZodEnum<{
|
|
187
|
+
left: "left";
|
|
188
|
+
right: "right";
|
|
189
|
+
bottom: "bottom";
|
|
190
|
+
top: "top";
|
|
191
|
+
}>;
|
|
192
|
+
export type CardEdge = z.infer<typeof cardEdgeSchema>;
|
|
103
193
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
194
|
+
* Legacy single accented card edge (e.g. a left accent bar). Persisted and
|
|
195
|
+
* curated data may still carry it; it lifts into a one-element `decorations`
|
|
196
|
+
* list at the parse boundary and has no representation after that.
|
|
106
197
|
*/
|
|
107
198
|
export declare const cardAccentEdgeSchema: z.ZodObject<{
|
|
108
199
|
edge: z.ZodEnum<{
|
|
@@ -120,6 +211,113 @@ export declare const cardAccentEdgeSchema: z.ZodObject<{
|
|
|
120
211
|
}>;
|
|
121
212
|
}, z.core.$strip>;
|
|
122
213
|
export type CardAccentEdge = z.infer<typeof cardAccentEdgeSchema>;
|
|
214
|
+
/** `hairline` (1px) is the widening the boxless `open` role needs. */
|
|
215
|
+
export declare const cardEdgeRuleWidthSchema: z.ZodEnum<{
|
|
216
|
+
medium: "medium";
|
|
217
|
+
thin: "thin";
|
|
218
|
+
thick: "thick";
|
|
219
|
+
hairline: "hairline";
|
|
220
|
+
heavy: "heavy";
|
|
221
|
+
}>;
|
|
222
|
+
export type CardEdgeRuleWidth = z.infer<typeof cardEdgeRuleWidthSchema>;
|
|
223
|
+
export declare const cardEdgeRuleLengthSchema: z.ZodEnum<{
|
|
224
|
+
short: "short";
|
|
225
|
+
full: "full";
|
|
226
|
+
}>;
|
|
227
|
+
export declare const cardEdgeRuleAlignSchema: z.ZodEnum<{
|
|
228
|
+
center: "center";
|
|
229
|
+
end: "end";
|
|
230
|
+
start: "start";
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* A rule drawn along one card edge. `full` renders as a border side; `short`
|
|
234
|
+
* renders as a pseudo-element of a fixed length, which is how a hairline and a
|
|
235
|
+
* brand accent coexist on the same edge (the `open` role's treatment).
|
|
236
|
+
*/
|
|
237
|
+
export declare const cardEdgeRuleSchema: z.ZodObject<{
|
|
238
|
+
edge: z.ZodEnum<{
|
|
239
|
+
left: "left";
|
|
240
|
+
right: "right";
|
|
241
|
+
bottom: "bottom";
|
|
242
|
+
top: "top";
|
|
243
|
+
}>;
|
|
244
|
+
colorToken: z.ZodString;
|
|
245
|
+
width: z.ZodEnum<{
|
|
246
|
+
medium: "medium";
|
|
247
|
+
thin: "thin";
|
|
248
|
+
thick: "thick";
|
|
249
|
+
hairline: "hairline";
|
|
250
|
+
heavy: "heavy";
|
|
251
|
+
}>;
|
|
252
|
+
length: z.ZodOptional<z.ZodEnum<{
|
|
253
|
+
short: "short";
|
|
254
|
+
full: "full";
|
|
255
|
+
}>>;
|
|
256
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
257
|
+
center: "center";
|
|
258
|
+
end: "end";
|
|
259
|
+
start: "start";
|
|
260
|
+
}>>;
|
|
261
|
+
alpha: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export type CardEdgeRule = z.infer<typeof cardEdgeRuleSchema>;
|
|
264
|
+
/**
|
|
265
|
+
* Decorations are edge rules today. The alias exists so the list can grow into
|
|
266
|
+
* a discriminated union without every call site changing.
|
|
267
|
+
*/
|
|
268
|
+
export declare const cardDecorationSchema: z.ZodObject<{
|
|
269
|
+
edge: z.ZodEnum<{
|
|
270
|
+
left: "left";
|
|
271
|
+
right: "right";
|
|
272
|
+
bottom: "bottom";
|
|
273
|
+
top: "top";
|
|
274
|
+
}>;
|
|
275
|
+
colorToken: z.ZodString;
|
|
276
|
+
width: z.ZodEnum<{
|
|
277
|
+
medium: "medium";
|
|
278
|
+
thin: "thin";
|
|
279
|
+
thick: "thick";
|
|
280
|
+
hairline: "hairline";
|
|
281
|
+
heavy: "heavy";
|
|
282
|
+
}>;
|
|
283
|
+
length: z.ZodOptional<z.ZodEnum<{
|
|
284
|
+
short: "short";
|
|
285
|
+
full: "full";
|
|
286
|
+
}>>;
|
|
287
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
288
|
+
center: "center";
|
|
289
|
+
end: "end";
|
|
290
|
+
start: "start";
|
|
291
|
+
}>>;
|
|
292
|
+
alpha: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
export type CardDecoration = CardEdgeRule;
|
|
295
|
+
export declare const cardDecorationsSchema: z.ZodArray<z.ZodObject<{
|
|
296
|
+
edge: z.ZodEnum<{
|
|
297
|
+
left: "left";
|
|
298
|
+
right: "right";
|
|
299
|
+
bottom: "bottom";
|
|
300
|
+
top: "top";
|
|
301
|
+
}>;
|
|
302
|
+
colorToken: z.ZodString;
|
|
303
|
+
width: z.ZodEnum<{
|
|
304
|
+
medium: "medium";
|
|
305
|
+
thin: "thin";
|
|
306
|
+
thick: "thick";
|
|
307
|
+
hairline: "hairline";
|
|
308
|
+
heavy: "heavy";
|
|
309
|
+
}>;
|
|
310
|
+
length: z.ZodOptional<z.ZodEnum<{
|
|
311
|
+
short: "short";
|
|
312
|
+
full: "full";
|
|
313
|
+
}>>;
|
|
314
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
center: "center";
|
|
316
|
+
end: "end";
|
|
317
|
+
start: "start";
|
|
318
|
+
}>>;
|
|
319
|
+
alpha: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
}, z.core.$strip>>;
|
|
123
321
|
export declare const cardCornerRadiiSchema: z.ZodObject<{
|
|
124
322
|
topLeft: z.ZodOptional<z.ZodEnum<{
|
|
125
323
|
soft: "soft";
|
|
@@ -151,11 +349,16 @@ export declare const cardCornerRadiiSchema: z.ZodObject<{
|
|
|
151
349
|
}>>;
|
|
152
350
|
}, z.core.$strip>;
|
|
153
351
|
export type CardCornerRadii = z.infer<typeof cardCornerRadiiSchema>;
|
|
154
|
-
export declare const cardVariantSchema: z.ZodObject<{
|
|
352
|
+
export declare const cardVariantSchema: z.ZodPipe<z.ZodObject<{
|
|
155
353
|
id: z.ZodString;
|
|
156
354
|
name: z.ZodString;
|
|
157
355
|
enabled: z.ZodBoolean;
|
|
158
356
|
priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
357
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
358
|
+
open: "open";
|
|
359
|
+
default: "default";
|
|
360
|
+
alternative: "alternative";
|
|
361
|
+
}>>;
|
|
159
362
|
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
160
363
|
type: z.ZodLiteral<"solid">;
|
|
161
364
|
colorToken: z.ZodString;
|
|
@@ -176,14 +379,49 @@ export declare const cardVariantSchema: z.ZodObject<{
|
|
|
176
379
|
}, z.core.$strip>, z.ZodObject<{
|
|
177
380
|
type: z.ZodLiteral<"transparent">;
|
|
178
381
|
}, z.core.$strip>], "type">;
|
|
179
|
-
spacing: z.ZodEnum<{
|
|
382
|
+
spacing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
180
383
|
medium: "medium";
|
|
181
384
|
none: "none";
|
|
182
385
|
compact: "compact";
|
|
183
386
|
comfortable: "comfortable";
|
|
184
387
|
spacious: "spacious";
|
|
185
388
|
cozy: "cozy";
|
|
186
|
-
}
|
|
389
|
+
}>, z.ZodObject<{
|
|
390
|
+
block: z.ZodEnum<{
|
|
391
|
+
medium: "medium";
|
|
392
|
+
none: "none";
|
|
393
|
+
compact: "compact";
|
|
394
|
+
comfortable: "comfortable";
|
|
395
|
+
spacious: "spacious";
|
|
396
|
+
cozy: "cozy";
|
|
397
|
+
}>;
|
|
398
|
+
inline: z.ZodEnum<{
|
|
399
|
+
medium: "medium";
|
|
400
|
+
none: "none";
|
|
401
|
+
compact: "compact";
|
|
402
|
+
comfortable: "comfortable";
|
|
403
|
+
spacious: "spacious";
|
|
404
|
+
cozy: "cozy";
|
|
405
|
+
}>;
|
|
406
|
+
}, z.core.$strip>]>;
|
|
407
|
+
spacingAxes: z.ZodOptional<z.ZodObject<{
|
|
408
|
+
block: z.ZodEnum<{
|
|
409
|
+
medium: "medium";
|
|
410
|
+
none: "none";
|
|
411
|
+
compact: "compact";
|
|
412
|
+
comfortable: "comfortable";
|
|
413
|
+
spacious: "spacious";
|
|
414
|
+
cozy: "cozy";
|
|
415
|
+
}>;
|
|
416
|
+
inline: z.ZodEnum<{
|
|
417
|
+
medium: "medium";
|
|
418
|
+
none: "none";
|
|
419
|
+
compact: "compact";
|
|
420
|
+
comfortable: "comfortable";
|
|
421
|
+
spacious: "spacious";
|
|
422
|
+
cozy: "cozy";
|
|
423
|
+
}>;
|
|
424
|
+
}, z.core.$strip>>;
|
|
187
425
|
foregroundToken: z.ZodOptional<z.ZodString>;
|
|
188
426
|
shadow: z.ZodOptional<z.ZodObject<{
|
|
189
427
|
elevation: z.ZodEnum<{
|
|
@@ -242,6 +480,32 @@ export declare const cardVariantSchema: z.ZodObject<{
|
|
|
242
480
|
widthClass: z.ZodString;
|
|
243
481
|
colorToken: z.ZodString;
|
|
244
482
|
}, z.core.$strip>>;
|
|
483
|
+
decorations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
484
|
+
edge: z.ZodEnum<{
|
|
485
|
+
left: "left";
|
|
486
|
+
right: "right";
|
|
487
|
+
bottom: "bottom";
|
|
488
|
+
top: "top";
|
|
489
|
+
}>;
|
|
490
|
+
colorToken: z.ZodString;
|
|
491
|
+
width: z.ZodEnum<{
|
|
492
|
+
medium: "medium";
|
|
493
|
+
thin: "thin";
|
|
494
|
+
thick: "thick";
|
|
495
|
+
hairline: "hairline";
|
|
496
|
+
heavy: "heavy";
|
|
497
|
+
}>;
|
|
498
|
+
length: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
short: "short";
|
|
500
|
+
full: "full";
|
|
501
|
+
}>>;
|
|
502
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
503
|
+
center: "center";
|
|
504
|
+
end: "end";
|
|
505
|
+
start: "start";
|
|
506
|
+
}>>;
|
|
507
|
+
alpha: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
}, z.core.$strip>>>;
|
|
245
509
|
accentEdge: z.ZodOptional<z.ZodObject<{
|
|
246
510
|
edge: z.ZodEnum<{
|
|
247
511
|
left: "left";
|
|
@@ -257,13 +521,73 @@ export declare const cardVariantSchema: z.ZodObject<{
|
|
|
257
521
|
heavy: "heavy";
|
|
258
522
|
}>;
|
|
259
523
|
}, z.core.$strip>>;
|
|
260
|
-
}, z.core.$strip
|
|
261
|
-
|
|
262
|
-
|
|
524
|
+
}, z.core.$strip>, z.ZodTransform<CardVariant, {
|
|
525
|
+
id: string;
|
|
526
|
+
name: string;
|
|
527
|
+
enabled: boolean;
|
|
528
|
+
priority: 1 | 3 | 2;
|
|
529
|
+
background: {
|
|
530
|
+
type: "solid";
|
|
531
|
+
colorToken: string;
|
|
532
|
+
} | {
|
|
533
|
+
type: "gradient";
|
|
534
|
+
fromToken: string;
|
|
535
|
+
toToken: string;
|
|
536
|
+
direction: "to-r" | "to-l" | "to-t" | "to-b" | "to-tr" | "to-tl" | "to-br" | "to-bl";
|
|
537
|
+
} | {
|
|
538
|
+
type: "transparent";
|
|
539
|
+
};
|
|
540
|
+
spacing: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy" | {
|
|
541
|
+
block: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
|
|
542
|
+
inline: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
|
|
543
|
+
};
|
|
544
|
+
role?: "open" | "default" | "alternative" | undefined;
|
|
545
|
+
spacingAxes?: {
|
|
546
|
+
block: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
|
|
547
|
+
inline: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
|
|
548
|
+
} | undefined;
|
|
549
|
+
foregroundToken?: string | undefined;
|
|
550
|
+
shadow?: {
|
|
551
|
+
elevation: "medium" | "none" | "high" | "low";
|
|
552
|
+
softness: "crisp" | "soft" | "hard" | null;
|
|
553
|
+
position: "bottom" | "bottom-right";
|
|
554
|
+
} | undefined;
|
|
555
|
+
corners?: "soft" | "square" | "rounded" | "pill" | undefined;
|
|
556
|
+
cornerRadii?: {
|
|
557
|
+
topLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
|
|
558
|
+
topRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
|
|
559
|
+
bottomLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
|
|
560
|
+
bottomRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
|
|
561
|
+
} | undefined;
|
|
562
|
+
border?: {
|
|
563
|
+
widthClass: string;
|
|
564
|
+
colorToken: string;
|
|
565
|
+
} | undefined;
|
|
566
|
+
decorations?: {
|
|
567
|
+
edge: "left" | "right" | "bottom" | "top";
|
|
568
|
+
colorToken: string;
|
|
569
|
+
width: "medium" | "thin" | "thick" | "hairline" | "heavy";
|
|
570
|
+
length?: "short" | "full" | undefined;
|
|
571
|
+
align?: "center" | "end" | "start" | undefined;
|
|
572
|
+
alpha?: number | undefined;
|
|
573
|
+
}[] | undefined;
|
|
574
|
+
accentEdge?: {
|
|
575
|
+
edge: "left" | "right" | "bottom" | "top";
|
|
576
|
+
colorToken: string;
|
|
577
|
+
width: "medium" | "thin" | "thick" | "heavy";
|
|
578
|
+
} | undefined;
|
|
579
|
+
}>>;
|
|
580
|
+
export declare const cardSystemSchema: z.ZodPipe<z.ZodObject<{
|
|
581
|
+
variants: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
263
582
|
id: z.ZodString;
|
|
264
583
|
name: z.ZodString;
|
|
265
584
|
enabled: z.ZodBoolean;
|
|
266
585
|
priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
586
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
587
|
+
open: "open";
|
|
588
|
+
default: "default";
|
|
589
|
+
alternative: "alternative";
|
|
590
|
+
}>>;
|
|
267
591
|
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
268
592
|
type: z.ZodLiteral<"solid">;
|
|
269
593
|
colorToken: z.ZodString;
|
|
@@ -284,14 +608,49 @@ export declare const cardSystemSchema: z.ZodObject<{
|
|
|
284
608
|
}, z.core.$strip>, z.ZodObject<{
|
|
285
609
|
type: z.ZodLiteral<"transparent">;
|
|
286
610
|
}, z.core.$strip>], "type">;
|
|
287
|
-
spacing: z.ZodEnum<{
|
|
611
|
+
spacing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
288
612
|
medium: "medium";
|
|
289
613
|
none: "none";
|
|
290
614
|
compact: "compact";
|
|
291
615
|
comfortable: "comfortable";
|
|
292
616
|
spacious: "spacious";
|
|
293
617
|
cozy: "cozy";
|
|
294
|
-
}
|
|
618
|
+
}>, z.ZodObject<{
|
|
619
|
+
block: z.ZodEnum<{
|
|
620
|
+
medium: "medium";
|
|
621
|
+
none: "none";
|
|
622
|
+
compact: "compact";
|
|
623
|
+
comfortable: "comfortable";
|
|
624
|
+
spacious: "spacious";
|
|
625
|
+
cozy: "cozy";
|
|
626
|
+
}>;
|
|
627
|
+
inline: z.ZodEnum<{
|
|
628
|
+
medium: "medium";
|
|
629
|
+
none: "none";
|
|
630
|
+
compact: "compact";
|
|
631
|
+
comfortable: "comfortable";
|
|
632
|
+
spacious: "spacious";
|
|
633
|
+
cozy: "cozy";
|
|
634
|
+
}>;
|
|
635
|
+
}, z.core.$strip>]>;
|
|
636
|
+
spacingAxes: z.ZodOptional<z.ZodObject<{
|
|
637
|
+
block: z.ZodEnum<{
|
|
638
|
+
medium: "medium";
|
|
639
|
+
none: "none";
|
|
640
|
+
compact: "compact";
|
|
641
|
+
comfortable: "comfortable";
|
|
642
|
+
spacious: "spacious";
|
|
643
|
+
cozy: "cozy";
|
|
644
|
+
}>;
|
|
645
|
+
inline: z.ZodEnum<{
|
|
646
|
+
medium: "medium";
|
|
647
|
+
none: "none";
|
|
648
|
+
compact: "compact";
|
|
649
|
+
comfortable: "comfortable";
|
|
650
|
+
spacious: "spacious";
|
|
651
|
+
cozy: "cozy";
|
|
652
|
+
}>;
|
|
653
|
+
}, z.core.$strip>>;
|
|
295
654
|
foregroundToken: z.ZodOptional<z.ZodString>;
|
|
296
655
|
shadow: z.ZodOptional<z.ZodObject<{
|
|
297
656
|
elevation: z.ZodEnum<{
|
|
@@ -350,6 +709,32 @@ export declare const cardSystemSchema: z.ZodObject<{
|
|
|
350
709
|
widthClass: z.ZodString;
|
|
351
710
|
colorToken: z.ZodString;
|
|
352
711
|
}, z.core.$strip>>;
|
|
712
|
+
decorations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
713
|
+
edge: z.ZodEnum<{
|
|
714
|
+
left: "left";
|
|
715
|
+
right: "right";
|
|
716
|
+
bottom: "bottom";
|
|
717
|
+
top: "top";
|
|
718
|
+
}>;
|
|
719
|
+
colorToken: z.ZodString;
|
|
720
|
+
width: z.ZodEnum<{
|
|
721
|
+
medium: "medium";
|
|
722
|
+
thin: "thin";
|
|
723
|
+
thick: "thick";
|
|
724
|
+
hairline: "hairline";
|
|
725
|
+
heavy: "heavy";
|
|
726
|
+
}>;
|
|
727
|
+
length: z.ZodOptional<z.ZodEnum<{
|
|
728
|
+
short: "short";
|
|
729
|
+
full: "full";
|
|
730
|
+
}>>;
|
|
731
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
732
|
+
center: "center";
|
|
733
|
+
end: "end";
|
|
734
|
+
start: "start";
|
|
735
|
+
}>>;
|
|
736
|
+
alpha: z.ZodOptional<z.ZodNumber>;
|
|
737
|
+
}, z.core.$strip>>>;
|
|
353
738
|
accentEdge: z.ZodOptional<z.ZodObject<{
|
|
354
739
|
edge: z.ZodEnum<{
|
|
355
740
|
left: "left";
|
|
@@ -365,22 +750,83 @@ export declare const cardSystemSchema: z.ZodObject<{
|
|
|
365
750
|
heavy: "heavy";
|
|
366
751
|
}>;
|
|
367
752
|
}, z.core.$strip>>;
|
|
368
|
-
}, z.core.$strip
|
|
369
|
-
|
|
370
|
-
|
|
753
|
+
}, z.core.$strip>, z.ZodTransform<CardVariant, {
|
|
754
|
+
id: string;
|
|
755
|
+
name: string;
|
|
756
|
+
enabled: boolean;
|
|
757
|
+
priority: 1 | 3 | 2;
|
|
758
|
+
background: {
|
|
759
|
+
type: "solid";
|
|
760
|
+
colorToken: string;
|
|
761
|
+
} | {
|
|
762
|
+
type: "gradient";
|
|
763
|
+
fromToken: string;
|
|
764
|
+
toToken: string;
|
|
765
|
+
direction: "to-r" | "to-l" | "to-t" | "to-b" | "to-tr" | "to-tl" | "to-br" | "to-bl";
|
|
766
|
+
} | {
|
|
767
|
+
type: "transparent";
|
|
768
|
+
};
|
|
769
|
+
spacing: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy" | {
|
|
770
|
+
block: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
|
|
771
|
+
inline: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
|
|
772
|
+
};
|
|
773
|
+
role?: "open" | "default" | "alternative" | undefined;
|
|
774
|
+
spacingAxes?: {
|
|
775
|
+
block: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
|
|
776
|
+
inline: "medium" | "none" | "compact" | "comfortable" | "spacious" | "cozy";
|
|
777
|
+
} | undefined;
|
|
778
|
+
foregroundToken?: string | undefined;
|
|
779
|
+
shadow?: {
|
|
780
|
+
elevation: "medium" | "none" | "high" | "low";
|
|
781
|
+
softness: "crisp" | "soft" | "hard" | null;
|
|
782
|
+
position: "bottom" | "bottom-right";
|
|
783
|
+
} | undefined;
|
|
784
|
+
corners?: "soft" | "square" | "rounded" | "pill" | undefined;
|
|
785
|
+
cornerRadii?: {
|
|
786
|
+
topLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
|
|
787
|
+
topRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
|
|
788
|
+
bottomLeft?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
|
|
789
|
+
bottomRight?: "soft" | "square" | "rounded" | "pill" | "expressive" | undefined;
|
|
790
|
+
} | undefined;
|
|
791
|
+
border?: {
|
|
792
|
+
widthClass: string;
|
|
793
|
+
colorToken: string;
|
|
794
|
+
} | undefined;
|
|
795
|
+
decorations?: {
|
|
796
|
+
edge: "left" | "right" | "bottom" | "top";
|
|
797
|
+
colorToken: string;
|
|
798
|
+
width: "medium" | "thin" | "thick" | "hairline" | "heavy";
|
|
799
|
+
length?: "short" | "full" | undefined;
|
|
800
|
+
align?: "center" | "end" | "start" | undefined;
|
|
801
|
+
alpha?: number | undefined;
|
|
802
|
+
}[] | undefined;
|
|
803
|
+
accentEdge?: {
|
|
804
|
+
edge: "left" | "right" | "bottom" | "top";
|
|
805
|
+
colorToken: string;
|
|
806
|
+
width: "medium" | "thin" | "thick" | "heavy";
|
|
807
|
+
} | undefined;
|
|
808
|
+
}>>>;
|
|
809
|
+
}, z.core.$strip>, z.ZodTransform<CardSystem, {
|
|
810
|
+
variants: CardVariant[];
|
|
811
|
+
}>>;
|
|
812
|
+
export type CardVariant = {
|
|
371
813
|
id: string;
|
|
372
814
|
name: string;
|
|
373
815
|
enabled: boolean;
|
|
374
816
|
priority: 1 | 2 | 3;
|
|
817
|
+
/** Falls back to `priority`-based inference when absent. */
|
|
818
|
+
role?: SurfaceCardRole;
|
|
375
819
|
background: CardBackground;
|
|
376
|
-
|
|
820
|
+
/** One value for both axes, or one per axis. */
|
|
821
|
+
spacing: CardSpacingValue;
|
|
377
822
|
foregroundToken?: string;
|
|
378
823
|
shadow?: Shadow;
|
|
379
824
|
corners?: 'square' | 'soft' | 'rounded' | 'pill';
|
|
380
825
|
cornerRadii?: CardCornerRadii;
|
|
381
826
|
border?: CardBorder;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
827
|
+
/** Edge rules drawn on the card. At most two. */
|
|
828
|
+
decorations?: CardDecoration[];
|
|
829
|
+
};
|
|
830
|
+
export type CardSystem = {
|
|
385
831
|
variants: CardVariant[];
|
|
386
|
-
}
|
|
832
|
+
};
|