shadcn 2.9.3 → 3.0.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.
@@ -1,141 +1,5 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const configSchema: z.ZodObject<z.objectUtil.extendShape<{
4
- $schema: z.ZodOptional<z.ZodString>;
5
- style: z.ZodString;
6
- rsc: z.ZodDefault<z.ZodBoolean>;
7
- tsx: z.ZodDefault<z.ZodBoolean>;
8
- tailwind: z.ZodObject<{
9
- config: z.ZodOptional<z.ZodString>;
10
- css: z.ZodString;
11
- baseColor: z.ZodString;
12
- cssVariables: z.ZodDefault<z.ZodBoolean>;
13
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
14
- }, "strip", z.ZodTypeAny, {
15
- css: string;
16
- baseColor: string;
17
- cssVariables: boolean;
18
- config?: string | undefined;
19
- prefix?: string | undefined;
20
- }, {
21
- css: string;
22
- baseColor: string;
23
- config?: string | undefined;
24
- cssVariables?: boolean | undefined;
25
- prefix?: string | undefined;
26
- }>;
27
- aliases: z.ZodObject<{
28
- components: z.ZodString;
29
- utils: z.ZodString;
30
- ui: z.ZodOptional<z.ZodString>;
31
- lib: z.ZodOptional<z.ZodString>;
32
- hooks: z.ZodOptional<z.ZodString>;
33
- }, "strip", z.ZodTypeAny, {
34
- components: string;
35
- utils: string;
36
- ui?: string | undefined;
37
- lib?: string | undefined;
38
- hooks?: string | undefined;
39
- }, {
40
- components: string;
41
- utils: string;
42
- ui?: string | undefined;
43
- lib?: string | undefined;
44
- hooks?: string | undefined;
45
- }>;
46
- iconLibrary: z.ZodOptional<z.ZodString>;
47
- }, {
48
- resolvedPaths: z.ZodObject<{
49
- cwd: z.ZodString;
50
- tailwindConfig: z.ZodString;
51
- tailwindCss: z.ZodString;
52
- utils: z.ZodString;
53
- components: z.ZodString;
54
- lib: z.ZodString;
55
- hooks: z.ZodString;
56
- ui: z.ZodString;
57
- }, "strip", z.ZodTypeAny, {
58
- components: string;
59
- ui: string;
60
- utils: string;
61
- lib: string;
62
- hooks: string;
63
- cwd: string;
64
- tailwindConfig: string;
65
- tailwindCss: string;
66
- }, {
67
- components: string;
68
- ui: string;
69
- utils: string;
70
- lib: string;
71
- hooks: string;
72
- cwd: string;
73
- tailwindConfig: string;
74
- tailwindCss: string;
75
- }>;
76
- }>, "strict", z.ZodTypeAny, {
77
- tailwind: {
78
- css: string;
79
- baseColor: string;
80
- cssVariables: boolean;
81
- config?: string | undefined;
82
- prefix?: string | undefined;
83
- };
84
- style: string;
85
- rsc: boolean;
86
- tsx: boolean;
87
- aliases: {
88
- components: string;
89
- utils: string;
90
- ui?: string | undefined;
91
- lib?: string | undefined;
92
- hooks?: string | undefined;
93
- };
94
- resolvedPaths: {
95
- components: string;
96
- ui: string;
97
- utils: string;
98
- lib: string;
99
- hooks: string;
100
- cwd: string;
101
- tailwindConfig: string;
102
- tailwindCss: string;
103
- };
104
- $schema?: string | undefined;
105
- iconLibrary?: string | undefined;
106
- }, {
107
- tailwind: {
108
- css: string;
109
- baseColor: string;
110
- config?: string | undefined;
111
- cssVariables?: boolean | undefined;
112
- prefix?: string | undefined;
113
- };
114
- style: string;
115
- aliases: {
116
- components: string;
117
- utils: string;
118
- ui?: string | undefined;
119
- lib?: string | undefined;
120
- hooks?: string | undefined;
121
- };
122
- resolvedPaths: {
123
- components: string;
124
- ui: string;
125
- utils: string;
126
- lib: string;
127
- hooks: string;
128
- cwd: string;
129
- tailwindConfig: string;
130
- tailwindCss: string;
131
- };
132
- $schema?: string | undefined;
133
- rsc?: boolean | undefined;
134
- tsx?: boolean | undefined;
135
- iconLibrary?: string | undefined;
136
- }>;
137
- type Config = z.infer<typeof configSchema>;
138
-
139
3
  declare const registryItemTypeSchema: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:page", "registry:file", "registry:theme", "registry:style", "registry:item", "registry:example", "registry:internal"]>;
140
4
  declare const registryItemFileSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
141
5
  path: z.ZodString;
@@ -143,13 +7,13 @@ declare const registryItemFileSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
143
7
  type: z.ZodEnum<["registry:file", "registry:page"]>;
144
8
  target: z.ZodString;
145
9
  }, "strip", z.ZodTypeAny, {
146
- path: string;
147
10
  type: "registry:page" | "registry:file";
11
+ path: string;
148
12
  target: string;
149
13
  content?: string | undefined;
150
14
  }, {
151
- path: string;
152
15
  type: "registry:page" | "registry:file";
16
+ path: string;
153
17
  target: string;
154
18
  content?: string | undefined;
155
19
  }>, z.ZodObject<{
@@ -158,13 +22,13 @@ declare const registryItemFileSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
158
22
  type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:item", "registry:example", "registry:internal"]>;
159
23
  target: z.ZodOptional<z.ZodString>;
160
24
  }, "strip", z.ZodTypeAny, {
161
- path: string;
162
25
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
26
+ path: string;
163
27
  content?: string | undefined;
164
28
  target?: string | undefined;
165
29
  }, {
166
- path: string;
167
30
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
31
+ path: string;
168
32
  content?: string | undefined;
169
33
  target?: string | undefined;
170
34
  }>]>;
@@ -209,6 +73,7 @@ declare const registryItemCssVarsSchema: z.ZodObject<{
209
73
  dark?: Record<string, string> | undefined;
210
74
  }>;
211
75
  declare const registryItemCssSchema: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>;
76
+ declare const registryItemEnvVarsSchema: z.ZodRecord<z.ZodString, z.ZodString>;
212
77
  declare const registryItemSchema: z.ZodObject<{
213
78
  $schema: z.ZodOptional<z.ZodString>;
214
79
  extends: z.ZodOptional<z.ZodString>;
@@ -226,13 +91,13 @@ declare const registryItemSchema: z.ZodObject<{
226
91
  type: z.ZodEnum<["registry:file", "registry:page"]>;
227
92
  target: z.ZodString;
228
93
  }, "strip", z.ZodTypeAny, {
229
- path: string;
230
94
  type: "registry:page" | "registry:file";
95
+ path: string;
231
96
  target: string;
232
97
  content?: string | undefined;
233
98
  }, {
234
- path: string;
235
99
  type: "registry:page" | "registry:file";
100
+ path: string;
236
101
  target: string;
237
102
  content?: string | undefined;
238
103
  }>, z.ZodObject<{
@@ -241,13 +106,13 @@ declare const registryItemSchema: z.ZodObject<{
241
106
  type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:item", "registry:example", "registry:internal"]>;
242
107
  target: z.ZodOptional<z.ZodString>;
243
108
  }, "strip", z.ZodTypeAny, {
244
- path: string;
245
109
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
110
+ path: string;
246
111
  content?: string | undefined;
247
112
  target?: string | undefined;
248
113
  }, {
249
- path: string;
250
114
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
115
+ path: string;
251
116
  content?: string | undefined;
252
117
  target?: string | undefined;
253
118
  }>]>, "many">>;
@@ -292,6 +157,7 @@ declare const registryItemSchema: z.ZodObject<{
292
157
  dark?: Record<string, string> | undefined;
293
158
  }>>;
294
159
  css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>>;
160
+ envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
295
161
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
296
162
  docs: z.ZodOptional<z.ZodString>;
297
163
  categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -306,30 +172,31 @@ declare const registryItemSchema: z.ZodObject<{
306
172
  } | undefined;
307
173
  } | undefined;
