@riverbankcms/sdk 0.60.3 → 0.60.7

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.
Files changed (126) hide show
  1. package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
  2. package/dist/_dts/api/src/bookingConfig.d.ts +6 -0
  3. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +45 -3
  4. package/dist/_dts/api/src/bookingOperations.d.ts +40 -3
  5. package/dist/_dts/api/src/bookingVerticals.d.ts +1 -0
  6. package/dist/_dts/api/src/courses.d.ts +1 -5
  7. package/dist/_dts/api/src/endpoints.d.ts +80 -1
  8. package/dist/_dts/api/src/index.d.ts +3 -2
  9. package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
  10. package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
  11. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -1
  12. package/dist/_dts/api/src/resources.d.ts +1 -1
  13. package/dist/_dts/api/src/siteBanner.d.ts +8 -8
  14. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -39
  15. package/dist/_dts/api/src/siteOnboarding.d.ts +1 -0
  16. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +2 -0
  17. package/dist/_dts/api/src/teamMembers.d.ts +27 -0
  18. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +35 -29
  19. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -5
  20. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +40 -34
  21. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -5
  22. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1 -1
  23. package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +2 -2
  24. package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +9 -9
  25. package/dist/_dts/blocks/src/system/blocks/shared/teamMembers.d.ts +24 -0
  26. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +18 -8
  27. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  28. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  29. package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
  30. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
  31. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -2
  32. package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +2 -0
  33. package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
  34. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
  35. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +4 -4
  36. package/dist/_dts/blocks/src/system/runtime/shared/themedButtonClass.d.ts +11 -0
  37. package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
  38. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
  39. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +10 -2
  40. package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
  41. package/dist/_dts/content-model/src/metadataConfig.d.ts +1 -0
  42. package/dist/_dts/core/src/branded.d.ts +2 -0
  43. package/dist/_dts/core/src/participants.d.ts +32 -1
  44. package/dist/_dts/core/src/rectification.d.ts +79 -0
  45. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +130 -14
  46. package/dist/_dts/db/src/schemas/forms.d.ts +61 -61
  47. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +17 -15
  48. package/dist/_dts/sdk/src/client/types.d.ts +10 -2
  49. package/dist/_dts/sdk/src/config/types.d.ts +1 -1
  50. package/dist/_dts/sdk/src/config/validation.d.ts +40 -37
  51. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +17 -8
  52. package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +1 -1
  53. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
  54. package/dist/_dts/sdk/src/public-api/contracts.d.ts +87 -69
  55. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  56. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -5
  57. package/dist/_dts/sdk/src/version.d.ts +1 -1
  58. package/dist/_dts/theme-core/src/accordions/types.d.ts +11 -11
  59. package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +7 -2
  60. package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +7 -2
  61. package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +7 -2
  62. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +86 -5
  63. package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +7 -2
  64. package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +7 -2
  65. package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +7 -2
  66. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +20 -20
  67. package/dist/_dts/theme-core/src/buttons/types.d.ts +27 -27
  68. package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
  69. package/dist/_dts/theme-core/src/inputs/types.d.ts +14 -14
  70. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +2 -2
  71. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +438 -438
  72. package/dist/_dts/theme-core/src/navigation/types.d.ts +16 -16
  73. package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +33 -9
  74. package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +33 -9
  75. package/dist/_dts/theme-core/src/palette/variants/index.d.ts +200 -4
  76. package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +33 -9
  77. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +25 -25
  78. package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +33 -9
  79. package/dist/_dts/theme-core/src/schema.d.ts +662 -662
  80. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +4 -4
  81. package/dist/_dts/theme-core/src/site-styles/curatedChoices.d.ts +27 -0
  82. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +48 -194
  83. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +15 -15
  84. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +7 -7
  85. package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -1
  86. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +12 -14
  87. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +46 -0
  88. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +5 -5
  89. package/dist/_dts/ui/src/badge.d.ts +1 -1
  90. package/dist/_dts/ui/src/button-group.d.ts +1 -1
  91. package/dist/_dts/ui/src/button.d.ts +2 -2
  92. package/dist/_dts/ui/src/callout.d.ts +1 -1
  93. package/dist/_dts/ui/src/card.d.ts +1 -1
  94. package/dist/_dts/ui/src/palette/ColorChooserDialog.d.ts +47 -0
  95. package/dist/_dts/ui/src/palette/ColorSlotButton.d.ts +15 -0
  96. package/dist/_dts/ui/src/palette/ColorSwatchButton.d.ts +15 -0
  97. package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +50 -0
  98. package/dist/_dts/ui/src/palette/hex.d.ts +23 -0
  99. package/dist/_dts/ui/src/palette/index.d.ts +14 -0
  100. package/dist/_dts/ui/src/surface.d.ts +2 -2
  101. package/dist/_dts/ui/src/toggle.d.ts +4 -4
  102. package/dist/cli/index.mjs +1535 -1183
  103. package/dist/client/client.mjs +3944 -3454
  104. package/dist/client/hooks.mjs +2053 -1743
  105. package/dist/client/rendering/client.mjs +311 -167
  106. package/dist/client/rendering/islands.mjs +159 -73
  107. package/dist/client/rendering.mjs +1918 -1447
  108. package/dist/preview-next/before-render.mjs +147 -1
  109. package/dist/preview-next/client/runtime.mjs +2828 -2174
  110. package/dist/preview-next/middleware.mjs +147 -1
  111. package/dist/server/components.mjs +4311 -3928
  112. package/dist/server/config-validation.mjs +2201 -1906
  113. package/dist/server/config.mjs +2201 -1906
  114. package/dist/server/data.mjs +2053 -1743
  115. package/dist/server/index.mjs +171 -4
  116. package/dist/server/next.mjs +3442 -3024
  117. package/dist/server/page-converter.mjs +2109 -1962
  118. package/dist/server/prebuild.mjs +1 -1
  119. package/dist/server/rendering/server.mjs +4021 -3622
  120. package/dist/server/rendering.mjs +4021 -3622
  121. package/dist/server/routing.mjs +2377 -2058
  122. package/dist/server/server.mjs +2244 -1915
  123. package/dist/server/theme-bridge.mjs +130 -126
  124. package/dist/server/theme.mjs +131 -129
  125. package/package.json +1 -1
  126. package/dist/_dts/theme-core/src/site-styles/compatibility.d.ts +0 -109
