@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
5 lines (4 loc) • 788 B
JavaScript
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
v3.2.1 */
import{E as a,R as o,c as s,d as l,q as i}from"./BJZTU5BQ.js";var r=s`:host{display:block}:host([hidden]){display:none}[hidden]{display:none}`,t=class extends a{constructor(){super(...arguments),this.disabled=!1,this.calciteInternalOptionGroupChange=i({cancelable:!1})}static{this.properties={disabled:[7,{},{reflect:!0,type:Boolean}],label:1}}static{this.styles=r}willUpdate(e){(e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)||e.has("label"))&&this.calciteInternalOptionGroupChange.emit()}render(){return l`<div>${this.label}</div><slot></slot>`}};o("calcite-option-group",t);export{t as OptionGroup};