308
174
  $schema?: string | undefined;
309
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
175
+ extends?: string | undefined;
176
+ title?: string | undefined;
177
+ author?: string | undefined;
178
+ description?: string | undefined;
310
179
  dependencies?: string[] | undefined;
311
180
  devDependencies?: string[] | undefined;
181
+ registryDependencies?: string[] | undefined;
312
182
  files?: ({
313
- path: string;
314
183
  type: "registry:page" | "registry:file";
184
+ path: string;
315
185
  target: string;
316
186
  content?: string | undefined;
317
187
  } | {
318
- path: string;
319
188
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
189
+ path: string;
320
190
  content?: string | undefined;
321
191
  target?: string | undefined;
322
192
  })[] | undefined;
323
- extends?: string | undefined;
324
- title?: string | undefined;
325
- author?: string | undefined;
326
- description?: string | undefined;
327
- registryDependencies?: string[] | undefined;
328
193
  cssVars?: {
329
194
  theme?: Record<string, string> | undefined;
330
195
  light?: Record<string, string> | undefined;
331
196
  dark?: Record<string, string> | undefined;
332
197
  } | undefined;
198
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
199
+ envVars?: Record<string, string> | undefined;
333
200
  meta?: Record<string, any> | undefined;
334
201
  docs?: string | undefined;
335
202
  categories?: string[] | undefined;
@@ -344,30 +211,31 @@ declare const registryItemSchema: z.ZodObject<{
344
211
  } | undefined;
345
212
  } | undefined;
346
213
  $schema?: string | undefined;
347
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
214
+ extends?: string | undefined;
215
+ title?: string | undefined;
216
+ author?: string | undefined;
217
+ description?: string | undefined;
348
218
  dependencies?: string[] | undefined;
349
219
  devDependencies?: string[] | undefined;
220
+ registryDependencies?: string[] | undefined;
350
221
  files?: ({
351
- path: string;
352
222
  type: "registry:page" | "registry:file";
223
+ path: string;
353
224
  target: string;
354
225
  content?: string | undefined;
355
226
  } | {
356
- path: string;
357
227
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
228
+ path: string;
358
229
  content?: string | undefined;
359
230
  target?: string | undefined;
360
231
  })[] | undefined;
361
- extends?: string | undefined;
362
- title?: string | undefined;
363
- author?: string | undefined;
364
- description?: string | undefined;
365
- registryDependencies?: string[] | undefined;
366
232
  cssVars?: {
367
233
  theme?: Record<string, string> | undefined;
368
234
  light?: Record<string, string> | undefined;
369
235
  dark?: Record<string, string> | undefined;
370
236
  } | undefined;
237
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
238
+ envVars?: Record<string, string> | undefined;
371
239
  meta?: Record<string, any> | undefined;
372
240
  docs?: string | undefined;
373
241
  categories?: string[] | undefined;
@@ -393,13 +261,13 @@ declare const registrySchema: z.ZodObject<{
393
261
  type: z.ZodEnum<["registry:file", "registry:page"]>;
394
262
  target: z.ZodString;
395
263
  }, "strip", z.ZodTypeAny, {
396
- path: string;
397
264
  type: "registry:page" | "registry:file";
265
+ path: string;
398
266
  target: string;
399
267
  content?: string | undefined;
400
268
  }, {
401
- path: string;
402
269
  type: "registry:page" | "registry:file";
270
+ path: string;
403
271
  target: string;
404
272
  content?: string | undefined;
405
273
  }>, z.ZodObject<{
@@ -408,13 +276,13 @@ declare const registrySchema: z.ZodObject<{
408
276
  type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:item", "registry:example", "registry:internal"]>;
409
277
  target: z.ZodOptional<z.ZodString>;
410
278
  }, "strip", z.ZodTypeAny, {
411
- path: string;
412
279
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
280
+ path: string;
413
281
  content?: string | undefined;
414
282
  target?: string | undefined;
415
283
  }, {
416
- path: string;
417
284
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
285
+ path: string;
418
286
  content?: string | undefined;
419
287
  target?: string | undefined;
420
288
  }>]>, "many">>;
@@ -459,6 +327,7 @@ declare const registrySchema: z.ZodObject<{
459
327
  dark?: Record<string, string> | undefined;
460
328
  }>>;
461
329
  css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>>;
330
+ envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
462
331
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
463
332
  docs: z.ZodOptional<z.ZodString>;
464
333
  categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -473,30 +342,31 @@ declare const registrySchema: z.ZodObject<{
473
342
  } | undefined;
474
343
  } | undefined;
475
344
  $schema?: string | undefined;
476
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
345
+ extends?: string | undefined;
346
+ title?: string | undefined;
347
+ author?: string | undefined;
348
+ description?: string | undefined;
477
349
  dependencies?: string[] | undefined;
478
350
  devDependencies?: string[] | undefined;
351
+ registryDependencies?: string[] | undefined;
479
352
  files?: ({
480
- path: string;
481
353
  type: "registry:page" | "registry:file";
354
+ path: string;
482
355
  target: string;
483
356
  content?: string | undefined;
484
357
  } | {
485
- path: string;
486
358
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
359
+ path: string;
487
360
  content?: string | undefined;
488
361
  target?: string | undefined;
489
362
  })[] | undefined;
490
- extends?: string | undefined;
491
- title?: string | undefined;
492
- author?: string | undefined;
493
- description?: string | undefined;
494
- registryDependencies?: string[] | undefined;
495
363
  cssVars?: {
496
364
  theme?: Record<string, string> | undefined;
497
365
  light?: Record<string, string> | undefined;
498
366
  dark?: Record<string, string> | undefined;
499
367
  } | undefined;
368
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
369
+ envVars?: Record<string, string> | undefined;
500
370
  meta?: Record<string, any> | undefined;
501
371
  docs?: string | undefined;
502
372
  categories?: string[] | undefined;
@@ -511,30 +381,31 @@ declare const registrySchema: z.ZodObject<{
511
381
  } | undefined;
512
382
  } | undefined;
513
383
  $schema?: string | undefined;
514
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
384
+ extends?: string | undefined;
385
+ title?: string | undefined;
386
+ author?: string | undefined;
387
+ description?: string | undefined;
515
388
  dependencies?: string[] | undefined;
516
389
  devDependencies?: string[] | undefined;
