1 | import * as React from "react";
|
2 | import { AbstractPureComponent2 } from "../../common";
|
3 | import { IntentProps, Props } from "../../common/props";
|
4 | export declare enum SpinnerSize {
|
5 | SMALL = 20,
|
6 | STANDARD = 50,
|
7 | LARGE = 100
|
8 | }
|
9 | export declare type SpinnerProps = ISpinnerProps;
|
10 |
|
11 | export interface ISpinnerProps extends Props, IntentProps {
|
12 | |
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | size?: number;
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | tagName?: keyof JSX.IntrinsicElements;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 | value?: number;
|
37 | }
|
38 | export declare class Spinner extends AbstractPureComponent2<SpinnerProps> {
|
39 | static displayName: string;
|
40 |
|
41 | static readonly SIZE_SMALL = SpinnerSize.SMALL;
|
42 |
|
43 | static readonly SIZE_STANDARD = SpinnerSize.STANDARD;
|
44 |
|
45 | static readonly SIZE_LARGE = SpinnerSize.LARGE;
|
46 | componentDidUpdate(prevProps: SpinnerProps): void;
|
47 | render(): React.ReactElement<{
|
48 | className: string;
|
49 | role: string;
|
50 | }, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
51 | protected validateProps({ className, size }: SpinnerProps): void;
|
52 | /**
|
53 | * Resolve size to a pixel value.
|
54 | * Size can be set by className, props, default, or minimum constant.
|
55 | */
|
56 | private getSize;
|
57 | /** Compute viewbox such that stroked track sits exactly at edge of image frame. */
|
58 | private getViewBox;
|
59 | }
|
60 |
|
\ | No newline at end of file |