@buoy-design/core 0.1.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.
Files changed (57) hide show
  1. package/dist/analysis/index.d.ts +2 -0
  2. package/dist/analysis/index.d.ts.map +1 -0
  3. package/dist/analysis/index.js +2 -0
  4. package/dist/analysis/index.js.map +1 -0
  5. package/dist/analysis/semantic-diff.d.ts +100 -0
  6. package/dist/analysis/semantic-diff.d.ts.map +1 -0
  7. package/dist/analysis/semantic-diff.js +716 -0
  8. package/dist/analysis/semantic-diff.js.map +1 -0
  9. package/dist/analysis/semantic-diff.test.d.ts +2 -0
  10. package/dist/analysis/semantic-diff.test.d.ts.map +1 -0
  11. package/dist/analysis/semantic-diff.test.js +188 -0
  12. package/dist/analysis/semantic-diff.test.js.map +1 -0
  13. package/dist/index.d.ts +4 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +7 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/models/component.d.ts +638 -0
  18. package/dist/models/component.d.ts.map +1 -0
  19. package/dist/models/component.js +116 -0
  20. package/dist/models/component.js.map +1 -0
  21. package/dist/models/component.test.d.ts +2 -0
  22. package/dist/models/component.test.d.ts.map +1 -0
  23. package/dist/models/component.test.js +55 -0
  24. package/dist/models/component.test.js.map +1 -0
  25. package/dist/models/drift.d.ts +692 -0
  26. package/dist/models/drift.d.ts.map +1 -0
  27. package/dist/models/drift.js +152 -0
  28. package/dist/models/drift.js.map +1 -0
  29. package/dist/models/drift.test.d.ts +2 -0
  30. package/dist/models/drift.test.d.ts.map +1 -0
  31. package/dist/models/drift.test.js +38 -0
  32. package/dist/models/drift.test.js.map +1 -0
  33. package/dist/models/index.d.ts +9 -0
  34. package/dist/models/index.d.ts.map +1 -0
  35. package/dist/models/index.js +9 -0
  36. package/dist/models/index.js.map +1 -0
  37. package/dist/models/intent.d.ts +226 -0
  38. package/dist/models/intent.d.ts.map +1 -0
  39. package/dist/models/intent.js +84 -0
  40. package/dist/models/intent.js.map +1 -0
  41. package/dist/models/token.d.ts +740 -0
  42. package/dist/models/token.d.ts.map +1 -0
  43. package/dist/models/token.js +164 -0
  44. package/dist/models/token.js.map +1 -0
  45. package/dist/models/token.test.d.ts +2 -0
  46. package/dist/models/token.test.d.ts.map +1 -0
  47. package/dist/models/token.test.js +168 -0
  48. package/dist/models/token.test.js.map +1 -0
  49. package/dist/plugins/index.d.ts +2 -0
  50. package/dist/plugins/index.d.ts.map +1 -0
  51. package/dist/plugins/index.js +2 -0
  52. package/dist/plugins/index.js.map +1 -0
  53. package/dist/plugins/types.d.ts +60 -0
  54. package/dist/plugins/types.d.ts.map +1 -0
  55. package/dist/plugins/types.js +2 -0
  56. package/dist/plugins/types.js.map +1 -0
  57. package/package.json +49 -0
