shadcn 4.16.0 → 4.16.2

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/mcp/index.js CHANGED
@@ -1 +1 @@
1
- export{a as server}from'../chunk-WSDRTMUH.js';import'../chunk-OLTG3DPR.js';import'../chunk-2XFBGS5K.js';import'../chunk-MTWZIHEW.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
1
+ export{a as server}from'../chunk-FWHPVUDH.js';import'../chunk-Q6Y23SOV.js';import'../chunk-2XFBGS5K.js';import'../chunk-4WBGNKSZ.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
@@ -28,6 +28,7 @@ declare function searchRegistries(registries: string[], options?: SearchRegistri
28
28
  name: string;
29
29
  addCommandArgument: string;
30
30
  type?: string | undefined;
31
+ title?: string | undefined;
31
32
  description?: string | undefined;
32
33
  }[];
33
34
  pagination: {
@@ -202,6 +203,12 @@ declare function loadRegistry(options?: LoadRegistryOptions): Promise<{
202
203
  homepage: string;
203
204
  $schema?: string | undefined;
204
205
  include?: string[] | undefined;
206
+ pagination?: {
207
+ total: number;
208
+ offset: number;
209
+ limit: number;
210
+ hasMore: boolean;
211
+ } | undefined;
205
212
  }>;
206
213
  declare function loadRegistryItem(itemName: string, options?: LoadRegistryOptions): Promise<{
207
214
  type: "registry:base";
@@ -1 +1 @@
1
- export{x as RegistriesIndexParseError,l as RegistryError,k as RegistryErrorCode,p as RegistryFetchError,o as RegistryForbiddenError,w as RegistryInvalidNamespaceError,u as RegistryItemNotFoundError,r as RegistryLocalFileError,v as RegistryMissingEnvironmentVariablesError,q as RegistryNotConfiguredError,m as RegistryNotFoundError,s as RegistryParseError,n as RegistryUnauthorizedError,t as RegistryValidationError,Sa as addRegistryItems,va as getRegistries,ma as getRegistriesConfig,wa as getRegistriesIndex,ja as getRegistry,ka as getRegistryItems,Na as loadRegistry,Oa as loadRegistryItem,la as resolveRegistryItems,Ua as searchRegistries}from'../chunk-OLTG3DPR.js';import'../chunk-2XFBGS5K.js';import'../chunk-MTWZIHEW.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
1
+ export{x as RegistriesIndexParseError,l as RegistryError,k as RegistryErrorCode,p as RegistryFetchError,o as RegistryForbiddenError,w as RegistryInvalidNamespaceError,u as RegistryItemNotFoundError,r as RegistryLocalFileError,v as RegistryMissingEnvironmentVariablesError,q as RegistryNotConfiguredError,m as RegistryNotFoundError,s as RegistryParseError,n as RegistryUnauthorizedError,t as RegistryValidationError,Sa as addRegistryItems,va as getRegistries,ma as getRegistriesConfig,wa as getRegistriesIndex,ja as getRegistry,ka as getRegistryItems,Na as loadRegistry,Oa as loadRegistryItem,la as resolveRegistryItems,Ua as searchRegistries}from'../chunk-Q6Y23SOV.js';import'../chunk-2XFBGS5K.js';import'../chunk-4WBGNKSZ.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
@@ -1469,6 +1469,22 @@ type RegistryBaseItem = Extract<RegistryItem, {
1469
1469
  type RegistryFontItem = Extract<RegistryItem, {
1470
1470
  type: "registry:font";
1471
1471
  }>;
1472
+ declare const registryPaginationSchema: z.ZodObject<{
1473
+ total: z.ZodNumber;
1474
+ offset: z.ZodNumber;
1475
+ limit: z.ZodNumber;
1476
+ hasMore: z.ZodBoolean;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ total: number;
1479
+ offset: number;
1480
+ limit: number;
1481
+ hasMore: boolean;
1482
+ }, {
1483
+ total: number;
1484
+ offset: number;
1485
+ limit: number;
1486
+ hasMore: boolean;
1487
+ }>;
1472
1488
  declare const registryChunkSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1473
1489
  $schema: z.ZodOptional<z.ZodString>;
1474
1490
  name: z.ZodOptional<z.ZodString>;
@@ -2196,6 +2212,22 @@ declare const registryChunkSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2196
2212
  meta?: Record<string, any> | undefined;
2197
2213
  categories?: string[] | undefined;
2198
2214
  }>]>, "many">>;
2215
+ pagination: z.ZodOptional<z.ZodObject<{
2216
+ total: z.ZodNumber;
2217
+ offset: z.ZodNumber;
2218
+ limit: z.ZodNumber;
2219
+ hasMore: z.ZodBoolean;
2220
+ }, "strip", z.ZodTypeAny, {
2221
+ total: number;
2222
+ offset: number;
2223
+ limit: number;
2224
+ hasMore: boolean;
2225
+ }, {
2226
+ total: number;
2227
+ offset: number;
2228
+ limit: number;
2229
+ hasMore: boolean;
2230
+ }>>;
2199
2231
  }, "strip", z.ZodTypeAny, {
2200
2232
  $schema?: string | undefined;
2201
2233
  name?: string | undefined;
@@ -2358,6 +2390,12 @@ declare const registryChunkSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2358
2390
  meta?: Record<string, any> | undefined;
2359
2391
  categories?: string[] | undefined;
2360
2392
  })[] | undefined;
