@aivex/ui 1.1.0-dev.26 → 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.
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Field/Field.d.ts +46 -0
- package/dist/components/Field/index.d.ts +1 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Textbox/Textbox.d.ts +2 -1
- package/dist/index.cjs +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1791 -1624
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ declare const checkboxVariants: (props?: ({
|
|
|
4
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>;
|
|
@@ -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";
|
|
@@ -5,6 +5,7 @@ export interface LogoProps extends Omit<SVGProps<SVGSVGElement>, "color"> {
|
|
|
5
5
|
/** Accessible title. When omitted the logo is decorative (aria-hidden). */
|
|
6
6
|
title?: string;
|
|
7
7
|
}
|
|
8
|
+
export declare const AivexLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare const AiVisionLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export declare const AiVisionTLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export declare const AiVisionSLogo: ({ color, title, ...props }: LogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
size?: "md" | "sm" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -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
|
/** 입력값 전체 삭제 버튼 표시 여부 */
|