390
+ registryDependencies?: string[] | undefined;
517
391
  files?: ({
518
- path: string;
519
392
  type: "registry:page" | "registry:file";
393
+ path: string;
520
394
  target: string;
521
395
  content?: string | undefined;
522
396
  } | {
523
- path: string;
524
397
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
398
+ path: string;
525
399
  content?: string | undefined;
526
400
  target?: string | undefined;
527
401
  })[] | undefined;
528
- extends?: string | undefined;
529
- title?: string | undefined;
530
- author?: string | undefined;
531
- description?: string | undefined;
532
- registryDependencies?: string[] | undefined;
533
402
  cssVars?: {
534
403
  theme?: Record<string, string> | undefined;
535
404
  light?: Record<string, string> | undefined;
536
405
  dark?: Record<string, string> | undefined;
537
406
  } | undefined;
407
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
408
+ envVars?: Record<string, string> | undefined;
538
409
  meta?: Record<string, any> | undefined;
539
410
  docs?: string | undefined;
540
411
  categories?: string[] | undefined;
@@ -553,30 +424,31 @@ declare const registrySchema: z.ZodObject<{
553
424
  } | undefined;
554
425
  } | undefined;
555
426
  $schema?: string | undefined;
556
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
427
+ extends?: string | undefined;
428
+ title?: string | undefined;
429
+ author?: string | undefined;
430
+ description?: string | undefined;
557
431
  dependencies?: string[] | undefined;
558
432
  devDependencies?: string[] | undefined;
433
+ registryDependencies?: string[] | undefined;
559
434
  files?: ({
560
- path: string;
561
435
  type: "registry:page" | "registry:file";
436
+ path: string;
562
437
  target: string;
563
438
  content?: string | undefined;
564
439
  } | {
565
- path: string;
566
440
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
441
+ path: string;
567
442
  content?: string | undefined;
568
443
  target?: string | undefined;
569
444
  })[] | undefined;
570
- extends?: string | undefined;
571
- title?: string | undefined;
572
- author?: string | undefined;
573
- description?: string | undefined;
574
- registryDependencies?: string[] | undefined;
575
445
  cssVars?: {
576
446
  theme?: Record<string, string> | undefined;
577
447
  light?: Record<string, string> | undefined;
578
448
  dark?: Record<string, string> | undefined;
579
449
  } | undefined;
450
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
451
+ envVars?: Record<string, string> | undefined;
580
452
  meta?: Record<string, any> | undefined;
581
453
  docs?: string | undefined;
582
454
  categories?: string[] | undefined;
@@ -595,30 +467,31 @@ declare const registrySchema: z.ZodObject<{
595
467
  } | undefined;
596
468
  } | undefined;
597
469
  $schema?: string | undefined;
598
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
470
+ extends?: string | undefined;
471
+ title?: string | undefined;
472
+ author?: string | undefined;
473
+ description?: string | undefined;
599
474
  dependencies?: string[] | undefined;
600
475
  devDependencies?: string[] | undefined;
476
+ registryDependencies?: string[] | undefined;
601
477
  files?: ({
602
- path: string;
603
478
  type: "registry:page" | "registry:file";
479
+ path: string;
604
480
  target: string;
605
481
  content?: string | undefined;
606
482
  } | {
607
- path: string;
608
483
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
484
+ path: string;
609
485
  content?: string | undefined;
610
486
  target?: string | undefined;
611
487
  })[] | undefined;
612
- extends?: string | undefined;
613
- title?: string | undefined;
614
- author?: string | undefined;
615
- description?: string | undefined;
616
- registryDependencies?: string[] | undefined;
617
488
  cssVars?: {
618
489
  theme?: Record<string, string> | undefined;
619
490
  light?: Record<string, string> | undefined;
620
491
  dark?: Record<string, string> | undefined;
621
492
  } | undefined;
493
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
494
+ envVars?: Record<string, string> | undefined;
622
495
  meta?: Record<string, any> | undefined;
623
496
  docs?: string | undefined;
624
497
  categories?: string[] | undefined;
@@ -642,13 +515,13 @@ declare const registryIndexSchema: z.ZodArray<z.ZodObject<{
642
515
  type: z.ZodEnum<["registry:file", "registry:page"]>;
643
516
  target: z.ZodString;
644
517
  }, "strip", z.ZodTypeAny, {
645
- path: string;
646
518
  type: "registry:page" | "registry:file";
519
+ path: string;
647
520
  target: string;
648
521
  content?: string | undefined;
649
522
  }, {
650
- path: string;
651
523
  type: "registry:page" | "registry:file";
524
+ path: string;
652
525
  target: string;
653
526
  content?: string | undefined;
654
527
  }>, z.ZodObject<{
@@ -657,13 +530,13 @@ declare const registryIndexSchema: z.ZodArray<z.ZodObject<{
657
530
  type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:item", "registry:example", "registry:internal"]>;
658
531
  target: z.ZodOptional<z.ZodString>;
659
532
  }, "strip", z.ZodTypeAny, {
660
- path: string;
661
533
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
534
+ path: string;
662
535
  content?: string | undefined;
663
536
  target?: string | undefined;
664
537
  }, {
665
- path: string;
666
538
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
539
+ path: string;
667
540
  content?: string | undefined;
668
541
  target?: string | undefined;
669
542
  }>]>, "many">>;
@@ -708,6 +581,7 @@ declare const registryIndexSchema: z.ZodArray<z.ZodObject<{
708
581
  dark?: Record<string, string> | undefined;
709
582
  }>>;
710
583
  css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>>;
584
+ envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
711
585
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
712
586
  docs: z.ZodOptional<z.ZodString>;
713
587
  categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -722,30 +596,31 @@ declare const registryIndexSchema: z.ZodArray<z.ZodObject<{
722
596
  } | undefined;
723
597
  } | undefined;
724
598
  $schema?: string | undefined;
725
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
599
+ extends?: string | undefined;
600
+ title?: string | undefined;
601
+ author?: string | undefined;
602
+ description?: string | undefined;
726
603
  dependencies?: string[] | undefined;
727
604
  devDependencies?: string[] | undefined;
605
+ registryDependencies?: string[] | undefined;
728
606
  files?: ({
729
- path: string;
730
607
  type: "registry:page" | "registry:file";
608
+ path: string;
731
609
  target: string;
732
610
  content?: string | undefined;
733
611
  } | {
734
- path: string;
735
612
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
613
+ path: string;
736
614
  content?: string | undefined;
737
615
  target?: string | undefined;
738
616
  })[] | undefined;
739
- extends?: string | undefined;
740
- title?: string | undefined;
741
- author?: string | undefined;
742
- description?: string | undefined;
743
- registryDependencies?: string[] | undefined;
744
617
  cssVars?: {
745
618
  theme?: Record<string, string> | undefined;
746
619
  light?: Record<string, string> | undefined;
747
620
  dark?: Record<string, string> | undefined;
748
621
  } | undefined;
622
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
623
+ envVars?: Record<string, string> | undefined;
749
624
  meta?: Record<string, any> | undefined;
750
625
  docs?: string | undefined;
751
626
  categories?: string[] | undefined;
@@ -760,30 +635,31 @@ declare const registryIndexSchema: z.ZodArray<z.ZodObject<{
760
635
  } | undefined;
761
636
  } | undefined;
762
637
  $schema?: string | undefined;
763
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
638
+ extends?: string | undefined;
639
+ title?: string | undefined;
640
+ author?: string | undefined;
641
+ description?: string | undefined;
764
642
  dependencies?: string[] | undefined;
