@t3q-ui/design-system 1.63.2 → 1.64.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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkLIXLOSPF_cjs = require('../chunk-LIXLOSPF.cjs');
3
+ var chunkLLVWCDR5_cjs = require('../chunk-LLVWCDR5.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: chunkLIXLOSPF_cjs.TwoLineCellRenderer,
25
+ cellRenderer: chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Skeleton, { className: "h-[24px] w-[240px]" }),
54
- Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.Skeleton, { className: chunkOQOBPYZT_cjs.cn("h-[16px]", i % 2 ? "w-3/5" : "w-full") }, i))
53
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.Skeleton, { className: "h-[24px] w-[240px]" }),
54
+ Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.EmptyBoxIllustration, {}),
98
+ icon: icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.LucideIcon, { iconComponentName: "CircleAlert", size: 36 }),
117
+ icon: /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.LucideIcon, { iconComponentName: "CircleAlert", size: 36 }),
118
118
  iconClassName: "text-danger30",
119
119
  title,
120
120
  description,
121
- action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.Button, { type: "button", variant: "primary", onClick: onRetry, children: retryLabel }) : null
121
+ action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.Button,
178
+ chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.ToggleGroup,
207
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
219
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
220
220
  quickFilter.options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(
221
- chunkLIXLOSPF_cjs.ToggleGroupItem,
221
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Button, { type: "button", variant: "secondaryLink", onClick: () => resetRef.current?.(), children: "\uD544\uD130 \uCD08\uAE30\uD654" }) : null
262
+ action: withReset && content.children == null ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.PageHeader,
274
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Alert, { variant: "danger", children: /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.AlertDescription, { children: error }) }) : (
283
+ /* @__PURE__ */ jsxRuntime.jsx("section", { "aria-label": title, className: "px-[24px] py-[32px]", children: error ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.Alert, { variant: "danger", children: /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.AgGridTable,
289
+ chunkLLVWCDR5_cjs.AgGridTable,
290
290
  {
291
291
  rowData: rows,
292
292
  columnDefs,
293
293
  loading,
294
294
  noRowsOverlayComponent: EmptyOverlay,
295
- onSortChanged: onSortChange ? (e) => onSortChange(chunkLIXLOSPF_cjs.getSortedColumnState(e).value) : void 0,
295
+ onSortChanged: onSortChange ? (e) => onSortChange(chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.Pagination,
306
+ chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.Panel,
319
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.DropdownMenu, { children: [
355
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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 }) }) }),
354
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_cjs.DropdownMenu, { children: [
355
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.DropdownMenuContent,
357
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.DropdownMenuItem, { disabled, onSelect: select(onClick), children }, i)),
369
- deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DropdownMenuSeparator, {}) : null,
368
+ items.map(({ children, onClick, disabled }, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DropdownMenuItem, { disabled, onSelect: select(onClick), children }, i)),
369
+ deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DropdownMenuSeparator, {}) : null,
370
370
  deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(
371
- chunkLIXLOSPF_cjs.DropdownMenuItem,
371
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Panel, { title: asideTitle, children: aside })
419
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Button, { type: "button", variant: "primaryBold", ...primaryAction }) : null;
427
+ const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Button, { type: "button", variant: "secondary", ...action }, i)),
431
+ visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.PageHeader, { ...header, actions: actionRow }),
452
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.AlertDescription, { children: error }) });
482
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.Button,
494
+ chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.Button,
505
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { id: formId, noValidate: true, onSubmit: handleSubmit, children: [
558
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.FormSectionLevelContext.Provider, { value: 2, children }),
557
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { id: formId, noValidate: true, onSubmit: handleSubmit, children: [
558
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.FormFooter,
561
+ chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.Card,
573
+ chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.PageHeader,
596
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Panel, { title: asideTitle, className: "xl:sticky xl:top-[24px]", children: [
610
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
648
- chunkLIXLOSPF_cjs.DrawerContent,
647
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
648
+ chunkLLVWCDR5_cjs.DrawerContent,
649
649
  {
650
650
  side,
651
651
  size,
652
652
  ...description ? {} : { "aria-describedby": void 0 },
653
653
  children: [
654
- /* @__PURE__ */ jsxRuntime.jsxs(chunkLIXLOSPF_cjs.DrawerHeader, { children: [
655
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DrawerTitle, { children: title }),
656
- description ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DrawerDescription, { children: description }) : null
654
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_cjs.DrawerHeader, { children: [
655
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DrawerTitle, { children: title }),
656
+ description ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DrawerDescription, { children: description }) : null
657
657
  ] }),
658
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkLIXLOSPF_cjs.DrawerBody, { className: "px-[24px]", children: [
658
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.DrawerFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
663
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
699
- chunkLIXLOSPF_cjs.DialogContent,
698
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
699
+ chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.DialogHeader, { children: [
706
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DialogTitle, { children: title }),
707
- description ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DialogDescription, { children: description }) : null
705
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_cjs.DialogHeader, { children: [
706
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DialogTitle, { children: title }),
707
+ description ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DialogDescription, { children: description }) : null
708
708
  ] }),
709
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex flex-col gap-[16px]", children: [
709
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
712
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.Card, { className: "relative gap-[4px] p-[16px]", children: [
744
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_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(chunkLIXLOSPF_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
+ loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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(chunkLIXLOSPF_cjs.PageHeader, { ...header, actions }),
801
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.Card,
823
+ chunkLLVWCDR5_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
- chunkLIXLOSPF_cjs.ChatMessage,
882
+ chunkLLVWCDR5_cjs.ChatMessage,
883
883
  {
884
884
  from: item.role,
885
885
  headingLevel,
@@ -905,32 +905,11 @@ var STATUS = {
905
905
  stopped: "\uC751\uB2F5 \uC0DD\uC131\uC744 \uC911\uC9C0\uD588\uC2B5\uB2C8\uB2E4",
906
906
  failed: "\uC751\uB2F5\uC744 \uC0DD\uC131\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4"
907
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";
908
+ function ChatHeader({ title, actions }) {
909
+ if (title == null && !actions) return null;
918
910
  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
911
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 items-center gap-[8px]", children: title != null ? /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "truncate text-sys-text-main text-h5", children: title }) : null }),
912
+ actions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-[8px]", children: actions }) : null
934
913
  ] });
935
914
  }
936
915
  function ChatConversation({
@@ -1047,7 +1026,7 @@ function ChatConversation({
1047
1026
  onStop();
1048
1027
  } : void 0;
1049
1028
  const composer = /* @__PURE__ */ jsxRuntime.jsx(
1050
- chunkLIXLOSPF_cjs.ChatComposer,
1029
+ chunkLLVWCDR5_cjs.ChatComposer,
1051
1030
  {
1052
1031
  ref: composerRef,
1053
1032
  ...composerProps,
@@ -1058,7 +1037,7 @@ function ChatConversation({
1058
1037
  );
1059
1038
  const noteLine = note ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 text-center text-small-regular-h text-sys-text-subtler", children: note }) : null;
1060
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(
1061
- chunkLIXLOSPF_cjs.Button,
1040
+ chunkLLVWCDR5_cjs.Button,
1062
1041
  {
1063
1042
  type: "button",
1064
1043
  variant: "secondaryOutline",
@@ -1147,7 +1126,7 @@ function ChatConversation({
1147
1126
  item.id
1148
1127
  );
1149
1128
  }),
1150
- waiting ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.ChatMessage, { from: "assistant", pending: true, headingLevel }) : null
1129
+ waiting ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.ChatMessage, { from: "assistant", pending: true, headingLevel }) : null
1151
1130
  ]
1152
1131
  }
1153
1132
  ),
@@ -1200,6 +1179,7 @@ var SIDE_WIDTH = {
1200
1179
  };
1201
1180
  var HISTORY_INLINE_MIN = 960;
1202
1181
  var SIDE_INLINE_MIN = 1280;
1182
+ var SLIDE = "duration-300 ease-in-out motion-reduce:transition-none";
1203
1183
  function useWidth(ref) {
1204
1184
  const [width, setWidth] = react.useState(Number.POSITIVE_INFINITY);
1205
1185
  react.useEffect(() => {
@@ -1213,8 +1193,48 @@ function useWidth(ref) {
1213
1193
  }, [ref]);
1214
1194
  return width;
1215
1195
  }
1196
+ function Brand({
1197
+ heading = false,
1198
+ logo,
1199
+ title
1200
+ }) {
1201
+ const Root = heading ? "h1" : "div";
1202
+ return /* @__PURE__ */ jsxRuntime.jsx(
1203
+ Root,
1204
+ {
1205
+ "aria-hidden": heading ? void 0 : true,
1206
+ className: "flex min-w-0 items-center text-h4 text-sys-text-main",
1207
+ children: logo ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1208
+ /* @__PURE__ */ jsxRuntime.jsx(
1209
+ "span",
1210
+ {
1211
+ "aria-hidden": true,
1212
+ className: "flex h-[32px] min-w-0 items-center overflow-clip [&_img]:max-h-[32px] [&_img]:object-contain [&_svg]:max-h-[32px]",
1213
+ children: logo
1214
+ }
1215
+ ),
1216
+ heading ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: title }) : null
1217
+ ] }) : (
1218
+ // 말줄임된 제목 전체는 브라우저 기본 말풍선으로 본다 — 기록 줄(chatHistory)과 같은 방식
1219
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", title, children: title })
1220
+ )
1221
+ }
1222
+ );
1223
+ }
1224
+ function IconAction({
1225
+ label,
1226
+ side,
1227
+ children,
1228
+ ...props
1229
+ }) {
1230
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_cjs.Tooltip, { children: [
1231
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOQOBPYZT_cjs.IconButton, { "aria-label": label, ...props, children }) }),
1232
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.TooltipContent, { side, children: label })
1233
+ ] });
1234
+ }
1216
1235
  function ChatPage({
1217
1236
  title,
1237
+ logo,
1218
1238
  status,
1219
1239
  titleRight,
1220
1240
  actions,
@@ -1232,123 +1252,220 @@ function ChatPage({
1232
1252
  if (sidePanel && sidePanel !== lastSide) setLastSide(sidePanel);
1233
1253
  const side = sidePanel ?? lastSide;
1234
1254
  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(chunkLIXLOSPF_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
- chunkLIXLOSPF_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,
1255
+ const hasTopRow = !(history && historyInline) || Boolean(status || titleRight || actions);
1256
+ const bodyRef = react.useRef(null);
1257
+ const hasHistory = Boolean(history);
1258
+ react.useEffect(() => {
1259
+ bodyRef.current?.toggleAttribute("inert", collapsed);
1260
+ }, [collapsed, historyInline, hasHistory]);
1261
+ return (
1262
+ // PageHeader 와 같은 방식(기본 지연) — `actions` 에 넣은 Tooltip 도 이 안에서 동작한다
1263
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_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
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": title, className: "flex min-h-0 flex-1", children: [
1265
+ history && historyInline ? (
1266
+ // 기록 바: 접기·펴기는 바깥 폭만 280 ↔ 56(레일)으로 움직인다.
1267
+ // overflow-clip — 잘린 내용에 포커스가 가도 상자가 옆으로 밀리지 않는다(hidden 은 스크롤된다)
1268
+ /* @__PURE__ */ jsxRuntime.jsxs(
1269
+ "div",
1270
+ {
1271
+ className: chunkOQOBPYZT_cjs.cn(
1272
+ "flex shrink-0 flex-col gap-[12px] overflow-clip p-[12px] transition-[width]",
1273
+ SLIDE,
1274
+ collapsed ? "w-[56px]" : "w-[280px]"
1275
+ ),
1276
+ children: [
1277
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[32px] shrink-0 items-center", children: [
1278
+ /* @__PURE__ */ jsxRuntime.jsx(
1279
+ "div",
1297
1280
  {
1298
- type: "button",
1299
- variant: "secondary",
1300
- "aria-label": "\uB2EB\uAE30",
1301
- onClick: side.onClose,
1302
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 20 })
1281
+ className: chunkOQOBPYZT_cjs.cn(
1282
+ "min-w-0 flex-1 overflow-x-clip transition-opacity",
1283
+ SLIDE,
1284
+ collapsed ? "opacity-0" : "opacity-100"
1285
+ ),
1286
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-[224px] pr-[8px] pl-[12px]", children: /* @__PURE__ */ jsxRuntime.jsx(Brand, { heading: true, logo, title }) })
1303
1287
  }
1304
1288
  ),
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(
1289
+ /* @__PURE__ */ jsxRuntime.jsx(
1290
+ IconAction,
1291
+ {
1292
+ variant: "secondaryLink",
1293
+ className: "shrink-0",
1294
+ label: collapsed ? "\uB300\uD654 \uAE30\uB85D \uD3BC\uCE58\uAE30" : "\uB300\uD654 \uAE30\uB85D \uC811\uAE30",
1295
+ side: collapsed ? "right" : "bottom",
1296
+ "aria-expanded": !collapsed,
1297
+ onClick: (e) => {
1298
+ e.currentTarget.focus();
1299
+ setCollapsed((v) => !v);
1300
+ },
1301
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, { size: 20 })
1302
+ }
1303
+ )
1304
+ ] }),
1305
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex min-h-0 flex-1", children: [
1306
+ collapsed && history.onNew ? (
1307
+ // 레일의 새 대화 — 접힌 동안에만 있다. 펼친 "새 대화" 가 있던 자리에서 나타난다
1308
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-[2px] left-0 animate-[fade-in_300ms_ease-in-out] motion-reduce:animate-none", children: /* @__PURE__ */ jsxRuntime.jsx(
1309
+ IconAction,
1310
+ {
1311
+ variant: "primaryLink",
1312
+ label: "\uC0C8 \uB300\uD654",
1313
+ side: "right",
1314
+ onClick: history.onNew,
1315
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { size: 20 })
1316
+ }
1317
+ ) })
1318
+ ) : null,
1319
+ /* @__PURE__ */ jsxRuntime.jsx(
1311
1320
  "div",
1312
1321
  {
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
1322
+ ref: bodyRef,
1323
+ "aria-hidden": collapsed || void 0,
1324
+ className: chunkOQOBPYZT_cjs.cn(
1325
+ "flex w-[256px] shrink-0 flex-col transition-[opacity,visibility]",
1326
+ SLIDE,
1327
+ collapsed ? "invisible opacity-0" : "visible opacity-100"
1328
+ ),
1329
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.ChatHistory, { ...history, className: "flex-1" })
1316
1330
  }
1317
1331
  )
