@t3q-ui/design-system 1.71.7 → 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 +22 -0
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/button.js.map +1 -1
- package/dist/components/chatComposer.cjs +12 -1
- package/dist/components/chatComposer.cjs.map +1 -1
- package/dist/components/chatComposer.js +12 -1
- package/dist/components/chatComposer.js.map +1 -1
- package/dist/components/chatHistory.cjs +2 -1
- package/dist/components/chatHistory.cjs.map +1 -1
- package/dist/components/chatHistory.js +2 -1
- package/dist/components/chatHistory.js.map +1 -1
- package/dist/components/chatMessage.cjs +6 -5
- package/dist/components/chatMessage.cjs.map +1 -1
- package/dist/components/chatMessage.js +6 -5
- package/dist/components/chatMessage.js.map +1 -1
- package/dist/components/drawer.cjs +2 -2
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.js +2 -2
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/iconButton.cjs +4 -3
- package/dist/components/iconButton.cjs.map +1 -1
- package/dist/components/iconButton.js +4 -3
- package/dist/components/iconButton.js.map +1 -1
- package/dist/components/lucideIcon.cjs.map +1 -1
- package/dist/components/lucideIcon.js.map +1 -1
- 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/pageHeaderRefreshButton.cjs +1 -1
- package/dist/components/pageHeaderRefreshButton.cjs.map +1 -1
- package/dist/components/pageHeaderRefreshButton.js +1 -1
- package/dist/components/pageHeaderRefreshButton.js.map +1 -1
- package/dist/components/parameterTable/ParameterTableRow.cjs +2 -3
- package/dist/components/parameterTable/ParameterTableRow.cjs.map +1 -1
- package/dist/components/parameterTable/ParameterTableRow.js +2 -3
- package/dist/components/parameterTable/ParameterTableRow.js.map +1 -1
- package/dist/components/range/range.cjs +2 -2
- package/dist/components/range/range.cjs.map +1 -1
- package/dist/components/range/range.js +2 -2
- package/dist/components/range/range.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/components/sidebar/index.cjs +2 -2
- package/dist/components/sidebar/index.cjs.map +1 -1
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sidebar/index.js.map +1 -1
- package/dist/{index-CSkXld6f.d.cts → index-Dd-O1cSb.d.cts} +1 -1
- package/dist/{index-CSkXld6f.d.ts → index-Dd-O1cSb.d.ts} +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -8
- package/dist/index.d.ts +43 -8
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/markdown/markdown.cjs +2 -1
- package/dist/markdown/markdown.cjs.map +1 -1
- package/dist/markdown/markdown.js +2 -1
- package/dist/markdown/markdown.js.map +1 -1
- package/dist/patterns/chatPage.cjs +9 -1
- package/dist/patterns/chatPage.cjs.map +1 -1
- package/dist/patterns/chatPage.js +9 -1
- package/dist/patterns/chatPage.js.map +1 -1
- package/dist/patterns/chatShell.cjs +2 -2
- package/dist/patterns/chatShell.cjs.map +1 -1
- package/dist/patterns/chatShell.js +2 -2
- package/dist/patterns/chatShell.js.map +1 -1
- package/dist/patterns/detailPage.cjs +1 -1
- package/dist/patterns/detailPage.cjs.map +1 -1
- package/dist/patterns/detailPage.js +1 -1
- package/dist/patterns/detailPage.js.map +1 -1
- package/dist/patterns/index.d.cts +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/sidePanel.cjs +1 -1
- package/dist/patterns/sidePanel.cjs.map +1 -1
- package/dist/patterns/sidePanel.js +1 -1
- package/dist/patterns/sidePanel.js.map +1 -1
- package/mcp/manifests/components.json +211 -13
- package/package.json +1 -1
- package/skills/tds/SKILL.md +2 -1
- package/skills/tds/reference/components.md +38 -7
|
@@ -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`
|
|
@@ -380,7 +380,7 @@ const Loading = () => <LoadingState lines={4} />;
|
|
|
380
380
|
|
|
381
381
|
언제 쓰나: 화면의 주요 행동은 `primaryBold` 1개, 보조 행동은 `secondaryOutline`·`secondaryLink`, 파괴적 행동은 `danger*`. 비동기 처리 중에는 `loading` 으로 잠근다.
|
|
382
382
|
언제 안 쓰나: 아이콘만 있는 버튼(→ IconButton), 페이지 이동(→ 링크. 버튼 모양이 꼭 필요하면 `asChild` 로 `<a>` 를 감싼다), 표 안의 상태 표시(→ Badge).
|
|
383
|
-
대신/함께: 같은 줄에 주요 버튼을 두 개 두지 않는다. 폼 푸터에서는 취소(secondaryOutline) 왼쪽, 저장(primaryBold) 오른쪽.
|
|
383
|
+
대신/함께: 같은 줄에 주요 버튼을 두 개 두지 않는다. 폼 푸터에서는 취소(secondaryOutline) 왼쪽, 저장(primaryBold) 오른쪽. 글자 앞뒤 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(아이콘이 있어도 높이는 36 그대로).
|
|
384
384
|
|
|
385
385
|
예시 — story "Danger — Subtle":
|
|
386
386
|
|
|
@@ -420,7 +420,7 @@ const Variants = () => (
|
|
|
420
420
|
|
|
421
421
|
언제 쓰나: 새로고침·편집·삭제·닫기처럼 아이콘만으로 뜻이 통하는 행동. 항상 `aria-label` 로 이름을 주고, 필요하면 Tooltip 을 함께 쓴다.
|
|
422
422
|
언제 안 쓰나: 화면의 주요 행동(→ Button 텍스트), 아이콘 뜻이 모호한 행동(→ Button 에 아이콘+텍스트).
|
|
423
|
-
대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다.
|
|
423
|
+
대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기는 `spacing` 이 정한다 — `normal` 36×36(높이 36 인 입력란·버튼 옆), `compact` 28×28(표 행·카드 모서리처럼 좁은 자리). 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(글자 버튼·메뉴 항목의 아이콘과 같은 크기).
|
|
424
424
|
|
|
425
425
|
예시 — story "Playground":
|
|
426
426
|
|
|
@@ -603,7 +603,7 @@ const Empty = () => <EventList items={[]} />;
|
|
|
603
603
|
|
|
604
604
|
이름으로 그리는 lucide 아이콘. 버튼·뱃지·메뉴의 작은 아이콘에 쓴다.
|
|
605
605
|
|
|
606
|
-
언제 쓰나: 아이콘 이름이 데이터(메뉴 설정, 상태 상수)에서 올 때, 또는 lucide 를 직접 import 하지 않고 이름으로 쓰고 싶을 때. 기본 크기 16px(
|
|
606
|
+
언제 쓰나: 아이콘 이름이 데이터(메뉴 설정, 상태 상수)에서 올 때, 또는 lucide 를 직접 import 하지 않고 이름으로 쓰고 싶을 때. 기본 크기 16px(뱃지 안·표·글자 옆). `Button`·`IconButton`·메뉴 항목 안에서는 그 컴포넌트가 20px 로 맞추므로 `size` 를 주지 않는다.
|
|
607
607
|
언제 안 쓰나: 이름이 코드에 고정돼 있고 lucide 를 직접 import 할 수 있으면 `import { Plus } from 'lucide-react'` 가 더 가볍다.
|
|
608
608
|
대신/함께: 상태 뱃지 아이콘은 `Badge` 의 자식으로 넣는다(16px·글자색). 로딩은 `Spinner`.
|
|
609
609
|
|
|
@@ -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 | 타입 | 기본값 | 설명 |
|