@riverbankcms/sdk 0.109.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/dist/{PreviewEditorSidebar-DWqwfy3_.mjs → PreviewEditorSidebar-CTR6LUhN.mjs} +178 -117
- package/dist/{PreviewEditorUI-B7OL4sfR.mjs → PreviewEditorUI-DZg15Zip.mjs} +3 -4
- package/dist/{PreviewQueryProvider-D0y2l8JN.mjs → PreviewQueryProvider-kkmjklLG.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-D8Gt9Gbe.mjs → SdkPreviewModeRuntime-DeOTAFvR.mjs} +229 -219
- package/dist/{SiteChromeCustomizeContext-DUpalEdL.mjs → SiteChromeCustomizeContext-DOSDLCiJ.mjs} +1695 -2169
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1716 -76
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +5 -5
- package/dist/_dts/api/src/contentRuntime.d.ts +4 -1
- package/dist/_dts/api/src/courses.d.ts +30 -15
- package/dist/_dts/api/src/endpoints.d.ts +14 -4
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +23 -11
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteOperations.d.ts +11 -19
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -6
- package/dist/_dts/api/src/webhooks.d.ts +98 -1
- package/dist/_dts/billing/src/site-arrangements.d.ts +3 -0
- 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 +4 -4
- package/dist/_dts/blocks/src/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +2 -1
- 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 +2 -4
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -1
- 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 +2 -1
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +2 -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/constants/buttonRoles.d.ts +35 -0
- package/dist/_dts/blocks/src/system/fields/button.d.ts +10 -21
- package/dist/_dts/blocks/src/system/fields/ctas.d.ts +2 -1
- package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +9 -5
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +18 -18
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -9
- 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 +6 -3
- 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/db/src/generated/supabase/database.types.d.ts +221 -53
- package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +3 -2
- 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 +7 -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/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/style.d.ts +3 -2
- package/dist/_dts/sdk/src/client/management/types.d.ts +2 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +12 -15
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -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 +129 -6
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -1
- 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/site-styles/curatedSiteStyles.d.ts +26 -24
- 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/previewCompiler.d.ts +8 -9
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +4 -4
- package/dist/_dts/ui/src/palette/hex.d.ts +3 -3
- package/dist/cli/index.mjs +1760 -1914
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +1 -1
- package/dist/client/{DiscountCodeDisclosure-DU1ygxU2.mjs → DiscountCodeDisclosure-C4xvTBux.mjs} +1 -1
- package/dist/client/{EventCombined.client-DB5zagCo.mjs → EventCombined.client-Cr7G131j.mjs} +2 -3
- package/dist/client/{EventListing.client-CTX9JHBL.mjs → EventListing.client-CAjbseNy.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BYImhgiB.mjs → LeafletStaticMap-BMlWfwz3.mjs} +1 -1
- package/dist/client/{MagicLinkForm-CRkw_M3l.mjs → MagicLinkForm-ChdFz96y.mjs} +1 -2
- package/dist/client/{StepIndicator-BnmVBJJh.mjs → StepIndicator-7D3GaBeM.mjs} +2 -2
- package/dist/client/{accordion-CeGreumd.mjs → accordion-D8JTs2Si.mjs} +1 -1
- package/dist/client/{bookingForm-CSzFNrpN.mjs → bookingForm-H3DCRBHs.mjs} +6 -7
- package/dist/client/bookings.mjs +3069 -1447
- package/dist/client/{carousel-B2jDtogf.mjs → carousel-DMr_QWlz.mjs} +1 -1
- package/dist/client/{cart-D-jZ-vaY.mjs → cart-DWMbfBdR.mjs} +3 -3
- package/dist/client/{checkout-Dza-LA7N.mjs → checkout-zmfdkXLx.mjs} +3 -3
- package/dist/client/client.mjs +1732 -1913
- package/dist/client/{colorStyles-CrgzoXsm.mjs → colorStyles-gcTh5yZT.mjs} +2 -12
- package/dist/client/{colorTokenParts-CMugwvX_.mjs → colorTokenParts-FSS3al6l.mjs} +31 -1
- package/dist/client/{courseRegistration-TYkNychb.mjs → courseRegistration-Z_mn18jy.mjs} +100 -37
- package/dist/client/{eventCalendar-BI_90SsT.mjs → eventCalendar-CYp0YJGF.mjs} +4 -5
- package/dist/client/{eventCombined-mNrpryE9.mjs → eventCombined-rKyYZUa9.mjs} +2 -2
- package/dist/client/{eventDetails-D4GVlCIY.mjs → eventDetails-X0ZaUuMj.mjs} +3 -3
- package/dist/client/{eventListing-YhKN018y.mjs → eventListing-W1SuL7EP.mjs} +2 -2
- package/dist/client/{eventRegistration-CdHGtilr.mjs → eventRegistration-ClWricui.mjs} +6 -7
- package/dist/client/{form-AcAL45rA.mjs → form--eKPwAAD.mjs} +1 -2
- package/dist/client/{headerSection-uEC52ueD.mjs → headerSection-BSeGr-FS.mjs} +2 -3
- package/dist/client/hooks.mjs +1554 -1871
- package/dist/client/{locationMap-_wJDSUYe.mjs → locationMap-BpOrtNYn.mjs} +8 -5
- package/dist/client/{media-BK0O3b-U.mjs → media-DoF0dcVx.mjs} +2 -2
- package/dist/client/{newsletterForm-DrArsb2B.mjs → newsletterForm-Bt7it7Dy.mjs} +1 -2
- package/dist/client/{pricing-BSYVghwo.mjs → pricing-BTjSDDr4.mjs} +1 -1
- package/dist/client/{productDetail-Dyk90sMs.mjs → productDetail-ICnVTcCg.mjs} +3 -3
- package/dist/client/{productList-BCKThwAI.mjs → productList-ZHr6D604.mjs} +3 -3
- package/dist/client/{propsDecoder-CkXxkdSR.mjs → propsDecoder-wWN0tBDF.mjs} +2351 -129
- package/dist/client/rendering/client.mjs +1664 -1824
- package/dist/client/rendering/islands.mjs +20 -20
- package/dist/client/rendering.mjs +1697 -1909
- package/dist/client/{shop-DeltVH10.mjs → shop-C1u_BUn0.mjs} +5 -6
- package/dist/client/{shop-commerce-BD9Jsm2Z.mjs → shop-commerce-CleZdRha.mjs} +5 -6
- package/dist/client/{shop-commerce-store-CmXD6FDS.mjs → shop-commerce-store-ycnoB2Ce.mjs} +1 -1
- package/dist/client/{shopShared-B8v-lH_F.mjs → shopShared-CPhByt2a.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-DbWJN8ld.mjs → useDiscountCodeUi-cStSQI6C.mjs} +1 -1
- package/dist/client/{useEventFilters-EJIMUnqT.mjs → useEventFilters-DKPN7hSY.mjs} +26 -27
- package/dist/client/{usePolling-Cmh14fc7.mjs → usePolling-BKAd6pkZ.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +37 -6
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +37 -6
- package/dist/{previewAuthStore-CTO7CRPk.mjs → previewAuthStore-BkT1D06A.mjs} +37 -6
- package/dist/{sdk-runtime-Dou0GAav.mjs → sdk-runtime-hu3wr3ng.mjs} +2 -2
- package/dist/{separator-CI5wZNXT.mjs → separator-Bln8izQ9.mjs} +1 -1
- package/dist/server/components.mjs +1472 -1788
- package/dist/server/config-validation.mjs +1559 -1876
- package/dist/server/config.mjs +1559 -1876
- package/dist/server/data.mjs +1554 -1871
- package/dist/server/index.mjs +38 -7
- package/dist/server/next/revalidate.mjs +53 -1
- package/dist/server/next.mjs +1584 -1869
- package/dist/server/page-converter.mjs +1543 -1860
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1472 -1788
- package/dist/server/rendering.mjs +1472 -1788
- package/dist/server/routing.mjs +1600 -1891
- package/dist/server/server.mjs +1574 -1860
- package/dist/server/theme-bridge.mjs +1436 -1619
- package/dist/server/theme.mjs +1345 -1241
- package/dist/server/webhooks.mjs +54 -2
- package/package.json +1 -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 -285
- package/dist/client/buttons-DoFV7KDL.mjs +0 -2115
- package/dist/client/foregroundContract-xICPq59x.mjs +0 -31
|
@@ -114,7 +114,7 @@ export type BlockCtaContent = {
|
|
|
114
114
|
label?: string | null;
|
|
115
115
|
href?: string | null;
|
|
116
116
|
link?: unknown;
|
|
117
|
-
variant?:
|
|
117
|
+
variant?: ButtonVariant | null;
|
|
118
118
|
size?: string | null;
|
|
119
119
|
};
|
|
120
120
|
export type IntroContent = {
|
|
@@ -185,7 +185,7 @@ export type CourseRegistrationContent = {
|
|
|
185
185
|
waitlistMessage?: string | null;
|
|
186
186
|
membershipMessage?: string | null;
|
|
187
187
|
buttonText?: string | null;
|
|
188
|
-
buttonVariant?:
|
|
188
|
+
buttonVariant?: ButtonVariant | null;
|
|
189
189
|
_sectionStyles?: SectionStylesContent;
|
|
190
190
|
};
|
|
191
191
|
export type CtaFullContent = {
|
|
@@ -193,10 +193,7 @@ export type CtaFullContent = {
|
|
|
193
193
|
title: string;
|
|
194
194
|
content?: unknown;
|
|
195
195
|
_sectionStyles?: SectionStylesContent;
|
|
196
|
-
ctas?:
|
|
197
|
-
label?: string | null;
|
|
198
|
-
href?: string | null;
|
|
199
|
-
}>;
|
|
196
|
+
ctas?: BlockCtaContent[] | null;
|
|
200
197
|
};
|
|
201
198
|
export type EmbedContent = {
|
|
202
199
|
heading?: string | null;
|
|
@@ -218,7 +215,7 @@ export type DisplayMode = 'combined' | 'calendar' | 'list' | 'timetable' | 'week
|
|
|
218
215
|
export type FilterAutoShow = 'auto' | 'always' | 'never';
|
|
219
216
|
export type CalendarTabViews = 'both' | 'month' | 'week';
|
|
220
217
|
export type CalendarView = 'month' | 'week';
|
|
221
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'outline' | '
|
|
218
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'accent';
|
|
222
219
|
export type CardVariantRole = 'default' | 'alternative';
|
|
223
220
|
export type LegacyCardVariantRoleAlias = 'variant1' | 'variant2';
|
|
224
221
|
export type EventCardVariantInput = CardVariantRole | LegacyCardVariantRoleAlias;
|
|
@@ -300,7 +297,7 @@ export type EventRegistrationContent = {
|
|
|
300
297
|
successMessage?: string | null;
|
|
301
298
|
waitlistMessage?: string | null;
|
|
302
299
|
buttonText?: string | null;
|
|
303
|
-
buttonVariant?:
|
|
300
|
+
buttonVariant?: ButtonVariant | null;
|
|
304
301
|
_sectionStyles?: SectionStylesContent;
|
|
305
302
|
};
|
|
306
303
|
export type EventSpotlightContent = {
|
|
@@ -381,7 +378,7 @@ export type FeatureCardsContent = {
|
|
|
381
378
|
export type HeroCta = {
|
|
382
379
|
label: string;
|
|
383
380
|
link: LinkValue;
|
|
384
|
-
variant?:
|
|
381
|
+
variant?: ButtonVariant;
|
|
385
382
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
386
383
|
iconLeft?: string;
|
|
387
384
|
iconRight?: string;
|
|
@@ -465,7 +462,7 @@ export type NewsletterSignupContent = {
|
|
|
465
462
|
preset: NewsletterSignupPreset;
|
|
466
463
|
includePhone?: boolean | null;
|
|
467
464
|
buttonLabel?: string | null;
|
|
468
|
-
buttonVariant?:
|
|
465
|
+
buttonVariant?: ButtonVariant | null;
|
|
469
466
|
successMessage?: string | null;
|
|
470
467
|
privacyNote?: string | null;
|
|
471
468
|
tags?: string | null;
|
|
@@ -476,9 +473,9 @@ export type RecurringScheduleContent = {
|
|
|
476
473
|
heading?: string | null;
|
|
477
474
|
description?: TipTapNode | null;
|
|
478
475
|
showVenue?: boolean | null;
|
|
479
|
-
buttonVariant?:
|
|
476
|
+
buttonVariant?: ButtonVariant | null;
|
|
480
477
|
buttonText?: string | null;
|
|
481
|
-
seeAllButtonVariant?:
|
|
478
|
+
seeAllButtonVariant?: ButtonVariant | null;
|
|
482
479
|
seeAllUrl?: LinkValue | null;
|
|
483
480
|
seeAllLabel?: string | null;
|
|
484
481
|
emptyMessage?: string | null;
|
|
@@ -509,7 +506,7 @@ export type ShopContent = {
|
|
|
509
506
|
showDescriptions?: boolean | null;
|
|
510
507
|
showValidityPeriod?: boolean | null;
|
|
511
508
|
showPricePerCredit?: boolean | null;
|
|
512
|
-
buttonVariant?:
|
|
509
|
+
buttonVariant?: ButtonVariant | null;
|
|
513
510
|
passesHeading?: string | null;
|
|
514
511
|
membershipsHeading?: string | null;
|
|
515
512
|
buyButtonText?: string | null;
|
|
@@ -652,7 +649,7 @@ export type FileDownloadContent = {
|
|
|
652
649
|
title?: string | null;
|
|
653
650
|
description?: string | null;
|
|
654
651
|
buttonLabel?: string | null;
|
|
655
|
-
buttonVariant?:
|
|
652
|
+
buttonVariant?: ButtonVariant | null;
|
|
656
653
|
};
|
|
657
654
|
export type AppointmentBookingContent = {
|
|
658
655
|
formId: string;
|
|
@@ -703,7 +700,7 @@ export type SingleButtonContent = {
|
|
|
703
700
|
button?: {
|
|
704
701
|
label?: string | null;
|
|
705
702
|
link?: LinkValue | null;
|
|
706
|
-
variant?:
|
|
703
|
+
variant?: ButtonVariant | null;
|
|
707
704
|
} | null;
|
|
708
705
|
};
|
|
709
706
|
export type GiftingContent = {
|
|
@@ -319,7 +319,7 @@ export type SiteResponse = {
|
|
|
319
319
|
* payloads without these columns still satisfy the type — consumers fall
|
|
320
320
|
* back to the site style's defaults when null.
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
selectionButtonStyleSelection?: import('../../../theme-core/src/buttons/index').ButtonStyleSelection | null;
|
|
323
323
|
runtimePaletteState?: RuntimePaletteState | null;
|
|
324
324
|
selectionHeaderLayoutId?: string | null;
|
|
325
325
|
selectionHeaderStyleId?: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Webhook utilities for Riverbank SDK
|
|
3
3
|
*/
|
|
4
|
-
export { SUPPORTED_WEBHOOK_EVENTS, verifyWebhookSignature, parseWebhookPayload, RIVERBANK_SIGNATURE_PREFIX, WebhookPayloadSchema, WebhookEventSchema, normalizeRevalidationPath, parseRevalidationPath, unwrapRevalidationPath, type RevalidationPath, type RevalidationPathParseError, type RevalidationPathParseResult, type WebhookEvent, type WebhookPayload, type ParseWebhookResult, } from './verify';
|
|
4
|
+
export { SUPPORTED_WEBHOOK_EVENTS, verifyWebhookSignature, parseWebhookPayload, RIVERBANK_SIGNATURE_PREFIX, WebhookPayloadSchema, WebhookEventSchema, EventsUpdatedDataSchema, normalizeRevalidationPath, parseRevalidationPath, unwrapRevalidationPath, type RevalidationPath, type RevalidationPathParseError, type RevalidationPathParseResult, type WebhookEvent, type WebhookPayload, type EventsUpdatedData, type ParseWebhookResult, } from './verify';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides framework-agnostic webhook signature verification and payload parsing.
|
|
5
5
|
*/
|
|
6
|
-
import { type EmptyWebhookData, type EntryPathChangedData, type EntryPublishedData, type EntryRemovedData, type NavigationUpdatedData, type PagePathChangedData, type PagePublishedData, type PageRemovedData, type RevalidationPath, type RevalidationPathParseError, type RevalidationPathParseResult, type WebhookEvent, type WebhookPayload } from '../../../api/src/webhooks';
|
|
7
|
-
export { EmptyWebhookDataSchema as EmptyDataSchema, EntryPathChangedDataSchema, EntryPublishedDataSchema, EntryRemovedDataSchema, NavigationUpdatedDataSchema, PagePathChangedDataSchema, PagePublishedDataSchema, PageRemovedDataSchema, RIVERBANK_SIGNATURE_PREFIX, SUPPORTED_WEBHOOK_EVENTS, WebhookEventSchema, WebhookPayloadSchema, normalizeRevalidationPath, parseRevalidationPath, unwrapRevalidationPath, } from '../../../api/src/webhooks';
|
|
8
|
-
export type { EmptyWebhookData as EmptyData, RevalidationPath, RevalidationPathParseError, RevalidationPathParseResult, EntryPathChangedData, EntryPublishedData, EntryRemovedData, NavigationUpdatedData, PagePathChangedData, PagePublishedData, PageRemovedData, WebhookEvent, WebhookPayload, };
|
|
6
|
+
import { type EmptyWebhookData, type EntryPathChangedData, type EntryPublishedData, type EntryRemovedData, type NavigationUpdatedData, type PagePathChangedData, type PagePublishedData, type PageRemovedData, type RevalidationPath, type RevalidationPathParseError, type RevalidationPathParseResult, type WebhookEvent, type WebhookPayload, type EventsUpdatedData } from '../../../api/src/webhooks';
|
|
7
|
+
export { EmptyWebhookDataSchema as EmptyDataSchema, EntryPathChangedDataSchema, EntryPublishedDataSchema, EntryRemovedDataSchema, EventsUpdatedDataSchema, NavigationUpdatedDataSchema, PagePathChangedDataSchema, PagePublishedDataSchema, PageRemovedDataSchema, RIVERBANK_SIGNATURE_PREFIX, SUPPORTED_WEBHOOK_EVENTS, WebhookEventSchema, WebhookPayloadSchema, normalizeRevalidationPath, parseRevalidationPath, unwrapRevalidationPath, } from '../../../api/src/webhooks';
|
|
8
|
+
export type { EmptyWebhookData as EmptyData, RevalidationPath, RevalidationPathParseError, RevalidationPathParseResult, EntryPathChangedData, EntryPublishedData, EntryRemovedData, EventsUpdatedData, NavigationUpdatedData, PagePathChangedData, PagePublishedData, PageRemovedData, WebhookEvent, WebhookPayload, };
|
|
9
9
|
/**
|
|
10
10
|
* Type-safe webhook payload with discriminated data based on event type.
|
|
11
11
|
*/
|
|
@@ -43,8 +43,49 @@ export declare const applySiteStyleSelectionCommandSchema: z.ZodObject<{
|
|
|
43
43
|
kind: z.ZodLiteral<"set-site-style">;
|
|
44
44
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
|
|
45
45
|
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
-
kind: z.ZodLiteral<"set-button-
|
|
47
|
-
|
|
46
|
+
kind: z.ZodLiteral<"set-button-style">;
|
|
47
|
+
buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
styleId: z.ZodLiteral<"soft-pill">;
|
|
49
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
styleId: z.ZodLiteral<"earth-pill">;
|
|
52
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
styleId: z.ZodLiteral<"confident-chip">;
|
|
55
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
+
styleId: z.ZodLiteral<"editorial-link">;
|
|
58
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
styleId: z.ZodLiteral<"pebble">;
|
|
61
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
styleId: z.ZodLiteral<"ink-stamp">;
|
|
64
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
66
|
+
styleId: z.ZodLiteral<"flat-ink">;
|
|
67
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
styleId: z.ZodLiteral<"brushed-wash">;
|
|
70
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
71
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
|
+
styleId: z.ZodLiteral<"showtime-pill">;
|
|
73
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
styleId: z.ZodLiteral<"joy-stamp">;
|
|
76
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
styleId: z.ZodLiteral<"ornate-ritual">;
|
|
79
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
80
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
81
|
+
styleId: z.ZodLiteral<"quiet-arrow">;
|
|
82
|
+
parameters: z.ZodObject<{
|
|
83
|
+
secondaryTreatment: z.ZodEnum<{
|
|
84
|
+
outlined: "outlined";
|
|
85
|
+
"solid-accent": "solid-accent";
|
|
86
|
+
}>;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
}, z.core.$strict>], "styleId">>;
|
|
48
89
|
}, z.core.$strict>, z.ZodObject<{
|
|
49
90
|
kind: z.ZodLiteral<"set-palette">;
|
|
50
91
|
command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
|
|
@@ -1378,8 +1419,49 @@ export declare const siteCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1378
1419
|
kind: z.ZodLiteral<"set-site-style">;
|
|
1379
1420
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
|
|
1380
1421
|
}, z.core.$strict>, z.ZodObject<{
|
|
1381
|
-
kind: z.ZodLiteral<"set-button-
|
|
1382
|
-
|
|
1422
|
+
kind: z.ZodLiteral<"set-button-style">;
|
|
1423
|
+
buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1424
|
+
styleId: z.ZodLiteral<"soft-pill">;
|
|
1425
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1426
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1427
|
+
styleId: z.ZodLiteral<"earth-pill">;
|
|
1428
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1429
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1430
|
+
styleId: z.ZodLiteral<"confident-chip">;
|
|
1431
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1432
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1433
|
+
styleId: z.ZodLiteral<"editorial-link">;
|
|
1434
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1435
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1436
|
+
styleId: z.ZodLiteral<"pebble">;
|
|
1437
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1438
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1439
|
+
styleId: z.ZodLiteral<"ink-stamp">;
|
|
1440
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1442
|
+
styleId: z.ZodLiteral<"flat-ink">;
|
|
1443
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1444
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1445
|
+
styleId: z.ZodLiteral<"brushed-wash">;
|
|
1446
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1447
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1448
|
+
styleId: z.ZodLiteral<"showtime-pill">;
|
|
1449
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1450
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1451
|
+
styleId: z.ZodLiteral<"joy-stamp">;
|
|
1452
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1453
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1454
|
+
styleId: z.ZodLiteral<"ornate-ritual">;
|
|
1455
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
1456
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1457
|
+
styleId: z.ZodLiteral<"quiet-arrow">;
|
|
1458
|
+
parameters: z.ZodObject<{
|
|
1459
|
+
secondaryTreatment: z.ZodEnum<{
|
|
1460
|
+
outlined: "outlined";
|
|
1461
|
+
"solid-accent": "solid-accent";
|
|
1462
|
+
}>;
|
|
1463
|
+
}, z.core.$strict>;
|
|
1464
|
+
}, z.core.$strict>], "styleId">>;
|
|
1383
1465
|
}, z.core.$strict>, z.ZodObject<{
|
|
1384
1466
|
kind: z.ZodLiteral<"set-palette">;
|
|
1385
1467
|
command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
|
|
@@ -2578,8 +2660,49 @@ export declare const siteCommandBatchSchema: z.ZodObject<{
|
|
|
2578
2660
|
kind: z.ZodLiteral<"set-site-style">;
|
|
2579
2661
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
|
|
2580
2662
|
}, z.core.$strict>, z.ZodObject<{
|
|
2581
|
-
kind: z.ZodLiteral<"set-button-
|
|
2582
|
-
|
|
2663
|
+
kind: z.ZodLiteral<"set-button-style">;
|
|
2664
|
+
buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2665
|
+
styleId: z.ZodLiteral<"soft-pill">;
|
|
2666
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2667
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2668
|
+
styleId: z.ZodLiteral<"earth-pill">;
|
|
2669
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2670
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2671
|
+
styleId: z.ZodLiteral<"confident-chip">;
|
|
2672
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2673
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2674
|
+
styleId: z.ZodLiteral<"editorial-link">;
|
|
2675
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2676
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2677
|
+
styleId: z.ZodLiteral<"pebble">;
|
|
2678
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2679
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2680
|
+
styleId: z.ZodLiteral<"ink-stamp">;
|
|
2681
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2682
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2683
|
+
styleId: z.ZodLiteral<"flat-ink">;
|
|
2684
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2685
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2686
|
+
styleId: z.ZodLiteral<"brushed-wash">;
|
|
2687
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2688
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2689
|
+
styleId: z.ZodLiteral<"showtime-pill">;
|
|
2690
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2691
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2692
|
+
styleId: z.ZodLiteral<"joy-stamp">;
|
|
2693
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2694
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2695
|
+
styleId: z.ZodLiteral<"ornate-ritual">;
|
|
2696
|
+
parameters: z.ZodObject<{}, z.core.$strict>;
|
|
2697
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2698
|
+
styleId: z.ZodLiteral<"quiet-arrow">;
|
|
2699
|
+
parameters: z.ZodObject<{
|
|
2700
|
+
secondaryTreatment: z.ZodEnum<{
|
|
2701
|
+
outlined: "outlined";
|
|
2702
|
+
"solid-accent": "solid-accent";
|
|
2703
|
+
}>;
|
|
2704
|
+
}, z.core.$strict>;
|
|
2705
|
+
}, z.core.$strict>], "styleId">>;
|
|
2583
2706
|
}, z.core.$strict>, z.ZodObject<{
|
|
2584
2707
|
kind: z.ZodLiteral<"set-palette">;
|
|
2585
2708
|
command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
|
|
@@ -11,7 +11,7 @@ export * from './affordanceIcons';
|
|
|
11
11
|
export * from './generateDefaultButtonSystem';
|
|
12
12
|
export * from './constants';
|
|
13
13
|
export * from './presets';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './styles';
|
|
15
15
|
export * from './effects/types';
|
|
16
16
|
export * from './effects/registry';
|
|
17
17
|
export * from './effects/presets/transform';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { StyleTags } from '../../site-styles/styleTags';
|
|
3
|
+
import type { ButtonGlobalSettings, ButtonSizes, ButtonSystem, ButtonVariant } from '../types';
|
|
4
|
+
export declare const PUBLIC_BUTTON_ROLES: readonly ["primary", "secondary", "outline", "ghost", "accent"];
|
|
5
|
+
export type PublicButtonRole = (typeof PUBLIC_BUTTON_ROLES)[number];
|
|
6
|
+
export type CompleteButtonRole = 'primary' | 'secondary';
|
|
7
|
+
export type SupportingButtonRole = Exclude<PublicButtonRole, CompleteButtonRole>;
|
|
8
|
+
export type ButtonVariantAppearance = Readonly<Pick<ButtonVariant, 'background' | 'borderRadius' | 'shadow' | 'border' | 'hoverBackgroundToken' | 'effects' | 'sizes' | 'affordance'>>;
|
|
9
|
+
export type PublicButtonVariant<TRole extends PublicButtonRole = PublicButtonRole> = Omit<ButtonVariant, 'id' | 'enabled'> & Readonly<{
|
|
10
|
+
id: TRole;
|
|
11
|
+
enabled: true;
|
|
12
|
+
}>;
|
|
13
|
+
export type CompleteButtonRoles = Readonly<{
|
|
14
|
+
[TRole in PublicButtonRole]: PublicButtonVariant<TRole>;
|
|
15
|
+
}>;
|
|
16
|
+
type CompleteRoleDefinition<TRole extends PublicButtonRole> = Readonly<{
|
|
17
|
+
kind: 'complete';
|
|
18
|
+
appearance: ButtonVariantAppearance;
|
|
19
|
+
}>;
|
|
20
|
+
type DerivedRoleDefinition = Readonly<{
|
|
21
|
+
kind: 'derive';
|
|
22
|
+
from: CompleteButtonRole;
|
|
23
|
+
overrides?: Partial<ButtonVariantAppearance>;
|
|
24
|
+
}>;
|
|
25
|
+
export type ButtonRoleDefinitions = Readonly<{
|
|
26
|
+
primary: CompleteRoleDefinition<'primary'>;
|
|
27
|
+
secondary: CompleteRoleDefinition<'secondary'>;
|
|
28
|
+
outline: CompleteRoleDefinition<'outline'> | DerivedRoleDefinition;
|
|
29
|
+
ghost: CompleteRoleDefinition<'ghost'> | DerivedRoleDefinition;
|
|
30
|
+
accent: CompleteRoleDefinition<'accent'> | DerivedRoleDefinition;
|
|
31
|
+
}>;
|
|
32
|
+
export type ButtonStyleSystemDefinition = Readonly<{
|
|
33
|
+
global: ButtonGlobalSettings;
|
|
34
|
+
sizes?: ButtonSizes;
|
|
35
|
+
roles: ButtonRoleDefinitions;
|
|
36
|
+
}>;
|
|
37
|
+
type StringParameterKey<TParameters> = Extract<keyof TParameters, string>;
|
|
38
|
+
export type ButtonStyleControl<TParameters> = {
|
|
39
|
+
[TKey in StringParameterKey<TParameters>]: Readonly<{
|
|
40
|
+
kind: 'choice';
|
|
41
|
+
parameter: TKey;
|
|
42
|
+
label: string;
|
|
43
|
+
options: readonly Readonly<{
|
|
44
|
+
value: Extract<TParameters[TKey], string>;
|
|
45
|
+
label: string;
|
|
46
|
+
}>[];
|
|
47
|
+
}>;
|
|
48
|
+
}[StringParameterKey<TParameters>];
|
|
49
|
+
export type ButtonStyleRecipe<TId extends string = string, TParameters = Readonly<Record<string, never>>> = Readonly<{
|
|
50
|
+
id: TId;
|
|
51
|
+
accessibilityLabel: string;
|
|
52
|
+
tags: StyleTags;
|
|
53
|
+
parameterSchema: z.ZodType<TParameters>;
|
|
54
|
+
defaultParameters: TParameters;
|
|
55
|
+
controls: readonly ButtonStyleControl<TParameters>[];
|
|
56
|
+
defineSystem: (parameters: TParameters) => ButtonStyleSystemDefinition;
|
|
57
|
+
}>;
|
|
58
|
+
export type ResolveButtonStyleError = Readonly<{
|
|
59
|
+
kind: 'invalid-parameters';
|
|
60
|
+
styleId: string;
|
|
61
|
+
issues: readonly string[];
|
|
62
|
+
}> | Readonly<{
|
|
63
|
+
kind: 'invalid-button-system';
|
|
64
|
+
styleId: string;
|
|
65
|
+
issues: readonly string[];
|
|
66
|
+
}>;
|
|
67
|
+
export type ResolveButtonStyleResult = Readonly<{
|
|
68
|
+
kind: 'resolved';
|
|
69
|
+
buttonSystem: ButtonSystem;
|
|
70
|
+
}> | Readonly<{
|
|
71
|
+
kind: 'error';
|
|
72
|
+
error: ResolveButtonStyleError;
|
|
73
|
+
}>;
|
|
74
|
+
export declare function defineButtonStyleRecipe<const TId extends string, TParameters>(recipe: ButtonStyleRecipe<TId, TParameters>): ButtonStyleRecipe<TId, TParameters>;
|
|
75
|
+
export declare function materializeButtonRoles(definitions: ButtonRoleDefinitions): CompleteButtonRoles;
|
|
76
|
+
export declare function resolveButtonStyleRecipe<TId extends string, TParameters>(recipe: ButtonStyleRecipe<TId, TParameters>, parameters: unknown): ResolveButtonStyleResult;
|
|
77
|
+
export declare function isPublicButtonRole(value: string): value is PublicButtonRole;
|
|
78
|
+
export declare function hasCompletePublicButtonRoles(buttonSystem: ButtonSystem): boolean;
|
|
79
|
+
export declare function listMissingPublicButtonRoles(buttonSystem: ButtonSystem): readonly PublicButtonRole[];
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type ButtonColourTreatment, type ButtonGlobalSettings } from '../../types';
|
|
2
|
+
import { type ButtonVariantAppearance, type ButtonStyleRecipe, type ButtonStyleSystemDefinition } from '../domain';
|
|
3
|
+
type AuthoringColourTreatment = Readonly<{
|
|
4
|
+
type: 'solid';
|
|
5
|
+
colorToken: string;
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
type: 'gradient';
|
|
8
|
+
stops: readonly [string, string, ...string[]];
|
|
9
|
+
direction: Extract<ButtonColourTreatment, {
|
|
10
|
+
type: 'gradient';
|
|
11
|
+
}>['direction'];
|
|
12
|
+
foregroundToken: string;
|
|
13
|
+
}> | Extract<ButtonColourTreatment, {
|
|
14
|
+
type: 'surface';
|
|
15
|
+
}>;
|
|
16
|
+
type AuthoringAppearance = Omit<ButtonVariantAppearance, 'background' | 'hoverBackgroundToken'> & Readonly<{
|
|
17
|
+
background: AuthoringColourTreatment;
|
|
18
|
+
hoverBackgroundToken?: string;
|
|
19
|
+
}>;
|
|
20
|
+
type AuthoringCompleteRole = Readonly<{
|
|
21
|
+
kind: 'complete';
|
|
22
|
+
appearance: AuthoringAppearance;
|
|
23
|
+
}>;
|
|
24
|
+
type AuthoringDerivedRole = Readonly<{
|
|
25
|
+
kind: 'derive';
|
|
26
|
+
from: 'primary' | 'secondary';
|
|
27
|
+
overrides?: Partial<AuthoringAppearance>;
|
|
28
|
+
}>;
|
|
29
|
+
type AuthoringRoleDefinitions = Readonly<{
|
|
30
|
+
primary: AuthoringCompleteRole;
|
|
31
|
+
secondary: AuthoringCompleteRole;
|
|
32
|
+
outline: AuthoringCompleteRole | AuthoringDerivedRole;
|
|
33
|
+
ghost: AuthoringCompleteRole | AuthoringDerivedRole;
|
|
34
|
+
accent: AuthoringCompleteRole | AuthoringDerivedRole;
|
|
35
|
+
}>;
|
|
36
|
+
type AuthoringGlobalSettings = Omit<ButtonGlobalSettings, 'hoverColorToken'> & Readonly<{
|
|
37
|
+
hoverColorToken?: string;
|
|
38
|
+
}>;
|
|
39
|
+
export declare function defineStaticButtonStyleRecipe<const TId extends string>(input: {
|
|
40
|
+
id: TId;
|
|
41
|
+
accessibilityLabel: string;
|
|
42
|
+
tags: ButtonStyleRecipe<TId>['tags'];
|
|
43
|
+
system: Readonly<{
|
|
44
|
+
global: AuthoringGlobalSettings;
|
|
45
|
+
sizes?: ButtonStyleSystemDefinition['sizes'];
|
|
46
|
+
roles: AuthoringRoleDefinitions;
|
|
47
|
+
}>;
|
|
48
|
+
}): ButtonStyleRecipe<TId>;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const quietArrowRecipe: Readonly<{
|
|
2
|
+
id: "quiet-arrow";
|
|
3
|
+
accessibilityLabel: string;
|
|
4
|
+
tags: Readonly<Partial<Readonly<{
|
|
5
|
+
tone: import("../../../../../blocks/src/index").StyleTone;
|
|
6
|
+
energy: import("../../../../../blocks/src/index").StyleEnergy;
|
|
7
|
+
motion: import("../../../../../blocks/src/index").StyleMotion;
|
|
8
|
+
era: import("../../../../../blocks/src/index").StyleEra;
|
|
9
|
+
}>>>;
|
|
10
|
+
parameterSchema: import("zod").ZodType<{
|
|
11
|
+
secondaryTreatment: "outlined" | "solid-accent";
|
|
12
|
+
}, unknown, import("zod/v4/core").$ZodTypeInternals<{
|
|
13
|
+
secondaryTreatment: "outlined" | "solid-accent";
|
|
14
|
+
}, unknown>>;
|
|
15
|
+
defaultParameters: {
|
|
16
|
+
secondaryTreatment: "outlined" | "solid-accent";
|
|
17
|
+
};
|
|
18
|
+
controls: readonly Readonly<{
|
|
19
|
+
kind: "choice";
|
|
20
|
+
parameter: "secondaryTreatment";
|
|
21
|
+
label: string;
|
|
22
|
+
options: readonly Readonly<{
|
|
23
|
+
value: "outlined" | "solid-accent";
|
|
24
|
+
label: string;
|
|
25
|
+
}>[];
|
|
26
|
+
}>[];
|
|
27
|
+
defineSystem: (parameters: {
|
|
28
|
+
secondaryTreatment: "outlined" | "solid-accent";
|
|
29
|
+
}) => Readonly<{
|
|
30
|
+
global: import("../../../../../blocks/src/index").ButtonGlobalSettings;
|
|
31
|
+
sizes?: import("../..").ButtonSizes;
|
|
32
|
+
roles: Readonly<{
|
|
33
|
+
primary: Readonly<{
|
|
34
|
+
kind: "complete";
|
|
35
|
+
appearance: import("..").ButtonVariantAppearance;
|
|
36
|
+
}>;
|
|
37
|
+
secondary: Readonly<{
|
|
38
|
+
kind: "complete";
|
|
39
|
+
appearance: import("..").ButtonVariantAppearance;
|
|
40
|
+
}>;
|
|
41
|
+
outline: Readonly<{
|
|
42
|
+
kind: "complete";
|
|
43
|
+
appearance: import("..").ButtonVariantAppearance;
|
|
44
|
+
}> | Readonly<{
|
|
45
|
+
kind: "derive";
|
|
46
|
+
from: import("..").CompleteButtonRole;
|
|
47
|
+
overrides?: Partial<import("..").ButtonVariantAppearance>;
|
|
48
|
+
}>;
|
|
49
|
+
ghost: Readonly<{
|
|
50
|
+
kind: "complete";
|
|
51
|
+
appearance: import("..").ButtonVariantAppearance;
|
|
52
|
+
}> | Readonly<{
|
|
53
|
+
kind: "derive";
|
|
54
|
+
from: import("..").CompleteButtonRole;
|
|
55
|
+
overrides?: Partial<import("..").ButtonVariantAppearance>;
|
|
56
|
+
}>;
|
|
57
|
+
accent: Readonly<{
|
|
58
|
+
kind: "complete";
|
|
59
|
+
appearance: import("..").ButtonVariantAppearance;
|
|
60
|
+
}> | Readonly<{
|
|
61
|
+
kind: "derive";
|
|
62
|
+
from: import("..").CompleteButtonRole;
|
|
63
|
+
overrides?: Partial<import("..").ButtonVariantAppearance>;
|
|
64
|
+
}>;
|
|
65
|
+
}>;
|
|
66
|
+
}>;
|
|
67
|
+
}>;
|