@lawkit/ui 0.1.49 → 0.1.50

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.
@@ -12,6 +12,12 @@ export declare const attachButton: string;
12
12
  export declare const primaryButton: string;
13
13
  /** 첨부 파일 목록 (completed 상태) */
14
14
  export declare const attachedList: string;
15
+ /** basic 외곽: 점선 테두리 + 회색 배경, 좌측 정렬 세로 스택 */
16
+ export declare const uploadBasicArea: string;
17
+ /** basic 설명: 버튼 아래, 좌측 정렬, faint */
18
+ export declare const uploadBasicDescription: string;
19
+ /** basic 첨부 목록: 세로 스택 */
20
+ export declare const uploadBasicList: string;
15
21
  export declare const thumbnail: import('@vanilla-extract/recipes').RuntimeFn<{
16
22
  layout: {
17
23
  horizontal: {};
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
2
  export type ThumbnailLayout = "horizontal" | "vertical";
3
3
  export type ThumbnailSize = "large" | "medium" | "small";
4
+ export type FileUploadAreaVariant = "ai" | "basic";
4
5
  export interface FileUploadAreaProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
5
6
  /** 파일 추가 콜백 */
6
7
  onFilesAdded?: (files: File[]) => void;
@@ -10,6 +11,12 @@ export interface FileUploadAreaProps extends Omit<HTMLAttributes<HTMLDivElement>
10
11
  accept?: string;
11
12
  /** 추가 버튼 영역 */
12
13
  extra?: ReactNode;
14
+ /**
15
+ * 시각 변형.
16
+ * - `ai`(기본): 그래디언트 보더 + 'AI 파일 분석' 헤더 (중앙 정렬)
17
+ * - `basic`: 점선 박스 + 버튼 상단 · 좌측 설명
18
+ */
19
+ variant?: FileUploadAreaVariant;
13
20
  /** 첨부 파일 목록 (children) */
14
21
  children?: ReactNode;
15
22
  }
@@ -18,18 +25,17 @@ export interface FileUploadAreaProps extends Omit<HTMLAttributes<HTMLDivElement>
18
25
  *
19
26
  * 드래그 앤 드롭 파일 업로드 영역.
20
27
  *
21
- * - 그래디언트 보더 (cyan primary blue)
22
- * - AI 아이콘 + 설명 텍스트
23
- * - 파일 첨부 버튼
28
+ * - `variant="ai"`(기본): 그래디언트 보더 + AI 아이콘 + 설명, 버튼 하단 중앙
29
+ * - `variant="basic"`: 점선 박스 + 회색 배경, '파일 첨부' 버튼 상단 · 좌측 정렬 설명
24
30
  * - children으로 첨부된 파일 목록 렌더링
25
31
  *
26
32
  * ```tsx
27
- * <FileUploadArea onFilesAdded={handleFiles} description="파일을 드래그하세요">
28
- * {files.map(f => <FileItem key={f.name} filename={f.name} />)}
33
+ * <FileUploadArea variant="basic" onFilesAdded={handleFiles} description="파일을 드래그하세요">
34
+ * {files.map(f => <FileItem key={f.name} filename={f.name} fileMeta="DOCX · 1.2MB" />)}
29
35
  * </FileUploadArea>
30
36
  * ```
31
37
  */
32
- export declare function FileUploadArea({ onFilesAdded, description, accept, extra, children, className, ...rest }: FileUploadAreaProps): import("react/jsx-runtime").JSX.Element;
38
+ export declare function FileUploadArea({ onFilesAdded, description, accept, extra, variant, children, className, ...rest }: FileUploadAreaProps): import("react/jsx-runtime").JSX.Element;
33
39
  export interface FileThumbnailProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
34
40
  /** 이미지 src */
35
41
  src: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lawkit/ui",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "type": "module",
5
5
  "description": "LDS Design System — React component library with design tokens",
6
6
  "main": "./dist/index.js",