@hashicorp/design-system-components 0.11.1 → 0.12.1

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 (38) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/addon/components/hds/alert/index.hbs +1 -3
  3. package/addon/components/hds/breadcrumb/truncation.hbs +1 -0
  4. package/addon/components/hds/button/index.hbs +14 -2
  5. package/addon/components/hds/button/index.js +0 -21
  6. package/addon/components/hds/disclosure/index.hbs +2 -2
  7. package/addon/components/hds/disclosure/index.js +4 -4
  8. package/addon/components/hds/dropdown/index.hbs +2 -2
  9. package/addon/components/hds/dropdown/list-item/copy-item.hbs +1 -5
  10. package/addon/components/hds/dropdown/list-item/interactive.hbs +19 -41
  11. package/addon/components/hds/dropdown/toggle/button.hbs +1 -0
  12. package/addon/components/hds/dropdown/toggle/icon.hbs +8 -1
  13. package/addon/components/hds/interactive/index.hbs +33 -0
  14. package/addon/components/hds/interactive/index.js +33 -0
  15. package/addon/components/hds/link/inline.hbs +23 -0
  16. package/addon/components/hds/link/inline.js +71 -0
  17. package/addon/components/hds/link/standalone.hbs +15 -5
  18. package/addon/components/hds/link/standalone.js +7 -0
  19. package/addon/components/hds/toast/index.hbs +1 -8
  20. package/app/components/hds/{link/cta.js → interactive/index.js} +1 -1
  21. package/app/components/hds/{link-to/cta.js → link/inline.js} +1 -1
  22. package/app/styles/@hashicorp/design-system-components.scss +4 -1
  23. package/app/styles/components/button.scss +44 -19
  24. package/app/styles/components/dropdown.scss +10 -10
  25. package/app/styles/components/link/inline.scss +66 -0
  26. package/app/styles/components/link/standalone.scss +4 -4
  27. package/app/styles/mixins/_focus-ring.scss +8 -4
  28. package/blueprints/hds-component/files/addon/components/hds/__name__/index.hbs +1 -1
  29. package/blueprints/hds-component/index.js +34 -0
  30. package/package.json +4 -3
  31. package/addon/components/hds/link/cta.hbs +0 -50
  32. package/addon/components/hds/link/cta.js +0 -150
  33. package/addon/components/hds/link-to/cta.hbs +0 -51
  34. package/addon/components/hds/link-to/cta.js +0 -165
  35. package/addon/components/hds/link-to/standalone.hbs +0 -25
  36. package/addon/components/hds/link-to/standalone.js +0 -151
  37. package/app/components/hds/link-to/standalone.js +0 -1
  38. package/app/styles/components/link/cta.scss +0 -28
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 0.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @hashicorp/ember-flight-icons@2.0.6
9
+
10
+ ## 0.12.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [#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
15
+
16
+ - Introduced `<Hds::Interactive>` (a generic, "utility" component used internally by all the interactive elements like buttons and links)
17
+
18
+ # Button
19
+
20
+ - updated the button API to handle also links as `<a>`/`<LinkTo/LinkToExternal>`
21
+ - it can be used in place of the `<Hds::Link/LinkTo::CTA>` component (see below)
22
+ - 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
23
+ - removed the `@type` argument from the API in favour of the `type` native attribute - 🚨 **Breaking change!**
24
+
25
+ # Link/LinkTo::CTA
26
+
27
+ - removed the `<Hds::Link/LinkTo::CTA>` component, in favour of `<Hds::Button>` component (see above) - 🚨 **Breaking change!**
28
+
29
+ # Link::Inline
30
+
31
+ - added the `<Hds::Link::Inline>` component (with API very similar to the `<Hds::Link::Standalone>`)
32
+
33
+ # Dropdown
34
+
35
+ - Updated the `Dropdown::ListItem::Interactive` to use the new `<Hds::Interactive>` component
36
+
37
+ # Alert/Toast components
38
+
39
+ - Removed the `<LinkTo::Standalone>` action (now you can use directly `<Link::Standalone>`)
40
+
41
+ ## 0.11.2
42
+
43
+ ### Patch Changes
44
+
45
+ - [#301](https://github.com/hashicorp/design-system/pull/301) [`4976379e`](https://github.com/hashicorp/design-system/commit/4976379e1b080c7753ceee2affe8cadc053296e5) Thanks [@alex-ju](https://github.com/alex-ju)! - Convey the disclosure state to assistive tech for dropdown and truncated breadcrumbs
46
+
3
47
  ## 0.11.1
4
48
 
5
49
  ### Patch Changes
@@ -14,9 +14,7 @@
14
14
  <div class="hds-alert__actions">
15
15
  {{yield
16
16
  (hash
17
- Button=(component "hds/button" size="small")
18
- Link::Standalone=(component "hds/link/standalone" size="small")
19
- LinkTo::Standalone=(component "hds/link-to/standalone" size="small")
17
+ Button=(component "hds/button" size="small") Link::Standalone=(component "hds/link/standalone" size="small")
20
18
  )
21
19
  }}
22
20
  </div>
@@ -7,6 +7,7 @@
7
7
  {{if @hover 'is-hover'}}
8
8
  {{if @active 'is-active'}}
9
9
  {{if @focus 'is-focus'}}"
10
+ aria-expanded={{if t.isOpen "true" "false"}}
10
11
  {{on "click" t.onClickToggle}}
11
12
  >
12
13
  <FlightIcon @name="more-horizontal" @size="16" @isInlineBlock={{false}} />
@@ -1,4 +1,16 @@
1
- <button class={{this.classNames}} ...attributes aria-label={{if this.isIconOnly this.text null}} type={{this.type}}>
1
+ <Hds::Interactive
2
+ class={{this.classNames}}
3
+ @current-when={{@current-when}}
4
+ @models={{hds-link-to-models @model @models}}
5
+ @query={{hds-link-to-query @query}}
6
+ @replace={{@replace}}
7
+ @route={{@route}}
8
+ @isRouteExternal={{@isRouteExternal}}
9
+ @href={{@href}}
10
+ @isHrefExternal={{@isHrefExternal}}
11
+ ...attributes
12
+ aria-label={{if this.isIconOnly this.text null}}
13
+ >
2
14
  {{#if this.isIconOnly}}
3
15
  <div class="hds-button__icon">
4
16
  <FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
@@ -26,4 +38,4 @@
26
38
  </div>
27
39
  {{/if}}
28
40
  {{/if}}
29
- </button>
41
+ </Hds::Interactive>
@@ -3,11 +3,9 @@ import { assert } from '@ember/debug';
3
3
 
4
4
  export const DEFAULT_SIZE = 'medium';
5
5
  export const DEFAULT_COLOR = 'primary';
6
- export const DEFAULT_TYPE = 'button';
7
6
  export const DEFAULT_ICONPOSITION = 'leading';
8
7
  export const SIZES = ['small', 'medium', 'large'];
9
8
  export const COLORS = ['primary', 'secondary', 'tertiary', 'critical'];
10
- export const TYPES = ['button', 'submit', 'reset'];
11
9
  export const ICONPOSITIONS = ['leading', 'trailing'];
12
10
 
13
11
  export default class HdsButtonIndexComponent extends Component {
@@ -126,25 +124,6 @@ export default class HdsButtonIndexComponent extends Component {
126
124
  }
127
125
  }
128
126
 
129
- /**
130
- * @param type
131
- * @type {string}
132
- * @default button
133
- * @description The value for the button's `type` attribute. Acceptable values are `button`, `submit`, and `reset`
134
- */
135
- get type() {
136
- let { type = DEFAULT_TYPE } = this.args;
137
-
138
- assert(
139
- `@type for "Hds::Button" must be one of the following: ${TYPES.join(
140
- ', '
141
- )}; received: ${type}`,
142
- TYPES.includes(type)
143
- );
144
-
145
- return type;
146
- }
147
-
148
127
  /**
149
128
  * @param isFullWidth
150
129
  * @type {boolean}
@@ -7,9 +7,9 @@
7
7
  {{on "keyup" this.onKeyUp}}
8
8
  >
9
9
  <div class="hds-disclosure__toggle" tabindex="-1">
10
- {{yield (hash onClickToggle=this.onClickToggle isActive=this.isActive) to="toggle"}}
10
+ {{yield (hash onClickToggle=this.onClickToggle isOpen=this.isOpen) to="toggle"}}
11
11
  </div>
12
- {{#if this.isActive}}
12
+ {{#if this.isOpen}}
13
13
  <div class="hds-disclosure__content" tabindex="-1">
14
14
  {{yield to="content"}}
15
15
  </div>
@@ -3,7 +3,7 @@ import { tracked } from '@glimmer/tracking';
3
3
  import { action } from '@ember/object';
4
4
 
5
5
  export default class HdsDisclosureComponent extends Component {
6
- @tracked isActive; // notice: if in the future we need to add a "@isActive" prop to control the status from outside (eg to have the Disclosure opened on render) just add "this.args.isActive" here to initalize the variable
6
+ @tracked isOpen; // notice: if in the future we need to add a "@isOpen" prop to control the status from outside (eg to have the Disclosure opened on render) just add "this.args.isOpen" here to initalize the variable
7
7
  @tracked toggleRef;
8
8
  @tracked isToggleClicked;
9
9
 
@@ -18,7 +18,7 @@ export default class HdsDisclosureComponent extends Component {
18
18
  if (!this.toggleRef) {
19
19
  this.toggleRef = event.currentTarget;
20
20
  }
21
- this.isActive = !this.isActive;
21
+ this.isOpen = !this.isOpen;
22
22
  // we explicitly apply a focus state to the toggle element to overcome a bug in WebKit (see b8abfcf)
23
23
  this.toggleRef.focus();
24
24
  }
@@ -43,8 +43,8 @@ export default class HdsDisclosureComponent extends Component {
43
43
 
44
44
  @action
45
45
  deactivate() {
46
- if (this.isActive) {
47
- this.isActive = false;
46
+ if (this.isOpen) {
47
+ this.isOpen = false;
48
48
  }
49
49
  // we call the "onClose" callback if it exists (and is a function)
50
50
  if (this.args.onClose && typeof this.args.onClose === 'function') {
@@ -2,8 +2,8 @@
2
2
  <:toggle as |t|>
3
3
  {{yield
4
4
  (hash
5
- ToggleButton=(component "hds/dropdown/toggle/button" isOpen=t.isActive onClick=t.onClickToggle)
6
- ToggleIcon=(component "hds/dropdown/toggle/icon" isOpen=t.isActive onClick=t.onClickToggle)
5
+ ToggleButton=(component "hds/dropdown/toggle/button" isOpen=t.isOpen onClick=t.onClickToggle)
6
+ ToggleIcon=(component "hds/dropdown/toggle/icon" isOpen=t.isOpen onClick=t.onClickToggle)
7
7
  )
8
8
  }}
9
9
  </:toggle>
@@ -4,11 +4,7 @@
4
4
  class="hds-dropdown-list-item__copy-item-title hds-typography-body-100 hds-font-weight-semibold"
5
5
  >{{@copyItemTitle}}</div>
6
6
  {{/if}}
7
- <button
8
- type="button"
9
- class="{{if @state (concat 'is-' @state)}} {{if this.isSuccess 'is-success'}}"
10
- {{on "click" this.copyCode}}
11
- >
7
+ <button type="button" class="{{if this.isSuccess 'is-success'}}" {{on "click" this.copyCode}}>
12
8
  <div class="hds-dropdown-list-item__copy-item-text hds-typography-code-100">
13
9
  {{this.text}}
14
10
  </div>
@@ -1,44 +1,22 @@
1
1
  <li class={{this.classNames}}>
2
- {{#if @route}}
3
- <LinkTo
4
- class="{{if @state (concat 'is-' @state)}}"
5
- @current-when={{@current-when}}
6
- @models={{hds-link-to-models @model @models}}
7
- @query={{hds-link-to-query @query}}
8
- @replace={{@replace}}
9
- @route={{@route}}
10
- ...attributes
11
- >
12
- {{#if @icon}}
13
- <div class="hds-dropdown-list-item__interactive-icon">
14
- <FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
15
- </div>
16
- {{/if}}
17
- <div class="hds-dropdown-list-item__interactive-text hds-typography-body-200 hds-font-weight-medium">
18
- {{this.text}}
2
+ <Hds::Interactive
3
+ @current-when={{@current-when}}
4
+ @models={{hds-link-to-models @model @models}}
5
+ @query={{hds-link-to-query @query}}
6
+ @replace={{@replace}}
7
+ @route={{@route}}
8
+ @isRouteExternal={{@isRouteExternal}}
9
+ @href={{@href}}
10
+ @isHrefExternal={{@isHrefExternal}}
11
+ ...attributes
12
+ >
13
+ {{#if @icon}}
14
+ <div class="hds-dropdown-list-item__interactive-icon">
15
+ <FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
19
16
  </div>
20
- </LinkTo>
21
- {{else if @href}}
22
- <a target="_blank" rel="noopener noreferrer" href={{@href}} class="{{if @state (concat 'is-' @state)}}">
23
- {{#if @icon}}
24
- <div class="hds-dropdown-list-item__interactive-icon">
25
- <FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
26
- </div>
27
- {{/if}}
28
- <div class="hds-dropdown-list-item__interactive-text hds-typography-body-200 hds-font-weight-medium">
29
- {{this.text}}
30
- </div>
31
- </a>
32
- {{else}}
33
- <button class="{{if @state (concat 'is-' @state)}}" type="button" ...attributes>
34
- {{#if @icon}}
35
- <div class="hds-dropdown-list-item__interactive-icon">
36
- <FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
37
- </div>
38
- {{/if}}
39
- <div class="hds-dropdown-list-item__interactive-text hds-typography-body-200 hds-font-weight-medium">
40
- {{this.text}}
41
- </div>
42
- </button>
43
- {{/if}}
17
+ {{/if}}
18
+ <div class="hds-dropdown-list-item__interactive-text hds-typography-body-200 hds-font-weight-medium">
19
+ {{this.text}}
20
+ </div>
21
+ </Hds::Interactive>
44
22
  </li>
@@ -19,5 +19,6 @@
19
19
  @iconPosition="trailing"
20
20
  @color={{this.color}}
21
21
  ...attributes
22
+ aria-expanded={{if @isOpen "true" "false"}}
22
23
  {{on "click" this.onClick}}
23
24
  />
@@ -1,4 +1,11 @@
1
- <button class={{this.classNames}} aria-label={{this.text}} ...attributes {{on "click" this.onClick}} type="button">
1
+ <button
2
+ class={{this.classNames}}
3
+ aria-label={{this.text}}
4
+ ...attributes
5
+ aria-expanded={{if @isOpen "true" "false"}}
6
+ {{on "click" this.onClick}}
7
+ type="button"
8
+ >
2
9
  <div class="hds-dropdown-toggle-icon__wrapper">
3
10
  {{#if @imageSrc}}
4
11
  <img src={{@imageSrc}} alt="" role="presentation" height="32" width="32" />
@@ -0,0 +1,33 @@
1
+ {{! IMPORTANT: we removed the newlines before/after the yield to reduce the issues with unexpected whitespaces (see https://github.com/hashicorp/design-system/pull/231#issuecomment-1123502499) }}
2
+ {{! NOTICE: we can't support the direct use of the "href" HTML attribute via ...attributes in the <a> elements, because we need to rely on the "@href" Ember argument to differentiate between different types of generated output }}
3
+ {{#if @route}}
4
+ {{#if this.isRouteExternal}}
5
+ <LinkToExternal
6
+ @current-when={{@current-when}}
7
+ @models={{hds-link-to-models @model @models}}
8
+ @query={{hds-link-to-query @query}}
9
+ @replace={{@replace}}
10
+ @route={{@route}}
11
+ ...attributes
12
+ >{{yield}}</LinkToExternal>
13
+ {{else}}
14
+ <LinkTo
15
+ @current-when={{@current-when}}
16
+ @models={{hds-link-to-models @model @models}}
17
+ @query={{hds-link-to-query @query}}
18
+ @replace={{@replace}}
19
+ @route={{@route}}
20
+ ...attributes
21
+ >{{yield}}</LinkTo>
22
+ {{/if}}
23
+ {{else if @href}}
24
+ {{#if this.isHrefExternal}}
25
+ <a target="_blank" rel="noopener noreferrer" ...attributes href={{@href}} {{on "keyup" this.onKeyUp}}>{{yield}}</a>
26
+ {{else}}
27
+ <a ...attributes href={{@href}} {{on "keyup" this.onKeyUp}}>{{yield}}</a>
28
+ {{/if}}
29
+ {{else}}
30
+ <button type="button" ...attributes>
31
+ {{yield}}
32
+ </button>
33
+ {{/if}}
@@ -0,0 +1,33 @@
1
+ import Component from '@glimmer/component';
2
+ import { action } from '@ember/object';
3
+
4
+ export default class HdsInteractiveComponent extends Component {
5
+ /**
6
+ * Determines if a @href value is "external" (it adds target="_blank" rel="noopener noreferrer")
7
+ *
8
+ * @param isHrefExternal
9
+ * @type boolean
10
+ * @default true
11
+ */
12
+ get isHrefExternal() {
13
+ return this.args.isHrefExternal ?? true;
14
+ }
15
+
16
+ /**
17
+ * Determines if a @route value is "external" (uses the LinkToExternal component instead of LinkTo)
18
+ *
19
+ * @param isRouteExternal
20
+ * @type boolean
21
+ * @default false
22
+ */
23
+ get isRouteExternal() {
24
+ return this.args.isRouteExternal ?? false;
25
+ }
26
+
27
+ @action
28
+ onKeyUp(event) {
29
+ if (event.key === ' ' || event.code === 'Space') {
30
+ event.target.click();
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,23 @@
1
+ {{! IMPORTANT: we removed the newlines before/after the yield to reduce the issues with unexpected whitespaces (see https://github.com/hashicorp/design-system/pull/231#issuecomment-1123502499) }}
2
+ {{! IMPORTANT: we need to add "squishies" here (~) because otherwise the whitespace added by Ember becomes visible in the link (being an inline element) - See https://handlebarsjs.com/guide/expressions.html#whitespace-control }}
3
+ <Hds::Interactive
4
+ class={{this.classNames}}
5
+ @current-when={{@current-when}}
6
+ @models={{hds-link-to-models @model @models}}
7
+ @query={{hds-link-to-query @query}}
8
+ @replace={{@replace}}
9
+ @route={{@route}}
10
+ @isRouteExternal={{@isRouteExternal}}
11
+ @href={{@href}}
12
+ target="_blank"
13
+ rel="noopener noreferrer"
14
+ ...attributes
15
+ >{{#if (and @icon (eq this.iconPosition "leading"))~}}
16
+ <span class="hds-link-inline__icon hds-link-inline__icon--leading">
17
+ <FlightIcon @name={{@icon}} @size="16" @stretched={{true}} />
18
+ </span>
19
+ {{~/if~}}{{yield}}{{~#if (and @icon (eq this.iconPosition "trailing"))~}}
20
+ <span class="hds-link-inline__icon hds-link-inline__icon--trailing">
21
+ <FlightIcon @name={{@icon}} @size="16" @stretched={{true}} />
22
+ </span>
23
+ {{~/if}}</Hds::Interactive>
@@ -0,0 +1,71 @@
1
+ import Component from '@glimmer/component';
2
+ import { assert } from '@ember/debug';
3
+
4
+ export const DEFAULT_ICONPOSITION = 'trailing';
5
+ export const DEFAULT_COLOR = 'primary';
6
+ export const ICONPOSITIONS = ['leading', 'trailing'];
7
+ export const COLORS = ['primary', 'secondary'];
8
+
9
+ export default class HdsLinkInlineComponent extends Component {
10
+ constructor() {
11
+ super(...arguments);
12
+ if (!(this.args.href || this.args.route)) {
13
+ assert('@href or @route must be defined for <Hds::Link::Inline>');
14
+ }
15
+ }
16
+
17
+ /**
18
+ * @param color
19
+ * @type {string}
20
+ * @default primary
21
+ * @description Determines the color of link to be used; acceptable values are `primary` and `secondary`
22
+ */
23
+ get color() {
24
+ let { color = DEFAULT_COLOR } = this.args;
25
+
26
+ assert(
27
+ `@color for "Hds::Link::Inline" must be one of the following: ${COLORS.join(
28
+ ', '
29
+ )}; received: ${color}`,
30
+ COLORS.includes(color)
31
+ );
32
+
33
+ return color;
34
+ }
35
+
36
+ /**
37
+ * @param iconPosition
38
+ * @type {string}
39
+ * @default leading
40
+ * @description Positions the icon before or after the text; allowed values are `leading` or `trailing`
41
+ */
42
+ get iconPosition() {
43
+ let { iconPosition = DEFAULT_ICONPOSITION } = this.args;
44
+
45
+ assert(
46
+ `@iconPosition for "Hds::Link::Inline" must be one of the following: ${ICONPOSITIONS.join(
47
+ ', '
48
+ )}; received: ${iconPosition}`,
49
+ ICONPOSITIONS.includes(iconPosition)
50
+ );
51
+
52
+ return iconPosition;
53
+ }
54
+
55
+ /**
56
+ * Get the class names to apply to the component.
57
+ * @method LinkInline#classNames
58
+ * @return {string} The "class" attribute to apply to the component.
59
+ */
60
+ get classNames() {
61
+ let classes = ['hds-link-inline'];
62
+
63
+ // add a class based on the @color argument
64
+ classes.push(`hds-link-inline--color-${this.color}`);
65
+
66
+ // add a class based on the @iconPosition argument
67
+ classes.push(`hds-link-inline--icon-${this.iconPosition}`);
68
+
69
+ return classes.join(' ');
70
+ }
71
+ }
@@ -1,6 +1,17 @@
1
- {{! template-lint-disable link-href-attributes }}
2
- {{! we can disable this linting rule because the developer will add the html attribute themselves }}
3
- <a class={{this.classNames}} target="_blank" rel="noopener noreferrer" ...attributes>
1
+ <Hds::Interactive
2
+ class={{this.classNames}}
3
+ @current-when={{@current-when}}
4
+ @models={{hds-link-to-models @model @models}}
5
+ @query={{hds-link-to-query @query}}
6
+ @replace={{@replace}}
7
+ @route={{@route}}
8
+ @isRouteExternal={{@isRouteExternal}}
9
+ @href={{@href}}
10
+ @isHrefExternal={{@isHrefExternal}}
11
+ target="_blank"
12
+ rel="noopener noreferrer"
13
+ ...attributes
14
+ >
4
15
  {{#if (eq this.iconPosition "leading")}}
5
16
  <div class="hds-link-standalone__icon">
6
17
  <FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
@@ -16,5 +27,4 @@
16
27
  <FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
17
28
  </div>
18
29
  {{/if}}
19
- </a>
20
- {{! template-lint-enable link-href-attributes }}
30
+ </Hds::Interactive>
@@ -9,6 +9,13 @@ export const COLORS = ['primary', 'secondary'];
9
9
  export const SIZES = ['small', 'medium', 'large'];
10
10
 
11
11
  export default class HdsLinkStandaloneComponent extends Component {
12
+ constructor() {
13
+ super(...arguments);
14
+ if (!(this.args.href || this.args.route)) {
15
+ assert('@href or @route must be defined for <Hds::Link::Standalone>');
16
+ }
17
+ }
18
+
12
19
  /**
13
20
  * @param text
14
21
  * @type {string}
@@ -8,13 +8,6 @@
8
8
  as |A|
9
9
  >
10
10
  {{yield
11
- (hash
12
- Title=A.Title
13
- Description=A.Description
14
- Button=A.Button
15
- Link::Standalone=A.Link::Standalone
16
- LinkTo::Standalone=A.LinkTo::Standalone
17
- Generic=A.Generic
18
- )
11
+ (hash Title=A.Title Description=A.Description Button=A.Button Link::Standalone=A.Link::Standalone Generic=A.Generic)
19
12
  }}
20
13
  </Hds::Alert>
@@ -1 +1 @@
1
- export { default } from '@hashicorp/design-system-components/components/hds/link/cta';
1
+ export { default } from '@hashicorp/design-system-components/components/hds/interactive/index';
@@ -1 +1 @@
1
- export { default } from '@hashicorp/design-system-components/components/hds/link-to/cta';
1
+ export { default } from '@hashicorp/design-system-components/components/hds/link/inline';
@@ -5,6 +5,8 @@
5
5
  @use "helpers/focus-ring";
6
6
  @use "helpers/typography";
7
7
 
8
+ // Notice: this list can be automatically edited by the Ember blueprint, please don't remove the start/end comments
9
+ // START COMPONENTS CSS FILES IMPORTS
8
10
  @use "../components/alert";
9
11
  @use "../components/badge";
10
12
  @use "../components/badge-count";
@@ -14,9 +16,10 @@
14
16
  @use "../components/disclosure";
15
17
  @use "../components/dropdown";
16
18
  @use "../components/icon-tile";
17
- @use "../components/link/cta";
19
+ @use "../components/link/inline";
18
20
  @use "../components/link/standalone";
19
21
  @use "../components/toast";
22
+ // END COMPONENT CSS FILES IMPORTS
20
23
 
21
24
  .sr-only {
22
25
  border: 0 !important;