@studiocms/ui
Version:
The UI library for StudioCMS. Includes the layouts & components we use to build StudioCMS.
28 lines (27 loc) • 2.77 kB
TypeScript
import { z } from 'astro/zod';
export declare const SkeletonSchema: z.ZodUnion<readonly [z.ZodObject<{
variant: z.ZodLiteral<"text">;
class: z.ZodOptional<z.ZodString>;
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">]>>;
animation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
}, z.core.$strip>, z.ZodObject<{
class: z.ZodOptional<z.ZodString>;
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">]>>;
animation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
variant: z.ZodLiteral<"card">;
direction: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"row">, z.ZodLiteral<"column">]>>;
hAlign: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"start">, z.ZodLiteral<"center">, z.ZodLiteral<"end">]>>;
vAlign: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"start">, z.ZodLiteral<"center">, z.ZodLiteral<"end">]>>;
gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
}, z.core.$strip>, z.ZodObject<{
class: z.ZodOptional<z.ZodString>;
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">]>>;
animation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
variant: z.ZodUnion<readonly [z.ZodLiteral<"circle">, z.ZodLiteral<"block">]>;
width: z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>;
height: z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>;
}, z.core.$strip>]>;