@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.
Files changed (81) hide show
  1. package/README.md +2 -6
  2. package/dist/components/Avatar/Avatar.d.ts +10 -5
  3. package/dist/components/Badge/Badge.d.ts +18 -12
  4. package/dist/components/Badge/index.d.ts +2 -2
  5. package/dist/components/BreadCrumb/BreadCrumb.d.ts +18 -12
  6. package/dist/components/BreadCrumb/index.d.ts +2 -2
  7. package/dist/components/Button/Button.d.ts +5 -3
  8. package/dist/components/Card/Card.d.ts +9 -1
  9. package/dist/components/Checkbox/Checkbox.d.ts +2 -1
  10. package/dist/components/Checkbox/ChipsCheckbox.d.ts +4 -3
  11. package/dist/components/Chips/index.d.ts +19 -2
  12. package/dist/components/DataGrid/DataGrid.d.ts +92 -0
  13. package/dist/components/DataGrid/index.d.ts +4 -0
  14. package/dist/components/DatePicker/Calendar.d.ts +27 -0
  15. package/dist/components/DatePicker/DatePicker.d.ts +119 -0
  16. package/dist/components/DatePicker/date.d.ts +24 -0
  17. package/dist/components/DatePicker/index.d.ts +4 -0
  18. package/dist/components/Dialog/Dialog.d.ts +20 -0
  19. package/dist/components/Dialog/index.d.ts +2 -0
  20. package/dist/components/Divider/Divider.d.ts +1 -1
  21. package/dist/components/DraggableScroll/DraggableScroll.d.ts +11 -0
  22. package/dist/components/DraggableScroll/index.d.ts +2 -0
  23. package/dist/components/Field/Field.d.ts +46 -0
  24. package/dist/components/Field/index.d.ts +1 -0
  25. package/dist/components/FilterModal/FilterModal.d.ts +32 -0
  26. package/dist/components/FilterModal/index.d.ts +2 -0
  27. package/dist/components/Icon/index.d.ts +280 -278
  28. package/dist/components/IconButton/IconButton.d.ts +2 -2
  29. package/dist/components/InputBase/InputBase.d.ts +8 -7
  30. package/dist/components/InteractionLayer/InteractionLayer.d.ts +3 -1
  31. package/dist/components/Logo/index.d.ts +16 -0
  32. package/dist/components/Menu/Menu.d.ts +79 -13
  33. package/dist/components/Menu/index.d.ts +2 -2
  34. package/dist/components/Messagebox/Messagebox.d.ts +4 -3
  35. package/dist/components/Modal/Modal.d.ts +33 -22
  36. package/dist/components/Modal/index.d.ts +2 -2
  37. package/dist/components/Nav/Nav.d.ts +3 -5
  38. package/dist/components/Pagination/Pagination.d.ts +20 -6
  39. package/dist/components/Panel/Panel.d.ts +13 -0
  40. package/dist/components/Panel/index.d.ts +2 -0
  41. package/dist/components/Popover/Popover.d.ts +47 -0
  42. package/dist/components/Popover/index.d.ts +2 -0
  43. package/dist/components/ProgressBar/ProgressBar.d.ts +13 -0
  44. package/dist/components/ProgressBar/index.d.ts +2 -0
  45. package/dist/components/Radio/Radio.d.ts +2 -2
  46. package/dist/components/ScrollArea/ScrollArea.d.ts +14 -0
  47. package/dist/components/ScrollArea/index.d.ts +2 -0
  48. package/dist/components/Segmented/Segmented.d.ts +11 -17
  49. package/dist/components/SelectBox/SelectBox.d.ts +2 -0
  50. package/dist/components/Shortcut/Shortcut.d.ts +3 -2
  51. package/dist/components/Skeleton/Skeleton.d.ts +7 -0
  52. package/dist/components/Skeleton/index.d.ts +2 -0
  53. package/dist/components/Slider/Slider.d.ts +9 -0
  54. package/dist/components/Slider/index.d.ts +2 -0
  55. package/dist/components/Switch/Switch.d.ts +6 -5
  56. package/dist/components/Tab/Tab.d.ts +17 -16
  57. package/dist/components/Tab/index.d.ts +2 -2
  58. package/dist/components/Table/Table.d.ts +38 -6
  59. package/dist/components/Table/index.d.ts +2 -2
  60. package/dist/components/Tag/Tag.d.ts +3 -2
  61. package/dist/components/Tagbox/Tagbox.d.ts +8 -2
  62. package/dist/components/Textarea/Textarea.d.ts +3 -3
  63. package/dist/components/Textbox/Textbox.d.ts +5 -4
  64. package/dist/components/Toast/Toast.d.ts +1 -1
  65. package/dist/components/ToggleButton/ToggleButton.d.ts +17 -0
  66. package/dist/components/ToggleButton/index.d.ts +2 -0
  67. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  68. package/dist/components/Typography/Typography.d.ts +1 -1
  69. package/dist/components/UploadArea/UploadArea.d.ts +7 -1
  70. package/dist/index.cjs +24 -11
  71. package/dist/index.cjs.map +1 -1
  72. package/dist/index.d.ts +15 -3
  73. package/dist/index.js +14771 -4897
  74. package/dist/index.js.map +1 -1
  75. package/dist/styles.css +1 -2
  76. package/dist/tokens/tokens.css +100 -13
  77. package/package.json +16 -4
  78. package/dist/components/Alert/Alert.d.ts +0 -16
  79. package/dist/components/Alert/index.d.ts +0 -2
  80. package/dist/components/Chips/Chips.d.ts +0 -15
  81. package/dist/theme.css +0 -154
