shadcn 3.8.3 → 3.8.5-beta.0

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