-
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.
* fix(Label): Update to v1 API * fix(Label): Update to v1 API * fix(routes): remove legacy list route * feat(List): More docs * feat(List): More docs * feat(List): More docs * fix(List): Update List usage * feat(List): More docs * feat(List): add tests * fix(List): fix review issues * fix(List): update test
- Loading branch information
1 parent
a89545d
commit 8dd3e11
Showing
87 changed files
with
1,689 additions
and
710 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
42 changes: 0 additions & 42 deletions
42
docs/app/Examples/elements/List/Content/ListContentExamples.js
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
docs/app/Examples/elements/List/Content/ListDescriptionExample.js
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
docs/app/Examples/elements/List/Content/ListExampleDescription.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,39 @@ | ||
import React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListExampleDescription = () => ( | ||
<List> | ||
<List.Item> | ||
<List.Icon name='map marker' /> | ||
<List.Content> | ||
<List.Header as='a'>Krowlewskie Jadlo</List.Header> | ||
<List.Description>An excellent polish restaurant, quick delivery and hearty, filling meals.</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<List.Icon name='map marker' /> | ||
<List.Content> | ||
<List.Header as='a'>Xian Famous Foods</List.Header> | ||
<List.Description> | ||
A taste of Shaanxi's delicious culinary traditions, with delights like spicy cold noodles and lamb burgers. | ||
</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<List.Icon name='map marker' /> | ||
<List.Content> | ||
<List.Header as='a'>Sapporo Haru</List.Header> | ||
<List.Description>Greenpoint's best choice for quick and delicious sushi.</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<List.Icon name='map marker' /> | ||
<List.Content> | ||
<List.Header as='a'>Enid's</List.Header> | ||
<List.Description>At night a bar, during the day a delicious brunch spot.</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
</List> | ||
) | ||
|
||
export default ListExampleDescription |
25 changes: 25 additions & 0 deletions
25
docs/app/Examples/elements/List/Content/ListExampleHeader.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,25 @@ | ||
import React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListExampleHeader = () => ( | ||
<List> | ||
<List.Item> | ||
<List.Header>New York City</List.Header> | ||
A lovely city | ||
</List.Item> | ||
<List.Item> | ||
<List.Header>Chicago</List.Header> | ||
Also quite a lovely city | ||
</List.Item> | ||
<List.Item> | ||
<List.Header>Los Angeles</List.Header> | ||
Sometimes can be a lovely city | ||
</List.Item> | ||
<List.Item> | ||
<List.Header>San Francisco</List.Header> | ||
What a lovely city | ||
</List.Item> | ||
</List> | ||
) | ||
|
||
export default ListExampleHeader |
31 changes: 31 additions & 0 deletions
31
docs/app/Examples/elements/List/Content/ListExampleIcon.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,31 @@ | ||
import React from 'react' | ||
import { Icon, List } from 'stardust' | ||
|
||
const ListExampleIcon = () => ( | ||
<List> | ||
<List.Item as='a'> | ||
<Icon name='help' /> | ||
<List.Content> | ||
<List.Header>Floated Icon</List.Header> | ||
<List.Description> | ||
This text will always have a left margin to make sure it sits alongside your icon | ||
</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item as='a'> | ||
<Icon name='right triangle' /> | ||
<List.Content> | ||
<List.Header>Icon Alignment</List.Header> | ||
<List.Description> | ||
Floated icons are by default top aligned. To have an icon top aligned try this example. | ||
</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<Icon name='help' /> | ||
Inline Text | ||
</List.Item> | ||
</List> | ||
) | ||
|
||
export default ListExampleIcon |
44 changes: 44 additions & 0 deletions
44
docs/app/Examples/elements/List/Content/ListExampleImage.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,44 @@ | ||
import React from 'react' | ||
import { List, Image } from 'stardust' | ||
|
||
const ListExampleImage = () => ( | ||
<List> | ||
<List.Item> | ||
<Image avatar src='http://semantic-ui.com/images/avatar2/small/rachel.png' /> | ||
<List.Content> | ||
<List.Header as='a'>Rachel</List.Header> | ||
<List.Description>Last seen watching <a><b>Arrested Development</b></a> just now.</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<Image avatar src='http://semantic-ui.com/images/avatar2/small/lindsay.png' /> | ||
<List.Content> | ||
<List.Header as='a'>Lindsay</List.Header> | ||
<List.Description>Last seen watching <a><b>Bob's Burgers</b></a> 10 hours ago.</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<Image avatar src='http://semantic-ui.com/images/avatar2/small/matthew.png' /> | ||
<List.Content> | ||
<List.Header as='a'>Matthew</List.Header> | ||
<List.Description>Last seen watching <a><b>The Godfather Part 2</b></a> yesterday.</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<Image avatar src='http://semantic-ui.com/images/avatar/small/jenny.jpg' /> | ||
<List.Content> | ||
<List.Header as='a'>Jenny Hess</List.Header> | ||
<List.Description>Last seen watching <a><b>Twin Peaks</b></a> 3 days ago.</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
<List.Item> | ||
<Image avatar src='http://semantic-ui.com/images/avatar/small/veronika.jpg' /> | ||
<List.Content> | ||
<List.Header as='a'>Veronika Ossi</List.Header> | ||
<List.Description>Has not watched anything recently</List.Description> | ||
</List.Content> | ||
</List.Item> | ||
</List> | ||
) | ||
|
||
export default ListExampleImage |
12 changes: 12 additions & 0 deletions
12
docs/app/Examples/elements/List/Content/ListExampleItem.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,12 @@ | ||
import React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListExampleItem = () => ( | ||
<List> | ||
<List.Item>1</List.Item> | ||
<List.Item>2</List.Item> | ||
<List.Item>3</List.Item> | ||
</List> | ||
) | ||
|
||
export default ListExampleItem |
12 changes: 12 additions & 0 deletions
12
docs/app/Examples/elements/List/Content/ListExampleLink.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,12 @@ | ||
import React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListExampleLink = () => ( | ||
<List> | ||
<List.Item as='a'>What is a FAQ?</List.Item> | ||
<List.Item as='a'>Who is our user?</List.Item> | ||
<List.Item as='a'>Where is our office located?</List.Item> | ||
</List> | ||
) | ||
|
||
export default ListExampleLink |
21 changes: 21 additions & 0 deletions
21
docs/app/Examples/elements/List/Content/ListExampleLinkComplex.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,21 @@ | ||
import React from 'react' | ||
import { List } from 'stardust' | ||
|
||
const ListExampleLinkComplex = () => ( | ||
<List> | ||
<List.Item> | ||
<List.Header as='a'>Header</List.Header> | ||
<List.Description> | ||
Click a link in our <a>description</a>. | ||
</List.Description> | ||
</List.Item> | ||
<List.Item> | ||
<List.Header as='a'>Learn More</List.Header> | ||
<List.Description> | ||
Learn more about this site on <a>our FAQ page</a>. | ||
</List.Description> | ||
</List.Item> | ||
</List> | ||
) | ||
|
||
export default ListExampleLinkComplex |
14 changes: 0 additions & 14 deletions
14
docs/app/Examples/elements/List/Content/ListHeaderExample.js
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
docs/app/Examples/elements/List/Content/ListIconExample.js
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
docs/app/Examples/elements/List/Content/ListImageExample.js
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
docs/app/Examples/elements/List/Content/ListItemExample.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.