@tekton-ui/core 0.2.0 → 0.3.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/LICENSE +21 -0
- package/dist/layout-validation.d.ts +170 -170
- package/dist/schema-validation.d.ts +28 -28
- package/dist/screen-generation/validators.d.ts +13 -13
- package/dist/token-validation.d.ts +75 -75
- package/package.json +10 -11
|
@@ -16,19 +16,19 @@ export declare const PropDefinitionSchema: z.ZodObject<{
|
|
|
16
16
|
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
17
17
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
name: string;
|
|
20
19
|
type: string;
|
|
21
|
-
|
|
20
|
+
name: string;
|
|
22
21
|
description: string;
|
|
23
|
-
|
|
22
|
+
required: boolean;
|
|
24
23
|
options?: string[] | undefined;
|
|
24
|
+
defaultValue?: unknown;
|
|
25
25
|
}, {
|
|
26
|
-
name: string;
|
|
27
26
|
type: string;
|
|
28
|
-
|
|
27
|
+
name: string;
|
|
29
28
|
description: string;
|
|
30
|
-
|
|
29
|
+
required: boolean;
|
|
31
30
|
options?: string[] | undefined;
|
|
31
|
+
defaultValue?: unknown;
|
|
32
32
|
}>;
|
|
33
33
|
/**
|
|
34
34
|
* A11yRequirements Zod Schema
|
|
@@ -43,16 +43,16 @@ export declare const A11yRequirementsSchema: z.ZodObject<{
|
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
role: string;
|
|
45
45
|
wcag: string;
|
|
46
|
+
focus?: string | undefined;
|
|
46
47
|
ariaAttributes?: string[] | undefined;
|
|
47
48
|
keyboard?: string[] | undefined;
|
|
48
|
-
focus?: string | undefined;
|
|
49
49
|
screenReader?: string | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
role: string;
|
|
52
52
|
wcag: string;
|
|
53
|
+
focus?: string | undefined;
|
|
53
54
|
ariaAttributes?: string[] | undefined;
|
|
54
55
|
keyboard?: string[] | undefined;
|
|
55
|
-
focus?: string | undefined;
|
|
56
56
|
screenReader?: string | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
/**
|
|
@@ -73,19 +73,19 @@ export declare const ComponentSchemaZod: z.ZodObject<{
|
|
|
73
73
|
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
74
74
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
name: string;
|
|
77
76
|
type: string;
|
|
78
|
-
|
|
77
|
+
name: string;
|
|
79
78
|
description: string;
|
|
80
|
-
|
|
79
|
+
required: boolean;
|
|
81
80
|
options?: string[] | undefined;
|
|
81
|
+
defaultValue?: unknown;
|
|
82
82
|
}, {
|
|
83
|
-
name: string;
|
|
84
83
|
type: string;
|
|
85
|
-
|
|
84
|
+
name: string;
|
|
86
85
|
description: string;
|
|
87
|
-
|
|
86
|
+
required: boolean;
|
|
88
87
|
options?: string[] | undefined;
|
|
88
|
+
defaultValue?: unknown;
|
|
89
89
|
}>, "many">;
|
|
90
90
|
tokenBindings: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
91
91
|
a11y: z.ZodObject<{
|
|
@@ -98,58 +98,58 @@ export declare const ComponentSchemaZod: z.ZodObject<{
|
|
|
98
98
|
}, "strip", z.ZodTypeAny, {
|
|
99
99
|
role: string;
|
|
100
100
|
wcag: string;
|
|
101
|
+
focus?: string | undefined;
|
|
101
102
|
ariaAttributes?: string[] | undefined;
|
|
102
103
|
keyboard?: string[] | undefined;
|
|
103
|
-
focus?: string | undefined;
|
|
104
104
|
screenReader?: string | undefined;
|
|
105
105
|
}, {
|
|
106
106
|
role: string;
|
|
107
107
|
wcag: string;
|
|
108
|
+
focus?: string | undefined;
|
|
108
109
|
ariaAttributes?: string[] | undefined;
|
|
109
110
|
keyboard?: string[] | undefined;
|
|
110
|
-
focus?: string | undefined;
|
|
111
111
|
screenReader?: string | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
description: z.ZodOptional<z.ZodString>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
type: string;
|
|
116
|
-
|
|
116
|
+
tokenBindings: Record<string, string>;
|
|
117
117
|
props: {
|
|
118
|
-
name: string;
|
|
119
118
|
type: string;
|
|
120
|
-
|
|
119
|
+
name: string;
|
|
121
120
|
description: string;
|
|
122
|
-
|
|
121
|
+
required: boolean;
|
|
123
122
|
options?: string[] | undefined;
|
|
123
|
+
defaultValue?: unknown;
|
|
124
124
|
}[];
|
|
125
|
-
|
|
125
|
+
category: "primitive" | "composed";
|
|
126
126
|
a11y: {
|
|
127
127
|
role: string;
|
|
128
128
|
wcag: string;
|
|
129
|
+
focus?: string | undefined;
|
|
129
130
|
ariaAttributes?: string[] | undefined;
|
|
130
131
|
keyboard?: string[] | undefined;
|
|
131
|
-
focus?: string | undefined;
|
|
132
132
|
screenReader?: string | undefined;
|
|
133
133
|
};
|
|
134
134
|
description?: string | undefined;
|
|
135
135
|
}, {
|
|
136
136
|
type: string;
|
|
137
|
-
|
|
137
|
+
tokenBindings: Record<string, string>;
|
|
138
138
|
props: {
|
|
139
|
-
name: string;
|
|
140
139
|
type: string;
|
|
141
|
-
|
|
140
|
+
name: string;
|
|
142
141
|
description: string;
|
|
143
|
-
|
|
142
|
+
required: boolean;
|
|
144
143
|
options?: string[] | undefined;
|
|
144
|
+
defaultValue?: unknown;
|
|
145
145
|
}[];
|
|
146
|
-
|
|
146
|
+
category: "primitive" | "composed";
|
|
147
147
|
a11y: {
|
|
148
148
|
role: string;
|
|
149
149
|
wcag: string;
|
|
150
|
+
focus?: string | undefined;
|
|
150
151
|
ariaAttributes?: string[] | undefined;
|
|
151
152
|
keyboard?: string[] | undefined;
|
|
152
|
-
focus?: string | undefined;
|
|
153
153
|
screenReader?: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
description?: string | undefined;
|
|
@@ -16,16 +16,16 @@ export declare const ResponsiveOverridesSchema: z.ZodObject<{
|
|
|
16
16
|
xl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17
17
|
'2xl': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
18
|
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
xl?: Record<string, unknown> | undefined;
|
|
19
20
|
sm?: Record<string, unknown> | undefined;
|
|
20
21
|
md?: Record<string, unknown> | undefined;
|
|
21
22
|
lg?: Record<string, unknown> | undefined;
|
|
22
|
-
xl?: Record<string, unknown> | undefined;
|
|
23
23
|
'2xl'?: Record<string, unknown> | undefined;
|
|
24
24
|
}, {
|
|
25
|
+
xl?: Record<string, unknown> | undefined;
|
|
25
26
|
sm?: Record<string, unknown> | undefined;
|
|
26
27
|
md?: Record<string, unknown> | undefined;
|
|
27
28
|
lg?: Record<string, unknown> | undefined;
|
|
28
|
-
xl?: Record<string, unknown> | undefined;
|
|
29
29
|
'2xl'?: Record<string, unknown> | undefined;
|
|
30
30
|
}>;
|
|
31
31
|
/**
|
|
@@ -47,16 +47,16 @@ export declare const SectionDefinitionSchema: z.ZodObject<{
|
|
|
47
47
|
xl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
48
48
|
'2xl': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
49
49
|
}, "strict", z.ZodTypeAny, {
|
|
50
|
+
xl?: Record<string, unknown> | undefined;
|
|
50
51
|
sm?: Record<string, unknown> | undefined;
|
|
51
52
|
md?: Record<string, unknown> | undefined;
|
|
52
53
|
lg?: Record<string, unknown> | undefined;
|
|
53
|
-
xl?: Record<string, unknown> | undefined;
|
|
54
54
|
'2xl'?: Record<string, unknown> | undefined;
|
|
55
55
|
}, {
|
|
56
|
+
xl?: Record<string, unknown> | undefined;
|
|
56
57
|
sm?: Record<string, unknown> | undefined;
|
|
57
58
|
md?: Record<string, unknown> | undefined;
|
|
58
59
|
lg?: Record<string, unknown> | undefined;
|
|
59
|
-
xl?: Record<string, unknown> | undefined;
|
|
60
60
|
'2xl'?: Record<string, unknown> | undefined;
|
|
61
61
|
}>>;
|
|
62
62
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -64,10 +64,10 @@ export declare const SectionDefinitionSchema: z.ZodObject<{
|
|
|
64
64
|
pattern: string;
|
|
65
65
|
components: ComponentDefinition[];
|
|
66
66
|
responsive?: {
|
|
67
|
+
xl?: Record<string, unknown> | undefined;
|
|
67
68
|
sm?: Record<string, unknown> | undefined;
|
|
68
69
|
md?: Record<string, unknown> | undefined;
|
|
69
70
|
lg?: Record<string, unknown> | undefined;
|
|
70
|
-
xl?: Record<string, unknown> | undefined;
|
|
71
71
|
'2xl'?: Record<string, unknown> | undefined;
|
|
72
72
|
} | undefined;
|
|
73
73
|
}, {
|
|
@@ -75,10 +75,10 @@ export declare const SectionDefinitionSchema: z.ZodObject<{
|
|
|
75
75
|
pattern: string;
|
|
76
76
|
components: ComponentDefinition[];
|
|
77
77
|
responsive?: {
|
|
78
|
+
xl?: Record<string, unknown> | undefined;
|
|
78
79
|
sm?: Record<string, unknown> | undefined;
|
|
79
80
|
md?: Record<string, unknown> | undefined;
|
|
80
81
|
lg?: Record<string, unknown> | undefined;
|
|
81
|
-
xl?: Record<string, unknown> | undefined;
|
|
82
82
|
'2xl'?: Record<string, unknown> | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}>;
|
|
@@ -122,16 +122,16 @@ export declare const ScreenDefinitionSchema: z.ZodObject<{
|
|
|
122
122
|
xl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
123
123
|
'2xl': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
124
124
|
}, "strict", z.ZodTypeAny, {
|
|
125
|
+
xl?: Record<string, unknown> | undefined;
|
|
125
126
|
sm?: Record<string, unknown> | undefined;
|
|
126
127
|
md?: Record<string, unknown> | undefined;
|
|
127
128
|
lg?: Record<string, unknown> | undefined;
|
|
128
|
-
xl?: Record<string, unknown> | undefined;
|
|
129
129
|
'2xl'?: Record<string, unknown> | undefined;
|
|
130
130
|
}, {
|
|
131
|
+
xl?: Record<string, unknown> | undefined;
|
|
131
132
|
sm?: Record<string, unknown> | undefined;
|
|
132
133
|
md?: Record<string, unknown> | undefined;
|
|
133
134
|
lg?: Record<string, unknown> | undefined;
|
|
134
|
-
xl?: Record<string, unknown> | undefined;
|
|
135
135
|
'2xl'?: Record<string, unknown> | undefined;
|
|
136
136
|
}>>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -139,10 +139,10 @@ export declare const ScreenDefinitionSchema: z.ZodObject<{
|
|
|
139
139
|
pattern: string;
|
|
140
140
|
components: ComponentDefinition[];
|
|
141
141
|
responsive?: {
|
|
142
|
+
xl?: Record<string, unknown> | undefined;
|
|
142
143
|
sm?: Record<string, unknown> | undefined;
|
|
143
144
|
md?: Record<string, unknown> | undefined;
|
|
144
145
|
lg?: Record<string, unknown> | undefined;
|
|
145
|
-
xl?: Record<string, unknown> | undefined;
|
|
146
146
|
'2xl'?: Record<string, unknown> | undefined;
|
|
147
147
|
} | undefined;
|
|
148
148
|
}, {
|
|
@@ -150,10 +150,10 @@ export declare const ScreenDefinitionSchema: z.ZodObject<{
|
|
|
150
150
|
pattern: string;
|
|
151
151
|
components: ComponentDefinition[];
|
|
152
152
|
responsive?: {
|
|
153
|
+
xl?: Record<string, unknown> | undefined;
|
|
153
154
|
sm?: Record<string, unknown> | undefined;
|
|
154
155
|
md?: Record<string, unknown> | undefined;
|
|
155
156
|
lg?: Record<string, unknown> | undefined;
|
|
156
|
-
xl?: Record<string, unknown> | undefined;
|
|
157
157
|
'2xl'?: Record<string, unknown> | undefined;
|
|
158
158
|
} | undefined;
|
|
159
159
|
}>, "many">;
|
|
@@ -178,19 +178,19 @@ export declare const ScreenDefinitionSchema: z.ZodObject<{
|
|
|
178
178
|
id: string;
|
|
179
179
|
shell: string;
|
|
180
180
|
page: string;
|
|
181
|
-
themeId: string;
|
|
182
181
|
sections: {
|
|
183
182
|
id: string;
|
|
184
183
|
pattern: string;
|
|
185
184
|
components: ComponentDefinition[];
|
|
186
185
|
responsive?: {
|
|
186
|
+
xl?: Record<string, unknown> | undefined;
|
|
187
187
|
sm?: Record<string, unknown> | undefined;
|
|
188
188
|
md?: Record<string, unknown> | undefined;
|
|
189
189
|
lg?: Record<string, unknown> | undefined;
|
|
190
|
-
xl?: Record<string, unknown> | undefined;
|
|
191
190
|
'2xl'?: Record<string, unknown> | undefined;
|
|
192
191
|
} | undefined;
|
|
193
192
|
}[];
|
|
193
|
+
themeId: string;
|
|
194
194
|
description?: string | undefined;
|
|
195
195
|
meta?: {
|
|
196
196
|
author?: string | undefined;
|
|
@@ -208,10 +208,10 @@ export declare const ScreenDefinitionSchema: z.ZodObject<{
|
|
|
208
208
|
pattern: string;
|
|
209
209
|
components: ComponentDefinition[];
|
|
210
210
|
responsive?: {
|
|
211
|
+
xl?: Record<string, unknown> | undefined;
|
|
211
212
|
sm?: Record<string, unknown> | undefined;
|
|
212
213
|
md?: Record<string, unknown> | undefined;
|
|
213
214
|
lg?: Record<string, unknown> | undefined;
|
|
214
|
-
xl?: Record<string, unknown> | undefined;
|
|
215
215
|
'2xl'?: Record<string, unknown> | undefined;
|
|
216
216
|
} | undefined;
|
|
217
217
|
}[];
|
|
@@ -37,26 +37,26 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
37
37
|
/** Transition definitions (optional) */
|
|
38
38
|
transition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
spacing: Record<string, string>;
|
|
41
40
|
color: Record<string, Record<string, string>>;
|
|
42
41
|
shadow: Record<string, string>;
|
|
42
|
+
spacing: Record<string, string>;
|
|
43
|
+
radius: Record<string, string>;
|
|
43
44
|
typography: Record<string, {
|
|
44
45
|
fontSize: string;
|
|
45
46
|
fontWeight: string;
|
|
46
47
|
lineHeight: string;
|
|
47
48
|
}>;
|
|
48
|
-
radius: Record<string, string>;
|
|
49
49
|
transition?: Record<string, string> | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
spacing: Record<string, string>;
|
|
52
51
|
color: Record<string, Record<string, string>>;
|
|
53
52
|
shadow: Record<string, string>;
|
|
53
|
+
spacing: Record<string, string>;
|
|
54
|
+
radius: Record<string, string>;
|
|
54
55
|
typography: Record<string, {
|
|
55
56
|
fontSize: string;
|
|
56
57
|
fontWeight: string;
|
|
57
58
|
lineHeight: string;
|
|
58
59
|
}>;
|
|
59
|
-
radius: Record<string, string>;
|
|
60
60
|
transition?: Record<string, string> | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
semantic: z.ZodObject<{
|
|
@@ -68,16 +68,16 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
68
68
|
muted: z.ZodString;
|
|
69
69
|
inverse: z.ZodString;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
page: string;
|
|
72
71
|
muted: string;
|
|
73
72
|
inverse: string;
|
|
74
73
|
elevated: string;
|
|
74
|
+
page: string;
|
|
75
75
|
surface: string;
|
|
76
76
|
}, {
|
|
77
|
-
page: string;
|
|
78
77
|
muted: string;
|
|
79
78
|
inverse: string;
|
|
80
79
|
elevated: string;
|
|
80
|
+
page: string;
|
|
81
81
|
surface: string;
|
|
82
82
|
}>;
|
|
83
83
|
/** Foreground (text) colors with semantic meaning */
|
|
@@ -107,15 +107,15 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
107
107
|
focus: z.ZodString;
|
|
108
108
|
error: z.ZodString;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
focus: string;
|
|
111
|
-
default: string;
|
|
112
110
|
error: string;
|
|
113
111
|
muted: string;
|
|
114
|
-
}, {
|
|
115
|
-
focus: string;
|
|
116
112
|
default: string;
|
|
113
|
+
focus: string;
|
|
114
|
+
}, {
|
|
117
115
|
error: string;
|
|
118
116
|
muted: string;
|
|
117
|
+
default: string;
|
|
118
|
+
focus: string;
|
|
119
119
|
}>;
|
|
120
120
|
/** Surface colors with semantic meaning */
|
|
121
121
|
surface: z.ZodObject<{
|
|
@@ -136,10 +136,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
background: {
|
|
139
|
-
page: string;
|
|
140
139
|
muted: string;
|
|
141
140
|
inverse: string;
|
|
142
141
|
elevated: string;
|
|
142
|
+
page: string;
|
|
143
143
|
surface: string;
|
|
144
144
|
};
|
|
145
145
|
foreground: {
|
|
@@ -150,10 +150,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
150
150
|
inverse: string;
|
|
151
151
|
};
|
|
152
152
|
border: {
|
|
153
|
-
focus: string;
|
|
154
|
-
default: string;
|
|
155
153
|
error: string;
|
|
156
154
|
muted: string;
|
|
155
|
+
default: string;
|
|
156
|
+
focus: string;
|
|
157
157
|
};
|
|
158
158
|
surface: {
|
|
159
159
|
primary: string;
|
|
@@ -163,10 +163,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
163
163
|
};
|
|
164
164
|
}, {
|
|
165
165
|
background: {
|
|
166
|
-
page: string;
|
|
167
166
|
muted: string;
|
|
168
167
|
inverse: string;
|
|
169
168
|
elevated: string;
|
|
169
|
+
page: string;
|
|
170
170
|
surface: string;
|
|
171
171
|
};
|
|
172
172
|
foreground: {
|
|
@@ -177,10 +177,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
177
177
|
inverse: string;
|
|
178
178
|
};
|
|
179
179
|
border: {
|
|
180
|
-
focus: string;
|
|
181
|
-
default: string;
|
|
182
180
|
error: string;
|
|
183
181
|
muted: string;
|
|
182
|
+
default: string;
|
|
183
|
+
focus: string;
|
|
184
184
|
};
|
|
185
185
|
surface: {
|
|
186
186
|
primary: string;
|
|
@@ -191,13 +191,24 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
191
191
|
}>;
|
|
192
192
|
component: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
|
|
194
|
+
atomic: {
|
|
195
|
+
color: Record<string, Record<string, string>>;
|
|
196
|
+
shadow: Record<string, string>;
|
|
197
|
+
spacing: Record<string, string>;
|
|
198
|
+
radius: Record<string, string>;
|
|
199
|
+
typography: Record<string, {
|
|
200
|
+
fontSize: string;
|
|
201
|
+
fontWeight: string;
|
|
202
|
+
lineHeight: string;
|
|
203
|
+
}>;
|
|
204
|
+
transition?: Record<string, string> | undefined;
|
|
205
|
+
};
|
|
195
206
|
semantic: {
|
|
196
207
|
background: {
|
|
197
|
-
page: string;
|
|
198
208
|
muted: string;
|
|
199
209
|
inverse: string;
|
|
200
210
|
elevated: string;
|
|
211
|
+
page: string;
|
|
201
212
|
surface: string;
|
|
202
213
|
};
|
|
203
214
|
foreground: {
|
|
@@ -208,10 +219,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
208
219
|
inverse: string;
|
|
209
220
|
};
|
|
210
221
|
border: {
|
|
211
|
-
focus: string;
|
|
212
|
-
default: string;
|
|
213
222
|
error: string;
|
|
214
223
|
muted: string;
|
|
224
|
+
default: string;
|
|
225
|
+
focus: string;
|
|
215
226
|
};
|
|
216
227
|
surface: {
|
|
217
228
|
primary: string;
|
|
@@ -220,26 +231,26 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
220
231
|
tertiary: string;
|
|
221
232
|
};
|
|
222
233
|
};
|
|
234
|
+
component: Record<string, any>;
|
|
235
|
+
}, {
|
|
223
236
|
atomic: {
|
|
224
|
-
spacing: Record<string, string>;
|
|
225
237
|
color: Record<string, Record<string, string>>;
|
|
226
238
|
shadow: Record<string, string>;
|
|
239
|
+
spacing: Record<string, string>;
|
|
240
|
+
radius: Record<string, string>;
|
|
227
241
|
typography: Record<string, {
|
|
228
242
|
fontSize: string;
|
|
229
243
|
fontWeight: string;
|
|
230
244
|
lineHeight: string;
|
|
231
245
|
}>;
|
|
232
|
-
radius: Record<string, string>;
|
|
233
246
|
transition?: Record<string, string> | undefined;
|
|
234
247
|
};
|
|
235
|
-
}, {
|
|
236
|
-
component: Record<string, any>;
|
|
237
248
|
semantic: {
|
|
238
249
|
background: {
|
|
239
|
-
page: string;
|
|
240
250
|
muted: string;
|
|
241
251
|
inverse: string;
|
|
242
252
|
elevated: string;
|
|
253
|
+
page: string;
|
|
243
254
|
surface: string;
|
|
244
255
|
};
|
|
245
256
|
foreground: {
|
|
@@ -250,10 +261,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
250
261
|
inverse: string;
|
|
251
262
|
};
|
|
252
263
|
border: {
|
|
253
|
-
focus: string;
|
|
254
|
-
default: string;
|
|
255
264
|
error: string;
|
|
256
265
|
muted: string;
|
|
266
|
+
default: string;
|
|
267
|
+
focus: string;
|
|
257
268
|
};
|
|
258
269
|
surface: {
|
|
259
270
|
primary: string;
|
|
@@ -262,18 +273,7 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
262
273
|
tertiary: string;
|
|
263
274
|
};
|
|
264
275
|
};
|
|
265
|
-
|
|
266
|
-
spacing: Record<string, string>;
|
|
267
|
-
color: Record<string, Record<string, string>>;
|
|
268
|
-
shadow: Record<string, string>;
|
|
269
|
-
typography: Record<string, {
|
|
270
|
-
fontSize: string;
|
|
271
|
-
fontWeight: string;
|
|
272
|
-
lineHeight: string;
|
|
273
|
-
}>;
|
|
274
|
-
radius: Record<string, string>;
|
|
275
|
-
transition?: Record<string, string> | undefined;
|
|
276
|
-
};
|
|
276
|
+
component: Record<string, any>;
|
|
277
277
|
}>;
|
|
278
278
|
/** Optional dark mode token overrides */
|
|
279
279
|
darkMode: z.ZodOptional<z.ZodObject<{
|
|
@@ -281,32 +281,43 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
281
281
|
semantic: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
282
282
|
component: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
283
283
|
}, "strip", z.ZodTypeAny, {
|
|
284
|
-
component: Record<string, any>;
|
|
285
284
|
semantic: Record<string, any>;
|
|
286
|
-
}, {
|
|
287
285
|
component: Record<string, any>;
|
|
286
|
+
}, {
|
|
288
287
|
semantic: Record<string, any>;
|
|
288
|
+
component: Record<string, any>;
|
|
289
289
|
}>;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
291
291
|
tokens: {
|
|
292
|
-
component: Record<string, any>;
|
|
293
292
|
semantic: Record<string, any>;
|
|
293
|
+
component: Record<string, any>;
|
|
294
294
|
};
|
|
295
295
|
}, {
|
|
296
296
|
tokens: {
|
|
297
|
-
component: Record<string, any>;
|
|
298
297
|
semantic: Record<string, any>;
|
|
298
|
+
component: Record<string, any>;
|
|
299
299
|
};
|
|
300
300
|
}>>;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
302
|
tokens: {
|
|
303
|
-
|
|
303
|
+
atomic: {
|
|
304
|
+
color: Record<string, Record<string, string>>;
|
|
305
|
+
shadow: Record<string, string>;
|
|
306
|
+
spacing: Record<string, string>;
|
|
307
|
+
radius: Record<string, string>;
|
|
308
|
+
typography: Record<string, {
|
|
309
|
+
fontSize: string;
|
|
310
|
+
fontWeight: string;
|
|
311
|
+
lineHeight: string;
|
|
312
|
+
}>;
|
|
313
|
+
transition?: Record<string, string> | undefined;
|
|
314
|
+
};
|
|
304
315
|
semantic: {
|
|
305
316
|
background: {
|
|
306
|
-
page: string;
|
|
307
317
|
muted: string;
|
|
308
318
|
inverse: string;
|
|
309
319
|
elevated: string;
|
|
320
|
+
page: string;
|
|
310
321
|
surface: string;
|
|
311
322
|
};
|
|
312
323
|
foreground: {
|
|
@@ -317,10 +328,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
317
328
|
inverse: string;
|
|
318
329
|
};
|
|
319
330
|
border: {
|
|
320
|
-
focus: string;
|
|
321
|
-
default: string;
|
|
322
331
|
error: string;
|
|
323
332
|
muted: string;
|
|
333
|
+
default: string;
|
|
334
|
+
focus: string;
|
|
324
335
|
};
|
|
325
336
|
surface: {
|
|
326
337
|
primary: string;
|
|
@@ -329,34 +340,34 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
329
340
|
tertiary: string;
|
|
330
341
|
};
|
|
331
342
|
};
|
|
343
|
+
component: Record<string, any>;
|
|
344
|
+
};
|
|
345
|
+
darkMode?: {
|
|
346
|
+
tokens: {
|
|
347
|
+
semantic: Record<string, any>;
|
|
348
|
+
component: Record<string, any>;
|
|
349
|
+
};
|
|
350
|
+
} | undefined;
|
|
351
|
+
}, {
|
|
352
|
+
tokens: {
|
|
332
353
|
atomic: {
|
|
333
|
-
spacing: Record<string, string>;
|
|
334
354
|
color: Record<string, Record<string, string>>;
|
|
335
355
|
shadow: Record<string, string>;
|
|
356
|
+
spacing: Record<string, string>;
|
|
357
|
+
radius: Record<string, string>;
|
|
336
358
|
typography: Record<string, {
|
|
337
359
|
fontSize: string;
|
|
338
360
|
fontWeight: string;
|
|
339
361
|
lineHeight: string;
|
|
340
362
|
}>;
|
|
341
|
-
radius: Record<string, string>;
|
|
342
363
|
transition?: Record<string, string> | undefined;
|
|
343
364
|
};
|
|
344
|
-
};
|
|
345
|
-
darkMode?: {
|
|
346
|
-
tokens: {
|
|
347
|
-
component: Record<string, any>;
|
|
348
|
-
semantic: Record<string, any>;
|
|
349
|
-
};
|
|
350
|
-
} | undefined;
|
|
351
|
-
}, {
|
|
352
|
-
tokens: {
|
|
353
|
-
component: Record<string, any>;
|
|
354
365
|
semantic: {
|
|
355
366
|
background: {
|
|
356
|
-
page: string;
|
|
357
367
|
muted: string;
|
|
358
368
|
inverse: string;
|
|
359
369
|
elevated: string;
|
|
370
|
+
page: string;
|
|
360
371
|
surface: string;
|
|
361
372
|
};
|
|
362
373
|
foreground: {
|
|
@@ -367,10 +378,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
367
378
|
inverse: string;
|
|
368
379
|
};
|
|
369
380
|
border: {
|
|
370
|
-
focus: string;
|
|
371
|
-
default: string;
|
|
372
381
|
error: string;
|
|
373
382
|
muted: string;
|
|
383
|
+
default: string;
|
|
384
|
+
focus: string;
|
|
374
385
|
};
|
|
375
386
|
surface: {
|
|
376
387
|
primary: string;
|
|
@@ -379,23 +390,12 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
|
|
|
379
390
|
tertiary: string;
|
|
380
391
|
};
|
|
381
392
|
};
|
|
382
|
-
|
|
383
|
-
spacing: Record<string, string>;
|
|
384
|
-
color: Record<string, Record<string, string>>;
|
|
385
|
-
shadow: Record<string, string>;
|
|
386
|
-
typography: Record<string, {
|
|
387
|
-
fontSize: string;
|
|
388
|
-
fontWeight: string;
|
|
389
|
-
lineHeight: string;
|
|
390
|
-
}>;
|
|
391
|
-
radius: Record<string, string>;
|
|
392
|
-
transition?: Record<string, string> | undefined;
|
|
393
|
-
};
|
|
393
|
+
component: Record<string, any>;
|
|
394
394
|
};
|
|
395
395
|
darkMode?: {
|
|
396
396
|
tokens: {
|
|
397
|
-
component: Record<string, any>;
|
|
398
397
|
semantic: Record<string, any>;
|
|
398
|
+
component: Record<string, any>;
|
|
399
399
|
};
|
|
400
400
|
} | undefined;
|
|
401
401
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekton-ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Core design system pipeline: Theme -> Blueprint -> Screen (~800 LOC)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,14 +25,6 @@
|
|
|
25
25
|
"url": "https://github.com/soo-kate-yeon/tekton",
|
|
26
26
|
"directory": "packages/core"
|
|
27
27
|
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "tsc",
|
|
30
|
-
"test": "vitest run",
|
|
31
|
-
"test:watch": "vitest",
|
|
32
|
-
"test:coverage": "vitest run --coverage",
|
|
33
|
-
"lint": "eslint src __tests__ --ext .ts,.js",
|
|
34
|
-
"prepublishOnly": "pnpm build"
|
|
35
|
-
},
|
|
36
28
|
"dependencies": {
|
|
37
29
|
"zod": "^3.25.76"
|
|
38
30
|
},
|
|
@@ -49,5 +41,12 @@
|
|
|
49
41
|
"engines": {
|
|
50
42
|
"node": ">=20.0.0"
|
|
51
43
|
},
|
|
52
|
-
"license": "MIT"
|
|
53
|
-
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"test:watch": "vitest",
|
|
49
|
+
"test:coverage": "vitest run --coverage",
|
|
50
|
+
"lint": "eslint src __tests__ --ext .ts,.js"
|
|
51
|
+
}
|
|
52
|
+
}
|