import { r as registerInstance, c as createEvent, h, H as Host } from './index-345463dd.js';

const klevuBadgeCss = ":host{display:inline-block;padding:var(--klevu-spacing-02) var(--klevu-spacing-05);background:var(--klevu-badge-background);border-radius:var(--klevu-border-radius-xxl, var(--klevu-badge-border-radius));align-items:center}klevu-icon{position:relative;top:1px;left:-4px;font-size:0.7em;margin-right:var(--klevu-spacing-01)}klevu-typography{line-height:1}";

const KlevuBadge = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.klevuBadgeClose = createEvent(this, "klevuBadgeClose", 7);
    this.accent = undefined;
    this.neutral = undefined;
  }
  render() {
    let style = {};
    if (this.accent || this.neutral) {
      style = {
        "--klevu-badge-background": this.accent
          ? `var(--klevu-color-accent-${this.accent})`
          : `var(--klevu-color-neutral-${this.neutral})`,
      };
    }
    return (h(Host, { style: style }, h("klevu-typography", { variant: "body-xs" }, h("slot", null))));
  }
};
KlevuBadge.style = klevuBadgeCss;

export { KlevuBadge as klevu_badge };

//# sourceMappingURL=klevu-badge.entry.js.map