import { radio_button_styles_default } from "./chunk.4MOOA5HL.js"; import { n as n2 } from "./chunk.LX7UG5WS.js"; import { o } from "./chunk.2URMUHDY.js"; import { HasSlotController } from "./chunk.NYIIDP5N.js"; import { e } from "./chunk.UZVKBFXH.js"; import { watch } from "./chunk.FA5RT4K4.js"; import { ShoelaceElement, e as e2, n, r } from "./chunk.SEXBCYCU.js"; import { __decorateClass } from "./chunk.KIILAQWQ.js"; // src/components/radio-button/radio-button.component.ts var SlRadioButton = class extends ShoelaceElement { constructor() { super(...arguments); this.hasSlotController = new HasSlotController(this, "[default]", "prefix", "suffix"); this.hasFocus = false; this.checked = false; this.disabled = false; this.size = "medium"; this.pill = false; } connectedCallback() { super.connectedCallback(); this.setAttribute("role", "presentation"); } handleBlur() { this.hasFocus = false; this.emit("sl-blur"); } handleClick(e3) { if (this.disabled) { e3.preventDefault(); e3.stopPropagation(); return; } this.checked = true; } handleFocus() { this.hasFocus = true; this.emit("sl-focus"); } handleDisabledChange() { this.setAttribute("aria-disabled", this.disabled ? "true" : "false"); } /** Sets focus on the radio button. */ focus(options) { this.input.focus(options); } /** Removes focus from the radio button. */ blur() { this.input.blur(); } render() { return n2`