This repository has been archived by the owner on Jul 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
RomuloCintra
committed
Dec 17, 2017
1 parent
335a2df
commit 38bada4
Showing
7 changed files
with
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Component, Prop, CssClassMap } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'o-mdc-list-item', | ||
styleUrl: 'o-mdc-list.scss', | ||
shadow: true | ||
}) | ||
export class MdcListItemComponent { | ||
render() { | ||
return ( | ||
<li class="mdc-list-item"> | ||
<slot/> | ||
</li> | ||
); | ||
} | ||
} |
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,18 @@ | ||
@import "@material/list/mdc-list"; | ||
|
||
.mdc---bordered { | ||
/* remove the side padding. we'll be placing it around the item instead. */ | ||
padding-right: 0; | ||
padding-left: 0; | ||
} | ||
.mdc-list--bordered .mdc-list-item { | ||
/* Add the list side padding padding to the list item. */ | ||
padding: 0 16px; | ||
/* Add a border around each element. */ | ||
border: 1px solid rgba(0, 0, 0, .12); | ||
} | ||
/* Ensure adjacent borders don't collide with one another. */ | ||
.mdc-list--bordered .mdc-list-item:not(:first-child) { | ||
border-top: none; | ||
} | ||
|
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,9 @@ | ||
import { flush, render } from '@stencil/core/testing'; | ||
import { MdcListComponent } from './o-mdc-list'; | ||
|
||
describe('o-mdc-Menu', () => { | ||
it('should build', () => { | ||
expect(new MdcListComponent()).toBeTruthy(); | ||
}); | ||
|
||
}); |
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 { Component, Prop, CssClassMap } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'o-mdc-list', | ||
styleUrl: 'o-mdc-list.scss', | ||
shadow: true | ||
}) | ||
export class MdcListComponent { | ||
|
||
@Prop()id : string; | ||
@Prop()dense : boolean; | ||
@Prop()avatarList : boolean; | ||
@Prop()twoLine : boolean; | ||
@Prop()bordered : boolean; | ||
|
||
render() { | ||
const listClasses: CssClassMap = { | ||
'mdc-list': true, | ||
'mdc-list--dense': this.dense, | ||
'mdc-list--avatar-list': this.avatarList, | ||
'mdc-list--two-line': this.twoLine, | ||
'mdc-list--bordered': this.bordered | ||
}; | ||
|
||
return ( | ||
<ul class={listClasses} id={this.id}> | ||
<slot/> | ||
</ul> | ||
); | ||
} | ||
} |
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,11 @@ | ||
# o-mdc-select | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built by [StencilJS](https://stenciljs.com/)* |
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