Files
MattrixwvReactComponents/lib/types/LoadingTypes.ts

74 lines
1.4 KiB
TypeScript

/* eslint-disable @typescript-eslint/no-empty-object-type */
interface LoadingDefaultProps {
size?: number;
width?: number;
height?: number;
className?: string;
animationDuration?: number;
color?: string;
stroke?: string;
fill?: string;
ariaLabel?: string;
}
//Spinners
export interface LoadingSpinnerProps extends LoadingDefaultProps {
trackClassName?: string;
trackStroke?: string;
trackFill?: string;
}
export interface RubberLoadingSpinnerProps extends LoadingSpinnerProps {
stretchDuration?: number;
}
//Dots
export interface LoadingDotsProps extends LoadingDefaultProps {
}
export interface CirclePulsingDotsProps {
size?: number;
width?: number;
height?: number;
className?: string;
rotationAnimationDuration?: number;
growingAnimationDuration?: number;
color?: string;
stroke?: string;
fill?: string;
ariaLabel?: string;
}
export interface CircleSpinningDotProps extends LoadingDefaultProps {
trackClassName?: string;
trackStroke?: string;
trackFill?: string;
}
//Bars
export interface LoadingBarsProps extends LoadingDefaultProps {
}
//Blocks
export interface LoadingBlocksProps extends LoadingDefaultProps {
}
//Pulses
export interface LoadingPulseProps extends LoadingDefaultProps {
}
//Various
export interface LoadingVariousProps extends LoadingDefaultProps {
}
export interface LoadingWifiProps extends LoadingVariousProps {
fadeDuration?: number;
}