@yahoo/uds-create-config 5.88.1 → 5.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__fixtures__/yos-native.d.ts +410 -0
- package/dist/__fixtures__/yos-web-source.d.ts +32 -0
- package/dist/entities/system/resolve-properties.d.ts +97 -0
- package/dist/entities/system/resolve-properties.js +374 -0
- package/dist/framework/default-conditions.js +26 -8
- package/dist/framework/layer-styles.d.ts +7 -0
- package/dist/framework/layer-styles.js +75 -19
- package/dist/framework/projections.d.ts +17 -1
- package/dist/framework/projections.js +81 -3
- package/dist/framework/utils/refs.js +5 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A native system shaped like Yahoo OS Native, trimmed from `yahoo-os-uds/packages/yos-native` at
|
|
3
|
+
* commit `e03376e`.
|
|
4
|
+
*
|
|
5
|
+
* It keeps the parts the property engine has to answer for on native: a `yos` source pinned to the
|
|
6
|
+
* web system in `yos-web-source.ts`, modifiers that extend the source's, a key only React Native has
|
|
7
|
+
* (`spacingHorizontal` writes `paddingHorizontal`), a prop that writes two keys
|
|
8
|
+
* (`borderVerticalWidth`), and Box, Text and a Switch extended from `Switch@yos`.
|
|
9
|
+
*
|
|
10
|
+
* Layers are package refs, so nothing here imports React Native.
|
|
11
|
+
*/
|
|
12
|
+
/** The native system with its `yos` source attached and its borrowed rows derived. */
|
|
13
|
+
export declare function yosNative(): import("..").ConfigInstance<{
|
|
14
|
+
settings: import("..").EntityClass<import("zod").ZodObject<Omit<{
|
|
15
|
+
system: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
16
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
}, import("zod/v4/core").$strict>>;
|
|
18
|
+
build: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
19
|
+
inputDir: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
exclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
21
|
+
scripts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
22
|
+
outDir: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
sourceAlias: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
|
+
outputAlias: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
linkedDir: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
+
react: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<18>, import("zod").ZodLiteral<19>]>>;
|
|
27
|
+
debug: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
28
|
+
}, import("zod/v4/core").$strict>>;
|
|
29
|
+
css: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
30
|
+
prefix: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
31
|
+
classNames: import("zod").ZodString;
|
|
32
|
+
variables: import("zod").ZodString;
|
|
33
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
34
|
+
layerPrefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
preflight: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
37
|
+
fontFaces: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
38
|
+
rem: import("zod").ZodOptional<import("zod").ZodString>;
|
|
39
|
+
content: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
40
|
+
safelist: import("zod").ZodOptional<import("zod").ZodType<import("..").SafelistEntry[], readonly import("..").SafelistEntry[], import("zod/v4/core").$ZodTypeInternals<import("..").SafelistEntry[], readonly import("..").SafelistEntry[]>>>;
|
|
41
|
+
}, import("zod/v4/core").$strict>>;
|
|
42
|
+
playground: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
43
|
+
pagesDir: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
45
|
+
}, import("zod/v4/core").$strict>>;
|
|
46
|
+
lint: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
47
|
+
rules: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodEnum<{
|
|
48
|
+
error: "error";
|
|
49
|
+
off: "off";
|
|
50
|
+
warn: "warn";
|
|
51
|
+
}>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodEnum<{
|
|
52
|
+
error: "error";
|
|
53
|
+
off: "off";
|
|
54
|
+
warn: "warn";
|
|
55
|
+
}>>]>>>;
|
|
56
|
+
ignore: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
57
|
+
rule: import("zod").ZodString;
|
|
58
|
+
component: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
layer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
prop: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
when: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
reason: import("zod").ZodString;
|
|
64
|
+
}, import("zod/v4/core").$strict>>>;
|
|
65
|
+
}, import("zod/v4/core").$strict>>;
|
|
66
|
+
defaults: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
67
|
+
background: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
68
|
+
__ref: import("zod").ZodString;
|
|
69
|
+
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
70
|
+
value: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
71
|
+
__ref: import("zod").ZodString;
|
|
72
|
+
}, import("zod/v4/core").$strip>]>;
|
|
73
|
+
output: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
74
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
75
|
+
color: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
76
|
+
__ref: import("zod").ZodString;
|
|
77
|
+
}, import("zod/v4/core").$strip>]>, import("zod").ZodObject<{
|
|
78
|
+
value: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
79
|
+
__ref: import("zod").ZodString;
|
|
80
|
+
}, import("zod/v4/core").$strip>]>;
|
|
81
|
+
output: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
82
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
83
|
+
}, import("zod/v4/core").$strict>>;
|
|
84
|
+
}, "css" | "playground" | "canvas"> & {
|
|
85
|
+
canvas: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
86
|
+
packageAliases: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
87
|
+
}, import("zod/v4/core").$strict>>;
|
|
88
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<Omit<Record<never, never>, never> & {}, import("zod/v4/core").$strip>, "settings", {}, {
|
|
89
|
+
readonly inputDir: ({ member, config }: import("..").ComputedInput) => string;
|
|
90
|
+
}, true, Record<never, never>, Record<never, never>>;
|
|
91
|
+
tokens: import("..").EntityClass<import("zod").ZodObject<Omit<{
|
|
92
|
+
value: import("zod").ZodType<string | number | import("..").Ref | import("..").ComposedValue, unknown, import("zod/v4/core").$ZodTypeInternals<string | number | import("..").Ref | import("..").ComposedValue, unknown>>;
|
|
93
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
overrides: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodObject<{
|
|
95
|
+
on: import("zod").ZodType<import("..").OverrideCondition, unknown, import("zod/v4/core").$ZodTypeInternals<import("..").OverrideCondition, unknown>>;
|
|
96
|
+
value: import("zod").ZodType<string | number | import("..").Ref | import("..").ComposedValue, unknown, import("zod/v4/core").$ZodTypeInternals<string | number | import("..").Ref | import("..").ComposedValue, unknown>>;
|
|
97
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodTransform<Record<string, {
|
|
98
|
+
on: import("..").OverrideCondition;
|
|
99
|
+
value: string | number | import("..").Ref | import("..").ComposedValue;
|
|
100
|
+
}>, {
|
|
101
|
+
on: import("..").OverrideCondition;
|
|
102
|
+
value: string | number | import("..").Ref | import("..").ComposedValue;
|
|
103
|
+
}[]>>, import("..").SubEntityClass<import("zod").ZodObject<{
|
|
104
|
+
on: import("zod").ZodType<import("..").OverrideCondition, unknown, import("zod/v4/core").$ZodTypeInternals<import("..").OverrideCondition, unknown>>;
|
|
105
|
+
value: import("zod").ZodType<string | number | import("..").Ref | import("..").ComposedValue, unknown, import("zod/v4/core").$ZodTypeInternals<string | number | import("..").Ref | import("..").ComposedValue, unknown>>;
|
|
106
|
+
}, import("zod/v4/core").$strip>>]>>;
|
|
107
|
+
utility: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
108
|
+
property: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
109
|
+
syntax: import("zod").ZodOptional<import("zod").ZodString>;
|
|
110
|
+
inherits: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
111
|
+
}, import("zod/v4/core").$strict>>;
|
|
112
|
+
cssVariable: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodLiteral<false>]>>;
|
|
113
|
+
}, "value" | "overrides" | "property" | "cssVariable"> & {
|
|
114
|
+
value: import("zod").ZodType<string | number | boolean | import("..").Ref | import("..").DerivedColor | import("..").Gradient | import("..").Shadow | {
|
|
115
|
+
flexGrow: number;
|
|
116
|
+
flexShrink: number;
|
|
117
|
+
flexBasis: string | number;
|
|
118
|
+
} | {
|
|
119
|
+
fontSizeMultiplier: number;
|
|
120
|
+
}, unknown, import("zod/v4/core").$ZodTypeInternals<string | number | boolean | import("..").Ref | import("..").DerivedColor | import("..").Gradient | import("..").Shadow | {
|
|
121
|
+
flexGrow: number;
|
|
122
|
+
flexShrink: number;
|
|
123
|
+
flexBasis: string | number;
|
|
124
|
+
} | {
|
|
125
|
+
fontSizeMultiplier: number;
|
|
126
|
+
}, unknown>>;
|
|
127
|
+
overrides: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodObject<{
|
|
128
|
+
on: import("zod").ZodType<import("..").OverrideCondition, unknown, import("zod/v4/core").$ZodTypeInternals<import("..").OverrideCondition, unknown>>;
|
|
129
|
+
value: import("zod").ZodType<string | number | boolean | import("..").Ref | import("..").DerivedColor | import("..").Gradient | import("..").Shadow | {
|
|
130
|
+
flexGrow: number;
|
|
131
|
+
flexShrink: number;
|
|
132
|
+
flexBasis: string | number;
|
|
133
|
+
} | {
|
|
134
|
+
fontSizeMultiplier: number;
|
|
135
|
+
}, unknown, import("zod/v4/core").$ZodTypeInternals<string | number | boolean | import("..").Ref | import("..").DerivedColor | import("..").Gradient | import("..").Shadow | {
|
|
136
|
+
flexGrow: number;
|
|
137
|
+
flexShrink: number;
|
|
138
|
+
flexBasis: string | number;
|
|
139
|
+
} | {
|
|
140
|
+
fontSizeMultiplier: number;
|
|
141
|
+
}, unknown>>;
|
|
142
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodTransform<Record<string, {
|
|
143
|
+
on: import("..").OverrideCondition;
|
|
144
|
+
value: string | number | boolean | import("..").Ref | import("..").DerivedColor | import("..").Gradient | import("..").Shadow | {
|
|
145
|
+
flexGrow: number;
|
|
146
|
+
flexShrink: number;
|
|
147
|
+
flexBasis: string | number;
|
|
148
|
+
} | {
|
|
149
|
+
fontSizeMultiplier: number;
|
|
150
|
+
};
|
|
151
|
+
}>, {
|
|
152
|
+
on: import("..").OverrideCondition;
|
|
153
|
+
value: string | number | boolean | import("..").Ref | import("..").DerivedColor | import("..").Gradient | import("..").Shadow | {
|
|
154
|
+
flexGrow: number;
|
|
155
|
+
flexShrink: number;
|
|
156
|
+
flexBasis: string | number;
|
|
157
|
+
} | {
|
|
158
|
+
fontSizeMultiplier: number;
|
|
159
|
+
};
|
|
160
|
+
}[]>>, import("..").SubEntityClass<import("zod").ZodObject<{
|
|
161
|
+
on: import("zod").ZodType<import("..").OverrideCondition, unknown, import("zod/v4/core").$ZodTypeInternals<import("..").OverrideCondition, unknown>>;
|
|
162
|
+
value: import("zod").ZodType<string | number | boolean | import("..").Ref | import("..").DerivedColor | import("..").Gradient | import("..").Shadow | {
|
|
163
|
+
flexGrow: number;
|
|
164
|
+
flexShrink: number;
|
|
165
|
+
flexBasis: string | number;
|
|
166
|
+
} | {
|
|
167
|
+
fontSizeMultiplier: number;
|
|
168
|
+
}, unknown, import("zod/v4/core").$ZodTypeInternals<string | number | boolean | import("..").Ref | import("..").DerivedColor | import("..").Gradient | import("..").Shadow | {
|
|
169
|
+
flexGrow: number;
|
|
170
|
+
flexShrink: number;
|
|
171
|
+
flexBasis: string | number;
|
|
172
|
+
} | {
|
|
173
|
+
fontSizeMultiplier: number;
|
|
174
|
+
}, unknown>>;
|
|
175
|
+
}, import("zod/v4/core").$strip>>]>>;
|
|
176
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<Omit<{
|
|
177
|
+
cssPrefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
178
|
+
cssVariables: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
179
|
+
}, "cssPrefix" | "cssVariables"> & {}, import("zod/v4/core").$strip>, "token", {
|
|
180
|
+
readonly get: {
|
|
181
|
+
readonly input: import("zod").ZodObject<{
|
|
182
|
+
path: import("zod").ZodType<string, string | undefined, import("zod/v4/core").$ZodTypeInternals<string, string | undefined>>;
|
|
183
|
+
detail: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
184
|
+
full: "full";
|
|
185
|
+
}>>;
|
|
186
|
+
}, import("zod/v4/core").$strip>;
|
|
187
|
+
};
|
|
188
|
+
}, Record<never, never>, false, Record<never, never>, Record<never, never>>;
|
|
189
|
+
components: import("..").ComponentClass;
|
|
190
|
+
modifiers: import("..").NativeModifierClass;
|
|
191
|
+
motion: import("..").MotionClass;
|
|
192
|
+
styleProps: import("..").EntityClass<import("zod").ZodObject<Omit<{
|
|
193
|
+
properties: import("zod").ZodArray<import("zod").ZodString>;
|
|
194
|
+
values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("..").StylePropValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("..").StylePropValue, unknown>>>>;
|
|
195
|
+
responsive: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
196
|
+
classPrefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
197
|
+
arbitrary: import("zod").ZodDefault<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodEnum<{
|
|
198
|
+
ch: "ch";
|
|
199
|
+
dvh: "dvh";
|
|
200
|
+
dvw: "dvw";
|
|
201
|
+
em: "em";
|
|
202
|
+
ex: "ex";
|
|
203
|
+
lvh: "lvh";
|
|
204
|
+
lvw: "lvw";
|
|
205
|
+
px: "px";
|
|
206
|
+
rem: "rem";
|
|
207
|
+
svh: "svh";
|
|
208
|
+
svw: "svw";
|
|
209
|
+
vh: "vh";
|
|
210
|
+
vmax: "vmax";
|
|
211
|
+
vmin: "vmin";
|
|
212
|
+
vw: "vw";
|
|
213
|
+
"%": "%";
|
|
214
|
+
deg: "deg";
|
|
215
|
+
rad: "rad";
|
|
216
|
+
turn: "turn";
|
|
217
|
+
s: "s";
|
|
218
|
+
ms: "ms";
|
|
219
|
+
unitless: "unitless";
|
|
220
|
+
lh: "lh";
|
|
221
|
+
rlh: "rlh";
|
|
222
|
+
cqw: "cqw";
|
|
223
|
+
cqh: "cqh";
|
|
224
|
+
cqi: "cqi";
|
|
225
|
+
cqb: "cqb";
|
|
226
|
+
fr: "fr";
|
|
227
|
+
}>]>>;
|
|
228
|
+
negates: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
229
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
230
|
+
alpha: import("zod").ZodOptional<import("zod").ZodString>;
|
|
231
|
+
declarations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
232
|
+
__ref: import("zod").ZodString;
|
|
233
|
+
}, import("zod/v4/core").$strip>]>>>;
|
|
234
|
+
opacityOf: import("zod").ZodOptional<import("zod").ZodLazy<import("zod").ZodType<import("..").Ref, unknown, import("zod/v4/core").$ZodTypeInternals<import("..").Ref, unknown>>>>;
|
|
235
|
+
}, "values" | "alpha" | "properties" | "selector" | "classPrefix" | "declarations"> & {
|
|
236
|
+
properties: import("zod").ZodArray<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>, import("zod").ZodEnum<{
|
|
237
|
+
transform: "transform";
|
|
238
|
+
filter: "filter";
|
|
239
|
+
color: "color";
|
|
240
|
+
inset: "inset";
|
|
241
|
+
position: "position";
|
|
242
|
+
alignContent: "alignContent";
|
|
243
|
+
alignItems: "alignItems";
|
|
244
|
+
alignSelf: "alignSelf";
|
|
245
|
+
aspectRatio: "aspectRatio";
|
|
246
|
+
backfaceVisibility: "backfaceVisibility";
|
|
247
|
+
backgroundColor: "backgroundColor";
|
|
248
|
+
borderBlockColor: "borderBlockColor";
|
|
249
|
+
borderBlockEndColor: "borderBlockEndColor";
|
|
250
|
+
borderBlockStartColor: "borderBlockStartColor";
|
|
251
|
+
borderBottomColor: "borderBottomColor";
|
|
252
|
+
borderBottomEndRadius: "borderBottomEndRadius";
|
|
253
|
+
borderBottomLeftRadius: "borderBottomLeftRadius";
|
|
254
|
+
borderBottomRightRadius: "borderBottomRightRadius";
|
|
255
|
+
borderBottomStartRadius: "borderBottomStartRadius";
|
|
256
|
+
borderBottomWidth: "borderBottomWidth";
|
|
257
|
+
borderColor: "borderColor";
|
|
258
|
+
borderCurve: "borderCurve";
|
|
259
|
+
borderEndColor: "borderEndColor";
|
|
260
|
+
borderEndEndRadius: "borderEndEndRadius";
|
|
261
|
+
borderEndStartRadius: "borderEndStartRadius";
|
|
262
|
+
borderEndWidth: "borderEndWidth";
|
|
263
|
+
borderLeftColor: "borderLeftColor";
|
|
264
|
+
borderLeftWidth: "borderLeftWidth";
|
|
265
|
+
borderRadius: "borderRadius";
|
|
266
|
+
borderRightColor: "borderRightColor";
|
|
267
|
+
borderRightWidth: "borderRightWidth";
|
|
268
|
+
borderStartColor: "borderStartColor";
|
|
269
|
+
borderStartEndRadius: "borderStartEndRadius";
|
|
270
|
+
borderStartStartRadius: "borderStartStartRadius";
|
|
271
|
+
borderStartWidth: "borderStartWidth";
|
|
272
|
+
borderStyle: "borderStyle";
|
|
273
|
+
borderTopColor: "borderTopColor";
|
|
274
|
+
borderTopEndRadius: "borderTopEndRadius";
|
|
275
|
+
borderTopLeftRadius: "borderTopLeftRadius";
|
|
276
|
+
borderTopRightRadius: "borderTopRightRadius";
|
|
277
|
+
borderTopStartRadius: "borderTopStartRadius";
|
|
278
|
+
borderTopWidth: "borderTopWidth";
|
|
279
|
+
borderWidth: "borderWidth";
|
|
280
|
+
bottom: "bottom";
|
|
281
|
+
boxShadow: "boxShadow";
|
|
282
|
+
boxSizing: "boxSizing";
|
|
283
|
+
columnGap: "columnGap";
|
|
284
|
+
cursor: "cursor";
|
|
285
|
+
direction: "direction";
|
|
286
|
+
display: "display";
|
|
287
|
+
elevation: "elevation";
|
|
288
|
+
end: "end";
|
|
289
|
+
experimental_backgroundImage: "experimental_backgroundImage";
|
|
290
|
+
experimental_backgroundPosition: "experimental_backgroundPosition";
|
|
291
|
+
experimental_backgroundRepeat: "experimental_backgroundRepeat";
|
|
292
|
+
experimental_backgroundSize: "experimental_backgroundSize";
|
|
293
|
+
flex: "flex";
|
|
294
|
+
flexBasis: "flexBasis";
|
|
295
|
+
flexDirection: "flexDirection";
|
|
296
|
+
flexGrow: "flexGrow";
|
|
297
|
+
flexShrink: "flexShrink";
|
|
298
|
+
flexWrap: "flexWrap";
|
|
299
|
+
fontFamily: "fontFamily";
|
|
300
|
+
fontSize: "fontSize";
|
|
301
|
+
fontStyle: "fontStyle";
|
|
302
|
+
fontVariant: "fontVariant";
|
|
303
|
+
fontWeight: "fontWeight";
|
|
304
|
+
gap: "gap";
|
|
305
|
+
height: "height";
|
|
306
|
+
includeFontPadding: "includeFontPadding";
|
|
307
|
+
insetBlock: "insetBlock";
|
|
308
|
+
insetBlockEnd: "insetBlockEnd";
|
|
309
|
+
insetBlockStart: "insetBlockStart";
|
|
310
|
+
insetInline: "insetInline";
|
|
311
|
+
insetInlineEnd: "insetInlineEnd";
|
|
312
|
+
insetInlineStart: "insetInlineStart";
|
|
313
|
+
isolation: "isolation";
|
|
314
|
+
justifyContent: "justifyContent";
|
|
315
|
+
left: "left";
|
|
316
|
+
letterSpacing: "letterSpacing";
|
|
317
|
+
lineHeight: "lineHeight";
|
|
318
|
+
margin: "margin";
|
|
319
|
+
marginBlock: "marginBlock";
|
|
320
|
+
marginBlockEnd: "marginBlockEnd";
|
|
321
|
+
marginBlockStart: "marginBlockStart";
|
|
322
|
+
marginBottom: "marginBottom";
|
|
323
|
+
marginEnd: "marginEnd";
|
|
324
|
+
marginHorizontal: "marginHorizontal";
|
|
325
|
+
marginInline: "marginInline";
|
|
326
|
+
marginInlineEnd: "marginInlineEnd";
|
|
327
|
+
marginInlineStart: "marginInlineStart";
|
|
328
|
+
marginLeft: "marginLeft";
|
|
329
|
+
marginRight: "marginRight";
|
|
330
|
+
marginStart: "marginStart";
|
|
331
|
+
marginTop: "marginTop";
|
|
332
|
+
marginVertical: "marginVertical";
|
|
333
|
+
maxHeight: "maxHeight";
|
|
334
|
+
maxWidth: "maxWidth";
|
|
335
|
+
minHeight: "minHeight";
|
|
336
|
+
minWidth: "minWidth";
|
|
337
|
+
mixBlendMode: "mixBlendMode";
|
|
338
|
+
objectFit: "objectFit";
|
|
339
|
+
opacity: "opacity";
|
|
340
|
+
outlineColor: "outlineColor";
|
|
341
|
+
outlineOffset: "outlineOffset";
|
|
342
|
+
outlineStyle: "outlineStyle";
|
|
343
|
+
outlineWidth: "outlineWidth";
|
|
344
|
+
overflow: "overflow";
|
|
345
|
+
overlayColor: "overlayColor";
|
|
346
|
+
padding: "padding";
|
|
347
|
+
paddingBlock: "paddingBlock";
|
|
348
|
+
paddingBlockEnd: "paddingBlockEnd";
|
|
349
|
+
paddingBlockStart: "paddingBlockStart";
|
|
350
|
+
paddingBottom: "paddingBottom";
|
|
351
|
+
paddingEnd: "paddingEnd";
|
|
352
|
+
paddingHorizontal: "paddingHorizontal";
|
|
353
|
+
paddingInline: "paddingInline";
|
|
354
|
+
paddingInlineEnd: "paddingInlineEnd";
|
|
355
|
+
paddingInlineStart: "paddingInlineStart";
|
|
356
|
+
paddingLeft: "paddingLeft";
|
|
357
|
+
paddingRight: "paddingRight";
|
|
358
|
+
paddingStart: "paddingStart";
|
|
359
|
+
paddingTop: "paddingTop";
|
|
360
|
+
paddingVertical: "paddingVertical";
|
|
361
|
+
pointerEvents: "pointerEvents";
|
|
362
|
+
resizeMode: "resizeMode";
|
|
363
|
+
right: "right";
|
|
364
|
+
rotation: "rotation";
|
|
365
|
+
rowGap: "rowGap";
|
|
366
|
+
scaleX: "scaleX";
|
|
367
|
+
scaleY: "scaleY";
|
|
368
|
+
shadowColor: "shadowColor";
|
|
369
|
+
shadowOffset: "shadowOffset";
|
|
370
|
+
shadowOpacity: "shadowOpacity";
|
|
371
|
+
shadowRadius: "shadowRadius";
|
|
372
|
+
start: "start";
|
|
373
|
+
textAlign: "textAlign";
|
|
374
|
+
textAlignVertical: "textAlignVertical";
|
|
375
|
+
textDecorationColor: "textDecorationColor";
|
|
376
|
+
textDecorationLine: "textDecorationLine";
|
|
377
|
+
textDecorationStyle: "textDecorationStyle";
|
|
378
|
+
textShadowColor: "textShadowColor";
|
|
379
|
+
textShadowOffset: "textShadowOffset";
|
|
380
|
+
textShadowRadius: "textShadowRadius";
|
|
381
|
+
textTransform: "textTransform";
|
|
382
|
+
tintColor: "tintColor";
|
|
383
|
+
top: "top";
|
|
384
|
+
transformMatrix: "transformMatrix";
|
|
385
|
+
transformOrigin: "transformOrigin";
|
|
386
|
+
translateX: "translateX";
|
|
387
|
+
translateY: "translateY";
|
|
388
|
+
userSelect: "userSelect";
|
|
389
|
+
verticalAlign: "verticalAlign";
|
|
390
|
+
width: "width";
|
|
391
|
+
writingDirection: "writingDirection";
|
|
392
|
+
zIndex: "zIndex";
|
|
393
|
+
}>>>;
|
|
394
|
+
values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<import("..").StylePropValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("..").StylePropValue, unknown>>>>;
|
|
395
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<Omit<Record<never, never>, never> & {}, import("zod/v4/core").$strip>, "style-property", {}, Record<never, never>, false, Record<never, never>, Record<never, never>>;
|
|
396
|
+
composites: import("..").CompositeClass;
|
|
397
|
+
fonts: import("..").FontClass;
|
|
398
|
+
icons: import("..").IconClass;
|
|
399
|
+
packages: import("..").PackageClass;
|
|
400
|
+
files: import("..").FileClass;
|
|
401
|
+
guidance: import("..").GuidanceClass;
|
|
402
|
+
canvasRoles: import("..").CanvasRoleClass;
|
|
403
|
+
devices: import("..").DeviceClass;
|
|
404
|
+
sources: import("..").SourceClass;
|
|
405
|
+
}, {
|
|
406
|
+
operations: import("..").OperationClass;
|
|
407
|
+
tools: import("..").ToolClass;
|
|
408
|
+
}, {
|
|
409
|
+
readonly linkedSystems: "sources";
|
|
410
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A small web system standing in for Yahoo OS (`yos`), the source `yos-native.ts` links.
|
|
3
|
+
*
|
|
4
|
+
* Trimmed to what the property engine's native cases read: a few foreground, background and spacing
|
|
5
|
+
* tokens, the state and color-mode modifiers the native system extends, and a `Switch` whose track the
|
|
6
|
+
* native system restyles.
|
|
7
|
+
*/
|
|
8
|
+
export declare const YOS_SOURCE_ID = "7a05f1e0-0000-4000-8000-000000000001";
|
|
9
|
+
export declare function yosWebSource(): import("..").ConfigInstance<{
|
|
10
|
+
settings: import("..").SettingsClass;
|
|
11
|
+
tokens: import("..").TokenClass;
|
|
12
|
+
components: import("..").ComponentClass;
|
|
13
|
+
modifiers: import("..").ModifierClass;
|
|
14
|
+
styleProps: import("..").StylePropertyClass;
|
|
15
|
+
composites: import("..").CompositeClass;
|
|
16
|
+
motion: import("..").MotionClass;
|
|
17
|
+
fonts: import("..").FontClass;
|
|
18
|
+
icons: import("..").IconClass;
|
|
19
|
+
packages: import("..").PackageClass;
|
|
20
|
+
files: import("..").FileClass;
|
|
21
|
+
guidance: import("..").GuidanceClass;
|
|
22
|
+
guidanceStyles: import("..").GuidanceStyleClass;
|
|
23
|
+
canvasRoles: import("..").CanvasRoleClass;
|
|
24
|
+
globalStyles: import("..").GlobalStyleClass;
|
|
25
|
+
devices: import("..").DeviceClass;
|
|
26
|
+
sources: import("..").SourceClass;
|
|
27
|
+
}, {
|
|
28
|
+
operations: import("..").OperationClass;
|
|
29
|
+
tools: import("..").ToolClass;
|
|
30
|
+
}, {
|
|
31
|
+
readonly linkedSystems: "sources";
|
|
32
|
+
}>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { DefaultSource } from "../../framework/projections.js";
|
|
2
|
+
import { Config } from "../../framework/Config.js";
|
|
3
|
+
|
|
4
|
+
//#region src/entities/system/resolve-properties.d.ts
|
|
5
|
+
type PropertyState = /** Nothing in the config gives this element the property. */'not-declared' /** The config gives it a value, but a design file can't write it. */ | 'read-only' /** This element states it. */ | 'set' /** Another source supplies it: a rule a prop drives, a composite, a forced modifier block. */ | 'inherited' /** The component definition supplies it, or nothing does. */ | 'default';
|
|
6
|
+
type PropertyValue = {
|
|
7
|
+
readonly kind: 'value';
|
|
8
|
+
readonly value: unknown;
|
|
9
|
+
} /** Stated as nothing (`''` or `null`), which beats every default. */ | {
|
|
10
|
+
readonly kind: 'none';
|
|
11
|
+
} /** Nothing anywhere: the platform's initial value. */ | {
|
|
12
|
+
readonly kind: 'unset';
|
|
13
|
+
} /** A marker the renderer resolves at paint time (`{ $state: '/x' }`). */ | {
|
|
14
|
+
readonly kind: 'bound';
|
|
15
|
+
readonly binding: unknown;
|
|
16
|
+
};
|
|
17
|
+
type PropertySource = {
|
|
18
|
+
readonly kind: 'element';
|
|
19
|
+
} | {
|
|
20
|
+
/** One of the component's `styles`. `drivenBy` is empty for its unconditional rule. */readonly kind: 'rule';
|
|
21
|
+
readonly key: string;
|
|
22
|
+
readonly layer: string;
|
|
23
|
+
readonly when: Readonly<Record<string, unknown>>;
|
|
24
|
+
readonly drivenBy: readonly string[];
|
|
25
|
+
} | {
|
|
26
|
+
/** A forced modifier's block inside a rule, or a rule an interaction holds. */readonly kind: 'modifier';
|
|
27
|
+
readonly modifier: string;
|
|
28
|
+
readonly rule: string;
|
|
29
|
+
readonly layer: string;
|
|
30
|
+
} | {
|
|
31
|
+
/** A composite prop on the element whose variant's styles set the key. */readonly kind: 'composite';
|
|
32
|
+
readonly prop: string;
|
|
33
|
+
readonly composite: string;
|
|
34
|
+
readonly variant: string;
|
|
35
|
+
} | DefaultSource;
|
|
36
|
+
/** Where a value the element can't write would change in the config. */
|
|
37
|
+
type ConfigAddress = {
|
|
38
|
+
readonly kind: 'component';
|
|
39
|
+
readonly path: string;
|
|
40
|
+
readonly field: 'props' | 'styles' | 'defaultProps' | 'defaultPropsWhen' | 'preview';
|
|
41
|
+
readonly key?: string;
|
|
42
|
+
} | {
|
|
43
|
+
readonly kind: 'composite';
|
|
44
|
+
readonly path: string;
|
|
45
|
+
};
|
|
46
|
+
/** One source's value for a key. */
|
|
47
|
+
interface SourcedValue {
|
|
48
|
+
readonly value: PropertyValue;
|
|
49
|
+
readonly source: PropertySource;
|
|
50
|
+
}
|
|
51
|
+
interface PropertyFact {
|
|
52
|
+
/** The name the element stores the property under (`bg`, `textVariant`, `size`). */
|
|
53
|
+
readonly key: string;
|
|
54
|
+
/** The style property it writes through, when it is one. Sections match on this. */
|
|
55
|
+
readonly styleProperty?: string;
|
|
56
|
+
readonly state: PropertyState;
|
|
57
|
+
/** The value that paints: the first of the sources that set the key. */
|
|
58
|
+
readonly value: PropertyValue;
|
|
59
|
+
/** Where `value` comes from; `null` when nothing sets the key. */
|
|
60
|
+
readonly source: PropertySource | null;
|
|
61
|
+
/** Whether the config lets a design file write the key. The host ANDs in its own write rights. */
|
|
62
|
+
readonly editable: boolean;
|
|
63
|
+
/** The component that declares the key, when it reaches this one through `forwards`. */
|
|
64
|
+
readonly declaredBy?: string;
|
|
65
|
+
/** For read-only and not-declared rows: where the system would change it. */
|
|
66
|
+
readonly configAddress?: ConfigAddress;
|
|
67
|
+
/** The lower sources that also set the key, highest first: what shows if the winner goes. */
|
|
68
|
+
readonly beneath: readonly SourcedValue[];
|
|
69
|
+
}
|
|
70
|
+
interface PropertyTarget {
|
|
71
|
+
/** The element's `type`, in any spelling `Component.get` accepts. */
|
|
72
|
+
readonly type: string;
|
|
73
|
+
/** What the element stores. */
|
|
74
|
+
readonly props: Readonly<Record<string, unknown>>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* A row for every property on a root element: every prop the component declares whose condition
|
|
78
|
+
* holds, every key the element stores, every key the component's rules and defaults set on its root
|
|
79
|
+
* layer, and every key in `include`.
|
|
80
|
+
*/
|
|
81
|
+
declare function resolveProperties({
|
|
82
|
+
config,
|
|
83
|
+
target,
|
|
84
|
+
forced,
|
|
85
|
+
previews,
|
|
86
|
+
include
|
|
87
|
+
}: {
|
|
88
|
+
config: Config;
|
|
89
|
+
target: PropertyTarget;
|
|
90
|
+
/** Modifiers in force beyond the element's own pins: a matrix column, or a state the render
|
|
91
|
+
* reports. */
|
|
92
|
+
forced?: readonly string[]; /** Whether the surface paints preview staging (a catalog tile, a matrix cell). A design file doesn't. */
|
|
93
|
+
previews?: boolean; /** Extra keys a surface asks about, so it can say what this element doesn't declare. */
|
|
94
|
+
include?: readonly string[];
|
|
95
|
+
}): readonly PropertyFact[];
|
|
96
|
+
//#endregion
|
|
97
|
+
export { ConfigAddress, PropertyFact, PropertySource, PropertyState, PropertyTarget, PropertyValue, SourcedValue, resolveProperties };
|