@aivex/ui 1.1.0-dev.9 → 1.2.0-dev.1
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/index.d.ts +19 -2
- package/dist/components/DataGrid/DataGrid.d.ts +92 -0
- package/dist/components/DataGrid/index.d.ts +4 -0
- package/dist/components/DatePicker/Calendar.d.ts +27 -0
- package/dist/components/DatePicker/DatePicker.d.ts +119 -0
- package/dist/components/DatePicker/date.d.ts +24 -0
- package/dist/components/DatePicker/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/Popover/Popover.d.ts +47 -0
- package/dist/components/Popover/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/ToggleButton/ToggleButton.d.ts +17 -0
- package/dist/components/ToggleButton/index.d.ts +2 -0
- 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 +15 -3
- package/dist/index.js +14771 -4897
- 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/components/Chips/Chips.d.ts +0 -15
- package/dist/theme.css +0 -154
|
@@ -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, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { TableBodyProps, TableCellProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, } from "./Table";
|
|
2
|
-
export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./Table";
|
|
1
|
+
export type { TableBodyProps, TableCaptionProps, TableCellProps, TableEmptyProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableLoadingProps, TableProps, TableRowProps, } from "./Table";
|
|
2
|
+
export { Table, TableBody, TableCaption, TableCell, TableEmpty, TableFooter, TableHead, TableHeader, TableLoading, TableRow, } from "./Table";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
3
3
|
declare const tagVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "md" | "sm" | null | undefined;
|
|
5
5
|
type?: "default" | "error" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface TagProps extends Omit<HTMLAttributes<HTMLDivElement>, "type">, VariantProps<typeof tagVariants> {
|
|
8
|
+
startContent?: ReactNode;
|
|
8
9
|
showIcon?: boolean;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
onRemove?: () => void;
|
|
11
12
|
children?: ReactNode;
|
|
12
13
|
ref?: Ref<HTMLDivElement>;
|
|
13
14
|
}
|
|
14
|
-
declare function Tag({ className, size, type, showIcon, disabled, onRemove, children, ref, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function Tag({ className, size, type, startContent, showIcon, disabled, onRemove, children, ref, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export { Tag, tagVariants };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type InputHTMLAttributes, type Ref } from "react";
|
|
1
|
+
import { type InputHTMLAttributes, type ReactNode, type Ref } from "react";
|
|
2
2
|
export interface TagboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "onChange" | "onPaste"> {
|
|
3
3
|
size?: "sm" | "md";
|
|
4
4
|
label?: string;
|
|
@@ -13,7 +13,13 @@ export interface TagboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
13
13
|
onPaste?: (e: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
14
14
|
/** 태그 유효성 검사. false 반환 시 인풋이 error 상태로 전환 */
|
|
15
15
|
validate?: (tag: string) => boolean;
|
|
16
|
+
renderTag?: (tag: string, index: number, options: {
|
|
17
|
+
remove: () => void;
|
|
18
|
+
size: "sm" | "md";
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
type: "default" | "error";
|
|
21
|
+
}) => ReactNode;
|
|
16
22
|
ref?: Ref<HTMLInputElement>;
|
|
17
23
|
}
|
|
18
|
-
declare function Tagbox({ className, size, label, helperText, error, disabled, value, defaultValue, onChange, parsePaste, validate, placeholder, id, ref, onBlur, onCompositionEnd, onCompositionStart, onFocus, onKeyDown, onPaste, ...props }: TagboxProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function Tagbox({ className, size, label, helperText, error, disabled, readOnly, value, defaultValue, onChange, parsePaste, validate, renderTag, placeholder, id, ref, onBlur, onCompositionEnd, onCompositionStart, onFocus, onKeyDown, onPaste, ...props }: TagboxProps): import("react/jsx-runtime").JSX.Element;
|
|
19
25
|
export { Tagbox };
|
|
@@ -10,10 +10,10 @@ export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
10
10
|
/** true 이면 높이를 고정하여 resize 비활성화 */
|
|
11
11
|
fixedHeight?: boolean;
|
|
12
12
|
/** Textarea 좌측 슬롯 */
|
|
13
|
-
|
|
13
|
+
startContent?: ReactNode;
|
|
14
14
|
/** Textarea 우측 슬롯 */
|
|
15
|
-
|
|
15
|
+
endContent?: ReactNode;
|
|
16
16
|
ref?: Ref<HTMLTextAreaElement>;
|
|
17
17
|
}
|
|
18
|
-
declare function Textarea({ className, label, helperText, error, disabled, size, minHeight, fixedHeight,
|
|
18
|
+
declare function Textarea({ className, label, helperText, error, disabled, size, minHeight, fixedHeight, startContent, endContent, id, ref, onFocus, onBlur, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export { Textarea };
|
|
@@ -2,17 +2,18 @@ import type { InputHTMLAttributes, ReactNode, Ref } from "react";
|
|
|
2
2
|
import { inputContainerVariants } from "@/components/InputBase";
|
|
3
3
|
export interface TextboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
4
4
|
size?: "sm" | "md";
|
|
5
|
+
/** @deprecated <Field><FieldLabel>…</FieldLabel><FieldControl><Textbox/></FieldControl></Field> 를 사용하세요. */
|
|
5
6
|
label?: string;
|
|
6
|
-
/**
|
|
7
|
+
/** @deprecated Field 의 <FieldDescription> / <FieldError> 를 사용하세요. */
|
|
7
8
|
helperText?: string;
|
|
8
9
|
error?: boolean;
|
|
9
10
|
/** 입력값 전체 삭제 버튼 표시 여부 */
|
|
10
11
|
clearable?: boolean;
|
|
11
12
|
/** 인풋 좌측 슬롯 */
|
|
12
|
-
|
|
13
|
+
startContent?: ReactNode;
|
|
13
14
|
/** 인풋 우측 슬롯 (clearable=true 이고 값이 있으면 삭제 버튼이 추가됨) */
|
|
14
|
-
|
|
15
|
+
endContent?: ReactNode;
|
|
15
16
|
ref?: Ref<HTMLInputElement>;
|
|
16
17
|
}
|
|
17
|
-
declare function Textbox({ className, label, helperText, error, disabled, clearable,
|
|
18
|
+
declare function Textbox({ className, label, helperText, error, disabled, clearable, startContent, endContent, size, id, ref, value, defaultValue, onChange, onFocus, onBlur, ...props }: TextboxProps): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export { inputContainerVariants as inputWrapperVariants, Textbox };
|
|
@@ -2,7 +2,7 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import type { HTMLAttributes, Ref } from "react";
|
|
3
3
|
import { type ExternalToast, type ToasterProps, toast } from "sonner";
|
|
4
4
|
declare const toastVariants: (props?: ({
|
|
5
|
-
type?: "
|
|
5
|
+
type?: "danger" | "default" | "success" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ToastProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof toastVariants> {
|
|
8
8
|
open?: boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { type ButtonHTMLAttributes, type ReactNode, type Ref } from "react";
|
|
3
|
+
declare const toggleButtonVariants: (props?: ({
|
|
4
|
+
shape?: "rectangle" | "rounded" | null | undefined;
|
|
5
|
+
size?: "icon-md" | "icon-sm" | "md" | "sm" | null | undefined;
|
|
6
|
+
variant?: "ghost" | "outline" | null | undefined;
|
|
7
|
+
active?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
export interface ToggleButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof toggleButtonVariants> {
|
|
10
|
+
startContent?: ReactNode;
|
|
11
|
+
endContent?: ReactNode;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
ref?: Ref<HTMLButtonElement>;
|
|
14
|
+
defaultActive?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function ToggleButton({ className, shape, size, variant, active, defaultActive, startContent, endContent, children, ref, onClick, type, ...props }: ToggleButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { ToggleButton, toggleButtonVariants };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import
|
|
2
|
+
import type { ReactNode, Ref } from "react";
|
|
3
3
|
declare const tooltipContentVariants: (props?: ({
|
|
4
4
|
placement?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
export interface TooltipProps extends
|
|
6
|
+
export interface TooltipProps extends VariantProps<typeof tooltipContentVariants> {
|
|
7
7
|
content: ReactNode;
|
|
8
8
|
children: ReactNode;
|
|
9
|
-
|
|
9
|
+
disabled?: boolean;
|
|
10
10
|
ref?: Ref<HTMLDivElement>;
|
|
11
11
|
}
|
|
12
|
-
declare function Tooltip({
|
|
12
|
+
declare function Tooltip({ content, children, placement, disabled, ref }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export { Tooltip, tooltipContentVariants };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ElementType, HTMLAttributes, ReactNode, Ref } from "react";
|
|
3
3
|
declare const typographyVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "body-lg-medium" | "body-lg-regular" | "body-md-medium" | "body-md-regular" | "body-sm-medium" | "body-sm-regular" | "caption-md" | "display-lg" | "display-md" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xl" | "heading-xs" | "label-lg" | "label-md" | "label-sm" | "label-xl" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface TypographyProps extends HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
7
7
|
as?: ElementType;
|
|
@@ -3,9 +3,15 @@ export interface UploadAreaProps extends Omit<HTMLAttributes<HTMLDivElement>, "o
|
|
|
3
3
|
formats?: string[];
|
|
4
4
|
maxSize?: string;
|
|
5
5
|
accept?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
formatsLabel?: string;
|
|
8
|
+
maxSizeLabel?: string;
|
|
9
|
+
fileButtonLabel?: string;
|
|
10
|
+
folderButtonLabel?: string;
|
|
11
|
+
showFolder?: boolean;
|
|
6
12
|
onFileSelect?: (files: FileList) => void;
|
|
7
13
|
onFolderSelect?: (files: FileList) => void;
|
|
8
14
|
ref?: Ref<HTMLDivElement>;
|
|
9
15
|
}
|
|
10
|
-
declare function UploadArea({ className, formats, maxSize, accept, onFileSelect, onFolderSelect, ref, ...props }: UploadAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function UploadArea({ className, formats, maxSize, accept, title, formatsLabel, maxSizeLabel, fileButtonLabel, folderButtonLabel, showFolder, onFileSelect, onFolderSelect, ref, ...props }: UploadAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
11
17
|
export { UploadArea };
|