-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ca5da7
commit fc6129b
Showing
9 changed files
with
73 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,12 @@ | ||
import * as React from "react"; | ||
import * as OptionsHelper from "../../../utils/helpers/options-helper/options-helper"; | ||
|
||
export interface CardColumnProps { | ||
children: React.ReactNode; | ||
/** text alignment of the card section text */ | ||
align?: OptionsHelper.AlignFull; | ||
} | ||
|
||
declare function CardColumn(props: CardColumnProps): JSX.Element; | ||
|
||
export default CardColumn; |
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 @@ | ||
export { default } from "./card-column"; |
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,16 @@ | ||
import * as React from "react"; | ||
import { SpaceProps } from "styled-system"; | ||
import * as OptionsHelper from "../../../utils/helpers/options-helper/options-helper"; | ||
|
||
export interface CardFooterProps extends SpaceProps { | ||
children: React.ReactNode; | ||
/** | ||
* Predefined size of CardFooter for applying padding (small | medium | large). | ||
* For more granular control these can be over-ridden by Spacing props from styled-system. | ||
*/ | ||
spacing?: OptionsHelper.SizesRestricted; | ||
} | ||
|
||
declare function CardFooter(props: CardFooterProps): JSX.Element; | ||
|
||
export default CardFooter; |
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 @@ | ||
export { default } from "./card-footer"; |
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,16 @@ | ||
import * as React from "react"; | ||
import { PaddingProps } from "styled-system"; | ||
import * as OptionsHelper from "../../../utils/helpers/options-helper/options-helper"; | ||
|
||
export interface CardRowProps extends PaddingProps { | ||
children: React.ReactNode; | ||
/** | ||
* Spacing prop is set in Card and defines the padding for the CardRow (the first CardRow has no padding by default). | ||
* For more granular control of CardRow padding these can be over-ridden by Padding props from styled-system. | ||
*/ | ||
spacing?: OptionsHelper.SizesRestricted; | ||
} | ||
|
||
declare function CardRow(props: CardRowProps): JSX.Element; | ||
|
||
export default CardRow; |
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 @@ | ||
export { default } from "./card-row"; |
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,21 @@ | ||
import * as React from "react"; | ||
import * as OptionsHelper from "../../utils/helpers/options-helper/options-helper"; | ||
|
||
export interface CardProps { | ||
/** action to be executed when card is clicked or enter pressed */ | ||
action?: (ev: React.MouseEvent<HTMLDivElement>) => void; | ||
children: React.ReactNode; | ||
/** style value for width of card */ | ||
cardWidth?: string; | ||
/** flag to indicate if card is interactive */ | ||
interactive?: boolean; | ||
/** flag to indicate if card is draggable */ | ||
draggable?: boolean; | ||
/** size of card for applying padding (small | medium | large) */ | ||
spacing?: OptionsHelper.SizesRestricted; | ||
dataRole?: string; | ||
} | ||
|
||
declare function Card(props: CardProps): JSX.Element; | ||
|
||
export default Card; |
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 @@ | ||
export { default } from "./card"; |
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