@aivex/ui 1.1.0-dev.20 → 1.1.0-dev.22
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 +17 -11
- package/dist/components/Badge/index.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +3 -1
- package/dist/components/Card/Card.d.ts +9 -1
- package/dist/components/Chips/Chips.d.ts +3 -1
- package/dist/components/Dialog/Dialog.d.ts +20 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/InputBase/InputBase.d.ts +7 -6
- package/dist/components/InteractionLayer/InteractionLayer.d.ts +3 -1
- 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/Panel/Panel.d.ts +13 -0
- package/dist/components/Panel/index.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +8 -0
- package/dist/components/ScrollArea/index.d.ts +2 -0
- 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/Tag/Tag.d.ts +2 -1
- 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 +3 -3
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/index.cjs +21 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +12631 -10718
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tokens/tokens.css +13 -0
- package/package.json +8 -3
- package/dist/components/Alert/Alert.d.ts +0 -16
- package/dist/components/Alert/index.d.ts +0 -2
- package/dist/theme.css +0 -154
package/README.md
CHANGED
|
@@ -31,19 +31,15 @@ export function Example() {
|
|
|
31
31
|
|
|
32
32
|
The generated styles are namespaced with the `aivex:` Tailwind prefix and `--aivex-*` CSS variables to avoid collisions with application styles.
|
|
33
33
|
|
|
34
|
-
### 2. Using design tokens in your own code
|
|
34
|
+
### 2. Using design tokens in your own code
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
`styles.css` also registers the Aivex design tokens into Tailwind, so you can use them directly in your own classes:
|
|
37
37
|
|
|
38
38
|
```css
|
|
39
39
|
/* global.css */
|
|
40
|
-
@import "tailwindcss";
|
|
41
40
|
@import "@aivex/ui/styles.css";
|
|
42
|
-
@import "@aivex/ui/theme.css";
|
|
43
41
|
```
|
|
44
42
|
|
|
45
|
-
This registers all design tokens into your Tailwind so you can use them directly:
|
|
46
|
-
|
|
47
43
|
```tsx
|
|
48
44
|
<div className="bg-bg-primary border border-border-default rounded-md p-xl">
|
|
49
45
|
<h1 className="text-text-primary text-heading-md">Title</h1>
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
3
3
|
declare const avatarVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
5
|
-
type?: "
|
|
4
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
5
|
+
type?: "image" | "round" | "square" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
export interface AvatarProps extends Omit<HTMLAttributes<
|
|
7
|
+
export interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children">, VariantProps<typeof avatarVariants> {
|
|
8
8
|
src?: string;
|
|
9
9
|
alt?: string;
|
|
10
10
|
initials?: string;
|
|
11
11
|
icon?: ReactNode;
|
|
12
|
-
|
|
12
|
+
name?: string;
|
|
13
|
+
bgColor?: string;
|
|
14
|
+
showTooltip?: boolean;
|
|
15
|
+
/** Fallback render delay in ms (only applies when `src` is provided). Default: 600ms. */
|
|
16
|
+
delayMs?: number;
|
|
17
|
+
ref?: Ref<HTMLSpanElement>;
|
|
13
18
|
}
|
|
14
|
-
declare function Avatar({ className, size, type, src, alt, initials, icon, ref, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function Avatar({ className, size, type, src, alt, initials, icon, name, bgColor, showTooltip, delayMs, style, ref, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
15
20
|
export { Avatar, avatarVariants };
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
type BadgeVariant = "filled" | "outline";
|
|
4
|
+
type BadgeColor = "blue" | "gray" | "red" | "green" | "yellow" | "orange" | "lime" | "teal" | "cyan" | "indigo" | "violet" | "pink";
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
shape?: "rect" | "pill" | null | undefined;
|
|
7
|
+
treatment?: "filled" | "outline" | null | undefined;
|
|
8
|
+
size?: "xs" | "sm" | "md" | null | undefined;
|
|
9
|
+
color?: "blue" | "cyan" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "red" | "teal" | "violet" | "yellow" | null | undefined;
|
|
8
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
-
export interface
|
|
11
|
+
export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
12
|
+
variant?: BadgeVariant;
|
|
13
|
+
rounded?: boolean;
|
|
14
|
+
size?: "xs" | "sm" | "md";
|
|
15
|
+
color?: BadgeColor;
|
|
10
16
|
children?: ReactNode;
|
|
11
17
|
ref?: Ref<HTMLSpanElement>;
|
|
12
18
|
}
|
|
13
|
-
declare function
|
|
14
|
-
declare const
|
|
19
|
+
declare function Badge({ className, variant, rounded, size, color, children, ref, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare const dotVariants: (props?: ({
|
|
15
21
|
type?: "essential" | "new" | null | undefined;
|
|
16
22
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
17
23
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
|
-
export interface
|
|
24
|
+
export interface DotProps extends HTMLAttributes<HTMLSpanElement>, VariantProps<typeof dotVariants> {
|
|
19
25
|
ref?: Ref<HTMLSpanElement>;
|
|
20
26
|
}
|
|
21
|
-
declare function
|
|
22
|
-
export {
|
|
27
|
+
declare function Dot({ className, type, size, ref, ...props }: DotProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export { Badge, badgeVariants, Dot, dotVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export {
|
|
1
|
+
export type { BadgeProps, DotProps } from "./Badge";
|
|
2
|
+
export { Badge, badgeVariants, Dot, dotVariants } from "./Badge";
|
|
@@ -11,8 +11,10 @@ declare function buttonVariants({ variant, color, size, className, }?: ButtonVar
|
|
|
11
11
|
}): string;
|
|
12
12
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color">, ButtonVariantProps {
|
|
13
13
|
asChild?: boolean;
|
|
14
|
+
startContent?: ReactNode;
|
|
15
|
+
endContent?: ReactNode;
|
|
14
16
|
children?: ReactNode;
|
|
15
17
|
ref?: Ref<HTMLButtonElement>;
|
|
16
18
|
}
|
|
17
|
-
declare function Button({ className, variant, color, size, asChild, ref, children, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function Button({ className, variant, color, size, asChild, startContent, endContent, ref, children, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
18
20
|
export { Button, buttonVariants };
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
2
|
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** 호버·포커스·pressed 인터랙션 스타일을 추가합니다. 클릭/링크는 호출측에서 직접 연결하세요. */
|
|
4
|
+
interactive?: boolean;
|
|
5
|
+
/** 선택된 상태. brand 색 border + brand-subtle 배경을 적용합니다. */
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
/** 비활성 상태. 인터랙션 스타일과 이벤트 핸들러를 비활성화합니다. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** 자식 컴포넌트(Link 등)에 Card 스타일과 상태를 위임합니다. */
|
|
10
|
+
asChild?: boolean;
|
|
3
11
|
children?: ReactNode;
|
|
4
12
|
ref?: Ref<HTMLDivElement>;
|
|
5
13
|
}
|
|
6
|
-
declare function Card({ className, children, ref, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function Card({ className, interactive, selected, disabled, asChild, children, ref, onClick, onDoubleClick, onKeyDown, tabIndex, "aria-disabled": ariaDisabled, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
7
15
|
export { Card };
|
|
@@ -7,9 +7,11 @@ declare const chipsVariants: (props?: ({
|
|
|
7
7
|
active?: boolean | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export interface ChipsProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type">, VariantProps<typeof chipsVariants> {
|
|
10
|
+
startContent?: ReactNode;
|
|
11
|
+
endContent?: ReactNode;
|
|
10
12
|
children?: ReactNode;
|
|
11
13
|
ref?: Ref<HTMLButtonElement>;
|
|
12
14
|
defaultActive?: boolean;
|
|
13
15
|
}
|
|
14
|
-
declare function Chips({ className, shape, size, type, active, defaultActive, children, ref, onClick, ...props }: ChipsProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function Chips({ className, shape, size, type, active, defaultActive, startContent, endContent, children, ref, onClick, ...props }: ChipsProps): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export { Chips, chipsVariants };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as RadixDialog from "@radix-ui/react-alert-dialog";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
3
|
+
import { type ButtonProps } from "@/components/Button";
|
|
4
|
+
export type DialogVariant = "default" | "warning";
|
|
5
|
+
export interface DialogButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export type DialogConfirmButtonProps = DialogButtonProps;
|
|
9
|
+
export interface DialogProps extends Omit<ComponentPropsWithoutRef<typeof RadixDialog.Root>, "children"> {
|
|
10
|
+
variant?: DialogVariant;
|
|
11
|
+
title: ReactNode;
|
|
12
|
+
description?: ReactNode;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
cancelButton?: DialogButtonProps;
|
|
15
|
+
confirmButton?: DialogConfirmButtonProps;
|
|
16
|
+
showIcon?: boolean;
|
|
17
|
+
ref?: Ref<HTMLDivElement>;
|
|
18
|
+
}
|
|
19
|
+
declare function Dialog({ open, defaultOpen, onOpenChange, variant, title, description, children, cancelButton, confirmButton, showIcon, ref, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export { Dialog };
|
|
@@ -1,7 +1,7 @@
|
|
|
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?: "
|
|
4
|
+
size?: "xs" | "sm" | "md" | null | undefined;
|
|
5
5
|
shape?: "rounded" | "rectangle" | 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> {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
declare const inputContainerVariants: (props?: ({
|
|
3
|
-
state?: "default" | "
|
|
3
|
+
state?: "disabled" | "default" | "filled" | "error" | "focused" | null | undefined;
|
|
4
4
|
size?: "sm" | "md" | null | undefined;
|
|
5
|
-
layout?: "wrap" | "
|
|
5
|
+
layout?: "wrap" | "block" | "inline" | 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 };
|
|
@@ -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?: "danger" | "
|
|
4
|
+
type?: "danger" | "warning" | "basic" | "info" | "success" | 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";
|
|
@@ -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 @@
|
|
|
1
|
+
export { Panel } from "./Panel";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes, Ref } from "react";
|
|
2
|
+
export type ProgressBarColor = "success" | "warning" | "info" | "danger" | "neutral" | "green" | "yellow" | "blue" | "gray";
|
|
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 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
type ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root>;
|
|
4
|
+
type ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;
|
|
5
|
+
declare function ScrollArea({ className, children, ref, type, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function ScrollBar({ className, orientation, ref, ...props }: ScrollBarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { ScrollAreaProps, ScrollBarProps };
|
|
8
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -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 };
|
|
@@ -5,11 +5,12 @@ declare const tagVariants: (props?: ({
|
|
|
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 };
|
|
@@ -9,10 +9,10 @@ export interface TextboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>
|
|
|
9
9
|
/** 입력값 전체 삭제 버튼 표시 여부 */
|
|
10
10
|
clearable?: boolean;
|
|
11
11
|
/** 인풋 좌측 슬롯 */
|
|
12
|
-
|
|
12
|
+
startContent?: ReactNode;
|
|
13
13
|
/** 인풋 우측 슬롯 (clearable=true 이고 값이 있으면 삭제 버튼이 추가됨) */
|
|
14
|
-
|
|
14
|
+
endContent?: ReactNode;
|
|
15
15
|
ref?: Ref<HTMLInputElement>;
|
|
16
16
|
}
|
|
17
|
-
declare function Textbox({ className, label, helperText, error, disabled, clearable,
|
|
17
|
+
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
18
|
export { inputContainerVariants as inputWrapperVariants, Textbox };
|
|
@@ -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 };
|