@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
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?: "2xl" | "lg" | "md" | "sm" | "xl" | "xs" | "xxs" | 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" | "brand";
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
shape?: "pill" | "rect" | null | undefined;
|
|
7
|
+
treatment?: "filled" | "outline" | null | undefined;
|
|
8
|
+
size?: "md" | "sm" | "xs" | null | undefined;
|
|
9
|
+
color?: "blue" | "brand" | "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
|
-
size?: "
|
|
22
|
+
size?: "lg" | "md" | "sm" | 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";
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface BreadCrumbItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
-
label: string;
|
|
4
|
-
href?: string;
|
|
5
|
-
current?: boolean;
|
|
6
|
-
ref?: Ref<HTMLAnchorElement>;
|
|
7
|
-
}
|
|
8
|
-
declare function BreadCrumbItem({ className, label, href, current, ref, ...props }: BreadCrumbItemProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { ElementType, HTMLAttributes, ReactNode, Ref } from "react";
|
|
9
2
|
export interface BreadCrumbItemDef {
|
|
10
|
-
label:
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* 렌더링할 컴포넌트를 직접 지정합니다.
|
|
6
|
+
* 예: Next.js `Link`, React Router `NavLink` 등
|
|
7
|
+
* 지정하지 않으면 href 유무에 따라 <a> 또는 <button>으로 자동 선택됩니다.
|
|
8
|
+
*/
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
/** 있으면 <a href> 로 렌더링 (시맨틱 / 새 탭 열기 지원) */
|
|
11
11
|
href?: string;
|
|
12
|
-
|
|
12
|
+
/** 클릭 핸들러 (SPA 라우팅 등) */
|
|
13
|
+
onClick?: () => void;
|
|
13
14
|
}
|
|
14
15
|
export interface BreadCrumbProps extends HTMLAttributes<HTMLElement> {
|
|
15
16
|
items: BreadCrumbItemDef[];
|
|
17
|
+
/**
|
|
18
|
+
* 이 값을 초과하면 중간 항목을 ··· 으로 축소합니다.
|
|
19
|
+
* 예: maxItems=3이고 항목이 5개면 → 첫번째 / ··· / 마지막
|
|
20
|
+
*/
|
|
21
|
+
maxItems?: number;
|
|
16
22
|
ref?: Ref<HTMLElement>;
|
|
17
23
|
}
|
|
18
|
-
declare function BreadCrumb({ className, items, ref, ...props }: BreadCrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export { BreadCrumb
|
|
24
|
+
declare function BreadCrumb({ className, items, maxItems, ref, ...props }: BreadCrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { BreadCrumb };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { BreadCrumbItemDef,
|
|
2
|
-
export { BreadCrumb
|
|
1
|
+
export type { BreadCrumbItemDef, BreadCrumbProps } from "./BreadCrumb";
|
|
2
|
+
export { BreadCrumb } from "./BreadCrumb";
|
|
@@ -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?: "
|
|
4
|
+
variant?: "ghost" | "outline" | "solid" | null | undefined;
|
|
5
5
|
color?: "danger" | "primary" | "secondary" | null | undefined;
|
|
6
|
-
size?: "
|
|
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 & {
|
|
@@ -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 };
|
|
@@ -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?: "
|
|
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,6 +1,7 @@
|
|
|
1
|
-
import { type InputHTMLAttributes, type Ref } from "react";
|
|
2
|
-
export interface ChipsCheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
1
|
+
import React, { type InputHTMLAttributes, type Ref } from "react";
|
|
2
|
+
export interface ChipsCheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onClick"> {
|
|
3
3
|
ref?: Ref<HTMLInputElement>;
|
|
4
|
+
onClick?: React.MouseEventHandler<HTMLLabelElement>;
|
|
4
5
|
}
|
|
5
|
-
declare function ChipsCheckbox({ className, disabled, checked, defaultChecked, onChange, id, ref, ...props }: ChipsCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function ChipsCheckbox({ className, disabled, checked, defaultChecked, onChange, onClick, id, ref, ...props }: ChipsCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export { ChipsCheckbox };
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ToggleButton, type ToggleButtonProps } from "@/components/ToggleButton";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated `Chips`는 `ToggleButton`으로 이름이 변경되었습니다. `ToggleButton`을 사용하세요.
|
|
4
|
+
* 이 별칭은 하위 호환을 위해 유지되며 이후 메이저 버전에서 제거됩니다.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Chips: typeof ToggleButton;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated `chipsVariants`는 `toggleButtonVariants`로 이름이 변경되었습니다.
|
|
9
|
+
*/
|
|
10
|
+
export declare const chipsVariants: (props?: ({
|
|
11
|
+
shape?: "rectangle" | "rounded" | null | undefined;
|
|
12
|
+
size?: "icon-md" | "icon-sm" | "md" | "sm" | null | undefined;
|
|
13
|
+
variant?: "ghost" | "outline" | null | undefined;
|
|
14
|
+
active?: boolean | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated `ChipsProps`는 `ToggleButtonProps`로 이름이 변경되었습니다.
|
|
18
|
+
*/
|
|
19
|
+
export type ChipsProps = ToggleButtonProps;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { type RowData, type TableOptions } from "@tanstack/react-table";
|
|
2
|
+
import type { HTMLAttributes, MouseEvent, ReactNode, Ref } from "react";
|
|
3
|
+
import { type ScrollAreaProps } from "@/components/ScrollArea";
|
|
4
|
+
export type DataGridAlign = "start" | "center" | "end";
|
|
5
|
+
type DataGridValue<TData, TValue> = TValue | ((row: TData, index: number) => TValue);
|
|
6
|
+
declare module "@tanstack/react-table" {
|
|
7
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
8
|
+
align?: DataGridAlign;
|
|
9
|
+
headerAlign?: DataGridAlign;
|
|
10
|
+
cellAlign?: DataGridAlign;
|
|
11
|
+
className?: string;
|
|
12
|
+
headerClassName?: string;
|
|
13
|
+
cellClassName?: DataGridValue<TData, string | undefined>;
|
|
14
|
+
headerSortTrigger?: boolean;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export interface DataGridRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
ref?: Ref<HTMLDivElement>;
|
|
19
|
+
}
|
|
20
|
+
declare function DataGridRoot({ className, children, ref, ...props }: DataGridRootProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface DataGridViewportProps extends ScrollAreaProps {
|
|
22
|
+
ref?: Ref<HTMLDivElement>;
|
|
23
|
+
}
|
|
24
|
+
declare function DataGridViewport({ className, children, ref, scrollbars, type, ...props }: DataGridViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export interface DataGridHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
sticky?: boolean;
|
|
27
|
+
ref?: Ref<HTMLDivElement>;
|
|
28
|
+
}
|
|
29
|
+
declare function DataGridHeader({ className, children, sticky, ref, ...props }: DataGridHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export interface DataGridBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
31
|
+
ref?: Ref<HTMLDivElement>;
|
|
32
|
+
}
|
|
33
|
+
declare function DataGridBody({ className, children, ref, ...props }: DataGridBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export interface DataGridRowProps extends HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
asChild?: boolean;
|
|
36
|
+
selected?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
interactive?: boolean;
|
|
39
|
+
ref?: Ref<HTMLDivElement>;
|
|
40
|
+
}
|
|
41
|
+
declare function DataGridRow({ className, children, asChild, selected, disabled, interactive, ref, onClick, onDoubleClick, onKeyDown, tabIndex, "aria-disabled": ariaDisabled, ...props }: DataGridRowProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export interface DataGridCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
43
|
+
align?: DataGridAlign;
|
|
44
|
+
asChild?: boolean;
|
|
45
|
+
ref?: Ref<HTMLDivElement>;
|
|
46
|
+
}
|
|
47
|
+
declare function DataGridCell({ className, children, align, asChild, ref, ...props }: DataGridCellProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export interface DataGridHeaderCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
49
|
+
align?: DataGridAlign;
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
ref?: Ref<HTMLDivElement>;
|
|
52
|
+
}
|
|
53
|
+
declare function DataGridHeaderCell({ className, children, align, asChild, ref, ...props }: DataGridHeaderCellProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export interface DataGridEmptyProps extends HTMLAttributes<HTMLDivElement> {
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
ref?: Ref<HTMLDivElement>;
|
|
57
|
+
}
|
|
58
|
+
declare function DataGridEmpty({ className, children, ref, ...props }: DataGridEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export interface DataGridLoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
60
|
+
rowCount?: number;
|
|
61
|
+
ref?: Ref<HTMLDivElement>;
|
|
62
|
+
}
|
|
63
|
+
declare function DataGridLoading({ className, rowCount, ref, ...props }: DataGridLoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export interface DataGridInfiniteTriggerProps extends HTMLAttributes<HTMLDivElement> {
|
|
65
|
+
loading?: boolean;
|
|
66
|
+
ref?: Ref<HTMLDivElement>;
|
|
67
|
+
}
|
|
68
|
+
declare function DataGridInfiniteTrigger({ className, children, loading, ref, ...props }: DataGridInfiniteTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export interface DataGridProps<TData> extends Omit<TableOptions<TData>, "getCoreRowModel"> {
|
|
70
|
+
getCoreRowModel?: TableOptions<TData>["getCoreRowModel"];
|
|
71
|
+
className?: string;
|
|
72
|
+
ref?: Ref<HTMLDivElement>;
|
|
73
|
+
loading?: boolean;
|
|
74
|
+
loadingRowCount?: number;
|
|
75
|
+
empty?: ReactNode;
|
|
76
|
+
headerSticky?: boolean;
|
|
77
|
+
viewportClassName?: string;
|
|
78
|
+
contentClassName?: string;
|
|
79
|
+
headerClassName?: string;
|
|
80
|
+
bodyClassName?: string;
|
|
81
|
+
rowClassName?: DataGridValue<TData, string | undefined>;
|
|
82
|
+
rowInteractive?: DataGridValue<TData, boolean>;
|
|
83
|
+
isRowSelected?: (row: TData, index: number) => boolean;
|
|
84
|
+
isRowDisabled?: (row: TData, index: number) => boolean;
|
|
85
|
+
onRowClick?: (row: TData, index: number, event: MouseEvent<HTMLDivElement>) => void;
|
|
86
|
+
loadingMore?: boolean;
|
|
87
|
+
loadingMoreContent?: ReactNode;
|
|
88
|
+
infiniteTriggerRef?: Ref<HTMLDivElement>;
|
|
89
|
+
infiniteTriggerClassName?: string;
|
|
90
|
+
}
|
|
91
|
+
declare function DataGrid<TData>({ className, loading, loadingRowCount, empty, headerSticky, viewportClassName, contentClassName, headerClassName, bodyClassName, rowClassName, rowInteractive, isRowSelected, isRowDisabled, onRowClick, loadingMore, loadingMoreContent, infiniteTriggerRef, infiniteTriggerClassName, ref, getCoreRowModel, ...tableOptions }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { CellContext, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, Row, RowSelectionState, SortingState, Table as ReactTableInstance, TableOptions, VisibilityState, } from "@tanstack/react-table";
|
|
2
|
+
export { getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/react-table";
|
|
3
|
+
export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridProps, DataGridRootProps, DataGridRowProps, DataGridViewportProps, } from "./DataGrid";
|
|
4
|
+
export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGrid";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface CalendarProps {
|
|
2
|
+
/** 표시할 월 (일자는 무시) */
|
|
3
|
+
month: Date;
|
|
4
|
+
/** 단일 선택된 일자 */
|
|
5
|
+
selected?: Date | null;
|
|
6
|
+
/** 범위 시작 일자 */
|
|
7
|
+
rangeStart?: Date | null;
|
|
8
|
+
/** 범위 종료 일자 */
|
|
9
|
+
rangeEnd?: Date | null;
|
|
10
|
+
onSelectDay?: (day: Date) => void;
|
|
11
|
+
/** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
|
|
12
|
+
markedDates?: Date[];
|
|
13
|
+
minDate?: Date;
|
|
14
|
+
maxDate?: Date;
|
|
15
|
+
/** true 를 반환하면 해당 일자 비활성화 */
|
|
16
|
+
disabledDate?: (date: Date) => boolean;
|
|
17
|
+
/** 이전 달 버튼 — 미지정 시 자리만 확보 */
|
|
18
|
+
onPrevMonth?: () => void;
|
|
19
|
+
/** 다음 달 버튼 — 미지정 시 자리만 확보 */
|
|
20
|
+
onNextMonth?: () => void;
|
|
21
|
+
weekdayLabels?: string[];
|
|
22
|
+
formatMonthTitle?: (month: Date) => string;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/** 한 달 그리드 캘린더. DatePicker 내부에서 1~2개를 조합해 사용합니다. */
|
|
26
|
+
declare function Calendar({ month, selected, rangeStart, rangeEnd, onSelectDay, markedDates, minDate, maxDate, disabledDate, onPrevMonth, onNextMonth, weekdayLabels, formatMonthTitle, className, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export { Calendar };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface DateRange {
|
|
3
|
+
start: Date;
|
|
4
|
+
end: Date;
|
|
5
|
+
}
|
|
6
|
+
export interface DatePickerPreset<T> {
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
getValue: () => T;
|
|
9
|
+
}
|
|
10
|
+
/** 시간 입력 정밀도 — hour: 시만, minute: 시:분, second: 시:분:초 */
|
|
11
|
+
export type TimePrecision = "hour" | "minute" | "second";
|
|
12
|
+
/** 시각 지정값 (기본 시각 프롭용) — 생략된 단위는 0 */
|
|
13
|
+
export interface TimeInput {
|
|
14
|
+
h: number;
|
|
15
|
+
m?: number;
|
|
16
|
+
s?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 종료 시각 커밋 방식 (범위 계열에서만 의미)
|
|
20
|
+
* - exact: 표시된 시각 그대로 커밋 (기본)
|
|
21
|
+
* - inclusive: 종료 단위 끝까지 포함 (예: 23:59 → 23:59:59.999) — `t <= end` 조회용
|
|
22
|
+
* - exclusive: 다음 경계를 커밋해 끝 미포함 (예: 23:59 → 다음날 00:00:00.000) — `t < end` 반개구간 조회용
|
|
23
|
+
*/
|
|
24
|
+
export type EndBoundary = "exact" | "inclusive" | "exclusive";
|
|
25
|
+
interface DatePickerBaseProps {
|
|
26
|
+
/** 시간 입력 정밀도 — 정밀도 밖 단위는 비활성(00)으로 표시되고 0으로 커밋됨 (기본: "second") */
|
|
27
|
+
timePrecision?: TimePrecision;
|
|
28
|
+
/**
|
|
29
|
+
* 종료 시각 커밋 방식 (기본: "exact").
|
|
30
|
+
* date="range" time="single"(공통 시각)에는 적용되지 않음 — 24h 배수 의미 보존
|
|
31
|
+
*/
|
|
32
|
+
endBoundary?: EndBoundary;
|
|
33
|
+
/** 표시할 월 개수 (기본: date="range"는 2, 그 외 1) */
|
|
34
|
+
numberOfMonths?: 1 | 2;
|
|
35
|
+
/** 인풋 크기 */
|
|
36
|
+
size?: "sm" | "md";
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
label?: string;
|
|
39
|
+
helperText?: string;
|
|
40
|
+
error?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/** 점 표시할 일자 목록 (예: 데이터가 있는 날) */
|
|
43
|
+
markedDates?: Date[];
|
|
44
|
+
minDate?: Date;
|
|
45
|
+
maxDate?: Date;
|
|
46
|
+
/** true 를 반환하면 해당 일자 비활성화 */
|
|
47
|
+
disabledDate?: (date: Date) => boolean;
|
|
48
|
+
/** 시작 시점의 기본 시각 (value/defaultValue가 없을 때, 기본 00:00:00) */
|
|
49
|
+
defaultStartTime?: TimeInput;
|
|
50
|
+
/** 종료 시점의 기본 시각 (value/defaultValue가 없을 때, 기본 하루 끝) */
|
|
51
|
+
defaultEndTime?: TimeInput;
|
|
52
|
+
/** 패널 타이틀 */
|
|
53
|
+
title?: ReactNode;
|
|
54
|
+
startTimeLabel?: ReactNode;
|
|
55
|
+
endTimeLabel?: ReactNode;
|
|
56
|
+
resetLabel?: ReactNode;
|
|
57
|
+
applyLabel?: ReactNode;
|
|
58
|
+
weekdayLabels?: string[];
|
|
59
|
+
formatMonthTitle?: (month: Date) => string;
|
|
60
|
+
/** 팝오버가 처음 열릴 때 표시할 월 (값이 없을 때) */
|
|
61
|
+
defaultMonth?: Date;
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* date × time 조합:
|
|
66
|
+
*
|
|
67
|
+
* | date | time | 의미 | value |
|
|
68
|
+
* |--------|--------|----------------------------------|-----------|
|
|
69
|
+
* | single | none | 하루 | Date |
|
|
70
|
+
* | single | single | 하루 + 시각 | Date |
|
|
71
|
+
* | single | range | 하루 내 시간 범위 | DateRange |
|
|
72
|
+
* | range | none | 날짜 범위 (일 단위) | DateRange |
|
|
73
|
+
* | range | single | 날짜 범위 + 공통 시각 (24h 배수) | DateRange |
|
|
74
|
+
* | range | range | 날짜+시간 범위 | DateRange |
|
|
75
|
+
*/
|
|
76
|
+
export interface SingleDatePickerProps extends DatePickerBaseProps {
|
|
77
|
+
date?: "single";
|
|
78
|
+
time?: "none" | "single";
|
|
79
|
+
value?: Date | null;
|
|
80
|
+
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 (적용 전까지 onChange 미호출) */
|
|
81
|
+
defaultValue?: Date | null;
|
|
82
|
+
onChange?: (value: Date | null) => void;
|
|
83
|
+
/** 커스텀 프리셋 버튼 (예: 오늘, 어제) */
|
|
84
|
+
presets?: DatePickerPreset<Date>[];
|
|
85
|
+
/** 인풋에 표시될 텍스트 커스텀 */
|
|
86
|
+
formatValue?: (value: Date) => string;
|
|
87
|
+
}
|
|
88
|
+
/** 날짜는 하루, 시간만 범위 — value의 start/end는 같은 일자에 시각만 다름 */
|
|
89
|
+
export interface TimeRangeDatePickerProps extends DatePickerBaseProps {
|
|
90
|
+
date?: "single";
|
|
91
|
+
time: "range";
|
|
92
|
+
value?: DateRange | null;
|
|
93
|
+
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 */
|
|
94
|
+
defaultValue?: DateRange | null;
|
|
95
|
+
onChange?: (value: DateRange | null) => void;
|
|
96
|
+
/** 커스텀 프리셋 버튼 (예: 오전, 오후) */
|
|
97
|
+
presets?: DatePickerPreset<DateRange>[];
|
|
98
|
+
/** 인풋에 표시될 텍스트 커스텀 */
|
|
99
|
+
formatValue?: (value: DateRange) => string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 날짜 범위. time="single"이면 양 끝점이 같은 시각을 공유해
|
|
103
|
+
* 구간이 24시간의 배수로 맞춰집니다 (예: 교대 시작 시각 기준 조회).
|
|
104
|
+
*/
|
|
105
|
+
export interface DateRangeDatePickerProps extends DatePickerBaseProps {
|
|
106
|
+
date: "range";
|
|
107
|
+
time?: "none" | "single" | "range";
|
|
108
|
+
value?: DateRange | null;
|
|
109
|
+
/** value가 없을 때 패널에 미리 선택되어 있는 기본값 */
|
|
110
|
+
defaultValue?: DateRange | null;
|
|
111
|
+
onChange?: (value: DateRange | null) => void;
|
|
112
|
+
/** 커스텀 프리셋 버튼 (예: 이번주, 지난 7일) */
|
|
113
|
+
presets?: DatePickerPreset<DateRange>[];
|
|
114
|
+
/** 인풋에 표시될 텍스트 커스텀 */
|
|
115
|
+
formatValue?: (value: DateRange) => string;
|
|
116
|
+
}
|
|
117
|
+
export type DatePickerProps = SingleDatePickerProps | TimeRangeDatePickerProps | DateRangeDatePickerProps;
|
|
118
|
+
declare function DatePicker(props: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
119
|
+
export { DatePicker };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** DatePicker 내부 날짜 계산 유틸 — 외부 라이브러리 없이 네이티브 Date 사용 */
|
|
2
|
+
export declare function pad2(n: number): string;
|
|
3
|
+
/** 시각을 제거한 자정 기준 Date */
|
|
4
|
+
export declare function startOfDay(date: Date): Date;
|
|
5
|
+
export declare function isSameDay(a: Date, b: Date): boolean;
|
|
6
|
+
/** 일 단위 비교 (a < b) */
|
|
7
|
+
export declare function isBeforeDay(a: Date, b: Date): boolean;
|
|
8
|
+
/** 일 단위 비교 (a > b) */
|
|
9
|
+
export declare function isAfterDay(a: Date, b: Date): boolean;
|
|
10
|
+
/** 해당 월 1일 */
|
|
11
|
+
export declare function startOfMonth(date: Date): Date;
|
|
12
|
+
/** n개월 이동한 월의 1일 */
|
|
13
|
+
export declare function addMonths(date: Date, amount: number): Date;
|
|
14
|
+
/**
|
|
15
|
+
* 월 그리드 생성 — 일요일 시작 주 단위 2차원 배열.
|
|
16
|
+
* 인접 월 자리는 null (디자인상 빈 칸으로 렌더링).
|
|
17
|
+
*/
|
|
18
|
+
export declare function getMonthWeeks(month: Date): (Date | null)[][];
|
|
19
|
+
/** date의 일자에 시각(시/분/초)을 결합 */
|
|
20
|
+
export declare function withTime(date: Date, time: {
|
|
21
|
+
h: number;
|
|
22
|
+
m: number;
|
|
23
|
+
s: number;
|
|
24
|
+
}): Date;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { CalendarProps } from "./Calendar";
|
|
2
|
+
export { Calendar } from "./Calendar";
|
|
3
|
+
export type { DatePickerPreset, DatePickerProps, DateRange, DateRangeDatePickerProps, EndBoundary, SingleDatePickerProps, TimeInput, TimePrecision, TimeRangeDatePickerProps, } from "./DatePicker";
|
|
4
|
+
export { DatePicker } from "./DatePicker";
|
|
@@ -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 { HTMLAttributes, Ref } from "react";
|
|
3
3
|
declare const dividerVariants: (props?: ({
|
|
4
|
-
strength?: "
|
|
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,11 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
interface DraggableScrollProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
/** children이 바뀔 때 가로 스크롤을 끝으로 이동합니다. */
|
|
6
|
+
autoScrollToEnd?: boolean;
|
|
7
|
+
smoothScroll?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function DraggableScroll({ children, className, autoScrollToEnd, smoothScroll, }: DraggableScrollProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { DraggableScrollProps };
|
|
11
|
+
export { DraggableScroll };
|
|
@@ -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";
|