@t3q-ui/design-system 1.63.0 → 1.63.2

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 chunkESAMXUUJ_cjs = require('../chunk-ESAMXUUJ.cjs');
3
+ var chunkLIXLOSPF_cjs = require('../chunk-LIXLOSPF.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: chunkESAMXUUJ_cjs.TwoLineCellRenderer,
25
+ cellRenderer: chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Skeleton, { className: "h-[24px] w-[240px]" }),
54
- Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Skeleton, { className: chunkOQOBPYZT_cjs.cn("h-[16px]", i % 2 ? "w-3/5" : "w-full") }, i))
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))
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(chunkESAMXUUJ_cjs.EmptyBoxIllustration, {}),
98
+ icon: icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.LucideIcon, { iconComponentName: "CircleAlert", size: 36 }),
117
+ icon: /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.LucideIcon, { iconComponentName: "CircleAlert", size: 36 }),
118
118
  iconClassName: "text-danger30",
119
119
  title,
120
120
  description,
121
- action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Button, { type: "button", variant: "primary", onClick: onRetry, children: retryLabel }) : null
121
+ action: onRetry ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.Button,
178
+ chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.ToggleGroup,
207
+ chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
219
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.ToggleGroupItem, { value: QUICK_ALL, count: quickAllCount, countVariant: "primary", children: "\uC804\uCCB4" }),
220
220
  quickFilter.options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(
221
- chunkESAMXUUJ_cjs.ToggleGroupItem,
221
+ chunkLIXLOSPF_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(chunkESAMXUUJ_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(chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.PageHeader,
274
+ chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Alert, { variant: "danger", children: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.AlertDescription, { children: error }) }) : (
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 }) }) : (
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
- chunkESAMXUUJ_cjs.AgGridTable,
289
+ chunkLIXLOSPF_cjs.AgGridTable,
290
290
  {
291
291
  rowData: rows,
292
292
  columnDefs,
293
293
  loading,
294
294
  noRowsOverlayComponent: EmptyOverlay,
295
- onSortChanged: onSortChange ? (e) => onSortChange(chunkESAMXUUJ_cjs.getSortedColumnState(e).value) : void 0,
295
+ onSortChanged: onSortChange ? (e) => onSortChange(chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.Pagination,
306
+ chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.Panel,
319
+ chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.DropdownMenu, { children: [
355
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOQOBPYZT_cjs.IconButton, { ref: triggerRef, variant: "secondary", "aria-label": "\uB354\uBCF4\uAE30", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { size: 24 }) }) }),
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 }) }) }),
356
356
  /* @__PURE__ */ jsxRuntime.jsxs(
357
- chunkESAMXUUJ_cjs.DropdownMenuContent,
357
+ chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.DropdownMenuItem, { disabled, onSelect: select(onClick), children }, i)),
369
- deleteAction && items.length ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DropdownMenuSeparator, {}) : null,
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,
370
370
  deleteAction ? /* @__PURE__ */ jsxRuntime.jsx(
371
- chunkESAMXUUJ_cjs.DropdownMenuItem,
371
+ chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Panel, { title: asideTitle, children: aside })
419
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Button, { type: "button", variant: "primaryBold", ...primaryAction }) : null;
427
+ const primaryButton = primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Button, { type: "button", variant: "secondary", ...action }, i)),
431
+ visibleSecondary.map((action, i) => /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.PageHeader, { ...header, actions: actionRow }),
452
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.AlertDescription, { children: error }) });
482
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.Alert, { variant: "danger", className, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.Button,
494
+ chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.Button,
505
+ chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { id: formId, noValidate: true, onSubmit: handleSubmit, children: [
558
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.FormSectionLevelContext.Provider, { value: 2, children }),
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 }),
559
559
  /* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" }),
560
560
  aside ? null : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
561
- chunkESAMXUUJ_cjs.FormFooter,
561
+ chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.Card,
573
+ chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.PageHeader,
596
+ chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Panel, { title: asideTitle, className: "xl:sticky xl:top-[24px]", children: [
610
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
648
- chunkESAMXUUJ_cjs.DrawerContent,
647
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.Drawer, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
648
+ chunkLIXLOSPF_cjs.DrawerContent,
649
649
  {
650
650
  side,
651
651
  size,
652
652
  ...description ? {} : { "aria-describedby": void 0 },
653
653
  children: [
654
- /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerHeader, { children: [
655
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerTitle, { children: title }),
656
- description ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerDescription, { children: description }) : null
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
657
657
  ] }),
658
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex min-h-0 flex-1 flex-col", children: [
659
- /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerBody, { className: "px-[24px]", children: [
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: [
660
660
  children,
661
661
  /* @__PURE__ */ jsxRuntime.jsx(FormError, { error, className: "mt-[24px]" })
