hghcn 3.6.27 → 3.6.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ declare function getRegistry(name: string, options?: {
12
12
  items: ({
13
13
  type: "registry:base";
14
14
  name: string;
15
+ $schema?: string | undefined;
15
16
  tailwind?: {
16
17
  config?: {
17
18
  content?: string[] | undefined;
@@ -19,8 +20,11 @@ declare function getRegistry(name: string, options?: {
19
20
  plugins?: string[] | undefined;
20
21
  } | undefined;
21
22
  } | undefined;
22
- $schema?: string | undefined;
23
23
  config?: {
24
+ $schema?: string | undefined;
25
+ style?: string | undefined;
26
+ rsc?: boolean | undefined;
27
+ tsx?: boolean | undefined;
24
28
  tailwind?: {
25
29
  config?: string | undefined;
26
30
  css?: string | undefined;
@@ -28,17 +32,13 @@ declare function getRegistry(name: string, options?: {
28
32
  cssVariables?: boolean | undefined;
29
33
  prefix?: string | undefined;
30
34
  } | undefined;
31
- $schema?: string | undefined;
32
- style?: string | undefined;
33
- rsc?: boolean | undefined;
34
- tsx?: boolean | undefined;
35
35
  iconLibrary?: string | undefined;
36
36
  menuColor?: "default" | "inverted" | undefined;
37
37
  menuAccent?: "subtle" | "bold" | undefined;
38
38
  aliases?: {
39
39
  components?: string | undefined;
40
- ui?: string | undefined;
41
40
  utils?: string | undefined;
41
+ ui?: string | undefined;
42
42
  lib?: string | undefined;
43
43
  hooks?: string | undefined;
44
44
  } | undefined;
@@ -87,6 +87,7 @@ declare function getRegistry(name: string, options?: {
87
87
  weight?: string[] | undefined;
88
88
  subsets?: string[] | undefined;
89
89
  };
90
+ $schema?: string | undefined;
90
91
  tailwind?: {
91
92
  config?: {
92
93
  content?: string[] | undefined;
@@ -94,7 +95,6 @@ declare function getRegistry(name: string, options?: {
94
95
  plugins?: string[] | undefined;
95
96
  } | undefined;
96
97
  } | undefined;
97
- $schema?: string | undefined;
98
98
  css?: Record<string, any> | undefined;
99
99
  extends?: string | undefined;
100
100
  title?: string | undefined;
@@ -126,6 +126,7 @@ declare function getRegistry(name: string, options?: {
126
126
  } | {
127
127
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
128
128
  name: string;
129
+ $schema?: string | undefined;
129
130
  tailwind?: {
130
131
  config?: {
131
132
  content?: string[] | undefined;
@@ -133,7 +134,6 @@ declare function getRegistry(name: string, options?: {
133
134
  plugins?: string[] | undefined;
134
135
  } | undefined;
135
136
  } | undefined;
136
- $schema?: string | undefined;
137
137
  css?: Record<string, any> | undefined;
138
138
  extends?: string | undefined;
139
139
  title?: string | undefined;
@@ -170,6 +170,7 @@ declare function getRegistryItems(items: string[], options?: {
170
170
  }): Promise<({
171
171
  type: "registry:base";
172
172
  name: string;
173
+ $schema?: string | undefined;
173
174
  tailwind?: {
174
175
  config?: {
175
176
  content?: string[] | undefined;
@@ -177,8 +178,11 @@ declare function getRegistryItems(items: string[], options?: {
177
178
  plugins?: string[] | undefined;
178
179
  } | undefined;
179
180
  } | undefined;
180
- $schema?: string | undefined;
181
181
  config?: {
182
+ $schema?: string | undefined;
183
+ style?: string | undefined;
184
+ rsc?: boolean | undefined;
185
+ tsx?: boolean | undefined;
182
186
  tailwind?: {
183
187
  config?: string | undefined;
184
188
  css?: string | undefined;
@@ -186,17 +190,13 @@ declare function getRegistryItems(items: string[], options?: {
186
190
  cssVariables?: boolean | undefined;
187
191
  prefix?: string | undefined;
188
192
  } | undefined;
189
- $schema?: string | undefined;
190
- style?: string | undefined;
191
- rsc?: boolean | undefined;
192
- tsx?: boolean | undefined;
193
193
  iconLibrary?: string | undefined;
194
194
  menuColor?: "default" | "inverted" | undefined;
195
195
  menuAccent?: "subtle" | "bold" | undefined;
196
196
  aliases?: {
197
197
  components?: string | undefined;
198
- ui?: string | undefined;
199
198
  utils?: string | undefined;
199
+ ui?: string | undefined;
200
200
  lib?: string | undefined;
201
201
  hooks?: string | undefined;
202
202
  } | undefined;
@@ -245,6 +245,7 @@ declare function getRegistryItems(items: string[], options?: {
245
245
  weight?: string[] | undefined;
246
246
  subsets?: string[] | undefined;
247
247
  };
248
+ $schema?: string | undefined;
248
249
  tailwind?: {
249
250
  config?: {
250
251
  content?: string[] | undefined;
@@ -252,7 +253,6 @@ declare function getRegistryItems(items: string[], options?: {
252
253
  plugins?: string[] | undefined;
253
254
  } | undefined;
254
255
  } | undefined;
255
- $schema?: string | undefined;
256
256
  css?: Record<string, any> | undefined;
257
257
  extends?: string | undefined;
258
258
  title?: string | undefined;
@@ -284,6 +284,7 @@ declare function getRegistryItems(items: string[], options?: {
284
284
  } | {
285
285
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
286
286
  name: string;
287
+ $schema?: string | undefined;
287
288
  tailwind?: {
288
289
  config?: {
289
290
  content?: string[] | undefined;
@@ -291,7 +292,6 @@ declare function getRegistryItems(items: string[], options?: {
291
292
  plugins?: string[] | undefined;
292
293
  } | undefined;
293
294
  } | undefined;
294
- $schema?: string | undefined;
295
295
  css?: Record<string, any> | undefined;
296
296
  extends?: string | undefined;
297
297
  title?: string | undefined;
@@ -364,6 +364,7 @@ declare function resolveRegistryItems(items: string[], options?: {
364
364
  weight?: string[] | undefined;
365
365
  subsets?: string[] | undefined;
366
366
  };
367
+ $schema?: string | undefined;
367
368
  tailwind?: {
368
369
  config?: {
369
370
  content?: string[] | undefined;
@@ -371,7 +372,6 @@ declare function resolveRegistryItems(items: string[], options?: {
371
372
  plugins?: string[] | undefined;
372
373
  } | undefined;
373
374
  } | undefined;
374
- $schema?: string | undefined;
375
375
  css?: Record<string, any> | undefined;
376
376
  extends?: string | undefined;
377
377
  title?: string | undefined;
@@ -414,6 +414,7 @@ declare function getRegistriesConfig(cwd: string, options?: {
414
414
  declare function getShadcnRegistryIndex(): Promise<({
415
415
  type: "registry:base";
416
416
  name: string;
417
+ $schema?: string | undefined;
417
418
  tailwind?: {
418
419
  config?: {
419
420
  content?: string[] | undefined;
@@ -421,8 +422,11 @@ declare function getShadcnRegistryIndex(): Promise<({
421
422
  plugins?: string[] | undefined;
422
423
  } | undefined;
423
424
  } | undefined;
424
- $schema?: string | undefined;
425
425
  config?: {
426
+ $schema?: string | undefined;
427
+ style?: string | undefined;
428
+ rsc?: boolean | undefined;
429
+ tsx?: boolean | undefined;
426
430
  tailwind?: {
427
431
  config?: string | undefined;
428
432
  css?: string | undefined;
@@ -430,17 +434,13 @@ declare function getShadcnRegistryIndex(): Promise<({
430
434
  cssVariables?: boolean | undefined;
431
435
  prefix?: string | undefined;
432
436
  } | undefined;
433
- $schema?: string | undefined;
434
- style?: string | undefined;
435
- rsc?: boolean | undefined;
436
- tsx?: boolean | undefined;
437
437
  iconLibrary?: string | undefined;
438
438
  menuColor?: "default" | "inverted" | undefined;
439
439
  menuAccent?: "subtle" | "bold" | undefined;
440
440
  aliases?: {
441
441
  components?: string | undefined;
442
- ui?: string | undefined;
443
442
  utils?: string | undefined;
443
+ ui?: string | undefined;
444
444
  lib?: string | undefined;
445
445
  hooks?: string | undefined;
446
446
  } | undefined;
@@ -489,6 +489,7 @@ declare function getShadcnRegistryIndex(): Promise<({
489
489
  weight?: string[] | undefined;
490
490
  subsets?: string[] | undefined;
491
491
  };
492
+ $schema?: string | undefined;
492
493
  tailwind?: {
493
494
  config?: {
494
495
  content?: string[] | undefined;
@@ -496,7 +497,6 @@ declare function getShadcnRegistryIndex(): Promise<({
496
497
  plugins?: string[] | undefined;
497
498
  } | undefined;
498
499
  } | undefined;
499
- $schema?: string | undefined;
500
500
  css?: Record<string, any> | undefined;
501
501
  extends?: string | undefined;
502
502
  title?: string | undefined;
@@ -528,6 +528,7 @@ declare function getShadcnRegistryIndex(): Promise<({
528
528
  } | {
529
529
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
530
530
  name: string;
531
+ $schema?: string | undefined;
531
532
  tailwind?: {
532
533
  config?: {
533
534
  content?: string[] | undefined;
@@ -535,7 +536,6 @@ declare function getShadcnRegistryIndex(): Promise<({
535
536
  plugins?: string[] | undefined;
536
537
  } | undefined;
537
538
  } | undefined;
538
- $schema?: string | undefined;
539
539
  css?: Record<string, any> | undefined;
540
540
  extends?: string | undefined;
541
541
  title?: string | undefined;
@@ -610,6 +610,7 @@ declare function getRegistryBaseColor(baseColor: string): Promise<{
610
610
  declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names: string[]): Promise<({
611
611
  type: "registry:base";
612
612
  name: string;
613
+ $schema?: string | undefined;
613
614
  tailwind?: {
614
615
  config?: {
615
616
  content?: string[] | undefined;
@@ -617,8 +618,11 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
617
618
  plugins?: string[] | undefined;
618
619
  } | undefined;
619
620
  } | undefined;
620
- $schema?: string | undefined;
621
621
  config?: {
622
+ $schema?: string | undefined;
623
+ style?: string | undefined;
624
+ rsc?: boolean | undefined;
625
+ tsx?: boolean | undefined;
622
626
  tailwind?: {
623
627
  config?: string | undefined;
624
628
  css?: string | undefined;
@@ -626,17 +630,13 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
626
630
  cssVariables?: boolean | undefined;
627
631
  prefix?: string | undefined;
628
632
  } | undefined;
629
- $schema?: string | undefined;
630
- style?: string | undefined;
631
- rsc?: boolean | undefined;
632
- tsx?: boolean | undefined;
633
633
  iconLibrary?: string | undefined;
634
634
  menuColor?: "default" | "inverted" | undefined;
635
635
  menuAccent?: "subtle" | "bold" | undefined;
636
636
  aliases?: {
637
637
  components?: string | undefined;
638
- ui?: string | undefined;
639
638
  utils?: string | undefined;
639
+ ui?: string | undefined;
640
640
  lib?: string | undefined;
641
641
  hooks?: string | undefined;
642
642
  } | undefined;
@@ -685,6 +685,7 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
685
685
  weight?: string[] | undefined;
686
686
  subsets?: string[] | undefined;
687
687
  };
688
+ $schema?: string | undefined;
688
689
  tailwind?: {
689
690
  config?: {
690
691
  content?: string[] | undefined;
@@ -692,7 +693,6 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
692
693
  plugins?: string[] | undefined;
693
694
  } | undefined;
694
695
  } | undefined;
695
- $schema?: string | undefined;
696
696
  css?: Record<string, any> | undefined;
697
697
  extends?: string | undefined;
698
698
  title?: string | undefined;
@@ -724,6 +724,7 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
724
724
  } | {
725
725
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
726
726
  name: string;
727
+ $schema?: string | undefined;
727
728
  tailwind?: {
728
729
  config?: {
729
730
  content?: string[] | undefined;
@@ -731,7 +732,6 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
731
732
  plugins?: string[] | undefined;
732
733
  } | undefined;
733
734
  } | undefined;
734
- $schema?: string | undefined;
735
735
  css?: Record<string, any> | undefined;
736
736
  extends?: string | undefined;
737
737
  title?: string | undefined;
@@ -767,6 +767,7 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
767
767
  declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSchema>): Promise<({
768
768
  type: "registry:base";
769
769
  name: string;
770
+ $schema?: string | undefined;
770
771
  tailwind?: {
771
772
  config?: {
772
773
  content?: string[] | undefined;
@@ -774,8 +775,11 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
774
775
  plugins?: string[] | undefined;
775
776
  } | undefined;
776
777
  } | undefined;
777
- $schema?: string | undefined;
778
778
  config?: {
779
+ $schema?: string | undefined;
780
+ style?: string | undefined;
781
+ rsc?: boolean | undefined;
782
+ tsx?: boolean | undefined;
779
783
  tailwind?: {
780
784
  config?: string | undefined;
781
785
  css?: string | undefined;
@@ -783,17 +787,13 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
783
787
  cssVariables?: boolean | undefined;
784
788
  prefix?: string | undefined;
785
789
  } | undefined;
786
- $schema?: string | undefined;
787
- style?: string | undefined;
788
- rsc?: boolean | undefined;
789
- tsx?: boolean | undefined;
790
790
  iconLibrary?: string | undefined;
791
791
  menuColor?: "default" | "inverted" | undefined;
792
792
  menuAccent?: "subtle" | "bold" | undefined;
793
793
  aliases?: {
794
794
  components?: string | undefined;
795
- ui?: string | undefined;
796
795
  utils?: string | undefined;
796
+ ui?: string | undefined;
797
797
  lib?: string | undefined;
798
798
  hooks?: string | undefined;
799
799
  } | undefined;
@@ -842,6 +842,7 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
842
842
  weight?: string[] | undefined;
843
843
  subsets?: string[] | undefined;
844
844
  };
845
+ $schema?: string | undefined;
845
846
  tailwind?: {
846
847
  config?: {
847
848
  content?: string[] | undefined;
@@ -849,7 +850,6 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
849
850
  plugins?: string[] | undefined;
850
851
  } | undefined;
851
852
  } | undefined;
852
- $schema?: string | undefined;
853
853
  css?: Record<string, any> | undefined;
854
854
  extends?: string | undefined;
855
855
  title?: string | undefined;
@@ -881,6 +881,7 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
881
881
  } | {
882
882
  type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
883
883
  name: string;
884
+ $schema?: string | undefined;
884
885
  tailwind?: {
885
886
  config?: {
886
887
  content?: string[] | undefined;
@@ -888,7 +889,6 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
888
889
  plugins?: string[] | undefined;
889
890
  } | undefined;
890
891
  } | undefined;
891
- $schema?: string | undefined;
892
892
  css?: Record<string, any> | undefined;
893
893
  extends?: string | undefined;
894
894
  title?: string | undefined;