-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Alexander Fedyashov
committed
Sep 29, 2016
1 parent
6f27d83
commit a7a817c
Showing
13 changed files
with
280 additions
and
25 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,23 @@ | ||
import React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListBulleted = () => { | ||
return ( | ||
<List bulleted> | ||
<List.Item>Gaining Access</List.Item> | ||
<List.Item>Inviting Friends</List.Item> | ||
<List.Item> | ||
<div>Benefits</div> | ||
|
||
<List.List> | ||
<List.Item href='#'>Link to somewhere</List.Item> | ||
<List.Item>Rebates</List.Item> | ||
<List.Item>Discounts</List.Item> | ||
</List.List> | ||
</List.Item> | ||
<List.Item>Warranty</List.Item> | ||
</List> | ||
) | ||
} | ||
|
||
export default ListBulleted |
14 changes: 0 additions & 14 deletions
14
docs/app/Examples/elements/List/Types/ListBulletedExample.js
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
docs/app/Examples/elements/List/Types/ListBulletedHorizontal.js
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 React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListBulletedHorizontal = () => { | ||
return ( | ||
<List bulleted horizontal> | ||
<List.Item as='a'>About Us</List.Item> | ||
<List.Item as='a'>Sitemap</List.Item> | ||
<List.Item as='a'>Contact</List.Item> | ||
</List> | ||
) | ||
} | ||
|
||
export default ListBulletedHorizontal |
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,25 @@ | ||
import React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListBulleted = () => { | ||
return ( | ||
<List as='ul' bulleted> | ||
<List.Item as='li'>Gaining Access</List.Item> | ||
<List.Item as='li'>Inviting Friends</List.Item> | ||
<List.Item as='li'> | ||
Benefits | ||
|
||
<List.List as='ul'> | ||
<List.Item as='li'> | ||
<a href='#'>Link to somewhere</a> | ||
</List.Item> | ||
<List.Item as='li'>Rebates</List.Item> | ||
<List.Item as='li'>Discounts</List.Item> | ||
</List.List> | ||
</List.Item> | ||
<List.Item as='li'>Warranty</List.Item> | ||
</List> | ||
) | ||
} | ||
|
||
export default ListBulleted |
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,80 @@ | ||
import React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListTree = () => { | ||
return ( | ||
<List> | ||
<List.Item> | ||
<List.Icon name='folder' /> | ||
<List.Content> | ||
<List.Header>src</List.Header> | ||
<List.Description>Source files for project</List.Description> | ||
<List.List> | ||
<List.Item> | ||
<List.Icon name='folder' /> | ||
<List.Content> | ||
<List.Header>site</List.Header> | ||
<List.Description>Your site's theme</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<List.Icon name='folder' /> | ||
<List.Content> | ||
<List.Header>themes</List.Header> | ||
<List.Description>Packaged theme files</List.Description> | ||
<List.List> | ||
<List.Item> | ||
<List.Icon name='folder' /> | ||
<List.Content> | ||
<List.Header>default</List.Header> | ||
<List.Description>Default packaged theme</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<List.Icon name='folder' /> | ||
<List.Content> | ||
<List.Header>my_theme</List.Header> | ||
<List.Description>Packaged themes are also available in this folder</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
</List.List> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<List.Icon name='file' /> | ||
<List.Content> | ||
<List.Header>theme.config</List.Header> | ||
<List.Description>Config file for setting packaged themes</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
</List.List> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<List.Icon name='folder' /> | ||
<List.Content> | ||
<List.Header>dist</List.Header> | ||
<List.Description>Compiled CSS and JS files</List.Description> | ||
<List.List> | ||
<List.Item> | ||
<List.Icon name='folder' /> | ||
<List.Content> | ||
<List.Header>components</List.Header> | ||
<List.Description>Individual component CSS and JS</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
</List.List> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<List.Icon name='file' /> | ||
<List.Content> | ||
<List.Header>semantic.json</List.Header> | ||
<List.Description>Contains build settings for gulp</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
</List> | ||
) | ||
} | ||
|
||
export default ListTree |
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,38 @@ | ||
import cx from 'classnames' | ||
import React, { PropTypes } from 'react' | ||
|
||
import { | ||
customPropTypes, | ||
getElementType, | ||
getUnhandledProps, | ||
META, | ||
} from '../../lib' | ||
|
||
function ListDescription(props) { | ||
const { children, className } = props | ||
const classes = cx(className, 'description') | ||
|
||
const ElementType = getElementType(ListDescription, props) | ||
const rest = getUnhandledProps(ListDescription, props) | ||
|
||
return <ElementType {...rest} className={classes}>{children}</ElementType> | ||
} | ||
|
||
ListDescription._meta = { | ||
name: 'ListDescription', | ||
parent: 'List', | ||
type: META.TYPES.ELEMENT, | ||
} | ||
|
||
ListDescription.propTypes = { | ||
/** An element type to render as (string or function). */ | ||
as: customPropTypes.as, | ||
|
||
/** Primary content of the ListDescription. */ | ||
children: PropTypes.node, | ||
|
||
/** Classes to add to the ListDescription className. */ | ||
className: PropTypes.string, | ||
} | ||
|
||
export default ListDescription |
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
Oops, something went wrong.