import { p as proxyCustomElement, H, h } from './p-604af0ee.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: '35cd780b901fca5fe50de1cd81ca1d44a2d2914c', class: `dga-label dga-label--${this.size} ${this.disabled ? "disabled" : ""}` }, this.required && h("span", { key: '5a35be9ee548d6a204c4e636d7198c2e0d41293d', 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 };

//# sourceMappingURL=p-0102a31f.js.map