desen-core 1.0.0-draft

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.
@@ -0,0 +1,759 @@
1
+ import { z } from "zod";
2
+ export declare const elementSpec: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
+ type: z.ZodString;
4
+ id: z.ZodString;
5
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
6
+ constraints: z.ZodOptional<z.ZodObject<{
7
+ a11y: z.ZodOptional<z.ZodObject<{
8
+ aria_label: z.ZodOptional<z.ZodString>;
9
+ aria_role: z.ZodOptional<z.ZodString>;
10
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
11
+ focusable: z.ZodOptional<z.ZodBoolean>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ aria_label?: string | undefined;
14
+ aria_role?: string | undefined;
15
+ min_contrast_ratio?: number | undefined;
16
+ focusable?: boolean | undefined;
17
+ }, {
18
+ aria_label?: string | undefined;
19
+ aria_role?: string | undefined;
20
+ min_contrast_ratio?: number | undefined;
21
+ focusable?: boolean | undefined;
22
+ }>>;
23
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
24
+ a11y: z.ZodOptional<z.ZodObject<{
25
+ aria_label: z.ZodOptional<z.ZodString>;
26
+ aria_role: z.ZodOptional<z.ZodString>;
27
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
28
+ focusable: z.ZodOptional<z.ZodBoolean>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ aria_label?: string | undefined;
31
+ aria_role?: string | undefined;
32
+ min_contrast_ratio?: number | undefined;
33
+ focusable?: boolean | undefined;
34
+ }, {
35
+ aria_label?: string | undefined;
36
+ aria_role?: string | undefined;
37
+ min_contrast_ratio?: number | undefined;
38
+ focusable?: boolean | undefined;
39
+ }>>;
40
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
41
+ a11y: z.ZodOptional<z.ZodObject<{
42
+ aria_label: z.ZodOptional<z.ZodString>;
43
+ aria_role: z.ZodOptional<z.ZodString>;
44
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
45
+ focusable: z.ZodOptional<z.ZodBoolean>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ aria_label?: string | undefined;
48
+ aria_role?: string | undefined;
49
+ min_contrast_ratio?: number | undefined;
50
+ focusable?: boolean | undefined;
51
+ }, {
52
+ aria_label?: string | undefined;
53
+ aria_role?: string | undefined;
54
+ min_contrast_ratio?: number | undefined;
55
+ focusable?: boolean | undefined;
56
+ }>>;
57
+ }, z.ZodTypeAny, "passthrough">>>;
58
+ modifiers: z.ZodOptional<z.ZodObject<{
59
+ visible: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
60
+ bind: z.ZodObject<{
61
+ source: z.ZodEnum<["session", "backend", "local", "feature_flag"]>;
62
+ path: z.ZodString;
63
+ fallback: z.ZodOptional<z.ZodAny>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ source: "session" | "backend" | "local" | "feature_flag";
66
+ path: string;
67
+ fallback?: any;
68
+ }, {
69
+ source: "session" | "backend" | "local" | "feature_flag";
70
+ path: string;
71
+ fallback?: any;
72
+ }>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ bind: {
75
+ source: "session" | "backend" | "local" | "feature_flag";
76
+ path: string;
77
+ fallback?: any;
78
+ };
79
+ }, {
80
+ bind: {
81
+ source: "session" | "backend" | "local" | "feature_flag";
82
+ path: string;
83
+ fallback?: any;
84
+ };
85
+ }>]>>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ visible?: boolean | {
88
+ bind: {
89
+ source: "session" | "backend" | "local" | "feature_flag";
90
+ path: string;
91
+ fallback?: any;
92
+ };
93
+ } | undefined;
94
+ }, {
95
+ visible?: boolean | {
96
+ bind: {
97
+ source: "session" | "backend" | "local" | "feature_flag";
98
+ path: string;
99
+ fallback?: any;
100
+ };
101
+ } | undefined;
102
+ }>>;
103
+ telemetry: z.ZodOptional<z.ZodObject<{
104
+ emit: z.ZodArray<z.ZodString, "many">;
105
+ }, "strip", z.ZodTypeAny, {
106
+ emit: string[];
107
+ }, {
108
+ emit: string[];
109
+ }>>;
110
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
111
+ type: z.ZodString;
112
+ id: z.ZodString;
113
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
114
+ constraints: z.ZodOptional<z.ZodObject<{
115
+ a11y: z.ZodOptional<z.ZodObject<{
116
+ aria_label: z.ZodOptional<z.ZodString>;
117
+ aria_role: z.ZodOptional<z.ZodString>;
118
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
119
+ focusable: z.ZodOptional<z.ZodBoolean>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ aria_label?: string | undefined;
122
+ aria_role?: string | undefined;
123
+ min_contrast_ratio?: number | undefined;
124
+ focusable?: boolean | undefined;
125
+ }, {
126
+ aria_label?: string | undefined;
127
+ aria_role?: string | undefined;
128
+ min_contrast_ratio?: number | undefined;
129
+ focusable?: boolean | undefined;
130
+ }>>;
131
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
132
+ a11y: z.ZodOptional<z.ZodObject<{
133
+ aria_label: z.ZodOptional<z.ZodString>;
134
+ aria_role: z.ZodOptional<z.ZodString>;
135
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
136
+ focusable: z.ZodOptional<z.ZodBoolean>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ aria_label?: string | undefined;
139
+ aria_role?: string | undefined;
140
+ min_contrast_ratio?: number | undefined;
141
+ focusable?: boolean | undefined;
142
+ }, {
143
+ aria_label?: string | undefined;
144
+ aria_role?: string | undefined;
145
+ min_contrast_ratio?: number | undefined;
146
+ focusable?: boolean | undefined;
147
+ }>>;
148
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
149
+ a11y: z.ZodOptional<z.ZodObject<{
150
+ aria_label: z.ZodOptional<z.ZodString>;
151
+ aria_role: z.ZodOptional<z.ZodString>;
152
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
153
+ focusable: z.ZodOptional<z.ZodBoolean>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ aria_label?: string | undefined;
156
+ aria_role?: string | undefined;
157
+ min_contrast_ratio?: number | undefined;
158
+ focusable?: boolean | undefined;
159
+ }, {
160
+ aria_label?: string | undefined;
161
+ aria_role?: string | undefined;
162
+ min_contrast_ratio?: number | undefined;
163
+ focusable?: boolean | undefined;
164
+ }>>;
165
+ }, z.ZodTypeAny, "passthrough">>>;
166
+ modifiers: z.ZodOptional<z.ZodObject<{
167
+ visible: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
168
+ bind: z.ZodObject<{
169
+ source: z.ZodEnum<["session", "backend", "local", "feature_flag"]>;
170
+ path: z.ZodString;
171
+ fallback: z.ZodOptional<z.ZodAny>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ source: "session" | "backend" | "local" | "feature_flag";
174
+ path: string;
175
+ fallback?: any;
176
+ }, {
177
+ source: "session" | "backend" | "local" | "feature_flag";
178
+ path: string;
179
+ fallback?: any;
180
+ }>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ bind: {
183
+ source: "session" | "backend" | "local" | "feature_flag";
184
+ path: string;
185
+ fallback?: any;
186
+ };
187
+ }, {
188
+ bind: {
189
+ source: "session" | "backend" | "local" | "feature_flag";
190
+ path: string;
191
+ fallback?: any;
192
+ };
193
+ }>]>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ visible?: boolean | {
196
+ bind: {
197
+ source: "session" | "backend" | "local" | "feature_flag";
198
+ path: string;
199
+ fallback?: any;
200
+ };
201
+ } | undefined;
202
+ }, {
203
+ visible?: boolean | {
204
+ bind: {
205
+ source: "session" | "backend" | "local" | "feature_flag";
206
+ path: string;
207
+ fallback?: any;
208
+ };
209
+ } | undefined;
210
+ }>>;
211
+ telemetry: z.ZodOptional<z.ZodObject<{
212
+ emit: z.ZodArray<z.ZodString, "many">;
213
+ }, "strip", z.ZodTypeAny, {
214
+ emit: string[];
215
+ }, {
216
+ emit: string[];
217
+ }>>;
218
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
219
+ type: z.ZodString;
220
+ id: z.ZodString;
221
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
222
+ constraints: z.ZodOptional<z.ZodObject<{
223
+ a11y: z.ZodOptional<z.ZodObject<{
224
+ aria_label: z.ZodOptional<z.ZodString>;
225
+ aria_role: z.ZodOptional<z.ZodString>;
226
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
227
+ focusable: z.ZodOptional<z.ZodBoolean>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ aria_label?: string | undefined;
230
+ aria_role?: string | undefined;
231
+ min_contrast_ratio?: number | undefined;
232
+ focusable?: boolean | undefined;
233
+ }, {
234
+ aria_label?: string | undefined;
235
+ aria_role?: string | undefined;
236
+ min_contrast_ratio?: number | undefined;
237
+ focusable?: boolean | undefined;
238
+ }>>;
239
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
240
+ a11y: z.ZodOptional<z.ZodObject<{
241
+ aria_label: z.ZodOptional<z.ZodString>;
242
+ aria_role: z.ZodOptional<z.ZodString>;
243
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
244
+ focusable: z.ZodOptional<z.ZodBoolean>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ aria_label?: string | undefined;
247
+ aria_role?: string | undefined;
248
+ min_contrast_ratio?: number | undefined;
249
+ focusable?: boolean | undefined;
250
+ }, {
251
+ aria_label?: string | undefined;
252
+ aria_role?: string | undefined;
253
+ min_contrast_ratio?: number | undefined;
254
+ focusable?: boolean | undefined;
255
+ }>>;
256
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
257
+ a11y: z.ZodOptional<z.ZodObject<{
258
+ aria_label: z.ZodOptional<z.ZodString>;
259
+ aria_role: z.ZodOptional<z.ZodString>;
260
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
261
+ focusable: z.ZodOptional<z.ZodBoolean>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ aria_label?: string | undefined;
264
+ aria_role?: string | undefined;
265
+ min_contrast_ratio?: number | undefined;
266
+ focusable?: boolean | undefined;
267
+ }, {
268
+ aria_label?: string | undefined;
269
+ aria_role?: string | undefined;
270
+ min_contrast_ratio?: number | undefined;
271
+ focusable?: boolean | undefined;
272
+ }>>;
273
+ }, z.ZodTypeAny, "passthrough">>>;
274
+ modifiers: z.ZodOptional<z.ZodObject<{
275
+ visible: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
276
+ bind: z.ZodObject<{
277
+ source: z.ZodEnum<["session", "backend", "local", "feature_flag"]>;
278
+ path: z.ZodString;
279
+ fallback: z.ZodOptional<z.ZodAny>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ source: "session" | "backend" | "local" | "feature_flag";
282
+ path: string;
283
+ fallback?: any;
284
+ }, {
285
+ source: "session" | "backend" | "local" | "feature_flag";
286
+ path: string;
287
+ fallback?: any;
288
+ }>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ bind: {
291
+ source: "session" | "backend" | "local" | "feature_flag";
292
+ path: string;
293
+ fallback?: any;
294
+ };
295
+ }, {
296
+ bind: {
297
+ source: "session" | "backend" | "local" | "feature_flag";
298
+ path: string;
299
+ fallback?: any;
300
+ };
301
+ }>]>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ visible?: boolean | {
304
+ bind: {
305
+ source: "session" | "backend" | "local" | "feature_flag";
306
+ path: string;
307
+ fallback?: any;
308
+ };
309
+ } | undefined;
310
+ }, {
311
+ visible?: boolean | {
312
+ bind: {
313
+ source: "session" | "backend" | "local" | "feature_flag";
314
+ path: string;
315
+ fallback?: any;
316
+ };
317
+ } | undefined;
318
+ }>>;
319
+ telemetry: z.ZodOptional<z.ZodObject<{
320
+ emit: z.ZodArray<z.ZodString, "many">;
321
+ }, "strip", z.ZodTypeAny, {
322
+ emit: string[];
323
+ }, {
324
+ emit: string[];
325
+ }>>;
326
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
327
+ type: z.ZodString;
328
+ id: z.ZodString;
329
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
330
+ constraints: z.ZodOptional<z.ZodObject<{
331
+ a11y: z.ZodOptional<z.ZodObject<{
332
+ aria_label: z.ZodOptional<z.ZodString>;
333
+ aria_role: z.ZodOptional<z.ZodString>;
334
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
335
+ focusable: z.ZodOptional<z.ZodBoolean>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ aria_label?: string | undefined;
338
+ aria_role?: string | undefined;
339
+ min_contrast_ratio?: number | undefined;
340
+ focusable?: boolean | undefined;
341
+ }, {
342
+ aria_label?: string | undefined;
343
+ aria_role?: string | undefined;
344
+ min_contrast_ratio?: number | undefined;
345
+ focusable?: boolean | undefined;
346
+ }>>;
347
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
348
+ a11y: z.ZodOptional<z.ZodObject<{
349
+ aria_label: z.ZodOptional<z.ZodString>;
350
+ aria_role: z.ZodOptional<z.ZodString>;
351
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
352
+ focusable: z.ZodOptional<z.ZodBoolean>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ aria_label?: string | undefined;
355
+ aria_role?: string | undefined;
356
+ min_contrast_ratio?: number | undefined;
357
+ focusable?: boolean | undefined;
358
+ }, {
359
+ aria_label?: string | undefined;
360
+ aria_role?: string | undefined;
361
+ min_contrast_ratio?: number | undefined;
362
+ focusable?: boolean | undefined;
363
+ }>>;
364
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
365
+ a11y: z.ZodOptional<z.ZodObject<{
366
+ aria_label: z.ZodOptional<z.ZodString>;
367
+ aria_role: z.ZodOptional<z.ZodString>;
368
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
369
+ focusable: z.ZodOptional<z.ZodBoolean>;
370
+ }, "strip", z.ZodTypeAny, {
371
+ aria_label?: string | undefined;
372
+ aria_role?: string | undefined;
373
+ min_contrast_ratio?: number | undefined;
374
+ focusable?: boolean | undefined;
375
+ }, {
376
+ aria_label?: string | undefined;
377
+ aria_role?: string | undefined;
378
+ min_contrast_ratio?: number | undefined;
379
+ focusable?: boolean | undefined;
380
+ }>>;
381
+ }, z.ZodTypeAny, "passthrough">>>;
382
+ modifiers: z.ZodOptional<z.ZodObject<{
383
+ visible: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
384
+ bind: z.ZodObject<{
385
+ source: z.ZodEnum<["session", "backend", "local", "feature_flag"]>;
386
+ path: z.ZodString;
387
+ fallback: z.ZodOptional<z.ZodAny>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ source: "session" | "backend" | "local" | "feature_flag";
390
+ path: string;
391
+ fallback?: any;
392
+ }, {
393
+ source: "session" | "backend" | "local" | "feature_flag";
394
+ path: string;
395
+ fallback?: any;
396
+ }>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ bind: {
399
+ source: "session" | "backend" | "local" | "feature_flag";
400
+ path: string;
401
+ fallback?: any;
402
+ };
403
+ }, {
404
+ bind: {
405
+ source: "session" | "backend" | "local" | "feature_flag";
406
+ path: string;
407
+ fallback?: any;
408
+ };
409
+ }>]>>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ visible?: boolean | {
412
+ bind: {
413
+ source: "session" | "backend" | "local" | "feature_flag";
414
+ path: string;
415
+ fallback?: any;
416
+ };
417
+ } | undefined;
418
+ }, {
419
+ visible?: boolean | {
420
+ bind: {
421
+ source: "session" | "backend" | "local" | "feature_flag";
422
+ path: string;
423
+ fallback?: any;
424
+ };
425
+ } | undefined;
426
+ }>>;
427
+ telemetry: z.ZodOptional<z.ZodObject<{
428
+ emit: z.ZodArray<z.ZodString, "many">;
429
+ }, "strip", z.ZodTypeAny, {
430
+ emit: string[];
431
+ }, {
432
+ emit: string[];
433
+ }>>;
434
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
435
+ type: z.ZodString;
436
+ id: z.ZodString;
437
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
438
+ constraints: z.ZodOptional<z.ZodObject<{
439
+ a11y: z.ZodOptional<z.ZodObject<{
440
+ aria_label: z.ZodOptional<z.ZodString>;
441
+ aria_role: z.ZodOptional<z.ZodString>;
442
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
443
+ focusable: z.ZodOptional<z.ZodBoolean>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ aria_label?: string | undefined;
446
+ aria_role?: string | undefined;
447
+ min_contrast_ratio?: number | undefined;
448
+ focusable?: boolean | undefined;
449
+ }, {
450
+ aria_label?: string | undefined;
451
+ aria_role?: string | undefined;
452
+ min_contrast_ratio?: number | undefined;
453
+ focusable?: boolean | undefined;
454
+ }>>;
455
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
456
+ a11y: z.ZodOptional<z.ZodObject<{
457
+ aria_label: z.ZodOptional<z.ZodString>;
458
+ aria_role: z.ZodOptional<z.ZodString>;
459
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
460
+ focusable: z.ZodOptional<z.ZodBoolean>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ aria_label?: string | undefined;
463
+ aria_role?: string | undefined;
464
+ min_contrast_ratio?: number | undefined;
465
+ focusable?: boolean | undefined;
466
+ }, {
467
+ aria_label?: string | undefined;
468
+ aria_role?: string | undefined;
469
+ min_contrast_ratio?: number | undefined;
470
+ focusable?: boolean | undefined;
471
+ }>>;
472
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
473
+ a11y: z.ZodOptional<z.ZodObject<{
474
+ aria_label: z.ZodOptional<z.ZodString>;
475
+ aria_role: z.ZodOptional<z.ZodString>;
476
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
477
+ focusable: z.ZodOptional<z.ZodBoolean>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ aria_label?: string | undefined;
480
+ aria_role?: string | undefined;
481
+ min_contrast_ratio?: number | undefined;
482
+ focusable?: boolean | undefined;
483
+ }, {
484
+ aria_label?: string | undefined;
485
+ aria_role?: string | undefined;
486
+ min_contrast_ratio?: number | undefined;
487
+ focusable?: boolean | undefined;
488
+ }>>;
489
+ }, z.ZodTypeAny, "passthrough">>>;
490
+ modifiers: z.ZodOptional<z.ZodObject<{
491
+ visible: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
492
+ bind: z.ZodObject<{
493
+ source: z.ZodEnum<["session", "backend", "local", "feature_flag"]>;
494
+ path: z.ZodString;
495
+ fallback: z.ZodOptional<z.ZodAny>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ source: "session" | "backend" | "local" | "feature_flag";
498
+ path: string;
499
+ fallback?: any;
500
+ }, {
501
+ source: "session" | "backend" | "local" | "feature_flag";
502
+ path: string;
503
+ fallback?: any;
504
+ }>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ bind: {
507
+ source: "session" | "backend" | "local" | "feature_flag";
508
+ path: string;
509
+ fallback?: any;
510
+ };
511
+ }, {
512
+ bind: {
513
+ source: "session" | "backend" | "local" | "feature_flag";
514
+ path: string;
515
+ fallback?: any;
516
+ };
517
+ }>]>>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ visible?: boolean | {
520
+ bind: {
521
+ source: "session" | "backend" | "local" | "feature_flag";
522
+ path: string;
523
+ fallback?: any;
524
+ };
525
+ } | undefined;
526
+ }, {
527
+ visible?: boolean | {
528
+ bind: {
529
+ source: "session" | "backend" | "local" | "feature_flag";
530
+ path: string;
531
+ fallback?: any;
532
+ };
533
+ } | undefined;
534
+ }>>;
535
+ telemetry: z.ZodOptional<z.ZodObject<{
536
+ emit: z.ZodArray<z.ZodString, "many">;
537
+ }, "strip", z.ZodTypeAny, {
538
+ emit: string[];
539
+ }, {
540
+ emit: string[];
541
+ }>>;
542
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
543
+ type: z.ZodString;
544
+ id: z.ZodString;
545
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
546
+ constraints: z.ZodOptional<z.ZodObject<{
547
+ a11y: z.ZodOptional<z.ZodObject<{
548
+ aria_label: z.ZodOptional<z.ZodString>;
549
+ aria_role: z.ZodOptional<z.ZodString>;
550
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
551
+ focusable: z.ZodOptional<z.ZodBoolean>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ aria_label?: string | undefined;
554
+ aria_role?: string | undefined;
555
+ min_contrast_ratio?: number | undefined;
556
+ focusable?: boolean | undefined;
557
+ }, {
558
+ aria_label?: string | undefined;
559
+ aria_role?: string | undefined;
560
+ min_contrast_ratio?: number | undefined;
561
+ focusable?: boolean | undefined;
562
+ }>>;
563
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
564
+ a11y: z.ZodOptional<z.ZodObject<{
565
+ aria_label: z.ZodOptional<z.ZodString>;
566
+ aria_role: z.ZodOptional<z.ZodString>;
567
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
568
+ focusable: z.ZodOptional<z.ZodBoolean>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ aria_label?: string | undefined;
571
+ aria_role?: string | undefined;
572
+ min_contrast_ratio?: number | undefined;
573
+ focusable?: boolean | undefined;
574
+ }, {
575
+ aria_label?: string | undefined;
576
+ aria_role?: string | undefined;
577
+ min_contrast_ratio?: number | undefined;
578
+ focusable?: boolean | undefined;
579
+ }>>;
580
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
581
+ a11y: z.ZodOptional<z.ZodObject<{
582
+ aria_label: z.ZodOptional<z.ZodString>;
583
+ aria_role: z.ZodOptional<z.ZodString>;
584
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
585
+ focusable: z.ZodOptional<z.ZodBoolean>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ aria_label?: string | undefined;
588
+ aria_role?: string | undefined;
589
+ min_contrast_ratio?: number | undefined;
590
+ focusable?: boolean | undefined;
591
+ }, {
592
+ aria_label?: string | undefined;
593
+ aria_role?: string | undefined;
594
+ min_contrast_ratio?: number | undefined;
595
+ focusable?: boolean | undefined;
596
+ }>>;
597
+ }, z.ZodTypeAny, "passthrough">>>;
598
+ modifiers: z.ZodOptional<z.ZodObject<{
599
+ visible: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
600
+ bind: z.ZodObject<{
601
+ source: z.ZodEnum<["session", "backend", "local", "feature_flag"]>;
602
+ path: z.ZodString;
603
+ fallback: z.ZodOptional<z.ZodAny>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ source: "session" | "backend" | "local" | "feature_flag";
606
+ path: string;
607
+ fallback?: any;
608
+ }, {
609
+ source: "session" | "backend" | "local" | "feature_flag";
610
+ path: string;
611
+ fallback?: any;
612
+ }>;
613
+ }, "strip", z.ZodTypeAny, {
614
+ bind: {
615
+ source: "session" | "backend" | "local" | "feature_flag";
616
+ path: string;
617
+ fallback?: any;
618
+ };
619
+ }, {
620
+ bind: {
621
+ source: "session" | "backend" | "local" | "feature_flag";
622
+ path: string;
623
+ fallback?: any;
624
+ };
625
+ }>]>>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ visible?: boolean | {
628
+ bind: {
629
+ source: "session" | "backend" | "local" | "feature_flag";
630
+ path: string;
631
+ fallback?: any;
632
+ };
633
+ } | undefined;
634
+ }, {
635
+ visible?: boolean | {
636
+ bind: {
637
+ source: "session" | "backend" | "local" | "feature_flag";
638
+ path: string;
639
+ fallback?: any;
640
+ };
641
+ } | undefined;
642
+ }>>;
643
+ telemetry: z.ZodOptional<z.ZodObject<{
644
+ emit: z.ZodArray<z.ZodString, "many">;
645
+ }, "strip", z.ZodTypeAny, {
646
+ emit: string[];
647
+ }, {
648
+ emit: string[];
649
+ }>>;
650
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
651
+ type: z.ZodString;
652
+ id: z.ZodString;
653
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
654
+ constraints: z.ZodOptional<z.ZodObject<{
655
+ a11y: z.ZodOptional<z.ZodObject<{
656
+ aria_label: z.ZodOptional<z.ZodString>;
657
+ aria_role: z.ZodOptional<z.ZodString>;
658
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
659
+ focusable: z.ZodOptional<z.ZodBoolean>;
660
+ }, "strip", z.ZodTypeAny, {
661
+ aria_label?: string | undefined;
662
+ aria_role?: string | undefined;
663
+ min_contrast_ratio?: number | undefined;
664
+ focusable?: boolean | undefined;
665
+ }, {
666
+ aria_label?: string | undefined;
667
+ aria_role?: string | undefined;
668
+ min_contrast_ratio?: number | undefined;
669
+ focusable?: boolean | undefined;
670
+ }>>;
671
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
672
+ a11y: z.ZodOptional<z.ZodObject<{
673
+ aria_label: z.ZodOptional<z.ZodString>;
674
+ aria_role: z.ZodOptional<z.ZodString>;
675
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
676
+ focusable: z.ZodOptional<z.ZodBoolean>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ aria_label?: string | undefined;
679
+ aria_role?: string | undefined;
680
+ min_contrast_ratio?: number | undefined;
681
+ focusable?: boolean | undefined;
682
+ }, {
683
+ aria_label?: string | undefined;
684
+ aria_role?: string | undefined;
685
+ min_contrast_ratio?: number | undefined;
686
+ focusable?: boolean | undefined;
687
+ }>>;
688
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
689
+ a11y: z.ZodOptional<z.ZodObject<{
690
+ aria_label: z.ZodOptional<z.ZodString>;
691
+ aria_role: z.ZodOptional<z.ZodString>;
692
+ min_contrast_ratio: z.ZodOptional<z.ZodNumber>;
693
+ focusable: z.ZodOptional<z.ZodBoolean>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ aria_label?: string | undefined;
696
+ aria_role?: string | undefined;
697
+ min_contrast_ratio?: number | undefined;
698
+ focusable?: boolean | undefined;
699
+ }, {
700
+ aria_label?: string | undefined;
701
+ aria_role?: string | undefined;
702
+ min_contrast_ratio?: number | undefined;
703
+ focusable?: boolean | undefined;
704
+ }>>;
705
+ }, z.ZodTypeAny, "passthrough">>>;
706
+ modifiers: z.ZodOptional<z.ZodObject<{
707
+ visible: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
708
+ bind: z.ZodObject<{
709
+ source: z.ZodEnum<["session", "backend", "local", "feature_flag"]>;
710
+ path: z.ZodString;
711
+ fallback: z.ZodOptional<z.ZodAny>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ source: "session" | "backend" | "local" | "feature_flag";
714
+ path: string;
715
+ fallback?: any;
716
+ }, {
717
+ source: "session" | "backend" | "local" | "feature_flag";
718
+ path: string;
719
+ fallback?: any;
720
+ }>;
721
+ }, "strip", z.ZodTypeAny, {
722
+ bind: {
723
+ source: "session" | "backend" | "local" | "feature_flag";
724
+ path: string;
725
+ fallback?: any;
726
+ };
727
+ }, {
728
+ bind: {
729
+ source: "session" | "backend" | "local" | "feature_flag";
730
+ path: string;
731
+ fallback?: any;
732
+ };
733
+ }>]>>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ visible?: boolean | {
736
+ bind: {
737
+ source: "session" | "backend" | "local" | "feature_flag";
738
+ path: string;
739
+ fallback?: any;
740
+ };
741
+ } | undefined;
742
+ }, {
743
+ visible?: boolean | {
744
+ bind: {
745
+ source: "session" | "backend" | "local" | "feature_flag";
746
+ path: string;
747
+ fallback?: any;
748
+ };
749
+ } | undefined;
750
+ }>>;
751
+ telemetry: z.ZodOptional<z.ZodObject<{
752
+ emit: z.ZodArray<z.ZodString, "many">;
753
+ }, "strip", z.ZodTypeAny, {
754
+ emit: string[];
755
+ }, {
756
+ emit: string[];
757
+ }>>;
758
+ }, z.ZodTypeAny, "passthrough">>;
759
+ export type ElementSpec = z.infer<typeof elementSpec>;