shadcn-vue
Version:
Add components to your apps.
1,048 lines (1,043 loc) • 45.4 kB
TypeScript
import { z } from 'zod';
declare const registryItemTypeSchema: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:page", "registry:file", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
declare const registryItemFileSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:file", "registry:page"]>;
target: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}>, z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
target: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}>]>;
declare const registryItemTailwindSchema: z.ZodObject<{
config: z.ZodOptional<z.ZodObject<{
content: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}>;
declare const registryItemCssVarsSchema: z.ZodObject<{
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
light: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
dark: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}>;
declare const registryItemCssSchema: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>;
declare const registryItemSchema: z.ZodObject<{
$schema: z.ZodOptional<z.ZodString>;
extends: z.ZodOptional<z.ZodString>;
name: z.ZodString;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:page", "registry:file", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
title: z.ZodOptional<z.ZodString>;
author: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
files: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:file", "registry:page"]>;
target: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}>, z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
target: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}>]>, "many">>;
tailwind: z.ZodOptional<z.ZodObject<{
config: z.ZodOptional<z.ZodObject<{
content: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}>>;
cssVars: z.ZodOptional<z.ZodObject<{
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
light: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
dark: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}>>;
css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>>;
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
docs: z.ZodOptional<z.ZodString>;
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
extends?: string | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
$schema?: string | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
registryDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
meta?: Record<string, any> | undefined;
docs?: string | undefined;
categories?: string[] | undefined;
}, {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
extends?: string | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
$schema?: string | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
registryDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
meta?: Record<string, any> | undefined;
docs?: string | undefined;
categories?: string[] | undefined;
}>;
type RegistryItem = z.infer<typeof registryItemSchema>;
declare const registrySchema: z.ZodObject<{
name: z.ZodString;
homepage: z.ZodString;
items: z.ZodArray<z.ZodObject<{
$schema: z.ZodOptional<z.ZodString>;
extends: z.ZodOptional<z.ZodString>;
name: z.ZodString;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:page", "registry:file", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
title: z.ZodOptional<z.ZodString>;
author: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
files: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:file", "registry:page"]>;
target: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}>, z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
target: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}>]>, "many">>;
tailwind: z.ZodOptional<z.ZodObject<{
config: z.ZodOptional<z.ZodObject<{
content: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}>>;
cssVars: z.ZodOptional<z.ZodObject<{
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
light: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
dark: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}>>;
css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>>;
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
docs: z.ZodOptional<z.ZodString>;
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
extends?: string | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
$schema?: string | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
registryDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
meta?: Record<string, any> | undefined;
docs?: string | undefined;
categories?: string[] | undefined;
}, {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
extends?: string | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
$schema?: string | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
registryDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
meta?: Record<string, any> | undefined;
docs?: string | undefined;
categories?: string[] | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
name: string;
homepage: string;
items: {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
extends?: string | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
$schema?: string | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
registryDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
meta?: Record<string, any> | undefined;
docs?: string | undefined;
categories?: string[] | undefined;
}[];
}, {
name: string;
homepage: string;
items: {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
extends?: string | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
$schema?: string | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
registryDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
meta?: Record<string, any> | undefined;
docs?: string | undefined;
categories?: string[] | undefined;
}[];
}>;
type Registry = z.infer<typeof registrySchema>;
declare const registryIndexSchema: z.ZodArray<z.ZodObject<{
$schema: z.ZodOptional<z.ZodString>;
extends: z.ZodOptional<z.ZodString>;
name: z.ZodString;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:page", "registry:file", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
title: z.ZodOptional<z.ZodString>;
author: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
files: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:file", "registry:page"]>;
target: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}>, z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
target: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}>]>, "many">>;
tailwind: z.ZodOptional<z.ZodObject<{
config: z.ZodOptional<z.ZodObject<{
content: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}>>;
cssVars: z.ZodOptional<z.ZodObject<{
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
light: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
dark: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}>>;
css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>>;
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
docs: z.ZodOptional<z.ZodString>;
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
extends?: string | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
$schema?: string | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
registryDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
meta?: Record<string, any> | undefined;
docs?: string | undefined;
categories?: string[] | undefined;
}, {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
extends?: string | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
$schema?: string | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
registryDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
meta?: Record<string, any> | undefined;
docs?: string | undefined;
categories?: string[] | undefined;
}>, "many">;
declare const stylesSchema: z.ZodArray<z.ZodObject<{
name: z.ZodString;
label: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
label: string;
}, {
name: string;
label: string;
}>, "many">;
declare const iconsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
declare const registryBaseColorSchema: z.ZodObject<{
inlineColors: z.ZodObject<{
light: z.ZodRecord<z.ZodString, z.ZodString>;
dark: z.ZodRecord<z.ZodString, z.ZodString>;
}, "strip", z.ZodTypeAny, {
light: Record<string, string>;
dark: Record<string, string>;
}, {
light: Record<string, string>;
dark: Record<string, string>;
}>;
cssVars: z.ZodObject<{
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
light: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
dark: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}>;
cssVarsV4: z.ZodOptional<z.ZodObject<{
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
light: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
dark: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}>>;
inlineColorsTemplate: z.ZodString;
cssVarsTemplate: z.ZodString;
}, "strip", z.ZodTypeAny, {
cssVars: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
};
inlineColors: {
light: Record<string, string>;
dark: Record<string, string>;
};
inlineColorsTemplate: string;
cssVarsTemplate: string;
cssVarsV4?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
}, {
cssVars: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
};
inlineColors: {
light: Record<string, string>;
dark: Record<string, string>;
};
inlineColorsTemplate: string;
cssVarsTemplate: string;
cssVarsV4?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
}>;
declare const registryResolvedItemsTreeSchema: z.ZodObject<Pick<{
$schema: z.ZodOptional<z.ZodString>;
extends: z.ZodOptional<z.ZodString>;
name: z.ZodString;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:page", "registry:file", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
title: z.ZodOptional<z.ZodString>;
author: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
files: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:file", "registry:page"]>;
target: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}, {
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}>, z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:example", "registry:internal"]>;
target: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}, {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
}>]>, "many">>;
tailwind: z.ZodOptional<z.ZodObject<{
config: z.ZodOptional<z.ZodObject<{
content: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}, {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}, {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
}>>;
cssVars: z.ZodOptional<z.ZodObject<{
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
light: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
dark: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}, {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}>>;
css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>>>;
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
docs: z.ZodOptional<z.ZodString>;
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "tailwind" | "files" | "css" | "dependencies" | "devDependencies" | "cssVars" | "docs">, "strip", z.ZodTypeAny, {
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
docs?: string | undefined;
}, {
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
docs?: string | undefined;
}>;
declare const configSchema: z.ZodObject<z.objectUtil.extendShape<{
$schema: z.ZodOptional<z.ZodString>;
style: z.ZodString;
typescript: z.ZodDefault<z.ZodBoolean>;
tailwind: z.ZodObject<{
config: z.ZodOptional<z.ZodString>;
css: z.ZodString;
baseColor: z.ZodString;
cssVariables: z.ZodDefault<z.ZodBoolean>;
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
css: string;
baseColor: string;
cssVariables: boolean;
config?: string | undefined;
prefix?: string | undefined;
}, {
css: string;
baseColor: string;
config?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
}>;
aliases: z.ZodObject<{
components: z.ZodString;
composables: z.ZodOptional<z.ZodString>;
utils: z.ZodString;
ui: z.ZodOptional<z.ZodString>;
lib: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
components: string;
utils: string;
ui?: string | undefined;
composables?: string | undefined;
lib?: string | undefined;
}, {
components: string;
utils: string;
ui?: string | undefined;
composables?: string | undefined;
lib?: string | undefined;
}>;
iconLibrary: z.ZodOptional<z.ZodString>;
}, {
resolvedPaths: z.ZodObject<{
cwd: z.ZodString;
tailwindConfig: z.ZodString;
tailwindCss: z.ZodString;
utils: z.ZodString;
components: z.ZodString;
composables: z.ZodString;
lib: z.ZodString;
ui: z.ZodString;
}, "strip", z.ZodTypeAny, {
components: string;
ui: string;
cwd: string;
composables: string;
utils: string;
lib: string;
tailwindConfig: string;
tailwindCss: string;
}, {
components: string;
ui: string;
cwd: string;
composables: string;
utils: string;
lib: string;
tailwindConfig: string;
tailwindCss: string;
}>;
}>, "strict", z.ZodTypeAny, {
tailwind: {
css: string;
baseColor: string;
cssVariables: boolean;
config?: string | undefined;
prefix?: string | undefined;
};
typescript: boolean;
style: string;
aliases: {
components: string;
utils: string;
ui?: string | undefined;
composables?: string | undefined;
lib?: string | undefined;
};
resolvedPaths: {
components: string;
ui: string;
cwd: string;
composables: string;
utils: string;
lib: string;
tailwindConfig: string;
tailwindCss: string;
};
$schema?: string | undefined;
iconLibrary?: string | undefined;
}, {
tailwind: {
css: string;
baseColor: string;
config?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
};
style: string;
aliases: {
components: string;
utils: string;
ui?: string | undefined;
composables?: string | undefined;
lib?: string | undefined;
};
resolvedPaths: {
components: string;
ui: string;
cwd: string;
composables: string;
utils: string;
lib: string;
tailwindConfig: string;
tailwindCss: string;
};
typescript?: boolean | undefined;
$schema?: string | undefined;
iconLibrary?: string | undefined;
}>;
type Config = z.infer<typeof configSchema>;
declare function registryResolveItemsTree(names: z.infer<typeof registryItemSchema>['name'][], config: Config): Promise<{
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
css?: Record<string, string | Record<string, string | Record<string, string>>> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
docs?: string | undefined;
} | null>;
export { type Registry, type RegistryItem, iconsSchema, registryResolveItemsTree as internal_registryResolveItemsTree, registryBaseColorSchema, registryIndexSchema, registryItemCssSchema, registryItemCssVarsSchema, registryItemFileSchema, registryItemSchema, registryItemTailwindSchema, registryItemTypeSchema, registryResolvedItemsTreeSchema, registrySchema, stylesSchema };