@t3q-ui/design-system 1.64.0 → 1.66.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 +27 -0
- package/dist/{chunk-MWVKFIOX.js → chunk-6YLIVCCY.js} +9 -7
- package/dist/chunk-6YLIVCCY.js.map +1 -0
- package/dist/{chunk-LLVWCDR5.cjs → chunk-KDMSA5J3.cjs} +9 -7
- package/dist/chunk-KDMSA5J3.cjs.map +1 -0
- package/dist/{index-DoIChamr.d.cts → index-Guefjty-.d.cts} +1 -1
- package/dist/{index-DoIChamr.d.ts → index-Guefjty-.d.ts} +1 -1
- package/dist/index.cjs +227 -224
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/patterns/index.cjs +155 -101
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +7 -7
- package/dist/patterns/index.d.ts +7 -7
- package/dist/patterns/index.js +88 -34
- package/dist/patterns/index.js.map +1 -1
- package/dist/styles.css +3 -0
- package/mcp/manifests/components.json +25 -20
- package/package.json +1 -1
- package/skills/tds/SKILL.md +5 -5
- package/skills/tds/examples/detail-page.tsx +84 -33
- package/skills/tds/examples/form-page.tsx +1 -1
- package/skills/tds/reference/components.md +12 -12
- package/skills/tds/rules.md +1 -1
- package/dist/chunk-LLVWCDR5.cjs.map +0 -1
- package/dist/chunk-MWVKFIOX.js.map +0 -1
package/dist/patterns/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKDMSA5J3_cjs = require('../chunk-KDMSA5J3.cjs');
|
|
4
4
|
var chunkOQOBPYZT_cjs = require('../chunk-OQOBPYZT.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
@@ -22,7 +22,7 @@ function withSecondaryLine(columns, primaryField, secondaryField) {
|
|
|
22
22
|
return columns.map(
|
|
23
23
|
(c) => c.field === primaryField && c.cellRenderer == null ? {
|
|
24
24
|
...c,
|
|
25
|
-
cellRenderer:
|
|
25
|
+
cellRenderer: chunkKDMSA5J3_cjs.TwoLineCellRenderer,
|
|
26
26
|
cellRendererParams: { ...c.cellRendererParams, secondaryField }
|
|
27
27
|
} : c
|
|
28
28
|
);
|
|
@@ -50,8 +50,8 @@ function LoadingState({ className, lines = 3 }) {
|
|
|
50
50
|
"aria-label": "\uBD88\uB7EC\uC624\uB294 \uC911",
|
|
51
51
|
className: chunkOQOBPYZT_cjs.cn("flex flex-col gap-[12px]", className),
|
|
52
52
|
children: [
|
|
53
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
54
|
-
Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Skeleton, { className: "h-[24px] w-[240px]" }),
|
|
54
|
+
Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Skeleton, { className: chunkOQOBPYZT_cjs.cn("h-[16px]", i % 2 ? "w-3/5" : "w-full") }, i))
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
);
|
|
@@ -95,7 +95,7 @@ function EmptyState({
|
|
|
95
95
|
{
|
|
96
96
|
role: "status",
|
|
97
97
|
className,
|
|
98
|
-
icon: icon ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
98
|
+
icon: icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.EmptyBoxIllustration, {}),
|
|
99
99
|
title: title ?? children,
|
|
100
100
|
description,
|
|
101
101
|
action
|
|
@@ -114,11 +114,11 @@ function ErrorState({
|
|
|
114
114
|
{
|
|
115
115
|
role: "alert",
|
|
116
116
|
className,
|
|
117
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
117
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.LucideIcon, { iconComponentName: "CircleAlert", size: 36 }),
|
|
118
118
|
iconClassName: "text-danger30",
|
|
119
119
|
title,
|
|
120
120
|
description,
|
|
121
|
-
action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
121
|
+
action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Button, { type: "button", variant: "primary", onClick: onRetry, children: retryLabel }) : null
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
}
|
|
@@ -175,7 +175,7 @@ function ListPage({
|
|
|
175
175
|
return () => document.removeEventListener("keydown", onKey);
|
|
176
176
|
}, [detailOpen]);
|
|
177
177
|
const resetButton = onResetFilters ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
178
|
-
|
|
178
|
+
chunkKDMSA5J3_cjs.Button,
|
|
179
179
|
{
|
|
180
180
|
type: "button",
|
|
181
181
|
variant: "secondaryOutline",
|
|
@@ -204,7 +204,7 @@ function ListPage({
|
|
|
204
204
|
const quick = quickFilter ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-[8px]", children: [
|
|
205
205
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-small-regular font-medium text-sys-text-subtle", children: quickFilter.label }),
|
|
206
206
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
207
|
-
|
|
207
|
+
chunkKDMSA5J3_cjs.ToggleGroup,
|
|
208
208
|
{
|
|
209
209
|
type: "multiple",
|
|
210
210
|
variant: "outline",
|
|
@@ -216,9 +216,9 @@ function ListPage({
|
|
|
216
216
|
quickFilter.onChange(pressedAll ? [] : next.filter((v) => v !== QUICK_ALL));
|
|
217
217
|
},
|
|
218
218
|
children: [
|
|
219
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
219
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
|
|
220
220
|
quickFilter.options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
221
|
-
|
|
221
|
+
chunkKDMSA5J3_cjs.ToggleGroupItem,
|
|
222
222
|
{
|
|
223
223
|
value: o.value,
|
|
224
224
|
count: o.count,
|
|
@@ -259,7 +259,7 @@ function ListPage({
|
|
|
259
259
|
className: "pt-[32px] pb-[16px]",
|
|
260
260
|
title: content.title,
|
|
261
261
|
description: content.description ?? content.children,
|
|
262
|
-
action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
262
|
+
action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Button, { type: "button", variant: "secondaryLink", onClick: () => resetRef.current?.(), children: "\uD544\uD130 \uCD08\uAE30\uD654" }) : null
|
|
263
263
|
}
|
|
264
264
|
);
|
|
265
265
|
},
|
|
@@ -271,7 +271,7 @@ function ListPage({
|
|
|
271
271
|
);
|
|
272
272
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
273
273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
274
|
-
|
|
274
|
+
chunkKDMSA5J3_cjs.PageHeader,
|
|
275
275
|
{
|
|
276
276
|
title,
|
|
277
277
|
description,
|
|
@@ -280,19 +280,19 @@ function ListPage({
|
|
|
280
280
|
bottomRight: filterRow
|
|
281
281
|
}
|
|
282
282
|
),
|
|
283
|
-
/* @__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(chunkKDMSA5J3_cjs.Alert, { variant: "danger", children: /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.AlertDescription, { children: error }) }) : (
|
|
284
284
|
// 상세 패널(detail)이 있으면 표 쪽이 줄고 패널이 오른쪽에 나란히 선다 — 목록 맥락을 유지한 채 상세를 본다
|
|
285
285
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-[24px]", children: [
|
|
286
286
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
287
287
|
caption,
|
|
288
288
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
289
|
-
|
|
289
|
+
chunkKDMSA5J3_cjs.AgGridTable,
|
|
290
290
|
{
|
|
291
291
|
rowData: rows,
|
|
292
292
|
columnDefs,
|
|
293
293
|
loading,
|
|
294
294
|
noRowsOverlayComponent: EmptyOverlay,
|
|
295
|
-
onSortChanged: onSortChange ? (e) => onSortChange(
|
|
295
|
+
onSortChanged: onSortChange ? (e) => onSortChange(chunkKDMSA5J3_cjs.getSortedColumnState(e).value) : void 0,
|
|
296
296
|
onRowClicked: onRowClick ? (e) => {
|
|
297
297
|
if (e.data) onRowClick(e.data);
|
|
298
298
|
} : void 0,
|
|
@@ -303,7 +303,7 @@ function ListPage({
|
|
|
303
303
|
}
|
|
304
304
|
),
|
|
305
305
|
pagination ? /* @__PURE__ */ jsxRuntime.jsx(chunkOQOBPYZT_cjs.TablePagination, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
306
|
-
|
|
306
|
+
chunkKDMSA5J3_cjs.Pagination,
|
|
307
307
|
{
|
|
308
308
|
total: pagination.total,
|
|
309
309
|
rowsPerPage: pagination.pageSize,
|
|
@@ -316,7 +316,7 @@ function ListPage({
|
|
|
316
316
|
// 나란한 상세 패널: 제목·설명·닫기 → 본문 → (안내) → 버튼 줄. 스크롤해도 따라오게 sticky. Card 와 같은 테두리·라운드(그림자 없음).
|
|
317
317
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe landmark-complementary-is-top-level) 이름 있는 section — DetailPage 의 aside 와 같다
|
|
318
318
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
319
|
-
|
|
319
|
+
chunkKDMSA5J3_cjs.Panel,
|
|
320
320
|
{
|
|
321
321
|
title: detail.title,
|
|
322
322
|
description: detail.description,
|
|
@@ -351,10 +351,10 @@ function MoreMenu({
|
|
|
351
351
|
const select = (fn) => () => {
|
|
352
352
|
pendingRef.current = fn;
|
|
353
353
|
};
|
|
354
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
355
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
354
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.DropdownMenu, { children: [
|
|
355
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_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 }) }) }),
|
|
356
356
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
357
|
-
|
|
357
|
+
chunkKDMSA5J3_cjs.DropdownMenuContent,
|
|
358
358
|
{
|
|
359
359
|
align: "end",
|
|
360
360
|
onCloseAutoFocus: (e) => {
|
|
@@ -365,10 +365,10 @@ function MoreMenu({
|
|
|
365
365
|
fn?.();
|
|
366
366
|
},
|
|
367
367
|
children: [
|
|
368
|
-
items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
369
|
-
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
368
|
+
items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DropdownMenuItem, { disabled, onSelect: select(onClick), children }, i)),
|
|
369
|
+
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DropdownMenuSeparator, {}) : null,
|
|
370
370
|
deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
371
|
-
|
|
371
|
+
chunkKDMSA5J3_cjs.DropdownMenuItem,
|
|
372
372
|
{
|
|
373
373
|
variant: "danger",
|
|
374
374
|
disabled: deleteAction.disabled,
|
|
@@ -413,10 +413,15 @@ function DetailPage({
|
|
|
413
413
|
}
|
|
414
414
|
);
|
|
415
415
|
} else if (aside) {
|
|
416
|
-
body = // 넓은 화면: 본문
|
|
417
|
-
|
|
416
|
+
body = // 넓은 화면: 본문(남는 폭) + 패널 408(`--w-page-aside` — FormPage 검토 패널과 같은 폭, 2026-11-22. 그전엔 본문 2 : 패널 1 이라
|
|
417
|
+
// 1440 폭에서 패널이 456px 로 폼과 달랐다). 좁은 화면: 세로로 쌓이고 패널은 본문 아래.
|
|
418
|
+
// 나란히 놓는 조건은 **본문 칸 폭 896 이상**(@4xl, 아래 @container) 하나 — 화면 폭은 보지 않는다(FormPage 와 같은 규칙, 2026-11-22).
|
|
419
|
+
// 화면 폭(xl 1280)으로 판정하던 때는 1279px 화면에서 자리가 1231px 남아도 패널이 내려갔고(조사한 서비스들은 900px 에서도 옆에 둔다),
|
|
420
|
+
// 화면은 넓어도 칸이 좁으면(사이드바·분할 화면) 고정 폭 패널이 왼쪽 열을 눌렀다 — 800px 칸에서 왼쪽 320px, 표가 가로로 넘쳐 axe
|
|
421
|
+
// scrollable-region-focusable. 896 이면 왼쪽 열이 최소 464px(표는 360px 까지 넘치지 않는다)
|
|
422
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px] @4xl:grid-cols-[minmax(0,1fr)_var(--w-page-aside)] @4xl:items-start", children: [
|
|
418
423
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children }),
|
|
419
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
424
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Panel, { title: asideTitle, className: "@4xl:sticky @4xl:top-[24px]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "@container/aside", children: aside }) })
|
|
420
425
|
] });
|
|
421
426
|
} else {
|
|
422
427
|
body = children;
|
|
@@ -424,11 +429,11 @@ function DetailPage({
|
|
|
424
429
|
const VISIBLE_SECONDARY = 2;
|
|
425
430
|
const visibleSecondary = secondaryActions?.slice(0, VISIBLE_SECONDARY) ?? [];
|
|
426
431
|
const overflowSecondary = secondaryActions?.slice(VISIBLE_SECONDARY) ?? [];
|
|
427
|
-
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
432
|
+
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Button, { type: "button", variant: "primaryBold", ...primaryAction }) : null;
|
|
428
433
|
const moreMenu = (items) => items.length || deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { items, deleteAction }) : null;
|
|
429
434
|
const fullRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
430
435
|
moreMenu(overflowSecondary),
|
|
431
|
-
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
436
|
+
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Button, { type: "button", variant: "secondary", ...action }, i)),
|
|
432
437
|
primaryButton
|
|
433
438
|
] });
|
|
434
439
|
const collapsedRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -449,7 +454,7 @@ function DetailPage({
|
|
|
449
454
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "detail-actions-collapsed", className: "flex items-center gap-[8px] @3xl:hidden", children: collapsedRow })
|
|
450
455
|
] }) : primaryButton ? primaryButton : void 0;
|
|
451
456
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
452
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
457
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.PageHeader, { ...header, actions: actionRow }),
|
|
453
458
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
454
459
|
"section",
|
|
455
460
|
{
|
|
@@ -457,7 +462,7 @@ function DetailPage({
|
|
|
457
462
|
className: "flex flex-col gap-[24px] px-[24px] py-[24px]",
|
|
458
463
|
children: [
|
|
459
464
|
banner,
|
|
460
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkOQOBPYZT_cjs.cn("w-full", width === "panel" && "mx-auto max-w-[900px]"), children: [
|
|
465
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkOQOBPYZT_cjs.cn("@container w-full", width === "panel" && "mx-auto max-w-[900px]"), children: [
|
|
461
466
|
note,
|
|
462
467
|
body
|
|
463
468
|
] })
|
|
@@ -479,7 +484,7 @@ function useFormShell({
|
|
|
479
484
|
}
|
|
480
485
|
function FormError({ error, className }) {
|
|
481
486
|
if (!error) return null;
|
|
482
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
487
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.AlertDescription, { children: error }) });
|
|
483
488
|
}
|
|
484
489
|
function FormActions({
|
|
485
490
|
busy,
|
|
@@ -491,7 +496,7 @@ function FormActions({
|
|
|
491
496
|
}) {
|
|
492
497
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
493
498
|
onCancel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
494
|
-
|
|
499
|
+
chunkKDMSA5J3_cjs.Button,
|
|
495
500
|
{
|
|
496
501
|
type: "button",
|
|
497
502
|
variant: "secondaryOutline",
|
|
@@ -502,7 +507,7 @@ function FormActions({
|
|
|
502
507
|
}
|
|
503
508
|
) : null,
|
|
504
509
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
505
|
-
|
|
510
|
+
chunkKDMSA5J3_cjs.Button,
|
|
506
511
|
{
|
|
507
512
|
type: "submit",
|
|
508
513
|
variant: "primaryBold",
|
|
@@ -554,11 +559,11 @@ function FormPage({
|
|
|
554
559
|
" ",
|
|
555
560
|
"\uD45C\uC2DC\uB294 \uD544\uC218 \uC785\uB825 \uD56D\uBAA9\uC785\uB2C8\uB2E4"
|
|
556
561
|
] }) : null,
|
|
557
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
558
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
562
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { id: formId, noValidate: true, onSubmit: handleSubmit, children: [
|
|
563
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.FormSectionLevelContext.Provider, { value: 2, children }),
|
|
559
564
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" }),
|
|
560
565
|
aside ? null : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
561
|
-
|
|
566
|
+
chunkKDMSA5J3_cjs.FormFooter,
|
|
562
567
|
{
|
|
563
568
|
align: "end",
|
|
564
569
|
className: "mt-[24px] border-t border-sys-divider-subtle pt-[16px]",
|
|
@@ -570,7 +575,7 @@ function FormPage({
|
|
|
570
575
|
const column = canvas === "subtle" ? (
|
|
571
576
|
// 폼 전체를 흰 Card 하나로(섹션 사이 구분선은 그대로). 위 8px 는 첫 FormSection 의 pt-[16px] 과 더해 24
|
|
572
577
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
573
|
-
|
|
578
|
+
chunkKDMSA5J3_cjs.Card,
|
|
574
579
|
{
|
|
575
580
|
className: chunkOQOBPYZT_cjs.cn(
|
|
576
581
|
"w-full max-w-[var(--max-w-form-control)] px-[24px] pb-[24px] pt-[8px]",
|
|
@@ -593,7 +598,7 @@ function FormPage({
|
|
|
593
598
|
// subtle 의 캔버스 회색은 기존 토큰(grayscale20, 진단 18-A 의 f7 변형)을 쓴다 — 채택되면 전용 sys 토큰으로 올린다
|
|
594
599
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkOQOBPYZT_cjs.cn("w-full", canvas === "subtle" && "bg-sys-background-hover"), children: [
|
|
595
600
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
596
|
-
|
|
601
|
+
chunkKDMSA5J3_cjs.PageHeader,
|
|
597
602
|
{
|
|
598
603
|
title,
|
|
599
604
|
description,
|
|
@@ -602,13 +607,15 @@ function FormPage({
|
|
|
602
607
|
contentMaxWidth
|
|
603
608
|
}
|
|
604
609
|
),
|
|
605
|
-
/* @__PURE__ */ jsxRuntime.jsx("section", { "aria-label": title || "\uBCF8\uBB38", className: "px-[24px] py-[32px]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto w-full", style: { maxWidth: contentMaxWidth }, children: aside ? (
|
|
606
|
-
// 폼 열(최대 720px) + 검토
|
|
610
|
+
/* @__PURE__ */ jsxRuntime.jsx("section", { "aria-label": title || "\uBCF8\uBB38", className: "px-[24px] py-[32px]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "@container mx-auto w-full", style: { maxWidth: contentMaxWidth }, children: aside ? (
|
|
611
|
+
// 폼 열(최대 720px) + 검토 패널 408(`--w-page-aside`). 나란히 놓는 조건은 **본문 칸 폭 896 이상**(@4xl) 하나 — DetailPage aside 와 같은 규칙
|
|
612
|
+
// (2026-11-22). 그전엔 화면 1280 이상(xl)이면 나란히였고 패널이 280px 까지 줄어 값이 말줄임으로 잘렸다(화면 1280 + 사이드바 240 →
|
|
613
|
+
// 폼 688 · 패널 280). 이제 패널은 408 고정, 폼 열이 464~720 에서 줄고, 896 미만이면 패널이 폼 아래로.
|
|
607
614
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe) 이름 있는 section (DetailPage aside 와 같은 꼴)
|
|
608
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px]
|
|
615
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px] @4xl:grid-cols-[minmax(0,var(--max-w-form-control))_var(--w-page-aside)] @4xl:items-start", children: [
|
|
609
616
|
column,
|
|
610
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
611
|
-
aside,
|
|
617
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.Panel, { title: asideTitle, className: "@4xl:sticky @4xl:top-[24px]", children: [
|
|
618
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "@container/aside", children: aside }),
|
|
612
619
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
613
620
|
"div",
|
|
614
621
|
{
|
|
@@ -644,23 +651,23 @@ function FormDrawer({
|
|
|
644
651
|
if (!next && busy) return;
|
|
645
652
|
onOpenChange(next);
|
|
646
653
|
};
|
|
647
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
648
|
-
|
|
654
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
655
|
+
chunkKDMSA5J3_cjs.DrawerContent,
|
|
649
656
|
{
|
|
650
657
|
side,
|
|
651
658
|
size,
|
|
652
659
|
...description ? {} : { "aria-describedby": void 0 },
|
|
653
660
|
children: [
|
|
654
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
655
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
656
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
661
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.DrawerHeader, { children: [
|
|
662
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DrawerTitle, { children: title }),
|
|
663
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DrawerDescription, { children: description }) : null
|
|
657
664
|
] }),
|
|
658
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
659
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
665
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex min-h-0 flex-1 flex-col", children: [
|
|
666
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.DrawerBody, { className: "px-[24px]", children: [
|
|
660
667
|
children,
|
|
661
668
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" })
|
|
662
669
|
] }),
|
|
663
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
670
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DrawerFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
664
671
|
FormActions,
|
|
665
672
|
{
|
|
666
673
|
busy,
|
|
@@ -695,21 +702,21 @@ function FormDialog({
|
|
|
695
702
|
if (!next && busy) return;
|
|
696
703
|
onOpenChange(next);
|
|
697
704
|
};
|
|
698
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
699
|
-
|
|
705
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
706
|
+
chunkKDMSA5J3_cjs.DialogContent,
|
|
700
707
|
{
|
|
701
708
|
width,
|
|
702
709
|
hideCloseButton: busy,
|
|
703
710
|
...description ? {} : { "aria-describedby": void 0 },
|
|
704
711
|
children: [
|
|
705
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
706
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
707
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
712
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.DialogHeader, { children: [
|
|
713
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DialogTitle, { children: title }),
|
|
714
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DialogDescription, { children: description }) : null
|
|
708
715
|
] }),
|
|
709
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
716
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex flex-col gap-[16px]", children: [
|
|
710
717
|
children,
|
|
711
718
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error }),
|
|
712
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
719
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
713
720
|
FormActions,
|
|
714
721
|
{
|
|
715
722
|
busy,
|
|
@@ -741,7 +748,7 @@ function StatTile({
|
|
|
741
748
|
}) {
|
|
742
749
|
const labelId = react.useId();
|
|
743
750
|
const percent = ratio == null ? null : Math.round(Math.min(Math.max(ratio, 0), 1) * 100);
|
|
744
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
751
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.Card, { className: "relative gap-[4px] p-[16px]", children: [
|
|
745
752
|
/* @__PURE__ */ jsxRuntime.jsx("span", { id: labelId, className: "text-h6 text-sys-text-subtle", children: href ? (
|
|
746
753
|
// 타일 전체를 클릭 영역으로: 링크의 ::after 를 Card 크기로 늘린다
|
|
747
754
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -753,7 +760,7 @@ function StatTile({
|
|
|
753
760
|
}
|
|
754
761
|
)
|
|
755
762
|
) : label }),
|
|
756
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
763
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_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: [
|
|
757
764
|
tone !== "default" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TriangleAlert, { "aria-hidden": true, size: 20, className: "shrink-0" }) : null,
|
|
758
765
|
value
|
|
759
766
|
] }),
|
|
@@ -798,7 +805,7 @@ function DashboardLayout({
|
|
|
798
805
|
children
|
|
799
806
|
] });
|
|
800
807
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
801
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
808
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.PageHeader, { ...header, actions }),
|
|
802
809
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
803
810
|
"section",
|
|
804
811
|
{
|
|
@@ -820,7 +827,7 @@ function DashboardSection({ title, action, columns, children }) {
|
|
|
820
827
|
// 1px 간격 + 구분선 색 배경 = 칸 사이 가로·세로 구분선. 칸(DashboardPanel)은 자기 배경을 가진다
|
|
821
828
|
// 2열에서 칸 수가 홀수면 마지막 칸이 두 열을 차지해 빈 칸이 생기지 않게 한다
|
|
822
829
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
823
|
-
|
|
830
|
+
chunkKDMSA5J3_cjs.Card,
|
|
824
831
|
{
|
|
825
832
|
className: chunkOQOBPYZT_cjs.cn(
|
|
826
833
|
"grid grid-cols-1 gap-px overflow-hidden bg-sys-divider-subtler",
|
|
@@ -879,7 +886,7 @@ var MessageRow = react.memo(function MessageRow2({
|
|
|
879
886
|
}) {
|
|
880
887
|
const regenerate = onRegenerate ? () => onRegenerate(item.id) : void 0;
|
|
881
888
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
882
|
-
|
|
889
|
+
chunkKDMSA5J3_cjs.ChatMessage,
|
|
883
890
|
{
|
|
884
891
|
from: item.role,
|
|
885
892
|
headingLevel,
|
|
@@ -1026,7 +1033,7 @@ function ChatConversation({
|
|
|
1026
1033
|
onStop();
|
|
1027
1034
|
} : void 0;
|
|
1028
1035
|
const composer = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1029
|
-
|
|
1036
|
+
chunkKDMSA5J3_cjs.ChatComposer,
|
|
1030
1037
|
{
|
|
1031
1038
|
ref: composerRef,
|
|
1032
1039
|
...composerProps,
|
|
@@ -1037,7 +1044,7 @@ function ChatConversation({
|
|
|
1037
1044
|
);
|
|
1038
1045
|
const noteLine = note ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 text-center text-small-regular-h text-sys-text-subtler", children: note }) : null;
|
|
1039
1046
|
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(
|
|
1040
|
-
|
|
1047
|
+
chunkKDMSA5J3_cjs.Button,
|
|
1041
1048
|
{
|
|
1042
1049
|
type: "button",
|
|
1043
1050
|
variant: "secondaryOutline",
|
|
@@ -1126,7 +1133,7 @@ function ChatConversation({
|
|
|
1126
1133
|
item.id
|
|
1127
1134
|
);
|
|
1128
1135
|
}),
|
|
1129
|
-
waiting ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1136
|
+
waiting ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.ChatMessage, { from: "assistant", pending: true, headingLevel }) : null
|
|
1130
1137
|
]
|
|
1131
1138
|
}
|
|
1132
1139
|
),
|
|
@@ -1227,9 +1234,9 @@ function IconAction({
|
|
|
1227
1234
|
children,
|
|
1228
1235
|
...props
|
|
1229
1236
|
}) {
|
|
1230
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1231
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1232
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1237
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.Tooltip, { children: [
|
|
1238
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOQOBPYZT_cjs.IconButton, { "aria-label": label, ...props, children }) }),
|
|
1239
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.TooltipContent, { side, children: label })
|
|
1233
1240
|
] });
|
|
1234
1241
|
}
|
|
1235
1242
|
function ChatPage({
|
|
@@ -1255,12 +1262,19 @@ function ChatPage({
|
|
|
1255
1262
|
const hasTopRow = !(history && historyInline) || Boolean(status || titleRight || actions);
|
|
1256
1263
|
const bodyRef = react.useRef(null);
|
|
1257
1264
|
const hasHistory = Boolean(history);
|
|
1265
|
+
const focusSearchRef = react.useRef(false);
|
|
1258
1266
|
react.useEffect(() => {
|
|
1259
|
-
bodyRef.current
|
|
1267
|
+
const body = bodyRef.current;
|
|
1268
|
+
if (!body) return;
|
|
1269
|
+
body.toggleAttribute("inert", collapsed);
|
|
1270
|
+
if (!collapsed && focusSearchRef.current) {
|
|
1271
|
+
focusSearchRef.current = false;
|
|
1272
|
+
body.querySelector('input[aria-label="\uB300\uD654 \uAC80\uC0C9"]')?.focus();
|
|
1273
|
+
}
|
|
1260
1274
|
}, [collapsed, historyInline, hasHistory]);
|
|
1261
1275
|
return (
|
|
1262
1276
|
// PageHeader 와 같은 방식(기본 지연) — `actions` 에 넣은 Tooltip 도 이 안에서 동작한다
|
|
1263
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1277
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: rootRef, className: "flex h-full min-h-0 w-full flex-col bg-sys-background", children: [
|
|
1264
1278
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": title, className: "flex min-h-0 flex-1", children: [
|
|
1265
1279
|
history && historyInline ? (
|
|
1266
1280
|
// 기록 바: 접기·펴기는 바깥 폭만 280 ↔ 56(레일)으로 움직인다.
|
|
@@ -1303,18 +1317,33 @@ function ChatPage({
|
|
|
1303
1317
|
)
|
|
1304
1318
|
] }),
|
|
1305
1319
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex min-h-0 flex-1", children: [
|
|
1306
|
-
collapsed && history.onNew ? (
|
|
1307
|
-
// 레일의
|
|
1308
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1320
|
+
collapsed && (history.onNew || history.search) ? (
|
|
1321
|
+
// 레일의 버튼들 — 접힌 동안에만 있다. 펼친 "새 대화"·검색창이 있던 높이에서 나타난다(버튼 32, 사이 12)
|
|
1322
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute top-[2px] left-0 flex flex-col gap-[12px] animate-[fade-in_300ms_ease-in-out] motion-reduce:animate-none", children: [
|
|
1323
|
+
history.onNew ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1324
|
+
IconAction,
|
|
1325
|
+
{
|
|
1326
|
+
variant: "primaryLink",
|
|
1327
|
+
label: "\uC0C8 \uB300\uD654",
|
|
1328
|
+
side: "right",
|
|
1329
|
+
onClick: history.onNew,
|
|
1330
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { size: 20 })
|
|
1331
|
+
}
|
|
1332
|
+
) : null,
|
|
1333
|
+
history.search ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1334
|
+
IconAction,
|
|
1335
|
+
{
|
|
1336
|
+
variant: "secondaryLink",
|
|
1337
|
+
label: "\uB300\uD654 \uAC80\uC0C9",
|
|
1338
|
+
side: "right",
|
|
1339
|
+
onClick: () => {
|
|
1340
|
+
focusSearchRef.current = true;
|
|
1341
|
+
setCollapsed(false);
|
|
1342
|
+
},
|
|
1343
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { size: 20 })
|
|
1344
|
+
}
|
|
1345
|
+
) : null
|
|
1346
|
+
] })
|
|
1318
1347
|
) : null,
|
|
1319
1348
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1320
1349
|
"div",
|
|
@@ -1322,11 +1351,13 @@ function ChatPage({
|
|
|
1322
1351
|
ref: bodyRef,
|
|
1323
1352
|
"aria-hidden": collapsed || void 0,
|
|
1324
1353
|
className: chunkOQOBPYZT_cjs.cn(
|
|
1325
|
-
"flex w-[256px] shrink-0 flex-col
|
|
1354
|
+
"flex w-[256px] shrink-0 flex-col",
|
|
1326
1355
|
SLIDE,
|
|
1327
|
-
|
|
1356
|
+
// visibility 는 숨길 때만 전환에 넣는다(흐려지는 동안 보이다가 끝에 숨는다). 펼칠 때는 바로 보여야 한다 —
|
|
1357
|
+
// visibility 전환은 시작 순간에 아직 hidden 으로 계산돼서, 레일의 검색 버튼이 보내는 포커스가 검색창에 닿지 않는다
|
|
1358
|
+
collapsed ? "invisible opacity-0 transition-[opacity,visibility]" : "visible opacity-100 transition-opacity"
|
|
1328
1359
|
),
|
|
1329
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1360
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.ChatHistory, { ...history, className: "flex-1" })
|
|
1330
1361
|
}
|
|
1331
1362
|
)
|
|
1332
1363
|
] })
|
|
@@ -1399,7 +1430,7 @@ function ChatPage({
|
|
|
1399
1430
|
children: side ? (
|
|
1400
1431
|
// <aside> 는 다른 landmark 안에 둘 수 없어(axe landmark-complementary-is-top-level) 이름 있는 section(Panel) — ListPage 의 detail 과 같다
|
|
1401
1432
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1402
|
-
|
|
1433
|
+
chunkKDMSA5J3_cjs.Panel,
|
|
1403
1434
|
{
|
|
1404
1435
|
appearance: "none",
|
|
1405
1436
|
padding: "large",
|
|
@@ -1435,13 +1466,13 @@ function ChatPage({
|
|
|
1435
1466
|
)
|
|
1436
1467
|
) : null
|
|
1437
1468
|
] }),
|
|
1438
|
-
history && !historyInline ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1439
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1440
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1469
|
+
history && !historyInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.Drawer, { open: drawerOpen, onOpenChange: setDrawerOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.DrawerContent, { side: "left", size: "small", children: [
|
|
1470
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.DrawerHeader, { children: [
|
|
1471
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DrawerTitle, { className: "sr-only", children: "\uB300\uD654 \uAE30\uB85D" }),
|
|
1441
1472
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[24px] min-w-0 items-center pr-[32px] pl-[12px]", children: /* @__PURE__ */ jsxRuntime.jsx(Brand, { logo, title }) })
|
|
1442
1473
|
] }),
|
|
1443
1474
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 flex-col px-[24px] pb-[24px]", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1444
|
-
|
|
1475
|
+
chunkKDMSA5J3_cjs.ChatHistory,
|
|
1445
1476
|
{
|
|
1446
1477
|
...history,
|
|
1447
1478
|
className: "flex-1",
|
|
@@ -1456,14 +1487,37 @@ function ChatPage({
|
|
|
1456
1487
|
}
|
|
1457
1488
|
) })
|
|
1458
1489
|
] }) }) : null,
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1490
|
+
side && !sideInline ? (
|
|
1491
|
+
// 닫을 때 Drawer 를 지우지 않고 open 만 내린다 — 지우면 닫힘 애니메이션이 돌 틈 없이 바로 사라진다.
|
|
1492
|
+
// 닫히는 동안에는 마지막으로 받은 패널(side)을 그대로 그린다
|
|
1493
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1494
|
+
chunkKDMSA5J3_cjs.Drawer,
|
|
1495
|
+
{
|
|
1496
|
+
open: sideOpen,
|
|
1497
|
+
onOpenChange: (open) => {
|
|
1498
|
+
if (!open) sidePanel?.onClose();
|
|
1499
|
+
},
|
|
1500
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1501
|
+
chunkKDMSA5J3_cjs.DrawerContent,
|
|
1502
|
+
{
|
|
1503
|
+
side: "right",
|
|
1504
|
+
size: side.width ?? "medium",
|
|
1505
|
+
onCloseAutoFocus: () => {
|
|
1506
|
+
if (!sidePanel) setLastSide(void 0);
|
|
1507
|
+
},
|
|
1508
|
+
children: [
|
|
1509
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkKDMSA5J3_cjs.DrawerHeader, { children: [
|
|
1510
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DrawerTitle, { children: side.title }),
|
|
1511
|
+
side.description ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DrawerDescription, { children: side.description }) : null
|
|
1512
|
+
] }),
|
|
1513
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DrawerBody, { className: "px-[24px] pb-[24px]", children: side.children }),
|
|
1514
|
+
side.footer ? /* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.DrawerFooter, { children: side.footer }) : null
|
|
1515
|
+
]
|
|
1516
|
+
}
|
|
1517
|
+
)
|
|
1518
|
+
}
|
|
1519
|
+
)
|
|
1520
|
+
) : null
|
|
1467
1521
|
] }) })
|
|
1468
1522
|
);
|
|
1469
1523
|
}
|
|
@@ -1478,7 +1532,7 @@ function ChatPanel({
|
|
|
1478
1532
|
const name = typeof title === "string" ? title : label;
|
|
1479
1533
|
return (
|
|
1480
1534
|
// `actions` 에 Tooltip 을 단 아이콘 버튼을 넣어도 깨지지 않게 감싼다 — PageHeader·ChatPage 와 같은 방식(기본 지연)
|
|
1481
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1535
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKDMSA5J3_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1482
1536
|
"section",
|
|
1483
1537
|
{
|
|
1484
1538
|
"aria-label": name,
|