import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';

const pdsTabpanelCss = ":host{display:block}.pds-tabpanel{display:none;margin-top:var(--tabs-dimension-panel-margin-top);padding:var(--tabs-dimension-panel-padding)}.pds-tabpanel:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-tabpanel.is-active{display:block}";

const PdsTabpanel$1 = /*@__PURE__*/ proxyCustomElement(class PdsTabpanel extends HTMLElement {
    constructor(registerHost) {
        super();
        if (registerHost !== false) {
            this.__registerHost();
        }
        /**
         * Keeps track of the tabpanel selected state, this property is passed by parent component
         */
        /** @internal */
        this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
    }
    render() {
        return (h(Host, { key: '6ba83ea71c899d61f67884780731591a05aa1894', slot: "tabpanels" }, h("div", { key: 'abaa610f7a68a3977303e08f1221976ae2840272', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", { key: 'b80ecc1380f424d545b31843b53de1b2854e9f28' }))));
    }
    get el() { return this; }
    static get style() { return pdsTabpanelCss; }
}, [260, "pds-tabpanel", {
        "name": [1],
        "parentComponentId": [1, "parent-component-id"],
        "variant": [1],
        "selected": [1028]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["pds-tabpanel"];
    components.forEach(tagName => { switch (tagName) {
        case "pds-tabpanel":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, PdsTabpanel$1);
            }
            break;
    } });
}

const PdsTabpanel = PdsTabpanel$1;
const defineCustomElement = defineCustomElement$1;

export { PdsTabpanel, defineCustomElement };
//# sourceMappingURL=pds-tabpanel.js.map

//# sourceMappingURL=pds-tabpanel.js.map