Skip to content

Commit

Permalink
expose components under carbon namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Mar 16, 2021
1 parent e35022e commit 15c54ec
Show file tree
Hide file tree
Showing 31 changed files with 48 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addon/components/breadcrumbs/component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { defaultArgs } from "../../decorators";
import { defaultArgs } from '../../decorators';

/** @documenter yuidoc */

Expand Down
1 change: 1 addition & 0 deletions app/components/carbon/breadcrumbs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/breadcrumbs/component';
1 change: 1 addition & 0 deletions app/components/carbon/button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/button/component';
1 change: 1 addition & 0 deletions app/components/carbon/card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/card/component';
1 change: 1 addition & 0 deletions app/components/carbon/charts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/charts/component';
1 change: 1 addition & 0 deletions app/components/carbon/checkbox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/checkbox/component';
1 change: 1 addition & 0 deletions app/components/carbon/code-snippet.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/code-snippet/component';
1 change: 1 addition & 0 deletions app/components/carbon/copy-button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/copy-button/component';
1 change: 1 addition & 0 deletions app/components/carbon/data-table.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/data-table/component';
1 change: 1 addition & 0 deletions app/components/carbon/dialogs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/dialogs/component';
1 change: 1 addition & 0 deletions app/components/carbon/form-input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/form-input/component';
1 change: 1 addition & 0 deletions app/components/carbon/icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/icon/component';
1 change: 1 addition & 0 deletions app/components/carbon/list.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/list/component';
1 change: 1 addition & 0 deletions app/components/carbon/loading.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/loading/component';
1 change: 1 addition & 0 deletions app/components/carbon/menu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/menu/component';
1 change: 1 addition & 0 deletions app/components/carbon/modal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/modal/component';
1 change: 1 addition & 0 deletions app/components/carbon/notification.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/notification/component';
1 change: 1 addition & 0 deletions app/components/carbon/pagination.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/pagination/component';
1 change: 1 addition & 0 deletions app/components/carbon/search-input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/search-input/component';
1 change: 1 addition & 0 deletions app/components/carbon/select.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/select/component';
1 change: 1 addition & 0 deletions app/components/carbon/tabs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/tabs/component';
1 change: 1 addition & 0 deletions app/components/carbon/tag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/tag/component';
1 change: 1 addition & 0 deletions app/components/carbon/tile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/tile/component';
1 change: 1 addition & 0 deletions app/components/carbon/toggle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/toggle/component';
1 change: 1 addition & 0 deletions app/components/carbon/ui-shell.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/components/ui-shell/component';
1 change: 1 addition & 0 deletions app/services/carbon/dialog-manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/services/dialog-manager';
1 change: 1 addition & 0 deletions app/services/carbon/notifications.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'carbon-components-ember/services/notifications';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.17",
"version": "0.3.18",
"name": "carbon-components-ember",
"keywords": [
"ember-addon"
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/pods/application/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import Controller from '@ember/controller';

export default class ApplicationController extends Controller {
@service('carbon-components-ember@dialog-manager') dialogManager;
@service('carbon-components-ember@notifications') notifications;
@service('carbon/notifications') notifications;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class NotificationController extends Controller {
/**
* @type {NotificationService}
*/
@service('carbon-components-ember@notifications') notifications;
@service('carbon/notifications') notifications;
@action
showNotification(type) {
this.notifications.info({
Expand Down
18 changes: 18 additions & 0 deletions tests/dummy/app/pods/docs/components/tag/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{import Tag from 'carbon-components-ember/components/tag'}}
{{import Demo from 'ember-cli-addon-docs/components/docs-demo'}}


<h1>Carbon Tag</h1>

<Demo as |demo|>
{{#demo.example name='tag.hbs'}}
{{!import Tag from 'carbon-components-ember/components/tag'}}

{{#each (array 'red' 'magenta' 'purple' 'blue' 'cyan' 'teal' 'green' 'gray' 'cool-gray' 'warm-gray') as |type|}}
<Carbon::Tag></Carbon::Tag>
<Tag @type={{type}}></Tag>
{{/each}}

{{/demo.example}}
<demo.snippet @name="tag.hbs" />
</Demo>

0 comments on commit 15c54ec

Please sign in to comment.