'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-6377956f.js');

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

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

exports.ecl_accordion_item = EclAccordionItem;

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