@arkyn/types 1.3.52 → 1.3.53
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/hooks/Drawer.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
type DrawerContextProps = {
|
|
2
|
+
type DrawerContextProps<T = any> = {
|
|
3
3
|
drawerIsOpen(key: string): boolean;
|
|
4
|
-
drawerData(key: string):
|
|
5
|
-
openDrawer(key: string, data?:
|
|
4
|
+
drawerData(key: string): T;
|
|
5
|
+
openDrawer(key: string, data?: T): void;
|
|
6
6
|
closeDrawer(key: string): void;
|
|
7
7
|
};
|
|
8
8
|
type OpenedDrawers = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../src/hooks/Drawer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,kBAAkB,GAAG;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../src/hooks/Drawer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI;IACjC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;IAC3B,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACxC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,EAAE,CAAC;AAEJ,KAAK,mBAAmB,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC"}
|
package/dist/hooks/Modal.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
type ModalContextProps = {
|
|
2
|
+
type ModalContextProps<T = any> = {
|
|
3
3
|
modalIsOpen(key: string): boolean;
|
|
4
|
-
modalData(key: string):
|
|
5
|
-
openModal(key: string, data?:
|
|
4
|
+
modalData(key: string): T;
|
|
5
|
+
openModal(key: string, data?: T): void;
|
|
6
6
|
closeModal(key: string): void;
|
|
7
7
|
};
|
|
8
8
|
type OpenedModals = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/hooks/Modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,iBAAiB,GAAG;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/hooks/Modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,iBAAiB,CAAC,CAAC,GAAG,GAAG,IAAI;IAChC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;IAC1B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACvC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,EAAE,CAAC;AAEJ,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
package/package.json
CHANGED
package/src/hooks/Drawer.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
|
|
3
|
-
type DrawerContextProps = {
|
|
3
|
+
type DrawerContextProps<T = any> = {
|
|
4
4
|
drawerIsOpen(key: string): boolean;
|
|
5
|
-
drawerData(key: string):
|
|
6
|
-
openDrawer(key: string, data?:
|
|
5
|
+
drawerData(key: string): T;
|
|
6
|
+
openDrawer(key: string, data?: T): void;
|
|
7
7
|
closeDrawer(key: string): void;
|
|
8
8
|
};
|
|
9
9
|
|
package/src/hooks/Modal.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
|
|
3
|
-
type ModalContextProps = {
|
|
3
|
+
type ModalContextProps<T = any> = {
|
|
4
4
|
modalIsOpen(key: string): boolean;
|
|
5
|
-
modalData(key: string):
|
|
6
|
-
openModal(key: string, data?:
|
|
5
|
+
modalData(key: string): T;
|
|
6
|
+
openModal(key: string, data?: T): void;
|
|
7
7
|
closeModal(key: string): void;
|
|
8
8
|
};
|
|
9
9
|
|