765
643
  devDependencies?: string[] | undefined;
644
+ registryDependencies?: string[] | undefined;
766
645
  files?: ({
767
- path: string;
768
646
  type: "registry:page" | "registry:file";
647
+ path: string;
769
648
  target: string;
770
649
  content?: string | undefined;
771
650
  } | {
772
- path: string;
773
651
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
652
+ path: string;
774
653
  content?: string | undefined;
775
654
  target?: string | undefined;
776
655
  })[] | undefined;
777
- extends?: string | undefined;
778
- title?: string | undefined;
779
- author?: string | undefined;
780
- description?: string | undefined;
781
- registryDependencies?: string[] | undefined;
782
656
  cssVars?: {
783
657
  theme?: Record<string, string> | undefined;
784
658
  light?: Record<string, string> | undefined;
785
659
  dark?: Record<string, string> | undefined;
786
660
  } | undefined;
661
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
662
+ envVars?: Record<string, string> | undefined;
787
663
  meta?: Record<string, any> | undefined;
788
664
  docs?: string | undefined;
789
665
  categories?: string[] | undefined;
@@ -890,13 +766,13 @@ declare const registryResolvedItemsTreeSchema: z.ZodObject<Pick<{
890
766
  type: z.ZodEnum<["registry:file", "registry:page"]>;
891
767
  target: z.ZodString;
892
768
  }, "strip", z.ZodTypeAny, {
893
- path: string;
894
769
  type: "registry:page" | "registry:file";
770
+ path: string;
895
771
  target: string;
896
772
  content?: string | undefined;
897
773
  }, {
898
- path: string;
899
774
  type: "registry:page" | "registry:file";
775
+ path: string;
900
776
  target: string;
901
777
  content?: string | undefined;
902
778
  }>, z.ZodObject<{
@@ -905,13 +781,13 @@ declare const registryResolvedItemsTreeSchema: z.ZodObject<Pick<{
905
781
  type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:item", "registry:example", "registry:internal"]>;
906
782
  target: z.ZodOptional<z.ZodString>;
907
783
  }, "strip", z.ZodTypeAny, {
908
- path: string;
909
784
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
785
+ path: string;
910
786
  content?: string | undefined;
911
787
  target?: string | undefined;
912
788
  }, {
913
- path: string;
914
789
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
790
+ path: string;
915
791
  content?: string | undefined;
916
792
  target?: string | undefined;
917
793
  }>]>, "many">>;
@@ -956,10 +832,11 @@ declare const registryResolvedItemsTreeSchema: z.ZodObject<Pick<{
956
832
  dark?: Record<string, string> | undefined;
957
833
  }>>;
958
834
  css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>>;
835
+ envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
959
836
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
960
837
  docs: z.ZodOptional<z.ZodString>;
961
838
  categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