@@ -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?: "sm" | "md" | "lg" | "xs" | 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,11 +1,11 @@
1
1
  import type { ReactNode } from "react";
2
2
  declare const inputContainerVariants: (props?: ({
3
- state?: "default" | "disabled" | "error" | "focused" | null | undefined;
4
- size?: "sm" | "md" | null | undefined;
5
- layout?: "wrap" | "inline" | "block" | 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
- 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
- leadingElement?: ReactNode;
21
+ startContent?: ReactNode;
21
22
  /** 인풋 컨테이너 오른쪽 슬롯 */
22
- trailingElement?: ReactNode;
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, leadingElement, trailingElement, containerClassName, className, children, }: InputBaseProps): import("react/jsx-runtime").JSX.Element;
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 };
@@ -0,0 +1,16 @@
1
+ import { type ReactNode, 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: (props: LogoProps) => ReactNode;
9
+ export declare const AiVisionLogo: (props: LogoProps) => ReactNode;
10
+ export declare const AiVisionTLogo: (props: LogoProps) => ReactNode;
11
+ export declare const AiVisionSLogo: (props: LogoProps) => ReactNode;
12
+ export declare const AiVisionMLogo: (props: LogoProps) => ReactNode;
13
+ export declare const AiVDataLogo: (props: LogoProps) => ReactNode;
14
+ export declare const AiVOpsLogo: (props: LogoProps) => ReactNode;
15
+ export declare const AiVotLogo: (props: LogoProps) => ReactNode;
16
+ export declare const AiViewLogo: (props: LogoProps) => ReactNode;
@@ -1,18 +1,84 @@
1
- import type { ButtonHTMLAttributes, HTMLAttributes, ReactNode, Ref } from "react";
2
- declare const menuItemVariants: (props?: ({
3
- danger?: boolean | null | undefined;
4
- activated?: boolean | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
7
- label: string;
1
+ import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
2
+ import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
3
+ type MenuRootProps = ComponentPropsWithoutRef<typeof DropdownMenu.Root>;
4
+ declare function MenuRoot(props: MenuRootProps): import("react/jsx-runtime").JSX.Element;
5
+ type MenuTriggerProps = ComponentPropsWithoutRef<typeof DropdownMenu.Trigger> & {
6
+ ref?: Ref<HTMLButtonElement>;
7
+ };
8
+ declare function MenuTrigger({ ref, ...props }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
9
+ type MenuContentProps = ComponentPropsWithoutRef<typeof DropdownMenu.Content> & {
10
+ ref?: Ref<HTMLDivElement>;
11
+ };
12
+ declare function MenuContent({ className, sideOffset, ref, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
13
+ type MenuGroupProps = ComponentPropsWithoutRef<typeof DropdownMenu.Group> & {
14
+ ref?: Ref<HTMLDivElement>;
15
+ };
16
+ declare function MenuGroup({ className, ref, ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
17
+ type MenuSeparatorProps = ComponentPropsWithoutRef<typeof DropdownMenu.Separator> & {
18
+ ref?: Ref<HTMLDivElement>;
19
+ };
20
+ declare function MenuSeparator({ className, ref, ...props }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
21
+ type MenuLabelProps = ComponentPropsWithoutRef<typeof DropdownMenu.Label> & {
22
+ ref?: Ref<HTMLDivElement>;
23
+ };
24
+ declare function MenuLabel({ className, ref, ...props }: MenuLabelProps): import("react/jsx-runtime").JSX.Element;
25
+ interface MenuItemProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenu.Item>, "children"> {
26
+ /** label/icon으로 렌더할 때 사용. asChild 모드에선 무시 */
27
+ label?: ReactNode;
8
28
  icon?: ReactNode;
9
29
  danger?: boolean;
10
- activated?: boolean;
11
- ref?: Ref<HTMLButtonElement>;
30
+ /** Radix asChild — 자식 컴포넌트(Link 등)에 메뉴 동작/스타일 위임 */
31
+ asChild?: boolean;
32
+ children?: ReactNode;
33
+ ref?: Ref<HTMLDivElement>;
34
+ }
35
+ declare function MenuItem({ className, label, icon, danger, asChild, children, ref, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
36
+ interface MenuCheckboxItemProps extends ComponentPropsWithoutRef<typeof DropdownMenu.CheckboxItem> {
37
+ label?: ReactNode;
38
+ icon?: ReactNode;
39
+ ref?: Ref<HTMLDivElement>;
40
+ }
41
+ declare function MenuCheckboxItem({ className, label, icon, children, ref, ...props }: MenuCheckboxItemProps): import("react/jsx-runtime").JSX.Element;
42
+ type MenuRadioGroupProps = ComponentPropsWithoutRef<typeof DropdownMenu.RadioGroup> & {
43
+ ref?: Ref<HTMLDivElement>;
44
+ };
45
+ declare function MenuRadioGroup({ className, ref, ...props }: MenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
46
+ interface MenuRadioItemProps extends ComponentPropsWithoutRef<typeof DropdownMenu.RadioItem> {
47
+ label?: ReactNode;
48
+ icon?: ReactNode;
49
+ ref?: Ref<HTMLDivElement>;
12
50
  }
13
- declare function MenuItem({ className, label, icon, danger, activated, disabled, onClick, ref, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
14
- export interface MenuRootProps extends HTMLAttributes<HTMLDivElement> {
51
+ declare function MenuRadioItem({ className, label, icon, children, ref, ...props }: MenuRadioItemProps): import("react/jsx-runtime").JSX.Element;
52
+ type MenuShortcutProps = ComponentPropsWithoutRef<"span"> & {
53
+ ref?: Ref<HTMLSpanElement>;
54
+ };
55
+ declare function MenuShortcut({ className, ref, ...props }: MenuShortcutProps): import("react/jsx-runtime").JSX.Element;
56
+ type MenuSubProps = ComponentPropsWithoutRef<typeof DropdownMenu.Sub>;
57
+ declare function MenuSub(props: MenuSubProps): import("react/jsx-runtime").JSX.Element;
58
+ interface MenuSubTriggerProps extends ComponentPropsWithoutRef<typeof DropdownMenu.SubTrigger> {
59
+ label?: ReactNode;
60
+ icon?: ReactNode;
15
61
  ref?: Ref<HTMLDivElement>;
16
62
  }
17
- declare function MenuRoot({ className, children, ref, ...props }: MenuRootProps): import("react/jsx-runtime").JSX.Element;
18
- export { MenuItem, MenuRoot, menuItemVariants };
63
+ declare function MenuSubTrigger({ className, label, icon, children, ref, ...props }: MenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
64
+ type MenuSubContentProps = ComponentPropsWithoutRef<typeof DropdownMenu.SubContent> & {
65
+ ref?: Ref<HTMLDivElement>;
66
+ };
67
+ declare function MenuSubContent({ className, sideOffset, ref, ...props }: MenuSubContentProps): import("react/jsx-runtime").JSX.Element;
68
+ declare const Menu: typeof MenuRoot & {
69
+ Trigger: typeof MenuTrigger;
70
+ Content: typeof MenuContent;
71
+ Item: typeof MenuItem;
72
+ Group: typeof MenuGroup;
73
+ Separator: typeof MenuSeparator;
74
+ Label: typeof MenuLabel;
75
+ CheckboxItem: typeof MenuCheckboxItem;
76
+ RadioGroup: typeof MenuRadioGroup;
77
+ RadioItem: typeof MenuRadioItem;
78
+ Sub: typeof MenuSub;
79
+ SubTrigger: typeof MenuSubTrigger;
80
+ SubContent: typeof MenuSubContent;
81
+ Shortcut: typeof MenuShortcut;
82
+ };
83
+ export type { MenuCheckboxItemProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuShortcutProps, MenuSubContentProps, MenuSubProps, MenuSubTriggerProps, MenuTriggerProps, };
84
+ export { Menu };
@@ -1,2 +1,2 @@
1
- export type { MenuItemProps, MenuRootProps } from "./Menu";
2
- export { MenuItem, MenuRoot, menuItemVariants } from "./Menu";
1
+ export type { MenuCheckboxItemProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuShortcutProps, MenuSubContentProps, MenuSubProps, MenuSubTriggerProps, MenuTriggerProps, } from "./Menu";
2
+ export { Menu } from "./Menu";
@@ -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" | "basic" | "info" | "success" | "warning" | 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;
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 VariantProps } from "class-variance-authority";
2
- import { type HTMLAttributes, type Ref } from "react";
3
- declare const modalHeaderVariants: (props?: ({
4
- type?: "basic" | "alert-center" | "alert-left" | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export interface ModalHeaderProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof modalHeaderVariants> {
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
- declare function ModalHeader({ className, type, title, description, onClose, ref, ...props }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
13
- declare const modalFooterVariants: (props?: ({
14
- type?: "flex" | "fixed" | null | undefined;
15
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
- export interface ModalFooterProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof modalFooterVariants> {
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 ModalFooter({ className, type, children, ref, ...props }: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
20
- export interface ModalRootProps extends HTMLAttributes<HTMLDivElement> {
21
- open: boolean;
22
- onClose: () => void;
23
- ref?: Ref<HTMLDivElement>;
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 ModalRoot({ className, open, onClose, children, ref, ...props }: ModalRootProps): import("react/jsx-runtime").JSX.Element | null;
26
- export { ModalFooter, ModalHeader, ModalRoot };
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 { ModalFooterProps, ModalHeaderProps, ModalRootProps } from "./Modal";
2
- export { ModalFooter, ModalHeader, ModalRoot } from "./Modal";
1
+ export type { ModalButtonProps, ModalProps, ModalSize, ModalSurfaceProps } from "./Modal";
2
+ export { Modal, ModalSurface } from "./Modal";
@@ -5,19 +5,17 @@ declare const navTileVariants: (props?: ({
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface NavTileProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof navTileVariants> {
7
7
  icon?: ReactNode;
8
- label?: string;
9
8
  ref?: Ref<HTMLButtonElement>;
10
9
  }
11
- declare function NavTile({ className, active, icon, label, children, ref, ...props }: NavTileProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function NavTile({ className, active, icon, children, ref, ...props }: NavTileProps): import("react/jsx-runtime").JSX.Element;
12
11
  declare const navItemVariants: (props?: ({
13
- selected?: boolean | null | undefined;
12
+ active?: boolean | null | undefined;
14
13
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
14
  export interface NavItemProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof navItemVariants> {
16
15
  icon?: ReactNode;
17
- label?: string;
18
16
  ref?: Ref<HTMLButtonElement>;
19
17
  }
20
- declare function NavItem({ className, selected, icon, label, children, ref, ...props }: NavItemProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function NavItem({ className, active, icon, children, ref, ...props }: NavItemProps): import("react/jsx-runtime").JSX.Element;
21
19
  export interface NavProps extends HTMLAttributes<HTMLElement> {
22
20
  ref?: Ref<HTMLElement>;
23
21
  }
@@ -1,11 +1,25 @@
1
1
  import { type HTMLAttributes, type Ref } from "react";
2
2
  export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange"> {
3
- total: number;
4
- page?: number;
5
- defaultPage?: number;
6
- pageSize?: number;
7
- onChange?: (page: number) => void;
3
+ /**
4
+ * undefined면 컴포넌트를 렌더하지 않음 (최초 로드 시).
5
+ * 한 번 정의된 후 다시 undefined가 되면 직전 값을 유지해서 깜빡임 방지.
6
+ */
7
+ totalPages?: number;
8
+ page: number;
9
+ pageSize: number;
10
+ /** 명시적으로 모든 상호작용 비활성화 (refetch 중, 권한 없음 등) */
11
+ disabled?: boolean;
12
+ /**
13
+ * 페이지 사이즈 셀렉터 옵션. 생략하면 셀렉터가 숨겨짐.
14
+ * @example [{ value: 10, label: "10 each" }, { value: 50, label: "50 each" }]
15
+ */
16
+ pageSizeOptions?: Array<{
17
+ value: number;
18
+ label: string;
19
+ }>;
20
+ onChange: (page: number) => void;
21
+ onPageSizeChange?: (pageSize: number) => void;
8
22
  ref?: Ref<HTMLElement>;
9
23
  }
10
- declare function Pagination({ className, total, page, defaultPage, pageSize, onChange, ref, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element;
24
+ declare function Pagination({ className, totalPages, page, pageSize, disabled, pageSizeOptions, onChange, onPageSizeChange, ref, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element | null;
11
25
  export { Pagination };
@@ -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,2 @@
1
+ export type { PanelProps } from "./Panel";
2
+ export { Panel } from "./Panel";
@@ -0,0 +1,47 @@
1
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
2
+ import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
3
+ type PopoverRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
4
+ declare function PopoverRoot(props: PopoverRootProps): import("react/jsx-runtime").JSX.Element;
5
+ type PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {
6
+ ref?: Ref<HTMLButtonElement>;
7
+ };
8
+ /** asChild로 ToggleButton 등 임의의 요소를 트리거로 사용할 수 있습니다. */
9
+ declare function PopoverTrigger({ ref, ...props }: PopoverTriggerProps): import("react/jsx-runtime").JSX.Element;
10
+ type PopoverAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
11
+ /** 트리거와 다른 요소를 기준으로 위치를 잡고 싶을 때 사용합니다. */
12
+ declare function PopoverAnchor(props: PopoverAnchorProps): import("react/jsx-runtime").JSX.Element;
13
+ type PopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Close> & {
14
+ ref?: Ref<HTMLButtonElement>;
15
+ };
16
+ /** asChild로 감싸면 하단 버튼 클릭 시 팝오버가 닫힙니다. */
17
+ declare function PopoverClose({ ref, ...props }: PopoverCloseProps): import("react/jsx-runtime").JSX.Element;
18
+ type PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {
19
+ ref?: Ref<HTMLDivElement>;
20
+ };
21
+ declare function PopoverContent({ className, sideOffset, align, ref, ...props }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
22
+ type PopoverTitleProps = ComponentPropsWithoutRef<"div"> & {
23
+ ref?: Ref<HTMLDivElement>;
24
+ };
25
+ declare function PopoverTitle({ className, ref, ...props }: PopoverTitleProps): import("react/jsx-runtime").JSX.Element;
26
+ type PopoverBodyProps = ComponentPropsWithoutRef<"div"> & {
27
+ ref?: Ref<HTMLDivElement>;
28
+ };
29
+ /** 검색창·목록 등 자유롭게 들어가는 스크롤 영역입니다. */
30
+ declare function PopoverBody({ className, ref, ...props }: PopoverBodyProps): import("react/jsx-runtime").JSX.Element;
31
+ interface PopoverFooterProps extends ComponentPropsWithoutRef<"div"> {
32
+ /** 좌측에 넓게 붙는 영역(예: 옵션 tertiary 버튼). 지정 시 나머지 버튼은 우측 정렬됩니다. */
33
+ start?: ReactNode;
34
+ ref?: Ref<HTMLDivElement>;
35
+ }
36
+ declare function PopoverFooter({ className, start, children, ref, ...props }: PopoverFooterProps): import("react/jsx-runtime").JSX.Element;
37
+ declare const Popover: typeof PopoverRoot & {
38
+ Trigger: typeof PopoverTrigger;
39
+ Anchor: typeof PopoverAnchor;
40
+ Close: typeof PopoverClose;
41
+ Content: typeof PopoverContent;
42
+ Title: typeof PopoverTitle;
43
+ Body: typeof PopoverBody;
44
+ Footer: typeof PopoverFooter;
45
+ };
46
+ export type { PopoverAnchorProps, PopoverBodyProps, PopoverCloseProps, PopoverContentProps, PopoverFooterProps, PopoverRootProps, PopoverTitleProps, PopoverTriggerProps, };
47
+ export { Popover };
@@ -0,0 +1,2 @@
1
+ export type { PopoverAnchorProps, PopoverBodyProps, PopoverCloseProps, PopoverContentProps, PopoverFooterProps, PopoverRootProps, PopoverTitleProps, PopoverTriggerProps, } from "./Popover";
2
+ export { Popover } from "./Popover";
@@ -0,0 +1,13 @@
1
+ import type { HTMLAttributes, Ref } from "react";
2
+ export type ProgressBarColor = "success" | "warning" | "info" | "danger";
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,2 @@
1
+ export type { ProgressBarColor, ProgressBarProps } from "./ProgressBar";
2
+ export { ProgressBar } from "./ProgressBar";
@@ -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;
@@ -0,0 +1,14 @@
1
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
2
+ import type { ComponentProps, Ref, UIEventHandler } from "react";
3
+ type ScrollAreaScrollbars = "both" | "horizontal" | "vertical";
4
+ type ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
5
+ onViewportScroll?: UIEventHandler<HTMLDivElement>;
6
+ scrollbars?: ScrollAreaScrollbars;
7
+ viewportClassName?: string;
8
+ viewportRef?: Ref<HTMLDivElement>;
9
+ };
10
+ type ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>;
11
+ declare function ScrollArea({ className, children, onViewportScroll, ref, scrollbars, type, viewportClassName, viewportRef, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
12
+ declare function ScrollBar({ className, orientation, ref, ...props }: ScrollBarProps): import("react/jsx-runtime").JSX.Element;
13
+ export type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps };
14
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,2 @@
1
+ export type { ScrollAreaProps, ScrollAreaScrollbars, ScrollBarProps } from "./ScrollArea";
2
+ export { ScrollArea, ScrollBar } from "./ScrollArea";
@@ -1,21 +1,15 @@
1
- import { type VariantProps } from "class-variance-authority";
2
- import { type ButtonHTMLAttributes, type HTMLAttributes, type ReactNode, type Ref } from "react";
3
- declare const segmentedRootVariants: (props?: ({
4
- size?: "sm" | "md" | "lg" | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export interface SegmentedRootProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">, VariantProps<typeof segmentedRootVariants> {
7
- value?: string;
8
- defaultValue?: string;
9
- onChange?: (value: string) => void;
10
- iconOnly?: boolean;
1
+ import type { ToggleGroupItemProps, ToggleGroupSingleProps } from "@radix-ui/react-toggle-group";
2
+ import { type ReactNode, type RefAttributes } from "react";
3
+ type SegmentedSize = "sm" | "md" | "lg" | "icon-sm" | "icon-md" | "icon-lg";
4
+ export interface SegmentedRootProps extends Omit<ToggleGroupSingleProps, "onValueChange" | "type">, RefAttributes<HTMLDivElement> {
5
+ size?: SegmentedSize;
6
+ onValueChange?: (value: string) => void;
7
+ fullWidth?: boolean;
11
8
  children?: ReactNode;
12
- ref?: Ref<HTMLDivElement>;
13
9
  }
14
- declare function SegmentedRoot({ className, size, value, defaultValue, onChange, iconOnly, children, ref, ...props }: SegmentedRootProps): import("react/jsx-runtime").JSX.Element;
15
- export interface SegmentedItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
16
- value: string;
10
+ declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange, fullWidth, children, ref, ...props }: SegmentedRootProps): import("react/jsx-runtime").JSX.Element;
11
+ export type SegmentedItemProps = ToggleGroupItemProps & RefAttributes<HTMLButtonElement> & {
17
12
  children?: ReactNode;
18
- ref?: Ref<HTMLButtonElement>;
19
- }
20
- declare function SegmentedItem({ className, value, children, onClick, ref, ...props }: SegmentedItemProps): import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ declare function SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps): import("react/jsx-runtime").JSX.Element;
21
15
  export { SegmentedItem, SegmentedRoot };
@@ -5,6 +5,8 @@ export interface SelectBoxOption {
5
5
  key?: string;
6
6
  /** 위험 액션 강조 (빨간색) */
7
7
  danger?: boolean;
8
+ /** 개별 옵션 비활성화 */
9
+ disabled?: boolean;
8
10
  }
9
11
  export interface SelectBoxGroup {
10
12
  /** 그룹 타이틀 */
@@ -1,6 +1,7 @@
1
- import { type HTMLAttributes, type Ref } from "react";
1
+ import type { HTMLAttributes, ReactNode, Ref } from "react";
2
+ export type ShortcutKey = string | ReactNode;
2
3
  export interface ShortcutProps extends HTMLAttributes<HTMLSpanElement> {
3
- keys: string[];
4
+ keys: ShortcutKey[];
4
5
  ref?: Ref<HTMLSpanElement>;
5
6
  }
6
7
  declare function Shortcut({ className, keys, ref, ...props }: ShortcutProps): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export type { SkeletonProps } from "./Skeleton";
2
+ export { Skeleton } from "./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 };
@@ -0,0 +1,2 @@
1
+ export type { SliderProps } from "./Slider";
2
+ export { Slider } from "./Slider";
@@ -1,11 +1,12 @@
1
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
1
2
  import { type VariantProps } from "class-variance-authority";
2
- import { type InputHTMLAttributes, type Ref } from "react";
3
+ import { type ComponentPropsWithoutRef, type Ref } from "react";
3
4
  declare const switchTrackVariants: (props?: ({
4
- size?: "sm" | "md" | "lg" | null | undefined;
5
+ size?: "lg" | "md" | "sm" | null | undefined;
5
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof switchTrackVariants> {
7
+ export interface SwitchProps extends Omit<ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, "asChild" | "children">, VariantProps<typeof switchTrackVariants> {
7
8
  label?: string;
8
- ref?: Ref<HTMLInputElement>;
9
+ ref?: Ref<HTMLButtonElement>;
9
10
  }
10
- declare function Switch({ className, label, size, checked, defaultChecked, disabled, id, onChange, ref, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function Switch({ className, label, size, disabled, id, ref, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
11
12
  export { Switch };
@@ -1,18 +1,19 @@
1
- import { type VariantProps } from "class-variance-authority";
2
- import { type ButtonHTMLAttributes, type HTMLAttributes, type Ref } from "react";
3
- export interface TabRootProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
4
- value?: string;
5
- defaultValue?: string;
6
- onChange?: (value: string) => void;
7
- ref?: Ref<HTMLDivElement>;
1
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
2
+ import type { ComponentPropsWithoutRef, ComponentRef, Ref } from "react";
3
+ export interface TabRootProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
4
+ ref?: Ref<ComponentRef<typeof TabsPrimitive.Root>>;
8
5
  }
9
- declare function TabRoot({ className, value, defaultValue, onChange, children, ref, ...props }: TabRootProps): import("react/jsx-runtime").JSX.Element;
10
- declare const tabItemVariants: (props?: ({
11
- active?: boolean | null | undefined;
12
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
- export interface TabItemProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof tabItemVariants> {
14
- value: string;
15
- ref?: Ref<HTMLButtonElement>;
6
+ declare function TabRoot({ className, ref, ...props }: TabRootProps): import("react/jsx-runtime").JSX.Element;
7
+ export interface TabListProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
8
+ ref?: Ref<ComponentRef<typeof TabsPrimitive.List>>;
16
9
  }
17
- declare function TabItem({ className, value, children, active: activeProp, ref, ...props }: TabItemProps): import("react/jsx-runtime").JSX.Element;
18
- export { TabItem, TabRoot, tabItemVariants };
10
+ declare function TabList({ className, ref, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element;
11
+ export interface TabTriggerProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {
12
+ ref?: Ref<ComponentRef<typeof TabsPrimitive.Trigger>>;
13
+ }
14
+ declare function TabTrigger({ className, ref, ...props }: TabTriggerProps): import("react/jsx-runtime").JSX.Element;
15
+ export interface TabContentProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Content> {
16
+ ref?: Ref<ComponentRef<typeof TabsPrimitive.Content>>;
17
+ }
18
+ declare function TabContent({ className, ref, ...props }: TabContentProps): import("react/jsx-runtime").JSX.Element;
19
+ export { TabContent, TabList, TabRoot, TabTrigger };
@@ -1,2 +1,2 @@
1
- export type { TabItemProps, TabRootProps } from "./Tab";
2
- export { TabItem, TabRoot, tabItemVariants } from "./Tab";
1
+ export type { TabContentProps, TabListProps, TabRootProps, TabTriggerProps, } from "./Tab";
2
+ export { TabContent, TabList, TabRoot, TabTrigger } from "./Tab";