-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
41 changed files
with
126,187 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
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,20 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function CardBody({ children }) { | ||
return ( | ||
<div className="tyk-card__body"> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
CardBody.propTypes = { | ||
children: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
export default CardBody; |
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,20 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function CardFooter({ children }) { | ||
return ( | ||
<div className="tyk-card__footer"> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
CardFooter.propTypes = { | ||
children: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
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,29 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function CardHeader({ | ||
right = null, | ||
children, | ||
}) { | ||
return ( | ||
<div className="tyk-card__header"> | ||
{children && <div className="tyk-card__header-content">{children}</div>} | ||
{right && <div className="tyk-card__header-right">{right}</div>} | ||
</div> | ||
); | ||
} | ||
|
||
CardHeader.propTypes = { | ||
right: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
children: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
export default CardHeader; |
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,22 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function CardSubTitle({ | ||
children, | ||
}) { | ||
return ( | ||
<h5 className="tyk-card__sub-title"> | ||
{children} | ||
</h5> | ||
); | ||
} | ||
|
||
CardSubTitle.propTypes = { | ||
children: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
export default CardSubTitle; |
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,24 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function CardSummary({ | ||
maxLines = 2, // accepted values: 1, 2, 3, 4, 5 | ||
children, | ||
}) { | ||
return ( | ||
<p className={`tyk-card__summary tyk-card__summary--max-${maxLines}-lines`}> | ||
{children} | ||
</p> | ||
); | ||
} | ||
|
||
CardSummary.propTypes = { | ||
maxLines: PropTypes.number, | ||
children: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
export default CardSummary; |
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,24 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function CardTitle({ | ||
maxLines = 1, // accepted values: 1, 2 | ||
children, | ||
}) { | ||
return ( | ||
<h4 className={`tyk-card__title tyk-card__title--max-${maxLines}-lines`}> | ||
{children} | ||
</h4> | ||
); | ||
} | ||
|
||
CardTitle.propTypes = { | ||
maxLines: PropTypes.number, | ||
children: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
export default CardTitle; |
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,22 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function CardTitleGroup({ | ||
children, | ||
}) { | ||
return ( | ||
<div className="tyk-card__title-group"> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
CardTitleGroup.propTypes = { | ||
children: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
export default CardTitleGroup; |
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,22 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function CardTitleIcon({ | ||
children, | ||
}) { | ||
return ( | ||
<div className="tyk-card__title-icon"> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
CardTitleIcon.propTypes = { | ||
children: PropTypes.oneOfType([ | ||
PropTypes.element, | ||
PropTypes.node, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
export default CardTitleIcon; |
Oops, something went wrong.