import { r as registerInstance, h, H as Host } from './index-92f6d7ee.js';

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 = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    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)))));
  }
};
BsToastHeader.style = bsToastHeaderCss;

export { BsToastHeader as bs_toast_header };

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