2393
+ pagination?: {
2394
+ total: number;
2395
+ offset: number;
2396
+ limit: number;
2397
+ hasMore: boolean;
2398
+ } | undefined;
2361
2399
  }, {
2362
2400
  $schema?: string | undefined;
2363
2401
  name?: string | undefined;
@@ -2520,6 +2558,12 @@ declare const registryChunkSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2520
2558
  meta?: Record<string, any> | undefined;
2521
2559
  categories?: string[] | undefined;
2522
2560
  })[] | undefined;
2561
+ pagination?: {
2562
+ total: number;
2563
+ offset: number;
2564
+ limit: number;
2565
+ hasMore: boolean;
2566
+ } | undefined;
2523
2567
  }>, {
2524
2568
  $schema?: string | undefined;
2525
2569
  name?: string | undefined;
@@ -2682,6 +2726,12 @@ declare const registryChunkSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2682
2726
  meta?: Record<string, any> | undefined;
2683
2727
  categories?: string[] | undefined;
2684
2728
  })[] | undefined;
2729
+ pagination?: {
2730
+ total: number;
2731
+ offset: number;
2732
+ limit: number;
2733
+ hasMore: boolean;
2734
+ } | undefined;
2685
2735
  }, {
2686
2736
  $schema?: string | undefined;
2687
2737
  name?: string | undefined;
@@ -2844,6 +2894,12 @@ declare const registryChunkSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2844
2894
  meta?: Record<string, any> | undefined;
2845
2895
  categories?: string[] | undefined;
2846
2896
  })[] | undefined;
2897
+ pagination?: {
2898
+ total: number;
2899
+ offset: number;
2900
+ limit: number;
2901
+ hasMore: boolean;
2902
+ } | undefined;
2847
2903
  }>, {
2848
2904
  items: ({
2849
2905
  type: "registry:base";
@@ -3006,6 +3062,12 @@ declare const registryChunkSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3006
3062
  name?: string | undefined;
3007
3063
  homepage?: string | undefined;
3008
3064
  include?: string[] | undefined;
3065
+ pagination?: {
3066
+ total: number;
3067
+ offset: number;
3068
+ limit: number;
3069
+ hasMore: boolean;
3070
+ } | undefined;
3009
3071
  }, {
3010
3072
  $schema?: string | undefined;
3011
3073
  name?: string | undefined;
@@ -3168,6 +3230,12 @@ declare const registryChunkSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3168
3230
  meta?: Record<string, any> | undefined;
3169
3231
  categories?: string[] | undefined;
3170
3232
  })[] | undefined;
3233
+ pagination?: {
3234
+ total: number;
3235
+ offset: number;
3236
+ limit: number;
3237
+ hasMore: boolean;
3238
+ } | undefined;
3171
3239
  }>;
