UNPKG

shadcn-vue

Version:
37 lines 3.4 kB
//#region src/preset/preset.d.ts declare const PRESET_BASES: readonly ["reka"]; declare const PRESET_STYLES: readonly ["vega", "nova", "maia", "lyra", "mira", "luma", "sera", "rhea"]; declare const PRESET_BASE_COLORS: readonly ["neutral", "stone", "zinc", "mauve", "olive", "mist", "taupe"]; declare const PRESET_THEMES: readonly ["neutral", "stone", "zinc", "mauve", "olive", "mist", "taupe", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow"]; declare const PRESET_ICON_LIBRARIES: readonly ["lucide", "tabler", "hugeicons", "phosphor", "remixicon"]; declare const PRESET_FONTS: readonly ["inter", "geist-sans", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono", "playfair-display", "oxanium", "manrope", "space-grotesk", "montserrat", "ibm-plex-sans", "source-sans-3", "instrument-sans", "geist-mono", "noto-serif", "roboto-slab", "merriweather", "lora"]; declare const PRESET_FONT_HEADINGS: readonly ["inherit", "inter", "geist-sans", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono", "playfair-display", "oxanium", "manrope", "space-grotesk", "montserrat", "ibm-plex-sans", "source-sans-3", "instrument-sans", "geist-mono", "noto-serif", "roboto-slab", "merriweather", "lora"]; declare const PRESET_CHART_COLORS: readonly ["neutral", "stone", "zinc", "mauve", "olive", "mist", "taupe", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow"]; declare const PRESET_RADII: readonly ["default", "none", "small", "medium", "large"]; declare const PRESET_MENU_ACCENTS: readonly ["subtle", "bold"]; declare const PRESET_MENU_COLORS: readonly ["default", "inverted", "default-translucent", "inverted-translucent"]; interface PresetConfig { base: (typeof PRESET_BASES)[number]; style: (typeof PRESET_STYLES)[number]; baseColor: (typeof PRESET_BASE_COLORS)[number]; theme: (typeof PRESET_THEMES)[number]; chartColor: (typeof PRESET_CHART_COLORS)[number]; iconLibrary: (typeof PRESET_ICON_LIBRARIES)[number]; font: (typeof PRESET_FONTS)[number]; fontHeading: (typeof PRESET_FONT_HEADINGS)[number]; radius: (typeof PRESET_RADII)[number]; menuAccent: (typeof PRESET_MENU_ACCENTS)[number]; menuColor: (typeof PRESET_MENU_COLORS)[number]; } declare const DEFAULT_PRESET_CONFIG: PresetConfig; declare function toBase62(num: number): string; declare function fromBase62(str: string): number; declare function encodePreset(config: Partial<PresetConfig>): string; declare function decodePreset(code: string): PresetConfig | null; declare function isPresetCode(value: string): boolean; declare function isValidPreset(code: string): boolean; declare function generateRandomConfig(): PresetConfig; declare function generateRandomPreset(): string; //#endregion export { DEFAULT_PRESET_CONFIG, PRESET_BASES, PRESET_BASE_COLORS, PRESET_CHART_COLORS, PRESET_FONTS, PRESET_FONT_HEADINGS, PRESET_ICON_LIBRARIES, PRESET_MENU_ACCENTS, PRESET_MENU_COLORS, PRESET_RADII, PRESET_STYLES, PRESET_THEMES, type PresetConfig, decodePreset, encodePreset, fromBase62, generateRandomConfig, generateRandomPreset, isPresetCode, isValidPreset, toBase62 }; //# sourceMappingURL=index.d.ts.map