@aivex/ui 1.2.0-dev.1 → 1.2.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button-C_GP2mJ-.cjs +2 -0
- package/dist/Button-C_GP2mJ-.cjs.map +1 -0
- package/dist/Button-CzqDPqUT.js +8600 -0
- package/dist/Button-CzqDPqUT.js.map +1 -0
- package/dist/IconButton-B-MspnYP.cjs +2 -0
- package/dist/IconButton-B-MspnYP.cjs.map +1 -0
- package/dist/IconButton-DTGSfJme.js +560 -0
- package/dist/IconButton-DTGSfJme.js.map +1 -0
- package/dist/Switch-B2irM7Pp.js +2656 -0
- package/dist/Switch-B2irM7Pp.js.map +1 -0
- package/dist/Switch-CMKBdqkX.cjs +42 -0
- package/dist/Switch-CMKBdqkX.cjs.map +1 -0
- package/dist/comment.cjs +114 -0
- package/dist/comment.cjs.map +1 -0
- package/dist/comment.js +13624 -0
- package/dist/comment.js.map +1 -0
- package/dist/components/Coachmark/Coachmark.d.ts +54 -0
- package/dist/components/Coachmark/index.d.ts +2 -0
- package/dist/components/Comment/CommentInput.d.ts +30 -0
- package/dist/components/Comment/CommentPin.d.ts +17 -0
- package/dist/components/Comment/MentionInput.d.ts +30 -0
- package/dist/components/Comment/MentionList.d.ts +14 -0
- package/dist/components/Comment/index.d.ts +4 -0
- package/dist/components/Comment/types.d.ts +12 -0
- package/dist/components/Comment/useMentionSuggestion.d.ts +15 -0
- package/dist/components/DataGrid/DataGrid.d.ts +29 -71
- package/dist/components/DataGrid/DataGridColumnSettings.d.ts +18 -0
- package/dist/components/DataGrid/DataGridPrimitives.d.ts +77 -0
- package/dist/components/DataGrid/DataGridRows.d.ts +25 -0
- package/dist/components/DataGrid/index.d.ts +6 -2
- package/dist/components/DatePicker/DatePicker.d.ts +5 -3
- package/dist/components/Icon/index.d.ts +5 -4
- package/dist/components/InputBase/InputBase.d.ts +5 -7
- package/dist/components/Logo/index.d.ts +2 -1
- package/dist/components/Messagebox/Messagebox.d.ts +3 -1
- package/dist/components/Modal/Modal.d.ts +9 -2
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/SelectBox/SelectBox.d.ts +7 -4
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +9 -0
- package/dist/components/ShapeEditor/ShapeViewer.d.ts +42 -0
- package/dist/components/ShapeEditor/_components/AssistantOverlay.d.ts +17 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.d.ts +13 -0
- package/dist/components/ShapeEditor/_components/CursorGuide.d.ts +8 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +11 -0
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +45 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +6 -0
- package/dist/components/ShapeEditor/_components/RegionOverlay.d.ts +21 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +13 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +15 -0
- package/dist/components/ShapeEditor/_constants.d.ts +33 -0
- package/dist/components/ShapeEditor/_model/brush.d.ts +3 -0
- package/dist/components/ShapeEditor/_model/cursors.d.ts +18 -0
- package/dist/components/ShapeEditor/_model/geometry.d.ts +130 -0
- package/dist/components/ShapeEditor/_model/imageFetch.d.ts +9 -0
- package/dist/components/ShapeEditor/_model/imageTiles.d.ts +11 -0
- package/dist/components/ShapeEditor/_model/keymap.d.ts +15 -0
- package/dist/components/ShapeEditor/_model/konva.d.ts +4 -0
- package/dist/components/ShapeEditor/_model/overlays.d.ts +122 -0
- package/dist/components/ShapeEditor/_model/overlays.test.d.ts +1 -0
- package/dist/components/ShapeEditor/_model/pinIcon.d.ts +13 -0
- package/dist/components/ShapeEditor/_model/props.d.ts +445 -0
- package/dist/components/ShapeEditor/_model/scalarMask.d.ts +21 -0
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.ts +16 -0
- package/dist/components/ShapeEditor/_model/strings.d.ts +53 -0
- package/dist/components/ShapeEditor/_model/tools.d.ts +27 -0
- package/dist/components/ShapeEditor/_model/viewSettings.d.ts +15 -0
- package/dist/components/ShapeEditor/_model/viewport.d.ts +28 -0
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +124 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +169 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +68 -0
- package/dist/components/ShapeEditor/_renderers/types.d.ts +106 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +54 -0
- package/dist/components/ShapeEditor/_state/drawSessionState.d.ts +6 -0
- package/dist/components/ShapeEditor/_state/useAssistant.d.ts +48 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.d.ts +61 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.d.ts +23 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +25 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +58 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.ts +27 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.d.ts +24 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +28 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.d.ts +23 -0
- package/dist/components/ShapeEditor/index.d.ts +8 -0
- package/dist/components/Slider/Slider.d.ts +3 -1
- package/dist/components/Tagbox/Tagbox.d.ts +1 -4
- package/dist/components/Textarea/Textarea.d.ts +7 -4
- package/dist/components/Textbox/Textbox.d.ts +1 -5
- package/dist/index.cjs +13 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8552 -16590
- package/dist/index.js.map +1 -1
- package/dist/shape-editor.cjs +2 -0
- package/dist/shape-editor.cjs.map +1 -0
- package/dist/shape-editor.js +5735 -0
- package/dist/shape-editor.js.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +25 -2
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
3
|
+
import { type ButtonProps } from "@/components/Button";
|
|
4
|
+
/** 버튼은 라벨을 children으로 받고, 스타일(variant/color/size)은 Coachmark가 고정한다. */
|
|
5
|
+
export interface CoachmarkButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
type CoachmarkRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
|
|
9
|
+
declare function CoachmarkRoot(props: CoachmarkRootProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
type CoachmarkTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {
|
|
11
|
+
ref?: Ref<HTMLButtonElement>;
|
|
12
|
+
};
|
|
13
|
+
/** 코치마크를 붙일 요소. asChild로 임의 요소를 감싼다. */
|
|
14
|
+
declare function CoachmarkTrigger({ ref, ...props }: CoachmarkTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
type CoachmarkAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
|
|
16
|
+
/** 클릭 트리거 없이 특정 요소를 기준점으로만 쓸 때 사용한다. */
|
|
17
|
+
declare function CoachmarkAnchor(props: CoachmarkAnchorProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
interface CoachmarkContentProps extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "children" | "title"> {
|
|
19
|
+
/** 상단 타이틀. 생략하면 타이틀 영역을 렌더하지 않는다. */
|
|
20
|
+
title?: ReactNode;
|
|
21
|
+
/** 본문(텍스트·이미지 등, min 40 / max 200px, 초과 시 스크롤). */
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
/** 좌측 하단 보조 버튼(예: 넘기기). */
|
|
24
|
+
tertiaryButton?: CoachmarkButtonProps;
|
|
25
|
+
/** 우측 보조 버튼(예: 이전). */
|
|
26
|
+
secondaryButton?: CoachmarkButtonProps;
|
|
27
|
+
/** 우측 주요 버튼(예: 다음). */
|
|
28
|
+
primaryButton?: CoachmarkButtonProps;
|
|
29
|
+
/** 지정하면 타이틀 우측에 닫기(X) 버튼을 렌더한다. */
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
/** 닫기 버튼 aria-label. 기본 "닫기". */
|
|
32
|
+
closeAriaLabel?: string;
|
|
33
|
+
ref?: Ref<HTMLDivElement>;
|
|
34
|
+
}
|
|
35
|
+
declare function CoachmarkContent({ className, sideOffset, title, children, tertiaryButton, secondaryButton, primaryButton, onClose, closeAriaLabel, ref, ...props }: CoachmarkContentProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* 특정 요소를 가리키며 안내·온보딩 정보를 띄우는 코치마크(Popover-Bubble, 3848:11976).
|
|
38
|
+
* `@radix-ui/react-popover` 기반이라 side/정렬/충돌 회피/화살표 위치를 Radix가 처리한다.
|
|
39
|
+
* 진한 배경 위에 타이틀·닫기·본문·버튼(넘기기/이전/다음)을 담는다.
|
|
40
|
+
*
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Coachmark open={open} onOpenChange={setOpen}>
|
|
43
|
+
* <Coachmark.Anchor asChild><TriggerEl /></Coachmark.Anchor>
|
|
44
|
+
* <Coachmark.Content side="bottom" title="…" onClose={dismiss}>본문</Coachmark.Content>
|
|
45
|
+
* </Coachmark>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare const Coachmark: typeof CoachmarkRoot & {
|
|
49
|
+
Trigger: typeof CoachmarkTrigger;
|
|
50
|
+
Anchor: typeof CoachmarkAnchor;
|
|
51
|
+
Content: typeof CoachmarkContent;
|
|
52
|
+
};
|
|
53
|
+
export type { CoachmarkAnchorProps, CoachmarkContentProps, CoachmarkRootProps, CoachmarkTriggerProps, };
|
|
54
|
+
export { Coachmark };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { JSONContent } from "@tiptap/react";
|
|
2
|
+
import type { CommentUser } from "./types";
|
|
3
|
+
export interface CommentInputProps {
|
|
4
|
+
/** 작성자(입력행 아바타). */
|
|
5
|
+
user?: CommentUser;
|
|
6
|
+
value: string;
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
/** 전송(Enter 또는 Send 버튼). 값이 비어 있으면 호출되지 않는다. */
|
|
9
|
+
onSubmit: () => void;
|
|
10
|
+
/** 헤더 닫기 버튼·Esc. */
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
/** 헤더 타이틀(호스트 i18n). 기본 "Comment". */
|
|
13
|
+
title?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/** 전송 버튼 라벨(호스트 i18n). 기본 "Send". */
|
|
16
|
+
submitLabel?: string;
|
|
17
|
+
/** 전송 중 여부 — 버튼 비활성(스피너 등은 호스트가 submitLabel 자리로). */
|
|
18
|
+
pending?: boolean;
|
|
19
|
+
/** 멘션(@) 후보. 생략하면 멘션 없이 동작. */
|
|
20
|
+
userList?: CommentUser[];
|
|
21
|
+
mentionEmptyText?: string;
|
|
22
|
+
initialContent?: JSONContent;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 새 코멘트 입력 패널 — 옵스 new-editor의 NewCommentPanel 이식(도메인/위치 결합 제거).
|
|
27
|
+
* 코멘트 스레드와 동일한 크롬: 헤더(타이틀+닫기) + 입력행(아바타 · 멘션 입력 · 오른쪽
|
|
28
|
+
* Send 버튼). 화면 배치(핀 오른쪽 등)는 호스트가 감싸는 컨테이너에서 담당한다.
|
|
29
|
+
*/
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
export interface CommentPinProps {
|
|
3
|
+
/** 스레드 참여자(작성자 우선). 최대 maxAvatars명까지 아바타를 겹쳐 그린다. */
|
|
4
|
+
users: CommentUser[];
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
/** 해결(resolve)된 코멘트 — 반투명 표시. */
|
|
7
|
+
resolved?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
maxAvatars?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 코멘트 핀(다트) — 옵스 에디터 CommentDart의 말풍선 부분 이식.
|
|
14
|
+
* 좌하단이 뾰족한 말풍선(팁이 코멘트 지점을 가리킴). 위치·스케일 고정은 호스트가
|
|
15
|
+
* ShapeEditor overlayMarkers(anchor "topLeft") 등으로 담당한다.
|
|
16
|
+
*/
|
|
17
|
+
export declare function CommentPin({ users, selected, resolved, onClick, maxAvatars, className, }: CommentPinProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type JSONContent } from "@tiptap/react";
|
|
2
|
+
import { type Ref } from "react";
|
|
3
|
+
import type { CommentUser } from "./types";
|
|
4
|
+
export interface MentionInputHandle {
|
|
5
|
+
/** 입력기에 포커스를 준다(예: 전송 버튼 클릭 후 포커스 유지). */
|
|
6
|
+
focus: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface MentionInputProps {
|
|
9
|
+
value: string;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/** Enter(멘션 목록 닫힌 상태) 제출. */
|
|
13
|
+
onSubmit?: () => void;
|
|
14
|
+
/** Esc(멘션 목록 닫힌 상태) 취소. */
|
|
15
|
+
onEscape?: () => void;
|
|
16
|
+
/** 멘션(@) 후보. 빈 배열이면 멘션 없이 플레인 입력처럼 동작한다. */
|
|
17
|
+
userList?: CommentUser[];
|
|
18
|
+
initialContent?: JSONContent;
|
|
19
|
+
/** 멘션 후보 없음 문구(호스트 i18n). */
|
|
20
|
+
mentionEmptyText?: string;
|
|
21
|
+
/** 마운트 시 자동 포커스(기본 true). */
|
|
22
|
+
autoFocus?: boolean;
|
|
23
|
+
/** 명령형 핸들(포커스 제어). */
|
|
24
|
+
handleRef?: Ref<MentionInputHandle>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 멘션(@) 지원 코멘트 입력기 — 옵스 에디터 MentionInput 이식.
|
|
28
|
+
* value는 평문 직렬화(`@[이름](id)`)로 주고받는다.
|
|
29
|
+
*/
|
|
30
|
+
export default function MentionInput({ value, onChange, placeholder, onSubmit, onEscape, userList, initialContent, mentionEmptyText, autoFocus, handleRef, }: MentionInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
export interface MentionListHandle {
|
|
3
|
+
onKeyDown: (event: KeyboardEvent) => boolean;
|
|
4
|
+
}
|
|
5
|
+
interface MentionListProps {
|
|
6
|
+
items: CommentUser[];
|
|
7
|
+
command: (item: CommentUser) => void;
|
|
8
|
+
/** 후보 없음 문구(호스트 i18n). 기본 "No results found." */
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
ref?: React.Ref<MentionListHandle>;
|
|
11
|
+
}
|
|
12
|
+
/** 멘션(@) 자동완성 목록 — 옵스 에디터 MentionList 이식(도메인 결합 제거). */
|
|
13
|
+
declare const MentionList: import("react").MemoExoticComponent<({ items, command, emptyText, ref, }: MentionListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export default MentionList;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { CommentInput, type CommentInputProps } from "./CommentInput";
|
|
2
|
+
export { CommentPin, type CommentPinProps } from "./CommentPin";
|
|
3
|
+
export { default as MentionInput, type MentionInputHandle, type MentionInputProps, } from "./MentionInput";
|
|
4
|
+
export type { CommentUser } from "./types";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment 모듈의 도메인 무관 유저 표현 — 옵스의 UserInfo에서 코멘트 UI가 실제로
|
|
3
|
+
* 쓰는 필드만 추린 것. 호스트가 자기 유저 모델을 이 형태로 매핑해 넘긴다.
|
|
4
|
+
*/
|
|
5
|
+
export interface CommentUser {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
avatarUrl?: string;
|
|
10
|
+
/** 아바타 배경색(개인 색). 없으면 Avatar가 이름 기반으로 자동 배정. */
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
/** tiptap Mention 확장에 꽂는 자동완성 설정 — 옵스 에디터 이식(CommentUser 기반). */
|
|
3
|
+
export declare const useMentionSuggestion: (userList: CommentUser[], onOpenChange?: (isOpen: boolean) => void, emptyText?: string) => {
|
|
4
|
+
items: ({ query }: {
|
|
5
|
+
query: string;
|
|
6
|
+
}) => CommentUser[];
|
|
7
|
+
render: () => {
|
|
8
|
+
onStart: (props: Record<string, any>) => void;
|
|
9
|
+
onUpdate(props: Record<string, any>): void;
|
|
10
|
+
onKeyDown(props: {
|
|
11
|
+
event: KeyboardEvent;
|
|
12
|
+
}): boolean;
|
|
13
|
+
onExit(): void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,71 +1,7 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type {
|
|
3
|
-
import { type
|
|
4
|
-
|
|
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 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;
|
|
@@ -85,8 +21,30 @@ export interface DataGridProps<TData> extends Omit<TableOptions<TData>, "getCore
|
|
|
85
21
|
onRowClick?: (row: TData, index: number, event: MouseEvent<HTMLDivElement>) => void;
|
|
86
22
|
loadingMore?: boolean;
|
|
87
23
|
loadingMoreContent?: ReactNode;
|
|
24
|
+
/** loadingMore 시 표시할 컬럼 기반 스켈레톤 행 수 (loadingMoreContent 미지정 시 사용) */
|
|
25
|
+
loadingMoreRowCount?: number;
|
|
26
|
+
/** 로딩 스켈레톤 행에 적용할 클래스 (행 높이 등 실제 행과 맞출 때 사용) */
|
|
27
|
+
skeletonRowClassName?: string;
|
|
28
|
+
/** 목록 끝에 도달했을 때 마지막 행 아래에 표시할 콘텐츠 (예: "마지막 데이터입니다") */
|
|
29
|
+
endContent?: ReactNode;
|
|
88
30
|
infiniteTriggerRef?: Ref<HTMLDivElement>;
|
|
89
31
|
infiniteTriggerClassName?: string;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
32
|
+
/**
|
|
33
|
+
* 컬럼 설정(표시/숨김 + 순서 변경) 내장 UI. true 또는 옵션 객체를 주면
|
|
34
|
+
* 헤더 호버 시 테이블 왼쪽 바깥(-36px)에 트리거 버튼이 떠서 나타나고,
|
|
35
|
+
* 변경 사항은 즉시 반영된다. portal(fixed)로 띄우므로 레이아웃에 영향이 없고
|
|
36
|
+
* overflow 조상에도 잘리지 않는다 — 좌측 요소 위에 겹쳐 보일 수 있다.
|
|
37
|
+
*/
|
|
38
|
+
columnSettings?: boolean | DataGridColumnSettingsOptions;
|
|
39
|
+
/**
|
|
40
|
+
* 행 가상화 활성화 — 보이는 창의 행만 마운트한다.
|
|
41
|
+
* SSR에서는 초기 행이 비어 있고 마운트 후 렌더된다.
|
|
42
|
+
*/
|
|
43
|
+
virtualized?: boolean;
|
|
44
|
+
/** 가상화 시 행 높이 추정값(px). 실제 높이는 렌더 후 실측로 보정된다. 기본 48 */
|
|
45
|
+
estimateRowHeight?: number;
|
|
46
|
+
/** 가상화 시 화면 밖에 미리 렌더할 행 수. 기본 6 */
|
|
47
|
+
overscan?: number;
|
|
48
|
+
}
|
|
49
|
+
declare function DataGrid<TData>({ className, loading, loadingRowCount, empty, headerSticky, viewportClassName, contentClassName, headerClassName, bodyClassName, rowClassName, rowInteractive, isRowSelected, isRowDisabled, onRowClick, loadingMore, loadingMoreContent, loadingMoreRowCount, skeletonRowClassName, endContent, infiniteTriggerRef, infiniteTriggerClassName, columnSettings, virtualized, estimateRowHeight, overscan, ref, getCoreRowModel, ...tableOptions }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
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,77 @@
|
|
|
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
|
+
ref?: Ref<HTMLDivElement>;
|
|
31
|
+
}
|
|
32
|
+
declare function DataGridViewport({ className, children, ref, scrollbars, type, ...props }: DataGridViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export interface DataGridHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
34
|
+
sticky?: boolean;
|
|
35
|
+
ref?: Ref<HTMLDivElement>;
|
|
36
|
+
}
|
|
37
|
+
declare function DataGridHeader({ className, children, sticky, ref, ...props }: DataGridHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export interface DataGridBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
39
|
+
ref?: Ref<HTMLDivElement>;
|
|
40
|
+
}
|
|
41
|
+
declare function DataGridBody({ className, children, ref, ...props }: DataGridBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export interface DataGridRowProps extends HTMLAttributes<HTMLDivElement> {
|
|
43
|
+
asChild?: boolean;
|
|
44
|
+
selected?: boolean;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
interactive?: boolean;
|
|
47
|
+
ref?: Ref<HTMLDivElement>;
|
|
48
|
+
}
|
|
49
|
+
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;
|
|
50
|
+
export interface DataGridCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
51
|
+
align?: DataGridAlign;
|
|
52
|
+
asChild?: boolean;
|
|
53
|
+
ref?: Ref<HTMLDivElement>;
|
|
54
|
+
}
|
|
55
|
+
declare function DataGridCell({ className, children, align, asChild, ref, ...props }: DataGridCellProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export interface DataGridHeaderCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
57
|
+
align?: DataGridAlign;
|
|
58
|
+
asChild?: boolean;
|
|
59
|
+
ref?: Ref<HTMLDivElement>;
|
|
60
|
+
}
|
|
61
|
+
declare function DataGridHeaderCell({ className, children, align, asChild, ref, ...props }: DataGridHeaderCellProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export interface DataGridEmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
63
|
+
children?: ReactNode;
|
|
64
|
+
ref?: Ref<HTMLDivElement>;
|
|
65
|
+
}
|
|
66
|
+
declare function DataGridEmpty({ className, children, ref, ...props }: DataGridEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export interface DataGridLoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
68
|
+
rowCount?: number;
|
|
69
|
+
ref?: Ref<HTMLDivElement>;
|
|
70
|
+
}
|
|
71
|
+
declare function DataGridLoading({ className, rowCount, ref, ...props }: DataGridLoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export interface DataGridInfiniteTriggerProps extends HTMLAttributes<HTMLDivElement> {
|
|
73
|
+
loading?: boolean;
|
|
74
|
+
ref?: Ref<HTMLDivElement>;
|
|
75
|
+
}
|
|
76
|
+
declare function DataGridInfiniteTrigger({ className, children, loading, ref, ...props }: DataGridInfiniteTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
export { DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, };
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
15
|
+
declare function DataGridDataRowBase<TData>({ row, virtualIndex, virtualStart, measureRef, interactive, selected, disabled, className, onRowClick, }: DataGridDataRowProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const DataGridDataRow: typeof DataGridDataRowBase;
|
|
17
|
+
export interface DataGridVirtualizedRowsProps<TData> {
|
|
18
|
+
rows: Row<TData>[];
|
|
19
|
+
viewportRef: RefObject<HTMLDivElement | null>;
|
|
20
|
+
estimateRowHeight?: number;
|
|
21
|
+
overscan?: number;
|
|
22
|
+
renderRow: (row: Row<TData>, virtualItem: VirtualItem, measureRef: Ref<HTMLDivElement>) => ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function DataGridVirtualizedRows<TData>({ rows, viewportRef, estimateRowHeight, overscan, renderRow, }: DataGridVirtualizedRowsProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
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 {
|
|
4
|
-
export { 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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
1
|
+
import { type AriaAttributes, type ReactNode } from "react";
|
|
2
2
|
export interface DateRange {
|
|
3
3
|
start: Date;
|
|
4
4
|
end: Date;
|
|
@@ -35,10 +35,12 @@ interface DatePickerBaseProps {
|
|
|
35
35
|
/** 인풋 크기 */
|
|
36
36
|
size?: "sm" | "md";
|
|
37
37
|
placeholder?: string;
|
|
38
|
-
label?: string;
|
|
39
|
-
helperText?: string;
|
|
40
38
|
error?: boolean;
|
|
41
39
|
disabled?: boolean;
|
|
40
|
+
/** Field(FieldControl)가 주입하는 id — FieldLabel(htmlFor) 연결용 */
|
|
41
|
+
id?: string;
|
|
42
|
+
"aria-describedby"?: string;
|
|
43
|
+
"aria-invalid"?: AriaAttributes["aria-invalid"];
|
|
42
44
|
/** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
|
|
43
45
|
markedDates?: Date[];
|
|
44
46
|
minDate?: Date;
|
|
@@ -206,11 +206,11 @@ export declare const Zoom100Icon: ({ size, color, className, ...props }: IconPro
|
|
|
206
206
|
export declare const ZoomInIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
207
207
|
export declare const ZoomOutIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
208
208
|
export declare const PackageIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
209
|
-
export declare const
|
|
209
|
+
export declare const ArrowControlIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
210
210
|
export declare const TagIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
211
211
|
export declare const TagFilledIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
212
212
|
export declare const AtIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
213
|
-
export declare const
|
|
213
|
+
export declare const OpenedMailIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
214
214
|
export declare const TestIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
215
215
|
export declare const MinimizeIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
216
216
|
export declare const StorageIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -274,8 +274,6 @@ export declare const HourglassIcon: ({ size, color, className, ...props }: IconP
|
|
|
274
274
|
export declare const ThumbsUpIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
275
275
|
export declare const ThumbsDownIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
276
276
|
export declare const ThumbsDownFilledIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
277
|
-
export declare const PageMinimizeIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
278
|
-
export declare const PageMaximizeIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
279
277
|
export declare const PageIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
280
278
|
export declare const MinimizeWindowIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
281
279
|
export declare const TaskQueueIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -283,4 +281,7 @@ export declare const ShrinkIcon: ({ size, color, className, ...props }: IconProp
|
|
|
283
281
|
export declare const ExpandIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
284
282
|
export declare const AiVotIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
285
283
|
export declare const AiViewIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
284
|
+
export declare const HeadphonesIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
285
|
+
export declare const LinkedInIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
286
|
+
export declare const PhoneIcon: ({ size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
286
287
|
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
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode, type SVGProps } from "react";
|
|
2
2
|
export interface LogoProps extends Omit<SVGProps<SVGSVGElement>, "color"> {
|
|
3
|
-
/** Logo color (applied to the monochrome master fill). Defaults to
|
|
3
|
+
/** Logo color (applied to the monochrome master fill). Defaults to brand Black #0D0D12 (LOGO 마스터 496:270). */
|
|
4
4
|
color?: string;
|
|
5
5
|
/** Accessible title. When omitted the logo is decorative (aria-hidden). */
|
|
6
6
|
title?: string;
|
|
@@ -11,6 +11,7 @@ export declare const AiVisionTLogo: (props: LogoProps) => ReactNode;
|
|
|
11
11
|
export declare const AiVisionSLogo: (props: LogoProps) => ReactNode;
|
|
12
12
|
export declare const AiVisionMLogo: (props: LogoProps) => ReactNode;
|
|
13
13
|
export declare const AiVDataLogo: (props: LogoProps) => ReactNode;
|
|
14
|
+
export declare const AiVDataSymbol: (props: LogoProps) => ReactNode;
|
|
14
15
|
export declare const AiVOpsLogo: (props: LogoProps) => ReactNode;
|
|
15
16
|
export declare const AiVotLogo: (props: LogoProps) => ReactNode;
|
|
16
17
|
export declare const AiViewLogo: (props: LogoProps) => ReactNode;
|
|
@@ -5,8 +5,10 @@ declare const messageboxVariants: (props?: ({
|
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface MessageboxProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof messageboxVariants> {
|
|
7
7
|
message: string;
|
|
8
|
+
subText?: ReactNode;
|
|
8
9
|
children?: ReactNode;
|
|
10
|
+
onClose?: () => void;
|
|
9
11
|
ref?: Ref<HTMLDivElement>;
|
|
10
12
|
}
|
|
11
|
-
declare function Messagebox({ className, type, message, children, ref, ...props }: MessageboxProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function Messagebox({ className, type, message, subText, children, onClose, ref, ...props }: MessageboxProps): import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
export { Messagebox, messageboxVariants };
|
|
@@ -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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
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";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AriaAttributes } from "react";
|
|
1
2
|
export interface SelectBoxOption {
|
|
2
3
|
value: string;
|
|
3
4
|
label: string;
|
|
@@ -26,11 +27,13 @@ export interface SelectBoxProps {
|
|
|
26
27
|
* @example renderValue={(option, group) => `${group.title} / ${option.label}`}
|
|
27
28
|
*/
|
|
28
29
|
renderValue?: (option: SelectBoxOption, group: SelectBoxGroup) => string;
|
|
29
|
-
/**
|
|
30
|
+
/** 트리거 버튼에 추가할 className */
|
|
30
31
|
className?: string;
|
|
31
|
-
label?: string;
|
|
32
|
-
helperText?: string;
|
|
33
32
|
error?: boolean;
|
|
33
|
+
/** Field(FieldControl)가 주입하는 id — FieldLabel(htmlFor) 연결용 */
|
|
34
|
+
id?: string;
|
|
35
|
+
"aria-describedby"?: string;
|
|
36
|
+
"aria-invalid"?: AriaAttributes["aria-invalid"];
|
|
34
37
|
}
|
|
35
|
-
declare function SelectBox({ groups, value, placeholder, disabled, size, onChange, renderValue, className,
|
|
38
|
+
declare function SelectBox({ groups, value, placeholder, disabled, size, onChange, renderValue, className, error, id, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, }: SelectBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
36
39
|
export { SelectBox };
|