@aivex/ui 1.1.0-dev.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -6
- package/dist/components/Avatar/Avatar.d.ts +10 -5
- package/dist/components/Badge/Badge.d.ts +18 -12
- package/dist/components/Badge/index.d.ts +2 -2
- package/dist/components/BreadCrumb/BreadCrumb.d.ts +18 -12
- package/dist/components/BreadCrumb/index.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +5 -3
- package/dist/components/Card/Card.d.ts +9 -1
- package/dist/components/Checkbox/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/ChipsCheckbox.d.ts +4 -3
- package/dist/components/Chips/Chips.d.ts +6 -4
- package/dist/components/DataGrid/DataGrid.d.ts +92 -0
- package/dist/components/DataGrid/index.d.ts +4 -0
- package/dist/components/Dialog/Dialog.d.ts +20 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/DraggableScroll/DraggableScroll.d.ts +11 -0
- package/dist/components/DraggableScroll/index.d.ts +2 -0
- package/dist/components/Field/Field.d.ts +46 -0
- package/dist/components/Field/index.d.ts +1 -0
- package/dist/components/FilterModal/FilterModal.d.ts +32 -0
- package/dist/components/FilterModal/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts +280 -278
- package/dist/components/IconButton/IconButton.d.ts +2 -2
- package/dist/components/InputBase/InputBase.d.ts +8 -7
- package/dist/components/InteractionLayer/InteractionLayer.d.ts +3 -1
- package/dist/components/Logo/index.d.ts +16 -0
- package/dist/components/Menu/Menu.d.ts +79 -13
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Messagebox/Messagebox.d.ts +4 -3
- package/dist/components/Modal/Modal.d.ts +33 -22
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/Nav/Nav.d.ts +3 -5
- package/dist/components/Pagination/Pagination.d.ts +20 -6
- package/dist/components/Panel/Panel.d.ts +13 -0
- package/dist/components/Panel/index.d.ts +2 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.d.ts +14 -0
- package/dist/components/ScrollArea/index.d.ts +2 -0
- package/dist/components/Segmented/Segmented.d.ts +11 -17
- package/dist/components/SelectBox/SelectBox.d.ts +2 -0
- package/dist/components/Shortcut/Shortcut.d.ts +3 -2
- package/dist/components/Skeleton/Skeleton.d.ts +7 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Slider/Slider.d.ts +9 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +6 -5
- package/dist/components/Tab/Tab.d.ts +17 -16
- package/dist/components/Tab/index.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +38 -6
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +3 -2
- package/dist/components/Tagbox/Tagbox.d.ts +8 -2
- package/dist/components/Textarea/Textarea.d.ts +3 -3
- package/dist/components/Textbox/Textbox.d.ts +5 -4
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/UploadArea/UploadArea.d.ts +7 -1
- package/dist/index.cjs +24 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -3
- package/dist/index.js +14041 -4881
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -2
- package/dist/tokens/tokens.css +100 -13
- package/package.json +16 -4
- package/dist/components/Alert/Alert.d.ts +0 -16
- package/dist/components/Alert/index.d.ts +0 -2
- package/dist/theme.css +0 -154
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ButtonHTMLAttributes, ReactNode, Ref } from "react";
|
|
3
3
|
declare const iconButtonVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
5
|
-
shape?: "
|
|
4
|
+
size?: "md" | "sm" | "xs" | null | undefined;
|
|
5
|
+
shape?: "rectangle" | "rounded" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type">, VariantProps<typeof iconButtonVariants> {
|
|
8
8
|
/** 아이콘 색상 — primary: 기본(어두운) 배경, white: 어두운 배경 위 */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
declare const inputContainerVariants: (props?: ({
|
|
3
|
-
state?: "default" | "disabled" | "error" | "focused" | null | undefined;
|
|
4
|
-
size?: "
|
|
5
|
-
layout?: "
|
|
3
|
+
state?: "default" | "disabled" | "error" | "filled" | "focused" | null | undefined;
|
|
4
|
+
size?: "md" | "sm" | null | undefined;
|
|
5
|
+
layout?: "block" | "inline" | "wrap" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type InputLayout = "inline" | "block" | "wrap";
|
|
8
|
-
export type InputState = "default" | "focused" | "error" | "disabled";
|
|
8
|
+
export type InputState = "default" | "focused" | "error" | "disabled" | "filled";
|
|
9
9
|
export interface InputBaseProps {
|
|
10
10
|
id?: string;
|
|
11
11
|
label?: string;
|
|
@@ -14,17 +14,18 @@ export interface InputBaseProps {
|
|
|
14
14
|
error?: boolean;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
focused?: boolean;
|
|
17
|
+
filled?: boolean;
|
|
17
18
|
size?: "sm" | "md";
|
|
18
19
|
layout?: InputLayout;
|
|
19
20
|
/** 인풋 컨테이너 왼쪽 슬롯 */
|
|
20
|
-
|
|
21
|
+
startContent?: ReactNode;
|
|
21
22
|
/** 인풋 컨테이너 오른쪽 슬롯 */
|
|
22
|
-
|
|
23
|
+
endContent?: ReactNode;
|
|
23
24
|
/** 인풋 컨테이너(border 박스)에 추가할 className */
|
|
24
25
|
containerClassName?: string;
|
|
25
26
|
/** 최외곽 래퍼 div 에 추가할 className */
|
|
26
27
|
className?: string;
|
|
27
28
|
children: ReactNode;
|
|
28
29
|
}
|
|
29
|
-
declare function InputBase({ id, label, helperText, error, disabled, focused, size, layout,
|
|
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;
|
|
30
31
|
export { InputBase, inputContainerVariants };
|
|
@@ -2,6 +2,8 @@ export type InteractionLayerVariant = "default" | "strong" | "danger" | "white";
|
|
|
2
2
|
export interface InteractionLayerProps {
|
|
3
3
|
variant?: InteractionLayerVariant;
|
|
4
4
|
className?: string;
|
|
5
|
+
fill?: boolean;
|
|
6
|
+
interactive?: boolean;
|
|
5
7
|
}
|
|
6
|
-
declare function InteractionLayer({ variant, className }: InteractionLayerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function InteractionLayer({ variant, fill, interactive, className, }: InteractionLayerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export { InteractionLayer };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode, type SVGProps } from "react";
|
|
2
|
+
export interface LogoProps extends Omit<SVGProps<SVGSVGElement>, "color"> {
|
|
3
|
+
/** Logo color (applied to the monochrome master fill). Defaults to currentColor. */
|
|
4
|
+
color?: string;
|
|
5
|
+
/** Accessible title. When omitted the logo is decorative (aria-hidden). */
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const AivexLogo: (props: LogoProps) => ReactNode;
|
|
9
|
+
export declare const AiVisionLogo: (props: LogoProps) => ReactNode;
|
|
10
|
+
export declare const AiVisionTLogo: (props: LogoProps) => ReactNode;
|
|
11
|
+
export declare const AiVisionSLogo: (props: LogoProps) => ReactNode;
|
|
12
|
+
export declare const AiVisionMLogo: (props: LogoProps) => ReactNode;
|
|
13
|
+
export declare const AiVDataLogo: (props: LogoProps) => ReactNode;
|
|
14
|
+
export declare const AiVOpsLogo: (props: LogoProps) => ReactNode;
|
|
15
|
+
export declare const AiVotLogo: (props: LogoProps) => ReactNode;
|
|
16
|
+
export declare const AiViewLogo: (props: LogoProps) => ReactNode;
|
|
@@ -1,18 +1,84 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
3
|
+
type MenuRootProps = ComponentPropsWithoutRef<typeof DropdownMenu.Root>;
|
|
4
|
+
declare function MenuRoot(props: MenuRootProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type MenuTriggerProps = ComponentPropsWithoutRef<typeof DropdownMenu.Trigger> & {
|
|
6
|
+
ref?: Ref<HTMLButtonElement>;
|
|
7
|
+
};
|
|
8
|
+
declare function MenuTrigger({ ref, ...props }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
type MenuContentProps = ComponentPropsWithoutRef<typeof DropdownMenu.Content> & {
|
|
10
|
+
ref?: Ref<HTMLDivElement>;
|
|
11
|
+
};
|
|
12
|
+
declare function MenuContent({ className, sideOffset, ref, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
type MenuGroupProps = ComponentPropsWithoutRef<typeof DropdownMenu.Group> & {
|
|
14
|
+
ref?: Ref<HTMLDivElement>;
|
|
15
|
+
};
|
|
16
|
+
declare function MenuGroup({ className, ref, ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
type MenuSeparatorProps = ComponentPropsWithoutRef<typeof DropdownMenu.Separator> & {
|
|
18
|
+
ref?: Ref<HTMLDivElement>;
|
|
19
|
+
};
|
|
20
|
+
declare function MenuSeparator({ className, ref, ...props }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
type MenuLabelProps = ComponentPropsWithoutRef<typeof DropdownMenu.Label> & {
|
|
22
|
+
ref?: Ref<HTMLDivElement>;
|
|
23
|
+
};
|
|
24
|
+
declare function MenuLabel({ className, ref, ...props }: MenuLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
interface MenuItemProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenu.Item>, "children"> {
|
|
26
|
+
/** label/icon으로 렌더할 때 사용. asChild 모드에선 무시 */
|
|
27
|
+
label?: ReactNode;
|
|
8
28
|
icon?: ReactNode;
|
|
9
29
|
danger?: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
30
|
+
/** Radix asChild — 자식 컴포넌트(Link 등)에 메뉴 동작/스타일 위임 */
|
|
31
|
+
asChild?: boolean;
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
ref?: Ref<HTMLDivElement>;
|
|
34
|
+
}
|
|
35
|
+
declare function MenuItem({ className, label, icon, danger, asChild, children, ref, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
interface MenuCheckboxItemProps extends ComponentPropsWithoutRef<typeof DropdownMenu.CheckboxItem> {
|
|
37
|
+
label?: ReactNode;
|
|
38
|
+
icon?: ReactNode;
|
|
39
|
+
ref?: Ref<HTMLDivElement>;
|
|
40
|
+
}
|
|
41
|
+
declare function MenuCheckboxItem({ className, label, icon, children, ref, ...props }: MenuCheckboxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
type MenuRadioGroupProps = ComponentPropsWithoutRef<typeof DropdownMenu.RadioGroup> & {
|
|
43
|
+
ref?: Ref<HTMLDivElement>;
|
|
44
|
+
};
|
|
45
|
+
declare function MenuRadioGroup({ className, ref, ...props }: MenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
interface MenuRadioItemProps extends ComponentPropsWithoutRef<typeof DropdownMenu.RadioItem> {
|
|
47
|
+
label?: ReactNode;
|
|
48
|
+
icon?: ReactNode;
|
|
49
|
+
ref?: Ref<HTMLDivElement>;
|
|
12
50
|
}
|
|
13
|
-
declare function
|
|
14
|
-
|
|
51
|
+
declare function MenuRadioItem({ className, label, icon, children, ref, ...props }: MenuRadioItemProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
type MenuShortcutProps = ComponentPropsWithoutRef<"span"> & {
|
|
53
|
+
ref?: Ref<HTMLSpanElement>;
|
|
54
|
+
};
|
|
55
|
+
declare function MenuShortcut({ className, ref, ...props }: MenuShortcutProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
type MenuSubProps = ComponentPropsWithoutRef<typeof DropdownMenu.Sub>;
|
|
57
|
+
declare function MenuSub(props: MenuSubProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
interface MenuSubTriggerProps extends ComponentPropsWithoutRef<typeof DropdownMenu.SubTrigger> {
|
|
59
|
+
label?: ReactNode;
|
|
60
|
+
icon?: ReactNode;
|
|
15
61
|
ref?: Ref<HTMLDivElement>;
|
|
16
62
|
}
|
|
17
|
-
declare function
|
|
18
|
-
|
|
63
|
+
declare function MenuSubTrigger({ className, label, icon, children, ref, ...props }: MenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
type MenuSubContentProps = ComponentPropsWithoutRef<typeof DropdownMenu.SubContent> & {
|
|
65
|
+
ref?: Ref<HTMLDivElement>;
|
|
66
|
+
};
|
|
67
|
+
declare function MenuSubContent({ className, sideOffset, ref, ...props }: MenuSubContentProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
declare const Menu: typeof MenuRoot & {
|
|
69
|
+
Trigger: typeof MenuTrigger;
|
|
70
|
+
Content: typeof MenuContent;
|
|
71
|
+
Item: typeof MenuItem;
|
|
72
|
+
Group: typeof MenuGroup;
|
|
73
|
+
Separator: typeof MenuSeparator;
|
|
74
|
+
Label: typeof MenuLabel;
|
|
75
|
+
CheckboxItem: typeof MenuCheckboxItem;
|
|
76
|
+
RadioGroup: typeof MenuRadioGroup;
|
|
77
|
+
RadioItem: typeof MenuRadioItem;
|
|
78
|
+
Sub: typeof MenuSub;
|
|
79
|
+
SubTrigger: typeof MenuSubTrigger;
|
|
80
|
+
SubContent: typeof MenuSubContent;
|
|
81
|
+
Shortcut: typeof MenuShortcut;
|
|
82
|
+
};
|
|
83
|
+
export type { MenuCheckboxItemProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuShortcutProps, MenuSubContentProps, MenuSubProps, MenuSubTriggerProps, MenuTriggerProps, };
|
|
84
|
+
export { Menu };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { MenuItemProps, MenuRootProps } from "./Menu";
|
|
2
|
-
export {
|
|
1
|
+
export type { MenuCheckboxItemProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuShortcutProps, MenuSubContentProps, MenuSubProps, MenuSubTriggerProps, MenuTriggerProps, } from "./Menu";
|
|
2
|
+
export { Menu } from "./Menu";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import type { HTMLAttributes, Ref } from "react";
|
|
2
|
+
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
3
3
|
declare const messageboxVariants: (props?: ({
|
|
4
|
-
type?: "
|
|
4
|
+
type?: "basic" | "danger" | "info" | "success" | "warning" | null | undefined;
|
|
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
|
+
children?: ReactNode;
|
|
8
9
|
ref?: Ref<HTMLDivElement>;
|
|
9
10
|
}
|
|
10
|
-
declare function Messagebox({ className, type, message, ref, ...props }: MessageboxProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function Messagebox({ className, type, message, children, ref, ...props }: MessageboxProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export { Messagebox, messageboxVariants };
|
|
@@ -1,26 +1,37 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
title: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
onClose?: () => void;
|
|
10
|
-
ref?: Ref<HTMLDivElement>;
|
|
1
|
+
import { type ReactNode, type Ref } from "react";
|
|
2
|
+
import { type ButtonProps } from "@/components/Button";
|
|
3
|
+
type ModalOpenAutoFocusHandler = (event: Event) => void;
|
|
4
|
+
export type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
5
|
+
export interface ModalButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
|
|
6
|
+
children: ReactNode;
|
|
11
7
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
export interface ModalSurfaceProps {
|
|
9
|
+
title: ReactNode;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
tertiaryButton?: ModalButtonProps;
|
|
13
|
+
secondaryButton?: ModalButtonProps;
|
|
14
|
+
primaryButton?: ModalButtonProps;
|
|
15
|
+
size?: ModalSize;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
closeAriaLabel?: string;
|
|
17
18
|
ref?: Ref<HTMLDivElement>;
|
|
18
19
|
}
|
|
19
|
-
declare function
|
|
20
|
-
export interface
|
|
21
|
-
open
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
declare function ModalSurface({ title, description, children, tertiaryButton, secondaryButton, primaryButton, size, onClose, closeAriaLabel, ref, }: ModalSurfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface ModalProps {
|
|
22
|
+
open?: boolean;
|
|
23
|
+
defaultOpen?: boolean;
|
|
24
|
+
onOpenChange?: (open: boolean) => void;
|
|
25
|
+
title: ReactNode;
|
|
26
|
+
description?: ReactNode;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
tertiaryButton?: ModalButtonProps;
|
|
29
|
+
secondaryButton?: ModalButtonProps;
|
|
30
|
+
primaryButton?: ModalButtonProps;
|
|
31
|
+
size?: ModalSize;
|
|
32
|
+
closeOnInteractOutside?: boolean;
|
|
33
|
+
onOpenAutoFocus?: ModalOpenAutoFocusHandler;
|
|
34
|
+
closeAriaLabel?: string;
|
|
24
35
|
}
|
|
25
|
-
declare function
|
|
26
|
-
export {
|
|
36
|
+
declare function Modal({ open, defaultOpen, onOpenChange, title, description, children, tertiaryButton, secondaryButton, primaryButton, size, closeOnInteractOutside, onOpenAutoFocus, closeAriaLabel, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export { Modal, ModalSurface };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export {
|
|
1
|
+
export type { ModalButtonProps, ModalProps, ModalSize, ModalSurfaceProps } from "./Modal";
|
|
2
|
+
export { Modal, ModalSurface } from "./Modal";
|
|
@@ -5,19 +5,17 @@ declare const navTileVariants: (props?: ({
|
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface NavTileProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof navTileVariants> {
|
|
7
7
|
icon?: ReactNode;
|
|
8
|
-
label?: string;
|
|
9
8
|
ref?: Ref<HTMLButtonElement>;
|
|
10
9
|
}
|
|
11
|
-
declare function NavTile({ className, active, icon,
|
|
10
|
+
declare function NavTile({ className, active, icon, children, ref, ...props }: NavTileProps): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
declare const navItemVariants: (props?: ({
|
|
13
|
-
|
|
12
|
+
active?: boolean | null | undefined;
|
|
14
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
14
|
export interface NavItemProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof navItemVariants> {
|
|
16
15
|
icon?: ReactNode;
|
|
17
|
-
label?: string;
|
|
18
16
|
ref?: Ref<HTMLButtonElement>;
|
|
19
17
|
}
|
|
20
|
-
declare function NavItem({ className,
|
|
18
|
+
declare function NavItem({ className, active, icon, children, ref, ...props }: NavItemProps): import("react/jsx-runtime").JSX.Element;
|
|
21
19
|
export interface NavProps extends HTMLAttributes<HTMLElement> {
|
|
22
20
|
ref?: Ref<HTMLElement>;
|
|
23
21
|
}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import { type HTMLAttributes, type Ref } from "react";
|
|
2
2
|
export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange"> {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* undefined면 컴포넌트를 렌더하지 않음 (최초 로드 시).
|
|
5
|
+
* 한 번 정의된 후 다시 undefined가 되면 직전 값을 유지해서 깜빡임 방지.
|
|
6
|
+
*/
|
|
7
|
+
totalPages?: number;
|
|
8
|
+
page: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
/** 명시적으로 모든 상호작용 비활성화 (refetch 중, 권한 없음 등) */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 페이지 사이즈 셀렉터 옵션. 생략하면 셀렉터가 숨겨짐.
|
|
14
|
+
* @example [{ value: 10, label: "10 each" }, { value: 50, label: "50 each" }]
|
|
15
|
+
*/
|
|
16
|
+
pageSizeOptions?: Array<{
|
|
17
|
+
value: number;
|
|
18
|
+
label: string;
|
|
19
|
+
}>;
|
|
20
|
+
onChange: (page: number) => void;
|
|
21
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
8
22
|
ref?: Ref<HTMLElement>;
|
|
9
23
|
}
|
|
10
|
-
declare function Pagination({ className,
|
|
24
|
+
declare function Pagination({ className, totalPages, page, pageSize, disabled, pageSizeOptions, onChange, onPageSizeChange, ref, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
25
|
export { Pagination };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from "react";
|
|
2
|
+
export interface PanelProps {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
headerAction?: ReactNode;
|
|
8
|
+
side?: "left" | "right";
|
|
9
|
+
size?: "md" | "lg";
|
|
10
|
+
ref?: Ref<HTMLDivElement>;
|
|
11
|
+
}
|
|
12
|
+
declare function Panel({ open, onOpenChange, title, children, headerAction, side, size, ref, }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Panel };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes, Ref } from "react";
|
|
2
|
+
export type ProgressBarColor = "success" | "warning" | "info" | "danger";
|
|
3
|
+
export interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
4
|
+
current: number;
|
|
5
|
+
total: number;
|
|
6
|
+
color?: ProgressBarColor;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
height?: string | number;
|
|
9
|
+
isProgressing?: boolean;
|
|
10
|
+
ref?: Ref<HTMLDivElement>;
|
|
11
|
+
}
|
|
12
|
+
declare function ProgressBar({ className, current, total, color, width, height, isProgressing, ref, style, ...props }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { ProgressBar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import type
|
|
2
|
+
import { type InputHTMLAttributes, type Ref } from "react";
|
|
3
3
|
declare const radioVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "md" | "sm" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof radioVariants> {
|
|
7
7
|
label?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
2
|
+
import type { ComponentProps, Ref, UIEventHandler } from "react";
|
|
3
|
+
type ScrollAreaScrollbars = "both" | "horizontal" | "vertical";
|
|
4
|
+
type ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
5
|
+
onViewportScroll?: UIEventHandler<HTMLDivElement>;
|
|
6
|
+
scrollbars?: ScrollAreaScrollbars;
|
|
7
|
+
viewportClassName?: string;
|
|
8
|
+
viewportRef?: Ref<HTMLDivElement>;
|
|
9
|
+
};
|
|
10
|
+
type ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;
|
|
11
|
+
declare function ScrollArea({ className, children, onViewportScroll, ref, scrollbars, type, viewportClassName, viewportRef, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function ScrollBar({ className, orientation, ref, ...props }: ScrollBarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps };
|
|
14
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
onChange?: (value: string) => void;
|
|
10
|
-
iconOnly?: boolean;
|
|
1
|
+
import type { ToggleGroupItemProps, ToggleGroupSingleProps } from "@radix-ui/react-toggle-group";
|
|
2
|
+
import { type ReactNode, type RefAttributes } from "react";
|
|
3
|
+
type SegmentedSize = "sm" | "md" | "lg" | "icon-sm" | "icon-md" | "icon-lg";
|
|
4
|
+
export interface SegmentedRootProps extends Omit<ToggleGroupSingleProps, "onValueChange" | "type">, RefAttributes<HTMLDivElement> {
|
|
5
|
+
size?: SegmentedSize;
|
|
6
|
+
onValueChange?: (value: string) => void;
|
|
7
|
+
fullWidth?: boolean;
|
|
11
8
|
children?: ReactNode;
|
|
12
|
-
ref?: Ref<HTMLDivElement>;
|
|
13
9
|
}
|
|
14
|
-
declare function SegmentedRoot({ className, size, value, defaultValue,
|
|
15
|
-
export
|
|
16
|
-
value: string;
|
|
10
|
+
declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange, fullWidth, children, ref, ...props }: SegmentedRootProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type SegmentedItemProps = ToggleGroupItemProps & RefAttributes<HTMLButtonElement> & {
|
|
17
12
|
children?: ReactNode;
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
declare function SegmentedItem({ className, value, children, onClick, ref, ...props }: SegmentedItemProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
declare function SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps): import("react/jsx-runtime").JSX.Element;
|
|
21
15
|
export { SegmentedItem, SegmentedRoot };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
+
export type ShortcutKey = string | ReactNode;
|
|
2
3
|
export interface ShortcutProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3
|
-
keys:
|
|
4
|
+
keys: ShortcutKey[];
|
|
4
5
|
ref?: Ref<HTMLSpanElement>;
|
|
5
6
|
}
|
|
6
7
|
declare function Shortcut({ className, keys, ref, ...props }: ShortcutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes, Ref } from "react";
|
|
2
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
ref?: Ref<HTMLDivElement>;
|
|
5
|
+
}
|
|
6
|
+
declare function Skeleton({ className, asChild, ref, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Skeleton };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
2
|
+
import type { ComponentPropsWithoutRef, Ref } from "react";
|
|
3
|
+
export interface SliderProps extends ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
|
|
4
|
+
trackClassName?: string | ((index: number) => string | undefined);
|
|
5
|
+
thumbClassName?: string | ((index: number) => string | undefined);
|
|
6
|
+
ref?: Ref<HTMLSpanElement>;
|
|
7
|
+
}
|
|
8
|
+
declare function Slider({ className, trackClassName, thumbClassName, defaultValue, value, min, max, step, onValueChange, ref, ...props }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Slider };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
1
2
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import { type
|
|
3
|
+
import { type ComponentPropsWithoutRef, type Ref } from "react";
|
|
3
4
|
declare const switchTrackVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
5
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
5
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
export interface SwitchProps extends Omit<
|
|
7
|
+
export interface SwitchProps extends Omit<ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, "asChild" | "children">, VariantProps<typeof switchTrackVariants> {
|
|
7
8
|
label?: string;
|
|
8
|
-
ref?: Ref<
|
|
9
|
+
ref?: Ref<HTMLButtonElement>;
|
|
9
10
|
}
|
|
10
|
-
declare function Switch({ className, label, size,
|
|
11
|
+
declare function Switch({ className, label, size, disabled, id, ref, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export { Switch };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export interface TabRootProps extends
|
|
4
|
-
|
|
5
|
-
defaultValue?: string;
|
|
6
|
-
onChange?: (value: string) => void;
|
|
7
|
-
ref?: Ref<HTMLDivElement>;
|
|
1
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ComponentRef, Ref } from "react";
|
|
3
|
+
export interface TabRootProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
4
|
+
ref?: Ref<ComponentRef<typeof TabsPrimitive.Root>>;
|
|
8
5
|
}
|
|
9
|
-
declare function TabRoot({ className,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
-
export interface TabItemProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof tabItemVariants> {
|
|
14
|
-
value: string;
|
|
15
|
-
ref?: Ref<HTMLButtonElement>;
|
|
6
|
+
declare function TabRoot({ className, ref, ...props }: TabRootProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface TabListProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
|
|
8
|
+
ref?: Ref<ComponentRef<typeof TabsPrimitive.List>>;
|
|
16
9
|
}
|
|
17
|
-
declare function
|
|
18
|
-
export
|
|
10
|
+
declare function TabList({ className, ref, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export interface TabTriggerProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {
|
|
12
|
+
ref?: Ref<ComponentRef<typeof TabsPrimitive.Trigger>>;
|
|
13
|
+
}
|
|
14
|
+
declare function TabTrigger({ className, ref, ...props }: TabTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface TabContentProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Content> {
|
|
16
|
+
ref?: Ref<ComponentRef<typeof TabsPrimitive.Content>>;
|
|
17
|
+
}
|
|
18
|
+
declare function TabContent({ className, ref, ...props }: TabContentProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { TabContent, TabList, TabRoot, TabTrigger };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export {
|
|
1
|
+
export type { TabContentProps, TabListProps, TabRootProps, TabTriggerProps, } from "./Tab";
|
|
2
|
+
export { TabContent, TabList, TabRoot, TabTrigger } from "./Tab";
|
|
@@ -1,29 +1,61 @@
|
|
|
1
|
-
import type { HTMLAttributes, Ref, TdHTMLAttributes, ThHTMLAttributes } from "react";
|
|
1
|
+
import type { HTMLAttributes, ReactNode, Ref, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from "react";
|
|
2
|
+
type TableSize = "sm" | "md";
|
|
2
3
|
export interface TableProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
size?: TableSize;
|
|
5
|
+
tableClassName?: string;
|
|
3
6
|
ref?: Ref<HTMLDivElement>;
|
|
4
7
|
}
|
|
5
|
-
declare function Table({ className, children, ref, ...props }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function Table({ className, tableClassName, size, children, ref, ...props }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
export interface TableHeaderProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
7
10
|
ref?: Ref<HTMLTableSectionElement>;
|
|
8
11
|
}
|
|
9
12
|
declare function TableHeader({ className, children, ref, ...props }: TableHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface TableFooterProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
14
|
+
ref?: Ref<HTMLTableSectionElement>;
|
|
15
|
+
}
|
|
16
|
+
declare function TableFooter({ className, children, ref, ...props }: TableFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface TableCaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
|
|
18
|
+
ref?: Ref<HTMLTableCaptionElement>;
|
|
19
|
+
}
|
|
20
|
+
declare function TableCaption({ className, children, ref, ...props }: TableCaptionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
21
|
export interface TableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
11
22
|
ref?: Ref<HTMLTableSectionElement>;
|
|
12
23
|
}
|
|
13
24
|
declare function TableBody({ className, children, ref, ...props }: TableBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
14
25
|
export interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
26
|
+
size?: TableSize;
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
interactive?: boolean;
|
|
30
|
+
asChild?: boolean;
|
|
15
31
|
ref?: Ref<HTMLTableRowElement>;
|
|
16
32
|
}
|
|
17
|
-
declare function TableRow({ className, children, ref, ...props }: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function TableRow({ className, children, size, selected, disabled, interactive, asChild, ref, onClick, onDoubleClick, onKeyDown, tabIndex, "aria-disabled": ariaDisabled, ...props }: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
18
34
|
export interface TableHeadProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
35
|
+
size?: TableSize;
|
|
19
36
|
sortable?: boolean;
|
|
20
37
|
sortDirection?: "asc" | "desc" | null;
|
|
21
38
|
onSort?: () => void;
|
|
39
|
+
asChild?: boolean;
|
|
22
40
|
ref?: Ref<HTMLTableCellElement>;
|
|
23
41
|
}
|
|
24
|
-
declare function TableHead({ className, children, sortable, sortDirection, onSort, ref, ...props }: TableHeadProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare function TableHead({ className, children, size, sortable, sortDirection, onSort, asChild, ref, ...props }: TableHeadProps): import("react/jsx-runtime").JSX.Element;
|
|
25
43
|
export interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
44
|
+
size?: TableSize;
|
|
45
|
+
asChild?: boolean;
|
|
26
46
|
ref?: Ref<HTMLTableCellElement>;
|
|
27
47
|
}
|
|
28
|
-
declare function TableCell({ className, children, ref, ...props }: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export
|
|
48
|
+
declare function TableCell({ className, children, size, asChild, ref, ...props }: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export interface TableEmptyProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
50
|
+
colSpan: number;
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
ref?: Ref<HTMLTableCellElement>;
|
|
53
|
+
}
|
|
54
|
+
declare function TableEmpty({ className, children, colSpan, ref, ...props }: TableEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export interface TableLoadingProps extends TableHTMLAttributes<HTMLTableSectionElement> {
|
|
56
|
+
colSpan: number;
|
|
57
|
+
rowCount?: number;
|
|
58
|
+
ref?: Ref<HTMLTableSectionElement>;
|
|
59
|
+
}
|
|
60
|
+
declare function TableLoading({ className, colSpan, rowCount, ref, ...props }: TableLoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export { Table, TableBody, TableCaption, TableCell, TableEmpty, TableFooter, TableHead, TableHeader, TableLoading, TableRow, };
|