Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
7796985
update version
Jul 25, 2019
4580a59
update version
Aug 20, 2019
47d1a92
update tests
Jul 24, 2019
8686350
update tests
Jul 25, 2019
870a4a2
update docs
Jul 25, 2019
8cdc34d
version
Jul 22, 2019
49e8d17
fix button styles
Jul 26, 2019
559a16a
update snapshots
Jul 26, 2019
ae8dca5
typos
Jul 26, 2019
e5b5ba8
add whitespace prop to Text
Jul 26, 2019
4079bd0
move whitespace to TYPOGRAPHY
Jul 26, 2019
08e81e9
move margin out of default props
Jul 29, 2019
8991aca
lint
Jul 29, 2019
92aaf60
fix font size typo
Jul 29, 2019
3341af6
add change back
Jul 29, 2019
db34c42
fix: wrong links
Jul 27, 2019
8a83946
commit docs suggestion
Jul 31, 2019
7dd007f
update types for FlexContainer
Aug 6, 2019
94f0be7
update version
Aug 6, 2019
3b76d40
Adding skeleton for TabNav.
dmarcey Aug 26, 2019
82b1e0d
Style TabNav component.
dmarcey Aug 26, 2019
24d282f
Added type definitions and unit tests for TabNav.
dmarcey Aug 27, 2019
84cc6c0
Clean up a test name.
dmarcey Aug 27, 2019
f8cd9aa
Use aria-label instead of label in .d.ts and test.
dmarcey Aug 27, 2019
212c6f3
Adding TabNav.Item and UnderNav.Item to typings.
dmarcey Aug 27, 2019
c347c8d
create getting started docs
Aug 14, 2019
877137a
add getting started to side nav
Aug 14, 2019
1b6004d
Update pages/components/docs/getting-started.md
Aug 16, 2019
5662a63
Update pages/components/docs/getting-started.md
Aug 16, 2019
713e9fd
Update pages/components/docs/getting-started.md
Aug 16, 2019
1e3ab1d
Update pages/components/docs/getting-started.md
Aug 16, 2019
4b43609
Update pages/components/docs/getting-started.md
Aug 16, 2019
6aed73f
Change is to as
urre Aug 17, 2019
fa85516
5 things you need to know
Aug 15, 2019
dbbdc56
5 things
Aug 16, 2019
965d0fe
add links
Aug 16, 2019
6f54ea9
formatting
Aug 16, 2019
57ba03b
rename to core concepts
Aug 16, 2019
8a753f7
rename sidenav link
Aug 16, 2019
7fecefe
formatting
Aug 16, 2019
7519acb
Update pages/components/docs/core-concepts
Aug 16, 2019
10f4831
update docs
Aug 19, 2019
7fbc94c
ignore cache
Aug 19, 2019
7eca4f9
update docs
Aug 19, 2019
68b62e0
update version
Aug 20, 2019
53127d6
non-strict version for octicons
Aug 20, 2019
c7043f3
non-strict version for styled system
Aug 20, 2019
66b302b
refactor flex types
Aug 20, 2019
6215adc
undo styled system version changes
Aug 20, 2019
2abf9b8
try
Aug 20, 2019
db0a339
fix versions
Aug 20, 2019
d0ad0fa
don;'t extend flexitem
Aug 20, 2019
5af0465
test
Aug 20, 2019
c4313fb
add item back
Aug 20, 2019
308e0bd
use styled-system props
Aug 20, 2019
18346c7
just add the dep
Aug 27, 2019
aad5280
update version
Aug 28, 2019
4e0d8bc
Add TypeScript definitions for Dialog component
rafeca Jul 31, 2019
91b4cbc
fix core-concepts file
Aug 29, 2019
b3799bb
5 things you need to know
Aug 15, 2019
9e79442
5 things
Aug 16, 2019
1a8c73d
add links
Aug 16, 2019
60a5b63
formatting
Aug 16, 2019
748ab49
rename to core concepts
Aug 16, 2019
d9ae5db
rename sidenav link
Aug 16, 2019
ef406f0
formatting
Aug 16, 2019
b26b181
Update pages/components/docs/core-concepts
Aug 16, 2019
92eb8ee
update docs
Aug 19, 2019
e67bf51
ignore cache
Aug 19, 2019
60eac33
update docs
Aug 19, 2019
5293e04
update version
Aug 20, 2019
5809852
non-strict version for octicons
Aug 20, 2019
361a225
non-strict version for styled system
Aug 20, 2019
c598b62
refactor flex types
Aug 20, 2019
a3d6acc
undo styled system version changes
Aug 20, 2019
a2db553
try
Aug 20, 2019
0c79c83
fix versions
Aug 20, 2019
75937d1
don;'t extend flexitem
Aug 20, 2019
8d72aca
test
Aug 20, 2019
447cea6
add item back
Aug 20, 2019
09ac820
use styled-system props
Aug 20, 2019
1eb700f
just add the dep
Aug 27, 2019
a9d3665
update version
Aug 28, 2019
be07617
Add TypeScript definitions for Dialog component
rafeca Jul 31, 2019
56837cc
fix core-concepts file
Aug 29, 2019
104ca77
use master details
Aug 29, 2019
8982966
Merge branch 'release-13.3.2' of github.com:primer/components into re…
Aug 29, 2019
8794a6c
use master version of snapshots
Aug 29, 2019
9409bcd
add margin bottom to theme link
Aug 29, 2019
ae46488
Merge branch 'master' into release-13.3.2
Aug 29, 2019
b728087
update package lock
Aug 29, 2019
714308d
delete stray core-concepts file
Aug 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 42 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
declare module '@primer/components' {
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>
import * as StyledSystem from 'styled-system'
import * as StyledSystemProps from '@styled-system/prop-types'
import * as StyledComponents from 'styled-components'
import * as History from 'history'

Expand All @@ -11,7 +12,7 @@ declare module '@primer/components' {
to?: History.LocationDescriptor
}

interface CommonProps extends BaseProps, StyledSystem.ColorProps, StyledSystem.SpaceProps {}
interface CommonProps extends BaseProps, StyledSystemProps.color, StyledSystemProps.space {}

interface LayoutProps
extends BaseProps,
Expand Down Expand Up @@ -60,11 +61,14 @@ declare module '@primer/components' {
StyledSystem.AlignSelfProps,
StyledSystem.OrderProps {}

interface FlexContainerProps
interface FlexProps
extends BaseProps,
CommonProps,
LayoutProps,
FlexItemProps,
StyledSystem.FlexProps,
StyledSystem.JustifySelfProps,
StyledSystem.AlignSelfProps,
StyledSystem.OrderProps,
StyledSystem.FlexBasisProps,
StyledSystem.FlexDirectionProps,
StyledSystem.FlexWrapProps,
Expand All @@ -73,10 +77,6 @@ declare module '@primer/components' {
StyledSystem.JustifyContentProps,
StyledSystem.JustifyItemsProps {}

export interface FlexProps
extends FlexContainerProps,
Omit<React.HTMLProps<HTMLDivElement>, keyof FlexContainerProps> {}

export const Flex: React.FunctionComponent<FlexProps> & {
Item: React.FunctionComponent<FlexItemProps>
}
Expand Down Expand Up @@ -237,6 +237,18 @@ declare module '@primer/components' {

export const StateLabel: React.FunctionComponent<StateLabelProps>

export interface TabNavProps extends CommonProps {
'aria-label'?: string
}

export interface TabNavItemProps extends CommonProps {
selected?: boolean
}

export const TabNav: React.FunctionComponent<TabNavProps> & {
Item: React.FunctionComponent<TabNavItemProps>
}

export interface TextInputProps extends CommonProps {
autocomplete?: string
'aria-label'?: string
Expand Down Expand Up @@ -272,9 +284,23 @@ declare module '@primer/components' {
label?: string
}

export const UnderlineNav: React.FunctionComponent<UnderlineNavProps>
export interface UnderlineNavItemProps extends CommonProps {
selected?: boolean
}

export const UnderlineNav: React.FunctionComponent<UnderlineNavProps> & {
Item: React.FunctionComponent<UnderlineNavItemProps>
}

export const theme: Object

export interface DialogProps extends CommonProps {
title: string
isOpen: boolean
onDismiss: () => unknown
}

export const Dialog: React.FunctionComponent<DialogProps>
}

declare module '@primer/components/src/Box' {
Expand Down Expand Up @@ -404,6 +430,10 @@ declare module '@primer/components/src/StateLabel' {
import {StateLabel} from '@primer/components'
export default StateLabel
}
declare module '@primer/components/src/TabNav' {
import {TabNav} from '@primer/components'
export default TabNav
}
declare module '@primer/components/src/TextInput' {
import {TextInput} from '@primer/components'
export default TextInput
Expand All @@ -420,3 +450,7 @@ declare module '@primer/components/src/theme' {
import {theme} from '@primer/components'
export default theme
}
declare module '@primer/components/src/Dialog' {
import {Dialog} from '@primer/components'
export default Dialog
}
Loading