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

const DataLabel = /*@__PURE__*/ proxyCustomElement(class DataLabel extends HTMLElement {
    constructor(registerHost) {
        super();
        if (registerHost !== false) {
            this.__registerHost();
        }
        /**
         * If `true` an asterix is added after the label.
         */
        this.required = false;
    }
    render() {
        return (h(Host, { key: '114f7b7b26f2cc4a0c4ba430df1d3d17f4df786a', class: Object.assign({}, BEM.block('data-label').class()) }, h("slot", { key: 'bba812f478c14efa78880304b42bd8a9d91a3187' }), this.required ? '*' : ''));
    }
}, [260, "bal-data-label", {
        "required": [4]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["bal-data-label"];
    components.forEach(tagName => { switch (tagName) {
        case "bal-data-label":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, DataLabel);
            }
            break;
    } });
}

const BalDataLabel = DataLabel;
const defineCustomElement = defineCustomElement$1;

export { BalDataLabel, defineCustomElement };
