/** * SekiUI Type Definitions * Central export point for all type definitions across components and services */ export interface SekiButtonProps { disabled?: boolean; size?: 'sm' | 'md' | 'lg' | 'icon-sm' | 'icon' | 'icon-lg'; type?: 'button' | 'submit' | 'reset'; variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link'; ariaLabel?: string; } export interface SekiFieldProps { invalid?: boolean; orientation?: 'vertical' | 'horizontal' | 'responsive'; } export interface SekiInputProps { type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date'; placeholder?: string; value?: string; disabled?: boolean; readonly?: boolean; required?: boolean; minLength?: number; maxLength?: number; pattern?: string; ariaLabel?: string; ariaDescribedBy?: string; } export interface SekiSkeletonProps { count?: number; width?: string | number; height?: string | number; circle?: boolean; } export interface SekiSwitchProps { checked?: boolean; disabled?: boolean; name?: string; value?: string; ariaLabel?: string; ariaDescribedBy?: string; } export type TooltipSide = 'top' | 'right' | 'bottom' | 'left'; export interface TooltipShowDetail { side: TooltipSide; } export interface TooltipHideDetail { side: TooltipSide; } export interface TooltipPositionedDetail { x: number; y: number; side: TooltipSide; } export interface CustomEventDetail { [key: string]: any; } export type ClassValue = string | undefined | null | false | { [key: string]: boolean; }; export type DataAttributeValue = string | number | boolean | null | undefined; /** * Type guard to check if a value is a valid sidebar variant */ export declare function isSidebarVariant(value: any): value is 'sidebar' | 'floating' | 'inset'; /** * Type guard to check if a value is a valid collapse mode */ export declare function isCollapseMode(value: any): value is 'offcanvas' | 'icon' | 'none'; /** * Type guard to check if a value is a valid button size */ export declare function isButtonSize(value: any): value is 'sm' | 'md' | 'lg' | 'icon-sm' | 'icon' | 'icon-lg'; /** * Type guard to check if a value is a valid button variant */ export declare function isButtonVariant(value: any): value is 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link'; /** * Type guard to check if a value is a valid tooltip side */ export declare function isTooltipSide(value: any): value is TooltipSide; /** * Create a partial type (all properties optional) */ export type Partial = { [P in keyof T]?: T[P]; }; /** * Create a readonly type */ export type Readonly = { readonly [P in keyof T]: T[P]; }; /** * Create a required type (all properties required) */ export type Required = { [P in keyof T]-?: T[P]; }; /** * Create a record type */ export type Record = { [P in K]: T; };