@aivex/ui 1.2.0-dev.4 → 1.2.0-dev.41

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 (120) hide show
  1. package/README.md +68 -0
  2. package/dist/{Button-CzqDPqUT.js → Button-BrPqDGyO.js} +1502 -3115
  3. package/dist/Button-BrPqDGyO.js.map +1 -0
  4. package/dist/Button-EEErevS-.cjs +2 -0
  5. package/dist/Button-EEErevS-.cjs.map +1 -0
  6. package/dist/IconButton-CK4en7H6.js +209 -0
  7. package/dist/IconButton-CK4en7H6.js.map +1 -0
  8. package/dist/IconButton-DBlsEy3m.cjs +2 -0
  9. package/dist/IconButton-DBlsEy3m.cjs.map +1 -0
  10. package/dist/comment.cjs +3 -113
  11. package/dist/comment.cjs.map +1 -1
  12. package/dist/comment.js +153 -13491
  13. package/dist/comment.js.map +1 -1
  14. package/dist/components/Badge/Badge.d.ts +8 -1
  15. package/dist/components/Calendar/Calendar.d.ts +38 -0
  16. package/dist/components/Calendar/Calendar.test.d.ts +1 -0
  17. package/dist/components/{DatePicker → Calendar}/date.d.ts +4 -3
  18. package/dist/components/Calendar/date.test.d.ts +1 -0
  19. package/dist/components/Calendar/index.d.ts +2 -0
  20. package/dist/components/Comment/CommentInput.d.ts +6 -1
  21. package/dist/components/DataGrid/DataGrid.d.ts +38 -71
  22. package/dist/components/DataGrid/DataGridColumnSettings.d.ts +18 -0
  23. package/dist/components/DataGrid/DataGridPrimitives.d.ts +79 -0
  24. package/dist/components/DataGrid/DataGridRows.d.ts +66 -0
  25. package/dist/components/DataGrid/index.d.ts +6 -2
  26. package/dist/components/DraggableScroll/DraggableScroll.d.ts +6 -1
  27. package/dist/components/Drawer/Drawer.d.ts +35 -0
  28. package/dist/components/Drawer/index.d.ts +2 -0
  29. package/dist/components/Icon/index.d.ts +6 -1
  30. package/dist/components/InputBase/InputBase.d.ts +5 -7
  31. package/dist/components/Modal/Modal.d.ts +9 -2
  32. package/dist/components/Modal/ModalBase.d.ts +33 -0
  33. package/dist/components/Modal/index.d.ts +3 -1
  34. package/dist/components/ScrollArea/ScrollArea.d.ts +5 -1
  35. package/dist/components/SelectBox/SelectBox.d.ts +7 -4
  36. package/dist/components/SelectButton/SelectButton.d.ts +18 -0
  37. package/dist/components/SelectButton/index.d.ts +2 -0
  38. package/dist/components/ShapeEditor/ShapeEditor.d.ts +1 -1
  39. package/dist/components/ShapeEditor/ShapeViewer.d.ts +5 -5
  40. package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +8 -3
  41. package/dist/components/ShapeEditor/_components/Minimap.d.ts +13 -11
  42. package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +2 -2
  43. package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +2 -0
  44. package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +18 -3
  45. package/dist/components/ShapeEditor/_constants.d.ts +7 -4
  46. package/dist/components/ShapeEditor/_model/clipboard.d.ts +22 -0
  47. package/dist/components/ShapeEditor/_model/clipboard.test.d.ts +1 -0
  48. package/dist/components/ShapeEditor/_model/cursors.d.ts +5 -0
  49. package/dist/components/ShapeEditor/_model/cursors.test.d.ts +1 -0
  50. package/dist/components/ShapeEditor/_model/geometry.d.ts +33 -1
  51. package/dist/components/ShapeEditor/_model/geometry.evenodd-audit.test.d.ts +1 -0
  52. package/dist/components/ShapeEditor/_model/geometry.test.d.ts +1 -0
  53. package/dist/components/ShapeEditor/_model/imageDiagnosis.d.ts +23 -0
  54. package/dist/components/ShapeEditor/_model/imageDiagnosis.test.d.ts +1 -0
  55. package/dist/components/ShapeEditor/_model/imageLoad.d.ts +28 -0
  56. package/dist/components/ShapeEditor/_model/imageLoad.test.d.ts +1 -0
  57. package/dist/components/ShapeEditor/_model/keymap.d.ts +1 -1
  58. package/dist/components/ShapeEditor/_model/overlays.d.ts +9 -19
  59. package/dist/components/ShapeEditor/_model/props.d.ts +100 -33
  60. package/dist/components/ShapeEditor/_model/strings.d.ts +7 -3
  61. package/dist/components/ShapeEditor/_model/viewSettings.d.ts +45 -1
  62. package/dist/components/ShapeEditor/_model/viewSettings.test.d.ts +1 -0
  63. package/dist/components/ShapeEditor/_model/viewerPatch.d.ts +60 -0
  64. package/dist/components/ShapeEditor/_model/viewerPatch.test.d.ts +1 -0
  65. package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +23 -3
  66. package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +30 -5
  67. package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +1 -1
  68. package/dist/components/ShapeEditor/_renderers/types.d.ts +52 -16
  69. package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +8 -2
  70. package/dist/components/ShapeEditor/_state/createInteractionController.test.d.ts +1 -0
  71. package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +4 -4
  72. package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +52 -10
  73. package/dist/components/ShapeEditor/_state/useEngineLifecycle.test.d.ts +1 -0
  74. package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +7 -6
  75. package/dist/components/ShapeEditor/index.d.ts +3 -2
  76. package/dist/components/Spinner/Spinner.d.ts +15 -0
  77. package/dist/components/Spinner/index.d.ts +2 -0
  78. package/dist/components/Switch/Switch.d.ts +2 -1
  79. package/dist/components/Tagbox/Tagbox.d.ts +1 -4
  80. package/dist/components/Textarea/Textarea.d.ts +7 -4
  81. package/dist/components/Textbox/Textbox.d.ts +1 -5
  82. package/dist/components/Toast/Toast.d.ts +13 -3
  83. package/dist/components/Toast/index.d.ts +1 -1
  84. package/dist/index.cjs +1 -14
  85. package/dist/index.cjs.map +1 -1
  86. package/dist/index.d.ts +5 -1
  87. package/dist/index.js +2913 -7061
  88. package/dist/index.js.map +1 -1
  89. package/dist/keyboard-BMCakKCv.js +398 -0
  90. package/dist/keyboard-BMCakKCv.js.map +1 -0
  91. package/dist/keyboard-DCewgvMV.cjs +2 -0
  92. package/dist/keyboard-DCewgvMV.cjs.map +1 -0
  93. package/dist/shape-editor.cjs +1 -1
  94. package/dist/shape-editor.cjs.map +1 -1
  95. package/dist/shape-editor.js +3367 -2270
  96. package/dist/shape-editor.js.map +1 -1
  97. package/dist/styles.css +3 -2
  98. package/dist/tokens/tokens.css +613 -611
  99. package/dist/utils/keyboard.d.ts +3 -0
  100. package/dist/utils/useModalAutoFocus.d.ts +5 -0
  101. package/dist/utils.cjs +2 -0
  102. package/dist/utils.cjs.map +1 -0
  103. package/dist/utils.js +59 -0
  104. package/dist/utils.js.map +1 -0
  105. package/package.json +26 -14
  106. package/dist/Button-C_GP2mJ-.cjs +0 -2
  107. package/dist/Button-C_GP2mJ-.cjs.map +0 -1
  108. package/dist/Button-CzqDPqUT.js.map +0 -1
  109. package/dist/IconButton-B-MspnYP.cjs +0 -2
  110. package/dist/IconButton-B-MspnYP.cjs.map +0 -1
  111. package/dist/IconButton-DTGSfJme.js +0 -560
  112. package/dist/IconButton-DTGSfJme.js.map +0 -1
  113. package/dist/Switch-B2irM7Pp.js +0 -2656
  114. package/dist/Switch-B2irM7Pp.js.map +0 -1
  115. package/dist/Switch-CMKBdqkX.cjs +0 -42
  116. package/dist/Switch-CMKBdqkX.cjs.map +0 -1
  117. package/dist/components/DatePicker/Calendar.d.ts +0 -27
  118. package/dist/components/DatePicker/DatePicker.d.ts +0 -119
  119. package/dist/components/DatePicker/index.d.ts +0 -4
  120. package/dist/components/ShapeEditor/_model/imageFetch.d.ts +0 -9
