dga-ui-kit 0.0.2

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,982 @@
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
+ $schema?: string | undefined;
23
+ config?: {
24
+ tailwind?: {
25
+ config?: string | undefined;
26
+ css?: string | undefined;
27
+ baseColor?: string | undefined;
28
+ cssVariables?: boolean | undefined;
29
+ prefix?: string | undefined;
30
+ } | undefined;
31
+ $schema?: string | undefined;
32
+ style?: string | undefined;
33
+ rsc?: boolean | undefined;
34
+ tsx?: boolean | undefined;
35
+ iconLibrary?: string | undefined;
36
+ rtl?: boolean | undefined;
37
+ menuColor?: "default" | "inverted" | undefined;
38
+ menuAccent?: "subtle" | "bold" | undefined;
39
+ aliases?: {
40
+ components?: string | undefined;
41
+ ui?: string | undefined;
42
+ utils?: string | undefined;
43
+ lib?: string | undefined;
44
+ hooks?: string | undefined;
45
+ } | undefined;
46
+ registries?: Record<string, string | {
47
+ url: string;
48
+ params?: Record<string, string> | undefined;
49
+ headers?: Record<string, string> | undefined;
50
+ }> | undefined;
51
+ } | undefined;
52
+ css?: Record<string, any> | undefined;
53
+ extends?: string | undefined;
54
+ title?: string | undefined;
55
+ author?: string | undefined;
56
+ description?: string | undefined;
57
+ dependencies?: string[] | undefined;
58
+ devDependencies?: string[] | undefined;
59
+ registryDependencies?: string[] | undefined;
60
+ files?: ({
61
+ path: string;
62
+ type: "registry:page" | "registry:file";
63
+ target: string;
64
+ content?: string | undefined;
65
+ } | {
66
+ path: string;
67
+ 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";
68
+ content?: string | undefined;
69
+ target?: string | undefined;
70
+ })[] | undefined;
71
+ cssVars?: {
72
+ theme?: Record<string, string> | undefined;
73
+ light?: Record<string, string> | undefined;
74
+ dark?: Record<string, string> | undefined;
75
+ } | undefined;
76
+ envVars?: Record<string, string> | undefined;
77
+ meta?: Record<string, any> | undefined;
78
+ docs?: string | 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
+ };
91
+ tailwind?: {
92
+ config?: {
93
+ content?: string[] | undefined;
94
+ theme?: Record<string, any> | undefined;
95
+ plugins?: string[] | undefined;
96
+ } | undefined;
97
+ } | undefined;
98
+ $schema?: string | undefined;
99
+ css?: Record<string, any> | undefined;
100
+ extends?: string | undefined;
101
+ title?: string | undefined;
102
+ author?: string | undefined;
103
+ description?: string | undefined;
104
+ dependencies?: string[] | undefined;
105
+ devDependencies?: string[] | undefined;
106
+ registryDependencies?: string[] | undefined;
107
+ files?: ({
108
+ path: string;
109
+ type: "registry:page" | "registry:file";
110
+ target: string;
111
+ content?: string | undefined;
112
+ } | {
113
+ path: string;
114
+ 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";
115
+ content?: string | undefined;
116
+ target?: string | undefined;
117
+ })[] | undefined;
118
+ cssVars?: {
119
+ theme?: Record<string, string> | undefined;
120
+ light?: Record<string, string> | undefined;
121
+ dark?: Record<string, string> | undefined;
122
+ } | undefined;
123
+ envVars?: Record<string, string> | undefined;
124
+ meta?: Record<string, any> | undefined;
125
+ docs?: string | undefined;
126
+ categories?: string[] | undefined;
127
+ } | {
128
+ 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";
129
+ name: string;
130
+ tailwind?: {
131
+ config?: {
132
+ content?: string[] | undefined;
133
+ theme?: Record<string, any> | undefined;
134
+ plugins?: string[] | undefined;
135
+ } | undefined;
136
+ } | undefined;
137
+ $schema?: string | undefined;
138
+ css?: Record<string, any> | undefined;
139
+ extends?: string | undefined;
140
+ title?: string | undefined;
141
+ author?: string | undefined;
142
+ description?: string | undefined;
143
+ dependencies?: string[] | undefined;
144
+ devDependencies?: string[] | undefined;
145
+ registryDependencies?: string[] | undefined;
146
+ files?: ({
147
+ path: string;
148
+ type: "registry:page" | "registry:file";
149
+ target: string;
150
+ content?: string | undefined;
151
+ } | {
152
+ path: string;
153
+ 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";
154
+ content?: string | undefined;
155
+ target?: string | undefined;
156
+ })[] | undefined;
157
+ cssVars?: {
158
+ theme?: Record<string, string> | undefined;
159
+ light?: Record<string, string> | undefined;
160
+ dark?: Record<string, string> | undefined;
161
+ } | undefined;
162
+ envVars?: Record<string, string> | undefined;
163
+ meta?: Record<string, any> | undefined;
164
+ docs?: string | undefined;
165
+ categories?: string[] | undefined;
166
+ })[];
167
+ }>;
168
+ declare function getRegistryItems(items: string[], options?: {
169
+ config?: Partial<Config>;
170
+ useCache?: boolean;
171
+ }): Promise<({
172
+ type: "registry:base";
173
+ name: string;
174
+ tailwind?: {
175
+ config?: {
176
+ content?: string[] | undefined;
177
+ theme?: Record<string, any> | undefined;
178
+ plugins?: string[] | undefined;
179
+ } | undefined;
180
+ } | undefined;
181
+ $schema?: string | undefined;
182
+ config?: {
183
+ tailwind?: {
184
+ config?: string | undefined;
185
+ css?: string | undefined;
186
+ baseColor?: string | undefined;
187
+ cssVariables?: boolean | undefined;
188
+ prefix?: string | undefined;
189
+ } | undefined;
190
+ $schema?: string | undefined;
191
+ style?: string | undefined;
192
+ rsc?: boolean | undefined;
193
+ tsx?: boolean | undefined;
194
+ iconLibrary?: string | undefined;
195
+ rtl?: boolean | undefined;
196
+ menuColor?: "default" | "inverted" | undefined;
197
+ menuAccent?: "subtle" | "bold" | undefined;
198
+ aliases?: {
199
+ components?: string | undefined;
200
+ ui?: string | undefined;
201
+ utils?: string | undefined;
202
+ lib?: string | undefined;
203
+ hooks?: string | undefined;
204
+ } | undefined;
205
+ registries?: Record<string, string | {
206
+ url: string;
207
+ params?: Record<string, string> | undefined;
208
+ headers?: Record<string, string> | undefined;
209
+ }> | undefined;
210
+ } | undefined;
211
+ css?: Record<string, any> | undefined;
212
+ extends?: string | undefined;
213
+ title?: string | undefined;
214
+ author?: string | undefined;
215
+ description?: string | undefined;
216
+ dependencies?: string[] | undefined;
217
+ devDependencies?: string[] | undefined;
218
+ registryDependencies?: string[] | undefined;
219
+ files?: ({
220
+ path: string;
221
+ type: "registry:page" | "registry:file";
222
+ target: string;
223
+ content?: string | undefined;
224
+ } | {
225
+ path: string;
226
+ 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";
227
+ content?: string | undefined;
228
+ target?: string | undefined;
229
+ })[] | 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
+ docs?: string | undefined;
238
+ categories?: string[] | undefined;
239
+ } | {
240
+ type: "registry:font";
241
+ name: string;
242
+ font: {
243
+ family: string;
244
+ provider: "google";
245
+ import: string;
246
+ variable: string;
247
+ weight?: string[] | undefined;
248
+ subsets?: string[] | undefined;
249
+ };
250
+ tailwind?: {
251
+ config?: {
252
+ content?: string[] | undefined;
253
+ theme?: Record<string, any> | undefined;
254
+ plugins?: string[] | undefined;
255
+ } | undefined;
256
+ } | undefined;
257
+ $schema?: string | undefined;
258
+ css?: Record<string, any> | undefined;
259
+ extends?: string | undefined;
260
+ title?: string | undefined;
261
+ author?: string | undefined;
262
+ description?: string | undefined;
263
+ dependencies?: string[] | undefined;
264
+ devDependencies?: string[] | undefined;
265
+ registryDependencies?: string[] | undefined;
266
+ files?: ({
267
+ path: string;
268
+ type: "registry:page" | "registry:file";
269
+ target: string;
270
+ content?: string | undefined;
271
+ } | {
272
+ path: string;
273
+ 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";
274
+ content?: string | undefined;
275
+ target?: string | undefined;
276
+ })[] | 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
+ docs?: string | undefined;
285
+ categories?: string[] | undefined;
286
+ } | {
287
+ 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";
288
+ name: string;
289
+ tailwind?: {
290
+ config?: {
291
+ content?: string[] | undefined;
292
+ theme?: Record<string, any> | undefined;
293
+ plugins?: string[] | undefined;
294
+ } | undefined;
295
+ } | undefined;
296
+ $schema?: string | undefined;
297
+ css?: Record<string, any> | undefined;
298
+ extends?: string | undefined;
299
+ title?: string | undefined;
300
+ author?: string | undefined;
301
+ description?: string | undefined;
302
+ dependencies?: string[] | undefined;
303
+ devDependencies?: string[] | undefined;
304
+ registryDependencies?: string[] | undefined;
305
+ files?: ({
306
+ path: string;
307
+ type: "registry:page" | "registry:file";
308
+ target: string;
309
+ content?: string | undefined;
310
+ } | {
311
+ path: string;
312
+ 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";
313
+ content?: string | undefined;
314
+ target?: string | undefined;
315
+ })[] | undefined;
316
+ cssVars?: {
317
+ theme?: Record<string, string> | undefined;
318
+ light?: Record<string, string> | undefined;
319
+ dark?: Record<string, string> | undefined;
320
+ } | undefined;
321
+ envVars?: Record<string, string> | undefined;
322
+ meta?: Record<string, any> | undefined;
323
+ docs?: string | undefined;
324
+ categories?: string[] | undefined;
325
+ })[]>;
326
+ declare function resolveRegistryItems(items: string[], options?: {
327
+ config?: Partial<Config>;
328
+ useCache?: boolean;
329
+ }): Promise<{
330
+ tailwind?: {
331
+ config?: {
332
+ content?: string[] | undefined;
333
+ theme?: Record<string, any> | undefined;
334
+ plugins?: string[] | undefined;
335
+ } | undefined;
336
+ } | undefined;
337
+ css?: Record<string, any> | undefined;
338
+ dependencies?: string[] | undefined;
339
+ devDependencies?: string[] | undefined;
340
+ files?: ({
341
+ path: string;
342
+ type: "registry:page" | "registry:file";
343
+ target: string;
344
+ content?: string | undefined;
345
+ } | {
346
+ path: string;
347
+ 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";
348
+ content?: string | undefined;
349
+ target?: string | undefined;
350
+ })[] | undefined;
351
+ cssVars?: {
352
+ theme?: Record<string, string> | undefined;
353
+ light?: Record<string, string> | undefined;
354
+ dark?: Record<string, string> | undefined;
355
+ } | undefined;
356
+ envVars?: Record<string, string> | undefined;
357
+ docs?: string | undefined;
358
+ fonts?: {
359
+ type: "registry:font";
360
+ name: string;
361
+ font: {
362
+ family: string;
363
+ provider: "google";
364
+ import: string;
365
+ variable: string;
366
+ weight?: string[] | undefined;
367
+ subsets?: string[] | undefined;
368
+ };
369
+ tailwind?: {
370
+ config?: {
371
+ content?: string[] | undefined;
372
+ theme?: Record<string, any> | undefined;
373
+ plugins?: string[] | undefined;
374
+ } | undefined;
375
+ } | undefined;
376
+ $schema?: string | undefined;
377
+ css?: Record<string, any> | undefined;
378
+ extends?: string | undefined;
379
+ title?: string | undefined;
380
+ author?: string | undefined;
381
+ description?: string | undefined;
382
+ dependencies?: string[] | undefined;
383
+ devDependencies?: string[] | undefined;
384
+ registryDependencies?: string[] | undefined;
385
+ files?: ({
386
+ path: string;
387
+ type: "registry:page" | "registry:file";
388
+ target: string;
389
+ content?: string | undefined;
390
+ } | {
391
+ path: string;
392
+ 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";
393
+ content?: string | undefined;
394
+ target?: string | undefined;
395
+ })[] | undefined;
396
+ cssVars?: {
397
+ theme?: Record<string, string> | undefined;
398
+ light?: Record<string, string> | undefined;
399
+ dark?: Record<string, string> | undefined;
400
+ } | undefined;
401
+ envVars?: Record<string, string> | undefined;
402
+ meta?: Record<string, any> | undefined;
403
+ docs?: string | undefined;
404
+ categories?: string[] | undefined;
405
+ }[] | undefined;
406
+ } | null>;
407
+ declare function getRegistriesConfig(cwd: string, options?: {
408
+ useCache?: boolean;
409
+ }): Promise<{
410
+ registries: Record<string, string | {
411
+ url: string;
412
+ params?: Record<string, string> | undefined;
413
+ headers?: Record<string, string> | undefined;
414
+ }>;
415
+ }>;
416
+ declare function getShadcnRegistryIndex(): Promise<({
417
+ type: "registry:base";
418
+ name: string;
419
+ tailwind?: {
420
+ config?: {
421
+ content?: string[] | undefined;
422
+ theme?: Record<string, any> | undefined;
423
+ plugins?: string[] | undefined;
424
+ } | undefined;
425
+ } | undefined;
426
+ $schema?: string | undefined;
427
+ config?: {
428
+ tailwind?: {
429
+ config?: string | undefined;
430
+ css?: string | undefined;
431
+ baseColor?: string | undefined;
432
+ cssVariables?: boolean | undefined;
433
+ prefix?: string | undefined;
434
+ } | undefined;
435
+ $schema?: string | undefined;
436
+ style?: string | undefined;
437
+ rsc?: boolean | undefined;
438
+ tsx?: boolean | undefined;
439
+ iconLibrary?: string | undefined;
440
+ rtl?: boolean | undefined;
441
+ menuColor?: "default" | "inverted" | undefined;
442
+ menuAccent?: "subtle" | "bold" | undefined;
443
+ aliases?: {
444
+ components?: string | undefined;
445
+ ui?: string | undefined;
446
+ utils?: string | undefined;
447
+ lib?: string | undefined;
448
+ hooks?: string | undefined;
449
+ } | undefined;
450
+ registries?: Record<string, string | {
451
+ url: string;
452
+ params?: Record<string, string> | undefined;
453
+ headers?: Record<string, string> | undefined;
454
+ }> | undefined;
455
+ } | undefined;
456
+ css?: Record<string, any> | undefined;
457
+ extends?: string | undefined;
458
+ title?: string | undefined;
459
+ author?: string | undefined;
460
+ description?: string | undefined;
461
+ dependencies?: string[] | undefined;
462
+ devDependencies?: string[] | undefined;
463
+ registryDependencies?: string[] | undefined;
464
+ files?: ({
465
+ path: string;
466
+ type: "registry:page" | "registry:file";
467
+ target: string;
468
+ content?: string | undefined;
469
+ } | {
470
+ path: string;
471
+ 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";
472
+ content?: string | undefined;
473
+ target?: string | undefined;
474
+ })[] | undefined;
475
+ cssVars?: {
476
+ theme?: Record<string, string> | undefined;
477
+ light?: Record<string, string> | undefined;
478
+ dark?: Record<string, string> | undefined;
479
+ } | undefined;
480
+ envVars?: Record<string, string> | undefined;
481
+ meta?: Record<string, any> | undefined;
482
+ docs?: string | undefined;
483
+ categories?: string[] | undefined;
484
+ } | {
485
+ type: "registry:font";
486
+ name: string;
487
+ font: {
488
+ family: string;
489
+ provider: "google";
490
+ import: string;
491
+ variable: string;
492
+ weight?: string[] | undefined;
493
+ subsets?: string[] | undefined;
494
+ };
495
+ tailwind?: {
496
+ config?: {
497
+ content?: string[] | undefined;
498
+ theme?: Record<string, any> | undefined;
499
+ plugins?: string[] | undefined;
500
+ } | undefined;
501
+ } | undefined;
502
+ $schema?: string | undefined;
503
+ css?: Record<string, any> | undefined;
504
+ extends?: string | undefined;
505
+ title?: string | undefined;
506
+ author?: string | undefined;
507
+ description?: string | undefined;
508
+ dependencies?: string[] | undefined;
509
+ devDependencies?: string[] | undefined;
510
+ registryDependencies?: string[] | undefined;
511
+ files?: ({
512
+ path: string;
513
+ type: "registry:page" | "registry:file";
514
+ target: string;
515
+ content?: string | undefined;
516
+ } | {
517
+ path: string;
518
+ 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";
519
+ content?: string | undefined;
520
+ target?: string | undefined;
521
+ })[] | undefined;
522
+ cssVars?: {
523
+ theme?: Record<string, string> | undefined;
524
+ light?: Record<string, string> | undefined;
525
+ dark?: Record<string, string> | undefined;
526
+ } | undefined;
527
+ envVars?: Record<string, string> | undefined;
528
+ meta?: Record<string, any> | undefined;
529
+ docs?: string | undefined;
530
+ categories?: string[] | undefined;
531
+ } | {
532
+ 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";
533
+ name: string;
534
+ tailwind?: {
535
+ config?: {
536
+ content?: string[] | undefined;
537
+ theme?: Record<string, any> | undefined;
538
+ plugins?: string[] | undefined;
539
+ } | undefined;
540
+ } | 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
+ docs?: string | undefined;
569
+ categories?: string[] | undefined;
570
+ })[] | undefined>;
571
+ declare function getRegistryStyles(): Promise<{
572
+ name: string;
573
+ label: string;
574
+ }[]>;
575
+ declare function getRegistryIcons(): Promise<Record<string, Record<string, string>>>;
576
+ declare function getRegistryBaseColors(): Promise<readonly [{
577
+ readonly name: "dga";
578
+ readonly label: "DGA (Saudi Green)";
579
+ }, {
580
+ readonly name: "neutral";
581
+ readonly label: "Neutral";
582
+ }, {
583
+ readonly name: "gray";
584
+ readonly label: "Gray";
585
+ }, {
586
+ readonly name: "zinc";
587
+ readonly label: "Zinc";
588
+ }, {
589
+ readonly name: "stone";
590
+ readonly label: "Stone";
591
+ }, {
592
+ readonly name: "slate";
593
+ readonly label: "Slate";
594
+ }]>;
595
+ declare function getRegistryBaseColor(baseColor: string): Promise<{
596
+ cssVars: {
597
+ theme?: Record<string, string> | undefined;
598
+ light?: Record<string, string> | undefined;
599
+ dark?: Record<string, string> | undefined;
600
+ };
601
+ inlineColors: {
602
+ light: Record<string, string>;
603
+ dark: Record<string, string>;
604
+ };
605
+ inlineColorsTemplate: string;
606
+ cssVarsTemplate: string;
607
+ cssVarsV4?: {
608
+ theme?: Record<string, string> | undefined;
609
+ light?: Record<string, string> | undefined;
610
+ dark?: Record<string, string> | undefined;
611
+ } | undefined;
612
+ } | undefined>;
613
+ /**
614
+ * @deprecated This function is deprecated and will be removed in a future version.
615
+ */
616
+ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names: string[]): Promise<({
617
+ type: "registry:base";
618
+ name: string;
619
+ tailwind?: {
620
+ config?: {
621
+ content?: string[] | undefined;
622
+ theme?: Record<string, any> | undefined;
623
+ plugins?: string[] | undefined;
624
+ } | undefined;
625
+ } | undefined;
626
+ $schema?: string | undefined;
627
+ config?: {
628
+ tailwind?: {
629
+ config?: string | undefined;
630
+ css?: string | undefined;
631
+ baseColor?: string | undefined;
632
+ cssVariables?: boolean | undefined;
633
+ prefix?: string | undefined;
634
+ } | undefined;
635
+ $schema?: string | undefined;
636
+ style?: string | undefined;
637
+ rsc?: boolean | undefined;
638
+ tsx?: boolean | undefined;
639
+ iconLibrary?: string | undefined;
640
+ rtl?: boolean | undefined;
641
+ menuColor?: "default" | "inverted" | undefined;
642
+ menuAccent?: "subtle" | "bold" | undefined;
643
+ aliases?: {
644
+ components?: string | undefined;
645
+ ui?: string | undefined;
646
+ utils?: string | undefined;
647
+ lib?: string | undefined;
648
+ hooks?: string | undefined;
649
+ } | undefined;
650
+ registries?: Record<string, string | {
651
+ url: string;
652
+ params?: Record<string, string> | undefined;
653
+ headers?: Record<string, string> | undefined;
654
+ }> | undefined;
655
+ } | undefined;
656
+ css?: Record<string, any> | undefined;
657
+ extends?: string | undefined;
658
+ title?: string | undefined;
659
+ author?: string | undefined;
660
+ description?: string | undefined;
661
+ dependencies?: string[] | undefined;
662
+ devDependencies?: string[] | undefined;
663
+ registryDependencies?: string[] | undefined;
664
+ files?: ({
665
+ path: string;
666
+ type: "registry:page" | "registry:file";
667
+ target: string;
668
+ content?: string | undefined;
669
+ } | {
670
+ path: string;
671
+ 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";
672
+ content?: string | undefined;
673
+ target?: string | undefined;
674
+ })[] | undefined;
675
+ cssVars?: {
676
+ theme?: Record<string, string> | undefined;
677
+ light?: Record<string, string> | undefined;
678
+ dark?: Record<string, string> | undefined;
679
+ } | undefined;
680
+ envVars?: Record<string, string> | undefined;
681
+ meta?: Record<string, any> | undefined;
682
+ docs?: string | undefined;
683
+ categories?: string[] | undefined;
684
+ } | {
685
+ type: "registry:font";
686
+ name: string;
687
+ font: {
688
+ family: string;
689
+ provider: "google";
690
+ import: string;
691
+ variable: string;
692
+ weight?: string[] | undefined;
693
+ subsets?: string[] | undefined;
694
+ };
695
+ tailwind?: {
696
+ config?: {
697
+ content?: string[] | undefined;
698
+ theme?: Record<string, any> | undefined;
699
+ plugins?: string[] | undefined;
700
+ } | undefined;
701
+ } | undefined;
702
+ $schema?: string | undefined;
703
+ css?: Record<string, any> | undefined;
704
+ extends?: string | undefined;
705
+ title?: string | undefined;
706
+ author?: string | undefined;
707
+ description?: string | undefined;
708
+ dependencies?: string[] | undefined;
709
+ devDependencies?: string[] | undefined;
710
+ registryDependencies?: string[] | undefined;
711
+ files?: ({
712
+ path: string;
713
+ type: "registry:page" | "registry:file";
714
+ target: string;
715
+ content?: string | undefined;
716
+ } | {
717
+ path: string;
718
+ 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";
719
+ content?: string | undefined;
720
+ target?: string | undefined;
721
+ })[] | undefined;
722
+ cssVars?: {
723
+ theme?: Record<string, string> | undefined;
724
+ light?: Record<string, string> | undefined;
725
+ dark?: Record<string, string> | undefined;
726
+ } | undefined;
727
+ envVars?: Record<string, string> | undefined;
728
+ meta?: Record<string, any> | undefined;
729
+ docs?: string | undefined;
730
+ categories?: string[] | undefined;
731
+ } | {
732
+ 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";
733
+ name: string;
734
+ tailwind?: {
735
+ config?: {
736
+ content?: string[] | undefined;
737
+ theme?: Record<string, any> | undefined;
738
+ plugins?: string[] | undefined;
739
+ } | undefined;
740
+ } | undefined;
741
+ $schema?: string | undefined;
742
+ css?: Record<string, any> | undefined;
743
+ extends?: string | undefined;
744
+ title?: string | undefined;
745
+ author?: string | undefined;
746
+ description?: string | undefined;
747
+ dependencies?: string[] | undefined;
748
+ devDependencies?: string[] | undefined;
749
+ registryDependencies?: string[] | undefined;
750
+ files?: ({
751
+ path: string;
752
+ type: "registry:page" | "registry:file";
753
+ target: string;
754
+ content?: string | undefined;
755
+ } | {
756
+ path: string;
757
+ 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";
758
+ content?: string | undefined;
759
+ target?: string | undefined;
760
+ })[] | undefined;
761
+ cssVars?: {
762
+ theme?: Record<string, string> | undefined;
763
+ light?: Record<string, string> | undefined;
764
+ dark?: Record<string, string> | undefined;
765
+ } | undefined;
766
+ envVars?: Record<string, string> | undefined;
767
+ meta?: Record<string, any> | undefined;
768
+ docs?: string | undefined;
769
+ categories?: string[] | undefined;
770
+ })[]>;
771
+ /**
772
+ * @deprecated This function is deprecated and will be removed in a future version.
773
+ */
774
+ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSchema>): Promise<({
775
+ type: "registry:base";
776
+ name: string;
777
+ tailwind?: {
778
+ config?: {
779
+ content?: string[] | undefined;
780
+ theme?: Record<string, any> | undefined;
781
+ plugins?: string[] | undefined;
782
+ } | undefined;
783
+ } | undefined;
784
+ $schema?: string | undefined;
785
+ config?: {
786
+ tailwind?: {
787
+ config?: string | undefined;
788
+ css?: string | undefined;
789
+ baseColor?: string | undefined;
790
+ cssVariables?: boolean | undefined;
791
+ prefix?: string | undefined;
792
+ } | undefined;
793
+ $schema?: string | undefined;
794
+ style?: string | undefined;
795
+ rsc?: boolean | undefined;
796
+ tsx?: boolean | undefined;
797
+ iconLibrary?: string | undefined;
798
+ rtl?: boolean | undefined;
799
+ menuColor?: "default" | "inverted" | undefined;
800
+ menuAccent?: "subtle" | "bold" | undefined;
801
+ aliases?: {
802
+ components?: string | undefined;
803
+ ui?: string | undefined;
804
+ utils?: string | undefined;
805
+ lib?: string | undefined;
806
+ hooks?: string | undefined;
807
+ } | undefined;
808
+ registries?: Record<string, string | {
809
+ url: string;
810
+ params?: Record<string, string> | undefined;
811
+ headers?: Record<string, string> | undefined;
812
+ }> | undefined;
813
+ } | undefined;
814
+ css?: Record<string, any> | undefined;
815
+ extends?: string | undefined;
816
+ title?: string | undefined;
817
+ author?: string | undefined;
818
+ description?: string | undefined;
819
+ dependencies?: string[] | undefined;
820
+ devDependencies?: string[] | undefined;
821
+ registryDependencies?: string[] | undefined;
822
+ files?: ({
823
+ path: string;
824
+ type: "registry:page" | "registry:file";
825
+ target: string;
826
+ content?: string | undefined;
827
+ } | {
828
+ path: string;
829
+ 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";
830
+ content?: string | undefined;
831
+ target?: string | undefined;
832
+ })[] | undefined;
833
+ cssVars?: {
834
+ theme?: Record<string, string> | undefined;
835
+ light?: Record<string, string> | undefined;
836
+ dark?: Record<string, string> | undefined;
837
+ } | undefined;
838
+ envVars?: Record<string, string> | undefined;
839
+ meta?: Record<string, any> | undefined;
840
+ docs?: string | undefined;
841
+ categories?: string[] | undefined;
842
+ } | {
843
+ type: "registry:font";
844
+ name: string;
845
+ font: {
846
+ family: string;
847
+ provider: "google";
848
+ import: string;
849
+ variable: string;
850
+ weight?: string[] | undefined;
851
+ subsets?: string[] | undefined;
852
+ };
853
+ tailwind?: {
854
+ config?: {
855
+ content?: string[] | undefined;
856
+ theme?: Record<string, any> | undefined;
857
+ plugins?: string[] | undefined;
858
+ } | undefined;
859
+ } | undefined;
860
+ $schema?: string | undefined;
861
+ css?: Record<string, any> | undefined;
862
+ extends?: string | undefined;
863
+ title?: string | undefined;
864
+ author?: string | undefined;
865
+ description?: string | undefined;
866
+ dependencies?: string[] | undefined;
867
+ devDependencies?: string[] | undefined;
868
+ registryDependencies?: string[] | undefined;
869
+ files?: ({
870
+ path: string;
871
+ type: "registry:page" | "registry:file";
872
+ target: string;
873
+ content?: string | undefined;
874
+ } | {
875
+ path: string;
876
+ 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";
877
+ content?: string | undefined;
878
+ target?: string | undefined;
879
+ })[] | undefined;
880
+ cssVars?: {
881
+ theme?: Record<string, string> | undefined;
882
+ light?: Record<string, string> | undefined;
883
+ dark?: Record<string, string> | undefined;
884
+ } | undefined;
885
+ envVars?: Record<string, string> | undefined;
886
+ meta?: Record<string, any> | undefined;
887
+ docs?: string | undefined;
888
+ categories?: string[] | undefined;
889
+ } | {
890
+ 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";
891
+ name: string;
892
+ tailwind?: {
893
+ config?: {
894
+ content?: string[] | undefined;
895
+ theme?: Record<string, any> | undefined;
896
+ plugins?: string[] | undefined;
897
+ } | undefined;
898
+ } | undefined;
899
+ $schema?: string | undefined;
900
+ css?: Record<string, any> | undefined;
901
+ extends?: string | undefined;
902
+ title?: string | undefined;
903
+ author?: string | undefined;
904
+ description?: string | undefined;
905
+ dependencies?: string[] | undefined;
906
+ devDependencies?: string[] | undefined;
907
+ registryDependencies?: string[] | undefined;
908
+ files?: ({
909
+ path: string;
910
+ type: "registry:page" | "registry:file";
911
+ target: string;
912
+ content?: string | undefined;
913
+ } | {
914
+ path: string;
915
+ 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";
916
+ content?: string | undefined;
917
+ target?: string | undefined;
918
+ })[] | undefined;
919
+ cssVars?: {
920
+ theme?: Record<string, string> | undefined;
921
+ light?: Record<string, string> | undefined;
922
+ dark?: Record<string, string> | undefined;
923
+ } | undefined;
924
+ envVars?: Record<string, string> | undefined;
925
+ meta?: Record<string, any> | undefined;
926
+ docs?: string | undefined;
927
+ categories?: string[] | undefined;
928
+ })[]>;
929
+ /**
930
+ * @deprecated This function is deprecated and will be removed in a future version.
931
+ */
932
+ declare function getItemTargetPath(config: Config, item: Pick<z.infer<typeof registryItemSchema>, "type">, override?: string): Promise<string | null>;
933
+ declare function getRegistries(options?: {
934
+ useCache?: boolean;
935
+ }): Promise<{
936
+ url: string;
937
+ name: string;
938
+ description?: string | undefined;
939
+ homepage?: string | undefined;
940
+ }[]>;
941
+ /**
942
+ * @deprecated Use getRegistries() instead.
943
+ */
944
+ declare function getRegistriesIndex(options?: {
945
+ useCache?: boolean;
946
+ }): Promise<Record<string, string> | null>;
947
+ declare function getPresets(options?: {
948
+ useCache?: boolean;
949
+ }): Promise<{
950
+ style: string;
951
+ baseColor: string;
952
+ iconLibrary: string;
953
+ rtl: boolean;
954
+ menuColor: "default" | "inverted";
955
+ menuAccent: "subtle" | "bold";
956
+ theme: string;
957
+ name: string;
958
+ title: string;
959
+ description: string;
960
+ font: string;
961
+ base: string;
962
+ radius: string;
963
+ }[]>;
964
+ declare function getPreset(name: string, options?: {
965
+ useCache?: boolean;
966
+ }): Promise<{
967
+ style: string;
968
+ baseColor: string;
969
+ iconLibrary: string;
970
+ rtl: boolean;
971
+ menuColor: "default" | "inverted";
972
+ menuAccent: "subtle" | "bold";
973
+ theme: string;
974
+ name: string;
975
+ title: string;
976
+ description: string;
977
+ font: string;
978
+ base: string;
979
+ radius: string;
980
+ } | null>;
981
+
982
+ export { fetchTree, getItemTargetPath, getPreset, getPresets, getRegistries, getRegistriesConfig, getRegistriesIndex, getRegistry, getRegistryBaseColor, getRegistryBaseColors, getRegistryIcons, getRegistryItems, getRegistryStyles, getShadcnRegistryIndex, resolveRegistryItems, resolveTree };