@@ -2,13 +2,94 @@
2
2
  * Button personality library.
3
3
  *
4
4
  * Each personality is a complete `ButtonSystem` tagged on the four style axes
5
- * (tone / energy / motion / era). Curated site styles declare a default
6
- * personality + an acceptance region that filters the picker; the Style
7
- * configurator UI uses `compatibleEntries` from `site-styles/compatibility.ts`
8
- * to surface valid options.
5
+ * (tone / energy / motion / era). Curated site styles declare ordered
6
+ * personality choices for the picker. Tags stay available as authoring/audit
7
+ * metadata; they no longer drive the Style configurator's option shape.
9
8
  */
10
9
  import type { ButtonPersonality, ButtonPersonalityId } from './types';
11
10
  export type { ButtonPersonality, ButtonPersonalityId } from './types';
12
11
  export { asButtonPersonalityId, buttonPersonalityIdSchema, buttonPersonalitySchema, defineButtonPersonality, } from './types';
13
- export declare const buttonPersonalities: readonly ButtonPersonality[];
12
+ export declare const buttonPersonalities: readonly [Readonly<{
13
+ id: ButtonPersonalityId<"soft-pill">;
14
+ name: string;
15
+ description: string;
16
+ tags: Readonly<Partial<Readonly<{
17
+ tone: import("../../site-styles").StyleTone;
18
+ energy: import("../../site-styles").StyleEnergy;
19
+ motion: import("../../site-styles").StyleMotion;
20
+ era: import("../../site-styles").StyleEra;
21
+ }>>>;
22
+ buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
23
+ }>, Readonly<{
24
+ id: ButtonPersonalityId<"confident-chip">;
25
+ name: string;
26
+ description: string;
27
+ tags: Readonly<Partial<Readonly<{
28
+ tone: import("../../site-styles").StyleTone;
29
+ energy: import("../../site-styles").StyleEnergy;
30
+ motion: import("../../site-styles").StyleMotion;
31
+ era: import("../../site-styles").StyleEra;
32
+ }>>>;
33
+ buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
34
+ }>, Readonly<{
35
+ id: ButtonPersonalityId<"editorial-link">;
36
+ name: string;
37
+ description: string;
38
+ tags: Readonly<Partial<Readonly<{
39
+ tone: import("../../site-styles").StyleTone;
40
+ energy: import("../../site-styles").StyleEnergy;
41
+ motion: import("../../site-styles").StyleMotion;
42
+ era: import("../../site-styles").StyleEra;
43
+ }>>>;
44
+ buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
45
+ }>, Readonly<{
46
+ id: ButtonPersonalityId<"pebble">;
47
+ name: string;
48
+ description: string;
49
+ tags: Readonly<Partial<Readonly<{
50
+ tone: import("../../site-styles").StyleTone;
51
+ energy: import("../../site-styles").StyleEnergy;
52
+ motion: import("../../site-styles").StyleMotion;
53
+ era: import("../../site-styles").StyleEra;
54
+ }>>>;
55
+ buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
56
+ }>, Readonly<{
57
+ id: ButtonPersonalityId<"ink-stamp">;
58
+ name: string;
59
+ description: string;
60
+ tags: Readonly<Partial<Readonly<{
61
+ tone: import("../../site-styles").StyleTone;
62
+ energy: import("../../site-styles").StyleEnergy;
63
+ motion: import("../../site-styles").StyleMotion;
64
+ era: import("../../site-styles").StyleEra;
65
+ }>>>;
66
+ buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
67
+ }>, Readonly<{
68
+ id: ButtonPersonalityId<"brushed-wash">;
69
+ name: string;
70
+ description: string;
71
+ tags: Readonly<Partial<Readonly<{
72
+ tone: import("../../site-styles").StyleTone;
73
+ energy: import("../../site-styles").StyleEnergy;
74
+ motion: import("../../site-styles").StyleMotion;
75
+ era: import("../../site-styles").StyleEra;
76
+ }>>>;
77
+ buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
78
+ }>];
79
+ type UnbrandedButtonPersonalityId<TValue> = TValue extends infer TRaw & {
80
+ readonly __brand: 'ButtonPersonalityId';
81
+ } ? TRaw extends string ? TRaw : never : never;
82
+ export type KnownButtonPersonalityId = (typeof buttonPersonalities)[number]['id'];
83
+ export type KnownButtonPersonalityIdValue = UnbrandedButtonPersonalityId<KnownButtonPersonalityId>;
14
84
  export declare function findButtonPersonality(id: ButtonPersonalityId): ButtonPersonality | undefined;
