@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
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type ButtonColourTreatment, type ButtonGlobalSettings, type ButtonSystem, type ButtonVariant } from '../types';
|
|
3
|
-
import { type StyleTags } from '../../site-styles/styleTags';
|
|
4
|
-
/**
|
|
5
|
-
* Branded ID for a button personality entry in the curated library.
|
|
6
|
-
* Shape matches the `Brand<T, TBrand>` convention in `site-styles/types.ts`
|
|
7
|
-
* (kept structurally compatible until that alias is hoisted to a shared file).
|
|
8
|
-
* Use `asButtonPersonalityId` at the parse/construction boundary.
|
|
9
|
-
*/
|
|
10
|
-
export type ButtonPersonalityId<T extends string = string> = T & {
|
|
11
|
-
readonly __brand: 'ButtonPersonalityId';
|
|
12
|
-
};
|
|
13
|
-
export declare function asButtonPersonalityId<const T extends string>(value: T): ButtonPersonalityId<T>;
|
|
14
|
-
export declare const buttonPersonalityIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ButtonPersonalityId<string>, string>>;
|
|
15
|
-
/**
|
|
16
|
-
* A button personality is a complete `ButtonSystem` plus the tags that decide
|
|
17
|
-
* which curated site styles will accept it. The `name` and `description` are
|
|
18
|
-
* surfaced in the Style configurator UI.
|
|
19
|
-
*/
|
|
20
|
-
export type ButtonPersonality<TId extends ButtonPersonalityId = ButtonPersonalityId> = Readonly<{
|
|
21
|
-
id: TId;
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
tags: StyleTags;
|
|
25
|
-
buttonSystem: ButtonSystem;
|
|
26
|
-
}>;
|
|
27
|
-
export declare const buttonPersonalitySchema: z.ZodObject<{
|
|
28
|
-
id: z.ZodPipe<z.ZodString, z.ZodTransform<ButtonPersonalityId<string>, string>>;
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
description: z.ZodString;
|
|
31
|
-
tags: z.ZodObject<{
|
|
32
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
33
|
-
bold: "bold";
|
|
34
|
-
minimal: "minimal";
|
|
35
|
-
classic: "classic";
|
|
36
|
-
}>>;
|
|
37
|
-
energy: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
calm: "calm";
|
|
39
|
-
vibrant: "vibrant";
|
|
40
|
-
}>>;
|
|
41
|
-
motion: z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
standard: "standard";
|
|
43
|
-
subtle: "subtle";
|
|
44
|
-
expressive: "expressive";
|
|
45
|
-
}>>;
|
|
46
|
-
era: z.ZodOptional<z.ZodEnum<{
|
|
47
|
-
editorial: "editorial";
|
|
48
|
-
modern: "modern";
|
|
49
|
-
organic: "organic";
|
|
50
|
-
technical: "technical";
|
|
51
|
-
retro: "retro";
|
|
52
|
-
}>>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
buttonSystem: z.ZodObject<{
|
|
55
|
-
global: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
56
|
-
cornerStyle: z.ZodEnum<{
|
|
57
|
-
square: "square";
|
|
58
|
-
rounded: "rounded";
|
|
59
|
-
pill: "pill";
|
|
60
|
-
}>;
|
|
61
|
-
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
shadow: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
medium: "medium";
|
|
64
|
-
none: "none";
|
|
65
|
-
high: "high";
|
|
66
|
-
low: "low";
|
|
67
|
-
}>>;
|
|
68
|
-
textTransform: z.ZodEnum<{
|
|
69
|
-
none: "none";
|
|
70
|
-
lowercase: "lowercase";
|
|
71
|
-
uppercase: "uppercase";
|
|
72
|
-
capitalize: "capitalize";
|
|
73
|
-
}>;
|
|
74
|
-
fontWeight: z.ZodUnion<readonly [z.ZodLiteral<500>, z.ZodLiteral<600>, z.ZodLiteral<700>]>;
|
|
75
|
-
borderWidth: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
76
|
-
typography: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
heading: "heading";
|
|
78
|
-
body: "body";
|
|
79
|
-
}>>;
|
|
80
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
81
|
-
letterSpacing: z.ZodOptional<z.ZodEnum<{
|
|
82
|
-
tight: "tight";
|
|
83
|
-
normal: "normal";
|
|
84
|
-
loose: "loose";
|
|
85
|
-
}>>;
|
|
86
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
-
paddingPreset: z.ZodOptional<z.ZodEnum<{
|
|
88
|
-
default: "default";
|
|
89
|
-
compact: "compact";
|
|
90
|
-
spacious: "spacious";
|
|
91
|
-
}>>;
|
|
92
|
-
hoverTransform: z.ZodEnum<{
|
|
93
|
-
none: "none";
|
|
94
|
-
scale: "scale";
|
|
95
|
-
lift: "lift";
|
|
96
|
-
press: "press";
|
|
97
|
-
}>;
|
|
98
|
-
hoverColor: z.ZodEnum<{
|
|
99
|
-
none: "none";
|
|
100
|
-
token: "token";
|
|
101
|
-
brighten: "brighten";
|
|
102
|
-
darken: "darken";
|
|
103
|
-
saturate: "saturate";
|
|
104
|
-
}>;
|
|
105
|
-
hoverColorToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>>;
|
|
106
|
-
gradientStyle: z.ZodOptional<z.ZodEnum<{
|
|
107
|
-
linear: "linear";
|
|
108
|
-
radial: "radial";
|
|
109
|
-
conic: "conic";
|
|
110
|
-
}>>;
|
|
111
|
-
gradientAngle: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
gradientSharpness: z.ZodOptional<z.ZodEnum<{
|
|
113
|
-
medium: "medium";
|
|
114
|
-
hard: "hard";
|
|
115
|
-
smooth: "smooth";
|
|
116
|
-
}>>;
|
|
117
|
-
}, z.core.$strip>>;
|
|
118
|
-
variants: z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
119
|
-
id: z.ZodString;
|
|
120
|
-
name: z.ZodString;
|
|
121
|
-
enabled: z.ZodBoolean;
|
|
122
|
-
priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
123
|
-
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
124
|
-
type: z.ZodLiteral<"solid">;
|
|
125
|
-
colorToken: z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>;
|
|
126
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
127
|
-
type: z.ZodLiteral<"gradient">;
|
|
128
|
-
stops: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>>, z.ZodTransform<[import("..").OpaqueButtonColourToken, import("..").OpaqueButtonColourToken, ...import("..").OpaqueButtonColourToken[]], import("..").OpaqueButtonColourToken[]>>;
|
|
129
|
-
direction: z.ZodEnum<{
|
|
130
|
-
"to-r": "to-r";
|
|
131
|
-
"to-l": "to-l";
|
|
132
|
-
"to-t": "to-t";
|
|
133
|
-
"to-b": "to-b";
|
|
134
|
-
"to-tr": "to-tr";
|
|
135
|
-
"to-tl": "to-tl";
|
|
136
|
-
"to-br": "to-br";
|
|
137
|
-
"to-bl": "to-bl";
|
|
138
|
-
}>;
|
|
139
|
-
foregroundToken: z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>;
|
|
140
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
-
type: z.ZodLiteral<"surface">;
|
|
142
|
-
role: z.ZodLiteral<"link">;
|
|
143
|
-
}, z.core.$strip>], "type">;
|
|
144
|
-
borderRadius: z.ZodOptional<z.ZodString>;
|
|
145
|
-
shadow: z.ZodOptional<z.ZodObject<{
|
|
146
|
-
elevation: z.ZodEnum<{
|
|
147
|
-
medium: "medium";
|
|
148
|
-
none: "none";
|
|
149
|
-
high: "high";
|
|
150
|
-
low: "low";
|
|
151
|
-
}>;
|
|
152
|
-
softness: z.ZodNullable<z.ZodEnum<{
|
|
153
|
-
crisp: "crisp";
|
|
154
|
-
soft: "soft";
|
|
155
|
-
hard: "hard";
|
|
156
|
-
}>>;
|
|
157
|
-
position: z.ZodDefault<z.ZodEnum<{
|
|
158
|
-
bottom: "bottom";
|
|
159
|
-
"bottom-right": "bottom-right";
|
|
160
|
-
}>>;
|
|
161
|
-
colorToken: z.ZodOptional<z.ZodString>;
|
|
162
|
-
}, z.core.$strip>>;
|
|
163
|
-
border: z.ZodOptional<z.ZodObject<{
|
|
164
|
-
widthClass: z.ZodString;
|
|
165
|
-
}, z.core.$strip>>;
|
|
166
|
-
hoverBackgroundToken: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("..").OpaqueButtonColourToken, string>>>;
|
|
167
|
-
effects: z.ZodOptional<z.ZodObject<{
|
|
168
|
-
base: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../../blocks/src/index").EffectApplication, unknown, z.core.$ZodTypeInternals<import("../../../../blocks/src/index").EffectApplication, unknown>>>>;
|
|
169
|
-
hover: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../../blocks/src/index").EffectApplication, unknown, z.core.$ZodTypeInternals<import("../../../../blocks/src/index").EffectApplication, unknown>>>>;
|
|
170
|
-
active: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../../blocks/src/index").EffectApplication, unknown, z.core.$ZodTypeInternals<import("../../../../blocks/src/index").EffectApplication, unknown>>>>;
|
|
171
|
-
focus: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../../blocks/src/index").EffectApplication, unknown, z.core.$ZodTypeInternals<import("../../../../blocks/src/index").EffectApplication, unknown>>>>;
|
|
172
|
-
}, z.core.$strip>>;
|
|
173
|
-
sizes: z.ZodOptional<z.ZodObject<{
|
|
174
|
-
sm: z.ZodOptional<z.ZodObject<{
|
|
175
|
-
padding: z.ZodString;
|
|
176
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
177
|
-
}, z.core.$strip>>;
|
|
178
|
-
md: z.ZodOptional<z.ZodObject<{
|
|
179
|
-
padding: z.ZodString;
|
|
180
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
181
|
-
}, z.core.$strip>>;
|
|
182
|
-
lg: z.ZodOptional<z.ZodObject<{
|
|
183
|
-
padding: z.ZodString;
|
|
184
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
185
|
-
}, z.core.$strip>>;
|
|
186
|
-
xl: z.ZodOptional<z.ZodObject<{
|
|
187
|
-
padding: z.ZodString;
|
|
188
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
189
|
-
}, z.core.$strip>>;
|
|
190
|
-
}, z.core.$strip>>;
|
|
191
|
-
affordance: z.ZodOptional<z.ZodObject<{
|
|
192
|
-
iconId: z.ZodString;
|
|
193
|
-
}, z.core.$strip>>;
|
|
194
|
-
}, z.core.$strip>>>;
|
|
195
|
-
sizes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
196
|
-
sm: z.ZodObject<{
|
|
197
|
-
padding: z.ZodString;
|
|
198
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
199
|
-
}, z.core.$strip>;
|
|
200
|
-
md: z.ZodObject<{
|
|
201
|
-
padding: z.ZodString;
|
|
202
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
203
|
-
}, z.core.$strip>;
|
|
204
|
-
lg: z.ZodObject<{
|
|
205
|
-
padding: z.ZodString;
|
|
206
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
xl: z.ZodOptional<z.ZodObject<{
|
|
209
|
-
padding: z.ZodString;
|
|
210
|
-
fontSize: z.ZodOptional<z.ZodString>;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
213
|
-
sm: {
|
|
214
|
-
padding: string;
|
|
215
|
-
fontSize?: string | undefined;
|
|
216
|
-
};
|
|
217
|
-
md: {
|
|
218
|
-
padding: string;
|
|
219
|
-
fontSize?: string | undefined;
|
|
220
|
-
};
|
|
221
|
-
lg: {
|
|
222
|
-
padding: string;
|
|
223
|
-
fontSize?: string | undefined;
|
|
224
|
-
};
|
|
225
|
-
xl: {
|
|
226
|
-
padding: string;
|
|
227
|
-
fontSize?: string | undefined;
|
|
228
|
-
};
|
|
229
|
-
}, {
|
|
230
|
-
sm: {
|
|
231
|
-
padding: string;
|
|
232
|
-
fontSize?: string | undefined;
|
|
233
|
-
};
|
|
234
|
-
md: {
|
|
235
|
-
padding: string;
|
|
236
|
-
fontSize?: string | undefined;
|
|
237
|
-
};
|
|
238
|
-
lg: {
|
|
239
|
-
padding: string;
|
|
240
|
-
fontSize?: string | undefined;
|
|
241
|
-
};
|
|
242
|
-
xl?: {
|
|
243
|
-
padding: string;
|
|
244
|
-
fontSize?: string | undefined;
|
|
245
|
-
} | undefined;
|
|
246
|
-
}>>>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
}, z.core.$strip>;
|
|
249
|
-
/**
|
|
250
|
-
* Helper for personality file modules to keep the call site short and
|
|
251
|
-
* type-safe. `as const satisfies ...` would also work but produces wider
|
|
252
|
-
* types at use sites.
|
|
253
|
-
*/
|
|
254
|
-
export declare function defineButtonPersonality<const TId extends string>(input: {
|
|
255
|
-
id: TId;
|
|
256
|
-
name: string;
|
|
257
|
-
description: string;
|
|
258
|
-
tags: StyleTags;
|
|
259
|
-
buttonSystem: ButtonSystemAuthoringInput;
|
|
260
|
-
}): ButtonPersonality<ButtonPersonalityId<TId>>;
|
|
261
|
-
type ButtonColourTreatmentAuthoringInput = Readonly<{
|
|
262
|
-
type: 'solid';
|
|
263
|
-
colorToken: string;
|
|
264
|
-
}> | Readonly<{
|
|
265
|
-
type: 'gradient';
|
|
266
|
-
stops: readonly [string, string, ...string[]];
|
|
267
|
-
direction: Extract<ButtonColourTreatment, {
|
|
268
|
-
type: 'gradient';
|
|
269
|
-
}>['direction'];
|
|
270
|
-
foregroundToken: string;
|
|
271
|
-
}> | Extract<ButtonColourTreatment, {
|
|
272
|
-
type: 'surface';
|
|
273
|
-
}>;
|
|
274
|
-
type ButtonVariantAuthoringInput = Omit<ButtonVariant, 'background' | 'hoverBackgroundToken'> & Readonly<{
|
|
275
|
-
background: ButtonColourTreatmentAuthoringInput;
|
|
276
|
-
hoverBackgroundToken?: string;
|
|
277
|
-
}>;
|
|
278
|
-
type ButtonGlobalSettingsAuthoringInput = Omit<ButtonGlobalSettings, 'hoverColorToken'> & Readonly<{
|
|
279
|
-
hoverColorToken?: string;
|
|
280
|
-
}>;
|
|
281
|
-
type ButtonSystemAuthoringInput = Omit<ButtonSystem, 'global' | 'variants'> & Readonly<{
|
|
282
|
-
global: ButtonGlobalSettingsAuthoringInput;
|
|
283
|
-
variants: readonly ButtonVariantAuthoringInput[];
|
|
284
|
-
}>;
|
|
285
|
-
export {};
|