mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-07 14:13:58 -05:00
Fix broken types in imported library
This commit is contained in:
66
lib/types/LoadingTypes.ts
Normal file
66
lib/types/LoadingTypes.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
||||
interface LoadingDefaultProps {
|
||||
width?: string | number;
|
||||
height?: string | number;
|
||||
className?: string;
|
||||
animationDuration?: number;
|
||||
stroke?: string;
|
||||
fill?: 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 {
|
||||
width?: string | number;
|
||||
height?: string | number;
|
||||
className?: string;
|
||||
rotationAnimationDuration?: number;
|
||||
growingAnimationDuration?: number;
|
||||
stroke?: string;
|
||||
fill?: 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;
|
||||
}
|
||||
Reference in New Issue
Block a user