662
662
  ] }),
663
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
663
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
699
- chunkESAMXUUJ_cjs.DialogContent,
698
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.Dialog, { open, onOpenChange: guardedOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
699
+ chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.DialogHeader, { children: [
706
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DialogTitle, { children: title }),
707
- description ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DialogDescription, { children: description }) : null
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
708
708
  ] }),
709
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Form, { ...form, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, onSubmit: handleSubmit, className: "flex flex-col gap-[16px]", children: [
709
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.DialogFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
712
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Card, { className: "relative gap-[4px] p-[16px]", children: [
744
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkLIXLOSPF_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(chunkESAMXUUJ_cjs.Skeleton, { role: "status", "aria-label": "\uBD88\uB7EC\uC624\uB294 \uC911", className: "h-[32px] w-[80px]" }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: chunkOQOBPYZT_cjs.cn("flex items-center gap-[6px] text-h2", TONE_TEXT[tone]), children: [
756
+ 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: [
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(chunkESAMXUUJ_cjs.PageHeader, { ...header, actions }),
801
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.Card,
823
+ chunkLIXLOSPF_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
- chunkESAMXUUJ_cjs.ChatMessage,
882
+ chunkLIXLOSPF_cjs.ChatMessage,
883
883
  {
884
884
  from: item.role,
885
885
  headingLevel,
@@ -1047,7 +1047,7 @@ function ChatConversation({
1047
1047
  onStop();
1048
1048
  } : void 0;
1049
1049
  const composer = /* @__PURE__ */ jsxRuntime.jsx(
1050
- chunkESAMXUUJ_cjs.ChatComposer,
1050
+ chunkLIXLOSPF_cjs.ChatComposer,
1051
1051
  {
1052
1052
  ref: composerRef,
1053
1053
  ...composerProps,
@@ -1058,7 +1058,7 @@ function ChatConversation({
1058
1058
  );
1059
1059
  const noteLine = note ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "m-0 text-center text-small-regular-h text-sys-text-subtler", children: note }) : null;
1060
1060
  const suggestions = welcome?.suggestions?.length ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "m-0 flex list-none flex-wrap justify-center gap-[8px] p-0", children: welcome.suggestions.map((text) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
1061
- chunkESAMXUUJ_cjs.Button,
1061
+ chunkLIXLOSPF_cjs.Button,
1062
1062
  {
1063
1063
  type: "button",
1064
1064
  variant: "secondaryOutline",
@@ -1147,7 +1147,7 @@ function ChatConversation({
1147
1147
  item.id
1148
1148
  );
1149
1149
  }),
1150
- waiting ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.ChatMessage, { from: "assistant", pending: true, headingLevel }) : null
1150
+ waiting ? /* @__PURE__ */ jsxRuntime.jsx(chunkLIXLOSPF_cjs.ChatMessage, { from: "assistant", pending: true, headingLevel }) : null
1151
1151
  ]
1152
1152
  }
1153
1153
  ),
@@ -1265,7 +1265,7 @@ function ChatPage({
1265
1265
  "shrink-0 overflow-hidden transition-[width,visibility] duration-300 ease-in-out motion-reduce:transition-none",
1266
1266
  collapsed ? "invisible w-0" : "visible w-[280px]"
1267
1267
  ),
1268
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full w-[280px] flex-col border-r border-sys-divider-subtler p-[12px]", children: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.ChatHistory, { ...history, className: "flex-1" }) })
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
1269
  }
1270
1270
  )
1271
1271
  ) : null,
@@ -1286,7 +1286,7 @@ function ChatPage({
1286
1286
  children: side ? (
1287
1287
  // <aside> 는 다른 landmark 안에 둘 수 없어(axe landmark-complementary-is-top-level) 이름 있는 section(Panel) — ListPage 의 detail 과 같다
1288
1288
  /* @__PURE__ */ jsxRuntime.jsx(
1289
- chunkESAMXUUJ_cjs.Panel,
1289
+ chunkLIXLOSPF_cjs.Panel,
1290
1290
  {
1291
1291
  appearance: "none",
1292
1292
  padding: "large",
@@ -1322,10 +1322,10 @@ function ChatPage({
1322
1322
  )
1323
1323
  ) : null
1324
1324
  ] }),
1325
- history && !historyInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Drawer, { open: drawerOpen, onOpenChange: setDrawerOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerContent, { side: "left", size: "small", children: [
1326
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerTitle, { children: "\uB300\uD654 \uAE30\uB85D" }) }),
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
1327
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 flex-col px-[24px] pb-[24px]", children: /* @__PURE__ */ jsxRuntime.jsx(
1328
- chunkESAMXUUJ_cjs.ChatHistory,
1328
+ chunkLIXLOSPF_cjs.ChatHistory,
1329
1329
  {
1330
1330
  ...history,
1331
1331
  className: "flex-1",
@@ -1340,13 +1340,13 @@ function ChatPage({
1340
1340
  }
1341
1341
  ) })
1342
1342
  ] }) }) : null,
1343
- sidePanel && !sideInline ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.Drawer, { open: true, onOpenChange: (open) => open ? void 0 : sidePanel.onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerContent, { side: "right", size: sidePanel.width ?? "medium", children: [
1344
- /* @__PURE__ */ jsxRuntime.jsxs(chunkESAMXUUJ_cjs.DrawerHeader, { children: [
1345
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerTitle, { children: sidePanel.title }),
1346
- sidePanel.description ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerDescription, { children: sidePanel.description }) : null
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
1347
1347
  ] }),
1348
- /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerBody, { className: "px-[24px] pb-[24px]", children: sidePanel.children }),
1349
- sidePanel.footer ? /* @__PURE__ */ jsxRuntime.jsx(chunkESAMXUUJ_cjs.DrawerFooter, { children: sidePanel.footer }) : null
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
1350
  ] }) }) : null
1351
1351
  ] });
1352
1352
  }
@@ -1,4 +1,4 @@
1
- import { ChatMessage, Skeleton, EmptyBoxIllustration, Button, LucideIcon, ToggleGroup, ToggleGroupItem, PageHeader, Alert, AlertDescription, AgGridTable, getSortedColumnState, Pagination, Panel, Form, FormSectionLevelContext, FormFooter, Card, Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerBody, DrawerFooter, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, ChatHistory, TwoLineCellRenderer, ChatComposer, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from '../chunk-GZZXYYDY.js';
1
+ import { ChatMessage, Skeleton, EmptyBoxIllustration, Button, LucideIcon, ToggleGroup, ToggleGroupItem, PageHeader, Alert, AlertDescription, AgGridTable, getSortedColumnState, Pagination, Panel, Form, FormSectionLevelContext, FormFooter, Card, Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerBody, DrawerFooter, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, ChatHistory, TwoLineCellRenderer, ChatComposer, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from '../chunk-S6TTWFNU.js';
2
2
  import { cn, TablePagination, IconButton } from '../chunk-DWF6AFPQ.js';
3
3
  import { memo, useRef, useEffect, useMemo, useId, useState, useCallback, useLayoutEffect, isValidElement } from 'react';
4
4
  import { RotateCcw, X, PanelLeft, TriangleAlert, ArrowDown, Ellipsis } from 'lucide-react';
package/dist/styles.css CHANGED
@@ -128,6 +128,7 @@
128
128
  --shadow-danger-small: 0 2px 4px var(--color-danger-o10);
129
129
  --shadow-danger-medium: 0 4px 8px var(--color-red-o20);
130
130
  --shadow-danger-large: 0 6px 12px var(--color-danger-o30);
131
+ --shadow-gray-xsmall: 0 3px 12px var(--color-grayscale-s05);
131
132
  --shadow-gray-small: 0 3px 12px var(--color-grayscale-s10);
132
133
  --shadow-gray-medium: 0 4px 16px var(--color-grayscale-s30);
133
134
  --shadow-gray-large: 0 4px 16px var(--color-grayscale-s40);
@@ -274,6 +275,8 @@
274
275
  --color-grayscale-o30: rgba(197, 201, 211, 0.5);
275
276
  --color-grayscale-o40: rgba(197, 201, 211, 0.67);
276
277
  --color-grayscale-o50: rgba(197, 201, 211, 0.84);
278
+ /* -s05: Card 그림자 전용 한 단계 연한 단계 — 2026-11-18 오너 결정(10% → 5%). -s10 은 떠 있는 층(Popover·DropdownMenu)·Switch 가 쓰므로 값을 건드리지 않고 단계를 더했다 */
279
+ --color-grayscale-s05: rgba(77, 83, 101, 0.05);
277
280
  --color-grayscale-s10: rgba(77, 83, 101, 0.1);
278
281
  --color-grayscale-s20: rgba(77, 83, 101, 0.2);
279
282
  --color-grayscale-s30: rgba(77, 83, 101, 0.3);
@@ -848,6 +851,7 @@
848
851
  --color-etc-o50: var(--color-violet-o50);
849
852
 
850
853
  /* Shadow용 색상 - 검정 기반 (Figma Dark Grayscale.S) */
854
+ --color-grayscale-s05: rgba(0, 0, 0, 0.05);
851
855
  --color-grayscale-s10: rgba(0, 0, 0, 0.1);
852
856
  --color-grayscale-s20: rgba(0, 0, 0, 0.2);
853
857
  --color-grayscale-s30: rgba(0, 0, 0, 0.3);
@@ -1492,6 +1496,7 @@
1492
1496
  @utility shadow-danger-small { box-shadow: var(--shadow-danger-small); }
1493
1497
  @utility shadow-danger-medium { box-shadow: var(--shadow-danger-medium); }
1494
1498
  @utility shadow-danger-large { box-shadow: var(--shadow-danger-large); }
1499
+ @utility shadow-gray-xsmall { box-shadow: var(--shadow-gray-xsmall); }
1495
1500
  @utility shadow-gray-small { box-shadow: var(--shadow-gray-small); }
1496
1501
  @utility shadow-gray-medium { box-shadow: var(--shadow-gray-medium); }
1497
1502
  @utility shadow-gray-large { box-shadow: var(--shadow-gray-large); }
@@ -3071,7 +3071,7 @@
3071
3071
  {
3072
3072
  "id": "patterns-chatpage--header-compare",
3073
3073
  "name": "HeaderCompare — 얇은 헤더 vs PageHeader compact",
3074
- "snippet": "const HeaderCompare = () => <div className='flex flex-col'>\n <div className='px-[16px] py-[8px] text-small-regular-h text-sys-text-subtle'>위: PageHeader compact(기존 패턴의 헤더) · 아래: ChatPage 의 얇은 헤더\n </div>\n <PageHeader\n compact\n title='AI Chat'\n status={<ModelSelect />}\n actions={\n <Button variant='secondaryLink'>\n <SlidersHorizontal size={16} aria-hidden />\n 파라미터\n </Button>\n } />\n <Frame height='560px'>\n <ChatPageDemo />\n </Frame>\n</div>;"
3074
+ "snippet": "const HeaderCompare = () => <div className='flex flex-col'>\n <div className='px-[16px] py-[8px] text-small-regular-h text-sys-text-subtle'>위: PageHeader compact(기존 패턴의 헤더) · 아래: ChatPage 의 얇은 헤더\n </div>\n {/* 비교용 헤더는 이름 있는 구역 안에 둔다 — 한 화면에 banner(최상위 header)가 둘이면 axe 위반이다 */}\n <section aria-label='비교용 PageHeader compact'>\n <PageHeader\n compact\n title='AI Chat'\n status={<ModelSelect />}\n actions={\n <Button variant='secondaryLink'>\n <SlidersHorizontal size={16} aria-hidden />\n 파라미터\n </Button>\n } />\n </section>\n <Frame height='560px'>\n <ChatPageDemo />\n </Frame>\n</div>;"
3075
3075
  }
3076
3076
  ],
3077
3077
  "import": "import {\n Button,\n ChatPage,\n DropdownMenuItem,\n PageHeader,\n ParameterTable,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@t3q-ui/design-system';\nimport { Check, SlidersHorizontal } from 'lucide-react';\nimport { CONVERSATION, ANSWER } from './chatDemo';"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t3q-ui/design-system",
3
- "version": "1.63.0",
3
+ "version": "1.63.2",
4
4
  "description": "T3Q Design System - React Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -65,7 +65,7 @@
65
65
  "!cli/*.test.mjs"
66
66
  ],
