import { nothing } from 'lit'; import { UElement } from '../UElement.js'; export type BadgeShape = "pill" | "dot" | "square"; /** 역할 축(`primary`…`danger`, 의미 · 리브랜딩을 따라옴)과 장식 축(`blue`…, 색 자체 · 면역)이 병존한다. */ export type BadgeColor = "neutral" | "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink"; export type BadgeAnchor = "top-right" | "top-left" | "bottom-right" | "bottom-left"; /** * 상태, 숫자, 알림 등의 정보를 배지로 표시하는 컴포넌트입니다. * anchor 속성으로 특정 요소 위치에 배치할 수 있습니다. * * @slot prefix - 배지 앞에 배치할 컨텐츠 * @slot - 배지의 주요 컨텐츠 (텍스트, 아이콘) * @slot suffix - 배지 뒤에 배치할 컨텐츠 * @cssprop --badge-padding-block - 세로 여백 (`shape="dot"` 은 콘텐츠를 렌더하지 않아 적용되지 않는다) * @cssprop --badge-padding-inline - 가로 여백 (`shape="dot"` 은 콘텐츠를 렌더하지 않아 적용되지 않는다) */ export declare class UBadge extends UElement { /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */ static enumerated: { shape: readonly BadgeShape[]; color: readonly BadgeColor[]; anchor: readonly BadgeAnchor[]; }; static styles: import('lit').CSSResultGroup[]; /** 접두 · 접미 슬롯이 찼는가 — 그 옆 간격은 섀도 안 상자가 갖는다(`::slotted` 여백은 문서의 전역 리셋에 진다). */ private readonly affixes; /** 배지 유형 */ shape: BadgeShape; /** 배지 색상 */ color: BadgeColor; /** 부모 요소 기준 배치 위치 (설정 시 position: absolute) */ anchor?: BadgeAnchor; /** * 상태를 **색과 무관하게** 나르는 아이콘을 붙입니다(`info`·`success`·`warning`·`danger`). * 의미가 없는 색(`neutral`·`primary`·장식 축)과 `shape="dot"` 에서는 그리지 않습니다. */ icon: boolean; render(): typeof nothing | import('lit-html').TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'u-badge': UBadge; } }