85
+ export declare function isKnownButtonPersonalityId(value: string): value is KnownButtonPersonalityId;
86
+ export type PersistedButtonPersonalityIdParseResult = Readonly<{
87
+ kind: 'known';
88
+ id: KnownButtonPersonalityId;
89
+ }> | Readonly<{
90
+ kind: 'unknown';
91
+ raw: string;
92
+ }> | Readonly<{
93
+ kind: 'empty';
94
+ }>;
95
+ export declare function parsePersistedButtonPersonalityId(value: string | null | undefined): PersistedButtonPersonalityIdParseResult;
@@ -3,9 +3,14 @@
3
3
  * feel. Reads as bold and handmade; suits expressive craft brands.
4
4
  */
5
5
  export declare const inkStamp: Readonly<{
6
- id: import("./types").ButtonPersonalityId;
6
+ id: import("./types").ButtonPersonalityId<"ink-stamp">;
7
7
  name: string;
8
8
  description: string;
9
- tags: import("../../site-styles").StyleTags;
9
+ tags: Readonly<Partial<Readonly<{
10
+ tone: import("../../site-styles").StyleTone;
11
+ energy: import("../../site-styles").StyleEnergy;
12
+ motion: import("../../site-styles").StyleMotion;
13
+ era: import("../../site-styles").StyleEra;
14
+ }>>>;
10
15
  buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
11
16
  }>;
@@ -3,9 +3,14 @@
3
3
  * and natural; pairs well with wellness/yoga/dance brands.
4
4
  */
5
5
  export declare const pebble: Readonly<{
6
- id: import("./types").ButtonPersonalityId;
6
+ id: import("./types").ButtonPersonalityId<"pebble">;
7
7
  name: string;
8
8
  description: string;
9
- tags: import("../../site-styles").StyleTags;
9
+ tags: Readonly<Partial<Readonly<{
10
+ tone: import("../../site-styles").StyleTone;
11
+ energy: import("../../site-styles").StyleEnergy;
12
+ motion: import("../../site-styles").StyleMotion;
13
+ era: import("../../site-styles").StyleEra;
14
+ }>>>;
10
15
  buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
11
16
  }>;
@@ -3,9 +3,14 @@
3
3
  * Calm Studio and Modern Wellness; reads as quietly modern and welcoming.
4
4
  */