962
- }, "tailwind" | "css" | "dependencies" | "devDependencies" | "files" | "cssVars" | "docs">, "strip", z.ZodTypeAny, {
839
+ }, "tailwind" | "dependencies" | "devDependencies" | "files" | "cssVars" | "css" | "envVars" | "docs">, "strip", z.ZodTypeAny, {
963
840
  tailwind?: {
964
841
  config?: {
965
842
  content?: string[] | undefined;
@@ -967,45 +844,16 @@ declare const registryResolvedItemsTreeSchema: z.ZodObject<Pick<{
967
844
  plugins?: string[] | undefined;
968
845
  } | undefined;
969
846
  } | undefined;
970
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
971
847
  dependencies?: string[] | undefined;
972
848
  devDependencies?: string[] | undefined;
973
849
  files?: ({
974
- path: string;
975
850
  type: "registry:page" | "registry:file";
976
- target: string;
977
- content?: string | undefined;
978
- } | {
979
- path: string;
980
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
981
- content?: string | undefined;
982
- target?: string | undefined;
983
- })[] | undefined;
984
- cssVars?: {
985
- theme?: Record<string, string> | undefined;
986
- light?: Record<string, string> | undefined;
987
- dark?: Record<string, string> | undefined;
988
- } | undefined;
989
- docs?: string | undefined;
990
- }, {
991
- tailwind?: {
992
- config?: {
993
- content?: string[] | undefined;
994
- theme?: Record<string, any> | undefined;
995
- plugins?: string[] | undefined;
996
- } | undefined;
997
- } | undefined;
998
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
999
- dependencies?: string[] | undefined;
1000
- devDependencies?: string[] | undefined;
1001
- files?: ({
1002
851
  path: string;
1003
- type: "registry:page" | "registry:file";
1004
852
  target: string;
1005
853
  content?: string | undefined;
1006
854
  } | {
1007
- path: string;
1008
855
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
856
+ path: string;
1009
857
  content?: string | undefined;
1010
858
  target?: string | undefined;
1011
859
  })[] | undefined;
@@ -1014,28 +862,10 @@ declare const registryResolvedItemsTreeSchema: z.ZodObject<Pick<{
1014
862
  light?: Record<string, string> | undefined;
1015
863
  dark?: Record<string, string> | undefined;
1016
864
  } | undefined;
865
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
866
+ envVars?: Record<string, string> | undefined;
1017
867
  docs?: string | undefined;
1018
- }>;
1019
-
1020
- declare const BASE_COLORS: readonly [{
1021
- readonly name: "neutral";
1022
- readonly label: "Neutral";
1023
- }, {
1024
- readonly name: "gray";
1025
- readonly label: "Gray";
1026
868
  }, {
1027
- readonly name: "zinc";
1028
- readonly label: "Zinc";
1029
- }, {
1030
- readonly name: "stone";
1031
- readonly label: "Stone";
1032
- }, {
1033
- readonly name: "slate";
1034
- readonly label: "Slate";
1035
- }];
1036
- declare function getRegistryIndex(): Promise<{
1037
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1038
- name: string;
1039
869
  tailwind?: {
1040
870
  config?: {
1041
871
  content?: string[] | undefined;
@@ -1043,291 +873,559 @@ declare function getRegistryIndex(): Promise<{
1043
873
  plugins?: string[] | undefined;
1044
874
  } | undefined;
1045
875
  } | undefined;
1046
- $schema?: string | undefined;
1047
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
1048
876
  dependencies?: string[] | undefined;
1049
877
  devDependencies?: string[] | undefined;
1050
878
  files?: ({
1051
- path: string;
1052
879
  type: "registry:page" | "registry:file";
1053
- target: string;
1054
- content?: string | undefined;
1055
- } | {
1056
- path: string;
1057
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1058
- content?: string | undefined;
1059
- target?: string | undefined;
1060
- })[] | undefined;
1061
- extends?: string | undefined;
1062
- title?: string | undefined;
1063
- author?: string | undefined;
1064
- description?: string | undefined;
1065
- registryDependencies?: string[] | undefined;
1066
- cssVars?: {
1067
- theme?: Record<string, string> | undefined;
1068
- light?: Record<string, string> | undefined;
1069
- dark?: Record<string, string> | undefined;
1070
- } | undefined;
1071
- meta?: Record<string, any> | undefined;
1072
- docs?: string | undefined;
1073
- categories?: string[] | undefined;
1074
- }[] | undefined>;
1075
- declare function getRegistryStyles(): Promise<{
1076
- name: string;
1077
- label: string;
1078
- }[]>;
1079
- declare function getRegistryIcons(): Promise<Record<string, Record<string, string>>>;
1080
- declare function getRegistryItem(name: string, style: string): Promise<{
1081
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1082
- name: string;
1083
- tailwind?: {
1084
- config?: {
1085
- content?: string[] | undefined;
1086
- theme?: Record<string, any> | undefined;
1087
- plugins?: string[] | undefined;
1088
- } | undefined;
1089
- } | undefined;
1090
- $schema?: string | undefined;
1091
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
1092
- dependencies?: string[] | undefined;
1093
- devDependencies?: string[] | undefined;
1094
- files?: ({
1095
880
  path: string;
1096
- type: "registry:page" | "registry:file";
1097
881
  target: string;
1098
882
  content?: string | undefined;
1099
883
  } | {
1100
- path: string;
1101
884
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
885
+ path: string;
1102
886
  content?: string | undefined;
1103
887
  target?: string | undefined;
1104
888
  })[] | undefined;
1105
- extends?: string | undefined;
1106
- title?: string | undefined;
1107
- author?: string | undefined;
1108
- description?: string | undefined;
1109
- registryDependencies?: string[] | undefined;
1110
889
  cssVars?: {
1111
890
  theme?: Record<string, string> | undefined;
1112
891
  light?: Record<string, string> | undefined;
1113
892
  dark?: Record<string, string> | undefined;
1114
893
  } | undefined;
1115
- meta?: Record<string, any> | undefined;
894
+ css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
895
+ envVars?: Record<string, string> | undefined;
1116
896
  docs?: string | undefined;
1117
- categories?: string[] | undefined;
1118
- } | null>;
1119
- declare function getRegistryBaseColors(): Promise<readonly [{
1120
- readonly name: "neutral";
1121
- readonly label: "Neutral";
1122
- }, {
1123
- readonly name: "gray";
1124
- readonly label: "Gray";
897
+ }>;
898
+ declare const registryConfigItemSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
899
+ url: z.ZodEffects<z.ZodString, string, string>;
900
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
901
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ url: string;
904
+ params?: Record<string, string> | undefined;
905
+ headers?: Record<string, string> | undefined;
1125
906
  }, {
1126
- readonly name: "zinc";
1127
- readonly label: "Zinc";
907
+ url: string;
908
+ params?: Record<string, string> | undefined;
909
+ headers?: Record<string, string> | undefined;
910
+ }>]>;
911
+ declare const registryConfigSchema: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
912
+ url: z.ZodEffects<z.ZodString, string, string>;
913
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
914
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
915
+ }, "strip", z.ZodTypeAny, {
916
+ url: string;
917
+ params?: Record<string, string> | undefined;
918
+ headers?: Record<string, string> | undefined;
1128
919
  }, {
1129
- readonly name: "stone";
1130
- readonly label: "Stone";
920
+ url: string;
921
+ params?: Record<string, string> | undefined;
922
+ headers?: Record<string, string> | undefined;
923
+ }>]>>;
924
+ declare const rawConfigSchema: z.ZodObject<{
925
+ $schema: z.ZodOptional<z.ZodString>;
926
+ style: z.ZodString;
927
+ rsc: z.ZodDefault<z.ZodBoolean>;
928
+ tsx: z.ZodDefault<z.ZodBoolean>;
929
+ tailwind: z.ZodObject<{
930
+ config: z.ZodOptional<z.ZodString>;
931
+ css: z.ZodString;
932
+ baseColor: z.ZodString;
933
+ cssVariables: z.ZodDefault<z.ZodBoolean>;
934
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ css: string;
937
+ baseColor: string;
938
+ cssVariables: boolean;
939
+ config?: string | undefined;
940
+ prefix?: string | undefined;
941
+ }, {
942
+ css: string;
943
+ baseColor: string;
944
+ config?: string | undefined;
945
+ cssVariables?: boolean | undefined;
946
+ prefix?: string | undefined;
947
+ }>;
948
+ iconLibrary: z.ZodOptional<z.ZodString>;
949
+ aliases: z.ZodObject<{
950
+ components: z.ZodString;
951
+ utils: z.ZodString;
952
+ ui: z.ZodOptional<z.ZodString>;
953
+ lib: z.ZodOptional<z.ZodString>;
954
+ hooks: z.ZodOptional<z.ZodString>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ components: string;
957
+ utils: string;
958
+ ui?: string | undefined;
959
+ lib?: string | undefined;
960
+ hooks?: string | undefined;
961
+ }, {
962
+ components: string;
963
+ utils: string;
964
+ ui?: string | undefined;
965
+ lib?: string | undefined;
966
+ hooks?: string | undefined;
967
+ }>;
968
+ registries: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
969
+ url: z.ZodEffects<z.ZodString, string, string>;
970
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
971
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ url: string;
974
+ params?: Record<string, string> | undefined;
975
+ headers?: Record<string, string> | undefined;
976
+ }, {
977
+ url: string;
978
+ params?: Record<string, string> | undefined;
979
+ headers?: Record<string, string> | undefined;
980
+ }>]>>>;
981
+ }, "strict", z.ZodTypeAny, {
982
+ tailwind: {
983
+ css: string;
984
+ baseColor: string;
985
+ cssVariables: boolean;
986
+ config?: string | undefined;
987
+ prefix?: string | undefined;
988
+ };
989
+ style: string;
990
+ rsc: boolean;
991
+ tsx: boolean;
992
+ aliases: {
993
+ components: string;
994
+ utils: string;
995
+ ui?: string | undefined;
996
+ lib?: string | undefined;
997
+ hooks?: string | undefined;
998
+ };
999
+ $schema?: string | undefined;
1000
+ iconLibrary?: string | undefined;
1001
+ registries?: Record<string, string | {
1002
+ url: string;
1003
+ params?: Record<string, string> | undefined;
1004
+ headers?: Record<string, string> | undefined;
1005
+ }> | undefined;
1131
1006
  }, {
1132
- readonly name: "slate";
1133
- readonly label: "Slate";
1134
- }]>;
1135
- declare function getRegistryBaseColor(baseColor: string): Promise<{
1136
- cssVars: {
1137
- theme?: Record<string, string> | undefined;
1138
- light?: Record<string, string> | undefined;
1139
- dark?: Record<string, string> | undefined;
1007
+ tailwind: {
1008
+ css: string;
1009
+ baseColor: string;
1010
+ config?: string | undefined;
1011
+ cssVariables?: boolean | undefined;
1012
+ prefix?: string | undefined;
1140
1013
  };
1141
- inlineColors: {
1142
- light: Record<string, string>;
1143
- dark: Record<string, string>;
1014
+ style: string;
1015
+ aliases: {
1016
+ components: string;
1017
+ utils: string;
1018
+ ui?: string | undefined;
1019
+ lib?: string | undefined;
1020
+ hooks?: string | undefined;
1144
1021
  };
1145
- inlineColorsTemplate: string;
1146
- cssVarsTemplate: string;
1147
- cssVarsV4?: {
1148
- theme?: Record<string, string> | undefined;
1149
- light?: Record<string, string> | undefined;
1150
- dark?: Record<string, string> | undefined;
1151
- } | undefined;
1152
- } | undefined>;
1153
- declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names: string[]): Promise<{
1154
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1155
- name: string;
1156
- tailwind?: {
1157
- config?: {
1158
- content?: string[] | undefined;
1159
- theme?: Record<string, any> | undefined;
1160
- plugins?: string[] | undefined;
1161
- } | undefined;
1162
- } | undefined;
1163
1022
  $schema?: string | undefined;
1164
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
1165
- dependencies?: string[] | undefined;
1166
- devDependencies?: string[] | undefined;
1167
- files?: ({
1168
- path: string;
1169
- type: "registry:page" | "registry:file";
1170
- target: string;
1171
- content?: string | undefined;
1172
- } | {
1173
- path: string;
1174
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1175
- content?: string | undefined;
1176
- target?: string | undefined;
1177
- })[] | undefined;
1178
- extends?: string | undefined;
1179
- title?: string | undefined;
1180
- author?: string | undefined;
1181
- description?: string | undefined;
1182
- registryDependencies?: string[] | undefined;
1183
- cssVars?: {
1184
- theme?: Record<string, string> | undefined;
1185
- light?: Record<string, string> | undefined;
1186
- dark?: Record<string, string> | undefined;
1187
- } | undefined;
1188
- meta?: Record<string, any> | undefined;
1189
- docs?: string | undefined;
1190
- categories?: string[] | undefined;
1191
- }[]>;
1192
- declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSchema>): Promise<{
1193
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1194
- name: string;
1195
- tailwind?: {
1196
- config?: {
1197
- content?: string[] | undefined;
1198
- theme?: Record<string, any> | undefined;
1199
- plugins?: string[] | undefined;
1200
- } | undefined;
1201
- } | undefined;
1023
+ rsc?: boolean | undefined;
1024
+ tsx?: boolean | undefined;
1025
+ iconLibrary?: string | undefined;
1026
+ registries?: Record<string, string | {
1027
+ url: string;
1028
+ params?: Record<string, string> | undefined;
1029
+ headers?: Record<string, string> | undefined;
1030
+ }> | undefined;
1031
+ }>;
1032
+ declare const configSchema: z.ZodObject<{
1033
+ $schema: z.ZodOptional<z.ZodString>;
1034
+ style: z.ZodString;
1035
+ rsc: z.ZodDefault<z.ZodBoolean>;
1036
+ tsx: z.ZodDefault<z.ZodBoolean>;
1037
+ tailwind: z.ZodObject<{
1038
+ config: z.ZodOptional<z.ZodString>;
1039
+ css: z.ZodString;
1040
+ baseColor: z.ZodString;
1041
+ cssVariables: z.ZodDefault<z.ZodBoolean>;
1042
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ css: string;
1045
+ baseColor: string;
1046
+ cssVariables: boolean;
1047
+ config?: string | undefined;
1048
+ prefix?: string | undefined;
1049
+ }, {
1050
+ css: string;
1051
+ baseColor: string;
1052
+ config?: string | undefined;
1053
+ cssVariables?: boolean | undefined;
1054
+ prefix?: string | undefined;
1055
+ }>;
1056
+ iconLibrary: z.ZodOptional<z.ZodString>;
1057
+ aliases: z.ZodObject<{
1058
+ components: z.ZodString;
1059
+ utils: z.ZodString;
1060
+ ui: z.ZodOptional<z.ZodString>;
1061
+ lib: z.ZodOptional<z.ZodString>;
1062
+ hooks: z.ZodOptional<z.ZodString>;
1063
+ }, "strip", z.ZodTypeAny, {
1064
+ components: string;
1065
+ utils: string;
1066
+ ui?: string | undefined;
1067
+ lib?: string | undefined;
1068
+ hooks?: string | undefined;
1069
+ }, {
1070
+ components: string;
1071
+ utils: string;
1072
+ ui?: string | undefined;
1073
+ lib?: string | undefined;
1074
+ hooks?: string | undefined;
1075
+ }>;
1076
+ registries: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
1077
+ url: z.ZodEffects<z.ZodString, string, string>;
1078
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1079
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ url: string;
1082
+ params?: Record<string, string> | undefined;
1083
+ headers?: Record<string, string> | undefined;
1084
+ }, {
1085
+ url: string;
1086
+ params?: Record<string, string> | undefined;
1087
+ headers?: Record<string, string> | undefined;
1088
+ }>]>>>;
1089
+ } & {
1090
+ resolvedPaths: z.ZodObject<{
1091
+ cwd: z.ZodString;
1092
+ tailwindConfig: z.ZodString;
1093
+ tailwindCss: z.ZodString;
1094
+ utils: z.ZodString;
1095
+ components: z.ZodString;
1096
+ lib: z.ZodString;
1097
+ hooks: z.ZodString;
1098
+ ui: z.ZodString;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ components: string;
1101
+ ui: string;
1102
+ utils: string;
1103
+ lib: string;
1104
+ hooks: string;
1105
+ cwd: string;
1106
+ tailwindConfig: string;
1107
+ tailwindCss: string;
1108
+ }, {
1109
+ components: string;
1110
+ ui: string;
1111
+ utils: string;
1112
+ lib: string;
1113
+ hooks: string;
1114
+ cwd: string;
1115
+ tailwindConfig: string;
1116
+ tailwindCss: string;
1117
+ }>;
1118
+ }, "strict", z.ZodTypeAny, {
1119
+ tailwind: {
1120
+ css: string;
1121
+ baseColor: string;
1122
+ cssVariables: boolean;
1123
+ config?: string | undefined;
1124
+ prefix?: string | undefined;
1125
+ };
1126
+ style: string;
1127
+ rsc: boolean;
1128
+ tsx: boolean;
1129
+ aliases: {
1130
+ components: string;
1131
+ utils: string;
1132
+ ui?: string | undefined;
1133
+ lib?: string | undefined;
1134
+ hooks?: string | undefined;
1135
+ };
1136
+ resolvedPaths: {
1137
+ components: string;
1138
+ ui: string;
1139
+ utils: string;
1140
+ lib: string;
1141
+ hooks: string;
1142
+ cwd: string;
1143
+ tailwindConfig: string;
1144
+ tailwindCss: string;
1145
+ };
1202
1146
  $schema?: string | undefined;
1203
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
1204
- dependencies?: string[] | undefined;
1205
- devDependencies?: string[] | undefined;
1206
- files?: ({
1207
- path: string;
1208
- type: "registry:page" | "registry:file";
1209
- target: string;
1210
- content?: string | undefined;
1211
- } | {
1212
- path: string;
1213
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1214
- content?: string | undefined;
1215
- target?: string | undefined;
1216
- })[] | undefined;
1217
- extends?: string | undefined;
1218
- title?: string | undefined;
1219
- author?: string | undefined;
1220
- description?: string | undefined;
1221
- registryDependencies?: string[] | undefined;
1222
- cssVars?: {
1223
- theme?: Record<string, string> | undefined;
1224
- light?: Record<string, string> | undefined;
1225
- dark?: Record<string, string> | undefined;
1226
- } | undefined;
1227
- meta?: Record<string, any> | undefined;
1228
- docs?: string | undefined;
1229
- categories?: string[] | undefined;
1230
- }[] | undefined>;
1231
- declare function getItemTargetPath(config: Config, item: Pick<z.infer<typeof registryItemSchema>, "type">, override?: string): Promise<string | null>;
1232
- declare function fetchRegistry(paths: string[], options?: {
1233
- useCache?: boolean;
1234
- }): Promise<any[]>;
1235
- declare function clearRegistryCache(): void;
1236
- declare function registryResolveItemsTree(names: z.infer<typeof registryItemSchema>["name"][], config: Config): Promise<{
1237
- tailwind?: {
1238
- config?: {
1239
- content?: string[] | undefined;
1240
- theme?: Record<string, any> | undefined;
1241
- plugins?: string[] | undefined;
1242
- } | undefined;
1243
- } | undefined;
1244
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
1245
- dependencies?: string[] | undefined;
1246
- devDependencies?: string[] | undefined;
1247
- files?: ({
1248
- path: string;
1249
- type: "registry:page" | "registry:file";
1250
- target: string;
1251
- content?: string | undefined;
1252
- } | {
1253
- path: string;
1254
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1255
- content?: string | undefined;
1256
- target?: string | undefined;
1257
- })[] | undefined;
1258
- cssVars?: {
1259
- theme?: Record<string, string> | undefined;
1260
- light?: Record<string, string> | undefined;
1261
- dark?: Record<string, string> | undefined;
1262
- } | undefined;
1263
- docs?: string | undefined;
1264
- } | null>;
1265
- declare function registryGetTheme(name: string, config: Config): Promise<{
1266
- name: string;
1267
- type: "registry:theme";
1147
+ iconLibrary?: string | undefined;
1148
+ registries?: Record<string, string | {
1149
+ url: string;
1150
+ params?: Record<string, string> | undefined;
1151
+ headers?: Record<string, string> | undefined;
1152
+ }> | undefined;
1153
+ }, {
1268
1154
  tailwind: {
1269
- config: {
1270
- theme: {
1271
- extend: {
1272
- borderRadius: {
1273
- lg: string;
1274
- md: string;
1275
- sm: string;
1276
- };
1277
- colors: {};
1278
- };
1279
- };
1280
- };
1155
+ css: string;
1156
+ baseColor: string;
1157
+ config?: string | undefined;
1158
+ cssVariables?: boolean | undefined;
1159
+ prefix?: string | undefined;
1281
1160
  };
1282
- cssVars: {
1283
- theme: {};
1284
- light: {
1285
- radius: string;
1286
- };
1287
- dark: {};
1161
+ style: string;
1162
+ aliases: {
1163
+ components: string;
1164
+ utils: string;
1165
+ ui?: string | undefined;
1166
+ lib?: string | undefined;
1167
+ hooks?: string | undefined;
1168
+ };
1169
+ resolvedPaths: {
1170
+ components: string;
1171
+ ui: string;
1172
+ utils: string;
1173
+ lib: string;
1174
+ hooks: string;
1175
+ cwd: string;
1176
+ tailwindConfig: string;
1177
+ tailwindCss: string;
1288
1178
  };
1289
- } | null>;
1290
- declare function isUrl(path: string): boolean;
1291
- declare function resolveRegistryItems(names: string[], config: Config): Promise<string[]>;
1292
- declare function getRegistryTypeAliasMap(): Map<string, string>;
1293
- declare function getRegistryParentMap(registryItems: z.infer<typeof registryItemSchema>[]): Map<string, {
1294
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1295
- name: string;
1296
- tailwind?: {
1297
- config?: {
1298
- content?: string[] | undefined;
1299
- theme?: Record<string, any> | undefined;
1300
- plugins?: string[] | undefined;
1301
- } | undefined;
1302
- } | undefined;
1303
1179
  $schema?: string | undefined;
1304
- css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
1305
- dependencies?: string[] | undefined;
1306
- devDependencies?: string[] | undefined;
1307
- files?: ({
1308
- path: string;
1309
- type: "registry:page" | "registry:file";
1310
- target: string;
1311
- content?: string | undefined;
1312
- } | {
1313
- path: string;
1314
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
1315
- content?: string | undefined;
1316
- target?: string | undefined;
1317
- })[] | undefined;
1318
- extends?: string | undefined;
1319
- title?: string | undefined;
1320
- author?: string | undefined;
1180
+ rsc?: boolean | undefined;
1181
+ tsx?: boolean | undefined;
1182
+ iconLibrary?: string | undefined;
1183
+ registries?: Record<string, string | {
1184
+ url: string;
1185
+ params?: Record<string, string> | undefined;
1186
+ headers?: Record<string, string> | undefined;
1187
+ }> | undefined;
1188
+ }>;
1189
+ declare const workspaceConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1190
+ $schema: z.ZodOptional<z.ZodString>;
1191
+ style: z.ZodString;
1192
+ rsc: z.ZodDefault<z.ZodBoolean>;
1193
+ tsx: z.ZodDefault<z.ZodBoolean>;
1194
+ tailwind: z.ZodObject<{
1195
+ config: z.ZodOptional<z.ZodString>;
1196
+ css: z.ZodString;
1197
+ baseColor: z.ZodString;
1198
+ cssVariables: z.ZodDefault<z.ZodBoolean>;
1199
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ css: string;
1202
+ baseColor: string;
1203
+ cssVariables: boolean;
1204
+ config?: string | undefined;
1205
+ prefix?: string | undefined;
1206
+ }, {
1207
+ css: string;
1208
+ baseColor: string;
1209
+ config?: string | undefined;
1210
+ cssVariables?: boolean | undefined;
1211
+ prefix?: string | undefined;
1212
+ }>;
1213
+ iconLibrary: z.ZodOptional<z.ZodString>;
1214
+ aliases: z.ZodObject<{
1215
+ components: z.ZodString;
1216
+ utils: z.ZodString;
1217
+ ui: z.ZodOptional<z.ZodString>;
1218
+ lib: z.ZodOptional<z.ZodString>;
1219
+ hooks: z.ZodOptional<z.ZodString>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ components: string;
1222
+ utils: string;
1223
+ ui?: string | undefined;
1224
+ lib?: string | undefined;
1225
+ hooks?: string | undefined;
1226
+ }, {
1227
+ components: string;
1228
+ utils: string;
1229
+ ui?: string | undefined;
1230
+ lib?: string | undefined;
1231
+ hooks?: string | undefined;
1232
+ }>;
1233
+ registries: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
1234
+ url: z.ZodEffects<z.ZodString, string, string>;
1235
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1236
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ url: string;
1239
+ params?: Record<string, string> | undefined;
1240
+ headers?: Record<string, string> | undefined;
1241
+ }, {
1242
+ url: string;
1243
+ params?: Record<string, string> | undefined;
1244
+ headers?: Record<string, string> | undefined;
1245
+ }>]>>>;
1246
+ } & {
1247
+ resolvedPaths: z.ZodObject<{
1248
+ cwd: z.ZodString;
1249
+ tailwindConfig: z.ZodString;
1250
+ tailwindCss: z.ZodString;
1251
+ utils: z.ZodString;
1252
+ components: z.ZodString;
1253
+ lib: z.ZodString;
1254
+ hooks: z.ZodString;
1255
+ ui: z.ZodString;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ components: string;
1258
+ ui: string;
1259
+ utils: string;
1260
+ lib: string;
1261
+ hooks: string;
1262
+ cwd: string;
1263
+ tailwindConfig: string;
1264
+ tailwindCss: string;
1265
+ }, {
1266
+ components: string;
1267
+ ui: string;
1268
+ utils: string;
1269
+ lib: string;
1270
+ hooks: string;
1271
+ cwd: string;
1272
+ tailwindConfig: string;
1273
+ tailwindCss: string;
1274
+ }>;
1275
+ }, "strict", z.ZodTypeAny, {
1276
+ tailwind: {
1277
+ css: string;
1278
+ baseColor: string;
1279
+ cssVariables: boolean;
1280
+ config?: string | undefined;
1281
+ prefix?: string | undefined;
1282
+ };
1283
+ style: string;
1284
+ rsc: boolean;
1285
+ tsx: boolean;
1286
+ aliases: {
1287
+ components: string;
1288
+ utils: string;
1289
+ ui?: string | undefined;
1290
+ lib?: string | undefined;
1291
+ hooks?: string | undefined;
1292
+ };
1293
+ resolvedPaths: {
1294
+ components: string;
1295
+ ui: string;
1296
+ utils: string;
1297
+ lib: string;
1298
+ hooks: string;
1299
+ cwd: string;
1300
+ tailwindConfig: string;
1301
+ tailwindCss: string;
1302
+ };
1303
+ $schema?: string | undefined;
1304
+ iconLibrary?: string | undefined;
1305
+ registries?: Record<string, string | {
1306
+ url: string;
1307
+ params?: Record<string, string> | undefined;
1308
+ headers?: Record<string, string> | undefined;
1309
+ }> | undefined;
1310
+ }, {
1311
+ tailwind: {
1312
+ css: string;
1313
+ baseColor: string;
1314
+ config?: string | undefined;
1315
+ cssVariables?: boolean | undefined;
1316
+ prefix?: string | undefined;
1317
+ };
1318
+ style: string;
1319
+ aliases: {
1320
+ components: string;
1321
+ utils: string;
1322
+ ui?: string | undefined;
1323
+ lib?: string | undefined;
1324
+ hooks?: string | undefined;
1325
+ };
1326
+ resolvedPaths: {
1327
+ components: string;
1328
+ ui: string;
1329
+ utils: string;
1330
+ lib: string;
1331
+ hooks: string;
1332
+ cwd: string;
1333
+ tailwindConfig: string;
1334
+ tailwindCss: string;
1335
+ };
1336
+ $schema?: string | undefined;
1337
+ rsc?: boolean | undefined;
1338
+ tsx?: boolean | undefined;
1339
+ iconLibrary?: string | undefined;
1340
+ registries?: Record<string, string | {
1341
+ url: string;
1342
+ params?: Record<string, string> | undefined;
1343
+ headers?: Record<string, string> | undefined;
1344
+ }> | undefined;
1345
+ }>>;
1346
+ declare const searchResultItemSchema: z.ZodObject<{
1347
+ name: z.ZodString;
1348
+ type: z.ZodOptional<z.ZodString>;
1349
+ description: z.ZodOptional<z.ZodString>;
1350
+ registry: z.ZodString;
1351
+ addCommandArgument: z.ZodString;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ name: string;
1354
+ registry: string;
1355
+ addCommandArgument: string;
1356
+ type?: string | undefined;
1321
1357
  description?: string | undefined;
1322
- registryDependencies?: string[] | undefined;
1323
- cssVars?: {
1324
- theme?: Record<string, string> | undefined;
1325
- light?: Record<string, string> | undefined;
1326
- dark?: Record<string, string> | undefined;
1327
- } | undefined;
1328
- meta?: Record<string, any> | undefined;
1329
- docs?: string | undefined;
1330
- categories?: string[] | undefined;
1358
+ }, {
1359
+ name: string;
1360
+ registry: string;
1361
+ addCommandArgument: string;
1362
+ type?: string | undefined;
1363
+ description?: string | undefined;
1364
+ }>;
1365
+ declare const searchResultsSchema: z.ZodObject<{
1366
+ pagination: z.ZodObject<{
1367
+ total: z.ZodNumber;
1368
+ offset: z.ZodNumber;
1369
+ limit: z.ZodNumber;
1370
+ hasMore: z.ZodBoolean;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ total: number;
1373
+ offset: number;
1374
+ limit: number;
1375
+ hasMore: boolean;
1376
+ }, {
1377
+ total: number;
1378
+ offset: number;
1379
+ limit: number;
1380
+ hasMore: boolean;
1381
+ }>;
1382
+ items: z.ZodArray<z.ZodObject<{
1383
+ name: z.ZodString;
1384
+ type: z.ZodOptional<z.ZodString>;
1385
+ description: z.ZodOptional<z.ZodString>;
1386
+ registry: z.ZodString;
1387
+ addCommandArgument: z.ZodString;
1388
+ }, "strip", z.ZodTypeAny, {
1389
+ name: string;
1390
+ registry: string;
1391
+ addCommandArgument: string;
1392
+ type?: string | undefined;
1393
+ description?: string | undefined;
1394
+ }, {
1395
+ name: string;
1396
+ registry: string;
1397
+ addCommandArgument: string;
1398
+ type?: string | undefined;
1399
+ description?: string | undefined;
1400
+ }>, "many">;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ items: {
1403
+ name: string;
1404
+ registry: string;
1405
+ addCommandArgument: string;
1406
+ type?: string | undefined;
1407
+ description?: string | undefined;
1408
+ }[];
1409
+ pagination: {
1410
+ total: number;
1411
+ offset: number;
1412
+ limit: number;
1413
+ hasMore: boolean;
1414
+ };
1415
+ }, {
1416
+ items: {
1417
+ name: string;
1418
+ registry: string;
1419
+ addCommandArgument: string;
1420
+ type?: string | undefined;
1421
+ description?: string | undefined;
1422
+ }[];
1423
+ pagination: {
1424
+ total: number;
1425
+ offset: number;
1426
+ limit: number;
1427
+ hasMore: boolean;
1428
+ };
1331
1429
  }>;
