@create-ui/cli 0.1.0-beta.0 → 0.5.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/README.md +194 -24
- package/dist/chunk-EWAP55CF.js +18 -0
- package/dist/chunk-EWAP55CF.js.map +1 -0
- package/dist/chunk-MK3CCMH4.js +3 -0
- package/dist/chunk-MK3CCMH4.js.map +1 -0
- package/dist/chunk-UVIUVCLG.js +64 -0
- package/dist/chunk-UVIUVCLG.js.map +1 -0
- package/dist/chunk-Y7WZRQWW.js +2 -0
- package/dist/chunk-Y7WZRQWW.js.map +1 -0
- package/dist/index.d.ts +43 -111
- package/dist/index.js +62 -61
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/registry/index.d.ts +3 -20
- package/dist/registry/index.js +1 -1
- package/dist/schema/index.d.ts +123 -432
- package/dist/schema/index.js +1 -1
- package/dist/skills/createui/SKILL.md +212 -0
- package/dist/skills/createui/agents/openai.yml +5 -0
- package/dist/skills/createui/assets/createui-small.png +0 -0
- package/dist/skills/createui/assets/createui.png +0 -0
- package/dist/skills/createui/cli.md +309 -0
- package/dist/skills/createui/contributing.md +213 -0
- package/dist/skills/createui/customization.md +284 -0
- package/dist/skills/createui/evals/evals.json +47 -0
- package/dist/skills/createui/mcp.md +151 -0
- package/dist/skills/createui/rules/composition.md +249 -0
- package/dist/skills/createui/rules/forms.md +301 -0
- package/dist/skills/createui/rules/icons.md +130 -0
- package/dist/skills/createui/rules/styling.md +253 -0
- package/dist/utils/index.d.ts +2 -5
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +4 -3
- package/dist/chunk-7MKTQPYI.js +0 -72
- package/dist/chunk-7MKTQPYI.js.map +0 -1
- package/dist/chunk-BVZRYLRW.js +0 -32
- package/dist/chunk-BVZRYLRW.js.map +0 -1
- package/dist/chunk-JWZJQI2B.js +0 -3
- package/dist/chunk-JWZJQI2B.js.map +0 -1
- package/dist/chunk-TIYHWTW7.js +0 -2
- package/dist/chunk-TIYHWTW7.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { C as Config } from './get-config-D6gTsP_D.js';
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
6
|
declare function getRegistry(name: string, options?: {
|
|
7
|
-
config?: Partial<Config>;
|
|
8
7
|
useCache?: boolean;
|
|
9
8
|
}): Promise<{
|
|
10
9
|
name: string;
|
|
@@ -29,7 +28,6 @@ declare function getRegistry(name: string, options?: {
|
|
|
29
28
|
prefix?: string | undefined;
|
|
30
29
|
} | undefined;
|
|
31
30
|
$schema?: string | undefined;
|
|
32
|
-
style?: string | undefined;
|
|
33
31
|
rsc?: boolean | undefined;
|
|
34
32
|
tsx?: boolean | undefined;
|
|
35
33
|
iconLibrary?: string | undefined;
|
|
@@ -42,11 +40,6 @@ declare function getRegistry(name: string, options?: {
|
|
|
42
40
|
lib?: string | undefined;
|
|
43
41
|
hooks?: string | undefined;
|
|
44
42
|
} | undefined;
|
|
45
|
-
registries?: Record<string, string | {
|
|
46
|
-
url: string;
|
|
47
|
-
params?: Record<string, string> | undefined;
|
|
48
|
-
headers?: Record<string, string> | undefined;
|
|
49
|
-
}> | undefined;
|
|
50
43
|
} | undefined;
|
|
51
44
|
css?: Record<string, any> | undefined;
|
|
52
45
|
extends?: string | undefined;
|
|
@@ -63,7 +56,7 @@ declare function getRegistry(name: string, options?: {
|
|
|
63
56
|
content?: string | undefined;
|
|
64
57
|
} | {
|
|
65
58
|
path: string;
|
|
66
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
59
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
67
60
|
content?: string | undefined;
|
|
68
61
|
target?: string | undefined;
|
|
69
62
|
})[] | undefined;
|
|
@@ -127,7 +120,7 @@ declare function getRegistry(name: string, options?: {
|
|
|
127
120
|
content?: string | undefined;
|
|
128
121
|
} | {
|
|
129
122
|
path: string;
|
|
130
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
123
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
131
124
|
content?: string | undefined;
|
|
132
125
|
target?: string | undefined;
|
|
133
126
|
})[] | undefined;
|
|
@@ -165,7 +158,7 @@ declare function getRegistry(name: string, options?: {
|
|
|
165
158
|
content?: string | undefined;
|
|
166
159
|
} | {
|
|
167
160
|
path: string;
|
|
168
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
161
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
169
162
|
content?: string | undefined;
|
|
170
163
|
target?: string | undefined;
|
|
171
164
|
})[] | undefined;
|
|
@@ -197,7 +190,7 @@ declare function getRegistry(name: string, options?: {
|
|
|
197
190
|
"alpha-48": string;
|
|
198
191
|
} | undefined;
|
|
199
192
|
} | {
|
|
200
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:
|
|
193
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:item" | "registry:example" | "registry:internal";
|
|
201
194
|
name: string;
|
|
202
195
|
tailwind?: {
|
|
203
196
|
config?: {
|
|
@@ -222,7 +215,7 @@ declare function getRegistry(name: string, options?: {
|
|
|
222
215
|
content?: string | undefined;
|
|
223
216
|
} | {
|
|
224
217
|
path: string;
|
|
225
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
218
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
226
219
|
content?: string | undefined;
|
|
227
220
|
target?: string | undefined;
|
|
228
221
|
})[] | undefined;
|
|
@@ -259,7 +252,6 @@ declare function getRegistryItems(items: string[], options?: {
|
|
|
259
252
|
prefix?: string | undefined;
|
|
260
253
|
} | undefined;
|
|
261
254
|
$schema?: string | undefined;
|
|
262
|
-
style?: string | undefined;
|
|
263
255
|
rsc?: boolean | undefined;
|
|
264
256
|
tsx?: boolean | undefined;
|
|
265
257
|
iconLibrary?: string | undefined;
|
|
@@ -272,11 +264,6 @@ declare function getRegistryItems(items: string[], options?: {
|
|
|
272
264
|
lib?: string | undefined;
|
|
273
265
|
hooks?: string | undefined;
|
|
274
266
|
} | undefined;
|
|
275
|
-
registries?: Record<string, string | {
|
|
276
|
-
url: string;
|
|
277
|
-
params?: Record<string, string> | undefined;
|
|
278
|
-
headers?: Record<string, string> | undefined;
|
|
279
|
-
}> | undefined;
|
|
280
267
|
} | undefined;
|
|
281
268
|
css?: Record<string, any> | undefined;
|
|
282
269
|
extends?: string | undefined;
|
|
@@ -293,7 +280,7 @@ declare function getRegistryItems(items: string[], options?: {
|
|
|
293
280
|
content?: string | undefined;
|
|
294
281
|
} | {
|
|
295
282
|
path: string;
|
|
296
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
283
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
297
284
|
content?: string | undefined;
|
|
298
285
|
target?: string | undefined;
|
|
299
286
|
})[] | undefined;
|
|
@@ -357,7 +344,7 @@ declare function getRegistryItems(items: string[], options?: {
|
|
|
357
344
|
content?: string | undefined;
|
|
358
345
|
} | {
|
|
359
346
|
path: string;
|
|
360
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
347
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
361
348
|
content?: string | undefined;
|
|
362
349
|
target?: string | undefined;
|
|
363
350
|
})[] | undefined;
|
|
@@ -395,7 +382,7 @@ declare function getRegistryItems(items: string[], options?: {
|
|
|
395
382
|
content?: string | undefined;
|
|
396
383
|
} | {
|
|
397
384
|
path: string;
|
|
398
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
385
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
399
386
|
content?: string | undefined;
|
|
400
387
|
target?: string | undefined;
|
|
401
388
|
})[] | undefined;
|
|
@@ -427,7 +414,7 @@ declare function getRegistryItems(items: string[], options?: {
|
|
|
427
414
|
"alpha-48": string;
|
|
428
415
|
} | undefined;
|
|
429
416
|
} | {
|
|
430
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:
|
|
417
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:item" | "registry:example" | "registry:internal";
|
|
431
418
|
name: string;
|
|
432
419
|
tailwind?: {
|
|
433
420
|
config?: {
|
|
@@ -452,7 +439,7 @@ declare function getRegistryItems(items: string[], options?: {
|
|
|
452
439
|
content?: string | undefined;
|
|
453
440
|
} | {
|
|
454
441
|
path: string;
|
|
455
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
442
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
456
443
|
content?: string | undefined;
|
|
457
444
|
target?: string | undefined;
|
|
458
445
|
})[] | undefined;
|
|
@@ -486,7 +473,7 @@ declare function resolveRegistryItems(items: string[], options?: {
|
|
|
486
473
|
content?: string | undefined;
|
|
487
474
|
} | {
|
|
488
475
|
path: string;
|
|
489
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
476
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
490
477
|
content?: string | undefined;
|
|
491
478
|
target?: string | undefined;
|
|
492
479
|
})[] | undefined;
|
|
@@ -531,7 +518,7 @@ declare function resolveRegistryItems(items: string[], options?: {
|
|
|
531
518
|
content?: string | undefined;
|
|
532
519
|
} | {
|
|
533
520
|
path: string;
|
|
534
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
521
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
535
522
|
content?: string | undefined;
|
|
536
523
|
target?: string | undefined;
|
|
537
524
|
})[] | undefined;
|
|
@@ -545,15 +532,6 @@ declare function resolveRegistryItems(items: string[], options?: {
|
|
|
545
532
|
categories?: string[] | undefined;
|
|
546
533
|
}[] | undefined;
|
|
547
534
|
} | null>;
|
|
548
|
-
declare function getRegistriesConfig(cwd: string, options?: {
|
|
549
|
-
useCache?: boolean;
|
|
550
|
-
}): Promise<{
|
|
551
|
-
registries: Record<string, string | {
|
|
552
|
-
url: string;
|
|
553
|
-
params?: Record<string, string> | undefined;
|
|
554
|
-
headers?: Record<string, string> | undefined;
|
|
555
|
-
}>;
|
|
556
|
-
}>;
|
|
557
535
|
declare function getcreateuiRegistryIndex(): Promise<({
|
|
558
536
|
type: "registry:base";
|
|
559
537
|
name: string;
|
|
@@ -574,7 +552,6 @@ declare function getcreateuiRegistryIndex(): Promise<({
|
|
|
574
552
|
prefix?: string | undefined;
|
|
575
553
|
} | undefined;
|
|
576
554
|
$schema?: string | undefined;
|
|
577
|
-
style?: string | undefined;
|
|
578
555
|
rsc?: boolean | undefined;
|
|
579
556
|
tsx?: boolean | undefined;
|
|
580
557
|
iconLibrary?: string | undefined;
|
|
@@ -587,11 +564,6 @@ declare function getcreateuiRegistryIndex(): Promise<({
|
|
|
587
564
|
lib?: string | undefined;
|
|
588
565
|
hooks?: string | undefined;
|
|
589
566
|
} | undefined;
|
|
590
|
-
registries?: Record<string, string | {
|
|
591
|
-
url: string;
|
|
592
|
-
params?: Record<string, string> | undefined;
|
|
593
|
-
headers?: Record<string, string> | undefined;
|
|
594
|
-
}> | undefined;
|
|
595
567
|
} | undefined;
|
|
596
568
|
css?: Record<string, any> | undefined;
|
|
597
569
|
extends?: string | undefined;
|
|
@@ -608,7 +580,7 @@ declare function getcreateuiRegistryIndex(): Promise<({
|
|
|
608
580
|
content?: string | undefined;
|
|
609
581
|
} | {
|
|
610
582
|
path: string;
|
|
611
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
583
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
612
584
|
content?: string | undefined;
|
|
613
585
|
target?: string | undefined;
|
|
614
586
|
})[] | undefined;
|
|
@@ -672,7 +644,7 @@ declare function getcreateuiRegistryIndex(): Promise<({
|
|
|
672
644
|
content?: string | undefined;
|
|
673
645
|
} | {
|
|
674
646
|
path: string;
|
|
675
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
647
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
676
648
|
content?: string | undefined;
|
|
677
649
|
target?: string | undefined;
|
|
678
650
|
})[] | undefined;
|
|
@@ -710,7 +682,7 @@ declare function getcreateuiRegistryIndex(): Promise<({
|
|
|
710
682
|
content?: string | undefined;
|
|
711
683
|
} | {
|
|
712
684
|
path: string;
|
|
713
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
685
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
714
686
|
content?: string | undefined;
|
|
715
687
|
target?: string | undefined;
|
|
716
688
|
})[] | undefined;
|
|
@@ -742,7 +714,7 @@ declare function getcreateuiRegistryIndex(): Promise<({
|
|
|
742
714
|
"alpha-48": string;
|
|
743
715
|
} | undefined;
|
|
744
716
|
} | {
|
|
745
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:
|
|
717
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:item" | "registry:example" | "registry:internal";
|
|
746
718
|
name: string;
|
|
747
719
|
tailwind?: {
|
|
748
720
|
config?: {
|
|
@@ -767,7 +739,7 @@ declare function getcreateuiRegistryIndex(): Promise<({
|
|
|
767
739
|
content?: string | undefined;
|
|
768
740
|
} | {
|
|
769
741
|
path: string;
|
|
770
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
742
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
771
743
|
content?: string | undefined;
|
|
772
744
|
target?: string | undefined;
|
|
773
745
|
})[] | undefined;
|
|
@@ -785,27 +757,6 @@ declare function getRegistryStyles(): Promise<{
|
|
|
785
757
|
label: string;
|
|
786
758
|
}[]>;
|
|
787
759
|
declare function getRegistryIcons(): Promise<Record<string, Record<string, string>>>;
|
|
788
|
-
declare function getRegistryBaseColors(): Promise<readonly [{
|
|
789
|
-
readonly name: "neutral";
|
|
790
|
-
readonly label: "Neutral";
|
|
791
|
-
}, {
|
|
792
|
-
readonly name: "gray";
|
|
793
|
-
readonly label: "Gray";
|
|
794
|
-
}, {
|
|
795
|
-
readonly name: "zinc";
|
|
796
|
-
readonly label: "Zinc";
|
|
797
|
-
}, {
|
|
798
|
-
readonly name: "stone";
|
|
799
|
-
readonly label: "Stone";
|
|
800
|
-
}, {
|
|
801
|
-
readonly name: "slate";
|
|
802
|
-
readonly label: "Slate";
|
|
803
|
-
}]>;
|
|
804
|
-
/**
|
|
805
|
-
* @deprecated Themes now come from registry:theme items with a `primary` field.
|
|
806
|
-
* This function is kept for backward compatibility but returns undefined.
|
|
807
|
-
*/
|
|
808
|
-
declare function getRegistryBaseColor(_baseColor: string): Promise<undefined>;
|
|
809
760
|
/**
|
|
810
761
|
* @deprecated This function is deprecated and will be removed in a future version.
|
|
811
762
|
*/
|
|
@@ -829,7 +780,6 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
829
780
|
prefix?: string | undefined;
|
|
830
781
|
} | undefined;
|
|
831
782
|
$schema?: string | undefined;
|
|
832
|
-
style?: string | undefined;
|
|
833
783
|
rsc?: boolean | undefined;
|
|
834
784
|
tsx?: boolean | undefined;
|
|
835
785
|
iconLibrary?: string | undefined;
|
|
@@ -842,11 +792,6 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
842
792
|
lib?: string | undefined;
|
|
843
793
|
hooks?: string | undefined;
|
|
844
794
|
} | undefined;
|
|
845
|
-
registries?: Record<string, string | {
|
|
846
|
-
url: string;
|
|
847
|
-
params?: Record<string, string> | undefined;
|
|
848
|
-
headers?: Record<string, string> | undefined;
|
|
849
|
-
}> | undefined;
|
|
850
795
|
} | undefined;
|
|
851
796
|
css?: Record<string, any> | undefined;
|
|
852
797
|
extends?: string | undefined;
|
|
@@ -863,7 +808,7 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
863
808
|
content?: string | undefined;
|
|
864
809
|
} | {
|
|
865
810
|
path: string;
|
|
866
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
811
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
867
812
|
content?: string | undefined;
|
|
868
813
|
target?: string | undefined;
|
|
869
814
|
})[] | undefined;
|
|
@@ -927,7 +872,7 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
927
872
|
content?: string | undefined;
|
|
928
873
|
} | {
|
|
929
874
|
path: string;
|
|
930
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
875
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
931
876
|
content?: string | undefined;
|
|
932
877
|
target?: string | undefined;
|
|
933
878
|
})[] | undefined;
|
|
@@ -965,7 +910,7 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
965
910
|
content?: string | undefined;
|
|
966
911
|
} | {
|
|
967
912
|
path: string;
|
|
968
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
913
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
969
914
|
content?: string | undefined;
|
|
970
915
|
target?: string | undefined;
|
|
971
916
|
})[] | undefined;
|
|
@@ -997,7 +942,7 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
997
942
|
"alpha-48": string;
|
|
998
943
|
} | undefined;
|
|
999
944
|
} | {
|
|
1000
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:
|
|
945
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:item" | "registry:example" | "registry:internal";
|
|
1001
946
|
name: string;
|
|
1002
947
|
tailwind?: {
|
|
1003
948
|
config?: {
|
|
@@ -1022,7 +967,7 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
1022
967
|
content?: string | undefined;
|
|
1023
968
|
} | {
|
|
1024
969
|
path: string;
|
|
1025
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
970
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
1026
971
|
content?: string | undefined;
|
|
1027
972
|
target?: string | undefined;
|
|
1028
973
|
})[] | undefined;
|
|
@@ -1058,7 +1003,6 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
1058
1003
|
prefix?: string | undefined;
|
|
1059
1004
|
} | undefined;
|
|
1060
1005
|
$schema?: string | undefined;
|
|
1061
|
-
style?: string | undefined;
|
|
1062
1006
|
rsc?: boolean | undefined;
|
|
1063
1007
|
tsx?: boolean | undefined;
|
|
1064
1008
|
iconLibrary?: string | undefined;
|
|
@@ -1071,11 +1015,6 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
1071
1015
|
lib?: string | undefined;
|
|
1072
1016
|
hooks?: string | undefined;
|
|
1073
1017
|
} | undefined;
|
|
1074
|
-
registries?: Record<string, string | {
|
|
1075
|
-
url: string;
|
|
1076
|
-
params?: Record<string, string> | undefined;
|
|
1077
|
-
headers?: Record<string, string> | undefined;
|
|
1078
|
-
}> | undefined;
|
|
1079
1018
|
} | undefined;
|
|
1080
1019
|
css?: Record<string, any> | undefined;
|
|
1081
1020
|
extends?: string | undefined;
|
|
@@ -1092,7 +1031,7 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
1092
1031
|
content?: string | undefined;
|
|
1093
1032
|
} | {
|
|
1094
1033
|
path: string;
|
|
1095
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
1034
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
1096
1035
|
content?: string | undefined;
|
|
1097
1036
|
target?: string | undefined;
|
|
1098
1037
|
})[] | undefined;
|
|
@@ -1156,7 +1095,7 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
1156
1095
|
content?: string | undefined;
|
|
1157
1096
|
} | {
|
|
1158
1097
|
path: string;
|
|
1159
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
1098
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
1160
1099
|
content?: string | undefined;
|
|
1161
1100
|
target?: string | undefined;
|
|
1162
1101
|
})[] | undefined;
|
|
@@ -1194,7 +1133,7 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
1194
1133
|
content?: string | undefined;
|
|
1195
1134
|
} | {
|
|
1196
1135
|
path: string;
|
|
1197
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
1136
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
1198
1137
|
content?: string | undefined;
|
|
1199
1138
|
target?: string | undefined;
|
|
1200
1139
|
})[] | undefined;
|
|
@@ -1226,7 +1165,7 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
1226
1165
|
"alpha-48": string;
|
|
1227
1166
|
} | undefined;
|
|
1228
1167
|
} | {
|
|
1229
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:
|
|
1168
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:item" | "registry:example" | "registry:internal";
|
|
1230
1169
|
name: string;
|
|
1231
1170
|
tailwind?: {
|
|
1232
1171
|
config?: {
|
|
@@ -1251,7 +1190,7 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
1251
1190
|
content?: string | undefined;
|
|
1252
1191
|
} | {
|
|
1253
1192
|
path: string;
|
|
1254
|
-
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:
|
|
1193
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:font-variant" | "registry:item" | "registry:base" | "registry:example" | "registry:internal";
|
|
1255
1194
|
content?: string | undefined;
|
|
1256
1195
|
target?: string | undefined;
|
|
1257
1196
|
})[] | undefined;
|
|
@@ -1268,25 +1207,9 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
1268
1207
|
* @deprecated This function is deprecated and will be removed in a future version.
|
|
1269
1208
|
*/
|
|
1270
1209
|
declare function getItemTargetPath(config: Config, item: Pick<z.infer<typeof registryItemSchema>, "type">, override?: string): Promise<string | null>;
|
|
1271
|
-
declare function getRegistries(options?: {
|
|
1272
|
-
useCache?: boolean;
|
|
1273
|
-
}): Promise<{
|
|
1274
|
-
url: string;
|
|
1275
|
-
name: string;
|
|
1276
|
-
description?: string | undefined;
|
|
1277
|
-
homepage?: string | undefined;
|
|
1278
|
-
}[]>;
|
|
1279
|
-
/**
|
|
1280
|
-
* @deprecated Use getRegistries() instead.
|
|
1281
|
-
*/
|
|
1282
|
-
declare function getRegistriesIndex(options?: {
|
|
1283
|
-
useCache?: boolean;
|
|
1284
|
-
}): Promise<Record<string, string> | null>;
|
|
1285
1210
|
declare function getPresets(options?: {
|
|
1286
1211
|
useCache?: boolean;
|
|
1287
1212
|
}): Promise<{
|
|
1288
|
-
style: string;
|
|
1289
|
-
baseColor: string;
|
|
1290
1213
|
iconLibrary: string;
|
|
1291
1214
|
menuColor: "default" | "inverted";
|
|
1292
1215
|
menuAccent: "subtle" | "bold";
|
|
@@ -1295,14 +1218,12 @@ declare function getPresets(options?: {
|
|
|
1295
1218
|
title: string;
|
|
1296
1219
|
description: string;
|
|
1297
1220
|
fontVariant: string;
|
|
1298
|
-
|
|
1299
|
-
|
|
1221
|
+
neutralTheme: string;
|
|
1222
|
+
item?: string | undefined;
|
|
1300
1223
|
}[]>;
|
|
1301
1224
|
declare function getPreset(name: string, options?: {
|
|
1302
1225
|
useCache?: boolean;
|
|
1303
1226
|
}): Promise<{
|
|
1304
|
-
style: string;
|
|
1305
|
-
baseColor: string;
|
|
1306
1227
|
iconLibrary: string;
|
|
1307
1228
|
menuColor: "default" | "inverted";
|
|
1308
1229
|
menuAccent: "subtle" | "bold";
|
|
@@ -1311,8 +1232,19 @@ declare function getPreset(name: string, options?: {
|
|
|
1311
1232
|
title: string;
|
|
1312
1233
|
description: string;
|
|
1313
1234
|
fontVariant: string;
|
|
1314
|
-
|
|
1315
|
-
|
|
1235
|
+
neutralTheme: string;
|
|
1236
|
+
item?: string | undefined;
|
|
1316
1237
|
} | null>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Lists the font variants exposed by the active registry as `{ name, label }`
|
|
1240
|
+
* ready for a CLI prompt. The name is the bare suffix (`v1`) matching the
|
|
1241
|
+
* `font-variant-<name>` registry item; the label pairs the variant title with
|
|
1242
|
+
* its display and numeric fonts (e.g. "Default (Geist + Geist Mono)"). Falls
|
|
1243
|
+
* back to the built-in list if the registry has none or is unreachable.
|
|
1244
|
+
*/
|
|
1245
|
+
declare function getFontVariants(): Promise<{
|
|
1246
|
+
name: string;
|
|
1247
|
+
label: string;
|
|
1248
|
+
}[]>;
|
|
1317
1249
|
|
|
1318
|
-
export { fetchTree, getItemTargetPath, getPreset, getPresets,
|
|
1250
|
+
export { fetchTree, getFontVariants, getItemTargetPath, getPreset, getPresets, getRegistry, getRegistryIcons, getRegistryItems, getRegistryStyles, getcreateuiRegistryIndex, resolveRegistryItems, resolveTree };
|