hghcn 3.6.24 → 3.6.25

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