@t3q-ui/design-system 1.72.0 → 1.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/components/metaItem.cjs +3 -1
- package/dist/components/metaItem.cjs.map +1 -1
- package/dist/components/metaItem.js +3 -1
- package/dist/components/metaItem.js.map +1 -1
- package/dist/components/select/select.cjs.map +1 -1
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/selectedItemCard.cjs +71 -0
- package/dist/components/selectedItemCard.cjs.map +1 -0
- package/dist/components/selectedItemCard.js +71 -0
- package/dist/components/selectedItemCard.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -4
- package/dist/index.d.ts +39 -4
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/mcp/manifests/components.json +200 -2
- package/package.json +1 -1
- package/skills/tds/SKILL.md +1 -0
- package/skills/tds/reference/components.md +35 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
<!-- release: v1.73.0 -->
|
|
4
|
+
# 1.73.0 (2026-11-25)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **selected-item-card:** 배경을 secondary-o10 으로 바꾸고 쓰지 않게 된 secondary-o05 토큰을 되돌림 (eb645fa), closes #FAFBFC
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **selected-item-card:** Select 로 고른 항목의 속성·상세 링크를 보이는 SelectedItemCard 추가 (a22819d)
|
|
15
|
+
* **selected-item-card:** 틴트 배경·촘촘한 목록으로 바꾸고 secondary-o05 토큰·MetaRow spacing·/tds 스킬 관례 추가 (340808b)
|
|
16
|
+
|
|
3
17
|
<!-- release: v1.72.0 -->
|
|
4
18
|
# 1.72.0 (2026-11-25)
|
|
5
19
|
|
|
@@ -51,6 +51,7 @@ function MetaRow({
|
|
|
51
51
|
slotAfter,
|
|
52
52
|
align = "end",
|
|
53
53
|
emphasis = false,
|
|
54
|
+
spacing = "normal",
|
|
54
55
|
className,
|
|
55
56
|
...props
|
|
56
57
|
}) {
|
|
@@ -67,7 +68,8 @@ function MetaRow({
|
|
|
67
68
|
{
|
|
68
69
|
className: cn.cn(
|
|
69
70
|
// min-h: 한 줄이면 48px 그대로, 태그처럼 줄바꿈되는 값이면 자란다. 선은 Separator·표 행과 같은 토큰 (2026-10-17 이슈 47 4차)
|
|
70
|
-
"flex
|
|
71
|
+
"flex w-full items-center justify-between",
|
|
72
|
+
spacing === "compact" ? "min-h-[28px] border-b-0 px-0 py-[2px]" : "min-h-[48px] border-b border-sys-divider-subtle px-[12px] py-[8px]",
|
|
71
73
|
className
|
|
72
74
|
),
|
|
73
75
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaItem.cjs","sources":["../../src/components/metaItem.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '../utils/cn'\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip'\n\nexport interface MetaItemProps extends React.HTMLAttributes<HTMLDivElement> {\n label: React.ReactNode\n value: React.ReactNode\n}\n\n/**\n * 라벨·값 한 쌍의 메타 정보. 가로 나열(`MetaItem`+`MetaGroup`, 헤더용)과 세로 쌓기(`MetaRow`+`MetaList`, 상세 패널용) 두 모양이 있다.\n * 언제 쓰나: PageHeader 제목 아래 한 줄 — 리소스를 식별·추적하는 값 4개 안팎(ID·버전·소유자·수정일)을 `MetaGroup` + MetaItem 으로. 상세 화면의 속성·사양 목록(프레임워크·크기·등록일 …)은 DetailPage `aside`(오른쪽 '기본 정보' 패널)에 MetaList + MetaRow align='start' 로 두고, 같은 값을 두 곳에 쓰지 않는다(2026-11-22 사용자 결정).\n * 언제 안 쓰나: 편집 가능한 값(폼), 열이 여러 개인 표(Table).\n * 대신/함께: MetaRow 값은 14px·라벨 12px — 행마다 값 크기를 바꾸지 않는다(패널 안 크기 차이는 심판 감점, 2026-10-18). 상태는 value 에 Badge.\n */\nfunction MetaItem({ label, value, className, ...props }: MetaItemProps) {\n return (\n // min-w-0·truncate: 줄 폭보다 긴 값은 넘치지 않고 말줄임으로 끝난다\n <div className={cn('flex h-[28px] min-w-0 items-center gap-[6px]', className)} {...props}>\n {/* 라벨 12px 은 유지하고 색만 subtler → subtle(흰 바탕 대비 4.98 → 7.19) — \"small gray text\" 감점(2026-10-18 13차) */}\n <span className='shrink-0 text-small-regular-h text-sys-text-subtle'>{label}</span>\n <span aria-hidden className='h-[11px] w-px shrink-0 bg-sys-divider-subtle' />\n <span className='min-w-0 truncate whitespace-pre text-small-medium-h text-sys-text-main'>\n {value}\n </span>\n </div>\n )\n}\n\nexport interface MetaRowProps extends React.HTMLAttributes<HTMLDivElement> {\n label: React.ReactNode\n /** 생략 시 슬롯만 우측 정렬로 렌더링됨 (Figma hasText=false 대응) */\n value?: React.ReactNode\n slotBefore?: React.ReactNode\n slotAfter?: React.ReactNode\n /**\n * 값의 자리. `end`(기본)는 라벨 100px + 값을 행 오른쪽 끝에(dl-ui-v3 시안). `start` 는 라벨 120px + 값을 라벨 바로 옆 왼쪽 정렬 —\n * 상세 패널·오른쪽 정보 열처럼 행이 넓은 곳에서 라벨과 값 사이가 비지 않는다(2026-10-16 이슈 47, 원문 심판 13회 감점). 패턴 예제는 `start`\n */\n align?: 'end' | 'start'\n /**\n * 값을 숫자 강조(20px, 탭룰러)로. 통계·건수처럼 숫자가 행의 주인공일 때만 — 예: \"사용 중인 엔드포인트 3개\", \"크기 1,280 MB\".\n * 한 패널에 한두 행만. 2026-10-17 8차 A3(디자이너 점수 역추적: 글자 크기 단계가 많은 화면이 높게 평가됨).\n * 2026-10-18 9차: 예제·스킬·스토리에서 뺐다 — 개발용 8차 심판이 패널 안 크기 차이를 \"불균일\"로 읽어 감점(타이포 3쌍·컴포넌트 2쌍). KPI 띠 같은 전용 자리가 생기기 전엔 기본으로 쓰지 않는다\n */\n emphasis?: boolean\n}\n\n/**\n * PageHeader 등의 메타 항목(`MetaItem`)들을 가로로 나열하는 컨테이너.\n * 폭이 좁아지면 줄바꿈되며, 가로 간격은 24px, 줄바꿈 시 세로 간격은 0이다. 상세 화면의 식별 값(ID·버전·소유자·수정일, 4개 안팎)을 여기 한 줄에\n * 흘려 둔다 — 속성·사양 목록은 DetailPage `aside` 패널로(2026-11-22 사용자 결정). 열을 맞춘 격자는 두지 않는다 — 1440 폭 3열이면 칸이 약 470px 라 항목 사이가\n * 벌어졌다(2026-11-06 사용자 지적, 홀드아웃 17~19 심판 \"metadata spread across very wide columns\"). dl-ui-v3 상세 화면과 같은 모양\n */\nfunction MetaGroup({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div className={cn('flex flex-wrap items-center gap-x-[24px] gap-y-0', className)} {...props} />\n )\n}\n\n/** 말줄임으로 잘린 글자 값은 마우스를 올리면 전체를 툴팁으로 보인다. 잘리지 않았으면 툴팁을 열지 않는다 */\nfunction ClampedValue({ className, children }: { className: string; children: string | number }) {\n const ref = React.useRef<HTMLSpanElement>(null)\n const [open, setOpen] = React.useState(false)\n const isClamped = () => !!ref.current && ref.current.scrollWidth > ref.current.clientWidth\n\n return (\n <TooltipProvider delayDuration={300}>\n <Tooltip open={open} onOpenChange={(next) => setOpen(next && isClamped())}>\n <TooltipTrigger asChild>\n <span ref={ref} className={className}>\n {children}\n </span>\n </TooltipTrigger>\n <TooltipContent className='max-w-[320px] break-all'>{children}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )\n}\n\nfunction MetaRow({\n label,\n value,\n slotBefore,\n slotAfter,\n align = 'end',\n emphasis = false,\n className,\n ...props\n}: MetaRowProps) {\n const hasValue = value !== undefined && value !== null && value !== ''\n const start = align === 'start'\n const valueClassName = cn(\n // 값 14px(라벨 12px) — 라벨과 값이 같은 크기라 위계가 없던 것을 고침(2026-10-17 8차 A2). emphasis 는 20px 탭룰러 숫자\n 'min-w-0 truncate whitespace-pre text-sys-text-main',\n emphasis ? 'text-h4 tabular-nums' : 'text-base-medium',\n start ? 'text-left' : 'flex-1 text-right',\n )\n return (\n <div\n className={cn(\n // min-h: 한 줄이면 48px 그대로, 태그처럼 줄바꿈되는 값이면 자란다. 선은 Separator·표 행과 같은 토큰 (2026-10-17 이슈 47 4차)\n 'flex min-h-[48px] w-full items-center justify-between border-b border-sys-divider-subtle px-[12px] py-[8px]',\n className,\n )}\n {...props}\n >\n <span\n className={cn(\n // 라벨 12px 유지, 색은 subtle(2026-10-18 13차 — 상세·검토 패널 라벨이 \"small gray text\" 로 읽혔다)\n 'shrink-0 text-small-regular text-sys-text-subtle',\n // start: 라벨 열 120px(긴 라벨은 열을 밀고 값은 12px 뒤에서 시작 — 겹치지 않게), end: 100px 고정\n start ? 'min-w-[120px] pr-[12px]' : 'w-[100px]',\n )}\n >\n {label}\n </span>\n <div\n className={cn(\n 'flex min-w-0 flex-1 items-center gap-[6px]',\n !hasValue && !start && 'justify-end',\n )}\n >\n {slotBefore}\n {hasValue &&\n // 글자 값은 잘렸을 때 전체를 볼 수 있게(2026-11-24 hongsu 알고리즘 정보의 실행 환경 이미지 이름). 요소 값(Badge·링크)은 그대로\n (typeof value === 'string' || typeof value === 'number' ? (\n <ClampedValue className={valueClassName}>{value}</ClampedValue>\n ) : (\n <span className={valueClassName}>{value}</span>\n ))}\n {slotAfter}\n </div>\n </div>\n )\n}\n\nexport interface MetaListProps extends React.HTMLAttributes<HTMLDivElement> {\n /** 열 수(기본 1 = 세로 한 줄씩). 2 이상이면 행을 격자로 흘린다(md 2열, xl 부터 지정 열) — 전폭 본문 카드처럼 넓은 자리의 키-값 격자. 행은 `MetaRow align='start'` */\n columns?: 1 | 2 | 3 | 4\n}\n\nconst META_LIST_COLUMNS = {\n // 한 열: 마지막 줄 아래 선 없음 — 앱이 목록 밑에 Separator 를 두면 선이 두 줄로 겹쳤다(2026-11-06 홀드아웃 19 검토 패널, Opus 3). 표의 '마지막 행 선 없음'과 같은 규칙.\n // 여러 열 격자는 마지막 칸만 선이 빠지면 줄이 어긋나 그대로 둔다\n // 패턴의 옆 패널(DetailPage·FormPage `aside` — `@container/aside`)이 본문 아래로 내려가 안쪽 폭이 672px 이상이 되면 항목을 한 줄에 두 개씩\n // (2026-11-22). 넓어진 상자에 항목이 세로로 하나씩이면 오른쪽 절반이 비고 길다(812px 상자에서 8항목 454px → 262px). 이름 붙은 컨테이너라\n // 그 밖(Drawer·목록 상세 패널·나란히 놓인 408px 패널)에서는 그대로 한 줄에 하나. 마지막 줄의 두 칸은 아래 선 없음(항목 수가 짝수면 끝에서 둘째도)\n 1: 'flex flex-col [&>*:last-child]:border-b-0 @2xl/aside:grid @2xl/aside:grid-cols-2 @2xl/aside:gap-x-[24px] @2xl/aside:[&>*:nth-last-child(2):nth-child(odd)]:border-b-0',\n 2: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2',\n 3: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2 xl:grid-cols-3',\n 4: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2 xl:grid-cols-4',\n} as const\n\n/**\n * `MetaRow` 를 위에서 아래로 한 줄씩 쌓는 목록. 상세 화면 오른쪽 '기본 정보' 패널·폼 검토 패널·상세 Drawer 의 \"필드: 값\" 묶음.\n *\n * 언제 쓰나: DetailPage `aside`(오른쪽 '기본 정보' 패널, 6~10행)·FormPage `aside`(검토 패널)·Drawer 본문처럼 폭이 좁은 곳에 리소스의 필드를 나열할 때(세로 한 줄씩, 패널 하나에 목록 하나 — 패턴의 옆 패널이 좁은 화면에서 본문 아래로 내려가 넓어지면 항목이 저절로 한 줄에 두 개씩 놓인다. `columns` 를 주지 않는다), 또는 `columns={3}` 으로 전폭 본문 카드의 키-값 격자. 행마다 라벨 100px + 값 오른쪽 정렬(기본) — 패널·정보 열에서는 `MetaRow align='start'` 로 값을 라벨 옆에 붙인다.\n * 언제 안 쓰나: PageHeader 아래의 식별 메타 한 줄(→ MetaGroup + MetaItem), 표 형태 데이터(→ Table).\n * 대신/함께: `Stack` 은 기본 방향이 가로라 `<Stack>` 으로 MetaRow 를 감싸면 행이 옆으로 늘어서 잘린다 — MetaList 를 쓴다.\n */\nfunction MetaList({ className, columns = 1, ...props }: MetaListProps) {\n return <div className={cn('w-full', META_LIST_COLUMNS[columns], className)} {...props} />\n}\n\nexport { MetaGroup, MetaItem, MetaList, MetaRow }\n"],"names":["jsxs","cn","jsx","React","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgBA,SAAS,SAAS,EAAE,OAAO,OAAO,WAAW,GAAG,SAAwB;AACtE;AAAA;AAAA,IAEEA,gCAAC,SAAI,WAAWC,GAAAA,GAAG,gDAAgD,SAAS,GAAI,GAAG,OAEjF,UAAA;AAAA,MAAAC,2BAAAA,IAAC,QAAA,EAAK,WAAU,sDAAsD,UAAA,OAAM;AAAA,MAC5EA,2BAAAA,IAAC,QAAA,EAAK,eAAW,MAAC,WAAU,gDAA+C;AAAA,MAC3EA,2BAAAA,IAAC,QAAA,EAAK,WAAU,0EACb,UAAA,MAAA,CACH;AAAA,IAAA,EAAA,CACF;AAAA;AAEJ;AA2BA,SAAS,UAAU,EAAE,WAAW,GAAG,SAA+C;AAChF,SACEA,2BAAAA,IAAC,SAAI,WAAWD,GAAAA,GAAG,oDAAoD,SAAS,GAAI,GAAG,OAAO;AAElG;AAGA,SAAS,aAAa,EAAE,WAAW,YAA8D;AAC/F,QAAM,MAAME,iBAAM,OAAwB,IAAI;AAC9C,QAAM,CAAC,MAAM,OAAO,IAAIA,iBAAM,SAAS,KAAK;AAC5C,QAAM,YAAY,MAAM,CAAC,CAAC,IAAI,WAAW,IAAI,QAAQ,cAAc,IAAI,QAAQ;AAE/E,SACED,2BAAAA,IAACE,QAAAA,iBAAA,EAAgB,eAAe,KAC9B,0CAACC,QAAAA,SAAA,EAAQ,MAAY,cAAc,CAAC,SAAS,QAAQ,QAAQ,UAAA,CAAW,GACtE,UAAA;AAAA,IAAAH,2BAAAA,IAACI,QAAAA,gBAAA,EAAe,SAAO,MACrB,UAAAJ,2BAAAA,IAAC,UAAK,KAAU,WACb,UACH,EAAA,CACF;AAAA,IACAA,2BAAAA,IAACK,QAAAA,gBAAA,EAAe,WAAU,2BAA2B,SAAA,CAAS;AAAA,EAAA,EAAA,CAChE,EAAA,CACF;AAEJ;AAEA,SAAS,QAAQ;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AAAA,EACX;AAAA,EACA,GAAG;AACL,GAAiB;AACf,QAAM,WAAW,UAAU,UAAa,UAAU,QAAQ,UAAU;AACpE,QAAM,QAAQ,UAAU;AACxB,QAAM,iBAAiBN,GAAAA;AAAAA;AAAAA,IAErB;AAAA,IACA,WAAW,yBAAyB;AAAA,IACpC,QAAQ,cAAc;AAAA,EAAA;AAExB,SACED,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,GAAAA;AAAAA;AAAAA,QAET;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAAC,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD,GAAAA;AAAAA;AAAAA,cAET;AAAA;AAAA,cAEA,QAAQ,4BAA4B;AAAA,YAAA;AAAA,YAGrC,UAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAEHD,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC,GAAAA;AAAAA,cACT;AAAA,cACA,CAAC,YAAY,CAAC,SAAS;AAAA,YAAA;AAAA,YAGxB,UAAA;AAAA,cAAA;AAAA,cACA;AAAA,eAEE,OAAO,UAAU,YAAY,OAAO,UAAU,WAC7CC,+BAAC,cAAA,EAAa,WAAW,gBAAiB,iBAAM,IAEhDA,2BAAAA,IAAC,QAAA,EAAK,WAAW,gBAAiB,UAAA,MAAA,CAAM;AAAA,cAE3C;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN;AAOA,MAAM,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AASA,SAAS,SAAS,EAAE,WAAW,UAAU,GAAG,GAAG,SAAwB;AACrE,SAAOA,+BAAC,OAAA,EAAI,WAAWD,GAAAA,GAAG,UAAU,kBAAkB,OAAO,GAAG,SAAS,GAAI,GAAG,MAAA,CAAO;AACzF;;;;;"}
|
|
1
|
+
{"version":3,"file":"metaItem.cjs","sources":["../../src/components/metaItem.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '../utils/cn'\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip'\n\nexport interface MetaItemProps extends React.HTMLAttributes<HTMLDivElement> {\n label: React.ReactNode\n value: React.ReactNode\n}\n\n/**\n * 라벨·값 한 쌍의 메타 정보. 가로 나열(`MetaItem`+`MetaGroup`, 헤더용)과 세로 쌓기(`MetaRow`+`MetaList`, 상세 패널용) 두 모양이 있다.\n * 언제 쓰나: PageHeader 제목 아래 한 줄 — 리소스를 식별·추적하는 값 4개 안팎(ID·버전·소유자·수정일)을 `MetaGroup` + MetaItem 으로. 상세 화면의 속성·사양 목록(프레임워크·크기·등록일 …)은 DetailPage `aside`(오른쪽 '기본 정보' 패널)에 MetaList + MetaRow align='start' 로 두고, 같은 값을 두 곳에 쓰지 않는다(2026-11-22 사용자 결정).\n * 언제 안 쓰나: 편집 가능한 값(폼), 열이 여러 개인 표(Table).\n * 대신/함께: MetaRow 값은 14px·라벨 12px — 행마다 값 크기를 바꾸지 않는다(패널 안 크기 차이는 심판 감점, 2026-10-18). 상태는 value 에 Badge.\n */\nfunction MetaItem({ label, value, className, ...props }: MetaItemProps) {\n return (\n // min-w-0·truncate: 줄 폭보다 긴 값은 넘치지 않고 말줄임으로 끝난다\n <div className={cn('flex h-[28px] min-w-0 items-center gap-[6px]', className)} {...props}>\n {/* 라벨 12px 은 유지하고 색만 subtler → subtle(흰 바탕 대비 4.98 → 7.19) — \"small gray text\" 감점(2026-10-18 13차) */}\n <span className='shrink-0 text-small-regular-h text-sys-text-subtle'>{label}</span>\n <span aria-hidden className='h-[11px] w-px shrink-0 bg-sys-divider-subtle' />\n <span className='min-w-0 truncate whitespace-pre text-small-medium-h text-sys-text-main'>\n {value}\n </span>\n </div>\n )\n}\n\nexport interface MetaRowProps extends React.HTMLAttributes<HTMLDivElement> {\n label: React.ReactNode\n /** 생략 시 슬롯만 우측 정렬로 렌더링됨 (Figma hasText=false 대응) */\n value?: React.ReactNode\n slotBefore?: React.ReactNode\n slotAfter?: React.ReactNode\n /**\n * 값의 자리. `end`(기본)는 라벨 100px + 값을 행 오른쪽 끝에(dl-ui-v3 시안). `start` 는 라벨 120px + 값을 라벨 바로 옆 왼쪽 정렬 —\n * 상세 패널·오른쪽 정보 열처럼 행이 넓은 곳에서 라벨과 값 사이가 비지 않는다(2026-10-16 이슈 47, 원문 심판 13회 감점). 패턴 예제는 `start`\n */\n align?: 'end' | 'start'\n /**\n * 값을 숫자 강조(20px, 탭룰러)로. 통계·건수처럼 숫자가 행의 주인공일 때만 — 예: \"사용 중인 엔드포인트 3개\", \"크기 1,280 MB\".\n * 한 패널에 한두 행만. 2026-10-17 8차 A3(디자이너 점수 역추적: 글자 크기 단계가 많은 화면이 높게 평가됨).\n * 2026-10-18 9차: 예제·스킬·스토리에서 뺐다 — 개발용 8차 심판이 패널 안 크기 차이를 \"불균일\"로 읽어 감점(타이포 3쌍·컴포넌트 2쌍). KPI 띠 같은 전용 자리가 생기기 전엔 기본으로 쓰지 않는다\n */\n emphasis?: boolean\n /** 행 밀도. `normal`(기본) = 48px 행 + 구분선. `compact` = 28px 행, 구분선·좌우 여백 없음 — 틴트 카드 안처럼 상자 여백이 이미 있는 촘촘한 목록(SelectedItemCard) */\n spacing?: 'normal' | 'compact'\n}\n\n/**\n * PageHeader 등의 메타 항목(`MetaItem`)들을 가로로 나열하는 컨테이너.\n * 폭이 좁아지면 줄바꿈되며, 가로 간격은 24px, 줄바꿈 시 세로 간격은 0이다. 상세 화면의 식별 값(ID·버전·소유자·수정일, 4개 안팎)을 여기 한 줄에\n * 흘려 둔다 — 속성·사양 목록은 DetailPage `aside` 패널로(2026-11-22 사용자 결정). 열을 맞춘 격자는 두지 않는다 — 1440 폭 3열이면 칸이 약 470px 라 항목 사이가\n * 벌어졌다(2026-11-06 사용자 지적, 홀드아웃 17~19 심판 \"metadata spread across very wide columns\"). dl-ui-v3 상세 화면과 같은 모양\n */\nfunction MetaGroup({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div className={cn('flex flex-wrap items-center gap-x-[24px] gap-y-0', className)} {...props} />\n )\n}\n\n/** 말줄임으로 잘린 글자 값은 마우스를 올리면 전체를 툴팁으로 보인다. 잘리지 않았으면 툴팁을 열지 않는다 */\nfunction ClampedValue({ className, children }: { className: string; children: string | number }) {\n const ref = React.useRef<HTMLSpanElement>(null)\n const [open, setOpen] = React.useState(false)\n const isClamped = () => !!ref.current && ref.current.scrollWidth > ref.current.clientWidth\n\n return (\n <TooltipProvider delayDuration={300}>\n <Tooltip open={open} onOpenChange={(next) => setOpen(next && isClamped())}>\n <TooltipTrigger asChild>\n <span ref={ref} className={className}>\n {children}\n </span>\n </TooltipTrigger>\n <TooltipContent className='max-w-[320px] break-all'>{children}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )\n}\n\nfunction MetaRow({\n label,\n value,\n slotBefore,\n slotAfter,\n align = 'end',\n emphasis = false,\n spacing = 'normal',\n className,\n ...props\n}: MetaRowProps) {\n const hasValue = value !== undefined && value !== null && value !== ''\n const start = align === 'start'\n const valueClassName = cn(\n // 값 14px(라벨 12px) — 라벨과 값이 같은 크기라 위계가 없던 것을 고침(2026-10-17 8차 A2). emphasis 는 20px 탭룰러 숫자\n 'min-w-0 truncate whitespace-pre text-sys-text-main',\n emphasis ? 'text-h4 tabular-nums' : 'text-base-medium',\n start ? 'text-left' : 'flex-1 text-right',\n )\n return (\n <div\n className={cn(\n // min-h: 한 줄이면 48px 그대로, 태그처럼 줄바꿈되는 값이면 자란다. 선은 Separator·표 행과 같은 토큰 (2026-10-17 이슈 47 4차)\n 'flex w-full items-center justify-between',\n spacing === 'compact'\n ? 'min-h-[28px] border-b-0 px-0 py-[2px]'\n : 'min-h-[48px] border-b border-sys-divider-subtle px-[12px] py-[8px]',\n className,\n )}\n {...props}\n >\n <span\n className={cn(\n // 라벨 12px 유지, 색은 subtle(2026-10-18 13차 — 상세·검토 패널 라벨이 \"small gray text\" 로 읽혔다)\n 'shrink-0 text-small-regular text-sys-text-subtle',\n // start: 라벨 열 120px(긴 라벨은 열을 밀고 값은 12px 뒤에서 시작 — 겹치지 않게), end: 100px 고정\n start ? 'min-w-[120px] pr-[12px]' : 'w-[100px]',\n )}\n >\n {label}\n </span>\n <div\n className={cn(\n 'flex min-w-0 flex-1 items-center gap-[6px]',\n !hasValue && !start && 'justify-end',\n )}\n >\n {slotBefore}\n {hasValue &&\n // 글자 값은 잘렸을 때 전체를 볼 수 있게(2026-11-24 hongsu 알고리즘 정보의 실행 환경 이미지 이름). 요소 값(Badge·링크)은 그대로\n (typeof value === 'string' || typeof value === 'number' ? (\n <ClampedValue className={valueClassName}>{value}</ClampedValue>\n ) : (\n <span className={valueClassName}>{value}</span>\n ))}\n {slotAfter}\n </div>\n </div>\n )\n}\n\nexport interface MetaListProps extends React.HTMLAttributes<HTMLDivElement> {\n /** 열 수(기본 1 = 세로 한 줄씩). 2 이상이면 행을 격자로 흘린다(md 2열, xl 부터 지정 열) — 전폭 본문 카드처럼 넓은 자리의 키-값 격자. 행은 `MetaRow align='start'` */\n columns?: 1 | 2 | 3 | 4\n}\n\nconst META_LIST_COLUMNS = {\n // 한 열: 마지막 줄 아래 선 없음 — 앱이 목록 밑에 Separator 를 두면 선이 두 줄로 겹쳤다(2026-11-06 홀드아웃 19 검토 패널, Opus 3). 표의 '마지막 행 선 없음'과 같은 규칙.\n // 여러 열 격자는 마지막 칸만 선이 빠지면 줄이 어긋나 그대로 둔다\n // 패턴의 옆 패널(DetailPage·FormPage `aside` — `@container/aside`)이 본문 아래로 내려가 안쪽 폭이 672px 이상이 되면 항목을 한 줄에 두 개씩\n // (2026-11-22). 넓어진 상자에 항목이 세로로 하나씩이면 오른쪽 절반이 비고 길다(812px 상자에서 8항목 454px → 262px). 이름 붙은 컨테이너라\n // 그 밖(Drawer·목록 상세 패널·나란히 놓인 408px 패널)에서는 그대로 한 줄에 하나. 마지막 줄의 두 칸은 아래 선 없음(항목 수가 짝수면 끝에서 둘째도)\n 1: 'flex flex-col [&>*:last-child]:border-b-0 @2xl/aside:grid @2xl/aside:grid-cols-2 @2xl/aside:gap-x-[24px] @2xl/aside:[&>*:nth-last-child(2):nth-child(odd)]:border-b-0',\n 2: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2',\n 3: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2 xl:grid-cols-3',\n 4: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2 xl:grid-cols-4',\n} as const\n\n/**\n * `MetaRow` 를 위에서 아래로 한 줄씩 쌓는 목록. 상세 화면 오른쪽 '기본 정보' 패널·폼 검토 패널·상세 Drawer 의 \"필드: 값\" 묶음.\n *\n * 언제 쓰나: DetailPage `aside`(오른쪽 '기본 정보' 패널, 6~10행)·FormPage `aside`(검토 패널)·Drawer 본문처럼 폭이 좁은 곳에 리소스의 필드를 나열할 때(세로 한 줄씩, 패널 하나에 목록 하나 — 패턴의 옆 패널이 좁은 화면에서 본문 아래로 내려가 넓어지면 항목이 저절로 한 줄에 두 개씩 놓인다. `columns` 를 주지 않는다), 또는 `columns={3}` 으로 전폭 본문 카드의 키-값 격자. 행마다 라벨 100px + 값 오른쪽 정렬(기본) — 패널·정보 열에서는 `MetaRow align='start'` 로 값을 라벨 옆에 붙인다.\n * 언제 안 쓰나: PageHeader 아래의 식별 메타 한 줄(→ MetaGroup + MetaItem), 표 형태 데이터(→ Table).\n * 대신/함께: `Stack` 은 기본 방향이 가로라 `<Stack>` 으로 MetaRow 를 감싸면 행이 옆으로 늘어서 잘린다 — MetaList 를 쓴다.\n */\nfunction MetaList({ className, columns = 1, ...props }: MetaListProps) {\n return <div className={cn('w-full', META_LIST_COLUMNS[columns], className)} {...props} />\n}\n\nexport { MetaGroup, MetaItem, MetaList, MetaRow }\n"],"names":["jsxs","cn","jsx","React","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgBA,SAAS,SAAS,EAAE,OAAO,OAAO,WAAW,GAAG,SAAwB;AACtE;AAAA;AAAA,IAEEA,gCAAC,SAAI,WAAWC,GAAAA,GAAG,gDAAgD,SAAS,GAAI,GAAG,OAEjF,UAAA;AAAA,MAAAC,2BAAAA,IAAC,QAAA,EAAK,WAAU,sDAAsD,UAAA,OAAM;AAAA,MAC5EA,2BAAAA,IAAC,QAAA,EAAK,eAAW,MAAC,WAAU,gDAA+C;AAAA,MAC3EA,2BAAAA,IAAC,QAAA,EAAK,WAAU,0EACb,UAAA,MAAA,CACH;AAAA,IAAA,EAAA,CACF;AAAA;AAEJ;AA6BA,SAAS,UAAU,EAAE,WAAW,GAAG,SAA+C;AAChF,SACEA,2BAAAA,IAAC,SAAI,WAAWD,GAAAA,GAAG,oDAAoD,SAAS,GAAI,GAAG,OAAO;AAElG;AAGA,SAAS,aAAa,EAAE,WAAW,YAA8D;AAC/F,QAAM,MAAME,iBAAM,OAAwB,IAAI;AAC9C,QAAM,CAAC,MAAM,OAAO,IAAIA,iBAAM,SAAS,KAAK;AAC5C,QAAM,YAAY,MAAM,CAAC,CAAC,IAAI,WAAW,IAAI,QAAQ,cAAc,IAAI,QAAQ;AAE/E,SACED,2BAAAA,IAACE,QAAAA,iBAAA,EAAgB,eAAe,KAC9B,0CAACC,QAAAA,SAAA,EAAQ,MAAY,cAAc,CAAC,SAAS,QAAQ,QAAQ,UAAA,CAAW,GACtE,UAAA;AAAA,IAAAH,2BAAAA,IAACI,QAAAA,gBAAA,EAAe,SAAO,MACrB,UAAAJ,2BAAAA,IAAC,UAAK,KAAU,WACb,UACH,EAAA,CACF;AAAA,IACAA,2BAAAA,IAACK,QAAAA,gBAAA,EAAe,WAAU,2BAA2B,SAAA,CAAS;AAAA,EAAA,EAAA,CAChE,EAAA,CACF;AAEJ;AAEA,SAAS,QAAQ;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,UAAU;AAAA,EACV;AAAA,EACA,GAAG;AACL,GAAiB;AACf,QAAM,WAAW,UAAU,UAAa,UAAU,QAAQ,UAAU;AACpE,QAAM,QAAQ,UAAU;AACxB,QAAM,iBAAiBN,GAAAA;AAAAA;AAAAA,IAErB;AAAA,IACA,WAAW,yBAAyB;AAAA,IACpC,QAAQ,cAAc;AAAA,EAAA;AAExB,SACED,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,GAAAA;AAAAA;AAAAA,QAET;AAAA,QACA,YAAY,YACR,0CACA;AAAA,QACJ;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAAC,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD,GAAAA;AAAAA;AAAAA,cAET;AAAA;AAAA,cAEA,QAAQ,4BAA4B;AAAA,YAAA;AAAA,YAGrC,UAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAEHD,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC,GAAAA;AAAAA,cACT;AAAA,cACA,CAAC,YAAY,CAAC,SAAS;AAAA,YAAA;AAAA,YAGxB,UAAA;AAAA,cAAA;AAAA,cACA;AAAA,eAEE,OAAO,UAAU,YAAY,OAAO,UAAU,WAC7CC,+BAAC,cAAA,EAAa,WAAW,gBAAiB,iBAAM,IAEhDA,2BAAAA,IAAC,QAAA,EAAK,WAAW,gBAAiB,UAAA,MAAA,CAAM;AAAA,cAE3C;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN;AAOA,MAAM,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AASA,SAAS,SAAS,EAAE,WAAW,UAAU,GAAG,GAAG,SAAwB;AACrE,SAAOA,+BAAC,OAAA,EAAI,WAAWD,GAAAA,GAAG,UAAU,kBAAkB,OAAO,GAAG,SAAS,GAAI,GAAG,MAAA,CAAO;AACzF;;;;;"}
|
|
@@ -32,6 +32,7 @@ function MetaRow({
|
|
|
32
32
|
slotAfter,
|
|
33
33
|
align = "end",
|
|
34
34
|
emphasis = false,
|
|
35
|
+
spacing = "normal",
|
|
35
36
|
className,
|
|
36
37
|
...props
|
|
37
38
|
}) {
|
|
@@ -48,7 +49,8 @@ function MetaRow({
|
|
|
48
49
|
{
|
|
49
50
|
className: cn(
|
|
50
51
|
// min-h: 한 줄이면 48px 그대로, 태그처럼 줄바꿈되는 값이면 자란다. 선은 Separator·표 행과 같은 토큰 (2026-10-17 이슈 47 4차)
|
|
51
|
-
"flex
|
|
52
|
+
"flex w-full items-center justify-between",
|
|
53
|
+
spacing === "compact" ? "min-h-[28px] border-b-0 px-0 py-[2px]" : "min-h-[48px] border-b border-sys-divider-subtle px-[12px] py-[8px]",
|
|
52
54
|
className
|
|
53
55
|
),
|
|
54
56
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaItem.js","sources":["../../src/components/metaItem.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '../utils/cn'\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip'\n\nexport interface MetaItemProps extends React.HTMLAttributes<HTMLDivElement> {\n label: React.ReactNode\n value: React.ReactNode\n}\n\n/**\n * 라벨·값 한 쌍의 메타 정보. 가로 나열(`MetaItem`+`MetaGroup`, 헤더용)과 세로 쌓기(`MetaRow`+`MetaList`, 상세 패널용) 두 모양이 있다.\n * 언제 쓰나: PageHeader 제목 아래 한 줄 — 리소스를 식별·추적하는 값 4개 안팎(ID·버전·소유자·수정일)을 `MetaGroup` + MetaItem 으로. 상세 화면의 속성·사양 목록(프레임워크·크기·등록일 …)은 DetailPage `aside`(오른쪽 '기본 정보' 패널)에 MetaList + MetaRow align='start' 로 두고, 같은 값을 두 곳에 쓰지 않는다(2026-11-22 사용자 결정).\n * 언제 안 쓰나: 편집 가능한 값(폼), 열이 여러 개인 표(Table).\n * 대신/함께: MetaRow 값은 14px·라벨 12px — 행마다 값 크기를 바꾸지 않는다(패널 안 크기 차이는 심판 감점, 2026-10-18). 상태는 value 에 Badge.\n */\nfunction MetaItem({ label, value, className, ...props }: MetaItemProps) {\n return (\n // min-w-0·truncate: 줄 폭보다 긴 값은 넘치지 않고 말줄임으로 끝난다\n <div className={cn('flex h-[28px] min-w-0 items-center gap-[6px]', className)} {...props}>\n {/* 라벨 12px 은 유지하고 색만 subtler → subtle(흰 바탕 대비 4.98 → 7.19) — \"small gray text\" 감점(2026-10-18 13차) */}\n <span className='shrink-0 text-small-regular-h text-sys-text-subtle'>{label}</span>\n <span aria-hidden className='h-[11px] w-px shrink-0 bg-sys-divider-subtle' />\n <span className='min-w-0 truncate whitespace-pre text-small-medium-h text-sys-text-main'>\n {value}\n </span>\n </div>\n )\n}\n\nexport interface MetaRowProps extends React.HTMLAttributes<HTMLDivElement> {\n label: React.ReactNode\n /** 생략 시 슬롯만 우측 정렬로 렌더링됨 (Figma hasText=false 대응) */\n value?: React.ReactNode\n slotBefore?: React.ReactNode\n slotAfter?: React.ReactNode\n /**\n * 값의 자리. `end`(기본)는 라벨 100px + 값을 행 오른쪽 끝에(dl-ui-v3 시안). `start` 는 라벨 120px + 값을 라벨 바로 옆 왼쪽 정렬 —\n * 상세 패널·오른쪽 정보 열처럼 행이 넓은 곳에서 라벨과 값 사이가 비지 않는다(2026-10-16 이슈 47, 원문 심판 13회 감점). 패턴 예제는 `start`\n */\n align?: 'end' | 'start'\n /**\n * 값을 숫자 강조(20px, 탭룰러)로. 통계·건수처럼 숫자가 행의 주인공일 때만 — 예: \"사용 중인 엔드포인트 3개\", \"크기 1,280 MB\".\n * 한 패널에 한두 행만. 2026-10-17 8차 A3(디자이너 점수 역추적: 글자 크기 단계가 많은 화면이 높게 평가됨).\n * 2026-10-18 9차: 예제·스킬·스토리에서 뺐다 — 개발용 8차 심판이 패널 안 크기 차이를 \"불균일\"로 읽어 감점(타이포 3쌍·컴포넌트 2쌍). KPI 띠 같은 전용 자리가 생기기 전엔 기본으로 쓰지 않는다\n */\n emphasis?: boolean\n}\n\n/**\n * PageHeader 등의 메타 항목(`MetaItem`)들을 가로로 나열하는 컨테이너.\n * 폭이 좁아지면 줄바꿈되며, 가로 간격은 24px, 줄바꿈 시 세로 간격은 0이다. 상세 화면의 식별 값(ID·버전·소유자·수정일, 4개 안팎)을 여기 한 줄에\n * 흘려 둔다 — 속성·사양 목록은 DetailPage `aside` 패널로(2026-11-22 사용자 결정). 열을 맞춘 격자는 두지 않는다 — 1440 폭 3열이면 칸이 약 470px 라 항목 사이가\n * 벌어졌다(2026-11-06 사용자 지적, 홀드아웃 17~19 심판 \"metadata spread across very wide columns\"). dl-ui-v3 상세 화면과 같은 모양\n */\nfunction MetaGroup({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div className={cn('flex flex-wrap items-center gap-x-[24px] gap-y-0', className)} {...props} />\n )\n}\n\n/** 말줄임으로 잘린 글자 값은 마우스를 올리면 전체를 툴팁으로 보인다. 잘리지 않았으면 툴팁을 열지 않는다 */\nfunction ClampedValue({ className, children }: { className: string; children: string | number }) {\n const ref = React.useRef<HTMLSpanElement>(null)\n const [open, setOpen] = React.useState(false)\n const isClamped = () => !!ref.current && ref.current.scrollWidth > ref.current.clientWidth\n\n return (\n <TooltipProvider delayDuration={300}>\n <Tooltip open={open} onOpenChange={(next) => setOpen(next && isClamped())}>\n <TooltipTrigger asChild>\n <span ref={ref} className={className}>\n {children}\n </span>\n </TooltipTrigger>\n <TooltipContent className='max-w-[320px] break-all'>{children}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )\n}\n\nfunction MetaRow({\n label,\n value,\n slotBefore,\n slotAfter,\n align = 'end',\n emphasis = false,\n className,\n ...props\n}: MetaRowProps) {\n const hasValue = value !== undefined && value !== null && value !== ''\n const start = align === 'start'\n const valueClassName = cn(\n // 값 14px(라벨 12px) — 라벨과 값이 같은 크기라 위계가 없던 것을 고침(2026-10-17 8차 A2). emphasis 는 20px 탭룰러 숫자\n 'min-w-0 truncate whitespace-pre text-sys-text-main',\n emphasis ? 'text-h4 tabular-nums' : 'text-base-medium',\n start ? 'text-left' : 'flex-1 text-right',\n )\n return (\n <div\n className={cn(\n // min-h: 한 줄이면 48px 그대로, 태그처럼 줄바꿈되는 값이면 자란다. 선은 Separator·표 행과 같은 토큰 (2026-10-17 이슈 47 4차)\n 'flex min-h-[
|
|
1
|
+
{"version":3,"file":"metaItem.js","sources":["../../src/components/metaItem.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '../utils/cn'\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip'\n\nexport interface MetaItemProps extends React.HTMLAttributes<HTMLDivElement> {\n label: React.ReactNode\n value: React.ReactNode\n}\n\n/**\n * 라벨·값 한 쌍의 메타 정보. 가로 나열(`MetaItem`+`MetaGroup`, 헤더용)과 세로 쌓기(`MetaRow`+`MetaList`, 상세 패널용) 두 모양이 있다.\n * 언제 쓰나: PageHeader 제목 아래 한 줄 — 리소스를 식별·추적하는 값 4개 안팎(ID·버전·소유자·수정일)을 `MetaGroup` + MetaItem 으로. 상세 화면의 속성·사양 목록(프레임워크·크기·등록일 …)은 DetailPage `aside`(오른쪽 '기본 정보' 패널)에 MetaList + MetaRow align='start' 로 두고, 같은 값을 두 곳에 쓰지 않는다(2026-11-22 사용자 결정).\n * 언제 안 쓰나: 편집 가능한 값(폼), 열이 여러 개인 표(Table).\n * 대신/함께: MetaRow 값은 14px·라벨 12px — 행마다 값 크기를 바꾸지 않는다(패널 안 크기 차이는 심판 감점, 2026-10-18). 상태는 value 에 Badge.\n */\nfunction MetaItem({ label, value, className, ...props }: MetaItemProps) {\n return (\n // min-w-0·truncate: 줄 폭보다 긴 값은 넘치지 않고 말줄임으로 끝난다\n <div className={cn('flex h-[28px] min-w-0 items-center gap-[6px]', className)} {...props}>\n {/* 라벨 12px 은 유지하고 색만 subtler → subtle(흰 바탕 대비 4.98 → 7.19) — \"small gray text\" 감점(2026-10-18 13차) */}\n <span className='shrink-0 text-small-regular-h text-sys-text-subtle'>{label}</span>\n <span aria-hidden className='h-[11px] w-px shrink-0 bg-sys-divider-subtle' />\n <span className='min-w-0 truncate whitespace-pre text-small-medium-h text-sys-text-main'>\n {value}\n </span>\n </div>\n )\n}\n\nexport interface MetaRowProps extends React.HTMLAttributes<HTMLDivElement> {\n label: React.ReactNode\n /** 생략 시 슬롯만 우측 정렬로 렌더링됨 (Figma hasText=false 대응) */\n value?: React.ReactNode\n slotBefore?: React.ReactNode\n slotAfter?: React.ReactNode\n /**\n * 값의 자리. `end`(기본)는 라벨 100px + 값을 행 오른쪽 끝에(dl-ui-v3 시안). `start` 는 라벨 120px + 값을 라벨 바로 옆 왼쪽 정렬 —\n * 상세 패널·오른쪽 정보 열처럼 행이 넓은 곳에서 라벨과 값 사이가 비지 않는다(2026-10-16 이슈 47, 원문 심판 13회 감점). 패턴 예제는 `start`\n */\n align?: 'end' | 'start'\n /**\n * 값을 숫자 강조(20px, 탭룰러)로. 통계·건수처럼 숫자가 행의 주인공일 때만 — 예: \"사용 중인 엔드포인트 3개\", \"크기 1,280 MB\".\n * 한 패널에 한두 행만. 2026-10-17 8차 A3(디자이너 점수 역추적: 글자 크기 단계가 많은 화면이 높게 평가됨).\n * 2026-10-18 9차: 예제·스킬·스토리에서 뺐다 — 개발용 8차 심판이 패널 안 크기 차이를 \"불균일\"로 읽어 감점(타이포 3쌍·컴포넌트 2쌍). KPI 띠 같은 전용 자리가 생기기 전엔 기본으로 쓰지 않는다\n */\n emphasis?: boolean\n /** 행 밀도. `normal`(기본) = 48px 행 + 구분선. `compact` = 28px 행, 구분선·좌우 여백 없음 — 틴트 카드 안처럼 상자 여백이 이미 있는 촘촘한 목록(SelectedItemCard) */\n spacing?: 'normal' | 'compact'\n}\n\n/**\n * PageHeader 등의 메타 항목(`MetaItem`)들을 가로로 나열하는 컨테이너.\n * 폭이 좁아지면 줄바꿈되며, 가로 간격은 24px, 줄바꿈 시 세로 간격은 0이다. 상세 화면의 식별 값(ID·버전·소유자·수정일, 4개 안팎)을 여기 한 줄에\n * 흘려 둔다 — 속성·사양 목록은 DetailPage `aside` 패널로(2026-11-22 사용자 결정). 열을 맞춘 격자는 두지 않는다 — 1440 폭 3열이면 칸이 약 470px 라 항목 사이가\n * 벌어졌다(2026-11-06 사용자 지적, 홀드아웃 17~19 심판 \"metadata spread across very wide columns\"). dl-ui-v3 상세 화면과 같은 모양\n */\nfunction MetaGroup({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div className={cn('flex flex-wrap items-center gap-x-[24px] gap-y-0', className)} {...props} />\n )\n}\n\n/** 말줄임으로 잘린 글자 값은 마우스를 올리면 전체를 툴팁으로 보인다. 잘리지 않았으면 툴팁을 열지 않는다 */\nfunction ClampedValue({ className, children }: { className: string; children: string | number }) {\n const ref = React.useRef<HTMLSpanElement>(null)\n const [open, setOpen] = React.useState(false)\n const isClamped = () => !!ref.current && ref.current.scrollWidth > ref.current.clientWidth\n\n return (\n <TooltipProvider delayDuration={300}>\n <Tooltip open={open} onOpenChange={(next) => setOpen(next && isClamped())}>\n <TooltipTrigger asChild>\n <span ref={ref} className={className}>\n {children}\n </span>\n </TooltipTrigger>\n <TooltipContent className='max-w-[320px] break-all'>{children}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n )\n}\n\nfunction MetaRow({\n label,\n value,\n slotBefore,\n slotAfter,\n align = 'end',\n emphasis = false,\n spacing = 'normal',\n className,\n ...props\n}: MetaRowProps) {\n const hasValue = value !== undefined && value !== null && value !== ''\n const start = align === 'start'\n const valueClassName = cn(\n // 값 14px(라벨 12px) — 라벨과 값이 같은 크기라 위계가 없던 것을 고침(2026-10-17 8차 A2). emphasis 는 20px 탭룰러 숫자\n 'min-w-0 truncate whitespace-pre text-sys-text-main',\n emphasis ? 'text-h4 tabular-nums' : 'text-base-medium',\n start ? 'text-left' : 'flex-1 text-right',\n )\n return (\n <div\n className={cn(\n // min-h: 한 줄이면 48px 그대로, 태그처럼 줄바꿈되는 값이면 자란다. 선은 Separator·표 행과 같은 토큰 (2026-10-17 이슈 47 4차)\n 'flex w-full items-center justify-between',\n spacing === 'compact'\n ? 'min-h-[28px] border-b-0 px-0 py-[2px]'\n : 'min-h-[48px] border-b border-sys-divider-subtle px-[12px] py-[8px]',\n className,\n )}\n {...props}\n >\n <span\n className={cn(\n // 라벨 12px 유지, 색은 subtle(2026-10-18 13차 — 상세·검토 패널 라벨이 \"small gray text\" 로 읽혔다)\n 'shrink-0 text-small-regular text-sys-text-subtle',\n // start: 라벨 열 120px(긴 라벨은 열을 밀고 값은 12px 뒤에서 시작 — 겹치지 않게), end: 100px 고정\n start ? 'min-w-[120px] pr-[12px]' : 'w-[100px]',\n )}\n >\n {label}\n </span>\n <div\n className={cn(\n 'flex min-w-0 flex-1 items-center gap-[6px]',\n !hasValue && !start && 'justify-end',\n )}\n >\n {slotBefore}\n {hasValue &&\n // 글자 값은 잘렸을 때 전체를 볼 수 있게(2026-11-24 hongsu 알고리즘 정보의 실행 환경 이미지 이름). 요소 값(Badge·링크)은 그대로\n (typeof value === 'string' || typeof value === 'number' ? (\n <ClampedValue className={valueClassName}>{value}</ClampedValue>\n ) : (\n <span className={valueClassName}>{value}</span>\n ))}\n {slotAfter}\n </div>\n </div>\n )\n}\n\nexport interface MetaListProps extends React.HTMLAttributes<HTMLDivElement> {\n /** 열 수(기본 1 = 세로 한 줄씩). 2 이상이면 행을 격자로 흘린다(md 2열, xl 부터 지정 열) — 전폭 본문 카드처럼 넓은 자리의 키-값 격자. 행은 `MetaRow align='start'` */\n columns?: 1 | 2 | 3 | 4\n}\n\nconst META_LIST_COLUMNS = {\n // 한 열: 마지막 줄 아래 선 없음 — 앱이 목록 밑에 Separator 를 두면 선이 두 줄로 겹쳤다(2026-11-06 홀드아웃 19 검토 패널, Opus 3). 표의 '마지막 행 선 없음'과 같은 규칙.\n // 여러 열 격자는 마지막 칸만 선이 빠지면 줄이 어긋나 그대로 둔다\n // 패턴의 옆 패널(DetailPage·FormPage `aside` — `@container/aside`)이 본문 아래로 내려가 안쪽 폭이 672px 이상이 되면 항목을 한 줄에 두 개씩\n // (2026-11-22). 넓어진 상자에 항목이 세로로 하나씩이면 오른쪽 절반이 비고 길다(812px 상자에서 8항목 454px → 262px). 이름 붙은 컨테이너라\n // 그 밖(Drawer·목록 상세 패널·나란히 놓인 408px 패널)에서는 그대로 한 줄에 하나. 마지막 줄의 두 칸은 아래 선 없음(항목 수가 짝수면 끝에서 둘째도)\n 1: 'flex flex-col [&>*:last-child]:border-b-0 @2xl/aside:grid @2xl/aside:grid-cols-2 @2xl/aside:gap-x-[24px] @2xl/aside:[&>*:nth-last-child(2):nth-child(odd)]:border-b-0',\n 2: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2',\n 3: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2 xl:grid-cols-3',\n 4: 'grid grid-cols-1 gap-x-[24px] md:grid-cols-2 xl:grid-cols-4',\n} as const\n\n/**\n * `MetaRow` 를 위에서 아래로 한 줄씩 쌓는 목록. 상세 화면 오른쪽 '기본 정보' 패널·폼 검토 패널·상세 Drawer 의 \"필드: 값\" 묶음.\n *\n * 언제 쓰나: DetailPage `aside`(오른쪽 '기본 정보' 패널, 6~10행)·FormPage `aside`(검토 패널)·Drawer 본문처럼 폭이 좁은 곳에 리소스의 필드를 나열할 때(세로 한 줄씩, 패널 하나에 목록 하나 — 패턴의 옆 패널이 좁은 화면에서 본문 아래로 내려가 넓어지면 항목이 저절로 한 줄에 두 개씩 놓인다. `columns` 를 주지 않는다), 또는 `columns={3}` 으로 전폭 본문 카드의 키-값 격자. 행마다 라벨 100px + 값 오른쪽 정렬(기본) — 패널·정보 열에서는 `MetaRow align='start'` 로 값을 라벨 옆에 붙인다.\n * 언제 안 쓰나: PageHeader 아래의 식별 메타 한 줄(→ MetaGroup + MetaItem), 표 형태 데이터(→ Table).\n * 대신/함께: `Stack` 은 기본 방향이 가로라 `<Stack>` 으로 MetaRow 를 감싸면 행이 옆으로 늘어서 잘린다 — MetaList 를 쓴다.\n */\nfunction MetaList({ className, columns = 1, ...props }: MetaListProps) {\n return <div className={cn('w-full', META_LIST_COLUMNS[columns], className)} {...props} />\n}\n\nexport { MetaGroup, MetaItem, MetaList, MetaRow }\n"],"names":[],"mappings":";;;;;AAgBA,SAAS,SAAS,EAAE,OAAO,OAAO,WAAW,GAAG,SAAwB;AACtE;AAAA;AAAA,IAEE,qBAAC,SAAI,WAAW,GAAG,gDAAgD,SAAS,GAAI,GAAG,OAEjF,UAAA;AAAA,MAAA,oBAAC,QAAA,EAAK,WAAU,sDAAsD,UAAA,OAAM;AAAA,MAC5E,oBAAC,QAAA,EAAK,eAAW,MAAC,WAAU,gDAA+C;AAAA,MAC3E,oBAAC,QAAA,EAAK,WAAU,0EACb,UAAA,MAAA,CACH;AAAA,IAAA,EAAA,CACF;AAAA;AAEJ;AA6BA,SAAS,UAAU,EAAE,WAAW,GAAG,SAA+C;AAChF,SACE,oBAAC,SAAI,WAAW,GAAG,oDAAoD,SAAS,GAAI,GAAG,OAAO;AAElG;AAGA,SAAS,aAAa,EAAE,WAAW,YAA8D;AAC/F,QAAM,MAAM,MAAM,OAAwB,IAAI;AAC9C,QAAM,CAAC,MAAM,OAAO,IAAI,MAAM,SAAS,KAAK;AAC5C,QAAM,YAAY,MAAM,CAAC,CAAC,IAAI,WAAW,IAAI,QAAQ,cAAc,IAAI,QAAQ;AAE/E,SACE,oBAAC,iBAAA,EAAgB,eAAe,KAC9B,+BAAC,SAAA,EAAQ,MAAY,cAAc,CAAC,SAAS,QAAQ,QAAQ,UAAA,CAAW,GACtE,UAAA;AAAA,IAAA,oBAAC,gBAAA,EAAe,SAAO,MACrB,UAAA,oBAAC,UAAK,KAAU,WACb,UACH,EAAA,CACF;AAAA,IACA,oBAAC,gBAAA,EAAe,WAAU,2BAA2B,SAAA,CAAS;AAAA,EAAA,EAAA,CAChE,EAAA,CACF;AAEJ;AAEA,SAAS,QAAQ;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,UAAU;AAAA,EACV;AAAA,EACA,GAAG;AACL,GAAiB;AACf,QAAM,WAAW,UAAU,UAAa,UAAU,QAAQ,UAAU;AACpE,QAAM,QAAQ,UAAU;AACxB,QAAM,iBAAiB;AAAA;AAAA,IAErB;AAAA,IACA,WAAW,yBAAyB;AAAA,IACpC,QAAQ,cAAc;AAAA,EAAA;AAExB,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA;AAAA,QAET;AAAA,QACA,YAAY,YACR,0CACA;AAAA,QACJ;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW;AAAA;AAAA,cAET;AAAA;AAAA,cAEA,QAAQ,4BAA4B;AAAA,YAAA;AAAA,YAGrC,UAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAEH;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW;AAAA,cACT;AAAA,cACA,CAAC,YAAY,CAAC,SAAS;AAAA,YAAA;AAAA,YAGxB,UAAA;AAAA,cAAA;AAAA,cACA;AAAA,eAEE,OAAO,UAAU,YAAY,OAAO,UAAU,WAC7C,oBAAC,cAAA,EAAa,WAAW,gBAAiB,iBAAM,IAEhD,oBAAC,QAAA,EAAK,WAAW,gBAAiB,UAAA,MAAA,CAAM;AAAA,cAE3C;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN;AAOA,MAAM,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AASA,SAAS,SAAS,EAAE,WAAW,UAAU,GAAG,GAAG,SAAwB;AACrE,SAAO,oBAAC,OAAA,EAAI,WAAW,GAAG,UAAU,kBAAkB,OAAO,GAAG,SAAS,GAAI,GAAG,MAAA,CAAO;AACzF;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.cjs","sources":["../../../src/components/select/select.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\nimport { useControllableValue } from '../../hooks/useControllableValue'\nimport { SelectRootFrame, useSelectRootState } from './selectRoot'\nimport type { SelectContextValue, SelectProps } from './types'\n\n/**\n * 드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.\n *\n * 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.\n * 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).\n * 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.\n */\nfunction Select({\n value: controlledValue,\n defaultValue,\n onValueChange,\n open,\n defaultOpen = false,\n onOpenChange,\n disabled,\n className,\n children,\n}: SelectProps) {\n const root = useSelectRootState({ open, defaultOpen, onOpenChange })\n const { value, setValue } = useControllableValue({\n value: controlledValue,\n defaultValue,\n empty: undefined,\n onChange: onValueChange,\n })\n const { setOpen } = root\n\n const context = React.useMemo<SelectContextValue>(\n () => ({\n ...root,\n slot: 'select',\n disabled,\n value,\n onValueChange: setValue,\n isSelected: (itemValue) => itemValue === value,\n selectItem: (itemValue) => {\n setValue(itemValue)\n setOpen(false)\n },\n }),\n [root, disabled, value, setValue, setOpen],\n )\n\n return (\n <SelectRootFrame context={context} className={className}>\n {children}\n </SelectRootFrame>\n )\n}\n\nexport { Select }\n"],"names":["useSelectRootState","useControllableValue","React","jsx","SelectRootFrame"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,SAAS,OAAO;AAAA,EACd,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAgB;AACd,QAAM,OAAOA,WAAAA,mBAAmB,EAAE,MAAM,aAAa,cAAc;AACnE,QAAM,EAAE,OAAO,SAAA,IAAaC,0CAAqB;AAAA,IAC/C,OAAO;AAAA,IACP;AAAA,IACA,OAAO;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AACD,QAAM,EAAE,YAAY;AAEpB,QAAM,UAAUC,iBAAM;AAAA,IACpB,OAAO;AAAA,MACL,GAAG;AAAA,MACH,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA,eAAe;AAAA,MACf,YAAY,CAAC,cAAc,cAAc;AAAA,MACzC,YAAY,CAAC,cAAc;AACzB,iBAAS,SAAS;AAClB,gBAAQ,KAAK;AAAA,MACf;AAAA,IAAA;AAAA,IAEF,CAAC,MAAM,UAAU,OAAO,UAAU,OAAO;AAAA,EAAA;AAG3C,SACEC,2BAAAA,IAACC,WAAAA,iBAAA,EAAgB,SAAkB,WAChC,SAAA,CACH;AAEJ;;"}
|
|
1
|
+
{"version":3,"file":"select.cjs","sources":["../../../src/components/select/select.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\nimport { useControllableValue } from '../../hooks/useControllableValue'\nimport { SelectRootFrame, useSelectRootState } from './selectRoot'\nimport type { SelectContextValue, SelectProps } from './types'\n\n/**\n * 드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.\n *\n * 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.\n * 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).\n * 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.\n */\nfunction Select({\n value: controlledValue,\n defaultValue,\n onValueChange,\n open,\n defaultOpen = false,\n onOpenChange,\n disabled,\n className,\n children,\n}: SelectProps) {\n const root = useSelectRootState({ open, defaultOpen, onOpenChange })\n const { value, setValue } = useControllableValue({\n value: controlledValue,\n defaultValue,\n empty: undefined,\n onChange: onValueChange,\n })\n const { setOpen } = root\n\n const context = React.useMemo<SelectContextValue>(\n () => ({\n ...root,\n slot: 'select',\n disabled,\n value,\n onValueChange: setValue,\n isSelected: (itemValue) => itemValue === value,\n selectItem: (itemValue) => {\n setValue(itemValue)\n setOpen(false)\n },\n }),\n [root, disabled, value, setValue, setOpen],\n )\n\n return (\n <SelectRootFrame context={context} className={className}>\n {children}\n </SelectRootFrame>\n )\n}\n\nexport { Select }\n"],"names":["useSelectRootState","useControllableValue","React","jsx","SelectRootFrame"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,SAAS,OAAO;AAAA,EACd,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAgB;AACd,QAAM,OAAOA,WAAAA,mBAAmB,EAAE,MAAM,aAAa,cAAc;AACnE,QAAM,EAAE,OAAO,SAAA,IAAaC,0CAAqB;AAAA,IAC/C,OAAO;AAAA,IACP;AAAA,IACA,OAAO;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AACD,QAAM,EAAE,YAAY;AAEpB,QAAM,UAAUC,iBAAM;AAAA,IACpB,OAAO;AAAA,MACL,GAAG;AAAA,MACH,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA,eAAe;AAAA,MACf,YAAY,CAAC,cAAc,cAAc;AAAA,MACzC,YAAY,CAAC,cAAc;AACzB,iBAAS,SAAS;AAClB,gBAAQ,KAAK;AAAA,MACf;AAAA,IAAA;AAAA,IAEF,CAAC,MAAM,UAAU,OAAO,UAAU,OAAO;AAAA,EAAA;AAG3C,SACEC,2BAAAA,IAACC,WAAAA,iBAAA,EAAgB,SAAkB,WAChC,SAAA,CACH;AAEJ;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sources":["../../../src/components/select/select.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\nimport { useControllableValue } from '../../hooks/useControllableValue'\nimport { SelectRootFrame, useSelectRootState } from './selectRoot'\nimport type { SelectContextValue, SelectProps } from './types'\n\n/**\n * 드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.\n *\n * 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.\n * 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).\n * 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.\n */\nfunction Select({\n value: controlledValue,\n defaultValue,\n onValueChange,\n open,\n defaultOpen = false,\n onOpenChange,\n disabled,\n className,\n children,\n}: SelectProps) {\n const root = useSelectRootState({ open, defaultOpen, onOpenChange })\n const { value, setValue } = useControllableValue({\n value: controlledValue,\n defaultValue,\n empty: undefined,\n onChange: onValueChange,\n })\n const { setOpen } = root\n\n const context = React.useMemo<SelectContextValue>(\n () => ({\n ...root,\n slot: 'select',\n disabled,\n value,\n onValueChange: setValue,\n isSelected: (itemValue) => itemValue === value,\n selectItem: (itemValue) => {\n setValue(itemValue)\n setOpen(false)\n },\n }),\n [root, disabled, value, setValue, setOpen],\n )\n\n return (\n <SelectRootFrame context={context} className={className}>\n {children}\n </SelectRootFrame>\n )\n}\n\nexport { Select }\n"],"names":[],"mappings":";;;;;AAeA,SAAS,OAAO;AAAA,EACd,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAgB;AACd,QAAM,OAAO,mBAAmB,EAAE,MAAM,aAAa,cAAc;AACnE,QAAM,EAAE,OAAO,SAAA,IAAa,qBAAqB;AAAA,IAC/C,OAAO;AAAA,IACP;AAAA,IACA,OAAO;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AACD,QAAM,EAAE,YAAY;AAEpB,QAAM,UAAU,MAAM;AAAA,IACpB,OAAO;AAAA,MACL,GAAG;AAAA,MACH,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA,eAAe;AAAA,MACf,YAAY,CAAC,cAAc,cAAc;AAAA,MACzC,YAAY,CAAC,cAAc;AACzB,iBAAS,SAAS;AAClB,gBAAQ,KAAK;AAAA,MACf;AAAA,IAAA;AAAA,IAEF,CAAC,MAAM,UAAU,OAAO,UAAU,OAAO;AAAA,EAAA;AAG3C,SACE,oBAAC,iBAAA,EAAgB,SAAkB,WAChC,SAAA,CACH;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"select.js","sources":["../../../src/components/select/select.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\nimport { useControllableValue } from '../../hooks/useControllableValue'\nimport { SelectRootFrame, useSelectRootState } from './selectRoot'\nimport type { SelectContextValue, SelectProps } from './types'\n\n/**\n * 드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.\n *\n * 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.\n * 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).\n * 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.\n */\nfunction Select({\n value: controlledValue,\n defaultValue,\n onValueChange,\n open,\n defaultOpen = false,\n onOpenChange,\n disabled,\n className,\n children,\n}: SelectProps) {\n const root = useSelectRootState({ open, defaultOpen, onOpenChange })\n const { value, setValue } = useControllableValue({\n value: controlledValue,\n defaultValue,\n empty: undefined,\n onChange: onValueChange,\n })\n const { setOpen } = root\n\n const context = React.useMemo<SelectContextValue>(\n () => ({\n ...root,\n slot: 'select',\n disabled,\n value,\n onValueChange: setValue,\n isSelected: (itemValue) => itemValue === value,\n selectItem: (itemValue) => {\n setValue(itemValue)\n setOpen(false)\n },\n }),\n [root, disabled, value, setValue, setOpen],\n )\n\n return (\n <SelectRootFrame context={context} className={className}>\n {children}\n </SelectRootFrame>\n )\n}\n\nexport { Select }\n"],"names":[],"mappings":";;;;;AAeA,SAAS,OAAO;AAAA,EACd,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAgB;AACd,QAAM,OAAO,mBAAmB,EAAE,MAAM,aAAa,cAAc;AACnE,QAAM,EAAE,OAAO,SAAA,IAAa,qBAAqB;AAAA,IAC/C,OAAO;AAAA,IACP;AAAA,IACA,OAAO;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AACD,QAAM,EAAE,YAAY;AAEpB,QAAM,UAAU,MAAM;AAAA,IACpB,OAAO;AAAA,MACL,GAAG;AAAA,MACH,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA,eAAe;AAAA,MACf,YAAY,CAAC,cAAc,cAAc;AAAA,MACzC,YAAY,CAAC,cAAc;AACzB,iBAAS,SAAS;AAClB,gBAAQ,KAAK;AAAA,MACf;AAAA,IAAA;AAAA,IAEF,CAAC,MAAM,UAAU,OAAO,UAAU,OAAO;AAAA,EAAA;AAG3C,SACE,oBAAC,iBAAA,EAAgB,SAAkB,WAChC,SAAA,CACH;AAEJ;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const lucide = require("lucide-react");
|
|
6
|
+
const cn = require("../utils/cn.cjs");
|
|
7
|
+
const iconButton = require("./iconButton.cjs");
|
|
8
|
+
const metaItem = require("./metaItem.cjs");
|
|
9
|
+
const BOX = "flex flex-col gap-[8px] rounded-small bg-secondary-o10 p-[16px]";
|
|
10
|
+
function SelectedItemCard({
|
|
11
|
+
title,
|
|
12
|
+
description,
|
|
13
|
+
items,
|
|
14
|
+
isEmpty = false,
|
|
15
|
+
emptyMessage = "선택된 항목이 없습니다.",
|
|
16
|
+
onRemove,
|
|
17
|
+
detailHref,
|
|
18
|
+
detailLabel = "상세보기",
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}) {
|
|
22
|
+
if (isEmpty) {
|
|
23
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn(BOX, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[28px] items-center justify-center gap-[8px]", children: [
|
|
24
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucide.Info, { "aria-hidden": true, className: "size-[20px] shrink-0 text-sys-text-subtler" }),
|
|
25
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base-medium text-sys-text-subtle", children: emptyMessage })
|
|
26
|
+
] }) });
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn(BOX, className), ...props, children: [
|
|
29
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[28px] items-center justify-between gap-[8px]", children: [
|
|
30
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "min-w-0 truncate text-base-semibold text-sys-text-main", children: title }),
|
|
31
|
+
onRemove || detailHref ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-[8px]", children: [
|
|
32
|
+
detailHref ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
+
iconButton.IconButton,
|
|
34
|
+
{
|
|
35
|
+
asChild: true,
|
|
36
|
+
variant: "secondaryLink",
|
|
37
|
+
spacing: "compact",
|
|
38
|
+
"aria-label": detailLabel,
|
|
39
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: detailHref, target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ jsxRuntime.jsx(lucide.ExternalLink, {}) })
|
|
40
|
+
}
|
|
41
|
+
) : null,
|
|
42
|
+
onRemove ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
+
iconButton.IconButton,
|
|
44
|
+
{
|
|
45
|
+
variant: "secondaryLink",
|
|
46
|
+
spacing: "compact",
|
|
47
|
+
"aria-label": "선택 해제",
|
|
48
|
+
onClick: onRemove,
|
|
49
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucide.X, {})
|
|
50
|
+
}
|
|
51
|
+
) : null
|
|
52
|
+
] }) : null
|
|
53
|
+
] }),
|
|
54
|
+
description != null ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "line-clamp-2 text-small-regular text-sys-text-subtle", children: description }) : null,
|
|
55
|
+
items && items.length > 0 ? (
|
|
56
|
+
// compact: 좌우 여백 0 이라 라벨 왼쪽 선이 제목 왼쪽 선과 맞는다
|
|
57
|
+
/* @__PURE__ */ jsxRuntime.jsx(metaItem.MetaList, { children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
58
|
+
metaItem.MetaRow,
|
|
59
|
+
{
|
|
60
|
+
align: "start",
|
|
61
|
+
spacing: "compact",
|
|
62
|
+
label: item.label,
|
|
63
|
+
value: item.value
|
|
64
|
+
},
|
|
65
|
+
i
|
|
66
|
+
)) })
|
|
67
|
+
) : null
|
|
68
|
+
] });
|
|
69
|
+
}
|
|
70
|
+
exports.SelectedItemCard = SelectedItemCard;
|
|
71
|
+
//# sourceMappingURL=selectedItemCard.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectedItemCard.cjs","sources":["../../src/components/selectedItemCard.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { ExternalLink, Info, X } from 'lucide-react'\n\nimport { cn } from '../utils/cn'\nimport { IconButton } from './iconButton'\nimport { MetaList, MetaRow } from './metaItem'\n\nexport interface SelectedItemCardItem {\n /** 속성 이름 */\n label: React.ReactNode\n /** 속성 값 */\n value: React.ReactNode\n}\n\nexport interface SelectedItemCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {\n /** 선택한 항목의 이름. `isEmpty` 면 쓰지 않는다 */\n title?: React.ReactNode\n /** 이름 아래 설명(최대 2줄) */\n description?: React.ReactNode\n /** 속성 목록(등록일·크기 …). 라벨 → 값 한 줄씩 */\n items?: SelectedItemCardItem[]\n /** 아무것도 고르지 않았을 때 true — 빈 상태 문구만 그린다 */\n isEmpty?: boolean\n /** 빈 상태 문구 */\n emptyMessage?: React.ReactNode\n /** 주면 제목 줄 오른쪽에 선택 해제(X) 버튼이 생긴다 */\n onRemove?: () => void\n /** 상세 화면 주소. 주면 제목 줄 오른쪽에 새 탭으로 여는 링크 버튼이 생긴다 */\n detailHref?: string\n /** 상세 링크 버튼의 접근성 이름 */\n detailLabel?: string\n}\n\n// 테두리 없는 연한 틴트 상자(secondary-o10, 표 머리줄과 같은 단계) — 흰 입력란·검토 패널과 다른 '보조 정보' 면으로 읽힌다. o05 는 흰 바탕에서 거의 안 보여 o10 으로 정함(2026-11-25 사용자 결정, dl-ui-v3 SelectedItemInfo 와 같음)\nconst BOX = 'flex flex-col gap-[8px] rounded-small bg-secondary-o10 p-[16px]'\n\n/**\n * Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.\n *\n * 언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).\n * 언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).\n * 대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.\n */\nfunction SelectedItemCard({\n title,\n description,\n items,\n isEmpty = false,\n emptyMessage = '선택된 항목이 없습니다.',\n onRemove,\n detailHref,\n detailLabel = '상세보기',\n className,\n ...props\n}: SelectedItemCardProps) {\n if (isEmpty) {\n return (\n <div className={cn(BOX, className)} {...props}>\n <div className='flex h-[28px] items-center justify-center gap-[8px]'>\n <Info aria-hidden className='size-[20px] shrink-0 text-sys-text-subtler' />\n <span className='text-base-medium text-sys-text-subtle'>{emptyMessage}</span>\n </div>\n </div>\n )\n }\n\n return (\n <div className={cn(BOX, className)} {...props}>\n {/* 제목 줄 높이 28 = compact 아이콘 버튼 높이 — 제목과 버튼이 같은 줄 가운데에 선다 */}\n <div className='flex h-[28px] items-center justify-between gap-[8px]'>\n <p className='min-w-0 truncate text-base-semibold text-sys-text-main'>{title}</p>\n {onRemove || detailHref ? (\n <div className='flex shrink-0 items-center gap-[8px]'>\n {detailHref ? (\n <IconButton\n asChild\n variant='secondaryLink'\n spacing='compact'\n aria-label={detailLabel}\n >\n <a href={detailHref} target='_blank' rel='noreferrer noopener'>\n <ExternalLink />\n </a>\n </IconButton>\n ) : null}\n {onRemove ? (\n <IconButton\n variant='secondaryLink'\n spacing='compact'\n aria-label='선택 해제'\n onClick={onRemove}\n >\n <X />\n </IconButton>\n ) : null}\n </div>\n ) : null}\n </div>\n {description != null ? (\n <p className='line-clamp-2 text-small-regular text-sys-text-subtle'>{description}</p>\n ) : null}\n {items && items.length > 0 ? (\n // compact: 좌우 여백 0 이라 라벨 왼쪽 선이 제목 왼쪽 선과 맞는다\n <MetaList>\n {items.map((item, i) => (\n <MetaRow\n key={i}\n align='start'\n spacing='compact'\n label={item.label}\n value={item.value}\n />\n ))}\n </MetaList>\n ) : null}\n </div>\n )\n}\n\nexport { SelectedItemCard }\n"],"names":["jsx","cn","jsxs","Info","IconButton","ExternalLink","X","MetaList","MetaRow"],"mappings":";;;;;;;;AAoCA,MAAM,MAAM;AASZ,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA,GAAG;AACL,GAA0B;AACxB,MAAI,SAAS;AACX,WACEA,2BAAAA,IAAC,OAAA,EAAI,WAAWC,GAAAA,GAAG,KAAK,SAAS,GAAI,GAAG,OACtC,UAAAC,2BAAAA,KAAC,OAAA,EAAI,WAAU,uDACb,UAAA;AAAA,MAAAF,2BAAAA,IAACG,OAAAA,MAAA,EAAK,eAAW,MAAC,WAAU,8CAA6C;AAAA,MACzEH,2BAAAA,IAAC,QAAA,EAAK,WAAU,yCAAyC,UAAA,aAAA,CAAa;AAAA,IAAA,EAAA,CACxE,EAAA,CACF;AAAA,EAEJ;AAEA,SACEE,2BAAAA,KAAC,SAAI,WAAWD,GAAAA,GAAG,KAAK,SAAS,GAAI,GAAG,OAEtC,UAAA;AAAA,IAAAC,2BAAAA,KAAC,OAAA,EAAI,WAAU,wDACb,UAAA;AAAA,MAAAF,2BAAAA,IAAC,KAAA,EAAE,WAAU,0DAA0D,UAAA,OAAM;AAAA,MAC5E,YAAY,aACXE,gCAAC,OAAA,EAAI,WAAU,wCACZ,UAAA;AAAA,QAAA,aACCF,2BAAAA;AAAAA,UAACI,WAAAA;AAAAA,UAAA;AAAA,YACC,SAAO;AAAA,YACP,SAAQ;AAAA,YACR,SAAQ;AAAA,YACR,cAAY;AAAA,YAEZ,UAAAJ,2BAAAA,IAAC,KAAA,EAAE,MAAM,YAAY,QAAO,UAAS,KAAI,uBACvC,UAAAA,2BAAAA,IAACK,OAAAA,cAAA,CAAA,CAAa,EAAA,CAChB;AAAA,UAAA;AAAA,QAAA,IAEA;AAAA,QACH,WACCL,2BAAAA;AAAAA,UAACI,WAAAA;AAAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,SAAQ;AAAA,YACR,cAAW;AAAA,YACX,SAAS;AAAA,YAET,yCAACE,OAAAA,GAAA,CAAA,CAAE;AAAA,UAAA;AAAA,QAAA,IAEH;AAAA,MAAA,EAAA,CACN,IACE;AAAA,IAAA,GACN;AAAA,IACC,eAAe,OACdN,2BAAAA,IAAC,OAAE,WAAU,wDAAwD,uBAAY,IAC/E;AAAA,IACH,SAAS,MAAM,SAAS;AAAA;AAAA,qCAEtBO,SAAAA,UAAA,EACE,UAAA,MAAM,IAAI,CAAC,MAAM,MAChBP,2BAAAA;AAAAA,QAACQ,SAAAA;AAAAA,QAAA;AAAA,UAEC,OAAM;AAAA,UACN,SAAQ;AAAA,UACR,OAAO,KAAK;AAAA,UACZ,OAAO,KAAK;AAAA,QAAA;AAAA,QAJP;AAAA,MAAA,CAMR,EAAA,CACH;AAAA,QACE;AAAA,EAAA,GACN;AAEJ;;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Info, ExternalLink, X } from "lucide-react";
|
|
4
|
+
import { cn } from "../utils/cn.js";
|
|
5
|
+
import { IconButton } from "./iconButton.js";
|
|
6
|
+
import { MetaList, MetaRow } from "./metaItem.js";
|
|
7
|
+
const BOX = "flex flex-col gap-[8px] rounded-small bg-secondary-o10 p-[16px]";
|
|
8
|
+
function SelectedItemCard({
|
|
9
|
+
title,
|
|
10
|
+
description,
|
|
11
|
+
items,
|
|
12
|
+
isEmpty = false,
|
|
13
|
+
emptyMessage = "선택된 항목이 없습니다.",
|
|
14
|
+
onRemove,
|
|
15
|
+
detailHref,
|
|
16
|
+
detailLabel = "상세보기",
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}) {
|
|
20
|
+
if (isEmpty) {
|
|
21
|
+
return /* @__PURE__ */ jsx("div", { className: cn(BOX, className), ...props, children: /* @__PURE__ */ jsxs("div", { className: "flex h-[28px] items-center justify-center gap-[8px]", children: [
|
|
22
|
+
/* @__PURE__ */ jsx(Info, { "aria-hidden": true, className: "size-[20px] shrink-0 text-sys-text-subtler" }),
|
|
23
|
+
/* @__PURE__ */ jsx("span", { className: "text-base-medium text-sys-text-subtle", children: emptyMessage })
|
|
24
|
+
] }) });
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(BOX, className), ...props, children: [
|
|
27
|
+
/* @__PURE__ */ jsxs("div", { className: "flex h-[28px] items-center justify-between gap-[8px]", children: [
|
|
28
|
+
/* @__PURE__ */ jsx("p", { className: "min-w-0 truncate text-base-semibold text-sys-text-main", children: title }),
|
|
29
|
+
onRemove || detailHref ? /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-[8px]", children: [
|
|
30
|
+
detailHref ? /* @__PURE__ */ jsx(
|
|
31
|
+
IconButton,
|
|
32
|
+
{
|
|
33
|
+
asChild: true,
|
|
34
|
+
variant: "secondaryLink",
|
|
35
|
+
spacing: "compact",
|
|
36
|
+
"aria-label": detailLabel,
|
|
37
|
+
children: /* @__PURE__ */ jsx("a", { href: detailHref, target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ jsx(ExternalLink, {}) })
|
|
38
|
+
}
|
|
39
|
+
) : null,
|
|
40
|
+
onRemove ? /* @__PURE__ */ jsx(
|
|
41
|
+
IconButton,
|
|
42
|
+
{
|
|
43
|
+
variant: "secondaryLink",
|
|
44
|
+
spacing: "compact",
|
|
45
|
+
"aria-label": "선택 해제",
|
|
46
|
+
onClick: onRemove,
|
|
47
|
+
children: /* @__PURE__ */ jsx(X, {})
|
|
48
|
+
}
|
|
49
|
+
) : null
|
|
50
|
+
] }) : null
|
|
51
|
+
] }),
|
|
52
|
+
description != null ? /* @__PURE__ */ jsx("p", { className: "line-clamp-2 text-small-regular text-sys-text-subtle", children: description }) : null,
|
|
53
|
+
items && items.length > 0 ? (
|
|
54
|
+
// compact: 좌우 여백 0 이라 라벨 왼쪽 선이 제목 왼쪽 선과 맞는다
|
|
55
|
+
/* @__PURE__ */ jsx(MetaList, { children: items.map((item, i) => /* @__PURE__ */ jsx(
|
|
56
|
+
MetaRow,
|
|
57
|
+
{
|
|
58
|
+
align: "start",
|
|
59
|
+
spacing: "compact",
|
|
60
|
+
label: item.label,
|
|
61
|
+
value: item.value
|
|
62
|
+
},
|
|
63
|
+
i
|
|
64
|
+
)) })
|
|
65
|
+
) : null
|
|
66
|
+
] });
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
SelectedItemCard
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=selectedItemCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectedItemCard.js","sources":["../../src/components/selectedItemCard.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { ExternalLink, Info, X } from 'lucide-react'\n\nimport { cn } from '../utils/cn'\nimport { IconButton } from './iconButton'\nimport { MetaList, MetaRow } from './metaItem'\n\nexport interface SelectedItemCardItem {\n /** 속성 이름 */\n label: React.ReactNode\n /** 속성 값 */\n value: React.ReactNode\n}\n\nexport interface SelectedItemCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {\n /** 선택한 항목의 이름. `isEmpty` 면 쓰지 않는다 */\n title?: React.ReactNode\n /** 이름 아래 설명(최대 2줄) */\n description?: React.ReactNode\n /** 속성 목록(등록일·크기 …). 라벨 → 값 한 줄씩 */\n items?: SelectedItemCardItem[]\n /** 아무것도 고르지 않았을 때 true — 빈 상태 문구만 그린다 */\n isEmpty?: boolean\n /** 빈 상태 문구 */\n emptyMessage?: React.ReactNode\n /** 주면 제목 줄 오른쪽에 선택 해제(X) 버튼이 생긴다 */\n onRemove?: () => void\n /** 상세 화면 주소. 주면 제목 줄 오른쪽에 새 탭으로 여는 링크 버튼이 생긴다 */\n detailHref?: string\n /** 상세 링크 버튼의 접근성 이름 */\n detailLabel?: string\n}\n\n// 테두리 없는 연한 틴트 상자(secondary-o10, 표 머리줄과 같은 단계) — 흰 입력란·검토 패널과 다른 '보조 정보' 면으로 읽힌다. o05 는 흰 바탕에서 거의 안 보여 o10 으로 정함(2026-11-25 사용자 결정, dl-ui-v3 SelectedItemInfo 와 같음)\nconst BOX = 'flex flex-col gap-[8px] rounded-small bg-secondary-o10 p-[16px]'\n\n/**\n * Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.\n *\n * 언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).\n * 언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).\n * 대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.\n */\nfunction SelectedItemCard({\n title,\n description,\n items,\n isEmpty = false,\n emptyMessage = '선택된 항목이 없습니다.',\n onRemove,\n detailHref,\n detailLabel = '상세보기',\n className,\n ...props\n}: SelectedItemCardProps) {\n if (isEmpty) {\n return (\n <div className={cn(BOX, className)} {...props}>\n <div className='flex h-[28px] items-center justify-center gap-[8px]'>\n <Info aria-hidden className='size-[20px] shrink-0 text-sys-text-subtler' />\n <span className='text-base-medium text-sys-text-subtle'>{emptyMessage}</span>\n </div>\n </div>\n )\n }\n\n return (\n <div className={cn(BOX, className)} {...props}>\n {/* 제목 줄 높이 28 = compact 아이콘 버튼 높이 — 제목과 버튼이 같은 줄 가운데에 선다 */}\n <div className='flex h-[28px] items-center justify-between gap-[8px]'>\n <p className='min-w-0 truncate text-base-semibold text-sys-text-main'>{title}</p>\n {onRemove || detailHref ? (\n <div className='flex shrink-0 items-center gap-[8px]'>\n {detailHref ? (\n <IconButton\n asChild\n variant='secondaryLink'\n spacing='compact'\n aria-label={detailLabel}\n >\n <a href={detailHref} target='_blank' rel='noreferrer noopener'>\n <ExternalLink />\n </a>\n </IconButton>\n ) : null}\n {onRemove ? (\n <IconButton\n variant='secondaryLink'\n spacing='compact'\n aria-label='선택 해제'\n onClick={onRemove}\n >\n <X />\n </IconButton>\n ) : null}\n </div>\n ) : null}\n </div>\n {description != null ? (\n <p className='line-clamp-2 text-small-regular text-sys-text-subtle'>{description}</p>\n ) : null}\n {items && items.length > 0 ? (\n // compact: 좌우 여백 0 이라 라벨 왼쪽 선이 제목 왼쪽 선과 맞는다\n <MetaList>\n {items.map((item, i) => (\n <MetaRow\n key={i}\n align='start'\n spacing='compact'\n label={item.label}\n value={item.value}\n />\n ))}\n </MetaList>\n ) : null}\n </div>\n )\n}\n\nexport { SelectedItemCard }\n"],"names":[],"mappings":";;;;;;AAoCA,MAAM,MAAM;AASZ,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA,GAAG;AACL,GAA0B;AACxB,MAAI,SAAS;AACX,WACE,oBAAC,OAAA,EAAI,WAAW,GAAG,KAAK,SAAS,GAAI,GAAG,OACtC,UAAA,qBAAC,OAAA,EAAI,WAAU,uDACb,UAAA;AAAA,MAAA,oBAAC,MAAA,EAAK,eAAW,MAAC,WAAU,8CAA6C;AAAA,MACzE,oBAAC,QAAA,EAAK,WAAU,yCAAyC,UAAA,aAAA,CAAa;AAAA,IAAA,EAAA,CACxE,EAAA,CACF;AAAA,EAEJ;AAEA,SACE,qBAAC,SAAI,WAAW,GAAG,KAAK,SAAS,GAAI,GAAG,OAEtC,UAAA;AAAA,IAAA,qBAAC,OAAA,EAAI,WAAU,wDACb,UAAA;AAAA,MAAA,oBAAC,KAAA,EAAE,WAAU,0DAA0D,UAAA,OAAM;AAAA,MAC5E,YAAY,aACX,qBAAC,OAAA,EAAI,WAAU,wCACZ,UAAA;AAAA,QAAA,aACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAO;AAAA,YACP,SAAQ;AAAA,YACR,SAAQ;AAAA,YACR,cAAY;AAAA,YAEZ,UAAA,oBAAC,KAAA,EAAE,MAAM,YAAY,QAAO,UAAS,KAAI,uBACvC,UAAA,oBAAC,cAAA,CAAA,CAAa,EAAA,CAChB;AAAA,UAAA;AAAA,QAAA,IAEA;AAAA,QACH,WACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,SAAQ;AAAA,YACR,cAAW;AAAA,YACX,SAAS;AAAA,YAET,8BAAC,GAAA,CAAA,CAAE;AAAA,UAAA;AAAA,QAAA,IAEH;AAAA,MAAA,EAAA,CACN,IACE;AAAA,IAAA,GACN;AAAA,IACC,eAAe,OACd,oBAAC,OAAE,WAAU,wDAAwD,uBAAY,IAC/E;AAAA,IACH,SAAS,MAAM,SAAS;AAAA;AAAA,0BAEtB,UAAA,EACE,UAAA,MAAM,IAAI,CAAC,MAAM,MAChB;AAAA,QAAC;AAAA,QAAA;AAAA,UAEC,OAAM;AAAA,UACN,SAAQ;AAAA,UACR,OAAO,KAAK;AAAA,UACZ,OAAO,KAAK;AAAA,QAAA;AAAA,QAJP;AAAA,MAAA,CAMR,EAAA,CACH;AAAA,QACE;AAAA,EAAA,GACN;AAEJ;"}
|
package/dist/index.cjs
CHANGED
|
@@ -37,6 +37,7 @@ const pageHeaderRefreshButton = require("./components/pageHeaderRefreshButton.cj
|
|
|
37
37
|
const popover = require("./components/popover.cjs");
|
|
38
38
|
const pagination = require("./components/pagination.cjs");
|
|
39
39
|
const panel = require("./components/panel.cjs");
|
|
40
|
+
const selectedItemCard = require("./components/selectedItemCard.cjs");
|
|
40
41
|
const progress = require("./components/progress.cjs");
|
|
41
42
|
const radio = require("./components/radio.cjs");
|
|
42
43
|
const radioGroup = require("./components/radioGroup.cjs");
|
|
@@ -228,6 +229,7 @@ exports.PaginationPrevious = pagination.PaginationPrevious;
|
|
|
228
229
|
exports.PaginationWrapper = pagination.PaginationWrapper;
|
|
229
230
|
exports.getPaginationRange = pagination.getPaginationRange;
|
|
230
231
|
exports.Panel = panel.Panel;
|
|
232
|
+
exports.SelectedItemCard = selectedItemCard.SelectedItemCard;
|
|
231
233
|
exports.Progress = progress.Progress;
|
|
232
234
|
exports.Radio = radio.Radio;
|
|
233
235
|
exports.RadioGroup = radioGroup.RadioGroup;
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1015,6 +1015,8 @@ interface MetaRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1015
1015
|
* 2026-10-18 9차: 예제·스킬·스토리에서 뺐다 — 개발용 8차 심판이 패널 안 크기 차이를 "불균일"로 읽어 감점(타이포 3쌍·컴포넌트 2쌍). KPI 띠 같은 전용 자리가 생기기 전엔 기본으로 쓰지 않는다
|
|
1016
1016
|
*/
|
|
1017
1017
|
emphasis?: boolean;
|
|
1018
|
+
/** 행 밀도. `normal`(기본) = 48px 행 + 구분선. `compact` = 28px 행, 구분선·좌우 여백 없음 — 틴트 카드 안처럼 상자 여백이 이미 있는 촘촘한 목록(SelectedItemCard) */
|
|
1019
|
+
spacing?: 'normal' | 'compact';
|
|
1018
1020
|
}
|
|
1019
1021
|
/**
|
|
1020
1022
|
* PageHeader 등의 메타 항목(`MetaItem`)들을 가로로 나열하는 컨테이너.
|
|
@@ -1023,7 +1025,7 @@ interface MetaRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1023
1025
|
* 벌어졌다(2026-11-06 사용자 지적, 홀드아웃 17~19 심판 "metadata spread across very wide columns"). dl-ui-v3 상세 화면과 같은 모양
|
|
1024
1026
|
*/
|
|
1025
1027
|
declare function MetaGroup({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1026
|
-
declare function MetaRow({ label, value, slotBefore, slotAfter, align, emphasis, className, ...props }: MetaRowProps): react_jsx_runtime.JSX.Element;
|
|
1028
|
+
declare function MetaRow({ label, value, slotBefore, slotAfter, align, emphasis, spacing, className, ...props }: MetaRowProps): react_jsx_runtime.JSX.Element;
|
|
1027
1029
|
interface MetaListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1028
1030
|
/** 열 수(기본 1 = 세로 한 줄씩). 2 이상이면 행을 격자로 흘린다(md 2열, xl 부터 지정 열) — 전폭 본문 카드처럼 넓은 자리의 키-값 격자. 행은 `MetaRow align='start'` */
|
|
1029
1031
|
columns?: 1 | 2 | 3 | 4;
|
|
@@ -1194,6 +1196,39 @@ interface PanelProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'>
|
|
|
1194
1196
|
*/
|
|
1195
1197
|
declare function Panel({ title, description, level, titleRight, note, footer, padding, appearance, className, children, ...props }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
1196
1198
|
|
|
1199
|
+
interface SelectedItemCardItem {
|
|
1200
|
+
/** 속성 이름 */
|
|
1201
|
+
label: React$1.ReactNode;
|
|
1202
|
+
/** 속성 값 */
|
|
1203
|
+
value: React$1.ReactNode;
|
|
1204
|
+
}
|
|
1205
|
+
interface SelectedItemCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
1206
|
+
/** 선택한 항목의 이름. `isEmpty` 면 쓰지 않는다 */
|
|
1207
|
+
title?: React$1.ReactNode;
|
|
1208
|
+
/** 이름 아래 설명(최대 2줄) */
|
|
1209
|
+
description?: React$1.ReactNode;
|
|
1210
|
+
/** 속성 목록(등록일·크기 …). 라벨 → 값 한 줄씩 */
|
|
1211
|
+
items?: SelectedItemCardItem[];
|
|
1212
|
+
/** 아무것도 고르지 않았을 때 true — 빈 상태 문구만 그린다 */
|
|
1213
|
+
isEmpty?: boolean;
|
|
1214
|
+
/** 빈 상태 문구 */
|
|
1215
|
+
emptyMessage?: React$1.ReactNode;
|
|
1216
|
+
/** 주면 제목 줄 오른쪽에 선택 해제(X) 버튼이 생긴다 */
|
|
1217
|
+
onRemove?: () => void;
|
|
1218
|
+
/** 상세 화면 주소. 주면 제목 줄 오른쪽에 새 탭으로 여는 링크 버튼이 생긴다 */
|
|
1219
|
+
detailHref?: string;
|
|
1220
|
+
/** 상세 링크 버튼의 접근성 이름 */
|
|
1221
|
+
detailLabel?: string;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.
|
|
1225
|
+
*
|
|
1226
|
+
* 언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).
|
|
1227
|
+
* 언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).
|
|
1228
|
+
* 대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.
|
|
1229
|
+
*/
|
|
1230
|
+
declare function SelectedItemCard({ title, description, items, isEmpty, emptyMessage, onRemove, detailHref, detailLabel, className, ...props }: SelectedItemCardProps): react_jsx_runtime.JSX.Element;
|
|
1231
|
+
|
|
1197
1232
|
interface ParameterTableRow {
|
|
1198
1233
|
id: string;
|
|
1199
1234
|
values: Record<string, string>;
|
|
@@ -1560,8 +1595,8 @@ declare function useMultiSelectContext(): MultiSelectContextValue;
|
|
|
1560
1595
|
/**
|
|
1561
1596
|
* 드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.
|
|
1562
1597
|
*
|
|
1563
|
-
* 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.
|
|
1564
|
-
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).
|
|
1598
|
+
* 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.
|
|
1599
|
+
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).
|
|
1565
1600
|
* 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.
|
|
1566
1601
|
*/
|
|
1567
1602
|
declare function Select({ value: controlledValue, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled, className, children, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2830,4 +2865,4 @@ interface UseFloatingLabelReturn {
|
|
|
2830
2865
|
}
|
|
2831
2866
|
declare function useFloatingLabel(options: UseFloatingLabelOptions): UseFloatingLabelReturn;
|
|
2832
2867
|
|
|
2833
|
-
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
|
2868
|
+
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, SelectedItemCard, type SelectedItemCardItem, type SelectedItemCardProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1015,6 +1015,8 @@ interface MetaRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1015
1015
|
* 2026-10-18 9차: 예제·스킬·스토리에서 뺐다 — 개발용 8차 심판이 패널 안 크기 차이를 "불균일"로 읽어 감점(타이포 3쌍·컴포넌트 2쌍). KPI 띠 같은 전용 자리가 생기기 전엔 기본으로 쓰지 않는다
|
|
1016
1016
|
*/
|
|
1017
1017
|
emphasis?: boolean;
|
|
1018
|
+
/** 행 밀도. `normal`(기본) = 48px 행 + 구분선. `compact` = 28px 행, 구분선·좌우 여백 없음 — 틴트 카드 안처럼 상자 여백이 이미 있는 촘촘한 목록(SelectedItemCard) */
|
|
1019
|
+
spacing?: 'normal' | 'compact';
|
|
1018
1020
|
}
|
|
1019
1021
|
/**
|
|
1020
1022
|
* PageHeader 등의 메타 항목(`MetaItem`)들을 가로로 나열하는 컨테이너.
|
|
@@ -1023,7 +1025,7 @@ interface MetaRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1023
1025
|
* 벌어졌다(2026-11-06 사용자 지적, 홀드아웃 17~19 심판 "metadata spread across very wide columns"). dl-ui-v3 상세 화면과 같은 모양
|
|
1024
1026
|
*/
|
|
1025
1027
|
declare function MetaGroup({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1026
|
-
declare function MetaRow({ label, value, slotBefore, slotAfter, align, emphasis, className, ...props }: MetaRowProps): react_jsx_runtime.JSX.Element;
|
|
1028
|
+
declare function MetaRow({ label, value, slotBefore, slotAfter, align, emphasis, spacing, className, ...props }: MetaRowProps): react_jsx_runtime.JSX.Element;
|
|
1027
1029
|
interface MetaListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1028
1030
|
/** 열 수(기본 1 = 세로 한 줄씩). 2 이상이면 행을 격자로 흘린다(md 2열, xl 부터 지정 열) — 전폭 본문 카드처럼 넓은 자리의 키-값 격자. 행은 `MetaRow align='start'` */
|
|
1029
1031
|
columns?: 1 | 2 | 3 | 4;
|
|
@@ -1194,6 +1196,39 @@ interface PanelProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'>
|
|
|
1194
1196
|
*/
|
|
1195
1197
|
declare function Panel({ title, description, level, titleRight, note, footer, padding, appearance, className, children, ...props }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
1196
1198
|
|
|
1199
|
+
interface SelectedItemCardItem {
|
|
1200
|
+
/** 속성 이름 */
|
|
1201
|
+
label: React$1.ReactNode;
|
|
1202
|
+
/** 속성 값 */
|
|
1203
|
+
value: React$1.ReactNode;
|
|
1204
|
+
}
|
|
1205
|
+
interface SelectedItemCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
1206
|
+
/** 선택한 항목의 이름. `isEmpty` 면 쓰지 않는다 */
|
|
1207
|
+
title?: React$1.ReactNode;
|
|
1208
|
+
/** 이름 아래 설명(최대 2줄) */
|
|
1209
|
+
description?: React$1.ReactNode;
|
|
1210
|
+
/** 속성 목록(등록일·크기 …). 라벨 → 값 한 줄씩 */
|
|
1211
|
+
items?: SelectedItemCardItem[];
|
|
1212
|
+
/** 아무것도 고르지 않았을 때 true — 빈 상태 문구만 그린다 */
|
|
1213
|
+
isEmpty?: boolean;
|
|
1214
|
+
/** 빈 상태 문구 */
|
|
1215
|
+
emptyMessage?: React$1.ReactNode;
|
|
1216
|
+
/** 주면 제목 줄 오른쪽에 선택 해제(X) 버튼이 생긴다 */
|
|
1217
|
+
onRemove?: () => void;
|
|
1218
|
+
/** 상세 화면 주소. 주면 제목 줄 오른쪽에 새 탭으로 여는 링크 버튼이 생긴다 */
|
|
1219
|
+
detailHref?: string;
|
|
1220
|
+
/** 상세 링크 버튼의 접근성 이름 */
|
|
1221
|
+
detailLabel?: string;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.
|
|
1225
|
+
*
|
|
1226
|
+
* 언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).
|
|
1227
|
+
* 언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).
|
|
1228
|
+
* 대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.
|
|
1229
|
+
*/
|
|
1230
|
+
declare function SelectedItemCard({ title, description, items, isEmpty, emptyMessage, onRemove, detailHref, detailLabel, className, ...props }: SelectedItemCardProps): react_jsx_runtime.JSX.Element;
|
|
1231
|
+
|
|
1197
1232
|
interface ParameterTableRow {
|
|
1198
1233
|
id: string;
|
|
1199
1234
|
values: Record<string, string>;
|
|
@@ -1560,8 +1595,8 @@ declare function useMultiSelectContext(): MultiSelectContextValue;
|
|
|
1560
1595
|
/**
|
|
1561
1596
|
* 드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.
|
|
1562
1597
|
*
|
|
1563
|
-
* 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.
|
|
1564
|
-
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).
|
|
1598
|
+
* 언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.
|
|
1599
|
+
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).
|
|
1565
1600
|
* 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.
|
|
1566
1601
|
*/
|
|
1567
1602
|
declare function Select({ value: controlledValue, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled, className, children, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2830,4 +2865,4 @@ interface UseFloatingLabelReturn {
|
|
|
2830
2865
|
}
|
|
2831
2866
|
declare function useFloatingLabel(options: UseFloatingLabelOptions): UseFloatingLabelReturn;
|
|
2832
2867
|
|
|
2833
|
-
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
|
2868
|
+
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, SelectedItemCard, type SelectedItemCardItem, type SelectedItemCardProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ import { PageHeaderRefreshButton } from "./components/pageHeaderRefreshButton.js
|
|
|
35
35
|
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/popover.js";
|
|
36
36
|
import { Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, getPaginationRange } from "./components/pagination.js";
|
|
37
37
|
import { Panel } from "./components/panel.js";
|
|
38
|
+
import { SelectedItemCard } from "./components/selectedItemCard.js";
|
|
38
39
|
import { Progress } from "./components/progress.js";
|
|
39
40
|
import { Radio } from "./components/radio.js";
|
|
40
41
|
import { RadioGroup, RadioGroupItem } from "./components/radioGroup.js";
|
|
@@ -265,6 +266,7 @@ export {
|
|
|
265
266
|
SelectSeparator2 as SelectSeparator,
|
|
266
267
|
SelectTrigger,
|
|
267
268
|
SelectValue,
|
|
269
|
+
SelectedItemCard,
|
|
268
270
|
Separator,
|
|
269
271
|
Sidebar,
|
|
270
272
|
SidebarContent,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -13765,11 +13765,11 @@
|
|
|
13765
13765
|
"name": "Select",
|
|
13766
13766
|
"path": "./src/stories/Select/Select.stories.tsx",
|
|
13767
13767
|
"jsDocTags": {},
|
|
13768
|
-
"description": "드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.\n\n언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.\n언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).\n대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.",
|
|
13768
|
+
"description": "드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.\n\n언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.\n언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).\n대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.",
|
|
13769
13769
|
"reactDocgenTypescript": {
|
|
13770
13770
|
"tags": {},
|
|
13771
13771
|
"filePath": "src/components/select/index.tsx",
|
|
13772
|
-
"description": "드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.\n\n언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.\n언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).\n대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.",
|
|
13772
|
+
"description": "드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.\n\n언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.\n언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).\n대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.",
|
|
13773
13773
|
"displayName": "Select",
|
|
13774
13774
|
"methods": [],
|
|
13775
13775
|
"props": {
|
|
@@ -14699,6 +14699,204 @@
|
|
|
14699
14699
|
],
|
|
14700
14700
|
"import": "import {\n Select,\n SelectContent,\n SelectEmpty,\n SelectGroup,\n SelectInput,\n SelectItem,\n SelectLoading,\n SelectRadioGroup,\n SelectRadioItem,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n} from '@t3q-ui/design-system';"
|
|
14701
14701
|
},
|
|
14702
|
+
"components-data-display-selecteditemcard": {
|
|
14703
|
+
"id": "components-data-display-selecteditemcard",
|
|
14704
|
+
"name": "SelectedItemCard",
|
|
14705
|
+
"path": "./src/stories/SelectedItemCard/SelectedItemCard.stories.tsx",
|
|
14706
|
+
"jsDocTags": {},
|
|
14707
|
+
"description": "Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.\n\n언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).\n언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).\n대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.",
|
|
14708
|
+
"reactDocgenTypescript": {
|
|
14709
|
+
"tags": {},
|
|
14710
|
+
"filePath": "src/components/selectedItemCard.tsx",
|
|
14711
|
+
"description": "Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.\n\n언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).\n언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).\n대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.",
|
|
14712
|
+
"displayName": "SelectedItemCard",
|
|
14713
|
+
"methods": [],
|
|
14714
|
+
"props": {
|
|
14715
|
+
"title": {
|
|
14716
|
+
"defaultValue": null,
|
|
14717
|
+
"description": "선택한 항목의 이름. `isEmpty` 면 쓰지 않는다",
|
|
14718
|
+
"name": "title",
|
|
14719
|
+
"parent": {
|
|
14720
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14721
|
+
"name": "SelectedItemCardProps"
|
|
14722
|
+
},
|
|
14723
|
+
"declarations": [
|
|
14724
|
+
{
|
|
14725
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14726
|
+
"name": "SelectedItemCardProps"
|
|
14727
|
+
}
|
|
14728
|
+
],
|
|
14729
|
+
"required": false,
|
|
14730
|
+
"type": {
|
|
14731
|
+
"name": "ReactNode"
|
|
14732
|
+
}
|
|
14733
|
+
},
|
|
14734
|
+
"description": {
|
|
14735
|
+
"defaultValue": null,
|
|
14736
|
+
"description": "이름 아래 설명(최대 2줄)",
|
|
14737
|
+
"name": "description",
|
|
14738
|
+
"parent": {
|
|
14739
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14740
|
+
"name": "SelectedItemCardProps"
|
|
14741
|
+
},
|
|
14742
|
+
"declarations": [
|
|
14743
|
+
{
|
|
14744
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14745
|
+
"name": "SelectedItemCardProps"
|
|
14746
|
+
}
|
|
14747
|
+
],
|
|
14748
|
+
"required": false,
|
|
14749
|
+
"type": {
|
|
14750
|
+
"name": "ReactNode"
|
|
14751
|
+
}
|
|
14752
|
+
},
|
|
14753
|
+
"items": {
|
|
14754
|
+
"defaultValue": null,
|
|
14755
|
+
"description": "속성 목록(등록일·크기 …). 라벨 → 값 한 줄씩",
|
|
14756
|
+
"name": "items",
|
|
14757
|
+
"parent": {
|
|
14758
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14759
|
+
"name": "SelectedItemCardProps"
|
|
14760
|
+
},
|
|
14761
|
+
"declarations": [
|
|
14762
|
+
{
|
|
14763
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14764
|
+
"name": "SelectedItemCardProps"
|
|
14765
|
+
}
|
|
14766
|
+
],
|
|
14767
|
+
"required": false,
|
|
14768
|
+
"type": {
|
|
14769
|
+
"name": "SelectedItemCardItem[]"
|
|
14770
|
+
}
|
|
14771
|
+
},
|
|
14772
|
+
"isEmpty": {
|
|
14773
|
+
"defaultValue": {
|
|
14774
|
+
"value": "false"
|
|
14775
|
+
},
|
|
14776
|
+
"description": "아무것도 고르지 않았을 때 true — 빈 상태 문구만 그린다",
|
|
14777
|
+
"name": "isEmpty",
|
|
14778
|
+
"parent": {
|
|
14779
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14780
|
+
"name": "SelectedItemCardProps"
|
|
14781
|
+
},
|
|
14782
|
+
"declarations": [
|
|
14783
|
+
{
|
|
14784
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14785
|
+
"name": "SelectedItemCardProps"
|
|
14786
|
+
}
|
|
14787
|
+
],
|
|
14788
|
+
"required": false,
|
|
14789
|
+
"type": {
|
|
14790
|
+
"name": "boolean"
|
|
14791
|
+
}
|
|
14792
|
+
},
|
|
14793
|
+
"emptyMessage": {
|
|
14794
|
+
"defaultValue": {
|
|
14795
|
+
"value": "선택된 항목이 없습니다."
|
|
14796
|
+
},
|
|
14797
|
+
"description": "빈 상태 문구",
|
|
14798
|
+
"name": "emptyMessage",
|
|
14799
|
+
"parent": {
|
|
14800
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14801
|
+
"name": "SelectedItemCardProps"
|
|
14802
|
+
},
|
|
14803
|
+
"declarations": [
|
|
14804
|
+
{
|
|
14805
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14806
|
+
"name": "SelectedItemCardProps"
|
|
14807
|
+
}
|
|
14808
|
+
],
|
|
14809
|
+
"required": false,
|
|
14810
|
+
"type": {
|
|
14811
|
+
"name": "ReactNode"
|
|
14812
|
+
}
|
|
14813
|
+
},
|
|
14814
|
+
"onRemove": {
|
|
14815
|
+
"defaultValue": null,
|
|
14816
|
+
"description": "주면 제목 줄 오른쪽에 선택 해제(X) 버튼이 생긴다",
|
|
14817
|
+
"name": "onRemove",
|
|
14818
|
+
"parent": {
|
|
14819
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14820
|
+
"name": "SelectedItemCardProps"
|
|
14821
|
+
},
|
|
14822
|
+
"declarations": [
|
|
14823
|
+
{
|
|
14824
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14825
|
+
"name": "SelectedItemCardProps"
|
|
14826
|
+
}
|
|
14827
|
+
],
|
|
14828
|
+
"required": false,
|
|
14829
|
+
"type": {
|
|
14830
|
+
"name": "(() => void)"
|
|
14831
|
+
}
|
|
14832
|
+
},
|
|
14833
|
+
"detailHref": {
|
|
14834
|
+
"defaultValue": null,
|
|
14835
|
+
"description": "상세 화면 주소. 주면 제목 줄 오른쪽에 새 탭으로 여는 링크 버튼이 생긴다",
|
|
14836
|
+
"name": "detailHref",
|
|
14837
|
+
"parent": {
|
|
14838
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14839
|
+
"name": "SelectedItemCardProps"
|
|
14840
|
+
},
|
|
14841
|
+
"declarations": [
|
|
14842
|
+
{
|
|
14843
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14844
|
+
"name": "SelectedItemCardProps"
|
|
14845
|
+
}
|
|
14846
|
+
],
|
|
14847
|
+
"required": false,
|
|
14848
|
+
"type": {
|
|
14849
|
+
"name": "string"
|
|
14850
|
+
}
|
|
14851
|
+
},
|
|
14852
|
+
"detailLabel": {
|
|
14853
|
+
"defaultValue": {
|
|
14854
|
+
"value": "상세보기"
|
|
14855
|
+
},
|
|
14856
|
+
"description": "상세 링크 버튼의 접근성 이름",
|
|
14857
|
+
"name": "detailLabel",
|
|
14858
|
+
"parent": {
|
|
14859
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14860
|
+
"name": "SelectedItemCardProps"
|
|
14861
|
+
},
|
|
14862
|
+
"declarations": [
|
|
14863
|
+
{
|
|
14864
|
+
"fileName": "src/components/selectedItemCard.tsx",
|
|
14865
|
+
"name": "SelectedItemCardProps"
|
|
14866
|
+
}
|
|
14867
|
+
],
|
|
14868
|
+
"required": false,
|
|
14869
|
+
"type": {
|
|
14870
|
+
"name": "string"
|
|
14871
|
+
}
|
|
14872
|
+
}
|
|
14873
|
+
},
|
|
14874
|
+
"exportName": "SelectedItemCard"
|
|
14875
|
+
},
|
|
14876
|
+
"stories": [
|
|
14877
|
+
{
|
|
14878
|
+
"id": "components-data-display-selecteditemcard--playground",
|
|
14879
|
+
"name": "Playground",
|
|
14880
|
+
"snippet": "const Playground = () => <SelectedItemCard\n title=\"resnet-classifier\"\n items={[\n { label: '문제 유형', value: '이미지 분류' },\n { label: '실행 환경', value: 'torch-2.1-cuda12' },\n { label: '등록일시', value: '2026-11-25 14:23' },\n ]} />;"
|
|
14881
|
+
},
|
|
14882
|
+
{
|
|
14883
|
+
"id": "components-data-display-selecteditemcard--with-actions",
|
|
14884
|
+
"name": "상세 링크 + 선택 해제",
|
|
14885
|
+
"snippet": "const WithActions = () => <SelectedItemCard\n title=\"resnet-classifier\"\n items={[\n { label: '문제 유형', value: '이미지 분류' },\n { label: '실행 환경', value: 'torch-2.1-cuda12' },\n { label: '등록일시', value: '2026-11-25 14:23' },\n ]}\n detailHref=\"#\"\n detailLabel=\"AI 알고리즘 상세보기\"\n onRemove={() => {}} />;"
|
|
14886
|
+
},
|
|
14887
|
+
{
|
|
14888
|
+
"id": "components-data-display-selecteditemcard--empty",
|
|
14889
|
+
"name": "빈 상태",
|
|
14890
|
+
"snippet": "const Empty = () => <SelectedItemCard\n title=\"resnet-classifier\"\n items={[\n { label: '문제 유형', value: '이미지 분류' },\n { label: '실행 환경', value: 'torch-2.1-cuda12' },\n { label: '등록일시', value: '2026-11-25 14:23' },\n ]}\n isEmpty\n emptyMessage=\"선택된 AI 알고리즘이 없습니다.\" />;"
|
|
14891
|
+
},
|
|
14892
|
+
{
|
|
14893
|
+
"id": "components-data-display-selecteditemcard--with-select",
|
|
14894
|
+
"name": "Select 와 함께 — 검색 + 항목 속성 + 선택 카드",
|
|
14895
|
+
"snippet": "const WithSelect = () => {\n const [value, setValue] = React.useState('')\n const [query, setQuery] = React.useState('')\n // 목록 조회(서버 검색·무한 스크롤)는 앱이 한다 — 여기서는 클라이언트 필터로 대신한다\n const shown = ALGOS.filter((a) => a.name.includes(query))\n const picked = ALGOS.find((a) => a.id === value)\n return (\n <div className='flex flex-col gap-[8px]'>\n <Select value={value} onValueChange={setValue} onOpenChange={(o) => !o && setQuery('')}>\n <SelectTrigger label='AI 알고리즘'>\n <SelectValue placeholder='AI 알고리즘을 선택해주세요.' />\n </SelectTrigger>\n <SelectContent>\n <SelectInput onChange={setQuery} placeholder='이름으로 검색' />\n {shown.map((a) => (\n <SelectItem\n key={a.id}\n value={a.id}\n textValue={a.name}\n elemAfter={a.model ? <Tag variant='info'>모형</Tag> : undefined}\n meta={[\n { label: '문제 유형', value: a.category },\n { label: '실행 환경', value: a.env },\n ]}\n >\n {a.name}\n </SelectItem>\n ))}\n <SelectEmpty>일치하는 AI 알고리즘이 없습니다.</SelectEmpty>\n </SelectContent>\n </Select>\n <SelectedItemCard\n isEmpty={!picked}\n emptyMessage='선택된 AI 알고리즘이 없습니다.'\n title={picked?.name}\n items={\n picked\n ? [\n { label: '문제 유형', value: picked.category },\n { label: '실행 환경', value: picked.env },\n ]\n : undefined\n }\n detailHref='#'\n detailLabel='AI 알고리즘 상세보기'\n onRemove={() => setValue('')}\n />\n </div>\n )\n};"
|
|
14896
|
+
}
|
|
14897
|
+
],
|
|
14898
|
+
"import": "import {\n Select,\n SelectContent,\n SelectedItemCard,\n SelectEmpty,\n SelectInput,\n SelectItem,\n SelectTrigger,\n SelectValue,\n Tag,\n} from '@t3q-ui/design-system';"
|
|
14899
|
+
},
|
|
14702
14900
|
"components-layout-separator": {
|
|
14703
14901
|
"id": "components-layout-separator",
|
|
14704
14902
|
"name": "Separator",
|
package/package.json
CHANGED
package/skills/tds/SKILL.md
CHANGED
|
@@ -73,6 +73,7 @@ license: Proprietary. See LICENSE.md in the @t3q-ui/design-system package
|
|
|
73
73
|
- 주요 행동 버튼(생성·등록)은 `ListPage actions` 에 둔다 — 패턴이 제목 줄 오른쪽에 놓는다(직접 필터 슬롯이나 `titleRight` 에 넣지 않는다). `PageHeader actions` 도 제목 줄 오른쪽(탭이 있어도 같다, 2026-10-19 14차).
|
|
74
74
|
- **제목 옆 `titleRight` 에는 정보가 있는 것만 — 모든 패턴(ListPage·DetailPage·FormPage·DashboardLayout·PageHeader)과 `Panel` 공통.** `Panel titleRight` 는 "전체 보기" 같은 링크 버튼만 — 카드 제목 옆에 Tag("이미지 분류")·아이콘(trophy·flask)·Badge 를 두지 않는다(2026-11-08 홀드아웃 22, Codex 상세 2 run). 목록·대시보드는 `PageHeaderRefreshButton`, 상세의 상태는 `status` 슬롯, 핵심 정보는 `meta`. **폼은 비워 둔다**(새로고침할 것이 없다) — 유형("Reservation")·상태·변경 건수 `Badge` 를 두지 않는다. 화면 분류 이름("프로젝트 자원 관리")·"새 요청" 같은 장식 `Tag`·`Badge`·글자, 보기 전환 `ToggleGroup` 도 두지 않는다 — 심판이 "버튼 규칙과 다른 작은 버튼"·"길 잃은 breadcrumb"·"unclear" 로 읽었다(2026-11-06 홀드아웃 17·19~21 폼·상세).
|
|
75
75
|
- **유형·방식 선택(소스 유형·공개 범위·입력 방식처럼 선택지 2개 이상에 제목·설명이 붙는 것)은 `RadioSectionGroup` + `RadioSection`(카드형)** 으로 — dl-ui-v3 의 관례(21곳). 배치는 그룹이 개수로 정한다: 1~3개 한 줄, **4개는 2×2, 5개 이상은 세로 쌓기**(카드 안은 제목 · 설명 가로) — `className` 으로 grid 를 직접 짜지 않는다. 설명 없는 짧은 선택(예·아니오)만 `RadioGroup`, 선택지 7개 이상·검색이 필요하면 `Select`. **복수 선택에 제목·설명이 붙으면 `CheckboxSectionGroup` + `CheckboxSection`**(알림 채널), 설명 없는 짧은 옵션만 `Checkbox`. **켜기/끄기 하나의 설정(규칙 사용, 실패 시 알림, 노트북 지원)은 `SwitchSection`**(박스 + 제목·설명 + Switch, dl-ui-v3 ToggleField 관례) — 폼 제출값이어도 Checkbox 로 만들지 않는다. 예제 form-page.tsx 의 스케줄 선택(RadioSectionGroup)과 실패 알림(SwitchSection)이 본보기(`FormLabel id` + 그룹 `aria-labelledby`).
|
|
76
|
+
- **목록에서 리소스 하나를 고르는 필드(AI 알고리즘·데이터셋처럼 건수가 많은 것)는 `Select` + `SelectInput` 검색(서버 검색·무한 스크롤은 앱이 구현) + 항목 속성은 `SelectItem meta`, 고른 뒤 속성·상세 링크는 Select 바로 아래 8px 에 `SelectedItemCard`** — '선택' 버튼 + Drawer 표로 만들지 않는다. Drawer 표는 여러 열을 비교하며 고르거나 2단계로 고를 때만(dl-ui-v3 관례, 2026-11-25 사용자 결정).
|
|
76
77
|
- 버튼 묶음 사이 간격은 8px. PageHeader·Dialog·Drawer·Form 의 버튼 슬롯이 이미 그렇게 그린다.
|
|
77
78
|
- **상태 표시는 `Badge` 에 아이콘 + 글자** — `<Badge variant='success'><LucideIcon iconComponentName='circle-check' />완료</Badge>`. 아이콘은 Badge 의 자식으로 바로 넣고(Badge 가 16px·글자색으로 맞춘다), 크기는 기본(`size` 를 주지 않는다 — 건수 뱃지와 같은 20px). **별도 상태 컴포넌트·래퍼를 만들지 않는다**(2026-10-30 사용자 결정 — 예전의 상태 전용 래퍼는 크기·여백이 달라 태그인지 뱃지인지 모를 부품이 됐다). 상태값 → `variant`·아이콘 매핑은 상수 한 곳에. **어휘**: 작업·노트북·파이프라인·서버처럼 돌아가는 프로세스의 '실행 중' `primary` + `play`(▶), 활성·사용 중·감시 중·허용·연결됨 같은 켜진 상태 `primary` + `circle-dot`(●) — ▶ 를 켜진 상태에 붙이면 재생 버튼처럼 읽힌다(2026-10-21 18차), 완료·준비됨 `success` + `circle-check`(✓) — 실행 중에 ✓ 를 붙이면 끝난 것으로 읽힌다(2026-10-20 17차), 학습 중·배포 중처럼 끝이 있는 진행 `info` + `loader-circle`(정적 아이콘 — 스피너는 정지 화면에서 점 뭉치로 보인다), 대기 `secondary` + `clock`, 중지·비활성 `secondary` + `circle-pause`, 실패 `danger` + `circle-x`, 경고·알림 발생 `warning` + `triangle-alert`. **한 화면에 같은 variant 의 상태 둘을 두지 않는다** — '준비됨'(`success` ✓)과 '사용 중'(`primary` ●)처럼 상태마다 색이 달라야 한다(2026-10-21 19차 "two different states look the same"). 기본은 연한 색 채움(`appearance` 를 주지 않는다 — 2026-10-18 10차). **lucide 이름은 정식 이름만**(`circle-pause`·`loader-circle`·`triangle-alert`; 옛 alias `pause-circle` 같은 것은 쓰지 않는다). 같은 화면의 상태 뱃지는 **전부 아이콘이 있게** — 섞이면 심사자가 불일치로 본다. 색은 `variant` 로 정하고 `className` 으로 덧씌우지 않는다.
|
|
78
79
|
- **주요 행동 버튼에는 lucide 아이콘**을 글자 앞에 붙인다 — 생성 `plus`, 삭제 `trash-2`, 중지 `square`, 배포 `rocket`, 다시 시도 `refresh-cw`, 내보내기 `download`(`<Button variant='primaryBold'><LucideIcon iconComponentName='plus' /> 생성</Button>`). **버튼 안 아이콘에는 `size` 를 주지 않는다** — 글자 있는 `Button`·아이콘만 있는 `IconButton`·메뉴 항목이 아이콘을 모두 20px 로 맞춘다(`LucideIcon` 기본 16px 은 뱃지·표·글자 옆 크기). **`IconButton` 의 크기는 `spacing` 이 정한다** — `normal` 36×36(높이 36 인 입력란·버튼 옆의 검색 돋보기·더보기), `compact` 28×28(표 행·카드 모서리). 아이콘 없는 글자 버튼만 늘어놓지 않는다.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# TDS 컴포넌트·패턴 참조 (생성물)
|
|
2
2
|
|
|
3
|
-
`scripts/mcp/build-skill-reference.mjs` 가 Storybook 매니페스트에서 만든다 — **손으로 고치지 않는다**.
|
|
3
|
+
`scripts/mcp/build-skill-reference.mjs` 가 Storybook 매니페스트에서 만든다 — **손으로 고치지 않는다**. 72개(패턴 9 · 컴포넌트 63).
|
|
4
4
|
MCP `docs-list` / `docs-show <id>` / `docs-show-story` 와 같은 내용이다. 패턴은 `@t3q-ui/design-system/patterns`, 컴포넌트는 `@t3q-ui/design-system`, `Markdown` 만 `@t3q-ui/design-system/markdown` 에서 import 한다. props 표에는 설명이 있는 prop 만 있다 — 전체 타입은 `node_modules/@t3q-ui/design-system/dist/*.d.ts`.
|
|
5
5
|
|
|
6
6
|
## 목차
|
|
7
7
|
|
|
8
8
|
- **patterns**: ChatPage `patterns-chatpage` · ChatPanel `patterns-chatpanel` · DashboardLayout `patterns-dashboardlayout` · DetailPage `patterns-detailpage` · FormDialog `patterns-formdialog` · FormDrawer `patterns-formdrawer` · FormPage `patterns-formpage` · ListPage `patterns-listpage` · EmptyState `patterns-states`
|
|
9
9
|
- **actions**: Button `components-actions-button` · DropdownMenu `components-actions-dropdownmenu` · IconButton `components-actions-iconbutton` · ToggleGroup `components-actions-togglegroup`
|
|
10
|
-
- **data-display**: Accordion `components-data-display-accordion` · Alert `components-data-display-alert` · Badge `components-data-display-badge` · ChatMessage `components-data-display-chatmessage` · EmptyBoxIllustration `components-data-display-emptyboxillustration` · EventList `components-data-display-eventlist` · LucideIcon `components-data-display-lucideicon` · Markdown `components-data-display-markdown` · MetaItem `components-data-display-metaitem` · Progress `components-data-display-progress` · Skeleton `components-data-display-skeleton` · Spinner `components-data-display-spinner` · Tag `components-data-display-tag`
|
|
10
|
+
- **data-display**: Accordion `components-data-display-accordion` · Alert `components-data-display-alert` · Badge `components-data-display-badge` · ChatMessage `components-data-display-chatmessage` · EmptyBoxIllustration `components-data-display-emptyboxillustration` · EventList `components-data-display-eventlist` · LucideIcon `components-data-display-lucideicon` · Markdown `components-data-display-markdown` · MetaItem `components-data-display-metaitem` · Progress `components-data-display-progress` · SelectedItemCard `components-data-display-selecteditemcard` · Skeleton `components-data-display-skeleton` · Spinner `components-data-display-spinner` · Tag `components-data-display-tag`
|
|
11
11
|
- **inputs**: Calendar `components-inputs-calendar` · ChatComposer `components-inputs-chatcomposer` · Checkbox `components-inputs-checkbox` · CheckboxSection `components-inputs-checkboxsection` · DatePicker `components-inputs-datepicker` · FormItem `components-inputs-form` · IconSelect `components-inputs-iconselect` · Label `components-inputs-label` · MultiSelect `components-inputs-multiselect` · Radio `components-inputs-radio` · RadioGroup `components-inputs-radiogroup` · RadioSection `components-inputs-radiosection` · Range `components-inputs-range` · RangeSlider `components-inputs-rangeslider` · Select `components-inputs-select` · Switch `components-inputs-switch` · SwitchSection `components-inputs-switchsection` · Textarea `components-inputs-textarea` · TextField `components-inputs-textfield` · TimePicker `components-inputs-timepicker`
|
|
12
12
|
- **layout**: Card `components-layout-card` · Panel `components-layout-panel` · Separator `components-layout-separator` · Stack `components-layout-stack`
|
|
13
13
|
- **navigation**: Breadcrumb `components-navigation-breadcrumb` · ChatHistory `components-navigation-chathistory` · FileTree `components-navigation-filetree` · PageHeader `components-navigation-pageheader` · PageHeaderRefreshButton `components-navigation-pageheaderrefreshbutton` · Pagination `components-navigation-pagination` · Sidebar `components-navigation-sidebar` · Tabs `components-navigation-tabs`
|
|
@@ -671,6 +671,37 @@ const Playground = () => <MetaItem label="등록자" value="smkim1" />;
|
|
|
671
671
|
const Playground = () => <Progress value={40} aria-label="진행률" />;
|
|
672
672
|
```
|
|
673
673
|
|
|
674
|
+
## SelectedItemCard (`components-data-display-selecteditemcard`)
|
|
675
|
+
|
|
676
|
+
Select 로 고른 항목의 부가 정보(속성 목록)와 상세 링크를 Select 바로 아래에 보이는 카드.
|
|
677
|
+
|
|
678
|
+
언제 쓰나: 목록이 길어 Select 한 번으로 고르되, 고른 뒤에도 등록일·크기·실행 환경 같은 속성을 확인하거나 상세 화면으로 이동해야 할 때(데이터셋·AI 알고리즘·학습 모델 선택).
|
|
679
|
+
언제 안 쓰나: 부가 정보가 필요 없는 선택(→ Select 만), 여러 개를 고르는 선택(→ MultiSelect), 이미 상세 화면 안의 속성 목록(→ MetaList).
|
|
680
|
+
대신/함께: 바로 위에 `Select`(검색은 `SelectInput`, 항목 속성은 `SelectItem meta`)를 두고, 카드는 Select 바로 아래 8px 간격으로 둔다. 값은 Select 가 쥐고 카드는 보여주기만 한다. 무한 스크롤 등 목록 조회는 앱이 구현한다.
|
|
681
|
+
|
|
682
|
+
| prop | 타입 | 기본값 | 설명 |
|
|
683
|
+
|---|---|---|---|
|
|
684
|
+
| `title` | `ReactNode` | | 선택한 항목의 이름. `isEmpty` 면 쓰지 않는다 |
|
|
685
|
+
| `description` | `ReactNode` | | 이름 아래 설명(최대 2줄) |
|
|
686
|
+
| `items` | `SelectedItemCardItem[]` | | 속성 목록(등록일·크기 …). 라벨 → 값 한 줄씩 |
|
|
687
|
+
| `isEmpty` | `boolean` | `false` | 아무것도 고르지 않았을 때 true — 빈 상태 문구만 그린다 |
|
|
688
|
+
| `emptyMessage` | `ReactNode` | `선택된 항목이 없습니다.` | 빈 상태 문구 |
|
|
689
|
+
| `onRemove` | `(() => void)` | | 주면 제목 줄 오른쪽에 선택 해제(X) 버튼이 생긴다 |
|
|
690
|
+
| `detailHref` | `string` | | 상세 화면 주소. 주면 제목 줄 오른쪽에 새 탭으로 여는 링크 버튼이 생긴다 |
|
|
691
|
+
| `detailLabel` | `string` | `상세보기` | 상세 링크 버튼의 접근성 이름 |
|
|
692
|
+
|
|
693
|
+
예시 — story "Playground":
|
|
694
|
+
|
|
695
|
+
```tsx
|
|
696
|
+
const Playground = () => <SelectedItemCard
|
|
697
|
+
title="resnet-classifier"
|
|
698
|
+
items={[
|
|
699
|
+
{ label: '문제 유형', value: '이미지 분류' },
|
|
700
|
+
{ label: '실행 환경', value: 'torch-2.1-cuda12' },
|
|
701
|
+
{ label: '등록일시', value: '2026-11-25 14:23' },
|
|
702
|
+
]} />;
|
|
703
|
+
```
|
|
704
|
+
|
|
674
705
|
## Skeleton (`components-data-display-skeleton`)
|
|
675
706
|
|
|
676
707
|
내용이 오기 전에 그 자리를 회색 블록으로 보여 주는 로딩 자리표시.
|
|
@@ -1039,8 +1070,8 @@ const Disabled = () => <RangeSlider min={0} max={100} step={10} defaultValue={[4
|
|
|
1039
1070
|
|
|
1040
1071
|
드롭다운에서 하나를 고르는 폼 입력. 선택지가 정해져 있고 5개 이상일 때 쓴다.
|
|
1041
1072
|
|
|
1042
|
-
언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`.
|
|
1043
|
-
언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).
|
|
1073
|
+
언제 쓰나: 폼 안에서 `FormControl` 아래 `Select` > `SelectTrigger`(label·required) + `SelectContent` > `SelectItem`. 항목이 많으면 `SelectInput` 으로 검색, 비동기 목록은 `SelectLoading`·`SelectEmpty`. 목록이 길어도 한 항목만 고르면 Drawer 표 대신 Select — 항목 속성은 `SelectItem meta`, 고른 뒤 상세 확인·링크는 `SelectedItemCard`.
|
|
1074
|
+
언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch). 여러 열을 비교하며 고르거나 2단계로 고르는 선택(→ Drawer + Table).
|
|
1044
1075
|
대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.
|
|
1045
1076
|
|
|
1046
1077
|
| prop | 타입 | 기본값 | 설명 |
|