@yahoo/uds-create-config 4.5.2 → 4.7.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/configs/CanvasConfig.d.ts +900 -80
- package/dist/configs/react-native-system.d.ts +603 -55
- package/dist/configs/system.d.ts +603 -55
- package/dist/configs/system.js +7 -1
- package/dist/entities/system/Component.d.ts +480 -39
- package/dist/entities/system/Component.js +264 -93
- package/dist/entities/system/File.d.ts +1 -1
- package/dist/entities/system/LinkedSystem.d.ts +2 -2
- package/dist/entities/system/Operation.d.ts +1 -1
- package/dist/entities/system/StyleProperty.d.ts +8 -0
- package/dist/entities/system/StyleProperty.js +12 -1
- package/dist/entities/system/Tool.d.ts +1 -1
- package/dist/entities/system/component-module.js +1 -1
- package/dist/entities/system/defineComponent.d.ts +45 -7
- package/dist/entities/system/defineComponent.js +52 -25
- package/dist/framework/Config.d.ts +8 -2
- package/dist/framework/Config.js +97 -23
- package/dist/framework/class-names.d.ts +4 -2
- package/dist/framework/class-names.js +56 -17
- package/dist/framework/defineDerivedEntity.d.ts +1 -1
- package/dist/framework/defineEntity.d.ts +2 -2
- package/dist/framework/defineSubEntity.d.ts +3 -2
- package/dist/framework/preview-store.d.ts +19 -0
- package/dist/framework/preview-store.js +18 -0
- package/dist/framework/projections.d.ts +28 -8
- package/dist/framework/projections.js +50 -16
- package/dist/framework/prop-surface.d.ts +21 -1
- package/dist/framework/prop-surface.js +99 -21
- package/dist/framework/render-spec.d.ts +103 -3
- package/dist/framework/render-spec.js +285 -37
- package/dist/framework/schema-version.d.ts +1 -1
- package/dist/framework/schema-version.js +5 -5
- package/dist/framework/source-integrity.d.ts +14 -1
- package/dist/framework/utils/refs.js +10 -1
- package/dist/framework/validate-spec.d.ts +2 -0
- package/dist/framework/validate-spec.js +13 -0
- package/dist/index.d.ts +15 -12
- package/dist/index.js +7 -6
- package/dist/migrations/2.0.0/v1-artifact.d.ts +305 -29
- package/dist/migrations/20260919051027_prop_conditions_and_anatomy_positions_at_rest.d.ts +22 -0
- package/dist/migrations/20260919051027_prop_conditions_and_anatomy_positions_at_rest.js +10 -0
- package/dist/migrations/20260920004019_preview_conditions_keyed.d.ts +27 -0
- package/dist/migrations/20260920004019_preview_conditions_keyed.js +148 -0
- package/dist/migrations/20260920161309_prefixed_token_group.d.ts +12 -0
- package/dist/migrations/20260920161309_prefixed_token_group.js +10 -0
- package/dist/renderer/wrapRegistry.js +8 -2
- package/dist/renderer/wrappers/component-refs.d.ts +14 -0
- package/dist/renderer/wrappers/component-refs.js +79 -0
- package/dist/renderer/wrappers/hex-normalize.d.ts +5 -7
- package/dist/renderer/wrappers/hex-normalize.js +11 -10
- package/dist/spec/cell.d.ts +171 -0
- package/dist/spec/cell.js +361 -0
- package/dist/spec/detach.d.ts +125 -0
- package/dist/spec/detach.js +511 -0
- package/dist/spec/empty-node-slots.d.ts +11 -23
- package/dist/spec/empty-node-slots.js +12 -39
- package/dist/spec/index.d.ts +5 -3
- package/dist/spec/index.js +3 -3
- package/dist/spec/instance.d.ts +77 -0
- package/dist/spec/instance.js +80 -0
- package/dist/spec/preview-content.d.ts +95 -0
- package/dist/spec/preview-content.js +149 -0
- package/dist/spec/preview-elements.d.ts +54 -15
- package/dist/spec/preview-elements.js +109 -29
- package/dist/spec/prop-conditions.d.ts +28 -0
- package/dist/spec/prop-conditions.js +39 -0
- package/dist/spec/slot.d.ts +206 -0
- package/dist/spec/slot.js +542 -0
- package/dist/spec/visibility.d.ts +82 -0
- package/dist/spec/visibility.js +109 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +18 -2
package/dist/configs/system.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { CopyPlan } from "../entities/system/copy-plan.js";
|
|
2
2
|
import { ExtendableRef, Ref } from "../framework/utils/refs.js";
|
|
3
3
|
import { CreateInput } from "../framework/utils/field-schema.js";
|
|
4
|
-
import { DerivedEntityClass } from "../framework/defineDerivedEntity.js";
|
|
5
4
|
import { SubEntityClass } from "../framework/defineSubEntity.js";
|
|
5
|
+
import { ComputedInput } from "../framework/registry.js";
|
|
6
|
+
import { DerivedEntityClass } from "../framework/defineDerivedEntity.js";
|
|
6
7
|
import { ComponentContractOf, PathOf } from "../framework/registered.js";
|
|
7
8
|
import { EntityClass } from "../framework/defineEntity.js";
|
|
8
9
|
import { ConfigClass } from "../framework/defineConfig.js";
|
|
9
10
|
import { PinOptionsField } from "../entities/system/LinkedSystem.js";
|
|
10
11
|
import { BreakPlan, LinkPlan, SourceRowState, UnlinkPlan } from "../entities/system/link-plan.js";
|
|
11
12
|
import { Config } from "../framework/Config.js";
|
|
12
|
-
import {
|
|
13
|
+
import { StylePropValue } from "../entities/system/StyleProperty.js";
|
|
14
|
+
import { StoredPreviewCondition } from "../framework/preview-store.js";
|
|
15
|
+
import { listSlots, namedSlots, slotHostedBy, slotOf } from "../spec/slot.js";
|
|
16
|
+
import { cellAt } from "../spec/cell.js";
|
|
17
|
+
import { instanceAt } from "../spec/instance.js";
|
|
13
18
|
import { DerivedColor, Gradient } from "../entities/system/color.js";
|
|
14
19
|
import { StyleValue } from "../entities/system/style-bag.js";
|
|
15
20
|
import { ComponentElementBody, ComponentReference, ComponentStyleBody } from "../entities/system/Component.js";
|
|
16
|
-
import { StylePropValue } from "../entities/system/StyleProperty.js";
|
|
17
21
|
import { OverrideCondition } from "../entities/system/Token.js";
|
|
18
22
|
import * as _$zod from "zod";
|
|
19
23
|
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
@@ -79,6 +83,11 @@ declare const System: ConfigClass<{
|
|
|
79
83
|
__ref: _$zod.ZodString;
|
|
80
84
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
81
85
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
86
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
87
|
+
__ref: _$zod.ZodString;
|
|
88
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
89
|
+
__ref: _$zod.ZodString;
|
|
90
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
82
91
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
83
92
|
type: _$zod.ZodLiteral<"variant">;
|
|
84
93
|
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
@@ -91,6 +100,11 @@ declare const System: ConfigClass<{
|
|
|
91
100
|
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
92
101
|
}, _$zod_v4_core0.$strict>>]>;
|
|
93
102
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
103
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
104
|
+
__ref: _$zod.ZodString;
|
|
105
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
106
|
+
__ref: _$zod.ZodString;
|
|
107
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
94
108
|
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
95
109
|
type: _$zod.ZodLiteral<"forward">;
|
|
96
110
|
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
@@ -106,6 +120,11 @@ declare const System: ConfigClass<{
|
|
|
106
120
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
107
121
|
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
108
122
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
123
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
124
|
+
__ref: _$zod.ZodString;
|
|
125
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
126
|
+
__ref: _$zod.ZodString;
|
|
127
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
109
128
|
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
110
129
|
type: "forward";
|
|
111
130
|
target: string | {
|
|
@@ -121,6 +140,11 @@ declare const System: ConfigClass<{
|
|
|
121
140
|
}[] | undefined;
|
|
122
141
|
text?: boolean | undefined;
|
|
123
142
|
required?: boolean | undefined;
|
|
143
|
+
when?: Record<string, string | number | boolean | {
|
|
144
|
+
__ref: string;
|
|
145
|
+
} | (string | number | boolean | {
|
|
146
|
+
__ref: string;
|
|
147
|
+
})[]> | undefined;
|
|
124
148
|
}, {
|
|
125
149
|
type: "forward";
|
|
126
150
|
target: string | {
|
|
@@ -136,45 +160,77 @@ declare const System: ConfigClass<{
|
|
|
136
160
|
}[] | undefined;
|
|
137
161
|
text?: boolean | undefined;
|
|
138
162
|
required?: boolean | undefined;
|
|
163
|
+
when?: Record<string, string | number | boolean | {
|
|
164
|
+
__ref: string;
|
|
165
|
+
} | (string | number | boolean | {
|
|
166
|
+
__ref: string;
|
|
167
|
+
})[]> | undefined;
|
|
139
168
|
}>>, _$zod.ZodObject<{
|
|
140
169
|
type: _$zod.ZodLiteral<"styleProperty">;
|
|
141
170
|
value: _$zod.ZodObject<{
|
|
142
171
|
__ref: _$zod.ZodString;
|
|
143
172
|
}, _$zod_v4_core0.$strip>;
|
|
173
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
174
|
+
__ref: _$zod.ZodString;
|
|
175
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
176
|
+
__ref: _$zod.ZodString;
|
|
177
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
144
178
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
145
179
|
type: _$zod.ZodLiteral<"composite">;
|
|
146
180
|
value: _$zod.ZodObject<{
|
|
147
181
|
__ref: _$zod.ZodString;
|
|
148
182
|
}, _$zod_v4_core0.$strip>;
|
|
183
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
184
|
+
__ref: _$zod.ZodString;
|
|
185
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
186
|
+
__ref: _$zod.ZodString;
|
|
187
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
149
188
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
150
189
|
type: _$zod.ZodLiteral<"motion">;
|
|
151
190
|
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
152
191
|
__ref: _$zod.ZodString;
|
|
153
192
|
}, _$zod_v4_core0.$strip>>;
|
|
193
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
194
|
+
__ref: _$zod.ZodString;
|
|
195
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
196
|
+
__ref: _$zod.ZodString;
|
|
197
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
154
198
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
155
199
|
type: _$zod.ZodLiteral<"string">;
|
|
156
200
|
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
157
201
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
202
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
203
|
+
__ref: _$zod.ZodString;
|
|
204
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
205
|
+
__ref: _$zod.ZodString;
|
|
206
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
158
207
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
159
208
|
type: _$zod.ZodLiteral<"number">;
|
|
160
209
|
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
161
210
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
211
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
212
|
+
__ref: _$zod.ZodString;
|
|
213
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
214
|
+
__ref: _$zod.ZodString;
|
|
215
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
162
216
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
163
217
|
type: _$zod.ZodLiteral<"boolean">;
|
|
164
218
|
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
165
219
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
220
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
221
|
+
__ref: _$zod.ZodString;
|
|
222
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
223
|
+
__ref: _$zod.ZodString;
|
|
224
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
166
225
|
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
167
226
|
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
168
227
|
__ref: _$zod.ZodString;
|
|
169
228
|
}, _$zod_v4_core0.$strip>>]>>>;
|
|
170
229
|
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
230
|
+
renderProps: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
171
231
|
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
172
232
|
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
173
|
-
|
|
174
|
-
previewWhen: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
175
|
-
when: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
176
|
-
props: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
177
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
233
|
+
preview: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StoredPreviewCondition, unknown, _$zod_v4_core0.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
178
234
|
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
179
235
|
__ref: _$zod.ZodString;
|
|
180
236
|
}, _$zod_v4_core0.$strip>>;
|
|
@@ -197,6 +253,11 @@ declare const System: ConfigClass<{
|
|
|
197
253
|
__ref: _$zod.ZodString;
|
|
198
254
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
199
255
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
256
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
257
|
+
__ref: _$zod.ZodString;
|
|
258
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
259
|
+
__ref: _$zod.ZodString;
|
|
260
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
200
261
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
201
262
|
type: _$zod.ZodLiteral<"variant">;
|
|
202
263
|
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
@@ -209,6 +270,11 @@ declare const System: ConfigClass<{
|
|
|
209
270
|
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
210
271
|
}, _$zod_v4_core0.$strict>>]>;
|
|
211
272
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
273
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
274
|
+
__ref: _$zod.ZodString;
|
|
275
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
276
|
+
__ref: _$zod.ZodString;
|
|
277
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
212
278
|
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
213
279
|
type: _$zod.ZodLiteral<"forward">;
|
|
214
280
|
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
@@ -224,6 +290,11 @@ declare const System: ConfigClass<{
|
|
|
224
290
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
225
291
|
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
226
292
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
293
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
294
|
+
__ref: _$zod.ZodString;
|
|
295
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
296
|
+
__ref: _$zod.ZodString;
|
|
297
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
227
298
|
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
228
299
|
type: "forward";
|
|
229
300
|
target: string | {
|
|
@@ -239,6 +310,11 @@ declare const System: ConfigClass<{
|
|
|
239
310
|
}[] | undefined;
|
|
240
311
|
text?: boolean | undefined;
|
|
241
312
|
required?: boolean | undefined;
|
|
313
|
+
when?: Record<string, string | number | boolean | {
|
|
314
|
+
__ref: string;
|
|
315
|
+
} | (string | number | boolean | {
|
|
316
|
+
__ref: string;
|
|
317
|
+
})[]> | undefined;
|
|
242
318
|
}, {
|
|
243
319
|
type: "forward";
|
|
244
320
|
target: string | {
|
|
@@ -254,51 +330,83 @@ declare const System: ConfigClass<{
|
|
|
254
330
|
}[] | undefined;
|
|
255
331
|
text?: boolean | undefined;
|
|
256
332
|
required?: boolean | undefined;
|
|
333
|
+
when?: Record<string, string | number | boolean | {
|
|
334
|
+
__ref: string;
|
|
335
|
+
} | (string | number | boolean | {
|
|
336
|
+
__ref: string;
|
|
337
|
+
})[]> | undefined;
|
|
257
338
|
}>>, _$zod.ZodObject<{
|
|
258
339
|
type: _$zod.ZodLiteral<"styleProperty">;
|
|
259
340
|
value: _$zod.ZodObject<{
|
|
260
341
|
__ref: _$zod.ZodString;
|
|
261
342
|
}, _$zod_v4_core0.$strip>;
|
|
343
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
344
|
+
__ref: _$zod.ZodString;
|
|
345
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
346
|
+
__ref: _$zod.ZodString;
|
|
347
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
262
348
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
263
349
|
type: _$zod.ZodLiteral<"composite">;
|
|
264
350
|
value: _$zod.ZodObject<{
|
|
265
351
|
__ref: _$zod.ZodString;
|
|
266
352
|
}, _$zod_v4_core0.$strip>;
|
|
353
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
354
|
+
__ref: _$zod.ZodString;
|
|
355
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
356
|
+
__ref: _$zod.ZodString;
|
|
357
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
267
358
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
268
359
|
type: _$zod.ZodLiteral<"motion">;
|
|
269
360
|
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
270
361
|
__ref: _$zod.ZodString;
|
|
271
362
|
}, _$zod_v4_core0.$strip>>;
|
|
363
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
364
|
+
__ref: _$zod.ZodString;
|
|
365
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
366
|
+
__ref: _$zod.ZodString;
|
|
367
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
272
368
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
273
369
|
type: _$zod.ZodLiteral<"string">;
|
|
274
370
|
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
275
371
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
372
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
373
|
+
__ref: _$zod.ZodString;
|
|
374
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
375
|
+
__ref: _$zod.ZodString;
|
|
376
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
276
377
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
277
378
|
type: _$zod.ZodLiteral<"number">;
|
|
278
379
|
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
279
380
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
381
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
382
|
+
__ref: _$zod.ZodString;
|
|
383
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
384
|
+
__ref: _$zod.ZodString;
|
|
385
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
280
386
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
281
387
|
type: _$zod.ZodLiteral<"boolean">;
|
|
282
388
|
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
283
389
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
390
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
391
|
+
__ref: _$zod.ZodString;
|
|
392
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
393
|
+
__ref: _$zod.ZodString;
|
|
394
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
284
395
|
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
285
396
|
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
286
397
|
__ref: _$zod.ZodString;
|
|
287
398
|
}, _$zod_v4_core0.$strip>>]>>>;
|
|
288
399
|
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
400
|
+
renderProps: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
289
401
|
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
290
402
|
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
291
|
-
|
|
292
|
-
previewWhen: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
293
|
-
when: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
294
|
-
props: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
295
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
403
|
+
preview: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StoredPreviewCondition, unknown, _$zod_v4_core0.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
296
404
|
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
297
405
|
__ref: _$zod.ZodString;
|
|
298
406
|
}, _$zod_v4_core0.$strip>>;
|
|
299
407
|
export: _$zod.ZodOptional<_$zod.ZodString>;
|
|
300
408
|
}, _$zod_v4_core0.$strict>;
|
|
301
|
-
readonly description: "Create a component at a new qualified `path`. For a component with nothing in it yet, one to design on the canvas before it has props or variants, use `create-blank` with only a `path` instead of authoring a minimal body here. When its complete body is known, include all layers, anatomy, props, defaults, and styles in this one operation. `data.layers` maps each stable layer name to the element it renders and must include `root` — a tag for a primitive (`{ \"layers\": { \"root\": \"div\" } }`), and for anything built on top, a ref to a primitive (`{ \"root\": { \"__ref\": \"component:Box\" }, \"label\": { \"__ref\": \"component:Text\" } }`), which is what lets the layer take that primitive's style props. A primitive exposes style props as `{ \"type\": \"styleProperty\", \"value\": { \"__ref\": \"style-property:bg\" } }` and declares `children: { \"type\": \"slot\", \"text\": true }` when it holds content — without the slot, nothing nested inside it renders. A composed component exposes a layer's props at its own top level through `forwards`, keyed by layer: `{ \"forwards\": { \"root\": \"*\" } }` passes every prop the root's element takes (so `<Button width=\"full\">` reaches the root's `width`), and a list of member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`, each naming the component that declares the prop) passes only those. A prop a layer already exposes is forwarded, never redeclared in `props`; a `props` entry of `{ \"type\": \"forward\" }` is the reverse route, one of this component's props into a layer's. `anatomy` is the tree the build would read off a render: each node renders a layer (`{ \"__ref\": \"layer:<name>\" }`), an intrinsic tag, or `Slot` (`{ \"element\": \"Slot\", \"props\": { \"name\": \"children\" } }`, where a slot prop's content lands — but a declared slot fills `root` by default, so a primitive still declares its `children` slot prop yet needs no `Slot` node or `children` entry for it, and a `Slot` node is only for landing that content in a nested layer); `children` lists sibling node keys from the `root` node, never a prop name; `text` is a fixed string; `visible` is a condition on a prop (`{ \"$state\": \"<prop>\" }`, or with `eq`); content shown in a nested layer is a route, `children: { \"type\": \"forward\", \"target\": \"label/children\" }`. `$state` appears only in `visible` and in an `element` a prop chooses, never as a prop value. A glyph is a node of its own, `{ \"element\": { \"__ref\": \"icon:<library>/<Name>\" } }`, listed in the `children` of the layer node that holds it, never a prop value. Text a prop supplies to a text layer is never a node either: declare the prop `{ \"type\": \"forward\", \"target\": \"<layer>/children\" }` and the layer shows it; a `Slot` node goes only under a layer that takes nodes. A style rule is `\"styles\": { \"*\": { \"when\": null, \"layers\": { \"root\": { \"bg\": \"surface\" } } } }`, keyed by a name, with each layer's bag under `layers`. A composed component carries its own styles: give it an unconditional (`\"*\"`) rule that lays out and surfaces it through the system's style properties — spacing, alignment and gap on the container, a background and color where it has one — rather than leaning on the bare primitives, which paint flat. Style a layer only with the style props the primitive it renders exposes, set to the values those props accept: `component/get` on the primitive lists both, so read it and choose from that rather than reaching for a CSS name or value the system has no style property for. Set `
|
|
409
|
+
readonly description: "Create a component at a new qualified `path`. For a component with nothing in it yet, one to design on the canvas before it has props or variants, use `create-blank` with only a `path` instead of authoring a minimal body here. When its complete body is known, include all layers, anatomy, props, defaults, and styles in this one operation. `data.layers` maps each stable layer name to the element it renders and must include `root` — a tag for a primitive (`{ \"layers\": { \"root\": \"div\" } }`), and for anything built on top, a ref to a primitive (`{ \"root\": { \"__ref\": \"component:Box\" }, \"label\": { \"__ref\": \"component:Text\" } }`), which is what lets the layer take that primitive's style props. A primitive exposes style props as `{ \"type\": \"styleProperty\", \"value\": { \"__ref\": \"style-property:bg\" } }` and declares `children: { \"type\": \"slot\", \"text\": true }` when it holds content — without the slot, nothing nested inside it renders. A composed component exposes a layer's props at its own top level through `forwards`, keyed by layer: `{ \"forwards\": { \"root\": \"*\" } }` passes every prop the root's element takes (so `<Button width=\"full\">` reaches the root's `width`), and a list of member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`, each naming the component that declares the prop) passes only those. A prop a layer already exposes is forwarded, never redeclared in `props`; a `props` entry of `{ \"type\": \"forward\" }` is the reverse route, one of this component's props into a layer's. `anatomy` is the tree the build would read off a render: each node renders a layer (`{ \"__ref\": \"layer:<name>\" }`), an intrinsic tag, or `Slot` (`{ \"element\": \"Slot\", \"props\": { \"name\": \"children\" } }`, where a slot prop's content lands — but a declared slot fills `root` by default, so a primitive still declares its `children` slot prop yet needs no `Slot` node or `children` entry for it, and a `Slot` node is only for landing that content in a nested layer); `children` lists sibling node keys from the `root` node, never a prop name; `text` is a fixed string; `visible` is a condition on a prop (`{ \"$state\": \"<prop>\" }`, or with `eq`); content shown in a nested layer is a route, `children: { \"type\": \"forward\", \"target\": \"label/children\" }`. `$state` appears only in `visible` and in an `element` a prop chooses, never as a prop value. A glyph is a node of its own, `{ \"element\": { \"__ref\": \"icon:<library>/<Name>\" } }`, listed in the `children` of the layer node that holds it, never a prop value. Text a prop supplies to a text layer is never a node either: declare the prop `{ \"type\": \"forward\", \"target\": \"<layer>/children\" }` and the layer shows it; a `Slot` node goes only under a layer that takes nodes. A style rule is `\"styles\": { \"*\": { \"when\": null, \"layers\": { \"root\": { \"bg\": \"surface\" } } } }`, keyed by a name, with each layer's bag under `layers`. A composed component carries its own styles: give it an unconditional (`\"*\"`) rule that lays out and surfaces it through the system's style properties — spacing, alignment and gap on the container, a background and color where it has one — rather than leaning on the bare primitives, which paint flat. Style a layer only with the style props the primitive it renders exposes, set to the values those props accept: `component/get` on the primitive lists both, so read it and choose from that rather than reaching for a CSS name or value the system has no style property for. Set `preview` (`{ \"*\": { \"when\": null, \"props\": { \"children\": \"Example\" } } }`) or `defaultProps` so the component previews with content; a root that takes children renders empty otherwise. A style rule's layer bag is keyed by style-prop name (`fontWeight`, `color`), never by CSS property name, and each value is one of that prop's values.";
|
|
302
410
|
readonly example: ({
|
|
303
411
|
config
|
|
304
412
|
}: {
|
|
@@ -397,7 +505,7 @@ declare const System: ConfigClass<{
|
|
|
397
505
|
lt?: number | undefined;
|
|
398
506
|
lte?: number | undefined;
|
|
399
507
|
}>>, _$zod.ZodObject<{
|
|
400
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
508
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
401
509
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
402
510
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
403
511
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -424,7 +532,34 @@ declare const System: ConfigClass<{
|
|
|
424
532
|
gte?: number | undefined;
|
|
425
533
|
lt?: number | undefined;
|
|
426
534
|
lte?: number | undefined;
|
|
427
|
-
}
|
|
535
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
536
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
537
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
538
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
539
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
540
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
541
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
542
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
543
|
+
$state: _$zod.ZodString;
|
|
544
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
545
|
+
$state: string;
|
|
546
|
+
not?: true | undefined;
|
|
547
|
+
eq?: unknown;
|
|
548
|
+
neq?: unknown;
|
|
549
|
+
gt?: number | undefined;
|
|
550
|
+
gte?: number | undefined;
|
|
551
|
+
lt?: number | undefined;
|
|
552
|
+
lte?: number | undefined;
|
|
553
|
+
}, {
|
|
554
|
+
$state: string;
|
|
555
|
+
not?: true | undefined;
|
|
556
|
+
eq?: unknown;
|
|
557
|
+
neq?: unknown;
|
|
558
|
+
gt?: number | undefined;
|
|
559
|
+
gte?: number | undefined;
|
|
560
|
+
lt?: number | undefined;
|
|
561
|
+
lte?: number | undefined;
|
|
562
|
+
}>>>]>>;
|
|
428
563
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
429
564
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
430
565
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -453,7 +588,34 @@ declare const System: ConfigClass<{
|
|
|
453
588
|
lt?: number | undefined;
|
|
454
589
|
lte?: number | undefined;
|
|
455
590
|
}>>, _$zod.ZodObject<{
|
|
456
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
591
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
592
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
593
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
594
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
595
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
596
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
597
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
598
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
599
|
+
$state: _$zod.ZodString;
|
|
600
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
601
|
+
$state: string;
|
|
602
|
+
not?: true | undefined;
|
|
603
|
+
eq?: unknown;
|
|
604
|
+
neq?: unknown;
|
|
605
|
+
gt?: number | undefined;
|
|
606
|
+
gte?: number | undefined;
|
|
607
|
+
lt?: number | undefined;
|
|
608
|
+
lte?: number | undefined;
|
|
609
|
+
}, {
|
|
610
|
+
$state: string;
|
|
611
|
+
not?: true | undefined;
|
|
612
|
+
eq?: unknown;
|
|
613
|
+
neq?: unknown;
|
|
614
|
+
gt?: number | undefined;
|
|
615
|
+
gte?: number | undefined;
|
|
616
|
+
lt?: number | undefined;
|
|
617
|
+
lte?: number | undefined;
|
|
618
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
457
619
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
458
620
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
459
621
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -480,8 +642,8 @@ declare const System: ConfigClass<{
|
|
|
480
642
|
gte?: number | undefined;
|
|
481
643
|
lt?: number | undefined;
|
|
482
644
|
lte?: number | undefined;
|
|
483
|
-
}
|
|
484
|
-
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
645
|
+
}>>>]>>;
|
|
646
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
485
647
|
__ref: _$zod.ZodString;
|
|
486
648
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
487
649
|
$state: string;
|
|
@@ -530,7 +692,34 @@ declare const System: ConfigClass<{
|
|
|
530
692
|
lt?: number | undefined;
|
|
531
693
|
lte?: number | undefined;
|
|
532
694
|
}>>, _$zod.ZodObject<{
|
|
533
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
695
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
696
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
697
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
698
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
699
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
700
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
701
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
702
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
703
|
+
$state: _$zod.ZodString;
|
|
704
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
705
|
+
$state: string;
|
|
706
|
+
not?: true | undefined;
|
|
707
|
+
eq?: unknown;
|
|
708
|
+
neq?: unknown;
|
|
709
|
+
gt?: number | undefined;
|
|
710
|
+
gte?: number | undefined;
|
|
711
|
+
lt?: number | undefined;
|
|
712
|
+
lte?: number | undefined;
|
|
713
|
+
}, {
|
|
714
|
+
$state: string;
|
|
715
|
+
not?: true | undefined;
|
|
716
|
+
eq?: unknown;
|
|
717
|
+
neq?: unknown;
|
|
718
|
+
gt?: number | undefined;
|
|
719
|
+
gte?: number | undefined;
|
|
720
|
+
lt?: number | undefined;
|
|
721
|
+
lte?: number | undefined;
|
|
722
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
534
723
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
535
724
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
536
725
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -557,7 +746,7 @@ declare const System: ConfigClass<{
|
|
|
557
746
|
gte?: number | undefined;
|
|
558
747
|
lt?: number | undefined;
|
|
559
748
|
lte?: number | undefined;
|
|
560
|
-
}
|
|
749
|
+
}>>>]>>;
|
|
561
750
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
562
751
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
563
752
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -586,7 +775,7 @@ declare const System: ConfigClass<{
|
|
|
586
775
|
lt?: number | undefined;
|
|
587
776
|
lte?: number | undefined;
|
|
588
777
|
}>>, _$zod.ZodObject<{
|
|
589
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
778
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
590
779
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
591
780
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
592
781
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -613,8 +802,35 @@ declare const System: ConfigClass<{
|
|
|
613
802
|
gte?: number | undefined;
|
|
614
803
|
lt?: number | undefined;
|
|
615
804
|
lte?: number | undefined;
|
|
616
|
-
}
|
|
617
|
-
|
|
805
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
806
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
807
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
808
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
809
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
810
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
811
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
812
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
813
|
+
$state: _$zod.ZodString;
|
|
814
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
815
|
+
$state: string;
|
|
816
|
+
not?: true | undefined;
|
|
817
|
+
eq?: unknown;
|
|
818
|
+
neq?: unknown;
|
|
819
|
+
gt?: number | undefined;
|
|
820
|
+
gte?: number | undefined;
|
|
821
|
+
lt?: number | undefined;
|
|
822
|
+
lte?: number | undefined;
|
|
823
|
+
}, {
|
|
824
|
+
$state: string;
|
|
825
|
+
not?: true | undefined;
|
|
826
|
+
eq?: unknown;
|
|
827
|
+
neq?: unknown;
|
|
828
|
+
gt?: number | undefined;
|
|
829
|
+
gte?: number | undefined;
|
|
830
|
+
lt?: number | undefined;
|
|
831
|
+
lte?: number | undefined;
|
|
832
|
+
}>>>]>>;
|
|
833
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
618
834
|
__ref: _$zod.ZodString;
|
|
619
835
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
620
836
|
$state: string;
|
|
@@ -664,7 +880,34 @@ declare const System: ConfigClass<{
|
|
|
664
880
|
lt?: number | undefined;
|
|
665
881
|
lte?: number | undefined;
|
|
666
882
|
}>>, _$zod.ZodObject<{
|
|
667
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
883
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
884
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
885
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
886
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
887
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
888
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
889
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
890
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
891
|
+
$state: _$zod.ZodString;
|
|
892
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
893
|
+
$state: string;
|
|
894
|
+
not?: true | undefined;
|
|
895
|
+
eq?: unknown;
|
|
896
|
+
neq?: unknown;
|
|
897
|
+
gt?: number | undefined;
|
|
898
|
+
gte?: number | undefined;
|
|
899
|
+
lt?: number | undefined;
|
|
900
|
+
lte?: number | undefined;
|
|
901
|
+
}, {
|
|
902
|
+
$state: string;
|
|
903
|
+
not?: true | undefined;
|
|
904
|
+
eq?: unknown;
|
|
905
|
+
neq?: unknown;
|
|
906
|
+
gt?: number | undefined;
|
|
907
|
+
gte?: number | undefined;
|
|
908
|
+
lt?: number | undefined;
|
|
909
|
+
lte?: number | undefined;
|
|
910
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
668
911
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
669
912
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
670
913
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -691,7 +934,7 @@ declare const System: ConfigClass<{
|
|
|
691
934
|
gte?: number | undefined;
|
|
692
935
|
lt?: number | undefined;
|
|
693
936
|
lte?: number | undefined;
|
|
694
|
-
}
|
|
937
|
+
}>>>]>>;
|
|
695
938
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
696
939
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
697
940
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -720,7 +963,34 @@ declare const System: ConfigClass<{
|
|
|
720
963
|
lt?: number | undefined;
|
|
721
964
|
lte?: number | undefined;
|
|
722
965
|
}>>, _$zod.ZodObject<{
|
|
723
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
966
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
967
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
968
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
969
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
970
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
971
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
972
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
973
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
974
|
+
$state: _$zod.ZodString;
|
|
975
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
976
|
+
$state: string;
|
|
977
|
+
not?: true | undefined;
|
|
978
|
+
eq?: unknown;
|
|
979
|
+
neq?: unknown;
|
|
980
|
+
gt?: number | undefined;
|
|
981
|
+
gte?: number | undefined;
|
|
982
|
+
lt?: number | undefined;
|
|
983
|
+
lte?: number | undefined;
|
|
984
|
+
}, {
|
|
985
|
+
$state: string;
|
|
986
|
+
not?: true | undefined;
|
|
987
|
+
eq?: unknown;
|
|
988
|
+
neq?: unknown;
|
|
989
|
+
gt?: number | undefined;
|
|
990
|
+
gte?: number | undefined;
|
|
991
|
+
lt?: number | undefined;
|
|
992
|
+
lte?: number | undefined;
|
|
993
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
724
994
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
725
995
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
726
996
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -747,8 +1017,8 @@ declare const System: ConfigClass<{
|
|
|
747
1017
|
gte?: number | undefined;
|
|
748
1018
|
lt?: number | undefined;
|
|
749
1019
|
lte?: number | undefined;
|
|
750
|
-
}
|
|
751
|
-
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1020
|
+
}>>>]>>;
|
|
1021
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
752
1022
|
__ref: _$zod.ZodString;
|
|
753
1023
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
754
1024
|
$state: string;
|
|
@@ -841,6 +1111,12 @@ declare const System: ConfigClass<{
|
|
|
841
1111
|
}: ComputedInput) => string[];
|
|
842
1112
|
}, false>, "ref"> & {
|
|
843
1113
|
ref<const Path extends PathOf<"component">>(path: Path): ComponentReference<ComponentContractOf<Path>>;
|
|
1114
|
+
slots: typeof listSlots;
|
|
1115
|
+
slot: typeof slotOf;
|
|
1116
|
+
slotHostedBy: typeof slotHostedBy;
|
|
1117
|
+
namedSlots: typeof namedSlots;
|
|
1118
|
+
cell: typeof cellAt;
|
|
1119
|
+
instance: typeof instanceAt;
|
|
844
1120
|
};
|
|
845
1121
|
modifiers: EntityClass<_$zod.ZodObject<{
|
|
846
1122
|
type: _$zod.ZodEnum<{
|
|
@@ -1488,6 +1764,11 @@ declare const System: ConfigClass<{
|
|
|
1488
1764
|
__ref: _$zod.ZodString;
|
|
1489
1765
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
1490
1766
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1767
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1768
|
+
__ref: _$zod.ZodString;
|
|
1769
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1770
|
+
__ref: _$zod.ZodString;
|
|
1771
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1491
1772
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1492
1773
|
type: _$zod.ZodLiteral<"variant">;
|
|
1493
1774
|
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
@@ -1500,6 +1781,11 @@ declare const System: ConfigClass<{
|
|
|
1500
1781
|
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1501
1782
|
}, _$zod_v4_core0.$strict>>]>;
|
|
1502
1783
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1784
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1785
|
+
__ref: _$zod.ZodString;
|
|
1786
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1787
|
+
__ref: _$zod.ZodString;
|
|
1788
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1503
1789
|
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
1504
1790
|
type: _$zod.ZodLiteral<"forward">;
|
|
1505
1791
|
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
@@ -1515,6 +1801,11 @@ declare const System: ConfigClass<{
|
|
|
1515
1801
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
1516
1802
|
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1517
1803
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1804
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1805
|
+
__ref: _$zod.ZodString;
|
|
1806
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1807
|
+
__ref: _$zod.ZodString;
|
|
1808
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1518
1809
|
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1519
1810
|
type: "forward";
|
|
1520
1811
|
target: string | {
|
|
@@ -1530,6 +1821,11 @@ declare const System: ConfigClass<{
|
|
|
1530
1821
|
}[] | undefined;
|
|
1531
1822
|
text?: boolean | undefined;
|
|
1532
1823
|
required?: boolean | undefined;
|
|
1824
|
+
when?: Record<string, string | number | boolean | {
|
|
1825
|
+
__ref: string;
|
|
1826
|
+
} | (string | number | boolean | {
|
|
1827
|
+
__ref: string;
|
|
1828
|
+
})[]> | undefined;
|
|
1533
1829
|
}, {
|
|
1534
1830
|
type: "forward";
|
|
1535
1831
|
target: string | {
|
|
@@ -1545,45 +1841,77 @@ declare const System: ConfigClass<{
|
|
|
1545
1841
|
}[] | undefined;
|
|
1546
1842
|
text?: boolean | undefined;
|
|
1547
1843
|
required?: boolean | undefined;
|
|
1844
|
+
when?: Record<string, string | number | boolean | {
|
|
1845
|
+
__ref: string;
|
|
1846
|
+
} | (string | number | boolean | {
|
|
1847
|
+
__ref: string;
|
|
1848
|
+
})[]> | undefined;
|
|
1548
1849
|
}>>, _$zod.ZodObject<{
|
|
1549
1850
|
type: _$zod.ZodLiteral<"styleProperty">;
|
|
1550
1851
|
value: _$zod.ZodObject<{
|
|
1551
1852
|
__ref: _$zod.ZodString;
|
|
1552
1853
|
}, _$zod_v4_core0.$strip>;
|
|
1854
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1855
|
+
__ref: _$zod.ZodString;
|
|
1856
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1857
|
+
__ref: _$zod.ZodString;
|
|
1858
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1553
1859
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1554
1860
|
type: _$zod.ZodLiteral<"composite">;
|
|
1555
1861
|
value: _$zod.ZodObject<{
|
|
1556
1862
|
__ref: _$zod.ZodString;
|
|
1557
1863
|
}, _$zod_v4_core0.$strip>;
|
|
1864
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1865
|
+
__ref: _$zod.ZodString;
|
|
1866
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1867
|
+
__ref: _$zod.ZodString;
|
|
1868
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1558
1869
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1559
1870
|
type: _$zod.ZodLiteral<"motion">;
|
|
1560
1871
|
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
1561
1872
|
__ref: _$zod.ZodString;
|
|
1562
1873
|
}, _$zod_v4_core0.$strip>>;
|
|
1874
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1875
|
+
__ref: _$zod.ZodString;
|
|
1876
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1877
|
+
__ref: _$zod.ZodString;
|
|
1878
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1563
1879
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1564
1880
|
type: _$zod.ZodLiteral<"string">;
|
|
1565
1881
|
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1566
1882
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1883
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1884
|
+
__ref: _$zod.ZodString;
|
|
1885
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1886
|
+
__ref: _$zod.ZodString;
|
|
1887
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1567
1888
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1568
1889
|
type: _$zod.ZodLiteral<"number">;
|
|
1569
1890
|
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1570
1891
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1892
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1893
|
+
__ref: _$zod.ZodString;
|
|
1894
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1895
|
+
__ref: _$zod.ZodString;
|
|
1896
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1571
1897
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1572
1898
|
type: _$zod.ZodLiteral<"boolean">;
|
|
1573
1899
|
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1574
1900
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1901
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1902
|
+
__ref: _$zod.ZodString;
|
|
1903
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1904
|
+
__ref: _$zod.ZodString;
|
|
1905
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1575
1906
|
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
1576
1907
|
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
1577
1908
|
__ref: _$zod.ZodString;
|
|
1578
1909
|
}, _$zod_v4_core0.$strip>>]>>>;
|
|
1579
1910
|
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
1911
|
+
renderProps: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1580
1912
|
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
1581
1913
|
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
1582
|
-
|
|
1583
|
-
previewWhen: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1584
|
-
when: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
1585
|
-
props: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
1586
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
1914
|
+
preview: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StoredPreviewCondition, unknown, _$zod_v4_core0.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
1587
1915
|
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1588
1916
|
__ref: _$zod.ZodString;
|
|
1589
1917
|
}, _$zod_v4_core0.$strip>>;
|
|
@@ -1606,6 +1934,11 @@ declare const System: ConfigClass<{
|
|
|
1606
1934
|
__ref: _$zod.ZodString;
|
|
1607
1935
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
1608
1936
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1937
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1938
|
+
__ref: _$zod.ZodString;
|
|
1939
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1940
|
+
__ref: _$zod.ZodString;
|
|
1941
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1609
1942
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1610
1943
|
type: _$zod.ZodLiteral<"variant">;
|
|
1611
1944
|
value: _$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodArray<_$zod.ZodString>, _$zod.ZodTransform<{
|
|
@@ -1618,6 +1951,11 @@ declare const System: ConfigClass<{
|
|
|
1618
1951
|
deprecated: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1619
1952
|
}, _$zod_v4_core0.$strict>>]>;
|
|
1620
1953
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1954
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1955
|
+
__ref: _$zod.ZodString;
|
|
1956
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1957
|
+
__ref: _$zod.ZodString;
|
|
1958
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1621
1959
|
}, _$zod_v4_core0.$strict>, _$zod.ZodPipe<_$zod.ZodObject<{
|
|
1622
1960
|
type: _$zod.ZodLiteral<"forward">;
|
|
1623
1961
|
target: _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
@@ -1633,6 +1971,11 @@ declare const System: ConfigClass<{
|
|
|
1633
1971
|
}, _$zod_v4_core0.$strip>>]>>;
|
|
1634
1972
|
text: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1635
1973
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1974
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1975
|
+
__ref: _$zod.ZodString;
|
|
1976
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1977
|
+
__ref: _$zod.ZodString;
|
|
1978
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1636
1979
|
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
1637
1980
|
type: "forward";
|
|
1638
1981
|
target: string | {
|
|
@@ -1648,6 +1991,11 @@ declare const System: ConfigClass<{
|
|
|
1648
1991
|
}[] | undefined;
|
|
1649
1992
|
text?: boolean | undefined;
|
|
1650
1993
|
required?: boolean | undefined;
|
|
1994
|
+
when?: Record<string, string | number | boolean | {
|
|
1995
|
+
__ref: string;
|
|
1996
|
+
} | (string | number | boolean | {
|
|
1997
|
+
__ref: string;
|
|
1998
|
+
})[]> | undefined;
|
|
1651
1999
|
}, {
|
|
1652
2000
|
type: "forward";
|
|
1653
2001
|
target: string | {
|
|
@@ -1663,51 +2011,83 @@ declare const System: ConfigClass<{
|
|
|
1663
2011
|
}[] | undefined;
|
|
1664
2012
|
text?: boolean | undefined;
|
|
1665
2013
|
required?: boolean | undefined;
|
|
2014
|
+
when?: Record<string, string | number | boolean | {
|
|
2015
|
+
__ref: string;
|
|
2016
|
+
} | (string | number | boolean | {
|
|
2017
|
+
__ref: string;
|
|
2018
|
+
})[]> | undefined;
|
|
1666
2019
|
}>>, _$zod.ZodObject<{
|
|
1667
2020
|
type: _$zod.ZodLiteral<"styleProperty">;
|
|
1668
2021
|
value: _$zod.ZodObject<{
|
|
1669
2022
|
__ref: _$zod.ZodString;
|
|
1670
2023
|
}, _$zod_v4_core0.$strip>;
|
|
2024
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2025
|
+
__ref: _$zod.ZodString;
|
|
2026
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2027
|
+
__ref: _$zod.ZodString;
|
|
2028
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1671
2029
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1672
2030
|
type: _$zod.ZodLiteral<"composite">;
|
|
1673
2031
|
value: _$zod.ZodObject<{
|
|
1674
2032
|
__ref: _$zod.ZodString;
|
|
1675
2033
|
}, _$zod_v4_core0.$strip>;
|
|
2034
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2035
|
+
__ref: _$zod.ZodString;
|
|
2036
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2037
|
+
__ref: _$zod.ZodString;
|
|
2038
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1676
2039
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1677
2040
|
type: _$zod.ZodLiteral<"motion">;
|
|
1678
2041
|
value: _$zod.ZodDefault<_$zod.ZodObject<{
|
|
1679
2042
|
__ref: _$zod.ZodString;
|
|
1680
2043
|
}, _$zod_v4_core0.$strip>>;
|
|
2044
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2045
|
+
__ref: _$zod.ZodString;
|
|
2046
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2047
|
+
__ref: _$zod.ZodString;
|
|
2048
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1681
2049
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1682
2050
|
type: _$zod.ZodLiteral<"string">;
|
|
1683
2051
|
value: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1684
2052
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2053
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2054
|
+
__ref: _$zod.ZodString;
|
|
2055
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2056
|
+
__ref: _$zod.ZodString;
|
|
2057
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1685
2058
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1686
2059
|
type: _$zod.ZodLiteral<"number">;
|
|
1687
2060
|
value: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1688
2061
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2062
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2063
|
+
__ref: _$zod.ZodString;
|
|
2064
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2065
|
+
__ref: _$zod.ZodString;
|
|
2066
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1689
2067
|
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
1690
2068
|
type: _$zod.ZodLiteral<"boolean">;
|
|
1691
2069
|
value: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1692
2070
|
required: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2071
|
+
when: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2072
|
+
__ref: _$zod.ZodString;
|
|
2073
|
+
}, _$zod_v4_core0.$strip>]>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2074
|
+
__ref: _$zod.ZodString;
|
|
2075
|
+
}, _$zod_v4_core0.$strip>]>>]>>>;
|
|
1693
2076
|
}, _$zod_v4_core0.$strict>], "type">>>>;
|
|
1694
2077
|
forwards: _$zod.ZodOptional<SubEntityClass<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"*">, _$zod.ZodArray<_$zod.ZodObject<{
|
|
1695
2078
|
__ref: _$zod.ZodString;
|
|
1696
2079
|
}, _$zod_v4_core0.$strip>>]>>>;
|
|
1697
2080
|
styles: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentStyleBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentStyleBody, unknown>>>>;
|
|
2081
|
+
renderProps: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1698
2082
|
anatomy: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<ComponentElementBody, unknown, _$zod_v4_core0.$ZodTypeInternals<ComponentElementBody, unknown>>>>;
|
|
1699
2083
|
defaultProps: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StyleValue, unknown, _$zod_v4_core0.$ZodTypeInternals<StyleValue, unknown>>>>;
|
|
1700
|
-
|
|
1701
|
-
previewWhen: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1702
|
-
when: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
1703
|
-
props: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
1704
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
2084
|
+
preview: _$zod.ZodOptional<SubEntityClass<_$zod.ZodType<StoredPreviewCondition, unknown, _$zod_v4_core0.$ZodTypeInternals<StoredPreviewCondition, unknown>>>>;
|
|
1705
2085
|
file: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1706
2086
|
__ref: _$zod.ZodString;
|
|
1707
2087
|
}, _$zod_v4_core0.$strip>>;
|
|
1708
2088
|
export: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1709
2089
|
}, _$zod_v4_core0.$strict>;
|
|
1710
|
-
readonly description: "Create a component at a new qualified `path`. For a component with nothing in it yet, one to design on the canvas before it has props or variants, use `create-blank` with only a `path` instead of authoring a minimal body here. When its complete body is known, include all layers, anatomy, props, defaults, and styles in this one operation. `data.layers` maps each stable layer name to the element it renders and must include `root` — a tag for a primitive (`{ \"layers\": { \"root\": \"div\" } }`), and for anything built on top, a ref to a primitive (`{ \"root\": { \"__ref\": \"component:Box\" }, \"label\": { \"__ref\": \"component:Text\" } }`), which is what lets the layer take that primitive's style props. A primitive exposes style props as `{ \"type\": \"styleProperty\", \"value\": { \"__ref\": \"style-property:bg\" } }` and declares `children: { \"type\": \"slot\", \"text\": true }` when it holds content — without the slot, nothing nested inside it renders. A composed component exposes a layer's props at its own top level through `forwards`, keyed by layer: `{ \"forwards\": { \"root\": \"*\" } }` passes every prop the root's element takes (so `<Button width=\"full\">` reaches the root's `width`), and a list of member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`, each naming the component that declares the prop) passes only those. A prop a layer already exposes is forwarded, never redeclared in `props`; a `props` entry of `{ \"type\": \"forward\" }` is the reverse route, one of this component's props into a layer's. `anatomy` is the tree the build would read off a render: each node renders a layer (`{ \"__ref\": \"layer:<name>\" }`), an intrinsic tag, or `Slot` (`{ \"element\": \"Slot\", \"props\": { \"name\": \"children\" } }`, where a slot prop's content lands — but a declared slot fills `root` by default, so a primitive still declares its `children` slot prop yet needs no `Slot` node or `children` entry for it, and a `Slot` node is only for landing that content in a nested layer); `children` lists sibling node keys from the `root` node, never a prop name; `text` is a fixed string; `visible` is a condition on a prop (`{ \"$state\": \"<prop>\" }`, or with `eq`); content shown in a nested layer is a route, `children: { \"type\": \"forward\", \"target\": \"label/children\" }`. `$state` appears only in `visible` and in an `element` a prop chooses, never as a prop value. A glyph is a node of its own, `{ \"element\": { \"__ref\": \"icon:<library>/<Name>\" } }`, listed in the `children` of the layer node that holds it, never a prop value. Text a prop supplies to a text layer is never a node either: declare the prop `{ \"type\": \"forward\", \"target\": \"<layer>/children\" }` and the layer shows it; a `Slot` node goes only under a layer that takes nodes. A style rule is `\"styles\": { \"*\": { \"when\": null, \"layers\": { \"root\": { \"bg\": \"surface\" } } } }`, keyed by a name, with each layer's bag under `layers`. A composed component carries its own styles: give it an unconditional (`\"*\"`) rule that lays out and surfaces it through the system's style properties — spacing, alignment and gap on the container, a background and color where it has one — rather than leaning on the bare primitives, which paint flat. Style a layer only with the style props the primitive it renders exposes, set to the values those props accept: `component/get` on the primitive lists both, so read it and choose from that rather than reaching for a CSS name or value the system has no style property for. Set `
|
|
2090
|
+
readonly description: "Create a component at a new qualified `path`. For a component with nothing in it yet, one to design on the canvas before it has props or variants, use `create-blank` with only a `path` instead of authoring a minimal body here. When its complete body is known, include all layers, anatomy, props, defaults, and styles in this one operation. `data.layers` maps each stable layer name to the element it renders and must include `root` — a tag for a primitive (`{ \"layers\": { \"root\": \"div\" } }`), and for anything built on top, a ref to a primitive (`{ \"root\": { \"__ref\": \"component:Box\" }, \"label\": { \"__ref\": \"component:Text\" } }`), which is what lets the layer take that primitive's style props. A primitive exposes style props as `{ \"type\": \"styleProperty\", \"value\": { \"__ref\": \"style-property:bg\" } }` and declares `children: { \"type\": \"slot\", \"text\": true }` when it holds content — without the slot, nothing nested inside it renders. A composed component exposes a layer's props at its own top level through `forwards`, keyed by layer: `{ \"forwards\": { \"root\": \"*\" } }` passes every prop the root's element takes (so `<Button width=\"full\">` reaches the root's `width`), and a list of member refs (`[{ \"__ref\": \"component:Box#props/width\" }]`, each naming the component that declares the prop) passes only those. A prop a layer already exposes is forwarded, never redeclared in `props`; a `props` entry of `{ \"type\": \"forward\" }` is the reverse route, one of this component's props into a layer's. `anatomy` is the tree the build would read off a render: each node renders a layer (`{ \"__ref\": \"layer:<name>\" }`), an intrinsic tag, or `Slot` (`{ \"element\": \"Slot\", \"props\": { \"name\": \"children\" } }`, where a slot prop's content lands — but a declared slot fills `root` by default, so a primitive still declares its `children` slot prop yet needs no `Slot` node or `children` entry for it, and a `Slot` node is only for landing that content in a nested layer); `children` lists sibling node keys from the `root` node, never a prop name; `text` is a fixed string; `visible` is a condition on a prop (`{ \"$state\": \"<prop>\" }`, or with `eq`); content shown in a nested layer is a route, `children: { \"type\": \"forward\", \"target\": \"label/children\" }`. `$state` appears only in `visible` and in an `element` a prop chooses, never as a prop value. A glyph is a node of its own, `{ \"element\": { \"__ref\": \"icon:<library>/<Name>\" } }`, listed in the `children` of the layer node that holds it, never a prop value. Text a prop supplies to a text layer is never a node either: declare the prop `{ \"type\": \"forward\", \"target\": \"<layer>/children\" }` and the layer shows it; a `Slot` node goes only under a layer that takes nodes. A style rule is `\"styles\": { \"*\": { \"when\": null, \"layers\": { \"root\": { \"bg\": \"surface\" } } } }`, keyed by a name, with each layer's bag under `layers`. A composed component carries its own styles: give it an unconditional (`\"*\"`) rule that lays out and surfaces it through the system's style properties — spacing, alignment and gap on the container, a background and color where it has one — rather than leaning on the bare primitives, which paint flat. Style a layer only with the style props the primitive it renders exposes, set to the values those props accept: `component/get` on the primitive lists both, so read it and choose from that rather than reaching for a CSS name or value the system has no style property for. Set `preview` (`{ \"*\": { \"when\": null, \"props\": { \"children\": \"Example\" } } }`) or `defaultProps` so the component previews with content; a root that takes children renders empty otherwise. A style rule's layer bag is keyed by style-prop name (`fontWeight`, `color`), never by CSS property name, and each value is one of that prop's values.";
|
|
1711
2091
|
readonly example: ({
|
|
1712
2092
|
config
|
|
1713
2093
|
}: {
|
|
@@ -1806,7 +2186,7 @@ declare const System: ConfigClass<{
|
|
|
1806
2186
|
lt?: number | undefined;
|
|
1807
2187
|
lte?: number | undefined;
|
|
1808
2188
|
}>>, _$zod.ZodObject<{
|
|
1809
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2189
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1810
2190
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1811
2191
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1812
2192
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -1833,7 +2213,34 @@ declare const System: ConfigClass<{
|
|
|
1833
2213
|
gte?: number | undefined;
|
|
1834
2214
|
lt?: number | undefined;
|
|
1835
2215
|
lte?: number | undefined;
|
|
1836
|
-
}
|
|
2216
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2217
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2218
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2219
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2220
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2221
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2222
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2223
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2224
|
+
$state: _$zod.ZodString;
|
|
2225
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2226
|
+
$state: string;
|
|
2227
|
+
not?: true | undefined;
|
|
2228
|
+
eq?: unknown;
|
|
2229
|
+
neq?: unknown;
|
|
2230
|
+
gt?: number | undefined;
|
|
2231
|
+
gte?: number | undefined;
|
|
2232
|
+
lt?: number | undefined;
|
|
2233
|
+
lte?: number | undefined;
|
|
2234
|
+
}, {
|
|
2235
|
+
$state: string;
|
|
2236
|
+
not?: true | undefined;
|
|
2237
|
+
eq?: unknown;
|
|
2238
|
+
neq?: unknown;
|
|
2239
|
+
gt?: number | undefined;
|
|
2240
|
+
gte?: number | undefined;
|
|
2241
|
+
lt?: number | undefined;
|
|
2242
|
+
lte?: number | undefined;
|
|
2243
|
+
}>>>]>>;
|
|
1837
2244
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1838
2245
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1839
2246
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -1862,7 +2269,34 @@ declare const System: ConfigClass<{
|
|
|
1862
2269
|
lt?: number | undefined;
|
|
1863
2270
|
lte?: number | undefined;
|
|
1864
2271
|
}>>, _$zod.ZodObject<{
|
|
1865
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2272
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2273
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2274
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2275
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2276
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2277
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2278
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2279
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2280
|
+
$state: _$zod.ZodString;
|
|
2281
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2282
|
+
$state: string;
|
|
2283
|
+
not?: true | undefined;
|
|
2284
|
+
eq?: unknown;
|
|
2285
|
+
neq?: unknown;
|
|
2286
|
+
gt?: number | undefined;
|
|
2287
|
+
gte?: number | undefined;
|
|
2288
|
+
lt?: number | undefined;
|
|
2289
|
+
lte?: number | undefined;
|
|
2290
|
+
}, {
|
|
2291
|
+
$state: string;
|
|
2292
|
+
not?: true | undefined;
|
|
2293
|
+
eq?: unknown;
|
|
2294
|
+
neq?: unknown;
|
|
2295
|
+
gt?: number | undefined;
|
|
2296
|
+
gte?: number | undefined;
|
|
2297
|
+
lt?: number | undefined;
|
|
2298
|
+
lte?: number | undefined;
|
|
2299
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1866
2300
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1867
2301
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1868
2302
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -1889,8 +2323,8 @@ declare const System: ConfigClass<{
|
|
|
1889
2323
|
gte?: number | undefined;
|
|
1890
2324
|
lt?: number | undefined;
|
|
1891
2325
|
lte?: number | undefined;
|
|
1892
|
-
}
|
|
1893
|
-
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2326
|
+
}>>>]>>;
|
|
2327
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
1894
2328
|
__ref: _$zod.ZodString;
|
|
1895
2329
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
1896
2330
|
$state: string;
|
|
@@ -1939,7 +2373,34 @@ declare const System: ConfigClass<{
|
|
|
1939
2373
|
lt?: number | undefined;
|
|
1940
2374
|
lte?: number | undefined;
|
|
1941
2375
|
}>>, _$zod.ZodObject<{
|
|
1942
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2376
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2377
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2378
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2379
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2380
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2381
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2382
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2383
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2384
|
+
$state: _$zod.ZodString;
|
|
2385
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2386
|
+
$state: string;
|
|
2387
|
+
not?: true | undefined;
|
|
2388
|
+
eq?: unknown;
|
|
2389
|
+
neq?: unknown;
|
|
2390
|
+
gt?: number | undefined;
|
|
2391
|
+
gte?: number | undefined;
|
|
2392
|
+
lt?: number | undefined;
|
|
2393
|
+
lte?: number | undefined;
|
|
2394
|
+
}, {
|
|
2395
|
+
$state: string;
|
|
2396
|
+
not?: true | undefined;
|
|
2397
|
+
eq?: unknown;
|
|
2398
|
+
neq?: unknown;
|
|
2399
|
+
gt?: number | undefined;
|
|
2400
|
+
gte?: number | undefined;
|
|
2401
|
+
lt?: number | undefined;
|
|
2402
|
+
lte?: number | undefined;
|
|
2403
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1943
2404
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1944
2405
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
1945
2406
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -1966,7 +2427,7 @@ declare const System: ConfigClass<{
|
|
|
1966
2427
|
gte?: number | undefined;
|
|
1967
2428
|
lt?: number | undefined;
|
|
1968
2429
|
lte?: number | undefined;
|
|
1969
|
-
}
|
|
2430
|
+
}>>>]>>;
|
|
1970
2431
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1971
2432
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
1972
2433
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -1995,7 +2456,7 @@ declare const System: ConfigClass<{
|
|
|
1995
2456
|
lt?: number | undefined;
|
|
1996
2457
|
lte?: number | undefined;
|
|
1997
2458
|
}>>, _$zod.ZodObject<{
|
|
1998
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2459
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
1999
2460
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2000
2461
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2001
2462
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -2022,8 +2483,35 @@ declare const System: ConfigClass<{
|
|
|
2022
2483
|
gte?: number | undefined;
|
|
2023
2484
|
lt?: number | undefined;
|
|
2024
2485
|
lte?: number | undefined;
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2486
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2487
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2488
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2489
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2490
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2491
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2492
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2493
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2494
|
+
$state: _$zod.ZodString;
|
|
2495
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2496
|
+
$state: string;
|
|
2497
|
+
not?: true | undefined;
|
|
2498
|
+
eq?: unknown;
|
|
2499
|
+
neq?: unknown;
|
|
2500
|
+
gt?: number | undefined;
|
|
2501
|
+
gte?: number | undefined;
|
|
2502
|
+
lt?: number | undefined;
|
|
2503
|
+
lte?: number | undefined;
|
|
2504
|
+
}, {
|
|
2505
|
+
$state: string;
|
|
2506
|
+
not?: true | undefined;
|
|
2507
|
+
eq?: unknown;
|
|
2508
|
+
neq?: unknown;
|
|
2509
|
+
gt?: number | undefined;
|
|
2510
|
+
gte?: number | undefined;
|
|
2511
|
+
lt?: number | undefined;
|
|
2512
|
+
lte?: number | undefined;
|
|
2513
|
+
}>>>]>>;
|
|
2514
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2027
2515
|
__ref: _$zod.ZodString;
|
|
2028
2516
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
2029
2517
|
$state: string;
|
|
@@ -2073,7 +2561,7 @@ declare const System: ConfigClass<{
|
|
|
2073
2561
|
lt?: number | undefined;
|
|
2074
2562
|
lte?: number | undefined;
|
|
2075
2563
|
}>>, _$zod.ZodObject<{
|
|
2076
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2564
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2077
2565
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2078
2566
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2079
2567
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -2100,7 +2588,34 @@ declare const System: ConfigClass<{
|
|
|
2100
2588
|
gte?: number | undefined;
|
|
2101
2589
|
lt?: number | undefined;
|
|
2102
2590
|
lte?: number | undefined;
|
|
2103
|
-
}
|
|
2591
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2592
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2593
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2594
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2595
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2596
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2597
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2598
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2599
|
+
$state: _$zod.ZodString;
|
|
2600
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2601
|
+
$state: string;
|
|
2602
|
+
not?: true | undefined;
|
|
2603
|
+
eq?: unknown;
|
|
2604
|
+
neq?: unknown;
|
|
2605
|
+
gt?: number | undefined;
|
|
2606
|
+
gte?: number | undefined;
|
|
2607
|
+
lt?: number | undefined;
|
|
2608
|
+
lte?: number | undefined;
|
|
2609
|
+
}, {
|
|
2610
|
+
$state: string;
|
|
2611
|
+
not?: true | undefined;
|
|
2612
|
+
eq?: unknown;
|
|
2613
|
+
neq?: unknown;
|
|
2614
|
+
gt?: number | undefined;
|
|
2615
|
+
gte?: number | undefined;
|
|
2616
|
+
lt?: number | undefined;
|
|
2617
|
+
lte?: number | undefined;
|
|
2618
|
+
}>>>]>>;
|
|
2104
2619
|
}, _$zod_v4_core0.$strict>, _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2105
2620
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2106
2621
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -2129,7 +2644,34 @@ declare const System: ConfigClass<{
|
|
|
2129
2644
|
lt?: number | undefined;
|
|
2130
2645
|
lte?: number | undefined;
|
|
2131
2646
|
}>>, _$zod.ZodObject<{
|
|
2132
|
-
$or: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2647
|
+
$or: _$zod.ZodArray<_$zod.ZodUnion<readonly [_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2648
|
+
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2649
|
+
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2650
|
+
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2651
|
+
gt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2652
|
+
gte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2653
|
+
lt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2654
|
+
lte: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2655
|
+
$state: _$zod.ZodString;
|
|
2656
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodTransform<{
|
|
2657
|
+
$state: string;
|
|
2658
|
+
not?: true | undefined;
|
|
2659
|
+
eq?: unknown;
|
|
2660
|
+
neq?: unknown;
|
|
2661
|
+
gt?: number | undefined;
|
|
2662
|
+
gte?: number | undefined;
|
|
2663
|
+
lt?: number | undefined;
|
|
2664
|
+
lte?: number | undefined;
|
|
2665
|
+
}, {
|
|
2666
|
+
$state: string;
|
|
2667
|
+
not?: true | undefined;
|
|
2668
|
+
eq?: unknown;
|
|
2669
|
+
neq?: unknown;
|
|
2670
|
+
gt?: number | undefined;
|
|
2671
|
+
gte?: number | undefined;
|
|
2672
|
+
lt?: number | undefined;
|
|
2673
|
+
lte?: number | undefined;
|
|
2674
|
+
}>>, _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodObject<{
|
|
2133
2675
|
not: _$zod.ZodOptional<_$zod.ZodLiteral<true>>;
|
|
2134
2676
|
eq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
2135
2677
|
neq: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
@@ -2156,8 +2698,8 @@ declare const System: ConfigClass<{
|
|
|
2156
2698
|
gte?: number | undefined;
|
|
2157
2699
|
lt?: number | undefined;
|
|
2158
2700
|
lte?: number | undefined;
|
|
2159
|
-
}
|
|
2160
|
-
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2701
|
+
}>>>]>>;
|
|
2702
|
+
}, _$zod_v4_core0.$strict>]>>, _$zod.ZodLiteral<false>, _$zod.ZodPipe<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean, _$zod.ZodObject<{
|
|
2161
2703
|
__ref: _$zod.ZodString;
|
|
2162
2704
|
}, _$zod_v4_core0.$strip>]>>, _$zod.ZodTransform<{
|
|
2163
2705
|
$state: string;
|
|
@@ -2250,6 +2792,12 @@ declare const System: ConfigClass<{
|
|
|
2250
2792
|
}: ComputedInput) => string[];
|
|
2251
2793
|
}, false>, "ref"> & {
|
|
2252
2794
|
ref<const Path extends PathOf<"component">>(path: Path): ComponentReference<ComponentContractOf<Path>>;
|
|
2795
|
+
slots: typeof listSlots;
|
|
2796
|
+
slot: typeof slotOf;
|
|
2797
|
+
slotHostedBy: typeof slotHostedBy;
|
|
2798
|
+
namedSlots: typeof namedSlots;
|
|
2799
|
+
cell: typeof cellAt;
|
|
2800
|
+
instance: typeof instanceAt;
|
|
2253
2801
|
};
|
|
2254
2802
|
modifiers: EntityClass<_$zod.ZodObject<{
|
|
2255
2803
|
type: _$zod.ZodEnum<{
|