/** * Divider Component * * SwiftUI-inspired Divider component for visual separation between content. * Simple, clean line separator with customizable styling. */ import type { ModifiableComponentWithModifiers } from '@tachui/core'; import type { Signal } from '@tachui/core'; import type { ComponentProps, DOMNode } from '@tachui/core'; import type { ColorAssetProxy } from '@tachui/core/assets'; import type { CloneableComponent, CloneOptions } from '@tachui/core/runtime/types'; /** * Divider component properties */ export interface DividerProps extends ComponentProps { color?: string | Signal | ColorAssetProxy; thickness?: number | Signal; length?: number | string | Signal; orientation?: 'horizontal' | 'vertical'; margin?: number | Signal; style?: 'solid' | 'dashed' | 'dotted'; opacity?: number | Signal; } /** * Default divider theme */ export interface DividerTheme { colors: { default: string; light: string; medium: string; heavy: string; primary: string; secondary: string; subtle: string; prominent: string; }; thickness: { thin: number; medium: number; thick: number; }; spacing: { small: number; medium: number; large: number; }; } export declare const defaultDividerTheme: DividerTheme; /** * Divider component implementation */ export declare class DividerComponent implements CloneableComponent { readonly type: "component"; readonly id: string; readonly props: DividerProps; mounted: boolean; cleanup: (() => void)[]; private theme; constructor(props: DividerProps); private resolveValue; private getBaseStyles; render(): DOMNode; /** * Cleanup resources */ dispose(): void; clone(options?: CloneOptions): this; shallowClone(): this; deepClone(): this; } /** * Create a Divider component */ export declare function Divider(props?: DividerProps): ModifiableComponentWithModifiers; /** * Divider utility functions */ export declare const DividerUtils: { /** * Create a horizontal divider */ horizontal(props?: Omit): ModifiableComponentWithModifiers; /** * Create a vertical divider */ vertical(lengthOrProps?: number | string | Omit, thickness?: number): ModifiableComponentWithModifiers; /** * Create a thin divider */ thin(color?: string): ModifiableComponentWithModifiers; /** * Create a medium divider */ medium(color?: string): ModifiableComponentWithModifiers; /** * Create a thick divider */ thick(color?: string): ModifiableComponentWithModifiers; /** * Create a dashed divider */ dashed(color?: string, thickness?: number): ModifiableComponentWithModifiers; /** * Create a dotted divider */ dotted(color?: string, thickness?: number): ModifiableComponentWithModifiers; /** * Create a subtle divider */ subtle(color?: string): ModifiableComponentWithModifiers; /** * Create a prominent divider */ prominent(color?: string): ModifiableComponentWithModifiers; }; /** * Divider styles utility */ export declare const DividerStyles: { theme: DividerTheme; colors: { primary: string; success: string; warning: string; danger: string; }; thin: (color?: string) => { thickness: number; color: string | undefined; }; medium: (color?: string) => { thickness: number; color: string | undefined; }; thick: (color?: string) => { thickness: number; color: string | undefined; }; createTheme: (overrides: Partial) => DividerTheme; primary: (color?: string) => ModifiableComponentWithModifiers; secondary: (color?: string) => ModifiableComponentWithModifiers; subtle: (color?: string) => ModifiableComponentWithModifiers; prominent: (color?: string) => ModifiableComponentWithModifiers; }; //# sourceMappingURL=Divider.d.ts.map