67
67
  "scripts": {
68
- "build": "tsup && node scripts/fix-dts.mjs && npm run build:css",
68
+ "build": "tsup && node scripts/fix-dts.mjs && node scripts/release/check-entries.mjs && npm run build:css",
69
69
  "check": "pnpm lint && pnpm typecheck && pnpm build",
70
70
  "build:css": "cp src/styles/fonts.css dist/fonts.css && echo '@source \"./**/*.js\";' > dist/styles.css && cat src/styles/tokens.css >> dist/styles.css && cat src/styles/utilities.css >> dist/styles.css && cat src/components/agGridTable/style.css >> dist/styles.css && cat src/components/parameterTable/parameterTable.css >> dist/styles.css",
71
71
  "build:dev": "vite build --config vite.config.dev.ts",
@@ -10,9 +10,9 @@ license: Proprietary. See LICENSE.md in the @t3q-ui/design-system package
10
10
 
11
11
  ## 절차
12
12
 
13
- 1. **화면 유형을 정한다.** 요청을 List / Detail / Form / Dashboard 중 하나로 분류하고 아래 표로 Pattern 을 고른다.
13
+ 1. **화면 유형을 정한다.** 요청을 List / Detail / Form / Dashboard / Chat(AI 대화) 중 하나로 분류하고 아래 표로 Pattern 을 고른다.
14
14
  2. **Pattern 부터 시작한다.** `@t3q-ui/design-system/patterns` 에서 import 한다. 헤더·본문·상태 표시는 Pattern 이 가진다. 맞는 Pattern 이 없을 때만 PageHeader + Component 로 조립한다.
15
- 3. **조회한다.** MCP `docs-list` 로 ID 를 찾고, `docs-show <id>` 로 props·variant·"언제 쓰나" 를 읽고, 필요하면 `docs-show-story` 로 예시 코드를 본다. MCP 를 부르지 않거나 없으면 이 Skill 의 [reference/components.md](reference/components.md)(같은 내용 — ID·언제 쓰나·props·예시 코드, 패턴이 먼저)를 읽고, 그것도 없으면 `node_modules/@t3q-ui/design-system/dist/index.d.ts`·`dist/patterns/index.d.ts` 를 읽는다. 타입 선언에는 예시 코드가 없다(2026-10-27 홀드아웃 13: d.ts 만 읽은 run 이 MCP 를 부른 run 보다 Pattern·props 를 덜 썼다).
15
+ 3. **조회한다.** MCP `docs-list` 로 ID 를 찾고, `docs-show <id>` 로 props·variant·"언제 쓰나" 를 읽고, 필요하면 `docs-show-story` 로 예시 코드를 본다. MCP 를 부르지 않거나 없으면 이 Skill 의 [reference/components.md](reference/components.md)(같은 내용 — ID·언제 쓰나·props·예시 코드, 패턴이 먼저)를 읽고, 그것도 없으면 `node_modules/@t3q-ui/design-system/dist/index.d.ts`·`dist/patterns/index.d.ts`·`dist/markdown/index.d.ts` 를 읽는다. 타입 선언에는 예시 코드가 없다(2026-10-27 홀드아웃 13: d.ts 만 읽은 run 이 MCP 를 부른 run 보다 Pattern·props 를 덜 썼다).
16
16
  4. **조립한다.** 데이터 조회·상태 관리는 앱이, 배치·상태 표시는 Pattern 이 맡는다. 빈 상태(`empty`)·로딩(`loading`)·오류(`error` + `onRetry`)를 반드시 넘긴다. 페이지는 앱 레이아웃의 `<main>` 하나 안에 두되 **`<main>` 에 padding·max-width·배경을 주지 않는다**(Pattern 이 헤더 띠와 본문 여백 24px 을 가진다 — `<main className='p-8'>` 로 감싸면 헤더가 가장자리에서 떠 보인다, 2026-10-18 한 줄 판). **요청문의 요소·동작은 빠짐없이**(규칙 9) — Pattern 에 없는 것은 생략하지 말고 슬롯(`filters`·`titleRight`·`detail`·`banner`·`footer`·`note`·`actionsNote`) 안에 Component 로 만든다.
17
17
  5. **검증한다.** 타입검사·빌드를 돌린다. 직접 쓴 `<button>`/`<input>`/`<table>`, raw hex, `red-500` 같은 기본 팔레트, `bg-[#…]` 같은 임의값이 없는지 훑는다. 마지막으로 요청문을 체크리스트로 삼아 열·필터·정렬 표시·상세 항목·버튼과 비활성 사유·확인 창·로딩/빈/오류·제출 중 상태를 하나씩 대조한다.
18
18
 
@@ -22,7 +22,8 @@ license: Proprietary. See LICENSE.md in the @t3q-ui/design-system package
22
22
  - 상세 화면: [examples/detail-page.tsx](examples/detail-page.tsx) — 헤더(상태·**메타 `meta` 한 곳**(`MetaGroup` + `MetaItem` 을 가로로 흘림 — ID·버전·소유자·수정일 등 핵심 정보, 탭 위에 항상. 열을 맞춘 격자로 두지 않는다)·행동 슬롯) → 탭(건수 뱃지) → 본문 전폭 → 삭제 확인. 메타 자리를 두 개로 나누지 않는다(2026-10-30 사용자 결정 — 별도 요약 상자 없음). 오른쪽 패널(`aside`)은 쓰지 않는다(짧은 오른쪽 패널은 첫 화면 아래가 비어 홀드아웃 9~12 연속 감점). 상세 화면에 안내 한 줄(`actionsNote`)은 두지 않는다(본문 위에 떠 보여 4라운드 연속 감점, 2026-10-18 11차) — 비활성 버튼은 비활성으로만, 상태 안내는 `banner`. 오류·없음은 `error`/`notFound` prop. 개요 탭은 요약 패널 + 최근 N행 표.
23
23
  - 생성·수정 폼: [examples/form-page.tsx](examples/form-page.tsx) — PageHeader → 섹션 4개 → 누르면 검증(`FormMessage`) → 제출 중 상태(`submitting`, 버튼 잠금·중복 제출 방지) → 취소 확인 → 성공 toast. 선택지 로딩 실패는 폼을 유지한 채 그 섹션 안에 `Alert variant='danger'` 한 줄 + `AlertActions` 다시 시도.
24
24
  - 대시보드: [examples/dashboard-page.tsx](examples/dashboard-page.tsx) — 요약 타일(`ratio`·`tone`) → 기간 선택 + SVG 추이 차트 → 표 → `EventList`. 오류·없음은 `error`/`empty` prop.
25
- - 네 예제 모두 같은 구조다: 데이터는 `fetch*` prop 으로 받고, 상태(로딩·오류·없음)는 패턴 prop 으로 넘기고, 화면 조립만 한다.
25
+ - AI 대화: [examples/chat-page.tsx](examples/chat-page.tsx) — `ChatPage`(제목 옆 모델 선택 → 왼쪽 대화 기록 → 질문·답변 → 입력창) + 파라미터 옆 패널(`sidePanel` + `ParameterTable`, 저장해야 적용) + 기록 삭제 확인(`AlertDialog`). 답변 본문은 `Markdown`(`@t3q-ui/design-system/markdown`), 생성 중은 `streaming` + `onStop`(AbortController), 실패는 그 메시지의 `error`.
26
+ - 다섯 예제 모두 같은 구조다: 데이터는 `fetch*` prop 으로 받고, 상태(로딩·오류·없음)는 패턴 prop 으로 넘기고, 화면 조립만 한다.
26
27
 
27
28
  ## 화면 유형 → Pattern
28
29
 
@@ -34,6 +35,8 @@ license: Proprietary. See LICENSE.md in the @t3q-ui/design-system package
34
35
  | 입력 — 목록 위에 | `FormDrawer` | 목록 맥락을 유지해야 하고 **Drawer 한 화면 안에 들어가는** 폼(섹션 1~2개). 스크롤이 생기면 FormPage |
35
36
  | 입력 — 짧게 | `FormDialog` | 이름 변경·태그 추가처럼 필드 1~4개 |
36
37
  | 대시보드 | `DashboardLayout` + `DashboardSection`(`columns`) + `DashboardPanel` | 숫자 타일·차트로 현재 상태를 한눈에 |
38
+ | AI 대화 — 화면 | `ChatPage` | AI 와 대화하는 독립 화면(프롬프트 테스트·어시스턴트). 왼쪽 대화 기록(`history`)·오른쪽 설정 패널(`sidePanel`)까지 패턴이 그린다 |
39
+ | AI 대화 — 옆 칸 | `ChatPanel` | 본 화면 옆 좁은 칸이나 `Drawer` 안의 보조 대화(코드 도우미). Drawer 안에서는 `title`·`onClose` 를 주지 않는다 |
37
40
 
38
41
  되돌릴 수 없는 작업의 확인만 받을 때는 Pattern 이 아니라 `AlertDialog` 를 쓴다.
39
42
 
@@ -42,6 +45,7 @@ license: Proprietary. See LICENSE.md in the @t3q-ui/design-system package
42
45
  ## 자주 틀리는 것
43
46
 
44
47
  - Pattern 본문은 이미 `<section>` landmark 다. `<main>` 으로 또 감싸지 않는다. 앱의 `<main>` 에는 `p-8`·`max-w-*`·배경을 주지 않는다 — Pattern 이 헤더 띠(화면 끝까지)와 본문 여백(24px)을 가지므로, 감싸면 헤더가 가장자리에서 32px 떠 보인다(2026-10-18 한 줄 판 run). **사이드바·상단바 같은 앱 셸을 새로 그리지 않는다** — 과제는 페이지 하나이고 Pattern 이 헤더(제목·행동)를 그린다. 셸이 꼭 필요하면 `DashboardLayout` 을 쓰고, `fixed` 사이드바로 Pattern 을 덮지 않는다(2026-10-20 17차: Codex 가 그린 사이드바가 ListPage 제목을 덮어 27점).
48
+ - **`ChatPage`·`ChatPanel` 은 부모 높이를 채운다** — 레이아웃의 `<main>`(또는 옆 칸)이 화면 높이를 가져야 메시지 목록만 스크롤되고 입력창이 아래에 붙는다(예: `<main className='h-[calc(100vh-56px)]'>`). 말풍선·입력창·대화 기록·"맨 아래로" 버튼을 직접 만들지 않는다. AI 답변 본문은 `import { Markdown } from '@t3q-ui/design-system/markdown'` 으로 `content` 에 넣는다(기본 진입점이 아니다 — jest 처럼 ESM 을 변환하지 않는 테스트에서는 이 경로를 모킹한다). 생성이 실패하면 받은 본문은 두고 그 메시지에 `error` — 토스트로만 알리지 않는다. 모델 선택은 제목 옆 `status` 에 `SelectTrigger appearance='none'`, 파일 첨부·켜고 끄는 옵션은 입력창 `+` 메뉴(`onAttach`·`menu`).
45
49
  - `ListPage` 의 `onResetFilters` 는 **항상** 넘기고, 필터가 없을 때는 `filtersActive={false}` 로 보이지 않게 한다(자리는 유지). 조건부로 넘기면 빈 결과 화면에서 버튼이 튀어나와 배치가 바뀐다. 버튼은 패턴이 빠른 필터 줄 오른쪽에 그린다 — 검색창 옆에 직접 만들지 않는다.
46
50
  - `ListPage` 에 `tableTitle`("실행환경 목록" 같은 표 제목)을 넘기지 않는다 — 헤더 제목과 중복이고 빠른 필터 옆에서 빽빽해 보인다(2026-10-18 10차). 빠른 필터 줄에는 칩과 "필터 초기화"만.
47
51
  - **라운드는 한 계열** — 뱃지(상태·건수)와 빠른 필터 칩은 pill, 태그 4px, 버튼·입력 6px, 표·카드 8px. 컴포넌트 기본값이 이미 그렇다(`Badge` 기본 pill — 2026-11-06 사용자 결정, 홀드아웃 20 "각진 상태 뱃지 vs 둥근 필터 칩"). 뱃지에 `rounded='square'` 를, 태그·버튼에 `rounded-full`·`shape='rounded'` 를 덧씌워 계열을 섞지 않는다.
@@ -1,7 +1,7 @@
1
1
  # TDS 컴포넌트·패턴 참조 (생성물)
2
2
 
3
3
  `scripts/mcp/build-skill-reference.mjs` 가 Storybook 매니페스트에서 만든다 — **손으로 고치지 않는다**. 70개(패턴 9 · 컴포넌트 61).
4
- MCP `docs-list` / `docs-show <id>` / `docs-show-story` 와 같은 내용이다. 패턴은 `@t3q-ui/design-system/patterns`, 컴포넌트는 `@t3q-ui/design-system` 에서 import 한다. props 표에는 설명이 있는 prop 만 있다 — 전체 타입은 `node_modules/@t3q-ui/design-system/dist/*.d.ts`.
4
+ MCP `docs-list` / `docs-show <id>` / `docs-show-story` 와 같은 내용이다. 패턴은 `@t3q-ui/design-system/patterns`, 컴포넌트는 `@t3q-ui/design-system`, `Markdown` 만 `@t3q-ui/design-system/markdown` 에서 import 한다. props 표에는 설명이 있는 prop 만 있다 — 전체 타입은 `node_modules/@t3q-ui/design-system/dist/*.d.ts`.
5
5
 
6
6
  ## 목차
7
7
 
@@ -8,9 +8,9 @@
8
8
  2. **Do not recreate.** 존재하는 Component(Button, TextField, Select, Table, AgGridTable, Dialog, Drawer, Badge, Toast, Pagination, PageHeader …)를 직접 재구현하지 않는다. `<button>`, `<input>`, `<select>`, `<table>` 을 직접 쓰지 않는다.
9
9
  3. **Search first.** UI 코드를 쓰기 전에 아래 "조회 경로" 로 관련 Component 와 Pattern 을 먼저 찾는다.
10
10
  4. **Do not guess props.** Props·variant 이름을 추측하지 않는다. 조회해서 확인한 것만 쓴다.
11
- 5. **Use Pattern.** 기존 Pattern(`@t3q-ui/design-system/patterns` — ListPage·DetailPage·FormPage·FormDrawer·FormDialog·DashboardLayout)이 있으면 Pattern 으로 시작한다. 화면 구조를 새로 설계하지 않는다. 상세 개요 탭의 블록(정보·표·목록)은 전부 `Panel appearance='none'` 안에 두고 블록 사이는 32 로 띄운다(테두리 없음, 2026-11-17 사용자 결정) — 제목 + 표를 Panel 없이 맨몸으로 두지 않는다(이웃이 Panel 인데 하나만 Panel 밖이면 감점, 2026-10-21 18차). Panel 안의 표는 `Table`(가벼운 표)로 그리고 `AgGridTable`(회색 머리줄·테두리 상자)은 Panel 안에 넣지 않는다(2026-10-21 19차).
11
+ 5. **Use Pattern.** 기존 Pattern(`@t3q-ui/design-system/patterns` — ListPage·DetailPage·FormPage·FormDrawer·FormDialog·DashboardLayout·ChatPage·ChatPanel)이 있으면 Pattern 으로 시작한다. 화면 구조를 새로 설계하지 않는다. 상세 개요 탭의 블록(정보·표·목록)은 전부 `Panel appearance='none'` 안에 두고 블록 사이는 32 로 띄운다(테두리 없음, 2026-11-17 사용자 결정) — 제목 + 표를 Panel 없이 맨몸으로 두지 않는다(이웃이 Panel 인데 하나만 Panel 밖이면 감점, 2026-10-21 18차). Panel 안의 표는 `Table`(가벼운 표)로 그리고 `AgGridTable`(회색 머리줄·테두리 상자)은 Panel 안에 넣지 않는다(2026-10-21 19차).
12
12
  6. **Tokens only.** 색상은 `sys-*` System 토큰과 시맨틱 이름(`primary`, `danger`, `success`, `warning`, `info`, `secondary`)만. raw hex, Tailwind 기본 팔레트(`red-500`), 임의값(`bg-[#…]`, `p-[13px]`)을 쓰지 않는다. 간격은 2/4/6/8/12/16/24/32px 이고 **세 단계로 쓴다 — 붙어 있는 요소 8 · 한 묶음 안 16 · 묶음(섹션) 사이 32(폼 섹션 사이는 48)**. 같은 간격을 화면 전체에 반복하지 않는다. 나란히 놓인 버튼 사이는 8px. Component 외형은 `variant` / `size` prop 으로 바꾸고 `className` 으로 색·배경·라운드를 덧씌우지 않는다.
13
- 7. **One main.** 페이지 내용은 앱 레이아웃의 `<main>` **하나** 안에 둔다. Pattern 본문은 `<section>` 이므로 `<main>` 을 또 만들지 않는다. `<main>` 에 padding·max-width·배경을 주지 않는다 — Pattern 이 헤더 띠(화면 끝까지)와 본문 여백(24px)을 가진다(`<main className='p-8'>` 로 감싸면 헤더가 가장자리에서 떠 보인다). **사이드바·상단바 같은 앱 셸을 새로 그리지 않는다** — 과제는 페이지 하나이고 Pattern 이 헤더(제목·행동)를 그린다. 셸이 꼭 필요하면 `DashboardLayout` 을 쓰고, `fixed` 사이드바로 Pattern 을 덮지 않는다(2026-10-20 17차: Codex 가 그린 사이드바가 ListPage 제목을 덮어 27점).
13
+ 7. **One main.** 페이지 내용은 앱 레이아웃의 `<main>` **하나** 안에 둔다. Pattern 본문은 `<section>` 이므로 `<main>` 을 또 만들지 않는다. `<main>` 에 padding·max-width·배경을 주지 않는다 — Pattern 이 헤더 띠(화면 끝까지)와 본문 여백(24px)을 가진다(`<main className='p-8'>` 로 감싸면 헤더가 가장자리에서 떠 보인다). **사이드바·상단바 같은 앱 셸을 새로 그리지 않는다** — 과제는 페이지 하나이고 Pattern 이 헤더(제목·행동)를 그린다. 셸이 꼭 필요하면 `DashboardLayout` 을 쓰고, `fixed` 사이드바로 Pattern 을 덮지 않는다(2026-10-20 17차: Codex 가 그린 사이드바가 ListPage 제목을 덮어 27점). AI 대화 화면의 왼쪽 대화 기록은 `ChatPage` 가 그린다(`history`) — 직접 그리지 않는다. `ChatPage`·`ChatPanel` 은 부모 높이를 채우므로 `<main>`(또는 옆 칸)이 화면 높이를 가져야 한다.
14
14
  8. **Verify.** 구현 후 프로젝트의 타입검사와 빌드(예: `tsc --noEmit`, `vite build` 또는 `next build`)가 통과하는지 확인한다.
15
15
  9. **Cover the request.** 요청문에 적힌 요소와 동작(열, 필터와 건수, 정렬 표시, 상세 항목, 버튼과 비활성 사유, 확인 창, 로딩·빈·오류 상태, 제출 중 상태)은 **빠짐없이** 구현한다. Pattern 이 제공하지 않는 것은 생략하지 말고 Pattern 의 슬롯(`filters`·`titleRight`·`detail`·`banner`·`footer`·`note`·`actionsNote`) 안에 Component 로 만든다. 마지막에 요청문을 체크리스트로 삼아 하나씩 대조한다.
16
16
 
@@ -26,3 +26,4 @@ MCP 를 부르지 않는 도구(Codex 등)이거나 MCP 가 없거나 응답하
26
26
 
27
27
  - Component: `node_modules/@t3q-ui/design-system/dist/index.d.ts`
28
28
  - Pattern: `node_modules/@t3q-ui/design-system/dist/patterns/index.d.ts`
29
+ - Markdown(AI 답변 본문): `node_modules/@t3q-ui/design-system/dist/markdown/index.d.ts` — `@t3q-ui/design-system/markdown` 에서 import