3172
3240
  declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObject<{
3173
3241
  $schema: z.ZodOptional<z.ZodString>;
@@ -3896,6 +3964,22 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
3896
3964
  meta?: Record<string, any> | undefined;
3897
3965
  categories?: string[] | undefined;
3898
3966
  }>]>, "many">>;
3967
+ pagination: z.ZodOptional<z.ZodObject<{
3968
+ total: z.ZodNumber;
3969
+ offset: z.ZodNumber;
3970
+ limit: z.ZodNumber;
3971
+ hasMore: z.ZodBoolean;
3972
+ }, "strip", z.ZodTypeAny, {
3973
+ total: number;
3974
+ offset: number;
3975
+ limit: number;
3976
+ hasMore: boolean;
3977
+ }, {
3978
+ total: number;
3979
+ offset: number;
3980
+ limit: number;
3981
+ hasMore: boolean;
3982
+ }>>;
3899
3983
  }, "strip", z.ZodTypeAny, {
3900
3984
  $schema?: string | undefined;
3901
3985
  name?: string | undefined;
@@ -4058,6 +4142,12 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
4058
4142
  meta?: Record<string, any> | undefined;
4059
4143
  categories?: string[] | undefined;
4060
4144
  })[] | undefined;
4145
+ pagination?: {
4146
+ total: number;
4147
+ offset: number;
4148
+ limit: number;
4149
+ hasMore: boolean;
4150
+ } | undefined;
4061
4151
  }, {
4062
4152
  $schema?: string | undefined;
4063
4153
  name?: string | undefined;
@@ -4220,6 +4310,12 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
4220
4310
  meta?: Record<string, any> | undefined;
4221
4311
  categories?: string[] | undefined;
4222
4312
  })[] | undefined;
4313
+ pagination?: {
4314
+ total: number;
4315
+ offset: number;
4316
+ limit: number;
4317
+ hasMore: boolean;
4318
+ } | undefined;
4223
4319
  }>, {
4224
4320
  $schema?: string | undefined;
4225
4321
  name?: string | undefined;
@@ -4382,6 +4478,12 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
4382
4478
  meta?: Record<string, any> | undefined;
4383
4479
  categories?: string[] | undefined;
4384
4480
  })[] | undefined;
4481
+ pagination?: {
4482
+ total: number;
4483
+ offset: number;
4484
+ limit: number;
4485
+ hasMore: boolean;
4486
+ } | undefined;
4385
4487
  }, {
4386
4488
  $schema?: string | undefined;
4387
4489
  name?: string | undefined;
@@ -4544,6 +4646,12 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
4544
4646
  meta?: Record<string, any> | undefined;
4545
4647
  categories?: string[] | undefined;
4546
4648
  })[] | undefined;
4649
+ pagination?: {
4650
+ total: number;
4651
+ offset: number;
4652
+ limit: number;
4653
+ hasMore: boolean;
4654
+ } | undefined;
4547
4655
  }>, {
4548
4656
  items: ({
4549
4657
  type: "registry:base";
@@ -4706,6 +4814,12 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
4706
4814
  name?: string | undefined;
4707
4815
  homepage?: string | undefined;
4708
4816
  include?: string[] | undefined;
4817
+ pagination?: {
4818
+ total: number;
4819
+ offset: number;
4820
+ limit: number;
4821
+ hasMore: boolean;
4822
+ } | undefined;
4709
4823
  }, {
4710
4824
  $schema?: string | undefined;
4711
4825
  name?: string | undefined;
@@ -4868,6 +4982,12 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
4868
4982
  meta?: Record<string, any> | undefined;
4869
4983
  categories?: string[] | undefined;
4870
4984
  })[] | undefined;
4985
+ pagination?: {
4986
+ total: number;
4987
+ offset: number;
4988
+ limit: number;
4989
+ hasMore: boolean;
4990
+ } | undefined;
4871
4991
  }>, z.ZodObject<{
4872
4992
  $schema: z.ZodOptional<z.ZodString>;
4873
4993
  name: z.ZodString;
@@ -5595,6 +5715,22 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
5595
5715
  meta?: Record<string, any> | undefined;
5596
5716
  categories?: string[] | undefined;
5597
5717
  }>]>, "many">;
