shadcn 0.0.0-beta.01b72a3

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,1155 @@
1
+ #!/usr/bin/env node
2
+ import { registryIndexSchema, registryItemSchema } from './schema/index.js';
3
+ import { C as Config } from './get-config-D6gTsP_D.js';
4
+ import { z } from 'zod';
5
+
6
+ declare function getRegistry(name: string, options?: {
7
+ config?: Partial<Config>;
8
+ useCache?: boolean;
9
+ }): Promise<{
10
+ name: string;
11
+ homepage: string;
12
+ items: ({
13
+ type: "registry:base";
14
+ name: string;
15
+ tailwind?: {
16
+ config?: {
17
+ content?: string[] | undefined;
18
+ theme?: Record<string, any> | undefined;
19
+ plugins?: string[] | undefined;
20
+ } | undefined;
21
+ } | undefined;
22
+ docs?: string | undefined;
23
+ $schema?: string | undefined;
24
+ config?: {
25
+ tailwind?: {
26
+ config?: string | undefined;
27
+ css?: string | undefined;
28
+ baseColor?: string | undefined;
29
+ cssVariables?: boolean | undefined;
30
+ prefix?: string | undefined;
31
+ } | undefined;
32
+ $schema?: string | undefined;
33
+ style?: string | undefined;
34
+ rsc?: boolean | undefined;
35
+ tsx?: boolean | undefined;
36
+ iconLibrary?: string | undefined;
37
+ rtl?: boolean | undefined;
38
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
39
+ menuAccent?: "subtle" | "bold" | undefined;
40
+ aliases?: {
41
+ components?: string | undefined;
42
+ ui?: string | undefined;
43
+ utils?: string | undefined;
44
+ lib?: string | undefined;
45
+ hooks?: string | undefined;
46
+ } | undefined;
47
+ registries?: Record<string, string | {
48
+ url: string;
49
+ params?: Record<string, string> | undefined;
50
+ headers?: Record<string, string> | undefined;
51
+ }> | undefined;
52
+ } | undefined;
53
+ css?: Record<string, any> | undefined;
54
+ extends?: string | undefined;
55
+ title?: string | undefined;
56
+ author?: string | undefined;
57
+ description?: string | undefined;
58
+ dependencies?: string[] | undefined;
59
+ devDependencies?: string[] | undefined;
60
+ registryDependencies?: string[] | undefined;
61
+ files?: ({
62
+ path: string;
63
+ type: "registry:page" | "registry:file";
64
+ target: string;
65
+ content?: string | undefined;
66
+ } | {
67
+ path: string;
68
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
69
+ content?: string | undefined;
70
+ target?: string | undefined;
71
+ })[] | undefined;
72
+ cssVars?: {
73
+ theme?: Record<string, string> | undefined;
74
+ light?: Record<string, string> | undefined;
75
+ dark?: Record<string, string> | undefined;
76
+ } | undefined;
77
+ envVars?: Record<string, string> | undefined;
78
+ meta?: Record<string, any> | undefined;
79
+ categories?: string[] | undefined;
80
+ } | {
81
+ type: "registry:font";
82
+ name: string;
83
+ font: {
84
+ family: string;
85
+ provider: "google";
86
+ import: string;
87
+ variable: string;
88
+ weight?: string[] | undefined;
89
+ subsets?: string[] | undefined;
90
+ selector?: string | undefined;
91
+ dependency?: string | undefined;
92
+ };
93
+ tailwind?: {
94
+ config?: {
95
+ content?: string[] | undefined;
96
+ theme?: Record<string, any> | undefined;
97
+ plugins?: string[] | undefined;
98
+ } | undefined;
99
+ } | undefined;
100
+ docs?: string | undefined;
101
+ $schema?: string | undefined;
102
+ css?: Record<string, any> | undefined;
103
+ extends?: string | undefined;
104
+ title?: string | undefined;
105
+ author?: string | undefined;
106
+ description?: string | undefined;
107
+ dependencies?: string[] | undefined;
108
+ devDependencies?: string[] | undefined;
109
+ registryDependencies?: string[] | undefined;
110
+ files?: ({
111
+ path: string;
112
+ type: "registry:page" | "registry:file";
113
+ target: string;
114
+ content?: string | undefined;
115
+ } | {
116
+ path: string;
117
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
118
+ content?: string | undefined;
119
+ target?: string | undefined;
120
+ })[] | undefined;
121
+ cssVars?: {
122
+ theme?: Record<string, string> | undefined;
123
+ light?: Record<string, string> | undefined;
124
+ dark?: Record<string, string> | undefined;
125
+ } | undefined;
126
+ envVars?: Record<string, string> | undefined;
127
+ meta?: Record<string, any> | undefined;
128
+ categories?: string[] | undefined;
129
+ } | {
130
+ 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";
131
+ name: string;
132
+ tailwind?: {
133
+ config?: {
134
+ content?: string[] | undefined;
135
+ theme?: Record<string, any> | undefined;
136
+ plugins?: string[] | undefined;
137
+ } | undefined;
138
+ } | undefined;
139
+ docs?: string | undefined;
140
+ $schema?: string | undefined;
141
+ css?: Record<string, any> | undefined;
142
+ extends?: string | undefined;
143
+ title?: string | undefined;
144
+ author?: string | undefined;
145
+ description?: string | undefined;
146
+ dependencies?: string[] | undefined;
147
+ devDependencies?: string[] | undefined;
148
+ registryDependencies?: string[] | undefined;
149
+ files?: ({
150
+ path: string;
151
+ type: "registry:page" | "registry:file";
152
+ target: string;
153
+ content?: string | undefined;
154
+ } | {
155
+ path: string;
156
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
157
+ content?: string | undefined;
158
+ target?: string | undefined;
159
+ })[] | undefined;
160
+ cssVars?: {
161
+ theme?: Record<string, string> | undefined;
162
+ light?: Record<string, string> | undefined;
163
+ dark?: Record<string, string> | undefined;
164
+ } | undefined;
165
+ envVars?: Record<string, string> | undefined;
166
+ meta?: Record<string, any> | undefined;
167
+ categories?: string[] | undefined;
168
+ })[];
169
+ $schema?: string | undefined;
170
+ include?: string[] | undefined;
171
+ } | {
172
+ items: ({
173
+ files: ({
174
+ path: string;
175
+ type: "registry:page" | "registry:file";
176
+ target: string;
177
+ } | {
178
+ path: string;
179
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
180
+ target?: string | undefined;
181
+ })[] | undefined;
182
+ type: "registry:base";
183
+ name: string;
184
+ tailwind?: {
185
+ config?: {
186
+ content?: string[] | undefined;
187
+ theme?: Record<string, any> | undefined;
188
+ plugins?: string[] | undefined;
189
+ } | undefined;
190
+ } | undefined;
191
+ docs?: string | undefined;
192
+ $schema?: string | undefined;
193
+ config?: {
194
+ tailwind?: {
195
+ config?: string | undefined;
196
+ css?: string | undefined;
197
+ baseColor?: string | undefined;
198
+ cssVariables?: boolean | undefined;
199
+ prefix?: string | undefined;
200
+ } | undefined;
201
+ $schema?: string | undefined;
202
+ style?: string | undefined;
203
+ rsc?: boolean | undefined;
204
+ tsx?: boolean | undefined;
205
+ iconLibrary?: string | undefined;
206
+ rtl?: boolean | undefined;
207
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
208
+ menuAccent?: "subtle" | "bold" | undefined;
209
+ aliases?: {
210
+ components?: string | undefined;
211
+ ui?: string | undefined;
212
+ utils?: string | undefined;
213
+ lib?: string | undefined;
214
+ hooks?: string | undefined;
215
+ } | undefined;
216
+ registries?: Record<string, string | {
217
+ url: string;
218
+ params?: Record<string, string> | undefined;
219
+ headers?: Record<string, string> | undefined;
220
+ }> | undefined;
221
+ } | undefined;
222
+ css?: Record<string, any> | undefined;
223
+ extends?: string | undefined;
224
+ title?: string | undefined;
225
+ author?: string | undefined;
226
+ description?: string | undefined;
227
+ dependencies?: string[] | undefined;
228
+ devDependencies?: string[] | undefined;
229
+ registryDependencies?: string[] | undefined;
230
+ cssVars?: {
231
+ theme?: Record<string, string> | undefined;
232
+ light?: Record<string, string> | undefined;
233
+ dark?: Record<string, string> | undefined;
234
+ } | undefined;
235
+ envVars?: Record<string, string> | undefined;
236
+ meta?: Record<string, any> | undefined;
237
+ categories?: string[] | undefined;
238
+ } | {
239
+ files: ({
240
+ path: string;
241
+ type: "registry:page" | "registry:file";
242
+ target: string;
243
+ } | {
244
+ path: string;
245
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
246
+ target?: string | undefined;
247
+ })[] | undefined;
248
+ type: "registry:font";
249
+ name: string;
250
+ font: {
251
+ family: string;
252
+ provider: "google";
253
+ import: string;
254
+ variable: string;
255
+ weight?: string[] | undefined;
256
+ subsets?: string[] | undefined;
257
+ selector?: string | undefined;
258
+ dependency?: string | undefined;
259
+ };
260
+ tailwind?: {
261
+ config?: {
262
+ content?: string[] | undefined;
263
+ theme?: Record<string, any> | undefined;
264
+ plugins?: string[] | undefined;
265
+ } | undefined;
266
+ } | undefined;
267
+ docs?: string | undefined;
268
+ $schema?: string | undefined;
269
+ css?: Record<string, any> | undefined;
270
+ extends?: string | undefined;
271
+ title?: string | undefined;
272
+ author?: string | undefined;
273
+ description?: string | undefined;
274
+ dependencies?: string[] | undefined;
275
+ devDependencies?: string[] | undefined;
276
+ registryDependencies?: string[] | undefined;
277
+ cssVars?: {
278
+ theme?: Record<string, string> | undefined;
279
+ light?: Record<string, string> | undefined;
280
+ dark?: Record<string, string> | undefined;
281
+ } | undefined;
282
+ envVars?: Record<string, string> | undefined;
283
+ meta?: Record<string, any> | undefined;
284
+ categories?: string[] | undefined;
285
+ } | {
286
+ files: ({
287
+ path: string;
288
+ type: "registry:page" | "registry:file";
289
+ target: string;
290
+ } | {
291
+ path: string;
292
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
293
+ target?: string | undefined;
294
+ })[] | undefined;
295
+ 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";
296
+ name: string;
297
+ tailwind?: {
298
+ config?: {
299
+ content?: string[] | undefined;
300
+ theme?: Record<string, any> | undefined;
301
+ plugins?: string[] | undefined;
302
+ } | undefined;
303
+ } | undefined;
304
+ docs?: string | undefined;
305
+ $schema?: string | undefined;
306
+ css?: Record<string, any> | undefined;
307
+ extends?: string | undefined;
308
+ title?: string | undefined;
309
+ author?: string | undefined;
310
+ description?: string | undefined;
311
+ dependencies?: string[] | undefined;
312
+ devDependencies?: string[] | undefined;
313
+ registryDependencies?: string[] | undefined;
314
+ cssVars?: {
315
+ theme?: Record<string, string> | undefined;
316
+ light?: Record<string, string> | undefined;
317
+ dark?: Record<string, string> | undefined;
318
+ } | undefined;
319
+ envVars?: Record<string, string> | undefined;
320
+ meta?: Record<string, any> | undefined;
321
+ categories?: string[] | undefined;
322
+ })[];
323
+ name: string;
324
+ homepage: string;
325
+ $schema?: string | undefined;
326
+ include?: string[] | undefined;
327
+ }>;
328
+ declare function getRegistryItems(items: string[], options?: {
329
+ config?: Partial<Config>;
330
+ useCache?: boolean;
331
+ }): Promise<({
332
+ type: "registry:base";
333
+ name: string;
334
+ tailwind?: {
335
+ config?: {
336
+ content?: string[] | undefined;
337
+ theme?: Record<string, any> | undefined;
338
+ plugins?: string[] | undefined;
339
+ } | undefined;
340
+ } | undefined;
341
+ docs?: string | undefined;
342
+ $schema?: string | undefined;
343
+ config?: {
344
+ tailwind?: {
345
+ config?: string | undefined;
346
+ css?: string | undefined;
347
+ baseColor?: string | undefined;
348
+ cssVariables?: boolean | undefined;
349
+ prefix?: string | undefined;
350
+ } | undefined;
351
+ $schema?: string | undefined;
352
+ style?: string | undefined;
353
+ rsc?: boolean | undefined;
354
+ tsx?: boolean | undefined;
355
+ iconLibrary?: string | undefined;
356
+ rtl?: boolean | undefined;
357
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
358
+ menuAccent?: "subtle" | "bold" | undefined;
359
+ aliases?: {
360
+ components?: string | undefined;
361
+ ui?: string | undefined;
362
+ utils?: string | undefined;
363
+ lib?: string | undefined;
364
+ hooks?: string | undefined;
365
+ } | undefined;
366
+ registries?: Record<string, string | {
367
+ url: string;
368
+ params?: Record<string, string> | undefined;
369
+ headers?: Record<string, string> | undefined;
370
+ }> | undefined;
371
+ } | undefined;
372
+ css?: Record<string, any> | undefined;
373
+ extends?: string | undefined;
374
+ title?: string | undefined;
375
+ author?: string | undefined;
376
+ description?: string | undefined;
377
+ dependencies?: string[] | undefined;
378
+ devDependencies?: string[] | undefined;
379
+ registryDependencies?: string[] | undefined;
380
+ files?: ({
381
+ path: string;
382
+ type: "registry:page" | "registry:file";
383
+ target: string;
384
+ content?: string | undefined;
385
+ } | {
386
+ path: string;
387
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
388
+ content?: string | undefined;
389
+ target?: string | undefined;
390
+ })[] | undefined;
391
+ cssVars?: {
392
+ theme?: Record<string, string> | undefined;
393
+ light?: Record<string, string> | undefined;
394
+ dark?: Record<string, string> | undefined;
395
+ } | undefined;
396
+ envVars?: Record<string, string> | undefined;
397
+ meta?: Record<string, any> | undefined;
398
+ categories?: string[] | undefined;
399
+ } | {
400
+ type: "registry:font";
401
+ name: string;
402
+ font: {
403
+ family: string;
404
+ provider: "google";
405
+ import: string;
406
+ variable: string;
407
+ weight?: string[] | undefined;
408
+ subsets?: string[] | undefined;
409
+ selector?: string | undefined;
410
+ dependency?: string | undefined;
411
+ };
412
+ tailwind?: {
413
+ config?: {
414
+ content?: string[] | undefined;
415
+ theme?: Record<string, any> | undefined;
416
+ plugins?: string[] | undefined;
417
+ } | undefined;
418
+ } | undefined;
419
+ docs?: string | undefined;
420
+ $schema?: string | undefined;
421
+ css?: Record<string, any> | undefined;
422
+ extends?: string | undefined;
423
+ title?: string | undefined;
424
+ author?: string | undefined;
425
+ description?: string | undefined;
426
+ dependencies?: string[] | undefined;
427
+ devDependencies?: string[] | undefined;
428
+ registryDependencies?: string[] | undefined;
429
+ files?: ({
430
+ path: string;
431
+ type: "registry:page" | "registry:file";
432
+ target: string;
433
+ content?: string | undefined;
434
+ } | {
435
+ path: string;
436
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
437
+ content?: string | undefined;
438
+ target?: string | undefined;
439
+ })[] | undefined;
440
+ cssVars?: {
441
+ theme?: Record<string, string> | undefined;
442
+ light?: Record<string, string> | undefined;
443
+ dark?: Record<string, string> | undefined;
444
+ } | undefined;
445
+ envVars?: Record<string, string> | undefined;
446
+ meta?: Record<string, any> | undefined;
447
+ categories?: string[] | undefined;
448
+ } | {
449
+ 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";
450
+ name: string;
451
+ tailwind?: {
452
+ config?: {
453
+ content?: string[] | undefined;
454
+ theme?: Record<string, any> | undefined;
455
+ plugins?: string[] | undefined;
456
+ } | undefined;
457
+ } | undefined;
458
+ docs?: string | undefined;
459
+ $schema?: string | undefined;
460
+ css?: Record<string, any> | undefined;
461
+ extends?: string | undefined;
462
+ title?: string | undefined;
463
+ author?: string | undefined;
464
+ description?: string | undefined;
465
+ dependencies?: string[] | undefined;
466
+ devDependencies?: string[] | undefined;
467
+ registryDependencies?: string[] | undefined;
468
+ files?: ({
469
+ path: string;
470
+ type: "registry:page" | "registry:file";
471
+ target: string;
472
+ content?: string | undefined;
473
+ } | {
474
+ path: string;
475
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
476
+ content?: string | undefined;
477
+ target?: string | undefined;
478
+ })[] | undefined;
479
+ cssVars?: {
480
+ theme?: Record<string, string> | undefined;
481
+ light?: Record<string, string> | undefined;
482
+ dark?: Record<string, string> | undefined;
483
+ } | undefined;
484
+ envVars?: Record<string, string> | undefined;
485
+ meta?: Record<string, any> | undefined;
486
+ categories?: string[] | undefined;
487
+ })[]>;
488
+ declare function resolveRegistryItems(items: string[], options?: {
489
+ config?: Partial<Config>;
490
+ useCache?: boolean;
491
+ }): Promise<{
492
+ tailwind?: {
493
+ config?: {
494
+ content?: string[] | undefined;
495
+ theme?: Record<string, any> | undefined;
496
+ plugins?: string[] | undefined;
497
+ } | undefined;
498
+ } | undefined;
499
+ docs?: string | undefined;
500
+ css?: Record<string, any> | undefined;
501
+ dependencies?: string[] | undefined;
502
+ devDependencies?: string[] | undefined;
503
+ files?: ({
504
+ path: string;
505
+ type: "registry:page" | "registry:file";
506
+ target: string;
507
+ content?: string | undefined;
508
+ } | {
509
+ path: string;
510
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
511
+ content?: string | undefined;
512
+ target?: string | undefined;
513
+ })[] | undefined;
514
+ cssVars?: {
515
+ theme?: Record<string, string> | undefined;
516
+ light?: Record<string, string> | undefined;
517
+ dark?: Record<string, string> | undefined;
518
+ } | undefined;
519
+ envVars?: Record<string, string> | undefined;
520
+ fonts?: {
521
+ type: "registry:font";
522
+ name: string;
523
+ font: {
524
+ family: string;
525
+ provider: "google";
526
+ import: string;
527
+ variable: string;
528
+ weight?: string[] | undefined;
529
+ subsets?: string[] | undefined;
530
+ selector?: string | undefined;
531
+ dependency?: string | undefined;
532
+ };
533
+ tailwind?: {
534
+ config?: {
535
+ content?: string[] | undefined;
536
+ theme?: Record<string, any> | undefined;
537
+ plugins?: string[] | undefined;
538
+ } | undefined;
539
+ } | undefined;
540
+ docs?: string | undefined;
541
+ $schema?: string | undefined;
542
+ css?: Record<string, any> | undefined;
543
+ extends?: string | undefined;
544
+ title?: string | undefined;
545
+ author?: string | undefined;
546
+ description?: string | undefined;
547
+ dependencies?: string[] | undefined;
548
+ devDependencies?: string[] | undefined;
549
+ registryDependencies?: string[] | undefined;
550
+ files?: ({
551
+ path: string;
552
+ type: "registry:page" | "registry:file";
553
+ target: string;
554
+ content?: string | undefined;
555
+ } | {
556
+ path: string;
557
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
558
+ content?: string | undefined;
559
+ target?: string | undefined;
560
+ })[] | undefined;
561
+ cssVars?: {
562
+ theme?: Record<string, string> | undefined;
563
+ light?: Record<string, string> | undefined;
564
+ dark?: Record<string, string> | undefined;
565
+ } | undefined;
566
+ envVars?: Record<string, string> | undefined;
567
+ meta?: Record<string, any> | undefined;
568
+ categories?: string[] | undefined;
569
+ }[] | undefined;
570
+ } | null>;
571
+ declare function getRegistriesConfig(cwd: string, options?: {
572
+ useCache?: boolean;
573
+ }): Promise<{
574
+ registries: Record<string, string | {
575
+ url: string;
576
+ params?: Record<string, string> | undefined;
577
+ headers?: Record<string, string> | undefined;
578
+ }>;
579
+ }>;
580
+ declare function getShadcnRegistryIndex(): Promise<({
581
+ type: "registry:base";
582
+ name: string;
583
+ tailwind?: {
584
+ config?: {
585
+ content?: string[] | undefined;
586
+ theme?: Record<string, any> | undefined;
587
+ plugins?: string[] | undefined;
588
+ } | undefined;
589
+ } | undefined;
590
+ docs?: string | undefined;
591
+ $schema?: string | undefined;
592
+ config?: {
593
+ tailwind?: {
594
+ config?: string | undefined;
595
+ css?: string | undefined;
596
+ baseColor?: string | undefined;
597
+ cssVariables?: boolean | undefined;
598
+ prefix?: string | undefined;
599
+ } | undefined;
600
+ $schema?: string | undefined;
601
+ style?: string | undefined;
602
+ rsc?: boolean | undefined;
603
+ tsx?: boolean | undefined;
604
+ iconLibrary?: string | undefined;
605
+ rtl?: boolean | undefined;
606
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
607
+ menuAccent?: "subtle" | "bold" | undefined;
608
+ aliases?: {
609
+ components?: string | undefined;
610
+ ui?: string | undefined;
611
+ utils?: string | undefined;
612
+ lib?: string | undefined;
613
+ hooks?: string | undefined;
614
+ } | undefined;
615
+ registries?: Record<string, string | {
616
+ url: string;
617
+ params?: Record<string, string> | undefined;
618
+ headers?: Record<string, string> | undefined;
619
+ }> | undefined;
620
+ } | undefined;
621
+ css?: Record<string, any> | undefined;
622
+ extends?: string | undefined;
623
+ title?: string | undefined;
624
+ author?: string | undefined;
625
+ description?: string | undefined;
626
+ dependencies?: string[] | undefined;
627
+ devDependencies?: string[] | undefined;
628
+ registryDependencies?: string[] | undefined;
629
+ files?: ({
630
+ path: string;
631
+ type: "registry:page" | "registry:file";
632
+ target: string;
633
+ content?: string | undefined;
634
+ } | {
635
+ path: string;
636
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
637
+ content?: string | undefined;
638
+ target?: string | undefined;
639
+ })[] | undefined;
640
+ cssVars?: {
641
+ theme?: Record<string, string> | undefined;
642
+ light?: Record<string, string> | undefined;
643
+ dark?: Record<string, string> | undefined;
644
+ } | undefined;
645
+ envVars?: Record<string, string> | undefined;
646
+ meta?: Record<string, any> | undefined;
647
+ categories?: string[] | undefined;
648
+ } | {
649
+ type: "registry:font";
650
+ name: string;
651
+ font: {
652
+ family: string;
653
+ provider: "google";
654
+ import: string;
655
+ variable: string;
656
+ weight?: string[] | undefined;
657
+ subsets?: string[] | undefined;
658
+ selector?: string | undefined;
659
+ dependency?: string | undefined;
660
+ };
661
+ tailwind?: {
662
+ config?: {
663
+ content?: string[] | undefined;
664
+ theme?: Record<string, any> | undefined;
665
+ plugins?: string[] | undefined;
666
+ } | undefined;
667
+ } | undefined;
668
+ docs?: string | undefined;
669
+ $schema?: string | undefined;
670
+ css?: Record<string, any> | undefined;
671
+ extends?: string | undefined;
672
+ title?: string | undefined;
673
+ author?: string | undefined;
674
+ description?: string | undefined;
675
+ dependencies?: string[] | undefined;
676
+ devDependencies?: string[] | undefined;
677
+ registryDependencies?: string[] | undefined;
678
+ files?: ({
679
+ path: string;
680
+ type: "registry:page" | "registry:file";
681
+ target: string;
682
+ content?: string | undefined;
683
+ } | {
684
+ path: string;
685
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
686
+ content?: string | undefined;
687
+ target?: string | undefined;
688
+ })[] | undefined;
689
+ cssVars?: {
690
+ theme?: Record<string, string> | undefined;
691
+ light?: Record<string, string> | undefined;
692
+ dark?: Record<string, string> | undefined;
693
+ } | undefined;
694
+ envVars?: Record<string, string> | undefined;
695
+ meta?: Record<string, any> | undefined;
696
+ categories?: string[] | undefined;
697
+ } | {
698
+ 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";
699
+ name: string;
700
+ tailwind?: {
701
+ config?: {
702
+ content?: string[] | undefined;
703
+ theme?: Record<string, any> | undefined;
704
+ plugins?: string[] | undefined;
705
+ } | undefined;
706
+ } | undefined;
707
+ docs?: string | undefined;
708
+ $schema?: string | undefined;
709
+ css?: Record<string, any> | undefined;
710
+ extends?: string | undefined;
711
+ title?: string | undefined;
712
+ author?: string | undefined;
713
+ description?: string | undefined;
714
+ dependencies?: string[] | undefined;
715
+ devDependencies?: string[] | undefined;
716
+ registryDependencies?: string[] | undefined;
717
+ files?: ({
718
+ path: string;
719
+ type: "registry:page" | "registry:file";
720
+ target: string;
721
+ content?: string | undefined;
722
+ } | {
723
+ path: string;
724
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
725
+ content?: string | undefined;
726
+ target?: string | undefined;
727
+ })[] | undefined;
728
+ cssVars?: {
729
+ theme?: Record<string, string> | undefined;
730
+ light?: Record<string, string> | undefined;
731
+ dark?: Record<string, string> | undefined;
732
+ } | undefined;
733
+ envVars?: Record<string, string> | undefined;
734
+ meta?: Record<string, any> | undefined;
735
+ categories?: string[] | undefined;
736
+ })[] | undefined>;
737
+ declare function getRegistryStyles(): Promise<{
738
+ name: string;
739
+ label: string;
740
+ }[]>;
741
+ declare function getRegistryIcons(): Promise<Record<string, Record<string, string>>>;
742
+ declare function getRegistryBaseColors(): Promise<readonly [{
743
+ readonly name: "neutral";
744
+ readonly label: "Neutral";
745
+ }, {
746
+ readonly name: "zinc";
747
+ readonly label: "Zinc";
748
+ }, {
749
+ readonly name: "stone";
750
+ readonly label: "Stone";
751
+ }, {
752
+ readonly name: "mauve";
753
+ readonly label: "Mauve";
754
+ }, {
755
+ readonly name: "olive";
756
+ readonly label: "Olive";
757
+ }, {
758
+ readonly name: "mist";
759
+ readonly label: "Mist";
760
+ }, {
761
+ readonly name: "taupe";
762
+ readonly label: "Taupe";
763
+ }]>;
764
+ declare function getRegistryBaseColor(baseColor: string): Promise<{
765
+ cssVars: {
766
+ theme?: Record<string, string> | undefined;
767
+ light?: Record<string, string> | undefined;
768
+ dark?: Record<string, string> | undefined;
769
+ };
770
+ inlineColors: {
771
+ light: Record<string, string>;
772
+ dark: Record<string, string>;
773
+ };
774
+ inlineColorsTemplate: string;
775
+ cssVarsTemplate: string;
776
+ cssVarsV4?: {
777
+ theme?: Record<string, string> | undefined;
778
+ light?: Record<string, string> | undefined;
779
+ dark?: Record<string, string> | undefined;
780
+ } | undefined;
781
+ } | undefined>;
782
+ /**
783
+ * @deprecated This function is deprecated and will be removed in a future version.
784
+ */
785
+ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names: string[]): Promise<({
786
+ type: "registry:base";
787
+ name: string;
788
+ tailwind?: {
789
+ config?: {
790
+ content?: string[] | undefined;
791
+ theme?: Record<string, any> | undefined;
792
+ plugins?: string[] | undefined;
793
+ } | undefined;
794
+ } | undefined;
795
+ docs?: string | undefined;
796
+ $schema?: string | undefined;
797
+ config?: {
798
+ tailwind?: {
799
+ config?: string | undefined;
800
+ css?: string | undefined;
801
+ baseColor?: string | undefined;
802
+ cssVariables?: boolean | undefined;
803
+ prefix?: string | undefined;
804
+ } | undefined;
805
+ $schema?: string | undefined;
806
+ style?: string | undefined;
807
+ rsc?: boolean | undefined;
808
+ tsx?: boolean | undefined;
809
+ iconLibrary?: string | undefined;
810
+ rtl?: boolean | undefined;
811
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
812
+ menuAccent?: "subtle" | "bold" | undefined;
813
+ aliases?: {
814
+ components?: string | undefined;
815
+ ui?: string | undefined;
816
+ utils?: string | undefined;
817
+ lib?: string | undefined;
818
+ hooks?: string | undefined;
819
+ } | undefined;
820
+ registries?: Record<string, string | {
821
+ url: string;
822
+ params?: Record<string, string> | undefined;
823
+ headers?: Record<string, string> | undefined;
824
+ }> | undefined;
825
+ } | undefined;
826
+ css?: Record<string, any> | undefined;
827
+ extends?: string | undefined;
828
+ title?: string | undefined;
829
+ author?: string | undefined;
830
+ description?: string | undefined;
831
+ dependencies?: string[] | undefined;
832
+ devDependencies?: string[] | undefined;
833
+ registryDependencies?: string[] | undefined;
834
+ files?: ({
835
+ path: string;
836
+ type: "registry:page" | "registry:file";
837
+ target: string;
838
+ content?: string | undefined;
839
+ } | {
840
+ path: string;
841
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
842
+ content?: string | undefined;
843
+ target?: string | undefined;
844
+ })[] | undefined;
845
+ cssVars?: {
846
+ theme?: Record<string, string> | undefined;
847
+ light?: Record<string, string> | undefined;
848
+ dark?: Record<string, string> | undefined;
849
+ } | undefined;
850
+ envVars?: Record<string, string> | undefined;
851
+ meta?: Record<string, any> | undefined;
852
+ categories?: string[] | undefined;
853
+ } | {
854
+ type: "registry:font";
855
+ name: string;
856
+ font: {
857
+ family: string;
858
+ provider: "google";
859
+ import: string;
860
+ variable: string;
861
+ weight?: string[] | undefined;
862
+ subsets?: string[] | undefined;
863
+ selector?: string | undefined;
864
+ dependency?: string | undefined;
865
+ };
866
+ tailwind?: {
867
+ config?: {
868
+ content?: string[] | undefined;
869
+ theme?: Record<string, any> | undefined;
870
+ plugins?: string[] | undefined;
871
+ } | undefined;
872
+ } | undefined;
873
+ docs?: string | undefined;
874
+ $schema?: string | undefined;
875
+ css?: Record<string, any> | undefined;
876
+ extends?: string | undefined;
877
+ title?: string | undefined;
878
+ author?: string | undefined;
879
+ description?: string | undefined;
880
+ dependencies?: string[] | undefined;
881
+ devDependencies?: string[] | undefined;
882
+ registryDependencies?: string[] | undefined;
883
+ files?: ({
884
+ path: string;
885
+ type: "registry:page" | "registry:file";
886
+ target: string;
887
+ content?: string | undefined;
888
+ } | {
889
+ path: string;
890
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
891
+ content?: string | undefined;
892
+ target?: string | undefined;
893
+ })[] | undefined;
894
+ cssVars?: {
895
+ theme?: Record<string, string> | undefined;
896
+ light?: Record<string, string> | undefined;
897
+ dark?: Record<string, string> | undefined;
898
+ } | undefined;
899
+ envVars?: Record<string, string> | undefined;
900
+ meta?: Record<string, any> | undefined;
901
+ categories?: string[] | undefined;
902
+ } | {
903
+ 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";
904
+ name: string;
905
+ tailwind?: {
906
+ config?: {
907
+ content?: string[] | undefined;
908
+ theme?: Record<string, any> | undefined;
909
+ plugins?: string[] | undefined;
910
+ } | undefined;
911
+ } | undefined;
912
+ docs?: string | undefined;
913
+ $schema?: string | undefined;
914
+ css?: Record<string, any> | undefined;
915
+ extends?: string | undefined;
916
+ title?: string | undefined;
917
+ author?: string | undefined;
918
+ description?: string | undefined;
919
+ dependencies?: string[] | undefined;
920
+ devDependencies?: string[] | undefined;
921
+ registryDependencies?: string[] | undefined;
922
+ files?: ({
923
+ path: string;
924
+ type: "registry:page" | "registry:file";
925
+ target: string;
926
+ content?: string | undefined;
927
+ } | {
928
+ path: string;
929
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
930
+ content?: string | undefined;
931
+ target?: string | undefined;
932
+ })[] | undefined;
933
+ cssVars?: {
934
+ theme?: Record<string, string> | undefined;
935
+ light?: Record<string, string> | undefined;
936
+ dark?: Record<string, string> | undefined;
937
+ } | undefined;
938
+ envVars?: Record<string, string> | undefined;
939
+ meta?: Record<string, any> | undefined;
940
+ categories?: string[] | undefined;
941
+ })[]>;
942
+ /**
943
+ * @deprecated This function is deprecated and will be removed in a future version.
944
+ */
945
+ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSchema>): Promise<({
946
+ type: "registry:base";
947
+ name: string;
948
+ tailwind?: {
949
+ config?: {
950
+ content?: string[] | undefined;
951
+ theme?: Record<string, any> | undefined;
952
+ plugins?: string[] | undefined;
953
+ } | undefined;
954
+ } | undefined;
955
+ docs?: string | undefined;
956
+ $schema?: string | undefined;
957
+ config?: {
958
+ tailwind?: {
959
+ config?: string | undefined;
960
+ css?: string | undefined;
961
+ baseColor?: string | undefined;
962
+ cssVariables?: boolean | undefined;
963
+ prefix?: string | undefined;
964
+ } | undefined;
965
+ $schema?: string | undefined;
966
+ style?: string | undefined;
967
+ rsc?: boolean | undefined;
968
+ tsx?: boolean | undefined;
969
+ iconLibrary?: string | undefined;
970
+ rtl?: boolean | undefined;
971
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
972
+ menuAccent?: "subtle" | "bold" | undefined;
973
+ aliases?: {
974
+ components?: string | undefined;
975
+ ui?: string | undefined;
976
+ utils?: string | undefined;
977
+ lib?: string | undefined;
978
+ hooks?: string | undefined;
979
+ } | undefined;
980
+ registries?: Record<string, string | {
981
+ url: string;
982
+ params?: Record<string, string> | undefined;
983
+ headers?: Record<string, string> | undefined;
984
+ }> | undefined;
985
+ } | undefined;
986
+ css?: Record<string, any> | undefined;
987
+ extends?: string | undefined;
988
+ title?: string | undefined;
989
+ author?: string | undefined;
990
+ description?: string | undefined;
991
+ dependencies?: string[] | undefined;
992
+ devDependencies?: string[] | undefined;
993
+ registryDependencies?: string[] | undefined;
994
+ files?: ({
995
+ path: string;
996
+ type: "registry:page" | "registry:file";
997
+ target: string;
998
+ content?: string | undefined;
999
+ } | {
1000
+ path: string;
1001
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
1002
+ content?: string | undefined;
1003
+ target?: string | undefined;
1004
+ })[] | undefined;
1005
+ cssVars?: {
1006
+ theme?: Record<string, string> | undefined;
1007
+ light?: Record<string, string> | undefined;
1008
+ dark?: Record<string, string> | undefined;
1009
+ } | undefined;
1010
+ envVars?: Record<string, string> | undefined;
1011
+ meta?: Record<string, any> | undefined;
1012
+ categories?: string[] | undefined;
1013
+ } | {
1014
+ type: "registry:font";
1015
+ name: string;
1016
+ font: {
1017
+ family: string;
1018
+ provider: "google";
1019
+ import: string;
1020
+ variable: string;
1021
+ weight?: string[] | undefined;
1022
+ subsets?: string[] | undefined;
1023
+ selector?: string | undefined;
1024
+ dependency?: string | undefined;
1025
+ };
1026
+ tailwind?: {
1027
+ config?: {
1028
+ content?: string[] | undefined;
1029
+ theme?: Record<string, any> | undefined;
1030
+ plugins?: string[] | undefined;
1031
+ } | undefined;
1032
+ } | undefined;
1033
+ docs?: string | undefined;
1034
+ $schema?: string | undefined;
1035
+ css?: Record<string, any> | undefined;
1036
+ extends?: string | undefined;
1037
+ title?: string | undefined;
1038
+ author?: string | undefined;
1039
+ description?: string | undefined;
1040
+ dependencies?: string[] | undefined;
1041
+ devDependencies?: string[] | undefined;
1042
+ registryDependencies?: string[] | undefined;
1043
+ files?: ({
1044
+ path: string;
1045
+ type: "registry:page" | "registry:file";
1046
+ target: string;
1047
+ content?: string | undefined;
1048
+ } | {
1049
+ path: string;
1050
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
1051
+ content?: string | undefined;
1052
+ target?: string | undefined;
1053
+ })[] | undefined;
1054
+ cssVars?: {
1055
+ theme?: Record<string, string> | undefined;
1056
+ light?: Record<string, string> | undefined;
1057
+ dark?: Record<string, string> | undefined;
1058
+ } | undefined;
1059
+ envVars?: Record<string, string> | undefined;
1060
+ meta?: Record<string, any> | undefined;
1061
+ categories?: string[] | undefined;
1062
+ } | {
1063
+ 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";
1064
+ name: string;
1065
+ tailwind?: {
1066
+ config?: {
1067
+ content?: string[] | undefined;
1068
+ theme?: Record<string, any> | undefined;
1069
+ plugins?: string[] | undefined;
1070
+ } | undefined;
1071
+ } | undefined;
1072
+ docs?: string | undefined;
1073
+ $schema?: string | undefined;
1074
+ css?: Record<string, any> | undefined;
1075
+ extends?: string | undefined;
1076
+ title?: string | undefined;
1077
+ author?: string | undefined;
1078
+ description?: string | undefined;
1079
+ dependencies?: string[] | undefined;
1080
+ devDependencies?: string[] | undefined;
1081
+ registryDependencies?: string[] | undefined;
1082
+ files?: ({
1083
+ path: string;
1084
+ type: "registry:page" | "registry:file";
1085
+ target: string;
1086
+ content?: string | undefined;
1087
+ } | {
1088
+ path: string;
1089
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
1090
+ content?: string | undefined;
1091
+ target?: string | undefined;
1092
+ })[] | undefined;
1093
+ cssVars?: {
1094
+ theme?: Record<string, string> | undefined;
1095
+ light?: Record<string, string> | undefined;
1096
+ dark?: Record<string, string> | undefined;
1097
+ } | undefined;
1098
+ envVars?: Record<string, string> | undefined;
1099
+ meta?: Record<string, any> | undefined;
1100
+ categories?: string[] | undefined;
1101
+ })[]>;
1102
+ /**
1103
+ * @deprecated This function is deprecated and will be removed in a future version.
1104
+ */
1105
+ declare function getItemTargetPath(config: Config, item: Pick<z.infer<typeof registryItemSchema>, "type">, override?: string): Promise<string | null>;
1106
+ declare function getRegistries(options?: {
1107
+ useCache?: boolean;
1108
+ }): Promise<{
1109
+ url: string;
1110
+ name: string;
1111
+ description?: string | undefined;
1112
+ homepage?: string | undefined;
1113
+ }[]>;
1114
+ /**
1115
+ * @deprecated Use getRegistries() instead.
1116
+ */
1117
+ declare function getRegistriesIndex(options?: {
1118
+ useCache?: boolean;
1119
+ }): Promise<Record<string, string> | null>;
1120
+ declare function getPresets(options?: {
1121
+ useCache?: boolean;
1122
+ }): Promise<{
1123
+ style: string;
1124
+ baseColor: string;
1125
+ iconLibrary: string;
1126
+ rtl: boolean;
1127
+ menuColor: "default" | "inverted" | "default-translucent" | "inverted-translucent";
1128
+ menuAccent: "subtle" | "bold";
1129
+ theme: string;
1130
+ name: string;
1131
+ title: string;
1132
+ description: string;
1133
+ font: string;
1134
+ base: string;
1135
+ radius: string;
1136
+ }[]>;
1137
+ declare function getPreset(name: string, options?: {
1138
+ useCache?: boolean;
1139
+ }): Promise<{
1140
+ style: string;
1141
+ baseColor: string;
1142
+ iconLibrary: string;
1143
+ rtl: boolean;
1144
+ menuColor: "default" | "inverted" | "default-translucent" | "inverted-translucent";
1145
+ menuAccent: "subtle" | "bold";
1146
+ theme: string;
1147
+ name: string;
1148
+ title: string;
1149
+ description: string;
1150
+ font: string;
1151
+ base: string;
1152
+ radius: string;
1153
+ } | null>;
1154
+
1155
+ export { fetchTree, getItemTargetPath, getPreset, getPresets, getRegistries, getRegistriesConfig, getRegistriesIndex, getRegistry, getRegistryBaseColor, getRegistryBaseColors, getRegistryIcons, getRegistryItems, getRegistryStyles, getShadcnRegistryIndex, resolveRegistryItems, resolveTree };