@defai.digital/ax-cli 3.14.10 → 3.14.11
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 -1
- package/dist/agent/execution/tool-executor.d.ts +6 -0
- package/dist/agent/execution/tool-executor.js +72 -0
- package/dist/agent/execution/tool-executor.js.map +1 -1
- package/dist/commands/design.d.ts +18 -0
- package/dist/commands/design.js +495 -0
- package/dist/commands/design.js.map +1 -0
- package/dist/commands/vscode.js +1 -1
- package/dist/commands/vscode.js.map +1 -1
- package/dist/design/figma-alias.d.ts +88 -0
- package/dist/design/figma-alias.js +324 -0
- package/dist/design/figma-alias.js.map +1 -0
- package/dist/design/figma-audit.d.ts +40 -0
- package/dist/design/figma-audit.js +375 -0
- package/dist/design/figma-audit.js.map +1 -0
- package/dist/design/figma-client.d.ts +123 -0
- package/dist/design/figma-client.js +316 -0
- package/dist/design/figma-client.js.map +1 -0
- package/dist/design/figma-map.d.ts +29 -0
- package/dist/design/figma-map.js +274 -0
- package/dist/design/figma-map.js.map +1 -0
- package/dist/design/figma-tokens.d.ts +73 -0
- package/dist/design/figma-tokens.js +431 -0
- package/dist/design/figma-tokens.js.map +1 -0
- package/dist/design/index.d.ts +13 -0
- package/dist/design/index.js +18 -0
- package/dist/design/index.js.map +1 -0
- package/dist/design/types.d.ts +89 -0
- package/dist/design/types.js +9 -0
- package/dist/design/types.js.map +1 -0
- package/dist/hooks/hook-runner.js +2 -2
- package/dist/hooks/hook-runner.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/ipc/vscode-client.js +1 -1
- package/dist/ipc/vscode-client.js.map +1 -1
- package/dist/llm/tools.js +170 -0
- package/dist/llm/tools.js.map +1 -1
- package/dist/mcp/client-v2.js +1 -1
- package/dist/mcp/client-v2.js.map +1 -1
- package/dist/mcp/validation.js +1 -1
- package/dist/mcp/validation.js.map +1 -1
- package/dist/permissions/permission-manager.js +2 -2
- package/dist/permissions/permission-manager.js.map +1 -1
- package/dist/tools/design-tool.d.ts +59 -0
- package/dist/tools/design-tool.js +258 -0
- package/dist/tools/design-tool.js.map +1 -0
- package/dist/ui/hooks/use-input-history.js +1 -1
- package/dist/ui/hooks/use-input-history.js.map +1 -1
- package/dist/ui/utils/image-handler.js +1 -1
- package/dist/ui/utils/image-handler.js.map +1 -1
- package/dist/utils/path-security.js +2 -2
- package/dist/utils/path-security.js.map +1 -1
- package/dist/utils/progress-tracker.js +1 -1
- package/dist/utils/progress-tracker.js.map +1 -1
- package/dist/utils/settings-manager.js +8 -3
- package/dist/utils/settings-manager.js.map +1 -1
- package/node_modules/@ax-cli/schemas/dist/index.d.ts +1 -0
- package/node_modules/@ax-cli/schemas/dist/index.d.ts.map +1 -1
- package/node_modules/@ax-cli/schemas/dist/index.js +2 -2
- package/node_modules/@ax-cli/schemas/dist/index.js.map +1 -1
- package/node_modules/@ax-cli/schemas/dist/public/design/alias-types.d.ts +346 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/alias-types.d.ts.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/alias-types.js +171 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/alias-types.js.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/audit-types.d.ts +545 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/audit-types.d.ts.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/audit-types.js +307 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/audit-types.js.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/figma-types.d.ts +1306 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/figma-types.d.ts.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/figma-types.js +428 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/figma-types.js.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/index.d.ts +13 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/index.d.ts.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/index.js +82 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/index.js.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/token-types.d.ts +1245 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/token-types.d.ts.map +1 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/token-types.js +282 -0
- package/node_modules/@ax-cli/schemas/dist/public/design/token-types.js.map +1 -0
- package/package.json +1 -1
- package/packages/schemas/dist/index.d.ts +1 -0
- package/packages/schemas/dist/index.d.ts.map +1 -1
- package/packages/schemas/dist/index.js +2 -2
- package/packages/schemas/dist/index.js.map +1 -1
- package/packages/schemas/dist/public/design/alias-types.d.ts +346 -0
- package/packages/schemas/dist/public/design/alias-types.d.ts.map +1 -0
- package/packages/schemas/dist/public/design/alias-types.js +171 -0
- package/packages/schemas/dist/public/design/alias-types.js.map +1 -0
- package/packages/schemas/dist/public/design/audit-types.d.ts +545 -0
- package/packages/schemas/dist/public/design/audit-types.d.ts.map +1 -0
- package/packages/schemas/dist/public/design/audit-types.js +307 -0
- package/packages/schemas/dist/public/design/audit-types.js.map +1 -0
- package/packages/schemas/dist/public/design/figma-types.d.ts +1306 -0
- package/packages/schemas/dist/public/design/figma-types.d.ts.map +1 -0
- package/packages/schemas/dist/public/design/figma-types.js +428 -0
- package/packages/schemas/dist/public/design/figma-types.js.map +1 -0
- package/packages/schemas/dist/public/design/index.d.ts +13 -0
- package/packages/schemas/dist/public/design/index.d.ts.map +1 -0
- package/packages/schemas/dist/public/design/index.js +82 -0
- package/packages/schemas/dist/public/design/index.js.map +1 -0
- package/packages/schemas/dist/public/design/token-types.d.ts +1245 -0
- package/packages/schemas/dist/public/design/token-types.d.ts.map +1 -0
- package/packages/schemas/dist/public/design/token-types.js +282 -0
- package/packages/schemas/dist/public/design/token-types.js.map +1 -0
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Token Schemas
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas for design tokens extracted from Figma.
|
|
5
|
+
* Supports JSON and Tailwind output formats.
|
|
6
|
+
*
|
|
7
|
+
* @module design/token-types
|
|
8
|
+
*/
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
/**
|
|
11
|
+
* Token type enumeration
|
|
12
|
+
*/
|
|
13
|
+
export declare const TokenTypeSchema: z.ZodEnum<["color", "dimension", "fontFamily", "fontWeight", "fontSize", "lineHeight", "letterSpacing", "paragraphSpacing", "textCase", "textDecoration", "duration", "cubicBezier", "shadow", "gradient", "border", "opacity", "number", "string", "boolean", "composite"]>;
|
|
14
|
+
export type TokenType = z.infer<typeof TokenTypeSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* Base token schema
|
|
17
|
+
*/
|
|
18
|
+
export declare const BaseTokenSchema: z.ZodObject<{
|
|
19
|
+
value: z.ZodUnknown;
|
|
20
|
+
type: z.ZodEnum<["color", "dimension", "fontFamily", "fontWeight", "fontSize", "lineHeight", "letterSpacing", "paragraphSpacing", "textCase", "textDecoration", "duration", "cubicBezier", "shadow", "gradient", "border", "opacity", "number", "string", "boolean", "composite"]>;
|
|
21
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
type: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite";
|
|
25
|
+
value?: unknown;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
extensions?: Record<string, unknown> | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
type: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite";
|
|
30
|
+
value?: unknown;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
extensions?: Record<string, unknown> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Color token value (hex format)
|
|
36
|
+
*/
|
|
37
|
+
export declare const ColorTokenSchema: z.ZodObject<{
|
|
38
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40
|
+
} & {
|
|
41
|
+
type: z.ZodLiteral<"color">;
|
|
42
|
+
value: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
value: string;
|
|
45
|
+
type: "color";
|
|
46
|
+
description?: string | undefined;
|
|
47
|
+
extensions?: Record<string, unknown> | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
value: string;
|
|
50
|
+
type: "color";
|
|
51
|
+
description?: string | undefined;
|
|
52
|
+
extensions?: Record<string, unknown> | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export type ColorToken = z.infer<typeof ColorTokenSchema>;
|
|
55
|
+
/**
|
|
56
|
+
* Dimension token value (px, rem, em, %, etc.)
|
|
57
|
+
*/
|
|
58
|
+
export declare const DimensionTokenSchema: z.ZodObject<{
|
|
59
|
+
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
|
+
} & {
|
|
62
|
+
type: z.ZodLiteral<"dimension">;
|
|
63
|
+
value: z.ZodString;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
value: string;
|
|
66
|
+
type: "dimension";
|
|
67
|
+
description?: string | undefined;
|
|
68
|
+
extensions?: Record<string, unknown> | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
value: string;
|
|
71
|
+
type: "dimension";
|
|
72
|
+
description?: string | undefined;
|
|
73
|
+
extensions?: Record<string, unknown> | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
export type DimensionToken = z.infer<typeof DimensionTokenSchema>;
|
|
76
|
+
/**
|
|
77
|
+
* Font family token
|
|
78
|
+
*/
|
|
79
|
+
export declare const FontFamilyTokenSchema: z.ZodObject<{
|
|
80
|
+
description: z.ZodOptional<z.ZodString>;
|
|
81
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
82
|
+
} & {
|
|
83
|
+
type: z.ZodLiteral<"fontFamily">;
|
|
84
|
+
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
value: string | string[];
|
|
87
|
+
type: "fontFamily";
|
|
88
|
+
description?: string | undefined;
|
|
89
|
+
extensions?: Record<string, unknown> | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
value: string | string[];
|
|
92
|
+
type: "fontFamily";
|
|
93
|
+
description?: string | undefined;
|
|
94
|
+
extensions?: Record<string, unknown> | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
export type FontFamilyToken = z.infer<typeof FontFamilyTokenSchema>;
|
|
97
|
+
/**
|
|
98
|
+
* Font weight token
|
|
99
|
+
*/
|
|
100
|
+
export declare const FontWeightTokenSchema: z.ZodObject<{
|
|
101
|
+
description: z.ZodOptional<z.ZodString>;
|
|
102
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
103
|
+
} & {
|
|
104
|
+
type: z.ZodLiteral<"fontWeight">;
|
|
105
|
+
value: z.ZodUnion<[z.ZodNumber, z.ZodEnum<["thin", "hairline", "extralight", "ultralight", "light", "normal", "regular", "medium", "semibold", "demibold", "bold", "extrabold", "ultrabold", "black", "heavy"]>]>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
value: number | "thin" | "hairline" | "extralight" | "ultralight" | "light" | "normal" | "regular" | "medium" | "semibold" | "demibold" | "bold" | "extrabold" | "ultrabold" | "black" | "heavy";
|
|
108
|
+
type: "fontWeight";
|
|
109
|
+
description?: string | undefined;
|
|
110
|
+
extensions?: Record<string, unknown> | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
value: number | "thin" | "hairline" | "extralight" | "ultralight" | "light" | "normal" | "regular" | "medium" | "semibold" | "demibold" | "bold" | "extrabold" | "ultrabold" | "black" | "heavy";
|
|
113
|
+
type: "fontWeight";
|
|
114
|
+
description?: string | undefined;
|
|
115
|
+
extensions?: Record<string, unknown> | undefined;
|
|
116
|
+
}>;
|
|
117
|
+
export type FontWeightToken = z.infer<typeof FontWeightTokenSchema>;
|
|
118
|
+
/**
|
|
119
|
+
* Font size token
|
|
120
|
+
*/
|
|
121
|
+
export declare const FontSizeTokenSchema: z.ZodObject<{
|
|
122
|
+
description: z.ZodOptional<z.ZodString>;
|
|
123
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
124
|
+
} & {
|
|
125
|
+
type: z.ZodLiteral<"fontSize">;
|
|
126
|
+
value: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
value: string;
|
|
129
|
+
type: "fontSize";
|
|
130
|
+
description?: string | undefined;
|
|
131
|
+
extensions?: Record<string, unknown> | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
value: string;
|
|
134
|
+
type: "fontSize";
|
|
135
|
+
description?: string | undefined;
|
|
136
|
+
extensions?: Record<string, unknown> | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
export type FontSizeToken = z.infer<typeof FontSizeTokenSchema>;
|
|
139
|
+
/**
|
|
140
|
+
* Line height token
|
|
141
|
+
*/
|
|
142
|
+
export declare const LineHeightTokenSchema: z.ZodObject<{
|
|
143
|
+
description: z.ZodOptional<z.ZodString>;
|
|
144
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
145
|
+
} & {
|
|
146
|
+
type: z.ZodLiteral<"lineHeight">;
|
|
147
|
+
value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
value: string | number;
|
|
150
|
+
type: "lineHeight";
|
|
151
|
+
description?: string | undefined;
|
|
152
|
+
extensions?: Record<string, unknown> | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
value: string | number;
|
|
155
|
+
type: "lineHeight";
|
|
156
|
+
description?: string | undefined;
|
|
157
|
+
extensions?: Record<string, unknown> | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
export type LineHeightToken = z.infer<typeof LineHeightTokenSchema>;
|
|
160
|
+
/**
|
|
161
|
+
* Letter spacing token
|
|
162
|
+
*/
|
|
163
|
+
export declare const LetterSpacingTokenSchema: z.ZodObject<{
|
|
164
|
+
description: z.ZodOptional<z.ZodString>;
|
|
165
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
166
|
+
} & {
|
|
167
|
+
type: z.ZodLiteral<"letterSpacing">;
|
|
168
|
+
value: z.ZodString;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
value: string;
|
|
171
|
+
type: "letterSpacing";
|
|
172
|
+
description?: string | undefined;
|
|
173
|
+
extensions?: Record<string, unknown> | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
value: string;
|
|
176
|
+
type: "letterSpacing";
|
|
177
|
+
description?: string | undefined;
|
|
178
|
+
extensions?: Record<string, unknown> | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
export type LetterSpacingToken = z.infer<typeof LetterSpacingTokenSchema>;
|
|
181
|
+
/**
|
|
182
|
+
* Shadow token value
|
|
183
|
+
*/
|
|
184
|
+
export declare const ShadowValueSchema: z.ZodObject<{
|
|
185
|
+
color: z.ZodString;
|
|
186
|
+
offsetX: z.ZodString;
|
|
187
|
+
offsetY: z.ZodString;
|
|
188
|
+
blur: z.ZodString;
|
|
189
|
+
spread: z.ZodOptional<z.ZodString>;
|
|
190
|
+
inset: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
color: string;
|
|
193
|
+
offsetX: string;
|
|
194
|
+
offsetY: string;
|
|
195
|
+
blur: string;
|
|
196
|
+
spread?: string | undefined;
|
|
197
|
+
inset?: boolean | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
color: string;
|
|
200
|
+
offsetX: string;
|
|
201
|
+
offsetY: string;
|
|
202
|
+
blur: string;
|
|
203
|
+
spread?: string | undefined;
|
|
204
|
+
inset?: boolean | undefined;
|
|
205
|
+
}>;
|
|
206
|
+
export type ShadowValue = z.infer<typeof ShadowValueSchema>;
|
|
207
|
+
export declare const ShadowTokenSchema: z.ZodObject<{
|
|
208
|
+
description: z.ZodOptional<z.ZodString>;
|
|
209
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
210
|
+
} & {
|
|
211
|
+
type: z.ZodLiteral<"shadow">;
|
|
212
|
+
value: z.ZodUnion<[z.ZodObject<{
|
|
213
|
+
color: z.ZodString;
|
|
214
|
+
offsetX: z.ZodString;
|
|
215
|
+
offsetY: z.ZodString;
|
|
216
|
+
blur: z.ZodString;
|
|
217
|
+
spread: z.ZodOptional<z.ZodString>;
|
|
218
|
+
inset: z.ZodOptional<z.ZodBoolean>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
color: string;
|
|
221
|
+
offsetX: string;
|
|
222
|
+
offsetY: string;
|
|
223
|
+
blur: string;
|
|
224
|
+
spread?: string | undefined;
|
|
225
|
+
inset?: boolean | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
color: string;
|
|
228
|
+
offsetX: string;
|
|
229
|
+
offsetY: string;
|
|
230
|
+
blur: string;
|
|
231
|
+
spread?: string | undefined;
|
|
232
|
+
inset?: boolean | undefined;
|
|
233
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
234
|
+
color: z.ZodString;
|
|
235
|
+
offsetX: z.ZodString;
|
|
236
|
+
offsetY: z.ZodString;
|
|
237
|
+
blur: z.ZodString;
|
|
238
|
+
spread: z.ZodOptional<z.ZodString>;
|
|
239
|
+
inset: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
color: string;
|
|
242
|
+
offsetX: string;
|
|
243
|
+
offsetY: string;
|
|
244
|
+
blur: string;
|
|
245
|
+
spread?: string | undefined;
|
|
246
|
+
inset?: boolean | undefined;
|
|
247
|
+
}, {
|
|
248
|
+
color: string;
|
|
249
|
+
offsetX: string;
|
|
250
|
+
offsetY: string;
|
|
251
|
+
blur: string;
|
|
252
|
+
spread?: string | undefined;
|
|
253
|
+
inset?: boolean | undefined;
|
|
254
|
+
}>, "many">]>;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
value: {
|
|
257
|
+
color: string;
|
|
258
|
+
offsetX: string;
|
|
259
|
+
offsetY: string;
|
|
260
|
+
blur: string;
|
|
261
|
+
spread?: string | undefined;
|
|
262
|
+
inset?: boolean | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
color: string;
|
|
265
|
+
offsetX: string;
|
|
266
|
+
offsetY: string;
|
|
267
|
+
blur: string;
|
|
268
|
+
spread?: string | undefined;
|
|
269
|
+
inset?: boolean | undefined;
|
|
270
|
+
}[];
|
|
271
|
+
type: "shadow";
|
|
272
|
+
description?: string | undefined;
|
|
273
|
+
extensions?: Record<string, unknown> | undefined;
|
|
274
|
+
}, {
|
|
275
|
+
value: {
|
|
276
|
+
color: string;
|
|
277
|
+
offsetX: string;
|
|
278
|
+
offsetY: string;
|
|
279
|
+
blur: string;
|
|
280
|
+
spread?: string | undefined;
|
|
281
|
+
inset?: boolean | undefined;
|
|
282
|
+
} | {
|
|
283
|
+
color: string;
|
|
284
|
+
offsetX: string;
|
|
285
|
+
offsetY: string;
|
|
286
|
+
blur: string;
|
|
287
|
+
spread?: string | undefined;
|
|
288
|
+
inset?: boolean | undefined;
|
|
289
|
+
}[];
|
|
290
|
+
type: "shadow";
|
|
291
|
+
description?: string | undefined;
|
|
292
|
+
extensions?: Record<string, unknown> | undefined;
|
|
293
|
+
}>;
|
|
294
|
+
export type ShadowToken = z.infer<typeof ShadowTokenSchema>;
|
|
295
|
+
/**
|
|
296
|
+
* Gradient stop
|
|
297
|
+
*/
|
|
298
|
+
export declare const GradientStopSchema: z.ZodObject<{
|
|
299
|
+
color: z.ZodString;
|
|
300
|
+
position: z.ZodNumber;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
color: string;
|
|
303
|
+
position: number;
|
|
304
|
+
}, {
|
|
305
|
+
color: string;
|
|
306
|
+
position: number;
|
|
307
|
+
}>;
|
|
308
|
+
export type GradientStop = z.infer<typeof GradientStopSchema>;
|
|
309
|
+
/**
|
|
310
|
+
* Gradient token value
|
|
311
|
+
*/
|
|
312
|
+
export declare const GradientValueSchema: z.ZodObject<{
|
|
313
|
+
type: z.ZodEnum<["linear", "radial", "angular", "diamond"]>;
|
|
314
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
316
|
+
color: z.ZodString;
|
|
317
|
+
position: z.ZodNumber;
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
319
|
+
color: string;
|
|
320
|
+
position: number;
|
|
321
|
+
}, {
|
|
322
|
+
color: string;
|
|
323
|
+
position: number;
|
|
324
|
+
}>, "many">;
|
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
|
326
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
327
|
+
stops: {
|
|
328
|
+
color: string;
|
|
329
|
+
position: number;
|
|
330
|
+
}[];
|
|
331
|
+
angle?: number | undefined;
|
|
332
|
+
}, {
|
|
333
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
334
|
+
stops: {
|
|
335
|
+
color: string;
|
|
336
|
+
position: number;
|
|
337
|
+
}[];
|
|
338
|
+
angle?: number | undefined;
|
|
339
|
+
}>;
|
|
340
|
+
export type GradientValue = z.infer<typeof GradientValueSchema>;
|
|
341
|
+
export declare const GradientTokenSchema: z.ZodObject<{
|
|
342
|
+
description: z.ZodOptional<z.ZodString>;
|
|
343
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
344
|
+
} & {
|
|
345
|
+
type: z.ZodLiteral<"gradient">;
|
|
346
|
+
value: z.ZodObject<{
|
|
347
|
+
type: z.ZodEnum<["linear", "radial", "angular", "diamond"]>;
|
|
348
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
350
|
+
color: z.ZodString;
|
|
351
|
+
position: z.ZodNumber;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
color: string;
|
|
354
|
+
position: number;
|
|
355
|
+
}, {
|
|
356
|
+
color: string;
|
|
357
|
+
position: number;
|
|
358
|
+
}>, "many">;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
361
|
+
stops: {
|
|
362
|
+
color: string;
|
|
363
|
+
position: number;
|
|
364
|
+
}[];
|
|
365
|
+
angle?: number | undefined;
|
|
366
|
+
}, {
|
|
367
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
368
|
+
stops: {
|
|
369
|
+
color: string;
|
|
370
|
+
position: number;
|
|
371
|
+
}[];
|
|
372
|
+
angle?: number | undefined;
|
|
373
|
+
}>;
|
|
374
|
+
}, "strip", z.ZodTypeAny, {
|
|
375
|
+
value: {
|
|
376
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
377
|
+
stops: {
|
|
378
|
+
color: string;
|
|
379
|
+
position: number;
|
|
380
|
+
}[];
|
|
381
|
+
angle?: number | undefined;
|
|
382
|
+
};
|
|
383
|
+
type: "gradient";
|
|
384
|
+
description?: string | undefined;
|
|
385
|
+
extensions?: Record<string, unknown> | undefined;
|
|
386
|
+
}, {
|
|
387
|
+
value: {
|
|
388
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
389
|
+
stops: {
|
|
390
|
+
color: string;
|
|
391
|
+
position: number;
|
|
392
|
+
}[];
|
|
393
|
+
angle?: number | undefined;
|
|
394
|
+
};
|
|
395
|
+
type: "gradient";
|
|
396
|
+
description?: string | undefined;
|
|
397
|
+
extensions?: Record<string, unknown> | undefined;
|
|
398
|
+
}>;
|
|
399
|
+
export type GradientToken = z.infer<typeof GradientTokenSchema>;
|
|
400
|
+
/**
|
|
401
|
+
* Border token value
|
|
402
|
+
*/
|
|
403
|
+
export declare const BorderValueSchema: z.ZodObject<{
|
|
404
|
+
color: z.ZodString;
|
|
405
|
+
width: z.ZodString;
|
|
406
|
+
style: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none"]>>;
|
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
width: string;
|
|
409
|
+
color: string;
|
|
410
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
width: string;
|
|
413
|
+
color: string;
|
|
414
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
415
|
+
}>;
|
|
416
|
+
export type BorderValue = z.infer<typeof BorderValueSchema>;
|
|
417
|
+
export declare const BorderTokenSchema: z.ZodObject<{
|
|
418
|
+
description: z.ZodOptional<z.ZodString>;
|
|
419
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
420
|
+
} & {
|
|
421
|
+
type: z.ZodLiteral<"border">;
|
|
422
|
+
value: z.ZodObject<{
|
|
423
|
+
color: z.ZodString;
|
|
424
|
+
width: z.ZodString;
|
|
425
|
+
style: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none"]>>;
|
|
426
|
+
}, "strip", z.ZodTypeAny, {
|
|
427
|
+
width: string;
|
|
428
|
+
color: string;
|
|
429
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
430
|
+
}, {
|
|
431
|
+
width: string;
|
|
432
|
+
color: string;
|
|
433
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
434
|
+
}>;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
value: {
|
|
437
|
+
width: string;
|
|
438
|
+
color: string;
|
|
439
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
440
|
+
};
|
|
441
|
+
type: "border";
|
|
442
|
+
description?: string | undefined;
|
|
443
|
+
extensions?: Record<string, unknown> | undefined;
|
|
444
|
+
}, {
|
|
445
|
+
value: {
|
|
446
|
+
width: string;
|
|
447
|
+
color: string;
|
|
448
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
449
|
+
};
|
|
450
|
+
type: "border";
|
|
451
|
+
description?: string | undefined;
|
|
452
|
+
extensions?: Record<string, unknown> | undefined;
|
|
453
|
+
}>;
|
|
454
|
+
export type BorderToken = z.infer<typeof BorderTokenSchema>;
|
|
455
|
+
/**
|
|
456
|
+
* Number token
|
|
457
|
+
*/
|
|
458
|
+
export declare const NumberTokenSchema: z.ZodObject<{
|
|
459
|
+
description: z.ZodOptional<z.ZodString>;
|
|
460
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
461
|
+
} & {
|
|
462
|
+
type: z.ZodLiteral<"number">;
|
|
463
|
+
value: z.ZodNumber;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
value: number;
|
|
466
|
+
type: "number";
|
|
467
|
+
description?: string | undefined;
|
|
468
|
+
extensions?: Record<string, unknown> | undefined;
|
|
469
|
+
}, {
|
|
470
|
+
value: number;
|
|
471
|
+
type: "number";
|
|
472
|
+
description?: string | undefined;
|
|
473
|
+
extensions?: Record<string, unknown> | undefined;
|
|
474
|
+
}>;
|
|
475
|
+
export type NumberToken = z.infer<typeof NumberTokenSchema>;
|
|
476
|
+
/**
|
|
477
|
+
* Opacity token
|
|
478
|
+
*/
|
|
479
|
+
export declare const OpacityTokenSchema: z.ZodObject<{
|
|
480
|
+
description: z.ZodOptional<z.ZodString>;
|
|
481
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
482
|
+
} & {
|
|
483
|
+
type: z.ZodLiteral<"opacity">;
|
|
484
|
+
value: z.ZodNumber;
|
|
485
|
+
}, "strip", z.ZodTypeAny, {
|
|
486
|
+
value: number;
|
|
487
|
+
type: "opacity";
|
|
488
|
+
description?: string | undefined;
|
|
489
|
+
extensions?: Record<string, unknown> | undefined;
|
|
490
|
+
}, {
|
|
491
|
+
value: number;
|
|
492
|
+
type: "opacity";
|
|
493
|
+
description?: string | undefined;
|
|
494
|
+
extensions?: Record<string, unknown> | undefined;
|
|
495
|
+
}>;
|
|
496
|
+
export type OpacityToken = z.infer<typeof OpacityTokenSchema>;
|
|
497
|
+
/**
|
|
498
|
+
* Union of all token types
|
|
499
|
+
*/
|
|
500
|
+
export declare const DesignTokenSchema: z.ZodUnion<[z.ZodObject<{
|
|
501
|
+
description: z.ZodOptional<z.ZodString>;
|
|
502
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
503
|
+
} & {
|
|
504
|
+
type: z.ZodLiteral<"color">;
|
|
505
|
+
value: z.ZodString;
|
|
506
|
+
}, "strip", z.ZodTypeAny, {
|
|
507
|
+
value: string;
|
|
508
|
+
type: "color";
|
|
509
|
+
description?: string | undefined;
|
|
510
|
+
extensions?: Record<string, unknown> | undefined;
|
|
511
|
+
}, {
|
|
512
|
+
value: string;
|
|
513
|
+
type: "color";
|
|
514
|
+
description?: string | undefined;
|
|
515
|
+
extensions?: Record<string, unknown> | undefined;
|
|
516
|
+
}>, z.ZodObject<{
|
|
517
|
+
description: z.ZodOptional<z.ZodString>;
|
|
518
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
519
|
+
} & {
|
|
520
|
+
type: z.ZodLiteral<"dimension">;
|
|
521
|
+
value: z.ZodString;
|
|
522
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
|
+
value: string;
|
|
524
|
+
type: "dimension";
|
|
525
|
+
description?: string | undefined;
|
|
526
|
+
extensions?: Record<string, unknown> | undefined;
|
|
527
|
+
}, {
|
|
528
|
+
value: string;
|
|
529
|
+
type: "dimension";
|
|
530
|
+
description?: string | undefined;
|
|
531
|
+
extensions?: Record<string, unknown> | undefined;
|
|
532
|
+
}>, z.ZodObject<{
|
|
533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
534
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
535
|
+
} & {
|
|
536
|
+
type: z.ZodLiteral<"fontFamily">;
|
|
537
|
+
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
value: string | string[];
|
|
540
|
+
type: "fontFamily";
|
|
541
|
+
description?: string | undefined;
|
|
542
|
+
extensions?: Record<string, unknown> | undefined;
|
|
543
|
+
}, {
|
|
544
|
+
value: string | string[];
|
|
545
|
+
type: "fontFamily";
|
|
546
|
+
description?: string | undefined;
|
|
547
|
+
extensions?: Record<string, unknown> | undefined;
|
|
548
|
+
}>, z.ZodObject<{
|
|
549
|
+
description: z.ZodOptional<z.ZodString>;
|
|
550
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
551
|
+
} & {
|
|
552
|
+
type: z.ZodLiteral<"fontWeight">;
|
|
553
|
+
value: z.ZodUnion<[z.ZodNumber, z.ZodEnum<["thin", "hairline", "extralight", "ultralight", "light", "normal", "regular", "medium", "semibold", "demibold", "bold", "extrabold", "ultrabold", "black", "heavy"]>]>;
|
|
554
|
+
}, "strip", z.ZodTypeAny, {
|
|
555
|
+
value: number | "thin" | "hairline" | "extralight" | "ultralight" | "light" | "normal" | "regular" | "medium" | "semibold" | "demibold" | "bold" | "extrabold" | "ultrabold" | "black" | "heavy";
|
|
556
|
+
type: "fontWeight";
|
|
557
|
+
description?: string | undefined;
|
|
558
|
+
extensions?: Record<string, unknown> | undefined;
|
|
559
|
+
}, {
|
|
560
|
+
value: number | "thin" | "hairline" | "extralight" | "ultralight" | "light" | "normal" | "regular" | "medium" | "semibold" | "demibold" | "bold" | "extrabold" | "ultrabold" | "black" | "heavy";
|
|
561
|
+
type: "fontWeight";
|
|
562
|
+
description?: string | undefined;
|
|
563
|
+
extensions?: Record<string, unknown> | undefined;
|
|
564
|
+
}>, z.ZodObject<{
|
|
565
|
+
description: z.ZodOptional<z.ZodString>;
|
|
566
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
567
|
+
} & {
|
|
568
|
+
type: z.ZodLiteral<"fontSize">;
|
|
569
|
+
value: z.ZodString;
|
|
570
|
+
}, "strip", z.ZodTypeAny, {
|
|
571
|
+
value: string;
|
|
572
|
+
type: "fontSize";
|
|
573
|
+
description?: string | undefined;
|
|
574
|
+
extensions?: Record<string, unknown> | undefined;
|
|
575
|
+
}, {
|
|
576
|
+
value: string;
|
|
577
|
+
type: "fontSize";
|
|
578
|
+
description?: string | undefined;
|
|
579
|
+
extensions?: Record<string, unknown> | undefined;
|
|
580
|
+
}>, z.ZodObject<{
|
|
581
|
+
description: z.ZodOptional<z.ZodString>;
|
|
582
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
583
|
+
} & {
|
|
584
|
+
type: z.ZodLiteral<"lineHeight">;
|
|
585
|
+
value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
586
|
+
}, "strip", z.ZodTypeAny, {
|
|
587
|
+
value: string | number;
|
|
588
|
+
type: "lineHeight";
|
|
589
|
+
description?: string | undefined;
|
|
590
|
+
extensions?: Record<string, unknown> | undefined;
|
|
591
|
+
}, {
|
|
592
|
+
value: string | number;
|
|
593
|
+
type: "lineHeight";
|
|
594
|
+
description?: string | undefined;
|
|
595
|
+
extensions?: Record<string, unknown> | undefined;
|
|
596
|
+
}>, z.ZodObject<{
|
|
597
|
+
description: z.ZodOptional<z.ZodString>;
|
|
598
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
599
|
+
} & {
|
|
600
|
+
type: z.ZodLiteral<"letterSpacing">;
|
|
601
|
+
value: z.ZodString;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
value: string;
|
|
604
|
+
type: "letterSpacing";
|
|
605
|
+
description?: string | undefined;
|
|
606
|
+
extensions?: Record<string, unknown> | undefined;
|
|
607
|
+
}, {
|
|
608
|
+
value: string;
|
|
609
|
+
type: "letterSpacing";
|
|
610
|
+
description?: string | undefined;
|
|
611
|
+
extensions?: Record<string, unknown> | undefined;
|
|
612
|
+
}>, z.ZodObject<{
|
|
613
|
+
description: z.ZodOptional<z.ZodString>;
|
|
614
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
615
|
+
} & {
|
|
616
|
+
type: z.ZodLiteral<"shadow">;
|
|
617
|
+
value: z.ZodUnion<[z.ZodObject<{
|
|
618
|
+
color: z.ZodString;
|
|
619
|
+
offsetX: z.ZodString;
|
|
620
|
+
offsetY: z.ZodString;
|
|
621
|
+
blur: z.ZodString;
|
|
622
|
+
spread: z.ZodOptional<z.ZodString>;
|
|
623
|
+
inset: z.ZodOptional<z.ZodBoolean>;
|
|
624
|
+
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
color: string;
|
|
626
|
+
offsetX: string;
|
|
627
|
+
offsetY: string;
|
|
628
|
+
blur: string;
|
|
629
|
+
spread?: string | undefined;
|
|
630
|
+
inset?: boolean | undefined;
|
|
631
|
+
}, {
|
|
632
|
+
color: string;
|
|
633
|
+
offsetX: string;
|
|
634
|
+
offsetY: string;
|
|
635
|
+
blur: string;
|
|
636
|
+
spread?: string | undefined;
|
|
637
|
+
inset?: boolean | undefined;
|
|
638
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
639
|
+
color: z.ZodString;
|
|
640
|
+
offsetX: z.ZodString;
|
|
641
|
+
offsetY: z.ZodString;
|
|
642
|
+
blur: z.ZodString;
|
|
643
|
+
spread: z.ZodOptional<z.ZodString>;
|
|
644
|
+
inset: z.ZodOptional<z.ZodBoolean>;
|
|
645
|
+
}, "strip", z.ZodTypeAny, {
|
|
646
|
+
color: string;
|
|
647
|
+
offsetX: string;
|
|
648
|
+
offsetY: string;
|
|
649
|
+
blur: string;
|
|
650
|
+
spread?: string | undefined;
|
|
651
|
+
inset?: boolean | undefined;
|
|
652
|
+
}, {
|
|
653
|
+
color: string;
|
|
654
|
+
offsetX: string;
|
|
655
|
+
offsetY: string;
|
|
656
|
+
blur: string;
|
|
657
|
+
spread?: string | undefined;
|
|
658
|
+
inset?: boolean | undefined;
|
|
659
|
+
}>, "many">]>;
|
|
660
|
+
}, "strip", z.ZodTypeAny, {
|
|
661
|
+
value: {
|
|
662
|
+
color: string;
|
|
663
|
+
offsetX: string;
|
|
664
|
+
offsetY: string;
|
|
665
|
+
blur: string;
|
|
666
|
+
spread?: string | undefined;
|
|
667
|
+
inset?: boolean | undefined;
|
|
668
|
+
} | {
|
|
669
|
+
color: string;
|
|
670
|
+
offsetX: string;
|
|
671
|
+
offsetY: string;
|
|
672
|
+
blur: string;
|
|
673
|
+
spread?: string | undefined;
|
|
674
|
+
inset?: boolean | undefined;
|
|
675
|
+
}[];
|
|
676
|
+
type: "shadow";
|
|
677
|
+
description?: string | undefined;
|
|
678
|
+
extensions?: Record<string, unknown> | undefined;
|
|
679
|
+
}, {
|
|
680
|
+
value: {
|
|
681
|
+
color: string;
|
|
682
|
+
offsetX: string;
|
|
683
|
+
offsetY: string;
|
|
684
|
+
blur: string;
|
|
685
|
+
spread?: string | undefined;
|
|
686
|
+
inset?: boolean | undefined;
|
|
687
|
+
} | {
|
|
688
|
+
color: string;
|
|
689
|
+
offsetX: string;
|
|
690
|
+
offsetY: string;
|
|
691
|
+
blur: string;
|
|
692
|
+
spread?: string | undefined;
|
|
693
|
+
inset?: boolean | undefined;
|
|
694
|
+
}[];
|
|
695
|
+
type: "shadow";
|
|
696
|
+
description?: string | undefined;
|
|
697
|
+
extensions?: Record<string, unknown> | undefined;
|
|
698
|
+
}>, z.ZodObject<{
|
|
699
|
+
description: z.ZodOptional<z.ZodString>;
|
|
700
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
701
|
+
} & {
|
|
702
|
+
type: z.ZodLiteral<"gradient">;
|
|
703
|
+
value: z.ZodObject<{
|
|
704
|
+
type: z.ZodEnum<["linear", "radial", "angular", "diamond"]>;
|
|
705
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
706
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
707
|
+
color: z.ZodString;
|
|
708
|
+
position: z.ZodNumber;
|
|
709
|
+
}, "strip", z.ZodTypeAny, {
|
|
710
|
+
color: string;
|
|
711
|
+
position: number;
|
|
712
|
+
}, {
|
|
713
|
+
color: string;
|
|
714
|
+
position: number;
|
|
715
|
+
}>, "many">;
|
|
716
|
+
}, "strip", z.ZodTypeAny, {
|
|
717
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
718
|
+
stops: {
|
|
719
|
+
color: string;
|
|
720
|
+
position: number;
|
|
721
|
+
}[];
|
|
722
|
+
angle?: number | undefined;
|
|
723
|
+
}, {
|
|
724
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
725
|
+
stops: {
|
|
726
|
+
color: string;
|
|
727
|
+
position: number;
|
|
728
|
+
}[];
|
|
729
|
+
angle?: number | undefined;
|
|
730
|
+
}>;
|
|
731
|
+
}, "strip", z.ZodTypeAny, {
|
|
732
|
+
value: {
|
|
733
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
734
|
+
stops: {
|
|
735
|
+
color: string;
|
|
736
|
+
position: number;
|
|
737
|
+
}[];
|
|
738
|
+
angle?: number | undefined;
|
|
739
|
+
};
|
|
740
|
+
type: "gradient";
|
|
741
|
+
description?: string | undefined;
|
|
742
|
+
extensions?: Record<string, unknown> | undefined;
|
|
743
|
+
}, {
|
|
744
|
+
value: {
|
|
745
|
+
type: "linear" | "radial" | "angular" | "diamond";
|
|
746
|
+
stops: {
|
|
747
|
+
color: string;
|
|
748
|
+
position: number;
|
|
749
|
+
}[];
|
|
750
|
+
angle?: number | undefined;
|
|
751
|
+
};
|
|
752
|
+
type: "gradient";
|
|
753
|
+
description?: string | undefined;
|
|
754
|
+
extensions?: Record<string, unknown> | undefined;
|
|
755
|
+
}>, z.ZodObject<{
|
|
756
|
+
description: z.ZodOptional<z.ZodString>;
|
|
757
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
758
|
+
} & {
|
|
759
|
+
type: z.ZodLiteral<"border">;
|
|
760
|
+
value: z.ZodObject<{
|
|
761
|
+
color: z.ZodString;
|
|
762
|
+
width: z.ZodString;
|
|
763
|
+
style: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted", "double", "groove", "ridge", "inset", "outset", "none"]>>;
|
|
764
|
+
}, "strip", z.ZodTypeAny, {
|
|
765
|
+
width: string;
|
|
766
|
+
color: string;
|
|
767
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
768
|
+
}, {
|
|
769
|
+
width: string;
|
|
770
|
+
color: string;
|
|
771
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
772
|
+
}>;
|
|
773
|
+
}, "strip", z.ZodTypeAny, {
|
|
774
|
+
value: {
|
|
775
|
+
width: string;
|
|
776
|
+
color: string;
|
|
777
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
778
|
+
};
|
|
779
|
+
type: "border";
|
|
780
|
+
description?: string | undefined;
|
|
781
|
+
extensions?: Record<string, unknown> | undefined;
|
|
782
|
+
}, {
|
|
783
|
+
value: {
|
|
784
|
+
width: string;
|
|
785
|
+
color: string;
|
|
786
|
+
style?: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "none" | undefined;
|
|
787
|
+
};
|
|
788
|
+
type: "border";
|
|
789
|
+
description?: string | undefined;
|
|
790
|
+
extensions?: Record<string, unknown> | undefined;
|
|
791
|
+
}>, z.ZodObject<{
|
|
792
|
+
description: z.ZodOptional<z.ZodString>;
|
|
793
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
794
|
+
} & {
|
|
795
|
+
type: z.ZodLiteral<"number">;
|
|
796
|
+
value: z.ZodNumber;
|
|
797
|
+
}, "strip", z.ZodTypeAny, {
|
|
798
|
+
value: number;
|
|
799
|
+
type: "number";
|
|
800
|
+
description?: string | undefined;
|
|
801
|
+
extensions?: Record<string, unknown> | undefined;
|
|
802
|
+
}, {
|
|
803
|
+
value: number;
|
|
804
|
+
type: "number";
|
|
805
|
+
description?: string | undefined;
|
|
806
|
+
extensions?: Record<string, unknown> | undefined;
|
|
807
|
+
}>, z.ZodObject<{
|
|
808
|
+
description: z.ZodOptional<z.ZodString>;
|
|
809
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
810
|
+
} & {
|
|
811
|
+
type: z.ZodLiteral<"opacity">;
|
|
812
|
+
value: z.ZodNumber;
|
|
813
|
+
}, "strip", z.ZodTypeAny, {
|
|
814
|
+
value: number;
|
|
815
|
+
type: "opacity";
|
|
816
|
+
description?: string | undefined;
|
|
817
|
+
extensions?: Record<string, unknown> | undefined;
|
|
818
|
+
}, {
|
|
819
|
+
value: number;
|
|
820
|
+
type: "opacity";
|
|
821
|
+
description?: string | undefined;
|
|
822
|
+
extensions?: Record<string, unknown> | undefined;
|
|
823
|
+
}>, z.ZodObject<{
|
|
824
|
+
value: z.ZodUnknown;
|
|
825
|
+
type: z.ZodEnum<["color", "dimension", "fontFamily", "fontWeight", "fontSize", "lineHeight", "letterSpacing", "paragraphSpacing", "textCase", "textDecoration", "duration", "cubicBezier", "shadow", "gradient", "border", "opacity", "number", "string", "boolean", "composite"]>;
|
|
826
|
+
description: z.ZodOptional<z.ZodString>;
|
|
827
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
828
|
+
}, "strip", z.ZodTypeAny, {
|
|
829
|
+
type: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite";
|
|
830
|
+
value?: unknown;
|
|
831
|
+
description?: string | undefined;
|
|
832
|
+
extensions?: Record<string, unknown> | undefined;
|
|
833
|
+
}, {
|
|
834
|
+
type: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite";
|
|
835
|
+
value?: unknown;
|
|
836
|
+
description?: string | undefined;
|
|
837
|
+
extensions?: Record<string, unknown> | undefined;
|
|
838
|
+
}>]>;
|
|
839
|
+
export type DesignToken = z.infer<typeof DesignTokenSchema>;
|
|
840
|
+
/**
|
|
841
|
+
* Recursive token group (can contain tokens or nested groups)
|
|
842
|
+
*/
|
|
843
|
+
export interface TokenGroup {
|
|
844
|
+
[key: string]: DesignToken | TokenGroup;
|
|
845
|
+
}
|
|
846
|
+
export declare const TokenGroupSchema: z.ZodType<TokenGroup>;
|
|
847
|
+
/**
|
|
848
|
+
* Root token file structure
|
|
849
|
+
*/
|
|
850
|
+
export declare const TokenFileSchema: z.ZodObject<{
|
|
851
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
852
|
+
$description: z.ZodOptional<z.ZodString>;
|
|
853
|
+
$version: z.ZodOptional<z.ZodString>;
|
|
854
|
+
colors: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
855
|
+
spacing: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
856
|
+
sizing: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
857
|
+
typography: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
858
|
+
shadows: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
859
|
+
borders: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
860
|
+
radii: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
861
|
+
opacity: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
862
|
+
zIndex: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
863
|
+
transitions: z.ZodOptional<z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>>;
|
|
864
|
+
}, "strip", z.ZodType<TokenGroup, z.ZodTypeDef, TokenGroup>, {
|
|
865
|
+
opacity?: TokenGroup | undefined;
|
|
866
|
+
$schema?: string | undefined;
|
|
867
|
+
$description?: string | undefined;
|
|
868
|
+
$version?: string | undefined;
|
|
869
|
+
colors?: TokenGroup | undefined;
|
|
870
|
+
spacing?: TokenGroup | undefined;
|
|
871
|
+
sizing?: TokenGroup | undefined;
|
|
872
|
+
typography?: TokenGroup | undefined;
|
|
873
|
+
shadows?: TokenGroup | undefined;
|
|
874
|
+
borders?: TokenGroup | undefined;
|
|
875
|
+
radii?: TokenGroup | undefined;
|
|
876
|
+
zIndex?: TokenGroup | undefined;
|
|
877
|
+
transitions?: TokenGroup | undefined;
|
|
878
|
+
}, {
|
|
879
|
+
opacity?: TokenGroup | undefined;
|
|
880
|
+
$schema?: string | undefined;
|
|
881
|
+
$description?: string | undefined;
|
|
882
|
+
$version?: string | undefined;
|
|
883
|
+
colors?: TokenGroup | undefined;
|
|
884
|
+
spacing?: TokenGroup | undefined;
|
|
885
|
+
sizing?: TokenGroup | undefined;
|
|
886
|
+
typography?: TokenGroup | undefined;
|
|
887
|
+
shadows?: TokenGroup | undefined;
|
|
888
|
+
borders?: TokenGroup | undefined;
|
|
889
|
+
radii?: TokenGroup | undefined;
|
|
890
|
+
zIndex?: TokenGroup | undefined;
|
|
891
|
+
transitions?: TokenGroup | undefined;
|
|
892
|
+
}>;
|
|
893
|
+
export type TokenFile = z.infer<typeof TokenFileSchema>;
|
|
894
|
+
/**
|
|
895
|
+
* Supported output formats
|
|
896
|
+
*/
|
|
897
|
+
export declare const TokenOutputFormatSchema: z.ZodEnum<["json", "tailwind", "css", "scss"]>;
|
|
898
|
+
export type TokenOutputFormat = z.infer<typeof TokenOutputFormatSchema>;
|
|
899
|
+
/**
|
|
900
|
+
* Token extraction options
|
|
901
|
+
*/
|
|
902
|
+
export declare const TokenExtractionOptionsSchema: z.ZodObject<{
|
|
903
|
+
format: z.ZodDefault<z.ZodEnum<["json", "tailwind", "css", "scss"]>>;
|
|
904
|
+
includeDescription: z.ZodDefault<z.ZodBoolean>;
|
|
905
|
+
flattenGroups: z.ZodDefault<z.ZodBoolean>;
|
|
906
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
907
|
+
colorFormat: z.ZodDefault<z.ZodEnum<["hex", "rgb", "hsl"]>>;
|
|
908
|
+
dimensionUnit: z.ZodDefault<z.ZodEnum<["px", "rem"]>>;
|
|
909
|
+
remBase: z.ZodDefault<z.ZodNumber>;
|
|
910
|
+
}, "strip", z.ZodTypeAny, {
|
|
911
|
+
format: "json" | "tailwind" | "css" | "scss";
|
|
912
|
+
includeDescription: boolean;
|
|
913
|
+
flattenGroups: boolean;
|
|
914
|
+
colorFormat: "hex" | "rgb" | "hsl";
|
|
915
|
+
dimensionUnit: "px" | "rem";
|
|
916
|
+
remBase: number;
|
|
917
|
+
prefix?: string | undefined;
|
|
918
|
+
}, {
|
|
919
|
+
format?: "json" | "tailwind" | "css" | "scss" | undefined;
|
|
920
|
+
includeDescription?: boolean | undefined;
|
|
921
|
+
flattenGroups?: boolean | undefined;
|
|
922
|
+
prefix?: string | undefined;
|
|
923
|
+
colorFormat?: "hex" | "rgb" | "hsl" | undefined;
|
|
924
|
+
dimensionUnit?: "px" | "rem" | undefined;
|
|
925
|
+
remBase?: number | undefined;
|
|
926
|
+
}>;
|
|
927
|
+
export type TokenExtractionOptions = z.infer<typeof TokenExtractionOptionsSchema>;
|
|
928
|
+
/**
|
|
929
|
+
* Tailwind theme configuration (partial)
|
|
930
|
+
*/
|
|
931
|
+
export declare const TailwindThemeSchema: z.ZodObject<{
|
|
932
|
+
colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
|
933
|
+
spacing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
934
|
+
fontSize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
935
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
936
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
937
|
+
}, "strip", z.ZodTypeAny, {
|
|
938
|
+
letterSpacing?: string | undefined;
|
|
939
|
+
lineHeight?: string | undefined;
|
|
940
|
+
}, {
|
|
941
|
+
letterSpacing?: string | undefined;
|
|
942
|
+
lineHeight?: string | undefined;
|
|
943
|
+
}>], null>]>>>;
|
|
944
|
+
fontFamily: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
945
|
+
fontWeight: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
946
|
+
lineHeight: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
947
|
+
letterSpacing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
948
|
+
borderRadius: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
949
|
+
borderWidth: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
950
|
+
boxShadow: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
951
|
+
opacity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
952
|
+
zIndex: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
953
|
+
}, "strip", z.ZodTypeAny, {
|
|
954
|
+
opacity?: Record<string, string> | undefined;
|
|
955
|
+
fontFamily?: Record<string, string[]> | undefined;
|
|
956
|
+
fontWeight?: Record<string, string | number> | undefined;
|
|
957
|
+
fontSize?: Record<string, string | [string, {
|
|
958
|
+
letterSpacing?: string | undefined;
|
|
959
|
+
lineHeight?: string | undefined;
|
|
960
|
+
}]> | undefined;
|
|
961
|
+
letterSpacing?: Record<string, string> | undefined;
|
|
962
|
+
lineHeight?: Record<string, string> | undefined;
|
|
963
|
+
colors?: Record<string, string | Record<string, string>> | undefined;
|
|
964
|
+
spacing?: Record<string, string> | undefined;
|
|
965
|
+
zIndex?: Record<string, string | number> | undefined;
|
|
966
|
+
borderRadius?: Record<string, string> | undefined;
|
|
967
|
+
borderWidth?: Record<string, string> | undefined;
|
|
968
|
+
boxShadow?: Record<string, string> | undefined;
|
|
969
|
+
}, {
|
|
970
|
+
opacity?: Record<string, string> | undefined;
|
|
971
|
+
fontFamily?: Record<string, string[]> | undefined;
|
|
972
|
+
fontWeight?: Record<string, string | number> | undefined;
|
|
973
|
+
fontSize?: Record<string, string | [string, {
|
|
974
|
+
letterSpacing?: string | undefined;
|
|
975
|
+
lineHeight?: string | undefined;
|
|
976
|
+
}]> | undefined;
|
|
977
|
+
letterSpacing?: Record<string, string> | undefined;
|
|
978
|
+
lineHeight?: Record<string, string> | undefined;
|
|
979
|
+
colors?: Record<string, string | Record<string, string>> | undefined;
|
|
980
|
+
spacing?: Record<string, string> | undefined;
|
|
981
|
+
zIndex?: Record<string, string | number> | undefined;
|
|
982
|
+
borderRadius?: Record<string, string> | undefined;
|
|
983
|
+
borderWidth?: Record<string, string> | undefined;
|
|
984
|
+
boxShadow?: Record<string, string> | undefined;
|
|
985
|
+
}>;
|
|
986
|
+
export type TailwindTheme = z.infer<typeof TailwindThemeSchema>;
|
|
987
|
+
/**
|
|
988
|
+
* Tailwind config output
|
|
989
|
+
*/
|
|
990
|
+
export declare const TailwindConfigSchema: z.ZodObject<{
|
|
991
|
+
theme: z.ZodObject<{
|
|
992
|
+
extend: z.ZodObject<{
|
|
993
|
+
colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
|
|
994
|
+
spacing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
995
|
+
fontSize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
996
|
+
lineHeight: z.ZodOptional<z.ZodString>;
|
|
997
|
+
letterSpacing: z.ZodOptional<z.ZodString>;
|
|
998
|
+
}, "strip", z.ZodTypeAny, {
|
|
999
|
+
letterSpacing?: string | undefined;
|
|
1000
|
+
lineHeight?: string | undefined;
|
|
1001
|
+
}, {
|
|
1002
|
+
letterSpacing?: string | undefined;
|
|
1003
|
+
lineHeight?: string | undefined;
|
|
1004
|
+
}>], null>]>>>;
|
|
1005
|
+
fontFamily: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1006
|
+
fontWeight: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1007
|
+
lineHeight: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1008
|
+
letterSpacing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1009
|
+
borderRadius: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1010
|
+
borderWidth: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1011
|
+
boxShadow: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1012
|
+
opacity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1013
|
+
zIndex: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1014
|
+
}, "strip", z.ZodTypeAny, {
|
|
1015
|
+
opacity?: Record<string, string> | undefined;
|
|
1016
|
+
fontFamily?: Record<string, string[]> | undefined;
|
|
1017
|
+
fontWeight?: Record<string, string | number> | undefined;
|
|
1018
|
+
fontSize?: Record<string, string | [string, {
|
|
1019
|
+
letterSpacing?: string | undefined;
|
|
1020
|
+
lineHeight?: string | undefined;
|
|
1021
|
+
}]> | undefined;
|
|
1022
|
+
letterSpacing?: Record<string, string> | undefined;
|
|
1023
|
+
lineHeight?: Record<string, string> | undefined;
|
|
1024
|
+
colors?: Record<string, string | Record<string, string>> | undefined;
|
|
1025
|
+
spacing?: Record<string, string> | undefined;
|
|
1026
|
+
zIndex?: Record<string, string | number> | undefined;
|
|
1027
|
+
borderRadius?: Record<string, string> | undefined;
|
|
1028
|
+
borderWidth?: Record<string, string> | undefined;
|
|
1029
|
+
boxShadow?: Record<string, string> | undefined;
|
|
1030
|
+
}, {
|
|
1031
|
+
opacity?: Record<string, string> | undefined;
|
|
1032
|
+
fontFamily?: Record<string, string[]> | undefined;
|
|
1033
|
+
fontWeight?: Record<string, string | number> | undefined;
|
|
1034
|
+
fontSize?: Record<string, string | [string, {
|
|
1035
|
+
letterSpacing?: string | undefined;
|
|
1036
|
+
lineHeight?: string | undefined;
|
|
1037
|
+
}]> | undefined;
|
|
1038
|
+
letterSpacing?: Record<string, string> | undefined;
|
|
1039
|
+
lineHeight?: Record<string, string> | undefined;
|
|
1040
|
+
colors?: Record<string, string | Record<string, string>> | undefined;
|
|
1041
|
+
spacing?: Record<string, string> | undefined;
|
|
1042
|
+
zIndex?: Record<string, string | number> | undefined;
|
|
1043
|
+
borderRadius?: Record<string, string> | undefined;
|
|
1044
|
+
borderWidth?: Record<string, string> | undefined;
|
|
1045
|
+
boxShadow?: Record<string, string> | undefined;
|
|
1046
|
+
}>;
|
|
1047
|
+
}, "strip", z.ZodTypeAny, {
|
|
1048
|
+
extend: {
|
|
1049
|
+
opacity?: Record<string, string> | undefined;
|
|
1050
|
+
fontFamily?: Record<string, string[]> | undefined;
|
|
1051
|
+
fontWeight?: Record<string, string | number> | undefined;
|
|
1052
|
+
fontSize?: Record<string, string | [string, {
|
|
1053
|
+
letterSpacing?: string | undefined;
|
|
1054
|
+
lineHeight?: string | undefined;
|
|
1055
|
+
}]> | undefined;
|
|
1056
|
+
letterSpacing?: Record<string, string> | undefined;
|
|
1057
|
+
lineHeight?: Record<string, string> | undefined;
|
|
1058
|
+
colors?: Record<string, string | Record<string, string>> | undefined;
|
|
1059
|
+
spacing?: Record<string, string> | undefined;
|
|
1060
|
+
zIndex?: Record<string, string | number> | undefined;
|
|
1061
|
+
borderRadius?: Record<string, string> | undefined;
|
|
1062
|
+
borderWidth?: Record<string, string> | undefined;
|
|
1063
|
+
boxShadow?: Record<string, string> | undefined;
|
|
1064
|
+
};
|
|
1065
|
+
}, {
|
|
1066
|
+
extend: {
|
|
1067
|
+
opacity?: Record<string, string> | undefined;
|
|
1068
|
+
fontFamily?: Record<string, string[]> | undefined;
|
|
1069
|
+
fontWeight?: Record<string, string | number> | undefined;
|
|
1070
|
+
fontSize?: Record<string, string | [string, {
|
|
1071
|
+
letterSpacing?: string | undefined;
|
|
1072
|
+
lineHeight?: string | undefined;
|
|
1073
|
+
}]> | undefined;
|
|
1074
|
+
letterSpacing?: Record<string, string> | undefined;
|
|
1075
|
+
lineHeight?: Record<string, string> | undefined;
|
|
1076
|
+
colors?: Record<string, string | Record<string, string>> | undefined;
|
|
1077
|
+
spacing?: Record<string, string> | undefined;
|
|
1078
|
+
zIndex?: Record<string, string | number> | undefined;
|
|
1079
|
+
borderRadius?: Record<string, string> | undefined;
|
|
1080
|
+
borderWidth?: Record<string, string> | undefined;
|
|
1081
|
+
boxShadow?: Record<string, string> | undefined;
|
|
1082
|
+
};
|
|
1083
|
+
}>;
|
|
1084
|
+
}, "strip", z.ZodTypeAny, {
|
|
1085
|
+
theme: {
|
|
1086
|
+
extend: {
|
|
1087
|
+
opacity?: Record<string, string> | undefined;
|
|
1088
|
+
fontFamily?: Record<string, string[]> | undefined;
|
|
1089
|
+
fontWeight?: Record<string, string | number> | undefined;
|
|
1090
|
+
fontSize?: Record<string, string | [string, {
|
|
1091
|
+
letterSpacing?: string | undefined;
|
|
1092
|
+
lineHeight?: string | undefined;
|
|
1093
|
+
}]> | undefined;
|
|
1094
|
+
letterSpacing?: Record<string, string> | undefined;
|
|
1095
|
+
lineHeight?: Record<string, string> | undefined;
|
|
1096
|
+
colors?: Record<string, string | Record<string, string>> | undefined;
|
|
1097
|
+
spacing?: Record<string, string> | undefined;
|
|
1098
|
+
zIndex?: Record<string, string | number> | undefined;
|
|
1099
|
+
borderRadius?: Record<string, string> | undefined;
|
|
1100
|
+
borderWidth?: Record<string, string> | undefined;
|
|
1101
|
+
boxShadow?: Record<string, string> | undefined;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
}, {
|
|
1105
|
+
theme: {
|
|
1106
|
+
extend: {
|
|
1107
|
+
opacity?: Record<string, string> | undefined;
|
|
1108
|
+
fontFamily?: Record<string, string[]> | undefined;
|
|
1109
|
+
fontWeight?: Record<string, string | number> | undefined;
|
|
1110
|
+
fontSize?: Record<string, string | [string, {
|
|
1111
|
+
letterSpacing?: string | undefined;
|
|
1112
|
+
lineHeight?: string | undefined;
|
|
1113
|
+
}]> | undefined;
|
|
1114
|
+
letterSpacing?: Record<string, string> | undefined;
|
|
1115
|
+
lineHeight?: Record<string, string> | undefined;
|
|
1116
|
+
colors?: Record<string, string | Record<string, string>> | undefined;
|
|
1117
|
+
spacing?: Record<string, string> | undefined;
|
|
1118
|
+
zIndex?: Record<string, string | number> | undefined;
|
|
1119
|
+
borderRadius?: Record<string, string> | undefined;
|
|
1120
|
+
borderWidth?: Record<string, string> | undefined;
|
|
1121
|
+
boxShadow?: Record<string, string> | undefined;
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
}>;
|
|
1125
|
+
export type TailwindConfig = z.infer<typeof TailwindConfigSchema>;
|
|
1126
|
+
/**
|
|
1127
|
+
* Token difference entry
|
|
1128
|
+
*/
|
|
1129
|
+
export declare const TokenDiffEntrySchema: z.ZodObject<{
|
|
1130
|
+
path: z.ZodString;
|
|
1131
|
+
type: z.ZodEnum<["added", "removed", "modified"]>;
|
|
1132
|
+
figmaValue: z.ZodOptional<z.ZodUnknown>;
|
|
1133
|
+
localValue: z.ZodOptional<z.ZodUnknown>;
|
|
1134
|
+
figmaType: z.ZodOptional<z.ZodEnum<["color", "dimension", "fontFamily", "fontWeight", "fontSize", "lineHeight", "letterSpacing", "paragraphSpacing", "textCase", "textDecoration", "duration", "cubicBezier", "shadow", "gradient", "border", "opacity", "number", "string", "boolean", "composite"]>>;
|
|
1135
|
+
localType: z.ZodOptional<z.ZodEnum<["color", "dimension", "fontFamily", "fontWeight", "fontSize", "lineHeight", "letterSpacing", "paragraphSpacing", "textCase", "textDecoration", "duration", "cubicBezier", "shadow", "gradient", "border", "opacity", "number", "string", "boolean", "composite"]>>;
|
|
1136
|
+
}, "strip", z.ZodTypeAny, {
|
|
1137
|
+
path: string;
|
|
1138
|
+
type: "added" | "removed" | "modified";
|
|
1139
|
+
figmaValue?: unknown;
|
|
1140
|
+
localValue?: unknown;
|
|
1141
|
+
figmaType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1142
|
+
localType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1143
|
+
}, {
|
|
1144
|
+
path: string;
|
|
1145
|
+
type: "added" | "removed" | "modified";
|
|
1146
|
+
figmaValue?: unknown;
|
|
1147
|
+
localValue?: unknown;
|
|
1148
|
+
figmaType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1149
|
+
localType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1150
|
+
}>;
|
|
1151
|
+
export type TokenDiffEntry = z.infer<typeof TokenDiffEntrySchema>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Token comparison result
|
|
1154
|
+
*/
|
|
1155
|
+
export declare const TokenComparisonResultSchema: z.ZodObject<{
|
|
1156
|
+
summary: z.ZodObject<{
|
|
1157
|
+
totalFigma: z.ZodNumber;
|
|
1158
|
+
totalLocal: z.ZodNumber;
|
|
1159
|
+
added: z.ZodNumber;
|
|
1160
|
+
removed: z.ZodNumber;
|
|
1161
|
+
modified: z.ZodNumber;
|
|
1162
|
+
unchanged: z.ZodNumber;
|
|
1163
|
+
}, "strip", z.ZodTypeAny, {
|
|
1164
|
+
added: number;
|
|
1165
|
+
removed: number;
|
|
1166
|
+
modified: number;
|
|
1167
|
+
totalFigma: number;
|
|
1168
|
+
totalLocal: number;
|
|
1169
|
+
unchanged: number;
|
|
1170
|
+
}, {
|
|
1171
|
+
added: number;
|
|
1172
|
+
removed: number;
|
|
1173
|
+
modified: number;
|
|
1174
|
+
totalFigma: number;
|
|
1175
|
+
totalLocal: number;
|
|
1176
|
+
unchanged: number;
|
|
1177
|
+
}>;
|
|
1178
|
+
differences: z.ZodArray<z.ZodObject<{
|
|
1179
|
+
path: z.ZodString;
|
|
1180
|
+
type: z.ZodEnum<["added", "removed", "modified"]>;
|
|
1181
|
+
figmaValue: z.ZodOptional<z.ZodUnknown>;
|
|
1182
|
+
localValue: z.ZodOptional<z.ZodUnknown>;
|
|
1183
|
+
figmaType: z.ZodOptional<z.ZodEnum<["color", "dimension", "fontFamily", "fontWeight", "fontSize", "lineHeight", "letterSpacing", "paragraphSpacing", "textCase", "textDecoration", "duration", "cubicBezier", "shadow", "gradient", "border", "opacity", "number", "string", "boolean", "composite"]>>;
|
|
1184
|
+
localType: z.ZodOptional<z.ZodEnum<["color", "dimension", "fontFamily", "fontWeight", "fontSize", "lineHeight", "letterSpacing", "paragraphSpacing", "textCase", "textDecoration", "duration", "cubicBezier", "shadow", "gradient", "border", "opacity", "number", "string", "boolean", "composite"]>>;
|
|
1185
|
+
}, "strip", z.ZodTypeAny, {
|
|
1186
|
+
path: string;
|
|
1187
|
+
type: "added" | "removed" | "modified";
|
|
1188
|
+
figmaValue?: unknown;
|
|
1189
|
+
localValue?: unknown;
|
|
1190
|
+
figmaType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1191
|
+
localType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1192
|
+
}, {
|
|
1193
|
+
path: string;
|
|
1194
|
+
type: "added" | "removed" | "modified";
|
|
1195
|
+
figmaValue?: unknown;
|
|
1196
|
+
localValue?: unknown;
|
|
1197
|
+
figmaType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1198
|
+
localType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1199
|
+
}>, "many">;
|
|
1200
|
+
timestamp: z.ZodString;
|
|
1201
|
+
figmaFileKey: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
localFilePath: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
}, "strip", z.ZodTypeAny, {
|
|
1204
|
+
summary: {
|
|
1205
|
+
added: number;
|
|
1206
|
+
removed: number;
|
|
1207
|
+
modified: number;
|
|
1208
|
+
totalFigma: number;
|
|
1209
|
+
totalLocal: number;
|
|
1210
|
+
unchanged: number;
|
|
1211
|
+
};
|
|
1212
|
+
differences: {
|
|
1213
|
+
path: string;
|
|
1214
|
+
type: "added" | "removed" | "modified";
|
|
1215
|
+
figmaValue?: unknown;
|
|
1216
|
+
localValue?: unknown;
|
|
1217
|
+
figmaType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1218
|
+
localType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1219
|
+
}[];
|
|
1220
|
+
timestamp: string;
|
|
1221
|
+
figmaFileKey?: string | undefined;
|
|
1222
|
+
localFilePath?: string | undefined;
|
|
1223
|
+
}, {
|
|
1224
|
+
summary: {
|
|
1225
|
+
added: number;
|
|
1226
|
+
removed: number;
|
|
1227
|
+
modified: number;
|
|
1228
|
+
totalFigma: number;
|
|
1229
|
+
totalLocal: number;
|
|
1230
|
+
unchanged: number;
|
|
1231
|
+
};
|
|
1232
|
+
differences: {
|
|
1233
|
+
path: string;
|
|
1234
|
+
type: "added" | "removed" | "modified";
|
|
1235
|
+
figmaValue?: unknown;
|
|
1236
|
+
localValue?: unknown;
|
|
1237
|
+
figmaType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1238
|
+
localType?: "string" | "number" | "boolean" | "opacity" | "color" | "fontFamily" | "fontWeight" | "fontSize" | "letterSpacing" | "textCase" | "textDecoration" | "paragraphSpacing" | "dimension" | "lineHeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "border" | "composite" | undefined;
|
|
1239
|
+
}[];
|
|
1240
|
+
timestamp: string;
|
|
1241
|
+
figmaFileKey?: string | undefined;
|
|
1242
|
+
localFilePath?: string | undefined;
|
|
1243
|
+
}>;
|
|
1244
|
+
export type TokenComparisonResult = z.infer<typeof TokenComparisonResultSchema>;
|
|
1245
|
+
//# sourceMappingURL=token-types.d.ts.map
|