@riverbankcms/sdk 0.102.0 → 0.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/dist/{PreviewEditorSidebar-BKkhhkJk.mjs → PreviewEditorSidebar-DkNpCPja.mjs} +75 -9
- package/dist/{PreviewEditorUI-DIvTqcqI.mjs → PreviewEditorUI-DeNKtqk3.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-CA2k7Z_T.mjs → SdkPreviewModeRuntime-5bCsXK2y.mjs} +572 -285
- package/dist/{SiteChromeCustomizeContext-Bh9-DtMQ.mjs → SiteChromeCustomizeContext-CO1sTK_W.mjs} +336 -36
- package/dist/_dts/ai/src/contracts/proposals.d.ts +298 -298
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/navigation/contracts.d.ts +6 -6
- package/dist/_dts/api/src/siteBanner.d.ts +2 -2
- package/dist/_dts/blocks/src/PageRenderer.d.ts +6 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +14 -14
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +5 -5
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +227 -227
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/inlineText.d.ts +2 -2
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +177 -177
- package/dist/_dts/blocks/src/system/node/schema.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +154 -18
- package/dist/_dts/db/src/schemas/forms.d.ts +15 -15
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/CustomizeColorTokenPicker.d.ts +27 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +10 -2
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +16 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +3 -2
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +2 -0
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +10 -10
- package/dist/_dts/sdk/src/next/revalidate.d.ts +14 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +3 -4
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +19 -19
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/cards/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +150 -144
- package/dist/_dts/theme-core/src/navigation/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/schema.d.ts +199 -169
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +24 -24
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +26 -1
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +77 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +44 -0
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/toggle.d.ts +2 -2
- package/dist/cli/index.mjs +28 -7
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +9 -1
- package/dist/client/client.mjs +337 -69
- package/dist/client/hooks.mjs +13 -1
- package/dist/client/rendering/client.mjs +25 -4
- package/dist/client/rendering.mjs +336 -68
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-K8Oqj97H.mjs → sdk-runtime-C8whifOy.mjs} +1 -1
- package/dist/{separator-CRoP34pT.mjs → separator-CM2C5Axs.mjs} +1 -1
- package/dist/server/components.mjs +321 -65
- package/dist/server/config-validation.mjs +12 -1
- package/dist/server/config.mjs +12 -1
- package/dist/server/data.mjs +12 -1
- package/dist/server/index.mjs +1 -1
- package/dist/server/next/revalidate.mjs +31 -1
- package/dist/server/next.mjs +325 -66
- package/dist/server/page-converter.mjs +12 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +323 -65
- package/dist/server/rendering.mjs +323 -65
- package/dist/server/routing.mjs +24 -3
- package/dist/server/server.mjs +15 -2
- package/dist/server/theme-bridge.mjs +153 -32
- package/dist/server/theme.mjs +2 -0
- package/dist/styles/index.css +123 -30
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ export type ThemeChromeTextLegibilityPlan = Readonly<{
|
|
|
19
19
|
export declare const backgroundAppearanceQuickColorTokenNames: readonly ["background", "surface", "muted", "primary", "secondary", "accent"];
|
|
20
20
|
export declare const backgroundAppearanceBaseColorTokenNames: readonly ["background", "surface", "surfaceAlt", "muted", "primary", "secondary", "accent", "neutral"];
|
|
21
21
|
export declare const backgroundAppearanceShadeableColorTokenNames: readonly ["primary", "secondary", "accent", "neutral"];
|
|
22
|
-
export declare const backgroundAppearanceColorTokenNames: readonly ("surface" | "
|
|
23
|
-
export declare const backgroundAppearanceAdvancedColorTokenNames: ("surface" | "
|
|
22
|
+
export declare const backgroundAppearanceColorTokenNames: readonly ("surface" | "background" | "accent" | "muted" | "primary" | "secondary" | "surfaceAlt" | "neutral" | "neutral-600" | "neutral-500" | "neutral-800" | "neutral-700" | "neutral-900" | "primary-500" | "primary-400" | "neutral-950" | "primary-300" | "primary-600" | "secondary-600" | "accent-600" | "secondary-500" | "accent-400" | "neutral-400" | "neutral-50" | "neutral-100" | "neutral-200" | "neutral-300" | "secondary-400" | "accent-500" | "primary-100" | "primary-50" | "primary-900" | "secondary-50" | "secondary-900" | "accent-50" | "accent-900" | "primary-800" | "primary-700" | "accent-100" | "accent-200" | "accent-300" | "accent-700" | "accent-800" | "accent-950" | "primary-200" | "primary-950" | "secondary-100" | "secondary-200" | "secondary-300" | "secondary-700" | "secondary-800" | "secondary-950")[];
|
|
23
|
+
export declare const backgroundAppearanceAdvancedColorTokenNames: ("surface" | "background" | "accent" | "muted" | "primary" | "secondary" | "surfaceAlt" | "neutral" | "neutral-600" | "neutral-500" | "neutral-800" | "neutral-700" | "neutral-900" | "primary-500" | "primary-400" | "neutral-950" | "primary-300" | "primary-600" | "secondary-600" | "accent-600" | "secondary-500" | "accent-400" | "neutral-400" | "neutral-50" | "neutral-100" | "neutral-200" | "neutral-300" | "secondary-400" | "accent-500" | "primary-100" | "primary-50" | "primary-900" | "secondary-50" | "secondary-900" | "accent-50" | "accent-900" | "primary-800" | "primary-700" | "accent-100" | "accent-200" | "accent-300" | "accent-700" | "accent-800" | "accent-950" | "primary-200" | "primary-950" | "secondary-100" | "secondary-200" | "secondary-300" | "secondary-700" | "secondary-800" | "secondary-950")[];
|
|
24
24
|
export declare function parseBackgroundAppearanceColorToken(value: unknown): ThemeColorToken | null;
|
|
25
25
|
export declare function foregroundTokenForBackgroundAppearanceColorToken(token: ThemeColorToken): string;
|
|
26
26
|
export declare function planThemeBackgroundTextLegibility(backgroundToken: ThemeColorToken, role?: BackgroundTextLegibilityRole): ThemeBackgroundTextLegibilityPlan;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockDesignMetadata } from './blockFlow';
|
|
2
2
|
import { type PageDesignEditorIssue } from './pageDesignEditorModel';
|
|
3
|
-
import type { CompiledBlockRuntimeFields, SurfaceResolutionContext } from './runtimeCompiler';
|
|
3
|
+
import type { CompiledBlockRuntimeFields, CompiledBoundaryRuntime, SurfaceResolutionContext } from './runtimeCompiler';
|
|
4
4
|
import { type ContentTemplateBlockScope, type ContentTemplateDesignBlockId, type ContentTemplateDesignIntent } from './contentTemplateDesignIntent';
|
|
5
5
|
import type { LayoutVariantKey } from './types';
|
|
6
6
|
export type ContentTemplateRuntimeBlockInput = Readonly<{
|
|
@@ -17,6 +17,7 @@ export type CompiledContentTemplateRuntimeBlock = Readonly<{
|
|
|
17
17
|
}>;
|
|
18
18
|
export type CompiledContentTemplateRuntime = Readonly<{
|
|
19
19
|
blocks: readonly CompiledContentTemplateRuntimeBlock[];
|
|
20
|
+
boundaries: readonly CompiledBoundaryRuntime<ContentTemplateDesignBlockId>[];
|
|
20
21
|
fieldsByBlockId: ReadonlyMap<ContentTemplateDesignBlockId, CompiledBlockRuntimeFields>;
|
|
21
22
|
issues: readonly PageDesignEditorIssue<ContentTemplateDesignBlockId>[];
|
|
22
23
|
}>;
|
|
@@ -139,8 +139,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
139
139
|
}, z.core.$strict>], "kind">;
|
|
140
140
|
itemSurface: z.ZodEnum<{
|
|
141
141
|
flat: "flat";
|
|
142
|
-
none: "none";
|
|
143
142
|
default: "default";
|
|
143
|
+
none: "none";
|
|
144
144
|
editorial: "editorial";
|
|
145
145
|
raised: "raised";
|
|
146
146
|
"color-blocked": "color-blocked";
|
|
@@ -183,9 +183,9 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
183
183
|
}>>;
|
|
184
184
|
heroTypographyScale: z.ZodOptional<z.ZodEnum<{
|
|
185
185
|
display: "display";
|
|
186
|
-
poster: "poster";
|
|
187
186
|
editorial: "editorial";
|
|
188
187
|
quiet: "quiet";
|
|
188
|
+
poster: "poster";
|
|
189
189
|
}>>;
|
|
190
190
|
imageSurfaceTreatment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
191
191
|
kind: z.ZodLiteral<"none">;
|
|
@@ -198,8 +198,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
198
198
|
}>;
|
|
199
199
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
200
200
|
soft: "soft";
|
|
201
|
-
strong: "strong";
|
|
202
201
|
balanced: "balanced";
|
|
202
|
+
strong: "strong";
|
|
203
203
|
}>>;
|
|
204
204
|
}, z.core.$strict>, z.ZodObject<{
|
|
205
205
|
kind: z.ZodLiteral<"brand-wash">;
|
|
@@ -210,29 +210,29 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
210
210
|
}>;
|
|
211
211
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
212
212
|
soft: "soft";
|
|
213
|
-
strong: "strong";
|
|
214
213
|
balanced: "balanced";
|
|
214
|
+
strong: "strong";
|
|
215
215
|
}>>;
|
|
216
216
|
}, z.core.$strict>, z.ZodObject<{
|
|
217
217
|
kind: z.ZodLiteral<"neutral-scrim">;
|
|
218
218
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
219
219
|
soft: "soft";
|
|
220
|
-
strong: "strong";
|
|
221
220
|
balanced: "balanced";
|
|
221
|
+
strong: "strong";
|
|
222
222
|
}>>;
|
|
223
223
|
}, z.core.$strict>, z.ZodObject<{
|
|
224
224
|
kind: z.ZodLiteral<"neutral-wash">;
|
|
225
225
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
226
226
|
soft: "soft";
|
|
227
|
-
strong: "strong";
|
|
228
227
|
balanced: "balanced";
|
|
228
|
+
strong: "strong";
|
|
229
229
|
}>>;
|
|
230
230
|
}, z.core.$strict>, z.ZodObject<{
|
|
231
231
|
kind: z.ZodLiteral<"solid-panel">;
|
|
232
232
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
233
233
|
soft: "soft";
|
|
234
|
-
strong: "strong";
|
|
235
234
|
balanced: "balanced";
|
|
235
|
+
strong: "strong";
|
|
236
236
|
}>>;
|
|
237
237
|
}, z.core.$strict>], "kind">>;
|
|
238
238
|
imageSurfaceMotion: z.ZodOptional<z.ZodEnum<{
|
|
@@ -240,8 +240,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
240
240
|
"fixed-frame": "fixed-frame";
|
|
241
241
|
}>>;
|
|
242
242
|
testimonialCardTreatment: z.ZodOptional<z.ZodEnum<{
|
|
243
|
-
"accent-quote": "accent-quote";
|
|
244
243
|
default: "default";
|
|
244
|
+
"accent-quote": "accent-quote";
|
|
245
245
|
}>>;
|
|
246
246
|
tileTreatment: z.ZodOptional<z.ZodEnum<{
|
|
247
247
|
default: "default";
|
|
@@ -254,8 +254,8 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
254
254
|
}>>;
|
|
255
255
|
eyebrowTreatment: z.ZodOptional<z.ZodEnum<{
|
|
256
256
|
accent: "accent";
|
|
257
|
-
plain: "plain";
|
|
258
257
|
pill: "pill";
|
|
258
|
+
plain: "plain";
|
|
259
259
|
"accent-pill": "accent-pill";
|
|
260
260
|
"pill-bounce": "pill-bounce";
|
|
261
261
|
"accent-pill-bounce": "accent-pill-bounce";
|
|
@@ -264,10 +264,10 @@ export declare const blockDesignPlanSchema: z.ZodObject<{
|
|
|
264
264
|
export declare const styleAuthoritySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
265
265
|
kind: z.ZodLiteral<"theme-v2">;
|
|
266
266
|
source: z.ZodEnum<{
|
|
267
|
-
generated: "generated";
|
|
268
|
-
admin: "admin";
|
|
269
267
|
user: "user";
|
|
268
|
+
admin: "admin";
|
|
270
269
|
sdk: "sdk";
|
|
270
|
+
generated: "generated";
|
|
271
271
|
}>;
|
|
272
272
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
273
273
|
templateId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignSystemTemplateId, string>>;
|
|
@@ -297,10 +297,10 @@ export declare const blockRuntimeStyleAuthoritySchema: z.ZodObject<{
|
|
|
297
297
|
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
298
|
kind: z.ZodLiteral<"theme-v2">;
|
|
299
299
|
source: z.ZodEnum<{
|
|
300
|
-
generated: "generated";
|
|
301
|
-
admin: "admin";
|
|
302
300
|
user: "user";
|
|
301
|
+
admin: "admin";
|
|
303
302
|
sdk: "sdk";
|
|
303
|
+
generated: "generated";
|
|
304
304
|
}>;
|
|
305
305
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
306
306
|
templateId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignSystemTemplateId, string>>;
|
|
@@ -357,8 +357,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
357
357
|
}, z.core.$strict>], "kind">;
|
|
358
358
|
itemSurface: z.ZodEnum<{
|
|
359
359
|
flat: "flat";
|
|
360
|
-
none: "none";
|
|
361
360
|
default: "default";
|
|
361
|
+
none: "none";
|
|
362
362
|
editorial: "editorial";
|
|
363
363
|
raised: "raised";
|
|
364
364
|
"color-blocked": "color-blocked";
|
|
@@ -401,9 +401,9 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
401
401
|
}>>;
|
|
402
402
|
heroTypographyScale: z.ZodOptional<z.ZodEnum<{
|
|
403
403
|
display: "display";
|
|
404
|
-
poster: "poster";
|
|
405
404
|
editorial: "editorial";
|
|
406
405
|
quiet: "quiet";
|
|
406
|
+
poster: "poster";
|
|
407
407
|
}>>;
|
|
408
408
|
imageSurfaceTreatment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
409
|
kind: z.ZodLiteral<"none">;
|
|
@@ -416,8 +416,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
416
416
|
}>;
|
|
417
417
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
418
418
|
soft: "soft";
|
|
419
|
-
strong: "strong";
|
|
420
419
|
balanced: "balanced";
|
|
420
|
+
strong: "strong";
|
|
421
421
|
}>>;
|
|
422
422
|
}, z.core.$strict>, z.ZodObject<{
|
|
423
423
|
kind: z.ZodLiteral<"brand-wash">;
|
|
@@ -428,29 +428,29 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
428
428
|
}>;
|
|
429
429
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
430
430
|
soft: "soft";
|
|
431
|
-
strong: "strong";
|
|
432
431
|
balanced: "balanced";
|
|
432
|
+
strong: "strong";
|
|
433
433
|
}>>;
|
|
434
434
|
}, z.core.$strict>, z.ZodObject<{
|
|
435
435
|
kind: z.ZodLiteral<"neutral-scrim">;
|
|
436
436
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
437
437
|
soft: "soft";
|
|
438
|
-
strong: "strong";
|
|
439
438
|
balanced: "balanced";
|
|
439
|
+
strong: "strong";
|
|
440
440
|
}>>;
|
|
441
441
|
}, z.core.$strict>, z.ZodObject<{
|
|
442
442
|
kind: z.ZodLiteral<"neutral-wash">;
|
|
443
443
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
444
444
|
soft: "soft";
|
|
445
|
-
strong: "strong";
|
|
446
445
|
balanced: "balanced";
|
|
446
|
+
strong: "strong";
|
|
447
447
|
}>>;
|
|
448
448
|
}, z.core.$strict>, z.ZodObject<{
|
|
449
449
|
kind: z.ZodLiteral<"solid-panel">;
|
|
450
450
|
intensity: z.ZodOptional<z.ZodEnum<{
|
|
451
451
|
soft: "soft";
|
|
452
|
-
strong: "strong";
|
|
453
452
|
balanced: "balanced";
|
|
453
|
+
strong: "strong";
|
|
454
454
|
}>>;
|
|
455
455
|
}, z.core.$strict>], "kind">>;
|
|
456
456
|
imageSurfaceMotion: z.ZodOptional<z.ZodEnum<{
|
|
@@ -458,8 +458,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
458
458
|
"fixed-frame": "fixed-frame";
|
|
459
459
|
}>>;
|
|
460
460
|
testimonialCardTreatment: z.ZodOptional<z.ZodEnum<{
|
|
461
|
-
"accent-quote": "accent-quote";
|
|
462
461
|
default: "default";
|
|
462
|
+
"accent-quote": "accent-quote";
|
|
463
463
|
}>>;
|
|
464
464
|
tileTreatment: z.ZodOptional<z.ZodEnum<{
|
|
465
465
|
default: "default";
|
|
@@ -472,8 +472,8 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
472
472
|
}>>;
|
|
473
473
|
eyebrowTreatment: z.ZodOptional<z.ZodEnum<{
|
|
474
474
|
accent: "accent";
|
|
475
|
-
plain: "plain";
|
|
476
475
|
pill: "pill";
|
|
476
|
+
plain: "plain";
|
|
477
477
|
"accent-pill": "accent-pill";
|
|
478
478
|
"pill-bounce": "pill-bounce";
|
|
479
479
|
"accent-pill-bounce": "accent-pill-bounce";
|
|
@@ -493,10 +493,10 @@ export declare const persistedPageDesignStateV1Schema: z.ZodObject<{
|
|
|
493
493
|
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
494
494
|
kind: z.ZodLiteral<"theme-v2">;
|
|
495
495
|
source: z.ZodEnum<{
|
|
496
|
-
generated: "generated";
|
|
497
|
-
admin: "admin";
|
|
498
496
|
user: "user";
|
|
497
|
+
admin: "admin";
|
|
499
498
|
sdk: "sdk";
|
|
499
|
+
generated: "generated";
|
|
500
500
|
}>;
|
|
501
501
|
siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
|
|
502
502
|
templateId: z.ZodPipe<z.ZodString, z.ZodTransform<DesignSystemTemplateId, string>>;
|
|
@@ -82,8 +82,8 @@ export declare const generatedBlockDesignIntentSchema: z.ZodObject<{
|
|
|
82
82
|
kind: z.ZodLiteral<"explicit">;
|
|
83
83
|
value: z.ZodEnum<{
|
|
84
84
|
flat: "flat";
|
|
85
|
-
none: "none";
|
|
86
85
|
default: "default";
|
|
86
|
+
none: "none";
|
|
87
87
|
editorial: "editorial";
|
|
88
88
|
raised: "raised";
|
|
89
89
|
"color-blocked": "color-blocked";
|
|
@@ -235,8 +235,8 @@ export declare const generatedPageDesignIntentSchema: z.ZodObject<{
|
|
|
235
235
|
kind: z.ZodLiteral<"explicit">;
|
|
236
236
|
value: z.ZodEnum<{
|
|
237
237
|
flat: "flat";
|
|
238
|
-
none: "none";
|
|
239
238
|
default: "default";
|
|
239
|
+
none: "none";
|
|
240
240
|
editorial: "editorial";
|
|
241
241
|
raised: "raised";
|
|
242
242
|
"color-blocked": "color-blocked";
|
|
@@ -28,6 +28,7 @@ export * from './resolver';
|
|
|
28
28
|
export * from './runtimeCompiler';
|
|
29
29
|
export * from './sectionTransitions';
|
|
30
30
|
export * from './siteChromeBackgrounds';
|
|
31
|
+
export * from './siteChromeNavPreferences';
|
|
31
32
|
export * from './siteStyleThemeCompiler';
|
|
32
33
|
export * from './siteStyleBlockPolicies';
|
|
33
34
|
export * from './sourceCatalogs';
|
|
@@ -6,7 +6,7 @@ import { type CuratedSiteStyle } from './curatedSiteStyles';
|
|
|
6
6
|
import { type CompiledTypographySelection, type KnownTypographyPresetId, type TypographyPresetId, type TypographyPresetResolutionWarning, type TypographySelection } from './typographyPresets';
|
|
7
7
|
import { type FooterLookId, type FooterSelectionContext, type FooterSelectionResult } from './footerLooks';
|
|
8
8
|
import { type HeaderLayoutId, type HeaderSelectionContext, type HeaderLookId, type HeaderSelectionResult, type HeaderStyleId } from './headerLooks';
|
|
9
|
-
import { type CompiledBlockRuntimeFields, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext } from './runtimeCompiler';
|
|
9
|
+
import { type CompiledBlockRuntimeFields, type CompiledBoundaryRuntime, type CompiledPageRuntime, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext } from './runtimeCompiler';
|
|
10
10
|
import { type AppearancePresetId, type DesignBlockId, type SiteStyleId } from './types';
|
|
11
11
|
import { type CuratedSiteStyleTheme } from './siteStyleThemeCompiler';
|
|
12
12
|
export type { CuratedSiteStyleTheme } from './siteStyleThemeCompiler';
|
|
@@ -23,7 +23,7 @@ export { buildPageDesignEditorReadModel, boundaryOptions, pageFlowPresets, type
|
|
|
23
23
|
export { autoDesignChoice, reducePageDesignIntentForUserAction, resolvePageDesignBlockLookChoice, resolvePageDesignBoundaryChoice, userPinnedDesignChoice, type PageDesignChoice, type PageDesignIntent, type PageDesignUserAction, } from './pageDesignIntent';
|
|
24
24
|
export { repairDesignIssue, resolveBlockDesignPlan } from './resolver';
|
|
25
25
|
export { cycleableOptionsFromResolved, deriveDesignCustomizationScope, recommendedDesignOption, type CycleableDesignOption, type CycleableOptions, type DesignCustomizationAuthority, type DesignCustomizationScope, type DesignCustomizationSurface, type DesignCustomizationUnsupportedReason, type DesignOptionIssue, type ResolvedDesignOption, } from './previewCustomization';
|
|
26
|
-
export { compileBlockRuntimeFields, compilePageRuntimeFields, compileTokenRecipes, compileTransitionRuntime, compiledRuntimeStyleFieldNames, defaultComponentRuntimeRules, defaultDesignRuntimeRules, surfaceResolutionContextFromPalette, surfaceResolutionContextFromTheme, stripCompiledRuntimeStyleFields, type CompiledBlockRuntime, type CompiledBlockRuntimeFields, type CompiledPageRuntime, type CompileBlockRuntimeInput, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext, } from './runtimeCompiler';
|
|
26
|
+
export { compileBlockRuntimeFields, compileBoundaryRuntime, compilePageRuntimeFields, compileTokenRecipes, compileTransitionRuntime, compiledRuntimeStyleFieldNames, defaultComponentRuntimeRules, defaultDesignRuntimeRules, surfaceResolutionContextFromPalette, surfaceResolutionContextFromTheme, stripCompiledRuntimeStyleFields, type CompiledBlockRuntime, type CompiledBlockRuntimeFields, type CompiledBoundaryRuntime, type CompiledPageRuntime, type CompileBlockRuntimeInput, type ComponentRuntimeRules, type DesignRuntimeRules, type SemanticSpacing, type SurfaceResolutionContext, } from './runtimeCompiler';
|
|
27
27
|
export { defaultCuratedChoice, requireEntriesForCuratedChoices, resolveCuratedChoice, type CuratedChoice, type CuratedChoiceResolution, } from './curatedChoices';
|
|
28
28
|
export { curatedSiteStyles, defaultButtonPersonalityForSiteStyle, defaultPaletteVariantForSiteStyle, defaultTypographyPresetForSiteStyle, getCuratedSiteStyle, type CuratedSiteStyle, } from './curatedSiteStyles';
|
|
29
29
|
export { asTypographyPresetId, compileTypographySelection, evaluateTypographyFontSlot, findTypographyPreset, parsePersistedTypographyPresetId, typographyPresetIdValues, typographyPresets, type CompiledTypographySelection, type GoogleFontCategory, type KnownTypographyPresetId, type KnownTypographyPresetIdValue, type TypographyFontCapability, type TypographyFontSlot, type TypographyFontSlotFit, type TypographyFontSlotPolicy, type TypographyPreset, type TypographyPresetId, type TypographyPresetResolutionWarning, type TypographySelection, } from './typographyPresets';
|
|
@@ -121,6 +121,7 @@ export type CompileEditorModelRuntimeInput<TBlockId extends DesignBlockId = Desi
|
|
|
121
121
|
*/
|
|
122
122
|
export declare function compileEditorModelRuntime<TBlockId extends DesignBlockId>(input: CompileEditorModelRuntimeInput<TBlockId>): CompiledPageRuntime<TBlockId>;
|
|
123
123
|
export declare function buildEditorModelRuntimeFieldsByBlockId<TBlockId extends DesignBlockId>(input: CompileEditorModelRuntimeInput<TBlockId>): ReadonlyMap<TBlockId, CompiledBlockRuntimeFields>;
|
|
124
|
+
export declare function buildEditorModelRuntimeBoundaries<TBlockId extends DesignBlockId>(input: CompileEditorModelRuntimeInput<TBlockId>): readonly CompiledBoundaryRuntime<TBlockId>[];
|
|
124
125
|
export declare function compileEditorModelRuntimeFieldsForBlock<TBlockId extends DesignBlockId>(input: CompileEditorModelRuntimeInput<TBlockId> & Readonly<{
|
|
125
126
|
blockId: TBlockId;
|
|
126
127
|
}>): CompiledBlockRuntimeFields | null;
|
|
@@ -130,4 +131,5 @@ export type RuntimeContentAdjacency = Readonly<{
|
|
|
130
131
|
nextContent: Record<string, unknown> | null | undefined;
|
|
131
132
|
}>;
|
|
132
133
|
export declare function retargetCompiledRuntimeFieldsForContentAdjacency(fields: CompiledBlockRuntimeFields | null | undefined, adjacency: RuntimeContentAdjacency): CompiledBlockRuntimeFields | null | undefined;
|
|
134
|
+
export declare function retargetCompiledBoundaryRuntimeForContentAdjacency<TBlockId extends string>(boundary: CompiledBoundaryRuntime<TBlockId>, adjacency: RuntimeContentAdjacency): CompiledBoundaryRuntime<TBlockId>;
|
|
133
135
|
export declare function restoreCompiledRuntimeFieldsFromContent<TCurrentContent extends Record<string, unknown>, TPreviousContent extends Record<string, unknown>>(currentContent: TCurrentContent, previousContent: TPreviousContent): Record<string, unknown>;
|
|
@@ -3,7 +3,8 @@ import { type ExpandedPalette } from '../palette/expandPalette';
|
|
|
3
3
|
import { type ButtonPersonalityId } from '../buttons/personalities';
|
|
4
4
|
import { type PaletteOverrides, type PaletteVariantId } from '../palette/variants';
|
|
5
5
|
import { type RuntimeStyleWriteResultForFields, type StyleAuthority } from './designState';
|
|
6
|
-
import { type ContentFrameIntent, type EyebrowTreatment, type FlushFrameTreatment, type PanelFrameTreatment, type ResolvedBlockDesignPlan, type ResolvedPageDesignPlan, type SiteStyleItemSurfaceIntent, type SiteStyleSectionTransitionIntent, type SiteStyleSurfaceIntent, type ThemeTokenRecipes } from './types';
|
|
6
|
+
import { type ContentFrameIntent, type EyebrowTreatment, type FlushFrameTreatment, type DesignBoundaryId, type PanelFrameTreatment, type ResolvedBlockDesignPlan, type ResolvedPageDesignPlan, type SiteStyleItemSurfaceIntent, type SiteStyleSectionTransitionIntent, type SiteStyleSurfaceIntent, type ThemeTokenRecipes } from './types';
|
|
7
|
+
import { type SectionBoundaryRuntimeMetrics } from './sectionTransitions';
|
|
7
8
|
import type { ThemeColorToken } from '../tokens';
|
|
8
9
|
export type SemanticSpacing = 'none' | 'compact' | 'cozy' | 'medium' | 'comfortable' | 'spacious';
|
|
9
10
|
export type SectionPaddingX = 'normal' | 'none';
|
|
@@ -50,6 +51,20 @@ export type CompiledTransitionRuntime = Readonly<{
|
|
|
50
51
|
to: string;
|
|
51
52
|
}>;
|
|
52
53
|
}>;
|
|
54
|
+
export type CompiledBoundaryRuntime<TBlockId extends string = string> = Readonly<{
|
|
55
|
+
boundaryId: DesignBoundaryId | string;
|
|
56
|
+
previousBlockId: TBlockId;
|
|
57
|
+
nextBlockId: TBlockId;
|
|
58
|
+
treatment: SiteStyleSectionTransitionIntent;
|
|
59
|
+
metrics: SectionBoundaryRuntimeMetrics;
|
|
60
|
+
from: CompiledTransitionEndpoint;
|
|
61
|
+
to: CompiledTransitionEndpoint;
|
|
62
|
+
cssVars: Readonly<{
|
|
63
|
+
from: string;
|
|
64
|
+
to: string;
|
|
65
|
+
}>;
|
|
66
|
+
styleGroup: string;
|
|
67
|
+
}>;
|
|
53
68
|
export type HeroLayoutStylesOverride = Readonly<{
|
|
54
69
|
contentAlignment?: 'left' | 'center' | 'right';
|
|
55
70
|
verticalAlignment?: 'top' | 'center' | 'bottom';
|
|
@@ -91,6 +106,7 @@ export type CompiledPageRuntime<TBlockId extends string = string> = Readonly<{
|
|
|
91
106
|
blocks: readonly (CompiledBlockRuntime & Readonly<{
|
|
92
107
|
blockId: TBlockId;
|
|
93
108
|
}>)[];
|
|
109
|
+
boundaries: readonly CompiledBoundaryRuntime<TBlockId>[];
|
|
94
110
|
}>;
|
|
95
111
|
export type SectionAdjacency = Readonly<{
|
|
96
112
|
kind: 'next-section';
|
|
@@ -272,6 +288,15 @@ export declare function compileTransitionRuntime(input: Readonly<{
|
|
|
272
288
|
from: CompiledTransitionEndpoint;
|
|
273
289
|
to: CompiledTransitionEndpoint;
|
|
274
290
|
}>): CompiledTransitionRuntime;
|
|
291
|
+
export declare function compileBoundaryRuntime<TBlockId extends string>(input: Readonly<{
|
|
292
|
+
boundaryId: DesignBoundaryId | string;
|
|
293
|
+
previousBlockId: TBlockId;
|
|
294
|
+
nextBlockId: TBlockId;
|
|
295
|
+
treatment: SiteStyleSectionTransitionIntent;
|
|
296
|
+
fromSurface: SiteStyleSurfaceIntent;
|
|
297
|
+
toSurface: SiteStyleSurfaceIntent;
|
|
298
|
+
rules?: DesignRuntimeRules;
|
|
299
|
+
}>): CompiledBoundaryRuntime<TBlockId> | null;
|
|
275
300
|
/**
|
|
276
301
|
* Compiles block runtime fields and writes them into content only when Theme V2
|
|
277
302
|
* owns that block's runtime-style fields.
|
|
@@ -49,6 +49,83 @@ export type SectionTransitionFamily = Readonly<{
|
|
|
49
49
|
label: string;
|
|
50
50
|
variants: NonEmptyReadonlyArray<SectionTransitionVariant>;
|
|
51
51
|
}>;
|
|
52
|
+
export type SectionBoundaryRuntimeSize = 'compact' | 'medium' | 'large' | 'spacious' | 'expansive';
|
|
53
|
+
export type SectionBoundaryRuntimeMetrics = Readonly<{
|
|
54
|
+
family: Exclude<SectionTransitionFamilyId, 'none'>;
|
|
55
|
+
size: SectionBoundaryRuntimeSize;
|
|
56
|
+
heightCss: string;
|
|
57
|
+
reserveCss: string;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const sectionBoundaryRuntimeMetricsByTransition: {
|
|
60
|
+
readonly none: null;
|
|
61
|
+
readonly 'soft-fade-short': Readonly<{
|
|
62
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
63
|
+
size: SectionBoundaryRuntimeSize;
|
|
64
|
+
heightCss: string;
|
|
65
|
+
reserveCss: string;
|
|
66
|
+
}>;
|
|
67
|
+
readonly 'soft-fade-long': Readonly<{
|
|
68
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
69
|
+
size: SectionBoundaryRuntimeSize;
|
|
70
|
+
heightCss: string;
|
|
71
|
+
reserveCss: string;
|
|
72
|
+
}>;
|
|
73
|
+
readonly 'soft-fade-expansive': Readonly<{
|
|
74
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
75
|
+
size: SectionBoundaryRuntimeSize;
|
|
76
|
+
heightCss: string;
|
|
77
|
+
reserveCss: string;
|
|
78
|
+
}>;
|
|
79
|
+
readonly 'wave-edge': Readonly<{
|
|
80
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
81
|
+
size: SectionBoundaryRuntimeSize;
|
|
82
|
+
heightCss: string;
|
|
83
|
+
reserveCss: string;
|
|
84
|
+
}>;
|
|
85
|
+
readonly 'wave-edge-balanced': Readonly<{
|
|
86
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
87
|
+
size: SectionBoundaryRuntimeSize;
|
|
88
|
+
heightCss: string;
|
|
89
|
+
reserveCss: string;
|
|
90
|
+
}>;
|
|
91
|
+
readonly 'wave-edge-gentle': Readonly<{
|
|
92
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
93
|
+
size: SectionBoundaryRuntimeSize;
|
|
94
|
+
heightCss: string;
|
|
95
|
+
reserveCss: string;
|
|
96
|
+
}>;
|
|
97
|
+
readonly 'wave-edge-bold': Readonly<{
|
|
98
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
99
|
+
size: SectionBoundaryRuntimeSize;
|
|
100
|
+
heightCss: string;
|
|
101
|
+
reserveCss: string;
|
|
102
|
+
}>;
|
|
103
|
+
readonly 'wave-edge-drift': Readonly<{
|
|
104
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
105
|
+
size: SectionBoundaryRuntimeSize;
|
|
106
|
+
heightCss: string;
|
|
107
|
+
reserveCss: string;
|
|
108
|
+
}>;
|
|
109
|
+
readonly 'angle-edge': Readonly<{
|
|
110
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
111
|
+
size: SectionBoundaryRuntimeSize;
|
|
112
|
+
heightCss: string;
|
|
113
|
+
reserveCss: string;
|
|
114
|
+
}>;
|
|
115
|
+
readonly 'angle-edge-subtle': Readonly<{
|
|
116
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
117
|
+
size: SectionBoundaryRuntimeSize;
|
|
118
|
+
heightCss: string;
|
|
119
|
+
reserveCss: string;
|
|
120
|
+
}>;
|
|
121
|
+
readonly 'angle-edge-steep': Readonly<{
|
|
122
|
+
family: Exclude<SectionTransitionFamilyId, "none">;
|
|
123
|
+
size: SectionBoundaryRuntimeSize;
|
|
124
|
+
heightCss: string;
|
|
125
|
+
reserveCss: string;
|
|
126
|
+
}>;
|
|
127
|
+
};
|
|
128
|
+
export declare function boundaryRuntimeMetricsForTransition(transition: SiteStyleSectionTransitionIntent): SectionBoundaryRuntimeMetrics | null;
|
|
52
129
|
export declare const noneBoundaryOption: {
|
|
53
130
|
readonly id: BoundaryOptionId;
|
|
54
131
|
readonly label: "None";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { NavLinkStyle } from '../navigation/types';
|
|
2
|
+
import type { Theme } from '../schema';
|
|
3
|
+
export declare const headerNavTypographyPreferenceValues: readonly ["inherit", "body", "heading"];
|
|
4
|
+
export type HeaderNavTypographyPreference = (typeof headerNavTypographyPreferenceValues)[number];
|
|
5
|
+
export declare const headerNavFontSizePreferenceValues: readonly ["inherit", "xs", "sm", "base", "lg"];
|
|
6
|
+
export type HeaderNavFontSizePreference = (typeof headerNavFontSizePreferenceValues)[number];
|
|
7
|
+
export type HeaderNavPreferences = Readonly<{
|
|
8
|
+
typography: HeaderNavTypographyPreference;
|
|
9
|
+
fontSize: HeaderNavFontSizePreference;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const headerNavTypographyOptions: readonly [{
|
|
12
|
+
readonly value: "inherit";
|
|
13
|
+
readonly label: "Default";
|
|
14
|
+
}, {
|
|
15
|
+
readonly value: "body";
|
|
16
|
+
readonly label: "Body";
|
|
17
|
+
}, {
|
|
18
|
+
readonly value: "heading";
|
|
19
|
+
readonly label: "Heading";
|
|
20
|
+
}];
|
|
21
|
+
export declare const headerNavFontSizeOptions: readonly [{
|
|
22
|
+
readonly value: "inherit";
|
|
23
|
+
readonly label: "Default";
|
|
24
|
+
}, {
|
|
25
|
+
readonly value: "xs";
|
|
26
|
+
readonly label: "Tiny";
|
|
27
|
+
}, {
|
|
28
|
+
readonly value: "sm";
|
|
29
|
+
readonly label: "Small";
|
|
30
|
+
}, {
|
|
31
|
+
readonly value: "base";
|
|
32
|
+
readonly label: "Regular";
|
|
33
|
+
}, {
|
|
34
|
+
readonly value: "lg";
|
|
35
|
+
readonly label: "Large";
|
|
36
|
+
}];
|
|
37
|
+
export declare const defaultHeaderNavPreferences: {
|
|
38
|
+
readonly typography: "inherit";
|
|
39
|
+
readonly fontSize: "inherit";
|
|
40
|
+
};
|
|
41
|
+
export declare function readHeaderNavPreferences(theme: Theme | null | undefined): HeaderNavPreferences;
|
|
42
|
+
export declare function headerNavPreferencesEqual(left: HeaderNavPreferences, right: HeaderNavPreferences): boolean;
|
|
43
|
+
export declare function withHeaderNavThemePreferences(theme: Theme, preferences: HeaderNavPreferences): Theme;
|
|
44
|
+
export declare function mergeHeaderNavTypographyPreference(style: NavLinkStyle, preferences: HeaderNavPreferences): NavLinkStyle;
|
|
@@ -12,9 +12,9 @@ export declare const STYLE_AXIS_VALUES: {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const styleTagsSchema: z.ZodObject<{
|
|
14
14
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
15
|
-
classic: "classic";
|
|
16
15
|
bold: "bold";
|
|
17
16
|
minimal: "minimal";
|
|
17
|
+
classic: "classic";
|
|
18
18
|
}>>;
|
|
19
19
|
energy: z.ZodOptional<z.ZodEnum<{
|
|
20
20
|
calm: "calm";
|
|
@@ -10,13 +10,13 @@ export declare const paletteTokenNameSchema: z.ZodEnum<{
|
|
|
10
10
|
surface: "surface";
|
|
11
11
|
success: "success";
|
|
12
12
|
text: "text";
|
|
13
|
-
accent: "accent";
|
|
14
|
-
primary: "primary";
|
|
15
|
-
secondary: "secondary";
|
|
16
13
|
warning: "warning";
|
|
17
14
|
background: "background";
|
|
15
|
+
accent: "accent";
|
|
18
16
|
muted: "muted";
|
|
19
17
|
border: "border";
|
|
18
|
+
primary: "primary";
|
|
19
|
+
secondary: "secondary";
|
|
20
20
|
destructive: "destructive";
|
|
21
21
|
surfaceAlt: "surfaceAlt";
|
|
22
22
|
primaryForeground: "primaryForeground";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "success" | "
|
|
4
|
+
variant?: "success" | "default" | "warning" | "outline" | "secondary" | "destructive" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "
|
|
4
|
+
variant?: "link" | "default" | "outline" | "secondary" | "destructive" | "ghost" | "onDark" | "onDarkOutline" | "heroGlass" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -4,7 +4,7 @@ import { surfaceVariants } from './surface';
|
|
|
4
4
|
export type CardVariant = VariantProps<typeof surfaceVariants>['variant'];
|
|
5
5
|
export type CardRadius = VariantProps<typeof surfaceVariants>['radius'];
|
|
6
6
|
declare const cardLayoutVariants: (props?: ({
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "default" | "none" | "compact" | "responsive" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export type CardSize = VariantProps<typeof cardLayoutVariants>['size'];
|
|
10
10
|
export type CardProps = React.ComponentProps<'div'> & {
|
|
@@ -2,11 +2,11 @@ import * as React from "react";
|
|
|
2
2
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
4
|
declare const toggleVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
-
variant?: "
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
10
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export { Toggle, toggleVariants };
|