var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { css, customElement, html, ifDefined } from '../../../../external/lit/index.js';
import { umbExtensionsRegistry } from '../../extension-registry/index.js';
import { UmbLitElement } from '../../lit-element/index.js';
import { UmbTextStyles } from '../../style/index.js';
const manifest = {
    type: 'kind',
    alias: 'Umb.Kind.Button',
    matchKind: 'button',
    matchType: 'headerApp',
    manifest: {
        type: 'headerApp',
        kind: 'button',
        elementName: 'umb-header-app-button',
    },
};
umbExtensionsRegistry.register(manifest);
let UmbHeaderAppButtonElement = class UmbHeaderAppButtonElement extends UmbLitElement {
    render() {
        return html `
			<uui-button
				look="primary"
				label=${ifDefined(this.manifest?.meta.label)}
				href=${ifDefined(this.manifest?.meta.href)}
				compact>
				<umb-icon name=${ifDefined(this.manifest?.meta.icon)}></umb-icon>
			</uui-button>
		`;
    }
    static { this.styles = [
        UmbTextStyles,
        css `
			uui-button {
				font-size: 18px;
				--uui-button-background-color: var(--umb-header-app-button-background-color, transparent);
				--uui-button-background-color-hover: var(
					--umb-header-app-button-background-color-hover,
					var(--uui-color-emphasis)
				);
			}
		`,
    ]; }
};
UmbHeaderAppButtonElement = __decorate([
    customElement('umb-header-app-button')
], UmbHeaderAppButtonElement);
export { UmbHeaderAppButtonElement };
export default UmbHeaderAppButtonElement;
