import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { B as Button } from './button.js';

const InternalButton = /*@__PURE__*/ proxyCustomElement(class InternalButton extends HTMLElement {
    constructor(registerHost) {
        super();
        if (registerHost !== false) {
            this.__registerHost();
        }
        this.variant = 'primary';
        this.type = 'button';
    }
    render() {
        return (h(Button, { key: 'a20d0f251ab26062356b54965b3981af7953c71f', variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, class: this.class, type: this.type, disabled: this.disabled, style: this.customStyle, hidden: this.hidden }, this.text));
    }
}, [256, "internal-button", {
        "text": [1],
        "variant": [1],
        "isLoading": [4, "is-loading"],
        "clickHandler": [16],
        "disabled": [4],
        "type": [1],
        "class": [1],
        "customStyle": [1, "custom-style"],
        "hidden": [4]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["internal-button"];
    components.forEach(tagName => { switch (tagName) {
        case "internal-button":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, InternalButton);
            }
            break;
    } });
}
defineCustomElement();

export { InternalButton as I, defineCustomElement as d };
