This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds additional card fragments
- Loading branch information
Showing
7 changed files
with
149 additions
and
38 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
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 Flexbox from 'flexbox-react' | ||
|
||
const LargeCardContent = (props) => { | ||
return ( | ||
<Flexbox flexDirection='row' flexGrow={3} className={` ${props.className}`} style={props.style}> | ||
{props.children} | ||
</Flexbox> | ||
) | ||
} | ||
|
||
LargeCardContent.defaultProps = { | ||
|
||
} | ||
|
||
LargeCardContent.propTypes = { | ||
|
||
} | ||
|
||
export default LargeCardContent |
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' | ||
|
||
const LargeCardKeyValue = (props) => { | ||
return ( | ||
<div className={`summary_info ${props.className}`} onClick={props.onClick}> | ||
<span className="label">{props.name}</span> | ||
<span className="count">{props.value}</span> | ||
</div> | ||
) | ||
} | ||
|
||
LargeCardKeyValue.defaultProps = { | ||
|
||
} | ||
|
||
LargeCardKeyValue.propTypes = { | ||
|
||
} | ||
|
||
export default LargeCardKeyValue |
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,50 @@ | ||
import React from 'react' | ||
import Icon from '../suir/icon/Icon'; | ||
import Flexbox from 'flexbox-react' | ||
|
||
const LargeCardRecentList = (props) => { | ||
return ( | ||
<Flexbox flexDirection="column" flexGrow={1} className={props.className}> | ||
|
||
<h4 className='label'>Recent</h4> | ||
{props.items.map((item) => { | ||
let icon = ''; | ||
switch(item.state){ | ||
case 'warning': | ||
icon = 'icon_error-triangle_alt' | ||
break; | ||
case 'critical': | ||
icon = 'icon_error-circle_alt' | ||
break; | ||
default: | ||
icon = 'icon_check_alt2' | ||
} | ||
return( | ||
<Flexbox key={item.id} flexDirection='row' className={`state__body-${item.state} recent__activity__row`}> | ||
<Flexbox className={`state__body-${item.state}`} alignItems='center' marginRight='20px'> | ||
<Icon className={`text-uppercase text-small ei ${icon} text-large`} /> | ||
</Flexbox> | ||
<Flexbox className={`text-uppercase text-small state__body-${item.state}`} alignItems='center'marginRight='20px'> | ||
{item.status} | ||
</Flexbox> | ||
<Flexbox className={`text-uppercase text-small state__body-${item.state}`} alignItems='center'> | ||
{item.date} | ||
</Flexbox> | ||
</Flexbox> | ||
) | ||
}) | ||
} | ||
|
||
</Flexbox> | ||
) | ||
} | ||
|
||
LargeCardRecentList.defaultProps = { | ||
|
||
} | ||
|
||
LargeCardRecentList.propTypes = { | ||
items: React.PropTypes.array | ||
} | ||
|
||
export default LargeCardRecentList |
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