1318
- }
1319
- )
1320
- ) : null
1332
+ ] })
1333
+ ]
1334
+ }
1335
+ )
1336
+ ) : null,
1337
+ /* @__PURE__ */ jsxRuntime.jsxs(
1338
+ "div",
1339
+ {
1340
+ className: chunkOQOBPYZT_cjs.cn(
1341
+ "flex min-h-0 min-w-0 flex-1 flex-col",
1342
+ history && historyInline && "border-l border-sys-divider-subtler"
1343
+ ),
1344
+ children: [
1345
+ hasTopRow ? (
1346
+ // 맨 위 줄: ChatConversation 의 형제라 로딩·오류 화면에서도 남는다. 아래에 선·배경을 두지 않는다 —
1347
+ // 빈 대화의 바탕 그라데이션은 위쪽 끝색이 바탕색과 같아 이음매가 없다.
1348
+ // 줄 높이는 32 — 36px 모델 선택은 위아래로 2px 씩 넘친다(Panel 제목 줄과 같은 방식)
1349
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 px-[12px] pt-[12px] pb-[8px]", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[32px] items-center justify-between gap-[12px]", children: [
1350
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-[8px]", children: [
1351
+ history && !historyInline ? (
1352
+ // 넓은 화면의 접기 버튼과는 다른 요소다 — 폭이 960 을 넘나들면 버튼에 있던 포커스는 이어지지 않는다
1353
+ // (다음 Tab 이 바로 이 버튼이라 따로 옮기지 않는다)
1354
+ /* @__PURE__ */ jsxRuntime.jsx(
1355
+ IconAction,
1356
+ {
1357
+ variant: "secondaryLink",
1358
+ className: "shrink-0",
1359
+ label: "\uB300\uD654 \uAE30\uB85D \uC5F4\uAE30",
1360
+ side: "bottom",
1361
+ "aria-expanded": drawerOpen,
1362
+ onClick: (e) => {
1363
+ e.currentTarget.focus();
1364
+ setDrawerOpen(true);
1365
+ },
1366
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, { size: 20 })
1367
+ }
1368
+ )
1369
+ ) : null,
1370
+ history && historyInline ? null : history ? (
1371
+ // 좁은 화면: 로고는 Drawer 안에 있고, 제목은 화면 밖 글자로 남긴다
1372
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "sr-only", children: title })
1373
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0 pl-[4px]", children: /* @__PURE__ */ jsxRuntime.jsx(Brand, { heading: true, logo, title }) }),
1374
+ status ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: status }) : null
1375
+ ] }),
1376
+ titleRight || actions ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-[8px]", children: [
1377
+ titleRight,
1378
+ actions
1379
+ ] }) : null
1380
+ ] }) })
1381
+ ) : null,
1382
+ /* @__PURE__ */ jsxRuntime.jsx(ChatConversation, { variant: "page", label: `${title} \uB300\uD654`, ...shell })
1383
+ ]
1321
1384
  }