5718
+ pagination: z.ZodOptional<z.ZodObject<{
5719
+ total: z.ZodNumber;
5720
+ offset: z.ZodNumber;
5721
+ limit: z.ZodNumber;
5722
+ hasMore: z.ZodBoolean;
5723
+ }, "strip", z.ZodTypeAny, {
5724
+ total: number;
5725
+ offset: number;
5726
+ limit: number;
5727
+ hasMore: boolean;
5728
+ }, {
5729
+ total: number;
5730
+ offset: number;
5731
+ limit: number;
5732
+ hasMore: boolean;
5733
+ }>>;
5598
5734
  }, "strip", z.ZodTypeAny, {
5599
5735
  name: string;
5600
5736
  homepage: string;
@@ -5757,6 +5893,12 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
5757
5893
  })[];
5758
5894
  $schema?: string | undefined;
5759
5895
  include?: string[] | undefined;
5896
+ pagination?: {
5897
+ total: number;
5898
+ offset: number;
5899
+ limit: number;
5900
+ hasMore: boolean;
5901
+ } | undefined;
5760
5902
  }, {
5761
5903
  name: string;
5762
5904
  homepage: string;
@@ -5919,6 +6061,12 @@ declare const registrySchema: z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodObjec
5919
6061
  })[];
5920
6062
  $schema?: string | undefined;
5921
6063
  include?: string[] | undefined;
6064
+ pagination?: {
6065
+ total: number;
6066
+ offset: number;
6067
+ limit: number;
6068
+ hasMore: boolean;
6069
+ } | undefined;
5922
6070
  }>>;
5923
6071
  type Registry = z.infer<typeof registrySchema>;
5924
6072
  declare const registryIndexSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -7191,6 +7339,7 @@ declare const registryResolvedItemsTreeSchema: z.ZodObject<Pick<{
7191
7339
  }>;
