react-waitlist
Version:
A customizable waitlist form component for React applications
34 lines (33 loc) • 982 B
TypeScript
import { CSSProperties } from 'react';
import { ThemeConfig } from './types';
/**
* Animation configuration
*/
export interface AnimationConfig {
enabled?: boolean;
duration?: string;
easing?: string;
type?: 'fade' | 'slide' | 'scale' | 'none';
effects?: {
hover?: boolean;
focus?: boolean;
loading?: boolean;
success?: boolean;
};
}
/**
* Default animation configuration
*/
export declare const defaultAnimation: AnimationConfig;
/**
* Get animation styles based on animation configuration and reduced motion preference
*/
export declare const getAnimationStyles: (config?: AnimationConfig, reducedMotion?: boolean) => Record<string, CSSProperties>;
/**
* Generate CSS keyframes for animations
*/
export declare const generateAnimationKeyframes: () => string;
/**
* Get hover effect styles based on theme configuration
*/
export declare const getHoverEffects: (theme: ThemeConfig) => Record<string, CSSProperties>;