-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
/
index.d.ts
2293 lines (1927 loc) · 65.3 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
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
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Type definitions for "material-ui" v1.0.0-beta.2
* Project: https://github.com/callemall/material-ui/
* TypeScript Version: 2.4
*/
///<reference types="react" />
///<reference types="enzyme" />
declare namespace MaterialUI {
/**
* Component exposed by `material-ui` are usually wrapped
* with the `withStyles` HOC and allow customization via
* the following props:
*
* - `className`
* - `classes`
* - `style`
*/
interface MaterialComponentProps<StyleClasses> {
className?: string;
classes?: StyleClasses;
style?: Partial<React.CSSProperties>;
}
class Component<P, C = Object> extends React.Component<
P & MaterialComponentProps<C>
> {}
interface InputEventEmitter<T> {
onBlur: React.ReactEventHandler<T>;
onChange: React.ReactEventHandler<T>;
onClean: React.ReactEventHandler<T>;
onDirty: React.ReactEventHandler<T>;
onFocus: React.ReactEventHandler<T>;
onKeyDown: React.ReactEventHandler<T>;
onKeyUp: React.ReactEventHandler<T>;
}
/**
* Utilies types based on:
* https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-307871458
*/
type Diff<T extends string, U extends string> = ({ [P in T]: P } &
{ [P in U]: never } & { [x: string]: never })[T];
type Omit<T, K extends keyof T> = { [P in Diff<keyof T, K>]: T[P] };
}
declare namespace MaterialUI.PropTypes {
type Alignment = 'inherit' | 'left' | 'center' | 'right' | 'justify';
type Color = 'inherit' | 'primary' | 'accent' | 'default';
type Margin = 'none' | 'dense' | 'normal';
}
declare module 'material-ui' {
export { default as AppBar } from 'material-ui/AppBar';
export { default as Avatar } from 'material-ui/Avatar';
export { default as Badge } from 'material-ui/Badge';
export {
default as BottomNavigation,
BottomNavigationButton,
} from 'material-ui/BottomNavigation';
export { default as Button } from 'material-ui/Button';
export {
default as Card,
CardActions,
CardContent,
CardHeader,
CardMedia,
} from 'material-ui/Card';
export { default as Checkbox } from 'material-ui/Checkbox';
export { default as Chip } from 'material-ui/Chip';
export {
default as Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
} from 'material-ui/Dialog';
export { default as Divider } from 'material-ui/Divider';
export { default as Drawer } from 'material-ui/Drawer';
export {
FormControl,
FormGroup,
FormLabel,
FormHelperText,
FormControlLabel,
} from 'material-ui/Form';
export { default as Hidden } from 'material-ui/Hidden';
export { default as Icon } from 'material-ui/Icon';
export { default as IconButton } from 'material-ui/IconButton';
export { default as Input, InputLabel } from 'material-ui/Input';
export { default as Grid } from 'material-ui/Grid';
export {
default as List,
ListItem,
ListItemAvatar,
ListItemIcon,
ListItemSecondaryAction,
ListItemText,
ListSubheader,
} from 'material-ui/List';
export { default as Menu, MenuItem, MenuList } from 'material-ui/Menu';
export { default as Paper } from 'material-ui/Paper';
export { CircularProgress, LinearProgress } from 'material-ui/Progress';
export { default as Radio, RadioGroup } from 'material-ui/Radio';
export { default as Snackbar, SnackbarContent } from 'material-ui/Snackbar';
export { MuiThemeProvider } from 'material-ui/styles';
import * as colors from 'material-ui/colors';
export { colors };
export { default as SvgIcon } from 'material-ui/SvgIcon';
export { default as Switch } from 'material-ui/Switch';
export {
default as Table,
TableBody,
TableCell,
TableHead,
TableRow,
TableSortLabel,
} from 'material-ui/Table';
export { default as Tabs, Tab } from 'material-ui/Tabs';
export { default as Typography } from 'material-ui/Typography';
export { default as TextField } from 'material-ui/TextField';
export { default as Toolbar } from 'material-ui/Toolbar';
}
/* ============================================= */
/* */
/* COMPONENTS */
/* */
/* ============================================= */
declare module 'material-ui/AppBar' {
export { default } from 'material-ui/AppBar/AppBar';
export * from 'material-ui/AppBar/AppBar';
}
declare module 'material-ui/AppBar/AppBar' {
import { PaperProps } from 'material-ui/Paper/Paper';
export interface AppBarProps extends PaperProps {
color?: MaterialUI.PropTypes.Color;
position?: 'static' | 'fixed' | 'absolute';
}
export default class AppBar extends MaterialUI.Component<AppBarProps> {}
}
declare module 'material-ui/Avatar' {
export { default } from 'material-ui/Avatar/Avatar';
export * from 'material-ui/Avatar/Avatar';
}
declare module 'material-ui/Avatar/Avatar' {
export interface AvatarProps {
alt?: string;
childrenClassName?: string;
component?: React.ReactNode;
imgProps?: Object;
sizes?: string;
src?: string;
srcSet?: string;
}
export default class Avatar extends MaterialUI.Component<AvatarProps> {}
}
declare module 'material-ui/Badge' {
export { default } from 'material-ui/Badge/Badge';
export * from 'material-ui/Badge/Badge';
}
declare module 'material-ui/Badge/Badge' {
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
badgeContent: React.ReactNode;
children: React.ReactNode;
color?: 'default' | 'primary' | 'accent';
}
export default class Badge extends MaterialUI.Component<BadgeProps> {}
}
declare module 'material-ui/BottomNavigation' {
export { default } from 'material-ui/BottomNavigation/BottomNavigation';
export * from 'material-ui/BottomNavigation/BottomNavigation';
export {
default as BottomNavigationButton,
} from 'material-ui/BottomNavigation/BottomNavigationButton';
export * from 'material-ui/BottomNavigation/BottomNavigationButton';
}
declare module 'material-ui/BottomNavigation/BottomNavigation' {
export interface BottomNavigationProps
extends React.HTMLAttributes<HTMLDivElement> {
children: React.ReactNode;
onChange?: React.ReactEventHandler<any>;
showLabels?: boolean;
value?: any;
}
export default class BottomNavigation extends MaterialUI.Component<
BottomNavigationProps
> {}
}
declare module 'material-ui/BottomNavigation/BottomNavigationButton' {
import { ButtonBaseProps } from 'material-ui/internal/ButtonBase';
export interface BottomNavigationButtonProps extends ButtonBaseProps {
icon?: React.ReactNode;
label?: React.ReactNode;
onChange?: (event: React.ChangeEvent<{}>, value: number) => void;
onClick?: React.ReactEventHandler<any>;
selected?: boolean;
showLabel?: boolean;
value?: number;
}
export default class BottomNavigationButton extends MaterialUI.Component<
BottomNavigationButtonProps
> {}
}
declare module 'material-ui/Button' {
export { default } from 'material-ui/Button/Button';
export * from 'material-ui/Button/Button';
}
declare module 'material-ui/Button/Button' {
import { ButtonBaseProps } from 'material-ui/internal/ButtonBase';
export interface ButtonProps extends ButtonBaseProps {
color?: MaterialUI.PropTypes.Color | 'contrast';
component?: React.ReactNode;
dense?: boolean;
disabled?: boolean;
disableFocusRipple?: boolean;
disableRipple?: boolean;
fab?: boolean;
href?: string;
raised?: boolean;
type?: string;
}
export default class Button extends MaterialUI.Component<ButtonProps> {}
}
declare module 'material-ui/Card' {
export { default } from 'material-ui/Card/Card';
export * from 'material-ui/Card/Card';
export { default as CardActions } from 'material-ui/Card/CardActions';
export * from 'material-ui/Card/CardActions';
export { default as CardContent } from 'material-ui/Card/CardContent';
export * from 'material-ui/Card/CardContent';
export { default as CardHeader } from 'material-ui/Card/CardHeader';
export * from 'material-ui/Card/CardHeader';
export { default as CardMedia } from 'material-ui/Card/CardMedia';
export * from 'material-ui/Card/CardMedia';
}
declare module 'material-ui/Card/Card' {
import { PaperProps } from 'material-ui/Paper/Paper';
export interface CardProps extends PaperProps {
raised?: boolean;
}
export default class Card extends MaterialUI.Component<CardProps> {}
}
declare module 'material-ui/Card/CardActions' {
export interface CardActionsProps
extends React.HTMLAttributes<HTMLDivElement> {
disableActionSpacing?: boolean;
}
export default class CardActions extends MaterialUI.Component<
CardActionsProps
> {}
}
declare module 'material-ui/Card/CardContent' {
export type CardContentProps = {} & React.HTMLAttributes<HTMLDivElement>;
export default class CardContent extends MaterialUI.Component<
CardContentProps
> {}
}
declare module 'material-ui/Card/CardHeader' {
import { CardContentProps } from 'material-ui/Card/CardContent';
export type CardHeaderProps = {
avatar?: React.ReactNode;
subheader?: React.ReactNode;
title?: React.ReactNode;
} & Partial<MaterialUI.Omit<CardContentProps, 'title'>>;
export default class CardHeader extends MaterialUI.Component<
CardHeaderProps
> {}
}
declare module 'material-ui/Card/CardMedia' {
export interface CardMediaProps
extends React.HTMLAttributes<HTMLDivElement> {}
export default class CardMedia extends MaterialUI.Component<CardMediaProps> {}
}
declare module 'material-ui/Checkbox' {
export { default } from 'material-ui/Checkbox/Checkbox';
export * from 'material-ui/Checkbox/Checkbox';
}
declare module 'material-ui/Checkbox/Checkbox' {
import { SwitchBaseProps } from 'material-ui/internal/SwitchBase';
export interface CheckboxProps extends SwitchBaseProps {}
export default class Checkbox extends MaterialUI.Component<CheckboxProps> {}
}
declare module 'material-ui/Chip' {
export { default } from 'material-ui/Chip/Chip';
export * from 'material-ui/Chip/Chip';
}
declare module 'material-ui/Chip/Chip' {
export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
avatar?: React.ReactNode;
label?: React.ReactNode;
onKeyDown?: React.EventHandler<React.KeyboardEvent<any>>;
onRequestDelete?: React.EventHandler<any>;
tabIndex?: number;
}
export default class Chip extends MaterialUI.Component<ChipProps> {}
}
declare module 'material-ui/Dialog' {
export { default } from 'material-ui/Dialog/Dialog';
export * from 'material-ui/Dialog/Dialog';
export { default as DialogActions } from 'material-ui/Dialog/DialogActions';
export * from 'material-ui/Dialog/DialogActions';
export { default as DialogTitle } from 'material-ui/Dialog/DialogTitle';
export * from 'material-ui/Dialog/DialogTitle';
export { default as DialogContent } from 'material-ui/Dialog/DialogContent';
export * from 'material-ui/Dialog/DialogContent';
export {
default as DialogContentText,
} from 'material-ui/Dialog/DialogContentText';
export * from 'material-ui/Dialog/DialogContentText';
export {
default as withResponsiveFullScreen,
} from 'material-ui/Dialog/withResponsiveFullScreen';
export * from 'material-ui/Dialog/withResponsiveFullScreen';
}
declare module 'material-ui/Dialog/Dialog' {
import { ModalProps } from 'material-ui/internal/Modal';
export type DialogProps = {
fullScreen?: boolean;
ignoreBackdropClick?: boolean;
ignoreEscapeKeyUp?: boolean;
enterTransitionDuration?: number | string;
leaveTransitionDuration?: number | string;
maxWidth?: 'xs' | 'sm' | 'md';
onBackdropClick?: Function;
onEscapeKeyUp?: Function;
onRequestClose?: React.EventHandler<any>;
open?: boolean;
transition?: Function | React.ReactElement<any>;
} & ModalProps;
export default class Dialog extends MaterialUI.Component<DialogProps> {}
}
declare module 'material-ui/Dialog/DialogActions' {
export interface DialogActionsProps
extends React.HTMLAttributes<HTMLDivElement> {}
export default class DialogActions extends MaterialUI.Component<
DialogActionsProps
> {}
}
declare module 'material-ui/Dialog/DialogContent' {
export interface DialogContentProps
extends React.HTMLAttributes<HTMLDivElement> {}
export default class DialogContent extends MaterialUI.Component<
DialogContentProps
> {}
}
declare module 'material-ui/Dialog/DialogContentText' {
export interface DialogContentTextProps
extends React.HTMLAttributes<HTMLParagraphElement> {}
export default class DialogContentText extends MaterialUI.Component<
DialogContentTextProps
> {}
}
declare module 'material-ui/Dialog/DialogTitle' {
export interface DialogTitleProps
extends React.HTMLAttributes<HTMLDivElement> {
disableTypography?: boolean;
}
export default class DialogTitle extends MaterialUI.Component<
DialogTitleProps
> {}
}
declare module 'material-ui/Dialog/withResponsiveFullScreen' {
import { Breakpoint } from 'material-ui/styles/breakpoints';
import { WithWidthEnhancement } from 'material-ui/utils/withWidth';
export interface WithResponsiveFullScreenOptions {
breakpoint: Breakpoint;
}
export default function withResponsiveFullScreen<P>(
options: WithResponsiveFullScreenOptions
): React.ComponentClass<P & WithWidthEnhancement>;
}
declare module 'material-ui/Divider' {
export { default } from 'material-ui/Divider/Divider';
export * from 'material-ui/Divider/Divider';
}
declare module 'material-ui/Divider/Divider' {
export interface DividerProps extends React.HTMLAttributes<HTMLHRElement> {
absolute?: boolean;
inset?: boolean;
light?: boolean;
}
export default class Divider extends MaterialUI.Component<DividerProps> {}
}
declare module 'material-ui/Drawer' {
export { default } from 'material-ui/Drawer/Drawer';
export * from 'material-ui/Drawer/Drawer';
}
declare module 'material-ui/Drawer/Drawer' {
import { ModalProps } from 'material-ui/internal/Modal';
import { SlideProps } from 'material-ui/transitions/Slide';
import { Theme } from 'material-ui/styles/theme';
type DrawerCommonProps = {
anchor?: 'left' | 'top' | 'right' | 'bottom';
elevation?: number;
enterTransitionDuration?: number;
leaveTransitionDuration?: number;
open?: boolean;
SlideProps?: SlideProps;
theme?: Theme;
};
type DrawerDockedProps = {
docked?: true;
} & DrawerCommonProps &
React.HtmlHTMLAttributes<HTMLDivElement>;
type DrawerModalProps = {
docked?: false;
onRequestClose?: React.EventHandler<any>;
} & ModalProps;
export type DrawerProps = DrawerDockedProps | DrawerModalProps;
export default class Drawer extends MaterialUI.Component<DrawerProps> {}
}
declare module 'material-ui/Form' {
export { default as FormGroup } from 'material-ui/Form/FormGroup';
export * from 'material-ui/Form/FormGroup';
export { default as FormLabel } from 'material-ui/Form/FormLabel';
export * from 'material-ui/Form/FormLabel';
export { default as FormControl } from 'material-ui/Form/FormControl';
export * from 'material-ui/Form/FormControl';
export { default as FormHelperText } from 'material-ui/Form/FormHelperText';
export * from 'material-ui/Form/FormHelperText';
export {
default as FormControlLabel,
} from 'material-ui/Form/FormControlLabel';
export * from 'material-ui/Form/FormControlLabel';
}
declare module 'material-ui/Form/FormControl' {
export interface FormControlProps
extends React.HtmlHTMLAttributes<HTMLDivElement> {
disabled?: boolean;
error?: boolean;
fullWidth?: boolean;
margin?: MaterialUI.PropTypes.Margin;
onBlur?: React.EventHandler<any>;
onFocus?: React.EventHandler<any>;
required?: boolean;
}
export default class FormControl extends MaterialUI.Component<
FormControlProps
> {}
}
declare module 'material-ui/Form/FormControlLabel' {
export type FormControlLabelProps = {
checked?: boolean | string;
control: React.ReactElement<any>;
disabled?: boolean;
inputRef?: React.Ref<any>;
label: React.ReactNode;
name?: string;
onChange?: (event: React.ChangeEvent<{}>, checked: boolean) => void;
value?: string;
} & React.LabelHTMLAttributes<HTMLLabelElement>;
export default class FormControlLabel extends MaterialUI.Component<
FormControlLabelProps
> {}
}
declare module 'material-ui/Form/FormGroup' {
export interface FormGroupProps
extends React.HtmlHTMLAttributes<HTMLDivElement> {
row?: boolean;
}
export default class FormGroup extends MaterialUI.Component<FormGroupProps> {}
}
declare module 'material-ui/Form/FormHelperText' {
export interface FormHelperTextProps
extends React.HTMLAttributes<HTMLParagraphElement> {
disabled?: boolean;
error?: boolean;
margin?: 'dense';
}
export default class FormHelperText extends MaterialUI.Component<
FormHelperTextProps
> {}
}
declare module 'material-ui/Form/FormLabel' {
export interface FormLabelProps
extends React.LabelHTMLAttributes<HTMLLabelElement> {
disabled?: boolean;
error?: boolean;
focused?: boolean;
required?: boolean;
}
export default class FormLabel extends MaterialUI.Component<FormLabelProps> {}
}
declare module 'material-ui/Grid' {
export { default } from 'material-ui/Grid/Grid';
export * from 'material-ui/Grid/Grid';
}
declare module 'material-ui/Grid/Grid' {
import { HiddenProps } from 'material-ui/Hidden/Hidden';
import { Breakpoint } from 'material-ui/styles/breakpoints';
export type GridAlignment = 'flex-start' | 'center' | 'flex-end' | 'stretch';
export type GridDirection =
| 'row'
| 'row-reverse'
| 'column'
| 'column-reverse';
export type GridSpacing = 0 | 8 | 16 | 24 | 40;
export type GridJustification =
| 'flex-start'
| 'center'
| 'flex-end'
| 'space-between'
| 'space-around';
export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
export type GridSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
export type GridProps = {
component?: React.ReactNode;
container?: boolean;
item?: boolean;
align?: GridAlignment;
direction?: GridDirection;
spacing?: GridSpacing;
hidden?: HiddenProps;
justify?: GridJustification;
wrap?: GridWrap;
} & Partial<{ [key in Breakpoint]: boolean | GridSize }>;
export default class Grid extends MaterialUI.Component<GridProps> {}
}
declare module 'material-ui/GridList' {
export { default } from 'material-ui/GridList/GridList';
export * from 'material-ui/GridList/GridList';
export { default as GridList } from 'material-ui/GridList/GridList';
export { default as GridListTitle } from 'material-ui/GridList/GridListTitle';
export * from 'material-ui/GridList/GridListTitle';
export {
default as GridListTitleBar,
} from 'material-ui/GridList/GridListTitleBar';
export * from 'material-ui/GridList/GridListTitleBar';
}
declare module 'material-ui/GridList/GridList' {
export interface GridListProps {
cellHeight?: number | 'auto';
cols?: number;
component?: React.ReactElement<any> | string;
spacing?: number;
}
export default class GridList extends MaterialUI.Component<GridListProps> {}
}
declare module 'material-ui/GridList/GridListTitle' {
export interface GridListTitleProps {
cols?: number;
component?: React.ReactElement<any> | string;
row?: number;
}
export default class GridListTitle extends MaterialUI.Component<
GridListTitleProps
> {}
}
declare module 'material-ui/GridList/GridListTitleBar' {
export interface GridListTitleBarProps {
actionIcon?: React.ReactElement<any>;
actionPosition?: 'left' | 'right';
subtitle?: React.ReactNode;
title?: React.ReactNode;
titlePosition?: 'top' | 'bottom';
}
export default class GridListTitleBar extends MaterialUI.Component<
GridListTitleBarProps
> {}
}
declare module 'material-ui/Hidden' {
export { default } from 'material-ui/Hidden/Hidden';
export * from 'material-ui/Hidden/Hidden';
export { default as HiddenJs } from 'material-ui/Hidden/HiddenJs';
export * from 'material-ui/Hidden/HiddenJs';
}
declare module 'material-ui/Hidden/Hidden' {
import { Breakpoint } from 'material-ui/styles/breakpoints';
export interface HiddenProps {
only?: Breakpoint | Array<Breakpoint>;
xsUp?: boolean;
smUp?: boolean;
mdUp?: boolean;
lgUp?: boolean;
xlUp?: boolean;
xsDown?: boolean;
smDown?: boolean;
mdDown?: boolean;
lgDown?: boolean;
xlDown?: boolean;
implementation?: 'js' | 'css';
}
export default class Hidden extends MaterialUI.Component<HiddenProps> {}
}
declare module 'material-ui/Hidden/HiddenJs' {
import { Breakpoint } from 'material-ui/styles/breakpoints';
export interface HiddenJsProps {
only?: Breakpoint | Array<Breakpoint>;
xsUp?: boolean;
smUp?: boolean;
mdUp?: boolean;
lgUp?: boolean;
xlUp?: boolean;
xsDown?: boolean;
smDown?: boolean;
mdDown?: boolean;
lgDown?: boolean;
xlDown?: boolean;
}
export default class HiddenJs extends MaterialUI.Component<HiddenJsProps> {}
}
declare module 'material-ui/Icon' {
export { default } from 'material-ui/Icon/Icon';
export * from 'material-ui/Icon/Icon';
}
declare module 'material-ui/Icon/Icon' {
export interface IconProps extends React.HTMLAttributes<HTMLSpanElement> {
color?:
| 'inherit'
| 'accent'
| 'action'
| 'contrast'
| 'disabled'
| 'error'
| 'primary';
}
export default class Icon extends MaterialUI.Component<IconProps> {}
}
declare module 'material-ui/IconButton' {
export { default } from 'material-ui/IconButton/IconButton';
export * from 'material-ui/IconButton/IconButton';
}
declare module 'material-ui/IconButton/IconButton' {
import { ButtonBaseProps } from 'material-ui/internal/ButtonBase';
export interface IconButtonProps extends ButtonBaseProps {
color?: MaterialUI.PropTypes.Color | 'contrast';
disabled?: boolean;
disableRipple?: boolean;
rootRef?: React.Ref<any>;
}
export default class IconButton extends MaterialUI.Component<
IconButtonProps
> {}
}
declare module 'material-ui/Input' {
export { default } from 'material-ui/Input/Input';
export * from 'material-ui/Input/Input';
export { default as InputLabel } from 'material-ui/Input/InputLabel';
export * from 'material-ui/Input/InputLabel';
// NOTE: Textarea is missing from exports (intentional?)
}
declare module 'material-ui/Input/Input' {
export type InputProps = {
autoComplete?: string;
autoFocus?: boolean;
component?: React.ReactNode;
defaultValue?: string | number;
disabled?: boolean;
disableUnderline?: boolean;
error?: boolean;
fullWidth?: boolean;
id?: string;
/**
* TODO: Can we be more restrictive? E.g. it's only an <input>
* if [component] is not set.
*/
inputProps?:
| React.TextareaHTMLAttributes<HTMLTextAreaElement>
| React.InputHTMLAttributes<HTMLInputElement>;
inputRef?: React.Ref<any>;
margin?: 'dense';
multiline?: boolean;
name?: string;
placeholder?: string;
rows?: string | number;
rowsMax?: string | number;
type?: string;
value?: string | number;
} & React.HTMLAttributes<HTMLDivElement> &
Partial<MaterialUI.InputEventEmitter<HTMLElement>>;
export default class Input extends MaterialUI.Component<InputProps> {}
}
declare module 'material-ui/Input/InputLabel' {
import { FormLabelProps } from 'material-ui/Form/FormLabel';
export interface InputLabelProps extends FormLabelProps {
disableAnimation?: boolean;
disabled?: boolean;
error?: boolean;
focused?: boolean;
required?: boolean;
shrink?: boolean;
}
export default class InputLabel extends MaterialUI.Component<
InputLabelProps
> {}
}
declare module 'material-ui/Input/Textarea' {
export type TextareaProps = {
defaultValue?: any;
disabled?: boolean;
onChange?: React.EventHandler<React.ChangeEvent<{}>>;
rows?: string | number;
rowsMax?: string | number;
textareaRef?: React.Ref<any>;
value?: string;
} & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
export default class Textarea extends MaterialUI.Component<TextareaProps> {}
}
declare module 'material-ui/List' {
export { default } from 'material-ui/List/List';
export * from 'material-ui/List/List';
export { default as ListItem } from 'material-ui/List/ListItem';
export * from 'material-ui/List/ListItem';
export { default as ListItemAvatar } from 'material-ui/List/ListItemAvatar';
export * from 'material-ui/List/ListItemAvatar';
export { default as ListItemText } from 'material-ui/List/ListItemText';
export * from 'material-ui/List/ListItemText';
export { default as ListItemIcon } from 'material-ui/List/ListItemIcon';
export * from 'material-ui/List/ListItemIcon';
export {
default as ListItemSecondaryAction,
} from 'material-ui/List/ListItemSecondaryAction';
export * from 'material-ui/List/ListItemSecondaryAction';
export { default as ListSubheader } from 'material-ui/List/ListSubheader';
export * from 'material-ui/List/ListSubheader';
}
declare module 'material-ui/List/List' {
export interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
component?: React.ReactNode;
dense?: boolean;
disablePadding?: boolean;
rootRef?: React.Ref<any>;
subheader?: React.ReactElement<any>;
}
export default class List extends MaterialUI.Component<ListProps> {}
}
declare module 'material-ui/List/ListItem' {
import { ButtonBaseProps } from 'material-ui/internal/ButtonBase';
interface ListItemCommonProps extends React.LiHTMLAttributes<HTMLLIElement> {
component?: React.ReactNode;
dense?: boolean;
disabled?: boolean;
disableGutters?: boolean;
divider?: boolean;
}
export type ListItemDefaultProps = {
button?: false;
} & ListItemCommonProps;
export type ListItemButtonProps = {
button?: true;
} & ListItemCommonProps &
ButtonBaseProps;
export type ListItemProps = ListItemDefaultProps | ListItemButtonProps;
export default class ListItem extends MaterialUI.Component<ListItemProps> {}
}
declare module 'material-ui/List/ListItemAvatar' {
export interface ListItemAvatarProps {}
export default class ListItemAvatar extends MaterialUI.Component<
ListItemAvatarProps
> {}
}
declare module 'material-ui/List/ListItemIcon' {
export interface ListItemIconProps {}
export default class ListItemIcon extends MaterialUI.Component<
ListItemIconProps
> {}
}
declare module 'material-ui/List/ListItemSecondaryAction' {
export interface ListItemSecondaryActionProps {}
export default class ListItemSecondaryAction extends MaterialUI.Component<
ListItemSecondaryActionProps
> {}
}
declare module 'material-ui/List/ListItemText' {
export interface ListItemTextProps
extends React.HTMLAttributes<HTMLDivElement> {
disableTypography?: boolean;
inset?: boolean;
primary?: React.ReactNode;
secondary?: React.ReactNode;
}
export default class ListItemText extends MaterialUI.Component<
ListItemTextProps
> {}
}
declare module 'material-ui/List/ListSubheader' {
export interface ListSubheaderProps
extends React.HTMLAttributes<HTMLDivElement> {
color?: 'default' | 'primary' | 'inherit';
inset?: boolean;
}
export default class ListSubheader extends MaterialUI.Component<
ListSubheaderProps
> {}
}
declare module 'material-ui/Menu' {
export { default } from 'material-ui/Menu/Menu';
export * from 'material-ui/Menu/Menu';
export { default as MenuList } from 'material-ui/Menu/MenuList';
export * from 'material-ui/Menu/MenuList';
export { default as MenuItem } from 'material-ui/Menu/MenuItem';
export * from 'material-ui/Menu/MenuItem';
}
declare module 'material-ui/Menu/Menu' {
import { TransitionHandlers } from 'material-ui/internal/Transition';
import { MenuListProps } from 'material-ui/Menu/MenuList';
import { PopoverProps } from 'material-ui/internal/Popover';
export type MenuProps = {
anchorEl?: HTMLElement;
MenuListProps?: MenuListProps;
onRequestClose?: React.EventHandler<any>;
open?: boolean;
transitionDuration?: number | 'auto';
} & Partial<TransitionHandlers> &
PopoverProps;
export default class Menu extends MaterialUI.Component<MenuProps> {}
}
declare module 'material-ui/Menu/MenuItem' {
import { ListItemButtonProps } from 'material-ui/List/ListItem';
export interface MenuItemProps extends ListItemButtonProps {
component?: React.ReactNode;
role?: string;
selected?: boolean;
}
export default class MenuItem extends MaterialUI.Component<MenuItemProps> {}
}
declare module 'material-ui/Menu/MenuList' {
import { ListProps } from 'material-ui/List/List';
export type MenuListProps = {
onKeyDown?: React.ReactEventHandler<React.KeyboardEvent<any>>;
} & ListProps;
export default class MenuList extends MaterialUI.Component<MenuListProps> {}
}
declare module 'material-ui/MobileStepper' {
export { default } from 'material-ui/MobileStepper/MobileStepper';
export * from 'material-ui/MobileStepper/MobileStepper';
}
declare module 'material-ui/MobileStepper/MobileStepper' {