import { r as registerInstance, h, H as Host, c as getElement } from './index-0a3acb15.js';

const eclAccordionItemCss = ".sc-ecl-accordion-item-h{display:block}";

const EclAccordionItem = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.styleClass = undefined;
    this.label = undefined;
    this.expanded = undefined;
    this.theme = 'ec';
  }
  getClass() {
    return [
      `ecl-accordion__item`,
      this.styleClass
    ].join(' ');
  }
  render() {
    return (h(Host, { class: this.getClass() }, h("h3", { class: "ecl-accordion__title" }, h("button", { "data-ecl-accordion-toggle": true, "aria-controls": `${this.el.id}-content`, class: "ecl-accordion__toggle", "aria-expanded": this.expanded ? 'true' : 'false' }, h("span", { class: "ecl-accordion__toggle-flex" }, h("span", { class: "ecl-accordion__toggle-indicator" }, h("ecl-icon", { icon: this.expanded ? "minus" : 'plus', theme: this.theme, size: "m", "style-class": "ecl-accordion__toggle-icon", "data-ecl-accordion-icon": true })), h("span", { class: "ecl-accordion__toggle-title" }, this.label)))), h("div", { class: "ecl-accordion__content", role: "region", id: `${this.el.id}-content`, hidden: this.expanded !== true }, h("slot", null))));
  }
  static get assetsDirs() { return ["build"]; }
  get el() { return getElement(this); }
};
EclAccordionItem.style = eclAccordionItemCss;

export { EclAccordionItem as ecl_accordion_item };

//# sourceMappingURL=ecl-accordion-item.entry.js.map