import { FluentComponent } from '../core/fluent-component' import { createUniversalComponent } from '../core/component-factory' class FluentSelectInternal extends FluentComponent { static tag = 'fluent-select' static override get observedAttributes() { return ['disabled'] } static override get renderAttributes() { return ['disabled'] } render() { const disabled = this.hasAttribute('disabled') ? 'disabled' : '' this.shadowRootRef.innerHTML = ` ` } } export const FluentSelect = createUniversalComponent({ tag: 'fluent-select', class: FluentSelectInternal, events: ['change'] }) if (typeof window !== 'undefined') { if (!customElements.get(FluentSelectInternal.tag)) { customElements.define(FluentSelectInternal.tag, FluentSelectInternal) } }