@aivex/ui 1.1.0 → 1.2.0-dev.10
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/Badge/Badge.d.ts +2 -2
- package/dist/components/Chips/index.d.ts +19 -2
- 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 +11 -1
- package/dist/components/DataGrid/DataGridColumnSettings.d.ts +18 -0
- package/dist/components/DataGrid/index.d.ts +2 -0
- package/dist/components/DatePicker/Calendar.d.ts +27 -0
- package/dist/components/DatePicker/DatePicker.d.ts +121 -0
- package/dist/components/DatePicker/date.d.ts +24 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- 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/Popover/Popover.d.ts +47 -0
- package/dist/components/Popover/index.d.ts +2 -0
- 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/components/ToggleButton/ToggleButton.d.ts +17 -0
- package/dist/components/ToggleButton/index.d.ts +2 -0
- package/dist/index.cjs +10 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8170 -16322
- 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 +24 -2
- package/dist/components/Chips/Chips.d.ts +0 -17
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
3
3
|
type BadgeVariant = "filled" | "outline";
|
|
4
|
-
type BadgeColor = "blue" | "gray" | "red" | "green" | "yellow" | "orange" | "lime" | "teal" | "cyan" | "indigo" | "violet" | "pink";
|
|
4
|
+
type BadgeColor = "blue" | "gray" | "red" | "green" | "yellow" | "orange" | "lime" | "teal" | "cyan" | "indigo" | "violet" | "pink" | "brand";
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
6
|
shape?: "pill" | "rect" | null | undefined;
|
|
7
7
|
treatment?: "filled" | "outline" | null | undefined;
|
|
8
8
|
size?: "md" | "sm" | "xs" | null | undefined;
|
|
9
|
-
color?: "blue" | "cyan" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "red" | "teal" | "violet" | "yellow" | null | undefined;
|
|
9
|
+
color?: "blue" | "brand" | "cyan" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "red" | "teal" | "violet" | "yellow" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
12
12
|
variant?: BadgeVariant;
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ToggleButton, type ToggleButtonProps } from "@/components/ToggleButton";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated `Chips`는 `ToggleButton`으로 이름이 변경되었습니다. `ToggleButton`을 사용하세요.
|
|
4
|
+
* 이 별칭은 하위 호환을 위해 유지되며 이후 메이저 버전에서 제거됩니다.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Chips: typeof ToggleButton;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated `chipsVariants`는 `toggleButtonVariants`로 이름이 변경되었습니다.
|
|
9
|
+
*/
|
|
10
|
+
export declare const chipsVariants: (props?: ({
|
|
11
|
+
shape?: "rectangle" | "rounded" | null | undefined;
|
|
12
|
+
size?: "icon-md" | "icon-sm" | "md" | "sm" | null | undefined;
|
|
13
|
+
variant?: "ghost" | "outline" | null | undefined;
|
|
14
|
+
active?: boolean | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated `ChipsProps`는 `ToggleButtonProps`로 이름이 변경되었습니다.
|
|
18
|
+
*/
|
|
19
|
+
export type ChipsProps = ToggleButtonProps;
|
|
@@ -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,6 +1,7 @@
|
|
|
1
1
|
import { type RowData, type TableOptions } from "@tanstack/react-table";
|
|
2
2
|
import type { HTMLAttributes, MouseEvent, ReactNode, Ref } from "react";
|
|
3
3
|
import { type ScrollAreaProps } from "@/components/ScrollArea";
|
|
4
|
+
import { type DataGridColumnSettingsOptions } from "./DataGridColumnSettings";
|
|
4
5
|
export type DataGridAlign = "start" | "center" | "end";
|
|
5
6
|
type DataGridValue<TData, TValue> = TValue | ((row: TData, index: number) => TValue);
|
|
6
7
|
declare module "@tanstack/react-table" {
|
|
@@ -12,6 +13,8 @@ declare module "@tanstack/react-table" {
|
|
|
12
13
|
headerClassName?: string;
|
|
13
14
|
cellClassName?: DataGridValue<TData, string | undefined>;
|
|
14
15
|
headerSortTrigger?: boolean;
|
|
16
|
+
/** 컬럼 설정 목록에 표시할 라벨 (header 가 문자열이 아닌 컬럼용) */
|
|
17
|
+
settingsLabel?: string;
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
export interface DataGridRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -87,6 +90,13 @@ export interface DataGridProps<TData> extends Omit<TableOptions<TData>, "getCore
|
|
|
87
90
|
loadingMoreContent?: ReactNode;
|
|
88
91
|
infiniteTriggerRef?: Ref<HTMLDivElement>;
|
|
89
92
|
infiniteTriggerClassName?: string;
|
|
93
|
+
/**
|
|
94
|
+
* 컬럼 설정(표시/숨김 + 순서 변경) 내장 UI. true 또는 옵션 객체를 주면
|
|
95
|
+
* 헤더 호버 시 테이블 왼쪽 바깥(-36px)에 트리거 버튼이 떠서 나타나고,
|
|
96
|
+
* 변경 사항은 즉시 반영된다. portal(fixed)로 띄우므로 레이아웃에 영향이 없고
|
|
97
|
+
* overflow 조상에도 잘리지 않는다 — 좌측 요소 위에 겹쳐 보일 수 있다.
|
|
98
|
+
*/
|
|
99
|
+
columnSettings?: boolean | DataGridColumnSettingsOptions;
|
|
90
100
|
}
|
|
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;
|
|
101
|
+
declare function DataGrid<TData>({ className, loading, loadingRowCount, empty, headerSticky, viewportClassName, contentClassName, headerClassName, bodyClassName, rowClassName, rowInteractive, isRowSelected, isRowDisabled, onRowClick, loadingMore, loadingMoreContent, infiniteTriggerRef, infiniteTriggerClassName, columnSettings, ref, getCoreRowModel, ...tableOptions }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
92
102
|
export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, };
|
|
@@ -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 };
|
|
@@ -2,3 +2,5 @@ export type { CellContext, ColumnDef, ColumnFiltersState, ColumnOrderState, Colu
|
|
|
2
2
|
export { getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/react-table";
|
|
3
3
|
export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridProps, DataGridRootProps, DataGridRowProps, DataGridViewportProps, } from "./DataGrid";
|
|
4
4
|
export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGrid";
|
|
5
|
+
export type { DataGridColumnSettingsOptions } from "./DataGridColumnSettings";
|
|
6
|
+
export { DataGridColumnSettings } from "./DataGridColumnSettings";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface CalendarProps {
|
|
2
|
+
/** 표시할 월 (일자는 무시) */
|
|
3
|
+
month: Date;
|
|
4
|
+
/** 단일 선택된 일자 */
|
|
5
|
+
selected?: Date | null;
|
|
6
|
+
/** 범위 시작 일자 */
|
|
7
|
+
rangeStart?: Date | null;
|
|
8
|
+
/** 범위 종료 일자 */
|
|
9
|
+
rangeEnd?: Date | null;
|
|
10
|
+
onSelectDay?: (day: Date) => void;
|
|
11
|
+
/** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
|
|
12
|
+
markedDates?: Date[];
|
|
13
|
+
minDate?: Date;
|
|
14
|
+
maxDate?: Date;
|
|
15
|
+
/** true 를 반환하면 해당 일자 비활성화 */
|
|
16
|
+
disabledDate?: (date: Date) => boolean;
|
|
17
|
+
/** 이전 달 버튼 — 미지정 시 자리만 확보 */
|
|
18
|
+
onPrevMonth?: () => void;
|
|
19
|
+
/** 다음 달 버튼 — 미지정 시 자리만 확보 */
|
|
20
|
+
onNextMonth?: () => void;
|
|
21
|
+
weekdayLabels?: string[];
|
|
22
|
+
formatMonthTitle?: (month: Date) => string;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/** 한 달 그리드 캘린더. DatePicker 내부에서 1~2개를 조합해 사용합니다. */
|
|
26
|
+
declare function Calendar({ month, selected, rangeStart, rangeEnd, onSelectDay, markedDates, minDate, maxDate, disabledDate, onPrevMonth, onNextMonth, weekdayLabels, formatMonthTitle, className, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export { Calendar };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { type AriaAttributes, type ReactNode } from "react";
|
|
2
|
+
export interface DateRange {
|
|
3
|
+
start: Date;
|
|
4
|
+
end: Date;
|
|
5
|
+
}
|
|
6
|
+
export interface DatePickerPreset<T> {
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
getValue: () => T;
|
|
9
|
+
}
|
|
10
|
+
/** 시간 입력 정밀도 — hour: 시만, minute: 시:분, second: 시:분:초 */
|
|
11
|
+
export type TimePrecision = "hour" | "minute" | "second";
|
|
12
|
+
/** 시각 지정값 (기본 시각 프롭용) — 생략된 단위는 0 */
|
|
13
|
+
export interface TimeInput {
|
|
14
|
+
h: number;
|
|
15
|
+
m?: number;
|
|
16
|
+
s?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 종료 시각 커밋 방식 (범위 계열에서만 의미)
|
|
20
|
+
* - exact: 표시된 시각 그대로 커밋 (기본)
|
|
21
|
+
* - inclusive: 종료 단위 끝까지 포함 (예: 23:59 → 23:59:59.999) — `t <= end` 조회용
|
|
22
|
+
* - exclusive: 다음 경계를 커밋해 끝 미포함 (예: 23:59 → 다음날 00:00:00.000) — `t < end` 반개구간 조회용
|
|
23
|
+
*/
|
|
24
|
+
export type EndBoundary = "exact" | "inclusive" | "exclusive";
|
|
25
|
+
interface DatePickerBaseProps {
|
|
26
|
+
/** 시간 입력 정밀도 — 정밀도 밖 단위는 비활성(00)으로 표시되고 0으로 커밋됨 (기본: "second") */
|
|
27
|
+
timePrecision?: TimePrecision;
|
|
28
|
+
/**
|
|
29
|
+
* 종료 시각 커밋 방식 (기본: "exact").
|
|
30
|
+
* date="range" time="single"(공통 시각)에는 적용되지 않음 — 24h 배수 의미 보존
|
|
31
|
+
*/
|
|
32
|
+
endBoundary?: EndBoundary;
|
|
33
|
+
/** 표시할 월 개수 (기본: date="range"는 2, 그 외 1) */
|
|
34
|
+
numberOfMonths?: 1 | 2;
|
|
35
|
+
/** 인풋 크기 */
|
|
36
|
+
size?: "sm" | "md";
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
error?: boolean;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/** Field(FieldControl)가 주입하는 id — FieldLabel(htmlFor) 연결용 */
|
|
41
|
+
id?: string;
|
|
42
|
+
"aria-describedby"?: string;
|
|
43
|
+
"aria-invalid"?: AriaAttributes["aria-invalid"];
|
|
44
|
+
/** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
|
|
45
|
+
markedDates?: Date[];
|
|
46
|
+
minDate?: Date;
|
|
47
|
+
maxDate?: Date;
|
|
48
|
+
/** true 를 반환하면 해당 일자 비활성화 */
|
|
49
|
+
disabledDate?: (date: Date) => boolean;
|
|
50
|
+
/** 시작 시점의 기본 시각 (value/defaultValue가 없을 때, 기본 00:00:00) */
|
|
51
|
+
defaultStartTime?: TimeInput;
|
|
52
|
+
/** 종료 시점의 기본 시각 (value/defaultValue가 없을 때, 기본 하루 끝) */
|
|
53
|
+
defaultEndTime?: TimeInput;
|
|
54
|
+
/** 패널 타이틀 */
|
|
55
|
+
title?: ReactNode;
|
|
56
|
+
startTimeLabel?: ReactNode;
|
|
57
|
+
endTimeLabel?: ReactNode;
|
|
58
|
+
resetLabel?: ReactNode;
|
|
59
|
+
applyLabel?: ReactNode;
|
|
60
|
+
weekdayLabels?: string[];
|
|
61
|
+
formatMonthTitle?: (month: Date) => string;
|
|
62
|
+
/** 팝오버가 처음 열릴 때 표시할 월 (값이 없을 때) */
|
|
63
|
+
defaultMonth?: Date;
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* date × time 조합:
|
|
68
|
+
*
|
|
69
|
+
* | date | time | 의미 | value |
|
|
70
|
+
* |--------|--------|----------------------------------|-----------|
|
|
71
|
+
* | single | none | 하루 | Date |
|
|
72
|
+
* | single | single | 하루 + 시각 | Date |
|
|
73
|
+
* | single | range | 하루 내 시간 범위 | DateRange |
|
|
74
|
+
* | range | none | 날짜 범위 (일 단위) | DateRange |
|
|
75
|
+
* | range | single | 날짜 범위 + 공통 시각 (24h 배수) | DateRange |
|
|
76
|
+
* | range | range | 날짜+시간 범위 | DateRange |
|
|
77
|
+
*/
|
|
78
|
+
export interface SingleDatePickerProps extends DatePickerBaseProps {
|
|
79
|
+
date?: "single";
|
|
80
|
+
time?: "none" | "single";
|
|
81
|
+
value?: Date | null;
|
|
82
|
+
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 (적용 전까지 onChange 미호출) */
|
|
83
|
+
defaultValue?: Date | null;
|
|
84
|
+
onChange?: (value: Date | null) => void;
|
|
85
|
+
/** 커스텀 프리셋 버튼 (예: 오늘, 어제) */
|
|
86
|
+
presets?: DatePickerPreset<Date>[];
|
|
87
|
+
/** 인풋에 표시될 텍스트 커스텀 */
|
|
88
|
+
formatValue?: (value: Date) => string;
|
|
89
|
+
}
|
|
90
|
+
/** 날짜는 하루, 시간만 범위 — value의 start/end는 같은 일자에 시각만 다름 */
|
|
91
|
+
export interface TimeRangeDatePickerProps extends DatePickerBaseProps {
|
|
92
|
+
date?: "single";
|
|
93
|
+
time: "range";
|
|
94
|
+
value?: DateRange | null;
|
|
95
|
+
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 */
|
|
96
|
+
defaultValue?: DateRange | null;
|
|
97
|
+
onChange?: (value: DateRange | null) => void;
|
|
98
|
+
/** 커스텀 프리셋 버튼 (예: 오전, 오후) */
|
|
99
|
+
presets?: DatePickerPreset<DateRange>[];
|
|
100
|
+
/** 인풋에 표시될 텍스트 커스텀 */
|
|
101
|
+
formatValue?: (value: DateRange) => string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 날짜 범위. time="single"이면 양 끝점이 같은 시각을 공유해
|
|
105
|
+
* 구간이 24시간의 배수로 맞춰집니다 (예: 교대 시작 시각 기준 조회).
|
|
106
|
+
*/
|
|
107
|
+
export interface DateRangeDatePickerProps extends DatePickerBaseProps {
|
|
108
|
+
date: "range";
|
|
109
|
+
time?: "none" | "single" | "range";
|
|
110
|
+
value?: DateRange | null;
|
|
111
|
+
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 */
|
|
112
|
+
defaultValue?: DateRange | null;
|
|
113
|
+
onChange?: (value: DateRange | null) => void;
|
|
114
|
+
/** 커스텀 프리셋 버튼 (예: 이번주, 지난 7일) */
|
|
115
|
+
presets?: DatePickerPreset<DateRange>[];
|
|
116
|
+
/** 인풋에 표시될 텍스트 커스텀 */
|
|
117
|
+
formatValue?: (value: DateRange) => string;
|
|
118
|
+
}
|
|
119
|
+
export type DatePickerProps = SingleDatePickerProps | TimeRangeDatePickerProps | DateRangeDatePickerProps;
|
|
120
|
+
declare function DatePicker(props: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
121
|
+
export { DatePicker };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** DatePicker 내부 날짜 계산 유틸 — 외부 라이브러리 없이 네이티브 Date 사용 */
|
|
2
|
+
export declare function pad2(n: number): string;
|
|
3
|
+
/** 시각을 제거한 자정 기준 Date */
|
|
4
|
+
export declare function startOfDay(date: Date): Date;
|
|
5
|
+
export declare function isSameDay(a: Date, b: Date): boolean;
|
|
6
|
+
/** 일 단위 비교 (a < b) */
|
|
7
|
+
export declare function isBeforeDay(a: Date, b: Date): boolean;
|
|
8
|
+
/** 일 단위 비교 (a > b) */
|
|
9
|
+
export declare function isAfterDay(a: Date, b: Date): boolean;
|
|
10
|
+
/** 해당 월 1일 */
|
|
11
|
+
export declare function startOfMonth(date: Date): Date;
|
|
12
|
+
/** n개월 이동한 월의 1일 */
|
|
13
|
+
export declare function addMonths(date: Date, amount: number): Date;
|
|
14
|
+
/**
|
|
15
|
+
* 월 그리드 생성 — 일요일 시작 주 단위 2차원 배열.
|
|
16
|
+
* 인접 월 자리는 null (디자인상 빈 칸으로 렌더링).
|
|
17
|
+
*/
|
|
18
|
+
export declare function getMonthWeeks(month: Date): (Date | null)[][];
|
|
19
|
+
/** date의 일자에 시각(시/분/초)을 결합 */
|
|
20
|
+
export declare function withTime(date: Date, time: {
|
|
21
|
+
h: number;
|
|
22
|
+
m: number;
|
|
23
|
+
s: number;
|
|
24
|
+
}): Date;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { CalendarProps } from "./Calendar";
|
|
2
|
+
export { Calendar } from "./Calendar";
|
|
3
|
+
export type { DatePickerPreset, DatePickerProps, DateRange, DateRangeDatePickerProps, EndBoundary, SingleDatePickerProps, TimeInput, TimePrecision, TimeRangeDatePickerProps, } from "./DatePicker";
|
|
4
|
+
export { DatePicker } from "./DatePicker";
|
|
@@ -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";
|