@riverbankcms/sdk 0.103.0 → 0.104.1
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-DkNpCPja.mjs → PreviewEditorSidebar-CmaPXdKu.mjs} +148 -128
- package/dist/{PreviewEditorUI-DeNKtqk3.mjs → PreviewEditorUI-C5xRTh2b.mjs} +3 -3
- package/dist/{PreviewQueryProvider-ZF6TXq5Q.mjs → PreviewQueryProvider-CStABBUh.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-5bCsXK2y.mjs → SdkPreviewModeRuntime-Eks51NcN.mjs} +1204 -566
- package/dist/{SiteChromeCustomizeContext-CO1sTK_W.mjs → SiteChromeCustomizeContext-Bt8zb3qu.mjs} +5330 -4533
- package/dist/_dts/api/src/bookingVerticals.d.ts +64 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +6 -3
- package/dist/_dts/api/src/endpoints.d.ts +10 -3
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/siteIcons.d.ts +39 -43
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +36 -7
- package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +3 -3
- package/dist/_dts/block-form/src/widgets/SliderField/sliderValue.d.ts +36 -0
- package/dist/_dts/block-form/src/widgets/utils/readNumericUiConfig.d.ts +3 -0
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +29 -29
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -0
- package/dist/_dts/blocks/src/system/icons/generatedAssets.d.ts +28 -0
- package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/icons/value.d.ts +3 -6
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +240 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/stores/generatedIconAssetsStore.d.ts +9 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +208 -0
- package/dist/_dts/editor/src/index.d.ts +3 -1
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +14 -6
- package/dist/_dts/editor/src/primitives/rich-text/RichTextToolbar.d.ts +23 -4
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +6 -0
- package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextLink.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/rich-text/paste.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +7 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +2 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -3
- package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +1 -5
- package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +25 -19
- package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +32 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/GeneratedIconLibraryContext.d.ts +28 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/index.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/loaders.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/CustomizeBackgroundControlRows.d.ts +15 -0
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +44 -18
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +4 -5
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +22 -1
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +12 -4
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +0 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +9 -9
- package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -0
- package/dist/_dts/theme-core/src/palette/colors.d.ts +84 -0
- package/dist/_dts/theme-core/src/palette/{variants → curated}/brand-led.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/{variants → curated}/high-contrast.d.ts +9 -18
- package/dist/_dts/theme-core/src/palette/{variants → curated}/index.d.ts +67 -119
- package/dist/_dts/theme-core/src/palette/{variants → curated}/soft-natural.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/{variants → curated}/types.d.ts +50 -60
- package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-dark.d.ts +6 -12
- package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-neutral.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +45 -0
- package/dist/_dts/theme-core/src/palette/index.d.ts +25 -14
- package/dist/_dts/theme-core/src/palette/legacyRuntimeProjection.d.ts +55 -0
- package/dist/_dts/theme-core/src/palette/legacySelection.d.ts +34 -0
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +58 -0
- package/dist/_dts/theme-core/src/palette/paletteCompatibilityTransition.d.ts +232 -0
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +118 -0
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +50 -0
- package/dist/_dts/theme-core/src/palette/selection.d.ts +72 -0
- package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +34 -0
- package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +58 -0
- package/dist/_dts/theme-core/src/schema.d.ts +9 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +22 -22
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +31 -9
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +22 -16
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +6 -5
- package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +21 -0
- package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +2 -1
- package/dist/cli/index.mjs +7805 -7449
- package/dist/client/{DiscountCodeDisclosure-ChVZwVtS.mjs → DiscountCodeDisclosure-Dit2aItR.mjs} +1 -1
- package/dist/client/{EventCombined.client-PZtXbH6R.mjs → EventCombined.client-BnREyCjf.mjs} +3 -3
- package/dist/client/{EventListing.client-C4AMTXec.mjs → EventListing.client-0uHld51x.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-B0w8_i0u.mjs → LeafletStaticMap-DJcvSfmj.mjs} +1 -1
- package/dist/client/{MagicLinkForm-DF0ZGhIu.mjs → MagicLinkForm-EAsIktfw.mjs} +2 -2
- package/dist/client/{StepIndicator-PccQ89Ct.mjs → StepIndicator-CRR17tYI.mjs} +2 -2
- package/dist/client/{accordion-CTNWT1lk.mjs → accordion-B47HIuuH.mjs} +1 -1
- package/dist/client/{bookingForm-DYixwPqP.mjs → bookingForm-I1E-8F9P.mjs} +6 -6
- package/dist/client/{buttons-CySQwlFs.mjs → buttons-BbPn8OKA.mjs} +1 -1
- package/dist/client/{carousel-W75iYR0M.mjs → carousel-OlM7SyBs.mjs} +1 -1
- package/dist/client/{cart-Ca_DGWQq.mjs → cart-BKpG5jz6.mjs} +3 -3
- package/dist/client/{checkout-STgKTsNh.mjs → checkout-Dmmr6qoU.mjs} +3 -3
- package/dist/client/client.mjs +8706 -8320
- package/dist/client/{courseRegistration-DQI1cu1u.mjs → courseRegistration-CflZiqGk.mjs} +7 -7
- package/dist/client/{eventCalendar-BJrHpofg.mjs → eventCalendar-BvoLWcp-.mjs} +5 -5
- package/dist/client/{eventCombined-DPtqBHaH.mjs → eventCombined-DsrO8t_t.mjs} +2 -2
- package/dist/client/{eventDetails-Brt31CDo.mjs → eventDetails-C3hxgcJm.mjs} +3 -3
- package/dist/client/{eventListing-BrClHJOq.mjs → eventListing-C-hb237X.mjs} +2 -2
- package/dist/client/{eventRegistration-DxlNlVUC.mjs → eventRegistration-B0gyzDGi.mjs} +7 -7
- package/dist/client/{form-Vp5cGzDF.mjs → form-C_RUi6oJ.mjs} +2 -2
- package/dist/client/{headerSection-DL2xjRgW.mjs → headerSection-IKQiD2U0.mjs} +3 -3
- package/dist/client/hooks.mjs +4845 -4663
- package/dist/client/{locationMap-B0EjoXQS.mjs → locationMap-8ZBrMzRJ.mjs} +2 -2
- package/dist/client/{newsletterForm-BlV9VRlq.mjs → newsletterForm-CYk3ucwj.mjs} +2 -2
- package/dist/client/{pricing-DmRD7Tjx.mjs → pricing-B5GmvfIH.mjs} +1 -1
- package/dist/client/{productDetail-BLTQsY2f.mjs → productDetail-BjS2Dqzo.mjs} +3 -3
- package/dist/client/{productList-R8lsMpRs.mjs → productList-BOHvC8My.mjs} +3 -3
- package/dist/client/{propsDecoder-DgAshF92.mjs → propsDecoder-WS6UEJwZ.mjs} +7 -0
- package/dist/client/rendering/client.mjs +3606 -3281
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +8569 -8190
- package/dist/client/{shop-DWjyje1s.mjs → shop-CON03-wN.mjs} +6 -6
- package/dist/client/{shop-commerce-CSKCR87d.mjs → shop-commerce-DlqrFgH8.mjs} +5 -5
- package/dist/client/{shop-commerce-store-DxPnE-iN.mjs → shop-commerce-store-l74-Kne6.mjs} +1 -1
- package/dist/client/{shopShared-OOeAkFq7.mjs → shopShared-CQheEXSg.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-Bp6X7XgG.mjs → useDiscountCodeUi-v6OluyWl.mjs} +1 -1
- package/dist/client/{useEventFilters-B489x9TO.mjs → useEventFilters-BqSTcNOf.mjs} +3 -3
- package/dist/client/{usePolling-BKP66stL.mjs → usePolling-DMfADjIF.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +10 -3
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +10 -3
- package/dist/{previewAuthStore-ByPPZqmp.mjs → previewAuthStore-CfquDtTh.mjs} +10 -3
- package/dist/{sdk-runtime-C8whifOy.mjs → sdk-runtime-BUmJ0DaT.mjs} +2 -2
- package/dist/{separator-CM2C5Axs.mjs → separator-Dd-JYok7.mjs} +1 -1
- package/dist/server/components.mjs +9871 -9557
- package/dist/server/config-validation.mjs +4869 -4687
- package/dist/server/config.mjs +4869 -4687
- package/dist/server/data.mjs +4846 -4664
- package/dist/server/index.mjs +11 -4
- package/dist/server/next.mjs +8665 -8344
- package/dist/server/page-converter.mjs +4749 -4575
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +9816 -9586
- package/dist/server/rendering.mjs +9880 -9566
- package/dist/server/routing.mjs +4975 -4704
- package/dist/server/server.mjs +4819 -4630
- package/dist/server/theme-bridge.mjs +207 -114
- package/dist/server/theme.mjs +92 -91
- package/dist/styles/index.css +20 -0
- package/package.json +1 -1
|
@@ -214,7 +214,7 @@ export declare const mockThemes: {
|
|
|
214
214
|
textColor?: string | null | undefined;
|
|
215
215
|
navColor?: string | null | undefined;
|
|
216
216
|
navTypography?: "body" | "heading" | undefined;
|
|
217
|
-
navTextSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
217
|
+
navTextSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
218
218
|
container?: {
|
|
219
219
|
rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
220
220
|
border: boolean;
|
|
@@ -259,7 +259,7 @@ export declare const mockThemes: {
|
|
|
259
259
|
fontWeight: "medium" | "bold" | "regular" | "semibold";
|
|
260
260
|
textTransform: "none" | "uppercase" | "capitalize";
|
|
261
261
|
italic: boolean;
|
|
262
|
-
textSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
262
|
+
textSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
263
263
|
letterSpacing?: "normal" | "wide" | "wider" | "widest" | undefined;
|
|
264
264
|
contrastTreatment?: "none" | "soft-glow" | undefined;
|
|
265
265
|
hoverColorToken?: string | null | undefined;
|
|
@@ -366,7 +366,7 @@ export declare const mockThemes: {
|
|
|
366
366
|
fontWeight: "medium" | "bold" | "regular" | "semibold";
|
|
367
367
|
textTransform: "none" | "uppercase" | "capitalize";
|
|
368
368
|
italic: boolean;
|
|
369
|
-
textSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
369
|
+
textSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
370
370
|
letterSpacing?: "normal" | "wide" | "wider" | "widest" | undefined;
|
|
371
371
|
contrastTreatment?: "none" | "soft-glow" | undefined;
|
|
372
372
|
hoverColorToken?: string | null | undefined;
|
|
@@ -1262,7 +1262,7 @@ export declare const mockThemes: {
|
|
|
1262
1262
|
textColor?: string | null | undefined;
|
|
1263
1263
|
navColor?: string | null | undefined;
|
|
1264
1264
|
navTypography?: "body" | "heading" | undefined;
|
|
1265
|
-
navTextSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
1265
|
+
navTextSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
1266
1266
|
container?: {
|
|
1267
1267
|
rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
1268
1268
|
border: boolean;
|
|
@@ -1307,7 +1307,7 @@ export declare const mockThemes: {
|
|
|
1307
1307
|
fontWeight: "medium" | "bold" | "regular" | "semibold";
|
|
1308
1308
|
textTransform: "none" | "uppercase" | "capitalize";
|
|
1309
1309
|
italic: boolean;
|
|
1310
|
-
textSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
1310
|
+
textSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
1311
1311
|
letterSpacing?: "normal" | "wide" | "wider" | "widest" | undefined;
|
|
1312
1312
|
contrastTreatment?: "none" | "soft-glow" | undefined;
|
|
1313
1313
|
hoverColorToken?: string | null | undefined;
|
|
@@ -1414,7 +1414,7 @@ export declare const mockThemes: {
|
|
|
1414
1414
|
fontWeight: "medium" | "bold" | "regular" | "semibold";
|
|
1415
1415
|
textTransform: "none" | "uppercase" | "capitalize";
|
|
1416
1416
|
italic: boolean;
|
|
1417
|
-
textSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
1417
|
+
textSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
1418
1418
|
letterSpacing?: "normal" | "wide" | "wider" | "widest" | undefined;
|
|
1419
1419
|
contrastTreatment?: "none" | "soft-glow" | undefined;
|
|
1420
1420
|
hoverColorToken?: string | null | undefined;
|
|
@@ -2310,7 +2310,7 @@ export declare const mockThemes: {
|
|
|
2310
2310
|
textColor?: string | null | undefined;
|
|
2311
2311
|
navColor?: string | null | undefined;
|
|
2312
2312
|
navTypography?: "body" | "heading" | undefined;
|
|
2313
|
-
navTextSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
2313
|
+
navTextSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
2314
2314
|
container?: {
|
|
2315
2315
|
rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
2316
2316
|
border: boolean;
|
|
@@ -2355,7 +2355,7 @@ export declare const mockThemes: {
|
|
|
2355
2355
|
fontWeight: "medium" | "bold" | "regular" | "semibold";
|
|
2356
2356
|
textTransform: "none" | "uppercase" | "capitalize";
|
|
2357
2357
|
italic: boolean;
|
|
2358
|
-
textSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
2358
|
+
textSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
2359
2359
|
letterSpacing?: "normal" | "wide" | "wider" | "widest" | undefined;
|
|
2360
2360
|
contrastTreatment?: "none" | "soft-glow" | undefined;
|
|
2361
2361
|
hoverColorToken?: string | null | undefined;
|
|
@@ -2462,7 +2462,7 @@ export declare const mockThemes: {
|
|
|
2462
2462
|
fontWeight: "medium" | "bold" | "regular" | "semibold";
|
|
2463
2463
|
textTransform: "none" | "uppercase" | "capitalize";
|
|
2464
2464
|
italic: boolean;
|
|
2465
|
-
textSize?: "base" | "sm" | "lg" | "xs" | undefined;
|
|
2465
|
+
textSize?: "base" | "sm" | "lg" | "xl" | "xs" | undefined;
|
|
2466
2466
|
letterSpacing?: "normal" | "wide" | "wider" | "widest" | undefined;
|
|
2467
2467
|
contrastTreatment?: "none" | "soft-glow" | undefined;
|
|
2468
2468
|
hoverColorToken?: string | null | undefined;
|
|
@@ -40,6 +40,7 @@ export declare const navLinkTextSizeSchema: z.ZodEnum<{
|
|
|
40
40
|
base: "base";
|
|
41
41
|
sm: "sm";
|
|
42
42
|
lg: "lg";
|
|
43
|
+
xl: "xl";
|
|
43
44
|
xs: "xs";
|
|
44
45
|
}>;
|
|
45
46
|
/**
|
|
@@ -69,6 +70,7 @@ export declare const navLinkStyleSchema: z.ZodObject<{
|
|
|
69
70
|
base: "base";
|
|
70
71
|
sm: "sm";
|
|
71
72
|
lg: "lg";
|
|
73
|
+
xl: "xl";
|
|
72
74
|
xs: "xs";
|
|
73
75
|
}>>;
|
|
74
76
|
letterSpacing: z.ZodOptional<z.ZodEnum<{
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type PaletteTokenName } from '../tokens/themeColorTokens';
|
|
3
|
+
export type HexColor = string & {
|
|
4
|
+
readonly __brand: 'HexColor';
|
|
5
|
+
};
|
|
6
|
+
export type PaletteMode = 'light' | 'dark';
|
|
7
|
+
export type PaletteCanonicalHash = string & {
|
|
8
|
+
readonly __brand: 'PaletteCanonicalHash';
|
|
9
|
+
};
|
|
10
|
+
export type PaletteColors = Readonly<Record<PaletteTokenName, HexColor>>;
|
|
11
|
+
export type PaletteColorEntry = Readonly<{
|
|
12
|
+
name: PaletteTokenName;
|
|
13
|
+
hex: HexColor;
|
|
14
|
+
}>;
|
|
15
|
+
export type PaletteColorsParseError = Readonly<{
|
|
16
|
+
kind: 'unknown-role';
|
|
17
|
+
role: string;
|
|
18
|
+
}> | Readonly<{
|
|
19
|
+
kind: 'duplicate-role';
|
|
20
|
+
role: PaletteTokenName;
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
kind: 'invalid-color';
|
|
23
|
+
role: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
kind: 'missing-roles';
|
|
27
|
+
roles: readonly PaletteTokenName[];
|
|
28
|
+
}>;
|
|
29
|
+
export type PaletteColorsParseResult = Readonly<{
|
|
30
|
+
ok: true;
|
|
31
|
+
colors: PaletteColors;
|
|
32
|
+
}> | Readonly<{
|
|
33
|
+
ok: false;
|
|
34
|
+
error: PaletteColorsParseError;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const hexColorSchema: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
37
|
+
export declare const paletteModeSchema: z.ZodEnum<{
|
|
38
|
+
light: "light";
|
|
39
|
+
dark: "dark";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const paletteCanonicalHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PaletteCanonicalHash, string>>;
|
|
42
|
+
export declare const paletteColorsSchema: z.ZodPipe<z.ZodObject<{
|
|
43
|
+
primary: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
44
|
+
primaryForeground: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
45
|
+
secondary: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
46
|
+
accent: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
47
|
+
success: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
48
|
+
warning: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
49
|
+
destructive: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
50
|
+
background: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
51
|
+
surface: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
52
|
+
surfaceAlt: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
53
|
+
muted: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
54
|
+
text: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
55
|
+
border: z.ZodPipe<z.ZodString, z.ZodTransform<HexColor, string>>;
|
|
56
|
+
}, z.core.$strict>, z.ZodTransform<Readonly<Record<"surface" | "success" | "text" | "warning" | "background" | "accent" | "muted" | "border" | "primary" | "secondary" | "destructive" | "surfaceAlt" | "primaryForeground", HexColor>>, {
|
|
57
|
+
primary: HexColor;
|
|
58
|
+
primaryForeground: HexColor;
|
|
59
|
+
secondary: HexColor;
|
|
60
|
+
accent: HexColor;
|
|
61
|
+
success: HexColor;
|
|
62
|
+
warning: HexColor;
|
|
63
|
+
destructive: HexColor;
|
|
64
|
+
background: HexColor;
|
|
65
|
+
surface: HexColor;
|
|
66
|
+
surfaceAlt: HexColor;
|
|
67
|
+
muted: HexColor;
|
|
68
|
+
text: HexColor;
|
|
69
|
+
border: HexColor;
|
|
70
|
+
}>>;
|
|
71
|
+
export declare function normalizePaletteHex(value: string): HexColor | null;
|
|
72
|
+
export declare function paletteColorsFromEntries(entries: readonly Readonly<{
|
|
73
|
+
name: string;
|
|
74
|
+
hex: string;
|
|
75
|
+
}>[]): PaletteColorsParseResult;
|
|
76
|
+
export declare function requirePaletteColorsFromEntries(entries: readonly Readonly<{
|
|
77
|
+
name: string;
|
|
78
|
+
hex: string;
|
|
79
|
+
}>[]): PaletteColors;
|
|
80
|
+
export declare function paletteColorEntries(colors: PaletteColors): PaletteColorEntry[];
|
|
81
|
+
export declare function applyPaletteColorOverrides(colors: PaletteColors, overrides: Readonly<Partial<Record<PaletteTokenName, HexColor>>> | null | undefined): PaletteColors;
|
|
82
|
+
export declare function paletteColorsEqual(left: PaletteColors, right: PaletteColors): boolean;
|
|
83
|
+
export declare function paletteColorFingerprint(colors: PaletteColors): string;
|
|
84
|
+
export declare function canonicalPaletteHashInput(colors: PaletteColors, mode: PaletteMode): string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* with Clear Professional, Bright Community, Practical Services site styles.
|
|
4
4
|
*/
|
|
5
5
|
export declare const brandLedCool: Readonly<{
|
|
6
|
-
id: import("../../../../blocks/src/index").
|
|
6
|
+
id: import("../../../../blocks/src/index").CuratedPaletteId<"brand-led-cool">;
|
|
7
7
|
name: string;
|
|
8
8
|
description: string;
|
|
9
9
|
tags: Readonly<Partial<Readonly<{
|
|
@@ -12,14 +12,11 @@ export declare const brandLedCool: Readonly<{
|
|
|
12
12
|
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
13
13
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
14
14
|
}>>>;
|
|
15
|
-
mode: "
|
|
16
|
-
colors:
|
|
17
|
-
name: import("../../../../blocks/src/index").PaletteTokenName;
|
|
18
|
-
hex: string;
|
|
19
|
-
}>[];
|
|
15
|
+
mode: import("../../../../blocks/src/index").PaletteMode;
|
|
16
|
+
colors: import("../../../../blocks/src/index").PaletteColors;
|
|
20
17
|
}>;
|
|
21
18
|
export declare const brandLedWarm: Readonly<{
|
|
22
|
-
id: import("../../../../blocks/src/index").
|
|
19
|
+
id: import("../../../../blocks/src/index").CuratedPaletteId<"brand-led-warm">;
|
|
23
20
|
name: string;
|
|
24
21
|
description: string;
|
|
25
22
|
tags: Readonly<Partial<Readonly<{
|
|
@@ -28,14 +25,11 @@ export declare const brandLedWarm: Readonly<{
|
|
|
28
25
|
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
29
26
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
30
27
|
}>>>;
|
|
31
|
-
mode: "
|
|
32
|
-
colors:
|
|
33
|
-
name: import("../../../../blocks/src/index").PaletteTokenName;
|
|
34
|
-
hex: string;
|
|
35
|
-
}>[];
|
|
28
|
+
mode: import("../../../../blocks/src/index").PaletteMode;
|
|
29
|
+
colors: import("../../../../blocks/src/index").PaletteColors;
|
|
36
30
|
}>;
|
|
37
31
|
export declare const brandLedJewel: Readonly<{
|
|
38
|
-
id: import("../../../../blocks/src/index").
|
|
32
|
+
id: import("../../../../blocks/src/index").CuratedPaletteId<"brand-led-jewel">;
|
|
39
33
|
name: string;
|
|
40
34
|
description: string;
|
|
41
35
|
tags: Readonly<Partial<Readonly<{
|
|
@@ -44,14 +38,11 @@ export declare const brandLedJewel: Readonly<{
|
|
|
44
38
|
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
45
39
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
46
40
|
}>>>;
|
|
47
|
-
mode: "
|
|
48
|
-
colors:
|
|
49
|
-
name: import("../../../../blocks/src/index").PaletteTokenName;
|
|
50
|
-
hex: string;
|
|
51
|
-
}>[];
|
|
41
|
+
mode: import("../../../../blocks/src/index").PaletteMode;
|
|
42
|
+
colors: import("../../../../blocks/src/index").PaletteColors;
|
|
52
43
|
}>;
|
|
53
44
|
export declare const brandLedBurgundyGold: Readonly<{
|
|
54
|
-
id: import("../../../../blocks/src/index").
|
|
45
|
+
id: import("../../../../blocks/src/index").CuratedPaletteId<"brand-led-burgundy-gold">;
|
|
55
46
|
name: string;
|
|
56
47
|
description: string;
|
|
57
48
|
tags: Readonly<Partial<Readonly<{
|
|
@@ -60,9 +51,6 @@ export declare const brandLedBurgundyGold: Readonly<{
|
|
|
60
51
|
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
61
52
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
62
53
|
}>>>;
|
|
63
|
-
mode: "
|
|
64
|
-
colors:
|
|
65
|
-
name: import("../../../../blocks/src/index").PaletteTokenName;
|
|
66
|
-
hex: string;
|
|
67
|
-
}>[];
|
|
54
|
+
mode: import("../../../../blocks/src/index").PaletteMode;
|
|
55
|
+
colors: import("../../../../blocks/src/index").PaletteColors;
|
|
68
56
|
}>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Pairs with Quiet Luxury, Bold Launch, Practical Services site styles.
|
|
4
4
|
*/
|
|
5
5
|
export declare const highContrastInk: Readonly<{
|
|
6
|
-
id: import("../../../../blocks/src/index").
|
|
6
|
+
id: import("../../../../blocks/src/index").CuratedPaletteId<"high-contrast-ink">;
|
|
7
7
|
name: string;
|
|
8
8
|
description: string;
|
|
9
9
|
tags: Readonly<Partial<Readonly<{
|
|
@@ -12,14 +12,11 @@ export declare const highContrastInk: Readonly<{
|
|
|
12
12
|
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
13
13
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
14
14
|
}>>>;
|
|
15
|
-
mode: "
|
|
16
|
-
colors:
|
|
17
|
-
name: import("../../../../blocks/src/index").PaletteTokenName;
|
|
18
|
-
hex: string;
|
|
19
|
-
}>[];
|
|
15
|
+
mode: import("../../../../blocks/src/index").PaletteMode;
|
|
16
|
+
colors: import("../../../../blocks/src/index").PaletteColors;
|
|
20
17
|
}>;
|
|
21
18
|
export declare const highContrastCharcoal: Readonly<{
|
|
22
|
-
id: import("../../../../blocks/src/index").
|
|
19
|
+
id: import("../../../../blocks/src/index").CuratedPaletteId<"high-contrast-charcoal">;
|
|
23
20
|
name: string;
|
|
24
21
|
description: string;
|
|
25
22
|
tags: Readonly<Partial<Readonly<{
|
|
@@ -28,14 +25,11 @@ export declare const highContrastCharcoal: Readonly<{
|
|
|
28
25
|
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
29
26
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
30
27
|
}>>>;
|
|
31
|
-
mode: "
|
|
32
|
-
colors:
|
|
33
|
-
name: import("../../../../blocks/src/index").PaletteTokenName;
|
|
34
|
-
hex: string;
|
|
35
|
-
}>[];
|
|
28
|
+
mode: import("../../../../blocks/src/index").PaletteMode;
|
|
29
|
+
colors: import("../../../../blocks/src/index").PaletteColors;
|
|
36
30
|
}>;
|
|
37
31
|
export declare const highContrastMonochrome: Readonly<{
|
|
38
|
-
id: import("../../../../blocks/src/index").
|
|
32
|
+
id: import("../../../../blocks/src/index").CuratedPaletteId<"high-contrast-monochrome">;
|
|
39
33
|
name: string;
|
|
40
34
|
description: string;
|
|
41
35
|
tags: Readonly<Partial<Readonly<{
|
|
@@ -44,9 +38,6 @@ export declare const highContrastMonochrome: Readonly<{
|
|
|
44
38
|
motion: import("../../../../blocks/src/index").StyleMotion;
|
|
45
39
|
era: import("../../../../blocks/src/index").StyleEra;
|
|
46
40
|
}>>>;
|
|
47
|
-
mode: "
|
|
48
|
-
colors:
|
|
49
|
-
name: import("../../../../blocks/src/index").PaletteTokenName;
|
|
50
|
-
hex: string;
|
|
51
|
-
}>[];
|
|
41
|
+
mode: import("../../../../blocks/src/index").PaletteMode;
|
|
42
|
+
colors: import("../../../../blocks/src/index").PaletteColors;
|
|
52
43
|
}>;
|