Skip to content

Commit

Permalink
Upgrade @hashicorp/design-system-components and ember-cli-clipboard (#44
Browse files Browse the repository at this point in the history
)

* Upgrade @hashicorp/design-system-component and ember-cli-clipboard

* Changeset

* Upgrade @hashicorp/design-system-components to 2.10.0

* Update changeset copy
  • Loading branch information
WenInCode committed Aug 16, 2023
1 parent 6f5a757 commit 4aebe3a
Show file tree
Hide file tree
Showing 5 changed files with 221 additions and 1,761 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-moons-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/consul-ui-toolkit': patch
---

Upgrade @hashicorp/design-system-component -> 2.10.0 and ember-cli-clipboard -> 1.0.0
4 changes: 2 additions & 2 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"@hashicorp/consul-ui-toolkit": "^0.1.0",
"@hashicorp/design-system-components": "2.8.1",
"@hashicorp/design-system-components": "^2.10.0",
"@hashicorp/ember-flight-icons": "^3.0.6",
"@types/qunit": "latest",
"@typescript-eslint/eslint-plugin": "^5.2.0",
Expand All @@ -42,7 +42,7 @@
"ember-cli": "~4.11.0",
"ember-cli-app-version": "^6.0.0",
"ember-cli-babel": "^7.26.11",
"ember-cli-clipboard": "^0.16.0",
"ember-cli-clipboard": "^1.0.0",
"ember-cli-dependency-checker": "^3.3.1",
"ember-cli-htmlbars": "^6.2.0",
"ember-cli-inject-live-reload": "^2.1.0",
Expand Down
3 changes: 2 additions & 1 deletion toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@
"@babel/plugin-transform-typescript": "^7.22.10",
"@babel/preset-typescript": "^7.21.0",
"@embroider/addon-dev": "^3.0.0",
"@hashicorp/design-system-components": "2.8.1",
"@hashicorp/design-system-components": "^2.10.0",
"@rollup/plugin-babel": "^5.3.0",
"@types/ember": "^4.0.3",
"@types/ungap__structured-clone": "^0.3.0",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"concurrently": "^7.2.1",
"ember-cli-clipboard": "^1.0.0",
"ember-inflector": "^4.0.2",
"ember-template-lint": "^4.0.0",
"eslint": "^7.32.0",
Expand Down
25 changes: 19 additions & 6 deletions toolkit/src/components/cut/copy-block/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,26 @@
Copyright (c) HashiCorp, Inc.
}}

<div class="cut-copy-block" ...attributes>
<div class='cut-copy-block' ...attributes>
<div data-test-copy-block-content>{{yield}}</div>
<div class="cut-copy-block__copy-button">
<CopyButton @clipboardText={{@clipboardText}}
@success={{perform this.copied}}
class={{if this.isSuccessfullyCopied 'cut-copy-block__copy-button--checked' ''}}>
<FlightIcon @name={{if this.isSuccessfullyCopied 'clipboard-checked' 'clipboard-copy'}} @size="16"/>
<div class='cut-copy-block__copy-button'>
<CopyButton
@text={{@clipboardText}}
@onSuccess={{perform this.copied}}
class={{if
this.isSuccessfullyCopied
'cut-copy-block__copy-button--checked'
''
}}
>
<FlightIcon
@name={{if
this.isSuccessfullyCopied
'clipboard-checked'
'clipboard-copy'
}}
@size='16'
/>
</CopyButton>
</div>
</div>
Loading

1 comment on commit 4aebe3a

@vercel
Copy link

@vercel vercel bot commented on 4aebe3a Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.