1332
1430
 
1333
- export { stylesSchema as A, BASE_COLORS as B, iconsSchema as C, registryBaseColorSchema as D, registryResolvedItemsTreeSchema as E, RegistryItem as R, getRegistryStyles as a, getRegistryIcons as b, getRegistryItem as c, getRegistryBaseColors as d, getRegistryBaseColor as e, fetchTree as f, getRegistryIndex as g, getItemTargetPath as h, fetchRegistry as i, clearRegistryCache as j, registryResolveItemsTree as k, registryGetTheme as l, isUrl as m, resolveRegistryItems as n, getRegistryTypeAliasMap as o, getRegistryParentMap as p, registryItemTypeSchema as q, resolveTree as r, registryItemFileSchema as s, registryItemTailwindSchema as t, registryItemCssVarsSchema as u, registryItemCssSchema as v, registryItemSchema as w, registrySchema as x, Registry as y, registryIndexSchema as z };
1431
+ export { type Registry, type RegistryItem, configSchema, iconsSchema, rawConfigSchema, registryBaseColorSchema, registryConfigItemSchema, registryConfigSchema, registryIndexSchema, registryItemCssSchema, registryItemCssVarsSchema, registryItemEnvVarsSchema, registryItemFileSchema, registryItemSchema, registryItemTailwindSchema, registryItemTypeSchema, registryResolvedItemsTreeSchema, registrySchema, searchResultItemSchema, searchResultsSchema, stylesSchema, workspaceConfigSchema };