@aivex/ui 1.1.0-dev.25 → 1.1.0-dev.27

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.
@@ -1,7 +1,7 @@
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?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
4
+ size?: "2xl" | "lg" | "md" | "sm" | "xl" | "xs" | "xxs" | null | undefined;
5
5
  type?: "image" | "round" | "square" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children">, VariantProps<typeof avatarVariants> {
@@ -3,9 +3,9 @@ import type { HTMLAttributes, ReactNode, Ref } from "react";
3
3
  type BadgeVariant = "filled" | "outline";
4
4
  type BadgeColor = "blue" | "gray" | "red" | "green" | "yellow" | "orange" | "lime" | "teal" | "cyan" | "indigo" | "violet" | "pink";
5
5
  declare const badgeVariants: (props?: ({
6
- shape?: "rect" | "pill" | null | undefined;
6
+ shape?: "pill" | "rect" | null | undefined;
7
7
  treatment?: "filled" | "outline" | null | undefined;
8
- size?: "xs" | "sm" | "md" | null | undefined;
8
+ size?: "md" | "sm" | "xs" | null | undefined;
9
9
  color?: "blue" | "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"> {
@@ -19,7 +19,7 @@ export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "color
19
19
  declare function Badge({ className, variant, rounded, size, color, children, ref, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
20
20
  declare const dotVariants: (props?: ({
21
21
  type?: "essential" | "new" | null | undefined;
22
- size?: "sm" | "md" | "lg" | null | undefined;
22
+ size?: "lg" | "md" | "sm" | null | undefined;
23
23
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
24
24
  export interface DotProps extends HTMLAttributes<HTMLSpanElement>, VariantProps<typeof dotVariants> {
25
25
  ref?: Ref<HTMLSpanElement>;
@@ -1,9 +1,9 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import type { ButtonHTMLAttributes, ReactNode, Ref } from "react";
3
3
  declare const buttonVariantStyles: (props?: ({
4
- variant?: "solid" | "outline" | "ghost" | null | undefined;
4
+ variant?: "ghost" | "outline" | "solid" | null | undefined;
5
5
  color?: "danger" | "primary" | "secondary" | null | undefined;
6
- size?: "sm" | "md" | "lg" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
6
+ size?: "icon-lg" | "icon-md" | "icon-sm" | "lg" | "md" | "sm" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type ButtonVariantProps = VariantProps<typeof buttonVariantStyles>;
9
9
  declare function buttonVariants({ variant, color, size, className, }?: ButtonVariantProps & {
@@ -1,9 +1,10 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import { type InputHTMLAttributes, type Ref } from "react";
3
3
  declare const checkboxVariants: (props?: ({
4
- size?: "sm" | "md" | null | undefined;
4
+ size?: "md" | "sm" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof checkboxVariants> {
7
+ /** @deprecated <Field orientation="horizontal"><FieldControl><Checkbox/></FieldControl><FieldLabel>…</FieldLabel></Field> 를 사용하세요. */
7
8
  label?: string;
8
9
  indeterminate?: boolean;
9
10
  ref?: Ref<HTMLInputElement>;
@@ -1,9 +1,9 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import { type ButtonHTMLAttributes, type ReactNode, type Ref } from "react";
3
3
  declare const chipsVariants: (props?: ({
4
- shape?: "rounded" | "rectangle" | null | undefined;
5
- size?: "sm" | "md" | null | undefined;
6
- type?: "text" | "icon" | null | undefined;
4
+ shape?: "rectangle" | "rounded" | null | undefined;
5
+ size?: "md" | "sm" | null | undefined;
6
+ type?: "icon" | "text" | null | undefined;
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> {
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import type { HTMLAttributes, Ref } from "react";
3
3
  declare const dividerVariants: (props?: ({
4
- strength?: "bold" | "basic" | null | undefined;
4
+ strength?: "basic" | "bold" | null | undefined;
5
5
  direction?: "horizontal" | "vertical" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface DividerProps extends HTMLAttributes<HTMLHRElement>, VariantProps<typeof dividerVariants> {
@@ -0,0 +1,46 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import { type HTMLAttributes, type LabelHTMLAttributes, type ReactNode, type Ref } from "react";
3
+ declare const fieldVariants: (props?: ({
4
+ orientation?: "horizontal" | "vertical" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface FieldProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof fieldVariants> {
7
+ /** 외부에서 id를 지정. 없으면 자동 생성 */
8
+ fieldId?: string;
9
+ invalid?: boolean;
10
+ disabled?: boolean;
11
+ ref?: Ref<HTMLDivElement>;
12
+ }
13
+ /**
14
+ * 폼 필드 래퍼. 라벨/설명/에러를 어떤 컨트롤(Textbox, Checkbox 등)과도
15
+ * 조합할 수 있게 하는 합성 프리미티브. react-hook-form 등 특정 폼 라이브러리에
16
+ * 종속되지 않으며, 컨텍스트로 id/aria를 자동 연결한다.
17
+ */
18
+ declare function Field({ className, orientation, fieldId, invalid, disabled, ref, ...props }: FieldProps): import("react/jsx-runtime").JSX.Element;
19
+ export interface FieldLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
20
+ ref?: Ref<HTMLLabelElement>;
21
+ }
22
+ declare function FieldLabel({ className, ref, ...props }: FieldLabelProps): import("react/jsx-runtime").JSX.Element;
23
+ export interface FieldContentProps extends HTMLAttributes<HTMLDivElement> {
24
+ ref?: Ref<HTMLDivElement>;
25
+ }
26
+ /**
27
+ * 가로 배치(Checkbox 등)에서 라벨과 설명을 세로로 묶는 그룹.
28
+ */
29
+ declare function FieldContent({ className, ref, ...props }: FieldContentProps): import("react/jsx-runtime").JSX.Element;
30
+ export interface FieldControlProps {
31
+ children: ReactNode;
32
+ }
33
+ /**
34
+ * 컨트롤(단일 요소)을 감싸 id/aria를 자동 주입한다.
35
+ * 자식은 id/aria-* 를 내부 input 으로 전달하는 컴포넌트여야 한다(Textbox, Checkbox 등).
36
+ */
37
+ declare function FieldControl({ children }: FieldControlProps): import("react/jsx-runtime").JSX.Element;
38
+ export interface FieldDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
39
+ ref?: Ref<HTMLParagraphElement>;
40
+ }
41
+ declare function FieldDescription({ className, ref, ...props }: FieldDescriptionProps): import("react/jsx-runtime").JSX.Element;
42
+ export interface FieldErrorProps extends HTMLAttributes<HTMLParagraphElement> {
43
+ ref?: Ref<HTMLParagraphElement>;
44
+ }
45
+ declare function FieldError({ className, children, ref, ...props }: FieldErrorProps): import("react/jsx-runtime").JSX.Element | null;
46
+ export { Field, FieldContent, FieldControl, FieldDescription, FieldError, FieldLabel, fieldVariants, };
@@ -0,0 +1 @@
1
+ export * from "./Field";
@@ -281,4 +281,6 @@ export declare const MinimizeWindowIcon: ({ size, color }: IconProps) => import(
281
281
  export declare const TaskQueueIcon: ({ size, color }: IconProps) => import("react/jsx-runtime").JSX.Element;
282
282
  export declare const ShrinkIcon: ({ size, color }: IconProps) => import("react/jsx-runtime").JSX.Element;
283
283
  export declare const ExpandIcon: ({ size, color }: IconProps) => import("react/jsx-runtime").JSX.Element;
284
+ export declare const AiVotIcon: ({ size, color }: IconProps) => import("react/jsx-runtime").JSX.Element;
285
+ export declare const AiViewIcon: ({ size, color }: IconProps) => import("react/jsx-runtime").JSX.Element;
284
286
  export {};
@@ -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?: "xs" | "sm" | "md" | null | undefined;
5
- shape?: "rounded" | "rectangle" | null | undefined;
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,8 +1,8 @@
1
1
  import type { ReactNode } from "react";
2
2
  declare const inputContainerVariants: (props?: ({
3
- state?: "disabled" | "default" | "filled" | "error" | "focused" | null | undefined;
4
- size?: "sm" | "md" | null | undefined;
5
- layout?: "wrap" | "block" | "inline" | null | undefined;
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
8
  export type InputState = "default" | "focused" | "error" | "disabled" | "filled";
@@ -0,0 +1,16 @@
1
+ import 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: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const AiVisionLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const AiVisionTLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const AiVisionSLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const AiVisionMLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const AiVDataLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const AiVOpsLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const AiVotLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const AiViewLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import type { HTMLAttributes, ReactNode, Ref } from "react";
3
3
  declare const messageboxVariants: (props?: ({
4
- type?: "danger" | "basic" | "warning" | "info" | "success" | null | undefined;
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;
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
- import type { InputHTMLAttributes, Ref } from "react";
2
+ import { type InputHTMLAttributes, type Ref } from "react";
3
3
  declare const radioVariants: (props?: ({
4
- size?: "sm" | "md" | null | undefined;
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;
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import { type InputHTMLAttributes, type Ref } from "react";
3
3
  declare const switchTrackVariants: (props?: ({
4
- size?: "sm" | "md" | "lg" | null | undefined;
4
+ size?: "lg" | "md" | "sm" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof switchTrackVariants> {
7
7
  label?: string;
@@ -1,7 +1,7 @@
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?: "sm" | "md" | null | undefined;
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> {
@@ -2,8 +2,9 @@ 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
  /** 입력값 전체 삭제 버튼 표시 여부 */
@@ -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?: "default" | "danger" | "success" | null | undefined;
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;
@@ -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?: "display-lg" | "display-md" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "body-lg-regular" | "body-lg-medium" | "body-md-regular" | "body-md-medium" | "body-sm-regular" | "body-sm-medium" | "label-xl" | "label-lg" | "label-md" | "label-sm" | "caption-md" | null | undefined;
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;