mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
moved v1 to subfolder
This commit is contained in:
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
// Type definitions for react-spinkit 1.1.4
|
||||
// Project: https://github.com/KyleAMathews/react-spinkit
|
||||
// Definitions by: Qubo <https://github.com/tkqubo>, Mleko <https://github.com/mleko>, Tom Crockett <https://github.com/pelotom>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
/// <reference types="react" />
|
||||
|
||||
declare namespace spinner {
|
||||
export interface SpinnerProps {
|
||||
/**
|
||||
* Specify spinner to use.
|
||||
*/
|
||||
spinnerName?: 'three-bounce' | 'double-bounce' | 'rotating-plane' | 'folding-cube' | 'wave' | 'wandering-cubes' | 'pulse' | 'chasing-dots' | 'circle' | 'cube-grid' | 'wordpress';
|
||||
/**
|
||||
* Disable the initial fade-in of the spinner.
|
||||
*/
|
||||
noFadeIn?: boolean;
|
||||
/**
|
||||
* Change the default "spinner" className.
|
||||
*/
|
||||
overrideSpinnerClassName?: string;
|
||||
/**
|
||||
* Component className.
|
||||
*/
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export interface Spinner extends React.ComponentClass<SpinnerProps> {
|
||||
}
|
||||
}
|
||||
|
||||
declare const spinner: spinner.Spinner;
|
||||
export = spinner;
|
||||
@@ -0,0 +1,23 @@
|
||||
import * as Spinner from 'react-spinkit';
|
||||
import * as React from 'react';
|
||||
|
||||
// Examples taken from http://kyleamathews.github.io/react-spinkit/
|
||||
const spinners = [
|
||||
// Basic spinners
|
||||
<Spinner spinnerName="three-bounce" />,
|
||||
<Spinner spinnerName="double-bounce" />,
|
||||
<Spinner spinnerName="rotating-plane" />,
|
||||
<Spinner spinnerName="folding-cube" />,
|
||||
<Spinner spinnerName="wave" />,
|
||||
<Spinner spinnerName="wandering-cubes" />,
|
||||
<Spinner spinnerName="pulse" />,
|
||||
<Spinner spinnerName="chasing-dots" />,
|
||||
<Spinner spinnerName="circle" />,
|
||||
<Spinner spinnerName="cube-grid" />,
|
||||
<Spinner spinnerName="wordpress" />,
|
||||
|
||||
// Spinner options
|
||||
<Spinner spinnerName="wordpress" noFadeIn />,
|
||||
<Spinner spinnerName="wordpress" overrideSpinnerClassName="my-class-to-override" />,
|
||||
<Spinner spinnerName="wordpress" className="my-class" />,
|
||||
];
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../../",
|
||||
"jsx": "react",
|
||||
"typeRoots": [
|
||||
"../../"
|
||||
],
|
||||
"types": [],
|
||||
"paths": {
|
||||
"react-spinkit": ["react-spinkit/v1"],
|
||||
"react-spinkit/*": ["react-spinkit/v1/*"]
|
||||
},
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-spinkit-tests.tsx"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user