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