Skip to content

Commit

Permalink
fix: add types card, center, chip, cover, css
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Sep 6, 2023
1 parent 5dab0e5 commit b1b35d4
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/card/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from 'react'

export interface CardProps {
children?: React.ReactNode
className?: string
dataTest?: string
}

export const Card: React.FC<CardProps>
15 changes: 15 additions & 0 deletions components/center/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import * as React from 'react'

export type CenterPosition = 'top' | 'middle' | 'bottom'

export interface CenterProps {
children?: React.ReactNode
className?: string
dataTest?: string
/**
* Vertical alignment
*/
position?: CenterPosition
}

export const Center: React.FC<CenterProps>
33 changes: 33 additions & 0 deletions components/chip/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import * as React from 'react'

export interface ChipProps {
children?: React.ReactNode
className?: string
dataTest?: string
dense?: boolean
disabled?: boolean
dragging?: boolean
icon?: React.ReactElement<any>
/**
* `margin-bottom` value, applied in `px`
*/
marginBottom?: number
/**
* `margin-left` value, applied in `px`
*/
marginLeft?: number
/**
* `margin-right` value, applied in `px`
*/
marginRight?: number
/**
* `margin-top` value, applied in `px`
*/
marginTop?: number
overflow?: boolean
selected?: boolean
onClick?: (arg0: {}, arg1: React.MouseEvent<HTMLSpanElement>) => void
onRemove?: (arg0: {}, arg1: React.MouseEvent<HTMLSpanElement>) => void
}

export const Chip: React.FC<ChipProps>
14 changes: 14 additions & 0 deletions components/cover/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as React from 'react'

export interface CoverProps {
children?: React.ReactNode
className?: string
dataTest?: string
/**
* Adds a semi-transparent background to the cover
*/
translucent?: boolean
onClick?: (arg0: {}, arg1: React.MouseEvent<HTMLDivElement>) => void
}

export const Cover: React.FC<CoverProps>
13 changes: 13 additions & 0 deletions components/css/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react'

export const CssReset: React.FC

export interface CssVariablesProps {
colors?: boolean
elevations?: boolean
layers?: boolean
spacers?: boolean
theme?: boolean
}

export const CssVariables: React.FC<CssVariablesProps>

0 comments on commit b1b35d4

Please sign in to comment.