-
Notifications
You must be signed in to change notification settings - Fork 13
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
30d13c0
commit 5ab7750
Showing
11 changed files
with
166 additions
and
2 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
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
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,5 @@ | ||
limel-list { | ||
// Default icon color for the list if not | ||
// set by list items | ||
--icon-background-color: #ff3195; | ||
} |
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,57 @@ | ||
import { Component } from '@stencil/core'; | ||
import { ListItem } from '../../interface'; | ||
|
||
@Component({ | ||
tag: 'limel-example-list-badge-icons', | ||
shadow: true, | ||
styleUrl: 'list-badge-icons.scss', | ||
}) | ||
export class BadgeIconsListExample { | ||
private items: ListItem[] = [ | ||
{ | ||
text: 'King of Tokyo', | ||
secondaryText: '2-6 players', | ||
id: 1, | ||
icon: 'animals/gorilla', | ||
}, | ||
{ | ||
text: 'Smash Up!', | ||
secondaryText: '2-4 players', | ||
id: 2, | ||
icon: 'cinema/alien', | ||
iconColor: '#66bb6a', | ||
}, | ||
{ | ||
text: 'Pandemic', | ||
secondaryText: '2-4 players', | ||
id: 3, | ||
icon: 'Healthcare/virus', | ||
iconColor: '#ff7043', | ||
}, | ||
{ | ||
text: 'Catan', | ||
secondaryText: '3-4 players', | ||
id: 4, | ||
icon: 'plants/wheat', | ||
iconColor: '#ffb03b', | ||
}, | ||
{ | ||
text: 'Ticket to Ride', | ||
secondaryText: '2-5 players', | ||
id: 5, | ||
icon: 'transport/steam_engine', | ||
iconColor: '#57879f', | ||
}, | ||
]; | ||
|
||
public render() { | ||
return [ | ||
<limel-list items={this.items} badgeIcons={true} />, | ||
<hr />, | ||
<p> | ||
When importing ListItem, see{' '} | ||
<a href="/usage#import-statements">Usage</a> | ||
</p>, | ||
]; | ||
} | ||
} |
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,27 @@ | ||
import { Component } from '@stencil/core'; | ||
import { ListItem } from '../../interface'; | ||
|
||
@Component({ | ||
tag: 'limel-example-list-icons', | ||
shadow: true, | ||
}) | ||
export class IconsListExample { | ||
private items: ListItem[] = [ | ||
{ text: 'King of Tokyo', id: 1, icon: 'animals/gorilla' }, | ||
{ text: 'Smash Up!', id: 2, icon: 'cinema/alien' }, | ||
{ text: 'Pandemic', id: 3, icon: 'Healthcare/virus' }, | ||
{ text: 'Catan', id: 4, icon: 'plants/wheat' }, | ||
{ text: 'Ticket to Ride', id: 5, icon: 'transport/steam_engine' }, | ||
]; | ||
|
||
public render() { | ||
return [ | ||
<limel-list items={this.items} />, | ||
<hr />, | ||
<p> | ||
When importing ListItem, see{' '} | ||
<a href="/usage#import-statements">Usage</a> | ||
</p>, | ||
]; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.