diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/search/search.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/search/search.element.ts deleted file mode 100644 index 6ae9e77ab9..0000000000 --- a/src/Umbraco.Web.UI.Client/src/backoffice/search/search.element.ts +++ /dev/null @@ -1,156 +0,0 @@ -import { UUITextStyles } from '@umbraco-ui/uui-css'; -import { css, html, LitElement } from 'lit'; -import { customElement } from 'lit/decorators.js'; - -@customElement('umb-search') -export class UmbSearchElement extends LitElement { - static styles = [ - UUITextStyles, - css` - :host { - display: flex; - flex-direction: column; - height: 100%; - width: 100%; - height: 100%; - background-color: var(--uui-color-background); - box-sizing: border-box; - color: var(--uui-color-text); - font-size: 1rem; - } - input { - all: unset; - height: 100%; - width: 100%; - } - #search-icon, - #close-icon { - display: flex; - align-items: center; - justify-content: center; - aspect-ratio: 1; - height: 100%; - } - #close-icon > button { - background: var(--uui-color-surface-alt); - border: 1px solid var(--uui-color-border); - padding: 3px 6px 4px 6px; - line-height: 1; - border-radius: 3px; - color: var(--uui-color-text-alt); - font-weight: 800; - font-size: 12px; - } - #close-icon > button:hover { - border-color: var(--uui-color-focus); - color: var(--uui-color-focus); - } - #top { - background-color: var(--uui-color-surface); - display: flex; - height: 48px; - border-bottom: 1px solid var(--uui-color-border); - } - #main { - display: flex; - flex-direction: column; - padding: 0 32px 16px 32px; - } - .group { - margin-top: var(--uui-size-space-4); - } - .group-name { - font-weight: 600; - margin-bottom: var(--uui-size-space-1); - } - .results { - display: flex; - flex-direction: column; - gap: 8px; - } - .result { - background: var(--uui-color-surface); - border: 1px solid var(--uui-color-border); - padding: var(--uui-size-space-3) var(--uui-size-space-4); - border-radius: var(--uui-border-radius); - color: var(--uui-color-interactive); - cursor: pointer; - justify-content: space-between; - display: flex; - } - .result:hover { - background-color: var(--uui-color-surface-emphasis); - color: var(--uui-color-interactive-emphasis); - } - .result:hover span { - font-weight: unset; - opacity: unset; - } - a { - text-decoration: none; - color: inherit; - } - a span { - opacity: 0.5; - font-weight: 100; - } - `, - ]; - - connectedCallback() { - super.connectedCallback(); - - requestAnimationFrame(() => { - this.shadowRoot?.querySelector('input')?.focus(); - }); - } - - render() { - return html` -