@riverbankcms/sdk 0.108.0 → 0.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/dist/{PreviewEditorSidebar-BBT-kZAM.mjs → PreviewEditorSidebar-CTR6LUhN.mjs} +181 -135
- package/dist/{PreviewEditorUI-D69xNKT2.mjs → PreviewEditorUI-DZg15Zip.mjs} +3 -4
- package/dist/{PreviewQueryProvider-RRu7wyQ5.mjs → PreviewQueryProvider-kkmjklLG.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CuDjXH6o.mjs → SdkPreviewModeRuntime-DeOTAFvR.mjs} +436 -367
- package/dist/{SiteChromeCustomizeContext-BQUY2dEk.mjs → SiteChromeCustomizeContext-DOSDLCiJ.mjs} +3442 -3029
- package/dist/_dts/ai/src/contracts/proposals.d.ts +12633 -10490
- package/dist/_dts/api/src/bookingAdjustments.d.ts +5 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +2 -17
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +6 -6
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/common/envelope.d.ts +7 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +4 -1
- package/dist/_dts/api/src/courses.d.ts +31 -15
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/endpoints.d.ts +49 -4
- package/dist/_dts/api/src/index.d.ts +3 -3
- package/dist/_dts/api/src/participantMessaging.d.ts +18 -12
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +259 -1
- package/dist/_dts/api/src/siteInfrastructure.d.ts +13 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +6 -6
- package/dist/_dts/api/src/siteOperations.d.ts +11 -19
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +29 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +37 -31
- package/dist/_dts/api/src/webhooks.d.ts +98 -1
- package/dist/_dts/billing/src/site-arrangements.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientField.d.ts +9 -0
- package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +3 -4
- package/dist/_dts/blocks/src/client/course-registration.d.ts +4 -1
- package/dist/_dts/blocks/src/client.d.ts +4 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +8 -8
- package/dist/_dts/blocks/src/index.d.ts +4 -2
- package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +3 -23
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +5 -4
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +3 -23
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/recurring-schedule.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +5 -1
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +5 -1
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/single-button.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +3 -0
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +35 -0
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +16 -6
- package/dist/_dts/blocks/src/system/defineBlock.d.ts +9 -1
- package/dist/_dts/blocks/src/system/fields/button.d.ts +10 -21
- package/dist/_dts/blocks/src/system/fields/ctas.d.ts +10 -1
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +9 -5
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -24
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -12
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/buttonAffordance.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/ErrorStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +326 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.planning.d.ts +27 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/file-download.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +7 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.types.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +2 -1
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +4 -2
- package/dist/_dts/content-editor/src/index.d.ts +12 -12
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +17 -2
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +31 -0
- package/dist/_dts/content-model/src/content-types/scaffold.d.ts +58 -0
- package/dist/_dts/content-model/src/content-types/sentinels.d.ts +36 -0
- package/dist/_dts/content-model/src/index.d.ts +3 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +8 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3278 -3196
- package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +3 -2
- package/dist/_dts/media-core/src/fileMimeDetection.d.ts +16 -0
- package/dist/_dts/media-core/src/fileStorage.d.ts +8 -0
- package/dist/_dts/media-core/src/storagePathDomain.d.ts +2 -0
- package/dist/_dts/media-core/src/uploadVerificationContract.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/ButtonStylePicker.d.ts +16 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewDesignOpenRequestContext.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +5 -11
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +5 -6
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +7 -9
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +4 -11
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -7
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +0 -8
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +1 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +1 -5
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +3 -5
- package/dist/_dts/sdk/src/bookings/index.d.ts +5 -4
- package/dist/_dts/sdk/src/bookings/types.d.ts +3 -3
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +18 -0
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +15 -0
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +12 -1
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +3 -2
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/helpers.d.ts +22 -1
- package/dist/_dts/sdk/src/cli/index.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/output.d.ts +88 -0
- package/dist/_dts/sdk/src/cli/program.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +10 -0
- package/dist/_dts/sdk/src/client/management/http.d.ts +7 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +45 -20
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +12 -15
- package/dist/_dts/sdk/src/date-time/index.d.ts +68 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
- package/dist/_dts/sdk/src/webhooks/verify.d.ts +3 -3
- package/dist/_dts/site-commands/src/commands.d.ts +1010 -817
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/core.d.ts +15 -46
- package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +147 -0
- package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +2 -3
- package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/index.d.ts +2 -1
- package/dist/_dts/theme-core/src/buttons/presets.d.ts +4 -25
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +100 -0
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +16 -0
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +80 -0
- package/dist/_dts/theme-core/src/buttons/styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/defineStaticButtonStyleRecipe.d.ts +49 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +67 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +649 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +753 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +69 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +101 -83
- package/dist/_dts/theme-core/src/cards/types.d.ts +16 -16
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/presets.d.ts +200 -8
- package/dist/_dts/theme-core/src/gradients/utils.d.ts +6 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +87 -126
- package/dist/_dts/theme-core/src/mock-themes/modern-minimal.d.ts +1 -1
- package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -2
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +5 -8
- package/dist/_dts/theme-core/src/palette/index.d.ts +0 -1
- package/dist/_dts/theme-core/src/schema.d.ts +112 -138
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +26 -24
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +10 -10
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +19 -153
- package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +13 -6
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +8 -9
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +33 -12
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +2 -2
- package/dist/_dts/ui/src/palette/hex.d.ts +3 -3
- package/dist/cli/index.mjs +68396 -67339
- package/dist/cli/init-docs/content/cli-reference.md +50 -7
- package/dist/cli/init-docs/content/content-management.md +7 -4
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +1 -1
- package/dist/cli/init-docs/content/workflow-publish.md +5 -1
- package/dist/client/{DiscountCodeDisclosure-D6TOf6Hi.mjs → DiscountCodeDisclosure-C4xvTBux.mjs} +1 -1
- package/dist/client/{EventCombined.client-Dao3zxRk.mjs → EventCombined.client-Cr7G131j.mjs} +2 -3
- package/dist/client/{EventListing.client-B2NNt4y1.mjs → EventListing.client-CAjbseNy.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BhwFo16w.mjs → LeafletStaticMap-BMlWfwz3.mjs} +1 -1
- package/dist/client/{MagicLinkForm-BWnB7cMR.mjs → MagicLinkForm-ChdFz96y.mjs} +1 -2
- package/dist/client/{StepIndicator-TzRiQ0BY.mjs → StepIndicator-7D3GaBeM.mjs} +2 -2
- package/dist/client/{accordion-BPy-AJ4_.mjs → accordion-D8JTs2Si.mjs} +1 -1
- package/dist/client/{bookingForm-BL4PGZds.mjs → bookingForm-H3DCRBHs.mjs} +6 -7
- package/dist/client/bookings.mjs +4649 -2767
- package/dist/client/{carousel-C2b7Cn9-.mjs → carousel-DMr_QWlz.mjs} +1 -1
- package/dist/client/{cart-BQcbXIVD.mjs → cart-DWMbfBdR.mjs} +3 -3
- package/dist/client/{checkout-DEmpGRJu.mjs → checkout-zmfdkXLx.mjs} +3 -3
- package/dist/client/client.mjs +3195 -2488
- package/dist/client/{colorStyles-jZS6KfkP.mjs → colorStyles-gcTh5yZT.mjs} +2 -41
- package/dist/client/{colorTokenParts-CMugwvX_.mjs → colorTokenParts-FSS3al6l.mjs} +31 -1
- package/dist/client/{courseRegistration-BqRZPmsq.mjs → courseRegistration-Z_mn18jy.mjs} +100 -37
- package/dist/client/{eventCalendar-B8N_tSl5.mjs → eventCalendar-CYp0YJGF.mjs} +4 -5
- package/dist/client/{eventCombined-Gjn6gtq7.mjs → eventCombined-rKyYZUa9.mjs} +2 -2
- package/dist/client/{eventDetails-M-VCxA-r.mjs → eventDetails-X0ZaUuMj.mjs} +3 -3
- package/dist/client/{eventListing-DR19hqYi.mjs → eventListing-W1SuL7EP.mjs} +2 -2
- package/dist/client/{eventRegistration-BR02a0k3.mjs → eventRegistration-ClWricui.mjs} +6 -7
- package/dist/client/{form-LY2xIbwg.mjs → form--eKPwAAD.mjs} +1 -2
- package/dist/client/{headerSection-CYwwXJfh.mjs → headerSection-BSeGr-FS.mjs} +2 -3
- package/dist/client/hooks.mjs +2169 -2093
- package/dist/client/{locationMap-DWnBXrFq.mjs → locationMap-BpOrtNYn.mjs} +8 -5
- package/dist/client/{media-DHtSxS5V.mjs → media-DoF0dcVx.mjs} +4 -3
- package/dist/client/{newsletterForm-D9s-fQ2P.mjs → newsletterForm-Bt7it7Dy.mjs} +1 -2
- package/dist/client/{pricing-DDq80oYc.mjs → pricing-BTjSDDr4.mjs} +1 -1
- package/dist/client/{productDetail-B0SbWd45.mjs → productDetail-ICnVTcCg.mjs} +3 -3
- package/dist/client/{productList-PwYlZn0y.mjs → productList-ZHr6D604.mjs} +3 -3
- package/dist/client/{propsDecoder-BRWBiH7i.mjs → propsDecoder-wWN0tBDF.mjs} +2484 -223
- package/dist/client/rendering/client.mjs +2532 -2144
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +3322 -2462
- package/dist/client/{shop-CMwZPYME.mjs → shop-C1u_BUn0.mjs} +5 -6
- package/dist/client/{shop-commerce-BuxsFate.mjs → shop-commerce-CleZdRha.mjs} +5 -6
- package/dist/client/{shop-commerce-store-boYlEJ91.mjs → shop-commerce-store-ycnoB2Ce.mjs} +1 -1
- package/dist/client/{shopShared-D2naaOes.mjs → shopShared-CPhByt2a.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-D9RHpVoj.mjs → useDiscountCodeUi-cStSQI6C.mjs} +1 -1
- package/dist/client/{useEventFilters-igGiK1re.mjs → useEventFilters-DKPN7hSY.mjs} +46 -70
- package/dist/client/{usePolling-CI7MbsFB.mjs → usePolling-BKAd6pkZ.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +72 -6
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +72 -6
- package/dist/{previewAuthStore-a_cBD28m.mjs → previewAuthStore-BkT1D06A.mjs} +72 -6
- package/dist/{sdk-runtime-MBzD-GmP.mjs → sdk-runtime-hu3wr3ng.mjs} +2 -2
- package/dist/{separator-5ahRBC85.mjs → separator-Bln8izQ9.mjs} +1 -1
- package/dist/server/components.mjs +3123 -2391
- package/dist/server/config-validation.mjs +2169 -2093
- package/dist/server/config.mjs +2169 -2093
- package/dist/server/data.mjs +2169 -2093
- package/dist/server/date-time.mjs +386 -0
- package/dist/server/index.mjs +73 -7
- package/dist/server/next/revalidate.mjs +53 -1
- package/dist/server/next.mjs +3195 -2397
- package/dist/server/page-converter.mjs +2192 -1945
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2844 -2325
- package/dist/server/rendering.mjs +3123 -2391
- package/dist/server/routing.mjs +2269 -2149
- package/dist/server/server.mjs +2244 -2102
- package/dist/server/theme-bridge.mjs +2720 -1887
- package/dist/server/theme.mjs +1669 -1322
- package/dist/server/webhooks.mjs +54 -2
- package/dist/styles/index.css +5 -0
- package/package.json +7 -1
- package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/earth-pill.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/flat-ink.d.ts +0 -20
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +0 -172
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/joy-stamp.d.ts +0 -22
- package/dist/_dts/theme-core/src/buttons/personalities/ornate-ritual.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/quiet-arrow.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +0 -16
- package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +0 -17
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +0 -273
- package/dist/_dts/theme-core/src/buttons/presets/types.d.ts +0 -88
- package/dist/_dts/theme-core/src/buttons/utils/contrast.d.ts +0 -38
- package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +0 -57
- package/dist/client/buttons-EBjyslaX.mjs +0 -1852
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
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
|
+
export type ButtonStyleId = (typeof BUTTON_STYLE_IDS)[number];
|
|
4
|
+
export declare const quietArrowParametersSchema: z.ZodObject<{
|
|
5
|
+
secondaryTreatment: z.ZodEnum<{
|
|
6
|
+
outlined: "outlined";
|
|
7
|
+
"solid-accent": "solid-accent";
|
|
8
|
+
}>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export type QuietArrowParameters = z.infer<typeof quietArrowParametersSchema>;
|
|
11
|
+
export declare const buttonStyleSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
|
+
styleId: z.ZodLiteral<"soft-pill">;
|
|
13
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
14
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15
|
+
styleId: z.ZodLiteral<"earth-pill">;
|
|
16
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
styleId: z.ZodLiteral<"confident-chip">;
|
|
19
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
styleId: z.ZodLiteral<"editorial-link">;
|
|
22
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
23
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
24
|
+
styleId: z.ZodLiteral<"pebble">;
|
|
25
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
26
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
|
+
styleId: z.ZodLiteral<"ink-stamp">;
|
|
28
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
29
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30
|
+
styleId: z.ZodLiteral<"flat-ink">;
|
|
31
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
32
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
33
|
+
styleId: z.ZodLiteral<"brushed-wash">;
|
|
34
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
35
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
+
styleId: z.ZodLiteral<"showtime-pill">;
|
|
37
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
styleId: z.ZodLiteral<"joy-stamp">;
|
|
40
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
styleId: z.ZodLiteral<"ornate-ritual">;
|
|
43
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
styleId: z.ZodLiteral<"quiet-arrow">;
|
|
46
|
+
parameters: z.ZodObject<{
|
|
47
|
+
secondaryTreatment: z.ZodEnum<{
|
|
48
|
+
outlined: "outlined";
|
|
49
|
+
"solid-accent": "solid-accent";
|
|
50
|
+
}>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
}, z.core.$strict>], "styleId">;
|
|
53
|
+
export type ButtonStyleSelection = z.infer<typeof buttonStyleSelectionSchema>;
|
|
54
|
+
export type ButtonStyleSelectionFor<TStyleId extends ButtonStyleId> = Extract<ButtonStyleSelection, Readonly<{
|
|
55
|
+
styleId: TStyleId;
|
|
56
|
+
}>>;
|
|
57
|
+
export declare const DEFAULT_BUTTON_STYLE_SELECTION: {
|
|
58
|
+
readonly styleId: "soft-pill";
|
|
59
|
+
readonly parameters: {};
|
|
60
|
+
};
|
|
61
|
+
export declare function createDefaultButtonStyleSelection(styleId: ButtonStyleId): ButtonStyleSelection;
|
|
62
|
+
export declare function isButtonStyleId(value: string): value is ButtonStyleId;
|
|
63
|
+
/**
|
|
64
|
+
* Stable identity for a validated style selection. Parsing first canonicalises
|
|
65
|
+
* parameter key order, so future recipe parameters do not require editor-core
|
|
66
|
+
* equality or key logic.
|
|
67
|
+
*/
|
|
68
|
+
export declare function buttonStyleSelectionKey(selection: ButtonStyleSelection): string;
|
|
69
|
+
export declare function buttonStyleSelectionsEqual(a: ButtonStyleSelection, b: ButtonStyleSelection): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { type ThemeColorToken } from '../tokens/themeColorTokens';
|
|
2
3
|
/**
|
|
3
4
|
* Button System Types and Schemas
|
|
4
5
|
*
|
|
@@ -77,23 +78,43 @@ export type DefaultVariantAliasId = typeof DEFAULT_VARIANT_ALIAS_ID;
|
|
|
77
78
|
* `theme.buttons.sizes`, then to the system defaults.
|
|
78
79
|
*/
|
|
79
80
|
export type VariantSizeOverrides = Partial<ButtonSizes>;
|
|
80
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Closed colour relationship for a button variant.
|
|
83
|
+
*
|
|
84
|
+
* Solid foregrounds are derived from the exact background token. Surface
|
|
85
|
+
* treatments inherit the foreground contract of their containing surface.
|
|
86
|
+
* Gradients are the only token treatment that needs an explicit foreground,
|
|
87
|
+
* because no single palette on-colour can describe several stops.
|
|
88
|
+
*/
|
|
89
|
+
declare const OpaqueButtonColourTokenBrand: unique symbol;
|
|
90
|
+
export type OpaqueButtonColourToken = ThemeColorToken & {
|
|
91
|
+
readonly [OpaqueButtonColourTokenBrand]: 'OpaqueButtonColourToken';
|
|
92
|
+
};
|
|
93
|
+
export declare function parseOpaqueButtonColourToken(value: unknown): OpaqueButtonColourToken | null;
|
|
94
|
+
export declare function unsafeAsOpaqueButtonColourToken(value: string): OpaqueButtonColourToken;
|
|
95
|
+
export declare const opaqueButtonColourTokenSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
96
|
+
export type ButtonColourTreatment = {
|
|
81
97
|
type: 'solid';
|
|
82
|
-
colorToken:
|
|
98
|
+
colorToken: OpaqueButtonColourToken;
|
|
83
99
|
} | {
|
|
84
100
|
type: 'gradient';
|
|
85
|
-
stops:
|
|
101
|
+
stops: [OpaqueButtonColourToken, OpaqueButtonColourToken, ...OpaqueButtonColourToken[]];
|
|
86
102
|
direction: GradientDirection;
|
|
103
|
+
foregroundToken: OpaqueButtonColourToken;
|
|
87
104
|
} | {
|
|
88
|
-
type: '
|
|
105
|
+
type: 'surface';
|
|
106
|
+
role: 'link';
|
|
107
|
+
};
|
|
108
|
+
export type ButtonBackground = ButtonColourTreatment;
|
|
109
|
+
export type ButtonEffectOptionValue = string | number | boolean | null | ButtonEffectOptionValue[] | {
|
|
110
|
+
[key: string]: ButtonEffectOptionValue;
|
|
89
111
|
};
|
|
90
|
-
export
|
|
112
|
+
export type EffectApplication = {
|
|
91
113
|
effectId: string;
|
|
92
|
-
options?: Record<string,
|
|
93
|
-
}
|
|
114
|
+
options?: Record<string, ButtonEffectOptionValue>;
|
|
115
|
+
};
|
|
94
116
|
export interface ButtonBorder {
|
|
95
117
|
widthClass: string;
|
|
96
|
-
colorToken: string;
|
|
97
118
|
}
|
|
98
119
|
/**
|
|
99
120
|
* Optional trailing affordance icon carried by a button variant.
|
|
@@ -112,8 +133,6 @@ export interface ButtonBorder {
|
|
|
112
133
|
export interface ButtonVariantAffordance {
|
|
113
134
|
/** Registry icon id, e.g. `'ArrowRight'`. */
|
|
114
135
|
iconId: string;
|
|
115
|
-
/** Optional palette token for the icon colour. Omit to inherit the button text colour. */
|
|
116
|
-
colorToken?: string;
|
|
117
136
|
}
|
|
118
137
|
export declare const cornerStyleSchema: z.ZodEnum<{
|
|
119
138
|
square: "square";
|
|
@@ -249,7 +268,7 @@ export declare const buttonSizesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
249
268
|
fontSize?: string | undefined;
|
|
250
269
|
} | undefined;
|
|
251
270
|
}>>;
|
|
252
|
-
export declare const buttonGlobalSettingsSchema: z.ZodObject<{
|
|
271
|
+
export declare const buttonGlobalSettingsSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
253
272
|
cornerStyle: z.ZodEnum<{
|
|
254
273
|
square: "square";
|
|
255
274
|
rounded: "rounded";
|
|
@@ -299,7 +318,7 @@ export declare const buttonGlobalSettingsSchema: z.ZodObject<{
|
|
|
299
318
|
darken: "darken";
|
|
300
319
|
saturate: "saturate";
|
|
301
320
|
}>;
|
|
302
|
-
hoverColorToken: z.ZodOptional<z.ZodString
|
|
321
|
+
hoverColorToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
303
322
|
gradientStyle: z.ZodOptional<z.ZodEnum<{
|
|
304
323
|
linear: "linear";
|
|
305
324
|
radial: "radial";
|
|
@@ -311,7 +330,7 @@ export declare const buttonGlobalSettingsSchema: z.ZodObject<{
|
|
|
311
330
|
hard: "hard";
|
|
312
331
|
smooth: "smooth";
|
|
313
332
|
}>>;
|
|
314
|
-
}, z.core.$strip
|
|
333
|
+
}, z.core.$strip>>;
|
|
315
334
|
export declare const gradientDirectionSchema: z.ZodEnum<{
|
|
316
335
|
"to-r": "to-r";
|
|
317
336
|
"to-l": "to-l";
|
|
@@ -322,12 +341,33 @@ export declare const gradientDirectionSchema: z.ZodEnum<{
|
|
|
322
341
|
"to-br": "to-br";
|
|
323
342
|
"to-bl": "to-bl";
|
|
324
343
|
}>;
|
|
344
|
+
export declare const buttonColourTreatmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
345
|
+
type: z.ZodLiteral<"solid">;
|
|
346
|
+
colorToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
347
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
348
|
+
type: z.ZodLiteral<"gradient">;
|
|
349
|
+
stops: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>, z.ZodTransform<[OpaqueButtonColourToken, OpaqueButtonColourToken, ...OpaqueButtonColourToken[]], OpaqueButtonColourToken[]>>;
|
|
350
|
+
direction: z.ZodEnum<{
|
|
351
|
+
"to-r": "to-r";
|
|
352
|
+
"to-l": "to-l";
|
|
353
|
+
"to-t": "to-t";
|
|
354
|
+
"to-b": "to-b";
|
|
355
|
+
"to-tr": "to-tr";
|
|
356
|
+
"to-tl": "to-tl";
|
|
357
|
+
"to-br": "to-br";
|
|
358
|
+
"to-bl": "to-bl";
|
|
359
|
+
}>;
|
|
360
|
+
foregroundToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
362
|
+
type: z.ZodLiteral<"surface">;
|
|
363
|
+
role: z.ZodLiteral<"link">;
|
|
364
|
+
}, z.core.$strip>], "type">;
|
|
325
365
|
export declare const buttonBackgroundSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
326
366
|
type: z.ZodLiteral<"solid">;
|
|
327
|
-
colorToken: z.ZodString
|
|
367
|
+
colorToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
328
368
|
}, z.core.$strip>, z.ZodObject<{
|
|
329
369
|
type: z.ZodLiteral<"gradient">;
|
|
330
|
-
stops: z.ZodArray<z.ZodString
|
|
370
|
+
stops: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>, z.ZodTransform<[OpaqueButtonColourToken, OpaqueButtonColourToken, ...OpaqueButtonColourToken[]], OpaqueButtonColourToken[]>>;
|
|
331
371
|
direction: z.ZodEnum<{
|
|
332
372
|
"to-r": "to-r";
|
|
333
373
|
"to-l": "to-l";
|
|
@@ -338,20 +378,23 @@ export declare const buttonBackgroundSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
338
378
|
"to-br": "to-br";
|
|
339
379
|
"to-bl": "to-bl";
|
|
340
380
|
}>;
|
|
381
|
+
foregroundToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
341
382
|
}, z.core.$strip>, z.ZodObject<{
|
|
342
|
-
type: z.ZodLiteral<"
|
|
383
|
+
type: z.ZodLiteral<"surface">;
|
|
384
|
+
role: z.ZodLiteral<"link">;
|
|
343
385
|
}, z.core.$strip>], "type">;
|
|
344
|
-
export declare const effectApplicationSchema: z.
|
|
345
|
-
effectId: z.ZodString;
|
|
346
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
347
|
-
}, z.core.$strip>;
|
|
386
|
+
export declare const effectApplicationSchema: z.ZodType<EffectApplication>;
|
|
348
387
|
export declare const buttonBorderSchema: z.ZodObject<{
|
|
349
388
|
widthClass: z.ZodString;
|
|
350
|
-
colorToken: z.ZodString;
|
|
351
389
|
}, z.core.$strip>;
|
|
352
390
|
export declare const buttonVariantAffordanceSchema: z.ZodObject<{
|
|
353
391
|
iconId: z.ZodString;
|
|
354
|
-
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
export declare const variantEffectsSchema: z.ZodObject<{
|
|
394
|
+
base: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
395
|
+
hover: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
396
|
+
active: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
397
|
+
focus: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
355
398
|
}, z.core.$strip>;
|
|
356
399
|
/**
|
|
357
400
|
* Per-variant size overrides schema — every entry is optional.
|
|
@@ -379,22 +422,24 @@ export declare const variantSizeOverridesSchema: z.ZodObject<{
|
|
|
379
422
|
}, z.core.$strip>>;
|
|
380
423
|
}, z.core.$strip>;
|
|
381
424
|
/**
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
*
|
|
425
|
+
* Temporary persisted-theme admission boundary for issue #1206.
|
|
426
|
+
*
|
|
427
|
+
* Production inventory on 2026-07-22 found 22 rows using the old independent
|
|
428
|
+
* `textColorToken`/border colour shape. New source and all downstream code use
|
|
429
|
+
* only the canonical relationship. Delete this preprocessor after the reviewed
|
|
430
|
+
* production rewrite reports zero legacy rows.
|
|
386
431
|
*/
|
|
387
|
-
export declare const buttonVariantSchema: z.ZodObject<{
|
|
432
|
+
export declare const buttonVariantSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
388
433
|
id: z.ZodString;
|
|
389
434
|
name: z.ZodString;
|
|
390
435
|
enabled: z.ZodBoolean;
|
|
391
436
|
priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
392
437
|
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
393
438
|
type: z.ZodLiteral<"solid">;
|
|
394
|
-
colorToken: z.ZodString
|
|
439
|
+
colorToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
395
440
|
}, z.core.$strip>, z.ZodObject<{
|
|
396
441
|
type: z.ZodLiteral<"gradient">;
|
|
397
|
-
stops: z.ZodArray<z.ZodString
|
|
442
|
+
stops: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>, z.ZodTransform<[OpaqueButtonColourToken, OpaqueButtonColourToken, ...OpaqueButtonColourToken[]], OpaqueButtonColourToken[]>>;
|
|
398
443
|
direction: z.ZodEnum<{
|
|
399
444
|
"to-r": "to-r";
|
|
400
445
|
"to-l": "to-l";
|
|
@@ -405,10 +450,11 @@ export declare const buttonVariantSchema: z.ZodObject<{
|
|
|
405
450
|
"to-br": "to-br";
|
|
406
451
|
"to-bl": "to-bl";
|
|
407
452
|
}>;
|
|
453
|
+
foregroundToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
408
454
|
}, z.core.$strip>, z.ZodObject<{
|
|
409
|
-
type: z.ZodLiteral<"
|
|
455
|
+
type: z.ZodLiteral<"surface">;
|
|
456
|
+
role: z.ZodLiteral<"link">;
|
|
410
457
|
}, z.core.$strip>], "type">;
|
|
411
|
-
textColorToken: z.ZodString;
|
|
412
458
|
borderRadius: z.ZodOptional<z.ZodString>;
|
|
413
459
|
shadow: z.ZodOptional<z.ZodObject<{
|
|
414
460
|
elevation: z.ZodEnum<{
|
|
@@ -430,26 +476,13 @@ export declare const buttonVariantSchema: z.ZodObject<{
|
|
|
430
476
|
}, z.core.$strip>>;
|
|
431
477
|
border: z.ZodOptional<z.ZodObject<{
|
|
432
478
|
widthClass: z.ZodString;
|
|
433
|
-
colorToken: z.ZodString;
|
|
434
479
|
}, z.core.$strip>>;
|
|
435
|
-
hoverBackgroundToken: z.ZodOptional<z.ZodString
|
|
480
|
+
hoverBackgroundToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
436
481
|
effects: z.ZodOptional<z.ZodObject<{
|
|
437
|
-
base: z.ZodOptional<z.ZodArray<z.
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
hover: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
442
|
-
effectId: z.ZodString;
|
|
443
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
444
|
-
}, z.core.$strip>>>;
|
|
445
|
-
active: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
446
|
-
effectId: z.ZodString;
|
|
447
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
448
|
-
}, z.core.$strip>>>;
|
|
449
|
-
focus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
450
|
-
effectId: z.ZodString;
|
|
451
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
452
|
-
}, z.core.$strip>>>;
|
|
482
|
+
base: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
483
|
+
hover: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
484
|
+
active: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
485
|
+
focus: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
453
486
|
}, z.core.$strip>>;
|
|
454
487
|
sizes: z.ZodOptional<z.ZodObject<{
|
|
455
488
|
sm: z.ZodOptional<z.ZodObject<{
|
|
@@ -471,11 +504,10 @@ export declare const buttonVariantSchema: z.ZodObject<{
|
|
|
471
504
|
}, z.core.$strip>>;
|
|
472
505
|
affordance: z.ZodOptional<z.ZodObject<{
|
|
473
506
|
iconId: z.ZodString;
|
|
474
|
-
colorToken: z.ZodOptional<z.ZodString>;
|
|
475
507
|
}, z.core.$strip>>;
|
|
476
|
-
}, z.core.$strip
|
|
508
|
+
}, z.core.$strip>>;
|
|
477
509
|
export declare const buttonSystemSchema: z.ZodObject<{
|
|
478
|
-
global: z.ZodObject<{
|
|
510
|
+
global: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
479
511
|
cornerStyle: z.ZodEnum<{
|
|
480
512
|
square: "square";
|
|
481
513
|
rounded: "rounded";
|
|
@@ -525,7 +557,7 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
525
557
|
darken: "darken";
|
|
526
558
|
saturate: "saturate";
|
|
527
559
|
}>;
|
|
528
|
-
hoverColorToken: z.ZodOptional<z.ZodString
|
|
560
|
+
hoverColorToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
529
561
|
gradientStyle: z.ZodOptional<z.ZodEnum<{
|
|
530
562
|
linear: "linear";
|
|
531
563
|
radial: "radial";
|
|
@@ -537,18 +569,18 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
537
569
|
hard: "hard";
|
|
538
570
|
smooth: "smooth";
|
|
539
571
|
}>>;
|
|
540
|
-
}, z.core.$strip
|
|
541
|
-
variants: z.ZodArray<z.ZodObject<{
|
|
572
|
+
}, z.core.$strip>>;
|
|
573
|
+
variants: z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
542
574
|
id: z.ZodString;
|
|
543
575
|
name: z.ZodString;
|
|
544
576
|
enabled: z.ZodBoolean;
|
|
545
577
|
priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
546
578
|
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
547
579
|
type: z.ZodLiteral<"solid">;
|
|
548
|
-
colorToken: z.ZodString
|
|
580
|
+
colorToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
549
581
|
}, z.core.$strip>, z.ZodObject<{
|
|
550
582
|
type: z.ZodLiteral<"gradient">;
|
|
551
|
-
stops: z.ZodArray<z.ZodString
|
|
583
|
+
stops: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>, z.ZodTransform<[OpaqueButtonColourToken, OpaqueButtonColourToken, ...OpaqueButtonColourToken[]], OpaqueButtonColourToken[]>>;
|
|
552
584
|
direction: z.ZodEnum<{
|
|
553
585
|
"to-r": "to-r";
|
|
554
586
|
"to-l": "to-l";
|
|
@@ -559,10 +591,11 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
559
591
|
"to-br": "to-br";
|
|
560
592
|
"to-bl": "to-bl";
|
|
561
593
|
}>;
|
|
594
|
+
foregroundToken: z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>;
|
|
562
595
|
}, z.core.$strip>, z.ZodObject<{
|
|
563
|
-
type: z.ZodLiteral<"
|
|
596
|
+
type: z.ZodLiteral<"surface">;
|
|
597
|
+
role: z.ZodLiteral<"link">;
|
|
564
598
|
}, z.core.$strip>], "type">;
|
|
565
|
-
textColorToken: z.ZodString;
|
|
566
599
|
borderRadius: z.ZodOptional<z.ZodString>;
|
|
567
600
|
shadow: z.ZodOptional<z.ZodObject<{
|
|
568
601
|
elevation: z.ZodEnum<{
|
|
@@ -584,26 +617,13 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
584
617
|
}, z.core.$strip>>;
|
|
585
618
|
border: z.ZodOptional<z.ZodObject<{
|
|
586
619
|
widthClass: z.ZodString;
|
|
587
|
-
colorToken: z.ZodString;
|
|
588
620
|
}, z.core.$strip>>;
|
|
589
|
-
hoverBackgroundToken: z.ZodOptional<z.ZodString
|
|
621
|
+
hoverBackgroundToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<OpaqueButtonColourToken, string>>>;
|
|
590
622
|
effects: z.ZodOptional<z.ZodObject<{
|
|
591
|
-
base: z.ZodOptional<z.ZodArray<z.
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
hover: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
596
|
-
effectId: z.ZodString;
|
|
597
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
598
|
-
}, z.core.$strip>>>;
|
|
599
|
-
active: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
600
|
-
effectId: z.ZodString;
|
|
601
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
602
|
-
}, z.core.$strip>>>;
|
|
603
|
-
focus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
604
|
-
effectId: z.ZodString;
|
|
605
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
606
|
-
}, z.core.$strip>>>;
|
|
623
|
+
base: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
624
|
+
hover: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
625
|
+
active: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
626
|
+
focus: z.ZodOptional<z.ZodArray<z.ZodType<EffectApplication, unknown, z.core.$ZodTypeInternals<EffectApplication, unknown>>>>;
|
|
607
627
|
}, z.core.$strip>>;
|
|
608
628
|
sizes: z.ZodOptional<z.ZodObject<{
|
|
609
629
|
sm: z.ZodOptional<z.ZodObject<{
|
|
@@ -625,9 +645,8 @@ export declare const buttonSystemSchema: z.ZodObject<{
|
|
|
625
645
|
}, z.core.$strip>>;
|
|
626
646
|
affordance: z.ZodOptional<z.ZodObject<{
|
|
627
647
|
iconId: z.ZodString;
|
|
628
|
-
colorToken: z.ZodOptional<z.ZodString>;
|
|
629
648
|
}, z.core.$strip>>;
|
|
630
|
-
}, z.core.$strip
|
|
649
|
+
}, z.core.$strip>>>;
|
|
631
650
|
sizes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
632
651
|
sm: z.ZodObject<{
|
|
633
652
|
padding: z.ZodString;
|
|
@@ -707,7 +726,7 @@ export interface ButtonGlobalSettings {
|
|
|
707
726
|
hoverTransform: HoverTransform;
|
|
708
727
|
hoverColor: HoverColor;
|
|
709
728
|
/** When hoverColor is 'token', this specifies which token to use */
|
|
710
|
-
hoverColorToken?:
|
|
729
|
+
hoverColorToken?: OpaqueButtonColourToken;
|
|
711
730
|
gradientStyle?: GradientStyle;
|
|
712
731
|
gradientAngle?: number;
|
|
713
732
|
gradientSharpness?: GradientSharpness;
|
|
@@ -737,13 +756,12 @@ export interface ButtonVariant {
|
|
|
737
756
|
name: string;
|
|
738
757
|
enabled: boolean;
|
|
739
758
|
priority: Priority;
|
|
740
|
-
background:
|
|
741
|
-
textColorToken: string;
|
|
759
|
+
background: ButtonColourTreatment;
|
|
742
760
|
/** Tailwind radius token (e.g. `'rounded-md'`). Omit to inherit from `global.cornerStyle`. */
|
|
743
761
|
borderRadius?: string;
|
|
744
762
|
shadow?: Shadow;
|
|
745
763
|
border?: ButtonBorder;
|
|
746
|
-
hoverBackgroundToken?:
|
|
764
|
+
hoverBackgroundToken?: OpaqueButtonColourToken;
|
|
747
765
|
effects?: VariantEffects;
|
|
748
766
|
/** Per-variant size overrides. See VariantSizeOverrides. */
|
|
749
767
|
sizes?: VariantSizeOverrides;
|
|
@@ -93,11 +93,11 @@ export declare const cardBorderSchema: z.ZodObject<{
|
|
|
93
93
|
}, z.core.$strip>;
|
|
94
94
|
/** Per-corner radius value. `expressive` is a large block-radius multiple. */
|
|
95
95
|
export declare const cardCornerValueSchema: z.ZodEnum<{
|
|
96
|
+
expressive: "expressive";
|
|
96
97
|
soft: "soft";
|
|
97
98
|
square: "square";
|
|
98
99
|
rounded: "rounded";
|
|
99
100
|
pill: "pill";
|
|
100
|
-
expressive: "expressive";
|
|
101
101
|
}>;
|
|
102
102
|
export type CardCornerValue = z.infer<typeof cardCornerValueSchema>;
|
|
103
103
|
/**
|
|
@@ -106,9 +106,9 @@ export type CardCornerValue = z.infer<typeof cardCornerValueSchema>;
|
|
|
106
106
|
*/
|
|
107
107
|
export declare const cardAccentEdgeSchema: z.ZodObject<{
|
|
108
108
|
edge: z.ZodEnum<{
|
|
109
|
-
bottom: "bottom";
|
|
110
109
|
left: "left";
|
|
111
110
|
right: "right";
|
|
111
|
+
bottom: "bottom";
|
|
112
112
|
top: "top";
|
|
113
113
|
}>;
|
|
114
114
|
colorToken: z.ZodString;
|
|
@@ -122,32 +122,32 @@ export declare const cardAccentEdgeSchema: z.ZodObject<{
|
|
|
122
122
|
export type CardAccentEdge = z.infer<typeof cardAccentEdgeSchema>;
|
|
123
123
|
export declare const cardCornerRadiiSchema: z.ZodObject<{
|
|
124
124
|
topLeft: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
expressive: "expressive";
|
|
125
126
|
soft: "soft";
|
|
126
127
|
square: "square";
|
|
127
128
|
rounded: "rounded";
|
|
128
129
|
pill: "pill";
|
|
129
|
-
expressive: "expressive";
|
|
130
130
|
}>>;
|
|
131
131
|
topRight: z.ZodOptional<z.ZodEnum<{
|
|
132
|
+
expressive: "expressive";
|
|
132
133
|
soft: "soft";
|
|
133
134
|
square: "square";
|
|
134
135
|
rounded: "rounded";
|
|
135
136
|
pill: "pill";
|
|
136
|
-
expressive: "expressive";
|
|
137
137
|
}>>;
|
|
138
138
|
bottomLeft: z.ZodOptional<z.ZodEnum<{
|
|
139
|
+
expressive: "expressive";
|
|
139
140
|
soft: "soft";
|
|
140
141
|
square: "square";
|
|
141
142
|
rounded: "rounded";
|
|
142
143
|
pill: "pill";
|
|
143
|
-
expressive: "expressive";
|
|
144
144
|
}>>;
|
|
145
145
|
bottomRight: z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
expressive: "expressive";
|
|
146
147
|
soft: "soft";
|
|
147
148
|
square: "square";
|
|
148
149
|
rounded: "rounded";
|
|
149
150
|
pill: "pill";
|
|
150
|
-
expressive: "expressive";
|
|
151
151
|
}>>;
|
|
152
152
|
}, z.core.$strip>;
|
|
153
153
|
export type CardCornerRadii = z.infer<typeof cardCornerRadiiSchema>;
|
|
@@ -210,32 +210,32 @@ export declare const cardVariantSchema: z.ZodObject<{
|
|
|
210
210
|
}>>;
|
|
211
211
|
cornerRadii: z.ZodOptional<z.ZodObject<{
|
|
212
212
|
topLeft: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
expressive: "expressive";
|
|
213
214
|
soft: "soft";
|
|
214
215
|
square: "square";
|
|
215
216
|
rounded: "rounded";
|
|
216
217
|
pill: "pill";
|
|
217
|
-
expressive: "expressive";
|
|
218
218
|
}>>;
|
|
219
219
|
topRight: z.ZodOptional<z.ZodEnum<{
|
|
220
|
+
expressive: "expressive";
|
|
220
221
|
soft: "soft";
|
|
221
222
|
square: "square";
|
|
222
223
|
rounded: "rounded";
|
|
223
224
|
pill: "pill";
|
|
224
|
-
expressive: "expressive";
|
|
225
225
|
}>>;
|
|
226
226
|
bottomLeft: z.ZodOptional<z.ZodEnum<{
|
|
227
|
+
expressive: "expressive";
|
|
227
228
|
soft: "soft";
|
|
228
229
|
square: "square";
|
|
229
230
|
rounded: "rounded";
|
|
230
231
|
pill: "pill";
|
|
231
|
-
expressive: "expressive";
|
|
232
232
|
}>>;
|
|
233
233
|
bottomRight: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
expressive: "expressive";
|
|
234
235
|
soft: "soft";
|
|
235
236
|
square: "square";
|
|
236
237
|
rounded: "rounded";
|
|
237
238
|
pill: "pill";
|
|
238
|
-
expressive: "expressive";
|
|
239
239
|
}>>;
|
|
240
240
|
}, z.core.$strip>>;
|
|
241
241
|
border: z.ZodOptional<z.ZodObject<{
|
|
@@ -244,9 +244,9 @@ export declare const cardVariantSchema: z.ZodObject<{
|
|
|
244
244
|
}, z.core.$strip>>;
|
|
245
245
|
accentEdge: z.ZodOptional<z.ZodObject<{
|
|
246
246
|
edge: z.ZodEnum<{
|
|
247
|
-
bottom: "bottom";
|
|
248
247
|
left: "left";
|
|
249
248
|
right: "right";
|
|
249
|
+
bottom: "bottom";
|
|
250
250
|
top: "top";
|
|
251
251
|
}>;
|
|
252
252
|
colorToken: z.ZodString;
|
|
@@ -318,32 +318,32 @@ export declare const cardSystemSchema: z.ZodObject<{
|
|
|
318
318
|
}>>;
|
|
319
319
|
cornerRadii: z.ZodOptional<z.ZodObject<{
|
|
320
320
|
topLeft: z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
expressive: "expressive";
|
|
321
322
|
soft: "soft";
|
|
322
323
|
square: "square";
|
|
323
324
|
rounded: "rounded";
|
|
324
325
|
pill: "pill";
|
|
325
|
-
expressive: "expressive";
|
|
326
326
|
}>>;
|
|
327
327
|
topRight: z.ZodOptional<z.ZodEnum<{
|
|
328
|
+
expressive: "expressive";
|
|
328
329
|
soft: "soft";
|
|
329
330
|
square: "square";
|
|
330
331
|
rounded: "rounded";
|
|
331
332
|
pill: "pill";
|
|
332
|
-
expressive: "expressive";
|
|
333
333
|
}>>;
|
|
334
334
|
bottomLeft: z.ZodOptional<z.ZodEnum<{
|
|
335
|
+
expressive: "expressive";
|
|
335
336
|
soft: "soft";
|
|
336
337
|
square: "square";
|
|
337
338
|
rounded: "rounded";
|
|
338
339
|
pill: "pill";
|
|
339
|
-
expressive: "expressive";
|
|
340
340
|
}>>;
|
|
341
341
|
bottomRight: z.ZodOptional<z.ZodEnum<{
|
|
342
|
+
expressive: "expressive";
|
|
342
343
|
soft: "soft";
|
|
343
344
|
square: "square";
|
|
344
345
|
rounded: "rounded";
|
|
345
346
|
pill: "pill";
|
|
346
|
-
expressive: "expressive";
|
|
347
347
|
}>>;
|
|
348
348
|
}, z.core.$strip>>;
|
|
349
349
|
border: z.ZodOptional<z.ZodObject<{
|
|
@@ -352,9 +352,9 @@ export declare const cardSystemSchema: z.ZodObject<{
|
|
|
352
352
|
}, z.core.$strip>>;
|
|
353
353
|
accentEdge: z.ZodOptional<z.ZodObject<{
|
|
354
354
|
edge: z.ZodEnum<{
|
|
355
|
-
bottom: "bottom";
|
|
356
355
|
left: "left";
|
|
357
356
|
right: "right";
|
|
357
|
+
bottom: "bottom";
|
|
358
358
|
top: "top";
|
|
359
359
|
}>;
|
|
360
360
|
colorToken: z.ZodString;
|