@@ -0,0 +1,638 @@
1
+ import { z } from 'zod';
2
+ export declare const ReactSourceSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"react">;
4
+ path: z.ZodString;
5
+ exportName: z.ZodString;
6
+ line: z.ZodOptional<z.ZodNumber>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: "react";
9
+ path: string;
10
+ exportName: string;
11
+ line?: number | undefined;
12
+ }, {
13
+ type: "react";
14
+ path: string;
15
+ exportName: string;
16
+ line?: number | undefined;
17
+ }>;
18
+ export declare const FigmaSourceSchema: z.ZodObject<{
19
+ type: z.ZodLiteral<"figma">;
20
+ fileKey: z.ZodString;
21
+ nodeId: z.ZodString;
22
+ url: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "figma";
25
+ fileKey: string;
26
+ nodeId: string;
27
+ url?: string | undefined;
28
+ }, {
29
+ type: "figma";
30
+ fileKey: string;
31
+ nodeId: string;
32
+ url?: string | undefined;
33
+ }>;
34
+ export declare const StorybookSourceSchema: z.ZodObject<{
35
+ type: z.ZodLiteral<"storybook">;
36
+ storyId: z.ZodString;
37
+ kind: z.ZodString;
38
+ url: z.ZodOptional<z.ZodString>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ type: "storybook";
41
+ storyId: string;
42
+ kind: string;
43
+ url?: string | undefined;
44
+ }, {
45
+ type: "storybook";
46
+ storyId: string;
47
+ kind: string;
48
+ url?: string | undefined;
49
+ }>;
50
+ export declare const VueSourceSchema: z.ZodObject<{
51
+ type: z.ZodLiteral<"vue">;
52
+ path: z.ZodString;
53
+ exportName: z.ZodString;
54
+ line: z.ZodOptional<z.ZodNumber>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ type: "vue";
57
+ path: string;
58
+ exportName: string;
59
+ line?: number | undefined;
60
+ }, {
61
+ type: "vue";
62
+ path: string;
63
+ exportName: string;
64
+ line?: number | undefined;
65
+ }>;
66
+ export declare const SvelteSourceSchema: z.ZodObject<{
67
+ type: z.ZodLiteral<"svelte">;
68
+ path: z.ZodString;
69
+ exportName: z.ZodString;
70
+ line: z.ZodOptional<z.ZodNumber>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ type: "svelte";
73
+ path: string;
74
+ exportName: string;
75
+ line?: number | undefined;
76
+ }, {
77
+ type: "svelte";
78
+ path: string;
79
+ exportName: string;
80
+ line?: number | undefined;
81
+ }>;
82
+ export declare const ComponentSourceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
83
+ type: z.ZodLiteral<"react">;
84
+ path: z.ZodString;
85
+ exportName: z.ZodString;
86
+ line: z.ZodOptional<z.ZodNumber>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ type: "react";
89
+ path: string;
90
+ exportName: string;
91
+ line?: number | undefined;
92
+ }, {
93
+ type: "react";
94
+ path: string;
95
+ exportName: string;
96
+ line?: number | undefined;
97
+ }>, z.ZodObject<{
98
+ type: z.ZodLiteral<"figma">;
99
+ fileKey: z.ZodString;
100
+ nodeId: z.ZodString;
101
+ url: z.ZodOptional<z.ZodString>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ type: "figma";
104
+ fileKey: string;
105
+ nodeId: string;
106
+ url?: string | undefined;
107
+ }, {
108
+ type: "figma";
109
+ fileKey: string;
110
+ nodeId: string;
111
+ url?: string | undefined;
112
+ }>, z.ZodObject<{
113
+ type: z.ZodLiteral<"storybook">;
114
+ storyId: z.ZodString;
115
+ kind: z.ZodString;
116
+ url: z.ZodOptional<z.ZodString>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: "storybook";
119
+ storyId: string;
120
+ kind: string;
121
+ url?: string | undefined;
122
+ }, {
123
+ type: "storybook";
124
+ storyId: string;
125
+ kind: string;
126
+ url?: string | undefined;
127
+ }>, z.ZodObject<{
128
+ type: z.ZodLiteral<"vue">;
129
+ path: z.ZodString;
130
+ exportName: z.ZodString;
131
+ line: z.ZodOptional<z.ZodNumber>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: "vue";
134
+ path: string;
135
+ exportName: string;
136
+ line?: number | undefined;
137
+ }, {
138
+ type: "vue";
139
+ path: string;
140
+ exportName: string;
141
+ line?: number | undefined;
142
+ }>, z.ZodObject<{
143
+ type: z.ZodLiteral<"svelte">;
144
+ path: z.ZodString;
145
+ exportName: z.ZodString;
146
+ line: z.ZodOptional<z.ZodNumber>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ type: "svelte";
149
+ path: string;
150
+ exportName: string;
151
+ line?: number | undefined;
152
+ }, {
153
+ type: "svelte";
154
+ path: string;
155
+ exportName: string;
156
+ line?: number | undefined;
157
+ }>]>;
158
+ export declare const PropDefinitionSchema: z.ZodObject<{
159
+ name: z.ZodString;
160
+ type: z.ZodString;
161
+ required: z.ZodBoolean;
162
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
163
+ description: z.ZodOptional<z.ZodString>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ type: string;
166
+ name: string;
167
+ required: boolean;
168
+ defaultValue?: unknown;
169
+ description?: string | undefined;
170
+ }, {
171
+ type: string;
172
+ name: string;
173
+ required: boolean;
174
+ defaultValue?: unknown;
175
+ description?: string | undefined;
176
+ }>;
177
+ export declare const VariantDefinitionSchema: z.ZodObject<{
178
+ name: z.ZodString;
179
+ props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ name: string;
182
+ props: Record<string, unknown>;
183
+ }, {
184
+ name: string;
185
+ props: Record<string, unknown>;
186
+ }>;
187
+ export declare const TokenReferenceSchema: z.ZodObject<{
188
+ tokenId: z.ZodString;
189
+ tokenName: z.ZodString;
190
+ usage: z.ZodEnum<["color", "spacing", "typography", "shadow", "border", "other"]>;
191
+ location: z.ZodString;
192
+ }, "strip", z.ZodTypeAny, {
193
+ tokenId: string;
194
+ tokenName: string;
195
+ usage: "color" | "spacing" | "typography" | "shadow" | "border" | "other";
196
+ location: string;
197
+ }, {
198
+ tokenId: string;
199
+ tokenName: string;
200
+ usage: "color" | "spacing" | "typography" | "shadow" | "border" | "other";
201
+ location: string;
202
+ }>;
203
+ export declare const AccessibilityInfoSchema: z.ZodObject<{
204
+ hasAriaLabel: z.ZodOptional<z.ZodBoolean>;
205
+ hasRole: z.ZodOptional<z.ZodBoolean>;
206
+ issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ issues?: string[] | undefined;
209
+ hasAriaLabel?: boolean | undefined;
210
+ hasRole?: boolean | undefined;
211
+ }, {
212
+ issues?: string[] | undefined;
213
+ hasAriaLabel?: boolean | undefined;
214
+ hasRole?: boolean | undefined;
215
+ }>;
216
+ export declare const HardcodedValueSchema: z.ZodObject<{
217
+ type: z.ZodEnum<["color", "spacing", "fontSize", "fontFamily", "shadow", "border", "other"]>;
218
+ value: z.ZodString;
219
+ property: z.ZodString;
220
+ location: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
223
+ value: string;
224
+ location: string;
225
+ property: string;
226
+ }, {
227
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
228
+ value: string;
229
+ location: string;
230
+ property: string;
231
+ }>;
232
+ export declare const ComponentMetadataSchema: z.ZodObject<{
233
+ deprecated: z.ZodOptional<z.ZodBoolean>;
234
+ deprecationReason: z.ZodOptional<z.ZodString>;
235
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
236
+ accessibility: z.ZodOptional<z.ZodObject<{
237
+ hasAriaLabel: z.ZodOptional<z.ZodBoolean>;
238
+ hasRole: z.ZodOptional<z.ZodBoolean>;
239
+ issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ issues?: string[] | undefined;
242
+ hasAriaLabel?: boolean | undefined;
243
+ hasRole?: boolean | undefined;
244
+ }, {
245
+ issues?: string[] | undefined;
246
+ hasAriaLabel?: boolean | undefined;
247
+ hasRole?: boolean | undefined;
248
+ }>>;
249
+ documentation: z.ZodOptional<z.ZodString>;
250
+ hardcodedValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
251
+ type: z.ZodEnum<["color", "spacing", "fontSize", "fontFamily", "shadow", "border", "other"]>;
252
+ value: z.ZodString;
253
+ property: z.ZodString;
254
+ location: z.ZodString;
255
+ }, "strip", z.ZodTypeAny, {
256
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
257
+ value: string;
258
+ location: string;
259
+ property: string;
260
+ }, {
261
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
262
+ value: string;
263
+ location: string;
264
+ property: string;
265
+ }>, "many">>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ deprecated?: boolean | undefined;
268
+ deprecationReason?: string | undefined;
269
+ tags?: string[] | undefined;
270
+ accessibility?: {
271
+ issues?: string[] | undefined;
272
+ hasAriaLabel?: boolean | undefined;
273
+ hasRole?: boolean | undefined;
274
+ } | undefined;
275
+ documentation?: string | undefined;
276
+ hardcodedValues?: {
277
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
278
+ value: string;
279
+ location: string;
280
+ property: string;
281
+ }[] | undefined;
282
+ }, {
283
+ deprecated?: boolean | undefined;
284
+ deprecationReason?: string | undefined;
285
+ tags?: string[] | undefined;
286
+ accessibility?: {
287
+ issues?: string[] | undefined;
288
+ hasAriaLabel?: boolean | undefined;
289
+ hasRole?: boolean | undefined;
290
+ } | undefined;
291
+ documentation?: string | undefined;
292
+ hardcodedValues?: {
293
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
294
+ value: string;
295
+ location: string;
296
+ property: string;
297
+ }[] | undefined;
298
+ }>;
299
+ export declare const ComponentSchema: z.ZodObject<{
300
+ id: z.ZodString;
301
+ name: z.ZodString;
302
+ source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
303
+ type: z.ZodLiteral<"react">;
304
+ path: z.ZodString;
305
+ exportName: z.ZodString;
306
+ line: z.ZodOptional<z.ZodNumber>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ type: "react";
309
+ path: string;
310
+ exportName: string;
311
+ line?: number | undefined;
312
+ }, {
313
+ type: "react";
314
+ path: string;
315
+ exportName: string;
316
+ line?: number | undefined;
317
+ }>, z.ZodObject<{
318
+ type: z.ZodLiteral<"figma">;
319
+ fileKey: z.ZodString;
320
+ nodeId: z.ZodString;
321
+ url: z.ZodOptional<z.ZodString>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ type: "figma";
324
+ fileKey: string;
325
+ nodeId: string;
326
+ url?: string | undefined;
327
+ }, {
328
+ type: "figma";
329
+ fileKey: string;
330
+ nodeId: string;
331
+ url?: string | undefined;
332
+ }>, z.ZodObject<{
333
+ type: z.ZodLiteral<"storybook">;
334
+ storyId: z.ZodString;
335
+ kind: z.ZodString;
336
+ url: z.ZodOptional<z.ZodString>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ type: "storybook";
339
+ storyId: string;
340
+ kind: string;
341
+ url?: string | undefined;
342
+ }, {
343
+ type: "storybook";
344
+ storyId: string;
345
+ kind: string;
346
+ url?: string | undefined;
347
+ }>, z.ZodObject<{
348
+ type: z.ZodLiteral<"vue">;
349
+ path: z.ZodString;
350
+ exportName: z.ZodString;
351
+ line: z.ZodOptional<z.ZodNumber>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ type: "vue";
354
+ path: string;
355
+ exportName: string;
356
+ line?: number | undefined;
357
+ }, {
358
+ type: "vue";
359
+ path: string;
360
+ exportName: string;
361
+ line?: number | undefined;
362
+ }>, z.ZodObject<{
363
+ type: z.ZodLiteral<"svelte">;
364
+ path: z.ZodString;
365
+ exportName: z.ZodString;
366
+ line: z.ZodOptional<z.ZodNumber>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ type: "svelte";
369
+ path: string;
370
+ exportName: string;
371
+ line?: number | undefined;
372
+ }, {
373
+ type: "svelte";
374
+ path: string;
375
+ exportName: string;
376
+ line?: number | undefined;
377
+ }>]>;
378
+ props: z.ZodArray<z.ZodObject<{
379
+ name: z.ZodString;
380
+ type: z.ZodString;
381
+ required: z.ZodBoolean;
382
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
383
+ description: z.ZodOptional<z.ZodString>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ type: string;
386
+ name: string;
387
+ required: boolean;
388
+ defaultValue?: unknown;
389
+ description?: string | undefined;
390
+ }, {
391
+ type: string;
392
+ name: string;
393
+ required: boolean;
394
+ defaultValue?: unknown;
395
+ description?: string | undefined;
396
+ }>, "many">;
397
+ variants: z.ZodArray<z.ZodObject<{
398
+ name: z.ZodString;
399
+ props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ name: string;
402
+ props: Record<string, unknown>;
403
+ }, {
404
+ name: string;
405
+ props: Record<string, unknown>;
406
+ }>, "many">;
407
+ tokens: z.ZodArray<z.ZodObject<{
408
+ tokenId: z.ZodString;
409
+ tokenName: z.ZodString;
410
+ usage: z.ZodEnum<["color", "spacing", "typography", "shadow", "border", "other"]>;
411
+ location: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ tokenId: string;
414
+ tokenName: string;
415
+ usage: "color" | "spacing" | "typography" | "shadow" | "border" | "other";
416
+ location: string;
417
+ }, {
418
+ tokenId: string;
419
+ tokenName: string;
420
+ usage: "color" | "spacing" | "typography" | "shadow" | "border" | "other";
421
+ location: string;
422
+ }>, "many">;
423
+ dependencies: z.ZodArray<z.ZodString, "many">;
424
+ metadata: z.ZodObject<{
425
+ deprecated: z.ZodOptional<z.ZodBoolean>;
426
+ deprecationReason: z.ZodOptional<z.ZodString>;
427
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
428
+ accessibility: z.ZodOptional<z.ZodObject<{
429
+ hasAriaLabel: z.ZodOptional<z.ZodBoolean>;
430
+ hasRole: z.ZodOptional<z.ZodBoolean>;
431
+ issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ issues?: string[] | undefined;
434
+ hasAriaLabel?: boolean | undefined;
435
+ hasRole?: boolean | undefined;
436
+ }, {
437
+ issues?: string[] | undefined;
438
+ hasAriaLabel?: boolean | undefined;
439
+ hasRole?: boolean | undefined;
440
+ }>>;
441
+ documentation: z.ZodOptional<z.ZodString>;
442
+ hardcodedValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ type: z.ZodEnum<["color", "spacing", "fontSize", "fontFamily", "shadow", "border", "other"]>;
444
+ value: z.ZodString;
445
+ property: z.ZodString;
446
+ location: z.ZodString;
447
+ }, "strip", z.ZodTypeAny, {
448
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
449
+ value: string;
450
+ location: string;
451
+ property: string;
452
+ }, {
453
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
454
+ value: string;
455
+ location: string;
456
+ property: string;
457
+ }>, "many">>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ deprecated?: boolean | undefined;
460
+ deprecationReason?: string | undefined;
461
+ tags?: string[] | undefined;
462
+ accessibility?: {
463
+ issues?: string[] | undefined;
464
+ hasAriaLabel?: boolean | undefined;
465
+ hasRole?: boolean | undefined;
466
+ } | undefined;
467
+ documentation?: string | undefined;
468
+ hardcodedValues?: {
469
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
470
+ value: string;
471
+ location: string;
472
+ property: string;
473
+ }[] | undefined;
474
+ }, {
475
+ deprecated?: boolean | undefined;
476
+ deprecationReason?: string | undefined;
477
+ tags?: string[] | undefined;
478
+ accessibility?: {
479
+ issues?: string[] | undefined;
480
+ hasAriaLabel?: boolean | undefined;
481
+ hasRole?: boolean | undefined;
482
+ } | undefined;
483
+ documentation?: string | undefined;
484
+ hardcodedValues?: {
485
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
486
+ value: string;
487
+ location: string;
488
+ property: string;
489
+ }[] | undefined;
490
+ }>;
491
+ scannedAt: z.ZodDate;
492
+ }, "strip", z.ZodTypeAny, {
493
+ name: string;
494
+ props: {
495
+ type: string;
496
+ name: string;
497
+ required: boolean;
498
+ defaultValue?: unknown;
499
+ description?: string | undefined;
500
+ }[];
501
+ id: string;
502
+ source: {
503
+ type: "react";
504
+ path: string;
505
+ exportName: string;
506
+ line?: number | undefined;
507
+ } | {
508
+ type: "figma";
509
+ fileKey: string;
510
+ nodeId: string;
511
+ url?: string | undefined;
512
+ } | {
513
+ type: "storybook";
514
+ storyId: string;
515
+ kind: string;
516
+ url?: string | undefined;
517
+ } | {
518
+ type: "vue";
519
+ path: string;
520
+ exportName: string;
521
+ line?: number | undefined;
522
+ } | {
523
+ type: "svelte";
524
+ path: string;
525
+ exportName: string;
526
+ line?: number | undefined;
527
+ };
528
+ variants: {
529
+ name: string;
530
+ props: Record<string, unknown>;
531
+ }[];
532
+ tokens: {
533
+ tokenId: string;
534
+ tokenName: string;
535
+ usage: "color" | "spacing" | "typography" | "shadow" | "border" | "other";
536
+ location: string;
537
+ }[];
538
+ dependencies: string[];
539
+ metadata: {
540
+ deprecated?: boolean | undefined;
541
+ deprecationReason?: string | undefined;
542
+ tags?: string[] | undefined;
543
+ accessibility?: {
544
+ issues?: string[] | undefined;
545
+ hasAriaLabel?: boolean | undefined;
546
+ hasRole?: boolean | undefined;
547
+ } | undefined;
548
+ documentation?: string | undefined;
549
+ hardcodedValues?: {
550
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
551
+ value: string;
552
+ location: string;
553
+ property: string;
554
+ }[] | undefined;
555
+ };
556
+ scannedAt: Date;
557
+ }, {
558
+ name: string;
559
+ props: {
560
+ type: string;
561
+ name: string;
562
+ required: boolean;
563
+ defaultValue?: unknown;
564
+ description?: string | undefined;
565
+ }[];
566
+ id: string;
567
+ source: {
568
+ type: "react";
569
+ path: string;
570
+ exportName: string;
571
+ line?: number | undefined;
572
+ } | {
573
+ type: "figma";
574
+ fileKey: string;
575
+ nodeId: string;
576
+ url?: string | undefined;
577
+ } | {
578
+ type: "storybook";
579
+ storyId: string;
580
+ kind: string;
581
+ url?: string | undefined;
582
+ } | {
583
+ type: "vue";
584
+ path: string;
585
+ exportName: string;
586
+ line?: number | undefined;
587
+ } | {
588
+ type: "svelte";
589
+ path: string;
590
+ exportName: string;
591
+ line?: number | undefined;
592
+ };
593
+ variants: {
594
+ name: string;
595
+ props: Record<string, unknown>;
596
+ }[];
597
+ tokens: {
598
+ tokenId: string;
599
+ tokenName: string;
600
+ usage: "color" | "spacing" | "typography" | "shadow" | "border" | "other";
601
+ location: string;
602
+ }[];
603
+ dependencies: string[];
604
+ metadata: {
605
+ deprecated?: boolean | undefined;
606
+ deprecationReason?: string | undefined;
607
+ tags?: string[] | undefined;
608
+ accessibility?: {
609
+ issues?: string[] | undefined;
610
+ hasAriaLabel?: boolean | undefined;
611
+ hasRole?: boolean | undefined;
612
+ } | undefined;
613
+ documentation?: string | undefined;
614
+ hardcodedValues?: {
615
+ type: "color" | "spacing" | "shadow" | "border" | "other" | "fontSize" | "fontFamily";
616
+ value: string;
617
+ location: string;
618
+ property: string;
619
+ }[] | undefined;
620
+ };
621
+ scannedAt: Date;
622
+ }>;
623
+ export type ReactSource = z.infer<typeof ReactSourceSchema>;
624
+ export type FigmaSource = z.infer<typeof FigmaSourceSchema>;
625
+ export type StorybookSource = z.infer<typeof StorybookSourceSchema>;
626
+ export type VueSource = z.infer<typeof VueSourceSchema>;
627
+ export type SvelteSource = z.infer<typeof SvelteSourceSchema>;
628
+ export type ComponentSource = z.infer<typeof ComponentSourceSchema>;
629
+ export type PropDefinition = z.infer<typeof PropDefinitionSchema>;
630
+ export type VariantDefinition = z.infer<typeof VariantDefinitionSchema>;
631
+ export type TokenReference = z.infer<typeof TokenReferenceSchema>;
632
+ export type AccessibilityInfo = z.infer<typeof AccessibilityInfoSchema>;
633
+ export type HardcodedValue = z.infer<typeof HardcodedValueSchema>;
634
+ export type ComponentMetadata = z.infer<typeof ComponentMetadataSchema>;
635
+ export type Component = z.infer<typeof ComponentSchema>;
636
+ export declare function createComponentId(source: ComponentSource, _name: string): string;
637
+ export declare function normalizeComponentName(name: string): string;
638
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/models/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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