@t3q-ui/design-system 1.68.2 → 1.69.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.
Files changed (90) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/components/_internal/commandListKeyboard.cjs +49 -0
  3. package/dist/components/_internal/commandListKeyboard.cjs.map +1 -0
  4. package/dist/components/_internal/commandListKeyboard.js +32 -0
  5. package/dist/components/_internal/commandListKeyboard.js.map +1 -0
  6. package/dist/components/agGridTable/index.cjs +8 -1
  7. package/dist/components/agGridTable/index.cjs.map +1 -1
  8. package/dist/components/agGridTable/index.js +8 -1
  9. package/dist/components/agGridTable/index.js.map +1 -1
  10. package/dist/components/columnVisibilityFilter.cjs +4 -18
  11. package/dist/components/columnVisibilityFilter.cjs.map +1 -1
  12. package/dist/components/columnVisibilityFilter.js +5 -19
  13. package/dist/components/columnVisibilityFilter.js.map +1 -1
  14. package/dist/components/dropdownMenu.cjs +20 -0
  15. package/dist/components/dropdownMenu.cjs.map +1 -1
  16. package/dist/components/dropdownMenu.js +20 -0
  17. package/dist/components/dropdownMenu.js.map +1 -1
  18. package/dist/components/fileTree/index.cjs.map +1 -1
  19. package/dist/components/fileTree/index.js.map +1 -1
  20. package/dist/components/form.cjs +2 -1
  21. package/dist/components/form.cjs.map +1 -1
  22. package/dist/components/form.js +2 -1
  23. package/dist/components/form.js.map +1 -1
  24. package/dist/components/pageHeader.cjs +4 -1
  25. package/dist/components/pageHeader.cjs.map +1 -1
  26. package/dist/components/pageHeader.js +4 -1
  27. package/dist/components/pageHeader.js.map +1 -1
  28. package/dist/components/progress.cjs +2 -1
  29. package/dist/components/progress.cjs.map +1 -1
  30. package/dist/components/progress.js +2 -1
  31. package/dist/components/progress.js.map +1 -1
  32. package/dist/components/skeleton/table.cjs +58 -34
  33. package/dist/components/skeleton/table.cjs.map +1 -1
  34. package/dist/components/skeleton/table.js +57 -33
  35. package/dist/components/skeleton/table.js.map +1 -1
  36. package/dist/components/table.cjs +15 -9
  37. package/dist/components/table.cjs.map +1 -1
  38. package/dist/components/table.js +15 -9
  39. package/dist/components/table.js.map +1 -1
  40. package/dist/components/tableFilter.cjs +38 -39
  41. package/dist/components/tableFilter.cjs.map +1 -1
  42. package/dist/components/tableFilter.js +38 -39
  43. package/dist/components/tableFilter.js.map +1 -1
  44. package/dist/design-system.css +3 -0
  45. package/dist/{index-BGcNrSw4.d.cts → index-CzY2o_ci.d.cts} +6 -1
  46. package/dist/{index-BGcNrSw4.d.ts → index-CzY2o_ci.d.ts} +6 -1
  47. package/dist/index.cjs +1 -0
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +48 -12
  50. package/dist/index.d.ts +48 -12
  51. package/dist/index.js +2 -1
  52. package/dist/patterns/dashboardLayout.cjs +11 -1
  53. package/dist/patterns/dashboardLayout.cjs.map +1 -1
  54. package/dist/patterns/dashboardLayout.js +11 -1
  55. package/dist/patterns/dashboardLayout.js.map +1 -1
  56. package/dist/patterns/formDialog.cjs +22 -14
  57. package/dist/patterns/formDialog.cjs.map +1 -1
  58. package/dist/patterns/formDialog.js +23 -15
  59. package/dist/patterns/formDialog.js.map +1 -1
  60. package/dist/patterns/formDrawer.cjs +24 -16
  61. package/dist/patterns/formDrawer.cjs.map +1 -1
  62. package/dist/patterns/formDrawer.js +25 -17
  63. package/dist/patterns/formDrawer.js.map +1 -1
  64. package/dist/patterns/formPage.cjs +33 -25
  65. package/dist/patterns/formPage.cjs.map +1 -1
  66. package/dist/patterns/formPage.js +33 -25
  67. package/dist/patterns/formPage.js.map +1 -1
  68. package/dist/patterns/formShell.cjs +5 -0
  69. package/dist/patterns/formShell.cjs.map +1 -1
  70. package/dist/patterns/formShell.js +5 -0
  71. package/dist/patterns/formShell.js.map +1 -1
  72. package/dist/patterns/index.d.cts +20 -10
  73. package/dist/patterns/index.d.ts +20 -10
  74. package/dist/patterns/listPage.cjs +10 -2
  75. package/dist/patterns/listPage.cjs.map +1 -1
  76. package/dist/patterns/listPage.js +10 -2
  77. package/dist/patterns/listPage.js.map +1 -1
  78. package/dist/patterns/pageAside.cjs +1 -1
  79. package/dist/patterns/pageAside.cjs.map +1 -1
  80. package/dist/patterns/pageAside.js +1 -1
  81. package/dist/patterns/pageAside.js.map +1 -1
  82. package/dist/patterns/states.cjs +1 -1
  83. package/dist/patterns/states.cjs.map +1 -1
  84. package/dist/patterns/states.js +1 -1
  85. package/dist/patterns/states.js.map +1 -1
  86. package/dist/styles.css +12 -0
  87. package/mcp/manifests/components.json +314 -37
  88. package/package.json +1 -1
  89. package/skills/tds/SKILL.md +11 -3
  90. package/skills/tds/reference/components.md +37 -13
package/dist/index.cjs CHANGED
@@ -173,6 +173,7 @@ exports.DrawerPortal = drawer.DrawerPortal;
173
173
  exports.DrawerTitle = drawer.DrawerTitle;
174
174
  exports.DrawerTrigger = drawer.DrawerTrigger;
175
175
  exports.DropdownMenu = dropdownMenu.DropdownMenu;
176
+ exports.DropdownMenuAnchor = dropdownMenu.DropdownMenuAnchor;
176
177
  exports.DropdownMenuContent = dropdownMenu.DropdownMenuContent;
177
178
  exports.DropdownMenuGroup = dropdownMenu.DropdownMenuGroup;
178
179
  exports.DropdownMenuItem = dropdownMenu.DropdownMenuItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.cts CHANGED
@@ -8,15 +8,15 @@ declare namespace class_variance_authority_types {
8
8
  }
9
9
  import { VariantProps } from 'class-variance-authority';
10
10
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
11
- import { B as BadgeProps } from './index-BGcNrSw4.cjs';
12
- export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-BGcNrSw4.cjs';
11
+ import { B as BadgeProps } from './index-CzY2o_ci.cjs';
12
+ export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-CzY2o_ci.cjs';
13
13
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
14
14
  import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
15
15
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
16
16
  import { DialogProps } from '@radix-ui/react-dialog';
17
17
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
18
18
  import { BasicDataNode, TreeProps } from 'rc-tree';
19
- import { DataNode, EventDataNode } from 'rc-tree/lib/interface';
19
+ import { DataNode, EventDataNode, Key } from 'rc-tree/lib/interface';
20
20
  import * as _radix_ui_react_slot from '@radix-ui/react-slot';
21
21
  import * as react_hook_form from 'react-hook-form';
22
22
  import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
