import type { EventEmitter } from '../../stencil-public-runtime'; import type { SegmentedControlChangeDetail, SegmentedControlSegment, SegmentedControlSize } from './mud-segmented-control.types'; /** * Segmented control — single-select horizontal switcher. * * Pattern B (atom-interactive, form-associated): renders an internal * `role="radiogroup"` of `role="radio"` buttons inside the shadow DOM with * a roving `tabindex`. Selected segment gets the dark inverse fill from * Figma 659:8188; unselected segments inherit the light tertiary container * background and only carry their label. * * Keyboard contract (WAI-ARIA Authoring Practices, radiogroup pattern): * - `Tab` enters and exits the group (single stop) * - `ArrowLeft` / `ArrowRight` move selection between segments * - `Home` / `End` jump to first / last segment * - `Enter` / `Space` reaffirm selection on the focused segment * * Give the group an accessible name via the native `aria-label` attribute * (required when no surrounding `