import { p as proxyCustomElement, H, h } from './p-BhqVmlhr.js';

const DgaLabel = /*@__PURE__*/ proxyCustomElement(class DgaLabel extends H {
    constructor() {
        super();
        this.__registerHost();
        this.label = '';
        this.variant = 'default';
        this.size = 'md';
        this.disabled = false;
        this.required = false;
    }
    render() {
        return (h("label", { key: '2664ee2470a12a0a0c4319ace89e7433b9f97fb4', class: `dga-label dga-label--${this.size} ${this.disabled ? "disabled" : ""}` }, this.required && h("span", { key: 'a133a41c5a00e5c010485629f3caf56da205d09d', class: "star" }, "*"), this.label));
    }
}, [0, "dga-label", {
        "label": [1],
        "variant": [1],
        "size": [1],
        "disabled": [4],
        "required": [4]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["dga-label"];
    components.forEach(tagName => { switch (tagName) {
        case "dga-label":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, DgaLabel);
            }
            break;
    } });
}

export { DgaLabel as D, defineCustomElement as d };
