@lawkit/ui 0.1.37 → 0.1.39
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/dist/index.css +1 -1
- package/dist/index.js +3638 -2424
- package/dist/ui-v3/src/components/Toast/Toast.css.d.ts +15 -47
- package/dist/ui-v3/src/components/Toast/index.d.ts +6 -6
- package/package.json +3 -2
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
false: {
|
|
4
|
-
animation: `${string} 300ms ease`;
|
|
5
|
-
};
|
|
6
|
-
true: {
|
|
7
|
-
animation: `${string} 400ms ease forwards`;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
1
|
+
export declare const progressColorVar: `var(--${string})`;
|
|
2
|
+
export declare const root: string;
|
|
11
3
|
export declare const top: string;
|
|
12
4
|
export declare const icon: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
13
5
|
intent: {
|
|
@@ -47,51 +39,27 @@ export declare const progressFill: import('@vanilla-extract/recipes').RuntimeFn<
|
|
|
47
39
|
};
|
|
48
40
|
};
|
|
49
41
|
}>;
|
|
50
|
-
export declare const
|
|
51
|
-
export declare const countdownFill: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
42
|
+
export declare const toastOverride: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
52
43
|
intent: {
|
|
53
44
|
info: {
|
|
54
|
-
|
|
45
|
+
vars: {
|
|
46
|
+
[progressColorVar]: `var(--${string})`;
|
|
47
|
+
};
|
|
55
48
|
};
|
|
56
49
|
success: {
|
|
57
|
-
|
|
50
|
+
vars: {
|
|
51
|
+
[progressColorVar]: "#28c76f";
|
|
52
|
+
};
|
|
58
53
|
};
|
|
59
54
|
warning: {
|
|
60
|
-
|
|
55
|
+
vars: {
|
|
56
|
+
[progressColorVar]: "#f0af23";
|
|
57
|
+
};
|
|
61
58
|
};
|
|
62
59
|
error: {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}>;
|
|
67
|
-
export declare const container: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
68
|
-
position: {
|
|
69
|
-
"top-right": {
|
|
70
|
-
top: `var(--${string})`;
|
|
71
|
-
right: `var(--${string})`;
|
|
72
|
-
};
|
|
73
|
-
"top-left": {
|
|
74
|
-
top: `var(--${string})`;
|
|
75
|
-
left: `var(--${string})`;
|
|
76
|
-
};
|
|
77
|
-
"top-center": {
|
|
78
|
-
top: `var(--${string})`;
|
|
79
|
-
left: "50%";
|
|
80
|
-
transform: "translateX(-50%)";
|
|
81
|
-
};
|
|
82
|
-
"bottom-right": {
|
|
83
|
-
bottom: `var(--${string})`;
|
|
84
|
-
right: `var(--${string})`;
|
|
85
|
-
};
|
|
86
|
-
"bottom-left": {
|
|
87
|
-
bottom: `var(--${string})`;
|
|
88
|
-
left: `var(--${string})`;
|
|
89
|
-
};
|
|
90
|
-
"bottom-center": {
|
|
91
|
-
bottom: `var(--${string})`;
|
|
92
|
-
left: "50%";
|
|
93
|
-
transform: "translateX(-50%)";
|
|
60
|
+
vars: {
|
|
61
|
+
[progressColorVar]: "#ea5455";
|
|
62
|
+
};
|
|
94
63
|
};
|
|
95
64
|
};
|
|
96
65
|
}>;
|
|
97
|
-
export declare const toastItem: string;
|
|
@@ -26,27 +26,27 @@ export interface ToastProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
26
26
|
/**
|
|
27
27
|
* **Toast**
|
|
28
28
|
*
|
|
29
|
-
* 알림 토스트 메시지.
|
|
29
|
+
* 알림 토스트 메시지. react-toastify를 내부 엔진으로 사용.
|
|
30
30
|
*
|
|
31
31
|
* - `intent`: info / success / warning / error
|
|
32
32
|
* - `title` + `description`: 1줄 또는 2줄
|
|
33
33
|
* - `showProgress` + `progress`: 하단 프로그레스 바 (수동 제어)
|
|
34
34
|
* - `duration`: 자동 닫기 (기본 5000ms, 0이면 비활성)
|
|
35
35
|
* - `pauseOnHover`: 호버 시 자동 닫기 일시정지 (기본 true)
|
|
36
|
-
* - 자동 닫기 시
|
|
37
|
-
* - 닫힐 때 슬라이드 아웃 애니메이션
|
|
36
|
+
* - 자동 닫기 시 react-toastify 카운트다운 바 (intent 색상)
|
|
38
37
|
*/
|
|
39
|
-
export declare function Toast({ intent, icon, title, time, description, showProgress, progress, duration, pauseOnHover, onClose,
|
|
38
|
+
export declare function Toast({ intent, icon, title, time, description, showProgress, progress, duration, pauseOnHover, onClose, }: ToastProps): null;
|
|
40
39
|
export interface ToastContainerProps {
|
|
41
40
|
/** 화면 위치 */
|
|
42
41
|
position?: ToastPosition;
|
|
43
|
-
/** 토스트 목록 */
|
|
44
|
-
children
|
|
42
|
+
/** 토스트 트리거 컴포넌트 목록 */
|
|
43
|
+
children?: ReactNode;
|
|
45
44
|
}
|
|
46
45
|
/**
|
|
47
46
|
* **ToastContainer**
|
|
48
47
|
*
|
|
49
48
|
* 토스트를 화면 고정 위치에 렌더링하는 컨테이너.
|
|
49
|
+
* react-toastify의 ToastContainer를 래핑한다.
|
|
50
50
|
*
|
|
51
51
|
* ```tsx
|
|
52
52
|
* <ToastContainer position="top-right">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lawkit/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "LDS Design System — React component library with design tokens",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@tanstack/react-table": "^8.21.3"
|
|
44
|
+
"@tanstack/react-table": "^8.21.3",
|
|
45
|
+
"react-toastify": "^11.1.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@storybook/react": "^10.2.17",
|