@bigtablet/design-system 1.1.0 → 1.1.2
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/client.d.ts +14 -0
- package/dist/client.js +32 -0
- package/dist/index.d.ts +1 -3
- package/package.json +8 -10
- package/dist/index.cjs +0 -4228
- package/dist/index.d.cts +0 -148
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react_toastify from 'react-toastify';
|
|
3
|
+
|
|
4
|
+
declare const ToastProvider: () => react_jsx_runtime.JSX.Element;
|
|
5
|
+
|
|
6
|
+
declare const useToast: () => {
|
|
7
|
+
success: (msg: string) => react_toastify.Id;
|
|
8
|
+
error: (msg: string) => react_toastify.Id;
|
|
9
|
+
warning: (msg: string) => react_toastify.Id;
|
|
10
|
+
info: (msg: string) => react_toastify.Id;
|
|
11
|
+
message: (msg: string) => react_toastify.Id;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ToastProvider, useToast };
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ToastContainer, Slide, toast } from 'react-toastify';
|
|
2
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// src/ui/feedback/toast/index.tsx
|
|
6
|
+
var ToastProvider = () => /* @__PURE__ */ jsx(
|
|
7
|
+
ToastContainer,
|
|
8
|
+
{
|
|
9
|
+
position: "top-right",
|
|
10
|
+
autoClose: 2e3,
|
|
11
|
+
hideProgressBar: false,
|
|
12
|
+
newestOnTop: false,
|
|
13
|
+
closeOnClick: true,
|
|
14
|
+
rtl: false,
|
|
15
|
+
pauseOnFocusLoss: true,
|
|
16
|
+
draggable: true,
|
|
17
|
+
pauseOnHover: true,
|
|
18
|
+
theme: "light",
|
|
19
|
+
transition: Slide
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
var useToast = () => {
|
|
23
|
+
return {
|
|
24
|
+
success: (msg) => toast.success(msg),
|
|
25
|
+
error: (msg) => toast.error(msg),
|
|
26
|
+
warning: (msg) => toast.warning(msg),
|
|
27
|
+
info: (msg) => toast.info(msg),
|
|
28
|
+
message: (msg) => toast(msg)
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { ToastProvider, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare const Loading: ({ size }: {
|
|
|
24
24
|
}) => react_jsx_runtime.JSX.Element;
|
|
25
25
|
|
|
26
26
|
declare const ToastProvider: () => react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
27
28
|
declare const useToast: () => {
|
|
28
29
|
success: (msg: string) => react_toastify.Id;
|
|
29
30
|
error: (msg: string) => react_toastify.Id;
|
|
@@ -92,12 +93,9 @@ interface SelectProps {
|
|
|
92
93
|
id?: string;
|
|
93
94
|
label?: string;
|
|
94
95
|
placeholder?: string;
|
|
95
|
-
/** options 목록 */
|
|
96
96
|
options: SelectOption[];
|
|
97
|
-
/** 값 제어(컨트롤드) */
|
|
98
97
|
value?: string | null;
|
|
99
98
|
onChange?: (value: string | null, option?: SelectOption | null) => void;
|
|
100
|
-
/** 언컨트롤드 기본값 */
|
|
101
99
|
defaultValue?: string | null;
|
|
102
100
|
disabled?: boolean;
|
|
103
101
|
size?: SelectSize;
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigtablet/design-system",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Bigtablet Design System UI Components",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.cjs",
|
|
7
|
-
"module": "dist/index.js",
|
|
8
6
|
"types": "dist/index.d.ts",
|
|
9
7
|
"style": "dist/index.css",
|
|
10
8
|
"exports": {
|
|
11
9
|
".": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./client": {
|
|
14
|
+
"types": "./dist/client.d.ts",
|
|
15
|
+
"import": "./dist/client.js"
|
|
15
16
|
},
|
|
16
17
|
"./styles.css": "./dist/index.css"
|
|
17
18
|
},
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"LICENSE"
|
|
22
23
|
],
|
|
23
24
|
"sideEffects": [
|
|
24
|
-
"
|
|
25
|
+
"*.css"
|
|
25
26
|
],
|
|
26
27
|
"scripts": {
|
|
27
28
|
"build": "tsup",
|
|
@@ -76,8 +77,5 @@
|
|
|
76
77
|
},
|
|
77
78
|
"publishConfig": {
|
|
78
79
|
"access": "public"
|
|
79
|
-
},
|
|
80
|
-
"dependencies": {
|
|
81
|
-
"@bigtablet/design-system": "^1.0.1"
|
|
82
80
|
}
|
|
83
81
|
}
|