import { Placement, OffsetOptions } from '@floating-ui/dom'; import { UElement } from '../UElement.js'; import { ButtonAppearance } from '../button/UButton.js'; import { IconLibrary } from '../icon/UIcon.js'; /** * 아이콘만 표시하는 정사각형 버튼 컴포넌트입니다. * 내장 툴팁을 지원하여 접근성을 향상시킵니다. * * @slot - 툴팁에 표시할 콘텐츠 * * @csspart button - 내부 버튼 요소 * @csspart icon - 아이콘 요소 * @csspart tooltip - 툴팁 요소 */ export declare class UIconButton extends UElement { /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */ static enumerated: { appearance: readonly ButtonAppearance[]; }; static styles: import('lit').CSSResultGroup[]; /** 호스트의 `.focus()` 를 안쪽 컨트롤로 위임한다 — `UButton` 과 같은 계약(호스트는 포커스 가능하지 않다). */ static shadowRootOptions: ShadowRootInit; /** 버튼 스타일 변형 */ appearance: ButtonAppearance; /** 원형 표시 여부 */ rounded: boolean; /** 비활성화 여부 */ disabled: boolean; /** 로딩 상태 여부 */ loading: boolean; /** 링크 URL (설정 시 앵커 태그로 렌더링) */ href?: string; /** 링크 타겟 */ target?: string; /** rel 속성 */ rel?: string; /** 아이콘 SVG 소스를 직접 지정 */ src?: string; /** 아이콘 라이브러리 */ lib?: IconLibrary; /** 아이콘 이름 */ name?: string; /** 툴팁 위치 */ tooltipPlacement: Placement; /** 툴팁 거리 */ tooltipOffset: OffsetOptions; /** * 호스트에 세팅된 `aria-label`과 버튼 상태 ARIA(`FORWARDED_ARIA`)를 내부 ``으로 옮긴다 — * `UButton`과 같은 이유 * (섀도우 경계 안쪽 엘리먼트가 실제 접근 가능한 이름 대상). 아이콘 전용 * 버튼이라 텍스트 콘텐츠로 이름이 생기지 않으므로 이 전달이 없으면 접근 가능한 이름이 * 아예 비게 된다 — 내장 툴팁(``)은 ARIA를 배선하지 않아 대체 경로가 안 된다. */ static forwardedAttributes: readonly string[]; /** 기본 슬롯(툴팁)의 글자 — `aria-label` 이 없을 때 버튼의 이름. */ private slotText; private handleSlotChange; render(): import('lit-html').TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'u-icon-button': UIconButton; } }