@aivex/ui 1.1.0-dev.20 → 1.1.0-dev.21

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.
@@ -4,12 +4,17 @@ declare const avatarVariants: (props?: ({
4
4
  size?: "sm" | "md" | "lg" | "xxs" | "xs" | "xl" | "2xl" | null | undefined;
5
5
  type?: "round" | "square" | "image" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export interface AvatarProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof avatarVariants> {
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
- ref?: Ref<HTMLDivElement>;
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,16 +1,22 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import type { HTMLAttributes, ReactNode, Ref } from "react";
3
- declare const badgeLabelVariants: (props?: ({
4
- radius?: "circle" | "rect" | null | undefined;
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?: "outline" | "filled" | null | undefined;
5
8
  size?: "sm" | "md" | "xs" | null | undefined;
6
- style?: "borderless" | "border" | null | undefined;
7
- color?: "blue" | "gray" | "red" | "green" | "yellow" | "orange" | "lime" | "teal" | "cyan" | "indigo" | "violet" | "pink" | 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 BadgeLabelProps extends Omit<HTMLAttributes<HTMLSpanElement>, "style" | "color">, VariantProps<typeof badgeLabelVariants> {
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 BadgeLabel({ className, radius, size, style, color, children, ref, ...props }: BadgeLabelProps): import("react/jsx-runtime").JSX.Element;
19
+ declare function Badge({ className, variant, rounded, size, color, children, ref, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
14
20
  declare const badgeDotVariants: (props?: ({
15
21
  type?: "essential" | "new" | null | undefined;
16
22
  size?: "sm" | "md" | "lg" | null | undefined;
@@ -19,4 +25,4 @@ export interface BadgeDotProps extends HTMLAttributes<HTMLSpanElement>, VariantP
19
25
  ref?: Ref<HTMLSpanElement>;
20
26
  }
21
27
  declare function BadgeDot({ className, type, size, ref, ...props }: BadgeDotProps): import("react/jsx-runtime").JSX.Element;
22
- export { BadgeDot, BadgeLabel, badgeDotVariants, badgeLabelVariants };
28
+ export { Badge, BadgeDot, badgeDotVariants, badgeVariants };
@@ -1,2 +1,2 @@
1
- export type { BadgeDotProps, BadgeLabelProps } from "./Badge";
2
- export { BadgeDot, BadgeLabel, badgeDotVariants, badgeLabelVariants } from "./Badge";
1
+ export type { BadgeDotProps, BadgeProps } from "./Badge";
2
+ export { Badge, BadgeDot, badgeDotVariants, badgeVariants } from "./Badge";
@@ -1,7 +1,11 @@
1
1
  import type { HTMLAttributes, ReactNode, Ref } from "react";
2
2
  export interface CardProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** 호버·포커스·active 인터랙션 스타일을 추가합니다. 클릭/링크는 호출측에서 직접 연결하세요. */
4
+ interactive?: boolean;
5
+ /** 선택된 상태. brand 색 border + brand-subtle 배경을 적용합니다. */
6
+ selected?: boolean;
3
7
  children?: ReactNode;
4
8
  ref?: Ref<HTMLDivElement>;
5
9
  }
6
- declare function Card({ className, children, ref, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function Card({ className, interactive, selected, children, ref, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
7
11
  export { Card };
@@ -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
4
  type?: "danger" | "basic" | "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 };