@@ -13,10 +13,17 @@ export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "color
13
13
  rounded?: boolean;
14
14
  size?: "xs" | "sm" | "md";
15
15
  color?: BadgeColor;
16
+ /**
17
+ * 라벨 앞 슬롯(주로 아이콘). 아이콘 크기는 xs=12, sm·md=16을 쓴다.
18
+ * 이름이 prefix가 아닌 것은 React HTMLAttributes의 RDFa `prefix`(string)와 충돌하기 때문이다.
19
+ */
20
+ startContent?: ReactNode;
21
+ /** 라벨 뒤 슬롯(주로 삭제 IconButton). 아이콘 크기는 16을 쓴다. 시안상 xs에는 쓰지 않는다. */
22
+ endContent?: ReactNode;
16
23
  children?: ReactNode;
17
24
  ref?: Ref<HTMLSpanElement>;
18
25
  }
19
- declare function Badge({ className, variant, rounded, size, color, children, ref, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
26
+ declare function Badge({ className, variant, rounded, size, color, startContent, endContent, children, ref, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
20
27
  declare const dotVariants: (props?: ({
21
28
  type?: "essential" | "new" | null | undefined;
22
29
  size?: "lg" | "md" | "sm" | null | undefined;
@@ -0,0 +1,38 @@
1
+ declare const WEEKDAYS: readonly ["SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"];
2
+ export type CalendarWeekday = (typeof WEEKDAYS)[number];
3
+ export type CalendarWeekdayLabels = Record<CalendarWeekday, string>;
4
+ export interface CalendarProps {
5
+ /** BCP 47 언어 태그 (기본: ko-KR). 날짜 계산은 그레고리력을 사용한다. */
6
+ locale?: string;
7
+ /** 주 시작 요일 (기본: 일요일) */
8
+ weekStartsOn?: "SUNDAY" | "MONDAY";
9
+ /** 월 이동 버튼의 접근성 이름. 생략하면 이동할 월을 locale에 맞춰 읽는다. */
10
+ prevMonthLabel?: string;
11
+ nextMonthLabel?: string;
12
+ /** 표시할 월 (일자는 무시) */
13
+ month: Date;
14
+ /** 단일 선택된 일자 */
15
+ selected?: Date | null;
16
+ /** 범위 시작 일자 */
17
+ rangeStart?: Date | null;
18
+ /** 범위 종료 일자 */
19
+ rangeEnd?: Date | null;
20
+ onSelectDay?: (day: Date) => void;
21
+ /** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
22
+ markedDates?: Date[];
23
+ minDate?: Date;
24
+ maxDate?: Date;
25
+ /** true 를 반환하면 해당 일자 비활성화 */
26
+ disabledDate?: (date: Date) => boolean;
27
+ /** 이전 달 버튼 — 미지정 시 자리만 확보 */
28
+ onPrevMonth?: () => void;
29
+ /** 다음 달 버튼 — 미지정 시 자리만 확보 */
30
+ onNextMonth?: () => void;
31
+ /** 요일별 표시 이름. 전달 순서와 관계없이 주 시작 요일에 맞춰 배치한다. */
32
+ weekdayLabels?: CalendarWeekdayLabels;
33
+ formatMonthTitle?: (month: Date) => string;
34
+ className?: string;
35
+ }
36
+ /** 한 달 그리드 캘린더. DatePicker 내부에서 1~2개를 조합해 사용합니다. */
37
+ declare function Calendar({ locale, weekStartsOn, prevMonthLabel, nextMonthLabel, month, selected, rangeStart, rangeEnd, onSelectDay, markedDates, minDate, maxDate, disabledDate, onPrevMonth, onNextMonth, weekdayLabels, formatMonthTitle, className, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
38
+ export { Calendar };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- /** DatePicker 내부 날짜 계산 유틸 — 외부 라이브러리 없이 네이티브 Date 사용 */
1
+ /** Calendar 내부 날짜 계산 유틸 — 외부 라이브러리 없이 네이티브 Date 사용 */
2
2
  export declare function pad2(n: number): string;
3
3
  /** 시각을 제거한 자정 기준 Date */
4
4
  export declare function startOfDay(date: Date): Date;
@@ -12,10 +12,11 @@ export declare function startOfMonth(date: Date): Date;
12
12
  /** n개월 이동한 월의 1일 */
13
13
  export declare function addMonths(date: Date, amount: number): Date;
14
14
  /**
15
- * 월 그리드 생성 — 일요일 시작 주 단위 2차원 배열.
15
+ * 월 그리드 생성 — 설정된 주 시작 요일 기준 2차원 배열.
16
16
  * 인접 월 자리는 null (디자인상 빈 칸으로 렌더링).
17
+ * 월마다 5~6주로 달라지면 패널 높이가 튀므로 항상 6주(42칸)로 패딩한다.
17
18
  */
18
- export declare function getMonthWeeks(month: Date): (Date | null)[][];
19
+ export declare function getMonthWeeks(month: Date, weekStartsOn?: 0 | 1): (Date | null)[][];
19
20
  /** date의 일자에 시각(시/분/초)을 결합 */
20
21
  export declare function withTime(date: Date, time: {
21
22
  h: number;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export type { CalendarProps, CalendarWeekday, CalendarWeekdayLabels } from "./Calendar";
2
+ export { Calendar } from "./Calendar";
@@ -14,6 +14,11 @@ export interface CommentInputProps {
14
14
  placeholder?: string;
15
15
  /** 전송 버튼 라벨(호스트 i18n). 기본 "Send". */
16
16
  submitLabel?: string;
17
+ /**
18
+ * 전송 버튼 사용 — 켜면 내용이 있을 때만 입력 아래 오른쪽에 나타난다(시안).
19
+ * 끄면 어느 상태에서도 없이 Enter로만 보낸다.
20
+ */
21
+ showSubmit?: boolean;
17
22
  /** 전송 중 여부 — 버튼 비활성(스피너 등은 호스트가 submitLabel 자리로). */
18
23
  pending?: boolean;
19
24
  /** 멘션(@) 후보. 생략하면 멘션 없이 동작. */
@@ -27,4 +32,4 @@ export interface CommentInputProps {
27
32
  * 코멘트 스레드와 동일한 크롬: 헤더(타이틀+닫기) + 입력행(아바타 · 멘션 입력 · 오른쪽
28
33
  * Send 버튼). 화면 배치(핀 오른쪽 등)는 호스트가 감싸는 컨테이너에서 담당한다.
29
34
  */
30
- export declare function CommentInput({ user, value, onChange, onSubmit, onClose, title, placeholder, submitLabel, pending, userList, mentionEmptyText, initialContent, className, }: CommentInputProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare function CommentInput({ user, value, onChange, onSubmit, onClose, title, placeholder, submitLabel, showSubmit, pending, userList, mentionEmptyText, initialContent, className, }: CommentInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,71 +1,7 @@
1
- import { type RowData, type TableOptions } from "@tanstack/react-table";
2
- import type { HTMLAttributes, MouseEvent, ReactNode, Ref } from "react";
3
- import { type ScrollAreaProps } from "@/components/ScrollArea";
4
- export type DataGridAlign = "start" | "center" | "end";
5
- type DataGridValue<TData, TValue> = TValue | ((row: TData, index: number) => TValue);
6
- declare module "@tanstack/react-table" {
7
- interface ColumnMeta<TData extends RowData, TValue> {
8
- align?: DataGridAlign;
9
- headerAlign?: DataGridAlign;
10
- cellAlign?: DataGridAlign;
11
- className?: string;
12
- headerClassName?: string;
13
- cellClassName?: DataGridValue<TData, string | undefined>;
14
- headerSortTrigger?: boolean;
15
- }
16
- }
17
- export interface DataGridRootProps extends HTMLAttributes<HTMLDivElement> {
18
- ref?: Ref<HTMLDivElement>;
19
- }
20
- declare function DataGridRoot({ className, children, ref, ...props }: DataGridRootProps): import("react/jsx-runtime").JSX.Element;
21
- export interface DataGridViewportProps extends ScrollAreaProps {
22
- ref?: Ref<HTMLDivElement>;
23
- }
24
- declare function DataGridViewport({ className, children, ref, scrollbars, type, ...props }: DataGridViewportProps): import("react/jsx-runtime").JSX.Element;
25
- export interface DataGridHeaderProps extends HTMLAttributes<HTMLDivElement> {
26
- sticky?: boolean;
27
- ref?: Ref<HTMLDivElement>;
28
- }
29
- declare function DataGridHeader({ className, children, sticky, ref, ...props }: DataGridHeaderProps): import("react/jsx-runtime").JSX.Element;
30
- export interface DataGridBodyProps extends HTMLAttributes<HTMLDivElement> {
31
- ref?: Ref<HTMLDivElement>;
32
- }
33
- declare function DataGridBody({ className, children, ref, ...props }: DataGridBodyProps): import("react/jsx-runtime").JSX.Element;
34
- export interface DataGridRowProps extends HTMLAttributes<HTMLDivElement> {
35
- asChild?: boolean;
36
- selected?: boolean;
37
- disabled?: boolean;
38
- interactive?: boolean;
39
- ref?: Ref<HTMLDivElement>;
40
- }
41
- declare function DataGridRow({ className, children, asChild, selected, disabled, interactive, ref, onClick, onDoubleClick, onKeyDown, tabIndex, "aria-disabled": ariaDisabled, ...props }: DataGridRowProps): import("react/jsx-runtime").JSX.Element;
42
- export interface DataGridCellProps extends HTMLAttributes<HTMLDivElement> {
43
- align?: DataGridAlign;
44
- asChild?: boolean;
45
- ref?: Ref<HTMLDivElement>;
46
- }
47
- declare function DataGridCell({ className, children, align, asChild, ref, ...props }: DataGridCellProps): import("react/jsx-runtime").JSX.Element;
48
- export interface DataGridHeaderCellProps extends HTMLAttributes<HTMLDivElement> {
49
- align?: DataGridAlign;
50
- asChild?: boolean;
51
- ref?: Ref<HTMLDivElement>;
52
- }
53
- declare function DataGridHeaderCell({ className, children, align, asChild, ref, ...props }: DataGridHeaderCellProps): import("react/jsx-runtime").JSX.Element;
54
- export interface DataGridEmptyProps extends HTMLAttributes<HTMLDivElement> {
55
- children?: ReactNode;
56
- ref?: Ref<HTMLDivElement>;
57
- }
58
- declare function DataGridEmpty({ className, children, ref, ...props }: DataGridEmptyProps): import("react/jsx-runtime").JSX.Element;
59
- export interface DataGridLoadingProps extends HTMLAttributes<HTMLDivElement> {
60
- rowCount?: number;
61
- ref?: Ref<HTMLDivElement>;
62
- }
63
- declare function DataGridLoading({ className, rowCount, ref, ...props }: DataGridLoadingProps): import("react/jsx-runtime").JSX.Element;
64
- export interface DataGridInfiniteTriggerProps extends HTMLAttributes<HTMLDivElement> {
65
- loading?: boolean;
66
- ref?: Ref<HTMLDivElement>;
67
- }
68
- declare function DataGridInfiniteTrigger({ className, children, loading, ref, ...props }: DataGridInfiniteTriggerProps): import("react/jsx-runtime").JSX.Element;
1
+ import { type Row, type TableOptions } from "@tanstack/react-table";
2
+ import type { MouseEvent, ReactNode, Ref } from "react";
3
+ import { type DataGridColumnSettingsOptions } from "./DataGridColumnSettings";
4
+ import { type DataGridValue } from "./DataGridPrimitives";
69
5
  export interface DataGridProps<TData> extends Omit<TableOptions<TData>, "getCoreRowModel"> {
70
6
  getCoreRowModel?: TableOptions<TData>["getCoreRowModel"];
71
7
  className?: string;
@@ -83,10 +19,41 @@ export interface DataGridProps<TData> extends Omit<TableOptions<TData>, "getCore
83
19
  isRowSelected?: (row: TData, index: number) => boolean;
84
20
  isRowDisabled?: (row: TData, index: number) => boolean;
85
21
  onRowClick?: (row: TData, index: number, event: MouseEvent<HTMLDivElement>) => void;
22
+ /**
23
+ * 펼쳐진 행(row.getIsExpanded() === true) 아래에 렌더할 커스텀 상세 패널.
24
+ * 아코디언처럼 로우를 열고 닫을 때 사용한다 — 소비자가 getExpandedRowModel과
25
+ * state.expanded(또는 getRowCanExpand)를 함께 설정해야 펼침 상태가 동작한다.
26
+ * 무엇으로 펼칠지는 소비자가 정한다 — 행 전체 클릭(onRowClick)이든 특정 컬럼의
27
+ * 꺾쇠 버튼(row.toggleExpanded())이든 상관없고, 펼침 가능한 행에는 aria-expanded가
28
+ * 자동으로 붙는다. 가상화 모드에서도 패널 높이가 함께 실측된다.
29
+ */
30
+ renderExpandedRow?: (row: Row<TData>) => ReactNode;
86
31
  loadingMore?: boolean;
87
32
  loadingMoreContent?: ReactNode;
33
+ /** loadingMore 시 표시할 컬럼 기반 스켈레톤 행 수 (loadingMoreContent 미지정 시 사용) */
34
+ loadingMoreRowCount?: number;
35
+ /** 로딩 스켈레톤 행에 적용할 클래스 (행 높이 등 실제 행과 맞출 때 사용) */
36
+ skeletonRowClassName?: string;
37
+ /** 목록 끝에 도달했을 때 마지막 행 아래에 표시할 콘텐츠 (예: "마지막 데이터입니다") */
38
+ endContent?: ReactNode;
88
39
  infiniteTriggerRef?: Ref<HTMLDivElement>;
89
40
  infiniteTriggerClassName?: string;
90
- }
91
- declare function DataGrid<TData>({ className, loading, loadingRowCount, empty, headerSticky, viewportClassName, contentClassName, headerClassName, bodyClassName, rowClassName, rowInteractive, isRowSelected, isRowDisabled, onRowClick, loadingMore, loadingMoreContent, infiniteTriggerRef, infiniteTriggerClassName, ref, getCoreRowModel, ...tableOptions }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
92
- export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, };
41
+ /**
42
+ * 컬럼 설정(표시/숨김 + 순서 변경) 내장 UI. true 또는 옵션 객체를 주면
43
+ * 헤더 호버 시 테이블 왼쪽 바깥(-36px)에 트리거 버튼이 떠서 나타나고,
44
+ * 변경 사항은 즉시 반영된다. portal(fixed)로 띄우므로 레이아웃에 영향이 없고
45
+ * overflow 조상에도 잘리지 않는다 — 좌측 요소 위에 겹쳐 보일 수 있다.
46
+ */
47
+ columnSettings?: boolean | DataGridColumnSettingsOptions;
48
+ /**
49
+ * 행 가상화 활성화 — 보이는 창의 행만 마운트한다.
50
+ * SSR에서는 초기 행이 비어 있고 마운트 후 렌더된다.
51
+ */
52
+ virtualized?: boolean;
53
+ /** 가상화 시 행 높이 추정값(px). 실제 높이는 렌더 후 실측로 보정된다. 기본 48 */
54
+ estimateRowHeight?: number;
55
+ /** 가상화 시 화면 밖에 미리 렌더할 행 수. 기본 6 */
56
+ overscan?: number;
57
+ }
58
+ declare function DataGrid<TData>({ className, loading, loadingRowCount, empty, headerSticky, viewportClassName, contentClassName, headerClassName, bodyClassName, rowClassName, rowInteractive, isRowSelected, isRowDisabled, onRowClick, renderExpandedRow, loadingMore, loadingMoreContent, loadingMoreRowCount, skeletonRowClassName, endContent, infiniteTriggerRef, infiniteTriggerClassName, columnSettings, virtualized, estimateRowHeight, overscan, ref, getCoreRowModel, ...tableOptions }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
59
+ export { DataGrid };
@@ -0,0 +1,18 @@
1
+ import type { Table } from "@tanstack/react-table";
2
+ import { type ReactNode } from "react";
3
+ export interface DataGridColumnSettingsOptions {
4
+ /** 팝오버 상단 타이틀 */
5
+ title?: ReactNode;
6
+ /** 하단 초기화 버튼 라벨 */
7
+ resetLabel?: ReactNode;
8
+ /** 설정 목록에서 제외할 컬럼 id (예: 선택 체크박스 컬럼) */
9
+ excludeColumnIds?: string[];
10
+ /** 트리거 버튼 aria-label */
11
+ triggerLabel?: string;
12
+ }
13
+ interface DataGridColumnSettingsProps<TData> extends DataGridColumnSettingsOptions {
14
+ table: Table<TData>;
15
+ }
16
+ declare function DataGridColumnSettings<TData>({ table, title, resetLabel, excludeColumnIds, triggerLabel, }: DataGridColumnSettingsProps<TData>): import("react/jsx-runtime").JSX.Element;
17
+ export type { DataGridColumnSettingsProps };
18
+ export { DataGridColumnSettings };
@@ -0,0 +1,79 @@
1
+ import type { RowData } from "@tanstack/react-table";
2
+ import type { HTMLAttributes, ReactNode, Ref } from "react";
3
+ import { type ScrollAreaProps } from "@/components/ScrollArea";
4
+ export type DataGridAlign = "start" | "center" | "end";
5
+ export type DataGridValue<TData, TValue> = TValue | ((row: TData, index: number) => TValue);
6
+ declare module "@tanstack/react-table" {
7
+ interface ColumnMeta<TData extends RowData, TValue> {
8
+ align?: DataGridAlign;
9
+ headerAlign?: DataGridAlign;
10
+ cellAlign?: DataGridAlign;
11
+ className?: string;
12
+ headerClassName?: string;
13
+ cellClassName?: DataGridValue<TData, string | undefined>;
14
+ headerSortTrigger?: boolean;
15
+ /** 컬럼 설정 목록에 표시할 라벨 (header 가 문자열이 아닌 컬럼용) */
16
+ settingsLabel?: string;
17
+ /**
18
+ * 로딩 스켈레톤 행에서 이 컬럼 셀에 렌더할 콘텐츠.
19
+ * 미지정 시 기본 스켈레톤 바, null이면 비워둠.
20
+ */
21
+ skeleton?: ReactNode;
22
+ }
23
+ }
24
+ export declare function resolveDataGridValue<TData, TValue>(value: DataGridValue<TData, TValue> | undefined, row: TData, index: number): TValue | undefined;
25
+ export interface DataGridRootProps extends HTMLAttributes<HTMLDivElement> {
26
+ ref?: Ref<HTMLDivElement>;
27
+ }
28
+ declare function DataGridRoot({ className, children, ref, ...props }: DataGridRootProps): import("react/jsx-runtime").JSX.Element;
29
+ export interface DataGridViewportProps extends ScrollAreaProps {
30
+ /** 세로 스크롤바에 덧붙일 클래스 — 고정 헤더 아래에서 시작시킬 때 */
31
+ verticalScrollbarClassName?: string;
32
+ ref?: Ref<HTMLDivElement>;
33
+ }
34
+ declare function DataGridViewport({ className, children, ref, scrollbars, type, verticalScrollbarClassName, ...props }: DataGridViewportProps): import("react/jsx-runtime").JSX.Element;
35
+ export interface DataGridHeaderProps extends HTMLAttributes<HTMLDivElement> {
36
+ sticky?: boolean;
37
+ ref?: Ref<HTMLDivElement>;
38
+ }
39
+ declare function DataGridHeader({ className, children, sticky, ref, ...props }: DataGridHeaderProps): import("react/jsx-runtime").JSX.Element;
40
+ export interface DataGridBodyProps extends HTMLAttributes<HTMLDivElement> {
41
+ ref?: Ref<HTMLDivElement>;
42
+ }
43
+ declare function DataGridBody({ className, children, ref, ...props }: DataGridBodyProps): import("react/jsx-runtime").JSX.Element;
44
+ export interface DataGridRowProps extends HTMLAttributes<HTMLDivElement> {
45
+ asChild?: boolean;
46
+ selected?: boolean;
47
+ disabled?: boolean;
48
+ interactive?: boolean;
49
+ ref?: Ref<HTMLDivElement>;
50
+ }
51
+ declare function DataGridRow({ className, children, asChild, selected, disabled, interactive, ref, onClick, onDoubleClick, onKeyDown, tabIndex, role, "aria-disabled": ariaDisabled, ...props }: DataGridRowProps): import("react/jsx-runtime").JSX.Element;
52
+ export interface DataGridCellProps extends HTMLAttributes<HTMLDivElement> {
53
+ align?: DataGridAlign;
54
+ asChild?: boolean;
55
+ ref?: Ref<HTMLDivElement>;
56
+ }
57
+ declare function DataGridCell({ className, children, align, asChild, ref, role, ...props }: DataGridCellProps): import("react/jsx-runtime").JSX.Element;
58
+ export interface DataGridHeaderCellProps extends HTMLAttributes<HTMLDivElement> {
59
+ align?: DataGridAlign;
60
+ asChild?: boolean;
61
+ ref?: Ref<HTMLDivElement>;
62
+ }
63
+ declare function DataGridHeaderCell({ className, children, align, asChild, ref, role, ...props }: DataGridHeaderCellProps): import("react/jsx-runtime").JSX.Element;
64
+ export interface DataGridEmptyProps extends HTMLAttributes<HTMLDivElement> {
65
+ children?: ReactNode;
66
+ ref?: Ref<HTMLDivElement>;
67
+ }
68
+ declare function DataGridEmpty({ className, children, ref, ...props }: DataGridEmptyProps): import("react/jsx-runtime").JSX.Element;
69
+ export interface DataGridLoadingProps extends HTMLAttributes<HTMLDivElement> {
70
+ rowCount?: number;
71
+ ref?: Ref<HTMLDivElement>;
72
+ }
73
+ declare function DataGridLoading({ className, rowCount, ref, ...props }: DataGridLoadingProps): import("react/jsx-runtime").JSX.Element;
74
+ export interface DataGridInfiniteTriggerProps extends HTMLAttributes<HTMLDivElement> {
75
+ loading?: boolean;
76
+ ref?: Ref<HTMLDivElement>;
77
+ }
78
+ declare function DataGridInfiniteTrigger({ className, children, loading, ref, ...props }: DataGridInfiniteTriggerProps): import("react/jsx-runtime").JSX.Element;
79
+ export { DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, };
@@ -0,0 +1,66 @@
1
+ import { type Row } from "@tanstack/react-table";
2
+ import { type VirtualItem } from "@tanstack/react-virtual";
3
+ import type { MouseEvent, ReactNode, Ref, RefObject } from "react";
4
+ export interface DataGridDataRowProps<TData> {
5
+ row: Row<TData>;
6
+ virtualIndex?: number;
7
+ virtualStart?: number;
8
+ measureRef?: Ref<HTMLDivElement>;
9
+ interactive?: boolean;
10
+ selected?: boolean;
11
+ disabled?: boolean;
12
+ className?: string;
13
+ onRowClick?: (row: TData, index: number, event: MouseEvent<HTMLDivElement>) => void;
14
+ /** row.getIsExpanded() 시 행 아래에 렌더할 커스텀 상세 패널 */
15
+ expandedContent?: ReactNode;
16
+ /** 펼칠 수 있는 행인지 — aria-expanded 노출 여부를 정한다 */
17
+ expandable?: boolean;
18
+ /** 비활성/펼침 가능 여부를 반영해 부모에서 계산한 포커스 가능 상태 */
19
+ focusable?: boolean;
20
+ /**
21
+ * 이 행의 React Table 상태(선택/펼침). 셀은 row.getIsSelected() 같은 메서드로
22
+ * 상태를 직접 읽는데, 그 값이 바뀌어도 row 객체 자체는 그대로라 memo가 렌더를
23
+ * 건너뛴다 — 상태를 프롭으로 올려야 체크박스 같은 셀이 다시 그려진다.
24
+ */
25
+ rowSelected?: boolean;
26
+ rowExpanded?: boolean;
27
+ /**
28
+ * 셀 렌더러가 담긴 컬럼 정의 — 렌더에는 쓰지 않고 memo 비교에만 쓴다.
29
+ * 셀이 외부 상태를 클로저로 읽는 경우(검토 상태 등) 소비자는 컬럼을 그 상태
30
+ * 의존 useMemo로 만든다. 그 identity 변화가 "셀 출력이 바뀔 수 있다"는
31
+ * 신호인데, row 객체는 그대로라 이 프롭 없이는 memo가 렌더를 건너뛴다.
32
+ */
33
+ columns?: unknown;
34
+ /**
35
+ * 보이는 컬럼 id를 순서대로 이은 키 — 렌더에는 쓰지 않고 memo 비교에만 쓴다.
36
+ * 컬럼 표시/숨김·순서가 바뀌면 row.getVisibleCells() 결과가 달라지지만 row
37
+ * 객체는 그대로라, 이 프롭 없이는 헤더만 바뀌고 본문 셀은 이전 그대로 남는다.
38
+ */
39
+ visibleColumnKey?: string;
40
+ /** 셀의 ARIA 롤 — 펼침을 쓰는 그리드(treegrid)에서는 gridcell이어야 한다 */
41
+ cellRole?: "cell" | "gridcell";
42
+ /** 로빙 tabindex의 탭 스톱 여부 — 그리드 전체에서 한 행만 true (미지정 시 탭 스톱) */
43
+ tabStop?: boolean;
44
+ /** 위/아래 화살표로 행 사이 포커스를 옮길 때 호출 */
45
+ onNavigate?: (rowId: string, delta: -1 | 1) => void;
46
+ /** 행(또는 그 안의 요소)이 포커스를 받아 탭 스톱을 옮겨야 할 때 호출 */
47
+ onFocusRow?: (rowId: string) => void;
48
+ }
49
+ declare function DataGridDataRowBase<TData>({ row, virtualIndex, virtualStart, measureRef, interactive, selected, disabled, className, onRowClick, expandedContent, expandable, focusable, rowSelected, rowExpanded, cellRole, tabStop, onNavigate, onFocusRow, }: DataGridDataRowProps<TData>): import("react/jsx-runtime").JSX.Element;
50
+ export declare const DataGridDataRow: typeof DataGridDataRowBase;
51
+ export interface DataGridVirtualizedRowsProps<TData> {
52
+ rows: Row<TData>[];
53
+ viewportRef: RefObject<HTMLDivElement | null>;
54
+ estimateRowHeight?: number;
55
+ overscan?: number;
56
+ /** 로빙 tabindex의 현재 포커스 행 id */
57
+ activeRowId?: string | null;
58
+ focusableRowIds: Set<string>;
59
+ pendingFocusRowId?: string | null;
60
+ focusRowElement: (rowId: string) => boolean;
61
+ onFocusSettled: () => void;
62
+ scrollToRowRef: RefObject<((index: number) => void) | null>;
63
+ renderRow: (row: Row<TData>, virtualItem: VirtualItem, measureRef: Ref<HTMLDivElement>, tabStop: boolean) => ReactNode;
64
+ }
65
+ export declare function DataGridVirtualizedRows<TData>({ rows, viewportRef, estimateRowHeight, overscan, activeRowId, focusableRowIds, pendingFocusRowId, focusRowElement, onFocusSettled, scrollToRowRef, renderRow, }: DataGridVirtualizedRowsProps<TData>): import("react/jsx-runtime").JSX.Element;
66
+ export {};
@@ -1,4 +1,8 @@
1
1
  export type { CellContext, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, Row, RowSelectionState, SortingState, Table as ReactTableInstance, TableOptions, VisibilityState, } from "@tanstack/react-table";
2
2
  export { getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/react-table";
3
- export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridProps, DataGridRootProps, DataGridRowProps, DataGridViewportProps, } from "./DataGrid";
4
- export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGrid";
3
+ export type { DataGridProps } from "./DataGrid";
4
+ export { DataGrid } from "./DataGrid";
5
+ export type { DataGridColumnSettingsOptions } from "./DataGridColumnSettings";
6
+ export { DataGridColumnSettings } from "./DataGridColumnSettings";
7
+ export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridRootProps, DataGridRowProps, DataGridViewportProps, } from "./DataGridPrimitives";
8
+ export { DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGridPrimitives";
@@ -5,7 +5,12 @@ interface DraggableScrollProps {
5
5
  /** children이 바뀔 때 가로 스크롤을 끝으로 이동합니다. */
6
6
  autoScrollToEnd?: boolean;
7
7
  smoothScroll?: boolean;
8
+ /**
9
+ * 좌우에 가려진 내용이 있으면 그 방향 가장자리를 그라데이션으로 페이드합니다.
10
+ * CSS 스크롤 타임라인 기반이라 미지원 브라우저에서는 페이드 없이 동작합니다.
11
+ */
12
+ edgeFade?: boolean;
8
13
  }
9
- declare function DraggableScroll({ children, className, autoScrollToEnd, smoothScroll, }: DraggableScrollProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function DraggableScroll({ children, className, autoScrollToEnd, smoothScroll, edgeFade, }: DraggableScrollProps): import("react/jsx-runtime").JSX.Element;
10
15
  export type { DraggableScrollProps };
11
16
  export { DraggableScroll };
@@ -0,0 +1,35 @@
1
+ import * as RadixDialog from "@radix-ui/react-dialog";
2
+ import type { ComponentPropsWithoutRef, CSSProperties, ReactNode, Ref } from "react";
3
+ type DialogContentProps = ComponentPropsWithoutRef<typeof RadixDialog.Content>;
4
+ export interface DrawerProps {
5
+ open?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ /**
8
+ * 접근성 제목 — 화면에는 그리지 않는다. 눈에 보이는 헤더는 소비자가
9
+ * children으로 직접 구성한다.
10
+ */
11
+ title: string;
12
+ children: ReactNode;
13
+ side?: "left" | "right";
14
+ /**
15
+ * 모달 여부. 기본 false — 드로어를 연 채로 뒤 화면을 계속 쓰는 패턴이
16
+ * 기본값이다(딤·포커스 트랩 없음). true면 Radix 모달 동작을 그대로 따른다.
17
+ */
18
+ modal?: boolean;
19
+ /** 폭·레이아웃 등 표면 커스텀. 위치·애니메이션·기본 표면은 드로어가 소유한다. */
20
+ className?: string;
21
+ style?: CSSProperties;
22
+ /**
23
+ * 닫힘 애니메이션이 끝났을 때 통지 — open=false 전환 후 이 시점에
24
+ * 언마운트하면 슬라이드 아웃이 잘리지 않는다.
25
+ */
26
+ onExitComplete?: () => void;
27
+ onOpenAutoFocus?: DialogContentProps["onOpenAutoFocus"];
28
+ onCloseAutoFocus?: DialogContentProps["onCloseAutoFocus"];
29
+ onKeyDown?: DialogContentProps["onKeyDown"];
30
+ onEscapeKeyDown?: DialogContentProps["onEscapeKeyDown"];
31
+ onInteractOutside?: DialogContentProps["onInteractOutside"];
32
+ ref?: Ref<HTMLDivElement>;
33
+ }
34
+ declare function Drawer({ open, onOpenChange, title, children, side, modal, className, style, onExitComplete, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, onKeyDown, onInteractOutside, ref, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
35
+ export { Drawer };
@@ -0,0 +1,2 @@
1
+ export type { DrawerProps } from "./Drawer";
2
+ export { Drawer } from "./Drawer";
@@ -64,6 +64,7 @@ export declare const ContrastIcon: ({ size, color, className, ...props }: IconPr
64
64
  export declare const CopyIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
65
65
  export declare const Copy1Icon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
66
66
  export declare const Copy2Icon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
67
+ export declare const CpuIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
67
68
  export declare const CreditCardIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
68
69
  export declare const CropIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
69
70
  export declare const CuttingIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -101,6 +102,7 @@ export declare const GalleryViewLargeIcon: ({ size, color, className, ...props }
101
102
  export declare const GalleryViewMediumIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
102
103
  export declare const GalleryViewSmallIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
103
104
  export declare const GlobalIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
105
+ export declare const GpuIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
104
106
  export declare const GraphIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
105
107
  export declare const GraphScatterIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
106
108
  export declare const GraphPieIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -124,6 +126,7 @@ export declare const KeyReturnIcon: ({ size, color, className, ...props }: IconP
124
126
  export declare const LabelPointIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
125
127
  export declare const LanguageIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
126
128
  export declare const LineIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
129
+ export declare const LineLinkIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
127
130
  export declare const LinkIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
128
131
  export declare const LockIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
129
132
  export declare const LoginIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -269,7 +272,7 @@ export declare const ListPlayIcon: ({ size, color, className, ...props }: IconPr
269
272
  export declare const EnglishIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
270
273
  export declare const KoreanIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
271
274
  export declare const SpecificAreaIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
272
- export declare const ArrowelbowDownRightIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
275
+ export declare const ArrowElbowDownRightIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
273
276
  export declare const HourglassIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
274
277
  export declare const ThumbsUpIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
275
278
  export declare const ThumbsDownIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -284,4 +287,6 @@ export declare const AiViewIcon: ({ size, color, className, ...props }: IconProp
284
287
  export declare const HeadphonesIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
285
288
  export declare const LinkedInIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
286
289
  export declare const PhoneIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
290
+ export declare const ListIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
291
+ export declare const MinusCircleFilledIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
287
292
  export {};
@@ -7,10 +7,6 @@ declare const inputContainerVariants: (props?: ({
7
7
  export type InputLayout = "inline" | "block" | "wrap";
8
8
  export type InputState = "default" | "focused" | "error" | "disabled" | "filled";
9
9
  export interface InputBaseProps {
10
- id?: string;
11
- label?: string;
12
- /** 인풋 하단 도움말 텍스트. error=true 이면 danger 색상으로 표시 */
13
- helperText?: string;
14
10
  error?: boolean;
15
11
  disabled?: boolean;
16
12
  focused?: boolean;
@@ -22,10 +18,12 @@ export interface InputBaseProps {
22
18
  /** 인풋 컨테이너 오른쪽 슬롯 */
23
19
  endContent?: ReactNode;
24
20
  /** 인풋 컨테이너(border 박스)에 추가할 className */
25
- containerClassName?: string;
26
- /** 최외곽 래퍼 div 에 추가할 className */
27
21
  className?: string;
28
22
  children: ReactNode;
29
23
  }
30
- declare function InputBase({ id, label, helperText, error, disabled, focused, filled, size, layout, startContent, endContent, containerClassName, className, children, }: InputBaseProps): import("react/jsx-runtime").JSX.Element;
24
+ /**
25
+ * 인풋 컨테이너(border 박스) 프리미티브. 라벨/설명/에러는
26
+ * Field(FieldLabel/FieldDescription/FieldError) 합성으로 조합한다.
27
+ */
28
+ declare function InputBase({ error, disabled, focused, filled, size, layout, startContent, endContent, className, children, }: InputBaseProps): import("react/jsx-runtime").JSX.Element;
31
29
  export { InputBase, inputContainerVariants };
@@ -1,13 +1,19 @@
1
1
  import { type ReactNode, type Ref } from "react";
2
2
  import { type ButtonProps } from "@/components/Button";
3
+ import type { IconButtonProps } from "@/components/IconButton";
3
4
  type ModalOpenAutoFocusHandler = (event: Event) => void;
4
5
  export type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
6
+ export interface ModalHeadingButtonProps extends Omit<IconButtonProps, "asChild" | "children" | "className" | "ref" | "shape" | "size"> {
7
+ "aria-label": string;
8
+ children: ReactNode;
9
+ }
5
10
  export interface ModalButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
6
11
  children: ReactNode;
7
12
  }
8
13
  export interface ModalSurfaceProps {
9
14
  title: ReactNode;
10
15
  description?: ReactNode;
16
+ headingButton?: ModalHeadingButtonProps;
11
17
  children?: ReactNode;
12
18
  tertiaryButton?: ModalButtonProps;
13
19
  secondaryButton?: ModalButtonProps;
@@ -17,13 +23,14 @@ export interface ModalSurfaceProps {
17
23
  closeAriaLabel?: string;
18
24
  ref?: Ref<HTMLDivElement>;
19
25
  }
20
- declare function ModalSurface({ title, description, children, tertiaryButton, secondaryButton, primaryButton, size, onClose, closeAriaLabel, ref, }: ModalSurfaceProps): import("react/jsx-runtime").JSX.Element;
26
+ declare function ModalSurface({ title, description, headingButton, children, tertiaryButton, secondaryButton, primaryButton, size, onClose, closeAriaLabel, ref, }: ModalSurfaceProps): import("react/jsx-runtime").JSX.Element;
21
27
  export interface ModalProps {
22
28
  open?: boolean;
23
29
  defaultOpen?: boolean;
24
30
  onOpenChange?: (open: boolean) => void;
25
31
  title: ReactNode;
26
32
  description?: ReactNode;
33
+ headingButton?: ModalHeadingButtonProps;
27
34
  children?: ReactNode;
28
35
  tertiaryButton?: ModalButtonProps;
29
36
  secondaryButton?: ModalButtonProps;
@@ -33,5 +40,5 @@ export interface ModalProps {
33
40
  onOpenAutoFocus?: ModalOpenAutoFocusHandler;
34
41
  closeAriaLabel?: string;
35
42
  }
36
- declare function Modal({ open, defaultOpen, onOpenChange, title, description, children, tertiaryButton, secondaryButton, primaryButton, size, closeOnInteractOutside, onOpenAutoFocus, closeAriaLabel, }: ModalProps): import("react/jsx-runtime").JSX.Element;
43
+ declare function Modal({ open, defaultOpen, onOpenChange, title, description, headingButton, children, tertiaryButton, secondaryButton, primaryButton, size, closeOnInteractOutside, onOpenAutoFocus, closeAriaLabel, }: ModalProps): import("react/jsx-runtime").JSX.Element;
37
44
  export { Modal, ModalSurface };
@@ -0,0 +1,33 @@
1
+ import * as RadixDialog from "@radix-ui/react-dialog";
2
+ import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
3
+ type DialogContentProps = ComponentPropsWithoutRef<typeof RadixDialog.Content>;
4
+ /**
5
+ * 표준 카드(Modal) 틀 밖의 모달 레이어를 위한 저수준 변형 — 딤·레이어·접근성
6
+ * 배선만 제공하고 표면(위치·폭·패딩)은 소비자가 className으로 정한다.
7
+ * 검색 팔레트, 딤 없는 카드처럼 Modal의 고정 표면으로 표현할 수 없는
8
+ * 화면이 대상이다. 표준 카드면 Modal을 쓴다.
9
+ *
10
+ * 제목은 ModalBase.Title로 콘텐츠 안에서 배선한다(화면에 그리지 않으면
11
+ * className="aivex:sr-only"). 닫기 버튼은 ModalBase.Close로 감싼다.
12
+ */
13
+ export interface ModalBaseProps {
14
+ open?: boolean;
15
+ defaultOpen?: boolean;
16
+ onOpenChange?: (open: boolean) => void;
17
+ children: ReactNode;
18
+ /** 딤 표시 — false면 투명 오버레이(바깥 클릭 닫기만 받는다). */
19
+ dim?: boolean;
20
+ /** 콘텐츠 표면 — 위치·폭·패딩·배경을 소비자가 정한다. */
21
+ className?: string;
22
+ onOpenAutoFocus?: DialogContentProps["onOpenAutoFocus"];
23
+ onCloseAutoFocus?: DialogContentProps["onCloseAutoFocus"];
24
+ onEscapeKeyDown?: DialogContentProps["onEscapeKeyDown"];
25
+ onInteractOutside?: DialogContentProps["onInteractOutside"];
26
+ ref?: Ref<HTMLDivElement>;
27
+ }
28
+ declare function ModalBaseRoot({ open, defaultOpen, onOpenChange, children, dim, className, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, onInteractOutside, ref, }: ModalBaseProps): import("react/jsx-runtime").JSX.Element;
29
+ declare const ModalBase: typeof ModalBaseRoot & {
30
+ Title: import("react").ForwardRefExoticComponent<RadixDialog.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
31
+ Close: import("react").ForwardRefExoticComponent<RadixDialog.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
32
+ };
33
+ export { ModalBase };
@@ -1,2 +1,4 @@
1
- export type { ModalButtonProps, ModalProps, ModalSize, ModalSurfaceProps } from "./Modal";
1
+ export type { ModalButtonProps, ModalHeadingButtonProps, ModalProps, ModalSize, ModalSurfaceProps, } from "./Modal";
2
2
  export { Modal, ModalSurface } from "./Modal";
3
+ export type { ModalBaseProps } from "./ModalBase";
4
+ export { ModalBase } from "./ModalBase";