import type { Awaitable } from './utils' import type { CSSProperties } from 'vue' export type ComponentVariant = 'primary' | 'error' | 'warning' | 'success' export type ComponentVariantWithDefault = ComponentVariant | 'default' export type ComponentSize = 'sm' | 'md' | 'lg' export type ComponentSizeWithXs = ComponentSize | 'xs' export type ComponentSizeWithXxs = ComponentSizeWithXs | 'xxs' export type ComponentShape = 'default' | 'square' | 'rounded' export type ComponentBreakpointKeys = 'xs' | 'sm' | 'md' | 'lg' | 'xl' export type ComponentBreakpoint = Record export type ComponentAs = string | object export type ComponentText = string | number | undefined | null export type ComponentValue = string | number export type ComponentClass = string | any[] | Record export type ComponentStyle = CSSProperties | string export type ComponentAlign = 'left' | 'center' | 'right' export type ComponentDirection = 'horizontal' | 'vertical' export type BasePosition = 'top' | 'bottom' | 'left' | 'right' export type ComponentPosition = | Position | `${Position}-start` | `${Position}-end` export type ResponsiveValue = T | Partial> export interface ComponentOption { label: ComponentText value: ComponentValue disabled?: boolean } export interface ComponentOptionWithDescription extends ComponentOption { description?: ComponentText } export type ComponentBeforeChange = (value: T) => Awaitable export type ComponentDateTimeValue = number | string | Date | null