import type { button } from "../ui.config"; import type colors from "#ray-colors"; import type { ExtractDeepObject, NestedKeyOf, ExtractDeepKey } from "./utils"; import type { AppConfig } from "nuxt/schema"; export type ButtonSize = | keyof typeof button.size | ExtractDeepKey; export type ButtonColor = | keyof typeof button.color | ExtractDeepKey | (typeof colors)[number]; export type ButtonVariant = | keyof typeof button.variant | ExtractDeepKey | NestedKeyOf | NestedKeyOf>; export interface Button { size?: ButtonSize; color?: ButtonColor; variant?: ButtonVariant; }