1322
- )
1323
- ) : null
1324
- ] }),
1325
- history && !historyInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.Drawer, { open: drawerOpen, onOpenChange: setDrawerOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkLIXLOSPF_cjs.DrawerContent, { side: "left", size: "small", children: [
1326
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DrawerHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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
- chunkLIXLOSPF_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(chunkLIXLOSPF_cjs.Drawer, { open: true, onOpenChange: (open) => open ? void 0 : sidePanel.onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkLIXLOSPF_cjs.DrawerContent, { side: "right", size: sidePanel.width ?? "medium", children: [
1344
- /* @__PURE__ */ jsxRuntime.jsxs(chunkLIXLOSPF_cjs.DrawerHeader, { children: [
1345
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DrawerTitle, { children: sidePanel.title }),
1346
- sidePanel.description ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DrawerDescription, { children: sidePanel.description }) : null
1385
+ ),
1386
+ sideInline ? (
1387
+ // 열고 닫기는 기록 바와 같은 방식 — 바깥 폭만 0 ↔ 패널 폭으로 움직인다
1388
+ /* @__PURE__ */ jsxRuntime.jsx(
1389
+ "div",
1390
+ {
1391
+ className: chunkOQOBPYZT_cjs.cn(
1392
+ "shrink-0 overflow-hidden transition-[width,visibility] duration-300 ease-in-out motion-reduce:transition-none",
1393
+ sideOpen ? chunkOQOBPYZT_cjs.cn("visible", SIDE_WIDTH[side?.width ?? "medium"]) : "invisible w-0"
1394
+ ),
1395
+ onTransitionEnd: (e) => {
1396
+ if (e.target === e.currentTarget && e.propertyName === "width" && !sidePanel)
1397
+ setLastSide(void 0);
1398
+ },
1399
+ children: side ? (
1400
+ // <aside> 는 다른 landmark 안에 둘 수 없어(axe landmark-complementary-is-top-level) 이름 있는 section(Panel) — ListPage 의 detail 과 같다
1401
+ /* @__PURE__ */ jsxRuntime.jsx(
1402
+ chunkLLVWCDR5_cjs.Panel,
1403
+ {
1404
+ appearance: "none",
1405
+ padding: "large",
1406
+ title: side.title,
1407
+ description: side.description,
1408
+ titleRight: /* @__PURE__ */ jsxRuntime.jsx(
1409
+ chunkOQOBPYZT_cjs.IconButton,
1410
+ {
1411
+ type: "button",
1412
+ variant: "secondary",
1413
+ "aria-label": "\uB2EB\uAE30",
1414
+ onClick: side.onClose,
1415
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 20 })
1416
+ }
1417
+ ),
1418
+ footer: side.footer,
1419
+ className: chunkOQOBPYZT_cjs.cn(
1420
+ "h-full min-h-0 border-l border-sys-divider-subtler px-[24px] pt-[16px] pb-[24px]",
1421
+ SIDE_WIDTH[side.width ?? "medium"]
1422
+ ),
1423
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1424
+ "div",
1425
+ {
1426
+ tabIndex: 0,
1427
+ 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",
1428
+ children: side.children
1429
+ }
1430
+ )
1431
+ }
1432
+ )
1433
+ ) : null
1434
+ }
1435
+ )
1436
+ ) : null
1347
1437
  ] }),
1348
- /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DrawerBody, { className: "px-[24px] pb-[24px]", children: sidePanel.children }),
1349
- sidePanel.footer ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.DrawerFooter, { children: sidePanel.footer }) : null
1350
- ] }) }) : null
1351
- ] });
1438
+ history && !historyInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.Drawer, { open: drawerOpen, onOpenChange: setDrawerOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_cjs.DrawerContent, { side: "left", size: "small", children: [
1439
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_cjs.DrawerHeader, { children: [
1440
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DrawerTitle, { className: "sr-only", children: "\uB300\uD654 \uAE30\uB85D" }),
1441
+ /* @__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
+ ] }),
1443
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 flex-col px-[24px] pb-[24px]", children: /* @__PURE__ */ jsxRuntime.jsx(
1444
+ chunkLLVWCDR5_cjs.ChatHistory,
1445
+ {
1446
+ ...history,
1447
+ className: "flex-1",
1448
+ onSelect: (id) => {
1449
+ history.onSelect(id);
1450
+ setDrawerOpen(false);
1451
+ },
1452
+ onNew: history.onNew ? () => {
1453
+ history.onNew?.();
1454
+ setDrawerOpen(false);
1455
+ } : void 0
1456
+ }
1457
+ ) })
1458
+ ] }) }) : null,
1459
+ sidePanel && !sideInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.Drawer, { open: true, onOpenChange: (open) => open ? void 0 : sidePanel.onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_cjs.DrawerContent, { side: "right", size: sidePanel.width ?? "medium", children: [
1460
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkLLVWCDR5_cjs.DrawerHeader, { children: [
1461
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DrawerTitle, { children: sidePanel.title }),
1462
+ sidePanel.description ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DrawerDescription, { children: sidePanel.description }) : null
1463
+ ] }),
1464
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DrawerBody, { className: "px-[24px] pb-[24px]", children: sidePanel.children }),
1465
+ sidePanel.footer ? /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.DrawerFooter, { children: sidePanel.footer }) : null
1466
+ ] }) }) : null
1467
+ ] }) })
1468
+ );
1352
1469
  }
