/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
import { c as customElement } from "../../chunks/runtime.js";
import { html } from "lit";
import { LitElement, createEvent } from "@arcgis/lumina";
class OptionGroup extends LitElement {
  constructor() {
    super(...arguments);
    this.disabled = false;
    this.calciteInternalOptionGroupChange = createEvent({ cancelable: false });
  }
  static {
    this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], label: 1 };
  }
  willUpdate(changes) {
    if (changes.has("disabled") && (this.hasUpdated || this.disabled !== false) || changes.has("label")) {
      this.calciteInternalOptionGroupChange.emit();
    }
  }
  render() {
    return html`<div>${this.label}</div><slot></slot>`;
  }
}
customElement("calcite-option-group", OptionGroup);
export {
  OptionGroup
};