5
5
  export declare const softPill: Readonly<{
6
- id: import("./types").ButtonPersonalityId;
6
+ id: import("./types").ButtonPersonalityId<"soft-pill">;
7
7
  name: string;
8
8
  description: string;
9
- tags: import("../../site-styles").StyleTags;
9
+ tags: Readonly<Partial<Readonly<{
10
+ tone: import("../../site-styles").StyleTone;
11
+ energy: import("../../site-styles").StyleEnergy;
12
+ motion: import("../../site-styles").StyleMotion;
13
+ era: import("../../site-styles").StyleEra;
14
+ }>>>;
10
15
  buttonSystem: import("@riverbankcms/blocks").ButtonSystem;
11
16
  }>;
@@ -1,38 +1,38 @@
1
1
  import { z } from 'zod';
2
2
  import { type ButtonSystem } from '../types';
3
- import { type StyleTags } from '../../site-styles/compatibility';
3
+ import { type StyleTags } from '../../site-styles/styleTags';
4
4
  /**
5
5
  * Branded ID for a button personality entry in the curated library.
6
6
  * Shape matches the `Brand<T, TBrand>` convention in `site-styles/types.ts`
7
7
  * (kept structurally compatible until that alias is hoisted to a shared file).
8
8
  * Use `asButtonPersonalityId` at the parse/construction boundary.
9
9
  */
