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