import { event } from "./chunk.XX234VRK.js"; import { e as e2 } from "./chunk.YXKHB4AC.js"; import { T, e, h, n, o, r } from "./chunk.5PIDMFOE.js"; import { __decorateClass } from "./chunk.IHGPZX35.js"; // _uyihdawu1:/Users/claviska/Projects/shoelace/src/components/tab/tab.scss var tab_default = ":host {\n position: relative;\n box-sizing: border-box;\n}\n:host *, :host *:before, :host *:after {\n box-sizing: inherit;\n}\n\n[hidden] {\n display: none !important;\n}\n\n:host {\n --focus-ring: inset 0 0 0 var(--sl-focus-ring-width) var(--sl-focus-ring-color-primary);\n display: inline-block;\n}\n\n.tab {\n display: inline-flex;\n align-items: center;\n font-family: var(--sl-font-sans);\n font-size: var(--sl-font-size-small);\n font-weight: var(--sl-font-weight-semibold);\n border-radius: 4px;\n color: var(--sl-color-gray-600);\n padding: var(--sl-spacing-medium) var(--sl-spacing-large);\n white-space: nowrap;\n user-select: none;\n cursor: pointer;\n transition: var(--transition-speed) box-shadow, var(--transition-speed) color;\n}\n.tab:hover:not(.tab--disabled) {\n color: var(--sl-color-primary-500);\n}\n.tab:focus {\n outline: none;\n}\n.tab:focus:not(.tab--disabled) {\n color: var(--sl-color-primary-500);\n box-shadow: var(--focus-ring);\n}\n.tab.tab--active:not(.tab--disabled) {\n color: var(--sl-color-primary-500);\n}\n.tab.tab--closable {\n padding-right: var(--sl-spacing-small);\n}\n.tab.tab--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.tab__close-button {\n font-size: var(--sl-font-size-large);\n margin-left: var(--sl-spacing-xx-small);\n}\n.tab__close-button::part(base) {\n padding: var(--sl-spacing-xxx-small);\n}"; // src/components/tab/tab.ts var id = 0; var SlTab = class extends h { constructor() { super(...arguments); this.componentId = `tab-${++id}`; this.panel = ""; this.active = false; this.closable = false; this.disabled = false; } focus(options) { this.tab.focus(options); } blur() { this.tab.blur(); } handleCloseClick() { this.slClose.emit(); } render() { this.id = this.id || this.componentId; return T`