This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
reactstrap.d.ts
609 lines (445 loc) · 12.8 KB
/
reactstrap.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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
declare module 'reactstrap' {
interface AlertProps {
className?: string
color?: string // default: 'success'
isOpen?: boolean // default: true
toggle?: Function
tag?: Function | string
// Set any of the timeouts to 0 to disable animation
transitionAppearTimeout?: number
transitionEnterTimeout?: number
transitionLeaveTimeout?: number
}
export class Alert extends React.Component<AlertProps, void> {
}
export class UncontrolledAlert extends React.Component<AlertProps , void> {
}
interface BadgeProps {
pill?: any
color?: string
}
export class Badge extends React.Component<BadgeProps, void> {
}
interface BaseCardProps {
tag?: Function | string
className?: string
}
interface CardProps extends BaseCardProps {
inverse?: boolean
color?: string
block?: boolean
}
export class Card extends React.Component<CardProps, void> {
}
export class CardBlock extends React.Component<BaseCardProps, void> {
}
export class CardColumns extends React.Component<BaseCardProps, void> {
}
export class CardDeck extends React.Component<BaseCardProps, void> {
}
export class CardFooter extends React.Component<BaseCardProps, void> {
}
export class CardGroup extends React.Component<BaseCardProps, void> {
}
export class CardHeader extends React.Component<BaseCardProps, void> {
}
export interface CardImgProps extends BaseCardProps {
top?: boolean
bottom?: boolean
}
export class CardImg extends React.Component<CardImgProps, void> {
}
export class CardImgOverlay extends React.Component<BaseCardProps, void> {
}
export class CardLink extends React.Component<BaseCardProps, void> {
}
export class CardSubtitle extends React.Component<BaseCardProps, void> {
}
export class CardText extends React.Component<BaseCardProps, void> {
}
export class CardTitle extends React.Component<BaseCardProps, void> {
}
type ColumnTypes = string | number | boolean | {
size?: string
push?: string | number
pull?: string | number
offset?: string | number
}
interface ColProps {
xs?: ColumnTypes
sm?: ColumnTypes
md?: ColumnTypes
lg?: ColumnTypes
xl?: ColumnTypes
widths?: any[]
}
export class Col extends React.Component<ColProps, void> {
}
interface CollapseProps extends React.HTMLProps<HTMLDivElement> {
isOpen: boolean
navbar?: boolean
delay?: number
onOpened?: Function
onClosed?: Function
}
export class Collapse extends React.Component<CollapseProps, void> {
}
interface ContainerProps {
fluid?: any
}
export class Container extends React.Component<ContainerProps, void> {
}
interface DropdownProps {
disabled?: boolean
dropup?: boolean
group?: boolean
isOpen: boolean
tag?: string // default: 'div'
tether?: any
toggle?: Function
caret?: any
}
export class Dropdown extends React.Component<DropdownProps, void> {
}
interface UncontrolledDropdownProps {
disabled?: boolean
dropup?: boolean
group?: boolean
isOpen?: boolean
tag?: string // default: 'div'
tether?: any
toggle?: Function
caret?: any
}
export class UncontrolledDropdown extends React.Component<UncontrolledDropdownProps, void> {
}
interface DropdownToggleProps {
caret?: boolean
color?: string
className?: string
disabled?: boolean
onClick?: Function
'data-toggle'?: string
'aria-haspopup'?: boolean
// For DropdownToggle usage inside a Nav
nav?: boolean
// Defaults to Button component
tag?: any
size?: string
}
export class DropdownToggle extends React.Component<DropdownToggleProps, void> {
}
interface DropdownMenuProps {
right?: any
}
export class DropdownMenu extends React.Component<DropdownMenuProps, void> {
}
interface DropdownItemProps {
header?: any
disabled?: any
divider?: any
onClick?: Function
}
export class DropdownItem extends React.Component<DropdownItemProps, void> {
}
interface FormProps {
inline?: any
}
export class Form extends React.Component<FormProps, void> {
}
interface FormGroupProps {
row?: any
check?: any
disabled?: any
color?: string
tag?: Function | string
}
export class FormGroup extends React.Component<FormGroupProps, void> {
}
interface LabelProps {
for?: string
}
export class Label extends React.Component<LabelProps, void> {
}
interface InputProps extends React.HTMLProps<HTMLInputElement> {
type?: string
name?: string
id?: string
multiple?: any
placeholder?: string
state?: string
}
export class Input extends React.Component<InputProps, void> {
}
interface InputGroupProps {
tag?: Function | string
size?: string
className?: string
style?: any
}
export class InputGroup extends React.Component<InputGroupProps, void> {
}
interface InputGroupAddOnProps {
tag?: Function | string
className?: string
}
export class InputGroupAddon extends React.Component<InputGroupAddOnProps, void> {
}
interface InputGroupButtonProps {
tag?: Function | string
groupClassName?: string // only used in shorthand
groupAttributes?: any // only used in shorthand
className?: string
}
export class InputGroupButton extends React.Component<InputGroupButtonProps, void> {
}
interface FormTextProps {
color?: string
}
export class FormText extends React.Component<FormTextProps, void> {
}
interface JumbotronProps {
tag?: Function | string
fluid?: boolean
className?: string
}
export class Jumbotron extends React.Component<JumbotronProps, void> {
}
export class ListGroup extends React.Component<void, void> {
}
interface ListGroupItemProps {
color?: string
disabled?: any
active?: any
action?: any
tag?: Function | string
to?: string // For react-router Link elements
href?: string
}
export class ListGroupItem extends React.Component<void, void> {
}
interface MediaProps {
body?: boolean
bottom?: boolean
children?: boolean
className?: string
heading?: boolean
left?: boolean
list?: boolean
middle?: boolean
object?: boolean
right?: boolean
tag?: Function | string
top?: boolean
href?: string
to?: string // For react-router Link elements
placeholder?: any
image?: any
}
export class Media extends React.Component<MediaProps, void> {
}
interface ModalProps {
isOpen: boolean
// boolean to control the state of the popover
toggle: Function
// callback for toggling isOpen in the controlling component
size?: string
// control backdrop, see http://v4-alpha.getbootstrap.com/components/modal/#options
backdrop?: boolean | 'static'
keyboard?: boolean
// zIndex defaults to 1000.
zIndex?: number | string
}
export class Modal extends React.Component<ModalProps, void> {
}
export class ModalHeader extends React.Component<React.HTMLProps<HTMLDivElement>, void> {
}
export class ModalFooter extends React.Component<React.HTMLProps<HTMLDivElement>, void> {
}
export class ModalBody extends React.Component<React.HTMLProps<HTMLDivElement>, void> {
}
interface NavbarProps extends React.HTMLProps<HTMLDivElement> {
light?: boolean
inverse?: boolean
full?: boolean
fixed?: string
color?: string
role?: string
toggleable?: boolean | string
tag?: Function | string
}
export class Navbar extends React.Component<NavbarProps, void> {
}
interface NavbarTogglerProps extends React.HTMLProps<HTMLDivElement> {
type?: string
right?: boolean
left?: boolean
tag?: Function | string
}
export class NavbarToggler extends React.Component<NavbarTogglerProps, void> {
}
interface NavbarBrandProps extends React.HTMLProps<HTMLDivElement> {
tag?: Function | string
to?: string
}
export class NavbarBrand extends React.Component<NavbarBrandProps, void> {
}
interface NavProps extends React.HTMLProps<HTMLDivElement> {
inline?: boolean
disabled?: boolean
tabs?: boolean
pills?: boolean
stacked?: boolean
navbar?: boolean
tag?: Function | string
}
export class Nav extends React.Component<NavProps, void> {
}
interface NavItemProps extends React.HTMLProps<HTMLDivElement> {
tag?: Function | string
to?: string
}
export class NavItem extends React.Component<NavItemProps, void> {
}
interface NavLinkProps extends React.HTMLProps<HTMLDivElement> {
disabled?: boolean
active?: boolean
tag?: Function | string
to?: string // For react-router Link elements
}
export class NavLink extends React.Component<NavLinkProps, void> {
}
interface PaginationProps {
size?: string
}
export class Pagination extends React.Component<PaginationProps, void> {
}
interface PaginationItemProps {
active?: any
disabled?: any
}
export class PaginationItem {
}
interface PaginationLinkProps {
previous?: any
next?: any
href?: string
tag?: Function | string // TODO: Double check that this actually exists?
to?: string // For react-router Link elements
}
export class PaginationLink extends React.Component<PaginationLinkProps, void> {
}
interface PopoverProps extends React.HTMLProps<HTMLDivElement> {
isOpen?: boolean
// boolean to control the state of the popover
toggle?: Function
// callback for toggling isOpen in the controlling component
target: string
// target div ID, popover is attached to this element
tether?: any
// optionally overide tether config http://tether.io/#options
tetherRef?: Function
// function which is passed a reference to the instance of tether for manually `position()`ing
placement?:
'top' |
'bottom' |
'left' |
'right' |
'top left' |
'top center' |
'top right' |
'right top' |
'right middle' |
'right bottom' |
'bottom right' |
'bottom center' |
'bottom left' |
'left top' |
'left middle' |
'left bottom'
}
export class Popover extends React.Component<PopoverProps, void> {
}
interface PopoverTitleProps extends React.HTMLProps<HTMLDivElement> {
}
export class PopoverTitle extends React.Component<PopoverTitle, void> {
}
interface PopoverContentProps extends React.HTMLProps<HTMLDivElement> {
}
export class PopoverContent extends React.Component<PopoverContentProps, void> {
}
interface ProgressProps {
multi?: boolean
bar?: boolean
tag?: string // default 'progress'
value?: string | number // default 0
max?: string | number // default 100
animated?: boolean
striped?: boolean // Typo in docs says 'stripped', huehuehue
color?: string
className?: string
}
export class Progress extends React.Component<ProgressProps, void> {
}
export class Row extends React.Component<void, void> {
}
interface TableProps {
tag?: Function | string
size?: string
bordered?: boolean
striped?: boolean
inverse?: boolean
hover?: boolean
reflow?: boolean
responsive?: boolean
}
export class Table extends React.Component<TableProps, void> {
}
interface TabContentProps extends React.HTMLProps<HTMLDivElement> {
activeTab?: number | string
}
export class TabContent extends React.Component<TabContentProps, void> {
}
interface TabPaneProps extends React.HTMLProps<HTMLDivElement> {
tabId?: number | string
}
export class TabPane extends React.Component<TabPaneProps, void> {
}
interface TooltipProps {
isOpen?: boolean
// boolean to control the state of the tooltip
toggle?: Function
// callback for toggling isOpen in the controlling component
target?: string
// target div ID, popover is attached to this element
tether?: any | boolean
// optionally overide tether config http://tether.io/#options
tetherRef?: Function
// function which is passed a reference to the instance of tether for manually `position()`ing
delay?: {show?: number, hide?: number} | number
// optionally override show/hide delays - default { show: 0, hide: 250 }
autohide?: boolean
// optionally hide tooltip when hovering over tooltip content - default true
placement?:
'top' |
'bottom' |
'left' |
'right' |
'top left' |
'top center' |
'top right' |
'right top' |
'right middle' |
'right bottom' |
'bottom right' |
'bottom center' |
'bottom left' |
'left top' |
'left middle' |
'left bottom'
}
export class Tooltip extends React.Component<TooltipProps, void> {
}
export class UncontrolledTooltip extends React.Component<TooltipProps, void> {
}
}