7192
7340
  declare const searchResultItemSchema: z.ZodObject<{
7193
7341
  name: z.ZodString;
7342
+ title: z.ZodOptional<z.ZodString>;
7194
7343
  type: z.ZodOptional<z.ZodString>;
7195
7344
  description: z.ZodOptional<z.ZodString>;
7196
7345
  registry: z.ZodString;
@@ -7200,12 +7349,14 @@ declare const searchResultItemSchema: z.ZodObject<{
7200
7349
  name: string;
7201
7350
  addCommandArgument: string;
7202
7351
  type?: string | undefined;
7352
+ title?: string | undefined;
7203
7353
  description?: string | undefined;
7204
7354
  }, {
7205
7355
  registry: string;
7206
7356
  name: string;
7207
7357
  addCommandArgument: string;
7208
7358
  type?: string | undefined;
7359
+ title?: string | undefined;
7209
7360
  description?: string | undefined;
7210
7361
  }>;
7211
7362
  declare const searchResultErrorSchema: z.ZodObject<{
@@ -7237,6 +7388,7 @@ declare const searchResultsSchema: z.ZodObject<{
7237
7388
  }>;
7238
7389
  items: z.ZodArray<z.ZodObject<{
7239
7390
  name: z.ZodString;
7391
+ title: z.ZodOptional<z.ZodString>;
7240
7392
  type: z.ZodOptional<z.ZodString>;
7241
7393
  description: z.ZodOptional<z.ZodString>;
7242
7394
  registry: z.ZodString;
@@ -7246,12 +7398,14 @@ declare const searchResultsSchema: z.ZodObject<{
7246
7398
  name: string;
7247
7399
  addCommandArgument: string;
7248
7400
  type?: string | undefined;
7401
+ title?: string | undefined;
7249
7402
  description?: string | undefined;
7250
7403
  }, {
7251
7404
  registry: string;
7252
7405
  name: string;
7253
7406
  addCommandArgument: string;
7254
7407
  type?: string | undefined;
7408
+ title?: string | undefined;
7255
7409
  description?: string | undefined;
7256
7410
  }>, "many">;
7257
7411
  errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -7270,6 +7424,7 @@ declare const searchResultsSchema: z.ZodObject<{
7270
7424
  name: string;
7271
7425
  addCommandArgument: string;
7272
7426
  type?: string | undefined;
7427
+ title?: string | undefined;
7273
7428
  description?: string | undefined;
7274
7429
  }[];
7275
7430
  pagination: {
@@ -7288,6 +7443,7 @@ declare const searchResultsSchema: z.ZodObject<{
7288
7443
  name: string;
7289
7444
  addCommandArgument: string;
7290
7445
  type?: string | undefined;
7446
+ title?: string | undefined;
7291
7447
  description?: string | undefined;
7292
7448
  }[];
7293
7449
  pagination: {
@@ -7441,4 +7597,4 @@ declare const configJsonSchema: z.ZodObject<{
7441
7597
  }>;
7442
7598
  type ConfigJson = z.infer<typeof configJsonSchema>;
7443
7599
 
7444
- export { type ConfigJson, type Preset, type Registry, type RegistryBaseItem, type RegistryFontItem, type RegistryItem, configJsonSchema, configSchema, iconsSchema, presetSchema, rawConfigSchema, registriesIndexSchema, registriesSchema, registryBaseColorSchema, registryChunkSchema, registryConfigItemSchema, registryConfigSchema, registryIndexSchema, registryItemCommonSchema, registryItemCssSchema, registryItemCssVarsSchema, registryItemEnvVarsSchema, registryItemFileSchema, registryItemFontSchema, registryItemSchema, registryItemTailwindSchema, registryItemTypeSchema, registryResolvedItemsTreeSchema, registrySchema, searchResultErrorSchema, searchResultItemSchema, searchResultsSchema, stylesSchema, workspaceConfigSchema };
7600
+ export { type ConfigJson, type Preset, type Registry, type RegistryBaseItem, type RegistryFontItem, type RegistryItem, configJsonSchema, configSchema, iconsSchema, presetSchema, rawConfigSchema, registriesIndexSchema, registriesSchema, registryBaseColorSchema, registryChunkSchema, registryConfigItemSchema, registryConfigSchema, registryIndexSchema, registryItemCommonSchema, registryItemCssSchema, registryItemCssVarsSchema, registryItemEnvVarsSchema, registryItemFileSchema, registryItemFontSchema, registryItemSchema, registryItemTailwindSchema, registryItemTypeSchema, registryPaginationSchema, registryResolvedItemsTreeSchema, registrySchema, searchResultErrorSchema, searchResultItemSchema, searchResultsSchema, stylesSchema, workspaceConfigSchema };
@@ -1 +1 @@
1
- export{B as configJsonSchema,d as configSchema,s as iconsSchema,A as presetSchema,c as rawConfigSchema,y as registriesIndexSchema,z as registriesSchema,t as registryBaseColorSchema,o as registryChunkSchema,a as registryConfigItemSchema,b as registryConfigSchema,q as registryIndexSchema,m as registryItemCommonSchema,j as registryItemCssSchema,i as registryItemCssVarsSchema,k as registryItemEnvVarsSchema,g as registryItemFileSchema,l as registryItemFontSchema,n as registryItemSchema,h as registryItemTailwindSchema,f as registryItemTypeSchema,u as registryResolvedItemsTreeSchema,p as registrySchema,w as searchResultErrorSchema,v as searchResultItemSchema,x as searchResultsSchema,r as stylesSchema,e as workspaceConfigSchema}from'../chunk-MTWZIHEW.js';
1
+ export{C as configJsonSchema,d as configSchema,t as iconsSchema,B as presetSchema,c as rawConfigSchema,z as registriesIndexSchema,A as registriesSchema,u as registryBaseColorSchema,p as registryChunkSchema,a as registryConfigItemSchema,b as registryConfigSchema,r as registryIndexSchema,m as registryItemCommonSchema,j as registryItemCssSchema,i as registryItemCssVarsSchema,k as registryItemEnvVarsSchema,g as registryItemFileSchema,l as registryItemFontSchema,n as registryItemSchema,h as registryItemTailwindSchema,f as registryItemTypeSchema,o as registryPaginationSchema,v as registryResolvedItemsTreeSchema,q as registrySchema,x as searchResultErrorSchema,w as searchResultItemSchema,y as searchResultsSchema,s as stylesSchema,e as workspaceConfigSchema}from'../chunk-4WBGNKSZ.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadcn",
3
- "version": "4.16.0",
3
+ "version": "4.16.2",
4
4
  "description": "Add components to your apps.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1 +0,0 @@
1
- import {z as z$1}from'zod';var c=z$1.union([z$1.string().refine(e=>e.includes("{name}"),{message:"Registry URL must include {name} placeholder"}),z$1.object({url:z$1.string().refine(e=>e.includes("{name}"),{message:"Registry URL must include {name} placeholder"}),params:z$1.record(z$1.string(),z$1.string()).optional(),headers:z$1.record(z$1.string(),z$1.string()).optional()})]),l=z$1.record(z$1.string().refine(e=>e.startsWith("@"),{message:"Registry names must start with @ (e.g., @v0, @acme)"}),c),s=z$1.object({$schema:z$1.string().optional(),style:z$1.string(),rsc:z$1.coerce.boolean().default(false),tsx:z$1.coerce.boolean().default(true),tailwind:z$1.object({config:z$1.string().optional(),css:z$1.string(),baseColor:z$1.string(),cssVariables:z$1.boolean().default(true),prefix:z$1.string().default("").optional()}),iconLibrary:z$1.string().optional(),rtl:z$1.coerce.boolean().default(false).optional(),menuColor:z$1.enum(["default","inverted","default-translucent","inverted-translucent"]).default("default").optional(),menuAccent:z$1.enum(["subtle","bold"]).default("subtle").optional(),aliases:z$1.object({components:z$1.string(),utils:z$1.string(),ui:z$1.string().optional(),lib:z$1.string().optional(),hooks:z$1.string().optional()}),registries:l.optional()}).strict(),p=s.extend({resolvedPaths:z$1.object({cwd:z$1.string(),tailwindConfig:z$1.string(),tailwindCss:z$1.string(),utils:z$1.string(),components:z$1.string(),lib:z$1.string(),hooks:z$1.string(),ui:z$1.string()})}),I=z$1.record(p),o=z$1.enum(["registry:lib","registry:block","registry:component","registry:ui","registry:hook","registry:page","registry:file","registry:theme","registry:style","registry:item","registry:base","registry:font","registry:example","registry:internal"]),m=z$1.discriminatedUnion("type",[z$1.object({path:z$1.string(),content:z$1.string().optional(),type:z$1.enum(["registry:file","registry:page"]),target:z$1.string()}),z$1.object({path:z$1.string(),content:z$1.string().optional(),type:o.exclude(["registry:file","registry:page"]),target:z$1.string().optional()})]),y=z$1.object({config:z$1.object({content:z$1.array(z$1.string()).optional(),theme:z$1.record(z$1.string(),z$1.any()).optional(),plugins:z$1.array(z$1.string()).optional()}).optional()}),n=z$1.object({theme:z$1.record(z$1.string(),z$1.string()).optional(),light:z$1.record(z$1.string(),z$1.string()).optional(),dark:z$1.record(z$1.string(),z$1.string()).optional()}),a=z$1.lazy(()=>z$1.union([z$1.string(),z$1.array(z$1.union([z$1.string(),z$1.record(z$1.string(),z$1.string())])),z$1.record(z$1.string(),a)])),d=z$1.record(z$1.string(),a),u=z$1.record(z$1.string(),z$1.string()),g=z$1.object({family:z$1.string(),provider:z$1.literal("google"),import:z$1.string(),variable:z$1.string(),weight:z$1.array(z$1.string()).optional(),subsets:z$1.array(z$1.string()).optional(),selector:z$1.string().optional(),dependency:z$1.string().optional()}),r=z$1.object({$schema:z$1.string().optional(),extends:z$1.string().optional(),name:z$1.string(),title:z$1.string().optional(),author:z$1.string().min(2).optional(),description:z$1.string().optional(),dependencies:z$1.array(z$1.string()).optional(),devDependencies:z$1.array(z$1.string()).optional(),registryDependencies:z$1.array(z$1.string()).optional(),files:z$1.array(m).optional(),tailwind:y.optional(),cssVars:n.optional(),css:d.optional(),envVars:u.optional(),meta:z$1.record(z$1.string(),z$1.any()).optional(),docs:z$1.string().optional(),categories:z$1.array(z$1.string()).optional()}),i=z$1.discriminatedUnion("type",[r.extend({type:z$1.literal("registry:base"),config:s.deepPartial().optional()}),r.extend({type:z$1.literal("registry:font"),font:g}),r.extend({type:o.exclude(["registry:base","registry:font"])})]),h=z$1.object({$schema:z$1.string().optional(),name:z$1.string().optional(),homepage:z$1.string().optional(),include:z$1.array(z$1.string()).optional(),items:z$1.array(i).optional()}).refine(e=>e.items!==void 0||e.include!==void 0,{message:"Registry must define at least one of `items` or `include`.",path:["items"]}),f=h.transform(e=>({...e,items:e.items??[]})),C=f.pipe(z$1.object({$schema:z$1.string().optional(),name:z$1.string(),homepage:z$1.string(),include:z$1.array(z$1.string()).optional(),items:z$1.array(i)})),R=z$1.array(i),v=z$1.array(z$1.object({name:z$1.string(),label:z$1.string()})),V=z$1.record(z$1.string(),z$1.record(z$1.string(),z$1.string())),w=z$1.object({inlineColors:z$1.object({light:z$1.record(z$1.string(),z$1.string()),dark:z$1.record(z$1.string(),z$1.string())}),cssVars:n,cssVarsV4:n.optional(),inlineColorsTemplate:z$1.string(),cssVarsTemplate:z$1.string()}),k=r.pick({dependencies:true,devDependencies:true,files:true,tailwind:true,cssVars:true,css:true,envVars:true,docs:true}).extend({fonts:z$1.array(r.extend({type:z$1.literal("registry:font"),font:g})).optional()}),b=z$1.object({name:z$1.string(),type:z$1.string().optional(),description:z$1.string().optional(),registry:z$1.string(),addCommandArgument:z$1.string()}),x=z$1.object({registry:z$1.string(),message:z$1.string()}),z=z$1.object({pagination:z$1.object({total:z$1.number(),offset:z$1.number(),limit:z$1.number(),hasMore:z$1.boolean()}),items:z$1.array(b),errors:z$1.array(x).optional()}),T=z$1.record(z$1.string().regex(/^@[a-zA-Z0-9][a-zA-Z0-9-_]*$/),z$1.string()),A=z$1.array(z$1.object({name:z$1.string(),homepage:z$1.string().optional(),url:z$1.string(),description:z$1.string().optional()})),S=z$1.object({name:z$1.string(),title:z$1.string(),description:z$1.string(),base:z$1.string(),style:z$1.string(),baseColor:z$1.string(),theme:z$1.string(),iconLibrary:z$1.string(),font:z$1.string(),rtl:z$1.coerce.boolean().default(false),menuAccent:z$1.enum(["subtle","bold"]),menuColor:z$1.enum(["default","inverted","default-translucent","inverted-translucent"]),radius:z$1.string()}),$=z$1.object({presets:z$1.array(S)});export{S as A,$ as B,c as a,l as b,s as c,p as d,I as e,o as f,m as g,y as h,n as i,d as j,u as k,g as l,r as m,i as n,f as o,C as p,R as q,v as r,V as s,w as t,k as u,b as v,x as w,z as x,T as y,A as z};