@@ -686,11 +686,24 @@ declare function DatePickerRange({ date, setDate, withPresets, placeholder, clas
686
686
  *
687
687
  * 언제 쓰나: 행동이 많거나 자리가 좁을 때 보조 행동을 모은다(`IconButton` 더보기 + 메뉴, 표 행의 작업). 삭제 같은 위험한 행동은 구분선 아래 danger 항목으로. 체크처럼 연달아 고르는 항목은 `keepOpen`.
688
688
  * 언제 안 쓰나: 값을 고르는 입력(→ Select·MultiSelect), 화면의 주요 행동(→ Button 으로 바로 보이게), 검색이 필요한 긴 목록(→ Command).
689
- * 대신/함께: DetailPage 의 보조·삭제 행동은 패턴이 "더보기"로 접으니 직접 메뉴를 만들지 않는다.
689
+ * 대신/함께: DetailPage 의 보조·삭제 행동은 패턴이 "더보기"로 접으니 직접 메뉴를 만들지 않는다. 우클릭한 자리처럼 버튼 없이 화면의 한 점에 열 때는 `DropdownMenuTrigger` 대신 `DropdownMenuAnchor`(`x`·`y`)를 두고 `open`·`onOpenChange` 로 여닫는다(FileTree 의 ContextMenu 스토리).
690
690
  */
691
691
  declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
692
692
  declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
693
693
  declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
694
+ /**
695
+ * 버튼 없이 화면의 한 점에 메뉴를 여는 기준점.
696
+ *
697
+ * 언제 쓰나: 우클릭 메뉴처럼 누른 자리에 메뉴를 열 때 `DropdownMenuTrigger` 대신 둔다. `x`·`y` 에 마우스 이벤트의 `clientX`·`clientY` 를 주고, 여닫기는 `DropdownMenu` 의 `open`·`onOpenChange` 로 한다. 좌표를 바꾸면 열려 있던 메뉴도 그 자리로 옮겨 간다.
698
+ * 언제 안 쓰나: 누를 버튼이 있을 때(→ `DropdownMenuTrigger`). 한 메뉴에 Trigger 와 함께 두지 않는다.
699
+ * 대신/함께: `DropdownMenuContent` 에 `align='start'`(메뉴 왼쪽 위가 그 점에 온다)와 `aria-label`(기준점에는 글자가 없어 이것이 메뉴 이름이 된다)을 준다. 닫힌 뒤 포커스를 돌려줄 곳이 있으면 `onCloseAutoFocus` 에서 옮긴다. 우클릭은 마우스로만 열리므로 같은 행동을 키보드가 닿는 버튼에도 둔다.
700
+ */
701
+ declare function DropdownMenuAnchor({ x, y, }: {
702
+ /** 화면 기준 가로 좌표(px) — 마우스 이벤트의 `clientX` */
703
+ x: number;
704
+ /** 화면 기준 세로 좌표(px) — 마우스 이벤트의 `clientY` */
705
+ y: number;
706
+ }): react_jsx_runtime.JSX.Element;
694
707
  declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
695
708
  declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
696
709
  declare function DropdownMenuItem({ className, variant, keepOpen, onSelect, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
@@ -716,6 +729,16 @@ declare function DropdownMenuSubContent({ className, ...props }: React$1.Compone
716
729
  type FileTreeNode = DataNode;
717
730
  /** 이벤트 핸들러(`onSelect`·`onExpand`·`loadData` 등)가 받는 노드. 노드 데이터에 `expanded`·`selected`·`loaded` 같은 상태가 붙는다 */
718
731
  type FileTreeEventNode<T extends BasicDataNode = DataNode> = EventDataNode<T>;
732
+ /** 노드 `key` 의 타입(`React.Key` — 보통 문자열·숫자). `selectedKeys`·`expandedKeys` 와 `onSelect`·`onExpand` 의 첫 인자가 이 타입의 배열이다 */
733
+ type FileTreeKey = Key;
734
+ /** `onSelect` 의 둘째 인자 — 누른 노드 `node`, 선택 여부 `selected`, 선택된 노드들 `selectedNodes`, 브라우저 이벤트 `nativeEvent` */
735
+ type FileTreeSelectInfo<T extends BasicDataNode = DataNode> = Parameters<NonNullable<TreeProps<T>['onSelect']>>[1];
736
+ /** `onExpand` 의 둘째 인자 — 펼치거나 접은 노드 `node`, 펼침 여부 `expanded`, 브라우저 이벤트 `nativeEvent` */
737
+ type FileTreeExpandInfo<T extends BasicDataNode = DataNode> = Parameters<NonNullable<TreeProps<T>['onExpand']>>[1];
738
+ /** `onRightClick` 의 인자 — 우클릭한 노드 `node`, 마우스 이벤트 `event`(메뉴를 열 좌표는 `event.clientX`·`event.clientY`) */
739
+ type FileTreeRightClickInfo<T extends BasicDataNode = DataNode> = Parameters<NonNullable<TreeProps<T>['onRightClick']>>[0];
740
+ /** `onDrop` 의 인자 — 끌어 온 노드 `dragNode`, 놓은 자리의 노드 `node`, 놓은 위치 `dropPosition`·`dropToGap`(true 면 노드 사이, false 면 폴더 안) */
741
+ type FileTreeDropInfo<T extends BasicDataNode = DataNode> = Parameters<NonNullable<TreeProps<T>['onDrop']>>[0];
719
742
  /** FileTree 가 외형을 정해 두어 받지 않는 rc-tree props — 접두사·연결선·행 높이·펼침 아이콘·체크박스·드롭 표시선 */
720
743
  type FixedTreeProps = 'prefixCls' | 'showLine' | 'itemHeight' | 'switcherIcon' | 'checkable' | 'dropIndicatorRender';
721
744
  interface FileTreeProps<T extends BasicDataNode = DataNode> extends Omit<TreeProps<T>, FixedTreeProps> {
@@ -727,10 +750,14 @@ interface FileTreeProps<T extends BasicDataNode = DataNode> extends Omit<TreePro
727
750
  loadData?: TreeProps<T>['loadData'];
728
751
  /** 목록 높이(px). 주면 보이는 만큼만 그리는 가상 스크롤이 켜진다. 노드가 많을 때 준다 */
729
752
  height?: TreeProps<T>['height'];
730
- /** 노드를 눌러 선택이 바뀔 때 호출된다 */
753
+ /** 노드를 눌러 선택이 바뀔 때 호출된다. 인자는 선택된 key 배열(`FileTreeKey[]`)과 `FileTreeSelectInfo` */
731
754
  onSelect?: TreeProps<T>['onSelect'];
732
- /** 노드를 우클릭할 때 호출된다. 메뉴는 앱이 DropdownMenu 등으로 그린다 */
755
+ /** 폴더를 펼치거나 접을 때 호출된다. 인자는 펼쳐진 key 배열(`FileTreeKey[]`)과 `FileTreeExpandInfo` */
756
+ onExpand?: TreeProps<T>['onExpand'];
757
+ /** 노드를 우클릭할 때 호출된다(`FileTreeRightClickInfo`). 메뉴는 앱이 DropdownMenu 로 그린다 — 받은 좌표를 `DropdownMenuAnchor` 에 넘긴다(ContextMenu 스토리) */
733
758
  onRightClick?: TreeProps<T>['onRightClick'];
759
+ /** `draggable` 일 때 노드를 놓으면 호출된다(`FileTreeDropInfo`). 트리 데이터는 앱이 옮긴다 */
760
+ onDrop?: TreeProps<T>['onDrop'];
734
761
  /** 노드 제목을 직접 그린다. 노드 데이터를 받아 제목 자리에 들어갈 내용을 돌려준다 */
735
762
  titleRender?: TreeProps<T>['titleRender'];
736
763
  }
@@ -739,7 +766,7 @@ interface FileTreeProps<T extends BasicDataNode = DataNode> extends Omit<TreePro
739
766
  *
740
767
  * 언제 쓰나: 파일·폴더 계층 탐색, 폴더를 펼칠 때 하위 항목을 그때그때 불러오는 목록(`loadData`), 노드가 많은 목록(`height` 를 주면 가상 스크롤).
741
768
  * 언제 안 쓰나: 평면 목록(→ Table·AgGridTable), 화면 이동 메뉴(→ Sidebar).
742
- * 대신/함께: 우클릭 메뉴는 `onRightClick` 과 DropdownMenu 를 앱이 이어 붙인다. "더 보기" 같은 앱 고유 노드·실행 모듈 표시는 `treeData`·`icon`·`titleRender` 로, 검색어 강조는 `filterTreeNode` 로 그린다.
769
+ * 대신/함께: 우클릭 메뉴는 `onRightClick` 과 DropdownMenu 를 앱이 이어 붙인다 — 받은 `event.clientX`·`clientY` 를 `DropdownMenuAnchor` 의 `x`·`y` 로 넘겨 그 자리에 연다(ContextMenu 스토리). 비활성 노드에는 열지 않고, 우클릭은 마우스로만 열리므로 같은 행동을 키보드가 닿는 버튼에도 둔다. 핸들러 타입은 `FileTreeKey`·`FileTreeSelectInfo`·`FileTreeExpandInfo`·`FileTreeRightClickInfo`·`FileTreeDropInfo` 로 쓴다 — `rc-tree` 에서 직접 import 하지 않는다. "더 보기" 같은 앱 고유 노드·실행 모듈 표시는 `treeData`·`icon`·`titleRender` 로, 검색어 강조는 `filterTreeNode` 로 그린다.
743
770
  */
744
771
  declare function FileTree<T extends BasicDataNode = DataNode>({ icon, treeData, ...rest }: FileTreeProps<T>): react_jsx_runtime.JSX.Element;
745
772
 
@@ -809,6 +836,8 @@ declare const FormSection: React$1.ForwardRefExoticComponent<React$1.HTMLAttribu
809
836
  title?: React$1.ReactNode;
810
837
  /** 제목 태그 레벨. 기본은 문맥(FormPage 안 = 2, Drawer·Dialog 안 = 3) */
811
838
  level?: 2 | 3;
839
+ /** 섹션 폭. `'full'` 이면 `FormPage width='full'` 안에서 이 섹션만 본문 폭을 다 쓴다 — 파일 트리 + 코드 편집기 같은 넓은 작업대를 두는 섹션(안의 `FormControl` 입력은 그대로 720). 그 밖(기본 폭 FormPage·FormDrawer·FormDialog)에서는 효과가 없다. 기본 'form'(다른 섹션과 같은 720 열) */
840
+ width?: "form" | "full";
812
841
  } & React$1.RefAttributes<HTMLDivElement>>;
813
842
  declare const FormFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
814
843
  align?: "end" | "start" | "center" | "stretch" | null | undefined;
@@ -1188,11 +1217,12 @@ declare const indicatorVariants: {
1188
1217
  readonly success: "bg-success30";
1189
1218
  readonly warning: "bg-warning30";
1190
1219
  readonly danger: "bg-danger30";
1220
+ readonly info: "bg-info30";
1191
1221
  };
1192
1222
  interface ProgressProps extends React$1.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> {
1193
1223
  /** 진행률 (0–100). 없으면 indeterminate */
1194
1224
  value?: number;
1195
- /** 막대 색. 기본 `primary`. 상태 Badge 의 tone 과 맞춘다 — 실패 `danger`, 경고 `warning`, 완료 `success` */
1225
+ /** 막대 색. 기본 `primary`. 상태 Badge 의 tone 과 맞춘다 — 실패 `danger`, 경고 `warning`, 완료 `success`. 나란히 놓인 막대를 종류로 구분할 때(CPU·Memory·GPU)는 종류마다 `primary`·`warning`·`info` 처럼 다른 색을 준다 */
1196
1226
  variant?: keyof typeof indicatorVariants;
1197
1227
  }
1198
1228
  /**
@@ -1538,6 +1568,11 @@ declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<React$1.HTMLAtt
1538
1568
  } & React$1.RefAttributes<HTMLLIElement>>;
1539
1569
  declare const SidebarFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1540
1570
 
1571
+ /**
1572
+ * AgGridTable 이 `loading` 일 때 표 자리에 그리는 뼈대. 실제 표와 같은 상자로 그린다 —
1573
+ * 둥근 테두리 하나, 채운 머리줄, 행 사이 선. 선은 모두 1px sys-divider-subtle, 칸 좌우 여백은 16px 로 표와 같다.
1574
+ * 머리줄(열 이름 길이만큼)과 본문 칸은 Skeleton 막대(깜박임)다.
1575
+ */
1541
1576
  declare function TableSkeleton({ columnDefs, rowLength, rowHeight, headerHeight, selectionColumnWidth, }: {
1542
1577
  columnDefs?: ColDef[];
1543
1578
  rowLength?: number;
@@ -1740,7 +1775,7 @@ declare const SwitchSection: React$1.ForwardRefExoticComponent<SwitchSectionProp
1740
1775
  *
1741
1776
  * 언제 쓰나: 상세 화면의 속성 표, 수십 행 이하의 고정 목록, 셀 안에 자유로운 마크업이 필요할 때. `TableHeader`·`TableRow`·`TableCell` 로 조립한다. 숫자 열(건수·비율·크기)은 `TableHead align='right'`(오른쪽 정렬·한 줄). 열 폭은 표가 내용에 맞춰 나눈다(`AgGridTable` 과 같은 규칙, 2026-11-09 홀드아웃 24 뒤 3-C): 각 열은 내용(머리글·값)만큼, 남는 폭은 첫 열(이름)이 내용의 2배까지 받고 그 뒤는 모든 열이 내용 비율로 — 이름 열 하나가 남는 폭을 다 받지 않는다. 열에 `w-…` 를 주지 않는다(주면 그 폭이 하한이라 빈 자리가 생긴다). 표가 내용보다 좁으면 브라우저 배치(줄바꿈)를 따른다. 열 폭을 직접 고정하려면 `className='table-fixed'`(이때는 재지 않는다).
1742
1777
  * 언제 안 쓰나: 서버 페이징·정렬·컬럼 숨김·가상 스크롤이 필요한 목록(→ AgGridTable), 키-값 몇 줄(→ MetaItem).
1743
- * 대신/함께: 페이지네이션은 `TablePagination` 안에 `Pagination`, 빈 상태는 행 하나로 직접 그린다.
1778
+ * 대신/함께: 페이지네이션은 `TablePagination` 안에 `Pagination`, 빈 상태는 행 하나로 직접 그린다. **행 머리가 있는 표**(행이 속성, 열이 비교 대상인 비교 표)는 `TableBody` 의 행 맨 앞에 `TableHead scope='row'` 를 둔다 — 머리글과 같은 바탕·글자에 값 칸과의 경계선이 붙는다. 여러 행을 묶는 머리는 `rowSpan`(묶음 안의 행 사이 선은 그 칸을 지나가지 않는다), 그 위 머리글 칸은 `colSpan` 으로 맞춘다. 다만 **첫 행에 `colSpan` 이 있으면 표가 열 폭을 재지 않는다**(브라우저 자동 배치 — 열마다 폭이 내용 따라 달라진다) — 그때는 `className='table-fixed'` 와 `<colgroup>`(머리 열에만 `<col className='w-[120px]' />`, 폭 없는 `<col />` 들이 나머지를 똑같이 나눈다)으로 열 폭을 정한다.
1744
1779
  */
1745
1780
  declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
1746
1781
  declare const tableHeaderVariant: (props?: ({
@@ -1766,7 +1801,8 @@ declare const tableHeadVariant: (props?: ({
1766
1801
  interface TableHeadProps extends Omit<React$1.ThHTMLAttributes<HTMLTableCellElement>, 'align'>, VariantProps<typeof tableHeadVariant> {
1767
1802
  }
1768
1803
  /** 표 머리글 칸. `align='right'`(또는 className `text-right`)인 열은 숫자 열 — 오른쪽 정렬·한 줄. 열 폭은 표가 내용에 맞춰 나누므로 `w-…` 를 주지 않는다
1769
- * (주면 하한). 첫 열이 숫자 열이 아니면 그 열(이름)이 남는 폭을 먼저 받는다 */
1804
+ * (주면 하한). 첫 열이 숫자 열이 아니면 그 열(이름)이 남는 폭을 먼저 받는다.
1805
+ * `TableBody` 의 행 안에 두면 행 머리다 — `scope='row'` 를 주고(여러 행을 묶으면 `rowSpan` 도), 머리글과 같은 바탕·글자로 그려진다 */
1770
1806
  declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
1771
1807
  declare const tableCellMasterVariant: (props?: ({
1772
1808
  align?: "left" | "right" | "center" | null | undefined;
@@ -1889,7 +1925,7 @@ interface SingleSelectProps extends FilterTitleType {
1889
1925
  options: Option[];
1890
1926
  /** 선택이 변경될 때 호출되는 콜백 함수 */
1891
1927
  onChange: (selected: Option | null) => void;
1892
- /** 초기 선택된 값 */
1928
+ /** 선택된 값. 주면 제어 컴포넌트(고르면 onChange 로만 알린다), 한 번도 주지 않으면 고른 값을 스스로 기억한다 */
1893
1929
  value?: string;
1894
1930
  /** 아무것도 고르지 않았을 때의 **값** 문구. `title` 이 있으면 트리거는 항상 "{title} · {값}"(예: 상태 · 전체)으로 그려지고, 이 값의 기본은 "전체". title 이 없으면 기본 "선택" */
1895
1931
  placeholder?: string;
@@ -2723,4 +2759,4 @@ interface UseFloatingLabelReturn {
2723
2759
  }
2724
2760
  declare function useFloatingLabel(options: UseFloatingLabelOptions): UseFloatingLabelReturn;
2725
2761
 
2726
- export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
2762
+ export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
package/dist/index.d.ts CHANGED
@@ -8,15 +8,15 @@ declare namespace class_variance_authority_types {
8
8
  }
9
9
  import { VariantProps } from 'class-variance-authority';
10
10
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
11
- import { B as BadgeProps } from './index-BGcNrSw4.js';
12
- export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-BGcNrSw4.js';
11
+ import { B as BadgeProps } from './index-CzY2o_ci.js';
12
+ export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-CzY2o_ci.js';
13
13
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
14
14
  import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
15
15
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
16
16
  import { DialogProps } from '@radix-ui/react-dialog';
17
17
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
18
18
  import { BasicDataNode, TreeProps } from 'rc-tree';
19
- import { DataNode, EventDataNode } from 'rc-tree/lib/interface';
19
+ import { DataNode, EventDataNode, Key } from 'rc-tree/lib/interface';
20
20
  import * as _radix_ui_react_slot from '@radix-ui/react-slot';
21
21
  import * as react_hook_form from 'react-hook-form';
22
22
  import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
@@ -686,11 +686,24 @@ declare function DatePickerRange({ date, setDate, withPresets, placeholder, clas
686
686
  *
687
687
  * 언제 쓰나: 행동이 많거나 자리가 좁을 때 보조 행동을 모은다(`IconButton` 더보기 + 메뉴, 표 행의 작업). 삭제 같은 위험한 행동은 구분선 아래 danger 항목으로. 체크처럼 연달아 고르는 항목은 `keepOpen`.
688
688
  * 언제 안 쓰나: 값을 고르는 입력(→ Select·MultiSelect), 화면의 주요 행동(→ Button 으로 바로 보이게), 검색이 필요한 긴 목록(→ Command).
689
- * 대신/함께: DetailPage 의 보조·삭제 행동은 패턴이 "더보기"로 접으니 직접 메뉴를 만들지 않는다.
689
+ * 대신/함께: DetailPage 의 보조·삭제 행동은 패턴이 "더보기"로 접으니 직접 메뉴를 만들지 않는다. 우클릭한 자리처럼 버튼 없이 화면의 한 점에 열 때는 `DropdownMenuTrigger` 대신 `DropdownMenuAnchor`(`x`·`y`)를 두고 `open`·`onOpenChange` 로 여닫는다(FileTree 의 ContextMenu 스토리).
690
690
  */
691
691
  declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
692
692
  declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
693
693
  declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
694
+ /**
695
+ * 버튼 없이 화면의 한 점에 메뉴를 여는 기준점.
696
+ *
697
+ * 언제 쓰나: 우클릭 메뉴처럼 누른 자리에 메뉴를 열 때 `DropdownMenuTrigger` 대신 둔다. `x`·`y` 에 마우스 이벤트의 `clientX`·`clientY` 를 주고, 여닫기는 `DropdownMenu` 의 `open`·`onOpenChange` 로 한다. 좌표를 바꾸면 열려 있던 메뉴도 그 자리로 옮겨 간다.
698
+ * 언제 안 쓰나: 누를 버튼이 있을 때(→ `DropdownMenuTrigger`). 한 메뉴에 Trigger 와 함께 두지 않는다.
699
+ * 대신/함께: `DropdownMenuContent` 에 `align='start'`(메뉴 왼쪽 위가 그 점에 온다)와 `aria-label`(기준점에는 글자가 없어 이것이 메뉴 이름이 된다)을 준다. 닫힌 뒤 포커스를 돌려줄 곳이 있으면 `onCloseAutoFocus` 에서 옮긴다. 우클릭은 마우스로만 열리므로 같은 행동을 키보드가 닿는 버튼에도 둔다.
700
+ */
701
+ declare function DropdownMenuAnchor({ x, y, }: {
702
+ /** 화면 기준 가로 좌표(px) — 마우스 이벤트의 `clientX` */
703
+ x: number;
704
+ /** 화면 기준 세로 좌표(px) — 마우스 이벤트의 `clientY` */
705
+ y: number;
706
+ }): react_jsx_runtime.JSX.Element;
694
707
  declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
695
708
  declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
696
709
  declare function DropdownMenuItem({ className, variant, keepOpen, onSelect, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
@@ -716,6 +729,16 @@ declare function DropdownMenuSubContent({ className, ...props }: React$1.Compone
716
729
  type FileTreeNode = DataNode;
717
730
  /** 이벤트 핸들러(`onSelect`·`onExpand`·`loadData` 등)가 받는 노드. 노드 데이터에 `expanded`·`selected`·`loaded` 같은 상태가 붙는다 */
718
731
  type FileTreeEventNode<T extends BasicDataNode = DataNode> = EventDataNode<T>;
732
+ /** 노드 `key` 의 타입(`React.Key` — 보통 문자열·숫자). `selectedKeys`·`expandedKeys` 와 `onSelect`·`onExpand` 의 첫 인자가 이 타입의 배열이다 */
733
+ type FileTreeKey = Key;
734
+ /** `onSelect` 의 둘째 인자 — 누른 노드 `node`, 선택 여부 `selected`, 선택된 노드들 `selectedNodes`, 브라우저 이벤트 `nativeEvent` */
735
+ type FileTreeSelectInfo<T extends BasicDataNode = DataNode> = Parameters<NonNullable<TreeProps<T>['onSelect']>>[1];
736
+ /** `onExpand` 의 둘째 인자 — 펼치거나 접은 노드 `node`, 펼침 여부 `expanded`, 브라우저 이벤트 `nativeEvent` */
737
+ type FileTreeExpandInfo<T extends BasicDataNode = DataNode> = Parameters<NonNullable<TreeProps<T>['onExpand']>>[1];
738
+ /** `onRightClick` 의 인자 — 우클릭한 노드 `node`, 마우스 이벤트 `event`(메뉴를 열 좌표는 `event.clientX`·`event.clientY`) */
739
+ type FileTreeRightClickInfo<T extends BasicDataNode = DataNode> = Parameters<NonNullable<TreeProps<T>['onRightClick']>>[0];
740
+ /** `onDrop` 의 인자 — 끌어 온 노드 `dragNode`, 놓은 자리의 노드 `node`, 놓은 위치 `dropPosition`·`dropToGap`(true 면 노드 사이, false 면 폴더 안) */
741
+ type FileTreeDropInfo<T extends BasicDataNode = DataNode> = Parameters<NonNullable<TreeProps<T>['onDrop']>>[0];
719
742
  /** FileTree 가 외형을 정해 두어 받지 않는 rc-tree props — 접두사·연결선·행 높이·펼침 아이콘·체크박스·드롭 표시선 */
720
743
  type FixedTreeProps = 'prefixCls' | 'showLine' | 'itemHeight' | 'switcherIcon' | 'checkable' | 'dropIndicatorRender';
721
744
  interface FileTreeProps<T extends BasicDataNode = DataNode> extends Omit<TreeProps<T>, FixedTreeProps> {
@@ -727,10 +750,14 @@ interface FileTreeProps<T extends BasicDataNode = DataNode> extends Omit<TreePro
727
750
  loadData?: TreeProps<T>['loadData'];
728
751
  /** 목록 높이(px). 주면 보이는 만큼만 그리는 가상 스크롤이 켜진다. 노드가 많을 때 준다 */
729
752
  height?: TreeProps<T>['height'];
730
- /** 노드를 눌러 선택이 바뀔 때 호출된다 */
753
+ /** 노드를 눌러 선택이 바뀔 때 호출된다. 인자는 선택된 key 배열(`FileTreeKey[]`)과 `FileTreeSelectInfo` */
731
754
  onSelect?: TreeProps<T>['onSelect'];
732
- /** 노드를 우클릭할 때 호출된다. 메뉴는 앱이 DropdownMenu 등으로 그린다 */
755
+ /** 폴더를 펼치거나 접을 때 호출된다. 인자는 펼쳐진 key 배열(`FileTreeKey[]`)과 `FileTreeExpandInfo` */
756
+ onExpand?: TreeProps<T>['onExpand'];
757
+ /** 노드를 우클릭할 때 호출된다(`FileTreeRightClickInfo`). 메뉴는 앱이 DropdownMenu 로 그린다 — 받은 좌표를 `DropdownMenuAnchor` 에 넘긴다(ContextMenu 스토리) */
733
758
  onRightClick?: TreeProps<T>['onRightClick'];
759
+ /** `draggable` 일 때 노드를 놓으면 호출된다(`FileTreeDropInfo`). 트리 데이터는 앱이 옮긴다 */
760
+ onDrop?: TreeProps<T>['onDrop'];
734
761
  /** 노드 제목을 직접 그린다. 노드 데이터를 받아 제목 자리에 들어갈 내용을 돌려준다 */
735
762
  titleRender?: TreeProps<T>['titleRender'];
736
763
  }
@@ -739,7 +766,7 @@ interface FileTreeProps<T extends BasicDataNode = DataNode> extends Omit<TreePro
739
766
  *
740
767
  * 언제 쓰나: 파일·폴더 계층 탐색, 폴더를 펼칠 때 하위 항목을 그때그때 불러오는 목록(`loadData`), 노드가 많은 목록(`height` 를 주면 가상 스크롤).
741
768
  * 언제 안 쓰나: 평면 목록(→ Table·AgGridTable), 화면 이동 메뉴(→ Sidebar).
742
- * 대신/함께: 우클릭 메뉴는 `onRightClick` 과 DropdownMenu 를 앱이 이어 붙인다. "더 보기" 같은 앱 고유 노드·실행 모듈 표시는 `treeData`·`icon`·`titleRender` 로, 검색어 강조는 `filterTreeNode` 로 그린다.
769
+ * 대신/함께: 우클릭 메뉴는 `onRightClick` 과 DropdownMenu 를 앱이 이어 붙인다 — 받은 `event.clientX`·`clientY` 를 `DropdownMenuAnchor` 의 `x`·`y` 로 넘겨 그 자리에 연다(ContextMenu 스토리). 비활성 노드에는 열지 않고, 우클릭은 마우스로만 열리므로 같은 행동을 키보드가 닿는 버튼에도 둔다. 핸들러 타입은 `FileTreeKey`·`FileTreeSelectInfo`·`FileTreeExpandInfo`·`FileTreeRightClickInfo`·`FileTreeDropInfo` 로 쓴다 — `rc-tree` 에서 직접 import 하지 않는다. "더 보기" 같은 앱 고유 노드·실행 모듈 표시는 `treeData`·`icon`·`titleRender` 로, 검색어 강조는 `filterTreeNode` 로 그린다.
743
770
  */
744
771
  declare function FileTree<T extends BasicDataNode = DataNode>({ icon, treeData, ...rest }: FileTreeProps<T>): react_jsx_runtime.JSX.Element;
745
772
 
@@ -809,6 +836,8 @@ declare const FormSection: React$1.ForwardRefExoticComponent<React$1.HTMLAttribu
809
836
  title?: React$1.ReactNode;
810
837
  /** 제목 태그 레벨. 기본은 문맥(FormPage 안 = 2, Drawer·Dialog 안 = 3) */
811
838
  level?: 2 | 3;
839
+ /** 섹션 폭. `'full'` 이면 `FormPage width='full'` 안에서 이 섹션만 본문 폭을 다 쓴다 — 파일 트리 + 코드 편집기 같은 넓은 작업대를 두는 섹션(안의 `FormControl` 입력은 그대로 720). 그 밖(기본 폭 FormPage·FormDrawer·FormDialog)에서는 효과가 없다. 기본 'form'(다른 섹션과 같은 720 열) */
840
+ width?: "form" | "full";
812
841
  } & React$1.RefAttributes<HTMLDivElement>>;
813
842
  declare const FormFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
814
843
  align?: "end" | "start" | "center" | "stretch" | null | undefined;
@@ -1188,11 +1217,12 @@ declare const indicatorVariants: {
1188
1217
  readonly success: "bg-success30";
1189
1218
  readonly warning: "bg-warning30";
1190
1219
  readonly danger: "bg-danger30";
1220
+ readonly info: "bg-info30";
1191
1221
  };
1192
1222
  interface ProgressProps extends React$1.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> {
1193
1223
  /** 진행률 (0–100). 없으면 indeterminate */
1194
1224
  value?: number;
1195
- /** 막대 색. 기본 `primary`. 상태 Badge 의 tone 과 맞춘다 — 실패 `danger`, 경고 `warning`, 완료 `success` */
1225
+ /** 막대 색. 기본 `primary`. 상태 Badge 의 tone 과 맞춘다 — 실패 `danger`, 경고 `warning`, 완료 `success`. 나란히 놓인 막대를 종류로 구분할 때(CPU·Memory·GPU)는 종류마다 `primary`·`warning`·`info` 처럼 다른 색을 준다 */
1196
1226
  variant?: keyof typeof indicatorVariants;
1197
1227
  }
1198
1228
  /**
@@ -1538,6 +1568,11 @@ declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<React$1.HTMLAtt
1538
1568
  } & React$1.RefAttributes<HTMLLIElement>>;
1539
1569
  declare const SidebarFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1540
1570
 
1571
+ /**
1572
+ * AgGridTable 이 `loading` 일 때 표 자리에 그리는 뼈대. 실제 표와 같은 상자로 그린다 —
1573
+ * 둥근 테두리 하나, 채운 머리줄, 행 사이 선. 선은 모두 1px sys-divider-subtle, 칸 좌우 여백은 16px 로 표와 같다.
1574
+ * 머리줄(열 이름 길이만큼)과 본문 칸은 Skeleton 막대(깜박임)다.
1575
+ */
1541
1576
  declare function TableSkeleton({ columnDefs, rowLength, rowHeight, headerHeight, selectionColumnWidth, }: {
1542
1577
  columnDefs?: ColDef[];
1543
1578
  rowLength?: number;
@@ -1740,7 +1775,7 @@ declare const SwitchSection: React$1.ForwardRefExoticComponent<SwitchSectionProp
1740
1775
  *
1741
1776
  * 언제 쓰나: 상세 화면의 속성 표, 수십 행 이하의 고정 목록, 셀 안에 자유로운 마크업이 필요할 때. `TableHeader`·`TableRow`·`TableCell` 로 조립한다. 숫자 열(건수·비율·크기)은 `TableHead align='right'`(오른쪽 정렬·한 줄). 열 폭은 표가 내용에 맞춰 나눈다(`AgGridTable` 과 같은 규칙, 2026-11-09 홀드아웃 24 뒤 3-C): 각 열은 내용(머리글·값)만큼, 남는 폭은 첫 열(이름)이 내용의 2배까지 받고 그 뒤는 모든 열이 내용 비율로 — 이름 열 하나가 남는 폭을 다 받지 않는다. 열에 `w-…` 를 주지 않는다(주면 그 폭이 하한이라 빈 자리가 생긴다). 표가 내용보다 좁으면 브라우저 배치(줄바꿈)를 따른다. 열 폭을 직접 고정하려면 `className='table-fixed'`(이때는 재지 않는다).
1742
1777
  * 언제 안 쓰나: 서버 페이징·정렬·컬럼 숨김·가상 스크롤이 필요한 목록(→ AgGridTable), 키-값 몇 줄(→ MetaItem).
1743
- * 대신/함께: 페이지네이션은 `TablePagination` 안에 `Pagination`, 빈 상태는 행 하나로 직접 그린다.
1778
+ * 대신/함께: 페이지네이션은 `TablePagination` 안에 `Pagination`, 빈 상태는 행 하나로 직접 그린다. **행 머리가 있는 표**(행이 속성, 열이 비교 대상인 비교 표)는 `TableBody` 의 행 맨 앞에 `TableHead scope='row'` 를 둔다 — 머리글과 같은 바탕·글자에 값 칸과의 경계선이 붙는다. 여러 행을 묶는 머리는 `rowSpan`(묶음 안의 행 사이 선은 그 칸을 지나가지 않는다), 그 위 머리글 칸은 `colSpan` 으로 맞춘다. 다만 **첫 행에 `colSpan` 이 있으면 표가 열 폭을 재지 않는다**(브라우저 자동 배치 — 열마다 폭이 내용 따라 달라진다) — 그때는 `className='table-fixed'` 와 `<colgroup>`(머리 열에만 `<col className='w-[120px]' />`, 폭 없는 `<col />` 들이 나머지를 똑같이 나눈다)으로 열 폭을 정한다.
1744
1779
  */
1745
1780
  declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
1746
1781
  declare const tableHeaderVariant: (props?: ({
@@ -1766,7 +1801,8 @@ declare const tableHeadVariant: (props?: ({
1766
1801
  interface TableHeadProps extends Omit<React$1.ThHTMLAttributes<HTMLTableCellElement>, 'align'>, VariantProps<typeof tableHeadVariant> {
1767
1802
  }
1768
1803
  /** 표 머리글 칸. `align='right'`(또는 className `text-right`)인 열은 숫자 열 — 오른쪽 정렬·한 줄. 열 폭은 표가 내용에 맞춰 나누므로 `w-…` 를 주지 않는다
1769
- * (주면 하한). 첫 열이 숫자 열이 아니면 그 열(이름)이 남는 폭을 먼저 받는다 */
1804
+ * (주면 하한). 첫 열이 숫자 열이 아니면 그 열(이름)이 남는 폭을 먼저 받는다.
1805
+ * `TableBody` 의 행 안에 두면 행 머리다 — `scope='row'` 를 주고(여러 행을 묶으면 `rowSpan` 도), 머리글과 같은 바탕·글자로 그려진다 */
1770
1806
  declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
1771
1807
  declare const tableCellMasterVariant: (props?: ({
1772
1808
  align?: "left" | "right" | "center" | null | undefined;
@@ -1889,7 +1925,7 @@ interface SingleSelectProps extends FilterTitleType {
1889
1925
  options: Option[];
1890
1926
  /** 선택이 변경될 때 호출되는 콜백 함수 */
1891
1927
  onChange: (selected: Option | null) => void;
1892
- /** 초기 선택된 값 */
1928
+ /** 선택된 값. 주면 제어 컴포넌트(고르면 onChange 로만 알린다), 한 번도 주지 않으면 고른 값을 스스로 기억한다 */
1893
1929
  value?: string;
1894
1930
  /** 아무것도 고르지 않았을 때의 **값** 문구. `title` 이 있으면 트리거는 항상 "{title} · {값}"(예: 상태 · 전체)으로 그려지고, 이 값의 기본은 "전체". title 이 없으면 기본 "선택" */
1895
1931
  placeholder?: string;
@@ -2723,4 +2759,4 @@ interface UseFloatingLabelReturn {
2723
2759
  }
2724
2760
  declare function useFloatingLabel(options: UseFloatingLabelOptions): UseFloatingLabelReturn;
2725
2761
 
2726
- export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
2762
+ export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeDropInfo, type FileTreeEventNode, type FileTreeExpandInfo, type FileTreeKey, type FileTreeNode, type FileTreeProps, type FileTreeRightClickInfo, type FileTreeSelectInfo, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import { DatePicker, DatePickerRange } from "./components/datePicker.js";
19
19
  import { DatePresets, DateRangePresets } from "./components/datePresets.js";
20
20
  import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/dialog.js";
21
21
  import { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./components/drawer.js";
22
- import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/dropdownMenu.js";
22
+ import { DropdownMenu, DropdownMenuAnchor, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/dropdownMenu.js";
23
23
  import { FileTree } from "./components/fileTree/index.js";
24
24
  import { Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, useFormControlContext, useFormField } from "./components/form.js";
25
25
  import { IconButton } from "./components/iconButton.js";
@@ -178,6 +178,7 @@ export {
178
178
  DrawerTitle,
179
179
  DrawerTrigger,
180
180
  DropdownMenu,
181
+ DropdownMenuAnchor,
181
182
  DropdownMenuContent,
182
183
  DropdownMenuGroup,
183
184
  DropdownMenuItem,
@@ -15,6 +15,12 @@ const TONE_TEXT = {
15
15
  danger: "text-danger30"
16
16
  };
17
17
  const TONE_BAR = { default: "bg-primary30", warning: "bg-warning30", danger: "bg-danger30" };
18
+ const BAR_VARIANT = {
19
+ primary: "bg-primary30",
20
+ success: "bg-success30",
21
+ warning: "bg-warning30",
22
+ info: "bg-info30"
23
+ };
18
24
  function StatTile({
19
25
  label,
20
26
  value,
@@ -22,6 +28,7 @@ function StatTile({
22
28
  href,
23
29
  ratio,
24
30
  tone = "default",
31
+ barVariant = "primary",
25
32
  loading
26
33
  }) {
27
34
  const labelId = React.useId();
@@ -54,7 +61,10 @@ function StatTile({
54
61
  children: /* @__PURE__ */ jsxRuntime.jsx(
55
62
  "div",
56
63
  {
57
- className: cn.cn("h-full rounded-full", TONE_BAR[tone]),
64
+ className: cn.cn(
65
+ "h-full rounded-full",
66
+ tone === "default" ? BAR_VARIANT[barVariant] : TONE_BAR[tone]
67
+ ),
58
68
  style: { width: `${percent}%` }
59
69
  }
60
70
  )
@@ -1 +1 @@
1
- {"version":3,"file":"dashboardLayout.cjs","sources":["../../src/patterns/dashboardLayout.tsx"],"sourcesContent":["'use client'\n\nimport { type ReactNode, useId } from 'react'\nimport { TriangleAlert } from 'lucide-react'\n\nimport { Card } from '../components/card'\nimport { PageHeader, type PageHeaderProps } from '../components/pageHeader'\nimport { Skeleton } from '../components/skeleton'\nimport { cn } from '../utils/cn'\nimport { EmptyState, ErrorState, LoadingState } from './states'\n\nexport type DashboardStat = {\n /** 타일 라벨 (예: 실행 중인 학습) */\n label: ReactNode\n /** 큰 숫자 */\n value: ReactNode\n /** 숫자 아래 보조 설명 (예: 어제보다 +2) */\n caption?: ReactNode\n /** 주면 타일 전체가 이 주소로 가는 링크가 된다 */\n href?: string\n /** 사용률 같은 비율(0~1). 주면 숫자 아래에 진행 막대를 그린다 (예: 172/192 코어 → 0.9) */\n ratio?: number\n /** 값의 색. warning·danger 면 경고 아이콘이 붙고 숫자·막대가 그 색이 된다 (예: 사용률 80% 초과). 기본 default */\n tone?: 'default' | 'warning' | 'danger'\n}\n\nexport type DashboardLayoutProps = Pick<\n PageHeaderProps,\n 'title' | 'description' | 'titleRight' | 'breadcrumb'\n> & {\n /** 주요 행동 버튼. 제목 줄 오른쪽 (ListPage·DetailPage 와 같은 자리, 2026-10-19 14차) */\n actions?: ReactNode\n /** 맨 위 요약 타일. 2열, 넓은 화면(xl)에서 4열, 간격 12px */\n stats?: DashboardStat[]\n /** true 면 타일 숫자 자리에 Skeleton. 패널 로딩은 각 DashboardPanel 의 `loading` */\n loading?: boolean\n /** 주면 타일·섹션 대신 오류 상자(ErrorState). `onRetry` 가 있으면 \"다시 시도\" 버튼 */\n error?: ReactNode\n /** error 상태의 \"다시 시도\" 클릭 */\n onRetry?: () => void\n /** 보여 줄 데이터가 전혀 없을 때 타일·섹션 대신 없음 상자. true 면 기본 문구 \"데이터가 없습니다.\" 패널 하나만 비었으면 DashboardPanel 의 `empty` */\n empty?: ReactNode\n /** DashboardSection 들. 세로로 32px 간격 */\n children?: ReactNode\n}\n\n// 글자는 40단계(흰 배경 대비 warning40 5.4:1·danger30 5.9:1). 30단계 warning 은 채움용이라 글자에 쓰면 1.75:1 로 axe 에 걸린다\nconst TONE_TEXT = {\n default: 'text-sys-text-main',\n warning: 'text-warning40',\n danger: 'text-danger30',\n}\nconst TONE_BAR = { default: 'bg-primary30', warning: 'bg-warning30', danger: 'bg-danger30' }\n\nfunction StatTile({\n label,\n value,\n caption,\n href,\n ratio,\n tone = 'default',\n loading,\n}: DashboardStat & { loading?: boolean }) {\n const labelId = useId()\n const percent = ratio == null ? null : Math.round(Math.min(Math.max(ratio, 0), 1) * 100)\n return (\n <Card className='relative gap-[4px] p-[16px]'>\n <span id={labelId} className='text-h6 text-sys-text-subtle'>\n {href ? (\n // 타일 전체를 클릭 영역으로: 링크의 ::after 를 Card 크기로 늘린다\n <a\n href={href}\n className='after:absolute after:inset-0 after:rounded-medium focus-visible:outline-[2px] focus-visible:outline-sys-focus-ring-main'\n >\n {label}\n </a>\n ) : (\n label\n )}\n </span>\n {loading ? (\n <Skeleton role='status' aria-label='불러오는 중' className='h-[32px] w-[80px]' />\n ) : (\n <span className={cn('flex items-center gap-[6px] text-h2', TONE_TEXT[tone])}>\n {tone !== 'default' ? <TriangleAlert aria-hidden size={20} className='shrink-0' /> : null}\n {value}\n </span>\n )}\n {percent != null && !loading ? (\n <div\n role='progressbar'\n aria-labelledby={labelId}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={percent}\n className='mt-[4px] h-[4px] w-full overflow-hidden rounded-full bg-secondary-o10'\n >\n <div\n className={cn('h-full rounded-full', TONE_BAR[tone])}\n style={{ width: `${percent}%` }}\n />\n </div>\n ) : null}\n {caption ? <span className='text-small-regular text-sys-text-subtler'>{caption}</span> : null}\n </Card>\n )\n}\n\n/**\n * 대시보드 화면 패턴. PageHeader → 요약 타일(`stats`) → DashboardSection(제목 + 패널 그리드 또는 표) 을 세로로 배치한다.\n *\n * 언제 쓰나: 프로젝트 홈·리소스 모니터링처럼 \"지금 상태를 숫자·차트로 한눈에\" 보여 주고 각 섹션에서 세부 화면으로 들어가는 화면. 값·시계열·갱신 주기는 소비 앱이 가진다.\n * 언제 안 쓰나: 한 리소스의 목록(→ ListPage)·상세(→ DetailPage), 설정 입력(→ FormPage). 섹션 하나뿐이면 PageHeader + Card 로 충분하다.\n * 대신/함께: 패널 내용(차트·표)은 `DashboardPanel` 의 children 으로 넣고 차트 라이브러리는 소비 앱이 고른다. 폴링·갱신 시각 표시는 `titleRight` 슬롯에 `PageHeaderRefreshButton` 으로. 표 섹션은 DashboardSection 안에 Table 또는 AgGridTable 을 그대로 넣는다. 사용률 타일은 `ratio`(진행 막대)·`tone`(80% 초과면 warning) 을 준다. 전체를 못 불러왔으면 `error`(+`onRetry`), 데이터가 전혀 없으면 `empty` — 빨간 Alert·`<div>` 로 직접 만들지 않는다.\n */\nexport function DashboardLayout({\n actions,\n stats,\n loading,\n error,\n onRetry,\n empty,\n children,\n ...header\n}: DashboardLayoutProps) {\n let body: ReactNode\n if (error) body = <ErrorState className='py-[32px]' description={error} onRetry={onRetry} />\n else if (empty)\n body = (\n <EmptyState className='py-[32px]'>{empty === true ? '데이터가 없습니다.' : empty}</EmptyState>\n )\n else\n body = (\n <>\n {stats?.length ? (\n <div className='grid grid-cols-2 gap-[12px] xl:grid-cols-4'>\n {stats.map((stat, i) => (\n <StatTile key={i} {...stat} loading={loading} />\n ))}\n </div>\n ) : null}\n {children}\n </>\n )\n return (\n <div className='w-full'>\n <PageHeader {...header} actions={actions} />\n {/* 64px 는 PageHeader 의 좌우 거터와 맞춘 값. audit 허용 간격 밖이지만 헤더와 본문 정렬이 우선이다 */}\n {/* 본문은 이름 있는 region landmark (소비 앱의 <main> 안에 중첩돼도 된다) */}\n <section\n aria-label={header.title || '본문'}\n className='flex flex-col gap-[32px] px-[24px] py-[24px]'\n >\n {body}\n </section>\n </div>\n )\n}\n\nexport type DashboardSectionProps = {\n /** 섹션 제목 (h2) */\n title: ReactNode\n /** 제목 오른쪽 슬롯 (예: \"전체 보기\" 버튼) */\n action?: ReactNode\n /** 주면 children(DashboardPanel 들)을 **하나의 Card** 안에 1px 구분선으로 나눈 그리드로 그린다. 2 면 넓은 화면(xl)에서 2열. 없으면 children 을 그대로(표 등) */\n columns?: 1 | 2\n /** columns 가 있으면 DashboardPanel 들, 없으면 표 등 아무 내용 */\n children?: ReactNode\n}\n\n/**\n * DashboardLayout 의 한 섹션. 제목(h2)·오른쪽 행동 → 패널 그리드(Card 하나 안에 구분선) 또는 표.\n *\n * 언제 쓰나: 대시보드에서 주제 하나(리소스 사용량, 최근 학습 …)를 묶을 때. 차트 패널 여러 개면 `columns={2}` — 패널마다 카드가 아니라 **큰 카드 하나를 구분선으로 나눈다**(dl-ui-v3 리소스 모니터링 관례).\n * 언제 안 쓰나: 대시보드 밖의 섹션 제목(→ FormSection·CardHeader).\n * 대신/함께: 표 섹션은 `columns` 없이 children 에 Table 을 바로 넣고 `action` 에 \"전체 보기\" 링크 버튼을 둔다.\n */\nexport function DashboardSection({ title, action, columns, children }: DashboardSectionProps) {\n const id = useId()\n return (\n <section aria-labelledby={id} className='flex flex-col gap-[16px]'>\n <div className='flex items-center justify-between gap-[12px]'>\n <h2 id={id} className='text-h4 text-sys-text-main'>\n {title}\n </h2>\n {action}\n </div>\n {columns ? (\n // 1px 간격 + 구분선 색 배경 = 칸 사이 가로·세로 구분선. 칸(DashboardPanel)은 자기 배경을 가진다\n // 2열에서 칸 수가 홀수면 마지막 칸이 두 열을 차지해 빈 칸이 생기지 않게 한다\n <Card\n className={cn(\n 'grid grid-cols-1 gap-px overflow-hidden bg-sys-divider-subtler',\n columns === 2 && 'xl:grid-cols-2 xl:[&>:last-child:nth-child(odd)]:col-span-2',\n )}\n >\n {children}\n </Card>\n ) : (\n children\n )}\n </section>\n )\n}\n\nexport type DashboardPanelProps = {\n /** 패널 제목 (h3) */\n title: ReactNode\n /** 제목 옆 현재값 (큰 글자) */\n value?: ReactNode\n /** 현재값 단위 (예: %, GB) */\n unit?: ReactNode\n /** 현재값 옆 보조 수치 (예: 할당 8 / 사용 3) */\n stats?: { label: ReactNode; value: ReactNode }[]\n /** true 면 내용 자리에 Skeleton. `empty` 보다 우선 */\n loading?: boolean\n /** 주면 내용 대신 표시. true 면 기본 문구 \"데이터가 없습니다.\" */\n empty?: ReactNode\n /** 내용 (차트·표). 차트 라이브러리는 소비 앱이 고른다 */\n children?: ReactNode\n}\n\n/**\n * DashboardSection(`columns`) 의 칸 하나. 제목·현재값·단위·보조 수치 머리 → 내용(차트·표). 자체 테두리는 없고 섹션 Card 가 칸 사이를 구분선으로 나눈다.\n *\n * 언제 쓰나: 시계열 차트나 작은 표 하나에 현재값을 붙여 보여 줄 때. 항상 `columns` 를 준 DashboardSection 안에 둔다.\n * 언제 안 쓰나: 숫자 하나만 보여 줄 때(→ DashboardLayout 의 `stats` 타일), 상세 화면의 정보 묶음(→ 제목 + Separator + MetaRow).\n * 대신/함께: 데이터가 없으면 `empty`, 불러오는 중이면 `loading` 을 준다. 내용 높이는 children 이 정한다.\n */\nexport function DashboardPanel({\n title,\n value,\n unit,\n stats,\n loading,\n empty,\n children,\n}: DashboardPanelProps) {\n let body = children\n if (loading) body = <LoadingState lines={2} />\n else if (empty)\n body = (\n <EmptyState className='py-[32px]'>{empty === true ? '데이터가 없습니다.' : empty}</EmptyState>\n )\n\n return (\n <div className='flex flex-col gap-[16px] bg-sys-background p-[24px]'>\n <div className='flex flex-wrap items-end gap-[12px]'>\n <h3 className='text-h6 text-sys-text-subtle'>{title}</h3>\n {value !== undefined && value !== null ? (\n <span className='flex items-end gap-[2px]'>\n <span className='text-h3 text-sys-text-main'>{value}</span>\n {unit ? <span className='text-base-regular text-sys-text-subtle'>{unit}</span> : null}\n </span>\n ) : null}\n {stats?.map((stat, i) => (\n <span\n key={i}\n className='flex items-end gap-[4px] border-l border-sys-divider-subtler pl-[12px]'\n >\n <span className='text-base-regular text-sys-text-subtle'>{stat.label}</span>\n <span className='text-h5 text-sys-text-main'>{stat.value}</span>\n </span>\n ))}\n </div>\n {body}\n </div>\n )\n}\n"],"names":["useId","jsxs","Card","jsx","Skeleton","cn","TriangleAlert","ErrorState","EmptyState","Fragment","PageHeader","LoadingState"],"mappings":"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"}
1
+ {"version":3,"file":"dashboardLayout.cjs","sources":["../../src/patterns/dashboardLayout.tsx"],"sourcesContent":["'use client'\n\nimport { type ReactNode, useId } from 'react'\nimport { TriangleAlert } from 'lucide-react'\n\nimport { Card } from '../components/card'\nimport { PageHeader, type PageHeaderProps } from '../components/pageHeader'\nimport { Skeleton } from '../components/skeleton'\nimport { cn } from '../utils/cn'\nimport { EmptyState, ErrorState, LoadingState } from './states'\n\nexport type DashboardStat = {\n /** 타일 라벨 (예: 실행 중인 학습) */\n label: ReactNode\n /** 큰 숫자 */\n value: ReactNode\n /** 숫자 아래 보조 설명 (예: 어제보다 +2) */\n caption?: ReactNode\n /** 주면 타일 전체가 이 주소로 가는 링크가 된다 */\n href?: string\n /** 사용률 같은 비율(0~1). 주면 숫자 아래에 진행 막대를 그린다 (예: 172/192 코어 → 0.9) */\n ratio?: number\n /** 값의 색. warning·danger 면 경고 아이콘이 붙고 숫자·막대가 그 색이 된다 (예: 사용률 80% 초과). 기본 default */\n tone?: 'default' | 'warning' | 'danger'\n /** 막대 색만 바꾼다 — 타일마다 다른 종류(CPU·Memory·GPU)를 색으로 구분할 때. 숫자 색과 경고 아이콘은 그대로다. `tone` 이 warning·danger 면 그 색이 우선한다. 기본 primary */\n barVariant?: 'primary' | 'success' | 'warning' | 'info'\n}\n\n// status·meta: 대상 하나(프로젝트·클러스터)의 현황판은 상세처럼 상태와 식별 값이 있다. 남은 props 는 처음부터 PageHeader 로 넘어갔고 타입만 막고 있었다\n// (2026-11-23 기존 앱 적용 시험 준비)\nexport type DashboardLayoutProps = Pick<\n PageHeaderProps,\n 'title' | 'description' | 'status' | 'meta' | 'titleRight' | 'breadcrumb'\n> & {\n /** 주요 행동 버튼. 제목 줄 오른쪽 (ListPage·DetailPage 와 같은 자리, 2026-10-19 14차) */\n actions?: ReactNode\n /** 맨 위 요약 타일. 2열, 넓은 화면(xl)에서 4열, 간격 12px */\n stats?: DashboardStat[]\n /** true 면 타일 숫자 자리에 Skeleton. 패널 로딩은 각 DashboardPanel 의 `loading` */\n loading?: boolean\n /** 주면 타일·섹션 대신 오류 상자(ErrorState). `onRetry` 가 있으면 \"다시 시도\" 버튼 */\n error?: ReactNode\n /** error 상태의 \"다시 시도\" 클릭 */\n onRetry?: () => void\n /** 보여 줄 데이터가 전혀 없을 때 타일·섹션 대신 없음 상자. true 면 기본 문구 \"데이터가 없습니다.\" 패널 하나만 비었으면 DashboardPanel 의 `empty` */\n empty?: ReactNode\n /** DashboardSection 들. 세로로 32px 간격 */\n children?: ReactNode\n}\n\n// 글자는 40단계(흰 배경 대비 warning40 5.4:1·danger30 5.9:1). 30단계 warning 은 채움용이라 글자에 쓰면 1.75:1 로 axe 에 걸린다\nconst TONE_TEXT = {\n default: 'text-sys-text-main',\n warning: 'text-warning40',\n danger: 'text-danger30',\n}\nconst TONE_BAR = { default: 'bg-primary30', warning: 'bg-warning30', danger: 'bg-danger30' }\nconst BAR_VARIANT = {\n primary: 'bg-primary30',\n success: 'bg-success30',\n warning: 'bg-warning30',\n info: 'bg-info30',\n}\n\nfunction StatTile({\n label,\n value,\n caption,\n href,\n ratio,\n tone = 'default',\n barVariant = 'primary',\n loading,\n}: DashboardStat & { loading?: boolean }) {\n const labelId = useId()\n const percent = ratio == null ? null : Math.round(Math.min(Math.max(ratio, 0), 1) * 100)\n return (\n <Card className='relative gap-[4px] p-[16px]'>\n <span id={labelId} className='text-h6 text-sys-text-subtle'>\n {href ? (\n // 타일 전체를 클릭 영역으로: 링크의 ::after 를 Card 크기로 늘린다\n <a\n href={href}\n className='after:absolute after:inset-0 after:rounded-medium focus-visible:outline-[2px] focus-visible:outline-sys-focus-ring-main'\n >\n {label}\n </a>\n ) : (\n label\n )}\n </span>\n {loading ? (\n <Skeleton role='status' aria-label='불러오는 중' className='h-[32px] w-[80px]' />\n ) : (\n <span className={cn('flex items-center gap-[6px] text-h2', TONE_TEXT[tone])}>\n {tone !== 'default' ? <TriangleAlert aria-hidden size={20} className='shrink-0' /> : null}\n {value}\n </span>\n )}\n {percent != null && !loading ? (\n <div\n role='progressbar'\n aria-labelledby={labelId}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={percent}\n className='mt-[4px] h-[4px] w-full overflow-hidden rounded-full bg-secondary-o10'\n >\n <div\n className={cn(\n 'h-full rounded-full',\n tone === 'default' ? BAR_VARIANT[barVariant] : TONE_BAR[tone],\n )}\n style={{ width: `${percent}%` }}\n />\n </div>\n ) : null}\n {caption ? <span className='text-small-regular text-sys-text-subtler'>{caption}</span> : null}\n </Card>\n )\n}\n\n/**\n * 대시보드 화면 패턴. PageHeader → 요약 타일(`stats`) → DashboardSection(제목 + 패널 그리드 또는 표) 을 세로로 배치한다.\n *\n * 언제 쓰나: 프로젝트 홈·리소스 모니터링처럼 \"지금 상태를 숫자·차트로 한눈에\" 보여 주고 각 섹션에서 세부 화면으로 들어가는 화면. 값·시계열·갱신 주기는 소비 앱이 가진다.\n * 언제 안 쓰나: 한 리소스의 목록(→ ListPage)·상세(→ DetailPage), 설정 입력(→ FormPage). 섹션 하나뿐이면 PageHeader + Card 로 충분하다.\n * 대신/함께: 패널 내용(차트·표)은 `DashboardPanel` 의 children 으로 넣고 차트 라이브러리는 소비 앱이 고른다. 폴링·갱신 시각 표시는 `titleRight` 슬롯에 `PageHeaderRefreshButton` 으로. 대상 하나(프로젝트·클러스터)의 현황판이면 그 대상의 상태는 `status`(제목 옆 상태 `Badge` 하나), 식별 값(ID·담당·기준 시각, 4개 안팎)은 `meta`(`MetaGroup` + `MetaItem` 한 줄)에 — DetailPage 헤더와 같은 자리이고, 요약 타일(`stats`)에 쓴 값을 되풀이하지 않는다. 표 섹션은 DashboardSection 안에 Table 또는 AgGridTable 을 그대로 넣는다. 사용률 타일은 `ratio`(진행 막대)·`tone`(80% 초과면 warning) 을 준다. 전체를 못 불러왔으면 `error`(+`onRetry`), 데이터가 전혀 없으면 `empty` — 빨간 Alert·`<div>` 로 직접 만들지 않는다.\n */\nexport function DashboardLayout({\n actions,\n stats,\n loading,\n error,\n onRetry,\n empty,\n children,\n ...header\n}: DashboardLayoutProps) {\n let body: ReactNode\n if (error) body = <ErrorState className='py-[32px]' description={error} onRetry={onRetry} />\n else if (empty)\n body = (\n <EmptyState className='py-[32px]'>{empty === true ? '데이터가 없습니다.' : empty}</EmptyState>\n )\n else\n body = (\n <>\n {stats?.length ? (\n <div className='grid grid-cols-2 gap-[12px] xl:grid-cols-4'>\n {stats.map((stat, i) => (\n <StatTile key={i} {...stat} loading={loading} />\n ))}\n </div>\n ) : null}\n {children}\n </>\n )\n return (\n <div className='w-full'>\n <PageHeader {...header} actions={actions} />\n {/* 64px 는 PageHeader 의 좌우 거터와 맞춘 값. audit 허용 간격 밖이지만 헤더와 본문 정렬이 우선이다 */}\n {/* 본문은 이름 있는 region landmark (소비 앱의 <main> 안에 중첩돼도 된다) */}\n <section\n aria-label={header.title || '본문'}\n className='flex flex-col gap-[32px] px-[24px] py-[24px]'\n >\n {body}\n </section>\n </div>\n )\n}\n\nexport type DashboardSectionProps = {\n /** 섹션 제목 (h2) */\n title: ReactNode\n /** 제목 오른쪽 슬롯 (예: \"전체 보기\" 버튼) */\n action?: ReactNode\n /** 주면 children(DashboardPanel 들)을 **하나의 Card** 안에 1px 구분선으로 나눈 그리드로 그린다. 2 면 넓은 화면(xl)에서 2열. 없으면 children 을 그대로(표 등) */\n columns?: 1 | 2\n /** columns 가 있으면 DashboardPanel 들, 없으면 표 등 아무 내용 */\n children?: ReactNode\n}\n\n/**\n * DashboardLayout 의 한 섹션. 제목(h2)·오른쪽 행동 → 패널 그리드(Card 하나 안에 구분선) 또는 표.\n *\n * 언제 쓰나: 대시보드에서 주제 하나(리소스 사용량, 최근 학습 …)를 묶을 때. 차트 패널 여러 개면 `columns={2}` — 패널마다 카드가 아니라 **큰 카드 하나를 구분선으로 나눈다**(dl-ui-v3 리소스 모니터링 관례).\n * 언제 안 쓰나: 대시보드 밖의 섹션 제목(→ FormSection·CardHeader).\n * 대신/함께: 표 섹션은 `columns` 없이 children 에 Table 을 바로 넣고 `action` 에 \"전체 보기\" 링크 버튼을 둔다.\n */\nexport function DashboardSection({ title, action, columns, children }: DashboardSectionProps) {\n const id = useId()\n return (\n <section aria-labelledby={id} className='flex flex-col gap-[16px]'>\n <div className='flex items-center justify-between gap-[12px]'>\n <h2 id={id} className='text-h4 text-sys-text-main'>\n {title}\n </h2>\n {action}\n </div>\n {columns ? (\n // 1px 간격 + 구분선 색 배경 = 칸 사이 가로·세로 구분선. 칸(DashboardPanel)은 자기 배경을 가진다\n // 2열에서 칸 수가 홀수면 마지막 칸이 두 열을 차지해 빈 칸이 생기지 않게 한다\n <Card\n className={cn(\n 'grid grid-cols-1 gap-px overflow-hidden bg-sys-divider-subtler',\n columns === 2 && 'xl:grid-cols-2 xl:[&>:last-child:nth-child(odd)]:col-span-2',\n )}\n >\n {children}\n </Card>\n ) : (\n children\n )}\n </section>\n )\n}\n\nexport type DashboardPanelProps = {\n /** 패널 제목 (h3) */\n title: ReactNode\n /** 제목 옆 현재값 (큰 글자) */\n value?: ReactNode\n /** 현재값 단위 (예: %, GB) */\n unit?: ReactNode\n /** 현재값 옆 보조 수치 (예: 할당 8 / 사용 3) */\n stats?: { label: ReactNode; value: ReactNode }[]\n /** true 면 내용 자리에 Skeleton. `empty` 보다 우선 */\n loading?: boolean\n /** 주면 내용 대신 표시. true 면 기본 문구 \"데이터가 없습니다.\" */\n empty?: ReactNode\n /** 내용 (차트·표). 차트 라이브러리는 소비 앱이 고른다 */\n children?: ReactNode\n}\n\n/**\n * DashboardSection(`columns`) 의 칸 하나. 제목·현재값·단위·보조 수치 머리 → 내용(차트·표). 자체 테두리는 없고 섹션 Card 가 칸 사이를 구분선으로 나눈다.\n *\n * 언제 쓰나: 시계열 차트나 작은 표 하나에 현재값을 붙여 보여 줄 때. 항상 `columns` 를 준 DashboardSection 안에 둔다.\n * 언제 안 쓰나: 숫자 하나만 보여 줄 때(→ DashboardLayout 의 `stats` 타일), 상세 화면의 정보 묶음(→ 제목 + Separator + MetaRow).\n * 대신/함께: 데이터가 없으면 `empty`, 불러오는 중이면 `loading` 을 준다. 내용 높이는 children 이 정한다.\n */\nexport function DashboardPanel({\n title,\n value,\n unit,\n stats,\n loading,\n empty,\n children,\n}: DashboardPanelProps) {\n let body = children\n if (loading) body = <LoadingState lines={2} />\n else if (empty)\n body = (\n <EmptyState className='py-[32px]'>{empty === true ? '데이터가 없습니다.' : empty}</EmptyState>\n )\n\n return (\n <div className='flex flex-col gap-[16px] bg-sys-background p-[24px]'>\n <div className='flex flex-wrap items-end gap-[12px]'>\n <h3 className='text-h6 text-sys-text-subtle'>{title}</h3>\n {value !== undefined && value !== null ? (\n <span className='flex items-end gap-[2px]'>\n <span className='text-h3 text-sys-text-main'>{value}</span>\n {unit ? <span className='text-base-regular text-sys-text-subtle'>{unit}</span> : null}\n </span>\n ) : null}\n {stats?.map((stat, i) => (\n <span\n key={i}\n className='flex items-end gap-[4px] border-l border-sys-divider-subtler pl-[12px]'\n >\n <span className='text-base-regular text-sys-text-subtle'>{stat.label}</span>\n <span className='text-h5 text-sys-text-main'>{stat.value}</span>\n </span>\n ))}\n </div>\n {body}\n </div>\n )\n}\n"],"names":["useId","jsxs","Card","jsx","Skeleton","cn","TriangleAlert","ErrorState","EmptyState","Fragment","PageHeader","LoadingState"],"mappings":"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"}
@@ -13,6 +13,12 @@ const TONE_TEXT = {
13
13
  danger: "text-danger30"
14
14
  };
15
15
  const TONE_BAR = { default: "bg-primary30", warning: "bg-warning30", danger: "bg-danger30" };
16
+ const BAR_VARIANT = {
17
+ primary: "bg-primary30",
18
+ success: "bg-success30",
19
+ warning: "bg-warning30",
20
+ info: "bg-info30"
21
+ };
16
22
  function StatTile({
17
23
  label,
18
24
  value,
@@ -20,6 +26,7 @@ function StatTile({
20
26
  href,
21
27
  ratio,
22
28
  tone = "default",
29
+ barVariant = "primary",
23
30
  loading
24
31
  }) {
25
32
  const labelId = useId();
@@ -52,7 +59,10 @@ function StatTile({
52
59
  children: /* @__PURE__ */ jsx(
53
60
  "div",
54
61
  {
55
- className: cn("h-full rounded-full", TONE_BAR[tone]),
62
+ className: cn(
63
+ "h-full rounded-full",
64
+ tone === "default" ? BAR_VARIANT[barVariant] : TONE_BAR[tone]
65
+ ),
56
66
  style: { width: `${percent}%` }
57
67
  }
58
68
  )