diff --git a/addons/rose/addon/components/rose/toolbar/info/index.hbs b/addons/rose/addon/components/rose/toolbar/info/index.hbs deleted file mode 100644 index 53576d531..000000000 --- a/addons/rose/addon/components/rose/toolbar/info/index.hbs +++ /dev/null @@ -1,8 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -}} - - - {{yield}} - \ No newline at end of file diff --git a/addons/rose/app/components/rose/toolbar/info.js b/addons/rose/app/components/rose/toolbar/info.js deleted file mode 100644 index 0f885e83c..000000000 --- a/addons/rose/app/components/rose/toolbar/info.js +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -export { default } from 'rose/components/rose/toolbar/info'; diff --git a/addons/rose/app/styles/rose/components/toolbar/_index.scss b/addons/rose/app/styles/rose/components/toolbar/_index.scss index 56f3025f6..b89c43544 100644 --- a/addons/rose/app/styles/rose/components/toolbar/_index.scss +++ b/addons/rose/app/styles/rose/components/toolbar/_index.scss @@ -3,5 +3,4 @@ * SPDX-License-Identifier: BUSL-1.1 */ -@import 'info'; @import 'toolbar'; diff --git a/addons/rose/app/styles/rose/components/toolbar/_info.scss b/addons/rose/app/styles/rose/components/toolbar/_info.scss deleted file mode 100644 index 415926f8d..000000000 --- a/addons/rose/app/styles/rose/components/toolbar/_info.scss +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -@use '../../variables/sizing'; -@use '../../variables/media'; -@use '../../utilities/type'; - -.rose-toolbar-info { - @include type.type(button); - - color: var(--ui-gray); - position: relative; - display: inline-block; - vertical-align: middle; - white-space: nowrap; - overflow: hidden; - - $y-padding: sizing.rems(xxs) + sizing.rems(xxxs); - - padding: $y-padding sizing.rems(m) $y-padding sizing.rems(l); -} diff --git a/addons/rose/tests/integration/components/rose/toolbar/info-test.js b/addons/rose/tests/integration/components/rose/toolbar/info-test.js deleted file mode 100644 index 786234ab5..000000000 --- a/addons/rose/tests/integration/components/rose/toolbar/info-test.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { render } from '@ember/test-helpers'; -import { hbs } from 'ember-cli-htmlbars'; - -module('Integration | Component | rose/toolbar/info', function (hooks) { - setupRenderingTest(hooks); - - test('it renders', async function (assert) { - // Set any properties with this.set('myProperty', 'value'); - // Handle any actions with this.set('myAction', function(val) { ... }); - - await render(hbs``); - - assert.dom(this.element).hasText(''); - - // Template block usage: - await render(hbs` - - template block text - - `); - - assert.dom(this.element).hasText('template block text'); - }); -}); diff --git a/ui/desktop/app/components/reveal/index.hbs b/ui/desktop/app/components/reveal/index.hbs deleted file mode 100644 index e9beafaa3..000000000 --- a/ui/desktop/app/components/reveal/index.hbs +++ /dev/null @@ -1,19 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -}} - -
- - - {{@textWhenClose}} - - - {{@textWhenOpen}} - - - - - {{yield}} - -
\ No newline at end of file diff --git a/ui/desktop/app/components/reveal/index.js b/ui/desktop/app/components/reveal/index.js deleted file mode 100644 index 982c102b4..000000000 --- a/ui/desktop/app/components/reveal/index.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -import RoseDropdownComponent from 'rose/components/rose/dropdown'; - -export default class RevealComponent extends RoseDropdownComponent {} diff --git a/ui/desktop/app/styles/app.scss b/ui/desktop/app/styles/app.scss index 973e86f87..8ef4fa919 100644 --- a/ui/desktop/app/styles/app.scss +++ b/ui/desktop/app/styles/app.scss @@ -274,68 +274,6 @@ z-index: 5500; } -// Reveal component (app/components/reveal) -$chevron-up: url("data:image/svg+xml;utf-8,"); -$chevron-down: url("data:image/svg+xml;utf-8,"); - -.reveal { - --trigger-color: var(--action); - - .reveal-trigger { - background: url($chevron-down) no-repeat right center; - color: var(--trigger-color); - cursor: default; - display: inline-block; - overflow: hidden; - padding-right: sizing.rems(l); - white-space: nowrap; - - // Hide default twistie triangle - // Firefox - list-style-type: none; - - // Webkit / Chromium - &::-webkit-details-marker { - display: none; - } - - &::marker { - display: none; - } - - &:hover { - --trigger-color: var(--action-starker-1); - } - } - - &:not([open]) { - .reveal-trigger-text-close { - background: $chevron-down no-repeat right center; - padding-right: sizing.rems(l); - } - - .reveal-trigger-text-open { - display: none; - } - } - - &[open] { - .reveal-trigger-text-open { - background: $chevron-up no-repeat right center; - padding-right: sizing.rems(l); - } - - .reveal-trigger-text-close { - display: none; - } - - pre { - white-space: pre-wrap; - word-break: break-all; - } - } -} - // Card component (app/components/card) .card { border: sizing.rems(xxxxs) solid var(--ui-gray-subtler-3); diff --git a/ui/desktop/tests/integration/components/reveal-test.js b/ui/desktop/tests/integration/components/reveal-test.js deleted file mode 100644 index 40e5eddc5..000000000 --- a/ui/desktop/tests/integration/components/reveal-test.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { render, find, click } from '@ember/test-helpers'; -import { hbs } from 'ember-cli-htmlbars'; - -module('Integration | Component | reveal', function (hooks) { - setupRenderingTest(hooks); - - test('it renders', async function (assert) { - assert.expect(3); - await render(hbs` - - `); - assert.ok(find('.reveal')); - assert.ok(find('.reveal-trigger')); - assert.ok(find('.reveal-trigger').textContent.trim(), 'View content'); - }); - - test('it renders with content, opens, show the content, close and hide the content', async function (assert) { - assert.expect(3); - await render(hbs` - -
-          
-            {
-              "auth": null,
-              "lease_duration": 3600,
-              "lease_id": "",
-              "renewable": false
-            }
-          
-        
-
- `); - - assert.notOk(find('details').open); - await click('summary'); - assert.ok(find('details').open); - await click('summary'); - assert.notOk(find('details').open); - }); -});