diff --git a/addons/rose/package.json b/addons/rose/package.json index 94452841c..7786cc6dd 100644 --- a/addons/rose/package.json +++ b/addons/rose/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@embroider/test-setup": "^2.1.1", - "@hashicorp/design-system-components": "^2.11.0", + "@hashicorp/design-system-components": "^3.0.2", "codemirror": "5.65.7", "ember-auto-import": "^2.6.3", "ember-cli-babel": "^7.26.10", diff --git a/ui/admin/app/components/form/auth-method/ldap/index.hbs b/ui/admin/app/components/form/auth-method/ldap/index.hbs index a7d3557f4..13bce5960 100644 --- a/ui/admin/app/components/form/auth-method/ldap/index.hbs +++ b/ui/admin/app/components/form/auth-method/ldap/index.hbs @@ -152,6 +152,7 @@ @type='password' name='client_certificate' disabled={{form.disabled}} + @hasVisibilityToggle={{false}} {{on 'input' (set-from-event @model 'client_certificate')}} as |F| > @@ -177,6 +178,7 @@ @type='password' name='client_certificate_key' disabled={{form.disabled}} + @hasVisibilityToggle={{false}} {{on 'input' (set-from-event @model 'client_certificate_key')}} as |F| > @@ -277,6 +279,7 @@ @type='password' name='bind_password' disabled={{form.disabled}} + @hasVisibilityToggle={{false}} {{on 'input' (set-from-event @model 'bind_password')}} as |F| > diff --git a/ui/admin/app/components/form/auth-method/oidc/index.hbs b/ui/admin/app/components/form/auth-method/oidc/index.hbs index 75c35a11a..33d9d18d6 100644 --- a/ui/admin/app/components/form/auth-method/oidc/index.hbs +++ b/ui/admin/app/components/form/auth-method/oidc/index.hbs @@ -122,6 +122,7 @@ @helperText={{t 'form.client_secret.help'}} @error={{@model.errors.client_secret}} readonly={{false}} + @hasVisibilityToggle={{false}} as |field| > {{#if @model.errors.client_secret}} diff --git a/ui/admin/app/components/form/credential/ssh_private_key/index.hbs b/ui/admin/app/components/form/credential/ssh_private_key/index.hbs index 6f06ef732..31fe07ab8 100644 --- a/ui/admin/app/components/form/credential/ssh_private_key/index.hbs +++ b/ui/admin/app/components/form/credential/ssh_private_key/index.hbs @@ -124,6 +124,7 @@ @label={{t 'resources.credential.form.private_key_passphrase.label'}} @helperText={{t 'resources.credential.form.private_key_passphrase.help'}} @error={{@model.errors.private_key_passphrase}} + @hasVisibilityToggle={{false}} autocomplete='new-password' as |field| > diff --git a/ui/admin/app/components/form/field/secret-input/index.hbs b/ui/admin/app/components/form/field/secret-input/index.hbs index b47965f28..3b45d9e12 100644 --- a/ui/admin/app/components/form/field/secret-input/index.hbs +++ b/ui/admin/app/components/form/field/secret-input/index.hbs @@ -14,6 +14,7 @@ @type={{(or @type 'password')}} name={{@name}} disabled={{or @isDisabled (not this.isEditing)}} + @hasVisibilityToggle={{false}} ...attributes as |F| > diff --git a/ui/admin/app/components/form/storage-bucket/index.hbs b/ui/admin/app/components/form/storage-bucket/index.hbs index ae5c7c1b2..ec813643b 100644 --- a/ui/admin/app/components/form/storage-bucket/index.hbs +++ b/ui/admin/app/components/form/storage-bucket/index.hbs @@ -209,6 +209,7 @@ @isInvalid={{@model.errors.secrets}} @type='password' name='access_key_id' + @hasVisibilityToggle={{false}} {{on 'input' (set-from-event @model 'access_key_id')}} as |F| > @@ -234,6 +235,7 @@ @type='password' name='secret_access_key' disabled={{form.disabled}} + @hasVisibilityToggle={{false}} {{on 'input' (set-from-event @model 'secret_access_key')}} as |F| > diff --git a/ui/admin/app/styles/app.scss b/ui/admin/app/styles/app.scss index 6a9eaf6b1..f0fad917e 100644 --- a/ui/admin/app/styles/app.scss +++ b/ui/admin/app/styles/app.scss @@ -747,6 +747,7 @@ bottom: 2.15rem; left: 0.5rem; border-radius: 0.25rem; + z-index: 1; background-color: var(--token-color-palette-neutral-200); } diff --git a/ui/admin/tests/acceptance/accounts/change-password-test.js b/ui/admin/tests/acceptance/accounts/change-password-test.js index df334b11d..f9cb88ae5 100644 --- a/ui/admin/tests/acceptance/accounts/change-password-test.js +++ b/ui/admin/tests/acceptance/accounts/change-password-test.js @@ -103,7 +103,7 @@ module('Acceptance | accounts | change password', function (hooks) { await visit(urls.changePassword); await fillIn('[name="currentPassword"]', 'current password'); await fillIn('[name="newPassword"]', 'new password'); - await click('form button:not([type="submit"])'); + await click('.hds-button--color-secondary'); assert.notEqual(currentURL(), urls.changePassword); }); diff --git a/ui/admin/tests/acceptance/storage-buckets/update-test.js b/ui/admin/tests/acceptance/storage-buckets/update-test.js index b5235bda2..a8477e63e 100644 --- a/ui/admin/tests/acceptance/storage-buckets/update-test.js +++ b/ui/admin/tests/acceptance/storage-buckets/update-test.js @@ -98,6 +98,7 @@ module('Acceptance | storage-buckets | update', function (hooks) { await click(`[href="${urls.storageBucket}"]`); assert.dom(SECRET_FIELD_BUTTON_SELECTOR).exists({ count: 2 }); + assert.dom(SECRET_FIELD_BUTTON_SELECTOR).isDisabled(); await click(BUTTON_SELECTOR, 'Click edit mode'); diff --git a/yarn.lock b/yarn.lock index e77a97f20..7f8d0d7a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3865,6 +3865,14 @@ ember-cli-version-checker "^5.1.2" semver "^7.3.5" +"@embroider/addon-shim@1.8.3", "@embroider/addon-shim@^1.3.0", "@embroider/addon-shim@^1.5.0": + version "1.8.3" + resolved "https://registry.yarnpkg.com/@embroider/addon-shim/-/addon-shim-1.8.3.tgz#2368510b8ce42d50d02cb3289c32e260dfa34bd9" + integrity sha512-7pyHwzT6ESXc3nZsB8rfnirLkUhQWdvj6CkYH+0MUPN74mX4rslf7pnBqZE/KZkW3uBIaBYvU8fxi0hcKC/Paw== + dependencies: + "@embroider/shared-internals" "^1.8.3" + semver "^7.3.5" + "@embroider/addon-shim@^1.0.0": version "1.8.4" resolved "https://registry.yarnpkg.com/@embroider/addon-shim/-/addon-shim-1.8.4.tgz#0e7f32c5506bf0f3eb0840506e31c36c7053763c" @@ -3883,14 +3891,6 @@ broccoli-funnel "^3.0.8" semver "^7.3.8" -"@embroider/addon-shim@^1.3.0", "@embroider/addon-shim@^1.5.0": - version "1.8.3" - resolved "https://registry.yarnpkg.com/@embroider/addon-shim/-/addon-shim-1.8.3.tgz#2368510b8ce42d50d02cb3289c32e260dfa34bd9" - integrity sha512-7pyHwzT6ESXc3nZsB8rfnirLkUhQWdvj6CkYH+0MUPN74mX4rslf7pnBqZE/KZkW3uBIaBYvU8fxi0hcKC/Paw== - dependencies: - "@embroider/shared-internals" "^1.8.3" - semver "^7.3.5" - "@embroider/addon-shim@^1.8.4": version "1.8.6" resolved "https://registry.yarnpkg.com/@embroider/addon-shim/-/addon-shim-1.8.6.tgz#b676991b4fa32c3a98dc7db7dc6cd655029c3f09" @@ -4007,6 +4007,15 @@ lodash "^4.17.21" resolve "^1.20.0" +"@embroider/util@^1.0.0", "@embroider/util@^1.9.0": + version "1.12.0" + resolved "https://registry.yarnpkg.com/@embroider/util/-/util-1.12.0.tgz#4b7828650b55f8498f1e78bb63e27e77835e926f" + integrity sha512-P4M1QADEH9ceIYC9mwHeV+6DDgEIQQYFfZi728nVKqTAxakXoiLgu/BCyQmEGyow9fYEPYaC1boDCZxW2JQAXg== + dependencies: + "@embroider/macros" "^1.13.0" + broccoli-funnel "^3.0.5" + ember-cli-babel "^7.26.11" + "@embroider/util@^1.6.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@embroider/util/-/util-1.8.0.tgz#91593b14798ce579a8ab7bb10b190f29fd83b52f" @@ -4016,15 +4025,6 @@ broccoli-funnel "^3.0.5" ember-cli-babel "^7.23.1" -"@embroider/util@^1.9.0": - version "1.12.0" - resolved "https://registry.yarnpkg.com/@embroider/util/-/util-1.12.0.tgz#4b7828650b55f8498f1e78bb63e27e77835e926f" - integrity sha512-P4M1QADEH9ceIYC9mwHeV+6DDgEIQQYFfZi728nVKqTAxakXoiLgu/BCyQmEGyow9fYEPYaC1boDCZxW2JQAXg== - dependencies: - "@embroider/macros" "^1.13.0" - broccoli-funnel "^3.0.5" - ember-cli-babel "^7.26.11" - "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" @@ -4294,24 +4294,24 @@ resolved "https://registry.yarnpkg.com/@handlebars/parser/-/parser-2.0.0.tgz#5e8b7298f31ff8f7b260e6b7363c7e9ceed7d9c5" integrity sha512-EP9uEDZv/L5Qh9IWuMUGJRfwhXJ4h1dqKTT4/3+tY0eu7sPis7xh23j61SYUnNF4vqCQvvUXpDo9Bh/+q1zASA== -"@hashicorp/design-system-components@^2.11.0": - version "2.11.0" - resolved "https://registry.yarnpkg.com/@hashicorp/design-system-components/-/design-system-components-2.11.0.tgz#d7b77a484f9c4a316d33921e76dd00dd8bbcfdf0" - integrity sha512-7yDJQEDEfzW8tNVRHbqes90lzIhEm+UuEsne1oBxM0SjzVX6+mvDT7WO+LO2j0wSPmsAcVbnmlOuNxkueUMZwQ== +"@hashicorp/design-system-components@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@hashicorp/design-system-components/-/design-system-components-3.0.2.tgz#f9bf18f0f20f6396d4afc2ed138056c27dff8a38" + integrity sha512-Pt3dgCxzutIJ3LDtVgT0NSU5oTV8OFzgK9Nx1tTzIpMOfbCRzZuBmJB06ZPCdyP9Vs7lQVrn/kKzZaKJejrXiQ== dependencies: "@ember/render-modifiers" "^2.0.5" "@ember/test-waiters" "^3.0.2" - "@hashicorp/design-system-tokens" "^1.7.0" - "@hashicorp/ember-flight-icons" "^3.1.1" + "@hashicorp/design-system-tokens" "^1.9.0" + "@hashicorp/ember-flight-icons" "^4.0.1" dialog-polyfill "^0.5.6" ember-a11y-refocus "^3.0.2" ember-auto-import "^2.6.3" ember-cached-decorator-polyfill "^0.1.4" ember-cli-babel "^7.26.11" - ember-cli-clipboard "^1.0.0" ember-cli-htmlbars "^6.2.0" ember-cli-sass "^10.0.1" ember-composable-helpers "^4.5.0" + ember-element-helper "^0.8.5" ember-focus-trap "^1.0.2" ember-keyboard "^8.2.0" ember-stargate "^0.4.3" @@ -4320,10 +4320,10 @@ sass "^1.62.1" tippy.js "^6.3.7" -"@hashicorp/design-system-tokens@^1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@hashicorp/design-system-tokens/-/design-system-tokens-1.7.0.tgz#13fb242f641712729b8ce10d83da38ce1ef8b249" - integrity sha512-BXlmpEnvJ3sI/4AamqPvuDRLx/OP/B1VdpYYK0MVgsXpojdL4yboMKJfCDcwlInvC+5tINu6LacLSGPYkXc1sg== +"@hashicorp/design-system-tokens@^1.9.0": + version "1.9.0" + resolved "https://registry.yarnpkg.com/@hashicorp/design-system-tokens/-/design-system-tokens-1.9.0.tgz#1cfd2627d838214c609f25ff6696b3f3d516d9e5" + integrity sha512-zmMpnKv4vulhVFVCpqf3oAAR5fQeDDnMxbeJIZllLFCgF2JFoL6C/Irghx4WnBAG8GkLs8CbxjPVtFjSYq+V8w== "@hashicorp/ember-asciinema-player@https://github.com/hashicorp/ember-asciinema-player.git#e047a096039cff70234c232efe75dcad74c6358a": version "0.0.0" @@ -4334,20 +4334,21 @@ ember-cli-babel "^7.26.11" ember-cli-htmlbars "^6.1.1" -"@hashicorp/ember-flight-icons@^3.1.1": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@hashicorp/ember-flight-icons/-/ember-flight-icons-3.1.1.tgz#c38f02d1eb3f754753658f20d99548026d22e71a" - integrity sha512-Fy3CP/ZRgYYHwPKqXELNPnJ5fkCzhuGWx/DSE4PhVORRE8+QPSXx8zNcaitpzaKVHafcBPMVYcAVRc/2Ecsklw== +"@hashicorp/ember-flight-icons@^4.0.1": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@hashicorp/ember-flight-icons/-/ember-flight-icons-4.0.1.tgz#08499f495f8f9ff9eb9eb6c439f1861f8411c047" + integrity sha512-8xkU+2ATX/a5pofmwO51YXgwHamG6YUpxOXxcPbA+9/TKNn1HFbrk3TWJBuDIwz2kdk9hXRZBri2XIR18BFrTA== dependencies: - "@hashicorp/flight-icons" "^2.18.0" + "@hashicorp/flight-icons" "^2.20.0" ember-auto-import "^2.6.3" ember-cli-babel "^7.26.11" ember-cli-htmlbars "^6.2.0" + ember-get-config "^2.1.1" -"@hashicorp/flight-icons@^2.18.0": - version "2.18.0" - resolved "https://registry.yarnpkg.com/@hashicorp/flight-icons/-/flight-icons-2.18.0.tgz#73fe35e9c4b96495176795eb3f5207a81467b9ba" - integrity sha512-uYZ+lVP0buxl1HKO59YX2+ivBwecwNZUF5/bf1oAsUjD+vStM6W+NFrs32uwA+fbyCZ6Zz/dC7MdatuidPezAg== +"@hashicorp/flight-icons@^2.20.0": + version "2.20.0" + resolved "https://registry.yarnpkg.com/@hashicorp/flight-icons/-/flight-icons-2.20.0.tgz#ef187e9295b2778b24f206ca10ab20f3a627ff76" + integrity sha512-CYIY5yAkYzi8Q+w86Mk41IK1/1X+AoQUtxK3Yt48ZHzulsz3Wlvg91YvnOGntxjqcp7AGwpOYnq7xM2W4bummQ== "@humanwhocodes/config-array@^0.11.10": version "0.11.10" @@ -10577,6 +10578,14 @@ ember-electron@^3.1.1: silent-error "^1.1.1" tree-kill "^1.2.2" +ember-element-helper@^0.8.5: + version "0.8.5" + resolved "https://registry.yarnpkg.com/ember-element-helper/-/ember-element-helper-0.8.5.tgz#5a53d4e3aa8379694c2002a3097269aeb7c2621b" + integrity sha512-yZYzuasn6ZC8Nwv0MpaLYGtm68ZxIBSNSe/CYxNWkDdgcuAb2lAG1gx37XkwBIiwPQET0W2agwq7++/HwdMF8g== + dependencies: + "@embroider/addon-shim" "1.8.3" + "@embroider/util" "^1.0.0" + ember-exam@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/ember-exam/-/ember-exam-8.0.0.tgz#4b9fc1e2b00c1ef08ac31792058b1fa4dbdbcca1"