@t3q-ui/design-system 1.66.3 → 1.67.1

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/dist/styles.css CHANGED
@@ -2072,3 +2072,152 @@ tr:last-child > .t3q-pt-cell {
2072
2072
  opacity: 1;
2073
2073
  pointer-events: auto;
2074
2074
  }
2075
+ /* FileTree — rc-tree 를 접두사 `t3q-file-tree` 로 그린다.
2076
+ rc-tree 기본 CSS(rc-tree/assets/index.css)는 쓰지 않는다. 기본 CSS 가 하던 일 중 필요한 것
2077
+ (내용 칸 위치 기준·검색어 강조·말줄임)만 아래에서 대신하고, 색은 전부 DS 토큰이다.
2078
+ 행 높이 28 = 위아래 padding 2 + 내용 칸 24 (index.tsx 의 itemHeight 와 같은 값). */
2079
+
2080
+ /* ==================== 행 ==================== */
2081
+
2082
+ .t3q-file-tree-treenode {
2083
+ display: flex;
2084
+ align-items: center;
2085
+ gap: 2px;
2086
+ margin: 0;
2087
+ padding: 2px 0;
2088
+ white-space: nowrap;
2089
+ }
2090
+
2091
+ /* 들여쓰기 — 단계마다 12px. rc-tree 가 이 폭을 재서 드롭 표시선 위치에 쓴다 */
2092
+ .t3q-file-tree-indent {
2093
+ display: inline-block;
2094
+ height: 0;
2095
+ }
2096
+
2097
+ .t3q-file-tree-indent-unit {
2098
+ display: inline-block;
2099
+ width: 12px;
2100
+ }
2101
+
2102
+ /* 펼침 칸(16×16). 잎은 안이 비어 있어 칸만 차지한다 */
2103
+ .t3q-file-tree-switcher {
2104
+ display: inline-flex;
2105
+ flex-shrink: 0;
2106
+ align-items: center;
2107
+ justify-content: center;
2108
+ width: 16px;
2109
+ height: 16px;
2110
+ cursor: pointer;
2111
+ }
2112
+
2113
+ .t3q-file-tree-switcher-noop {
2114
+ cursor: auto;
2115
+ }
2116
+
2117
+ /* 내용 칸(아이콘 + 제목). position: relative 는 드롭 표시선(내용 칸 안에 그려짐)의 위치 기준 —
2118
+ 없으면 표시선이 대상 행이 아니라 목록 가장자리에 찍힌다 */
2119
+ .t3q-file-tree-node-content-wrapper {
2120
+ position: relative;
2121
+ display: inline-flex;
2122
+ flex: 1;
2123
+ align-items: center;
2124
+ gap: 4px;
2125
+ min-width: 0;
2126
+ cursor: pointer;
2127
+ }
2128
+
2129
+ /* 아이콘 칸 24×24 */
2130
+ .t3q-file-tree-iconEle {
2131
+ display: inline-flex;
2132
+ flex-shrink: 0;
2133
+ align-items: center;
2134
+ justify-content: center;
2135
+ width: 24px;
2136
+ height: 24px;
2137
+ }
2138
+
2139
+ .t3q-file-tree-icon-folder {
2140
+ color: var(--color-primary20);
2141
+ }
2142
+
2143
+ .t3q-file-tree-icon-file {
2144
+ color: var(--color-secondary50);
2145
+ }
2146
+
2147
+ .t3q-file-tree-title {
2148
+ flex: 1;
2149
+ min-width: 0;
2150
+ overflow: hidden;
2151
+ font-size: var(--text-base-regular);
2152
+ line-height: var(--text-base-regular--line-height);
2153
+ color: var(--color-sys-text-main);
2154
+ text-overflow: ellipsis;
2155
+ white-space: nowrap;
2156
+ }
2157
+
2158
+ /* ==================== 상태 ==================== */
2159
+ /* 같은 특이도라 아래 규칙이 위 규칙을 이긴다(hover < 누름 < 선택 < 끌리는 중 < 놓을 곳) */
2160
+
2161
+ .t3q-file-tree-treenode:hover {
2162
+ background-color: var(--color-secondary-o10);
2163
+ }
2164
+
2165
+ .t3q-file-tree-treenode:active {
2166
+ background-color: var(--color-secondary-o20);
2167
+ }
2168
+
2169
+ .t3q-file-tree-treenode.t3q-file-tree-treenode-selected {
2170
+ background-color: var(--color-primary-o10);
2171
+ }
2172
+
2173
+ .t3q-file-tree-treenode.dragging {
2174
+ background-color: var(--color-primary30);
2175
+ }
2176
+
2177
+ .t3q-file-tree-treenode.dragging .t3q-file-tree-title,
2178
+ .t3q-file-tree-treenode.dragging .t3q-file-tree-iconEle,
2179
+ .t3q-file-tree-treenode.dragging .t3q-file-tree-iconEle > svg {
2180
+ color: var(--color-sys-background);
2181
+ }
2182
+
2183
+ .t3q-file-tree-treenode.drop-target {
2184
+ background-color: var(--color-primary-o10);
2185
+ }
2186
+
2187
+ /* 검색어 일치(`filterTreeNode` 가 true 인 노드) — rc-tree 는 클래스만 붙이므로 여기서 보이게 한다 */
2188
+ .t3q-file-tree-treenode.filter-node .t3q-file-tree-title {
2189
+ font-weight: var(--font-weight-bold);
2190
+ }
2191
+
2192
+ /* 키보드로 움직인 행의 링. 행은 포커스를 받지 않고(포커스는 트리 밖 숨은 입력란) rc-tree 가
2193
+ 활성 행에 `-treenode-active` 를 붙인다. 안쪽 offset 이라 가상 스크롤 목록(overflow hidden)에서도 안 잘린다 */
2194
+ .t3q-file-tree-focused .t3q-file-tree-treenode-active {
2195
+ outline: 2px solid var(--color-sys-focus-ring-main);
2196
+ outline-offset: -2px;
2197
+ }
2198
+
2199
+ /* 비활성 — 선택·드래그만 막힌다. 폴더는 계속 펼쳐지는 조작 가능한 노드라 `aria-disabled` 가 없고,
2200
+ 대비 4.5:1 을 지키는 subtler 로 그린다. 펼칠 것이 없는 비활성 잎만 index.tsx 가 `aria-disabled` 를 붙이므로
2201
+ (속성 선택자라 위 규칙보다 특이도가 높다) 그 행만 DS 비활성 색과 반투명 아이콘으로 그린다 */
2202
+ .t3q-file-tree-treenode-disabled .t3q-file-tree-title {
2203
+ color: var(--color-sys-text-subtler);
2204
+ }
2205
+
2206
+ .t3q-file-tree-treenode-disabled[aria-disabled='true'] .t3q-file-tree-title {
2207
+ color: var(--color-sys-text-disabled);
2208
+ }
2209
+
2210
+ .t3q-file-tree-treenode-disabled[aria-disabled='true'] .t3q-file-tree-iconEle {
2211
+ opacity: 0.5;
2212
+ }
2213
+
2214
+ /* ==================== 드래그 드롭 표시선 ==================== */
2215
+ /* 위치(top/bottom/left)는 index.tsx 가 인라인으로 준다 */
2216
+
2217
+ .t3q-file-tree-drop-indicator {
2218
+ position: absolute;
2219
+ right: 0;
2220
+ height: 2px;
2221
+ background-color: var(--color-primary30);
2222
+ pointer-events: none;
2223
+ }
@@ -7028,6 +7028,197 @@
7028
7028
  ],
