Skip to content

Commit

Permalink
Merge pull request #99 from dunkinbase/docs_update
Browse files Browse the repository at this point in the history
Docs label indicator for new component, controller updates and Release v0.4.0
  • Loading branch information
LowBP authored May 10, 2019
2 parents 558c792 + e61d780 commit 29d69f8
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 73 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,15 @@ For any other contributions, read [CONTRIBUTING.md](CONTRIBUTING.md)
- [ ] Label
- [x] Checkbox
- [x] Radio
- [x] Html select
- [ ] Slider
- [x] Switch

- [ ] Form Inputs
- [ ] File input
- [ ] Numeric input
- [x] File input
- [x] Numeric input
- [x] Text input
- [x] Text area
- [x] Tag input

- [ ] Overlays
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-elements",
"version": "0.3.1",
"version": "0.4.0",
"description": "**Ember Elements** is a UI toolkit built with Typescript and made available as an **Ember addon**. It is based on the awesome **[Blueprint design system](https://blueprintjs.com/docs)**",
"keywords": [
"ui-components",
Expand Down
55 changes: 0 additions & 55 deletions tests/dummy/app/docs/core/button/template.hbs

This file was deleted.

2 changes: 1 addition & 1 deletion tests/dummy/app/docs/core/html-select/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@fill={{fill}}
@large={{large}}
@minimal={{minimal}}
onChange={{action 'onChange'}}
@onChange={{action 'onChange'}}
>
</HtmlSelect>
{{! END-SNIPPET }}
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/docs/core/input-group/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
@large={{isLarge}}
@small={{isSmall}}
@intent={{intent}}
@onkeyDown={{action 'onkeyDown'}}>
>
<Select @data={{data}} @type='button'
@selected={{selected}}
@minimal={{false}}
Expand Down
12 changes: 12 additions & 0 deletions tests/dummy/app/docs/core/text-area/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ import Route from '@ember/routing/route';

export default class DocsCoreTextArea extends Route.extend({
// anything which *must* be merged to prototype here
resetController(controller: any, isExiting: any, transition: any) {
if (isExiting && transition.targetName !== 'error') {
controller.set('disabled', false);
controller.set('fill', false);
controller.set('large', false);
controller.set('intent', "none");
controller.set('leftIcon', "");
controller.set('small', false);
controller.set('readOnly', false);

}
}
}) {
// normal class body definition here
}
6 changes: 4 additions & 2 deletions tests/dummy/app/docs/core/text-area/template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Text area

<div class="bp3-running-text bp3-text-large">
<p>Apply <code>Classes.INPUT</code> on a <code>&lt;textarea&gt;</code>, or use the <code>TextArea</code> component.</p>
</div>
{{#docs-demo as |demo|}}
{{#demo.example}}
<div class="demo-container">
Expand Down Expand Up @@ -53,7 +55,7 @@
{{demo.snippet label="component.ts" name="docs-example-basic-text-area.ts"}}
{{/docs-demo}}

# Props
## Props
<div class="docs-modifiers">
<div class="docs-modifiers-table bp3-running-text">
<table class="bp3-html-table">
Expand Down
20 changes: 10 additions & 10 deletions tests/dummy/app/docs/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,33 @@
</div>
{{#nav.subnav as |nav|}}
{{nav.item 'Form Group' 'docs.core.form-group'}}
<span class="bp3-tag bp3-intent-success bp3-minimal docs-nav-tag float-right">
<span class="bp3-text-overflow-ellipsis bp3-fill">new </span>
</span>
{{nav.item 'Checkbox' 'docs.core.check-box'}}
<span class="bp3-tag bp3-intent-success bp3-minimal docs-nav-tag float-right">
<span class="bp3-text-overflow-ellipsis bp3-fill">new </span>
</span>
{{nav.item 'Radio' 'docs.core.radio'}}
{{nav.item 'HTML select' 'docs.core.html-select'}}
<span class="bp3-tag bp3-intent-success bp3-minimal docs-nav-tag float-right">
<span class="bp3-text-overflow-ellipsis bp3-fill">new </span>
</span>
{{nav.item 'HTML select' 'docs.core.html-select'}}
{{nav.item 'Control Group' 'docs.core.control-group'}}
<span class="bp3-tag bp3-intent-success bp3-minimal docs-nav-tag float-right">
<span class="bp3-text-overflow-ellipsis bp3-fill">new </span>
</span>
{{nav.item 'Switch' 'docs.core.switch'}}
{{/nav.subnav}}

<div class="subnav-section">
{{nav.section 'FORM INPUTS' style='large'}}
</div>
{{#nav.subnav as |nav|}}
<span class="bp3-tag bp3-intent-success bp3-minimal docs-nav-tag float-right">
<span class="bp3-text-overflow-ellipsis bp3-fill">new </span>
</span>
{{nav.item 'File Input' 'docs.core.file-input'}}
{{nav.item 'Input Group' 'docs.core.input-group'}}
<span class="bp3-tag bp3-intent-success bp3-minimal docs-nav-tag float-right">
<span class="bp3-text-overflow-ellipsis bp3-fill">new </span>
</span>
{{nav.item 'Numeric input' 'docs.core.numeric-input'}}
{{nav.item 'Tag Input' 'docs.core.tag-input'}}
<span class="bp3-tag bp3-intent-success bp3-minimal docs-nav-tag float-right">
<span class="bp3-text-overflow-ellipsis bp3-fill">new </span>
</span>
{{nav.item 'Text Area' 'docs.core.text-area'}}
{{/nav.subnav}}
<div class="subnav-section">
Expand Down

0 comments on commit 29d69f8

Please sign in to comment.