@qw-ui/tokens 0.3.0-next.3 → 0.3.0-next.30
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 +8 -5
- package/dist/color-architecture.d.ts +139 -2
- package/dist/derive/index.d.ts +2 -2
- package/dist/derive/live-css.d.ts +1 -1
- package/dist/derive/reference.d.ts +62 -13
- package/dist/derive/semantic.d.ts +17 -1
- package/dist/derive/tailwind.d.ts +31 -0
- package/dist/design-doc.d.ts +1 -1
- package/dist/figma/color-contract.d.ts +2 -0
- package/dist/figma/color-snapshot.d.ts +4 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +759 -240
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +3 -3
- package/dist/tailwind.css +79 -0
- package/dist/tokens.css +257 -218
- package/dist/tokens.json +196 -93
- package/dist/tokens.live.css +127 -9
- package/dist/tokens.ts +198 -130
- package/package.json +4 -3
- package/dist/compat/build.d.ts +0 -14
- package/dist/compat/color.d.ts +0 -8
- package/dist/compat/index.d.ts +0 -5
- package/dist/compat/schema.d.ts +0 -114
package/dist/compat/schema.d.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const compatStatusSchema: z.ZodEnum<{
|
|
3
|
-
active: "active";
|
|
4
|
-
aliased: "aliased";
|
|
5
|
-
deprecated: "deprecated";
|
|
6
|
-
}>;
|
|
7
|
-
export declare const compatEntrySchema: z.ZodObject<{
|
|
8
|
-
path: z.ZodString;
|
|
9
|
-
type: z.ZodEnum<{
|
|
10
|
-
color: "color";
|
|
11
|
-
dimension: "dimension";
|
|
12
|
-
motion: "motion";
|
|
13
|
-
typography: "typography";
|
|
14
|
-
}>;
|
|
15
|
-
value: z.ZodUnion<readonly [z.ZodObject<{
|
|
16
|
-
light: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
17
|
-
colorSpace: z.ZodLiteral<"srgb">;
|
|
18
|
-
components: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
19
|
-
alpha: z.ZodNumber;
|
|
20
|
-
}, z.core.$strip>, z.ZodString]>;
|
|
21
|
-
dark: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
22
|
-
colorSpace: z.ZodLiteral<"srgb">;
|
|
23
|
-
components: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
24
|
-
alpha: z.ZodNumber;
|
|
25
|
-
}, z.core.$strip>, z.ZodString]>;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
value: z.ZodNumber;
|
|
28
|
-
unit: z.ZodEnum<{
|
|
29
|
-
"%": "%";
|
|
30
|
-
em: "em";
|
|
31
|
-
px: "px";
|
|
32
|
-
rem: "rem";
|
|
33
|
-
}>;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
aliasOf: z.ZodString;
|
|
36
|
-
}, z.core.$strip>]>;
|
|
37
|
-
source: z.ZodObject<{
|
|
38
|
-
figma: z.ZodString;
|
|
39
|
-
nodeId: z.ZodString;
|
|
40
|
-
legacyName: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
introducedBy: z.ZodString;
|
|
43
|
-
reason: z.ZodString;
|
|
44
|
-
owner: z.ZodString;
|
|
45
|
-
targetSemanticRole: z.ZodNullable<z.ZodString>;
|
|
46
|
-
status: z.ZodEnum<{
|
|
47
|
-
active: "active";
|
|
48
|
-
aliased: "aliased";
|
|
49
|
-
deprecated: "deprecated";
|
|
50
|
-
}>;
|
|
51
|
-
reviewAfter: z.ZodString;
|
|
52
|
-
migrationIssue: z.ZodNullable<z.ZodString>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export declare const compatRegistrySchema: z.ZodObject<{
|
|
55
|
-
$description: z.ZodOptional<z.ZodString>;
|
|
56
|
-
version: z.ZodLiteral<1>;
|
|
57
|
-
graceDays: z.ZodDefault<z.ZodNumber>;
|
|
58
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
59
|
-
path: z.ZodString;
|
|
60
|
-
type: z.ZodEnum<{
|
|
61
|
-
color: "color";
|
|
62
|
-
dimension: "dimension";
|
|
63
|
-
motion: "motion";
|
|
64
|
-
typography: "typography";
|
|
65
|
-
}>;
|
|
66
|
-
value: z.ZodUnion<readonly [z.ZodObject<{
|
|
67
|
-
light: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
68
|
-
colorSpace: z.ZodLiteral<"srgb">;
|
|
69
|
-
components: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
70
|
-
alpha: z.ZodNumber;
|
|
71
|
-
}, z.core.$strip>, z.ZodString]>;
|
|
72
|
-
dark: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
73
|
-
colorSpace: z.ZodLiteral<"srgb">;
|
|
74
|
-
components: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
75
|
-
alpha: z.ZodNumber;
|
|
76
|
-
}, z.core.$strip>, z.ZodString]>;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
value: z.ZodNumber;
|
|
79
|
-
unit: z.ZodEnum<{
|
|
80
|
-
"%": "%";
|
|
81
|
-
em: "em";
|
|
82
|
-
px: "px";
|
|
83
|
-
rem: "rem";
|
|
84
|
-
}>;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
aliasOf: z.ZodString;
|
|
87
|
-
}, z.core.$strip>]>;
|
|
88
|
-
source: z.ZodObject<{
|
|
89
|
-
figma: z.ZodString;
|
|
90
|
-
nodeId: z.ZodString;
|
|
91
|
-
legacyName: z.ZodNullable<z.ZodString>;
|
|
92
|
-
}, z.core.$strip>;
|
|
93
|
-
introducedBy: z.ZodString;
|
|
94
|
-
reason: z.ZodString;
|
|
95
|
-
owner: z.ZodString;
|
|
96
|
-
targetSemanticRole: z.ZodNullable<z.ZodString>;
|
|
97
|
-
status: z.ZodEnum<{
|
|
98
|
-
active: "active";
|
|
99
|
-
aliased: "aliased";
|
|
100
|
-
deprecated: "deprecated";
|
|
101
|
-
}>;
|
|
102
|
-
reviewAfter: z.ZodString;
|
|
103
|
-
migrationIssue: z.ZodNullable<z.ZodString>;
|
|
104
|
-
}, z.core.$strip>>;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
export type CompatEntry = z.infer<typeof compatEntrySchema>;
|
|
107
|
-
export type CompatRegistry = z.infer<typeof compatRegistrySchema>;
|
|
108
|
-
export type CompatStatus = z.infer<typeof compatStatusSchema>;
|
|
109
|
-
/** path → CSS 变量名:`button.color.bg-soft-brand` → `--qw-compat-button-color-bg-soft-brand` */
|
|
110
|
-
export declare function compatPathToCssVar(path: string): string;
|
|
111
|
-
/** path → component slug(第一段) */
|
|
112
|
-
export declare function compatComponentOf(path: string): string;
|
|
113
|
-
/** path → helper suffix(component 之后的段,用 `-` 连接) */
|
|
114
|
-
export declare function compatSuffixOf(path: string): string;
|