7029
7029
  "import": "import { EventList } from '@t3q-ui/design-system';"
7030
7030
  },
7031
+ "components-navigation-filetree": {
7032
+ "id": "components-navigation-filetree",
7033
+ "name": "FileTree",
7034
+ "path": "./src/stories/FileTree/FileTree.stories.tsx",
7035
+ "jsDocTags": {},
7036
+ "description": "파일·폴더 계층을 펼치고 접으며 고르는 트리.\n\n언제 쓰나: 파일·폴더 계층 탐색, 폴더를 펼칠 때 하위 항목을 그때그때 불러오는 목록(`loadData`), 노드가 많은 목록(`height` 를 주면 가상 스크롤).\n언제 안 쓰나: 평면 목록(→ Table·AgGridTable), 화면 이동 메뉴(→ Sidebar).\n대신/함께: 우클릭 메뉴는 `onRightClick` 과 DropdownMenu 를 앱이 이어 붙인다. \"더 보기\" 같은 앱 고유 노드·실행 모듈 표시는 `treeData`·`icon`·`titleRender` 로, 검색어 강조는 `filterTreeNode` 로 그린다.",
7037
+ "reactDocgenTypescript": {
7038
+ "tags": {},
7039
+ "filePath": "src/components/fileTree/index.tsx",
7040
+ "description": "파일·폴더 계층을 펼치고 접으며 고르는 트리.\n\n언제 쓰나: 파일·폴더 계층 탐색, 폴더를 펼칠 때 하위 항목을 그때그때 불러오는 목록(`loadData`), 노드가 많은 목록(`height` 를 주면 가상 스크롤).\n언제 안 쓰나: 평면 목록(→ Table·AgGridTable), 화면 이동 메뉴(→ Sidebar).\n대신/함께: 우클릭 메뉴는 `onRightClick` 과 DropdownMenu 를 앱이 이어 붙인다. \"더 보기\" 같은 앱 고유 노드·실행 모듈 표시는 `treeData`·`icon`·`titleRender` 로, 검색어 강조는 `filterTreeNode` 로 그린다.",
7041
+ "displayName": "FileTree",
7042
+ "methods": [],
7043
+ "props": {
7044
+ "treeData": {
7045
+ "defaultValue": null,
7046
+ "description": "트리 데이터. 노드마다 `key`·`title`·`children` 을 두고, 폴더를 펼칠 때 불러오는 노드는 `isLeaf: false`, 파일은 `isLeaf: true`. 비활성 잎이 있으면 그 노드와 상위 노드는 복사본이 콜백으로 온다 — 노드는 `key` 로 비교한다",
7047
+ "name": "treeData",
7048
+ "parent": {
7049
+ "fileName": "src/components/fileTree/index.tsx",
7050
+ "name": "FileTreeProps"
7051
+ },
7052
+ "declarations": [
7053
+ {
7054
+ "fileName": "src/components/fileTree/index.tsx",
7055
+ "name": "FileTreeProps"
7056
+ }
7057
+ ],
7058
+ "required": false,
7059
+ "type": {
7060
+ "name": "T[]"
7061
+ }
7062
+ },
7063
+ "icon": {
7064
+ "defaultValue": null,
7065
+ "description": "아이콘 칸에 그릴 내용(노드 또는 노드를 받는 함수). 없으면 폴더·파일 기본 아이콘이고, 불러오는 중에는 이 값과 상관없이 Spinner. 노드 데이터의 `icon` 은 이 값과 불러오는 중 표시를 덮는다",
7066
+ "name": "icon",
7067
+ "parent": {
7068
+ "fileName": "src/components/fileTree/index.tsx",
7069
+ "name": "FileTreeProps"
7070
+ },
7071
+ "declarations": [
7072
+ {
7073
+ "fileName": "src/components/fileTree/index.tsx",
7074
+ "name": "FileTreeProps"
7075
+ }
7076
+ ],
7077
+ "required": false,
7078
+ "type": {
7079
+ "name": "IconType"
7080
+ }
7081
+ },
7082
+ "loadData": {
7083
+ "defaultValue": null,
7084
+ "description": "폴더를 펼칠 때 하위 노드를 불러오는 함수. 반환한 Promise 가 끝나면 펼쳐진다 — 그동안 아이콘 칸에 Spinner",
7085
+ "name": "loadData",
7086
+ "parent": {
7087
+ "fileName": "src/components/fileTree/index.tsx",
7088
+ "name": "FileTreeProps"
7089
+ },
7090
+ "declarations": [
7091
+ {
7092
+ "fileName": "src/components/fileTree/index.tsx",
7093
+ "name": "FileTreeProps"
7094
+ }
7095
+ ],
7096
+ "required": false,
7097
+ "type": {
7098
+ "name": "((treeNode: EventDataNode<T>) => Promise<any>)"
7099
+ }
7100
+ },
7101
+ "height": {
7102
+ "defaultValue": null,
7103
+ "description": "목록 높이(px). 주면 보이는 만큼만 그리는 가상 스크롤이 켜진다. 노드가 많을 때 준다",
7104
+ "name": "height",
7105
+ "parent": {
7106
+ "fileName": "src/components/fileTree/index.tsx",
7107
+ "name": "FileTreeProps"
7108
+ },
7109
+ "declarations": [
7110
+ {
7111
+ "fileName": "src/components/fileTree/index.tsx",
7112
+ "name": "FileTreeProps"
7113
+ }
7114
+ ],
7115
+ "required": false,
7116
+ "type": {
7117
+ "name": "number"
7118
+ }
7119
+ },
7120
+ "onSelect": {
7121
+ "defaultValue": null,
7122
+ "description": "노드를 눌러 선택이 바뀔 때 호출된다",
7123
+ "name": "onSelect",
7124
+ "parent": {
7125
+ "fileName": "src/components/fileTree/index.tsx",
7126
+ "name": "FileTreeProps"
7127
+ },
7128
+ "declarations": [
7129
+ {
7130
+ "fileName": "src/components/fileTree/index.tsx",
7131
+ "name": "FileTreeProps"
7132
+ }
7133
+ ],
7134
+ "required": false,
7135
+ "type": {
7136
+ "name": "((selectedKeys: Key[], info: { event: \"select\"; selected: boolean; node: EventDataNode<T>; selectedNodes: T[]; nativeEvent: MouseEvent; }) => void)"
7137
+ }
7138
+ },
7139
+ "onRightClick": {
7140
+ "defaultValue": null,
7141
+ "description": "노드를 우클릭할 때 호출된다. 메뉴는 앱이 DropdownMenu 등으로 그린다",
7142
+ "name": "onRightClick",
7143
+ "parent": {
7144
+ "fileName": "src/components/fileTree/index.tsx",
7145
+ "name": "FileTreeProps"
7146
+ },
7147
+ "declarations": [
7148
+ {
7149
+ "fileName": "src/components/fileTree/index.tsx",
7150
+ "name": "FileTreeProps"
7151
+ }
7152
+ ],
7153
+ "required": false,
7154
+ "type": {
7155
+ "name": "((info: { event: MouseEvent<Element, MouseEvent>; node: EventDataNode<T>; }) => void)"
7156
+ }
7157
+ },
7158
+ "titleRender": {
7159
+ "defaultValue": null,
7160
+ "description": "노드 제목을 직접 그린다. 노드 데이터를 받아 제목 자리에 들어갈 내용을 돌려준다",
7161
+ "name": "titleRender",
7162
+ "parent": {
7163
+ "fileName": "src/components/fileTree/index.tsx",
7164
+ "name": "FileTreeProps"
7165
+ },
7166
+ "declarations": [
7167
+ {
7168
+ "fileName": "src/components/fileTree/index.tsx",
7169
+ "name": "FileTreeProps"
7170
+ }
7171
+ ],
7172
+ "required": false,
7173
+ "type": {
7174
+ "name": "((node: T) => ReactNode)"
7175
+ }
7176
+ }
7177
+ },
7178
+ "exportName": "FileTree"
7179
+ },
7180
+ "stories": [
7181
+ {
7182
+ "id": "components-navigation-filetree--default",
7183
+ "name": "Default",
7184
+ "snippet": "const Default = () => <FileTree treeData={sampleData} defaultExpandedKeys={['src']} />;"
7185
+ },
7186
+ {
7187
+ "id": "components-navigation-filetree--filter",
7188
+ "name": "Filter",
7189
+ "snippet": "const Filter = () => <FilterExample />;"
7190
+ },
7191
+ {
7192
+ "id": "components-navigation-filetree--lazy-load",
7193
+ "name": "Lazy Load",
7194
+ "snippet": "const LazyLoad = () => <LazyLoadExample />;"
7195
+ },
7196
+ {
7197
+ "id": "components-navigation-filetree--virtual",
7198
+ "name": "Virtual",
7199
+ "snippet": "const Virtual = () => <FileTree treeData={manyNodes} defaultExpandAll height={320} />;",
7200
+ "description": "노드 1,000개 — `height` 를 주면 보이는 만큼만 그린다"
7201
+ },
7202
+ {
7203
+ "id": "components-navigation-filetree--draggable",
7204
+ "name": "Draggable",
7205
+ "snippet": "const Draggable = () => <DraggableExample />;"
7206
+ },
7207
+ {
7208
+ "id": "components-navigation-filetree--custom-icon",
7209
+ "name": "Custom Icon",
7210
+ "snippet": "const CustomIcon = () => (\n <FileTree\n treeData={sampleData}\n defaultExpandAll\n icon={(node) => iconOf(typeof node.title === 'string' ? node.title : '')}\n />\n);",
7211
+ "description": "`icon` 으로 노드마다 아이콘을 바꾼다. 아무것도 돌려주지 않으면 기본 아이콘"
7212
+ },
7213
+ {
7214
+ "id": "components-navigation-filetree--disabled",
7215
+ "name": "Disabled",
7216
+ "snippet": "const Disabled = () => <FileTree treeData={disabledData} defaultExpandAll />;",
7217
+ "description": "`disabled: true` 노드는 선택·드래그가 막힌다 — 폴더는 펼쳐지고 제목만 흐리게, 파일은 비활성으로 보인다"
7218
+ }
7219
+ ],
7220
+ "import": "import { FileCode, FileText, Image } from 'lucide-react';\nimport { FileTree, TextField } from '@t3q-ui/design-system';"
7221
+ },
7031
7222
  "components-inputs-form": {
7032
7223
  "id": "components-inputs-form",
7033
7224
  "name": "FormItem",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t3q-ui/design-system",
3
- "version": "1.66.3",
3
+ "version": "1.67.1",
4
4
  "description": "T3Q Design System - React Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -67,7 +67,7 @@
67
67
  "scripts": {
68
68
  "build": "rm -rf dist && vite build --config vite.config.lib.ts && tsup && node scripts/fix-dts.mjs && node scripts/release/check-entries.mjs && npm run build:css",
69
69
  "check": "pnpm lint && pnpm typecheck && pnpm build",
70
- "build:css": "cp src/styles/fonts.css dist/fonts.css && echo '@source \"./**/*.js\";' > dist/styles.css && cat src/styles/tokens.css >> dist/styles.css && cat src/styles/utilities.css >> dist/styles.css && cat src/components/agGridTable/style.css >> dist/styles.css && cat src/components/parameterTable/parameterTable.css >> dist/styles.css",
70
+ "build:css": "cp src/styles/fonts.css dist/fonts.css && echo '@source \"./**/*.js\";' > dist/styles.css && cat src/styles/tokens.css >> dist/styles.css && cat src/styles/utilities.css >> dist/styles.css && cat src/components/agGridTable/style.css >> dist/styles.css && cat src/components/parameterTable/parameterTable.css >> dist/styles.css && cat src/components/fileTree/fileTree.css >> dist/styles.css",
71
71
  "build:dev": "vite build --config vite.config.dev.ts",
72
72
  "dev": "vite --config vite.config.dev.ts",
73
73
  "dev:site": "vite --config vite.config.site.ts",
@@ -141,6 +141,7 @@
141
141
  "es-toolkit": "^1.0.0",
142
142
  "lucide-react": "^0.468.0",
143
143
  "pretendard": "^1.3.9",
144
+ "rc-tree": "^5.13.1",
144
145
  "react-day-picker": "^8.10.1",
145
146
  "react-lottie": "^1.2.10",
146
147
  "react-markdown": "^10.1.0",
@@ -1,6 +1,6 @@
1
1
  # TDS 컴포넌트·패턴 참조 (생성물)
2
2
 
3
- `scripts/mcp/build-skill-reference.mjs` 가 Storybook 매니페스트에서 만든다 — **손으로 고치지 않는다**. 70개(패턴 9 · 컴포넌트 61).
3
+ `scripts/mcp/build-skill-reference.mjs` 가 Storybook 매니페스트에서 만든다 — **손으로 고치지 않는다**. 71개(패턴 9 · 컴포넌트 62).
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
  ## 목차
@@ -10,7 +10,7 @@ MCP `docs-list` / `docs-show <id>` / `docs-show-story` 와 같은 내용이다.
10
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`
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
- - **navigation**: Breadcrumb `components-navigation-breadcrumb` · ChatHistory `components-navigation-chathistory` · PageHeader `components-navigation-pageheader` · PageHeaderRefreshButton `components-navigation-pageheaderrefreshbutton` · Pagination `components-navigation-pagination` · Sidebar `components-navigation-sidebar` · Tabs `components-navigation-tabs`
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`
14
14
  - **overlay**: AlertDialogContent `components-overlay-alertdialog` · Command `components-overlay-command` · DialogContent `components-overlay-dialog` · DrawerContent `components-overlay-drawer` · PopoverContent `components-overlay-popover` · Toaster `components-overlay-toast` · Tooltip `components-overlay-tooltip`
15
15
  - **table**: AgGridTable `components-table-aggridtable` · ColumnFilter `components-table-columnfilter` · ColumnVisibilityFilter `components-table-columnvisibilityfilter` · ParameterTable `components-table-parametertable` · Table `components-table-table` · TableFilterMultiSelect `components-table-tablefilter`
16
16
 
@@ -1307,6 +1307,30 @@ const Basic = () => (
1307
1307
  const Default = () => <Demo />;
1308
1308
  ```
1309
1309
 
1310
+ ## FileTree (`components-navigation-filetree`)
1311
+
1312
+ 파일·폴더 계층을 펼치고 접으며 고르는 트리.
1313
+
1314
+ 언제 쓰나: 파일·폴더 계층 탐색, 폴더를 펼칠 때 하위 항목을 그때그때 불러오는 목록(`loadData`), 노드가 많은 목록(`height` 를 주면 가상 스크롤).
1315
+ 언제 안 쓰나: 평면 목록(→ Table·AgGridTable), 화면 이동 메뉴(→ Sidebar).
1316
+ 대신/함께: 우클릭 메뉴는 `onRightClick` 과 DropdownMenu 를 앱이 이어 붙인다. "더 보기" 같은 앱 고유 노드·실행 모듈 표시는 `treeData`·`icon`·`titleRender` 로, 검색어 강조는 `filterTreeNode` 로 그린다.
1317
+
1318
+ | prop | 타입 | 기본값 | 설명 |
1319
+ |---|---|---|---|
1320
+ | `treeData` | `T[]` | | 트리 데이터. 노드마다 `key`·`title`·`children` 을 두고, 폴더를 펼칠 때 불러오는 노드는 `isLeaf: false`, 파일은 `isLeaf: true`. 비활성 잎이 있으면 그 노드와 상위 노드는 복사본이 콜백으로 온다 — 노드는 `key` 로 비교한다 |
1321
+ | `icon` | `IconType` | | 아이콘 칸에 그릴 내용(노드 또는 노드를 받는 함수). 없으면 폴더·파일 기본 아이콘이고, 불러오는 중에는 이 값과 상관없이 Spinner. 노드 데이터의 `icon` 은 이 값과 불러오는 중 표시를 덮는다 |
1322
+ | `loadData` | `((treeNode: EventDataNode<T>) => Promise<any>)` | | 폴더를 펼칠 때 하위 노드를 불러오는 함수. 반환한 Promise 가 끝나면 펼쳐진다 — 그동안 아이콘 칸에 Spinner |
1323
+ | `height` | `number` | | 목록 높이(px). 주면 보이는 만큼만 그리는 가상 스크롤이 켜진다. 노드가 많을 때 준다 |
1324
+ | `onSelect` | `((selectedKeys: Key[], info: { event: "select"; selected: boolean; node: EventD…` | | 노드를 눌러 선택이 바뀔 때 호출된다 |
1325
+ | `onRightClick` | `((info: { event: MouseEvent<Element, MouseEvent>; node: EventDataNode<T>; }) =>…` | | 노드를 우클릭할 때 호출된다. 메뉴는 앱이 DropdownMenu 등으로 그린다 |
1326
+ | `titleRender` | `((node: T) => ReactNode)` | | 노드 제목을 직접 그린다. 노드 데이터를 받아 제목 자리에 들어갈 내용을 돌려준다 |
1327
+
1328
+ 예시 — story "Filter":
1329
+
1330
+ ```tsx
1331
+ const Filter = () => <FilterExample />;
1332
+ ```
1333
+
1310
1334
  ## PageHeader (`components-navigation-pageheader`)
1311
1335
 
1312
1336
  페이지 최상단 헤더. 제목·설명·상태·메타·주요 행동·필터 줄·탭을 한 곳에 둔다.