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