1 | import { ComponentType, ReactElement as ElementType, SVGProps, ReactSVGElement, ReactElement } from 'react';
|
2 | import { CSSObject } from '@emotion/serialize';
|
3 |
|
4 | import { colors, spacing } from '../theme';
|
5 | import { CommonProps, GroupTypeBase, OptionTypeBase } from '../types';
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export function CrossIcon(props?: SVGProps<SVGElement>): ReactSVGElement;
|
12 | export function DownChevron(props?: SVGProps<SVGElement>): ReactSVGElement;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export type IndicatorProps<
|
19 | OptionType extends OptionTypeBase,
|
20 | IsMulti extends boolean,
|
21 | GroupType extends GroupTypeBase<OptionType> = GroupTypeBase<OptionType>
|
22 | > = CommonProps<OptionType, IsMulti, GroupType> & {
|
23 |
|
24 | children: ElementType;
|
25 |
|
26 | innerProps: any;
|
27 |
|
28 | isFocused: boolean;
|
29 |
|
30 | isRtl: boolean;
|
31 |
|
32 | isDisabled: boolean;
|
33 | };
|
34 |
|
35 | export type baseCSS = (props: IndicatorProps<any, boolean>) => CSSObject;
|
36 |
|
37 | export const dropdownIndicatorCSS: baseCSS;
|
38 | export function DropdownIndicator<
|
39 | OptionType extends OptionTypeBase,
|
40 | IsMulti extends boolean,
|
41 | GroupType extends GroupTypeBase<OptionType> = GroupTypeBase<OptionType>
|
42 | // tslint:disable-next-line:no-unnecessary-generics
|
43 | >(props: IndicatorProps<OptionType, IsMulti, GroupType>): ReactElement;
|
44 |
|
45 | export const clearIndicatorCSS: baseCSS;
|
46 | export function ClearIndicator<
|
47 | OptionType extends OptionTypeBase,
|
48 | IsMulti extends boolean,
|
49 | GroupType extends GroupTypeBase<OptionType> = GroupTypeBase<OptionType>
|
50 | // tslint:disable-next-line:no-unnecessary-generics
|
51 | >(props: IndicatorProps<OptionType, IsMulti, GroupType>): ReactElement;
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | export interface SeparatorState {
|
58 | isDisabled: boolean;
|
59 | }
|
60 |
|
61 | export function indicatorSeparatorCSS(state: SeparatorState): CSSObject;
|
62 |
|
63 | export function IndicatorSeparator<
|
64 | OptionType extends OptionTypeBase,
|
65 | IsMulti extends boolean,
|
66 | GroupType extends GroupTypeBase<OptionType> = GroupTypeBase<OptionType>
|
67 | // tslint:disable-next-line:no-unnecessary-generics
|
68 | >(props: IndicatorProps<OptionType, IsMulti, GroupType>): ReactElement;
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | export function loadingIndicatorCSS(state: { isFocused: boolean; size: number }): CSSObject;
|
75 |
|
76 |
|
77 | export type LoadingIconProps<
|
78 | OptionType extends OptionTypeBase,
|
79 | IsMulti extends boolean,
|
80 | GroupType extends GroupTypeBase<OptionType> = GroupTypeBase<OptionType>
|
81 | > = {
|
82 |
|
83 | innerProps: any;
|
84 |
|
85 | isFocused: boolean;
|
86 |
|
87 | isRtl: boolean;
|
88 | } & CommonProps<OptionType, IsMulti, GroupType> & {
|
89 |
|
90 | size: number;
|
91 | };
|
92 |
|
93 | export type LoadingIndicatorProps<
|
94 | OptionType extends OptionTypeBase,
|
95 | IsMulti extends boolean,
|
96 | GroupType extends GroupTypeBase<OptionType> = GroupTypeBase<OptionType>
|
97 | > = {
|
98 |
|
99 | innerProps: any;
|
100 |
|
101 | isFocused: boolean;
|
102 |
|
103 | isRtl: boolean;
|
104 | } & CommonProps<OptionType, IsMulti, GroupType> & {
|
105 |
|
106 | size: number;
|
107 | };
|
108 |
|
109 | export function LoadingIndicator<
|
110 | OptionType extends OptionTypeBase,
|
111 | IsMulti extends boolean,
|
112 | GroupType extends GroupTypeBase<OptionType> = GroupTypeBase<OptionType>
|
113 | // tslint:disable-next-line:no-unnecessary-generics
|
114 | >(props: LoadingIndicatorProps<OptionType, IsMulti, GroupType>): ReactElement;
|
115 |
|