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

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.
@@ -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,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
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 };
@@ -3,9 +3,15 @@ export interface UploadAreaProps extends Omit<HTMLAttributes<HTMLDivElement>, "o
3
3
  formats?: string[];
4
4
  maxSize?: string;
5
5
  accept?: string;
6
+ title?: string;
7
+ formatsLabel?: string;
8
+ maxSizeLabel?: string;
9
+ fileButtonLabel?: string;
10
+ folderButtonLabel?: string;
11
+ showFolder?: boolean;
6
12
  onFileSelect?: (files: FileList) => void;
7
13
  onFolderSelect?: (files: FileList) => void;
8
14
  ref?: Ref<HTMLDivElement>;
9
15
  }
10
- declare function UploadArea({ className, formats, maxSize, accept, onFileSelect, onFolderSelect, ref, ...props }: UploadAreaProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function UploadArea({ className, formats, maxSize, accept, title, formatsLabel, maxSizeLabel, fileButtonLabel, folderButtonLabel, showFolder, onFileSelect, onFolderSelect, ref, ...props }: UploadAreaProps): import("react/jsx-runtime").JSX.Element;
11
17
  export { UploadArea };