@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
60 lines (59 loc) • 2.48 kB
TypeScript
import { z } from 'zod';
export declare const dimensionToken: z.ZodObject<z.objectUtil.extendShape<{
$description: z.ZodOptional<z.ZodString>;
$deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
}, {
$value: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"0">, z.ZodLiteral<0>]>, z.ZodEffects<z.ZodString, string, string>]>;
$type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
$extensions: z.ZodOptional<z.ZodObject<{
'org.primer.figma': z.ZodObject<{
collection: z.ZodEffects<z.ZodString, string, string>;
scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
group: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
collection: string;
scopes: string[];
group?: string | undefined;
}, {
collection: string;
scopes: string[];
group?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
'org.primer.figma': {
collection: string;
scopes: string[];
group?: string | undefined;
};
}, {
'org.primer.figma': {
collection: string;
scopes: string[];
group?: string | undefined;
};
}>>;
}>, "strict", z.ZodTypeAny, {
$value: string | 0;
$type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
$description?: string | undefined;
$deprecated?: string | boolean | undefined;
$extensions?: {
'org.primer.figma': {
collection: string;
scopes: string[];
group?: string | undefined;
};
} | undefined;
}, {
$value: string | 0;
$type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "gradient" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
$description?: string | undefined;
$deprecated?: string | boolean | undefined;
$extensions?: {
'org.primer.figma': {
collection: string;
scopes: string[];
group?: string | undefined;
};
} | undefined;
}>;