import { TemplateResult } from 'lit'; import { UElement } from '../UElement.js'; export type CardOrientation = 'vertical' | 'horizontal'; export type CardAppearance = 'outlined' | 'plain'; /** 카드의 강조 톤. */ export type CardTone = 'primary' | 'info' | 'success' | 'warning' | 'danger'; /** * 콘텐츠를 카드 형태로 표시하는 컴포넌트입니다. * * `tone` 은 카드가 이웃보다 먼저 읽혀야 할 때다 — `warning`·`danger`·`success`·`info` 는 그 상태의 옅은 면과 테두리 * («확인할 것», «막힌 것»), `primary` 는 면은 그대로 두고 주 색 테두리(«다음 할 일» — 화면의 한 곳). 색만으로 전하지 * 않도록 카드의 제목이 그 뜻을 말해야 한다. 톤은 안쪽 상자에 칠하므로 바깥에서 건 `--card-border-color`(하우스 시트 등)가 * 덮지 않는다. * * @slot - 카드의 본문 콘텐츠 * @slot header - 카드 상단 헤더 영역 * @slot footer - 카드 하단 푸터 영역 * @slot media - 카드의 미디어 영역 (이미지, 동영상 등) * * @csspart base - 카드 바깥 상자(`href` 를 주면 이 상자가 링크 `` 다) * @csspart media - 미디어 영역 컨테이너 * @csspart content - 콘텐츠 영역 컨테이너 * @csspart header - 헤더 영역 컨테이너 * @csspart body - 본문 영역 컨테이너 * @csspart footer - 푸터 영역 컨테이너 * @cssprop --card-border-width - 테두리 두께 (`appearance="plain"` 은 0) * @cssprop --card-border-color - 테두리 색 */ export declare class UCard extends UElement { /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */ static enumerated: { orientation: readonly CardOrientation[]; appearance: readonly CardAppearance[]; tone: readonly CardTone[]; }; static styles: import('lit').CSSResultGroup[]; /** 카드 레이아웃 방향 */ orientation: CardOrientation; /** 그림자 제거 여부 */ shadowless: boolean; /** 외형 정도 — `outlined`(기본: 테두리 + 높이 그림자) · `plain`(테두리·그림자 없음 — 배치만) */ appearance: CardAppearance; /** 마우스 오버 효과 적용 여부 */ hoverable: boolean; /** 강조 — 상태의 면과 테두리(`warning`·`danger`·`success`·`info`) 또는 주 색 테두리(`primary`). 없으면 보통 카드 */ tone?: CardTone; /** * 카드 전체가 이동하는 링크 URL. 주면 바깥 상자가 `` 로 그려진다 — 테두리가 hover 를 싣고 들어 올리지 않는다. * 링크 안에는 다른 대화형 요소(버튼·링크)를 두지 않는다(HTML 의 `` 내용 모델). */ href?: string; /** 링크 타겟 (`href` 와 함께) */ target?: string; /** 링크 관계 (`href` 와 함께) */ rel?: string; /** 다운로드 파일명 (`href` 와 함께) */ download?: string; static forwardedAttributes: readonly string[]; render(): TemplateResult<1>; private renderSections; private handleSlotChange; } declare global { interface HTMLElementTagNameMap { 'u-card': UCard; } }