@arkyn/types 1.3.38 → 1.3.40
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/components/ToastProps.d.ts +8 -0
- package/dist/components/ToastProps.d.ts.map +1 -0
- package/dist/components/ToastProps.js +1 -0
- package/dist/hooks/Toast.d.ts +2 -4
- package/dist/hooks/Toast.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +7 -7
- package/src/components/ToastProps.ts +8 -0
- package/src/hooks/Toast.ts +2 -4
- package/src/index.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastProps.d.ts","sourceRoot":"","sources":["../../src/components/ToastProps.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/hooks/Toast.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { ToastProps } from "../components/ToastProps";
|
|
2
3
|
type ToastContextProps = {
|
|
3
|
-
|
|
4
|
-
warningToast(message: string): void;
|
|
5
|
-
successToast(message: string): void;
|
|
6
|
-
infoToast(message: string): void;
|
|
4
|
+
showToast(toast: ToastProps): void;
|
|
7
5
|
};
|
|
8
6
|
type ToastProviderProps = {
|
|
9
7
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/hooks/Toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/hooks/Toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,KAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from "./components/ModalProps";
|
|
|
21
21
|
export * from "./components/SelectProps";
|
|
22
22
|
export * from "./components/SkeletonProps";
|
|
23
23
|
export * from "./components/TooltipProps";
|
|
24
|
+
export * from "./components/ToastProps";
|
|
24
25
|
export * from "./hooks/Drawer";
|
|
25
26
|
export * from "./hooks/Modal";
|
|
26
27
|
export * from "./hooks/Toast";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wCAAwC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ export * from "./components/ModalProps";
|
|
|
23
23
|
export * from "./components/SelectProps";
|
|
24
24
|
export * from "./components/SkeletonProps";
|
|
25
25
|
export * from "./components/TooltipProps";
|
|
26
|
+
export * from "./components/ToastProps";
|
|
26
27
|
// Hooks
|
|
27
28
|
export * from "./hooks/Drawer";
|
|
28
29
|
export * from "./hooks/Modal";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkyn/types",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.40",
|
|
4
4
|
"main": "./dist/bundle.js",
|
|
5
5
|
"module": "./src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"typecheck": "bunx tsc --project tsconfig.json --noEmit"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@react-input/mask": "
|
|
14
|
-
"@remix-run/react": "
|
|
15
|
-
"lucide-react": "
|
|
16
|
-
"react": "
|
|
17
|
-
"react-dom": "
|
|
13
|
+
"@react-input/mask": "^1.2.5",
|
|
14
|
+
"@remix-run/react": "^2.11.0",
|
|
15
|
+
"lucide-react": "^0.424.0",
|
|
16
|
+
"react": "^18.3.1",
|
|
17
|
+
"react-dom": "^18.3.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/react": "^18.3.3",
|
|
21
21
|
"@types/react-dom": "^18.3.0",
|
|
22
22
|
"bun-types": "latest",
|
|
23
|
-
"typescript": "^5.5.
|
|
23
|
+
"typescript": "^5.5.4"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/src/hooks/Toast.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { ToastProps } from "../components/ToastProps";
|
|
2
3
|
|
|
3
4
|
type ToastContextProps = {
|
|
4
|
-
|
|
5
|
-
warningToast(message: string): void;
|
|
6
|
-
successToast(message: string): void;
|
|
7
|
-
infoToast(message: string): void;
|
|
5
|
+
showToast(toast: ToastProps): void;
|
|
8
6
|
};
|
|
9
7
|
|
|
10
8
|
type ToastProviderProps = {
|
package/src/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from "./components/ModalProps";
|
|
|
24
24
|
export * from "./components/SelectProps";
|
|
25
25
|
export * from "./components/SkeletonProps";
|
|
26
26
|
export * from "./components/TooltipProps";
|
|
27
|
+
export * from "./components/ToastProps";
|
|
27
28
|
|
|
28
29
|
// Hooks
|
|
29
30
|
export * from "./hooks/Drawer";
|