UNPKG

claritykit-svelte

Version:

A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility

52 lines 1.75 kB
/** * Keyboard Navigation Test Utilities for Therapeutic Components * * Comprehensive testing suite for keyboard accessibility validation specifically * designed for ADHD-focused therapeutic components with enhanced requirements. */ export interface KeyboardTestConfig { enableVirtualFocus: boolean; simulateUserDelay: boolean; testUserDelay: number; testTabSequence: boolean; testAriaAnnouncements: boolean; testFocusTrapping: boolean; testEscapeHandling: boolean; testHelpSystem: boolean; testCrisisMode: boolean; validateAdhdPatterns: boolean; } export interface KeyboardTestResult { passed: boolean; component: string; testType: string; issues: KeyboardIssue[]; adhdCompliance: AdhdComplianceResult; recommendations: string[]; timeToComplete: number; } export interface KeyboardIssue { severity: 'error' | 'warning' | 'info'; type: 'focus' | 'activation' | 'navigation' | 'announcement' | 'timing' | 'adhd-specific'; element: string; description: string; expectedBehavior: string; actualBehavior: string; wcagCriterion?: string; adhdImpact?: 'high' | 'medium' | 'low'; } export interface AdhdComplianceResult { focusManagement: boolean; cognitiveLoadReduction: boolean; timeFlexibility: boolean; clearFeedback: boolean; errorRecovery: boolean; helpSystem: boolean; escapeRoutes: boolean; score: number; } /** * Run comprehensive keyboard navigation tests for therapeutic component */ export declare function testTherapeuticKeyboardNav(component: HTMLElement, componentType: string, config?: Partial<KeyboardTestConfig>): Promise<KeyboardTestResult>; //# sourceMappingURL=keyboard-navigation-test.d.ts.map