import { LitElement } from 'lit'; import { SEGMENTED_CONTROL_ICON_POSITION, SEGMENTED_CONTROL_SIZES } from './defs'; /** * One option inside `kyn-segmented-control`. * @slot unnamed - Slot for segment text. * @slot icon - Slot for an icon.. * @fires on-segment-select - Emitted when the segment is activated. `detail:{ value: string }` */ export declare class SegmentedControlItem extends LitElement { static styles: import("lit").CSSResult; /** @ignore */ static shadowRootOptions: { delegatesFocus: boolean; mode: ShadowRootMode; serializable?: boolean; slotAssignment?: SlotAssignmentMode; }; /** Segment value. */ accessor value: string; /** Determines segment selection. */ accessor selected: boolean; /** Disables the segment. */ accessor disabled: boolean; /** Icon placement relative to the label. `left` or `right`. */ accessor iconPosition: SEGMENTED_CONTROL_ICON_POSITION; /** * Size copied from the parent control. * @internal */ accessor size: SEGMENTED_CONTROL_SIZES; /** * Whether the parent allows more than one selected segment. * @internal */ accessor multiple: boolean; /** * Hides segments past the maximum of five. Safer check for future compatibility. * @internal */ accessor suppressed: boolean; /** * Whether the segment has an icon. * @internal */ accessor _hasIcon: boolean; /** * Whether the segment has label text. * @internal */ accessor _hasLabel: boolean; /** * Icon with no label text. Keeps a 64px minimum width. * @internal */ accessor iconOnly: boolean; /** * Tab index for the segment. * @internal */ accessor _tabIndex: number; /** * The button element for the segment. * @internal */ accessor _button: HTMLButtonElement; /** * Icon slot. * @internal */ accessor _iconSlot: HTMLSlotElement; /** * Label slot. * @internal */ accessor _labelSlot: HTMLSlotElement; render(): import("lit-html").TemplateResult<1>; /** Width of the label, icon, and padding, independent of the equalized segment width. */ getNaturalWidth(): number; private _getIconWidth; private _getLabelWidth; /** @internal */ setTabStop(active: boolean): void; focus(options?: FocusOptions): void; private _handleIconSlotChange; private _handleLabelSlotChange; private _slotHasContent; private _syncIconOnly; private _notifyContentChange; private _handleClick; } declare global { interface HTMLElementTagNameMap { 'kyn-segmented-control-item': SegmentedControlItem; } } //# sourceMappingURL=segmentedControlItem.d.ts.map