forked from primer/react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
828 lines (667 loc) · 26.5 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
declare module '@primer/components' {
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>
import * as StyledSystem from 'styled-system'
import {SystemStyleObject} from '@styled-system/css'
import * as StyledComponents from 'styled-components'
import { ReactComponentLike } from 'prop-types';
import * as History from 'history'
export interface BaseProps extends React.Props<any> {
as?: React.ReactType
className?: string
css?: string
sx?: SystemStyleObject
title?: string
// NOTE(@mxstbr): Necessary workaround to make <Component as={Link} to="/bla" /> work
to?: History.LocationDescriptor
}
interface CommonProps extends BaseProps, StyledSystem.ColorProps, StyledSystem.SpaceProps {}
interface LayoutProps extends BaseProps, StyledSystem.LayoutProps {}
interface TypographyProps extends BaseProps, StyledSystem.TypographyProps {
whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line'
}
interface BorderProps
extends StyledSystem.BordersProps,
StyledSystem.BoxShadowProps {}
interface PositionProps extends StyledSystem.PositionProps {}
export interface BoxProps
extends BaseProps,
CommonProps,
LayoutProps,
StyledSystem.FlexboxProps,
Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export const Box: React.FunctionComponent<BoxProps>
interface FlexProps extends BoxProps {}
export const Flex: React.FunctionComponent<FlexProps>
export interface TextProps
extends BaseProps,
CommonProps,
TypographyProps,
Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {}
export const Text: React.FunctionComponent<TextProps>
export interface HeaderProps
extends BaseProps,
CommonProps,
BorderProps,
Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> { }
export interface HeaderItemProps extends CommonProps, BorderProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
full?: boolean;
}
export interface HeaderLinkProps extends CommonProps, BorderProps, TypographyProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {}
export const Header: React.FunctionComponent<HeaderProps> & {
Item: React.FunctionComponent<HeaderItemProps>
Link: React.FunctionComponent<HeaderLinkProps>
}
export interface HeadingProps
extends BaseProps,
CommonProps,
TypographyProps,
Omit<React.HTMLAttributes<HTMLHeadingElement>, 'color'> { }
export const Heading: React.FunctionComponent<HeadingProps>
export interface DetailsProps extends CommonProps, Omit<React.DetailsHTMLAttributes<HTMLDetailsElement>, 'color'> {
onToggle: (event: React.SyntheticEvent<HTMLDetailsElement>) => void
open: boolean
ref: React.RefObject<HTMLDetailsElement>
}
export const Details: React.FunctionComponent<DetailsProps>
export interface UseDetailsProps {
defaultOpen?: boolean
closeOnOutsideClick?: boolean
onClickOutside?: (event: React.MouseEvent ) => void
ref?: React.RefObject<HTMLDetailsElement> | null
}
export const useDetails: (props?: UseDetailsProps) => {
getDetailsProps: () => {
onToggle: (event: React.SyntheticEvent<HTMLDetailsElement>) => void
open: boolean
ref: React.RefObject<HTMLDetailsElement>
}
open: boolean
setOpen: (open: boolean) => void
}
export const useMouseIntent: () => void
export interface ButtonProps
extends BaseProps,
CommonProps,
LayoutProps,
StyledSystem.FontSizeProps,
Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
variant?: 'small' | 'medium' | 'large'
}
export interface ButtonTableListProps
extends CommonProps,
TypographyProps,
LayoutProps,
Omit<React.HTMLAttributes<HTMLElement>, 'color'> {}
export interface ButtonCloseProps
extends BaseProps,
CommonProps,
LayoutProps,
Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
ref?: React.RefObject<HTMLButtonElement> | null
}
export const ButtonPrimary: React.FunctionComponent<ButtonProps>
export const ButtonOutline: React.FunctionComponent<ButtonProps>
export const ButtonDanger: React.FunctionComponent<ButtonProps>
export const ButtonInvisible: React.FunctionComponent<ButtonProps>
export const ButtonTableList: React.FunctionComponent<ButtonTableListProps>
export const ButtonGroup: React.FunctionComponent<BoxProps>
export const Button: React.FunctionComponent<ButtonProps>
export const ButtonClose: React.FunctionComponent<ButtonCloseProps>
export interface AvatarProps extends CommonProps, Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'color'> {
size?: number
square?: boolean
}
export const Avatar: React.FunctionComponent<AvatarProps>
export interface AvatarPairProps extends PositionComponentProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export const AvatarPair: React.FunctionComponent<AvatarPairProps>
export interface BaseStylesProps extends TypographyProps, CommonProps {}
export const BaseStyles: React.FunctionComponent<BaseStylesProps>
export interface BorderBoxProps extends BorderProps, BoxProps {}
export const BorderBox: React.FunctionComponent<BorderBoxProps>
export interface BranchNameProps extends CommonProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {}
export const BranchName: React.FunctionComponent<BranchNameProps>
export interface CircleBadgeProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
inline?: boolean
size?: number
variant?: 'small' | 'medium' | 'large'
}
export interface CircleBadgeIconProps extends StyledOcticonProps {}
export const CircleBadge: React.FunctionComponent<CircleBadgeProps> & {
Icon: React.FunctionComponent<CircleBadgeIconProps>
}
export interface CircleOcticonProps extends CommonProps, FlexProps {
size?: number
icon: ReactComponentLike
}
export const CircleOcticon: React.FunctionComponent<CircleOcticonProps>
export interface StyledOcticonProps extends CommonProps {
size?: number | 'small' | 'medium' | 'large'
icon: ReactComponentLike
verticalAlign?: 'middle' | 'text-bottom' | 'top' | 'text-top'
}
export const StyledOcticon: React.FunctionComponent<StyledOcticonProps>
export interface DropdownProps extends DetailsProps {}
export interface DropdownItemProps extends CommonProps, Omit<React.HTMLAttributes<HTMLLIElement>, 'color'> {}
export interface DropdownMenuProps extends CommonProps, Omit<React.HTMLAttributes<HTMLUListElement>, 'color'> {
direction?: 'ne'| 'e'| 'se'| 's'| 'sw'| 'w'
}
export interface DropdownButtonProps extends ButtonProps {}
export interface DropdownCaretProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export const Dropdown: React.FunctionComponent<DropdownProps> & {
Menu: React.FunctionComponent<DropdownMenuProps>
Item: React.FunctionComponent<DropdownItemProps>
Button: React.FunctionComponent<DropdownButtonProps>
Caret: React.FunctionComponent<DropdownCaretProps>
}
export interface FilteredSearchProps extends CommonProps {
// just children
}
export const FilteredSearch: React.FunctionComponent<FilteredSearchProps>
export interface FilterListProps extends CommonProps, Omit<React.HTMLAttributes<HTMLUListElement>, 'color'> {
small?: boolean
}
export interface FilterListItemProps
extends CommonProps,
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
count?: number
selected?: boolean
}
export const FilterList: React.FunctionComponent<FilterListProps> & {
Item: React.FunctionComponent<FilterListItemProps>
}
export interface FlashProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
full?: boolean
variant?: 'success' | 'default' | 'warning' | 'danger'
}
export const Flash: React.FunctionComponent<FlashProps>
export interface CounterLabelProps extends CommonProps, Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
scheme?: string
}
export const CounterLabel: React.FunctionComponent<CounterLabelProps>
export interface FormGroupProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export interface FormGroupLabelProps extends CommonProps, TypographyProps, Omit<React.HTMLAttributes<HTMLLabelElement>, 'color'> {
htmlFor?: string
}
export const FormGroup: React.FunctionComponent<FormGroupProps> & {
Label: React.FunctionComponent<FormGroupLabelProps>
}
export interface GridProps extends BoxProps, StyledSystem.GridProps {}
export const Grid: React.FunctionComponent<GridProps>
export interface LabelProps extends CommonProps, StyledSystem.BorderColorProps, Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
outline?: boolean
variant?: 'small' | 'medium' | 'large' | 'xl'
dropshadow?: boolean
}
export const Label: React.FunctionComponent<LabelProps>
export interface LinkProps
extends CommonProps,
TypographyProps,
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
muted?: boolean
underline?: boolean
hoverColor?: string
}
export const Link: React.FunctionComponent<LinkProps>
export interface PageheadProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export const Pagehead: React.FunctionComponent<PageheadProps>
export type PaginationHrefBuilder = (page: number) => string
export type PaginationPageChangeCallback = (e: React.MouseEvent, page: number) => void
export interface PaginationProps extends CommonProps {
currentPage: number
hrefBuilder?: PaginationHrefBuilder
/**
* How many pages to show on the left and right of the component
*/
marginPageCount?: number
onPageChange?: PaginationPageChangeCallback
pageCount: number
showPages?: boolean
/**
* How many pages to show directly to the left and right of the current page
*/
surroundingPageCount?: number
}
export const Pagination: React.FunctionComponent<PaginationProps>
export interface PointerBoxProps extends CommonProps, LayoutProps, BorderBoxProps {
caret?: string
}
export const PointerBox: React.FunctionComponent<PointerBoxProps>
export interface PopoverProps extends CommonProps, LayoutProps, PositionProps {
caret?:
| 'top'
| 'bottom'
| 'left'
| 'right'
| 'bottom-left'
| 'bottom-right'
| 'top-left'
| 'top-right'
| 'left-bottom'
| 'left-top'
| 'right-bottom'
| 'right-top'
open?: boolean
relative?: boolean
}
export interface PopoverContentProps extends BorderBoxProps { }
export const Popover: React.FunctionComponent<PopoverProps> & {
Content: React.FunctionComponent<PopoverContentProps>
}
export interface PositionComponentProps extends PositionProps, BoxProps {}
export const Relative: React.FunctionComponent<PositionComponentProps>
export const Absolute: React.FunctionComponent<PositionComponentProps>
export const Sticky: React.FunctionComponent<PositionComponentProps>
export const Fixed: React.FunctionComponent<PositionComponentProps>
export interface SelectMenuProps extends Omit<CommonProps, 'as'>, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
initialTab?: string
ref?: React.RefObject<HTMLDetailsElement> | null
}
export interface SelectMenuModalProps extends CommonProps, StyledSystem.WidthProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
align?: 'left' | 'right'
ref?: React.RefObject<HTMLDivElement> | null
}
export interface SelectMenuListProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export interface SelectMenuLoadingAnimationProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
interface SelectMenuItemCommonProps extends CommonProps {
selected?: boolean
}
interface SelectMenuItemAsButtonProps extends SelectMenuItemCommonProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
as?: "button"
ref?: React.ForwardedRef<HTMLButtonElement> | null
}
interface SelectMenuItemAsAnchorProps extends SelectMenuItemCommonProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
as?: "a"
ref?: React.ForwardedRef<HTMLAnchorElement> | null
}
export type SelectMenuItemProps = SelectMenuItemAsButtonProps | SelectMenuItemAsAnchorProps;
export interface SelectMenuFooterProps extends CommonProps, Omit<React.HTMLAttributes<HTMLElement>, 'color'> {}
export interface SelectMenuDividerProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export interface SelectMenuHeaderProps extends CommonProps, TypographyProps, Omit<React.HTMLAttributes<HTMLElement>, 'color'> {}
export interface SelectMenuFilterProps extends TextInputProps {
value: string
ref?: React.RefObject<HTMLInputElement> | null
}
export interface SelectMenuTabsProps extends CommonProps,
Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export interface SelectMenuTabProps extends CommonProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
index: number,
tabName: string
}
export interface SelectMenuTabPanelProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
tabName: string
}
export const SelectMenu: React.FunctionComponent<SelectMenuProps> & {
MenuContext: React.Context<{
selectedTab: string | undefined
setSelectedTab: (selectedTab: string | undefined) => void,
open: boolean | undefined,
setOpen: (open: boolean | undefined) => void,
initialTab: string | undefined
}>
Divider: React.FunctionComponent<SelectMenuDividerProps>
Filter: React.FunctionComponent<SelectMenuFilterProps>
Footer: React.FunctionComponent<SelectMenuFooterProps>
List: React.FunctionComponent<SelectMenuListProps>
Item: React.FunctionComponent<SelectMenuItemProps>
Modal: React.FunctionComponent<SelectMenuModalProps>
Tabs: React.FunctionComponent<SelectMenuTabsProps>
Tab: React.FunctionComponent<SelectMenuTabProps>
TabPanel: React.FunctionComponent<SelectMenuTabPanelProps>
Header: React.FunctionComponent<SelectMenuHeaderProps>
LoadingAnimation: React.FunctionComponent<SelectMenuLoadingAnimationProps>
}
export interface SideNavProps extends CommonProps, BorderBoxProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
bordered?: boolean
variant?: 'normal' | 'lightweight'
}
export interface SideNavLinkProps
extends CommonProps,
TypographyProps,
LinkProps {
selected?: boolean
variant?: 'normal' | 'full'
}
export const SideNav: React.FunctionComponent<SideNavProps> & {
Link: React.FunctionComponent<SideNavLinkProps>
}
export interface StateLabelProps extends CommonProps {
variant?: 'small' | 'normal'
status: 'issueOpened' | 'issueClosed' | 'pullOpened' | 'pullClosed' | 'pullMerged' | 'draft'
}
export const StateLabel: React.FunctionComponent<StateLabelProps>
export interface TabNavProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export interface TabNavLinkProps extends CommonProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
selected?: boolean
}
export const TabNav: React.FunctionComponent<TabNavProps> & {
Link: React.FunctionComponent<TabNavLinkProps>
}
export interface TextInputProps
extends CommonProps,
StyledSystem.WidthProps,
StyledSystem.MaxWidthProps,
StyledSystem.MinWidthProps,
Omit<React.InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'width'> {
block?: boolean
icon?: ReactComponentLike
variant?: 'small' | 'large'
ref?: React.RefObject<HTMLInputElement> | null
}
export const TextInput: React.FunctionComponent<TextInputProps>
export interface TooltipProps extends CommonProps, Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
align?: 'left' | 'right'
direction?: 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw'
noDelay?: boolean
text?: string
wrap?: boolean
}
export interface TimelineProps extends Omit<FlexProps, 'flexDirection'> {
clipSidebar?: boolean
}
export interface TimelineItemProps extends Omit<FlexProps, 'flexDirection'> {
condensed?: boolean
}
export interface TimelineBadgeProps extends Omit<FlexProps, 'height' | 'width' | 'alignItems' | 'justifyContent'> {}
export const Timeline: React.FunctionComponent<TimelineProps> & {
Item: React.FunctionComponent<TimelineItemProps>
Badge: React.FunctionComponent<TimelineBadgeProps>
Body: React.FunctionComponent<BoxProps>
Break: React.FunctionComponent<BoxProps>
}
export const Tooltip: React.FunctionComponent<TooltipProps>
export interface UnderlineNavProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
actions?: React.ReactNode
align?: 'right'
full?: boolean
label?: string
}
export interface TruncateProps extends StyledSystem.MaxWidthProps, TypographyProps, BaseProps {
expandable?: boolean
inline?: boolean
title: string
}
export const Truncate: React.FunctionComponent<TruncateProps>
export interface UnderlineNavLinkProps
extends CommonProps,
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
selected?: boolean
}
export const UnderlineNav: React.FunctionComponent<UnderlineNavProps> & {
Link: React.FunctionComponent<UnderlineNavLinkProps>
}
export interface SubNavProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, FlexProps {
actions?: React.ReactNode
label?: string
}
export interface SubNavLinkProps extends CommonProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
selected?: boolean
}
export interface SubNavLinksProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
export const SubNav: React.FunctionComponent<SubNavProps> & {
Link: React.FunctionComponent<SubNavLinkProps>,
Links: React.FunctionComponent<SubNavLinksProps>
}
export interface BreadcrumbProps
extends CommonProps,
Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>,
FlexProps {}
export interface BreadcrumbItemProps
extends CommonProps,
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
selected?: boolean
}
export const Breadcrumb: React.FunctionComponent<BreadcrumbProps> & {
Item: React.FunctionComponent<BreadcrumbItemProps>
}
export const theme: {[key: string]: any}
export const themeGet: (key: any) => any
export interface DialogProps extends CommonProps, LayoutProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
isOpen: boolean
onDismiss: () => unknown
narrow?: boolean
wide?: boolean
ref?: React.RefObject<HTMLDivElement>
initialFocusRef?: React.RefObject<HTMLElement>
returnFocusRef?: React.RefObject<HTMLElement>
}
export interface DialogHeaderProps extends FlexProps {}
export const Dialog: React.FunctionComponent<DialogProps> & {
Header: React.FunctionComponent<DialogHeaderProps>
}
export interface LabelGroupProps extends CommonProps, Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {}
export const LabelGroup: React.FunctionComponent<LabelGroupProps>
export interface AvatarStackProps extends CommonProps, Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
alignRight?: boolean
}
export const AvatarStack: React.FunctionComponent<AvatarStackProps>
export interface ProgressBarProps
extends BaseProps,
CommonProps,
StyledSystem.WidthProps,
Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
progress?: number | string
barSize?: 'small' | 'default' | 'large'
inline?: boolean
}
export const ProgressBar: React.FunctionComponent<ProgressBarProps>
}
declare module '@primer/components/lib/Box' {
import {Box} from '@primer/components'
export default Box
}
declare module '@primer/components/lib/Text' {
import {Text} from '@primer/components'
export default Text
}
declare module '@primer/components/lib/Header' {
import {Header} from '@primer/components'
export default Header
}
declare module '@primer/components/lib/Heading' {
import {Heading} from '@primer/components'
export default Heading
}
declare module '@primer/components/lib/ButtonClose' {
import {ButtonClose} from '@primer/components'
export default ButtonClose
}
declare module '@primer/components/lib/ButtonDanger' {
import {ButtonDanger} from '@primer/components'
export default ButtonDanger
}
declare module '@primer/components/lib/ButtonPrimary' {
import {ButtonPrimary} from '@primer/components'
export default ButtonPrimary
}
declare module '@primer/components/lib/ButtonOutline' {
import {ButtonOutline} from '@primer/components'
export default ButtonOutline
}
declare module '@primer/components/lib/ButtonInvisible' {
import {ButtonInvisible} from '@primer/components'
export default ButtonInvisible
}
declare module '@primer/components/lib/ButtonTableList' {
import {ButtonTableList} from '@primer/components'
export default ButtonTableList
}
declare module '@primer/components/lib/ButtonGroup' {
import {ButtonGroup} from '@primer/components'
export default ButtonGroup
}
declare module '@primer/components/lib/Button' {
import {Button} from '@primer/components'
export default Button
}
declare module '@primer/components/lib/Flex' {
import {Flex} from '@primer/components'
export default Flex
}
declare module '@primer/components/lib/Avatar' {
import {Avatar} from '@primer/components'
export default Avatar
}
declare module '@primer/components/lib/AvatarPair' {
import {AvatarPair} from '@primer/components'
export default AvatarPair
}
declare module '@primer/components/lib/Details' {
import {Details} from '@primer/components'
export default Details
}
declare module '@primer/components/lib/hooks/useDetails' {
import {useDetails} from '@primer/components'
export default useDetails
}
declare module '@primer/components/lib/hooks/useMouseIntent' {
import {useMouseIntent} from '@primer/components'
export default useMouseIntent
}
declare module '@primer/components/lib/BaseStyles' {
import {BaseStyles} from '@primer/components'
export default BaseStyles
}
declare module '@primer/components/lib/BorderBox' {
import {BorderBox} from '@primer/components'
export default BorderBox
}
declare module '@primer/components/lib/BranchName' {
import {BranchName} from '@primer/components'
export default BranchName
}
declare module '@primer/components/lib/CircleBadge' {
import {CircleBadge} from '@primer/components'
export default CircleBadge
}
declare module '@primer/components/lib/CircleOcticon' {
import {CircleOcticon} from '@primer/components'
export default CircleOcticon
}
declare module '@primer/components/lib/StyledOcticon' {
import {StyledOcticon} from '@primer/components'
export default StyledOcticon
}
declare module '@primer/components/lib/Dropdown' {
import {Dropdown} from '@primer/components'
export default Dropdown
}
declare module '@primer/components/lib/FilterList' {
import {FilterList} from '@primer/components'
export default FilterList
}
declare module '@primer/components/lib/Flash' {
import {Flash} from '@primer/components'
export default Flash
}
declare module '@primer/components/lib/Grid' {
import {Grid} from '@primer/components'
export default Grid
}
declare module '@primer/components/lib/CounterLabel' {
import {CounterLabel} from '@primer/components'
export default CounterLabel
}
declare module '@primer/components/lib/Label' {
import {Label} from '@primer/components'
export default Label
}
declare module '@primer/components/lib/Link' {
import {Link} from '@primer/components'
export default Link
}
declare module '@primer/components/lib/Pagination' {
import {Pagination} from '@primer/components'
export default Pagination
}
declare module '@primer/components/lib/PointerBox' {
import {PointerBox} from '@primer/components'
export default PointerBox
}
declare module '@primer/components/lib/Popover' {
import {Popover} from '@primer/components'
export default Popover
}
declare module '@primer/components/lib/Relative' {
import {Relative} from '@primer/components'
export default Relative
}
declare module '@primer/components/lib/Absolute' {
import {Absolute} from '@primer/components'
export default Absolute
}
declare module '@primer/components/lib/Sticky' {
import {Sticky} from '@primer/components'
export default Sticky
}
declare module '@primer/components/lib/Fixed' {
import {Fixed} from '@primer/components'
export default Fixed
}
declare module '@primer/components/lib/Pagehead' {
import {Pagehead} from '@primer/components'
export default Pagehead
}
declare module '@primer/components/lib/SelectMenu' {
import {SelectMenu} from '@primer/components'
export default SelectMenu
}
declare module '@primer/components/lib/StateLabel' {
import {StateLabel} from '@primer/components'
export default StateLabel
}
declare module '@primer/components/lib/TabNav' {
import {TabNav} from '@primer/components'
export default TabNav
}
declare module '@primer/components/lib/TextInput' {
import {TextInput} from '@primer/components'
export default TextInput
}
declare module '@primer/components/lib/Timeline' {
import {Timeline} from '@primer/components'
export default Timeline
}
declare module '@primer/components/lib/Tooltip' {
import {Tooltip} from '@primer/components'
export default Tooltip
}
declare module '@primer/components/lib/UnderlineNav' {
import {UnderlineNav} from '@primer/components'
export default UnderlineNav
}
declare module '@primer/components/lib/SideNav' {
import {SideNav} from '@primer/components'
export default SideNav
}
declare module '@primer/components/lib/SubNav' {
import {SubNav} from '@primer/components'
export default SubNav
}
declare module '@primer/components/lib/theme' {
import {theme} from '@primer/components'
export default theme
}
declare module '@primer/components/lib/Dialog' {
import {Dialog} from '@primer/components'
export default Dialog
}
declare module '@primer/components/lib/LabelGroup' {
import {LabelGroup} from '@primer/components'
export default LabelGroup
}
declare module '@primer/components/lib/ProgressBar' {
import {ProgressBar} from '@primer/components'
export default ProgressBar
}
declare module '@primer/components/lib/AvatarStack' {
import {AvatarStack} from '@primer/components'
export default AvatarStack
}
declare module '@primer/components/lib/Breadcrumbs' {
import {Breadcrumb} from '@primer/components'
export default Breadcrumb
}
declare module '@primer/components/lib/FormGroup' {
import {FormGroup} from '@primer/components'
export default FormGroup
}