UNPKG

@zeplin/extension-model

Version:

Models exposed to Zeplin extensions

41 lines (40 loc) 1.04 kB
import { SpacingToken } from "./spacingToken.js"; /** * Interface for spacing section data */ export interface SpacingSectionData { name: string; description: string; spacingTokens: any[]; baseTokenId: string | number; } /** * An interface that represents a spacing section. */ export declare class SpacingSection { /** * Name of the spacing section. */ name?: string; /** * Description of the spacing section. */ description?: string; /** * Spacing tokens included in the spacing section. */ spacingTokens: SpacingToken[]; /** * The base value used to define tokens in multiples. */ baseToken?: SpacingToken; static get ALLOWED_FIELDS(): string[]; constructor(sectionData: SpacingSectionData); /** * Creates a SpacingSection instance from a JSON string * * @param json JSON string representing a spacing section * @returns A new SpacingSection instance */ static fromJSON(json: string): SpacingSection; }