10
- export type ButtonPersonalityId = string & {
10
+ export type ButtonPersonalityId<T extends string = string> = T & {
11
11
  readonly __brand: 'ButtonPersonalityId';
12
12
  };
13
- export declare function asButtonPersonalityId(value: string): ButtonPersonalityId;
14
- export declare const buttonPersonalityIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ButtonPersonalityId, string>>;
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
15
  /**
16
16
  * A button personality is a complete `ButtonSystem` plus the tags that decide
17
17
  * which curated site styles will accept it. The `name` and `description` are
18
18
  * surfaced in the Style configurator UI.
19
19
  */
20
- export type ButtonPersonality = Readonly<{
21
- id: ButtonPersonalityId;
20
+ export type ButtonPersonality<TId extends ButtonPersonalityId = ButtonPersonalityId> = Readonly<{
21
+ id: TId;
22
22
  name: string;
23
23
  description: string;
24
24
  tags: StyleTags;
25
25
  buttonSystem: ButtonSystem;
26
26
  }>;
27
27
  export declare const buttonPersonalitySchema: z.ZodObject<{
28
- id: z.ZodPipe<z.ZodString, z.ZodTransform<ButtonPersonalityId, string>>;
28
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ButtonPersonalityId<string>, string>>;
29
29
  name: z.ZodString;
30
30
  description: z.ZodString;
31
31
  tags: z.ZodObject<{
32
32
  tone: z.ZodOptional<z.ZodEnum<{
33
- classic: "classic";
34
33
  bold: "bold";
35
34
  minimal: "minimal";
35
+ classic: "classic";
36
36
  }>>;
37
37
  energy: z.ZodOptional<z.ZodEnum<{
38
38
  calm: "calm";
@@ -54,22 +54,22 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
54
54
  buttonSystem: z.ZodObject<{
55
55
  global: z.ZodObject<{
56
56
  cornerStyle: z.ZodEnum<{
57
- rounded: "rounded";
58
57
  square: "square";
58
+ rounded: "rounded";
59
59
  pill: "pill";
60
60
  }>;
61
61
  cornerRadius: z.ZodOptional<z.ZodNumber>;
62
62
  shadow: z.ZodEnum<{
63
- medium: "medium";
64
63
  none: "none";
65
64
  low: "low";
66
65
  high: "high";
66
+ medium: "medium";
67
67
  }>;
68
68
  textTransform: z.ZodEnum<{
69
69
  none: "none";
70
+ uppercase: "uppercase";
70
71
  capitalize: "capitalize";
71
72
  lowercase: "lowercase";
72
- uppercase: "uppercase";
73
73
  }>;
74
74
  fontWeight: z.ZodUnion<readonly [z.ZodLiteral<500>, z.ZodLiteral<600>, z.ZodLiteral<700>]>;
75
75
  borderWidth: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
@@ -79,15 +79,15 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
79
79
  }>>;
80
80
  fontSize: z.ZodOptional<z.ZodString>;
81
81
  letterSpacing: z.ZodOptional<z.ZodEnum<{
82
+ tight: "tight";
82
83
  normal: "normal";
83
84
  loose: "loose";
84
- tight: "tight";
85
85
  }>>;
86
86
  italic: z.ZodOptional<z.ZodBoolean>;
87
87
  paddingPreset: z.ZodOptional<z.ZodEnum<{
88
+ default: "default";
88
89
  compact: "compact";
89
90
  spacious: "spacious";
90
- default: "default";
91
91
  }>>;
92
92
  hoverTransform: z.ZodEnum<{
93
93
  none: "none";
@@ -98,8 +98,8 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
98
98
  hoverColor: z.ZodEnum<{
99
99
  none: "none";
100
100
  token: "token";
101
- darken: "darken";
102
101
  brighten: "brighten";
102
+ darken: "darken";
103
103
  saturate: "saturate";
104
104
  }>;
105
105
  hoverColorToken: z.ZodOptional<z.ZodString>;
@@ -111,8 +111,8 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
111
111
  gradientAngle: z.ZodOptional<z.ZodNumber>;
112
112
  gradientSharpness: z.ZodOptional<z.ZodEnum<{
113
113
  medium: "medium";
114
- smooth: "smooth";
115
114
  hard: "hard";
115
+ smooth: "smooth";
116
116
  }>>;
117
117
  }, z.core.$strip>;
118
118
  variants: z.ZodArray<z.ZodObject<{
@@ -143,14 +143,14 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
143
143
  borderRadius: z.ZodOptional<z.ZodString>;
144
144
  shadow: z.ZodOptional<z.ZodObject<{
145
145
  elevation: z.ZodEnum<{
146
- medium: "medium";
147
146
  none: "none";
148
147
  low: "low";
149
148
  high: "high";
149
+ medium: "medium";
150
150
  }>;
151
151
  softness: z.ZodNullable<z.ZodEnum<{
152
- soft: "soft";
153
152
  crisp: "crisp";
153
+ soft: "soft";
154
154
  hard: "hard";
155
155
  }>>;
156
156
  position: z.ZodDefault<z.ZodEnum<{
@@ -259,10 +259,10 @@ export declare const buttonPersonalitySchema: z.ZodObject<{
259
259
  * type-safe. `as const satisfies ...` would also work but produces wider
260
260
  * types at use sites.
261
261
  */
262
- export declare function defineButtonPersonality(input: {
263
- id: string;
262
+ export declare function defineButtonPersonality<const TId extends string>(input: {
263
+ id: TId;
264
264
  name: string;
265
265
  description: string;
266
266
  tags: StyleTags;
267
267
  buttonSystem: ButtonSystem;
268
- }): ButtonPersonality;
268
+ }): ButtonPersonality<ButtonPersonalityId<TId>>;
@@ -88,21 +88,21 @@ export interface ButtonBorder {
88
88
  colorToken: string;
89
89
  }
90
90
  export declare const cornerStyleSchema: z.ZodEnum<{
91
- rounded: "rounded";
92
91
  square: "square";
92
+ rounded: "rounded";
93
93
  pill: "pill";
94
94
  }>;
95
95
  export declare const shadowSizeSchema: z.ZodEnum<{
96
- medium: "medium";
97
96
  none: "none";
98
97
  low: "low";
99
98
  high: "high";
99
+ medium: "medium";
100
100
  }>;
101
101
  export declare const textTransformSchema: z.ZodEnum<{
102
102
  none: "none";
103
+ uppercase: "uppercase";
103
104
  capitalize: "capitalize";
104
105
  lowercase: "lowercase";
105
- uppercase: "uppercase";
106
106
  }>;
107
107
  export declare const fontWeightSchema: z.ZodUnion<readonly [z.ZodLiteral<500>, z.ZodLiteral<600>, z.ZodLiteral<700>]>;
108
108
  export declare const buttonTypographySchema: z.ZodEnum<{
@@ -110,9 +110,9 @@ export declare const buttonTypographySchema: z.ZodEnum<{
110
110
  heading: "heading";
111
111
  }>;
112
112
  export declare const letterSpacingSchema: z.ZodEnum<{
113
+ tight: "tight";
113
114
  normal: "normal";
114
115
  loose: "loose";
115
- tight: "tight";
116
116
  }>;
117
117
  export declare const hoverTransformSchema: z.ZodEnum<{
118
118
  none: "none";
@@ -123,14 +123,14 @@ export declare const hoverTransformSchema: z.ZodEnum<{
123
123
  export declare const hoverColorSchema: z.ZodEnum<{
124
124
  none: "none";
125
125
  token: "token";
126
- darken: "darken";
127
126
  brighten: "brighten";
127
+ darken: "darken";
128
128
  saturate: "saturate";
129
129
  }>;
130
130
  export declare const buttonPaddingPresetSchema: z.ZodEnum<{
131
+ default: "default";
131
132
  compact: "compact";
132
133
  spacious: "spacious";
133
- default: "default";
134
134
  }>;
135
135
  export declare const gradientStyleSchema: z.ZodEnum<{
136
136
  linear: "linear";
@@ -139,24 +139,24 @@ export declare const gradientStyleSchema: z.ZodEnum<{
139
139
  }>;
140
140
  export declare const gradientSharpnessSchema: z.ZodEnum<{
141
141
  medium: "medium";
142
- smooth: "smooth";
143
142
  hard: "hard";
143
+ smooth: "smooth";
144
144
  }>;
145
145
  export declare const prioritySchema: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
146
146
  export declare const variantRoleSchema: z.ZodEnum<{
147
147
  link: "link";
148
148
  primary: "primary";
149
149
  secondary: "secondary";
150
- outline: "outline";
151
150
  accent: "accent";
151
+ outline: "outline";
152
152
  ghost: "ghost";
153
153
  tertiary: "tertiary";
154
154
  }>;
155
155
  export declare const buttonSizeNameSchema: z.ZodEnum<{
156
- sm: "sm";
157
156
  md: "md";
158
157
  lg: "lg";
159
158
  xl: "xl";
159
+ sm: "sm";
160
160
  }>;
161
161
  export declare const paddingShorthandSchema: z.ZodString;
162
162
  export declare const buttonSizeConfigSchema: z.ZodObject<{
@@ -223,22 +223,22 @@ export declare const buttonSizesSchema: z.ZodPipe<z.ZodObject<{
223
223
  }>>;
224
224
  export declare const buttonGlobalSettingsSchema: z.ZodObject<{
225
225
  cornerStyle: z.ZodEnum<{
226
- rounded: "rounded";
227
226
  square: "square";
227
+ rounded: "rounded";
228
228
  pill: "pill";
229
229
  }>;
230
230
  cornerRadius: z.ZodOptional<z.ZodNumber>;
231
231
  shadow: z.ZodEnum<{
232
- medium: "medium";
233
232
  none: "none";
234
233
  low: "low";
235
234
  high: "high";
235
+ medium: "medium";
236
236
  }>;
237
237
  textTransform: z.ZodEnum<{
238
238
  none: "none";
239
+ uppercase: "uppercase";
239
240
  capitalize: "capitalize";
240
241
  lowercase: "lowercase";
241
- uppercase: "uppercase";
242
242
  }>;
243
243
  fontWeight: z.ZodUnion<readonly [z.ZodLiteral<500>, z.ZodLiteral<600>, z.ZodLiteral<700>]>;
244
244
  borderWidth: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
@@ -248,15 +248,15 @@ export declare const buttonGlobalSettingsSchema: z.ZodObject<{
248
248
  }>>;
249
249
  fontSize: z.ZodOptional<z.ZodString>;
250
250
  letterSpacing: z.ZodOptional<z.ZodEnum<{
251
+ tight: "tight";
251
252
  normal: "normal";
252
253
  loose: "loose";
253
- tight: "tight";
254
254
  }>>;
255
255
  italic: z.ZodOptional<z.ZodBoolean>;
256
256
  paddingPreset: z.ZodOptional<z.ZodEnum<{
257
+ default: "default";
257
258
  compact: "compact";
258
259
  spacious: "spacious";
259
- default: "default";
260
260
  }>>;
261
261
  hoverTransform: z.ZodEnum<{
262
262
  none: "none";
@@ -267,8 +267,8 @@ export declare const buttonGlobalSettingsSchema: z.ZodObject<{
267
267
  hoverColor: z.ZodEnum<{
268
268
  none: "none";
269
269
  token: "token";
270
- darken: "darken";
271
270
  brighten: "brighten";
271
+ darken: "darken";
272
272
  saturate: "saturate";
273
273
  }>;
274
274
  hoverColorToken: z.ZodOptional<z.ZodString>;
@@ -280,8 +280,8 @@ export declare const buttonGlobalSettingsSchema: z.ZodObject<{
280
280
  gradientAngle: z.ZodOptional<z.ZodNumber>;
281
281
  gradientSharpness: z.ZodOptional<z.ZodEnum<{
282
282
  medium: "medium";
283
- smooth: "smooth";
284
283
  hard: "hard";
284
+ smooth: "smooth";
285
285
  }>>;
286
286
  }, z.core.$strip>;
287
287
  export declare const gradientDirectionSchema: z.ZodEnum<{
@@ -380,14 +380,14 @@ export declare const buttonVariantSchema: z.ZodObject<{
380
380
  borderRadius: z.ZodOptional<z.ZodString>;
381
381
  shadow: z.ZodOptional<z.ZodObject<{
382
382
  elevation: z.ZodEnum<{
383
- medium: "medium";
384
383
  none: "none";
385
384
  low: "low";
386
385
  high: "high";
386
+ medium: "medium";
387
387
  }>;
388
388
  softness: z.ZodNullable<z.ZodEnum<{
389
- soft: "soft";
390
389
  crisp: "crisp";
390
+ soft: "soft";
391
391
  hard: "hard";
392
392
  }>>;
393
393
  position: z.ZodDefault<z.ZodEnum<{
@@ -440,22 +440,22 @@ export declare const buttonVariantSchema: z.ZodObject<{
440
440
  export declare const buttonSystemSchema: z.ZodObject<{
441
441
  global: z.ZodObject<{
442
442
  cornerStyle: z.ZodEnum<{
443
- rounded: "rounded";
444
443
  square: "square";
444
+ rounded: "rounded";
445
445
  pill: "pill";
446
446
  }>;
447
447
  cornerRadius: z.ZodOptional<z.ZodNumber>;
448
448
  shadow: z.ZodEnum<{
449
- medium: "medium";
450
449
  none: "none";
451
450
  low: "low";
452
451
  high: "high";
452
+ medium: "medium";
453
453
  }>;
454
454
  textTransform: z.ZodEnum<{
455
455
  none: "none";
456
+ uppercase: "uppercase";
456
457
  capitalize: "capitalize";
457
458
  lowercase: "lowercase";
458
- uppercase: "uppercase";
459
459
  }>;
460
460
  fontWeight: z.ZodUnion<readonly [z.ZodLiteral<500>, z.ZodLiteral<600>, z.ZodLiteral<700>]>;
461
461
  borderWidth: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
@@ -465,15 +465,15 @@ export declare const buttonSystemSchema: z.ZodObject<{
465
465
  }>>;
466
466
  fontSize: z.ZodOptional<z.ZodString>;
467
467
  letterSpacing: z.ZodOptional<z.ZodEnum<{
468
+ tight: "tight";
468
469
  normal: "normal";
469
470
  loose: "loose";
470
- tight: "tight";
471
471
  }>>;
472
472
  italic: z.ZodOptional<z.ZodBoolean>;
473
473
  paddingPreset: z.ZodOptional<z.ZodEnum<{
474
+ default: "default";
474
475
  compact: "compact";
475
476
  spacious: "spacious";
476
- default: "default";
477
477
  }>>;
478
478
  hoverTransform: z.ZodEnum<{
479
479
  none: "none";
@@ -484,8 +484,8 @@ export declare const buttonSystemSchema: z.ZodObject<{
484
484
  hoverColor: z.ZodEnum<{
485
485
  none: "none";
486
486
  token: "token";
487
- darken: "darken";
488
487
  brighten: "brighten";
488
+ darken: "darken";
489
489
  saturate: "saturate";
490
490
  }>;
491
491
  hoverColorToken: z.ZodOptional<z.ZodString>;
@@ -497,8 +497,8 @@ export declare const buttonSystemSchema: z.ZodObject<{
497
497
  gradientAngle: z.ZodOptional<z.ZodNumber>;
498
498
  gradientSharpness: z.ZodOptional<z.ZodEnum<{
499
499
  medium: "medium";
500
- smooth: "smooth";
501
500
  hard: "hard";
501
+ smooth: "smooth";
502
502
  }>>;
503
503
  }, z.core.$strip>;
504
504
  variants: z.ZodArray<z.ZodObject<{
@@ -529,14 +529,14 @@ export declare const buttonSystemSchema: z.ZodObject<{
529
529
  borderRadius: z.ZodOptional<z.ZodString>;
530
530
  shadow: z.ZodOptional<z.ZodObject<{
531
531
  elevation: z.ZodEnum<{
532
- medium: "medium";
533
532
  none: "none";
534
533
  low: "low";
535
534
  high: "high";
535
+ medium: "medium";
536
536
  }>;
537
537
  softness: z.ZodNullable<z.ZodEnum<{
538
- soft: "soft";
539
538
  crisp: "crisp";
539
+ soft: "soft";
540
540
  hard: "hard";
541
541
  }>>;
542
542
  position: z.ZodDefault<z.ZodEnum<{
@@ -28,12 +28,12 @@ export interface CardBorder {
28
28
  colorToken: string;
29
29
  }
30
30
  export declare const cardSpacingSchema: z.ZodEnum<{
31
- medium: "medium";
32
31
  none: "none";
33
32
  compact: "compact";
34
- cozy: "cozy";
35
- comfortable: "comfortable";
33
+ medium: "medium";
36
34
  spacious: "spacious";
35
+ comfortable: "comfortable";
36
+ cozy: "cozy";
37
37
  }>;
38
38
  export declare const gradientDirectionSchema: z.ZodEnum<{
39
39
  "to-r": "to-r";
@@ -95,23 +95,23 @@ export declare const cardVariantSchema: z.ZodObject<{
95
95
  type: z.ZodLiteral<"transparent">;
96
96
  }, z.core.$strip>], "type">;
97
97
  spacing: z.ZodEnum<{
98
- medium: "medium";
99
98
  none: "none";
100
99
  compact: "compact";
101
- cozy: "cozy";
102
- comfortable: "comfortable";
100
+ medium: "medium";
103
101
  spacious: "spacious";
102
+ comfortable: "comfortable";
103
+ cozy: "cozy";
104
104
  }>;
105
105
  shadow: z.ZodOptional<z.ZodObject<{
106
106
  elevation: z.ZodEnum<{
107
- medium: "medium";
108
107
  none: "none";
109
108
  low: "low";
110
109
  high: "high";
110
+ medium: "medium";
111
111
  }>;
112
112
  softness: z.ZodNullable<z.ZodEnum<{
113
- soft: "soft";
114
113
  crisp: "crisp";
114
+ soft: "soft";
115
115
  hard: "hard";
116
116
  }>>;
117
117
  position: z.ZodDefault<z.ZodEnum<{
@@ -120,10 +120,10 @@ export declare const cardVariantSchema: z.ZodObject<{
120
120
  }>>;
121
121
  }, z.core.$strip>>;
122
122
  corners: z.ZodOptional<z.ZodEnum<{
123
- rounded: "rounded";
123
+ soft: "soft";
124
124
  square: "square";
125
+ rounded: "rounded";
125
126
  pill: "pill";
126
- soft: "soft";
127
127
  }>>;
128
128
  border: z.ZodOptional<z.ZodObject<{
129
129
  widthClass: z.ZodString;
@@ -157,23 +157,23 @@ export declare const cardSystemSchema: z.ZodObject<{
157
157
  type: z.ZodLiteral<"transparent">;
158
158
  }, z.core.$strip>], "type">;
159
159
  spacing: z.ZodEnum<{
160
- medium: "medium";
161
160
  none: "none";
162
161
  compact: "compact";
163
- cozy: "cozy";
164
- comfortable: "comfortable";
162
+ medium: "medium";
165
163
  spacious: "spacious";
164
+ comfortable: "comfortable";
165
+ cozy: "cozy";
166
166
  }>;
167
167
  shadow: z.ZodOptional<z.ZodObject<{
168
168
  elevation: z.ZodEnum<{
169
- medium: "medium";
170
169
  none: "none";
171
170
  low: "low";
172
171
  high: "high";
172
+ medium: "medium";
173
173
  }>;
174
174
  softness: z.ZodNullable<z.ZodEnum<{
175
- soft: "soft";
176
175
  crisp: "crisp";
176
+ soft: "soft";
177
177
  hard: "hard";
178
178
  }>>;
179
179
  position: z.ZodDefault<z.ZodEnum<{
@@ -182,10 +182,10 @@ export declare const cardSystemSchema: z.ZodObject<{
182
182
  }>>;
183
183
  }, z.core.$strip>>;
184
184
  corners: z.ZodOptional<z.ZodEnum<{
185
- rounded: "rounded";
185
+ soft: "soft";
186
186
  square: "square";
187
+ rounded: "rounded";
187
188
  pill: "pill";
188
- soft: "soft";
189
189
  }>>;
190
190
  border: z.ZodOptional<z.ZodObject<{
191
191
  widthClass: z.ZodString;