-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add types card, center, chip, cover, css
- Loading branch information
Showing
5 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |