@idbrnd/design-system 4.6.0 → 4.7.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @idbrnd/design-system
2
2
 
3
- ![Version](https://img.shields.io/static/v1?label=version&message=4.6.0&color=blue&style=flat-square) <!-- x-release-please-version -->
3
+ ![Version](https://img.shields.io/static/v1?label=version&message=4.7.1&color=blue&style=flat-square) <!-- x-release-please-version -->
4
4
  ![React](https://img.shields.io/badge/React-18.3.1-61DAFB?style=flat-square&logo=react&logoColor=white)
5
5
  ![Vite](https://img.shields.io/badge/Vite-7.3.0-646CFF?style=flat-square&logo=vite&logoColor=white)
6
6
  ![TypeScript](https://img.shields.io/badge/TypeScript-5.9.3-3178C6?style=flat-square&logo=typescript&logoColor=white)
@@ -618,6 +618,7 @@ import { showToast, dismissToast } from "@idbrnd/design-system";
618
618
  showToast({ variant: "positive", message: "저장되었습니다." });
619
619
  showToast({ variant: "negative", message: "오류가 발생했습니다." });
620
620
  showToast({ variant: "basic", message: "알림 메시지입니다." });
621
+ showToast({ variant: "basic", message: "읽을 내용이 긴 메시지입니다.", duration: 5000 });
621
622
 
622
623
  dismissToast();
623
624
  ```
@@ -628,6 +629,7 @@ dismissToast();
628
629
  | `variant` | `"basic"` \| `"positive"` \| `"negative"` | 색상 변형 (기본값 `"basic"`) |
629
630
  | `icon` | `ReactNode` | 사용자 지정 아이콘. 미지정 시 variant 기본 아이콘 사용 |
630
631
  | `customStyle` | `CSSProperties` | 추가 인라인 스타일 |
632
+ | `duration` | `number` | 자동 닫힘까지의 시간(밀리초) (기본값 `3000`) |
631
633
 
632
634
  ### Snackbar
633
635
 
@@ -2138,7 +2140,7 @@ const table = useReactTable({
2138
2140
  // 로딩 스켈레톤
2139
2141
  <Table table={table} loading skeletonRowCount={10} />
2140
2142
 
2141
- // 빈 상태
2143
+ // 빈 상태 (emptyContent, emptyTitle, emptyDescription을 모두 생략하면 빈 행을 그리지 않는다)
2142
2144
  <Table
2143
2145
  table={table}
2144
2146
  emptyTitle="데이터가 없습니다"
@@ -5,6 +5,8 @@ export interface ToastShowOptions {
5
5
  variant?: ToastVariant;
6
6
  customStyle?: CSSProperties;
7
7
  icon?: ReactNode;
8
+ /** 자동 닫힘까지의 시간(밀리초). 생략하면 기본 3초 */
9
+ duration?: number;
8
10
  }
9
- export declare function showToast({ message, variant, customStyle, icon }: ToastShowOptions): void;
11
+ export declare function showToast({ message, variant, customStyle, icon, duration }: ToastShowOptions): void;
10
12
  export declare function dismissToast(): void;