@hashicorp/design-system-components 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +45 -20
  2. package/addon/components/hds/application-state/body.hbs +13 -0
  3. package/addon/components/hds/application-state/footer.hbs +7 -0
  4. package/addon/components/hds/application-state/footer.js +30 -0
  5. package/addon/components/hds/application-state/header.hbs +20 -0
  6. package/addon/components/hds/application-state/index.hbs +13 -0
  7. package/addon/components/hds/dropdown/footer.hbs +5 -0
  8. package/addon/components/hds/dropdown/header.hbs +5 -0
  9. package/addon/components/hds/dropdown/list-item/checkbox.hbs +5 -0
  10. package/addon/components/hds/dropdown/list-item/checkbox.js +5 -0
  11. package/addon/components/hds/dropdown/list-item/checkmark.hbs +5 -0
  12. package/addon/components/hds/dropdown/list-item/checkmark.js +5 -0
  13. package/addon/components/hds/dropdown/list-item/radio.hbs +5 -0
  14. package/addon/components/hds/dropdown/list-item/radio.js +5 -0
  15. package/addon/components/hds/dropdown/toggle/chevron.hbs +5 -0
  16. package/addon/components/hds/side-nav/icon-button.hbs +1 -1
  17. package/app/components/hds/{empty-state → application-state}/body.js +1 -1
  18. package/app/components/hds/{empty-state → application-state}/footer.js +1 -1
  19. package/app/components/hds/{empty-state → application-state}/header.js +1 -1
  20. package/app/components/hds/{empty-state → application-state}/index.js +1 -1
  21. package/app/components/hds/dropdown/footer.js +5 -0
  22. package/app/components/hds/dropdown/header.js +5 -0
  23. package/app/components/hds/dropdown/list-item/checkbox.js +5 -0
  24. package/app/components/hds/dropdown/list-item/checkmark.js +5 -0
  25. package/app/components/hds/dropdown/list-item/radio.js +5 -0
  26. package/app/styles/@hashicorp/design-system-components.scss +1 -1
  27. package/app/styles/@hashicorp/design-system-power-select-overrides.scss +1 -1
  28. package/app/styles/components/application-state.scss +55 -0
  29. package/app/styles/components/form/checkbox.scss +1 -1
  30. package/app/styles/components/form/radio.scss +1 -1
  31. package/app/styles/components/form/text-input.scss +1 -1
  32. package/app/styles/components/form/textarea.scss +1 -1
  33. package/blueprints/hds-component-test/files/tests/integration/components/hds/__name__/index-test.js +14 -11
  34. package/package.json +2 -2
  35. package/addon/components/hds/empty-state/body.hbs +0 -7
  36. package/addon/components/hds/empty-state/footer.hbs +0 -7
  37. package/addon/components/hds/empty-state/header.hbs +0 -7
  38. package/addon/components/hds/empty-state/index.hbs +0 -13
  39. package/app/styles/components/empty-state.scss +0 -37
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1258](https://github.com/hashicorp/design-system/pull/1258) [`3466d2279`](https://github.com/hashicorp/design-system/commit/3466d2279191504442029976a4e18d3ca99015bf) Thanks [@MelSumner](https://github.com/MelSumner)! - Adds Hds::ApplicationState component
8
+
9
+ ### Patch Changes
10
+
11
+ - [#1291](https://github.com/hashicorp/design-system/pull/1291) [`b2c21a86e`](https://github.com/hashicorp/design-system/commit/b2c21a86ee681d53e728fa5c52192b9003762ea9) Thanks [@didoo](https://github.com/didoo)! - Fixed missing inset shadow for `TextInput`, `Textarea`, `Checkbox`, `Radio`, `PowerSelect` overrides
12
+
3
13
  ## 2.0.0
4
14
 
5
15
  ### Major Changes
@@ -29,11 +39,22 @@
29
39
 
30
40
  **Note:** If test assertions are relying on these class names, tests will fail. If extensions/overrides have been applied to these classes, they will suffer visual changes.
31
41
 
32
- ### Minor Changes
33
-
34
42
  - [#1266](https://github.com/hashicorp/design-system/pull/1266) [`082842b59`](https://github.com/hashicorp/design-system/commit/082842b59321f843c4955e4cdaf2ce2674a8913d) Thanks [@alex-ju](https://github.com/alex-ju)! - Add `@icon`, `@count`, `@badge` and `@badgeCount` to `Dropdown::Toggle::Button`
35
43
 
36
- - [#1276](https://github.com/hashicorp/design-system/pull/1276) [`5ad29412d`](https://github.com/hashicorp/design-system/commit/5ad29412d2edc0cc4265d3c0bbbf388e821f1cc7) Thanks [@alex-ju](https://github.com/alex-ju)! - Allow small `@size` on `Dropdown::ToggleIcon`
44
+ `Hds::Dropdown::Toggle::Button` and `Hds::Dropdown::Toggle::Icon` now share the chevron element. As a result, we renamed internal CSS classes as follows:
45
+
46
+ - `hds-button__text` → `hds-dropdown-toggle-button__text`
47
+ - `hds-button__icon` → `hds-dropdown-toggle-chevron`
48
+
49
+ The icon element within `Hds::Dropdown::Toggle::Icon` no longer has the `hds-dropdown-toggle-icon__chevron` class and it's currently wrapped in the `hds-dropdown-toggle-chevron` container, similar to `Hds::Dropdown::Toggle::Button`.
50
+
51
+ The `Hds::Dropdown::Toggle::Icon` now has a solid border, for consistency with `Hds::Dropdown::Toggle::Button` and the secondary style of `Hds::Button`.
52
+
53
+ **Note:** If test assertions are relying on these class names, tests will fail. If extensions/overrides have been applied to these classes, they will suffer visual changes.
54
+
55
+ ### Minor Changes
56
+
57
+ - [#1276](https://github.com/hashicorp/design-system/pull/1276) [`5ad29412d`](https://github.com/hashicorp/design-system/commit/5ad29412d2edc0cc4265d3c0bbbf388e821f1cc7) Thanks [@alex-ju](https://github.com/alex-ju)! - Allow small `@size` on `Dropdown::Toggle::Icon`
37
58
 
38
59
  - [#1262](https://github.com/hashicorp/design-system/pull/1262) [`3eb78b8de`](https://github.com/hashicorp/design-system/commit/3eb78b8de7c678cff977c9d3a677c47a3216caad) Thanks [@alex-ju](https://github.com/alex-ju)! - Add new `@listPositions` for `Dropdown` as follows:
39
60
 
@@ -426,32 +447,34 @@ This release signifies the first major release of the HashiCorp Design System. M
426
447
 
427
448
  ### Minor Changes (Some Breaking)
428
449
 
429
- - [#217](https://github.com/hashicorp/design-system/pull/217) [`210edd17`](https://github.com/hashicorp/design-system/commit/210edd17431e6e3097260aed0df5a8902f93b7f7) Thanks [@didoo](https://github.com/didoo)! - # Interactive
450
+ - [#217](https://github.com/hashicorp/design-system/pull/217) [`210edd17`](https://github.com/hashicorp/design-system/commit/210edd17431e6e3097260aed0df5a8902f93b7f7) Thanks [@didoo](https://github.com/didoo)!
451
+
452
+ #### Interactive
430
453
 
431
- - Introduced `<Hds::Interactive>` (a generic, "utility" component used internally by all the interactive elements like buttons and links)
454
+ - Introduced `<Hds::Interactive>` (a generic, "utility" component used internally by all the interactive elements like buttons and links)
432
455
 
433
- # Button
456
+ #### Button
434
457
 
435
- - updated the button API to handle also links as `<a>`/`<LinkTo/LinkToExternal>`
436
- - it can be used in place of the `<Hds::Link/LinkTo::CTA>` component (see below)
437
- - when the button is a link - the text is underlined for differentiation with a normal button - ⚠️ **Visual change!** - the button responds to `space` key event
438
- - removed the `@type` argument from the API in favour of the `type` native attribute - 🚨 **Breaking change!**
458
+ - updated the button API to handle also links as `<a>`/`<LinkTo/LinkToExternal>`
459
+ - it can be used in place of the `<Hds::Link/LinkTo::CTA>` component (see below)
460
+ - when the button is a link - the text is underlined for differentiation with a normal button - ⚠️ **Visual change!** - the button responds to `space` key event
461
+ - removed the `@type` argument from the API in favour of the `type` native attribute - 🚨 **Breaking change!**
439
462
 
440
- # Link/LinkTo::CTA
463
+ #### Link/LinkTo::CTA
441
464
 
442
- - removed the `<Hds::Link/LinkTo::CTA>` component, in favour of `<Hds::Button>` component (see above) - 🚨 **Breaking change!**
465
+ - removed the `<Hds::Link/LinkTo::CTA>` component, in favour of `<Hds::Button>` component (see above) - 🚨 **Breaking change!**
443
466
 
444
- # Link::Inline
467
+ #### Link::Inline
445
468
 
446
- - added the `<Hds::Link::Inline>` component (with API very similar to the `<Hds::Link::Standalone>`)
469
+ - added the `<Hds::Link::Inline>` component (with API very similar to the `<Hds::Link::Standalone>`)
447
470
 
448
- # Dropdown
471
+ #### Dropdown
449
472
 
450
- - Updated the `Dropdown::ListItem::Interactive` to use the new `<Hds::Interactive>` component
473
+ - Updated the `Dropdown::ListItem::Interactive` to use the new `<Hds::Interactive>` component
451
474
 
452
- # Alert/Toast components
475
+ #### Alert/Toast components
453
476
 
454
- - Removed the `<LinkTo::Standalone>` action (now you can use directly `<Link::Standalone>`)
477
+ - Removed the `<LinkTo::Standalone>` action (now you can use directly `<Link::Standalone>`)
455
478
 
456
479
  ## 0.11.2
457
480
 
@@ -471,9 +494,11 @@ This release signifies the first major release of the HashiCorp Design System. M
471
494
 
472
495
  ### Minor Changes (Some Breaking)
473
496
 
474
- - [#245](https://github.com/hashicorp/design-system/pull/245) [`c6de1018`](https://github.com/hashicorp/design-system/commit/c6de101880ec1c21971e3775e1a21b6cb9e69757) Thanks [@didoo](https://github.com/didoo)! - - Added `Alert` component
497
+ - [#245](https://github.com/hashicorp/design-system/pull/245) [`c6de1018`](https://github.com/hashicorp/design-system/commit/c6de101880ec1c21971e3775e1a21b6cb9e69757) Thanks [@didoo](https://github.com/didoo)!
498
+ - Added `Alert` component
475
499
  - Added `Toast` component
476
- - [#259](https://github.com/hashicorp/design-system/pull/259) [`478b3069`](https://github.com/hashicorp/design-system/commit/478b3069e800cf2ccefba9b5475c72b024e25d16) Thanks [@didoo](https://github.com/didoo)! - - removed autofocus on first item for `Disclosure` component (and as a result also for `Breadcrumb` and `Dropdown` components) (🚨 Breaking)
500
+ - [#259](https://github.com/hashicorp/design-system/pull/259) [`478b3069`](https://github.com/hashicorp/design-system/commit/478b3069e800cf2ccefba9b5475c72b024e25d16) Thanks [@didoo](https://github.com/didoo)!
501
+ - removed autofocus on first item for `Disclosure` component (and as a result also for `Breadcrumb` and `Dropdown` components) (🚨 Breaking)
477
502
  - updated focus state treatment for `Dropdown` component (🚨 Breaking)
478
503
 
479
504
  ### Patch Changes
@@ -0,0 +1,13 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+ <div class="hds-application-state__body" ...attributes>
6
+ {{#if (has-block)}}
7
+ {{yield}}
8
+ {{else}}
9
+ <p class="hds-application-state__body-text hds-typography-body-300">
10
+ {{@text}}
11
+ </p>
12
+ {{/if}}
13
+ </div>
@@ -0,0 +1,7 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+ <div class={{this.classNames}} ...attributes>
6
+ {{yield (hash Link::Standalone=(component "hds/link/standalone"))}}
7
+ </div>
@@ -0,0 +1,30 @@
1
+ import Component from '@glimmer/component';
2
+
3
+ export default class HdsApplicationStateFooterComponent extends Component {
4
+ /**
5
+ * Indicate if the footer should have a top border or not.
6
+ *
7
+ * @param hasDivider
8
+ * @type {boolean}
9
+ * @default false
10
+ */
11
+ get hasDivider() {
12
+ return this.args.hasDivider || false;
13
+ }
14
+
15
+ /**
16
+ * Get the class names to apply to the component.
17
+ * @method classNames
18
+ * @return {string} The "class" attribute to apply to the component.
19
+ */
20
+ get classNames() {
21
+ let classes = ['hds-application-state__footer'];
22
+
23
+ // add a class based on the existence of @hasDivider argument
24
+ if (this.hasDivider) {
25
+ classes.push(`hds-application-state__footer--has-divider`);
26
+ }
27
+
28
+ return classes.join(' ');
29
+ }
30
+ }
@@ -0,0 +1,20 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+ <div class="hds-application-state__header" ...attributes>
6
+ {{#if @icon}}
7
+ <div class="hds-application-state__icon">
8
+ <FlightIcon @name={{@icon}} @size="24" />
9
+ </div>
10
+ {{/if}}
11
+ <div class="hds-application-state__title hds-typography-display-400 hds-font-weight-semibold">
12
+ {{@title}}
13
+ </div>
14
+ {{#if @errorCode}}
15
+ <div class="hds-application-state__error-code hds-typography-body-100 hds-font-weight-medium">
16
+ Error
17
+ {{@errorCode}}
18
+ </div>
19
+ {{/if}}
20
+ </div>
@@ -0,0 +1,13 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+ <div class="hds-application-state" ...attributes>
6
+ {{yield
7
+ (hash
8
+ Header=(component "hds/application-state/header")
9
+ Body=(component "hds/application-state/body")
10
+ Footer=(component "hds/application-state/footer")
11
+ )
12
+ }}
13
+ </div>
@@ -1,3 +1,8 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+
1
6
  <div class="hds-dropdown__footer {{if @hasDivider 'hds-dropdown__footer--with-divider'}}" ...attributes>
2
7
  {{yield}}
3
8
  </div>
@@ -1,3 +1,8 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+
1
6
  <div class="hds-dropdown__header {{if @hasDivider 'hds-dropdown__header--with-divider'}}" ...attributes>
2
7
  {{yield}}
3
8
  </div>
@@ -1,3 +1,8 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+
1
6
  <li class="hds-dropdown-list-item hds-dropdown-list-item--variant-checkbox">
2
7
  <Hds::Form::Checkbox::Base class="hds-dropdown-list-item__control" id={{this.id}} @value={{@value}} ...attributes />
3
8
  {{#if @icon}}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  import Component from '@glimmer/component';
2
7
  import { getElementId } from '../../form/utils/getElementId';
3
8
 
@@ -1,3 +1,8 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+
1
6
  {{! template-lint-disable require-context-role require-presentational-children }}
2
7
  <li class={{this.classNames}}>
3
8
  <Hds::Interactive
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  import Component from '@glimmer/component';
2
7
 
3
8
  export default class HdsDropdownListItemCheckmarkComponent extends Component {
@@ -1,3 +1,8 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+
1
6
  <li class="hds-dropdown-list-item hds-dropdown-list-item--variant-radio">
2
7
  <Hds::Form::Radio::Base class="hds-dropdown-list-item__control" id={{this.id}} @value={{@value}} ...attributes />
3
8
  {{#if @icon}}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  import Component from '@glimmer/component';
2
7
  import { getElementId } from '../../form/utils/getElementId';
3
8
 
@@ -1,3 +1,8 @@
1
+ {{!
2
+ Copyright (c) HashiCorp, Inc.
3
+ SPDX-License-Identifier: MPL-2.0
4
+ }}
5
+
1
6
  <div class="hds-dropdown-toggle-chevron">
2
7
  <FlightIcon @name="chevron-down" @isInlineBlock={{false}} />
3
8
  </div>
@@ -16,5 +16,5 @@
16
16
  ...attributes
17
17
  aria-label={{this.ariaLabel}}
18
18
  >
19
- <FlightIcon @name={{@icon}} @color={{@color}} @stretched={{true}} @size="24" />
19
+ <FlightIcon @name={{@icon}} @stretched={{true}} @size="24" />
20
20
  </Hds::Interactive>
@@ -3,4 +3,4 @@
3
3
  * SPDX-License-Identifier: MPL-2.0
4
4
  */
5
5
 
6
- export { default } from '@hashicorp/design-system-components/components/hds/empty-state/body';
6
+ export { default } from '@hashicorp/design-system-components/components/hds/application-state/body';
@@ -3,4 +3,4 @@
3
3
  * SPDX-License-Identifier: MPL-2.0
4
4
  */
5
5
 
6
- export { default } from '@hashicorp/design-system-components/components/hds/empty-state/footer';
6
+ export { default } from '@hashicorp/design-system-components/components/hds/application-state/footer';
@@ -3,4 +3,4 @@
3
3
  * SPDX-License-Identifier: MPL-2.0
4
4
  */
5
5
 
6
- export { default } from '@hashicorp/design-system-components/components/hds/empty-state/header';
6
+ export { default } from '@hashicorp/design-system-components/components/hds/application-state/header';
@@ -3,4 +3,4 @@
3
3
  * SPDX-License-Identifier: MPL-2.0
4
4
  */
5
5
 
6
- export { default } from '@hashicorp/design-system-components/components/hds/empty-state/index';
6
+ export { default } from '@hashicorp/design-system-components/components/hds/application-state/index';
@@ -1 +1,6 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  export { default } from '@hashicorp/design-system-components/components/hds/dropdown/footer';
@@ -1 +1,6 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  export { default } from '@hashicorp/design-system-components/components/hds/dropdown/header';
@@ -1 +1,6 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  export { default } from '@hashicorp/design-system-components/components/hds/dropdown/list-item/checkbox';
@@ -1 +1,6 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  export { default } from '@hashicorp/design-system-components/components/hds/dropdown/list-item/checkmark';
@@ -1 +1,6 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  export { default } from '@hashicorp/design-system-components/components/hds/dropdown/list-item/radio';
@@ -13,6 +13,7 @@
13
13
  // Notice: this list can be automatically edited by the Ember blueprint, please don't remove the start/end comments
14
14
  // START COMPONENTS CSS FILES IMPORTS
15
15
  @use "../components/alert";
16
+ @use "../components/application-state";
16
17
  @use "../components/avatar";
17
18
  @use "../components/badge";
18
19
  @use "../components/badge-count";
@@ -23,7 +24,6 @@
23
24
  @use "../components/disclosure";
24
25
  @use "../components/dismiss-button";
25
26
  @use "../components/dropdown";
26
- @use "../components/empty-state";
27
27
  @use "../components/flyout";
28
28
  @use "../components/form"; // multiple components
29
29
  @use "../components/icon-tile";
@@ -92,7 +92,7 @@
92
92
  background-color: var(--token-form-control-base-surface-color-default);
93
93
  border: var(--token-form-control-border-width) solid var(--token-form-control-base-border-color-default);
94
94
  border-radius: var(--token-form-control-border-radius);
95
- box-shadow: var(--hds-elevation-inset-box-shadow);
95
+ box-shadow: var(--token-elevation-inset-box-shadow);
96
96
 
97
97
  // PLACEHOLDER
98
98
 
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
6
+ //
7
+ // APPLICATION-STATE COMPONENT
8
+ //
9
+
10
+ $hds-application-state-padding: 12px 0;
11
+
12
+ .hds-application-state {
13
+ width: 19.5rem;
14
+ max-width: 100%;
15
+ margin: 0 auto; // this will center the component in the parent container
16
+ }
17
+
18
+ .hds-application-state__header {
19
+ display: grid;
20
+ grid-template-columns: min-content 1fr;
21
+ align-items: start;
22
+ color: var(--token-color-foreground-faint);
23
+ }
24
+
25
+ .hds-application-state__icon {
26
+ margin-right: 8px; // instead of column gap
27
+ padding-top: 4px; // this seems to align the icon along with line 21
28
+ }
29
+
30
+ .hds-application-state__title,
31
+ .hds-application-state__error-code {
32
+ grid-column-start: 2;
33
+ }
34
+
35
+ .hds-application-state__body {
36
+ display: flex;
37
+ padding: $hds-application-state-padding;
38
+ color: var(--token-color-foreground-faint);
39
+ }
40
+
41
+ .hds-application-state__footer {
42
+ display: flex;
43
+ justify-content: space-between;
44
+
45
+ &.hds-application-state__footer--has-divider {
46
+ padding: $hds-application-state-padding;
47
+ border-top: 1px solid var(--token-color-border-strong);
48
+ }
49
+
50
+ // in case users do something outside design guidelines
51
+ .hds-link-standalone + .hds-link-standalone {
52
+ margin-left: 8px;
53
+ }
54
+ }
55
+
@@ -30,7 +30,7 @@
30
30
  &:not(:checked, :indeterminate) {
31
31
  background-color: var(--token-form-control-base-surface-color-default);
32
32
  border-color: var(--token-form-control-base-border-color-default);
33
- box-shadow: var(--hds-elevation-inset-box-shadow);
33
+ box-shadow: var(--token-elevation-inset-box-shadow);
34
34
  }
35
35
 
36
36
  &:checked {
@@ -30,7 +30,7 @@
30
30
  &:not(:checked) {
31
31
  background-color: var(--token-form-control-base-surface-color-default);
32
32
  border-color: var(--token-form-control-base-border-color-default);
33
- box-shadow: var(--hds-elevation-inset-box-shadow);
33
+ box-shadow: var(--token-elevation-inset-box-shadow);
34
34
  }
35
35
 
36
36
  &:checked {
@@ -18,7 +18,7 @@
18
18
  background-color: var(--token-form-control-base-surface-color-default);
19
19
  border: var(--token-form-control-border-width) solid var(--token-form-control-base-border-color-default);
20
20
  border-radius: var(--token-form-control-border-radius);
21
- box-shadow: var(--hds-elevation-inset-box-shadow);
21
+ box-shadow: var(--token-elevation-inset-box-shadow);
22
22
 
23
23
  // PLACEHOLDER
24
24
 
@@ -18,7 +18,7 @@
18
18
  background-color: var(--token-form-control-base-surface-color-default);
19
19
  border: var(--token-form-control-border-width) solid var(--token-form-control-base-border-color-default);
20
20
  border-radius: var(--token-form-control-border-radius);
21
- box-shadow: var(--hds-elevation-inset-box-shadow);
21
+ box-shadow: var(--token-elevation-inset-box-shadow);
22
22
  resize: vertical;
23
23
 
24
24
  // PLACEHOLDER
@@ -8,15 +8,18 @@ import { setupRenderingTest } from 'ember-qunit';
8
8
  import { render } from '@ember/test-helpers';
9
9
  import { hbs } from 'ember-cli-htmlbars';
10
10
 
11
- module('Integration | Component | hds/<%= dasherizedModuleName %>/index', function (hooks) {
12
- setupRenderingTest(hooks);
11
+ module(
12
+ 'Integration | Component | hds/<%= dasherizedModuleName %>/index',
13
+ function (hooks) {
14
+ setupRenderingTest(hooks);
13
15
 
14
- test('it renders the component', async function (assert) {
15
- await render(hbs`<Hds::<%= columnizedModuleName %> />`);
16
- assert.dom(this.element).exists();
17
- });
18
- test('it should render with a CSS class that matches the component name', async function (assert) {
19
- await render(hbs`<Hds::<%= columnizedModuleName %> id="test-<%= kebabizedModuleName %>" />`);
20
- assert.dom('#test-<%= kebabizedModuleName %>').hasClass('hds-<%= kebabizedModuleName %>');
21
- });
22
- });
16
+ test('it should render the component with a CSS class that matches the component name', async function (assert) {
17
+ await render(
18
+ hbs`<Hds::<%= columnizedModuleName %> id="test-<%= kebabizedModuleName %>" />`
19
+ );
20
+ assert
21
+ .dom('#test-<%= kebabizedModuleName %>')
22
+ .hasClass('hds-<%= kebabizedModuleName %>');
23
+ });
24
+ }
25
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Helios Design System Components",
5
5
  "keywords": [
6
6
  "hashicorp",
@@ -79,7 +79,7 @@
79
79
  "ember-load-initializers": "^2.1.2",
80
80
  "ember-page-title": "^7.0.0",
81
81
  "ember-power-select": "^6.0.0",
82
- "ember-qunit": "^6.1.1",
82
+ "ember-qunit": "^6.2.0",
83
83
  "ember-resolver": "^10.0.0",
84
84
  "ember-source": "~4.10.0",
85
85
  "ember-source-channel-url": "^3.0.0",
@@ -1,7 +0,0 @@
1
- {{!
2
- Copyright (c) HashiCorp, Inc.
3
- SPDX-License-Identifier: MPL-2.0
4
- }}
5
- <div class="hds-empty-state__body" ...attributes>
6
- {{yield}}
7
- </div>
@@ -1,7 +0,0 @@
1
- {{!
2
- Copyright (c) HashiCorp, Inc.
3
- SPDX-License-Identifier: MPL-2.0
4
- }}
5
- <div class="hds-empty-state__footer" ...attributes>
6
- {{yield}}
7
- </div>
@@ -1,7 +0,0 @@
1
- {{!
2
- Copyright (c) HashiCorp, Inc.
3
- SPDX-License-Identifier: MPL-2.0
4
- }}
5
- <div class="hds-empty-state__header" ...attributes>
6
- {{yield}}
7
- </div>
@@ -1,13 +0,0 @@
1
- {{!
2
- Copyright (c) HashiCorp, Inc.
3
- SPDX-License-Identifier: MPL-2.0
4
- }}
5
- <div class="hds-empty-state" ...attributes>
6
- {{yield
7
- (hash
8
- Header=(component "hds/empty-state/header")
9
- Body=(component "hds/empty-state/body")
10
- Footer=(component "hds/empty-state/footer")
11
- )
12
- }}
13
- </div>
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright (c) HashiCorp, Inc.
3
- * SPDX-License-Identifier: MPL-2.0
4
- */
5
-
6
- //
7
- // EMPTY-STATE COMPONENT
8
- //
9
-
10
- .hds-empty-state {
11
- display: block;
12
- max-width: 40ch;
13
- margin: 0 auto;
14
- padding: 0;
15
- color: var(--token-color-foreground-faint);
16
-
17
- > * {
18
- margin: 0;
19
- padding: 0;
20
- }
21
- }
22
-
23
- .hds-empty-state__body {
24
- font-weight: 400;
25
- font-size: 1rem;
26
- line-height: 1.5;
27
-
28
- + * {
29
- margin-block-start: 1rem;
30
- }
31
- }
32
-
33
- .hds-empty-state__header {
34
- font-weight: 700;
35
- font-size: 1.25rem;
36
- line-height: 1.2;
37
- }