mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
84 lines
3.0 KiB
TypeScript
84 lines
3.0 KiB
TypeScript
// Type definitions for halogen 0.2
|
|
// Project: https://github.com/yuanyan/halogen
|
|
// Definitions by: Vincent Rouffiat <https://github.com/steller>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as react from "react";
|
|
|
|
export type VerticalAlign = "baseline" | "length" | "sub" | "super" | "top" | "text-top" | "middle" | "bottom" | "text-bottom" | "initial" | "inherit";
|
|
|
|
export interface HalogenCommonProps {
|
|
loading?: boolean;
|
|
color?: string;
|
|
id?: string;
|
|
className?: string;
|
|
verticalAlign?: VerticalAlign;
|
|
}
|
|
|
|
export interface SizeLoaderProps extends HalogenCommonProps {
|
|
size?: string;
|
|
}
|
|
|
|
export interface MarginLoaderProps<T> extends HalogenCommonProps {
|
|
margin?: T;
|
|
size?: T;
|
|
}
|
|
|
|
export interface RadiusLoaderProps extends MarginLoaderProps<string> {
|
|
height?: string;
|
|
width?: string;
|
|
radius?: string;
|
|
}
|
|
|
|
/**
|
|
* React components
|
|
*/
|
|
export type PulseLoader = react.Component<MarginLoaderProps<string>>;
|
|
export const PulseLoader: react.ComponentClass<MarginLoaderProps<string>>;
|
|
|
|
export type RotateLoader = react.Component<MarginLoaderProps<string>>;
|
|
export const RotateLoader: react.ComponentClass<MarginLoaderProps<string>>;
|
|
|
|
export type BeatLoader = react.Component<MarginLoaderProps<string>>;
|
|
export const BeatLoader: react.ComponentClass<MarginLoaderProps<string>>;
|
|
|
|
export type RiseLoader = react.Component<MarginLoaderProps<string>>;
|
|
export const RiseLoader: react.ComponentClass<MarginLoaderProps<string>>;
|
|
|
|
export type SyncLoader = react.Component<MarginLoaderProps<string>>;
|
|
export const SyncLoader: react.ComponentClass<MarginLoaderProps<string>>;
|
|
|
|
export type GridLoader = react.Component<MarginLoaderProps<string>>;
|
|
export const GridLoader: react.ComponentClass<MarginLoaderProps<string>>;
|
|
|
|
export type ClipLoader = react.Component<SizeLoaderProps>;
|
|
export const ClipLoader: react.ComponentClass<SizeLoaderProps>;
|
|
|
|
export type SquareLoader = react.Component<SizeLoaderProps>;
|
|
export const SquareLoader: react.ComponentClass<SizeLoaderProps>;
|
|
|
|
export type DotLoader = react.Component<SizeLoaderProps>;
|
|
export const DotLoader: react.ComponentClass<SizeLoaderProps>;
|
|
|
|
export type PacmanLoader = react.Component<MarginLoaderProps<number>>;
|
|
export const PacmanLoader: react.ComponentClass<MarginLoaderProps<number>>;
|
|
|
|
export type MoonLoader = react.Component<SizeLoaderProps>;
|
|
export const MoonLoader: react.ComponentClass<SizeLoaderProps>;
|
|
|
|
export type RingLoader = react.Component<SizeLoaderProps>;
|
|
export const RingLoader: react.ComponentClass<SizeLoaderProps>;
|
|
|
|
export type BounceLoader = react.Component<SizeLoaderProps>;
|
|
export const BounceLoader: react.ComponentClass<SizeLoaderProps>;
|
|
|
|
export type SkewLoader = react.Component<SizeLoaderProps>;
|
|
export const SkewLoader: react.ComponentClass<SizeLoaderProps>;
|
|
|
|
export type FadeLoader = react.Component<RadiusLoaderProps>;
|
|
export const FadeLoader: react.ComponentClass<RadiusLoaderProps>;
|
|
|
|
export type ScaleLoader = react.Component<RadiusLoaderProps>;
|
|
export const ScaleLoader: react.ComponentClass<RadiusLoaderProps>;
|