@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
60 lines (59 loc) • 3.22 kB
TypeScript
import { z } from 'zod';
export declare const typographyValue: z.ZodObject<{
fontSize: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"0">, z.ZodLiteral<0>]>, z.ZodEffects<z.ZodString, string, string>]>;
lineHeight: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"0">, z.ZodLiteral<0>]>, z.ZodEffects<z.ZodString, string, string>]>>;
fontWeight: z.ZodUnion<[z.ZodEffects<z.ZodNumber, number, number>, z.ZodEffects<z.ZodString, string, string>]>;
fontFamily: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
}, "strip", z.ZodTypeAny, {
fontFamily: string;
fontSize: string | 0;
fontWeight: string | number;
lineHeight?: string | 0 | undefined;
}, {
fontFamily: string;
fontSize: string | 0;
fontWeight: string | number;
lineHeight?: string | 0 | undefined;
}>;
export declare const typographyToken: z.ZodObject<z.objectUtil.extendShape<{
$description: z.ZodOptional<z.ZodString>;
$deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
}, {
$value: z.ZodUnion<[z.ZodObject<{
fontSize: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"0">, z.ZodLiteral<0>]>, z.ZodEffects<z.ZodString, string, string>]>;
lineHeight: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"0">, z.ZodLiteral<0>]>, z.ZodEffects<z.ZodString, string, string>]>>;
fontWeight: z.ZodUnion<[z.ZodEffects<z.ZodNumber, number, number>, z.ZodEffects<z.ZodString, string, string>]>;
fontFamily: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
}, "strip", z.ZodTypeAny, {
fontFamily: string;
fontSize: string | 0;
fontWeight: string | number;
lineHeight?: string | 0 | undefined;
}, {
fontFamily: string;
fontSize: string | 0;
fontWeight: string | number;
lineHeight?: string | 0 | undefined;
}>, 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 | {
fontFamily: string;
fontSize: string | 0;
fontWeight: string | number;
lineHeight?: string | 0 | undefined;
};
$type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
$description?: string | undefined;
$deprecated?: string | boolean | undefined;
}, {
$value: string | {
fontFamily: string;
fontSize: string | 0;
fontWeight: string | number;
lineHeight?: string | 0 | undefined;
};
$type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
$description?: string | undefined;
$deprecated?: string | boolean | undefined;
}>;