-
Notifications
You must be signed in to change notification settings - Fork 530
/
Copy pathindex.d.ts
310 lines (309 loc) · 7.33 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
import {
ButtonHTMLAttributes,
ComponentClass,
CSSProperties,
FunctionComponent,
ReactNode
} from 'react'
import { DefaultTheme } from 'styled-components'
import { IcoMoonType } from './src/Icons/Icomoon'
import { ImageType } from './src/Images/Images'
import { CoinType, WalletCurrencyType } from '@core/types'
import { BannerType as BType } from './src/Banners'
export type AllCoinsType = WalletCurrencyType | 'STX'
export const Badge: FunctionComponent<any>
export const Banner: FunctionComponent<any>
export const BannerType: typeof BType
export const Box: FunctionComponent<any>
export const BlockchainLoader: FunctionComponent<{
width?: string
height?: string
}>
export const Button: FunctionComponent<
{
'data-e2e': string
nature?:
| 'copy'
| 'dark'
| 'dark-grey'
| 'empty-secondary'
| 'empty'
| 'empty-blue'
| 'empty-red'
| 'empty-purple'
| 'grey400'
| 'green'
| 'grey800'
| 'light'
| 'light-red'
| 'primary'
| 'purple'
| 'received'
| 'secondary'
| 'sent'
| 'success'
| 'transferred'
| 'warning'
| 'white-blue'
| 'white-transparent'
bold?: boolean
capitalize?: boolean
className?: string
disabled?: boolean
fullwidth?: boolean
height?: string
jumbo?: boolean
margin?: string
onClick?: () => void
padding?: string
rounded?: boolean
size?: string
small?: boolean
style?: CSSProperties
uppercase?: boolean
width?: string
} & ButtonHTMLAttributes<{}>
>
export const Carousel: FunctionComponent<{
height: number
arrows: boolean
chips: boolean
}>
export const ComponentDropdown: ComponentClass<{
callback?: () => void
color?: string
components: Array<JSX.Element | boolean>
down?: boolean
forceSelected?: boolean
opened?: boolean
onClick?: () => void
margin?: string
selectedComponent?: JSX.Element
textAlign?: string
toggleOnCallback?: boolean
uppercase?: boolean
width?: string
}>
export function Color(color: keyof DefaultTheme): DefaultTheme[keyof DefaultTheme]
export function isKnownColor(color: keyof DefaultTheme): boolean
export const DateInput: FunctionComponent<{}>
export const FontGlobalStyles: FunctionComponent<{}>
export const FlatLoader: FunctionComponent<{
width?: string
height?: string
style?: CSSProperties
}>
export const HeartbeatLoader: FunctionComponent<{
width?: string
height?: string
color?: keyof DefaultTheme
}>
export const Icon: FunctionComponent<{
className?: string
name: keyof IcoMoonType | AllCoinsType
weight?: number
size?: string
cursor?: boolean
color?: keyof DefaultTheme | string
style?: CSSProperties
onClick?: () => void
role?: 'button'
}>
export const ActiveRewardsIcon: FunctionComponent<{ coin: string }>
export const CoinAccountIcon: FunctionComponent<{
accountType: 'CUSTODIAL' | 'EXCHANGE' | 'INTEREST' | 'STAKING' | 'ACCOUNT' | 'ACTIVE'
coin: AllCoinsType
style?: CSSProperties
}>
export const IconButton: FunctionComponent<
{
'data-e2e': string
nature?:
| 'copy'
| 'dark'
| 'dark-grey'
| 'empty-secondary'
| 'empty'
| 'grey400'
| 'green'
| 'light'
| 'primary'
| 'purple'
| 'received'
| 'secondary'
| 'sent'
| 'success'
| 'transferred'
| 'warning'
| 'white-blue'
| 'white-transparent'
bold?: boolean
capitalize?: boolean
className?: string
disabled?: boolean
fullwidth?: boolean
height?: string
jumbo?: boolean
margin?: string
name: keyof IcoMoonType | AllCoinsType
onClick?: () => void
padding?: string
rounded?: boolean
small?: boolean
style?: CSSProperties
uppercase?: boolean
width?: string
} & ButtonHTMLAttributes<{}>
>
export const IconGlobalStyles: FunctionComponent<{}>
export const Image: FunctionComponent<{
name: keyof ImageType
srcset?: {
[key in keyof ImageType]?: '1x' | '2x' | '3x'
}
width?: string
height?: string
color?: string
size?: string
style?: CSSProperties
}>
export const Link: FunctionComponent<{
altFont?: boolean
weight?: number
size?: string
color?: keyof DefaultTheme
uppercase?: boolean
capitalize?: boolean
bold?: boolean
href?: string
target?: string
rel?: string
style?: CSSProperties
onClick?: (e?: KeyboardEvent) => void
}>
export const Modal: FunctionComponent<{
children: ReactNode
size?: '' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge'
type?: 'tray' | 'flyout'
position?: number
total?: number
width?: number
isLast?: boolean
dataE2e?: string
style?: CSSProperties
doNotHide?: boolean
}>
export const ModalBody: FunctionComponent<{
loading?: boolean
}>
export const ModalHeader: FunctionComponent<{
closeButton?: boolean
onClose?: () => void
icon?: keyof IcoMoonType | AllCoinsType
}>
export const ModalFooter: FunctionComponent<{
align: 'left' | 'right' | 'center' | 'spaced'
}>
export function Palette(theme: string): DefaultTheme
export const Separator: FunctionComponent<{}>
export const SkeletonCircle: FunctionComponent<{
width?: string
height?: string
bgColor?: keyof DefaultTheme
}>
export const SkeletonRectangle: FunctionComponent<{
width?: string
height?: string
bgColor?: keyof DefaultTheme
}>
export const SpinningLoader: FunctionComponent<{
width?: string
height?: string
borderWidth?: string
}>
export const TabMenu: FunctionComponent<{
style?: CSSProperties
}>
export const TabMenuItem: FunctionComponent<{
activeClassName?: string
role?: string
disabled?: boolean
onClick?: () => void
selected?: boolean
width?: string
}>
export const Table: FunctionComponent<{
style?: CSSProperties
}>
export const TableCell: FunctionComponent<{
onClick?: () => void
width?: string
hideMobile?: boolean
style?: CSSProperties
}>
export const TableHeader: FunctionComponent<{}>
export const TableRow: FunctionComponent<{}>
export const Text: FunctionComponent<{
color?: keyof DefaultTheme | string
size?: string
weight?: number
style?: CSSProperties
uppercase?: boolean
lineHeight?: string
capitalize?: boolean
italic?: boolean
altFont?: boolean
cursor?: string
opacity?: string
onClick?: () => void
}>
export const TextGroup: FunctionComponent<{
nowrap?: boolean
inline?: boolean
style?: CSSProperties
}>
enum ToastNatureType {
ERROR = 'error',
INFO = 'info',
SUCCESS = 'success',
WARN = 'warn'
}
export const Toast: FunctionComponent<{
children: ReactNode
coin?: CoinType
nature?: ToastNatureType
onClose: () => void
persist?: boolean
timeout?: number
}>
export const Tooltip: FunctionComponent<{
id: string
offset?: any
maxWidth?: string
place?: 'top' | 'right' | 'bottom' | 'left'
}>
export const TooltipHost: FunctionComponent<{ id: string; value?: string }>
export const TooltipIcon: FunctionComponent<{
color?: keyof DefaultTheme
name: keyof IcoMoonType | AllCoinsType
size?: string
}>
export const CheckBoxInput: FunctionComponent<{
name: string
checked?: boolean
disabled?: boolean
onClick?: () => void
onChange?: () => void
}>
export const SelectInput: FunctionComponent<{
disabled?: boolean
elements?: Array<any>
grouped?: boolean
label?: string | unknown
onBlur?: () => void
onChange?: (unknown) => void
onFocus?: () => void
opened?: boolean
searchEnabled?: boolean
value: string | boolean | number
}>