1353
1470
  function ChatPanel({
1354
1471
  title,
@@ -1359,26 +1476,28 @@ function ChatPanel({
1359
1476
  ...shell
1360
1477
  }) {
1361
1478
  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
- }
1479
+ return (
1480
+ // `actions` 에 Tooltip 을 단 아이콘 버튼을 넣어도 깨지지 않게 감싼다 — PageHeader·ChatPage 와 같은 방식(기본 지연)
1481
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLLVWCDR5_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(
1482
+ "section",
1483
+ {
1484
+ "aria-label": name,
1485
+ className: chunkOQOBPYZT_cjs.cn("flex h-full min-h-0 w-full flex-col bg-sys-background", className),
1486
+ children: [
1487
+ /* @__PURE__ */ jsxRuntime.jsx(
1488
+ ChatHeader,
1489
+ {
1490
+ title,
1491
+ actions: actions || onClose ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1492
+ actions,
1493
+ 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
1494
+ ] }) : null
1495
+ }
1496
+ ),
1497
+ /* @__PURE__ */ jsxRuntime.jsx(ChatConversation, { variant: "panel", label: `${name} \uB300\uD654`, ...shell })
1498
+ ]
1499
+ }
1500
+ ) })
1382
1501
  );
1383
1502
  }
1384
1503