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

const DataItem = /*@__PURE__*/ proxyCustomElement(class DataItem extends HTMLElement {
    constructor(registerHost) {
        super();
        if (registerHost !== false) {
            this.__registerHost();
        }
        /**
         * If `true` the item gets a lighter font color.
         */
        this.disabled = false;
        /**
         * If `true` a bottom border is added to the data-item.
         */
        this.border = false;
    }
    render() {
        const element = BEM.block('data-item');
        return (h(Host, { key: '407b2d982f48e77a71daa015e98acb720b369860', class: Object.assign(Object.assign(Object.assign({}, element.class()), element.modifier('is-disabled').class(this.disabled)), element.modifier('has-border').class(this.border)) }, h("slot", { key: 'e9d0e88af9d336879ed87b59732a583c43bd466f' })));
    }
}, [260, "bal-data-item", {
        "disabled": [4],
        "border": [4]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["bal-data-item"];
    components.forEach(tagName => { switch (tagName) {
        case "bal-data-item":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, DataItem);
            }
            break;
    } });
}

const BalDataItem = DataItem;
const defineCustomElement = defineCustomElement$1;

export { BalDataItem, defineCustomElement };
