import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';

const bsToastHeaderCss = "bs-toast-header{display:block}.bs-toast-header :where(h5){font-size:var(--bs-text-md);margin:0}.bs-toast-header:where([data-variant^=\"warning\"]) :where(.bs-toast-header-icon){color:var(--bs-orange-warning)}.bs-toast-header:where([data-variant^=\"positive\"]) :where(.bs-toast-header-icon){color:var(--bs-purple-400)}:where(.dark) .bs-toast-header:where([data-variant^=\"positive\"]) :where(.bs-toast-header-icon){color:var(--bs-purple-200)}.bs-toast-header:where([data-variant^=\"negative\"]) :where(.bs-toast-header-icon){color:var(--bs-red-400)}";

const BsToastHeader$1 = /*@__PURE__*/ proxyCustomElement(class BsToastHeader extends HTMLElement {
  constructor() {
    super();
    this.__registerHost();
    this.variant = undefined;
  }
  /** Get icon based on variant */
  get icon() {
    const attributes = {
      class: 'bs-toast-header-icon'
    };
    switch (this.variant) {
      case 'warning':
        return h("bs-icon-warning", Object.assign({}, attributes));
      case 'positive':
        return h("bs-icon-thumbs-up-stroke", Object.assign({}, attributes));
      case 'negative':
        return h("bs-icon-warning", Object.assign({}, attributes));
      default:
        return h("bs-icon-circle-exclamation", Object.assign({}, attributes));
    }
  }
  render() {
    return (h(Host, { "data-variant": this.variant }, h("div", { class: "bs-toast-header", "data-variant": this.variant }, this.icon, h("h5", null, h("slot", null)))));
  }
  static get style() { return bsToastHeaderCss; }
}, [4, "bs-toast-header", {
    "variant": [1]
  }]);
function defineCustomElement$1() {
  if (typeof customElements === "undefined") {
    return;
  }
  const components = ["bs-toast-header"];
  components.forEach(tagName => { switch (tagName) {
    case "bs-toast-header":
      if (!customElements.get(tagName)) {
        customElements.define(tagName, BsToastHeader$1);
      }
      break;
  } });
}

const BsToastHeader = BsToastHeader$1;
const defineCustomElement = defineCustomElement$1;

export { BsToastHeader, defineCustomElement };

//# sourceMappingURL=bs-toast-header.js.map