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.
Browse files
Browse the repository at this point in the history
Feature/#6
- Loading branch information
Showing
9 changed files
with
106 additions
and
182 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "@material/select/mdc-select"; |
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,42 @@ | ||
import {Component, Prop, Element, CssClassMap} from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'o-mdc-select', | ||
styleUrl: 'o-mdc-select.scss', | ||
shadow: true | ||
}) | ||
export class MdcSelectComponent { | ||
render() { | ||
return ( | ||
<div class="mdc-select" role="listbox" tabindex="0"> | ||
<div class="mdc-select__surface"> | ||
<div class="mdc-select__label">Pick a Food Group</div> | ||
<div class="mdc-select__selected-text"></div> | ||
<div class="mdc-select__bottom-line"></div> | ||
</div> | ||
<div class="mdc-simple-menu mdc-select__menu"> | ||
<ul class="mdc-list mdc-simple-menu__items"> | ||
<li class="mdc-list-item" role="option" tabindex="0"> | ||
Bread, Cereal, Rice, and Pasta | ||
</li> | ||
<li class="mdc-list-item" role="option" tabindex="0"> | ||
Vegetables | ||
</li> | ||
<li class="mdc-list-item" role="option" tabindex="0"> | ||
Fruit | ||
</li> | ||
<li class="mdc-list-item" role="option" tabindex="0"> | ||
Milk, Yogurt, and Cheese | ||
</li> | ||
<li class="mdc-list-item" role="option" tabindex="0"> | ||
Meat, Poultry, Fish, Dry Beans, Eggs, and Nuts | ||
</li> | ||
<li class="mdc-list-item" role="option" tabindex="0"> | ||
Fats, Oils, and Sweets | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} |
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 @@ | ||
@import "@material/textfield/mdc-text-field"; |
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 {Component} from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'o-mdc-text-field', | ||
styleUrl: 'o-mdc-text-field.scss', | ||
shadow: true | ||
}) | ||
export class MdcTextFieldComponent { | ||
render() { | ||
return ( | ||
<div class="mdc-text-field"> | ||
<input type="text" id="my-text-field" class="mdc-text-field__input"></input> | ||
<label class="mdc-text-field__label">Hint text</label> | ||
<div class="mdc-text-field__bottom-line"></div> | ||
</div> | ||
); | ||
} | ||
} |
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