UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

52 lines (51 loc) 2.92 kB
import { z } from 'zod'; export declare const borderValue: z.ZodObject<{ color: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>; style: z.ZodEnum<["solid", "dashed", "dotted", "double", "groove", "ridge", "outset", "inset"]>; width: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"0">, z.ZodLiteral<0>]>, z.ZodEffects<z.ZodString, string, string>]>; }, "strip", z.ZodTypeAny, { width: string | 0; color: string; style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset"; }, { width: string | 0; color: string; style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset"; }>; export declare const borderToken: z.ZodObject<z.objectUtil.extendShape<{ $description: z.ZodOptional<z.ZodString>; $deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>; }, { $value: z.ZodUnion<[z.ZodObject<{ color: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>; style: z.ZodEnum<["solid", "dashed", "dotted", "double", "groove", "ridge", "outset", "inset"]>; width: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"0">, z.ZodLiteral<0>]>, z.ZodEffects<z.ZodString, string, string>]>; }, "strip", z.ZodTypeAny, { width: string | 0; color: string; style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset"; }, { width: string | 0; color: string; style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset"; }>, z.ZodEffects<z.ZodString, string, string>]>; $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">; }>, "strict", z.ZodTypeAny, { $value: string | { width: string | 0; color: string; style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset"; }; $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange"; $description?: string | undefined; $deprecated?: string | boolean | undefined; }, { $value: string | { width: string | 0; color: string; style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset"; }; $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange"; $description?: string | undefined; $deprecated?: string | boolean | undefined; }>;