-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into app-frame-component
- Loading branch information
Showing
223 changed files
with
1,837 additions
and
873 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
packages/components/addon/components/hds/application-state/body.hbs
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,13 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: MPL-2.0 | ||
}} | ||
<div class="hds-application-state__body" ...attributes> | ||
{{#if (has-block)}} | ||
{{yield}} | ||
{{else}} | ||
<p class="hds-application-state__body-text hds-typography-body-300"> | ||
{{@text}} | ||
</p> | ||
{{/if}} | ||
</div> |
7 changes: 7 additions & 0 deletions
7
packages/components/addon/components/hds/application-state/footer.hbs
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,7 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: MPL-2.0 | ||
}} | ||
<div class={{this.classNames}} ...attributes> | ||
{{yield (hash Link::Standalone=(component "hds/link/standalone"))}} | ||
</div> |
30 changes: 30 additions & 0 deletions
30
packages/components/addon/components/hds/application-state/footer.js
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,30 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
export default class HdsApplicationStateFooterComponent extends Component { | ||
/** | ||
* Indicate if the footer should have a top border or not. | ||
* | ||
* @param hasDivider | ||
* @type {boolean} | ||
* @default false | ||
*/ | ||
get hasDivider() { | ||
return this.args.hasDivider || false; | ||
} | ||
|
||
/** | ||
* Get the class names to apply to the component. | ||
* @method classNames | ||
* @return {string} The "class" attribute to apply to the component. | ||
*/ | ||
get classNames() { | ||
let classes = ['hds-application-state__footer']; | ||
|
||
// add a class based on the existence of @hasDivider argument | ||
if (this.hasDivider) { | ||
classes.push(`hds-application-state__footer--has-divider`); | ||
} | ||
|
||
return classes.join(' '); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
packages/components/addon/components/hds/application-state/header.hbs
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,20 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: MPL-2.0 | ||
}} | ||
<div class="hds-application-state__header" ...attributes> | ||
{{#if @icon}} | ||
<div class="hds-application-state__icon"> | ||
<FlightIcon @name={{@icon}} @size="24" /> | ||
</div> | ||
{{/if}} | ||
<div class="hds-application-state__title hds-typography-display-400 hds-font-weight-semibold"> | ||
{{@title}} | ||
</div> | ||
{{#if @errorCode}} | ||
<div class="hds-application-state__error-code hds-typography-body-100 hds-font-weight-medium"> | ||
Error | ||
{{@errorCode}} | ||
</div> | ||
{{/if}} | ||
</div> |
13 changes: 13 additions & 0 deletions
13
packages/components/addon/components/hds/application-state/index.hbs
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,13 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: MPL-2.0 | ||
}} | ||
<div class="hds-application-state" ...attributes> | ||
{{yield | ||
(hash | ||
Header=(component "hds/application-state/header") | ||
Body=(component "hds/application-state/body") | ||
Footer=(component "hds/application-state/footer") | ||
) | ||
}} | ||
</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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: MPL-2.0 | ||
}} | ||
|
||
<div class="hds-dropdown__footer {{if @hasDivider 'hds-dropdown__footer--with-divider'}}" ...attributes> | ||
{{yield}} | ||
</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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: MPL-2.0 | ||
}} | ||
|
||
<div class="hds-dropdown__header {{if @hasDivider 'hds-dropdown__header--with-divider'}}" ...attributes> | ||
{{yield}} | ||
</div> |
5 changes: 5 additions & 0 deletions
5
packages/components/addon/components/hds/dropdown/list-item/checkbox.hbs
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
5 changes: 5 additions & 0 deletions
5
packages/components/addon/components/hds/dropdown/list-item/checkbox.js
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
5 changes: 5 additions & 0 deletions
5
packages/components/addon/components/hds/dropdown/list-item/checkmark.hbs
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
5 changes: 5 additions & 0 deletions
5
packages/components/addon/components/hds/dropdown/list-item/checkmark.js
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
5 changes: 5 additions & 0 deletions
5
packages/components/addon/components/hds/dropdown/list-item/radio.hbs
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
5 changes: 5 additions & 0 deletions
5
packages/components/addon/components/hds/dropdown/list-item/radio.js
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
5 changes: 5 additions & 0 deletions
5
packages/components/addon/components/hds/dropdown/toggle/chevron.hbs
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: MPL-2.0 | ||
}} | ||
|
||
<div class="hds-dropdown-toggle-chevron"> | ||
<FlightIcon @name="chevron-down" @isInlineBlock={{false}} /> | ||
</div> |
7 changes: 0 additions & 7 deletions
7
packages/components/addon/components/hds/empty-state/body.hbs
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/components/addon/components/hds/empty-state/footer.hbs
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/components/addon/components/hds/empty-state/header.hbs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.