@t3q-ui/design-system 1.64.0 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/{chunk-MWVKFIOX.js → chunk-M7ZUGQR6.js} +9 -7
- package/dist/chunk-M7ZUGQR6.js.map +1 -0
- package/dist/{chunk-LLVWCDR5.cjs → chunk-RVIZMXPB.cjs} +9 -7
- package/dist/chunk-RVIZMXPB.cjs.map +1 -0
- package/dist/index.cjs +223 -223
- package/dist/index.js +2 -2
- package/dist/patterns/index.cjs +141 -94
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.js +72 -25
- package/dist/patterns/index.js.map +1 -1
- package/mcp/manifests/components.json +1 -1
- package/package.json +1 -1
- package/skills/tds/reference/components.md +1 -1
- package/dist/chunk-LLVWCDR5.cjs.map +0 -1
- package/dist/chunk-MWVKFIOX.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useRestoreFocusToOpener, Stack, sanitizeUserText, Button, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, Checkbox, useFloatingLabel, FloatingLabelOutline, CancelIcon, CLEAR_REVEAL_CLASS, CLEAR_HOST_CLASS, Spinner, useFormControlContext, Tag, Separator, LucideIcon, TextField, Dialog, DialogContent, DialogTitle, Badge } from './chunk-
|
|
2
|
-
export { AG_GRID_LOCALE_KR, AgGridContext, AgGridTable, Alert, AlertActions, AlertDescription, AlertTitle, BADGE_OUTLINE_ACCENT, BALANCED_FILL_MIN_WIDTH, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, ChatComposer, ChatHistory, ChatMessage, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyBoxIllustration, Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, HeaderCheckboxRenderer, LucideIcon, NUMBER_COLUMN_WIDTH, PageHeader, PageHeaderProvider, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, Panel, RowCheckboxRenderer, SORT_ICON_OFFSET_CLASS, Separator, Skeleton, Spinner, Stack, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TextField, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoLineCellRenderer, badgeVariants, buttonVariants, estimateHeaderTextWidth, fitColumnsToContent, getPaginationRange, getSortedColumnState, groupChatHistoryByDate, growColumnIds, sanitizeUserText, tagVariants, useFloatingLabel, useFormControlContext, useFormField, usePageHeader, withBalancedFill, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses, withWidthFloor } from './chunk-
|
|
1
|
+
import { useRestoreFocusToOpener, Stack, sanitizeUserText, Button, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, Checkbox, useFloatingLabel, FloatingLabelOutline, CancelIcon, CLEAR_REVEAL_CLASS, CLEAR_HOST_CLASS, Spinner, useFormControlContext, Tag, Separator, LucideIcon, TextField, Dialog, DialogContent, DialogTitle, Badge } from './chunk-M7ZUGQR6.js';
|
|
2
|
+
export { AG_GRID_LOCALE_KR, AgGridContext, AgGridTable, Alert, AlertActions, AlertDescription, AlertTitle, BADGE_OUTLINE_ACCENT, BALANCED_FILL_MIN_WIDTH, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, ChatComposer, ChatHistory, ChatMessage, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyBoxIllustration, Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, HeaderCheckboxRenderer, LucideIcon, NUMBER_COLUMN_WIDTH, PageHeader, PageHeaderProvider, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, Panel, RowCheckboxRenderer, SORT_ICON_OFFSET_CLASS, Separator, Skeleton, Spinner, Stack, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TextField, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoLineCellRenderer, badgeVariants, buttonVariants, estimateHeaderTextWidth, fitColumnsToContent, getPaginationRange, getSortedColumnState, groupChatHistoryByDate, growColumnIds, sanitizeUserText, tagVariants, useFloatingLabel, useFormControlContext, useFormField, usePageHeader, withBalancedFill, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses, withWidthFloor } from './chunk-M7ZUGQR6.js';
|
|
3
3
|
import { cn, Table, TableHeader, TableRow, TableHead, TableBody, IconButton, TableCell } from './chunk-DWF6AFPQ.js';
|
|
4
4
|
export { IconButton, NUMBER_COLUMN_CLASS, SortIcon, Table, TableBody, TableCell, TableHead, TableHeader, TablePagination, TableRow, alignFromClassName, cn } from './chunk-DWF6AFPQ.js';
|
|
5
5
|
import * as React15 from 'react';
|
package/dist/patterns/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRVIZMXPB_cjs = require('../chunk-RVIZMXPB.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: chunkRVIZMXPB_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(chunkRVIZMXPB_cjs.Skeleton, { className: "h-[24px] w-[240px]" }),
|
|
54
|
+
Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_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(chunkRVIZMXPB_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(chunkRVIZMXPB_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(chunkRVIZMXPB_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
|
+
chunkRVIZMXPB_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
|
+
chunkRVIZMXPB_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(chunkRVIZMXPB_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
|
|
220
220
|
quickFilter.options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
221
|
-
|
|
221
|
+
chunkRVIZMXPB_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(chunkRVIZMXPB_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
|
+
chunkRVIZMXPB_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(chunkRVIZMXPB_cjs.Alert, { variant: "danger", children: /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_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
|
+
chunkRVIZMXPB_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(chunkRVIZMXPB_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
|
+
chunkRVIZMXPB_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
|
+
chunkRVIZMXPB_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(chunkRVIZMXPB_cjs.DropdownMenu, { children: [
|
|
355
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_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
|
+
chunkRVIZMXPB_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(chunkRVIZMXPB_cjs.DropdownMenuItem, { disabled, onSelect: select(onClick), children }, i)),
|
|
369
|
+
deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DropdownMenuSeparator, {}) : null,
|
|
370
370
|
deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
371
|
-
|
|
371
|
+
chunkRVIZMXPB_cjs.DropdownMenuItem,
|
|
372
372
|
{
|
|
373
373
|
variant: "danger",
|
|
374
374
|
disabled: deleteAction.disabled,
|
|
@@ -416,7 +416,7 @@ function DetailPage({
|
|
|
416
416
|
body = // 넓은 화면: 본문 2 : 패널 1 + 세로선. 좁은 화면: 세로로 쌓이고 패널은 제목 + 가로선으로 시작한다
|
|
417
417
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-[24px] xl:grid-cols-[2fr_1fr] xl:items-start", children: [
|
|
418
418
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children }),
|
|
419
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
419
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Panel, { title: asideTitle, children: aside })
|
|
420
420
|
] });
|
|
421
421
|
} else {
|
|
422
422
|
body = children;
|
|
@@ -424,11 +424,11 @@ function DetailPage({
|
|
|
424
424
|
const VISIBLE_SECONDARY = 2;
|
|
425
425
|
const visibleSecondary = secondaryActions?.slice(0, VISIBLE_SECONDARY) ?? [];
|
|
426
426
|
const overflowSecondary = secondaryActions?.slice(VISIBLE_SECONDARY) ?? [];
|
|
427
|
-
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
427
|
+
const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Button, { type: "button", variant: "primaryBold", ...primaryAction }) : null;
|
|
428
428
|
const moreMenu = (items) => items.length || deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { items, deleteAction }) : null;
|
|
429
429
|
const fullRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
430
430
|
moreMenu(overflowSecondary),
|
|
431
|
-
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
+
visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Button, { type: "button", variant: "secondary", ...action }, i)),
|
|
432
432
|
primaryButton
|
|
433
433
|
] });
|
|
434
434
|
const collapsedRow = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -449,7 +449,7 @@ function DetailPage({
|
|
|
449
449
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "detail-actions-collapsed", className: "flex items-center gap-[8px] @3xl:hidden", children: collapsedRow })
|
|
450
450
|
] }) : primaryButton ? primaryButton : void 0;
|
|
451
451
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
452
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
452
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.PageHeader, { ...header, actions: actionRow }),
|
|
453
453
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
454
454
|
"section",
|
|
455
455
|
{
|
|
@@ -479,7 +479,7 @@ function useFormShell({
|
|
|
479
479
|
}
|
|
480
480
|
function FormError({ error, className }) {
|
|
481
481
|
if (!error) return null;
|
|
482
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.AlertDescription, { children: error }) });
|
|
483
483
|
}
|
|
484
484
|
function FormActions({
|
|
485
485
|
busy,
|
|
@@ -491,7 +491,7 @@ function FormActions({
|
|
|
491
491
|
}) {
|
|
492
492
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
493
493
|
onCancel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
494
|
-
|
|
494
|
+
chunkRVIZMXPB_cjs.Button,
|
|
495
495
|
{
|
|
496
496
|
type: "button",
|
|
497
497
|
variant: "secondaryOutline",
|
|
@@ -502,7 +502,7 @@ function FormActions({
|
|
|
502
502
|
}
|
|
503
503
|
) : null,
|
|
504
504
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
505
|
-
|
|
505
|
+
chunkRVIZMXPB_cjs.Button,
|
|
506
506
|
{
|
|
507
507
|
type: "submit",
|
|
508
508
|
variant: "primaryBold",
|
|
@@ -554,11 +554,11 @@ function FormPage({
|
|
|
554
554
|
" ",
|
|
555
555
|
"\uD45C\uC2DC\uB294 \uD544\uC218 \uC785\uB825 \uD56D\uBAA9\uC785\uB2C8\uB2E4"
|
|
556
556
|
] }) : null,
|
|
557
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
558
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
557
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { id: formId, noValidate: true, onSubmit: handleSubmit, children: [
|
|
558
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.FormSectionLevelContext.Provider, { value: 2, children }),
|
|
559
559
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" }),
|
|
560
560
|
aside ? null : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
561
|
-
|
|
561
|
+
chunkRVIZMXPB_cjs.FormFooter,
|
|
562
562
|
{
|
|
563
563
|
align: "end",
|
|
564
564
|
className: "mt-[24px] border-t border-sys-divider-subtle pt-[16px]",
|
|
@@ -570,7 +570,7 @@ function FormPage({
|
|
|
570
570
|
const column = canvas === "subtle" ? (
|
|
571
571
|
// 폼 전체를 흰 Card 하나로(섹션 사이 구분선은 그대로). 위 8px 는 첫 FormSection 의 pt-[16px] 과 더해 24
|
|
572
572
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
573
|
-
|
|
573
|
+
chunkRVIZMXPB_cjs.Card,
|
|
574
574
|
{
|
|
575
575
|
className: chunkOQOBPYZT_cjs.cn(
|
|
576
576
|
"w-full max-w-[var(--max-w-form-control)] px-[24px] pb-[24px] pt-[8px]",
|
|
@@ -593,7 +593,7 @@ function FormPage({
|
|
|
593
593
|
// subtle 의 캔버스 회색은 기존 토큰(grayscale20, 진단 18-A 의 f7 변형)을 쓴다 — 채택되면 전용 sys 토큰으로 올린다
|
|
594
594
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkOQOBPYZT_cjs.cn("w-full", canvas === "subtle" && "bg-sys-background-hover"), children: [
|
|
595
595
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
596
|
-
|
|
596
|
+
chunkRVIZMXPB_cjs.PageHeader,
|
|
597
597
|
{
|
|
598
598
|
title,
|
|
599
599
|
description,
|
|
@@ -607,7 +607,7 @@ function FormPage({
|
|
|
607
607
|
// <aside>(complementary) 는 다른 landmark 안에 둘 수 없으므로(axe) 이름 있는 section (DetailPage aside 와 같은 꼴)
|
|
608
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: [
|
|
609
609
|
column,
|
|
610
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
610
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkRVIZMXPB_cjs.Panel, { title: asideTitle, className: "xl:sticky xl:top-[24px]", children: [
|
|
611
611
|
aside,
|
|
612
612
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
613
613
|
"div",
|
|
@@ -644,23 +644,23 @@ function FormDrawer({
|
|
|
644
644
|
if (!next && busy) return;
|
|
645
645
|
onOpenChange(next);
|
|
646
646
|
};
|
|
647
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
648
|
-
|
|
647
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
648
|
+
chunkRVIZMXPB_cjs.DrawerContent,
|
|
649
649
|
{
|
|
650
650
|
side,
|
|
651
651
|
size,
|
|
652
652
|
...description ? {} : { "aria-describedby": void 0 },
|
|
653
653
|
children: [
|
|
654
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
655
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
656
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
654
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkRVIZMXPB_cjs.DrawerHeader, { children: [
|
|
655
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DrawerTitle, { children: title }),
|
|
656
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DrawerDescription, { children: description }) : null
|
|
657
657
|
] }),
|
|
658
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
659
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
658
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_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(chunkRVIZMXPB_cjs.DrawerBody, { className: "px-[24px]", children: [
|
|
660
660
|
children,
|
|
661
661
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" })
|
|
662
662
|
] }),
|
|
663
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
663
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DrawerFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
664
664
|
FormActions,
|
|
665
665
|
{
|
|
666
666
|
busy,
|
|
@@ -695,21 +695,21 @@ function FormDialog({
|
|
|
695
695
|
if (!next && busy) return;
|
|
696
696
|
onOpenChange(next);
|
|
697
697
|
};
|
|
698
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
699
|
-
|
|
698
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
699
|
+
chunkRVIZMXPB_cjs.DialogContent,
|
|
700
700
|
{
|
|
701
701
|
width,
|
|
702
702
|
hideCloseButton: busy,
|
|
703
703
|
...description ? {} : { "aria-describedby": void 0 },
|
|
704
704
|
children: [
|
|
705
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
706
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
707
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
705
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkRVIZMXPB_cjs.DialogHeader, { children: [
|
|
706
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DialogTitle, { children: title }),
|
|
707
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DialogDescription, { children: description }) : null
|
|
708
708
|
] }),
|
|
709
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
709
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex flex-col gap-[16px]", children: [
|
|
710
710
|
children,
|
|
711
711
|
/* @__PURE__ */ jsxRuntime.jsx(FormError, { error }),
|
|
712
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
712
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
713
713
|
FormActions,
|
|
714
714
|
{
|
|
715
715
|
busy,
|
|
@@ -741,7 +741,7 @@ function StatTile({
|
|
|
741
741
|
}) {
|
|
742
742
|
const labelId = react.useId();
|
|
743
743
|
const percent = ratio == null ? null : Math.round(Math.min(Math.max(ratio, 0), 1) * 100);
|
|
744
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
744
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkRVIZMXPB_cjs.Card, { className: "relative gap-[4px] p-[16px]", children: [
|
|
745
745
|
/* @__PURE__ */ jsxRuntime.jsx("span", { id: labelId, className: "text-h6 text-sys-text-subtle", children: href ? (
|
|
746
746
|
// 타일 전체를 클릭 영역으로: 링크의 ::after 를 Card 크기로 늘린다
|
|
747
747
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -753,7 +753,7 @@ function StatTile({
|
|
|
753
753
|
}
|
|
754
754
|
)
|
|
755
755
|
) : label }),
|
|
756
|
-
loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
756
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_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
757
|
tone !== "default" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TriangleAlert, { "aria-hidden": true, size: 20, className: "shrink-0" }) : null,
|
|
758
758
|
value
|
|
759
759
|
] }),
|
|
@@ -798,7 +798,7 @@ function DashboardLayout({
|
|
|
798
798
|
children
|
|
799
799
|
] });
|
|
800
800
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full", children: [
|
|
801
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
801
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.PageHeader, { ...header, actions }),
|
|
802
802
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
803
803
|
"section",
|
|
804
804
|
{
|
|
@@ -820,7 +820,7 @@ function DashboardSection({ title, action, columns, children }) {
|
|
|
820
820
|
// 1px 간격 + 구분선 색 배경 = 칸 사이 가로·세로 구분선. 칸(DashboardPanel)은 자기 배경을 가진다
|
|
821
821
|
// 2열에서 칸 수가 홀수면 마지막 칸이 두 열을 차지해 빈 칸이 생기지 않게 한다
|
|
822
822
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
823
|
-
|
|
823
|
+
chunkRVIZMXPB_cjs.Card,
|
|
824
824
|
{
|
|
825
825
|
className: chunkOQOBPYZT_cjs.cn(
|
|
826
826
|
"grid grid-cols-1 gap-px overflow-hidden bg-sys-divider-subtler",
|
|
@@ -879,7 +879,7 @@ var MessageRow = react.memo(function MessageRow2({
|
|
|
879
879
|
}) {
|
|
880
880
|
const regenerate = onRegenerate ? () => onRegenerate(item.id) : void 0;
|
|
881
881
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
882
|
-
|
|
882
|
+
chunkRVIZMXPB_cjs.ChatMessage,
|
|
883
883
|
{
|
|
884
884
|
from: item.role,
|
|
885
885
|
headingLevel,
|
|
@@ -1026,7 +1026,7 @@ function ChatConversation({
|
|
|
1026
1026
|
onStop();
|
|
1027
1027
|
} : void 0;
|
|
1028
1028
|
const composer = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1029
|
-
|
|
1029
|
+
chunkRVIZMXPB_cjs.ChatComposer,
|
|
1030
1030
|
{
|
|
1031
1031
|
ref: composerRef,
|
|
1032
1032
|
...composerProps,
|
|
@@ -1037,7 +1037,7 @@ function ChatConversation({
|
|
|
1037
1037
|
);
|
|
1038
1038
|
const noteLine = note ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 text-center text-small-regular-h text-sys-text-subtler", children: note }) : null;
|
|
1039
1039
|
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
|
-
|
|
1040
|
+
chunkRVIZMXPB_cjs.Button,
|
|
1041
1041
|
{
|
|
1042
1042
|
type: "button",
|
|
1043
1043
|
variant: "secondaryOutline",
|
|
@@ -1126,7 +1126,7 @@ function ChatConversation({
|
|
|
1126
1126
|
item.id
|
|
1127
1127
|
);
|
|
1128
1128
|
}),
|
|
1129
|
-
waiting ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1129
|
+
waiting ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.ChatMessage, { from: "assistant", pending: true, headingLevel }) : null
|
|
1130
1130
|
]
|
|
1131
1131
|
}
|
|
1132
1132
|
),
|
|
@@ -1227,9 +1227,9 @@ function IconAction({
|
|
|
1227
1227
|
children,
|
|
1228
1228
|
...props
|
|
1229
1229
|
}) {
|
|
1230
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1231
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1232
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1230
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkRVIZMXPB_cjs.Tooltip, { children: [
|
|
1231
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOQOBPYZT_cjs.IconButton, { "aria-label": label, ...props, children }) }),
|
|
1232
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.TooltipContent, { side, children: label })
|
|
1233
1233
|
] });
|
|
1234
1234
|
}
|
|
1235
1235
|
function ChatPage({
|
|
@@ -1255,12 +1255,19 @@ function ChatPage({
|
|
|
1255
1255
|
const hasTopRow = !(history && historyInline) || Boolean(status || titleRight || actions);
|
|
1256
1256
|
const bodyRef = react.useRef(null);
|
|
1257
1257
|
const hasHistory = Boolean(history);
|
|
1258
|
+
const focusSearchRef = react.useRef(false);
|
|
1258
1259
|
react.useEffect(() => {
|
|
1259
|
-
bodyRef.current
|
|
1260
|
+
const body = bodyRef.current;
|
|
1261
|
+
if (!body) return;
|
|
1262
|
+
body.toggleAttribute("inert", collapsed);
|
|
1263
|
+
if (!collapsed && focusSearchRef.current) {
|
|
1264
|
+
focusSearchRef.current = false;
|
|
1265
|
+
body.querySelector('input[aria-label="\uB300\uD654 \uAC80\uC0C9"]')?.focus();
|
|
1266
|
+
}
|
|
1260
1267
|
}, [collapsed, historyInline, hasHistory]);
|
|
1261
1268
|
return (
|
|
1262
1269
|
// PageHeader 와 같은 방식(기본 지연) — `actions` 에 넣은 Tooltip 도 이 안에서 동작한다
|
|
1263
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1270
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_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
1271
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": title, className: "flex min-h-0 flex-1", children: [
|
|
1265
1272
|
history && historyInline ? (
|
|
1266
1273
|
// 기록 바: 접기·펴기는 바깥 폭만 280 ↔ 56(레일)으로 움직인다.
|
|
@@ -1303,18 +1310,33 @@ function ChatPage({
|
|
|
1303
1310
|
)
|
|
1304
1311
|
] }),
|
|
1305
1312
|
/* @__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
|
-
|
|
1313
|
+
collapsed && (history.onNew || history.search) ? (
|
|
1314
|
+
// 레일의 버튼들 — 접힌 동안에만 있다. 펼친 "새 대화"·검색창이 있던 높이에서 나타난다(버튼 32, 사이 12)
|
|
1315
|
+
/* @__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: [
|
|
1316
|
+
history.onNew ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1317
|
+
IconAction,
|
|
1318
|
+
{
|
|
1319
|
+
variant: "primaryLink",
|
|
1320
|
+
label: "\uC0C8 \uB300\uD654",
|
|
1321
|
+
side: "right",
|
|
1322
|
+
onClick: history.onNew,
|
|
1323
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { size: 20 })
|
|
1324
|
+
}
|
|
1325
|
+
) : null,
|
|
1326
|
+
history.search ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1327
|
+
IconAction,
|
|
1328
|
+
{
|
|
1329
|
+
variant: "secondaryLink",
|
|
1330
|
+
label: "\uB300\uD654 \uAC80\uC0C9",
|
|
1331
|
+
side: "right",
|
|
1332
|
+
onClick: () => {
|
|
1333
|
+
focusSearchRef.current = true;
|
|
1334
|
+
setCollapsed(false);
|
|
1335
|
+
},
|
|
1336
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { size: 20 })
|
|
1337
|
+
}
|
|
1338
|
+
) : null
|
|
1339
|
+
] })
|
|
1318
1340
|
) : null,
|
|
1319
1341
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1320
1342
|
"div",
|
|
@@ -1322,11 +1344,13 @@ function ChatPage({
|
|
|
1322
1344
|
ref: bodyRef,
|
|
1323
1345
|
"aria-hidden": collapsed || void 0,
|
|
1324
1346
|
className: chunkOQOBPYZT_cjs.cn(
|
|
1325
|
-
"flex w-[256px] shrink-0 flex-col
|
|
1347
|
+
"flex w-[256px] shrink-0 flex-col",
|
|
1326
1348
|
SLIDE,
|
|
1327
|
-
|
|
1349
|
+
// visibility 는 숨길 때만 전환에 넣는다(흐려지는 동안 보이다가 끝에 숨는다). 펼칠 때는 바로 보여야 한다 —
|
|
1350
|
+
// visibility 전환은 시작 순간에 아직 hidden 으로 계산돼서, 레일의 검색 버튼이 보내는 포커스가 검색창에 닿지 않는다
|
|
1351
|
+
collapsed ? "invisible opacity-0 transition-[opacity,visibility]" : "visible opacity-100 transition-opacity"
|
|
1328
1352
|
),
|
|
1329
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1353
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.ChatHistory, { ...history, className: "flex-1" })
|
|
1330
1354
|
}
|
|
1331
1355
|
)
|
|
1332
1356
|
] })
|
|
@@ -1399,7 +1423,7 @@ function ChatPage({
|
|
|
1399
1423
|
children: side ? (
|
|
1400
1424
|
// <aside> 는 다른 landmark 안에 둘 수 없어(axe landmark-complementary-is-top-level) 이름 있는 section(Panel) — ListPage 의 detail 과 같다
|
|
1401
1425
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1402
|
-
|
|
1426
|
+
chunkRVIZMXPB_cjs.Panel,
|
|
1403
1427
|
{
|
|
1404
1428
|
appearance: "none",
|
|
1405
1429
|
padding: "large",
|
|
@@ -1435,13 +1459,13 @@ function ChatPage({
|
|
|
1435
1459
|
)
|
|
1436
1460
|
) : null
|
|
1437
1461
|
] }),
|
|
1438
|
-
history && !historyInline ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1439
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1440
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1462
|
+
history && !historyInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.Drawer, { open: drawerOpen, onOpenChange: setDrawerOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkRVIZMXPB_cjs.DrawerContent, { side: "left", size: "small", children: [
|
|
1463
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkRVIZMXPB_cjs.DrawerHeader, { children: [
|
|
1464
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DrawerTitle, { className: "sr-only", children: "\uB300\uD654 \uAE30\uB85D" }),
|
|
1441
1465
|
/* @__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
1466
|
] }),
|
|
1443
1467
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 flex-col px-[24px] pb-[24px]", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1444
|
-
|
|
1468
|
+
chunkRVIZMXPB_cjs.ChatHistory,
|
|
1445
1469
|
{
|
|
1446
1470
|
...history,
|
|
1447
1471
|
className: "flex-1",
|
|
@@ -1456,14 +1480,37 @@ function ChatPage({
|
|
|
1456
1480
|
}
|
|
1457
1481
|
) })
|
|
1458
1482
|
] }) }) : null,
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1483
|
+
side && !sideInline ? (
|
|
1484
|
+
// 닫을 때 Drawer 를 지우지 않고 open 만 내린다 — 지우면 닫힘 애니메이션이 돌 틈 없이 바로 사라진다.
|
|
1485
|
+
// 닫히는 동안에는 마지막으로 받은 패널(side)을 그대로 그린다
|
|
1486
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1487
|
+
chunkRVIZMXPB_cjs.Drawer,
|
|
1488
|
+
{
|
|
1489
|
+
open: sideOpen,
|
|
1490
|
+
onOpenChange: (open) => {
|
|
1491
|
+
if (!open) sidePanel?.onClose();
|
|
1492
|
+
},
|
|
1493
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1494
|
+
chunkRVIZMXPB_cjs.DrawerContent,
|
|
1495
|
+
{
|
|
1496
|
+
side: "right",
|
|
1497
|
+
size: side.width ?? "medium",
|
|
1498
|
+
onCloseAutoFocus: () => {
|
|
1499
|
+
if (!sidePanel) setLastSide(void 0);
|
|
1500
|
+
},
|
|
1501
|
+
children: [
|
|
1502
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkRVIZMXPB_cjs.DrawerHeader, { children: [
|
|
1503
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DrawerTitle, { children: side.title }),
|
|
1504
|
+
side.description ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DrawerDescription, { children: side.description }) : null
|
|
1505
|
+
] }),
|
|
1506
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DrawerBody, { className: "px-[24px] pb-[24px]", children: side.children }),
|
|
1507
|
+
side.footer ? /* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.DrawerFooter, { children: side.footer }) : null
|
|
1508
|
+
]
|
|
1509
|
+
}
|
|
1510
|
+
)
|
|
1511
|
+
}
|
|
1512
|
+
)
|
|
1513
|
+
) : null
|
|
1467
1514
|
] }) })
|
|
1468
1515
|
);
|
|
1469
1516
|
}
|
|
@@ -1478,7 +1525,7 @@ function ChatPanel({
|
|
|
1478
1525
|
const name = typeof title === "string" ? title : label;
|
|
1479
1526
|
return (
|
|
1480
1527
|
// `actions` 에 Tooltip 을 단 아이콘 버튼을 넣어도 깨지지 않게 감싼다 — PageHeader·ChatPage 와 같은 방식(기본 지연)
|
|
1481
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1528
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRVIZMXPB_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1482
1529
|
"section",
|
|
1483
1530
|
{
|
|
1484
1531
|
"aria-label": name,
|