@t3q-ui/design-system 1.61.5 → 1.63.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 +20 -0
- package/dist/chunk-DWF6AFPQ.js +409 -0
- package/dist/chunk-DWF6AFPQ.js.map +1 -0
- package/dist/{chunk-AUPWLUH4.cjs → chunk-ESAMXUUJ.cjs} +2269 -1131
- package/dist/chunk-ESAMXUUJ.cjs.map +1 -0
- package/dist/{chunk-SRHKL4LJ.js → chunk-GZZXYYDY.js} +2187 -1051
- package/dist/chunk-GZZXYYDY.js.map +1 -0
- package/dist/chunk-OQOBPYZT.cjs +443 -0
- package/dist/chunk-OQOBPYZT.cjs.map +1 -0
- package/dist/{index-DYwapUZv.d.cts → index-DoIChamr.d.cts} +178 -2
- package/dist/{index-DYwapUZv.d.ts → index-DoIChamr.d.ts} +178 -2
- package/dist/index.cjs +1146 -1799
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +12 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +61 -12
- package/dist/index.d.ts +61 -12
- package/dist/index.js +584 -1264
- package/dist/index.js.map +1 -1
- package/dist/markdown/index.cjs +412 -0
- package/dist/markdown/index.cjs.map +1 -0
- package/dist/markdown/index.d.cts +24 -0
- package/dist/markdown/index.d.ts +24 -0
- package/dist/markdown/index.js +405 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/patterns/index.cjs +586 -69
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +120 -3
- package/dist/patterns/index.d.ts +120 -3
- package/dist/patterns/index.js +520 -5
- package/dist/patterns/index.js.map +1 -1
- package/dist/styles.css +23 -0
- package/mcp/manifests/components.json +2695 -113
- package/package.json +19 -2
- package/skills/tds/SKILL.md +5 -4
- package/skills/tds/examples/chat-page.tsx +313 -0
- package/skills/tds/examples/detail-page.tsx +5 -4
- package/skills/tds/reference/components.md +245 -17
- package/skills/tds/rules.md +1 -1
- package/dist/chunk-AUPWLUH4.cjs.map +0 -1
- package/dist/chunk-SRHKL4LJ.js.map +0 -1
package/dist/patterns/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkESAMXUUJ_cjs = require('../chunk-ESAMXUUJ.cjs');
|
|
4
|
+
var chunkOQOBPYZT_cjs = require('../chunk-OQOBPYZT.cjs');
|
|
4
5
|
var react = require('react');
|
|
5
6
|
var lucideReact = require('lucide-react');
|
|
6
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -21,7 +22,7 @@ function withSecondaryLine(columns, primaryField, secondaryField) {
|
|
|
21
22
|
return columns.map(
|
|
22
23
|
(c) => c.field === primaryField && c.cellRenderer == null ? {
|
|
23
24
|
...c,
|
|
24
|
-
cellRenderer:
|
|
25
|
+
cellRenderer: chunkESAMXUUJ_cjs.TwoLineCellRenderer,
|
|
25
26
|
cellRendererParams: { ...c.cellRendererParams, secondaryField }
|
|
26
27
|
} : c
|
|
27
28
|
);
|
|
@@ -47,10 +48,10 @@ function LoadingState({ className, lines = 3 }) {
|
|
|
47
48
|
{
|
|
48
49
|
role: "status",
|
|
49
50
|
"aria-label": "\uBD88\uB7EC\uC624\uB294 \uC911",
|
|
50
|
-
className:
|
|
51
|
+
className: chunkOQOBPYZT_cjs.cn("flex flex-col gap-[12px]", className),
|
|
51
52
|
children: [
|
|
52
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
-
Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Skeleton, { className: "h-[24px] w-[240px]" }),
|
|
54
|
+
Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Skeleton, { className: chunkOQOBPYZT_cjs.cn("h-[16px]", i % 2 ? "w-3/5" : "w-full") }, i))
|
|
54
55
|
]
|
|
55
56
|
}
|
|
56
57
|
);
|
|
@@ -68,12 +69,12 @@ function StateBox({
|
|
|
68
69
|
"div",
|
|
69
70
|
{
|
|
70
71
|
role,
|
|
71
|
-
className:
|
|
72
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
72
73
|
"flex flex-col items-center justify-center gap-[4px] text-center text-sys-text-subtler",
|
|
73
74
|
className
|
|
74
75
|
),
|
|
75
76
|
children: [
|
|
76
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className:
|
|
77
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: chunkOQOBPYZT_cjs.cn("mb-[4px] flex text-sys-text-subtler", iconClassName), children: icon }),
|
|
77
78
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-h5 text-sys-text-main", children: title }),
|
|
78
79
|
description ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "break-keep text-base-regular text-sys-text-subtle wrap-break-word", children: description }) : null,
|
|
79
80
|
action ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto mt-[12px] flex gap-[8px]", children: action }) : null
|
|
@@ -94,7 +95,7 @@ function EmptyState({
|
|
|
94
95
|
{
|
|
95
96
|
role: "status",
|
|
96
97
|
className,
|
|
97
|
-
icon: icon ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
98
|
+
icon: icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.EmptyBoxIllustration, {}),
|
|
98
99
|
title: title ?? children,
|
|
99
100
|
description,
|
|
100
101
|
action
|
|
@@ -113,11 +114,11 @@ function ErrorState({
|
|
|
113
114
|
{
|
|
114
115
|
role: "alert",
|
|
115
116
|
className,
|
|
116
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
117
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.LucideIcon, { iconComponentName: "CircleAlert", size: 36 }),
|
|
117
118
|
iconClassName: "text-danger30",
|
|
118
119
|
title,
|
|
119
120
|
description,
|
|
120
|
-
action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
121
|
+
action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Button, { type: "button", variant: "primary", onClick: onRetry, children: retryLabel }) : null
|
|
121
122
|
}
|
|
122
123
|
);
|
|
123
124
|
}
|
|
@@ -174,12 +175,12 @@ function ListPage({
|
|
|
174
175
|
return () => document.removeEventListener("keydown", onKey);
|
|
175
176
|
}, [detailOpen]);
|
|
176
177
|
const resetButton = onResetFilters ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
177
|
-
|
|
178
|
+
chunkESAMXUUJ_cjs.Button,
|
|
178
179
|
{
|
|
179
180
|
type: "button",
|
|
180
181
|
variant: "secondaryOutline",
|
|
181
182
|
onClick: onResetFilters,
|
|
182
|
-
className:
|
|
183
|
+
className: chunkOQOBPYZT_cjs.cn(filtersActive === false && "invisible"),
|
|
183
184
|
"aria-hidden": filtersActive === false || void 0,
|
|
184
185
|
children: [
|
|
185
186
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCcw, { size: 16, "aria-hidden": true }),
|
|
@@ -203,7 +204,7 @@ function ListPage({
|
|
|
203
204
|
const quick = quickFilter ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-[8px]", children: [
|
|
204
205
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-small-regular font-medium text-sys-text-subtle", children: quickFilter.label }),
|
|
205
206
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
206
|
-
|
|
207
|
+
chunkESAMXUUJ_cjs.ToggleGroup,
|
|
207
208
|
{
|
|
208
209
|
type: "multiple",
|
|
209
210
|
variant: "outline",
|
|
@@ -215,9 +216,9 @@ function ListPage({
|
|
|
215
216
|
quickFilter.onChange(pressedAll ? [] : next.filter((v) => v !== QUICK_ALL));
|
|
216
217
|
},
|
|
217
218
|
children: [
|
|
218
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
219
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
|
|
219
220
|
quickFilter.options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
220
|
-
|
|
221
|
+
chunkESAMXUUJ_cjs.ToggleGroupItem,
|
|
221
222
|
{
|
|
222
223
|
value: o.value,
|
|
223
224
|
count: o.count,
|
|
@@ -258,7 +259,7 @@ function ListPage({
|
|
|
258
259
|
className: "pt-[32px] pb-[16px]",
|
|
259
260
|
title: content.title,
|
|
260
261
|
description: content.description ?? content.children,
|
|
261
|
-
action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
262
|
+
action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Button, { type: "button", variant: "secondaryLink", onClick: () => resetRef.current?.(), children: "\uD544\uD130 \uCD08\uAE30\uD654" }) : null
|
|
262
263
|
}
|
|
263
264
|
);
|
|
264
265
|
},
|
|
@@ -270,7 +271,7 @@ function ListPage({
|
|
|
270
271
|
);
|
|
271
272
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
272
273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
273
|
-
|
|
274
|
+
chunkESAMXUUJ_cjs.PageHeader,
|
|
274
275
|
{
|
|
275
276
|
title,
|
|
276
277
|
description,
|
|
@@ -279,19 +280,19 @@ function ListPage({
|
|
|
279
280
|
bottomRight: filterRow
|
|
280
281
|
}
|
|
281
282
|
),
|
|
282
|
-
/* @__PURE__ */ jsxRuntime.jsx("section", { "aria-label": title, className: "px-[24px] py-[32px]", children: error ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
283
|
+
/* @__PURE__ */ jsxRuntime.jsx("section", { "aria-label": title, className: "px-[24px] py-[32px]", children: error ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Alert, { variant: "danger", children: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.AlertDescription, { children: error }) }) : (
|
|
283
284
|
// 상세 패널(detail)이 있으면 표 쪽이 줄고 패널이 오른쪽에 나란히 선다 — 목록 맥락을 유지한 채 상세를 본다
|
|
284
285
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-[24px]", children: [
|
|
285
286
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
286
287
|
caption,
|
|
287
288
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
288
|
-
|
|
289
|
+
chunkESAMXUUJ_cjs.AgGridTable,
|
|
289
290
|
{
|
|
290
291
|
rowData: rows,
|
|
291
292
|
columnDefs,
|
|
292
293
|
loading,
|
|
293
294
|
noRowsOverlayComponent: EmptyOverlay,
|
|
294
|
-
onSortChanged: onSortChange ? (e) => onSortChange(
|
|
295
|
+
onSortChanged: onSortChange ? (e) => onSortChange(chunkESAMXUUJ_cjs.getSortedColumnState(e).value) : void 0,
|
|
295
296
|
onRowClicked: onRowClick ? (e) => {
|
|
296
297
|
if (e.data) onRowClick(e.data);
|
|
297
298
|
} : void 0,
|
|
@@ -301,8 +302,8 @@ function ListPage({
|
|
|
301
302
|
rowClassRules
|
|
302
303
|
}
|
|
303
304
|
),
|
|
304
|
-
pagination ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
305
|
-
|
|
305
|
+
pagination ? /* @__PURE__ */ jsxRuntime.jsx(chunkOQOBPYZT_cjs.TablePagination, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
306
|
+
chunkESAMXUUJ_cjs.Pagination,
|
|
306
307
|
{
|
|
307
308
|
total: pagination.total,
|
|
308
309
|
rowsPerPage: pagination.pageSize,
|
|
@@ -315,13 +316,13 @@ function ListPage({
|
|
|
315
316
|
// 나란한 상세 패널: 제목·설명·닫기 → 본문 → (안내) → 버튼 줄. 스크롤해도 따라오게 sticky. Card 와 같은 테두리·라운드(그림자 없음).
|
|
316
317
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe landmark-complementary-is-top-level) 이름 있는 section — DetailPage 의 aside 와 같다
|
|
317
318
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
318
|
-
|
|
319
|
+
chunkESAMXUUJ_cjs.Panel,
|
|
319
320
|
{
|
|
320
321
|
title: detail.title,
|
|
321
322
|
description: detail.description,
|
|
322
323
|
padding: "large",
|
|
323
324
|
titleRight: /* @__PURE__ */ jsxRuntime.jsx(
|
|
324
|
-
|
|
325
|
+
chunkOQOBPYZT_cjs.IconButton,
|
|
325
326
|
{
|
|
326
327
|
type: "button",
|
|
327
328
|
variant: "secondary",
|
|
@@ -332,7 +333,7 @@ function ListPage({
|
|
|
332
333
|
),
|
|
333
334
|
note: detail.note,
|
|
334
335
|
footer: detail.footer,
|
|
335
|
-
className:
|
|
336
|
+
className: chunkOQOBPYZT_cjs.cn("sticky top-[24px] shrink-0", DETAIL_WIDTH[detail.width ?? "medium"]),
|
|
336
337
|
children: detail.children
|
|
337
338
|
}
|
|
338
339
|
)
|
|
@@ -350,10 +351,10 @@ function MoreMenu({
|
|
|
350
351
|
const select = (fn) => () => {
|
|
351
352
|
pendingRef.current = fn;
|
|
352
353
|
};
|
|
353
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
354
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
354
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DropdownMenu, { children: [
|
|
355
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOQOBPYZT_cjs.IconButton, { ref: triggerRef, variant: "secondary", "aria-label": "\uB354\uBCF4\uAE30", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { size: 24 }) }) }),
|
|
355
356
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
356
|
-
|
|
357
|
+
chunkESAMXUUJ_cjs.DropdownMenuContent,
|
|
357
358
|
{
|
|
358
359
|
align: "end",
|
|
359
360
|
onCloseAutoFocus: (e) => {
|
|
@@ -364,10 +365,10 @@ function MoreMenu({
|
|
|
364
365
|
fn?.();
|
|
365
366
|
},
|
|
366
367
|
children: [
|
|
367
|
-
items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
368
|
-
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
368
|
+
items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DropdownMenuItem, { disabled, onSelect: select(onClick), children }, i)),
|
|
369
|
+
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DropdownMenuSeparator, {}) : null,
|
|
369
370
|
deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
370
|
-
|
|
371
|
+
chunkESAMXUUJ_cjs.DropdownMenuItem,
|
|
371
372
|
{
|
|
372
373
|
variant: "danger",
|
|
373
374
|
disabled: deleteAction.disabled,
|
|
@@ -415,7 +416,7 @@ function DetailPage({
|
|
|
415
416
|
body = // 넓은 화면: 본문 2 : 패널 1 + 세로선. 좁은 화면: 세로로 쌓이고 패널은 제목 + 가로선으로 시작한다
|
|
416
417
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px] xl:grid-cols-[2fr_1fr] xl:items-start", children: [
|
|
417
418
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children }),
|
|
418
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
419
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Panel, { title: asideTitle, children: aside })
|
|
419
420
|
] });
|
|
420
421
|
} else {
|
|
421
422
|
body = children;
|
|
@@ -423,11 +424,11 @@ function DetailPage({
|
|
|
423
424
|
const VISIBLE_SECONDARY = 2;
|
|
424
425
|
const visibleSecondary = secondaryActions?.slice(0, VISIBLE_SECONDARY) ?? [];
|
|
425
426
|
const overflowSecondary = secondaryActions?.slice(VISIBLE_SECONDARY) ?? [];
|
|
426
|
-
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
427
|
+
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Button, { type: "button", variant: "primaryBold", ...primaryAction }) : null;
|
|
427
428
|
const moreMenu = (items) => items.length || deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { items, deleteAction }) : null;
|
|
428
429
|
const fullRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
429
430
|
moreMenu(overflowSecondary),
|
|
430
|
-
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
+
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Button, { type: "button", variant: "secondary", ...action }, i)),
|
|
431
432
|
primaryButton
|
|
432
433
|
] });
|
|
433
434
|
const collapsedRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -448,7 +449,7 @@ function DetailPage({
|
|
|
448
449
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "detail-actions-collapsed", className: "flex items-center gap-[8px] @3xl:hidden", children: collapsedRow })
|
|
449
450
|
] }) : primaryButton ? primaryButton : void 0;
|
|
450
451
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
451
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
452
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.PageHeader, { ...header, actions: actionRow }),
|
|
452
453
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
453
454
|
"section",
|
|
454
455
|
{
|
|
@@ -456,7 +457,7 @@ function DetailPage({
|
|
|
456
457
|
className: "flex flex-col gap-[24px] px-[24px] py-[24px]",
|
|
457
458
|
children: [
|
|
458
459
|
banner,
|
|
459
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
460
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkOQOBPYZT_cjs.cn("w-full", width === "panel" && "mx-auto max-w-[900px]"), children: [
|
|
460
461
|
note,
|
|
461
462
|
body
|
|
462
463
|
] })
|
|
@@ -478,7 +479,7 @@ function useFormShell({
|
|
|
478
479
|
}
|
|
479
480
|
function FormError({ error, className }) {
|
|
480
481
|
if (!error) return null;
|
|
481
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.AlertDescription, { children: error }) });
|
|
482
483
|
}
|
|
483
484
|
function FormActions({
|
|
484
485
|
busy,
|
|
@@ -490,7 +491,7 @@ function FormActions({
|
|
|
490
491
|
}) {
|
|
491
492
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
492
493
|
onCancel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
493
|
-
|
|
494
|
+
chunkESAMXUUJ_cjs.Button,
|
|
494
495
|
{
|
|
495
496
|
type: "button",
|
|
496
497
|
variant: "secondaryOutline",
|
|
@@ -501,7 +502,7 @@ function FormActions({
|
|
|
501
502
|
}
|
|
502
503
|
) : null,
|
|
503
504
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
504
|
-
|
|
505
|
+
chunkESAMXUUJ_cjs.Button,
|
|
505
506
|
{
|
|
506
507
|
type: "submit",
|
|
507
508
|
variant: "primaryBold",
|
|
@@ -553,11 +554,11 @@ function FormPage({
|
|
|
553
554
|
" ",
|
|
554
555
|
"\uD45C\uC2DC\uB294 \uD544\uC218 \uC785\uB825 \uD56D\uBAA9\uC785\uB2C8\uB2E4"
|
|
555
556
|
] }) : null,
|
|
556
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
557
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
557
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { id: formId, noValidate: true, onSubmit: handleSubmit, children: [
|
|
558
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.FormSectionLevelContext.Provider, { value: 2, children }),
|
|
558
559
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" }),
|
|
559
560
|
aside ? null : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
560
|
-
|
|
561
|
+
chunkESAMXUUJ_cjs.FormFooter,
|
|
561
562
|
{
|
|
562
563
|
align: "end",
|
|
563
564
|
className: "mt-[24px] border-t border-sys-divider-subtle pt-[16px]",
|
|
@@ -569,9 +570,9 @@ function FormPage({
|
|
|
569
570
|
const column = canvas === "subtle" ? (
|
|
570
571
|
// 폼 전체를 흰 Card 하나로(섹션 사이 구분선은 그대로). 위 8px 는 첫 FormSection 의 pt-[16px] 과 더해 24
|
|
571
572
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
572
|
-
|
|
573
|
+
chunkESAMXUUJ_cjs.Card,
|
|
573
574
|
{
|
|
574
|
-
className:
|
|
575
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
575
576
|
"w-full max-w-[var(--max-w-form-control)] px-[24px] pb-[24px] pt-[8px]",
|
|
576
577
|
align === "center" && !aside && "mx-auto"
|
|
577
578
|
),
|
|
@@ -581,7 +582,7 @@ function FormPage({
|
|
|
581
582
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
582
583
|
"div",
|
|
583
584
|
{
|
|
584
|
-
className:
|
|
585
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
585
586
|
"w-full max-w-[var(--max-w-form-control)]",
|
|
586
587
|
align === "center" && !aside && "mx-auto"
|
|
587
588
|
),
|
|
@@ -590,9 +591,9 @@ function FormPage({
|
|
|
590
591
|
);
|
|
591
592
|
return (
|
|
592
593
|
// subtle 의 캔버스 회색은 기존 토큰(grayscale20, 진단 18-A 의 f7 변형)을 쓴다 — 채택되면 전용 sys 토큰으로 올린다
|
|
593
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
594
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkOQOBPYZT_cjs.cn("w-full", canvas === "subtle" && "bg-sys-background-hover"), children: [
|
|
594
595
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
595
|
-
|
|
596
|
+
chunkESAMXUUJ_cjs.PageHeader,
|
|
596
597
|
{
|
|
597
598
|
title,
|
|
598
599
|
description,
|
|
@@ -606,7 +607,7 @@ function FormPage({
|
|
|
606
607
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe) 이름 있는 section (DetailPage aside 와 같은 꼴)
|
|
607
608
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px] xl:grid-cols-[minmax(0,var(--max-w-form-control))_minmax(280px,1fr)] xl:items-start", children: [
|
|
608
609
|
column,
|
|
609
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
610
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.Panel, { title: asideTitle, className: "xl:sticky xl:top-[24px]", children: [
|
|
610
611
|
aside,
|
|
611
612
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
612
613
|
"div",
|
|
@@ -643,23 +644,23 @@ function FormDrawer({
|
|
|
643
644
|
if (!next && busy) return;
|
|
644
645
|
onOpenChange(next);
|
|
645
646
|
};
|
|
646
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
647
|
-
|
|
647
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
648
|
+
chunkESAMXUUJ_cjs.DrawerContent,
|
|
648
649
|
{
|
|
649
650
|
side,
|
|
650
651
|
size,
|
|
651
652
|
...description ? {} : { "aria-describedby": void 0 },
|
|
652
653
|
children: [
|
|
653
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
654
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
655
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
654
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerHeader, { children: [
|
|
655
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerTitle, { children: title }),
|
|
656
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerDescription, { children: description }) : null
|
|
656
657
|
] }),
|
|
657
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
658
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
658
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex min-h-0 flex-1 flex-col", children: [
|
|
659
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerBody, { className: "px-[24px]", children: [
|
|
659
660
|
children,
|
|
660
661
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" })
|
|
661
662
|
] }),
|
|
662
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
663
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
663
664
|
FormActions,
|
|
664
665
|
{
|
|
665
666
|
busy,
|
|
@@ -694,21 +695,21 @@ function FormDialog({
|
|
|
694
695
|
if (!next && busy) return;
|
|
695
696
|
onOpenChange(next);
|
|
696
697
|
};
|
|
697
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
698
|
-
|
|
698
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
699
|
+
chunkESAMXUUJ_cjs.DialogContent,
|
|
699
700
|
{
|
|
700
701
|
width,
|
|
701
702
|
hideCloseButton: busy,
|
|
702
703
|
...description ? {} : { "aria-describedby": void 0 },
|
|
703
704
|
children: [
|
|
704
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
705
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
706
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
705
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DialogHeader, { children: [
|
|
706
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DialogTitle, { children: title }),
|
|
707
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DialogDescription, { children: description }) : null
|
|
707
708
|
] }),
|
|
708
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
709
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex flex-col gap-[16px]", children: [
|
|
709
710
|
children,
|
|
710
711
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error }),
|
|
711
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
712
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
712
713
|
FormActions,
|
|
713
714
|
{
|
|
714
715
|
busy,
|
|
@@ -740,7 +741,7 @@ function StatTile({
|
|
|
740
741
|
}) {
|
|
741
742
|
const labelId = react.useId();
|
|
742
743
|
const percent = ratio == null ? null : Math.round(Math.min(Math.max(ratio, 0), 1) * 100);
|
|
743
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
744
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.Card, { className: "relative gap-[4px] p-[16px]", children: [
|
|
744
745
|
/* @__PURE__ */ jsxRuntime.jsx("span", { id: labelId, className: "text-h6 text-sys-text-subtle", children: href ? (
|
|
745
746
|
// 타일 전체를 클릭 영역으로: 링크의 ::after 를 Card 크기로 늘린다
|
|
746
747
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -752,7 +753,7 @@ function StatTile({
|
|
|
752
753
|
}
|
|
753
754
|
)
|
|
754
755
|
) : label }),
|
|
755
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
756
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Skeleton, { role: "status", "aria-label": "\uBD88\uB7EC\uC624\uB294 \uC911", className: "h-[32px] w-[80px]" }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: chunkOQOBPYZT_cjs.cn("flex items-center gap-[6px] text-h2", TONE_TEXT[tone]), children: [
|
|
756
757
|
tone !== "default" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TriangleAlert, { "aria-hidden": true, size: 20, className: "shrink-0" }) : null,
|
|
757
758
|
value
|
|
758
759
|
] }),
|
|
@@ -768,7 +769,7 @@ function StatTile({
|
|
|
768
769
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
769
770
|
"div",
|
|
770
771
|
{
|
|
771
|
-
className:
|
|
772
|
+
className: chunkOQOBPYZT_cjs.cn("h-full rounded-full", TONE_BAR[tone]),
|
|
772
773
|
style: { width: `${percent}%` }
|
|
773
774
|
}
|
|
774
775
|
)
|
|
@@ -797,7 +798,7 @@ function DashboardLayout({
|
|
|
797
798
|
children
|
|
798
799
|
] });
|
|
799
800
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
800
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
801
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.PageHeader, { ...header, actions }),
|
|
801
802
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
802
803
|
"section",
|
|
803
804
|
{
|
|
@@ -819,9 +820,9 @@ function DashboardSection({ title, action, columns, children }) {
|
|
|
819
820
|
// 1px 간격 + 구분선 색 배경 = 칸 사이 가로·세로 구분선. 칸(DashboardPanel)은 자기 배경을 가진다
|
|
820
821
|
// 2열에서 칸 수가 홀수면 마지막 칸이 두 열을 차지해 빈 칸이 생기지 않게 한다
|
|
821
822
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
822
|
-
|
|
823
|
+
chunkESAMXUUJ_cjs.Card,
|
|
823
824
|
{
|
|
824
|
-
className:
|
|
825
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
825
826
|
"grid grid-cols-1 gap-px overflow-hidden bg-sys-divider-subtler",
|
|
826
827
|
columns === 2 && "xl:grid-cols-2 xl:[&>:last-child:nth-child(odd)]:col-span-2"
|
|
827
828
|
),
|
|
@@ -866,7 +867,523 @@ function DashboardPanel({
|
|
|
866
867
|
body
|
|
867
868
|
] });
|
|
868
869
|
}
|
|
870
|
+
var useIsoLayoutEffect = typeof window === "undefined" ? react.useEffect : react.useLayoutEffect;
|
|
871
|
+
var isEmpty = (content) => content == null || content === "" || content === false;
|
|
872
|
+
var MessageRow = react.memo(function MessageRow2({
|
|
873
|
+
item,
|
|
874
|
+
streaming,
|
|
875
|
+
canRegenerate,
|
|
876
|
+
onRegenerate,
|
|
877
|
+
onFeedback,
|
|
878
|
+
headingLevel
|
|
879
|
+
}) {
|
|
880
|
+
const regenerate = onRegenerate ? () => onRegenerate(item.id) : void 0;
|
|
881
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
882
|
+
chunkESAMXUUJ_cjs.ChatMessage,
|
|
883
|
+
{
|
|
884
|
+
from: item.role,
|
|
885
|
+
headingLevel,
|
|
886
|
+
pending: streaming && isEmpty(item.content),
|
|
887
|
+
streaming,
|
|
888
|
+
error: item.error,
|
|
889
|
+
onRetry: item.error ? regenerate : void 0,
|
|
890
|
+
attachments: item.attachments,
|
|
891
|
+
sources: item.sources,
|
|
892
|
+
meta: item.meta,
|
|
893
|
+
actions: item.actions,
|
|
894
|
+
copyText: item.copyText,
|
|
895
|
+
onRegenerate: canRegenerate && !item.error ? regenerate : void 0,
|
|
896
|
+
onFeedback: onFeedback ? (value) => onFeedback(item.id, value) : void 0,
|
|
897
|
+
feedback: item.feedback,
|
|
898
|
+
children: item.content
|
|
899
|
+
}
|
|
900
|
+
);
|
|
901
|
+
});
|
|
902
|
+
var STATUS = {
|
|
903
|
+
generating: "\uC751\uB2F5\uC744 \uC0DD\uC131\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4",
|
|
904
|
+
done: "\uC751\uB2F5\uC774 \uC644\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4",
|
|
905
|
+
stopped: "\uC751\uB2F5 \uC0DD\uC131\uC744 \uC911\uC9C0\uD588\uC2B5\uB2C8\uB2E4",
|
|
906
|
+
failed: "\uC751\uB2F5\uC744 \uC0DD\uC131\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4"
|
|
907
|
+
};
|
|
908
|
+
function ChatHeader({
|
|
909
|
+
title,
|
|
910
|
+
level,
|
|
911
|
+
historyToggle,
|
|
912
|
+
status,
|
|
913
|
+
titleRight,
|
|
914
|
+
actions
|
|
915
|
+
}) {
|
|
916
|
+
if (title == null && !historyToggle && !titleRight && !actions) return null;
|
|
917
|
+
const Heading = level === 1 ? "h1" : "h2";
|
|
918
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "flex shrink-0 items-center justify-between gap-[12px] border-b border-sys-divider-subtler bg-sys-background px-[16px] py-[8px]", children: [
|
|
919
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-[8px]", children: [
|
|
920
|
+
title != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
921
|
+
Heading,
|
|
922
|
+
{
|
|
923
|
+
className: chunkOQOBPYZT_cjs.cn("truncate text-sys-text-main", level === 1 ? "text-h4" : "text-h5"),
|
|
924
|
+
children: title
|
|
925
|
+
}
|
|
926
|
+
) : null,
|
|
927
|
+
status ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: status }) : null,
|
|
928
|
+
historyToggle
|
|
929
|
+
] }),
|
|
930
|
+
titleRight || actions ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-[8px]", children: [
|
|
931
|
+
titleRight,
|
|
932
|
+
actions
|
|
933
|
+
] }) : null
|
|
934
|
+
] });
|
|
935
|
+
}
|
|
936
|
+
function ChatConversation({
|
|
937
|
+
variant,
|
|
938
|
+
label,
|
|
939
|
+
messages,
|
|
940
|
+
streaming = false,
|
|
941
|
+
onSend,
|
|
942
|
+
onStop,
|
|
943
|
+
onRegenerate,
|
|
944
|
+
onFeedback,
|
|
945
|
+
welcome,
|
|
946
|
+
note,
|
|
947
|
+
loading = false,
|
|
948
|
+
error,
|
|
949
|
+
onRetry,
|
|
950
|
+
...composerProps
|
|
951
|
+
}) {
|
|
952
|
+
const logRef = react.useRef(null);
|
|
953
|
+
const endRef = react.useRef(null);
|
|
954
|
+
const composerRef = react.useRef(null);
|
|
955
|
+
const atBottomRef = react.useRef(true);
|
|
956
|
+
const [atBottom, setAtBottom] = react.useState(true);
|
|
957
|
+
const sentRef = react.useRef(false);
|
|
958
|
+
const [ownHeight, setOwnHeight] = react.useState(true);
|
|
959
|
+
const contentRef = react.useRef(null);
|
|
960
|
+
const last = messages[messages.length - 1];
|
|
961
|
+
const waiting = streaming && (last == null || last.role === "user");
|
|
962
|
+
const lastFailed = Boolean(last?.error);
|
|
963
|
+
const empty = messages.length === 0 && !waiting;
|
|
964
|
+
const headingLevel = variant === "page" ? 2 : 3;
|
|
965
|
+
const [announce, setAnnounce] = react.useState("");
|
|
966
|
+
const [stopped, setStopped] = react.useState(false);
|
|
967
|
+
const [prevStreaming, setPrevStreaming] = react.useState(streaming);
|
|
968
|
+
if (prevStreaming !== streaming) {
|
|
969
|
+
setPrevStreaming(streaming);
|
|
970
|
+
setAnnounce(
|
|
971
|
+
streaming ? STATUS.generating : stopped ? STATUS.stopped : lastFailed ? STATUS.failed : STATUS.done
|
|
972
|
+
);
|
|
973
|
+
if (streaming) setStopped(false);
|
|
974
|
+
}
|
|
975
|
+
react.useEffect(() => {
|
|
976
|
+
const log = logRef.current;
|
|
977
|
+
if (!log || typeof ResizeObserver === "undefined") return;
|
|
978
|
+
const ro = new ResizeObserver(() => {
|
|
979
|
+
const content = contentRef.current;
|
|
980
|
+
setOwnHeight(
|
|
981
|
+
log.scrollHeight > log.clientHeight + 1 || content != null && log.clientHeight > content.offsetHeight + 1
|
|
982
|
+
);
|
|
983
|
+
});
|
|
984
|
+
ro.observe(log);
|
|
985
|
+
if (contentRef.current) ro.observe(contentRef.current);
|
|
986
|
+
return () => ro.disconnect();
|
|
987
|
+
}, [empty, loading, error]);
|
|
988
|
+
react.useEffect(() => {
|
|
989
|
+
const el = endRef.current;
|
|
990
|
+
const log = logRef.current;
|
|
991
|
+
if (!el || !log || typeof IntersectionObserver === "undefined") return;
|
|
992
|
+
const io = new IntersectionObserver(
|
|
993
|
+
(entries) => {
|
|
994
|
+
const visible = entries[entries.length - 1]?.isIntersecting ?? true;
|
|
995
|
+
atBottomRef.current = visible;
|
|
996
|
+
setAtBottom(visible);
|
|
997
|
+
},
|
|
998
|
+
{ root: ownHeight ? log : null }
|
|
999
|
+
);
|
|
1000
|
+
io.observe(el);
|
|
1001
|
+
return () => io.disconnect();
|
|
1002
|
+
}, [empty, loading, error, ownHeight]);
|
|
1003
|
+
const scrollToEnd = react.useCallback((moveDocument) => {
|
|
1004
|
+
const log = logRef.current;
|
|
1005
|
+
if (!log) return;
|
|
1006
|
+
if (log.scrollHeight > log.clientHeight + 1) log.scrollTop = log.scrollHeight;
|
|
1007
|
+
else if (moveDocument) endRef.current?.scrollIntoView({ block: "nearest" });
|
|
1008
|
+
}, []);
|
|
1009
|
+
react.useEffect(() => {
|
|
1010
|
+
const content = contentRef.current;
|
|
1011
|
+
const log = logRef.current;
|
|
1012
|
+
if (!content || !log || typeof ResizeObserver === "undefined") return;
|
|
1013
|
+
const ro = new ResizeObserver(() => {
|
|
1014
|
+
if (atBottomRef.current) scrollToEnd(sentRef.current);
|
|
1015
|
+
});
|
|
1016
|
+
ro.observe(content);
|
|
1017
|
+
ro.observe(log);
|
|
1018
|
+
return () => ro.disconnect();
|
|
1019
|
+
}, [empty, loading, error, scrollToEnd]);
|
|
1020
|
+
const dockRef = react.useRef(null);
|
|
1021
|
+
const dockTopRef = react.useRef(null);
|
|
1022
|
+
const centered = empty && variant === "page";
|
|
1023
|
+
useIsoLayoutEffect(() => {
|
|
1024
|
+
const el = dockRef.current;
|
|
1025
|
+
const from = dockTopRef.current;
|
|
1026
|
+
if (!el || from == null || typeof el.animate !== "function") return;
|
|
1027
|
+
if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
|
|
1028
|
+
const delta = from - el.getBoundingClientRect().top;
|
|
1029
|
+
if (Math.abs(delta) < 1) return;
|
|
1030
|
+
el.animate([{ transform: `translateY(${delta}px)` }, { transform: "translateY(0)" }], {
|
|
1031
|
+
// 0.15초 — 보내자마자 입력창이 제자리를 찾게 짧게(디자이너 지정 2026-11-18). 기록 바·옆 패널은 0.3초
|
|
1032
|
+
duration: 150,
|
|
1033
|
+
easing: "ease-in-out"
|
|
1034
|
+
});
|
|
1035
|
+
}, [centered]);
|
|
1036
|
+
useIsoLayoutEffect(() => {
|
|
1037
|
+
dockTopRef.current = dockRef.current?.getBoundingClientRect().top ?? null;
|
|
1038
|
+
});
|
|
1039
|
+
const send = (text) => {
|
|
1040
|
+
dockTopRef.current = dockRef.current?.getBoundingClientRect().top ?? dockTopRef.current;
|
|
1041
|
+
atBottomRef.current = true;
|
|
1042
|
+
sentRef.current = true;
|
|
1043
|
+
onSend(text);
|
|
1044
|
+
};
|
|
1045
|
+
const stop = onStop ? () => {
|
|
1046
|
+
setStopped(true);
|
|
1047
|
+
onStop();
|
|
1048
|
+
} : void 0;
|
|
1049
|
+
const composer = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1050
|
+
chunkESAMXUUJ_cjs.ChatComposer,
|
|
1051
|
+
{
|
|
1052
|
+
ref: composerRef,
|
|
1053
|
+
...composerProps,
|
|
1054
|
+
onSubmit: send,
|
|
1055
|
+
streaming,
|
|
1056
|
+
onStop: stop
|
|
1057
|
+
}
|
|
1058
|
+
);
|
|
1059
|
+
const noteLine = note ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 text-center text-small-regular-h text-sys-text-subtler", children: note }) : null;
|
|
1060
|
+
const suggestions = welcome?.suggestions?.length ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "m-0 flex list-none flex-wrap justify-center gap-[8px] p-0", children: welcome.suggestions.map((text) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1061
|
+
chunkESAMXUUJ_cjs.Button,
|
|
1062
|
+
{
|
|
1063
|
+
type: "button",
|
|
1064
|
+
variant: "secondaryOutline",
|
|
1065
|
+
shape: "rounded",
|
|
1066
|
+
weight: "medium",
|
|
1067
|
+
disabled: composerProps.disabled || streaming,
|
|
1068
|
+
onClick: () => send(text),
|
|
1069
|
+
children: text
|
|
1070
|
+
}
|
|
1071
|
+
) }, text)) }) : null;
|
|
1072
|
+
const greeting = welcome ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-[8px] text-center", children: [
|
|
1073
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 text-h2 text-primary30", children: welcome.title }),
|
|
1074
|
+
welcome.description ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 break-keep text-base-regular text-sys-text-subtle wrap-break-word", children: welcome.description }) : null
|
|
1075
|
+
] }) : null;
|
|
1076
|
+
const status = /* @__PURE__ */ jsxRuntime.jsx("div", { role: "status", "aria-live": "polite", "aria-atomic": "true", className: "sr-only", children: announce });
|
|
1077
|
+
if (loading || error) {
|
|
1078
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
1079
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 items-center justify-center px-[24px] py-[32px]", children: loading ? /* @__PURE__ */ jsxRuntime.jsx(LoadingState, { className: "w-full max-w-[768px]", lines: 4 }) : /* @__PURE__ */ jsxRuntime.jsx(ErrorState, { title: "\uB300\uD654\uB97C \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4", description: error, onRetry }) }),
|
|
1080
|
+
status
|
|
1081
|
+
] });
|
|
1082
|
+
}
|
|
1083
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1084
|
+
"div",
|
|
1085
|
+
{
|
|
1086
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
1087
|
+
"flex min-h-0 flex-1 flex-col",
|
|
1088
|
+
// 바탕 그라데이션 층이 이 상자 밖으로 내려가지 않게 쌓임 맥락을 만든다
|
|
1089
|
+
empty && "relative isolate",
|
|
1090
|
+
centered && "justify-center py-[32px]"
|
|
1091
|
+
),
|
|
1092
|
+
children: [
|
|
1093
|
+
empty ? (
|
|
1094
|
+
// 빈 대화의 바탕 — PageHeader 와 같은 그라데이션 토큰을 절반 세기로(더 은은하게). 라이트·다크 모두 토큰을 따른다.
|
|
1095
|
+
// 첫 메시지를 보내면 사라진다(대화 중에는 글 읽기에 방해가 되지 않게 흰 바탕)
|
|
1096
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1097
|
+
"div",
|
|
1098
|
+
{
|
|
1099
|
+
"aria-hidden": true,
|
|
1100
|
+
className: "pointer-events-none absolute inset-0 -z-10 bg-[image:var(--color-page-header-bg)] opacity-50"
|
|
1101
|
+
}
|
|
1102
|
+
)
|
|
1103
|
+
) : null,
|
|
1104
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1105
|
+
"div",
|
|
1106
|
+
{
|
|
1107
|
+
ref: logRef,
|
|
1108
|
+
role: "log",
|
|
1109
|
+
"aria-label": label,
|
|
1110
|
+
"aria-live": "off",
|
|
1111
|
+
tabIndex: empty ? void 0 : 0,
|
|
1112
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
1113
|
+
"outline-none focus-visible:ring-[2px] focus-visible:ring-inset focus-visible:ring-sys-focus-ring-main",
|
|
1114
|
+
centered ? "shrink-0" : "min-h-0 flex-1 overflow-y-auto"
|
|
1115
|
+
),
|
|
1116
|
+
children: [
|
|
1117
|
+
empty ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1118
|
+
"div",
|
|
1119
|
+
{
|
|
1120
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
1121
|
+
"flex flex-col items-center justify-center gap-[24px] px-[24px]",
|
|
1122
|
+
centered ? "pb-[24px]" : "min-h-full py-[32px]"
|
|
1123
|
+
),
|
|
1124
|
+
children: [
|
|
1125
|
+
greeting,
|
|
1126
|
+
suggestions
|
|
1127
|
+
]
|
|
1128
|
+
}
|
|
1129
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1130
|
+
"div",
|
|
1131
|
+
{
|
|
1132
|
+
ref: contentRef,
|
|
1133
|
+
className: "mx-auto flex w-full max-w-[768px] flex-col gap-[24px] px-[24px] pt-[24px] pb-[32px]",
|
|
1134
|
+
children: [
|
|
1135
|
+
messages.map((item, i) => {
|
|
1136
|
+
const isLast = i === messages.length - 1;
|
|
1137
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1138
|
+
MessageRow,
|
|
1139
|
+
{
|
|
1140
|
+
item,
|
|
1141
|
+
streaming: streaming && isLast && item.role === "assistant",
|
|
1142
|
+
canRegenerate: isLast && item.role === "assistant" && !streaming,
|
|
1143
|
+
onRegenerate,
|
|
1144
|
+
onFeedback,
|
|
1145
|
+
headingLevel
|
|
1146
|
+
},
|
|
1147
|
+
item.id
|
|
1148
|
+
);
|
|
1149
|
+
}),
|
|
1150
|
+
waiting ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.ChatMessage, { from: "assistant", pending: true, headingLevel }) : null
|
|
1151
|
+
]
|
|
1152
|
+
}
|
|
1153
|
+
),
|
|
1154
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: endRef, "aria-hidden": true, className: "pointer-events-none -mt-[32px] h-[32px]" })
|
|
1155
|
+
]
|
|
1156
|
+
}
|
|
1157
|
+
),
|
|
1158
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1159
|
+
"div",
|
|
1160
|
+
{
|
|
1161
|
+
ref: dockRef,
|
|
1162
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
1163
|
+
"shrink-0 px-[24px]",
|
|
1164
|
+
// 대화 중에는 아래로 지나가는 메시지를 가린다. 빈 대화는 지나갈 것이 없어 바탕 그라데이션이 비치게 둔다
|
|
1165
|
+
!empty && "bg-sys-background",
|
|
1166
|
+
// sticky 는 부모 높이가 없을 때만 — 높이가 있으면 입력창은 이미 맨 아래다. 늘 걸어 두면 잘라 내는(overflow) 조상이
|
|
1167
|
+
// 대화보다 낮을 때(축소 미리보기 등) 그 조상 바닥에 맞춰 입력창이 위로 끌려 올라간다
|
|
1168
|
+
!centered && "pb-[16px]",
|
|
1169
|
+
!centered && !ownHeight && "sticky bottom-0"
|
|
1170
|
+
),
|
|
1171
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative mx-auto flex w-full max-w-[768px] flex-col gap-[8px]", children: [
|
|
1172
|
+
!atBottom && !empty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1173
|
+
chunkOQOBPYZT_cjs.IconButton,
|
|
1174
|
+
{
|
|
1175
|
+
variant: "outline",
|
|
1176
|
+
shape: "rounded",
|
|
1177
|
+
"aria-label": "\uB9E8 \uC544\uB798\uB85C \uC774\uB3D9",
|
|
1178
|
+
className: "absolute -top-[12px] left-1/2 -translate-x-1/2 -translate-y-full bg-sys-background shadow-gray-small",
|
|
1179
|
+
onClick: () => {
|
|
1180
|
+
atBottomRef.current = true;
|
|
1181
|
+
scrollToEnd(true);
|
|
1182
|
+
composerRef.current?.focus();
|
|
1183
|
+
},
|
|
1184
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowDown, { size: 20 })
|
|
1185
|
+
}
|
|
1186
|
+
) : null,
|
|
1187
|
+
composer,
|
|
1188
|
+
noteLine
|
|
1189
|
+
] })
|
|
1190
|
+
}
|
|
1191
|
+
),
|
|
1192
|
+
status
|
|
1193
|
+
]
|
|
1194
|
+
}
|
|
1195
|
+
);
|
|
1196
|
+
}
|
|
1197
|
+
var SIDE_WIDTH = {
|
|
1198
|
+
small: "w-[360px]",
|
|
1199
|
+
medium: "w-[480px]"
|
|
1200
|
+
};
|
|
1201
|
+
var HISTORY_INLINE_MIN = 960;
|
|
1202
|
+
var SIDE_INLINE_MIN = 1280;
|
|
1203
|
+
function useWidth(ref) {
|
|
1204
|
+
const [width, setWidth] = react.useState(Number.POSITIVE_INFINITY);
|
|
1205
|
+
react.useEffect(() => {
|
|
1206
|
+
const el = ref.current;
|
|
1207
|
+
if (!el || typeof ResizeObserver === "undefined") return;
|
|
1208
|
+
const ro = new ResizeObserver(([entry]) => {
|
|
1209
|
+
if (entry) setWidth(entry.contentRect.width);
|
|
1210
|
+
});
|
|
1211
|
+
ro.observe(el);
|
|
1212
|
+
return () => ro.disconnect();
|
|
1213
|
+
}, [ref]);
|
|
1214
|
+
return width;
|
|
1215
|
+
}
|
|
1216
|
+
function ChatPage({
|
|
1217
|
+
title,
|
|
1218
|
+
status,
|
|
1219
|
+
titleRight,
|
|
1220
|
+
actions,
|
|
1221
|
+
history,
|
|
1222
|
+
sidePanel,
|
|
1223
|
+
...shell
|
|
1224
|
+
}) {
|
|
1225
|
+
const rootRef = react.useRef(null);
|
|
1226
|
+
const width = useWidth(rootRef);
|
|
1227
|
+
const historyInline = width >= HISTORY_INLINE_MIN;
|
|
1228
|
+
const sideInline = width >= SIDE_INLINE_MIN;
|
|
1229
|
+
const [collapsed, setCollapsed] = react.useState(false);
|
|
1230
|
+
const [drawerOpen, setDrawerOpen] = react.useState(false);
|
|
1231
|
+
const [lastSide, setLastSide] = react.useState(sidePanel);
|
|
1232
|
+
if (sidePanel && sidePanel !== lastSide) setLastSide(sidePanel);
|
|
1233
|
+
const side = sidePanel ?? lastSide;
|
|
1234
|
+
const sideOpen = Boolean(sidePanel);
|
|
1235
|
+
const toggle = history ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1236
|
+
chunkOQOBPYZT_cjs.IconButton,
|
|
1237
|
+
{
|
|
1238
|
+
variant: "secondaryLink",
|
|
1239
|
+
"aria-label": historyInline ? collapsed ? "\uB300\uD654 \uAE30\uB85D \uD3BC\uCE58\uAE30" : "\uB300\uD654 \uAE30\uB85D \uC811\uAE30" : "\uB300\uD654 \uAE30\uB85D \uC5F4\uAE30",
|
|
1240
|
+
"aria-expanded": historyInline ? !collapsed : drawerOpen,
|
|
1241
|
+
onClick: () => historyInline ? setCollapsed((v) => !v) : setDrawerOpen(true),
|
|
1242
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, { size: 20 })
|
|
1243
|
+
}
|
|
1244
|
+
) : null;
|
|
1245
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: rootRef, className: "flex h-full min-h-0 w-full flex-col bg-sys-background", children: [
|
|
1246
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1247
|
+
ChatHeader,
|
|
1248
|
+
{
|
|
1249
|
+
level: 1,
|
|
1250
|
+
title,
|
|
1251
|
+
historyToggle: toggle,
|
|
1252
|
+
status,
|
|
1253
|
+
titleRight,
|
|
1254
|
+
actions
|
|
1255
|
+
}
|
|
1256
|
+
),
|
|
1257
|
+
/* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": title, className: "flex min-h-0 flex-1", children: [
|
|
1258
|
+
history && historyInline ? (
|
|
1259
|
+
// 접기·펴기는 바깥 폭만 280 ↔ 0 으로 움직이고 안쪽은 280 그대로 잘라 낸다 — 글자가 줄바꿈되며 출렁이지 않게.
|
|
1260
|
+
// 접힌 뒤에는 visibility:hidden 이라 Tab·스크린리더가 닿지 않는다(visibility 는 줄어드는 동안 보이다가 끝에 숨는다)
|
|
1261
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1262
|
+
"div",
|
|
1263
|
+
{
|
|
1264
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
1265
|
+
"shrink-0 overflow-hidden transition-[width,visibility] duration-300 ease-in-out motion-reduce:transition-none",
|
|
1266
|
+
collapsed ? "invisible w-0" : "visible w-[280px]"
|
|
1267
|
+
),
|
|
1268
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full w-[280px] flex-col border-r border-sys-divider-subtler p-[12px]", children: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.ChatHistory, { ...history, className: "flex-1" }) })
|
|
1269
|
+
}
|
|
1270
|
+
)
|
|
1271
|
+
) : null,
|
|
1272
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(ChatConversation, { variant: "page", label: `${title} \uB300\uD654`, ...shell }) }),
|
|
1273
|
+
sideInline ? (
|
|
1274
|
+
// 열고 닫기는 기록 바와 같은 방식 — 바깥 폭만 0 ↔ 패널 폭으로 움직인다
|
|
1275
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1276
|
+
"div",
|
|
1277
|
+
{
|
|
1278
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
1279
|
+
"shrink-0 overflow-hidden transition-[width,visibility] duration-300 ease-in-out motion-reduce:transition-none",
|
|
1280
|
+
sideOpen ? chunkOQOBPYZT_cjs.cn("visible", SIDE_WIDTH[side?.width ?? "medium"]) : "invisible w-0"
|
|
1281
|
+
),
|
|
1282
|
+
onTransitionEnd: (e) => {
|
|
1283
|
+
if (e.target === e.currentTarget && e.propertyName === "width" && !sidePanel)
|
|
1284
|
+
setLastSide(void 0);
|
|
1285
|
+
},
|
|
1286
|
+
children: side ? (
|
|
1287
|
+
// <aside> 는 다른 landmark 안에 둘 수 없어(axe landmark-complementary-is-top-level) 이름 있는 section(Panel) — ListPage 의 detail 과 같다
|
|
1288
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1289
|
+
chunkESAMXUUJ_cjs.Panel,
|
|
1290
|
+
{
|
|
1291
|
+
appearance: "none",
|
|
1292
|
+
padding: "large",
|
|
1293
|
+
title: side.title,
|
|
1294
|
+
description: side.description,
|
|
1295
|
+
titleRight: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1296
|
+
chunkOQOBPYZT_cjs.IconButton,
|
|
1297
|
+
{
|
|
1298
|
+
type: "button",
|
|
1299
|
+
variant: "secondary",
|
|
1300
|
+
"aria-label": "\uB2EB\uAE30",
|
|
1301
|
+
onClick: side.onClose,
|
|
1302
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 20 })
|
|
1303
|
+
}
|
|
1304
|
+
),
|
|
1305
|
+
footer: side.footer,
|
|
1306
|
+
className: chunkOQOBPYZT_cjs.cn(
|
|
1307
|
+
"h-full min-h-0 border-l border-sys-divider-subtler p-[24px]",
|
|
1308
|
+
SIDE_WIDTH[side.width ?? "medium"]
|
|
1309
|
+
),
|
|
1310
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1311
|
+
"div",
|
|
1312
|
+
{
|
|
1313
|
+
tabIndex: 0,
|
|
1314
|
+
className: "-mx-[4px] min-h-0 flex-1 overflow-y-auto px-[4px] outline-none focus-visible:ring-[2px] focus-visible:ring-inset focus-visible:ring-sys-focus-ring-main",
|
|
1315
|
+
children: side.children
|
|
1316
|
+
}
|
|
1317
|
+
)
|
|
1318
|
+
}
|
|
1319
|
+
)
|
|
1320
|
+
) : null
|
|
1321
|
+
}
|
|
1322
|
+
)
|
|
1323
|
+
) : null
|
|
1324
|
+
] }),
|
|
1325
|
+
history && !historyInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Drawer, { open: drawerOpen, onOpenChange: setDrawerOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerContent, { side: "left", size: "small", children: [
|
|
1326
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerTitle, { children: "\uB300\uD654 \uAE30\uB85D" }) }),
|
|
1327
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 flex-col px-[24px] pb-[24px]", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1328
|
+
chunkESAMXUUJ_cjs.ChatHistory,
|
|
1329
|
+
{
|
|
1330
|
+
...history,
|
|
1331
|
+
className: "flex-1",
|
|
1332
|
+
onSelect: (id) => {
|
|
1333
|
+
history.onSelect(id);
|
|
1334
|
+
setDrawerOpen(false);
|
|
1335
|
+
},
|
|
1336
|
+
onNew: history.onNew ? () => {
|
|
1337
|
+
history.onNew?.();
|
|
1338
|
+
setDrawerOpen(false);
|
|
1339
|
+
} : void 0
|
|
1340
|
+
}
|
|
1341
|
+
) })
|
|
1342
|
+
] }) }) : null,
|
|
1343
|
+
sidePanel && !sideInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Drawer, { open: true, onOpenChange: (open) => open ? void 0 : sidePanel.onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerContent, { side: "right", size: sidePanel.width ?? "medium", children: [
|
|
1344
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerHeader, { children: [
|
|
1345
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerTitle, { children: sidePanel.title }),
|
|
1346
|
+
sidePanel.description ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerDescription, { children: sidePanel.description }) : null
|
|
1347
|
+
] }),
|
|
1348
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerBody, { className: "px-[24px] pb-[24px]", children: sidePanel.children }),
|
|
1349
|
+
sidePanel.footer ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerFooter, { children: sidePanel.footer }) : null
|
|
1350
|
+
] }) }) : null
|
|
1351
|
+
] });
|
|
1352
|
+
}
|
|
1353
|
+
function ChatPanel({
|
|
1354
|
+
title,
|
|
1355
|
+
label = "AI \uB300\uD654",
|
|
1356
|
+
actions,
|
|
1357
|
+
onClose,
|
|
1358
|
+
className,
|
|
1359
|
+
...shell
|
|
1360
|
+
}) {
|
|
1361
|
+
const name = typeof title === "string" ? title : label;
|
|
1362
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1363
|
+
"section",
|
|
1364
|
+
{
|
|
1365
|
+
"aria-label": name,
|
|
1366
|
+
className: chunkOQOBPYZT_cjs.cn("flex h-full min-h-0 w-full flex-col bg-sys-background", className),
|
|
1367
|
+
children: [
|
|
1368
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1369
|
+
ChatHeader,
|
|
1370
|
+
{
|
|
1371
|
+
level: 2,
|
|
1372
|
+
title,
|
|
1373
|
+
actions: actions || onClose ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1374
|
+
actions,
|
|
1375
|
+
onClose ? /* @__PURE__ */ jsxRuntime.jsx(chunkOQOBPYZT_cjs.IconButton, { type: "button", variant: "secondary", "aria-label": "\uB2EB\uAE30", onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 20 }) }) : null
|
|
1376
|
+
] }) : null
|
|
1377
|
+
}
|
|
1378
|
+
),
|
|
1379
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChatConversation, { variant: "panel", label: `${name} \uB300\uD654`, ...shell })
|
|
1380
|
+
]
|
|
1381
|
+
}
|
|
1382
|
+
);
|
|
1383
|
+
}
|
|
869
1384
|
|
|
1385
|
+
exports.ChatPage = ChatPage;
|
|
1386
|
+
exports.ChatPanel = ChatPanel;
|
|
870
1387
|
exports.DashboardLayout = DashboardLayout;
|
|
871
1388
|
exports.DashboardPanel = DashboardPanel;
|
|
872
1389
|
exports.DashboardSection = DashboardSection;
|